@digipair/skill-keycloak 0.136.3 → 0.136.4
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/dist/index.esm.js
CHANGED
|
@@ -6,7 +6,7 @@ import { JSDOM } from 'jsdom';
|
|
|
6
6
|
import { readFile } from 'fs/promises';
|
|
7
7
|
import require$$1$1 from 'path';
|
|
8
8
|
|
|
9
|
-
function _mergeNamespaces
|
|
9
|
+
function _mergeNamespaces(n, m) {
|
|
10
10
|
m.forEach(function(e) {
|
|
11
11
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
12
12
|
if (k !== 'default' && !(k in n)) {
|
|
@@ -26,7 +26,7 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
26
26
|
function getDefaultExportFromCjs(x) {
|
|
27
27
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
28
28
|
}
|
|
29
|
-
var handlebars_min = {
|
|
29
|
+
var handlebars_min$1 = {
|
|
30
30
|
exports: {}
|
|
31
31
|
};
|
|
32
32
|
/**!
|
|
@@ -54,7 +54,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
54
54
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
55
55
|
THE SOFTWARE.
|
|
56
56
|
|
|
57
|
-
*/ handlebars_min.exports;
|
|
57
|
+
*/ handlebars_min$1.exports;
|
|
58
58
|
(function(module1, exports1) {
|
|
59
59
|
function _instanceof(left, right) {
|
|
60
60
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -8135,12 +8135,12 @@ THE SOFTWARE.
|
|
|
8135
8135
|
}
|
|
8136
8136
|
]);
|
|
8137
8137
|
});
|
|
8138
|
-
})(handlebars_min, handlebars_min.exports);
|
|
8139
|
-
var handlebars_minExports = handlebars_min.exports;
|
|
8140
|
-
var
|
|
8141
|
-
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces
|
|
8138
|
+
})(handlebars_min$1, handlebars_min$1.exports);
|
|
8139
|
+
var handlebars_minExports = handlebars_min$1.exports;
|
|
8140
|
+
var handlebars_min = /*@__PURE__*/ getDefaultExportFromCjs(handlebars_minExports);
|
|
8141
|
+
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces({
|
|
8142
8142
|
__proto__: null,
|
|
8143
|
-
default:
|
|
8143
|
+
default: handlebars_min
|
|
8144
8144
|
}, [
|
|
8145
8145
|
handlebars_minExports
|
|
8146
8146
|
]);
|
|
@@ -9986,7 +9986,7 @@ var singleton = null;
|
|
|
9986
9986
|
else if (lowered === "local" || lowered === "system") return SystemZone.instance;
|
|
9987
9987
|
else if (lowered === "utc" || lowered === "gmt") return FixedOffsetZone.utcInstance;
|
|
9988
9988
|
else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);
|
|
9989
|
-
} else if (isNumber$1(input)) {
|
|
9989
|
+
} else if (isNumber$1$1(input)) {
|
|
9990
9990
|
return FixedOffsetZone.instance(input);
|
|
9991
9991
|
} else if ((typeof input === "undefined" ? "undefined" : _type_of$C(input)) === "object" && "offset" in input && typeof input.offset === "function") {
|
|
9992
9992
|
// This is dumb, but the instanceof check above doesn't seem to really work
|
|
@@ -10464,7 +10464,7 @@ function ordinalToGregorian(ordinalData) {
|
|
|
10464
10464
|
}
|
|
10465
10465
|
function hasInvalidWeekData(obj) {
|
|
10466
10466
|
var minDaysInFirstWeek = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 4, startOfWeek = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
10467
|
-
var validYear = isInteger(obj.weekYear), validWeek = integerBetween(obj.weekNumber, 1, weeksInWeekYear(obj.weekYear, minDaysInFirstWeek, startOfWeek)), validWeekday = integerBetween(obj.weekday, 1, 7);
|
|
10467
|
+
var validYear = isInteger$2(obj.weekYear), validWeek = integerBetween(obj.weekNumber, 1, weeksInWeekYear(obj.weekYear, minDaysInFirstWeek, startOfWeek)), validWeekday = integerBetween(obj.weekday, 1, 7);
|
|
10468
10468
|
if (!validYear) {
|
|
10469
10469
|
return unitOutOfRange("weekYear", obj.weekYear);
|
|
10470
10470
|
} else if (!validWeek) {
|
|
@@ -10474,7 +10474,7 @@ function hasInvalidWeekData(obj) {
|
|
|
10474
10474
|
} else return false;
|
|
10475
10475
|
}
|
|
10476
10476
|
function hasInvalidOrdinalData(obj) {
|
|
10477
|
-
var validYear = isInteger(obj.year), validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));
|
|
10477
|
+
var validYear = isInteger$2(obj.year), validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));
|
|
10478
10478
|
if (!validYear) {
|
|
10479
10479
|
return unitOutOfRange("year", obj.year);
|
|
10480
10480
|
} else if (!validOrdinal) {
|
|
@@ -10482,7 +10482,7 @@ function hasInvalidOrdinalData(obj) {
|
|
|
10482
10482
|
} else return false;
|
|
10483
10483
|
}
|
|
10484
10484
|
function hasInvalidGregorianData(obj) {
|
|
10485
|
-
var validYear = isInteger(obj.year), validMonth = integerBetween(obj.month, 1, 12), validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));
|
|
10485
|
+
var validYear = isInteger$2(obj.year), validMonth = integerBetween(obj.month, 1, 12), validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));
|
|
10486
10486
|
if (!validYear) {
|
|
10487
10487
|
return unitOutOfRange("year", obj.year);
|
|
10488
10488
|
} else if (!validMonth) {
|
|
@@ -10514,10 +10514,10 @@ function hasInvalidTimeData(obj) {
|
|
|
10514
10514
|
function isUndefined$2(o) {
|
|
10515
10515
|
return typeof o === "undefined";
|
|
10516
10516
|
}
|
|
10517
|
-
function isNumber$1(o) {
|
|
10517
|
+
function isNumber$1$1(o) {
|
|
10518
10518
|
return typeof o === "number";
|
|
10519
10519
|
}
|
|
10520
|
-
function isInteger(o) {
|
|
10520
|
+
function isInteger$2(o) {
|
|
10521
10521
|
return typeof o === "number" && o % 1 === 0;
|
|
10522
10522
|
}
|
|
10523
10523
|
function isString$3(o) {
|
|
@@ -10594,7 +10594,7 @@ function validateWeekSettings(settings) {
|
|
|
10594
10594
|
}
|
|
10595
10595
|
// NUMBERS AND STRINGS
|
|
10596
10596
|
function integerBetween(thing, bottom, top) {
|
|
10597
|
-
return isInteger(thing) && thing >= bottom && thing <= top;
|
|
10597
|
+
return isInteger$2(thing) && thing >= bottom && thing <= top;
|
|
10598
10598
|
}
|
|
10599
10599
|
// x % n but takes the sign of n instead of x
|
|
10600
10600
|
function floorMod(x, n) {
|
|
@@ -12517,7 +12517,7 @@ function removeZeroes(vals) {
|
|
|
12517
12517
|
accumulated[ak] = 0;
|
|
12518
12518
|
}
|
|
12519
12519
|
// plus anything that's already in this unit
|
|
12520
|
-
if (isNumber$1(vals[k])) {
|
|
12520
|
+
if (isNumber$1$1(vals[k])) {
|
|
12521
12521
|
own += vals[k];
|
|
12522
12522
|
}
|
|
12523
12523
|
// only keep the integer part for now in the hopes of putting any decimal part
|
|
@@ -12526,7 +12526,7 @@ function removeZeroes(vals) {
|
|
|
12526
12526
|
built[k] = i;
|
|
12527
12527
|
accumulated[k] = (own * 1000 - i * 1000) / 1000;
|
|
12528
12528
|
// otherwise, keep it in the wings to boil it later
|
|
12529
|
-
} else if (isNumber$1(vals[k])) {
|
|
12529
|
+
} else if (isNumber$1$1(vals[k])) {
|
|
12530
12530
|
accumulated[k] = vals[k];
|
|
12531
12531
|
}
|
|
12532
12532
|
}
|
|
@@ -12832,7 +12832,7 @@ function removeZeroes(vals) {
|
|
|
12832
12832
|
* - Duration instance
|
|
12833
12833
|
* @return {Duration}
|
|
12834
12834
|
*/ function fromDurationLike(durationLike) {
|
|
12835
|
-
if (isNumber$1(durationLike)) {
|
|
12835
|
+
if (isNumber$1$1(durationLike)) {
|
|
12836
12836
|
return Duration.fromMillis(durationLike);
|
|
12837
12837
|
} else if (Duration.isDuration(durationLike)) {
|
|
12838
12838
|
return durationLike;
|
|
@@ -15036,7 +15036,7 @@ function lastOpts(argList) {
|
|
|
15036
15036
|
} else {
|
|
15037
15037
|
// If an offset has been passed and we have not been called from
|
|
15038
15038
|
// clone(), we can trust it and avoid the offset calculation.
|
|
15039
|
-
var ot = isNumber$1(config.o) && !config.old ? config.o : zone.offset(this.ts);
|
|
15039
|
+
var ot = isNumber$1$1(config.o) && !config.old ? config.o : zone.offset(this.ts);
|
|
15040
15040
|
c = tsToObj(this.ts, ot);
|
|
15041
15041
|
invalid = Number.isNaN(c.year) ? new Invalid("invalid input") : null;
|
|
15042
15042
|
c = invalid ? null : c;
|
|
@@ -16442,7 +16442,7 @@ function lastOpts(argList) {
|
|
|
16442
16442
|
* @return {DateTime}
|
|
16443
16443
|
*/ function fromMillis(milliseconds) {
|
|
16444
16444
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
16445
|
-
if (!isNumber$1(milliseconds)) {
|
|
16445
|
+
if (!isNumber$1$1(milliseconds)) {
|
|
16446
16446
|
throw new InvalidArgumentError("fromMillis requires a numerical input, but received a ".concat(typeof milliseconds === "undefined" ? "undefined" : _type_of$C(milliseconds), " with value ").concat(milliseconds));
|
|
16447
16447
|
} else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {
|
|
16448
16448
|
// this isn't perfect because we can still end up out of range because of additional shifting, but it's a start
|
|
@@ -16470,7 +16470,7 @@ function lastOpts(argList) {
|
|
|
16470
16470
|
* @return {DateTime}
|
|
16471
16471
|
*/ function fromSeconds(seconds) {
|
|
16472
16472
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
16473
|
-
if (!isNumber$1(seconds)) {
|
|
16473
|
+
if (!isNumber$1$1(seconds)) {
|
|
16474
16474
|
throw new InvalidArgumentError("fromSeconds requires a numerical input");
|
|
16475
16475
|
} else {
|
|
16476
16476
|
return new DateTime({
|
|
@@ -17135,7 +17135,7 @@ function lastOpts(argList) {
|
|
|
17135
17135
|
*/ function friendlyDateTime(dateTimeish) {
|
|
17136
17136
|
if (DateTime.isDateTime(dateTimeish)) {
|
|
17137
17137
|
return dateTimeish;
|
|
17138
|
-
} else if (dateTimeish && dateTimeish.valueOf && isNumber$1(dateTimeish.valueOf())) {
|
|
17138
|
+
} else if (dateTimeish && dateTimeish.valueOf && isNumber$1$1(dateTimeish.valueOf())) {
|
|
17139
17139
|
return DateTime.fromJSDate(dateTimeish);
|
|
17140
17140
|
} else if (dateTimeish && (typeof dateTimeish === "undefined" ? "undefined" : _type_of$C(dateTimeish)) === "object") {
|
|
17141
17141
|
return DateTime.fromObject(dateTimeish);
|
|
@@ -17303,7 +17303,6 @@ class represent prop names.
|
|
|
17303
17303
|
this.deserialize = config.deserialize || function() {
|
|
17304
17304
|
throw new Error("This node type doesn't define a deserialize function");
|
|
17305
17305
|
};
|
|
17306
|
-
this.combine = config.combine || null;
|
|
17307
17306
|
}
|
|
17308
17307
|
_create_class$u(NodeProp, [
|
|
17309
17308
|
{
|
|
@@ -17416,16 +17415,10 @@ represented by another tree.
|
|
|
17416
17415
|
*/ overlay, /**
|
|
17417
17416
|
The parser used to create this subtree.
|
|
17418
17417
|
*/ parser) {
|
|
17419
|
-
var /**
|
|
17420
|
-
[Indicates](#common.IterMode.EnterBracketed) that the nested
|
|
17421
|
-
content is delineated with some kind
|
|
17422
|
-
of bracket token.
|
|
17423
|
-
*/ bracketed = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
17424
17418
|
_class_call_check$z(this, MountedTree);
|
|
17425
17419
|
this.tree = tree;
|
|
17426
17420
|
this.overlay = overlay;
|
|
17427
17421
|
this.parser = parser;
|
|
17428
|
-
this.bracketed = bracketed;
|
|
17429
17422
|
}
|
|
17430
17423
|
_create_class$u(MountedTree, null, [
|
|
17431
17424
|
{
|
|
@@ -17641,9 +17634,7 @@ types in it, so that the ids fit into 16-bit typed array slots.
|
|
|
17641
17634
|
var add = source(type);
|
|
17642
17635
|
if (add) {
|
|
17643
17636
|
if (!newProps) newProps = Object.assign({}, type.props);
|
|
17644
|
-
|
|
17645
|
-
if (prop.combine && prop.id in newProps) value = prop.combine(newProps[prop.id], value);
|
|
17646
|
-
newProps[prop.id] = value;
|
|
17637
|
+
newProps[add[0].id] = add[1];
|
|
17647
17638
|
}
|
|
17648
17639
|
}
|
|
17649
17640
|
} catch (err) {
|
|
@@ -17709,12 +17700,6 @@ operator to enable multiple ones.
|
|
|
17709
17700
|
library to not enter mounted overlays if one covers the given
|
|
17710
17701
|
position.
|
|
17711
17702
|
*/ IterMode[IterMode["IgnoreOverlays"] = 8] = "IgnoreOverlays";
|
|
17712
|
-
/**
|
|
17713
|
-
When set, positions on the boundary of a mounted overlay tree
|
|
17714
|
-
that has its [`bracketed`](#common.NestedParse.bracketed) flag
|
|
17715
|
-
set will enter that tree regardless of side. Only supported in
|
|
17716
|
-
[`enter`](#common.SyntaxNode.enter), not in cursors.
|
|
17717
|
-
*/ IterMode[IterMode["EnterBracketed"] = 16] = "EnterBracketed";
|
|
17718
17703
|
})(IterMode || (IterMode = {}));
|
|
17719
17704
|
/**
|
|
17720
17705
|
A piece of syntax tree. There are two ways to approach these
|
|
@@ -18273,17 +18258,17 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18273
18258
|
var mode = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
|
|
18274
18259
|
for(var parent = this;;){
|
|
18275
18260
|
for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
|
|
18276
|
-
var next = children[i], start = positions[i] + parent.from
|
|
18277
|
-
if (!
|
|
18261
|
+
var next = children[i], start = positions[i] + parent.from;
|
|
18262
|
+
if (!checkSide(side, pos, start, start + next.length)) continue;
|
|
18278
18263
|
if (_instanceof$i(next, TreeBuffer)) {
|
|
18279
18264
|
if (mode & IterMode.ExcludeBuffers) continue;
|
|
18280
18265
|
var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
|
|
18281
18266
|
if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
|
|
18282
18267
|
} else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
|
|
18283
|
-
var
|
|
18284
|
-
if (!(mode & IterMode.IgnoreMounts) && (
|
|
18268
|
+
var mounted = void 0;
|
|
18269
|
+
if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay) return new TreeNode(mounted.tree, start, i, parent);
|
|
18285
18270
|
var inner = new TreeNode(next, start, i, parent);
|
|
18286
|
-
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side
|
|
18271
|
+
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
|
|
18287
18272
|
}
|
|
18288
18273
|
}
|
|
18289
18274
|
if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous) return null;
|
|
@@ -18318,24 +18303,18 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18318
18303
|
return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */ );
|
|
18319
18304
|
}
|
|
18320
18305
|
},
|
|
18321
|
-
{
|
|
18322
|
-
key: "prop",
|
|
18323
|
-
value: function prop(prop) {
|
|
18324
|
-
return this._tree.prop(prop);
|
|
18325
|
-
}
|
|
18326
|
-
},
|
|
18327
18306
|
{
|
|
18328
18307
|
key: "enter",
|
|
18329
18308
|
value: function enter(pos, side) {
|
|
18330
18309
|
var mode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
18331
18310
|
var mounted;
|
|
18332
18311
|
if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
|
|
18333
|
-
var rPos = pos - this.from
|
|
18312
|
+
var rPos = pos - this.from;
|
|
18334
18313
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
18335
18314
|
try {
|
|
18336
18315
|
for(var _iterator = mounted.overlay[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
18337
18316
|
var _step_value = _step.value, from = _step_value.from, to = _step_value.to;
|
|
18338
|
-
if ((side > 0
|
|
18317
|
+
if ((side > 0 ? from <= rPos : from < rPos) && (side < 0 ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
|
|
18339
18318
|
}
|
|
18340
18319
|
} catch (err) {
|
|
18341
18320
|
_didIteratorError = true;
|
|
@@ -18499,12 +18478,6 @@ var BufferNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18499
18478
|
return this.child(-1, pos, -2 /* Side.Before */ );
|
|
18500
18479
|
}
|
|
18501
18480
|
},
|
|
18502
|
-
{
|
|
18503
|
-
key: "prop",
|
|
18504
|
-
value: function prop(prop) {
|
|
18505
|
-
return this.type.prop(prop);
|
|
18506
|
-
}
|
|
18507
|
-
},
|
|
18508
18481
|
{
|
|
18509
18482
|
key: "enter",
|
|
18510
18483
|
value: function enter(pos, side) {
|
|
@@ -18635,8 +18608,11 @@ A tree cursor object focuses on a given node in a syntax tree, and
|
|
|
18635
18608
|
allows you to move to adjacent nodes.
|
|
18636
18609
|
*/ var TreeCursor = /*#__PURE__*/ function() {
|
|
18637
18610
|
function TreeCursor(node) {
|
|
18638
|
-
var
|
|
18611
|
+
var /**
|
|
18612
|
+
@internal
|
|
18613
|
+
*/ mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
18639
18614
|
_class_call_check$z(this, TreeCursor);
|
|
18615
|
+
this.mode = mode;
|
|
18640
18616
|
/**
|
|
18641
18617
|
@internal
|
|
18642
18618
|
*/ this.buffer = null;
|
|
@@ -18645,7 +18621,6 @@ allows you to move to adjacent nodes.
|
|
|
18645
18621
|
@internal
|
|
18646
18622
|
*/ this.index = 0;
|
|
18647
18623
|
this.bufferNode = null;
|
|
18648
|
-
this.mode = mode & ~IterMode.EnterBracketed;
|
|
18649
18624
|
if (_instanceof$i(node, TreeNode)) {
|
|
18650
18625
|
this.yieldNode(node);
|
|
18651
18626
|
} else {
|
|
@@ -18989,7 +18964,7 @@ function buildTree(data) {
|
|
|
18989
18964
|
function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
|
|
18990
18965
|
var id = cursor.id, start = cursor.start, end = cursor.end, size = cursor.size;
|
|
18991
18966
|
var lookAheadAtStart = lookAhead, contextAtStart = contextHash;
|
|
18992
|
-
|
|
18967
|
+
while(size < 0){
|
|
18993
18968
|
cursor.next();
|
|
18994
18969
|
if (size == -1 /* SpecialRecord.Reuse */ ) {
|
|
18995
18970
|
var node = reused[id];
|
|
@@ -19156,7 +19131,7 @@ function buildTree(data) {
|
|
|
19156
19131
|
fork.next();
|
|
19157
19132
|
while(fork.pos > startPos){
|
|
19158
19133
|
if (fork.size < 0) {
|
|
19159
|
-
if (fork.size == -3 /* SpecialRecord.ContextChange */
|
|
19134
|
+
if (fork.size == -3 /* SpecialRecord.ContextChange */ ) localSkipped += 4;
|
|
19160
19135
|
else break scan;
|
|
19161
19136
|
} else if (fork.id >= minRepeatType) {
|
|
19162
19137
|
localSkipped += 4;
|
|
@@ -19595,11 +19570,11 @@ about the parse state.
|
|
|
19595
19570
|
var _a;
|
|
19596
19571
|
var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
|
|
19597
19572
|
var parser = this.p.parser;
|
|
19598
|
-
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */
|
|
19573
|
+
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ ;
|
|
19574
|
+
if (lookaheadRecord) this.setLookAhead(this.pos);
|
|
19599
19575
|
var dPrec = parser.dynamicPrecedence(type);
|
|
19600
19576
|
if (dPrec) this.score += dPrec;
|
|
19601
19577
|
if (depth == 0) {
|
|
19602
|
-
if (type < parser.minRepeatTerm && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19603
19578
|
this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
|
|
19604
19579
|
// Zero-depth reductions are a special case—they add stuff to
|
|
19605
19580
|
// the stack without popping anything off.
|
|
@@ -19613,9 +19588,7 @@ about the parse state.
|
|
|
19613
19588
|
// expression and the state that we'll be staying in, which should
|
|
19614
19589
|
// be moved to `this.state`).
|
|
19615
19590
|
var base = this.stack.length - (depth - 1) * 3 - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
|
|
19616
|
-
var start = base ? this.stack[base - 2] : this.p.ranges[0].from;
|
|
19617
|
-
if (type < parser.minRepeatTerm && start == this.reducePos && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19618
|
-
var size = this.reducePos - start;
|
|
19591
|
+
var start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;
|
|
19619
19592
|
// This is a kludge to try and detect overly deep left-associative
|
|
19620
19593
|
// trees, which will not increase the parse stack depth and thus
|
|
19621
19594
|
// won't be caught by the regular stack-depth limit check.
|
|
@@ -19654,11 +19627,15 @@ about the parse state.
|
|
|
19654
19627
|
var size = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 4, mustSink = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
19655
19628
|
if (term == 0 /* Term.Err */ && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
|
|
19656
19629
|
// Try to omit/merge adjacent error nodes
|
|
19657
|
-
var top = this.buffer.length;
|
|
19658
|
-
if (top
|
|
19630
|
+
var cur = this, top = this.buffer.length;
|
|
19631
|
+
if (top == 0 && cur.parent) {
|
|
19632
|
+
top = cur.bufferBase - cur.parent.bufferBase;
|
|
19633
|
+
cur = cur.parent;
|
|
19634
|
+
}
|
|
19635
|
+
if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {
|
|
19659
19636
|
if (start == end) return;
|
|
19660
|
-
if (
|
|
19661
|
-
|
|
19637
|
+
if (cur.buffer[top - 2] >= start) {
|
|
19638
|
+
cur.buffer[top - 2] = end;
|
|
19662
19639
|
return;
|
|
19663
19640
|
}
|
|
19664
19641
|
}
|
|
@@ -19667,7 +19644,7 @@ about the parse state.
|
|
|
19667
19644
|
this.buffer.push(term, start, end, size);
|
|
19668
19645
|
} else {
|
|
19669
19646
|
var index = this.buffer.length;
|
|
19670
|
-
if (index > 0 &&
|
|
19647
|
+
if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */ ) {
|
|
19671
19648
|
var mustMove = false;
|
|
19672
19649
|
for(var scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4){
|
|
19673
19650
|
if (this.buffer[scan - 1] >= 0) {
|
|
@@ -19702,11 +19679,11 @@ about the parse state.
|
|
|
19702
19679
|
this.pushState(action & 65535 /* Action.ValueMask */ , this.pos);
|
|
19703
19680
|
} else if ((action & 262144 /* Action.StayFlag */ ) == 0) {
|
|
19704
19681
|
var nextState = action, parser = this.p.parser;
|
|
19705
|
-
this.pos
|
|
19706
|
-
|
|
19707
|
-
|
|
19708
|
-
|
|
19709
|
-
this.pushState(nextState,
|
|
19682
|
+
if (end > this.pos || type <= parser.maxNode) {
|
|
19683
|
+
this.pos = end;
|
|
19684
|
+
if (!parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ )) this.reducePos = end;
|
|
19685
|
+
}
|
|
19686
|
+
this.pushState(nextState, start);
|
|
19710
19687
|
this.shiftContext(type, start);
|
|
19711
19688
|
if (type <= parser.maxNode) this.buffer.push(type, start, end, 4);
|
|
19712
19689
|
} else {
|
|
@@ -19754,9 +19731,6 @@ about the parse state.
|
|
|
19754
19731
|
value: function split() {
|
|
19755
19732
|
var parent = this;
|
|
19756
19733
|
var off = parent.buffer.length;
|
|
19757
|
-
// Leave off top error node, if there, because that might be
|
|
19758
|
-
// merged with other nodes.
|
|
19759
|
-
if (off && parent.buffer[off - 4] == 0 /* Term.Err */ ) off -= 4;
|
|
19760
19734
|
// Because the top of the buffer (after this.pos) may be mutated
|
|
19761
19735
|
// to reorder reductions and skipped tokens, and shared buffers
|
|
19762
19736
|
// should be immutable, this copies any outstanding skipped tokens
|
|
@@ -20000,10 +19974,10 @@ about the parse state.
|
|
|
20000
19974
|
@internal
|
|
20001
19975
|
*/ key: "setLookAhead",
|
|
20002
19976
|
value: function setLookAhead(lookAhead) {
|
|
20003
|
-
if (lookAhead
|
|
20004
|
-
|
|
20005
|
-
|
|
20006
|
-
|
|
19977
|
+
if (lookAhead > this.lookAhead) {
|
|
19978
|
+
this.emitLookAhead();
|
|
19979
|
+
this.lookAhead = lookAhead;
|
|
19980
|
+
}
|
|
20007
19981
|
}
|
|
20008
19982
|
},
|
|
20009
19983
|
{
|
|
@@ -20896,12 +20870,7 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20896
20870
|
}
|
|
20897
20871
|
}
|
|
20898
20872
|
}
|
|
20899
|
-
if (newStacks.length > 12 /* Rec.MaxStackCount */ )
|
|
20900
|
-
newStacks.sort(function(a, b) {
|
|
20901
|
-
return b.score - a.score;
|
|
20902
|
-
});
|
|
20903
|
-
newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
|
|
20904
|
-
}
|
|
20873
|
+
if (newStacks.length > 12 /* Rec.MaxStackCount */ ) newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
|
|
20905
20874
|
}
|
|
20906
20875
|
this.minStackPos = newStacks[0].pos;
|
|
20907
20876
|
for(var i2 = 1; i2 < newStacks.length; i2++)if (newStacks[i2].pos < this.minStackPos) this.minStackPos = newStacks[i2].pos;
|
|
@@ -20996,7 +20965,7 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20996
20965
|
if (done) continue;
|
|
20997
20966
|
}
|
|
20998
20967
|
var force = stack.split(), forceBase = base;
|
|
20999
|
-
for(var j = 0; j < 10 /* Rec.ForceReduceLimit */
|
|
20968
|
+
for(var j = 0; force.forceReduce() && j < 10 /* Rec.ForceReduceLimit */ ; j++){
|
|
21000
20969
|
if (verbose) console.log(forceBase + this.stackID(force) + " (via force-reduce)");
|
|
21001
20970
|
var done1 = this.advanceFully(force, newStacks);
|
|
21002
20971
|
if (done1) break;
|
|
@@ -21031,8 +21000,8 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
21031
21000
|
stack.recoverByDelete(token, tokenEnd);
|
|
21032
21001
|
if (verbose) console.log(base + this.stackID(stack) + " (via recover-delete ".concat(this.parser.getName(token), ")"));
|
|
21033
21002
|
pushStackDedup(stack, newStacks);
|
|
21034
|
-
} else if (!finished || finished.score <
|
|
21035
|
-
finished =
|
|
21003
|
+
} else if (!finished || finished.score < stack.score) {
|
|
21004
|
+
finished = stack;
|
|
21036
21005
|
}
|
|
21037
21006
|
}
|
|
21038
21007
|
return finished;
|
|
@@ -21881,7 +21850,7 @@ must be quoted as JSON strings.
|
|
|
21881
21850
|
For example:
|
|
21882
21851
|
|
|
21883
21852
|
```javascript
|
|
21884
|
-
parser.
|
|
21853
|
+
parser.withProps(
|
|
21885
21854
|
styleTags({
|
|
21886
21855
|
// Style Number and BigNumber nodes
|
|
21887
21856
|
"Number BigNumber": tags.number,
|
|
@@ -21896,7 +21865,7 @@ parser.configure({props: [
|
|
|
21896
21865
|
// Style the node named "/" as punctuation
|
|
21897
21866
|
'"/"': tags.punctuation
|
|
21898
21867
|
})
|
|
21899
|
-
|
|
21868
|
+
)
|
|
21900
21869
|
```
|
|
21901
21870
|
*/ function styleTags(spec) {
|
|
21902
21871
|
var byName = Object.create(null);
|
|
@@ -21952,26 +21921,7 @@ parser.configure({props: [
|
|
|
21952
21921
|
}
|
|
21953
21922
|
return ruleNodeProp.add(byName);
|
|
21954
21923
|
}
|
|
21955
|
-
var ruleNodeProp = new NodeProp(
|
|
21956
|
-
combine: function combine(a, b) {
|
|
21957
|
-
var cur, root, take;
|
|
21958
|
-
while(a || b){
|
|
21959
|
-
if (!a || b && a.depth >= b.depth) {
|
|
21960
|
-
take = b;
|
|
21961
|
-
b = b.next;
|
|
21962
|
-
} else {
|
|
21963
|
-
take = a;
|
|
21964
|
-
a = a.next;
|
|
21965
|
-
}
|
|
21966
|
-
if (cur && cur.mode == take.mode && !take.context && !cur.context) continue;
|
|
21967
|
-
var copy = new Rule$1(take.tags, take.mode, take.context);
|
|
21968
|
-
if (cur) cur.next = copy;
|
|
21969
|
-
else root = copy;
|
|
21970
|
-
cur = copy;
|
|
21971
|
-
}
|
|
21972
|
-
return root;
|
|
21973
|
-
}
|
|
21974
|
-
});
|
|
21924
|
+
var ruleNodeProp = new NodeProp();
|
|
21975
21925
|
var Rule$1 = /*#__PURE__*/ function() {
|
|
21976
21926
|
function Rule(tags, mode, context, next) {
|
|
21977
21927
|
_class_call_check$x(this, Rule);
|
|
@@ -22896,14 +22846,14 @@ function indent(str, spaces) {
|
|
|
22896
22846
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22897
22847
|
// match is required
|
|
22898
22848
|
if (!match) {
|
|
22899
|
-
return
|
|
22849
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22900
22850
|
v: nextMatch1
|
|
22901
22851
|
};
|
|
22902
22852
|
}
|
|
22903
22853
|
var token = match.token, offset = match.offset;
|
|
22904
22854
|
i1 += offset;
|
|
22905
22855
|
if (token === ' ') {
|
|
22906
|
-
return
|
|
22856
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22907
22857
|
}
|
|
22908
22858
|
tokens1 = _to_consumable_array$4(tokens1).concat([
|
|
22909
22859
|
token
|
|
@@ -22922,7 +22872,7 @@ function indent(str, spaces) {
|
|
|
22922
22872
|
if (contextKeys.some(function(el) {
|
|
22923
22873
|
return el.startsWith(name);
|
|
22924
22874
|
})) {
|
|
22925
|
-
return
|
|
22875
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22926
22876
|
}
|
|
22927
22877
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22928
22878
|
return el === name;
|
|
@@ -22941,9 +22891,9 @@ function indent(str, spaces) {
|
|
|
22941
22891
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22942
22892
|
return el.startsWith(name);
|
|
22943
22893
|
})) {
|
|
22944
|
-
return
|
|
22894
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22945
22895
|
}
|
|
22946
|
-
return
|
|
22896
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22947
22897
|
v: nextMatch1
|
|
22948
22898
|
};
|
|
22949
22899
|
};
|
|
@@ -24072,20 +24022,20 @@ function isDuration(obj) {
|
|
|
24072
24022
|
function isArray$2(e) {
|
|
24073
24023
|
return Array.isArray(e);
|
|
24074
24024
|
}
|
|
24075
|
-
function isBoolean$1(e) {
|
|
24025
|
+
function isBoolean$1$1(e) {
|
|
24076
24026
|
return typeof e === 'boolean';
|
|
24077
24027
|
}
|
|
24078
24028
|
function getType(e) {
|
|
24079
24029
|
if (e === null || e === undefined) {
|
|
24080
24030
|
return 'nil';
|
|
24081
24031
|
}
|
|
24082
|
-
if (isBoolean$1(e)) {
|
|
24032
|
+
if (isBoolean$1$1(e)) {
|
|
24083
24033
|
return 'boolean';
|
|
24084
24034
|
}
|
|
24085
|
-
if (isNumber(e)) {
|
|
24035
|
+
if (isNumber$2(e)) {
|
|
24086
24036
|
return 'number';
|
|
24087
24037
|
}
|
|
24088
|
-
if (isString$2(e)) {
|
|
24038
|
+
if (isString$2$1(e)) {
|
|
24089
24039
|
return 'string';
|
|
24090
24040
|
}
|
|
24091
24041
|
if (isContext(e)) {
|
|
@@ -24142,10 +24092,10 @@ var Range$a = function Range(props) {
|
|
|
24142
24092
|
_class_call_check$v(this, Range);
|
|
24143
24093
|
Object.assign(this, props);
|
|
24144
24094
|
};
|
|
24145
|
-
function isNumber(obj) {
|
|
24095
|
+
function isNumber$2(obj) {
|
|
24146
24096
|
return typeof obj === 'number';
|
|
24147
24097
|
}
|
|
24148
|
-
function isString$2(obj) {
|
|
24098
|
+
function isString$2$1(obj) {
|
|
24149
24099
|
return typeof obj === 'string';
|
|
24150
24100
|
}
|
|
24151
24101
|
function equals$1(a, b) {
|
|
@@ -24435,19 +24385,19 @@ var builtins = {
|
|
|
24435
24385
|
// date(from) => date and time
|
|
24436
24386
|
// date(year, month, day)
|
|
24437
24387
|
'date': fn(function(year, month, day, from) {
|
|
24438
|
-
if (!from && !isNumber(year)) {
|
|
24388
|
+
if (!from && !isNumber$2(year)) {
|
|
24439
24389
|
from = year;
|
|
24440
24390
|
year = null;
|
|
24441
24391
|
}
|
|
24442
24392
|
var d;
|
|
24443
|
-
if (isString$2(from)) {
|
|
24393
|
+
if (isString$2$1(from)) {
|
|
24444
24394
|
d = date(from);
|
|
24445
24395
|
}
|
|
24446
24396
|
if (isDateTime(from)) {
|
|
24447
24397
|
d = from;
|
|
24448
24398
|
}
|
|
24449
24399
|
if (year) {
|
|
24450
|
-
if (!isNumber(month) || !isNumber(day)) {
|
|
24400
|
+
if (!isNumber$2(month) || !isNumber$2(day)) {
|
|
24451
24401
|
return null;
|
|
24452
24402
|
}
|
|
24453
24403
|
d = date().setZone('utc').set({
|
|
@@ -24475,11 +24425,11 @@ var builtins = {
|
|
|
24475
24425
|
day: dLocal.day
|
|
24476
24426
|
});
|
|
24477
24427
|
}
|
|
24478
|
-
if (isString$2(d)) {
|
|
24428
|
+
if (isString$2$1(d)) {
|
|
24479
24429
|
from = d;
|
|
24480
24430
|
d = null;
|
|
24481
24431
|
}
|
|
24482
|
-
if (isString$2(from)) {
|
|
24432
|
+
if (isString$2$1(from)) {
|
|
24483
24433
|
dt = date(from, null, from.includes('@') ? null : SystemZone.instance);
|
|
24484
24434
|
}
|
|
24485
24435
|
return dt && ifValid(dt) || null;
|
|
@@ -24500,11 +24450,11 @@ var builtins = {
|
|
|
24500
24450
|
if (offset) {
|
|
24501
24451
|
throw notImplemented('time(..., offset)');
|
|
24502
24452
|
}
|
|
24503
|
-
if (isString$2(hour) || isDateTime(hour)) {
|
|
24453
|
+
if (isString$2$1(hour) || isDateTime(hour)) {
|
|
24504
24454
|
from = hour;
|
|
24505
24455
|
hour = null;
|
|
24506
24456
|
}
|
|
24507
|
-
if (isString$2(from) && from) {
|
|
24457
|
+
if (isString$2$1(from) && from) {
|
|
24508
24458
|
t = date(null, from);
|
|
24509
24459
|
}
|
|
24510
24460
|
if (isDateTime(from)) {
|
|
@@ -24514,8 +24464,8 @@ var builtins = {
|
|
|
24514
24464
|
day: 1
|
|
24515
24465
|
});
|
|
24516
24466
|
}
|
|
24517
|
-
if (isNumber(hour)) {
|
|
24518
|
-
if (!isNumber(minute) || !isNumber(second)) {
|
|
24467
|
+
if (isNumber$2(hour)) {
|
|
24468
|
+
if (!isNumber$2(minute) || !isNumber$2(second)) {
|
|
24519
24469
|
return null;
|
|
24520
24470
|
}
|
|
24521
24471
|
// TODO: support offset = days and time duration
|
|
@@ -24670,7 +24620,7 @@ var builtins = {
|
|
|
24670
24620
|
]),
|
|
24671
24621
|
'string join': fn(function(list, delimiter) {
|
|
24672
24622
|
if (list.some(function(e) {
|
|
24673
|
-
return !isString$2(e) && e !== null;
|
|
24623
|
+
return !isString$2$1(e) && e !== null;
|
|
24674
24624
|
})) {
|
|
24675
24625
|
return null;
|
|
24676
24626
|
}
|
|
@@ -25056,13 +25006,13 @@ var builtins = {
|
|
|
25056
25006
|
]),
|
|
25057
25007
|
// 10.3.4.7 Range Functions
|
|
25058
25008
|
'before': fn(function(a, b) {
|
|
25059
|
-
return before(a, b);
|
|
25009
|
+
return before$1(a, b);
|
|
25060
25010
|
}, [
|
|
25061
25011
|
'any',
|
|
25062
25012
|
'any'
|
|
25063
25013
|
]),
|
|
25064
25014
|
'after': fn(function(a, b) {
|
|
25065
|
-
return before(b, a);
|
|
25015
|
+
return before$1(b, a);
|
|
25066
25016
|
}, [
|
|
25067
25017
|
'any',
|
|
25068
25018
|
'any'
|
|
@@ -25080,7 +25030,7 @@ var builtins = {
|
|
|
25080
25030
|
'range'
|
|
25081
25031
|
]),
|
|
25082
25032
|
'overlaps': fn(function(range1, range2) {
|
|
25083
|
-
return !before(range1, range2) && !before(range2, range1);
|
|
25033
|
+
return !before$1(range1, range2) && !before$1(range2, range1);
|
|
25084
25034
|
}, [
|
|
25085
25035
|
'range',
|
|
25086
25036
|
'range'
|
|
@@ -25384,7 +25334,7 @@ function createArgsValidator(argDefinitions) {
|
|
|
25384
25334
|
/**
|
|
25385
25335
|
* @param {Range|number} a
|
|
25386
25336
|
* @param {Range|number} b
|
|
25387
|
-
*/ function before(a, b) {
|
|
25337
|
+
*/ function before$1(a, b) {
|
|
25388
25338
|
if (_instanceof$e(a, Range$a) && _instanceof$e(b, Range$a)) {
|
|
25389
25339
|
return a.end < b.start || (!a['end included'] || !b['start included']) && a.end == b.start;
|
|
25390
25340
|
}
|
|
@@ -25514,7 +25464,7 @@ function stddev(array) {
|
|
|
25514
25464
|
}) / (n - 1));
|
|
25515
25465
|
}
|
|
25516
25466
|
function listReplace(list, matcher, newItem) {
|
|
25517
|
-
if (isNumber(matcher)) {
|
|
25467
|
+
if (isNumber$2(matcher)) {
|
|
25518
25468
|
return _to_consumable_array$3(list.slice(0, matcher - 1)).concat([
|
|
25519
25469
|
newItem
|
|
25520
25470
|
], _to_consumable_array$3(list.slice(matcher)));
|
|
@@ -26364,7 +26314,7 @@ function evalNode(node, input, args) {
|
|
|
26364
26314
|
if (typeof filterFn.type === 'undefined') {
|
|
26365
26315
|
try {
|
|
26366
26316
|
var value = filterFn(context);
|
|
26367
|
-
if (isNumber(value)) {
|
|
26317
|
+
if (isNumber$2(value)) {
|
|
26368
26318
|
filterFn.type = 'number';
|
|
26369
26319
|
}
|
|
26370
26320
|
} catch (_err) {
|
|
@@ -27192,7 +27142,7 @@ function _type_of$u(obj) {
|
|
|
27192
27142
|
* @private
|
|
27193
27143
|
* @param {*} value The value to convert.
|
|
27194
27144
|
* @returns {string} Returns the converted string.
|
|
27195
|
-
*/ function objectToString$
|
|
27145
|
+
*/ function objectToString$7(value) {
|
|
27196
27146
|
return nativeObjectToString.call(value);
|
|
27197
27147
|
}
|
|
27198
27148
|
/** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]';
|
|
@@ -27207,7 +27157,7 @@ function _type_of$u(obj) {
|
|
|
27207
27157
|
if (value == null) {
|
|
27208
27158
|
return value === undefined ? undefinedTag : nullTag;
|
|
27209
27159
|
}
|
|
27210
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString$
|
|
27160
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString$7(value);
|
|
27211
27161
|
}
|
|
27212
27162
|
/**
|
|
27213
27163
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
@@ -27236,7 +27186,7 @@ function _type_of$u(obj) {
|
|
|
27236
27186
|
"@swc/helpers - typeof";
|
|
27237
27187
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
27238
27188
|
}
|
|
27239
|
-
function isObjectLike$
|
|
27189
|
+
function isObjectLike$7(value) {
|
|
27240
27190
|
return value != null && (typeof value === "undefined" ? "undefined" : _type_of$t(value)) == 'object';
|
|
27241
27191
|
}
|
|
27242
27192
|
function _type_of$s(obj) {
|
|
@@ -27260,8 +27210,8 @@ function _type_of$s(obj) {
|
|
|
27260
27210
|
*
|
|
27261
27211
|
* _.isSymbol('abc');
|
|
27262
27212
|
* // => false
|
|
27263
|
-
*/ function isSymbol$
|
|
27264
|
-
return (typeof value === "undefined" ? "undefined" : _type_of$s(value)) == 'symbol' || isObjectLike$
|
|
27213
|
+
*/ function isSymbol$3(value) {
|
|
27214
|
+
return (typeof value === "undefined" ? "undefined" : _type_of$s(value)) == 'symbol' || isObjectLike$7(value) && baseGetTag(value) == symbolTag$3;
|
|
27265
27215
|
}
|
|
27266
27216
|
/**
|
|
27267
27217
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
@@ -27300,7 +27250,7 @@ function _type_of$s(obj) {
|
|
|
27300
27250
|
*
|
|
27301
27251
|
* _.isArray(_.noop);
|
|
27302
27252
|
* // => false
|
|
27303
|
-
*/ var isArray$1 = Array.isArray;
|
|
27253
|
+
*/ var isArray$1$1 = Array.isArray;
|
|
27304
27254
|
/** Used to convert symbols to primitives and strings. */ var symbolProto$2 = Symbol$1 ? Symbol$1.prototype : undefined, symbolToString = symbolProto$2 ? symbolProto$2.toString : undefined;
|
|
27305
27255
|
/**
|
|
27306
27256
|
* The base implementation of `_.toString` which doesn't convert nullish
|
|
@@ -27314,11 +27264,11 @@ function _type_of$s(obj) {
|
|
|
27314
27264
|
if (typeof value == 'string') {
|
|
27315
27265
|
return value;
|
|
27316
27266
|
}
|
|
27317
|
-
if (isArray$1(value)) {
|
|
27267
|
+
if (isArray$1$1(value)) {
|
|
27318
27268
|
// Recursively convert values (susceptible to call stack limits).
|
|
27319
27269
|
return arrayMap$1(value, baseToString) + '';
|
|
27320
27270
|
}
|
|
27321
|
-
if (isSymbol$
|
|
27271
|
+
if (isSymbol$3(value)) {
|
|
27322
27272
|
return symbolToString ? symbolToString.call(value) : '';
|
|
27323
27273
|
}
|
|
27324
27274
|
var result = value + '';
|
|
@@ -27375,15 +27325,15 @@ function _type_of$s(obj) {
|
|
|
27375
27325
|
"@swc/helpers - typeof";
|
|
27376
27326
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
27377
27327
|
}
|
|
27378
|
-
function isObject$
|
|
27328
|
+
function isObject$4(value) {
|
|
27379
27329
|
var type = typeof value === "undefined" ? "undefined" : _type_of$r(value);
|
|
27380
27330
|
return value != null && (type == 'object' || type == 'function');
|
|
27381
27331
|
}
|
|
27382
|
-
/** Used as references for various `Number` constants. */ var NAN$
|
|
27383
|
-
/** Used to detect bad signed hexadecimal string values. */ var reIsBadHex$
|
|
27384
|
-
/** Used to detect binary string values. */ var reIsBinary$
|
|
27385
|
-
/** Used to detect octal string values. */ var reIsOctal$
|
|
27386
|
-
/** Built-in method references without a dependency on `root`. */ var freeParseInt$
|
|
27332
|
+
/** Used as references for various `Number` constants. */ var NAN$3 = 0 / 0;
|
|
27333
|
+
/** Used to detect bad signed hexadecimal string values. */ var reIsBadHex$3 = /^[-+]0x[0-9a-f]+$/i;
|
|
27334
|
+
/** Used to detect binary string values. */ var reIsBinary$3 = /^0b[01]+$/i;
|
|
27335
|
+
/** Used to detect octal string values. */ var reIsOctal$3 = /^0o[0-7]+$/i;
|
|
27336
|
+
/** Built-in method references without a dependency on `root`. */ var freeParseInt$3 = parseInt;
|
|
27387
27337
|
/**
|
|
27388
27338
|
* Converts `value` to a number.
|
|
27389
27339
|
*
|
|
@@ -27406,25 +27356,25 @@ function isObject$2(value) {
|
|
|
27406
27356
|
*
|
|
27407
27357
|
* _.toNumber('3.2');
|
|
27408
27358
|
* // => 3.2
|
|
27409
|
-
*/ function toNumber$
|
|
27359
|
+
*/ function toNumber$3(value) {
|
|
27410
27360
|
if (typeof value == 'number') {
|
|
27411
27361
|
return value;
|
|
27412
27362
|
}
|
|
27413
|
-
if (isSymbol$
|
|
27414
|
-
return NAN$
|
|
27363
|
+
if (isSymbol$3(value)) {
|
|
27364
|
+
return NAN$3;
|
|
27415
27365
|
}
|
|
27416
|
-
if (isObject$
|
|
27366
|
+
if (isObject$4(value)) {
|
|
27417
27367
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
27418
|
-
value = isObject$
|
|
27368
|
+
value = isObject$4(other) ? other + '' : other;
|
|
27419
27369
|
}
|
|
27420
27370
|
if (typeof value != 'string') {
|
|
27421
27371
|
return value === 0 ? value : +value;
|
|
27422
27372
|
}
|
|
27423
27373
|
value = baseTrim(value);
|
|
27424
|
-
var isBinary = reIsBinary$
|
|
27425
|
-
return isBinary || reIsOctal$
|
|
27374
|
+
var isBinary = reIsBinary$3.test(value);
|
|
27375
|
+
return isBinary || reIsOctal$3.test(value) ? freeParseInt$3(value.slice(2), isBinary ? 2 : 8) : reIsBadHex$3.test(value) ? NAN$3 : +value;
|
|
27426
27376
|
}
|
|
27427
|
-
/** Used as references for various `Number` constants. */ var INFINITY$1 = 1 / 0, MAX_INTEGER$
|
|
27377
|
+
/** Used as references for various `Number` constants. */ var INFINITY$1$1 = 1 / 0, MAX_INTEGER$3 = 1.7976931348623157e+308;
|
|
27428
27378
|
/**
|
|
27429
27379
|
* Converts `value` to a finite number.
|
|
27430
27380
|
*
|
|
@@ -27447,14 +27397,14 @@ function isObject$2(value) {
|
|
|
27447
27397
|
*
|
|
27448
27398
|
* _.toFinite('3.2');
|
|
27449
27399
|
* // => 3.2
|
|
27450
|
-
*/ function toFinite$
|
|
27400
|
+
*/ function toFinite$3(value) {
|
|
27451
27401
|
if (!value) {
|
|
27452
27402
|
return value === 0 ? value : 0;
|
|
27453
27403
|
}
|
|
27454
|
-
value = toNumber$
|
|
27455
|
-
if (value === INFINITY$1 || value === -INFINITY$1) {
|
|
27404
|
+
value = toNumber$3(value);
|
|
27405
|
+
if (value === INFINITY$1$1 || value === -INFINITY$1$1) {
|
|
27456
27406
|
var sign = value < 0 ? -1 : 1;
|
|
27457
|
-
return sign * MAX_INTEGER$
|
|
27407
|
+
return sign * MAX_INTEGER$3;
|
|
27458
27408
|
}
|
|
27459
27409
|
return value === value ? value : 0;
|
|
27460
27410
|
}
|
|
@@ -27483,8 +27433,8 @@ function isObject$2(value) {
|
|
|
27483
27433
|
*
|
|
27484
27434
|
* _.toInteger('3.2');
|
|
27485
27435
|
* // => 3
|
|
27486
|
-
*/ function toInteger$
|
|
27487
|
-
var result = toFinite$
|
|
27436
|
+
*/ function toInteger$3(value) {
|
|
27437
|
+
var result = toFinite$3(value), remainder = result % 1;
|
|
27488
27438
|
return result === result ? remainder ? result - remainder : result : 0;
|
|
27489
27439
|
}
|
|
27490
27440
|
/**
|
|
@@ -27523,7 +27473,7 @@ function isObject$2(value) {
|
|
|
27523
27473
|
* _.isFunction(/abc/);
|
|
27524
27474
|
* // => false
|
|
27525
27475
|
*/ function isFunction$1(value) {
|
|
27526
|
-
if (!isObject$
|
|
27476
|
+
if (!isObject$4(value)) {
|
|
27527
27477
|
return false;
|
|
27528
27478
|
}
|
|
27529
27479
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
@@ -27581,7 +27531,7 @@ function isObject$2(value) {
|
|
|
27581
27531
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
27582
27532
|
* else `false`.
|
|
27583
27533
|
*/ function baseIsNative(value) {
|
|
27584
|
-
if (!isObject$
|
|
27534
|
+
if (!isObject$4(value) || isMasked(value)) {
|
|
27585
27535
|
return false;
|
|
27586
27536
|
}
|
|
27587
27537
|
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
@@ -27620,7 +27570,7 @@ function isObject$2(value) {
|
|
|
27620
27570
|
*/ var baseCreate = function() {
|
|
27621
27571
|
function object() {}
|
|
27622
27572
|
return function(proto) {
|
|
27623
|
-
if (!isObject$
|
|
27573
|
+
if (!isObject$4(proto)) {
|
|
27624
27574
|
return {};
|
|
27625
27575
|
}
|
|
27626
27576
|
if (objectCreate) {
|
|
@@ -28068,7 +28018,7 @@ function _type_of$p(obj) {
|
|
|
28068
28018
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
28069
28019
|
* else `false`.
|
|
28070
28020
|
*/ function isIterateeCall(value, index, object) {
|
|
28071
|
-
if (!isObject$
|
|
28021
|
+
if (!isObject$4(object)) {
|
|
28072
28022
|
return false;
|
|
28073
28023
|
}
|
|
28074
28024
|
var type = typeof index === "undefined" ? "undefined" : _type_of$p(index);
|
|
@@ -28135,7 +28085,7 @@ function _type_of$p(obj) {
|
|
|
28135
28085
|
* @param {*} value The value to check.
|
|
28136
28086
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
28137
28087
|
*/ function baseIsArguments(value) {
|
|
28138
|
-
return isObjectLike$
|
|
28088
|
+
return isObjectLike$7(value) && baseGetTag(value) == argsTag$3;
|
|
28139
28089
|
}
|
|
28140
28090
|
/** Used for built-in method references. */ var objectProto$e = Object.prototype;
|
|
28141
28091
|
/** Used to check objects for own properties. */ var hasOwnProperty$d = objectProto$e.hasOwnProperty;
|
|
@@ -28160,7 +28110,7 @@ function _type_of$p(obj) {
|
|
|
28160
28110
|
*/ var isArguments$1 = baseIsArguments(function() {
|
|
28161
28111
|
return arguments;
|
|
28162
28112
|
}()) ? baseIsArguments : function isArguments(value) {
|
|
28163
|
-
return isObjectLike$
|
|
28113
|
+
return isObjectLike$7(value) && hasOwnProperty$d.call(value, 'callee') && !propertyIsEnumerable$1.call(value, 'callee');
|
|
28164
28114
|
};
|
|
28165
28115
|
/**
|
|
28166
28116
|
* This method returns `false`.
|
|
@@ -28215,7 +28165,7 @@ typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBuf
|
|
|
28215
28165
|
* @param {*} value The value to check.
|
|
28216
28166
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
28217
28167
|
*/ function baseIsTypedArray(value) {
|
|
28218
|
-
return isObjectLike$
|
|
28168
|
+
return isObjectLike$7(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
28219
28169
|
}
|
|
28220
28170
|
/**
|
|
28221
28171
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
@@ -28275,7 +28225,7 @@ function _type_of$n(obj) {
|
|
|
28275
28225
|
* @param {boolean} inherited Specify returning inherited property names.
|
|
28276
28226
|
* @returns {Array} Returns the array of property names.
|
|
28277
28227
|
*/ function arrayLikeKeys$1(value, inherited) {
|
|
28278
|
-
var isArr = isArray$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes$1(value.length, String) : [], length = result.length;
|
|
28228
|
+
var isArr = isArray$1$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes$1(value.length, String) : [], length = result.length;
|
|
28279
28229
|
for(var key in value){
|
|
28280
28230
|
if ((inherited || hasOwnProperty$c.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
28281
28231
|
(key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -28294,12 +28244,12 @@ function _type_of$n(obj) {
|
|
|
28294
28244
|
* @param {Function} func The function to wrap.
|
|
28295
28245
|
* @param {Function} transform The argument transform.
|
|
28296
28246
|
* @returns {Function} Returns the new function.
|
|
28297
|
-
*/ function overArg$
|
|
28247
|
+
*/ function overArg$2(func, transform) {
|
|
28298
28248
|
return function(arg) {
|
|
28299
28249
|
return func(transform(arg));
|
|
28300
28250
|
};
|
|
28301
28251
|
}
|
|
28302
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys$1 = overArg$
|
|
28252
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys$1 = overArg$2(Object.keys, Object);
|
|
28303
28253
|
/** Used for built-in method references. */ var objectProto$c = Object.prototype;
|
|
28304
28254
|
/** Used to check objects for own properties. */ var hasOwnProperty$b = objectProto$c.hasOwnProperty;
|
|
28305
28255
|
/**
|
|
@@ -28420,7 +28370,7 @@ function _type_of$n(obj) {
|
|
|
28420
28370
|
* @param {Object} object The object to query.
|
|
28421
28371
|
* @returns {Array} Returns the array of property names.
|
|
28422
28372
|
*/ function baseKeysIn(object) {
|
|
28423
|
-
if (!isObject$
|
|
28373
|
+
if (!isObject$4(object)) {
|
|
28424
28374
|
return nativeKeysIn(object);
|
|
28425
28375
|
}
|
|
28426
28376
|
var isProto = isPrototype$1(object), result = [];
|
|
@@ -28469,11 +28419,11 @@ function _type_of$m(obj) {
|
|
|
28469
28419
|
* @param {Object} [object] The object to query keys on.
|
|
28470
28420
|
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
28471
28421
|
*/ function isKey(value, object) {
|
|
28472
|
-
if (isArray$1(value)) {
|
|
28422
|
+
if (isArray$1$1(value)) {
|
|
28473
28423
|
return false;
|
|
28474
28424
|
}
|
|
28475
28425
|
var type = typeof value === "undefined" ? "undefined" : _type_of$m(value);
|
|
28476
|
-
if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol$
|
|
28426
|
+
if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol$3(value)) {
|
|
28477
28427
|
return true;
|
|
28478
28428
|
}
|
|
28479
28429
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
@@ -28926,7 +28876,7 @@ memoize.Cache = MapCache;
|
|
|
28926
28876
|
* @param {Object} [object] The object to query keys on.
|
|
28927
28877
|
* @returns {Array} Returns the cast property path array.
|
|
28928
28878
|
*/ function castPath(value, object) {
|
|
28929
|
-
if (isArray$1(value)) {
|
|
28879
|
+
if (isArray$1$1(value)) {
|
|
28930
28880
|
return value;
|
|
28931
28881
|
}
|
|
28932
28882
|
return isKey(value, object) ? [
|
|
@@ -28940,7 +28890,7 @@ memoize.Cache = MapCache;
|
|
|
28940
28890
|
* @param {*} value The value to inspect.
|
|
28941
28891
|
* @returns {string|symbol} Returns the key.
|
|
28942
28892
|
*/ function toKey(value) {
|
|
28943
|
-
if (typeof value == 'string' || isSymbol$
|
|
28893
|
+
if (typeof value == 'string' || isSymbol$3(value)) {
|
|
28944
28894
|
return value;
|
|
28945
28895
|
}
|
|
28946
28896
|
var result = value + '';
|
|
@@ -29011,7 +28961,7 @@ memoize.Cache = MapCache;
|
|
|
29011
28961
|
* @param {*} value The value to check.
|
|
29012
28962
|
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
|
|
29013
28963
|
*/ function isFlattenable(value) {
|
|
29014
|
-
return isArray$1(value) || isArguments$1(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
28964
|
+
return isArray$1$1(value) || isArguments$1(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
29015
28965
|
}
|
|
29016
28966
|
/**
|
|
29017
28967
|
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
@@ -29056,7 +29006,7 @@ memoize.Cache = MapCache;
|
|
|
29056
29006
|
var length = array == null ? 0 : array.length;
|
|
29057
29007
|
return length ? baseFlatten(array) : [];
|
|
29058
29008
|
}
|
|
29059
|
-
/** Built-in value references. */ var getPrototype = overArg$
|
|
29009
|
+
/** Built-in value references. */ var getPrototype$1 = overArg$2(Object.getPrototypeOf, Object);
|
|
29060
29010
|
/**
|
|
29061
29011
|
* The base implementation of `_.slice` without an iteratee call guard.
|
|
29062
29012
|
*
|
|
@@ -29307,7 +29257,7 @@ function _type_of$k(obj) {
|
|
|
29307
29257
|
var result = [];
|
|
29308
29258
|
while(object){
|
|
29309
29259
|
arrayPush(result, getSymbols(object));
|
|
29310
|
-
object = getPrototype(object);
|
|
29260
|
+
object = getPrototype$1(object);
|
|
29311
29261
|
}
|
|
29312
29262
|
return result;
|
|
29313
29263
|
};
|
|
@@ -29323,7 +29273,7 @@ function _type_of$k(obj) {
|
|
|
29323
29273
|
* @returns {Array} Returns the array of property names and symbols.
|
|
29324
29274
|
*/ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
29325
29275
|
var result = keysFunc(object);
|
|
29326
|
-
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
29276
|
+
return isArray$1$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
29327
29277
|
}
|
|
29328
29278
|
/**
|
|
29329
29279
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
@@ -29378,8 +29328,8 @@ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$3 || Map
|
|
|
29378
29328
|
return result;
|
|
29379
29329
|
};
|
|
29380
29330
|
}
|
|
29381
|
-
/** Used for built-in method references. */ var objectProto$6 = Object.prototype;
|
|
29382
|
-
/** Used to check objects for own properties. */ var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
|
|
29331
|
+
/** Used for built-in method references. */ var objectProto$6$1 = Object.prototype;
|
|
29332
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$6 = objectProto$6$1.hasOwnProperty;
|
|
29383
29333
|
/**
|
|
29384
29334
|
* Initializes an array clone.
|
|
29385
29335
|
*
|
|
@@ -29451,7 +29401,7 @@ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$3 || Map
|
|
|
29451
29401
|
var buffer = typedArray.buffer;
|
|
29452
29402
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
29453
29403
|
}
|
|
29454
|
-
/** `Object#toString` result references. */ var boolTag$2 = '[object Boolean]', dateTag$2 = '[object Date]', mapTag$4 = '[object Map]', numberTag$2 = '[object Number]', regexpTag$3 = '[object RegExp]', setTag$4 = '[object Set]', stringTag$3 = '[object String]', symbolTag$2 = '[object Symbol]';
|
|
29404
|
+
/** `Object#toString` result references. */ var boolTag$2 = '[object Boolean]', dateTag$2 = '[object Date]', mapTag$4 = '[object Map]', numberTag$2 = '[object Number]', regexpTag$3 = '[object RegExp]', setTag$4 = '[object Set]', stringTag$3 = '[object String]', symbolTag$2$1 = '[object Symbol]';
|
|
29455
29405
|
var arrayBufferTag$2 = '[object ArrayBuffer]', dataViewTag$2 = '[object DataView]', float32Tag$1 = '[object Float32Array]', float64Tag$1 = '[object Float64Array]', int8Tag$1 = '[object Int8Array]', int16Tag$1 = '[object Int16Array]', int32Tag$1 = '[object Int32Array]', uint8Tag$1 = '[object Uint8Array]', uint8ClampedTag$1 = '[object Uint8ClampedArray]', uint16Tag$1 = '[object Uint16Array]', uint32Tag$1 = '[object Uint32Array]';
|
|
29456
29406
|
/**
|
|
29457
29407
|
* Initializes an object clone based on its `toStringTag`.
|
|
@@ -29493,7 +29443,7 @@ var arrayBufferTag$2 = '[object ArrayBuffer]', dataViewTag$2 = '[object DataView
|
|
|
29493
29443
|
return cloneRegExp(object);
|
|
29494
29444
|
case setTag$4:
|
|
29495
29445
|
return new Ctor;
|
|
29496
|
-
case symbolTag$2:
|
|
29446
|
+
case symbolTag$2$1:
|
|
29497
29447
|
return cloneSymbol(object);
|
|
29498
29448
|
}
|
|
29499
29449
|
}
|
|
@@ -29504,7 +29454,7 @@ var arrayBufferTag$2 = '[object ArrayBuffer]', dataViewTag$2 = '[object DataView
|
|
|
29504
29454
|
* @param {Object} object The object to clone.
|
|
29505
29455
|
* @returns {Object} Returns the initialized clone.
|
|
29506
29456
|
*/ function initCloneObject(object) {
|
|
29507
|
-
return typeof object.constructor == 'function' && !isPrototype$1(object) ? baseCreate(getPrototype(object)) : {};
|
|
29457
|
+
return typeof object.constructor == 'function' && !isPrototype$1(object) ? baseCreate(getPrototype$1(object)) : {};
|
|
29508
29458
|
}
|
|
29509
29459
|
/** `Object#toString` result references. */ var mapTag$3 = '[object Map]';
|
|
29510
29460
|
/**
|
|
@@ -29514,7 +29464,7 @@ var arrayBufferTag$2 = '[object ArrayBuffer]', dataViewTag$2 = '[object DataView
|
|
|
29514
29464
|
* @param {*} value The value to check.
|
|
29515
29465
|
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
29516
29466
|
*/ function baseIsMap(value) {
|
|
29517
|
-
return isObjectLike$
|
|
29467
|
+
return isObjectLike$7(value) && getTag(value) == mapTag$3;
|
|
29518
29468
|
}
|
|
29519
29469
|
/* Node.js helper references. */ var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
29520
29470
|
/**
|
|
@@ -29542,7 +29492,7 @@ var arrayBufferTag$2 = '[object ArrayBuffer]', dataViewTag$2 = '[object DataView
|
|
|
29542
29492
|
* @param {*} value The value to check.
|
|
29543
29493
|
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
29544
29494
|
*/ function baseIsSet(value) {
|
|
29545
|
-
return isObjectLike$
|
|
29495
|
+
return isObjectLike$7(value) && getTag(value) == setTag$3;
|
|
29546
29496
|
}
|
|
29547
29497
|
/* Node.js helper references. */ var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
29548
29498
|
/**
|
|
@@ -29562,10 +29512,10 @@ var arrayBufferTag$2 = '[object ArrayBuffer]', dataViewTag$2 = '[object DataView
|
|
|
29562
29512
|
* _.isSet(new WeakSet);
|
|
29563
29513
|
* // => false
|
|
29564
29514
|
*/ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
29565
|
-
/** `Object#toString` result references. */ var argsTag$1 = '[object Arguments]', arrayTag$1 = '[object Array]', boolTag$1 = '[object Boolean]', dateTag$1 = '[object Date]', errorTag$1 = '[object Error]', funcTag$3 = '[object Function]', genTag$2 = '[object GeneratorFunction]', mapTag$2 = '[object Map]', numberTag$1 = '[object Number]', objectTag$1 = '[object Object]', regexpTag$2 = '[object RegExp]', setTag$2 = '[object Set]', stringTag$2 = '[object String]', symbolTag$1 = '[object Symbol]', weakMapTag = '[object WeakMap]';
|
|
29515
|
+
/** `Object#toString` result references. */ var argsTag$1 = '[object Arguments]', arrayTag$1 = '[object Array]', boolTag$1 = '[object Boolean]', dateTag$1 = '[object Date]', errorTag$1 = '[object Error]', funcTag$3 = '[object Function]', genTag$2 = '[object GeneratorFunction]', mapTag$2 = '[object Map]', numberTag$1 = '[object Number]', objectTag$1 = '[object Object]', regexpTag$2 = '[object RegExp]', setTag$2 = '[object Set]', stringTag$2 = '[object String]', symbolTag$1$1 = '[object Symbol]', weakMapTag = '[object WeakMap]';
|
|
29566
29516
|
var arrayBufferTag$1 = '[object ArrayBuffer]', dataViewTag$1 = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]';
|
|
29567
29517
|
/** Used to identify `toStringTag` values supported by `_.clone`. */ var cloneableTags = {};
|
|
29568
|
-
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$2] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$2] = cloneableTags[setTag$2] = cloneableTags[stringTag$2] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
29518
|
+
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$2] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$2] = cloneableTags[setTag$2] = cloneableTags[stringTag$2] = cloneableTags[symbolTag$1$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
29569
29519
|
cloneableTags[errorTag$1] = cloneableTags[funcTag$3] = cloneableTags[weakMapTag] = false;
|
|
29570
29520
|
/**
|
|
29571
29521
|
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
@@ -29587,10 +29537,10 @@ cloneableTags[errorTag$1] = cloneableTags[funcTag$3] = cloneableTags[weakMapTag]
|
|
|
29587
29537
|
if (result !== undefined) {
|
|
29588
29538
|
return result;
|
|
29589
29539
|
}
|
|
29590
|
-
if (!isObject$
|
|
29540
|
+
if (!isObject$4(value)) {
|
|
29591
29541
|
return value;
|
|
29592
29542
|
}
|
|
29593
|
-
var isArr = isArray$1(value);
|
|
29543
|
+
var isArr = isArray$1$1(value);
|
|
29594
29544
|
if (isArr) {
|
|
29595
29545
|
result = initCloneArray(value);
|
|
29596
29546
|
{
|
|
@@ -29853,7 +29803,7 @@ SetCache.prototype.has = setCacheHas;
|
|
|
29853
29803
|
return result;
|
|
29854
29804
|
}
|
|
29855
29805
|
/** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
|
|
29856
|
-
/** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', mapTag$1 = '[object Map]', numberTag = '[object Number]', regexpTag$1 = '[object RegExp]', setTag$1 = '[object Set]', stringTag$1 = '[object String]', symbolTag$4 = '[object Symbol]';
|
|
29806
|
+
/** `Object#toString` result references. */ var boolTag$4 = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', mapTag$1 = '[object Map]', numberTag$4 = '[object Number]', regexpTag$1 = '[object RegExp]', setTag$1 = '[object Set]', stringTag$1$1 = '[object String]', symbolTag$4 = '[object Symbol]';
|
|
29857
29807
|
var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]';
|
|
29858
29808
|
/** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
29859
29809
|
/**
|
|
@@ -29885,16 +29835,16 @@ var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]';
|
|
|
29885
29835
|
return false;
|
|
29886
29836
|
}
|
|
29887
29837
|
return true;
|
|
29888
|
-
case boolTag:
|
|
29838
|
+
case boolTag$4:
|
|
29889
29839
|
case dateTag:
|
|
29890
|
-
case numberTag:
|
|
29840
|
+
case numberTag$4:
|
|
29891
29841
|
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
29892
29842
|
// Invalid dates are coerced to `NaN`.
|
|
29893
29843
|
return eq$3(+object, +other);
|
|
29894
29844
|
case errorTag:
|
|
29895
29845
|
return object.name == other.name && object.message == other.message;
|
|
29896
29846
|
case regexpTag$1:
|
|
29897
|
-
case stringTag$1:
|
|
29847
|
+
case stringTag$1$1:
|
|
29898
29848
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
29899
29849
|
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
29900
29850
|
// for more details.
|
|
@@ -29933,8 +29883,8 @@ function _instanceof$c(left, right) {
|
|
|
29933
29883
|
}
|
|
29934
29884
|
}
|
|
29935
29885
|
/** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
29936
|
-
/** Used for built-in method references. */ var objectProto$5 = Object.prototype;
|
|
29937
|
-
/** Used to check objects for own properties. */ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
|
|
29886
|
+
/** Used for built-in method references. */ var objectProto$5$1 = Object.prototype;
|
|
29887
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$5 = objectProto$5$1.hasOwnProperty;
|
|
29938
29888
|
/**
|
|
29939
29889
|
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
29940
29890
|
* partial deep comparisons.
|
|
@@ -29994,9 +29944,9 @@ function _instanceof$c(left, right) {
|
|
|
29994
29944
|
return result;
|
|
29995
29945
|
}
|
|
29996
29946
|
/** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
29997
|
-
/** `Object#toString` result references. */ var argsTag$4 = '[object Arguments]', arrayTag = '[object Array]', objectTag = '[object Object]';
|
|
29998
|
-
/** Used for built-in method references. */ var objectProto$4 = Object.prototype;
|
|
29999
|
-
/** Used to check objects for own properties. */ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
29947
|
+
/** `Object#toString` result references. */ var argsTag$4 = '[object Arguments]', arrayTag = '[object Array]', objectTag$4 = '[object Object]';
|
|
29948
|
+
/** Used for built-in method references. */ var objectProto$4$1 = Object.prototype;
|
|
29949
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$4 = objectProto$4$1.hasOwnProperty;
|
|
30000
29950
|
/**
|
|
30001
29951
|
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
30002
29952
|
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
@@ -30011,10 +29961,10 @@ function _instanceof$c(left, right) {
|
|
|
30011
29961
|
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
30012
29962
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
30013
29963
|
*/ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
30014
|
-
var objIsArr = isArray$1(object), othIsArr = isArray$1(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
|
|
30015
|
-
objTag = objTag == argsTag$4 ? objectTag : objTag;
|
|
30016
|
-
othTag = othTag == argsTag$4 ? objectTag : othTag;
|
|
30017
|
-
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
29964
|
+
var objIsArr = isArray$1$1(object), othIsArr = isArray$1$1(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
|
|
29965
|
+
objTag = objTag == argsTag$4 ? objectTag$4 : objTag;
|
|
29966
|
+
othTag = othTag == argsTag$4 ? objectTag$4 : othTag;
|
|
29967
|
+
var objIsObj = objTag == objectTag$4, othIsObj = othTag == objectTag$4, isSameTag = objTag == othTag;
|
|
30018
29968
|
if (isSameTag && isBuffer(object)) {
|
|
30019
29969
|
if (!isBuffer(other)) {
|
|
30020
29970
|
return false;
|
|
@@ -30057,7 +30007,7 @@ function _instanceof$c(left, right) {
|
|
|
30057
30007
|
if (value === other) {
|
|
30058
30008
|
return true;
|
|
30059
30009
|
}
|
|
30060
|
-
if (value == null || other == null || !isObjectLike$
|
|
30010
|
+
if (value == null || other == null || !isObjectLike$7(value) && !isObjectLike$7(other)) {
|
|
30061
30011
|
return value !== value && other !== other;
|
|
30062
30012
|
}
|
|
30063
30013
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
@@ -30109,7 +30059,7 @@ function _instanceof$c(left, right) {
|
|
|
30109
30059
|
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
|
30110
30060
|
* equality comparisons, else `false`.
|
|
30111
30061
|
*/ function isStrictComparable(value) {
|
|
30112
|
-
return value === value && !isObject$
|
|
30062
|
+
return value === value && !isObject$4(value);
|
|
30113
30063
|
}
|
|
30114
30064
|
/**
|
|
30115
30065
|
* Gets the property names, values, and compare flags of `object`.
|
|
@@ -30192,7 +30142,7 @@ function _instanceof$c(left, right) {
|
|
|
30192
30142
|
return result;
|
|
30193
30143
|
}
|
|
30194
30144
|
length = object == null ? 0 : object.length;
|
|
30195
|
-
return !!length && isLength$1(length) && isIndex$1(key, length) && (isArray$1(object) || isArguments$1(object));
|
|
30145
|
+
return !!length && isLength$1(length) && isIndex$1(key, length) && (isArray$1$1(object) || isArguments$1(object));
|
|
30196
30146
|
}
|
|
30197
30147
|
/**
|
|
30198
30148
|
* Checks if `path` is a direct or inherited property of `object`.
|
|
@@ -30305,7 +30255,7 @@ function _type_of$j(obj) {
|
|
|
30305
30255
|
return identity;
|
|
30306
30256
|
}
|
|
30307
30257
|
if ((typeof value === "undefined" ? "undefined" : _type_of$j(value)) == 'object') {
|
|
30308
|
-
return isArray$1(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
30258
|
+
return isArray$1$1(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
30309
30259
|
}
|
|
30310
30260
|
return property(value);
|
|
30311
30261
|
}
|
|
@@ -30422,12 +30372,12 @@ function _type_of$j(obj) {
|
|
|
30422
30372
|
* @returns {Function} Returns the new aggregator function.
|
|
30423
30373
|
*/ function createAggregator(setter, initializer) {
|
|
30424
30374
|
return function(collection, iteratee) {
|
|
30425
|
-
var func = isArray$1(collection) ? arrayAggregator : baseAggregator, accumulator = {};
|
|
30375
|
+
var func = isArray$1$1(collection) ? arrayAggregator : baseAggregator, accumulator = {};
|
|
30426
30376
|
return func(collection, setter, baseIteratee(iteratee), accumulator);
|
|
30427
30377
|
};
|
|
30428
30378
|
}
|
|
30429
|
-
/** Used for built-in method references. */ var objectProto$3 = Object.prototype;
|
|
30430
|
-
/** Used to check objects for own properties. */ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
30379
|
+
/** Used for built-in method references. */ var objectProto$3$1 = Object.prototype;
|
|
30380
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$3 = objectProto$3$1.hasOwnProperty;
|
|
30431
30381
|
/**
|
|
30432
30382
|
* Assigns own and inherited enumerable string keyed properties of source
|
|
30433
30383
|
* objects to the destination object for all destination properties that
|
|
@@ -30464,7 +30414,7 @@ function _type_of$j(obj) {
|
|
|
30464
30414
|
while(++propsIndex < propsLength){
|
|
30465
30415
|
var key = props[propsIndex];
|
|
30466
30416
|
var value = object[key];
|
|
30467
|
-
if (value === undefined || eq$3(value, objectProto$3[key]) && !hasOwnProperty$3.call(object, key)) {
|
|
30417
|
+
if (value === undefined || eq$3(value, objectProto$3$1[key]) && !hasOwnProperty$3.call(object, key)) {
|
|
30468
30418
|
object[key] = source[key];
|
|
30469
30419
|
}
|
|
30470
30420
|
}
|
|
@@ -30496,7 +30446,7 @@ function _type_of$j(obj) {
|
|
|
30496
30446
|
* _.isArrayLikeObject(_.noop);
|
|
30497
30447
|
* // => false
|
|
30498
30448
|
*/ function isArrayLikeObject$1(value) {
|
|
30499
|
-
return isObjectLike$
|
|
30449
|
+
return isObjectLike$7(value) && isArrayLike$1(value);
|
|
30500
30450
|
}
|
|
30501
30451
|
/** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE$1 = 200;
|
|
30502
30452
|
/**
|
|
@@ -30605,7 +30555,7 @@ function _type_of$j(obj) {
|
|
|
30605
30555
|
if (!length) {
|
|
30606
30556
|
return [];
|
|
30607
30557
|
}
|
|
30608
|
-
n = n === undefined ? 1 : toInteger$
|
|
30558
|
+
n = n === undefined ? 1 : toInteger$3(n);
|
|
30609
30559
|
return baseSlice(array, n < 0 ? 0 : n, length);
|
|
30610
30560
|
}
|
|
30611
30561
|
/**
|
|
@@ -30637,7 +30587,7 @@ function _type_of$j(obj) {
|
|
|
30637
30587
|
if (!length) {
|
|
30638
30588
|
return [];
|
|
30639
30589
|
}
|
|
30640
|
-
n = n === undefined ? 1 : toInteger$
|
|
30590
|
+
n = n === undefined ? 1 : toInteger$3(n);
|
|
30641
30591
|
n = length - n;
|
|
30642
30592
|
return baseSlice(array, 0, n < 0 ? 0 : n);
|
|
30643
30593
|
}
|
|
@@ -30680,7 +30630,7 @@ function _type_of$j(obj) {
|
|
|
30680
30630
|
* });
|
|
30681
30631
|
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
|
|
30682
30632
|
*/ function forEach(collection, iteratee) {
|
|
30683
|
-
var func = isArray$1(collection) ? arrayEach : baseEach;
|
|
30633
|
+
var func = isArray$1$1(collection) ? arrayEach : baseEach;
|
|
30684
30634
|
return func(collection, castFunction(iteratee));
|
|
30685
30635
|
}
|
|
30686
30636
|
/**
|
|
@@ -30758,7 +30708,7 @@ function _type_of$j(obj) {
|
|
|
30758
30708
|
* _.every(users, 'active');
|
|
30759
30709
|
* // => false
|
|
30760
30710
|
*/ function every(collection, predicate, guard) {
|
|
30761
|
-
var func = isArray$1(collection) ? arrayEvery : baseEvery;
|
|
30711
|
+
var func = isArray$1$1(collection) ? arrayEvery : baseEvery;
|
|
30762
30712
|
return func(collection, baseIteratee(predicate));
|
|
30763
30713
|
}
|
|
30764
30714
|
/**
|
|
@@ -30818,7 +30768,7 @@ function _type_of$j(obj) {
|
|
|
30818
30768
|
* _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
|
|
30819
30769
|
* // => objects for ['fred', 'barney']
|
|
30820
30770
|
*/ function filter(collection, predicate) {
|
|
30821
|
-
var func = isArray$1(collection) ? arrayFilter : baseFilter;
|
|
30771
|
+
var func = isArray$1$1(collection) ? arrayFilter : baseFilter;
|
|
30822
30772
|
return func(collection, baseIteratee(predicate));
|
|
30823
30773
|
}
|
|
30824
30774
|
/**
|
|
@@ -30881,7 +30831,7 @@ function _type_of$j(obj) {
|
|
|
30881
30831
|
if (!length) {
|
|
30882
30832
|
return -1;
|
|
30883
30833
|
}
|
|
30884
|
-
var index = fromIndex == null ? 0 : toInteger$
|
|
30834
|
+
var index = fromIndex == null ? 0 : toInteger$3(fromIndex);
|
|
30885
30835
|
if (index < 0) {
|
|
30886
30836
|
index = nativeMax$1(length + index, 0);
|
|
30887
30837
|
}
|
|
@@ -30999,7 +30949,7 @@ function _type_of$j(obj) {
|
|
|
30999
30949
|
* _.map(users, 'user');
|
|
31000
30950
|
* // => ['barney', 'fred']
|
|
31001
30951
|
*/ function map(collection, iteratee) {
|
|
31002
|
-
var func = isArray$1(collection) ? arrayMap$1 : baseMap;
|
|
30952
|
+
var func = isArray$1$1(collection) ? arrayMap$1 : baseMap;
|
|
31003
30953
|
return func(collection, baseIteratee(iteratee));
|
|
31004
30954
|
}
|
|
31005
30955
|
/**
|
|
@@ -31025,8 +30975,8 @@ function _type_of$j(obj) {
|
|
|
31025
30975
|
*/ function flatMap(collection, iteratee) {
|
|
31026
30976
|
return baseFlatten(map(collection, iteratee));
|
|
31027
30977
|
}
|
|
31028
|
-
/** Used for built-in method references. */ var objectProto$2 = Object.prototype;
|
|
31029
|
-
/** Used to check objects for own properties. */ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
30978
|
+
/** Used for built-in method references. */ var objectProto$2$1 = Object.prototype;
|
|
30979
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$2 = objectProto$2$1.hasOwnProperty;
|
|
31030
30980
|
/**
|
|
31031
30981
|
* Creates an object composed of keys generated from the results of running
|
|
31032
30982
|
* each element of `collection` thru `iteratee`. The order of grouped values
|
|
@@ -31058,8 +31008,8 @@ function _type_of$j(obj) {
|
|
|
31058
31008
|
]);
|
|
31059
31009
|
}
|
|
31060
31010
|
});
|
|
31061
|
-
/** Used for built-in method references. */ var objectProto$1 = Object.prototype;
|
|
31062
|
-
/** Used to check objects for own properties. */ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
31011
|
+
/** Used for built-in method references. */ var objectProto$1$1 = Object.prototype;
|
|
31012
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$1$1 = objectProto$1$1.hasOwnProperty;
|
|
31063
31013
|
/**
|
|
31064
31014
|
* The base implementation of `_.has` without support for deep paths.
|
|
31065
31015
|
*
|
|
@@ -31068,7 +31018,7 @@ function _type_of$j(obj) {
|
|
|
31068
31018
|
* @param {Array|string} key The key to check.
|
|
31069
31019
|
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
31070
31020
|
*/ function baseHas(object, key) {
|
|
31071
|
-
return object != null && hasOwnProperty$1.call(object, key);
|
|
31021
|
+
return object != null && hasOwnProperty$1$1.call(object, key);
|
|
31072
31022
|
}
|
|
31073
31023
|
/**
|
|
31074
31024
|
* Checks if `path` is a direct property of `object`.
|
|
@@ -31116,8 +31066,8 @@ function _type_of$j(obj) {
|
|
|
31116
31066
|
*
|
|
31117
31067
|
* _.isString(1);
|
|
31118
31068
|
* // => false
|
|
31119
|
-
*/ function isString$1(value) {
|
|
31120
|
-
return typeof value == 'string' || !isArray$1(value) && isObjectLike$
|
|
31069
|
+
*/ function isString$1$1(value) {
|
|
31070
|
+
return typeof value == 'string' || !isArray$1$1(value) && isObjectLike$7(value) && baseGetTag(value) == stringTag$5;
|
|
31121
31071
|
}
|
|
31122
31072
|
/**
|
|
31123
31073
|
* The base implementation of `_.values` and `_.valuesIn` which creates an
|
|
@@ -31193,12 +31143,12 @@ function _type_of$j(obj) {
|
|
|
31193
31143
|
* // => true
|
|
31194
31144
|
*/ function includes$2(collection, value, fromIndex, guard) {
|
|
31195
31145
|
collection = isArrayLike$1(collection) ? collection : values$1(collection);
|
|
31196
|
-
fromIndex = fromIndex && true ? toInteger$
|
|
31146
|
+
fromIndex = fromIndex && true ? toInteger$3(fromIndex) : 0;
|
|
31197
31147
|
var length = collection.length;
|
|
31198
31148
|
if (fromIndex < 0) {
|
|
31199
31149
|
fromIndex = nativeMax$3(length + fromIndex, 0);
|
|
31200
31150
|
}
|
|
31201
|
-
return isString$1(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf$1(collection, value, fromIndex) > -1;
|
|
31151
|
+
return isString$1$1(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf$1(collection, value, fromIndex) > -1;
|
|
31202
31152
|
}
|
|
31203
31153
|
/**
|
|
31204
31154
|
* Gets the index at which the first occurrence of `value` is found in `array`
|
|
@@ -31269,7 +31219,7 @@ function _type_of$j(obj) {
|
|
|
31269
31219
|
if (value == null) {
|
|
31270
31220
|
return true;
|
|
31271
31221
|
}
|
|
31272
|
-
if (isArrayLike$1(value) && (isArray$1(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments$1(value))) {
|
|
31222
|
+
if (isArrayLike$1(value) && (isArray$1$1(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments$1(value))) {
|
|
31273
31223
|
return !value.length;
|
|
31274
31224
|
}
|
|
31275
31225
|
var tag = getTag(value);
|
|
@@ -31294,7 +31244,7 @@ function _type_of$j(obj) {
|
|
|
31294
31244
|
* @param {*} value The value to check.
|
|
31295
31245
|
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
|
|
31296
31246
|
*/ function baseIsRegExp(value) {
|
|
31297
|
-
return isObjectLike$
|
|
31247
|
+
return isObjectLike$7(value) && baseGetTag(value) == regexpTag;
|
|
31298
31248
|
}
|
|
31299
31249
|
/* Node.js helper references. */ var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
|
|
31300
31250
|
/**
|
|
@@ -31333,7 +31283,7 @@ function _type_of$j(obj) {
|
|
|
31333
31283
|
*/ function isUndefined(value) {
|
|
31334
31284
|
return value === undefined;
|
|
31335
31285
|
}
|
|
31336
|
-
/** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function';
|
|
31286
|
+
/** Error message constants. */ var FUNC_ERROR_TEXT$2 = 'Expected a function';
|
|
31337
31287
|
/**
|
|
31338
31288
|
* Creates a function that negates the result of the predicate `func`. The
|
|
31339
31289
|
* `func` predicate is invoked with the `this` binding and arguments of the
|
|
@@ -31355,7 +31305,7 @@ function _type_of$j(obj) {
|
|
|
31355
31305
|
* // => [1, 3, 5]
|
|
31356
31306
|
*/ function negate(predicate) {
|
|
31357
31307
|
if (typeof predicate != 'function') {
|
|
31358
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
31308
|
+
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
31359
31309
|
}
|
|
31360
31310
|
return function() {
|
|
31361
31311
|
var args = arguments;
|
|
@@ -31382,7 +31332,7 @@ function _type_of$j(obj) {
|
|
|
31382
31332
|
* @param {Function} [customizer] The function to customize path creation.
|
|
31383
31333
|
* @returns {Object} Returns `object`.
|
|
31384
31334
|
*/ function baseSet(object, path, value, customizer) {
|
|
31385
|
-
if (!isObject$
|
|
31335
|
+
if (!isObject$4(object)) {
|
|
31386
31336
|
return object;
|
|
31387
31337
|
}
|
|
31388
31338
|
path = castPath(path, object);
|
|
@@ -31396,7 +31346,7 @@ function _type_of$j(obj) {
|
|
|
31396
31346
|
var objValue = nested[key];
|
|
31397
31347
|
newValue = undefined;
|
|
31398
31348
|
if (newValue === undefined) {
|
|
31399
|
-
newValue = isObject$
|
|
31349
|
+
newValue = isObject$4(objValue) ? objValue : isIndex$1(path[index + 1]) ? [] : {};
|
|
31400
31350
|
}
|
|
31401
31351
|
}
|
|
31402
31352
|
assignValue(nested, key, newValue);
|
|
@@ -31508,7 +31458,7 @@ function _type_of$j(obj) {
|
|
|
31508
31458
|
* }, {});
|
|
31509
31459
|
* // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
|
|
31510
31460
|
*/ function reduce(collection, iteratee, accumulator) {
|
|
31511
|
-
var func = isArray$1(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
|
|
31461
|
+
var func = isArray$1$1(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
|
|
31512
31462
|
return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach);
|
|
31513
31463
|
}
|
|
31514
31464
|
/**
|
|
@@ -31545,7 +31495,7 @@ function _type_of$j(obj) {
|
|
|
31545
31495
|
* _.reject(users, 'active');
|
|
31546
31496
|
* // => objects for ['barney']
|
|
31547
31497
|
*/ function reject(collection, predicate) {
|
|
31548
|
-
var func = isArray$1(collection) ? arrayFilter : baseFilter;
|
|
31498
|
+
var func = isArray$1$1(collection) ? arrayFilter : baseFilter;
|
|
31549
31499
|
return func(collection, negate(baseIteratee(predicate)));
|
|
31550
31500
|
}
|
|
31551
31501
|
/**
|
|
@@ -31600,10 +31550,10 @@ function _type_of$j(obj) {
|
|
|
31600
31550
|
* _.some(users, 'active');
|
|
31601
31551
|
* // => true
|
|
31602
31552
|
*/ function some(collection, predicate, guard) {
|
|
31603
|
-
var func = isArray$1(collection) ? arraySome : baseSome;
|
|
31553
|
+
var func = isArray$1$1(collection) ? arraySome : baseSome;
|
|
31604
31554
|
return func(collection, baseIteratee(predicate));
|
|
31605
31555
|
}
|
|
31606
|
-
/** Used as references for various `Number` constants. */ var INFINITY$
|
|
31556
|
+
/** Used as references for various `Number` constants. */ var INFINITY$3 = 1 / 0;
|
|
31607
31557
|
/**
|
|
31608
31558
|
* Creates a set object of `values`.
|
|
31609
31559
|
*
|
|
@@ -31613,7 +31563,7 @@ function _type_of$j(obj) {
|
|
|
31613
31563
|
*/ var createSet = !(Set$1 && 1 / setToArray(new Set$1([
|
|
31614
31564
|
,
|
|
31615
31565
|
-0
|
|
31616
|
-
]))[1] == INFINITY$
|
|
31566
|
+
]))[1] == INFINITY$3) ? noop : function createSet(values) {
|
|
31617
31567
|
return new Set$1(values);
|
|
31618
31568
|
};
|
|
31619
31569
|
/** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200;
|
|
@@ -31821,7 +31771,7 @@ function tokenLabel$1(tokType) {
|
|
|
31821
31771
|
}
|
|
31822
31772
|
// TODO: duplicated code to avoid extracting another sub-package -- how to avoid?
|
|
31823
31773
|
function hasTokenLabel$1(obj) {
|
|
31824
|
-
return isString$1(obj.LABEL) && obj.LABEL !== "";
|
|
31774
|
+
return isString$1$1(obj.LABEL) && obj.LABEL !== "";
|
|
31825
31775
|
}
|
|
31826
31776
|
var AbstractProduction = /*#__PURE__*/ function() {
|
|
31827
31777
|
function AbstractProduction(_definition) {
|
|
@@ -32050,7 +32000,7 @@ function serializeProduction(node) {
|
|
|
32050
32000
|
name: node.nonTerminalName,
|
|
32051
32001
|
idx: node.idx
|
|
32052
32002
|
};
|
|
32053
|
-
if (isString$1(node.label)) {
|
|
32003
|
+
if (isString$1$1(node.label)) {
|
|
32054
32004
|
serializedNonTerminal.label = node.label;
|
|
32055
32005
|
}
|
|
32056
32006
|
return serializedNonTerminal;
|
|
@@ -32108,7 +32058,7 @@ function serializeProduction(node) {
|
|
|
32108
32058
|
label: tokenLabel$1(node.terminalType),
|
|
32109
32059
|
idx: node.idx
|
|
32110
32060
|
};
|
|
32111
|
-
if (isString$1(node.label)) {
|
|
32061
|
+
if (isString$1$1(node.label)) {
|
|
32112
32062
|
serializedTerminal.terminalLabel = node.label;
|
|
32113
32063
|
}
|
|
32114
32064
|
var pattern = node.terminalType.PATTERN;
|
|
@@ -32551,7 +32501,7 @@ function _inherits$d(subClass, superClass) {
|
|
|
32551
32501
|
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
32552
32502
|
}
|
|
32553
32503
|
function _possible_constructor_return$d(self1, call) {
|
|
32554
|
-
if (call && (_type_of$g(call) === "object" || typeof call === "function")) {
|
|
32504
|
+
if (call && (_type_of$g$1(call) === "object" || typeof call === "function")) {
|
|
32555
32505
|
return call;
|
|
32556
32506
|
}
|
|
32557
32507
|
return _assert_this_initialized$d(self1);
|
|
@@ -32563,7 +32513,7 @@ function _set_prototype_of$d(o, p) {
|
|
|
32563
32513
|
};
|
|
32564
32514
|
return _set_prototype_of$d(o, p);
|
|
32565
32515
|
}
|
|
32566
|
-
function _type_of$g(obj) {
|
|
32516
|
+
function _type_of$g$1(obj) {
|
|
32567
32517
|
"@swc/helpers - typeof";
|
|
32568
32518
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
32569
32519
|
}
|
|
@@ -33877,7 +33827,7 @@ function _instanceof$7(left, right) {
|
|
|
33877
33827
|
}
|
|
33878
33828
|
}
|
|
33879
33829
|
function _possible_constructor_return$c(self1, call) {
|
|
33880
|
-
if (call && (_type_of$f(call) === "object" || typeof call === "function")) {
|
|
33830
|
+
if (call && (_type_of$f$1(call) === "object" || typeof call === "function")) {
|
|
33881
33831
|
return call;
|
|
33882
33832
|
}
|
|
33883
33833
|
return _assert_this_initialized$c(self1);
|
|
@@ -33896,7 +33846,7 @@ function _super_prop_base$2(object, property) {
|
|
|
33896
33846
|
}
|
|
33897
33847
|
return object;
|
|
33898
33848
|
}
|
|
33899
|
-
function _type_of$f(obj) {
|
|
33849
|
+
function _type_of$f$1(obj) {
|
|
33900
33850
|
"@swc/helpers - typeof";
|
|
33901
33851
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
33902
33852
|
}
|
|
@@ -34077,7 +34027,7 @@ function isWholeOptional(ast) {
|
|
|
34077
34027
|
if (!ast.value) {
|
|
34078
34028
|
return false;
|
|
34079
34029
|
}
|
|
34080
|
-
return isArray$1(ast.value) ? every(ast.value, isWholeOptional) : isWholeOptional(ast.value);
|
|
34030
|
+
return isArray$1$1(ast.value) ? every(ast.value, isWholeOptional) : isWholeOptional(ast.value);
|
|
34081
34031
|
}
|
|
34082
34032
|
var CharCodeFinder = /*#__PURE__*/ function(BaseRegExpVisitor) {
|
|
34083
34033
|
_inherits$c(CharCodeFinder, BaseRegExpVisitor);
|
|
@@ -34191,7 +34141,7 @@ function _inherits$b(subClass, superClass) {
|
|
|
34191
34141
|
});
|
|
34192
34142
|
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
34193
34143
|
}
|
|
34194
|
-
function _instanceof$6(left, right) {
|
|
34144
|
+
function _instanceof$6$1(left, right) {
|
|
34195
34145
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
34196
34146
|
return !!right[Symbol.hasInstance](left);
|
|
34197
34147
|
} else {
|
|
@@ -34199,7 +34149,7 @@ function _instanceof$6(left, right) {
|
|
|
34199
34149
|
}
|
|
34200
34150
|
}
|
|
34201
34151
|
function _possible_constructor_return$b(self1, call) {
|
|
34202
|
-
if (call && (_type_of$e(call) === "object" || typeof call === "function")) {
|
|
34152
|
+
if (call && (_type_of$e$1(call) === "object" || typeof call === "function")) {
|
|
34203
34153
|
return call;
|
|
34204
34154
|
}
|
|
34205
34155
|
return _assert_this_initialized$b(self1);
|
|
@@ -34211,7 +34161,7 @@ function _set_prototype_of$b(o, p) {
|
|
|
34211
34161
|
};
|
|
34212
34162
|
return _set_prototype_of$b(o, p);
|
|
34213
34163
|
}
|
|
34214
|
-
function _type_of$e(obj) {
|
|
34164
|
+
function _type_of$e$1(obj) {
|
|
34215
34165
|
"@swc/helpers - typeof";
|
|
34216
34166
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
34217
34167
|
}
|
|
@@ -34310,7 +34260,7 @@ function analyzeTokenTypes(tokenTypes, options) {
|
|
|
34310
34260
|
return {
|
|
34311
34261
|
exec: currPattern
|
|
34312
34262
|
};
|
|
34313
|
-
} else if ((typeof currPattern === "undefined" ? "undefined" : _type_of$e(currPattern)) === "object") {
|
|
34263
|
+
} else if ((typeof currPattern === "undefined" ? "undefined" : _type_of$e$1(currPattern)) === "object") {
|
|
34314
34264
|
hasCustom = true;
|
|
34315
34265
|
// ICustomPattern
|
|
34316
34266
|
return currPattern;
|
|
@@ -34340,7 +34290,7 @@ function analyzeTokenTypes(tokenTypes, options) {
|
|
|
34340
34290
|
var groupName = clazz.GROUP;
|
|
34341
34291
|
/* istanbul ignore next */ if (groupName === Lexer.SKIPPED) {
|
|
34342
34292
|
return undefined;
|
|
34343
|
-
} else if (isString$1(groupName)) {
|
|
34293
|
+
} else if (isString$1$1(groupName)) {
|
|
34344
34294
|
return groupName;
|
|
34345
34295
|
} else if (isUndefined(groupName)) {
|
|
34346
34296
|
return false;
|
|
@@ -34351,7 +34301,7 @@ function analyzeTokenTypes(tokenTypes, options) {
|
|
|
34351
34301
|
patternIdxToLongerAltIdxArr = map(onlyRelevantTypes, function(clazz) {
|
|
34352
34302
|
var longerAltType = clazz.LONGER_ALT;
|
|
34353
34303
|
if (longerAltType) {
|
|
34354
|
-
var longerAltIdxArr = isArray$1(longerAltType) ? map(longerAltType, function(type) {
|
|
34304
|
+
var longerAltIdxArr = isArray$1$1(longerAltType) ? map(longerAltType, function(type) {
|
|
34355
34305
|
return indexOf(onlyRelevantTypes, type);
|
|
34356
34306
|
}) : [
|
|
34357
34307
|
indexOf(onlyRelevantTypes, longerAltType)
|
|
@@ -34391,7 +34341,7 @@ function analyzeTokenTypes(tokenTypes, options) {
|
|
|
34391
34341
|
patternIdxToShort = map(allTransformedPatterns, isShortPattern);
|
|
34392
34342
|
emptyGroups = reduce(onlyRelevantTypes, function(acc, clazz) {
|
|
34393
34343
|
var groupName = clazz.GROUP;
|
|
34394
|
-
if (isString$1(groupName) && !(groupName === Lexer.SKIPPED)) {
|
|
34344
|
+
if (isString$1$1(groupName) && !(groupName === Lexer.SKIPPED)) {
|
|
34395
34345
|
acc[groupName] = [];
|
|
34396
34346
|
}
|
|
34397
34347
|
return acc;
|
|
@@ -34420,7 +34370,7 @@ function analyzeTokenTypes(tokenTypes, options) {
|
|
|
34420
34370
|
var charCode = currTokType.PATTERN.charCodeAt(0);
|
|
34421
34371
|
var optimizedIdx = charCodeToOptimizedIndex(charCode);
|
|
34422
34372
|
addToMapOfArrays(result, optimizedIdx, patternIdxToConfig[idx]);
|
|
34423
|
-
} else if (isArray$1(currTokType.START_CHARS_HINT)) {
|
|
34373
|
+
} else if (isArray$1$1(currTokType.START_CHARS_HINT)) {
|
|
34424
34374
|
var lastOptimizedIdx;
|
|
34425
34375
|
forEach(currTokType.START_CHARS_HINT, function(charOrInt) {
|
|
34426
34376
|
var charCode = typeof charOrInt === "string" ? charOrInt.charCodeAt(0) : charOrInt;
|
|
@@ -34518,7 +34468,7 @@ function findMissingPatterns(tokenTypes) {
|
|
|
34518
34468
|
function findInvalidPatterns(tokenTypes) {
|
|
34519
34469
|
var tokenTypesWithInvalidPattern = filter(tokenTypes, function(currType) {
|
|
34520
34470
|
var pattern = currType[PATTERN];
|
|
34521
|
-
return !isRegExp(pattern) && !isFunction$1(pattern) && !has$1(pattern, "exec") && !isString$1(pattern);
|
|
34471
|
+
return !isRegExp(pattern) && !isFunction$1(pattern) && !has$1(pattern, "exec") && !isString$1$1(pattern);
|
|
34522
34472
|
});
|
|
34523
34473
|
var errors = map(tokenTypesWithInvalidPattern, function(currType) {
|
|
34524
34474
|
return {
|
|
@@ -34648,7 +34598,7 @@ function findStartOfInputAnchor(tokenTypes) {
|
|
|
34648
34598
|
function findUnsupportedFlags(tokenTypes) {
|
|
34649
34599
|
var invalidFlags = filter(tokenTypes, function(currType) {
|
|
34650
34600
|
var pattern = currType[PATTERN];
|
|
34651
|
-
return _instanceof$6(pattern, RegExp) && (pattern.multiline || pattern.global);
|
|
34601
|
+
return _instanceof$6$1(pattern, RegExp) && (pattern.multiline || pattern.global);
|
|
34652
34602
|
});
|
|
34653
34603
|
var errors = map(invalidFlags, function(currType) {
|
|
34654
34604
|
return {
|
|
@@ -34699,7 +34649,7 @@ function findInvalidGroupType(tokenTypes) {
|
|
|
34699
34649
|
return false;
|
|
34700
34650
|
}
|
|
34701
34651
|
var group = clazz.GROUP;
|
|
34702
|
-
return group !== Lexer.SKIPPED && group !== Lexer.NA && !isString$1(group);
|
|
34652
|
+
return group !== Lexer.SKIPPED && group !== Lexer.NA && !isString$1$1(group);
|
|
34703
34653
|
});
|
|
34704
34654
|
var errors = map(invalidTypes, function(currType) {
|
|
34705
34655
|
return {
|
|
@@ -34737,7 +34687,7 @@ function findUnreachablePatterns(tokenTypes) {
|
|
|
34737
34687
|
}
|
|
34738
34688
|
// a more comprehensive validation for all forms of regExps would require
|
|
34739
34689
|
// deeper regExp analysis capabilities
|
|
34740
|
-
if (isString$1(pattern)) {
|
|
34690
|
+
if (isString$1$1(pattern)) {
|
|
34741
34691
|
result.push({
|
|
34742
34692
|
str: pattern,
|
|
34743
34693
|
idx: idx,
|
|
@@ -34849,7 +34799,7 @@ function performRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharact
|
|
|
34849
34799
|
type: LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED
|
|
34850
34800
|
});
|
|
34851
34801
|
} else if (has$1(currTokType, "LONGER_ALT")) {
|
|
34852
|
-
var longerAlt = isArray$1(currTokType.LONGER_ALT) ? currTokType.LONGER_ALT : [
|
|
34802
|
+
var longerAlt = isArray$1$1(currTokType.LONGER_ALT) ? currTokType.LONGER_ALT : [
|
|
34853
34803
|
currTokType.LONGER_ALT
|
|
34854
34804
|
];
|
|
34855
34805
|
forEach(longerAlt, function(currLongerAlt) {
|
|
@@ -34912,7 +34862,7 @@ function cloneEmptyGroups(emptyGroups) {
|
|
|
34912
34862
|
var groupKeys = keys$1(emptyGroups);
|
|
34913
34863
|
forEach(groupKeys, function(currKey) {
|
|
34914
34864
|
var currGroupValue = emptyGroups[currKey];
|
|
34915
|
-
/* istanbul ignore else */ if (isArray$1(currGroupValue)) {
|
|
34865
|
+
/* istanbul ignore else */ if (isArray$1$1(currGroupValue)) {
|
|
34916
34866
|
clonedResult[currKey] = [];
|
|
34917
34867
|
} else {
|
|
34918
34868
|
throw Error("non exhaustive match");
|
|
@@ -34931,14 +34881,14 @@ function isCustomPattern(tokenType) {
|
|
|
34931
34881
|
} else if (has$1(pattern, "exec")) {
|
|
34932
34882
|
// ICustomPattern
|
|
34933
34883
|
return true;
|
|
34934
|
-
} else if (isString$1(pattern)) {
|
|
34884
|
+
} else if (isString$1$1(pattern)) {
|
|
34935
34885
|
return false;
|
|
34936
34886
|
} else {
|
|
34937
34887
|
throw Error("non exhaustive match");
|
|
34938
34888
|
}
|
|
34939
34889
|
}
|
|
34940
34890
|
function isShortPattern(pattern) {
|
|
34941
|
-
if (isString$1(pattern) && pattern.length === 1) {
|
|
34891
|
+
if (isString$1$1(pattern) && pattern.length === 1) {
|
|
34942
34892
|
return pattern.charCodeAt(0);
|
|
34943
34893
|
} else {
|
|
34944
34894
|
return false;
|
|
@@ -34985,7 +34935,7 @@ function checkLineBreaksIssues(tokType, lineTerminatorCharCodes) {
|
|
|
34985
34935
|
};
|
|
34986
34936
|
}
|
|
34987
34937
|
return false;
|
|
34988
|
-
} else if (isString$1(tokType.PATTERN)) {
|
|
34938
|
+
} else if (isString$1$1(tokType.PATTERN)) {
|
|
34989
34939
|
// string literal patterns can always be analyzed to detect line terminator usage
|
|
34990
34940
|
return false;
|
|
34991
34941
|
} else if (isCustomPattern(tokType)) {
|
|
@@ -35009,7 +34959,7 @@ function buildLineBreakIssueMessage(tokType, details) {
|
|
|
35009
34959
|
}
|
|
35010
34960
|
function getCharCodes(charsOrCodes) {
|
|
35011
34961
|
var charCodes = map(charsOrCodes, function(numOrString) {
|
|
35012
|
-
if (isString$1(numOrString)) {
|
|
34962
|
+
if (isString$1$1(numOrString)) {
|
|
35013
34963
|
return numOrString.charCodeAt(0);
|
|
35014
34964
|
} else {
|
|
35015
34965
|
return numOrString;
|
|
@@ -35112,7 +35062,7 @@ function assignTokenDefaultProps(tokenTypes) {
|
|
|
35112
35062
|
currTokType.tokenTypeIdx = tokenShortNameIdx++;
|
|
35113
35063
|
}
|
|
35114
35064
|
// CATEGORIES? : TokenType | TokenType[]
|
|
35115
|
-
if (hasCategoriesProperty(currTokType) && !isArray$1(currTokType.CATEGORIES)) {
|
|
35065
|
+
if (hasCategoriesProperty(currTokType) && !isArray$1$1(currTokType.CATEGORIES)) {
|
|
35116
35066
|
currTokType.CATEGORIES = [
|
|
35117
35067
|
currTokType.CATEGORIES
|
|
35118
35068
|
];
|
|
@@ -35302,7 +35252,7 @@ var Lexer = /*#__PURE__*/ function() {
|
|
|
35302
35252
|
_this.trackStartLines = /full|onlyStart/i.test(_this.config.positionTracking);
|
|
35303
35253
|
_this.trackEndLines = /full/i.test(_this.config.positionTracking);
|
|
35304
35254
|
// Convert SingleModeLexerDefinition into a IMultiModeLexerDefinition.
|
|
35305
|
-
if (isArray$1(lexerDefinition)) {
|
|
35255
|
+
if (isArray$1$1(lexerDefinition)) {
|
|
35306
35256
|
actualDefinition = {
|
|
35307
35257
|
modes: {
|
|
35308
35258
|
defaultMode: clone(lexerDefinition)
|
|
@@ -35860,7 +35810,7 @@ function tokenLabel(tokType) {
|
|
|
35860
35810
|
}
|
|
35861
35811
|
}
|
|
35862
35812
|
function hasTokenLabel(obj) {
|
|
35863
|
-
return isString$1(obj.LABEL) && obj.LABEL !== "";
|
|
35813
|
+
return isString$1$1(obj.LABEL) && obj.LABEL !== "";
|
|
35864
35814
|
}
|
|
35865
35815
|
var PARENT = "parent";
|
|
35866
35816
|
var CATEGORIES = "categories";
|
|
@@ -36149,7 +36099,7 @@ function _inherits$a(subClass, superClass) {
|
|
|
36149
36099
|
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
36150
36100
|
}
|
|
36151
36101
|
function _possible_constructor_return$a(self1, call) {
|
|
36152
|
-
if (call && (_type_of$d(call) === "object" || typeof call === "function")) {
|
|
36102
|
+
if (call && (_type_of$d$1(call) === "object" || typeof call === "function")) {
|
|
36153
36103
|
return call;
|
|
36154
36104
|
}
|
|
36155
36105
|
return _assert_this_initialized$a(self1);
|
|
@@ -36161,7 +36111,7 @@ function _set_prototype_of$a(o, p) {
|
|
|
36161
36111
|
};
|
|
36162
36112
|
return _set_prototype_of$a(o, p);
|
|
36163
36113
|
}
|
|
36164
|
-
function _type_of$d(obj) {
|
|
36114
|
+
function _type_of$d$1(obj) {
|
|
36165
36115
|
"@swc/helpers - typeof";
|
|
36166
36116
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
36167
36117
|
}
|
|
@@ -36304,7 +36254,7 @@ function _instanceof$4$1(left, right) {
|
|
|
36304
36254
|
}
|
|
36305
36255
|
}
|
|
36306
36256
|
function _possible_constructor_return$9(self1, call) {
|
|
36307
|
-
if (call && (_type_of$c(call) === "object" || typeof call === "function")) {
|
|
36257
|
+
if (call && (_type_of$c$1(call) === "object" || typeof call === "function")) {
|
|
36308
36258
|
return call;
|
|
36309
36259
|
}
|
|
36310
36260
|
return _assert_this_initialized$9(self1);
|
|
@@ -36323,7 +36273,7 @@ function _super_prop_base$1(object, property) {
|
|
|
36323
36273
|
}
|
|
36324
36274
|
return object;
|
|
36325
36275
|
}
|
|
36326
|
-
function _type_of$c(obj) {
|
|
36276
|
+
function _type_of$c$1(obj) {
|
|
36327
36277
|
"@swc/helpers - typeof";
|
|
36328
36278
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
36329
36279
|
}
|
|
@@ -36986,7 +36936,7 @@ function _instanceof$3$1(left, right) {
|
|
|
36986
36936
|
}
|
|
36987
36937
|
}
|
|
36988
36938
|
function _possible_constructor_return$8(self1, call) {
|
|
36989
|
-
if (call && (_type_of$b(call) === "object" || typeof call === "function")) {
|
|
36939
|
+
if (call && (_type_of$b$1(call) === "object" || typeof call === "function")) {
|
|
36990
36940
|
return call;
|
|
36991
36941
|
}
|
|
36992
36942
|
return _assert_this_initialized$8(self1);
|
|
@@ -37005,7 +36955,7 @@ function _super_prop_base(object, property) {
|
|
|
37005
36955
|
}
|
|
37006
36956
|
return object;
|
|
37007
36957
|
}
|
|
37008
|
-
function _type_of$b(obj) {
|
|
36958
|
+
function _type_of$b$1(obj) {
|
|
37009
36959
|
"@swc/helpers - typeof";
|
|
37010
36960
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
37011
36961
|
}
|
|
@@ -37580,7 +37530,7 @@ function _instanceof$2$1(left, right) {
|
|
|
37580
37530
|
}
|
|
37581
37531
|
}
|
|
37582
37532
|
function _possible_constructor_return$7(self1, call) {
|
|
37583
|
-
if (call && (_type_of$a(call) === "object" || typeof call === "function")) {
|
|
37533
|
+
if (call && (_type_of$a$1(call) === "object" || typeof call === "function")) {
|
|
37584
37534
|
return call;
|
|
37585
37535
|
}
|
|
37586
37536
|
return _assert_this_initialized$7(self1);
|
|
@@ -37592,7 +37542,7 @@ function _set_prototype_of$7(o, p) {
|
|
|
37592
37542
|
};
|
|
37593
37543
|
return _set_prototype_of$7(o, p);
|
|
37594
37544
|
}
|
|
37595
|
-
function _type_of$a(obj) {
|
|
37545
|
+
function _type_of$a$1(obj) {
|
|
37596
37546
|
"@swc/helpers - typeof";
|
|
37597
37547
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
37598
37548
|
}
|
|
@@ -39330,7 +39280,7 @@ function createBaseSemanticVisitorConstructor(grammarName, ruleNames) {
|
|
|
39330
39280
|
var semanticProto = {
|
|
39331
39281
|
visit: function visit(cstNode, param) {
|
|
39332
39282
|
// enables writing more concise visitor methods when CstNode has only a single child
|
|
39333
|
-
if (isArray$1(cstNode)) {
|
|
39283
|
+
if (isArray$1$1(cstNode)) {
|
|
39334
39284
|
// A CST Node's children dictionary can never have empty arrays as values
|
|
39335
39285
|
// If a key is defined there will be at least one element in the corresponding value array.
|
|
39336
39286
|
cstNode = cstNode[0];
|
|
@@ -40424,7 +40374,7 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
40424
40374
|
if (has$1(config, "serializedGrammar")) {
|
|
40425
40375
|
throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n" + "\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n" + "\tFor Further details.");
|
|
40426
40376
|
}
|
|
40427
|
-
if (isArray$1(tokenVocabulary)) {
|
|
40377
|
+
if (isArray$1$1(tokenVocabulary)) {
|
|
40428
40378
|
// This only checks for Token vocabularies provided as arrays.
|
|
40429
40379
|
// That is good enough because the main objective is to detect users of pre-V4.0 APIs
|
|
40430
40380
|
// rather than all edge cases of empty Token vocabularies.
|
|
@@ -40435,7 +40385,7 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
40435
40385
|
throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n" + "\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n" + "\tFor Further details.");
|
|
40436
40386
|
}
|
|
40437
40387
|
}
|
|
40438
|
-
if (isArray$1(tokenVocabulary)) {
|
|
40388
|
+
if (isArray$1$1(tokenVocabulary)) {
|
|
40439
40389
|
this.tokensMap = reduce(tokenVocabulary, function(acc, tokType) {
|
|
40440
40390
|
acc[tokType.name] = tokType;
|
|
40441
40391
|
return acc;
|
|
@@ -40447,7 +40397,7 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
40447
40397
|
acc[tokType.name] = tokType;
|
|
40448
40398
|
return acc;
|
|
40449
40399
|
}, {});
|
|
40450
|
-
} else if (isObject$
|
|
40400
|
+
} else if (isObject$4(tokenVocabulary)) {
|
|
40451
40401
|
this.tokensMap = clone(tokenVocabulary);
|
|
40452
40402
|
} else {
|
|
40453
40403
|
throw new Error("<tokensDictionary> argument must be An Array of Token constructors," + " A dictionary of Token constructors or an IMultiModeLexerDefinition");
|
|
@@ -40809,7 +40759,7 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
40809
40759
|
key: "orInternal",
|
|
40810
40760
|
value: function orInternal(altsOrOpts, occurrence) {
|
|
40811
40761
|
var laKey = this.getKeyForAutomaticLookahead(OR_IDX, occurrence);
|
|
40812
|
-
var alts = isArray$1(altsOrOpts) ? altsOrOpts : altsOrOpts.DEF;
|
|
40762
|
+
var alts = isArray$1$1(altsOrOpts) ? altsOrOpts : altsOrOpts.DEF;
|
|
40813
40763
|
var laFunc = this.getLaFuncFromCache(laKey);
|
|
40814
40764
|
var altIdxToTake = laFunc.call(this, alts);
|
|
40815
40765
|
if (altIdxToTake !== undefined) {
|
|
@@ -41467,7 +41417,7 @@ function recordOrProd(mainProdArg, occurrence) {
|
|
|
41467
41417
|
assertMethodIdxIsValid(occurrence);
|
|
41468
41418
|
var prevProd = last(this.recordingProdStack);
|
|
41469
41419
|
// Only an array of alternatives
|
|
41470
|
-
var hasOptions = isArray$1(mainProdArg) === false;
|
|
41420
|
+
var hasOptions = isArray$1$1(mainProdArg) === false;
|
|
41471
41421
|
var alts = hasOptions === false ? mainProdArg : mainProdArg.DEF;
|
|
41472
41422
|
var newOrProd = new Alternation({
|
|
41473
41423
|
definition: [],
|
|
@@ -42530,7 +42480,7 @@ var isString$4 = function(value) {
|
|
|
42530
42480
|
var isArray$4 = function(value) {
|
|
42531
42481
|
return getCelType(value) === CelType.list;
|
|
42532
42482
|
};
|
|
42533
|
-
var isBoolean = function(value) {
|
|
42483
|
+
var isBoolean$2 = function(value) {
|
|
42534
42484
|
return getCelType(value) === CelType.bool;
|
|
42535
42485
|
};
|
|
42536
42486
|
var isMap = function(value) {
|
|
@@ -42631,13 +42581,13 @@ var moduloOperation = function(left, right) {
|
|
|
42631
42581
|
throw new CelTypeError(Operations.modulo, left, right);
|
|
42632
42582
|
};
|
|
42633
42583
|
var logicalAndOperation = function(left, right) {
|
|
42634
|
-
if (isBoolean(left) && isBoolean(right)) {
|
|
42584
|
+
if (isBoolean$2(left) && isBoolean$2(right)) {
|
|
42635
42585
|
return left && right;
|
|
42636
42586
|
}
|
|
42637
42587
|
throw new CelTypeError(Operations.logicalAnd, left, right);
|
|
42638
42588
|
};
|
|
42639
42589
|
var logicalOrOperation = function(left, right) {
|
|
42640
|
-
if (isBoolean(left) && isBoolean(right)) {
|
|
42590
|
+
if (isBoolean$2(left) && isBoolean$2(right)) {
|
|
42641
42591
|
return left || right;
|
|
42642
42592
|
}
|
|
42643
42593
|
throw new CelTypeError(Operations.logicalOr, left, right);
|
|
@@ -42719,7 +42669,7 @@ var getResult = function(operator, left, right) {
|
|
|
42719
42669
|
if (operand === null) {
|
|
42720
42670
|
return !isEvenOperators; // Odd number gives true, even gives false
|
|
42721
42671
|
}
|
|
42722
|
-
if (!isBoolean(operand)) {
|
|
42672
|
+
if (!isBoolean$2(operand)) {
|
|
42723
42673
|
throw new CelTypeError('logical negation', operand, null);
|
|
42724
42674
|
}
|
|
42725
42675
|
return isEvenOperators ? operand : !operand;
|
|
@@ -44227,7 +44177,7 @@ var CelVisitor = /*#__PURE__*/ function(BaseCelVisitor) {
|
|
|
44227
44177
|
return CelVisitor;
|
|
44228
44178
|
}(BaseCelVisitor);
|
|
44229
44179
|
var parserInstance = new CelParser();
|
|
44230
|
-
function parse$
|
|
44180
|
+
function parse$8(expression) {
|
|
44231
44181
|
var lexResult = CELLexer.tokenize(expression);
|
|
44232
44182
|
parserInstance.input = lexResult.tokens;
|
|
44233
44183
|
var cst = parserInstance.expr();
|
|
@@ -44245,7 +44195,7 @@ function parse$9(expression) {
|
|
|
44245
44195
|
};
|
|
44246
44196
|
}
|
|
44247
44197
|
function evaluate(expression, context, functions) {
|
|
44248
|
-
var result = typeof expression === 'string' ? parse$
|
|
44198
|
+
var result = typeof expression === 'string' ? parse$8(expression) : {
|
|
44249
44199
|
isSuccess: true,
|
|
44250
44200
|
cst: expression
|
|
44251
44201
|
};
|
|
@@ -44447,7 +44397,7 @@ function _object_spread_props(target, source) {
|
|
|
44447
44397
|
prefix: '_'
|
|
44448
44398
|
})).join('').toLowerCase();
|
|
44449
44399
|
}
|
|
44450
|
-
const Handlebars =
|
|
44400
|
+
const Handlebars = handlebars_min || HandlebarsNamespace;
|
|
44451
44401
|
Handlebars.registerHelper('JSONstringify', function(value) {
|
|
44452
44402
|
return JSON.stringify(value);
|
|
44453
44403
|
});
|
|
@@ -44708,7 +44658,7 @@ const preparePinsSettings = (settings, context)=>{
|
|
|
44708
44658
|
};
|
|
44709
44659
|
};
|
|
44710
44660
|
|
|
44711
|
-
var jws$
|
|
44661
|
+
var jws$3 = {};
|
|
44712
44662
|
|
|
44713
44663
|
var safeBuffer = {
|
|
44714
44664
|
exports: {}
|
|
@@ -44778,7 +44728,7 @@ var safeBufferExports = safeBuffer.exports;
|
|
|
44778
44728
|
|
|
44779
44729
|
/*global module, process*/
|
|
44780
44730
|
|
|
44781
|
-
function _type_of$
|
|
44731
|
+
function _type_of$g(obj) {
|
|
44782
44732
|
"@swc/helpers - typeof";
|
|
44783
44733
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
44784
44734
|
}
|
|
@@ -44802,7 +44752,7 @@ function DataStream$2(data) {
|
|
|
44802
44752
|
}
|
|
44803
44753
|
// Buffer or String
|
|
44804
44754
|
// or Object (assumedly a passworded key)
|
|
44805
|
-
if (data.length || (typeof data === "undefined" ? "undefined" : _type_of$
|
|
44755
|
+
if (data.length || (typeof data === "undefined" ? "undefined" : _type_of$g(data)) === 'object') {
|
|
44806
44756
|
this.buffer = data;
|
|
44807
44757
|
this.writable = false;
|
|
44808
44758
|
process.nextTick((function() {
|
|
@@ -44812,7 +44762,7 @@ function DataStream$2(data) {
|
|
|
44812
44762
|
}).bind(this));
|
|
44813
44763
|
return this;
|
|
44814
44764
|
}
|
|
44815
|
-
throw new TypeError('Unexpected data type (' + (typeof data === "undefined" ? "undefined" : _type_of$
|
|
44765
|
+
throw new TypeError('Unexpected data type (' + (typeof data === "undefined" ? "undefined" : _type_of$g(data)) + ')');
|
|
44816
44766
|
}
|
|
44817
44767
|
util$3.inherits(DataStream$2, Stream$2);
|
|
44818
44768
|
DataStream$2.prototype.write = function write(data) {
|
|
@@ -45026,7 +44976,7 @@ function requireBufferEqualConstantTime () {
|
|
|
45026
44976
|
return bufferEqualConstantTime;
|
|
45027
44977
|
}
|
|
45028
44978
|
|
|
45029
|
-
function _type_of$
|
|
44979
|
+
function _type_of$f(obj) {
|
|
45030
44980
|
"@swc/helpers - typeof";
|
|
45031
44981
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
45032
44982
|
}
|
|
@@ -45053,7 +45003,7 @@ function checkIsPublicKey(key) {
|
|
|
45053
45003
|
if (!supportsKeyObjects) {
|
|
45054
45004
|
throw typeError(MSG_INVALID_VERIFIER_KEY);
|
|
45055
45005
|
}
|
|
45056
|
-
if ((typeof key === "undefined" ? "undefined" : _type_of$
|
|
45006
|
+
if ((typeof key === "undefined" ? "undefined" : _type_of$f(key)) !== 'object') {
|
|
45057
45007
|
throw typeError(MSG_INVALID_VERIFIER_KEY);
|
|
45058
45008
|
}
|
|
45059
45009
|
if (typeof key.type !== 'string') {
|
|
@@ -45073,7 +45023,7 @@ function checkIsPrivateKey(key) {
|
|
|
45073
45023
|
if (typeof key === 'string') {
|
|
45074
45024
|
return;
|
|
45075
45025
|
}
|
|
45076
|
-
if ((typeof key === "undefined" ? "undefined" : _type_of$
|
|
45026
|
+
if ((typeof key === "undefined" ? "undefined" : _type_of$f(key)) === 'object') {
|
|
45077
45027
|
return;
|
|
45078
45028
|
}
|
|
45079
45029
|
throw typeError(MSG_INVALID_SIGNER_KEY);
|
|
@@ -45088,7 +45038,7 @@ function checkIsSecretKey(key) {
|
|
|
45088
45038
|
if (!supportsKeyObjects) {
|
|
45089
45039
|
throw typeError(MSG_INVALID_SECRET);
|
|
45090
45040
|
}
|
|
45091
|
-
if ((typeof key === "undefined" ? "undefined" : _type_of$
|
|
45041
|
+
if ((typeof key === "undefined" ? "undefined" : _type_of$f(key)) !== 'object') {
|
|
45092
45042
|
throw typeError(MSG_INVALID_SECRET);
|
|
45093
45043
|
}
|
|
45094
45044
|
if (key.type !== 'secret') {
|
|
@@ -45239,7 +45189,7 @@ var jwa$2 = function jwa(algorithm) {
|
|
|
45239
45189
|
es: createECDSAVerifer,
|
|
45240
45190
|
none: createNoneVerifier
|
|
45241
45191
|
};
|
|
45242
|
-
var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);
|
|
45192
|
+
var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);
|
|
45243
45193
|
if (!match) throw typeError(MSG_INVALID_ALGORITHM, algorithm);
|
|
45244
45194
|
var algo = (match[1] || match[3]).toLowerCase();
|
|
45245
45195
|
var bits = match[2];
|
|
@@ -45286,12 +45236,7 @@ function jwsSign(opts) {
|
|
|
45286
45236
|
return util$1.format('%s.%s', securedInput, signature);
|
|
45287
45237
|
}
|
|
45288
45238
|
function SignStream$1(opts) {
|
|
45289
|
-
var secret = opts.secret;
|
|
45290
|
-
secret = secret == null ? opts.privateKey : secret;
|
|
45291
|
-
secret = secret == null ? opts.key : secret;
|
|
45292
|
-
if (/^hs/i.test(opts.header.alg) === true && secret == null) {
|
|
45293
|
-
throw new TypeError('secret must be a string or buffer or a KeyObject');
|
|
45294
|
-
}
|
|
45239
|
+
var secret = opts.secret || opts.privateKey || opts.key;
|
|
45295
45240
|
var secretStream = new DataStream$1(secret);
|
|
45296
45241
|
this.readable = true;
|
|
45297
45242
|
this.header = opts.header;
|
|
@@ -45337,11 +45282,11 @@ var Stream = require$$3;
|
|
|
45337
45282
|
var toString = tostring;
|
|
45338
45283
|
var util = require$$5;
|
|
45339
45284
|
var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;
|
|
45340
|
-
function isObject$
|
|
45285
|
+
function isObject$3(thing) {
|
|
45341
45286
|
return Object.prototype.toString.call(thing) === '[object Object]';
|
|
45342
45287
|
}
|
|
45343
45288
|
function safeJsonParse(thing) {
|
|
45344
|
-
if (isObject$
|
|
45289
|
+
if (isObject$3(thing)) return thing;
|
|
45345
45290
|
try {
|
|
45346
45291
|
return JSON.parse(thing);
|
|
45347
45292
|
} catch (e) {
|
|
@@ -45394,12 +45339,7 @@ function jwsDecode(jwsSig, opts) {
|
|
|
45394
45339
|
}
|
|
45395
45340
|
function VerifyStream$1(opts) {
|
|
45396
45341
|
opts = opts || {};
|
|
45397
|
-
var secretOrKey = opts.secret;
|
|
45398
|
-
secretOrKey = secretOrKey == null ? opts.publicKey : secretOrKey;
|
|
45399
|
-
secretOrKey = secretOrKey == null ? opts.key : secretOrKey;
|
|
45400
|
-
if (/^hs/i.test(opts.algorithm) === true && secretOrKey == null) {
|
|
45401
|
-
throw new TypeError('secret must be a string or buffer or a KeyObject');
|
|
45402
|
-
}
|
|
45342
|
+
var secretOrKey = opts.secret || opts.publicKey || opts.key;
|
|
45403
45343
|
var secretStream = new DataStream(secretOrKey);
|
|
45404
45344
|
this.readable = true;
|
|
45405
45345
|
this.algorithm = opts.algorithm;
|
|
@@ -45452,26 +45392,26 @@ var ALGORITHMS = [
|
|
|
45452
45392
|
'ES384',
|
|
45453
45393
|
'ES512'
|
|
45454
45394
|
];
|
|
45455
|
-
jws$
|
|
45456
|
-
jws$
|
|
45457
|
-
jws$
|
|
45458
|
-
jws$
|
|
45459
|
-
jws$
|
|
45460
|
-
jws$
|
|
45395
|
+
jws$3.ALGORITHMS = ALGORITHMS;
|
|
45396
|
+
jws$3.sign = SignStream.sign;
|
|
45397
|
+
jws$3.verify = VerifyStream.verify;
|
|
45398
|
+
jws$3.decode = VerifyStream.decode;
|
|
45399
|
+
jws$3.isValid = VerifyStream.isValid;
|
|
45400
|
+
jws$3.createSign = function createSign(opts) {
|
|
45461
45401
|
return new SignStream(opts);
|
|
45462
45402
|
};
|
|
45463
|
-
jws$
|
|
45403
|
+
jws$3.createVerify = function createVerify(opts) {
|
|
45464
45404
|
return new VerifyStream(opts);
|
|
45465
45405
|
};
|
|
45466
45406
|
|
|
45467
|
-
function _type_of$
|
|
45407
|
+
function _type_of$e(obj) {
|
|
45468
45408
|
"@swc/helpers - typeof";
|
|
45469
45409
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
45470
45410
|
}
|
|
45471
|
-
var jws$
|
|
45411
|
+
var jws$2 = jws$3;
|
|
45472
45412
|
var decode$1 = function(jwt, options) {
|
|
45473
45413
|
options = options || {};
|
|
45474
|
-
var decoded = jws$
|
|
45414
|
+
var decoded = jws$2.decode(jwt, options);
|
|
45475
45415
|
if (!decoded) {
|
|
45476
45416
|
return null;
|
|
45477
45417
|
}
|
|
@@ -45480,7 +45420,7 @@ var decode$1 = function(jwt, options) {
|
|
|
45480
45420
|
if (typeof payload === 'string') {
|
|
45481
45421
|
try {
|
|
45482
45422
|
var obj = JSON.parse(payload);
|
|
45483
|
-
if (obj !== null && (typeof obj === "undefined" ? "undefined" : _type_of$
|
|
45423
|
+
if (obj !== null && (typeof obj === "undefined" ? "undefined" : _type_of$e(obj)) === 'object') {
|
|
45484
45424
|
payload = obj;
|
|
45485
45425
|
}
|
|
45486
45426
|
} catch (e) {}
|
|
@@ -45535,7 +45475,7 @@ var TokenExpiredError_1 = TokenExpiredError$1;
|
|
|
45535
45475
|
* Helpers.
|
|
45536
45476
|
*/
|
|
45537
45477
|
|
|
45538
|
-
function _type_of$
|
|
45478
|
+
function _type_of$d(obj) {
|
|
45539
45479
|
"@swc/helpers - typeof";
|
|
45540
45480
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
45541
45481
|
}
|
|
@@ -45559,9 +45499,9 @@ var y = d * 365.25;
|
|
|
45559
45499
|
* @api public
|
|
45560
45500
|
*/ var ms$1 = function(val, options) {
|
|
45561
45501
|
options = options || {};
|
|
45562
|
-
var type = typeof val === "undefined" ? "undefined" : _type_of$
|
|
45502
|
+
var type = typeof val === "undefined" ? "undefined" : _type_of$d(val);
|
|
45563
45503
|
if (type === 'string' && val.length > 0) {
|
|
45564
|
-
return parse$
|
|
45504
|
+
return parse$7(val);
|
|
45565
45505
|
} else if (type === 'number' && isFinite(val)) {
|
|
45566
45506
|
return options.long ? fmtLong(val) : fmtShort(val);
|
|
45567
45507
|
}
|
|
@@ -45573,7 +45513,7 @@ var y = d * 365.25;
|
|
|
45573
45513
|
* @param {String} str
|
|
45574
45514
|
* @return {Number}
|
|
45575
45515
|
* @api private
|
|
45576
|
-
*/ function parse$
|
|
45516
|
+
*/ function parse$7(str) {
|
|
45577
45517
|
str = String(str);
|
|
45578
45518
|
if (str.length > 100) {
|
|
45579
45519
|
return;
|
|
@@ -45679,7 +45619,7 @@ var y = d * 365.25;
|
|
|
45679
45619
|
}
|
|
45680
45620
|
|
|
45681
45621
|
var ms = ms$1;
|
|
45682
|
-
var timespan$
|
|
45622
|
+
var timespan$2 = function(time, iat) {
|
|
45683
45623
|
var timestamp = iat || Math.floor(Date.now() / 1000);
|
|
45684
45624
|
if (typeof time === 'string') {
|
|
45685
45625
|
var milliseconds = ms(time);
|
|
@@ -45717,7 +45657,7 @@ var RELEASE_TYPES = [
|
|
|
45717
45657
|
'prepatch',
|
|
45718
45658
|
'prerelease'
|
|
45719
45659
|
];
|
|
45720
|
-
var constants$
|
|
45660
|
+
var constants$1 = {
|
|
45721
45661
|
MAX_LENGTH: MAX_LENGTH$1,
|
|
45722
45662
|
MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH,
|
|
45723
45663
|
MAX_SAFE_BUILD_LENGTH: MAX_SAFE_BUILD_LENGTH,
|
|
@@ -45745,7 +45685,7 @@ function _non_iterable_spread() {
|
|
|
45745
45685
|
function _to_consumable_array(arr) {
|
|
45746
45686
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread();
|
|
45747
45687
|
}
|
|
45748
|
-
function _type_of$
|
|
45688
|
+
function _type_of$c(obj) {
|
|
45749
45689
|
"@swc/helpers - typeof";
|
|
45750
45690
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
45751
45691
|
}
|
|
@@ -45758,7 +45698,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
45758
45698
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
45759
45699
|
}
|
|
45760
45700
|
var _console;
|
|
45761
|
-
var debug$1 = (typeof process === "undefined" ? "undefined" : _type_of$
|
|
45701
|
+
var debug$1 = (typeof process === "undefined" ? "undefined" : _type_of$c(process)) === 'object' && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? function() {
|
|
45762
45702
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
45763
45703
|
args[_key] = arguments[_key];
|
|
45764
45704
|
}
|
|
@@ -45815,7 +45755,7 @@ var debug_1 = debug$1;
|
|
|
45815
45755
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
45816
45756
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
45817
45757
|
}
|
|
45818
|
-
var _require = constants$
|
|
45758
|
+
var _require = constants$1, MAX_SAFE_COMPONENT_LENGTH = _require.MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH = _require.MAX_SAFE_BUILD_LENGTH, MAX_LENGTH = _require.MAX_LENGTH;
|
|
45819
45759
|
var debug = debug_1;
|
|
45820
45760
|
exports = module.exports = {};
|
|
45821
45761
|
// The actual regexps go on exports.re
|
|
@@ -45895,8 +45835,8 @@ var debug_1 = debug$1;
|
|
|
45895
45835
|
createToken('MAINVERSIONLOOSE', "(".concat(src[t.NUMERICIDENTIFIERLOOSE], ")\\.") + "(".concat(src[t.NUMERICIDENTIFIERLOOSE], ")\\.") + "(".concat(src[t.NUMERICIDENTIFIERLOOSE], ")"));
|
|
45896
45836
|
// ## Pre-release Version Identifier
|
|
45897
45837
|
// A numeric identifier, or a non-numeric identifier.
|
|
45898
|
-
// Non-
|
|
45899
|
-
// Therefore non-
|
|
45838
|
+
// Non-numberic identifiers include numberic identifiers but can be longer.
|
|
45839
|
+
// Therefore non-numberic identifiers must go first.
|
|
45900
45840
|
createToken('PRERELEASEIDENTIFIER', "(?:".concat(src[t.NONNUMERICIDENTIFIER], "|").concat(src[t.NUMERICIDENTIFIER], ")"));
|
|
45901
45841
|
createToken('PRERELEASEIDENTIFIERLOOSE', "(?:".concat(src[t.NONNUMERICIDENTIFIER], "|").concat(src[t.NUMERICIDENTIFIERLOOSE], ")"));
|
|
45902
45842
|
// ## Pre-release Version
|
|
@@ -45927,7 +45867,7 @@ var debug_1 = debug$1;
|
|
|
45927
45867
|
createToken('LOOSE', "^".concat(src[t.LOOSEPLAIN], "$"));
|
|
45928
45868
|
createToken('GTLT', '((?:<|>)?=?)');
|
|
45929
45869
|
// Something like "2.*" or "1.2.x".
|
|
45930
|
-
// Note that "x.x" is a valid xRange
|
|
45870
|
+
// Note that "x.x" is a valid xRange identifer, meaning "any version"
|
|
45931
45871
|
// Only the first item is strictly required.
|
|
45932
45872
|
createToken('XRANGEIDENTIFIERLOOSE', "".concat(src[t.NUMERICIDENTIFIERLOOSE], "|x|X|\\*"));
|
|
45933
45873
|
createToken('XRANGEIDENTIFIER', "".concat(src[t.NUMERICIDENTIFIER], "|x|X|\\*"));
|
|
@@ -45978,7 +45918,7 @@ var debug_1 = debug$1;
|
|
|
45978
45918
|
|
|
45979
45919
|
var reExports = re$2.exports;
|
|
45980
45920
|
|
|
45981
|
-
function _type_of$
|
|
45921
|
+
function _type_of$b(obj) {
|
|
45982
45922
|
"@swc/helpers - typeof";
|
|
45983
45923
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
45984
45924
|
}
|
|
@@ -45991,7 +45931,7 @@ var parseOptions$1 = function(options) {
|
|
|
45991
45931
|
if (!options) {
|
|
45992
45932
|
return emptyOpts;
|
|
45993
45933
|
}
|
|
45994
|
-
if ((typeof options === "undefined" ? "undefined" : _type_of$
|
|
45934
|
+
if ((typeof options === "undefined" ? "undefined" : _type_of$b(options)) !== 'object') {
|
|
45995
45935
|
return looseOption;
|
|
45996
45936
|
}
|
|
45997
45937
|
return options;
|
|
@@ -46037,46 +45977,34 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
46037
45977
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
46038
45978
|
return Constructor;
|
|
46039
45979
|
}
|
|
46040
|
-
function _instanceof$
|
|
45980
|
+
function _instanceof$6(left, right) {
|
|
46041
45981
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
46042
45982
|
return !!right[Symbol.hasInstance](left);
|
|
46043
45983
|
} else {
|
|
46044
45984
|
return left instanceof right;
|
|
46045
45985
|
}
|
|
46046
45986
|
}
|
|
46047
|
-
function _type_of$
|
|
45987
|
+
function _type_of$a(obj) {
|
|
46048
45988
|
"@swc/helpers - typeof";
|
|
46049
45989
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
46050
45990
|
}
|
|
46051
45991
|
var debug = debug_1;
|
|
46052
|
-
var _require$3 = constants$
|
|
45992
|
+
var _require$3 = constants$1, MAX_LENGTH = _require$3.MAX_LENGTH, MAX_SAFE_INTEGER$1 = _require$3.MAX_SAFE_INTEGER;
|
|
46053
45993
|
var _require1 = reExports, re$1 = _require1.safeRe, t$1 = _require1.t;
|
|
46054
45994
|
var parseOptions = parseOptions_1;
|
|
46055
45995
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
46056
|
-
var
|
|
46057
|
-
var identifiers = identifier.split('.');
|
|
46058
|
-
if (identifiers.length > prerelease.length) {
|
|
46059
|
-
return false;
|
|
46060
|
-
}
|
|
46061
|
-
for(var i = 0; i < identifiers.length; i++){
|
|
46062
|
-
if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) {
|
|
46063
|
-
return false;
|
|
46064
|
-
}
|
|
46065
|
-
}
|
|
46066
|
-
return true;
|
|
46067
|
-
};
|
|
46068
|
-
var SemVer$e = /*#__PURE__*/ function() {
|
|
45996
|
+
var SemVer$d = /*#__PURE__*/ function() {
|
|
46069
45997
|
function SemVer(version, options) {
|
|
46070
45998
|
_class_call_check(this, SemVer);
|
|
46071
45999
|
options = parseOptions(options);
|
|
46072
|
-
if (_instanceof$
|
|
46000
|
+
if (_instanceof$6(version, SemVer)) {
|
|
46073
46001
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
46074
46002
|
return version;
|
|
46075
46003
|
} else {
|
|
46076
46004
|
version = version.version;
|
|
46077
46005
|
}
|
|
46078
46006
|
} else if (typeof version !== 'string') {
|
|
46079
|
-
throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof version === "undefined" ? "undefined" : _type_of$
|
|
46007
|
+
throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof version === "undefined" ? "undefined" : _type_of$a(version), '".'));
|
|
46080
46008
|
}
|
|
46081
46009
|
if (version.length > MAX_LENGTH) {
|
|
46082
46010
|
throw new TypeError("version is longer than ".concat(MAX_LENGTH, " characters"));
|
|
@@ -46143,7 +46071,7 @@ var SemVer$e = /*#__PURE__*/ function() {
|
|
|
46143
46071
|
key: "compare",
|
|
46144
46072
|
value: function compare(other) {
|
|
46145
46073
|
debug('SemVer.compare', this.version, this.options, other);
|
|
46146
|
-
if (!_instanceof$
|
|
46074
|
+
if (!_instanceof$6(other, SemVer)) {
|
|
46147
46075
|
if (typeof other === 'string' && other === this.version) {
|
|
46148
46076
|
return 0;
|
|
46149
46077
|
}
|
|
@@ -46158,7 +46086,7 @@ var SemVer$e = /*#__PURE__*/ function() {
|
|
|
46158
46086
|
{
|
|
46159
46087
|
key: "compareMain",
|
|
46160
46088
|
value: function compareMain(other) {
|
|
46161
|
-
if (!_instanceof$
|
|
46089
|
+
if (!_instanceof$6(other, SemVer)) {
|
|
46162
46090
|
other = new SemVer(other, this.options);
|
|
46163
46091
|
}
|
|
46164
46092
|
if (this.major < other.major) {
|
|
@@ -46185,7 +46113,7 @@ var SemVer$e = /*#__PURE__*/ function() {
|
|
|
46185
46113
|
{
|
|
46186
46114
|
key: "comparePre",
|
|
46187
46115
|
value: function comparePre(other) {
|
|
46188
|
-
if (!_instanceof$
|
|
46116
|
+
if (!_instanceof$6(other, SemVer)) {
|
|
46189
46117
|
other = new SemVer(other, this.options);
|
|
46190
46118
|
}
|
|
46191
46119
|
// NOT having a prerelease is > having one
|
|
@@ -46218,7 +46146,7 @@ var SemVer$e = /*#__PURE__*/ function() {
|
|
|
46218
46146
|
{
|
|
46219
46147
|
key: "compareBuild",
|
|
46220
46148
|
value: function compareBuild(other) {
|
|
46221
|
-
if (!_instanceof$
|
|
46149
|
+
if (!_instanceof$6(other, SemVer)) {
|
|
46222
46150
|
other = new SemVer(other, this.options);
|
|
46223
46151
|
}
|
|
46224
46152
|
var i = 0;
|
|
@@ -46363,9 +46291,8 @@ var SemVer$e = /*#__PURE__*/ function() {
|
|
|
46363
46291
|
identifier
|
|
46364
46292
|
];
|
|
46365
46293
|
}
|
|
46366
|
-
if (
|
|
46367
|
-
|
|
46368
|
-
if (isNaN(prereleaseBase)) {
|
|
46294
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
46295
|
+
if (isNaN(this.prerelease[1])) {
|
|
46369
46296
|
this.prerelease = prerelease;
|
|
46370
46297
|
}
|
|
46371
46298
|
} else {
|
|
@@ -46387,23 +46314,23 @@ var SemVer$e = /*#__PURE__*/ function() {
|
|
|
46387
46314
|
]);
|
|
46388
46315
|
return SemVer;
|
|
46389
46316
|
}();
|
|
46390
|
-
var semver$4 = SemVer$
|
|
46317
|
+
var semver$4 = SemVer$d;
|
|
46391
46318
|
|
|
46392
|
-
function _instanceof$
|
|
46319
|
+
function _instanceof$5(left, right) {
|
|
46393
46320
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
46394
46321
|
return !!right[Symbol.hasInstance](left);
|
|
46395
46322
|
} else {
|
|
46396
46323
|
return left instanceof right;
|
|
46397
46324
|
}
|
|
46398
46325
|
}
|
|
46399
|
-
var SemVer$
|
|
46400
|
-
var parse$
|
|
46326
|
+
var SemVer$c = semver$4;
|
|
46327
|
+
var parse$6 = function(version, options) {
|
|
46401
46328
|
var throwErrors = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
46402
|
-
if (_instanceof$
|
|
46329
|
+
if (_instanceof$5(version, SemVer$c)) {
|
|
46403
46330
|
return version;
|
|
46404
46331
|
}
|
|
46405
46332
|
try {
|
|
46406
|
-
return new SemVer$
|
|
46333
|
+
return new SemVer$c(version, options);
|
|
46407
46334
|
} catch (er) {
|
|
46408
46335
|
if (!throwErrors) {
|
|
46409
46336
|
return null;
|
|
@@ -46411,30 +46338,30 @@ var parse$7 = function(version, options) {
|
|
|
46411
46338
|
throw er;
|
|
46412
46339
|
}
|
|
46413
46340
|
};
|
|
46414
|
-
var parse_1 = parse$
|
|
46341
|
+
var parse_1 = parse$6;
|
|
46415
46342
|
|
|
46416
|
-
var parse$
|
|
46343
|
+
var parse$5 = parse_1;
|
|
46417
46344
|
var valid$2 = function(version, options) {
|
|
46418
|
-
var v = parse$
|
|
46345
|
+
var v = parse$5(version, options);
|
|
46419
46346
|
return v ? v.version : null;
|
|
46420
46347
|
};
|
|
46421
46348
|
var valid_1 = valid$2;
|
|
46422
46349
|
|
|
46423
|
-
var parse$
|
|
46350
|
+
var parse$4 = parse_1;
|
|
46424
46351
|
var clean$1 = function(version, options) {
|
|
46425
|
-
var s = parse$
|
|
46352
|
+
var s = parse$4(version.trim().replace(/^[=v]+/, ''), options);
|
|
46426
46353
|
return s ? s.version : null;
|
|
46427
46354
|
};
|
|
46428
46355
|
var clean_1 = clean$1;
|
|
46429
46356
|
|
|
46430
|
-
function _instanceof$
|
|
46357
|
+
function _instanceof$4(left, right) {
|
|
46431
46358
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
46432
46359
|
return !!right[Symbol.hasInstance](left);
|
|
46433
46360
|
} else {
|
|
46434
46361
|
return left instanceof right;
|
|
46435
46362
|
}
|
|
46436
46363
|
}
|
|
46437
|
-
var SemVer$
|
|
46364
|
+
var SemVer$b = semver$4;
|
|
46438
46365
|
var inc$1 = function(version, release, options, identifier, identifierBase) {
|
|
46439
46366
|
if (typeof options === 'string') {
|
|
46440
46367
|
identifierBase = identifier;
|
|
@@ -46442,17 +46369,17 @@ var inc$1 = function(version, release, options, identifier, identifierBase) {
|
|
|
46442
46369
|
options = undefined;
|
|
46443
46370
|
}
|
|
46444
46371
|
try {
|
|
46445
|
-
return new SemVer$
|
|
46372
|
+
return new SemVer$b(_instanceof$4(version, SemVer$b) ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
46446
46373
|
} catch (er) {
|
|
46447
46374
|
return null;
|
|
46448
46375
|
}
|
|
46449
46376
|
};
|
|
46450
46377
|
var inc_1 = inc$1;
|
|
46451
46378
|
|
|
46452
|
-
var parse$
|
|
46379
|
+
var parse$3 = parse_1;
|
|
46453
46380
|
var diff$1 = function(version1, version2) {
|
|
46454
|
-
var v1 = parse$
|
|
46455
|
-
var v2 = parse$
|
|
46381
|
+
var v1 = parse$3(version1, null, true);
|
|
46382
|
+
var v2 = parse$3(version2, null, true);
|
|
46456
46383
|
var comparison = v1.compare(v2);
|
|
46457
46384
|
if (comparison === 0) {
|
|
46458
46385
|
return null;
|
|
@@ -46491,39 +46418,39 @@ var diff$1 = function(version1, version2) {
|
|
|
46491
46418
|
if (v1.patch !== v2.patch) {
|
|
46492
46419
|
return prefix + 'patch';
|
|
46493
46420
|
}
|
|
46494
|
-
// high and low are
|
|
46421
|
+
// high and low are preleases
|
|
46495
46422
|
return 'prerelease';
|
|
46496
46423
|
};
|
|
46497
46424
|
var diff_1 = diff$1;
|
|
46498
46425
|
|
|
46499
|
-
var SemVer$
|
|
46426
|
+
var SemVer$a = semver$4;
|
|
46500
46427
|
var major$1 = function(a, loose) {
|
|
46501
|
-
return new SemVer$
|
|
46428
|
+
return new SemVer$a(a, loose).major;
|
|
46502
46429
|
};
|
|
46503
46430
|
var major_1 = major$1;
|
|
46504
46431
|
|
|
46505
|
-
var SemVer$
|
|
46432
|
+
var SemVer$9 = semver$4;
|
|
46506
46433
|
var minor$1 = function(a, loose) {
|
|
46507
|
-
return new SemVer$
|
|
46434
|
+
return new SemVer$9(a, loose).minor;
|
|
46508
46435
|
};
|
|
46509
46436
|
var minor_1 = minor$1;
|
|
46510
46437
|
|
|
46511
|
-
var SemVer$
|
|
46438
|
+
var SemVer$8 = semver$4;
|
|
46512
46439
|
var patch$1 = function(a, loose) {
|
|
46513
|
-
return new SemVer$
|
|
46440
|
+
return new SemVer$8(a, loose).patch;
|
|
46514
46441
|
};
|
|
46515
46442
|
var patch_1 = patch$1;
|
|
46516
46443
|
|
|
46517
|
-
var parse$
|
|
46444
|
+
var parse$2 = parse_1;
|
|
46518
46445
|
var prerelease$1 = function(version, options) {
|
|
46519
|
-
var parsed = parse$
|
|
46446
|
+
var parsed = parse$2(version, options);
|
|
46520
46447
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
46521
46448
|
};
|
|
46522
46449
|
var prerelease_1 = prerelease$1;
|
|
46523
46450
|
|
|
46524
|
-
var SemVer$
|
|
46451
|
+
var SemVer$7 = semver$4;
|
|
46525
46452
|
var compare$b = function(a, b, loose) {
|
|
46526
|
-
return new SemVer$
|
|
46453
|
+
return new SemVer$7(a, loose).compare(new SemVer$7(b, loose));
|
|
46527
46454
|
};
|
|
46528
46455
|
var compare_1 = compare$b;
|
|
46529
46456
|
|
|
@@ -46539,10 +46466,10 @@ var compareLoose$1 = function(a, b) {
|
|
|
46539
46466
|
};
|
|
46540
46467
|
var compareLoose_1 = compareLoose$1;
|
|
46541
46468
|
|
|
46542
|
-
var SemVer$
|
|
46469
|
+
var SemVer$6 = semver$4;
|
|
46543
46470
|
var compareBuild$3 = function(a, b, loose) {
|
|
46544
|
-
var versionA = new SemVer$
|
|
46545
|
-
var versionB = new SemVer$
|
|
46471
|
+
var versionA = new SemVer$6(a, loose);
|
|
46472
|
+
var versionB = new SemVer$6(b, loose);
|
|
46546
46473
|
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
46547
46474
|
};
|
|
46548
46475
|
var compareBuild_1 = compareBuild$3;
|
|
@@ -46599,7 +46526,7 @@ var lte$3 = function(a, b, loose) {
|
|
|
46599
46526
|
};
|
|
46600
46527
|
var lte_1 = lte$3;
|
|
46601
46528
|
|
|
46602
|
-
function _type_of$
|
|
46529
|
+
function _type_of$9(obj) {
|
|
46603
46530
|
"@swc/helpers - typeof";
|
|
46604
46531
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
46605
46532
|
}
|
|
@@ -46612,18 +46539,18 @@ var lte$2 = lte_1;
|
|
|
46612
46539
|
var cmp$1 = function(a, op, b, loose) {
|
|
46613
46540
|
switch(op){
|
|
46614
46541
|
case '===':
|
|
46615
|
-
if ((typeof a === "undefined" ? "undefined" : _type_of$
|
|
46542
|
+
if ((typeof a === "undefined" ? "undefined" : _type_of$9(a)) === 'object') {
|
|
46616
46543
|
a = a.version;
|
|
46617
46544
|
}
|
|
46618
|
-
if ((typeof b === "undefined" ? "undefined" : _type_of$
|
|
46545
|
+
if ((typeof b === "undefined" ? "undefined" : _type_of$9(b)) === 'object') {
|
|
46619
46546
|
b = b.version;
|
|
46620
46547
|
}
|
|
46621
46548
|
return a === b;
|
|
46622
46549
|
case '!==':
|
|
46623
|
-
if ((typeof a === "undefined" ? "undefined" : _type_of$
|
|
46550
|
+
if ((typeof a === "undefined" ? "undefined" : _type_of$9(a)) === 'object') {
|
|
46624
46551
|
a = a.version;
|
|
46625
46552
|
}
|
|
46626
|
-
if ((typeof b === "undefined" ? "undefined" : _type_of$
|
|
46553
|
+
if ((typeof b === "undefined" ? "undefined" : _type_of$9(b)) === 'object') {
|
|
46627
46554
|
b = b.version;
|
|
46628
46555
|
}
|
|
46629
46556
|
return a !== b;
|
|
@@ -46647,18 +46574,18 @@ var cmp$1 = function(a, op, b, loose) {
|
|
|
46647
46574
|
};
|
|
46648
46575
|
var cmp_1 = cmp$1;
|
|
46649
46576
|
|
|
46650
|
-
function _instanceof$
|
|
46577
|
+
function _instanceof$3(left, right) {
|
|
46651
46578
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
46652
46579
|
return !!right[Symbol.hasInstance](left);
|
|
46653
46580
|
} else {
|
|
46654
46581
|
return left instanceof right;
|
|
46655
46582
|
}
|
|
46656
46583
|
}
|
|
46657
|
-
var SemVer$
|
|
46658
|
-
var parse$
|
|
46584
|
+
var SemVer$5 = semver$4;
|
|
46585
|
+
var parse$1 = parse_1;
|
|
46659
46586
|
var _require$2 = reExports, re = _require$2.safeRe, t = _require$2.t;
|
|
46660
46587
|
var coerce$1 = function(version, options) {
|
|
46661
|
-
if (_instanceof$
|
|
46588
|
+
if (_instanceof$3(version, SemVer$5)) {
|
|
46662
46589
|
return version;
|
|
46663
46590
|
}
|
|
46664
46591
|
if (typeof version === 'number') {
|
|
@@ -46700,52 +46627,10 @@ var coerce$1 = function(version, options) {
|
|
|
46700
46627
|
var patch = match[4] || '0';
|
|
46701
46628
|
var prerelease = options.includePrerelease && match[5] ? "-".concat(match[5]) : '';
|
|
46702
46629
|
var build = options.includePrerelease && match[6] ? "+".concat(match[6]) : '';
|
|
46703
|
-
return parse$
|
|
46630
|
+
return parse$1("".concat(major, ".").concat(minor, ".").concat(patch).concat(prerelease).concat(build), options);
|
|
46704
46631
|
};
|
|
46705
46632
|
var coerce_1 = coerce$1;
|
|
46706
46633
|
|
|
46707
|
-
function _instanceof$1(left, right) {
|
|
46708
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
46709
|
-
return !!right[Symbol.hasInstance](left);
|
|
46710
|
-
} else {
|
|
46711
|
-
return left instanceof right;
|
|
46712
|
-
}
|
|
46713
|
-
}
|
|
46714
|
-
var parse$1 = parse_1;
|
|
46715
|
-
var constants$1 = constants$2;
|
|
46716
|
-
var SemVer$5 = semver$4;
|
|
46717
|
-
var truncate$1 = function(version, truncation, options) {
|
|
46718
|
-
if (!constants$1.RELEASE_TYPES.includes(truncation)) {
|
|
46719
|
-
return null;
|
|
46720
|
-
}
|
|
46721
|
-
var clonedVersion = cloneInputVersion(version, options);
|
|
46722
|
-
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
46723
|
-
};
|
|
46724
|
-
var cloneInputVersion = function(version, options) {
|
|
46725
|
-
var versionStringToParse = _instanceof$1(version, SemVer$5) ? version.version : version;
|
|
46726
|
-
return parse$1(versionStringToParse, options);
|
|
46727
|
-
};
|
|
46728
|
-
var doTruncation = function(version, truncation) {
|
|
46729
|
-
if (isPrerelease(truncation)) {
|
|
46730
|
-
return version.version;
|
|
46731
|
-
}
|
|
46732
|
-
version.prerelease = [];
|
|
46733
|
-
switch(truncation){
|
|
46734
|
-
case 'major':
|
|
46735
|
-
version.minor = 0;
|
|
46736
|
-
version.patch = 0;
|
|
46737
|
-
break;
|
|
46738
|
-
case 'minor':
|
|
46739
|
-
version.patch = 0;
|
|
46740
|
-
break;
|
|
46741
|
-
}
|
|
46742
|
-
return version.format();
|
|
46743
|
-
};
|
|
46744
|
-
var isPrerelease = function(type) {
|
|
46745
|
-
return type.startsWith('pre');
|
|
46746
|
-
};
|
|
46747
|
-
var truncate_1 = truncate$1;
|
|
46748
|
-
|
|
46749
46634
|
var lrucache;
|
|
46750
46635
|
var hasRequiredLrucache;
|
|
46751
46636
|
|
|
@@ -47000,8 +46885,6 @@ function requireRange () {
|
|
|
47000
46885
|
key: "parseRange",
|
|
47001
46886
|
value: function parseRange(range) {
|
|
47002
46887
|
var _this = this;
|
|
47003
|
-
// strip build metadata so it can't bleed into the version
|
|
47004
|
-
range = range.replace(BUILDSTRIPRE, '');
|
|
47005
46888
|
// memoize range parsing for performance.
|
|
47006
46889
|
// this is a very hot path, and fully deterministic.
|
|
47007
46890
|
var memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
@@ -47129,10 +47012,8 @@ function requireRange () {
|
|
|
47129
47012
|
var Comparator = requireComparator();
|
|
47130
47013
|
var debug = debug_1;
|
|
47131
47014
|
var SemVer = semver$4;
|
|
47132
|
-
var _require = reExports, re = _require.safeRe,
|
|
47133
|
-
var _require1 = constants$
|
|
47134
|
-
// unbounded global build-metadata stripper used by parseRange
|
|
47135
|
-
var BUILDSTRIPRE = new RegExp(src[t.BUILD], 'g');
|
|
47015
|
+
var _require = reExports, re = _require.safeRe, t = _require.t, comparatorTrimReplace = _require.comparatorTrimReplace, tildeTrimReplace = _require.tildeTrimReplace, caretTrimReplace = _require.caretTrimReplace;
|
|
47016
|
+
var _require1 = constants$1, FLAG_INCLUDE_PRERELEASE = _require1.FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE = _require1.FLAG_LOOSE;
|
|
47136
47017
|
var isNullSet = function(c) {
|
|
47137
47018
|
return c.value === '<0.0.0-0';
|
|
47138
47019
|
};
|
|
@@ -47172,9 +47053,6 @@ function requireRange () {
|
|
|
47172
47053
|
var isX = function(id) {
|
|
47173
47054
|
return !id || id.toLowerCase() === 'x' || id === '*';
|
|
47174
47055
|
};
|
|
47175
|
-
var invalidXRangeOrder = function(M, m, p) {
|
|
47176
|
-
return isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
47177
|
-
};
|
|
47178
47056
|
// ~, ~> --> * (any, kinda silly)
|
|
47179
47057
|
// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
|
|
47180
47058
|
// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
|
|
@@ -47255,9 +47133,9 @@ function requireRange () {
|
|
|
47255
47133
|
debug('no pr');
|
|
47256
47134
|
if (M === '0') {
|
|
47257
47135
|
if (m === '0') {
|
|
47258
|
-
ret = ">=".concat(M, ".").concat(m, ".").concat(p, " <").concat(M, ".").concat(m, ".").concat(+p + 1, "-0");
|
|
47136
|
+
ret = ">=".concat(M, ".").concat(m, ".").concat(p).concat(z, " <").concat(M, ".").concat(m, ".").concat(+p + 1, "-0");
|
|
47259
47137
|
} else {
|
|
47260
|
-
ret = ">=".concat(M, ".").concat(m, ".").concat(p, " <").concat(M, ".").concat(+m + 1, ".0-0");
|
|
47138
|
+
ret = ">=".concat(M, ".").concat(m, ".").concat(p).concat(z, " <").concat(M, ".").concat(+m + 1, ".0-0");
|
|
47261
47139
|
}
|
|
47262
47140
|
} else {
|
|
47263
47141
|
ret = ">=".concat(M, ".").concat(m, ".").concat(p, " <").concat(+M + 1, ".0.0-0");
|
|
@@ -47278,9 +47156,6 @@ function requireRange () {
|
|
|
47278
47156
|
var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
47279
47157
|
return comp.replace(r, function(ret, gtlt, M, m, p, pr) {
|
|
47280
47158
|
debug('xRange', comp, ret, gtlt, M, m, p, pr);
|
|
47281
|
-
if (invalidXRangeOrder(M, m, p)) {
|
|
47282
|
-
return comp;
|
|
47283
|
-
}
|
|
47284
47159
|
var xM = isX(M);
|
|
47285
47160
|
var xm = xM || isX(m);
|
|
47286
47161
|
var xp = xm || isX(p);
|
|
@@ -47725,7 +47600,7 @@ var validRange$1 = function(range, options) {
|
|
|
47725
47600
|
};
|
|
47726
47601
|
var valid$1 = validRange$1;
|
|
47727
47602
|
|
|
47728
|
-
function _type_of$
|
|
47603
|
+
function _type_of$8(obj) {
|
|
47729
47604
|
"@swc/helpers - typeof";
|
|
47730
47605
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47731
47606
|
}
|
|
@@ -47803,7 +47678,7 @@ var outside$3 = function(version, range, hilo, options) {
|
|
|
47803
47678
|
// but note that everything is flipped for the "ltr" function.
|
|
47804
47679
|
for(var i = 0; i < range.set.length; ++i){
|
|
47805
47680
|
var _ret = _loop(i);
|
|
47806
|
-
if (_type_of$
|
|
47681
|
+
if (_type_of$8(_ret) === "object") return _ret.v;
|
|
47807
47682
|
}
|
|
47808
47683
|
return true;
|
|
47809
47684
|
};
|
|
@@ -48003,7 +47878,7 @@ var compare$1 = compare_1;
|
|
|
48003
47878
|
// - If LT
|
|
48004
47879
|
// - If LT.semver is greater than any < or <= comp in C, return false
|
|
48005
47880
|
// - If LT is <=, and LT.semver does not satisfy every C, return false
|
|
48006
|
-
// - If
|
|
47881
|
+
// - If GT.semver has a prerelease, and not in prerelease mode
|
|
48007
47882
|
// - If no C has a prerelease and the LT.semver tuple, return false
|
|
48008
47883
|
// - Else return true
|
|
48009
47884
|
var subset$1 = function(sub, dom) {
|
|
@@ -48208,7 +48083,7 @@ var simpleSubset = function(sub, dom, options) {
|
|
|
48208
48083
|
if (higher === c2 && higher !== gt) {
|
|
48209
48084
|
return false;
|
|
48210
48085
|
}
|
|
48211
|
-
} else if (gt.operator === '>=' && !
|
|
48086
|
+
} else if (gt.operator === '>=' && !satisfies$1(gt.semver, String(c2), options)) {
|
|
48212
48087
|
return false;
|
|
48213
48088
|
}
|
|
48214
48089
|
}
|
|
@@ -48223,7 +48098,7 @@ var simpleSubset = function(sub, dom, options) {
|
|
|
48223
48098
|
if (lower === c2 && lower !== lt) {
|
|
48224
48099
|
return false;
|
|
48225
48100
|
}
|
|
48226
|
-
} else if (lt.operator === '<=' && !
|
|
48101
|
+
} else if (lt.operator === '<=' && !satisfies$1(lt.semver, String(c2), options)) {
|
|
48227
48102
|
return false;
|
|
48228
48103
|
}
|
|
48229
48104
|
}
|
|
@@ -48282,7 +48157,7 @@ var subset_1 = subset$1;
|
|
|
48282
48157
|
|
|
48283
48158
|
// just pre-load all the stuff that index.js lazily exports
|
|
48284
48159
|
var internalRe = reExports;
|
|
48285
|
-
var constants = constants$
|
|
48160
|
+
var constants = constants$1;
|
|
48286
48161
|
var SemVer = semver$4;
|
|
48287
48162
|
var identifiers = identifiers$1;
|
|
48288
48163
|
var parse = parse_1;
|
|
@@ -48308,7 +48183,6 @@ var gte = gte_1;
|
|
|
48308
48183
|
var lte = lte_1;
|
|
48309
48184
|
var cmp = cmp_1;
|
|
48310
48185
|
var coerce = coerce_1;
|
|
48311
|
-
var truncate = truncate_1;
|
|
48312
48186
|
var Comparator = requireComparator();
|
|
48313
48187
|
var Range = requireRange();
|
|
48314
48188
|
var satisfies = satisfies_1;
|
|
@@ -48347,7 +48221,6 @@ var semver$3 = {
|
|
|
48347
48221
|
lte: lte,
|
|
48348
48222
|
cmp: cmp,
|
|
48349
48223
|
coerce: coerce,
|
|
48350
|
-
truncate: truncate,
|
|
48351
48224
|
Comparator: Comparator,
|
|
48352
48225
|
Range: Range,
|
|
48353
48226
|
satisfies: satisfies,
|
|
@@ -48405,7 +48278,7 @@ var allowedCurves = {
|
|
|
48405
48278
|
ES384: 'secp384r1',
|
|
48406
48279
|
ES512: 'secp521r1'
|
|
48407
48280
|
};
|
|
48408
|
-
var validateAsymmetricKey$
|
|
48281
|
+
var validateAsymmetricKey$2 = function(algorithm, key) {
|
|
48409
48282
|
if (!algorithm || !key) return;
|
|
48410
48283
|
var keyType = key.asymmetricKeyType;
|
|
48411
48284
|
if (!keyType) return;
|
|
@@ -48449,7 +48322,7 @@ var validateAsymmetricKey$1 = function(algorithm, key) {
|
|
|
48449
48322
|
var semver = semver$3;
|
|
48450
48323
|
var psSupported = semver.satisfies(process.version, '^6.12.0 || >=8.0.0');
|
|
48451
48324
|
|
|
48452
|
-
function _instanceof(left, right) {
|
|
48325
|
+
function _instanceof$2(left, right) {
|
|
48453
48326
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
48454
48327
|
return !!right[Symbol.hasInstance](left);
|
|
48455
48328
|
} else {
|
|
@@ -48460,11 +48333,11 @@ var JsonWebTokenError = JsonWebTokenError_1;
|
|
|
48460
48333
|
var NotBeforeError = NotBeforeError_1;
|
|
48461
48334
|
var TokenExpiredError = TokenExpiredError_1;
|
|
48462
48335
|
var decode = decode$1;
|
|
48463
|
-
var timespan = timespan$
|
|
48464
|
-
var validateAsymmetricKey = validateAsymmetricKey$
|
|
48336
|
+
var timespan$1 = timespan$2;
|
|
48337
|
+
var validateAsymmetricKey$1 = validateAsymmetricKey$2;
|
|
48465
48338
|
var PS_SUPPORTED$1 = psSupported;
|
|
48466
|
-
var jws = jws$
|
|
48467
|
-
var _require$1 = require$$1, KeyObject = _require$1.KeyObject, createSecretKey = _require$1.createSecretKey, createPublicKey = _require$1.createPublicKey;
|
|
48339
|
+
var jws$1 = jws$3;
|
|
48340
|
+
var _require$1 = require$$1, KeyObject$1 = _require$1.KeyObject, createSecretKey$1 = _require$1.createSecretKey, createPublicKey = _require$1.createPublicKey;
|
|
48468
48341
|
var PUB_KEY_ALGS = [
|
|
48469
48342
|
'RS256',
|
|
48470
48343
|
'RS384',
|
|
@@ -48565,12 +48438,12 @@ var verify = function(jwtString, secretOrPublicKey, options, callback) {
|
|
|
48565
48438
|
if (!hasSignature && !options.algorithms) {
|
|
48566
48439
|
return done(new JsonWebTokenError('please specify "none" in "algorithms" to verify unsigned tokens'));
|
|
48567
48440
|
}
|
|
48568
|
-
if (secretOrPublicKey != null && !_instanceof(secretOrPublicKey, KeyObject)) {
|
|
48441
|
+
if (secretOrPublicKey != null && !_instanceof$2(secretOrPublicKey, KeyObject$1)) {
|
|
48569
48442
|
try {
|
|
48570
48443
|
secretOrPublicKey = createPublicKey(secretOrPublicKey);
|
|
48571
48444
|
} catch (_) {
|
|
48572
48445
|
try {
|
|
48573
|
-
secretOrPublicKey = createSecretKey(typeof secretOrPublicKey === 'string' ? Buffer.from(secretOrPublicKey) : secretOrPublicKey);
|
|
48446
|
+
secretOrPublicKey = createSecretKey$1(typeof secretOrPublicKey === 'string' ? Buffer.from(secretOrPublicKey) : secretOrPublicKey);
|
|
48574
48447
|
} catch (_) {
|
|
48575
48448
|
return done(new JsonWebTokenError('secretOrPublicKey is not valid key material'));
|
|
48576
48449
|
}
|
|
@@ -48600,14 +48473,14 @@ var verify = function(jwtString, secretOrPublicKey, options, callback) {
|
|
|
48600
48473
|
}
|
|
48601
48474
|
if (!options.allowInvalidAsymmetricKeyTypes) {
|
|
48602
48475
|
try {
|
|
48603
|
-
validateAsymmetricKey(header.alg, secretOrPublicKey);
|
|
48476
|
+
validateAsymmetricKey$1(header.alg, secretOrPublicKey);
|
|
48604
48477
|
} catch (e) {
|
|
48605
48478
|
return done(e);
|
|
48606
48479
|
}
|
|
48607
48480
|
}
|
|
48608
48481
|
var valid;
|
|
48609
48482
|
try {
|
|
48610
|
-
valid = jws.verify(jwtString, decodedToken.header.alg, secretOrPublicKey);
|
|
48483
|
+
valid = jws$1.verify(jwtString, decodedToken.header.alg, secretOrPublicKey);
|
|
48611
48484
|
} catch (e) {
|
|
48612
48485
|
return done(e);
|
|
48613
48486
|
}
|
|
@@ -48640,7 +48513,7 @@ var verify = function(jwtString, secretOrPublicKey, options, callback) {
|
|
|
48640
48513
|
];
|
|
48641
48514
|
var match = target.some(function(targetAudience) {
|
|
48642
48515
|
return audiences.some(function(audience) {
|
|
48643
|
-
return _instanceof(audience, RegExp) ? audience.test(targetAudience) : audience === targetAudience;
|
|
48516
|
+
return _instanceof$2(audience, RegExp) ? audience.test(targetAudience) : audience === targetAudience;
|
|
48644
48517
|
});
|
|
48645
48518
|
});
|
|
48646
48519
|
if (!match) {
|
|
@@ -48672,7 +48545,7 @@ var verify = function(jwtString, secretOrPublicKey, options, callback) {
|
|
|
48672
48545
|
if (typeof payload.iat !== 'number') {
|
|
48673
48546
|
return done(new JsonWebTokenError('iat required when maxAge is specified'));
|
|
48674
48547
|
}
|
|
48675
|
-
var maxAgeTimestamp = timespan(options.maxAge, payload.iat);
|
|
48548
|
+
var maxAgeTimestamp = timespan$1(options.maxAge, payload.iat);
|
|
48676
48549
|
if (typeof maxAgeTimestamp === 'undefined') {
|
|
48677
48550
|
return done(new JsonWebTokenError('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));
|
|
48678
48551
|
}
|
|
@@ -48701,18 +48574,18 @@ var verify = function(jwtString, secretOrPublicKey, options, callback) {
|
|
|
48701
48574
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
48702
48575
|
*/
|
|
48703
48576
|
|
|
48704
|
-
/** Used as references for various `Number` constants. */ function _type_of(obj) {
|
|
48577
|
+
/** Used as references for various `Number` constants. */ function _type_of$7(obj) {
|
|
48705
48578
|
"@swc/helpers - typeof";
|
|
48706
48579
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
48707
48580
|
}
|
|
48708
|
-
var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.7976931348623157e+308, NAN = 0 / 0;
|
|
48709
|
-
/** `Object#toString` result references. */ var argsTag = '[object Arguments]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', stringTag = '[object String]', symbolTag = '[object Symbol]';
|
|
48710
|
-
/** Used to match leading and trailing whitespace. */ var reTrim = /^\s+|\s+$/g;
|
|
48711
|
-
/** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
48712
|
-
/** Used to detect binary string values. */ var reIsBinary = /^0b[01]+$/i;
|
|
48713
|
-
/** Used to detect octal string values. */ var reIsOctal = /^0o[0-7]+$/i;
|
|
48581
|
+
var INFINITY$2 = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER$2 = 1.7976931348623157e+308, NAN$2 = 0 / 0;
|
|
48582
|
+
/** `Object#toString` result references. */ var argsTag = '[object Arguments]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', stringTag$1 = '[object String]', symbolTag$2 = '[object Symbol]';
|
|
48583
|
+
/** Used to match leading and trailing whitespace. */ var reTrim$2 = /^\s+|\s+$/g;
|
|
48584
|
+
/** Used to detect bad signed hexadecimal string values. */ var reIsBadHex$2 = /^[-+]0x[0-9a-f]+$/i;
|
|
48585
|
+
/** Used to detect binary string values. */ var reIsBinary$2 = /^0b[01]+$/i;
|
|
48586
|
+
/** Used to detect octal string values. */ var reIsOctal$2 = /^0o[0-7]+$/i;
|
|
48714
48587
|
/** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
48715
|
-
/** Built-in method references without a dependency on `root`. */ var freeParseInt = parseInt;
|
|
48588
|
+
/** Built-in method references without a dependency on `root`. */ var freeParseInt$2 = parseInt;
|
|
48716
48589
|
/**
|
|
48717
48590
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
48718
48591
|
* shorthands.
|
|
@@ -48812,20 +48685,20 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
48812
48685
|
* @param {Function} func The function to wrap.
|
|
48813
48686
|
* @param {Function} transform The argument transform.
|
|
48814
48687
|
* @returns {Function} Returns the new function.
|
|
48815
|
-
*/ function overArg(func, transform) {
|
|
48688
|
+
*/ function overArg$1(func, transform) {
|
|
48816
48689
|
return function(arg) {
|
|
48817
48690
|
return func(transform(arg));
|
|
48818
48691
|
};
|
|
48819
48692
|
}
|
|
48820
|
-
/** Used for built-in method references. */ var objectProto = Object.prototype;
|
|
48821
|
-
/** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
48693
|
+
/** Used for built-in method references. */ var objectProto$6 = Object.prototype;
|
|
48694
|
+
/** Used to check objects for own properties. */ var hasOwnProperty$1 = objectProto$6.hasOwnProperty;
|
|
48822
48695
|
/**
|
|
48823
48696
|
* Used to resolve the
|
|
48824
48697
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
48825
48698
|
* of values.
|
|
48826
|
-
*/ var objectToString = objectProto.toString;
|
|
48827
|
-
/** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
48828
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object), nativeMax = Math.max;
|
|
48699
|
+
*/ var objectToString$6 = objectProto$6.toString;
|
|
48700
|
+
/** Built-in value references. */ var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
|
|
48701
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg$1(Object.keys, Object), nativeMax = Math.max;
|
|
48829
48702
|
/**
|
|
48830
48703
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
48831
48704
|
*
|
|
@@ -48836,10 +48709,10 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
48836
48709
|
*/ function arrayLikeKeys(value, inherited) {
|
|
48837
48710
|
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
|
48838
48711
|
// Safari 9 makes `arguments.length` enumerable in strict mode.
|
|
48839
|
-
var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];
|
|
48712
|
+
var result = isArray$1(value) || isArguments(value) ? baseTimes(value.length, String) : [];
|
|
48840
48713
|
var length = result.length, skipIndexes = !!length;
|
|
48841
48714
|
for(var key in value){
|
|
48842
|
-
if ((hasOwnProperty.call(value, key)) && !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
|
|
48715
|
+
if ((hasOwnProperty$1.call(value, key)) && !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
|
|
48843
48716
|
result.push(key);
|
|
48844
48717
|
}
|
|
48845
48718
|
}
|
|
@@ -48857,7 +48730,7 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
48857
48730
|
}
|
|
48858
48731
|
var result = [];
|
|
48859
48732
|
for(var key in Object(object)){
|
|
48860
|
-
if (hasOwnProperty.call(object, key) && key != 'constructor') {
|
|
48733
|
+
if (hasOwnProperty$1.call(object, key) && key != 'constructor') {
|
|
48861
48734
|
result.push(key);
|
|
48862
48735
|
}
|
|
48863
48736
|
}
|
|
@@ -48881,7 +48754,7 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
48881
48754
|
* @param {*} value The value to check.
|
|
48882
48755
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
48883
48756
|
*/ function isPrototype(value) {
|
|
48884
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;
|
|
48757
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == 'function' && Ctor.prototype || objectProto$6;
|
|
48885
48758
|
return value === proto;
|
|
48886
48759
|
}
|
|
48887
48760
|
/**
|
|
@@ -48915,12 +48788,12 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
48915
48788
|
* // => true
|
|
48916
48789
|
*/ function includes$1(collection, value, fromIndex, guard) {
|
|
48917
48790
|
collection = isArrayLike(collection) ? collection : values(collection);
|
|
48918
|
-
fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0;
|
|
48791
|
+
fromIndex = fromIndex && !guard ? toInteger$2(fromIndex) : 0;
|
|
48919
48792
|
var length = collection.length;
|
|
48920
48793
|
if (fromIndex < 0) {
|
|
48921
48794
|
fromIndex = nativeMax(length + fromIndex, 0);
|
|
48922
48795
|
}
|
|
48923
|
-
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
48796
|
+
return isString$2(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
48924
48797
|
}
|
|
48925
48798
|
/**
|
|
48926
48799
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -48941,7 +48814,7 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
48941
48814
|
* // => false
|
|
48942
48815
|
*/ function isArguments(value) {
|
|
48943
48816
|
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
|
48944
|
-
return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
|
|
48817
|
+
return isArrayLikeObject(value) && hasOwnProperty$1.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString$6.call(value) == argsTag);
|
|
48945
48818
|
}
|
|
48946
48819
|
/**
|
|
48947
48820
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -48965,7 +48838,7 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
48965
48838
|
*
|
|
48966
48839
|
* _.isArray(_.noop);
|
|
48967
48840
|
* // => false
|
|
48968
|
-
*/ var isArray = Array.isArray;
|
|
48841
|
+
*/ var isArray$1 = Array.isArray;
|
|
48969
48842
|
/**
|
|
48970
48843
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
48971
48844
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -49018,7 +48891,7 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
49018
48891
|
* _.isArrayLikeObject(_.noop);
|
|
49019
48892
|
* // => false
|
|
49020
48893
|
*/ function isArrayLikeObject(value) {
|
|
49021
|
-
return isObjectLike(value) && isArrayLike(value);
|
|
48894
|
+
return isObjectLike$6(value) && isArrayLike(value);
|
|
49022
48895
|
}
|
|
49023
48896
|
/**
|
|
49024
48897
|
* Checks if `value` is classified as a `Function` object.
|
|
@@ -49039,7 +48912,7 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
49039
48912
|
*/ function isFunction(value) {
|
|
49040
48913
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
49041
48914
|
// in Safari 8-9 which returns 'object' for typed array and other constructors.
|
|
49042
|
-
var tag = isObject(value) ? objectToString.call(value) : '';
|
|
48915
|
+
var tag = isObject$2(value) ? objectToString$6.call(value) : '';
|
|
49043
48916
|
return tag == funcTag || tag == genTag;
|
|
49044
48917
|
}
|
|
49045
48918
|
/**
|
|
@@ -49094,8 +48967,8 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
49094
48967
|
*
|
|
49095
48968
|
* _.isObject(null);
|
|
49096
48969
|
* // => false
|
|
49097
|
-
*/ function isObject(value) {
|
|
49098
|
-
var type = typeof value === "undefined" ? "undefined" : _type_of(value);
|
|
48970
|
+
*/ function isObject$2(value) {
|
|
48971
|
+
var type = typeof value === "undefined" ? "undefined" : _type_of$7(value);
|
|
49099
48972
|
return !!value && (type == 'object' || type == 'function');
|
|
49100
48973
|
}
|
|
49101
48974
|
/**
|
|
@@ -49121,8 +48994,8 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
49121
48994
|
*
|
|
49122
48995
|
* _.isObjectLike(null);
|
|
49123
48996
|
* // => false
|
|
49124
|
-
*/ function isObjectLike(value) {
|
|
49125
|
-
return !!value && (typeof value === "undefined" ? "undefined" : _type_of(value)) == 'object';
|
|
48997
|
+
*/ function isObjectLike$6(value) {
|
|
48998
|
+
return !!value && (typeof value === "undefined" ? "undefined" : _type_of$7(value)) == 'object';
|
|
49126
48999
|
}
|
|
49127
49000
|
/**
|
|
49128
49001
|
* Checks if `value` is classified as a `String` primitive or object.
|
|
@@ -49140,8 +49013,8 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
49140
49013
|
*
|
|
49141
49014
|
* _.isString(1);
|
|
49142
49015
|
* // => false
|
|
49143
|
-
*/ function isString(value) {
|
|
49144
|
-
return typeof value == 'string' || !isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag;
|
|
49016
|
+
*/ function isString$2(value) {
|
|
49017
|
+
return typeof value == 'string' || !isArray$1(value) && isObjectLike$6(value) && objectToString$6.call(value) == stringTag$1;
|
|
49145
49018
|
}
|
|
49146
49019
|
/**
|
|
49147
49020
|
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
@@ -49159,8 +49032,8 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
49159
49032
|
*
|
|
49160
49033
|
* _.isSymbol('abc');
|
|
49161
49034
|
* // => false
|
|
49162
|
-
*/ function isSymbol(value) {
|
|
49163
|
-
return (typeof value === "undefined" ? "undefined" : _type_of(value)) == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
|
49035
|
+
*/ function isSymbol$2(value) {
|
|
49036
|
+
return (typeof value === "undefined" ? "undefined" : _type_of$7(value)) == 'symbol' || isObjectLike$6(value) && objectToString$6.call(value) == symbolTag$2;
|
|
49164
49037
|
}
|
|
49165
49038
|
/**
|
|
49166
49039
|
* Converts `value` to a finite number.
|
|
@@ -49184,14 +49057,14 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
49184
49057
|
*
|
|
49185
49058
|
* _.toFinite('3.2');
|
|
49186
49059
|
* // => 3.2
|
|
49187
|
-
*/ function toFinite(value) {
|
|
49060
|
+
*/ function toFinite$2(value) {
|
|
49188
49061
|
if (!value) {
|
|
49189
49062
|
return value === 0 ? value : 0;
|
|
49190
49063
|
}
|
|
49191
|
-
value = toNumber(value);
|
|
49192
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
49064
|
+
value = toNumber$2(value);
|
|
49065
|
+
if (value === INFINITY$2 || value === -INFINITY$2) {
|
|
49193
49066
|
var sign = value < 0 ? -1 : 1;
|
|
49194
|
-
return sign * MAX_INTEGER;
|
|
49067
|
+
return sign * MAX_INTEGER$2;
|
|
49195
49068
|
}
|
|
49196
49069
|
return value === value ? value : 0;
|
|
49197
49070
|
}
|
|
@@ -49220,8 +49093,8 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
49220
49093
|
*
|
|
49221
49094
|
* _.toInteger('3.2');
|
|
49222
49095
|
* // => 3
|
|
49223
|
-
*/ function toInteger(value) {
|
|
49224
|
-
var result = toFinite(value), remainder = result % 1;
|
|
49096
|
+
*/ function toInteger$2(value) {
|
|
49097
|
+
var result = toFinite$2(value), remainder = result % 1;
|
|
49225
49098
|
return result === result ? remainder ? result - remainder : result : 0;
|
|
49226
49099
|
}
|
|
49227
49100
|
/**
|
|
@@ -49246,23 +49119,23 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
49246
49119
|
*
|
|
49247
49120
|
* _.toNumber('3.2');
|
|
49248
49121
|
* // => 3.2
|
|
49249
|
-
*/ function toNumber(value) {
|
|
49122
|
+
*/ function toNumber$2(value) {
|
|
49250
49123
|
if (typeof value == 'number') {
|
|
49251
49124
|
return value;
|
|
49252
49125
|
}
|
|
49253
|
-
if (isSymbol(value)) {
|
|
49254
|
-
return NAN;
|
|
49126
|
+
if (isSymbol$2(value)) {
|
|
49127
|
+
return NAN$2;
|
|
49255
49128
|
}
|
|
49256
|
-
if (isObject(value)) {
|
|
49129
|
+
if (isObject$2(value)) {
|
|
49257
49130
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
49258
|
-
value = isObject(other) ? other + '' : other;
|
|
49131
|
+
value = isObject$2(other) ? other + '' : other;
|
|
49259
49132
|
}
|
|
49260
49133
|
if (typeof value != 'string') {
|
|
49261
49134
|
return value === 0 ? value : +value;
|
|
49262
49135
|
}
|
|
49263
|
-
value = value.replace(reTrim, '');
|
|
49264
|
-
var isBinary = reIsBinary.test(value);
|
|
49265
|
-
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
49136
|
+
value = value.replace(reTrim$2, '');
|
|
49137
|
+
var isBinary = reIsBinary$2.test(value);
|
|
49138
|
+
return isBinary || reIsOctal$2.test(value) ? freeParseInt$2(value.slice(2), isBinary ? 2 : 8) : reIsBadHex$2.test(value) ? NAN$2 : +value;
|
|
49266
49139
|
}
|
|
49267
49140
|
/**
|
|
49268
49141
|
* Creates an array of the own enumerable property names of `object`.
|
|
@@ -49324,6 +49197,374 @@ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.79769
|
|
|
49324
49197
|
}
|
|
49325
49198
|
var lodash_includes = includes$1;
|
|
49326
49199
|
|
|
49200
|
+
/**
|
|
49201
|
+
* lodash 3.0.3 (Custom Build) <https://lodash.com/>
|
|
49202
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
49203
|
+
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
|
49204
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
49205
|
+
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
49206
|
+
* Available under MIT license <https://lodash.com/license>
|
|
49207
|
+
*/
|
|
49208
|
+
|
|
49209
|
+
/** `Object#toString` result references. */ function _type_of$6(obj) {
|
|
49210
|
+
"@swc/helpers - typeof";
|
|
49211
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
49212
|
+
}
|
|
49213
|
+
var boolTag = '[object Boolean]';
|
|
49214
|
+
/** Used for built-in method references. */ var objectProto$5 = Object.prototype;
|
|
49215
|
+
/**
|
|
49216
|
+
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
|
49217
|
+
* of values.
|
|
49218
|
+
*/ var objectToString$5 = objectProto$5.toString;
|
|
49219
|
+
/**
|
|
49220
|
+
* Checks if `value` is classified as a boolean primitive or object.
|
|
49221
|
+
*
|
|
49222
|
+
* @static
|
|
49223
|
+
* @memberOf _
|
|
49224
|
+
* @category Lang
|
|
49225
|
+
* @param {*} value The value to check.
|
|
49226
|
+
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
|
49227
|
+
* @example
|
|
49228
|
+
*
|
|
49229
|
+
* _.isBoolean(false);
|
|
49230
|
+
* // => true
|
|
49231
|
+
*
|
|
49232
|
+
* _.isBoolean(null);
|
|
49233
|
+
* // => false
|
|
49234
|
+
*/ function isBoolean$1(value) {
|
|
49235
|
+
return value === true || value === false || isObjectLike$5(value) && objectToString$5.call(value) == boolTag;
|
|
49236
|
+
}
|
|
49237
|
+
/**
|
|
49238
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
49239
|
+
* and has a `typeof` result of "object".
|
|
49240
|
+
*
|
|
49241
|
+
* @static
|
|
49242
|
+
* @memberOf _
|
|
49243
|
+
* @category Lang
|
|
49244
|
+
* @param {*} value The value to check.
|
|
49245
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
49246
|
+
* @example
|
|
49247
|
+
*
|
|
49248
|
+
* _.isObjectLike({});
|
|
49249
|
+
* // => true
|
|
49250
|
+
*
|
|
49251
|
+
* _.isObjectLike([1, 2, 3]);
|
|
49252
|
+
* // => true
|
|
49253
|
+
*
|
|
49254
|
+
* _.isObjectLike(_.noop);
|
|
49255
|
+
* // => false
|
|
49256
|
+
*
|
|
49257
|
+
* _.isObjectLike(null);
|
|
49258
|
+
* // => false
|
|
49259
|
+
*/ function isObjectLike$5(value) {
|
|
49260
|
+
return !!value && (typeof value === "undefined" ? "undefined" : _type_of$6(value)) == 'object';
|
|
49261
|
+
}
|
|
49262
|
+
var lodash_isboolean = isBoolean$1;
|
|
49263
|
+
|
|
49264
|
+
/**
|
|
49265
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
49266
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
49267
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
49268
|
+
* Released under MIT license <https://lodash.com/license>
|
|
49269
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
49270
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
49271
|
+
*/
|
|
49272
|
+
|
|
49273
|
+
/** Used as references for various `Number` constants. */ function _type_of$5(obj) {
|
|
49274
|
+
"@swc/helpers - typeof";
|
|
49275
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
49276
|
+
}
|
|
49277
|
+
var INFINITY$1 = 1 / 0, MAX_INTEGER$1 = 1.7976931348623157e+308, NAN$1 = 0 / 0;
|
|
49278
|
+
/** `Object#toString` result references. */ var symbolTag$1 = '[object Symbol]';
|
|
49279
|
+
/** Used to match leading and trailing whitespace. */ var reTrim$1 = /^\s+|\s+$/g;
|
|
49280
|
+
/** Used to detect bad signed hexadecimal string values. */ var reIsBadHex$1 = /^[-+]0x[0-9a-f]+$/i;
|
|
49281
|
+
/** Used to detect binary string values. */ var reIsBinary$1 = /^0b[01]+$/i;
|
|
49282
|
+
/** Used to detect octal string values. */ var reIsOctal$1 = /^0o[0-7]+$/i;
|
|
49283
|
+
/** Built-in method references without a dependency on `root`. */ var freeParseInt$1 = parseInt;
|
|
49284
|
+
/** Used for built-in method references. */ var objectProto$4 = Object.prototype;
|
|
49285
|
+
/**
|
|
49286
|
+
* Used to resolve the
|
|
49287
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
49288
|
+
* of values.
|
|
49289
|
+
*/ var objectToString$4 = objectProto$4.toString;
|
|
49290
|
+
/**
|
|
49291
|
+
* Checks if `value` is an integer.
|
|
49292
|
+
*
|
|
49293
|
+
* **Note:** This method is based on
|
|
49294
|
+
* [`Number.isInteger`](https://mdn.io/Number/isInteger).
|
|
49295
|
+
*
|
|
49296
|
+
* @static
|
|
49297
|
+
* @memberOf _
|
|
49298
|
+
* @since 4.0.0
|
|
49299
|
+
* @category Lang
|
|
49300
|
+
* @param {*} value The value to check.
|
|
49301
|
+
* @returns {boolean} Returns `true` if `value` is an integer, else `false`.
|
|
49302
|
+
* @example
|
|
49303
|
+
*
|
|
49304
|
+
* _.isInteger(3);
|
|
49305
|
+
* // => true
|
|
49306
|
+
*
|
|
49307
|
+
* _.isInteger(Number.MIN_VALUE);
|
|
49308
|
+
* // => false
|
|
49309
|
+
*
|
|
49310
|
+
* _.isInteger(Infinity);
|
|
49311
|
+
* // => false
|
|
49312
|
+
*
|
|
49313
|
+
* _.isInteger('3');
|
|
49314
|
+
* // => false
|
|
49315
|
+
*/ function isInteger$1(value) {
|
|
49316
|
+
return typeof value == 'number' && value == toInteger$1(value);
|
|
49317
|
+
}
|
|
49318
|
+
/**
|
|
49319
|
+
* Checks if `value` is the
|
|
49320
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
49321
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
49322
|
+
*
|
|
49323
|
+
* @static
|
|
49324
|
+
* @memberOf _
|
|
49325
|
+
* @since 0.1.0
|
|
49326
|
+
* @category Lang
|
|
49327
|
+
* @param {*} value The value to check.
|
|
49328
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
49329
|
+
* @example
|
|
49330
|
+
*
|
|
49331
|
+
* _.isObject({});
|
|
49332
|
+
* // => true
|
|
49333
|
+
*
|
|
49334
|
+
* _.isObject([1, 2, 3]);
|
|
49335
|
+
* // => true
|
|
49336
|
+
*
|
|
49337
|
+
* _.isObject(_.noop);
|
|
49338
|
+
* // => true
|
|
49339
|
+
*
|
|
49340
|
+
* _.isObject(null);
|
|
49341
|
+
* // => false
|
|
49342
|
+
*/ function isObject$1(value) {
|
|
49343
|
+
var type = typeof value === "undefined" ? "undefined" : _type_of$5(value);
|
|
49344
|
+
return !!value && (type == 'object' || type == 'function');
|
|
49345
|
+
}
|
|
49346
|
+
/**
|
|
49347
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
49348
|
+
* and has a `typeof` result of "object".
|
|
49349
|
+
*
|
|
49350
|
+
* @static
|
|
49351
|
+
* @memberOf _
|
|
49352
|
+
* @since 4.0.0
|
|
49353
|
+
* @category Lang
|
|
49354
|
+
* @param {*} value The value to check.
|
|
49355
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
49356
|
+
* @example
|
|
49357
|
+
*
|
|
49358
|
+
* _.isObjectLike({});
|
|
49359
|
+
* // => true
|
|
49360
|
+
*
|
|
49361
|
+
* _.isObjectLike([1, 2, 3]);
|
|
49362
|
+
* // => true
|
|
49363
|
+
*
|
|
49364
|
+
* _.isObjectLike(_.noop);
|
|
49365
|
+
* // => false
|
|
49366
|
+
*
|
|
49367
|
+
* _.isObjectLike(null);
|
|
49368
|
+
* // => false
|
|
49369
|
+
*/ function isObjectLike$4(value) {
|
|
49370
|
+
return !!value && (typeof value === "undefined" ? "undefined" : _type_of$5(value)) == 'object';
|
|
49371
|
+
}
|
|
49372
|
+
/**
|
|
49373
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
49374
|
+
*
|
|
49375
|
+
* @static
|
|
49376
|
+
* @memberOf _
|
|
49377
|
+
* @since 4.0.0
|
|
49378
|
+
* @category Lang
|
|
49379
|
+
* @param {*} value The value to check.
|
|
49380
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
49381
|
+
* @example
|
|
49382
|
+
*
|
|
49383
|
+
* _.isSymbol(Symbol.iterator);
|
|
49384
|
+
* // => true
|
|
49385
|
+
*
|
|
49386
|
+
* _.isSymbol('abc');
|
|
49387
|
+
* // => false
|
|
49388
|
+
*/ function isSymbol$1(value) {
|
|
49389
|
+
return (typeof value === "undefined" ? "undefined" : _type_of$5(value)) == 'symbol' || isObjectLike$4(value) && objectToString$4.call(value) == symbolTag$1;
|
|
49390
|
+
}
|
|
49391
|
+
/**
|
|
49392
|
+
* Converts `value` to a finite number.
|
|
49393
|
+
*
|
|
49394
|
+
* @static
|
|
49395
|
+
* @memberOf _
|
|
49396
|
+
* @since 4.12.0
|
|
49397
|
+
* @category Lang
|
|
49398
|
+
* @param {*} value The value to convert.
|
|
49399
|
+
* @returns {number} Returns the converted number.
|
|
49400
|
+
* @example
|
|
49401
|
+
*
|
|
49402
|
+
* _.toFinite(3.2);
|
|
49403
|
+
* // => 3.2
|
|
49404
|
+
*
|
|
49405
|
+
* _.toFinite(Number.MIN_VALUE);
|
|
49406
|
+
* // => 5e-324
|
|
49407
|
+
*
|
|
49408
|
+
* _.toFinite(Infinity);
|
|
49409
|
+
* // => 1.7976931348623157e+308
|
|
49410
|
+
*
|
|
49411
|
+
* _.toFinite('3.2');
|
|
49412
|
+
* // => 3.2
|
|
49413
|
+
*/ function toFinite$1(value) {
|
|
49414
|
+
if (!value) {
|
|
49415
|
+
return value === 0 ? value : 0;
|
|
49416
|
+
}
|
|
49417
|
+
value = toNumber$1(value);
|
|
49418
|
+
if (value === INFINITY$1 || value === -INFINITY$1) {
|
|
49419
|
+
var sign = value < 0 ? -1 : 1;
|
|
49420
|
+
return sign * MAX_INTEGER$1;
|
|
49421
|
+
}
|
|
49422
|
+
return value === value ? value : 0;
|
|
49423
|
+
}
|
|
49424
|
+
/**
|
|
49425
|
+
* Converts `value` to an integer.
|
|
49426
|
+
*
|
|
49427
|
+
* **Note:** This method is loosely based on
|
|
49428
|
+
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
|
|
49429
|
+
*
|
|
49430
|
+
* @static
|
|
49431
|
+
* @memberOf _
|
|
49432
|
+
* @since 4.0.0
|
|
49433
|
+
* @category Lang
|
|
49434
|
+
* @param {*} value The value to convert.
|
|
49435
|
+
* @returns {number} Returns the converted integer.
|
|
49436
|
+
* @example
|
|
49437
|
+
*
|
|
49438
|
+
* _.toInteger(3.2);
|
|
49439
|
+
* // => 3
|
|
49440
|
+
*
|
|
49441
|
+
* _.toInteger(Number.MIN_VALUE);
|
|
49442
|
+
* // => 0
|
|
49443
|
+
*
|
|
49444
|
+
* _.toInteger(Infinity);
|
|
49445
|
+
* // => 1.7976931348623157e+308
|
|
49446
|
+
*
|
|
49447
|
+
* _.toInteger('3.2');
|
|
49448
|
+
* // => 3
|
|
49449
|
+
*/ function toInteger$1(value) {
|
|
49450
|
+
var result = toFinite$1(value), remainder = result % 1;
|
|
49451
|
+
return result === result ? remainder ? result - remainder : result : 0;
|
|
49452
|
+
}
|
|
49453
|
+
/**
|
|
49454
|
+
* Converts `value` to a number.
|
|
49455
|
+
*
|
|
49456
|
+
* @static
|
|
49457
|
+
* @memberOf _
|
|
49458
|
+
* @since 4.0.0
|
|
49459
|
+
* @category Lang
|
|
49460
|
+
* @param {*} value The value to process.
|
|
49461
|
+
* @returns {number} Returns the number.
|
|
49462
|
+
* @example
|
|
49463
|
+
*
|
|
49464
|
+
* _.toNumber(3.2);
|
|
49465
|
+
* // => 3.2
|
|
49466
|
+
*
|
|
49467
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
49468
|
+
* // => 5e-324
|
|
49469
|
+
*
|
|
49470
|
+
* _.toNumber(Infinity);
|
|
49471
|
+
* // => Infinity
|
|
49472
|
+
*
|
|
49473
|
+
* _.toNumber('3.2');
|
|
49474
|
+
* // => 3.2
|
|
49475
|
+
*/ function toNumber$1(value) {
|
|
49476
|
+
if (typeof value == 'number') {
|
|
49477
|
+
return value;
|
|
49478
|
+
}
|
|
49479
|
+
if (isSymbol$1(value)) {
|
|
49480
|
+
return NAN$1;
|
|
49481
|
+
}
|
|
49482
|
+
if (isObject$1(value)) {
|
|
49483
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
49484
|
+
value = isObject$1(other) ? other + '' : other;
|
|
49485
|
+
}
|
|
49486
|
+
if (typeof value != 'string') {
|
|
49487
|
+
return value === 0 ? value : +value;
|
|
49488
|
+
}
|
|
49489
|
+
value = value.replace(reTrim$1, '');
|
|
49490
|
+
var isBinary = reIsBinary$1.test(value);
|
|
49491
|
+
return isBinary || reIsOctal$1.test(value) ? freeParseInt$1(value.slice(2), isBinary ? 2 : 8) : reIsBadHex$1.test(value) ? NAN$1 : +value;
|
|
49492
|
+
}
|
|
49493
|
+
var lodash_isinteger = isInteger$1;
|
|
49494
|
+
|
|
49495
|
+
/**
|
|
49496
|
+
* lodash 3.0.3 (Custom Build) <https://lodash.com/>
|
|
49497
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
49498
|
+
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
|
49499
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
49500
|
+
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
49501
|
+
* Available under MIT license <https://lodash.com/license>
|
|
49502
|
+
*/
|
|
49503
|
+
|
|
49504
|
+
/** `Object#toString` result references. */ function _type_of$4(obj) {
|
|
49505
|
+
"@swc/helpers - typeof";
|
|
49506
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
49507
|
+
}
|
|
49508
|
+
var numberTag = '[object Number]';
|
|
49509
|
+
/** Used for built-in method references. */ var objectProto$3 = Object.prototype;
|
|
49510
|
+
/**
|
|
49511
|
+
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
|
49512
|
+
* of values.
|
|
49513
|
+
*/ var objectToString$3 = objectProto$3.toString;
|
|
49514
|
+
/**
|
|
49515
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
49516
|
+
* and has a `typeof` result of "object".
|
|
49517
|
+
*
|
|
49518
|
+
* @static
|
|
49519
|
+
* @memberOf _
|
|
49520
|
+
* @category Lang
|
|
49521
|
+
* @param {*} value The value to check.
|
|
49522
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
49523
|
+
* @example
|
|
49524
|
+
*
|
|
49525
|
+
* _.isObjectLike({});
|
|
49526
|
+
* // => true
|
|
49527
|
+
*
|
|
49528
|
+
* _.isObjectLike([1, 2, 3]);
|
|
49529
|
+
* // => true
|
|
49530
|
+
*
|
|
49531
|
+
* _.isObjectLike(_.noop);
|
|
49532
|
+
* // => false
|
|
49533
|
+
*
|
|
49534
|
+
* _.isObjectLike(null);
|
|
49535
|
+
* // => false
|
|
49536
|
+
*/ function isObjectLike$3(value) {
|
|
49537
|
+
return !!value && (typeof value === "undefined" ? "undefined" : _type_of$4(value)) == 'object';
|
|
49538
|
+
}
|
|
49539
|
+
/**
|
|
49540
|
+
* Checks if `value` is classified as a `Number` primitive or object.
|
|
49541
|
+
*
|
|
49542
|
+
* **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified
|
|
49543
|
+
* as numbers, use the `_.isFinite` method.
|
|
49544
|
+
*
|
|
49545
|
+
* @static
|
|
49546
|
+
* @memberOf _
|
|
49547
|
+
* @category Lang
|
|
49548
|
+
* @param {*} value The value to check.
|
|
49549
|
+
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
|
49550
|
+
* @example
|
|
49551
|
+
*
|
|
49552
|
+
* _.isNumber(3);
|
|
49553
|
+
* // => true
|
|
49554
|
+
*
|
|
49555
|
+
* _.isNumber(Number.MIN_VALUE);
|
|
49556
|
+
* // => true
|
|
49557
|
+
*
|
|
49558
|
+
* _.isNumber(Infinity);
|
|
49559
|
+
* // => true
|
|
49560
|
+
*
|
|
49561
|
+
* _.isNumber('3');
|
|
49562
|
+
* // => false
|
|
49563
|
+
*/ function isNumber$1(value) {
|
|
49564
|
+
return typeof value == 'number' || isObjectLike$3(value) && objectToString$3.call(value) == numberTag;
|
|
49565
|
+
}
|
|
49566
|
+
var lodash_isnumber = isNumber$1;
|
|
49567
|
+
|
|
49327
49568
|
/**
|
|
49328
49569
|
* lodash (Custom Build) <https://lodash.com/>
|
|
49329
49570
|
* Build: `lodash modularize exports="npm" -o ./`
|
|
@@ -49332,13 +49573,490 @@ var lodash_includes = includes$1;
|
|
|
49332
49573
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
49333
49574
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
49334
49575
|
*/
|
|
49335
|
-
|
|
49576
|
+
|
|
49577
|
+
/** `Object#toString` result references. */ function _instanceof$1(left, right) {
|
|
49578
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
49579
|
+
return !!right[Symbol.hasInstance](left);
|
|
49580
|
+
} else {
|
|
49581
|
+
return left instanceof right;
|
|
49582
|
+
}
|
|
49583
|
+
}
|
|
49584
|
+
function _type_of$3(obj) {
|
|
49585
|
+
"@swc/helpers - typeof";
|
|
49586
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
49587
|
+
}
|
|
49588
|
+
var objectTag = '[object Object]';
|
|
49589
|
+
/**
|
|
49590
|
+
* Checks if `value` is a host object in IE < 9.
|
|
49591
|
+
*
|
|
49592
|
+
* @private
|
|
49593
|
+
* @param {*} value The value to check.
|
|
49594
|
+
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
49595
|
+
*/ function isHostObject(value) {
|
|
49596
|
+
// Many host objects are `Object` objects that can coerce to strings
|
|
49597
|
+
// despite having improperly defined `toString` methods.
|
|
49598
|
+
var result = false;
|
|
49599
|
+
if (value != null && typeof value.toString != 'function') {
|
|
49600
|
+
try {
|
|
49601
|
+
result = !!(value + '');
|
|
49602
|
+
} catch (e) {}
|
|
49603
|
+
}
|
|
49604
|
+
return result;
|
|
49605
|
+
}
|
|
49606
|
+
/**
|
|
49607
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
49608
|
+
*
|
|
49609
|
+
* @private
|
|
49610
|
+
* @param {Function} func The function to wrap.
|
|
49611
|
+
* @param {Function} transform The argument transform.
|
|
49612
|
+
* @returns {Function} Returns the new function.
|
|
49613
|
+
*/ function overArg(func, transform) {
|
|
49614
|
+
return function(arg) {
|
|
49615
|
+
return func(transform(arg));
|
|
49616
|
+
};
|
|
49617
|
+
}
|
|
49618
|
+
/** Used for built-in method references. */ var funcProto = Function.prototype, objectProto$2 = Object.prototype;
|
|
49336
49619
|
/** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString;
|
|
49337
|
-
/** Used to
|
|
49620
|
+
/** Used to check objects for own properties. */ var hasOwnProperty = objectProto$2.hasOwnProperty;
|
|
49621
|
+
/** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object);
|
|
49622
|
+
/**
|
|
49623
|
+
* Used to resolve the
|
|
49624
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
49625
|
+
* of values.
|
|
49626
|
+
*/ var objectToString$2 = objectProto$2.toString;
|
|
49627
|
+
/** Built-in value references. */ var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
49628
|
+
/**
|
|
49629
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
49630
|
+
* and has a `typeof` result of "object".
|
|
49631
|
+
*
|
|
49632
|
+
* @static
|
|
49633
|
+
* @memberOf _
|
|
49634
|
+
* @since 4.0.0
|
|
49635
|
+
* @category Lang
|
|
49636
|
+
* @param {*} value The value to check.
|
|
49637
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
49638
|
+
* @example
|
|
49639
|
+
*
|
|
49640
|
+
* _.isObjectLike({});
|
|
49641
|
+
* // => true
|
|
49642
|
+
*
|
|
49643
|
+
* _.isObjectLike([1, 2, 3]);
|
|
49644
|
+
* // => true
|
|
49645
|
+
*
|
|
49646
|
+
* _.isObjectLike(_.noop);
|
|
49647
|
+
* // => false
|
|
49648
|
+
*
|
|
49649
|
+
* _.isObjectLike(null);
|
|
49650
|
+
* // => false
|
|
49651
|
+
*/ function isObjectLike$2(value) {
|
|
49652
|
+
return !!value && (typeof value === "undefined" ? "undefined" : _type_of$3(value)) == 'object';
|
|
49653
|
+
}
|
|
49654
|
+
/**
|
|
49655
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
49656
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
49657
|
+
*
|
|
49658
|
+
* @static
|
|
49659
|
+
* @memberOf _
|
|
49660
|
+
* @since 0.8.0
|
|
49661
|
+
* @category Lang
|
|
49662
|
+
* @param {*} value The value to check.
|
|
49663
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
49664
|
+
* @example
|
|
49665
|
+
*
|
|
49666
|
+
* function Foo() {
|
|
49667
|
+
* this.a = 1;
|
|
49668
|
+
* }
|
|
49669
|
+
*
|
|
49670
|
+
* _.isPlainObject(new Foo);
|
|
49671
|
+
* // => false
|
|
49672
|
+
*
|
|
49673
|
+
* _.isPlainObject([1, 2, 3]);
|
|
49674
|
+
* // => false
|
|
49675
|
+
*
|
|
49676
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
49677
|
+
* // => true
|
|
49678
|
+
*
|
|
49679
|
+
* _.isPlainObject(Object.create(null));
|
|
49680
|
+
* // => true
|
|
49681
|
+
*/ function isPlainObject$1(value) {
|
|
49682
|
+
if (!isObjectLike$2(value) || objectToString$2.call(value) != objectTag || isHostObject(value)) {
|
|
49683
|
+
return false;
|
|
49684
|
+
}
|
|
49685
|
+
var proto = getPrototype(value);
|
|
49686
|
+
if (proto === null) {
|
|
49687
|
+
return true;
|
|
49688
|
+
}
|
|
49689
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
49690
|
+
return typeof Ctor == 'function' && _instanceof$1(Ctor, Ctor) && funcToString.call(Ctor) == objectCtorString;
|
|
49691
|
+
}
|
|
49692
|
+
var lodash_isplainobject = isPlainObject$1;
|
|
49693
|
+
|
|
49694
|
+
/**
|
|
49695
|
+
* lodash 4.0.1 (Custom Build) <https://lodash.com/>
|
|
49696
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
49697
|
+
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
|
49698
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
49699
|
+
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
49700
|
+
* Available under MIT license <https://lodash.com/license>
|
|
49701
|
+
*/
|
|
49702
|
+
|
|
49703
|
+
/** `Object#toString` result references. */ function _type_of$2(obj) {
|
|
49704
|
+
"@swc/helpers - typeof";
|
|
49705
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
49706
|
+
}
|
|
49707
|
+
var stringTag = '[object String]';
|
|
49708
|
+
/** Used for built-in method references. */ var objectProto$1 = Object.prototype;
|
|
49709
|
+
/**
|
|
49710
|
+
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
|
49711
|
+
* of values.
|
|
49712
|
+
*/ var objectToString$1 = objectProto$1.toString;
|
|
49713
|
+
/**
|
|
49714
|
+
* Checks if `value` is classified as an `Array` object.
|
|
49715
|
+
*
|
|
49716
|
+
* @static
|
|
49717
|
+
* @memberOf _
|
|
49718
|
+
* @type Function
|
|
49719
|
+
* @category Lang
|
|
49720
|
+
* @param {*} value The value to check.
|
|
49721
|
+
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
|
49722
|
+
* @example
|
|
49723
|
+
*
|
|
49724
|
+
* _.isArray([1, 2, 3]);
|
|
49725
|
+
* // => true
|
|
49726
|
+
*
|
|
49727
|
+
* _.isArray(document.body.children);
|
|
49728
|
+
* // => false
|
|
49729
|
+
*
|
|
49730
|
+
* _.isArray('abc');
|
|
49731
|
+
* // => false
|
|
49732
|
+
*
|
|
49733
|
+
* _.isArray(_.noop);
|
|
49734
|
+
* // => false
|
|
49735
|
+
*/ var isArray = Array.isArray;
|
|
49736
|
+
/**
|
|
49737
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
49738
|
+
* and has a `typeof` result of "object".
|
|
49739
|
+
*
|
|
49740
|
+
* @static
|
|
49741
|
+
* @memberOf _
|
|
49742
|
+
* @category Lang
|
|
49743
|
+
* @param {*} value The value to check.
|
|
49744
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
49745
|
+
* @example
|
|
49746
|
+
*
|
|
49747
|
+
* _.isObjectLike({});
|
|
49748
|
+
* // => true
|
|
49749
|
+
*
|
|
49750
|
+
* _.isObjectLike([1, 2, 3]);
|
|
49751
|
+
* // => true
|
|
49752
|
+
*
|
|
49753
|
+
* _.isObjectLike(_.noop);
|
|
49754
|
+
* // => false
|
|
49755
|
+
*
|
|
49756
|
+
* _.isObjectLike(null);
|
|
49757
|
+
* // => false
|
|
49758
|
+
*/ function isObjectLike$1(value) {
|
|
49759
|
+
return !!value && (typeof value === "undefined" ? "undefined" : _type_of$2(value)) == 'object';
|
|
49760
|
+
}
|
|
49761
|
+
/**
|
|
49762
|
+
* Checks if `value` is classified as a `String` primitive or object.
|
|
49763
|
+
*
|
|
49764
|
+
* @static
|
|
49765
|
+
* @memberOf _
|
|
49766
|
+
* @category Lang
|
|
49767
|
+
* @param {*} value The value to check.
|
|
49768
|
+
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
|
49769
|
+
* @example
|
|
49770
|
+
*
|
|
49771
|
+
* _.isString('abc');
|
|
49772
|
+
* // => true
|
|
49773
|
+
*
|
|
49774
|
+
* _.isString(1);
|
|
49775
|
+
* // => false
|
|
49776
|
+
*/ function isString$1(value) {
|
|
49777
|
+
return typeof value == 'string' || !isArray(value) && isObjectLike$1(value) && objectToString$1.call(value) == stringTag;
|
|
49778
|
+
}
|
|
49779
|
+
var lodash_isstring = isString$1;
|
|
49780
|
+
|
|
49781
|
+
/**
|
|
49782
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
49783
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
49784
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
49785
|
+
* Released under MIT license <https://lodash.com/license>
|
|
49786
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
49787
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
49788
|
+
*/
|
|
49789
|
+
|
|
49790
|
+
/** Used as the `TypeError` message for "Functions" methods. */ function _type_of$1(obj) {
|
|
49791
|
+
"@swc/helpers - typeof";
|
|
49792
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
49793
|
+
}
|
|
49794
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
49795
|
+
/** Used as references for various `Number` constants. */ var INFINITY = 1 / 0, MAX_INTEGER = 1.7976931348623157e+308, NAN = 0 / 0;
|
|
49796
|
+
/** `Object#toString` result references. */ var symbolTag = '[object Symbol]';
|
|
49797
|
+
/** Used to match leading and trailing whitespace. */ var reTrim = /^\s+|\s+$/g;
|
|
49798
|
+
/** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
49799
|
+
/** Used to detect binary string values. */ var reIsBinary = /^0b[01]+$/i;
|
|
49800
|
+
/** Used to detect octal string values. */ var reIsOctal = /^0o[0-7]+$/i;
|
|
49801
|
+
/** Built-in method references without a dependency on `root`. */ var freeParseInt = parseInt;
|
|
49802
|
+
/** Used for built-in method references. */ var objectProto = Object.prototype;
|
|
49803
|
+
/**
|
|
49804
|
+
* Used to resolve the
|
|
49805
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
49806
|
+
* of values.
|
|
49807
|
+
*/ var objectToString = objectProto.toString;
|
|
49808
|
+
/**
|
|
49809
|
+
* Creates a function that invokes `func`, with the `this` binding and arguments
|
|
49810
|
+
* of the created function, while it's called less than `n` times. Subsequent
|
|
49811
|
+
* calls to the created function return the result of the last `func` invocation.
|
|
49812
|
+
*
|
|
49813
|
+
* @static
|
|
49814
|
+
* @memberOf _
|
|
49815
|
+
* @since 3.0.0
|
|
49816
|
+
* @category Function
|
|
49817
|
+
* @param {number} n The number of calls at which `func` is no longer invoked.
|
|
49818
|
+
* @param {Function} func The function to restrict.
|
|
49819
|
+
* @returns {Function} Returns the new restricted function.
|
|
49820
|
+
* @example
|
|
49821
|
+
*
|
|
49822
|
+
* jQuery(element).on('click', _.before(5, addContactToList));
|
|
49823
|
+
* // => Allows adding up to 4 contacts to the list.
|
|
49824
|
+
*/ function before(n, func) {
|
|
49825
|
+
var result;
|
|
49826
|
+
if (typeof func != 'function') {
|
|
49827
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
49828
|
+
}
|
|
49829
|
+
n = toInteger(n);
|
|
49830
|
+
return function() {
|
|
49831
|
+
if (--n > 0) {
|
|
49832
|
+
result = func.apply(this, arguments);
|
|
49833
|
+
}
|
|
49834
|
+
if (n <= 1) {
|
|
49835
|
+
func = undefined;
|
|
49836
|
+
}
|
|
49837
|
+
return result;
|
|
49838
|
+
};
|
|
49839
|
+
}
|
|
49840
|
+
/**
|
|
49841
|
+
* Creates a function that is restricted to invoking `func` once. Repeat calls
|
|
49842
|
+
* to the function return the value of the first invocation. The `func` is
|
|
49843
|
+
* invoked with the `this` binding and arguments of the created function.
|
|
49844
|
+
*
|
|
49845
|
+
* @static
|
|
49846
|
+
* @memberOf _
|
|
49847
|
+
* @since 0.1.0
|
|
49848
|
+
* @category Function
|
|
49849
|
+
* @param {Function} func The function to restrict.
|
|
49850
|
+
* @returns {Function} Returns the new restricted function.
|
|
49851
|
+
* @example
|
|
49852
|
+
*
|
|
49853
|
+
* var initialize = _.once(createApplication);
|
|
49854
|
+
* initialize();
|
|
49855
|
+
* initialize();
|
|
49856
|
+
* // => `createApplication` is invoked once
|
|
49857
|
+
*/ function once$1(func) {
|
|
49858
|
+
return before(2, func);
|
|
49859
|
+
}
|
|
49860
|
+
/**
|
|
49861
|
+
* Checks if `value` is the
|
|
49862
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
49863
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
49864
|
+
*
|
|
49865
|
+
* @static
|
|
49866
|
+
* @memberOf _
|
|
49867
|
+
* @since 0.1.0
|
|
49868
|
+
* @category Lang
|
|
49869
|
+
* @param {*} value The value to check.
|
|
49870
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
49871
|
+
* @example
|
|
49872
|
+
*
|
|
49873
|
+
* _.isObject({});
|
|
49874
|
+
* // => true
|
|
49875
|
+
*
|
|
49876
|
+
* _.isObject([1, 2, 3]);
|
|
49877
|
+
* // => true
|
|
49878
|
+
*
|
|
49879
|
+
* _.isObject(_.noop);
|
|
49880
|
+
* // => true
|
|
49881
|
+
*
|
|
49882
|
+
* _.isObject(null);
|
|
49883
|
+
* // => false
|
|
49884
|
+
*/ function isObject(value) {
|
|
49885
|
+
var type = typeof value === "undefined" ? "undefined" : _type_of$1(value);
|
|
49886
|
+
return !!value && (type == 'object' || type == 'function');
|
|
49887
|
+
}
|
|
49888
|
+
/**
|
|
49889
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
49890
|
+
* and has a `typeof` result of "object".
|
|
49891
|
+
*
|
|
49892
|
+
* @static
|
|
49893
|
+
* @memberOf _
|
|
49894
|
+
* @since 4.0.0
|
|
49895
|
+
* @category Lang
|
|
49896
|
+
* @param {*} value The value to check.
|
|
49897
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
49898
|
+
* @example
|
|
49899
|
+
*
|
|
49900
|
+
* _.isObjectLike({});
|
|
49901
|
+
* // => true
|
|
49902
|
+
*
|
|
49903
|
+
* _.isObjectLike([1, 2, 3]);
|
|
49904
|
+
* // => true
|
|
49905
|
+
*
|
|
49906
|
+
* _.isObjectLike(_.noop);
|
|
49907
|
+
* // => false
|
|
49908
|
+
*
|
|
49909
|
+
* _.isObjectLike(null);
|
|
49910
|
+
* // => false
|
|
49911
|
+
*/ function isObjectLike(value) {
|
|
49912
|
+
return !!value && (typeof value === "undefined" ? "undefined" : _type_of$1(value)) == 'object';
|
|
49913
|
+
}
|
|
49914
|
+
/**
|
|
49915
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
49916
|
+
*
|
|
49917
|
+
* @static
|
|
49918
|
+
* @memberOf _
|
|
49919
|
+
* @since 4.0.0
|
|
49920
|
+
* @category Lang
|
|
49921
|
+
* @param {*} value The value to check.
|
|
49922
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
49923
|
+
* @example
|
|
49924
|
+
*
|
|
49925
|
+
* _.isSymbol(Symbol.iterator);
|
|
49926
|
+
* // => true
|
|
49927
|
+
*
|
|
49928
|
+
* _.isSymbol('abc');
|
|
49929
|
+
* // => false
|
|
49930
|
+
*/ function isSymbol(value) {
|
|
49931
|
+
return (typeof value === "undefined" ? "undefined" : _type_of$1(value)) == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
|
49932
|
+
}
|
|
49933
|
+
/**
|
|
49934
|
+
* Converts `value` to a finite number.
|
|
49935
|
+
*
|
|
49936
|
+
* @static
|
|
49937
|
+
* @memberOf _
|
|
49938
|
+
* @since 4.12.0
|
|
49939
|
+
* @category Lang
|
|
49940
|
+
* @param {*} value The value to convert.
|
|
49941
|
+
* @returns {number} Returns the converted number.
|
|
49942
|
+
* @example
|
|
49943
|
+
*
|
|
49944
|
+
* _.toFinite(3.2);
|
|
49945
|
+
* // => 3.2
|
|
49946
|
+
*
|
|
49947
|
+
* _.toFinite(Number.MIN_VALUE);
|
|
49948
|
+
* // => 5e-324
|
|
49949
|
+
*
|
|
49950
|
+
* _.toFinite(Infinity);
|
|
49951
|
+
* // => 1.7976931348623157e+308
|
|
49952
|
+
*
|
|
49953
|
+
* _.toFinite('3.2');
|
|
49954
|
+
* // => 3.2
|
|
49955
|
+
*/ function toFinite(value) {
|
|
49956
|
+
if (!value) {
|
|
49957
|
+
return value === 0 ? value : 0;
|
|
49958
|
+
}
|
|
49959
|
+
value = toNumber(value);
|
|
49960
|
+
if (value === INFINITY || value === -INFINITY) {
|
|
49961
|
+
var sign = value < 0 ? -1 : 1;
|
|
49962
|
+
return sign * MAX_INTEGER;
|
|
49963
|
+
}
|
|
49964
|
+
return value === value ? value : 0;
|
|
49965
|
+
}
|
|
49966
|
+
/**
|
|
49967
|
+
* Converts `value` to an integer.
|
|
49968
|
+
*
|
|
49969
|
+
* **Note:** This method is loosely based on
|
|
49970
|
+
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
|
|
49971
|
+
*
|
|
49972
|
+
* @static
|
|
49973
|
+
* @memberOf _
|
|
49974
|
+
* @since 4.0.0
|
|
49975
|
+
* @category Lang
|
|
49976
|
+
* @param {*} value The value to convert.
|
|
49977
|
+
* @returns {number} Returns the converted integer.
|
|
49978
|
+
* @example
|
|
49979
|
+
*
|
|
49980
|
+
* _.toInteger(3.2);
|
|
49981
|
+
* // => 3
|
|
49982
|
+
*
|
|
49983
|
+
* _.toInteger(Number.MIN_VALUE);
|
|
49984
|
+
* // => 0
|
|
49985
|
+
*
|
|
49986
|
+
* _.toInteger(Infinity);
|
|
49987
|
+
* // => 1.7976931348623157e+308
|
|
49988
|
+
*
|
|
49989
|
+
* _.toInteger('3.2');
|
|
49990
|
+
* // => 3
|
|
49991
|
+
*/ function toInteger(value) {
|
|
49992
|
+
var result = toFinite(value), remainder = result % 1;
|
|
49993
|
+
return result === result ? remainder ? result - remainder : result : 0;
|
|
49994
|
+
}
|
|
49995
|
+
/**
|
|
49996
|
+
* Converts `value` to a number.
|
|
49997
|
+
*
|
|
49998
|
+
* @static
|
|
49999
|
+
* @memberOf _
|
|
50000
|
+
* @since 4.0.0
|
|
50001
|
+
* @category Lang
|
|
50002
|
+
* @param {*} value The value to process.
|
|
50003
|
+
* @returns {number} Returns the number.
|
|
50004
|
+
* @example
|
|
50005
|
+
*
|
|
50006
|
+
* _.toNumber(3.2);
|
|
50007
|
+
* // => 3.2
|
|
50008
|
+
*
|
|
50009
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
50010
|
+
* // => 5e-324
|
|
50011
|
+
*
|
|
50012
|
+
* _.toNumber(Infinity);
|
|
50013
|
+
* // => Infinity
|
|
50014
|
+
*
|
|
50015
|
+
* _.toNumber('3.2');
|
|
50016
|
+
* // => 3.2
|
|
50017
|
+
*/ function toNumber(value) {
|
|
50018
|
+
if (typeof value == 'number') {
|
|
50019
|
+
return value;
|
|
50020
|
+
}
|
|
50021
|
+
if (isSymbol(value)) {
|
|
50022
|
+
return NAN;
|
|
50023
|
+
}
|
|
50024
|
+
if (isObject(value)) {
|
|
50025
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
50026
|
+
value = isObject(other) ? other + '' : other;
|
|
50027
|
+
}
|
|
50028
|
+
if (typeof value != 'string') {
|
|
50029
|
+
return value === 0 ? value : +value;
|
|
50030
|
+
}
|
|
50031
|
+
value = value.replace(reTrim, '');
|
|
50032
|
+
var isBinary = reIsBinary.test(value);
|
|
50033
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
50034
|
+
}
|
|
50035
|
+
var lodash_once = once$1;
|
|
49338
50036
|
|
|
50037
|
+
function _instanceof(left, right) {
|
|
50038
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
50039
|
+
return !!right[Symbol.hasInstance](left);
|
|
50040
|
+
} else {
|
|
50041
|
+
return left instanceof right;
|
|
50042
|
+
}
|
|
50043
|
+
}
|
|
50044
|
+
function _type_of(obj) {
|
|
50045
|
+
"@swc/helpers - typeof";
|
|
50046
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
50047
|
+
}
|
|
50048
|
+
var timespan = timespan$2;
|
|
49339
50049
|
var PS_SUPPORTED = psSupported;
|
|
50050
|
+
var validateAsymmetricKey = validateAsymmetricKey$2;
|
|
50051
|
+
var jws = jws$3;
|
|
49340
50052
|
var includes = lodash_includes;
|
|
49341
|
-
var
|
|
50053
|
+
var isBoolean = lodash_isboolean;
|
|
50054
|
+
var isInteger = lodash_isinteger;
|
|
50055
|
+
var isNumber = lodash_isnumber;
|
|
50056
|
+
var isPlainObject = lodash_isplainobject;
|
|
50057
|
+
var isString = lodash_isstring;
|
|
50058
|
+
var once = lodash_once;
|
|
50059
|
+
var _require = require$$1, KeyObject = _require.KeyObject, createSecretKey = _require.createSecretKey, createPrivateKey = _require.createPrivateKey;
|
|
49342
50060
|
var SUPPORTED_ALGS = [
|
|
49343
50061
|
'RS256',
|
|
49344
50062
|
'RS384',
|
|
@@ -49354,12 +50072,276 @@ var SUPPORTED_ALGS = [
|
|
|
49354
50072
|
if (PS_SUPPORTED) {
|
|
49355
50073
|
SUPPORTED_ALGS.splice(3, 0, 'PS256', 'PS384', 'PS512');
|
|
49356
50074
|
}
|
|
49357
|
-
|
|
50075
|
+
var sign_options_schema = {
|
|
50076
|
+
expiresIn: {
|
|
50077
|
+
isValid: function isValid(value) {
|
|
50078
|
+
return isInteger(value) || isString(value) && value;
|
|
50079
|
+
},
|
|
50080
|
+
message: '"expiresIn" should be a number of seconds or string representing a timespan'
|
|
50081
|
+
},
|
|
50082
|
+
notBefore: {
|
|
50083
|
+
isValid: function isValid(value) {
|
|
50084
|
+
return isInteger(value) || isString(value) && value;
|
|
50085
|
+
},
|
|
50086
|
+
message: '"notBefore" should be a number of seconds or string representing a timespan'
|
|
50087
|
+
},
|
|
50088
|
+
audience: {
|
|
50089
|
+
isValid: function isValid(value) {
|
|
50090
|
+
return isString(value) || Array.isArray(value);
|
|
50091
|
+
},
|
|
50092
|
+
message: '"audience" must be a string or array'
|
|
50093
|
+
},
|
|
49358
50094
|
algorithm: {
|
|
49359
|
-
isValid: includes.bind(null, SUPPORTED_ALGS)
|
|
50095
|
+
isValid: includes.bind(null, SUPPORTED_ALGS),
|
|
50096
|
+
message: '"algorithm" must be a valid string enum value'
|
|
50097
|
+
},
|
|
50098
|
+
header: {
|
|
50099
|
+
isValid: isPlainObject,
|
|
50100
|
+
message: '"header" must be an object'
|
|
50101
|
+
},
|
|
50102
|
+
encoding: {
|
|
50103
|
+
isValid: isString,
|
|
50104
|
+
message: '"encoding" must be a string'
|
|
50105
|
+
},
|
|
50106
|
+
issuer: {
|
|
50107
|
+
isValid: isString,
|
|
50108
|
+
message: '"issuer" must be a string'
|
|
50109
|
+
},
|
|
50110
|
+
subject: {
|
|
50111
|
+
isValid: isString,
|
|
50112
|
+
message: '"subject" must be a string'
|
|
50113
|
+
},
|
|
50114
|
+
jwtid: {
|
|
50115
|
+
isValid: isString,
|
|
50116
|
+
message: '"jwtid" must be a string'
|
|
50117
|
+
},
|
|
50118
|
+
noTimestamp: {
|
|
50119
|
+
isValid: isBoolean,
|
|
50120
|
+
message: '"noTimestamp" must be a boolean'
|
|
50121
|
+
},
|
|
50122
|
+
keyid: {
|
|
50123
|
+
isValid: isString,
|
|
50124
|
+
message: '"keyid" must be a string'
|
|
50125
|
+
},
|
|
50126
|
+
mutatePayload: {
|
|
50127
|
+
isValid: isBoolean,
|
|
50128
|
+
message: '"mutatePayload" must be a boolean'
|
|
50129
|
+
},
|
|
50130
|
+
allowInsecureKeySizes: {
|
|
50131
|
+
isValid: isBoolean,
|
|
50132
|
+
message: '"allowInsecureKeySizes" must be a boolean'
|
|
50133
|
+
},
|
|
50134
|
+
allowInvalidAsymmetricKeyTypes: {
|
|
50135
|
+
isValid: isBoolean,
|
|
50136
|
+
message: '"allowInvalidAsymmetricKeyTypes" must be a boolean'
|
|
50137
|
+
}
|
|
50138
|
+
};
|
|
50139
|
+
var registered_claims_schema = {
|
|
50140
|
+
iat: {
|
|
50141
|
+
isValid: isNumber,
|
|
50142
|
+
message: '"iat" should be a number of seconds'
|
|
50143
|
+
},
|
|
50144
|
+
exp: {
|
|
50145
|
+
isValid: isNumber,
|
|
50146
|
+
message: '"exp" should be a number of seconds'
|
|
50147
|
+
},
|
|
50148
|
+
nbf: {
|
|
50149
|
+
isValid: isNumber,
|
|
50150
|
+
message: '"nbf" should be a number of seconds'
|
|
50151
|
+
}
|
|
50152
|
+
};
|
|
50153
|
+
function validate(schema, allowUnknown, object, parameterName) {
|
|
50154
|
+
if (!isPlainObject(object)) {
|
|
50155
|
+
throw new Error('Expected "' + parameterName + '" to be a plain object.');
|
|
50156
|
+
}
|
|
50157
|
+
Object.keys(object).forEach(function(key) {
|
|
50158
|
+
var validator = schema[key];
|
|
50159
|
+
if (!validator) {
|
|
50160
|
+
if (!allowUnknown) {
|
|
50161
|
+
throw new Error('"' + key + '" is not allowed in "' + parameterName + '"');
|
|
50162
|
+
}
|
|
50163
|
+
return;
|
|
50164
|
+
}
|
|
50165
|
+
if (!validator.isValid(object[key])) {
|
|
50166
|
+
throw new Error(validator.message);
|
|
50167
|
+
}
|
|
50168
|
+
});
|
|
50169
|
+
}
|
|
50170
|
+
function validateOptions(options) {
|
|
50171
|
+
return validate(sign_options_schema, false, options, 'options');
|
|
50172
|
+
}
|
|
50173
|
+
function validatePayload(payload) {
|
|
50174
|
+
return validate(registered_claims_schema, true, payload, 'payload');
|
|
50175
|
+
}
|
|
50176
|
+
var options_to_payload = {
|
|
50177
|
+
'audience': 'aud',
|
|
50178
|
+
'issuer': 'iss',
|
|
50179
|
+
'subject': 'sub',
|
|
50180
|
+
'jwtid': 'jti'
|
|
50181
|
+
};
|
|
50182
|
+
var options_for_objects = [
|
|
50183
|
+
'expiresIn',
|
|
50184
|
+
'notBefore',
|
|
50185
|
+
'noTimestamp',
|
|
50186
|
+
'audience',
|
|
50187
|
+
'issuer',
|
|
50188
|
+
'subject',
|
|
50189
|
+
'jwtid'
|
|
50190
|
+
];
|
|
50191
|
+
var sign = function(payload, secretOrPrivateKey, options, callback) {
|
|
50192
|
+
if (typeof options === 'function') {
|
|
50193
|
+
callback = options;
|
|
50194
|
+
options = {};
|
|
50195
|
+
} else {
|
|
50196
|
+
options = options || {};
|
|
50197
|
+
}
|
|
50198
|
+
var isObjectPayload = (typeof payload === "undefined" ? "undefined" : _type_of(payload)) === 'object' && !Buffer.isBuffer(payload);
|
|
50199
|
+
var header = Object.assign({
|
|
50200
|
+
alg: options.algorithm || 'HS256',
|
|
50201
|
+
typ: isObjectPayload ? 'JWT' : undefined,
|
|
50202
|
+
kid: options.keyid
|
|
50203
|
+
}, options.header);
|
|
50204
|
+
function failure(err) {
|
|
50205
|
+
if (callback) {
|
|
50206
|
+
return callback(err);
|
|
50207
|
+
}
|
|
50208
|
+
throw err;
|
|
50209
|
+
}
|
|
50210
|
+
if (!secretOrPrivateKey && options.algorithm !== 'none') {
|
|
50211
|
+
return failure(new Error('secretOrPrivateKey must have a value'));
|
|
50212
|
+
}
|
|
50213
|
+
if (secretOrPrivateKey != null && !_instanceof(secretOrPrivateKey, KeyObject)) {
|
|
50214
|
+
try {
|
|
50215
|
+
secretOrPrivateKey = createPrivateKey(secretOrPrivateKey);
|
|
50216
|
+
} catch (_) {
|
|
50217
|
+
try {
|
|
50218
|
+
secretOrPrivateKey = createSecretKey(typeof secretOrPrivateKey === 'string' ? Buffer.from(secretOrPrivateKey) : secretOrPrivateKey);
|
|
50219
|
+
} catch (_) {
|
|
50220
|
+
return failure(new Error('secretOrPrivateKey is not valid key material'));
|
|
50221
|
+
}
|
|
50222
|
+
}
|
|
50223
|
+
}
|
|
50224
|
+
if (header.alg.startsWith('HS') && secretOrPrivateKey.type !== 'secret') {
|
|
50225
|
+
return failure(new Error("secretOrPrivateKey must be a symmetric key when using ".concat(header.alg)));
|
|
50226
|
+
} else if (/^(?:RS|PS|ES)/.test(header.alg)) {
|
|
50227
|
+
if (secretOrPrivateKey.type !== 'private') {
|
|
50228
|
+
return failure(new Error("secretOrPrivateKey must be an asymmetric key when using ".concat(header.alg)));
|
|
50229
|
+
}
|
|
50230
|
+
if (!options.allowInsecureKeySizes && !header.alg.startsWith('ES') && secretOrPrivateKey.asymmetricKeyDetails !== undefined && //KeyObject.asymmetricKeyDetails is supported in Node 15+
|
|
50231
|
+
secretOrPrivateKey.asymmetricKeyDetails.modulusLength < 2048) {
|
|
50232
|
+
return failure(new Error("secretOrPrivateKey has a minimum key size of 2048 bits for ".concat(header.alg)));
|
|
50233
|
+
}
|
|
50234
|
+
}
|
|
50235
|
+
if (typeof payload === 'undefined') {
|
|
50236
|
+
return failure(new Error('payload is required'));
|
|
50237
|
+
} else if (isObjectPayload) {
|
|
50238
|
+
try {
|
|
50239
|
+
validatePayload(payload);
|
|
50240
|
+
} catch (error) {
|
|
50241
|
+
return failure(error);
|
|
50242
|
+
}
|
|
50243
|
+
if (!options.mutatePayload) {
|
|
50244
|
+
payload = Object.assign({}, payload);
|
|
50245
|
+
}
|
|
50246
|
+
} else {
|
|
50247
|
+
var invalid_options = options_for_objects.filter(function(opt) {
|
|
50248
|
+
return typeof options[opt] !== 'undefined';
|
|
50249
|
+
});
|
|
50250
|
+
if (invalid_options.length > 0) {
|
|
50251
|
+
return failure(new Error('invalid ' + invalid_options.join(',') + ' option for ' + (typeof payload === "undefined" ? "undefined" : _type_of(payload)) + ' payload'));
|
|
50252
|
+
}
|
|
50253
|
+
}
|
|
50254
|
+
if (typeof payload.exp !== 'undefined' && typeof options.expiresIn !== 'undefined') {
|
|
50255
|
+
return failure(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));
|
|
50256
|
+
}
|
|
50257
|
+
if (typeof payload.nbf !== 'undefined' && typeof options.notBefore !== 'undefined') {
|
|
50258
|
+
return failure(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));
|
|
50259
|
+
}
|
|
50260
|
+
try {
|
|
50261
|
+
validateOptions(options);
|
|
50262
|
+
} catch (error) {
|
|
50263
|
+
return failure(error);
|
|
50264
|
+
}
|
|
50265
|
+
if (!options.allowInvalidAsymmetricKeyTypes) {
|
|
50266
|
+
try {
|
|
50267
|
+
validateAsymmetricKey(header.alg, secretOrPrivateKey);
|
|
50268
|
+
} catch (error) {
|
|
50269
|
+
return failure(error);
|
|
50270
|
+
}
|
|
50271
|
+
}
|
|
50272
|
+
var timestamp = payload.iat || Math.floor(Date.now() / 1000);
|
|
50273
|
+
if (options.noTimestamp) {
|
|
50274
|
+
delete payload.iat;
|
|
50275
|
+
} else if (isObjectPayload) {
|
|
50276
|
+
payload.iat = timestamp;
|
|
50277
|
+
}
|
|
50278
|
+
if (typeof options.notBefore !== 'undefined') {
|
|
50279
|
+
try {
|
|
50280
|
+
payload.nbf = timespan(options.notBefore, timestamp);
|
|
50281
|
+
} catch (err) {
|
|
50282
|
+
return failure(err);
|
|
50283
|
+
}
|
|
50284
|
+
if (typeof payload.nbf === 'undefined') {
|
|
50285
|
+
return failure(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));
|
|
50286
|
+
}
|
|
50287
|
+
}
|
|
50288
|
+
if (typeof options.expiresIn !== 'undefined' && (typeof payload === "undefined" ? "undefined" : _type_of(payload)) === 'object') {
|
|
50289
|
+
try {
|
|
50290
|
+
payload.exp = timespan(options.expiresIn, timestamp);
|
|
50291
|
+
} catch (err) {
|
|
50292
|
+
return failure(err);
|
|
50293
|
+
}
|
|
50294
|
+
if (typeof payload.exp === 'undefined') {
|
|
50295
|
+
return failure(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));
|
|
50296
|
+
}
|
|
50297
|
+
}
|
|
50298
|
+
Object.keys(options_to_payload).forEach(function(key) {
|
|
50299
|
+
var claim = options_to_payload[key];
|
|
50300
|
+
if (typeof options[key] !== 'undefined') {
|
|
50301
|
+
if (typeof payload[claim] !== 'undefined') {
|
|
50302
|
+
return failure(new Error('Bad "options.' + key + '" option. The payload already has an "' + claim + '" property.'));
|
|
50303
|
+
}
|
|
50304
|
+
payload[claim] = options[key];
|
|
50305
|
+
}
|
|
50306
|
+
});
|
|
50307
|
+
var encoding = options.encoding || 'utf8';
|
|
50308
|
+
if (typeof callback === 'function') {
|
|
50309
|
+
callback = callback && once(callback);
|
|
50310
|
+
jws.createSign({
|
|
50311
|
+
header: header,
|
|
50312
|
+
privateKey: secretOrPrivateKey,
|
|
50313
|
+
payload: payload,
|
|
50314
|
+
encoding: encoding
|
|
50315
|
+
}).once('error', callback).once('done', function(signature) {
|
|
50316
|
+
// TODO: Remove in favor of the modulus length check before signing once node 15+ is the minimum supported version
|
|
50317
|
+
if (!options.allowInsecureKeySizes && /^(?:RS|PS)/.test(header.alg) && signature.length < 256) {
|
|
50318
|
+
return callback(new Error("secretOrPrivateKey has a minimum key size of 2048 bits for ".concat(header.alg)));
|
|
50319
|
+
}
|
|
50320
|
+
callback(null, signature);
|
|
50321
|
+
});
|
|
50322
|
+
} else {
|
|
50323
|
+
var signature = jws.sign({
|
|
50324
|
+
header: header,
|
|
50325
|
+
payload: payload,
|
|
50326
|
+
secret: secretOrPrivateKey,
|
|
50327
|
+
encoding: encoding
|
|
50328
|
+
});
|
|
50329
|
+
// TODO: Remove in favor of the modulus length check before signing once node 15+ is the minimum supported version
|
|
50330
|
+
if (!options.allowInsecureKeySizes && /^(?:RS|PS)/.test(header.alg) && signature.length < 256) {
|
|
50331
|
+
throw new Error("secretOrPrivateKey has a minimum key size of 2048 bits for ".concat(header.alg));
|
|
50332
|
+
}
|
|
50333
|
+
return signature;
|
|
50334
|
+
}
|
|
50335
|
+
};
|
|
49360
50336
|
|
|
49361
50337
|
var jsonwebtoken = {
|
|
49362
|
-
|
|
50338
|
+
decode: decode$1,
|
|
50339
|
+
verify: verify,
|
|
50340
|
+
sign: sign,
|
|
50341
|
+
JsonWebTokenError: JsonWebTokenError_1,
|
|
50342
|
+
NotBeforeError: NotBeforeError_1,
|
|
50343
|
+
TokenExpiredError: TokenExpiredError_1
|
|
50344
|
+
};
|
|
49363
50345
|
|
|
49364
50346
|
var mimeTypes = {};
|
|
49365
50347
|
|