@paystack/checkout-js 1.57.0-beta.1 → 1.57.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkout.js +1288 -705
- package/es/checkout.js +1288 -705
- package/lib/checkout.js +1288 -705
- package/package.json +1 -1
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$
|
|
1038
|
+
var global$V =
|
|
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$
|
|
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$
|
|
1058
|
+
var fails$w = fails$x;
|
|
1059
1059
|
|
|
1060
1060
|
// Detect IE8's incomplete defineProperty implementation
|
|
1061
|
-
var descriptors$1 = !fails$
|
|
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$
|
|
1066
|
+
var fails$v = fails$x;
|
|
1067
1067
|
|
|
1068
|
-
var functionBindNative = !fails$
|
|
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$
|
|
1112
|
+
var uncurryThis$A = 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$
|
|
1115
|
+
return fn && uncurryThis$A(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$
|
|
1122
|
+
var uncurryThis$z = functionUncurryThis;
|
|
1123
1123
|
|
|
1124
|
-
var toString$b = uncurryThis$
|
|
1125
|
-
var stringSlice$4 = uncurryThis$
|
|
1124
|
+
var toString$b = uncurryThis$z({}.toString);
|
|
1125
|
+
var stringSlice$4 = uncurryThis$z(''.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$
|
|
1132
|
-
var uncurryThis$
|
|
1133
|
-
var fails$
|
|
1131
|
+
var global$U = global$V;
|
|
1132
|
+
var uncurryThis$y = functionUncurryThis;
|
|
1133
|
+
var fails$u = fails$x;
|
|
1134
1134
|
var classof$a = classofRaw$1;
|
|
1135
1135
|
|
|
1136
|
-
var Object$5 = global$
|
|
1137
|
-
var split$4 = uncurryThis$
|
|
1136
|
+
var Object$5 = global$U.Object;
|
|
1137
|
+
var split$4 = uncurryThis$y(''.split);
|
|
1138
1138
|
|
|
1139
1139
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1140
|
-
var indexedObject = fails$
|
|
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$
|
|
1148
|
+
var global$T = global$V;
|
|
1149
1149
|
|
|
1150
|
-
var TypeError$j = global$
|
|
1150
|
+
var TypeError$j = global$T.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$
|
|
1169
|
+
var isCallable$l = function (argument) {
|
|
1170
1170
|
return typeof argument == 'function';
|
|
1171
1171
|
};
|
|
1172
1172
|
|
|
1173
|
-
var isCallable$
|
|
1173
|
+
var isCallable$k = isCallable$l;
|
|
1174
1174
|
|
|
1175
|
-
var isObject$
|
|
1176
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
1175
|
+
var isObject$l = function (it) {
|
|
1176
|
+
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
1177
1177
|
};
|
|
1178
1178
|
|
|
1179
|
-
var global$
|
|
1180
|
-
var isCallable$
|
|
1179
|
+
var global$S = global$V;
|
|
1180
|
+
var isCallable$j = isCallable$l;
|
|
1181
1181
|
|
|
1182
1182
|
var aFunction = function (argument) {
|
|
1183
|
-
return isCallable$
|
|
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$
|
|
1187
|
+
return arguments.length < 2 ? aFunction(global$S[namespace]) : global$S[namespace] && global$S[namespace][method];
|
|
1188
1188
|
};
|
|
1189
1189
|
|
|
1190
|
-
var uncurryThis$
|
|
1190
|
+
var uncurryThis$x = functionUncurryThis;
|
|
1191
1191
|
|
|
1192
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
1192
|
+
var objectIsPrototypeOf = uncurryThis$x({}.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$
|
|
1198
|
+
var global$R = global$V;
|
|
1199
1199
|
var userAgent$5 = engineUserAgent;
|
|
1200
1200
|
|
|
1201
|
-
var process$4 = global$
|
|
1202
|
-
var Deno = global$
|
|
1201
|
+
var process$4 = global$R.process;
|
|
1202
|
+
var Deno = global$R.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$
|
|
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$
|
|
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$
|
|
1249
|
+
var global$Q = global$V;
|
|
1250
1250
|
var getBuiltIn$8 = getBuiltIn$a;
|
|
1251
|
-
var isCallable$
|
|
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$
|
|
1255
|
+
var Object$4 = global$Q.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$
|
|
1261
|
+
return isCallable$i($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$4(it));
|
|
1262
1262
|
};
|
|
1263
1263
|
|
|
1264
|
-
var global$
|
|
1264
|
+
var global$P = global$V;
|
|
1265
1265
|
|
|
1266
|
-
var String$5 = global$
|
|
1266
|
+
var String$5 = global$P.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$
|
|
1277
|
-
var isCallable$
|
|
1276
|
+
var global$O = global$V;
|
|
1277
|
+
var isCallable$h = isCallable$l;
|
|
1278
1278
|
var tryToString$3 = tryToString$4;
|
|
1279
1279
|
|
|
1280
|
-
var TypeError$i = global$
|
|
1280
|
+
var TypeError$i = global$O.TypeError;
|
|
1281
1281
|
|
|
1282
1282
|
// `Assert: IsCallable(argument) is true`
|
|
1283
1283
|
var aCallable$7 = function (argument) {
|
|
1284
|
-
if (isCallable$
|
|
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$
|
|
1297
|
+
var global$N = global$V;
|
|
1298
1298
|
var call$d = functionCall;
|
|
1299
|
-
var isCallable$
|
|
1300
|
-
var isObject$
|
|
1299
|
+
var isCallable$g = isCallable$l;
|
|
1300
|
+
var isObject$k = isObject$l;
|
|
1301
1301
|
|
|
1302
|
-
var TypeError$h = global$
|
|
1302
|
+
var TypeError$h = global$N.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$
|
|
1309
|
-
if (isCallable$
|
|
1310
|
-
if (pref !== 'string' && isCallable$
|
|
1308
|
+
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$k(val = call$d(fn, input))) return val;
|
|
1309
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$k(val = call$d(fn, input))) return val;
|
|
1310
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$k(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$
|
|
1318
|
+
var global$M = global$V;
|
|
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$
|
|
1325
|
+
defineProperty$6(global$M, key, { value: value, configurable: true, writable: true });
|
|
1326
1326
|
} catch (error) {
|
|
1327
|
-
global$
|
|
1327
|
+
global$M[key] = value;
|
|
1328
1328
|
} return value;
|
|
1329
1329
|
};
|
|
1330
1330
|
|
|
1331
|
-
var global$
|
|
1331
|
+
var global$L = global$V;
|
|
1332
1332
|
var setGlobal$2 = setGlobal$3;
|
|
1333
1333
|
|
|
1334
1334
|
var SHARED = '__core-js_shared__';
|
|
1335
|
-
var store$3 = global$
|
|
1335
|
+
var store$3 = global$L[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$
|
|
1351
|
+
var global$K = global$V;
|
|
1352
1352
|
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
1353
1353
|
|
|
1354
|
-
var Object$3 = global$
|
|
1354
|
+
var Object$3 = global$K.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$
|
|
1362
|
+
var uncurryThis$w = functionUncurryThis;
|
|
1363
1363
|
var toObject$8 = toObject$9;
|
|
1364
1364
|
|
|
1365
|
-
var hasOwnProperty$1 = uncurryThis$
|
|
1365
|
+
var hasOwnProperty$1 = uncurryThis$w({}.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$
|
|
1373
|
+
var uncurryThis$v = functionUncurryThis;
|
|
1374
1374
|
|
|
1375
|
-
var id$
|
|
1375
|
+
var id$2 = 0;
|
|
1376
1376
|
var postfix = Math.random();
|
|
1377
|
-
var toString$a = uncurryThis$
|
|
1377
|
+
var toString$a = uncurryThis$v(1.0.toString);
|
|
1378
1378
|
|
|
1379
1379
|
var uid$3 = function (key) {
|
|
1380
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$
|
|
1380
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$2 + postfix, 36);
|
|
1381
1381
|
};
|
|
1382
1382
|
|
|
1383
|
-
var global$
|
|
1383
|
+
var global$J = global$V;
|
|
1384
1384
|
var shared$3 = shared$4.exports;
|
|
1385
|
-
var hasOwn$
|
|
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$
|
|
1391
|
+
var Symbol$2 = global$J.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$
|
|
1396
|
+
if (!hasOwn$f(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
1397
1397
|
var description = 'Symbol.' + name;
|
|
1398
|
-
if (NATIVE_SYMBOL && hasOwn$
|
|
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$
|
|
1408
|
+
var global$I = global$V;
|
|
1409
1409
|
var call$c = functionCall;
|
|
1410
|
-
var isObject$
|
|
1410
|
+
var isObject$j = isObject$l;
|
|
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$
|
|
1416
|
+
var TypeError$g = global$I.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$
|
|
1422
|
+
if (!isObject$j(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$
|
|
1428
|
+
if (!isObject$j(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$
|
|
1446
|
-
var isObject$
|
|
1445
|
+
var global$H = global$V;
|
|
1446
|
+
var isObject$i = isObject$l;
|
|
1447
1447
|
|
|
1448
|
-
var document$3 = global$
|
|
1448
|
+
var document$3 = global$H.document;
|
|
1449
1449
|
// typeof document.createElement is 'object' in old IE
|
|
1450
|
-
var EXISTS$1 = isObject$
|
|
1450
|
+
var EXISTS$1 = isObject$i(document$3) && isObject$i(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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1507
|
-
var isObject$
|
|
1506
|
+
var global$G = global$V;
|
|
1507
|
+
var isObject$h = isObject$l;
|
|
1508
1508
|
|
|
1509
|
-
var String$4 = global$
|
|
1510
|
-
var TypeError$f = global$
|
|
1509
|
+
var String$4 = global$G.String;
|
|
1510
|
+
var TypeError$f = global$G.TypeError;
|
|
1511
1511
|
|
|
1512
1512
|
// `Assert: Type(argument) is Object`
|
|
1513
|
-
var anObject$
|
|
1514
|
-
if (isObject$
|
|
1513
|
+
var anObject$f = function (argument) {
|
|
1514
|
+
if (isObject$h(argument)) return argument;
|
|
1515
1515
|
throw TypeError$f(String$4(argument) + ' is not an object');
|
|
1516
1516
|
};
|
|
1517
1517
|
|
|
1518
|
-
var global$
|
|
1518
|
+
var global$F = global$V;
|
|
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$
|
|
1522
|
+
var anObject$e = anObject$f;
|
|
1523
1523
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
1524
1524
|
|
|
1525
|
-
var TypeError$e = global$
|
|
1525
|
+
var TypeError$e = global$F.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$
|
|
1537
|
+
anObject$e(O);
|
|
1538
1538
|
P = toPropertyKey$1(P);
|
|
1539
|
-
anObject$
|
|
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$
|
|
1552
|
+
anObject$e(O);
|
|
1553
1553
|
P = toPropertyKey$1(P);
|
|
1554
|
-
anObject$
|
|
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$
|
|
1574
|
+
var redefine$b = {exports: {}};
|
|
1575
1575
|
|
|
1576
|
-
var uncurryThis$
|
|
1577
|
-
var isCallable$
|
|
1576
|
+
var uncurryThis$u = functionUncurryThis;
|
|
1577
|
+
var isCallable$f = isCallable$l;
|
|
1578
1578
|
var store$1 = sharedStore;
|
|
1579
1579
|
|
|
1580
|
-
var functionToString$1 = uncurryThis$
|
|
1580
|
+
var functionToString$1 = uncurryThis$u(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$
|
|
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$
|
|
1592
|
-
var isCallable$
|
|
1591
|
+
var global$E = global$V;
|
|
1592
|
+
var isCallable$e = isCallable$l;
|
|
1593
1593
|
var inspectSource$3 = inspectSource$4;
|
|
1594
1594
|
|
|
1595
|
-
var WeakMap$
|
|
1595
|
+
var WeakMap$2 = global$E.WeakMap;
|
|
1596
1596
|
|
|
1597
|
-
var nativeWeakMap = isCallable$
|
|
1597
|
+
var nativeWeakMap = isCallable$e(WeakMap$2) && /native code/.test(inspectSource$3(WeakMap$2));
|
|
1598
1598
|
|
|
1599
1599
|
var shared$2 = shared$4.exports;
|
|
1600
1600
|
var uid$1 = uid$3;
|
|
@@ -1607,19 +1607,19 @@ var sharedKey$3 = function (key) {
|
|
|
1607
1607
|
|
|
1608
1608
|
var hiddenKeys$5 = {};
|
|
1609
1609
|
|
|
1610
|
-
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
1611
|
-
var global$
|
|
1612
|
-
var uncurryThis$
|
|
1613
|
-
var isObject$
|
|
1610
|
+
var NATIVE_WEAK_MAP$1 = nativeWeakMap;
|
|
1611
|
+
var global$D = global$V;
|
|
1612
|
+
var uncurryThis$t = functionUncurryThis;
|
|
1613
|
+
var isObject$g = isObject$l;
|
|
1614
1614
|
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
1615
|
-
var hasOwn$
|
|
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$
|
|
1622
|
-
var WeakMap = global$
|
|
1621
|
+
var TypeError$d = global$D.TypeError;
|
|
1622
|
+
var WeakMap$1 = global$D.WeakMap;
|
|
1623
1623
|
var set$1, get, has$3;
|
|
1624
1624
|
|
|
1625
1625
|
var enforce = function (it) {
|
|
@@ -1629,17 +1629,17 @@ var enforce = function (it) {
|
|
|
1629
1629
|
var getterFor = function (TYPE) {
|
|
1630
1630
|
return function (it) {
|
|
1631
1631
|
var state;
|
|
1632
|
-
if (!isObject$
|
|
1632
|
+
if (!isObject$g(it) || (state = get(it)).type !== TYPE) {
|
|
1633
1633
|
throw TypeError$d('Incompatible receiver, ' + TYPE + ' required');
|
|
1634
1634
|
} return state;
|
|
1635
1635
|
};
|
|
1636
1636
|
};
|
|
1637
1637
|
|
|
1638
|
-
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
1639
|
-
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
1640
|
-
var wmget = uncurryThis$
|
|
1641
|
-
var wmhas = uncurryThis$
|
|
1642
|
-
var wmset = uncurryThis$
|
|
1638
|
+
if (NATIVE_WEAK_MAP$1 || shared$1.state) {
|
|
1639
|
+
var store = shared$1.state || (shared$1.state = new WeakMap$1());
|
|
1640
|
+
var wmget = uncurryThis$t(store.get);
|
|
1641
|
+
var wmhas = uncurryThis$t(store.has);
|
|
1642
|
+
var wmset = uncurryThis$t(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$
|
|
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$
|
|
1665
|
+
return hasOwn$d(it, STATE) ? it[STATE] : {};
|
|
1666
1666
|
};
|
|
1667
1667
|
has$3 = function (it) {
|
|
1668
|
-
return hasOwn$
|
|
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$
|
|
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$
|
|
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,38 +1695,38 @@ var functionName = {
|
|
|
1695
1695
|
CONFIGURABLE: CONFIGURABLE
|
|
1696
1696
|
};
|
|
1697
1697
|
|
|
1698
|
-
var global$
|
|
1699
|
-
var isCallable$
|
|
1700
|
-
var hasOwn$
|
|
1698
|
+
var global$C = global$V;
|
|
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$
|
|
1704
|
+
var InternalStateModule$6 = internalState;
|
|
1705
1705
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
1706
1706
|
|
|
1707
|
-
var getInternalState$4 = InternalStateModule$
|
|
1708
|
-
var enforceInternalState = InternalStateModule$
|
|
1707
|
+
var getInternalState$4 = InternalStateModule$6.get;
|
|
1708
|
+
var enforceInternalState$1 = InternalStateModule$6.enforce;
|
|
1709
1709
|
var TEMPLATE = String(String).split('String');
|
|
1710
1710
|
|
|
1711
|
-
(redefine$
|
|
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$
|
|
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$
|
|
1721
|
+
if (!hasOwn$b(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
1722
1722
|
createNonEnumerableProperty$6(value, 'name', name);
|
|
1723
1723
|
}
|
|
1724
|
-
state = enforceInternalState(value);
|
|
1724
|
+
state = enforceInternalState$1(value);
|
|
1725
1725
|
if (!state.source) {
|
|
1726
1726
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
|
-
if (O === global$
|
|
1729
|
+
if (O === global$C) {
|
|
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$
|
|
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$
|
|
1823
|
-
var hasOwn$
|
|
1822
|
+
var uncurryThis$s = 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$
|
|
1828
|
+
var push$7 = uncurryThis$s([].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$
|
|
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$
|
|
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$
|
|
1872
|
+
var uncurryThis$r = functionUncurryThis;
|
|
1873
1873
|
var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;
|
|
1874
1874
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1875
|
-
var anObject$
|
|
1875
|
+
var anObject$d = anObject$f;
|
|
1876
1876
|
|
|
1877
|
-
var concat$1 = uncurryThis$
|
|
1877
|
+
var concat$1 = uncurryThis$r([].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$
|
|
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$
|
|
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$
|
|
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$
|
|
1904
|
-
var isCallable$
|
|
1903
|
+
var fails$q = fails$x;
|
|
1904
|
+
var isCallable$c = isCallable$l;
|
|
1905
1905
|
|
|
1906
1906
|
var replacement = /#|\.prototype\./;
|
|
1907
1907
|
|
|
1908
|
-
var isForced$
|
|
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$
|
|
1912
|
+
: isCallable$c(detection) ? fails$q(detection)
|
|
1913
1913
|
: !!detection;
|
|
1914
1914
|
};
|
|
1915
1915
|
|
|
1916
|
-
var normalize = isForced$
|
|
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$
|
|
1921
|
-
var NATIVE = isForced$
|
|
1922
|
-
var POLYFILL = isForced$
|
|
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$
|
|
1924
|
+
var isForced_1 = isForced$4;
|
|
1925
1925
|
|
|
1926
|
-
var global$
|
|
1926
|
+
var global$B = global$V;
|
|
1927
1927
|
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
1928
1928
|
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1929
|
-
var redefine$
|
|
1929
|
+
var redefine$a = redefine$b.exports;
|
|
1930
1930
|
var setGlobal = setGlobal$3;
|
|
1931
1931
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1932
|
-
var isForced$
|
|
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$
|
|
1955
|
+
target = global$B;
|
|
1956
1956
|
} else if (STATIC) {
|
|
1957
|
-
target = global$
|
|
1957
|
+
target = global$B[TARGET] || setGlobal(TARGET, {});
|
|
1958
1958
|
} else {
|
|
1959
|
-
target = (global$
|
|
1959
|
+
target = (global$B[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$
|
|
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$
|
|
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$
|
|
1996
|
+
var global$A = global$V;
|
|
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$
|
|
2001
|
+
var Array$4 = global$A.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$
|
|
2040
|
+
var fails$p = fails$x;
|
|
2041
2041
|
|
|
2042
|
-
var arrayBufferNonExtensible = fails$
|
|
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,59 +2047,59 @@ var arrayBufferNonExtensible = fails$n(function () {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
});
|
|
2049
2049
|
|
|
2050
|
-
var fails$
|
|
2051
|
-
var isObject$
|
|
2050
|
+
var fails$o = fails$x;
|
|
2051
|
+
var isObject$f = isObject$l;
|
|
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$
|
|
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$
|
|
2062
|
-
if (!isObject$
|
|
2061
|
+
var objectIsExtensible = (FAILS_ON_PRIMITIVES$3 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
|
|
2062
|
+
if (!isObject$f(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$
|
|
2067
|
+
var fails$n = fails$x;
|
|
2068
2068
|
|
|
2069
|
-
var freezing = !fails$
|
|
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 $$
|
|
2075
|
-
var uncurryThis$
|
|
2074
|
+
var $$o = _export;
|
|
2075
|
+
var uncurryThis$q = functionUncurryThis;
|
|
2076
2076
|
var hiddenKeys$1 = hiddenKeys$5;
|
|
2077
|
-
var isObject$
|
|
2078
|
-
var hasOwn$
|
|
2077
|
+
var isObject$e = isObject$l;
|
|
2078
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
2079
2079
|
var defineProperty$5 = objectDefineProperty.f;
|
|
2080
2080
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
2081
2081
|
var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
|
|
2082
|
-
var isExtensible = objectIsExtensible;
|
|
2082
|
+
var isExtensible$1 = objectIsExtensible;
|
|
2083
2083
|
var uid = uid$3;
|
|
2084
|
-
var 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$
|
|
2100
|
-
if (!hasOwn$
|
|
2099
|
+
if (!isObject$e(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
|
-
if (!isExtensible(it)) return 'F';
|
|
2102
|
+
if (!isExtensible$1(it)) return 'F';
|
|
2103
2103
|
// not necessary to add metadata
|
|
2104
2104
|
if (!create) return 'E';
|
|
2105
2105
|
// add missing metadata
|
|
@@ -2108,10 +2108,10 @@ var fastKey = function (it, create) {
|
|
|
2108
2108
|
} return it[METADATA].objectID;
|
|
2109
2109
|
};
|
|
2110
2110
|
|
|
2111
|
-
var getWeakData = function (it, create) {
|
|
2112
|
-
if (!hasOwn$
|
|
2111
|
+
var getWeakData$1 = function (it, create) {
|
|
2112
|
+
if (!hasOwn$8(it, METADATA)) {
|
|
2113
2113
|
// can't set metadata to uncaught frozen object
|
|
2114
|
-
if (!isExtensible(it)) return true;
|
|
2114
|
+
if (!isExtensible$1(it)) return true;
|
|
2115
2115
|
// not necessary to add metadata
|
|
2116
2116
|
if (!create) return false;
|
|
2117
2117
|
// add missing 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$
|
|
2125
|
-
if (FREEZING$
|
|
2124
|
+
var onFreeze$2 = function (it) {
|
|
2125
|
+
if (FREEZING$2 && REQUIRED && isExtensible$1(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$
|
|
2133
|
+
var splice = uncurryThis$q([].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
|
-
$$
|
|
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$
|
|
2158
|
+
getWeakData: getWeakData$1,
|
|
2159
|
+
onFreeze: onFreeze$2
|
|
2160
2160
|
};
|
|
2161
2161
|
|
|
2162
2162
|
hiddenKeys$1[METADATA] = true;
|
|
2163
2163
|
|
|
2164
|
-
var $$
|
|
2165
|
-
var isObject$
|
|
2166
|
-
var onFreeze = internalMetadata.exports.onFreeze;
|
|
2167
|
-
var FREEZING = freezing;
|
|
2168
|
-
var fails$
|
|
2164
|
+
var $$n = _export;
|
|
2165
|
+
var isObject$d = isObject$l;
|
|
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$
|
|
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
|
-
$$
|
|
2176
|
+
$$n({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2, sham: !FREEZING$1 }, {
|
|
2177
2177
|
seal: function seal(it) {
|
|
2178
|
-
return $seal && isObject$
|
|
2178
|
+
return $seal && isObject$d(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$
|
|
2194
|
-
var isCallable$
|
|
2193
|
+
var global$z = global$V;
|
|
2194
|
+
var isCallable$b = isCallable$l;
|
|
2195
2195
|
|
|
2196
|
-
var String$3 = global$
|
|
2197
|
-
var TypeError$c = global$
|
|
2196
|
+
var String$3 = global$z.String;
|
|
2197
|
+
var TypeError$c = global$z.TypeError;
|
|
2198
2198
|
|
|
2199
2199
|
var aPossiblePrototype$1 = function (argument) {
|
|
2200
|
-
if (typeof argument == 'object' || isCallable$
|
|
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$
|
|
2207
|
-
var anObject$
|
|
2206
|
+
var uncurryThis$p = 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$
|
|
2220
|
+
setter = uncurryThis$p(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$
|
|
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$
|
|
2234
|
-
var isObject$
|
|
2233
|
+
var isCallable$a = isCallable$l;
|
|
2234
|
+
var isObject$c = isObject$l;
|
|
2235
2235
|
var setPrototypeOf$3 = objectSetPrototypeOf;
|
|
2236
2236
|
|
|
2237
2237
|
// makes subclassing work correct for wrapped built-ins
|
|
2238
|
-
var inheritIfRequired$
|
|
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$
|
|
2244
|
+
isCallable$a(NewTarget = dummy.constructor) &&
|
|
2245
2245
|
NewTarget !== Wrapper &&
|
|
2246
|
-
isObject$
|
|
2246
|
+
isObject$c(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$
|
|
2261
|
+
var global$y = global$V;
|
|
2262
2262
|
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
2263
|
-
var isCallable$
|
|
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$
|
|
2268
|
+
var Object$2 = global$y.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$
|
|
2289
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
|
|
2290
2290
|
};
|
|
2291
2291
|
|
|
2292
|
-
var global$
|
|
2292
|
+
var global$x = global$V;
|
|
2293
2293
|
var classof$6 = classof$7;
|
|
2294
2294
|
|
|
2295
|
-
var String$2 = global$
|
|
2295
|
+
var String$2 = global$x.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$
|
|
2308
|
+
var isObject$b = isObject$l;
|
|
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$
|
|
2314
|
+
if (isObject$b(options) && 'cause' in options) {
|
|
2315
2315
|
createNonEnumerableProperty$4(O, 'cause', options.cause);
|
|
2316
2316
|
}
|
|
2317
2317
|
};
|
|
2318
2318
|
|
|
2319
|
-
var uncurryThis$
|
|
2319
|
+
var uncurryThis$o = functionUncurryThis;
|
|
2320
2320
|
|
|
2321
|
-
var replace$7 = uncurryThis$
|
|
2321
|
+
var replace$7 = uncurryThis$o(''.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$
|
|
2333
|
+
var fails$l = fails$x;
|
|
2334
2334
|
var createPropertyDescriptor$2 = createPropertyDescriptor$6;
|
|
2335
2335
|
|
|
2336
|
-
var errorStackInstallable = !fails$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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 $$
|
|
2406
|
-
var global$
|
|
2405
|
+
var $$m = _export;
|
|
2406
|
+
var global$w = global$V;
|
|
2407
2407
|
var apply$2 = functionApply;
|
|
2408
2408
|
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
2409
2409
|
|
|
2410
2410
|
var WEB_ASSEMBLY = 'WebAssembly';
|
|
2411
|
-
var WebAssembly = global$
|
|
2411
|
+
var WebAssembly = global$w[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
|
-
$$
|
|
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
|
-
$$
|
|
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$
|
|
2471
|
-
var fails$
|
|
2472
|
-
var isCallable$
|
|
2470
|
+
var uncurryThis$n = 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$
|
|
2481
|
+
var exec$5 = uncurryThis$n(constructorRegExp.exec);
|
|
2482
2482
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
2483
2483
|
|
|
2484
2484
|
var isConstructorModern = function isConstructor(argument) {
|
|
2485
|
-
if (!isCallable$
|
|
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$
|
|
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$
|
|
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$
|
|
2523
|
+
var global$v = global$V;
|
|
2524
2524
|
var isArray$8 = isArray$9;
|
|
2525
2525
|
var isConstructor$2 = isConstructor$3;
|
|
2526
|
-
var isObject$
|
|
2526
|
+
var isObject$a = isObject$l;
|
|
2527
2527
|
var wellKnownSymbol$f = wellKnownSymbol$j;
|
|
2528
2528
|
|
|
2529
2529
|
var SPECIES$4 = wellKnownSymbol$f('species');
|
|
2530
|
-
var Array$3 = global$
|
|
2530
|
+
var Array$3 = global$v.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$
|
|
2540
|
+
else if (isObject$a(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$
|
|
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$
|
|
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 $$
|
|
2576
|
-
var global$
|
|
2577
|
-
var fails$
|
|
2575
|
+
var $$l = _export;
|
|
2576
|
+
var global$u = global$V;
|
|
2577
|
+
var fails$i = fails$x;
|
|
2578
2578
|
var isArray$7 = isArray$9;
|
|
2579
|
-
var isObject$
|
|
2579
|
+
var isObject$9 = isObject$l;
|
|
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$
|
|
2591
|
+
var TypeError$b = global$u.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$
|
|
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$
|
|
2605
|
+
if (!isObject$9(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
|
-
$$
|
|
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$
|
|
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$
|
|
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$
|
|
2725
|
+
var uncurryThis$m = functionUncurryThis;
|
|
2726
2726
|
var aCallable$5 = aCallable$7;
|
|
2727
2727
|
var NATIVE_BIND = functionBindNative;
|
|
2728
2728
|
|
|
2729
|
-
var bind$b = uncurryThis$
|
|
2729
|
+
var bind$b = uncurryThis$m(uncurryThis$m.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$
|
|
2740
|
+
var uncurryThis$l = 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$
|
|
2746
|
+
var push$6 = uncurryThis$l([].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$
|
|
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$
|
|
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$
|
|
2835
|
+
var global$t = global$V;
|
|
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$
|
|
2852
|
+
handlePrototype$1(global$t[COLLECTION_NAME$1] && global$t[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 $$
|
|
2868
|
+
var $$k = _export;
|
|
2869
2869
|
var toObject$5 = toObject$9;
|
|
2870
2870
|
var nativeKeys = objectKeys$3;
|
|
2871
|
-
var fails$
|
|
2871
|
+
var fails$g = fails$x;
|
|
2872
2872
|
|
|
2873
|
-
var FAILS_ON_PRIMITIVES = fails$
|
|
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
|
-
$$
|
|
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$
|
|
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$
|
|
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$
|
|
2900
|
-
var global$
|
|
2899
|
+
var fails$f = fails$x;
|
|
2900
|
+
var global$s = global$V;
|
|
2901
2901
|
|
|
2902
2902
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
2903
|
-
var $RegExp$2 = global$
|
|
2903
|
+
var $RegExp$2 = global$s.RegExp;
|
|
2904
2904
|
|
|
2905
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
3042
|
-
var global$
|
|
3041
|
+
var fails$e = fails$x;
|
|
3042
|
+
var global$r = global$V;
|
|
3043
3043
|
|
|
3044
3044
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3045
|
-
var $RegExp$1 = global$
|
|
3045
|
+
var $RegExp$1 = global$r.RegExp;
|
|
3046
3046
|
|
|
3047
|
-
var regexpUnsupportedDotAll = fails$
|
|
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$
|
|
3053
|
-
var global$
|
|
3052
|
+
var fails$d = fails$x;
|
|
3053
|
+
var global$q = global$V;
|
|
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$
|
|
3056
|
+
var $RegExp = global$q.RegExp;
|
|
3057
3057
|
|
|
3058
|
-
var regexpUnsupportedNcg = fails$
|
|
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$
|
|
3067
|
+
var uncurryThis$k = 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$
|
|
3081
|
-
var indexOf = uncurryThis$
|
|
3082
|
-
var replace$6 = uncurryThis$
|
|
3083
|
-
var stringSlice$3 = uncurryThis$
|
|
3080
|
+
var charAt$5 = uncurryThis$k(''.charAt);
|
|
3081
|
+
var indexOf = uncurryThis$k(''.indexOf);
|
|
3082
|
+
var replace$6 = uncurryThis$k(''.replace);
|
|
3083
|
+
var stringSlice$3 = uncurryThis$k(''.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 $$
|
|
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
|
-
$$
|
|
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 $$
|
|
3193
|
-
var global$
|
|
3192
|
+
var $$i = _export;
|
|
3193
|
+
var global$p = global$V;
|
|
3194
3194
|
var call$8 = functionCall;
|
|
3195
|
-
var uncurryThis$
|
|
3196
|
-
var isCallable$
|
|
3197
|
-
var isObject$
|
|
3195
|
+
var uncurryThis$j = functionUncurryThis;
|
|
3196
|
+
var isCallable$7 = isCallable$l;
|
|
3197
|
+
var isObject$8 = isObject$l;
|
|
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$
|
|
3210
|
-
var un$Test = uncurryThis$
|
|
3209
|
+
var Error$1 = global$p.Error;
|
|
3210
|
+
var un$Test = uncurryThis$j(/./.test);
|
|
3211
3211
|
|
|
3212
3212
|
// `RegExp.prototype.test` method
|
|
3213
3213
|
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
3214
|
-
$$
|
|
3214
|
+
$$i({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
3215
3215
|
test: function (str) {
|
|
3216
3216
|
var exec = this.exec;
|
|
3217
|
-
if (!isCallable$
|
|
3217
|
+
if (!isCallable$7(exec)) return un$Test(this, str);
|
|
3218
3218
|
var result = call$8(exec, this, str);
|
|
3219
|
-
if (result !== null && !isObject$
|
|
3219
|
+
if (result !== null && !isObject$8(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$
|
|
3230
|
+
var uncurryThis$i = 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$
|
|
3235
|
+
var replace$5 = uncurryThis$i(''.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$
|
|
3263
|
-
var fails$
|
|
3264
|
-
var uncurryThis$
|
|
3262
|
+
var global$o = global$V;
|
|
3263
|
+
var fails$c = fails$x;
|
|
3264
|
+
var uncurryThis$h = 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$
|
|
3270
|
-
var Symbol$1 = global$
|
|
3269
|
+
var $parseInt$1 = global$o.parseInt;
|
|
3270
|
+
var Symbol$1 = global$o.Symbol;
|
|
3271
3271
|
var ITERATOR$8 = Symbol$1 && Symbol$1.iterator;
|
|
3272
3272
|
var hex = /^[+-]?0x/i;
|
|
3273
|
-
var exec$3 = uncurryThis$
|
|
3273
|
+
var exec$3 = uncurryThis$h(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$
|
|
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 $$
|
|
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
|
-
$$
|
|
3290
|
+
$$h({ global: true, forced: parseInt != $parseInt }, {
|
|
3291
3291
|
parseInt: $parseInt
|
|
3292
3292
|
});
|
|
3293
3293
|
|
|
3294
|
-
var uncurryThis$
|
|
3294
|
+
var uncurryThis$g = functionUncurryThis;
|
|
3295
3295
|
|
|
3296
3296
|
// `thisNumberValue` abstract operation
|
|
3297
3297
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
3298
|
-
var thisNumberValue$1 = uncurryThis$
|
|
3298
|
+
var thisNumberValue$1 = uncurryThis$g(1.0.valueOf);
|
|
3299
3299
|
|
|
3300
3300
|
var DESCRIPTORS$6 = descriptors$1;
|
|
3301
|
-
var global$
|
|
3302
|
-
var uncurryThis$
|
|
3303
|
-
var isForced$
|
|
3304
|
-
var redefine$
|
|
3305
|
-
var hasOwn$
|
|
3306
|
-
var inheritIfRequired = inheritIfRequired$
|
|
3301
|
+
var global$n = global$V;
|
|
3302
|
+
var uncurryThis$f = 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$
|
|
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$
|
|
3318
|
+
var NativeNumber = global$n[NUMBER];
|
|
3319
3319
|
var NumberPrototype = NativeNumber.prototype;
|
|
3320
|
-
var TypeError$a = global$
|
|
3321
|
-
var arraySlice$4 = uncurryThis$
|
|
3322
|
-
var charCodeAt$3 = uncurryThis$
|
|
3320
|
+
var TypeError$a = global$n.TypeError;
|
|
3321
|
+
var arraySlice$4 = uncurryThis$f(''.slice);
|
|
3322
|
+
var charCodeAt$3 = uncurryThis$f(''.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$
|
|
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$
|
|
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$
|
|
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$
|
|
3385
|
+
redefine$8(global$n, 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 $$
|
|
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
|
-
$$
|
|
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 $$
|
|
3618
|
-
var uncurryThis$
|
|
3617
|
+
var $$f = _export;
|
|
3618
|
+
var uncurryThis$e = 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$
|
|
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$
|
|
3633
|
-
var push$5 = uncurryThis$
|
|
3632
|
+
var un$Sort = uncurryThis$e(test.sort);
|
|
3633
|
+
var push$5 = uncurryThis$e(test.push);
|
|
3634
3634
|
|
|
3635
3635
|
// IE8-
|
|
3636
|
-
var FAILS_ON_UNDEFINED = fails$
|
|
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$
|
|
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$
|
|
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
|
-
$$
|
|
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 $$
|
|
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
|
-
$$
|
|
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 $$
|
|
3738
|
-
var uncurryThis$
|
|
3737
|
+
var $$d = _export;
|
|
3738
|
+
var uncurryThis$d = 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$
|
|
3743
|
+
var un$Join = uncurryThis$d([].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
|
-
$$
|
|
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$
|
|
5173
|
+
var global$m = global$V;
|
|
5174
5174
|
|
|
5175
|
-
var nativePromiseConstructor = global$
|
|
5175
|
+
var nativePromiseConstructor = global$m.Promise;
|
|
5176
5176
|
|
|
5177
|
-
var redefine$
|
|
5177
|
+
var redefine$7 = redefine$b.exports;
|
|
5178
5178
|
|
|
5179
|
-
var redefineAll$
|
|
5180
|
-
for (var key in src) redefine$
|
|
5179
|
+
var redefineAll$4 = 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$
|
|
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$
|
|
5190
|
+
var setToStringTag$6 = function (target, TAG, STATIC) {
|
|
5191
5191
|
if (target && !STATIC) target = target.prototype;
|
|
5192
|
-
if (target && !hasOwn$
|
|
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$
|
|
5216
|
+
var global$l = global$V;
|
|
5217
5217
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
5218
5218
|
|
|
5219
|
-
var TypeError$9 = global$
|
|
5219
|
+
var TypeError$9 = global$l.TypeError;
|
|
5220
5220
|
|
|
5221
|
-
var anInstance$
|
|
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$
|
|
5252
|
+
var global$k = global$V;
|
|
5253
5253
|
var call$7 = functionCall;
|
|
5254
5254
|
var aCallable$3 = aCallable$7;
|
|
5255
|
-
var anObject$
|
|
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$
|
|
5259
|
+
var TypeError$8 = global$k.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$
|
|
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$
|
|
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$
|
|
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$
|
|
5287
|
+
anObject$7(innerResult);
|
|
5288
5288
|
return value;
|
|
5289
5289
|
};
|
|
5290
5290
|
|
|
5291
|
-
var global$
|
|
5291
|
+
var global$j = global$V;
|
|
5292
5292
|
var bind$9 = functionBindContext;
|
|
5293
5293
|
var call$5 = functionCall;
|
|
5294
|
-
var anObject$
|
|
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$
|
|
5303
|
+
var TypeError$7 = global$j.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$
|
|
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$
|
|
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$
|
|
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$
|
|
5397
|
+
var global$i = global$V;
|
|
5398
5398
|
var isConstructor$1 = isConstructor$3;
|
|
5399
5399
|
var tryToString = tryToString$4;
|
|
5400
5400
|
|
|
5401
|
-
var TypeError$6 = global$
|
|
5401
|
+
var TypeError$6 = global$i.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$
|
|
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$
|
|
5418
|
+
var C = anObject$5(O).constructor;
|
|
5419
5419
|
var S;
|
|
5420
|
-
return C === undefined || (S = anObject$
|
|
5420
|
+
return C === undefined || (S = anObject$5(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
|
|
5421
5421
|
};
|
|
5422
5422
|
|
|
5423
|
-
var uncurryThis$
|
|
5423
|
+
var uncurryThis$c = functionUncurryThis;
|
|
5424
5424
|
|
|
5425
|
-
var arraySlice$2 = uncurryThis$
|
|
5425
|
+
var arraySlice$2 = uncurryThis$c([].slice);
|
|
5426
5426
|
|
|
5427
|
-
var global$
|
|
5427
|
+
var global$h = global$V;
|
|
5428
5428
|
|
|
5429
|
-
var TypeError$5 = global$
|
|
5429
|
+
var TypeError$5 = global$h.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$
|
|
5441
|
+
var global$g = global$V;
|
|
5442
5442
|
|
|
5443
|
-
var engineIsNode = classof$1(global$
|
|
5443
|
+
var engineIsNode = classof$1(global$g.process) == 'process';
|
|
5444
5444
|
|
|
5445
|
-
var global$
|
|
5445
|
+
var global$f = global$V;
|
|
5446
5446
|
var apply$1 = functionApply;
|
|
5447
5447
|
var bind$8 = functionBindContext;
|
|
5448
|
-
var isCallable$
|
|
5449
|
-
var hasOwn$
|
|
5450
|
-
var fails$
|
|
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$
|
|
5459
|
-
var clear = global$
|
|
5460
|
-
var process$3 = global$
|
|
5461
|
-
var Dispatch = global$
|
|
5462
|
-
var Function$1 = global$
|
|
5463
|
-
var MessageChannel = global$
|
|
5464
|
-
var String$1 = global$
|
|
5458
|
+
var set = global$f.setImmediate;
|
|
5459
|
+
var clear = global$f.clearImmediate;
|
|
5460
|
+
var process$3 = global$f.process;
|
|
5461
|
+
var Dispatch = global$f.Dispatch;
|
|
5462
|
+
var Function$1 = global$f.Function;
|
|
5463
|
+
var MessageChannel = global$f.MessageChannel;
|
|
5464
|
+
var String$1 = global$f.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$
|
|
5472
|
+
location = global$f.location;
|
|
5473
5473
|
} catch (error) { /* empty */ }
|
|
5474
5474
|
|
|
5475
5475
|
var run = function (id) {
|
|
5476
|
-
if (hasOwn$
|
|
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$
|
|
5495
|
+
global$f.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$
|
|
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$
|
|
5534
|
-
isCallable$
|
|
5535
|
-
!global$
|
|
5533
|
+
global$f.addEventListener &&
|
|
5534
|
+
isCallable$6(global$f.postMessage) &&
|
|
5535
|
+
!global$f.importScripts &&
|
|
5536
5536
|
location && location.protocol !== 'file:' &&
|
|
5537
|
-
!fails$
|
|
5537
|
+
!fails$9(post)
|
|
5538
5538
|
) {
|
|
5539
5539
|
defer = post;
|
|
5540
|
-
global$
|
|
5540
|
+
global$f.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$
|
|
5563
|
+
var global$e = global$V;
|
|
5564
5564
|
|
|
5565
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$
|
|
5565
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$e.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$
|
|
5571
|
+
var global$d = global$V;
|
|
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$
|
|
5581
|
-
var document$2 = global$
|
|
5582
|
-
var process$2 = global$
|
|
5583
|
-
var Promise$1 = global$
|
|
5580
|
+
var MutationObserver = global$d.MutationObserver || global$d.WebKitMutationObserver;
|
|
5581
|
+
var document$2 = global$d.document;
|
|
5582
|
+
var process$2 = global$d.process;
|
|
5583
|
+
var Promise$1 = global$d.Promise;
|
|
5584
5584
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
5585
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$
|
|
5585
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$d, '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$
|
|
5641
|
+
macrotask = bind$7(macrotask, global$d);
|
|
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$
|
|
5679
|
-
var isObject$
|
|
5678
|
+
var anObject$4 = anObject$f;
|
|
5679
|
+
var isObject$7 = isObject$l;
|
|
5680
5680
|
var newPromiseCapability$1 = newPromiseCapability$2;
|
|
5681
5681
|
|
|
5682
5682
|
var promiseResolve$1 = function (C, x) {
|
|
5683
|
-
anObject$
|
|
5684
|
-
if (isObject$
|
|
5683
|
+
anObject$4(C);
|
|
5684
|
+
if (isObject$7(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$
|
|
5691
|
+
var global$c = global$V;
|
|
5692
5692
|
|
|
5693
5693
|
var hostReportErrors$1 = function (a, b) {
|
|
5694
|
-
var console = global$
|
|
5694
|
+
var console = global$c.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 $$
|
|
5735
|
-
var global$
|
|
5734
|
+
var $$c = _export;
|
|
5735
|
+
var global$b = global$V;
|
|
5736
5736
|
var getBuiltIn$2 = getBuiltIn$a;
|
|
5737
5737
|
var call$4 = functionCall;
|
|
5738
5738
|
var NativePromise = nativePromiseConstructor;
|
|
5739
|
-
var redefine$
|
|
5740
|
-
var redefineAll$
|
|
5739
|
+
var redefine$6 = redefine$b.exports;
|
|
5740
|
+
var redefineAll$3 = redefineAll$4;
|
|
5741
5741
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
5742
|
-
var setToStringTag$
|
|
5742
|
+
var setToStringTag$5 = setToStringTag$6;
|
|
5743
5743
|
var setSpecies = setSpecies$1;
|
|
5744
5744
|
var aCallable$1 = aCallable$7;
|
|
5745
|
-
var isCallable$
|
|
5746
|
-
var isObject$
|
|
5747
|
-
var anInstance$
|
|
5745
|
+
var isCallable$5 = isCallable$l;
|
|
5746
|
+
var isObject$6 = isObject$l;
|
|
5747
|
+
var anInstance$4 = anInstance$5;
|
|
5748
5748
|
var inspectSource = inspectSource$4;
|
|
5749
|
-
var iterate = iterate$
|
|
5750
|
-
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$
|
|
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$
|
|
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$
|
|
5770
|
-
var setInternalState$
|
|
5771
|
-
var getInternalPromiseState = InternalStateModule$
|
|
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$
|
|
5776
|
-
var document$1 = global$
|
|
5777
|
-
var process$1 = global$
|
|
5775
|
+
var TypeError$4 = global$b.TypeError;
|
|
5776
|
+
var document$1 = global$b.document;
|
|
5777
|
+
var process$1 = global$b.process;
|
|
5778
5778
|
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
5779
5779
|
var newGenericPromiseCapability = newPromiseCapability;
|
|
5780
5780
|
|
|
5781
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
5782
|
-
var NATIVE_REJECTION_EVENT = isCallable$
|
|
5781
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$b.dispatchEvent);
|
|
5782
|
+
var NATIVE_REJECTION_EVENT = isCallable$5(global$b.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$
|
|
5825
|
+
return isObject$6(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$
|
|
5884
|
+
global$b.dispatchEvent(event);
|
|
5885
5885
|
} else event = { promise: promise, reason: reason };
|
|
5886
|
-
if (!NATIVE_REJECTION_EVENT && (handler = global$
|
|
5886
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global$b['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$
|
|
5891
|
+
call$4(task, global$b, 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$
|
|
5914
|
+
call$4(task, global$b, 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$
|
|
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$
|
|
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$
|
|
5994
|
+
Internal.prototype = redefineAll$3(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$
|
|
6003
|
-
reaction.fail = isCallable$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
-
$$
|
|
6059
|
+
$$c({ global: true, wrap: true, forced: FORCED$1 }, {
|
|
6060
6060
|
Promise: PromiseConstructor
|
|
6061
6061
|
});
|
|
6062
6062
|
|
|
6063
|
-
setToStringTag$
|
|
6063
|
+
setToStringTag$5(PromiseConstructor, PROMISE, false);
|
|
6064
6064
|
setSpecies(PROMISE);
|
|
6065
6065
|
|
|
6066
6066
|
PromiseWrapper = getBuiltIn$2(PROMISE);
|
|
6067
6067
|
|
|
6068
6068
|
// statics
|
|
6069
|
-
$$
|
|
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
|
-
$$
|
|
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
|
-
$$
|
|
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$
|
|
6243
|
+
var uncurryThis$b = functionUncurryThis;
|
|
6244
6244
|
var call$3 = functionCall;
|
|
6245
|
-
var fails$
|
|
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$
|
|
6256
|
+
var concat = uncurryThis$b([].concat);
|
|
6257
6257
|
|
|
6258
6258
|
// `Object.assign` method
|
|
6259
6259
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
6260
|
-
var objectAssign = !$assign || fails$
|
|
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 $$
|
|
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
|
-
$$
|
|
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$5 = isObject$l;
|
|
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$5(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 $$
|
|
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
|
-
$$
|
|
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
|
}
|
|
@@ -6382,7 +6400,7 @@ var _excluded = ["message", "status", "errors"],
|
|
|
6382
6400
|
_excluded2 = ["message", "status", "errors"],
|
|
6383
6401
|
_excluded3 = ["message", "status", "errors"],
|
|
6384
6402
|
_excluded4 = ["message", "status", "errors"],
|
|
6385
|
-
_excluded5 = ["status", "message", "otpmessage"];
|
|
6403
|
+
_excluded5 = ["status", "message", "otpmessage", "redirectUrl"];
|
|
6386
6404
|
var PREAUTHORIZATION_STATE_AUTHORIZED = 'authorized';
|
|
6387
6405
|
var ChargeResponses = {
|
|
6388
6406
|
authorized: function authorized(response) {
|
|
@@ -6433,8 +6451,9 @@ var ChargeResponses = {
|
|
|
6433
6451
|
response.status;
|
|
6434
6452
|
var message = response.message,
|
|
6435
6453
|
otpmessage = response.otpmessage,
|
|
6454
|
+
redirectUrl = response.redirectUrl,
|
|
6436
6455
|
cleanResponse = _objectWithoutProperties(response, _excluded5);
|
|
6437
|
-
var authMessage = otpmessage || message;
|
|
6456
|
+
var authMessage = redirectUrl || otpmessage || message;
|
|
6438
6457
|
return {
|
|
6439
6458
|
status: 'auth',
|
|
6440
6459
|
message: authMessage || 'Authentication required',
|
|
@@ -6478,7 +6497,7 @@ var ChargeResponses = {
|
|
|
6478
6497
|
return error;
|
|
6479
6498
|
},
|
|
6480
6499
|
parse: function parse(apiResponse) {
|
|
6481
|
-
var response = _typeof$1(apiResponse) === 'object' ? apiResponse : {};
|
|
6500
|
+
var response = apiResponse && _typeof$1(apiResponse) === 'object' ? apiResponse : {};
|
|
6482
6501
|
if (response.data && _typeof$1(response.data) === 'object') {
|
|
6483
6502
|
Object.assign(response, response.data);
|
|
6484
6503
|
delete response.data;
|
|
@@ -6504,83 +6523,150 @@ var ChargeResponses = {
|
|
|
6504
6523
|
if (response.status === 'incorrect-amount-sent' || response.message_type === 'INCORRECT_AMOUNT') {
|
|
6505
6524
|
return this.getCleanResponse(response, 'Incorrect amount sent');
|
|
6506
6525
|
}
|
|
6507
|
-
if (response.status
|
|
6526
|
+
if (['awaiting_registration_token', 'awaiting_ussd_confirmation'].includes(response.status)) {
|
|
6508
6527
|
return this.getCleanResponse(response);
|
|
6509
6528
|
}
|
|
6510
6529
|
if (response.auth && response.auth !== 'none') {
|
|
6511
6530
|
return this.auth(response);
|
|
6512
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
|
+
}
|
|
6513
6537
|
return this.error(response);
|
|
6514
6538
|
}
|
|
6515
6539
|
};
|
|
6516
6540
|
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
// eslint-disable-next-line consistent-return, import/prefer-default-export
|
|
6522
|
-
var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
|
|
6523
|
-
var channel = options.channel,
|
|
6524
|
-
paymentMethod = options.paymentMethod;
|
|
6525
|
-
var pusher;
|
|
6526
|
-
if (window && window.Pusher) {
|
|
6527
|
-
pusher = new window.Pusher(configToUse.pusherKey, {
|
|
6528
|
-
cluster: 'eu',
|
|
6529
|
-
disableStats: true
|
|
6530
|
-
});
|
|
6531
|
-
}
|
|
6532
|
-
var pusherUndefinedError = {
|
|
6541
|
+
// Frozen singletons: a consumer that mutates what it was handed cannot corrupt
|
|
6542
|
+
// the next call.
|
|
6543
|
+
var LISTEN_ERRORS = {
|
|
6544
|
+
unavailable: Object.freeze({
|
|
6533
6545
|
status: 'error',
|
|
6534
6546
|
message: 'We could not listen for charge response.'
|
|
6535
|
-
}
|
|
6536
|
-
|
|
6547
|
+
}),
|
|
6548
|
+
subscriptionFailed: Object.freeze({
|
|
6537
6549
|
status: 'error',
|
|
6538
6550
|
message: 'We could not listen for charge response. Use transaction.requery() to check the status.'
|
|
6551
|
+
})
|
|
6552
|
+
};
|
|
6553
|
+
|
|
6554
|
+
// Returns null so each listener can choose what to hand its caller back. The
|
|
6555
|
+
// `!window` half only guards window being declared and assigned undefined; with
|
|
6556
|
+
// window genuinely absent this throws, as it always has.
|
|
6557
|
+
var createPusherClient = function createPusherClient() {
|
|
6558
|
+
if (!window || !window.Pusher) {
|
|
6559
|
+
return null;
|
|
6560
|
+
}
|
|
6561
|
+
return new window.Pusher(configToUse.pusherKey, {
|
|
6562
|
+
cluster: 'eu',
|
|
6563
|
+
disableStats: true
|
|
6564
|
+
});
|
|
6565
|
+
};
|
|
6566
|
+
|
|
6567
|
+
// Analytics are logged before the consumer callback runs, so a throwing
|
|
6568
|
+
// callback cannot lose the event.
|
|
6569
|
+
var buildResponseHandler = function buildResponseHandler(_ref) {
|
|
6570
|
+
var context = _ref.context,
|
|
6571
|
+
paymentMethod = _ref.paymentMethod,
|
|
6572
|
+
callback = _ref.callback,
|
|
6573
|
+
teardown = _ref.teardown;
|
|
6574
|
+
return function (response) {
|
|
6575
|
+
var formattedResponse = ChargeResponses.parse(response);
|
|
6576
|
+
context.logAPIResponse(formattedResponse, paymentMethod);
|
|
6577
|
+
callback(formattedResponse, teardown);
|
|
6539
6578
|
};
|
|
6579
|
+
};
|
|
6580
|
+
|
|
6581
|
+
// The shared listening path for every channel and market. `context` carries
|
|
6582
|
+
// logAPIResponse and the isListening flag this path owns.
|
|
6583
|
+
// eslint-disable-next-line consistent-return
|
|
6584
|
+
var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
|
|
6585
|
+
var channel = options.channel,
|
|
6586
|
+
paymentMethod = options.paymentMethod;
|
|
6587
|
+
var pusher = createPusherClient();
|
|
6588
|
+
if (!pusher) {
|
|
6589
|
+
return callback(LISTEN_ERRORS.unavailable, noOp);
|
|
6590
|
+
}
|
|
6540
6591
|
var unsubscribeFromPusher = function unsubscribeFromPusher() {
|
|
6541
6592
|
pusher.unsubscribe(channel);
|
|
6542
6593
|
};
|
|
6543
|
-
if (!pusher) {
|
|
6544
|
-
return callback(pusherUndefinedError, noOp);
|
|
6545
|
-
}
|
|
6546
6594
|
var pusherSubscription = pusher.subscribe(channel);
|
|
6547
6595
|
pusherSubscription.bind('pusher:subscription_succeeded', function () {
|
|
6548
6596
|
context.isListening = true;
|
|
6549
6597
|
});
|
|
6550
6598
|
pusherSubscription.bind('pusher:subscription_error', function () {
|
|
6551
6599
|
context.isListening = false;
|
|
6552
|
-
callback(
|
|
6600
|
+
callback(LISTEN_ERRORS.subscriptionFailed, noOp);
|
|
6553
6601
|
});
|
|
6554
|
-
pusherSubscription.bind('response',
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
callback
|
|
6602
|
+
pusherSubscription.bind('response', buildResponseHandler({
|
|
6603
|
+
context: context,
|
|
6604
|
+
paymentMethod: paymentMethod,
|
|
6605
|
+
callback: callback,
|
|
6606
|
+
teardown: unsubscribeFromPusher
|
|
6607
|
+
}));
|
|
6608
|
+
};
|
|
6609
|
+
|
|
6610
|
+
// Dedicated listener for the Ghana mobile money USSD confirmation channel. Kept
|
|
6611
|
+
// separate because this flow needs an unsubscribe before any event arrives, and
|
|
6612
|
+
// must not write context.isListening: it runs alongside the main charge
|
|
6613
|
+
// subscription and the two would fight over one flag.
|
|
6614
|
+
var subscribeToConfirmationEvents = function subscribeToConfirmationEvents(options, context, callback) {
|
|
6615
|
+
var channel = options.channel,
|
|
6616
|
+
paymentMethod = options.paymentMethod;
|
|
6617
|
+
var pusher = createPusherClient();
|
|
6618
|
+
if (!pusher) {
|
|
6619
|
+
callback(LISTEN_ERRORS.unavailable, noOp);
|
|
6620
|
+
return noOp;
|
|
6621
|
+
}
|
|
6622
|
+
var hasUnsubscribed = false;
|
|
6623
|
+
var unsubscribe = function unsubscribe() {
|
|
6624
|
+
if (hasUnsubscribed) {
|
|
6625
|
+
return;
|
|
6626
|
+
}
|
|
6627
|
+
hasUnsubscribed = true;
|
|
6628
|
+
pusher.unsubscribe(channel);
|
|
6629
|
+
pusher.disconnect();
|
|
6630
|
+
};
|
|
6631
|
+
var pusherSubscription = pusher.subscribe(channel);
|
|
6632
|
+
// Deliberately does not tear down: a subscription_error can be transient, and
|
|
6633
|
+
// disconnecting stops pusher-js re-subscribing on recovery. The teardown handed
|
|
6634
|
+
// over stays live for a consumer that would rather give up.
|
|
6635
|
+
pusherSubscription.bind('pusher:subscription_error', function () {
|
|
6636
|
+
callback(LISTEN_ERRORS.subscriptionFailed, unsubscribe);
|
|
6558
6637
|
});
|
|
6638
|
+
pusherSubscription.bind('response', buildResponseHandler({
|
|
6639
|
+
context: context,
|
|
6640
|
+
paymentMethod: paymentMethod,
|
|
6641
|
+
callback: callback,
|
|
6642
|
+
teardown: unsubscribe
|
|
6643
|
+
}));
|
|
6644
|
+
return unsubscribe;
|
|
6559
6645
|
};
|
|
6560
6646
|
|
|
6561
|
-
var uncurryThis$
|
|
6647
|
+
var uncurryThis$a = functionUncurryThis;
|
|
6562
6648
|
var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
|
|
6563
|
-
var redefine$
|
|
6564
|
-
var anObject$
|
|
6649
|
+
var redefine$5 = redefine$b.exports;
|
|
6650
|
+
var anObject$3 = anObject$f;
|
|
6565
6651
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
6566
6652
|
var $toString$2 = toString$9;
|
|
6567
|
-
var fails$
|
|
6653
|
+
var fails$6 = fails$x;
|
|
6568
6654
|
var regExpFlags = regexpFlags$1;
|
|
6569
6655
|
|
|
6570
6656
|
var TO_STRING = 'toString';
|
|
6571
6657
|
var RegExpPrototype = RegExp.prototype;
|
|
6572
6658
|
var n$ToString = RegExpPrototype[TO_STRING];
|
|
6573
|
-
var getFlags = uncurryThis$
|
|
6659
|
+
var getFlags = uncurryThis$a(regExpFlags);
|
|
6574
6660
|
|
|
6575
|
-
var NOT_GENERIC = fails$
|
|
6661
|
+
var NOT_GENERIC = fails$6(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
6576
6662
|
// FF44- RegExp#toString has a wrong name
|
|
6577
6663
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME$2 && n$ToString.name != TO_STRING;
|
|
6578
6664
|
|
|
6579
6665
|
// `RegExp.prototype.toString` method
|
|
6580
6666
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
6581
6667
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
6582
|
-
redefine$
|
|
6583
|
-
var R = anObject$
|
|
6668
|
+
redefine$5(RegExp.prototype, TO_STRING, function toString() {
|
|
6669
|
+
var R = anObject$3(this);
|
|
6584
6670
|
var p = $toString$2(R.source);
|
|
6585
6671
|
var rf = R.flags;
|
|
6586
6672
|
var f = $toString$2(rf === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
|
|
@@ -6588,41 +6674,41 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
6588
6674
|
}, { unsafe: true });
|
|
6589
6675
|
}
|
|
6590
6676
|
|
|
6591
|
-
var fails$
|
|
6677
|
+
var fails$5 = fails$x;
|
|
6592
6678
|
|
|
6593
|
-
var correctPrototypeGetter = !fails$
|
|
6679
|
+
var correctPrototypeGetter = !fails$5(function () {
|
|
6594
6680
|
function F() { /* empty */ }
|
|
6595
6681
|
F.prototype.constructor = null;
|
|
6596
6682
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
6597
6683
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
6598
6684
|
});
|
|
6599
6685
|
|
|
6600
|
-
var global$
|
|
6601
|
-
var hasOwn$
|
|
6602
|
-
var isCallable$
|
|
6686
|
+
var global$a = global$V;
|
|
6687
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
6688
|
+
var isCallable$4 = isCallable$l;
|
|
6603
6689
|
var toObject$2 = toObject$9;
|
|
6604
6690
|
var sharedKey = sharedKey$3;
|
|
6605
6691
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
6606
6692
|
|
|
6607
6693
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
6608
|
-
var Object$1 = global$
|
|
6694
|
+
var Object$1 = global$a.Object;
|
|
6609
6695
|
var ObjectPrototype = Object$1.prototype;
|
|
6610
6696
|
|
|
6611
6697
|
// `Object.getPrototypeOf` method
|
|
6612
6698
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
6613
6699
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
|
|
6614
6700
|
var object = toObject$2(O);
|
|
6615
|
-
if (hasOwn$
|
|
6701
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
6616
6702
|
var constructor = object.constructor;
|
|
6617
|
-
if (isCallable$
|
|
6703
|
+
if (isCallable$4(constructor) && object instanceof constructor) {
|
|
6618
6704
|
return constructor.prototype;
|
|
6619
6705
|
} return object instanceof Object$1 ? ObjectPrototype : null;
|
|
6620
6706
|
};
|
|
6621
6707
|
|
|
6622
|
-
var fails$
|
|
6623
|
-
var isCallable$
|
|
6708
|
+
var fails$4 = fails$x;
|
|
6709
|
+
var isCallable$3 = isCallable$l;
|
|
6624
6710
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
6625
|
-
var redefine$
|
|
6711
|
+
var redefine$4 = redefine$b.exports;
|
|
6626
6712
|
var wellKnownSymbol$4 = wellKnownSymbol$j;
|
|
6627
6713
|
|
|
6628
6714
|
var ITERATOR$4 = wellKnownSymbol$4('iterator');
|
|
@@ -6643,7 +6729,7 @@ if ([].keys) {
|
|
|
6643
6729
|
}
|
|
6644
6730
|
}
|
|
6645
6731
|
|
|
6646
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$
|
|
6732
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$4(function () {
|
|
6647
6733
|
var test = {};
|
|
6648
6734
|
// FF44- legacy iterators case
|
|
6649
6735
|
return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
|
|
@@ -6653,8 +6739,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
6653
6739
|
|
|
6654
6740
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
6655
6741
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
6656
|
-
if (!isCallable$
|
|
6657
|
-
redefine$
|
|
6742
|
+
if (!isCallable$3(IteratorPrototype$2[ITERATOR$4])) {
|
|
6743
|
+
redefine$4(IteratorPrototype$2, ITERATOR$4, function () {
|
|
6658
6744
|
return this;
|
|
6659
6745
|
});
|
|
6660
6746
|
}
|
|
@@ -6667,7 +6753,7 @@ var iteratorsCore = {
|
|
|
6667
6753
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
6668
6754
|
var create$1 = objectCreate;
|
|
6669
6755
|
var createPropertyDescriptor$1 = createPropertyDescriptor$6;
|
|
6670
|
-
var setToStringTag$
|
|
6756
|
+
var setToStringTag$4 = setToStringTag$6;
|
|
6671
6757
|
var Iterators$2 = iterators;
|
|
6672
6758
|
|
|
6673
6759
|
var returnThis$1 = function () { return this; };
|
|
@@ -6675,21 +6761,21 @@ var returnThis$1 = function () { return this; };
|
|
|
6675
6761
|
var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
6676
6762
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
6677
6763
|
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
6678
|
-
setToStringTag$
|
|
6764
|
+
setToStringTag$4(IteratorConstructor, TO_STRING_TAG, false);
|
|
6679
6765
|
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
6680
6766
|
return IteratorConstructor;
|
|
6681
6767
|
};
|
|
6682
6768
|
|
|
6683
|
-
var $$
|
|
6769
|
+
var $$8 = _export;
|
|
6684
6770
|
var call$2 = functionCall;
|
|
6685
6771
|
var FunctionName = functionName;
|
|
6686
|
-
var isCallable$
|
|
6772
|
+
var isCallable$2 = isCallable$l;
|
|
6687
6773
|
var createIteratorConstructor$1 = createIteratorConstructor$2;
|
|
6688
6774
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
6689
6775
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
6690
|
-
var setToStringTag$
|
|
6776
|
+
var setToStringTag$3 = setToStringTag$6;
|
|
6691
6777
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
6692
|
-
var redefine$
|
|
6778
|
+
var redefine$3 = redefine$b.exports;
|
|
6693
6779
|
var wellKnownSymbol$3 = wellKnownSymbol$j;
|
|
6694
6780
|
var Iterators$1 = iterators;
|
|
6695
6781
|
var IteratorsCore = iteratorsCore;
|
|
@@ -6735,12 +6821,12 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6735
6821
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
6736
6822
|
if (setPrototypeOf) {
|
|
6737
6823
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
6738
|
-
} else if (!isCallable$
|
|
6739
|
-
redefine$
|
|
6824
|
+
} else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$3])) {
|
|
6825
|
+
redefine$3(CurrentIteratorPrototype, ITERATOR$3, returnThis);
|
|
6740
6826
|
}
|
|
6741
6827
|
}
|
|
6742
6828
|
// Set @@toStringTag to native iterators
|
|
6743
|
-
setToStringTag$
|
|
6829
|
+
setToStringTag$3(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
6744
6830
|
}
|
|
6745
6831
|
}
|
|
6746
6832
|
|
|
@@ -6763,14 +6849,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6763
6849
|
};
|
|
6764
6850
|
if (FORCED) for (KEY in methods) {
|
|
6765
6851
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
6766
|
-
redefine$
|
|
6852
|
+
redefine$3(IterablePrototype, KEY, methods[KEY]);
|
|
6767
6853
|
}
|
|
6768
|
-
} else $$
|
|
6854
|
+
} else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
6769
6855
|
}
|
|
6770
6856
|
|
|
6771
6857
|
// define iterator
|
|
6772
6858
|
if (IterablePrototype[ITERATOR$3] !== defaultIterator) {
|
|
6773
|
-
redefine$
|
|
6859
|
+
redefine$3(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
|
|
6774
6860
|
}
|
|
6775
6861
|
Iterators$1[NAME] = defaultIterator;
|
|
6776
6862
|
|
|
@@ -6780,14 +6866,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6780
6866
|
var toIndexedObject$1 = toIndexedObject$8;
|
|
6781
6867
|
var addToUnscopables$1 = addToUnscopables$3;
|
|
6782
6868
|
var Iterators = iterators;
|
|
6783
|
-
var InternalStateModule$
|
|
6869
|
+
var InternalStateModule$4 = internalState;
|
|
6784
6870
|
var defineProperty$1 = objectDefineProperty.f;
|
|
6785
6871
|
var defineIterator$1 = defineIterator$2;
|
|
6786
6872
|
var DESCRIPTORS$3 = descriptors$1;
|
|
6787
6873
|
|
|
6788
6874
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
6789
|
-
var setInternalState$
|
|
6790
|
-
var getInternalState$1 = InternalStateModule$
|
|
6875
|
+
var setInternalState$4 = InternalStateModule$4.set;
|
|
6876
|
+
var getInternalState$1 = InternalStateModule$4.getterFor(ARRAY_ITERATOR);
|
|
6791
6877
|
|
|
6792
6878
|
// `Array.prototype.entries` method
|
|
6793
6879
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -6800,7 +6886,7 @@ var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
|
|
|
6800
6886
|
// `CreateArrayIterator` internal method
|
|
6801
6887
|
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
6802
6888
|
var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
|
|
6803
|
-
setInternalState$
|
|
6889
|
+
setInternalState$4(this, {
|
|
6804
6890
|
type: ARRAY_ITERATOR,
|
|
6805
6891
|
target: toIndexedObject$1(iterated), // target
|
|
6806
6892
|
index: 0, // next index
|
|
@@ -6837,14 +6923,14 @@ if (DESCRIPTORS$3 && values.name !== 'values') try {
|
|
|
6837
6923
|
defineProperty$1(values, 'name', { value: 'values' });
|
|
6838
6924
|
} catch (error) { /* empty */ }
|
|
6839
6925
|
|
|
6840
|
-
var uncurryThis$
|
|
6926
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
6841
6927
|
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
6842
6928
|
var toString$2 = toString$9;
|
|
6843
6929
|
var requireObjectCoercible = requireObjectCoercible$4;
|
|
6844
6930
|
|
|
6845
|
-
var charAt$4 = uncurryThis$
|
|
6846
|
-
var charCodeAt$2 = uncurryThis$
|
|
6847
|
-
var stringSlice$2 = uncurryThis$
|
|
6931
|
+
var charAt$4 = uncurryThis$9(''.charAt);
|
|
6932
|
+
var charCodeAt$2 = uncurryThis$9(''.charCodeAt);
|
|
6933
|
+
var stringSlice$2 = uncurryThis$9(''.slice);
|
|
6848
6934
|
|
|
6849
6935
|
var createMethod$2 = function (CONVERT_TO_STRING) {
|
|
6850
6936
|
return function ($this, pos) {
|
|
@@ -6876,17 +6962,17 @@ var stringMultibyte = {
|
|
|
6876
6962
|
|
|
6877
6963
|
var charAt$3 = stringMultibyte.charAt;
|
|
6878
6964
|
var toString$1 = toString$9;
|
|
6879
|
-
var InternalStateModule$
|
|
6965
|
+
var InternalStateModule$3 = internalState;
|
|
6880
6966
|
var defineIterator = defineIterator$2;
|
|
6881
6967
|
|
|
6882
6968
|
var STRING_ITERATOR = 'String Iterator';
|
|
6883
|
-
var setInternalState$
|
|
6884
|
-
var getInternalState = InternalStateModule$
|
|
6969
|
+
var setInternalState$3 = InternalStateModule$3.set;
|
|
6970
|
+
var getInternalState = InternalStateModule$3.getterFor(STRING_ITERATOR);
|
|
6885
6971
|
|
|
6886
6972
|
// `String.prototype[@@iterator]` method
|
|
6887
6973
|
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
|
|
6888
6974
|
defineIterator(String, 'String', function (iterated) {
|
|
6889
|
-
setInternalState$
|
|
6975
|
+
setInternalState$3(this, {
|
|
6890
6976
|
type: STRING_ITERATOR,
|
|
6891
6977
|
string: toString$1(iterated),
|
|
6892
6978
|
index: 0
|
|
@@ -6904,7 +6990,7 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
6904
6990
|
return { value: point, done: false };
|
|
6905
6991
|
});
|
|
6906
6992
|
|
|
6907
|
-
var global$
|
|
6993
|
+
var global$9 = global$V;
|
|
6908
6994
|
var DOMIterables = domIterables;
|
|
6909
6995
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
6910
6996
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -6938,18 +7024,18 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
6938
7024
|
};
|
|
6939
7025
|
|
|
6940
7026
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
6941
|
-
handlePrototype(global$
|
|
7027
|
+
handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
6942
7028
|
}
|
|
6943
7029
|
|
|
6944
7030
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
6945
7031
|
|
|
6946
|
-
var fails$
|
|
7032
|
+
var fails$3 = fails$x;
|
|
6947
7033
|
var wellKnownSymbol$1 = wellKnownSymbol$j;
|
|
6948
7034
|
var IS_PURE = isPure;
|
|
6949
7035
|
|
|
6950
7036
|
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
6951
7037
|
|
|
6952
|
-
var nativeUrl = !fails$
|
|
7038
|
+
var nativeUrl = !fails$3(function () {
|
|
6953
7039
|
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
|
|
6954
7040
|
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
6955
7041
|
var searchParams = url.searchParams;
|
|
@@ -6978,19 +7064,19 @@ var nativeUrl = !fails$2(function () {
|
|
|
6978
7064
|
|| new URL('http://x', undefined).host !== 'x';
|
|
6979
7065
|
});
|
|
6980
7066
|
|
|
6981
|
-
var anObject$
|
|
7067
|
+
var anObject$2 = anObject$f;
|
|
6982
7068
|
var iteratorClose = iteratorClose$2;
|
|
6983
7069
|
|
|
6984
7070
|
// call something on iterator step with safe closing on error
|
|
6985
7071
|
var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
6986
7072
|
try {
|
|
6987
|
-
return ENTRIES ? fn(anObject$
|
|
7073
|
+
return ENTRIES ? fn(anObject$2(value)[0], value[1]) : fn(value);
|
|
6988
7074
|
} catch (error) {
|
|
6989
7075
|
iteratorClose(iterator, 'throw', error);
|
|
6990
7076
|
}
|
|
6991
7077
|
};
|
|
6992
7078
|
|
|
6993
|
-
var global$
|
|
7079
|
+
var global$8 = global$V;
|
|
6994
7080
|
var bind$5 = functionBindContext;
|
|
6995
7081
|
var call$1 = functionCall;
|
|
6996
7082
|
var toObject$1 = toObject$9;
|
|
@@ -7002,7 +7088,7 @@ var createProperty = createProperty$3;
|
|
|
7002
7088
|
var getIterator$1 = getIterator$3;
|
|
7003
7089
|
var getIteratorMethod$1 = getIteratorMethod$4;
|
|
7004
7090
|
|
|
7005
|
-
var Array$2 = global$
|
|
7091
|
+
var Array$2 = global$8.Array;
|
|
7006
7092
|
|
|
7007
7093
|
// `Array.from` method implementation
|
|
7008
7094
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -7038,8 +7124,8 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
7038
7124
|
};
|
|
7039
7125
|
|
|
7040
7126
|
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
7041
|
-
var global$
|
|
7042
|
-
var uncurryThis$
|
|
7127
|
+
var global$7 = global$V;
|
|
7128
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
7043
7129
|
|
|
7044
7130
|
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
7045
7131
|
var base = 36;
|
|
@@ -7055,16 +7141,16 @@ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
|
7055
7141
|
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
7056
7142
|
var baseMinusTMin = base - tMin;
|
|
7057
7143
|
|
|
7058
|
-
var RangeError = global$
|
|
7059
|
-
var exec$2 = uncurryThis$
|
|
7144
|
+
var RangeError = global$7.RangeError;
|
|
7145
|
+
var exec$2 = uncurryThis$8(regexSeparators.exec);
|
|
7060
7146
|
var floor$1 = Math.floor;
|
|
7061
7147
|
var fromCharCode = String.fromCharCode;
|
|
7062
|
-
var charCodeAt$1 = uncurryThis$
|
|
7063
|
-
var join$2 = uncurryThis$
|
|
7064
|
-
var push$4 = uncurryThis$
|
|
7065
|
-
var replace$4 = uncurryThis$
|
|
7066
|
-
var split$3 = uncurryThis$
|
|
7067
|
-
var toLowerCase$1 = uncurryThis$
|
|
7148
|
+
var charCodeAt$1 = uncurryThis$8(''.charCodeAt);
|
|
7149
|
+
var join$2 = uncurryThis$8([].join);
|
|
7150
|
+
var push$4 = uncurryThis$8([].push);
|
|
7151
|
+
var replace$4 = uncurryThis$8(''.replace);
|
|
7152
|
+
var split$3 = uncurryThis$8(''.split);
|
|
7153
|
+
var toLowerCase$1 = uncurryThis$8(''.toLowerCase);
|
|
7068
7154
|
|
|
7069
7155
|
/**
|
|
7070
7156
|
* Creates an array containing the numeric code points of each Unicode
|
|
@@ -7221,24 +7307,24 @@ var stringPunycodeToAscii = function (input) {
|
|
|
7221
7307
|
|
|
7222
7308
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
7223
7309
|
|
|
7224
|
-
var $$
|
|
7225
|
-
var global$
|
|
7310
|
+
var $$7 = _export;
|
|
7311
|
+
var global$6 = global$V;
|
|
7226
7312
|
var getBuiltIn$1 = getBuiltIn$a;
|
|
7227
7313
|
var call = functionCall;
|
|
7228
|
-
var uncurryThis$
|
|
7314
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
7229
7315
|
var USE_NATIVE_URL$1 = nativeUrl;
|
|
7230
|
-
var redefine$
|
|
7231
|
-
var redefineAll = redefineAll$
|
|
7232
|
-
var setToStringTag$
|
|
7316
|
+
var redefine$2 = redefine$b.exports;
|
|
7317
|
+
var redefineAll$2 = redefineAll$4;
|
|
7318
|
+
var setToStringTag$2 = setToStringTag$6;
|
|
7233
7319
|
var createIteratorConstructor = createIteratorConstructor$2;
|
|
7234
|
-
var InternalStateModule$
|
|
7235
|
-
var anInstance$
|
|
7236
|
-
var isCallable = isCallable$
|
|
7237
|
-
var hasOwn$
|
|
7320
|
+
var InternalStateModule$2 = internalState;
|
|
7321
|
+
var anInstance$3 = anInstance$5;
|
|
7322
|
+
var isCallable$1 = isCallable$l;
|
|
7323
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
7238
7324
|
var bind$4 = functionBindContext;
|
|
7239
7325
|
var classof = classof$7;
|
|
7240
|
-
var anObject = anObject$
|
|
7241
|
-
var isObject$
|
|
7326
|
+
var anObject$1 = anObject$f;
|
|
7327
|
+
var isObject$4 = isObject$l;
|
|
7242
7328
|
var $toString$1 = toString$9;
|
|
7243
7329
|
var create = objectCreate;
|
|
7244
7330
|
var createPropertyDescriptor = createPropertyDescriptor$6;
|
|
@@ -7251,27 +7337,27 @@ var arraySort = arraySort$1;
|
|
|
7251
7337
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
7252
7338
|
var URL_SEARCH_PARAMS = 'URLSearchParams';
|
|
7253
7339
|
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
|
7254
|
-
var setInternalState$
|
|
7255
|
-
var getInternalParamsState = InternalStateModule$
|
|
7256
|
-
var getInternalIteratorState = InternalStateModule$
|
|
7340
|
+
var setInternalState$2 = InternalStateModule$2.set;
|
|
7341
|
+
var getInternalParamsState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS);
|
|
7342
|
+
var getInternalIteratorState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
|
7257
7343
|
|
|
7258
7344
|
var n$Fetch = getBuiltIn$1('fetch');
|
|
7259
7345
|
var N$Request = getBuiltIn$1('Request');
|
|
7260
7346
|
var Headers = getBuiltIn$1('Headers');
|
|
7261
7347
|
var RequestPrototype = N$Request && N$Request.prototype;
|
|
7262
7348
|
var HeadersPrototype = Headers && Headers.prototype;
|
|
7263
|
-
var RegExp$1 = global$
|
|
7264
|
-
var TypeError$3 = global$
|
|
7265
|
-
var decodeURIComponent$1 = global$
|
|
7266
|
-
var encodeURIComponent$1 = global$
|
|
7267
|
-
var charAt$2 = uncurryThis$
|
|
7268
|
-
var join$1 = uncurryThis$
|
|
7269
|
-
var push$3 = uncurryThis$
|
|
7270
|
-
var replace$3 = uncurryThis$
|
|
7271
|
-
var shift$1 = uncurryThis$
|
|
7272
|
-
var splice = uncurryThis$
|
|
7273
|
-
var split$2 = uncurryThis$
|
|
7274
|
-
var stringSlice$1 = uncurryThis$
|
|
7349
|
+
var RegExp$1 = global$6.RegExp;
|
|
7350
|
+
var TypeError$3 = global$6.TypeError;
|
|
7351
|
+
var decodeURIComponent$1 = global$6.decodeURIComponent;
|
|
7352
|
+
var encodeURIComponent$1 = global$6.encodeURIComponent;
|
|
7353
|
+
var charAt$2 = uncurryThis$7(''.charAt);
|
|
7354
|
+
var join$1 = uncurryThis$7([].join);
|
|
7355
|
+
var push$3 = uncurryThis$7([].push);
|
|
7356
|
+
var replace$3 = uncurryThis$7(''.replace);
|
|
7357
|
+
var shift$1 = uncurryThis$7([].shift);
|
|
7358
|
+
var splice$1 = uncurryThis$7([].splice);
|
|
7359
|
+
var split$2 = uncurryThis$7(''.split);
|
|
7360
|
+
var stringSlice$1 = uncurryThis$7(''.slice);
|
|
7275
7361
|
|
|
7276
7362
|
var plus = /\+/g;
|
|
7277
7363
|
var sequences = Array(4);
|
|
@@ -7301,7 +7387,7 @@ var deserialize = function (it) {
|
|
|
7301
7387
|
}
|
|
7302
7388
|
};
|
|
7303
7389
|
|
|
7304
|
-
var find = /[!'()~]|%20/g;
|
|
7390
|
+
var find$1 = /[!'()~]|%20/g;
|
|
7305
7391
|
|
|
7306
7392
|
var replacements = {
|
|
7307
7393
|
'!': '%21',
|
|
@@ -7317,11 +7403,11 @@ var replacer = function (match) {
|
|
|
7317
7403
|
};
|
|
7318
7404
|
|
|
7319
7405
|
var serialize = function (it) {
|
|
7320
|
-
return replace$3(encodeURIComponent$1(it), find, replacer);
|
|
7406
|
+
return replace$3(encodeURIComponent$1(it), find$1, replacer);
|
|
7321
7407
|
};
|
|
7322
7408
|
|
|
7323
7409
|
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
|
7324
|
-
setInternalState$
|
|
7410
|
+
setInternalState$2(this, {
|
|
7325
7411
|
type: URL_SEARCH_PARAMS_ITERATOR,
|
|
7326
7412
|
iterator: getIterator(getInternalParamsState(params).entries),
|
|
7327
7413
|
kind: kind
|
|
@@ -7341,7 +7427,7 @@ var URLSearchParamsState = function (init) {
|
|
|
7341
7427
|
this.url = null;
|
|
7342
7428
|
|
|
7343
7429
|
if (init !== undefined) {
|
|
7344
|
-
if (isObject$
|
|
7430
|
+
if (isObject$4(init)) this.parseObject(init);
|
|
7345
7431
|
else this.parseQuery(typeof init == 'string' ? charAt$2(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init));
|
|
7346
7432
|
}
|
|
7347
7433
|
};
|
|
@@ -7360,7 +7446,7 @@ URLSearchParamsState.prototype = {
|
|
|
7360
7446
|
iterator = getIterator(object, iteratorMethod);
|
|
7361
7447
|
next = iterator.next;
|
|
7362
7448
|
while (!(step = call(next, iterator)).done) {
|
|
7363
|
-
entryIterator = getIterator(anObject(step.value));
|
|
7449
|
+
entryIterator = getIterator(anObject$1(step.value));
|
|
7364
7450
|
entryNext = entryIterator.next;
|
|
7365
7451
|
if (
|
|
7366
7452
|
(first = call(entryNext, entryIterator)).done ||
|
|
@@ -7369,7 +7455,7 @@ URLSearchParamsState.prototype = {
|
|
|
7369
7455
|
) throw TypeError$3('Expected sequence with length 2');
|
|
7370
7456
|
push$3(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
|
|
7371
7457
|
}
|
|
7372
|
-
} else for (var key in object) if (hasOwn$
|
|
7458
|
+
} else for (var key in object) if (hasOwn$2(object, key)) {
|
|
7373
7459
|
push$3(this.entries, { key: key, value: $toString$1(object[key]) });
|
|
7374
7460
|
}
|
|
7375
7461
|
},
|
|
@@ -7412,14 +7498,14 @@ URLSearchParamsState.prototype = {
|
|
|
7412
7498
|
// `URLSearchParams` constructor
|
|
7413
7499
|
// https://url.spec.whatwg.org/#interface-urlsearchparams
|
|
7414
7500
|
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
7415
|
-
anInstance$
|
|
7501
|
+
anInstance$3(this, URLSearchParamsPrototype);
|
|
7416
7502
|
var init = arguments.length > 0 ? arguments[0] : undefined;
|
|
7417
|
-
setInternalState$
|
|
7503
|
+
setInternalState$2(this, new URLSearchParamsState(init));
|
|
7418
7504
|
};
|
|
7419
7505
|
|
|
7420
7506
|
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
7421
7507
|
|
|
7422
|
-
redefineAll(URLSearchParamsPrototype, {
|
|
7508
|
+
redefineAll$2(URLSearchParamsPrototype, {
|
|
7423
7509
|
// `URLSearchParams.prototype.append` method
|
|
7424
7510
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
7425
7511
|
append: function append(name, value) {
|
|
@@ -7437,7 +7523,7 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7437
7523
|
var key = $toString$1(name);
|
|
7438
7524
|
var index = 0;
|
|
7439
7525
|
while (index < entries.length) {
|
|
7440
|
-
if (entries[index].key === key) splice(entries, index, 1);
|
|
7526
|
+
if (entries[index].key === key) splice$1(entries, index, 1);
|
|
7441
7527
|
else index++;
|
|
7442
7528
|
}
|
|
7443
7529
|
state.updateURL();
|
|
@@ -7493,7 +7579,7 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7493
7579
|
for (; index < entries.length; index++) {
|
|
7494
7580
|
entry = entries[index];
|
|
7495
7581
|
if (entry.key === key) {
|
|
7496
|
-
if (found) splice(entries, index--, 1);
|
|
7582
|
+
if (found) splice$1(entries, index--, 1);
|
|
7497
7583
|
else {
|
|
7498
7584
|
found = true;
|
|
7499
7585
|
entry.value = val;
|
|
@@ -7538,27 +7624,27 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7538
7624
|
}, { enumerable: true });
|
|
7539
7625
|
|
|
7540
7626
|
// `URLSearchParams.prototype[@@iterator]` method
|
|
7541
|
-
redefine$
|
|
7627
|
+
redefine$2(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
|
|
7542
7628
|
|
|
7543
7629
|
// `URLSearchParams.prototype.toString` method
|
|
7544
7630
|
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
7545
|
-
redefine$
|
|
7631
|
+
redefine$2(URLSearchParamsPrototype, 'toString', function toString() {
|
|
7546
7632
|
return getInternalParamsState(this).serialize();
|
|
7547
7633
|
}, { enumerable: true });
|
|
7548
7634
|
|
|
7549
|
-
setToStringTag$
|
|
7635
|
+
setToStringTag$2(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
7550
7636
|
|
|
7551
|
-
$$
|
|
7637
|
+
$$7({ global: true, forced: !USE_NATIVE_URL$1 }, {
|
|
7552
7638
|
URLSearchParams: URLSearchParamsConstructor
|
|
7553
7639
|
});
|
|
7554
7640
|
|
|
7555
7641
|
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
|
|
7556
|
-
if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
7557
|
-
var headersHas = uncurryThis$
|
|
7558
|
-
var headersSet = uncurryThis$
|
|
7642
|
+
if (!USE_NATIVE_URL$1 && isCallable$1(Headers)) {
|
|
7643
|
+
var headersHas = uncurryThis$7(HeadersPrototype.has);
|
|
7644
|
+
var headersSet = uncurryThis$7(HeadersPrototype.set);
|
|
7559
7645
|
|
|
7560
7646
|
var wrapRequestOptions = function (init) {
|
|
7561
|
-
if (isObject$
|
|
7647
|
+
if (isObject$4(init)) {
|
|
7562
7648
|
var body = init.body;
|
|
7563
7649
|
var headers;
|
|
7564
7650
|
if (classof(body) === URL_SEARCH_PARAMS) {
|
|
@@ -7574,24 +7660,24 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
7574
7660
|
} return init;
|
|
7575
7661
|
};
|
|
7576
7662
|
|
|
7577
|
-
if (isCallable(n$Fetch)) {
|
|
7578
|
-
$$
|
|
7663
|
+
if (isCallable$1(n$Fetch)) {
|
|
7664
|
+
$$7({ global: true, enumerable: true, forced: true }, {
|
|
7579
7665
|
fetch: function fetch(input /* , init */) {
|
|
7580
7666
|
return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
7581
7667
|
}
|
|
7582
7668
|
});
|
|
7583
7669
|
}
|
|
7584
7670
|
|
|
7585
|
-
if (isCallable(N$Request)) {
|
|
7671
|
+
if (isCallable$1(N$Request)) {
|
|
7586
7672
|
var RequestConstructor = function Request(input /* , init */) {
|
|
7587
|
-
anInstance$
|
|
7673
|
+
anInstance$3(this, RequestPrototype);
|
|
7588
7674
|
return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
7589
7675
|
};
|
|
7590
7676
|
|
|
7591
7677
|
RequestPrototype.constructor = RequestConstructor;
|
|
7592
7678
|
RequestConstructor.prototype = RequestPrototype;
|
|
7593
7679
|
|
|
7594
|
-
$$
|
|
7680
|
+
$$7({ global: true, forced: true }, {
|
|
7595
7681
|
Request: RequestConstructor
|
|
7596
7682
|
});
|
|
7597
7683
|
}
|
|
@@ -7604,49 +7690,49 @@ var web_urlSearchParams = {
|
|
|
7604
7690
|
|
|
7605
7691
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
7606
7692
|
|
|
7607
|
-
var $$
|
|
7693
|
+
var $$6 = _export;
|
|
7608
7694
|
var DESCRIPTORS$2 = descriptors$1;
|
|
7609
7695
|
var USE_NATIVE_URL = nativeUrl;
|
|
7610
|
-
var global$
|
|
7696
|
+
var global$5 = global$V;
|
|
7611
7697
|
var bind$3 = functionBindContext;
|
|
7612
|
-
var uncurryThis$
|
|
7698
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
7613
7699
|
var defineProperties = objectDefineProperties.f;
|
|
7614
|
-
var redefine = redefine$
|
|
7615
|
-
var anInstance = anInstance$
|
|
7616
|
-
var hasOwn = hasOwnProperty_1;
|
|
7700
|
+
var redefine$1 = redefine$b.exports;
|
|
7701
|
+
var anInstance$2 = anInstance$5;
|
|
7702
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
7617
7703
|
var assign$1 = objectAssign;
|
|
7618
7704
|
var arrayFrom = arrayFrom$1;
|
|
7619
7705
|
var arraySlice = arraySliceSimple;
|
|
7620
7706
|
var codeAt = stringMultibyte.codeAt;
|
|
7621
7707
|
var toASCII = stringPunycodeToAscii;
|
|
7622
7708
|
var $toString = toString$9;
|
|
7623
|
-
var setToStringTag = setToStringTag$
|
|
7709
|
+
var setToStringTag$1 = setToStringTag$6;
|
|
7624
7710
|
var validateArgumentsLength = validateArgumentsLength$3;
|
|
7625
7711
|
var URLSearchParamsModule = web_urlSearchParams;
|
|
7626
|
-
var InternalStateModule = internalState;
|
|
7712
|
+
var InternalStateModule$1 = internalState;
|
|
7627
7713
|
|
|
7628
|
-
var setInternalState = InternalStateModule.set;
|
|
7629
|
-
var getInternalURLState = InternalStateModule.getterFor('URL');
|
|
7714
|
+
var setInternalState$1 = InternalStateModule$1.set;
|
|
7715
|
+
var getInternalURLState = InternalStateModule$1.getterFor('URL');
|
|
7630
7716
|
var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
|
|
7631
7717
|
var getInternalSearchParamsState = URLSearchParamsModule.getState;
|
|
7632
7718
|
|
|
7633
|
-
var NativeURL = global$
|
|
7634
|
-
var TypeError$2 = global$
|
|
7635
|
-
var parseInt$1 = global$
|
|
7719
|
+
var NativeURL = global$5.URL;
|
|
7720
|
+
var TypeError$2 = global$5.TypeError;
|
|
7721
|
+
var parseInt$1 = global$5.parseInt;
|
|
7636
7722
|
var floor = Math.floor;
|
|
7637
7723
|
var pow = Math.pow;
|
|
7638
|
-
var charAt$1 = uncurryThis$
|
|
7639
|
-
var exec$1 = uncurryThis$
|
|
7640
|
-
var join = uncurryThis$
|
|
7641
|
-
var numberToString$1 = uncurryThis$
|
|
7642
|
-
var pop = uncurryThis$
|
|
7643
|
-
var push$2 = uncurryThis$
|
|
7644
|
-
var replace$2 = uncurryThis$
|
|
7645
|
-
var shift = uncurryThis$
|
|
7646
|
-
var split$1 = uncurryThis$
|
|
7647
|
-
var stringSlice = uncurryThis$
|
|
7648
|
-
var toLowerCase = uncurryThis$
|
|
7649
|
-
var unshift = uncurryThis$
|
|
7724
|
+
var charAt$1 = uncurryThis$6(''.charAt);
|
|
7725
|
+
var exec$1 = uncurryThis$6(/./.exec);
|
|
7726
|
+
var join = uncurryThis$6([].join);
|
|
7727
|
+
var numberToString$1 = uncurryThis$6(1.0.toString);
|
|
7728
|
+
var pop = uncurryThis$6([].pop);
|
|
7729
|
+
var push$2 = uncurryThis$6([].push);
|
|
7730
|
+
var replace$2 = uncurryThis$6(''.replace);
|
|
7731
|
+
var shift = uncurryThis$6([].shift);
|
|
7732
|
+
var split$1 = uncurryThis$6(''.split);
|
|
7733
|
+
var stringSlice = uncurryThis$6(''.slice);
|
|
7734
|
+
var toLowerCase = uncurryThis$6(''.toLowerCase);
|
|
7735
|
+
var unshift = uncurryThis$6([].unshift);
|
|
7650
7736
|
|
|
7651
7737
|
var INVALID_AUTHORITY = 'Invalid authority';
|
|
7652
7738
|
var INVALID_SCHEME = 'Invalid scheme';
|
|
@@ -7854,7 +7940,7 @@ var userinfoPercentEncodeSet = assign$1({}, pathPercentEncodeSet, {
|
|
|
7854
7940
|
|
|
7855
7941
|
var percentEncode = function (chr, set) {
|
|
7856
7942
|
var code = codeAt(chr, 0);
|
|
7857
|
-
return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
|
|
7943
|
+
return code > 0x20 && code < 0x7F && !hasOwn$1(set, chr) ? chr : encodeURIComponent(chr);
|
|
7858
7944
|
};
|
|
7859
7945
|
|
|
7860
7946
|
// https://url.spec.whatwg.org/#special-scheme
|
|
@@ -7985,7 +8071,7 @@ URLState.prototype = {
|
|
|
7985
8071
|
buffer += toLowerCase(chr);
|
|
7986
8072
|
} else if (chr == ':') {
|
|
7987
8073
|
if (stateOverride && (
|
|
7988
|
-
(url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
|
|
8074
|
+
(url.isSpecial() != hasOwn$1(specialSchemes, buffer)) ||
|
|
7989
8075
|
(buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
|
|
7990
8076
|
(url.scheme == 'file' && !url.host)
|
|
7991
8077
|
)) return;
|
|
@@ -8373,7 +8459,7 @@ URLState.prototype = {
|
|
|
8373
8459
|
},
|
|
8374
8460
|
// https://url.spec.whatwg.org/#is-special
|
|
8375
8461
|
isSpecial: function () {
|
|
8376
|
-
return hasOwn(specialSchemes, this.scheme);
|
|
8462
|
+
return hasOwn$1(specialSchemes, this.scheme);
|
|
8377
8463
|
},
|
|
8378
8464
|
// https://url.spec.whatwg.org/#shorten-a-urls-path
|
|
8379
8465
|
shortenPath: function () {
|
|
@@ -8542,9 +8628,9 @@ URLState.prototype = {
|
|
|
8542
8628
|
// `URL` constructor
|
|
8543
8629
|
// https://url.spec.whatwg.org/#url-class
|
|
8544
8630
|
var URLConstructor = function URL(url /* , base */) {
|
|
8545
|
-
var that = anInstance(this, URLPrototype);
|
|
8631
|
+
var that = anInstance$2(this, URLPrototype);
|
|
8546
8632
|
var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
|
|
8547
|
-
var state = setInternalState(that, new URLState(url, false, base));
|
|
8633
|
+
var state = setInternalState$1(that, new URLState(url, false, base));
|
|
8548
8634
|
if (!DESCRIPTORS$2) {
|
|
8549
8635
|
that.href = state.serialize();
|
|
8550
8636
|
that.origin = state.getOrigin();
|
|
@@ -8619,13 +8705,13 @@ if (DESCRIPTORS$2) {
|
|
|
8619
8705
|
|
|
8620
8706
|
// `URL.prototype.toJSON` method
|
|
8621
8707
|
// https://url.spec.whatwg.org/#dom-url-tojson
|
|
8622
|
-
redefine(URLPrototype, 'toJSON', function toJSON() {
|
|
8708
|
+
redefine$1(URLPrototype, 'toJSON', function toJSON() {
|
|
8623
8709
|
return getInternalURLState(this).serialize();
|
|
8624
8710
|
}, { enumerable: true });
|
|
8625
8711
|
|
|
8626
8712
|
// `URL.prototype.toString` method
|
|
8627
8713
|
// https://url.spec.whatwg.org/#URL-stringification-behavior
|
|
8628
|
-
redefine(URLPrototype, 'toString', function toString() {
|
|
8714
|
+
redefine$1(URLPrototype, 'toString', function toString() {
|
|
8629
8715
|
return getInternalURLState(this).serialize();
|
|
8630
8716
|
}, { enumerable: true });
|
|
8631
8717
|
|
|
@@ -8634,15 +8720,15 @@ if (NativeURL) {
|
|
|
8634
8720
|
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
|
|
8635
8721
|
// `URL.createObjectURL` method
|
|
8636
8722
|
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
|
8637
|
-
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
|
|
8723
|
+
if (nativeCreateObjectURL) redefine$1(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
|
|
8638
8724
|
// `URL.revokeObjectURL` method
|
|
8639
8725
|
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
|
|
8640
|
-
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
|
|
8726
|
+
if (nativeRevokeObjectURL) redefine$1(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
|
|
8641
8727
|
}
|
|
8642
8728
|
|
|
8643
|
-
setToStringTag(URLConstructor, 'URL');
|
|
8729
|
+
setToStringTag$1(URLConstructor, 'URL');
|
|
8644
8730
|
|
|
8645
|
-
$$
|
|
8731
|
+
$$6({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$2 }, {
|
|
8646
8732
|
URL: URLConstructor
|
|
8647
8733
|
});
|
|
8648
8734
|
|
|
@@ -8759,7 +8845,7 @@ function isNumber(val) {
|
|
|
8759
8845
|
* @param {Object} val The value to test
|
|
8760
8846
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
8761
8847
|
*/
|
|
8762
|
-
function isObject(val) {
|
|
8848
|
+
function isObject$3(val) {
|
|
8763
8849
|
return val !== null && typeof val === 'object';
|
|
8764
8850
|
}
|
|
8765
8851
|
|
|
@@ -8841,7 +8927,7 @@ function isFunction(val) {
|
|
|
8841
8927
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
8842
8928
|
*/
|
|
8843
8929
|
function isStream(val) {
|
|
8844
|
-
return isObject(val) && isFunction(val.pipe);
|
|
8930
|
+
return isObject$3(val) && isFunction(val.pipe);
|
|
8845
8931
|
}
|
|
8846
8932
|
|
|
8847
8933
|
/**
|
|
@@ -9145,7 +9231,7 @@ var utils$m = {
|
|
|
9145
9231
|
isArrayBufferView: isArrayBufferView,
|
|
9146
9232
|
isString: isString,
|
|
9147
9233
|
isNumber: isNumber,
|
|
9148
|
-
isObject: isObject,
|
|
9234
|
+
isObject: isObject$3,
|
|
9149
9235
|
isPlainObject: isPlainObject,
|
|
9150
9236
|
isEmptyObject: isEmptyObject,
|
|
9151
9237
|
isUndefined: isUndefined,
|
|
@@ -11928,13 +12014,13 @@ var lib = {
|
|
|
11928
12014
|
stringify: stringify
|
|
11929
12015
|
};
|
|
11930
12016
|
|
|
11931
|
-
var global$
|
|
12017
|
+
var global$4 = global$V;
|
|
11932
12018
|
var aCallable = aCallable$7;
|
|
11933
12019
|
var toObject = toObject$9;
|
|
11934
12020
|
var IndexedObject = indexedObject;
|
|
11935
12021
|
var lengthOfArrayLike = lengthOfArrayLike$8;
|
|
11936
12022
|
|
|
11937
|
-
var TypeError$1 = global$
|
|
12023
|
+
var TypeError$1 = global$4.TypeError;
|
|
11938
12024
|
|
|
11939
12025
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
11940
12026
|
var createMethod$1 = function (IS_RIGHT) {
|
|
@@ -11972,7 +12058,7 @@ var arrayReduce = {
|
|
|
11972
12058
|
right: createMethod$1(true)
|
|
11973
12059
|
};
|
|
11974
12060
|
|
|
11975
|
-
var $$
|
|
12061
|
+
var $$5 = _export;
|
|
11976
12062
|
var $reduce = arrayReduce.left;
|
|
11977
12063
|
var arrayMethodIsStrict = arrayMethodIsStrict$4;
|
|
11978
12064
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -11985,7 +12071,7 @@ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
|
11985
12071
|
|
|
11986
12072
|
// `Array.prototype.reduce` method
|
|
11987
12073
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
11988
|
-
$$
|
|
12074
|
+
$$5({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
11989
12075
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
11990
12076
|
var length = arguments.length;
|
|
11991
12077
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -12390,20 +12476,7 @@ var GooglePayAPI = {
|
|
|
12390
12476
|
return axiosInstance.post(url, urlEncodedParams, {
|
|
12391
12477
|
headers: headers
|
|
12392
12478
|
}).then(function (response) {
|
|
12393
|
-
|
|
12394
|
-
var raw = response.data;
|
|
12395
|
-
/*
|
|
12396
|
-
* A googlepay step-up is always 3DS, but the charge response can omit
|
|
12397
|
-
* the `auth` field the shared parser routes on — without it an auth
|
|
12398
|
-
* response falls through to error(). Default it so the response
|
|
12399
|
-
* normalizes through auth() exactly like card's.
|
|
12400
|
-
*/
|
|
12401
|
-
if ((raw === null || raw === void 0 ? void 0 : raw.status) === 'auth' && !raw.auth && !((_raw$data = raw.data) !== null && _raw$data !== void 0 && _raw$data.auth)) {
|
|
12402
|
-
return ChargeResponses.parse(_objectSpread2(_objectSpread2({}, raw), {}, {
|
|
12403
|
-
auth: '3DS'
|
|
12404
|
-
}));
|
|
12405
|
-
}
|
|
12406
|
-
return ChargeResponses.parse(raw);
|
|
12479
|
+
return ChargeResponses.parse(response.data);
|
|
12407
12480
|
});
|
|
12408
12481
|
}
|
|
12409
12482
|
};
|
|
@@ -12502,13 +12575,13 @@ var PayPalCharge = {
|
|
|
12502
12575
|
|
|
12503
12576
|
var DESCRIPTORS$1 = descriptors$1;
|
|
12504
12577
|
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
12505
|
-
var uncurryThis$
|
|
12578
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
12506
12579
|
var defineProperty = objectDefineProperty.f;
|
|
12507
12580
|
|
|
12508
12581
|
var FunctionPrototype = Function.prototype;
|
|
12509
|
-
var functionToString = uncurryThis$
|
|
12582
|
+
var functionToString = uncurryThis$5(FunctionPrototype.toString);
|
|
12510
12583
|
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
12511
|
-
var regExpExec = uncurryThis$
|
|
12584
|
+
var regExpExec = uncurryThis$5(nameRE.exec);
|
|
12512
12585
|
var NAME = 'name';
|
|
12513
12586
|
|
|
12514
12587
|
// Function instances `.name` property
|
|
@@ -17902,13 +17975,13 @@ function encrypt(toEncrypt) {
|
|
|
17902
17975
|
}
|
|
17903
17976
|
|
|
17904
17977
|
var DESCRIPTORS = descriptors$1;
|
|
17905
|
-
var uncurryThis$
|
|
17978
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
17906
17979
|
var objectKeys = objectKeys$3;
|
|
17907
17980
|
var toIndexedObject = toIndexedObject$8;
|
|
17908
17981
|
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
17909
17982
|
|
|
17910
|
-
var propertyIsEnumerable = uncurryThis$
|
|
17911
|
-
var push = uncurryThis$
|
|
17983
|
+
var propertyIsEnumerable = uncurryThis$4($propertyIsEnumerable);
|
|
17984
|
+
var push = uncurryThis$4([].push);
|
|
17912
17985
|
|
|
17913
17986
|
// `Object.{ entries, values }` methods implementation
|
|
17914
17987
|
var createMethod = function (TO_ENTRIES) {
|
|
@@ -17938,18 +18011,18 @@ var objectToArray = {
|
|
|
17938
18011
|
values: createMethod(false)
|
|
17939
18012
|
};
|
|
17940
18013
|
|
|
17941
|
-
var $$
|
|
18014
|
+
var $$4 = _export;
|
|
17942
18015
|
var $values = objectToArray.values;
|
|
17943
18016
|
|
|
17944
18017
|
// `Object.values` method
|
|
17945
18018
|
// https://tc39.es/ecma262/#sec-object.values
|
|
17946
|
-
$$
|
|
18019
|
+
$$4({ target: 'Object', stat: true }, {
|
|
17947
18020
|
values: function values(O) {
|
|
17948
18021
|
return $values(O);
|
|
17949
18022
|
}
|
|
17950
18023
|
});
|
|
17951
18024
|
|
|
17952
|
-
var $$
|
|
18025
|
+
var $$3 = _export;
|
|
17953
18026
|
var $find = arrayIteration.find;
|
|
17954
18027
|
var addToUnscopables = addToUnscopables$3;
|
|
17955
18028
|
|
|
@@ -17961,7 +18034,7 @@ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
|
17961
18034
|
|
|
17962
18035
|
// `Array.prototype.find` method
|
|
17963
18036
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
17964
|
-
$$
|
|
18037
|
+
$$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
17965
18038
|
find: function find(callbackfn /* , that = undefined */) {
|
|
17966
18039
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
17967
18040
|
}
|
|
@@ -20395,6 +20468,10 @@ var MobileMoneyAPI = {
|
|
|
20395
20468
|
}
|
|
20396
20469
|
};
|
|
20397
20470
|
|
|
20471
|
+
// Statuses that leave the transaction with a Pusher channel worth listening on.
|
|
20472
|
+
// `awaiting_ussd_confirmation` is mid-flight, not settled, but still carries the
|
|
20473
|
+
// `channel_name` the outcome arrives on.
|
|
20474
|
+
var LISTENABLE_CHARGE_STATUSES = ['success', 'awaiting_ussd_confirmation'];
|
|
20398
20475
|
function validate$1(phoneNumber) {
|
|
20399
20476
|
return new Promise(function (resolve, reject) {
|
|
20400
20477
|
var validation = PhoneNumber.validate(phoneNumber);
|
|
@@ -20433,10 +20510,14 @@ function buildMobileMoneyParams(payload) {
|
|
|
20433
20510
|
var MobileMoneyCharge = {
|
|
20434
20511
|
mobileMoneyChargeAPI: function mobileMoneyChargeAPI(params) {
|
|
20435
20512
|
var _this = this;
|
|
20513
|
+
// Cleared before the request, not in the handler: the API layer's .catch
|
|
20514
|
+
// destructures `response`, which a network error lacks, so it throws and no
|
|
20515
|
+
// handler runs.
|
|
20516
|
+
this.mobileMoney = {};
|
|
20436
20517
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20437
|
-
if (response.status
|
|
20518
|
+
if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
|
|
20438
20519
|
_this.mobileMoney = response;
|
|
20439
|
-
if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20520
|
+
if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20440
20521
|
_this.logTokenRequest('mobile money');
|
|
20441
20522
|
}
|
|
20442
20523
|
}
|
|
@@ -20485,10 +20566,13 @@ var MobileMoneyCharge = {
|
|
|
20485
20566
|
id: _this3.id,
|
|
20486
20567
|
deviceFingerprint: _this3.deviceFingerprint
|
|
20487
20568
|
});
|
|
20569
|
+
|
|
20570
|
+
// Cleared before the request, as in mobileMoneyChargeAPI above.
|
|
20571
|
+
_this3.mobileMoney = {};
|
|
20488
20572
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20489
|
-
if (response.status
|
|
20573
|
+
if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
|
|
20490
20574
|
_this3.mobileMoney = response;
|
|
20491
|
-
if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20575
|
+
if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20492
20576
|
_this3.logTokenRequest('mobile money');
|
|
20493
20577
|
}
|
|
20494
20578
|
} else if (response.errors && response.errors.data && response.errors.data.status === 'awaiting_registration_token') {
|
|
@@ -20511,17 +20595,33 @@ var MobileMoneyCharge = {
|
|
|
20511
20595
|
});
|
|
20512
20596
|
},
|
|
20513
20597
|
listenForMobileMoneyCharge: function listenForMobileMoneyCharge(callback) {
|
|
20514
|
-
|
|
20598
|
+
var _ref2 = this.mobileMoney.data || {},
|
|
20599
|
+
channel = _ref2.channel,
|
|
20600
|
+
channelName = _ref2.channel_name;
|
|
20601
|
+
var listenerChannel = channel || channelName;
|
|
20602
|
+
if (!LISTENABLE_CHARGE_STATUSES.includes(this.mobileMoney.status) || !listenerChannel) {
|
|
20515
20603
|
return Promise.reject(Error('Please start a mobile money charge with Transaction.chargeMobileMoney()'));
|
|
20516
20604
|
}
|
|
20517
|
-
var _this$mobileMoney$dat = this.mobileMoney.data,
|
|
20518
|
-
channel = _this$mobileMoney$dat.channel,
|
|
20519
|
-
channelName = _this$mobileMoney$dat.channel_name;
|
|
20520
20605
|
var listenerOptions = {
|
|
20521
|
-
channel:
|
|
20606
|
+
channel: listenerChannel,
|
|
20522
20607
|
paymentMethod: 'mobile_money'
|
|
20523
20608
|
};
|
|
20524
20609
|
return this.listenForCharge(listenerOptions, callback);
|
|
20610
|
+
},
|
|
20611
|
+
// Unlike every sibling listener, this returns a teardown function rather than a
|
|
20612
|
+
// promise, so it throws synchronously instead of rejecting. A caller in a
|
|
20613
|
+
// non-async event handler gets an uncaught throw, not an unhandled rejection.
|
|
20614
|
+
listenForMobileMoneyConfirmation: function listenForMobileMoneyConfirmation(callback, pusherChannel) {
|
|
20615
|
+
var data = this.mobileMoney.data;
|
|
20616
|
+
var confirmationChannel = pusherChannel || data && data.confirm_channel_name;
|
|
20617
|
+
if (!confirmationChannel) {
|
|
20618
|
+
throw new Error('Please provide the confirm_channel_name returned by Transaction.chargeMobileMoney()');
|
|
20619
|
+
}
|
|
20620
|
+
var listenerOptions = {
|
|
20621
|
+
channel: confirmationChannel,
|
|
20622
|
+
paymentMethod: 'mobile_money'
|
|
20623
|
+
};
|
|
20624
|
+
return subscribeToConfirmationEvents(listenerOptions, this, callback);
|
|
20525
20625
|
}
|
|
20526
20626
|
};
|
|
20527
20627
|
|
|
@@ -20682,7 +20782,7 @@ var DirectDebitCharge = {
|
|
|
20682
20782
|
};
|
|
20683
20783
|
|
|
20684
20784
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
20685
|
-
var fails$
|
|
20785
|
+
var fails$2 = fails$x;
|
|
20686
20786
|
var whitespaces = whitespaces$3;
|
|
20687
20787
|
|
|
20688
20788
|
var non = '\u200B\u0085\u180E';
|
|
@@ -20690,20 +20790,20 @@ var non = '\u200B\u0085\u180E';
|
|
|
20690
20790
|
// check that a method works with the correct list
|
|
20691
20791
|
// of whitespaces and has a correct name
|
|
20692
20792
|
var stringTrimForced = function (METHOD_NAME) {
|
|
20693
|
-
return fails$
|
|
20793
|
+
return fails$2(function () {
|
|
20694
20794
|
return !!whitespaces[METHOD_NAME]()
|
|
20695
20795
|
|| non[METHOD_NAME]() !== non
|
|
20696
20796
|
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
20697
20797
|
});
|
|
20698
20798
|
};
|
|
20699
20799
|
|
|
20700
|
-
var $$
|
|
20800
|
+
var $$2 = _export;
|
|
20701
20801
|
var $trim = stringTrim.trim;
|
|
20702
20802
|
var forcedStringTrimMethod = stringTrimForced;
|
|
20703
20803
|
|
|
20704
20804
|
// `String.prototype.trim` method
|
|
20705
20805
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
20706
|
-
$$
|
|
20806
|
+
$$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
20707
20807
|
trim: function trim() {
|
|
20708
20808
|
return $trim(this);
|
|
20709
20809
|
}
|
|
@@ -20942,6 +21042,454 @@ var InstalmentsCharge = {
|
|
|
20942
21042
|
}
|
|
20943
21043
|
};
|
|
20944
21044
|
|
|
21045
|
+
var $$1 = _export;
|
|
21046
|
+
var global$3 = global$V;
|
|
21047
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
21048
|
+
var isForced = isForced_1;
|
|
21049
|
+
var redefine = redefine$b.exports;
|
|
21050
|
+
var InternalMetadataModule$1 = internalMetadata.exports;
|
|
21051
|
+
var iterate$1 = iterate$3;
|
|
21052
|
+
var anInstance$1 = anInstance$5;
|
|
21053
|
+
var isCallable = isCallable$l;
|
|
21054
|
+
var isObject$2 = isObject$l;
|
|
21055
|
+
var fails$1 = fails$x;
|
|
21056
|
+
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
|
|
21057
|
+
var setToStringTag = setToStringTag$6;
|
|
21058
|
+
var inheritIfRequired = inheritIfRequired$3;
|
|
21059
|
+
|
|
21060
|
+
var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
21061
|
+
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
|
|
21062
|
+
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
|
|
21063
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
21064
|
+
var NativeConstructor = global$3[CONSTRUCTOR_NAME];
|
|
21065
|
+
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
|
21066
|
+
var Constructor = NativeConstructor;
|
|
21067
|
+
var exported = {};
|
|
21068
|
+
|
|
21069
|
+
var fixMethod = function (KEY) {
|
|
21070
|
+
var uncurriedNativeMethod = uncurryThis$3(NativePrototype[KEY]);
|
|
21071
|
+
redefine(NativePrototype, KEY,
|
|
21072
|
+
KEY == 'add' ? function add(value) {
|
|
21073
|
+
uncurriedNativeMethod(this, value === 0 ? 0 : value);
|
|
21074
|
+
return this;
|
|
21075
|
+
} : KEY == 'delete' ? function (key) {
|
|
21076
|
+
return IS_WEAK && !isObject$2(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21077
|
+
} : KEY == 'get' ? function get(key) {
|
|
21078
|
+
return IS_WEAK && !isObject$2(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21079
|
+
} : KEY == 'has' ? function has(key) {
|
|
21080
|
+
return IS_WEAK && !isObject$2(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21081
|
+
} : function set(key, value) {
|
|
21082
|
+
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
|
|
21083
|
+
return this;
|
|
21084
|
+
}
|
|
21085
|
+
);
|
|
21086
|
+
};
|
|
21087
|
+
|
|
21088
|
+
var REPLACE = isForced(
|
|
21089
|
+
CONSTRUCTOR_NAME,
|
|
21090
|
+
!isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$1(function () {
|
|
21091
|
+
new NativeConstructor().entries().next();
|
|
21092
|
+
}))
|
|
21093
|
+
);
|
|
21094
|
+
|
|
21095
|
+
if (REPLACE) {
|
|
21096
|
+
// create collection constructor
|
|
21097
|
+
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
|
|
21098
|
+
InternalMetadataModule$1.enable();
|
|
21099
|
+
} else if (isForced(CONSTRUCTOR_NAME, true)) {
|
|
21100
|
+
var instance = new Constructor();
|
|
21101
|
+
// early implementations not supports chaining
|
|
21102
|
+
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
|
|
21103
|
+
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
|
21104
|
+
var THROWS_ON_PRIMITIVES = fails$1(function () { instance.has(1); });
|
|
21105
|
+
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
|
21106
|
+
// eslint-disable-next-line no-new -- required for testing
|
|
21107
|
+
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
|
|
21108
|
+
// for early implementations -0 and +0 not the same
|
|
21109
|
+
var BUGGY_ZERO = !IS_WEAK && fails$1(function () {
|
|
21110
|
+
// V8 ~ Chromium 42- fails only with 5+ elements
|
|
21111
|
+
var $instance = new NativeConstructor();
|
|
21112
|
+
var index = 5;
|
|
21113
|
+
while (index--) $instance[ADDER](index, index);
|
|
21114
|
+
return !$instance.has(-0);
|
|
21115
|
+
});
|
|
21116
|
+
|
|
21117
|
+
if (!ACCEPT_ITERABLES) {
|
|
21118
|
+
Constructor = wrapper(function (dummy, iterable) {
|
|
21119
|
+
anInstance$1(dummy, NativePrototype);
|
|
21120
|
+
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
|
|
21121
|
+
if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
21122
|
+
return that;
|
|
21123
|
+
});
|
|
21124
|
+
Constructor.prototype = NativePrototype;
|
|
21125
|
+
NativePrototype.constructor = Constructor;
|
|
21126
|
+
}
|
|
21127
|
+
|
|
21128
|
+
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
|
|
21129
|
+
fixMethod('delete');
|
|
21130
|
+
fixMethod('has');
|
|
21131
|
+
IS_MAP && fixMethod('get');
|
|
21132
|
+
}
|
|
21133
|
+
|
|
21134
|
+
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
|
|
21135
|
+
|
|
21136
|
+
// weak collections should not contains .clear method
|
|
21137
|
+
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
|
|
21138
|
+
}
|
|
21139
|
+
|
|
21140
|
+
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
21141
|
+
$$1({ global: true, forced: Constructor != NativeConstructor }, exported);
|
|
21142
|
+
|
|
21143
|
+
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
|
21144
|
+
|
|
21145
|
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
21146
|
+
|
|
21147
|
+
return Constructor;
|
|
21148
|
+
};
|
|
21149
|
+
|
|
21150
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
21151
|
+
var redefineAll$1 = redefineAll$4;
|
|
21152
|
+
var getWeakData = internalMetadata.exports.getWeakData;
|
|
21153
|
+
var anObject = anObject$f;
|
|
21154
|
+
var isObject$1 = isObject$l;
|
|
21155
|
+
var anInstance = anInstance$5;
|
|
21156
|
+
var iterate = iterate$3;
|
|
21157
|
+
var ArrayIterationModule = arrayIteration;
|
|
21158
|
+
var hasOwn = hasOwnProperty_1;
|
|
21159
|
+
var InternalStateModule = internalState;
|
|
21160
|
+
|
|
21161
|
+
var setInternalState = InternalStateModule.set;
|
|
21162
|
+
var internalStateGetterFor = InternalStateModule.getterFor;
|
|
21163
|
+
var find = ArrayIterationModule.find;
|
|
21164
|
+
var findIndex = ArrayIterationModule.findIndex;
|
|
21165
|
+
var splice = uncurryThis$2([].splice);
|
|
21166
|
+
var id = 0;
|
|
21167
|
+
|
|
21168
|
+
// fallback for uncaught frozen keys
|
|
21169
|
+
var uncaughtFrozenStore = function (store) {
|
|
21170
|
+
return store.frozen || (store.frozen = new UncaughtFrozenStore());
|
|
21171
|
+
};
|
|
21172
|
+
|
|
21173
|
+
var UncaughtFrozenStore = function () {
|
|
21174
|
+
this.entries = [];
|
|
21175
|
+
};
|
|
21176
|
+
|
|
21177
|
+
var findUncaughtFrozen = function (store, key) {
|
|
21178
|
+
return find(store.entries, function (it) {
|
|
21179
|
+
return it[0] === key;
|
|
21180
|
+
});
|
|
21181
|
+
};
|
|
21182
|
+
|
|
21183
|
+
UncaughtFrozenStore.prototype = {
|
|
21184
|
+
get: function (key) {
|
|
21185
|
+
var entry = findUncaughtFrozen(this, key);
|
|
21186
|
+
if (entry) return entry[1];
|
|
21187
|
+
},
|
|
21188
|
+
has: function (key) {
|
|
21189
|
+
return !!findUncaughtFrozen(this, key);
|
|
21190
|
+
},
|
|
21191
|
+
set: function (key, value) {
|
|
21192
|
+
var entry = findUncaughtFrozen(this, key);
|
|
21193
|
+
if (entry) entry[1] = value;
|
|
21194
|
+
else this.entries.push([key, value]);
|
|
21195
|
+
},
|
|
21196
|
+
'delete': function (key) {
|
|
21197
|
+
var index = findIndex(this.entries, function (it) {
|
|
21198
|
+
return it[0] === key;
|
|
21199
|
+
});
|
|
21200
|
+
if (~index) splice(this.entries, index, 1);
|
|
21201
|
+
return !!~index;
|
|
21202
|
+
}
|
|
21203
|
+
};
|
|
21204
|
+
|
|
21205
|
+
var collectionWeak$1 = {
|
|
21206
|
+
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
|
21207
|
+
var Constructor = wrapper(function (that, iterable) {
|
|
21208
|
+
anInstance(that, Prototype);
|
|
21209
|
+
setInternalState(that, {
|
|
21210
|
+
type: CONSTRUCTOR_NAME,
|
|
21211
|
+
id: id++,
|
|
21212
|
+
frozen: undefined
|
|
21213
|
+
});
|
|
21214
|
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
21215
|
+
});
|
|
21216
|
+
|
|
21217
|
+
var Prototype = Constructor.prototype;
|
|
21218
|
+
|
|
21219
|
+
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
21220
|
+
|
|
21221
|
+
var define = function (that, key, value) {
|
|
21222
|
+
var state = getInternalState(that);
|
|
21223
|
+
var data = getWeakData(anObject(key), true);
|
|
21224
|
+
if (data === true) uncaughtFrozenStore(state).set(key, value);
|
|
21225
|
+
else data[state.id] = value;
|
|
21226
|
+
return that;
|
|
21227
|
+
};
|
|
21228
|
+
|
|
21229
|
+
redefineAll$1(Prototype, {
|
|
21230
|
+
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
|
|
21231
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
|
|
21232
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
|
21233
|
+
'delete': function (key) {
|
|
21234
|
+
var state = getInternalState(this);
|
|
21235
|
+
if (!isObject$1(key)) return false;
|
|
21236
|
+
var data = getWeakData(key);
|
|
21237
|
+
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
|
|
21238
|
+
return data && hasOwn(data, state.id) && delete data[state.id];
|
|
21239
|
+
},
|
|
21240
|
+
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
|
|
21241
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
|
|
21242
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
21243
|
+
has: function has(key) {
|
|
21244
|
+
var state = getInternalState(this);
|
|
21245
|
+
if (!isObject$1(key)) return false;
|
|
21246
|
+
var data = getWeakData(key);
|
|
21247
|
+
if (data === true) return uncaughtFrozenStore(state).has(key);
|
|
21248
|
+
return data && hasOwn(data, state.id);
|
|
21249
|
+
}
|
|
21250
|
+
});
|
|
21251
|
+
|
|
21252
|
+
redefineAll$1(Prototype, IS_MAP ? {
|
|
21253
|
+
// `WeakMap.prototype.get(key)` method
|
|
21254
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
|
|
21255
|
+
get: function get(key) {
|
|
21256
|
+
var state = getInternalState(this);
|
|
21257
|
+
if (isObject$1(key)) {
|
|
21258
|
+
var data = getWeakData(key);
|
|
21259
|
+
if (data === true) return uncaughtFrozenStore(state).get(key);
|
|
21260
|
+
return data ? data[state.id] : undefined;
|
|
21261
|
+
}
|
|
21262
|
+
},
|
|
21263
|
+
// `WeakMap.prototype.set(key, value)` method
|
|
21264
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
|
|
21265
|
+
set: function set(key, value) {
|
|
21266
|
+
return define(this, key, value);
|
|
21267
|
+
}
|
|
21268
|
+
} : {
|
|
21269
|
+
// `WeakSet.prototype.add(value)` method
|
|
21270
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.add
|
|
21271
|
+
add: function add(value) {
|
|
21272
|
+
return define(this, value, true);
|
|
21273
|
+
}
|
|
21274
|
+
});
|
|
21275
|
+
|
|
21276
|
+
return Constructor;
|
|
21277
|
+
}
|
|
21278
|
+
};
|
|
21279
|
+
|
|
21280
|
+
var global$2 = global$V;
|
|
21281
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
21282
|
+
var redefineAll = redefineAll$4;
|
|
21283
|
+
var InternalMetadataModule = internalMetadata.exports;
|
|
21284
|
+
var collection = collection$1;
|
|
21285
|
+
var collectionWeak = collectionWeak$1;
|
|
21286
|
+
var isObject = isObject$l;
|
|
21287
|
+
var isExtensible = objectIsExtensible;
|
|
21288
|
+
var enforceInternalState = internalState.enforce;
|
|
21289
|
+
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
21290
|
+
|
|
21291
|
+
var IS_IE11 = !global$2.ActiveXObject && 'ActiveXObject' in global$2;
|
|
21292
|
+
var InternalWeakMap;
|
|
21293
|
+
|
|
21294
|
+
var wrapper = function (init) {
|
|
21295
|
+
return function WeakMap() {
|
|
21296
|
+
return init(this, arguments.length ? arguments[0] : undefined);
|
|
21297
|
+
};
|
|
21298
|
+
};
|
|
21299
|
+
|
|
21300
|
+
// `WeakMap` constructor
|
|
21301
|
+
// https://tc39.es/ecma262/#sec-weakmap-constructor
|
|
21302
|
+
var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
|
|
21303
|
+
|
|
21304
|
+
// IE11 WeakMap frozen keys fix
|
|
21305
|
+
// We can't use feature detection because it crash some old IE builds
|
|
21306
|
+
// https://github.com/zloirock/core-js/issues/485
|
|
21307
|
+
if (NATIVE_WEAK_MAP && IS_IE11) {
|
|
21308
|
+
InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
|
|
21309
|
+
InternalMetadataModule.enable();
|
|
21310
|
+
var WeakMapPrototype = $WeakMap.prototype;
|
|
21311
|
+
var nativeDelete = uncurryThis$1(WeakMapPrototype['delete']);
|
|
21312
|
+
var nativeHas = uncurryThis$1(WeakMapPrototype.has);
|
|
21313
|
+
var nativeGet = uncurryThis$1(WeakMapPrototype.get);
|
|
21314
|
+
var nativeSet = uncurryThis$1(WeakMapPrototype.set);
|
|
21315
|
+
redefineAll(WeakMapPrototype, {
|
|
21316
|
+
'delete': function (key) {
|
|
21317
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21318
|
+
var state = enforceInternalState(this);
|
|
21319
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21320
|
+
return nativeDelete(this, key) || state.frozen['delete'](key);
|
|
21321
|
+
} return nativeDelete(this, key);
|
|
21322
|
+
},
|
|
21323
|
+
has: function has(key) {
|
|
21324
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21325
|
+
var state = enforceInternalState(this);
|
|
21326
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21327
|
+
return nativeHas(this, key) || state.frozen.has(key);
|
|
21328
|
+
} return nativeHas(this, key);
|
|
21329
|
+
},
|
|
21330
|
+
get: function get(key) {
|
|
21331
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21332
|
+
var state = enforceInternalState(this);
|
|
21333
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21334
|
+
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
|
|
21335
|
+
} return nativeGet(this, key);
|
|
21336
|
+
},
|
|
21337
|
+
set: function set(key, value) {
|
|
21338
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21339
|
+
var state = enforceInternalState(this);
|
|
21340
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21341
|
+
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
|
|
21342
|
+
} else nativeSet(this, key, value);
|
|
21343
|
+
return this;
|
|
21344
|
+
}
|
|
21345
|
+
});
|
|
21346
|
+
}
|
|
21347
|
+
|
|
21348
|
+
// A 4xx is the server refusing the charge, and its body carries the merchant-safe reason, so parse
|
|
21349
|
+
// it rather than let axios discard it. A 5xx is not a refusal — it answers "try again later" and
|
|
21350
|
+
// may even land after the order was created — so it rethrows, same as the status poll below.
|
|
21351
|
+
var parseChargeRefusal = function parseChargeRefusal(error) {
|
|
21352
|
+
if (!error.response || error.response.status >= 500) throw error;
|
|
21353
|
+
return ChargeResponses.parse(error.response.data);
|
|
21354
|
+
};
|
|
21355
|
+
var PayflexAPI = {
|
|
21356
|
+
charge: function charge(_ref) {
|
|
21357
|
+
var accessCode = _ref.accessCode,
|
|
21358
|
+
publicKey = _ref.publicKey,
|
|
21359
|
+
deviceFingerprint = _ref.deviceFingerprint,
|
|
21360
|
+
returnUrl = _ref.returnUrl,
|
|
21361
|
+
checkoutMode = _ref.checkoutMode,
|
|
21362
|
+
successUrl = _ref.successUrl,
|
|
21363
|
+
cancelUrl = _ref.cancelUrl;
|
|
21364
|
+
var url = new URL('transaction/charge', configToUse.paystackApiUrl).toString();
|
|
21365
|
+
var language = getLanguage();
|
|
21366
|
+
var headers = _objectSpread2({
|
|
21367
|
+
Authorization: "Bearer ".concat(publicKey)
|
|
21368
|
+
}, language && {
|
|
21369
|
+
'Accept-Language': language
|
|
21370
|
+
});
|
|
21371
|
+
var params = _objectSpread2(_objectSpread2({
|
|
21372
|
+
access_code: accessCode
|
|
21373
|
+
}, deviceFingerprint && {
|
|
21374
|
+
device_id: deviceFingerprint
|
|
21375
|
+
}), {}, {
|
|
21376
|
+
payflex: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, returnUrl && {
|
|
21377
|
+
return_url: returnUrl
|
|
21378
|
+
}), checkoutMode && {
|
|
21379
|
+
checkout_mode: checkoutMode
|
|
21380
|
+
}), successUrl && {
|
|
21381
|
+
success_url: successUrl
|
|
21382
|
+
}), cancelUrl && {
|
|
21383
|
+
cancel_url: cancelUrl
|
|
21384
|
+
})
|
|
21385
|
+
});
|
|
21386
|
+
return axiosInstance.post(url, params, {
|
|
21387
|
+
headers: headers
|
|
21388
|
+
}).then(function (response) {
|
|
21389
|
+
return ChargeResponses.parse(response.data);
|
|
21390
|
+
}).catch(parseChargeRefusal);
|
|
21391
|
+
},
|
|
21392
|
+
// Deliberately has no error branch. Only a 2xx body is an answer about the payment; a 404, a
|
|
21393
|
+
// proxy 5xx or an expired key is the poll failing to reach a verdict, and resolving those to
|
|
21394
|
+
// `failed` would have checkout conclude an outcome the server never gave it.
|
|
21395
|
+
requery: function requery(_ref2) {
|
|
21396
|
+
var transactionReference = _ref2.transactionReference,
|
|
21397
|
+
publicKey = _ref2.publicKey;
|
|
21398
|
+
var url = new URL("payflex/requery/".concat(encodeURIComponent(transactionReference)), configToUse.paystackApiUrl).toString();
|
|
21399
|
+
var language = getLanguage();
|
|
21400
|
+
var headers = _objectSpread2({
|
|
21401
|
+
Authorization: "Bearer ".concat(publicKey)
|
|
21402
|
+
}, language && {
|
|
21403
|
+
'Accept-Language': language
|
|
21404
|
+
});
|
|
21405
|
+
return axiosInstance.get(url, {
|
|
21406
|
+
headers: headers
|
|
21407
|
+
}).then(function (response) {
|
|
21408
|
+
return ChargeResponses.parse(response.data);
|
|
21409
|
+
});
|
|
21410
|
+
}
|
|
21411
|
+
};
|
|
21412
|
+
|
|
21413
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
21414
|
+
var PAYFLEX_CHANNEL = 'payflex';
|
|
21415
|
+
|
|
21416
|
+
// Checkout may never conclude failure on a timer, so the poll runs long and overlaps: a timer, a
|
|
21417
|
+
// window-focus re-check and a Pusher event can all be in flight together. saveLog() re-POSTs the
|
|
21418
|
+
// whole history per entry, so a run gets one pending entry. A hand-off starts a run; success or
|
|
21419
|
+
// failure ends it; a straggler resolving after either is dropped. The hand-off has to reset on its
|
|
21420
|
+
// own because a Pusher outcome concludes without passing through requeryPayflex.
|
|
21421
|
+
var pollRuns = new WeakMap();
|
|
21422
|
+
var runFor = function runFor(transaction) {
|
|
21423
|
+
if (!pollRuns.has(transaction)) {
|
|
21424
|
+
pollRuns.set(transaction, {
|
|
21425
|
+
pendingLogged: false,
|
|
21426
|
+
concluded: false
|
|
21427
|
+
});
|
|
21428
|
+
}
|
|
21429
|
+
return pollRuns.get(transaction);
|
|
21430
|
+
};
|
|
21431
|
+
var PayflexCharge = {
|
|
21432
|
+
chargePayflex: function chargePayflex() {
|
|
21433
|
+
var _this = this;
|
|
21434
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
21435
|
+
returnUrl = _ref.returnUrl,
|
|
21436
|
+
checkoutMode = _ref.checkoutMode,
|
|
21437
|
+
successUrl = _ref.successUrl,
|
|
21438
|
+
cancelUrl = _ref.cancelUrl;
|
|
21439
|
+
pollRuns.delete(this);
|
|
21440
|
+
this.logAttempt(PAYFLEX_CHANNEL);
|
|
21441
|
+
if (checkoutMode) {
|
|
21442
|
+
this.logPayflexPresentationMode(checkoutMode);
|
|
21443
|
+
}
|
|
21444
|
+
return PayflexAPI.charge({
|
|
21445
|
+
accessCode: this.accessCode,
|
|
21446
|
+
publicKey: this.merchant.key,
|
|
21447
|
+
deviceFingerprint: this.deviceFingerprint,
|
|
21448
|
+
returnUrl: returnUrl,
|
|
21449
|
+
checkoutMode: checkoutMode,
|
|
21450
|
+
successUrl: successUrl,
|
|
21451
|
+
cancelUrl: cancelUrl
|
|
21452
|
+
}).then(function (response) {
|
|
21453
|
+
var usedMode = response.data && response.data.checkout_mode;
|
|
21454
|
+
if (checkoutMode && usedMode && usedMode !== checkoutMode) {
|
|
21455
|
+
_this.logPayflexPresentationModeMismatch({
|
|
21456
|
+
requested: checkoutMode,
|
|
21457
|
+
used: usedMode
|
|
21458
|
+
});
|
|
21459
|
+
}
|
|
21460
|
+
_this.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21461
|
+
return response;
|
|
21462
|
+
});
|
|
21463
|
+
},
|
|
21464
|
+
requeryPayflex: function requeryPayflex() {
|
|
21465
|
+
var _this2 = this;
|
|
21466
|
+
return PayflexAPI.requery({
|
|
21467
|
+
transactionReference: this.reference,
|
|
21468
|
+
publicKey: this.merchant.key
|
|
21469
|
+
}).then(function (response) {
|
|
21470
|
+
var run = runFor(_this2);
|
|
21471
|
+
if (response.status === 'success' || response.status === 'failed') {
|
|
21472
|
+
run.concluded = true;
|
|
21473
|
+
run.pendingLogged = false;
|
|
21474
|
+
_this2.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21475
|
+
} else if (response.status !== 'pending') {
|
|
21476
|
+
_this2.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21477
|
+
} else if (!run.pendingLogged && !run.concluded) {
|
|
21478
|
+
run.pendingLogged = true;
|
|
21479
|
+
_this2.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21480
|
+
}
|
|
21481
|
+
return response;
|
|
21482
|
+
});
|
|
21483
|
+
},
|
|
21484
|
+
listenForPayflexCharge: function listenForPayflexCharge(callback) {
|
|
21485
|
+
var listenerOptions = {
|
|
21486
|
+
paymentMethod: PAYFLEX_CHANNEL,
|
|
21487
|
+
channel: "PAYFLEX_".concat(this.id)
|
|
21488
|
+
};
|
|
21489
|
+
return this.listenForCharge(listenerOptions, callback);
|
|
21490
|
+
}
|
|
21491
|
+
};
|
|
21492
|
+
|
|
20945
21493
|
var ChargeFunctions = {
|
|
20946
21494
|
get: function get(channel) {
|
|
20947
21495
|
var chargeFunctions = {
|
|
@@ -20959,7 +21507,8 @@ var ChargeFunctions = {
|
|
|
20959
21507
|
paypal: PayPalCharge,
|
|
20960
21508
|
capitec_pay: CapitecPayCharge,
|
|
20961
21509
|
union_pay: ChinaUnionPayCharge,
|
|
20962
|
-
instalments: InstalmentsCharge
|
|
21510
|
+
instalments: InstalmentsCharge,
|
|
21511
|
+
payflex: PayflexCharge
|
|
20963
21512
|
};
|
|
20964
21513
|
return chargeFunctions[channel];
|
|
20965
21514
|
}
|
|
@@ -21003,11 +21552,11 @@ var AnalyticsUtils = {
|
|
|
21003
21552
|
};
|
|
21004
21553
|
|
|
21005
21554
|
var $ = _export;
|
|
21006
|
-
var global$1 = global$
|
|
21555
|
+
var global$1 = global$V;
|
|
21007
21556
|
var getBuiltIn = getBuiltIn$a;
|
|
21008
21557
|
var apply = functionApply;
|
|
21009
21558
|
var uncurryThis = functionUncurryThis;
|
|
21010
|
-
var fails = fails$
|
|
21559
|
+
var fails = fails$x;
|
|
21011
21560
|
|
|
21012
21561
|
var Array$1 = global$1.Array;
|
|
21013
21562
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
@@ -21172,7 +21721,36 @@ var CapitecPayAnalytics = {
|
|
|
21172
21721
|
}
|
|
21173
21722
|
};
|
|
21174
21723
|
|
|
21175
|
-
var
|
|
21724
|
+
var PayflexAnalytics = {
|
|
21725
|
+
logPayflexPresentationMode: function logPayflexPresentationMode(checkoutMode) {
|
|
21726
|
+
return this.logHistoryEntry({
|
|
21727
|
+
type: 'action',
|
|
21728
|
+
message: "Opening Payflex as: ".concat(checkoutMode),
|
|
21729
|
+
channel: PAYFLEX_CHANNEL,
|
|
21730
|
+
time: this.getTimeSpent()
|
|
21731
|
+
});
|
|
21732
|
+
},
|
|
21733
|
+
logPayflexPresentationModeMismatch: function logPayflexPresentationModeMismatch(_ref) {
|
|
21734
|
+
var requested = _ref.requested,
|
|
21735
|
+
used = _ref.used;
|
|
21736
|
+
return this.logHistoryEntry({
|
|
21737
|
+
type: 'action',
|
|
21738
|
+
message: "Payflex opened as ".concat(used, " after requesting ").concat(requested),
|
|
21739
|
+
channel: PAYFLEX_CHANNEL,
|
|
21740
|
+
time: this.getTimeSpent()
|
|
21741
|
+
});
|
|
21742
|
+
},
|
|
21743
|
+
logPayflexStatusRecheck: function logPayflexStatusRecheck() {
|
|
21744
|
+
return this.logHistoryEntry({
|
|
21745
|
+
type: 'action',
|
|
21746
|
+
message: 'Selected check payment status again',
|
|
21747
|
+
channel: PAYFLEX_CHANNEL,
|
|
21748
|
+
time: this.getTimeSpent()
|
|
21749
|
+
});
|
|
21750
|
+
}
|
|
21751
|
+
};
|
|
21752
|
+
|
|
21753
|
+
var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2(_objectSpread2({}, CapitecPayAnalytics), PayflexAnalytics), {}, {
|
|
21176
21754
|
initializeLog: function initializeLog(log) {
|
|
21177
21755
|
this.log = AnalyticsUtils.initializeLog(log);
|
|
21178
21756
|
},
|
|
@@ -21264,6 +21842,11 @@ var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2({}, CapitecPayAnalytics
|
|
|
21264
21842
|
return this.logError(response.message);
|
|
21265
21843
|
case 'auth':
|
|
21266
21844
|
return this.logAuth(response.data.auth);
|
|
21845
|
+
case 'awaiting_ussd_confirmation':
|
|
21846
|
+
// The customer has been shown the USSD prompt but has not paid yet. Recording
|
|
21847
|
+
// it keeps the step in the transaction log instead of dropping through to
|
|
21848
|
+
// `default`, which is what tells us how many customers reach the prompt.
|
|
21849
|
+
return this.logAPIResponseMessage(response.message);
|
|
21267
21850
|
default:
|
|
21268
21851
|
return false;
|
|
21269
21852
|
}
|