@mjhls/mjh-framework 1.0.626-search-css-fix → 1.0.626
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/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +4 -4
- package/dist/cjs/ADFloatingFooter.js +2 -2
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSkyscraper.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleQueue.js +12 -12
- package/dist/cjs/ArticleSeriesListing.js +5 -5
- package/dist/cjs/Auth.js +506 -255
- package/dist/cjs/{BlockContent-c2168db0.js → BlockContent-f942392e.js} +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +2 -2
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueue.js +7 -7
- package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-fbe32b96.js} +1 -1
- package/dist/cjs/EventsDeck.js +5 -5
- package/dist/cjs/ExternalResources.js +8 -8
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +12 -12
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +4 -4
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/IssueLanding.js +8 -8
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +10 -10
- package/dist/cjs/NavMagazine.js +4 -4
- package/dist/cjs/NavNative.js +2 -2
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +15 -1211
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +10 -10
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +2 -2
- package/dist/cjs/{SocialSearchComponent-f4c2b3c6.js → SocialSearchComponent-5cbde5e0.js} +4 -4
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +3 -3
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesListing.js +5 -5
- package/dist/cjs/View.js +16 -16
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getSerializers.js +7 -7
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-9ea8efe8.js → index-77531536.js} +10 -10
- package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
- package/dist/cjs/{index-fa3cec70.js → index-f7ee1612.js} +4 -6
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +17 -16
- package/dist/cjs/{inherits-227da8e1.js → inherits-dca612fa.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-88348b15.js → main-bc4db521.js} +66 -35
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +4 -4
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSkyscraper.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleQueue.js +11 -11
- package/dist/esm/ArticleSeriesListing.js +4 -4
- package/dist/esm/Auth.js +501 -250
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-a614acdf.js} +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +2 -2
- package/dist/esm/DeckContent.js +7 -7
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-380bef62.js → Dfp-40c70a33.js} +1 -1
- package/dist/esm/EventsDeck.js +5 -5
- package/dist/esm/ExternalResources.js +7 -7
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +11 -11
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +4 -4
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/IssueLanding.js +8 -8
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/NavMagazine.js +4 -4
- package/dist/esm/NavNative.js +2 -2
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +14 -1210
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/QueueDeckExpanded.js +10 -10
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +2 -2
- package/dist/esm/{SocialSearchComponent-8b6fee19.js → SocialSearchComponent-00385695.js} +4 -4
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +3 -3
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesListing.js +4 -4
- package/dist/esm/View.js +15 -15
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +6 -6
- package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
- package/dist/esm/{index-efc023e1.js → index-8a3465af.js} +9 -9
- package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +15 -14
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-d7ee6151.js → main-7255814e.js} +65 -34
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/package.json +3 -3
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
- /package/dist/cjs/{ADInfeed-bee48ae4.js → ADInfeed-ce11d87d.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-69156702.js → ADlgInfeed-7fc40444.js} +0 -0
- /package/dist/esm/{ADInfeed-6cf59c26.js → ADInfeed-5fb6c05e.js} +0 -0
- /package/dist/esm/{ADlgInfeed-1529b85b.js → ADlgInfeed-5eab5705.js} +0 -0
package/dist/esm/Auth.js
CHANGED
|
@@ -14,7 +14,6 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d25
|
|
|
14
14
|
import './_set-species-75f77d40.js';
|
|
15
15
|
import { Col, Form, Button, Spinner } from 'react-bootstrap';
|
|
16
16
|
import { u as util } from './util-7700fc59.js';
|
|
17
|
-
import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
|
|
18
17
|
import useSWR from 'swr';
|
|
19
18
|
import Local from 'passport-local';
|
|
20
19
|
import mysql from 'mysql';
|
|
@@ -1202,6 +1201,207 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1202
1201
|
);
|
|
1203
1202
|
};
|
|
1204
1203
|
|
|
1204
|
+
/*!
|
|
1205
|
+
* cookie
|
|
1206
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1207
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1208
|
+
* MIT Licensed
|
|
1209
|
+
*/
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* Module exports.
|
|
1213
|
+
* @public
|
|
1214
|
+
*/
|
|
1215
|
+
|
|
1216
|
+
var parse_1 = parse;
|
|
1217
|
+
var serialize_1 = serialize;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Module variables.
|
|
1221
|
+
* @private
|
|
1222
|
+
*/
|
|
1223
|
+
|
|
1224
|
+
var decode = decodeURIComponent;
|
|
1225
|
+
var encode = encodeURIComponent;
|
|
1226
|
+
var pairSplitRegExp = /; */;
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1230
|
+
*
|
|
1231
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1232
|
+
* field-vchar = VCHAR / obs-text
|
|
1233
|
+
* obs-text = %x80-FF
|
|
1234
|
+
*/
|
|
1235
|
+
|
|
1236
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Parse a cookie header.
|
|
1240
|
+
*
|
|
1241
|
+
* Parse the given cookie header string into an object
|
|
1242
|
+
* The object has the various cookies as keys(names) => values
|
|
1243
|
+
*
|
|
1244
|
+
* @param {string} str
|
|
1245
|
+
* @param {object} [options]
|
|
1246
|
+
* @return {object}
|
|
1247
|
+
* @public
|
|
1248
|
+
*/
|
|
1249
|
+
|
|
1250
|
+
function parse(str, options) {
|
|
1251
|
+
if (typeof str !== 'string') {
|
|
1252
|
+
throw new TypeError('argument str must be a string');
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
var obj = {};
|
|
1256
|
+
var opt = options || {};
|
|
1257
|
+
var pairs = str.split(pairSplitRegExp);
|
|
1258
|
+
var dec = opt.decode || decode;
|
|
1259
|
+
|
|
1260
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
1261
|
+
var pair = pairs[i];
|
|
1262
|
+
var eq_idx = pair.indexOf('=');
|
|
1263
|
+
|
|
1264
|
+
// skip things that don't look like key=value
|
|
1265
|
+
if (eq_idx < 0) {
|
|
1266
|
+
continue;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
var key = pair.substr(0, eq_idx).trim();
|
|
1270
|
+
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1271
|
+
|
|
1272
|
+
// quoted values
|
|
1273
|
+
if ('"' == val[0]) {
|
|
1274
|
+
val = val.slice(1, -1);
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
// only assign once
|
|
1278
|
+
if (undefined == obj[key]) {
|
|
1279
|
+
obj[key] = tryDecode(val, dec);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
return obj;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Serialize data into a cookie header.
|
|
1288
|
+
*
|
|
1289
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
1290
|
+
* http headers. An optional options object specified cookie parameters.
|
|
1291
|
+
*
|
|
1292
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
1293
|
+
* => "foo=bar; httpOnly"
|
|
1294
|
+
*
|
|
1295
|
+
* @param {string} name
|
|
1296
|
+
* @param {string} val
|
|
1297
|
+
* @param {object} [options]
|
|
1298
|
+
* @return {string}
|
|
1299
|
+
* @public
|
|
1300
|
+
*/
|
|
1301
|
+
|
|
1302
|
+
function serialize(name, val, options) {
|
|
1303
|
+
var opt = options || {};
|
|
1304
|
+
var enc = opt.encode || encode;
|
|
1305
|
+
|
|
1306
|
+
if (typeof enc !== 'function') {
|
|
1307
|
+
throw new TypeError('option encode is invalid');
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
if (!fieldContentRegExp.test(name)) {
|
|
1311
|
+
throw new TypeError('argument name is invalid');
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
var value = enc(val);
|
|
1315
|
+
|
|
1316
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
1317
|
+
throw new TypeError('argument val is invalid');
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
var str = name + '=' + value;
|
|
1321
|
+
|
|
1322
|
+
if (null != opt.maxAge) {
|
|
1323
|
+
var maxAge = opt.maxAge - 0;
|
|
1324
|
+
|
|
1325
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1326
|
+
throw new TypeError('option maxAge is invalid')
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
if (opt.domain) {
|
|
1333
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1334
|
+
throw new TypeError('option domain is invalid');
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
str += '; Domain=' + opt.domain;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
if (opt.path) {
|
|
1341
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
1342
|
+
throw new TypeError('option path is invalid');
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
str += '; Path=' + opt.path;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
if (opt.expires) {
|
|
1349
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1350
|
+
throw new TypeError('option expires is invalid');
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
if (opt.httpOnly) {
|
|
1357
|
+
str += '; HttpOnly';
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
if (opt.secure) {
|
|
1361
|
+
str += '; Secure';
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
if (opt.sameSite) {
|
|
1365
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
1366
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1367
|
+
|
|
1368
|
+
switch (sameSite) {
|
|
1369
|
+
case true:
|
|
1370
|
+
str += '; SameSite=Strict';
|
|
1371
|
+
break;
|
|
1372
|
+
case 'lax':
|
|
1373
|
+
str += '; SameSite=Lax';
|
|
1374
|
+
break;
|
|
1375
|
+
case 'strict':
|
|
1376
|
+
str += '; SameSite=Strict';
|
|
1377
|
+
break;
|
|
1378
|
+
case 'none':
|
|
1379
|
+
str += '; SameSite=None';
|
|
1380
|
+
break;
|
|
1381
|
+
default:
|
|
1382
|
+
throw new TypeError('option sameSite is invalid');
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
return str;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Try decoding a string using a decoding function.
|
|
1391
|
+
*
|
|
1392
|
+
* @param {string} str
|
|
1393
|
+
* @param {function} decode
|
|
1394
|
+
* @private
|
|
1395
|
+
*/
|
|
1396
|
+
|
|
1397
|
+
function tryDecode(str, decode) {
|
|
1398
|
+
try {
|
|
1399
|
+
return decode(str);
|
|
1400
|
+
} catch (e) {
|
|
1401
|
+
return str;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1205
1405
|
var TOKEN_NAME = 'token';
|
|
1206
1406
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1207
1407
|
|
|
@@ -1842,9 +2042,6 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1842
2042
|
if (value != null) {
|
|
1843
2043
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
1844
2044
|
var desc = $gOPD(value, parts[i]);
|
|
1845
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
1846
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1847
|
-
}
|
|
1848
2045
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1849
2046
|
} else {
|
|
1850
2047
|
value = value[parts[i]];
|
|
@@ -1877,16 +2074,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1877
2074
|
return intrinsic;
|
|
1878
2075
|
};
|
|
1879
2076
|
|
|
1880
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%'
|
|
1881
|
-
|
|
1882
|
-
if ($defineProperty) {
|
|
1883
|
-
try {
|
|
1884
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1885
|
-
} catch (e) {
|
|
1886
|
-
// IE 8 has a broken defineProperty
|
|
1887
|
-
$defineProperty = null;
|
|
1888
|
-
}
|
|
1889
|
-
}
|
|
2077
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
1890
2078
|
|
|
1891
2079
|
|
|
1892
2080
|
|
|
@@ -2029,224 +2217,6 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2029
2217
|
return obj;
|
|
2030
2218
|
};
|
|
2031
2219
|
|
|
2032
|
-
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2033
|
-
if ($gOPD$1) {
|
|
2034
|
-
try {
|
|
2035
|
-
$gOPD$1([], 'length');
|
|
2036
|
-
} catch (e) {
|
|
2037
|
-
// IE 8 has a broken gOPD
|
|
2038
|
-
$gOPD$1 = null;
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2043
|
-
|
|
2044
|
-
var $Array = GetIntrinsic('%Array%');
|
|
2045
|
-
|
|
2046
|
-
// eslint-disable-next-line global-require
|
|
2047
|
-
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2048
|
-
|
|
2049
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2050
|
-
|
|
2051
|
-
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2052
|
-
return toStr$4(argument) === '[object Array]';
|
|
2053
|
-
};
|
|
2054
|
-
|
|
2055
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2056
|
-
|
|
2057
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2058
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2059
|
-
};
|
|
2060
|
-
|
|
2061
|
-
var regexExec = RegExp.prototype.exec;
|
|
2062
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2063
|
-
|
|
2064
|
-
var tryRegexExecCall = function tryRegexExec(value) {
|
|
2065
|
-
try {
|
|
2066
|
-
var lastIndex = value.lastIndex;
|
|
2067
|
-
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
2068
|
-
|
|
2069
|
-
regexExec.call(value);
|
|
2070
|
-
return true;
|
|
2071
|
-
} catch (e) {
|
|
2072
|
-
return false;
|
|
2073
|
-
} finally {
|
|
2074
|
-
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
2075
|
-
}
|
|
2076
|
-
};
|
|
2077
|
-
var toStr$5 = Object.prototype.toString;
|
|
2078
|
-
var regexClass = '[object RegExp]';
|
|
2079
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2080
|
-
|
|
2081
|
-
var isRegex = function isRegex(value) {
|
|
2082
|
-
if (!value || typeof value !== 'object') {
|
|
2083
|
-
return false;
|
|
2084
|
-
}
|
|
2085
|
-
if (!hasToStringTag) {
|
|
2086
|
-
return toStr$5.call(value) === regexClass;
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
2090
|
-
var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
|
|
2091
|
-
if (!hasLastIndexDataProperty) {
|
|
2092
|
-
return false;
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
return tryRegexExecCall(value);
|
|
2096
|
-
};
|
|
2097
|
-
|
|
2098
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2099
|
-
|
|
2100
|
-
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2101
|
-
|
|
2102
|
-
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
2109
|
-
|
|
2110
|
-
var IsRegExp = function IsRegExp(argument) {
|
|
2111
|
-
if (!argument || typeof argument !== 'object') {
|
|
2112
|
-
return false;
|
|
2113
|
-
}
|
|
2114
|
-
if ($match) {
|
|
2115
|
-
var isRegExp = argument[$match];
|
|
2116
|
-
if (typeof isRegExp !== 'undefined') {
|
|
2117
|
-
return ToBoolean(isRegExp);
|
|
2118
|
-
}
|
|
2119
|
-
}
|
|
2120
|
-
return isRegex(argument);
|
|
2121
|
-
};
|
|
2122
|
-
|
|
2123
|
-
var fnToStr = Function.prototype.toString;
|
|
2124
|
-
|
|
2125
|
-
var constructorRegex = /^\s*class\b/;
|
|
2126
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2127
|
-
try {
|
|
2128
|
-
var fnStr = fnToStr.call(value);
|
|
2129
|
-
return constructorRegex.test(fnStr);
|
|
2130
|
-
} catch (e) {
|
|
2131
|
-
return false; // not a function
|
|
2132
|
-
}
|
|
2133
|
-
};
|
|
2134
|
-
|
|
2135
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2136
|
-
try {
|
|
2137
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2138
|
-
fnToStr.call(value);
|
|
2139
|
-
return true;
|
|
2140
|
-
} catch (e) {
|
|
2141
|
-
return false;
|
|
2142
|
-
}
|
|
2143
|
-
};
|
|
2144
|
-
var toStr$6 = Object.prototype.toString;
|
|
2145
|
-
var fnClass = '[object Function]';
|
|
2146
|
-
var genClass = '[object GeneratorFunction]';
|
|
2147
|
-
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2148
|
-
|
|
2149
|
-
var isCallable = function isCallable(value) {
|
|
2150
|
-
if (!value) { return false; }
|
|
2151
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2152
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2153
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2154
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2155
|
-
var strClass = toStr$6.call(value);
|
|
2156
|
-
return strClass === fnClass || strClass === genClass;
|
|
2157
|
-
};
|
|
2158
|
-
|
|
2159
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2160
|
-
|
|
2161
|
-
var IsCallable = isCallable;
|
|
2162
|
-
|
|
2163
|
-
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
2170
|
-
|
|
2171
|
-
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2172
|
-
if (Type$1(Obj) !== 'Object') {
|
|
2173
|
-
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
2174
|
-
}
|
|
2175
|
-
|
|
2176
|
-
var desc = {};
|
|
2177
|
-
if (src(Obj, 'enumerable')) {
|
|
2178
|
-
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
2179
|
-
}
|
|
2180
|
-
if (src(Obj, 'configurable')) {
|
|
2181
|
-
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
2182
|
-
}
|
|
2183
|
-
if (src(Obj, 'value')) {
|
|
2184
|
-
desc['[[Value]]'] = Obj.value;
|
|
2185
|
-
}
|
|
2186
|
-
if (src(Obj, 'writable')) {
|
|
2187
|
-
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
2188
|
-
}
|
|
2189
|
-
if (src(Obj, 'get')) {
|
|
2190
|
-
var getter = Obj.get;
|
|
2191
|
-
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2192
|
-
throw new TypeError('getter must be a function');
|
|
2193
|
-
}
|
|
2194
|
-
desc['[[Get]]'] = getter;
|
|
2195
|
-
}
|
|
2196
|
-
if (src(Obj, 'set')) {
|
|
2197
|
-
var setter = Obj.set;
|
|
2198
|
-
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2199
|
-
throw new $TypeError$2('setter must be a function');
|
|
2200
|
-
}
|
|
2201
|
-
desc['[[Set]]'] = setter;
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2205
|
-
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2206
|
-
}
|
|
2207
|
-
return desc;
|
|
2208
|
-
};
|
|
2209
|
-
|
|
2210
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2225
|
-
|
|
2226
|
-
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2227
|
-
if (Type$1(O) !== 'Object') {
|
|
2228
|
-
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
2229
|
-
}
|
|
2230
|
-
if (!IsPropertyKey(P)) {
|
|
2231
|
-
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
2232
|
-
}
|
|
2233
|
-
if (!src(O, P)) {
|
|
2234
|
-
return void 0;
|
|
2235
|
-
}
|
|
2236
|
-
if (!getOwnPropertyDescriptor) {
|
|
2237
|
-
// ES3 / IE 8 fallback
|
|
2238
|
-
var arrayLength = IsArray(O) && P === 'length';
|
|
2239
|
-
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2240
|
-
return {
|
|
2241
|
-
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2242
|
-
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
2243
|
-
'[[Value]]': O[P],
|
|
2244
|
-
'[[Writable]]': true
|
|
2245
|
-
};
|
|
2246
|
-
}
|
|
2247
|
-
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2248
|
-
};
|
|
2249
|
-
|
|
2250
2220
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2251
2221
|
|
|
2252
2222
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2280,10 +2250,16 @@ var IsExtensible = $preventExtensions
|
|
|
2280
2250
|
? function IsExtensible(obj) {
|
|
2281
2251
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2282
2252
|
}
|
|
2283
|
-
: function IsExtensible(obj) {
|
|
2284
|
-
return
|
|
2253
|
+
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
2254
|
+
return true;
|
|
2285
2255
|
};
|
|
2286
2256
|
|
|
2257
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2258
|
+
|
|
2259
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2260
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2287
2263
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2288
2264
|
return a !== a;
|
|
2289
2265
|
};
|
|
@@ -2298,8 +2274,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2298
2274
|
return _isNaN(x) && _isNaN(y);
|
|
2299
2275
|
};
|
|
2300
2276
|
|
|
2301
|
-
var $
|
|
2302
|
-
|
|
2277
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2278
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2303
2279
|
|
|
2304
2280
|
|
|
2305
2281
|
|
|
@@ -2314,14 +2290,14 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
|
2314
2290
|
|
|
2315
2291
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2316
2292
|
if (Type$1(O) !== 'Object') {
|
|
2317
|
-
throw new $TypeError$
|
|
2293
|
+
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
2318
2294
|
}
|
|
2319
2295
|
if (!IsPropertyKey(P)) {
|
|
2320
|
-
throw new $TypeError$
|
|
2296
|
+
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
2321
2297
|
}
|
|
2322
|
-
var oldDesc =
|
|
2323
|
-
var extensible =
|
|
2324
|
-
var immutable = oldDesc && (!oldDesc
|
|
2298
|
+
var oldDesc = $gOPD$1(O, P);
|
|
2299
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
2300
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2325
2301
|
if (immutable || !extensible) {
|
|
2326
2302
|
return false;
|
|
2327
2303
|
}
|
|
@@ -2340,13 +2316,53 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2340
2316
|
);
|
|
2341
2317
|
};
|
|
2342
2318
|
|
|
2343
|
-
var
|
|
2319
|
+
var fnToStr = Function.prototype.toString;
|
|
2320
|
+
|
|
2321
|
+
var constructorRegex = /^\s*class\b/;
|
|
2322
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2323
|
+
try {
|
|
2324
|
+
var fnStr = fnToStr.call(value);
|
|
2325
|
+
return constructorRegex.test(fnStr);
|
|
2326
|
+
} catch (e) {
|
|
2327
|
+
return false; // not a function
|
|
2328
|
+
}
|
|
2329
|
+
};
|
|
2330
|
+
|
|
2331
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2332
|
+
try {
|
|
2333
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2334
|
+
fnToStr.call(value);
|
|
2335
|
+
return true;
|
|
2336
|
+
} catch (e) {
|
|
2337
|
+
return false;
|
|
2338
|
+
}
|
|
2339
|
+
};
|
|
2340
|
+
var toStr$4 = Object.prototype.toString;
|
|
2341
|
+
var fnClass = '[object Function]';
|
|
2342
|
+
var genClass = '[object GeneratorFunction]';
|
|
2343
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2344
|
+
|
|
2345
|
+
var isCallable = function isCallable(value) {
|
|
2346
|
+
if (!value) { return false; }
|
|
2347
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2348
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2349
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2350
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2351
|
+
var strClass = toStr$4.call(value);
|
|
2352
|
+
return strClass === fnClass || strClass === genClass;
|
|
2353
|
+
};
|
|
2354
|
+
|
|
2355
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2356
|
+
|
|
2357
|
+
var IsCallable = isCallable;
|
|
2358
|
+
|
|
2359
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2344
2360
|
|
|
2345
2361
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2346
2362
|
|
|
2347
2363
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2348
2364
|
if (value == null) {
|
|
2349
|
-
throw new $TypeError$
|
|
2365
|
+
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
2350
2366
|
}
|
|
2351
2367
|
return value;
|
|
2352
2368
|
};
|
|
@@ -2417,6 +2433,241 @@ defineProperties_1(implementation$2, {
|
|
|
2417
2433
|
|
|
2418
2434
|
var object_getownpropertydescriptors = implementation$2;
|
|
2419
2435
|
|
|
2436
|
+
/* globals
|
|
2437
|
+
Atomics,
|
|
2438
|
+
SharedArrayBuffer,
|
|
2439
|
+
*/
|
|
2440
|
+
|
|
2441
|
+
var undefined$2;
|
|
2442
|
+
|
|
2443
|
+
var $TypeError$4 = TypeError;
|
|
2444
|
+
|
|
2445
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2446
|
+
if ($gOPD$3) {
|
|
2447
|
+
try {
|
|
2448
|
+
$gOPD$3({}, '');
|
|
2449
|
+
} catch (e) {
|
|
2450
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
2455
|
+
var ThrowTypeError$1 = $gOPD$3
|
|
2456
|
+
? (function () {
|
|
2457
|
+
try {
|
|
2458
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2459
|
+
arguments.callee; // IE 8 does not throw here
|
|
2460
|
+
return throwTypeError$1;
|
|
2461
|
+
} catch (calleeThrows) {
|
|
2462
|
+
try {
|
|
2463
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2464
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
2465
|
+
} catch (gOPDthrows) {
|
|
2466
|
+
return throwTypeError$1;
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
}())
|
|
2470
|
+
: throwTypeError$1;
|
|
2471
|
+
|
|
2472
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2473
|
+
|
|
2474
|
+
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2475
|
+
var generatorFunction$1 = undefined$2;
|
|
2476
|
+
var asyncFunction$1 = undefined$2;
|
|
2477
|
+
var asyncGenFunction$1 = undefined$2;
|
|
2478
|
+
|
|
2479
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2480
|
+
|
|
2481
|
+
var INTRINSICS$1 = {
|
|
2482
|
+
'%Array%': Array,
|
|
2483
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2484
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2485
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2486
|
+
'%ArrayPrototype%': Array.prototype,
|
|
2487
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2488
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2489
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2490
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
2491
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2492
|
+
'%AsyncFunction%': asyncFunction$1,
|
|
2493
|
+
'%AsyncFunctionPrototype%': undefined$2,
|
|
2494
|
+
'%AsyncGenerator%': undefined$2,
|
|
2495
|
+
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
2496
|
+
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2497
|
+
'%AsyncIteratorPrototype%': undefined$2,
|
|
2498
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2499
|
+
'%Boolean%': Boolean,
|
|
2500
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
2501
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2502
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2503
|
+
'%Date%': Date,
|
|
2504
|
+
'%DatePrototype%': Date.prototype,
|
|
2505
|
+
'%decodeURI%': decodeURI,
|
|
2506
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
2507
|
+
'%encodeURI%': encodeURI,
|
|
2508
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
2509
|
+
'%Error%': Error,
|
|
2510
|
+
'%ErrorPrototype%': Error.prototype,
|
|
2511
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
2512
|
+
'%EvalError%': EvalError,
|
|
2513
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2514
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2515
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2516
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2517
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2518
|
+
'%Function%': Function,
|
|
2519
|
+
'%FunctionPrototype%': Function.prototype,
|
|
2520
|
+
'%Generator%': undefined$2,
|
|
2521
|
+
'%GeneratorFunction%': generatorFunction$1,
|
|
2522
|
+
'%GeneratorPrototype%': undefined$2,
|
|
2523
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2524
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2525
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2526
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2527
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2528
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2529
|
+
'%isFinite%': isFinite,
|
|
2530
|
+
'%isNaN%': isNaN,
|
|
2531
|
+
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2532
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2533
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2534
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2535
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2536
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2537
|
+
'%Math%': Math,
|
|
2538
|
+
'%Number%': Number,
|
|
2539
|
+
'%NumberPrototype%': Number.prototype,
|
|
2540
|
+
'%Object%': Object,
|
|
2541
|
+
'%ObjectPrototype%': Object.prototype,
|
|
2542
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
2543
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2544
|
+
'%parseFloat%': parseFloat,
|
|
2545
|
+
'%parseInt%': parseInt,
|
|
2546
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2547
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2548
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2549
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2550
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2551
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2552
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2553
|
+
'%RangeError%': RangeError,
|
|
2554
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2555
|
+
'%ReferenceError%': ReferenceError,
|
|
2556
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2557
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2558
|
+
'%RegExp%': RegExp,
|
|
2559
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
2560
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2561
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2562
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2563
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2564
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2565
|
+
'%String%': String,
|
|
2566
|
+
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2567
|
+
'%StringPrototype%': String.prototype,
|
|
2568
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
2569
|
+
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
2570
|
+
'%SyntaxError%': SyntaxError,
|
|
2571
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2572
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2573
|
+
'%TypedArray%': TypedArray$1,
|
|
2574
|
+
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2575
|
+
'%TypeError%': $TypeError$4,
|
|
2576
|
+
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
2577
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2578
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2579
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2580
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2581
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2582
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2583
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2584
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2585
|
+
'%URIError%': URIError,
|
|
2586
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
2587
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2588
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2589
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2590
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2591
|
+
};
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2595
|
+
|
|
2596
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2597
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2598
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2599
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
2600
|
+
var result = [];
|
|
2601
|
+
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2602
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2603
|
+
});
|
|
2604
|
+
return result;
|
|
2605
|
+
};
|
|
2606
|
+
/* end adaptation */
|
|
2607
|
+
|
|
2608
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2609
|
+
if (!(name in INTRINSICS$1)) {
|
|
2610
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2614
|
+
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2615
|
+
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
return INTRINSICS$1[name];
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2621
|
+
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
2622
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
2623
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2624
|
+
}
|
|
2625
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2626
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
var parts = stringToPath$1(name);
|
|
2630
|
+
|
|
2631
|
+
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2632
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
2633
|
+
if (value != null) {
|
|
2634
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2635
|
+
var desc = $gOPD$3(value, parts[i]);
|
|
2636
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
2637
|
+
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2638
|
+
}
|
|
2639
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
2640
|
+
} else {
|
|
2641
|
+
value = value[parts[i]];
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
return value;
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2648
|
+
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
2649
|
+
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
2650
|
+
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
2651
|
+
|
|
2652
|
+
var callBind$1 = function callBind() {
|
|
2653
|
+
return $reflectApply(functionBind, $call$1, arguments);
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
var apply$1 = function applyBind() {
|
|
2657
|
+
return $reflectApply(functionBind, $apply$1, arguments);
|
|
2658
|
+
};
|
|
2659
|
+
callBind$1.apply = apply$1;
|
|
2660
|
+
|
|
2661
|
+
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
2662
|
+
|
|
2663
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2664
|
+
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
2665
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2666
|
+
return callBind$1(intrinsic);
|
|
2667
|
+
}
|
|
2668
|
+
return intrinsic;
|
|
2669
|
+
};
|
|
2670
|
+
|
|
2420
2671
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2421
2672
|
&& typeof Object.defineProperties === 'function';
|
|
2422
2673
|
|
|
@@ -2434,14 +2685,14 @@ if (typeof Promise !== 'function') {
|
|
|
2434
2685
|
|
|
2435
2686
|
|
|
2436
2687
|
|
|
2437
|
-
var $slice = callBound('Array.prototype.slice');
|
|
2438
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
2439
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
2688
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
2689
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
2690
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
2440
2691
|
|
|
2441
|
-
var hasSymbols$
|
|
2692
|
+
var hasSymbols$4 = hasSymbols$1();
|
|
2442
2693
|
|
|
2443
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2444
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2694
|
+
var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
|
|
2695
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
|
|
2445
2696
|
|
|
2446
2697
|
var implementation$3 = function promisify(orig) {
|
|
2447
2698
|
if (typeof orig !== 'function') {
|
|
@@ -2451,7 +2702,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2451
2702
|
throw error;
|
|
2452
2703
|
}
|
|
2453
2704
|
|
|
2454
|
-
if (hasSymbols$
|
|
2705
|
+
if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
|
|
2455
2706
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2456
2707
|
if (typeof customFunction !== 'function') {
|
|
2457
2708
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|