@paystack/checkout-js 1.57.0-beta.5 → 1.57.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/checkout.js CHANGED
@@ -1035,7 +1035,7 @@ var check = function (it) {
1035
1035
  };
1036
1036
 
1037
1037
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1038
- var global$T =
1038
+ var global$U =
1039
1039
  // eslint-disable-next-line es/no-global-this -- safe
1040
1040
  check(typeof globalThis == 'object' && globalThis) ||
1041
1041
  check(typeof window == 'object' && window) ||
@@ -1047,7 +1047,7 @@ var global$T =
1047
1047
 
1048
1048
  var objectGetOwnPropertyDescriptor = {};
1049
1049
 
1050
- var fails$v = function (exec) {
1050
+ var fails$x = function (exec) {
1051
1051
  try {
1052
1052
  return !!exec();
1053
1053
  } catch (error) {
@@ -1055,17 +1055,17 @@ var fails$v = function (exec) {
1055
1055
  }
1056
1056
  };
1057
1057
 
1058
- var fails$u = fails$v;
1058
+ var fails$w = fails$x;
1059
1059
 
1060
1060
  // Detect IE8's incomplete defineProperty implementation
1061
- var descriptors$1 = !fails$u(function () {
1061
+ var descriptors$1 = !fails$w(function () {
1062
1062
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1063
1063
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
1064
1064
  });
1065
1065
 
1066
- var fails$t = fails$v;
1066
+ var fails$v = fails$x;
1067
1067
 
1068
- var functionBindNative = !fails$t(function () {
1068
+ var functionBindNative = !fails$v(function () {
1069
1069
  var test = (function () { /* empty */ }).bind();
1070
1070
  // eslint-disable-next-line no-prototype-builtins -- safe
1071
1071
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -1109,35 +1109,35 @@ var NATIVE_BIND$2 = functionBindNative;
1109
1109
  var FunctionPrototype$3 = Function.prototype;
1110
1110
  var bind$c = FunctionPrototype$3.bind;
1111
1111
  var call$e = FunctionPrototype$3.call;
1112
- var uncurryThis$x = NATIVE_BIND$2 && bind$c.bind(call$e, call$e);
1112
+ var uncurryThis$z = NATIVE_BIND$2 && bind$c.bind(call$e, call$e);
1113
1113
 
1114
1114
  var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
1115
- return fn && uncurryThis$x(fn);
1115
+ return fn && uncurryThis$z(fn);
1116
1116
  } : function (fn) {
1117
1117
  return fn && function () {
1118
1118
  return call$e.apply(fn, arguments);
1119
1119
  };
1120
1120
  };
1121
1121
 
1122
- var uncurryThis$w = functionUncurryThis;
1122
+ var uncurryThis$y = functionUncurryThis;
1123
1123
 
1124
- var toString$b = uncurryThis$w({}.toString);
1125
- var stringSlice$4 = uncurryThis$w(''.slice);
1124
+ var toString$b = uncurryThis$y({}.toString);
1125
+ var stringSlice$4 = uncurryThis$y(''.slice);
1126
1126
 
1127
1127
  var classofRaw$1 = function (it) {
1128
1128
  return stringSlice$4(toString$b(it), 8, -1);
1129
1129
  };
1130
1130
 
1131
- var global$S = global$T;
1132
- var uncurryThis$v = functionUncurryThis;
1133
- var fails$s = fails$v;
1131
+ var global$T = global$U;
1132
+ var uncurryThis$x = functionUncurryThis;
1133
+ var fails$u = fails$x;
1134
1134
  var classof$a = classofRaw$1;
1135
1135
 
1136
- var Object$5 = global$S.Object;
1137
- var split$4 = uncurryThis$v(''.split);
1136
+ var Object$5 = global$T.Object;
1137
+ var split$4 = uncurryThis$x(''.split);
1138
1138
 
1139
1139
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
1140
- var indexedObject = fails$s(function () {
1140
+ var indexedObject = fails$u(function () {
1141
1141
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
1142
1142
  // eslint-disable-next-line no-prototype-builtins -- safe
1143
1143
  return !Object$5('z').propertyIsEnumerable(0);
@@ -1145,9 +1145,9 @@ var indexedObject = fails$s(function () {
1145
1145
  return classof$a(it) == 'String' ? split$4(it, '') : Object$5(it);
1146
1146
  } : Object$5;
1147
1147
 
1148
- var global$R = global$T;
1148
+ var global$S = global$U;
1149
1149
 
1150
- var TypeError$j = global$R.TypeError;
1150
+ var TypeError$j = global$S.TypeError;
1151
1151
 
1152
1152
  // `RequireObjectCoercible` abstract operation
1153
1153
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
@@ -1166,40 +1166,40 @@ var toIndexedObject$8 = function (it) {
1166
1166
 
1167
1167
  // `IsCallable` abstract operation
1168
1168
  // https://tc39.es/ecma262/#sec-iscallable
1169
- var isCallable$k = function (argument) {
1169
+ var isCallable$l = function (argument) {
1170
1170
  return typeof argument == 'function';
1171
1171
  };
1172
1172
 
1173
- var isCallable$j = isCallable$k;
1173
+ var isCallable$k = isCallable$l;
1174
1174
 
1175
- var isObject$h = function (it) {
1176
- return typeof it == 'object' ? it !== null : isCallable$j(it);
1175
+ var isObject$k = function (it) {
1176
+ return typeof it == 'object' ? it !== null : isCallable$k(it);
1177
1177
  };
1178
1178
 
1179
- var global$Q = global$T;
1180
- var isCallable$i = isCallable$k;
1179
+ var global$R = global$U;
1180
+ var isCallable$j = isCallable$l;
1181
1181
 
1182
1182
  var aFunction = function (argument) {
1183
- return isCallable$i(argument) ? argument : undefined;
1183
+ return isCallable$j(argument) ? argument : undefined;
1184
1184
  };
1185
1185
 
1186
1186
  var getBuiltIn$a = function (namespace, method) {
1187
- return arguments.length < 2 ? aFunction(global$Q[namespace]) : global$Q[namespace] && global$Q[namespace][method];
1187
+ return arguments.length < 2 ? aFunction(global$R[namespace]) : global$R[namespace] && global$R[namespace][method];
1188
1188
  };
1189
1189
 
1190
- var uncurryThis$u = functionUncurryThis;
1190
+ var uncurryThis$w = functionUncurryThis;
1191
1191
 
1192
- var objectIsPrototypeOf = uncurryThis$u({}.isPrototypeOf);
1192
+ var objectIsPrototypeOf = uncurryThis$w({}.isPrototypeOf);
1193
1193
 
1194
1194
  var getBuiltIn$9 = getBuiltIn$a;
1195
1195
 
1196
1196
  var engineUserAgent = getBuiltIn$9('navigator', 'userAgent') || '';
1197
1197
 
1198
- var global$P = global$T;
1198
+ var global$Q = global$U;
1199
1199
  var userAgent$5 = engineUserAgent;
1200
1200
 
1201
- var process$4 = global$P.process;
1202
- var Deno = global$P.Deno;
1201
+ var process$4 = global$Q.process;
1202
+ var Deno = global$Q.Deno;
1203
1203
  var versions = process$4 && process$4.versions || Deno && Deno.version;
1204
1204
  var v8 = versions && versions.v8;
1205
1205
  var match, version;
@@ -1226,10 +1226,10 @@ var engineV8Version = version;
1226
1226
  /* eslint-disable es/no-symbol -- required for testing */
1227
1227
 
1228
1228
  var V8_VERSION$3 = engineV8Version;
1229
- var fails$r = fails$v;
1229
+ var fails$t = fails$x;
1230
1230
 
1231
1231
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1232
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$r(function () {
1232
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$t(function () {
1233
1233
  var symbol = Symbol();
1234
1234
  // Chrome 38 Symbol has incorrect toString conversion
1235
1235
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -1246,24 +1246,24 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
1246
1246
  && !Symbol.sham
1247
1247
  && typeof Symbol.iterator == 'symbol';
1248
1248
 
1249
- var global$O = global$T;
1249
+ var global$P = global$U;
1250
1250
  var getBuiltIn$8 = getBuiltIn$a;
1251
- var isCallable$h = isCallable$k;
1251
+ var isCallable$i = isCallable$l;
1252
1252
  var isPrototypeOf$5 = objectIsPrototypeOf;
1253
1253
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
1254
1254
 
1255
- var Object$4 = global$O.Object;
1255
+ var Object$4 = global$P.Object;
1256
1256
 
1257
1257
  var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
1258
1258
  return typeof it == 'symbol';
1259
1259
  } : function (it) {
1260
1260
  var $Symbol = getBuiltIn$8('Symbol');
1261
- return isCallable$h($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$4(it));
1261
+ return isCallable$i($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$4(it));
1262
1262
  };
1263
1263
 
1264
- var global$N = global$T;
1264
+ var global$O = global$U;
1265
1265
 
1266
- var String$5 = global$N.String;
1266
+ var String$5 = global$O.String;
1267
1267
 
1268
1268
  var tryToString$4 = function (argument) {
1269
1269
  try {
@@ -1273,15 +1273,15 @@ var tryToString$4 = function (argument) {
1273
1273
  }
1274
1274
  };
1275
1275
 
1276
- var global$M = global$T;
1277
- var isCallable$g = isCallable$k;
1276
+ var global$N = global$U;
1277
+ var isCallable$h = isCallable$l;
1278
1278
  var tryToString$3 = tryToString$4;
1279
1279
 
1280
- var TypeError$i = global$M.TypeError;
1280
+ var TypeError$i = global$N.TypeError;
1281
1281
 
1282
1282
  // `Assert: IsCallable(argument) is true`
1283
1283
  var aCallable$7 = function (argument) {
1284
- if (isCallable$g(argument)) return argument;
1284
+ if (isCallable$h(argument)) return argument;
1285
1285
  throw TypeError$i(tryToString$3(argument) + ' is not a function');
1286
1286
  };
1287
1287
 
@@ -1294,20 +1294,20 @@ var getMethod$3 = function (V, P) {
1294
1294
  return func == null ? undefined : aCallable$6(func);
1295
1295
  };
1296
1296
 
1297
- var global$L = global$T;
1297
+ var global$M = global$U;
1298
1298
  var call$d = functionCall;
1299
- var isCallable$f = isCallable$k;
1300
- var isObject$g = isObject$h;
1299
+ var isCallable$g = isCallable$l;
1300
+ var isObject$j = isObject$k;
1301
1301
 
1302
- var TypeError$h = global$L.TypeError;
1302
+ var TypeError$h = global$M.TypeError;
1303
1303
 
1304
1304
  // `OrdinaryToPrimitive` abstract operation
1305
1305
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
1306
1306
  var ordinaryToPrimitive$1 = function (input, pref) {
1307
1307
  var fn, val;
1308
- if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$g(val = call$d(fn, input))) return val;
1309
- if (isCallable$f(fn = input.valueOf) && !isObject$g(val = call$d(fn, input))) return val;
1310
- if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$g(val = call$d(fn, input))) return val;
1308
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$j(val = call$d(fn, input))) return val;
1309
+ if (isCallable$g(fn = input.valueOf) && !isObject$j(val = call$d(fn, input))) return val;
1310
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$j(val = call$d(fn, input))) return val;
1311
1311
  throw TypeError$h("Can't convert object to primitive value");
1312
1312
  };
1313
1313
 
@@ -1315,24 +1315,24 @@ var shared$4 = {exports: {}};
1315
1315
 
1316
1316
  var isPure = false;
1317
1317
 
1318
- var global$K = global$T;
1318
+ var global$L = global$U;
1319
1319
 
1320
1320
  // eslint-disable-next-line es/no-object-defineproperty -- safe
1321
1321
  var defineProperty$6 = Object.defineProperty;
1322
1322
 
1323
1323
  var setGlobal$3 = function (key, value) {
1324
1324
  try {
1325
- defineProperty$6(global$K, key, { value: value, configurable: true, writable: true });
1325
+ defineProperty$6(global$L, key, { value: value, configurable: true, writable: true });
1326
1326
  } catch (error) {
1327
- global$K[key] = value;
1327
+ global$L[key] = value;
1328
1328
  } return value;
1329
1329
  };
1330
1330
 
1331
- var global$J = global$T;
1331
+ var global$K = global$U;
1332
1332
  var setGlobal$2 = setGlobal$3;
1333
1333
 
1334
1334
  var SHARED = '__core-js_shared__';
1335
- var store$3 = global$J[SHARED] || setGlobal$2(SHARED, {});
1335
+ var store$3 = global$K[SHARED] || setGlobal$2(SHARED, {});
1336
1336
 
1337
1337
  var sharedStore = store$3;
1338
1338
 
@@ -1348,10 +1348,10 @@ var store$2 = sharedStore;
1348
1348
  source: 'https://github.com/zloirock/core-js'
1349
1349
  });
1350
1350
 
1351
- var global$I = global$T;
1351
+ var global$J = global$U;
1352
1352
  var requireObjectCoercible$2 = requireObjectCoercible$4;
1353
1353
 
1354
- var Object$3 = global$I.Object;
1354
+ var Object$3 = global$J.Object;
1355
1355
 
1356
1356
  // `ToObject` abstract operation
1357
1357
  // https://tc39.es/ecma262/#sec-toobject
@@ -1359,10 +1359,10 @@ var toObject$9 = function (argument) {
1359
1359
  return Object$3(requireObjectCoercible$2(argument));
1360
1360
  };
1361
1361
 
1362
- var uncurryThis$t = functionUncurryThis;
1362
+ var uncurryThis$v = functionUncurryThis;
1363
1363
  var toObject$8 = toObject$9;
1364
1364
 
1365
- var hasOwnProperty$1 = uncurryThis$t({}.hasOwnProperty);
1365
+ var hasOwnProperty$1 = uncurryThis$v({}.hasOwnProperty);
1366
1366
 
1367
1367
  // `HasOwnProperty` abstract operation
1368
1368
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -1370,32 +1370,32 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
1370
1370
  return hasOwnProperty$1(toObject$8(it), key);
1371
1371
  };
1372
1372
 
1373
- var uncurryThis$s = functionUncurryThis;
1373
+ var uncurryThis$u = functionUncurryThis;
1374
1374
 
1375
- var id$1 = 0;
1375
+ var id$2 = 0;
1376
1376
  var postfix = Math.random();
1377
- var toString$a = uncurryThis$s(1.0.toString);
1377
+ var toString$a = uncurryThis$u(1.0.toString);
1378
1378
 
1379
1379
  var uid$3 = function (key) {
1380
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$1 + postfix, 36);
1380
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$2 + postfix, 36);
1381
1381
  };
1382
1382
 
1383
- var global$H = global$T;
1383
+ var global$I = global$U;
1384
1384
  var shared$3 = shared$4.exports;
1385
- var hasOwn$e = hasOwnProperty_1;
1385
+ var hasOwn$f = hasOwnProperty_1;
1386
1386
  var uid$2 = uid$3;
1387
1387
  var NATIVE_SYMBOL = nativeSymbol;
1388
1388
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
1389
1389
 
1390
1390
  var WellKnownSymbolsStore = shared$3('wks');
1391
- var Symbol$2 = global$H.Symbol;
1391
+ var Symbol$2 = global$I.Symbol;
1392
1392
  var symbolFor = Symbol$2 && Symbol$2['for'];
1393
1393
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$2;
1394
1394
 
1395
1395
  var wellKnownSymbol$j = function (name) {
1396
- if (!hasOwn$e(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
1396
+ if (!hasOwn$f(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
1397
1397
  var description = 'Symbol.' + name;
1398
- if (NATIVE_SYMBOL && hasOwn$e(Symbol$2, name)) {
1398
+ if (NATIVE_SYMBOL && hasOwn$f(Symbol$2, name)) {
1399
1399
  WellKnownSymbolsStore[name] = Symbol$2[name];
1400
1400
  } else if (USE_SYMBOL_AS_UID && symbolFor) {
1401
1401
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -1405,27 +1405,27 @@ var wellKnownSymbol$j = function (name) {
1405
1405
  } return WellKnownSymbolsStore[name];
1406
1406
  };
1407
1407
 
1408
- var global$G = global$T;
1408
+ var global$H = global$U;
1409
1409
  var call$c = functionCall;
1410
- var isObject$f = isObject$h;
1410
+ var isObject$i = isObject$k;
1411
1411
  var isSymbol$2 = isSymbol$3;
1412
1412
  var getMethod$2 = getMethod$3;
1413
1413
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
1414
1414
  var wellKnownSymbol$i = wellKnownSymbol$j;
1415
1415
 
1416
- var TypeError$g = global$G.TypeError;
1416
+ var TypeError$g = global$H.TypeError;
1417
1417
  var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
1418
1418
 
1419
1419
  // `ToPrimitive` abstract operation
1420
1420
  // https://tc39.es/ecma262/#sec-toprimitive
1421
1421
  var toPrimitive$2 = function (input, pref) {
1422
- if (!isObject$f(input) || isSymbol$2(input)) return input;
1422
+ if (!isObject$i(input) || isSymbol$2(input)) return input;
1423
1423
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
1424
1424
  var result;
1425
1425
  if (exoticToPrim) {
1426
1426
  if (pref === undefined) pref = 'default';
1427
1427
  result = call$c(exoticToPrim, input, pref);
1428
- if (!isObject$f(result) || isSymbol$2(result)) return result;
1428
+ if (!isObject$i(result) || isSymbol$2(result)) return result;
1429
1429
  throw TypeError$g("Can't convert object to primitive value");
1430
1430
  }
1431
1431
  if (pref === undefined) pref = 'number';
@@ -1442,23 +1442,23 @@ var toPropertyKey$3 = function (argument) {
1442
1442
  return isSymbol$1(key) ? key : key + '';
1443
1443
  };
1444
1444
 
1445
- var global$F = global$T;
1446
- var isObject$e = isObject$h;
1445
+ var global$G = global$U;
1446
+ var isObject$h = isObject$k;
1447
1447
 
1448
- var document$3 = global$F.document;
1448
+ var document$3 = global$G.document;
1449
1449
  // typeof document.createElement is 'object' in old IE
1450
- var EXISTS$1 = isObject$e(document$3) && isObject$e(document$3.createElement);
1450
+ var EXISTS$1 = isObject$h(document$3) && isObject$h(document$3.createElement);
1451
1451
 
1452
1452
  var documentCreateElement$2 = function (it) {
1453
1453
  return EXISTS$1 ? document$3.createElement(it) : {};
1454
1454
  };
1455
1455
 
1456
1456
  var DESCRIPTORS$d = descriptors$1;
1457
- var fails$q = fails$v;
1457
+ var fails$s = fails$x;
1458
1458
  var createElement$1 = documentCreateElement$2;
1459
1459
 
1460
1460
  // Thanks to IE8 for its funny defineProperty
1461
- var ie8DomDefine = !DESCRIPTORS$d && !fails$q(function () {
1461
+ var ie8DomDefine = !DESCRIPTORS$d && !fails$s(function () {
1462
1462
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1463
1463
  return Object.defineProperty(createElement$1('div'), 'a', {
1464
1464
  get: function () { return 7; }
@@ -1471,7 +1471,7 @@ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
1471
1471
  var createPropertyDescriptor$5 = createPropertyDescriptor$6;
1472
1472
  var toIndexedObject$7 = toIndexedObject$8;
1473
1473
  var toPropertyKey$2 = toPropertyKey$3;
1474
- var hasOwn$d = hasOwnProperty_1;
1474
+ var hasOwn$e = hasOwnProperty_1;
1475
1475
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
1476
1476
 
1477
1477
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -1485,17 +1485,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$c ? $getOwnPropertyDescriptor$1 :
1485
1485
  if (IE8_DOM_DEFINE$1) try {
1486
1486
  return $getOwnPropertyDescriptor$1(O, P);
1487
1487
  } catch (error) { /* empty */ }
1488
- if (hasOwn$d(O, P)) return createPropertyDescriptor$5(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
1488
+ if (hasOwn$e(O, P)) return createPropertyDescriptor$5(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
1489
1489
  };
1490
1490
 
1491
1491
  var objectDefineProperty = {};
1492
1492
 
1493
1493
  var DESCRIPTORS$b = descriptors$1;
1494
- var fails$p = fails$v;
1494
+ var fails$r = fails$x;
1495
1495
 
1496
1496
  // V8 ~ Chrome 36-
1497
1497
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
1498
- var v8PrototypeDefineBug = DESCRIPTORS$b && fails$p(function () {
1498
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$r(function () {
1499
1499
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1500
1500
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
1501
1501
  value: 42,
@@ -1503,26 +1503,26 @@ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$p(function () {
1503
1503
  }).prototype != 42;
1504
1504
  });
1505
1505
 
1506
- var global$E = global$T;
1507
- var isObject$d = isObject$h;
1506
+ var global$F = global$U;
1507
+ var isObject$g = isObject$k;
1508
1508
 
1509
- var String$4 = global$E.String;
1510
- var TypeError$f = global$E.TypeError;
1509
+ var String$4 = global$F.String;
1510
+ var TypeError$f = global$F.TypeError;
1511
1511
 
1512
1512
  // `Assert: Type(argument) is Object`
1513
- var anObject$e = function (argument) {
1514
- if (isObject$d(argument)) return argument;
1513
+ var anObject$f = function (argument) {
1514
+ if (isObject$g(argument)) return argument;
1515
1515
  throw TypeError$f(String$4(argument) + ' is not an object');
1516
1516
  };
1517
1517
 
1518
- var global$D = global$T;
1518
+ var global$E = global$U;
1519
1519
  var DESCRIPTORS$a = descriptors$1;
1520
1520
  var IE8_DOM_DEFINE = ie8DomDefine;
1521
1521
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
1522
- var anObject$d = anObject$e;
1522
+ var anObject$e = anObject$f;
1523
1523
  var toPropertyKey$1 = toPropertyKey$3;
1524
1524
 
1525
- var TypeError$e = global$D.TypeError;
1525
+ var TypeError$e = global$E.TypeError;
1526
1526
  // eslint-disable-next-line es/no-object-defineproperty -- safe
1527
1527
  var $defineProperty = Object.defineProperty;
1528
1528
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -1534,9 +1534,9 @@ var WRITABLE = 'writable';
1534
1534
  // `Object.defineProperty` method
1535
1535
  // https://tc39.es/ecma262/#sec-object.defineproperty
1536
1536
  objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
1537
- anObject$d(O);
1537
+ anObject$e(O);
1538
1538
  P = toPropertyKey$1(P);
1539
- anObject$d(Attributes);
1539
+ anObject$e(Attributes);
1540
1540
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
1541
1541
  var current = $getOwnPropertyDescriptor(O, P);
1542
1542
  if (current && current[WRITABLE]) {
@@ -1549,9 +1549,9 @@ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
1549
1549
  }
1550
1550
  } return $defineProperty(O, P, Attributes);
1551
1551
  } : $defineProperty : function defineProperty(O, P, Attributes) {
1552
- anObject$d(O);
1552
+ anObject$e(O);
1553
1553
  P = toPropertyKey$1(P);
1554
- anObject$d(Attributes);
1554
+ anObject$e(Attributes);
1555
1555
  if (IE8_DOM_DEFINE) try {
1556
1556
  return $defineProperty(O, P, Attributes);
1557
1557
  } catch (error) { /* empty */ }
@@ -1571,16 +1571,16 @@ var createNonEnumerableProperty$8 = DESCRIPTORS$9 ? function (object, key, value
1571
1571
  return object;
1572
1572
  };
1573
1573
 
1574
- var redefine$a = {exports: {}};
1574
+ var redefine$b = {exports: {}};
1575
1575
 
1576
- var uncurryThis$r = functionUncurryThis;
1577
- var isCallable$e = isCallable$k;
1576
+ var uncurryThis$t = functionUncurryThis;
1577
+ var isCallable$f = isCallable$l;
1578
1578
  var store$1 = sharedStore;
1579
1579
 
1580
- var functionToString$1 = uncurryThis$r(Function.toString);
1580
+ var functionToString$1 = uncurryThis$t(Function.toString);
1581
1581
 
1582
1582
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
1583
- if (!isCallable$e(store$1.inspectSource)) {
1583
+ if (!isCallable$f(store$1.inspectSource)) {
1584
1584
  store$1.inspectSource = function (it) {
1585
1585
  return functionToString$1(it);
1586
1586
  };
@@ -1588,13 +1588,13 @@ if (!isCallable$e(store$1.inspectSource)) {
1588
1588
 
1589
1589
  var inspectSource$4 = store$1.inspectSource;
1590
1590
 
1591
- var global$C = global$T;
1592
- var isCallable$d = isCallable$k;
1591
+ var global$D = global$U;
1592
+ var isCallable$e = isCallable$l;
1593
1593
  var inspectSource$3 = inspectSource$4;
1594
1594
 
1595
- var WeakMap$1 = global$C.WeakMap;
1595
+ var WeakMap$1 = global$D.WeakMap;
1596
1596
 
1597
- var nativeWeakMap = isCallable$d(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
1597
+ var nativeWeakMap = isCallable$e(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
1598
1598
 
1599
1599
  var shared$2 = shared$4.exports;
1600
1600
  var uid$1 = uid$3;
@@ -1608,18 +1608,18 @@ var sharedKey$3 = function (key) {
1608
1608
  var hiddenKeys$5 = {};
1609
1609
 
1610
1610
  var NATIVE_WEAK_MAP = nativeWeakMap;
1611
- var global$B = global$T;
1612
- var uncurryThis$q = functionUncurryThis;
1613
- var isObject$c = isObject$h;
1611
+ var global$C = global$U;
1612
+ var uncurryThis$s = functionUncurryThis;
1613
+ var isObject$f = isObject$k;
1614
1614
  var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
1615
- var hasOwn$c = hasOwnProperty_1;
1615
+ var hasOwn$d = hasOwnProperty_1;
1616
1616
  var shared$1 = sharedStore;
1617
1617
  var sharedKey$2 = sharedKey$3;
1618
1618
  var hiddenKeys$4 = hiddenKeys$5;
1619
1619
 
1620
1620
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
1621
- var TypeError$d = global$B.TypeError;
1622
- var WeakMap = global$B.WeakMap;
1621
+ var TypeError$d = global$C.TypeError;
1622
+ var WeakMap = global$C.WeakMap;
1623
1623
  var set$1, get, has$3;
1624
1624
 
1625
1625
  var enforce = function (it) {
@@ -1629,7 +1629,7 @@ var enforce = function (it) {
1629
1629
  var getterFor = function (TYPE) {
1630
1630
  return function (it) {
1631
1631
  var state;
1632
- if (!isObject$c(it) || (state = get(it)).type !== TYPE) {
1632
+ if (!isObject$f(it) || (state = get(it)).type !== TYPE) {
1633
1633
  throw TypeError$d('Incompatible receiver, ' + TYPE + ' required');
1634
1634
  } return state;
1635
1635
  };
@@ -1637,9 +1637,9 @@ var getterFor = function (TYPE) {
1637
1637
 
1638
1638
  if (NATIVE_WEAK_MAP || shared$1.state) {
1639
1639
  var store = shared$1.state || (shared$1.state = new WeakMap());
1640
- var wmget = uncurryThis$q(store.get);
1641
- var wmhas = uncurryThis$q(store.has);
1642
- var wmset = uncurryThis$q(store.set);
1640
+ var wmget = uncurryThis$s(store.get);
1641
+ var wmhas = uncurryThis$s(store.has);
1642
+ var wmset = uncurryThis$s(store.set);
1643
1643
  set$1 = function (it, metadata) {
1644
1644
  if (wmhas(store, it)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
1645
1645
  metadata.facade = it;
@@ -1656,16 +1656,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
1656
1656
  var STATE = sharedKey$2('state');
1657
1657
  hiddenKeys$4[STATE] = true;
1658
1658
  set$1 = function (it, metadata) {
1659
- if (hasOwn$c(it, STATE)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
1659
+ if (hasOwn$d(it, STATE)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
1660
1660
  metadata.facade = it;
1661
1661
  createNonEnumerableProperty$7(it, STATE, metadata);
1662
1662
  return metadata;
1663
1663
  };
1664
1664
  get = function (it) {
1665
- return hasOwn$c(it, STATE) ? it[STATE] : {};
1665
+ return hasOwn$d(it, STATE) ? it[STATE] : {};
1666
1666
  };
1667
1667
  has$3 = function (it) {
1668
- return hasOwn$c(it, STATE);
1668
+ return hasOwn$d(it, STATE);
1669
1669
  };
1670
1670
  }
1671
1671
 
@@ -1678,13 +1678,13 @@ var internalState = {
1678
1678
  };
1679
1679
 
1680
1680
  var DESCRIPTORS$8 = descriptors$1;
1681
- var hasOwn$b = hasOwnProperty_1;
1681
+ var hasOwn$c = hasOwnProperty_1;
1682
1682
 
1683
1683
  var FunctionPrototype$2 = Function.prototype;
1684
1684
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1685
1685
  var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
1686
1686
 
1687
- var EXISTS = hasOwn$b(FunctionPrototype$2, 'name');
1687
+ var EXISTS = hasOwn$c(FunctionPrototype$2, 'name');
1688
1688
  // additional protection from minified / mangled / dropped function names
1689
1689
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
1690
1690
  var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$2, 'name').configurable));
@@ -1695,30 +1695,30 @@ var functionName = {
1695
1695
  CONFIGURABLE: CONFIGURABLE
1696
1696
  };
1697
1697
 
1698
- var global$A = global$T;
1699
- var isCallable$c = isCallable$k;
1700
- var hasOwn$a = hasOwnProperty_1;
1698
+ var global$B = global$U;
1699
+ var isCallable$d = isCallable$l;
1700
+ var hasOwn$b = hasOwnProperty_1;
1701
1701
  var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
1702
1702
  var setGlobal$1 = setGlobal$3;
1703
1703
  var inspectSource$2 = inspectSource$4;
1704
- var InternalStateModule$5 = internalState;
1704
+ var InternalStateModule$6 = internalState;
1705
1705
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
1706
1706
 
1707
- var getInternalState$4 = InternalStateModule$5.get;
1708
- var enforceInternalState = InternalStateModule$5.enforce;
1707
+ var getInternalState$4 = InternalStateModule$6.get;
1708
+ var enforceInternalState = InternalStateModule$6.enforce;
1709
1709
  var TEMPLATE = String(String).split('String');
1710
1710
 
1711
- (redefine$a.exports = function (O, key, value, options) {
1711
+ (redefine$b.exports = function (O, key, value, options) {
1712
1712
  var unsafe = options ? !!options.unsafe : false;
1713
1713
  var simple = options ? !!options.enumerable : false;
1714
1714
  var noTargetGet = options ? !!options.noTargetGet : false;
1715
1715
  var name = options && options.name !== undefined ? options.name : key;
1716
1716
  var state;
1717
- if (isCallable$c(value)) {
1717
+ if (isCallable$d(value)) {
1718
1718
  if (String(name).slice(0, 7) === 'Symbol(') {
1719
1719
  name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
1720
1720
  }
1721
- if (!hasOwn$a(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1721
+ if (!hasOwn$b(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1722
1722
  createNonEnumerableProperty$6(value, 'name', name);
1723
1723
  }
1724
1724
  state = enforceInternalState(value);
@@ -1726,7 +1726,7 @@ var TEMPLATE = String(String).split('String');
1726
1726
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
1727
1727
  }
1728
1728
  }
1729
- if (O === global$A) {
1729
+ if (O === global$B) {
1730
1730
  if (simple) O[key] = value;
1731
1731
  else setGlobal$1(key, value);
1732
1732
  return;
@@ -1739,7 +1739,7 @@ var TEMPLATE = String(String).split('String');
1739
1739
  else createNonEnumerableProperty$6(O, key, value);
1740
1740
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1741
1741
  })(Function.prototype, 'toString', function toString() {
1742
- return isCallable$c(this) && getInternalState$4(this).source || inspectSource$2(this);
1742
+ return isCallable$d(this) && getInternalState$4(this).source || inspectSource$2(this);
1743
1743
  });
1744
1744
 
1745
1745
  var objectGetOwnPropertyNames = {};
@@ -1819,22 +1819,22 @@ var arrayIncludes = {
1819
1819
  indexOf: createMethod$5(false)
1820
1820
  };
1821
1821
 
1822
- var uncurryThis$p = functionUncurryThis;
1823
- var hasOwn$9 = hasOwnProperty_1;
1822
+ var uncurryThis$r = functionUncurryThis;
1823
+ var hasOwn$a = hasOwnProperty_1;
1824
1824
  var toIndexedObject$5 = toIndexedObject$8;
1825
1825
  var indexOf$1 = arrayIncludes.indexOf;
1826
1826
  var hiddenKeys$3 = hiddenKeys$5;
1827
1827
 
1828
- var push$7 = uncurryThis$p([].push);
1828
+ var push$7 = uncurryThis$r([].push);
1829
1829
 
1830
1830
  var objectKeysInternal = function (object, names) {
1831
1831
  var O = toIndexedObject$5(object);
1832
1832
  var i = 0;
1833
1833
  var result = [];
1834
1834
  var key;
1835
- for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$7(result, key);
1835
+ for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$7(result, key);
1836
1836
  // Don't enum bug & hidden keys
1837
- while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
1837
+ while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
1838
1838
  ~indexOf$1(result, key) || push$7(result, key);
1839
1839
  }
1840
1840
  return result;
@@ -1869,21 +1869,21 @@ var objectGetOwnPropertySymbols = {};
1869
1869
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1870
1870
 
1871
1871
  var getBuiltIn$7 = getBuiltIn$a;
1872
- var uncurryThis$o = functionUncurryThis;
1872
+ var uncurryThis$q = functionUncurryThis;
1873
1873
  var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;
1874
1874
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1875
- var anObject$c = anObject$e;
1875
+ var anObject$d = anObject$f;
1876
1876
 
1877
- var concat$1 = uncurryThis$o([].concat);
1877
+ var concat$1 = uncurryThis$q([].concat);
1878
1878
 
1879
1879
  // all object keys, includes non-enumerable and symbols
1880
1880
  var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
1881
- var keys = getOwnPropertyNamesModule$1.f(anObject$c(it));
1881
+ var keys = getOwnPropertyNamesModule$1.f(anObject$d(it));
1882
1882
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1883
1883
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1884
1884
  };
1885
1885
 
1886
- var hasOwn$8 = hasOwnProperty_1;
1886
+ var hasOwn$9 = hasOwnProperty_1;
1887
1887
  var ownKeys = ownKeys$1;
1888
1888
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1889
1889
  var definePropertyModule$4 = objectDefineProperty;
@@ -1894,42 +1894,42 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
1894
1894
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1895
1895
  for (var i = 0; i < keys.length; i++) {
1896
1896
  var key = keys[i];
1897
- if (!hasOwn$8(target, key) && !(exceptions && hasOwn$8(exceptions, key))) {
1897
+ if (!hasOwn$9(target, key) && !(exceptions && hasOwn$9(exceptions, key))) {
1898
1898
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1899
1899
  }
1900
1900
  }
1901
1901
  };
1902
1902
 
1903
- var fails$o = fails$v;
1904
- var isCallable$b = isCallable$k;
1903
+ var fails$q = fails$x;
1904
+ var isCallable$c = isCallable$l;
1905
1905
 
1906
1906
  var replacement = /#|\.prototype\./;
1907
1907
 
1908
- var isForced$3 = function (feature, detection) {
1908
+ var isForced$4 = function (feature, detection) {
1909
1909
  var value = data$1[normalize(feature)];
1910
1910
  return value == POLYFILL ? true
1911
1911
  : value == NATIVE ? false
1912
- : isCallable$b(detection) ? fails$o(detection)
1912
+ : isCallable$c(detection) ? fails$q(detection)
1913
1913
  : !!detection;
1914
1914
  };
1915
1915
 
1916
- var normalize = isForced$3.normalize = function (string) {
1916
+ var normalize = isForced$4.normalize = function (string) {
1917
1917
  return String(string).replace(replacement, '.').toLowerCase();
1918
1918
  };
1919
1919
 
1920
- var data$1 = isForced$3.data = {};
1921
- var NATIVE = isForced$3.NATIVE = 'N';
1922
- var POLYFILL = isForced$3.POLYFILL = 'P';
1920
+ var data$1 = isForced$4.data = {};
1921
+ var NATIVE = isForced$4.NATIVE = 'N';
1922
+ var POLYFILL = isForced$4.POLYFILL = 'P';
1923
1923
 
1924
- var isForced_1 = isForced$3;
1924
+ var isForced_1 = isForced$4;
1925
1925
 
1926
- var global$z = global$T;
1926
+ var global$A = global$U;
1927
1927
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1928
1928
  var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
1929
- var redefine$9 = redefine$a.exports;
1929
+ var redefine$a = redefine$b.exports;
1930
1930
  var setGlobal = setGlobal$3;
1931
1931
  var copyConstructorProperties$1 = copyConstructorProperties$2;
1932
- var isForced$2 = isForced_1;
1932
+ var isForced$3 = isForced_1;
1933
1933
 
1934
1934
  /*
1935
1935
  options.target - name of the target object
@@ -1952,11 +1952,11 @@ var _export = function (options, source) {
1952
1952
  var STATIC = options.stat;
1953
1953
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1954
1954
  if (GLOBAL) {
1955
- target = global$z;
1955
+ target = global$A;
1956
1956
  } else if (STATIC) {
1957
- target = global$z[TARGET] || setGlobal(TARGET, {});
1957
+ target = global$A[TARGET] || setGlobal(TARGET, {});
1958
1958
  } else {
1959
- target = (global$z[TARGET] || {}).prototype;
1959
+ target = (global$A[TARGET] || {}).prototype;
1960
1960
  }
1961
1961
  if (target) for (key in source) {
1962
1962
  sourceProperty = source[key];
@@ -1964,7 +1964,7 @@ var _export = function (options, source) {
1964
1964
  descriptor = getOwnPropertyDescriptor$2(target, key);
1965
1965
  targetProperty = descriptor && descriptor.value;
1966
1966
  } else targetProperty = target[key];
1967
- FORCED = isForced$2(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1967
+ FORCED = isForced$3(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1968
1968
  // contained in target
1969
1969
  if (!FORCED && targetProperty !== undefined) {
1970
1970
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1975,7 +1975,7 @@ var _export = function (options, source) {
1975
1975
  createNonEnumerableProperty$5(sourceProperty, 'sham', true);
1976
1976
  }
1977
1977
  // extend global
1978
- redefine$9(target, key, sourceProperty, options);
1978
+ redefine$a(target, key, sourceProperty, options);
1979
1979
  }
1980
1980
  };
1981
1981
 
@@ -1993,12 +1993,12 @@ var createProperty$3 = function (object, key, value) {
1993
1993
  else object[propertyKey] = value;
1994
1994
  };
1995
1995
 
1996
- var global$y = global$T;
1996
+ var global$z = global$U;
1997
1997
  var toAbsoluteIndex = toAbsoluteIndex$2;
1998
1998
  var lengthOfArrayLike$6 = lengthOfArrayLike$8;
1999
1999
  var createProperty$2 = createProperty$3;
2000
2000
 
2001
- var Array$4 = global$y.Array;
2001
+ var Array$4 = global$z.Array;
2002
2002
  var max$1 = Math.max;
2003
2003
 
2004
2004
  var arraySliceSimple = function (O, start, end) {
@@ -2037,9 +2037,9 @@ objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {
2037
2037
  };
2038
2038
 
2039
2039
  // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
2040
- var fails$n = fails$v;
2040
+ var fails$p = fails$x;
2041
2041
 
2042
- var arrayBufferNonExtensible = fails$n(function () {
2042
+ var arrayBufferNonExtensible = fails$p(function () {
2043
2043
  if (typeof ArrayBuffer == 'function') {
2044
2044
  var buffer = new ArrayBuffer(8);
2045
2045
  // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
@@ -2047,57 +2047,57 @@ var arrayBufferNonExtensible = fails$n(function () {
2047
2047
  }
2048
2048
  });
2049
2049
 
2050
- var fails$m = fails$v;
2051
- var isObject$b = isObject$h;
2050
+ var fails$o = fails$x;
2051
+ var isObject$e = isObject$k;
2052
2052
  var classof$8 = classofRaw$1;
2053
2053
  var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
2054
2054
 
2055
2055
  // eslint-disable-next-line es/no-object-isextensible -- safe
2056
2056
  var $isExtensible = Object.isExtensible;
2057
- var FAILS_ON_PRIMITIVES$2 = fails$m(function () { $isExtensible(1); });
2057
+ var FAILS_ON_PRIMITIVES$3 = fails$o(function () { $isExtensible(1); });
2058
2058
 
2059
2059
  // `Object.isExtensible` method
2060
2060
  // https://tc39.es/ecma262/#sec-object.isextensible
2061
- var objectIsExtensible = (FAILS_ON_PRIMITIVES$2 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
2062
- if (!isObject$b(it)) return false;
2061
+ var objectIsExtensible = (FAILS_ON_PRIMITIVES$3 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
2062
+ if (!isObject$e(it)) return false;
2063
2063
  if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$8(it) == 'ArrayBuffer') return false;
2064
2064
  return $isExtensible ? $isExtensible(it) : true;
2065
2065
  } : $isExtensible;
2066
2066
 
2067
- var fails$l = fails$v;
2067
+ var fails$n = fails$x;
2068
2068
 
2069
- var freezing = !fails$l(function () {
2069
+ var freezing = !fails$n(function () {
2070
2070
  // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
2071
2071
  return Object.isExtensible(Object.preventExtensions({}));
2072
2072
  });
2073
2073
 
2074
- var $$m = _export;
2075
- var uncurryThis$n = functionUncurryThis;
2074
+ var $$o = _export;
2075
+ var uncurryThis$p = functionUncurryThis;
2076
2076
  var hiddenKeys$1 = hiddenKeys$5;
2077
- var isObject$a = isObject$h;
2078
- var hasOwn$7 = hasOwnProperty_1;
2077
+ var isObject$d = isObject$k;
2078
+ var hasOwn$8 = hasOwnProperty_1;
2079
2079
  var defineProperty$5 = objectDefineProperty.f;
2080
2080
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
2081
2081
  var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
2082
2082
  var isExtensible = objectIsExtensible;
2083
2083
  var uid = uid$3;
2084
- var FREEZING$1 = freezing;
2084
+ var FREEZING$2 = freezing;
2085
2085
 
2086
2086
  var REQUIRED = false;
2087
2087
  var METADATA = uid('meta');
2088
- var id = 0;
2088
+ var id$1 = 0;
2089
2089
 
2090
2090
  var setMetadata = function (it) {
2091
2091
  defineProperty$5(it, METADATA, { value: {
2092
- objectID: 'O' + id++, // object ID
2092
+ objectID: 'O' + id$1++, // object ID
2093
2093
  weakData: {} // weak collections IDs
2094
2094
  } });
2095
2095
  };
2096
2096
 
2097
2097
  var fastKey = function (it, create) {
2098
2098
  // return a primitive with prefix
2099
- if (!isObject$a(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
2100
- if (!hasOwn$7(it, METADATA)) {
2099
+ if (!isObject$d(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
2100
+ if (!hasOwn$8(it, METADATA)) {
2101
2101
  // can't set metadata to uncaught frozen object
2102
2102
  if (!isExtensible(it)) return 'F';
2103
2103
  // not necessary to add metadata
@@ -2108,8 +2108,8 @@ var fastKey = function (it, create) {
2108
2108
  } return it[METADATA].objectID;
2109
2109
  };
2110
2110
 
2111
- var getWeakData = function (it, create) {
2112
- if (!hasOwn$7(it, METADATA)) {
2111
+ var getWeakData$1 = function (it, create) {
2112
+ if (!hasOwn$8(it, METADATA)) {
2113
2113
  // can't set metadata to uncaught frozen object
2114
2114
  if (!isExtensible(it)) return true;
2115
2115
  // not necessary to add metadata
@@ -2121,8 +2121,8 @@ var getWeakData = function (it, create) {
2121
2121
  };
2122
2122
 
2123
2123
  // add metadata on freeze-family methods calling
2124
- var onFreeze$1 = function (it) {
2125
- if (FREEZING$1 && REQUIRED && isExtensible(it) && !hasOwn$7(it, METADATA)) setMetadata(it);
2124
+ var onFreeze$2 = function (it) {
2125
+ if (FREEZING$2 && REQUIRED && isExtensible(it) && !hasOwn$8(it, METADATA)) setMetadata(it);
2126
2126
  return it;
2127
2127
  };
2128
2128
 
@@ -2130,7 +2130,7 @@ var enable = function () {
2130
2130
  meta.enable = function () { /* empty */ };
2131
2131
  REQUIRED = true;
2132
2132
  var getOwnPropertyNames = getOwnPropertyNamesModule.f;
2133
- var splice = uncurryThis$n([].splice);
2133
+ var splice = uncurryThis$p([].splice);
2134
2134
  var test = {};
2135
2135
  test[METADATA] = 1;
2136
2136
 
@@ -2146,7 +2146,7 @@ var enable = function () {
2146
2146
  } return result;
2147
2147
  };
2148
2148
 
2149
- $$m({ target: 'Object', stat: true, forced: true }, {
2149
+ $$o({ target: 'Object', stat: true, forced: true }, {
2150
2150
  getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
2151
2151
  });
2152
2152
  }
@@ -2155,27 +2155,27 @@ var enable = function () {
2155
2155
  var meta = internalMetadata.exports = {
2156
2156
  enable: enable,
2157
2157
  fastKey: fastKey,
2158
- getWeakData: getWeakData,
2159
- onFreeze: onFreeze$1
2158
+ getWeakData: getWeakData$1,
2159
+ onFreeze: onFreeze$2
2160
2160
  };
2161
2161
 
2162
2162
  hiddenKeys$1[METADATA] = true;
2163
2163
 
2164
- var $$l = _export;
2165
- var isObject$9 = isObject$h;
2166
- var onFreeze = internalMetadata.exports.onFreeze;
2167
- var FREEZING = freezing;
2168
- var fails$k = fails$v;
2164
+ var $$n = _export;
2165
+ var isObject$c = isObject$k;
2166
+ var onFreeze$1 = internalMetadata.exports.onFreeze;
2167
+ var FREEZING$1 = freezing;
2168
+ var fails$m = fails$x;
2169
2169
 
2170
2170
  // eslint-disable-next-line es/no-object-seal -- safe
2171
2171
  var $seal = Object.seal;
2172
- var FAILS_ON_PRIMITIVES$1 = fails$k(function () { $seal(1); });
2172
+ var FAILS_ON_PRIMITIVES$2 = fails$m(function () { $seal(1); });
2173
2173
 
2174
2174
  // `Object.seal` method
2175
2175
  // https://tc39.es/ecma262/#sec-object.seal
2176
- $$l({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1, sham: !FREEZING }, {
2176
+ $$n({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2, sham: !FREEZING$1 }, {
2177
2177
  seal: function seal(it) {
2178
- return $seal && isObject$9(it) ? $seal(onFreeze(it)) : it;
2178
+ return $seal && isObject$c(it) ? $seal(onFreeze$1(it)) : it;
2179
2179
  }
2180
2180
  });
2181
2181
 
@@ -2190,21 +2190,21 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$
2190
2190
  return call$a.apply(apply$3, arguments);
2191
2191
  });
2192
2192
 
2193
- var global$x = global$T;
2194
- var isCallable$a = isCallable$k;
2193
+ var global$y = global$U;
2194
+ var isCallable$b = isCallable$l;
2195
2195
 
2196
- var String$3 = global$x.String;
2197
- var TypeError$c = global$x.TypeError;
2196
+ var String$3 = global$y.String;
2197
+ var TypeError$c = global$y.TypeError;
2198
2198
 
2199
2199
  var aPossiblePrototype$1 = function (argument) {
2200
- if (typeof argument == 'object' || isCallable$a(argument)) return argument;
2200
+ if (typeof argument == 'object' || isCallable$b(argument)) return argument;
2201
2201
  throw TypeError$c("Can't set " + String$3(argument) + ' as a prototype');
2202
2202
  };
2203
2203
 
2204
2204
  /* eslint-disable no-proto -- safe */
2205
2205
 
2206
- var uncurryThis$m = functionUncurryThis;
2207
- var anObject$b = anObject$e;
2206
+ var uncurryThis$o = functionUncurryThis;
2207
+ var anObject$c = anObject$f;
2208
2208
  var aPossiblePrototype = aPossiblePrototype$1;
2209
2209
 
2210
2210
  // `Object.setPrototypeOf` method
@@ -2217,12 +2217,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
2217
2217
  var setter;
2218
2218
  try {
2219
2219
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2220
- setter = uncurryThis$m(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
2220
+ setter = uncurryThis$o(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
2221
2221
  setter(test, []);
2222
2222
  CORRECT_SETTER = test instanceof Array;
2223
2223
  } catch (error) { /* empty */ }
2224
2224
  return function setPrototypeOf(O, proto) {
2225
- anObject$b(O);
2225
+ anObject$c(O);
2226
2226
  aPossiblePrototype(proto);
2227
2227
  if (CORRECT_SETTER) setter(O, proto);
2228
2228
  else O.__proto__ = proto;
@@ -2230,20 +2230,20 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
2230
2230
  };
2231
2231
  }() : undefined);
2232
2232
 
2233
- var isCallable$9 = isCallable$k;
2234
- var isObject$8 = isObject$h;
2233
+ var isCallable$a = isCallable$l;
2234
+ var isObject$b = isObject$k;
2235
2235
  var setPrototypeOf$3 = objectSetPrototypeOf;
2236
2236
 
2237
2237
  // makes subclassing work correct for wrapped built-ins
2238
- var inheritIfRequired$2 = function ($this, dummy, Wrapper) {
2238
+ var inheritIfRequired$3 = function ($this, dummy, Wrapper) {
2239
2239
  var NewTarget, NewTargetPrototype;
2240
2240
  if (
2241
2241
  // it can work only with native `setPrototypeOf`
2242
2242
  setPrototypeOf$3 &&
2243
2243
  // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
2244
- isCallable$9(NewTarget = dummy.constructor) &&
2244
+ isCallable$a(NewTarget = dummy.constructor) &&
2245
2245
  NewTarget !== Wrapper &&
2246
- isObject$8(NewTargetPrototype = NewTarget.prototype) &&
2246
+ isObject$b(NewTargetPrototype = NewTarget.prototype) &&
2247
2247
  NewTargetPrototype !== Wrapper.prototype
2248
2248
  ) setPrototypeOf$3($this, NewTargetPrototype);
2249
2249
  return $this;
@@ -2258,14 +2258,14 @@ test$1[TO_STRING_TAG$3] = 'z';
2258
2258
 
2259
2259
  var toStringTagSupport = String(test$1) === '[object z]';
2260
2260
 
2261
- var global$w = global$T;
2261
+ var global$x = global$U;
2262
2262
  var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
2263
- var isCallable$8 = isCallable$k;
2263
+ var isCallable$9 = isCallable$l;
2264
2264
  var classofRaw = classofRaw$1;
2265
2265
  var wellKnownSymbol$g = wellKnownSymbol$j;
2266
2266
 
2267
2267
  var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag');
2268
- var Object$2 = global$w.Object;
2268
+ var Object$2 = global$x.Object;
2269
2269
 
2270
2270
  // ES3 wrong here
2271
2271
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
@@ -2286,13 +2286,13 @@ var classof$7 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
2286
2286
  // builtinTag case
2287
2287
  : CORRECT_ARGUMENTS ? classofRaw(O)
2288
2288
  // ES3 arguments fallback
2289
- : (result = classofRaw(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
2289
+ : (result = classofRaw(O)) == 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
2290
2290
  };
2291
2291
 
2292
- var global$v = global$T;
2292
+ var global$w = global$U;
2293
2293
  var classof$6 = classof$7;
2294
2294
 
2295
- var String$2 = global$v.String;
2295
+ var String$2 = global$w.String;
2296
2296
 
2297
2297
  var toString$9 = function (argument) {
2298
2298
  if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
@@ -2305,20 +2305,20 @@ var normalizeStringArgument$1 = function (argument, $default) {
2305
2305
  return argument === undefined ? arguments.length < 2 ? '' : $default : toString$8(argument);
2306
2306
  };
2307
2307
 
2308
- var isObject$7 = isObject$h;
2308
+ var isObject$a = isObject$k;
2309
2309
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
2310
2310
 
2311
2311
  // `InstallErrorCause` abstract operation
2312
2312
  // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
2313
2313
  var installErrorCause$1 = function (O, options) {
2314
- if (isObject$7(options) && 'cause' in options) {
2314
+ if (isObject$a(options) && 'cause' in options) {
2315
2315
  createNonEnumerableProperty$4(O, 'cause', options.cause);
2316
2316
  }
2317
2317
  };
2318
2318
 
2319
- var uncurryThis$l = functionUncurryThis;
2319
+ var uncurryThis$n = functionUncurryThis;
2320
2320
 
2321
- var replace$7 = uncurryThis$l(''.replace);
2321
+ var replace$7 = uncurryThis$n(''.replace);
2322
2322
 
2323
2323
  var TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');
2324
2324
  var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
@@ -2330,10 +2330,10 @@ var clearErrorStack$1 = function (stack, dropEntries) {
2330
2330
  } return stack;
2331
2331
  };
2332
2332
 
2333
- var fails$j = fails$v;
2333
+ var fails$l = fails$x;
2334
2334
  var createPropertyDescriptor$2 = createPropertyDescriptor$6;
2335
2335
 
2336
- var errorStackInstallable = !fails$j(function () {
2336
+ var errorStackInstallable = !fails$l(function () {
2337
2337
  var error = Error('a');
2338
2338
  if (!('stack' in error)) return true;
2339
2339
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -2342,12 +2342,12 @@ var errorStackInstallable = !fails$j(function () {
2342
2342
  });
2343
2343
 
2344
2344
  var getBuiltIn$6 = getBuiltIn$a;
2345
- var hasOwn$6 = hasOwnProperty_1;
2345
+ var hasOwn$7 = hasOwnProperty_1;
2346
2346
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
2347
2347
  var isPrototypeOf$4 = objectIsPrototypeOf;
2348
2348
  var setPrototypeOf$2 = objectSetPrototypeOf;
2349
2349
  var copyConstructorProperties = copyConstructorProperties$2;
2350
- var inheritIfRequired$1 = inheritIfRequired$2;
2350
+ var inheritIfRequired$2 = inheritIfRequired$3;
2351
2351
  var normalizeStringArgument = normalizeStringArgument$1;
2352
2352
  var installErrorCause = installErrorCause$1;
2353
2353
  var clearErrorStack = clearErrorStack$1;
@@ -2364,7 +2364,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
2364
2364
  var OriginalErrorPrototype = OriginalError.prototype;
2365
2365
 
2366
2366
  // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
2367
- if (hasOwn$6(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
2367
+ if (hasOwn$7(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
2368
2368
 
2369
2369
  if (!FORCED) return OriginalError;
2370
2370
 
@@ -2375,7 +2375,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
2375
2375
  var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
2376
2376
  if (message !== undefined) createNonEnumerableProperty$3(result, 'message', message);
2377
2377
  if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty$3(result, 'stack', clearErrorStack(result.stack, 2));
2378
- if (this && isPrototypeOf$4(OriginalErrorPrototype, this)) inheritIfRequired$1(result, this, WrappedError);
2378
+ if (this && isPrototypeOf$4(OriginalErrorPrototype, this)) inheritIfRequired$2(result, this, WrappedError);
2379
2379
  if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
2380
2380
  return result;
2381
2381
  });
@@ -2402,27 +2402,27 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
2402
2402
 
2403
2403
  /* eslint-disable no-unused-vars -- required for functions `.length` */
2404
2404
 
2405
- var $$k = _export;
2406
- var global$u = global$T;
2405
+ var $$m = _export;
2406
+ var global$v = global$U;
2407
2407
  var apply$2 = functionApply;
2408
2408
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
2409
2409
 
2410
2410
  var WEB_ASSEMBLY = 'WebAssembly';
2411
- var WebAssembly = global$u[WEB_ASSEMBLY];
2411
+ var WebAssembly = global$v[WEB_ASSEMBLY];
2412
2412
 
2413
2413
  var FORCED$5 = Error('e', { cause: 7 }).cause !== 7;
2414
2414
 
2415
2415
  var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
2416
2416
  var O = {};
2417
2417
  O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$5);
2418
- $$k({ global: true, forced: FORCED$5 }, O);
2418
+ $$m({ global: true, forced: FORCED$5 }, O);
2419
2419
  };
2420
2420
 
2421
2421
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
2422
2422
  if (WebAssembly && WebAssembly[ERROR_NAME]) {
2423
2423
  var O = {};
2424
2424
  O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$5);
2425
- $$k({ target: WEB_ASSEMBLY, stat: true, forced: FORCED$5 }, O);
2425
+ $$m({ target: WEB_ASSEMBLY, stat: true, forced: FORCED$5 }, O);
2426
2426
  }
2427
2427
  };
2428
2428
 
@@ -2467,9 +2467,9 @@ var isArray$9 = Array.isArray || function isArray(argument) {
2467
2467
  return classof$5(argument) == 'Array';
2468
2468
  };
2469
2469
 
2470
- var uncurryThis$k = functionUncurryThis;
2471
- var fails$i = fails$v;
2472
- var isCallable$7 = isCallable$k;
2470
+ var uncurryThis$m = functionUncurryThis;
2471
+ var fails$k = fails$x;
2472
+ var isCallable$8 = isCallable$l;
2473
2473
  var classof$4 = classof$7;
2474
2474
  var getBuiltIn$5 = getBuiltIn$a;
2475
2475
  var inspectSource$1 = inspectSource$4;
@@ -2478,11 +2478,11 @@ var noop = function () { /* empty */ };
2478
2478
  var empty = [];
2479
2479
  var construct = getBuiltIn$5('Reflect', 'construct');
2480
2480
  var constructorRegExp = /^\s*(?:class|function)\b/;
2481
- var exec$5 = uncurryThis$k(constructorRegExp.exec);
2481
+ var exec$5 = uncurryThis$m(constructorRegExp.exec);
2482
2482
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
2483
2483
 
2484
2484
  var isConstructorModern = function isConstructor(argument) {
2485
- if (!isCallable$7(argument)) return false;
2485
+ if (!isCallable$8(argument)) return false;
2486
2486
  try {
2487
2487
  construct(noop, empty, argument);
2488
2488
  return true;
@@ -2492,7 +2492,7 @@ var isConstructorModern = function isConstructor(argument) {
2492
2492
  };
2493
2493
 
2494
2494
  var isConstructorLegacy = function isConstructor(argument) {
2495
- if (!isCallable$7(argument)) return false;
2495
+ if (!isCallable$8(argument)) return false;
2496
2496
  switch (classof$4(argument)) {
2497
2497
  case 'AsyncFunction':
2498
2498
  case 'GeneratorFunction':
@@ -2512,7 +2512,7 @@ isConstructorLegacy.sham = true;
2512
2512
 
2513
2513
  // `IsConstructor` abstract operation
2514
2514
  // https://tc39.es/ecma262/#sec-isconstructor
2515
- var isConstructor$3 = !construct || fails$i(function () {
2515
+ var isConstructor$3 = !construct || fails$k(function () {
2516
2516
  var called;
2517
2517
  return isConstructorModern(isConstructorModern.call)
2518
2518
  || !isConstructorModern(Object)
@@ -2520,14 +2520,14 @@ var isConstructor$3 = !construct || fails$i(function () {
2520
2520
  || called;
2521
2521
  }) ? isConstructorLegacy : isConstructorModern;
2522
2522
 
2523
- var global$t = global$T;
2523
+ var global$u = global$U;
2524
2524
  var isArray$8 = isArray$9;
2525
2525
  var isConstructor$2 = isConstructor$3;
2526
- var isObject$6 = isObject$h;
2526
+ var isObject$9 = isObject$k;
2527
2527
  var wellKnownSymbol$f = wellKnownSymbol$j;
2528
2528
 
2529
2529
  var SPECIES$4 = wellKnownSymbol$f('species');
2530
- var Array$3 = global$t.Array;
2530
+ var Array$3 = global$u.Array;
2531
2531
 
2532
2532
  // a part of `ArraySpeciesCreate` abstract operation
2533
2533
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
@@ -2537,7 +2537,7 @@ var arraySpeciesConstructor$1 = function (originalArray) {
2537
2537
  C = originalArray.constructor;
2538
2538
  // cross-realm fallback
2539
2539
  if (isConstructor$2(C) && (C === Array$3 || isArray$8(C.prototype))) C = undefined;
2540
- else if (isObject$6(C)) {
2540
+ else if (isObject$9(C)) {
2541
2541
  C = C[SPECIES$4];
2542
2542
  if (C === null) C = undefined;
2543
2543
  }
@@ -2552,7 +2552,7 @@ var arraySpeciesCreate$2 = function (originalArray, length) {
2552
2552
  return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2553
2553
  };
2554
2554
 
2555
- var fails$h = fails$v;
2555
+ var fails$j = fails$x;
2556
2556
  var wellKnownSymbol$e = wellKnownSymbol$j;
2557
2557
  var V8_VERSION$2 = engineV8Version;
2558
2558
 
@@ -2562,7 +2562,7 @@ var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
2562
2562
  // We can't use this feature detection in V8 since it causes
2563
2563
  // deoptimization and serious performance degradation
2564
2564
  // https://github.com/zloirock/core-js/issues/677
2565
- return V8_VERSION$2 >= 51 || !fails$h(function () {
2565
+ return V8_VERSION$2 >= 51 || !fails$j(function () {
2566
2566
  var array = [];
2567
2567
  var constructor = array.constructor = {};
2568
2568
  constructor[SPECIES$3] = function () {
@@ -2572,11 +2572,11 @@ var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
2572
2572
  });
2573
2573
  };
2574
2574
 
2575
- var $$j = _export;
2576
- var global$s = global$T;
2577
- var fails$g = fails$v;
2575
+ var $$l = _export;
2576
+ var global$t = global$U;
2577
+ var fails$i = fails$x;
2578
2578
  var isArray$7 = isArray$9;
2579
- var isObject$5 = isObject$h;
2579
+ var isObject$8 = isObject$k;
2580
2580
  var toObject$7 = toObject$9;
2581
2581
  var lengthOfArrayLike$5 = lengthOfArrayLike$8;
2582
2582
  var createProperty$1 = createProperty$3;
@@ -2588,12 +2588,12 @@ var V8_VERSION$1 = engineV8Version;
2588
2588
  var IS_CONCAT_SPREADABLE = wellKnownSymbol$d('isConcatSpreadable');
2589
2589
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
2590
2590
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
2591
- var TypeError$b = global$s.TypeError;
2591
+ var TypeError$b = global$t.TypeError;
2592
2592
 
2593
2593
  // We can't use this feature detection in V8 since it causes
2594
2594
  // deoptimization and serious performance degradation
2595
2595
  // https://github.com/zloirock/core-js/issues/679
2596
- var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$g(function () {
2596
+ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$i(function () {
2597
2597
  var array = [];
2598
2598
  array[IS_CONCAT_SPREADABLE] = false;
2599
2599
  return array.concat()[0] !== array;
@@ -2602,7 +2602,7 @@ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$g(function () {
2602
2602
  var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$2('concat');
2603
2603
 
2604
2604
  var isConcatSpreadable = function (O) {
2605
- if (!isObject$5(O)) return false;
2605
+ if (!isObject$8(O)) return false;
2606
2606
  var spreadable = O[IS_CONCAT_SPREADABLE];
2607
2607
  return spreadable !== undefined ? !!spreadable : isArray$7(O);
2608
2608
  };
@@ -2612,7 +2612,7 @@ var FORCED$4 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
2612
2612
  // `Array.prototype.concat` method
2613
2613
  // https://tc39.es/ecma262/#sec-array.prototype.concat
2614
2614
  // with adding support of @@isConcatSpreadable and @@species
2615
- $$j({ target: 'Array', proto: true, forced: FORCED$4 }, {
2615
+ $$l({ target: 'Array', proto: true, forced: FORCED$4 }, {
2616
2616
  // eslint-disable-next-line no-unused-vars -- required for `.length`
2617
2617
  concat: function concat(arg) {
2618
2618
  var O = toObject$7(this);
@@ -2669,13 +2669,13 @@ var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString()
2669
2669
  };
2670
2670
 
2671
2671
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2672
- var redefine$8 = redefine$a.exports;
2672
+ var redefine$9 = redefine$b.exports;
2673
2673
  var toString$7 = objectToString;
2674
2674
 
2675
2675
  // `Object.prototype.toString` method
2676
2676
  // https://tc39.es/ecma262/#sec-object.prototype.tostring
2677
2677
  if (!TO_STRING_TAG_SUPPORT) {
2678
- redefine$8(Object.prototype, 'toString', toString$7, { unsafe: true });
2678
+ redefine$9(Object.prototype, 'toString', toString$7, { unsafe: true });
2679
2679
  }
2680
2680
 
2681
2681
  // iterable DOM collections
@@ -2722,11 +2722,11 @@ var DOMTokenListPrototype$2 = classList && classList.constructor && classList.co
2722
2722
 
2723
2723
  var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2;
2724
2724
 
2725
- var uncurryThis$j = functionUncurryThis;
2725
+ var uncurryThis$l = functionUncurryThis;
2726
2726
  var aCallable$5 = aCallable$7;
2727
2727
  var NATIVE_BIND = functionBindNative;
2728
2728
 
2729
- var bind$b = uncurryThis$j(uncurryThis$j.bind);
2729
+ var bind$b = uncurryThis$l(uncurryThis$l.bind);
2730
2730
 
2731
2731
  // optional / simple context binding
2732
2732
  var functionBindContext = function (fn, that) {
@@ -2737,13 +2737,13 @@ var functionBindContext = function (fn, that) {
2737
2737
  };
2738
2738
 
2739
2739
  var bind$a = functionBindContext;
2740
- var uncurryThis$i = functionUncurryThis;
2740
+ var uncurryThis$k = functionUncurryThis;
2741
2741
  var IndexedObject$3 = indexedObject;
2742
2742
  var toObject$6 = toObject$9;
2743
2743
  var lengthOfArrayLike$4 = lengthOfArrayLike$8;
2744
2744
  var arraySpeciesCreate = arraySpeciesCreate$2;
2745
2745
 
2746
- var push$6 = uncurryThis$i([].push);
2746
+ var push$6 = uncurryThis$k([].push);
2747
2747
 
2748
2748
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
2749
2749
  var createMethod$4 = function (TYPE) {
@@ -2810,11 +2810,11 @@ var arrayIteration = {
2810
2810
  filterReject: createMethod$4(7)
2811
2811
  };
2812
2812
 
2813
- var fails$f = fails$v;
2813
+ var fails$h = fails$x;
2814
2814
 
2815
2815
  var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
2816
2816
  var method = [][METHOD_NAME];
2817
- return !!method && fails$f(function () {
2817
+ return !!method && fails$h(function () {
2818
2818
  // eslint-disable-next-line no-useless-call -- required for testing
2819
2819
  method.call(null, argument || function () { return 1; }, 1);
2820
2820
  });
@@ -2832,7 +2832,7 @@ var arrayForEach = !STRICT_METHOD$3 ? function forEach(callbackfn /* , thisArg *
2832
2832
  // eslint-disable-next-line es/no-array-prototype-foreach -- safe
2833
2833
  } : [].forEach;
2834
2834
 
2835
- var global$r = global$T;
2835
+ var global$s = global$U;
2836
2836
  var DOMIterables$1 = domIterables;
2837
2837
  var DOMTokenListPrototype$1 = domTokenListPrototype;
2838
2838
  var forEach$1 = arrayForEach;
@@ -2849,7 +2849,7 @@ var handlePrototype$1 = function (CollectionPrototype) {
2849
2849
 
2850
2850
  for (var COLLECTION_NAME$1 in DOMIterables$1) {
2851
2851
  if (DOMIterables$1[COLLECTION_NAME$1]) {
2852
- handlePrototype$1(global$r[COLLECTION_NAME$1] && global$r[COLLECTION_NAME$1].prototype);
2852
+ handlePrototype$1(global$s[COLLECTION_NAME$1] && global$s[COLLECTION_NAME$1].prototype);
2853
2853
  }
2854
2854
  }
2855
2855
 
@@ -2865,27 +2865,27 @@ var objectKeys$3 = Object.keys || function keys(O) {
2865
2865
  return internalObjectKeys(O, enumBugKeys$1);
2866
2866
  };
2867
2867
 
2868
- var $$i = _export;
2868
+ var $$k = _export;
2869
2869
  var toObject$5 = toObject$9;
2870
2870
  var nativeKeys = objectKeys$3;
2871
- var fails$e = fails$v;
2871
+ var fails$g = fails$x;
2872
2872
 
2873
- var FAILS_ON_PRIMITIVES = fails$e(function () { nativeKeys(1); });
2873
+ var FAILS_ON_PRIMITIVES$1 = fails$g(function () { nativeKeys(1); });
2874
2874
 
2875
2875
  // `Object.keys` method
2876
2876
  // https://tc39.es/ecma262/#sec-object.keys
2877
- $$i({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
2877
+ $$k({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1 }, {
2878
2878
  keys: function keys(it) {
2879
2879
  return nativeKeys(toObject$5(it));
2880
2880
  }
2881
2881
  });
2882
2882
 
2883
- var anObject$a = anObject$e;
2883
+ var anObject$b = anObject$f;
2884
2884
 
2885
2885
  // `RegExp.prototype.flags` getter implementation
2886
2886
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2887
2887
  var regexpFlags$1 = function () {
2888
- var that = anObject$a(this);
2888
+ var that = anObject$b(this);
2889
2889
  var result = '';
2890
2890
  if (that.global) result += 'g';
2891
2891
  if (that.ignoreCase) result += 'i';
@@ -2896,13 +2896,13 @@ var regexpFlags$1 = function () {
2896
2896
  return result;
2897
2897
  };
2898
2898
 
2899
- var fails$d = fails$v;
2900
- var global$q = global$T;
2899
+ var fails$f = fails$x;
2900
+ var global$r = global$U;
2901
2901
 
2902
2902
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2903
- var $RegExp$2 = global$q.RegExp;
2903
+ var $RegExp$2 = global$r.RegExp;
2904
2904
 
2905
- var UNSUPPORTED_Y$1 = fails$d(function () {
2905
+ var UNSUPPORTED_Y$1 = fails$f(function () {
2906
2906
  var re = $RegExp$2('a', 'y');
2907
2907
  re.lastIndex = 2;
2908
2908
  return re.exec('abcd') != null;
@@ -2910,11 +2910,11 @@ var UNSUPPORTED_Y$1 = fails$d(function () {
2910
2910
 
2911
2911
  // UC Browser bug
2912
2912
  // https://github.com/zloirock/core-js/issues/1008
2913
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$d(function () {
2913
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$f(function () {
2914
2914
  return !$RegExp$2('a', 'y').sticky;
2915
2915
  });
2916
2916
 
2917
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$d(function () {
2917
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$f(function () {
2918
2918
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2919
2919
  var re = $RegExp$2('^r', 'gy');
2920
2920
  re.lastIndex = 2;
@@ -2932,7 +2932,7 @@ var objectDefineProperties = {};
2932
2932
  var DESCRIPTORS$7 = descriptors$1;
2933
2933
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2934
2934
  var definePropertyModule$2 = objectDefineProperty;
2935
- var anObject$9 = anObject$e;
2935
+ var anObject$a = anObject$f;
2936
2936
  var toIndexedObject$3 = toIndexedObject$8;
2937
2937
  var objectKeys$2 = objectKeys$3;
2938
2938
 
@@ -2940,7 +2940,7 @@ var objectKeys$2 = objectKeys$3;
2940
2940
  // https://tc39.es/ecma262/#sec-object.defineproperties
2941
2941
  // eslint-disable-next-line es/no-object-defineproperties -- safe
2942
2942
  objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2943
- anObject$9(O);
2943
+ anObject$a(O);
2944
2944
  var props = toIndexedObject$3(Properties);
2945
2945
  var keys = objectKeys$2(Properties);
2946
2946
  var length = keys.length;
@@ -2956,7 +2956,7 @@ var html$2 = getBuiltIn$4('document', 'documentElement');
2956
2956
 
2957
2957
  /* global ActiveXObject -- old IE, WSH */
2958
2958
 
2959
- var anObject$8 = anObject$e;
2959
+ var anObject$9 = anObject$f;
2960
2960
  var definePropertiesModule = objectDefineProperties;
2961
2961
  var enumBugKeys = enumBugKeys$3;
2962
2962
  var hiddenKeys = hiddenKeys$5;
@@ -3029,7 +3029,7 @@ hiddenKeys[IE_PROTO$1] = true;
3029
3029
  var objectCreate = Object.create || function create(O, Properties) {
3030
3030
  var result;
3031
3031
  if (O !== null) {
3032
- EmptyConstructor[PROTOTYPE] = anObject$8(O);
3032
+ EmptyConstructor[PROTOTYPE] = anObject$9(O);
3033
3033
  result = new EmptyConstructor();
3034
3034
  EmptyConstructor[PROTOTYPE] = null;
3035
3035
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -3038,24 +3038,24 @@ var objectCreate = Object.create || function create(O, Properties) {
3038
3038
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
3039
3039
  };
3040
3040
 
3041
- var fails$c = fails$v;
3042
- var global$p = global$T;
3041
+ var fails$e = fails$x;
3042
+ var global$q = global$U;
3043
3043
 
3044
3044
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
3045
- var $RegExp$1 = global$p.RegExp;
3045
+ var $RegExp$1 = global$q.RegExp;
3046
3046
 
3047
- var regexpUnsupportedDotAll = fails$c(function () {
3047
+ var regexpUnsupportedDotAll = fails$e(function () {
3048
3048
  var re = $RegExp$1('.', 's');
3049
3049
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
3050
3050
  });
3051
3051
 
3052
- var fails$b = fails$v;
3053
- var global$o = global$T;
3052
+ var fails$d = fails$x;
3053
+ var global$p = global$U;
3054
3054
 
3055
3055
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
3056
- var $RegExp = global$o.RegExp;
3056
+ var $RegExp = global$p.RegExp;
3057
3057
 
3058
- var regexpUnsupportedNcg = fails$b(function () {
3058
+ var regexpUnsupportedNcg = fails$d(function () {
3059
3059
  var re = $RegExp('(?<a>b)', 'g');
3060
3060
  return re.exec('b').groups.a !== 'b' ||
3061
3061
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -3064,7 +3064,7 @@ var regexpUnsupportedNcg = fails$b(function () {
3064
3064
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
3065
3065
  /* eslint-disable regexp/no-useless-quantifier -- testing */
3066
3066
  var call$9 = functionCall;
3067
- var uncurryThis$h = functionUncurryThis;
3067
+ var uncurryThis$j = functionUncurryThis;
3068
3068
  var toString$6 = toString$9;
3069
3069
  var regexpFlags = regexpFlags$1;
3070
3070
  var stickyHelpers = regexpStickyHelpers;
@@ -3077,10 +3077,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
3077
3077
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
3078
3078
  var nativeExec = RegExp.prototype.exec;
3079
3079
  var patchedExec = nativeExec;
3080
- var charAt$5 = uncurryThis$h(''.charAt);
3081
- var indexOf = uncurryThis$h(''.indexOf);
3082
- var replace$6 = uncurryThis$h(''.replace);
3083
- var stringSlice$3 = uncurryThis$h(''.slice);
3080
+ var charAt$5 = uncurryThis$j(''.charAt);
3081
+ var indexOf = uncurryThis$j(''.indexOf);
3082
+ var replace$6 = uncurryThis$j(''.replace);
3083
+ var stringSlice$3 = uncurryThis$j(''.slice);
3084
3084
 
3085
3085
  var UPDATES_LAST_INDEX_WRONG = (function () {
3086
3086
  var re1 = /a/;
@@ -3178,23 +3178,23 @@ if (PATCH) {
3178
3178
 
3179
3179
  var regexpExec = patchedExec;
3180
3180
 
3181
- var $$h = _export;
3181
+ var $$j = _export;
3182
3182
  var exec$4 = regexpExec;
3183
3183
 
3184
3184
  // `RegExp.prototype.exec` method
3185
3185
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
3186
- $$h({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
3186
+ $$j({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
3187
3187
  exec: exec$4
3188
3188
  });
3189
3189
 
3190
3190
  // TODO: Remove from `core-js@4` since it's moved to entry points
3191
3191
 
3192
- var $$g = _export;
3193
- var global$n = global$T;
3192
+ var $$i = _export;
3193
+ var global$o = global$U;
3194
3194
  var call$8 = functionCall;
3195
- var uncurryThis$g = functionUncurryThis;
3196
- var isCallable$6 = isCallable$k;
3197
- var isObject$4 = isObject$h;
3195
+ var uncurryThis$i = functionUncurryThis;
3196
+ var isCallable$7 = isCallable$l;
3197
+ var isObject$7 = isObject$k;
3198
3198
 
3199
3199
  var DELEGATES_TO_EXEC = function () {
3200
3200
  var execCalled = false;
@@ -3206,17 +3206,17 @@ var DELEGATES_TO_EXEC = function () {
3206
3206
  return re.test('abc') === true && execCalled;
3207
3207
  }();
3208
3208
 
3209
- var Error$1 = global$n.Error;
3210
- var un$Test = uncurryThis$g(/./.test);
3209
+ var Error$1 = global$o.Error;
3210
+ var un$Test = uncurryThis$i(/./.test);
3211
3211
 
3212
3212
  // `RegExp.prototype.test` method
3213
3213
  // https://tc39.es/ecma262/#sec-regexp.prototype.test
3214
- $$g({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
3214
+ $$i({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
3215
3215
  test: function (str) {
3216
3216
  var exec = this.exec;
3217
- if (!isCallable$6(exec)) return un$Test(this, str);
3217
+ if (!isCallable$7(exec)) return un$Test(this, str);
3218
3218
  var result = call$8(exec, this, str);
3219
- if (result !== null && !isObject$4(result)) {
3219
+ if (result !== null && !isObject$7(result)) {
3220
3220
  throw new Error$1('RegExp exec method returned something other than an Object or null');
3221
3221
  }
3222
3222
  return !!result;
@@ -3227,12 +3227,12 @@ $$g({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
3227
3227
  var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
3228
3228
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
3229
3229
 
3230
- var uncurryThis$f = functionUncurryThis;
3230
+ var uncurryThis$h = functionUncurryThis;
3231
3231
  var requireObjectCoercible$1 = requireObjectCoercible$4;
3232
3232
  var toString$5 = toString$9;
3233
3233
  var whitespaces$2 = whitespaces$3;
3234
3234
 
3235
- var replace$5 = uncurryThis$f(''.replace);
3235
+ var replace$5 = uncurryThis$h(''.replace);
3236
3236
  var whitespace = '[' + whitespaces$2 + ']';
3237
3237
  var ltrim = RegExp('^' + whitespace + whitespace + '*');
3238
3238
  var rtrim = RegExp(whitespace + whitespace + '*$');
@@ -3259,21 +3259,21 @@ var stringTrim = {
3259
3259
  trim: createMethod$3(3)
3260
3260
  };
3261
3261
 
3262
- var global$m = global$T;
3263
- var fails$a = fails$v;
3264
- var uncurryThis$e = functionUncurryThis;
3262
+ var global$n = global$U;
3263
+ var fails$c = fails$x;
3264
+ var uncurryThis$g = functionUncurryThis;
3265
3265
  var toString$4 = toString$9;
3266
3266
  var trim$2 = stringTrim.trim;
3267
3267
  var whitespaces$1 = whitespaces$3;
3268
3268
 
3269
- var $parseInt$1 = global$m.parseInt;
3270
- var Symbol$1 = global$m.Symbol;
3269
+ var $parseInt$1 = global$n.parseInt;
3270
+ var Symbol$1 = global$n.Symbol;
3271
3271
  var ITERATOR$8 = Symbol$1 && Symbol$1.iterator;
3272
3272
  var hex = /^[+-]?0x/i;
3273
- var exec$3 = uncurryThis$e(hex.exec);
3273
+ var exec$3 = uncurryThis$g(hex.exec);
3274
3274
  var FORCED$3 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
3275
3275
  // MS Edge 18- broken with boxed symbols
3276
- || (ITERATOR$8 && !fails$a(function () { $parseInt$1(Object(ITERATOR$8)); }));
3276
+ || (ITERATOR$8 && !fails$c(function () { $parseInt$1(Object(ITERATOR$8)); }));
3277
3277
 
3278
3278
  // `parseInt` method
3279
3279
  // https://tc39.es/ecma262/#sec-parseint-string-radix
@@ -3282,32 +3282,32 @@ var numberParseInt = FORCED$3 ? function parseInt(string, radix) {
3282
3282
  return $parseInt$1(S, (radix >>> 0) || (exec$3(hex, S) ? 16 : 10));
3283
3283
  } : $parseInt$1;
3284
3284
 
3285
- var $$f = _export;
3285
+ var $$h = _export;
3286
3286
  var $parseInt = numberParseInt;
3287
3287
 
3288
3288
  // `parseInt` method
3289
3289
  // https://tc39.es/ecma262/#sec-parseint-string-radix
3290
- $$f({ global: true, forced: parseInt != $parseInt }, {
3290
+ $$h({ global: true, forced: parseInt != $parseInt }, {
3291
3291
  parseInt: $parseInt
3292
3292
  });
3293
3293
 
3294
- var uncurryThis$d = functionUncurryThis;
3294
+ var uncurryThis$f = functionUncurryThis;
3295
3295
 
3296
3296
  // `thisNumberValue` abstract operation
3297
3297
  // https://tc39.es/ecma262/#sec-thisnumbervalue
3298
- var thisNumberValue$1 = uncurryThis$d(1.0.valueOf);
3298
+ var thisNumberValue$1 = uncurryThis$f(1.0.valueOf);
3299
3299
 
3300
3300
  var DESCRIPTORS$6 = descriptors$1;
3301
- var global$l = global$T;
3302
- var uncurryThis$c = functionUncurryThis;
3303
- var isForced$1 = isForced_1;
3304
- var redefine$7 = redefine$a.exports;
3305
- var hasOwn$5 = hasOwnProperty_1;
3306
- var inheritIfRequired = inheritIfRequired$2;
3301
+ var global$m = global$U;
3302
+ var uncurryThis$e = functionUncurryThis;
3303
+ var isForced$2 = isForced_1;
3304
+ var redefine$8 = redefine$b.exports;
3305
+ var hasOwn$6 = hasOwnProperty_1;
3306
+ var inheritIfRequired$1 = inheritIfRequired$3;
3307
3307
  var isPrototypeOf$3 = objectIsPrototypeOf;
3308
3308
  var isSymbol = isSymbol$3;
3309
3309
  var toPrimitive = toPrimitive$2;
3310
- var fails$9 = fails$v;
3310
+ var fails$b = fails$x;
3311
3311
  var getOwnPropertyNames = objectGetOwnPropertyNames.f;
3312
3312
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
3313
3313
  var defineProperty$4 = objectDefineProperty.f;
@@ -3315,11 +3315,11 @@ var thisNumberValue = thisNumberValue$1;
3315
3315
  var trim$1 = stringTrim.trim;
3316
3316
 
3317
3317
  var NUMBER = 'Number';
3318
- var NativeNumber = global$l[NUMBER];
3318
+ var NativeNumber = global$m[NUMBER];
3319
3319
  var NumberPrototype = NativeNumber.prototype;
3320
- var TypeError$a = global$l.TypeError;
3321
- var arraySlice$4 = uncurryThis$c(''.slice);
3322
- var charCodeAt$3 = uncurryThis$c(''.charCodeAt);
3320
+ var TypeError$a = global$m.TypeError;
3321
+ var arraySlice$4 = uncurryThis$e(''.slice);
3322
+ var charCodeAt$3 = uncurryThis$e(''.charCodeAt);
3323
3323
 
3324
3324
  // `ToNumeric` abstract operation
3325
3325
  // https://tc39.es/ecma262/#sec-tonumeric
@@ -3360,13 +3360,13 @@ var toNumber = function (argument) {
3360
3360
 
3361
3361
  // `Number` constructor
3362
3362
  // https://tc39.es/ecma262/#sec-number-constructor
3363
- if (isForced$1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
3363
+ if (isForced$2(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
3364
3364
  var NumberWrapper = function Number(value) {
3365
3365
  var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
3366
3366
  var dummy = this;
3367
3367
  // check on 1..constructor(foo) case
3368
- return isPrototypeOf$3(NumberPrototype, dummy) && fails$9(function () { thisNumberValue(dummy); })
3369
- ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
3368
+ return isPrototypeOf$3(NumberPrototype, dummy) && fails$b(function () { thisNumberValue(dummy); })
3369
+ ? inheritIfRequired$1(Object(n), dummy, NumberWrapper) : n;
3370
3370
  };
3371
3371
  for (var keys = DESCRIPTORS$6 ? getOwnPropertyNames(NativeNumber) : (
3372
3372
  // ES3:
@@ -3376,13 +3376,13 @@ if (isForced$1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNu
3376
3376
  // ESNext
3377
3377
  'fromString,range'
3378
3378
  ).split(','), j = 0, key; keys.length > j; j++) {
3379
- if (hasOwn$5(NativeNumber, key = keys[j]) && !hasOwn$5(NumberWrapper, key)) {
3379
+ if (hasOwn$6(NativeNumber, key = keys[j]) && !hasOwn$6(NumberWrapper, key)) {
3380
3380
  defineProperty$4(NumberWrapper, key, getOwnPropertyDescriptor$1(NativeNumber, key));
3381
3381
  }
3382
3382
  }
3383
3383
  NumberWrapper.prototype = NumberPrototype;
3384
3384
  NumberPrototype.constructor = NumberWrapper;
3385
- redefine$7(global$l, NUMBER, NumberWrapper);
3385
+ redefine$8(global$m, NUMBER, NumberWrapper);
3386
3386
  }
3387
3387
 
3388
3388
  function isPublicKey(value) {
@@ -3538,7 +3538,7 @@ function ValidateTransactionParameters(data) {
3538
3538
  return errors;
3539
3539
  }
3540
3540
 
3541
- var $$e = _export;
3541
+ var $$g = _export;
3542
3542
  var $map = arrayIteration.map;
3543
3543
  var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
3544
3544
 
@@ -3547,7 +3547,7 @@ var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('map');
3547
3547
  // `Array.prototype.map` method
3548
3548
  // https://tc39.es/ecma262/#sec-array.prototype.map
3549
3549
  // with adding support of @@species
3550
- $$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
3550
+ $$g({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
3551
3551
  map: function map(callbackfn /* , thisArg */) {
3552
3552
  return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3553
3553
  }
@@ -3614,13 +3614,13 @@ var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
3614
3614
 
3615
3615
  var engineWebkitVersion = !!webkit && +webkit[1];
3616
3616
 
3617
- var $$d = _export;
3618
- var uncurryThis$b = functionUncurryThis;
3617
+ var $$f = _export;
3618
+ var uncurryThis$d = functionUncurryThis;
3619
3619
  var aCallable$4 = aCallable$7;
3620
3620
  var toObject$4 = toObject$9;
3621
3621
  var lengthOfArrayLike$3 = lengthOfArrayLike$8;
3622
3622
  var toString$3 = toString$9;
3623
- var fails$8 = fails$v;
3623
+ var fails$a = fails$x;
3624
3624
  var internalSort = arraySort$1;
3625
3625
  var arrayMethodIsStrict$2 = arrayMethodIsStrict$4;
3626
3626
  var FF = engineFfVersion;
@@ -3629,21 +3629,21 @@ var V8 = engineV8Version;
3629
3629
  var WEBKIT = engineWebkitVersion;
3630
3630
 
3631
3631
  var test = [];
3632
- var un$Sort = uncurryThis$b(test.sort);
3633
- var push$5 = uncurryThis$b(test.push);
3632
+ var un$Sort = uncurryThis$d(test.sort);
3633
+ var push$5 = uncurryThis$d(test.push);
3634
3634
 
3635
3635
  // IE8-
3636
- var FAILS_ON_UNDEFINED = fails$8(function () {
3636
+ var FAILS_ON_UNDEFINED = fails$a(function () {
3637
3637
  test.sort(undefined);
3638
3638
  });
3639
3639
  // V8 bug
3640
- var FAILS_ON_NULL = fails$8(function () {
3640
+ var FAILS_ON_NULL = fails$a(function () {
3641
3641
  test.sort(null);
3642
3642
  });
3643
3643
  // Old WebKit
3644
3644
  var STRICT_METHOD$2 = arrayMethodIsStrict$2('sort');
3645
3645
 
3646
- var STABLE_SORT = !fails$8(function () {
3646
+ var STABLE_SORT = !fails$a(function () {
3647
3647
  // feature detection can be too slow, so check engines versions
3648
3648
  if (V8) return V8 < 70;
3649
3649
  if (FF && FF > 3) return;
@@ -3691,7 +3691,7 @@ var getSortCompare = function (comparefn) {
3691
3691
 
3692
3692
  // `Array.prototype.sort` method
3693
3693
  // https://tc39.es/ecma262/#sec-array.prototype.sort
3694
- $$d({ target: 'Array', proto: true, forced: FORCED$2 }, {
3694
+ $$f({ target: 'Array', proto: true, forced: FORCED$2 }, {
3695
3695
  sort: function sort(comparefn) {
3696
3696
  if (comparefn !== undefined) aCallable$4(comparefn);
3697
3697
 
@@ -3719,7 +3719,7 @@ $$d({ target: 'Array', proto: true, forced: FORCED$2 }, {
3719
3719
  }
3720
3720
  });
3721
3721
 
3722
- var $$c = _export;
3722
+ var $$e = _export;
3723
3723
  var $filter = arrayIteration.filter;
3724
3724
  var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
3725
3725
 
@@ -3728,26 +3728,26 @@ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
3728
3728
  // `Array.prototype.filter` method
3729
3729
  // https://tc39.es/ecma262/#sec-array.prototype.filter
3730
3730
  // with adding support of @@species
3731
- $$c({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3731
+ $$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3732
3732
  filter: function filter(callbackfn /* , thisArg */) {
3733
3733
  return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3734
3734
  }
3735
3735
  });
3736
3736
 
3737
- var $$b = _export;
3738
- var uncurryThis$a = functionUncurryThis;
3737
+ var $$d = _export;
3738
+ var uncurryThis$c = functionUncurryThis;
3739
3739
  var IndexedObject$2 = indexedObject;
3740
3740
  var toIndexedObject$2 = toIndexedObject$8;
3741
3741
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$4;
3742
3742
 
3743
- var un$Join = uncurryThis$a([].join);
3743
+ var un$Join = uncurryThis$c([].join);
3744
3744
 
3745
3745
  var ES3_STRINGS = IndexedObject$2 != Object;
3746
3746
  var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
3747
3747
 
3748
3748
  // `Array.prototype.join` method
3749
3749
  // https://tc39.es/ecma262/#sec-array.prototype.join
3750
- $$b({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
3750
+ $$d({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
3751
3751
  join: function join(separator) {
3752
3752
  return un$Join(toIndexedObject$2(this), separator === undefined ? ',' : separator);
3753
3753
  }
@@ -5170,26 +5170,26 @@ var fingerprint2 = {exports: {}};
5170
5170
 
5171
5171
  var Fingerprint2 = fingerprint2.exports;
5172
5172
 
5173
- var global$k = global$T;
5173
+ var global$l = global$U;
5174
5174
 
5175
- var nativePromiseConstructor = global$k.Promise;
5175
+ var nativePromiseConstructor = global$l.Promise;
5176
5176
 
5177
- var redefine$6 = redefine$a.exports;
5177
+ var redefine$7 = redefine$b.exports;
5178
5178
 
5179
- var redefineAll$2 = function (target, src, options) {
5180
- for (var key in src) redefine$6(target, key, src[key], options);
5179
+ var redefineAll$3 = function (target, src, options) {
5180
+ for (var key in src) redefine$7(target, key, src[key], options);
5181
5181
  return target;
5182
5182
  };
5183
5183
 
5184
5184
  var defineProperty$3 = objectDefineProperty.f;
5185
- var hasOwn$4 = hasOwnProperty_1;
5185
+ var hasOwn$5 = hasOwnProperty_1;
5186
5186
  var wellKnownSymbol$c = wellKnownSymbol$j;
5187
5187
 
5188
5188
  var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
5189
5189
 
5190
- var setToStringTag$5 = function (target, TAG, STATIC) {
5190
+ var setToStringTag$6 = function (target, TAG, STATIC) {
5191
5191
  if (target && !STATIC) target = target.prototype;
5192
- if (target && !hasOwn$4(target, TO_STRING_TAG$1)) {
5192
+ if (target && !hasOwn$5(target, TO_STRING_TAG$1)) {
5193
5193
  defineProperty$3(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
5194
5194
  }
5195
5195
  };
@@ -5213,12 +5213,12 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
5213
5213
  }
5214
5214
  };
5215
5215
 
5216
- var global$j = global$T;
5216
+ var global$k = global$U;
5217
5217
  var isPrototypeOf$2 = objectIsPrototypeOf;
5218
5218
 
5219
- var TypeError$9 = global$j.TypeError;
5219
+ var TypeError$9 = global$k.TypeError;
5220
5220
 
5221
- var anInstance$3 = function (it, Prototype) {
5221
+ var anInstance$5 = function (it, Prototype) {
5222
5222
  if (isPrototypeOf$2(Prototype, it)) return it;
5223
5223
  throw TypeError$9('Incorrect invocation');
5224
5224
  };
@@ -5249,28 +5249,28 @@ var getIteratorMethod$4 = function (it) {
5249
5249
  || Iterators$3[classof$2(it)];
5250
5250
  };
5251
5251
 
5252
- var global$i = global$T;
5252
+ var global$j = global$U;
5253
5253
  var call$7 = functionCall;
5254
5254
  var aCallable$3 = aCallable$7;
5255
- var anObject$7 = anObject$e;
5255
+ var anObject$8 = anObject$f;
5256
5256
  var tryToString$2 = tryToString$4;
5257
5257
  var getIteratorMethod$3 = getIteratorMethod$4;
5258
5258
 
5259
- var TypeError$8 = global$i.TypeError;
5259
+ var TypeError$8 = global$j.TypeError;
5260
5260
 
5261
5261
  var getIterator$3 = function (argument, usingIterator) {
5262
5262
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
5263
- if (aCallable$3(iteratorMethod)) return anObject$7(call$7(iteratorMethod, argument));
5263
+ if (aCallable$3(iteratorMethod)) return anObject$8(call$7(iteratorMethod, argument));
5264
5264
  throw TypeError$8(tryToString$2(argument) + ' is not iterable');
5265
5265
  };
5266
5266
 
5267
5267
  var call$6 = functionCall;
5268
- var anObject$6 = anObject$e;
5268
+ var anObject$7 = anObject$f;
5269
5269
  var getMethod = getMethod$3;
5270
5270
 
5271
5271
  var iteratorClose$2 = function (iterator, kind, value) {
5272
5272
  var innerResult, innerError;
5273
- anObject$6(iterator);
5273
+ anObject$7(iterator);
5274
5274
  try {
5275
5275
  innerResult = getMethod(iterator, 'return');
5276
5276
  if (!innerResult) {
@@ -5284,14 +5284,14 @@ var iteratorClose$2 = function (iterator, kind, value) {
5284
5284
  }
5285
5285
  if (kind === 'throw') throw value;
5286
5286
  if (innerError) throw innerResult;
5287
- anObject$6(innerResult);
5287
+ anObject$7(innerResult);
5288
5288
  return value;
5289
5289
  };
5290
5290
 
5291
- var global$h = global$T;
5291
+ var global$i = global$U;
5292
5292
  var bind$9 = functionBindContext;
5293
5293
  var call$5 = functionCall;
5294
- var anObject$5 = anObject$e;
5294
+ var anObject$6 = anObject$f;
5295
5295
  var tryToString$1 = tryToString$4;
5296
5296
  var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
5297
5297
  var lengthOfArrayLike$2 = lengthOfArrayLike$8;
@@ -5300,7 +5300,7 @@ var getIterator$2 = getIterator$3;
5300
5300
  var getIteratorMethod$2 = getIteratorMethod$4;
5301
5301
  var iteratorClose$1 = iteratorClose$2;
5302
5302
 
5303
- var TypeError$7 = global$h.TypeError;
5303
+ var TypeError$7 = global$i.TypeError;
5304
5304
 
5305
5305
  var Result = function (stopped, result) {
5306
5306
  this.stopped = stopped;
@@ -5309,7 +5309,7 @@ var Result = function (stopped, result) {
5309
5309
 
5310
5310
  var ResultPrototype = Result.prototype;
5311
5311
 
5312
- var iterate$1 = function (iterable, unboundFunction, options) {
5312
+ var iterate$3 = function (iterable, unboundFunction, options) {
5313
5313
  var that = options && options.that;
5314
5314
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
5315
5315
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
@@ -5324,7 +5324,7 @@ var iterate$1 = function (iterable, unboundFunction, options) {
5324
5324
 
5325
5325
  var callFn = function (value) {
5326
5326
  if (AS_ENTRIES) {
5327
- anObject$5(value);
5327
+ anObject$6(value);
5328
5328
  return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
5329
5329
  } return INTERRUPTED ? fn(value, stop) : fn(value);
5330
5330
  };
@@ -5377,7 +5377,7 @@ try {
5377
5377
  Array.from(iteratorWithReturn, function () { throw 2; });
5378
5378
  } catch (error) { /* empty */ }
5379
5379
 
5380
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
5380
+ var checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) {
5381
5381
  if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
5382
5382
  var ITERATION_SUPPORT = false;
5383
5383
  try {
@@ -5394,11 +5394,11 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
5394
5394
  return ITERATION_SUPPORT;
5395
5395
  };
5396
5396
 
5397
- var global$g = global$T;
5397
+ var global$h = global$U;
5398
5398
  var isConstructor$1 = isConstructor$3;
5399
5399
  var tryToString = tryToString$4;
5400
5400
 
5401
- var TypeError$6 = global$g.TypeError;
5401
+ var TypeError$6 = global$h.TypeError;
5402
5402
 
5403
5403
  // `Assert: IsConstructor(argument) is true`
5404
5404
  var aConstructor$1 = function (argument) {
@@ -5406,7 +5406,7 @@ var aConstructor$1 = function (argument) {
5406
5406
  throw TypeError$6(tryToString(argument) + ' is not a constructor');
5407
5407
  };
5408
5408
 
5409
- var anObject$4 = anObject$e;
5409
+ var anObject$5 = anObject$f;
5410
5410
  var aConstructor = aConstructor$1;
5411
5411
  var wellKnownSymbol$7 = wellKnownSymbol$j;
5412
5412
 
@@ -5415,18 +5415,18 @@ var SPECIES$1 = wellKnownSymbol$7('species');
5415
5415
  // `SpeciesConstructor` abstract operation
5416
5416
  // https://tc39.es/ecma262/#sec-speciesconstructor
5417
5417
  var speciesConstructor$1 = function (O, defaultConstructor) {
5418
- var C = anObject$4(O).constructor;
5418
+ var C = anObject$5(O).constructor;
5419
5419
  var S;
5420
- return C === undefined || (S = anObject$4(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
5420
+ return C === undefined || (S = anObject$5(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
5421
5421
  };
5422
5422
 
5423
- var uncurryThis$9 = functionUncurryThis;
5423
+ var uncurryThis$b = functionUncurryThis;
5424
5424
 
5425
- var arraySlice$2 = uncurryThis$9([].slice);
5425
+ var arraySlice$2 = uncurryThis$b([].slice);
5426
5426
 
5427
- var global$f = global$T;
5427
+ var global$g = global$U;
5428
5428
 
5429
- var TypeError$5 = global$f.TypeError;
5429
+ var TypeError$5 = global$g.TypeError;
5430
5430
 
5431
5431
  var validateArgumentsLength$3 = function (passed, required) {
5432
5432
  if (passed < required) throw TypeError$5('Not enough arguments');
@@ -5438,16 +5438,16 @@ var userAgent$2 = engineUserAgent;
5438
5438
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
5439
5439
 
5440
5440
  var classof$1 = classofRaw$1;
5441
- var global$e = global$T;
5441
+ var global$f = global$U;
5442
5442
 
5443
- var engineIsNode = classof$1(global$e.process) == 'process';
5443
+ var engineIsNode = classof$1(global$f.process) == 'process';
5444
5444
 
5445
- var global$d = global$T;
5445
+ var global$e = global$U;
5446
5446
  var apply$1 = functionApply;
5447
5447
  var bind$8 = functionBindContext;
5448
- var isCallable$5 = isCallable$k;
5449
- var hasOwn$3 = hasOwnProperty_1;
5450
- var fails$7 = fails$v;
5448
+ var isCallable$6 = isCallable$l;
5449
+ var hasOwn$4 = hasOwnProperty_1;
5450
+ var fails$9 = fails$x;
5451
5451
  var html = html$2;
5452
5452
  var arraySlice$1 = arraySlice$2;
5453
5453
  var createElement = documentCreateElement$2;
@@ -5455,13 +5455,13 @@ var validateArgumentsLength$2 = validateArgumentsLength$3;
5455
5455
  var IS_IOS$1 = engineIsIos;
5456
5456
  var IS_NODE$3 = engineIsNode;
5457
5457
 
5458
- var set = global$d.setImmediate;
5459
- var clear = global$d.clearImmediate;
5460
- var process$3 = global$d.process;
5461
- var Dispatch = global$d.Dispatch;
5462
- var Function$1 = global$d.Function;
5463
- var MessageChannel = global$d.MessageChannel;
5464
- var String$1 = global$d.String;
5458
+ var set = global$e.setImmediate;
5459
+ var clear = global$e.clearImmediate;
5460
+ var process$3 = global$e.process;
5461
+ var Dispatch = global$e.Dispatch;
5462
+ var Function$1 = global$e.Function;
5463
+ var MessageChannel = global$e.MessageChannel;
5464
+ var String$1 = global$e.String;
5465
5465
  var counter = 0;
5466
5466
  var queue$1 = {};
5467
5467
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -5469,11 +5469,11 @@ var location, defer, channel, port;
5469
5469
 
5470
5470
  try {
5471
5471
  // Deno throws a ReferenceError on `location` access without `--location` flag
5472
- location = global$d.location;
5472
+ location = global$e.location;
5473
5473
  } catch (error) { /* empty */ }
5474
5474
 
5475
5475
  var run = function (id) {
5476
- if (hasOwn$3(queue$1, id)) {
5476
+ if (hasOwn$4(queue$1, id)) {
5477
5477
  var fn = queue$1[id];
5478
5478
  delete queue$1[id];
5479
5479
  fn();
@@ -5492,14 +5492,14 @@ var listener = function (event) {
5492
5492
 
5493
5493
  var post = function (id) {
5494
5494
  // old engines have not location.origin
5495
- global$d.postMessage(String$1(id), location.protocol + '//' + location.host);
5495
+ global$e.postMessage(String$1(id), location.protocol + '//' + location.host);
5496
5496
  };
5497
5497
 
5498
5498
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
5499
5499
  if (!set || !clear) {
5500
5500
  set = function setImmediate(handler) {
5501
5501
  validateArgumentsLength$2(arguments.length, 1);
5502
- var fn = isCallable$5(handler) ? handler : Function$1(handler);
5502
+ var fn = isCallable$6(handler) ? handler : Function$1(handler);
5503
5503
  var args = arraySlice$1(arguments, 1);
5504
5504
  queue$1[++counter] = function () {
5505
5505
  apply$1(fn, undefined, args);
@@ -5530,14 +5530,14 @@ if (!set || !clear) {
5530
5530
  // Browsers with postMessage, skip WebWorkers
5531
5531
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
5532
5532
  } else if (
5533
- global$d.addEventListener &&
5534
- isCallable$5(global$d.postMessage) &&
5535
- !global$d.importScripts &&
5533
+ global$e.addEventListener &&
5534
+ isCallable$6(global$e.postMessage) &&
5535
+ !global$e.importScripts &&
5536
5536
  location && location.protocol !== 'file:' &&
5537
- !fails$7(post)
5537
+ !fails$9(post)
5538
5538
  ) {
5539
5539
  defer = post;
5540
- global$d.addEventListener('message', listener, false);
5540
+ global$e.addEventListener('message', listener, false);
5541
5541
  // IE8-
5542
5542
  } else if (ONREADYSTATECHANGE in createElement('script')) {
5543
5543
  defer = function (id) {
@@ -5560,15 +5560,15 @@ var task$1 = {
5560
5560
  };
5561
5561
 
5562
5562
  var userAgent$1 = engineUserAgent;
5563
- var global$c = global$T;
5563
+ var global$d = global$U;
5564
5564
 
5565
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$c.Pebble !== undefined;
5565
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$d.Pebble !== undefined;
5566
5566
 
5567
5567
  var userAgent = engineUserAgent;
5568
5568
 
5569
5569
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
5570
5570
 
5571
- var global$b = global$T;
5571
+ var global$c = global$U;
5572
5572
  var bind$7 = functionBindContext;
5573
5573
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
5574
5574
  var macrotask = task$1.set;
@@ -5577,12 +5577,12 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
5577
5577
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
5578
5578
  var IS_NODE$2 = engineIsNode;
5579
5579
 
5580
- var MutationObserver = global$b.MutationObserver || global$b.WebKitMutationObserver;
5581
- var document$2 = global$b.document;
5582
- var process$2 = global$b.process;
5583
- var Promise$1 = global$b.Promise;
5580
+ var MutationObserver = global$c.MutationObserver || global$c.WebKitMutationObserver;
5581
+ var document$2 = global$c.document;
5582
+ var process$2 = global$c.process;
5583
+ var Promise$1 = global$c.Promise;
5584
5584
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
5585
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$b, 'queueMicrotask');
5585
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$c, 'queueMicrotask');
5586
5586
  var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
5587
5587
 
5588
5588
  var flush, head, last, notify$1, toggle, node, promise, then;
@@ -5638,7 +5638,7 @@ if (!queueMicrotask) {
5638
5638
  // - setTimeout
5639
5639
  } else {
5640
5640
  // strange IE + webpack dev server bug - use .bind(global)
5641
- macrotask = bind$7(macrotask, global$b);
5641
+ macrotask = bind$7(macrotask, global$c);
5642
5642
  notify$1 = function () {
5643
5643
  macrotask(flush);
5644
5644
  };
@@ -5675,23 +5675,23 @@ newPromiseCapability$2.f = function (C) {
5675
5675
  return new PromiseCapability(C);
5676
5676
  };
5677
5677
 
5678
- var anObject$3 = anObject$e;
5679
- var isObject$3 = isObject$h;
5678
+ var anObject$4 = anObject$f;
5679
+ var isObject$6 = isObject$k;
5680
5680
  var newPromiseCapability$1 = newPromiseCapability$2;
5681
5681
 
5682
5682
  var promiseResolve$1 = function (C, x) {
5683
- anObject$3(C);
5684
- if (isObject$3(x) && x.constructor === C) return x;
5683
+ anObject$4(C);
5684
+ if (isObject$6(x) && x.constructor === C) return x;
5685
5685
  var promiseCapability = newPromiseCapability$1.f(C);
5686
5686
  var resolve = promiseCapability.resolve;
5687
5687
  resolve(x);
5688
5688
  return promiseCapability.promise;
5689
5689
  };
5690
5690
 
5691
- var global$a = global$T;
5691
+ var global$b = global$U;
5692
5692
 
5693
5693
  var hostReportErrors$1 = function (a, b) {
5694
- var console = global$a.console;
5694
+ var console = global$b.console;
5695
5695
  if (console && console.error) {
5696
5696
  arguments.length == 1 ? console.error(a) : console.error(a, b);
5697
5697
  }
@@ -5731,23 +5731,23 @@ var queue = Queue$1;
5731
5731
 
5732
5732
  var engineIsBrowser = typeof window == 'object';
5733
5733
 
5734
- var $$a = _export;
5735
- var global$9 = global$T;
5734
+ var $$c = _export;
5735
+ var global$a = global$U;
5736
5736
  var getBuiltIn$2 = getBuiltIn$a;
5737
5737
  var call$4 = functionCall;
5738
5738
  var NativePromise = nativePromiseConstructor;
5739
- var redefine$5 = redefine$a.exports;
5740
- var redefineAll$1 = redefineAll$2;
5739
+ var redefine$6 = redefine$b.exports;
5740
+ var redefineAll$2 = redefineAll$3;
5741
5741
  var setPrototypeOf$1 = objectSetPrototypeOf;
5742
- var setToStringTag$4 = setToStringTag$5;
5742
+ var setToStringTag$5 = setToStringTag$6;
5743
5743
  var setSpecies = setSpecies$1;
5744
5744
  var aCallable$1 = aCallable$7;
5745
- var isCallable$4 = isCallable$k;
5746
- var isObject$2 = isObject$h;
5747
- var anInstance$2 = anInstance$3;
5745
+ var isCallable$5 = isCallable$l;
5746
+ var isObject$5 = isObject$k;
5747
+ var anInstance$4 = anInstance$5;
5748
5748
  var inspectSource = inspectSource$4;
5749
- var iterate = iterate$1;
5750
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
5749
+ var iterate$2 = iterate$3;
5750
+ var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2;
5751
5751
  var speciesConstructor = speciesConstructor$1;
5752
5752
  var task = task$1.set;
5753
5753
  var microtask = microtask$1;
@@ -5756,8 +5756,8 @@ var hostReportErrors = hostReportErrors$1;
5756
5756
  var newPromiseCapabilityModule = newPromiseCapability$2;
5757
5757
  var perform = perform$1;
5758
5758
  var Queue = queue;
5759
- var InternalStateModule$4 = internalState;
5760
- var isForced = isForced_1;
5759
+ var InternalStateModule$5 = internalState;
5760
+ var isForced$1 = isForced_1;
5761
5761
  var wellKnownSymbol$6 = wellKnownSymbol$j;
5762
5762
  var IS_BROWSER = engineIsBrowser;
5763
5763
  var IS_NODE$1 = engineIsNode;
@@ -5766,20 +5766,20 @@ var V8_VERSION = engineV8Version;
5766
5766
  var SPECIES = wellKnownSymbol$6('species');
5767
5767
  var PROMISE = 'Promise';
5768
5768
 
5769
- var getInternalState$2 = InternalStateModule$4.getterFor(PROMISE);
5770
- var setInternalState$4 = InternalStateModule$4.set;
5771
- var getInternalPromiseState = InternalStateModule$4.getterFor(PROMISE);
5769
+ var getInternalState$2 = InternalStateModule$5.getterFor(PROMISE);
5770
+ var setInternalState$5 = InternalStateModule$5.set;
5771
+ var getInternalPromiseState = InternalStateModule$5.getterFor(PROMISE);
5772
5772
  var NativePromisePrototype = NativePromise && NativePromise.prototype;
5773
5773
  var PromiseConstructor = NativePromise;
5774
5774
  var PromisePrototype = NativePromisePrototype;
5775
- var TypeError$4 = global$9.TypeError;
5776
- var document$1 = global$9.document;
5777
- var process$1 = global$9.process;
5775
+ var TypeError$4 = global$a.TypeError;
5776
+ var document$1 = global$a.document;
5777
+ var process$1 = global$a.process;
5778
5778
  var newPromiseCapability = newPromiseCapabilityModule.f;
5779
5779
  var newGenericPromiseCapability = newPromiseCapability;
5780
5780
 
5781
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$9.dispatchEvent);
5782
- var NATIVE_REJECTION_EVENT = isCallable$4(global$9.PromiseRejectionEvent);
5781
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$a.dispatchEvent);
5782
+ var NATIVE_REJECTION_EVENT = isCallable$5(global$a.PromiseRejectionEvent);
5783
5783
  var UNHANDLED_REJECTION = 'unhandledrejection';
5784
5784
  var REJECTION_HANDLED = 'rejectionhandled';
5785
5785
  var PENDING = 0;
@@ -5791,7 +5791,7 @@ var SUBCLASSING = false;
5791
5791
 
5792
5792
  var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
5793
5793
 
5794
- var FORCED$1 = isForced(PROMISE, function () {
5794
+ var FORCED$1 = isForced$1(PROMISE, function () {
5795
5795
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
5796
5796
  var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
5797
5797
  // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
@@ -5815,14 +5815,14 @@ var FORCED$1 = isForced(PROMISE, function () {
5815
5815
  return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
5816
5816
  });
5817
5817
 
5818
- var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration(function (iterable) {
5818
+ var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration$1(function (iterable) {
5819
5819
  PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
5820
5820
  });
5821
5821
 
5822
5822
  // helpers
5823
5823
  var isThenable = function (it) {
5824
5824
  var then;
5825
- return isObject$2(it) && isCallable$4(then = it.then) ? then : false;
5825
+ return isObject$5(it) && isCallable$5(then = it.then) ? then : false;
5826
5826
  };
5827
5827
 
5828
5828
  var callReaction = function (reaction, state) {
@@ -5881,14 +5881,14 @@ var dispatchEvent = function (name, promise, reason) {
5881
5881
  event.promise = promise;
5882
5882
  event.reason = reason;
5883
5883
  event.initEvent(name, false, true);
5884
- global$9.dispatchEvent(event);
5884
+ global$a.dispatchEvent(event);
5885
5885
  } else event = { promise: promise, reason: reason };
5886
- if (!NATIVE_REJECTION_EVENT && (handler = global$9['on' + name])) handler(event);
5886
+ if (!NATIVE_REJECTION_EVENT && (handler = global$a['on' + name])) handler(event);
5887
5887
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
5888
5888
  };
5889
5889
 
5890
5890
  var onUnhandled = function (state) {
5891
- call$4(task, global$9, function () {
5891
+ call$4(task, global$a, function () {
5892
5892
  var promise = state.facade;
5893
5893
  var value = state.value;
5894
5894
  var IS_UNHANDLED = isUnhandled(state);
@@ -5911,7 +5911,7 @@ var isUnhandled = function (state) {
5911
5911
  };
5912
5912
 
5913
5913
  var onHandleUnhandled = function (state) {
5914
- call$4(task, global$9, function () {
5914
+ call$4(task, global$a, function () {
5915
5915
  var promise = state.facade;
5916
5916
  if (IS_NODE$1) {
5917
5917
  process$1.emit('rejectionHandled', promise);
@@ -5967,7 +5967,7 @@ var internalResolve = function (state, value, unwrap) {
5967
5967
  if (FORCED$1) {
5968
5968
  // 25.4.3.1 Promise(executor)
5969
5969
  PromiseConstructor = function Promise(executor) {
5970
- anInstance$2(this, PromisePrototype);
5970
+ anInstance$4(this, PromisePrototype);
5971
5971
  aCallable$1(executor);
5972
5972
  call$4(Internal, this);
5973
5973
  var state = getInternalState$2(this);
@@ -5980,7 +5980,7 @@ if (FORCED$1) {
5980
5980
  PromisePrototype = PromiseConstructor.prototype;
5981
5981
  // eslint-disable-next-line no-unused-vars -- required for `.length`
5982
5982
  Internal = function Promise(executor) {
5983
- setInternalState$4(this, {
5983
+ setInternalState$5(this, {
5984
5984
  type: PROMISE,
5985
5985
  done: false,
5986
5986
  notified: false,
@@ -5991,7 +5991,7 @@ if (FORCED$1) {
5991
5991
  value: undefined
5992
5992
  });
5993
5993
  };
5994
- Internal.prototype = redefineAll$1(PromisePrototype, {
5994
+ Internal.prototype = redefineAll$2(PromisePrototype, {
5995
5995
  // `Promise.prototype.then` method
5996
5996
  // https://tc39.es/ecma262/#sec-promise.prototype.then
5997
5997
  // eslint-disable-next-line unicorn/no-thenable -- safe
@@ -5999,8 +5999,8 @@ if (FORCED$1) {
5999
5999
  var state = getInternalPromiseState(this);
6000
6000
  var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
6001
6001
  state.parent = true;
6002
- reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
6003
- reaction.fail = isCallable$4(onRejected) && onRejected;
6002
+ reaction.ok = isCallable$5(onFulfilled) ? onFulfilled : true;
6003
+ reaction.fail = isCallable$5(onRejected) && onRejected;
6004
6004
  reaction.domain = IS_NODE$1 ? process$1.domain : undefined;
6005
6005
  if (state.state == PENDING) state.reactions.add(reaction);
6006
6006
  else microtask(function () {
@@ -6027,12 +6027,12 @@ if (FORCED$1) {
6027
6027
  : newGenericPromiseCapability(C);
6028
6028
  };
6029
6029
 
6030
- if (isCallable$4(NativePromise) && NativePromisePrototype !== Object.prototype) {
6030
+ if (isCallable$5(NativePromise) && NativePromisePrototype !== Object.prototype) {
6031
6031
  nativeThen = NativePromisePrototype.then;
6032
6032
 
6033
6033
  if (!SUBCLASSING) {
6034
6034
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
6035
- redefine$5(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
6035
+ redefine$6(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
6036
6036
  var that = this;
6037
6037
  return new PromiseConstructor(function (resolve, reject) {
6038
6038
  call$4(nativeThen, that, resolve, reject);
@@ -6041,7 +6041,7 @@ if (FORCED$1) {
6041
6041
  }, { unsafe: true });
6042
6042
 
6043
6043
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
6044
- redefine$5(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
6044
+ redefine$6(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
6045
6045
  }
6046
6046
 
6047
6047
  // make `.constructor === Promise` work for native promise-based APIs
@@ -6056,17 +6056,17 @@ if (FORCED$1) {
6056
6056
  }
6057
6057
  }
6058
6058
 
6059
- $$a({ global: true, wrap: true, forced: FORCED$1 }, {
6059
+ $$c({ global: true, wrap: true, forced: FORCED$1 }, {
6060
6060
  Promise: PromiseConstructor
6061
6061
  });
6062
6062
 
6063
- setToStringTag$4(PromiseConstructor, PROMISE, false);
6063
+ setToStringTag$5(PromiseConstructor, PROMISE, false);
6064
6064
  setSpecies(PROMISE);
6065
6065
 
6066
6066
  PromiseWrapper = getBuiltIn$2(PROMISE);
6067
6067
 
6068
6068
  // statics
6069
- $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6069
+ $$c({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6070
6070
  // `Promise.reject` method
6071
6071
  // https://tc39.es/ecma262/#sec-promise.reject
6072
6072
  reject: function reject(r) {
@@ -6076,7 +6076,7 @@ $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6076
6076
  }
6077
6077
  });
6078
6078
 
6079
- $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6079
+ $$c({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6080
6080
  // `Promise.resolve` method
6081
6081
  // https://tc39.es/ecma262/#sec-promise.resolve
6082
6082
  resolve: function resolve(x) {
@@ -6084,7 +6084,7 @@ $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
6084
6084
  }
6085
6085
  });
6086
6086
 
6087
- $$a({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
6087
+ $$c({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
6088
6088
  // `Promise.all` method
6089
6089
  // https://tc39.es/ecma262/#sec-promise.all
6090
6090
  all: function all(iterable) {
@@ -6097,7 +6097,7 @@ $$a({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
6097
6097
  var values = [];
6098
6098
  var counter = 0;
6099
6099
  var remaining = 1;
6100
- iterate(iterable, function (promise) {
6100
+ iterate$2(iterable, function (promise) {
6101
6101
  var index = counter++;
6102
6102
  var alreadyCalled = false;
6103
6103
  remaining++;
@@ -6121,7 +6121,7 @@ $$a({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
6121
6121
  var reject = capability.reject;
6122
6122
  var result = perform(function () {
6123
6123
  var $promiseResolve = aCallable$1(C.resolve);
6124
- iterate(iterable, function (promise) {
6124
+ iterate$2(iterable, function (promise) {
6125
6125
  call$4($promiseResolve, C, promise).then(capability.resolve, reject);
6126
6126
  });
6127
6127
  });
@@ -6240,9 +6240,9 @@ var getDeviceFingerprint = /*#__PURE__*/function () {
6240
6240
  }();
6241
6241
 
6242
6242
  var DESCRIPTORS$4 = descriptors$1;
6243
- var uncurryThis$8 = functionUncurryThis;
6243
+ var uncurryThis$a = functionUncurryThis;
6244
6244
  var call$3 = functionCall;
6245
- var fails$6 = fails$v;
6245
+ var fails$8 = fails$x;
6246
6246
  var objectKeys$1 = objectKeys$3;
6247
6247
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
6248
6248
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -6253,11 +6253,11 @@ var IndexedObject$1 = indexedObject;
6253
6253
  var $assign = Object.assign;
6254
6254
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
6255
6255
  var defineProperty$2 = Object.defineProperty;
6256
- var concat = uncurryThis$8([].concat);
6256
+ var concat = uncurryThis$a([].concat);
6257
6257
 
6258
6258
  // `Object.assign` method
6259
6259
  // https://tc39.es/ecma262/#sec-object.assign
6260
- var objectAssign = !$assign || fails$6(function () {
6260
+ var objectAssign = !$assign || fails$8(function () {
6261
6261
  // should have correct order of operations (Edge bug)
6262
6262
  if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
6263
6263
  enumerable: true,
@@ -6296,16 +6296,34 @@ var objectAssign = !$assign || fails$6(function () {
6296
6296
  } return T;
6297
6297
  } : $assign;
6298
6298
 
6299
- var $$9 = _export;
6299
+ var $$b = _export;
6300
6300
  var assign$2 = objectAssign;
6301
6301
 
6302
6302
  // `Object.assign` method
6303
6303
  // https://tc39.es/ecma262/#sec-object.assign
6304
6304
  // eslint-disable-next-line es/no-object-assign -- required for testing
6305
- $$9({ target: 'Object', stat: true, forced: Object.assign !== assign$2 }, {
6305
+ $$b({ target: 'Object', stat: true, forced: Object.assign !== assign$2 }, {
6306
6306
  assign: assign$2
6307
6307
  });
6308
6308
 
6309
+ var $$a = _export;
6310
+ var FREEZING = freezing;
6311
+ var fails$7 = fails$x;
6312
+ var isObject$4 = isObject$k;
6313
+ var onFreeze = internalMetadata.exports.onFreeze;
6314
+
6315
+ // eslint-disable-next-line es/no-object-freeze -- safe
6316
+ var $freeze = Object.freeze;
6317
+ var FAILS_ON_PRIMITIVES = fails$7(function () { $freeze(1); });
6318
+
6319
+ // `Object.freeze` method
6320
+ // https://tc39.es/ecma262/#sec-object.freeze
6321
+ $$a({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
6322
+ freeze: function freeze(it) {
6323
+ return $freeze && isObject$4(it) ? $freeze(onFreeze(it)) : it;
6324
+ }
6325
+ });
6326
+
6309
6327
  var config = {
6310
6328
  cookieTestUrl: 'https://legacy-staging.paystack.co/test-iframe/start.html',
6311
6329
  publishableKey: 'uFmz/uE/SDT6GupOrSEXIZXGByjQ0zFkPyc9LqKHFqnTI0WPN3JS5kQPo/j9or0TOXlqMQj2lzHn/UGsQT4XeQ==',
@@ -6363,13 +6381,13 @@ var addToUnscopables$3 = function (key) {
6363
6381
  ArrayPrototype[UNSCOPABLES][key] = true;
6364
6382
  };
6365
6383
 
6366
- var $$8 = _export;
6384
+ var $$9 = _export;
6367
6385
  var $includes = arrayIncludes.includes;
6368
6386
  var addToUnscopables$2 = addToUnscopables$3;
6369
6387
 
6370
6388
  // `Array.prototype.includes` method
6371
6389
  // https://tc39.es/ecma262/#sec-array.prototype.includes
6372
- $$8({ target: 'Array', proto: true }, {
6390
+ $$9({ target: 'Array', proto: true }, {
6373
6391
  includes: function includes(el /* , fromIndex = 0 */) {
6374
6392
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
6375
6393
  }
@@ -6479,7 +6497,7 @@ var ChargeResponses = {
6479
6497
  return error;
6480
6498
  },
6481
6499
  parse: function parse(apiResponse) {
6482
- var response = _typeof$1(apiResponse) === 'object' ? apiResponse : {};
6500
+ var response = apiResponse && _typeof$1(apiResponse) === 'object' ? apiResponse : {};
6483
6501
  if (response.data && _typeof$1(response.data) === 'object') {
6484
6502
  Object.assign(response, response.data);
6485
6503
  delete response.data;
@@ -6511,77 +6529,146 @@ var ChargeResponses = {
6511
6529
  if (response.auth && response.auth !== 'none') {
6512
6530
  return this.auth(response);
6513
6531
  }
6532
+ // Below the auth check and gated on `url`: an open_url hand-off is only actionable with an
6533
+ // address, and anything still carrying `auth` is an authentication response first.
6534
+ if (response.status === 'open_url' && response.url) {
6535
+ return this.getCleanResponse(response, 'Continue at the payment provider');
6536
+ }
6514
6537
  return this.error(response);
6515
6538
  }
6516
6539
  };
6517
6540
 
6518
- /* eslint-env browser */
6519
-
6520
- // `context` is passed through to set the class property of `isListening` to true/false
6521
- // and provide the logAPIResponse analytics function
6522
- // eslint-disable-next-line consistent-return, import/prefer-default-export
6523
- var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
6524
- var channel = options.channel,
6525
- paymentMethod = options.paymentMethod;
6526
- var pusher;
6527
- if (window && window.Pusher) {
6528
- pusher = new window.Pusher(configToUse.pusherKey, {
6529
- cluster: 'eu',
6530
- disableStats: true
6531
- });
6532
- }
6533
- var pusherUndefinedError = {
6541
+ // Module-scope singletons rather than per-call objects, and frozen so a consumer
6542
+ // that mutates what it was handed cannot corrupt the next call -- throwing under
6543
+ // the strict mode an ES module gets, silently ignored otherwise. Nothing in this
6544
+ // repo or in checkout-ui-vue3 mutates them today.
6545
+ var LISTEN_ERRORS = {
6546
+ unavailable: Object.freeze({
6534
6547
  status: 'error',
6535
6548
  message: 'We could not listen for charge response.'
6536
- };
6537
- var pusherSubscriptionError = {
6549
+ }),
6550
+ subscriptionFailed: Object.freeze({
6538
6551
  status: 'error',
6539
6552
  message: 'We could not listen for charge response. Use transaction.requery() to check the status.'
6553
+ })
6554
+ };
6555
+
6556
+ // Returns null rather than throwing when Pusher is not on the page, so each
6557
+ // listener can choose what to hand its caller back. The `!window` half only
6558
+ // guards against window being declared and assigned undefined; with window
6559
+ // genuinely absent this throws, which is what both paths already did.
6560
+ var createPusherClient = function createPusherClient() {
6561
+ if (!window || !window.Pusher) {
6562
+ return null;
6563
+ }
6564
+ return new window.Pusher(configToUse.pusherKey, {
6565
+ cluster: 'eu',
6566
+ disableStats: true
6567
+ });
6568
+ };
6569
+
6570
+ // Analytics are logged before the consumer callback runs, so a throwing
6571
+ // callback cannot lose the event.
6572
+ var buildResponseHandler = function buildResponseHandler(_ref) {
6573
+ var context = _ref.context,
6574
+ paymentMethod = _ref.paymentMethod,
6575
+ callback = _ref.callback,
6576
+ teardown = _ref.teardown;
6577
+ return function (response) {
6578
+ var formattedResponse = ChargeResponses.parse(response);
6579
+ context.logAPIResponse(formattedResponse, paymentMethod);
6580
+ callback(formattedResponse, teardown);
6540
6581
  };
6582
+ };
6583
+
6584
+ // The shared listening path for every channel and market. `context` carries the
6585
+ // logAPIResponse analytics function and the isListening flag this path owns.
6586
+ // eslint-disable-next-line consistent-return
6587
+ var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
6588
+ var channel = options.channel,
6589
+ paymentMethod = options.paymentMethod;
6590
+ var pusher = createPusherClient();
6591
+ if (!pusher) {
6592
+ return callback(LISTEN_ERRORS.unavailable, noOp);
6593
+ }
6541
6594
  var unsubscribeFromPusher = function unsubscribeFromPusher() {
6542
6595
  pusher.unsubscribe(channel);
6543
6596
  };
6544
- if (!pusher) {
6545
- return callback(pusherUndefinedError, noOp);
6546
- }
6547
6597
  var pusherSubscription = pusher.subscribe(channel);
6548
6598
  pusherSubscription.bind('pusher:subscription_succeeded', function () {
6549
6599
  context.isListening = true;
6550
6600
  });
6551
6601
  pusherSubscription.bind('pusher:subscription_error', function () {
6552
6602
  context.isListening = false;
6553
- callback(pusherSubscriptionError, noOp);
6603
+ callback(LISTEN_ERRORS.subscriptionFailed, noOp);
6554
6604
  });
6555
- pusherSubscription.bind('response', function (response) {
6556
- var formattedResponse = ChargeResponses.parse(response);
6557
- context.logAPIResponse(formattedResponse, paymentMethod);
6558
- callback(formattedResponse, unsubscribeFromPusher);
6605
+ pusherSubscription.bind('response', buildResponseHandler({
6606
+ context: context,
6607
+ paymentMethod: paymentMethod,
6608
+ callback: callback,
6609
+ teardown: unsubscribeFromPusher
6610
+ }));
6611
+ };
6612
+
6613
+ // Dedicated listener for the Ghana mobile money USSD confirmation channel.
6614
+ // Separate from the shared path because this flow needs an unsubscribe before
6615
+ // any event arrives, and because it must not write context.isListening: it runs
6616
+ // alongside the main charge subscription and the two would fight over one flag
6617
+ // on the same transaction.
6618
+ var subscribeToConfirmationEvents = function subscribeToConfirmationEvents(options, context, callback) {
6619
+ var channel = options.channel,
6620
+ paymentMethod = options.paymentMethod;
6621
+ var pusher = createPusherClient();
6622
+ if (!pusher) {
6623
+ callback(LISTEN_ERRORS.unavailable, noOp);
6624
+ return noOp;
6625
+ }
6626
+ var hasUnsubscribed = false;
6627
+ var unsubscribe = function unsubscribe() {
6628
+ if (hasUnsubscribed) {
6629
+ return;
6630
+ }
6631
+ hasUnsubscribed = true;
6632
+ pusher.unsubscribe(channel);
6633
+ pusher.disconnect();
6634
+ };
6635
+ var pusherSubscription = pusher.subscribe(channel);
6636
+ pusherSubscription.bind('pusher:subscription_error', function () {
6637
+ unsubscribe();
6638
+ callback(LISTEN_ERRORS.subscriptionFailed, unsubscribe);
6559
6639
  });
6640
+ pusherSubscription.bind('response', buildResponseHandler({
6641
+ context: context,
6642
+ paymentMethod: paymentMethod,
6643
+ callback: callback,
6644
+ teardown: unsubscribe
6645
+ }));
6646
+ return unsubscribe;
6560
6647
  };
6561
6648
 
6562
- var uncurryThis$7 = functionUncurryThis;
6649
+ var uncurryThis$9 = functionUncurryThis;
6563
6650
  var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
6564
- var redefine$4 = redefine$a.exports;
6565
- var anObject$2 = anObject$e;
6651
+ var redefine$5 = redefine$b.exports;
6652
+ var anObject$3 = anObject$f;
6566
6653
  var isPrototypeOf = objectIsPrototypeOf;
6567
6654
  var $toString$2 = toString$9;
6568
- var fails$5 = fails$v;
6655
+ var fails$6 = fails$x;
6569
6656
  var regExpFlags = regexpFlags$1;
6570
6657
 
6571
6658
  var TO_STRING = 'toString';
6572
6659
  var RegExpPrototype = RegExp.prototype;
6573
6660
  var n$ToString = RegExpPrototype[TO_STRING];
6574
- var getFlags = uncurryThis$7(regExpFlags);
6661
+ var getFlags = uncurryThis$9(regExpFlags);
6575
6662
 
6576
- var NOT_GENERIC = fails$5(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
6663
+ var NOT_GENERIC = fails$6(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
6577
6664
  // FF44- RegExp#toString has a wrong name
6578
6665
  var INCORRECT_NAME = PROPER_FUNCTION_NAME$2 && n$ToString.name != TO_STRING;
6579
6666
 
6580
6667
  // `RegExp.prototype.toString` method
6581
6668
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
6582
6669
  if (NOT_GENERIC || INCORRECT_NAME) {
6583
- redefine$4(RegExp.prototype, TO_STRING, function toString() {
6584
- var R = anObject$2(this);
6670
+ redefine$5(RegExp.prototype, TO_STRING, function toString() {
6671
+ var R = anObject$3(this);
6585
6672
  var p = $toString$2(R.source);
6586
6673
  var rf = R.flags;
6587
6674
  var f = $toString$2(rf === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
@@ -6589,41 +6676,41 @@ if (NOT_GENERIC || INCORRECT_NAME) {
6589
6676
  }, { unsafe: true });
6590
6677
  }
6591
6678
 
6592
- var fails$4 = fails$v;
6679
+ var fails$5 = fails$x;
6593
6680
 
6594
- var correctPrototypeGetter = !fails$4(function () {
6681
+ var correctPrototypeGetter = !fails$5(function () {
6595
6682
  function F() { /* empty */ }
6596
6683
  F.prototype.constructor = null;
6597
6684
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
6598
6685
  return Object.getPrototypeOf(new F()) !== F.prototype;
6599
6686
  });
6600
6687
 
6601
- var global$8 = global$T;
6602
- var hasOwn$2 = hasOwnProperty_1;
6603
- var isCallable$3 = isCallable$k;
6688
+ var global$9 = global$U;
6689
+ var hasOwn$3 = hasOwnProperty_1;
6690
+ var isCallable$4 = isCallable$l;
6604
6691
  var toObject$2 = toObject$9;
6605
6692
  var sharedKey = sharedKey$3;
6606
6693
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
6607
6694
 
6608
6695
  var IE_PROTO = sharedKey('IE_PROTO');
6609
- var Object$1 = global$8.Object;
6696
+ var Object$1 = global$9.Object;
6610
6697
  var ObjectPrototype = Object$1.prototype;
6611
6698
 
6612
6699
  // `Object.getPrototypeOf` method
6613
6700
  // https://tc39.es/ecma262/#sec-object.getprototypeof
6614
6701
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
6615
6702
  var object = toObject$2(O);
6616
- if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
6703
+ if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
6617
6704
  var constructor = object.constructor;
6618
- if (isCallable$3(constructor) && object instanceof constructor) {
6705
+ if (isCallable$4(constructor) && object instanceof constructor) {
6619
6706
  return constructor.prototype;
6620
6707
  } return object instanceof Object$1 ? ObjectPrototype : null;
6621
6708
  };
6622
6709
 
6623
- var fails$3 = fails$v;
6624
- var isCallable$2 = isCallable$k;
6710
+ var fails$4 = fails$x;
6711
+ var isCallable$3 = isCallable$l;
6625
6712
  var getPrototypeOf$1 = objectGetPrototypeOf;
6626
- var redefine$3 = redefine$a.exports;
6713
+ var redefine$4 = redefine$b.exports;
6627
6714
  var wellKnownSymbol$4 = wellKnownSymbol$j;
6628
6715
 
6629
6716
  var ITERATOR$4 = wellKnownSymbol$4('iterator');
@@ -6644,7 +6731,7 @@ if ([].keys) {
6644
6731
  }
6645
6732
  }
6646
6733
 
6647
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$3(function () {
6734
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$4(function () {
6648
6735
  var test = {};
6649
6736
  // FF44- legacy iterators case
6650
6737
  return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
@@ -6654,8 +6741,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
6654
6741
 
6655
6742
  // `%IteratorPrototype%[@@iterator]()` method
6656
6743
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
6657
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$4])) {
6658
- redefine$3(IteratorPrototype$2, ITERATOR$4, function () {
6744
+ if (!isCallable$3(IteratorPrototype$2[ITERATOR$4])) {
6745
+ redefine$4(IteratorPrototype$2, ITERATOR$4, function () {
6659
6746
  return this;
6660
6747
  });
6661
6748
  }
@@ -6668,7 +6755,7 @@ var iteratorsCore = {
6668
6755
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
6669
6756
  var create$1 = objectCreate;
6670
6757
  var createPropertyDescriptor$1 = createPropertyDescriptor$6;
6671
- var setToStringTag$3 = setToStringTag$5;
6758
+ var setToStringTag$4 = setToStringTag$6;
6672
6759
  var Iterators$2 = iterators;
6673
6760
 
6674
6761
  var returnThis$1 = function () { return this; };
@@ -6676,21 +6763,21 @@ var returnThis$1 = function () { return this; };
6676
6763
  var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
6677
6764
  var TO_STRING_TAG = NAME + ' Iterator';
6678
6765
  IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
6679
- setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
6766
+ setToStringTag$4(IteratorConstructor, TO_STRING_TAG, false);
6680
6767
  Iterators$2[TO_STRING_TAG] = returnThis$1;
6681
6768
  return IteratorConstructor;
6682
6769
  };
6683
6770
 
6684
- var $$7 = _export;
6771
+ var $$8 = _export;
6685
6772
  var call$2 = functionCall;
6686
6773
  var FunctionName = functionName;
6687
- var isCallable$1 = isCallable$k;
6774
+ var isCallable$2 = isCallable$l;
6688
6775
  var createIteratorConstructor$1 = createIteratorConstructor$2;
6689
6776
  var getPrototypeOf = objectGetPrototypeOf;
6690
6777
  var setPrototypeOf = objectSetPrototypeOf;
6691
- var setToStringTag$2 = setToStringTag$5;
6778
+ var setToStringTag$3 = setToStringTag$6;
6692
6779
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
6693
- var redefine$2 = redefine$a.exports;
6780
+ var redefine$3 = redefine$b.exports;
6694
6781
  var wellKnownSymbol$3 = wellKnownSymbol$j;
6695
6782
  var Iterators$1 = iterators;
6696
6783
  var IteratorsCore = iteratorsCore;
@@ -6736,12 +6823,12 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
6736
6823
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
6737
6824
  if (setPrototypeOf) {
6738
6825
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
6739
- } else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$3])) {
6740
- redefine$2(CurrentIteratorPrototype, ITERATOR$3, returnThis);
6826
+ } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$3])) {
6827
+ redefine$3(CurrentIteratorPrototype, ITERATOR$3, returnThis);
6741
6828
  }
6742
6829
  }
6743
6830
  // Set @@toStringTag to native iterators
6744
- setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
6831
+ setToStringTag$3(CurrentIteratorPrototype, TO_STRING_TAG, true);
6745
6832
  }
6746
6833
  }
6747
6834
 
@@ -6764,14 +6851,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
6764
6851
  };
6765
6852
  if (FORCED) for (KEY in methods) {
6766
6853
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
6767
- redefine$2(IterablePrototype, KEY, methods[KEY]);
6854
+ redefine$3(IterablePrototype, KEY, methods[KEY]);
6768
6855
  }
6769
- } else $$7({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
6856
+ } else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
6770
6857
  }
6771
6858
 
6772
6859
  // define iterator
6773
6860
  if (IterablePrototype[ITERATOR$3] !== defaultIterator) {
6774
- redefine$2(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
6861
+ redefine$3(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
6775
6862
  }
6776
6863
  Iterators$1[NAME] = defaultIterator;
6777
6864
 
@@ -6781,14 +6868,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
6781
6868
  var toIndexedObject$1 = toIndexedObject$8;
6782
6869
  var addToUnscopables$1 = addToUnscopables$3;
6783
6870
  var Iterators = iterators;
6784
- var InternalStateModule$3 = internalState;
6871
+ var InternalStateModule$4 = internalState;
6785
6872
  var defineProperty$1 = objectDefineProperty.f;
6786
6873
  var defineIterator$1 = defineIterator$2;
6787
6874
  var DESCRIPTORS$3 = descriptors$1;
6788
6875
 
6789
6876
  var ARRAY_ITERATOR = 'Array Iterator';
6790
- var setInternalState$3 = InternalStateModule$3.set;
6791
- var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
6877
+ var setInternalState$4 = InternalStateModule$4.set;
6878
+ var getInternalState$1 = InternalStateModule$4.getterFor(ARRAY_ITERATOR);
6792
6879
 
6793
6880
  // `Array.prototype.entries` method
6794
6881
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -6801,7 +6888,7 @@ var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
6801
6888
  // `CreateArrayIterator` internal method
6802
6889
  // https://tc39.es/ecma262/#sec-createarrayiterator
6803
6890
  var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
6804
- setInternalState$3(this, {
6891
+ setInternalState$4(this, {
6805
6892
  type: ARRAY_ITERATOR,
6806
6893
  target: toIndexedObject$1(iterated), // target
6807
6894
  index: 0, // next index
@@ -6838,14 +6925,14 @@ if (DESCRIPTORS$3 && values.name !== 'values') try {
6838
6925
  defineProperty$1(values, 'name', { value: 'values' });
6839
6926
  } catch (error) { /* empty */ }
6840
6927
 
6841
- var uncurryThis$6 = functionUncurryThis;
6928
+ var uncurryThis$8 = functionUncurryThis;
6842
6929
  var toIntegerOrInfinity = toIntegerOrInfinity$3;
6843
6930
  var toString$2 = toString$9;
6844
6931
  var requireObjectCoercible = requireObjectCoercible$4;
6845
6932
 
6846
- var charAt$4 = uncurryThis$6(''.charAt);
6847
- var charCodeAt$2 = uncurryThis$6(''.charCodeAt);
6848
- var stringSlice$2 = uncurryThis$6(''.slice);
6933
+ var charAt$4 = uncurryThis$8(''.charAt);
6934
+ var charCodeAt$2 = uncurryThis$8(''.charCodeAt);
6935
+ var stringSlice$2 = uncurryThis$8(''.slice);
6849
6936
 
6850
6937
  var createMethod$2 = function (CONVERT_TO_STRING) {
6851
6938
  return function ($this, pos) {
@@ -6877,17 +6964,17 @@ var stringMultibyte = {
6877
6964
 
6878
6965
  var charAt$3 = stringMultibyte.charAt;
6879
6966
  var toString$1 = toString$9;
6880
- var InternalStateModule$2 = internalState;
6967
+ var InternalStateModule$3 = internalState;
6881
6968
  var defineIterator = defineIterator$2;
6882
6969
 
6883
6970
  var STRING_ITERATOR = 'String Iterator';
6884
- var setInternalState$2 = InternalStateModule$2.set;
6885
- var getInternalState = InternalStateModule$2.getterFor(STRING_ITERATOR);
6971
+ var setInternalState$3 = InternalStateModule$3.set;
6972
+ var getInternalState = InternalStateModule$3.getterFor(STRING_ITERATOR);
6886
6973
 
6887
6974
  // `String.prototype[@@iterator]` method
6888
6975
  // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
6889
6976
  defineIterator(String, 'String', function (iterated) {
6890
- setInternalState$2(this, {
6977
+ setInternalState$3(this, {
6891
6978
  type: STRING_ITERATOR,
6892
6979
  string: toString$1(iterated),
6893
6980
  index: 0
@@ -6905,7 +6992,7 @@ defineIterator(String, 'String', function (iterated) {
6905
6992
  return { value: point, done: false };
6906
6993
  });
6907
6994
 
6908
- var global$7 = global$T;
6995
+ var global$8 = global$U;
6909
6996
  var DOMIterables = domIterables;
6910
6997
  var DOMTokenListPrototype = domTokenListPrototype;
6911
6998
  var ArrayIteratorMethods = es_array_iterator;
@@ -6939,18 +7026,18 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
6939
7026
  };
6940
7027
 
6941
7028
  for (var COLLECTION_NAME in DOMIterables) {
6942
- handlePrototype(global$7[COLLECTION_NAME] && global$7[COLLECTION_NAME].prototype, COLLECTION_NAME);
7029
+ handlePrototype(global$8[COLLECTION_NAME] && global$8[COLLECTION_NAME].prototype, COLLECTION_NAME);
6943
7030
  }
6944
7031
 
6945
7032
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
6946
7033
 
6947
- var fails$2 = fails$v;
7034
+ var fails$3 = fails$x;
6948
7035
  var wellKnownSymbol$1 = wellKnownSymbol$j;
6949
7036
  var IS_PURE = isPure;
6950
7037
 
6951
7038
  var ITERATOR$1 = wellKnownSymbol$1('iterator');
6952
7039
 
6953
- var nativeUrl = !fails$2(function () {
7040
+ var nativeUrl = !fails$3(function () {
6954
7041
  // eslint-disable-next-line unicorn/relative-url-style -- required for testing
6955
7042
  var url = new URL('b?a=1&b=2&c=3', 'http://a');
6956
7043
  var searchParams = url.searchParams;
@@ -6979,19 +7066,19 @@ var nativeUrl = !fails$2(function () {
6979
7066
  || new URL('http://x', undefined).host !== 'x';
6980
7067
  });
6981
7068
 
6982
- var anObject$1 = anObject$e;
7069
+ var anObject$2 = anObject$f;
6983
7070
  var iteratorClose = iteratorClose$2;
6984
7071
 
6985
7072
  // call something on iterator step with safe closing on error
6986
7073
  var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
6987
7074
  try {
6988
- return ENTRIES ? fn(anObject$1(value)[0], value[1]) : fn(value);
7075
+ return ENTRIES ? fn(anObject$2(value)[0], value[1]) : fn(value);
6989
7076
  } catch (error) {
6990
7077
  iteratorClose(iterator, 'throw', error);
6991
7078
  }
6992
7079
  };
6993
7080
 
6994
- var global$6 = global$T;
7081
+ var global$7 = global$U;
6995
7082
  var bind$5 = functionBindContext;
6996
7083
  var call$1 = functionCall;
6997
7084
  var toObject$1 = toObject$9;
@@ -7003,7 +7090,7 @@ var createProperty = createProperty$3;
7003
7090
  var getIterator$1 = getIterator$3;
7004
7091
  var getIteratorMethod$1 = getIteratorMethod$4;
7005
7092
 
7006
- var Array$2 = global$6.Array;
7093
+ var Array$2 = global$7.Array;
7007
7094
 
7008
7095
  // `Array.from` method implementation
7009
7096
  // https://tc39.es/ecma262/#sec-array.from
@@ -7039,8 +7126,8 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
7039
7126
  };
7040
7127
 
7041
7128
  // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
7042
- var global$5 = global$T;
7043
- var uncurryThis$5 = functionUncurryThis;
7129
+ var global$6 = global$U;
7130
+ var uncurryThis$7 = functionUncurryThis;
7044
7131
 
7045
7132
  var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
7046
7133
  var base = 36;
@@ -7056,16 +7143,16 @@ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
7056
7143
  var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
7057
7144
  var baseMinusTMin = base - tMin;
7058
7145
 
7059
- var RangeError = global$5.RangeError;
7060
- var exec$2 = uncurryThis$5(regexSeparators.exec);
7146
+ var RangeError = global$6.RangeError;
7147
+ var exec$2 = uncurryThis$7(regexSeparators.exec);
7061
7148
  var floor$1 = Math.floor;
7062
7149
  var fromCharCode = String.fromCharCode;
7063
- var charCodeAt$1 = uncurryThis$5(''.charCodeAt);
7064
- var join$2 = uncurryThis$5([].join);
7065
- var push$4 = uncurryThis$5([].push);
7066
- var replace$4 = uncurryThis$5(''.replace);
7067
- var split$3 = uncurryThis$5(''.split);
7068
- var toLowerCase$1 = uncurryThis$5(''.toLowerCase);
7150
+ var charCodeAt$1 = uncurryThis$7(''.charCodeAt);
7151
+ var join$2 = uncurryThis$7([].join);
7152
+ var push$4 = uncurryThis$7([].push);
7153
+ var replace$4 = uncurryThis$7(''.replace);
7154
+ var split$3 = uncurryThis$7(''.split);
7155
+ var toLowerCase$1 = uncurryThis$7(''.toLowerCase);
7069
7156
 
7070
7157
  /**
7071
7158
  * Creates an array containing the numeric code points of each Unicode
@@ -7222,24 +7309,24 @@ var stringPunycodeToAscii = function (input) {
7222
7309
 
7223
7310
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
7224
7311
 
7225
- var $$6 = _export;
7226
- var global$4 = global$T;
7312
+ var $$7 = _export;
7313
+ var global$5 = global$U;
7227
7314
  var getBuiltIn$1 = getBuiltIn$a;
7228
7315
  var call = functionCall;
7229
- var uncurryThis$4 = functionUncurryThis;
7316
+ var uncurryThis$6 = functionUncurryThis;
7230
7317
  var USE_NATIVE_URL$1 = nativeUrl;
7231
- var redefine$1 = redefine$a.exports;
7232
- var redefineAll = redefineAll$2;
7233
- var setToStringTag$1 = setToStringTag$5;
7318
+ var redefine$2 = redefine$b.exports;
7319
+ var redefineAll$1 = redefineAll$3;
7320
+ var setToStringTag$2 = setToStringTag$6;
7234
7321
  var createIteratorConstructor = createIteratorConstructor$2;
7235
- var InternalStateModule$1 = internalState;
7236
- var anInstance$1 = anInstance$3;
7237
- var isCallable = isCallable$k;
7238
- var hasOwn$1 = hasOwnProperty_1;
7322
+ var InternalStateModule$2 = internalState;
7323
+ var anInstance$3 = anInstance$5;
7324
+ var isCallable$1 = isCallable$l;
7325
+ var hasOwn$2 = hasOwnProperty_1;
7239
7326
  var bind$4 = functionBindContext;
7240
7327
  var classof = classof$7;
7241
- var anObject = anObject$e;
7242
- var isObject$1 = isObject$h;
7328
+ var anObject$1 = anObject$f;
7329
+ var isObject$3 = isObject$k;
7243
7330
  var $toString$1 = toString$9;
7244
7331
  var create = objectCreate;
7245
7332
  var createPropertyDescriptor = createPropertyDescriptor$6;
@@ -7252,27 +7339,27 @@ var arraySort = arraySort$1;
7252
7339
  var ITERATOR = wellKnownSymbol('iterator');
7253
7340
  var URL_SEARCH_PARAMS = 'URLSearchParams';
7254
7341
  var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
7255
- var setInternalState$1 = InternalStateModule$1.set;
7256
- var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
7257
- var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
7342
+ var setInternalState$2 = InternalStateModule$2.set;
7343
+ var getInternalParamsState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS);
7344
+ var getInternalIteratorState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS_ITERATOR);
7258
7345
 
7259
7346
  var n$Fetch = getBuiltIn$1('fetch');
7260
7347
  var N$Request = getBuiltIn$1('Request');
7261
7348
  var Headers = getBuiltIn$1('Headers');
7262
7349
  var RequestPrototype = N$Request && N$Request.prototype;
7263
7350
  var HeadersPrototype = Headers && Headers.prototype;
7264
- var RegExp$1 = global$4.RegExp;
7265
- var TypeError$3 = global$4.TypeError;
7266
- var decodeURIComponent$1 = global$4.decodeURIComponent;
7267
- var encodeURIComponent$1 = global$4.encodeURIComponent;
7268
- var charAt$2 = uncurryThis$4(''.charAt);
7269
- var join$1 = uncurryThis$4([].join);
7270
- var push$3 = uncurryThis$4([].push);
7271
- var replace$3 = uncurryThis$4(''.replace);
7272
- var shift$1 = uncurryThis$4([].shift);
7273
- var splice = uncurryThis$4([].splice);
7274
- var split$2 = uncurryThis$4(''.split);
7275
- var stringSlice$1 = uncurryThis$4(''.slice);
7351
+ var RegExp$1 = global$5.RegExp;
7352
+ var TypeError$3 = global$5.TypeError;
7353
+ var decodeURIComponent$1 = global$5.decodeURIComponent;
7354
+ var encodeURIComponent$1 = global$5.encodeURIComponent;
7355
+ var charAt$2 = uncurryThis$6(''.charAt);
7356
+ var join$1 = uncurryThis$6([].join);
7357
+ var push$3 = uncurryThis$6([].push);
7358
+ var replace$3 = uncurryThis$6(''.replace);
7359
+ var shift$1 = uncurryThis$6([].shift);
7360
+ var splice$1 = uncurryThis$6([].splice);
7361
+ var split$2 = uncurryThis$6(''.split);
7362
+ var stringSlice$1 = uncurryThis$6(''.slice);
7276
7363
 
7277
7364
  var plus = /\+/g;
7278
7365
  var sequences = Array(4);
@@ -7302,7 +7389,7 @@ var deserialize = function (it) {
7302
7389
  }
7303
7390
  };
7304
7391
 
7305
- var find = /[!'()~]|%20/g;
7392
+ var find$1 = /[!'()~]|%20/g;
7306
7393
 
7307
7394
  var replacements = {
7308
7395
  '!': '%21',
@@ -7318,11 +7405,11 @@ var replacer = function (match) {
7318
7405
  };
7319
7406
 
7320
7407
  var serialize = function (it) {
7321
- return replace$3(encodeURIComponent$1(it), find, replacer);
7408
+ return replace$3(encodeURIComponent$1(it), find$1, replacer);
7322
7409
  };
7323
7410
 
7324
7411
  var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
7325
- setInternalState$1(this, {
7412
+ setInternalState$2(this, {
7326
7413
  type: URL_SEARCH_PARAMS_ITERATOR,
7327
7414
  iterator: getIterator(getInternalParamsState(params).entries),
7328
7415
  kind: kind
@@ -7342,7 +7429,7 @@ var URLSearchParamsState = function (init) {
7342
7429
  this.url = null;
7343
7430
 
7344
7431
  if (init !== undefined) {
7345
- if (isObject$1(init)) this.parseObject(init);
7432
+ if (isObject$3(init)) this.parseObject(init);
7346
7433
  else this.parseQuery(typeof init == 'string' ? charAt$2(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init));
7347
7434
  }
7348
7435
  };
@@ -7361,7 +7448,7 @@ URLSearchParamsState.prototype = {
7361
7448
  iterator = getIterator(object, iteratorMethod);
7362
7449
  next = iterator.next;
7363
7450
  while (!(step = call(next, iterator)).done) {
7364
- entryIterator = getIterator(anObject(step.value));
7451
+ entryIterator = getIterator(anObject$1(step.value));
7365
7452
  entryNext = entryIterator.next;
7366
7453
  if (
7367
7454
  (first = call(entryNext, entryIterator)).done ||
@@ -7370,7 +7457,7 @@ URLSearchParamsState.prototype = {
7370
7457
  ) throw TypeError$3('Expected sequence with length 2');
7371
7458
  push$3(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
7372
7459
  }
7373
- } else for (var key in object) if (hasOwn$1(object, key)) {
7460
+ } else for (var key in object) if (hasOwn$2(object, key)) {
7374
7461
  push$3(this.entries, { key: key, value: $toString$1(object[key]) });
7375
7462
  }
7376
7463
  },
@@ -7413,14 +7500,14 @@ URLSearchParamsState.prototype = {
7413
7500
  // `URLSearchParams` constructor
7414
7501
  // https://url.spec.whatwg.org/#interface-urlsearchparams
7415
7502
  var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
7416
- anInstance$1(this, URLSearchParamsPrototype);
7503
+ anInstance$3(this, URLSearchParamsPrototype);
7417
7504
  var init = arguments.length > 0 ? arguments[0] : undefined;
7418
- setInternalState$1(this, new URLSearchParamsState(init));
7505
+ setInternalState$2(this, new URLSearchParamsState(init));
7419
7506
  };
7420
7507
 
7421
7508
  var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
7422
7509
 
7423
- redefineAll(URLSearchParamsPrototype, {
7510
+ redefineAll$1(URLSearchParamsPrototype, {
7424
7511
  // `URLSearchParams.prototype.append` method
7425
7512
  // https://url.spec.whatwg.org/#dom-urlsearchparams-append
7426
7513
  append: function append(name, value) {
@@ -7438,7 +7525,7 @@ redefineAll(URLSearchParamsPrototype, {
7438
7525
  var key = $toString$1(name);
7439
7526
  var index = 0;
7440
7527
  while (index < entries.length) {
7441
- if (entries[index].key === key) splice(entries, index, 1);
7528
+ if (entries[index].key === key) splice$1(entries, index, 1);
7442
7529
  else index++;
7443
7530
  }
7444
7531
  state.updateURL();
@@ -7494,7 +7581,7 @@ redefineAll(URLSearchParamsPrototype, {
7494
7581
  for (; index < entries.length; index++) {
7495
7582
  entry = entries[index];
7496
7583
  if (entry.key === key) {
7497
- if (found) splice(entries, index--, 1);
7584
+ if (found) splice$1(entries, index--, 1);
7498
7585
  else {
7499
7586
  found = true;
7500
7587
  entry.value = val;
@@ -7539,27 +7626,27 @@ redefineAll(URLSearchParamsPrototype, {
7539
7626
  }, { enumerable: true });
7540
7627
 
7541
7628
  // `URLSearchParams.prototype[@@iterator]` method
7542
- redefine$1(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
7629
+ redefine$2(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
7543
7630
 
7544
7631
  // `URLSearchParams.prototype.toString` method
7545
7632
  // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
7546
- redefine$1(URLSearchParamsPrototype, 'toString', function toString() {
7633
+ redefine$2(URLSearchParamsPrototype, 'toString', function toString() {
7547
7634
  return getInternalParamsState(this).serialize();
7548
7635
  }, { enumerable: true });
7549
7636
 
7550
- setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
7637
+ setToStringTag$2(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
7551
7638
 
7552
- $$6({ global: true, forced: !USE_NATIVE_URL$1 }, {
7639
+ $$7({ global: true, forced: !USE_NATIVE_URL$1 }, {
7553
7640
  URLSearchParams: URLSearchParamsConstructor
7554
7641
  });
7555
7642
 
7556
7643
  // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
7557
- if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
7558
- var headersHas = uncurryThis$4(HeadersPrototype.has);
7559
- var headersSet = uncurryThis$4(HeadersPrototype.set);
7644
+ if (!USE_NATIVE_URL$1 && isCallable$1(Headers)) {
7645
+ var headersHas = uncurryThis$6(HeadersPrototype.has);
7646
+ var headersSet = uncurryThis$6(HeadersPrototype.set);
7560
7647
 
7561
7648
  var wrapRequestOptions = function (init) {
7562
- if (isObject$1(init)) {
7649
+ if (isObject$3(init)) {
7563
7650
  var body = init.body;
7564
7651
  var headers;
7565
7652
  if (classof(body) === URL_SEARCH_PARAMS) {
@@ -7575,24 +7662,24 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
7575
7662
  } return init;
7576
7663
  };
7577
7664
 
7578
- if (isCallable(n$Fetch)) {
7579
- $$6({ global: true, enumerable: true, forced: true }, {
7665
+ if (isCallable$1(n$Fetch)) {
7666
+ $$7({ global: true, enumerable: true, forced: true }, {
7580
7667
  fetch: function fetch(input /* , init */) {
7581
7668
  return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
7582
7669
  }
7583
7670
  });
7584
7671
  }
7585
7672
 
7586
- if (isCallable(N$Request)) {
7673
+ if (isCallable$1(N$Request)) {
7587
7674
  var RequestConstructor = function Request(input /* , init */) {
7588
- anInstance$1(this, RequestPrototype);
7675
+ anInstance$3(this, RequestPrototype);
7589
7676
  return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
7590
7677
  };
7591
7678
 
7592
7679
  RequestPrototype.constructor = RequestConstructor;
7593
7680
  RequestConstructor.prototype = RequestPrototype;
7594
7681
 
7595
- $$6({ global: true, forced: true }, {
7682
+ $$7({ global: true, forced: true }, {
7596
7683
  Request: RequestConstructor
7597
7684
  });
7598
7685
  }
@@ -7605,49 +7692,49 @@ var web_urlSearchParams = {
7605
7692
 
7606
7693
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
7607
7694
 
7608
- var $$5 = _export;
7695
+ var $$6 = _export;
7609
7696
  var DESCRIPTORS$2 = descriptors$1;
7610
7697
  var USE_NATIVE_URL = nativeUrl;
7611
- var global$3 = global$T;
7698
+ var global$4 = global$U;
7612
7699
  var bind$3 = functionBindContext;
7613
- var uncurryThis$3 = functionUncurryThis;
7700
+ var uncurryThis$5 = functionUncurryThis;
7614
7701
  var defineProperties = objectDefineProperties.f;
7615
- var redefine = redefine$a.exports;
7616
- var anInstance = anInstance$3;
7617
- var hasOwn = hasOwnProperty_1;
7702
+ var redefine$1 = redefine$b.exports;
7703
+ var anInstance$2 = anInstance$5;
7704
+ var hasOwn$1 = hasOwnProperty_1;
7618
7705
  var assign$1 = objectAssign;
7619
7706
  var arrayFrom = arrayFrom$1;
7620
7707
  var arraySlice = arraySliceSimple;
7621
7708
  var codeAt = stringMultibyte.codeAt;
7622
7709
  var toASCII = stringPunycodeToAscii;
7623
7710
  var $toString = toString$9;
7624
- var setToStringTag = setToStringTag$5;
7711
+ var setToStringTag$1 = setToStringTag$6;
7625
7712
  var validateArgumentsLength = validateArgumentsLength$3;
7626
7713
  var URLSearchParamsModule = web_urlSearchParams;
7627
- var InternalStateModule = internalState;
7714
+ var InternalStateModule$1 = internalState;
7628
7715
 
7629
- var setInternalState = InternalStateModule.set;
7630
- var getInternalURLState = InternalStateModule.getterFor('URL');
7716
+ var setInternalState$1 = InternalStateModule$1.set;
7717
+ var getInternalURLState = InternalStateModule$1.getterFor('URL');
7631
7718
  var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
7632
7719
  var getInternalSearchParamsState = URLSearchParamsModule.getState;
7633
7720
 
7634
- var NativeURL = global$3.URL;
7635
- var TypeError$2 = global$3.TypeError;
7636
- var parseInt$1 = global$3.parseInt;
7721
+ var NativeURL = global$4.URL;
7722
+ var TypeError$2 = global$4.TypeError;
7723
+ var parseInt$1 = global$4.parseInt;
7637
7724
  var floor = Math.floor;
7638
7725
  var pow = Math.pow;
7639
- var charAt$1 = uncurryThis$3(''.charAt);
7640
- var exec$1 = uncurryThis$3(/./.exec);
7641
- var join = uncurryThis$3([].join);
7642
- var numberToString$1 = uncurryThis$3(1.0.toString);
7643
- var pop = uncurryThis$3([].pop);
7644
- var push$2 = uncurryThis$3([].push);
7645
- var replace$2 = uncurryThis$3(''.replace);
7646
- var shift = uncurryThis$3([].shift);
7647
- var split$1 = uncurryThis$3(''.split);
7648
- var stringSlice = uncurryThis$3(''.slice);
7649
- var toLowerCase = uncurryThis$3(''.toLowerCase);
7650
- var unshift = uncurryThis$3([].unshift);
7726
+ var charAt$1 = uncurryThis$5(''.charAt);
7727
+ var exec$1 = uncurryThis$5(/./.exec);
7728
+ var join = uncurryThis$5([].join);
7729
+ var numberToString$1 = uncurryThis$5(1.0.toString);
7730
+ var pop = uncurryThis$5([].pop);
7731
+ var push$2 = uncurryThis$5([].push);
7732
+ var replace$2 = uncurryThis$5(''.replace);
7733
+ var shift = uncurryThis$5([].shift);
7734
+ var split$1 = uncurryThis$5(''.split);
7735
+ var stringSlice = uncurryThis$5(''.slice);
7736
+ var toLowerCase = uncurryThis$5(''.toLowerCase);
7737
+ var unshift = uncurryThis$5([].unshift);
7651
7738
 
7652
7739
  var INVALID_AUTHORITY = 'Invalid authority';
7653
7740
  var INVALID_SCHEME = 'Invalid scheme';
@@ -7855,7 +7942,7 @@ var userinfoPercentEncodeSet = assign$1({}, pathPercentEncodeSet, {
7855
7942
 
7856
7943
  var percentEncode = function (chr, set) {
7857
7944
  var code = codeAt(chr, 0);
7858
- return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
7945
+ return code > 0x20 && code < 0x7F && !hasOwn$1(set, chr) ? chr : encodeURIComponent(chr);
7859
7946
  };
7860
7947
 
7861
7948
  // https://url.spec.whatwg.org/#special-scheme
@@ -7986,7 +8073,7 @@ URLState.prototype = {
7986
8073
  buffer += toLowerCase(chr);
7987
8074
  } else if (chr == ':') {
7988
8075
  if (stateOverride && (
7989
- (url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
8076
+ (url.isSpecial() != hasOwn$1(specialSchemes, buffer)) ||
7990
8077
  (buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
7991
8078
  (url.scheme == 'file' && !url.host)
7992
8079
  )) return;
@@ -8374,7 +8461,7 @@ URLState.prototype = {
8374
8461
  },
8375
8462
  // https://url.spec.whatwg.org/#is-special
8376
8463
  isSpecial: function () {
8377
- return hasOwn(specialSchemes, this.scheme);
8464
+ return hasOwn$1(specialSchemes, this.scheme);
8378
8465
  },
8379
8466
  // https://url.spec.whatwg.org/#shorten-a-urls-path
8380
8467
  shortenPath: function () {
@@ -8543,9 +8630,9 @@ URLState.prototype = {
8543
8630
  // `URL` constructor
8544
8631
  // https://url.spec.whatwg.org/#url-class
8545
8632
  var URLConstructor = function URL(url /* , base */) {
8546
- var that = anInstance(this, URLPrototype);
8633
+ var that = anInstance$2(this, URLPrototype);
8547
8634
  var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
8548
- var state = setInternalState(that, new URLState(url, false, base));
8635
+ var state = setInternalState$1(that, new URLState(url, false, base));
8549
8636
  if (!DESCRIPTORS$2) {
8550
8637
  that.href = state.serialize();
8551
8638
  that.origin = state.getOrigin();
@@ -8620,13 +8707,13 @@ if (DESCRIPTORS$2) {
8620
8707
 
8621
8708
  // `URL.prototype.toJSON` method
8622
8709
  // https://url.spec.whatwg.org/#dom-url-tojson
8623
- redefine(URLPrototype, 'toJSON', function toJSON() {
8710
+ redefine$1(URLPrototype, 'toJSON', function toJSON() {
8624
8711
  return getInternalURLState(this).serialize();
8625
8712
  }, { enumerable: true });
8626
8713
 
8627
8714
  // `URL.prototype.toString` method
8628
8715
  // https://url.spec.whatwg.org/#URL-stringification-behavior
8629
- redefine(URLPrototype, 'toString', function toString() {
8716
+ redefine$1(URLPrototype, 'toString', function toString() {
8630
8717
  return getInternalURLState(this).serialize();
8631
8718
  }, { enumerable: true });
8632
8719
 
@@ -8635,15 +8722,15 @@ if (NativeURL) {
8635
8722
  var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
8636
8723
  // `URL.createObjectURL` method
8637
8724
  // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
8638
- if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
8725
+ if (nativeCreateObjectURL) redefine$1(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
8639
8726
  // `URL.revokeObjectURL` method
8640
8727
  // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
8641
- if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
8728
+ if (nativeRevokeObjectURL) redefine$1(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
8642
8729
  }
8643
8730
 
8644
- setToStringTag(URLConstructor, 'URL');
8731
+ setToStringTag$1(URLConstructor, 'URL');
8645
8732
 
8646
- $$5({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$2 }, {
8733
+ $$6({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$2 }, {
8647
8734
  URL: URLConstructor
8648
8735
  });
8649
8736
 
@@ -8760,7 +8847,7 @@ function isNumber(val) {
8760
8847
  * @param {Object} val The value to test
8761
8848
  * @returns {boolean} True if value is an Object, otherwise false
8762
8849
  */
8763
- function isObject(val) {
8850
+ function isObject$2(val) {
8764
8851
  return val !== null && typeof val === 'object';
8765
8852
  }
8766
8853
 
@@ -8842,7 +8929,7 @@ function isFunction(val) {
8842
8929
  * @returns {boolean} True if value is a Stream, otherwise false
8843
8930
  */
8844
8931
  function isStream(val) {
8845
- return isObject(val) && isFunction(val.pipe);
8932
+ return isObject$2(val) && isFunction(val.pipe);
8846
8933
  }
8847
8934
 
8848
8935
  /**
@@ -9146,7 +9233,7 @@ var utils$m = {
9146
9233
  isArrayBufferView: isArrayBufferView,
9147
9234
  isString: isString,
9148
9235
  isNumber: isNumber,
9149
- isObject: isObject,
9236
+ isObject: isObject$2,
9150
9237
  isPlainObject: isPlainObject,
9151
9238
  isEmptyObject: isEmptyObject,
9152
9239
  isUndefined: isUndefined,
@@ -11929,13 +12016,13 @@ var lib = {
11929
12016
  stringify: stringify
11930
12017
  };
11931
12018
 
11932
- var global$2 = global$T;
12019
+ var global$3 = global$U;
11933
12020
  var aCallable = aCallable$7;
11934
12021
  var toObject = toObject$9;
11935
12022
  var IndexedObject = indexedObject;
11936
12023
  var lengthOfArrayLike = lengthOfArrayLike$8;
11937
12024
 
11938
- var TypeError$1 = global$2.TypeError;
12025
+ var TypeError$1 = global$3.TypeError;
11939
12026
 
11940
12027
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
11941
12028
  var createMethod$1 = function (IS_RIGHT) {
@@ -11973,7 +12060,7 @@ var arrayReduce = {
11973
12060
  right: createMethod$1(true)
11974
12061
  };
11975
12062
 
11976
- var $$4 = _export;
12063
+ var $$5 = _export;
11977
12064
  var $reduce = arrayReduce.left;
11978
12065
  var arrayMethodIsStrict = arrayMethodIsStrict$4;
11979
12066
  var CHROME_VERSION = engineV8Version;
@@ -11986,7 +12073,7 @@ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
11986
12073
 
11987
12074
  // `Array.prototype.reduce` method
11988
12075
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
11989
- $$4({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
12076
+ $$5({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
11990
12077
  reduce: function reduce(callbackfn /* , initialValue */) {
11991
12078
  var length = arguments.length;
11992
12079
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
@@ -12490,13 +12577,13 @@ var PayPalCharge = {
12490
12577
 
12491
12578
  var DESCRIPTORS$1 = descriptors$1;
12492
12579
  var FUNCTION_NAME_EXISTS = functionName.EXISTS;
12493
- var uncurryThis$2 = functionUncurryThis;
12580
+ var uncurryThis$4 = functionUncurryThis;
12494
12581
  var defineProperty = objectDefineProperty.f;
12495
12582
 
12496
12583
  var FunctionPrototype = Function.prototype;
12497
- var functionToString = uncurryThis$2(FunctionPrototype.toString);
12584
+ var functionToString = uncurryThis$4(FunctionPrototype.toString);
12498
12585
  var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
12499
- var regExpExec = uncurryThis$2(nameRE.exec);
12586
+ var regExpExec = uncurryThis$4(nameRE.exec);
12500
12587
  var NAME = 'name';
12501
12588
 
12502
12589
  // Function instances `.name` property
@@ -17890,13 +17977,13 @@ function encrypt(toEncrypt) {
17890
17977
  }
17891
17978
 
17892
17979
  var DESCRIPTORS = descriptors$1;
17893
- var uncurryThis$1 = functionUncurryThis;
17980
+ var uncurryThis$3 = functionUncurryThis;
17894
17981
  var objectKeys = objectKeys$3;
17895
17982
  var toIndexedObject = toIndexedObject$8;
17896
17983
  var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
17897
17984
 
17898
- var propertyIsEnumerable = uncurryThis$1($propertyIsEnumerable);
17899
- var push = uncurryThis$1([].push);
17985
+ var propertyIsEnumerable = uncurryThis$3($propertyIsEnumerable);
17986
+ var push = uncurryThis$3([].push);
17900
17987
 
17901
17988
  // `Object.{ entries, values }` methods implementation
17902
17989
  var createMethod = function (TO_ENTRIES) {
@@ -17926,18 +18013,18 @@ var objectToArray = {
17926
18013
  values: createMethod(false)
17927
18014
  };
17928
18015
 
17929
- var $$3 = _export;
18016
+ var $$4 = _export;
17930
18017
  var $values = objectToArray.values;
17931
18018
 
17932
18019
  // `Object.values` method
17933
18020
  // https://tc39.es/ecma262/#sec-object.values
17934
- $$3({ target: 'Object', stat: true }, {
18021
+ $$4({ target: 'Object', stat: true }, {
17935
18022
  values: function values(O) {
17936
18023
  return $values(O);
17937
18024
  }
17938
18025
  });
17939
18026
 
17940
- var $$2 = _export;
18027
+ var $$3 = _export;
17941
18028
  var $find = arrayIteration.find;
17942
18029
  var addToUnscopables = addToUnscopables$3;
17943
18030
 
@@ -17949,7 +18036,7 @@ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
17949
18036
 
17950
18037
  // `Array.prototype.find` method
17951
18038
  // https://tc39.es/ecma262/#sec-array.prototype.find
17952
- $$2({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
18039
+ $$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
17953
18040
  find: function find(callbackfn /* , that = undefined */) {
17954
18041
  return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
17955
18042
  }
@@ -20383,6 +20470,10 @@ var MobileMoneyAPI = {
20383
20470
  }
20384
20471
  };
20385
20472
 
20473
+ // Charge statuses that leave the transaction with a Pusher channel worth listening on.
20474
+ // `awaiting_ussd_confirmation` is mid-flight, not settled, but it still carries the
20475
+ // `channel_name` the outcome will arrive on.
20476
+ var LISTENABLE_CHARGE_STATUSES = ['success', 'awaiting_ussd_confirmation'];
20386
20477
  function validate$1(phoneNumber) {
20387
20478
  return new Promise(function (resolve, reject) {
20388
20479
  var validation = PhoneNumber.validate(phoneNumber);
@@ -20422,9 +20513,9 @@ var MobileMoneyCharge = {
20422
20513
  mobileMoneyChargeAPI: function mobileMoneyChargeAPI(params) {
20423
20514
  var _this = this;
20424
20515
  return MobileMoneyAPI.charge(params).then(function (response) {
20425
- if (response.status === 'success') {
20516
+ if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
20426
20517
  _this.mobileMoney = response;
20427
- if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
20518
+ if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
20428
20519
  _this.logTokenRequest('mobile money');
20429
20520
  }
20430
20521
  }
@@ -20474,9 +20565,9 @@ var MobileMoneyCharge = {
20474
20565
  deviceFingerprint: _this3.deviceFingerprint
20475
20566
  });
20476
20567
  return MobileMoneyAPI.charge(params).then(function (response) {
20477
- if (response.status === 'success') {
20568
+ if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
20478
20569
  _this3.mobileMoney = response;
20479
- if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
20570
+ if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
20480
20571
  _this3.logTokenRequest('mobile money');
20481
20572
  }
20482
20573
  } else if (response.errors && response.errors.data && response.errors.data.status === 'awaiting_registration_token') {
@@ -20499,17 +20590,33 @@ var MobileMoneyCharge = {
20499
20590
  });
20500
20591
  },
20501
20592
  listenForMobileMoneyCharge: function listenForMobileMoneyCharge(callback) {
20502
- if (this.mobileMoney.status !== 'success') {
20593
+ var _ref2 = this.mobileMoney.data || {},
20594
+ channel = _ref2.channel,
20595
+ channelName = _ref2.channel_name;
20596
+ var listenerChannel = channel || channelName;
20597
+ if (!LISTENABLE_CHARGE_STATUSES.includes(this.mobileMoney.status) || !listenerChannel) {
20503
20598
  return Promise.reject(Error('Please start a mobile money charge with Transaction.chargeMobileMoney()'));
20504
20599
  }
20505
- var _this$mobileMoney$dat = this.mobileMoney.data,
20506
- channel = _this$mobileMoney$dat.channel,
20507
- channelName = _this$mobileMoney$dat.channel_name;
20508
20600
  var listenerOptions = {
20509
- channel: channel || channelName,
20601
+ channel: listenerChannel,
20510
20602
  paymentMethod: 'mobile_money'
20511
20603
  };
20512
20604
  return this.listenForCharge(listenerOptions, callback);
20605
+ },
20606
+ // Unlike every sibling listener, this returns a teardown function rather than a
20607
+ // promise, so it throws synchronously instead of rejecting. A caller in a
20608
+ // non-async event handler gets an uncaught throw, not an unhandled rejection.
20609
+ listenForMobileMoneyConfirmation: function listenForMobileMoneyConfirmation(callback, pusherChannel) {
20610
+ var data = this.mobileMoney.data;
20611
+ var confirmationChannel = pusherChannel || data && data.confirm_channel_name;
20612
+ if (!confirmationChannel) {
20613
+ throw new Error('Please provide the confirm_channel_name returned by Transaction.chargeMobileMoney()');
20614
+ }
20615
+ var listenerOptions = {
20616
+ channel: confirmationChannel,
20617
+ paymentMethod: 'mobile_money'
20618
+ };
20619
+ return subscribeToConfirmationEvents(listenerOptions, this, callback);
20513
20620
  }
20514
20621
  };
20515
20622
 
@@ -20670,7 +20777,7 @@ var DirectDebitCharge = {
20670
20777
  };
20671
20778
 
20672
20779
  var PROPER_FUNCTION_NAME = functionName.PROPER;
20673
- var fails$1 = fails$v;
20780
+ var fails$2 = fails$x;
20674
20781
  var whitespaces = whitespaces$3;
20675
20782
 
20676
20783
  var non = '\u200B\u0085\u180E';
@@ -20678,20 +20785,20 @@ var non = '\u200B\u0085\u180E';
20678
20785
  // check that a method works with the correct list
20679
20786
  // of whitespaces and has a correct name
20680
20787
  var stringTrimForced = function (METHOD_NAME) {
20681
- return fails$1(function () {
20788
+ return fails$2(function () {
20682
20789
  return !!whitespaces[METHOD_NAME]()
20683
20790
  || non[METHOD_NAME]() !== non
20684
20791
  || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
20685
20792
  });
20686
20793
  };
20687
20794
 
20688
- var $$1 = _export;
20795
+ var $$2 = _export;
20689
20796
  var $trim = stringTrim.trim;
20690
20797
  var forcedStringTrimMethod = stringTrimForced;
20691
20798
 
20692
20799
  // `String.prototype.trim` method
20693
20800
  // https://tc39.es/ecma262/#sec-string.prototype.trim
20694
- $$1({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
20801
+ $$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
20695
20802
  trim: function trim() {
20696
20803
  return $trim(this);
20697
20804
  }
@@ -20930,6 +21037,374 @@ var InstalmentsCharge = {
20930
21037
  }
20931
21038
  };
20932
21039
 
21040
+ var $$1 = _export;
21041
+ var global$2 = global$U;
21042
+ var uncurryThis$2 = functionUncurryThis;
21043
+ var isForced = isForced_1;
21044
+ var redefine = redefine$b.exports;
21045
+ var InternalMetadataModule = internalMetadata.exports;
21046
+ var iterate$1 = iterate$3;
21047
+ var anInstance$1 = anInstance$5;
21048
+ var isCallable = isCallable$l;
21049
+ var isObject$1 = isObject$k;
21050
+ var fails$1 = fails$x;
21051
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
21052
+ var setToStringTag = setToStringTag$6;
21053
+ var inheritIfRequired = inheritIfRequired$3;
21054
+
21055
+ var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) {
21056
+ var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
21057
+ var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
21058
+ var ADDER = IS_MAP ? 'set' : 'add';
21059
+ var NativeConstructor = global$2[CONSTRUCTOR_NAME];
21060
+ var NativePrototype = NativeConstructor && NativeConstructor.prototype;
21061
+ var Constructor = NativeConstructor;
21062
+ var exported = {};
21063
+
21064
+ var fixMethod = function (KEY) {
21065
+ var uncurriedNativeMethod = uncurryThis$2(NativePrototype[KEY]);
21066
+ redefine(NativePrototype, KEY,
21067
+ KEY == 'add' ? function add(value) {
21068
+ uncurriedNativeMethod(this, value === 0 ? 0 : value);
21069
+ return this;
21070
+ } : KEY == 'delete' ? function (key) {
21071
+ return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
21072
+ } : KEY == 'get' ? function get(key) {
21073
+ return IS_WEAK && !isObject$1(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
21074
+ } : KEY == 'has' ? function has(key) {
21075
+ return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
21076
+ } : function set(key, value) {
21077
+ uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
21078
+ return this;
21079
+ }
21080
+ );
21081
+ };
21082
+
21083
+ var REPLACE = isForced(
21084
+ CONSTRUCTOR_NAME,
21085
+ !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$1(function () {
21086
+ new NativeConstructor().entries().next();
21087
+ }))
21088
+ );
21089
+
21090
+ if (REPLACE) {
21091
+ // create collection constructor
21092
+ Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
21093
+ InternalMetadataModule.enable();
21094
+ } else if (isForced(CONSTRUCTOR_NAME, true)) {
21095
+ var instance = new Constructor();
21096
+ // early implementations not supports chaining
21097
+ var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
21098
+ // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
21099
+ var THROWS_ON_PRIMITIVES = fails$1(function () { instance.has(1); });
21100
+ // most early implementations doesn't supports iterables, most modern - not close it correctly
21101
+ // eslint-disable-next-line no-new -- required for testing
21102
+ var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
21103
+ // for early implementations -0 and +0 not the same
21104
+ var BUGGY_ZERO = !IS_WEAK && fails$1(function () {
21105
+ // V8 ~ Chromium 42- fails only with 5+ elements
21106
+ var $instance = new NativeConstructor();
21107
+ var index = 5;
21108
+ while (index--) $instance[ADDER](index, index);
21109
+ return !$instance.has(-0);
21110
+ });
21111
+
21112
+ if (!ACCEPT_ITERABLES) {
21113
+ Constructor = wrapper(function (dummy, iterable) {
21114
+ anInstance$1(dummy, NativePrototype);
21115
+ var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
21116
+ if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
21117
+ return that;
21118
+ });
21119
+ Constructor.prototype = NativePrototype;
21120
+ NativePrototype.constructor = Constructor;
21121
+ }
21122
+
21123
+ if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
21124
+ fixMethod('delete');
21125
+ fixMethod('has');
21126
+ IS_MAP && fixMethod('get');
21127
+ }
21128
+
21129
+ if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
21130
+
21131
+ // weak collections should not contains .clear method
21132
+ if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
21133
+ }
21134
+
21135
+ exported[CONSTRUCTOR_NAME] = Constructor;
21136
+ $$1({ global: true, forced: Constructor != NativeConstructor }, exported);
21137
+
21138
+ setToStringTag(Constructor, CONSTRUCTOR_NAME);
21139
+
21140
+ if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
21141
+
21142
+ return Constructor;
21143
+ };
21144
+
21145
+ var uncurryThis$1 = functionUncurryThis;
21146
+ var redefineAll = redefineAll$3;
21147
+ var getWeakData = internalMetadata.exports.getWeakData;
21148
+ var anObject = anObject$f;
21149
+ var isObject = isObject$k;
21150
+ var anInstance = anInstance$5;
21151
+ var iterate = iterate$3;
21152
+ var ArrayIterationModule = arrayIteration;
21153
+ var hasOwn = hasOwnProperty_1;
21154
+ var InternalStateModule = internalState;
21155
+
21156
+ var setInternalState = InternalStateModule.set;
21157
+ var internalStateGetterFor = InternalStateModule.getterFor;
21158
+ var find = ArrayIterationModule.find;
21159
+ var findIndex = ArrayIterationModule.findIndex;
21160
+ var splice = uncurryThis$1([].splice);
21161
+ var id = 0;
21162
+
21163
+ // fallback for uncaught frozen keys
21164
+ var uncaughtFrozenStore = function (store) {
21165
+ return store.frozen || (store.frozen = new UncaughtFrozenStore());
21166
+ };
21167
+
21168
+ var UncaughtFrozenStore = function () {
21169
+ this.entries = [];
21170
+ };
21171
+
21172
+ var findUncaughtFrozen = function (store, key) {
21173
+ return find(store.entries, function (it) {
21174
+ return it[0] === key;
21175
+ });
21176
+ };
21177
+
21178
+ UncaughtFrozenStore.prototype = {
21179
+ get: function (key) {
21180
+ var entry = findUncaughtFrozen(this, key);
21181
+ if (entry) return entry[1];
21182
+ },
21183
+ has: function (key) {
21184
+ return !!findUncaughtFrozen(this, key);
21185
+ },
21186
+ set: function (key, value) {
21187
+ var entry = findUncaughtFrozen(this, key);
21188
+ if (entry) entry[1] = value;
21189
+ else this.entries.push([key, value]);
21190
+ },
21191
+ 'delete': function (key) {
21192
+ var index = findIndex(this.entries, function (it) {
21193
+ return it[0] === key;
21194
+ });
21195
+ if (~index) splice(this.entries, index, 1);
21196
+ return !!~index;
21197
+ }
21198
+ };
21199
+
21200
+ var collectionWeak$1 = {
21201
+ getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
21202
+ var Constructor = wrapper(function (that, iterable) {
21203
+ anInstance(that, Prototype);
21204
+ setInternalState(that, {
21205
+ type: CONSTRUCTOR_NAME,
21206
+ id: id++,
21207
+ frozen: undefined
21208
+ });
21209
+ if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
21210
+ });
21211
+
21212
+ var Prototype = Constructor.prototype;
21213
+
21214
+ var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
21215
+
21216
+ var define = function (that, key, value) {
21217
+ var state = getInternalState(that);
21218
+ var data = getWeakData(anObject(key), true);
21219
+ if (data === true) uncaughtFrozenStore(state).set(key, value);
21220
+ else data[state.id] = value;
21221
+ return that;
21222
+ };
21223
+
21224
+ redefineAll(Prototype, {
21225
+ // `{ WeakMap, WeakSet }.prototype.delete(key)` methods
21226
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.delete
21227
+ // https://tc39.es/ecma262/#sec-weakset.prototype.delete
21228
+ 'delete': function (key) {
21229
+ var state = getInternalState(this);
21230
+ if (!isObject(key)) return false;
21231
+ var data = getWeakData(key);
21232
+ if (data === true) return uncaughtFrozenStore(state)['delete'](key);
21233
+ return data && hasOwn(data, state.id) && delete data[state.id];
21234
+ },
21235
+ // `{ WeakMap, WeakSet }.prototype.has(key)` methods
21236
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.has
21237
+ // https://tc39.es/ecma262/#sec-weakset.prototype.has
21238
+ has: function has(key) {
21239
+ var state = getInternalState(this);
21240
+ if (!isObject(key)) return false;
21241
+ var data = getWeakData(key);
21242
+ if (data === true) return uncaughtFrozenStore(state).has(key);
21243
+ return data && hasOwn(data, state.id);
21244
+ }
21245
+ });
21246
+
21247
+ redefineAll(Prototype, IS_MAP ? {
21248
+ // `WeakMap.prototype.get(key)` method
21249
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.get
21250
+ get: function get(key) {
21251
+ var state = getInternalState(this);
21252
+ if (isObject(key)) {
21253
+ var data = getWeakData(key);
21254
+ if (data === true) return uncaughtFrozenStore(state).get(key);
21255
+ return data ? data[state.id] : undefined;
21256
+ }
21257
+ },
21258
+ // `WeakMap.prototype.set(key, value)` method
21259
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.set
21260
+ set: function set(key, value) {
21261
+ return define(this, key, value);
21262
+ }
21263
+ } : {
21264
+ // `WeakSet.prototype.add(value)` method
21265
+ // https://tc39.es/ecma262/#sec-weakset.prototype.add
21266
+ add: function add(value) {
21267
+ return define(this, value, true);
21268
+ }
21269
+ });
21270
+
21271
+ return Constructor;
21272
+ }
21273
+ };
21274
+
21275
+ var collection = collection$1;
21276
+ var collectionWeak = collectionWeak$1;
21277
+
21278
+ // `WeakSet` constructor
21279
+ // https://tc39.es/ecma262/#sec-weakset-constructor
21280
+ collection('WeakSet', function (init) {
21281
+ return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };
21282
+ }, collectionWeak);
21283
+
21284
+ // The server refuses a charge with a 4xx carrying the merchant-safe reason, which axios rejects
21285
+ // on. Parse it so the reason reaches the customer. Charge-only: a refusal here means no order was
21286
+ // created, whereas a transport failure on the status poll says nothing about the payment.
21287
+ var parseChargeRefusal = function parseChargeRefusal(error) {
21288
+ if (!error.response) throw error;
21289
+ return ChargeResponses.parse(error.response.data);
21290
+ };
21291
+ var PayflexAPI = {
21292
+ charge: function charge(_ref) {
21293
+ var accessCode = _ref.accessCode,
21294
+ publicKey = _ref.publicKey,
21295
+ deviceFingerprint = _ref.deviceFingerprint,
21296
+ checkoutMode = _ref.checkoutMode,
21297
+ successUrl = _ref.successUrl,
21298
+ cancelUrl = _ref.cancelUrl;
21299
+ var url = new URL('transaction/charge', configToUse.paystackApiUrl).toString();
21300
+ var language = getLanguage();
21301
+ var headers = _objectSpread2({
21302
+ Authorization: "Bearer ".concat(publicKey)
21303
+ }, language && {
21304
+ 'Accept-Language': language
21305
+ });
21306
+ var params = _objectSpread2(_objectSpread2({
21307
+ access_code: accessCode
21308
+ }, deviceFingerprint && {
21309
+ device_id: deviceFingerprint
21310
+ }), {}, {
21311
+ payflex: _objectSpread2(_objectSpread2(_objectSpread2({}, checkoutMode && {
21312
+ checkout_mode: checkoutMode
21313
+ }), successUrl && {
21314
+ success_url: successUrl
21315
+ }), cancelUrl && {
21316
+ cancel_url: cancelUrl
21317
+ })
21318
+ });
21319
+ return axiosInstance.post(url, params, {
21320
+ headers: headers
21321
+ }).then(function (response) {
21322
+ return ChargeResponses.parse(response.data);
21323
+ }).catch(parseChargeRefusal);
21324
+ },
21325
+ // Deliberately has no error branch. Only a 2xx body is an answer about the payment; a 404, a
21326
+ // proxy 5xx or an expired key is the poll failing to reach a verdict, and resolving those to
21327
+ // `failed` would have checkout conclude an outcome the server never gave it.
21328
+ requery: function requery(_ref2) {
21329
+ var transactionReference = _ref2.transactionReference,
21330
+ publicKey = _ref2.publicKey;
21331
+ var url = new URL("payflex/requery/".concat(encodeURIComponent(transactionReference)), configToUse.paystackApiUrl).toString();
21332
+ var language = getLanguage();
21333
+ var headers = _objectSpread2({
21334
+ Authorization: "Bearer ".concat(publicKey)
21335
+ }, language && {
21336
+ 'Accept-Language': language
21337
+ });
21338
+ return axiosInstance.get(url, {
21339
+ headers: headers
21340
+ }).then(function (response) {
21341
+ return ChargeResponses.parse(response.data);
21342
+ });
21343
+ }
21344
+ };
21345
+
21346
+ // eslint-disable-next-line import/prefer-default-export
21347
+ var PAYFLEX_CHANNEL = 'payflex';
21348
+
21349
+ // Checkout may never conclude failure on a timer, so the poll runs long, and saveLog() re-POSTs the
21350
+ // whole history on every entry. One pending entry per run of non-terminal polls; a terminal answer
21351
+ // clears it so a retried hand-off logs its own.
21352
+ var pendingLogged = new WeakSet();
21353
+ var PayflexCharge = {
21354
+ chargePayflex: function chargePayflex() {
21355
+ var _this = this;
21356
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
21357
+ checkoutMode = _ref.checkoutMode,
21358
+ successUrl = _ref.successUrl,
21359
+ cancelUrl = _ref.cancelUrl;
21360
+ this.logAttempt(PAYFLEX_CHANNEL);
21361
+ if (checkoutMode) {
21362
+ this.logPayflexPresentationMode(checkoutMode);
21363
+ }
21364
+ return PayflexAPI.charge({
21365
+ accessCode: this.accessCode,
21366
+ publicKey: this.merchant.key,
21367
+ deviceFingerprint: this.deviceFingerprint,
21368
+ checkoutMode: checkoutMode,
21369
+ successUrl: successUrl,
21370
+ cancelUrl: cancelUrl
21371
+ }).then(function (response) {
21372
+ var usedMode = response.data && response.data.checkout_mode;
21373
+ if (checkoutMode && usedMode && usedMode !== checkoutMode) {
21374
+ _this.logPayflexPresentationModeMismatch({
21375
+ requested: checkoutMode,
21376
+ used: usedMode
21377
+ });
21378
+ }
21379
+ _this.logAPIResponse(response, PAYFLEX_CHANNEL);
21380
+ return response;
21381
+ });
21382
+ },
21383
+ requeryPayflex: function requeryPayflex() {
21384
+ var _this2 = this;
21385
+ return PayflexAPI.requery({
21386
+ transactionReference: this.reference,
21387
+ publicKey: this.merchant.key
21388
+ }).then(function (response) {
21389
+ if (response.status !== 'pending') {
21390
+ pendingLogged.delete(_this2);
21391
+ _this2.logAPIResponse(response, PAYFLEX_CHANNEL);
21392
+ } else if (!pendingLogged.has(_this2)) {
21393
+ pendingLogged.add(_this2);
21394
+ _this2.logAPIResponse(response, PAYFLEX_CHANNEL);
21395
+ }
21396
+ return response;
21397
+ });
21398
+ },
21399
+ listenForPayflexCharge: function listenForPayflexCharge(callback) {
21400
+ var listenerOptions = {
21401
+ paymentMethod: PAYFLEX_CHANNEL,
21402
+ channel: "PAYFLEX_".concat(this.id)
21403
+ };
21404
+ return this.listenForCharge(listenerOptions, callback);
21405
+ }
21406
+ };
21407
+
20933
21408
  var ChargeFunctions = {
20934
21409
  get: function get(channel) {
20935
21410
  var chargeFunctions = {
@@ -20947,7 +21422,8 @@ var ChargeFunctions = {
20947
21422
  paypal: PayPalCharge,
20948
21423
  capitec_pay: CapitecPayCharge,
20949
21424
  union_pay: ChinaUnionPayCharge,
20950
- instalments: InstalmentsCharge
21425
+ instalments: InstalmentsCharge,
21426
+ payflex: PayflexCharge
20951
21427
  };
20952
21428
  return chargeFunctions[channel];
20953
21429
  }
@@ -20991,11 +21467,11 @@ var AnalyticsUtils = {
20991
21467
  };
20992
21468
 
20993
21469
  var $ = _export;
20994
- var global$1 = global$T;
21470
+ var global$1 = global$U;
20995
21471
  var getBuiltIn = getBuiltIn$a;
20996
21472
  var apply = functionApply;
20997
21473
  var uncurryThis = functionUncurryThis;
20998
- var fails = fails$v;
21474
+ var fails = fails$x;
20999
21475
 
21000
21476
  var Array$1 = global$1.Array;
21001
21477
  var $stringify = getBuiltIn('JSON', 'stringify');
@@ -21160,7 +21636,36 @@ var CapitecPayAnalytics = {
21160
21636
  }
21161
21637
  };
21162
21638
 
21163
- var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2({}, CapitecPayAnalytics), {}, {
21639
+ var PayflexAnalytics = {
21640
+ logPayflexPresentationMode: function logPayflexPresentationMode(checkoutMode) {
21641
+ return this.logHistoryEntry({
21642
+ type: 'action',
21643
+ message: "Opening Payflex as: ".concat(checkoutMode),
21644
+ channel: PAYFLEX_CHANNEL,
21645
+ time: this.getTimeSpent()
21646
+ });
21647
+ },
21648
+ logPayflexPresentationModeMismatch: function logPayflexPresentationModeMismatch(_ref) {
21649
+ var requested = _ref.requested,
21650
+ used = _ref.used;
21651
+ return this.logHistoryEntry({
21652
+ type: 'action',
21653
+ message: "Payflex opened as ".concat(used, " after requesting ").concat(requested),
21654
+ channel: PAYFLEX_CHANNEL,
21655
+ time: this.getTimeSpent()
21656
+ });
21657
+ },
21658
+ logPayflexStatusRecheck: function logPayflexStatusRecheck() {
21659
+ return this.logHistoryEntry({
21660
+ type: 'action',
21661
+ message: 'Selected check payment status again',
21662
+ channel: PAYFLEX_CHANNEL,
21663
+ time: this.getTimeSpent()
21664
+ });
21665
+ }
21666
+ };
21667
+
21668
+ var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2(_objectSpread2({}, CapitecPayAnalytics), PayflexAnalytics), {}, {
21164
21669
  initializeLog: function initializeLog(log) {
21165
21670
  this.log = AnalyticsUtils.initializeLog(log);
21166
21671
  },