@cosmotech/core 3.0.1 → 3.0.3
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/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +11 -0
- package/dist/index.cjs.js +1180 -797
- package/dist/index.esm.js +1180 -797
- package/package.json +20 -24
package/dist/index.esm.js
CHANGED
|
@@ -236,6 +236,19 @@ function toDate$1(argument, context) {
|
|
|
236
236
|
* @description
|
|
237
237
|
* Add the specified number of days to the given date.
|
|
238
238
|
*
|
|
239
|
+
* **You don't need date-fns\***:
|
|
240
|
+
*
|
|
241
|
+
* Temporal has a built-in `add` method on all its classes:
|
|
242
|
+
*
|
|
243
|
+
* - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add)
|
|
244
|
+
* - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add)
|
|
245
|
+
* - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add)
|
|
246
|
+
* - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add)
|
|
247
|
+
* - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add)
|
|
248
|
+
* - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add)
|
|
249
|
+
*
|
|
250
|
+
* \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns
|
|
251
|
+
*
|
|
239
252
|
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
240
253
|
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
241
254
|
*
|
|
@@ -249,6 +262,12 @@ function toDate$1(argument, context) {
|
|
|
249
262
|
* // Add 10 days to 1 September 2014:
|
|
250
263
|
* const result = addDays(new Date(2014, 8, 1), 10)
|
|
251
264
|
* //=> Thu Sep 11 2014 00:00:00
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* // Using Temporal:
|
|
268
|
+
* // Add 10 days to 1 September 2014:
|
|
269
|
+
* Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString();
|
|
270
|
+
* //=> "2014-09-11"
|
|
252
271
|
*/
|
|
253
272
|
function addDays(date, amount, options) {
|
|
254
273
|
const _date = toDate$1(date, options?.in);
|
|
@@ -3022,7 +3041,6 @@ class Setter {
|
|
|
3022
3041
|
class ValueSetter extends Setter {
|
|
3023
3042
|
constructor(
|
|
3024
3043
|
value,
|
|
3025
|
-
|
|
3026
3044
|
validateValue,
|
|
3027
3045
|
|
|
3028
3046
|
setValue,
|
|
@@ -6216,28 +6234,28 @@ var toDate = {exports: {}};
|
|
|
6216
6234
|
|
|
6217
6235
|
var assertString = {exports: {}};
|
|
6218
6236
|
|
|
6219
|
-
(function (module, exports
|
|
6237
|
+
(function (module, exports) {
|
|
6220
6238
|
|
|
6221
|
-
Object.defineProperty(exports
|
|
6239
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6222
6240
|
value: true
|
|
6223
6241
|
});
|
|
6224
|
-
exports
|
|
6242
|
+
exports.default = assertString;
|
|
6225
6243
|
function assertString(input) {
|
|
6226
6244
|
if (input === undefined || input === null) throw new TypeError("Expected a string but received a ".concat(input));
|
|
6227
6245
|
if (input.constructor.name !== 'String') throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
|
|
6228
6246
|
}
|
|
6229
|
-
module.exports = exports
|
|
6230
|
-
module.exports.default = exports
|
|
6247
|
+
module.exports = exports.default;
|
|
6248
|
+
module.exports.default = exports.default;
|
|
6231
6249
|
} (assertString, assertString.exports));
|
|
6232
6250
|
|
|
6233
6251
|
var assertStringExports = assertString.exports;
|
|
6234
6252
|
|
|
6235
|
-
(function (module, exports
|
|
6253
|
+
(function (module, exports) {
|
|
6236
6254
|
|
|
6237
|
-
Object.defineProperty(exports
|
|
6255
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6238
6256
|
value: true
|
|
6239
6257
|
});
|
|
6240
|
-
exports
|
|
6258
|
+
exports.default = toDate;
|
|
6241
6259
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6242
6260
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6243
6261
|
function toDate(date) {
|
|
@@ -6245,8 +6263,8 @@ var assertStringExports = assertString.exports;
|
|
|
6245
6263
|
date = Date.parse(date);
|
|
6246
6264
|
return !isNaN(date) ? new Date(date) : null;
|
|
6247
6265
|
}
|
|
6248
|
-
module.exports = exports
|
|
6249
|
-
module.exports.default = exports
|
|
6266
|
+
module.exports = exports.default;
|
|
6267
|
+
module.exports.default = exports.default;
|
|
6250
6268
|
} (toDate, toDate.exports));
|
|
6251
6269
|
|
|
6252
6270
|
var toDateExports = toDate.exports;
|
|
@@ -6257,17 +6275,17 @@ var isFloat$1 = {};
|
|
|
6257
6275
|
|
|
6258
6276
|
var nullUndefinedCheck = {exports: {}};
|
|
6259
6277
|
|
|
6260
|
-
(function (module, exports
|
|
6278
|
+
(function (module, exports) {
|
|
6261
6279
|
|
|
6262
|
-
Object.defineProperty(exports
|
|
6280
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6263
6281
|
value: true
|
|
6264
6282
|
});
|
|
6265
|
-
exports
|
|
6283
|
+
exports.default = isNullOrUndefined;
|
|
6266
6284
|
function isNullOrUndefined(value) {
|
|
6267
6285
|
return value === null || value === undefined;
|
|
6268
6286
|
}
|
|
6269
|
-
module.exports = exports
|
|
6270
|
-
module.exports.default = exports
|
|
6287
|
+
module.exports = exports.default;
|
|
6288
|
+
module.exports.default = exports.default;
|
|
6271
6289
|
} (nullUndefinedCheck, nullUndefinedCheck.exports));
|
|
6272
6290
|
|
|
6273
6291
|
var nullUndefinedCheckExports = nullUndefinedCheck.exports;
|
|
@@ -6451,52 +6469,52 @@ function isFloat(str, options) {
|
|
|
6451
6469
|
}
|
|
6452
6470
|
isFloat$1.locales = Object.keys(_alpha$2.decimal);
|
|
6453
6471
|
|
|
6454
|
-
(function (module, exports
|
|
6472
|
+
(function (module, exports) {
|
|
6455
6473
|
|
|
6456
|
-
Object.defineProperty(exports
|
|
6474
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6457
6475
|
value: true
|
|
6458
6476
|
});
|
|
6459
|
-
exports
|
|
6477
|
+
exports.default = toFloat;
|
|
6460
6478
|
var _isFloat = _interopRequireDefault(isFloat$1);
|
|
6461
6479
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6462
6480
|
function toFloat(str) {
|
|
6463
6481
|
if (!(0, _isFloat.default)(str)) return NaN;
|
|
6464
6482
|
return parseFloat(str);
|
|
6465
6483
|
}
|
|
6466
|
-
module.exports = exports
|
|
6467
|
-
module.exports.default = exports
|
|
6484
|
+
module.exports = exports.default;
|
|
6485
|
+
module.exports.default = exports.default;
|
|
6468
6486
|
} (toFloat, toFloat.exports));
|
|
6469
6487
|
|
|
6470
6488
|
var toFloatExports = toFloat.exports;
|
|
6471
6489
|
|
|
6472
6490
|
var toInt = {exports: {}};
|
|
6473
6491
|
|
|
6474
|
-
(function (module, exports
|
|
6492
|
+
(function (module, exports) {
|
|
6475
6493
|
|
|
6476
|
-
Object.defineProperty(exports
|
|
6494
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6477
6495
|
value: true
|
|
6478
6496
|
});
|
|
6479
|
-
exports
|
|
6497
|
+
exports.default = toInt;
|
|
6480
6498
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6481
6499
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6482
6500
|
function toInt(str, radix) {
|
|
6483
6501
|
(0, _assertString.default)(str);
|
|
6484
6502
|
return parseInt(str, radix || 10);
|
|
6485
6503
|
}
|
|
6486
|
-
module.exports = exports
|
|
6487
|
-
module.exports.default = exports
|
|
6504
|
+
module.exports = exports.default;
|
|
6505
|
+
module.exports.default = exports.default;
|
|
6488
6506
|
} (toInt, toInt.exports));
|
|
6489
6507
|
|
|
6490
6508
|
var toIntExports = toInt.exports;
|
|
6491
6509
|
|
|
6492
6510
|
var toBoolean = {exports: {}};
|
|
6493
6511
|
|
|
6494
|
-
(function (module, exports
|
|
6512
|
+
(function (module, exports) {
|
|
6495
6513
|
|
|
6496
|
-
Object.defineProperty(exports
|
|
6514
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6497
6515
|
value: true
|
|
6498
6516
|
});
|
|
6499
|
-
exports
|
|
6517
|
+
exports.default = toBoolean;
|
|
6500
6518
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6501
6519
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6502
6520
|
function toBoolean(str, strict) {
|
|
@@ -6506,28 +6524,28 @@ var toBoolean = {exports: {}};
|
|
|
6506
6524
|
}
|
|
6507
6525
|
return str !== '0' && !/^false$/i.test(str) && str !== '';
|
|
6508
6526
|
}
|
|
6509
|
-
module.exports = exports
|
|
6510
|
-
module.exports.default = exports
|
|
6527
|
+
module.exports = exports.default;
|
|
6528
|
+
module.exports.default = exports.default;
|
|
6511
6529
|
} (toBoolean, toBoolean.exports));
|
|
6512
6530
|
|
|
6513
6531
|
var toBooleanExports = toBoolean.exports;
|
|
6514
6532
|
|
|
6515
6533
|
var equals = {exports: {}};
|
|
6516
6534
|
|
|
6517
|
-
(function (module, exports
|
|
6535
|
+
(function (module, exports) {
|
|
6518
6536
|
|
|
6519
|
-
Object.defineProperty(exports
|
|
6537
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6520
6538
|
value: true
|
|
6521
6539
|
});
|
|
6522
|
-
exports
|
|
6540
|
+
exports.default = equals;
|
|
6523
6541
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6524
6542
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6525
6543
|
function equals(str, comparison) {
|
|
6526
6544
|
(0, _assertString.default)(str);
|
|
6527
6545
|
return str === comparison;
|
|
6528
6546
|
}
|
|
6529
|
-
module.exports = exports
|
|
6530
|
-
module.exports.default = exports
|
|
6547
|
+
module.exports = exports.default;
|
|
6548
|
+
module.exports.default = exports.default;
|
|
6531
6549
|
} (equals, equals.exports));
|
|
6532
6550
|
|
|
6533
6551
|
var equalsExports = equals.exports;
|
|
@@ -6536,12 +6554,12 @@ var contains = {exports: {}};
|
|
|
6536
6554
|
|
|
6537
6555
|
var toString$1 = {exports: {}};
|
|
6538
6556
|
|
|
6539
|
-
(function (module, exports
|
|
6557
|
+
(function (module, exports) {
|
|
6540
6558
|
|
|
6541
|
-
Object.defineProperty(exports
|
|
6559
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6542
6560
|
value: true
|
|
6543
6561
|
});
|
|
6544
|
-
exports
|
|
6562
|
+
exports.default = toString;
|
|
6545
6563
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
6546
6564
|
function toString(input) {
|
|
6547
6565
|
if (_typeof(input) === 'object' && input !== null) {
|
|
@@ -6555,23 +6573,27 @@ var toString$1 = {exports: {}};
|
|
|
6555
6573
|
}
|
|
6556
6574
|
return String(input);
|
|
6557
6575
|
}
|
|
6558
|
-
module.exports = exports
|
|
6559
|
-
module.exports.default = exports
|
|
6576
|
+
module.exports = exports.default;
|
|
6577
|
+
module.exports.default = exports.default;
|
|
6560
6578
|
} (toString$1, toString$1.exports));
|
|
6561
6579
|
|
|
6562
6580
|
var toStringExports = toString$1.exports;
|
|
6563
6581
|
|
|
6564
6582
|
var merge = {exports: {}};
|
|
6565
6583
|
|
|
6566
|
-
(function (module, exports
|
|
6584
|
+
(function (module, exports) {
|
|
6567
6585
|
|
|
6568
|
-
Object.defineProperty(exports
|
|
6586
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6569
6587
|
value: true
|
|
6570
6588
|
});
|
|
6571
|
-
exports
|
|
6589
|
+
exports.default = merge;
|
|
6590
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
6572
6591
|
function merge() {
|
|
6573
6592
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
6574
6593
|
var defaults = arguments.length > 1 ? arguments[1] : undefined;
|
|
6594
|
+
if (_typeof(obj) !== 'object' || obj === null) {
|
|
6595
|
+
obj = {};
|
|
6596
|
+
}
|
|
6575
6597
|
for (var key in defaults) {
|
|
6576
6598
|
if (typeof obj[key] === 'undefined') {
|
|
6577
6599
|
obj[key] = defaults[key];
|
|
@@ -6579,18 +6601,18 @@ var merge = {exports: {}};
|
|
|
6579
6601
|
}
|
|
6580
6602
|
return obj;
|
|
6581
6603
|
}
|
|
6582
|
-
module.exports = exports
|
|
6583
|
-
module.exports.default = exports
|
|
6604
|
+
module.exports = exports.default;
|
|
6605
|
+
module.exports.default = exports.default;
|
|
6584
6606
|
} (merge, merge.exports));
|
|
6585
6607
|
|
|
6586
6608
|
var mergeExports = merge.exports;
|
|
6587
6609
|
|
|
6588
|
-
(function (module, exports
|
|
6610
|
+
(function (module, exports) {
|
|
6589
6611
|
|
|
6590
|
-
Object.defineProperty(exports
|
|
6612
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6591
6613
|
value: true
|
|
6592
6614
|
});
|
|
6593
|
-
exports
|
|
6615
|
+
exports.default = contains;
|
|
6594
6616
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6595
6617
|
var _toString = _interopRequireDefault(toStringExports);
|
|
6596
6618
|
var _merge = _interopRequireDefault(mergeExports);
|
|
@@ -6607,20 +6629,20 @@ var mergeExports = merge.exports;
|
|
|
6607
6629
|
}
|
|
6608
6630
|
return str.split((0, _toString.default)(elem)).length > options.minOccurrences;
|
|
6609
6631
|
}
|
|
6610
|
-
module.exports = exports
|
|
6611
|
-
module.exports.default = exports
|
|
6632
|
+
module.exports = exports.default;
|
|
6633
|
+
module.exports.default = exports.default;
|
|
6612
6634
|
} (contains, contains.exports));
|
|
6613
6635
|
|
|
6614
6636
|
var containsExports = contains.exports;
|
|
6615
6637
|
|
|
6616
6638
|
var matches = {exports: {}};
|
|
6617
6639
|
|
|
6618
|
-
(function (module, exports
|
|
6640
|
+
(function (module, exports) {
|
|
6619
6641
|
|
|
6620
|
-
Object.defineProperty(exports
|
|
6642
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6621
6643
|
value: true
|
|
6622
6644
|
});
|
|
6623
|
-
exports
|
|
6645
|
+
exports.default = matches;
|
|
6624
6646
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6625
6647
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6626
6648
|
function matches(str, pattern, modifiers) {
|
|
@@ -6630,8 +6652,8 @@ var matches = {exports: {}};
|
|
|
6630
6652
|
}
|
|
6631
6653
|
return !!str.match(pattern);
|
|
6632
6654
|
}
|
|
6633
|
-
module.exports = exports
|
|
6634
|
-
module.exports.default = exports
|
|
6655
|
+
module.exports = exports.default;
|
|
6656
|
+
module.exports.default = exports.default;
|
|
6635
6657
|
} (matches, matches.exports));
|
|
6636
6658
|
|
|
6637
6659
|
var matchesExports = matches.exports;
|
|
@@ -6640,12 +6662,12 @@ var isEmail = {exports: {}};
|
|
|
6640
6662
|
|
|
6641
6663
|
var checkHost = {exports: {}};
|
|
6642
6664
|
|
|
6643
|
-
(function (module, exports
|
|
6665
|
+
(function (module, exports) {
|
|
6644
6666
|
|
|
6645
|
-
Object.defineProperty(exports
|
|
6667
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6646
6668
|
value: true
|
|
6647
6669
|
});
|
|
6648
|
-
exports
|
|
6670
|
+
exports.default = checkHost;
|
|
6649
6671
|
function isRegExp(obj) {
|
|
6650
6672
|
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
6651
6673
|
}
|
|
@@ -6658,20 +6680,20 @@ var checkHost = {exports: {}};
|
|
|
6658
6680
|
}
|
|
6659
6681
|
return false;
|
|
6660
6682
|
}
|
|
6661
|
-
module.exports = exports
|
|
6662
|
-
module.exports.default = exports
|
|
6683
|
+
module.exports = exports.default;
|
|
6684
|
+
module.exports.default = exports.default;
|
|
6663
6685
|
} (checkHost, checkHost.exports));
|
|
6664
6686
|
|
|
6665
6687
|
var checkHostExports = checkHost.exports;
|
|
6666
6688
|
|
|
6667
6689
|
var isByteLength = {exports: {}};
|
|
6668
6690
|
|
|
6669
|
-
(function (module, exports
|
|
6691
|
+
(function (module, exports) {
|
|
6670
6692
|
|
|
6671
|
-
Object.defineProperty(exports
|
|
6693
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6672
6694
|
value: true
|
|
6673
6695
|
});
|
|
6674
|
-
exports
|
|
6696
|
+
exports.default = isByteLength;
|
|
6675
6697
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6676
6698
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6677
6699
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -6691,20 +6713,20 @@ var isByteLength = {exports: {}};
|
|
|
6691
6713
|
var len = encodeURI(str).split(/%..|./).length - 1;
|
|
6692
6714
|
return len >= min && (typeof max === 'undefined' || len <= max);
|
|
6693
6715
|
}
|
|
6694
|
-
module.exports = exports
|
|
6695
|
-
module.exports.default = exports
|
|
6716
|
+
module.exports = exports.default;
|
|
6717
|
+
module.exports.default = exports.default;
|
|
6696
6718
|
} (isByteLength, isByteLength.exports));
|
|
6697
6719
|
|
|
6698
6720
|
var isByteLengthExports = isByteLength.exports;
|
|
6699
6721
|
|
|
6700
6722
|
var isFQDN = {exports: {}};
|
|
6701
6723
|
|
|
6702
|
-
(function (module, exports
|
|
6724
|
+
(function (module, exports) {
|
|
6703
6725
|
|
|
6704
|
-
Object.defineProperty(exports
|
|
6726
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6705
6727
|
value: true
|
|
6706
6728
|
});
|
|
6707
|
-
exports
|
|
6729
|
+
exports.default = isFQDN;
|
|
6708
6730
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6709
6731
|
var _merge = _interopRequireDefault(mergeExports);
|
|
6710
6732
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -6773,20 +6795,20 @@ var isFQDN = {exports: {}};
|
|
|
6773
6795
|
return true;
|
|
6774
6796
|
});
|
|
6775
6797
|
}
|
|
6776
|
-
module.exports = exports
|
|
6777
|
-
module.exports.default = exports
|
|
6798
|
+
module.exports = exports.default;
|
|
6799
|
+
module.exports.default = exports.default;
|
|
6778
6800
|
} (isFQDN, isFQDN.exports));
|
|
6779
6801
|
|
|
6780
6802
|
var isFQDNExports = isFQDN.exports;
|
|
6781
6803
|
|
|
6782
6804
|
var isIP = {exports: {}};
|
|
6783
6805
|
|
|
6784
|
-
(function (module, exports
|
|
6806
|
+
(function (module, exports) {
|
|
6785
6807
|
|
|
6786
|
-
Object.defineProperty(exports
|
|
6808
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6787
6809
|
value: true
|
|
6788
6810
|
});
|
|
6789
|
-
exports
|
|
6811
|
+
exports.default = isIP;
|
|
6790
6812
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6791
6813
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6792
6814
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -6846,18 +6868,18 @@ var isIP = {exports: {}};
|
|
|
6846
6868
|
}
|
|
6847
6869
|
return false;
|
|
6848
6870
|
}
|
|
6849
|
-
module.exports = exports
|
|
6850
|
-
module.exports.default = exports
|
|
6871
|
+
module.exports = exports.default;
|
|
6872
|
+
module.exports.default = exports.default;
|
|
6851
6873
|
} (isIP, isIP.exports));
|
|
6852
6874
|
|
|
6853
6875
|
var isIPExports = isIP.exports;
|
|
6854
6876
|
|
|
6855
|
-
(function (module, exports
|
|
6877
|
+
(function (module, exports) {
|
|
6856
6878
|
|
|
6857
|
-
Object.defineProperty(exports
|
|
6879
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6858
6880
|
value: true
|
|
6859
6881
|
});
|
|
6860
|
-
exports
|
|
6882
|
+
exports.default = isEmail;
|
|
6861
6883
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6862
6884
|
var _checkHost = _interopRequireDefault(checkHostExports);
|
|
6863
6885
|
var _isByteLength = _interopRequireDefault(isByteLengthExports);
|
|
@@ -7024,8 +7046,8 @@ var isIPExports = isIP.exports;
|
|
|
7024
7046
|
}
|
|
7025
7047
|
return true;
|
|
7026
7048
|
}
|
|
7027
|
-
module.exports = exports
|
|
7028
|
-
module.exports.default = exports
|
|
7049
|
+
module.exports = exports.default;
|
|
7050
|
+
module.exports.default = exports.default;
|
|
7029
7051
|
} (isEmail, isEmail.exports));
|
|
7030
7052
|
|
|
7031
7053
|
var isEmailExports = isEmail.exports;
|
|
@@ -7034,28 +7056,28 @@ var isURL = {exports: {}};
|
|
|
7034
7056
|
|
|
7035
7057
|
var includesString = {exports: {}};
|
|
7036
7058
|
|
|
7037
|
-
(function (module, exports
|
|
7059
|
+
(function (module, exports) {
|
|
7038
7060
|
|
|
7039
|
-
Object.defineProperty(exports
|
|
7061
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7040
7062
|
value: true
|
|
7041
7063
|
});
|
|
7042
|
-
exports
|
|
7064
|
+
exports.default = void 0;
|
|
7043
7065
|
var includes = function includes(str, val) {
|
|
7044
7066
|
return str.indexOf(val) !== -1;
|
|
7045
7067
|
};
|
|
7046
|
-
exports
|
|
7047
|
-
module.exports = exports
|
|
7048
|
-
module.exports.default = exports
|
|
7068
|
+
exports.default = includes;
|
|
7069
|
+
module.exports = exports.default;
|
|
7070
|
+
module.exports.default = exports.default;
|
|
7049
7071
|
} (includesString, includesString.exports));
|
|
7050
7072
|
|
|
7051
7073
|
var includesStringExports = includesString.exports;
|
|
7052
7074
|
|
|
7053
|
-
(function (module, exports
|
|
7075
|
+
(function (module, exports) {
|
|
7054
7076
|
|
|
7055
|
-
Object.defineProperty(exports
|
|
7077
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7056
7078
|
value: true
|
|
7057
7079
|
});
|
|
7058
|
-
exports
|
|
7080
|
+
exports.default = isURL;
|
|
7059
7081
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7060
7082
|
var _checkHost = _interopRequireDefault(checkHostExports);
|
|
7061
7083
|
var _includesString = _interopRequireDefault(includesStringExports);
|
|
@@ -7297,20 +7319,20 @@ var includesStringExports = includesString.exports;
|
|
|
7297
7319
|
}
|
|
7298
7320
|
return true;
|
|
7299
7321
|
}
|
|
7300
|
-
module.exports = exports
|
|
7301
|
-
module.exports.default = exports
|
|
7322
|
+
module.exports = exports.default;
|
|
7323
|
+
module.exports.default = exports.default;
|
|
7302
7324
|
} (isURL, isURL.exports));
|
|
7303
7325
|
|
|
7304
7326
|
var isURLExports = isURL.exports;
|
|
7305
7327
|
|
|
7306
7328
|
var isMACAddress = {exports: {}};
|
|
7307
7329
|
|
|
7308
|
-
(function (module, exports
|
|
7330
|
+
(function (module, exports) {
|
|
7309
7331
|
|
|
7310
|
-
Object.defineProperty(exports
|
|
7332
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7311
7333
|
value: true
|
|
7312
7334
|
});
|
|
7313
|
-
exports
|
|
7335
|
+
exports.default = isMACAddress;
|
|
7314
7336
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7315
7337
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7316
7338
|
var macAddress48 = /^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/;
|
|
@@ -7348,20 +7370,20 @@ var isMACAddress = {exports: {}};
|
|
|
7348
7370
|
eui: '64'
|
|
7349
7371
|
});
|
|
7350
7372
|
}
|
|
7351
|
-
module.exports = exports
|
|
7352
|
-
module.exports.default = exports
|
|
7373
|
+
module.exports = exports.default;
|
|
7374
|
+
module.exports.default = exports.default;
|
|
7353
7375
|
} (isMACAddress, isMACAddress.exports));
|
|
7354
7376
|
|
|
7355
7377
|
var isMACAddressExports = isMACAddress.exports;
|
|
7356
7378
|
|
|
7357
7379
|
var isIPRange = {exports: {}};
|
|
7358
7380
|
|
|
7359
|
-
(function (module, exports
|
|
7381
|
+
(function (module, exports) {
|
|
7360
7382
|
|
|
7361
|
-
Object.defineProperty(exports
|
|
7383
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7362
7384
|
value: true
|
|
7363
7385
|
});
|
|
7364
|
-
exports
|
|
7386
|
+
exports.default = isIPRange;
|
|
7365
7387
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7366
7388
|
var _isIP = _interopRequireDefault(isIPExports);
|
|
7367
7389
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -7404,20 +7426,20 @@ var isIPRange = {exports: {}};
|
|
|
7404
7426
|
}
|
|
7405
7427
|
return parts[1] <= expectedSubnet && parts[1] >= 0;
|
|
7406
7428
|
}
|
|
7407
|
-
module.exports = exports
|
|
7408
|
-
module.exports.default = exports
|
|
7429
|
+
module.exports = exports.default;
|
|
7430
|
+
module.exports.default = exports.default;
|
|
7409
7431
|
} (isIPRange, isIPRange.exports));
|
|
7410
7432
|
|
|
7411
7433
|
var isIPRangeExports = isIPRange.exports;
|
|
7412
7434
|
|
|
7413
7435
|
var isDate$1 = {exports: {}};
|
|
7414
7436
|
|
|
7415
|
-
(function (module, exports
|
|
7437
|
+
(function (module, exports) {
|
|
7416
7438
|
|
|
7417
|
-
Object.defineProperty(exports
|
|
7439
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7418
7440
|
value: true
|
|
7419
7441
|
});
|
|
7420
|
-
exports
|
|
7442
|
+
exports.default = isDate;
|
|
7421
7443
|
var _merge = _interopRequireDefault(mergeExports);
|
|
7422
7444
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7423
7445
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
@@ -7512,20 +7534,20 @@ var isDate$1 = {exports: {}};
|
|
|
7512
7534
|
}
|
|
7513
7535
|
return false;
|
|
7514
7536
|
}
|
|
7515
|
-
module.exports = exports
|
|
7516
|
-
module.exports.default = exports
|
|
7537
|
+
module.exports = exports.default;
|
|
7538
|
+
module.exports.default = exports.default;
|
|
7517
7539
|
} (isDate$1, isDate$1.exports));
|
|
7518
7540
|
|
|
7519
7541
|
var isDateExports = isDate$1.exports;
|
|
7520
7542
|
|
|
7521
7543
|
var isTime = {exports: {}};
|
|
7522
7544
|
|
|
7523
|
-
(function (module, exports
|
|
7545
|
+
(function (module, exports) {
|
|
7524
7546
|
|
|
7525
|
-
Object.defineProperty(exports
|
|
7547
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7526
7548
|
value: true
|
|
7527
7549
|
});
|
|
7528
|
-
exports
|
|
7550
|
+
exports.default = isTime;
|
|
7529
7551
|
var _merge = _interopRequireDefault(mergeExports);
|
|
7530
7552
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7531
7553
|
var default_time_options = {
|
|
@@ -7549,8 +7571,8 @@ var isTime = {exports: {}};
|
|
|
7549
7571
|
if (typeof input !== 'string') return false;
|
|
7550
7572
|
return formats[options.hourFormat][options.mode].test(input);
|
|
7551
7573
|
}
|
|
7552
|
-
module.exports = exports
|
|
7553
|
-
module.exports.default = exports
|
|
7574
|
+
module.exports = exports.default;
|
|
7575
|
+
module.exports.default = exports.default;
|
|
7554
7576
|
} (isTime, isTime.exports));
|
|
7555
7577
|
|
|
7556
7578
|
var isTimeExports = isTime.exports;
|
|
@@ -7559,30 +7581,30 @@ var isBoolean = {exports: {}};
|
|
|
7559
7581
|
|
|
7560
7582
|
var includesArray = {exports: {}};
|
|
7561
7583
|
|
|
7562
|
-
(function (module, exports
|
|
7584
|
+
(function (module, exports) {
|
|
7563
7585
|
|
|
7564
|
-
Object.defineProperty(exports
|
|
7586
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7565
7587
|
value: true
|
|
7566
7588
|
});
|
|
7567
|
-
exports
|
|
7589
|
+
exports.default = void 0;
|
|
7568
7590
|
var includes = function includes(arr, val) {
|
|
7569
7591
|
return arr.some(function (arrVal) {
|
|
7570
7592
|
return val === arrVal;
|
|
7571
7593
|
});
|
|
7572
7594
|
};
|
|
7573
|
-
exports
|
|
7574
|
-
module.exports = exports
|
|
7575
|
-
module.exports.default = exports
|
|
7595
|
+
exports.default = includes;
|
|
7596
|
+
module.exports = exports.default;
|
|
7597
|
+
module.exports.default = exports.default;
|
|
7576
7598
|
} (includesArray, includesArray.exports));
|
|
7577
7599
|
|
|
7578
7600
|
var includesArrayExports = includesArray.exports;
|
|
7579
7601
|
|
|
7580
|
-
(function (module, exports
|
|
7602
|
+
(function (module, exports) {
|
|
7581
7603
|
|
|
7582
|
-
Object.defineProperty(exports
|
|
7604
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7583
7605
|
value: true
|
|
7584
7606
|
});
|
|
7585
|
-
exports
|
|
7607
|
+
exports.default = isBoolean;
|
|
7586
7608
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7587
7609
|
var _includesArray = _interopRequireDefault(includesArrayExports);
|
|
7588
7610
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -7599,20 +7621,20 @@ var includesArrayExports = includesArray.exports;
|
|
|
7599
7621
|
}
|
|
7600
7622
|
return (0, _includesArray.default)(strictBooleans, str);
|
|
7601
7623
|
}
|
|
7602
|
-
module.exports = exports
|
|
7603
|
-
module.exports.default = exports
|
|
7624
|
+
module.exports = exports.default;
|
|
7625
|
+
module.exports.default = exports.default;
|
|
7604
7626
|
} (isBoolean, isBoolean.exports));
|
|
7605
7627
|
|
|
7606
7628
|
var isBooleanExports = isBoolean.exports;
|
|
7607
7629
|
|
|
7608
7630
|
var isLocale = {exports: {}};
|
|
7609
7631
|
|
|
7610
|
-
(function (module, exports
|
|
7632
|
+
(function (module, exports) {
|
|
7611
7633
|
|
|
7612
|
-
Object.defineProperty(exports
|
|
7634
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7613
7635
|
value: true
|
|
7614
7636
|
});
|
|
7615
|
-
exports
|
|
7637
|
+
exports.default = isLocale;
|
|
7616
7638
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7617
7639
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7618
7640
|
/*
|
|
@@ -7720,20 +7742,20 @@ var isLocale = {exports: {}};
|
|
|
7720
7742
|
(0, _assertString.default)(str);
|
|
7721
7743
|
return languageTagRegex.test(str);
|
|
7722
7744
|
}
|
|
7723
|
-
module.exports = exports
|
|
7724
|
-
module.exports.default = exports
|
|
7745
|
+
module.exports = exports.default;
|
|
7746
|
+
module.exports.default = exports.default;
|
|
7725
7747
|
} (isLocale, isLocale.exports));
|
|
7726
7748
|
|
|
7727
7749
|
var isLocaleExports = isLocale.exports;
|
|
7728
7750
|
|
|
7729
7751
|
var isAbaRouting = {exports: {}};
|
|
7730
7752
|
|
|
7731
|
-
(function (module, exports
|
|
7753
|
+
(function (module, exports) {
|
|
7732
7754
|
|
|
7733
|
-
Object.defineProperty(exports
|
|
7755
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7734
7756
|
value: true
|
|
7735
7757
|
});
|
|
7736
|
-
exports
|
|
7758
|
+
exports.default = isAbaRouting;
|
|
7737
7759
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7738
7760
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7739
7761
|
// http://www.brainjar.com/js/validation/
|
|
@@ -7749,8 +7771,8 @@ var isAbaRouting = {exports: {}};
|
|
|
7749
7771
|
}
|
|
7750
7772
|
return checkSumVal % 10 === 0;
|
|
7751
7773
|
}
|
|
7752
|
-
module.exports = exports
|
|
7753
|
-
module.exports.default = exports
|
|
7774
|
+
module.exports = exports.default;
|
|
7775
|
+
module.exports.default = exports.default;
|
|
7754
7776
|
} (isAbaRouting, isAbaRouting.exports));
|
|
7755
7777
|
|
|
7756
7778
|
var isAbaRoutingExports = isAbaRouting.exports;
|
|
@@ -7821,12 +7843,12 @@ isAlphanumeric$1.locales = Object.keys(_alpha.alphanumeric);
|
|
|
7821
7843
|
|
|
7822
7844
|
var isNumeric = {exports: {}};
|
|
7823
7845
|
|
|
7824
|
-
(function (module, exports
|
|
7846
|
+
(function (module, exports) {
|
|
7825
7847
|
|
|
7826
|
-
Object.defineProperty(exports
|
|
7848
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7827
7849
|
value: true
|
|
7828
7850
|
});
|
|
7829
|
-
exports
|
|
7851
|
+
exports.default = isNumeric;
|
|
7830
7852
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7831
7853
|
var _alpha = alpha$1;
|
|
7832
7854
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -7838,8 +7860,8 @@ var isNumeric = {exports: {}};
|
|
|
7838
7860
|
}
|
|
7839
7861
|
return new RegExp("^[+-]?([0-9]*[".concat((options || {}).locale ? _alpha.decimal[options.locale] : '.', "])?[0-9]+$")).test(str);
|
|
7840
7862
|
}
|
|
7841
|
-
module.exports = exports
|
|
7842
|
-
module.exports.default = exports
|
|
7863
|
+
module.exports = exports.default;
|
|
7864
|
+
module.exports.default = exports.default;
|
|
7843
7865
|
} (isNumeric, isNumeric.exports));
|
|
7844
7866
|
|
|
7845
7867
|
var isNumericExports = isNumeric.exports;
|
|
@@ -7946,7 +7968,7 @@ var passportRegexByCountryCode = {
|
|
|
7946
7968
|
// MOZAMBIQUE
|
|
7947
7969
|
MY: /^[AHK]\d{8}$/,
|
|
7948
7970
|
// MALAYSIA
|
|
7949
|
-
MX:
|
|
7971
|
+
MX: /^[A-Z]\d{8}$/,
|
|
7950
7972
|
// MEXICO
|
|
7951
7973
|
NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/,
|
|
7952
7974
|
// NETHERLANDS
|
|
@@ -8001,12 +8023,12 @@ var isPort = {exports: {}};
|
|
|
8001
8023
|
|
|
8002
8024
|
var isInt$1 = {exports: {}};
|
|
8003
8025
|
|
|
8004
|
-
(function (module, exports
|
|
8026
|
+
(function (module, exports) {
|
|
8005
8027
|
|
|
8006
|
-
Object.defineProperty(exports
|
|
8028
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8007
8029
|
value: true
|
|
8008
8030
|
});
|
|
8009
|
-
exports
|
|
8031
|
+
exports.default = isInt;
|
|
8010
8032
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8011
8033
|
var _nullUndefinedCheck = _interopRequireDefault(nullUndefinedCheckExports);
|
|
8012
8034
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8027,18 +8049,18 @@ var isInt$1 = {exports: {}};
|
|
|
8027
8049
|
var gtCheckPassed = !options.hasOwnProperty('gt') || (0, _nullUndefinedCheck.default)(options.gt) || str > options.gt;
|
|
8028
8050
|
return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;
|
|
8029
8051
|
}
|
|
8030
|
-
module.exports = exports
|
|
8031
|
-
module.exports.default = exports
|
|
8052
|
+
module.exports = exports.default;
|
|
8053
|
+
module.exports.default = exports.default;
|
|
8032
8054
|
} (isInt$1, isInt$1.exports));
|
|
8033
8055
|
|
|
8034
8056
|
var isIntExports = isInt$1.exports;
|
|
8035
8057
|
|
|
8036
|
-
(function (module, exports
|
|
8058
|
+
(function (module, exports) {
|
|
8037
8059
|
|
|
8038
|
-
Object.defineProperty(exports
|
|
8060
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8039
8061
|
value: true
|
|
8040
8062
|
});
|
|
8041
|
-
exports
|
|
8063
|
+
exports.default = isPort;
|
|
8042
8064
|
var _isInt = _interopRequireDefault(isIntExports);
|
|
8043
8065
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8044
8066
|
function isPort(str) {
|
|
@@ -8048,60 +8070,60 @@ var isIntExports = isInt$1.exports;
|
|
|
8048
8070
|
max: 65535
|
|
8049
8071
|
});
|
|
8050
8072
|
}
|
|
8051
|
-
module.exports = exports
|
|
8052
|
-
module.exports.default = exports
|
|
8073
|
+
module.exports = exports.default;
|
|
8074
|
+
module.exports.default = exports.default;
|
|
8053
8075
|
} (isPort, isPort.exports));
|
|
8054
8076
|
|
|
8055
8077
|
var isPortExports = isPort.exports;
|
|
8056
8078
|
|
|
8057
8079
|
var isLowercase = {exports: {}};
|
|
8058
8080
|
|
|
8059
|
-
(function (module, exports
|
|
8081
|
+
(function (module, exports) {
|
|
8060
8082
|
|
|
8061
|
-
Object.defineProperty(exports
|
|
8083
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8062
8084
|
value: true
|
|
8063
8085
|
});
|
|
8064
|
-
exports
|
|
8086
|
+
exports.default = isLowercase;
|
|
8065
8087
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8066
8088
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8067
8089
|
function isLowercase(str) {
|
|
8068
8090
|
(0, _assertString.default)(str);
|
|
8069
8091
|
return str === str.toLowerCase();
|
|
8070
8092
|
}
|
|
8071
|
-
module.exports = exports
|
|
8072
|
-
module.exports.default = exports
|
|
8093
|
+
module.exports = exports.default;
|
|
8094
|
+
module.exports.default = exports.default;
|
|
8073
8095
|
} (isLowercase, isLowercase.exports));
|
|
8074
8096
|
|
|
8075
8097
|
var isLowercaseExports = isLowercase.exports;
|
|
8076
8098
|
|
|
8077
8099
|
var isUppercase = {exports: {}};
|
|
8078
8100
|
|
|
8079
|
-
(function (module, exports
|
|
8101
|
+
(function (module, exports) {
|
|
8080
8102
|
|
|
8081
|
-
Object.defineProperty(exports
|
|
8103
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8082
8104
|
value: true
|
|
8083
8105
|
});
|
|
8084
|
-
exports
|
|
8106
|
+
exports.default = isUppercase;
|
|
8085
8107
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8086
8108
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8087
8109
|
function isUppercase(str) {
|
|
8088
8110
|
(0, _assertString.default)(str);
|
|
8089
8111
|
return str === str.toUpperCase();
|
|
8090
8112
|
}
|
|
8091
|
-
module.exports = exports
|
|
8092
|
-
module.exports.default = exports
|
|
8113
|
+
module.exports = exports.default;
|
|
8114
|
+
module.exports.default = exports.default;
|
|
8093
8115
|
} (isUppercase, isUppercase.exports));
|
|
8094
8116
|
|
|
8095
8117
|
var isUppercaseExports = isUppercase.exports;
|
|
8096
8118
|
|
|
8097
8119
|
var isIMEI = {exports: {}};
|
|
8098
8120
|
|
|
8099
|
-
(function (module, exports
|
|
8121
|
+
(function (module, exports) {
|
|
8100
8122
|
|
|
8101
|
-
Object.defineProperty(exports
|
|
8123
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8102
8124
|
value: true
|
|
8103
8125
|
});
|
|
8104
|
-
exports
|
|
8126
|
+
exports.default = isIMEI;
|
|
8105
8127
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8106
8128
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8107
8129
|
var imeiRegexWithoutHyphens = /^[0-9]{15}$/;
|
|
@@ -8143,20 +8165,20 @@ var isIMEI = {exports: {}};
|
|
|
8143
8165
|
}
|
|
8144
8166
|
return true;
|
|
8145
8167
|
}
|
|
8146
|
-
module.exports = exports
|
|
8147
|
-
module.exports.default = exports
|
|
8168
|
+
module.exports = exports.default;
|
|
8169
|
+
module.exports.default = exports.default;
|
|
8148
8170
|
} (isIMEI, isIMEI.exports));
|
|
8149
8171
|
|
|
8150
8172
|
var isIMEIExports = isIMEI.exports;
|
|
8151
8173
|
|
|
8152
8174
|
var isAscii = {exports: {}};
|
|
8153
8175
|
|
|
8154
|
-
(function (module, exports
|
|
8176
|
+
(function (module, exports) {
|
|
8155
8177
|
|
|
8156
|
-
Object.defineProperty(exports
|
|
8178
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8157
8179
|
value: true
|
|
8158
8180
|
});
|
|
8159
|
-
exports
|
|
8181
|
+
exports.default = isAscii;
|
|
8160
8182
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8161
8183
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8162
8184
|
/* eslint-disable no-control-regex */
|
|
@@ -8167,8 +8189,8 @@ var isAscii = {exports: {}};
|
|
|
8167
8189
|
(0, _assertString.default)(str);
|
|
8168
8190
|
return ascii.test(str);
|
|
8169
8191
|
}
|
|
8170
|
-
module.exports = exports
|
|
8171
|
-
module.exports.default = exports
|
|
8192
|
+
module.exports = exports.default;
|
|
8193
|
+
module.exports.default = exports.default;
|
|
8172
8194
|
} (isAscii, isAscii.exports));
|
|
8173
8195
|
|
|
8174
8196
|
var isAsciiExports = isAscii.exports;
|
|
@@ -8205,12 +8227,12 @@ function isHalfWidth(str) {
|
|
|
8205
8227
|
|
|
8206
8228
|
var isVariableWidth = {exports: {}};
|
|
8207
8229
|
|
|
8208
|
-
(function (module, exports
|
|
8230
|
+
(function (module, exports) {
|
|
8209
8231
|
|
|
8210
|
-
Object.defineProperty(exports
|
|
8232
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8211
8233
|
value: true
|
|
8212
8234
|
});
|
|
8213
|
-
exports
|
|
8235
|
+
exports.default = isVariableWidth;
|
|
8214
8236
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8215
8237
|
var _isFullWidth = isFullWidth$1;
|
|
8216
8238
|
var _isHalfWidth = isHalfWidth$1;
|
|
@@ -8219,20 +8241,20 @@ var isVariableWidth = {exports: {}};
|
|
|
8219
8241
|
(0, _assertString.default)(str);
|
|
8220
8242
|
return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);
|
|
8221
8243
|
}
|
|
8222
|
-
module.exports = exports
|
|
8223
|
-
module.exports.default = exports
|
|
8244
|
+
module.exports = exports.default;
|
|
8245
|
+
module.exports.default = exports.default;
|
|
8224
8246
|
} (isVariableWidth, isVariableWidth.exports));
|
|
8225
8247
|
|
|
8226
8248
|
var isVariableWidthExports = isVariableWidth.exports;
|
|
8227
8249
|
|
|
8228
8250
|
var isMultibyte = {exports: {}};
|
|
8229
8251
|
|
|
8230
|
-
(function (module, exports
|
|
8252
|
+
(function (module, exports) {
|
|
8231
8253
|
|
|
8232
|
-
Object.defineProperty(exports
|
|
8254
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8233
8255
|
value: true
|
|
8234
8256
|
});
|
|
8235
|
-
exports
|
|
8257
|
+
exports.default = isMultibyte;
|
|
8236
8258
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8237
8259
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8238
8260
|
/* eslint-disable no-control-regex */
|
|
@@ -8243,8 +8265,8 @@ var isMultibyte = {exports: {}};
|
|
|
8243
8265
|
(0, _assertString.default)(str);
|
|
8244
8266
|
return multibyte.test(str);
|
|
8245
8267
|
}
|
|
8246
|
-
module.exports = exports
|
|
8247
|
-
module.exports.default = exports
|
|
8268
|
+
module.exports = exports.default;
|
|
8269
|
+
module.exports.default = exports.default;
|
|
8248
8270
|
} (isMultibyte, isMultibyte.exports));
|
|
8249
8271
|
|
|
8250
8272
|
var isMultibyteExports = isMultibyte.exports;
|
|
@@ -8253,12 +8275,12 @@ var isSemVer = {exports: {}};
|
|
|
8253
8275
|
|
|
8254
8276
|
var multilineRegex = {exports: {}};
|
|
8255
8277
|
|
|
8256
|
-
(function (module, exports
|
|
8278
|
+
(function (module, exports) {
|
|
8257
8279
|
|
|
8258
|
-
Object.defineProperty(exports
|
|
8280
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8259
8281
|
value: true
|
|
8260
8282
|
});
|
|
8261
|
-
exports
|
|
8283
|
+
exports.default = multilineRegexp;
|
|
8262
8284
|
/**
|
|
8263
8285
|
* Build RegExp object from an array
|
|
8264
8286
|
* of multiple/multi-line regexp parts
|
|
@@ -8271,18 +8293,18 @@ var multilineRegex = {exports: {}};
|
|
|
8271
8293
|
var regexpAsStringLiteral = parts.join('');
|
|
8272
8294
|
return new RegExp(regexpAsStringLiteral, flags);
|
|
8273
8295
|
}
|
|
8274
|
-
module.exports = exports
|
|
8275
|
-
module.exports.default = exports
|
|
8296
|
+
module.exports = exports.default;
|
|
8297
|
+
module.exports.default = exports.default;
|
|
8276
8298
|
} (multilineRegex, multilineRegex.exports));
|
|
8277
8299
|
|
|
8278
8300
|
var multilineRegexExports = multilineRegex.exports;
|
|
8279
8301
|
|
|
8280
|
-
(function (module, exports
|
|
8302
|
+
(function (module, exports) {
|
|
8281
8303
|
|
|
8282
|
-
Object.defineProperty(exports
|
|
8304
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8283
8305
|
value: true
|
|
8284
8306
|
});
|
|
8285
|
-
exports
|
|
8307
|
+
exports.default = isSemVer;
|
|
8286
8308
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8287
8309
|
var _multilineRegex = _interopRequireDefault(multilineRegexExports);
|
|
8288
8310
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8297,20 +8319,20 @@ var multilineRegexExports = multilineRegex.exports;
|
|
|
8297
8319
|
(0, _assertString.default)(str);
|
|
8298
8320
|
return semanticVersioningRegex.test(str);
|
|
8299
8321
|
}
|
|
8300
|
-
module.exports = exports
|
|
8301
|
-
module.exports.default = exports
|
|
8322
|
+
module.exports = exports.default;
|
|
8323
|
+
module.exports.default = exports.default;
|
|
8302
8324
|
} (isSemVer, isSemVer.exports));
|
|
8303
8325
|
|
|
8304
8326
|
var isSemVerExports = isSemVer.exports;
|
|
8305
8327
|
|
|
8306
8328
|
var isSurrogatePair = {exports: {}};
|
|
8307
8329
|
|
|
8308
|
-
(function (module, exports
|
|
8330
|
+
(function (module, exports) {
|
|
8309
8331
|
|
|
8310
|
-
Object.defineProperty(exports
|
|
8332
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8311
8333
|
value: true
|
|
8312
8334
|
});
|
|
8313
|
-
exports
|
|
8335
|
+
exports.default = isSurrogatePair;
|
|
8314
8336
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8315
8337
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8316
8338
|
var surrogatePair = /[\uD800-\uDBFF][\uDC00-\uDFFF]/;
|
|
@@ -8318,20 +8340,20 @@ var isSurrogatePair = {exports: {}};
|
|
|
8318
8340
|
(0, _assertString.default)(str);
|
|
8319
8341
|
return surrogatePair.test(str);
|
|
8320
8342
|
}
|
|
8321
|
-
module.exports = exports
|
|
8322
|
-
module.exports.default = exports
|
|
8343
|
+
module.exports = exports.default;
|
|
8344
|
+
module.exports.default = exports.default;
|
|
8323
8345
|
} (isSurrogatePair, isSurrogatePair.exports));
|
|
8324
8346
|
|
|
8325
8347
|
var isSurrogatePairExports = isSurrogatePair.exports;
|
|
8326
8348
|
|
|
8327
8349
|
var isDecimal = {exports: {}};
|
|
8328
8350
|
|
|
8329
|
-
(function (module, exports
|
|
8351
|
+
(function (module, exports) {
|
|
8330
8352
|
|
|
8331
|
-
Object.defineProperty(exports
|
|
8353
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8332
8354
|
value: true
|
|
8333
8355
|
});
|
|
8334
|
-
exports
|
|
8356
|
+
exports.default = isDecimal;
|
|
8335
8357
|
var _merge = _interopRequireDefault(mergeExports);
|
|
8336
8358
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8337
8359
|
var _includesArray = _interopRequireDefault(includesArrayExports);
|
|
@@ -8355,20 +8377,20 @@ var isDecimal = {exports: {}};
|
|
|
8355
8377
|
}
|
|
8356
8378
|
throw new Error("Invalid locale '".concat(options.locale, "'"));
|
|
8357
8379
|
}
|
|
8358
|
-
module.exports = exports
|
|
8359
|
-
module.exports.default = exports
|
|
8380
|
+
module.exports = exports.default;
|
|
8381
|
+
module.exports.default = exports.default;
|
|
8360
8382
|
} (isDecimal, isDecimal.exports));
|
|
8361
8383
|
|
|
8362
8384
|
var isDecimalExports = isDecimal.exports;
|
|
8363
8385
|
|
|
8364
8386
|
var isHexadecimal = {exports: {}};
|
|
8365
8387
|
|
|
8366
|
-
(function (module, exports
|
|
8388
|
+
(function (module, exports) {
|
|
8367
8389
|
|
|
8368
|
-
Object.defineProperty(exports
|
|
8390
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8369
8391
|
value: true
|
|
8370
8392
|
});
|
|
8371
|
-
exports
|
|
8393
|
+
exports.default = isHexadecimal;
|
|
8372
8394
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8373
8395
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8374
8396
|
var hexadecimal = /^(0x|0h)?[0-9A-F]+$/i;
|
|
@@ -8376,20 +8398,20 @@ var isHexadecimal = {exports: {}};
|
|
|
8376
8398
|
(0, _assertString.default)(str);
|
|
8377
8399
|
return hexadecimal.test(str);
|
|
8378
8400
|
}
|
|
8379
|
-
module.exports = exports
|
|
8380
|
-
module.exports.default = exports
|
|
8401
|
+
module.exports = exports.default;
|
|
8402
|
+
module.exports.default = exports.default;
|
|
8381
8403
|
} (isHexadecimal, isHexadecimal.exports));
|
|
8382
8404
|
|
|
8383
8405
|
var isHexadecimalExports = isHexadecimal.exports;
|
|
8384
8406
|
|
|
8385
8407
|
var isOctal = {exports: {}};
|
|
8386
8408
|
|
|
8387
|
-
(function (module, exports
|
|
8409
|
+
(function (module, exports) {
|
|
8388
8410
|
|
|
8389
|
-
Object.defineProperty(exports
|
|
8411
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8390
8412
|
value: true
|
|
8391
8413
|
});
|
|
8392
|
-
exports
|
|
8414
|
+
exports.default = isOctal;
|
|
8393
8415
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8394
8416
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8395
8417
|
var octal = /^(0o)?[0-7]+$/i;
|
|
@@ -8397,20 +8419,20 @@ var isOctal = {exports: {}};
|
|
|
8397
8419
|
(0, _assertString.default)(str);
|
|
8398
8420
|
return octal.test(str);
|
|
8399
8421
|
}
|
|
8400
|
-
module.exports = exports
|
|
8401
|
-
module.exports.default = exports
|
|
8422
|
+
module.exports = exports.default;
|
|
8423
|
+
module.exports.default = exports.default;
|
|
8402
8424
|
} (isOctal, isOctal.exports));
|
|
8403
8425
|
|
|
8404
8426
|
var isOctalExports = isOctal.exports;
|
|
8405
8427
|
|
|
8406
8428
|
var isDivisibleBy = {exports: {}};
|
|
8407
8429
|
|
|
8408
|
-
(function (module, exports
|
|
8430
|
+
(function (module, exports) {
|
|
8409
8431
|
|
|
8410
|
-
Object.defineProperty(exports
|
|
8432
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8411
8433
|
value: true
|
|
8412
8434
|
});
|
|
8413
|
-
exports
|
|
8435
|
+
exports.default = isDivisibleBy;
|
|
8414
8436
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8415
8437
|
var _toFloat = _interopRequireDefault(toFloatExports);
|
|
8416
8438
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8418,20 +8440,20 @@ var isDivisibleBy = {exports: {}};
|
|
|
8418
8440
|
(0, _assertString.default)(str);
|
|
8419
8441
|
return (0, _toFloat.default)(str) % parseInt(num, 10) === 0;
|
|
8420
8442
|
}
|
|
8421
|
-
module.exports = exports
|
|
8422
|
-
module.exports.default = exports
|
|
8443
|
+
module.exports = exports.default;
|
|
8444
|
+
module.exports.default = exports.default;
|
|
8423
8445
|
} (isDivisibleBy, isDivisibleBy.exports));
|
|
8424
8446
|
|
|
8425
8447
|
var isDivisibleByExports = isDivisibleBy.exports;
|
|
8426
8448
|
|
|
8427
8449
|
var isHexColor = {exports: {}};
|
|
8428
8450
|
|
|
8429
|
-
(function (module, exports
|
|
8451
|
+
(function (module, exports) {
|
|
8430
8452
|
|
|
8431
|
-
Object.defineProperty(exports
|
|
8453
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8432
8454
|
value: true
|
|
8433
8455
|
});
|
|
8434
|
-
exports
|
|
8456
|
+
exports.default = isHexColor;
|
|
8435
8457
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8436
8458
|
var _merge = _interopRequireDefault(mergeExports);
|
|
8437
8459
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8446,20 +8468,20 @@ var isHexColor = {exports: {}};
|
|
|
8446
8468
|
var hexcolor_regex = options.require_hashtag ? hexcolor_with_prefix : hexcolor;
|
|
8447
8469
|
return hexcolor_regex.test(str);
|
|
8448
8470
|
}
|
|
8449
|
-
module.exports = exports
|
|
8450
|
-
module.exports.default = exports
|
|
8471
|
+
module.exports = exports.default;
|
|
8472
|
+
module.exports.default = exports.default;
|
|
8451
8473
|
} (isHexColor, isHexColor.exports));
|
|
8452
8474
|
|
|
8453
8475
|
var isHexColorExports = isHexColor.exports;
|
|
8454
8476
|
|
|
8455
8477
|
var isRgbColor = {exports: {}};
|
|
8456
8478
|
|
|
8457
|
-
(function (module, exports
|
|
8479
|
+
(function (module, exports) {
|
|
8458
8480
|
|
|
8459
|
-
Object.defineProperty(exports
|
|
8481
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8460
8482
|
value: true
|
|
8461
8483
|
});
|
|
8462
|
-
exports
|
|
8484
|
+
exports.default = isRgbColor;
|
|
8463
8485
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8464
8486
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8465
8487
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } /* eslint-disable prefer-rest-params */
|
|
@@ -8482,7 +8504,7 @@ var isRgbColor = {exports: {}};
|
|
|
8482
8504
|
includePercentValues = options.includePercentValues !== undefined ? options.includePercentValues : includePercentValues;
|
|
8483
8505
|
}
|
|
8484
8506
|
if (allowSpaces) {
|
|
8485
|
-
// make sure it starts with
|
|
8507
|
+
// make sure it starts with continuous rgba? without spaces before stripping
|
|
8486
8508
|
if (!startsWithRgb.test(str)) {
|
|
8487
8509
|
return false;
|
|
8488
8510
|
}
|
|
@@ -8494,20 +8516,20 @@ var isRgbColor = {exports: {}};
|
|
|
8494
8516
|
}
|
|
8495
8517
|
return rgbColor.test(str) || rgbaColor.test(str) || rgbColorPercent.test(str) || rgbaColorPercent.test(str);
|
|
8496
8518
|
}
|
|
8497
|
-
module.exports = exports
|
|
8498
|
-
module.exports.default = exports
|
|
8519
|
+
module.exports = exports.default;
|
|
8520
|
+
module.exports.default = exports.default;
|
|
8499
8521
|
} (isRgbColor, isRgbColor.exports));
|
|
8500
8522
|
|
|
8501
8523
|
var isRgbColorExports = isRgbColor.exports;
|
|
8502
8524
|
|
|
8503
8525
|
var isHSL = {exports: {}};
|
|
8504
8526
|
|
|
8505
|
-
(function (module, exports
|
|
8527
|
+
(function (module, exports) {
|
|
8506
8528
|
|
|
8507
|
-
Object.defineProperty(exports
|
|
8529
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8508
8530
|
value: true
|
|
8509
8531
|
});
|
|
8510
|
-
exports
|
|
8532
|
+
exports.default = isHSL;
|
|
8511
8533
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8512
8534
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8513
8535
|
var hslComma = /^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i;
|
|
@@ -8522,20 +8544,20 @@ var isHSL = {exports: {}};
|
|
|
8522
8544
|
}
|
|
8523
8545
|
return hslSpace.test(strippedStr);
|
|
8524
8546
|
}
|
|
8525
|
-
module.exports = exports
|
|
8526
|
-
module.exports.default = exports
|
|
8547
|
+
module.exports = exports.default;
|
|
8548
|
+
module.exports.default = exports.default;
|
|
8527
8549
|
} (isHSL, isHSL.exports));
|
|
8528
8550
|
|
|
8529
8551
|
var isHSLExports = isHSL.exports;
|
|
8530
8552
|
|
|
8531
8553
|
var isISRC = {exports: {}};
|
|
8532
8554
|
|
|
8533
|
-
(function (module, exports
|
|
8555
|
+
(function (module, exports) {
|
|
8534
8556
|
|
|
8535
|
-
Object.defineProperty(exports
|
|
8557
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8536
8558
|
value: true
|
|
8537
8559
|
});
|
|
8538
|
-
exports
|
|
8560
|
+
exports.default = isISRC;
|
|
8539
8561
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8540
8562
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8541
8563
|
// see http://isrc.ifpi.org/en/isrc-standard/code-syntax
|
|
@@ -8544,8 +8566,8 @@ var isISRC = {exports: {}};
|
|
|
8544
8566
|
(0, _assertString.default)(str);
|
|
8545
8567
|
return isrc.test(str);
|
|
8546
8568
|
}
|
|
8547
|
-
module.exports = exports
|
|
8548
|
-
module.exports.default = exports
|
|
8569
|
+
module.exports = exports.default;
|
|
8570
|
+
module.exports.default = exports.default;
|
|
8549
8571
|
} (isISRC, isISRC.exports));
|
|
8550
8572
|
|
|
8551
8573
|
var isISRCExports = isISRC.exports;
|
|
@@ -8660,10 +8682,7 @@ function hasOnlyValidCountryCodes(countryCodeArray) {
|
|
|
8660
8682
|
var countryCodeArrayFilteredWithObjectIbanCode = countryCodeArray.filter(function (countryCode) {
|
|
8661
8683
|
return !(countryCode in ibanRegexThroughCountryCode);
|
|
8662
8684
|
});
|
|
8663
|
-
|
|
8664
|
-
return false;
|
|
8665
|
-
}
|
|
8666
|
-
return true;
|
|
8685
|
+
return countryCodeArrayFilteredWithObjectIbanCode.length === 0;
|
|
8667
8686
|
}
|
|
8668
8687
|
|
|
8669
8688
|
/**
|
|
@@ -8745,18 +8764,30 @@ var _assertString$6 = _interopRequireDefault$6(assertStringExports);
|
|
|
8745
8764
|
function _interopRequireDefault$6(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8746
8765
|
// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
8747
8766
|
var validISO31661Alpha2CountriesCodes = new Set(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']);
|
|
8767
|
+
var alpha2CountryCode = /^[a-zA-Z]{2}$/;
|
|
8748
8768
|
function isISO31661Alpha2(str) {
|
|
8769
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8749
8770
|
(0, _assertString$6.default)(str);
|
|
8771
|
+
var userAssignedCodes = options.userAssignedCodes;
|
|
8772
|
+
var validUserAssignedCodes = (userAssignedCodes || []).reduce(function (accumulator, userAssignedCode) {
|
|
8773
|
+
if (alpha2CountryCode.test(userAssignedCode)) {
|
|
8774
|
+
accumulator.push(userAssignedCode.toUpperCase());
|
|
8775
|
+
}
|
|
8776
|
+
return accumulator;
|
|
8777
|
+
}, []);
|
|
8778
|
+
if (validUserAssignedCodes.includes(str.toUpperCase())) {
|
|
8779
|
+
return true;
|
|
8780
|
+
}
|
|
8750
8781
|
return validISO31661Alpha2CountriesCodes.has(str.toUpperCase());
|
|
8751
8782
|
}
|
|
8752
8783
|
isISO31661Alpha2$1.CountryCodes = validISO31661Alpha2CountriesCodes;
|
|
8753
8784
|
|
|
8754
|
-
(function (module, exports
|
|
8785
|
+
(function (module, exports) {
|
|
8755
8786
|
|
|
8756
|
-
Object.defineProperty(exports
|
|
8787
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8757
8788
|
value: true
|
|
8758
8789
|
});
|
|
8759
|
-
exports
|
|
8790
|
+
exports.default = isBIC;
|
|
8760
8791
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8761
8792
|
var _isISO31661Alpha = isISO31661Alpha2$1;
|
|
8762
8793
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8773,20 +8804,20 @@ isISO31661Alpha2$1.CountryCodes = validISO31661Alpha2CountriesCodes;
|
|
|
8773
8804
|
}
|
|
8774
8805
|
return isBICReg.test(str);
|
|
8775
8806
|
}
|
|
8776
|
-
module.exports = exports
|
|
8777
|
-
module.exports.default = exports
|
|
8807
|
+
module.exports = exports.default;
|
|
8808
|
+
module.exports.default = exports.default;
|
|
8778
8809
|
} (isBIC, isBIC.exports));
|
|
8779
8810
|
|
|
8780
8811
|
var isBICExports = isBIC.exports;
|
|
8781
8812
|
|
|
8782
8813
|
var isMD5 = {exports: {}};
|
|
8783
8814
|
|
|
8784
|
-
(function (module, exports
|
|
8815
|
+
(function (module, exports) {
|
|
8785
8816
|
|
|
8786
|
-
Object.defineProperty(exports
|
|
8817
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8787
8818
|
value: true
|
|
8788
8819
|
});
|
|
8789
|
-
exports
|
|
8820
|
+
exports.default = isMD5;
|
|
8790
8821
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8791
8822
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8792
8823
|
var md5 = /^[a-f0-9]{32}$/;
|
|
@@ -8794,20 +8825,20 @@ var isMD5 = {exports: {}};
|
|
|
8794
8825
|
(0, _assertString.default)(str);
|
|
8795
8826
|
return md5.test(str);
|
|
8796
8827
|
}
|
|
8797
|
-
module.exports = exports
|
|
8798
|
-
module.exports.default = exports
|
|
8828
|
+
module.exports = exports.default;
|
|
8829
|
+
module.exports.default = exports.default;
|
|
8799
8830
|
} (isMD5, isMD5.exports));
|
|
8800
8831
|
|
|
8801
8832
|
var isMD5Exports = isMD5.exports;
|
|
8802
8833
|
|
|
8803
8834
|
var isHash = {exports: {}};
|
|
8804
8835
|
|
|
8805
|
-
(function (module, exports
|
|
8836
|
+
(function (module, exports) {
|
|
8806
8837
|
|
|
8807
|
-
Object.defineProperty(exports
|
|
8838
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8808
8839
|
value: true
|
|
8809
8840
|
});
|
|
8810
|
-
exports
|
|
8841
|
+
exports.default = isHash;
|
|
8811
8842
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8812
8843
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8813
8844
|
var lengths = {
|
|
@@ -8830,8 +8861,8 @@ var isHash = {exports: {}};
|
|
|
8830
8861
|
var hash = new RegExp("^[a-fA-F0-9]{".concat(lengths[algorithm], "}$"));
|
|
8831
8862
|
return hash.test(str);
|
|
8832
8863
|
}
|
|
8833
|
-
module.exports = exports
|
|
8834
|
-
module.exports.default = exports
|
|
8864
|
+
module.exports = exports.default;
|
|
8865
|
+
module.exports.default = exports.default;
|
|
8835
8866
|
} (isHash, isHash.exports));
|
|
8836
8867
|
|
|
8837
8868
|
var isHashExports = isHash.exports;
|
|
@@ -8840,12 +8871,12 @@ var isJWT = {exports: {}};
|
|
|
8840
8871
|
|
|
8841
8872
|
var isBase64 = {exports: {}};
|
|
8842
8873
|
|
|
8843
|
-
(function (module, exports
|
|
8874
|
+
(function (module, exports) {
|
|
8844
8875
|
|
|
8845
|
-
Object.defineProperty(exports
|
|
8876
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8846
8877
|
value: true
|
|
8847
8878
|
});
|
|
8848
|
-
exports
|
|
8879
|
+
exports.default = isBase64;
|
|
8849
8880
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8850
8881
|
var _merge = _interopRequireDefault(mergeExports);
|
|
8851
8882
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8870,18 +8901,18 @@ var isBase64 = {exports: {}};
|
|
|
8870
8901
|
}
|
|
8871
8902
|
return (!options.padding || str.length % 4 === 0) && regex.test(str);
|
|
8872
8903
|
}
|
|
8873
|
-
module.exports = exports
|
|
8874
|
-
module.exports.default = exports
|
|
8904
|
+
module.exports = exports.default;
|
|
8905
|
+
module.exports.default = exports.default;
|
|
8875
8906
|
} (isBase64, isBase64.exports));
|
|
8876
8907
|
|
|
8877
8908
|
var isBase64Exports = isBase64.exports;
|
|
8878
8909
|
|
|
8879
|
-
(function (module, exports
|
|
8910
|
+
(function (module, exports) {
|
|
8880
8911
|
|
|
8881
|
-
Object.defineProperty(exports
|
|
8912
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8882
8913
|
value: true
|
|
8883
8914
|
});
|
|
8884
|
-
exports
|
|
8915
|
+
exports.default = isJWT;
|
|
8885
8916
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8886
8917
|
var _isBase = _interopRequireDefault(isBase64Exports);
|
|
8887
8918
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8898,55 +8929,61 @@ var isBase64Exports = isBase64.exports;
|
|
|
8898
8929
|
});
|
|
8899
8930
|
}, true);
|
|
8900
8931
|
}
|
|
8901
|
-
module.exports = exports
|
|
8902
|
-
module.exports.default = exports
|
|
8932
|
+
module.exports = exports.default;
|
|
8933
|
+
module.exports.default = exports.default;
|
|
8903
8934
|
} (isJWT, isJWT.exports));
|
|
8904
8935
|
|
|
8905
8936
|
var isJWTExports = isJWT.exports;
|
|
8906
8937
|
|
|
8907
8938
|
var isJSON = {exports: {}};
|
|
8908
8939
|
|
|
8909
|
-
(function (module, exports
|
|
8940
|
+
(function (module, exports) {
|
|
8910
8941
|
|
|
8911
|
-
Object.defineProperty(exports
|
|
8942
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8912
8943
|
value: true
|
|
8913
8944
|
});
|
|
8914
|
-
exports
|
|
8945
|
+
exports.default = isJSON;
|
|
8915
8946
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8916
8947
|
var _includesArray = _interopRequireDefault(includesArrayExports);
|
|
8917
8948
|
var _merge = _interopRequireDefault(mergeExports);
|
|
8918
8949
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8919
8950
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8920
8951
|
var default_json_options = {
|
|
8921
|
-
allow_primitives: false
|
|
8952
|
+
allow_primitives: false,
|
|
8953
|
+
allow_any_value: false
|
|
8922
8954
|
};
|
|
8923
8955
|
function isJSON(str, options) {
|
|
8924
8956
|
(0, _assertString.default)(str);
|
|
8925
8957
|
try {
|
|
8926
8958
|
options = (0, _merge.default)(options, default_json_options);
|
|
8959
|
+
var obj = JSON.parse(str);
|
|
8960
|
+
|
|
8961
|
+
// When allow_any_value is true, accept anything that JSON.parse successfully parses
|
|
8962
|
+
if (options.allow_any_value) {
|
|
8963
|
+
return true;
|
|
8964
|
+
}
|
|
8927
8965
|
var primitives = [];
|
|
8928
8966
|
if (options.allow_primitives) {
|
|
8929
8967
|
primitives = [null, false, true];
|
|
8930
8968
|
}
|
|
8931
|
-
var obj = JSON.parse(str);
|
|
8932
8969
|
return (0, _includesArray.default)(primitives, obj) || !!obj && _typeof(obj) === 'object';
|
|
8933
8970
|
} catch (e) {/* ignore */}
|
|
8934
8971
|
return false;
|
|
8935
8972
|
}
|
|
8936
|
-
module.exports = exports
|
|
8937
|
-
module.exports.default = exports
|
|
8973
|
+
module.exports = exports.default;
|
|
8974
|
+
module.exports.default = exports.default;
|
|
8938
8975
|
} (isJSON, isJSON.exports));
|
|
8939
8976
|
|
|
8940
8977
|
var isJSONExports = isJSON.exports;
|
|
8941
8978
|
|
|
8942
8979
|
var isEmpty = {exports: {}};
|
|
8943
8980
|
|
|
8944
|
-
(function (module, exports
|
|
8981
|
+
(function (module, exports) {
|
|
8945
8982
|
|
|
8946
|
-
Object.defineProperty(exports
|
|
8983
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8947
8984
|
value: true
|
|
8948
8985
|
});
|
|
8949
|
-
exports
|
|
8986
|
+
exports.default = isEmpty;
|
|
8950
8987
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8951
8988
|
var _merge = _interopRequireDefault(mergeExports);
|
|
8952
8989
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8958,20 +8995,20 @@ var isEmpty = {exports: {}};
|
|
|
8958
8995
|
options = (0, _merge.default)(options, default_is_empty_options);
|
|
8959
8996
|
return (options.ignore_whitespace ? str.trim().length : str.length) === 0;
|
|
8960
8997
|
}
|
|
8961
|
-
module.exports = exports
|
|
8962
|
-
module.exports.default = exports
|
|
8998
|
+
module.exports = exports.default;
|
|
8999
|
+
module.exports.default = exports.default;
|
|
8963
9000
|
} (isEmpty, isEmpty.exports));
|
|
8964
9001
|
|
|
8965
9002
|
var isEmptyExports = isEmpty.exports;
|
|
8966
9003
|
|
|
8967
9004
|
var isLength = {exports: {}};
|
|
8968
9005
|
|
|
8969
|
-
(function (module, exports
|
|
9006
|
+
(function (module, exports) {
|
|
8970
9007
|
|
|
8971
|
-
Object.defineProperty(exports
|
|
9008
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8972
9009
|
value: true
|
|
8973
9010
|
});
|
|
8974
|
-
exports
|
|
9011
|
+
exports.default = isLength;
|
|
8975
9012
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8976
9013
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8977
9014
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -8999,40 +9036,40 @@ var isLength = {exports: {}};
|
|
|
8999
9036
|
}
|
|
9000
9037
|
return isInsideRange;
|
|
9001
9038
|
}
|
|
9002
|
-
module.exports = exports
|
|
9003
|
-
module.exports.default = exports
|
|
9039
|
+
module.exports = exports.default;
|
|
9040
|
+
module.exports.default = exports.default;
|
|
9004
9041
|
} (isLength, isLength.exports));
|
|
9005
9042
|
|
|
9006
9043
|
var isLengthExports = isLength.exports;
|
|
9007
9044
|
|
|
9008
9045
|
var isULID = {exports: {}};
|
|
9009
9046
|
|
|
9010
|
-
(function (module, exports
|
|
9047
|
+
(function (module, exports) {
|
|
9011
9048
|
|
|
9012
|
-
Object.defineProperty(exports
|
|
9049
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9013
9050
|
value: true
|
|
9014
9051
|
});
|
|
9015
|
-
exports
|
|
9052
|
+
exports.default = isULID;
|
|
9016
9053
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9017
9054
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9018
9055
|
function isULID(str) {
|
|
9019
9056
|
(0, _assertString.default)(str);
|
|
9020
9057
|
return /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i.test(str);
|
|
9021
9058
|
}
|
|
9022
|
-
module.exports = exports
|
|
9023
|
-
module.exports.default = exports
|
|
9059
|
+
module.exports = exports.default;
|
|
9060
|
+
module.exports.default = exports.default;
|
|
9024
9061
|
} (isULID, isULID.exports));
|
|
9025
9062
|
|
|
9026
9063
|
var isULIDExports = isULID.exports;
|
|
9027
9064
|
|
|
9028
9065
|
var isUUID = {exports: {}};
|
|
9029
9066
|
|
|
9030
|
-
(function (module, exports
|
|
9067
|
+
(function (module, exports) {
|
|
9031
9068
|
|
|
9032
|
-
Object.defineProperty(exports
|
|
9069
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9033
9070
|
value: true
|
|
9034
9071
|
});
|
|
9035
|
-
exports
|
|
9072
|
+
exports.default = isUUID;
|
|
9036
9073
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9037
9074
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9038
9075
|
var uuid = {
|
|
@@ -9057,20 +9094,20 @@ var isUUID = {exports: {}};
|
|
|
9057
9094
|
}
|
|
9058
9095
|
return version in uuid ? uuid[version].test(str) : false;
|
|
9059
9096
|
}
|
|
9060
|
-
module.exports = exports
|
|
9061
|
-
module.exports.default = exports
|
|
9097
|
+
module.exports = exports.default;
|
|
9098
|
+
module.exports.default = exports.default;
|
|
9062
9099
|
} (isUUID, isUUID.exports));
|
|
9063
9100
|
|
|
9064
9101
|
var isUUIDExports = isUUID.exports;
|
|
9065
9102
|
|
|
9066
9103
|
var isMongoId = {exports: {}};
|
|
9067
9104
|
|
|
9068
|
-
(function (module, exports
|
|
9105
|
+
(function (module, exports) {
|
|
9069
9106
|
|
|
9070
|
-
Object.defineProperty(exports
|
|
9107
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9071
9108
|
value: true
|
|
9072
9109
|
});
|
|
9073
|
-
exports
|
|
9110
|
+
exports.default = isMongoId;
|
|
9074
9111
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9075
9112
|
var _isHexadecimal = _interopRequireDefault(isHexadecimalExports);
|
|
9076
9113
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -9078,20 +9115,20 @@ var isMongoId = {exports: {}};
|
|
|
9078
9115
|
(0, _assertString.default)(str);
|
|
9079
9116
|
return (0, _isHexadecimal.default)(str) && str.length === 24;
|
|
9080
9117
|
}
|
|
9081
|
-
module.exports = exports
|
|
9082
|
-
module.exports.default = exports
|
|
9118
|
+
module.exports = exports.default;
|
|
9119
|
+
module.exports.default = exports.default;
|
|
9083
9120
|
} (isMongoId, isMongoId.exports));
|
|
9084
9121
|
|
|
9085
9122
|
var isMongoIdExports = isMongoId.exports;
|
|
9086
9123
|
|
|
9087
9124
|
var isAfter = {exports: {}};
|
|
9088
9125
|
|
|
9089
|
-
(function (module, exports
|
|
9126
|
+
(function (module, exports) {
|
|
9090
9127
|
|
|
9091
|
-
Object.defineProperty(exports
|
|
9128
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9092
9129
|
value: true
|
|
9093
9130
|
});
|
|
9094
|
-
exports
|
|
9131
|
+
exports.default = isAfter;
|
|
9095
9132
|
var _toDate = _interopRequireDefault(toDateExports);
|
|
9096
9133
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9097
9134
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -9103,20 +9140,20 @@ var isAfter = {exports: {}};
|
|
|
9103
9140
|
var original = (0, _toDate.default)(date);
|
|
9104
9141
|
return !!(original && comparison && original > comparison);
|
|
9105
9142
|
}
|
|
9106
|
-
module.exports = exports
|
|
9107
|
-
module.exports.default = exports
|
|
9143
|
+
module.exports = exports.default;
|
|
9144
|
+
module.exports.default = exports.default;
|
|
9108
9145
|
} (isAfter, isAfter.exports));
|
|
9109
9146
|
|
|
9110
9147
|
var isAfterExports = isAfter.exports;
|
|
9111
9148
|
|
|
9112
9149
|
var isBefore = {exports: {}};
|
|
9113
9150
|
|
|
9114
|
-
(function (module, exports
|
|
9151
|
+
(function (module, exports) {
|
|
9115
9152
|
|
|
9116
|
-
Object.defineProperty(exports
|
|
9153
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9117
9154
|
value: true
|
|
9118
9155
|
});
|
|
9119
|
-
exports
|
|
9156
|
+
exports.default = isBefore;
|
|
9120
9157
|
var _toDate = _interopRequireDefault(toDateExports);
|
|
9121
9158
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9122
9159
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -9128,20 +9165,20 @@ var isBefore = {exports: {}};
|
|
|
9128
9165
|
var original = (0, _toDate.default)(date);
|
|
9129
9166
|
return !!(original && comparison && original < comparison);
|
|
9130
9167
|
}
|
|
9131
|
-
module.exports = exports
|
|
9132
|
-
module.exports.default = exports
|
|
9168
|
+
module.exports = exports.default;
|
|
9169
|
+
module.exports.default = exports.default;
|
|
9133
9170
|
} (isBefore, isBefore.exports));
|
|
9134
9171
|
|
|
9135
9172
|
var isBeforeExports = isBefore.exports;
|
|
9136
9173
|
|
|
9137
9174
|
var isIn = {exports: {}};
|
|
9138
9175
|
|
|
9139
|
-
(function (module, exports
|
|
9176
|
+
(function (module, exports) {
|
|
9140
9177
|
|
|
9141
|
-
Object.defineProperty(exports
|
|
9178
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9142
9179
|
value: true
|
|
9143
9180
|
});
|
|
9144
|
-
exports
|
|
9181
|
+
exports.default = isIn;
|
|
9145
9182
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9146
9183
|
var _toString = _interopRequireDefault(toStringExports);
|
|
9147
9184
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -9166,20 +9203,20 @@ var isIn = {exports: {}};
|
|
|
9166
9203
|
}
|
|
9167
9204
|
return false;
|
|
9168
9205
|
}
|
|
9169
|
-
module.exports = exports
|
|
9170
|
-
module.exports.default = exports
|
|
9206
|
+
module.exports = exports.default;
|
|
9207
|
+
module.exports.default = exports.default;
|
|
9171
9208
|
} (isIn, isIn.exports));
|
|
9172
9209
|
|
|
9173
9210
|
var isInExports = isIn.exports;
|
|
9174
9211
|
|
|
9175
9212
|
var isLuhnNumber = {exports: {}};
|
|
9176
9213
|
|
|
9177
|
-
(function (module, exports
|
|
9214
|
+
(function (module, exports) {
|
|
9178
9215
|
|
|
9179
|
-
Object.defineProperty(exports
|
|
9216
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9180
9217
|
value: true
|
|
9181
9218
|
});
|
|
9182
|
-
exports
|
|
9219
|
+
exports.default = isLuhnNumber;
|
|
9183
9220
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9184
9221
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9185
9222
|
function isLuhnNumber(str) {
|
|
@@ -9206,20 +9243,20 @@ var isLuhnNumber = {exports: {}};
|
|
|
9206
9243
|
}
|
|
9207
9244
|
return !!(sum % 10 === 0 ? sanitized : false);
|
|
9208
9245
|
}
|
|
9209
|
-
module.exports = exports
|
|
9210
|
-
module.exports.default = exports
|
|
9246
|
+
module.exports = exports.default;
|
|
9247
|
+
module.exports.default = exports.default;
|
|
9211
9248
|
} (isLuhnNumber, isLuhnNumber.exports));
|
|
9212
9249
|
|
|
9213
9250
|
var isLuhnNumberExports = isLuhnNumber.exports;
|
|
9214
9251
|
|
|
9215
9252
|
var isCreditCard = {exports: {}};
|
|
9216
9253
|
|
|
9217
|
-
(function (module, exports
|
|
9254
|
+
(function (module, exports) {
|
|
9218
9255
|
|
|
9219
|
-
Object.defineProperty(exports
|
|
9256
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9220
9257
|
value: true
|
|
9221
9258
|
});
|
|
9222
|
-
exports
|
|
9259
|
+
exports.default = isCreditCard;
|
|
9223
9260
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9224
9261
|
var _isLuhnNumber = _interopRequireDefault(isLuhnNumberExports);
|
|
9225
9262
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -9264,20 +9301,20 @@ var isCreditCard = {exports: {}};
|
|
|
9264
9301
|
}
|
|
9265
9302
|
return (0, _isLuhnNumber.default)(card);
|
|
9266
9303
|
}
|
|
9267
|
-
module.exports = exports
|
|
9268
|
-
module.exports.default = exports
|
|
9304
|
+
module.exports = exports.default;
|
|
9305
|
+
module.exports.default = exports.default;
|
|
9269
9306
|
} (isCreditCard, isCreditCard.exports));
|
|
9270
9307
|
|
|
9271
9308
|
var isCreditCardExports = isCreditCard.exports;
|
|
9272
9309
|
|
|
9273
9310
|
var isIdentityCard = {exports: {}};
|
|
9274
9311
|
|
|
9275
|
-
(function (module, exports
|
|
9312
|
+
(function (module, exports) {
|
|
9276
9313
|
|
|
9277
|
-
Object.defineProperty(exports
|
|
9314
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9278
9315
|
value: true
|
|
9279
9316
|
});
|
|
9280
|
-
exports
|
|
9317
|
+
exports.default = isIdentityCard;
|
|
9281
9318
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9282
9319
|
var _includesArray = _interopRequireDefault(includesArrayExports);
|
|
9283
9320
|
var _isInt = _interopRequireDefault(isIntExports);
|
|
@@ -9446,24 +9483,14 @@ var isIdentityCard = {exports: {}};
|
|
|
9446
9483
|
|
|
9447
9484
|
// sanitize user input
|
|
9448
9485
|
var sanitized = str.trim();
|
|
9449
|
-
|
|
9450
|
-
// validate the data structure
|
|
9451
|
-
if (!NIN.test(sanitized)) {
|
|
9452
|
-
return false;
|
|
9453
|
-
}
|
|
9454
|
-
return true;
|
|
9486
|
+
return NIN.test(sanitized);
|
|
9455
9487
|
},
|
|
9456
9488
|
'ar-TN': function arTN(str) {
|
|
9457
9489
|
var DNI = /^\d{8}$/;
|
|
9458
9490
|
|
|
9459
9491
|
// sanitize user input
|
|
9460
9492
|
var sanitized = str.trim();
|
|
9461
|
-
|
|
9462
|
-
// validate the data structure
|
|
9463
|
-
if (!DNI.test(sanitized)) {
|
|
9464
|
-
return false;
|
|
9465
|
-
}
|
|
9466
|
-
return true;
|
|
9493
|
+
return DNI.test(sanitized);
|
|
9467
9494
|
},
|
|
9468
9495
|
'zh-CN': function zhCN(str) {
|
|
9469
9496
|
var provincesAndCities = ['11',
|
|
@@ -9696,20 +9723,20 @@ var isIdentityCard = {exports: {}};
|
|
|
9696
9723
|
}
|
|
9697
9724
|
throw new Error("Invalid locale '".concat(locale, "'"));
|
|
9698
9725
|
}
|
|
9699
|
-
module.exports = exports
|
|
9700
|
-
module.exports.default = exports
|
|
9726
|
+
module.exports = exports.default;
|
|
9727
|
+
module.exports.default = exports.default;
|
|
9701
9728
|
} (isIdentityCard, isIdentityCard.exports));
|
|
9702
9729
|
|
|
9703
9730
|
var isIdentityCardExports = isIdentityCard.exports;
|
|
9704
9731
|
|
|
9705
9732
|
var isEAN = {exports: {}};
|
|
9706
9733
|
|
|
9707
|
-
(function (module, exports
|
|
9734
|
+
(function (module, exports) {
|
|
9708
9735
|
|
|
9709
|
-
Object.defineProperty(exports
|
|
9736
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9710
9737
|
value: true
|
|
9711
9738
|
});
|
|
9712
|
-
exports
|
|
9739
|
+
exports.default = isEAN;
|
|
9713
9740
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9714
9741
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9715
9742
|
/**
|
|
@@ -9780,20 +9807,20 @@ var isEAN = {exports: {}};
|
|
|
9780
9807
|
var actualCheckDigit = Number(str.slice(-1));
|
|
9781
9808
|
return validEanRegex.test(str) && actualCheckDigit === calculateCheckDigit(str);
|
|
9782
9809
|
}
|
|
9783
|
-
module.exports = exports
|
|
9784
|
-
module.exports.default = exports
|
|
9810
|
+
module.exports = exports.default;
|
|
9811
|
+
module.exports.default = exports.default;
|
|
9785
9812
|
} (isEAN, isEAN.exports));
|
|
9786
9813
|
|
|
9787
9814
|
var isEANExports = isEAN.exports;
|
|
9788
9815
|
|
|
9789
9816
|
var isISIN = {exports: {}};
|
|
9790
9817
|
|
|
9791
|
-
(function (module, exports
|
|
9818
|
+
(function (module, exports) {
|
|
9792
9819
|
|
|
9793
|
-
Object.defineProperty(exports
|
|
9820
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9794
9821
|
value: true
|
|
9795
9822
|
});
|
|
9796
|
-
exports
|
|
9823
|
+
exports.default = isISIN;
|
|
9797
9824
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9798
9825
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9799
9826
|
var isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;
|
|
@@ -9850,20 +9877,20 @@ var isISIN = {exports: {}};
|
|
|
9850
9877
|
var check = Math.trunc((sum + 9) / 10) * 10 - sum;
|
|
9851
9878
|
return +str[str.length - 1] === check;
|
|
9852
9879
|
}
|
|
9853
|
-
module.exports = exports
|
|
9854
|
-
module.exports.default = exports
|
|
9880
|
+
module.exports = exports.default;
|
|
9881
|
+
module.exports.default = exports.default;
|
|
9855
9882
|
} (isISIN, isISIN.exports));
|
|
9856
9883
|
|
|
9857
9884
|
var isISINExports = isISIN.exports;
|
|
9858
9885
|
|
|
9859
9886
|
var isISBN = {exports: {}};
|
|
9860
9887
|
|
|
9861
|
-
(function (module, exports
|
|
9888
|
+
(function (module, exports) {
|
|
9862
9889
|
|
|
9863
|
-
Object.defineProperty(exports
|
|
9890
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9864
9891
|
value: true
|
|
9865
9892
|
});
|
|
9866
|
-
exports
|
|
9893
|
+
exports.default = isISBN;
|
|
9867
9894
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9868
9895
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9869
9896
|
var possibleIsbn10 = /^(?:[0-9]{9}X|[0-9]{10})$/;
|
|
@@ -9912,20 +9939,20 @@ var isISBN = {exports: {}};
|
|
|
9912
9939
|
}
|
|
9913
9940
|
return false;
|
|
9914
9941
|
}
|
|
9915
|
-
module.exports = exports
|
|
9916
|
-
module.exports.default = exports
|
|
9942
|
+
module.exports = exports.default;
|
|
9943
|
+
module.exports.default = exports.default;
|
|
9917
9944
|
} (isISBN, isISBN.exports));
|
|
9918
9945
|
|
|
9919
9946
|
var isISBNExports = isISBN.exports;
|
|
9920
9947
|
|
|
9921
9948
|
var isISSN = {exports: {}};
|
|
9922
9949
|
|
|
9923
|
-
(function (module, exports
|
|
9950
|
+
(function (module, exports) {
|
|
9924
9951
|
|
|
9925
|
-
Object.defineProperty(exports
|
|
9952
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9926
9953
|
value: true
|
|
9927
9954
|
});
|
|
9928
|
-
exports
|
|
9955
|
+
exports.default = isISSN;
|
|
9929
9956
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9930
9957
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9931
9958
|
var issn = '^\\d{4}-?\\d{3}[\\dX]$';
|
|
@@ -9946,8 +9973,8 @@ var isISSN = {exports: {}};
|
|
|
9946
9973
|
}
|
|
9947
9974
|
return checksum % 11 === 0;
|
|
9948
9975
|
}
|
|
9949
|
-
module.exports = exports
|
|
9950
|
-
module.exports.default = exports
|
|
9976
|
+
module.exports = exports.default;
|
|
9977
|
+
module.exports.default = exports.default;
|
|
9951
9978
|
} (isISSN, isISSN.exports));
|
|
9952
9979
|
|
|
9953
9980
|
var isISSNExports = isISSN.exports;
|
|
@@ -10043,13 +10070,13 @@ function verhoeffCheck(str) {
|
|
|
10043
10070
|
return checksum === 0;
|
|
10044
10071
|
}
|
|
10045
10072
|
|
|
10046
|
-
(function (module, exports
|
|
10073
|
+
(function (module, exports) {
|
|
10047
10074
|
|
|
10048
10075
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10049
|
-
Object.defineProperty(exports
|
|
10076
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10050
10077
|
value: true
|
|
10051
10078
|
});
|
|
10052
|
-
exports
|
|
10079
|
+
exports.default = isTaxID;
|
|
10053
10080
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
10054
10081
|
var algorithms = _interopRequireWildcard(algorithms$1);
|
|
10055
10082
|
var _isDate = _interopRequireDefault(isDateExports);
|
|
@@ -11043,68 +11070,87 @@ function verhoeffCheck(str) {
|
|
|
11043
11070
|
}
|
|
11044
11071
|
|
|
11045
11072
|
/*
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11073
|
+
* pt-BR validation function
|
|
11074
|
+
* (Cadastro de Pessoas Físicas (CPF, persons)
|
|
11075
|
+
* Cadastro Nacional de Pessoas Jurídicas (CNPJ, entities)
|
|
11076
|
+
* Both inputs will be validated.
|
|
11077
|
+
* CPF accepts formatted (XXX.XXX.XXX-XX) and unformatted input;
|
|
11078
|
+
* formatting is stripped before validation.
|
|
11079
|
+
* CNPJ supports both numeric (legacy) and alphanumeric format (starting July 2026).
|
|
11080
|
+
*/
|
|
11081
|
+
|
|
11082
|
+
/**
|
|
11083
|
+
* Convert a CNPJ character to its numeric value for check digit calculation.
|
|
11084
|
+
* Numbers 0-9 map to values 0-9, letters A-Z map to values 17-42.
|
|
11085
|
+
* This is done by subtracting 48 from the ASCII code.
|
|
11086
|
+
*/
|
|
11087
|
+
function cnpjCharToValue(char) {
|
|
11088
|
+
return char.charCodeAt(0) - 48;
|
|
11089
|
+
}
|
|
11090
|
+
|
|
11091
|
+
/**
|
|
11092
|
+
* Validate CNPJ (both numeric and alphanumeric formats).
|
|
11093
|
+
* Algorithm: module 11 with weights 2-9 from right to left.
|
|
11094
|
+
*/
|
|
11095
|
+
function validateCnpj(cnpj) {
|
|
11096
|
+
// Get the 12 identifier characters and 2 check digits
|
|
11097
|
+
var identifiers = cnpj.substring(0, 12).toUpperCase();
|
|
11098
|
+
var checkDigits = cnpj.substring(12);
|
|
11051
11099
|
|
|
11100
|
+
// Reject CNPJs with all same characters (e.g., '00000000000000', 'AAAAAAAAAAAAAA')
|
|
11101
|
+
if (/^(.)\1+$/.test(cnpj.toUpperCase())) {
|
|
11102
|
+
return false;
|
|
11103
|
+
}
|
|
11104
|
+
|
|
11105
|
+
// Calculate first check digit
|
|
11106
|
+
var sum = 0;
|
|
11107
|
+
var weight = 5;
|
|
11108
|
+
for (var i = 0; i < 12; i++) {
|
|
11109
|
+
sum += cnpjCharToValue(identifiers.charAt(i)) * weight;
|
|
11110
|
+
weight = weight === 2 ? 9 : weight - 1;
|
|
11111
|
+
}
|
|
11112
|
+
var remainder = sum % 11;
|
|
11113
|
+
var firstDV = remainder < 2 ? 0 : 11 - remainder;
|
|
11114
|
+
if (firstDV !== parseInt(checkDigits.charAt(0), 10)) {
|
|
11115
|
+
return false;
|
|
11116
|
+
}
|
|
11117
|
+
|
|
11118
|
+
// Calculate second check digit (includes first check digit)
|
|
11119
|
+
sum = 0;
|
|
11120
|
+
weight = 6;
|
|
11121
|
+
for (var _i8 = 0; _i8 < 12; _i8++) {
|
|
11122
|
+
sum += cnpjCharToValue(identifiers.charAt(_i8)) * weight;
|
|
11123
|
+
weight = weight === 2 ? 9 : weight - 1;
|
|
11124
|
+
}
|
|
11125
|
+
sum += firstDV * 2;
|
|
11126
|
+
remainder = sum % 11;
|
|
11127
|
+
var secondDV = remainder < 2 ? 0 : 11 - remainder;
|
|
11128
|
+
return secondDV === parseInt(checkDigits.charAt(1), 10);
|
|
11129
|
+
}
|
|
11052
11130
|
function ptBrCheck(tin) {
|
|
11131
|
+
// Strip CPF formatting (XXX.XXX.XXX-XX)
|
|
11132
|
+
tin = tin.replace(/[.\-/]/g, '');
|
|
11053
11133
|
if (tin.length === 11) {
|
|
11054
|
-
var
|
|
11134
|
+
var sum;
|
|
11055
11135
|
var remainder;
|
|
11056
|
-
|
|
11136
|
+
sum = 0;
|
|
11057
11137
|
if (
|
|
11058
11138
|
// Reject known invalid CPFs
|
|
11059
11139
|
tin === '11111111111' || tin === '22222222222' || tin === '33333333333' || tin === '44444444444' || tin === '55555555555' || tin === '66666666666' || tin === '77777777777' || tin === '88888888888' || tin === '99999999999' || tin === '00000000000') return false;
|
|
11060
|
-
for (var i = 1; i <= 9; i++)
|
|
11061
|
-
remainder =
|
|
11140
|
+
for (var i = 1; i <= 9; i++) sum += parseInt(tin.substring(i - 1, i), 10) * (11 - i);
|
|
11141
|
+
remainder = sum * 10 % 11;
|
|
11062
11142
|
if (remainder === 10) remainder = 0;
|
|
11063
11143
|
if (remainder !== parseInt(tin.substring(9, 10), 10)) return false;
|
|
11064
|
-
|
|
11065
|
-
for (var
|
|
11066
|
-
remainder =
|
|
11144
|
+
sum = 0;
|
|
11145
|
+
for (var _i9 = 1; _i9 <= 10; _i9++) sum += parseInt(tin.substring(_i9 - 1, _i9), 10) * (12 - _i9);
|
|
11146
|
+
remainder = sum * 10 % 11;
|
|
11067
11147
|
if (remainder === 10) remainder = 0;
|
|
11068
11148
|
if (remainder !== parseInt(tin.substring(10, 11), 10)) return false;
|
|
11069
11149
|
return true;
|
|
11070
11150
|
}
|
|
11071
|
-
|
|
11072
|
-
//
|
|
11073
|
-
|
|
11074
|
-
return false;
|
|
11075
|
-
}
|
|
11076
|
-
var length = tin.length - 2;
|
|
11077
|
-
var identifiers = tin.substring(0, length);
|
|
11078
|
-
var verificators = tin.substring(length);
|
|
11079
|
-
var sum = 0;
|
|
11080
|
-
var pos = length - 7;
|
|
11081
|
-
for (var _i9 = length; _i9 >= 1; _i9--) {
|
|
11082
|
-
sum += identifiers.charAt(length - _i9) * pos;
|
|
11083
|
-
pos -= 1;
|
|
11084
|
-
if (pos < 2) {
|
|
11085
|
-
pos = 9;
|
|
11086
|
-
}
|
|
11087
|
-
}
|
|
11088
|
-
var result = sum % 11 < 2 ? 0 : 11 - sum % 11;
|
|
11089
|
-
if (result !== parseInt(verificators.charAt(0), 10)) {
|
|
11090
|
-
return false;
|
|
11091
|
-
}
|
|
11092
|
-
length += 1;
|
|
11093
|
-
identifiers = tin.substring(0, length);
|
|
11094
|
-
sum = 0;
|
|
11095
|
-
pos = length - 7;
|
|
11096
|
-
for (var _i0 = length; _i0 >= 1; _i0--) {
|
|
11097
|
-
sum += identifiers.charAt(length - _i0) * pos;
|
|
11098
|
-
pos -= 1;
|
|
11099
|
-
if (pos < 2) {
|
|
11100
|
-
pos = 9;
|
|
11101
|
-
}
|
|
11102
|
-
}
|
|
11103
|
-
result = sum % 11 < 2 ? 0 : 11 - sum % 11;
|
|
11104
|
-
if (result !== parseInt(verificators.charAt(1), 10)) {
|
|
11105
|
-
return false;
|
|
11106
|
-
}
|
|
11107
|
-
return true;
|
|
11151
|
+
|
|
11152
|
+
// CNPJ validation (supports both numeric and alphanumeric formats)
|
|
11153
|
+
return validateCnpj(tin);
|
|
11108
11154
|
}
|
|
11109
11155
|
|
|
11110
11156
|
/*
|
|
@@ -11347,7 +11393,7 @@ function verhoeffCheck(str) {
|
|
|
11347
11393
|
'mt-MT': /^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,
|
|
11348
11394
|
'nl-NL': /^\d{9}$/,
|
|
11349
11395
|
'pl-PL': /^\d{10,11}$/,
|
|
11350
|
-
'pt-BR': /(?:^\d{
|
|
11396
|
+
'pt-BR': /(?:^\d{3}\.\d{3}\.\d{3}-\d{2}$)|(?:^\d{11}$)|(?:^[A-Z0-9]{12}\d{2}$)/i,
|
|
11351
11397
|
'pt-PT': /^\d{9}$/,
|
|
11352
11398
|
'ro-RO': /^\d{13}$/,
|
|
11353
11399
|
'sk-SK': /^\d{6}\/{0,1}\d{3,4}$/,
|
|
@@ -11437,8 +11483,8 @@ function verhoeffCheck(str) {
|
|
|
11437
11483
|
}
|
|
11438
11484
|
throw new Error("Invalid locale '".concat(locale, "'"));
|
|
11439
11485
|
}
|
|
11440
|
-
module.exports = exports
|
|
11441
|
-
module.exports.default = exports
|
|
11486
|
+
module.exports = exports.default;
|
|
11487
|
+
module.exports.default = exports.default;
|
|
11442
11488
|
} (isTaxID, isTaxID.exports));
|
|
11443
11489
|
|
|
11444
11490
|
var isTaxIDExports = isTaxID.exports;
|
|
@@ -11554,6 +11600,7 @@ var phones = {
|
|
|
11554
11600
|
'fr-BJ': /^(\+229)\d{8}$/,
|
|
11555
11601
|
'fr-CD': /^(\+?243|0)?(8|9)\d{8}$/,
|
|
11556
11602
|
'fr-CM': /^(\+?237)6[0-9]{8}$/,
|
|
11603
|
+
'fr-DJ': /^(?:\+253)?77[6-8]\d{5}$/,
|
|
11557
11604
|
'fr-FR': /^(\+?33|0)[67]\d{8}$/,
|
|
11558
11605
|
'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/,
|
|
11559
11606
|
'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/,
|
|
@@ -11664,12 +11711,12 @@ isMobilePhone$1.locales = Object.keys(phones);
|
|
|
11664
11711
|
|
|
11665
11712
|
var isEthereumAddress = {exports: {}};
|
|
11666
11713
|
|
|
11667
|
-
(function (module, exports
|
|
11714
|
+
(function (module, exports) {
|
|
11668
11715
|
|
|
11669
|
-
Object.defineProperty(exports
|
|
11716
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11670
11717
|
value: true
|
|
11671
11718
|
});
|
|
11672
|
-
exports
|
|
11719
|
+
exports.default = isEthereumAddress;
|
|
11673
11720
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11674
11721
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11675
11722
|
var eth = /^(0x)[0-9a-f]{40}$/i;
|
|
@@ -11677,20 +11724,20 @@ var isEthereumAddress = {exports: {}};
|
|
|
11677
11724
|
(0, _assertString.default)(str);
|
|
11678
11725
|
return eth.test(str);
|
|
11679
11726
|
}
|
|
11680
|
-
module.exports = exports
|
|
11681
|
-
module.exports.default = exports
|
|
11727
|
+
module.exports = exports.default;
|
|
11728
|
+
module.exports.default = exports.default;
|
|
11682
11729
|
} (isEthereumAddress, isEthereumAddress.exports));
|
|
11683
11730
|
|
|
11684
11731
|
var isEthereumAddressExports = isEthereumAddress.exports;
|
|
11685
11732
|
|
|
11686
11733
|
var isCurrency = {exports: {}};
|
|
11687
11734
|
|
|
11688
|
-
(function (module, exports
|
|
11735
|
+
(function (module, exports) {
|
|
11689
11736
|
|
|
11690
|
-
Object.defineProperty(exports
|
|
11737
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11691
11738
|
value: true
|
|
11692
11739
|
});
|
|
11693
|
-
exports
|
|
11740
|
+
exports.default = isCurrency;
|
|
11694
11741
|
var _merge = _interopRequireDefault(mergeExports);
|
|
11695
11742
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11696
11743
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -11766,20 +11813,20 @@ var isCurrency = {exports: {}};
|
|
|
11766
11813
|
options = (0, _merge.default)(options, default_currency_options);
|
|
11767
11814
|
return currencyRegex(options).test(str);
|
|
11768
11815
|
}
|
|
11769
|
-
module.exports = exports
|
|
11770
|
-
module.exports.default = exports
|
|
11816
|
+
module.exports = exports.default;
|
|
11817
|
+
module.exports.default = exports.default;
|
|
11771
11818
|
} (isCurrency, isCurrency.exports));
|
|
11772
11819
|
|
|
11773
11820
|
var isCurrencyExports = isCurrency.exports;
|
|
11774
11821
|
|
|
11775
11822
|
var isBtcAddress = {exports: {}};
|
|
11776
11823
|
|
|
11777
|
-
(function (module, exports
|
|
11824
|
+
(function (module, exports) {
|
|
11778
11825
|
|
|
11779
|
-
Object.defineProperty(exports
|
|
11826
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11780
11827
|
value: true
|
|
11781
11828
|
});
|
|
11782
|
-
exports
|
|
11829
|
+
exports.default = isBtcAddress;
|
|
11783
11830
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11784
11831
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11785
11832
|
var bech32 = /^(bc1|tb1|bc1p|tb1p)[ac-hj-np-z02-9]{39,58}$/;
|
|
@@ -11788,8 +11835,8 @@ var isBtcAddress = {exports: {}};
|
|
|
11788
11835
|
(0, _assertString.default)(str);
|
|
11789
11836
|
return bech32.test(str) || base58.test(str);
|
|
11790
11837
|
}
|
|
11791
|
-
module.exports = exports
|
|
11792
|
-
module.exports.default = exports
|
|
11838
|
+
module.exports = exports.default;
|
|
11839
|
+
module.exports.default = exports.default;
|
|
11793
11840
|
} (isBtcAddress, isBtcAddress.exports));
|
|
11794
11841
|
|
|
11795
11842
|
var isBtcAddressExports = isBtcAddress.exports;
|
|
@@ -11832,12 +11879,12 @@ isISO6346$1.isFreightContainerID = isISO6346;
|
|
|
11832
11879
|
|
|
11833
11880
|
var isISO6391 = {exports: {}};
|
|
11834
11881
|
|
|
11835
|
-
(function (module, exports
|
|
11882
|
+
(function (module, exports) {
|
|
11836
11883
|
|
|
11837
|
-
Object.defineProperty(exports
|
|
11884
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11838
11885
|
value: true
|
|
11839
11886
|
});
|
|
11840
|
-
exports
|
|
11887
|
+
exports.default = isISO6391;
|
|
11841
11888
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11842
11889
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11843
11890
|
var isISO6391Set = new Set(['aa', 'ab', 'ae', 'af', 'ak', 'am', 'an', 'ar', 'as', 'av', 'ay', 'az', 'az', 'ba', 'be', 'bg', 'bh', 'bi', 'bm', 'bn', 'bo', 'br', 'bs', 'ca', 'ce', 'ch', 'co', 'cr', 'cs', 'cu', 'cv', 'cy', 'da', 'de', 'dv', 'dz', 'ee', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'ff', 'fi', 'fj', 'fo', 'fr', 'fy', 'ga', 'gd', 'gl', 'gn', 'gu', 'gv', 'ha', 'he', 'hi', 'ho', 'hr', 'ht', 'hu', 'hy', 'hz', 'ia', 'id', 'ie', 'ig', 'ii', 'ik', 'io', 'is', 'it', 'iu', 'ja', 'jv', 'ka', 'kg', 'ki', 'kj', 'kk', 'kl', 'km', 'kn', 'ko', 'kr', 'ks', 'ku', 'kv', 'kw', 'ky', 'la', 'lb', 'lg', 'li', 'ln', 'lo', 'lt', 'lu', 'lv', 'mg', 'mh', 'mi', 'mk', 'ml', 'mn', 'mr', 'ms', 'mt', 'my', 'na', 'nb', 'nd', 'ne', 'ng', 'nl', 'nn', 'no', 'nr', 'nv', 'ny', 'oc', 'oj', 'om', 'or', 'os', 'pa', 'pi', 'pl', 'ps', 'pt', 'qu', 'rm', 'rn', 'ro', 'ru', 'rw', 'sa', 'sc', 'sd', 'se', 'sg', 'si', 'sk', 'sl', 'sm', 'sn', 'so', 'sq', 'sr', 'ss', 'st', 'su', 'sv', 'sw', 'ta', 'te', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'to', 'tr', 'ts', 'tt', 'tw', 'ty', 'ug', 'uk', 'ur', 'uz', 've', 'vi', 'vo', 'wa', 'wo', 'xh', 'yi', 'yo', 'za', 'zh', 'zu']);
|
|
@@ -11845,20 +11892,20 @@ var isISO6391 = {exports: {}};
|
|
|
11845
11892
|
(0, _assertString.default)(str);
|
|
11846
11893
|
return isISO6391Set.has(str);
|
|
11847
11894
|
}
|
|
11848
|
-
module.exports = exports
|
|
11849
|
-
module.exports.default = exports
|
|
11895
|
+
module.exports = exports.default;
|
|
11896
|
+
module.exports.default = exports.default;
|
|
11850
11897
|
} (isISO6391, isISO6391.exports));
|
|
11851
11898
|
|
|
11852
11899
|
var isISO6391Exports = isISO6391.exports;
|
|
11853
11900
|
|
|
11854
11901
|
var isISO8601 = {exports: {}};
|
|
11855
11902
|
|
|
11856
|
-
(function (module, exports
|
|
11903
|
+
(function (module, exports) {
|
|
11857
11904
|
|
|
11858
|
-
Object.defineProperty(exports
|
|
11905
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11859
11906
|
value: true
|
|
11860
11907
|
});
|
|
11861
|
-
exports
|
|
11908
|
+
exports.default = isISO8601;
|
|
11862
11909
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11863
11910
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11864
11911
|
/* eslint-disable max-len */
|
|
@@ -11901,20 +11948,20 @@ var isISO8601 = {exports: {}};
|
|
|
11901
11948
|
if (check && options.strict) return isValidDate(str);
|
|
11902
11949
|
return check;
|
|
11903
11950
|
}
|
|
11904
|
-
module.exports = exports
|
|
11905
|
-
module.exports.default = exports
|
|
11951
|
+
module.exports = exports.default;
|
|
11952
|
+
module.exports.default = exports.default;
|
|
11906
11953
|
} (isISO8601, isISO8601.exports));
|
|
11907
11954
|
|
|
11908
11955
|
var isISO8601Exports = isISO8601.exports;
|
|
11909
11956
|
|
|
11910
11957
|
var isRFC3339 = {exports: {}};
|
|
11911
11958
|
|
|
11912
|
-
(function (module, exports
|
|
11959
|
+
(function (module, exports) {
|
|
11913
11960
|
|
|
11914
|
-
Object.defineProperty(exports
|
|
11961
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11915
11962
|
value: true
|
|
11916
11963
|
});
|
|
11917
|
-
exports
|
|
11964
|
+
exports.default = isRFC3339;
|
|
11918
11965
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11919
11966
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11920
11967
|
/* Based on https://tools.ietf.org/html/rfc3339#section-5.6 */
|
|
@@ -11936,8 +11983,8 @@ var isRFC3339 = {exports: {}};
|
|
|
11936
11983
|
(0, _assertString.default)(str);
|
|
11937
11984
|
return rfc3339.test(str);
|
|
11938
11985
|
}
|
|
11939
|
-
module.exports = exports
|
|
11940
|
-
module.exports.default = exports
|
|
11986
|
+
module.exports = exports.default;
|
|
11987
|
+
module.exports.default = exports.default;
|
|
11941
11988
|
} (isRFC3339, isRFC3339.exports));
|
|
11942
11989
|
|
|
11943
11990
|
var isRFC3339Exports = isRFC3339.exports;
|
|
@@ -11961,34 +12008,46 @@ isISO15924$1.ScriptCodes = validISO15924Codes;
|
|
|
11961
12008
|
|
|
11962
12009
|
var isISO31661Alpha3 = {exports: {}};
|
|
11963
12010
|
|
|
11964
|
-
(function (module, exports
|
|
12011
|
+
(function (module, exports) {
|
|
11965
12012
|
|
|
11966
|
-
Object.defineProperty(exports
|
|
12013
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11967
12014
|
value: true
|
|
11968
12015
|
});
|
|
11969
|
-
exports
|
|
12016
|
+
exports.default = isISO31661Alpha3;
|
|
11970
12017
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11971
12018
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11972
12019
|
// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
|
|
11973
12020
|
var validISO31661Alpha3CountriesCodes = new Set(['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND', 'AGO', 'AIA', 'ATA', 'ATG', 'ARG', 'ARM', 'ABW', 'AUS', 'AUT', 'AZE', 'BHS', 'BHR', 'BGD', 'BRB', 'BLR', 'BEL', 'BLZ', 'BEN', 'BMU', 'BTN', 'BOL', 'BES', 'BIH', 'BWA', 'BVT', 'BRA', 'IOT', 'BRN', 'BGR', 'BFA', 'BDI', 'KHM', 'CMR', 'CAN', 'CPV', 'CYM', 'CAF', 'TCD', 'CHL', 'CHN', 'CXR', 'CCK', 'COL', 'COM', 'COG', 'COD', 'COK', 'CRI', 'CIV', 'HRV', 'CUB', 'CUW', 'CYP', 'CZE', 'DNK', 'DJI', 'DMA', 'DOM', 'ECU', 'EGY', 'SLV', 'GNQ', 'ERI', 'EST', 'ETH', 'FLK', 'FRO', 'FJI', 'FIN', 'FRA', 'GUF', 'PYF', 'ATF', 'GAB', 'GMB', 'GEO', 'DEU', 'GHA', 'GIB', 'GRC', 'GRL', 'GRD', 'GLP', 'GUM', 'GTM', 'GGY', 'GIN', 'GNB', 'GUY', 'HTI', 'HMD', 'VAT', 'HND', 'HKG', 'HUN', 'ISL', 'IND', 'IDN', 'IRN', 'IRQ', 'IRL', 'IMN', 'ISR', 'ITA', 'JAM', 'JPN', 'JEY', 'JOR', 'KAZ', 'KEN', 'KIR', 'PRK', 'KOR', 'KWT', 'KGZ', 'LAO', 'LVA', 'LBN', 'LSO', 'LBR', 'LBY', 'LIE', 'LTU', 'LUX', 'MAC', 'MKD', 'MDG', 'MWI', 'MYS', 'MDV', 'MLI', 'MLT', 'MHL', 'MTQ', 'MRT', 'MUS', 'MYT', 'MEX', 'FSM', 'MDA', 'MCO', 'MNG', 'MNE', 'MSR', 'MAR', 'MOZ', 'MMR', 'NAM', 'NRU', 'NPL', 'NLD', 'NCL', 'NZL', 'NIC', 'NER', 'NGA', 'NIU', 'NFK', 'MNP', 'NOR', 'OMN', 'PAK', 'PLW', 'PSE', 'PAN', 'PNG', 'PRY', 'PER', 'PHL', 'PCN', 'POL', 'PRT', 'PRI', 'QAT', 'REU', 'ROU', 'RUS', 'RWA', 'BLM', 'SHN', 'KNA', 'LCA', 'MAF', 'SPM', 'VCT', 'WSM', 'SMR', 'STP', 'SAU', 'SEN', 'SRB', 'SYC', 'SLE', 'SGP', 'SXM', 'SVK', 'SVN', 'SLB', 'SOM', 'ZAF', 'SGS', 'SSD', 'ESP', 'LKA', 'SDN', 'SUR', 'SJM', 'SWZ', 'SWE', 'CHE', 'SYR', 'TWN', 'TJK', 'TZA', 'THA', 'TLS', 'TGO', 'TKL', 'TON', 'TTO', 'TUN', 'TUR', 'TKM', 'TCA', 'TUV', 'UGA', 'UKR', 'ARE', 'GBR', 'USA', 'UMI', 'URY', 'UZB', 'VUT', 'VEN', 'VNM', 'VGB', 'VIR', 'WLF', 'ESH', 'YEM', 'ZMB', 'ZWE']);
|
|
12021
|
+
var alpha3CountryCode = /^[a-zA-Z]{3}$/;
|
|
11974
12022
|
function isISO31661Alpha3(str) {
|
|
12023
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
11975
12024
|
(0, _assertString.default)(str);
|
|
12025
|
+
var userAssignedCodes = options.userAssignedCodes;
|
|
12026
|
+
var validUserAssignedCodes = (userAssignedCodes || []).reduce(function (accumulator, userAssignedCode) {
|
|
12027
|
+
if (alpha3CountryCode.test(userAssignedCode)) {
|
|
12028
|
+
accumulator.push(userAssignedCode.toUpperCase());
|
|
12029
|
+
}
|
|
12030
|
+
return accumulator;
|
|
12031
|
+
}, []);
|
|
12032
|
+
if (validUserAssignedCodes.includes(str.toUpperCase())) {
|
|
12033
|
+
return true;
|
|
12034
|
+
}
|
|
11976
12035
|
return validISO31661Alpha3CountriesCodes.has(str.toUpperCase());
|
|
11977
12036
|
}
|
|
11978
|
-
module.exports = exports
|
|
11979
|
-
module.exports.default = exports
|
|
12037
|
+
module.exports = exports.default;
|
|
12038
|
+
module.exports.default = exports.default;
|
|
11980
12039
|
} (isISO31661Alpha3, isISO31661Alpha3.exports));
|
|
11981
12040
|
|
|
11982
12041
|
var isISO31661Alpha3Exports = isISO31661Alpha3.exports;
|
|
11983
12042
|
|
|
11984
12043
|
var isISO31661Numeric = {exports: {}};
|
|
11985
12044
|
|
|
11986
|
-
(function (module, exports
|
|
12045
|
+
(function (module, exports) {
|
|
11987
12046
|
|
|
11988
|
-
Object.defineProperty(exports
|
|
12047
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11989
12048
|
value: true
|
|
11990
12049
|
});
|
|
11991
|
-
exports
|
|
12050
|
+
exports.default = isISO31661Numeric;
|
|
11992
12051
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11993
12052
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11994
12053
|
// from https://en.wikipedia.org/wiki/ISO_3166-1_numeric
|
|
@@ -11997,8 +12056,8 @@ var isISO31661Numeric = {exports: {}};
|
|
|
11997
12056
|
(0, _assertString.default)(str);
|
|
11998
12057
|
return validISO31661NumericCountriesCodes.has(str);
|
|
11999
12058
|
}
|
|
12000
|
-
module.exports = exports
|
|
12001
|
-
module.exports.default = exports
|
|
12059
|
+
module.exports = exports.default;
|
|
12060
|
+
module.exports.default = exports.default;
|
|
12002
12061
|
} (isISO31661Numeric, isISO31661Numeric.exports));
|
|
12003
12062
|
|
|
12004
12063
|
var isISO31661NumericExports = isISO31661Numeric.exports;
|
|
@@ -12022,12 +12081,12 @@ isISO4217$1.CurrencyCodes = validISO4217CurrencyCodes;
|
|
|
12022
12081
|
|
|
12023
12082
|
var isBase32 = {exports: {}};
|
|
12024
12083
|
|
|
12025
|
-
(function (module, exports
|
|
12084
|
+
(function (module, exports) {
|
|
12026
12085
|
|
|
12027
|
-
Object.defineProperty(exports
|
|
12086
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12028
12087
|
value: true
|
|
12029
12088
|
});
|
|
12030
|
-
exports
|
|
12089
|
+
exports.default = isBase32;
|
|
12031
12090
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12032
12091
|
var _merge = _interopRequireDefault(mergeExports);
|
|
12033
12092
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -12042,51 +12101,44 @@ var isBase32 = {exports: {}};
|
|
|
12042
12101
|
if (options.crockford) {
|
|
12043
12102
|
return crockfordBase32.test(str);
|
|
12044
12103
|
}
|
|
12045
|
-
|
|
12046
|
-
if (len % 8 === 0 && base32.test(str)) {
|
|
12047
|
-
return true;
|
|
12048
|
-
}
|
|
12049
|
-
return false;
|
|
12104
|
+
return str.length % 8 === 0 && base32.test(str);
|
|
12050
12105
|
}
|
|
12051
|
-
module.exports = exports
|
|
12052
|
-
module.exports.default = exports
|
|
12106
|
+
module.exports = exports.default;
|
|
12107
|
+
module.exports.default = exports.default;
|
|
12053
12108
|
} (isBase32, isBase32.exports));
|
|
12054
12109
|
|
|
12055
12110
|
var isBase32Exports = isBase32.exports;
|
|
12056
12111
|
|
|
12057
12112
|
var isBase58 = {exports: {}};
|
|
12058
12113
|
|
|
12059
|
-
(function (module, exports
|
|
12114
|
+
(function (module, exports) {
|
|
12060
12115
|
|
|
12061
|
-
Object.defineProperty(exports
|
|
12116
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12062
12117
|
value: true
|
|
12063
12118
|
});
|
|
12064
|
-
exports
|
|
12119
|
+
exports.default = isBase58;
|
|
12065
12120
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12066
12121
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12067
12122
|
// Accepted chars - 123456789ABCDEFGH JKLMN PQRSTUVWXYZabcdefghijk mnopqrstuvwxyz
|
|
12068
12123
|
var base58Reg = /^[A-HJ-NP-Za-km-z1-9]*$/;
|
|
12069
12124
|
function isBase58(str) {
|
|
12070
12125
|
(0, _assertString.default)(str);
|
|
12071
|
-
|
|
12072
|
-
return true;
|
|
12073
|
-
}
|
|
12074
|
-
return false;
|
|
12126
|
+
return base58Reg.test(str);
|
|
12075
12127
|
}
|
|
12076
|
-
module.exports = exports
|
|
12077
|
-
module.exports.default = exports
|
|
12128
|
+
module.exports = exports.default;
|
|
12129
|
+
module.exports.default = exports.default;
|
|
12078
12130
|
} (isBase58, isBase58.exports));
|
|
12079
12131
|
|
|
12080
12132
|
var isBase58Exports = isBase58.exports;
|
|
12081
12133
|
|
|
12082
12134
|
var isDataURI = {exports: {}};
|
|
12083
12135
|
|
|
12084
|
-
(function (module, exports
|
|
12136
|
+
(function (module, exports) {
|
|
12085
12137
|
|
|
12086
|
-
Object.defineProperty(exports
|
|
12138
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12087
12139
|
value: true
|
|
12088
12140
|
});
|
|
12089
|
-
exports
|
|
12141
|
+
exports.default = isDataURI;
|
|
12090
12142
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12091
12143
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12092
12144
|
var validMediaType = /^[a-z]+\/[a-z0-9\-\+\._]+$/i;
|
|
@@ -12119,20 +12171,20 @@ var isDataURI = {exports: {}};
|
|
|
12119
12171
|
}
|
|
12120
12172
|
return true;
|
|
12121
12173
|
}
|
|
12122
|
-
module.exports = exports
|
|
12123
|
-
module.exports.default = exports
|
|
12174
|
+
module.exports = exports.default;
|
|
12175
|
+
module.exports.default = exports.default;
|
|
12124
12176
|
} (isDataURI, isDataURI.exports));
|
|
12125
12177
|
|
|
12126
12178
|
var isDataURIExports = isDataURI.exports;
|
|
12127
12179
|
|
|
12128
12180
|
var isMagnetURI = {exports: {}};
|
|
12129
12181
|
|
|
12130
|
-
(function (module, exports
|
|
12182
|
+
(function (module, exports) {
|
|
12131
12183
|
|
|
12132
|
-
Object.defineProperty(exports
|
|
12184
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12133
12185
|
value: true
|
|
12134
12186
|
});
|
|
12135
|
-
exports
|
|
12187
|
+
exports.default = isMagnetURI;
|
|
12136
12188
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12137
12189
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12138
12190
|
var magnetURIComponent = /(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;
|
|
@@ -12143,8 +12195,8 @@ var isMagnetURI = {exports: {}};
|
|
|
12143
12195
|
}
|
|
12144
12196
|
return magnetURIComponent.test(url);
|
|
12145
12197
|
}
|
|
12146
|
-
module.exports = exports
|
|
12147
|
-
module.exports.default = exports
|
|
12198
|
+
module.exports = exports.default;
|
|
12199
|
+
module.exports.default = exports.default;
|
|
12148
12200
|
} (isMagnetURI, isMagnetURI.exports));
|
|
12149
12201
|
|
|
12150
12202
|
var isMagnetURIExports = isMagnetURI.exports;
|
|
@@ -12155,12 +12207,12 @@ var trim = {exports: {}};
|
|
|
12155
12207
|
|
|
12156
12208
|
var rtrim = {exports: {}};
|
|
12157
12209
|
|
|
12158
|
-
(function (module, exports
|
|
12210
|
+
(function (module, exports) {
|
|
12159
12211
|
|
|
12160
|
-
Object.defineProperty(exports
|
|
12212
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12161
12213
|
value: true
|
|
12162
12214
|
});
|
|
12163
|
-
exports
|
|
12215
|
+
exports.default = rtrim;
|
|
12164
12216
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12165
12217
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12166
12218
|
function rtrim(str, chars) {
|
|
@@ -12177,20 +12229,20 @@ var rtrim = {exports: {}};
|
|
|
12177
12229
|
}
|
|
12178
12230
|
return str.slice(0, strIndex + 1);
|
|
12179
12231
|
}
|
|
12180
|
-
module.exports = exports
|
|
12181
|
-
module.exports.default = exports
|
|
12232
|
+
module.exports = exports.default;
|
|
12233
|
+
module.exports.default = exports.default;
|
|
12182
12234
|
} (rtrim, rtrim.exports));
|
|
12183
12235
|
|
|
12184
12236
|
var rtrimExports = rtrim.exports;
|
|
12185
12237
|
|
|
12186
12238
|
var ltrim = {exports: {}};
|
|
12187
12239
|
|
|
12188
|
-
(function (module, exports
|
|
12240
|
+
(function (module, exports) {
|
|
12189
12241
|
|
|
12190
|
-
Object.defineProperty(exports
|
|
12242
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12191
12243
|
value: true
|
|
12192
12244
|
});
|
|
12193
|
-
exports
|
|
12245
|
+
exports.default = ltrim;
|
|
12194
12246
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12195
12247
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12196
12248
|
function ltrim(str, chars) {
|
|
@@ -12199,36 +12251,36 @@ var ltrim = {exports: {}};
|
|
|
12199
12251
|
var pattern = chars ? new RegExp("^[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+"), 'g') : /^\s+/g;
|
|
12200
12252
|
return str.replace(pattern, '');
|
|
12201
12253
|
}
|
|
12202
|
-
module.exports = exports
|
|
12203
|
-
module.exports.default = exports
|
|
12254
|
+
module.exports = exports.default;
|
|
12255
|
+
module.exports.default = exports.default;
|
|
12204
12256
|
} (ltrim, ltrim.exports));
|
|
12205
12257
|
|
|
12206
12258
|
var ltrimExports = ltrim.exports;
|
|
12207
12259
|
|
|
12208
|
-
(function (module, exports
|
|
12260
|
+
(function (module, exports) {
|
|
12209
12261
|
|
|
12210
|
-
Object.defineProperty(exports
|
|
12262
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12211
12263
|
value: true
|
|
12212
12264
|
});
|
|
12213
|
-
exports
|
|
12265
|
+
exports.default = trim;
|
|
12214
12266
|
var _rtrim = _interopRequireDefault(rtrimExports);
|
|
12215
12267
|
var _ltrim = _interopRequireDefault(ltrimExports);
|
|
12216
12268
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12217
12269
|
function trim(str, chars) {
|
|
12218
12270
|
return (0, _rtrim.default)((0, _ltrim.default)(str, chars), chars);
|
|
12219
12271
|
}
|
|
12220
|
-
module.exports = exports
|
|
12221
|
-
module.exports.default = exports
|
|
12272
|
+
module.exports = exports.default;
|
|
12273
|
+
module.exports.default = exports.default;
|
|
12222
12274
|
} (trim, trim.exports));
|
|
12223
12275
|
|
|
12224
12276
|
var trimExports = trim.exports;
|
|
12225
12277
|
|
|
12226
|
-
(function (module, exports
|
|
12278
|
+
(function (module, exports) {
|
|
12227
12279
|
|
|
12228
|
-
Object.defineProperty(exports
|
|
12280
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12229
12281
|
value: true
|
|
12230
12282
|
});
|
|
12231
|
-
exports
|
|
12283
|
+
exports.default = isMailtoURI;
|
|
12232
12284
|
var _trim = _interopRequireDefault(trimExports);
|
|
12233
12285
|
var _isEmail = _interopRequireDefault(isEmailExports);
|
|
12234
12286
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
@@ -12305,20 +12357,20 @@ var trimExports = trim.exports;
|
|
|
12305
12357
|
return true;
|
|
12306
12358
|
});
|
|
12307
12359
|
}
|
|
12308
|
-
module.exports = exports
|
|
12309
|
-
module.exports.default = exports
|
|
12360
|
+
module.exports = exports.default;
|
|
12361
|
+
module.exports.default = exports.default;
|
|
12310
12362
|
} (isMailtoURI, isMailtoURI.exports));
|
|
12311
12363
|
|
|
12312
12364
|
var isMailtoURIExports = isMailtoURI.exports;
|
|
12313
12365
|
|
|
12314
12366
|
var isMimeType = {exports: {}};
|
|
12315
12367
|
|
|
12316
|
-
(function (module, exports
|
|
12368
|
+
(function (module, exports) {
|
|
12317
12369
|
|
|
12318
|
-
Object.defineProperty(exports
|
|
12370
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12319
12371
|
value: true
|
|
12320
12372
|
});
|
|
12321
|
-
exports
|
|
12373
|
+
exports.default = isMimeType;
|
|
12322
12374
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12323
12375
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12324
12376
|
/*
|
|
@@ -12359,20 +12411,20 @@ var isMimeType = {exports: {}};
|
|
|
12359
12411
|
(0, _assertString.default)(str);
|
|
12360
12412
|
return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str);
|
|
12361
12413
|
}
|
|
12362
|
-
module.exports = exports
|
|
12363
|
-
module.exports.default = exports
|
|
12414
|
+
module.exports = exports.default;
|
|
12415
|
+
module.exports.default = exports.default;
|
|
12364
12416
|
} (isMimeType, isMimeType.exports));
|
|
12365
12417
|
|
|
12366
12418
|
var isMimeTypeExports = isMimeType.exports;
|
|
12367
12419
|
|
|
12368
12420
|
var isLatLong = {exports: {}};
|
|
12369
12421
|
|
|
12370
|
-
(function (module, exports
|
|
12422
|
+
(function (module, exports) {
|
|
12371
12423
|
|
|
12372
|
-
Object.defineProperty(exports
|
|
12424
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12373
12425
|
value: true
|
|
12374
12426
|
});
|
|
12375
|
-
exports
|
|
12427
|
+
exports.default = isLatLong;
|
|
12376
12428
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12377
12429
|
var _merge = _interopRequireDefault(mergeExports);
|
|
12378
12430
|
var _includesString = _interopRequireDefault(includesStringExports);
|
|
@@ -12395,8 +12447,8 @@ var isLatLong = {exports: {}};
|
|
|
12395
12447
|
}
|
|
12396
12448
|
return lat.test(pair[0]) && long.test(pair[1]);
|
|
12397
12449
|
}
|
|
12398
|
-
module.exports = exports
|
|
12399
|
-
module.exports.default = exports
|
|
12450
|
+
module.exports = exports.default;
|
|
12451
|
+
module.exports.default = exports.default;
|
|
12400
12452
|
} (isLatLong, isLatLong.exports));
|
|
12401
12453
|
|
|
12402
12454
|
var isLatLongExports = isLatLong.exports;
|
|
@@ -12459,6 +12511,7 @@ var patterns = {
|
|
|
12459
12511
|
LU: fourDigit,
|
|
12460
12512
|
LV: /^LV\-\d{4}$/,
|
|
12461
12513
|
LK: fiveDigit,
|
|
12514
|
+
MC: /^980\d{2}$/,
|
|
12462
12515
|
MG: threeDigit,
|
|
12463
12516
|
MX: fiveDigit,
|
|
12464
12517
|
MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/,
|
|
@@ -12510,32 +12563,32 @@ function isPostalCode(str, locale) {
|
|
|
12510
12563
|
|
|
12511
12564
|
var _escape = {exports: {}};
|
|
12512
12565
|
|
|
12513
|
-
(function (module, exports
|
|
12566
|
+
(function (module, exports) {
|
|
12514
12567
|
|
|
12515
|
-
Object.defineProperty(exports
|
|
12568
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12516
12569
|
value: true
|
|
12517
12570
|
});
|
|
12518
|
-
exports
|
|
12571
|
+
exports.default = escape;
|
|
12519
12572
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12520
12573
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12521
12574
|
function escape(str) {
|
|
12522
12575
|
(0, _assertString.default)(str);
|
|
12523
12576
|
return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>').replace(/\//g, '/').replace(/\\/g, '\').replace(/`/g, '`');
|
|
12524
12577
|
}
|
|
12525
|
-
module.exports = exports
|
|
12526
|
-
module.exports.default = exports
|
|
12578
|
+
module.exports = exports.default;
|
|
12579
|
+
module.exports.default = exports.default;
|
|
12527
12580
|
} (_escape, _escape.exports));
|
|
12528
12581
|
|
|
12529
12582
|
var _escapeExports = _escape.exports;
|
|
12530
12583
|
|
|
12531
12584
|
var _unescape = {exports: {}};
|
|
12532
12585
|
|
|
12533
|
-
(function (module, exports
|
|
12586
|
+
(function (module, exports) {
|
|
12534
12587
|
|
|
12535
|
-
Object.defineProperty(exports
|
|
12588
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12536
12589
|
value: true
|
|
12537
12590
|
});
|
|
12538
|
-
exports
|
|
12591
|
+
exports.default = unescape;
|
|
12539
12592
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12540
12593
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12541
12594
|
function unescape(str) {
|
|
@@ -12545,8 +12598,8 @@ var _unescape = {exports: {}};
|
|
|
12545
12598
|
// bugs with intermediate strings containing escape sequences
|
|
12546
12599
|
// See: https://github.com/validatorjs/validator.js/issues/1827
|
|
12547
12600
|
}
|
|
12548
|
-
module.exports = exports
|
|
12549
|
-
module.exports.default = exports
|
|
12601
|
+
module.exports = exports.default;
|
|
12602
|
+
module.exports.default = exports.default;
|
|
12550
12603
|
} (_unescape, _unescape.exports));
|
|
12551
12604
|
|
|
12552
12605
|
var _unescapeExports = _unescape.exports;
|
|
@@ -12555,30 +12608,30 @@ var stripLow = {exports: {}};
|
|
|
12555
12608
|
|
|
12556
12609
|
var blacklist = {exports: {}};
|
|
12557
12610
|
|
|
12558
|
-
(function (module, exports
|
|
12611
|
+
(function (module, exports) {
|
|
12559
12612
|
|
|
12560
|
-
Object.defineProperty(exports
|
|
12613
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12561
12614
|
value: true
|
|
12562
12615
|
});
|
|
12563
|
-
exports
|
|
12616
|
+
exports.default = blacklist;
|
|
12564
12617
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12565
12618
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12566
12619
|
function blacklist(str, chars) {
|
|
12567
12620
|
(0, _assertString.default)(str);
|
|
12568
12621
|
return str.replace(new RegExp("[".concat(chars, "]+"), 'g'), '');
|
|
12569
12622
|
}
|
|
12570
|
-
module.exports = exports
|
|
12571
|
-
module.exports.default = exports
|
|
12623
|
+
module.exports = exports.default;
|
|
12624
|
+
module.exports.default = exports.default;
|
|
12572
12625
|
} (blacklist, blacklist.exports));
|
|
12573
12626
|
|
|
12574
12627
|
var blacklistExports = blacklist.exports;
|
|
12575
12628
|
|
|
12576
|
-
(function (module, exports
|
|
12629
|
+
(function (module, exports) {
|
|
12577
12630
|
|
|
12578
|
-
Object.defineProperty(exports
|
|
12631
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12579
12632
|
value: true
|
|
12580
12633
|
});
|
|
12581
|
-
exports
|
|
12634
|
+
exports.default = stripLow;
|
|
12582
12635
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12583
12636
|
var _blacklist = _interopRequireDefault(blacklistExports);
|
|
12584
12637
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -12587,40 +12640,40 @@ var blacklistExports = blacklist.exports;
|
|
|
12587
12640
|
var chars = keep_new_lines ? '\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F' : '\\x00-\\x1F\\x7F';
|
|
12588
12641
|
return (0, _blacklist.default)(str, chars);
|
|
12589
12642
|
}
|
|
12590
|
-
module.exports = exports
|
|
12591
|
-
module.exports.default = exports
|
|
12643
|
+
module.exports = exports.default;
|
|
12644
|
+
module.exports.default = exports.default;
|
|
12592
12645
|
} (stripLow, stripLow.exports));
|
|
12593
12646
|
|
|
12594
12647
|
var stripLowExports = stripLow.exports;
|
|
12595
12648
|
|
|
12596
12649
|
var whitelist = {exports: {}};
|
|
12597
12650
|
|
|
12598
|
-
(function (module, exports
|
|
12651
|
+
(function (module, exports) {
|
|
12599
12652
|
|
|
12600
|
-
Object.defineProperty(exports
|
|
12653
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12601
12654
|
value: true
|
|
12602
12655
|
});
|
|
12603
|
-
exports
|
|
12656
|
+
exports.default = whitelist;
|
|
12604
12657
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12605
12658
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12606
12659
|
function whitelist(str, chars) {
|
|
12607
12660
|
(0, _assertString.default)(str);
|
|
12608
12661
|
return str.replace(new RegExp("[^".concat(chars, "]+"), 'g'), '');
|
|
12609
12662
|
}
|
|
12610
|
-
module.exports = exports
|
|
12611
|
-
module.exports.default = exports
|
|
12663
|
+
module.exports = exports.default;
|
|
12664
|
+
module.exports.default = exports.default;
|
|
12612
12665
|
} (whitelist, whitelist.exports));
|
|
12613
12666
|
|
|
12614
12667
|
var whitelistExports = whitelist.exports;
|
|
12615
12668
|
|
|
12616
12669
|
var isWhitelisted = {exports: {}};
|
|
12617
12670
|
|
|
12618
|
-
(function (module, exports
|
|
12671
|
+
(function (module, exports) {
|
|
12619
12672
|
|
|
12620
|
-
Object.defineProperty(exports
|
|
12673
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12621
12674
|
value: true
|
|
12622
12675
|
});
|
|
12623
|
-
exports
|
|
12676
|
+
exports.default = isWhitelisted;
|
|
12624
12677
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12625
12678
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12626
12679
|
function isWhitelisted(str, chars) {
|
|
@@ -12632,20 +12685,20 @@ var isWhitelisted = {exports: {}};
|
|
|
12632
12685
|
}
|
|
12633
12686
|
return true;
|
|
12634
12687
|
}
|
|
12635
|
-
module.exports = exports
|
|
12636
|
-
module.exports.default = exports
|
|
12688
|
+
module.exports = exports.default;
|
|
12689
|
+
module.exports.default = exports.default;
|
|
12637
12690
|
} (isWhitelisted, isWhitelisted.exports));
|
|
12638
12691
|
|
|
12639
12692
|
var isWhitelistedExports = isWhitelisted.exports;
|
|
12640
12693
|
|
|
12641
12694
|
var normalizeEmail = {exports: {}};
|
|
12642
12695
|
|
|
12643
|
-
(function (module, exports
|
|
12696
|
+
(function (module, exports) {
|
|
12644
12697
|
|
|
12645
|
-
Object.defineProperty(exports
|
|
12698
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12646
12699
|
value: true
|
|
12647
12700
|
});
|
|
12648
|
-
exports
|
|
12701
|
+
exports.default = normalizeEmail;
|
|
12649
12702
|
var _merge = _interopRequireDefault(mergeExports);
|
|
12650
12703
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12651
12704
|
var default_normalize_email_options = {
|
|
@@ -12778,41 +12831,41 @@ var normalizeEmail = {exports: {}};
|
|
|
12778
12831
|
}
|
|
12779
12832
|
return parts.join('@');
|
|
12780
12833
|
}
|
|
12781
|
-
module.exports = exports
|
|
12782
|
-
module.exports.default = exports
|
|
12834
|
+
module.exports = exports.default;
|
|
12835
|
+
module.exports.default = exports.default;
|
|
12783
12836
|
} (normalizeEmail, normalizeEmail.exports));
|
|
12784
12837
|
|
|
12785
12838
|
var normalizeEmailExports = normalizeEmail.exports;
|
|
12786
12839
|
|
|
12787
12840
|
var isSlug = {exports: {}};
|
|
12788
12841
|
|
|
12789
|
-
(function (module, exports
|
|
12842
|
+
(function (module, exports) {
|
|
12790
12843
|
|
|
12791
|
-
Object.defineProperty(exports
|
|
12844
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12792
12845
|
value: true
|
|
12793
12846
|
});
|
|
12794
|
-
exports
|
|
12847
|
+
exports.default = isSlug;
|
|
12795
12848
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12796
12849
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12797
|
-
var charsetRegex = /^[
|
|
12850
|
+
var charsetRegex = /^[a-z0-9](?!.*[-_]{2,})(?:[a-z0-9_-]*[a-z0-9])?$/;
|
|
12798
12851
|
function isSlug(str) {
|
|
12799
12852
|
(0, _assertString.default)(str);
|
|
12800
12853
|
return charsetRegex.test(str);
|
|
12801
12854
|
}
|
|
12802
|
-
module.exports = exports
|
|
12803
|
-
module.exports.default = exports
|
|
12855
|
+
module.exports = exports.default;
|
|
12856
|
+
module.exports.default = exports.default;
|
|
12804
12857
|
} (isSlug, isSlug.exports));
|
|
12805
12858
|
|
|
12806
12859
|
var isSlugExports = isSlug.exports;
|
|
12807
12860
|
|
|
12808
12861
|
var isLicensePlate = {exports: {}};
|
|
12809
12862
|
|
|
12810
|
-
(function (module, exports
|
|
12863
|
+
(function (module, exports) {
|
|
12811
12864
|
|
|
12812
|
-
Object.defineProperty(exports
|
|
12865
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12813
12866
|
value: true
|
|
12814
12867
|
});
|
|
12815
|
-
exports
|
|
12868
|
+
exports.default = isLicensePlate;
|
|
12816
12869
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12817
12870
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12818
12871
|
var validators = {
|
|
@@ -12872,20 +12925,20 @@ var isLicensePlate = {exports: {}};
|
|
|
12872
12925
|
}
|
|
12873
12926
|
throw new Error("Invalid locale '".concat(locale, "'"));
|
|
12874
12927
|
}
|
|
12875
|
-
module.exports = exports
|
|
12876
|
-
module.exports.default = exports
|
|
12928
|
+
module.exports = exports.default;
|
|
12929
|
+
module.exports.default = exports.default;
|
|
12877
12930
|
} (isLicensePlate, isLicensePlate.exports));
|
|
12878
12931
|
|
|
12879
12932
|
var isLicensePlateExports = isLicensePlate.exports;
|
|
12880
12933
|
|
|
12881
12934
|
var isStrongPassword = {exports: {}};
|
|
12882
12935
|
|
|
12883
|
-
(function (module, exports
|
|
12936
|
+
(function (module, exports) {
|
|
12884
12937
|
|
|
12885
|
-
Object.defineProperty(exports
|
|
12938
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12886
12939
|
value: true
|
|
12887
12940
|
});
|
|
12888
|
-
exports
|
|
12941
|
+
exports.default = isStrongPassword;
|
|
12889
12942
|
var _merge = _interopRequireDefault(mergeExports);
|
|
12890
12943
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12891
12944
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -12977,8 +13030,8 @@ var isStrongPassword = {exports: {}};
|
|
|
12977
13030
|
}
|
|
12978
13031
|
return analysis.length >= options.minLength && analysis.lowercaseCount >= options.minLowercase && analysis.uppercaseCount >= options.minUppercase && analysis.numberCount >= options.minNumbers && analysis.symbolCount >= options.minSymbols;
|
|
12979
13032
|
}
|
|
12980
|
-
module.exports = exports
|
|
12981
|
-
module.exports.default = exports
|
|
13033
|
+
module.exports = exports.default;
|
|
13034
|
+
module.exports.default = exports.default;
|
|
12982
13035
|
} (isStrongPassword, isStrongPassword.exports));
|
|
12983
13036
|
|
|
12984
13037
|
var isStrongPasswordExports = isStrongPassword.exports;
|
|
@@ -13258,13 +13311,13 @@ function isVAT(str, countryCode) {
|
|
|
13258
13311
|
throw new Error("Invalid country code: '".concat(countryCode, "'"));
|
|
13259
13312
|
}
|
|
13260
13313
|
|
|
13261
|
-
(function (module, exports
|
|
13314
|
+
(function (module, exports) {
|
|
13262
13315
|
|
|
13263
13316
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13264
|
-
Object.defineProperty(exports
|
|
13317
|
+
Object.defineProperty(exports, "__esModule", {
|
|
13265
13318
|
value: true
|
|
13266
13319
|
});
|
|
13267
|
-
exports
|
|
13320
|
+
exports.default = void 0;
|
|
13268
13321
|
var _toDate = _interopRequireDefault(toDateExports);
|
|
13269
13322
|
var _toFloat = _interopRequireDefault(toFloatExports);
|
|
13270
13323
|
var _toInt = _interopRequireDefault(toIntExports);
|
|
@@ -13369,7 +13422,7 @@ function isVAT(str, countryCode) {
|
|
|
13369
13422
|
var _isVAT = _interopRequireDefault(isVAT$1);
|
|
13370
13423
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13371
13424
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13372
|
-
var version = '13.15.
|
|
13425
|
+
var version = '13.15.35';
|
|
13373
13426
|
var validator = {
|
|
13374
13427
|
version: version,
|
|
13375
13428
|
toDate: _toDate.default,
|
|
@@ -13484,9 +13537,9 @@ function isVAT(str, countryCode) {
|
|
|
13484
13537
|
isVAT: _isVAT.default,
|
|
13485
13538
|
ibanLocales: _isIBAN.locales
|
|
13486
13539
|
};
|
|
13487
|
-
exports
|
|
13488
|
-
module.exports = exports
|
|
13489
|
-
module.exports.default = exports
|
|
13540
|
+
exports.default = validator;
|
|
13541
|
+
module.exports = exports.default;
|
|
13542
|
+
module.exports.default = exports.default;
|
|
13490
13543
|
} (validator$1, validator$1.exports));
|
|
13491
13544
|
|
|
13492
13545
|
var validatorExports = validator$1.exports;
|
|
@@ -14131,11 +14184,11 @@ function requireCSV () {
|
|
|
14131
14184
|
return CSV;
|
|
14132
14185
|
}
|
|
14133
14186
|
|
|
14134
|
-
(function (exports
|
|
14187
|
+
(function (exports) {
|
|
14135
14188
|
function __export(m) {
|
|
14136
|
-
for (var p in m) if (!exports
|
|
14189
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
14137
14190
|
}
|
|
14138
|
-
Object.defineProperty(exports
|
|
14191
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14139
14192
|
__export(requireCSV());
|
|
14140
14193
|
} (dist));
|
|
14141
14194
|
|
|
@@ -15670,8 +15723,8 @@ return CRC32;
|
|
|
15670
15723
|
})();
|
|
15671
15724
|
/* [MS-CFB] v20171201 */
|
|
15672
15725
|
var CFB = /*#__PURE__*/(function _CFB(){
|
|
15673
|
-
var exports
|
|
15674
|
-
exports
|
|
15726
|
+
var exports/*:CFBModule*/ = /*::(*/{}/*:: :any)*/;
|
|
15727
|
+
exports.version = '1.2.2';
|
|
15675
15728
|
/* [MS-CFB] 2.6.4 */
|
|
15676
15729
|
function namecmp(l/*:string*/, r/*:string*/)/*:number*/ {
|
|
15677
15730
|
var L = l.split("/"), R = r.split("/");
|
|
@@ -17372,12 +17425,12 @@ function cfb_mov(cfb/*:CFBContainer*/, old_name/*:string*/, new_name/*:string*/)
|
|
|
17372
17425
|
|
|
17373
17426
|
function cfb_gc(cfb/*:CFBContainer*/)/*:void*/ { rebuild_cfb(cfb, true); }
|
|
17374
17427
|
|
|
17375
|
-
exports
|
|
17376
|
-
exports
|
|
17377
|
-
exports
|
|
17378
|
-
exports
|
|
17379
|
-
exports
|
|
17380
|
-
exports
|
|
17428
|
+
exports.find = find;
|
|
17429
|
+
exports.read = read;
|
|
17430
|
+
exports.parse = parse;
|
|
17431
|
+
exports.write = write;
|
|
17432
|
+
exports.writeFile = write_file;
|
|
17433
|
+
exports.utils = {
|
|
17381
17434
|
cfb_new: cfb_new,
|
|
17382
17435
|
cfb_add: cfb_add,
|
|
17383
17436
|
cfb_del: cfb_del,
|
|
@@ -17393,7 +17446,7 @@ exports$1.utils = {
|
|
|
17393
17446
|
consts: consts
|
|
17394
17447
|
};
|
|
17395
17448
|
|
|
17396
|
-
return exports
|
|
17449
|
+
return exports;
|
|
17397
17450
|
})();
|
|
17398
17451
|
|
|
17399
17452
|
var _fs;
|
|
@@ -41941,20 +41994,17 @@ var _validateFormat = (rows, hasHeader, cols, options) => {
|
|
|
41941
41994
|
_forgeColumnsCountError(row, rowIndex + 1, cols, errors);
|
|
41942
41995
|
}
|
|
41943
41996
|
for (var colIndex = 0; colIndex < knownColsCount; colIndex++) {
|
|
41944
|
-
var
|
|
41945
|
-
type,
|
|
41946
|
-
colOptions,
|
|
41947
|
-
acceptsEmptyFields,
|
|
41948
|
-
field
|
|
41949
|
-
} = colMeta[colIndex];
|
|
41997
|
+
var _colMeta$colIndex = colMeta[colIndex],
|
|
41998
|
+
type = _colMeta$colIndex.type,
|
|
41999
|
+
colOptions = _colMeta$colIndex.colOptions,
|
|
42000
|
+
acceptsEmptyFields = _colMeta$colIndex.acceptsEmptyFields,
|
|
42001
|
+
field = _colMeta$colIndex.field;
|
|
41950
42002
|
var value = row[colIndex];
|
|
41951
42003
|
if (value === undefined) continue;
|
|
41952
42004
|
var validationResult = ValidationUtils.isValid(value, type, colOptions, acceptsEmptyFields);
|
|
41953
42005
|
if (validationResult !== true) {
|
|
41954
|
-
var
|
|
41955
|
-
|
|
41956
|
-
context: errorContext
|
|
41957
|
-
} = validationResult;
|
|
42006
|
+
var errorSummary = validationResult.summary,
|
|
42007
|
+
errorContext = validationResult.context;
|
|
41958
42008
|
var errorLoc = "Line ".concat(rowIndex + 1, ", Column ").concat(colIndex + 1, " (\"").concat(field, "\")");
|
|
41959
42009
|
errors.push(new Error$1(errorSummary, errorLoc, errorContext));
|
|
41960
42010
|
}
|
|
@@ -42500,7 +42550,7 @@ var AuthDev = {
|
|
|
42500
42550
|
acquireTokensByRequest
|
|
42501
42551
|
};
|
|
42502
42552
|
|
|
42503
|
-
/*! @azure/msal-common v15.
|
|
42553
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42504
42554
|
/*
|
|
42505
42555
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
42506
42556
|
* Licensed under the MIT License.
|
|
@@ -42774,7 +42824,7 @@ const JsonWebTokenTypes = {
|
|
|
42774
42824
|
// Token renewal offset default in seconds
|
|
42775
42825
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
42776
42826
|
|
|
42777
|
-
/*! @azure/msal-common v15.
|
|
42827
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42778
42828
|
/*
|
|
42779
42829
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
42780
42830
|
* Licensed under the MIT License.
|
|
@@ -42785,7 +42835,7 @@ const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
|
42785
42835
|
const unexpectedError = "unexpected_error";
|
|
42786
42836
|
const postRequestFailed$1 = "post_request_failed";
|
|
42787
42837
|
|
|
42788
|
-
/*! @azure/msal-common v15.
|
|
42838
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42789
42839
|
|
|
42790
42840
|
/*
|
|
42791
42841
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -42820,7 +42870,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
42820
42870
|
: AuthErrorMessages[code]);
|
|
42821
42871
|
}
|
|
42822
42872
|
|
|
42823
|
-
/*! @azure/msal-common v15.
|
|
42873
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42824
42874
|
/*
|
|
42825
42875
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
42826
42876
|
* Licensed under the MIT License.
|
|
@@ -42871,7 +42921,7 @@ const methodNotImplemented = "method_not_implemented";
|
|
|
42871
42921
|
const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
|
|
42872
42922
|
const platformBrokerError = "platform_broker_error";
|
|
42873
42923
|
|
|
42874
|
-
/*! @azure/msal-common v15.
|
|
42924
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42875
42925
|
|
|
42876
42926
|
/*
|
|
42877
42927
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -42946,7 +42996,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
42946
42996
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
42947
42997
|
}
|
|
42948
42998
|
|
|
42949
|
-
/*! @azure/msal-common v15.
|
|
42999
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42950
43000
|
|
|
42951
43001
|
/*
|
|
42952
43002
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -42985,7 +43035,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
42985
43035
|
},
|
|
42986
43036
|
};
|
|
42987
43037
|
|
|
42988
|
-
/*! @azure/msal-common v15.
|
|
43038
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42989
43039
|
|
|
42990
43040
|
/*
|
|
42991
43041
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -43176,12 +43226,12 @@ class Logger {
|
|
|
43176
43226
|
}
|
|
43177
43227
|
}
|
|
43178
43228
|
|
|
43179
|
-
/*! @azure/msal-common v15.
|
|
43229
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43180
43230
|
/* eslint-disable header/header */
|
|
43181
43231
|
const name$2 = "@azure/msal-common";
|
|
43182
|
-
const version$1 = "15.
|
|
43232
|
+
const version$1 = "15.17.0";
|
|
43183
43233
|
|
|
43184
|
-
/*! @azure/msal-common v15.
|
|
43234
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43185
43235
|
/*
|
|
43186
43236
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43187
43237
|
* Licensed under the MIT License.
|
|
@@ -43190,7 +43240,7 @@ const AzureCloudInstance = {
|
|
|
43190
43240
|
// AzureCloudInstance is not specified.
|
|
43191
43241
|
None: "none"};
|
|
43192
43242
|
|
|
43193
|
-
/*! @azure/msal-common v15.
|
|
43243
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43194
43244
|
/*
|
|
43195
43245
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43196
43246
|
* Licensed under the MIT License.
|
|
@@ -43220,7 +43270,7 @@ const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
|
|
|
43220
43270
|
const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
|
|
43221
43271
|
const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuration";
|
|
43222
43272
|
|
|
43223
|
-
/*! @azure/msal-common v15.
|
|
43273
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43224
43274
|
|
|
43225
43275
|
/*
|
|
43226
43276
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -43266,7 +43316,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
43266
43316
|
return new ClientConfigurationError(errorCode);
|
|
43267
43317
|
}
|
|
43268
43318
|
|
|
43269
|
-
/*! @azure/msal-common v15.
|
|
43319
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43270
43320
|
/*
|
|
43271
43321
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43272
43322
|
* Licensed under the MIT License.
|
|
@@ -43361,9 +43411,48 @@ class StringUtils {
|
|
|
43361
43411
|
.replace(/\?/g, "\\?"));
|
|
43362
43412
|
return regex.test(input);
|
|
43363
43413
|
}
|
|
43414
|
+
/**
|
|
43415
|
+
* Tests if a given string matches a given pattern using stricter, anchored matching semantics.
|
|
43416
|
+
*
|
|
43417
|
+
* Differences from `matchPattern` (legacy):
|
|
43418
|
+
* - All regex metacharacters (including `.`) in the pattern are treated as literals,
|
|
43419
|
+
* so `example.com` matches only `example.com` and not `exampleXcom`.
|
|
43420
|
+
* - The generated regex is anchored with `^` and `$` so partial/substring matches
|
|
43421
|
+
* are not allowed.
|
|
43422
|
+
* - `*` is the only supported wildcard. Its behaviour depends on the URL component:
|
|
43423
|
+
* - `host` component: `*` matches any sequence of characters that does NOT include
|
|
43424
|
+
* a dot (`.`), keeping wildcards within a single DNS label boundary.
|
|
43425
|
+
* - All other components: `*` matches any sequence of characters (including `/`).
|
|
43426
|
+
*
|
|
43427
|
+
* @param pattern - The `protectedResourceMap` key pattern to match against. `*` is a
|
|
43428
|
+
* multi-character wildcard; all other characters are treated as literals.
|
|
43429
|
+
* @param input - The URL component value (e.g. host, pathname) extracted from the
|
|
43430
|
+
* outgoing request URL to test against the pattern.
|
|
43431
|
+
* @param options - Optional. Provide `component` to enable component-aware wildcard
|
|
43432
|
+
* semantics. Accepted values: `"host"`, `"path"`, `"protocol"`, `"search"`,
|
|
43433
|
+
* `"hash"`. Defaults to path-style (permissive) matching when omitted.
|
|
43434
|
+
* @returns `true` if the full input string matches the pattern; `false` otherwise.
|
|
43435
|
+
*/
|
|
43436
|
+
static matchPatternStrict(pattern, input, options) {
|
|
43437
|
+
const component = options?.component;
|
|
43438
|
+
// Step 1: Escape all regex special characters so literals are matched literally.
|
|
43439
|
+
let regexBody = pattern.replace(/[.+^${}()|[\]\\*?]/g, "\\$&");
|
|
43440
|
+
// Step 2: Replace the escaped '*' with its component-aware regex equivalent.
|
|
43441
|
+
if (component === "host") {
|
|
43442
|
+
regexBody = regexBody.replace(/\\\*/g, "[^.]*");
|
|
43443
|
+
}
|
|
43444
|
+
else {
|
|
43445
|
+
// PATH, PROTOCOL, SEARCH, HASH, or unspecified: '*' matches any characters.
|
|
43446
|
+
regexBody = regexBody.replace(/\\\*/g, ".*");
|
|
43447
|
+
}
|
|
43448
|
+
// Step 3: Anchor for full-string matching.
|
|
43449
|
+
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
43450
|
+
const regex = new RegExp(`^${regexBody}$`);
|
|
43451
|
+
return regex.test(input);
|
|
43452
|
+
}
|
|
43364
43453
|
}
|
|
43365
43454
|
|
|
43366
|
-
/*! @azure/msal-common v15.
|
|
43455
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43367
43456
|
|
|
43368
43457
|
/*
|
|
43369
43458
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -43558,7 +43647,7 @@ class ScopeSet {
|
|
|
43558
43647
|
}
|
|
43559
43648
|
}
|
|
43560
43649
|
|
|
43561
|
-
/*! @azure/msal-common v15.
|
|
43650
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43562
43651
|
|
|
43563
43652
|
/*
|
|
43564
43653
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -43598,7 +43687,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
43598
43687
|
};
|
|
43599
43688
|
}
|
|
43600
43689
|
|
|
43601
|
-
/*! @azure/msal-common v15.
|
|
43690
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43602
43691
|
/*
|
|
43603
43692
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43604
43693
|
* Licensed under the MIT License.
|
|
@@ -43680,7 +43769,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
43680
43769
|
return updatedAccountInfo;
|
|
43681
43770
|
}
|
|
43682
43771
|
|
|
43683
|
-
/*! @azure/msal-common v15.
|
|
43772
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43684
43773
|
/*
|
|
43685
43774
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43686
43775
|
* Licensed under the MIT License.
|
|
@@ -43695,7 +43784,7 @@ const AuthorityType = {
|
|
|
43695
43784
|
Ciam: 3,
|
|
43696
43785
|
};
|
|
43697
43786
|
|
|
43698
|
-
/*! @azure/msal-common v15.
|
|
43787
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43699
43788
|
/*
|
|
43700
43789
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43701
43790
|
* Licensed under the MIT License.
|
|
@@ -43717,7 +43806,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
43717
43806
|
return null;
|
|
43718
43807
|
}
|
|
43719
43808
|
|
|
43720
|
-
/*! @azure/msal-common v15.
|
|
43809
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43721
43810
|
/*
|
|
43722
43811
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43723
43812
|
* Licensed under the MIT License.
|
|
@@ -43741,7 +43830,7 @@ const ProtocolMode = {
|
|
|
43741
43830
|
EAR: "EAR",
|
|
43742
43831
|
};
|
|
43743
43832
|
|
|
43744
|
-
/*! @azure/msal-common v15.
|
|
43833
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43745
43834
|
|
|
43746
43835
|
/*
|
|
43747
43836
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -43976,7 +44065,7 @@ class AccountEntity {
|
|
|
43976
44065
|
}
|
|
43977
44066
|
}
|
|
43978
44067
|
|
|
43979
|
-
/*! @azure/msal-common v15.
|
|
44068
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43980
44069
|
|
|
43981
44070
|
/*
|
|
43982
44071
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -44057,7 +44146,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
44057
44146
|
}
|
|
44058
44147
|
}
|
|
44059
44148
|
|
|
44060
|
-
/*! @azure/msal-common v15.
|
|
44149
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44061
44150
|
|
|
44062
44151
|
/*
|
|
44063
44152
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -44173,7 +44262,7 @@ function normalizeUrlForComparison(url) {
|
|
|
44173
44262
|
}
|
|
44174
44263
|
}
|
|
44175
44264
|
|
|
44176
|
-
/*! @azure/msal-common v15.
|
|
44265
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44177
44266
|
|
|
44178
44267
|
/*
|
|
44179
44268
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -44337,7 +44426,7 @@ class UrlString {
|
|
|
44337
44426
|
}
|
|
44338
44427
|
}
|
|
44339
44428
|
|
|
44340
|
-
/*! @azure/msal-common v15.
|
|
44429
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44341
44430
|
|
|
44342
44431
|
/*
|
|
44343
44432
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -44512,7 +44601,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
44512
44601
|
return null;
|
|
44513
44602
|
}
|
|
44514
44603
|
|
|
44515
|
-
/*! @azure/msal-common v15.
|
|
44604
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44516
44605
|
/*
|
|
44517
44606
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
44518
44607
|
* Licensed under the MIT License.
|
|
@@ -44520,7 +44609,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
44520
44609
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
44521
44610
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
44522
44611
|
|
|
44523
|
-
/*! @azure/msal-common v15.
|
|
44612
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44524
44613
|
|
|
44525
44614
|
/*
|
|
44526
44615
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -44565,7 +44654,7 @@ function createCacheError(e) {
|
|
|
44565
44654
|
}
|
|
44566
44655
|
}
|
|
44567
44656
|
|
|
44568
|
-
/*! @azure/msal-common v15.
|
|
44657
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44569
44658
|
|
|
44570
44659
|
/*
|
|
44571
44660
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -45675,7 +45764,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
45675
45764
|
}
|
|
45676
45765
|
}
|
|
45677
45766
|
|
|
45678
|
-
/*! @azure/msal-common v15.
|
|
45767
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
45679
45768
|
/*
|
|
45680
45769
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
45681
45770
|
* Licensed under the MIT License.
|
|
@@ -45937,6 +46026,11 @@ const PerformanceEvents = {
|
|
|
45937
46026
|
LoadIdToken: "loadIdToken",
|
|
45938
46027
|
LoadAccessToken: "loadAccessToken",
|
|
45939
46028
|
LoadRefreshToken: "loadRefreshToken",
|
|
46029
|
+
/**
|
|
46030
|
+
* SSO capability verification call (msal-browser).
|
|
46031
|
+
* Fire-and-forget SSO verification call made after interactive authentication completes.
|
|
46032
|
+
*/
|
|
46033
|
+
SsoCapable: "ssoCapable",
|
|
45940
46034
|
};
|
|
45941
46035
|
/**
|
|
45942
46036
|
* State of the performance event.
|
|
@@ -45947,7 +46041,7 @@ const PerformanceEvents = {
|
|
|
45947
46041
|
const PerformanceEventStatus = {
|
|
45948
46042
|
InProgress: 1};
|
|
45949
46043
|
|
|
45950
|
-
/*! @azure/msal-common v15.
|
|
46044
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
45951
46045
|
|
|
45952
46046
|
/*
|
|
45953
46047
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -46026,7 +46120,7 @@ class StubPerformanceClient {
|
|
|
46026
46120
|
}
|
|
46027
46121
|
}
|
|
46028
46122
|
|
|
46029
|
-
/*! @azure/msal-common v15.
|
|
46123
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46030
46124
|
|
|
46031
46125
|
/*
|
|
46032
46126
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -46126,7 +46220,7 @@ function isOidcProtocolMode(config) {
|
|
|
46126
46220
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
46127
46221
|
}
|
|
46128
46222
|
|
|
46129
|
-
/*! @azure/msal-common v15.
|
|
46223
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46130
46224
|
/*
|
|
46131
46225
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46132
46226
|
* Licensed under the MIT License.
|
|
@@ -46136,7 +46230,7 @@ const CcsCredentialType = {
|
|
|
46136
46230
|
UPN: "UPN",
|
|
46137
46231
|
};
|
|
46138
46232
|
|
|
46139
|
-
/*! @azure/msal-common v15.
|
|
46233
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46140
46234
|
/*
|
|
46141
46235
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46142
46236
|
* Licensed under the MIT License.
|
|
@@ -46184,9 +46278,10 @@ const BROKER_CLIENT_ID = "brk_client_id";
|
|
|
46184
46278
|
const BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
46185
46279
|
const INSTANCE_AWARE = "instance_aware";
|
|
46186
46280
|
const EAR_JWK = "ear_jwk";
|
|
46187
|
-
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
46281
|
+
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
46282
|
+
const CLI_DATA = "clidata";
|
|
46188
46283
|
|
|
46189
|
-
/*! @azure/msal-common v15.
|
|
46284
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46190
46285
|
|
|
46191
46286
|
/*
|
|
46192
46287
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -46452,6 +46547,12 @@ function addGrantType(parameters, grantType) {
|
|
|
46452
46547
|
function addClientInfo(parameters) {
|
|
46453
46548
|
parameters.set(CLIENT_INFO, "1");
|
|
46454
46549
|
}
|
|
46550
|
+
/**
|
|
46551
|
+
* add clidata=1 to request to indicate client data support
|
|
46552
|
+
*/
|
|
46553
|
+
function addCliData(parameters) {
|
|
46554
|
+
parameters.set(CLI_DATA, "1");
|
|
46555
|
+
}
|
|
46455
46556
|
function addInstanceAware(parameters) {
|
|
46456
46557
|
if (!parameters.has(INSTANCE_AWARE)) {
|
|
46457
46558
|
parameters.set(INSTANCE_AWARE, "true");
|
|
@@ -46566,7 +46667,7 @@ function addPostBodyParameters(parameters, bodyParameters) {
|
|
|
46566
46667
|
});
|
|
46567
46668
|
}
|
|
46568
46669
|
|
|
46569
|
-
/*! @azure/msal-common v15.
|
|
46670
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46570
46671
|
/*
|
|
46571
46672
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46572
46673
|
* Licensed under the MIT License.
|
|
@@ -46578,7 +46679,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
46578
46679
|
response.hasOwnProperty("jwks_uri"));
|
|
46579
46680
|
}
|
|
46580
46681
|
|
|
46581
|
-
/*! @azure/msal-common v15.
|
|
46682
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46582
46683
|
/*
|
|
46583
46684
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46584
46685
|
* Licensed under the MIT License.
|
|
@@ -46588,7 +46689,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
46588
46689
|
response.hasOwnProperty("metadata"));
|
|
46589
46690
|
}
|
|
46590
46691
|
|
|
46591
|
-
/*! @azure/msal-common v15.
|
|
46692
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46592
46693
|
/*
|
|
46593
46694
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46594
46695
|
* Licensed under the MIT License.
|
|
@@ -46598,7 +46699,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
46598
46699
|
response.hasOwnProperty("error_description"));
|
|
46599
46700
|
}
|
|
46600
46701
|
|
|
46601
|
-
/*! @azure/msal-common v15.
|
|
46702
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46602
46703
|
/*
|
|
46603
46704
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46604
46705
|
* Licensed under the MIT License.
|
|
@@ -46694,7 +46795,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
46694
46795
|
};
|
|
46695
46796
|
};
|
|
46696
46797
|
|
|
46697
|
-
/*! @azure/msal-common v15.
|
|
46798
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46698
46799
|
|
|
46699
46800
|
/*
|
|
46700
46801
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -46800,7 +46901,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
46800
46901
|
},
|
|
46801
46902
|
};
|
|
46802
46903
|
|
|
46803
|
-
/*! @azure/msal-common v15.
|
|
46904
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46804
46905
|
/*
|
|
46805
46906
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46806
46907
|
* Licensed under the MIT License.
|
|
@@ -46865,7 +46966,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
46865
46966
|
return cachedAtSec > nowSeconds();
|
|
46866
46967
|
}
|
|
46867
46968
|
|
|
46868
|
-
/*! @azure/msal-common v15.
|
|
46969
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46869
46970
|
|
|
46870
46971
|
/*
|
|
46871
46972
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -47127,7 +47228,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
47127
47228
|
return metadata.expiresAt <= nowSeconds();
|
|
47128
47229
|
}
|
|
47129
47230
|
|
|
47130
|
-
/*! @azure/msal-common v15.
|
|
47231
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
47131
47232
|
|
|
47132
47233
|
/*
|
|
47133
47234
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -47966,7 +48067,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
47966
48067
|
};
|
|
47967
48068
|
}
|
|
47968
48069
|
|
|
47969
|
-
/*! @azure/msal-common v15.
|
|
48070
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
47970
48071
|
|
|
47971
48072
|
/*
|
|
47972
48073
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -47997,7 +48098,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
47997
48098
|
}
|
|
47998
48099
|
}
|
|
47999
48100
|
|
|
48000
|
-
/*! @azure/msal-common v15.
|
|
48101
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48001
48102
|
|
|
48002
48103
|
/*
|
|
48003
48104
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48016,7 +48117,7 @@ class ServerError extends AuthError {
|
|
|
48016
48117
|
}
|
|
48017
48118
|
}
|
|
48018
48119
|
|
|
48019
|
-
/*! @azure/msal-common v15.
|
|
48120
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48020
48121
|
/*
|
|
48021
48122
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
48022
48123
|
* Licensed under the MIT License.
|
|
@@ -48037,7 +48138,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
48037
48138
|
};
|
|
48038
48139
|
}
|
|
48039
48140
|
|
|
48040
|
-
/*! @azure/msal-common v15.
|
|
48141
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48041
48142
|
|
|
48042
48143
|
/*
|
|
48043
48144
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48124,7 +48225,7 @@ class ThrottlingUtils {
|
|
|
48124
48225
|
}
|
|
48125
48226
|
}
|
|
48126
48227
|
|
|
48127
|
-
/*! @azure/msal-common v15.
|
|
48228
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48128
48229
|
|
|
48129
48230
|
/*
|
|
48130
48231
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48155,7 +48256,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
48155
48256
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
48156
48257
|
}
|
|
48157
48258
|
|
|
48158
|
-
/*! @azure/msal-common v15.
|
|
48259
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48159
48260
|
|
|
48160
48261
|
/*
|
|
48161
48262
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48303,23 +48404,58 @@ class BaseClient {
|
|
|
48303
48404
|
}
|
|
48304
48405
|
}
|
|
48305
48406
|
|
|
48306
|
-
/*! @azure/msal-common v15.
|
|
48407
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48307
48408
|
/*
|
|
48308
48409
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
48309
48410
|
* Licensed under the MIT License.
|
|
48310
48411
|
*/
|
|
48311
|
-
|
|
48412
|
+
/**
|
|
48413
|
+
* MSAL-defined interaction required error code indicating no tokens are found in cache.
|
|
48414
|
+
* @public
|
|
48415
|
+
*/
|
|
48312
48416
|
const noTokensFound = "no_tokens_found";
|
|
48417
|
+
/**
|
|
48418
|
+
* MSAL-defined error code indicating a native account is unavailable on the platform.
|
|
48419
|
+
* @public
|
|
48420
|
+
*/
|
|
48313
48421
|
const nativeAccountUnavailable = "native_account_unavailable";
|
|
48422
|
+
/**
|
|
48423
|
+
* MSAL-defined error code indicating the refresh token has expired and user interaction is needed.
|
|
48424
|
+
* @public
|
|
48425
|
+
*/
|
|
48314
48426
|
const refreshTokenExpired = "refresh_token_expired";
|
|
48427
|
+
/**
|
|
48428
|
+
* MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction.
|
|
48429
|
+
* @public
|
|
48430
|
+
*/
|
|
48315
48431
|
const uxNotAllowed = "ux_not_allowed";
|
|
48316
|
-
|
|
48432
|
+
/**
|
|
48433
|
+
* Server-originated error code indicating interaction is required to complete the request.
|
|
48434
|
+
* @public
|
|
48435
|
+
*/
|
|
48317
48436
|
const interactionRequired = "interaction_required";
|
|
48437
|
+
/**
|
|
48438
|
+
* Server-originated error code indicating user consent is required.
|
|
48439
|
+
* @public
|
|
48440
|
+
*/
|
|
48318
48441
|
const consentRequired = "consent_required";
|
|
48442
|
+
/**
|
|
48443
|
+
* Server-originated error code indicating user login is required.
|
|
48444
|
+
* @public
|
|
48445
|
+
*/
|
|
48319
48446
|
const loginRequired = "login_required";
|
|
48320
|
-
|
|
48447
|
+
/**
|
|
48448
|
+
* Server-originated error code indicating the token is invalid or corrupted.
|
|
48449
|
+
* @public
|
|
48450
|
+
*/
|
|
48451
|
+
const badToken = "bad_token";
|
|
48452
|
+
/**
|
|
48453
|
+
* Server-originated error code indicating the user was interrupted and must reattempt the flow.
|
|
48454
|
+
* @public
|
|
48455
|
+
*/
|
|
48456
|
+
const interruptedUser = "interrupted_user";
|
|
48321
48457
|
|
|
48322
|
-
/*! @azure/msal-common v15.
|
|
48458
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48323
48459
|
|
|
48324
48460
|
/*
|
|
48325
48461
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48334,6 +48470,7 @@ const InteractionRequiredServerErrorMessage = [
|
|
|
48334
48470
|
loginRequired,
|
|
48335
48471
|
badToken,
|
|
48336
48472
|
uxNotAllowed,
|
|
48473
|
+
interruptedUser,
|
|
48337
48474
|
];
|
|
48338
48475
|
const InteractionRequiredAuthSubErrorMessage = [
|
|
48339
48476
|
"message_only",
|
|
@@ -48342,6 +48479,7 @@ const InteractionRequiredAuthSubErrorMessage = [
|
|
|
48342
48479
|
"user_password_expired",
|
|
48343
48480
|
"consent_required",
|
|
48344
48481
|
"bad_token",
|
|
48482
|
+
"interrupted_user",
|
|
48345
48483
|
];
|
|
48346
48484
|
const InteractionRequiredAuthErrorMessages = {
|
|
48347
48485
|
[noTokensFound]: "No refresh token found in the cache. Please sign-in.",
|
|
@@ -48349,6 +48487,7 @@ const InteractionRequiredAuthErrorMessages = {
|
|
|
48349
48487
|
[refreshTokenExpired]: "Refresh token has expired.",
|
|
48350
48488
|
[badToken]: "Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve.",
|
|
48351
48489
|
[uxNotAllowed]: "`canShowUI` flag in Edge was set to false. User interaction required on web page. Please invoke an interactive API to resolve.",
|
|
48490
|
+
[interruptedUser]: "The user could not be authenticated due to an interrupted state. Please invoke an interactive API to resolve.",
|
|
48352
48491
|
};
|
|
48353
48492
|
/**
|
|
48354
48493
|
* Error thrown when user interaction is required.
|
|
@@ -48391,7 +48530,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
48391
48530
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
48392
48531
|
}
|
|
48393
48532
|
|
|
48394
|
-
/*! @azure/msal-common v15.
|
|
48533
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48395
48534
|
|
|
48396
48535
|
/*
|
|
48397
48536
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48463,7 +48602,7 @@ class ProtocolUtils {
|
|
|
48463
48602
|
}
|
|
48464
48603
|
}
|
|
48465
48604
|
|
|
48466
|
-
/*! @azure/msal-common v15.
|
|
48605
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48467
48606
|
|
|
48468
48607
|
/*
|
|
48469
48608
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48545,7 +48684,7 @@ class PopTokenGenerator {
|
|
|
48545
48684
|
}
|
|
48546
48685
|
}
|
|
48547
48686
|
|
|
48548
|
-
/*! @azure/msal-common v15.
|
|
48687
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48549
48688
|
/*
|
|
48550
48689
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
48551
48690
|
* Licensed under the MIT License.
|
|
@@ -48572,7 +48711,7 @@ class PopTokenGenerator {
|
|
|
48572
48711
|
}
|
|
48573
48712
|
}
|
|
48574
48713
|
|
|
48575
|
-
/*! @azure/msal-common v15.
|
|
48714
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48576
48715
|
|
|
48577
48716
|
/*
|
|
48578
48717
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48911,7 +49050,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
48911
49050
|
return baseAccount;
|
|
48912
49051
|
}
|
|
48913
49052
|
|
|
48914
|
-
/*! @azure/msal-common v15.
|
|
49053
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48915
49054
|
/*
|
|
48916
49055
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
48917
49056
|
* Licensed under the MIT License.
|
|
@@ -48929,7 +49068,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
48929
49068
|
}
|
|
48930
49069
|
}
|
|
48931
49070
|
|
|
48932
|
-
/*! @azure/msal-common v15.
|
|
49071
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48933
49072
|
|
|
48934
49073
|
/*
|
|
48935
49074
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49078,11 +49217,6 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
49078
49217
|
throw createClientConfigurationError(missingSshJwk);
|
|
49079
49218
|
}
|
|
49080
49219
|
}
|
|
49081
|
-
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
49082
|
-
(this.config.authOptions.clientCapabilities &&
|
|
49083
|
-
this.config.authOptions.clientCapabilities.length > 0)) {
|
|
49084
|
-
addClaims(parameters, request.claims, this.config.authOptions.clientCapabilities);
|
|
49085
|
-
}
|
|
49086
49220
|
let ccsCred = undefined;
|
|
49087
49221
|
if (request.clientInfo) {
|
|
49088
49222
|
try {
|
|
@@ -49132,6 +49266,15 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
49132
49266
|
});
|
|
49133
49267
|
}
|
|
49134
49268
|
instrumentBrokerParams(parameters, request.correlationId, this.performanceClient);
|
|
49269
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
49270
|
+
const configClaims = request.skipBrokerClaims &&
|
|
49271
|
+
parameters.has(BROKER_CLIENT_ID)
|
|
49272
|
+
? undefined
|
|
49273
|
+
: this.config.authOptions.clientCapabilities;
|
|
49274
|
+
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
49275
|
+
(configClaims && configClaims.length > 0)) {
|
|
49276
|
+
addClaims(parameters, request.claims, configClaims);
|
|
49277
|
+
}
|
|
49135
49278
|
return mapToQueryString(parameters);
|
|
49136
49279
|
}
|
|
49137
49280
|
/**
|
|
@@ -49165,7 +49308,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
49165
49308
|
}
|
|
49166
49309
|
}
|
|
49167
49310
|
|
|
49168
|
-
/*! @azure/msal-common v15.
|
|
49311
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49169
49312
|
|
|
49170
49313
|
/*
|
|
49171
49314
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49343,11 +49486,6 @@ class RefreshTokenClient extends BaseClient {
|
|
|
49343
49486
|
throw createClientConfigurationError(missingSshJwk);
|
|
49344
49487
|
}
|
|
49345
49488
|
}
|
|
49346
|
-
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
49347
|
-
(this.config.authOptions.clientCapabilities &&
|
|
49348
|
-
this.config.authOptions.clientCapabilities.length > 0)) {
|
|
49349
|
-
addClaims(parameters, request.claims, this.config.authOptions.clientCapabilities);
|
|
49350
|
-
}
|
|
49351
49489
|
if (this.config.systemOptions.preventCorsPreflight &&
|
|
49352
49490
|
request.ccsCredential) {
|
|
49353
49491
|
switch (request.ccsCredential.type) {
|
|
@@ -49373,11 +49511,20 @@ class RefreshTokenClient extends BaseClient {
|
|
|
49373
49511
|
addExtraQueryParameters(parameters, request.tokenBodyParameters);
|
|
49374
49512
|
}
|
|
49375
49513
|
instrumentBrokerParams(parameters, request.correlationId, this.performanceClient);
|
|
49514
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
49515
|
+
const configClaims = request.skipBrokerClaims &&
|
|
49516
|
+
parameters.has(BROKER_CLIENT_ID)
|
|
49517
|
+
? undefined
|
|
49518
|
+
: this.config.authOptions.clientCapabilities;
|
|
49519
|
+
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
49520
|
+
(configClaims && configClaims.length > 0)) {
|
|
49521
|
+
addClaims(parameters, request.claims, configClaims);
|
|
49522
|
+
}
|
|
49376
49523
|
return mapToQueryString(parameters);
|
|
49377
49524
|
}
|
|
49378
49525
|
}
|
|
49379
49526
|
|
|
49380
|
-
/*! @azure/msal-common v15.
|
|
49527
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49381
49528
|
|
|
49382
49529
|
/*
|
|
49383
49530
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49475,7 +49622,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
49475
49622
|
}
|
|
49476
49623
|
}
|
|
49477
49624
|
|
|
49478
|
-
/*! @azure/msal-common v15.
|
|
49625
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49479
49626
|
|
|
49480
49627
|
/*
|
|
49481
49628
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49490,7 +49637,7 @@ const StubbedNetworkModule = {
|
|
|
49490
49637
|
},
|
|
49491
49638
|
};
|
|
49492
49639
|
|
|
49493
|
-
/*! @azure/msal-common v15.
|
|
49640
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49494
49641
|
|
|
49495
49642
|
/*
|
|
49496
49643
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49522,6 +49669,8 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
|
|
|
49522
49669
|
addResponseMode(parameters, request.responseMode);
|
|
49523
49670
|
// add client_info=1
|
|
49524
49671
|
addClientInfo(parameters);
|
|
49672
|
+
// add clidata=1
|
|
49673
|
+
addCliData(parameters);
|
|
49525
49674
|
if (request.prompt) {
|
|
49526
49675
|
addPrompt(parameters, request.prompt);
|
|
49527
49676
|
performanceClient?.addFields({ prompt: request.prompt }, correlationId);
|
|
@@ -49611,14 +49760,17 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
|
|
|
49611
49760
|
if (request.state) {
|
|
49612
49761
|
addState(parameters, request.state);
|
|
49613
49762
|
}
|
|
49614
|
-
if (request.claims ||
|
|
49615
|
-
(authOptions.clientCapabilities &&
|
|
49616
|
-
authOptions.clientCapabilities.length > 0)) {
|
|
49617
|
-
addClaims(parameters, request.claims, authOptions.clientCapabilities);
|
|
49618
|
-
}
|
|
49619
49763
|
if (request.embeddedClientId) {
|
|
49620
49764
|
addBrokerParameters(parameters, authOptions.clientId, authOptions.redirectUri);
|
|
49621
49765
|
}
|
|
49766
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
49767
|
+
const configClaims = request.skipBrokerClaims &&
|
|
49768
|
+
parameters.has(BROKER_CLIENT_ID)
|
|
49769
|
+
? undefined
|
|
49770
|
+
: authOptions.clientCapabilities;
|
|
49771
|
+
if (request.claims || (configClaims && configClaims.length > 0)) {
|
|
49772
|
+
addClaims(parameters, request.claims, configClaims);
|
|
49773
|
+
}
|
|
49622
49774
|
// If extraQueryParameters includes instance_aware its value will be added when extraQueryParameters are added
|
|
49623
49775
|
if (authOptions.instanceAware &&
|
|
49624
49776
|
(!request.extraQueryParameters ||
|
|
@@ -49714,7 +49866,7 @@ function extractLoginHint(account) {
|
|
|
49714
49866
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
49715
49867
|
}
|
|
49716
49868
|
|
|
49717
|
-
/*! @azure/msal-common v15.
|
|
49869
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49718
49870
|
|
|
49719
49871
|
/*
|
|
49720
49872
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49977,7 +50129,7 @@ class ServerTelemetryManager {
|
|
|
49977
50129
|
}
|
|
49978
50130
|
}
|
|
49979
50131
|
|
|
49980
|
-
/*! @azure/msal-common v15.
|
|
50132
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49981
50133
|
/*
|
|
49982
50134
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
49983
50135
|
* Licensed under the MIT License.
|
|
@@ -49985,7 +50137,7 @@ class ServerTelemetryManager {
|
|
|
49985
50137
|
const missingKidError = "missing_kid_error";
|
|
49986
50138
|
const missingAlgError = "missing_alg_error";
|
|
49987
50139
|
|
|
49988
|
-
/*! @azure/msal-common v15.
|
|
50140
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49989
50141
|
|
|
49990
50142
|
/*
|
|
49991
50143
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50010,7 +50162,7 @@ function createJoseHeaderError(code) {
|
|
|
50010
50162
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
50011
50163
|
}
|
|
50012
50164
|
|
|
50013
|
-
/*! @azure/msal-common v15.
|
|
50165
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
50014
50166
|
|
|
50015
50167
|
/*
|
|
50016
50168
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50050,7 +50202,7 @@ class JoseHeader {
|
|
|
50050
50202
|
}
|
|
50051
50203
|
}
|
|
50052
50204
|
|
|
50053
|
-
/*! @azure/msal-browser v4.
|
|
50205
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50054
50206
|
/*
|
|
50055
50207
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
50056
50208
|
* Licensed under the MIT License.
|
|
@@ -50107,7 +50259,7 @@ const failedToParseHeaders = "failed_to_parse_headers";
|
|
|
50107
50259
|
const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
|
|
50108
50260
|
const timedOut = "timed_out";
|
|
50109
50261
|
|
|
50110
|
-
/*! @azure/msal-browser v4.
|
|
50262
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50111
50263
|
|
|
50112
50264
|
/*
|
|
50113
50265
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50184,7 +50336,7 @@ function createBrowserAuthError(errorCode, subError) {
|
|
|
50184
50336
|
return new BrowserAuthError(errorCode, subError);
|
|
50185
50337
|
}
|
|
50186
50338
|
|
|
50187
|
-
/*! @azure/msal-browser v4.
|
|
50339
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50188
50340
|
|
|
50189
50341
|
/*
|
|
50190
50342
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50373,7 +50525,7 @@ const iFrameRenewalPolicies = [
|
|
|
50373
50525
|
CacheLookupPolicy.RefreshTokenAndNetwork,
|
|
50374
50526
|
];
|
|
50375
50527
|
|
|
50376
|
-
/*! @azure/msal-browser v4.
|
|
50528
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50377
50529
|
/*
|
|
50378
50530
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
50379
50531
|
* Licensed under the MIT License.
|
|
@@ -50418,7 +50570,7 @@ function base64EncArr(aBytes) {
|
|
|
50418
50570
|
return btoa(binString);
|
|
50419
50571
|
}
|
|
50420
50572
|
|
|
50421
|
-
/*! @azure/msal-browser v4.
|
|
50573
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50422
50574
|
|
|
50423
50575
|
/*
|
|
50424
50576
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50457,7 +50609,7 @@ function base64DecToArr(base64String) {
|
|
|
50457
50609
|
return Uint8Array.from(binString, (m) => m.codePointAt(0) || 0);
|
|
50458
50610
|
}
|
|
50459
50611
|
|
|
50460
|
-
/*! @azure/msal-browser v4.
|
|
50612
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50461
50613
|
|
|
50462
50614
|
/*
|
|
50463
50615
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50756,7 +50908,7 @@ async function hashString(plainText) {
|
|
|
50756
50908
|
return urlEncodeArr(hashBytes);
|
|
50757
50909
|
}
|
|
50758
50910
|
|
|
50759
|
-
/*! @azure/msal-browser v4.
|
|
50911
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50760
50912
|
/*
|
|
50761
50913
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
50762
50914
|
* Licensed under the MIT License.
|
|
@@ -50765,7 +50917,7 @@ const storageNotSupported = "storage_not_supported";
|
|
|
50765
50917
|
const stubbedPublicClientApplicationCalled = "stubbed_public_client_application_called";
|
|
50766
50918
|
const inMemRedirectUnavailable = "in_mem_redirect_unavailable";
|
|
50767
50919
|
|
|
50768
|
-
/*! @azure/msal-browser v4.
|
|
50920
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50769
50921
|
|
|
50770
50922
|
/*
|
|
50771
50923
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50805,7 +50957,7 @@ function createBrowserConfigurationAuthError(errorCode) {
|
|
|
50805
50957
|
return new BrowserConfigurationAuthError(errorCode, BrowserConfigurationAuthErrorMessages[errorCode]);
|
|
50806
50958
|
}
|
|
50807
50959
|
|
|
50808
|
-
/*! @azure/msal-browser v4.
|
|
50960
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50809
50961
|
|
|
50810
50962
|
/*
|
|
50811
50963
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50967,7 +51119,7 @@ function createGuid() {
|
|
|
50967
51119
|
return createNewGuid();
|
|
50968
51120
|
}
|
|
50969
51121
|
|
|
50970
|
-
/*! @azure/msal-browser v4.
|
|
51122
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50971
51123
|
|
|
50972
51124
|
/*
|
|
50973
51125
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51010,7 +51162,7 @@ class NavigationClient {
|
|
|
51010
51162
|
}
|
|
51011
51163
|
}
|
|
51012
51164
|
|
|
51013
|
-
/*! @azure/msal-browser v4.
|
|
51165
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51014
51166
|
|
|
51015
51167
|
/*
|
|
51016
51168
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51131,7 +51283,7 @@ function getHeaderDict(headers) {
|
|
|
51131
51283
|
}
|
|
51132
51284
|
}
|
|
51133
51285
|
|
|
51134
|
-
/*! @azure/msal-browser v4.
|
|
51286
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51135
51287
|
|
|
51136
51288
|
/*
|
|
51137
51289
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51180,6 +51332,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
51180
51332
|
supportsNestedAppAuth: false,
|
|
51181
51333
|
instanceAware: false,
|
|
51182
51334
|
encodeExtraQueryParams: false,
|
|
51335
|
+
verifySSO: false,
|
|
51183
51336
|
};
|
|
51184
51337
|
// Default cache options for browser
|
|
51185
51338
|
const DEFAULT_CACHE_OPTIONS = {
|
|
@@ -51266,12 +51419,12 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
51266
51419
|
return overlayedConfig;
|
|
51267
51420
|
}
|
|
51268
51421
|
|
|
51269
|
-
/*! @azure/msal-browser v4.
|
|
51422
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51270
51423
|
/* eslint-disable header/header */
|
|
51271
51424
|
const name$1 = "@azure/msal-browser";
|
|
51272
|
-
const version = "4.
|
|
51425
|
+
const version = "4.30.0";
|
|
51273
51426
|
|
|
51274
|
-
/*! @azure/msal-browser v4.
|
|
51427
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51275
51428
|
/*
|
|
51276
51429
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
51277
51430
|
* Licensed under the MIT License.
|
|
@@ -51299,7 +51452,7 @@ function getTokenKeysCacheKey(clientId, schema = CREDENTIAL_SCHEMA_VERSION) {
|
|
|
51299
51452
|
return `${PREFIX}.${schema}.${TOKEN_KEYS}.${clientId}`;
|
|
51300
51453
|
}
|
|
51301
51454
|
|
|
51302
|
-
/*! @azure/msal-browser v4.
|
|
51455
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51303
51456
|
|
|
51304
51457
|
/*
|
|
51305
51458
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51396,7 +51549,7 @@ class BaseOperatingContext {
|
|
|
51396
51549
|
}
|
|
51397
51550
|
}
|
|
51398
51551
|
|
|
51399
|
-
/*! @azure/msal-browser v4.
|
|
51552
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51400
51553
|
|
|
51401
51554
|
/*
|
|
51402
51555
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51442,7 +51595,7 @@ StandardOperatingContext.MODULE_NAME = "";
|
|
|
51442
51595
|
*/
|
|
51443
51596
|
StandardOperatingContext.ID = "StandardOperatingContext";
|
|
51444
51597
|
|
|
51445
|
-
/*! @azure/msal-browser v4.
|
|
51598
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51446
51599
|
|
|
51447
51600
|
/*
|
|
51448
51601
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51645,7 +51798,7 @@ class DatabaseStorage {
|
|
|
51645
51798
|
}
|
|
51646
51799
|
}
|
|
51647
51800
|
|
|
51648
|
-
/*! @azure/msal-browser v4.
|
|
51801
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51649
51802
|
/*
|
|
51650
51803
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
51651
51804
|
* Licensed under the MIT License.
|
|
@@ -51691,7 +51844,7 @@ class MemoryStorage {
|
|
|
51691
51844
|
}
|
|
51692
51845
|
}
|
|
51693
51846
|
|
|
51694
|
-
/*! @azure/msal-browser v4.
|
|
51847
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51695
51848
|
|
|
51696
51849
|
/*
|
|
51697
51850
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51825,7 +51978,7 @@ class AsyncMemoryStorage {
|
|
|
51825
51978
|
}
|
|
51826
51979
|
}
|
|
51827
51980
|
|
|
51828
|
-
/*! @azure/msal-browser v4.
|
|
51981
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51829
51982
|
|
|
51830
51983
|
/*
|
|
51831
51984
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -52006,7 +52159,7 @@ function getSortedObjectString(obj) {
|
|
|
52006
52159
|
return JSON.stringify(obj, Object.keys(obj).sort());
|
|
52007
52160
|
}
|
|
52008
52161
|
|
|
52009
|
-
/*! @azure/msal-browser v4.
|
|
52162
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52010
52163
|
|
|
52011
52164
|
/*
|
|
52012
52165
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -52084,7 +52237,7 @@ function getCookieExpirationTime(cookieLifeDays) {
|
|
|
52084
52237
|
return expr.toUTCString();
|
|
52085
52238
|
}
|
|
52086
52239
|
|
|
52087
|
-
/*! @azure/msal-browser v4.
|
|
52240
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52088
52241
|
|
|
52089
52242
|
/*
|
|
52090
52243
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -52126,7 +52279,7 @@ function getTokenKeys(clientId, storage, schemaVersion) {
|
|
|
52126
52279
|
};
|
|
52127
52280
|
}
|
|
52128
52281
|
|
|
52129
|
-
/*! @azure/msal-browser v4.
|
|
52282
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52130
52283
|
/*
|
|
52131
52284
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
52132
52285
|
* Licensed under the MIT License.
|
|
@@ -52137,7 +52290,7 @@ function isEncrypted(data) {
|
|
|
52137
52290
|
data.hasOwnProperty("data"));
|
|
52138
52291
|
}
|
|
52139
52292
|
|
|
52140
|
-
/*! @azure/msal-browser v4.
|
|
52293
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52141
52294
|
|
|
52142
52295
|
/*
|
|
52143
52296
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -52427,7 +52580,7 @@ class LocalStorage {
|
|
|
52427
52580
|
}
|
|
52428
52581
|
}
|
|
52429
52582
|
|
|
52430
|
-
/*! @azure/msal-browser v4.
|
|
52583
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52431
52584
|
|
|
52432
52585
|
/*
|
|
52433
52586
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -52469,7 +52622,7 @@ class SessionStorage {
|
|
|
52469
52622
|
}
|
|
52470
52623
|
}
|
|
52471
52624
|
|
|
52472
|
-
/*! @azure/msal-browser v4.
|
|
52625
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52473
52626
|
/*
|
|
52474
52627
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
52475
52628
|
* Licensed under the MIT License.
|
|
@@ -52504,7 +52657,7 @@ const EventType = {
|
|
|
52504
52657
|
BROKER_CONNECTION_ESTABLISHED: "msal:brokerConnectionEstablished",
|
|
52505
52658
|
};
|
|
52506
52659
|
|
|
52507
|
-
/*! @azure/msal-browser v4.
|
|
52660
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52508
52661
|
/*
|
|
52509
52662
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
52510
52663
|
* Licensed under the MIT License.
|
|
@@ -52521,7 +52674,7 @@ function removeElementFromArray(array, element) {
|
|
|
52521
52674
|
}
|
|
52522
52675
|
}
|
|
52523
52676
|
|
|
52524
|
-
/*! @azure/msal-browser v4.
|
|
52677
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52525
52678
|
|
|
52526
52679
|
/*
|
|
52527
52680
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -53936,7 +54089,7 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, even
|
|
|
53936
54089
|
return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler);
|
|
53937
54090
|
};
|
|
53938
54091
|
|
|
53939
|
-
/*! @azure/msal-browser v4.
|
|
54092
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
53940
54093
|
/*
|
|
53941
54094
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
53942
54095
|
* Licensed under the MIT License.
|
|
@@ -54061,7 +54214,7 @@ function getActiveAccount(browserStorage, correlationId) {
|
|
|
54061
54214
|
return browserStorage.getActiveAccount(correlationId);
|
|
54062
54215
|
}
|
|
54063
54216
|
|
|
54064
|
-
/*! @azure/msal-browser v4.
|
|
54217
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54065
54218
|
|
|
54066
54219
|
/*
|
|
54067
54220
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54167,7 +54320,7 @@ class EventHandler {
|
|
|
54167
54320
|
}
|
|
54168
54321
|
}
|
|
54169
54322
|
|
|
54170
|
-
/*! @azure/msal-browser v4.
|
|
54323
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54171
54324
|
|
|
54172
54325
|
/*
|
|
54173
54326
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54283,7 +54436,7 @@ class BaseInteractionClient {
|
|
|
54283
54436
|
}
|
|
54284
54437
|
}
|
|
54285
54438
|
|
|
54286
|
-
/*! @azure/msal-browser v4.
|
|
54439
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54287
54440
|
|
|
54288
54441
|
/*
|
|
54289
54442
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54368,7 +54521,7 @@ function validateRequestMethod(interactionRequest, protocolMode) {
|
|
|
54368
54521
|
return httpMethod;
|
|
54369
54522
|
}
|
|
54370
54523
|
|
|
54371
|
-
/*! @azure/msal-browser v4.
|
|
54524
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54372
54525
|
|
|
54373
54526
|
/*
|
|
54374
54527
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54540,6 +54693,10 @@ class StandardInteractionClient extends BaseInteractionClient {
|
|
|
54540
54693
|
async initializeAuthorizationRequest(request, interactionType) {
|
|
54541
54694
|
this.performanceClient.addQueueMeasurement(PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId);
|
|
54542
54695
|
const redirectUri = this.getRedirectUri(request.redirectUri);
|
|
54696
|
+
if (new URL(redirectUri).origin !== new URL(window.location.href).origin) {
|
|
54697
|
+
this.logger.warning("The origin of the redirect URI does not match the origin of the current page. This is likely to cause issues with authentication.", this.correlationId);
|
|
54698
|
+
this.performanceClient.addFields({ isRedirectUriCrossOrigin: true }, this.correlationId);
|
|
54699
|
+
}
|
|
54543
54700
|
const browserState = {
|
|
54544
54701
|
interactionType: interactionType,
|
|
54545
54702
|
};
|
|
@@ -54572,7 +54729,7 @@ class StandardInteractionClient extends BaseInteractionClient {
|
|
|
54572
54729
|
}
|
|
54573
54730
|
}
|
|
54574
54731
|
|
|
54575
|
-
/*! @azure/msal-browser v4.
|
|
54732
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54576
54733
|
|
|
54577
54734
|
/*
|
|
54578
54735
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54596,7 +54753,7 @@ function extractBrowserRequestState(browserCrypto, state) {
|
|
|
54596
54753
|
}
|
|
54597
54754
|
}
|
|
54598
54755
|
|
|
54599
|
-
/*! @azure/msal-browser v4.
|
|
54756
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54600
54757
|
|
|
54601
54758
|
/*
|
|
54602
54759
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54635,7 +54792,7 @@ function validateInteractionType(response, browserCrypto, interactionType) {
|
|
|
54635
54792
|
}
|
|
54636
54793
|
}
|
|
54637
54794
|
|
|
54638
|
-
/*! @azure/msal-browser v4.
|
|
54795
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54639
54796
|
|
|
54640
54797
|
/*
|
|
54641
54798
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54731,7 +54888,7 @@ class InteractionHandler {
|
|
|
54731
54888
|
}
|
|
54732
54889
|
}
|
|
54733
54890
|
|
|
54734
|
-
/*! @azure/msal-browser v4.
|
|
54891
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54735
54892
|
/*
|
|
54736
54893
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
54737
54894
|
* Licensed under the MIT License.
|
|
@@ -54740,7 +54897,7 @@ const contentError = "ContentError";
|
|
|
54740
54897
|
const pageException = "PageException";
|
|
54741
54898
|
const userSwitch = "user_switch";
|
|
54742
54899
|
|
|
54743
|
-
/*! @azure/msal-browser v4.
|
|
54900
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54744
54901
|
/*
|
|
54745
54902
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
54746
54903
|
* Licensed under the MIT License.
|
|
@@ -54753,7 +54910,7 @@ const DISABLED = "DISABLED";
|
|
|
54753
54910
|
const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
|
|
54754
54911
|
const UX_NOT_ALLOWED = "UX_NOT_ALLOWED";
|
|
54755
54912
|
|
|
54756
|
-
/*! @azure/msal-browser v4.
|
|
54913
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54757
54914
|
|
|
54758
54915
|
/*
|
|
54759
54916
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54818,7 +54975,7 @@ function createNativeAuthError(code, description, ext) {
|
|
|
54818
54975
|
return new NativeAuthError(code, NativeAuthErrorMessages[code] || description, ext);
|
|
54819
54976
|
}
|
|
54820
54977
|
|
|
54821
|
-
/*! @azure/msal-browser v4.
|
|
54978
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54822
54979
|
|
|
54823
54980
|
/*
|
|
54824
54981
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54868,7 +55025,7 @@ class SilentCacheClient extends StandardInteractionClient {
|
|
|
54868
55025
|
}
|
|
54869
55026
|
}
|
|
54870
55027
|
|
|
54871
|
-
/*! @azure/msal-browser v4.
|
|
55028
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54872
55029
|
|
|
54873
55030
|
/*
|
|
54874
55031
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -55362,11 +55519,19 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
55362
55519
|
this.logger.trace("NativeInteractionClient - initializeNativeRequest called");
|
|
55363
55520
|
const canonicalAuthority = await this.getCanonicalAuthority(request);
|
|
55364
55521
|
// scopes are expected to be received by the native broker as "scope" and will be added to the request below. Other properties that should be dropped from the request to the native broker can be included in the object destructuring here.
|
|
55365
|
-
const { scopes, ...remainingProperties } = request;
|
|
55522
|
+
const { scopes, claims, ...remainingProperties } = request;
|
|
55366
55523
|
const scopeSet = new ScopeSet(scopes || []);
|
|
55367
55524
|
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
|
|
55525
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
55526
|
+
const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
|
|
55527
|
+
? undefined
|
|
55528
|
+
: this.config.auth.clientCapabilities;
|
|
55529
|
+
const mergedClaims = configClaims && configClaims.length
|
|
55530
|
+
? addClientCapabilitiesToClaims(claims, configClaims)
|
|
55531
|
+
: claims;
|
|
55368
55532
|
const validatedRequest = {
|
|
55369
55533
|
...remainingProperties,
|
|
55534
|
+
claims: mergedClaims,
|
|
55370
55535
|
accountId: this.accountId,
|
|
55371
55536
|
clientId: this.config.auth.clientId,
|
|
55372
55537
|
authority: canonicalAuthority.urlString,
|
|
@@ -55495,12 +55660,59 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
55495
55660
|
}
|
|
55496
55661
|
}
|
|
55497
55662
|
|
|
55498
|
-
/*! @azure/msal-browser v4.
|
|
55663
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
55499
55664
|
|
|
55500
55665
|
/*
|
|
55501
55666
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
55502
55667
|
* Licensed under the MIT License.
|
|
55503
55668
|
*/
|
|
55669
|
+
const clientDataAccountTypeMapping = new Map([
|
|
55670
|
+
["e", "AAD"],
|
|
55671
|
+
["m", "MSA"],
|
|
55672
|
+
]);
|
|
55673
|
+
/**
|
|
55674
|
+
* Parses the clientdata response parameter from the /authorize endpoint.
|
|
55675
|
+
*
|
|
55676
|
+
* The clientdata value is URL-encoded and pipe-delimited:
|
|
55677
|
+
* urlencoded(account_type | error | sub_error | cloud_instance | caller_data_boundary)
|
|
55678
|
+
*
|
|
55679
|
+
* @param clientdata - The raw clientdata string from the authorize response
|
|
55680
|
+
* @returns Parsed ClientData object, or null if the input is empty/invalid
|
|
55681
|
+
*/
|
|
55682
|
+
function parseClientData(clientdata) {
|
|
55683
|
+
if (!clientdata) {
|
|
55684
|
+
return null;
|
|
55685
|
+
}
|
|
55686
|
+
try {
|
|
55687
|
+
const decoded = decodeURIComponent(clientdata);
|
|
55688
|
+
const parts = decoded.split("|");
|
|
55689
|
+
if (parts.length < 5) {
|
|
55690
|
+
return null;
|
|
55691
|
+
}
|
|
55692
|
+
return {
|
|
55693
|
+
accountType: clientDataAccountTypeMapping.get(parts[0]?.trim() || "") || "",
|
|
55694
|
+
error: parts[1]?.trim() || "",
|
|
55695
|
+
subError: parts[2]?.trim() || "",
|
|
55696
|
+
cloudInstance: parts[3]?.trim() || "",
|
|
55697
|
+
callerDataBoundary: parts[4]?.trim() || "",
|
|
55698
|
+
};
|
|
55699
|
+
}
|
|
55700
|
+
catch {
|
|
55701
|
+
return null;
|
|
55702
|
+
}
|
|
55703
|
+
}
|
|
55704
|
+
/**
|
|
55705
|
+
* Instruments account type, error, and suberror from clientdata
|
|
55706
|
+
*/
|
|
55707
|
+
function instrumentClientData(response, correlationId, performanceClient) {
|
|
55708
|
+
const parsed = parseClientData(response.clientdata);
|
|
55709
|
+
parsed?.accountType &&
|
|
55710
|
+
performanceClient.addFields({ accountType: parsed.accountType }, correlationId);
|
|
55711
|
+
parsed?.error &&
|
|
55712
|
+
performanceClient.addFields({ serverErrorNo: parsed.error }, correlationId);
|
|
55713
|
+
parsed?.subError &&
|
|
55714
|
+
performanceClient.addFields({ serverSubErrorNo: parsed.subError }, correlationId);
|
|
55715
|
+
}
|
|
55504
55716
|
/**
|
|
55505
55717
|
* Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR
|
|
55506
55718
|
* @param config
|
|
@@ -55663,6 +55875,8 @@ async function handleResponsePlatformBroker(request, accountId, apiId, config, b
|
|
|
55663
55875
|
async function handleResponseCode(request, response, codeVerifier, apiId, config, authClient, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider) {
|
|
55664
55876
|
// Remove throttle if it exists
|
|
55665
55877
|
ThrottlingUtils.removeThrottle(browserStorage, config.auth.clientId, request);
|
|
55878
|
+
// Instrument clientdata telemetry fields from the authorize response
|
|
55879
|
+
instrumentClientData(response, request.correlationId, performanceClient);
|
|
55666
55880
|
if (response.accountId) {
|
|
55667
55881
|
return invokeAsync(handleResponsePlatformBroker, PerformanceEvents.HandleResponsePlatformBroker, logger, performanceClient, request.correlationId)(request, response.accountId, apiId, config, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider);
|
|
55668
55882
|
}
|
|
@@ -55695,6 +55909,8 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
|
|
|
55695
55909
|
async function handleResponseEAR(request, response, apiId, config, authority, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider) {
|
|
55696
55910
|
// Remove throttle if it exists
|
|
55697
55911
|
ThrottlingUtils.removeThrottle(browserStorage, config.auth.clientId, request);
|
|
55912
|
+
// Instrument clientdata telemetry fields from the authorize response
|
|
55913
|
+
instrumentClientData(response, request.correlationId, performanceClient);
|
|
55698
55914
|
// Validate state & check response for errors
|
|
55699
55915
|
validateAuthorizationResponse(response, request.state);
|
|
55700
55916
|
if (!response.ear_jwe) {
|
|
@@ -55724,7 +55940,7 @@ async function handleResponseEAR(request, response, apiId, config, authority, br
|
|
|
55724
55940
|
return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), PerformanceEvents.HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
|
|
55725
55941
|
}
|
|
55726
55942
|
|
|
55727
|
-
/*! @azure/msal-browser v4.
|
|
55943
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
55728
55944
|
|
|
55729
55945
|
/*
|
|
55730
55946
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -55781,7 +55997,7 @@ async function generateCodeChallengeFromVerifier(pkceCodeVerifier, performanceCl
|
|
|
55781
55997
|
}
|
|
55782
55998
|
}
|
|
55783
55999
|
|
|
55784
|
-
/*! @azure/msal-browser v4.
|
|
56000
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
55785
56001
|
|
|
55786
56002
|
/*
|
|
55787
56003
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -56046,7 +56262,7 @@ class PlatformAuthExtensionHandler {
|
|
|
56046
56262
|
}
|
|
56047
56263
|
}
|
|
56048
56264
|
|
|
56049
|
-
/*! @azure/msal-browser v4.
|
|
56265
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
56050
56266
|
|
|
56051
56267
|
/*
|
|
56052
56268
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -56172,18 +56388,32 @@ class PlatformAuthDOMHandler {
|
|
|
56172
56388
|
return nativeResponse;
|
|
56173
56389
|
}
|
|
56174
56390
|
getDOMExtraParams(extraParameters) {
|
|
56175
|
-
|
|
56176
|
-
|
|
56177
|
-
|
|
56178
|
-
|
|
56179
|
-
|
|
56180
|
-
|
|
56181
|
-
|
|
56182
|
-
|
|
56391
|
+
try {
|
|
56392
|
+
const stringifiedProperties = {};
|
|
56393
|
+
for (const [key, value] of Object.entries(extraParameters)) {
|
|
56394
|
+
if (!value) {
|
|
56395
|
+
continue;
|
|
56396
|
+
}
|
|
56397
|
+
if (typeof value === "object") {
|
|
56398
|
+
stringifiedProperties[key] = JSON.stringify(value);
|
|
56399
|
+
}
|
|
56400
|
+
else {
|
|
56401
|
+
stringifiedProperties[key] = String(value);
|
|
56402
|
+
}
|
|
56403
|
+
}
|
|
56404
|
+
return stringifiedProperties;
|
|
56405
|
+
}
|
|
56406
|
+
catch (e) {
|
|
56407
|
+
this.logger.error(this.platformAuthType + " - Error stringifying extra parameters");
|
|
56408
|
+
this.logger.errorPii(this.platformAuthType +
|
|
56409
|
+
" - Error stringifying extra parameters: " +
|
|
56410
|
+
e);
|
|
56411
|
+
return {};
|
|
56412
|
+
}
|
|
56183
56413
|
}
|
|
56184
56414
|
}
|
|
56185
56415
|
|
|
56186
|
-
/*! @azure/msal-browser v4.
|
|
56416
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
56187
56417
|
async function getPlatformAuthProvider(logger, performanceClient, correlationId, nativeBrokerHandshakeTimeout, enablePlatformBrokerDOMSupport) {
|
|
56188
56418
|
logger.trace("getPlatformAuthProvider called", correlationId);
|
|
56189
56419
|
logger.trace("Has client allowed platform auth via DOM API: " +
|
|
@@ -56248,7 +56478,7 @@ function isPlatformAuthAllowed(config, logger, platformAuthProvider, authenticat
|
|
|
56248
56478
|
return true;
|
|
56249
56479
|
}
|
|
56250
56480
|
|
|
56251
|
-
/*! @azure/msal-browser v4.
|
|
56481
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
56252
56482
|
|
|
56253
56483
|
/*
|
|
56254
56484
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -56745,7 +56975,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
56745
56975
|
}
|
|
56746
56976
|
}
|
|
56747
56977
|
|
|
56748
|
-
/*! @azure/msal-browser v4.
|
|
56978
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
56749
56979
|
|
|
56750
56980
|
/*
|
|
56751
56981
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57185,7 +57415,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
57185
57415
|
}
|
|
57186
57416
|
}
|
|
57187
57417
|
|
|
57188
|
-
/*! @azure/msal-browser v4.
|
|
57418
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57189
57419
|
|
|
57190
57420
|
/*
|
|
57191
57421
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57233,6 +57463,12 @@ async function initiateEarRequest(config, authority, request, logger, performanc
|
|
|
57233
57463
|
*/
|
|
57234
57464
|
async function monitorIframeForHash(iframe, timeout, pollIntervalMilliseconds, performanceClient, logger, correlationId, responseType) {
|
|
57235
57465
|
performanceClient.addQueueMeasurement(PerformanceEvents.SilentHandlerMonitorIframeForHash, correlationId);
|
|
57466
|
+
performanceClient.addFields({
|
|
57467
|
+
iframePollIntervalMs: pollIntervalMilliseconds,
|
|
57468
|
+
iframeTimeoutMs: timeout,
|
|
57469
|
+
}, correlationId);
|
|
57470
|
+
let totalTickCount = 0;
|
|
57471
|
+
let crossOriginTickCount = 0;
|
|
57236
57472
|
return new Promise((resolve, reject) => {
|
|
57237
57473
|
if (timeout < DEFAULT_IFRAME_TIMEOUT_MS) {
|
|
57238
57474
|
logger.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${timeout}ms) than the default (${DEFAULT_IFRAME_TIMEOUT_MS}ms). This may result in timeouts.`);
|
|
@@ -57246,6 +57482,7 @@ async function monitorIframeForHash(iframe, timeout, pollIntervalMilliseconds, p
|
|
|
57246
57482
|
reject(createBrowserAuthError(monitorWindowTimeout));
|
|
57247
57483
|
}, timeout);
|
|
57248
57484
|
const intervalId = window.setInterval(() => {
|
|
57485
|
+
totalTickCount++;
|
|
57249
57486
|
let href = "";
|
|
57250
57487
|
const contentWindow = iframe.contentWindow;
|
|
57251
57488
|
try {
|
|
@@ -57256,7 +57493,9 @@ async function monitorIframeForHash(iframe, timeout, pollIntervalMilliseconds, p
|
|
|
57256
57493
|
*/
|
|
57257
57494
|
href = contentWindow ? contentWindow.location.href : "";
|
|
57258
57495
|
}
|
|
57259
|
-
catch (e) {
|
|
57496
|
+
catch (e) {
|
|
57497
|
+
crossOriginTickCount++;
|
|
57498
|
+
}
|
|
57260
57499
|
if (!href || href === "about:blank") {
|
|
57261
57500
|
return;
|
|
57262
57501
|
}
|
|
@@ -57274,6 +57513,10 @@ async function monitorIframeForHash(iframe, timeout, pollIntervalMilliseconds, p
|
|
|
57274
57513
|
resolve(responseString);
|
|
57275
57514
|
}, pollIntervalMilliseconds);
|
|
57276
57515
|
}).finally(() => {
|
|
57516
|
+
performanceClient.addFields({
|
|
57517
|
+
iframeTickCount: totalTickCount,
|
|
57518
|
+
crossOriginTickCount: crossOriginTickCount,
|
|
57519
|
+
}, correlationId);
|
|
57277
57520
|
invoke(removeHiddenIframe, PerformanceEvents.RemoveHiddenIframe, logger, performanceClient, correlationId)(iframe);
|
|
57278
57521
|
});
|
|
57279
57522
|
}
|
|
@@ -57341,7 +57584,7 @@ function removeHiddenIframe(iframe) {
|
|
|
57341
57584
|
}
|
|
57342
57585
|
}
|
|
57343
57586
|
|
|
57344
|
-
/*! @azure/msal-browser v4.
|
|
57587
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57345
57588
|
|
|
57346
57589
|
/*
|
|
57347
57590
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57463,6 +57706,52 @@ class SilentIframeClient extends StandardInteractionClient {
|
|
|
57463
57706
|
return invokeAsync(handleResponseEAR, PerformanceEvents.HandleResponseEar, this.logger, this.performanceClient, correlationId)(silentRequest, serverParams, this.apiId, this.config, discoveredAuthority, this.browserStorage, this.nativeStorage, this.eventHandler, this.logger, this.performanceClient, this.platformAuthProvider);
|
|
57464
57707
|
}
|
|
57465
57708
|
}
|
|
57709
|
+
/**
|
|
57710
|
+
* Verifies SSO capability by making an iframe request to /authorize without exchanging the code for tokens.
|
|
57711
|
+
* This is useful for verifying SSO capability in the background without the overhead of a full token exchange.
|
|
57712
|
+
* @param request - The SSO silent request
|
|
57713
|
+
* @returns true if SSO verification was successful with a valid authorization code, false otherwise
|
|
57714
|
+
*/
|
|
57715
|
+
async verifySso(request) {
|
|
57716
|
+
this.performanceClient.addQueueMeasurement(PerformanceEvents.SilentIframeClientAcquireToken, request.correlationId);
|
|
57717
|
+
const inputRequest = { ...request };
|
|
57718
|
+
if (!inputRequest.prompt) {
|
|
57719
|
+
inputRequest.prompt = PromptValue.NONE;
|
|
57720
|
+
}
|
|
57721
|
+
// Create silent request
|
|
57722
|
+
const silentRequest = await invokeAsync(this.initializeAuthorizationRequest.bind(this), PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, this.logger, this.performanceClient, request.correlationId)(inputRequest, InteractionType.Silent);
|
|
57723
|
+
const authClient = await invokeAsync(this.createAuthCodeClient.bind(this), PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, this.logger, this.performanceClient, request.correlationId)({
|
|
57724
|
+
serverTelemetryManager: this.initializeServerTelemetryManager(this.apiId),
|
|
57725
|
+
requestAuthority: silentRequest.authority,
|
|
57726
|
+
requestAzureCloudOptions: silentRequest.azureCloudOptions,
|
|
57727
|
+
requestExtraQueryParameters: silentRequest.extraQueryParameters,
|
|
57728
|
+
account: silentRequest.account,
|
|
57729
|
+
});
|
|
57730
|
+
const correlationId = silentRequest.correlationId;
|
|
57731
|
+
const pkceCodes = await invokeAsync(generatePkceCodes, PerformanceEvents.GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId);
|
|
57732
|
+
const requestWithPkce = {
|
|
57733
|
+
...silentRequest,
|
|
57734
|
+
codeChallenge: pkceCodes.challenge,
|
|
57735
|
+
};
|
|
57736
|
+
// Create authorize request url
|
|
57737
|
+
const navigateUrl = await invokeAsync(getAuthCodeRequestUrl, PerformanceEvents.GetAuthCodeUrl, this.logger, this.performanceClient, correlationId)(this.config, authClient.authority, requestWithPkce, this.logger, this.performanceClient);
|
|
57738
|
+
// Get the frame handle for the silent request - this triggers the SSO verification
|
|
57739
|
+
const msalFrame = await invokeAsync(initiateCodeRequest, PerformanceEvents.SilentHandlerInitiateAuthRequest, this.logger, this.performanceClient, correlationId)(navigateUrl, this.performanceClient, this.logger, correlationId, this.config.system.navigateFrameWait);
|
|
57740
|
+
const responseType = this.config.auth.OIDCOptions.serverResponseType;
|
|
57741
|
+
// Monitor the iframe for the response
|
|
57742
|
+
const responseString = await invokeAsync(monitorIframeForHash, PerformanceEvents.SilentHandlerMonitorIframeForHash, this.logger, this.performanceClient, correlationId)(msalFrame, this.config.system.iframeHashTimeout, this.config.system.pollIntervalMilliseconds, this.performanceClient, this.logger, correlationId, responseType);
|
|
57743
|
+
// Deserialize the response
|
|
57744
|
+
const serverParams = invoke(deserializeResponse, PerformanceEvents.DeserializeResponse, this.logger, this.performanceClient, correlationId)(responseString, responseType, this.logger);
|
|
57745
|
+
// Validate the response - this checks for errors and validates state
|
|
57746
|
+
validateAuthorizationResponse(serverParams, silentRequest.state);
|
|
57747
|
+
// Verify a valid authorization code is present
|
|
57748
|
+
if (!serverParams.code) {
|
|
57749
|
+
this.logger.warning("SSO verification response did not contain an authorization code", correlationId);
|
|
57750
|
+
return false;
|
|
57751
|
+
}
|
|
57752
|
+
this.logger.verbose("SSO verification completed successfully with valid authorization code - skipped token exchange", correlationId);
|
|
57753
|
+
return true;
|
|
57754
|
+
}
|
|
57466
57755
|
/**
|
|
57467
57756
|
* Currently Unsupported
|
|
57468
57757
|
*/
|
|
@@ -57502,7 +57791,7 @@ class SilentIframeClient extends StandardInteractionClient {
|
|
|
57502
57791
|
}
|
|
57503
57792
|
}
|
|
57504
57793
|
|
|
57505
|
-
/*! @azure/msal-browser v4.
|
|
57794
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57506
57795
|
|
|
57507
57796
|
/*
|
|
57508
57797
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57568,7 +57857,7 @@ class SilentRefreshClient extends StandardInteractionClient {
|
|
|
57568
57857
|
}
|
|
57569
57858
|
}
|
|
57570
57859
|
|
|
57571
|
-
/*! @azure/msal-browser v4.
|
|
57860
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57572
57861
|
|
|
57573
57862
|
/*
|
|
57574
57863
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57782,7 +58071,7 @@ class TokenCache {
|
|
|
57782
58071
|
}
|
|
57783
58072
|
}
|
|
57784
58073
|
|
|
57785
|
-
/*! @azure/msal-browser v4.
|
|
58074
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57786
58075
|
|
|
57787
58076
|
/*
|
|
57788
58077
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57795,7 +58084,7 @@ class HybridSpaAuthorizationCodeClient extends AuthorizationCodeClient {
|
|
|
57795
58084
|
}
|
|
57796
58085
|
}
|
|
57797
58086
|
|
|
57798
|
-
/*! @azure/msal-browser v4.
|
|
58087
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57799
58088
|
|
|
57800
58089
|
/*
|
|
57801
58090
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57861,11 +58150,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
|
|
|
57861
58150
|
}
|
|
57862
58151
|
}
|
|
57863
58152
|
|
|
57864
|
-
/*! @azure/msal-browser v4.
|
|
57865
|
-
/*
|
|
57866
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
57867
|
-
* Licensed under the MIT License.
|
|
57868
|
-
*/
|
|
58153
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57869
58154
|
function collectInstanceStats(currentClientId, performanceEvent, logger) {
|
|
57870
58155
|
const frameInstances =
|
|
57871
58156
|
// @ts-ignore
|
|
@@ -57881,7 +58166,7 @@ function collectInstanceStats(currentClientId, performanceEvent, logger) {
|
|
|
57881
58166
|
});
|
|
57882
58167
|
}
|
|
57883
58168
|
|
|
57884
|
-
/*! @azure/msal-browser v4.
|
|
58169
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57885
58170
|
|
|
57886
58171
|
/*
|
|
57887
58172
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57961,22 +58246,30 @@ class StandardController {
|
|
|
57961
58246
|
this.tokenCache = new TokenCache(this.config, this.browserStorage, this.logger, this.browserCrypto, this.performanceClient);
|
|
57962
58247
|
this.activeSilentTokenRequests = new Map();
|
|
57963
58248
|
// Register listener functions
|
|
57964
|
-
this.
|
|
57965
|
-
|
|
57966
|
-
this.trackPageVisibilityWithMeasurement =
|
|
57967
|
-
this.trackPageVisibilityWithMeasurement.bind(this);
|
|
58249
|
+
this.trackStateChangeWithMeasurement =
|
|
58250
|
+
this.trackStateChangeWithMeasurement.bind(this);
|
|
57968
58251
|
}
|
|
57969
58252
|
static async createController(operatingContext, request) {
|
|
57970
58253
|
const controller = new StandardController(operatingContext);
|
|
57971
58254
|
await controller.initialize(request);
|
|
57972
58255
|
return controller;
|
|
57973
58256
|
}
|
|
57974
|
-
|
|
58257
|
+
trackStateChange(correlationId, event) {
|
|
57975
58258
|
if (!correlationId) {
|
|
57976
58259
|
return;
|
|
57977
58260
|
}
|
|
57978
|
-
|
|
57979
|
-
|
|
58261
|
+
if (event.type === "visibilitychange") {
|
|
58262
|
+
this.logger.info("Perf: Visibility change detected");
|
|
58263
|
+
this.performanceClient.incrementFields({ visibilityChangeCount: 1 }, correlationId);
|
|
58264
|
+
}
|
|
58265
|
+
else if (event.type === "online") {
|
|
58266
|
+
this.logger.info("Perf: Online status change detected");
|
|
58267
|
+
this.performanceClient.incrementFields({ onlineStatusChangeCount: 1 }, correlationId);
|
|
58268
|
+
}
|
|
58269
|
+
else if (event.type === "offline") {
|
|
58270
|
+
this.logger.info("Perf: Offline status change detected");
|
|
58271
|
+
this.performanceClient.incrementFields({ onlineStatusChangeCount: 1 }, correlationId);
|
|
58272
|
+
}
|
|
57980
58273
|
}
|
|
57981
58274
|
/**
|
|
57982
58275
|
* Initializer function to perform async startup tasks such as connecting to WAM extension
|
|
@@ -58124,6 +58417,8 @@ class StandardController {
|
|
|
58124
58417
|
rootMeasurement.end({
|
|
58125
58418
|
success: true,
|
|
58126
58419
|
}, undefined, result.account);
|
|
58420
|
+
// Fire-and-forget SSO capability verification in background
|
|
58421
|
+
this.verifySsoCapability(result.account, InteractionType.Redirect);
|
|
58127
58422
|
}
|
|
58128
58423
|
else {
|
|
58129
58424
|
/*
|
|
@@ -58356,6 +58651,8 @@ class StandardController {
|
|
|
58356
58651
|
accessTokenSize: result.accessToken.length,
|
|
58357
58652
|
idTokenSize: result.idToken.length,
|
|
58358
58653
|
}, undefined, result.account);
|
|
58654
|
+
// SSO capability verification in background
|
|
58655
|
+
this.verifySsoCapability(result.account, InteractionType.Popup);
|
|
58359
58656
|
return result;
|
|
58360
58657
|
})
|
|
58361
58658
|
.catch((e) => {
|
|
@@ -58378,16 +58675,87 @@ class StandardController {
|
|
|
58378
58675
|
}
|
|
58379
58676
|
});
|
|
58380
58677
|
}
|
|
58381
|
-
|
|
58678
|
+
trackStateChangeWithMeasurement(event) {
|
|
58382
58679
|
const measurement = this.ssoSilentMeasurement ||
|
|
58383
58680
|
this.acquireTokenByCodeAsyncMeasurement;
|
|
58384
58681
|
if (!measurement) {
|
|
58385
58682
|
return;
|
|
58386
58683
|
}
|
|
58387
|
-
|
|
58388
|
-
|
|
58389
|
-
|
|
58684
|
+
if (event.type === "visibilitychange") {
|
|
58685
|
+
this.logger.info("Perf: Visibility change detected in ", measurement.event.name);
|
|
58686
|
+
measurement.increment({
|
|
58687
|
+
visibilityChangeCount: 1,
|
|
58688
|
+
});
|
|
58689
|
+
}
|
|
58690
|
+
else if (event.type === "online") {
|
|
58691
|
+
this.logger.info("Perf: Online status change detected in ", measurement.event.name);
|
|
58692
|
+
measurement.increment({
|
|
58693
|
+
onlineStatusChangeCount: 1,
|
|
58694
|
+
});
|
|
58695
|
+
}
|
|
58696
|
+
else if (event.type === "offline") {
|
|
58697
|
+
this.logger.info("Perf: Offline status change detected in ", measurement.event.name);
|
|
58698
|
+
measurement.increment({
|
|
58699
|
+
onlineStatusChangeCount: 1,
|
|
58700
|
+
});
|
|
58701
|
+
}
|
|
58702
|
+
}
|
|
58703
|
+
addStateChangeListeners(listener) {
|
|
58704
|
+
document.addEventListener("visibilitychange", listener);
|
|
58705
|
+
window.addEventListener("online", listener);
|
|
58706
|
+
window.addEventListener("offline", listener);
|
|
58707
|
+
}
|
|
58708
|
+
removeStateChangeListeners(listener) {
|
|
58709
|
+
document.removeEventListener("visibilitychange", listener);
|
|
58710
|
+
window.removeEventListener("online", listener);
|
|
58711
|
+
window.removeEventListener("offline", listener);
|
|
58712
|
+
}
|
|
58713
|
+
/**
|
|
58714
|
+
* SSO capability verification in the background.
|
|
58715
|
+
* This method makes an iframe request to /authorize to verify SSO capability without calling /token.
|
|
58716
|
+
* This method does not block the caller and tracks telemetry for success/failure.
|
|
58717
|
+
* This method only executes if verifySSO is set to true in the auth configuration.
|
|
58718
|
+
* @param account - The account to use for the SSO verification
|
|
58719
|
+
* @param parentApi - The API ID of the parent operation for logging purposes
|
|
58720
|
+
*/
|
|
58721
|
+
verifySsoCapability(account, parentApi) {
|
|
58722
|
+
// Check if SSO capability verification is enabled
|
|
58723
|
+
if (!this.config.auth.verifySSO) {
|
|
58724
|
+
return;
|
|
58725
|
+
}
|
|
58726
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
58727
|
+
const ssoCapableMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.SsoCapable, correlationId);
|
|
58728
|
+
ssoCapableMeasurement.add({
|
|
58729
|
+
parentApi: parentApi,
|
|
58390
58730
|
});
|
|
58731
|
+
this.logger.verbose(`SSO capability verification initiated after ${parentApi}`, correlationId);
|
|
58732
|
+
/*
|
|
58733
|
+
* Use setTimeout to ensure this runs in a separate macrotask after the current call stack completes
|
|
58734
|
+
* This ensures the result is returned to the caller before the SSO verification starts and doesn't affect performance
|
|
58735
|
+
*/
|
|
58736
|
+
setTimeout(() => {
|
|
58737
|
+
const ssoVerificationRequest = {
|
|
58738
|
+
account: account,
|
|
58739
|
+
correlationId: correlationId,
|
|
58740
|
+
};
|
|
58741
|
+
const silentIframeClient = this.createSilentIframeClient(correlationId);
|
|
58742
|
+
silentIframeClient
|
|
58743
|
+
.verifySso(ssoVerificationRequest)
|
|
58744
|
+
.then((success) => {
|
|
58745
|
+
this.logger.verbose(`SSO capability verification completed after ${parentApi}, success: ${success}`, correlationId);
|
|
58746
|
+
ssoCapableMeasurement.end({
|
|
58747
|
+
fromCache: false,
|
|
58748
|
+
success: success,
|
|
58749
|
+
}, undefined, account);
|
|
58750
|
+
})
|
|
58751
|
+
.catch((error) => {
|
|
58752
|
+
this.logger.warning(`SSO capability verification failed after ${parentApi}: ${error.message}`, correlationId);
|
|
58753
|
+
ssoCapableMeasurement.end({
|
|
58754
|
+
fromCache: false,
|
|
58755
|
+
success: false,
|
|
58756
|
+
}, error, account);
|
|
58757
|
+
});
|
|
58758
|
+
}, 0);
|
|
58391
58759
|
}
|
|
58392
58760
|
// #endregion
|
|
58393
58761
|
// #region Silent Flow
|
|
@@ -58421,8 +58789,9 @@ class StandardController {
|
|
|
58421
58789
|
preflightCheck(this.initialized, this.ssoSilentMeasurement, request.account);
|
|
58422
58790
|
this.ssoSilentMeasurement?.increment({
|
|
58423
58791
|
visibilityChangeCount: 0,
|
|
58792
|
+
onlineStatusChangeCount: 0,
|
|
58424
58793
|
});
|
|
58425
|
-
|
|
58794
|
+
this.addStateChangeListeners(this.trackStateChangeWithMeasurement);
|
|
58426
58795
|
this.logger.verbose("ssoSilent called", correlationId);
|
|
58427
58796
|
this.eventHandler.emitEvent(EventType.SSO_SILENT_START, InteractionType.Silent, validRequest);
|
|
58428
58797
|
let result;
|
|
@@ -58466,7 +58835,7 @@ class StandardController {
|
|
|
58466
58835
|
throw e;
|
|
58467
58836
|
})
|
|
58468
58837
|
.finally(() => {
|
|
58469
|
-
|
|
58838
|
+
this.removeStateChangeListeners(this.trackStateChangeWithMeasurement);
|
|
58470
58839
|
});
|
|
58471
58840
|
}
|
|
58472
58841
|
/**
|
|
@@ -58578,8 +58947,9 @@ class StandardController {
|
|
|
58578
58947
|
this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenByCodeAsync, request.correlationId);
|
|
58579
58948
|
this.acquireTokenByCodeAsyncMeasurement?.increment({
|
|
58580
58949
|
visibilityChangeCount: 0,
|
|
58950
|
+
onlineStatusChangeCount: 0,
|
|
58581
58951
|
});
|
|
58582
|
-
|
|
58952
|
+
this.addStateChangeListeners(this.trackStateChangeWithMeasurement);
|
|
58583
58953
|
const silentAuthCodeClient = this.createSilentAuthCodeClient(request.correlationId);
|
|
58584
58954
|
const silentTokenResult = await silentAuthCodeClient
|
|
58585
58955
|
.acquireToken(request)
|
|
@@ -58597,7 +58967,7 @@ class StandardController {
|
|
|
58597
58967
|
throw tokenRenewalError;
|
|
58598
58968
|
})
|
|
58599
58969
|
.finally(() => {
|
|
58600
|
-
|
|
58970
|
+
this.removeStateChangeListeners(this.trackStateChangeWithMeasurement);
|
|
58601
58971
|
});
|
|
58602
58972
|
return silentTokenResult;
|
|
58603
58973
|
}
|
|
@@ -59142,18 +59512,22 @@ class StandardController {
|
|
|
59142
59512
|
* @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthResponse}
|
|
59143
59513
|
*/
|
|
59144
59514
|
async acquireTokenSilentAsync(request, account) {
|
|
59145
|
-
const
|
|
59515
|
+
const trackStateChange = (event) => this.trackStateChange(request.correlationId, event);
|
|
59146
59516
|
this.performanceClient.addQueueMeasurement(PerformanceEvents.AcquireTokenSilentAsync, request.correlationId);
|
|
59147
59517
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, request);
|
|
59148
59518
|
if (request.correlationId) {
|
|
59149
|
-
this.performanceClient.incrementFields({ visibilityChangeCount: 0 }, request.correlationId);
|
|
59519
|
+
this.performanceClient.incrementFields({ visibilityChangeCount: 0, onlineStatusChangeCount: 0 }, request.correlationId);
|
|
59150
59520
|
}
|
|
59151
|
-
|
|
59521
|
+
this.addStateChangeListeners(trackStateChange);
|
|
59152
59522
|
const silentRequest = await invokeAsync(initializeSilentRequest, PerformanceEvents.InitializeSilentRequest, this.logger, this.performanceClient, request.correlationId)(request, account, this.config, this.performanceClient, this.logger);
|
|
59153
59523
|
const cacheLookupPolicy = request.cacheLookupPolicy || CacheLookupPolicy.Default;
|
|
59154
59524
|
const result = this.acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy).catch(async (refreshTokenError) => {
|
|
59155
59525
|
const shouldTryToResolveSilently = checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheLookupPolicy);
|
|
59156
59526
|
if (shouldTryToResolveSilently) {
|
|
59527
|
+
const silentRefreshReason = `${refreshTokenError.errorCode}${refreshTokenError.subError
|
|
59528
|
+
? `|${refreshTokenError.subError}`
|
|
59529
|
+
: ""}`;
|
|
59530
|
+
this.performanceClient.addFields({ silentRefreshReason }, silentRequest.correlationId);
|
|
59157
59531
|
if (!this.activeIframeRequest) {
|
|
59158
59532
|
let _resolve;
|
|
59159
59533
|
// Always set the active request tracker immediately after checking it to prevent races
|
|
@@ -59223,7 +59597,7 @@ class StandardController {
|
|
|
59223
59597
|
throw tokenRenewalError;
|
|
59224
59598
|
})
|
|
59225
59599
|
.finally(() => {
|
|
59226
|
-
|
|
59600
|
+
this.removeStateChangeListeners(trackStateChange);
|
|
59227
59601
|
});
|
|
59228
59602
|
}
|
|
59229
59603
|
/**
|
|
@@ -59334,7 +59708,7 @@ function checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheL
|
|
|
59334
59708
|
return isSilentlyResolvable && tryIframeRenewal;
|
|
59335
59709
|
}
|
|
59336
59710
|
|
|
59337
|
-
/*! @azure/msal-browser v4.
|
|
59711
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
59338
59712
|
|
|
59339
59713
|
/*
|
|
59340
59714
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -59346,7 +59720,7 @@ async function createV3Controller(config, request) {
|
|
|
59346
59720
|
return StandardController.createController(standard, request);
|
|
59347
59721
|
}
|
|
59348
59722
|
|
|
59349
|
-
/*! @azure/msal-browser v4.
|
|
59723
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
59350
59724
|
|
|
59351
59725
|
/*
|
|
59352
59726
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -59719,33 +60093,35 @@ var checkInit = () => {
|
|
|
59719
60093
|
return true;
|
|
59720
60094
|
};
|
|
59721
60095
|
var getActiveAccountFromMSAL = () => {
|
|
60096
|
+
var _URL, _config;
|
|
59722
60097
|
var accountId = readFromStorage('authAccountId');
|
|
59723
|
-
if (!accountId)
|
|
59724
|
-
|
|
59725
|
-
|
|
59726
|
-
|
|
59727
|
-
|
|
59728
|
-
|
|
59729
|
-
|
|
59730
|
-
|
|
59731
|
-
|
|
59732
|
-
if (account === undefined) {
|
|
59733
|
-
console.warn("WARNING: no account found with id \"".concat(accountId, "\", cannot retrieve account"));
|
|
60098
|
+
if (!accountId) return;
|
|
60099
|
+
var expectedAccountEnvironment = (_URL = new URL((_config = config) === null || _config === void 0 || (_config = _config.msalConfig) === null || _config === void 0 || (_config = _config.auth) === null || _config === void 0 ? void 0 : _config.authority)) === null || _URL === void 0 ? void 0 : _URL.hostname;
|
|
60100
|
+
var accountFilter = {
|
|
60101
|
+
homeAccountId: accountId,
|
|
60102
|
+
environment: expectedAccountEnvironment
|
|
60103
|
+
};
|
|
60104
|
+
var account = msalApp.getAccount(accountFilter);
|
|
60105
|
+
if (account == null) {
|
|
60106
|
+
console.warn("WARNING: no account found with the provided account filter");
|
|
59734
60107
|
return;
|
|
59735
60108
|
}
|
|
59736
60109
|
return account;
|
|
59737
60110
|
};
|
|
59738
60111
|
var redirectOnAuthSuccess = () => {
|
|
59739
|
-
var _config$msalConfig$au,
|
|
59740
|
-
window.location.href = (_config$msalConfig$au = (
|
|
60112
|
+
var _config$msalConfig$au, _config2;
|
|
60113
|
+
window.location.href = (_config$msalConfig$au = (_config2 = config) === null || _config2 === void 0 || (_config2 = _config2.msalConfig) === null || _config2 === void 0 || (_config2 = _config2.auth) === null || _config2 === void 0 ? void 0 : _config2.redirectUri) !== null && _config$msalConfig$au !== void 0 ? _config$msalConfig$au : '/';
|
|
59741
60114
|
};
|
|
59742
60115
|
var _acquireTokensByRequestAndAccount = /*#__PURE__*/function () {
|
|
59743
60116
|
var _ref2 = _asyncToGenerator(function* (tokenReq, account) {
|
|
60117
|
+
var _tokenReq, _tokenReq$forceRefres;
|
|
60118
|
+
var forceRefresh = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
59744
60119
|
if (!tokenReq) {
|
|
59745
60120
|
console.warn('No token request provided');
|
|
59746
60121
|
tokenReq = {};
|
|
59747
60122
|
}
|
|
59748
60123
|
tokenReq.account = account;
|
|
60124
|
+
(_tokenReq$forceRefres = (_tokenReq = tokenReq).forceRefresh) !== null && _tokenReq$forceRefres !== void 0 ? _tokenReq$forceRefres : _tokenReq.forceRefresh = forceRefresh;
|
|
59749
60125
|
return yield msalApp.acquireTokenSilent(tokenReq).then(tokenRes => tokenRes).catch(silentTokenFetchError => {
|
|
59750
60126
|
var _silentTokenFetchErro;
|
|
59751
60127
|
if (silentTokenFetchError.errorCode === 'no_tokens_found') {
|
|
@@ -59781,8 +60157,8 @@ var acquireTokens = /*#__PURE__*/function () {
|
|
|
59781
60157
|
};
|
|
59782
60158
|
}
|
|
59783
60159
|
var account = getActiveAccountFromMSAL();
|
|
59784
|
-
if (account
|
|
59785
|
-
var tokens = yield _acquireTokensByRequestAndAccount(config.accessRequest, account);
|
|
60160
|
+
if (account == null) return;
|
|
60161
|
+
var tokens = yield _acquireTokensByRequestAndAccount(config.accessRequest, account, forceRefresh);
|
|
59786
60162
|
_updateTokensInStorage(tokens);
|
|
59787
60163
|
return tokens;
|
|
59788
60164
|
});
|
|
@@ -59817,17 +60193,20 @@ var signIn = () => {
|
|
|
59817
60193
|
}, 50);
|
|
59818
60194
|
return msalApp.handleRedirectPromise().then(handleResponse);
|
|
59819
60195
|
};
|
|
59820
|
-
var
|
|
59821
|
-
var _authData$accountId;
|
|
59822
|
-
if (!checkInit()) return;
|
|
59823
|
-
var accountId = readFromStorage('authAccountId');
|
|
59824
|
-
var idToken = readFromStorage('authIdToken');
|
|
60196
|
+
var clearStorageSessionData = () => {
|
|
59825
60197
|
clearFromStorage('authIdTokenPopup');
|
|
59826
60198
|
clearFromStorage('authIdToken');
|
|
59827
60199
|
clearFromStorage('authAccessToken');
|
|
59828
60200
|
clearFromStorage('authAccountId');
|
|
59829
60201
|
clearFromStorage('authEmail');
|
|
59830
60202
|
writeToStorage('authAuthenticated', 'false');
|
|
60203
|
+
};
|
|
60204
|
+
var signOut = () => {
|
|
60205
|
+
var _authData$accountId;
|
|
60206
|
+
if (!checkInit()) return;
|
|
60207
|
+
var accountId = readFromStorage('authAccountId');
|
|
60208
|
+
var idToken = readFromStorage('authIdToken');
|
|
60209
|
+
clearStorageSessionData();
|
|
59831
60210
|
var logoutRequest = {
|
|
59832
60211
|
account: msalApp.getAccountByHomeId((_authData$accountId = authData.accountId) !== null && _authData$accountId !== void 0 ? _authData$accountId : accountId),
|
|
59833
60212
|
idTokenHint: idToken
|
|
@@ -59847,12 +60226,12 @@ var _updateTokensInStorage = tokens => {
|
|
|
59847
60226
|
}
|
|
59848
60227
|
};
|
|
59849
60228
|
var _extractRolesFromAccessToken = accessToken => {
|
|
59850
|
-
var
|
|
60229
|
+
var _config3;
|
|
59851
60230
|
if (!accessToken) return [];
|
|
59852
60231
|
var decodedToken = JSON.parse(atob(accessToken.split('.')[1]));
|
|
59853
60232
|
// The exact key to use may depend from keycloak client & Cosmo Tech API configuration (c.f. the value of
|
|
59854
60233
|
// csm.platform.authorization.roles-jwt-claim in your k8s tenant secrets)
|
|
59855
|
-
var rolesTokenAttribute = (
|
|
60234
|
+
var rolesTokenAttribute = (_config3 = config) === null || _config3 === void 0 ? void 0 : _config3.rolesJwtClaim;
|
|
59856
60235
|
if (rolesTokenAttribute) {
|
|
59857
60236
|
if (decodedToken !== null && decodedToken !== void 0 && decodedToken[rolesTokenAttribute]) return decodedToken === null || decodedToken === void 0 ? void 0 : decodedToken[rolesTokenAttribute];
|
|
59858
60237
|
console.warn("Authentication provider configuration defined rolesJwtClaim=\"".concat(rolesTokenAttribute, "\" ") + 'but this key was not found in the access token. Please check your webapp and API configuration.');
|
|
@@ -59869,12 +60248,16 @@ var _extractRolesFromAccessToken = accessToken => {
|
|
|
59869
60248
|
var isUserSignedIn = /*#__PURE__*/function () {
|
|
59870
60249
|
var _ref4 = _asyncToGenerator(function* () {
|
|
59871
60250
|
if (readFromStorage('authAuthenticated') === 'true') {
|
|
59872
|
-
|
|
59873
|
-
|
|
59874
|
-
|
|
59875
|
-
|
|
60251
|
+
if (getActiveAccountFromMSAL() != null) {
|
|
60252
|
+
// Restore roles from access token if necessary (roles in authData may be lost after login redirection)
|
|
60253
|
+
if (authData.roles.length === 0) {
|
|
60254
|
+
var accessToken = readFromStorage('authAccessToken');
|
|
60255
|
+
if (accessToken) authData.roles = _extractRolesFromAccessToken(accessToken);
|
|
60256
|
+
}
|
|
60257
|
+
return true;
|
|
59876
60258
|
}
|
|
59877
|
-
|
|
60259
|
+
// No valid session found despite authAuthenticated being true, clear local session data before resuming
|
|
60260
|
+
clearStorageSessionData();
|
|
59878
60261
|
}
|
|
59879
60262
|
try {
|
|
59880
60263
|
// Resume interaction if one is already in progress
|
|
@@ -59882,12 +60265,12 @@ var isUserSignedIn = /*#__PURE__*/function () {
|
|
|
59882
60265
|
clearFromStorage('authInteractionInProgress');
|
|
59883
60266
|
var locationHashParameters = new URLSearchParams(window.location.hash.substring(1));
|
|
59884
60267
|
if (locationHashParameters.has('state')) {
|
|
59885
|
-
var
|
|
59886
|
-
if (locationHashParameters.has('iss', (
|
|
60268
|
+
var _config4;
|
|
60269
|
+
if (locationHashParameters.has('iss', (_config4 = config) === null || _config4 === void 0 || (_config4 = _config4.msalConfig) === null || _config4 === void 0 || (_config4 = _config4.auth) === null || _config4 === void 0 || (_config4 = _config4.authorityMetadata) === null || _config4 === void 0 ? void 0 : _config4.issuer)) {
|
|
59887
60270
|
msalApp.handleRedirectPromise().then(handleResponse); // Resume redirect workflow process
|
|
59888
60271
|
} else if (locationHashParameters.has('iss')) {
|
|
59889
|
-
var
|
|
59890
|
-
var configIssuer = (
|
|
60272
|
+
var _config5;
|
|
60273
|
+
var configIssuer = (_config5 = config) === null || _config5 === void 0 || (_config5 = _config5.msalConfig) === null || _config5 === void 0 || (_config5 = _config5.auth) === null || _config5 === void 0 || (_config5 = _config5.authorityMetadata) === null || _config5 === void 0 ? void 0 : _config5.issuer;
|
|
59891
60274
|
var urlIssuer = locationHashParameters.get('iss');
|
|
59892
60275
|
console.warn("Issuer found in url \"".concat(urlIssuer, "\" does not match keycloak configuration: \"").concat(configIssuer, "\""));
|
|
59893
60276
|
}
|