@digipair/skill-keycloak 0.22.1 → 0.22.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.cjs.js +911 -118
  2. package/index.esm.js +911 -118
  3. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -10218,7 +10218,7 @@ var InvalidZone = /*#__PURE__*/ function(Zone) {
10218
10218
 
10219
10219
  /**
10220
10220
  * @private
10221
- */ function _instanceof$g(left, right) {
10221
+ */ function _instanceof$h(left, right) {
10222
10222
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
10223
10223
  return !!right[Symbol.hasInstance](left);
10224
10224
  } else {
@@ -10228,7 +10228,7 @@ var InvalidZone = /*#__PURE__*/ function(Zone) {
10228
10228
  function normalizeZone(input, defaultZone) {
10229
10229
  if (isUndefined(input) || input === null) {
10230
10230
  return defaultZone;
10231
- } else if (_instanceof$g(input, Zone)) {
10231
+ } else if (_instanceof$h(input, Zone)) {
10232
10232
  return input;
10233
10233
  } else if (isString$4(input)) {
10234
10234
  var lowered = input.toLowerCase();
@@ -12202,7 +12202,7 @@ function _define_property$4(obj, key, value) {
12202
12202
  }
12203
12203
  return obj;
12204
12204
  }
12205
- function _instanceof$f(left, right) {
12205
+ function _instanceof$g(left, right) {
12206
12206
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
12207
12207
  return !!right[Symbol.hasInstance](left);
12208
12208
  } else {
@@ -13338,7 +13338,7 @@ var Duration = /*#__PURE__*/ function() {
13338
13338
  if (!reason) {
13339
13339
  throw new InvalidArgumentError("need to specify a reason the Duration is invalid");
13340
13340
  }
13341
- var invalid = _instanceof$f(reason, Invalid) ? reason : new Invalid(reason, explanation);
13341
+ var invalid = _instanceof$g(reason, Invalid) ? reason : new Invalid(reason, explanation);
13342
13342
  if (Settings.throwOnInvalid) {
13343
13343
  throw new InvalidDurationError(invalid);
13344
13344
  } else {
@@ -13421,7 +13421,7 @@ function _create_class$b(Constructor, protoProps, staticProps) {
13421
13421
  if (staticProps) _defineProperties$b(Constructor, staticProps);
13422
13422
  return Constructor;
13423
13423
  }
13424
- function _instanceof$e(left, right) {
13424
+ function _instanceof$f(left, right) {
13425
13425
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
13426
13426
  return !!right[Symbol.hasInstance](left);
13427
13427
  } else {
@@ -13973,7 +13973,7 @@ var Interval = /*#__PURE__*/ function() {
13973
13973
  if (!reason) {
13974
13974
  throw new InvalidArgumentError("need to specify a reason the Interval is invalid");
13975
13975
  }
13976
- var invalid = _instanceof$e(reason, Invalid) ? reason : new Invalid(reason, explanation);
13976
+ var invalid = _instanceof$f(reason, Invalid) ? reason : new Invalid(reason, explanation);
13977
13977
  if (Settings.throwOnInvalid) {
13978
13978
  throw new InvalidIntervalError(invalid);
13979
13979
  } else {
@@ -15368,7 +15368,7 @@ function _define_property$2(obj, key, value) {
15368
15368
  }
15369
15369
  return obj;
15370
15370
  }
15371
- function _instanceof$d(left, right) {
15371
+ function _instanceof$e(left, right) {
15372
15372
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
15373
15373
  return !!right[Symbol.hasInstance](left);
15374
15374
  } else {
@@ -17555,7 +17555,7 @@ var DateTime = /*#__PURE__*/ function() {
17555
17555
  if (!reason) {
17556
17556
  throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");
17557
17557
  }
17558
- var invalid = _instanceof$d(reason, Invalid) ? reason : new Invalid(reason, explanation);
17558
+ var invalid = _instanceof$e(reason, Invalid) ? reason : new Invalid(reason, explanation);
17559
17559
  if (Settings.throwOnInvalid) {
17560
17560
  throw new InvalidDateTimeError(invalid);
17561
17561
  } else {
@@ -17940,7 +17940,7 @@ function _inherits$2(subClass, superClass) {
17940
17940
  });
17941
17941
  if (superClass) _set_prototype_of$2(subClass, superClass);
17942
17942
  }
17943
- function _instanceof$c(left, right) {
17943
+ function _instanceof$d(left, right) {
17944
17944
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
17945
17945
  return !!right[Symbol.hasInstance](left);
17946
17946
  } else {
@@ -18869,14 +18869,14 @@ function resolveNode(node, pos, side, overlays) {
18869
18869
  var _a;
18870
18870
  // Move up to a node that actually holds the position, if possible
18871
18871
  while(node.from == node.to || (side < 1 ? node.from >= pos : node.from > pos) || (side > -1 ? node.to <= pos : node.to < pos)){
18872
- var parent = !overlays && _instanceof$c(node, TreeNode) && node.index < 0 ? null : node.parent;
18872
+ var parent = !overlays && _instanceof$d(node, TreeNode) && node.index < 0 ? null : node.parent;
18873
18873
  if (!parent) return node;
18874
18874
  node = parent;
18875
18875
  }
18876
18876
  var mode = overlays ? 0 : IterMode.IgnoreOverlays;
18877
18877
  // Must go up out of overlays when those do not overlap with pos
18878
18878
  if (overlays) for(var scan = node, parent1 = scan.parent; parent1; scan = parent1, parent1 = scan.parent){
18879
- if (_instanceof$c(scan, TreeNode) && scan.index < 0 && ((_a = parent1.enter(pos, side, mode)) === null || _a === void 0 ? void 0 : _a.from) != scan.from) node = parent1;
18879
+ if (_instanceof$d(scan, TreeNode) && scan.index < 0 && ((_a = parent1.enter(pos, side, mode)) === null || _a === void 0 ? void 0 : _a.from) != scan.from) node = parent1;
18880
18880
  }
18881
18881
  for(;;){
18882
18882
  var inner = node.enter(pos, side, mode);
@@ -19004,7 +19004,7 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
19004
19004
  for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
19005
19005
  var next = children[i], start = positions[i] + parent.from;
19006
19006
  if (!checkSide(side, pos, start, start + next.length)) continue;
19007
- if (_instanceof$c(next, TreeBuffer)) {
19007
+ if (_instanceof$d(next, TreeBuffer)) {
19008
19008
  if (mode & IterMode.ExcludeBuffers) continue;
19009
19009
  var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
19010
19010
  if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
@@ -19303,7 +19303,7 @@ function iterStack(heads) {
19303
19303
  pick = i;
19304
19304
  }
19305
19305
  }
19306
- var next = _instanceof$c(picked, TreeNode) && picked.index < 0 ? null : picked.parent;
19306
+ var next = _instanceof$d(picked, TreeNode) && picked.index < 0 ? null : picked.parent;
19307
19307
  var newHeads = heads.slice();
19308
19308
  if (next) newHeads[pick] = next;
19309
19309
  else newHeads.splice(pick, 1);
@@ -19327,7 +19327,7 @@ var StackIterator = /*#__PURE__*/ function() {
19327
19327
  }();
19328
19328
  function stackIterator(tree, pos, side) {
19329
19329
  var inner = tree.resolveInner(pos, side), layers = null;
19330
- for(var scan = _instanceof$c(inner, TreeNode) ? inner : inner.context.parent; scan; scan = scan.parent){
19330
+ for(var scan = _instanceof$d(inner, TreeNode) ? inner : inner.context.parent; scan; scan = scan.parent){
19331
19331
  if (scan.index < 0) {
19332
19332
  var parent = scan.parent;
19333
19333
  (layers || (layers = [
@@ -19365,7 +19365,7 @@ allows you to move to adjacent nodes.
19365
19365
  @internal
19366
19366
  */ this.index = 0;
19367
19367
  this.bufferNode = null;
19368
- if (_instanceof$c(node, TreeNode)) {
19368
+ if (_instanceof$d(node, TreeNode)) {
19369
19369
  this.yieldNode(node);
19370
19370
  } else {
19371
19371
  this._tree = node.context.parent;
@@ -19412,7 +19412,7 @@ allows you to move to adjacent nodes.
19412
19412
  */ key: "yield",
19413
19413
  value: function _yield(node) {
19414
19414
  if (!node) return false;
19415
- if (_instanceof$c(node, TreeNode)) {
19415
+ if (_instanceof$d(node, TreeNode)) {
19416
19416
  this.buffer = null;
19417
19417
  return this.yieldNode(node);
19418
19418
  }
@@ -19553,7 +19553,7 @@ allows you to move to adjacent nodes.
19553
19553
  for(; parent; ref2 = parent, index = ref2.index, parent = ref2._parent, ref2){
19554
19554
  if (index > -1) for(var i1 = index + dir, e = dir < 0 ? -1 : parent._tree.children.length; i1 != e; i1 += dir){
19555
19555
  var child = parent._tree.children[i1];
19556
- if (this.mode & IterMode.IncludeAnonymous || _instanceof$c(child, TreeBuffer) || !child.type.isAnonymous || hasChild(child)) return false;
19556
+ if (this.mode & IterMode.IncludeAnonymous || _instanceof$d(child, TreeBuffer) || !child.type.isAnonymous || hasChild(child)) return false;
19557
19557
  }
19558
19558
  }
19559
19559
  return true;
@@ -19696,7 +19696,7 @@ allows you to move to adjacent nodes.
19696
19696
  }();
19697
19697
  function hasChild(tree) {
19698
19698
  return tree.children.some(function(ch) {
19699
- return _instanceof$c(ch, TreeBuffer) || !ch.type.isAnonymous || hasChild(ch);
19699
+ return _instanceof$d(ch, TreeBuffer) || !ch.type.isAnonymous || hasChild(ch);
19700
19700
  });
19701
19701
  }
19702
19702
  function buildTree(data) {
@@ -19799,7 +19799,7 @@ function buildTree(data) {
19799
19799
  function makeBalanced(type) {
19800
19800
  return function(children, positions, length) {
19801
19801
  var lookAhead = 0, lastI = children.length - 1, last, lookAheadProp;
19802
- if (lastI >= 0 && _instanceof$c(last = children[lastI], Tree)) {
19802
+ if (lastI >= 0 && _instanceof$d(last = children[lastI], Tree)) {
19803
19803
  if (!lastI && last.type == type && last.length == length) return last;
19804
19804
  if (lookAheadProp = last.prop(NodeProp.lookAhead)) lookAhead = positions[lastI] + last.length + lookAheadProp;
19805
19805
  }
@@ -19921,7 +19921,7 @@ function buildTree(data) {
19921
19921
  }
19922
19922
  var nodeSizeCache = new WeakMap;
19923
19923
  function nodeSize(balanceType, node) {
19924
- if (!balanceType.isAnonymous || _instanceof$c(node, TreeBuffer) || node.type != balanceType) return 1;
19924
+ if (!balanceType.isAnonymous || _instanceof$d(node, TreeBuffer) || node.type != balanceType) return 1;
19925
19925
  var size = nodeSizeCache.get(node);
19926
19926
  if (size == null) {
19927
19927
  size = 1;
@@ -19929,7 +19929,7 @@ function nodeSize(balanceType, node) {
19929
19929
  try {
19930
19930
  for(var _iterator = node.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
19931
19931
  var child = _step.value;
19932
- if (child.type != balanceType || !_instanceof$c(child, Tree)) {
19932
+ if (child.type != balanceType || !_instanceof$d(child, Tree)) {
19933
19933
  size = 1;
19934
19934
  break;
19935
19935
  }
@@ -20128,7 +20128,7 @@ function _inherits$1(subClass, superClass) {
20128
20128
  });
20129
20129
  if (superClass) _set_prototype_of$1(subClass, superClass);
20130
20130
  }
20131
- function _instanceof$b(left, right) {
20131
+ function _instanceof$c(left, right) {
20132
20132
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
20133
20133
  return !!right[Symbol.hasInstance](left);
20134
20134
  } else {
@@ -20327,7 +20327,6 @@ about the parse state.
20327
20327
  var _a;
20328
20328
  var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
20329
20329
  var parser = this.p.parser;
20330
- if (this.reducePos < this.pos - 25 /* Lookahead.Margin */ ) this.setLookAhead(this.pos);
20331
20330
  var dPrec = parser.dynamicPrecedence(type);
20332
20331
  if (dPrec) this.score += dPrec;
20333
20332
  if (depth == 0) {
@@ -21280,7 +21279,7 @@ function cutAt(tree, pos, side) {
21280
21279
  cursor.moveTo(pos);
21281
21280
  for(;;){
21282
21281
  if (!(side < 0 ? cursor.childBefore(pos) : cursor.childAfter(pos))) for(;;){
21283
- if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError) return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 25 /* Lookahead.Margin */ )) : Math.min(tree.length, Math.max(cursor.from + 1, pos + 25 /* Lookahead.Margin */ ));
21282
+ if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError) return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 25 /* Safety.Margin */ )) : Math.min(tree.length, Math.max(cursor.from + 1, pos + 25 /* Safety.Margin */ ));
21284
21283
  if (side < 0 ? cursor.prevSibling() : cursor.nextSibling()) break;
21285
21284
  if (!cursor.parent()) return side < 0 ? 0 : tree.length;
21286
21285
  }
@@ -21348,7 +21347,7 @@ var FragmentCursor = /*#__PURE__*/ function() {
21348
21347
  this.nextStart = start;
21349
21348
  return null;
21350
21349
  }
21351
- if (_instanceof$b(next, Tree)) {
21350
+ if (_instanceof$c(next, Tree)) {
21352
21351
  if (start == pos) {
21353
21352
  if (start < this.safeFrom) return null;
21354
21353
  var end = start + next.length;
@@ -21403,7 +21402,7 @@ var TokenCache = /*#__PURE__*/ function() {
21403
21402
  token.mask = mask;
21404
21403
  token.context = context;
21405
21404
  }
21406
- if (token.lookAhead > token.end + 25 /* Lookahead.Margin */ ) lookAhead = Math.max(token.lookAhead, lookAhead);
21405
+ if (token.lookAhead > token.end + 25 /* Safety.Margin */ ) lookAhead = Math.max(token.lookAhead, lookAhead);
21407
21406
  if (token.value != 0 /* Term.Err */ ) {
21408
21407
  var startIndex = actionIndex;
21409
21408
  if (token.extended > -1) actionIndex = this.addActions(stack, token.extended, token.end, actionIndex);
@@ -21651,9 +21650,9 @@ var Parse = /*#__PURE__*/ function() {
21651
21650
  if (verbose) console.log(base + this.stackID(stack) + " (via reuse of ".concat(parser.getName(cached.type.id), ")"));
21652
21651
  return true;
21653
21652
  }
21654
- if (!_instanceof$b(cached, Tree) || cached.children.length == 0 || cached.positions[0] > 0) break;
21653
+ if (!_instanceof$c(cached, Tree) || cached.children.length == 0 || cached.positions[0] > 0) break;
21655
21654
  var inner = cached.children[0];
21656
- if (_instanceof$b(inner, Tree) && cached.positions[0] == 0) cached = inner;
21655
+ if (_instanceof$c(inner, Tree) && cached.positions[0] == 0) cached = inner;
21657
21656
  else break;
21658
21657
  }
21659
21658
  }
@@ -23227,7 +23226,7 @@ function _define_property$1(obj, key, value) {
23227
23226
  }
23228
23227
  return obj;
23229
23228
  }
23230
- function _instanceof$a(left, right) {
23229
+ function _instanceof$b(left, right) {
23231
23230
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
23232
23231
  return !!right[Symbol.hasInstance](left);
23233
23232
  } else {
@@ -23494,14 +23493,14 @@ function indent(str, spaces) {
23494
23493
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23495
23494
  // match is required
23496
23495
  if (!match) {
23497
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23496
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23498
23497
  v: nextMatch1
23499
23498
  };
23500
23499
  }
23501
23500
  var token = match.token, offset = match.offset;
23502
23501
  i1 += offset;
23503
23502
  if (token === " ") {
23504
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23503
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23505
23504
  }
23506
23505
  tokens1 = _to_consumable_array$3(tokens1).concat([
23507
23506
  token
@@ -23520,7 +23519,7 @@ function indent(str, spaces) {
23520
23519
  if (contextKeys.some(function(el) {
23521
23520
  return el.startsWith(name);
23522
23521
  })) {
23523
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23522
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23524
23523
  }
23525
23524
  if (dateTimeIdentifiers.some(function(el) {
23526
23525
  return el === name;
@@ -23539,9 +23538,9 @@ function indent(str, spaces) {
23539
23538
  if (dateTimeIdentifiers.some(function(el) {
23540
23539
  return el.startsWith(name);
23541
23540
  })) {
23542
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23541
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23543
23542
  }
23544
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23543
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23545
23544
  v: nextMatch1
23546
23545
  };
23547
23546
  };
@@ -23704,7 +23703,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23704
23703
  * @param {any} value
23705
23704
  * @returns {Boolean}
23706
23705
  */ function isAtomic(value) {
23707
- return !value || _instanceof$a(value, this) || _instanceof$a(value, ValueProducer) || typeof value !== "object";
23706
+ return !value || _instanceof$b(value, this) || _instanceof$b(value, ValueProducer) || typeof value !== "object";
23708
23707
  }
23709
23708
  },
23710
23709
  {
@@ -23723,7 +23722,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23723
23722
  if (!context || typeof context !== "object") {
23724
23723
  return {};
23725
23724
  }
23726
- if (_instanceof$a(context, _this)) {
23725
+ if (_instanceof$b(context, _this)) {
23727
23726
  return context.value;
23728
23727
  }
23729
23728
  return _object_spread({}, context);
@@ -23842,7 +23841,7 @@ var Variables = /*#__PURE__*/ function() {
23842
23841
  return undefined;
23843
23842
  }
23844
23843
  var val = this.context.get(contextKey);
23845
- if (_instanceof$a(val, ValueProducer)) {
23844
+ if (_instanceof$b(val, ValueProducer)) {
23846
23845
  return val.get(this);
23847
23846
  } else {
23848
23847
  return val;
@@ -24344,7 +24343,6 @@ var parser = LRParser.deserialize({
24344
24343
  },
24345
24344
  dynamicPrecedences: {
24346
24345
  "31": -1,
24347
- "67": 1,
24348
24346
  "71": -1,
24349
24347
  "73": -1
24350
24348
  },
@@ -24444,7 +24442,7 @@ function _inherits(subClass, superClass) {
24444
24442
  });
24445
24443
  if (superClass) _set_prototype_of(subClass, superClass);
24446
24444
  }
24447
- function _instanceof$9(left, right) {
24445
+ function _instanceof$a(left, right) {
24448
24446
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
24449
24447
  return !!right[Symbol.hasInstance](left);
24450
24448
  } else {
@@ -24617,10 +24615,10 @@ function getType(e) {
24617
24615
  }
24618
24616
  return "date time";
24619
24617
  }
24620
- if (_instanceof$9(e, Range$c)) {
24618
+ if (_instanceof$a(e, Range$c)) {
24621
24619
  return "range";
24622
24620
  }
24623
- if (_instanceof$9(e, FunctionWrapper)) {
24621
+ if (_instanceof$a(e, FunctionWrapper)) {
24624
24622
  return "function";
24625
24623
  }
24626
24624
  return "literal";
@@ -25882,13 +25880,13 @@ function createArgsValidator(argDefinitions) {
25882
25880
  * @param {Range|number} a
25883
25881
  * @param {Range|number} b
25884
25882
  */ function before$1(a, b) {
25885
- if (_instanceof$9(a, Range$c) && _instanceof$9(b, Range$c)) {
25883
+ if (_instanceof$a(a, Range$c) && _instanceof$a(b, Range$c)) {
25886
25884
  return a.end < b.start || (!a["end included"] || !b["start included"]) && a.end == b.start;
25887
25885
  }
25888
- if (_instanceof$9(a, Range$c)) {
25886
+ if (_instanceof$a(a, Range$c)) {
25889
25887
  return a.end < b || !a["end included"] && a.end === b;
25890
25888
  }
25891
- if (_instanceof$9(b, Range$c)) {
25889
+ if (_instanceof$a(b, Range$c)) {
25892
25890
  return b.start > a || !b["start included"] && b.start === a;
25893
25891
  }
25894
25892
  return a < b;
@@ -26554,7 +26552,7 @@ function evalNode(node, input, args) {
26554
26552
  return tag(function(context) {
26555
26553
  var a = args[0](context);
26556
26554
  var b = args[3](context);
26557
- return _instanceof$9(a, b);
26555
+ return _instanceof$a(a, b);
26558
26556
  }, Test("boolean"));
26559
26557
  case "every":
26560
26558
  return tag(function(context) {
@@ -26831,7 +26829,7 @@ function evalNode(node, input, args) {
26831
26829
  if (typeof result === "function") {
26832
26830
  result = result(el);
26833
26831
  }
26834
- if (_instanceof$9(result, Range$c)) {
26832
+ if (_instanceof$a(result, Range$c)) {
26835
26833
  result = result.includes(el);
26836
26834
  }
26837
26835
  if (result === true) {
@@ -26933,7 +26931,7 @@ function compareValue(test, value) {
26933
26931
  if (typeof test === "function") {
26934
26932
  return test(value);
26935
26933
  }
26936
- if (_instanceof$9(test, Range$c)) {
26934
+ if (_instanceof$a(test, Range$c)) {
26937
26935
  return test.includes(value);
26938
26936
  }
26939
26937
  return equals(test, value);
@@ -27234,10 +27232,10 @@ function Test(type) {
27234
27232
  if (!fn) {
27235
27233
  return null;
27236
27234
  }
27237
- if (_instanceof$9(fn, FunctionWrapper)) {
27235
+ if (_instanceof$a(fn, FunctionWrapper)) {
27238
27236
  return fn;
27239
27237
  }
27240
- if (_instanceof$9(fn, Range$c)) {
27238
+ if (_instanceof$a(fn, Range$c)) {
27241
27239
  return new FunctionWrapper(function(value) {
27242
27240
  return fn.includes(value);
27243
27241
  }, [
@@ -27348,6 +27346,7 @@ const applyTemplate = (value, context)=>{
27348
27346
  const path = result.replace(/^EVALUATE:/, '');
27349
27347
  result = evaluate(path, _extends({}, context, {
27350
27348
  getTime: (time)=>new Date(time).getTime(),
27349
+ fromTime: (time)=>new Date(time).toISOString(),
27351
27350
  atob: (value)=>atob(value),
27352
27351
  btoa: (value)=>btoa(value),
27353
27352
  encodeURIComponent: (value)=>encodeURIComponent(value),
@@ -28738,7 +28737,7 @@ function _create_class$3(Constructor, protoProps, staticProps) {
28738
28737
  if (staticProps) _defineProperties$3(Constructor, staticProps);
28739
28738
  return Constructor;
28740
28739
  }
28741
- function _instanceof$8(left, right) {
28740
+ function _instanceof$9(left, right) {
28742
28741
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
28743
28742
  return !!right[Symbol.hasInstance](left);
28744
28743
  } else {
@@ -28758,7 +28757,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28758
28757
  function SemVer(version, options) {
28759
28758
  _class_call_check$3(this, SemVer);
28760
28759
  options = parseOptions$2(options);
28761
- if (_instanceof$8(version, SemVer)) {
28760
+ if (_instanceof$9(version, SemVer)) {
28762
28761
  if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
28763
28762
  return version;
28764
28763
  } else {
@@ -28832,7 +28831,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28832
28831
  key: "compare",
28833
28832
  value: function compare(other) {
28834
28833
  debug$2("SemVer.compare", this.version, this.options, other);
28835
- if (!_instanceof$8(other, SemVer)) {
28834
+ if (!_instanceof$9(other, SemVer)) {
28836
28835
  if (typeof other === "string" && other === this.version) {
28837
28836
  return 0;
28838
28837
  }
@@ -28847,7 +28846,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28847
28846
  {
28848
28847
  key: "compareMain",
28849
28848
  value: function compareMain(other) {
28850
- if (!_instanceof$8(other, SemVer)) {
28849
+ if (!_instanceof$9(other, SemVer)) {
28851
28850
  other = new SemVer(other, this.options);
28852
28851
  }
28853
28852
  return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
@@ -28856,7 +28855,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28856
28855
  {
28857
28856
  key: "comparePre",
28858
28857
  value: function comparePre(other) {
28859
- if (!_instanceof$8(other, SemVer)) {
28858
+ if (!_instanceof$9(other, SemVer)) {
28860
28859
  other = new SemVer(other, this.options);
28861
28860
  }
28862
28861
  // NOT having a prerelease is > having one
@@ -28889,14 +28888,14 @@ var SemVer$f = /*#__PURE__*/ function() {
28889
28888
  {
28890
28889
  key: "compareBuild",
28891
28890
  value: function compareBuild(other) {
28892
- if (!_instanceof$8(other, SemVer)) {
28891
+ if (!_instanceof$9(other, SemVer)) {
28893
28892
  other = new SemVer(other, this.options);
28894
28893
  }
28895
28894
  var i = 0;
28896
28895
  do {
28897
28896
  var a = this.build[i];
28898
28897
  var b = other.build[i];
28899
- debug$2("build compare", i, a, b);
28898
+ debug$2("prerelease compare", i, a, b);
28900
28899
  if (a === undefined && b === undefined) {
28901
28900
  return 0;
28902
28901
  } else if (b === undefined) {
@@ -29044,7 +29043,7 @@ var SemVer$f = /*#__PURE__*/ function() {
29044
29043
  }();
29045
29044
  var semver$4 = SemVer$f;
29046
29045
 
29047
- function _instanceof$7(left, right) {
29046
+ function _instanceof$8(left, right) {
29048
29047
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29049
29048
  return !!right[Symbol.hasInstance](left);
29050
29049
  } else {
@@ -29054,7 +29053,7 @@ function _instanceof$7(left, right) {
29054
29053
  var SemVer$e = semver$4;
29055
29054
  var parse$6 = function(version, options) {
29056
29055
  var throwErrors = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
29057
- if (_instanceof$7(version, SemVer$e)) {
29056
+ if (_instanceof$8(version, SemVer$e)) {
29058
29057
  return version;
29059
29058
  }
29060
29059
  try {
@@ -29082,7 +29081,7 @@ var clean$1 = function(version, options) {
29082
29081
  };
29083
29082
  var clean_1 = clean$1;
29084
29083
 
29085
- function _instanceof$6(left, right) {
29084
+ function _instanceof$7(left, right) {
29086
29085
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29087
29086
  return !!right[Symbol.hasInstance](left);
29088
29087
  } else {
@@ -29097,7 +29096,7 @@ var inc$1 = function(version, release, options, identifier, identifierBase) {
29097
29096
  options = undefined;
29098
29097
  }
29099
29098
  try {
29100
- return new SemVer$d(_instanceof$6(version, SemVer$d) ? version.version : version, options).inc(release, identifier, identifierBase).version;
29099
+ return new SemVer$d(_instanceof$7(version, SemVer$d) ? version.version : version, options).inc(release, identifier, identifierBase).version;
29101
29100
  } catch (er) {
29102
29101
  return null;
29103
29102
  }
@@ -29302,7 +29301,7 @@ var cmp$2 = function(a, op, b, loose) {
29302
29301
  };
29303
29302
  var cmp_1 = cmp$2;
29304
29303
 
29305
- function _instanceof$5(left, right) {
29304
+ function _instanceof$6(left, right) {
29306
29305
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29307
29306
  return !!right[Symbol.hasInstance](left);
29308
29307
  } else {
@@ -29313,7 +29312,7 @@ var SemVer$7 = semver$4;
29313
29312
  var parse$1 = parse_1;
29314
29313
  var _require$4 = re$4.exports, re$2 = _require$4.safeRe, t$2 = _require$4.t;
29315
29314
  var coerce$1 = function(version, options) {
29316
- if (_instanceof$5(version, SemVer$7)) {
29315
+ if (_instanceof$6(version, SemVer$7)) {
29317
29316
  return version;
29318
29317
  }
29319
29318
  if (typeof version === "number") {
@@ -29359,6 +29358,511 @@ var coerce$1 = function(version, options) {
29359
29358
  };
29360
29359
  var coerce_1 = coerce$1;
29361
29360
 
29361
+ function _ts_generator(thisArg, body) {
29362
+ var f, y, t, g, _ = {
29363
+ label: 0,
29364
+ sent: function() {
29365
+ if (t[0] & 1) throw t[1];
29366
+ return t[1];
29367
+ },
29368
+ trys: [],
29369
+ ops: []
29370
+ };
29371
+ return g = {
29372
+ next: verb(0),
29373
+ "throw": verb(1),
29374
+ "return": verb(2)
29375
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
29376
+ return this;
29377
+ }), g;
29378
+ function verb(n) {
29379
+ return function(v) {
29380
+ return step([
29381
+ n,
29382
+ v
29383
+ ]);
29384
+ };
29385
+ }
29386
+ function step(op) {
29387
+ if (f) throw new TypeError("Generator is already executing.");
29388
+ while(_)try {
29389
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29390
+ if (y = 0, t) op = [
29391
+ op[0] & 2,
29392
+ t.value
29393
+ ];
29394
+ switch(op[0]){
29395
+ case 0:
29396
+ case 1:
29397
+ t = op;
29398
+ break;
29399
+ case 4:
29400
+ _.label++;
29401
+ return {
29402
+ value: op[1],
29403
+ done: false
29404
+ };
29405
+ case 5:
29406
+ _.label++;
29407
+ y = op[1];
29408
+ op = [
29409
+ 0
29410
+ ];
29411
+ continue;
29412
+ case 7:
29413
+ op = _.ops.pop();
29414
+ _.trys.pop();
29415
+ continue;
29416
+ default:
29417
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
29418
+ _ = 0;
29419
+ continue;
29420
+ }
29421
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
29422
+ _.label = op[1];
29423
+ break;
29424
+ }
29425
+ if (op[0] === 6 && _.label < t[1]) {
29426
+ _.label = t[1];
29427
+ t = op;
29428
+ break;
29429
+ }
29430
+ if (t && _.label < t[2]) {
29431
+ _.label = t[2];
29432
+ _.ops.push(op);
29433
+ break;
29434
+ }
29435
+ if (t[2]) _.ops.pop();
29436
+ _.trys.pop();
29437
+ continue;
29438
+ }
29439
+ op = body.call(thisArg, _);
29440
+ } catch (e) {
29441
+ op = [
29442
+ 6,
29443
+ e
29444
+ ];
29445
+ y = 0;
29446
+ } finally{
29447
+ f = t = 0;
29448
+ }
29449
+ if (op[0] & 5) throw op[1];
29450
+ return {
29451
+ value: op[0] ? op[1] : void 0,
29452
+ done: true
29453
+ };
29454
+ }
29455
+ }
29456
+ var iterator = function(Yallist) {
29457
+ Yallist.prototype[Symbol.iterator] = function() {
29458
+ var walker;
29459
+ return _ts_generator(this, function(_state) {
29460
+ switch(_state.label){
29461
+ case 0:
29462
+ walker = this.head;
29463
+ _state.label = 1;
29464
+ case 1:
29465
+ if (!walker) return [
29466
+ 3,
29467
+ 4
29468
+ ];
29469
+ return [
29470
+ 4,
29471
+ walker.value
29472
+ ];
29473
+ case 2:
29474
+ _state.sent();
29475
+ _state.label = 3;
29476
+ case 3:
29477
+ walker = walker.next;
29478
+ return [
29479
+ 3,
29480
+ 1
29481
+ ];
29482
+ case 4:
29483
+ return [
29484
+ 2
29485
+ ];
29486
+ }
29487
+ });
29488
+ };
29489
+ };
29490
+
29491
+ function _instanceof$5(left, right) {
29492
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29493
+ return !!right[Symbol.hasInstance](left);
29494
+ } else {
29495
+ return left instanceof right;
29496
+ }
29497
+ }
29498
+ var yallist = Yallist$1;
29499
+ Yallist$1.Node = Node;
29500
+ Yallist$1.create = Yallist$1;
29501
+ function Yallist$1(list) {
29502
+ var self = this;
29503
+ if (!_instanceof$5(self, Yallist$1)) {
29504
+ self = new Yallist$1();
29505
+ }
29506
+ self.tail = null;
29507
+ self.head = null;
29508
+ self.length = 0;
29509
+ if (list && typeof list.forEach === "function") {
29510
+ list.forEach(function(item) {
29511
+ self.push(item);
29512
+ });
29513
+ } else if (arguments.length > 0) {
29514
+ for(var i = 0, l = arguments.length; i < l; i++){
29515
+ self.push(arguments[i]);
29516
+ }
29517
+ }
29518
+ return self;
29519
+ }
29520
+ Yallist$1.prototype.removeNode = function(node) {
29521
+ if (node.list !== this) {
29522
+ throw new Error("removing node which does not belong to this list");
29523
+ }
29524
+ var next = node.next;
29525
+ var prev = node.prev;
29526
+ if (next) {
29527
+ next.prev = prev;
29528
+ }
29529
+ if (prev) {
29530
+ prev.next = next;
29531
+ }
29532
+ if (node === this.head) {
29533
+ this.head = next;
29534
+ }
29535
+ if (node === this.tail) {
29536
+ this.tail = prev;
29537
+ }
29538
+ node.list.length--;
29539
+ node.next = null;
29540
+ node.prev = null;
29541
+ node.list = null;
29542
+ return next;
29543
+ };
29544
+ Yallist$1.prototype.unshiftNode = function(node) {
29545
+ if (node === this.head) {
29546
+ return;
29547
+ }
29548
+ if (node.list) {
29549
+ node.list.removeNode(node);
29550
+ }
29551
+ var head = this.head;
29552
+ node.list = this;
29553
+ node.next = head;
29554
+ if (head) {
29555
+ head.prev = node;
29556
+ }
29557
+ this.head = node;
29558
+ if (!this.tail) {
29559
+ this.tail = node;
29560
+ }
29561
+ this.length++;
29562
+ };
29563
+ Yallist$1.prototype.pushNode = function(node) {
29564
+ if (node === this.tail) {
29565
+ return;
29566
+ }
29567
+ if (node.list) {
29568
+ node.list.removeNode(node);
29569
+ }
29570
+ var tail = this.tail;
29571
+ node.list = this;
29572
+ node.prev = tail;
29573
+ if (tail) {
29574
+ tail.next = node;
29575
+ }
29576
+ this.tail = node;
29577
+ if (!this.head) {
29578
+ this.head = node;
29579
+ }
29580
+ this.length++;
29581
+ };
29582
+ Yallist$1.prototype.push = function() {
29583
+ for(var i = 0, l = arguments.length; i < l; i++){
29584
+ push(this, arguments[i]);
29585
+ }
29586
+ return this.length;
29587
+ };
29588
+ Yallist$1.prototype.unshift = function() {
29589
+ for(var i = 0, l = arguments.length; i < l; i++){
29590
+ unshift(this, arguments[i]);
29591
+ }
29592
+ return this.length;
29593
+ };
29594
+ Yallist$1.prototype.pop = function() {
29595
+ if (!this.tail) {
29596
+ return undefined;
29597
+ }
29598
+ var res = this.tail.value;
29599
+ this.tail = this.tail.prev;
29600
+ if (this.tail) {
29601
+ this.tail.next = null;
29602
+ } else {
29603
+ this.head = null;
29604
+ }
29605
+ this.length--;
29606
+ return res;
29607
+ };
29608
+ Yallist$1.prototype.shift = function() {
29609
+ if (!this.head) {
29610
+ return undefined;
29611
+ }
29612
+ var res = this.head.value;
29613
+ this.head = this.head.next;
29614
+ if (this.head) {
29615
+ this.head.prev = null;
29616
+ } else {
29617
+ this.tail = null;
29618
+ }
29619
+ this.length--;
29620
+ return res;
29621
+ };
29622
+ Yallist$1.prototype.forEach = function(fn, thisp) {
29623
+ thisp = thisp || this;
29624
+ for(var walker = this.head, i = 0; walker !== null; i++){
29625
+ fn.call(thisp, walker.value, i, this);
29626
+ walker = walker.next;
29627
+ }
29628
+ };
29629
+ Yallist$1.prototype.forEachReverse = function(fn, thisp) {
29630
+ thisp = thisp || this;
29631
+ for(var walker = this.tail, i = this.length - 1; walker !== null; i--){
29632
+ fn.call(thisp, walker.value, i, this);
29633
+ walker = walker.prev;
29634
+ }
29635
+ };
29636
+ Yallist$1.prototype.get = function(n) {
29637
+ for(var i = 0, walker = this.head; walker !== null && i < n; i++){
29638
+ // abort out of the list early if we hit a cycle
29639
+ walker = walker.next;
29640
+ }
29641
+ if (i === n && walker !== null) {
29642
+ return walker.value;
29643
+ }
29644
+ };
29645
+ Yallist$1.prototype.getReverse = function(n) {
29646
+ for(var i = 0, walker = this.tail; walker !== null && i < n; i++){
29647
+ // abort out of the list early if we hit a cycle
29648
+ walker = walker.prev;
29649
+ }
29650
+ if (i === n && walker !== null) {
29651
+ return walker.value;
29652
+ }
29653
+ };
29654
+ Yallist$1.prototype.map = function(fn, thisp) {
29655
+ thisp = thisp || this;
29656
+ var res = new Yallist$1();
29657
+ for(var walker = this.head; walker !== null;){
29658
+ res.push(fn.call(thisp, walker.value, this));
29659
+ walker = walker.next;
29660
+ }
29661
+ return res;
29662
+ };
29663
+ Yallist$1.prototype.mapReverse = function(fn, thisp) {
29664
+ thisp = thisp || this;
29665
+ var res = new Yallist$1();
29666
+ for(var walker = this.tail; walker !== null;){
29667
+ res.push(fn.call(thisp, walker.value, this));
29668
+ walker = walker.prev;
29669
+ }
29670
+ return res;
29671
+ };
29672
+ Yallist$1.prototype.reduce = function(fn, initial) {
29673
+ var acc;
29674
+ var walker = this.head;
29675
+ if (arguments.length > 1) {
29676
+ acc = initial;
29677
+ } else if (this.head) {
29678
+ walker = this.head.next;
29679
+ acc = this.head.value;
29680
+ } else {
29681
+ throw new TypeError("Reduce of empty list with no initial value");
29682
+ }
29683
+ for(var i = 0; walker !== null; i++){
29684
+ acc = fn(acc, walker.value, i);
29685
+ walker = walker.next;
29686
+ }
29687
+ return acc;
29688
+ };
29689
+ Yallist$1.prototype.reduceReverse = function(fn, initial) {
29690
+ var acc;
29691
+ var walker = this.tail;
29692
+ if (arguments.length > 1) {
29693
+ acc = initial;
29694
+ } else if (this.tail) {
29695
+ walker = this.tail.prev;
29696
+ acc = this.tail.value;
29697
+ } else {
29698
+ throw new TypeError("Reduce of empty list with no initial value");
29699
+ }
29700
+ for(var i = this.length - 1; walker !== null; i--){
29701
+ acc = fn(acc, walker.value, i);
29702
+ walker = walker.prev;
29703
+ }
29704
+ return acc;
29705
+ };
29706
+ Yallist$1.prototype.toArray = function() {
29707
+ var arr = new Array(this.length);
29708
+ for(var i = 0, walker = this.head; walker !== null; i++){
29709
+ arr[i] = walker.value;
29710
+ walker = walker.next;
29711
+ }
29712
+ return arr;
29713
+ };
29714
+ Yallist$1.prototype.toArrayReverse = function() {
29715
+ var arr = new Array(this.length);
29716
+ for(var i = 0, walker = this.tail; walker !== null; i++){
29717
+ arr[i] = walker.value;
29718
+ walker = walker.prev;
29719
+ }
29720
+ return arr;
29721
+ };
29722
+ Yallist$1.prototype.slice = function(from, to) {
29723
+ to = to || this.length;
29724
+ if (to < 0) {
29725
+ to += this.length;
29726
+ }
29727
+ from = from || 0;
29728
+ if (from < 0) {
29729
+ from += this.length;
29730
+ }
29731
+ var ret = new Yallist$1();
29732
+ if (to < from || to < 0) {
29733
+ return ret;
29734
+ }
29735
+ if (from < 0) {
29736
+ from = 0;
29737
+ }
29738
+ if (to > this.length) {
29739
+ to = this.length;
29740
+ }
29741
+ for(var i = 0, walker = this.head; walker !== null && i < from; i++){
29742
+ walker = walker.next;
29743
+ }
29744
+ for(; walker !== null && i < to; i++, walker = walker.next){
29745
+ ret.push(walker.value);
29746
+ }
29747
+ return ret;
29748
+ };
29749
+ Yallist$1.prototype.sliceReverse = function(from, to) {
29750
+ to = to || this.length;
29751
+ if (to < 0) {
29752
+ to += this.length;
29753
+ }
29754
+ from = from || 0;
29755
+ if (from < 0) {
29756
+ from += this.length;
29757
+ }
29758
+ var ret = new Yallist$1();
29759
+ if (to < from || to < 0) {
29760
+ return ret;
29761
+ }
29762
+ if (from < 0) {
29763
+ from = 0;
29764
+ }
29765
+ if (to > this.length) {
29766
+ to = this.length;
29767
+ }
29768
+ for(var i = this.length, walker = this.tail; walker !== null && i > to; i--){
29769
+ walker = walker.prev;
29770
+ }
29771
+ for(; walker !== null && i > from; i--, walker = walker.prev){
29772
+ ret.push(walker.value);
29773
+ }
29774
+ return ret;
29775
+ };
29776
+ Yallist$1.prototype.splice = function(start, deleteCount) {
29777
+ for(var _len = arguments.length, nodes = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
29778
+ nodes[_key - 2] = arguments[_key];
29779
+ }
29780
+ if (start > this.length) {
29781
+ start = this.length - 1;
29782
+ }
29783
+ if (start < 0) {
29784
+ start = this.length + start;
29785
+ }
29786
+ for(var i = 0, walker = this.head; walker !== null && i < start; i++){
29787
+ walker = walker.next;
29788
+ }
29789
+ var ret = [];
29790
+ for(var i = 0; walker && i < deleteCount; i++){
29791
+ ret.push(walker.value);
29792
+ walker = this.removeNode(walker);
29793
+ }
29794
+ if (walker === null) {
29795
+ walker = this.tail;
29796
+ }
29797
+ if (walker !== this.head && walker !== this.tail) {
29798
+ walker = walker.prev;
29799
+ }
29800
+ for(var i = 0; i < nodes.length; i++){
29801
+ walker = insert(this, walker, nodes[i]);
29802
+ }
29803
+ return ret;
29804
+ };
29805
+ Yallist$1.prototype.reverse = function() {
29806
+ var head = this.head;
29807
+ var tail = this.tail;
29808
+ for(var walker = head; walker !== null; walker = walker.prev){
29809
+ var p = walker.prev;
29810
+ walker.prev = walker.next;
29811
+ walker.next = p;
29812
+ }
29813
+ this.head = tail;
29814
+ this.tail = head;
29815
+ return this;
29816
+ };
29817
+ function insert(self, node, value) {
29818
+ var inserted = node === self.head ? new Node(value, null, node, self) : new Node(value, node, node.next, self);
29819
+ if (inserted.next === null) {
29820
+ self.tail = inserted;
29821
+ }
29822
+ if (inserted.prev === null) {
29823
+ self.head = inserted;
29824
+ }
29825
+ self.length++;
29826
+ return inserted;
29827
+ }
29828
+ function push(self, item) {
29829
+ self.tail = new Node(item, self.tail, null, self);
29830
+ if (!self.head) {
29831
+ self.head = self.tail;
29832
+ }
29833
+ self.length++;
29834
+ }
29835
+ function unshift(self, item) {
29836
+ self.head = new Node(item, null, self.head, self);
29837
+ if (!self.tail) {
29838
+ self.tail = self.head;
29839
+ }
29840
+ self.length++;
29841
+ }
29842
+ function Node(value, prev, next, list) {
29843
+ if (!_instanceof$5(this, Node)) {
29844
+ return new Node(value, prev, next, list);
29845
+ }
29846
+ this.list = list;
29847
+ this.value = value;
29848
+ if (prev) {
29849
+ prev.next = this;
29850
+ this.prev = prev;
29851
+ } else {
29852
+ this.prev = null;
29853
+ }
29854
+ if (next) {
29855
+ next.prev = this;
29856
+ this.next = next;
29857
+ } else {
29858
+ this.next = null;
29859
+ }
29860
+ }
29861
+ try {
29862
+ // add if support for Symbol.iterator is present
29863
+ iterator(Yallist$1);
29864
+ } catch (er) {}
29865
+
29362
29866
  function _class_call_check$2(instance, Constructor) {
29363
29867
  if (!(instance instanceof Constructor)) {
29364
29868
  throw new TypeError("Cannot call a class as a function");
@@ -29378,53 +29882,361 @@ function _create_class$2(Constructor, protoProps, staticProps) {
29378
29882
  if (staticProps) _defineProperties$2(Constructor, staticProps);
29379
29883
  return Constructor;
29380
29884
  }
29885
+ // A linked list to keep track of recently-used-ness
29886
+ var Yallist = yallist;
29887
+ var MAX = Symbol("max");
29888
+ var LENGTH = Symbol("length");
29889
+ var LENGTH_CALCULATOR = Symbol("lengthCalculator");
29890
+ var ALLOW_STALE = Symbol("allowStale");
29891
+ var MAX_AGE = Symbol("maxAge");
29892
+ var DISPOSE = Symbol("dispose");
29893
+ var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
29894
+ var LRU_LIST = Symbol("lruList");
29895
+ var CACHE = Symbol("cache");
29896
+ var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
29897
+ var naiveLength = function() {
29898
+ return 1;
29899
+ };
29900
+ // lruList is a yallist where the head is the youngest
29901
+ // item, and the tail is the oldest. the list contains the Hit
29902
+ // objects as the entries.
29903
+ // Each Hit object has a reference to its Yallist.Node. This
29904
+ // never changes.
29905
+ //
29906
+ // cache is a Map (or PseudoMap) that matches the keys to
29907
+ // the Yallist.Node object.
29381
29908
  var LRUCache = /*#__PURE__*/ function() {
29382
- function LRUCache() {
29909
+ function LRUCache(options) {
29383
29910
  _class_call_check$2(this, LRUCache);
29384
- this.max = 1000;
29385
- this.map = new Map();
29911
+ if (typeof options === "number") options = {
29912
+ max: options
29913
+ };
29914
+ if (!options) options = {};
29915
+ if (options.max && (typeof options.max !== "number" || options.max < 0)) throw new TypeError("max must be a non-negative number");
29916
+ // Kind of weird to have a default max of Infinity, but oh well.
29917
+ this[MAX] = options.max || Infinity;
29918
+ var lc = options.length || naiveLength;
29919
+ this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
29920
+ this[ALLOW_STALE] = options.stale || false;
29921
+ if (options.maxAge && typeof options.maxAge !== "number") throw new TypeError("maxAge must be a number");
29922
+ this[MAX_AGE] = options.maxAge || 0;
29923
+ this[DISPOSE] = options.dispose;
29924
+ this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
29925
+ this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
29926
+ this.reset();
29386
29927
  }
29387
29928
  _create_class$2(LRUCache, [
29388
29929
  {
29389
- key: "get",
29390
- value: function get(key) {
29391
- var value = this.map.get(key);
29392
- if (value === undefined) {
29393
- return undefined;
29394
- } else {
29395
- // Remove the key from the map and add it to the end
29396
- this.map.delete(key);
29397
- this.map.set(key, value);
29398
- return value;
29930
+ key: "max",
29931
+ get: function get() {
29932
+ return this[MAX];
29933
+ },
29934
+ set: // resize the cache when the max changes.
29935
+ function set(mL) {
29936
+ if (typeof mL !== "number" || mL < 0) throw new TypeError("max must be a non-negative number");
29937
+ this[MAX] = mL || Infinity;
29938
+ trim(this);
29939
+ }
29940
+ },
29941
+ {
29942
+ key: "allowStale",
29943
+ get: function get() {
29944
+ return this[ALLOW_STALE];
29945
+ },
29946
+ set: function set(allowStale) {
29947
+ this[ALLOW_STALE] = !!allowStale;
29948
+ }
29949
+ },
29950
+ {
29951
+ key: "maxAge",
29952
+ get: function get() {
29953
+ return this[MAX_AGE];
29954
+ },
29955
+ set: function set(mA) {
29956
+ if (typeof mA !== "number") throw new TypeError("maxAge must be a non-negative number");
29957
+ this[MAX_AGE] = mA;
29958
+ trim(this);
29959
+ }
29960
+ },
29961
+ {
29962
+ key: "lengthCalculator",
29963
+ get: function get() {
29964
+ return this[LENGTH_CALCULATOR];
29965
+ },
29966
+ set: // resize the cache when the lengthCalculator changes.
29967
+ function set(lC) {
29968
+ var _this = this;
29969
+ if (typeof lC !== "function") lC = naiveLength;
29970
+ if (lC !== this[LENGTH_CALCULATOR]) {
29971
+ this[LENGTH_CALCULATOR] = lC;
29972
+ this[LENGTH] = 0;
29973
+ this[LRU_LIST].forEach(function(hit) {
29974
+ hit.length = _this[LENGTH_CALCULATOR](hit.value, hit.key);
29975
+ _this[LENGTH] += hit.length;
29976
+ });
29977
+ }
29978
+ trim(this);
29979
+ }
29980
+ },
29981
+ {
29982
+ key: "length",
29983
+ get: function get() {
29984
+ return this[LENGTH];
29985
+ }
29986
+ },
29987
+ {
29988
+ key: "itemCount",
29989
+ get: function get() {
29990
+ return this[LRU_LIST].length;
29991
+ }
29992
+ },
29993
+ {
29994
+ key: "rforEach",
29995
+ value: function rforEach(fn, thisp) {
29996
+ thisp = thisp || this;
29997
+ for(var walker = this[LRU_LIST].tail; walker !== null;){
29998
+ var prev = walker.prev;
29999
+ forEachStep(this, fn, walker, thisp);
30000
+ walker = prev;
30001
+ }
30002
+ }
30003
+ },
30004
+ {
30005
+ key: "forEach",
30006
+ value: function forEach(fn, thisp) {
30007
+ thisp = thisp || this;
30008
+ for(var walker = this[LRU_LIST].head; walker !== null;){
30009
+ var next = walker.next;
30010
+ forEachStep(this, fn, walker, thisp);
30011
+ walker = next;
30012
+ }
30013
+ }
30014
+ },
30015
+ {
30016
+ key: "keys",
30017
+ value: function keys() {
30018
+ return this[LRU_LIST].toArray().map(function(k) {
30019
+ return k.key;
30020
+ });
30021
+ }
30022
+ },
30023
+ {
30024
+ key: "values",
30025
+ value: function values() {
30026
+ return this[LRU_LIST].toArray().map(function(k) {
30027
+ return k.value;
30028
+ });
30029
+ }
30030
+ },
30031
+ {
30032
+ key: "reset",
30033
+ value: function reset() {
30034
+ var _this = this;
30035
+ if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
30036
+ this[LRU_LIST].forEach(function(hit) {
30037
+ return _this[DISPOSE](hit.key, hit.value);
30038
+ });
29399
30039
  }
30040
+ this[CACHE] = new Map() // hash of items by key
30041
+ ;
30042
+ this[LRU_LIST] = new Yallist() // list of items in order of use recency
30043
+ ;
30044
+ this[LENGTH] = 0 // length of items in the list
30045
+ ;
30046
+ }
30047
+ },
30048
+ {
30049
+ key: "dump",
30050
+ value: function dump() {
30051
+ var _this = this;
30052
+ return this[LRU_LIST].map(function(hit) {
30053
+ return isStale(_this, hit) ? false : {
30054
+ k: hit.key,
30055
+ v: hit.value,
30056
+ e: hit.now + (hit.maxAge || 0)
30057
+ };
30058
+ }).toArray().filter(function(h) {
30059
+ return h;
30060
+ });
29400
30061
  }
29401
30062
  },
29402
30063
  {
29403
- key: "delete",
29404
- value: function _delete(key) {
29405
- return this.map.delete(key);
30064
+ key: "dumpLru",
30065
+ value: function dumpLru() {
30066
+ return this[LRU_LIST];
29406
30067
  }
29407
30068
  },
29408
30069
  {
29409
30070
  key: "set",
29410
- value: function set(key, value) {
29411
- var deleted = this.delete(key);
29412
- if (!deleted && value !== undefined) {
29413
- // If cache is full, delete the least recently used item
29414
- if (this.map.size >= this.max) {
29415
- var firstKey = this.map.keys().next().value;
29416
- this.delete(firstKey);
30071
+ value: function set(key, value, maxAge) {
30072
+ maxAge = maxAge || this[MAX_AGE];
30073
+ if (maxAge && typeof maxAge !== "number") throw new TypeError("maxAge must be a number");
30074
+ var now = maxAge ? Date.now() : 0;
30075
+ var len = this[LENGTH_CALCULATOR](value, key);
30076
+ if (this[CACHE].has(key)) {
30077
+ if (len > this[MAX]) {
30078
+ del(this, this[CACHE].get(key));
30079
+ return false;
30080
+ }
30081
+ var node = this[CACHE].get(key);
30082
+ var item = node.value;
30083
+ // dispose of the old one before overwriting
30084
+ // split out into 2 ifs for better coverage tracking
30085
+ if (this[DISPOSE]) {
30086
+ if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value);
29417
30087
  }
29418
- this.map.set(key, value);
30088
+ item.now = now;
30089
+ item.maxAge = maxAge;
30090
+ item.value = value;
30091
+ this[LENGTH] += len - item.length;
30092
+ item.length = len;
30093
+ this.get(key);
30094
+ trim(this);
30095
+ return true;
29419
30096
  }
29420
- return this;
30097
+ var hit = new Entry(key, value, len, now, maxAge);
30098
+ // oversized objects fall out of cache automatically.
30099
+ if (hit.length > this[MAX]) {
30100
+ if (this[DISPOSE]) this[DISPOSE](key, value);
30101
+ return false;
30102
+ }
30103
+ this[LENGTH] += hit.length;
30104
+ this[LRU_LIST].unshift(hit);
30105
+ this[CACHE].set(key, this[LRU_LIST].head);
30106
+ trim(this);
30107
+ return true;
30108
+ }
30109
+ },
30110
+ {
30111
+ key: "has",
30112
+ value: function has(key) {
30113
+ if (!this[CACHE].has(key)) return false;
30114
+ var hit = this[CACHE].get(key).value;
30115
+ return !isStale(this, hit);
30116
+ }
30117
+ },
30118
+ {
30119
+ key: "get",
30120
+ value: function get1(key) {
30121
+ return get(this, key, true);
30122
+ }
30123
+ },
30124
+ {
30125
+ key: "peek",
30126
+ value: function peek(key) {
30127
+ return get(this, key, false);
30128
+ }
30129
+ },
30130
+ {
30131
+ key: "pop",
30132
+ value: function pop() {
30133
+ var node = this[LRU_LIST].tail;
30134
+ if (!node) return null;
30135
+ del(this, node);
30136
+ return node.value;
30137
+ }
30138
+ },
30139
+ {
30140
+ key: "del",
30141
+ value: function del1(key) {
30142
+ del(this, this[CACHE].get(key));
30143
+ }
30144
+ },
30145
+ {
30146
+ key: "load",
30147
+ value: function load(arr) {
30148
+ // reset the cache
30149
+ this.reset();
30150
+ var now = Date.now();
30151
+ // A previous serialized cache has the most recent items first
30152
+ for(var l = arr.length - 1; l >= 0; l--){
30153
+ var hit = arr[l];
30154
+ var expiresAt = hit.e || 0;
30155
+ if (expiresAt === 0) // the item was created without expiration in a non aged cache
30156
+ this.set(hit.k, hit.v);
30157
+ else {
30158
+ var maxAge = expiresAt - now;
30159
+ // dont add already expired items
30160
+ if (maxAge > 0) {
30161
+ this.set(hit.k, hit.v, maxAge);
30162
+ }
30163
+ }
30164
+ }
30165
+ }
30166
+ },
30167
+ {
30168
+ key: "prune",
30169
+ value: function prune() {
30170
+ var _this = this;
30171
+ this[CACHE].forEach(function(value, key) {
30172
+ return get(_this, key, false);
30173
+ });
29421
30174
  }
29422
30175
  }
29423
30176
  ]);
29424
30177
  return LRUCache;
29425
30178
  }();
29426
- var lrucache = LRUCache;
30179
+ var get = function(self, key, doUse) {
30180
+ var node = self[CACHE].get(key);
30181
+ if (node) {
30182
+ var hit = node.value;
30183
+ if (isStale(self, hit)) {
30184
+ del(self, node);
30185
+ if (!self[ALLOW_STALE]) return undefined;
30186
+ } else {
30187
+ if (doUse) {
30188
+ if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now();
30189
+ self[LRU_LIST].unshiftNode(node);
30190
+ }
30191
+ }
30192
+ return hit.value;
30193
+ }
30194
+ };
30195
+ var isStale = function(self, hit) {
30196
+ if (!hit || !hit.maxAge && !self[MAX_AGE]) return false;
30197
+ var diff = Date.now() - hit.now;
30198
+ return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
30199
+ };
30200
+ var trim = function(self) {
30201
+ if (self[LENGTH] > self[MAX]) {
30202
+ for(var walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null;){
30203
+ // We know that we're about to delete this one, and also
30204
+ // what the next least recently used key will be, so just
30205
+ // go ahead and set it now.
30206
+ var prev = walker.prev;
30207
+ del(self, walker);
30208
+ walker = prev;
30209
+ }
30210
+ }
30211
+ };
30212
+ var del = function(self, node) {
30213
+ if (node) {
30214
+ var hit = node.value;
30215
+ if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value);
30216
+ self[LENGTH] -= hit.length;
30217
+ self[CACHE].delete(hit.key);
30218
+ self[LRU_LIST].removeNode(node);
30219
+ }
30220
+ };
30221
+ var Entry = function Entry(key, value, length, now, maxAge) {
30222
+ _class_call_check$2(this, Entry);
30223
+ this.key = key;
30224
+ this.value = value;
30225
+ this.length = length;
30226
+ this.now = now;
30227
+ this.maxAge = maxAge || 0;
30228
+ };
30229
+ var forEachStep = function(self, fn, node, thisp) {
30230
+ var hit = node.value;
30231
+ if (isStale(self, hit)) {
30232
+ del(self, node);
30233
+ if (!self[ALLOW_STALE]) hit = undefined;
30234
+ }
30235
+ if (hit) fn.call(thisp, hit.value, hit.key, self);
30236
+ };
30237
+ var lruCache = LRUCache;
29427
30238
 
30239
+ // hoisted class for cyclic dependency
29428
30240
  function _array_like_to_array$1(arr, len) {
29429
30241
  if (len == null || len > arr.length) len = arr.length;
29430
30242
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -29476,8 +30288,6 @@ function _unsupported_iterable_to_array$1(o, minLen) {
29476
30288
  if (n === "Map" || n === "Set") return Array.from(n);
29477
30289
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
29478
30290
  }
29479
- var SPACE_CHARACTERS = /\s+/g;
29480
- // hoisted class for cyclic dependency
29481
30291
  var Range$b = /*#__PURE__*/ function() {
29482
30292
  function Range(range, options) {
29483
30293
  var _this = this;
@@ -29498,7 +30308,7 @@ var Range$b = /*#__PURE__*/ function() {
29498
30308
  range
29499
30309
  ]
29500
30310
  ];
29501
- this.formatted = undefined;
30311
+ this.format();
29502
30312
  return this;
29503
30313
  }
29504
30314
  this.options = options;
@@ -29507,7 +30317,7 @@ var Range$b = /*#__PURE__*/ function() {
29507
30317
  // First reduce all whitespace as much as possible so we do not have to rely
29508
30318
  // on potentially slow regexes like \s*. This is then stored and used for
29509
30319
  // future error messages as well.
29510
- this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
30320
+ this.raw = range.trim().split(/\s+/).join(" ");
29511
30321
  // First, split on ||
29512
30322
  this.set = this.raw.split("||")// map the range to a 2d array of comparators
29513
30323
  .map(function(r) {
@@ -29561,33 +30371,15 @@ var Range$b = /*#__PURE__*/ function() {
29561
30371
  }
29562
30372
  }
29563
30373
  }
29564
- this.formatted = undefined;
30374
+ this.format();
29565
30375
  }
29566
30376
  _create_class$1(Range, [
29567
- {
29568
- key: "range",
29569
- get: function get() {
29570
- if (this.formatted === undefined) {
29571
- this.formatted = "";
29572
- for(var i = 0; i < this.set.length; i++){
29573
- if (i > 0) {
29574
- this.formatted += "||";
29575
- }
29576
- var comps = this.set[i];
29577
- for(var k = 0; k < comps.length; k++){
29578
- if (k > 0) {
29579
- this.formatted += " ";
29580
- }
29581
- this.formatted += comps[k].toString().trim();
29582
- }
29583
- }
29584
- }
29585
- return this.formatted;
29586
- }
29587
- },
29588
30377
  {
29589
30378
  key: "format",
29590
30379
  value: function format() {
30380
+ this.range = this.set.map(function(comps) {
30381
+ return comps.join(" ").trim();
30382
+ }).join("||").trim();
29591
30383
  return this.range;
29592
30384
  }
29593
30385
  },
@@ -29722,8 +30514,10 @@ var Range$b = /*#__PURE__*/ function() {
29722
30514
  return Range;
29723
30515
  }();
29724
30516
  var range = Range$b;
29725
- var LRU = lrucache;
29726
- var cache = new LRU();
30517
+ var LRU = lruCache;
30518
+ var cache = new LRU({
30519
+ max: 1000
30520
+ });
29727
30521
  var parseOptions$1 = parseOptions_1;
29728
30522
  var Comparator$4 = comparator;
29729
30523
  var debug$1 = debug_1;
@@ -29947,9 +30741,8 @@ var replaceGTE0 = function(comp, options) {
29947
30741
  // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
29948
30742
  // 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
29949
30743
  // 1.2 - 3.4 => >=1.2.0 <3.5.0-0
29950
- // TODO build?
29951
30744
  var hyphenReplace = function(incPr) {
29952
- return function($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) {
30745
+ return function($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {
29953
30746
  if (isX(fM)) {
29954
30747
  from = "";
29955
30748
  } else if (isX(fm)) {