@mjhls/mjh-framework 1.0.325 → 1.0.327
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/README.md +171 -171
- package/dist/cjs/{ADInfeed-b042a194.js → ADInfeed-d58f7a88.js} +1 -1
- package/dist/cjs/{AdSlot-c5bff604.js → AdSlot-c8f07bcf.js} +3 -3
- package/dist/cjs/DeckContent.js +18 -18
- package/dist/cjs/DeckQueue.js +8 -8
- package/dist/cjs/{Dfp-9ede68c7.js → Dfp-fc16f64b.js} +2 -2
- package/dist/cjs/{Figure-a47ec3a7.js → Figure-6805ef02.js} +1 -1
- package/dist/cjs/{GridContent-9f212ec5.js → GridContent-70d80f27.js} +12 -12
- package/dist/cjs/GridContent.js +11 -11
- package/dist/cjs/GroupDeck.js +4 -4
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +16 -16
- package/dist/cjs/{Normal-e7423a52.js → Normal-cc2f9b2f.js} +42 -40
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +11 -11
- package/dist/cjs/{TaxonomyCard-e36602e8.js → TaxonomyCard-0b6bc8db.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +6 -6
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/{debounce-528ad412.js → debounce-ba3eaee2.js} +6 -4
- package/dist/cjs/{get-3b23d857.js → get-de2660c3.js} +1 -1
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/index.js +860 -1220
- package/dist/cjs/{inherits-7548e3e8.js → inherits-d1613ef1.js} +1 -1
- package/dist/cjs/{main-987c23c6.js → main-6a82a5d2.js} +35 -66
- package/dist/cjs/{promise-3b44b2a3.js → promise-60431c75.js} +2 -2
- package/dist/cjs/{toConsumableArray-34b5e9a7.js → toConsumableArray-82ec1016.js} +1 -1
- package/dist/cjs/{visibility-sensor-c2ccc22d.js → visibility-sensor-b72d9527.js} +2 -4
- package/dist/esm/{ADInfeed-aadcfc25.js → ADInfeed-c42432d8.js} +1 -1
- package/dist/esm/{AdSlot-8946358f.js → AdSlot-4a85e252.js} +3 -3
- package/dist/esm/DeckContent.js +18 -18
- package/dist/esm/DeckQueue.js +8 -8
- package/dist/esm/{Dfp-9293acfb.js → Dfp-1cde9792.js} +2 -2
- package/dist/esm/{Figure-584ac0c8.js → Figure-ddfa279d.js} +1 -1
- package/dist/esm/{GridContent-13be42a1.js → GridContent-55e6512a.js} +12 -12
- package/dist/esm/GridContent.js +11 -11
- package/dist/esm/GroupDeck.js +4 -4
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +16 -16
- package/dist/esm/{Normal-ff7a10ab.js → Normal-63478e2d.js} +42 -40
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +11 -11
- package/dist/esm/{TaxonomyCard-89325080.js → TaxonomyCard-c036f1c3.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +6 -6
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/{debounce-702eb224.js → debounce-93ab8f80.js} +6 -4
- package/dist/esm/{get-36d03764.js → get-9c285a85.js} +1 -1
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/index.js +863 -1223
- package/dist/esm/{inherits-4b85034c.js → inherits-424c89e9.js} +1 -1
- package/dist/esm/{main-cb86f95d.js → main-9ae8991d.js} +34 -65
- package/dist/esm/{promise-86cb8313.js → promise-e4a5eb9f.js} +2 -2
- package/dist/esm/{toConsumableArray-2718dc16.js → toConsumableArray-ec38f5fe.js} +1 -1
- package/dist/esm/{visibility-sensor-3cea5efb.js → visibility-sensor-336093e1.js} +2 -4
- package/package.json +104 -104
package/dist/cjs/index.js
CHANGED
|
@@ -7,11 +7,11 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
7
7
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
8
8
|
var _toObject = require('./_to-object-329a650b.js');
|
|
9
9
|
require('./web.dom.iterable-8b02d65e.js');
|
|
10
|
-
var debounce = require('./debounce-
|
|
11
|
-
var main = require('./main-
|
|
12
|
-
var toConsumableArray = require('./toConsumableArray-
|
|
10
|
+
var debounce = require('./debounce-ba3eaee2.js');
|
|
11
|
+
var main = require('./main-6a82a5d2.js');
|
|
12
|
+
var toConsumableArray = require('./toConsumableArray-82ec1016.js');
|
|
13
13
|
var _extends$2 = require('./extends-4c2285ff.js');
|
|
14
|
-
var inherits$2 = require('./inherits-
|
|
14
|
+
var inherits$2 = require('./inherits-d1613ef1.js');
|
|
15
15
|
var React = require('react');
|
|
16
16
|
var React__default = _interopDefault(React);
|
|
17
17
|
var PropTypes = _interopDefault(require('prop-types'));
|
|
@@ -19,25 +19,25 @@ var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
|
19
19
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
20
20
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
21
21
|
require('react-bootstrap/Card');
|
|
22
|
-
var visibilitySensor = require('./visibility-sensor-
|
|
22
|
+
var visibilitySensor = require('./visibility-sensor-b72d9527.js');
|
|
23
23
|
var Link = _interopDefault(require('next/link'));
|
|
24
24
|
var Router = require('next/router');
|
|
25
25
|
var Router__default = _interopDefault(Router);
|
|
26
26
|
require('react-dom');
|
|
27
|
-
var index = require('./index-
|
|
27
|
+
var index = require('./index-be0c82be.js');
|
|
28
28
|
require('./index-fa0fb52c.js');
|
|
29
29
|
var entities = require('./entities-310b46ee.js');
|
|
30
30
|
var slicedToArray = require('./slicedToArray-879ab2fb.js');
|
|
31
|
-
var AdSlot = require('./AdSlot-
|
|
32
|
-
require('./promise-
|
|
33
|
-
require('./ADInfeed-
|
|
31
|
+
var AdSlot = require('./AdSlot-c8f07bcf.js');
|
|
32
|
+
require('./promise-60431c75.js');
|
|
33
|
+
require('./ADInfeed-d58f7a88.js');
|
|
34
34
|
var DeckContent = require('./DeckContent.js');
|
|
35
|
-
var get$1 = require('./get-
|
|
36
|
-
var GridContent = require('./GridContent-
|
|
35
|
+
var get$1 = require('./get-de2660c3.js');
|
|
36
|
+
var GridContent = require('./GridContent-70d80f27.js');
|
|
37
37
|
var DeckQueue = require('./DeckQueue.js');
|
|
38
38
|
require('react-bootstrap/Media');
|
|
39
39
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
40
|
-
var TaxonomyCard = require('./TaxonomyCard-
|
|
40
|
+
var TaxonomyCard = require('./TaxonomyCard-0b6bc8db.js');
|
|
41
41
|
require('./react-social-icons-cd0d9d3b.js');
|
|
42
42
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
43
43
|
var GroupDeck = require('./GroupDeck.js');
|
|
@@ -53,7 +53,7 @@ var IssueDeck = require('./IssueDeck.js');
|
|
|
53
53
|
require('react-bootstrap/Badge');
|
|
54
54
|
var IssueContentDeck = require('./IssueContentDeck.js');
|
|
55
55
|
var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
|
|
56
|
-
var TemplateNormal = require('./Normal-
|
|
56
|
+
var TemplateNormal = require('./Normal-cc2f9b2f.js');
|
|
57
57
|
require('react-bootstrap/ListGroup');
|
|
58
58
|
var Head = _interopDefault(require('next/head'));
|
|
59
59
|
var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
|
|
@@ -74,6 +74,7 @@ var Ustream = require('./Ustream-f5f53782.js');
|
|
|
74
74
|
var useSWR = _interopDefault(require('swr'));
|
|
75
75
|
var Local = _interopDefault(require('passport-local'));
|
|
76
76
|
var mysql = _interopDefault(require('mysql'));
|
|
77
|
+
var md5 = _interopDefault(require('md5'));
|
|
77
78
|
|
|
78
79
|
var momentTimezone = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
79
80
|
//! moment-timezone.js
|
|
@@ -2153,7 +2154,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2153
2154
|
)
|
|
2154
2155
|
)
|
|
2155
2156
|
),
|
|
2156
|
-
main.
|
|
2157
|
+
main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2157
2158
|
'div',
|
|
2158
2159
|
{ style: { margin: '0 auto' } },
|
|
2159
2160
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2544,7 +2545,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2544
2545
|
)
|
|
2545
2546
|
)
|
|
2546
2547
|
),
|
|
2547
|
-
main.
|
|
2548
|
+
main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2548
2549
|
'div',
|
|
2549
2550
|
{ style: { margin: '0 auto' } },
|
|
2550
2551
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2833,7 +2834,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2833
2834
|
pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
|
|
2834
2835
|
|
|
2835
2836
|
var mobileView = false;
|
|
2836
|
-
if (main.
|
|
2837
|
+
if (main.main_36) {
|
|
2837
2838
|
pos = 'rect1-mobile';
|
|
2838
2839
|
mobileView = true;
|
|
2839
2840
|
}
|
|
@@ -2844,7 +2845,9 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2844
2845
|
document_group: targeting.document_group,
|
|
2845
2846
|
document_url: targeting.document_url,
|
|
2846
2847
|
pos: pos,
|
|
2847
|
-
campaign_id: targeting.campaign_id
|
|
2848
|
+
campaign_id: targeting.campaign_id,
|
|
2849
|
+
issue_url: targeting.issue_url,
|
|
2850
|
+
publication_url: targeting.publication_url
|
|
2848
2851
|
};
|
|
2849
2852
|
|
|
2850
2853
|
var browserSizes = [[300, 250], [300, 100]];
|
|
@@ -2863,7 +2866,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2863
2866
|
pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
|
|
2864
2867
|
|
|
2865
2868
|
var mobileView = false;
|
|
2866
|
-
if (main.
|
|
2869
|
+
if (main.main_36) {
|
|
2867
2870
|
pos = 'rect2-mobile';
|
|
2868
2871
|
mobileView = true;
|
|
2869
2872
|
}
|
|
@@ -2874,7 +2877,9 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2874
2877
|
document_group: targeting.document_group,
|
|
2875
2878
|
document_url: targeting.document_url,
|
|
2876
2879
|
pos: pos,
|
|
2877
|
-
campaign_id: targeting.campaign_id
|
|
2880
|
+
campaign_id: targeting.campaign_id,
|
|
2881
|
+
issue_url: targeting.issue_url,
|
|
2882
|
+
publication_url: targeting.publication_url
|
|
2878
2883
|
};
|
|
2879
2884
|
|
|
2880
2885
|
var browserSizes = [[300, 250], [300, 600], [300, 100]];
|
|
@@ -2954,17 +2959,19 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2954
2959
|
document_group: targeting.document_group,
|
|
2955
2960
|
document_url: targeting.document_url,
|
|
2956
2961
|
pos: position,
|
|
2957
|
-
campaign_id: targeting.campaign_id
|
|
2962
|
+
campaign_id: targeting.campaign_id,
|
|
2963
|
+
issue_url: targeting.issue_url,
|
|
2964
|
+
publication_url: targeting.publication_url
|
|
2958
2965
|
};
|
|
2959
2966
|
|
|
2960
|
-
var _useState = React.useState(
|
|
2967
|
+
var _useState = React.useState(false),
|
|
2961
2968
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
2962
2969
|
widthFlag = _useState2[0],
|
|
2963
2970
|
setWidthFlag = _useState2[1];
|
|
2964
2971
|
|
|
2965
2972
|
React.useEffect(function () {
|
|
2966
|
-
if (window && window.innerWidth
|
|
2967
|
-
setWidthFlag(
|
|
2973
|
+
if (window && window.innerWidth > minScreenWidth) {
|
|
2974
|
+
setWidthFlag(true);
|
|
2968
2975
|
}
|
|
2969
2976
|
}, [minScreenWidth]);
|
|
2970
2977
|
|
|
@@ -3037,7 +3044,9 @@ var ADGutter = function ADGutter(_ref) {
|
|
|
3037
3044
|
document_group: targeting.document_group,
|
|
3038
3045
|
document_url: targeting.document_url,
|
|
3039
3046
|
pos: position,
|
|
3040
|
-
campaign_id: targeting.campaign_id
|
|
3047
|
+
campaign_id: targeting.campaign_id,
|
|
3048
|
+
issue_url: targeting.issue_url,
|
|
3049
|
+
publication_url: targeting.publication_url
|
|
3041
3050
|
};
|
|
3042
3051
|
|
|
3043
3052
|
var _useState = React.useState(false),
|
|
@@ -3095,7 +3104,9 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
3095
3104
|
document_group: targeting.document_group,
|
|
3096
3105
|
document_url: targeting.document_url,
|
|
3097
3106
|
pos: position,
|
|
3098
|
-
campaign_id: targeting.campaign_id
|
|
3107
|
+
campaign_id: targeting.campaign_id,
|
|
3108
|
+
issue_url: targeting.issue_url,
|
|
3109
|
+
publication_url: targeting.publication_url
|
|
3099
3110
|
};
|
|
3100
3111
|
|
|
3101
3112
|
var calculateTimeLeft = function calculateTimeLeft(timeLeft) {
|
|
@@ -3204,7 +3215,9 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
|
|
|
3204
3215
|
document_group: targeting.document_group,
|
|
3205
3216
|
document_url: targeting.document_url,
|
|
3206
3217
|
pos: position,
|
|
3207
|
-
campaign_id: targeting.campaign_id
|
|
3218
|
+
campaign_id: targeting.campaign_id,
|
|
3219
|
+
issue_url: targeting.issue_url,
|
|
3220
|
+
publication_url: targeting.publication_url
|
|
3208
3221
|
};
|
|
3209
3222
|
|
|
3210
3223
|
return React__default.createElement(
|
|
@@ -3285,18 +3298,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3285
3298
|
);
|
|
3286
3299
|
};
|
|
3287
3300
|
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3301
|
+
var isArray = Array.isArray;
|
|
3302
|
+
var keyList = Object.keys;
|
|
3303
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
3291
3304
|
|
|
3292
3305
|
var fastDeepEqual = function equal(a, b) {
|
|
3293
3306
|
if (a === b) return true;
|
|
3294
3307
|
|
|
3295
3308
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3296
|
-
|
|
3309
|
+
var arrA = isArray(a)
|
|
3310
|
+
, arrB = isArray(b)
|
|
3311
|
+
, i
|
|
3312
|
+
, length
|
|
3313
|
+
, key;
|
|
3297
3314
|
|
|
3298
|
-
|
|
3299
|
-
if (Array.isArray(a)) {
|
|
3315
|
+
if (arrA && arrB) {
|
|
3300
3316
|
length = a.length;
|
|
3301
3317
|
if (length != b.length) return false;
|
|
3302
3318
|
for (i = length; i-- !== 0;)
|
|
@@ -3304,29 +3320,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3304
3320
|
return true;
|
|
3305
3321
|
}
|
|
3306
3322
|
|
|
3323
|
+
if (arrA != arrB) return false;
|
|
3307
3324
|
|
|
3325
|
+
var dateA = a instanceof Date
|
|
3326
|
+
, dateB = b instanceof Date;
|
|
3327
|
+
if (dateA != dateB) return false;
|
|
3328
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3308
3329
|
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
if (
|
|
3330
|
+
var regexpA = a instanceof RegExp
|
|
3331
|
+
, regexpB = b instanceof RegExp;
|
|
3332
|
+
if (regexpA != regexpB) return false;
|
|
3333
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3312
3334
|
|
|
3313
|
-
keys =
|
|
3335
|
+
var keys = keyList(a);
|
|
3314
3336
|
length = keys.length;
|
|
3315
|
-
|
|
3337
|
+
|
|
3338
|
+
if (length !== keyList(b).length)
|
|
3339
|
+
return false;
|
|
3316
3340
|
|
|
3317
3341
|
for (i = length; i-- !== 0;)
|
|
3318
|
-
if (!
|
|
3342
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
3319
3343
|
|
|
3320
3344
|
for (i = length; i-- !== 0;) {
|
|
3321
|
-
|
|
3322
|
-
|
|
3345
|
+
key = keys[i];
|
|
3323
3346
|
if (!equal(a[key], b[key])) return false;
|
|
3324
3347
|
}
|
|
3325
3348
|
|
|
3326
3349
|
return true;
|
|
3327
3350
|
}
|
|
3328
3351
|
|
|
3329
|
-
// true if both NaN, false otherwise
|
|
3330
3352
|
return a!==a && b!==b;
|
|
3331
3353
|
};
|
|
3332
3354
|
|
|
@@ -4349,7 +4371,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4349
4371
|
var base = '', array = false, braces = ['{', '}'];
|
|
4350
4372
|
|
|
4351
4373
|
// Make Array say that they are Array
|
|
4352
|
-
if (isArray(value)) {
|
|
4374
|
+
if (isArray$1(value)) {
|
|
4353
4375
|
array = true;
|
|
4354
4376
|
braces = ['[', ']'];
|
|
4355
4377
|
}
|
|
@@ -4528,7 +4550,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4528
4550
|
|
|
4529
4551
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4530
4552
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4531
|
-
function isArray(ar) {
|
|
4553
|
+
function isArray$1(ar) {
|
|
4532
4554
|
return Array.isArray(ar);
|
|
4533
4555
|
}
|
|
4534
4556
|
|
|
@@ -4655,7 +4677,7 @@ var util = {
|
|
|
4655
4677
|
isNullOrUndefined: isNullOrUndefined,
|
|
4656
4678
|
isNull: isNull,
|
|
4657
4679
|
isBoolean: isBoolean,
|
|
4658
|
-
isArray: isArray,
|
|
4680
|
+
isArray: isArray$1,
|
|
4659
4681
|
inspect: inspect,
|
|
4660
4682
|
deprecate: deprecate,
|
|
4661
4683
|
format: format,
|
|
@@ -5322,235 +5344,199 @@ module.exports = exports['default'];
|
|
|
5322
5344
|
|
|
5323
5345
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
5324
5346
|
|
|
5325
|
-
function
|
|
5326
|
-
|
|
5327
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5328
|
-
|
|
5329
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5330
|
-
|
|
5331
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5332
|
-
|
|
5333
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5347
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
5334
5348
|
|
|
5335
|
-
function
|
|
5336
|
-
|
|
5337
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5338
|
-
|
|
5339
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5340
|
-
|
|
5341
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5342
|
-
|
|
5343
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5349
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
5344
5350
|
|
|
5345
|
-
function
|
|
5351
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5346
5352
|
|
|
5347
|
-
function
|
|
5353
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
5348
5354
|
|
|
5349
|
-
function
|
|
5355
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
5350
5356
|
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
*
|
|
5354
|
-
*
|
|
5355
|
-
* @param {Object}
|
|
5356
|
-
* @param {Object} props
|
|
5357
|
+
/**
|
|
5358
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5359
|
+
*
|
|
5360
|
+
* @param {Object} prevProps
|
|
5361
|
+
* @param {Object} props
|
|
5357
5362
|
*/
|
|
5358
|
-
|
|
5359
5363
|
function shouldUpdateVideo(prevProps, props) {
|
|
5360
5364
|
// A changing video should always trigger an update
|
|
5361
5365
|
if (prevProps.videoId !== props.videoId) {
|
|
5362
5366
|
return true;
|
|
5363
|
-
}
|
|
5364
|
-
// update.
|
|
5365
|
-
|
|
5367
|
+
}
|
|
5366
5368
|
|
|
5369
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5370
|
+
// update.
|
|
5367
5371
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5368
5372
|
var vars = props.opts.playerVars || {};
|
|
5373
|
+
|
|
5369
5374
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5370
5375
|
}
|
|
5371
|
-
/**
|
|
5372
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
5373
|
-
* that require a player reset. The results can then be compared to see if a
|
|
5374
|
-
* player reset is necessary.
|
|
5375
|
-
*
|
|
5376
|
-
* @param {Object} opts
|
|
5377
|
-
*/
|
|
5378
|
-
|
|
5379
5376
|
|
|
5377
|
+
/**
|
|
5378
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
5379
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5380
|
+
* player reset is necessary.
|
|
5381
|
+
*
|
|
5382
|
+
* @param {Object} opts
|
|
5383
|
+
*/
|
|
5380
5384
|
function filterResetOptions(opts) {
|
|
5381
|
-
return
|
|
5382
|
-
playerVars:
|
|
5385
|
+
return _extends({}, opts, {
|
|
5386
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
5383
5387
|
autoplay: 0,
|
|
5384
5388
|
start: 0,
|
|
5385
5389
|
end: 0
|
|
5386
5390
|
})
|
|
5387
5391
|
});
|
|
5388
5392
|
}
|
|
5389
|
-
/**
|
|
5390
|
-
* Check whether a `props` change should result in the player being reset.
|
|
5391
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
5392
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5393
|
-
* those.
|
|
5394
|
-
*
|
|
5395
|
-
* @param {Object} prevProps
|
|
5396
|
-
* @param {Object} props
|
|
5397
|
-
*/
|
|
5398
|
-
|
|
5399
5393
|
|
|
5394
|
+
/**
|
|
5395
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5396
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5397
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5398
|
+
* those.
|
|
5399
|
+
*
|
|
5400
|
+
* @param {Object} prevProps
|
|
5401
|
+
* @param {Object} props
|
|
5402
|
+
*/
|
|
5400
5403
|
function shouldResetPlayer(prevProps, props) {
|
|
5401
5404
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5402
5405
|
}
|
|
5403
|
-
/**
|
|
5404
|
-
* Check whether a props change should result in an id or className update.
|
|
5405
|
-
*
|
|
5406
|
-
* @param {Object} prevProps
|
|
5407
|
-
* @param {Object} props
|
|
5408
|
-
*/
|
|
5409
|
-
|
|
5410
5406
|
|
|
5407
|
+
/**
|
|
5408
|
+
* Check whether a props change should result in an id or className update.
|
|
5409
|
+
*
|
|
5410
|
+
* @param {Object} prevProps
|
|
5411
|
+
* @param {Object} props
|
|
5412
|
+
*/
|
|
5411
5413
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5412
5414
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5413
5415
|
}
|
|
5414
5416
|
|
|
5415
|
-
var YouTube =
|
|
5417
|
+
var YouTube = function (_React$Component) {
|
|
5416
5418
|
_inherits(YouTube, _React$Component);
|
|
5417
5419
|
|
|
5418
|
-
var _super = _createSuper(YouTube);
|
|
5419
|
-
|
|
5420
|
-
/**
|
|
5421
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5422
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5423
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5424
|
-
*/
|
|
5425
5420
|
function YouTube(props) {
|
|
5426
|
-
var _this;
|
|
5427
|
-
|
|
5428
5421
|
_classCallCheck(this, YouTube);
|
|
5429
5422
|
|
|
5430
|
-
_this =
|
|
5423
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
5431
5424
|
|
|
5432
|
-
|
|
5425
|
+
_this.onPlayerReady = function (event) {
|
|
5433
5426
|
return _this.props.onReady(event);
|
|
5434
|
-
}
|
|
5427
|
+
};
|
|
5435
5428
|
|
|
5436
|
-
|
|
5429
|
+
_this.onPlayerError = function (event) {
|
|
5437
5430
|
return _this.props.onError(event);
|
|
5438
|
-
}
|
|
5431
|
+
};
|
|
5439
5432
|
|
|
5440
|
-
|
|
5433
|
+
_this.onPlayerStateChange = function (event) {
|
|
5441
5434
|
_this.props.onStateChange(event);
|
|
5442
|
-
|
|
5443
5435
|
switch (event.data) {
|
|
5436
|
+
|
|
5444
5437
|
case YouTube.PlayerState.ENDED:
|
|
5445
5438
|
_this.props.onEnd(event);
|
|
5446
|
-
|
|
5447
5439
|
break;
|
|
5448
5440
|
|
|
5449
5441
|
case YouTube.PlayerState.PLAYING:
|
|
5450
5442
|
_this.props.onPlay(event);
|
|
5451
|
-
|
|
5452
5443
|
break;
|
|
5453
5444
|
|
|
5454
5445
|
case YouTube.PlayerState.PAUSED:
|
|
5455
5446
|
_this.props.onPause(event);
|
|
5456
|
-
|
|
5457
5447
|
break;
|
|
5458
5448
|
}
|
|
5459
|
-
}
|
|
5449
|
+
};
|
|
5460
5450
|
|
|
5461
|
-
|
|
5451
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
5462
5452
|
return _this.props.onPlaybackRateChange(event);
|
|
5463
|
-
}
|
|
5453
|
+
};
|
|
5464
5454
|
|
|
5465
|
-
|
|
5455
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
5466
5456
|
return _this.props.onPlaybackQualityChange(event);
|
|
5467
|
-
}
|
|
5457
|
+
};
|
|
5468
5458
|
|
|
5469
|
-
|
|
5459
|
+
_this.createPlayer = function () {
|
|
5470
5460
|
// do not attempt to create a player server-side, it won't work
|
|
5471
|
-
if (typeof document === 'undefined') return;
|
|
5472
|
-
|
|
5473
|
-
var playerOpts =
|
|
5461
|
+
if (typeof document === 'undefined') return;
|
|
5462
|
+
// create player
|
|
5463
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
5474
5464
|
// preload the `videoId` video if one is already given
|
|
5475
5465
|
videoId: _this.props.videoId
|
|
5476
5466
|
});
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5467
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
5468
|
+
// attach event handlers
|
|
5480
5469
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5481
|
-
|
|
5482
5470
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5483
|
-
|
|
5484
5471
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5485
|
-
|
|
5486
5472
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5487
|
-
|
|
5488
5473
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5489
|
-
}
|
|
5474
|
+
};
|
|
5490
5475
|
|
|
5491
|
-
|
|
5476
|
+
_this.resetPlayer = function () {
|
|
5492
5477
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5493
|
-
}
|
|
5478
|
+
};
|
|
5494
5479
|
|
|
5495
|
-
|
|
5480
|
+
_this.updatePlayer = function () {
|
|
5496
5481
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5497
5482
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5498
5483
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5499
5484
|
});
|
|
5500
|
-
}
|
|
5485
|
+
};
|
|
5501
5486
|
|
|
5502
|
-
|
|
5487
|
+
_this.updateVideo = function () {
|
|
5503
5488
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5504
5489
|
_this.internalPlayer.stopVideo();
|
|
5505
|
-
|
|
5506
5490
|
return;
|
|
5507
|
-
}
|
|
5508
|
-
|
|
5491
|
+
}
|
|
5509
5492
|
|
|
5493
|
+
// set queueing options
|
|
5510
5494
|
var autoplay = false;
|
|
5511
5495
|
var opts = {
|
|
5512
5496
|
videoId: _this.props.videoId
|
|
5513
5497
|
};
|
|
5514
|
-
|
|
5515
5498
|
if ('playerVars' in _this.props.opts) {
|
|
5516
5499
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5517
|
-
|
|
5518
5500
|
if ('start' in _this.props.opts.playerVars) {
|
|
5519
5501
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5520
5502
|
}
|
|
5521
|
-
|
|
5522
5503
|
if ('end' in _this.props.opts.playerVars) {
|
|
5523
5504
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5524
5505
|
}
|
|
5525
|
-
}
|
|
5526
|
-
|
|
5506
|
+
}
|
|
5527
5507
|
|
|
5508
|
+
// if autoplay is enabled loadVideoById
|
|
5528
5509
|
if (autoplay) {
|
|
5529
5510
|
_this.internalPlayer.loadVideoById(opts);
|
|
5530
|
-
|
|
5531
5511
|
return;
|
|
5532
|
-
}
|
|
5533
|
-
|
|
5534
|
-
|
|
5512
|
+
}
|
|
5513
|
+
// default behaviour just cues the video
|
|
5535
5514
|
_this.internalPlayer.cueVideoById(opts);
|
|
5536
|
-
}
|
|
5515
|
+
};
|
|
5537
5516
|
|
|
5538
|
-
|
|
5517
|
+
_this.refContainer = function (container) {
|
|
5539
5518
|
_this.container = container;
|
|
5540
|
-
}
|
|
5519
|
+
};
|
|
5541
5520
|
|
|
5542
5521
|
_this.container = null;
|
|
5543
5522
|
_this.internalPlayer = null;
|
|
5544
5523
|
return _this;
|
|
5545
5524
|
}
|
|
5546
5525
|
|
|
5526
|
+
/**
|
|
5527
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5528
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5529
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5530
|
+
*/
|
|
5531
|
+
|
|
5532
|
+
|
|
5547
5533
|
_createClass(YouTube, [{
|
|
5548
|
-
key:
|
|
5534
|
+
key: 'componentDidMount',
|
|
5549
5535
|
value: function componentDidMount() {
|
|
5550
5536
|
this.createPlayer();
|
|
5551
5537
|
}
|
|
5552
5538
|
}, {
|
|
5553
|
-
key:
|
|
5539
|
+
key: 'componentDidUpdate',
|
|
5554
5540
|
value: function componentDidUpdate(prevProps) {
|
|
5555
5541
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5556
5542
|
this.updatePlayer();
|
|
@@ -5565,58 +5551,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
5565
5551
|
}
|
|
5566
5552
|
}
|
|
5567
5553
|
}, {
|
|
5568
|
-
key:
|
|
5554
|
+
key: 'componentWillUnmount',
|
|
5569
5555
|
value: function componentWillUnmount() {
|
|
5570
|
-
/**
|
|
5571
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5572
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5573
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5574
|
-
* this method isn't quick enough to reset the container element.
|
|
5556
|
+
/**
|
|
5557
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
5558
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5559
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5560
|
+
* this method isn't quick enough to reset the container element.
|
|
5575
5561
|
*/
|
|
5576
5562
|
this.internalPlayer.destroy();
|
|
5577
5563
|
}
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
*
|
|
5581
|
-
*
|
|
5582
|
-
*
|
|
5564
|
+
|
|
5565
|
+
/**
|
|
5566
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5567
|
+
*
|
|
5568
|
+
* @param {Object} event
|
|
5569
|
+
* @param {Object} target - player object
|
|
5570
|
+
*/
|
|
5571
|
+
|
|
5572
|
+
|
|
5573
|
+
/**
|
|
5574
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5575
|
+
*
|
|
5576
|
+
* @param {Object} event
|
|
5577
|
+
* @param {Integer} data - error type
|
|
5578
|
+
* @param {Object} target - player object
|
|
5579
|
+
*/
|
|
5580
|
+
|
|
5581
|
+
|
|
5582
|
+
/**
|
|
5583
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5584
|
+
*
|
|
5585
|
+
* @param {Object} event
|
|
5586
|
+
* @param {Integer} data - status change type
|
|
5587
|
+
* @param {Object} target - actual YT player
|
|
5588
|
+
*/
|
|
5589
|
+
|
|
5590
|
+
|
|
5591
|
+
/**
|
|
5592
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5593
|
+
*
|
|
5594
|
+
* @param {Object} event
|
|
5595
|
+
* @param {Float} data - playback rate
|
|
5596
|
+
* @param {Object} target - actual YT player
|
|
5597
|
+
*/
|
|
5598
|
+
|
|
5599
|
+
|
|
5600
|
+
/**
|
|
5601
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5602
|
+
*
|
|
5603
|
+
* @param {Object} event
|
|
5604
|
+
* @param {String} data - playback quality
|
|
5605
|
+
* @param {Object} target - actual YT player
|
|
5606
|
+
*/
|
|
5607
|
+
|
|
5608
|
+
|
|
5609
|
+
/**
|
|
5610
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5611
|
+
*/
|
|
5612
|
+
|
|
5613
|
+
|
|
5614
|
+
/**
|
|
5615
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5616
|
+
*/
|
|
5617
|
+
|
|
5618
|
+
|
|
5619
|
+
/**
|
|
5620
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
5621
|
+
* React should update this automatically but since the Youtube Player API
|
|
5622
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5623
|
+
*/
|
|
5624
|
+
|
|
5625
|
+
|
|
5626
|
+
/**
|
|
5627
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
5628
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5629
|
+
* Youtube Player API methods to update the video.
|
|
5583
5630
|
*/
|
|
5584
5631
|
|
|
5585
5632
|
}, {
|
|
5586
|
-
key:
|
|
5633
|
+
key: 'render',
|
|
5587
5634
|
value: function render() {
|
|
5588
|
-
return
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
id: this.props.id,
|
|
5592
|
-
|
|
5593
|
-
ref: this.refContainer
|
|
5594
|
-
}));
|
|
5635
|
+
return React__default.createElement(
|
|
5636
|
+
'div',
|
|
5637
|
+
{ className: this.props.containerClassName },
|
|
5638
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
5639
|
+
);
|
|
5595
5640
|
}
|
|
5596
5641
|
}]);
|
|
5597
5642
|
|
|
5598
5643
|
return YouTube;
|
|
5599
5644
|
}(React__default.Component);
|
|
5600
5645
|
|
|
5601
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
5602
|
-
UNSTARTED: -1,
|
|
5603
|
-
ENDED: 0,
|
|
5604
|
-
PLAYING: 1,
|
|
5605
|
-
PAUSED: 2,
|
|
5606
|
-
BUFFERING: 3,
|
|
5607
|
-
CUED: 5
|
|
5608
|
-
});
|
|
5609
|
-
|
|
5610
5646
|
YouTube.propTypes = {
|
|
5611
5647
|
videoId: PropTypes.string,
|
|
5648
|
+
|
|
5612
5649
|
// custom ID for player element
|
|
5613
5650
|
id: PropTypes.string,
|
|
5651
|
+
|
|
5614
5652
|
// custom class name for player element
|
|
5615
5653
|
className: PropTypes.string,
|
|
5616
5654
|
// custom class name for player container element
|
|
5617
5655
|
containerClassName: PropTypes.string,
|
|
5656
|
+
|
|
5618
5657
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5619
5658
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5659
|
+
|
|
5620
5660
|
// event subscriptions
|
|
5621
5661
|
onReady: PropTypes.func,
|
|
5622
5662
|
onError: PropTypes.func,
|
|
@@ -5628,7 +5668,6 @@ YouTube.propTypes = {
|
|
|
5628
5668
|
onPlaybackQualityChange: PropTypes.func
|
|
5629
5669
|
};
|
|
5630
5670
|
YouTube.defaultProps = {
|
|
5631
|
-
videoId: null,
|
|
5632
5671
|
id: null,
|
|
5633
5672
|
className: null,
|
|
5634
5673
|
opts: {},
|
|
@@ -5642,6 +5681,14 @@ YouTube.defaultProps = {
|
|
|
5642
5681
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5643
5682
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5644
5683
|
};
|
|
5684
|
+
YouTube.PlayerState = {
|
|
5685
|
+
UNSTARTED: -1,
|
|
5686
|
+
ENDED: 0,
|
|
5687
|
+
PLAYING: 1,
|
|
5688
|
+
PAUSED: 2,
|
|
5689
|
+
BUFFERING: 3,
|
|
5690
|
+
CUED: 5
|
|
5691
|
+
};
|
|
5645
5692
|
|
|
5646
5693
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5647
5694
|
var url = _ref.url;
|
|
@@ -6665,8 +6712,8 @@ var window_1 = win;
|
|
|
6665
6712
|
|
|
6666
6713
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6667
6714
|
|
|
6668
|
-
function _extends() {
|
|
6669
|
-
_extends = Object.assign || function (target) {
|
|
6715
|
+
function _extends$1() {
|
|
6716
|
+
_extends$1 = Object.assign || function (target) {
|
|
6670
6717
|
for (var i = 1; i < arguments.length; i++) {
|
|
6671
6718
|
var source = arguments[i];
|
|
6672
6719
|
|
|
@@ -6680,7 +6727,7 @@ function _extends() {
|
|
|
6680
6727
|
return target;
|
|
6681
6728
|
};
|
|
6682
6729
|
|
|
6683
|
-
return _extends.apply(this, arguments);
|
|
6730
|
+
return _extends$1.apply(this, arguments);
|
|
6684
6731
|
}
|
|
6685
6732
|
|
|
6686
6733
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6689,7 +6736,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6689
6736
|
subClass.__proto__ = superClass;
|
|
6690
6737
|
}
|
|
6691
6738
|
|
|
6692
|
-
function _assertThisInitialized
|
|
6739
|
+
function _assertThisInitialized(self) {
|
|
6693
6740
|
if (self === void 0) {
|
|
6694
6741
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6695
6742
|
}
|
|
@@ -6699,8 +6746,8 @@ function _assertThisInitialized$1(self) {
|
|
|
6699
6746
|
|
|
6700
6747
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6701
6748
|
|
|
6702
|
-
function _extends$1() {
|
|
6703
|
-
_extends$1 = Object.assign || function (target) {
|
|
6749
|
+
function _extends$1$1() {
|
|
6750
|
+
_extends$1$1 = Object.assign || function (target) {
|
|
6704
6751
|
for (var i = 1; i < arguments.length; i++) {
|
|
6705
6752
|
var source = arguments[i];
|
|
6706
6753
|
|
|
@@ -6714,7 +6761,7 @@ function _extends$1() {
|
|
|
6714
6761
|
return target;
|
|
6715
6762
|
};
|
|
6716
6763
|
|
|
6717
|
-
return _extends$1.apply(this, arguments);
|
|
6764
|
+
return _extends$1$1.apply(this, arguments);
|
|
6718
6765
|
}
|
|
6719
6766
|
|
|
6720
6767
|
var version$1 = "1.7.1";
|
|
@@ -6722,7 +6769,7 @@ var version$1 = "1.7.1";
|
|
|
6722
6769
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6723
6770
|
var version$1$1 = "1.2.0";
|
|
6724
6771
|
|
|
6725
|
-
var _typeof
|
|
6772
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6726
6773
|
return typeof obj;
|
|
6727
6774
|
} : function (obj) {
|
|
6728
6775
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6857,7 +6904,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6857
6904
|
|
|
6858
6905
|
var qs = '';
|
|
6859
6906
|
|
|
6860
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof
|
|
6907
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6861
6908
|
qs = getQueryString(queryParams);
|
|
6862
6909
|
}
|
|
6863
6910
|
|
|
@@ -7091,7 +7138,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
7091
7138
|
el.style.width = '100%';
|
|
7092
7139
|
el.style.height = '100%';
|
|
7093
7140
|
|
|
7094
|
-
var responsive = _extends$1({
|
|
7141
|
+
var responsive = _extends$1$1({
|
|
7095
7142
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
7096
7143
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
7097
7144
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7776,7 +7823,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7776
7823
|
|
|
7777
7824
|
|
|
7778
7825
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7779
|
-
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7826
|
+
var params = _extends$1$1({}, DEFAULTS, parameters);
|
|
7780
7827
|
|
|
7781
7828
|
var Promise = params.Promise,
|
|
7782
7829
|
onSuccess = params.onSuccess,
|
|
@@ -7918,7 +7965,7 @@ function (_React$Component) {
|
|
|
7918
7965
|
_this.refNode = ref;
|
|
7919
7966
|
};
|
|
7920
7967
|
|
|
7921
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized
|
|
7968
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7922
7969
|
return _this;
|
|
7923
7970
|
}
|
|
7924
7971
|
/**
|
|
@@ -7939,7 +7986,7 @@ function (_React$Component) {
|
|
|
7939
7986
|
var userSuccess = this.props.onSuccess;
|
|
7940
7987
|
var userFailure = this.props.onFailure;
|
|
7941
7988
|
|
|
7942
|
-
var options = _extends({}, this.props, {
|
|
7989
|
+
var options = _extends$1({}, this.props, {
|
|
7943
7990
|
refNode: this.refNode,
|
|
7944
7991
|
refNodeInsert: 'append',
|
|
7945
7992
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8248,7 +8295,7 @@ function (_React$Component) {
|
|
|
8248
8295
|
;
|
|
8249
8296
|
|
|
8250
8297
|
_proto.render = function render() {
|
|
8251
|
-
var props = _extends({
|
|
8298
|
+
var props = _extends$1({
|
|
8252
8299
|
className: 'brightcove-react-player-loader'
|
|
8253
8300
|
}, this.props.attrs, {
|
|
8254
8301
|
ref: this.setRefNode
|
|
@@ -8664,17 +8711,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8664
8711
|
|
|
8665
8712
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8666
8713
|
|
|
8667
|
-
function
|
|
8668
|
-
|
|
8669
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8670
|
-
|
|
8671
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
8672
|
-
|
|
8673
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8714
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
8674
8715
|
|
|
8675
|
-
function
|
|
8716
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8676
8717
|
|
|
8677
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
8718
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8678
8719
|
|
|
8679
8720
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8680
8721
|
|
|
@@ -8804,12 +8845,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8804
8845
|
|
|
8805
8846
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8806
8847
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8807
|
-
|
|
8808
|
-
var
|
|
8809
|
-
|
|
8848
|
+
var _iteratorNormalCompletion = true;
|
|
8849
|
+
var _didIteratorError = false;
|
|
8850
|
+
var _iteratorError = undefined;
|
|
8810
8851
|
|
|
8811
8852
|
try {
|
|
8812
|
-
for (_iterator.
|
|
8853
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
8813
8854
|
var p = _step.value;
|
|
8814
8855
|
|
|
8815
8856
|
if (props$1[p]) {
|
|
@@ -8824,9 +8865,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8824
8865
|
}
|
|
8825
8866
|
}
|
|
8826
8867
|
} catch (err) {
|
|
8827
|
-
|
|
8868
|
+
_didIteratorError = true;
|
|
8869
|
+
_iteratorError = err;
|
|
8828
8870
|
} finally {
|
|
8829
|
-
|
|
8871
|
+
try {
|
|
8872
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8873
|
+
_iterator["return"]();
|
|
8874
|
+
}
|
|
8875
|
+
} finally {
|
|
8876
|
+
if (_didIteratorError) {
|
|
8877
|
+
throw _iteratorError;
|
|
8878
|
+
}
|
|
8879
|
+
}
|
|
8830
8880
|
}
|
|
8831
8881
|
|
|
8832
8882
|
return config;
|
|
@@ -8973,16 +9023,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8973
9023
|
|
|
8974
9024
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8975
9025
|
|
|
8976
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8977
|
-
|
|
8978
9026
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8979
9027
|
|
|
8980
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8981
|
-
|
|
8982
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
8983
|
-
|
|
8984
9028
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8985
9029
|
|
|
9030
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9031
|
+
|
|
8986
9032
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8987
9033
|
|
|
8988
9034
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -8991,12 +9037,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8991
9037
|
|
|
8992
9038
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
8993
9039
|
|
|
8994
|
-
var Player =
|
|
9040
|
+
var Player =
|
|
9041
|
+
/*#__PURE__*/
|
|
9042
|
+
function (_Component) {
|
|
8995
9043
|
_inherits(Player, _Component);
|
|
8996
9044
|
|
|
8997
|
-
var _super = _createSuper(Player);
|
|
8998
|
-
|
|
8999
9045
|
function Player() {
|
|
9046
|
+
var _getPrototypeOf2;
|
|
9047
|
+
|
|
9000
9048
|
var _this;
|
|
9001
9049
|
|
|
9002
9050
|
_classCallCheck(this, Player);
|
|
@@ -9005,7 +9053,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9005
9053
|
_args[_key] = arguments[_key];
|
|
9006
9054
|
}
|
|
9007
9055
|
|
|
9008
|
-
_this =
|
|
9056
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
9009
9057
|
|
|
9010
9058
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
9011
9059
|
|
|
@@ -9330,7 +9378,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9330
9378
|
return null;
|
|
9331
9379
|
}
|
|
9332
9380
|
|
|
9333
|
-
return
|
|
9381
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9334
9382
|
ref: this.ref,
|
|
9335
9383
|
onReady: this.handleReady,
|
|
9336
9384
|
onPlay: this.handlePlay,
|
|
@@ -9391,16 +9439,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9391
9439
|
|
|
9392
9440
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9393
9441
|
|
|
9394
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9395
|
-
|
|
9396
9442
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9397
9443
|
|
|
9398
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9399
|
-
|
|
9400
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9401
|
-
|
|
9402
9444
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9403
9445
|
|
|
9446
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9447
|
+
|
|
9404
9448
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9405
9449
|
|
|
9406
9450
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9412,12 +9456,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9412
9456
|
function createSinglePlayer(activePlayer) {
|
|
9413
9457
|
var _class, _temp;
|
|
9414
9458
|
|
|
9415
|
-
return _temp = _class =
|
|
9459
|
+
return _temp = _class =
|
|
9460
|
+
/*#__PURE__*/
|
|
9461
|
+
function (_Component) {
|
|
9416
9462
|
_inherits(SinglePlayer, _Component);
|
|
9417
9463
|
|
|
9418
|
-
var _super = _createSuper(SinglePlayer);
|
|
9419
|
-
|
|
9420
9464
|
function SinglePlayer() {
|
|
9465
|
+
var _getPrototypeOf2;
|
|
9466
|
+
|
|
9421
9467
|
var _this;
|
|
9422
9468
|
|
|
9423
9469
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9426,7 +9472,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9426
9472
|
args[_key] = arguments[_key];
|
|
9427
9473
|
}
|
|
9428
9474
|
|
|
9429
|
-
_this =
|
|
9475
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9430
9476
|
|
|
9431
9477
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9432
9478
|
|
|
@@ -9494,12 +9540,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9494
9540
|
height = _this$props.height,
|
|
9495
9541
|
Wrapper = _this$props.wrapper;
|
|
9496
9542
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9497
|
-
return
|
|
9543
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
9498
9544
|
style: _objectSpread({}, style, {
|
|
9499
9545
|
width: width,
|
|
9500
9546
|
height: height
|
|
9501
9547
|
})
|
|
9502
|
-
}, otherProps),
|
|
9548
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9503
9549
|
ref: this.ref,
|
|
9504
9550
|
activePlayer: activePlayer,
|
|
9505
9551
|
config: this.config
|
|
@@ -9545,31 +9591,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9545
9591
|
|
|
9546
9592
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9547
9593
|
|
|
9548
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9549
|
-
|
|
9550
9594
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9551
9595
|
|
|
9552
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9553
|
-
|
|
9554
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9555
|
-
|
|
9556
9596
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9557
9597
|
|
|
9598
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9599
|
+
|
|
9558
9600
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9559
9601
|
|
|
9560
9602
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9561
9603
|
|
|
9562
9604
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9563
9605
|
|
|
9564
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
9606
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9565
9607
|
|
|
9566
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
9608
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
9567
9609
|
|
|
9568
|
-
function
|
|
9569
|
-
|
|
9570
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
9571
|
-
|
|
9572
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
9610
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
9573
9611
|
|
|
9574
9612
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9575
9613
|
|
|
@@ -9594,12 +9632,14 @@ function parsePlaylist(url) {
|
|
|
9594
9632
|
return {};
|
|
9595
9633
|
}
|
|
9596
9634
|
|
|
9597
|
-
var YouTube =
|
|
9635
|
+
var YouTube =
|
|
9636
|
+
/*#__PURE__*/
|
|
9637
|
+
function (_Component) {
|
|
9598
9638
|
_inherits(YouTube, _Component);
|
|
9599
9639
|
|
|
9600
|
-
var _super = _createSuper(YouTube);
|
|
9601
|
-
|
|
9602
9640
|
function YouTube() {
|
|
9641
|
+
var _getPrototypeOf2;
|
|
9642
|
+
|
|
9603
9643
|
var _this;
|
|
9604
9644
|
|
|
9605
9645
|
_classCallCheck(this, YouTube);
|
|
@@ -9608,7 +9648,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9608
9648
|
args[_key] = arguments[_key];
|
|
9609
9649
|
}
|
|
9610
9650
|
|
|
9611
|
-
_this =
|
|
9651
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9612
9652
|
|
|
9613
9653
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9614
9654
|
|
|
@@ -9796,9 +9836,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9796
9836
|
height: '100%',
|
|
9797
9837
|
display: display
|
|
9798
9838
|
};
|
|
9799
|
-
return
|
|
9839
|
+
return _react["default"].createElement("div", {
|
|
9800
9840
|
style: style
|
|
9801
|
-
},
|
|
9841
|
+
}, _react["default"].createElement("div", {
|
|
9802
9842
|
ref: this.ref
|
|
9803
9843
|
}));
|
|
9804
9844
|
}
|
|
@@ -9854,16 +9894,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9854
9894
|
|
|
9855
9895
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9856
9896
|
|
|
9857
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9858
|
-
|
|
9859
9897
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9860
9898
|
|
|
9861
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9862
|
-
|
|
9863
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9864
|
-
|
|
9865
9899
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9866
9900
|
|
|
9901
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9902
|
+
|
|
9867
9903
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9868
9904
|
|
|
9869
9905
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9872,14 +9908,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9872
9908
|
|
|
9873
9909
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9874
9910
|
var SDK_GLOBAL = 'SC';
|
|
9875
|
-
var MATCH_URL = /(
|
|
9911
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
9876
9912
|
|
|
9877
|
-
var SoundCloud =
|
|
9913
|
+
var SoundCloud =
|
|
9914
|
+
/*#__PURE__*/
|
|
9915
|
+
function (_Component) {
|
|
9878
9916
|
_inherits(SoundCloud, _Component);
|
|
9879
9917
|
|
|
9880
|
-
var _super = _createSuper(SoundCloud);
|
|
9881
|
-
|
|
9882
9918
|
function SoundCloud() {
|
|
9919
|
+
var _getPrototypeOf2;
|
|
9920
|
+
|
|
9883
9921
|
var _this;
|
|
9884
9922
|
|
|
9885
9923
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9888,7 +9926,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9888
9926
|
args[_key] = arguments[_key];
|
|
9889
9927
|
}
|
|
9890
9928
|
|
|
9891
|
-
_this =
|
|
9929
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9892
9930
|
|
|
9893
9931
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9894
9932
|
|
|
@@ -10009,7 +10047,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
10009
10047
|
height: '100%',
|
|
10010
10048
|
display: display
|
|
10011
10049
|
};
|
|
10012
|
-
return
|
|
10050
|
+
return _react["default"].createElement("iframe", {
|
|
10013
10051
|
ref: this.ref,
|
|
10014
10052
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
10015
10053
|
style: style,
|
|
@@ -10071,16 +10109,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10071
10109
|
|
|
10072
10110
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10073
10111
|
|
|
10074
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10075
|
-
|
|
10076
10112
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10077
10113
|
|
|
10078
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10079
|
-
|
|
10080
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10081
|
-
|
|
10082
10114
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10083
10115
|
|
|
10116
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10117
|
+
|
|
10084
10118
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10085
10119
|
|
|
10086
10120
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10092,12 +10126,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10092
10126
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10093
10127
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10094
10128
|
|
|
10095
|
-
var Vimeo =
|
|
10129
|
+
var Vimeo =
|
|
10130
|
+
/*#__PURE__*/
|
|
10131
|
+
function (_Component) {
|
|
10096
10132
|
_inherits(Vimeo, _Component);
|
|
10097
10133
|
|
|
10098
|
-
var _super = _createSuper(Vimeo);
|
|
10099
|
-
|
|
10100
10134
|
function Vimeo() {
|
|
10135
|
+
var _getPrototypeOf2;
|
|
10136
|
+
|
|
10101
10137
|
var _this;
|
|
10102
10138
|
|
|
10103
10139
|
_classCallCheck(this, Vimeo);
|
|
@@ -10106,7 +10142,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10106
10142
|
args[_key] = arguments[_key];
|
|
10107
10143
|
}
|
|
10108
10144
|
|
|
10109
|
-
_this =
|
|
10145
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10110
10146
|
|
|
10111
10147
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10112
10148
|
|
|
@@ -10263,7 +10299,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10263
10299
|
overflow: 'hidden',
|
|
10264
10300
|
display: display
|
|
10265
10301
|
};
|
|
10266
|
-
return
|
|
10302
|
+
return _react["default"].createElement("div", {
|
|
10267
10303
|
key: this.props.url,
|
|
10268
10304
|
ref: this.ref,
|
|
10269
10305
|
style: style
|
|
@@ -10323,16 +10359,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10323
10359
|
|
|
10324
10360
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10325
10361
|
|
|
10326
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10327
|
-
|
|
10328
10362
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10329
10363
|
|
|
10330
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10331
|
-
|
|
10332
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10333
|
-
|
|
10334
10364
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10335
10365
|
|
|
10366
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10367
|
+
|
|
10336
10368
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10337
10369
|
|
|
10338
10370
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10345,12 +10377,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10345
10377
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10346
10378
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10347
10379
|
|
|
10348
|
-
var Facebook =
|
|
10380
|
+
var Facebook =
|
|
10381
|
+
/*#__PURE__*/
|
|
10382
|
+
function (_Component) {
|
|
10349
10383
|
_inherits(Facebook, _Component);
|
|
10350
10384
|
|
|
10351
|
-
var _super = _createSuper(Facebook);
|
|
10352
|
-
|
|
10353
10385
|
function Facebook() {
|
|
10386
|
+
var _getPrototypeOf2;
|
|
10387
|
+
|
|
10354
10388
|
var _this;
|
|
10355
10389
|
|
|
10356
10390
|
_classCallCheck(this, Facebook);
|
|
@@ -10359,7 +10393,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10359
10393
|
args[_key] = arguments[_key];
|
|
10360
10394
|
}
|
|
10361
10395
|
|
|
10362
|
-
_this =
|
|
10396
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10363
10397
|
|
|
10364
10398
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10365
10399
|
|
|
@@ -10475,7 +10509,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10475
10509
|
width: '100%',
|
|
10476
10510
|
height: '100%'
|
|
10477
10511
|
};
|
|
10478
|
-
return
|
|
10512
|
+
return _react["default"].createElement("div", {
|
|
10479
10513
|
style: style,
|
|
10480
10514
|
id: this.playerID,
|
|
10481
10515
|
className: "fb-video",
|
|
@@ -10535,16 +10569,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10535
10569
|
|
|
10536
10570
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10537
10571
|
|
|
10538
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10539
|
-
|
|
10540
10572
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10541
10573
|
|
|
10542
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10543
|
-
|
|
10544
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10545
|
-
|
|
10546
10574
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10547
10575
|
|
|
10576
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10577
|
+
|
|
10548
10578
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10549
10579
|
|
|
10550
10580
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10555,12 +10585,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10555
10585
|
var SDK_GLOBAL = 'playerjs';
|
|
10556
10586
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10557
10587
|
|
|
10558
|
-
var Streamable =
|
|
10588
|
+
var Streamable =
|
|
10589
|
+
/*#__PURE__*/
|
|
10590
|
+
function (_Component) {
|
|
10559
10591
|
_inherits(Streamable, _Component);
|
|
10560
10592
|
|
|
10561
|
-
var _super = _createSuper(Streamable);
|
|
10562
|
-
|
|
10563
10593
|
function Streamable() {
|
|
10594
|
+
var _getPrototypeOf2;
|
|
10595
|
+
|
|
10564
10596
|
var _this;
|
|
10565
10597
|
|
|
10566
10598
|
_classCallCheck(this, Streamable);
|
|
@@ -10569,7 +10601,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10569
10601
|
args[_key] = arguments[_key];
|
|
10570
10602
|
}
|
|
10571
10603
|
|
|
10572
|
-
_this =
|
|
10604
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10573
10605
|
|
|
10574
10606
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10575
10607
|
|
|
@@ -10689,7 +10721,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10689
10721
|
width: '100%',
|
|
10690
10722
|
height: '100%'
|
|
10691
10723
|
};
|
|
10692
|
-
return
|
|
10724
|
+
return _react["default"].createElement("iframe", {
|
|
10693
10725
|
ref: this.ref,
|
|
10694
10726
|
src: "https://streamable.com/o/".concat(id),
|
|
10695
10727
|
frameBorder: "0",
|
|
@@ -10750,16 +10782,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10750
10782
|
|
|
10751
10783
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10752
10784
|
|
|
10753
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10754
|
-
|
|
10755
10785
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10756
10786
|
|
|
10757
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10758
|
-
|
|
10759
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10760
|
-
|
|
10761
10787
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10762
10788
|
|
|
10789
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10790
|
+
|
|
10763
10791
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10764
10792
|
|
|
10765
10793
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10770,48 +10798,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10770
10798
|
var SDK_GLOBAL = 'Wistia';
|
|
10771
10799
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10772
10800
|
|
|
10773
|
-
var Wistia =
|
|
10801
|
+
var Wistia =
|
|
10802
|
+
/*#__PURE__*/
|
|
10803
|
+
function (_Component) {
|
|
10774
10804
|
_inherits(Wistia, _Component);
|
|
10775
10805
|
|
|
10776
|
-
var _super = _createSuper(Wistia);
|
|
10777
|
-
|
|
10778
10806
|
function Wistia() {
|
|
10807
|
+
var _getPrototypeOf2;
|
|
10808
|
+
|
|
10779
10809
|
var _this;
|
|
10780
10810
|
|
|
10781
10811
|
_classCallCheck(this, Wistia);
|
|
10782
10812
|
|
|
10783
|
-
for (var _len = arguments.length,
|
|
10784
|
-
|
|
10813
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10814
|
+
args[_key] = arguments[_key];
|
|
10785
10815
|
}
|
|
10786
10816
|
|
|
10787
|
-
_this =
|
|
10817
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10788
10818
|
|
|
10789
10819
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10790
10820
|
|
|
10791
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10792
|
-
var _this$props;
|
|
10793
|
-
|
|
10794
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10795
|
-
});
|
|
10796
|
-
|
|
10797
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10798
|
-
var _this$props2;
|
|
10799
|
-
|
|
10800
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10801
|
-
});
|
|
10802
|
-
|
|
10803
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10804
|
-
var _this$props3;
|
|
10805
|
-
|
|
10806
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10807
|
-
});
|
|
10808
|
-
|
|
10809
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10810
|
-
var _this$props4;
|
|
10811
|
-
|
|
10812
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10813
|
-
});
|
|
10814
|
-
|
|
10815
10821
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10816
10822
|
_this.callPlayer('mute');
|
|
10817
10823
|
});
|
|
@@ -10833,13 +10839,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10833
10839
|
value: function load(url) {
|
|
10834
10840
|
var _this2 = this;
|
|
10835
10841
|
|
|
10836
|
-
var _this$
|
|
10837
|
-
playing = _this$
|
|
10838
|
-
muted = _this$
|
|
10839
|
-
controls = _this$
|
|
10840
|
-
_onReady = _this$
|
|
10841
|
-
|
|
10842
|
-
|
|
10842
|
+
var _this$props = this.props,
|
|
10843
|
+
playing = _this$props.playing,
|
|
10844
|
+
muted = _this$props.muted,
|
|
10845
|
+
controls = _this$props.controls,
|
|
10846
|
+
_onReady = _this$props.onReady,
|
|
10847
|
+
onPlay = _this$props.onPlay,
|
|
10848
|
+
onPause = _this$props.onPause,
|
|
10849
|
+
onSeek = _this$props.onSeek,
|
|
10850
|
+
onEnded = _this$props.onEnded,
|
|
10851
|
+
config = _this$props.config,
|
|
10852
|
+
onError = _this$props.onError;
|
|
10843
10853
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10844
10854
|
window._wq = window._wq || [];
|
|
10845
10855
|
|
|
@@ -10856,28 +10866,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10856
10866
|
|
|
10857
10867
|
_this2.unbind();
|
|
10858
10868
|
|
|
10859
|
-
_this2.player.bind('play',
|
|
10869
|
+
_this2.player.bind('play', onPlay);
|
|
10860
10870
|
|
|
10861
|
-
_this2.player.bind('pause',
|
|
10871
|
+
_this2.player.bind('pause', onPause);
|
|
10862
10872
|
|
|
10863
|
-
_this2.player.bind('seek',
|
|
10873
|
+
_this2.player.bind('seek', onSeek);
|
|
10864
10874
|
|
|
10865
|
-
_this2.player.bind('end',
|
|
10875
|
+
_this2.player.bind('end', onEnded);
|
|
10866
10876
|
|
|
10867
10877
|
_onReady();
|
|
10868
10878
|
}
|
|
10869
10879
|
});
|
|
10870
10880
|
}, onError);
|
|
10871
10881
|
}
|
|
10872
|
-
}, {
|
|
10873
|
-
key: "unbind",
|
|
10874
|
-
value: function unbind() {
|
|
10875
|
-
this.player.unbind('play', this.onPlay);
|
|
10876
|
-
this.player.unbind('pause', this.onPause);
|
|
10877
|
-
this.player.unbind('seek', this.onSeek);
|
|
10878
|
-
this.player.unbind('end', this.onEnded);
|
|
10879
|
-
} // Proxy methods to prevent listener leaks
|
|
10880
|
-
|
|
10881
10882
|
}, {
|
|
10882
10883
|
key: "play",
|
|
10883
10884
|
value: function play() {
|
|
@@ -10888,6 +10889,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10888
10889
|
value: function pause() {
|
|
10889
10890
|
this.callPlayer('pause');
|
|
10890
10891
|
}
|
|
10892
|
+
}, {
|
|
10893
|
+
key: "unbind",
|
|
10894
|
+
value: function unbind() {
|
|
10895
|
+
var _this$props2 = this.props,
|
|
10896
|
+
onPlay = _this$props2.onPlay,
|
|
10897
|
+
onPause = _this$props2.onPause,
|
|
10898
|
+
onSeek = _this$props2.onSeek,
|
|
10899
|
+
onEnded = _this$props2.onEnded;
|
|
10900
|
+
this.player.unbind('play', onPlay);
|
|
10901
|
+
this.player.unbind('pause', onPause);
|
|
10902
|
+
this.player.unbind('seek', onSeek);
|
|
10903
|
+
this.player.unbind('end', onEnded);
|
|
10904
|
+
}
|
|
10891
10905
|
}, {
|
|
10892
10906
|
key: "stop",
|
|
10893
10907
|
value: function stop() {
|
|
@@ -10933,7 +10947,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10933
10947
|
width: '100%',
|
|
10934
10948
|
height: '100%'
|
|
10935
10949
|
};
|
|
10936
|
-
return
|
|
10950
|
+
return _react["default"].createElement("div", {
|
|
10937
10951
|
key: id,
|
|
10938
10952
|
className: className,
|
|
10939
10953
|
style: style
|
|
@@ -10993,16 +11007,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10993
11007
|
|
|
10994
11008
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10995
11009
|
|
|
10996
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10997
|
-
|
|
10998
11010
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10999
11011
|
|
|
11000
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11001
|
-
|
|
11002
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11003
|
-
|
|
11004
11012
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11005
11013
|
|
|
11014
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11015
|
+
|
|
11006
11016
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11007
11017
|
|
|
11008
11018
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11015,12 +11025,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
11015
11025
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
11016
11026
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
11017
11027
|
|
|
11018
|
-
var Twitch =
|
|
11028
|
+
var Twitch =
|
|
11029
|
+
/*#__PURE__*/
|
|
11030
|
+
function (_Component) {
|
|
11019
11031
|
_inherits(Twitch, _Component);
|
|
11020
11032
|
|
|
11021
|
-
var _super = _createSuper(Twitch);
|
|
11022
|
-
|
|
11023
11033
|
function Twitch() {
|
|
11034
|
+
var _getPrototypeOf2;
|
|
11035
|
+
|
|
11024
11036
|
var _this;
|
|
11025
11037
|
|
|
11026
11038
|
_classCallCheck(this, Twitch);
|
|
@@ -11029,7 +11041,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11029
11041
|
args[_key] = arguments[_key];
|
|
11030
11042
|
}
|
|
11031
11043
|
|
|
11032
|
-
_this =
|
|
11044
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11033
11045
|
|
|
11034
11046
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11035
11047
|
|
|
@@ -11150,7 +11162,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11150
11162
|
width: '100%',
|
|
11151
11163
|
height: '100%'
|
|
11152
11164
|
};
|
|
11153
|
-
return
|
|
11165
|
+
return _react["default"].createElement("div", {
|
|
11154
11166
|
style: style,
|
|
11155
11167
|
id: this.playerID
|
|
11156
11168
|
});
|
|
@@ -11203,15 +11215,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11203
11215
|
|
|
11204
11216
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
11205
11217
|
|
|
11206
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
11207
|
-
|
|
11208
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11218
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11209
11219
|
|
|
11210
|
-
function
|
|
11220
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
11211
11221
|
|
|
11212
|
-
function
|
|
11213
|
-
|
|
11214
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
11222
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
11215
11223
|
|
|
11216
11224
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11217
11225
|
|
|
@@ -11221,16 +11229,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11221
11229
|
|
|
11222
11230
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11223
11231
|
|
|
11224
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11225
|
-
|
|
11226
11232
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11227
11233
|
|
|
11228
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11229
|
-
|
|
11230
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11231
|
-
|
|
11232
11234
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11233
11235
|
|
|
11236
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11237
|
+
|
|
11234
11238
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11235
11239
|
|
|
11236
11240
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11242,12 +11246,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
11242
11246
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11243
11247
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11244
11248
|
|
|
11245
|
-
var DailyMotion =
|
|
11249
|
+
var DailyMotion =
|
|
11250
|
+
/*#__PURE__*/
|
|
11251
|
+
function (_Component) {
|
|
11246
11252
|
_inherits(DailyMotion, _Component);
|
|
11247
11253
|
|
|
11248
|
-
var _super = _createSuper(DailyMotion);
|
|
11249
|
-
|
|
11250
11254
|
function DailyMotion() {
|
|
11255
|
+
var _getPrototypeOf2;
|
|
11256
|
+
|
|
11251
11257
|
var _this;
|
|
11252
11258
|
|
|
11253
11259
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11256,7 +11262,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11256
11262
|
args[_key] = arguments[_key];
|
|
11257
11263
|
}
|
|
11258
11264
|
|
|
11259
|
-
_this =
|
|
11265
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11260
11266
|
|
|
11261
11267
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11262
11268
|
|
|
@@ -11385,9 +11391,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11385
11391
|
height: '100%',
|
|
11386
11392
|
display: display
|
|
11387
11393
|
};
|
|
11388
|
-
return
|
|
11394
|
+
return _react["default"].createElement("div", {
|
|
11389
11395
|
style: style
|
|
11390
|
-
},
|
|
11396
|
+
}, _react["default"].createElement("div", {
|
|
11391
11397
|
ref: this.ref
|
|
11392
11398
|
}));
|
|
11393
11399
|
}
|
|
@@ -11445,16 +11451,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11445
11451
|
|
|
11446
11452
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11447
11453
|
|
|
11448
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11449
|
-
|
|
11450
11454
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11451
11455
|
|
|
11452
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11453
|
-
|
|
11454
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11455
|
-
|
|
11456
11456
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11457
11457
|
|
|
11458
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11459
|
+
|
|
11458
11460
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11459
11461
|
|
|
11460
11462
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11465,12 +11467,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11465
11467
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11466
11468
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11467
11469
|
|
|
11468
|
-
var Mixcloud =
|
|
11470
|
+
var Mixcloud =
|
|
11471
|
+
/*#__PURE__*/
|
|
11472
|
+
function (_Component) {
|
|
11469
11473
|
_inherits(Mixcloud, _Component);
|
|
11470
11474
|
|
|
11471
|
-
var _super = _createSuper(Mixcloud);
|
|
11472
|
-
|
|
11473
11475
|
function Mixcloud() {
|
|
11476
|
+
var _getPrototypeOf2;
|
|
11477
|
+
|
|
11474
11478
|
var _this;
|
|
11475
11479
|
|
|
11476
11480
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11479,7 +11483,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11479
11483
|
args[_key] = arguments[_key];
|
|
11480
11484
|
}
|
|
11481
11485
|
|
|
11482
|
-
_this =
|
|
11486
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11483
11487
|
|
|
11484
11488
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11485
11489
|
|
|
@@ -11582,7 +11586,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11582
11586
|
})); // We have to give the iframe a key here to prevent a
|
|
11583
11587
|
// weird dialog appearing when loading a new track
|
|
11584
11588
|
|
|
11585
|
-
return
|
|
11589
|
+
return _react["default"].createElement("iframe", {
|
|
11586
11590
|
key: id,
|
|
11587
11591
|
ref: this.ref,
|
|
11588
11592
|
style: style,
|
|
@@ -11642,33 +11646,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11642
11646
|
|
|
11643
11647
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11644
11648
|
|
|
11645
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11646
|
-
|
|
11647
11649
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11648
11650
|
|
|
11649
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11650
|
-
|
|
11651
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11652
|
-
|
|
11653
11651
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11654
11652
|
|
|
11653
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11654
|
+
|
|
11655
11655
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11656
11656
|
|
|
11657
11657
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11658
11658
|
|
|
11659
11659
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11660
11660
|
|
|
11661
|
-
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
11662
|
-
|
|
11663
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11664
|
-
|
|
11665
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
11666
|
-
|
|
11667
11661
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11668
11662
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11669
11663
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11670
11664
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11671
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
11665
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11672
11666
|
var HLS_GLOBAL = 'Hls';
|
|
11673
11667
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11674
11668
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11677,11 +11671,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11677
11671
|
|
|
11678
11672
|
function canPlay(url) {
|
|
11679
11673
|
if (url instanceof Array) {
|
|
11680
|
-
var
|
|
11681
|
-
|
|
11674
|
+
var _iteratorNormalCompletion = true;
|
|
11675
|
+
var _didIteratorError = false;
|
|
11676
|
+
var _iteratorError = undefined;
|
|
11682
11677
|
|
|
11683
11678
|
try {
|
|
11684
|
-
for (_iterator.
|
|
11679
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
11685
11680
|
var item = _step.value;
|
|
11686
11681
|
|
|
11687
11682
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11693,9 +11688,18 @@ function canPlay(url) {
|
|
|
11693
11688
|
}
|
|
11694
11689
|
}
|
|
11695
11690
|
} catch (err) {
|
|
11696
|
-
|
|
11691
|
+
_didIteratorError = true;
|
|
11692
|
+
_iteratorError = err;
|
|
11697
11693
|
} finally {
|
|
11698
|
-
|
|
11694
|
+
try {
|
|
11695
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11696
|
+
_iterator["return"]();
|
|
11697
|
+
}
|
|
11698
|
+
} finally {
|
|
11699
|
+
if (_didIteratorError) {
|
|
11700
|
+
throw _iteratorError;
|
|
11701
|
+
}
|
|
11702
|
+
}
|
|
11699
11703
|
}
|
|
11700
11704
|
|
|
11701
11705
|
return false;
|
|
@@ -11719,12 +11723,14 @@ function canEnablePIP(url) {
|
|
|
11719
11723
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11720
11724
|
}
|
|
11721
11725
|
|
|
11722
|
-
var FilePlayer =
|
|
11726
|
+
var FilePlayer =
|
|
11727
|
+
/*#__PURE__*/
|
|
11728
|
+
function (_Component) {
|
|
11723
11729
|
_inherits(FilePlayer, _Component);
|
|
11724
11730
|
|
|
11725
|
-
var _super = _createSuper(FilePlayer);
|
|
11726
|
-
|
|
11727
11731
|
function FilePlayer() {
|
|
11732
|
+
var _getPrototypeOf2;
|
|
11733
|
+
|
|
11728
11734
|
var _this;
|
|
11729
11735
|
|
|
11730
11736
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11733,7 +11739,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11733
11739
|
_args[_key] = arguments[_key];
|
|
11734
11740
|
}
|
|
11735
11741
|
|
|
11736
|
-
_this =
|
|
11742
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
11737
11743
|
|
|
11738
11744
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11739
11745
|
var _this$props;
|
|
@@ -11820,19 +11826,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11820
11826
|
|
|
11821
11827
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11822
11828
|
if (typeof source === 'string') {
|
|
11823
|
-
return
|
|
11829
|
+
return _react["default"].createElement("source", {
|
|
11824
11830
|
key: index,
|
|
11825
11831
|
src: source
|
|
11826
11832
|
});
|
|
11827
11833
|
}
|
|
11828
11834
|
|
|
11829
|
-
return
|
|
11835
|
+
return _react["default"].createElement("source", _extends({
|
|
11830
11836
|
key: index
|
|
11831
11837
|
}, source));
|
|
11832
11838
|
});
|
|
11833
11839
|
|
|
11834
11840
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11835
|
-
return
|
|
11841
|
+
return _react["default"].createElement("track", _extends({
|
|
11836
11842
|
key: index
|
|
11837
11843
|
}, track));
|
|
11838
11844
|
});
|
|
@@ -11870,10 +11876,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11870
11876
|
key: "componentWillUnmount",
|
|
11871
11877
|
value: function componentWillUnmount() {
|
|
11872
11878
|
this.removeListeners(this.player);
|
|
11873
|
-
|
|
11874
|
-
if (this.hls) {
|
|
11875
|
-
this.hls.destroy();
|
|
11876
|
-
}
|
|
11877
11879
|
}
|
|
11878
11880
|
}, {
|
|
11879
11881
|
key: "addListeners",
|
|
@@ -12004,6 +12006,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
12004
12006
|
value: function stop() {
|
|
12005
12007
|
this.player.removeAttribute('src');
|
|
12006
12008
|
|
|
12009
|
+
if (this.hls) {
|
|
12010
|
+
this.hls.destroy();
|
|
12011
|
+
}
|
|
12012
|
+
|
|
12007
12013
|
if (this.dash) {
|
|
12008
12014
|
this.dash.reset();
|
|
12009
12015
|
}
|
|
@@ -12115,7 +12121,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
12115
12121
|
width: width === 'auto' ? width : '100%',
|
|
12116
12122
|
height: height === 'auto' ? height : '100%'
|
|
12117
12123
|
};
|
|
12118
|
-
return
|
|
12124
|
+
return _react["default"].createElement(Element, _extends({
|
|
12119
12125
|
ref: this.ref,
|
|
12120
12126
|
src: this.getSource(url),
|
|
12121
12127
|
style: style,
|
|
@@ -12205,16 +12211,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12205
12211
|
|
|
12206
12212
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12207
12213
|
|
|
12208
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12209
|
-
|
|
12210
12214
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12211
12215
|
|
|
12212
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12213
|
-
|
|
12214
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
12215
|
-
|
|
12216
12216
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12217
12217
|
|
|
12218
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12219
|
+
|
|
12218
12220
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12219
12221
|
|
|
12220
12222
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12223,12 +12225,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12223
12225
|
|
|
12224
12226
|
var ICON_SIZE = '64px';
|
|
12225
12227
|
|
|
12226
|
-
var Preview =
|
|
12228
|
+
var Preview =
|
|
12229
|
+
/*#__PURE__*/
|
|
12230
|
+
function (_Component) {
|
|
12227
12231
|
_inherits(Preview, _Component);
|
|
12228
12232
|
|
|
12229
|
-
var _super = _createSuper(Preview);
|
|
12230
|
-
|
|
12231
12233
|
function Preview() {
|
|
12234
|
+
var _getPrototypeOf2;
|
|
12235
|
+
|
|
12232
12236
|
var _this;
|
|
12233
12237
|
|
|
12234
12238
|
_classCallCheck(this, Preview);
|
|
@@ -12237,7 +12241,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12237
12241
|
args[_key] = arguments[_key];
|
|
12238
12242
|
}
|
|
12239
12243
|
|
|
12240
|
-
_this =
|
|
12244
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12241
12245
|
|
|
12242
12246
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12243
12247
|
|
|
@@ -12335,15 +12339,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12335
12339
|
}
|
|
12336
12340
|
};
|
|
12337
12341
|
|
|
12338
|
-
var defaultPlayIcon =
|
|
12342
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12339
12343
|
style: styles.shadow,
|
|
12340
12344
|
className: "react-player__shadow"
|
|
12341
|
-
},
|
|
12345
|
+
}, _react["default"].createElement("div", {
|
|
12342
12346
|
style: styles.playIcon,
|
|
12343
12347
|
className: "react-player__play-icon"
|
|
12344
12348
|
}));
|
|
12345
12349
|
|
|
12346
|
-
return
|
|
12350
|
+
return _react["default"].createElement("div", {
|
|
12347
12351
|
style: styles.preview,
|
|
12348
12352
|
className: "react-player__preview",
|
|
12349
12353
|
onClick: onClick
|
|
@@ -12380,12 +12384,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12380
12384
|
|
|
12381
12385
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12382
12386
|
|
|
12383
|
-
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
12384
|
-
|
|
12385
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12386
|
-
|
|
12387
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
12388
|
-
|
|
12389
12387
|
var PRELOAD_PLAYERS = [{
|
|
12390
12388
|
Player: YouTube_1.YouTube,
|
|
12391
12389
|
configKey: 'youtube',
|
|
@@ -12406,16 +12404,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12406
12404
|
|
|
12407
12405
|
function renderPreloadPlayers(url, controls, config) {
|
|
12408
12406
|
var players = [];
|
|
12409
|
-
|
|
12410
|
-
var
|
|
12411
|
-
|
|
12407
|
+
var _iteratorNormalCompletion = true;
|
|
12408
|
+
var _didIteratorError = false;
|
|
12409
|
+
var _iteratorError = undefined;
|
|
12412
12410
|
|
|
12413
12411
|
try {
|
|
12414
|
-
for (_iterator.
|
|
12412
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
12415
12413
|
var player = _step.value;
|
|
12416
12414
|
|
|
12417
12415
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12418
|
-
players.push(
|
|
12416
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
12419
12417
|
key: player.Player.displayName,
|
|
12420
12418
|
activePlayer: player.Player,
|
|
12421
12419
|
url: player.url,
|
|
@@ -12427,9 +12425,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12427
12425
|
}
|
|
12428
12426
|
}
|
|
12429
12427
|
} catch (err) {
|
|
12430
|
-
|
|
12428
|
+
_didIteratorError = true;
|
|
12429
|
+
_iteratorError = err;
|
|
12431
12430
|
} finally {
|
|
12432
|
-
|
|
12431
|
+
try {
|
|
12432
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12433
|
+
_iterator["return"]();
|
|
12434
|
+
}
|
|
12435
|
+
} finally {
|
|
12436
|
+
if (_didIteratorError) {
|
|
12437
|
+
throw _iteratorError;
|
|
12438
|
+
}
|
|
12439
|
+
}
|
|
12433
12440
|
}
|
|
12434
12441
|
|
|
12435
12442
|
return players;
|
|
@@ -12553,17 +12560,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12553
12560
|
|
|
12554
12561
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
12555
12562
|
|
|
12556
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
12557
|
-
|
|
12558
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12563
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12559
12564
|
|
|
12560
|
-
function
|
|
12565
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12561
12566
|
|
|
12562
|
-
function _iterableToArray(iter) { if (
|
|
12567
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
12563
12568
|
|
|
12564
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
12565
|
-
|
|
12566
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
12569
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
12567
12570
|
|
|
12568
12571
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12569
12572
|
|
|
@@ -12571,16 +12574,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12571
12574
|
|
|
12572
12575
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12573
12576
|
|
|
12574
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12575
|
-
|
|
12576
12577
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12577
12578
|
|
|
12578
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12579
|
-
|
|
12580
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
12581
|
-
|
|
12582
12579
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12583
12580
|
|
|
12581
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12582
|
+
|
|
12584
12583
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12585
12584
|
|
|
12586
12585
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12590,12 +12589,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12590
12589
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12591
12590
|
var customPlayers = [];
|
|
12592
12591
|
|
|
12593
|
-
var ReactPlayer =
|
|
12592
|
+
var ReactPlayer =
|
|
12593
|
+
/*#__PURE__*/
|
|
12594
|
+
function (_Component) {
|
|
12594
12595
|
_inherits(ReactPlayer, _Component);
|
|
12595
12596
|
|
|
12596
|
-
var _super = _createSuper(ReactPlayer);
|
|
12597
|
-
|
|
12598
12597
|
function ReactPlayer() {
|
|
12598
|
+
var _getPrototypeOf2;
|
|
12599
|
+
|
|
12599
12600
|
var _this;
|
|
12600
12601
|
|
|
12601
12602
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12604,7 +12605,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12604
12605
|
args[_key] = arguments[_key];
|
|
12605
12606
|
}
|
|
12606
12607
|
|
|
12607
|
-
_this =
|
|
12608
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12608
12609
|
|
|
12609
12610
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12610
12611
|
|
|
@@ -12715,7 +12716,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12715
12716
|
key: "renderActivePlayer",
|
|
12716
12717
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12717
12718
|
if (!url) return null;
|
|
12718
|
-
return
|
|
12719
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12719
12720
|
key: activePlayer.displayName,
|
|
12720
12721
|
ref: this.activePlayerRef,
|
|
12721
12722
|
config: this.config,
|
|
@@ -12752,14 +12753,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12752
12753
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12753
12754
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12754
12755
|
|
|
12755
|
-
var preview =
|
|
12756
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12756
12757
|
url: url,
|
|
12757
12758
|
light: light,
|
|
12758
12759
|
playIcon: playIcon,
|
|
12759
12760
|
onClick: this.handleClickPreview
|
|
12760
12761
|
});
|
|
12761
12762
|
|
|
12762
|
-
return
|
|
12763
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
12763
12764
|
ref: this.wrapperRef,
|
|
12764
12765
|
style: _objectSpread({}, style, {
|
|
12765
12766
|
width: width,
|
|
@@ -13364,7 +13365,7 @@ var Poll = function Poll(_ref) {
|
|
|
13364
13365
|
);
|
|
13365
13366
|
};
|
|
13366
13367
|
|
|
13367
|
-
var numberOfPaginations = main.
|
|
13368
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
13368
13369
|
|
|
13369
13370
|
var Quiz = function Quiz(_ref) {
|
|
13370
13371
|
var quizzes = _ref.quizzes,
|
|
@@ -13454,7 +13455,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
13454
13455
|
var renderPagination = function renderPagination() {
|
|
13455
13456
|
return React__default.createElement(
|
|
13456
13457
|
Pagination,
|
|
13457
|
-
{ className: 'p-0 m-0', size: main.
|
|
13458
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
13458
13459
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
13459
13460
|
return changePage('first');
|
|
13460
13461
|
}, disabled: currentPage === 1 }),
|
|
@@ -13618,7 +13619,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
13618
13619
|
};
|
|
13619
13620
|
|
|
13620
13621
|
var Figure = dynamic(function () {
|
|
13621
|
-
return Promise.resolve().then(function () { return require('./Figure-
|
|
13622
|
+
return Promise.resolve().then(function () { return require('./Figure-6805ef02.js'); });
|
|
13622
13623
|
}, { ssr: false });
|
|
13623
13624
|
|
|
13624
13625
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -13840,7 +13841,7 @@ var Feature = function Feature(props) {
|
|
|
13840
13841
|
};
|
|
13841
13842
|
//image width
|
|
13842
13843
|
var imageWidth = 900;
|
|
13843
|
-
if (main.
|
|
13844
|
+
if (main.main_36) {
|
|
13844
13845
|
imageWidth = 450;
|
|
13845
13846
|
}
|
|
13846
13847
|
|
|
@@ -14192,16 +14193,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14192
14193
|
_ref$className = _ref.className,
|
|
14193
14194
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14194
14195
|
|
|
14195
|
-
/*
|
|
14196
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14197
|
-
example:
|
|
14198
|
-
<RelatedTopicDropdown
|
|
14199
|
-
page='/clinical'
|
|
14200
|
-
exclude="clinical"
|
|
14201
|
-
className='mb-3'
|
|
14202
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14203
|
-
subTaxonomies={props.subTaxonomies}
|
|
14204
|
-
/>
|
|
14196
|
+
/*
|
|
14197
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14198
|
+
example:
|
|
14199
|
+
<RelatedTopicDropdown
|
|
14200
|
+
page='/clinical'
|
|
14201
|
+
exclude="clinical"
|
|
14202
|
+
className='mb-3'
|
|
14203
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14204
|
+
subTaxonomies={props.subTaxonomies}
|
|
14205
|
+
/>
|
|
14205
14206
|
*/
|
|
14206
14207
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14207
14208
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14239,25 +14240,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14239
14240
|
}
|
|
14240
14241
|
};
|
|
14241
14242
|
|
|
14242
|
-
/*
|
|
14243
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14244
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14245
|
-
|
|
14246
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14247
|
-
|
|
14248
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14249
|
-
|
|
14250
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14251
|
-
...,
|
|
14252
|
-
'ancestor': parent->parent->identifier,
|
|
14253
|
-
'parent': parent->identifier,
|
|
14254
|
-
'path': identifier
|
|
14255
|
-
},
|
|
14256
|
-
'document_group': documentGroup-> {
|
|
14257
|
-
name,
|
|
14258
|
-
'parent': parent->identifier,
|
|
14259
|
-
'path': identifier.current
|
|
14260
|
-
}
|
|
14243
|
+
/*
|
|
14244
|
+
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14245
|
+
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14246
|
+
|
|
14247
|
+
- accepts any normal html arrtibute (style, id, class)
|
|
14248
|
+
|
|
14249
|
+
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14250
|
+
|
|
14251
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14252
|
+
...,
|
|
14253
|
+
'ancestor': parent->parent->identifier,
|
|
14254
|
+
'parent': parent->identifier,
|
|
14255
|
+
'path': identifier
|
|
14256
|
+
},
|
|
14257
|
+
'document_group': documentGroup-> {
|
|
14258
|
+
name,
|
|
14259
|
+
'parent': parent->identifier,
|
|
14260
|
+
'path': identifier.current
|
|
14261
|
+
}
|
|
14261
14262
|
*/
|
|
14262
14263
|
|
|
14263
14264
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -15165,34 +15166,34 @@ var GridHero = function GridHero(props) {
|
|
|
15165
15166
|
);
|
|
15166
15167
|
};
|
|
15167
15168
|
|
|
15168
|
-
/*
|
|
15169
|
-
Sample query
|
|
15170
|
-
let references = ''
|
|
15171
|
-
if(article.taxonomyMapping.length > 0){
|
|
15172
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15173
|
-
references = references + `references('${ref._ref}') `
|
|
15174
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15175
|
-
references = references + ` && `
|
|
15176
|
-
}
|
|
15177
|
-
})
|
|
15178
|
-
}
|
|
15179
|
-
|
|
15180
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
15181
|
-
...,
|
|
15182
|
-
title,
|
|
15183
|
-
summary,
|
|
15184
|
-
thumbnail,
|
|
15185
|
-
url,
|
|
15186
|
-
published,
|
|
15187
|
-
authorMapping[]->,
|
|
15188
|
-
contentCategory->
|
|
15189
|
-
}`
|
|
15190
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15191
|
-
|
|
15192
|
-
Sample usage
|
|
15193
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15194
|
-
|
|
15195
|
-
|
|
15169
|
+
/*
|
|
15170
|
+
Sample query
|
|
15171
|
+
let references = ''
|
|
15172
|
+
if(article.taxonomyMapping.length > 0){
|
|
15173
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15174
|
+
references = references + `references('${ref._ref}') `
|
|
15175
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15176
|
+
references = references + ` && `
|
|
15177
|
+
}
|
|
15178
|
+
})
|
|
15179
|
+
}
|
|
15180
|
+
|
|
15181
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
15182
|
+
...,
|
|
15183
|
+
title,
|
|
15184
|
+
summary,
|
|
15185
|
+
thumbnail,
|
|
15186
|
+
url,
|
|
15187
|
+
published,
|
|
15188
|
+
authorMapping[]->,
|
|
15189
|
+
contentCategory->
|
|
15190
|
+
}`
|
|
15191
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15192
|
+
|
|
15193
|
+
Sample usage
|
|
15194
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15195
|
+
|
|
15196
|
+
|
|
15196
15197
|
*/
|
|
15197
15198
|
var RelatedContent = function RelatedContent(props) {
|
|
15198
15199
|
var client = props.client,
|
|
@@ -15259,21 +15260,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15259
15260
|
);
|
|
15260
15261
|
};
|
|
15261
15262
|
|
|
15262
|
-
/*
|
|
15263
|
-
Example usage - targetedonc.com/latest-conference
|
|
15264
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15265
|
-
...,
|
|
15266
|
-
title,
|
|
15267
|
-
summary,
|
|
15268
|
-
thumbnail,
|
|
15269
|
-
url,
|
|
15270
|
-
published,
|
|
15271
|
-
documentGroup->,
|
|
15272
|
-
contentCategory->,
|
|
15273
|
-
'pageNumber': ${currentPage}
|
|
15274
|
-
}`
|
|
15275
|
-
|
|
15276
|
-
const posts = await client.fetch(query, params)
|
|
15263
|
+
/*
|
|
15264
|
+
Example usage - targetedonc.com/latest-conference
|
|
15265
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15266
|
+
...,
|
|
15267
|
+
title,
|
|
15268
|
+
summary,
|
|
15269
|
+
thumbnail,
|
|
15270
|
+
url,
|
|
15271
|
+
published,
|
|
15272
|
+
documentGroup->,
|
|
15273
|
+
contentCategory->,
|
|
15274
|
+
'pageNumber': ${currentPage}
|
|
15275
|
+
}`
|
|
15276
|
+
|
|
15277
|
+
const posts = await client.fetch(query, params)
|
|
15277
15278
|
*/
|
|
15278
15279
|
|
|
15279
15280
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -16539,7 +16540,7 @@ var Article = function Article(props) {
|
|
|
16539
16540
|
React__default.createElement('br', null),
|
|
16540
16541
|
React__default.createElement('br', null)
|
|
16541
16542
|
),
|
|
16542
|
-
main.
|
|
16543
|
+
main.main_36 && props.article.Ads.map(function (ad, index) {
|
|
16543
16544
|
if (index === 0) {
|
|
16544
16545
|
return React__default.createElement(
|
|
16545
16546
|
'div',
|
|
@@ -16564,7 +16565,7 @@ var Article = function Article(props) {
|
|
|
16564
16565
|
renderIsiContent(props.article)
|
|
16565
16566
|
)
|
|
16566
16567
|
),
|
|
16567
|
-
main.
|
|
16568
|
+
main.main_36 && props.article.Ads.map(function (ad, index) {
|
|
16568
16569
|
if (index > 0) {
|
|
16569
16570
|
return React__default.createElement(
|
|
16570
16571
|
'div',
|
|
@@ -16647,6 +16648,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16647
16648
|
document_url: [url],
|
|
16648
16649
|
content_placement: content_placement_urls
|
|
16649
16650
|
};
|
|
16651
|
+
|
|
16652
|
+
if (article.issue && article.issue.path) {
|
|
16653
|
+
targeting.issue_url = [article.issue.path];
|
|
16654
|
+
if (article.issue.publication && article.issue.publication.path) {
|
|
16655
|
+
targeting.publication_url = [article.issue.publication.path];
|
|
16656
|
+
}
|
|
16657
|
+
}
|
|
16658
|
+
|
|
16650
16659
|
return targeting;
|
|
16651
16660
|
};
|
|
16652
16661
|
|
|
@@ -16663,7 +16672,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16663
16672
|
setQueueData = _useState2[1];
|
|
16664
16673
|
|
|
16665
16674
|
var refreshAD = function refreshAD(path) {
|
|
16666
|
-
if (!main.
|
|
16675
|
+
if (!main.main_36) {
|
|
16667
16676
|
var activeArticle = queueData.find(function (item) {
|
|
16668
16677
|
return item.url.current === path;
|
|
16669
16678
|
});
|
|
@@ -16773,27 +16782,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16773
16782
|
};
|
|
16774
16783
|
|
|
16775
16784
|
var KMTracker = function KMTracker(props) {
|
|
16776
|
-
|
|
16785
|
+
var id = props.id;
|
|
16777
16786
|
|
|
16778
|
-
|
|
16787
|
+
if (document && id) {
|
|
16779
16788
|
(function () {
|
|
16780
|
-
|
|
16789
|
+
var ecnJquery = document.createElement('script');
|
|
16781
16790
|
|
|
16782
|
-
|
|
16783
|
-
|
|
16784
|
-
|
|
16791
|
+
ecnJquery.type = 'text/javascript';
|
|
16792
|
+
ecnJquery.async = true;
|
|
16793
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
16785
16794
|
|
|
16786
|
-
|
|
16795
|
+
var ecnScript = document.createElement('script');
|
|
16787
16796
|
|
|
16788
|
-
|
|
16789
|
-
|
|
16790
|
-
|
|
16791
|
-
|
|
16797
|
+
ecnScript.type = 'text/javascript';
|
|
16798
|
+
ecnScript.async = true;
|
|
16799
|
+
ecnScript.id = 'km-tracker';
|
|
16800
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
16792
16801
|
|
|
16793
|
-
|
|
16794
|
-
|
|
16795
|
-
|
|
16796
|
-
|
|
16802
|
+
document.head.appendChild(ecnJquery);
|
|
16803
|
+
document.head.appendChild(ecnScript);
|
|
16804
|
+
})();
|
|
16805
|
+
}
|
|
16797
16806
|
};
|
|
16798
16807
|
|
|
16799
16808
|
var returnFormField = function returnFormField(_ref) {
|
|
@@ -18820,6 +18829,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
18820
18829
|
if (value != null) {
|
|
18821
18830
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
18822
18831
|
var desc = $gOPD(value, parts[i]);
|
|
18832
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
18833
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
18834
|
+
}
|
|
18823
18835
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
18824
18836
|
} else {
|
|
18825
18837
|
value = value[parts[i]];
|
|
@@ -18852,7 +18864,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
18852
18864
|
return intrinsic;
|
|
18853
18865
|
};
|
|
18854
18866
|
|
|
18855
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
18867
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
18868
|
+
|
|
18869
|
+
if ($defineProperty) {
|
|
18870
|
+
try {
|
|
18871
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
18872
|
+
} catch (e) {
|
|
18873
|
+
// IE 8 has a broken defineProperty
|
|
18874
|
+
$defineProperty = null;
|
|
18875
|
+
}
|
|
18876
|
+
}
|
|
18856
18877
|
|
|
18857
18878
|
|
|
18858
18879
|
|
|
@@ -18995,42 +19016,28 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
18995
19016
|
return obj;
|
|
18996
19017
|
};
|
|
18997
19018
|
|
|
18998
|
-
|
|
18999
|
-
|
|
19000
|
-
|
|
19001
|
-
|
|
19002
|
-
|
|
19003
|
-
|
|
19004
|
-
|
|
19005
|
-
assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
|
|
19006
|
-
|
|
19007
|
-
if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
|
|
19008
|
-
return false;
|
|
19019
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
19020
|
+
if ($gOPD$1) {
|
|
19021
|
+
try {
|
|
19022
|
+
$gOPD$1([], 'length');
|
|
19023
|
+
} catch (e) {
|
|
19024
|
+
// IE 8 has a broken gOPD
|
|
19025
|
+
$gOPD$1 = null;
|
|
19009
19026
|
}
|
|
19027
|
+
}
|
|
19010
19028
|
|
|
19011
|
-
|
|
19012
|
-
};
|
|
19013
|
-
|
|
19014
|
-
var isPrimitive$1 = function isPrimitive(value) {
|
|
19015
|
-
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
19016
|
-
};
|
|
19017
|
-
|
|
19018
|
-
var $Object = GetIntrinsic('%Object%');
|
|
19019
|
-
|
|
19029
|
+
var getOwnPropertyDescriptor = $gOPD$1;
|
|
19020
19030
|
|
|
19031
|
+
var $Array = GetIntrinsic('%Array%');
|
|
19021
19032
|
|
|
19022
|
-
|
|
19023
|
-
var $
|
|
19033
|
+
// eslint-disable-next-line global-require
|
|
19034
|
+
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
19024
19035
|
|
|
19025
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-
|
|
19036
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
19026
19037
|
|
|
19027
|
-
var
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
}
|
|
19031
|
-
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
19032
|
-
return true;
|
|
19033
|
-
};
|
|
19038
|
+
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
19039
|
+
return toStr$4(argument) === '[object Array]';
|
|
19040
|
+
};
|
|
19034
19041
|
|
|
19035
19042
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
19036
19043
|
|
|
@@ -19038,60 +19045,66 @@ var IsPropertyKey = function IsPropertyKey(argument) {
|
|
|
19038
19045
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
19039
19046
|
};
|
|
19040
19047
|
|
|
19041
|
-
var
|
|
19042
|
-
|
|
19043
|
-
};
|
|
19048
|
+
var regexExec = RegExp.prototype.exec;
|
|
19049
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
19044
19050
|
|
|
19045
|
-
|
|
19051
|
+
var tryRegexExecCall = function tryRegexExec(value) {
|
|
19052
|
+
try {
|
|
19053
|
+
var lastIndex = value.lastIndex;
|
|
19054
|
+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
19046
19055
|
|
|
19047
|
-
|
|
19048
|
-
if (x === y) { // 0 === -0, but they are not identical.
|
|
19049
|
-
if (x === 0) { return 1 / x === 1 / y; }
|
|
19056
|
+
regexExec.call(value);
|
|
19050
19057
|
return true;
|
|
19058
|
+
} catch (e) {
|
|
19059
|
+
return false;
|
|
19060
|
+
} finally {
|
|
19061
|
+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
19051
19062
|
}
|
|
19052
|
-
return _isNaN(x) && _isNaN(y);
|
|
19053
19063
|
};
|
|
19064
|
+
var toStr$5 = Object.prototype.toString;
|
|
19065
|
+
var regexClass = '[object RegExp]';
|
|
19066
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19054
19067
|
|
|
19055
|
-
var
|
|
19056
|
-
|
|
19068
|
+
var isRegex = function isRegex(value) {
|
|
19069
|
+
if (!value || typeof value !== 'object') {
|
|
19070
|
+
return false;
|
|
19071
|
+
}
|
|
19072
|
+
if (!hasToStringTag) {
|
|
19073
|
+
return toStr$5.call(value) === regexClass;
|
|
19074
|
+
}
|
|
19057
19075
|
|
|
19076
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
19077
|
+
var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
|
|
19078
|
+
if (!hasLastIndexDataProperty) {
|
|
19079
|
+
return false;
|
|
19080
|
+
}
|
|
19058
19081
|
|
|
19082
|
+
return tryRegexExecCall(value);
|
|
19083
|
+
};
|
|
19059
19084
|
|
|
19085
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
19060
19086
|
|
|
19087
|
+
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
19061
19088
|
|
|
19089
|
+
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
19062
19090
|
|
|
19063
19091
|
|
|
19064
19092
|
|
|
19065
19093
|
|
|
19066
19094
|
|
|
19067
|
-
// https://
|
|
19095
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
19068
19096
|
|
|
19069
|
-
var
|
|
19070
|
-
if (
|
|
19071
|
-
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
19072
|
-
}
|
|
19073
|
-
if (!IsPropertyKey(P)) {
|
|
19074
|
-
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
19075
|
-
}
|
|
19076
|
-
var oldDesc = $gOPD$1(O, P);
|
|
19077
|
-
var extensible = oldDesc || IsExtensible(O);
|
|
19078
|
-
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
19079
|
-
if (immutable || !extensible) {
|
|
19097
|
+
var IsRegExp = function IsRegExp(argument) {
|
|
19098
|
+
if (!argument || typeof argument !== 'object') {
|
|
19080
19099
|
return false;
|
|
19081
19100
|
}
|
|
19082
|
-
|
|
19083
|
-
|
|
19084
|
-
|
|
19085
|
-
|
|
19086
|
-
O,
|
|
19087
|
-
P,
|
|
19088
|
-
{
|
|
19089
|
-
'[[Configurable]]': true,
|
|
19090
|
-
'[[Enumerable]]': true,
|
|
19091
|
-
'[[Value]]': V,
|
|
19092
|
-
'[[Writable]]': true
|
|
19101
|
+
if ($match) {
|
|
19102
|
+
var isRegExp = argument[$match];
|
|
19103
|
+
if (typeof isRegExp !== 'undefined') {
|
|
19104
|
+
return ToBoolean(isRegExp);
|
|
19093
19105
|
}
|
|
19094
|
-
|
|
19106
|
+
}
|
|
19107
|
+
return isRegex(argument);
|
|
19095
19108
|
};
|
|
19096
19109
|
|
|
19097
19110
|
var fnToStr = Function.prototype.toString;
|
|
@@ -19115,18 +19128,18 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
19115
19128
|
return false;
|
|
19116
19129
|
}
|
|
19117
19130
|
};
|
|
19118
|
-
var toStr$
|
|
19131
|
+
var toStr$6 = Object.prototype.toString;
|
|
19119
19132
|
var fnClass = '[object Function]';
|
|
19120
19133
|
var genClass = '[object GeneratorFunction]';
|
|
19121
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19134
|
+
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19122
19135
|
|
|
19123
19136
|
var isCallable = function isCallable(value) {
|
|
19124
19137
|
if (!value) { return false; }
|
|
19125
19138
|
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
19126
19139
|
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
19127
|
-
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
19140
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
19128
19141
|
if (isES6ClassFn(value)) { return false; }
|
|
19129
|
-
var strClass = toStr$
|
|
19142
|
+
var strClass = toStr$6.call(value);
|
|
19130
19143
|
return strClass === fnClass || strClass === genClass;
|
|
19131
19144
|
};
|
|
19132
19145
|
|
|
@@ -19134,32 +19147,212 @@ var isCallable = function isCallable(value) {
|
|
|
19134
19147
|
|
|
19135
19148
|
var IsCallable = isCallable;
|
|
19136
19149
|
|
|
19137
|
-
var $TypeError$
|
|
19150
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
19138
19151
|
|
|
19139
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
19140
19152
|
|
|
19141
|
-
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
19142
|
-
if (value == null) {
|
|
19143
|
-
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
19144
|
-
}
|
|
19145
|
-
return value;
|
|
19146
|
-
};
|
|
19147
19153
|
|
|
19148
|
-
var RequireObjectCoercible = CheckObjectCoercible;
|
|
19149
19154
|
|
|
19150
|
-
var $Object$1 = GetIntrinsic('%Object%');
|
|
19151
19155
|
|
|
19156
|
+
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
19152
19157
|
|
|
19158
|
+
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
19159
|
+
if (Type$1(Obj) !== 'Object') {
|
|
19160
|
+
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
19161
|
+
}
|
|
19153
19162
|
|
|
19154
|
-
|
|
19163
|
+
var desc = {};
|
|
19164
|
+
if (src$1(Obj, 'enumerable')) {
|
|
19165
|
+
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
19166
|
+
}
|
|
19167
|
+
if (src$1(Obj, 'configurable')) {
|
|
19168
|
+
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
19169
|
+
}
|
|
19170
|
+
if (src$1(Obj, 'value')) {
|
|
19171
|
+
desc['[[Value]]'] = Obj.value;
|
|
19172
|
+
}
|
|
19173
|
+
if (src$1(Obj, 'writable')) {
|
|
19174
|
+
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
19175
|
+
}
|
|
19176
|
+
if (src$1(Obj, 'get')) {
|
|
19177
|
+
var getter = Obj.get;
|
|
19178
|
+
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
19179
|
+
throw new TypeError('getter must be a function');
|
|
19180
|
+
}
|
|
19181
|
+
desc['[[Get]]'] = getter;
|
|
19182
|
+
}
|
|
19183
|
+
if (src$1(Obj, 'set')) {
|
|
19184
|
+
var setter = Obj.set;
|
|
19185
|
+
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
19186
|
+
throw new $TypeError$2('setter must be a function');
|
|
19187
|
+
}
|
|
19188
|
+
desc['[[Set]]'] = setter;
|
|
19189
|
+
}
|
|
19155
19190
|
|
|
19156
|
-
|
|
19157
|
-
|
|
19158
|
-
|
|
19191
|
+
if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
|
|
19192
|
+
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
19193
|
+
}
|
|
19194
|
+
return desc;
|
|
19159
19195
|
};
|
|
19160
19196
|
|
|
19161
|
-
var $
|
|
19162
|
-
|
|
19197
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
19198
|
+
|
|
19199
|
+
|
|
19200
|
+
|
|
19201
|
+
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
19202
|
+
|
|
19203
|
+
|
|
19204
|
+
|
|
19205
|
+
|
|
19206
|
+
|
|
19207
|
+
|
|
19208
|
+
|
|
19209
|
+
|
|
19210
|
+
|
|
19211
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
19212
|
+
|
|
19213
|
+
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
19214
|
+
if (Type$1(O) !== 'Object') {
|
|
19215
|
+
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
19216
|
+
}
|
|
19217
|
+
if (!IsPropertyKey(P)) {
|
|
19218
|
+
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
19219
|
+
}
|
|
19220
|
+
if (!src$1(O, P)) {
|
|
19221
|
+
return void 0;
|
|
19222
|
+
}
|
|
19223
|
+
if (!getOwnPropertyDescriptor) {
|
|
19224
|
+
// ES3 / IE 8 fallback
|
|
19225
|
+
var arrayLength = IsArray(O) && P === 'length';
|
|
19226
|
+
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
19227
|
+
return {
|
|
19228
|
+
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
19229
|
+
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
19230
|
+
'[[Value]]': O[P],
|
|
19231
|
+
'[[Writable]]': true
|
|
19232
|
+
};
|
|
19233
|
+
}
|
|
19234
|
+
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
19235
|
+
};
|
|
19236
|
+
|
|
19237
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
19238
|
+
|
|
19239
|
+
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
19240
|
+
if (typeof Desc === 'undefined') {
|
|
19241
|
+
return false;
|
|
19242
|
+
}
|
|
19243
|
+
|
|
19244
|
+
assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
|
|
19245
|
+
|
|
19246
|
+
if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
|
|
19247
|
+
return false;
|
|
19248
|
+
}
|
|
19249
|
+
|
|
19250
|
+
return true;
|
|
19251
|
+
};
|
|
19252
|
+
|
|
19253
|
+
var isPrimitive$1 = function isPrimitive(value) {
|
|
19254
|
+
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
19255
|
+
};
|
|
19256
|
+
|
|
19257
|
+
var $Object = GetIntrinsic('%Object%');
|
|
19258
|
+
|
|
19259
|
+
|
|
19260
|
+
|
|
19261
|
+
var $preventExtensions = $Object.preventExtensions;
|
|
19262
|
+
var $isExtensible = $Object.isExtensible;
|
|
19263
|
+
|
|
19264
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
19265
|
+
|
|
19266
|
+
var IsExtensible = $preventExtensions
|
|
19267
|
+
? function IsExtensible(obj) {
|
|
19268
|
+
return !isPrimitive$1(obj) && $isExtensible(obj);
|
|
19269
|
+
}
|
|
19270
|
+
: function IsExtensible(obj) {
|
|
19271
|
+
return !isPrimitive$1(obj);
|
|
19272
|
+
};
|
|
19273
|
+
|
|
19274
|
+
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
19275
|
+
return a !== a;
|
|
19276
|
+
};
|
|
19277
|
+
|
|
19278
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
19279
|
+
|
|
19280
|
+
var SameValue = function SameValue(x, y) {
|
|
19281
|
+
if (x === y) { // 0 === -0, but they are not identical.
|
|
19282
|
+
if (x === 0) { return 1 / x === 1 / y; }
|
|
19283
|
+
return true;
|
|
19284
|
+
}
|
|
19285
|
+
return _isNaN(x) && _isNaN(y);
|
|
19286
|
+
};
|
|
19287
|
+
|
|
19288
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
19289
|
+
|
|
19290
|
+
|
|
19291
|
+
|
|
19292
|
+
|
|
19293
|
+
|
|
19294
|
+
|
|
19295
|
+
|
|
19296
|
+
|
|
19297
|
+
|
|
19298
|
+
|
|
19299
|
+
|
|
19300
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
19301
|
+
|
|
19302
|
+
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
19303
|
+
if (Type$1(O) !== 'Object') {
|
|
19304
|
+
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
19305
|
+
}
|
|
19306
|
+
if (!IsPropertyKey(P)) {
|
|
19307
|
+
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
19308
|
+
}
|
|
19309
|
+
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
19310
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
19311
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
19312
|
+
if (immutable || !extensible) {
|
|
19313
|
+
return false;
|
|
19314
|
+
}
|
|
19315
|
+
return DefineOwnProperty(
|
|
19316
|
+
IsDataDescriptor,
|
|
19317
|
+
SameValue,
|
|
19318
|
+
FromPropertyDescriptor,
|
|
19319
|
+
O,
|
|
19320
|
+
P,
|
|
19321
|
+
{
|
|
19322
|
+
'[[Configurable]]': true,
|
|
19323
|
+
'[[Enumerable]]': true,
|
|
19324
|
+
'[[Value]]': V,
|
|
19325
|
+
'[[Writable]]': true
|
|
19326
|
+
}
|
|
19327
|
+
);
|
|
19328
|
+
};
|
|
19329
|
+
|
|
19330
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
19331
|
+
|
|
19332
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
19333
|
+
|
|
19334
|
+
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
19335
|
+
if (value == null) {
|
|
19336
|
+
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
19337
|
+
}
|
|
19338
|
+
return value;
|
|
19339
|
+
};
|
|
19340
|
+
|
|
19341
|
+
var RequireObjectCoercible = CheckObjectCoercible;
|
|
19342
|
+
|
|
19343
|
+
var $Object$1 = GetIntrinsic('%Object%');
|
|
19344
|
+
|
|
19345
|
+
|
|
19346
|
+
|
|
19347
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
19348
|
+
|
|
19349
|
+
var ToObject = function ToObject(value) {
|
|
19350
|
+
RequireObjectCoercible(value);
|
|
19351
|
+
return $Object$1(value);
|
|
19352
|
+
};
|
|
19353
|
+
|
|
19354
|
+
var $gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
19355
|
+
var $getOwnNames = Object.getOwnPropertyNames;
|
|
19163
19356
|
var $getSymbols = Object.getOwnPropertySymbols;
|
|
19164
19357
|
var $concat = callBound('Array.prototype.concat');
|
|
19165
19358
|
var $reduce = callBound('Array.prototype.reduce');
|
|
@@ -19211,241 +19404,6 @@ defineProperties_1(implementation$2, {
|
|
|
19211
19404
|
|
|
19212
19405
|
var object_getownpropertydescriptors = implementation$2;
|
|
19213
19406
|
|
|
19214
|
-
/* globals
|
|
19215
|
-
Atomics,
|
|
19216
|
-
SharedArrayBuffer,
|
|
19217
|
-
*/
|
|
19218
|
-
|
|
19219
|
-
var undefined$2;
|
|
19220
|
-
|
|
19221
|
-
var $TypeError$4 = TypeError;
|
|
19222
|
-
|
|
19223
|
-
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
19224
|
-
if ($gOPD$3) {
|
|
19225
|
-
try {
|
|
19226
|
-
$gOPD$3({}, '');
|
|
19227
|
-
} catch (e) {
|
|
19228
|
-
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
19229
|
-
}
|
|
19230
|
-
}
|
|
19231
|
-
|
|
19232
|
-
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
19233
|
-
var ThrowTypeError$1 = $gOPD$3
|
|
19234
|
-
? (function () {
|
|
19235
|
-
try {
|
|
19236
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
19237
|
-
arguments.callee; // IE 8 does not throw here
|
|
19238
|
-
return throwTypeError$1;
|
|
19239
|
-
} catch (calleeThrows) {
|
|
19240
|
-
try {
|
|
19241
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
19242
|
-
return $gOPD$3(arguments, 'callee').get;
|
|
19243
|
-
} catch (gOPDthrows) {
|
|
19244
|
-
return throwTypeError$1;
|
|
19245
|
-
}
|
|
19246
|
-
}
|
|
19247
|
-
}())
|
|
19248
|
-
: throwTypeError$1;
|
|
19249
|
-
|
|
19250
|
-
var hasSymbols$3 = hasSymbols$1();
|
|
19251
|
-
|
|
19252
|
-
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
19253
|
-
var generatorFunction$1 = undefined$2;
|
|
19254
|
-
var asyncFunction$1 = undefined$2;
|
|
19255
|
-
var asyncGenFunction$1 = undefined$2;
|
|
19256
|
-
|
|
19257
|
-
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
19258
|
-
|
|
19259
|
-
var INTRINSICS$1 = {
|
|
19260
|
-
'%Array%': Array,
|
|
19261
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
19262
|
-
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
19263
|
-
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
19264
|
-
'%ArrayPrototype%': Array.prototype,
|
|
19265
|
-
'%ArrayProto_entries%': Array.prototype.entries,
|
|
19266
|
-
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
19267
|
-
'%ArrayProto_keys%': Array.prototype.keys,
|
|
19268
|
-
'%ArrayProto_values%': Array.prototype.values,
|
|
19269
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
19270
|
-
'%AsyncFunction%': asyncFunction$1,
|
|
19271
|
-
'%AsyncFunctionPrototype%': undefined$2,
|
|
19272
|
-
'%AsyncGenerator%': undefined$2,
|
|
19273
|
-
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
19274
|
-
'%AsyncGeneratorPrototype%': undefined$2,
|
|
19275
|
-
'%AsyncIteratorPrototype%': undefined$2,
|
|
19276
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
19277
|
-
'%Boolean%': Boolean,
|
|
19278
|
-
'%BooleanPrototype%': Boolean.prototype,
|
|
19279
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
19280
|
-
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
19281
|
-
'%Date%': Date,
|
|
19282
|
-
'%DatePrototype%': Date.prototype,
|
|
19283
|
-
'%decodeURI%': decodeURI,
|
|
19284
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
19285
|
-
'%encodeURI%': encodeURI,
|
|
19286
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
19287
|
-
'%Error%': Error,
|
|
19288
|
-
'%ErrorPrototype%': Error.prototype,
|
|
19289
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
19290
|
-
'%EvalError%': EvalError,
|
|
19291
|
-
'%EvalErrorPrototype%': EvalError.prototype,
|
|
19292
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
19293
|
-
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
19294
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
19295
|
-
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
19296
|
-
'%Function%': Function,
|
|
19297
|
-
'%FunctionPrototype%': Function.prototype,
|
|
19298
|
-
'%Generator%': undefined$2,
|
|
19299
|
-
'%GeneratorFunction%': generatorFunction$1,
|
|
19300
|
-
'%GeneratorPrototype%': undefined$2,
|
|
19301
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
19302
|
-
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
19303
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
19304
|
-
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
19305
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
19306
|
-
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
19307
|
-
'%isFinite%': isFinite,
|
|
19308
|
-
'%isNaN%': isNaN,
|
|
19309
|
-
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
19310
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
19311
|
-
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
19312
|
-
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
19313
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
19314
|
-
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
19315
|
-
'%Math%': Math,
|
|
19316
|
-
'%Number%': Number,
|
|
19317
|
-
'%NumberPrototype%': Number.prototype,
|
|
19318
|
-
'%Object%': Object,
|
|
19319
|
-
'%ObjectPrototype%': Object.prototype,
|
|
19320
|
-
'%ObjProto_toString%': Object.prototype.toString,
|
|
19321
|
-
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
19322
|
-
'%parseFloat%': parseFloat,
|
|
19323
|
-
'%parseInt%': parseInt,
|
|
19324
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
19325
|
-
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
19326
|
-
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
19327
|
-
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
19328
|
-
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
19329
|
-
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
19330
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
19331
|
-
'%RangeError%': RangeError,
|
|
19332
|
-
'%RangeErrorPrototype%': RangeError.prototype,
|
|
19333
|
-
'%ReferenceError%': ReferenceError,
|
|
19334
|
-
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
19335
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
19336
|
-
'%RegExp%': RegExp,
|
|
19337
|
-
'%RegExpPrototype%': RegExp.prototype,
|
|
19338
|
-
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
19339
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
19340
|
-
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
19341
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
19342
|
-
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
19343
|
-
'%String%': String,
|
|
19344
|
-
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
19345
|
-
'%StringPrototype%': String.prototype,
|
|
19346
|
-
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
19347
|
-
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
19348
|
-
'%SyntaxError%': SyntaxError,
|
|
19349
|
-
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
19350
|
-
'%ThrowTypeError%': ThrowTypeError$1,
|
|
19351
|
-
'%TypedArray%': TypedArray$1,
|
|
19352
|
-
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
19353
|
-
'%TypeError%': $TypeError$4,
|
|
19354
|
-
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
19355
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
19356
|
-
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
19357
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
19358
|
-
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
19359
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
19360
|
-
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
19361
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
19362
|
-
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
19363
|
-
'%URIError%': URIError,
|
|
19364
|
-
'%URIErrorPrototype%': URIError.prototype,
|
|
19365
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
19366
|
-
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
19367
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
19368
|
-
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
19369
|
-
};
|
|
19370
|
-
|
|
19371
|
-
|
|
19372
|
-
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
19373
|
-
|
|
19374
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
19375
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
19376
|
-
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
19377
|
-
var stringToPath$1 = function stringToPath(string) {
|
|
19378
|
-
var result = [];
|
|
19379
|
-
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
19380
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
19381
|
-
});
|
|
19382
|
-
return result;
|
|
19383
|
-
};
|
|
19384
|
-
/* end adaptation */
|
|
19385
|
-
|
|
19386
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
19387
|
-
if (!(name in INTRINSICS$1)) {
|
|
19388
|
-
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
19389
|
-
}
|
|
19390
|
-
|
|
19391
|
-
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
19392
|
-
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
19393
|
-
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
19394
|
-
}
|
|
19395
|
-
|
|
19396
|
-
return INTRINSICS$1[name];
|
|
19397
|
-
};
|
|
19398
|
-
|
|
19399
|
-
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
19400
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
19401
|
-
throw new TypeError('intrinsic name must be a non-empty string');
|
|
19402
|
-
}
|
|
19403
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
19404
|
-
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
19405
|
-
}
|
|
19406
|
-
|
|
19407
|
-
var parts = stringToPath$1(name);
|
|
19408
|
-
|
|
19409
|
-
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
19410
|
-
for (var i = 1; i < parts.length; i += 1) {
|
|
19411
|
-
if (value != null) {
|
|
19412
|
-
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
19413
|
-
var desc = $gOPD$3(value, parts[i]);
|
|
19414
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
19415
|
-
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
19416
|
-
}
|
|
19417
|
-
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
19418
|
-
} else {
|
|
19419
|
-
value = value[parts[i]];
|
|
19420
|
-
}
|
|
19421
|
-
}
|
|
19422
|
-
}
|
|
19423
|
-
return value;
|
|
19424
|
-
};
|
|
19425
|
-
|
|
19426
|
-
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
19427
|
-
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
19428
|
-
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
19429
|
-
|
|
19430
|
-
var callBind$1 = function callBind() {
|
|
19431
|
-
return $reflectApply(functionBind, $call$1, arguments);
|
|
19432
|
-
};
|
|
19433
|
-
|
|
19434
|
-
var apply$1 = function applyBind() {
|
|
19435
|
-
return $reflectApply(functionBind, $apply$1, arguments);
|
|
19436
|
-
};
|
|
19437
|
-
callBind$1.apply = apply$1;
|
|
19438
|
-
|
|
19439
|
-
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
19440
|
-
|
|
19441
|
-
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
19442
|
-
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
19443
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
19444
|
-
return callBind$1(intrinsic);
|
|
19445
|
-
}
|
|
19446
|
-
return intrinsic;
|
|
19447
|
-
};
|
|
19448
|
-
|
|
19449
19407
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
19450
19408
|
&& typeof Object.defineProperties === 'function';
|
|
19451
19409
|
|
|
@@ -19463,14 +19421,14 @@ if (typeof Promise !== 'function') {
|
|
|
19463
19421
|
|
|
19464
19422
|
|
|
19465
19423
|
|
|
19466
|
-
var $slice = callBound
|
|
19467
|
-
var $concat$1 = callBound
|
|
19468
|
-
var $forEach = callBound
|
|
19424
|
+
var $slice = callBound('Array.prototype.slice');
|
|
19425
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
19426
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
19469
19427
|
|
|
19470
|
-
var hasSymbols$
|
|
19428
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
19471
19429
|
|
|
19472
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
19473
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
19430
|
+
var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
|
|
19431
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
|
|
19474
19432
|
|
|
19475
19433
|
var implementation$3 = function promisify(orig) {
|
|
19476
19434
|
if (typeof orig !== 'function') {
|
|
@@ -19480,7 +19438,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
19480
19438
|
throw error;
|
|
19481
19439
|
}
|
|
19482
19440
|
|
|
19483
|
-
if (hasSymbols$
|
|
19441
|
+
if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
|
|
19484
19442
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
19485
19443
|
if (typeof customFunction !== 'function') {
|
|
19486
19444
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -19609,324 +19567,6 @@ function connect() {
|
|
|
19609
19567
|
|
|
19610
19568
|
var db = connect;
|
|
19611
19569
|
|
|
19612
|
-
var crypt = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
19613
|
-
(function() {
|
|
19614
|
-
var base64map
|
|
19615
|
-
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
19616
|
-
|
|
19617
|
-
crypt = {
|
|
19618
|
-
// Bit-wise rotation left
|
|
19619
|
-
rotl: function(n, b) {
|
|
19620
|
-
return (n << b) | (n >>> (32 - b));
|
|
19621
|
-
},
|
|
19622
|
-
|
|
19623
|
-
// Bit-wise rotation right
|
|
19624
|
-
rotr: function(n, b) {
|
|
19625
|
-
return (n << (32 - b)) | (n >>> b);
|
|
19626
|
-
},
|
|
19627
|
-
|
|
19628
|
-
// Swap big-endian to little-endian and vice versa
|
|
19629
|
-
endian: function(n) {
|
|
19630
|
-
// If number given, swap endian
|
|
19631
|
-
if (n.constructor == Number) {
|
|
19632
|
-
return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;
|
|
19633
|
-
}
|
|
19634
|
-
|
|
19635
|
-
// Else, assume array and swap all items
|
|
19636
|
-
for (var i = 0; i < n.length; i++)
|
|
19637
|
-
n[i] = crypt.endian(n[i]);
|
|
19638
|
-
return n;
|
|
19639
|
-
},
|
|
19640
|
-
|
|
19641
|
-
// Generate an array of any length of random bytes
|
|
19642
|
-
randomBytes: function(n) {
|
|
19643
|
-
for (var bytes = []; n > 0; n--)
|
|
19644
|
-
bytes.push(Math.floor(Math.random() * 256));
|
|
19645
|
-
return bytes;
|
|
19646
|
-
},
|
|
19647
|
-
|
|
19648
|
-
// Convert a byte array to big-endian 32-bit words
|
|
19649
|
-
bytesToWords: function(bytes) {
|
|
19650
|
-
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
|
|
19651
|
-
words[b >>> 5] |= bytes[i] << (24 - b % 32);
|
|
19652
|
-
return words;
|
|
19653
|
-
},
|
|
19654
|
-
|
|
19655
|
-
// Convert big-endian 32-bit words to a byte array
|
|
19656
|
-
wordsToBytes: function(words) {
|
|
19657
|
-
for (var bytes = [], b = 0; b < words.length * 32; b += 8)
|
|
19658
|
-
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
|
|
19659
|
-
return bytes;
|
|
19660
|
-
},
|
|
19661
|
-
|
|
19662
|
-
// Convert a byte array to a hex string
|
|
19663
|
-
bytesToHex: function(bytes) {
|
|
19664
|
-
for (var hex = [], i = 0; i < bytes.length; i++) {
|
|
19665
|
-
hex.push((bytes[i] >>> 4).toString(16));
|
|
19666
|
-
hex.push((bytes[i] & 0xF).toString(16));
|
|
19667
|
-
}
|
|
19668
|
-
return hex.join('');
|
|
19669
|
-
},
|
|
19670
|
-
|
|
19671
|
-
// Convert a hex string to a byte array
|
|
19672
|
-
hexToBytes: function(hex) {
|
|
19673
|
-
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
|
19674
|
-
bytes.push(parseInt(hex.substr(c, 2), 16));
|
|
19675
|
-
return bytes;
|
|
19676
|
-
},
|
|
19677
|
-
|
|
19678
|
-
// Convert a byte array to a base-64 string
|
|
19679
|
-
bytesToBase64: function(bytes) {
|
|
19680
|
-
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
|
19681
|
-
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
|
|
19682
|
-
for (var j = 0; j < 4; j++)
|
|
19683
|
-
if (i * 8 + j * 6 <= bytes.length * 8)
|
|
19684
|
-
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
|
|
19685
|
-
else
|
|
19686
|
-
base64.push('=');
|
|
19687
|
-
}
|
|
19688
|
-
return base64.join('');
|
|
19689
|
-
},
|
|
19690
|
-
|
|
19691
|
-
// Convert a base-64 string to a byte array
|
|
19692
|
-
base64ToBytes: function(base64) {
|
|
19693
|
-
// Remove non-base-64 characters
|
|
19694
|
-
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
|
19695
|
-
|
|
19696
|
-
for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
|
|
19697
|
-
imod4 = ++i % 4) {
|
|
19698
|
-
if (imod4 == 0) continue;
|
|
19699
|
-
bytes.push(((base64map.indexOf(base64.charAt(i - 1))
|
|
19700
|
-
& (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
|
|
19701
|
-
| (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
|
|
19702
|
-
}
|
|
19703
|
-
return bytes;
|
|
19704
|
-
}
|
|
19705
|
-
};
|
|
19706
|
-
|
|
19707
|
-
module.exports = crypt;
|
|
19708
|
-
})();
|
|
19709
|
-
});
|
|
19710
|
-
|
|
19711
|
-
var charenc = {
|
|
19712
|
-
// UTF-8 encoding
|
|
19713
|
-
utf8: {
|
|
19714
|
-
// Convert a string to a byte array
|
|
19715
|
-
stringToBytes: function(str) {
|
|
19716
|
-
return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
|
|
19717
|
-
},
|
|
19718
|
-
|
|
19719
|
-
// Convert a byte array to a string
|
|
19720
|
-
bytesToString: function(bytes) {
|
|
19721
|
-
return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
|
|
19722
|
-
}
|
|
19723
|
-
},
|
|
19724
|
-
|
|
19725
|
-
// Binary encoding
|
|
19726
|
-
bin: {
|
|
19727
|
-
// Convert a string to a byte array
|
|
19728
|
-
stringToBytes: function(str) {
|
|
19729
|
-
for (var bytes = [], i = 0; i < str.length; i++)
|
|
19730
|
-
bytes.push(str.charCodeAt(i) & 0xFF);
|
|
19731
|
-
return bytes;
|
|
19732
|
-
},
|
|
19733
|
-
|
|
19734
|
-
// Convert a byte array to a string
|
|
19735
|
-
bytesToString: function(bytes) {
|
|
19736
|
-
for (var str = [], i = 0; i < bytes.length; i++)
|
|
19737
|
-
str.push(String.fromCharCode(bytes[i]));
|
|
19738
|
-
return str.join('');
|
|
19739
|
-
}
|
|
19740
|
-
}
|
|
19741
|
-
};
|
|
19742
|
-
|
|
19743
|
-
var charenc_1 = charenc;
|
|
19744
|
-
|
|
19745
|
-
/*!
|
|
19746
|
-
* Determine if an object is a Buffer
|
|
19747
|
-
*
|
|
19748
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
19749
|
-
* @license MIT
|
|
19750
|
-
*/
|
|
19751
|
-
|
|
19752
|
-
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
19753
|
-
// Object.prototype.constructor. Remove this eventually
|
|
19754
|
-
var isBuffer_1$1 = function (obj) {
|
|
19755
|
-
return obj != null && (isBuffer$1(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
|
19756
|
-
};
|
|
19757
|
-
|
|
19758
|
-
function isBuffer$1 (obj) {
|
|
19759
|
-
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
19760
|
-
}
|
|
19761
|
-
|
|
19762
|
-
// For Node v0.10 support. Remove this eventually.
|
|
19763
|
-
function isSlowBuffer (obj) {
|
|
19764
|
-
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer$1(obj.slice(0, 0))
|
|
19765
|
-
}
|
|
19766
|
-
|
|
19767
|
-
var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
19768
|
-
(function(){
|
|
19769
|
-
var crypt$1 = crypt,
|
|
19770
|
-
utf8 = charenc_1.utf8,
|
|
19771
|
-
isBuffer = isBuffer_1$1,
|
|
19772
|
-
bin = charenc_1.bin,
|
|
19773
|
-
|
|
19774
|
-
// The core
|
|
19775
|
-
md5 = function (message, options) {
|
|
19776
|
-
// Convert to byte array
|
|
19777
|
-
if (message.constructor == String)
|
|
19778
|
-
if (options && options.encoding === 'binary')
|
|
19779
|
-
message = bin.stringToBytes(message);
|
|
19780
|
-
else
|
|
19781
|
-
message = utf8.stringToBytes(message);
|
|
19782
|
-
else if (isBuffer(message))
|
|
19783
|
-
message = Array.prototype.slice.call(message, 0);
|
|
19784
|
-
else if (!Array.isArray(message))
|
|
19785
|
-
message = message.toString();
|
|
19786
|
-
// else, assume byte array already
|
|
19787
|
-
|
|
19788
|
-
var m = crypt$1.bytesToWords(message),
|
|
19789
|
-
l = message.length * 8,
|
|
19790
|
-
a = 1732584193,
|
|
19791
|
-
b = -271733879,
|
|
19792
|
-
c = -1732584194,
|
|
19793
|
-
d = 271733878;
|
|
19794
|
-
|
|
19795
|
-
// Swap endian
|
|
19796
|
-
for (var i = 0; i < m.length; i++) {
|
|
19797
|
-
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
|
|
19798
|
-
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
|
|
19799
|
-
}
|
|
19800
|
-
|
|
19801
|
-
// Padding
|
|
19802
|
-
m[l >>> 5] |= 0x80 << (l % 32);
|
|
19803
|
-
m[(((l + 64) >>> 9) << 4) + 14] = l;
|
|
19804
|
-
|
|
19805
|
-
// Method shortcuts
|
|
19806
|
-
var FF = md5._ff,
|
|
19807
|
-
GG = md5._gg,
|
|
19808
|
-
HH = md5._hh,
|
|
19809
|
-
II = md5._ii;
|
|
19810
|
-
|
|
19811
|
-
for (var i = 0; i < m.length; i += 16) {
|
|
19812
|
-
|
|
19813
|
-
var aa = a,
|
|
19814
|
-
bb = b,
|
|
19815
|
-
cc = c,
|
|
19816
|
-
dd = d;
|
|
19817
|
-
|
|
19818
|
-
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
|
|
19819
|
-
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
|
|
19820
|
-
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
|
|
19821
|
-
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
|
|
19822
|
-
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
|
|
19823
|
-
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
|
|
19824
|
-
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
|
|
19825
|
-
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
|
|
19826
|
-
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
|
|
19827
|
-
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
|
|
19828
|
-
c = FF(c, d, a, b, m[i+10], 17, -42063);
|
|
19829
|
-
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
|
|
19830
|
-
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
|
|
19831
|
-
d = FF(d, a, b, c, m[i+13], 12, -40341101);
|
|
19832
|
-
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
|
|
19833
|
-
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
|
|
19834
|
-
|
|
19835
|
-
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
|
|
19836
|
-
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
|
|
19837
|
-
c = GG(c, d, a, b, m[i+11], 14, 643717713);
|
|
19838
|
-
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
|
|
19839
|
-
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
|
|
19840
|
-
d = GG(d, a, b, c, m[i+10], 9, 38016083);
|
|
19841
|
-
c = GG(c, d, a, b, m[i+15], 14, -660478335);
|
|
19842
|
-
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
|
|
19843
|
-
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
|
|
19844
|
-
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
|
|
19845
|
-
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
|
|
19846
|
-
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
|
|
19847
|
-
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
|
|
19848
|
-
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
|
|
19849
|
-
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
|
|
19850
|
-
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
|
|
19851
|
-
|
|
19852
|
-
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
|
|
19853
|
-
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
|
|
19854
|
-
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
|
|
19855
|
-
b = HH(b, c, d, a, m[i+14], 23, -35309556);
|
|
19856
|
-
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
|
|
19857
|
-
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
|
|
19858
|
-
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
|
|
19859
|
-
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
|
|
19860
|
-
a = HH(a, b, c, d, m[i+13], 4, 681279174);
|
|
19861
|
-
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
|
|
19862
|
-
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
|
|
19863
|
-
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
|
|
19864
|
-
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
|
|
19865
|
-
d = HH(d, a, b, c, m[i+12], 11, -421815835);
|
|
19866
|
-
c = HH(c, d, a, b, m[i+15], 16, 530742520);
|
|
19867
|
-
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
|
|
19868
|
-
|
|
19869
|
-
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
|
|
19870
|
-
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
|
|
19871
|
-
c = II(c, d, a, b, m[i+14], 15, -1416354905);
|
|
19872
|
-
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
|
|
19873
|
-
a = II(a, b, c, d, m[i+12], 6, 1700485571);
|
|
19874
|
-
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
|
|
19875
|
-
c = II(c, d, a, b, m[i+10], 15, -1051523);
|
|
19876
|
-
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
|
|
19877
|
-
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
|
|
19878
|
-
d = II(d, a, b, c, m[i+15], 10, -30611744);
|
|
19879
|
-
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
|
|
19880
|
-
b = II(b, c, d, a, m[i+13], 21, 1309151649);
|
|
19881
|
-
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
|
|
19882
|
-
d = II(d, a, b, c, m[i+11], 10, -1120210379);
|
|
19883
|
-
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
|
|
19884
|
-
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
|
|
19885
|
-
|
|
19886
|
-
a = (a + aa) >>> 0;
|
|
19887
|
-
b = (b + bb) >>> 0;
|
|
19888
|
-
c = (c + cc) >>> 0;
|
|
19889
|
-
d = (d + dd) >>> 0;
|
|
19890
|
-
}
|
|
19891
|
-
|
|
19892
|
-
return crypt$1.endian([a, b, c, d]);
|
|
19893
|
-
};
|
|
19894
|
-
|
|
19895
|
-
// Auxiliary functions
|
|
19896
|
-
md5._ff = function (a, b, c, d, x, s, t) {
|
|
19897
|
-
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
|
|
19898
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19899
|
-
};
|
|
19900
|
-
md5._gg = function (a, b, c, d, x, s, t) {
|
|
19901
|
-
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
|
|
19902
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19903
|
-
};
|
|
19904
|
-
md5._hh = function (a, b, c, d, x, s, t) {
|
|
19905
|
-
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
|
|
19906
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19907
|
-
};
|
|
19908
|
-
md5._ii = function (a, b, c, d, x, s, t) {
|
|
19909
|
-
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
|
|
19910
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19911
|
-
};
|
|
19912
|
-
|
|
19913
|
-
// Package private blocksize
|
|
19914
|
-
md5._blocksize = 16;
|
|
19915
|
-
md5._digestsize = 16;
|
|
19916
|
-
|
|
19917
|
-
module.exports = function (message, options) {
|
|
19918
|
-
if (message === undefined || message === null)
|
|
19919
|
-
throw new Error('Illegal argument ' + message);
|
|
19920
|
-
|
|
19921
|
-
var digestbytes = crypt$1.wordsToBytes(md5(message, options));
|
|
19922
|
-
return options && options.asBytes ? digestbytes :
|
|
19923
|
-
options && options.asString ? bin.bytesToString(digestbytes) :
|
|
19924
|
-
crypt$1.bytesToHex(digestbytes);
|
|
19925
|
-
};
|
|
19926
|
-
|
|
19927
|
-
})();
|
|
19928
|
-
});
|
|
19929
|
-
|
|
19930
19570
|
var _this$3 = undefined;
|
|
19931
19571
|
|
|
19932
19572
|
var config = {
|