@paystack/checkout-js 1.57.0-beta.1 → 1.57.0-beta.11
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/lib/checkout.js
CHANGED
|
@@ -1039,7 +1039,7 @@ var check = function (it) {
|
|
|
1039
1039
|
};
|
|
1040
1040
|
|
|
1041
1041
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
1042
|
-
var global$
|
|
1042
|
+
var global$V =
|
|
1043
1043
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
1044
1044
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
1045
1045
|
check(typeof window == 'object' && window) ||
|
|
@@ -1051,7 +1051,7 @@ var global$T =
|
|
|
1051
1051
|
|
|
1052
1052
|
var objectGetOwnPropertyDescriptor = {};
|
|
1053
1053
|
|
|
1054
|
-
var fails$
|
|
1054
|
+
var fails$x = function (exec) {
|
|
1055
1055
|
try {
|
|
1056
1056
|
return !!exec();
|
|
1057
1057
|
} catch (error) {
|
|
@@ -1059,17 +1059,17 @@ var fails$v = function (exec) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
};
|
|
1061
1061
|
|
|
1062
|
-
var fails$
|
|
1062
|
+
var fails$w = fails$x;
|
|
1063
1063
|
|
|
1064
1064
|
// Detect IE8's incomplete defineProperty implementation
|
|
1065
|
-
var descriptors$1 = !fails$
|
|
1065
|
+
var descriptors$1 = !fails$w(function () {
|
|
1066
1066
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1067
1067
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
1068
1068
|
});
|
|
1069
1069
|
|
|
1070
|
-
var fails$
|
|
1070
|
+
var fails$v = fails$x;
|
|
1071
1071
|
|
|
1072
|
-
var functionBindNative = !fails$
|
|
1072
|
+
var functionBindNative = !fails$v(function () {
|
|
1073
1073
|
var test = (function () { /* empty */ }).bind();
|
|
1074
1074
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
1075
1075
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -1113,35 +1113,35 @@ var NATIVE_BIND$2 = functionBindNative;
|
|
|
1113
1113
|
var FunctionPrototype$3 = Function.prototype;
|
|
1114
1114
|
var bind$c = FunctionPrototype$3.bind;
|
|
1115
1115
|
var call$e = FunctionPrototype$3.call;
|
|
1116
|
-
var uncurryThis$
|
|
1116
|
+
var uncurryThis$A = NATIVE_BIND$2 && bind$c.bind(call$e, call$e);
|
|
1117
1117
|
|
|
1118
1118
|
var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
|
|
1119
|
-
return fn && uncurryThis$
|
|
1119
|
+
return fn && uncurryThis$A(fn);
|
|
1120
1120
|
} : function (fn) {
|
|
1121
1121
|
return fn && function () {
|
|
1122
1122
|
return call$e.apply(fn, arguments);
|
|
1123
1123
|
};
|
|
1124
1124
|
};
|
|
1125
1125
|
|
|
1126
|
-
var uncurryThis$
|
|
1126
|
+
var uncurryThis$z = functionUncurryThis;
|
|
1127
1127
|
|
|
1128
|
-
var toString$b = uncurryThis$
|
|
1129
|
-
var stringSlice$4 = uncurryThis$
|
|
1128
|
+
var toString$b = uncurryThis$z({}.toString);
|
|
1129
|
+
var stringSlice$4 = uncurryThis$z(''.slice);
|
|
1130
1130
|
|
|
1131
1131
|
var classofRaw$1 = function (it) {
|
|
1132
1132
|
return stringSlice$4(toString$b(it), 8, -1);
|
|
1133
1133
|
};
|
|
1134
1134
|
|
|
1135
|
-
var global$
|
|
1136
|
-
var uncurryThis$
|
|
1137
|
-
var fails$
|
|
1135
|
+
var global$U = global$V;
|
|
1136
|
+
var uncurryThis$y = functionUncurryThis;
|
|
1137
|
+
var fails$u = fails$x;
|
|
1138
1138
|
var classof$a = classofRaw$1;
|
|
1139
1139
|
|
|
1140
|
-
var Object$5 = global$
|
|
1141
|
-
var split$4 = uncurryThis$
|
|
1140
|
+
var Object$5 = global$U.Object;
|
|
1141
|
+
var split$4 = uncurryThis$y(''.split);
|
|
1142
1142
|
|
|
1143
1143
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1144
|
-
var indexedObject = fails$
|
|
1144
|
+
var indexedObject = fails$u(function () {
|
|
1145
1145
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
1146
1146
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
1147
1147
|
return !Object$5('z').propertyIsEnumerable(0);
|
|
@@ -1149,9 +1149,9 @@ var indexedObject = fails$s(function () {
|
|
|
1149
1149
|
return classof$a(it) == 'String' ? split$4(it, '') : Object$5(it);
|
|
1150
1150
|
} : Object$5;
|
|
1151
1151
|
|
|
1152
|
-
var global$
|
|
1152
|
+
var global$T = global$V;
|
|
1153
1153
|
|
|
1154
|
-
var TypeError$j = global$
|
|
1154
|
+
var TypeError$j = global$T.TypeError;
|
|
1155
1155
|
|
|
1156
1156
|
// `RequireObjectCoercible` abstract operation
|
|
1157
1157
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
@@ -1170,40 +1170,40 @@ var toIndexedObject$8 = function (it) {
|
|
|
1170
1170
|
|
|
1171
1171
|
// `IsCallable` abstract operation
|
|
1172
1172
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
1173
|
-
var isCallable$
|
|
1173
|
+
var isCallable$l = function (argument) {
|
|
1174
1174
|
return typeof argument == 'function';
|
|
1175
1175
|
};
|
|
1176
1176
|
|
|
1177
|
-
var isCallable$
|
|
1177
|
+
var isCallable$k = isCallable$l;
|
|
1178
1178
|
|
|
1179
|
-
var isObject$
|
|
1180
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
1179
|
+
var isObject$l = function (it) {
|
|
1180
|
+
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
1181
1181
|
};
|
|
1182
1182
|
|
|
1183
|
-
var global$
|
|
1184
|
-
var isCallable$
|
|
1183
|
+
var global$S = global$V;
|
|
1184
|
+
var isCallable$j = isCallable$l;
|
|
1185
1185
|
|
|
1186
1186
|
var aFunction = function (argument) {
|
|
1187
|
-
return isCallable$
|
|
1187
|
+
return isCallable$j(argument) ? argument : undefined;
|
|
1188
1188
|
};
|
|
1189
1189
|
|
|
1190
1190
|
var getBuiltIn$a = function (namespace, method) {
|
|
1191
|
-
return arguments.length < 2 ? aFunction(global$
|
|
1191
|
+
return arguments.length < 2 ? aFunction(global$S[namespace]) : global$S[namespace] && global$S[namespace][method];
|
|
1192
1192
|
};
|
|
1193
1193
|
|
|
1194
|
-
var uncurryThis$
|
|
1194
|
+
var uncurryThis$x = functionUncurryThis;
|
|
1195
1195
|
|
|
1196
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
1196
|
+
var objectIsPrototypeOf = uncurryThis$x({}.isPrototypeOf);
|
|
1197
1197
|
|
|
1198
1198
|
var getBuiltIn$9 = getBuiltIn$a;
|
|
1199
1199
|
|
|
1200
1200
|
var engineUserAgent = getBuiltIn$9('navigator', 'userAgent') || '';
|
|
1201
1201
|
|
|
1202
|
-
var global$
|
|
1202
|
+
var global$R = global$V;
|
|
1203
1203
|
var userAgent$5 = engineUserAgent;
|
|
1204
1204
|
|
|
1205
|
-
var process$4 = global$
|
|
1206
|
-
var Deno = global$
|
|
1205
|
+
var process$4 = global$R.process;
|
|
1206
|
+
var Deno = global$R.Deno;
|
|
1207
1207
|
var versions = process$4 && process$4.versions || Deno && Deno.version;
|
|
1208
1208
|
var v8 = versions && versions.v8;
|
|
1209
1209
|
var match, version;
|
|
@@ -1230,10 +1230,10 @@ var engineV8Version = version;
|
|
|
1230
1230
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
1231
1231
|
|
|
1232
1232
|
var V8_VERSION$3 = engineV8Version;
|
|
1233
|
-
var fails$
|
|
1233
|
+
var fails$t = fails$x;
|
|
1234
1234
|
|
|
1235
1235
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1236
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
1236
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$t(function () {
|
|
1237
1237
|
var symbol = Symbol();
|
|
1238
1238
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
1239
1239
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -1250,24 +1250,24 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
1250
1250
|
&& !Symbol.sham
|
|
1251
1251
|
&& typeof Symbol.iterator == 'symbol';
|
|
1252
1252
|
|
|
1253
|
-
var global$
|
|
1253
|
+
var global$Q = global$V;
|
|
1254
1254
|
var getBuiltIn$8 = getBuiltIn$a;
|
|
1255
|
-
var isCallable$
|
|
1255
|
+
var isCallable$i = isCallable$l;
|
|
1256
1256
|
var isPrototypeOf$5 = objectIsPrototypeOf;
|
|
1257
1257
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
1258
1258
|
|
|
1259
|
-
var Object$4 = global$
|
|
1259
|
+
var Object$4 = global$Q.Object;
|
|
1260
1260
|
|
|
1261
1261
|
var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
1262
1262
|
return typeof it == 'symbol';
|
|
1263
1263
|
} : function (it) {
|
|
1264
1264
|
var $Symbol = getBuiltIn$8('Symbol');
|
|
1265
|
-
return isCallable$
|
|
1265
|
+
return isCallable$i($Symbol) && isPrototypeOf$5($Symbol.prototype, Object$4(it));
|
|
1266
1266
|
};
|
|
1267
1267
|
|
|
1268
|
-
var global$
|
|
1268
|
+
var global$P = global$V;
|
|
1269
1269
|
|
|
1270
|
-
var String$5 = global$
|
|
1270
|
+
var String$5 = global$P.String;
|
|
1271
1271
|
|
|
1272
1272
|
var tryToString$4 = function (argument) {
|
|
1273
1273
|
try {
|
|
@@ -1277,15 +1277,15 @@ var tryToString$4 = function (argument) {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
};
|
|
1279
1279
|
|
|
1280
|
-
var global$
|
|
1281
|
-
var isCallable$
|
|
1280
|
+
var global$O = global$V;
|
|
1281
|
+
var isCallable$h = isCallable$l;
|
|
1282
1282
|
var tryToString$3 = tryToString$4;
|
|
1283
1283
|
|
|
1284
|
-
var TypeError$i = global$
|
|
1284
|
+
var TypeError$i = global$O.TypeError;
|
|
1285
1285
|
|
|
1286
1286
|
// `Assert: IsCallable(argument) is true`
|
|
1287
1287
|
var aCallable$7 = function (argument) {
|
|
1288
|
-
if (isCallable$
|
|
1288
|
+
if (isCallable$h(argument)) return argument;
|
|
1289
1289
|
throw TypeError$i(tryToString$3(argument) + ' is not a function');
|
|
1290
1290
|
};
|
|
1291
1291
|
|
|
@@ -1298,20 +1298,20 @@ var getMethod$3 = function (V, P) {
|
|
|
1298
1298
|
return func == null ? undefined : aCallable$6(func);
|
|
1299
1299
|
};
|
|
1300
1300
|
|
|
1301
|
-
var global$
|
|
1301
|
+
var global$N = global$V;
|
|
1302
1302
|
var call$d = functionCall;
|
|
1303
|
-
var isCallable$
|
|
1304
|
-
var isObject$
|
|
1303
|
+
var isCallable$g = isCallable$l;
|
|
1304
|
+
var isObject$k = isObject$l;
|
|
1305
1305
|
|
|
1306
|
-
var TypeError$h = global$
|
|
1306
|
+
var TypeError$h = global$N.TypeError;
|
|
1307
1307
|
|
|
1308
1308
|
// `OrdinaryToPrimitive` abstract operation
|
|
1309
1309
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
1310
1310
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
1311
1311
|
var fn, val;
|
|
1312
|
-
if (pref === 'string' && isCallable$
|
|
1313
|
-
if (isCallable$
|
|
1314
|
-
if (pref !== 'string' && isCallable$
|
|
1312
|
+
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$k(val = call$d(fn, input))) return val;
|
|
1313
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$k(val = call$d(fn, input))) return val;
|
|
1314
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$k(val = call$d(fn, input))) return val;
|
|
1315
1315
|
throw TypeError$h("Can't convert object to primitive value");
|
|
1316
1316
|
};
|
|
1317
1317
|
|
|
@@ -1319,24 +1319,24 @@ var shared$4 = {exports: {}};
|
|
|
1319
1319
|
|
|
1320
1320
|
var isPure = false;
|
|
1321
1321
|
|
|
1322
|
-
var global$
|
|
1322
|
+
var global$M = global$V;
|
|
1323
1323
|
|
|
1324
1324
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1325
1325
|
var defineProperty$6 = Object.defineProperty;
|
|
1326
1326
|
|
|
1327
1327
|
var setGlobal$3 = function (key, value) {
|
|
1328
1328
|
try {
|
|
1329
|
-
defineProperty$6(global$
|
|
1329
|
+
defineProperty$6(global$M, key, { value: value, configurable: true, writable: true });
|
|
1330
1330
|
} catch (error) {
|
|
1331
|
-
global$
|
|
1331
|
+
global$M[key] = value;
|
|
1332
1332
|
} return value;
|
|
1333
1333
|
};
|
|
1334
1334
|
|
|
1335
|
-
var global$
|
|
1335
|
+
var global$L = global$V;
|
|
1336
1336
|
var setGlobal$2 = setGlobal$3;
|
|
1337
1337
|
|
|
1338
1338
|
var SHARED = '__core-js_shared__';
|
|
1339
|
-
var store$3 = global$
|
|
1339
|
+
var store$3 = global$L[SHARED] || setGlobal$2(SHARED, {});
|
|
1340
1340
|
|
|
1341
1341
|
var sharedStore = store$3;
|
|
1342
1342
|
|
|
@@ -1352,10 +1352,10 @@ var store$2 = sharedStore;
|
|
|
1352
1352
|
source: 'https://github.com/zloirock/core-js'
|
|
1353
1353
|
});
|
|
1354
1354
|
|
|
1355
|
-
var global$
|
|
1355
|
+
var global$K = global$V;
|
|
1356
1356
|
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
1357
1357
|
|
|
1358
|
-
var Object$3 = global$
|
|
1358
|
+
var Object$3 = global$K.Object;
|
|
1359
1359
|
|
|
1360
1360
|
// `ToObject` abstract operation
|
|
1361
1361
|
// https://tc39.es/ecma262/#sec-toobject
|
|
@@ -1363,10 +1363,10 @@ var toObject$9 = function (argument) {
|
|
|
1363
1363
|
return Object$3(requireObjectCoercible$2(argument));
|
|
1364
1364
|
};
|
|
1365
1365
|
|
|
1366
|
-
var uncurryThis$
|
|
1366
|
+
var uncurryThis$w = functionUncurryThis;
|
|
1367
1367
|
var toObject$8 = toObject$9;
|
|
1368
1368
|
|
|
1369
|
-
var hasOwnProperty$1 = uncurryThis$
|
|
1369
|
+
var hasOwnProperty$1 = uncurryThis$w({}.hasOwnProperty);
|
|
1370
1370
|
|
|
1371
1371
|
// `HasOwnProperty` abstract operation
|
|
1372
1372
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -1374,32 +1374,32 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
1374
1374
|
return hasOwnProperty$1(toObject$8(it), key);
|
|
1375
1375
|
};
|
|
1376
1376
|
|
|
1377
|
-
var uncurryThis$
|
|
1377
|
+
var uncurryThis$v = functionUncurryThis;
|
|
1378
1378
|
|
|
1379
|
-
var id$
|
|
1379
|
+
var id$2 = 0;
|
|
1380
1380
|
var postfix = Math.random();
|
|
1381
|
-
var toString$a = uncurryThis$
|
|
1381
|
+
var toString$a = uncurryThis$v(1.0.toString);
|
|
1382
1382
|
|
|
1383
1383
|
var uid$3 = function (key) {
|
|
1384
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$
|
|
1384
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id$2 + postfix, 36);
|
|
1385
1385
|
};
|
|
1386
1386
|
|
|
1387
|
-
var global$
|
|
1387
|
+
var global$J = global$V;
|
|
1388
1388
|
var shared$3 = shared$4.exports;
|
|
1389
|
-
var hasOwn$
|
|
1389
|
+
var hasOwn$f = hasOwnProperty_1;
|
|
1390
1390
|
var uid$2 = uid$3;
|
|
1391
1391
|
var NATIVE_SYMBOL = nativeSymbol;
|
|
1392
1392
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
1393
1393
|
|
|
1394
1394
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
1395
|
-
var Symbol$2 = global$
|
|
1395
|
+
var Symbol$2 = global$J.Symbol;
|
|
1396
1396
|
var symbolFor = Symbol$2 && Symbol$2['for'];
|
|
1397
1397
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$2;
|
|
1398
1398
|
|
|
1399
1399
|
var wellKnownSymbol$j = function (name) {
|
|
1400
|
-
if (!hasOwn$
|
|
1400
|
+
if (!hasOwn$f(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
1401
1401
|
var description = 'Symbol.' + name;
|
|
1402
|
-
if (NATIVE_SYMBOL && hasOwn$
|
|
1402
|
+
if (NATIVE_SYMBOL && hasOwn$f(Symbol$2, name)) {
|
|
1403
1403
|
WellKnownSymbolsStore[name] = Symbol$2[name];
|
|
1404
1404
|
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
1405
1405
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -1409,27 +1409,27 @@ var wellKnownSymbol$j = function (name) {
|
|
|
1409
1409
|
} return WellKnownSymbolsStore[name];
|
|
1410
1410
|
};
|
|
1411
1411
|
|
|
1412
|
-
var global$
|
|
1412
|
+
var global$I = global$V;
|
|
1413
1413
|
var call$c = functionCall;
|
|
1414
|
-
var isObject$
|
|
1414
|
+
var isObject$j = isObject$l;
|
|
1415
1415
|
var isSymbol$2 = isSymbol$3;
|
|
1416
1416
|
var getMethod$2 = getMethod$3;
|
|
1417
1417
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
1418
1418
|
var wellKnownSymbol$i = wellKnownSymbol$j;
|
|
1419
1419
|
|
|
1420
|
-
var TypeError$g = global$
|
|
1420
|
+
var TypeError$g = global$I.TypeError;
|
|
1421
1421
|
var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
|
|
1422
1422
|
|
|
1423
1423
|
// `ToPrimitive` abstract operation
|
|
1424
1424
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
1425
1425
|
var toPrimitive$2 = function (input, pref) {
|
|
1426
|
-
if (!isObject$
|
|
1426
|
+
if (!isObject$j(input) || isSymbol$2(input)) return input;
|
|
1427
1427
|
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
1428
1428
|
var result;
|
|
1429
1429
|
if (exoticToPrim) {
|
|
1430
1430
|
if (pref === undefined) pref = 'default';
|
|
1431
1431
|
result = call$c(exoticToPrim, input, pref);
|
|
1432
|
-
if (!isObject$
|
|
1432
|
+
if (!isObject$j(result) || isSymbol$2(result)) return result;
|
|
1433
1433
|
throw TypeError$g("Can't convert object to primitive value");
|
|
1434
1434
|
}
|
|
1435
1435
|
if (pref === undefined) pref = 'number';
|
|
@@ -1446,23 +1446,23 @@ var toPropertyKey$3 = function (argument) {
|
|
|
1446
1446
|
return isSymbol$1(key) ? key : key + '';
|
|
1447
1447
|
};
|
|
1448
1448
|
|
|
1449
|
-
var global$
|
|
1450
|
-
var isObject$
|
|
1449
|
+
var global$H = global$V;
|
|
1450
|
+
var isObject$i = isObject$l;
|
|
1451
1451
|
|
|
1452
|
-
var document$3 = global$
|
|
1452
|
+
var document$3 = global$H.document;
|
|
1453
1453
|
// typeof document.createElement is 'object' in old IE
|
|
1454
|
-
var EXISTS$1 = isObject$
|
|
1454
|
+
var EXISTS$1 = isObject$i(document$3) && isObject$i(document$3.createElement);
|
|
1455
1455
|
|
|
1456
1456
|
var documentCreateElement$2 = function (it) {
|
|
1457
1457
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
1458
1458
|
};
|
|
1459
1459
|
|
|
1460
1460
|
var DESCRIPTORS$d = descriptors$1;
|
|
1461
|
-
var fails$
|
|
1461
|
+
var fails$s = fails$x;
|
|
1462
1462
|
var createElement$1 = documentCreateElement$2;
|
|
1463
1463
|
|
|
1464
1464
|
// Thanks to IE8 for its funny defineProperty
|
|
1465
|
-
var ie8DomDefine = !DESCRIPTORS$d && !fails$
|
|
1465
|
+
var ie8DomDefine = !DESCRIPTORS$d && !fails$s(function () {
|
|
1466
1466
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1467
1467
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
1468
1468
|
get: function () { return 7; }
|
|
@@ -1475,7 +1475,7 @@ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
|
1475
1475
|
var createPropertyDescriptor$5 = createPropertyDescriptor$6;
|
|
1476
1476
|
var toIndexedObject$7 = toIndexedObject$8;
|
|
1477
1477
|
var toPropertyKey$2 = toPropertyKey$3;
|
|
1478
|
-
var hasOwn$
|
|
1478
|
+
var hasOwn$e = hasOwnProperty_1;
|
|
1479
1479
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
1480
1480
|
|
|
1481
1481
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -1489,17 +1489,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$c ? $getOwnPropertyDescriptor$1 :
|
|
|
1489
1489
|
if (IE8_DOM_DEFINE$1) try {
|
|
1490
1490
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
1491
1491
|
} catch (error) { /* empty */ }
|
|
1492
|
-
if (hasOwn$
|
|
1492
|
+
if (hasOwn$e(O, P)) return createPropertyDescriptor$5(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
1493
1493
|
};
|
|
1494
1494
|
|
|
1495
1495
|
var objectDefineProperty = {};
|
|
1496
1496
|
|
|
1497
1497
|
var DESCRIPTORS$b = descriptors$1;
|
|
1498
|
-
var fails$
|
|
1498
|
+
var fails$r = fails$x;
|
|
1499
1499
|
|
|
1500
1500
|
// V8 ~ Chrome 36-
|
|
1501
1501
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
1502
|
-
var v8PrototypeDefineBug = DESCRIPTORS$b && fails$
|
|
1502
|
+
var v8PrototypeDefineBug = DESCRIPTORS$b && fails$r(function () {
|
|
1503
1503
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1504
1504
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
1505
1505
|
value: 42,
|
|
@@ -1507,26 +1507,26 @@ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$p(function () {
|
|
|
1507
1507
|
}).prototype != 42;
|
|
1508
1508
|
});
|
|
1509
1509
|
|
|
1510
|
-
var global$
|
|
1511
|
-
var isObject$
|
|
1510
|
+
var global$G = global$V;
|
|
1511
|
+
var isObject$h = isObject$l;
|
|
1512
1512
|
|
|
1513
|
-
var String$4 = global$
|
|
1514
|
-
var TypeError$f = global$
|
|
1513
|
+
var String$4 = global$G.String;
|
|
1514
|
+
var TypeError$f = global$G.TypeError;
|
|
1515
1515
|
|
|
1516
1516
|
// `Assert: Type(argument) is Object`
|
|
1517
|
-
var anObject$
|
|
1518
|
-
if (isObject$
|
|
1517
|
+
var anObject$f = function (argument) {
|
|
1518
|
+
if (isObject$h(argument)) return argument;
|
|
1519
1519
|
throw TypeError$f(String$4(argument) + ' is not an object');
|
|
1520
1520
|
};
|
|
1521
1521
|
|
|
1522
|
-
var global$
|
|
1522
|
+
var global$F = global$V;
|
|
1523
1523
|
var DESCRIPTORS$a = descriptors$1;
|
|
1524
1524
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
1525
1525
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
1526
|
-
var anObject$
|
|
1526
|
+
var anObject$e = anObject$f;
|
|
1527
1527
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
1528
1528
|
|
|
1529
|
-
var TypeError$e = global$
|
|
1529
|
+
var TypeError$e = global$F.TypeError;
|
|
1530
1530
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1531
1531
|
var $defineProperty = Object.defineProperty;
|
|
1532
1532
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -1538,9 +1538,9 @@ var WRITABLE = 'writable';
|
|
|
1538
1538
|
// `Object.defineProperty` method
|
|
1539
1539
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
1540
1540
|
objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
1541
|
-
anObject$
|
|
1541
|
+
anObject$e(O);
|
|
1542
1542
|
P = toPropertyKey$1(P);
|
|
1543
|
-
anObject$
|
|
1543
|
+
anObject$e(Attributes);
|
|
1544
1544
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
1545
1545
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
1546
1546
|
if (current && current[WRITABLE]) {
|
|
@@ -1553,9 +1553,9 @@ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
1553
1553
|
}
|
|
1554
1554
|
} return $defineProperty(O, P, Attributes);
|
|
1555
1555
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
1556
|
-
anObject$
|
|
1556
|
+
anObject$e(O);
|
|
1557
1557
|
P = toPropertyKey$1(P);
|
|
1558
|
-
anObject$
|
|
1558
|
+
anObject$e(Attributes);
|
|
1559
1559
|
if (IE8_DOM_DEFINE) try {
|
|
1560
1560
|
return $defineProperty(O, P, Attributes);
|
|
1561
1561
|
} catch (error) { /* empty */ }
|
|
@@ -1575,16 +1575,16 @@ var createNonEnumerableProperty$8 = DESCRIPTORS$9 ? function (object, key, value
|
|
|
1575
1575
|
return object;
|
|
1576
1576
|
};
|
|
1577
1577
|
|
|
1578
|
-
var redefine$
|
|
1578
|
+
var redefine$b = {exports: {}};
|
|
1579
1579
|
|
|
1580
|
-
var uncurryThis$
|
|
1581
|
-
var isCallable$
|
|
1580
|
+
var uncurryThis$u = functionUncurryThis;
|
|
1581
|
+
var isCallable$f = isCallable$l;
|
|
1582
1582
|
var store$1 = sharedStore;
|
|
1583
1583
|
|
|
1584
|
-
var functionToString$1 = uncurryThis$
|
|
1584
|
+
var functionToString$1 = uncurryThis$u(Function.toString);
|
|
1585
1585
|
|
|
1586
1586
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
1587
|
-
if (!isCallable$
|
|
1587
|
+
if (!isCallable$f(store$1.inspectSource)) {
|
|
1588
1588
|
store$1.inspectSource = function (it) {
|
|
1589
1589
|
return functionToString$1(it);
|
|
1590
1590
|
};
|
|
@@ -1592,13 +1592,13 @@ if (!isCallable$e(store$1.inspectSource)) {
|
|
|
1592
1592
|
|
|
1593
1593
|
var inspectSource$4 = store$1.inspectSource;
|
|
1594
1594
|
|
|
1595
|
-
var global$
|
|
1596
|
-
var isCallable$
|
|
1595
|
+
var global$E = global$V;
|
|
1596
|
+
var isCallable$e = isCallable$l;
|
|
1597
1597
|
var inspectSource$3 = inspectSource$4;
|
|
1598
1598
|
|
|
1599
|
-
var WeakMap$
|
|
1599
|
+
var WeakMap$2 = global$E.WeakMap;
|
|
1600
1600
|
|
|
1601
|
-
var nativeWeakMap = isCallable$
|
|
1601
|
+
var nativeWeakMap = isCallable$e(WeakMap$2) && /native code/.test(inspectSource$3(WeakMap$2));
|
|
1602
1602
|
|
|
1603
1603
|
var shared$2 = shared$4.exports;
|
|
1604
1604
|
var uid$1 = uid$3;
|
|
@@ -1611,19 +1611,19 @@ var sharedKey$3 = function (key) {
|
|
|
1611
1611
|
|
|
1612
1612
|
var hiddenKeys$5 = {};
|
|
1613
1613
|
|
|
1614
|
-
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
1615
|
-
var global$
|
|
1616
|
-
var uncurryThis$
|
|
1617
|
-
var isObject$
|
|
1614
|
+
var NATIVE_WEAK_MAP$1 = nativeWeakMap;
|
|
1615
|
+
var global$D = global$V;
|
|
1616
|
+
var uncurryThis$t = functionUncurryThis;
|
|
1617
|
+
var isObject$g = isObject$l;
|
|
1618
1618
|
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
1619
|
-
var hasOwn$
|
|
1619
|
+
var hasOwn$d = hasOwnProperty_1;
|
|
1620
1620
|
var shared$1 = sharedStore;
|
|
1621
1621
|
var sharedKey$2 = sharedKey$3;
|
|
1622
1622
|
var hiddenKeys$4 = hiddenKeys$5;
|
|
1623
1623
|
|
|
1624
1624
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
1625
|
-
var TypeError$d = global$
|
|
1626
|
-
var WeakMap = global$
|
|
1625
|
+
var TypeError$d = global$D.TypeError;
|
|
1626
|
+
var WeakMap$1 = global$D.WeakMap;
|
|
1627
1627
|
var set$1, get, has$3;
|
|
1628
1628
|
|
|
1629
1629
|
var enforce = function (it) {
|
|
@@ -1633,17 +1633,17 @@ var enforce = function (it) {
|
|
|
1633
1633
|
var getterFor = function (TYPE) {
|
|
1634
1634
|
return function (it) {
|
|
1635
1635
|
var state;
|
|
1636
|
-
if (!isObject$
|
|
1636
|
+
if (!isObject$g(it) || (state = get(it)).type !== TYPE) {
|
|
1637
1637
|
throw TypeError$d('Incompatible receiver, ' + TYPE + ' required');
|
|
1638
1638
|
} return state;
|
|
1639
1639
|
};
|
|
1640
1640
|
};
|
|
1641
1641
|
|
|
1642
|
-
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
1643
|
-
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
1644
|
-
var wmget = uncurryThis$
|
|
1645
|
-
var wmhas = uncurryThis$
|
|
1646
|
-
var wmset = uncurryThis$
|
|
1642
|
+
if (NATIVE_WEAK_MAP$1 || shared$1.state) {
|
|
1643
|
+
var store = shared$1.state || (shared$1.state = new WeakMap$1());
|
|
1644
|
+
var wmget = uncurryThis$t(store.get);
|
|
1645
|
+
var wmhas = uncurryThis$t(store.has);
|
|
1646
|
+
var wmset = uncurryThis$t(store.set);
|
|
1647
1647
|
set$1 = function (it, metadata) {
|
|
1648
1648
|
if (wmhas(store, it)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
|
|
1649
1649
|
metadata.facade = it;
|
|
@@ -1660,16 +1660,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
1660
1660
|
var STATE = sharedKey$2('state');
|
|
1661
1661
|
hiddenKeys$4[STATE] = true;
|
|
1662
1662
|
set$1 = function (it, metadata) {
|
|
1663
|
-
if (hasOwn$
|
|
1663
|
+
if (hasOwn$d(it, STATE)) throw new TypeError$d(OBJECT_ALREADY_INITIALIZED);
|
|
1664
1664
|
metadata.facade = it;
|
|
1665
1665
|
createNonEnumerableProperty$7(it, STATE, metadata);
|
|
1666
1666
|
return metadata;
|
|
1667
1667
|
};
|
|
1668
1668
|
get = function (it) {
|
|
1669
|
-
return hasOwn$
|
|
1669
|
+
return hasOwn$d(it, STATE) ? it[STATE] : {};
|
|
1670
1670
|
};
|
|
1671
1671
|
has$3 = function (it) {
|
|
1672
|
-
return hasOwn$
|
|
1672
|
+
return hasOwn$d(it, STATE);
|
|
1673
1673
|
};
|
|
1674
1674
|
}
|
|
1675
1675
|
|
|
@@ -1682,13 +1682,13 @@ var internalState = {
|
|
|
1682
1682
|
};
|
|
1683
1683
|
|
|
1684
1684
|
var DESCRIPTORS$8 = descriptors$1;
|
|
1685
|
-
var hasOwn$
|
|
1685
|
+
var hasOwn$c = hasOwnProperty_1;
|
|
1686
1686
|
|
|
1687
1687
|
var FunctionPrototype$2 = Function.prototype;
|
|
1688
1688
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1689
1689
|
var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
|
|
1690
1690
|
|
|
1691
|
-
var EXISTS = hasOwn$
|
|
1691
|
+
var EXISTS = hasOwn$c(FunctionPrototype$2, 'name');
|
|
1692
1692
|
// additional protection from minified / mangled / dropped function names
|
|
1693
1693
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
1694
1694
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$2, 'name').configurable));
|
|
@@ -1699,38 +1699,38 @@ var functionName = {
|
|
|
1699
1699
|
CONFIGURABLE: CONFIGURABLE
|
|
1700
1700
|
};
|
|
1701
1701
|
|
|
1702
|
-
var global$
|
|
1703
|
-
var isCallable$
|
|
1704
|
-
var hasOwn$
|
|
1702
|
+
var global$C = global$V;
|
|
1703
|
+
var isCallable$d = isCallable$l;
|
|
1704
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
1705
1705
|
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
1706
1706
|
var setGlobal$1 = setGlobal$3;
|
|
1707
1707
|
var inspectSource$2 = inspectSource$4;
|
|
1708
|
-
var InternalStateModule$
|
|
1708
|
+
var InternalStateModule$6 = internalState;
|
|
1709
1709
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
1710
1710
|
|
|
1711
|
-
var getInternalState$4 = InternalStateModule$
|
|
1712
|
-
var enforceInternalState = InternalStateModule$
|
|
1711
|
+
var getInternalState$4 = InternalStateModule$6.get;
|
|
1712
|
+
var enforceInternalState$1 = InternalStateModule$6.enforce;
|
|
1713
1713
|
var TEMPLATE = String(String).split('String');
|
|
1714
1714
|
|
|
1715
|
-
(redefine$
|
|
1715
|
+
(redefine$b.exports = function (O, key, value, options) {
|
|
1716
1716
|
var unsafe = options ? !!options.unsafe : false;
|
|
1717
1717
|
var simple = options ? !!options.enumerable : false;
|
|
1718
1718
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
1719
1719
|
var name = options && options.name !== undefined ? options.name : key;
|
|
1720
1720
|
var state;
|
|
1721
|
-
if (isCallable$
|
|
1721
|
+
if (isCallable$d(value)) {
|
|
1722
1722
|
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
1723
1723
|
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
1724
1724
|
}
|
|
1725
|
-
if (!hasOwn$
|
|
1725
|
+
if (!hasOwn$b(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
1726
1726
|
createNonEnumerableProperty$6(value, 'name', name);
|
|
1727
1727
|
}
|
|
1728
|
-
state = enforceInternalState(value);
|
|
1728
|
+
state = enforceInternalState$1(value);
|
|
1729
1729
|
if (!state.source) {
|
|
1730
1730
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
|
-
if (O === global$
|
|
1733
|
+
if (O === global$C) {
|
|
1734
1734
|
if (simple) O[key] = value;
|
|
1735
1735
|
else setGlobal$1(key, value);
|
|
1736
1736
|
return;
|
|
@@ -1743,7 +1743,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
1743
1743
|
else createNonEnumerableProperty$6(O, key, value);
|
|
1744
1744
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
1745
1745
|
})(Function.prototype, 'toString', function toString() {
|
|
1746
|
-
return isCallable$
|
|
1746
|
+
return isCallable$d(this) && getInternalState$4(this).source || inspectSource$2(this);
|
|
1747
1747
|
});
|
|
1748
1748
|
|
|
1749
1749
|
var objectGetOwnPropertyNames = {};
|
|
@@ -1823,22 +1823,22 @@ var arrayIncludes = {
|
|
|
1823
1823
|
indexOf: createMethod$5(false)
|
|
1824
1824
|
};
|
|
1825
1825
|
|
|
1826
|
-
var uncurryThis$
|
|
1827
|
-
var hasOwn$
|
|
1826
|
+
var uncurryThis$s = functionUncurryThis;
|
|
1827
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
1828
1828
|
var toIndexedObject$5 = toIndexedObject$8;
|
|
1829
1829
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
1830
1830
|
var hiddenKeys$3 = hiddenKeys$5;
|
|
1831
1831
|
|
|
1832
|
-
var push$7 = uncurryThis$
|
|
1832
|
+
var push$7 = uncurryThis$s([].push);
|
|
1833
1833
|
|
|
1834
1834
|
var objectKeysInternal = function (object, names) {
|
|
1835
1835
|
var O = toIndexedObject$5(object);
|
|
1836
1836
|
var i = 0;
|
|
1837
1837
|
var result = [];
|
|
1838
1838
|
var key;
|
|
1839
|
-
for (key in O) !hasOwn$
|
|
1839
|
+
for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$7(result, key);
|
|
1840
1840
|
// Don't enum bug & hidden keys
|
|
1841
|
-
while (names.length > i) if (hasOwn$
|
|
1841
|
+
while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
|
|
1842
1842
|
~indexOf$1(result, key) || push$7(result, key);
|
|
1843
1843
|
}
|
|
1844
1844
|
return result;
|
|
@@ -1873,21 +1873,21 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1873
1873
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1874
1874
|
|
|
1875
1875
|
var getBuiltIn$7 = getBuiltIn$a;
|
|
1876
|
-
var uncurryThis$
|
|
1876
|
+
var uncurryThis$r = functionUncurryThis;
|
|
1877
1877
|
var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;
|
|
1878
1878
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1879
|
-
var anObject$
|
|
1879
|
+
var anObject$d = anObject$f;
|
|
1880
1880
|
|
|
1881
|
-
var concat$1 = uncurryThis$
|
|
1881
|
+
var concat$1 = uncurryThis$r([].concat);
|
|
1882
1882
|
|
|
1883
1883
|
// all object keys, includes non-enumerable and symbols
|
|
1884
1884
|
var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1885
|
-
var keys = getOwnPropertyNamesModule$1.f(anObject$
|
|
1885
|
+
var keys = getOwnPropertyNamesModule$1.f(anObject$d(it));
|
|
1886
1886
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1887
1887
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
1888
1888
|
};
|
|
1889
1889
|
|
|
1890
|
-
var hasOwn$
|
|
1890
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
1891
1891
|
var ownKeys = ownKeys$1;
|
|
1892
1892
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1893
1893
|
var definePropertyModule$4 = objectDefineProperty;
|
|
@@ -1898,42 +1898,42 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
|
1898
1898
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1899
1899
|
for (var i = 0; i < keys.length; i++) {
|
|
1900
1900
|
var key = keys[i];
|
|
1901
|
-
if (!hasOwn$
|
|
1901
|
+
if (!hasOwn$9(target, key) && !(exceptions && hasOwn$9(exceptions, key))) {
|
|
1902
1902
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
1905
|
};
|
|
1906
1906
|
|
|
1907
|
-
var fails$
|
|
1908
|
-
var isCallable$
|
|
1907
|
+
var fails$q = fails$x;
|
|
1908
|
+
var isCallable$c = isCallable$l;
|
|
1909
1909
|
|
|
1910
1910
|
var replacement = /#|\.prototype\./;
|
|
1911
1911
|
|
|
1912
|
-
var isForced$
|
|
1912
|
+
var isForced$4 = function (feature, detection) {
|
|
1913
1913
|
var value = data$1[normalize(feature)];
|
|
1914
1914
|
return value == POLYFILL ? true
|
|
1915
1915
|
: value == NATIVE ? false
|
|
1916
|
-
: isCallable$
|
|
1916
|
+
: isCallable$c(detection) ? fails$q(detection)
|
|
1917
1917
|
: !!detection;
|
|
1918
1918
|
};
|
|
1919
1919
|
|
|
1920
|
-
var normalize = isForced$
|
|
1920
|
+
var normalize = isForced$4.normalize = function (string) {
|
|
1921
1921
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
1922
1922
|
};
|
|
1923
1923
|
|
|
1924
|
-
var data$1 = isForced$
|
|
1925
|
-
var NATIVE = isForced$
|
|
1926
|
-
var POLYFILL = isForced$
|
|
1924
|
+
var data$1 = isForced$4.data = {};
|
|
1925
|
+
var NATIVE = isForced$4.NATIVE = 'N';
|
|
1926
|
+
var POLYFILL = isForced$4.POLYFILL = 'P';
|
|
1927
1927
|
|
|
1928
|
-
var isForced_1 = isForced$
|
|
1928
|
+
var isForced_1 = isForced$4;
|
|
1929
1929
|
|
|
1930
|
-
var global$
|
|
1930
|
+
var global$B = global$V;
|
|
1931
1931
|
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
1932
1932
|
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1933
|
-
var redefine$
|
|
1933
|
+
var redefine$a = redefine$b.exports;
|
|
1934
1934
|
var setGlobal = setGlobal$3;
|
|
1935
1935
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1936
|
-
var isForced$
|
|
1936
|
+
var isForced$3 = isForced_1;
|
|
1937
1937
|
|
|
1938
1938
|
/*
|
|
1939
1939
|
options.target - name of the target object
|
|
@@ -1956,11 +1956,11 @@ var _export = function (options, source) {
|
|
|
1956
1956
|
var STATIC = options.stat;
|
|
1957
1957
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1958
1958
|
if (GLOBAL) {
|
|
1959
|
-
target = global$
|
|
1959
|
+
target = global$B;
|
|
1960
1960
|
} else if (STATIC) {
|
|
1961
|
-
target = global$
|
|
1961
|
+
target = global$B[TARGET] || setGlobal(TARGET, {});
|
|
1962
1962
|
} else {
|
|
1963
|
-
target = (global$
|
|
1963
|
+
target = (global$B[TARGET] || {}).prototype;
|
|
1964
1964
|
}
|
|
1965
1965
|
if (target) for (key in source) {
|
|
1966
1966
|
sourceProperty = source[key];
|
|
@@ -1968,7 +1968,7 @@ var _export = function (options, source) {
|
|
|
1968
1968
|
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
1969
1969
|
targetProperty = descriptor && descriptor.value;
|
|
1970
1970
|
} else targetProperty = target[key];
|
|
1971
|
-
FORCED = isForced$
|
|
1971
|
+
FORCED = isForced$3(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1972
1972
|
// contained in target
|
|
1973
1973
|
if (!FORCED && targetProperty !== undefined) {
|
|
1974
1974
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
@@ -1979,7 +1979,7 @@ var _export = function (options, source) {
|
|
|
1979
1979
|
createNonEnumerableProperty$5(sourceProperty, 'sham', true);
|
|
1980
1980
|
}
|
|
1981
1981
|
// extend global
|
|
1982
|
-
redefine$
|
|
1982
|
+
redefine$a(target, key, sourceProperty, options);
|
|
1983
1983
|
}
|
|
1984
1984
|
};
|
|
1985
1985
|
|
|
@@ -1997,12 +1997,12 @@ var createProperty$3 = function (object, key, value) {
|
|
|
1997
1997
|
else object[propertyKey] = value;
|
|
1998
1998
|
};
|
|
1999
1999
|
|
|
2000
|
-
var global$
|
|
2000
|
+
var global$A = global$V;
|
|
2001
2001
|
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
2002
2002
|
var lengthOfArrayLike$6 = lengthOfArrayLike$8;
|
|
2003
2003
|
var createProperty$2 = createProperty$3;
|
|
2004
2004
|
|
|
2005
|
-
var Array$4 = global$
|
|
2005
|
+
var Array$4 = global$A.Array;
|
|
2006
2006
|
var max$1 = Math.max;
|
|
2007
2007
|
|
|
2008
2008
|
var arraySliceSimple = function (O, start, end) {
|
|
@@ -2041,9 +2041,9 @@ objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {
|
|
|
2041
2041
|
};
|
|
2042
2042
|
|
|
2043
2043
|
// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
|
|
2044
|
-
var fails$
|
|
2044
|
+
var fails$p = fails$x;
|
|
2045
2045
|
|
|
2046
|
-
var arrayBufferNonExtensible = fails$
|
|
2046
|
+
var arrayBufferNonExtensible = fails$p(function () {
|
|
2047
2047
|
if (typeof ArrayBuffer == 'function') {
|
|
2048
2048
|
var buffer = new ArrayBuffer(8);
|
|
2049
2049
|
// eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
|
|
@@ -2051,59 +2051,59 @@ var arrayBufferNonExtensible = fails$n(function () {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
});
|
|
2053
2053
|
|
|
2054
|
-
var fails$
|
|
2055
|
-
var isObject$
|
|
2054
|
+
var fails$o = fails$x;
|
|
2055
|
+
var isObject$f = isObject$l;
|
|
2056
2056
|
var classof$8 = classofRaw$1;
|
|
2057
2057
|
var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
|
|
2058
2058
|
|
|
2059
2059
|
// eslint-disable-next-line es/no-object-isextensible -- safe
|
|
2060
2060
|
var $isExtensible = Object.isExtensible;
|
|
2061
|
-
var FAILS_ON_PRIMITIVES$
|
|
2061
|
+
var FAILS_ON_PRIMITIVES$3 = fails$o(function () { $isExtensible(1); });
|
|
2062
2062
|
|
|
2063
2063
|
// `Object.isExtensible` method
|
|
2064
2064
|
// https://tc39.es/ecma262/#sec-object.isextensible
|
|
2065
|
-
var objectIsExtensible = (FAILS_ON_PRIMITIVES$
|
|
2066
|
-
if (!isObject$
|
|
2065
|
+
var objectIsExtensible = (FAILS_ON_PRIMITIVES$3 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
|
|
2066
|
+
if (!isObject$f(it)) return false;
|
|
2067
2067
|
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$8(it) == 'ArrayBuffer') return false;
|
|
2068
2068
|
return $isExtensible ? $isExtensible(it) : true;
|
|
2069
2069
|
} : $isExtensible;
|
|
2070
2070
|
|
|
2071
|
-
var fails$
|
|
2071
|
+
var fails$n = fails$x;
|
|
2072
2072
|
|
|
2073
|
-
var freezing = !fails$
|
|
2073
|
+
var freezing = !fails$n(function () {
|
|
2074
2074
|
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
|
|
2075
2075
|
return Object.isExtensible(Object.preventExtensions({}));
|
|
2076
2076
|
});
|
|
2077
2077
|
|
|
2078
|
-
var $$
|
|
2079
|
-
var uncurryThis$
|
|
2078
|
+
var $$o = _export;
|
|
2079
|
+
var uncurryThis$q = functionUncurryThis;
|
|
2080
2080
|
var hiddenKeys$1 = hiddenKeys$5;
|
|
2081
|
-
var isObject$
|
|
2082
|
-
var hasOwn$
|
|
2081
|
+
var isObject$e = isObject$l;
|
|
2082
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
2083
2083
|
var defineProperty$5 = objectDefineProperty.f;
|
|
2084
2084
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
2085
2085
|
var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
|
|
2086
|
-
var isExtensible = objectIsExtensible;
|
|
2086
|
+
var isExtensible$1 = objectIsExtensible;
|
|
2087
2087
|
var uid = uid$3;
|
|
2088
|
-
var FREEZING$
|
|
2088
|
+
var FREEZING$2 = freezing;
|
|
2089
2089
|
|
|
2090
2090
|
var REQUIRED = false;
|
|
2091
2091
|
var METADATA = uid('meta');
|
|
2092
|
-
var id = 0;
|
|
2092
|
+
var id$1 = 0;
|
|
2093
2093
|
|
|
2094
2094
|
var setMetadata = function (it) {
|
|
2095
2095
|
defineProperty$5(it, METADATA, { value: {
|
|
2096
|
-
objectID: 'O' + id++, // object ID
|
|
2096
|
+
objectID: 'O' + id$1++, // object ID
|
|
2097
2097
|
weakData: {} // weak collections IDs
|
|
2098
2098
|
} });
|
|
2099
2099
|
};
|
|
2100
2100
|
|
|
2101
2101
|
var fastKey = function (it, create) {
|
|
2102
2102
|
// return a primitive with prefix
|
|
2103
|
-
if (!isObject$
|
|
2104
|
-
if (!hasOwn$
|
|
2103
|
+
if (!isObject$e(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
|
2104
|
+
if (!hasOwn$8(it, METADATA)) {
|
|
2105
2105
|
// can't set metadata to uncaught frozen object
|
|
2106
|
-
if (!isExtensible(it)) return 'F';
|
|
2106
|
+
if (!isExtensible$1(it)) return 'F';
|
|
2107
2107
|
// not necessary to add metadata
|
|
2108
2108
|
if (!create) return 'E';
|
|
2109
2109
|
// add missing metadata
|
|
@@ -2112,10 +2112,10 @@ var fastKey = function (it, create) {
|
|
|
2112
2112
|
} return it[METADATA].objectID;
|
|
2113
2113
|
};
|
|
2114
2114
|
|
|
2115
|
-
var getWeakData = function (it, create) {
|
|
2116
|
-
if (!hasOwn$
|
|
2115
|
+
var getWeakData$1 = function (it, create) {
|
|
2116
|
+
if (!hasOwn$8(it, METADATA)) {
|
|
2117
2117
|
// can't set metadata to uncaught frozen object
|
|
2118
|
-
if (!isExtensible(it)) return true;
|
|
2118
|
+
if (!isExtensible$1(it)) return true;
|
|
2119
2119
|
// not necessary to add metadata
|
|
2120
2120
|
if (!create) return false;
|
|
2121
2121
|
// add missing metadata
|
|
@@ -2125,8 +2125,8 @@ var getWeakData = function (it, create) {
|
|
|
2125
2125
|
};
|
|
2126
2126
|
|
|
2127
2127
|
// add metadata on freeze-family methods calling
|
|
2128
|
-
var onFreeze$
|
|
2129
|
-
if (FREEZING$
|
|
2128
|
+
var onFreeze$2 = function (it) {
|
|
2129
|
+
if (FREEZING$2 && REQUIRED && isExtensible$1(it) && !hasOwn$8(it, METADATA)) setMetadata(it);
|
|
2130
2130
|
return it;
|
|
2131
2131
|
};
|
|
2132
2132
|
|
|
@@ -2134,7 +2134,7 @@ var enable = function () {
|
|
|
2134
2134
|
meta.enable = function () { /* empty */ };
|
|
2135
2135
|
REQUIRED = true;
|
|
2136
2136
|
var getOwnPropertyNames = getOwnPropertyNamesModule.f;
|
|
2137
|
-
var splice = uncurryThis$
|
|
2137
|
+
var splice = uncurryThis$q([].splice);
|
|
2138
2138
|
var test = {};
|
|
2139
2139
|
test[METADATA] = 1;
|
|
2140
2140
|
|
|
@@ -2150,7 +2150,7 @@ var enable = function () {
|
|
|
2150
2150
|
} return result;
|
|
2151
2151
|
};
|
|
2152
2152
|
|
|
2153
|
-
$$
|
|
2153
|
+
$$o({ target: 'Object', stat: true, forced: true }, {
|
|
2154
2154
|
getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
|
|
2155
2155
|
});
|
|
2156
2156
|
}
|
|
@@ -2159,27 +2159,27 @@ var enable = function () {
|
|
|
2159
2159
|
var meta = internalMetadata.exports = {
|
|
2160
2160
|
enable: enable,
|
|
2161
2161
|
fastKey: fastKey,
|
|
2162
|
-
getWeakData: getWeakData,
|
|
2163
|
-
onFreeze: onFreeze$
|
|
2162
|
+
getWeakData: getWeakData$1,
|
|
2163
|
+
onFreeze: onFreeze$2
|
|
2164
2164
|
};
|
|
2165
2165
|
|
|
2166
2166
|
hiddenKeys$1[METADATA] = true;
|
|
2167
2167
|
|
|
2168
|
-
var $$
|
|
2169
|
-
var isObject$
|
|
2170
|
-
var onFreeze = internalMetadata.exports.onFreeze;
|
|
2171
|
-
var FREEZING = freezing;
|
|
2172
|
-
var fails$
|
|
2168
|
+
var $$n = _export;
|
|
2169
|
+
var isObject$d = isObject$l;
|
|
2170
|
+
var onFreeze$1 = internalMetadata.exports.onFreeze;
|
|
2171
|
+
var FREEZING$1 = freezing;
|
|
2172
|
+
var fails$m = fails$x;
|
|
2173
2173
|
|
|
2174
2174
|
// eslint-disable-next-line es/no-object-seal -- safe
|
|
2175
2175
|
var $seal = Object.seal;
|
|
2176
|
-
var FAILS_ON_PRIMITIVES$
|
|
2176
|
+
var FAILS_ON_PRIMITIVES$2 = fails$m(function () { $seal(1); });
|
|
2177
2177
|
|
|
2178
2178
|
// `Object.seal` method
|
|
2179
2179
|
// https://tc39.es/ecma262/#sec-object.seal
|
|
2180
|
-
$$
|
|
2180
|
+
$$n({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2, sham: !FREEZING$1 }, {
|
|
2181
2181
|
seal: function seal(it) {
|
|
2182
|
-
return $seal && isObject$
|
|
2182
|
+
return $seal && isObject$d(it) ? $seal(onFreeze$1(it)) : it;
|
|
2183
2183
|
}
|
|
2184
2184
|
});
|
|
2185
2185
|
|
|
@@ -2194,21 +2194,21 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$
|
|
|
2194
2194
|
return call$a.apply(apply$3, arguments);
|
|
2195
2195
|
});
|
|
2196
2196
|
|
|
2197
|
-
var global$
|
|
2198
|
-
var isCallable$
|
|
2197
|
+
var global$z = global$V;
|
|
2198
|
+
var isCallable$b = isCallable$l;
|
|
2199
2199
|
|
|
2200
|
-
var String$3 = global$
|
|
2201
|
-
var TypeError$c = global$
|
|
2200
|
+
var String$3 = global$z.String;
|
|
2201
|
+
var TypeError$c = global$z.TypeError;
|
|
2202
2202
|
|
|
2203
2203
|
var aPossiblePrototype$1 = function (argument) {
|
|
2204
|
-
if (typeof argument == 'object' || isCallable$
|
|
2204
|
+
if (typeof argument == 'object' || isCallable$b(argument)) return argument;
|
|
2205
2205
|
throw TypeError$c("Can't set " + String$3(argument) + ' as a prototype');
|
|
2206
2206
|
};
|
|
2207
2207
|
|
|
2208
2208
|
/* eslint-disable no-proto -- safe */
|
|
2209
2209
|
|
|
2210
|
-
var uncurryThis$
|
|
2211
|
-
var anObject$
|
|
2210
|
+
var uncurryThis$p = functionUncurryThis;
|
|
2211
|
+
var anObject$c = anObject$f;
|
|
2212
2212
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
2213
2213
|
|
|
2214
2214
|
// `Object.setPrototypeOf` method
|
|
@@ -2221,12 +2221,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
2221
2221
|
var setter;
|
|
2222
2222
|
try {
|
|
2223
2223
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2224
|
-
setter = uncurryThis$
|
|
2224
|
+
setter = uncurryThis$p(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
2225
2225
|
setter(test, []);
|
|
2226
2226
|
CORRECT_SETTER = test instanceof Array;
|
|
2227
2227
|
} catch (error) { /* empty */ }
|
|
2228
2228
|
return function setPrototypeOf(O, proto) {
|
|
2229
|
-
anObject$
|
|
2229
|
+
anObject$c(O);
|
|
2230
2230
|
aPossiblePrototype(proto);
|
|
2231
2231
|
if (CORRECT_SETTER) setter(O, proto);
|
|
2232
2232
|
else O.__proto__ = proto;
|
|
@@ -2234,20 +2234,20 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
2234
2234
|
};
|
|
2235
2235
|
}() : undefined);
|
|
2236
2236
|
|
|
2237
|
-
var isCallable$
|
|
2238
|
-
var isObject$
|
|
2237
|
+
var isCallable$a = isCallable$l;
|
|
2238
|
+
var isObject$c = isObject$l;
|
|
2239
2239
|
var setPrototypeOf$3 = objectSetPrototypeOf;
|
|
2240
2240
|
|
|
2241
2241
|
// makes subclassing work correct for wrapped built-ins
|
|
2242
|
-
var inheritIfRequired$
|
|
2242
|
+
var inheritIfRequired$3 = function ($this, dummy, Wrapper) {
|
|
2243
2243
|
var NewTarget, NewTargetPrototype;
|
|
2244
2244
|
if (
|
|
2245
2245
|
// it can work only with native `setPrototypeOf`
|
|
2246
2246
|
setPrototypeOf$3 &&
|
|
2247
2247
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
2248
|
-
isCallable$
|
|
2248
|
+
isCallable$a(NewTarget = dummy.constructor) &&
|
|
2249
2249
|
NewTarget !== Wrapper &&
|
|
2250
|
-
isObject$
|
|
2250
|
+
isObject$c(NewTargetPrototype = NewTarget.prototype) &&
|
|
2251
2251
|
NewTargetPrototype !== Wrapper.prototype
|
|
2252
2252
|
) setPrototypeOf$3($this, NewTargetPrototype);
|
|
2253
2253
|
return $this;
|
|
@@ -2262,14 +2262,14 @@ test$1[TO_STRING_TAG$3] = 'z';
|
|
|
2262
2262
|
|
|
2263
2263
|
var toStringTagSupport = String(test$1) === '[object z]';
|
|
2264
2264
|
|
|
2265
|
-
var global$
|
|
2265
|
+
var global$y = global$V;
|
|
2266
2266
|
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
2267
|
-
var isCallable$
|
|
2267
|
+
var isCallable$9 = isCallable$l;
|
|
2268
2268
|
var classofRaw = classofRaw$1;
|
|
2269
2269
|
var wellKnownSymbol$g = wellKnownSymbol$j;
|
|
2270
2270
|
|
|
2271
2271
|
var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag');
|
|
2272
|
-
var Object$2 = global$
|
|
2272
|
+
var Object$2 = global$y.Object;
|
|
2273
2273
|
|
|
2274
2274
|
// ES3 wrong here
|
|
2275
2275
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -2290,13 +2290,13 @@ var classof$7 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
|
2290
2290
|
// builtinTag case
|
|
2291
2291
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
2292
2292
|
// ES3 arguments fallback
|
|
2293
|
-
: (result = classofRaw(O)) == 'Object' && isCallable$
|
|
2293
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
|
|
2294
2294
|
};
|
|
2295
2295
|
|
|
2296
|
-
var global$
|
|
2296
|
+
var global$x = global$V;
|
|
2297
2297
|
var classof$6 = classof$7;
|
|
2298
2298
|
|
|
2299
|
-
var String$2 = global$
|
|
2299
|
+
var String$2 = global$x.String;
|
|
2300
2300
|
|
|
2301
2301
|
var toString$9 = function (argument) {
|
|
2302
2302
|
if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
@@ -2309,20 +2309,20 @@ var normalizeStringArgument$1 = function (argument, $default) {
|
|
|
2309
2309
|
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$8(argument);
|
|
2310
2310
|
};
|
|
2311
2311
|
|
|
2312
|
-
var isObject$
|
|
2312
|
+
var isObject$b = isObject$l;
|
|
2313
2313
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
2314
2314
|
|
|
2315
2315
|
// `InstallErrorCause` abstract operation
|
|
2316
2316
|
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
2317
2317
|
var installErrorCause$1 = function (O, options) {
|
|
2318
|
-
if (isObject$
|
|
2318
|
+
if (isObject$b(options) && 'cause' in options) {
|
|
2319
2319
|
createNonEnumerableProperty$4(O, 'cause', options.cause);
|
|
2320
2320
|
}
|
|
2321
2321
|
};
|
|
2322
2322
|
|
|
2323
|
-
var uncurryThis$
|
|
2323
|
+
var uncurryThis$o = functionUncurryThis;
|
|
2324
2324
|
|
|
2325
|
-
var replace$7 = uncurryThis$
|
|
2325
|
+
var replace$7 = uncurryThis$o(''.replace);
|
|
2326
2326
|
|
|
2327
2327
|
var TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');
|
|
2328
2328
|
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
@@ -2334,10 +2334,10 @@ var clearErrorStack$1 = function (stack, dropEntries) {
|
|
|
2334
2334
|
} return stack;
|
|
2335
2335
|
};
|
|
2336
2336
|
|
|
2337
|
-
var fails$
|
|
2337
|
+
var fails$l = fails$x;
|
|
2338
2338
|
var createPropertyDescriptor$2 = createPropertyDescriptor$6;
|
|
2339
2339
|
|
|
2340
|
-
var errorStackInstallable = !fails$
|
|
2340
|
+
var errorStackInstallable = !fails$l(function () {
|
|
2341
2341
|
var error = Error('a');
|
|
2342
2342
|
if (!('stack' in error)) return true;
|
|
2343
2343
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
@@ -2346,12 +2346,12 @@ var errorStackInstallable = !fails$j(function () {
|
|
|
2346
2346
|
});
|
|
2347
2347
|
|
|
2348
2348
|
var getBuiltIn$6 = getBuiltIn$a;
|
|
2349
|
-
var hasOwn$
|
|
2349
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
2350
2350
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
2351
2351
|
var isPrototypeOf$4 = objectIsPrototypeOf;
|
|
2352
2352
|
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
2353
2353
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
2354
|
-
var inheritIfRequired$
|
|
2354
|
+
var inheritIfRequired$2 = inheritIfRequired$3;
|
|
2355
2355
|
var normalizeStringArgument = normalizeStringArgument$1;
|
|
2356
2356
|
var installErrorCause = installErrorCause$1;
|
|
2357
2357
|
var clearErrorStack = clearErrorStack$1;
|
|
@@ -2368,7 +2368,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
2368
2368
|
var OriginalErrorPrototype = OriginalError.prototype;
|
|
2369
2369
|
|
|
2370
2370
|
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
2371
|
-
if (hasOwn$
|
|
2371
|
+
if (hasOwn$7(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
2372
2372
|
|
|
2373
2373
|
if (!FORCED) return OriginalError;
|
|
2374
2374
|
|
|
@@ -2379,7 +2379,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
2379
2379
|
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
2380
2380
|
if (message !== undefined) createNonEnumerableProperty$3(result, 'message', message);
|
|
2381
2381
|
if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty$3(result, 'stack', clearErrorStack(result.stack, 2));
|
|
2382
|
-
if (this && isPrototypeOf$4(OriginalErrorPrototype, this)) inheritIfRequired$
|
|
2382
|
+
if (this && isPrototypeOf$4(OriginalErrorPrototype, this)) inheritIfRequired$2(result, this, WrappedError);
|
|
2383
2383
|
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
2384
2384
|
return result;
|
|
2385
2385
|
});
|
|
@@ -2406,27 +2406,27 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
2406
2406
|
|
|
2407
2407
|
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
2408
2408
|
|
|
2409
|
-
var $$
|
|
2410
|
-
var global$
|
|
2409
|
+
var $$m = _export;
|
|
2410
|
+
var global$w = global$V;
|
|
2411
2411
|
var apply$2 = functionApply;
|
|
2412
2412
|
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
2413
2413
|
|
|
2414
2414
|
var WEB_ASSEMBLY = 'WebAssembly';
|
|
2415
|
-
var WebAssembly = global$
|
|
2415
|
+
var WebAssembly = global$w[WEB_ASSEMBLY];
|
|
2416
2416
|
|
|
2417
2417
|
var FORCED$5 = Error('e', { cause: 7 }).cause !== 7;
|
|
2418
2418
|
|
|
2419
2419
|
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
2420
2420
|
var O = {};
|
|
2421
2421
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$5);
|
|
2422
|
-
$$
|
|
2422
|
+
$$m({ global: true, forced: FORCED$5 }, O);
|
|
2423
2423
|
};
|
|
2424
2424
|
|
|
2425
2425
|
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
2426
2426
|
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
2427
2427
|
var O = {};
|
|
2428
2428
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$5);
|
|
2429
|
-
$$
|
|
2429
|
+
$$m({ target: WEB_ASSEMBLY, stat: true, forced: FORCED$5 }, O);
|
|
2430
2430
|
}
|
|
2431
2431
|
};
|
|
2432
2432
|
|
|
@@ -2471,9 +2471,9 @@ var isArray$9 = Array.isArray || function isArray(argument) {
|
|
|
2471
2471
|
return classof$5(argument) == 'Array';
|
|
2472
2472
|
};
|
|
2473
2473
|
|
|
2474
|
-
var uncurryThis$
|
|
2475
|
-
var fails$
|
|
2476
|
-
var isCallable$
|
|
2474
|
+
var uncurryThis$n = functionUncurryThis;
|
|
2475
|
+
var fails$k = fails$x;
|
|
2476
|
+
var isCallable$8 = isCallable$l;
|
|
2477
2477
|
var classof$4 = classof$7;
|
|
2478
2478
|
var getBuiltIn$5 = getBuiltIn$a;
|
|
2479
2479
|
var inspectSource$1 = inspectSource$4;
|
|
@@ -2482,11 +2482,11 @@ var noop = function () { /* empty */ };
|
|
|
2482
2482
|
var empty = [];
|
|
2483
2483
|
var construct = getBuiltIn$5('Reflect', 'construct');
|
|
2484
2484
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
2485
|
-
var exec$5 = uncurryThis$
|
|
2485
|
+
var exec$5 = uncurryThis$n(constructorRegExp.exec);
|
|
2486
2486
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
2487
2487
|
|
|
2488
2488
|
var isConstructorModern = function isConstructor(argument) {
|
|
2489
|
-
if (!isCallable$
|
|
2489
|
+
if (!isCallable$8(argument)) return false;
|
|
2490
2490
|
try {
|
|
2491
2491
|
construct(noop, empty, argument);
|
|
2492
2492
|
return true;
|
|
@@ -2496,7 +2496,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
2496
2496
|
};
|
|
2497
2497
|
|
|
2498
2498
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
2499
|
-
if (!isCallable$
|
|
2499
|
+
if (!isCallable$8(argument)) return false;
|
|
2500
2500
|
switch (classof$4(argument)) {
|
|
2501
2501
|
case 'AsyncFunction':
|
|
2502
2502
|
case 'GeneratorFunction':
|
|
@@ -2516,7 +2516,7 @@ isConstructorLegacy.sham = true;
|
|
|
2516
2516
|
|
|
2517
2517
|
// `IsConstructor` abstract operation
|
|
2518
2518
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
2519
|
-
var isConstructor$3 = !construct || fails$
|
|
2519
|
+
var isConstructor$3 = !construct || fails$k(function () {
|
|
2520
2520
|
var called;
|
|
2521
2521
|
return isConstructorModern(isConstructorModern.call)
|
|
2522
2522
|
|| !isConstructorModern(Object)
|
|
@@ -2524,14 +2524,14 @@ var isConstructor$3 = !construct || fails$i(function () {
|
|
|
2524
2524
|
|| called;
|
|
2525
2525
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
2526
2526
|
|
|
2527
|
-
var global$
|
|
2527
|
+
var global$v = global$V;
|
|
2528
2528
|
var isArray$8 = isArray$9;
|
|
2529
2529
|
var isConstructor$2 = isConstructor$3;
|
|
2530
|
-
var isObject$
|
|
2530
|
+
var isObject$a = isObject$l;
|
|
2531
2531
|
var wellKnownSymbol$f = wellKnownSymbol$j;
|
|
2532
2532
|
|
|
2533
2533
|
var SPECIES$4 = wellKnownSymbol$f('species');
|
|
2534
|
-
var Array$3 = global$
|
|
2534
|
+
var Array$3 = global$v.Array;
|
|
2535
2535
|
|
|
2536
2536
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
2537
2537
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
@@ -2541,7 +2541,7 @@ var arraySpeciesConstructor$1 = function (originalArray) {
|
|
|
2541
2541
|
C = originalArray.constructor;
|
|
2542
2542
|
// cross-realm fallback
|
|
2543
2543
|
if (isConstructor$2(C) && (C === Array$3 || isArray$8(C.prototype))) C = undefined;
|
|
2544
|
-
else if (isObject$
|
|
2544
|
+
else if (isObject$a(C)) {
|
|
2545
2545
|
C = C[SPECIES$4];
|
|
2546
2546
|
if (C === null) C = undefined;
|
|
2547
2547
|
}
|
|
@@ -2556,7 +2556,7 @@ var arraySpeciesCreate$2 = function (originalArray, length) {
|
|
|
2556
2556
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
2557
2557
|
};
|
|
2558
2558
|
|
|
2559
|
-
var fails$
|
|
2559
|
+
var fails$j = fails$x;
|
|
2560
2560
|
var wellKnownSymbol$e = wellKnownSymbol$j;
|
|
2561
2561
|
var V8_VERSION$2 = engineV8Version;
|
|
2562
2562
|
|
|
@@ -2566,7 +2566,7 @@ var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
|
|
|
2566
2566
|
// We can't use this feature detection in V8 since it causes
|
|
2567
2567
|
// deoptimization and serious performance degradation
|
|
2568
2568
|
// https://github.com/zloirock/core-js/issues/677
|
|
2569
|
-
return V8_VERSION$2 >= 51 || !fails$
|
|
2569
|
+
return V8_VERSION$2 >= 51 || !fails$j(function () {
|
|
2570
2570
|
var array = [];
|
|
2571
2571
|
var constructor = array.constructor = {};
|
|
2572
2572
|
constructor[SPECIES$3] = function () {
|
|
@@ -2576,11 +2576,11 @@ var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
|
|
|
2576
2576
|
});
|
|
2577
2577
|
};
|
|
2578
2578
|
|
|
2579
|
-
var $$
|
|
2580
|
-
var global$
|
|
2581
|
-
var fails$
|
|
2579
|
+
var $$l = _export;
|
|
2580
|
+
var global$u = global$V;
|
|
2581
|
+
var fails$i = fails$x;
|
|
2582
2582
|
var isArray$7 = isArray$9;
|
|
2583
|
-
var isObject$
|
|
2583
|
+
var isObject$9 = isObject$l;
|
|
2584
2584
|
var toObject$7 = toObject$9;
|
|
2585
2585
|
var lengthOfArrayLike$5 = lengthOfArrayLike$8;
|
|
2586
2586
|
var createProperty$1 = createProperty$3;
|
|
@@ -2592,12 +2592,12 @@ var V8_VERSION$1 = engineV8Version;
|
|
|
2592
2592
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol$d('isConcatSpreadable');
|
|
2593
2593
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
2594
2594
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
2595
|
-
var TypeError$b = global$
|
|
2595
|
+
var TypeError$b = global$u.TypeError;
|
|
2596
2596
|
|
|
2597
2597
|
// We can't use this feature detection in V8 since it causes
|
|
2598
2598
|
// deoptimization and serious performance degradation
|
|
2599
2599
|
// https://github.com/zloirock/core-js/issues/679
|
|
2600
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$
|
|
2600
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$i(function () {
|
|
2601
2601
|
var array = [];
|
|
2602
2602
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
2603
2603
|
return array.concat()[0] !== array;
|
|
@@ -2606,7 +2606,7 @@ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$g(function () {
|
|
|
2606
2606
|
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$2('concat');
|
|
2607
2607
|
|
|
2608
2608
|
var isConcatSpreadable = function (O) {
|
|
2609
|
-
if (!isObject$
|
|
2609
|
+
if (!isObject$9(O)) return false;
|
|
2610
2610
|
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
2611
2611
|
return spreadable !== undefined ? !!spreadable : isArray$7(O);
|
|
2612
2612
|
};
|
|
@@ -2616,7 +2616,7 @@ var FORCED$4 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
|
|
2616
2616
|
// `Array.prototype.concat` method
|
|
2617
2617
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
2618
2618
|
// with adding support of @@isConcatSpreadable and @@species
|
|
2619
|
-
$$
|
|
2619
|
+
$$l({ target: 'Array', proto: true, forced: FORCED$4 }, {
|
|
2620
2620
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2621
2621
|
concat: function concat(arg) {
|
|
2622
2622
|
var O = toObject$7(this);
|
|
@@ -2673,13 +2673,13 @@ var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString()
|
|
|
2673
2673
|
};
|
|
2674
2674
|
|
|
2675
2675
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2676
|
-
var redefine$
|
|
2676
|
+
var redefine$9 = redefine$b.exports;
|
|
2677
2677
|
var toString$7 = objectToString;
|
|
2678
2678
|
|
|
2679
2679
|
// `Object.prototype.toString` method
|
|
2680
2680
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
2681
2681
|
if (!TO_STRING_TAG_SUPPORT) {
|
|
2682
|
-
redefine$
|
|
2682
|
+
redefine$9(Object.prototype, 'toString', toString$7, { unsafe: true });
|
|
2683
2683
|
}
|
|
2684
2684
|
|
|
2685
2685
|
// iterable DOM collections
|
|
@@ -2726,11 +2726,11 @@ var DOMTokenListPrototype$2 = classList && classList.constructor && classList.co
|
|
|
2726
2726
|
|
|
2727
2727
|
var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2;
|
|
2728
2728
|
|
|
2729
|
-
var uncurryThis$
|
|
2729
|
+
var uncurryThis$m = functionUncurryThis;
|
|
2730
2730
|
var aCallable$5 = aCallable$7;
|
|
2731
2731
|
var NATIVE_BIND = functionBindNative;
|
|
2732
2732
|
|
|
2733
|
-
var bind$b = uncurryThis$
|
|
2733
|
+
var bind$b = uncurryThis$m(uncurryThis$m.bind);
|
|
2734
2734
|
|
|
2735
2735
|
// optional / simple context binding
|
|
2736
2736
|
var functionBindContext = function (fn, that) {
|
|
@@ -2741,13 +2741,13 @@ var functionBindContext = function (fn, that) {
|
|
|
2741
2741
|
};
|
|
2742
2742
|
|
|
2743
2743
|
var bind$a = functionBindContext;
|
|
2744
|
-
var uncurryThis$
|
|
2744
|
+
var uncurryThis$l = functionUncurryThis;
|
|
2745
2745
|
var IndexedObject$3 = indexedObject;
|
|
2746
2746
|
var toObject$6 = toObject$9;
|
|
2747
2747
|
var lengthOfArrayLike$4 = lengthOfArrayLike$8;
|
|
2748
2748
|
var arraySpeciesCreate = arraySpeciesCreate$2;
|
|
2749
2749
|
|
|
2750
|
-
var push$6 = uncurryThis$
|
|
2750
|
+
var push$6 = uncurryThis$l([].push);
|
|
2751
2751
|
|
|
2752
2752
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
2753
2753
|
var createMethod$4 = function (TYPE) {
|
|
@@ -2814,11 +2814,11 @@ var arrayIteration = {
|
|
|
2814
2814
|
filterReject: createMethod$4(7)
|
|
2815
2815
|
};
|
|
2816
2816
|
|
|
2817
|
-
var fails$
|
|
2817
|
+
var fails$h = fails$x;
|
|
2818
2818
|
|
|
2819
2819
|
var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
|
|
2820
2820
|
var method = [][METHOD_NAME];
|
|
2821
|
-
return !!method && fails$
|
|
2821
|
+
return !!method && fails$h(function () {
|
|
2822
2822
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
2823
2823
|
method.call(null, argument || function () { return 1; }, 1);
|
|
2824
2824
|
});
|
|
@@ -2836,7 +2836,7 @@ var arrayForEach = !STRICT_METHOD$3 ? function forEach(callbackfn /* , thisArg *
|
|
|
2836
2836
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
2837
2837
|
} : [].forEach;
|
|
2838
2838
|
|
|
2839
|
-
var global$
|
|
2839
|
+
var global$t = global$V;
|
|
2840
2840
|
var DOMIterables$1 = domIterables;
|
|
2841
2841
|
var DOMTokenListPrototype$1 = domTokenListPrototype;
|
|
2842
2842
|
var forEach$1 = arrayForEach;
|
|
@@ -2853,7 +2853,7 @@ var handlePrototype$1 = function (CollectionPrototype) {
|
|
|
2853
2853
|
|
|
2854
2854
|
for (var COLLECTION_NAME$1 in DOMIterables$1) {
|
|
2855
2855
|
if (DOMIterables$1[COLLECTION_NAME$1]) {
|
|
2856
|
-
handlePrototype$1(global$
|
|
2856
|
+
handlePrototype$1(global$t[COLLECTION_NAME$1] && global$t[COLLECTION_NAME$1].prototype);
|
|
2857
2857
|
}
|
|
2858
2858
|
}
|
|
2859
2859
|
|
|
@@ -2869,27 +2869,27 @@ var objectKeys$3 = Object.keys || function keys(O) {
|
|
|
2869
2869
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
2870
2870
|
};
|
|
2871
2871
|
|
|
2872
|
-
var $$
|
|
2872
|
+
var $$k = _export;
|
|
2873
2873
|
var toObject$5 = toObject$9;
|
|
2874
2874
|
var nativeKeys = objectKeys$3;
|
|
2875
|
-
var fails$
|
|
2875
|
+
var fails$g = fails$x;
|
|
2876
2876
|
|
|
2877
|
-
var FAILS_ON_PRIMITIVES = fails$
|
|
2877
|
+
var FAILS_ON_PRIMITIVES$1 = fails$g(function () { nativeKeys(1); });
|
|
2878
2878
|
|
|
2879
2879
|
// `Object.keys` method
|
|
2880
2880
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
2881
|
-
$$
|
|
2881
|
+
$$k({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1 }, {
|
|
2882
2882
|
keys: function keys(it) {
|
|
2883
2883
|
return nativeKeys(toObject$5(it));
|
|
2884
2884
|
}
|
|
2885
2885
|
});
|
|
2886
2886
|
|
|
2887
|
-
var anObject$
|
|
2887
|
+
var anObject$b = anObject$f;
|
|
2888
2888
|
|
|
2889
2889
|
// `RegExp.prototype.flags` getter implementation
|
|
2890
2890
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2891
2891
|
var regexpFlags$1 = function () {
|
|
2892
|
-
var that = anObject$
|
|
2892
|
+
var that = anObject$b(this);
|
|
2893
2893
|
var result = '';
|
|
2894
2894
|
if (that.global) result += 'g';
|
|
2895
2895
|
if (that.ignoreCase) result += 'i';
|
|
@@ -2900,13 +2900,13 @@ var regexpFlags$1 = function () {
|
|
|
2900
2900
|
return result;
|
|
2901
2901
|
};
|
|
2902
2902
|
|
|
2903
|
-
var fails$
|
|
2904
|
-
var global$
|
|
2903
|
+
var fails$f = fails$x;
|
|
2904
|
+
var global$s = global$V;
|
|
2905
2905
|
|
|
2906
2906
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
2907
|
-
var $RegExp$2 = global$
|
|
2907
|
+
var $RegExp$2 = global$s.RegExp;
|
|
2908
2908
|
|
|
2909
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
2909
|
+
var UNSUPPORTED_Y$1 = fails$f(function () {
|
|
2910
2910
|
var re = $RegExp$2('a', 'y');
|
|
2911
2911
|
re.lastIndex = 2;
|
|
2912
2912
|
return re.exec('abcd') != null;
|
|
@@ -2914,11 +2914,11 @@ var UNSUPPORTED_Y$1 = fails$d(function () {
|
|
|
2914
2914
|
|
|
2915
2915
|
// UC Browser bug
|
|
2916
2916
|
// https://github.com/zloirock/core-js/issues/1008
|
|
2917
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$
|
|
2917
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$f(function () {
|
|
2918
2918
|
return !$RegExp$2('a', 'y').sticky;
|
|
2919
2919
|
});
|
|
2920
2920
|
|
|
2921
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
2921
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$f(function () {
|
|
2922
2922
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
2923
2923
|
var re = $RegExp$2('^r', 'gy');
|
|
2924
2924
|
re.lastIndex = 2;
|
|
@@ -2936,7 +2936,7 @@ var objectDefineProperties = {};
|
|
|
2936
2936
|
var DESCRIPTORS$7 = descriptors$1;
|
|
2937
2937
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
2938
2938
|
var definePropertyModule$2 = objectDefineProperty;
|
|
2939
|
-
var anObject$
|
|
2939
|
+
var anObject$a = anObject$f;
|
|
2940
2940
|
var toIndexedObject$3 = toIndexedObject$8;
|
|
2941
2941
|
var objectKeys$2 = objectKeys$3;
|
|
2942
2942
|
|
|
@@ -2944,7 +2944,7 @@ var objectKeys$2 = objectKeys$3;
|
|
|
2944
2944
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
2945
2945
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
2946
2946
|
objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2947
|
-
anObject$
|
|
2947
|
+
anObject$a(O);
|
|
2948
2948
|
var props = toIndexedObject$3(Properties);
|
|
2949
2949
|
var keys = objectKeys$2(Properties);
|
|
2950
2950
|
var length = keys.length;
|
|
@@ -2960,7 +2960,7 @@ var html$2 = getBuiltIn$4('document', 'documentElement');
|
|
|
2960
2960
|
|
|
2961
2961
|
/* global ActiveXObject -- old IE, WSH */
|
|
2962
2962
|
|
|
2963
|
-
var anObject$
|
|
2963
|
+
var anObject$9 = anObject$f;
|
|
2964
2964
|
var definePropertiesModule = objectDefineProperties;
|
|
2965
2965
|
var enumBugKeys = enumBugKeys$3;
|
|
2966
2966
|
var hiddenKeys = hiddenKeys$5;
|
|
@@ -3033,7 +3033,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
3033
3033
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
3034
3034
|
var result;
|
|
3035
3035
|
if (O !== null) {
|
|
3036
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
3036
|
+
EmptyConstructor[PROTOTYPE] = anObject$9(O);
|
|
3037
3037
|
result = new EmptyConstructor();
|
|
3038
3038
|
EmptyConstructor[PROTOTYPE] = null;
|
|
3039
3039
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -3042,24 +3042,24 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
3042
3042
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
3043
3043
|
};
|
|
3044
3044
|
|
|
3045
|
-
var fails$
|
|
3046
|
-
var global$
|
|
3045
|
+
var fails$e = fails$x;
|
|
3046
|
+
var global$r = global$V;
|
|
3047
3047
|
|
|
3048
3048
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3049
|
-
var $RegExp$1 = global$
|
|
3049
|
+
var $RegExp$1 = global$r.RegExp;
|
|
3050
3050
|
|
|
3051
|
-
var regexpUnsupportedDotAll = fails$
|
|
3051
|
+
var regexpUnsupportedDotAll = fails$e(function () {
|
|
3052
3052
|
var re = $RegExp$1('.', 's');
|
|
3053
3053
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
3054
3054
|
});
|
|
3055
3055
|
|
|
3056
|
-
var fails$
|
|
3057
|
-
var global$
|
|
3056
|
+
var fails$d = fails$x;
|
|
3057
|
+
var global$q = global$V;
|
|
3058
3058
|
|
|
3059
3059
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
3060
|
-
var $RegExp = global$
|
|
3060
|
+
var $RegExp = global$q.RegExp;
|
|
3061
3061
|
|
|
3062
|
-
var regexpUnsupportedNcg = fails$
|
|
3062
|
+
var regexpUnsupportedNcg = fails$d(function () {
|
|
3063
3063
|
var re = $RegExp('(?<a>b)', 'g');
|
|
3064
3064
|
return re.exec('b').groups.a !== 'b' ||
|
|
3065
3065
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -3068,7 +3068,7 @@ var regexpUnsupportedNcg = fails$b(function () {
|
|
|
3068
3068
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
3069
3069
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
3070
3070
|
var call$9 = functionCall;
|
|
3071
|
-
var uncurryThis$
|
|
3071
|
+
var uncurryThis$k = functionUncurryThis;
|
|
3072
3072
|
var toString$6 = toString$9;
|
|
3073
3073
|
var regexpFlags = regexpFlags$1;
|
|
3074
3074
|
var stickyHelpers = regexpStickyHelpers;
|
|
@@ -3081,10 +3081,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
3081
3081
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
3082
3082
|
var nativeExec = RegExp.prototype.exec;
|
|
3083
3083
|
var patchedExec = nativeExec;
|
|
3084
|
-
var charAt$5 = uncurryThis$
|
|
3085
|
-
var indexOf = uncurryThis$
|
|
3086
|
-
var replace$6 = uncurryThis$
|
|
3087
|
-
var stringSlice$3 = uncurryThis$
|
|
3084
|
+
var charAt$5 = uncurryThis$k(''.charAt);
|
|
3085
|
+
var indexOf = uncurryThis$k(''.indexOf);
|
|
3086
|
+
var replace$6 = uncurryThis$k(''.replace);
|
|
3087
|
+
var stringSlice$3 = uncurryThis$k(''.slice);
|
|
3088
3088
|
|
|
3089
3089
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
3090
3090
|
var re1 = /a/;
|
|
@@ -3182,23 +3182,23 @@ if (PATCH) {
|
|
|
3182
3182
|
|
|
3183
3183
|
var regexpExec = patchedExec;
|
|
3184
3184
|
|
|
3185
|
-
var $$
|
|
3185
|
+
var $$j = _export;
|
|
3186
3186
|
var exec$4 = regexpExec;
|
|
3187
3187
|
|
|
3188
3188
|
// `RegExp.prototype.exec` method
|
|
3189
3189
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
3190
|
-
$$
|
|
3190
|
+
$$j({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
|
|
3191
3191
|
exec: exec$4
|
|
3192
3192
|
});
|
|
3193
3193
|
|
|
3194
3194
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3195
3195
|
|
|
3196
|
-
var $$
|
|
3197
|
-
var global$
|
|
3196
|
+
var $$i = _export;
|
|
3197
|
+
var global$p = global$V;
|
|
3198
3198
|
var call$8 = functionCall;
|
|
3199
|
-
var uncurryThis$
|
|
3200
|
-
var isCallable$
|
|
3201
|
-
var isObject$
|
|
3199
|
+
var uncurryThis$j = functionUncurryThis;
|
|
3200
|
+
var isCallable$7 = isCallable$l;
|
|
3201
|
+
var isObject$8 = isObject$l;
|
|
3202
3202
|
|
|
3203
3203
|
var DELEGATES_TO_EXEC = function () {
|
|
3204
3204
|
var execCalled = false;
|
|
@@ -3210,17 +3210,17 @@ var DELEGATES_TO_EXEC = function () {
|
|
|
3210
3210
|
return re.test('abc') === true && execCalled;
|
|
3211
3211
|
}();
|
|
3212
3212
|
|
|
3213
|
-
var Error$1 = global$
|
|
3214
|
-
var un$Test = uncurryThis$
|
|
3213
|
+
var Error$1 = global$p.Error;
|
|
3214
|
+
var un$Test = uncurryThis$j(/./.test);
|
|
3215
3215
|
|
|
3216
3216
|
// `RegExp.prototype.test` method
|
|
3217
3217
|
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
3218
|
-
$$
|
|
3218
|
+
$$i({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
3219
3219
|
test: function (str) {
|
|
3220
3220
|
var exec = this.exec;
|
|
3221
|
-
if (!isCallable$
|
|
3221
|
+
if (!isCallable$7(exec)) return un$Test(this, str);
|
|
3222
3222
|
var result = call$8(exec, this, str);
|
|
3223
|
-
if (result !== null && !isObject$
|
|
3223
|
+
if (result !== null && !isObject$8(result)) {
|
|
3224
3224
|
throw new Error$1('RegExp exec method returned something other than an Object or null');
|
|
3225
3225
|
}
|
|
3226
3226
|
return !!result;
|
|
@@ -3231,12 +3231,12 @@ $$g({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
|
3231
3231
|
var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
3232
3232
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
3233
3233
|
|
|
3234
|
-
var uncurryThis$
|
|
3234
|
+
var uncurryThis$i = functionUncurryThis;
|
|
3235
3235
|
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
3236
3236
|
var toString$5 = toString$9;
|
|
3237
3237
|
var whitespaces$2 = whitespaces$3;
|
|
3238
3238
|
|
|
3239
|
-
var replace$5 = uncurryThis$
|
|
3239
|
+
var replace$5 = uncurryThis$i(''.replace);
|
|
3240
3240
|
var whitespace = '[' + whitespaces$2 + ']';
|
|
3241
3241
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
3242
3242
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
@@ -3263,21 +3263,21 @@ var stringTrim = {
|
|
|
3263
3263
|
trim: createMethod$3(3)
|
|
3264
3264
|
};
|
|
3265
3265
|
|
|
3266
|
-
var global$
|
|
3267
|
-
var fails$
|
|
3268
|
-
var uncurryThis$
|
|
3266
|
+
var global$o = global$V;
|
|
3267
|
+
var fails$c = fails$x;
|
|
3268
|
+
var uncurryThis$h = functionUncurryThis;
|
|
3269
3269
|
var toString$4 = toString$9;
|
|
3270
3270
|
var trim$2 = stringTrim.trim;
|
|
3271
3271
|
var whitespaces$1 = whitespaces$3;
|
|
3272
3272
|
|
|
3273
|
-
var $parseInt$1 = global$
|
|
3274
|
-
var Symbol$1 = global$
|
|
3273
|
+
var $parseInt$1 = global$o.parseInt;
|
|
3274
|
+
var Symbol$1 = global$o.Symbol;
|
|
3275
3275
|
var ITERATOR$8 = Symbol$1 && Symbol$1.iterator;
|
|
3276
3276
|
var hex = /^[+-]?0x/i;
|
|
3277
|
-
var exec$3 = uncurryThis$
|
|
3277
|
+
var exec$3 = uncurryThis$h(hex.exec);
|
|
3278
3278
|
var FORCED$3 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
|
|
3279
3279
|
// MS Edge 18- broken with boxed symbols
|
|
3280
|
-
|| (ITERATOR$8 && !fails$
|
|
3280
|
+
|| (ITERATOR$8 && !fails$c(function () { $parseInt$1(Object(ITERATOR$8)); }));
|
|
3281
3281
|
|
|
3282
3282
|
// `parseInt` method
|
|
3283
3283
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
@@ -3286,32 +3286,32 @@ var numberParseInt = FORCED$3 ? function parseInt(string, radix) {
|
|
|
3286
3286
|
return $parseInt$1(S, (radix >>> 0) || (exec$3(hex, S) ? 16 : 10));
|
|
3287
3287
|
} : $parseInt$1;
|
|
3288
3288
|
|
|
3289
|
-
var $$
|
|
3289
|
+
var $$h = _export;
|
|
3290
3290
|
var $parseInt = numberParseInt;
|
|
3291
3291
|
|
|
3292
3292
|
// `parseInt` method
|
|
3293
3293
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
3294
|
-
$$
|
|
3294
|
+
$$h({ global: true, forced: parseInt != $parseInt }, {
|
|
3295
3295
|
parseInt: $parseInt
|
|
3296
3296
|
});
|
|
3297
3297
|
|
|
3298
|
-
var uncurryThis$
|
|
3298
|
+
var uncurryThis$g = functionUncurryThis;
|
|
3299
3299
|
|
|
3300
3300
|
// `thisNumberValue` abstract operation
|
|
3301
3301
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
3302
|
-
var thisNumberValue$1 = uncurryThis$
|
|
3302
|
+
var thisNumberValue$1 = uncurryThis$g(1.0.valueOf);
|
|
3303
3303
|
|
|
3304
3304
|
var DESCRIPTORS$6 = descriptors$1;
|
|
3305
|
-
var global$
|
|
3306
|
-
var uncurryThis$
|
|
3307
|
-
var isForced$
|
|
3308
|
-
var redefine$
|
|
3309
|
-
var hasOwn$
|
|
3310
|
-
var inheritIfRequired = inheritIfRequired$
|
|
3305
|
+
var global$n = global$V;
|
|
3306
|
+
var uncurryThis$f = functionUncurryThis;
|
|
3307
|
+
var isForced$2 = isForced_1;
|
|
3308
|
+
var redefine$8 = redefine$b.exports;
|
|
3309
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
3310
|
+
var inheritIfRequired$1 = inheritIfRequired$3;
|
|
3311
3311
|
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
3312
3312
|
var isSymbol = isSymbol$3;
|
|
3313
3313
|
var toPrimitive = toPrimitive$2;
|
|
3314
|
-
var fails$
|
|
3314
|
+
var fails$b = fails$x;
|
|
3315
3315
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
3316
3316
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
3317
3317
|
var defineProperty$4 = objectDefineProperty.f;
|
|
@@ -3319,11 +3319,11 @@ var thisNumberValue = thisNumberValue$1;
|
|
|
3319
3319
|
var trim$1 = stringTrim.trim;
|
|
3320
3320
|
|
|
3321
3321
|
var NUMBER = 'Number';
|
|
3322
|
-
var NativeNumber = global$
|
|
3322
|
+
var NativeNumber = global$n[NUMBER];
|
|
3323
3323
|
var NumberPrototype = NativeNumber.prototype;
|
|
3324
|
-
var TypeError$a = global$
|
|
3325
|
-
var arraySlice$4 = uncurryThis$
|
|
3326
|
-
var charCodeAt$3 = uncurryThis$
|
|
3324
|
+
var TypeError$a = global$n.TypeError;
|
|
3325
|
+
var arraySlice$4 = uncurryThis$f(''.slice);
|
|
3326
|
+
var charCodeAt$3 = uncurryThis$f(''.charCodeAt);
|
|
3327
3327
|
|
|
3328
3328
|
// `ToNumeric` abstract operation
|
|
3329
3329
|
// https://tc39.es/ecma262/#sec-tonumeric
|
|
@@ -3364,13 +3364,13 @@ var toNumber = function (argument) {
|
|
|
3364
3364
|
|
|
3365
3365
|
// `Number` constructor
|
|
3366
3366
|
// https://tc39.es/ecma262/#sec-number-constructor
|
|
3367
|
-
if (isForced$
|
|
3367
|
+
if (isForced$2(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
|
3368
3368
|
var NumberWrapper = function Number(value) {
|
|
3369
3369
|
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
3370
3370
|
var dummy = this;
|
|
3371
3371
|
// check on 1..constructor(foo) case
|
|
3372
|
-
return isPrototypeOf$3(NumberPrototype, dummy) && fails$
|
|
3373
|
-
? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
3372
|
+
return isPrototypeOf$3(NumberPrototype, dummy) && fails$b(function () { thisNumberValue(dummy); })
|
|
3373
|
+
? inheritIfRequired$1(Object(n), dummy, NumberWrapper) : n;
|
|
3374
3374
|
};
|
|
3375
3375
|
for (var keys = DESCRIPTORS$6 ? getOwnPropertyNames(NativeNumber) : (
|
|
3376
3376
|
// ES3:
|
|
@@ -3380,13 +3380,13 @@ if (isForced$1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNu
|
|
|
3380
3380
|
// ESNext
|
|
3381
3381
|
'fromString,range'
|
|
3382
3382
|
).split(','), j = 0, key; keys.length > j; j++) {
|
|
3383
|
-
if (hasOwn$
|
|
3383
|
+
if (hasOwn$6(NativeNumber, key = keys[j]) && !hasOwn$6(NumberWrapper, key)) {
|
|
3384
3384
|
defineProperty$4(NumberWrapper, key, getOwnPropertyDescriptor$1(NativeNumber, key));
|
|
3385
3385
|
}
|
|
3386
3386
|
}
|
|
3387
3387
|
NumberWrapper.prototype = NumberPrototype;
|
|
3388
3388
|
NumberPrototype.constructor = NumberWrapper;
|
|
3389
|
-
redefine$
|
|
3389
|
+
redefine$8(global$n, NUMBER, NumberWrapper);
|
|
3390
3390
|
}
|
|
3391
3391
|
|
|
3392
3392
|
function isPublicKey(value) {
|
|
@@ -3542,7 +3542,7 @@ function ValidateTransactionParameters(data) {
|
|
|
3542
3542
|
return errors;
|
|
3543
3543
|
}
|
|
3544
3544
|
|
|
3545
|
-
var $$
|
|
3545
|
+
var $$g = _export;
|
|
3546
3546
|
var $map = arrayIteration.map;
|
|
3547
3547
|
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
|
|
3548
3548
|
|
|
@@ -3551,7 +3551,7 @@ var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('map');
|
|
|
3551
3551
|
// `Array.prototype.map` method
|
|
3552
3552
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
3553
3553
|
// with adding support of @@species
|
|
3554
|
-
$$
|
|
3554
|
+
$$g({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
3555
3555
|
map: function map(callbackfn /* , thisArg */) {
|
|
3556
3556
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
3557
3557
|
}
|
|
@@ -3618,13 +3618,13 @@ var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
|
|
|
3618
3618
|
|
|
3619
3619
|
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
3620
3620
|
|
|
3621
|
-
var $$
|
|
3622
|
-
var uncurryThis$
|
|
3621
|
+
var $$f = _export;
|
|
3622
|
+
var uncurryThis$e = functionUncurryThis;
|
|
3623
3623
|
var aCallable$4 = aCallable$7;
|
|
3624
3624
|
var toObject$4 = toObject$9;
|
|
3625
3625
|
var lengthOfArrayLike$3 = lengthOfArrayLike$8;
|
|
3626
3626
|
var toString$3 = toString$9;
|
|
3627
|
-
var fails$
|
|
3627
|
+
var fails$a = fails$x;
|
|
3628
3628
|
var internalSort = arraySort$1;
|
|
3629
3629
|
var arrayMethodIsStrict$2 = arrayMethodIsStrict$4;
|
|
3630
3630
|
var FF = engineFfVersion;
|
|
@@ -3633,21 +3633,21 @@ var V8 = engineV8Version;
|
|
|
3633
3633
|
var WEBKIT = engineWebkitVersion;
|
|
3634
3634
|
|
|
3635
3635
|
var test = [];
|
|
3636
|
-
var un$Sort = uncurryThis$
|
|
3637
|
-
var push$5 = uncurryThis$
|
|
3636
|
+
var un$Sort = uncurryThis$e(test.sort);
|
|
3637
|
+
var push$5 = uncurryThis$e(test.push);
|
|
3638
3638
|
|
|
3639
3639
|
// IE8-
|
|
3640
|
-
var FAILS_ON_UNDEFINED = fails$
|
|
3640
|
+
var FAILS_ON_UNDEFINED = fails$a(function () {
|
|
3641
3641
|
test.sort(undefined);
|
|
3642
3642
|
});
|
|
3643
3643
|
// V8 bug
|
|
3644
|
-
var FAILS_ON_NULL = fails$
|
|
3644
|
+
var FAILS_ON_NULL = fails$a(function () {
|
|
3645
3645
|
test.sort(null);
|
|
3646
3646
|
});
|
|
3647
3647
|
// Old WebKit
|
|
3648
3648
|
var STRICT_METHOD$2 = arrayMethodIsStrict$2('sort');
|
|
3649
3649
|
|
|
3650
|
-
var STABLE_SORT = !fails$
|
|
3650
|
+
var STABLE_SORT = !fails$a(function () {
|
|
3651
3651
|
// feature detection can be too slow, so check engines versions
|
|
3652
3652
|
if (V8) return V8 < 70;
|
|
3653
3653
|
if (FF && FF > 3) return;
|
|
@@ -3695,7 +3695,7 @@ var getSortCompare = function (comparefn) {
|
|
|
3695
3695
|
|
|
3696
3696
|
// `Array.prototype.sort` method
|
|
3697
3697
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
3698
|
-
$$
|
|
3698
|
+
$$f({ target: 'Array', proto: true, forced: FORCED$2 }, {
|
|
3699
3699
|
sort: function sort(comparefn) {
|
|
3700
3700
|
if (comparefn !== undefined) aCallable$4(comparefn);
|
|
3701
3701
|
|
|
@@ -3723,7 +3723,7 @@ $$d({ target: 'Array', proto: true, forced: FORCED$2 }, {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
});
|
|
3725
3725
|
|
|
3726
|
-
var $$
|
|
3726
|
+
var $$e = _export;
|
|
3727
3727
|
var $filter = arrayIteration.filter;
|
|
3728
3728
|
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
|
|
3729
3729
|
|
|
@@ -3732,26 +3732,26 @@ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
|
|
3732
3732
|
// `Array.prototype.filter` method
|
|
3733
3733
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
3734
3734
|
// with adding support of @@species
|
|
3735
|
-
$$
|
|
3735
|
+
$$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
3736
3736
|
filter: function filter(callbackfn /* , thisArg */) {
|
|
3737
3737
|
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
3738
3738
|
}
|
|
3739
3739
|
});
|
|
3740
3740
|
|
|
3741
|
-
var $$
|
|
3742
|
-
var uncurryThis$
|
|
3741
|
+
var $$d = _export;
|
|
3742
|
+
var uncurryThis$d = functionUncurryThis;
|
|
3743
3743
|
var IndexedObject$2 = indexedObject;
|
|
3744
3744
|
var toIndexedObject$2 = toIndexedObject$8;
|
|
3745
3745
|
var arrayMethodIsStrict$1 = arrayMethodIsStrict$4;
|
|
3746
3746
|
|
|
3747
|
-
var un$Join = uncurryThis$
|
|
3747
|
+
var un$Join = uncurryThis$d([].join);
|
|
3748
3748
|
|
|
3749
3749
|
var ES3_STRINGS = IndexedObject$2 != Object;
|
|
3750
3750
|
var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
|
|
3751
3751
|
|
|
3752
3752
|
// `Array.prototype.join` method
|
|
3753
3753
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
3754
|
-
$$
|
|
3754
|
+
$$d({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
|
|
3755
3755
|
join: function join(separator) {
|
|
3756
3756
|
return un$Join(toIndexedObject$2(this), separator === undefined ? ',' : separator);
|
|
3757
3757
|
}
|
|
@@ -5174,26 +5174,26 @@ var fingerprint2 = {exports: {}};
|
|
|
5174
5174
|
|
|
5175
5175
|
var Fingerprint2 = fingerprint2.exports;
|
|
5176
5176
|
|
|
5177
|
-
var global$
|
|
5177
|
+
var global$m = global$V;
|
|
5178
5178
|
|
|
5179
|
-
var nativePromiseConstructor = global$
|
|
5179
|
+
var nativePromiseConstructor = global$m.Promise;
|
|
5180
5180
|
|
|
5181
|
-
var redefine$
|
|
5181
|
+
var redefine$7 = redefine$b.exports;
|
|
5182
5182
|
|
|
5183
|
-
var redefineAll$
|
|
5184
|
-
for (var key in src) redefine$
|
|
5183
|
+
var redefineAll$4 = function (target, src, options) {
|
|
5184
|
+
for (var key in src) redefine$7(target, key, src[key], options);
|
|
5185
5185
|
return target;
|
|
5186
5186
|
};
|
|
5187
5187
|
|
|
5188
5188
|
var defineProperty$3 = objectDefineProperty.f;
|
|
5189
|
-
var hasOwn$
|
|
5189
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
5190
5190
|
var wellKnownSymbol$c = wellKnownSymbol$j;
|
|
5191
5191
|
|
|
5192
5192
|
var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
|
|
5193
5193
|
|
|
5194
|
-
var setToStringTag$
|
|
5194
|
+
var setToStringTag$6 = function (target, TAG, STATIC) {
|
|
5195
5195
|
if (target && !STATIC) target = target.prototype;
|
|
5196
|
-
if (target && !hasOwn$
|
|
5196
|
+
if (target && !hasOwn$5(target, TO_STRING_TAG$1)) {
|
|
5197
5197
|
defineProperty$3(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
5198
5198
|
}
|
|
5199
5199
|
};
|
|
@@ -5217,12 +5217,12 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
5217
5217
|
}
|
|
5218
5218
|
};
|
|
5219
5219
|
|
|
5220
|
-
var global$
|
|
5220
|
+
var global$l = global$V;
|
|
5221
5221
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
5222
5222
|
|
|
5223
|
-
var TypeError$9 = global$
|
|
5223
|
+
var TypeError$9 = global$l.TypeError;
|
|
5224
5224
|
|
|
5225
|
-
var anInstance$
|
|
5225
|
+
var anInstance$5 = function (it, Prototype) {
|
|
5226
5226
|
if (isPrototypeOf$2(Prototype, it)) return it;
|
|
5227
5227
|
throw TypeError$9('Incorrect invocation');
|
|
5228
5228
|
};
|
|
@@ -5253,28 +5253,28 @@ var getIteratorMethod$4 = function (it) {
|
|
|
5253
5253
|
|| Iterators$3[classof$2(it)];
|
|
5254
5254
|
};
|
|
5255
5255
|
|
|
5256
|
-
var global$
|
|
5256
|
+
var global$k = global$V;
|
|
5257
5257
|
var call$7 = functionCall;
|
|
5258
5258
|
var aCallable$3 = aCallable$7;
|
|
5259
|
-
var anObject$
|
|
5259
|
+
var anObject$8 = anObject$f;
|
|
5260
5260
|
var tryToString$2 = tryToString$4;
|
|
5261
5261
|
var getIteratorMethod$3 = getIteratorMethod$4;
|
|
5262
5262
|
|
|
5263
|
-
var TypeError$8 = global$
|
|
5263
|
+
var TypeError$8 = global$k.TypeError;
|
|
5264
5264
|
|
|
5265
5265
|
var getIterator$3 = function (argument, usingIterator) {
|
|
5266
5266
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
|
|
5267
|
-
if (aCallable$3(iteratorMethod)) return anObject$
|
|
5267
|
+
if (aCallable$3(iteratorMethod)) return anObject$8(call$7(iteratorMethod, argument));
|
|
5268
5268
|
throw TypeError$8(tryToString$2(argument) + ' is not iterable');
|
|
5269
5269
|
};
|
|
5270
5270
|
|
|
5271
5271
|
var call$6 = functionCall;
|
|
5272
|
-
var anObject$
|
|
5272
|
+
var anObject$7 = anObject$f;
|
|
5273
5273
|
var getMethod = getMethod$3;
|
|
5274
5274
|
|
|
5275
5275
|
var iteratorClose$2 = function (iterator, kind, value) {
|
|
5276
5276
|
var innerResult, innerError;
|
|
5277
|
-
anObject$
|
|
5277
|
+
anObject$7(iterator);
|
|
5278
5278
|
try {
|
|
5279
5279
|
innerResult = getMethod(iterator, 'return');
|
|
5280
5280
|
if (!innerResult) {
|
|
@@ -5288,14 +5288,14 @@ var iteratorClose$2 = function (iterator, kind, value) {
|
|
|
5288
5288
|
}
|
|
5289
5289
|
if (kind === 'throw') throw value;
|
|
5290
5290
|
if (innerError) throw innerResult;
|
|
5291
|
-
anObject$
|
|
5291
|
+
anObject$7(innerResult);
|
|
5292
5292
|
return value;
|
|
5293
5293
|
};
|
|
5294
5294
|
|
|
5295
|
-
var global$
|
|
5295
|
+
var global$j = global$V;
|
|
5296
5296
|
var bind$9 = functionBindContext;
|
|
5297
5297
|
var call$5 = functionCall;
|
|
5298
|
-
var anObject$
|
|
5298
|
+
var anObject$6 = anObject$f;
|
|
5299
5299
|
var tryToString$1 = tryToString$4;
|
|
5300
5300
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
5301
5301
|
var lengthOfArrayLike$2 = lengthOfArrayLike$8;
|
|
@@ -5304,7 +5304,7 @@ var getIterator$2 = getIterator$3;
|
|
|
5304
5304
|
var getIteratorMethod$2 = getIteratorMethod$4;
|
|
5305
5305
|
var iteratorClose$1 = iteratorClose$2;
|
|
5306
5306
|
|
|
5307
|
-
var TypeError$7 = global$
|
|
5307
|
+
var TypeError$7 = global$j.TypeError;
|
|
5308
5308
|
|
|
5309
5309
|
var Result = function (stopped, result) {
|
|
5310
5310
|
this.stopped = stopped;
|
|
@@ -5313,7 +5313,7 @@ var Result = function (stopped, result) {
|
|
|
5313
5313
|
|
|
5314
5314
|
var ResultPrototype = Result.prototype;
|
|
5315
5315
|
|
|
5316
|
-
var iterate$
|
|
5316
|
+
var iterate$3 = function (iterable, unboundFunction, options) {
|
|
5317
5317
|
var that = options && options.that;
|
|
5318
5318
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
5319
5319
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
@@ -5328,7 +5328,7 @@ var iterate$1 = function (iterable, unboundFunction, options) {
|
|
|
5328
5328
|
|
|
5329
5329
|
var callFn = function (value) {
|
|
5330
5330
|
if (AS_ENTRIES) {
|
|
5331
|
-
anObject$
|
|
5331
|
+
anObject$6(value);
|
|
5332
5332
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
5333
5333
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
5334
5334
|
};
|
|
@@ -5381,7 +5381,7 @@ try {
|
|
|
5381
5381
|
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
5382
5382
|
} catch (error) { /* empty */ }
|
|
5383
5383
|
|
|
5384
|
-
var checkCorrectnessOfIteration$
|
|
5384
|
+
var checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) {
|
|
5385
5385
|
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
5386
5386
|
var ITERATION_SUPPORT = false;
|
|
5387
5387
|
try {
|
|
@@ -5398,11 +5398,11 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
5398
5398
|
return ITERATION_SUPPORT;
|
|
5399
5399
|
};
|
|
5400
5400
|
|
|
5401
|
-
var global$
|
|
5401
|
+
var global$i = global$V;
|
|
5402
5402
|
var isConstructor$1 = isConstructor$3;
|
|
5403
5403
|
var tryToString = tryToString$4;
|
|
5404
5404
|
|
|
5405
|
-
var TypeError$6 = global$
|
|
5405
|
+
var TypeError$6 = global$i.TypeError;
|
|
5406
5406
|
|
|
5407
5407
|
// `Assert: IsConstructor(argument) is true`
|
|
5408
5408
|
var aConstructor$1 = function (argument) {
|
|
@@ -5410,7 +5410,7 @@ var aConstructor$1 = function (argument) {
|
|
|
5410
5410
|
throw TypeError$6(tryToString(argument) + ' is not a constructor');
|
|
5411
5411
|
};
|
|
5412
5412
|
|
|
5413
|
-
var anObject$
|
|
5413
|
+
var anObject$5 = anObject$f;
|
|
5414
5414
|
var aConstructor = aConstructor$1;
|
|
5415
5415
|
var wellKnownSymbol$7 = wellKnownSymbol$j;
|
|
5416
5416
|
|
|
@@ -5419,18 +5419,18 @@ var SPECIES$1 = wellKnownSymbol$7('species');
|
|
|
5419
5419
|
// `SpeciesConstructor` abstract operation
|
|
5420
5420
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
5421
5421
|
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
5422
|
-
var C = anObject$
|
|
5422
|
+
var C = anObject$5(O).constructor;
|
|
5423
5423
|
var S;
|
|
5424
|
-
return C === undefined || (S = anObject$
|
|
5424
|
+
return C === undefined || (S = anObject$5(C)[SPECIES$1]) == undefined ? defaultConstructor : aConstructor(S);
|
|
5425
5425
|
};
|
|
5426
5426
|
|
|
5427
|
-
var uncurryThis$
|
|
5427
|
+
var uncurryThis$c = functionUncurryThis;
|
|
5428
5428
|
|
|
5429
|
-
var arraySlice$2 = uncurryThis$
|
|
5429
|
+
var arraySlice$2 = uncurryThis$c([].slice);
|
|
5430
5430
|
|
|
5431
|
-
var global$
|
|
5431
|
+
var global$h = global$V;
|
|
5432
5432
|
|
|
5433
|
-
var TypeError$5 = global$
|
|
5433
|
+
var TypeError$5 = global$h.TypeError;
|
|
5434
5434
|
|
|
5435
5435
|
var validateArgumentsLength$3 = function (passed, required) {
|
|
5436
5436
|
if (passed < required) throw TypeError$5('Not enough arguments');
|
|
@@ -5442,16 +5442,16 @@ var userAgent$2 = engineUserAgent;
|
|
|
5442
5442
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
5443
5443
|
|
|
5444
5444
|
var classof$1 = classofRaw$1;
|
|
5445
|
-
var global$
|
|
5445
|
+
var global$g = global$V;
|
|
5446
5446
|
|
|
5447
|
-
var engineIsNode = classof$1(global$
|
|
5447
|
+
var engineIsNode = classof$1(global$g.process) == 'process';
|
|
5448
5448
|
|
|
5449
|
-
var global$
|
|
5449
|
+
var global$f = global$V;
|
|
5450
5450
|
var apply$1 = functionApply;
|
|
5451
5451
|
var bind$8 = functionBindContext;
|
|
5452
|
-
var isCallable$
|
|
5453
|
-
var hasOwn$
|
|
5454
|
-
var fails$
|
|
5452
|
+
var isCallable$6 = isCallable$l;
|
|
5453
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
5454
|
+
var fails$9 = fails$x;
|
|
5455
5455
|
var html = html$2;
|
|
5456
5456
|
var arraySlice$1 = arraySlice$2;
|
|
5457
5457
|
var createElement = documentCreateElement$2;
|
|
@@ -5459,13 +5459,13 @@ var validateArgumentsLength$2 = validateArgumentsLength$3;
|
|
|
5459
5459
|
var IS_IOS$1 = engineIsIos;
|
|
5460
5460
|
var IS_NODE$3 = engineIsNode;
|
|
5461
5461
|
|
|
5462
|
-
var set = global$
|
|
5463
|
-
var clear = global$
|
|
5464
|
-
var process$3 = global$
|
|
5465
|
-
var Dispatch = global$
|
|
5466
|
-
var Function$1 = global$
|
|
5467
|
-
var MessageChannel = global$
|
|
5468
|
-
var String$1 = global$
|
|
5462
|
+
var set = global$f.setImmediate;
|
|
5463
|
+
var clear = global$f.clearImmediate;
|
|
5464
|
+
var process$3 = global$f.process;
|
|
5465
|
+
var Dispatch = global$f.Dispatch;
|
|
5466
|
+
var Function$1 = global$f.Function;
|
|
5467
|
+
var MessageChannel = global$f.MessageChannel;
|
|
5468
|
+
var String$1 = global$f.String;
|
|
5469
5469
|
var counter = 0;
|
|
5470
5470
|
var queue$1 = {};
|
|
5471
5471
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
@@ -5473,11 +5473,11 @@ var location, defer, channel, port;
|
|
|
5473
5473
|
|
|
5474
5474
|
try {
|
|
5475
5475
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
5476
|
-
location = global$
|
|
5476
|
+
location = global$f.location;
|
|
5477
5477
|
} catch (error) { /* empty */ }
|
|
5478
5478
|
|
|
5479
5479
|
var run = function (id) {
|
|
5480
|
-
if (hasOwn$
|
|
5480
|
+
if (hasOwn$4(queue$1, id)) {
|
|
5481
5481
|
var fn = queue$1[id];
|
|
5482
5482
|
delete queue$1[id];
|
|
5483
5483
|
fn();
|
|
@@ -5496,14 +5496,14 @@ var listener = function (event) {
|
|
|
5496
5496
|
|
|
5497
5497
|
var post = function (id) {
|
|
5498
5498
|
// old engines have not location.origin
|
|
5499
|
-
global$
|
|
5499
|
+
global$f.postMessage(String$1(id), location.protocol + '//' + location.host);
|
|
5500
5500
|
};
|
|
5501
5501
|
|
|
5502
5502
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
5503
5503
|
if (!set || !clear) {
|
|
5504
5504
|
set = function setImmediate(handler) {
|
|
5505
5505
|
validateArgumentsLength$2(arguments.length, 1);
|
|
5506
|
-
var fn = isCallable$
|
|
5506
|
+
var fn = isCallable$6(handler) ? handler : Function$1(handler);
|
|
5507
5507
|
var args = arraySlice$1(arguments, 1);
|
|
5508
5508
|
queue$1[++counter] = function () {
|
|
5509
5509
|
apply$1(fn, undefined, args);
|
|
@@ -5534,14 +5534,14 @@ if (!set || !clear) {
|
|
|
5534
5534
|
// Browsers with postMessage, skip WebWorkers
|
|
5535
5535
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
5536
5536
|
} else if (
|
|
5537
|
-
global$
|
|
5538
|
-
isCallable$
|
|
5539
|
-
!global$
|
|
5537
|
+
global$f.addEventListener &&
|
|
5538
|
+
isCallable$6(global$f.postMessage) &&
|
|
5539
|
+
!global$f.importScripts &&
|
|
5540
5540
|
location && location.protocol !== 'file:' &&
|
|
5541
|
-
!fails$
|
|
5541
|
+
!fails$9(post)
|
|
5542
5542
|
) {
|
|
5543
5543
|
defer = post;
|
|
5544
|
-
global$
|
|
5544
|
+
global$f.addEventListener('message', listener, false);
|
|
5545
5545
|
// IE8-
|
|
5546
5546
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
5547
5547
|
defer = function (id) {
|
|
@@ -5564,15 +5564,15 @@ var task$1 = {
|
|
|
5564
5564
|
};
|
|
5565
5565
|
|
|
5566
5566
|
var userAgent$1 = engineUserAgent;
|
|
5567
|
-
var global$
|
|
5567
|
+
var global$e = global$V;
|
|
5568
5568
|
|
|
5569
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$
|
|
5569
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$e.Pebble !== undefined;
|
|
5570
5570
|
|
|
5571
5571
|
var userAgent = engineUserAgent;
|
|
5572
5572
|
|
|
5573
5573
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
5574
5574
|
|
|
5575
|
-
var global$
|
|
5575
|
+
var global$d = global$V;
|
|
5576
5576
|
var bind$7 = functionBindContext;
|
|
5577
5577
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
5578
5578
|
var macrotask = task$1.set;
|
|
@@ -5581,12 +5581,12 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
|
5581
5581
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
5582
5582
|
var IS_NODE$2 = engineIsNode;
|
|
5583
5583
|
|
|
5584
|
-
var MutationObserver = global$
|
|
5585
|
-
var document$2 = global$
|
|
5586
|
-
var process$2 = global$
|
|
5587
|
-
var Promise$1 = global$
|
|
5584
|
+
var MutationObserver = global$d.MutationObserver || global$d.WebKitMutationObserver;
|
|
5585
|
+
var document$2 = global$d.document;
|
|
5586
|
+
var process$2 = global$d.process;
|
|
5587
|
+
var Promise$1 = global$d.Promise;
|
|
5588
5588
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
5589
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$
|
|
5589
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$d, 'queueMicrotask');
|
|
5590
5590
|
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
5591
5591
|
|
|
5592
5592
|
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
@@ -5642,7 +5642,7 @@ if (!queueMicrotask) {
|
|
|
5642
5642
|
// - setTimeout
|
|
5643
5643
|
} else {
|
|
5644
5644
|
// strange IE + webpack dev server bug - use .bind(global)
|
|
5645
|
-
macrotask = bind$7(macrotask, global$
|
|
5645
|
+
macrotask = bind$7(macrotask, global$d);
|
|
5646
5646
|
notify$1 = function () {
|
|
5647
5647
|
macrotask(flush);
|
|
5648
5648
|
};
|
|
@@ -5679,23 +5679,23 @@ newPromiseCapability$2.f = function (C) {
|
|
|
5679
5679
|
return new PromiseCapability(C);
|
|
5680
5680
|
};
|
|
5681
5681
|
|
|
5682
|
-
var anObject$
|
|
5683
|
-
var isObject$
|
|
5682
|
+
var anObject$4 = anObject$f;
|
|
5683
|
+
var isObject$7 = isObject$l;
|
|
5684
5684
|
var newPromiseCapability$1 = newPromiseCapability$2;
|
|
5685
5685
|
|
|
5686
5686
|
var promiseResolve$1 = function (C, x) {
|
|
5687
|
-
anObject$
|
|
5688
|
-
if (isObject$
|
|
5687
|
+
anObject$4(C);
|
|
5688
|
+
if (isObject$7(x) && x.constructor === C) return x;
|
|
5689
5689
|
var promiseCapability = newPromiseCapability$1.f(C);
|
|
5690
5690
|
var resolve = promiseCapability.resolve;
|
|
5691
5691
|
resolve(x);
|
|
5692
5692
|
return promiseCapability.promise;
|
|
5693
5693
|
};
|
|
5694
5694
|
|
|
5695
|
-
var global$
|
|
5695
|
+
var global$c = global$V;
|
|
5696
5696
|
|
|
5697
5697
|
var hostReportErrors$1 = function (a, b) {
|
|
5698
|
-
var console = global$
|
|
5698
|
+
var console = global$c.console;
|
|
5699
5699
|
if (console && console.error) {
|
|
5700
5700
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
5701
5701
|
}
|
|
@@ -5735,23 +5735,23 @@ var queue = Queue$1;
|
|
|
5735
5735
|
|
|
5736
5736
|
var engineIsBrowser = typeof window == 'object';
|
|
5737
5737
|
|
|
5738
|
-
var $$
|
|
5739
|
-
var global$
|
|
5738
|
+
var $$c = _export;
|
|
5739
|
+
var global$b = global$V;
|
|
5740
5740
|
var getBuiltIn$2 = getBuiltIn$a;
|
|
5741
5741
|
var call$4 = functionCall;
|
|
5742
5742
|
var NativePromise = nativePromiseConstructor;
|
|
5743
|
-
var redefine$
|
|
5744
|
-
var redefineAll$
|
|
5743
|
+
var redefine$6 = redefine$b.exports;
|
|
5744
|
+
var redefineAll$3 = redefineAll$4;
|
|
5745
5745
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
5746
|
-
var setToStringTag$
|
|
5746
|
+
var setToStringTag$5 = setToStringTag$6;
|
|
5747
5747
|
var setSpecies = setSpecies$1;
|
|
5748
5748
|
var aCallable$1 = aCallable$7;
|
|
5749
|
-
var isCallable$
|
|
5750
|
-
var isObject$
|
|
5751
|
-
var anInstance$
|
|
5749
|
+
var isCallable$5 = isCallable$l;
|
|
5750
|
+
var isObject$6 = isObject$l;
|
|
5751
|
+
var anInstance$4 = anInstance$5;
|
|
5752
5752
|
var inspectSource = inspectSource$4;
|
|
5753
|
-
var iterate = iterate$
|
|
5754
|
-
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$
|
|
5753
|
+
var iterate$2 = iterate$3;
|
|
5754
|
+
var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2;
|
|
5755
5755
|
var speciesConstructor = speciesConstructor$1;
|
|
5756
5756
|
var task = task$1.set;
|
|
5757
5757
|
var microtask = microtask$1;
|
|
@@ -5760,8 +5760,8 @@ var hostReportErrors = hostReportErrors$1;
|
|
|
5760
5760
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
5761
5761
|
var perform = perform$1;
|
|
5762
5762
|
var Queue = queue;
|
|
5763
|
-
var InternalStateModule$
|
|
5764
|
-
var isForced = isForced_1;
|
|
5763
|
+
var InternalStateModule$5 = internalState;
|
|
5764
|
+
var isForced$1 = isForced_1;
|
|
5765
5765
|
var wellKnownSymbol$6 = wellKnownSymbol$j;
|
|
5766
5766
|
var IS_BROWSER = engineIsBrowser;
|
|
5767
5767
|
var IS_NODE$1 = engineIsNode;
|
|
@@ -5770,20 +5770,20 @@ var V8_VERSION = engineV8Version;
|
|
|
5770
5770
|
var SPECIES = wellKnownSymbol$6('species');
|
|
5771
5771
|
var PROMISE = 'Promise';
|
|
5772
5772
|
|
|
5773
|
-
var getInternalState$2 = InternalStateModule$
|
|
5774
|
-
var setInternalState$
|
|
5775
|
-
var getInternalPromiseState = InternalStateModule$
|
|
5773
|
+
var getInternalState$2 = InternalStateModule$5.getterFor(PROMISE);
|
|
5774
|
+
var setInternalState$5 = InternalStateModule$5.set;
|
|
5775
|
+
var getInternalPromiseState = InternalStateModule$5.getterFor(PROMISE);
|
|
5776
5776
|
var NativePromisePrototype = NativePromise && NativePromise.prototype;
|
|
5777
5777
|
var PromiseConstructor = NativePromise;
|
|
5778
5778
|
var PromisePrototype = NativePromisePrototype;
|
|
5779
|
-
var TypeError$4 = global$
|
|
5780
|
-
var document$1 = global$
|
|
5781
|
-
var process$1 = global$
|
|
5779
|
+
var TypeError$4 = global$b.TypeError;
|
|
5780
|
+
var document$1 = global$b.document;
|
|
5781
|
+
var process$1 = global$b.process;
|
|
5782
5782
|
var newPromiseCapability = newPromiseCapabilityModule.f;
|
|
5783
5783
|
var newGenericPromiseCapability = newPromiseCapability;
|
|
5784
5784
|
|
|
5785
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
5786
|
-
var NATIVE_REJECTION_EVENT = isCallable$
|
|
5785
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$b.dispatchEvent);
|
|
5786
|
+
var NATIVE_REJECTION_EVENT = isCallable$5(global$b.PromiseRejectionEvent);
|
|
5787
5787
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
5788
5788
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
5789
5789
|
var PENDING = 0;
|
|
@@ -5795,7 +5795,7 @@ var SUBCLASSING = false;
|
|
|
5795
5795
|
|
|
5796
5796
|
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
5797
5797
|
|
|
5798
|
-
var FORCED$1 = isForced(PROMISE, function () {
|
|
5798
|
+
var FORCED$1 = isForced$1(PROMISE, function () {
|
|
5799
5799
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
|
|
5800
5800
|
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
|
|
5801
5801
|
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
@@ -5819,14 +5819,14 @@ var FORCED$1 = isForced(PROMISE, function () {
|
|
|
5819
5819
|
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
|
|
5820
5820
|
});
|
|
5821
5821
|
|
|
5822
|
-
var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration(function (iterable) {
|
|
5822
|
+
var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration$1(function (iterable) {
|
|
5823
5823
|
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
|
|
5824
5824
|
});
|
|
5825
5825
|
|
|
5826
5826
|
// helpers
|
|
5827
5827
|
var isThenable = function (it) {
|
|
5828
5828
|
var then;
|
|
5829
|
-
return isObject$
|
|
5829
|
+
return isObject$6(it) && isCallable$5(then = it.then) ? then : false;
|
|
5830
5830
|
};
|
|
5831
5831
|
|
|
5832
5832
|
var callReaction = function (reaction, state) {
|
|
@@ -5885,14 +5885,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
5885
5885
|
event.promise = promise;
|
|
5886
5886
|
event.reason = reason;
|
|
5887
5887
|
event.initEvent(name, false, true);
|
|
5888
|
-
global$
|
|
5888
|
+
global$b.dispatchEvent(event);
|
|
5889
5889
|
} else event = { promise: promise, reason: reason };
|
|
5890
|
-
if (!NATIVE_REJECTION_EVENT && (handler = global$
|
|
5890
|
+
if (!NATIVE_REJECTION_EVENT && (handler = global$b['on' + name])) handler(event);
|
|
5891
5891
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
5892
5892
|
};
|
|
5893
5893
|
|
|
5894
5894
|
var onUnhandled = function (state) {
|
|
5895
|
-
call$4(task, global$
|
|
5895
|
+
call$4(task, global$b, function () {
|
|
5896
5896
|
var promise = state.facade;
|
|
5897
5897
|
var value = state.value;
|
|
5898
5898
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -5915,7 +5915,7 @@ var isUnhandled = function (state) {
|
|
|
5915
5915
|
};
|
|
5916
5916
|
|
|
5917
5917
|
var onHandleUnhandled = function (state) {
|
|
5918
|
-
call$4(task, global$
|
|
5918
|
+
call$4(task, global$b, function () {
|
|
5919
5919
|
var promise = state.facade;
|
|
5920
5920
|
if (IS_NODE$1) {
|
|
5921
5921
|
process$1.emit('rejectionHandled', promise);
|
|
@@ -5971,7 +5971,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
5971
5971
|
if (FORCED$1) {
|
|
5972
5972
|
// 25.4.3.1 Promise(executor)
|
|
5973
5973
|
PromiseConstructor = function Promise(executor) {
|
|
5974
|
-
anInstance$
|
|
5974
|
+
anInstance$4(this, PromisePrototype);
|
|
5975
5975
|
aCallable$1(executor);
|
|
5976
5976
|
call$4(Internal, this);
|
|
5977
5977
|
var state = getInternalState$2(this);
|
|
@@ -5984,7 +5984,7 @@ if (FORCED$1) {
|
|
|
5984
5984
|
PromisePrototype = PromiseConstructor.prototype;
|
|
5985
5985
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
5986
5986
|
Internal = function Promise(executor) {
|
|
5987
|
-
setInternalState$
|
|
5987
|
+
setInternalState$5(this, {
|
|
5988
5988
|
type: PROMISE,
|
|
5989
5989
|
done: false,
|
|
5990
5990
|
notified: false,
|
|
@@ -5995,7 +5995,7 @@ if (FORCED$1) {
|
|
|
5995
5995
|
value: undefined
|
|
5996
5996
|
});
|
|
5997
5997
|
};
|
|
5998
|
-
Internal.prototype = redefineAll$
|
|
5998
|
+
Internal.prototype = redefineAll$3(PromisePrototype, {
|
|
5999
5999
|
// `Promise.prototype.then` method
|
|
6000
6000
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
6001
6001
|
// eslint-disable-next-line unicorn/no-thenable -- safe
|
|
@@ -6003,8 +6003,8 @@ if (FORCED$1) {
|
|
|
6003
6003
|
var state = getInternalPromiseState(this);
|
|
6004
6004
|
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
|
6005
6005
|
state.parent = true;
|
|
6006
|
-
reaction.ok = isCallable$
|
|
6007
|
-
reaction.fail = isCallable$
|
|
6006
|
+
reaction.ok = isCallable$5(onFulfilled) ? onFulfilled : true;
|
|
6007
|
+
reaction.fail = isCallable$5(onRejected) && onRejected;
|
|
6008
6008
|
reaction.domain = IS_NODE$1 ? process$1.domain : undefined;
|
|
6009
6009
|
if (state.state == PENDING) state.reactions.add(reaction);
|
|
6010
6010
|
else microtask(function () {
|
|
@@ -6031,12 +6031,12 @@ if (FORCED$1) {
|
|
|
6031
6031
|
: newGenericPromiseCapability(C);
|
|
6032
6032
|
};
|
|
6033
6033
|
|
|
6034
|
-
if (isCallable$
|
|
6034
|
+
if (isCallable$5(NativePromise) && NativePromisePrototype !== Object.prototype) {
|
|
6035
6035
|
nativeThen = NativePromisePrototype.then;
|
|
6036
6036
|
|
|
6037
6037
|
if (!SUBCLASSING) {
|
|
6038
6038
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
6039
|
-
redefine$
|
|
6039
|
+
redefine$6(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
6040
6040
|
var that = this;
|
|
6041
6041
|
return new PromiseConstructor(function (resolve, reject) {
|
|
6042
6042
|
call$4(nativeThen, that, resolve, reject);
|
|
@@ -6045,7 +6045,7 @@ if (FORCED$1) {
|
|
|
6045
6045
|
}, { unsafe: true });
|
|
6046
6046
|
|
|
6047
6047
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
6048
|
-
redefine$
|
|
6048
|
+
redefine$6(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
|
|
6049
6049
|
}
|
|
6050
6050
|
|
|
6051
6051
|
// make `.constructor === Promise` work for native promise-based APIs
|
|
@@ -6060,17 +6060,17 @@ if (FORCED$1) {
|
|
|
6060
6060
|
}
|
|
6061
6061
|
}
|
|
6062
6062
|
|
|
6063
|
-
$$
|
|
6063
|
+
$$c({ global: true, wrap: true, forced: FORCED$1 }, {
|
|
6064
6064
|
Promise: PromiseConstructor
|
|
6065
6065
|
});
|
|
6066
6066
|
|
|
6067
|
-
setToStringTag$
|
|
6067
|
+
setToStringTag$5(PromiseConstructor, PROMISE, false);
|
|
6068
6068
|
setSpecies(PROMISE);
|
|
6069
6069
|
|
|
6070
6070
|
PromiseWrapper = getBuiltIn$2(PROMISE);
|
|
6071
6071
|
|
|
6072
6072
|
// statics
|
|
6073
|
-
$$
|
|
6073
|
+
$$c({ target: PROMISE, stat: true, forced: FORCED$1 }, {
|
|
6074
6074
|
// `Promise.reject` method
|
|
6075
6075
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
6076
6076
|
reject: function reject(r) {
|
|
@@ -6080,7 +6080,7 @@ $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
|
|
|
6080
6080
|
}
|
|
6081
6081
|
});
|
|
6082
6082
|
|
|
6083
|
-
$$
|
|
6083
|
+
$$c({ target: PROMISE, stat: true, forced: FORCED$1 }, {
|
|
6084
6084
|
// `Promise.resolve` method
|
|
6085
6085
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
6086
6086
|
resolve: function resolve(x) {
|
|
@@ -6088,7 +6088,7 @@ $$a({ target: PROMISE, stat: true, forced: FORCED$1 }, {
|
|
|
6088
6088
|
}
|
|
6089
6089
|
});
|
|
6090
6090
|
|
|
6091
|
-
$$
|
|
6091
|
+
$$c({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
6092
6092
|
// `Promise.all` method
|
|
6093
6093
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
6094
6094
|
all: function all(iterable) {
|
|
@@ -6101,7 +6101,7 @@ $$a({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
|
6101
6101
|
var values = [];
|
|
6102
6102
|
var counter = 0;
|
|
6103
6103
|
var remaining = 1;
|
|
6104
|
-
iterate(iterable, function (promise) {
|
|
6104
|
+
iterate$2(iterable, function (promise) {
|
|
6105
6105
|
var index = counter++;
|
|
6106
6106
|
var alreadyCalled = false;
|
|
6107
6107
|
remaining++;
|
|
@@ -6125,7 +6125,7 @@ $$a({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
|
6125
6125
|
var reject = capability.reject;
|
|
6126
6126
|
var result = perform(function () {
|
|
6127
6127
|
var $promiseResolve = aCallable$1(C.resolve);
|
|
6128
|
-
iterate(iterable, function (promise) {
|
|
6128
|
+
iterate$2(iterable, function (promise) {
|
|
6129
6129
|
call$4($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
6130
6130
|
});
|
|
6131
6131
|
});
|
|
@@ -6244,9 +6244,9 @@ var getDeviceFingerprint = /*#__PURE__*/function () {
|
|
|
6244
6244
|
}();
|
|
6245
6245
|
|
|
6246
6246
|
var DESCRIPTORS$4 = descriptors$1;
|
|
6247
|
-
var uncurryThis$
|
|
6247
|
+
var uncurryThis$b = functionUncurryThis;
|
|
6248
6248
|
var call$3 = functionCall;
|
|
6249
|
-
var fails$
|
|
6249
|
+
var fails$8 = fails$x;
|
|
6250
6250
|
var objectKeys$1 = objectKeys$3;
|
|
6251
6251
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
6252
6252
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -6257,11 +6257,11 @@ var IndexedObject$1 = indexedObject;
|
|
|
6257
6257
|
var $assign = Object.assign;
|
|
6258
6258
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
6259
6259
|
var defineProperty$2 = Object.defineProperty;
|
|
6260
|
-
var concat = uncurryThis$
|
|
6260
|
+
var concat = uncurryThis$b([].concat);
|
|
6261
6261
|
|
|
6262
6262
|
// `Object.assign` method
|
|
6263
6263
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
6264
|
-
var objectAssign = !$assign || fails$
|
|
6264
|
+
var objectAssign = !$assign || fails$8(function () {
|
|
6265
6265
|
// should have correct order of operations (Edge bug)
|
|
6266
6266
|
if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
6267
6267
|
enumerable: true,
|
|
@@ -6300,16 +6300,34 @@ var objectAssign = !$assign || fails$6(function () {
|
|
|
6300
6300
|
} return T;
|
|
6301
6301
|
} : $assign;
|
|
6302
6302
|
|
|
6303
|
-
var $$
|
|
6303
|
+
var $$b = _export;
|
|
6304
6304
|
var assign$2 = objectAssign;
|
|
6305
6305
|
|
|
6306
6306
|
// `Object.assign` method
|
|
6307
6307
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
6308
6308
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
6309
|
-
$$
|
|
6309
|
+
$$b({ target: 'Object', stat: true, forced: Object.assign !== assign$2 }, {
|
|
6310
6310
|
assign: assign$2
|
|
6311
6311
|
});
|
|
6312
6312
|
|
|
6313
|
+
var $$a = _export;
|
|
6314
|
+
var FREEZING = freezing;
|
|
6315
|
+
var fails$7 = fails$x;
|
|
6316
|
+
var isObject$5 = isObject$l;
|
|
6317
|
+
var onFreeze = internalMetadata.exports.onFreeze;
|
|
6318
|
+
|
|
6319
|
+
// eslint-disable-next-line es/no-object-freeze -- safe
|
|
6320
|
+
var $freeze = Object.freeze;
|
|
6321
|
+
var FAILS_ON_PRIMITIVES = fails$7(function () { $freeze(1); });
|
|
6322
|
+
|
|
6323
|
+
// `Object.freeze` method
|
|
6324
|
+
// https://tc39.es/ecma262/#sec-object.freeze
|
|
6325
|
+
$$a({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
|
|
6326
|
+
freeze: function freeze(it) {
|
|
6327
|
+
return $freeze && isObject$5(it) ? $freeze(onFreeze(it)) : it;
|
|
6328
|
+
}
|
|
6329
|
+
});
|
|
6330
|
+
|
|
6313
6331
|
var config = {
|
|
6314
6332
|
cookieTestUrl: 'https://legacy-staging.paystack.co/test-iframe/start.html',
|
|
6315
6333
|
publishableKey: 'uFmz/uE/SDT6GupOrSEXIZXGByjQ0zFkPyc9LqKHFqnTI0WPN3JS5kQPo/j9or0TOXlqMQj2lzHn/UGsQT4XeQ==',
|
|
@@ -6367,13 +6385,13 @@ var addToUnscopables$3 = function (key) {
|
|
|
6367
6385
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
6368
6386
|
};
|
|
6369
6387
|
|
|
6370
|
-
var $$
|
|
6388
|
+
var $$9 = _export;
|
|
6371
6389
|
var $includes = arrayIncludes.includes;
|
|
6372
6390
|
var addToUnscopables$2 = addToUnscopables$3;
|
|
6373
6391
|
|
|
6374
6392
|
// `Array.prototype.includes` method
|
|
6375
6393
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
6376
|
-
$$
|
|
6394
|
+
$$9({ target: 'Array', proto: true }, {
|
|
6377
6395
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
6378
6396
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
6379
6397
|
}
|
|
@@ -6386,7 +6404,7 @@ var _excluded = ["message", "status", "errors"],
|
|
|
6386
6404
|
_excluded2 = ["message", "status", "errors"],
|
|
6387
6405
|
_excluded3 = ["message", "status", "errors"],
|
|
6388
6406
|
_excluded4 = ["message", "status", "errors"],
|
|
6389
|
-
_excluded5 = ["status", "message", "otpmessage"];
|
|
6407
|
+
_excluded5 = ["status", "message", "otpmessage", "redirectUrl"];
|
|
6390
6408
|
var PREAUTHORIZATION_STATE_AUTHORIZED = 'authorized';
|
|
6391
6409
|
var ChargeResponses = {
|
|
6392
6410
|
authorized: function authorized(response) {
|
|
@@ -6437,8 +6455,9 @@ var ChargeResponses = {
|
|
|
6437
6455
|
response.status;
|
|
6438
6456
|
var message = response.message,
|
|
6439
6457
|
otpmessage = response.otpmessage,
|
|
6458
|
+
redirectUrl = response.redirectUrl,
|
|
6440
6459
|
cleanResponse = _objectWithoutProperties(response, _excluded5);
|
|
6441
|
-
var authMessage = otpmessage || message;
|
|
6460
|
+
var authMessage = redirectUrl || otpmessage || message;
|
|
6442
6461
|
return {
|
|
6443
6462
|
status: 'auth',
|
|
6444
6463
|
message: authMessage || 'Authentication required',
|
|
@@ -6482,7 +6501,7 @@ var ChargeResponses = {
|
|
|
6482
6501
|
return error;
|
|
6483
6502
|
},
|
|
6484
6503
|
parse: function parse(apiResponse) {
|
|
6485
|
-
var response = _typeof$1(apiResponse) === 'object' ? apiResponse : {};
|
|
6504
|
+
var response = apiResponse && _typeof$1(apiResponse) === 'object' ? apiResponse : {};
|
|
6486
6505
|
if (response.data && _typeof$1(response.data) === 'object') {
|
|
6487
6506
|
Object.assign(response, response.data);
|
|
6488
6507
|
delete response.data;
|
|
@@ -6508,83 +6527,148 @@ var ChargeResponses = {
|
|
|
6508
6527
|
if (response.status === 'incorrect-amount-sent' || response.message_type === 'INCORRECT_AMOUNT') {
|
|
6509
6528
|
return this.getCleanResponse(response, 'Incorrect amount sent');
|
|
6510
6529
|
}
|
|
6511
|
-
if (response.status
|
|
6530
|
+
if (['awaiting_registration_token', 'awaiting_ussd_confirmation'].includes(response.status)) {
|
|
6512
6531
|
return this.getCleanResponse(response);
|
|
6513
6532
|
}
|
|
6514
6533
|
if (response.auth && response.auth !== 'none') {
|
|
6515
6534
|
return this.auth(response);
|
|
6516
6535
|
}
|
|
6536
|
+
if (response.status === 'open_url' && response.url) {
|
|
6537
|
+
return this.getCleanResponse(response, 'Continue at the payment provider');
|
|
6538
|
+
}
|
|
6517
6539
|
return this.error(response);
|
|
6518
6540
|
}
|
|
6519
6541
|
};
|
|
6520
6542
|
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
// eslint-disable-next-line consistent-return, import/prefer-default-export
|
|
6526
|
-
var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
|
|
6527
|
-
var channel = options.channel,
|
|
6528
|
-
paymentMethod = options.paymentMethod;
|
|
6529
|
-
var pusher;
|
|
6530
|
-
if (window && window.Pusher) {
|
|
6531
|
-
pusher = new window.Pusher(configToUse.pusherKey, {
|
|
6532
|
-
cluster: 'eu',
|
|
6533
|
-
disableStats: true
|
|
6534
|
-
});
|
|
6535
|
-
}
|
|
6536
|
-
var pusherUndefinedError = {
|
|
6543
|
+
// Frozen singletons: a consumer that mutates what it was handed cannot corrupt
|
|
6544
|
+
// the next call.
|
|
6545
|
+
var LISTEN_ERRORS = {
|
|
6546
|
+
unavailable: Object.freeze({
|
|
6537
6547
|
status: 'error',
|
|
6538
6548
|
message: 'We could not listen for charge response.'
|
|
6539
|
-
}
|
|
6540
|
-
|
|
6549
|
+
}),
|
|
6550
|
+
subscriptionFailed: Object.freeze({
|
|
6541
6551
|
status: 'error',
|
|
6542
6552
|
message: 'We could not listen for charge response. Use transaction.requery() to check the status.'
|
|
6553
|
+
})
|
|
6554
|
+
};
|
|
6555
|
+
|
|
6556
|
+
// Returns null so each listener can choose what to hand its caller back. The
|
|
6557
|
+
// `!window` half only guards window being declared and assigned undefined; with
|
|
6558
|
+
// window genuinely absent this throws, as it always has.
|
|
6559
|
+
var createPusherClient = function createPusherClient() {
|
|
6560
|
+
if (!window || !window.Pusher) {
|
|
6561
|
+
return null;
|
|
6562
|
+
}
|
|
6563
|
+
return new window.Pusher(configToUse.pusherKey, {
|
|
6564
|
+
cluster: 'eu',
|
|
6565
|
+
disableStats: true
|
|
6566
|
+
});
|
|
6567
|
+
};
|
|
6568
|
+
|
|
6569
|
+
// Analytics are logged before the consumer callback runs, so a throwing
|
|
6570
|
+
// callback cannot lose the event.
|
|
6571
|
+
var buildResponseHandler = function buildResponseHandler(_ref) {
|
|
6572
|
+
var context = _ref.context,
|
|
6573
|
+
paymentMethod = _ref.paymentMethod,
|
|
6574
|
+
callback = _ref.callback,
|
|
6575
|
+
teardown = _ref.teardown;
|
|
6576
|
+
return function (response) {
|
|
6577
|
+
var formattedResponse = ChargeResponses.parse(response);
|
|
6578
|
+
context.logAPIResponse(formattedResponse, paymentMethod);
|
|
6579
|
+
callback(formattedResponse, teardown);
|
|
6543
6580
|
};
|
|
6581
|
+
};
|
|
6582
|
+
|
|
6583
|
+
// The shared listening path for every channel and market. `context` carries
|
|
6584
|
+
// logAPIResponse and the isListening flag this path owns.
|
|
6585
|
+
// eslint-disable-next-line consistent-return
|
|
6586
|
+
var subscribeToChargeEvents = function subscribeToChargeEvents(options, context, callback) {
|
|
6587
|
+
var channel = options.channel,
|
|
6588
|
+
paymentMethod = options.paymentMethod;
|
|
6589
|
+
var pusher = createPusherClient();
|
|
6590
|
+
if (!pusher) {
|
|
6591
|
+
return callback(LISTEN_ERRORS.unavailable, noOp);
|
|
6592
|
+
}
|
|
6544
6593
|
var unsubscribeFromPusher = function unsubscribeFromPusher() {
|
|
6545
6594
|
pusher.unsubscribe(channel);
|
|
6546
6595
|
};
|
|
6547
|
-
if (!pusher) {
|
|
6548
|
-
return callback(pusherUndefinedError, noOp);
|
|
6549
|
-
}
|
|
6550
6596
|
var pusherSubscription = pusher.subscribe(channel);
|
|
6551
6597
|
pusherSubscription.bind('pusher:subscription_succeeded', function () {
|
|
6552
6598
|
context.isListening = true;
|
|
6553
6599
|
});
|
|
6554
6600
|
pusherSubscription.bind('pusher:subscription_error', function () {
|
|
6555
6601
|
context.isListening = false;
|
|
6556
|
-
callback(
|
|
6602
|
+
callback(LISTEN_ERRORS.subscriptionFailed, noOp);
|
|
6557
6603
|
});
|
|
6558
|
-
pusherSubscription.bind('response',
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
callback
|
|
6604
|
+
pusherSubscription.bind('response', buildResponseHandler({
|
|
6605
|
+
context: context,
|
|
6606
|
+
paymentMethod: paymentMethod,
|
|
6607
|
+
callback: callback,
|
|
6608
|
+
teardown: unsubscribeFromPusher
|
|
6609
|
+
}));
|
|
6610
|
+
};
|
|
6611
|
+
|
|
6612
|
+
// Dedicated listener for the Ghana mobile money USSD confirmation channel. Kept
|
|
6613
|
+
// separate because this flow needs an unsubscribe before any event arrives, and
|
|
6614
|
+
// must not write context.isListening: it runs alongside the main charge
|
|
6615
|
+
// subscription and the two would fight over one flag.
|
|
6616
|
+
var subscribeToConfirmationEvents = function subscribeToConfirmationEvents(options, context, callback) {
|
|
6617
|
+
var channel = options.channel,
|
|
6618
|
+
paymentMethod = options.paymentMethod;
|
|
6619
|
+
var pusher = createPusherClient();
|
|
6620
|
+
if (!pusher) {
|
|
6621
|
+
callback(LISTEN_ERRORS.unavailable, noOp);
|
|
6622
|
+
return noOp;
|
|
6623
|
+
}
|
|
6624
|
+
var hasUnsubscribed = false;
|
|
6625
|
+
var unsubscribe = function unsubscribe() {
|
|
6626
|
+
if (hasUnsubscribed) {
|
|
6627
|
+
return;
|
|
6628
|
+
}
|
|
6629
|
+
hasUnsubscribed = true;
|
|
6630
|
+
pusher.unsubscribe(channel);
|
|
6631
|
+
pusher.disconnect();
|
|
6632
|
+
};
|
|
6633
|
+
var pusherSubscription = pusher.subscribe(channel);
|
|
6634
|
+
// Deliberately does not tear down: a subscription_error can be transient, and
|
|
6635
|
+
// disconnecting stops pusher-js re-subscribing on recovery. The teardown handed
|
|
6636
|
+
// over stays live for a consumer that would rather give up.
|
|
6637
|
+
pusherSubscription.bind('pusher:subscription_error', function () {
|
|
6638
|
+
callback(LISTEN_ERRORS.subscriptionFailed, unsubscribe);
|
|
6562
6639
|
});
|
|
6640
|
+
pusherSubscription.bind('response', buildResponseHandler({
|
|
6641
|
+
context: context,
|
|
6642
|
+
paymentMethod: paymentMethod,
|
|
6643
|
+
callback: callback,
|
|
6644
|
+
teardown: unsubscribe
|
|
6645
|
+
}));
|
|
6646
|
+
return unsubscribe;
|
|
6563
6647
|
};
|
|
6564
6648
|
|
|
6565
|
-
var uncurryThis$
|
|
6649
|
+
var uncurryThis$a = functionUncurryThis;
|
|
6566
6650
|
var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
|
|
6567
|
-
var redefine$
|
|
6568
|
-
var anObject$
|
|
6651
|
+
var redefine$5 = redefine$b.exports;
|
|
6652
|
+
var anObject$3 = anObject$f;
|
|
6569
6653
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
6570
6654
|
var $toString$2 = toString$9;
|
|
6571
|
-
var fails$
|
|
6655
|
+
var fails$6 = fails$x;
|
|
6572
6656
|
var regExpFlags = regexpFlags$1;
|
|
6573
6657
|
|
|
6574
6658
|
var TO_STRING = 'toString';
|
|
6575
6659
|
var RegExpPrototype = RegExp.prototype;
|
|
6576
6660
|
var n$ToString = RegExpPrototype[TO_STRING];
|
|
6577
|
-
var getFlags = uncurryThis$
|
|
6661
|
+
var getFlags = uncurryThis$a(regExpFlags);
|
|
6578
6662
|
|
|
6579
|
-
var NOT_GENERIC = fails$
|
|
6663
|
+
var NOT_GENERIC = fails$6(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
6580
6664
|
// FF44- RegExp#toString has a wrong name
|
|
6581
6665
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME$2 && n$ToString.name != TO_STRING;
|
|
6582
6666
|
|
|
6583
6667
|
// `RegExp.prototype.toString` method
|
|
6584
6668
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
6585
6669
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
6586
|
-
redefine$
|
|
6587
|
-
var R = anObject$
|
|
6670
|
+
redefine$5(RegExp.prototype, TO_STRING, function toString() {
|
|
6671
|
+
var R = anObject$3(this);
|
|
6588
6672
|
var p = $toString$2(R.source);
|
|
6589
6673
|
var rf = R.flags;
|
|
6590
6674
|
var f = $toString$2(rf === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf);
|
|
@@ -6592,41 +6676,41 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
6592
6676
|
}, { unsafe: true });
|
|
6593
6677
|
}
|
|
6594
6678
|
|
|
6595
|
-
var fails$
|
|
6679
|
+
var fails$5 = fails$x;
|
|
6596
6680
|
|
|
6597
|
-
var correctPrototypeGetter = !fails$
|
|
6681
|
+
var correctPrototypeGetter = !fails$5(function () {
|
|
6598
6682
|
function F() { /* empty */ }
|
|
6599
6683
|
F.prototype.constructor = null;
|
|
6600
6684
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
6601
6685
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
6602
6686
|
});
|
|
6603
6687
|
|
|
6604
|
-
var global$
|
|
6605
|
-
var hasOwn$
|
|
6606
|
-
var isCallable$
|
|
6688
|
+
var global$a = global$V;
|
|
6689
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
6690
|
+
var isCallable$4 = isCallable$l;
|
|
6607
6691
|
var toObject$2 = toObject$9;
|
|
6608
6692
|
var sharedKey = sharedKey$3;
|
|
6609
6693
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
6610
6694
|
|
|
6611
6695
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
6612
|
-
var Object$1 = global$
|
|
6696
|
+
var Object$1 = global$a.Object;
|
|
6613
6697
|
var ObjectPrototype = Object$1.prototype;
|
|
6614
6698
|
|
|
6615
6699
|
// `Object.getPrototypeOf` method
|
|
6616
6700
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
6617
6701
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
|
|
6618
6702
|
var object = toObject$2(O);
|
|
6619
|
-
if (hasOwn$
|
|
6703
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
6620
6704
|
var constructor = object.constructor;
|
|
6621
|
-
if (isCallable$
|
|
6705
|
+
if (isCallable$4(constructor) && object instanceof constructor) {
|
|
6622
6706
|
return constructor.prototype;
|
|
6623
6707
|
} return object instanceof Object$1 ? ObjectPrototype : null;
|
|
6624
6708
|
};
|
|
6625
6709
|
|
|
6626
|
-
var fails$
|
|
6627
|
-
var isCallable$
|
|
6710
|
+
var fails$4 = fails$x;
|
|
6711
|
+
var isCallable$3 = isCallable$l;
|
|
6628
6712
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
6629
|
-
var redefine$
|
|
6713
|
+
var redefine$4 = redefine$b.exports;
|
|
6630
6714
|
var wellKnownSymbol$4 = wellKnownSymbol$j;
|
|
6631
6715
|
|
|
6632
6716
|
var ITERATOR$4 = wellKnownSymbol$4('iterator');
|
|
@@ -6647,7 +6731,7 @@ if ([].keys) {
|
|
|
6647
6731
|
}
|
|
6648
6732
|
}
|
|
6649
6733
|
|
|
6650
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$
|
|
6734
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$4(function () {
|
|
6651
6735
|
var test = {};
|
|
6652
6736
|
// FF44- legacy iterators case
|
|
6653
6737
|
return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
|
|
@@ -6657,8 +6741,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
6657
6741
|
|
|
6658
6742
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
6659
6743
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
6660
|
-
if (!isCallable$
|
|
6661
|
-
redefine$
|
|
6744
|
+
if (!isCallable$3(IteratorPrototype$2[ITERATOR$4])) {
|
|
6745
|
+
redefine$4(IteratorPrototype$2, ITERATOR$4, function () {
|
|
6662
6746
|
return this;
|
|
6663
6747
|
});
|
|
6664
6748
|
}
|
|
@@ -6671,7 +6755,7 @@ var iteratorsCore = {
|
|
|
6671
6755
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
6672
6756
|
var create$1 = objectCreate;
|
|
6673
6757
|
var createPropertyDescriptor$1 = createPropertyDescriptor$6;
|
|
6674
|
-
var setToStringTag$
|
|
6758
|
+
var setToStringTag$4 = setToStringTag$6;
|
|
6675
6759
|
var Iterators$2 = iterators;
|
|
6676
6760
|
|
|
6677
6761
|
var returnThis$1 = function () { return this; };
|
|
@@ -6679,21 +6763,21 @@ var returnThis$1 = function () { return this; };
|
|
|
6679
6763
|
var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
6680
6764
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
6681
6765
|
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
6682
|
-
setToStringTag$
|
|
6766
|
+
setToStringTag$4(IteratorConstructor, TO_STRING_TAG, false);
|
|
6683
6767
|
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
6684
6768
|
return IteratorConstructor;
|
|
6685
6769
|
};
|
|
6686
6770
|
|
|
6687
|
-
var $$
|
|
6771
|
+
var $$8 = _export;
|
|
6688
6772
|
var call$2 = functionCall;
|
|
6689
6773
|
var FunctionName = functionName;
|
|
6690
|
-
var isCallable$
|
|
6774
|
+
var isCallable$2 = isCallable$l;
|
|
6691
6775
|
var createIteratorConstructor$1 = createIteratorConstructor$2;
|
|
6692
6776
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
6693
6777
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
6694
|
-
var setToStringTag$
|
|
6778
|
+
var setToStringTag$3 = setToStringTag$6;
|
|
6695
6779
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
6696
|
-
var redefine$
|
|
6780
|
+
var redefine$3 = redefine$b.exports;
|
|
6697
6781
|
var wellKnownSymbol$3 = wellKnownSymbol$j;
|
|
6698
6782
|
var Iterators$1 = iterators;
|
|
6699
6783
|
var IteratorsCore = iteratorsCore;
|
|
@@ -6739,12 +6823,12 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6739
6823
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
6740
6824
|
if (setPrototypeOf) {
|
|
6741
6825
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
6742
|
-
} else if (!isCallable$
|
|
6743
|
-
redefine$
|
|
6826
|
+
} else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$3])) {
|
|
6827
|
+
redefine$3(CurrentIteratorPrototype, ITERATOR$3, returnThis);
|
|
6744
6828
|
}
|
|
6745
6829
|
}
|
|
6746
6830
|
// Set @@toStringTag to native iterators
|
|
6747
|
-
setToStringTag$
|
|
6831
|
+
setToStringTag$3(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
6748
6832
|
}
|
|
6749
6833
|
}
|
|
6750
6834
|
|
|
@@ -6767,14 +6851,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6767
6851
|
};
|
|
6768
6852
|
if (FORCED) for (KEY in methods) {
|
|
6769
6853
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
6770
|
-
redefine$
|
|
6854
|
+
redefine$3(IterablePrototype, KEY, methods[KEY]);
|
|
6771
6855
|
}
|
|
6772
|
-
} else $$
|
|
6856
|
+
} else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
6773
6857
|
}
|
|
6774
6858
|
|
|
6775
6859
|
// define iterator
|
|
6776
6860
|
if (IterablePrototype[ITERATOR$3] !== defaultIterator) {
|
|
6777
|
-
redefine$
|
|
6861
|
+
redefine$3(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
|
|
6778
6862
|
}
|
|
6779
6863
|
Iterators$1[NAME] = defaultIterator;
|
|
6780
6864
|
|
|
@@ -6784,14 +6868,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
6784
6868
|
var toIndexedObject$1 = toIndexedObject$8;
|
|
6785
6869
|
var addToUnscopables$1 = addToUnscopables$3;
|
|
6786
6870
|
var Iterators = iterators;
|
|
6787
|
-
var InternalStateModule$
|
|
6871
|
+
var InternalStateModule$4 = internalState;
|
|
6788
6872
|
var defineProperty$1 = objectDefineProperty.f;
|
|
6789
6873
|
var defineIterator$1 = defineIterator$2;
|
|
6790
6874
|
var DESCRIPTORS$3 = descriptors$1;
|
|
6791
6875
|
|
|
6792
6876
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
6793
|
-
var setInternalState$
|
|
6794
|
-
var getInternalState$1 = InternalStateModule$
|
|
6877
|
+
var setInternalState$4 = InternalStateModule$4.set;
|
|
6878
|
+
var getInternalState$1 = InternalStateModule$4.getterFor(ARRAY_ITERATOR);
|
|
6795
6879
|
|
|
6796
6880
|
// `Array.prototype.entries` method
|
|
6797
6881
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -6804,7 +6888,7 @@ var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
|
|
|
6804
6888
|
// `CreateArrayIterator` internal method
|
|
6805
6889
|
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
6806
6890
|
var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
|
|
6807
|
-
setInternalState$
|
|
6891
|
+
setInternalState$4(this, {
|
|
6808
6892
|
type: ARRAY_ITERATOR,
|
|
6809
6893
|
target: toIndexedObject$1(iterated), // target
|
|
6810
6894
|
index: 0, // next index
|
|
@@ -6841,14 +6925,14 @@ if (DESCRIPTORS$3 && values.name !== 'values') try {
|
|
|
6841
6925
|
defineProperty$1(values, 'name', { value: 'values' });
|
|
6842
6926
|
} catch (error) { /* empty */ }
|
|
6843
6927
|
|
|
6844
|
-
var uncurryThis$
|
|
6928
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
6845
6929
|
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
6846
6930
|
var toString$2 = toString$9;
|
|
6847
6931
|
var requireObjectCoercible = requireObjectCoercible$4;
|
|
6848
6932
|
|
|
6849
|
-
var charAt$4 = uncurryThis$
|
|
6850
|
-
var charCodeAt$2 = uncurryThis$
|
|
6851
|
-
var stringSlice$2 = uncurryThis$
|
|
6933
|
+
var charAt$4 = uncurryThis$9(''.charAt);
|
|
6934
|
+
var charCodeAt$2 = uncurryThis$9(''.charCodeAt);
|
|
6935
|
+
var stringSlice$2 = uncurryThis$9(''.slice);
|
|
6852
6936
|
|
|
6853
6937
|
var createMethod$2 = function (CONVERT_TO_STRING) {
|
|
6854
6938
|
return function ($this, pos) {
|
|
@@ -6880,17 +6964,17 @@ var stringMultibyte = {
|
|
|
6880
6964
|
|
|
6881
6965
|
var charAt$3 = stringMultibyte.charAt;
|
|
6882
6966
|
var toString$1 = toString$9;
|
|
6883
|
-
var InternalStateModule$
|
|
6967
|
+
var InternalStateModule$3 = internalState;
|
|
6884
6968
|
var defineIterator = defineIterator$2;
|
|
6885
6969
|
|
|
6886
6970
|
var STRING_ITERATOR = 'String Iterator';
|
|
6887
|
-
var setInternalState$
|
|
6888
|
-
var getInternalState = InternalStateModule$
|
|
6971
|
+
var setInternalState$3 = InternalStateModule$3.set;
|
|
6972
|
+
var getInternalState = InternalStateModule$3.getterFor(STRING_ITERATOR);
|
|
6889
6973
|
|
|
6890
6974
|
// `String.prototype[@@iterator]` method
|
|
6891
6975
|
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
|
|
6892
6976
|
defineIterator(String, 'String', function (iterated) {
|
|
6893
|
-
setInternalState$
|
|
6977
|
+
setInternalState$3(this, {
|
|
6894
6978
|
type: STRING_ITERATOR,
|
|
6895
6979
|
string: toString$1(iterated),
|
|
6896
6980
|
index: 0
|
|
@@ -6908,7 +6992,7 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
6908
6992
|
return { value: point, done: false };
|
|
6909
6993
|
});
|
|
6910
6994
|
|
|
6911
|
-
var global$
|
|
6995
|
+
var global$9 = global$V;
|
|
6912
6996
|
var DOMIterables = domIterables;
|
|
6913
6997
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
6914
6998
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -6942,18 +7026,18 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
6942
7026
|
};
|
|
6943
7027
|
|
|
6944
7028
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
6945
|
-
handlePrototype(global$
|
|
7029
|
+
handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
6946
7030
|
}
|
|
6947
7031
|
|
|
6948
7032
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
6949
7033
|
|
|
6950
|
-
var fails$
|
|
7034
|
+
var fails$3 = fails$x;
|
|
6951
7035
|
var wellKnownSymbol$1 = wellKnownSymbol$j;
|
|
6952
7036
|
var IS_PURE = isPure;
|
|
6953
7037
|
|
|
6954
7038
|
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
6955
7039
|
|
|
6956
|
-
var nativeUrl = !fails$
|
|
7040
|
+
var nativeUrl = !fails$3(function () {
|
|
6957
7041
|
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
|
|
6958
7042
|
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
6959
7043
|
var searchParams = url.searchParams;
|
|
@@ -6982,19 +7066,19 @@ var nativeUrl = !fails$2(function () {
|
|
|
6982
7066
|
|| new URL('http://x', undefined).host !== 'x';
|
|
6983
7067
|
});
|
|
6984
7068
|
|
|
6985
|
-
var anObject$
|
|
7069
|
+
var anObject$2 = anObject$f;
|
|
6986
7070
|
var iteratorClose = iteratorClose$2;
|
|
6987
7071
|
|
|
6988
7072
|
// call something on iterator step with safe closing on error
|
|
6989
7073
|
var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
6990
7074
|
try {
|
|
6991
|
-
return ENTRIES ? fn(anObject$
|
|
7075
|
+
return ENTRIES ? fn(anObject$2(value)[0], value[1]) : fn(value);
|
|
6992
7076
|
} catch (error) {
|
|
6993
7077
|
iteratorClose(iterator, 'throw', error);
|
|
6994
7078
|
}
|
|
6995
7079
|
};
|
|
6996
7080
|
|
|
6997
|
-
var global$
|
|
7081
|
+
var global$8 = global$V;
|
|
6998
7082
|
var bind$5 = functionBindContext;
|
|
6999
7083
|
var call$1 = functionCall;
|
|
7000
7084
|
var toObject$1 = toObject$9;
|
|
@@ -7006,7 +7090,7 @@ var createProperty = createProperty$3;
|
|
|
7006
7090
|
var getIterator$1 = getIterator$3;
|
|
7007
7091
|
var getIteratorMethod$1 = getIteratorMethod$4;
|
|
7008
7092
|
|
|
7009
|
-
var Array$2 = global$
|
|
7093
|
+
var Array$2 = global$8.Array;
|
|
7010
7094
|
|
|
7011
7095
|
// `Array.from` method implementation
|
|
7012
7096
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -7042,8 +7126,8 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
7042
7126
|
};
|
|
7043
7127
|
|
|
7044
7128
|
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
7045
|
-
var global$
|
|
7046
|
-
var uncurryThis$
|
|
7129
|
+
var global$7 = global$V;
|
|
7130
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
7047
7131
|
|
|
7048
7132
|
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
7049
7133
|
var base = 36;
|
|
@@ -7059,16 +7143,16 @@ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
|
7059
7143
|
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
7060
7144
|
var baseMinusTMin = base - tMin;
|
|
7061
7145
|
|
|
7062
|
-
var RangeError = global$
|
|
7063
|
-
var exec$2 = uncurryThis$
|
|
7146
|
+
var RangeError = global$7.RangeError;
|
|
7147
|
+
var exec$2 = uncurryThis$8(regexSeparators.exec);
|
|
7064
7148
|
var floor$1 = Math.floor;
|
|
7065
7149
|
var fromCharCode = String.fromCharCode;
|
|
7066
|
-
var charCodeAt$1 = uncurryThis$
|
|
7067
|
-
var join$2 = uncurryThis$
|
|
7068
|
-
var push$4 = uncurryThis$
|
|
7069
|
-
var replace$4 = uncurryThis$
|
|
7070
|
-
var split$3 = uncurryThis$
|
|
7071
|
-
var toLowerCase$1 = uncurryThis$
|
|
7150
|
+
var charCodeAt$1 = uncurryThis$8(''.charCodeAt);
|
|
7151
|
+
var join$2 = uncurryThis$8([].join);
|
|
7152
|
+
var push$4 = uncurryThis$8([].push);
|
|
7153
|
+
var replace$4 = uncurryThis$8(''.replace);
|
|
7154
|
+
var split$3 = uncurryThis$8(''.split);
|
|
7155
|
+
var toLowerCase$1 = uncurryThis$8(''.toLowerCase);
|
|
7072
7156
|
|
|
7073
7157
|
/**
|
|
7074
7158
|
* Creates an array containing the numeric code points of each Unicode
|
|
@@ -7225,24 +7309,24 @@ var stringPunycodeToAscii = function (input) {
|
|
|
7225
7309
|
|
|
7226
7310
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
7227
7311
|
|
|
7228
|
-
var $$
|
|
7229
|
-
var global$
|
|
7312
|
+
var $$7 = _export;
|
|
7313
|
+
var global$6 = global$V;
|
|
7230
7314
|
var getBuiltIn$1 = getBuiltIn$a;
|
|
7231
7315
|
var call = functionCall;
|
|
7232
|
-
var uncurryThis$
|
|
7316
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
7233
7317
|
var USE_NATIVE_URL$1 = nativeUrl;
|
|
7234
|
-
var redefine$
|
|
7235
|
-
var redefineAll = redefineAll$
|
|
7236
|
-
var setToStringTag$
|
|
7318
|
+
var redefine$2 = redefine$b.exports;
|
|
7319
|
+
var redefineAll$2 = redefineAll$4;
|
|
7320
|
+
var setToStringTag$2 = setToStringTag$6;
|
|
7237
7321
|
var createIteratorConstructor = createIteratorConstructor$2;
|
|
7238
|
-
var InternalStateModule$
|
|
7239
|
-
var anInstance$
|
|
7240
|
-
var isCallable = isCallable$
|
|
7241
|
-
var hasOwn$
|
|
7322
|
+
var InternalStateModule$2 = internalState;
|
|
7323
|
+
var anInstance$3 = anInstance$5;
|
|
7324
|
+
var isCallable$1 = isCallable$l;
|
|
7325
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
7242
7326
|
var bind$4 = functionBindContext;
|
|
7243
7327
|
var classof = classof$7;
|
|
7244
|
-
var anObject = anObject$
|
|
7245
|
-
var isObject$
|
|
7328
|
+
var anObject$1 = anObject$f;
|
|
7329
|
+
var isObject$4 = isObject$l;
|
|
7246
7330
|
var $toString$1 = toString$9;
|
|
7247
7331
|
var create = objectCreate;
|
|
7248
7332
|
var createPropertyDescriptor = createPropertyDescriptor$6;
|
|
@@ -7255,27 +7339,27 @@ var arraySort = arraySort$1;
|
|
|
7255
7339
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
7256
7340
|
var URL_SEARCH_PARAMS = 'URLSearchParams';
|
|
7257
7341
|
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
|
7258
|
-
var setInternalState$
|
|
7259
|
-
var getInternalParamsState = InternalStateModule$
|
|
7260
|
-
var getInternalIteratorState = InternalStateModule$
|
|
7342
|
+
var setInternalState$2 = InternalStateModule$2.set;
|
|
7343
|
+
var getInternalParamsState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS);
|
|
7344
|
+
var getInternalIteratorState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
|
7261
7345
|
|
|
7262
7346
|
var n$Fetch = getBuiltIn$1('fetch');
|
|
7263
7347
|
var N$Request = getBuiltIn$1('Request');
|
|
7264
7348
|
var Headers = getBuiltIn$1('Headers');
|
|
7265
7349
|
var RequestPrototype = N$Request && N$Request.prototype;
|
|
7266
7350
|
var HeadersPrototype = Headers && Headers.prototype;
|
|
7267
|
-
var RegExp$1 = global$
|
|
7268
|
-
var TypeError$3 = global$
|
|
7269
|
-
var decodeURIComponent$1 = global$
|
|
7270
|
-
var encodeURIComponent$1 = global$
|
|
7271
|
-
var charAt$2 = uncurryThis$
|
|
7272
|
-
var join$1 = uncurryThis$
|
|
7273
|
-
var push$3 = uncurryThis$
|
|
7274
|
-
var replace$3 = uncurryThis$
|
|
7275
|
-
var shift$1 = uncurryThis$
|
|
7276
|
-
var splice = uncurryThis$
|
|
7277
|
-
var split$2 = uncurryThis$
|
|
7278
|
-
var stringSlice$1 = uncurryThis$
|
|
7351
|
+
var RegExp$1 = global$6.RegExp;
|
|
7352
|
+
var TypeError$3 = global$6.TypeError;
|
|
7353
|
+
var decodeURIComponent$1 = global$6.decodeURIComponent;
|
|
7354
|
+
var encodeURIComponent$1 = global$6.encodeURIComponent;
|
|
7355
|
+
var charAt$2 = uncurryThis$7(''.charAt);
|
|
7356
|
+
var join$1 = uncurryThis$7([].join);
|
|
7357
|
+
var push$3 = uncurryThis$7([].push);
|
|
7358
|
+
var replace$3 = uncurryThis$7(''.replace);
|
|
7359
|
+
var shift$1 = uncurryThis$7([].shift);
|
|
7360
|
+
var splice$1 = uncurryThis$7([].splice);
|
|
7361
|
+
var split$2 = uncurryThis$7(''.split);
|
|
7362
|
+
var stringSlice$1 = uncurryThis$7(''.slice);
|
|
7279
7363
|
|
|
7280
7364
|
var plus = /\+/g;
|
|
7281
7365
|
var sequences = Array(4);
|
|
@@ -7305,7 +7389,7 @@ var deserialize = function (it) {
|
|
|
7305
7389
|
}
|
|
7306
7390
|
};
|
|
7307
7391
|
|
|
7308
|
-
var find = /[!'()~]|%20/g;
|
|
7392
|
+
var find$1 = /[!'()~]|%20/g;
|
|
7309
7393
|
|
|
7310
7394
|
var replacements = {
|
|
7311
7395
|
'!': '%21',
|
|
@@ -7321,11 +7405,11 @@ var replacer = function (match) {
|
|
|
7321
7405
|
};
|
|
7322
7406
|
|
|
7323
7407
|
var serialize = function (it) {
|
|
7324
|
-
return replace$3(encodeURIComponent$1(it), find, replacer);
|
|
7408
|
+
return replace$3(encodeURIComponent$1(it), find$1, replacer);
|
|
7325
7409
|
};
|
|
7326
7410
|
|
|
7327
7411
|
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
|
7328
|
-
setInternalState$
|
|
7412
|
+
setInternalState$2(this, {
|
|
7329
7413
|
type: URL_SEARCH_PARAMS_ITERATOR,
|
|
7330
7414
|
iterator: getIterator(getInternalParamsState(params).entries),
|
|
7331
7415
|
kind: kind
|
|
@@ -7345,7 +7429,7 @@ var URLSearchParamsState = function (init) {
|
|
|
7345
7429
|
this.url = null;
|
|
7346
7430
|
|
|
7347
7431
|
if (init !== undefined) {
|
|
7348
|
-
if (isObject$
|
|
7432
|
+
if (isObject$4(init)) this.parseObject(init);
|
|
7349
7433
|
else this.parseQuery(typeof init == 'string' ? charAt$2(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init));
|
|
7350
7434
|
}
|
|
7351
7435
|
};
|
|
@@ -7364,7 +7448,7 @@ URLSearchParamsState.prototype = {
|
|
|
7364
7448
|
iterator = getIterator(object, iteratorMethod);
|
|
7365
7449
|
next = iterator.next;
|
|
7366
7450
|
while (!(step = call(next, iterator)).done) {
|
|
7367
|
-
entryIterator = getIterator(anObject(step.value));
|
|
7451
|
+
entryIterator = getIterator(anObject$1(step.value));
|
|
7368
7452
|
entryNext = entryIterator.next;
|
|
7369
7453
|
if (
|
|
7370
7454
|
(first = call(entryNext, entryIterator)).done ||
|
|
@@ -7373,7 +7457,7 @@ URLSearchParamsState.prototype = {
|
|
|
7373
7457
|
) throw TypeError$3('Expected sequence with length 2');
|
|
7374
7458
|
push$3(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
|
|
7375
7459
|
}
|
|
7376
|
-
} else for (var key in object) if (hasOwn$
|
|
7460
|
+
} else for (var key in object) if (hasOwn$2(object, key)) {
|
|
7377
7461
|
push$3(this.entries, { key: key, value: $toString$1(object[key]) });
|
|
7378
7462
|
}
|
|
7379
7463
|
},
|
|
@@ -7416,14 +7500,14 @@ URLSearchParamsState.prototype = {
|
|
|
7416
7500
|
// `URLSearchParams` constructor
|
|
7417
7501
|
// https://url.spec.whatwg.org/#interface-urlsearchparams
|
|
7418
7502
|
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
7419
|
-
anInstance$
|
|
7503
|
+
anInstance$3(this, URLSearchParamsPrototype);
|
|
7420
7504
|
var init = arguments.length > 0 ? arguments[0] : undefined;
|
|
7421
|
-
setInternalState$
|
|
7505
|
+
setInternalState$2(this, new URLSearchParamsState(init));
|
|
7422
7506
|
};
|
|
7423
7507
|
|
|
7424
7508
|
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
7425
7509
|
|
|
7426
|
-
redefineAll(URLSearchParamsPrototype, {
|
|
7510
|
+
redefineAll$2(URLSearchParamsPrototype, {
|
|
7427
7511
|
// `URLSearchParams.prototype.append` method
|
|
7428
7512
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
7429
7513
|
append: function append(name, value) {
|
|
@@ -7441,7 +7525,7 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7441
7525
|
var key = $toString$1(name);
|
|
7442
7526
|
var index = 0;
|
|
7443
7527
|
while (index < entries.length) {
|
|
7444
|
-
if (entries[index].key === key) splice(entries, index, 1);
|
|
7528
|
+
if (entries[index].key === key) splice$1(entries, index, 1);
|
|
7445
7529
|
else index++;
|
|
7446
7530
|
}
|
|
7447
7531
|
state.updateURL();
|
|
@@ -7497,7 +7581,7 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7497
7581
|
for (; index < entries.length; index++) {
|
|
7498
7582
|
entry = entries[index];
|
|
7499
7583
|
if (entry.key === key) {
|
|
7500
|
-
if (found) splice(entries, index--, 1);
|
|
7584
|
+
if (found) splice$1(entries, index--, 1);
|
|
7501
7585
|
else {
|
|
7502
7586
|
found = true;
|
|
7503
7587
|
entry.value = val;
|
|
@@ -7542,27 +7626,27 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
7542
7626
|
}, { enumerable: true });
|
|
7543
7627
|
|
|
7544
7628
|
// `URLSearchParams.prototype[@@iterator]` method
|
|
7545
|
-
redefine$
|
|
7629
|
+
redefine$2(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
|
|
7546
7630
|
|
|
7547
7631
|
// `URLSearchParams.prototype.toString` method
|
|
7548
7632
|
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
7549
|
-
redefine$
|
|
7633
|
+
redefine$2(URLSearchParamsPrototype, 'toString', function toString() {
|
|
7550
7634
|
return getInternalParamsState(this).serialize();
|
|
7551
7635
|
}, { enumerable: true });
|
|
7552
7636
|
|
|
7553
|
-
setToStringTag$
|
|
7637
|
+
setToStringTag$2(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
7554
7638
|
|
|
7555
|
-
$$
|
|
7639
|
+
$$7({ global: true, forced: !USE_NATIVE_URL$1 }, {
|
|
7556
7640
|
URLSearchParams: URLSearchParamsConstructor
|
|
7557
7641
|
});
|
|
7558
7642
|
|
|
7559
7643
|
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
|
|
7560
|
-
if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
7561
|
-
var headersHas = uncurryThis$
|
|
7562
|
-
var headersSet = uncurryThis$
|
|
7644
|
+
if (!USE_NATIVE_URL$1 && isCallable$1(Headers)) {
|
|
7645
|
+
var headersHas = uncurryThis$7(HeadersPrototype.has);
|
|
7646
|
+
var headersSet = uncurryThis$7(HeadersPrototype.set);
|
|
7563
7647
|
|
|
7564
7648
|
var wrapRequestOptions = function (init) {
|
|
7565
|
-
if (isObject$
|
|
7649
|
+
if (isObject$4(init)) {
|
|
7566
7650
|
var body = init.body;
|
|
7567
7651
|
var headers;
|
|
7568
7652
|
if (classof(body) === URL_SEARCH_PARAMS) {
|
|
@@ -7578,24 +7662,24 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
7578
7662
|
} return init;
|
|
7579
7663
|
};
|
|
7580
7664
|
|
|
7581
|
-
if (isCallable(n$Fetch)) {
|
|
7582
|
-
$$
|
|
7665
|
+
if (isCallable$1(n$Fetch)) {
|
|
7666
|
+
$$7({ global: true, enumerable: true, forced: true }, {
|
|
7583
7667
|
fetch: function fetch(input /* , init */) {
|
|
7584
7668
|
return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
7585
7669
|
}
|
|
7586
7670
|
});
|
|
7587
7671
|
}
|
|
7588
7672
|
|
|
7589
|
-
if (isCallable(N$Request)) {
|
|
7673
|
+
if (isCallable$1(N$Request)) {
|
|
7590
7674
|
var RequestConstructor = function Request(input /* , init */) {
|
|
7591
|
-
anInstance$
|
|
7675
|
+
anInstance$3(this, RequestPrototype);
|
|
7592
7676
|
return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
7593
7677
|
};
|
|
7594
7678
|
|
|
7595
7679
|
RequestPrototype.constructor = RequestConstructor;
|
|
7596
7680
|
RequestConstructor.prototype = RequestPrototype;
|
|
7597
7681
|
|
|
7598
|
-
$$
|
|
7682
|
+
$$7({ global: true, forced: true }, {
|
|
7599
7683
|
Request: RequestConstructor
|
|
7600
7684
|
});
|
|
7601
7685
|
}
|
|
@@ -7608,49 +7692,49 @@ var web_urlSearchParams = {
|
|
|
7608
7692
|
|
|
7609
7693
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
7610
7694
|
|
|
7611
|
-
var $$
|
|
7695
|
+
var $$6 = _export;
|
|
7612
7696
|
var DESCRIPTORS$2 = descriptors$1;
|
|
7613
7697
|
var USE_NATIVE_URL = nativeUrl;
|
|
7614
|
-
var global$
|
|
7698
|
+
var global$5 = global$V;
|
|
7615
7699
|
var bind$3 = functionBindContext;
|
|
7616
|
-
var uncurryThis$
|
|
7700
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
7617
7701
|
var defineProperties = objectDefineProperties.f;
|
|
7618
|
-
var redefine = redefine$
|
|
7619
|
-
var anInstance = anInstance$
|
|
7620
|
-
var hasOwn = hasOwnProperty_1;
|
|
7702
|
+
var redefine$1 = redefine$b.exports;
|
|
7703
|
+
var anInstance$2 = anInstance$5;
|
|
7704
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
7621
7705
|
var assign$1 = objectAssign;
|
|
7622
7706
|
var arrayFrom = arrayFrom$1;
|
|
7623
7707
|
var arraySlice = arraySliceSimple;
|
|
7624
7708
|
var codeAt = stringMultibyte.codeAt;
|
|
7625
7709
|
var toASCII = stringPunycodeToAscii;
|
|
7626
7710
|
var $toString = toString$9;
|
|
7627
|
-
var setToStringTag = setToStringTag$
|
|
7711
|
+
var setToStringTag$1 = setToStringTag$6;
|
|
7628
7712
|
var validateArgumentsLength = validateArgumentsLength$3;
|
|
7629
7713
|
var URLSearchParamsModule = web_urlSearchParams;
|
|
7630
|
-
var InternalStateModule = internalState;
|
|
7714
|
+
var InternalStateModule$1 = internalState;
|
|
7631
7715
|
|
|
7632
|
-
var setInternalState = InternalStateModule.set;
|
|
7633
|
-
var getInternalURLState = InternalStateModule.getterFor('URL');
|
|
7716
|
+
var setInternalState$1 = InternalStateModule$1.set;
|
|
7717
|
+
var getInternalURLState = InternalStateModule$1.getterFor('URL');
|
|
7634
7718
|
var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
|
|
7635
7719
|
var getInternalSearchParamsState = URLSearchParamsModule.getState;
|
|
7636
7720
|
|
|
7637
|
-
var NativeURL = global$
|
|
7638
|
-
var TypeError$2 = global$
|
|
7639
|
-
var parseInt$1 = global$
|
|
7721
|
+
var NativeURL = global$5.URL;
|
|
7722
|
+
var TypeError$2 = global$5.TypeError;
|
|
7723
|
+
var parseInt$1 = global$5.parseInt;
|
|
7640
7724
|
var floor = Math.floor;
|
|
7641
7725
|
var pow = Math.pow;
|
|
7642
|
-
var charAt$1 = uncurryThis$
|
|
7643
|
-
var exec$1 = uncurryThis$
|
|
7644
|
-
var join = uncurryThis$
|
|
7645
|
-
var numberToString$1 = uncurryThis$
|
|
7646
|
-
var pop = uncurryThis$
|
|
7647
|
-
var push$2 = uncurryThis$
|
|
7648
|
-
var replace$2 = uncurryThis$
|
|
7649
|
-
var shift = uncurryThis$
|
|
7650
|
-
var split$1 = uncurryThis$
|
|
7651
|
-
var stringSlice = uncurryThis$
|
|
7652
|
-
var toLowerCase = uncurryThis$
|
|
7653
|
-
var unshift = uncurryThis$
|
|
7726
|
+
var charAt$1 = uncurryThis$6(''.charAt);
|
|
7727
|
+
var exec$1 = uncurryThis$6(/./.exec);
|
|
7728
|
+
var join = uncurryThis$6([].join);
|
|
7729
|
+
var numberToString$1 = uncurryThis$6(1.0.toString);
|
|
7730
|
+
var pop = uncurryThis$6([].pop);
|
|
7731
|
+
var push$2 = uncurryThis$6([].push);
|
|
7732
|
+
var replace$2 = uncurryThis$6(''.replace);
|
|
7733
|
+
var shift = uncurryThis$6([].shift);
|
|
7734
|
+
var split$1 = uncurryThis$6(''.split);
|
|
7735
|
+
var stringSlice = uncurryThis$6(''.slice);
|
|
7736
|
+
var toLowerCase = uncurryThis$6(''.toLowerCase);
|
|
7737
|
+
var unshift = uncurryThis$6([].unshift);
|
|
7654
7738
|
|
|
7655
7739
|
var INVALID_AUTHORITY = 'Invalid authority';
|
|
7656
7740
|
var INVALID_SCHEME = 'Invalid scheme';
|
|
@@ -7858,7 +7942,7 @@ var userinfoPercentEncodeSet = assign$1({}, pathPercentEncodeSet, {
|
|
|
7858
7942
|
|
|
7859
7943
|
var percentEncode = function (chr, set) {
|
|
7860
7944
|
var code = codeAt(chr, 0);
|
|
7861
|
-
return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
|
|
7945
|
+
return code > 0x20 && code < 0x7F && !hasOwn$1(set, chr) ? chr : encodeURIComponent(chr);
|
|
7862
7946
|
};
|
|
7863
7947
|
|
|
7864
7948
|
// https://url.spec.whatwg.org/#special-scheme
|
|
@@ -7989,7 +8073,7 @@ URLState.prototype = {
|
|
|
7989
8073
|
buffer += toLowerCase(chr);
|
|
7990
8074
|
} else if (chr == ':') {
|
|
7991
8075
|
if (stateOverride && (
|
|
7992
|
-
(url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
|
|
8076
|
+
(url.isSpecial() != hasOwn$1(specialSchemes, buffer)) ||
|
|
7993
8077
|
(buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
|
|
7994
8078
|
(url.scheme == 'file' && !url.host)
|
|
7995
8079
|
)) return;
|
|
@@ -8377,7 +8461,7 @@ URLState.prototype = {
|
|
|
8377
8461
|
},
|
|
8378
8462
|
// https://url.spec.whatwg.org/#is-special
|
|
8379
8463
|
isSpecial: function () {
|
|
8380
|
-
return hasOwn(specialSchemes, this.scheme);
|
|
8464
|
+
return hasOwn$1(specialSchemes, this.scheme);
|
|
8381
8465
|
},
|
|
8382
8466
|
// https://url.spec.whatwg.org/#shorten-a-urls-path
|
|
8383
8467
|
shortenPath: function () {
|
|
@@ -8546,9 +8630,9 @@ URLState.prototype = {
|
|
|
8546
8630
|
// `URL` constructor
|
|
8547
8631
|
// https://url.spec.whatwg.org/#url-class
|
|
8548
8632
|
var URLConstructor = function URL(url /* , base */) {
|
|
8549
|
-
var that = anInstance(this, URLPrototype);
|
|
8633
|
+
var that = anInstance$2(this, URLPrototype);
|
|
8550
8634
|
var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
|
|
8551
|
-
var state = setInternalState(that, new URLState(url, false, base));
|
|
8635
|
+
var state = setInternalState$1(that, new URLState(url, false, base));
|
|
8552
8636
|
if (!DESCRIPTORS$2) {
|
|
8553
8637
|
that.href = state.serialize();
|
|
8554
8638
|
that.origin = state.getOrigin();
|
|
@@ -8623,13 +8707,13 @@ if (DESCRIPTORS$2) {
|
|
|
8623
8707
|
|
|
8624
8708
|
// `URL.prototype.toJSON` method
|
|
8625
8709
|
// https://url.spec.whatwg.org/#dom-url-tojson
|
|
8626
|
-
redefine(URLPrototype, 'toJSON', function toJSON() {
|
|
8710
|
+
redefine$1(URLPrototype, 'toJSON', function toJSON() {
|
|
8627
8711
|
return getInternalURLState(this).serialize();
|
|
8628
8712
|
}, { enumerable: true });
|
|
8629
8713
|
|
|
8630
8714
|
// `URL.prototype.toString` method
|
|
8631
8715
|
// https://url.spec.whatwg.org/#URL-stringification-behavior
|
|
8632
|
-
redefine(URLPrototype, 'toString', function toString() {
|
|
8716
|
+
redefine$1(URLPrototype, 'toString', function toString() {
|
|
8633
8717
|
return getInternalURLState(this).serialize();
|
|
8634
8718
|
}, { enumerable: true });
|
|
8635
8719
|
|
|
@@ -8638,15 +8722,15 @@ if (NativeURL) {
|
|
|
8638
8722
|
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
|
|
8639
8723
|
// `URL.createObjectURL` method
|
|
8640
8724
|
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
|
8641
|
-
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
|
|
8725
|
+
if (nativeCreateObjectURL) redefine$1(URLConstructor, 'createObjectURL', bind$3(nativeCreateObjectURL, NativeURL));
|
|
8642
8726
|
// `URL.revokeObjectURL` method
|
|
8643
8727
|
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
|
|
8644
|
-
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
|
|
8728
|
+
if (nativeRevokeObjectURL) redefine$1(URLConstructor, 'revokeObjectURL', bind$3(nativeRevokeObjectURL, NativeURL));
|
|
8645
8729
|
}
|
|
8646
8730
|
|
|
8647
|
-
setToStringTag(URLConstructor, 'URL');
|
|
8731
|
+
setToStringTag$1(URLConstructor, 'URL');
|
|
8648
8732
|
|
|
8649
|
-
$$
|
|
8733
|
+
$$6({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$2 }, {
|
|
8650
8734
|
URL: URLConstructor
|
|
8651
8735
|
});
|
|
8652
8736
|
|
|
@@ -8763,7 +8847,7 @@ function isNumber(val) {
|
|
|
8763
8847
|
* @param {Object} val The value to test
|
|
8764
8848
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
8765
8849
|
*/
|
|
8766
|
-
function isObject(val) {
|
|
8850
|
+
function isObject$3(val) {
|
|
8767
8851
|
return val !== null && typeof val === 'object';
|
|
8768
8852
|
}
|
|
8769
8853
|
|
|
@@ -8845,7 +8929,7 @@ function isFunction(val) {
|
|
|
8845
8929
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
8846
8930
|
*/
|
|
8847
8931
|
function isStream(val) {
|
|
8848
|
-
return isObject(val) && isFunction(val.pipe);
|
|
8932
|
+
return isObject$3(val) && isFunction(val.pipe);
|
|
8849
8933
|
}
|
|
8850
8934
|
|
|
8851
8935
|
/**
|
|
@@ -9149,7 +9233,7 @@ var utils$m = {
|
|
|
9149
9233
|
isArrayBufferView: isArrayBufferView,
|
|
9150
9234
|
isString: isString,
|
|
9151
9235
|
isNumber: isNumber,
|
|
9152
|
-
isObject: isObject,
|
|
9236
|
+
isObject: isObject$3,
|
|
9153
9237
|
isPlainObject: isPlainObject,
|
|
9154
9238
|
isEmptyObject: isEmptyObject,
|
|
9155
9239
|
isUndefined: isUndefined,
|
|
@@ -11932,13 +12016,13 @@ var lib = {
|
|
|
11932
12016
|
stringify: stringify
|
|
11933
12017
|
};
|
|
11934
12018
|
|
|
11935
|
-
var global$
|
|
12019
|
+
var global$4 = global$V;
|
|
11936
12020
|
var aCallable = aCallable$7;
|
|
11937
12021
|
var toObject = toObject$9;
|
|
11938
12022
|
var IndexedObject = indexedObject;
|
|
11939
12023
|
var lengthOfArrayLike = lengthOfArrayLike$8;
|
|
11940
12024
|
|
|
11941
|
-
var TypeError$1 = global$
|
|
12025
|
+
var TypeError$1 = global$4.TypeError;
|
|
11942
12026
|
|
|
11943
12027
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
11944
12028
|
var createMethod$1 = function (IS_RIGHT) {
|
|
@@ -11976,7 +12060,7 @@ var arrayReduce = {
|
|
|
11976
12060
|
right: createMethod$1(true)
|
|
11977
12061
|
};
|
|
11978
12062
|
|
|
11979
|
-
var $$
|
|
12063
|
+
var $$5 = _export;
|
|
11980
12064
|
var $reduce = arrayReduce.left;
|
|
11981
12065
|
var arrayMethodIsStrict = arrayMethodIsStrict$4;
|
|
11982
12066
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -11989,7 +12073,7 @@ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
|
11989
12073
|
|
|
11990
12074
|
// `Array.prototype.reduce` method
|
|
11991
12075
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
11992
|
-
$$
|
|
12076
|
+
$$5({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
11993
12077
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
11994
12078
|
var length = arguments.length;
|
|
11995
12079
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -12394,20 +12478,7 @@ var GooglePayAPI = {
|
|
|
12394
12478
|
return axiosInstance.post(url, urlEncodedParams, {
|
|
12395
12479
|
headers: headers
|
|
12396
12480
|
}).then(function (response) {
|
|
12397
|
-
|
|
12398
|
-
var raw = response.data;
|
|
12399
|
-
/*
|
|
12400
|
-
* A googlepay step-up is always 3DS, but the charge response can omit
|
|
12401
|
-
* the `auth` field the shared parser routes on — without it an auth
|
|
12402
|
-
* response falls through to error(). Default it so the response
|
|
12403
|
-
* normalizes through auth() exactly like card's.
|
|
12404
|
-
*/
|
|
12405
|
-
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)) {
|
|
12406
|
-
return ChargeResponses.parse(_objectSpread2(_objectSpread2({}, raw), {}, {
|
|
12407
|
-
auth: '3DS'
|
|
12408
|
-
}));
|
|
12409
|
-
}
|
|
12410
|
-
return ChargeResponses.parse(raw);
|
|
12481
|
+
return ChargeResponses.parse(response.data);
|
|
12411
12482
|
});
|
|
12412
12483
|
}
|
|
12413
12484
|
};
|
|
@@ -12506,13 +12577,13 @@ var PayPalCharge = {
|
|
|
12506
12577
|
|
|
12507
12578
|
var DESCRIPTORS$1 = descriptors$1;
|
|
12508
12579
|
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
12509
|
-
var uncurryThis$
|
|
12580
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
12510
12581
|
var defineProperty = objectDefineProperty.f;
|
|
12511
12582
|
|
|
12512
12583
|
var FunctionPrototype = Function.prototype;
|
|
12513
|
-
var functionToString = uncurryThis$
|
|
12584
|
+
var functionToString = uncurryThis$5(FunctionPrototype.toString);
|
|
12514
12585
|
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
12515
|
-
var regExpExec = uncurryThis$
|
|
12586
|
+
var regExpExec = uncurryThis$5(nameRE.exec);
|
|
12516
12587
|
var NAME = 'name';
|
|
12517
12588
|
|
|
12518
12589
|
// Function instances `.name` property
|
|
@@ -17906,13 +17977,13 @@ function encrypt(toEncrypt) {
|
|
|
17906
17977
|
}
|
|
17907
17978
|
|
|
17908
17979
|
var DESCRIPTORS = descriptors$1;
|
|
17909
|
-
var uncurryThis$
|
|
17980
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
17910
17981
|
var objectKeys = objectKeys$3;
|
|
17911
17982
|
var toIndexedObject = toIndexedObject$8;
|
|
17912
17983
|
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
17913
17984
|
|
|
17914
|
-
var propertyIsEnumerable = uncurryThis$
|
|
17915
|
-
var push = uncurryThis$
|
|
17985
|
+
var propertyIsEnumerable = uncurryThis$4($propertyIsEnumerable);
|
|
17986
|
+
var push = uncurryThis$4([].push);
|
|
17916
17987
|
|
|
17917
17988
|
// `Object.{ entries, values }` methods implementation
|
|
17918
17989
|
var createMethod = function (TO_ENTRIES) {
|
|
@@ -17942,18 +18013,18 @@ var objectToArray = {
|
|
|
17942
18013
|
values: createMethod(false)
|
|
17943
18014
|
};
|
|
17944
18015
|
|
|
17945
|
-
var $$
|
|
18016
|
+
var $$4 = _export;
|
|
17946
18017
|
var $values = objectToArray.values;
|
|
17947
18018
|
|
|
17948
18019
|
// `Object.values` method
|
|
17949
18020
|
// https://tc39.es/ecma262/#sec-object.values
|
|
17950
|
-
$$
|
|
18021
|
+
$$4({ target: 'Object', stat: true }, {
|
|
17951
18022
|
values: function values(O) {
|
|
17952
18023
|
return $values(O);
|
|
17953
18024
|
}
|
|
17954
18025
|
});
|
|
17955
18026
|
|
|
17956
|
-
var $$
|
|
18027
|
+
var $$3 = _export;
|
|
17957
18028
|
var $find = arrayIteration.find;
|
|
17958
18029
|
var addToUnscopables = addToUnscopables$3;
|
|
17959
18030
|
|
|
@@ -17965,7 +18036,7 @@ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
|
17965
18036
|
|
|
17966
18037
|
// `Array.prototype.find` method
|
|
17967
18038
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
17968
|
-
$$
|
|
18039
|
+
$$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
17969
18040
|
find: function find(callbackfn /* , that = undefined */) {
|
|
17970
18041
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
17971
18042
|
}
|
|
@@ -20399,6 +20470,10 @@ var MobileMoneyAPI = {
|
|
|
20399
20470
|
}
|
|
20400
20471
|
};
|
|
20401
20472
|
|
|
20473
|
+
// Statuses that leave the transaction with a Pusher channel worth listening on.
|
|
20474
|
+
// `awaiting_ussd_confirmation` is mid-flight, not settled, but still carries the
|
|
20475
|
+
// `channel_name` the outcome arrives on.
|
|
20476
|
+
var LISTENABLE_CHARGE_STATUSES = ['success', 'awaiting_ussd_confirmation'];
|
|
20402
20477
|
function validate$1(phoneNumber) {
|
|
20403
20478
|
return new Promise(function (resolve, reject) {
|
|
20404
20479
|
var validation = PhoneNumber.validate(phoneNumber);
|
|
@@ -20437,10 +20512,14 @@ function buildMobileMoneyParams(payload) {
|
|
|
20437
20512
|
var MobileMoneyCharge = {
|
|
20438
20513
|
mobileMoneyChargeAPI: function mobileMoneyChargeAPI(params) {
|
|
20439
20514
|
var _this = this;
|
|
20515
|
+
// Cleared before the request, not in the handler: the API layer's .catch
|
|
20516
|
+
// destructures `response`, which a network error lacks, so it throws and no
|
|
20517
|
+
// handler runs.
|
|
20518
|
+
this.mobileMoney = {};
|
|
20440
20519
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20441
|
-
if (response.status
|
|
20520
|
+
if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
|
|
20442
20521
|
_this.mobileMoney = response;
|
|
20443
|
-
if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20522
|
+
if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20444
20523
|
_this.logTokenRequest('mobile money');
|
|
20445
20524
|
}
|
|
20446
20525
|
}
|
|
@@ -20489,10 +20568,13 @@ var MobileMoneyCharge = {
|
|
|
20489
20568
|
id: _this3.id,
|
|
20490
20569
|
deviceFingerprint: _this3.deviceFingerprint
|
|
20491
20570
|
});
|
|
20571
|
+
|
|
20572
|
+
// Cleared before the request, as in mobileMoneyChargeAPI above.
|
|
20573
|
+
_this3.mobileMoney = {};
|
|
20492
20574
|
return MobileMoneyAPI.charge(params).then(function (response) {
|
|
20493
|
-
if (response.status
|
|
20575
|
+
if (LISTENABLE_CHARGE_STATUSES.includes(response.status)) {
|
|
20494
20576
|
_this3.mobileMoney = response;
|
|
20495
|
-
if (response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20577
|
+
if (response.status === 'success' && response.data && response.data.display && response.data.display.otpSentCount === 1) {
|
|
20496
20578
|
_this3.logTokenRequest('mobile money');
|
|
20497
20579
|
}
|
|
20498
20580
|
} else if (response.errors && response.errors.data && response.errors.data.status === 'awaiting_registration_token') {
|
|
@@ -20515,17 +20597,33 @@ var MobileMoneyCharge = {
|
|
|
20515
20597
|
});
|
|
20516
20598
|
},
|
|
20517
20599
|
listenForMobileMoneyCharge: function listenForMobileMoneyCharge(callback) {
|
|
20518
|
-
|
|
20600
|
+
var _ref2 = this.mobileMoney.data || {},
|
|
20601
|
+
channel = _ref2.channel,
|
|
20602
|
+
channelName = _ref2.channel_name;
|
|
20603
|
+
var listenerChannel = channel || channelName;
|
|
20604
|
+
if (!LISTENABLE_CHARGE_STATUSES.includes(this.mobileMoney.status) || !listenerChannel) {
|
|
20519
20605
|
return Promise.reject(Error('Please start a mobile money charge with Transaction.chargeMobileMoney()'));
|
|
20520
20606
|
}
|
|
20521
|
-
var _this$mobileMoney$dat = this.mobileMoney.data,
|
|
20522
|
-
channel = _this$mobileMoney$dat.channel,
|
|
20523
|
-
channelName = _this$mobileMoney$dat.channel_name;
|
|
20524
20607
|
var listenerOptions = {
|
|
20525
|
-
channel:
|
|
20608
|
+
channel: listenerChannel,
|
|
20526
20609
|
paymentMethod: 'mobile_money'
|
|
20527
20610
|
};
|
|
20528
20611
|
return this.listenForCharge(listenerOptions, callback);
|
|
20612
|
+
},
|
|
20613
|
+
// Unlike every sibling listener, this returns a teardown function rather than a
|
|
20614
|
+
// promise, so it throws synchronously instead of rejecting. A caller in a
|
|
20615
|
+
// non-async event handler gets an uncaught throw, not an unhandled rejection.
|
|
20616
|
+
listenForMobileMoneyConfirmation: function listenForMobileMoneyConfirmation(callback, pusherChannel) {
|
|
20617
|
+
var data = this.mobileMoney.data;
|
|
20618
|
+
var confirmationChannel = pusherChannel || data && data.confirm_channel_name;
|
|
20619
|
+
if (!confirmationChannel) {
|
|
20620
|
+
throw new Error('Please provide the confirm_channel_name returned by Transaction.chargeMobileMoney()');
|
|
20621
|
+
}
|
|
20622
|
+
var listenerOptions = {
|
|
20623
|
+
channel: confirmationChannel,
|
|
20624
|
+
paymentMethod: 'mobile_money'
|
|
20625
|
+
};
|
|
20626
|
+
return subscribeToConfirmationEvents(listenerOptions, this, callback);
|
|
20529
20627
|
}
|
|
20530
20628
|
};
|
|
20531
20629
|
|
|
@@ -20686,7 +20784,7 @@ var DirectDebitCharge = {
|
|
|
20686
20784
|
};
|
|
20687
20785
|
|
|
20688
20786
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
20689
|
-
var fails$
|
|
20787
|
+
var fails$2 = fails$x;
|
|
20690
20788
|
var whitespaces = whitespaces$3;
|
|
20691
20789
|
|
|
20692
20790
|
var non = '\u200B\u0085\u180E';
|
|
@@ -20694,20 +20792,20 @@ var non = '\u200B\u0085\u180E';
|
|
|
20694
20792
|
// check that a method works with the correct list
|
|
20695
20793
|
// of whitespaces and has a correct name
|
|
20696
20794
|
var stringTrimForced = function (METHOD_NAME) {
|
|
20697
|
-
return fails$
|
|
20795
|
+
return fails$2(function () {
|
|
20698
20796
|
return !!whitespaces[METHOD_NAME]()
|
|
20699
20797
|
|| non[METHOD_NAME]() !== non
|
|
20700
20798
|
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
20701
20799
|
});
|
|
20702
20800
|
};
|
|
20703
20801
|
|
|
20704
|
-
var $$
|
|
20802
|
+
var $$2 = _export;
|
|
20705
20803
|
var $trim = stringTrim.trim;
|
|
20706
20804
|
var forcedStringTrimMethod = stringTrimForced;
|
|
20707
20805
|
|
|
20708
20806
|
// `String.prototype.trim` method
|
|
20709
20807
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
20710
|
-
$$
|
|
20808
|
+
$$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
20711
20809
|
trim: function trim() {
|
|
20712
20810
|
return $trim(this);
|
|
20713
20811
|
}
|
|
@@ -20946,6 +21044,456 @@ var InstalmentsCharge = {
|
|
|
20946
21044
|
}
|
|
20947
21045
|
};
|
|
20948
21046
|
|
|
21047
|
+
var $$1 = _export;
|
|
21048
|
+
var global$3 = global$V;
|
|
21049
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
21050
|
+
var isForced = isForced_1;
|
|
21051
|
+
var redefine = redefine$b.exports;
|
|
21052
|
+
var InternalMetadataModule$1 = internalMetadata.exports;
|
|
21053
|
+
var iterate$1 = iterate$3;
|
|
21054
|
+
var anInstance$1 = anInstance$5;
|
|
21055
|
+
var isCallable = isCallable$l;
|
|
21056
|
+
var isObject$2 = isObject$l;
|
|
21057
|
+
var fails$1 = fails$x;
|
|
21058
|
+
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
|
|
21059
|
+
var setToStringTag = setToStringTag$6;
|
|
21060
|
+
var inheritIfRequired = inheritIfRequired$3;
|
|
21061
|
+
|
|
21062
|
+
var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
21063
|
+
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
|
|
21064
|
+
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
|
|
21065
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
21066
|
+
var NativeConstructor = global$3[CONSTRUCTOR_NAME];
|
|
21067
|
+
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
|
21068
|
+
var Constructor = NativeConstructor;
|
|
21069
|
+
var exported = {};
|
|
21070
|
+
|
|
21071
|
+
var fixMethod = function (KEY) {
|
|
21072
|
+
var uncurriedNativeMethod = uncurryThis$3(NativePrototype[KEY]);
|
|
21073
|
+
redefine(NativePrototype, KEY,
|
|
21074
|
+
KEY == 'add' ? function add(value) {
|
|
21075
|
+
uncurriedNativeMethod(this, value === 0 ? 0 : value);
|
|
21076
|
+
return this;
|
|
21077
|
+
} : KEY == 'delete' ? function (key) {
|
|
21078
|
+
return IS_WEAK && !isObject$2(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21079
|
+
} : KEY == 'get' ? function get(key) {
|
|
21080
|
+
return IS_WEAK && !isObject$2(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21081
|
+
} : KEY == 'has' ? function has(key) {
|
|
21082
|
+
return IS_WEAK && !isObject$2(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
21083
|
+
} : function set(key, value) {
|
|
21084
|
+
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
|
|
21085
|
+
return this;
|
|
21086
|
+
}
|
|
21087
|
+
);
|
|
21088
|
+
};
|
|
21089
|
+
|
|
21090
|
+
var REPLACE = isForced(
|
|
21091
|
+
CONSTRUCTOR_NAME,
|
|
21092
|
+
!isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$1(function () {
|
|
21093
|
+
new NativeConstructor().entries().next();
|
|
21094
|
+
}))
|
|
21095
|
+
);
|
|
21096
|
+
|
|
21097
|
+
if (REPLACE) {
|
|
21098
|
+
// create collection constructor
|
|
21099
|
+
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
|
|
21100
|
+
InternalMetadataModule$1.enable();
|
|
21101
|
+
} else if (isForced(CONSTRUCTOR_NAME, true)) {
|
|
21102
|
+
var instance = new Constructor();
|
|
21103
|
+
// early implementations not supports chaining
|
|
21104
|
+
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
|
|
21105
|
+
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
|
21106
|
+
var THROWS_ON_PRIMITIVES = fails$1(function () { instance.has(1); });
|
|
21107
|
+
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
|
21108
|
+
// eslint-disable-next-line no-new -- required for testing
|
|
21109
|
+
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
|
|
21110
|
+
// for early implementations -0 and +0 not the same
|
|
21111
|
+
var BUGGY_ZERO = !IS_WEAK && fails$1(function () {
|
|
21112
|
+
// V8 ~ Chromium 42- fails only with 5+ elements
|
|
21113
|
+
var $instance = new NativeConstructor();
|
|
21114
|
+
var index = 5;
|
|
21115
|
+
while (index--) $instance[ADDER](index, index);
|
|
21116
|
+
return !$instance.has(-0);
|
|
21117
|
+
});
|
|
21118
|
+
|
|
21119
|
+
if (!ACCEPT_ITERABLES) {
|
|
21120
|
+
Constructor = wrapper(function (dummy, iterable) {
|
|
21121
|
+
anInstance$1(dummy, NativePrototype);
|
|
21122
|
+
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
|
|
21123
|
+
if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
21124
|
+
return that;
|
|
21125
|
+
});
|
|
21126
|
+
Constructor.prototype = NativePrototype;
|
|
21127
|
+
NativePrototype.constructor = Constructor;
|
|
21128
|
+
}
|
|
21129
|
+
|
|
21130
|
+
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
|
|
21131
|
+
fixMethod('delete');
|
|
21132
|
+
fixMethod('has');
|
|
21133
|
+
IS_MAP && fixMethod('get');
|
|
21134
|
+
}
|
|
21135
|
+
|
|
21136
|
+
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
|
|
21137
|
+
|
|
21138
|
+
// weak collections should not contains .clear method
|
|
21139
|
+
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
|
|
21140
|
+
}
|
|
21141
|
+
|
|
21142
|
+
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
21143
|
+
$$1({ global: true, forced: Constructor != NativeConstructor }, exported);
|
|
21144
|
+
|
|
21145
|
+
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
|
21146
|
+
|
|
21147
|
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
21148
|
+
|
|
21149
|
+
return Constructor;
|
|
21150
|
+
};
|
|
21151
|
+
|
|
21152
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
21153
|
+
var redefineAll$1 = redefineAll$4;
|
|
21154
|
+
var getWeakData = internalMetadata.exports.getWeakData;
|
|
21155
|
+
var anObject = anObject$f;
|
|
21156
|
+
var isObject$1 = isObject$l;
|
|
21157
|
+
var anInstance = anInstance$5;
|
|
21158
|
+
var iterate = iterate$3;
|
|
21159
|
+
var ArrayIterationModule = arrayIteration;
|
|
21160
|
+
var hasOwn = hasOwnProperty_1;
|
|
21161
|
+
var InternalStateModule = internalState;
|
|
21162
|
+
|
|
21163
|
+
var setInternalState = InternalStateModule.set;
|
|
21164
|
+
var internalStateGetterFor = InternalStateModule.getterFor;
|
|
21165
|
+
var find = ArrayIterationModule.find;
|
|
21166
|
+
var findIndex = ArrayIterationModule.findIndex;
|
|
21167
|
+
var splice = uncurryThis$2([].splice);
|
|
21168
|
+
var id = 0;
|
|
21169
|
+
|
|
21170
|
+
// fallback for uncaught frozen keys
|
|
21171
|
+
var uncaughtFrozenStore = function (store) {
|
|
21172
|
+
return store.frozen || (store.frozen = new UncaughtFrozenStore());
|
|
21173
|
+
};
|
|
21174
|
+
|
|
21175
|
+
var UncaughtFrozenStore = function () {
|
|
21176
|
+
this.entries = [];
|
|
21177
|
+
};
|
|
21178
|
+
|
|
21179
|
+
var findUncaughtFrozen = function (store, key) {
|
|
21180
|
+
return find(store.entries, function (it) {
|
|
21181
|
+
return it[0] === key;
|
|
21182
|
+
});
|
|
21183
|
+
};
|
|
21184
|
+
|
|
21185
|
+
UncaughtFrozenStore.prototype = {
|
|
21186
|
+
get: function (key) {
|
|
21187
|
+
var entry = findUncaughtFrozen(this, key);
|
|
21188
|
+
if (entry) return entry[1];
|
|
21189
|
+
},
|
|
21190
|
+
has: function (key) {
|
|
21191
|
+
return !!findUncaughtFrozen(this, key);
|
|
21192
|
+
},
|
|
21193
|
+
set: function (key, value) {
|
|
21194
|
+
var entry = findUncaughtFrozen(this, key);
|
|
21195
|
+
if (entry) entry[1] = value;
|
|
21196
|
+
else this.entries.push([key, value]);
|
|
21197
|
+
},
|
|
21198
|
+
'delete': function (key) {
|
|
21199
|
+
var index = findIndex(this.entries, function (it) {
|
|
21200
|
+
return it[0] === key;
|
|
21201
|
+
});
|
|
21202
|
+
if (~index) splice(this.entries, index, 1);
|
|
21203
|
+
return !!~index;
|
|
21204
|
+
}
|
|
21205
|
+
};
|
|
21206
|
+
|
|
21207
|
+
var collectionWeak$1 = {
|
|
21208
|
+
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
|
21209
|
+
var Constructor = wrapper(function (that, iterable) {
|
|
21210
|
+
anInstance(that, Prototype);
|
|
21211
|
+
setInternalState(that, {
|
|
21212
|
+
type: CONSTRUCTOR_NAME,
|
|
21213
|
+
id: id++,
|
|
21214
|
+
frozen: undefined
|
|
21215
|
+
});
|
|
21216
|
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
21217
|
+
});
|
|
21218
|
+
|
|
21219
|
+
var Prototype = Constructor.prototype;
|
|
21220
|
+
|
|
21221
|
+
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
21222
|
+
|
|
21223
|
+
var define = function (that, key, value) {
|
|
21224
|
+
var state = getInternalState(that);
|
|
21225
|
+
var data = getWeakData(anObject(key), true);
|
|
21226
|
+
if (data === true) uncaughtFrozenStore(state).set(key, value);
|
|
21227
|
+
else data[state.id] = value;
|
|
21228
|
+
return that;
|
|
21229
|
+
};
|
|
21230
|
+
|
|
21231
|
+
redefineAll$1(Prototype, {
|
|
21232
|
+
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
|
|
21233
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
|
|
21234
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
|
21235
|
+
'delete': function (key) {
|
|
21236
|
+
var state = getInternalState(this);
|
|
21237
|
+
if (!isObject$1(key)) return false;
|
|
21238
|
+
var data = getWeakData(key);
|
|
21239
|
+
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
|
|
21240
|
+
return data && hasOwn(data, state.id) && delete data[state.id];
|
|
21241
|
+
},
|
|
21242
|
+
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
|
|
21243
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
|
|
21244
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
21245
|
+
has: function has(key) {
|
|
21246
|
+
var state = getInternalState(this);
|
|
21247
|
+
if (!isObject$1(key)) return false;
|
|
21248
|
+
var data = getWeakData(key);
|
|
21249
|
+
if (data === true) return uncaughtFrozenStore(state).has(key);
|
|
21250
|
+
return data && hasOwn(data, state.id);
|
|
21251
|
+
}
|
|
21252
|
+
});
|
|
21253
|
+
|
|
21254
|
+
redefineAll$1(Prototype, IS_MAP ? {
|
|
21255
|
+
// `WeakMap.prototype.get(key)` method
|
|
21256
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
|
|
21257
|
+
get: function get(key) {
|
|
21258
|
+
var state = getInternalState(this);
|
|
21259
|
+
if (isObject$1(key)) {
|
|
21260
|
+
var data = getWeakData(key);
|
|
21261
|
+
if (data === true) return uncaughtFrozenStore(state).get(key);
|
|
21262
|
+
return data ? data[state.id] : undefined;
|
|
21263
|
+
}
|
|
21264
|
+
},
|
|
21265
|
+
// `WeakMap.prototype.set(key, value)` method
|
|
21266
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
|
|
21267
|
+
set: function set(key, value) {
|
|
21268
|
+
return define(this, key, value);
|
|
21269
|
+
}
|
|
21270
|
+
} : {
|
|
21271
|
+
// `WeakSet.prototype.add(value)` method
|
|
21272
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.add
|
|
21273
|
+
add: function add(value) {
|
|
21274
|
+
return define(this, value, true);
|
|
21275
|
+
}
|
|
21276
|
+
});
|
|
21277
|
+
|
|
21278
|
+
return Constructor;
|
|
21279
|
+
}
|
|
21280
|
+
};
|
|
21281
|
+
|
|
21282
|
+
var global$2 = global$V;
|
|
21283
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
21284
|
+
var redefineAll = redefineAll$4;
|
|
21285
|
+
var InternalMetadataModule = internalMetadata.exports;
|
|
21286
|
+
var collection = collection$1;
|
|
21287
|
+
var collectionWeak = collectionWeak$1;
|
|
21288
|
+
var isObject = isObject$l;
|
|
21289
|
+
var isExtensible = objectIsExtensible;
|
|
21290
|
+
var enforceInternalState = internalState.enforce;
|
|
21291
|
+
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
21292
|
+
|
|
21293
|
+
var IS_IE11 = !global$2.ActiveXObject && 'ActiveXObject' in global$2;
|
|
21294
|
+
var InternalWeakMap;
|
|
21295
|
+
|
|
21296
|
+
var wrapper = function (init) {
|
|
21297
|
+
return function WeakMap() {
|
|
21298
|
+
return init(this, arguments.length ? arguments[0] : undefined);
|
|
21299
|
+
};
|
|
21300
|
+
};
|
|
21301
|
+
|
|
21302
|
+
// `WeakMap` constructor
|
|
21303
|
+
// https://tc39.es/ecma262/#sec-weakmap-constructor
|
|
21304
|
+
var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
|
|
21305
|
+
|
|
21306
|
+
// IE11 WeakMap frozen keys fix
|
|
21307
|
+
// We can't use feature detection because it crash some old IE builds
|
|
21308
|
+
// https://github.com/zloirock/core-js/issues/485
|
|
21309
|
+
if (NATIVE_WEAK_MAP && IS_IE11) {
|
|
21310
|
+
InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
|
|
21311
|
+
InternalMetadataModule.enable();
|
|
21312
|
+
var WeakMapPrototype = $WeakMap.prototype;
|
|
21313
|
+
var nativeDelete = uncurryThis$1(WeakMapPrototype['delete']);
|
|
21314
|
+
var nativeHas = uncurryThis$1(WeakMapPrototype.has);
|
|
21315
|
+
var nativeGet = uncurryThis$1(WeakMapPrototype.get);
|
|
21316
|
+
var nativeSet = uncurryThis$1(WeakMapPrototype.set);
|
|
21317
|
+
redefineAll(WeakMapPrototype, {
|
|
21318
|
+
'delete': function (key) {
|
|
21319
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21320
|
+
var state = enforceInternalState(this);
|
|
21321
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21322
|
+
return nativeDelete(this, key) || state.frozen['delete'](key);
|
|
21323
|
+
} return nativeDelete(this, key);
|
|
21324
|
+
},
|
|
21325
|
+
has: function has(key) {
|
|
21326
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21327
|
+
var state = enforceInternalState(this);
|
|
21328
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21329
|
+
return nativeHas(this, key) || state.frozen.has(key);
|
|
21330
|
+
} return nativeHas(this, key);
|
|
21331
|
+
},
|
|
21332
|
+
get: function get(key) {
|
|
21333
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21334
|
+
var state = enforceInternalState(this);
|
|
21335
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21336
|
+
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
|
|
21337
|
+
} return nativeGet(this, key);
|
|
21338
|
+
},
|
|
21339
|
+
set: function set(key, value) {
|
|
21340
|
+
if (isObject(key) && !isExtensible(key)) {
|
|
21341
|
+
var state = enforceInternalState(this);
|
|
21342
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
21343
|
+
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
|
|
21344
|
+
} else nativeSet(this, key, value);
|
|
21345
|
+
return this;
|
|
21346
|
+
}
|
|
21347
|
+
});
|
|
21348
|
+
}
|
|
21349
|
+
|
|
21350
|
+
var parseChargeRefusal = function parseChargeRefusal(error) {
|
|
21351
|
+
if (!error.response || error.response.status >= 500) throw error;
|
|
21352
|
+
return ChargeResponses.parse(error.response.data);
|
|
21353
|
+
};
|
|
21354
|
+
var PayflexAPI = {
|
|
21355
|
+
charge: function charge(_ref) {
|
|
21356
|
+
var accessCode = _ref.accessCode,
|
|
21357
|
+
publicKey = _ref.publicKey,
|
|
21358
|
+
deviceFingerprint = _ref.deviceFingerprint,
|
|
21359
|
+
returnUrl = _ref.returnUrl,
|
|
21360
|
+
checkoutMode = _ref.checkoutMode,
|
|
21361
|
+
successUrl = _ref.successUrl,
|
|
21362
|
+
cancelUrl = _ref.cancelUrl;
|
|
21363
|
+
var url = new URL('transaction/charge', configToUse.paystackApiUrl).toString();
|
|
21364
|
+
var language = getLanguage();
|
|
21365
|
+
var headers = _objectSpread2({
|
|
21366
|
+
Authorization: "Bearer ".concat(publicKey)
|
|
21367
|
+
}, language && {
|
|
21368
|
+
'Accept-Language': language
|
|
21369
|
+
});
|
|
21370
|
+
var params = _objectSpread2(_objectSpread2({
|
|
21371
|
+
access_code: accessCode
|
|
21372
|
+
}, deviceFingerprint && {
|
|
21373
|
+
device_id: deviceFingerprint
|
|
21374
|
+
}), {}, {
|
|
21375
|
+
payflex: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, returnUrl && {
|
|
21376
|
+
return_url: returnUrl
|
|
21377
|
+
}), checkoutMode && {
|
|
21378
|
+
checkout_mode: checkoutMode
|
|
21379
|
+
}), successUrl && {
|
|
21380
|
+
success_url: successUrl
|
|
21381
|
+
}), cancelUrl && {
|
|
21382
|
+
cancel_url: cancelUrl
|
|
21383
|
+
})
|
|
21384
|
+
});
|
|
21385
|
+
return axiosInstance.post(url, params, {
|
|
21386
|
+
headers: headers
|
|
21387
|
+
}).then(function (response) {
|
|
21388
|
+
return ChargeResponses.parse(response.data);
|
|
21389
|
+
}).catch(parseChargeRefusal);
|
|
21390
|
+
},
|
|
21391
|
+
requery: function requery(_ref2) {
|
|
21392
|
+
var transactionReference = _ref2.transactionReference,
|
|
21393
|
+
publicKey = _ref2.publicKey;
|
|
21394
|
+
var url = new URL("payflex/requery/".concat(encodeURIComponent(transactionReference)), configToUse.paystackApiUrl).toString();
|
|
21395
|
+
var language = getLanguage();
|
|
21396
|
+
var headers = _objectSpread2({
|
|
21397
|
+
Authorization: "Bearer ".concat(publicKey)
|
|
21398
|
+
}, language && {
|
|
21399
|
+
'Accept-Language': language
|
|
21400
|
+
});
|
|
21401
|
+
return axiosInstance.get(url, {
|
|
21402
|
+
headers: headers
|
|
21403
|
+
}).then(function (response) {
|
|
21404
|
+
return ChargeResponses.parse(response.data);
|
|
21405
|
+
});
|
|
21406
|
+
}
|
|
21407
|
+
};
|
|
21408
|
+
|
|
21409
|
+
var PAYFLEX_CHANNEL = 'payflex';
|
|
21410
|
+
|
|
21411
|
+
var pollRuns = new WeakMap();
|
|
21412
|
+
var runFor = function runFor(transaction) {
|
|
21413
|
+
if (!pollRuns.has(transaction)) {
|
|
21414
|
+
pollRuns.set(transaction, {
|
|
21415
|
+
pendingLogged: false,
|
|
21416
|
+
concluded: false,
|
|
21417
|
+
lastOutcome: null
|
|
21418
|
+
});
|
|
21419
|
+
}
|
|
21420
|
+
return pollRuns.get(transaction);
|
|
21421
|
+
};
|
|
21422
|
+
var isTerminal = function isTerminal(status) {
|
|
21423
|
+
return status === 'success' || status === 'failed';
|
|
21424
|
+
};
|
|
21425
|
+
var recordOutcome = function recordOutcome(transaction, response) {
|
|
21426
|
+
var run = runFor(transaction);
|
|
21427
|
+
if (isTerminal(response.status)) {
|
|
21428
|
+
if (run.lastOutcome === response.status) return false;
|
|
21429
|
+
run.concluded = true;
|
|
21430
|
+
run.pendingLogged = false;
|
|
21431
|
+
run.lastOutcome = response.status;
|
|
21432
|
+
return true;
|
|
21433
|
+
}
|
|
21434
|
+
if (response.status !== 'pending') return true;
|
|
21435
|
+
if (run.pendingLogged || run.concluded) return false;
|
|
21436
|
+
run.pendingLogged = true;
|
|
21437
|
+
return true;
|
|
21438
|
+
};
|
|
21439
|
+
var PayflexCharge = {
|
|
21440
|
+
chargePayflex: function chargePayflex() {
|
|
21441
|
+
var _this = this;
|
|
21442
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
21443
|
+
returnUrl = _ref.returnUrl,
|
|
21444
|
+
checkoutMode = _ref.checkoutMode,
|
|
21445
|
+
successUrl = _ref.successUrl,
|
|
21446
|
+
cancelUrl = _ref.cancelUrl;
|
|
21447
|
+
pollRuns.delete(this);
|
|
21448
|
+
this.logAttempt(PAYFLEX_CHANNEL);
|
|
21449
|
+
if (checkoutMode) {
|
|
21450
|
+
this.logPayflexPresentationMode(checkoutMode);
|
|
21451
|
+
}
|
|
21452
|
+
return PayflexAPI.charge({
|
|
21453
|
+
accessCode: this.accessCode,
|
|
21454
|
+
publicKey: this.merchant.key,
|
|
21455
|
+
deviceFingerprint: this.deviceFingerprint,
|
|
21456
|
+
returnUrl: returnUrl,
|
|
21457
|
+
checkoutMode: checkoutMode,
|
|
21458
|
+
successUrl: successUrl,
|
|
21459
|
+
cancelUrl: cancelUrl
|
|
21460
|
+
}).then(function (response) {
|
|
21461
|
+
var usedMode = response.data && response.data.checkout_mode;
|
|
21462
|
+
if (checkoutMode && usedMode && usedMode !== checkoutMode) {
|
|
21463
|
+
_this.logPayflexPresentationModeMismatch({
|
|
21464
|
+
requested: checkoutMode,
|
|
21465
|
+
used: usedMode
|
|
21466
|
+
});
|
|
21467
|
+
}
|
|
21468
|
+
_this.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21469
|
+
return response;
|
|
21470
|
+
});
|
|
21471
|
+
},
|
|
21472
|
+
requeryPayflex: function requeryPayflex() {
|
|
21473
|
+
var _this2 = this;
|
|
21474
|
+
return PayflexAPI.requery({
|
|
21475
|
+
transactionReference: this.reference,
|
|
21476
|
+
publicKey: this.merchant.key
|
|
21477
|
+
}).then(function (response) {
|
|
21478
|
+
if (recordOutcome(_this2, response)) {
|
|
21479
|
+
_this2.logAPIResponse(response, PAYFLEX_CHANNEL);
|
|
21480
|
+
}
|
|
21481
|
+
return response;
|
|
21482
|
+
});
|
|
21483
|
+
},
|
|
21484
|
+
listenForPayflexCharge: function listenForPayflexCharge(callback) {
|
|
21485
|
+
var _this3 = this;
|
|
21486
|
+
var listenerOptions = {
|
|
21487
|
+
paymentMethod: PAYFLEX_CHANNEL,
|
|
21488
|
+
channel: "PAYFLEX_".concat(this.id)
|
|
21489
|
+
};
|
|
21490
|
+
return this.listenForCharge(listenerOptions, function (response, unsubscribe) {
|
|
21491
|
+
recordOutcome(_this3, response);
|
|
21492
|
+
callback(response, unsubscribe);
|
|
21493
|
+
});
|
|
21494
|
+
}
|
|
21495
|
+
};
|
|
21496
|
+
|
|
20949
21497
|
var ChargeFunctions = {
|
|
20950
21498
|
get: function get(channel) {
|
|
20951
21499
|
var chargeFunctions = {
|
|
@@ -20963,7 +21511,8 @@ var ChargeFunctions = {
|
|
|
20963
21511
|
paypal: PayPalCharge,
|
|
20964
21512
|
capitec_pay: CapitecPayCharge,
|
|
20965
21513
|
union_pay: ChinaUnionPayCharge,
|
|
20966
|
-
instalments: InstalmentsCharge
|
|
21514
|
+
instalments: InstalmentsCharge,
|
|
21515
|
+
payflex: PayflexCharge
|
|
20967
21516
|
};
|
|
20968
21517
|
return chargeFunctions[channel];
|
|
20969
21518
|
}
|
|
@@ -21007,11 +21556,11 @@ var AnalyticsUtils = {
|
|
|
21007
21556
|
};
|
|
21008
21557
|
|
|
21009
21558
|
var $ = _export;
|
|
21010
|
-
var global$1 = global$
|
|
21559
|
+
var global$1 = global$V;
|
|
21011
21560
|
var getBuiltIn = getBuiltIn$a;
|
|
21012
21561
|
var apply = functionApply;
|
|
21013
21562
|
var uncurryThis = functionUncurryThis;
|
|
21014
|
-
var fails = fails$
|
|
21563
|
+
var fails = fails$x;
|
|
21015
21564
|
|
|
21016
21565
|
var Array$1 = global$1.Array;
|
|
21017
21566
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
@@ -21176,7 +21725,36 @@ var CapitecPayAnalytics = {
|
|
|
21176
21725
|
}
|
|
21177
21726
|
};
|
|
21178
21727
|
|
|
21179
|
-
var
|
|
21728
|
+
var PayflexAnalytics = {
|
|
21729
|
+
logPayflexPresentationMode: function logPayflexPresentationMode(checkoutMode) {
|
|
21730
|
+
return this.logHistoryEntry({
|
|
21731
|
+
type: 'action',
|
|
21732
|
+
message: "Opening Payflex as: ".concat(checkoutMode),
|
|
21733
|
+
channel: PAYFLEX_CHANNEL,
|
|
21734
|
+
time: this.getTimeSpent()
|
|
21735
|
+
});
|
|
21736
|
+
},
|
|
21737
|
+
logPayflexPresentationModeMismatch: function logPayflexPresentationModeMismatch(_ref) {
|
|
21738
|
+
var requested = _ref.requested,
|
|
21739
|
+
used = _ref.used;
|
|
21740
|
+
return this.logHistoryEntry({
|
|
21741
|
+
type: 'action',
|
|
21742
|
+
message: "Payflex opened as ".concat(used, " after requesting ").concat(requested),
|
|
21743
|
+
channel: PAYFLEX_CHANNEL,
|
|
21744
|
+
time: this.getTimeSpent()
|
|
21745
|
+
});
|
|
21746
|
+
},
|
|
21747
|
+
logPayflexStatusRecheck: function logPayflexStatusRecheck() {
|
|
21748
|
+
return this.logHistoryEntry({
|
|
21749
|
+
type: 'action',
|
|
21750
|
+
message: 'Selected check payment status again',
|
|
21751
|
+
channel: PAYFLEX_CHANNEL,
|
|
21752
|
+
time: this.getTimeSpent()
|
|
21753
|
+
});
|
|
21754
|
+
}
|
|
21755
|
+
};
|
|
21756
|
+
|
|
21757
|
+
var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2(_objectSpread2({}, CapitecPayAnalytics), PayflexAnalytics), {}, {
|
|
21180
21758
|
initializeLog: function initializeLog(log) {
|
|
21181
21759
|
this.log = AnalyticsUtils.initializeLog(log);
|
|
21182
21760
|
},
|
|
@@ -21268,6 +21846,11 @@ var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2({}, CapitecPayAnalytics
|
|
|
21268
21846
|
return this.logError(response.message);
|
|
21269
21847
|
case 'auth':
|
|
21270
21848
|
return this.logAuth(response.data.auth);
|
|
21849
|
+
case 'awaiting_ussd_confirmation':
|
|
21850
|
+
// The customer has been shown the USSD prompt but has not paid yet. Recording
|
|
21851
|
+
// it keeps the step in the transaction log instead of dropping through to
|
|
21852
|
+
// `default`, which is what tells us how many customers reach the prompt.
|
|
21853
|
+
return this.logAPIResponseMessage(response.message);
|
|
21271
21854
|
default:
|
|
21272
21855
|
return false;
|
|
21273
21856
|
}
|