@vention/machine-logic-ui-sdk 0.23.2 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.esm.js +523 -474
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -51,10 +51,10 @@ var functionBindNative = !fails$h(function () {
51
51
 
52
52
  var NATIVE_BIND$2 = functionBindNative;
53
53
 
54
- var call$f = Function.prototype.call;
54
+ var call$g = Function.prototype.call;
55
55
 
56
- var functionCall = NATIVE_BIND$2 ? call$f.bind(call$f) : function () {
57
- return call$f.apply(call$f, arguments);
56
+ var functionCall = NATIVE_BIND$2 ? call$g.bind(call$g) : function () {
57
+ return call$g.apply(call$g, arguments);
58
58
  };
59
59
 
60
60
  var objectPropertyIsEnumerable = {};
@@ -85,22 +85,22 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
85
85
  var NATIVE_BIND$1 = functionBindNative;
86
86
 
87
87
  var FunctionPrototype$2 = Function.prototype;
88
- var call$e = FunctionPrototype$2.call;
89
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$e, call$e);
88
+ var call$f = FunctionPrototype$2.call;
89
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$f, call$f);
90
90
 
91
91
  var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
92
92
  return function () {
93
- return call$e.apply(fn, arguments);
93
+ return call$f.apply(fn, arguments);
94
94
  };
95
95
  };
96
96
 
97
97
  var uncurryThis$i = functionUncurryThis;
98
98
 
99
- var toString$8 = uncurryThis$i({}.toString);
99
+ var toString$9 = uncurryThis$i({}.toString);
100
100
  var stringSlice$6 = uncurryThis$i(''.slice);
101
101
 
102
102
  var classofRaw$2 = function (it) {
103
- return stringSlice$6(toString$8(it), 8, -1);
103
+ return stringSlice$6(toString$9(it), 8, -1);
104
104
  };
105
105
 
106
106
  var uncurryThis$h = functionUncurryThis;
@@ -121,27 +121,27 @@ var indexedObject = fails$g(function () {
121
121
 
122
122
  // we can't use just `it == null` since of `document.all` special case
123
123
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
124
- var isNullOrUndefined$3 = function (it) {
124
+ var isNullOrUndefined$4 = function (it) {
125
125
  return it === null || it === undefined;
126
126
  };
127
127
 
128
- var isNullOrUndefined$2 = isNullOrUndefined$3;
128
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
129
129
 
130
130
  var $TypeError$b = TypeError;
131
131
 
132
132
  // `RequireObjectCoercible` abstract operation
133
133
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
134
- var requireObjectCoercible$7 = function (it) {
135
- if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
134
+ var requireObjectCoercible$8 = function (it) {
135
+ if (isNullOrUndefined$3(it)) throw new $TypeError$b("Can't call method on " + it);
136
136
  return it;
137
137
  };
138
138
 
139
139
  // toObject with fallback for non-array-like ES3 strings
140
140
  var IndexedObject = indexedObject;
141
- var requireObjectCoercible$6 = requireObjectCoercible$7;
141
+ var requireObjectCoercible$7 = requireObjectCoercible$8;
142
142
 
143
143
  var toIndexedObject$5 = function (it) {
144
- return IndexedObject(requireObjectCoercible$6(it));
144
+ return IndexedObject(requireObjectCoercible$7(it));
145
145
  };
146
146
 
147
147
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
@@ -274,16 +274,16 @@ var aCallable$3 = function (argument) {
274
274
  };
275
275
 
276
276
  var aCallable$2 = aCallable$3;
277
- var isNullOrUndefined$1 = isNullOrUndefined$3;
277
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
278
278
 
279
279
  // `GetMethod` abstract operation
280
280
  // https://tc39.es/ecma262/#sec-getmethod
281
- var getMethod$3 = function (V, P) {
281
+ var getMethod$4 = function (V, P) {
282
282
  var func = V[P];
283
- return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
283
+ return isNullOrUndefined$2(func) ? undefined : aCallable$2(func);
284
284
  };
285
285
 
286
- var call$d = functionCall;
286
+ var call$e = functionCall;
287
287
  var isCallable$c = isCallable$h;
288
288
  var isObject$8 = isObject$9;
289
289
 
@@ -293,9 +293,9 @@ var $TypeError$9 = TypeError;
293
293
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
294
294
  var ordinaryToPrimitive$1 = function (input, pref) {
295
295
  var fn, val;
296
- if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
297
- if (isCallable$c(fn = input.valueOf) && !isObject$8(val = call$d(fn, input))) return val;
298
- if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
296
+ if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$8(val = call$e(fn, input))) return val;
297
+ if (isCallable$c(fn = input.valueOf) && !isObject$8(val = call$e(fn, input))) return val;
298
+ if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$8(val = call$e(fn, input))) return val;
299
299
  throw new $TypeError$9("Can't convert object to primitive value");
300
300
  };
301
301
 
@@ -336,14 +336,14 @@ var shared$4 = function (key, value) {
336
336
  return store$2[key] || (store$2[key] = value || {});
337
337
  };
338
338
 
339
- var requireObjectCoercible$5 = requireObjectCoercible$7;
339
+ var requireObjectCoercible$6 = requireObjectCoercible$8;
340
340
 
341
341
  var $Object$2 = Object;
342
342
 
343
343
  // `ToObject` abstract operation
344
344
  // https://tc39.es/ecma262/#sec-toobject
345
345
  var toObject$4 = function (argument) {
346
- return $Object$2(requireObjectCoercible$5(argument));
346
+ return $Object$2(requireObjectCoercible$6(argument));
347
347
  };
348
348
 
349
349
  var uncurryThis$f = functionUncurryThis;
@@ -362,10 +362,10 @@ var uncurryThis$e = functionUncurryThis;
362
362
 
363
363
  var id = 0;
364
364
  var postfix = Math.random();
365
- var toString$7 = uncurryThis$e(1.0.toString);
365
+ var toString$8 = uncurryThis$e(1.0.toString);
366
366
 
367
367
  var uid$2 = function (key) {
368
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$7(++id + postfix, 36);
368
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$8(++id + postfix, 36);
369
369
  };
370
370
 
371
371
  var globalThis$9 = globalThis_1;
@@ -387,10 +387,10 @@ var wellKnownSymbol$c = function (name) {
387
387
  } return WellKnownSymbolsStore[name];
388
388
  };
389
389
 
390
- var call$c = functionCall;
390
+ var call$d = functionCall;
391
391
  var isObject$7 = isObject$9;
392
392
  var isSymbol$1 = isSymbol$2;
393
- var getMethod$2 = getMethod$3;
393
+ var getMethod$3 = getMethod$4;
394
394
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
395
395
  var wellKnownSymbol$b = wellKnownSymbol$c;
396
396
 
@@ -401,11 +401,11 @@ var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
401
401
  // https://tc39.es/ecma262/#sec-toprimitive
402
402
  var toPrimitive$1 = function (input, pref) {
403
403
  if (!isObject$7(input) || isSymbol$1(input)) return input;
404
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
404
+ var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
405
405
  var result;
406
406
  if (exoticToPrim) {
407
407
  if (pref === undefined) pref = 'default';
408
- result = call$c(exoticToPrim, input, pref);
408
+ result = call$d(exoticToPrim, input, pref);
409
409
  if (!isObject$7(result) || isSymbol$1(result)) return result;
410
410
  throw new $TypeError$8("Can't convert object to primitive value");
411
411
  }
@@ -447,7 +447,7 @@ var ie8DomDefine = !DESCRIPTORS$9 && !fails$e(function () {
447
447
  });
448
448
 
449
449
  var DESCRIPTORS$8 = descriptors;
450
- var call$b = functionCall;
450
+ var call$c = functionCall;
451
451
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
452
452
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
453
453
  var toIndexedObject$4 = toIndexedObject$5;
@@ -466,7 +466,7 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 :
466
466
  if (IE8_DOM_DEFINE$1) try {
467
467
  return $getOwnPropertyDescriptor$1(O, P);
468
468
  } catch (error) { /* empty */ }
469
- if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$b(propertyIsEnumerableModule.f, O, P), O[P]);
469
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$c(propertyIsEnumerableModule.f, O, P), O[P]);
470
470
  };
471
471
 
472
472
  var objectDefineProperty = {};
@@ -490,7 +490,7 @@ var $String$3 = String;
490
490
  var $TypeError$7 = TypeError;
491
491
 
492
492
  // `Assert: Type(argument) is Object`
493
- var anObject$b = function (argument) {
493
+ var anObject$c = function (argument) {
494
494
  if (isObject$5(argument)) return argument;
495
495
  throw new $TypeError$7($String$3(argument) + ' is not an object');
496
496
  };
@@ -498,7 +498,7 @@ var anObject$b = function (argument) {
498
498
  var DESCRIPTORS$6 = descriptors;
499
499
  var IE8_DOM_DEFINE = ie8DomDefine;
500
500
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
501
- var anObject$a = anObject$b;
501
+ var anObject$b = anObject$c;
502
502
  var toPropertyKey = toPropertyKey$2;
503
503
 
504
504
  var $TypeError$6 = TypeError;
@@ -513,9 +513,9 @@ var WRITABLE = 'writable';
513
513
  // `Object.defineProperty` method
514
514
  // https://tc39.es/ecma262/#sec-object.defineproperty
515
515
  objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
516
- anObject$a(O);
516
+ anObject$b(O);
517
517
  P = toPropertyKey(P);
518
- anObject$a(Attributes);
518
+ anObject$b(Attributes);
519
519
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
520
520
  var current = $getOwnPropertyDescriptor(O, P);
521
521
  if (current && current[WRITABLE]) {
@@ -528,9 +528,9 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
528
528
  }
529
529
  } return $defineProperty(O, P, Attributes);
530
530
  } : $defineProperty : function defineProperty(O, P, Attributes) {
531
- anObject$a(O);
531
+ anObject$b(O);
532
532
  P = toPropertyKey(P);
533
- anObject$a(Attributes);
533
+ anObject$b(Attributes);
534
534
  if (IE8_DOM_DEFINE) try {
535
535
  return $defineProperty(O, P, Attributes);
536
536
  } catch (error) { /* empty */ }
@@ -801,17 +801,17 @@ var min$2 = Math.min;
801
801
 
802
802
  // `ToLength` abstract operation
803
803
  // https://tc39.es/ecma262/#sec-tolength
804
- var toLength$3 = function (argument) {
804
+ var toLength$4 = function (argument) {
805
805
  var len = toIntegerOrInfinity$3(argument);
806
806
  return len > 0 ? min$2(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
807
807
  };
808
808
 
809
- var toLength$2 = toLength$3;
809
+ var toLength$3 = toLength$4;
810
810
 
811
811
  // `LengthOfArrayLike` abstract operation
812
812
  // https://tc39.es/ecma262/#sec-lengthofarraylike
813
813
  var lengthOfArrayLike$2 = function (obj) {
814
- return toLength$2(obj.length);
814
+ return toLength$3(obj.length);
815
815
  };
816
816
 
817
817
  var toIndexedObject$3 = toIndexedObject$5;
@@ -901,13 +901,13 @@ var getBuiltIn$2 = getBuiltIn$4;
901
901
  var uncurryThis$a = functionUncurryThis;
902
902
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
903
903
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
904
- var anObject$9 = anObject$b;
904
+ var anObject$a = anObject$c;
905
905
 
906
906
  var concat$1 = uncurryThis$a([].concat);
907
907
 
908
908
  // all object keys, includes non-enumerable and symbols
909
909
  var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
910
- var keys = getOwnPropertyNamesModule.f(anObject$9(it));
910
+ var keys = getOwnPropertyNamesModule.f(anObject$a(it));
911
911
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
912
912
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
913
913
  };
@@ -1022,7 +1022,7 @@ var objectKeys$1 = Object.keys || function keys(O) {
1022
1022
  var DESCRIPTORS$2 = descriptors;
1023
1023
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1024
1024
  var definePropertyModule = objectDefineProperty;
1025
- var anObject$8 = anObject$b;
1025
+ var anObject$9 = anObject$c;
1026
1026
  var toIndexedObject$1 = toIndexedObject$5;
1027
1027
  var objectKeys = objectKeys$1;
1028
1028
 
@@ -1030,7 +1030,7 @@ var objectKeys = objectKeys$1;
1030
1030
  // https://tc39.es/ecma262/#sec-object.defineproperties
1031
1031
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1032
1032
  objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1033
- anObject$8(O);
1033
+ anObject$9(O);
1034
1034
  var props = toIndexedObject$1(Properties);
1035
1035
  var keys = objectKeys(Properties);
1036
1036
  var length = keys.length;
@@ -1045,7 +1045,7 @@ var getBuiltIn$1 = getBuiltIn$4;
1045
1045
  var html$1 = getBuiltIn$1('document', 'documentElement');
1046
1046
 
1047
1047
  /* global ActiveXObject -- old IE, WSH */
1048
- var anObject$7 = anObject$b;
1048
+ var anObject$8 = anObject$c;
1049
1049
  var definePropertiesModule = objectDefineProperties;
1050
1050
  var enumBugKeys = enumBugKeys$3;
1051
1051
  var hiddenKeys = hiddenKeys$4;
@@ -1120,7 +1120,7 @@ hiddenKeys[IE_PROTO$1] = true;
1120
1120
  var objectCreate = Object.create || function create(O, Properties) {
1121
1121
  var result;
1122
1122
  if (O !== null) {
1123
- EmptyConstructor[PROTOTYPE] = anObject$7(O);
1123
+ EmptyConstructor[PROTOTYPE] = anObject$8(O);
1124
1124
  result = new EmptyConstructor();
1125
1125
  EmptyConstructor[PROTOTYPE] = null;
1126
1126
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1309,7 +1309,7 @@ var aPossiblePrototype$1 = function (argument) {
1309
1309
  /* eslint-disable no-proto -- safe */
1310
1310
  var uncurryThisAccessor$1 = functionUncurryThisAccessor;
1311
1311
  var isObject$1 = isObject$9;
1312
- var requireObjectCoercible$4 = requireObjectCoercible$7;
1312
+ var requireObjectCoercible$5 = requireObjectCoercible$8;
1313
1313
  var aPossiblePrototype = aPossiblePrototype$1;
1314
1314
 
1315
1315
  // `Object.setPrototypeOf` method
@@ -1326,7 +1326,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1326
1326
  CORRECT_SETTER = test instanceof Array;
1327
1327
  } catch (error) { /* empty */ }
1328
1328
  return function setPrototypeOf(O, proto) {
1329
- requireObjectCoercible$4(O);
1329
+ requireObjectCoercible$5(O);
1330
1330
  aPossiblePrototype(proto);
1331
1331
  if (!isObject$1(O)) return O;
1332
1332
  if (CORRECT_SETTER) setter(O, proto);
@@ -1336,7 +1336,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1336
1336
  }() : undefined);
1337
1337
 
1338
1338
  var $$c = _export;
1339
- var call$a = functionCall;
1339
+ var call$b = functionCall;
1340
1340
  var FunctionName = functionName;
1341
1341
  var isCallable$4 = isCallable$h;
1342
1342
  var createIteratorConstructor = iteratorCreateConstructor;
@@ -1408,7 +1408,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1408
1408
  createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1409
1409
  } else {
1410
1410
  INCORRECT_VALUES_NAME = true;
1411
- defaultIterator = function values() { return call$a(nativeIterator, this); };
1411
+ defaultIterator = function values() { return call$b(nativeIterator, this); };
1412
1412
  }
1413
1413
  }
1414
1414
 
@@ -1545,17 +1545,17 @@ var classof$3 = classof$4;
1545
1545
 
1546
1546
  var $String = String;
1547
1547
 
1548
- var toString$6 = function (argument) {
1548
+ var toString$7 = function (argument) {
1549
1549
  if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1550
1550
  return $String(argument);
1551
1551
  };
1552
1552
 
1553
- var anObject$6 = anObject$b;
1553
+ var anObject$7 = anObject$c;
1554
1554
 
1555
1555
  // `RegExp.prototype.flags` getter implementation
1556
1556
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1557
1557
  var regexpFlags$1 = function () {
1558
- var that = anObject$6(this);
1558
+ var that = anObject$7(this);
1559
1559
  var result = '';
1560
1560
  if (that.hasIndices) result += 'd';
1561
1561
  if (that.global) result += 'g';
@@ -1568,6 +1568,186 @@ var regexpFlags$1 = function () {
1568
1568
  return result;
1569
1569
  };
1570
1570
 
1571
+ var fails$7 = fails$j;
1572
+ var globalThis$4 = globalThis_1;
1573
+
1574
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1575
+ var $RegExp$2 = globalThis$4.RegExp;
1576
+
1577
+ var UNSUPPORTED_Y$1 = fails$7(function () {
1578
+ var re = $RegExp$2('a', 'y');
1579
+ re.lastIndex = 2;
1580
+ return re.exec('abcd') !== null;
1581
+ });
1582
+
1583
+ // UC Browser bug
1584
+ // https://github.com/zloirock/core-js/issues/1008
1585
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$7(function () {
1586
+ return !$RegExp$2('a', 'y').sticky;
1587
+ });
1588
+
1589
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$7(function () {
1590
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1591
+ var re = $RegExp$2('^r', 'gy');
1592
+ re.lastIndex = 2;
1593
+ return re.exec('str') !== null;
1594
+ });
1595
+
1596
+ var regexpStickyHelpers = {
1597
+ BROKEN_CARET: BROKEN_CARET,
1598
+ MISSED_STICKY: MISSED_STICKY,
1599
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
1600
+ };
1601
+
1602
+ var fails$6 = fails$j;
1603
+ var globalThis$3 = globalThis_1;
1604
+
1605
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1606
+ var $RegExp$1 = globalThis$3.RegExp;
1607
+
1608
+ var regexpUnsupportedDotAll = fails$6(function () {
1609
+ var re = $RegExp$1('.', 's');
1610
+ return !(re.dotAll && re.test('\n') && re.flags === 's');
1611
+ });
1612
+
1613
+ var fails$5 = fails$j;
1614
+ var globalThis$2 = globalThis_1;
1615
+
1616
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1617
+ var $RegExp = globalThis$2.RegExp;
1618
+
1619
+ var regexpUnsupportedNcg = fails$5(function () {
1620
+ var re = $RegExp('(?<a>b)', 'g');
1621
+ return re.exec('b').groups.a !== 'b' ||
1622
+ 'b'.replace(re, '$<a>c') !== 'bc';
1623
+ });
1624
+
1625
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1626
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
1627
+ var call$a = functionCall;
1628
+ var uncurryThis$8 = functionUncurryThis;
1629
+ var toString$6 = toString$7;
1630
+ var regexpFlags = regexpFlags$1;
1631
+ var stickyHelpers = regexpStickyHelpers;
1632
+ var shared = shared$4;
1633
+ var create = objectCreate;
1634
+ var getInternalState = internalState.get;
1635
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1636
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1637
+
1638
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1639
+ var nativeExec = RegExp.prototype.exec;
1640
+ var patchedExec = nativeExec;
1641
+ var charAt$3 = uncurryThis$8(''.charAt);
1642
+ var indexOf = uncurryThis$8(''.indexOf);
1643
+ var replace$1 = uncurryThis$8(''.replace);
1644
+ var stringSlice$4 = uncurryThis$8(''.slice);
1645
+
1646
+ var UPDATES_LAST_INDEX_WRONG = (function () {
1647
+ var re1 = /a/;
1648
+ var re2 = /b*/g;
1649
+ call$a(nativeExec, re1, 'a');
1650
+ call$a(nativeExec, re2, 'a');
1651
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1652
+ })();
1653
+
1654
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1655
+
1656
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
1657
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1658
+
1659
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1660
+
1661
+ if (PATCH) {
1662
+ patchedExec = function exec(string) {
1663
+ var re = this;
1664
+ var state = getInternalState(re);
1665
+ var str = toString$6(string);
1666
+ var raw = state.raw;
1667
+ var result, reCopy, lastIndex, match, i, object, group;
1668
+
1669
+ if (raw) {
1670
+ raw.lastIndex = re.lastIndex;
1671
+ result = call$a(patchedExec, raw, str);
1672
+ re.lastIndex = raw.lastIndex;
1673
+ return result;
1674
+ }
1675
+
1676
+ var groups = state.groups;
1677
+ var sticky = UNSUPPORTED_Y && re.sticky;
1678
+ var flags = call$a(regexpFlags, re);
1679
+ var source = re.source;
1680
+ var charsAdded = 0;
1681
+ var strCopy = str;
1682
+
1683
+ if (sticky) {
1684
+ flags = replace$1(flags, 'y', '');
1685
+ if (indexOf(flags, 'g') === -1) {
1686
+ flags += 'g';
1687
+ }
1688
+
1689
+ strCopy = stringSlice$4(str, re.lastIndex);
1690
+ // Support anchored sticky behavior.
1691
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1692
+ source = '(?: ' + source + ')';
1693
+ strCopy = ' ' + strCopy;
1694
+ charsAdded++;
1695
+ }
1696
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
1697
+ // simulate the 'y' flag.
1698
+ reCopy = new RegExp('^(?:' + source + ')', flags);
1699
+ }
1700
+
1701
+ if (NPCG_INCLUDED) {
1702
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1703
+ }
1704
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1705
+
1706
+ match = call$a(nativeExec, sticky ? reCopy : re, strCopy);
1707
+
1708
+ if (sticky) {
1709
+ if (match) {
1710
+ match.input = stringSlice$4(match.input, charsAdded);
1711
+ match[0] = stringSlice$4(match[0], charsAdded);
1712
+ match.index = re.lastIndex;
1713
+ re.lastIndex += match[0].length;
1714
+ } else re.lastIndex = 0;
1715
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
1716
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1717
+ }
1718
+ if (NPCG_INCLUDED && match && match.length > 1) {
1719
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
1720
+ // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1721
+ call$a(nativeReplace, match[0], reCopy, function () {
1722
+ for (i = 1; i < arguments.length - 2; i++) {
1723
+ if (arguments[i] === undefined) match[i] = undefined;
1724
+ }
1725
+ });
1726
+ }
1727
+
1728
+ if (match && groups) {
1729
+ match.groups = object = create(null);
1730
+ for (i = 0; i < groups.length; i++) {
1731
+ group = groups[i];
1732
+ object[group[0]] = match[group[1]];
1733
+ }
1734
+ }
1735
+
1736
+ return match;
1737
+ };
1738
+ }
1739
+
1740
+ var regexpExec$2 = patchedExec;
1741
+
1742
+ var $$b = _export;
1743
+ var exec = regexpExec$2;
1744
+
1745
+ // `RegExp.prototype.exec` method
1746
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1747
+ $$b({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
1748
+ exec: exec
1749
+ });
1750
+
1571
1751
  var call$9 = functionCall;
1572
1752
  var hasOwn = hasOwnProperty_1;
1573
1753
  var isPrototypeOf = objectIsPrototypeOf;
@@ -1583,16 +1763,16 @@ var regexpGetFlags = function (R) {
1583
1763
 
1584
1764
  var PROPER_FUNCTION_NAME = functionName.PROPER;
1585
1765
  var defineBuiltIn$1 = defineBuiltIn$5;
1586
- var anObject$5 = anObject$b;
1587
- var $toString = toString$6;
1588
- var fails$7 = fails$j;
1766
+ var anObject$6 = anObject$c;
1767
+ var $toString = toString$7;
1768
+ var fails$4 = fails$j;
1589
1769
  var getRegExpFlags = regexpGetFlags;
1590
1770
 
1591
1771
  var TO_STRING = 'toString';
1592
1772
  var RegExpPrototype$1 = RegExp.prototype;
1593
1773
  var nativeToString = RegExpPrototype$1[TO_STRING];
1594
1774
 
1595
- var NOT_GENERIC = fails$7(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
1775
+ var NOT_GENERIC = fails$4(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
1596
1776
  // FF44- RegExp#toString has a wrong name
1597
1777
  var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
1598
1778
 
@@ -1600,7 +1780,7 @@ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
1600
1780
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1601
1781
  if (NOT_GENERIC || INCORRECT_NAME) {
1602
1782
  defineBuiltIn$1(RegExpPrototype$1, TO_STRING, function toString() {
1603
- var R = anObject$5(this);
1783
+ var R = anObject$6(this);
1604
1784
  var pattern = $toString(R.source);
1605
1785
  var flags = $toString(getRegExpFlags(R));
1606
1786
  return '/' + pattern + '/' + flags;
@@ -1646,95 +1826,285 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
1646
1826
  } return false;
1647
1827
  };
1648
1828
 
1649
- var $$b = _export;
1650
- var uncurryThis$8 = functionUncurryThis;
1829
+ var $$a = _export;
1830
+ var uncurryThis$7 = functionUncurryThis;
1651
1831
  var notARegExp$1 = notARegexp;
1652
- var requireObjectCoercible$3 = requireObjectCoercible$7;
1653
- var toString$5 = toString$6;
1832
+ var requireObjectCoercible$4 = requireObjectCoercible$8;
1833
+ var toString$5 = toString$7;
1654
1834
  var correctIsRegExpLogic$1 = correctIsRegexpLogic;
1655
1835
 
1656
- var stringIndexOf$1 = uncurryThis$8(''.indexOf);
1836
+ var stringIndexOf$1 = uncurryThis$7(''.indexOf);
1657
1837
 
1658
1838
  // `String.prototype.includes` method
1659
1839
  // https://tc39.es/ecma262/#sec-string.prototype.includes
1660
- $$b({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
1840
+ $$a({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
1661
1841
  includes: function includes(searchString /* , position = 0 */) {
1662
1842
  return !!~stringIndexOf$1(
1663
- toString$5(requireObjectCoercible$3(this)),
1843
+ toString$5(requireObjectCoercible$4(this)),
1664
1844
  toString$5(notARegExp$1(searchString)),
1665
1845
  arguments.length > 1 ? arguments[1] : undefined
1666
1846
  );
1667
1847
  }
1668
1848
  });
1669
1849
 
1670
- // iterable DOM collections
1671
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1672
- var domIterables = {
1673
- CSSRuleList: 0,
1674
- CSSStyleDeclaration: 0,
1675
- CSSValueList: 0,
1676
- ClientRectList: 0,
1677
- DOMRectList: 0,
1678
- DOMStringList: 0,
1679
- DOMTokenList: 1,
1680
- DataTransferItemList: 0,
1681
- FileList: 0,
1682
- HTMLAllCollection: 0,
1683
- HTMLCollection: 0,
1684
- HTMLFormElement: 0,
1685
- HTMLSelectElement: 0,
1686
- MediaList: 0,
1687
- MimeTypeArray: 0,
1688
- NamedNodeMap: 0,
1689
- NodeList: 1,
1690
- PaintRequestList: 0,
1691
- Plugin: 0,
1692
- PluginArray: 0,
1693
- SVGLengthList: 0,
1694
- SVGNumberList: 0,
1695
- SVGPathSegList: 0,
1696
- SVGPointList: 0,
1697
- SVGStringList: 0,
1698
- SVGTransformList: 0,
1699
- SourceBufferList: 0,
1700
- StyleSheetList: 0,
1701
- TextTrackCueList: 0,
1702
- TextTrackList: 0,
1703
- TouchList: 0
1704
- };
1850
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1705
1851
 
1706
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1707
- var documentCreateElement = documentCreateElement$2;
1852
+ var call$8 = functionCall;
1853
+ var defineBuiltIn = defineBuiltIn$5;
1854
+ var regexpExec$1 = regexpExec$2;
1855
+ var fails$3 = fails$j;
1856
+ var wellKnownSymbol$2 = wellKnownSymbol$c;
1857
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1708
1858
 
1709
- var classList = documentCreateElement('span').classList;
1710
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1859
+ var SPECIES = wellKnownSymbol$2('species');
1860
+ var RegExpPrototype = RegExp.prototype;
1711
1861
 
1712
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1862
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1863
+ var SYMBOL = wellKnownSymbol$2(KEY);
1713
1864
 
1714
- var globalThis$4 = globalThis_1;
1715
- var DOMIterables = domIterables;
1716
- var DOMTokenListPrototype = domTokenListPrototype;
1717
- var ArrayIteratorMethods = es_array_iterator;
1718
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1719
- var setToStringTag = setToStringTag$3;
1720
- var wellKnownSymbol$2 = wellKnownSymbol$c;
1865
+ var DELEGATES_TO_SYMBOL = !fails$3(function () {
1866
+ // String methods call symbol-named RegExp methods
1867
+ var O = {};
1868
+ O[SYMBOL] = function () { return 7; };
1869
+ return ''[KEY](O) !== 7;
1870
+ });
1721
1871
 
1722
- var ITERATOR = wellKnownSymbol$2('iterator');
1723
- var ArrayValues = ArrayIteratorMethods.values;
1872
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function () {
1873
+ // Symbol-named RegExp methods call .exec
1874
+ var execCalled = false;
1875
+ var re = /a/;
1724
1876
 
1725
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1726
- if (CollectionPrototype) {
1727
- // some Chrome versions have non-configurable methods on DOMTokenList
1728
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1729
- createNonEnumerableProperty$1(CollectionPrototype, ITERATOR, ArrayValues);
1730
- } catch (error) {
1731
- CollectionPrototype[ITERATOR] = ArrayValues;
1877
+ if (KEY === 'split') {
1878
+ // We can't use real regex here since it causes deoptimization
1879
+ // and serious performance degradation in V8
1880
+ // https://github.com/zloirock/core-js/issues/306
1881
+ re = {};
1882
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
1883
+ // a new one. We need to return the patched regex when creating the new one.
1884
+ re.constructor = {};
1885
+ re.constructor[SPECIES] = function () { return re; };
1886
+ re.flags = '';
1887
+ re[SYMBOL] = /./[SYMBOL];
1888
+ }
1889
+
1890
+ re.exec = function () {
1891
+ execCalled = true;
1892
+ return null;
1893
+ };
1894
+
1895
+ re[SYMBOL]('');
1896
+ return !execCalled;
1897
+ });
1898
+
1899
+ if (
1900
+ !DELEGATES_TO_SYMBOL ||
1901
+ !DELEGATES_TO_EXEC ||
1902
+ FORCED
1903
+ ) {
1904
+ var nativeRegExpMethod = /./[SYMBOL];
1905
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1906
+ var $exec = regexp.exec;
1907
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
1908
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1909
+ // The native String method already delegates to @@method (this
1910
+ // polyfilled function), leasing to infinite recursion.
1911
+ // We avoid it by directly calling the native @@method method.
1912
+ return { done: true, value: call$8(nativeRegExpMethod, regexp, str, arg2) };
1913
+ }
1914
+ return { done: true, value: call$8(nativeMethod, str, regexp, arg2) };
1915
+ }
1916
+ return { done: false };
1917
+ });
1918
+
1919
+ defineBuiltIn(String.prototype, KEY, methods[0]);
1920
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
1921
+ }
1922
+
1923
+ if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true);
1924
+ };
1925
+
1926
+ var uncurryThis$6 = functionUncurryThis;
1927
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$5;
1928
+ var toString$4 = toString$7;
1929
+ var requireObjectCoercible$3 = requireObjectCoercible$8;
1930
+
1931
+ var charAt$2 = uncurryThis$6(''.charAt);
1932
+ var charCodeAt = uncurryThis$6(''.charCodeAt);
1933
+ var stringSlice$3 = uncurryThis$6(''.slice);
1934
+
1935
+ var createMethod = function (CONVERT_TO_STRING) {
1936
+ return function ($this, pos) {
1937
+ var S = toString$4(requireObjectCoercible$3($this));
1938
+ var position = toIntegerOrInfinity$2(pos);
1939
+ var size = S.length;
1940
+ var first, second;
1941
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1942
+ first = charCodeAt(S, position);
1943
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
1944
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1945
+ ? CONVERT_TO_STRING
1946
+ ? charAt$2(S, position)
1947
+ : first
1948
+ : CONVERT_TO_STRING
1949
+ ? stringSlice$3(S, position, position + 2)
1950
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1951
+ };
1952
+ };
1953
+
1954
+ var stringMultibyte = {
1955
+ // `String.prototype.codePointAt` method
1956
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1957
+ codeAt: createMethod(false),
1958
+ // `String.prototype.at` method
1959
+ // https://github.com/mathiasbynens/String.prototype.at
1960
+ charAt: createMethod(true)
1961
+ };
1962
+
1963
+ var charAt$1 = stringMultibyte.charAt;
1964
+
1965
+ // `AdvanceStringIndex` abstract operation
1966
+ // https://tc39.es/ecma262/#sec-advancestringindex
1967
+ var advanceStringIndex$2 = function (S, index, unicode) {
1968
+ return index + (unicode ? charAt$1(S, index).length : 1);
1969
+ };
1970
+
1971
+ var call$7 = functionCall;
1972
+ var anObject$5 = anObject$c;
1973
+ var isCallable$2 = isCallable$h;
1974
+ var classof$1 = classofRaw$2;
1975
+ var regexpExec = regexpExec$2;
1976
+
1977
+ var $TypeError$3 = TypeError;
1978
+
1979
+ // `RegExpExec` abstract operation
1980
+ // https://tc39.es/ecma262/#sec-regexpexec
1981
+ var regexpExecAbstract = function (R, S) {
1982
+ var exec = R.exec;
1983
+ if (isCallable$2(exec)) {
1984
+ var result = call$7(exec, R, S);
1985
+ if (result !== null) anObject$5(result);
1986
+ return result;
1987
+ }
1988
+ if (classof$1(R) === 'RegExp') return call$7(regexpExec, R, S);
1989
+ throw new $TypeError$3('RegExp#exec called on incompatible receiver');
1990
+ };
1991
+
1992
+ var call$6 = functionCall;
1993
+ var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
1994
+ var anObject$4 = anObject$c;
1995
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
1996
+ var toLength$2 = toLength$4;
1997
+ var toString$3 = toString$7;
1998
+ var requireObjectCoercible$2 = requireObjectCoercible$8;
1999
+ var getMethod$2 = getMethod$4;
2000
+ var advanceStringIndex$1 = advanceStringIndex$2;
2001
+ var regExpExec$1 = regexpExecAbstract;
2002
+
2003
+ // @@match logic
2004
+ fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCallNative) {
2005
+ return [
2006
+ // `String.prototype.match` method
2007
+ // https://tc39.es/ecma262/#sec-string.prototype.match
2008
+ function match(regexp) {
2009
+ var O = requireObjectCoercible$2(this);
2010
+ var matcher = isNullOrUndefined$1(regexp) ? undefined : getMethod$2(regexp, MATCH);
2011
+ return matcher ? call$6(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$3(O));
2012
+ },
2013
+ // `RegExp.prototype[@@match]` method
2014
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
2015
+ function (string) {
2016
+ var rx = anObject$4(this);
2017
+ var S = toString$3(string);
2018
+ var res = maybeCallNative(nativeMatch, rx, S);
2019
+
2020
+ if (res.done) return res.value;
2021
+
2022
+ if (!rx.global) return regExpExec$1(rx, S);
2023
+
2024
+ var fullUnicode = rx.unicode;
2025
+ rx.lastIndex = 0;
2026
+ var A = [];
2027
+ var n = 0;
2028
+ var result;
2029
+ while ((result = regExpExec$1(rx, S)) !== null) {
2030
+ var matchStr = toString$3(result[0]);
2031
+ A[n] = matchStr;
2032
+ if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$2(rx.lastIndex), fullUnicode);
2033
+ n++;
2034
+ }
2035
+ return n === 0 ? null : A;
2036
+ }
2037
+ ];
2038
+ });
2039
+
2040
+ // iterable DOM collections
2041
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2042
+ var domIterables = {
2043
+ CSSRuleList: 0,
2044
+ CSSStyleDeclaration: 0,
2045
+ CSSValueList: 0,
2046
+ ClientRectList: 0,
2047
+ DOMRectList: 0,
2048
+ DOMStringList: 0,
2049
+ DOMTokenList: 1,
2050
+ DataTransferItemList: 0,
2051
+ FileList: 0,
2052
+ HTMLAllCollection: 0,
2053
+ HTMLCollection: 0,
2054
+ HTMLFormElement: 0,
2055
+ HTMLSelectElement: 0,
2056
+ MediaList: 0,
2057
+ MimeTypeArray: 0,
2058
+ NamedNodeMap: 0,
2059
+ NodeList: 1,
2060
+ PaintRequestList: 0,
2061
+ Plugin: 0,
2062
+ PluginArray: 0,
2063
+ SVGLengthList: 0,
2064
+ SVGNumberList: 0,
2065
+ SVGPathSegList: 0,
2066
+ SVGPointList: 0,
2067
+ SVGStringList: 0,
2068
+ SVGTransformList: 0,
2069
+ SourceBufferList: 0,
2070
+ StyleSheetList: 0,
2071
+ TextTrackCueList: 0,
2072
+ TextTrackList: 0,
2073
+ TouchList: 0
2074
+ };
2075
+
2076
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2077
+ var documentCreateElement = documentCreateElement$2;
2078
+
2079
+ var classList = documentCreateElement('span').classList;
2080
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2081
+
2082
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2083
+
2084
+ var globalThis$1 = globalThis_1;
2085
+ var DOMIterables = domIterables;
2086
+ var DOMTokenListPrototype = domTokenListPrototype;
2087
+ var ArrayIteratorMethods = es_array_iterator;
2088
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
2089
+ var setToStringTag = setToStringTag$3;
2090
+ var wellKnownSymbol$1 = wellKnownSymbol$c;
2091
+
2092
+ var ITERATOR = wellKnownSymbol$1('iterator');
2093
+ var ArrayValues = ArrayIteratorMethods.values;
2094
+
2095
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2096
+ if (CollectionPrototype) {
2097
+ // some Chrome versions have non-configurable methods on DOMTokenList
2098
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2099
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2100
+ } catch (error) {
2101
+ CollectionPrototype[ITERATOR] = ArrayValues;
1732
2102
  }
1733
2103
  setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
1734
2104
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1735
2105
  // some Chrome versions have non-configurable methods on DOMTokenList
1736
2106
  if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1737
- createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2107
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1738
2108
  } catch (error) {
1739
2109
  CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1740
2110
  }
@@ -1743,7 +2113,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1743
2113
  };
1744
2114
 
1745
2115
  for (var COLLECTION_NAME in DOMIterables) {
1746
- handlePrototype(globalThis$4[COLLECTION_NAME] && globalThis$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
2116
+ handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
1747
2117
  }
1748
2118
 
1749
2119
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -1818,30 +2188,25 @@ const VirtualKeyboard = () => {
1818
2188
  const virtualKeyboardRef = useRef(null);
1819
2189
  const keyboardContainerRef = useRef(null);
1820
2190
  useEffect(function handleClickListeners() {
1821
- function handleClickOutside(event) {
1822
- if (keyboardContainerRef.current && !keyboardContainerRef.current.contains(event.target)) {
1823
- setIsKeyboardVisible(false);
1824
- }
1825
- }
1826
2191
  function handleMouseOrTouchUp(event) {
1827
2192
  if (isSubmitPressed) {
1828
2193
  event.preventDefault();
1829
2194
  setIsKeyboardVisible(false);
1830
2195
  setIsSubmitPressed(false);
2196
+ return;
2197
+ }
2198
+ if (keyboardContainerRef.current && !keyboardContainerRef.current.contains(event.target) && (document.activeElement == null || document.activeElement.tagName !== "INPUT")) {
2199
+ setIsKeyboardVisible(false);
1831
2200
  }
1832
2201
  }
1833
- document.addEventListener("mousedown", handleClickOutside);
1834
- document.addEventListener("touchstart", handleClickOutside);
1835
2202
  document.addEventListener("mouseup", handleMouseOrTouchUp);
1836
2203
  document.addEventListener("touchend", handleMouseOrTouchUp);
1837
2204
  return () => {
1838
- document.removeEventListener("mousedown", handleClickOutside);
1839
- document.removeEventListener("touchstart", handleClickOutside);
1840
2205
  document.removeEventListener("mouseup", handleMouseOrTouchUp);
1841
2206
  document.removeEventListener("touchend", handleMouseOrTouchUp);
1842
2207
  };
1843
2208
  }, [isSubmitPressed]);
1844
- useEffect(function showOrHideKeyboard() {
2209
+ useEffect(function showKeyboard() {
1845
2210
  // The keyboard will appear/disappear on mouse down
1846
2211
  // However, if the user is clicking something, like a submit button or the input itself, the mouse up will happen a few milliseconds after the keyboard is shown/hidden
1847
2212
  // The layout might shift, the page might scroll and the user might misclick because of that.
@@ -1867,6 +2232,7 @@ const VirtualKeyboard = () => {
1867
2232
  }, [isKeyboardVisible, focusedTextInput]);
1868
2233
  useEffect(function attachToFocusedTextInput() {
1869
2234
  const setFocusedInputIfFocusedElementIsInput = event => {
2235
+ var _a;
1870
2236
  const eventTarget = event.target;
1871
2237
  if (eventTarget.type === "number") {
1872
2238
  console.warn("The VirtualKeyboard cannot support an input of type number. Use type 'tel' instead.", eventTarget);
@@ -1878,6 +2244,7 @@ const VirtualKeyboard = () => {
1878
2244
  setKeyboardLayoutName(KeyboardLayoutName.DEFAULT);
1879
2245
  setFocusedTextInput(eventTarget);
1880
2246
  setInitialInputValue(eventTarget.value);
2247
+ (_a = virtualKeyboardRef.current) === null || _a === void 0 ? void 0 : _a.setInput(eventTarget.value);
1881
2248
  }
1882
2249
  };
1883
2250
  document.addEventListener("focus", setFocusedInputIfFocusedElementIsInput, {
@@ -1963,7 +2330,11 @@ const VirtualKeyboard = () => {
1963
2330
  setKeyboardLayoutName(toggleLayout(keyboardLayoutName));
1964
2331
  setToggleLayoutOnInput(false);
1965
2332
  }
1966
- setInputValue(focusedTextInput, newValue, virtualKeyboardRef.current.caretPosition);
2333
+ // For number inputs only:
2334
+ // If you enter - or . more than once, it will take the most recent character as the input value (same as a normal keyboard)
2335
+ const isNewValueOnlyDashesAndPoints = newValue.match("^[.-]{2,}$");
2336
+ const isNumberInput = focusedTextInput.type === "tel" || focusedTextInput.type === "number";
2337
+ setInputValue(focusedTextInput, isNewValueOnlyDashesAndPoints && isNumberInput ? newValue.charAt(newValue.length - 1) : newValue, virtualKeyboardRef.current.caretPosition);
1967
2338
  };
1968
2339
  const handleKeyPress = keyboardKey => {
1969
2340
  if (focusedTextInput === undefined || virtualKeyboardRef.current === null) {
@@ -2073,318 +2444,17 @@ function isTextSelected(inputElement) {
2073
2444
  }
2074
2445
  }
2075
2446
 
2076
- var fails$6 = fails$j;
2077
- var globalThis$3 = globalThis_1;
2078
-
2079
- // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2080
- var $RegExp$2 = globalThis$3.RegExp;
2081
-
2082
- var UNSUPPORTED_Y$1 = fails$6(function () {
2083
- var re = $RegExp$2('a', 'y');
2084
- re.lastIndex = 2;
2085
- return re.exec('abcd') !== null;
2086
- });
2087
-
2088
- // UC Browser bug
2089
- // https://github.com/zloirock/core-js/issues/1008
2090
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$6(function () {
2091
- return !$RegExp$2('a', 'y').sticky;
2092
- });
2093
-
2094
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$6(function () {
2095
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2096
- var re = $RegExp$2('^r', 'gy');
2097
- re.lastIndex = 2;
2098
- return re.exec('str') !== null;
2099
- });
2100
-
2101
- var regexpStickyHelpers = {
2102
- BROKEN_CARET: BROKEN_CARET,
2103
- MISSED_STICKY: MISSED_STICKY,
2104
- UNSUPPORTED_Y: UNSUPPORTED_Y$1
2105
- };
2106
-
2107
- var fails$5 = fails$j;
2108
- var globalThis$2 = globalThis_1;
2109
-
2110
- // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
2111
- var $RegExp$1 = globalThis$2.RegExp;
2112
-
2113
- var regexpUnsupportedDotAll = fails$5(function () {
2114
- var re = $RegExp$1('.', 's');
2115
- return !(re.dotAll && re.test('\n') && re.flags === 's');
2116
- });
2117
-
2118
- var fails$4 = fails$j;
2119
- var globalThis$1 = globalThis_1;
2120
-
2121
- // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2122
- var $RegExp = globalThis$1.RegExp;
2123
-
2124
- var regexpUnsupportedNcg = fails$4(function () {
2125
- var re = $RegExp('(?<a>b)', 'g');
2126
- return re.exec('b').groups.a !== 'b' ||
2127
- 'b'.replace(re, '$<a>c') !== 'bc';
2128
- });
2129
-
2130
- /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2131
- /* eslint-disable regexp/no-useless-quantifier -- testing */
2132
- var call$8 = functionCall;
2133
- var uncurryThis$7 = functionUncurryThis;
2134
- var toString$4 = toString$6;
2135
- var regexpFlags = regexpFlags$1;
2136
- var stickyHelpers = regexpStickyHelpers;
2137
- var shared = shared$4;
2138
- var create = objectCreate;
2139
- var getInternalState = internalState.get;
2140
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
2141
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2142
-
2143
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
2144
- var nativeExec = RegExp.prototype.exec;
2145
- var patchedExec = nativeExec;
2146
- var charAt$3 = uncurryThis$7(''.charAt);
2147
- var indexOf = uncurryThis$7(''.indexOf);
2148
- var replace$1 = uncurryThis$7(''.replace);
2149
- var stringSlice$4 = uncurryThis$7(''.slice);
2150
-
2151
- var UPDATES_LAST_INDEX_WRONG = (function () {
2152
- var re1 = /a/;
2153
- var re2 = /b*/g;
2154
- call$8(nativeExec, re1, 'a');
2155
- call$8(nativeExec, re2, 'a');
2156
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
2157
- })();
2158
-
2159
- var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
2160
-
2161
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
2162
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2163
-
2164
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
2165
-
2166
- if (PATCH) {
2167
- patchedExec = function exec(string) {
2168
- var re = this;
2169
- var state = getInternalState(re);
2170
- var str = toString$4(string);
2171
- var raw = state.raw;
2172
- var result, reCopy, lastIndex, match, i, object, group;
2173
-
2174
- if (raw) {
2175
- raw.lastIndex = re.lastIndex;
2176
- result = call$8(patchedExec, raw, str);
2177
- re.lastIndex = raw.lastIndex;
2178
- return result;
2179
- }
2180
-
2181
- var groups = state.groups;
2182
- var sticky = UNSUPPORTED_Y && re.sticky;
2183
- var flags = call$8(regexpFlags, re);
2184
- var source = re.source;
2185
- var charsAdded = 0;
2186
- var strCopy = str;
2187
-
2188
- if (sticky) {
2189
- flags = replace$1(flags, 'y', '');
2190
- if (indexOf(flags, 'g') === -1) {
2191
- flags += 'g';
2192
- }
2193
-
2194
- strCopy = stringSlice$4(str, re.lastIndex);
2195
- // Support anchored sticky behavior.
2196
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
2197
- source = '(?: ' + source + ')';
2198
- strCopy = ' ' + strCopy;
2199
- charsAdded++;
2200
- }
2201
- // ^(? + rx + ) is needed, in combination with some str slicing, to
2202
- // simulate the 'y' flag.
2203
- reCopy = new RegExp('^(?:' + source + ')', flags);
2204
- }
2205
-
2206
- if (NPCG_INCLUDED) {
2207
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
2208
- }
2209
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2210
-
2211
- match = call$8(nativeExec, sticky ? reCopy : re, strCopy);
2212
-
2213
- if (sticky) {
2214
- if (match) {
2215
- match.input = stringSlice$4(match.input, charsAdded);
2216
- match[0] = stringSlice$4(match[0], charsAdded);
2217
- match.index = re.lastIndex;
2218
- re.lastIndex += match[0].length;
2219
- } else re.lastIndex = 0;
2220
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
2221
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
2222
- }
2223
- if (NPCG_INCLUDED && match && match.length > 1) {
2224
- // Fix browsers whose `exec` methods don't consistently return `undefined`
2225
- // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
2226
- call$8(nativeReplace, match[0], reCopy, function () {
2227
- for (i = 1; i < arguments.length - 2; i++) {
2228
- if (arguments[i] === undefined) match[i] = undefined;
2229
- }
2230
- });
2231
- }
2232
-
2233
- if (match && groups) {
2234
- match.groups = object = create(null);
2235
- for (i = 0; i < groups.length; i++) {
2236
- group = groups[i];
2237
- object[group[0]] = match[group[1]];
2238
- }
2239
- }
2240
-
2241
- return match;
2242
- };
2243
- }
2244
-
2245
- var regexpExec$2 = patchedExec;
2246
-
2247
- var $$a = _export;
2248
- var exec = regexpExec$2;
2249
-
2250
- // `RegExp.prototype.exec` method
2251
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2252
- $$a({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2253
- exec: exec
2254
- });
2255
-
2256
2447
  var NATIVE_BIND = functionBindNative;
2257
2448
 
2258
2449
  var FunctionPrototype = Function.prototype;
2259
2450
  var apply$1 = FunctionPrototype.apply;
2260
- var call$7 = FunctionPrototype.call;
2451
+ var call$5 = FunctionPrototype.call;
2261
2452
 
2262
2453
  // eslint-disable-next-line es/no-reflect -- safe
2263
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$7.bind(apply$1) : function () {
2264
- return call$7.apply(apply$1, arguments);
2454
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$5.bind(apply$1) : function () {
2455
+ return call$5.apply(apply$1, arguments);
2265
2456
  });
2266
2457
 
2267
- // TODO: Remove from `core-js@4` since it's moved to entry points
2268
-
2269
- var call$6 = functionCall;
2270
- var defineBuiltIn = defineBuiltIn$5;
2271
- var regexpExec$1 = regexpExec$2;
2272
- var fails$3 = fails$j;
2273
- var wellKnownSymbol$1 = wellKnownSymbol$c;
2274
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
2275
-
2276
- var SPECIES = wellKnownSymbol$1('species');
2277
- var RegExpPrototype = RegExp.prototype;
2278
-
2279
- var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2280
- var SYMBOL = wellKnownSymbol$1(KEY);
2281
-
2282
- var DELEGATES_TO_SYMBOL = !fails$3(function () {
2283
- // String methods call symbol-named RegExp methods
2284
- var O = {};
2285
- O[SYMBOL] = function () { return 7; };
2286
- return ''[KEY](O) !== 7;
2287
- });
2288
-
2289
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function () {
2290
- // Symbol-named RegExp methods call .exec
2291
- var execCalled = false;
2292
- var re = /a/;
2293
-
2294
- if (KEY === 'split') {
2295
- // We can't use real regex here since it causes deoptimization
2296
- // and serious performance degradation in V8
2297
- // https://github.com/zloirock/core-js/issues/306
2298
- re = {};
2299
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
2300
- // a new one. We need to return the patched regex when creating the new one.
2301
- re.constructor = {};
2302
- re.constructor[SPECIES] = function () { return re; };
2303
- re.flags = '';
2304
- re[SYMBOL] = /./[SYMBOL];
2305
- }
2306
-
2307
- re.exec = function () {
2308
- execCalled = true;
2309
- return null;
2310
- };
2311
-
2312
- re[SYMBOL]('');
2313
- return !execCalled;
2314
- });
2315
-
2316
- if (
2317
- !DELEGATES_TO_SYMBOL ||
2318
- !DELEGATES_TO_EXEC ||
2319
- FORCED
2320
- ) {
2321
- var nativeRegExpMethod = /./[SYMBOL];
2322
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2323
- var $exec = regexp.exec;
2324
- if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
2325
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
2326
- // The native String method already delegates to @@method (this
2327
- // polyfilled function), leasing to infinite recursion.
2328
- // We avoid it by directly calling the native @@method method.
2329
- return { done: true, value: call$6(nativeRegExpMethod, regexp, str, arg2) };
2330
- }
2331
- return { done: true, value: call$6(nativeMethod, str, regexp, arg2) };
2332
- }
2333
- return { done: false };
2334
- });
2335
-
2336
- defineBuiltIn(String.prototype, KEY, methods[0]);
2337
- defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
2338
- }
2339
-
2340
- if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
2341
- };
2342
-
2343
- var uncurryThis$6 = functionUncurryThis;
2344
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$5;
2345
- var toString$3 = toString$6;
2346
- var requireObjectCoercible$2 = requireObjectCoercible$7;
2347
-
2348
- var charAt$2 = uncurryThis$6(''.charAt);
2349
- var charCodeAt = uncurryThis$6(''.charCodeAt);
2350
- var stringSlice$3 = uncurryThis$6(''.slice);
2351
-
2352
- var createMethod = function (CONVERT_TO_STRING) {
2353
- return function ($this, pos) {
2354
- var S = toString$3(requireObjectCoercible$2($this));
2355
- var position = toIntegerOrInfinity$2(pos);
2356
- var size = S.length;
2357
- var first, second;
2358
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2359
- first = charCodeAt(S, position);
2360
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
2361
- || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2362
- ? CONVERT_TO_STRING
2363
- ? charAt$2(S, position)
2364
- : first
2365
- : CONVERT_TO_STRING
2366
- ? stringSlice$3(S, position, position + 2)
2367
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2368
- };
2369
- };
2370
-
2371
- var stringMultibyte = {
2372
- // `String.prototype.codePointAt` method
2373
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2374
- codeAt: createMethod(false),
2375
- // `String.prototype.at` method
2376
- // https://github.com/mathiasbynens/String.prototype.at
2377
- charAt: createMethod(true)
2378
- };
2379
-
2380
- var charAt$1 = stringMultibyte.charAt;
2381
-
2382
- // `AdvanceStringIndex` abstract operation
2383
- // https://tc39.es/ecma262/#sec-advancestringindex
2384
- var advanceStringIndex$1 = function (S, index, unicode) {
2385
- return index + (unicode ? charAt$1(S, index).length : 1);
2386
- };
2387
-
2388
2458
  var uncurryThis$5 = functionUncurryThis;
2389
2459
  var toObject$1 = toObject$4;
2390
2460
 
@@ -2431,41 +2501,20 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2431
2501
  });
2432
2502
  };
2433
2503
 
2434
- var call$5 = functionCall;
2435
- var anObject$4 = anObject$b;
2436
- var isCallable$2 = isCallable$h;
2437
- var classof$1 = classofRaw$2;
2438
- var regexpExec = regexpExec$2;
2439
-
2440
- var $TypeError$3 = TypeError;
2441
-
2442
- // `RegExpExec` abstract operation
2443
- // https://tc39.es/ecma262/#sec-regexpexec
2444
- var regexpExecAbstract = function (R, S) {
2445
- var exec = R.exec;
2446
- if (isCallable$2(exec)) {
2447
- var result = call$5(exec, R, S);
2448
- if (result !== null) anObject$4(result);
2449
- return result;
2450
- }
2451
- if (classof$1(R) === 'RegExp') return call$5(regexpExec, R, S);
2452
- throw new $TypeError$3('RegExp#exec called on incompatible receiver');
2453
- };
2454
-
2455
2504
  var apply = functionApply;
2456
2505
  var call$4 = functionCall;
2457
2506
  var uncurryThis$4 = functionUncurryThis;
2458
2507
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2459
2508
  var fails$2 = fails$j;
2460
- var anObject$3 = anObject$b;
2509
+ var anObject$3 = anObject$c;
2461
2510
  var isCallable$1 = isCallable$h;
2462
- var isNullOrUndefined = isNullOrUndefined$3;
2511
+ var isNullOrUndefined = isNullOrUndefined$4;
2463
2512
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$5;
2464
- var toLength$1 = toLength$3;
2465
- var toString$2 = toString$6;
2466
- var requireObjectCoercible$1 = requireObjectCoercible$7;
2467
- var advanceStringIndex = advanceStringIndex$1;
2468
- var getMethod$1 = getMethod$3;
2513
+ var toLength$1 = toLength$4;
2514
+ var toString$2 = toString$7;
2515
+ var requireObjectCoercible$1 = requireObjectCoercible$8;
2516
+ var advanceStringIndex = advanceStringIndex$2;
2517
+ var getMethod$1 = getMethod$4;
2469
2518
  var getSubstitution = getSubstitution$1;
2470
2519
  var regExpExec = regexpExecAbstract;
2471
2520
  var wellKnownSymbol = wellKnownSymbol$c;
@@ -2607,10 +2656,10 @@ var functionUncurryThisClause = function (fn) {
2607
2656
  var $$9 = _export;
2608
2657
  var uncurryThis$2 = functionUncurryThisClause;
2609
2658
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
2610
- var toLength = toLength$3;
2611
- var toString$1 = toString$6;
2659
+ var toLength = toLength$4;
2660
+ var toString$1 = toString$7;
2612
2661
  var notARegExp = notARegexp;
2613
- var requireObjectCoercible = requireObjectCoercible$7;
2662
+ var requireObjectCoercible = requireObjectCoercible$8;
2614
2663
  var correctIsRegExpLogic = correctIsRegexpLogic;
2615
2664
 
2616
2665
  var stringSlice = uncurryThis$2(''.slice);
@@ -2758,8 +2807,8 @@ $$8({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
2758
2807
  var $$7 = _export;
2759
2808
  var call$3 = functionCall;
2760
2809
  var isCallable = isCallable$h;
2761
- var anObject$2 = anObject$b;
2762
- var toString = toString$6;
2810
+ var anObject$2 = anObject$c;
2811
+ var toString = toString$7;
2763
2812
 
2764
2813
  var DELEGATES_TO_EXEC = function () {
2765
2814
  var execCalled = false;
@@ -2982,7 +3031,7 @@ var getIteratorDirect$1 = function (obj) {
2982
3031
  };
2983
3032
 
2984
3033
  var aCallable = aCallable$3;
2985
- var anObject$1 = anObject$b;
3034
+ var anObject$1 = anObject$c;
2986
3035
  var call$1 = functionCall;
2987
3036
  var toIntegerOrInfinity = toIntegerOrInfinity$5;
2988
3037
  var getIteratorDirect = getIteratorDirect$1;
@@ -3140,8 +3189,8 @@ $$5({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
3140
3189
  });
3141
3190
 
3142
3191
  var call = functionCall;
3143
- var anObject = anObject$b;
3144
- var getMethod = getMethod$3;
3192
+ var anObject = anObject$c;
3193
+ var getMethod = getMethod$4;
3145
3194
 
3146
3195
  var iteratorClose$2 = function (iterator, kind, value) {
3147
3196
  var innerResult, innerError;