@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.cjs.js
CHANGED
|
@@ -238,6 +238,19 @@ function toDate$1(argument, context) {
|
|
|
238
238
|
* @description
|
|
239
239
|
* Add the specified number of days to the given date.
|
|
240
240
|
*
|
|
241
|
+
* **You don't need date-fns\***:
|
|
242
|
+
*
|
|
243
|
+
* Temporal has a built-in `add` method on all its classes:
|
|
244
|
+
*
|
|
245
|
+
* - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add)
|
|
246
|
+
* - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add)
|
|
247
|
+
* - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add)
|
|
248
|
+
* - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add)
|
|
249
|
+
* - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add)
|
|
250
|
+
* - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add)
|
|
251
|
+
*
|
|
252
|
+
* \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns
|
|
253
|
+
*
|
|
241
254
|
* @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).
|
|
242
255
|
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
243
256
|
*
|
|
@@ -251,6 +264,12 @@ function toDate$1(argument, context) {
|
|
|
251
264
|
* // Add 10 days to 1 September 2014:
|
|
252
265
|
* const result = addDays(new Date(2014, 8, 1), 10)
|
|
253
266
|
* //=> Thu Sep 11 2014 00:00:00
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* // Using Temporal:
|
|
270
|
+
* // Add 10 days to 1 September 2014:
|
|
271
|
+
* Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString();
|
|
272
|
+
* //=> "2014-09-11"
|
|
254
273
|
*/
|
|
255
274
|
function addDays(date, amount, options) {
|
|
256
275
|
const _date = toDate$1(date, options?.in);
|
|
@@ -3024,7 +3043,6 @@ class Setter {
|
|
|
3024
3043
|
class ValueSetter extends Setter {
|
|
3025
3044
|
constructor(
|
|
3026
3045
|
value,
|
|
3027
|
-
|
|
3028
3046
|
validateValue,
|
|
3029
3047
|
|
|
3030
3048
|
setValue,
|
|
@@ -6218,28 +6236,28 @@ var toDate = {exports: {}};
|
|
|
6218
6236
|
|
|
6219
6237
|
var assertString = {exports: {}};
|
|
6220
6238
|
|
|
6221
|
-
(function (module, exports
|
|
6239
|
+
(function (module, exports) {
|
|
6222
6240
|
|
|
6223
|
-
Object.defineProperty(exports
|
|
6241
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6224
6242
|
value: true
|
|
6225
6243
|
});
|
|
6226
|
-
exports
|
|
6244
|
+
exports.default = assertString;
|
|
6227
6245
|
function assertString(input) {
|
|
6228
6246
|
if (input === undefined || input === null) throw new TypeError("Expected a string but received a ".concat(input));
|
|
6229
6247
|
if (input.constructor.name !== 'String') throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
|
|
6230
6248
|
}
|
|
6231
|
-
module.exports = exports
|
|
6232
|
-
module.exports.default = exports
|
|
6249
|
+
module.exports = exports.default;
|
|
6250
|
+
module.exports.default = exports.default;
|
|
6233
6251
|
} (assertString, assertString.exports));
|
|
6234
6252
|
|
|
6235
6253
|
var assertStringExports = assertString.exports;
|
|
6236
6254
|
|
|
6237
|
-
(function (module, exports
|
|
6255
|
+
(function (module, exports) {
|
|
6238
6256
|
|
|
6239
|
-
Object.defineProperty(exports
|
|
6257
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6240
6258
|
value: true
|
|
6241
6259
|
});
|
|
6242
|
-
exports
|
|
6260
|
+
exports.default = toDate;
|
|
6243
6261
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6244
6262
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6245
6263
|
function toDate(date) {
|
|
@@ -6247,8 +6265,8 @@ var assertStringExports = assertString.exports;
|
|
|
6247
6265
|
date = Date.parse(date);
|
|
6248
6266
|
return !isNaN(date) ? new Date(date) : null;
|
|
6249
6267
|
}
|
|
6250
|
-
module.exports = exports
|
|
6251
|
-
module.exports.default = exports
|
|
6268
|
+
module.exports = exports.default;
|
|
6269
|
+
module.exports.default = exports.default;
|
|
6252
6270
|
} (toDate, toDate.exports));
|
|
6253
6271
|
|
|
6254
6272
|
var toDateExports = toDate.exports;
|
|
@@ -6259,17 +6277,17 @@ var isFloat$1 = {};
|
|
|
6259
6277
|
|
|
6260
6278
|
var nullUndefinedCheck = {exports: {}};
|
|
6261
6279
|
|
|
6262
|
-
(function (module, exports
|
|
6280
|
+
(function (module, exports) {
|
|
6263
6281
|
|
|
6264
|
-
Object.defineProperty(exports
|
|
6282
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6265
6283
|
value: true
|
|
6266
6284
|
});
|
|
6267
|
-
exports
|
|
6285
|
+
exports.default = isNullOrUndefined;
|
|
6268
6286
|
function isNullOrUndefined(value) {
|
|
6269
6287
|
return value === null || value === undefined;
|
|
6270
6288
|
}
|
|
6271
|
-
module.exports = exports
|
|
6272
|
-
module.exports.default = exports
|
|
6289
|
+
module.exports = exports.default;
|
|
6290
|
+
module.exports.default = exports.default;
|
|
6273
6291
|
} (nullUndefinedCheck, nullUndefinedCheck.exports));
|
|
6274
6292
|
|
|
6275
6293
|
var nullUndefinedCheckExports = nullUndefinedCheck.exports;
|
|
@@ -6453,52 +6471,52 @@ function isFloat(str, options) {
|
|
|
6453
6471
|
}
|
|
6454
6472
|
isFloat$1.locales = Object.keys(_alpha$2.decimal);
|
|
6455
6473
|
|
|
6456
|
-
(function (module, exports
|
|
6474
|
+
(function (module, exports) {
|
|
6457
6475
|
|
|
6458
|
-
Object.defineProperty(exports
|
|
6476
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6459
6477
|
value: true
|
|
6460
6478
|
});
|
|
6461
|
-
exports
|
|
6479
|
+
exports.default = toFloat;
|
|
6462
6480
|
var _isFloat = _interopRequireDefault(isFloat$1);
|
|
6463
6481
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6464
6482
|
function toFloat(str) {
|
|
6465
6483
|
if (!(0, _isFloat.default)(str)) return NaN;
|
|
6466
6484
|
return parseFloat(str);
|
|
6467
6485
|
}
|
|
6468
|
-
module.exports = exports
|
|
6469
|
-
module.exports.default = exports
|
|
6486
|
+
module.exports = exports.default;
|
|
6487
|
+
module.exports.default = exports.default;
|
|
6470
6488
|
} (toFloat, toFloat.exports));
|
|
6471
6489
|
|
|
6472
6490
|
var toFloatExports = toFloat.exports;
|
|
6473
6491
|
|
|
6474
6492
|
var toInt = {exports: {}};
|
|
6475
6493
|
|
|
6476
|
-
(function (module, exports
|
|
6494
|
+
(function (module, exports) {
|
|
6477
6495
|
|
|
6478
|
-
Object.defineProperty(exports
|
|
6496
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6479
6497
|
value: true
|
|
6480
6498
|
});
|
|
6481
|
-
exports
|
|
6499
|
+
exports.default = toInt;
|
|
6482
6500
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6483
6501
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6484
6502
|
function toInt(str, radix) {
|
|
6485
6503
|
(0, _assertString.default)(str);
|
|
6486
6504
|
return parseInt(str, radix || 10);
|
|
6487
6505
|
}
|
|
6488
|
-
module.exports = exports
|
|
6489
|
-
module.exports.default = exports
|
|
6506
|
+
module.exports = exports.default;
|
|
6507
|
+
module.exports.default = exports.default;
|
|
6490
6508
|
} (toInt, toInt.exports));
|
|
6491
6509
|
|
|
6492
6510
|
var toIntExports = toInt.exports;
|
|
6493
6511
|
|
|
6494
6512
|
var toBoolean = {exports: {}};
|
|
6495
6513
|
|
|
6496
|
-
(function (module, exports
|
|
6514
|
+
(function (module, exports) {
|
|
6497
6515
|
|
|
6498
|
-
Object.defineProperty(exports
|
|
6516
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6499
6517
|
value: true
|
|
6500
6518
|
});
|
|
6501
|
-
exports
|
|
6519
|
+
exports.default = toBoolean;
|
|
6502
6520
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6503
6521
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6504
6522
|
function toBoolean(str, strict) {
|
|
@@ -6508,28 +6526,28 @@ var toBoolean = {exports: {}};
|
|
|
6508
6526
|
}
|
|
6509
6527
|
return str !== '0' && !/^false$/i.test(str) && str !== '';
|
|
6510
6528
|
}
|
|
6511
|
-
module.exports = exports
|
|
6512
|
-
module.exports.default = exports
|
|
6529
|
+
module.exports = exports.default;
|
|
6530
|
+
module.exports.default = exports.default;
|
|
6513
6531
|
} (toBoolean, toBoolean.exports));
|
|
6514
6532
|
|
|
6515
6533
|
var toBooleanExports = toBoolean.exports;
|
|
6516
6534
|
|
|
6517
6535
|
var equals = {exports: {}};
|
|
6518
6536
|
|
|
6519
|
-
(function (module, exports
|
|
6537
|
+
(function (module, exports) {
|
|
6520
6538
|
|
|
6521
|
-
Object.defineProperty(exports
|
|
6539
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6522
6540
|
value: true
|
|
6523
6541
|
});
|
|
6524
|
-
exports
|
|
6542
|
+
exports.default = equals;
|
|
6525
6543
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6526
6544
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6527
6545
|
function equals(str, comparison) {
|
|
6528
6546
|
(0, _assertString.default)(str);
|
|
6529
6547
|
return str === comparison;
|
|
6530
6548
|
}
|
|
6531
|
-
module.exports = exports
|
|
6532
|
-
module.exports.default = exports
|
|
6549
|
+
module.exports = exports.default;
|
|
6550
|
+
module.exports.default = exports.default;
|
|
6533
6551
|
} (equals, equals.exports));
|
|
6534
6552
|
|
|
6535
6553
|
var equalsExports = equals.exports;
|
|
@@ -6538,12 +6556,12 @@ var contains = {exports: {}};
|
|
|
6538
6556
|
|
|
6539
6557
|
var toString$1 = {exports: {}};
|
|
6540
6558
|
|
|
6541
|
-
(function (module, exports
|
|
6559
|
+
(function (module, exports) {
|
|
6542
6560
|
|
|
6543
|
-
Object.defineProperty(exports
|
|
6561
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6544
6562
|
value: true
|
|
6545
6563
|
});
|
|
6546
|
-
exports
|
|
6564
|
+
exports.default = toString;
|
|
6547
6565
|
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); }
|
|
6548
6566
|
function toString(input) {
|
|
6549
6567
|
if (_typeof(input) === 'object' && input !== null) {
|
|
@@ -6557,23 +6575,27 @@ var toString$1 = {exports: {}};
|
|
|
6557
6575
|
}
|
|
6558
6576
|
return String(input);
|
|
6559
6577
|
}
|
|
6560
|
-
module.exports = exports
|
|
6561
|
-
module.exports.default = exports
|
|
6578
|
+
module.exports = exports.default;
|
|
6579
|
+
module.exports.default = exports.default;
|
|
6562
6580
|
} (toString$1, toString$1.exports));
|
|
6563
6581
|
|
|
6564
6582
|
var toStringExports = toString$1.exports;
|
|
6565
6583
|
|
|
6566
6584
|
var merge = {exports: {}};
|
|
6567
6585
|
|
|
6568
|
-
(function (module, exports
|
|
6586
|
+
(function (module, exports) {
|
|
6569
6587
|
|
|
6570
|
-
Object.defineProperty(exports
|
|
6588
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6571
6589
|
value: true
|
|
6572
6590
|
});
|
|
6573
|
-
exports
|
|
6591
|
+
exports.default = merge;
|
|
6592
|
+
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); }
|
|
6574
6593
|
function merge() {
|
|
6575
6594
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
6576
6595
|
var defaults = arguments.length > 1 ? arguments[1] : undefined;
|
|
6596
|
+
if (_typeof(obj) !== 'object' || obj === null) {
|
|
6597
|
+
obj = {};
|
|
6598
|
+
}
|
|
6577
6599
|
for (var key in defaults) {
|
|
6578
6600
|
if (typeof obj[key] === 'undefined') {
|
|
6579
6601
|
obj[key] = defaults[key];
|
|
@@ -6581,18 +6603,18 @@ var merge = {exports: {}};
|
|
|
6581
6603
|
}
|
|
6582
6604
|
return obj;
|
|
6583
6605
|
}
|
|
6584
|
-
module.exports = exports
|
|
6585
|
-
module.exports.default = exports
|
|
6606
|
+
module.exports = exports.default;
|
|
6607
|
+
module.exports.default = exports.default;
|
|
6586
6608
|
} (merge, merge.exports));
|
|
6587
6609
|
|
|
6588
6610
|
var mergeExports = merge.exports;
|
|
6589
6611
|
|
|
6590
|
-
(function (module, exports
|
|
6612
|
+
(function (module, exports) {
|
|
6591
6613
|
|
|
6592
|
-
Object.defineProperty(exports
|
|
6614
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6593
6615
|
value: true
|
|
6594
6616
|
});
|
|
6595
|
-
exports
|
|
6617
|
+
exports.default = contains;
|
|
6596
6618
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6597
6619
|
var _toString = _interopRequireDefault(toStringExports);
|
|
6598
6620
|
var _merge = _interopRequireDefault(mergeExports);
|
|
@@ -6609,20 +6631,20 @@ var mergeExports = merge.exports;
|
|
|
6609
6631
|
}
|
|
6610
6632
|
return str.split((0, _toString.default)(elem)).length > options.minOccurrences;
|
|
6611
6633
|
}
|
|
6612
|
-
module.exports = exports
|
|
6613
|
-
module.exports.default = exports
|
|
6634
|
+
module.exports = exports.default;
|
|
6635
|
+
module.exports.default = exports.default;
|
|
6614
6636
|
} (contains, contains.exports));
|
|
6615
6637
|
|
|
6616
6638
|
var containsExports = contains.exports;
|
|
6617
6639
|
|
|
6618
6640
|
var matches = {exports: {}};
|
|
6619
6641
|
|
|
6620
|
-
(function (module, exports
|
|
6642
|
+
(function (module, exports) {
|
|
6621
6643
|
|
|
6622
|
-
Object.defineProperty(exports
|
|
6644
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6623
6645
|
value: true
|
|
6624
6646
|
});
|
|
6625
|
-
exports
|
|
6647
|
+
exports.default = matches;
|
|
6626
6648
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6627
6649
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6628
6650
|
function matches(str, pattern, modifiers) {
|
|
@@ -6632,8 +6654,8 @@ var matches = {exports: {}};
|
|
|
6632
6654
|
}
|
|
6633
6655
|
return !!str.match(pattern);
|
|
6634
6656
|
}
|
|
6635
|
-
module.exports = exports
|
|
6636
|
-
module.exports.default = exports
|
|
6657
|
+
module.exports = exports.default;
|
|
6658
|
+
module.exports.default = exports.default;
|
|
6637
6659
|
} (matches, matches.exports));
|
|
6638
6660
|
|
|
6639
6661
|
var matchesExports = matches.exports;
|
|
@@ -6642,12 +6664,12 @@ var isEmail = {exports: {}};
|
|
|
6642
6664
|
|
|
6643
6665
|
var checkHost = {exports: {}};
|
|
6644
6666
|
|
|
6645
|
-
(function (module, exports
|
|
6667
|
+
(function (module, exports) {
|
|
6646
6668
|
|
|
6647
|
-
Object.defineProperty(exports
|
|
6669
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6648
6670
|
value: true
|
|
6649
6671
|
});
|
|
6650
|
-
exports
|
|
6672
|
+
exports.default = checkHost;
|
|
6651
6673
|
function isRegExp(obj) {
|
|
6652
6674
|
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
6653
6675
|
}
|
|
@@ -6660,20 +6682,20 @@ var checkHost = {exports: {}};
|
|
|
6660
6682
|
}
|
|
6661
6683
|
return false;
|
|
6662
6684
|
}
|
|
6663
|
-
module.exports = exports
|
|
6664
|
-
module.exports.default = exports
|
|
6685
|
+
module.exports = exports.default;
|
|
6686
|
+
module.exports.default = exports.default;
|
|
6665
6687
|
} (checkHost, checkHost.exports));
|
|
6666
6688
|
|
|
6667
6689
|
var checkHostExports = checkHost.exports;
|
|
6668
6690
|
|
|
6669
6691
|
var isByteLength = {exports: {}};
|
|
6670
6692
|
|
|
6671
|
-
(function (module, exports
|
|
6693
|
+
(function (module, exports) {
|
|
6672
6694
|
|
|
6673
|
-
Object.defineProperty(exports
|
|
6695
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6674
6696
|
value: true
|
|
6675
6697
|
});
|
|
6676
|
-
exports
|
|
6698
|
+
exports.default = isByteLength;
|
|
6677
6699
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6678
6700
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6679
6701
|
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); }
|
|
@@ -6693,20 +6715,20 @@ var isByteLength = {exports: {}};
|
|
|
6693
6715
|
var len = encodeURI(str).split(/%..|./).length - 1;
|
|
6694
6716
|
return len >= min && (typeof max === 'undefined' || len <= max);
|
|
6695
6717
|
}
|
|
6696
|
-
module.exports = exports
|
|
6697
|
-
module.exports.default = exports
|
|
6718
|
+
module.exports = exports.default;
|
|
6719
|
+
module.exports.default = exports.default;
|
|
6698
6720
|
} (isByteLength, isByteLength.exports));
|
|
6699
6721
|
|
|
6700
6722
|
var isByteLengthExports = isByteLength.exports;
|
|
6701
6723
|
|
|
6702
6724
|
var isFQDN = {exports: {}};
|
|
6703
6725
|
|
|
6704
|
-
(function (module, exports
|
|
6726
|
+
(function (module, exports) {
|
|
6705
6727
|
|
|
6706
|
-
Object.defineProperty(exports
|
|
6728
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6707
6729
|
value: true
|
|
6708
6730
|
});
|
|
6709
|
-
exports
|
|
6731
|
+
exports.default = isFQDN;
|
|
6710
6732
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6711
6733
|
var _merge = _interopRequireDefault(mergeExports);
|
|
6712
6734
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -6775,20 +6797,20 @@ var isFQDN = {exports: {}};
|
|
|
6775
6797
|
return true;
|
|
6776
6798
|
});
|
|
6777
6799
|
}
|
|
6778
|
-
module.exports = exports
|
|
6779
|
-
module.exports.default = exports
|
|
6800
|
+
module.exports = exports.default;
|
|
6801
|
+
module.exports.default = exports.default;
|
|
6780
6802
|
} (isFQDN, isFQDN.exports));
|
|
6781
6803
|
|
|
6782
6804
|
var isFQDNExports = isFQDN.exports;
|
|
6783
6805
|
|
|
6784
6806
|
var isIP = {exports: {}};
|
|
6785
6807
|
|
|
6786
|
-
(function (module, exports
|
|
6808
|
+
(function (module, exports) {
|
|
6787
6809
|
|
|
6788
|
-
Object.defineProperty(exports
|
|
6810
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6789
6811
|
value: true
|
|
6790
6812
|
});
|
|
6791
|
-
exports
|
|
6813
|
+
exports.default = isIP;
|
|
6792
6814
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6793
6815
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6794
6816
|
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); }
|
|
@@ -6848,18 +6870,18 @@ var isIP = {exports: {}};
|
|
|
6848
6870
|
}
|
|
6849
6871
|
return false;
|
|
6850
6872
|
}
|
|
6851
|
-
module.exports = exports
|
|
6852
|
-
module.exports.default = exports
|
|
6873
|
+
module.exports = exports.default;
|
|
6874
|
+
module.exports.default = exports.default;
|
|
6853
6875
|
} (isIP, isIP.exports));
|
|
6854
6876
|
|
|
6855
6877
|
var isIPExports = isIP.exports;
|
|
6856
6878
|
|
|
6857
|
-
(function (module, exports
|
|
6879
|
+
(function (module, exports) {
|
|
6858
6880
|
|
|
6859
|
-
Object.defineProperty(exports
|
|
6881
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6860
6882
|
value: true
|
|
6861
6883
|
});
|
|
6862
|
-
exports
|
|
6884
|
+
exports.default = isEmail;
|
|
6863
6885
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
6864
6886
|
var _checkHost = _interopRequireDefault(checkHostExports);
|
|
6865
6887
|
var _isByteLength = _interopRequireDefault(isByteLengthExports);
|
|
@@ -7026,8 +7048,8 @@ var isIPExports = isIP.exports;
|
|
|
7026
7048
|
}
|
|
7027
7049
|
return true;
|
|
7028
7050
|
}
|
|
7029
|
-
module.exports = exports
|
|
7030
|
-
module.exports.default = exports
|
|
7051
|
+
module.exports = exports.default;
|
|
7052
|
+
module.exports.default = exports.default;
|
|
7031
7053
|
} (isEmail, isEmail.exports));
|
|
7032
7054
|
|
|
7033
7055
|
var isEmailExports = isEmail.exports;
|
|
@@ -7036,28 +7058,28 @@ var isURL = {exports: {}};
|
|
|
7036
7058
|
|
|
7037
7059
|
var includesString = {exports: {}};
|
|
7038
7060
|
|
|
7039
|
-
(function (module, exports
|
|
7061
|
+
(function (module, exports) {
|
|
7040
7062
|
|
|
7041
|
-
Object.defineProperty(exports
|
|
7063
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7042
7064
|
value: true
|
|
7043
7065
|
});
|
|
7044
|
-
exports
|
|
7066
|
+
exports.default = void 0;
|
|
7045
7067
|
var includes = function includes(str, val) {
|
|
7046
7068
|
return str.indexOf(val) !== -1;
|
|
7047
7069
|
};
|
|
7048
|
-
exports
|
|
7049
|
-
module.exports = exports
|
|
7050
|
-
module.exports.default = exports
|
|
7070
|
+
exports.default = includes;
|
|
7071
|
+
module.exports = exports.default;
|
|
7072
|
+
module.exports.default = exports.default;
|
|
7051
7073
|
} (includesString, includesString.exports));
|
|
7052
7074
|
|
|
7053
7075
|
var includesStringExports = includesString.exports;
|
|
7054
7076
|
|
|
7055
|
-
(function (module, exports
|
|
7077
|
+
(function (module, exports) {
|
|
7056
7078
|
|
|
7057
|
-
Object.defineProperty(exports
|
|
7079
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7058
7080
|
value: true
|
|
7059
7081
|
});
|
|
7060
|
-
exports
|
|
7082
|
+
exports.default = isURL;
|
|
7061
7083
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7062
7084
|
var _checkHost = _interopRequireDefault(checkHostExports);
|
|
7063
7085
|
var _includesString = _interopRequireDefault(includesStringExports);
|
|
@@ -7299,20 +7321,20 @@ var includesStringExports = includesString.exports;
|
|
|
7299
7321
|
}
|
|
7300
7322
|
return true;
|
|
7301
7323
|
}
|
|
7302
|
-
module.exports = exports
|
|
7303
|
-
module.exports.default = exports
|
|
7324
|
+
module.exports = exports.default;
|
|
7325
|
+
module.exports.default = exports.default;
|
|
7304
7326
|
} (isURL, isURL.exports));
|
|
7305
7327
|
|
|
7306
7328
|
var isURLExports = isURL.exports;
|
|
7307
7329
|
|
|
7308
7330
|
var isMACAddress = {exports: {}};
|
|
7309
7331
|
|
|
7310
|
-
(function (module, exports
|
|
7332
|
+
(function (module, exports) {
|
|
7311
7333
|
|
|
7312
|
-
Object.defineProperty(exports
|
|
7334
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7313
7335
|
value: true
|
|
7314
7336
|
});
|
|
7315
|
-
exports
|
|
7337
|
+
exports.default = isMACAddress;
|
|
7316
7338
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7317
7339
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7318
7340
|
var macAddress48 = /^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/;
|
|
@@ -7350,20 +7372,20 @@ var isMACAddress = {exports: {}};
|
|
|
7350
7372
|
eui: '64'
|
|
7351
7373
|
});
|
|
7352
7374
|
}
|
|
7353
|
-
module.exports = exports
|
|
7354
|
-
module.exports.default = exports
|
|
7375
|
+
module.exports = exports.default;
|
|
7376
|
+
module.exports.default = exports.default;
|
|
7355
7377
|
} (isMACAddress, isMACAddress.exports));
|
|
7356
7378
|
|
|
7357
7379
|
var isMACAddressExports = isMACAddress.exports;
|
|
7358
7380
|
|
|
7359
7381
|
var isIPRange = {exports: {}};
|
|
7360
7382
|
|
|
7361
|
-
(function (module, exports
|
|
7383
|
+
(function (module, exports) {
|
|
7362
7384
|
|
|
7363
|
-
Object.defineProperty(exports
|
|
7385
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7364
7386
|
value: true
|
|
7365
7387
|
});
|
|
7366
|
-
exports
|
|
7388
|
+
exports.default = isIPRange;
|
|
7367
7389
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7368
7390
|
var _isIP = _interopRequireDefault(isIPExports);
|
|
7369
7391
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -7406,20 +7428,20 @@ var isIPRange = {exports: {}};
|
|
|
7406
7428
|
}
|
|
7407
7429
|
return parts[1] <= expectedSubnet && parts[1] >= 0;
|
|
7408
7430
|
}
|
|
7409
|
-
module.exports = exports
|
|
7410
|
-
module.exports.default = exports
|
|
7431
|
+
module.exports = exports.default;
|
|
7432
|
+
module.exports.default = exports.default;
|
|
7411
7433
|
} (isIPRange, isIPRange.exports));
|
|
7412
7434
|
|
|
7413
7435
|
var isIPRangeExports = isIPRange.exports;
|
|
7414
7436
|
|
|
7415
7437
|
var isDate$1 = {exports: {}};
|
|
7416
7438
|
|
|
7417
|
-
(function (module, exports
|
|
7439
|
+
(function (module, exports) {
|
|
7418
7440
|
|
|
7419
|
-
Object.defineProperty(exports
|
|
7441
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7420
7442
|
value: true
|
|
7421
7443
|
});
|
|
7422
|
-
exports
|
|
7444
|
+
exports.default = isDate;
|
|
7423
7445
|
var _merge = _interopRequireDefault(mergeExports);
|
|
7424
7446
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7425
7447
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
@@ -7514,20 +7536,20 @@ var isDate$1 = {exports: {}};
|
|
|
7514
7536
|
}
|
|
7515
7537
|
return false;
|
|
7516
7538
|
}
|
|
7517
|
-
module.exports = exports
|
|
7518
|
-
module.exports.default = exports
|
|
7539
|
+
module.exports = exports.default;
|
|
7540
|
+
module.exports.default = exports.default;
|
|
7519
7541
|
} (isDate$1, isDate$1.exports));
|
|
7520
7542
|
|
|
7521
7543
|
var isDateExports = isDate$1.exports;
|
|
7522
7544
|
|
|
7523
7545
|
var isTime = {exports: {}};
|
|
7524
7546
|
|
|
7525
|
-
(function (module, exports
|
|
7547
|
+
(function (module, exports) {
|
|
7526
7548
|
|
|
7527
|
-
Object.defineProperty(exports
|
|
7549
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7528
7550
|
value: true
|
|
7529
7551
|
});
|
|
7530
|
-
exports
|
|
7552
|
+
exports.default = isTime;
|
|
7531
7553
|
var _merge = _interopRequireDefault(mergeExports);
|
|
7532
7554
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7533
7555
|
var default_time_options = {
|
|
@@ -7551,8 +7573,8 @@ var isTime = {exports: {}};
|
|
|
7551
7573
|
if (typeof input !== 'string') return false;
|
|
7552
7574
|
return formats[options.hourFormat][options.mode].test(input);
|
|
7553
7575
|
}
|
|
7554
|
-
module.exports = exports
|
|
7555
|
-
module.exports.default = exports
|
|
7576
|
+
module.exports = exports.default;
|
|
7577
|
+
module.exports.default = exports.default;
|
|
7556
7578
|
} (isTime, isTime.exports));
|
|
7557
7579
|
|
|
7558
7580
|
var isTimeExports = isTime.exports;
|
|
@@ -7561,30 +7583,30 @@ var isBoolean = {exports: {}};
|
|
|
7561
7583
|
|
|
7562
7584
|
var includesArray = {exports: {}};
|
|
7563
7585
|
|
|
7564
|
-
(function (module, exports
|
|
7586
|
+
(function (module, exports) {
|
|
7565
7587
|
|
|
7566
|
-
Object.defineProperty(exports
|
|
7588
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7567
7589
|
value: true
|
|
7568
7590
|
});
|
|
7569
|
-
exports
|
|
7591
|
+
exports.default = void 0;
|
|
7570
7592
|
var includes = function includes(arr, val) {
|
|
7571
7593
|
return arr.some(function (arrVal) {
|
|
7572
7594
|
return val === arrVal;
|
|
7573
7595
|
});
|
|
7574
7596
|
};
|
|
7575
|
-
exports
|
|
7576
|
-
module.exports = exports
|
|
7577
|
-
module.exports.default = exports
|
|
7597
|
+
exports.default = includes;
|
|
7598
|
+
module.exports = exports.default;
|
|
7599
|
+
module.exports.default = exports.default;
|
|
7578
7600
|
} (includesArray, includesArray.exports));
|
|
7579
7601
|
|
|
7580
7602
|
var includesArrayExports = includesArray.exports;
|
|
7581
7603
|
|
|
7582
|
-
(function (module, exports
|
|
7604
|
+
(function (module, exports) {
|
|
7583
7605
|
|
|
7584
|
-
Object.defineProperty(exports
|
|
7606
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7585
7607
|
value: true
|
|
7586
7608
|
});
|
|
7587
|
-
exports
|
|
7609
|
+
exports.default = isBoolean;
|
|
7588
7610
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7589
7611
|
var _includesArray = _interopRequireDefault(includesArrayExports);
|
|
7590
7612
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -7601,20 +7623,20 @@ var includesArrayExports = includesArray.exports;
|
|
|
7601
7623
|
}
|
|
7602
7624
|
return (0, _includesArray.default)(strictBooleans, str);
|
|
7603
7625
|
}
|
|
7604
|
-
module.exports = exports
|
|
7605
|
-
module.exports.default = exports
|
|
7626
|
+
module.exports = exports.default;
|
|
7627
|
+
module.exports.default = exports.default;
|
|
7606
7628
|
} (isBoolean, isBoolean.exports));
|
|
7607
7629
|
|
|
7608
7630
|
var isBooleanExports = isBoolean.exports;
|
|
7609
7631
|
|
|
7610
7632
|
var isLocale = {exports: {}};
|
|
7611
7633
|
|
|
7612
|
-
(function (module, exports
|
|
7634
|
+
(function (module, exports) {
|
|
7613
7635
|
|
|
7614
|
-
Object.defineProperty(exports
|
|
7636
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7615
7637
|
value: true
|
|
7616
7638
|
});
|
|
7617
|
-
exports
|
|
7639
|
+
exports.default = isLocale;
|
|
7618
7640
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7619
7641
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7620
7642
|
/*
|
|
@@ -7722,20 +7744,20 @@ var isLocale = {exports: {}};
|
|
|
7722
7744
|
(0, _assertString.default)(str);
|
|
7723
7745
|
return languageTagRegex.test(str);
|
|
7724
7746
|
}
|
|
7725
|
-
module.exports = exports
|
|
7726
|
-
module.exports.default = exports
|
|
7747
|
+
module.exports = exports.default;
|
|
7748
|
+
module.exports.default = exports.default;
|
|
7727
7749
|
} (isLocale, isLocale.exports));
|
|
7728
7750
|
|
|
7729
7751
|
var isLocaleExports = isLocale.exports;
|
|
7730
7752
|
|
|
7731
7753
|
var isAbaRouting = {exports: {}};
|
|
7732
7754
|
|
|
7733
|
-
(function (module, exports
|
|
7755
|
+
(function (module, exports) {
|
|
7734
7756
|
|
|
7735
|
-
Object.defineProperty(exports
|
|
7757
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7736
7758
|
value: true
|
|
7737
7759
|
});
|
|
7738
|
-
exports
|
|
7760
|
+
exports.default = isAbaRouting;
|
|
7739
7761
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7740
7762
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7741
7763
|
// http://www.brainjar.com/js/validation/
|
|
@@ -7751,8 +7773,8 @@ var isAbaRouting = {exports: {}};
|
|
|
7751
7773
|
}
|
|
7752
7774
|
return checkSumVal % 10 === 0;
|
|
7753
7775
|
}
|
|
7754
|
-
module.exports = exports
|
|
7755
|
-
module.exports.default = exports
|
|
7776
|
+
module.exports = exports.default;
|
|
7777
|
+
module.exports.default = exports.default;
|
|
7756
7778
|
} (isAbaRouting, isAbaRouting.exports));
|
|
7757
7779
|
|
|
7758
7780
|
var isAbaRoutingExports = isAbaRouting.exports;
|
|
@@ -7823,12 +7845,12 @@ isAlphanumeric$1.locales = Object.keys(_alpha.alphanumeric);
|
|
|
7823
7845
|
|
|
7824
7846
|
var isNumeric = {exports: {}};
|
|
7825
7847
|
|
|
7826
|
-
(function (module, exports
|
|
7848
|
+
(function (module, exports) {
|
|
7827
7849
|
|
|
7828
|
-
Object.defineProperty(exports
|
|
7850
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7829
7851
|
value: true
|
|
7830
7852
|
});
|
|
7831
|
-
exports
|
|
7853
|
+
exports.default = isNumeric;
|
|
7832
7854
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
7833
7855
|
var _alpha = alpha$1;
|
|
7834
7856
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -7840,8 +7862,8 @@ var isNumeric = {exports: {}};
|
|
|
7840
7862
|
}
|
|
7841
7863
|
return new RegExp("^[+-]?([0-9]*[".concat((options || {}).locale ? _alpha.decimal[options.locale] : '.', "])?[0-9]+$")).test(str);
|
|
7842
7864
|
}
|
|
7843
|
-
module.exports = exports
|
|
7844
|
-
module.exports.default = exports
|
|
7865
|
+
module.exports = exports.default;
|
|
7866
|
+
module.exports.default = exports.default;
|
|
7845
7867
|
} (isNumeric, isNumeric.exports));
|
|
7846
7868
|
|
|
7847
7869
|
var isNumericExports = isNumeric.exports;
|
|
@@ -7948,7 +7970,7 @@ var passportRegexByCountryCode = {
|
|
|
7948
7970
|
// MOZAMBIQUE
|
|
7949
7971
|
MY: /^[AHK]\d{8}$/,
|
|
7950
7972
|
// MALAYSIA
|
|
7951
|
-
MX:
|
|
7973
|
+
MX: /^[A-Z]\d{8}$/,
|
|
7952
7974
|
// MEXICO
|
|
7953
7975
|
NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/,
|
|
7954
7976
|
// NETHERLANDS
|
|
@@ -8003,12 +8025,12 @@ var isPort = {exports: {}};
|
|
|
8003
8025
|
|
|
8004
8026
|
var isInt$1 = {exports: {}};
|
|
8005
8027
|
|
|
8006
|
-
(function (module, exports
|
|
8028
|
+
(function (module, exports) {
|
|
8007
8029
|
|
|
8008
|
-
Object.defineProperty(exports
|
|
8030
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8009
8031
|
value: true
|
|
8010
8032
|
});
|
|
8011
|
-
exports
|
|
8033
|
+
exports.default = isInt;
|
|
8012
8034
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8013
8035
|
var _nullUndefinedCheck = _interopRequireDefault(nullUndefinedCheckExports);
|
|
8014
8036
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8029,18 +8051,18 @@ var isInt$1 = {exports: {}};
|
|
|
8029
8051
|
var gtCheckPassed = !options.hasOwnProperty('gt') || (0, _nullUndefinedCheck.default)(options.gt) || str > options.gt;
|
|
8030
8052
|
return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;
|
|
8031
8053
|
}
|
|
8032
|
-
module.exports = exports
|
|
8033
|
-
module.exports.default = exports
|
|
8054
|
+
module.exports = exports.default;
|
|
8055
|
+
module.exports.default = exports.default;
|
|
8034
8056
|
} (isInt$1, isInt$1.exports));
|
|
8035
8057
|
|
|
8036
8058
|
var isIntExports = isInt$1.exports;
|
|
8037
8059
|
|
|
8038
|
-
(function (module, exports
|
|
8060
|
+
(function (module, exports) {
|
|
8039
8061
|
|
|
8040
|
-
Object.defineProperty(exports
|
|
8062
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8041
8063
|
value: true
|
|
8042
8064
|
});
|
|
8043
|
-
exports
|
|
8065
|
+
exports.default = isPort;
|
|
8044
8066
|
var _isInt = _interopRequireDefault(isIntExports);
|
|
8045
8067
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8046
8068
|
function isPort(str) {
|
|
@@ -8050,60 +8072,60 @@ var isIntExports = isInt$1.exports;
|
|
|
8050
8072
|
max: 65535
|
|
8051
8073
|
});
|
|
8052
8074
|
}
|
|
8053
|
-
module.exports = exports
|
|
8054
|
-
module.exports.default = exports
|
|
8075
|
+
module.exports = exports.default;
|
|
8076
|
+
module.exports.default = exports.default;
|
|
8055
8077
|
} (isPort, isPort.exports));
|
|
8056
8078
|
|
|
8057
8079
|
var isPortExports = isPort.exports;
|
|
8058
8080
|
|
|
8059
8081
|
var isLowercase = {exports: {}};
|
|
8060
8082
|
|
|
8061
|
-
(function (module, exports
|
|
8083
|
+
(function (module, exports) {
|
|
8062
8084
|
|
|
8063
|
-
Object.defineProperty(exports
|
|
8085
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8064
8086
|
value: true
|
|
8065
8087
|
});
|
|
8066
|
-
exports
|
|
8088
|
+
exports.default = isLowercase;
|
|
8067
8089
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8068
8090
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8069
8091
|
function isLowercase(str) {
|
|
8070
8092
|
(0, _assertString.default)(str);
|
|
8071
8093
|
return str === str.toLowerCase();
|
|
8072
8094
|
}
|
|
8073
|
-
module.exports = exports
|
|
8074
|
-
module.exports.default = exports
|
|
8095
|
+
module.exports = exports.default;
|
|
8096
|
+
module.exports.default = exports.default;
|
|
8075
8097
|
} (isLowercase, isLowercase.exports));
|
|
8076
8098
|
|
|
8077
8099
|
var isLowercaseExports = isLowercase.exports;
|
|
8078
8100
|
|
|
8079
8101
|
var isUppercase = {exports: {}};
|
|
8080
8102
|
|
|
8081
|
-
(function (module, exports
|
|
8103
|
+
(function (module, exports) {
|
|
8082
8104
|
|
|
8083
|
-
Object.defineProperty(exports
|
|
8105
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8084
8106
|
value: true
|
|
8085
8107
|
});
|
|
8086
|
-
exports
|
|
8108
|
+
exports.default = isUppercase;
|
|
8087
8109
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8088
8110
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8089
8111
|
function isUppercase(str) {
|
|
8090
8112
|
(0, _assertString.default)(str);
|
|
8091
8113
|
return str === str.toUpperCase();
|
|
8092
8114
|
}
|
|
8093
|
-
module.exports = exports
|
|
8094
|
-
module.exports.default = exports
|
|
8115
|
+
module.exports = exports.default;
|
|
8116
|
+
module.exports.default = exports.default;
|
|
8095
8117
|
} (isUppercase, isUppercase.exports));
|
|
8096
8118
|
|
|
8097
8119
|
var isUppercaseExports = isUppercase.exports;
|
|
8098
8120
|
|
|
8099
8121
|
var isIMEI = {exports: {}};
|
|
8100
8122
|
|
|
8101
|
-
(function (module, exports
|
|
8123
|
+
(function (module, exports) {
|
|
8102
8124
|
|
|
8103
|
-
Object.defineProperty(exports
|
|
8125
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8104
8126
|
value: true
|
|
8105
8127
|
});
|
|
8106
|
-
exports
|
|
8128
|
+
exports.default = isIMEI;
|
|
8107
8129
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8108
8130
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8109
8131
|
var imeiRegexWithoutHyphens = /^[0-9]{15}$/;
|
|
@@ -8145,20 +8167,20 @@ var isIMEI = {exports: {}};
|
|
|
8145
8167
|
}
|
|
8146
8168
|
return true;
|
|
8147
8169
|
}
|
|
8148
|
-
module.exports = exports
|
|
8149
|
-
module.exports.default = exports
|
|
8170
|
+
module.exports = exports.default;
|
|
8171
|
+
module.exports.default = exports.default;
|
|
8150
8172
|
} (isIMEI, isIMEI.exports));
|
|
8151
8173
|
|
|
8152
8174
|
var isIMEIExports = isIMEI.exports;
|
|
8153
8175
|
|
|
8154
8176
|
var isAscii = {exports: {}};
|
|
8155
8177
|
|
|
8156
|
-
(function (module, exports
|
|
8178
|
+
(function (module, exports) {
|
|
8157
8179
|
|
|
8158
|
-
Object.defineProperty(exports
|
|
8180
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8159
8181
|
value: true
|
|
8160
8182
|
});
|
|
8161
|
-
exports
|
|
8183
|
+
exports.default = isAscii;
|
|
8162
8184
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8163
8185
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8164
8186
|
/* eslint-disable no-control-regex */
|
|
@@ -8169,8 +8191,8 @@ var isAscii = {exports: {}};
|
|
|
8169
8191
|
(0, _assertString.default)(str);
|
|
8170
8192
|
return ascii.test(str);
|
|
8171
8193
|
}
|
|
8172
|
-
module.exports = exports
|
|
8173
|
-
module.exports.default = exports
|
|
8194
|
+
module.exports = exports.default;
|
|
8195
|
+
module.exports.default = exports.default;
|
|
8174
8196
|
} (isAscii, isAscii.exports));
|
|
8175
8197
|
|
|
8176
8198
|
var isAsciiExports = isAscii.exports;
|
|
@@ -8207,12 +8229,12 @@ function isHalfWidth(str) {
|
|
|
8207
8229
|
|
|
8208
8230
|
var isVariableWidth = {exports: {}};
|
|
8209
8231
|
|
|
8210
|
-
(function (module, exports
|
|
8232
|
+
(function (module, exports) {
|
|
8211
8233
|
|
|
8212
|
-
Object.defineProperty(exports
|
|
8234
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8213
8235
|
value: true
|
|
8214
8236
|
});
|
|
8215
|
-
exports
|
|
8237
|
+
exports.default = isVariableWidth;
|
|
8216
8238
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8217
8239
|
var _isFullWidth = isFullWidth$1;
|
|
8218
8240
|
var _isHalfWidth = isHalfWidth$1;
|
|
@@ -8221,20 +8243,20 @@ var isVariableWidth = {exports: {}};
|
|
|
8221
8243
|
(0, _assertString.default)(str);
|
|
8222
8244
|
return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);
|
|
8223
8245
|
}
|
|
8224
|
-
module.exports = exports
|
|
8225
|
-
module.exports.default = exports
|
|
8246
|
+
module.exports = exports.default;
|
|
8247
|
+
module.exports.default = exports.default;
|
|
8226
8248
|
} (isVariableWidth, isVariableWidth.exports));
|
|
8227
8249
|
|
|
8228
8250
|
var isVariableWidthExports = isVariableWidth.exports;
|
|
8229
8251
|
|
|
8230
8252
|
var isMultibyte = {exports: {}};
|
|
8231
8253
|
|
|
8232
|
-
(function (module, exports
|
|
8254
|
+
(function (module, exports) {
|
|
8233
8255
|
|
|
8234
|
-
Object.defineProperty(exports
|
|
8256
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8235
8257
|
value: true
|
|
8236
8258
|
});
|
|
8237
|
-
exports
|
|
8259
|
+
exports.default = isMultibyte;
|
|
8238
8260
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8239
8261
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8240
8262
|
/* eslint-disable no-control-regex */
|
|
@@ -8245,8 +8267,8 @@ var isMultibyte = {exports: {}};
|
|
|
8245
8267
|
(0, _assertString.default)(str);
|
|
8246
8268
|
return multibyte.test(str);
|
|
8247
8269
|
}
|
|
8248
|
-
module.exports = exports
|
|
8249
|
-
module.exports.default = exports
|
|
8270
|
+
module.exports = exports.default;
|
|
8271
|
+
module.exports.default = exports.default;
|
|
8250
8272
|
} (isMultibyte, isMultibyte.exports));
|
|
8251
8273
|
|
|
8252
8274
|
var isMultibyteExports = isMultibyte.exports;
|
|
@@ -8255,12 +8277,12 @@ var isSemVer = {exports: {}};
|
|
|
8255
8277
|
|
|
8256
8278
|
var multilineRegex = {exports: {}};
|
|
8257
8279
|
|
|
8258
|
-
(function (module, exports
|
|
8280
|
+
(function (module, exports) {
|
|
8259
8281
|
|
|
8260
|
-
Object.defineProperty(exports
|
|
8282
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8261
8283
|
value: true
|
|
8262
8284
|
});
|
|
8263
|
-
exports
|
|
8285
|
+
exports.default = multilineRegexp;
|
|
8264
8286
|
/**
|
|
8265
8287
|
* Build RegExp object from an array
|
|
8266
8288
|
* of multiple/multi-line regexp parts
|
|
@@ -8273,18 +8295,18 @@ var multilineRegex = {exports: {}};
|
|
|
8273
8295
|
var regexpAsStringLiteral = parts.join('');
|
|
8274
8296
|
return new RegExp(regexpAsStringLiteral, flags);
|
|
8275
8297
|
}
|
|
8276
|
-
module.exports = exports
|
|
8277
|
-
module.exports.default = exports
|
|
8298
|
+
module.exports = exports.default;
|
|
8299
|
+
module.exports.default = exports.default;
|
|
8278
8300
|
} (multilineRegex, multilineRegex.exports));
|
|
8279
8301
|
|
|
8280
8302
|
var multilineRegexExports = multilineRegex.exports;
|
|
8281
8303
|
|
|
8282
|
-
(function (module, exports
|
|
8304
|
+
(function (module, exports) {
|
|
8283
8305
|
|
|
8284
|
-
Object.defineProperty(exports
|
|
8306
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8285
8307
|
value: true
|
|
8286
8308
|
});
|
|
8287
|
-
exports
|
|
8309
|
+
exports.default = isSemVer;
|
|
8288
8310
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8289
8311
|
var _multilineRegex = _interopRequireDefault(multilineRegexExports);
|
|
8290
8312
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8299,20 +8321,20 @@ var multilineRegexExports = multilineRegex.exports;
|
|
|
8299
8321
|
(0, _assertString.default)(str);
|
|
8300
8322
|
return semanticVersioningRegex.test(str);
|
|
8301
8323
|
}
|
|
8302
|
-
module.exports = exports
|
|
8303
|
-
module.exports.default = exports
|
|
8324
|
+
module.exports = exports.default;
|
|
8325
|
+
module.exports.default = exports.default;
|
|
8304
8326
|
} (isSemVer, isSemVer.exports));
|
|
8305
8327
|
|
|
8306
8328
|
var isSemVerExports = isSemVer.exports;
|
|
8307
8329
|
|
|
8308
8330
|
var isSurrogatePair = {exports: {}};
|
|
8309
8331
|
|
|
8310
|
-
(function (module, exports
|
|
8332
|
+
(function (module, exports) {
|
|
8311
8333
|
|
|
8312
|
-
Object.defineProperty(exports
|
|
8334
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8313
8335
|
value: true
|
|
8314
8336
|
});
|
|
8315
|
-
exports
|
|
8337
|
+
exports.default = isSurrogatePair;
|
|
8316
8338
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8317
8339
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8318
8340
|
var surrogatePair = /[\uD800-\uDBFF][\uDC00-\uDFFF]/;
|
|
@@ -8320,20 +8342,20 @@ var isSurrogatePair = {exports: {}};
|
|
|
8320
8342
|
(0, _assertString.default)(str);
|
|
8321
8343
|
return surrogatePair.test(str);
|
|
8322
8344
|
}
|
|
8323
|
-
module.exports = exports
|
|
8324
|
-
module.exports.default = exports
|
|
8345
|
+
module.exports = exports.default;
|
|
8346
|
+
module.exports.default = exports.default;
|
|
8325
8347
|
} (isSurrogatePair, isSurrogatePair.exports));
|
|
8326
8348
|
|
|
8327
8349
|
var isSurrogatePairExports = isSurrogatePair.exports;
|
|
8328
8350
|
|
|
8329
8351
|
var isDecimal = {exports: {}};
|
|
8330
8352
|
|
|
8331
|
-
(function (module, exports
|
|
8353
|
+
(function (module, exports) {
|
|
8332
8354
|
|
|
8333
|
-
Object.defineProperty(exports
|
|
8355
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8334
8356
|
value: true
|
|
8335
8357
|
});
|
|
8336
|
-
exports
|
|
8358
|
+
exports.default = isDecimal;
|
|
8337
8359
|
var _merge = _interopRequireDefault(mergeExports);
|
|
8338
8360
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8339
8361
|
var _includesArray = _interopRequireDefault(includesArrayExports);
|
|
@@ -8357,20 +8379,20 @@ var isDecimal = {exports: {}};
|
|
|
8357
8379
|
}
|
|
8358
8380
|
throw new Error("Invalid locale '".concat(options.locale, "'"));
|
|
8359
8381
|
}
|
|
8360
|
-
module.exports = exports
|
|
8361
|
-
module.exports.default = exports
|
|
8382
|
+
module.exports = exports.default;
|
|
8383
|
+
module.exports.default = exports.default;
|
|
8362
8384
|
} (isDecimal, isDecimal.exports));
|
|
8363
8385
|
|
|
8364
8386
|
var isDecimalExports = isDecimal.exports;
|
|
8365
8387
|
|
|
8366
8388
|
var isHexadecimal = {exports: {}};
|
|
8367
8389
|
|
|
8368
|
-
(function (module, exports
|
|
8390
|
+
(function (module, exports) {
|
|
8369
8391
|
|
|
8370
|
-
Object.defineProperty(exports
|
|
8392
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8371
8393
|
value: true
|
|
8372
8394
|
});
|
|
8373
|
-
exports
|
|
8395
|
+
exports.default = isHexadecimal;
|
|
8374
8396
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8375
8397
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8376
8398
|
var hexadecimal = /^(0x|0h)?[0-9A-F]+$/i;
|
|
@@ -8378,20 +8400,20 @@ var isHexadecimal = {exports: {}};
|
|
|
8378
8400
|
(0, _assertString.default)(str);
|
|
8379
8401
|
return hexadecimal.test(str);
|
|
8380
8402
|
}
|
|
8381
|
-
module.exports = exports
|
|
8382
|
-
module.exports.default = exports
|
|
8403
|
+
module.exports = exports.default;
|
|
8404
|
+
module.exports.default = exports.default;
|
|
8383
8405
|
} (isHexadecimal, isHexadecimal.exports));
|
|
8384
8406
|
|
|
8385
8407
|
var isHexadecimalExports = isHexadecimal.exports;
|
|
8386
8408
|
|
|
8387
8409
|
var isOctal = {exports: {}};
|
|
8388
8410
|
|
|
8389
|
-
(function (module, exports
|
|
8411
|
+
(function (module, exports) {
|
|
8390
8412
|
|
|
8391
|
-
Object.defineProperty(exports
|
|
8413
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8392
8414
|
value: true
|
|
8393
8415
|
});
|
|
8394
|
-
exports
|
|
8416
|
+
exports.default = isOctal;
|
|
8395
8417
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8396
8418
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8397
8419
|
var octal = /^(0o)?[0-7]+$/i;
|
|
@@ -8399,20 +8421,20 @@ var isOctal = {exports: {}};
|
|
|
8399
8421
|
(0, _assertString.default)(str);
|
|
8400
8422
|
return octal.test(str);
|
|
8401
8423
|
}
|
|
8402
|
-
module.exports = exports
|
|
8403
|
-
module.exports.default = exports
|
|
8424
|
+
module.exports = exports.default;
|
|
8425
|
+
module.exports.default = exports.default;
|
|
8404
8426
|
} (isOctal, isOctal.exports));
|
|
8405
8427
|
|
|
8406
8428
|
var isOctalExports = isOctal.exports;
|
|
8407
8429
|
|
|
8408
8430
|
var isDivisibleBy = {exports: {}};
|
|
8409
8431
|
|
|
8410
|
-
(function (module, exports
|
|
8432
|
+
(function (module, exports) {
|
|
8411
8433
|
|
|
8412
|
-
Object.defineProperty(exports
|
|
8434
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8413
8435
|
value: true
|
|
8414
8436
|
});
|
|
8415
|
-
exports
|
|
8437
|
+
exports.default = isDivisibleBy;
|
|
8416
8438
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8417
8439
|
var _toFloat = _interopRequireDefault(toFloatExports);
|
|
8418
8440
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8420,20 +8442,20 @@ var isDivisibleBy = {exports: {}};
|
|
|
8420
8442
|
(0, _assertString.default)(str);
|
|
8421
8443
|
return (0, _toFloat.default)(str) % parseInt(num, 10) === 0;
|
|
8422
8444
|
}
|
|
8423
|
-
module.exports = exports
|
|
8424
|
-
module.exports.default = exports
|
|
8445
|
+
module.exports = exports.default;
|
|
8446
|
+
module.exports.default = exports.default;
|
|
8425
8447
|
} (isDivisibleBy, isDivisibleBy.exports));
|
|
8426
8448
|
|
|
8427
8449
|
var isDivisibleByExports = isDivisibleBy.exports;
|
|
8428
8450
|
|
|
8429
8451
|
var isHexColor = {exports: {}};
|
|
8430
8452
|
|
|
8431
|
-
(function (module, exports
|
|
8453
|
+
(function (module, exports) {
|
|
8432
8454
|
|
|
8433
|
-
Object.defineProperty(exports
|
|
8455
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8434
8456
|
value: true
|
|
8435
8457
|
});
|
|
8436
|
-
exports
|
|
8458
|
+
exports.default = isHexColor;
|
|
8437
8459
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8438
8460
|
var _merge = _interopRequireDefault(mergeExports);
|
|
8439
8461
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8448,20 +8470,20 @@ var isHexColor = {exports: {}};
|
|
|
8448
8470
|
var hexcolor_regex = options.require_hashtag ? hexcolor_with_prefix : hexcolor;
|
|
8449
8471
|
return hexcolor_regex.test(str);
|
|
8450
8472
|
}
|
|
8451
|
-
module.exports = exports
|
|
8452
|
-
module.exports.default = exports
|
|
8473
|
+
module.exports = exports.default;
|
|
8474
|
+
module.exports.default = exports.default;
|
|
8453
8475
|
} (isHexColor, isHexColor.exports));
|
|
8454
8476
|
|
|
8455
8477
|
var isHexColorExports = isHexColor.exports;
|
|
8456
8478
|
|
|
8457
8479
|
var isRgbColor = {exports: {}};
|
|
8458
8480
|
|
|
8459
|
-
(function (module, exports
|
|
8481
|
+
(function (module, exports) {
|
|
8460
8482
|
|
|
8461
|
-
Object.defineProperty(exports
|
|
8483
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8462
8484
|
value: true
|
|
8463
8485
|
});
|
|
8464
|
-
exports
|
|
8486
|
+
exports.default = isRgbColor;
|
|
8465
8487
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8466
8488
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8467
8489
|
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 */
|
|
@@ -8484,7 +8506,7 @@ var isRgbColor = {exports: {}};
|
|
|
8484
8506
|
includePercentValues = options.includePercentValues !== undefined ? options.includePercentValues : includePercentValues;
|
|
8485
8507
|
}
|
|
8486
8508
|
if (allowSpaces) {
|
|
8487
|
-
// make sure it starts with
|
|
8509
|
+
// make sure it starts with continuous rgba? without spaces before stripping
|
|
8488
8510
|
if (!startsWithRgb.test(str)) {
|
|
8489
8511
|
return false;
|
|
8490
8512
|
}
|
|
@@ -8496,20 +8518,20 @@ var isRgbColor = {exports: {}};
|
|
|
8496
8518
|
}
|
|
8497
8519
|
return rgbColor.test(str) || rgbaColor.test(str) || rgbColorPercent.test(str) || rgbaColorPercent.test(str);
|
|
8498
8520
|
}
|
|
8499
|
-
module.exports = exports
|
|
8500
|
-
module.exports.default = exports
|
|
8521
|
+
module.exports = exports.default;
|
|
8522
|
+
module.exports.default = exports.default;
|
|
8501
8523
|
} (isRgbColor, isRgbColor.exports));
|
|
8502
8524
|
|
|
8503
8525
|
var isRgbColorExports = isRgbColor.exports;
|
|
8504
8526
|
|
|
8505
8527
|
var isHSL = {exports: {}};
|
|
8506
8528
|
|
|
8507
|
-
(function (module, exports
|
|
8529
|
+
(function (module, exports) {
|
|
8508
8530
|
|
|
8509
|
-
Object.defineProperty(exports
|
|
8531
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8510
8532
|
value: true
|
|
8511
8533
|
});
|
|
8512
|
-
exports
|
|
8534
|
+
exports.default = isHSL;
|
|
8513
8535
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8514
8536
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8515
8537
|
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;
|
|
@@ -8524,20 +8546,20 @@ var isHSL = {exports: {}};
|
|
|
8524
8546
|
}
|
|
8525
8547
|
return hslSpace.test(strippedStr);
|
|
8526
8548
|
}
|
|
8527
|
-
module.exports = exports
|
|
8528
|
-
module.exports.default = exports
|
|
8549
|
+
module.exports = exports.default;
|
|
8550
|
+
module.exports.default = exports.default;
|
|
8529
8551
|
} (isHSL, isHSL.exports));
|
|
8530
8552
|
|
|
8531
8553
|
var isHSLExports = isHSL.exports;
|
|
8532
8554
|
|
|
8533
8555
|
var isISRC = {exports: {}};
|
|
8534
8556
|
|
|
8535
|
-
(function (module, exports
|
|
8557
|
+
(function (module, exports) {
|
|
8536
8558
|
|
|
8537
|
-
Object.defineProperty(exports
|
|
8559
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8538
8560
|
value: true
|
|
8539
8561
|
});
|
|
8540
|
-
exports
|
|
8562
|
+
exports.default = isISRC;
|
|
8541
8563
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8542
8564
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8543
8565
|
// see http://isrc.ifpi.org/en/isrc-standard/code-syntax
|
|
@@ -8546,8 +8568,8 @@ var isISRC = {exports: {}};
|
|
|
8546
8568
|
(0, _assertString.default)(str);
|
|
8547
8569
|
return isrc.test(str);
|
|
8548
8570
|
}
|
|
8549
|
-
module.exports = exports
|
|
8550
|
-
module.exports.default = exports
|
|
8571
|
+
module.exports = exports.default;
|
|
8572
|
+
module.exports.default = exports.default;
|
|
8551
8573
|
} (isISRC, isISRC.exports));
|
|
8552
8574
|
|
|
8553
8575
|
var isISRCExports = isISRC.exports;
|
|
@@ -8662,10 +8684,7 @@ function hasOnlyValidCountryCodes(countryCodeArray) {
|
|
|
8662
8684
|
var countryCodeArrayFilteredWithObjectIbanCode = countryCodeArray.filter(function (countryCode) {
|
|
8663
8685
|
return !(countryCode in ibanRegexThroughCountryCode);
|
|
8664
8686
|
});
|
|
8665
|
-
|
|
8666
|
-
return false;
|
|
8667
|
-
}
|
|
8668
|
-
return true;
|
|
8687
|
+
return countryCodeArrayFilteredWithObjectIbanCode.length === 0;
|
|
8669
8688
|
}
|
|
8670
8689
|
|
|
8671
8690
|
/**
|
|
@@ -8747,18 +8766,30 @@ var _assertString$6 = _interopRequireDefault$6(assertStringExports);
|
|
|
8747
8766
|
function _interopRequireDefault$6(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8748
8767
|
// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
8749
8768
|
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']);
|
|
8769
|
+
var alpha2CountryCode = /^[a-zA-Z]{2}$/;
|
|
8750
8770
|
function isISO31661Alpha2(str) {
|
|
8771
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8751
8772
|
(0, _assertString$6.default)(str);
|
|
8773
|
+
var userAssignedCodes = options.userAssignedCodes;
|
|
8774
|
+
var validUserAssignedCodes = (userAssignedCodes || []).reduce(function (accumulator, userAssignedCode) {
|
|
8775
|
+
if (alpha2CountryCode.test(userAssignedCode)) {
|
|
8776
|
+
accumulator.push(userAssignedCode.toUpperCase());
|
|
8777
|
+
}
|
|
8778
|
+
return accumulator;
|
|
8779
|
+
}, []);
|
|
8780
|
+
if (validUserAssignedCodes.includes(str.toUpperCase())) {
|
|
8781
|
+
return true;
|
|
8782
|
+
}
|
|
8752
8783
|
return validISO31661Alpha2CountriesCodes.has(str.toUpperCase());
|
|
8753
8784
|
}
|
|
8754
8785
|
isISO31661Alpha2$1.CountryCodes = validISO31661Alpha2CountriesCodes;
|
|
8755
8786
|
|
|
8756
|
-
(function (module, exports
|
|
8787
|
+
(function (module, exports) {
|
|
8757
8788
|
|
|
8758
|
-
Object.defineProperty(exports
|
|
8789
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8759
8790
|
value: true
|
|
8760
8791
|
});
|
|
8761
|
-
exports
|
|
8792
|
+
exports.default = isBIC;
|
|
8762
8793
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8763
8794
|
var _isISO31661Alpha = isISO31661Alpha2$1;
|
|
8764
8795
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8775,20 +8806,20 @@ isISO31661Alpha2$1.CountryCodes = validISO31661Alpha2CountriesCodes;
|
|
|
8775
8806
|
}
|
|
8776
8807
|
return isBICReg.test(str);
|
|
8777
8808
|
}
|
|
8778
|
-
module.exports = exports
|
|
8779
|
-
module.exports.default = exports
|
|
8809
|
+
module.exports = exports.default;
|
|
8810
|
+
module.exports.default = exports.default;
|
|
8780
8811
|
} (isBIC, isBIC.exports));
|
|
8781
8812
|
|
|
8782
8813
|
var isBICExports = isBIC.exports;
|
|
8783
8814
|
|
|
8784
8815
|
var isMD5 = {exports: {}};
|
|
8785
8816
|
|
|
8786
|
-
(function (module, exports
|
|
8817
|
+
(function (module, exports) {
|
|
8787
8818
|
|
|
8788
|
-
Object.defineProperty(exports
|
|
8819
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8789
8820
|
value: true
|
|
8790
8821
|
});
|
|
8791
|
-
exports
|
|
8822
|
+
exports.default = isMD5;
|
|
8792
8823
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8793
8824
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8794
8825
|
var md5 = /^[a-f0-9]{32}$/;
|
|
@@ -8796,20 +8827,20 @@ var isMD5 = {exports: {}};
|
|
|
8796
8827
|
(0, _assertString.default)(str);
|
|
8797
8828
|
return md5.test(str);
|
|
8798
8829
|
}
|
|
8799
|
-
module.exports = exports
|
|
8800
|
-
module.exports.default = exports
|
|
8830
|
+
module.exports = exports.default;
|
|
8831
|
+
module.exports.default = exports.default;
|
|
8801
8832
|
} (isMD5, isMD5.exports));
|
|
8802
8833
|
|
|
8803
8834
|
var isMD5Exports = isMD5.exports;
|
|
8804
8835
|
|
|
8805
8836
|
var isHash = {exports: {}};
|
|
8806
8837
|
|
|
8807
|
-
(function (module, exports
|
|
8838
|
+
(function (module, exports) {
|
|
8808
8839
|
|
|
8809
|
-
Object.defineProperty(exports
|
|
8840
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8810
8841
|
value: true
|
|
8811
8842
|
});
|
|
8812
|
-
exports
|
|
8843
|
+
exports.default = isHash;
|
|
8813
8844
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8814
8845
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8815
8846
|
var lengths = {
|
|
@@ -8832,8 +8863,8 @@ var isHash = {exports: {}};
|
|
|
8832
8863
|
var hash = new RegExp("^[a-fA-F0-9]{".concat(lengths[algorithm], "}$"));
|
|
8833
8864
|
return hash.test(str);
|
|
8834
8865
|
}
|
|
8835
|
-
module.exports = exports
|
|
8836
|
-
module.exports.default = exports
|
|
8866
|
+
module.exports = exports.default;
|
|
8867
|
+
module.exports.default = exports.default;
|
|
8837
8868
|
} (isHash, isHash.exports));
|
|
8838
8869
|
|
|
8839
8870
|
var isHashExports = isHash.exports;
|
|
@@ -8842,12 +8873,12 @@ var isJWT = {exports: {}};
|
|
|
8842
8873
|
|
|
8843
8874
|
var isBase64 = {exports: {}};
|
|
8844
8875
|
|
|
8845
|
-
(function (module, exports
|
|
8876
|
+
(function (module, exports) {
|
|
8846
8877
|
|
|
8847
|
-
Object.defineProperty(exports
|
|
8878
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8848
8879
|
value: true
|
|
8849
8880
|
});
|
|
8850
|
-
exports
|
|
8881
|
+
exports.default = isBase64;
|
|
8851
8882
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8852
8883
|
var _merge = _interopRequireDefault(mergeExports);
|
|
8853
8884
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8872,18 +8903,18 @@ var isBase64 = {exports: {}};
|
|
|
8872
8903
|
}
|
|
8873
8904
|
return (!options.padding || str.length % 4 === 0) && regex.test(str);
|
|
8874
8905
|
}
|
|
8875
|
-
module.exports = exports
|
|
8876
|
-
module.exports.default = exports
|
|
8906
|
+
module.exports = exports.default;
|
|
8907
|
+
module.exports.default = exports.default;
|
|
8877
8908
|
} (isBase64, isBase64.exports));
|
|
8878
8909
|
|
|
8879
8910
|
var isBase64Exports = isBase64.exports;
|
|
8880
8911
|
|
|
8881
|
-
(function (module, exports
|
|
8912
|
+
(function (module, exports) {
|
|
8882
8913
|
|
|
8883
|
-
Object.defineProperty(exports
|
|
8914
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8884
8915
|
value: true
|
|
8885
8916
|
});
|
|
8886
|
-
exports
|
|
8917
|
+
exports.default = isJWT;
|
|
8887
8918
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8888
8919
|
var _isBase = _interopRequireDefault(isBase64Exports);
|
|
8889
8920
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8900,55 +8931,61 @@ var isBase64Exports = isBase64.exports;
|
|
|
8900
8931
|
});
|
|
8901
8932
|
}, true);
|
|
8902
8933
|
}
|
|
8903
|
-
module.exports = exports
|
|
8904
|
-
module.exports.default = exports
|
|
8934
|
+
module.exports = exports.default;
|
|
8935
|
+
module.exports.default = exports.default;
|
|
8905
8936
|
} (isJWT, isJWT.exports));
|
|
8906
8937
|
|
|
8907
8938
|
var isJWTExports = isJWT.exports;
|
|
8908
8939
|
|
|
8909
8940
|
var isJSON = {exports: {}};
|
|
8910
8941
|
|
|
8911
|
-
(function (module, exports
|
|
8942
|
+
(function (module, exports) {
|
|
8912
8943
|
|
|
8913
|
-
Object.defineProperty(exports
|
|
8944
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8914
8945
|
value: true
|
|
8915
8946
|
});
|
|
8916
|
-
exports
|
|
8947
|
+
exports.default = isJSON;
|
|
8917
8948
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8918
8949
|
var _includesArray = _interopRequireDefault(includesArrayExports);
|
|
8919
8950
|
var _merge = _interopRequireDefault(mergeExports);
|
|
8920
8951
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8921
8952
|
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); }
|
|
8922
8953
|
var default_json_options = {
|
|
8923
|
-
allow_primitives: false
|
|
8954
|
+
allow_primitives: false,
|
|
8955
|
+
allow_any_value: false
|
|
8924
8956
|
};
|
|
8925
8957
|
function isJSON(str, options) {
|
|
8926
8958
|
(0, _assertString.default)(str);
|
|
8927
8959
|
try {
|
|
8928
8960
|
options = (0, _merge.default)(options, default_json_options);
|
|
8961
|
+
var obj = JSON.parse(str);
|
|
8962
|
+
|
|
8963
|
+
// When allow_any_value is true, accept anything that JSON.parse successfully parses
|
|
8964
|
+
if (options.allow_any_value) {
|
|
8965
|
+
return true;
|
|
8966
|
+
}
|
|
8929
8967
|
var primitives = [];
|
|
8930
8968
|
if (options.allow_primitives) {
|
|
8931
8969
|
primitives = [null, false, true];
|
|
8932
8970
|
}
|
|
8933
|
-
var obj = JSON.parse(str);
|
|
8934
8971
|
return (0, _includesArray.default)(primitives, obj) || !!obj && _typeof(obj) === 'object';
|
|
8935
8972
|
} catch (e) {/* ignore */}
|
|
8936
8973
|
return false;
|
|
8937
8974
|
}
|
|
8938
|
-
module.exports = exports
|
|
8939
|
-
module.exports.default = exports
|
|
8975
|
+
module.exports = exports.default;
|
|
8976
|
+
module.exports.default = exports.default;
|
|
8940
8977
|
} (isJSON, isJSON.exports));
|
|
8941
8978
|
|
|
8942
8979
|
var isJSONExports = isJSON.exports;
|
|
8943
8980
|
|
|
8944
8981
|
var isEmpty = {exports: {}};
|
|
8945
8982
|
|
|
8946
|
-
(function (module, exports
|
|
8983
|
+
(function (module, exports) {
|
|
8947
8984
|
|
|
8948
|
-
Object.defineProperty(exports
|
|
8985
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8949
8986
|
value: true
|
|
8950
8987
|
});
|
|
8951
|
-
exports
|
|
8988
|
+
exports.default = isEmpty;
|
|
8952
8989
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8953
8990
|
var _merge = _interopRequireDefault(mergeExports);
|
|
8954
8991
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8960,20 +8997,20 @@ var isEmpty = {exports: {}};
|
|
|
8960
8997
|
options = (0, _merge.default)(options, default_is_empty_options);
|
|
8961
8998
|
return (options.ignore_whitespace ? str.trim().length : str.length) === 0;
|
|
8962
8999
|
}
|
|
8963
|
-
module.exports = exports
|
|
8964
|
-
module.exports.default = exports
|
|
9000
|
+
module.exports = exports.default;
|
|
9001
|
+
module.exports.default = exports.default;
|
|
8965
9002
|
} (isEmpty, isEmpty.exports));
|
|
8966
9003
|
|
|
8967
9004
|
var isEmptyExports = isEmpty.exports;
|
|
8968
9005
|
|
|
8969
9006
|
var isLength = {exports: {}};
|
|
8970
9007
|
|
|
8971
|
-
(function (module, exports
|
|
9008
|
+
(function (module, exports) {
|
|
8972
9009
|
|
|
8973
|
-
Object.defineProperty(exports
|
|
9010
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8974
9011
|
value: true
|
|
8975
9012
|
});
|
|
8976
|
-
exports
|
|
9013
|
+
exports.default = isLength;
|
|
8977
9014
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
8978
9015
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8979
9016
|
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); }
|
|
@@ -9001,40 +9038,40 @@ var isLength = {exports: {}};
|
|
|
9001
9038
|
}
|
|
9002
9039
|
return isInsideRange;
|
|
9003
9040
|
}
|
|
9004
|
-
module.exports = exports
|
|
9005
|
-
module.exports.default = exports
|
|
9041
|
+
module.exports = exports.default;
|
|
9042
|
+
module.exports.default = exports.default;
|
|
9006
9043
|
} (isLength, isLength.exports));
|
|
9007
9044
|
|
|
9008
9045
|
var isLengthExports = isLength.exports;
|
|
9009
9046
|
|
|
9010
9047
|
var isULID = {exports: {}};
|
|
9011
9048
|
|
|
9012
|
-
(function (module, exports
|
|
9049
|
+
(function (module, exports) {
|
|
9013
9050
|
|
|
9014
|
-
Object.defineProperty(exports
|
|
9051
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9015
9052
|
value: true
|
|
9016
9053
|
});
|
|
9017
|
-
exports
|
|
9054
|
+
exports.default = isULID;
|
|
9018
9055
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9019
9056
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9020
9057
|
function isULID(str) {
|
|
9021
9058
|
(0, _assertString.default)(str);
|
|
9022
9059
|
return /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i.test(str);
|
|
9023
9060
|
}
|
|
9024
|
-
module.exports = exports
|
|
9025
|
-
module.exports.default = exports
|
|
9061
|
+
module.exports = exports.default;
|
|
9062
|
+
module.exports.default = exports.default;
|
|
9026
9063
|
} (isULID, isULID.exports));
|
|
9027
9064
|
|
|
9028
9065
|
var isULIDExports = isULID.exports;
|
|
9029
9066
|
|
|
9030
9067
|
var isUUID = {exports: {}};
|
|
9031
9068
|
|
|
9032
|
-
(function (module, exports
|
|
9069
|
+
(function (module, exports) {
|
|
9033
9070
|
|
|
9034
|
-
Object.defineProperty(exports
|
|
9071
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9035
9072
|
value: true
|
|
9036
9073
|
});
|
|
9037
|
-
exports
|
|
9074
|
+
exports.default = isUUID;
|
|
9038
9075
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9039
9076
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9040
9077
|
var uuid = {
|
|
@@ -9059,20 +9096,20 @@ var isUUID = {exports: {}};
|
|
|
9059
9096
|
}
|
|
9060
9097
|
return version in uuid ? uuid[version].test(str) : false;
|
|
9061
9098
|
}
|
|
9062
|
-
module.exports = exports
|
|
9063
|
-
module.exports.default = exports
|
|
9099
|
+
module.exports = exports.default;
|
|
9100
|
+
module.exports.default = exports.default;
|
|
9064
9101
|
} (isUUID, isUUID.exports));
|
|
9065
9102
|
|
|
9066
9103
|
var isUUIDExports = isUUID.exports;
|
|
9067
9104
|
|
|
9068
9105
|
var isMongoId = {exports: {}};
|
|
9069
9106
|
|
|
9070
|
-
(function (module, exports
|
|
9107
|
+
(function (module, exports) {
|
|
9071
9108
|
|
|
9072
|
-
Object.defineProperty(exports
|
|
9109
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9073
9110
|
value: true
|
|
9074
9111
|
});
|
|
9075
|
-
exports
|
|
9112
|
+
exports.default = isMongoId;
|
|
9076
9113
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9077
9114
|
var _isHexadecimal = _interopRequireDefault(isHexadecimalExports);
|
|
9078
9115
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -9080,20 +9117,20 @@ var isMongoId = {exports: {}};
|
|
|
9080
9117
|
(0, _assertString.default)(str);
|
|
9081
9118
|
return (0, _isHexadecimal.default)(str) && str.length === 24;
|
|
9082
9119
|
}
|
|
9083
|
-
module.exports = exports
|
|
9084
|
-
module.exports.default = exports
|
|
9120
|
+
module.exports = exports.default;
|
|
9121
|
+
module.exports.default = exports.default;
|
|
9085
9122
|
} (isMongoId, isMongoId.exports));
|
|
9086
9123
|
|
|
9087
9124
|
var isMongoIdExports = isMongoId.exports;
|
|
9088
9125
|
|
|
9089
9126
|
var isAfter = {exports: {}};
|
|
9090
9127
|
|
|
9091
|
-
(function (module, exports
|
|
9128
|
+
(function (module, exports) {
|
|
9092
9129
|
|
|
9093
|
-
Object.defineProperty(exports
|
|
9130
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9094
9131
|
value: true
|
|
9095
9132
|
});
|
|
9096
|
-
exports
|
|
9133
|
+
exports.default = isAfter;
|
|
9097
9134
|
var _toDate = _interopRequireDefault(toDateExports);
|
|
9098
9135
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9099
9136
|
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); }
|
|
@@ -9105,20 +9142,20 @@ var isAfter = {exports: {}};
|
|
|
9105
9142
|
var original = (0, _toDate.default)(date);
|
|
9106
9143
|
return !!(original && comparison && original > comparison);
|
|
9107
9144
|
}
|
|
9108
|
-
module.exports = exports
|
|
9109
|
-
module.exports.default = exports
|
|
9145
|
+
module.exports = exports.default;
|
|
9146
|
+
module.exports.default = exports.default;
|
|
9110
9147
|
} (isAfter, isAfter.exports));
|
|
9111
9148
|
|
|
9112
9149
|
var isAfterExports = isAfter.exports;
|
|
9113
9150
|
|
|
9114
9151
|
var isBefore = {exports: {}};
|
|
9115
9152
|
|
|
9116
|
-
(function (module, exports
|
|
9153
|
+
(function (module, exports) {
|
|
9117
9154
|
|
|
9118
|
-
Object.defineProperty(exports
|
|
9155
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9119
9156
|
value: true
|
|
9120
9157
|
});
|
|
9121
|
-
exports
|
|
9158
|
+
exports.default = isBefore;
|
|
9122
9159
|
var _toDate = _interopRequireDefault(toDateExports);
|
|
9123
9160
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9124
9161
|
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); }
|
|
@@ -9130,20 +9167,20 @@ var isBefore = {exports: {}};
|
|
|
9130
9167
|
var original = (0, _toDate.default)(date);
|
|
9131
9168
|
return !!(original && comparison && original < comparison);
|
|
9132
9169
|
}
|
|
9133
|
-
module.exports = exports
|
|
9134
|
-
module.exports.default = exports
|
|
9170
|
+
module.exports = exports.default;
|
|
9171
|
+
module.exports.default = exports.default;
|
|
9135
9172
|
} (isBefore, isBefore.exports));
|
|
9136
9173
|
|
|
9137
9174
|
var isBeforeExports = isBefore.exports;
|
|
9138
9175
|
|
|
9139
9176
|
var isIn = {exports: {}};
|
|
9140
9177
|
|
|
9141
|
-
(function (module, exports
|
|
9178
|
+
(function (module, exports) {
|
|
9142
9179
|
|
|
9143
|
-
Object.defineProperty(exports
|
|
9180
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9144
9181
|
value: true
|
|
9145
9182
|
});
|
|
9146
|
-
exports
|
|
9183
|
+
exports.default = isIn;
|
|
9147
9184
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9148
9185
|
var _toString = _interopRequireDefault(toStringExports);
|
|
9149
9186
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -9168,20 +9205,20 @@ var isIn = {exports: {}};
|
|
|
9168
9205
|
}
|
|
9169
9206
|
return false;
|
|
9170
9207
|
}
|
|
9171
|
-
module.exports = exports
|
|
9172
|
-
module.exports.default = exports
|
|
9208
|
+
module.exports = exports.default;
|
|
9209
|
+
module.exports.default = exports.default;
|
|
9173
9210
|
} (isIn, isIn.exports));
|
|
9174
9211
|
|
|
9175
9212
|
var isInExports = isIn.exports;
|
|
9176
9213
|
|
|
9177
9214
|
var isLuhnNumber = {exports: {}};
|
|
9178
9215
|
|
|
9179
|
-
(function (module, exports
|
|
9216
|
+
(function (module, exports) {
|
|
9180
9217
|
|
|
9181
|
-
Object.defineProperty(exports
|
|
9218
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9182
9219
|
value: true
|
|
9183
9220
|
});
|
|
9184
|
-
exports
|
|
9221
|
+
exports.default = isLuhnNumber;
|
|
9185
9222
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9186
9223
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9187
9224
|
function isLuhnNumber(str) {
|
|
@@ -9208,20 +9245,20 @@ var isLuhnNumber = {exports: {}};
|
|
|
9208
9245
|
}
|
|
9209
9246
|
return !!(sum % 10 === 0 ? sanitized : false);
|
|
9210
9247
|
}
|
|
9211
|
-
module.exports = exports
|
|
9212
|
-
module.exports.default = exports
|
|
9248
|
+
module.exports = exports.default;
|
|
9249
|
+
module.exports.default = exports.default;
|
|
9213
9250
|
} (isLuhnNumber, isLuhnNumber.exports));
|
|
9214
9251
|
|
|
9215
9252
|
var isLuhnNumberExports = isLuhnNumber.exports;
|
|
9216
9253
|
|
|
9217
9254
|
var isCreditCard = {exports: {}};
|
|
9218
9255
|
|
|
9219
|
-
(function (module, exports
|
|
9256
|
+
(function (module, exports) {
|
|
9220
9257
|
|
|
9221
|
-
Object.defineProperty(exports
|
|
9258
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9222
9259
|
value: true
|
|
9223
9260
|
});
|
|
9224
|
-
exports
|
|
9261
|
+
exports.default = isCreditCard;
|
|
9225
9262
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9226
9263
|
var _isLuhnNumber = _interopRequireDefault(isLuhnNumberExports);
|
|
9227
9264
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -9266,20 +9303,20 @@ var isCreditCard = {exports: {}};
|
|
|
9266
9303
|
}
|
|
9267
9304
|
return (0, _isLuhnNumber.default)(card);
|
|
9268
9305
|
}
|
|
9269
|
-
module.exports = exports
|
|
9270
|
-
module.exports.default = exports
|
|
9306
|
+
module.exports = exports.default;
|
|
9307
|
+
module.exports.default = exports.default;
|
|
9271
9308
|
} (isCreditCard, isCreditCard.exports));
|
|
9272
9309
|
|
|
9273
9310
|
var isCreditCardExports = isCreditCard.exports;
|
|
9274
9311
|
|
|
9275
9312
|
var isIdentityCard = {exports: {}};
|
|
9276
9313
|
|
|
9277
|
-
(function (module, exports
|
|
9314
|
+
(function (module, exports) {
|
|
9278
9315
|
|
|
9279
|
-
Object.defineProperty(exports
|
|
9316
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9280
9317
|
value: true
|
|
9281
9318
|
});
|
|
9282
|
-
exports
|
|
9319
|
+
exports.default = isIdentityCard;
|
|
9283
9320
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9284
9321
|
var _includesArray = _interopRequireDefault(includesArrayExports);
|
|
9285
9322
|
var _isInt = _interopRequireDefault(isIntExports);
|
|
@@ -9448,24 +9485,14 @@ var isIdentityCard = {exports: {}};
|
|
|
9448
9485
|
|
|
9449
9486
|
// sanitize user input
|
|
9450
9487
|
var sanitized = str.trim();
|
|
9451
|
-
|
|
9452
|
-
// validate the data structure
|
|
9453
|
-
if (!NIN.test(sanitized)) {
|
|
9454
|
-
return false;
|
|
9455
|
-
}
|
|
9456
|
-
return true;
|
|
9488
|
+
return NIN.test(sanitized);
|
|
9457
9489
|
},
|
|
9458
9490
|
'ar-TN': function arTN(str) {
|
|
9459
9491
|
var DNI = /^\d{8}$/;
|
|
9460
9492
|
|
|
9461
9493
|
// sanitize user input
|
|
9462
9494
|
var sanitized = str.trim();
|
|
9463
|
-
|
|
9464
|
-
// validate the data structure
|
|
9465
|
-
if (!DNI.test(sanitized)) {
|
|
9466
|
-
return false;
|
|
9467
|
-
}
|
|
9468
|
-
return true;
|
|
9495
|
+
return DNI.test(sanitized);
|
|
9469
9496
|
},
|
|
9470
9497
|
'zh-CN': function zhCN(str) {
|
|
9471
9498
|
var provincesAndCities = ['11',
|
|
@@ -9698,20 +9725,20 @@ var isIdentityCard = {exports: {}};
|
|
|
9698
9725
|
}
|
|
9699
9726
|
throw new Error("Invalid locale '".concat(locale, "'"));
|
|
9700
9727
|
}
|
|
9701
|
-
module.exports = exports
|
|
9702
|
-
module.exports.default = exports
|
|
9728
|
+
module.exports = exports.default;
|
|
9729
|
+
module.exports.default = exports.default;
|
|
9703
9730
|
} (isIdentityCard, isIdentityCard.exports));
|
|
9704
9731
|
|
|
9705
9732
|
var isIdentityCardExports = isIdentityCard.exports;
|
|
9706
9733
|
|
|
9707
9734
|
var isEAN = {exports: {}};
|
|
9708
9735
|
|
|
9709
|
-
(function (module, exports
|
|
9736
|
+
(function (module, exports) {
|
|
9710
9737
|
|
|
9711
|
-
Object.defineProperty(exports
|
|
9738
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9712
9739
|
value: true
|
|
9713
9740
|
});
|
|
9714
|
-
exports
|
|
9741
|
+
exports.default = isEAN;
|
|
9715
9742
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9716
9743
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9717
9744
|
/**
|
|
@@ -9782,20 +9809,20 @@ var isEAN = {exports: {}};
|
|
|
9782
9809
|
var actualCheckDigit = Number(str.slice(-1));
|
|
9783
9810
|
return validEanRegex.test(str) && actualCheckDigit === calculateCheckDigit(str);
|
|
9784
9811
|
}
|
|
9785
|
-
module.exports = exports
|
|
9786
|
-
module.exports.default = exports
|
|
9812
|
+
module.exports = exports.default;
|
|
9813
|
+
module.exports.default = exports.default;
|
|
9787
9814
|
} (isEAN, isEAN.exports));
|
|
9788
9815
|
|
|
9789
9816
|
var isEANExports = isEAN.exports;
|
|
9790
9817
|
|
|
9791
9818
|
var isISIN = {exports: {}};
|
|
9792
9819
|
|
|
9793
|
-
(function (module, exports
|
|
9820
|
+
(function (module, exports) {
|
|
9794
9821
|
|
|
9795
|
-
Object.defineProperty(exports
|
|
9822
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9796
9823
|
value: true
|
|
9797
9824
|
});
|
|
9798
|
-
exports
|
|
9825
|
+
exports.default = isISIN;
|
|
9799
9826
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9800
9827
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9801
9828
|
var isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;
|
|
@@ -9852,20 +9879,20 @@ var isISIN = {exports: {}};
|
|
|
9852
9879
|
var check = Math.trunc((sum + 9) / 10) * 10 - sum;
|
|
9853
9880
|
return +str[str.length - 1] === check;
|
|
9854
9881
|
}
|
|
9855
|
-
module.exports = exports
|
|
9856
|
-
module.exports.default = exports
|
|
9882
|
+
module.exports = exports.default;
|
|
9883
|
+
module.exports.default = exports.default;
|
|
9857
9884
|
} (isISIN, isISIN.exports));
|
|
9858
9885
|
|
|
9859
9886
|
var isISINExports = isISIN.exports;
|
|
9860
9887
|
|
|
9861
9888
|
var isISBN = {exports: {}};
|
|
9862
9889
|
|
|
9863
|
-
(function (module, exports
|
|
9890
|
+
(function (module, exports) {
|
|
9864
9891
|
|
|
9865
|
-
Object.defineProperty(exports
|
|
9892
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9866
9893
|
value: true
|
|
9867
9894
|
});
|
|
9868
|
-
exports
|
|
9895
|
+
exports.default = isISBN;
|
|
9869
9896
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9870
9897
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9871
9898
|
var possibleIsbn10 = /^(?:[0-9]{9}X|[0-9]{10})$/;
|
|
@@ -9914,20 +9941,20 @@ var isISBN = {exports: {}};
|
|
|
9914
9941
|
}
|
|
9915
9942
|
return false;
|
|
9916
9943
|
}
|
|
9917
|
-
module.exports = exports
|
|
9918
|
-
module.exports.default = exports
|
|
9944
|
+
module.exports = exports.default;
|
|
9945
|
+
module.exports.default = exports.default;
|
|
9919
9946
|
} (isISBN, isISBN.exports));
|
|
9920
9947
|
|
|
9921
9948
|
var isISBNExports = isISBN.exports;
|
|
9922
9949
|
|
|
9923
9950
|
var isISSN = {exports: {}};
|
|
9924
9951
|
|
|
9925
|
-
(function (module, exports
|
|
9952
|
+
(function (module, exports) {
|
|
9926
9953
|
|
|
9927
|
-
Object.defineProperty(exports
|
|
9954
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9928
9955
|
value: true
|
|
9929
9956
|
});
|
|
9930
|
-
exports
|
|
9957
|
+
exports.default = isISSN;
|
|
9931
9958
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
9932
9959
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9933
9960
|
var issn = '^\\d{4}-?\\d{3}[\\dX]$';
|
|
@@ -9948,8 +9975,8 @@ var isISSN = {exports: {}};
|
|
|
9948
9975
|
}
|
|
9949
9976
|
return checksum % 11 === 0;
|
|
9950
9977
|
}
|
|
9951
|
-
module.exports = exports
|
|
9952
|
-
module.exports.default = exports
|
|
9978
|
+
module.exports = exports.default;
|
|
9979
|
+
module.exports.default = exports.default;
|
|
9953
9980
|
} (isISSN, isISSN.exports));
|
|
9954
9981
|
|
|
9955
9982
|
var isISSNExports = isISSN.exports;
|
|
@@ -10045,13 +10072,13 @@ function verhoeffCheck(str) {
|
|
|
10045
10072
|
return checksum === 0;
|
|
10046
10073
|
}
|
|
10047
10074
|
|
|
10048
|
-
(function (module, exports
|
|
10075
|
+
(function (module, exports) {
|
|
10049
10076
|
|
|
10050
10077
|
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); }
|
|
10051
|
-
Object.defineProperty(exports
|
|
10078
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10052
10079
|
value: true
|
|
10053
10080
|
});
|
|
10054
|
-
exports
|
|
10081
|
+
exports.default = isTaxID;
|
|
10055
10082
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
10056
10083
|
var algorithms = _interopRequireWildcard(algorithms$1);
|
|
10057
10084
|
var _isDate = _interopRequireDefault(isDateExports);
|
|
@@ -11045,68 +11072,87 @@ function verhoeffCheck(str) {
|
|
|
11045
11072
|
}
|
|
11046
11073
|
|
|
11047
11074
|
/*
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11075
|
+
* pt-BR validation function
|
|
11076
|
+
* (Cadastro de Pessoas Físicas (CPF, persons)
|
|
11077
|
+
* Cadastro Nacional de Pessoas Jurídicas (CNPJ, entities)
|
|
11078
|
+
* Both inputs will be validated.
|
|
11079
|
+
* CPF accepts formatted (XXX.XXX.XXX-XX) and unformatted input;
|
|
11080
|
+
* formatting is stripped before validation.
|
|
11081
|
+
* CNPJ supports both numeric (legacy) and alphanumeric format (starting July 2026).
|
|
11082
|
+
*/
|
|
11083
|
+
|
|
11084
|
+
/**
|
|
11085
|
+
* Convert a CNPJ character to its numeric value for check digit calculation.
|
|
11086
|
+
* Numbers 0-9 map to values 0-9, letters A-Z map to values 17-42.
|
|
11087
|
+
* This is done by subtracting 48 from the ASCII code.
|
|
11088
|
+
*/
|
|
11089
|
+
function cnpjCharToValue(char) {
|
|
11090
|
+
return char.charCodeAt(0) - 48;
|
|
11091
|
+
}
|
|
11092
|
+
|
|
11093
|
+
/**
|
|
11094
|
+
* Validate CNPJ (both numeric and alphanumeric formats).
|
|
11095
|
+
* Algorithm: module 11 with weights 2-9 from right to left.
|
|
11096
|
+
*/
|
|
11097
|
+
function validateCnpj(cnpj) {
|
|
11098
|
+
// Get the 12 identifier characters and 2 check digits
|
|
11099
|
+
var identifiers = cnpj.substring(0, 12).toUpperCase();
|
|
11100
|
+
var checkDigits = cnpj.substring(12);
|
|
11053
11101
|
|
|
11102
|
+
// Reject CNPJs with all same characters (e.g., '00000000000000', 'AAAAAAAAAAAAAA')
|
|
11103
|
+
if (/^(.)\1+$/.test(cnpj.toUpperCase())) {
|
|
11104
|
+
return false;
|
|
11105
|
+
}
|
|
11106
|
+
|
|
11107
|
+
// Calculate first check digit
|
|
11108
|
+
var sum = 0;
|
|
11109
|
+
var weight = 5;
|
|
11110
|
+
for (var i = 0; i < 12; i++) {
|
|
11111
|
+
sum += cnpjCharToValue(identifiers.charAt(i)) * weight;
|
|
11112
|
+
weight = weight === 2 ? 9 : weight - 1;
|
|
11113
|
+
}
|
|
11114
|
+
var remainder = sum % 11;
|
|
11115
|
+
var firstDV = remainder < 2 ? 0 : 11 - remainder;
|
|
11116
|
+
if (firstDV !== parseInt(checkDigits.charAt(0), 10)) {
|
|
11117
|
+
return false;
|
|
11118
|
+
}
|
|
11119
|
+
|
|
11120
|
+
// Calculate second check digit (includes first check digit)
|
|
11121
|
+
sum = 0;
|
|
11122
|
+
weight = 6;
|
|
11123
|
+
for (var _i8 = 0; _i8 < 12; _i8++) {
|
|
11124
|
+
sum += cnpjCharToValue(identifiers.charAt(_i8)) * weight;
|
|
11125
|
+
weight = weight === 2 ? 9 : weight - 1;
|
|
11126
|
+
}
|
|
11127
|
+
sum += firstDV * 2;
|
|
11128
|
+
remainder = sum % 11;
|
|
11129
|
+
var secondDV = remainder < 2 ? 0 : 11 - remainder;
|
|
11130
|
+
return secondDV === parseInt(checkDigits.charAt(1), 10);
|
|
11131
|
+
}
|
|
11054
11132
|
function ptBrCheck(tin) {
|
|
11133
|
+
// Strip CPF formatting (XXX.XXX.XXX-XX)
|
|
11134
|
+
tin = tin.replace(/[.\-/]/g, '');
|
|
11055
11135
|
if (tin.length === 11) {
|
|
11056
|
-
var
|
|
11136
|
+
var sum;
|
|
11057
11137
|
var remainder;
|
|
11058
|
-
|
|
11138
|
+
sum = 0;
|
|
11059
11139
|
if (
|
|
11060
11140
|
// Reject known invalid CPFs
|
|
11061
11141
|
tin === '11111111111' || tin === '22222222222' || tin === '33333333333' || tin === '44444444444' || tin === '55555555555' || tin === '66666666666' || tin === '77777777777' || tin === '88888888888' || tin === '99999999999' || tin === '00000000000') return false;
|
|
11062
|
-
for (var i = 1; i <= 9; i++)
|
|
11063
|
-
remainder =
|
|
11142
|
+
for (var i = 1; i <= 9; i++) sum += parseInt(tin.substring(i - 1, i), 10) * (11 - i);
|
|
11143
|
+
remainder = sum * 10 % 11;
|
|
11064
11144
|
if (remainder === 10) remainder = 0;
|
|
11065
11145
|
if (remainder !== parseInt(tin.substring(9, 10), 10)) return false;
|
|
11066
|
-
|
|
11067
|
-
for (var
|
|
11068
|
-
remainder =
|
|
11146
|
+
sum = 0;
|
|
11147
|
+
for (var _i9 = 1; _i9 <= 10; _i9++) sum += parseInt(tin.substring(_i9 - 1, _i9), 10) * (12 - _i9);
|
|
11148
|
+
remainder = sum * 10 % 11;
|
|
11069
11149
|
if (remainder === 10) remainder = 0;
|
|
11070
11150
|
if (remainder !== parseInt(tin.substring(10, 11), 10)) return false;
|
|
11071
11151
|
return true;
|
|
11072
11152
|
}
|
|
11073
|
-
|
|
11074
|
-
//
|
|
11075
|
-
|
|
11076
|
-
return false;
|
|
11077
|
-
}
|
|
11078
|
-
var length = tin.length - 2;
|
|
11079
|
-
var identifiers = tin.substring(0, length);
|
|
11080
|
-
var verificators = tin.substring(length);
|
|
11081
|
-
var sum = 0;
|
|
11082
|
-
var pos = length - 7;
|
|
11083
|
-
for (var _i9 = length; _i9 >= 1; _i9--) {
|
|
11084
|
-
sum += identifiers.charAt(length - _i9) * pos;
|
|
11085
|
-
pos -= 1;
|
|
11086
|
-
if (pos < 2) {
|
|
11087
|
-
pos = 9;
|
|
11088
|
-
}
|
|
11089
|
-
}
|
|
11090
|
-
var result = sum % 11 < 2 ? 0 : 11 - sum % 11;
|
|
11091
|
-
if (result !== parseInt(verificators.charAt(0), 10)) {
|
|
11092
|
-
return false;
|
|
11093
|
-
}
|
|
11094
|
-
length += 1;
|
|
11095
|
-
identifiers = tin.substring(0, length);
|
|
11096
|
-
sum = 0;
|
|
11097
|
-
pos = length - 7;
|
|
11098
|
-
for (var _i0 = length; _i0 >= 1; _i0--) {
|
|
11099
|
-
sum += identifiers.charAt(length - _i0) * pos;
|
|
11100
|
-
pos -= 1;
|
|
11101
|
-
if (pos < 2) {
|
|
11102
|
-
pos = 9;
|
|
11103
|
-
}
|
|
11104
|
-
}
|
|
11105
|
-
result = sum % 11 < 2 ? 0 : 11 - sum % 11;
|
|
11106
|
-
if (result !== parseInt(verificators.charAt(1), 10)) {
|
|
11107
|
-
return false;
|
|
11108
|
-
}
|
|
11109
|
-
return true;
|
|
11153
|
+
|
|
11154
|
+
// CNPJ validation (supports both numeric and alphanumeric formats)
|
|
11155
|
+
return validateCnpj(tin);
|
|
11110
11156
|
}
|
|
11111
11157
|
|
|
11112
11158
|
/*
|
|
@@ -11349,7 +11395,7 @@ function verhoeffCheck(str) {
|
|
|
11349
11395
|
'mt-MT': /^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,
|
|
11350
11396
|
'nl-NL': /^\d{9}$/,
|
|
11351
11397
|
'pl-PL': /^\d{10,11}$/,
|
|
11352
|
-
'pt-BR': /(?:^\d{
|
|
11398
|
+
'pt-BR': /(?:^\d{3}\.\d{3}\.\d{3}-\d{2}$)|(?:^\d{11}$)|(?:^[A-Z0-9]{12}\d{2}$)/i,
|
|
11353
11399
|
'pt-PT': /^\d{9}$/,
|
|
11354
11400
|
'ro-RO': /^\d{13}$/,
|
|
11355
11401
|
'sk-SK': /^\d{6}\/{0,1}\d{3,4}$/,
|
|
@@ -11439,8 +11485,8 @@ function verhoeffCheck(str) {
|
|
|
11439
11485
|
}
|
|
11440
11486
|
throw new Error("Invalid locale '".concat(locale, "'"));
|
|
11441
11487
|
}
|
|
11442
|
-
module.exports = exports
|
|
11443
|
-
module.exports.default = exports
|
|
11488
|
+
module.exports = exports.default;
|
|
11489
|
+
module.exports.default = exports.default;
|
|
11444
11490
|
} (isTaxID, isTaxID.exports));
|
|
11445
11491
|
|
|
11446
11492
|
var isTaxIDExports = isTaxID.exports;
|
|
@@ -11556,6 +11602,7 @@ var phones = {
|
|
|
11556
11602
|
'fr-BJ': /^(\+229)\d{8}$/,
|
|
11557
11603
|
'fr-CD': /^(\+?243|0)?(8|9)\d{8}$/,
|
|
11558
11604
|
'fr-CM': /^(\+?237)6[0-9]{8}$/,
|
|
11605
|
+
'fr-DJ': /^(?:\+253)?77[6-8]\d{5}$/,
|
|
11559
11606
|
'fr-FR': /^(\+?33|0)[67]\d{8}$/,
|
|
11560
11607
|
'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/,
|
|
11561
11608
|
'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/,
|
|
@@ -11666,12 +11713,12 @@ isMobilePhone$1.locales = Object.keys(phones);
|
|
|
11666
11713
|
|
|
11667
11714
|
var isEthereumAddress = {exports: {}};
|
|
11668
11715
|
|
|
11669
|
-
(function (module, exports
|
|
11716
|
+
(function (module, exports) {
|
|
11670
11717
|
|
|
11671
|
-
Object.defineProperty(exports
|
|
11718
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11672
11719
|
value: true
|
|
11673
11720
|
});
|
|
11674
|
-
exports
|
|
11721
|
+
exports.default = isEthereumAddress;
|
|
11675
11722
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11676
11723
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11677
11724
|
var eth = /^(0x)[0-9a-f]{40}$/i;
|
|
@@ -11679,20 +11726,20 @@ var isEthereumAddress = {exports: {}};
|
|
|
11679
11726
|
(0, _assertString.default)(str);
|
|
11680
11727
|
return eth.test(str);
|
|
11681
11728
|
}
|
|
11682
|
-
module.exports = exports
|
|
11683
|
-
module.exports.default = exports
|
|
11729
|
+
module.exports = exports.default;
|
|
11730
|
+
module.exports.default = exports.default;
|
|
11684
11731
|
} (isEthereumAddress, isEthereumAddress.exports));
|
|
11685
11732
|
|
|
11686
11733
|
var isEthereumAddressExports = isEthereumAddress.exports;
|
|
11687
11734
|
|
|
11688
11735
|
var isCurrency = {exports: {}};
|
|
11689
11736
|
|
|
11690
|
-
(function (module, exports
|
|
11737
|
+
(function (module, exports) {
|
|
11691
11738
|
|
|
11692
|
-
Object.defineProperty(exports
|
|
11739
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11693
11740
|
value: true
|
|
11694
11741
|
});
|
|
11695
|
-
exports
|
|
11742
|
+
exports.default = isCurrency;
|
|
11696
11743
|
var _merge = _interopRequireDefault(mergeExports);
|
|
11697
11744
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11698
11745
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -11768,20 +11815,20 @@ var isCurrency = {exports: {}};
|
|
|
11768
11815
|
options = (0, _merge.default)(options, default_currency_options);
|
|
11769
11816
|
return currencyRegex(options).test(str);
|
|
11770
11817
|
}
|
|
11771
|
-
module.exports = exports
|
|
11772
|
-
module.exports.default = exports
|
|
11818
|
+
module.exports = exports.default;
|
|
11819
|
+
module.exports.default = exports.default;
|
|
11773
11820
|
} (isCurrency, isCurrency.exports));
|
|
11774
11821
|
|
|
11775
11822
|
var isCurrencyExports = isCurrency.exports;
|
|
11776
11823
|
|
|
11777
11824
|
var isBtcAddress = {exports: {}};
|
|
11778
11825
|
|
|
11779
|
-
(function (module, exports
|
|
11826
|
+
(function (module, exports) {
|
|
11780
11827
|
|
|
11781
|
-
Object.defineProperty(exports
|
|
11828
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11782
11829
|
value: true
|
|
11783
11830
|
});
|
|
11784
|
-
exports
|
|
11831
|
+
exports.default = isBtcAddress;
|
|
11785
11832
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11786
11833
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11787
11834
|
var bech32 = /^(bc1|tb1|bc1p|tb1p)[ac-hj-np-z02-9]{39,58}$/;
|
|
@@ -11790,8 +11837,8 @@ var isBtcAddress = {exports: {}};
|
|
|
11790
11837
|
(0, _assertString.default)(str);
|
|
11791
11838
|
return bech32.test(str) || base58.test(str);
|
|
11792
11839
|
}
|
|
11793
|
-
module.exports = exports
|
|
11794
|
-
module.exports.default = exports
|
|
11840
|
+
module.exports = exports.default;
|
|
11841
|
+
module.exports.default = exports.default;
|
|
11795
11842
|
} (isBtcAddress, isBtcAddress.exports));
|
|
11796
11843
|
|
|
11797
11844
|
var isBtcAddressExports = isBtcAddress.exports;
|
|
@@ -11834,12 +11881,12 @@ isISO6346$1.isFreightContainerID = isISO6346;
|
|
|
11834
11881
|
|
|
11835
11882
|
var isISO6391 = {exports: {}};
|
|
11836
11883
|
|
|
11837
|
-
(function (module, exports
|
|
11884
|
+
(function (module, exports) {
|
|
11838
11885
|
|
|
11839
|
-
Object.defineProperty(exports
|
|
11886
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11840
11887
|
value: true
|
|
11841
11888
|
});
|
|
11842
|
-
exports
|
|
11889
|
+
exports.default = isISO6391;
|
|
11843
11890
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11844
11891
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11845
11892
|
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']);
|
|
@@ -11847,20 +11894,20 @@ var isISO6391 = {exports: {}};
|
|
|
11847
11894
|
(0, _assertString.default)(str);
|
|
11848
11895
|
return isISO6391Set.has(str);
|
|
11849
11896
|
}
|
|
11850
|
-
module.exports = exports
|
|
11851
|
-
module.exports.default = exports
|
|
11897
|
+
module.exports = exports.default;
|
|
11898
|
+
module.exports.default = exports.default;
|
|
11852
11899
|
} (isISO6391, isISO6391.exports));
|
|
11853
11900
|
|
|
11854
11901
|
var isISO6391Exports = isISO6391.exports;
|
|
11855
11902
|
|
|
11856
11903
|
var isISO8601 = {exports: {}};
|
|
11857
11904
|
|
|
11858
|
-
(function (module, exports
|
|
11905
|
+
(function (module, exports) {
|
|
11859
11906
|
|
|
11860
|
-
Object.defineProperty(exports
|
|
11907
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11861
11908
|
value: true
|
|
11862
11909
|
});
|
|
11863
|
-
exports
|
|
11910
|
+
exports.default = isISO8601;
|
|
11864
11911
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11865
11912
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11866
11913
|
/* eslint-disable max-len */
|
|
@@ -11903,20 +11950,20 @@ var isISO8601 = {exports: {}};
|
|
|
11903
11950
|
if (check && options.strict) return isValidDate(str);
|
|
11904
11951
|
return check;
|
|
11905
11952
|
}
|
|
11906
|
-
module.exports = exports
|
|
11907
|
-
module.exports.default = exports
|
|
11953
|
+
module.exports = exports.default;
|
|
11954
|
+
module.exports.default = exports.default;
|
|
11908
11955
|
} (isISO8601, isISO8601.exports));
|
|
11909
11956
|
|
|
11910
11957
|
var isISO8601Exports = isISO8601.exports;
|
|
11911
11958
|
|
|
11912
11959
|
var isRFC3339 = {exports: {}};
|
|
11913
11960
|
|
|
11914
|
-
(function (module, exports
|
|
11961
|
+
(function (module, exports) {
|
|
11915
11962
|
|
|
11916
|
-
Object.defineProperty(exports
|
|
11963
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11917
11964
|
value: true
|
|
11918
11965
|
});
|
|
11919
|
-
exports
|
|
11966
|
+
exports.default = isRFC3339;
|
|
11920
11967
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11921
11968
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11922
11969
|
/* Based on https://tools.ietf.org/html/rfc3339#section-5.6 */
|
|
@@ -11938,8 +11985,8 @@ var isRFC3339 = {exports: {}};
|
|
|
11938
11985
|
(0, _assertString.default)(str);
|
|
11939
11986
|
return rfc3339.test(str);
|
|
11940
11987
|
}
|
|
11941
|
-
module.exports = exports
|
|
11942
|
-
module.exports.default = exports
|
|
11988
|
+
module.exports = exports.default;
|
|
11989
|
+
module.exports.default = exports.default;
|
|
11943
11990
|
} (isRFC3339, isRFC3339.exports));
|
|
11944
11991
|
|
|
11945
11992
|
var isRFC3339Exports = isRFC3339.exports;
|
|
@@ -11963,34 +12010,46 @@ isISO15924$1.ScriptCodes = validISO15924Codes;
|
|
|
11963
12010
|
|
|
11964
12011
|
var isISO31661Alpha3 = {exports: {}};
|
|
11965
12012
|
|
|
11966
|
-
(function (module, exports
|
|
12013
|
+
(function (module, exports) {
|
|
11967
12014
|
|
|
11968
|
-
Object.defineProperty(exports
|
|
12015
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11969
12016
|
value: true
|
|
11970
12017
|
});
|
|
11971
|
-
exports
|
|
12018
|
+
exports.default = isISO31661Alpha3;
|
|
11972
12019
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11973
12020
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11974
12021
|
// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
|
|
11975
12022
|
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']);
|
|
12023
|
+
var alpha3CountryCode = /^[a-zA-Z]{3}$/;
|
|
11976
12024
|
function isISO31661Alpha3(str) {
|
|
12025
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
11977
12026
|
(0, _assertString.default)(str);
|
|
12027
|
+
var userAssignedCodes = options.userAssignedCodes;
|
|
12028
|
+
var validUserAssignedCodes = (userAssignedCodes || []).reduce(function (accumulator, userAssignedCode) {
|
|
12029
|
+
if (alpha3CountryCode.test(userAssignedCode)) {
|
|
12030
|
+
accumulator.push(userAssignedCode.toUpperCase());
|
|
12031
|
+
}
|
|
12032
|
+
return accumulator;
|
|
12033
|
+
}, []);
|
|
12034
|
+
if (validUserAssignedCodes.includes(str.toUpperCase())) {
|
|
12035
|
+
return true;
|
|
12036
|
+
}
|
|
11978
12037
|
return validISO31661Alpha3CountriesCodes.has(str.toUpperCase());
|
|
11979
12038
|
}
|
|
11980
|
-
module.exports = exports
|
|
11981
|
-
module.exports.default = exports
|
|
12039
|
+
module.exports = exports.default;
|
|
12040
|
+
module.exports.default = exports.default;
|
|
11982
12041
|
} (isISO31661Alpha3, isISO31661Alpha3.exports));
|
|
11983
12042
|
|
|
11984
12043
|
var isISO31661Alpha3Exports = isISO31661Alpha3.exports;
|
|
11985
12044
|
|
|
11986
12045
|
var isISO31661Numeric = {exports: {}};
|
|
11987
12046
|
|
|
11988
|
-
(function (module, exports
|
|
12047
|
+
(function (module, exports) {
|
|
11989
12048
|
|
|
11990
|
-
Object.defineProperty(exports
|
|
12049
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11991
12050
|
value: true
|
|
11992
12051
|
});
|
|
11993
|
-
exports
|
|
12052
|
+
exports.default = isISO31661Numeric;
|
|
11994
12053
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
11995
12054
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11996
12055
|
// from https://en.wikipedia.org/wiki/ISO_3166-1_numeric
|
|
@@ -11999,8 +12058,8 @@ var isISO31661Numeric = {exports: {}};
|
|
|
11999
12058
|
(0, _assertString.default)(str);
|
|
12000
12059
|
return validISO31661NumericCountriesCodes.has(str);
|
|
12001
12060
|
}
|
|
12002
|
-
module.exports = exports
|
|
12003
|
-
module.exports.default = exports
|
|
12061
|
+
module.exports = exports.default;
|
|
12062
|
+
module.exports.default = exports.default;
|
|
12004
12063
|
} (isISO31661Numeric, isISO31661Numeric.exports));
|
|
12005
12064
|
|
|
12006
12065
|
var isISO31661NumericExports = isISO31661Numeric.exports;
|
|
@@ -12024,12 +12083,12 @@ isISO4217$1.CurrencyCodes = validISO4217CurrencyCodes;
|
|
|
12024
12083
|
|
|
12025
12084
|
var isBase32 = {exports: {}};
|
|
12026
12085
|
|
|
12027
|
-
(function (module, exports
|
|
12086
|
+
(function (module, exports) {
|
|
12028
12087
|
|
|
12029
|
-
Object.defineProperty(exports
|
|
12088
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12030
12089
|
value: true
|
|
12031
12090
|
});
|
|
12032
|
-
exports
|
|
12091
|
+
exports.default = isBase32;
|
|
12033
12092
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12034
12093
|
var _merge = _interopRequireDefault(mergeExports);
|
|
12035
12094
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -12044,51 +12103,44 @@ var isBase32 = {exports: {}};
|
|
|
12044
12103
|
if (options.crockford) {
|
|
12045
12104
|
return crockfordBase32.test(str);
|
|
12046
12105
|
}
|
|
12047
|
-
|
|
12048
|
-
if (len % 8 === 0 && base32.test(str)) {
|
|
12049
|
-
return true;
|
|
12050
|
-
}
|
|
12051
|
-
return false;
|
|
12106
|
+
return str.length % 8 === 0 && base32.test(str);
|
|
12052
12107
|
}
|
|
12053
|
-
module.exports = exports
|
|
12054
|
-
module.exports.default = exports
|
|
12108
|
+
module.exports = exports.default;
|
|
12109
|
+
module.exports.default = exports.default;
|
|
12055
12110
|
} (isBase32, isBase32.exports));
|
|
12056
12111
|
|
|
12057
12112
|
var isBase32Exports = isBase32.exports;
|
|
12058
12113
|
|
|
12059
12114
|
var isBase58 = {exports: {}};
|
|
12060
12115
|
|
|
12061
|
-
(function (module, exports
|
|
12116
|
+
(function (module, exports) {
|
|
12062
12117
|
|
|
12063
|
-
Object.defineProperty(exports
|
|
12118
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12064
12119
|
value: true
|
|
12065
12120
|
});
|
|
12066
|
-
exports
|
|
12121
|
+
exports.default = isBase58;
|
|
12067
12122
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12068
12123
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12069
12124
|
// Accepted chars - 123456789ABCDEFGH JKLMN PQRSTUVWXYZabcdefghijk mnopqrstuvwxyz
|
|
12070
12125
|
var base58Reg = /^[A-HJ-NP-Za-km-z1-9]*$/;
|
|
12071
12126
|
function isBase58(str) {
|
|
12072
12127
|
(0, _assertString.default)(str);
|
|
12073
|
-
|
|
12074
|
-
return true;
|
|
12075
|
-
}
|
|
12076
|
-
return false;
|
|
12128
|
+
return base58Reg.test(str);
|
|
12077
12129
|
}
|
|
12078
|
-
module.exports = exports
|
|
12079
|
-
module.exports.default = exports
|
|
12130
|
+
module.exports = exports.default;
|
|
12131
|
+
module.exports.default = exports.default;
|
|
12080
12132
|
} (isBase58, isBase58.exports));
|
|
12081
12133
|
|
|
12082
12134
|
var isBase58Exports = isBase58.exports;
|
|
12083
12135
|
|
|
12084
12136
|
var isDataURI = {exports: {}};
|
|
12085
12137
|
|
|
12086
|
-
(function (module, exports
|
|
12138
|
+
(function (module, exports) {
|
|
12087
12139
|
|
|
12088
|
-
Object.defineProperty(exports
|
|
12140
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12089
12141
|
value: true
|
|
12090
12142
|
});
|
|
12091
|
-
exports
|
|
12143
|
+
exports.default = isDataURI;
|
|
12092
12144
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12093
12145
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12094
12146
|
var validMediaType = /^[a-z]+\/[a-z0-9\-\+\._]+$/i;
|
|
@@ -12121,20 +12173,20 @@ var isDataURI = {exports: {}};
|
|
|
12121
12173
|
}
|
|
12122
12174
|
return true;
|
|
12123
12175
|
}
|
|
12124
|
-
module.exports = exports
|
|
12125
|
-
module.exports.default = exports
|
|
12176
|
+
module.exports = exports.default;
|
|
12177
|
+
module.exports.default = exports.default;
|
|
12126
12178
|
} (isDataURI, isDataURI.exports));
|
|
12127
12179
|
|
|
12128
12180
|
var isDataURIExports = isDataURI.exports;
|
|
12129
12181
|
|
|
12130
12182
|
var isMagnetURI = {exports: {}};
|
|
12131
12183
|
|
|
12132
|
-
(function (module, exports
|
|
12184
|
+
(function (module, exports) {
|
|
12133
12185
|
|
|
12134
|
-
Object.defineProperty(exports
|
|
12186
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12135
12187
|
value: true
|
|
12136
12188
|
});
|
|
12137
|
-
exports
|
|
12189
|
+
exports.default = isMagnetURI;
|
|
12138
12190
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12139
12191
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12140
12192
|
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;
|
|
@@ -12145,8 +12197,8 @@ var isMagnetURI = {exports: {}};
|
|
|
12145
12197
|
}
|
|
12146
12198
|
return magnetURIComponent.test(url);
|
|
12147
12199
|
}
|
|
12148
|
-
module.exports = exports
|
|
12149
|
-
module.exports.default = exports
|
|
12200
|
+
module.exports = exports.default;
|
|
12201
|
+
module.exports.default = exports.default;
|
|
12150
12202
|
} (isMagnetURI, isMagnetURI.exports));
|
|
12151
12203
|
|
|
12152
12204
|
var isMagnetURIExports = isMagnetURI.exports;
|
|
@@ -12157,12 +12209,12 @@ var trim = {exports: {}};
|
|
|
12157
12209
|
|
|
12158
12210
|
var rtrim = {exports: {}};
|
|
12159
12211
|
|
|
12160
|
-
(function (module, exports
|
|
12212
|
+
(function (module, exports) {
|
|
12161
12213
|
|
|
12162
|
-
Object.defineProperty(exports
|
|
12214
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12163
12215
|
value: true
|
|
12164
12216
|
});
|
|
12165
|
-
exports
|
|
12217
|
+
exports.default = rtrim;
|
|
12166
12218
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12167
12219
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12168
12220
|
function rtrim(str, chars) {
|
|
@@ -12179,20 +12231,20 @@ var rtrim = {exports: {}};
|
|
|
12179
12231
|
}
|
|
12180
12232
|
return str.slice(0, strIndex + 1);
|
|
12181
12233
|
}
|
|
12182
|
-
module.exports = exports
|
|
12183
|
-
module.exports.default = exports
|
|
12234
|
+
module.exports = exports.default;
|
|
12235
|
+
module.exports.default = exports.default;
|
|
12184
12236
|
} (rtrim, rtrim.exports));
|
|
12185
12237
|
|
|
12186
12238
|
var rtrimExports = rtrim.exports;
|
|
12187
12239
|
|
|
12188
12240
|
var ltrim = {exports: {}};
|
|
12189
12241
|
|
|
12190
|
-
(function (module, exports
|
|
12242
|
+
(function (module, exports) {
|
|
12191
12243
|
|
|
12192
|
-
Object.defineProperty(exports
|
|
12244
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12193
12245
|
value: true
|
|
12194
12246
|
});
|
|
12195
|
-
exports
|
|
12247
|
+
exports.default = ltrim;
|
|
12196
12248
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12197
12249
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12198
12250
|
function ltrim(str, chars) {
|
|
@@ -12201,36 +12253,36 @@ var ltrim = {exports: {}};
|
|
|
12201
12253
|
var pattern = chars ? new RegExp("^[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+"), 'g') : /^\s+/g;
|
|
12202
12254
|
return str.replace(pattern, '');
|
|
12203
12255
|
}
|
|
12204
|
-
module.exports = exports
|
|
12205
|
-
module.exports.default = exports
|
|
12256
|
+
module.exports = exports.default;
|
|
12257
|
+
module.exports.default = exports.default;
|
|
12206
12258
|
} (ltrim, ltrim.exports));
|
|
12207
12259
|
|
|
12208
12260
|
var ltrimExports = ltrim.exports;
|
|
12209
12261
|
|
|
12210
|
-
(function (module, exports
|
|
12262
|
+
(function (module, exports) {
|
|
12211
12263
|
|
|
12212
|
-
Object.defineProperty(exports
|
|
12264
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12213
12265
|
value: true
|
|
12214
12266
|
});
|
|
12215
|
-
exports
|
|
12267
|
+
exports.default = trim;
|
|
12216
12268
|
var _rtrim = _interopRequireDefault(rtrimExports);
|
|
12217
12269
|
var _ltrim = _interopRequireDefault(ltrimExports);
|
|
12218
12270
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12219
12271
|
function trim(str, chars) {
|
|
12220
12272
|
return (0, _rtrim.default)((0, _ltrim.default)(str, chars), chars);
|
|
12221
12273
|
}
|
|
12222
|
-
module.exports = exports
|
|
12223
|
-
module.exports.default = exports
|
|
12274
|
+
module.exports = exports.default;
|
|
12275
|
+
module.exports.default = exports.default;
|
|
12224
12276
|
} (trim, trim.exports));
|
|
12225
12277
|
|
|
12226
12278
|
var trimExports = trim.exports;
|
|
12227
12279
|
|
|
12228
|
-
(function (module, exports
|
|
12280
|
+
(function (module, exports) {
|
|
12229
12281
|
|
|
12230
|
-
Object.defineProperty(exports
|
|
12282
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12231
12283
|
value: true
|
|
12232
12284
|
});
|
|
12233
|
-
exports
|
|
12285
|
+
exports.default = isMailtoURI;
|
|
12234
12286
|
var _trim = _interopRequireDefault(trimExports);
|
|
12235
12287
|
var _isEmail = _interopRequireDefault(isEmailExports);
|
|
12236
12288
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
@@ -12307,20 +12359,20 @@ var trimExports = trim.exports;
|
|
|
12307
12359
|
return true;
|
|
12308
12360
|
});
|
|
12309
12361
|
}
|
|
12310
|
-
module.exports = exports
|
|
12311
|
-
module.exports.default = exports
|
|
12362
|
+
module.exports = exports.default;
|
|
12363
|
+
module.exports.default = exports.default;
|
|
12312
12364
|
} (isMailtoURI, isMailtoURI.exports));
|
|
12313
12365
|
|
|
12314
12366
|
var isMailtoURIExports = isMailtoURI.exports;
|
|
12315
12367
|
|
|
12316
12368
|
var isMimeType = {exports: {}};
|
|
12317
12369
|
|
|
12318
|
-
(function (module, exports
|
|
12370
|
+
(function (module, exports) {
|
|
12319
12371
|
|
|
12320
|
-
Object.defineProperty(exports
|
|
12372
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12321
12373
|
value: true
|
|
12322
12374
|
});
|
|
12323
|
-
exports
|
|
12375
|
+
exports.default = isMimeType;
|
|
12324
12376
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12325
12377
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12326
12378
|
/*
|
|
@@ -12361,20 +12413,20 @@ var isMimeType = {exports: {}};
|
|
|
12361
12413
|
(0, _assertString.default)(str);
|
|
12362
12414
|
return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str);
|
|
12363
12415
|
}
|
|
12364
|
-
module.exports = exports
|
|
12365
|
-
module.exports.default = exports
|
|
12416
|
+
module.exports = exports.default;
|
|
12417
|
+
module.exports.default = exports.default;
|
|
12366
12418
|
} (isMimeType, isMimeType.exports));
|
|
12367
12419
|
|
|
12368
12420
|
var isMimeTypeExports = isMimeType.exports;
|
|
12369
12421
|
|
|
12370
12422
|
var isLatLong = {exports: {}};
|
|
12371
12423
|
|
|
12372
|
-
(function (module, exports
|
|
12424
|
+
(function (module, exports) {
|
|
12373
12425
|
|
|
12374
|
-
Object.defineProperty(exports
|
|
12426
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12375
12427
|
value: true
|
|
12376
12428
|
});
|
|
12377
|
-
exports
|
|
12429
|
+
exports.default = isLatLong;
|
|
12378
12430
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12379
12431
|
var _merge = _interopRequireDefault(mergeExports);
|
|
12380
12432
|
var _includesString = _interopRequireDefault(includesStringExports);
|
|
@@ -12397,8 +12449,8 @@ var isLatLong = {exports: {}};
|
|
|
12397
12449
|
}
|
|
12398
12450
|
return lat.test(pair[0]) && long.test(pair[1]);
|
|
12399
12451
|
}
|
|
12400
|
-
module.exports = exports
|
|
12401
|
-
module.exports.default = exports
|
|
12452
|
+
module.exports = exports.default;
|
|
12453
|
+
module.exports.default = exports.default;
|
|
12402
12454
|
} (isLatLong, isLatLong.exports));
|
|
12403
12455
|
|
|
12404
12456
|
var isLatLongExports = isLatLong.exports;
|
|
@@ -12461,6 +12513,7 @@ var patterns = {
|
|
|
12461
12513
|
LU: fourDigit,
|
|
12462
12514
|
LV: /^LV\-\d{4}$/,
|
|
12463
12515
|
LK: fiveDigit,
|
|
12516
|
+
MC: /^980\d{2}$/,
|
|
12464
12517
|
MG: threeDigit,
|
|
12465
12518
|
MX: fiveDigit,
|
|
12466
12519
|
MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/,
|
|
@@ -12512,32 +12565,32 @@ function isPostalCode(str, locale) {
|
|
|
12512
12565
|
|
|
12513
12566
|
var _escape = {exports: {}};
|
|
12514
12567
|
|
|
12515
|
-
(function (module, exports
|
|
12568
|
+
(function (module, exports) {
|
|
12516
12569
|
|
|
12517
|
-
Object.defineProperty(exports
|
|
12570
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12518
12571
|
value: true
|
|
12519
12572
|
});
|
|
12520
|
-
exports
|
|
12573
|
+
exports.default = escape;
|
|
12521
12574
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12522
12575
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12523
12576
|
function escape(str) {
|
|
12524
12577
|
(0, _assertString.default)(str);
|
|
12525
12578
|
return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>').replace(/\//g, '/').replace(/\\/g, '\').replace(/`/g, '`');
|
|
12526
12579
|
}
|
|
12527
|
-
module.exports = exports
|
|
12528
|
-
module.exports.default = exports
|
|
12580
|
+
module.exports = exports.default;
|
|
12581
|
+
module.exports.default = exports.default;
|
|
12529
12582
|
} (_escape, _escape.exports));
|
|
12530
12583
|
|
|
12531
12584
|
var _escapeExports = _escape.exports;
|
|
12532
12585
|
|
|
12533
12586
|
var _unescape = {exports: {}};
|
|
12534
12587
|
|
|
12535
|
-
(function (module, exports
|
|
12588
|
+
(function (module, exports) {
|
|
12536
12589
|
|
|
12537
|
-
Object.defineProperty(exports
|
|
12590
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12538
12591
|
value: true
|
|
12539
12592
|
});
|
|
12540
|
-
exports
|
|
12593
|
+
exports.default = unescape;
|
|
12541
12594
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12542
12595
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12543
12596
|
function unescape(str) {
|
|
@@ -12547,8 +12600,8 @@ var _unescape = {exports: {}};
|
|
|
12547
12600
|
// bugs with intermediate strings containing escape sequences
|
|
12548
12601
|
// See: https://github.com/validatorjs/validator.js/issues/1827
|
|
12549
12602
|
}
|
|
12550
|
-
module.exports = exports
|
|
12551
|
-
module.exports.default = exports
|
|
12603
|
+
module.exports = exports.default;
|
|
12604
|
+
module.exports.default = exports.default;
|
|
12552
12605
|
} (_unescape, _unescape.exports));
|
|
12553
12606
|
|
|
12554
12607
|
var _unescapeExports = _unescape.exports;
|
|
@@ -12557,30 +12610,30 @@ var stripLow = {exports: {}};
|
|
|
12557
12610
|
|
|
12558
12611
|
var blacklist = {exports: {}};
|
|
12559
12612
|
|
|
12560
|
-
(function (module, exports
|
|
12613
|
+
(function (module, exports) {
|
|
12561
12614
|
|
|
12562
|
-
Object.defineProperty(exports
|
|
12615
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12563
12616
|
value: true
|
|
12564
12617
|
});
|
|
12565
|
-
exports
|
|
12618
|
+
exports.default = blacklist;
|
|
12566
12619
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12567
12620
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12568
12621
|
function blacklist(str, chars) {
|
|
12569
12622
|
(0, _assertString.default)(str);
|
|
12570
12623
|
return str.replace(new RegExp("[".concat(chars, "]+"), 'g'), '');
|
|
12571
12624
|
}
|
|
12572
|
-
module.exports = exports
|
|
12573
|
-
module.exports.default = exports
|
|
12625
|
+
module.exports = exports.default;
|
|
12626
|
+
module.exports.default = exports.default;
|
|
12574
12627
|
} (blacklist, blacklist.exports));
|
|
12575
12628
|
|
|
12576
12629
|
var blacklistExports = blacklist.exports;
|
|
12577
12630
|
|
|
12578
|
-
(function (module, exports
|
|
12631
|
+
(function (module, exports) {
|
|
12579
12632
|
|
|
12580
|
-
Object.defineProperty(exports
|
|
12633
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12581
12634
|
value: true
|
|
12582
12635
|
});
|
|
12583
|
-
exports
|
|
12636
|
+
exports.default = stripLow;
|
|
12584
12637
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12585
12638
|
var _blacklist = _interopRequireDefault(blacklistExports);
|
|
12586
12639
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -12589,40 +12642,40 @@ var blacklistExports = blacklist.exports;
|
|
|
12589
12642
|
var chars = keep_new_lines ? '\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F' : '\\x00-\\x1F\\x7F';
|
|
12590
12643
|
return (0, _blacklist.default)(str, chars);
|
|
12591
12644
|
}
|
|
12592
|
-
module.exports = exports
|
|
12593
|
-
module.exports.default = exports
|
|
12645
|
+
module.exports = exports.default;
|
|
12646
|
+
module.exports.default = exports.default;
|
|
12594
12647
|
} (stripLow, stripLow.exports));
|
|
12595
12648
|
|
|
12596
12649
|
var stripLowExports = stripLow.exports;
|
|
12597
12650
|
|
|
12598
12651
|
var whitelist = {exports: {}};
|
|
12599
12652
|
|
|
12600
|
-
(function (module, exports
|
|
12653
|
+
(function (module, exports) {
|
|
12601
12654
|
|
|
12602
|
-
Object.defineProperty(exports
|
|
12655
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12603
12656
|
value: true
|
|
12604
12657
|
});
|
|
12605
|
-
exports
|
|
12658
|
+
exports.default = whitelist;
|
|
12606
12659
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12607
12660
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12608
12661
|
function whitelist(str, chars) {
|
|
12609
12662
|
(0, _assertString.default)(str);
|
|
12610
12663
|
return str.replace(new RegExp("[^".concat(chars, "]+"), 'g'), '');
|
|
12611
12664
|
}
|
|
12612
|
-
module.exports = exports
|
|
12613
|
-
module.exports.default = exports
|
|
12665
|
+
module.exports = exports.default;
|
|
12666
|
+
module.exports.default = exports.default;
|
|
12614
12667
|
} (whitelist, whitelist.exports));
|
|
12615
12668
|
|
|
12616
12669
|
var whitelistExports = whitelist.exports;
|
|
12617
12670
|
|
|
12618
12671
|
var isWhitelisted = {exports: {}};
|
|
12619
12672
|
|
|
12620
|
-
(function (module, exports
|
|
12673
|
+
(function (module, exports) {
|
|
12621
12674
|
|
|
12622
|
-
Object.defineProperty(exports
|
|
12675
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12623
12676
|
value: true
|
|
12624
12677
|
});
|
|
12625
|
-
exports
|
|
12678
|
+
exports.default = isWhitelisted;
|
|
12626
12679
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12627
12680
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12628
12681
|
function isWhitelisted(str, chars) {
|
|
@@ -12634,20 +12687,20 @@ var isWhitelisted = {exports: {}};
|
|
|
12634
12687
|
}
|
|
12635
12688
|
return true;
|
|
12636
12689
|
}
|
|
12637
|
-
module.exports = exports
|
|
12638
|
-
module.exports.default = exports
|
|
12690
|
+
module.exports = exports.default;
|
|
12691
|
+
module.exports.default = exports.default;
|
|
12639
12692
|
} (isWhitelisted, isWhitelisted.exports));
|
|
12640
12693
|
|
|
12641
12694
|
var isWhitelistedExports = isWhitelisted.exports;
|
|
12642
12695
|
|
|
12643
12696
|
var normalizeEmail = {exports: {}};
|
|
12644
12697
|
|
|
12645
|
-
(function (module, exports
|
|
12698
|
+
(function (module, exports) {
|
|
12646
12699
|
|
|
12647
|
-
Object.defineProperty(exports
|
|
12700
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12648
12701
|
value: true
|
|
12649
12702
|
});
|
|
12650
|
-
exports
|
|
12703
|
+
exports.default = normalizeEmail;
|
|
12651
12704
|
var _merge = _interopRequireDefault(mergeExports);
|
|
12652
12705
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12653
12706
|
var default_normalize_email_options = {
|
|
@@ -12780,41 +12833,41 @@ var normalizeEmail = {exports: {}};
|
|
|
12780
12833
|
}
|
|
12781
12834
|
return parts.join('@');
|
|
12782
12835
|
}
|
|
12783
|
-
module.exports = exports
|
|
12784
|
-
module.exports.default = exports
|
|
12836
|
+
module.exports = exports.default;
|
|
12837
|
+
module.exports.default = exports.default;
|
|
12785
12838
|
} (normalizeEmail, normalizeEmail.exports));
|
|
12786
12839
|
|
|
12787
12840
|
var normalizeEmailExports = normalizeEmail.exports;
|
|
12788
12841
|
|
|
12789
12842
|
var isSlug = {exports: {}};
|
|
12790
12843
|
|
|
12791
|
-
(function (module, exports
|
|
12844
|
+
(function (module, exports) {
|
|
12792
12845
|
|
|
12793
|
-
Object.defineProperty(exports
|
|
12846
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12794
12847
|
value: true
|
|
12795
12848
|
});
|
|
12796
|
-
exports
|
|
12849
|
+
exports.default = isSlug;
|
|
12797
12850
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12798
12851
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12799
|
-
var charsetRegex = /^[
|
|
12852
|
+
var charsetRegex = /^[a-z0-9](?!.*[-_]{2,})(?:[a-z0-9_-]*[a-z0-9])?$/;
|
|
12800
12853
|
function isSlug(str) {
|
|
12801
12854
|
(0, _assertString.default)(str);
|
|
12802
12855
|
return charsetRegex.test(str);
|
|
12803
12856
|
}
|
|
12804
|
-
module.exports = exports
|
|
12805
|
-
module.exports.default = exports
|
|
12857
|
+
module.exports = exports.default;
|
|
12858
|
+
module.exports.default = exports.default;
|
|
12806
12859
|
} (isSlug, isSlug.exports));
|
|
12807
12860
|
|
|
12808
12861
|
var isSlugExports = isSlug.exports;
|
|
12809
12862
|
|
|
12810
12863
|
var isLicensePlate = {exports: {}};
|
|
12811
12864
|
|
|
12812
|
-
(function (module, exports
|
|
12865
|
+
(function (module, exports) {
|
|
12813
12866
|
|
|
12814
|
-
Object.defineProperty(exports
|
|
12867
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12815
12868
|
value: true
|
|
12816
12869
|
});
|
|
12817
|
-
exports
|
|
12870
|
+
exports.default = isLicensePlate;
|
|
12818
12871
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12819
12872
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12820
12873
|
var validators = {
|
|
@@ -12874,20 +12927,20 @@ var isLicensePlate = {exports: {}};
|
|
|
12874
12927
|
}
|
|
12875
12928
|
throw new Error("Invalid locale '".concat(locale, "'"));
|
|
12876
12929
|
}
|
|
12877
|
-
module.exports = exports
|
|
12878
|
-
module.exports.default = exports
|
|
12930
|
+
module.exports = exports.default;
|
|
12931
|
+
module.exports.default = exports.default;
|
|
12879
12932
|
} (isLicensePlate, isLicensePlate.exports));
|
|
12880
12933
|
|
|
12881
12934
|
var isLicensePlateExports = isLicensePlate.exports;
|
|
12882
12935
|
|
|
12883
12936
|
var isStrongPassword = {exports: {}};
|
|
12884
12937
|
|
|
12885
|
-
(function (module, exports
|
|
12938
|
+
(function (module, exports) {
|
|
12886
12939
|
|
|
12887
|
-
Object.defineProperty(exports
|
|
12940
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12888
12941
|
value: true
|
|
12889
12942
|
});
|
|
12890
|
-
exports
|
|
12943
|
+
exports.default = isStrongPassword;
|
|
12891
12944
|
var _merge = _interopRequireDefault(mergeExports);
|
|
12892
12945
|
var _assertString = _interopRequireDefault(assertStringExports);
|
|
12893
12946
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -12979,8 +13032,8 @@ var isStrongPassword = {exports: {}};
|
|
|
12979
13032
|
}
|
|
12980
13033
|
return analysis.length >= options.minLength && analysis.lowercaseCount >= options.minLowercase && analysis.uppercaseCount >= options.minUppercase && analysis.numberCount >= options.minNumbers && analysis.symbolCount >= options.minSymbols;
|
|
12981
13034
|
}
|
|
12982
|
-
module.exports = exports
|
|
12983
|
-
module.exports.default = exports
|
|
13035
|
+
module.exports = exports.default;
|
|
13036
|
+
module.exports.default = exports.default;
|
|
12984
13037
|
} (isStrongPassword, isStrongPassword.exports));
|
|
12985
13038
|
|
|
12986
13039
|
var isStrongPasswordExports = isStrongPassword.exports;
|
|
@@ -13260,13 +13313,13 @@ function isVAT(str, countryCode) {
|
|
|
13260
13313
|
throw new Error("Invalid country code: '".concat(countryCode, "'"));
|
|
13261
13314
|
}
|
|
13262
13315
|
|
|
13263
|
-
(function (module, exports
|
|
13316
|
+
(function (module, exports) {
|
|
13264
13317
|
|
|
13265
13318
|
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); }
|
|
13266
|
-
Object.defineProperty(exports
|
|
13319
|
+
Object.defineProperty(exports, "__esModule", {
|
|
13267
13320
|
value: true
|
|
13268
13321
|
});
|
|
13269
|
-
exports
|
|
13322
|
+
exports.default = void 0;
|
|
13270
13323
|
var _toDate = _interopRequireDefault(toDateExports);
|
|
13271
13324
|
var _toFloat = _interopRequireDefault(toFloatExports);
|
|
13272
13325
|
var _toInt = _interopRequireDefault(toIntExports);
|
|
@@ -13371,7 +13424,7 @@ function isVAT(str, countryCode) {
|
|
|
13371
13424
|
var _isVAT = _interopRequireDefault(isVAT$1);
|
|
13372
13425
|
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); }
|
|
13373
13426
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13374
|
-
var version = '13.15.
|
|
13427
|
+
var version = '13.15.35';
|
|
13375
13428
|
var validator = {
|
|
13376
13429
|
version: version,
|
|
13377
13430
|
toDate: _toDate.default,
|
|
@@ -13486,9 +13539,9 @@ function isVAT(str, countryCode) {
|
|
|
13486
13539
|
isVAT: _isVAT.default,
|
|
13487
13540
|
ibanLocales: _isIBAN.locales
|
|
13488
13541
|
};
|
|
13489
|
-
exports
|
|
13490
|
-
module.exports = exports
|
|
13491
|
-
module.exports.default = exports
|
|
13542
|
+
exports.default = validator;
|
|
13543
|
+
module.exports = exports.default;
|
|
13544
|
+
module.exports.default = exports.default;
|
|
13492
13545
|
} (validator$1, validator$1.exports));
|
|
13493
13546
|
|
|
13494
13547
|
var validatorExports = validator$1.exports;
|
|
@@ -14133,11 +14186,11 @@ function requireCSV () {
|
|
|
14133
14186
|
return CSV;
|
|
14134
14187
|
}
|
|
14135
14188
|
|
|
14136
|
-
(function (exports
|
|
14189
|
+
(function (exports) {
|
|
14137
14190
|
function __export(m) {
|
|
14138
|
-
for (var p in m) if (!exports
|
|
14191
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
14139
14192
|
}
|
|
14140
|
-
Object.defineProperty(exports
|
|
14193
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14141
14194
|
__export(requireCSV());
|
|
14142
14195
|
} (dist));
|
|
14143
14196
|
|
|
@@ -15672,8 +15725,8 @@ return CRC32;
|
|
|
15672
15725
|
})();
|
|
15673
15726
|
/* [MS-CFB] v20171201 */
|
|
15674
15727
|
var CFB = /*#__PURE__*/(function _CFB(){
|
|
15675
|
-
var exports
|
|
15676
|
-
exports
|
|
15728
|
+
var exports/*:CFBModule*/ = /*::(*/{}/*:: :any)*/;
|
|
15729
|
+
exports.version = '1.2.2';
|
|
15677
15730
|
/* [MS-CFB] 2.6.4 */
|
|
15678
15731
|
function namecmp(l/*:string*/, r/*:string*/)/*:number*/ {
|
|
15679
15732
|
var L = l.split("/"), R = r.split("/");
|
|
@@ -17374,12 +17427,12 @@ function cfb_mov(cfb/*:CFBContainer*/, old_name/*:string*/, new_name/*:string*/)
|
|
|
17374
17427
|
|
|
17375
17428
|
function cfb_gc(cfb/*:CFBContainer*/)/*:void*/ { rebuild_cfb(cfb, true); }
|
|
17376
17429
|
|
|
17377
|
-
exports
|
|
17378
|
-
exports
|
|
17379
|
-
exports
|
|
17380
|
-
exports
|
|
17381
|
-
exports
|
|
17382
|
-
exports
|
|
17430
|
+
exports.find = find;
|
|
17431
|
+
exports.read = read;
|
|
17432
|
+
exports.parse = parse;
|
|
17433
|
+
exports.write = write;
|
|
17434
|
+
exports.writeFile = write_file;
|
|
17435
|
+
exports.utils = {
|
|
17383
17436
|
cfb_new: cfb_new,
|
|
17384
17437
|
cfb_add: cfb_add,
|
|
17385
17438
|
cfb_del: cfb_del,
|
|
@@ -17395,7 +17448,7 @@ exports$1.utils = {
|
|
|
17395
17448
|
consts: consts
|
|
17396
17449
|
};
|
|
17397
17450
|
|
|
17398
|
-
return exports
|
|
17451
|
+
return exports;
|
|
17399
17452
|
})();
|
|
17400
17453
|
|
|
17401
17454
|
var _fs;
|
|
@@ -41943,20 +41996,17 @@ var _validateFormat = (rows, hasHeader, cols, options) => {
|
|
|
41943
41996
|
_forgeColumnsCountError(row, rowIndex + 1, cols, errors);
|
|
41944
41997
|
}
|
|
41945
41998
|
for (var colIndex = 0; colIndex < knownColsCount; colIndex++) {
|
|
41946
|
-
var
|
|
41947
|
-
type,
|
|
41948
|
-
colOptions,
|
|
41949
|
-
acceptsEmptyFields,
|
|
41950
|
-
field
|
|
41951
|
-
} = colMeta[colIndex];
|
|
41999
|
+
var _colMeta$colIndex = colMeta[colIndex],
|
|
42000
|
+
type = _colMeta$colIndex.type,
|
|
42001
|
+
colOptions = _colMeta$colIndex.colOptions,
|
|
42002
|
+
acceptsEmptyFields = _colMeta$colIndex.acceptsEmptyFields,
|
|
42003
|
+
field = _colMeta$colIndex.field;
|
|
41952
42004
|
var value = row[colIndex];
|
|
41953
42005
|
if (value === undefined) continue;
|
|
41954
42006
|
var validationResult = ValidationUtils.isValid(value, type, colOptions, acceptsEmptyFields);
|
|
41955
42007
|
if (validationResult !== true) {
|
|
41956
|
-
var
|
|
41957
|
-
|
|
41958
|
-
context: errorContext
|
|
41959
|
-
} = validationResult;
|
|
42008
|
+
var errorSummary = validationResult.summary,
|
|
42009
|
+
errorContext = validationResult.context;
|
|
41960
42010
|
var errorLoc = "Line ".concat(rowIndex + 1, ", Column ").concat(colIndex + 1, " (\"").concat(field, "\")");
|
|
41961
42011
|
errors.push(new Error$1(errorSummary, errorLoc, errorContext));
|
|
41962
42012
|
}
|
|
@@ -42502,7 +42552,7 @@ var AuthDev = {
|
|
|
42502
42552
|
acquireTokensByRequest
|
|
42503
42553
|
};
|
|
42504
42554
|
|
|
42505
|
-
/*! @azure/msal-common v15.
|
|
42555
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42506
42556
|
/*
|
|
42507
42557
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
42508
42558
|
* Licensed under the MIT License.
|
|
@@ -42776,7 +42826,7 @@ const JsonWebTokenTypes = {
|
|
|
42776
42826
|
// Token renewal offset default in seconds
|
|
42777
42827
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
42778
42828
|
|
|
42779
|
-
/*! @azure/msal-common v15.
|
|
42829
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42780
42830
|
/*
|
|
42781
42831
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
42782
42832
|
* Licensed under the MIT License.
|
|
@@ -42787,7 +42837,7 @@ const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
|
42787
42837
|
const unexpectedError = "unexpected_error";
|
|
42788
42838
|
const postRequestFailed$1 = "post_request_failed";
|
|
42789
42839
|
|
|
42790
|
-
/*! @azure/msal-common v15.
|
|
42840
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42791
42841
|
|
|
42792
42842
|
/*
|
|
42793
42843
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -42822,7 +42872,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
42822
42872
|
: AuthErrorMessages[code]);
|
|
42823
42873
|
}
|
|
42824
42874
|
|
|
42825
|
-
/*! @azure/msal-common v15.
|
|
42875
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42826
42876
|
/*
|
|
42827
42877
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
42828
42878
|
* Licensed under the MIT License.
|
|
@@ -42873,7 +42923,7 @@ const methodNotImplemented = "method_not_implemented";
|
|
|
42873
42923
|
const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
|
|
42874
42924
|
const platformBrokerError = "platform_broker_error";
|
|
42875
42925
|
|
|
42876
|
-
/*! @azure/msal-common v15.
|
|
42926
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42877
42927
|
|
|
42878
42928
|
/*
|
|
42879
42929
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -42948,7 +42998,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
42948
42998
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
42949
42999
|
}
|
|
42950
43000
|
|
|
42951
|
-
/*! @azure/msal-common v15.
|
|
43001
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42952
43002
|
|
|
42953
43003
|
/*
|
|
42954
43004
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -42987,7 +43037,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
42987
43037
|
},
|
|
42988
43038
|
};
|
|
42989
43039
|
|
|
42990
|
-
/*! @azure/msal-common v15.
|
|
43040
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
42991
43041
|
|
|
42992
43042
|
/*
|
|
42993
43043
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -43178,12 +43228,12 @@ class Logger {
|
|
|
43178
43228
|
}
|
|
43179
43229
|
}
|
|
43180
43230
|
|
|
43181
|
-
/*! @azure/msal-common v15.
|
|
43231
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43182
43232
|
/* eslint-disable header/header */
|
|
43183
43233
|
const name$2 = "@azure/msal-common";
|
|
43184
|
-
const version$1 = "15.
|
|
43234
|
+
const version$1 = "15.17.0";
|
|
43185
43235
|
|
|
43186
|
-
/*! @azure/msal-common v15.
|
|
43236
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43187
43237
|
/*
|
|
43188
43238
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43189
43239
|
* Licensed under the MIT License.
|
|
@@ -43192,7 +43242,7 @@ const AzureCloudInstance = {
|
|
|
43192
43242
|
// AzureCloudInstance is not specified.
|
|
43193
43243
|
None: "none"};
|
|
43194
43244
|
|
|
43195
|
-
/*! @azure/msal-common v15.
|
|
43245
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43196
43246
|
/*
|
|
43197
43247
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43198
43248
|
* Licensed under the MIT License.
|
|
@@ -43222,7 +43272,7 @@ const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
|
|
|
43222
43272
|
const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
|
|
43223
43273
|
const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuration";
|
|
43224
43274
|
|
|
43225
|
-
/*! @azure/msal-common v15.
|
|
43275
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43226
43276
|
|
|
43227
43277
|
/*
|
|
43228
43278
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -43268,7 +43318,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
43268
43318
|
return new ClientConfigurationError(errorCode);
|
|
43269
43319
|
}
|
|
43270
43320
|
|
|
43271
|
-
/*! @azure/msal-common v15.
|
|
43321
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43272
43322
|
/*
|
|
43273
43323
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43274
43324
|
* Licensed under the MIT License.
|
|
@@ -43363,9 +43413,48 @@ class StringUtils {
|
|
|
43363
43413
|
.replace(/\?/g, "\\?"));
|
|
43364
43414
|
return regex.test(input);
|
|
43365
43415
|
}
|
|
43416
|
+
/**
|
|
43417
|
+
* Tests if a given string matches a given pattern using stricter, anchored matching semantics.
|
|
43418
|
+
*
|
|
43419
|
+
* Differences from `matchPattern` (legacy):
|
|
43420
|
+
* - All regex metacharacters (including `.`) in the pattern are treated as literals,
|
|
43421
|
+
* so `example.com` matches only `example.com` and not `exampleXcom`.
|
|
43422
|
+
* - The generated regex is anchored with `^` and `$` so partial/substring matches
|
|
43423
|
+
* are not allowed.
|
|
43424
|
+
* - `*` is the only supported wildcard. Its behaviour depends on the URL component:
|
|
43425
|
+
* - `host` component: `*` matches any sequence of characters that does NOT include
|
|
43426
|
+
* a dot (`.`), keeping wildcards within a single DNS label boundary.
|
|
43427
|
+
* - All other components: `*` matches any sequence of characters (including `/`).
|
|
43428
|
+
*
|
|
43429
|
+
* @param pattern - The `protectedResourceMap` key pattern to match against. `*` is a
|
|
43430
|
+
* multi-character wildcard; all other characters are treated as literals.
|
|
43431
|
+
* @param input - The URL component value (e.g. host, pathname) extracted from the
|
|
43432
|
+
* outgoing request URL to test against the pattern.
|
|
43433
|
+
* @param options - Optional. Provide `component` to enable component-aware wildcard
|
|
43434
|
+
* semantics. Accepted values: `"host"`, `"path"`, `"protocol"`, `"search"`,
|
|
43435
|
+
* `"hash"`. Defaults to path-style (permissive) matching when omitted.
|
|
43436
|
+
* @returns `true` if the full input string matches the pattern; `false` otherwise.
|
|
43437
|
+
*/
|
|
43438
|
+
static matchPatternStrict(pattern, input, options) {
|
|
43439
|
+
const component = options?.component;
|
|
43440
|
+
// Step 1: Escape all regex special characters so literals are matched literally.
|
|
43441
|
+
let regexBody = pattern.replace(/[.+^${}()|[\]\\*?]/g, "\\$&");
|
|
43442
|
+
// Step 2: Replace the escaped '*' with its component-aware regex equivalent.
|
|
43443
|
+
if (component === "host") {
|
|
43444
|
+
regexBody = regexBody.replace(/\\\*/g, "[^.]*");
|
|
43445
|
+
}
|
|
43446
|
+
else {
|
|
43447
|
+
// PATH, PROTOCOL, SEARCH, HASH, or unspecified: '*' matches any characters.
|
|
43448
|
+
regexBody = regexBody.replace(/\\\*/g, ".*");
|
|
43449
|
+
}
|
|
43450
|
+
// Step 3: Anchor for full-string matching.
|
|
43451
|
+
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
43452
|
+
const regex = new RegExp(`^${regexBody}$`);
|
|
43453
|
+
return regex.test(input);
|
|
43454
|
+
}
|
|
43366
43455
|
}
|
|
43367
43456
|
|
|
43368
|
-
/*! @azure/msal-common v15.
|
|
43457
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43369
43458
|
|
|
43370
43459
|
/*
|
|
43371
43460
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -43560,7 +43649,7 @@ class ScopeSet {
|
|
|
43560
43649
|
}
|
|
43561
43650
|
}
|
|
43562
43651
|
|
|
43563
|
-
/*! @azure/msal-common v15.
|
|
43652
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43564
43653
|
|
|
43565
43654
|
/*
|
|
43566
43655
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -43600,7 +43689,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
43600
43689
|
};
|
|
43601
43690
|
}
|
|
43602
43691
|
|
|
43603
|
-
/*! @azure/msal-common v15.
|
|
43692
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43604
43693
|
/*
|
|
43605
43694
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43606
43695
|
* Licensed under the MIT License.
|
|
@@ -43682,7 +43771,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
43682
43771
|
return updatedAccountInfo;
|
|
43683
43772
|
}
|
|
43684
43773
|
|
|
43685
|
-
/*! @azure/msal-common v15.
|
|
43774
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43686
43775
|
/*
|
|
43687
43776
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43688
43777
|
* Licensed under the MIT License.
|
|
@@ -43697,7 +43786,7 @@ const AuthorityType = {
|
|
|
43697
43786
|
Ciam: 3,
|
|
43698
43787
|
};
|
|
43699
43788
|
|
|
43700
|
-
/*! @azure/msal-common v15.
|
|
43789
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43701
43790
|
/*
|
|
43702
43791
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43703
43792
|
* Licensed under the MIT License.
|
|
@@ -43719,7 +43808,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
43719
43808
|
return null;
|
|
43720
43809
|
}
|
|
43721
43810
|
|
|
43722
|
-
/*! @azure/msal-common v15.
|
|
43811
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43723
43812
|
/*
|
|
43724
43813
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
43725
43814
|
* Licensed under the MIT License.
|
|
@@ -43743,7 +43832,7 @@ const ProtocolMode = {
|
|
|
43743
43832
|
EAR: "EAR",
|
|
43744
43833
|
};
|
|
43745
43834
|
|
|
43746
|
-
/*! @azure/msal-common v15.
|
|
43835
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43747
43836
|
|
|
43748
43837
|
/*
|
|
43749
43838
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -43978,7 +44067,7 @@ class AccountEntity {
|
|
|
43978
44067
|
}
|
|
43979
44068
|
}
|
|
43980
44069
|
|
|
43981
|
-
/*! @azure/msal-common v15.
|
|
44070
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
43982
44071
|
|
|
43983
44072
|
/*
|
|
43984
44073
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -44059,7 +44148,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
44059
44148
|
}
|
|
44060
44149
|
}
|
|
44061
44150
|
|
|
44062
|
-
/*! @azure/msal-common v15.
|
|
44151
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44063
44152
|
|
|
44064
44153
|
/*
|
|
44065
44154
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -44175,7 +44264,7 @@ function normalizeUrlForComparison(url) {
|
|
|
44175
44264
|
}
|
|
44176
44265
|
}
|
|
44177
44266
|
|
|
44178
|
-
/*! @azure/msal-common v15.
|
|
44267
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44179
44268
|
|
|
44180
44269
|
/*
|
|
44181
44270
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -44339,7 +44428,7 @@ class UrlString {
|
|
|
44339
44428
|
}
|
|
44340
44429
|
}
|
|
44341
44430
|
|
|
44342
|
-
/*! @azure/msal-common v15.
|
|
44431
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44343
44432
|
|
|
44344
44433
|
/*
|
|
44345
44434
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -44514,7 +44603,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
44514
44603
|
return null;
|
|
44515
44604
|
}
|
|
44516
44605
|
|
|
44517
|
-
/*! @azure/msal-common v15.
|
|
44606
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44518
44607
|
/*
|
|
44519
44608
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
44520
44609
|
* Licensed under the MIT License.
|
|
@@ -44522,7 +44611,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
44522
44611
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
44523
44612
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
44524
44613
|
|
|
44525
|
-
/*! @azure/msal-common v15.
|
|
44614
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44526
44615
|
|
|
44527
44616
|
/*
|
|
44528
44617
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -44567,7 +44656,7 @@ function createCacheError(e) {
|
|
|
44567
44656
|
}
|
|
44568
44657
|
}
|
|
44569
44658
|
|
|
44570
|
-
/*! @azure/msal-common v15.
|
|
44659
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
44571
44660
|
|
|
44572
44661
|
/*
|
|
44573
44662
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -45677,7 +45766,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
45677
45766
|
}
|
|
45678
45767
|
}
|
|
45679
45768
|
|
|
45680
|
-
/*! @azure/msal-common v15.
|
|
45769
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
45681
45770
|
/*
|
|
45682
45771
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
45683
45772
|
* Licensed under the MIT License.
|
|
@@ -45939,6 +46028,11 @@ const PerformanceEvents = {
|
|
|
45939
46028
|
LoadIdToken: "loadIdToken",
|
|
45940
46029
|
LoadAccessToken: "loadAccessToken",
|
|
45941
46030
|
LoadRefreshToken: "loadRefreshToken",
|
|
46031
|
+
/**
|
|
46032
|
+
* SSO capability verification call (msal-browser).
|
|
46033
|
+
* Fire-and-forget SSO verification call made after interactive authentication completes.
|
|
46034
|
+
*/
|
|
46035
|
+
SsoCapable: "ssoCapable",
|
|
45942
46036
|
};
|
|
45943
46037
|
/**
|
|
45944
46038
|
* State of the performance event.
|
|
@@ -45949,7 +46043,7 @@ const PerformanceEvents = {
|
|
|
45949
46043
|
const PerformanceEventStatus = {
|
|
45950
46044
|
InProgress: 1};
|
|
45951
46045
|
|
|
45952
|
-
/*! @azure/msal-common v15.
|
|
46046
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
45953
46047
|
|
|
45954
46048
|
/*
|
|
45955
46049
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -46028,7 +46122,7 @@ class StubPerformanceClient {
|
|
|
46028
46122
|
}
|
|
46029
46123
|
}
|
|
46030
46124
|
|
|
46031
|
-
/*! @azure/msal-common v15.
|
|
46125
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46032
46126
|
|
|
46033
46127
|
/*
|
|
46034
46128
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -46128,7 +46222,7 @@ function isOidcProtocolMode(config) {
|
|
|
46128
46222
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
46129
46223
|
}
|
|
46130
46224
|
|
|
46131
|
-
/*! @azure/msal-common v15.
|
|
46225
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46132
46226
|
/*
|
|
46133
46227
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46134
46228
|
* Licensed under the MIT License.
|
|
@@ -46138,7 +46232,7 @@ const CcsCredentialType = {
|
|
|
46138
46232
|
UPN: "UPN",
|
|
46139
46233
|
};
|
|
46140
46234
|
|
|
46141
|
-
/*! @azure/msal-common v15.
|
|
46235
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46142
46236
|
/*
|
|
46143
46237
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46144
46238
|
* Licensed under the MIT License.
|
|
@@ -46186,9 +46280,10 @@ const BROKER_CLIENT_ID = "brk_client_id";
|
|
|
46186
46280
|
const BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
46187
46281
|
const INSTANCE_AWARE = "instance_aware";
|
|
46188
46282
|
const EAR_JWK = "ear_jwk";
|
|
46189
|
-
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
46283
|
+
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
46284
|
+
const CLI_DATA = "clidata";
|
|
46190
46285
|
|
|
46191
|
-
/*! @azure/msal-common v15.
|
|
46286
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46192
46287
|
|
|
46193
46288
|
/*
|
|
46194
46289
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -46454,6 +46549,12 @@ function addGrantType(parameters, grantType) {
|
|
|
46454
46549
|
function addClientInfo(parameters) {
|
|
46455
46550
|
parameters.set(CLIENT_INFO, "1");
|
|
46456
46551
|
}
|
|
46552
|
+
/**
|
|
46553
|
+
* add clidata=1 to request to indicate client data support
|
|
46554
|
+
*/
|
|
46555
|
+
function addCliData(parameters) {
|
|
46556
|
+
parameters.set(CLI_DATA, "1");
|
|
46557
|
+
}
|
|
46457
46558
|
function addInstanceAware(parameters) {
|
|
46458
46559
|
if (!parameters.has(INSTANCE_AWARE)) {
|
|
46459
46560
|
parameters.set(INSTANCE_AWARE, "true");
|
|
@@ -46568,7 +46669,7 @@ function addPostBodyParameters(parameters, bodyParameters) {
|
|
|
46568
46669
|
});
|
|
46569
46670
|
}
|
|
46570
46671
|
|
|
46571
|
-
/*! @azure/msal-common v15.
|
|
46672
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46572
46673
|
/*
|
|
46573
46674
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46574
46675
|
* Licensed under the MIT License.
|
|
@@ -46580,7 +46681,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
46580
46681
|
response.hasOwnProperty("jwks_uri"));
|
|
46581
46682
|
}
|
|
46582
46683
|
|
|
46583
|
-
/*! @azure/msal-common v15.
|
|
46684
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46584
46685
|
/*
|
|
46585
46686
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46586
46687
|
* Licensed under the MIT License.
|
|
@@ -46590,7 +46691,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
46590
46691
|
response.hasOwnProperty("metadata"));
|
|
46591
46692
|
}
|
|
46592
46693
|
|
|
46593
|
-
/*! @azure/msal-common v15.
|
|
46694
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46594
46695
|
/*
|
|
46595
46696
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46596
46697
|
* Licensed under the MIT License.
|
|
@@ -46600,7 +46701,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
46600
46701
|
response.hasOwnProperty("error_description"));
|
|
46601
46702
|
}
|
|
46602
46703
|
|
|
46603
|
-
/*! @azure/msal-common v15.
|
|
46704
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46604
46705
|
/*
|
|
46605
46706
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46606
46707
|
* Licensed under the MIT License.
|
|
@@ -46696,7 +46797,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
46696
46797
|
};
|
|
46697
46798
|
};
|
|
46698
46799
|
|
|
46699
|
-
/*! @azure/msal-common v15.
|
|
46800
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46700
46801
|
|
|
46701
46802
|
/*
|
|
46702
46803
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -46802,7 +46903,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
46802
46903
|
},
|
|
46803
46904
|
};
|
|
46804
46905
|
|
|
46805
|
-
/*! @azure/msal-common v15.
|
|
46906
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46806
46907
|
/*
|
|
46807
46908
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46808
46909
|
* Licensed under the MIT License.
|
|
@@ -46867,7 +46968,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
46867
46968
|
return cachedAtSec > nowSeconds();
|
|
46868
46969
|
}
|
|
46869
46970
|
|
|
46870
|
-
/*! @azure/msal-common v15.
|
|
46971
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
46871
46972
|
|
|
46872
46973
|
/*
|
|
46873
46974
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -47129,7 +47230,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
47129
47230
|
return metadata.expiresAt <= nowSeconds();
|
|
47130
47231
|
}
|
|
47131
47232
|
|
|
47132
|
-
/*! @azure/msal-common v15.
|
|
47233
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
47133
47234
|
|
|
47134
47235
|
/*
|
|
47135
47236
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -47968,7 +48069,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
47968
48069
|
};
|
|
47969
48070
|
}
|
|
47970
48071
|
|
|
47971
|
-
/*! @azure/msal-common v15.
|
|
48072
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
47972
48073
|
|
|
47973
48074
|
/*
|
|
47974
48075
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -47999,7 +48100,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
47999
48100
|
}
|
|
48000
48101
|
}
|
|
48001
48102
|
|
|
48002
|
-
/*! @azure/msal-common v15.
|
|
48103
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48003
48104
|
|
|
48004
48105
|
/*
|
|
48005
48106
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48018,7 +48119,7 @@ class ServerError extends AuthError {
|
|
|
48018
48119
|
}
|
|
48019
48120
|
}
|
|
48020
48121
|
|
|
48021
|
-
/*! @azure/msal-common v15.
|
|
48122
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48022
48123
|
/*
|
|
48023
48124
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
48024
48125
|
* Licensed under the MIT License.
|
|
@@ -48039,7 +48140,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
48039
48140
|
};
|
|
48040
48141
|
}
|
|
48041
48142
|
|
|
48042
|
-
/*! @azure/msal-common v15.
|
|
48143
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48043
48144
|
|
|
48044
48145
|
/*
|
|
48045
48146
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48126,7 +48227,7 @@ class ThrottlingUtils {
|
|
|
48126
48227
|
}
|
|
48127
48228
|
}
|
|
48128
48229
|
|
|
48129
|
-
/*! @azure/msal-common v15.
|
|
48230
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48130
48231
|
|
|
48131
48232
|
/*
|
|
48132
48233
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48157,7 +48258,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
48157
48258
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
48158
48259
|
}
|
|
48159
48260
|
|
|
48160
|
-
/*! @azure/msal-common v15.
|
|
48261
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48161
48262
|
|
|
48162
48263
|
/*
|
|
48163
48264
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48305,23 +48406,58 @@ class BaseClient {
|
|
|
48305
48406
|
}
|
|
48306
48407
|
}
|
|
48307
48408
|
|
|
48308
|
-
/*! @azure/msal-common v15.
|
|
48409
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48309
48410
|
/*
|
|
48310
48411
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
48311
48412
|
* Licensed under the MIT License.
|
|
48312
48413
|
*/
|
|
48313
|
-
|
|
48414
|
+
/**
|
|
48415
|
+
* MSAL-defined interaction required error code indicating no tokens are found in cache.
|
|
48416
|
+
* @public
|
|
48417
|
+
*/
|
|
48314
48418
|
const noTokensFound = "no_tokens_found";
|
|
48419
|
+
/**
|
|
48420
|
+
* MSAL-defined error code indicating a native account is unavailable on the platform.
|
|
48421
|
+
* @public
|
|
48422
|
+
*/
|
|
48315
48423
|
const nativeAccountUnavailable = "native_account_unavailable";
|
|
48424
|
+
/**
|
|
48425
|
+
* MSAL-defined error code indicating the refresh token has expired and user interaction is needed.
|
|
48426
|
+
* @public
|
|
48427
|
+
*/
|
|
48316
48428
|
const refreshTokenExpired = "refresh_token_expired";
|
|
48429
|
+
/**
|
|
48430
|
+
* MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction.
|
|
48431
|
+
* @public
|
|
48432
|
+
*/
|
|
48317
48433
|
const uxNotAllowed = "ux_not_allowed";
|
|
48318
|
-
|
|
48434
|
+
/**
|
|
48435
|
+
* Server-originated error code indicating interaction is required to complete the request.
|
|
48436
|
+
* @public
|
|
48437
|
+
*/
|
|
48319
48438
|
const interactionRequired = "interaction_required";
|
|
48439
|
+
/**
|
|
48440
|
+
* Server-originated error code indicating user consent is required.
|
|
48441
|
+
* @public
|
|
48442
|
+
*/
|
|
48320
48443
|
const consentRequired = "consent_required";
|
|
48444
|
+
/**
|
|
48445
|
+
* Server-originated error code indicating user login is required.
|
|
48446
|
+
* @public
|
|
48447
|
+
*/
|
|
48321
48448
|
const loginRequired = "login_required";
|
|
48322
|
-
|
|
48449
|
+
/**
|
|
48450
|
+
* Server-originated error code indicating the token is invalid or corrupted.
|
|
48451
|
+
* @public
|
|
48452
|
+
*/
|
|
48453
|
+
const badToken = "bad_token";
|
|
48454
|
+
/**
|
|
48455
|
+
* Server-originated error code indicating the user was interrupted and must reattempt the flow.
|
|
48456
|
+
* @public
|
|
48457
|
+
*/
|
|
48458
|
+
const interruptedUser = "interrupted_user";
|
|
48323
48459
|
|
|
48324
|
-
/*! @azure/msal-common v15.
|
|
48460
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48325
48461
|
|
|
48326
48462
|
/*
|
|
48327
48463
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48336,6 +48472,7 @@ const InteractionRequiredServerErrorMessage = [
|
|
|
48336
48472
|
loginRequired,
|
|
48337
48473
|
badToken,
|
|
48338
48474
|
uxNotAllowed,
|
|
48475
|
+
interruptedUser,
|
|
48339
48476
|
];
|
|
48340
48477
|
const InteractionRequiredAuthSubErrorMessage = [
|
|
48341
48478
|
"message_only",
|
|
@@ -48344,6 +48481,7 @@ const InteractionRequiredAuthSubErrorMessage = [
|
|
|
48344
48481
|
"user_password_expired",
|
|
48345
48482
|
"consent_required",
|
|
48346
48483
|
"bad_token",
|
|
48484
|
+
"interrupted_user",
|
|
48347
48485
|
];
|
|
48348
48486
|
const InteractionRequiredAuthErrorMessages = {
|
|
48349
48487
|
[noTokensFound]: "No refresh token found in the cache. Please sign-in.",
|
|
@@ -48351,6 +48489,7 @@ const InteractionRequiredAuthErrorMessages = {
|
|
|
48351
48489
|
[refreshTokenExpired]: "Refresh token has expired.",
|
|
48352
48490
|
[badToken]: "Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve.",
|
|
48353
48491
|
[uxNotAllowed]: "`canShowUI` flag in Edge was set to false. User interaction required on web page. Please invoke an interactive API to resolve.",
|
|
48492
|
+
[interruptedUser]: "The user could not be authenticated due to an interrupted state. Please invoke an interactive API to resolve.",
|
|
48354
48493
|
};
|
|
48355
48494
|
/**
|
|
48356
48495
|
* Error thrown when user interaction is required.
|
|
@@ -48393,7 +48532,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
48393
48532
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
48394
48533
|
}
|
|
48395
48534
|
|
|
48396
|
-
/*! @azure/msal-common v15.
|
|
48535
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48397
48536
|
|
|
48398
48537
|
/*
|
|
48399
48538
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48465,7 +48604,7 @@ class ProtocolUtils {
|
|
|
48465
48604
|
}
|
|
48466
48605
|
}
|
|
48467
48606
|
|
|
48468
|
-
/*! @azure/msal-common v15.
|
|
48607
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48469
48608
|
|
|
48470
48609
|
/*
|
|
48471
48610
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48547,7 +48686,7 @@ class PopTokenGenerator {
|
|
|
48547
48686
|
}
|
|
48548
48687
|
}
|
|
48549
48688
|
|
|
48550
|
-
/*! @azure/msal-common v15.
|
|
48689
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48551
48690
|
/*
|
|
48552
48691
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
48553
48692
|
* Licensed under the MIT License.
|
|
@@ -48574,7 +48713,7 @@ class PopTokenGenerator {
|
|
|
48574
48713
|
}
|
|
48575
48714
|
}
|
|
48576
48715
|
|
|
48577
|
-
/*! @azure/msal-common v15.
|
|
48716
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48578
48717
|
|
|
48579
48718
|
/*
|
|
48580
48719
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -48913,7 +49052,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
48913
49052
|
return baseAccount;
|
|
48914
49053
|
}
|
|
48915
49054
|
|
|
48916
|
-
/*! @azure/msal-common v15.
|
|
49055
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48917
49056
|
/*
|
|
48918
49057
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
48919
49058
|
* Licensed under the MIT License.
|
|
@@ -48931,7 +49070,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
48931
49070
|
}
|
|
48932
49071
|
}
|
|
48933
49072
|
|
|
48934
|
-
/*! @azure/msal-common v15.
|
|
49073
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
48935
49074
|
|
|
48936
49075
|
/*
|
|
48937
49076
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49080,11 +49219,6 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
49080
49219
|
throw createClientConfigurationError(missingSshJwk);
|
|
49081
49220
|
}
|
|
49082
49221
|
}
|
|
49083
|
-
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
49084
|
-
(this.config.authOptions.clientCapabilities &&
|
|
49085
|
-
this.config.authOptions.clientCapabilities.length > 0)) {
|
|
49086
|
-
addClaims(parameters, request.claims, this.config.authOptions.clientCapabilities);
|
|
49087
|
-
}
|
|
49088
49222
|
let ccsCred = undefined;
|
|
49089
49223
|
if (request.clientInfo) {
|
|
49090
49224
|
try {
|
|
@@ -49134,6 +49268,15 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
49134
49268
|
});
|
|
49135
49269
|
}
|
|
49136
49270
|
instrumentBrokerParams(parameters, request.correlationId, this.performanceClient);
|
|
49271
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
49272
|
+
const configClaims = request.skipBrokerClaims &&
|
|
49273
|
+
parameters.has(BROKER_CLIENT_ID)
|
|
49274
|
+
? undefined
|
|
49275
|
+
: this.config.authOptions.clientCapabilities;
|
|
49276
|
+
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
49277
|
+
(configClaims && configClaims.length > 0)) {
|
|
49278
|
+
addClaims(parameters, request.claims, configClaims);
|
|
49279
|
+
}
|
|
49137
49280
|
return mapToQueryString(parameters);
|
|
49138
49281
|
}
|
|
49139
49282
|
/**
|
|
@@ -49167,7 +49310,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
49167
49310
|
}
|
|
49168
49311
|
}
|
|
49169
49312
|
|
|
49170
|
-
/*! @azure/msal-common v15.
|
|
49313
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49171
49314
|
|
|
49172
49315
|
/*
|
|
49173
49316
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49345,11 +49488,6 @@ class RefreshTokenClient extends BaseClient {
|
|
|
49345
49488
|
throw createClientConfigurationError(missingSshJwk);
|
|
49346
49489
|
}
|
|
49347
49490
|
}
|
|
49348
|
-
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
49349
|
-
(this.config.authOptions.clientCapabilities &&
|
|
49350
|
-
this.config.authOptions.clientCapabilities.length > 0)) {
|
|
49351
|
-
addClaims(parameters, request.claims, this.config.authOptions.clientCapabilities);
|
|
49352
|
-
}
|
|
49353
49491
|
if (this.config.systemOptions.preventCorsPreflight &&
|
|
49354
49492
|
request.ccsCredential) {
|
|
49355
49493
|
switch (request.ccsCredential.type) {
|
|
@@ -49375,11 +49513,20 @@ class RefreshTokenClient extends BaseClient {
|
|
|
49375
49513
|
addExtraQueryParameters(parameters, request.tokenBodyParameters);
|
|
49376
49514
|
}
|
|
49377
49515
|
instrumentBrokerParams(parameters, request.correlationId, this.performanceClient);
|
|
49516
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
49517
|
+
const configClaims = request.skipBrokerClaims &&
|
|
49518
|
+
parameters.has(BROKER_CLIENT_ID)
|
|
49519
|
+
? undefined
|
|
49520
|
+
: this.config.authOptions.clientCapabilities;
|
|
49521
|
+
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
49522
|
+
(configClaims && configClaims.length > 0)) {
|
|
49523
|
+
addClaims(parameters, request.claims, configClaims);
|
|
49524
|
+
}
|
|
49378
49525
|
return mapToQueryString(parameters);
|
|
49379
49526
|
}
|
|
49380
49527
|
}
|
|
49381
49528
|
|
|
49382
|
-
/*! @azure/msal-common v15.
|
|
49529
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49383
49530
|
|
|
49384
49531
|
/*
|
|
49385
49532
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49477,7 +49624,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
49477
49624
|
}
|
|
49478
49625
|
}
|
|
49479
49626
|
|
|
49480
|
-
/*! @azure/msal-common v15.
|
|
49627
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49481
49628
|
|
|
49482
49629
|
/*
|
|
49483
49630
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49492,7 +49639,7 @@ const StubbedNetworkModule = {
|
|
|
49492
49639
|
},
|
|
49493
49640
|
};
|
|
49494
49641
|
|
|
49495
|
-
/*! @azure/msal-common v15.
|
|
49642
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49496
49643
|
|
|
49497
49644
|
/*
|
|
49498
49645
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49524,6 +49671,8 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
|
|
|
49524
49671
|
addResponseMode(parameters, request.responseMode);
|
|
49525
49672
|
// add client_info=1
|
|
49526
49673
|
addClientInfo(parameters);
|
|
49674
|
+
// add clidata=1
|
|
49675
|
+
addCliData(parameters);
|
|
49527
49676
|
if (request.prompt) {
|
|
49528
49677
|
addPrompt(parameters, request.prompt);
|
|
49529
49678
|
performanceClient?.addFields({ prompt: request.prompt }, correlationId);
|
|
@@ -49613,14 +49762,17 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
|
|
|
49613
49762
|
if (request.state) {
|
|
49614
49763
|
addState(parameters, request.state);
|
|
49615
49764
|
}
|
|
49616
|
-
if (request.claims ||
|
|
49617
|
-
(authOptions.clientCapabilities &&
|
|
49618
|
-
authOptions.clientCapabilities.length > 0)) {
|
|
49619
|
-
addClaims(parameters, request.claims, authOptions.clientCapabilities);
|
|
49620
|
-
}
|
|
49621
49765
|
if (request.embeddedClientId) {
|
|
49622
49766
|
addBrokerParameters(parameters, authOptions.clientId, authOptions.redirectUri);
|
|
49623
49767
|
}
|
|
49768
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
49769
|
+
const configClaims = request.skipBrokerClaims &&
|
|
49770
|
+
parameters.has(BROKER_CLIENT_ID)
|
|
49771
|
+
? undefined
|
|
49772
|
+
: authOptions.clientCapabilities;
|
|
49773
|
+
if (request.claims || (configClaims && configClaims.length > 0)) {
|
|
49774
|
+
addClaims(parameters, request.claims, configClaims);
|
|
49775
|
+
}
|
|
49624
49776
|
// If extraQueryParameters includes instance_aware its value will be added when extraQueryParameters are added
|
|
49625
49777
|
if (authOptions.instanceAware &&
|
|
49626
49778
|
(!request.extraQueryParameters ||
|
|
@@ -49716,7 +49868,7 @@ function extractLoginHint(account) {
|
|
|
49716
49868
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
49717
49869
|
}
|
|
49718
49870
|
|
|
49719
|
-
/*! @azure/msal-common v15.
|
|
49871
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49720
49872
|
|
|
49721
49873
|
/*
|
|
49722
49874
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -49979,7 +50131,7 @@ class ServerTelemetryManager {
|
|
|
49979
50131
|
}
|
|
49980
50132
|
}
|
|
49981
50133
|
|
|
49982
|
-
/*! @azure/msal-common v15.
|
|
50134
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49983
50135
|
/*
|
|
49984
50136
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
49985
50137
|
* Licensed under the MIT License.
|
|
@@ -49987,7 +50139,7 @@ class ServerTelemetryManager {
|
|
|
49987
50139
|
const missingKidError = "missing_kid_error";
|
|
49988
50140
|
const missingAlgError = "missing_alg_error";
|
|
49989
50141
|
|
|
49990
|
-
/*! @azure/msal-common v15.
|
|
50142
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
49991
50143
|
|
|
49992
50144
|
/*
|
|
49993
50145
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50012,7 +50164,7 @@ function createJoseHeaderError(code) {
|
|
|
50012
50164
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
50013
50165
|
}
|
|
50014
50166
|
|
|
50015
|
-
/*! @azure/msal-common v15.
|
|
50167
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
50016
50168
|
|
|
50017
50169
|
/*
|
|
50018
50170
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50052,7 +50204,7 @@ class JoseHeader {
|
|
|
50052
50204
|
}
|
|
50053
50205
|
}
|
|
50054
50206
|
|
|
50055
|
-
/*! @azure/msal-browser v4.
|
|
50207
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50056
50208
|
/*
|
|
50057
50209
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
50058
50210
|
* Licensed under the MIT License.
|
|
@@ -50109,7 +50261,7 @@ const failedToParseHeaders = "failed_to_parse_headers";
|
|
|
50109
50261
|
const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
|
|
50110
50262
|
const timedOut = "timed_out";
|
|
50111
50263
|
|
|
50112
|
-
/*! @azure/msal-browser v4.
|
|
50264
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50113
50265
|
|
|
50114
50266
|
/*
|
|
50115
50267
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50186,7 +50338,7 @@ function createBrowserAuthError(errorCode, subError) {
|
|
|
50186
50338
|
return new BrowserAuthError(errorCode, subError);
|
|
50187
50339
|
}
|
|
50188
50340
|
|
|
50189
|
-
/*! @azure/msal-browser v4.
|
|
50341
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50190
50342
|
|
|
50191
50343
|
/*
|
|
50192
50344
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50375,7 +50527,7 @@ const iFrameRenewalPolicies = [
|
|
|
50375
50527
|
CacheLookupPolicy.RefreshTokenAndNetwork,
|
|
50376
50528
|
];
|
|
50377
50529
|
|
|
50378
|
-
/*! @azure/msal-browser v4.
|
|
50530
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50379
50531
|
/*
|
|
50380
50532
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
50381
50533
|
* Licensed under the MIT License.
|
|
@@ -50420,7 +50572,7 @@ function base64EncArr(aBytes) {
|
|
|
50420
50572
|
return btoa(binString);
|
|
50421
50573
|
}
|
|
50422
50574
|
|
|
50423
|
-
/*! @azure/msal-browser v4.
|
|
50575
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50424
50576
|
|
|
50425
50577
|
/*
|
|
50426
50578
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50459,7 +50611,7 @@ function base64DecToArr(base64String) {
|
|
|
50459
50611
|
return Uint8Array.from(binString, (m) => m.codePointAt(0) || 0);
|
|
50460
50612
|
}
|
|
50461
50613
|
|
|
50462
|
-
/*! @azure/msal-browser v4.
|
|
50614
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50463
50615
|
|
|
50464
50616
|
/*
|
|
50465
50617
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50758,7 +50910,7 @@ async function hashString(plainText) {
|
|
|
50758
50910
|
return urlEncodeArr(hashBytes);
|
|
50759
50911
|
}
|
|
50760
50912
|
|
|
50761
|
-
/*! @azure/msal-browser v4.
|
|
50913
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50762
50914
|
/*
|
|
50763
50915
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
50764
50916
|
* Licensed under the MIT License.
|
|
@@ -50767,7 +50919,7 @@ const storageNotSupported = "storage_not_supported";
|
|
|
50767
50919
|
const stubbedPublicClientApplicationCalled = "stubbed_public_client_application_called";
|
|
50768
50920
|
const inMemRedirectUnavailable = "in_mem_redirect_unavailable";
|
|
50769
50921
|
|
|
50770
|
-
/*! @azure/msal-browser v4.
|
|
50922
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50771
50923
|
|
|
50772
50924
|
/*
|
|
50773
50925
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50807,7 +50959,7 @@ function createBrowserConfigurationAuthError(errorCode) {
|
|
|
50807
50959
|
return new BrowserConfigurationAuthError(errorCode, BrowserConfigurationAuthErrorMessages[errorCode]);
|
|
50808
50960
|
}
|
|
50809
50961
|
|
|
50810
|
-
/*! @azure/msal-browser v4.
|
|
50962
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50811
50963
|
|
|
50812
50964
|
/*
|
|
50813
50965
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -50969,7 +51121,7 @@ function createGuid() {
|
|
|
50969
51121
|
return createNewGuid();
|
|
50970
51122
|
}
|
|
50971
51123
|
|
|
50972
|
-
/*! @azure/msal-browser v4.
|
|
51124
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
50973
51125
|
|
|
50974
51126
|
/*
|
|
50975
51127
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51012,7 +51164,7 @@ class NavigationClient {
|
|
|
51012
51164
|
}
|
|
51013
51165
|
}
|
|
51014
51166
|
|
|
51015
|
-
/*! @azure/msal-browser v4.
|
|
51167
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51016
51168
|
|
|
51017
51169
|
/*
|
|
51018
51170
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51133,7 +51285,7 @@ function getHeaderDict(headers) {
|
|
|
51133
51285
|
}
|
|
51134
51286
|
}
|
|
51135
51287
|
|
|
51136
|
-
/*! @azure/msal-browser v4.
|
|
51288
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51137
51289
|
|
|
51138
51290
|
/*
|
|
51139
51291
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51182,6 +51334,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
51182
51334
|
supportsNestedAppAuth: false,
|
|
51183
51335
|
instanceAware: false,
|
|
51184
51336
|
encodeExtraQueryParams: false,
|
|
51337
|
+
verifySSO: false,
|
|
51185
51338
|
};
|
|
51186
51339
|
// Default cache options for browser
|
|
51187
51340
|
const DEFAULT_CACHE_OPTIONS = {
|
|
@@ -51268,12 +51421,12 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
51268
51421
|
return overlayedConfig;
|
|
51269
51422
|
}
|
|
51270
51423
|
|
|
51271
|
-
/*! @azure/msal-browser v4.
|
|
51424
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51272
51425
|
/* eslint-disable header/header */
|
|
51273
51426
|
const name$1 = "@azure/msal-browser";
|
|
51274
|
-
const version = "4.
|
|
51427
|
+
const version = "4.30.0";
|
|
51275
51428
|
|
|
51276
|
-
/*! @azure/msal-browser v4.
|
|
51429
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51277
51430
|
/*
|
|
51278
51431
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
51279
51432
|
* Licensed under the MIT License.
|
|
@@ -51301,7 +51454,7 @@ function getTokenKeysCacheKey(clientId, schema = CREDENTIAL_SCHEMA_VERSION) {
|
|
|
51301
51454
|
return `${PREFIX}.${schema}.${TOKEN_KEYS}.${clientId}`;
|
|
51302
51455
|
}
|
|
51303
51456
|
|
|
51304
|
-
/*! @azure/msal-browser v4.
|
|
51457
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51305
51458
|
|
|
51306
51459
|
/*
|
|
51307
51460
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51398,7 +51551,7 @@ class BaseOperatingContext {
|
|
|
51398
51551
|
}
|
|
51399
51552
|
}
|
|
51400
51553
|
|
|
51401
|
-
/*! @azure/msal-browser v4.
|
|
51554
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51402
51555
|
|
|
51403
51556
|
/*
|
|
51404
51557
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51444,7 +51597,7 @@ StandardOperatingContext.MODULE_NAME = "";
|
|
|
51444
51597
|
*/
|
|
51445
51598
|
StandardOperatingContext.ID = "StandardOperatingContext";
|
|
51446
51599
|
|
|
51447
|
-
/*! @azure/msal-browser v4.
|
|
51600
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51448
51601
|
|
|
51449
51602
|
/*
|
|
51450
51603
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51647,7 +51800,7 @@ class DatabaseStorage {
|
|
|
51647
51800
|
}
|
|
51648
51801
|
}
|
|
51649
51802
|
|
|
51650
|
-
/*! @azure/msal-browser v4.
|
|
51803
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51651
51804
|
/*
|
|
51652
51805
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
51653
51806
|
* Licensed under the MIT License.
|
|
@@ -51693,7 +51846,7 @@ class MemoryStorage {
|
|
|
51693
51846
|
}
|
|
51694
51847
|
}
|
|
51695
51848
|
|
|
51696
|
-
/*! @azure/msal-browser v4.
|
|
51849
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51697
51850
|
|
|
51698
51851
|
/*
|
|
51699
51852
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -51827,7 +51980,7 @@ class AsyncMemoryStorage {
|
|
|
51827
51980
|
}
|
|
51828
51981
|
}
|
|
51829
51982
|
|
|
51830
|
-
/*! @azure/msal-browser v4.
|
|
51983
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
51831
51984
|
|
|
51832
51985
|
/*
|
|
51833
51986
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -52008,7 +52161,7 @@ function getSortedObjectString(obj) {
|
|
|
52008
52161
|
return JSON.stringify(obj, Object.keys(obj).sort());
|
|
52009
52162
|
}
|
|
52010
52163
|
|
|
52011
|
-
/*! @azure/msal-browser v4.
|
|
52164
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52012
52165
|
|
|
52013
52166
|
/*
|
|
52014
52167
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -52086,7 +52239,7 @@ function getCookieExpirationTime(cookieLifeDays) {
|
|
|
52086
52239
|
return expr.toUTCString();
|
|
52087
52240
|
}
|
|
52088
52241
|
|
|
52089
|
-
/*! @azure/msal-browser v4.
|
|
52242
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52090
52243
|
|
|
52091
52244
|
/*
|
|
52092
52245
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -52128,7 +52281,7 @@ function getTokenKeys(clientId, storage, schemaVersion) {
|
|
|
52128
52281
|
};
|
|
52129
52282
|
}
|
|
52130
52283
|
|
|
52131
|
-
/*! @azure/msal-browser v4.
|
|
52284
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52132
52285
|
/*
|
|
52133
52286
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
52134
52287
|
* Licensed under the MIT License.
|
|
@@ -52139,7 +52292,7 @@ function isEncrypted(data) {
|
|
|
52139
52292
|
data.hasOwnProperty("data"));
|
|
52140
52293
|
}
|
|
52141
52294
|
|
|
52142
|
-
/*! @azure/msal-browser v4.
|
|
52295
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52143
52296
|
|
|
52144
52297
|
/*
|
|
52145
52298
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -52429,7 +52582,7 @@ class LocalStorage {
|
|
|
52429
52582
|
}
|
|
52430
52583
|
}
|
|
52431
52584
|
|
|
52432
|
-
/*! @azure/msal-browser v4.
|
|
52585
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52433
52586
|
|
|
52434
52587
|
/*
|
|
52435
52588
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -52471,7 +52624,7 @@ class SessionStorage {
|
|
|
52471
52624
|
}
|
|
52472
52625
|
}
|
|
52473
52626
|
|
|
52474
|
-
/*! @azure/msal-browser v4.
|
|
52627
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52475
52628
|
/*
|
|
52476
52629
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
52477
52630
|
* Licensed under the MIT License.
|
|
@@ -52506,7 +52659,7 @@ const EventType = {
|
|
|
52506
52659
|
BROKER_CONNECTION_ESTABLISHED: "msal:brokerConnectionEstablished",
|
|
52507
52660
|
};
|
|
52508
52661
|
|
|
52509
|
-
/*! @azure/msal-browser v4.
|
|
52662
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52510
52663
|
/*
|
|
52511
52664
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
52512
52665
|
* Licensed under the MIT License.
|
|
@@ -52523,7 +52676,7 @@ function removeElementFromArray(array, element) {
|
|
|
52523
52676
|
}
|
|
52524
52677
|
}
|
|
52525
52678
|
|
|
52526
|
-
/*! @azure/msal-browser v4.
|
|
52679
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
52527
52680
|
|
|
52528
52681
|
/*
|
|
52529
52682
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -53938,7 +54091,7 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, even
|
|
|
53938
54091
|
return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler);
|
|
53939
54092
|
};
|
|
53940
54093
|
|
|
53941
|
-
/*! @azure/msal-browser v4.
|
|
54094
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
53942
54095
|
/*
|
|
53943
54096
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
53944
54097
|
* Licensed under the MIT License.
|
|
@@ -54063,7 +54216,7 @@ function getActiveAccount(browserStorage, correlationId) {
|
|
|
54063
54216
|
return browserStorage.getActiveAccount(correlationId);
|
|
54064
54217
|
}
|
|
54065
54218
|
|
|
54066
|
-
/*! @azure/msal-browser v4.
|
|
54219
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54067
54220
|
|
|
54068
54221
|
/*
|
|
54069
54222
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54169,7 +54322,7 @@ class EventHandler {
|
|
|
54169
54322
|
}
|
|
54170
54323
|
}
|
|
54171
54324
|
|
|
54172
|
-
/*! @azure/msal-browser v4.
|
|
54325
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54173
54326
|
|
|
54174
54327
|
/*
|
|
54175
54328
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54285,7 +54438,7 @@ class BaseInteractionClient {
|
|
|
54285
54438
|
}
|
|
54286
54439
|
}
|
|
54287
54440
|
|
|
54288
|
-
/*! @azure/msal-browser v4.
|
|
54441
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54289
54442
|
|
|
54290
54443
|
/*
|
|
54291
54444
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54370,7 +54523,7 @@ function validateRequestMethod(interactionRequest, protocolMode) {
|
|
|
54370
54523
|
return httpMethod;
|
|
54371
54524
|
}
|
|
54372
54525
|
|
|
54373
|
-
/*! @azure/msal-browser v4.
|
|
54526
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54374
54527
|
|
|
54375
54528
|
/*
|
|
54376
54529
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54542,6 +54695,10 @@ class StandardInteractionClient extends BaseInteractionClient {
|
|
|
54542
54695
|
async initializeAuthorizationRequest(request, interactionType) {
|
|
54543
54696
|
this.performanceClient.addQueueMeasurement(PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, this.correlationId);
|
|
54544
54697
|
const redirectUri = this.getRedirectUri(request.redirectUri);
|
|
54698
|
+
if (new URL(redirectUri).origin !== new URL(window.location.href).origin) {
|
|
54699
|
+
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);
|
|
54700
|
+
this.performanceClient.addFields({ isRedirectUriCrossOrigin: true }, this.correlationId);
|
|
54701
|
+
}
|
|
54545
54702
|
const browserState = {
|
|
54546
54703
|
interactionType: interactionType,
|
|
54547
54704
|
};
|
|
@@ -54574,7 +54731,7 @@ class StandardInteractionClient extends BaseInteractionClient {
|
|
|
54574
54731
|
}
|
|
54575
54732
|
}
|
|
54576
54733
|
|
|
54577
|
-
/*! @azure/msal-browser v4.
|
|
54734
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54578
54735
|
|
|
54579
54736
|
/*
|
|
54580
54737
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54598,7 +54755,7 @@ function extractBrowserRequestState(browserCrypto, state) {
|
|
|
54598
54755
|
}
|
|
54599
54756
|
}
|
|
54600
54757
|
|
|
54601
|
-
/*! @azure/msal-browser v4.
|
|
54758
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54602
54759
|
|
|
54603
54760
|
/*
|
|
54604
54761
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54637,7 +54794,7 @@ function validateInteractionType(response, browserCrypto, interactionType) {
|
|
|
54637
54794
|
}
|
|
54638
54795
|
}
|
|
54639
54796
|
|
|
54640
|
-
/*! @azure/msal-browser v4.
|
|
54797
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54641
54798
|
|
|
54642
54799
|
/*
|
|
54643
54800
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54733,7 +54890,7 @@ class InteractionHandler {
|
|
|
54733
54890
|
}
|
|
54734
54891
|
}
|
|
54735
54892
|
|
|
54736
|
-
/*! @azure/msal-browser v4.
|
|
54893
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54737
54894
|
/*
|
|
54738
54895
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
54739
54896
|
* Licensed under the MIT License.
|
|
@@ -54742,7 +54899,7 @@ const contentError = "ContentError";
|
|
|
54742
54899
|
const pageException = "PageException";
|
|
54743
54900
|
const userSwitch = "user_switch";
|
|
54744
54901
|
|
|
54745
|
-
/*! @azure/msal-browser v4.
|
|
54902
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54746
54903
|
/*
|
|
54747
54904
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
54748
54905
|
* Licensed under the MIT License.
|
|
@@ -54755,7 +54912,7 @@ const DISABLED = "DISABLED";
|
|
|
54755
54912
|
const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
|
|
54756
54913
|
const UX_NOT_ALLOWED = "UX_NOT_ALLOWED";
|
|
54757
54914
|
|
|
54758
|
-
/*! @azure/msal-browser v4.
|
|
54915
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54759
54916
|
|
|
54760
54917
|
/*
|
|
54761
54918
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54820,7 +54977,7 @@ function createNativeAuthError(code, description, ext) {
|
|
|
54820
54977
|
return new NativeAuthError(code, NativeAuthErrorMessages[code] || description, ext);
|
|
54821
54978
|
}
|
|
54822
54979
|
|
|
54823
|
-
/*! @azure/msal-browser v4.
|
|
54980
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54824
54981
|
|
|
54825
54982
|
/*
|
|
54826
54983
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -54870,7 +55027,7 @@ class SilentCacheClient extends StandardInteractionClient {
|
|
|
54870
55027
|
}
|
|
54871
55028
|
}
|
|
54872
55029
|
|
|
54873
|
-
/*! @azure/msal-browser v4.
|
|
55030
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
54874
55031
|
|
|
54875
55032
|
/*
|
|
54876
55033
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -55364,11 +55521,19 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
55364
55521
|
this.logger.trace("NativeInteractionClient - initializeNativeRequest called");
|
|
55365
55522
|
const canonicalAuthority = await this.getCanonicalAuthority(request);
|
|
55366
55523
|
// 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.
|
|
55367
|
-
const { scopes, ...remainingProperties } = request;
|
|
55524
|
+
const { scopes, claims, ...remainingProperties } = request;
|
|
55368
55525
|
const scopeSet = new ScopeSet(scopes || []);
|
|
55369
55526
|
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
|
|
55527
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
55528
|
+
const configClaims = request.skipBrokerClaims && !!request.embeddedClientId
|
|
55529
|
+
? undefined
|
|
55530
|
+
: this.config.auth.clientCapabilities;
|
|
55531
|
+
const mergedClaims = configClaims && configClaims.length
|
|
55532
|
+
? addClientCapabilitiesToClaims(claims, configClaims)
|
|
55533
|
+
: claims;
|
|
55370
55534
|
const validatedRequest = {
|
|
55371
55535
|
...remainingProperties,
|
|
55536
|
+
claims: mergedClaims,
|
|
55372
55537
|
accountId: this.accountId,
|
|
55373
55538
|
clientId: this.config.auth.clientId,
|
|
55374
55539
|
authority: canonicalAuthority.urlString,
|
|
@@ -55497,12 +55662,59 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
55497
55662
|
}
|
|
55498
55663
|
}
|
|
55499
55664
|
|
|
55500
|
-
/*! @azure/msal-browser v4.
|
|
55665
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
55501
55666
|
|
|
55502
55667
|
/*
|
|
55503
55668
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
55504
55669
|
* Licensed under the MIT License.
|
|
55505
55670
|
*/
|
|
55671
|
+
const clientDataAccountTypeMapping = new Map([
|
|
55672
|
+
["e", "AAD"],
|
|
55673
|
+
["m", "MSA"],
|
|
55674
|
+
]);
|
|
55675
|
+
/**
|
|
55676
|
+
* Parses the clientdata response parameter from the /authorize endpoint.
|
|
55677
|
+
*
|
|
55678
|
+
* The clientdata value is URL-encoded and pipe-delimited:
|
|
55679
|
+
* urlencoded(account_type | error | sub_error | cloud_instance | caller_data_boundary)
|
|
55680
|
+
*
|
|
55681
|
+
* @param clientdata - The raw clientdata string from the authorize response
|
|
55682
|
+
* @returns Parsed ClientData object, or null if the input is empty/invalid
|
|
55683
|
+
*/
|
|
55684
|
+
function parseClientData(clientdata) {
|
|
55685
|
+
if (!clientdata) {
|
|
55686
|
+
return null;
|
|
55687
|
+
}
|
|
55688
|
+
try {
|
|
55689
|
+
const decoded = decodeURIComponent(clientdata);
|
|
55690
|
+
const parts = decoded.split("|");
|
|
55691
|
+
if (parts.length < 5) {
|
|
55692
|
+
return null;
|
|
55693
|
+
}
|
|
55694
|
+
return {
|
|
55695
|
+
accountType: clientDataAccountTypeMapping.get(parts[0]?.trim() || "") || "",
|
|
55696
|
+
error: parts[1]?.trim() || "",
|
|
55697
|
+
subError: parts[2]?.trim() || "",
|
|
55698
|
+
cloudInstance: parts[3]?.trim() || "",
|
|
55699
|
+
callerDataBoundary: parts[4]?.trim() || "",
|
|
55700
|
+
};
|
|
55701
|
+
}
|
|
55702
|
+
catch {
|
|
55703
|
+
return null;
|
|
55704
|
+
}
|
|
55705
|
+
}
|
|
55706
|
+
/**
|
|
55707
|
+
* Instruments account type, error, and suberror from clientdata
|
|
55708
|
+
*/
|
|
55709
|
+
function instrumentClientData(response, correlationId, performanceClient) {
|
|
55710
|
+
const parsed = parseClientData(response.clientdata);
|
|
55711
|
+
parsed?.accountType &&
|
|
55712
|
+
performanceClient.addFields({ accountType: parsed.accountType }, correlationId);
|
|
55713
|
+
parsed?.error &&
|
|
55714
|
+
performanceClient.addFields({ serverErrorNo: parsed.error }, correlationId);
|
|
55715
|
+
parsed?.subError &&
|
|
55716
|
+
performanceClient.addFields({ serverSubErrorNo: parsed.subError }, correlationId);
|
|
55717
|
+
}
|
|
55506
55718
|
/**
|
|
55507
55719
|
* Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR
|
|
55508
55720
|
* @param config
|
|
@@ -55665,6 +55877,8 @@ async function handleResponsePlatformBroker(request, accountId, apiId, config, b
|
|
|
55665
55877
|
async function handleResponseCode(request, response, codeVerifier, apiId, config, authClient, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider) {
|
|
55666
55878
|
// Remove throttle if it exists
|
|
55667
55879
|
ThrottlingUtils.removeThrottle(browserStorage, config.auth.clientId, request);
|
|
55880
|
+
// Instrument clientdata telemetry fields from the authorize response
|
|
55881
|
+
instrumentClientData(response, request.correlationId, performanceClient);
|
|
55668
55882
|
if (response.accountId) {
|
|
55669
55883
|
return invokeAsync(handleResponsePlatformBroker, PerformanceEvents.HandleResponsePlatformBroker, logger, performanceClient, request.correlationId)(request, response.accountId, apiId, config, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider);
|
|
55670
55884
|
}
|
|
@@ -55697,6 +55911,8 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
|
|
|
55697
55911
|
async function handleResponseEAR(request, response, apiId, config, authority, browserStorage, nativeStorage, eventHandler, logger, performanceClient, platformAuthProvider) {
|
|
55698
55912
|
// Remove throttle if it exists
|
|
55699
55913
|
ThrottlingUtils.removeThrottle(browserStorage, config.auth.clientId, request);
|
|
55914
|
+
// Instrument clientdata telemetry fields from the authorize response
|
|
55915
|
+
instrumentClientData(response, request.correlationId, performanceClient);
|
|
55700
55916
|
// Validate state & check response for errors
|
|
55701
55917
|
validateAuthorizationResponse(response, request.state);
|
|
55702
55918
|
if (!response.ear_jwe) {
|
|
@@ -55726,7 +55942,7 @@ async function handleResponseEAR(request, response, apiId, config, authority, br
|
|
|
55726
55942
|
return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), PerformanceEvents.HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
|
|
55727
55943
|
}
|
|
55728
55944
|
|
|
55729
|
-
/*! @azure/msal-browser v4.
|
|
55945
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
55730
55946
|
|
|
55731
55947
|
/*
|
|
55732
55948
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -55783,7 +55999,7 @@ async function generateCodeChallengeFromVerifier(pkceCodeVerifier, performanceCl
|
|
|
55783
55999
|
}
|
|
55784
56000
|
}
|
|
55785
56001
|
|
|
55786
|
-
/*! @azure/msal-browser v4.
|
|
56002
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
55787
56003
|
|
|
55788
56004
|
/*
|
|
55789
56005
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -56048,7 +56264,7 @@ class PlatformAuthExtensionHandler {
|
|
|
56048
56264
|
}
|
|
56049
56265
|
}
|
|
56050
56266
|
|
|
56051
|
-
/*! @azure/msal-browser v4.
|
|
56267
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
56052
56268
|
|
|
56053
56269
|
/*
|
|
56054
56270
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -56174,18 +56390,32 @@ class PlatformAuthDOMHandler {
|
|
|
56174
56390
|
return nativeResponse;
|
|
56175
56391
|
}
|
|
56176
56392
|
getDOMExtraParams(extraParameters) {
|
|
56177
|
-
|
|
56178
|
-
|
|
56179
|
-
|
|
56180
|
-
|
|
56181
|
-
|
|
56182
|
-
|
|
56183
|
-
|
|
56184
|
-
|
|
56393
|
+
try {
|
|
56394
|
+
const stringifiedProperties = {};
|
|
56395
|
+
for (const [key, value] of Object.entries(extraParameters)) {
|
|
56396
|
+
if (!value) {
|
|
56397
|
+
continue;
|
|
56398
|
+
}
|
|
56399
|
+
if (typeof value === "object") {
|
|
56400
|
+
stringifiedProperties[key] = JSON.stringify(value);
|
|
56401
|
+
}
|
|
56402
|
+
else {
|
|
56403
|
+
stringifiedProperties[key] = String(value);
|
|
56404
|
+
}
|
|
56405
|
+
}
|
|
56406
|
+
return stringifiedProperties;
|
|
56407
|
+
}
|
|
56408
|
+
catch (e) {
|
|
56409
|
+
this.logger.error(this.platformAuthType + " - Error stringifying extra parameters");
|
|
56410
|
+
this.logger.errorPii(this.platformAuthType +
|
|
56411
|
+
" - Error stringifying extra parameters: " +
|
|
56412
|
+
e);
|
|
56413
|
+
return {};
|
|
56414
|
+
}
|
|
56185
56415
|
}
|
|
56186
56416
|
}
|
|
56187
56417
|
|
|
56188
|
-
/*! @azure/msal-browser v4.
|
|
56418
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
56189
56419
|
async function getPlatformAuthProvider(logger, performanceClient, correlationId, nativeBrokerHandshakeTimeout, enablePlatformBrokerDOMSupport) {
|
|
56190
56420
|
logger.trace("getPlatformAuthProvider called", correlationId);
|
|
56191
56421
|
logger.trace("Has client allowed platform auth via DOM API: " +
|
|
@@ -56250,7 +56480,7 @@ function isPlatformAuthAllowed(config, logger, platformAuthProvider, authenticat
|
|
|
56250
56480
|
return true;
|
|
56251
56481
|
}
|
|
56252
56482
|
|
|
56253
|
-
/*! @azure/msal-browser v4.
|
|
56483
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
56254
56484
|
|
|
56255
56485
|
/*
|
|
56256
56486
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -56747,7 +56977,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
56747
56977
|
}
|
|
56748
56978
|
}
|
|
56749
56979
|
|
|
56750
|
-
/*! @azure/msal-browser v4.
|
|
56980
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
56751
56981
|
|
|
56752
56982
|
/*
|
|
56753
56983
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57187,7 +57417,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
57187
57417
|
}
|
|
57188
57418
|
}
|
|
57189
57419
|
|
|
57190
|
-
/*! @azure/msal-browser v4.
|
|
57420
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57191
57421
|
|
|
57192
57422
|
/*
|
|
57193
57423
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57235,6 +57465,12 @@ async function initiateEarRequest(config, authority, request, logger, performanc
|
|
|
57235
57465
|
*/
|
|
57236
57466
|
async function monitorIframeForHash(iframe, timeout, pollIntervalMilliseconds, performanceClient, logger, correlationId, responseType) {
|
|
57237
57467
|
performanceClient.addQueueMeasurement(PerformanceEvents.SilentHandlerMonitorIframeForHash, correlationId);
|
|
57468
|
+
performanceClient.addFields({
|
|
57469
|
+
iframePollIntervalMs: pollIntervalMilliseconds,
|
|
57470
|
+
iframeTimeoutMs: timeout,
|
|
57471
|
+
}, correlationId);
|
|
57472
|
+
let totalTickCount = 0;
|
|
57473
|
+
let crossOriginTickCount = 0;
|
|
57238
57474
|
return new Promise((resolve, reject) => {
|
|
57239
57475
|
if (timeout < DEFAULT_IFRAME_TIMEOUT_MS) {
|
|
57240
57476
|
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.`);
|
|
@@ -57248,6 +57484,7 @@ async function monitorIframeForHash(iframe, timeout, pollIntervalMilliseconds, p
|
|
|
57248
57484
|
reject(createBrowserAuthError(monitorWindowTimeout));
|
|
57249
57485
|
}, timeout);
|
|
57250
57486
|
const intervalId = window.setInterval(() => {
|
|
57487
|
+
totalTickCount++;
|
|
57251
57488
|
let href = "";
|
|
57252
57489
|
const contentWindow = iframe.contentWindow;
|
|
57253
57490
|
try {
|
|
@@ -57258,7 +57495,9 @@ async function monitorIframeForHash(iframe, timeout, pollIntervalMilliseconds, p
|
|
|
57258
57495
|
*/
|
|
57259
57496
|
href = contentWindow ? contentWindow.location.href : "";
|
|
57260
57497
|
}
|
|
57261
|
-
catch (e) {
|
|
57498
|
+
catch (e) {
|
|
57499
|
+
crossOriginTickCount++;
|
|
57500
|
+
}
|
|
57262
57501
|
if (!href || href === "about:blank") {
|
|
57263
57502
|
return;
|
|
57264
57503
|
}
|
|
@@ -57276,6 +57515,10 @@ async function monitorIframeForHash(iframe, timeout, pollIntervalMilliseconds, p
|
|
|
57276
57515
|
resolve(responseString);
|
|
57277
57516
|
}, pollIntervalMilliseconds);
|
|
57278
57517
|
}).finally(() => {
|
|
57518
|
+
performanceClient.addFields({
|
|
57519
|
+
iframeTickCount: totalTickCount,
|
|
57520
|
+
crossOriginTickCount: crossOriginTickCount,
|
|
57521
|
+
}, correlationId);
|
|
57279
57522
|
invoke(removeHiddenIframe, PerformanceEvents.RemoveHiddenIframe, logger, performanceClient, correlationId)(iframe);
|
|
57280
57523
|
});
|
|
57281
57524
|
}
|
|
@@ -57343,7 +57586,7 @@ function removeHiddenIframe(iframe) {
|
|
|
57343
57586
|
}
|
|
57344
57587
|
}
|
|
57345
57588
|
|
|
57346
|
-
/*! @azure/msal-browser v4.
|
|
57589
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57347
57590
|
|
|
57348
57591
|
/*
|
|
57349
57592
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57465,6 +57708,52 @@ class SilentIframeClient extends StandardInteractionClient {
|
|
|
57465
57708
|
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);
|
|
57466
57709
|
}
|
|
57467
57710
|
}
|
|
57711
|
+
/**
|
|
57712
|
+
* Verifies SSO capability by making an iframe request to /authorize without exchanging the code for tokens.
|
|
57713
|
+
* This is useful for verifying SSO capability in the background without the overhead of a full token exchange.
|
|
57714
|
+
* @param request - The SSO silent request
|
|
57715
|
+
* @returns true if SSO verification was successful with a valid authorization code, false otherwise
|
|
57716
|
+
*/
|
|
57717
|
+
async verifySso(request) {
|
|
57718
|
+
this.performanceClient.addQueueMeasurement(PerformanceEvents.SilentIframeClientAcquireToken, request.correlationId);
|
|
57719
|
+
const inputRequest = { ...request };
|
|
57720
|
+
if (!inputRequest.prompt) {
|
|
57721
|
+
inputRequest.prompt = PromptValue.NONE;
|
|
57722
|
+
}
|
|
57723
|
+
// Create silent request
|
|
57724
|
+
const silentRequest = await invokeAsync(this.initializeAuthorizationRequest.bind(this), PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, this.logger, this.performanceClient, request.correlationId)(inputRequest, InteractionType.Silent);
|
|
57725
|
+
const authClient = await invokeAsync(this.createAuthCodeClient.bind(this), PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, this.logger, this.performanceClient, request.correlationId)({
|
|
57726
|
+
serverTelemetryManager: this.initializeServerTelemetryManager(this.apiId),
|
|
57727
|
+
requestAuthority: silentRequest.authority,
|
|
57728
|
+
requestAzureCloudOptions: silentRequest.azureCloudOptions,
|
|
57729
|
+
requestExtraQueryParameters: silentRequest.extraQueryParameters,
|
|
57730
|
+
account: silentRequest.account,
|
|
57731
|
+
});
|
|
57732
|
+
const correlationId = silentRequest.correlationId;
|
|
57733
|
+
const pkceCodes = await invokeAsync(generatePkceCodes, PerformanceEvents.GeneratePkceCodes, this.logger, this.performanceClient, correlationId)(this.performanceClient, this.logger, correlationId);
|
|
57734
|
+
const requestWithPkce = {
|
|
57735
|
+
...silentRequest,
|
|
57736
|
+
codeChallenge: pkceCodes.challenge,
|
|
57737
|
+
};
|
|
57738
|
+
// Create authorize request url
|
|
57739
|
+
const navigateUrl = await invokeAsync(getAuthCodeRequestUrl, PerformanceEvents.GetAuthCodeUrl, this.logger, this.performanceClient, correlationId)(this.config, authClient.authority, requestWithPkce, this.logger, this.performanceClient);
|
|
57740
|
+
// Get the frame handle for the silent request - this triggers the SSO verification
|
|
57741
|
+
const msalFrame = await invokeAsync(initiateCodeRequest, PerformanceEvents.SilentHandlerInitiateAuthRequest, this.logger, this.performanceClient, correlationId)(navigateUrl, this.performanceClient, this.logger, correlationId, this.config.system.navigateFrameWait);
|
|
57742
|
+
const responseType = this.config.auth.OIDCOptions.serverResponseType;
|
|
57743
|
+
// Monitor the iframe for the response
|
|
57744
|
+
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);
|
|
57745
|
+
// Deserialize the response
|
|
57746
|
+
const serverParams = invoke(deserializeResponse, PerformanceEvents.DeserializeResponse, this.logger, this.performanceClient, correlationId)(responseString, responseType, this.logger);
|
|
57747
|
+
// Validate the response - this checks for errors and validates state
|
|
57748
|
+
validateAuthorizationResponse(serverParams, silentRequest.state);
|
|
57749
|
+
// Verify a valid authorization code is present
|
|
57750
|
+
if (!serverParams.code) {
|
|
57751
|
+
this.logger.warning("SSO verification response did not contain an authorization code", correlationId);
|
|
57752
|
+
return false;
|
|
57753
|
+
}
|
|
57754
|
+
this.logger.verbose("SSO verification completed successfully with valid authorization code - skipped token exchange", correlationId);
|
|
57755
|
+
return true;
|
|
57756
|
+
}
|
|
57468
57757
|
/**
|
|
57469
57758
|
* Currently Unsupported
|
|
57470
57759
|
*/
|
|
@@ -57504,7 +57793,7 @@ class SilentIframeClient extends StandardInteractionClient {
|
|
|
57504
57793
|
}
|
|
57505
57794
|
}
|
|
57506
57795
|
|
|
57507
|
-
/*! @azure/msal-browser v4.
|
|
57796
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57508
57797
|
|
|
57509
57798
|
/*
|
|
57510
57799
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57570,7 +57859,7 @@ class SilentRefreshClient extends StandardInteractionClient {
|
|
|
57570
57859
|
}
|
|
57571
57860
|
}
|
|
57572
57861
|
|
|
57573
|
-
/*! @azure/msal-browser v4.
|
|
57862
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57574
57863
|
|
|
57575
57864
|
/*
|
|
57576
57865
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57784,7 +58073,7 @@ class TokenCache {
|
|
|
57784
58073
|
}
|
|
57785
58074
|
}
|
|
57786
58075
|
|
|
57787
|
-
/*! @azure/msal-browser v4.
|
|
58076
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57788
58077
|
|
|
57789
58078
|
/*
|
|
57790
58079
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57797,7 +58086,7 @@ class HybridSpaAuthorizationCodeClient extends AuthorizationCodeClient {
|
|
|
57797
58086
|
}
|
|
57798
58087
|
}
|
|
57799
58088
|
|
|
57800
|
-
/*! @azure/msal-browser v4.
|
|
58089
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57801
58090
|
|
|
57802
58091
|
/*
|
|
57803
58092
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57863,11 +58152,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
|
|
|
57863
58152
|
}
|
|
57864
58153
|
}
|
|
57865
58154
|
|
|
57866
|
-
/*! @azure/msal-browser v4.
|
|
57867
|
-
/*
|
|
57868
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
57869
|
-
* Licensed under the MIT License.
|
|
57870
|
-
*/
|
|
58155
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57871
58156
|
function collectInstanceStats(currentClientId, performanceEvent, logger) {
|
|
57872
58157
|
const frameInstances =
|
|
57873
58158
|
// @ts-ignore
|
|
@@ -57883,7 +58168,7 @@ function collectInstanceStats(currentClientId, performanceEvent, logger) {
|
|
|
57883
58168
|
});
|
|
57884
58169
|
}
|
|
57885
58170
|
|
|
57886
|
-
/*! @azure/msal-browser v4.
|
|
58171
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
57887
58172
|
|
|
57888
58173
|
/*
|
|
57889
58174
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -57963,22 +58248,30 @@ class StandardController {
|
|
|
57963
58248
|
this.tokenCache = new TokenCache(this.config, this.browserStorage, this.logger, this.browserCrypto, this.performanceClient);
|
|
57964
58249
|
this.activeSilentTokenRequests = new Map();
|
|
57965
58250
|
// Register listener functions
|
|
57966
|
-
this.
|
|
57967
|
-
|
|
57968
|
-
this.trackPageVisibilityWithMeasurement =
|
|
57969
|
-
this.trackPageVisibilityWithMeasurement.bind(this);
|
|
58251
|
+
this.trackStateChangeWithMeasurement =
|
|
58252
|
+
this.trackStateChangeWithMeasurement.bind(this);
|
|
57970
58253
|
}
|
|
57971
58254
|
static async createController(operatingContext, request) {
|
|
57972
58255
|
const controller = new StandardController(operatingContext);
|
|
57973
58256
|
await controller.initialize(request);
|
|
57974
58257
|
return controller;
|
|
57975
58258
|
}
|
|
57976
|
-
|
|
58259
|
+
trackStateChange(correlationId, event) {
|
|
57977
58260
|
if (!correlationId) {
|
|
57978
58261
|
return;
|
|
57979
58262
|
}
|
|
57980
|
-
|
|
57981
|
-
|
|
58263
|
+
if (event.type === "visibilitychange") {
|
|
58264
|
+
this.logger.info("Perf: Visibility change detected");
|
|
58265
|
+
this.performanceClient.incrementFields({ visibilityChangeCount: 1 }, correlationId);
|
|
58266
|
+
}
|
|
58267
|
+
else if (event.type === "online") {
|
|
58268
|
+
this.logger.info("Perf: Online status change detected");
|
|
58269
|
+
this.performanceClient.incrementFields({ onlineStatusChangeCount: 1 }, correlationId);
|
|
58270
|
+
}
|
|
58271
|
+
else if (event.type === "offline") {
|
|
58272
|
+
this.logger.info("Perf: Offline status change detected");
|
|
58273
|
+
this.performanceClient.incrementFields({ onlineStatusChangeCount: 1 }, correlationId);
|
|
58274
|
+
}
|
|
57982
58275
|
}
|
|
57983
58276
|
/**
|
|
57984
58277
|
* Initializer function to perform async startup tasks such as connecting to WAM extension
|
|
@@ -58126,6 +58419,8 @@ class StandardController {
|
|
|
58126
58419
|
rootMeasurement.end({
|
|
58127
58420
|
success: true,
|
|
58128
58421
|
}, undefined, result.account);
|
|
58422
|
+
// Fire-and-forget SSO capability verification in background
|
|
58423
|
+
this.verifySsoCapability(result.account, InteractionType.Redirect);
|
|
58129
58424
|
}
|
|
58130
58425
|
else {
|
|
58131
58426
|
/*
|
|
@@ -58358,6 +58653,8 @@ class StandardController {
|
|
|
58358
58653
|
accessTokenSize: result.accessToken.length,
|
|
58359
58654
|
idTokenSize: result.idToken.length,
|
|
58360
58655
|
}, undefined, result.account);
|
|
58656
|
+
// SSO capability verification in background
|
|
58657
|
+
this.verifySsoCapability(result.account, InteractionType.Popup);
|
|
58361
58658
|
return result;
|
|
58362
58659
|
})
|
|
58363
58660
|
.catch((e) => {
|
|
@@ -58380,16 +58677,87 @@ class StandardController {
|
|
|
58380
58677
|
}
|
|
58381
58678
|
});
|
|
58382
58679
|
}
|
|
58383
|
-
|
|
58680
|
+
trackStateChangeWithMeasurement(event) {
|
|
58384
58681
|
const measurement = this.ssoSilentMeasurement ||
|
|
58385
58682
|
this.acquireTokenByCodeAsyncMeasurement;
|
|
58386
58683
|
if (!measurement) {
|
|
58387
58684
|
return;
|
|
58388
58685
|
}
|
|
58389
|
-
|
|
58390
|
-
|
|
58391
|
-
|
|
58686
|
+
if (event.type === "visibilitychange") {
|
|
58687
|
+
this.logger.info("Perf: Visibility change detected in ", measurement.event.name);
|
|
58688
|
+
measurement.increment({
|
|
58689
|
+
visibilityChangeCount: 1,
|
|
58690
|
+
});
|
|
58691
|
+
}
|
|
58692
|
+
else if (event.type === "online") {
|
|
58693
|
+
this.logger.info("Perf: Online status change detected in ", measurement.event.name);
|
|
58694
|
+
measurement.increment({
|
|
58695
|
+
onlineStatusChangeCount: 1,
|
|
58696
|
+
});
|
|
58697
|
+
}
|
|
58698
|
+
else if (event.type === "offline") {
|
|
58699
|
+
this.logger.info("Perf: Offline status change detected in ", measurement.event.name);
|
|
58700
|
+
measurement.increment({
|
|
58701
|
+
onlineStatusChangeCount: 1,
|
|
58702
|
+
});
|
|
58703
|
+
}
|
|
58704
|
+
}
|
|
58705
|
+
addStateChangeListeners(listener) {
|
|
58706
|
+
document.addEventListener("visibilitychange", listener);
|
|
58707
|
+
window.addEventListener("online", listener);
|
|
58708
|
+
window.addEventListener("offline", listener);
|
|
58709
|
+
}
|
|
58710
|
+
removeStateChangeListeners(listener) {
|
|
58711
|
+
document.removeEventListener("visibilitychange", listener);
|
|
58712
|
+
window.removeEventListener("online", listener);
|
|
58713
|
+
window.removeEventListener("offline", listener);
|
|
58714
|
+
}
|
|
58715
|
+
/**
|
|
58716
|
+
* SSO capability verification in the background.
|
|
58717
|
+
* This method makes an iframe request to /authorize to verify SSO capability without calling /token.
|
|
58718
|
+
* This method does not block the caller and tracks telemetry for success/failure.
|
|
58719
|
+
* This method only executes if verifySSO is set to true in the auth configuration.
|
|
58720
|
+
* @param account - The account to use for the SSO verification
|
|
58721
|
+
* @param parentApi - The API ID of the parent operation for logging purposes
|
|
58722
|
+
*/
|
|
58723
|
+
verifySsoCapability(account, parentApi) {
|
|
58724
|
+
// Check if SSO capability verification is enabled
|
|
58725
|
+
if (!this.config.auth.verifySSO) {
|
|
58726
|
+
return;
|
|
58727
|
+
}
|
|
58728
|
+
const correlationId = this.browserCrypto.createNewGuid();
|
|
58729
|
+
const ssoCapableMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.SsoCapable, correlationId);
|
|
58730
|
+
ssoCapableMeasurement.add({
|
|
58731
|
+
parentApi: parentApi,
|
|
58392
58732
|
});
|
|
58733
|
+
this.logger.verbose(`SSO capability verification initiated after ${parentApi}`, correlationId);
|
|
58734
|
+
/*
|
|
58735
|
+
* Use setTimeout to ensure this runs in a separate macrotask after the current call stack completes
|
|
58736
|
+
* This ensures the result is returned to the caller before the SSO verification starts and doesn't affect performance
|
|
58737
|
+
*/
|
|
58738
|
+
setTimeout(() => {
|
|
58739
|
+
const ssoVerificationRequest = {
|
|
58740
|
+
account: account,
|
|
58741
|
+
correlationId: correlationId,
|
|
58742
|
+
};
|
|
58743
|
+
const silentIframeClient = this.createSilentIframeClient(correlationId);
|
|
58744
|
+
silentIframeClient
|
|
58745
|
+
.verifySso(ssoVerificationRequest)
|
|
58746
|
+
.then((success) => {
|
|
58747
|
+
this.logger.verbose(`SSO capability verification completed after ${parentApi}, success: ${success}`, correlationId);
|
|
58748
|
+
ssoCapableMeasurement.end({
|
|
58749
|
+
fromCache: false,
|
|
58750
|
+
success: success,
|
|
58751
|
+
}, undefined, account);
|
|
58752
|
+
})
|
|
58753
|
+
.catch((error) => {
|
|
58754
|
+
this.logger.warning(`SSO capability verification failed after ${parentApi}: ${error.message}`, correlationId);
|
|
58755
|
+
ssoCapableMeasurement.end({
|
|
58756
|
+
fromCache: false,
|
|
58757
|
+
success: false,
|
|
58758
|
+
}, error, account);
|
|
58759
|
+
});
|
|
58760
|
+
}, 0);
|
|
58393
58761
|
}
|
|
58394
58762
|
// #endregion
|
|
58395
58763
|
// #region Silent Flow
|
|
@@ -58423,8 +58791,9 @@ class StandardController {
|
|
|
58423
58791
|
preflightCheck(this.initialized, this.ssoSilentMeasurement, request.account);
|
|
58424
58792
|
this.ssoSilentMeasurement?.increment({
|
|
58425
58793
|
visibilityChangeCount: 0,
|
|
58794
|
+
onlineStatusChangeCount: 0,
|
|
58426
58795
|
});
|
|
58427
|
-
|
|
58796
|
+
this.addStateChangeListeners(this.trackStateChangeWithMeasurement);
|
|
58428
58797
|
this.logger.verbose("ssoSilent called", correlationId);
|
|
58429
58798
|
this.eventHandler.emitEvent(EventType.SSO_SILENT_START, InteractionType.Silent, validRequest);
|
|
58430
58799
|
let result;
|
|
@@ -58468,7 +58837,7 @@ class StandardController {
|
|
|
58468
58837
|
throw e;
|
|
58469
58838
|
})
|
|
58470
58839
|
.finally(() => {
|
|
58471
|
-
|
|
58840
|
+
this.removeStateChangeListeners(this.trackStateChangeWithMeasurement);
|
|
58472
58841
|
});
|
|
58473
58842
|
}
|
|
58474
58843
|
/**
|
|
@@ -58580,8 +58949,9 @@ class StandardController {
|
|
|
58580
58949
|
this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenByCodeAsync, request.correlationId);
|
|
58581
58950
|
this.acquireTokenByCodeAsyncMeasurement?.increment({
|
|
58582
58951
|
visibilityChangeCount: 0,
|
|
58952
|
+
onlineStatusChangeCount: 0,
|
|
58583
58953
|
});
|
|
58584
|
-
|
|
58954
|
+
this.addStateChangeListeners(this.trackStateChangeWithMeasurement);
|
|
58585
58955
|
const silentAuthCodeClient = this.createSilentAuthCodeClient(request.correlationId);
|
|
58586
58956
|
const silentTokenResult = await silentAuthCodeClient
|
|
58587
58957
|
.acquireToken(request)
|
|
@@ -58599,7 +58969,7 @@ class StandardController {
|
|
|
58599
58969
|
throw tokenRenewalError;
|
|
58600
58970
|
})
|
|
58601
58971
|
.finally(() => {
|
|
58602
|
-
|
|
58972
|
+
this.removeStateChangeListeners(this.trackStateChangeWithMeasurement);
|
|
58603
58973
|
});
|
|
58604
58974
|
return silentTokenResult;
|
|
58605
58975
|
}
|
|
@@ -59144,18 +59514,22 @@ class StandardController {
|
|
|
59144
59514
|
* @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthResponse}
|
|
59145
59515
|
*/
|
|
59146
59516
|
async acquireTokenSilentAsync(request, account) {
|
|
59147
|
-
const
|
|
59517
|
+
const trackStateChange = (event) => this.trackStateChange(request.correlationId, event);
|
|
59148
59518
|
this.performanceClient.addQueueMeasurement(PerformanceEvents.AcquireTokenSilentAsync, request.correlationId);
|
|
59149
59519
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, request);
|
|
59150
59520
|
if (request.correlationId) {
|
|
59151
|
-
this.performanceClient.incrementFields({ visibilityChangeCount: 0 }, request.correlationId);
|
|
59521
|
+
this.performanceClient.incrementFields({ visibilityChangeCount: 0, onlineStatusChangeCount: 0 }, request.correlationId);
|
|
59152
59522
|
}
|
|
59153
|
-
|
|
59523
|
+
this.addStateChangeListeners(trackStateChange);
|
|
59154
59524
|
const silentRequest = await invokeAsync(initializeSilentRequest, PerformanceEvents.InitializeSilentRequest, this.logger, this.performanceClient, request.correlationId)(request, account, this.config, this.performanceClient, this.logger);
|
|
59155
59525
|
const cacheLookupPolicy = request.cacheLookupPolicy || CacheLookupPolicy.Default;
|
|
59156
59526
|
const result = this.acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy).catch(async (refreshTokenError) => {
|
|
59157
59527
|
const shouldTryToResolveSilently = checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheLookupPolicy);
|
|
59158
59528
|
if (shouldTryToResolveSilently) {
|
|
59529
|
+
const silentRefreshReason = `${refreshTokenError.errorCode}${refreshTokenError.subError
|
|
59530
|
+
? `|${refreshTokenError.subError}`
|
|
59531
|
+
: ""}`;
|
|
59532
|
+
this.performanceClient.addFields({ silentRefreshReason }, silentRequest.correlationId);
|
|
59159
59533
|
if (!this.activeIframeRequest) {
|
|
59160
59534
|
let _resolve;
|
|
59161
59535
|
// Always set the active request tracker immediately after checking it to prevent races
|
|
@@ -59225,7 +59599,7 @@ class StandardController {
|
|
|
59225
59599
|
throw tokenRenewalError;
|
|
59226
59600
|
})
|
|
59227
59601
|
.finally(() => {
|
|
59228
|
-
|
|
59602
|
+
this.removeStateChangeListeners(trackStateChange);
|
|
59229
59603
|
});
|
|
59230
59604
|
}
|
|
59231
59605
|
/**
|
|
@@ -59336,7 +59710,7 @@ function checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheL
|
|
|
59336
59710
|
return isSilentlyResolvable && tryIframeRenewal;
|
|
59337
59711
|
}
|
|
59338
59712
|
|
|
59339
|
-
/*! @azure/msal-browser v4.
|
|
59713
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
59340
59714
|
|
|
59341
59715
|
/*
|
|
59342
59716
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -59348,7 +59722,7 @@ async function createV3Controller(config, request) {
|
|
|
59348
59722
|
return StandardController.createController(standard, request);
|
|
59349
59723
|
}
|
|
59350
59724
|
|
|
59351
|
-
/*! @azure/msal-browser v4.
|
|
59725
|
+
/*! @azure/msal-browser v4.30.0 2026-03-18 */
|
|
59352
59726
|
|
|
59353
59727
|
/*
|
|
59354
59728
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -59721,33 +60095,35 @@ var checkInit = () => {
|
|
|
59721
60095
|
return true;
|
|
59722
60096
|
};
|
|
59723
60097
|
var getActiveAccountFromMSAL = () => {
|
|
60098
|
+
var _URL, _config;
|
|
59724
60099
|
var accountId = readFromStorage('authAccountId');
|
|
59725
|
-
if (!accountId)
|
|
59726
|
-
|
|
59727
|
-
|
|
59728
|
-
|
|
59729
|
-
|
|
59730
|
-
|
|
59731
|
-
|
|
59732
|
-
|
|
59733
|
-
|
|
59734
|
-
if (account === undefined) {
|
|
59735
|
-
console.warn("WARNING: no account found with id \"".concat(accountId, "\", cannot retrieve account"));
|
|
60100
|
+
if (!accountId) return;
|
|
60101
|
+
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;
|
|
60102
|
+
var accountFilter = {
|
|
60103
|
+
homeAccountId: accountId,
|
|
60104
|
+
environment: expectedAccountEnvironment
|
|
60105
|
+
};
|
|
60106
|
+
var account = msalApp.getAccount(accountFilter);
|
|
60107
|
+
if (account == null) {
|
|
60108
|
+
console.warn("WARNING: no account found with the provided account filter");
|
|
59736
60109
|
return;
|
|
59737
60110
|
}
|
|
59738
60111
|
return account;
|
|
59739
60112
|
};
|
|
59740
60113
|
var redirectOnAuthSuccess = () => {
|
|
59741
|
-
var _config$msalConfig$au,
|
|
59742
|
-
window.location.href = (_config$msalConfig$au = (
|
|
60114
|
+
var _config$msalConfig$au, _config2;
|
|
60115
|
+
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 : '/';
|
|
59743
60116
|
};
|
|
59744
60117
|
var _acquireTokensByRequestAndAccount = /*#__PURE__*/function () {
|
|
59745
60118
|
var _ref2 = _asyncToGenerator(function* (tokenReq, account) {
|
|
60119
|
+
var _tokenReq, _tokenReq$forceRefres;
|
|
60120
|
+
var forceRefresh = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
59746
60121
|
if (!tokenReq) {
|
|
59747
60122
|
console.warn('No token request provided');
|
|
59748
60123
|
tokenReq = {};
|
|
59749
60124
|
}
|
|
59750
60125
|
tokenReq.account = account;
|
|
60126
|
+
(_tokenReq$forceRefres = (_tokenReq = tokenReq).forceRefresh) !== null && _tokenReq$forceRefres !== void 0 ? _tokenReq$forceRefres : _tokenReq.forceRefresh = forceRefresh;
|
|
59751
60127
|
return yield msalApp.acquireTokenSilent(tokenReq).then(tokenRes => tokenRes).catch(silentTokenFetchError => {
|
|
59752
60128
|
var _silentTokenFetchErro;
|
|
59753
60129
|
if (silentTokenFetchError.errorCode === 'no_tokens_found') {
|
|
@@ -59783,8 +60159,8 @@ var acquireTokens = /*#__PURE__*/function () {
|
|
|
59783
60159
|
};
|
|
59784
60160
|
}
|
|
59785
60161
|
var account = getActiveAccountFromMSAL();
|
|
59786
|
-
if (account
|
|
59787
|
-
var tokens = yield _acquireTokensByRequestAndAccount(config.accessRequest, account);
|
|
60162
|
+
if (account == null) return;
|
|
60163
|
+
var tokens = yield _acquireTokensByRequestAndAccount(config.accessRequest, account, forceRefresh);
|
|
59788
60164
|
_updateTokensInStorage(tokens);
|
|
59789
60165
|
return tokens;
|
|
59790
60166
|
});
|
|
@@ -59819,17 +60195,20 @@ var signIn = () => {
|
|
|
59819
60195
|
}, 50);
|
|
59820
60196
|
return msalApp.handleRedirectPromise().then(handleResponse);
|
|
59821
60197
|
};
|
|
59822
|
-
var
|
|
59823
|
-
var _authData$accountId;
|
|
59824
|
-
if (!checkInit()) return;
|
|
59825
|
-
var accountId = readFromStorage('authAccountId');
|
|
59826
|
-
var idToken = readFromStorage('authIdToken');
|
|
60198
|
+
var clearStorageSessionData = () => {
|
|
59827
60199
|
clearFromStorage('authIdTokenPopup');
|
|
59828
60200
|
clearFromStorage('authIdToken');
|
|
59829
60201
|
clearFromStorage('authAccessToken');
|
|
59830
60202
|
clearFromStorage('authAccountId');
|
|
59831
60203
|
clearFromStorage('authEmail');
|
|
59832
60204
|
writeToStorage('authAuthenticated', 'false');
|
|
60205
|
+
};
|
|
60206
|
+
var signOut = () => {
|
|
60207
|
+
var _authData$accountId;
|
|
60208
|
+
if (!checkInit()) return;
|
|
60209
|
+
var accountId = readFromStorage('authAccountId');
|
|
60210
|
+
var idToken = readFromStorage('authIdToken');
|
|
60211
|
+
clearStorageSessionData();
|
|
59833
60212
|
var logoutRequest = {
|
|
59834
60213
|
account: msalApp.getAccountByHomeId((_authData$accountId = authData.accountId) !== null && _authData$accountId !== void 0 ? _authData$accountId : accountId),
|
|
59835
60214
|
idTokenHint: idToken
|
|
@@ -59849,12 +60228,12 @@ var _updateTokensInStorage = tokens => {
|
|
|
59849
60228
|
}
|
|
59850
60229
|
};
|
|
59851
60230
|
var _extractRolesFromAccessToken = accessToken => {
|
|
59852
|
-
var
|
|
60231
|
+
var _config3;
|
|
59853
60232
|
if (!accessToken) return [];
|
|
59854
60233
|
var decodedToken = JSON.parse(atob(accessToken.split('.')[1]));
|
|
59855
60234
|
// The exact key to use may depend from keycloak client & Cosmo Tech API configuration (c.f. the value of
|
|
59856
60235
|
// csm.platform.authorization.roles-jwt-claim in your k8s tenant secrets)
|
|
59857
|
-
var rolesTokenAttribute = (
|
|
60236
|
+
var rolesTokenAttribute = (_config3 = config) === null || _config3 === void 0 ? void 0 : _config3.rolesJwtClaim;
|
|
59858
60237
|
if (rolesTokenAttribute) {
|
|
59859
60238
|
if (decodedToken !== null && decodedToken !== void 0 && decodedToken[rolesTokenAttribute]) return decodedToken === null || decodedToken === void 0 ? void 0 : decodedToken[rolesTokenAttribute];
|
|
59860
60239
|
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.');
|
|
@@ -59871,12 +60250,16 @@ var _extractRolesFromAccessToken = accessToken => {
|
|
|
59871
60250
|
var isUserSignedIn = /*#__PURE__*/function () {
|
|
59872
60251
|
var _ref4 = _asyncToGenerator(function* () {
|
|
59873
60252
|
if (readFromStorage('authAuthenticated') === 'true') {
|
|
59874
|
-
|
|
59875
|
-
|
|
59876
|
-
|
|
59877
|
-
|
|
60253
|
+
if (getActiveAccountFromMSAL() != null) {
|
|
60254
|
+
// Restore roles from access token if necessary (roles in authData may be lost after login redirection)
|
|
60255
|
+
if (authData.roles.length === 0) {
|
|
60256
|
+
var accessToken = readFromStorage('authAccessToken');
|
|
60257
|
+
if (accessToken) authData.roles = _extractRolesFromAccessToken(accessToken);
|
|
60258
|
+
}
|
|
60259
|
+
return true;
|
|
59878
60260
|
}
|
|
59879
|
-
|
|
60261
|
+
// No valid session found despite authAuthenticated being true, clear local session data before resuming
|
|
60262
|
+
clearStorageSessionData();
|
|
59880
60263
|
}
|
|
59881
60264
|
try {
|
|
59882
60265
|
// Resume interaction if one is already in progress
|
|
@@ -59884,12 +60267,12 @@ var isUserSignedIn = /*#__PURE__*/function () {
|
|
|
59884
60267
|
clearFromStorage('authInteractionInProgress');
|
|
59885
60268
|
var locationHashParameters = new URLSearchParams(window.location.hash.substring(1));
|
|
59886
60269
|
if (locationHashParameters.has('state')) {
|
|
59887
|
-
var
|
|
59888
|
-
if (locationHashParameters.has('iss', (
|
|
60270
|
+
var _config4;
|
|
60271
|
+
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)) {
|
|
59889
60272
|
msalApp.handleRedirectPromise().then(handleResponse); // Resume redirect workflow process
|
|
59890
60273
|
} else if (locationHashParameters.has('iss')) {
|
|
59891
|
-
var
|
|
59892
|
-
var configIssuer = (
|
|
60274
|
+
var _config5;
|
|
60275
|
+
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;
|
|
59893
60276
|
var urlIssuer = locationHashParameters.get('iss');
|
|
59894
60277
|
console.warn("Issuer found in url \"".concat(urlIssuer, "\" does not match keycloak configuration: \"").concat(configIssuer, "\""));
|
|
59895
60278
|
}
|