@mjhls/mjh-framework 1.0.331 → 1.0.333
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-d58f7a88.js → ADInfeed-b042a194.js} +1 -1
- package/dist/cjs/{AdSlot-c8f07bcf.js → AdSlot-c5bff604.js} +3 -3
- package/dist/cjs/DeckContent.js +18 -18
- package/dist/cjs/DeckQueue.js +8 -8
- package/dist/cjs/{Dfp-fc16f64b.js → Dfp-9ede68c7.js} +2 -2
- package/dist/cjs/{Figure-6805ef02.js → Figure-a47ec3a7.js} +1 -1
- package/dist/cjs/{GridContent-70d80f27.js → GridContent-9f212ec5.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-cc2f9b2f.js → Normal-c85aee96.js} +39 -39
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +11 -11
- package/dist/cjs/{TaxonomyCard-0b6bc8db.js → TaxonomyCard-e36602e8.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-ba3eaee2.js → debounce-528ad412.js} +4 -6
- package/dist/cjs/{get-de2660c3.js → get-3b23d857.js} +1 -1
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/index.js +1213 -828
- package/dist/cjs/{inherits-d1613ef1.js → inherits-7548e3e8.js} +1 -1
- package/dist/cjs/{main-6a82a5d2.js → main-987c23c6.js} +66 -35
- package/dist/cjs/{promise-60431c75.js → promise-3b44b2a3.js} +2 -2
- package/dist/cjs/{toConsumableArray-82ec1016.js → toConsumableArray-34b5e9a7.js} +1 -1
- package/dist/cjs/{visibility-sensor-b72d9527.js → visibility-sensor-c2ccc22d.js} +4 -2
- package/dist/esm/{ADInfeed-c42432d8.js → ADInfeed-aadcfc25.js} +1 -1
- package/dist/esm/{AdSlot-4a85e252.js → AdSlot-8946358f.js} +3 -3
- package/dist/esm/DeckContent.js +18 -18
- package/dist/esm/DeckQueue.js +8 -8
- package/dist/esm/{Dfp-1cde9792.js → Dfp-9293acfb.js} +2 -2
- package/dist/esm/{Figure-ddfa279d.js → Figure-584ac0c8.js} +1 -1
- package/dist/esm/{GridContent-55e6512a.js → GridContent-13be42a1.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-63478e2d.js → Normal-cbddc3c0.js} +39 -39
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +11 -11
- package/dist/esm/{TaxonomyCard-c036f1c3.js → TaxonomyCard-89325080.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-93ab8f80.js → debounce-702eb224.js} +4 -6
- package/dist/esm/{get-9c285a85.js → get-36d03764.js} +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/index.js +1216 -831
- package/dist/esm/{inherits-424c89e9.js → inherits-4b85034c.js} +1 -1
- package/dist/esm/{main-9ae8991d.js → main-cb86f95d.js} +65 -34
- package/dist/esm/{promise-e4a5eb9f.js → promise-86cb8313.js} +2 -2
- package/dist/esm/{toConsumableArray-ec38f5fe.js → toConsumableArray-2718dc16.js} +1 -1
- package/dist/esm/{visibility-sensor-336093e1.js → visibility-sensor-3cea5efb.js} +4 -2
- 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-528ad412.js');
|
|
11
|
+
var main = require('./main-987c23c6.js');
|
|
12
|
+
var toConsumableArray = require('./toConsumableArray-34b5e9a7.js');
|
|
13
13
|
var _extends$2 = require('./extends-4c2285ff.js');
|
|
14
|
-
var inherits$2 = require('./inherits-
|
|
14
|
+
var inherits$2 = require('./inherits-7548e3e8.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-c2ccc22d.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-b5eb3ff8.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-c5bff604.js');
|
|
32
|
+
require('./promise-3b44b2a3.js');
|
|
33
|
+
require('./ADInfeed-b042a194.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-3b23d857.js');
|
|
36
|
+
var GridContent = require('./GridContent-9f212ec5.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-e36602e8.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-c85aee96.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,7 +74,6 @@ 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'));
|
|
78
77
|
|
|
79
78
|
var momentTimezone = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
80
79
|
//! moment-timezone.js
|
|
@@ -2154,7 +2153,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2154
2153
|
)
|
|
2155
2154
|
)
|
|
2156
2155
|
),
|
|
2157
|
-
main.
|
|
2156
|
+
main.main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2158
2157
|
'div',
|
|
2159
2158
|
{ style: { margin: '0 auto' } },
|
|
2160
2159
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2545,7 +2544,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2545
2544
|
)
|
|
2546
2545
|
)
|
|
2547
2546
|
),
|
|
2548
|
-
main.
|
|
2547
|
+
main.main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2549
2548
|
'div',
|
|
2550
2549
|
{ style: { margin: '0 auto' } },
|
|
2551
2550
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2834,7 +2833,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2834
2833
|
pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
|
|
2835
2834
|
|
|
2836
2835
|
var mobileView = false;
|
|
2837
|
-
if (main.
|
|
2836
|
+
if (main.main_39) {
|
|
2838
2837
|
pos = 'rect1-mobile';
|
|
2839
2838
|
mobileView = true;
|
|
2840
2839
|
}
|
|
@@ -2866,7 +2865,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2866
2865
|
pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
|
|
2867
2866
|
|
|
2868
2867
|
var mobileView = false;
|
|
2869
|
-
if (main.
|
|
2868
|
+
if (main.main_39) {
|
|
2870
2869
|
pos = 'rect2-mobile';
|
|
2871
2870
|
mobileView = true;
|
|
2872
2871
|
}
|
|
@@ -3323,21 +3322,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3323
3322
|
);
|
|
3324
3323
|
};
|
|
3325
3324
|
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3325
|
+
// do not edit .js files directly - edit src/index.jst
|
|
3326
|
+
|
|
3327
|
+
|
|
3329
3328
|
|
|
3330
3329
|
var fastDeepEqual = function equal(a, b) {
|
|
3331
3330
|
if (a === b) return true;
|
|
3332
3331
|
|
|
3333
3332
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3334
|
-
|
|
3335
|
-
, arrB = isArray(b)
|
|
3336
|
-
, i
|
|
3337
|
-
, length
|
|
3338
|
-
, key;
|
|
3333
|
+
if (a.constructor !== b.constructor) return false;
|
|
3339
3334
|
|
|
3340
|
-
|
|
3335
|
+
var length, i, keys;
|
|
3336
|
+
if (Array.isArray(a)) {
|
|
3341
3337
|
length = a.length;
|
|
3342
3338
|
if (length != b.length) return false;
|
|
3343
3339
|
for (i = length; i-- !== 0;)
|
|
@@ -3345,35 +3341,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3345
3341
|
return true;
|
|
3346
3342
|
}
|
|
3347
3343
|
|
|
3348
|
-
if (arrA != arrB) return false;
|
|
3349
3344
|
|
|
3350
|
-
var dateA = a instanceof Date
|
|
3351
|
-
, dateB = b instanceof Date;
|
|
3352
|
-
if (dateA != dateB) return false;
|
|
3353
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3354
3345
|
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
if (
|
|
3358
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3346
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
3347
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
3348
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
3359
3349
|
|
|
3360
|
-
|
|
3350
|
+
keys = Object.keys(a);
|
|
3361
3351
|
length = keys.length;
|
|
3362
|
-
|
|
3363
|
-
if (length !== keyList(b).length)
|
|
3364
|
-
return false;
|
|
3352
|
+
if (length !== Object.keys(b).length) return false;
|
|
3365
3353
|
|
|
3366
3354
|
for (i = length; i-- !== 0;)
|
|
3367
|
-
if (!
|
|
3355
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
3368
3356
|
|
|
3369
3357
|
for (i = length; i-- !== 0;) {
|
|
3370
|
-
key = keys[i];
|
|
3358
|
+
var key = keys[i];
|
|
3359
|
+
|
|
3371
3360
|
if (!equal(a[key], b[key])) return false;
|
|
3372
3361
|
}
|
|
3373
3362
|
|
|
3374
3363
|
return true;
|
|
3375
3364
|
}
|
|
3376
3365
|
|
|
3366
|
+
// true if both NaN, false otherwise
|
|
3377
3367
|
return a!==a && b!==b;
|
|
3378
3368
|
};
|
|
3379
3369
|
|
|
@@ -4396,7 +4386,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4396
4386
|
var base = '', array = false, braces = ['{', '}'];
|
|
4397
4387
|
|
|
4398
4388
|
// Make Array say that they are Array
|
|
4399
|
-
if (isArray
|
|
4389
|
+
if (isArray(value)) {
|
|
4400
4390
|
array = true;
|
|
4401
4391
|
braces = ['[', ']'];
|
|
4402
4392
|
}
|
|
@@ -4575,7 +4565,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4575
4565
|
|
|
4576
4566
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4577
4567
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4578
|
-
function isArray
|
|
4568
|
+
function isArray(ar) {
|
|
4579
4569
|
return Array.isArray(ar);
|
|
4580
4570
|
}
|
|
4581
4571
|
|
|
@@ -4702,7 +4692,7 @@ var util = {
|
|
|
4702
4692
|
isNullOrUndefined: isNullOrUndefined,
|
|
4703
4693
|
isNull: isNull,
|
|
4704
4694
|
isBoolean: isBoolean,
|
|
4705
|
-
isArray: isArray
|
|
4695
|
+
isArray: isArray,
|
|
4706
4696
|
inspect: inspect,
|
|
4707
4697
|
deprecate: deprecate,
|
|
4708
4698
|
format: format,
|
|
@@ -5369,199 +5359,235 @@ module.exports = exports['default'];
|
|
|
5369
5359
|
|
|
5370
5360
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
5371
5361
|
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
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; };
|
|
5362
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
5375
5363
|
|
|
5376
5364
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5377
5365
|
|
|
5378
|
-
function
|
|
5366
|
+
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); } }
|
|
5367
|
+
|
|
5368
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5369
|
+
|
|
5370
|
+
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); }; }
|
|
5371
|
+
|
|
5372
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5373
|
+
|
|
5374
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5375
|
+
|
|
5376
|
+
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; } }
|
|
5379
5377
|
|
|
5380
|
-
function
|
|
5378
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5379
|
+
|
|
5380
|
+
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); }
|
|
5381
|
+
|
|
5382
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5383
|
+
|
|
5384
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
5385
|
+
|
|
5386
|
+
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; }
|
|
5381
5387
|
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
*
|
|
5385
|
-
*
|
|
5386
|
-
* @param {Object}
|
|
5388
|
+
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; }
|
|
5389
|
+
/**
|
|
5390
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5391
|
+
*
|
|
5392
|
+
* @param {Object} prevProps
|
|
5393
|
+
* @param {Object} props
|
|
5387
5394
|
*/
|
|
5395
|
+
|
|
5388
5396
|
function shouldUpdateVideo(prevProps, props) {
|
|
5389
5397
|
// A changing video should always trigger an update
|
|
5390
5398
|
if (prevProps.videoId !== props.videoId) {
|
|
5391
5399
|
return true;
|
|
5392
|
-
}
|
|
5393
|
-
|
|
5394
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5400
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
5395
5401
|
// update.
|
|
5402
|
+
|
|
5403
|
+
|
|
5396
5404
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5397
5405
|
var vars = props.opts.playerVars || {};
|
|
5398
|
-
|
|
5399
5406
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5400
5407
|
}
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
*
|
|
5404
|
-
*
|
|
5405
|
-
*
|
|
5406
|
-
*
|
|
5407
|
-
* @param {Object} opts
|
|
5408
|
+
/**
|
|
5409
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
5410
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5411
|
+
* player reset is necessary.
|
|
5412
|
+
*
|
|
5413
|
+
* @param {Object} opts
|
|
5408
5414
|
*/
|
|
5415
|
+
|
|
5416
|
+
|
|
5409
5417
|
function filterResetOptions(opts) {
|
|
5410
|
-
return
|
|
5411
|
-
playerVars:
|
|
5418
|
+
return _objectSpread({}, opts, {
|
|
5419
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
5412
5420
|
autoplay: 0,
|
|
5413
5421
|
start: 0,
|
|
5414
5422
|
end: 0
|
|
5415
5423
|
})
|
|
5416
5424
|
});
|
|
5417
5425
|
}
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
*
|
|
5421
|
-
*
|
|
5422
|
-
*
|
|
5423
|
-
*
|
|
5424
|
-
*
|
|
5425
|
-
* @param {Object}
|
|
5426
|
-
* @param {Object} props
|
|
5426
|
+
/**
|
|
5427
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5428
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5429
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5430
|
+
* those.
|
|
5431
|
+
*
|
|
5432
|
+
* @param {Object} prevProps
|
|
5433
|
+
* @param {Object} props
|
|
5427
5434
|
*/
|
|
5435
|
+
|
|
5436
|
+
|
|
5428
5437
|
function shouldResetPlayer(prevProps, props) {
|
|
5429
5438
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5430
5439
|
}
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
*
|
|
5434
|
-
*
|
|
5435
|
-
* @param {Object}
|
|
5436
|
-
* @param {Object} props
|
|
5440
|
+
/**
|
|
5441
|
+
* Check whether a props change should result in an id or className update.
|
|
5442
|
+
*
|
|
5443
|
+
* @param {Object} prevProps
|
|
5444
|
+
* @param {Object} props
|
|
5437
5445
|
*/
|
|
5446
|
+
|
|
5447
|
+
|
|
5438
5448
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5439
5449
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5440
5450
|
}
|
|
5441
5451
|
|
|
5442
|
-
var YouTube = function (_React$Component) {
|
|
5452
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
5443
5453
|
_inherits(YouTube, _React$Component);
|
|
5444
5454
|
|
|
5455
|
+
var _super = _createSuper(YouTube);
|
|
5456
|
+
|
|
5457
|
+
/**
|
|
5458
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5459
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5460
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5461
|
+
*/
|
|
5445
5462
|
function YouTube(props) {
|
|
5463
|
+
var _this;
|
|
5464
|
+
|
|
5446
5465
|
_classCallCheck(this, YouTube);
|
|
5447
5466
|
|
|
5448
|
-
|
|
5467
|
+
_this = _super.call(this, props);
|
|
5449
5468
|
|
|
5450
|
-
_this
|
|
5469
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
5451
5470
|
return _this.props.onReady(event);
|
|
5452
|
-
};
|
|
5471
|
+
});
|
|
5453
5472
|
|
|
5454
|
-
_this
|
|
5473
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
5455
5474
|
return _this.props.onError(event);
|
|
5456
|
-
};
|
|
5475
|
+
});
|
|
5457
5476
|
|
|
5458
|
-
_this
|
|
5477
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
5459
5478
|
_this.props.onStateChange(event);
|
|
5460
|
-
switch (event.data) {
|
|
5461
5479
|
|
|
5480
|
+
switch (event.data) {
|
|
5462
5481
|
case YouTube.PlayerState.ENDED:
|
|
5463
5482
|
_this.props.onEnd(event);
|
|
5483
|
+
|
|
5464
5484
|
break;
|
|
5465
5485
|
|
|
5466
5486
|
case YouTube.PlayerState.PLAYING:
|
|
5467
5487
|
_this.props.onPlay(event);
|
|
5488
|
+
|
|
5468
5489
|
break;
|
|
5469
5490
|
|
|
5470
5491
|
case YouTube.PlayerState.PAUSED:
|
|
5471
5492
|
_this.props.onPause(event);
|
|
5493
|
+
|
|
5472
5494
|
break;
|
|
5473
5495
|
}
|
|
5474
|
-
};
|
|
5496
|
+
});
|
|
5475
5497
|
|
|
5476
|
-
_this
|
|
5498
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
5477
5499
|
return _this.props.onPlaybackRateChange(event);
|
|
5478
|
-
};
|
|
5500
|
+
});
|
|
5479
5501
|
|
|
5480
|
-
_this
|
|
5502
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
5481
5503
|
return _this.props.onPlaybackQualityChange(event);
|
|
5482
|
-
};
|
|
5504
|
+
});
|
|
5483
5505
|
|
|
5484
|
-
_this
|
|
5506
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
5485
5507
|
// do not attempt to create a player server-side, it won't work
|
|
5486
|
-
if (typeof document === 'undefined') return;
|
|
5487
|
-
|
|
5488
|
-
var playerOpts =
|
|
5508
|
+
if (typeof document === 'undefined') return; // create player
|
|
5509
|
+
|
|
5510
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
5489
5511
|
// preload the `videoId` video if one is already given
|
|
5490
5512
|
videoId: _this.props.videoId
|
|
5491
5513
|
});
|
|
5492
|
-
|
|
5493
|
-
// attach event handlers
|
|
5514
|
+
|
|
5515
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
5516
|
+
|
|
5494
5517
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5518
|
+
|
|
5495
5519
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5520
|
+
|
|
5496
5521
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5522
|
+
|
|
5497
5523
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5524
|
+
|
|
5498
5525
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5499
|
-
};
|
|
5526
|
+
});
|
|
5500
5527
|
|
|
5501
|
-
_this
|
|
5528
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
5502
5529
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5503
|
-
};
|
|
5530
|
+
});
|
|
5504
5531
|
|
|
5505
|
-
_this
|
|
5532
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
5506
5533
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5507
5534
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5508
5535
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5509
5536
|
});
|
|
5510
|
-
};
|
|
5537
|
+
});
|
|
5511
5538
|
|
|
5512
|
-
_this
|
|
5539
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
5513
5540
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5514
5541
|
_this.internalPlayer.stopVideo();
|
|
5542
|
+
|
|
5515
5543
|
return;
|
|
5516
|
-
}
|
|
5544
|
+
} // set queueing options
|
|
5545
|
+
|
|
5517
5546
|
|
|
5518
|
-
// set queueing options
|
|
5519
5547
|
var autoplay = false;
|
|
5520
5548
|
var opts = {
|
|
5521
5549
|
videoId: _this.props.videoId
|
|
5522
5550
|
};
|
|
5551
|
+
|
|
5523
5552
|
if ('playerVars' in _this.props.opts) {
|
|
5524
5553
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5554
|
+
|
|
5525
5555
|
if ('start' in _this.props.opts.playerVars) {
|
|
5526
5556
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5527
5557
|
}
|
|
5558
|
+
|
|
5528
5559
|
if ('end' in _this.props.opts.playerVars) {
|
|
5529
5560
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5530
5561
|
}
|
|
5531
|
-
}
|
|
5562
|
+
} // if autoplay is enabled loadVideoById
|
|
5563
|
+
|
|
5532
5564
|
|
|
5533
|
-
// if autoplay is enabled loadVideoById
|
|
5534
5565
|
if (autoplay) {
|
|
5535
5566
|
_this.internalPlayer.loadVideoById(opts);
|
|
5567
|
+
|
|
5536
5568
|
return;
|
|
5537
|
-
}
|
|
5538
|
-
|
|
5569
|
+
} // default behaviour just cues the video
|
|
5570
|
+
|
|
5571
|
+
|
|
5539
5572
|
_this.internalPlayer.cueVideoById(opts);
|
|
5540
|
-
};
|
|
5573
|
+
});
|
|
5541
5574
|
|
|
5542
|
-
_this
|
|
5575
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
5543
5576
|
_this.container = container;
|
|
5544
|
-
};
|
|
5577
|
+
});
|
|
5545
5578
|
|
|
5546
5579
|
_this.container = null;
|
|
5547
5580
|
_this.internalPlayer = null;
|
|
5548
5581
|
return _this;
|
|
5549
5582
|
}
|
|
5550
5583
|
|
|
5551
|
-
/**
|
|
5552
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5553
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5554
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5555
|
-
*/
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
5584
|
_createClass(YouTube, [{
|
|
5559
|
-
key:
|
|
5585
|
+
key: "componentDidMount",
|
|
5560
5586
|
value: function componentDidMount() {
|
|
5561
5587
|
this.createPlayer();
|
|
5562
5588
|
}
|
|
5563
5589
|
}, {
|
|
5564
|
-
key:
|
|
5590
|
+
key: "componentDidUpdate",
|
|
5565
5591
|
value: function componentDidUpdate(prevProps) {
|
|
5566
5592
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5567
5593
|
this.updatePlayer();
|
|
@@ -5576,112 +5602,58 @@ var YouTube = function (_React$Component) {
|
|
|
5576
5602
|
}
|
|
5577
5603
|
}
|
|
5578
5604
|
}, {
|
|
5579
|
-
key:
|
|
5605
|
+
key: "componentWillUnmount",
|
|
5580
5606
|
value: function componentWillUnmount() {
|
|
5581
|
-
/**
|
|
5582
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5583
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5584
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5585
|
-
* this method isn't quick enough to reset the container element.
|
|
5607
|
+
/**
|
|
5608
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
5609
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5610
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5611
|
+
* this method isn't quick enough to reset the container element.
|
|
5586
5612
|
*/
|
|
5587
5613
|
this.internalPlayer.destroy();
|
|
5588
5614
|
}
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
*
|
|
5592
|
-
*
|
|
5593
|
-
*
|
|
5594
|
-
* @param {Object} target - player object
|
|
5595
|
-
*/
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
/**
|
|
5599
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5600
|
-
*
|
|
5601
|
-
* @param {Object} event
|
|
5602
|
-
* @param {Integer} data - error type
|
|
5603
|
-
* @param {Object} target - player object
|
|
5604
|
-
*/
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
/**
|
|
5608
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5609
|
-
*
|
|
5610
|
-
* @param {Object} event
|
|
5611
|
-
* @param {Integer} data - status change type
|
|
5612
|
-
* @param {Object} target - actual YT player
|
|
5613
|
-
*/
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
/**
|
|
5617
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5618
|
-
*
|
|
5619
|
-
* @param {Object} event
|
|
5620
|
-
* @param {Float} data - playback rate
|
|
5621
|
-
* @param {Object} target - actual YT player
|
|
5622
|
-
*/
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
/**
|
|
5626
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5627
|
-
*
|
|
5628
|
-
* @param {Object} event
|
|
5629
|
-
* @param {String} data - playback quality
|
|
5630
|
-
* @param {Object} target - actual YT player
|
|
5631
|
-
*/
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
/**
|
|
5635
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5636
|
-
*/
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
/**
|
|
5640
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5641
|
-
*/
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
/**
|
|
5645
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
5646
|
-
* React should update this automatically but since the Youtube Player API
|
|
5647
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5648
|
-
*/
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
/**
|
|
5652
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
5653
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5654
|
-
* Youtube Player API methods to update the video.
|
|
5615
|
+
/**
|
|
5616
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5617
|
+
*
|
|
5618
|
+
* @param {Object} event
|
|
5619
|
+
* @param {Object} target - player object
|
|
5655
5620
|
*/
|
|
5656
5621
|
|
|
5657
5622
|
}, {
|
|
5658
|
-
key:
|
|
5623
|
+
key: "render",
|
|
5659
5624
|
value: function render() {
|
|
5660
|
-
return React__default.createElement(
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5625
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
5626
|
+
className: this.props.containerClassName
|
|
5627
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5628
|
+
id: this.props.id,
|
|
5629
|
+
className: this.props.className,
|
|
5630
|
+
ref: this.refContainer
|
|
5631
|
+
}));
|
|
5665
5632
|
}
|
|
5666
5633
|
}]);
|
|
5667
5634
|
|
|
5668
5635
|
return YouTube;
|
|
5669
5636
|
}(React__default.Component);
|
|
5670
5637
|
|
|
5638
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
5639
|
+
UNSTARTED: -1,
|
|
5640
|
+
ENDED: 0,
|
|
5641
|
+
PLAYING: 1,
|
|
5642
|
+
PAUSED: 2,
|
|
5643
|
+
BUFFERING: 3,
|
|
5644
|
+
CUED: 5
|
|
5645
|
+
});
|
|
5646
|
+
|
|
5671
5647
|
YouTube.propTypes = {
|
|
5672
5648
|
videoId: PropTypes.string,
|
|
5673
|
-
|
|
5674
5649
|
// custom ID for player element
|
|
5675
5650
|
id: PropTypes.string,
|
|
5676
|
-
|
|
5677
5651
|
// custom class name for player element
|
|
5678
5652
|
className: PropTypes.string,
|
|
5679
5653
|
// custom class name for player container element
|
|
5680
5654
|
containerClassName: PropTypes.string,
|
|
5681
|
-
|
|
5682
5655
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5683
5656
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5684
|
-
|
|
5685
5657
|
// event subscriptions
|
|
5686
5658
|
onReady: PropTypes.func,
|
|
5687
5659
|
onError: PropTypes.func,
|
|
@@ -5693,6 +5665,7 @@ YouTube.propTypes = {
|
|
|
5693
5665
|
onPlaybackQualityChange: PropTypes.func
|
|
5694
5666
|
};
|
|
5695
5667
|
YouTube.defaultProps = {
|
|
5668
|
+
videoId: null,
|
|
5696
5669
|
id: null,
|
|
5697
5670
|
className: null,
|
|
5698
5671
|
opts: {},
|
|
@@ -5706,14 +5679,6 @@ YouTube.defaultProps = {
|
|
|
5706
5679
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5707
5680
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5708
5681
|
};
|
|
5709
|
-
YouTube.PlayerState = {
|
|
5710
|
-
UNSTARTED: -1,
|
|
5711
|
-
ENDED: 0,
|
|
5712
|
-
PLAYING: 1,
|
|
5713
|
-
PAUSED: 2,
|
|
5714
|
-
BUFFERING: 3,
|
|
5715
|
-
CUED: 5
|
|
5716
|
-
};
|
|
5717
5682
|
|
|
5718
5683
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5719
5684
|
var url = _ref.url;
|
|
@@ -6737,8 +6702,8 @@ var window_1 = win;
|
|
|
6737
6702
|
|
|
6738
6703
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6739
6704
|
|
|
6740
|
-
function _extends
|
|
6741
|
-
_extends
|
|
6705
|
+
function _extends() {
|
|
6706
|
+
_extends = Object.assign || function (target) {
|
|
6742
6707
|
for (var i = 1; i < arguments.length; i++) {
|
|
6743
6708
|
var source = arguments[i];
|
|
6744
6709
|
|
|
@@ -6752,7 +6717,7 @@ function _extends$1() {
|
|
|
6752
6717
|
return target;
|
|
6753
6718
|
};
|
|
6754
6719
|
|
|
6755
|
-
return _extends
|
|
6720
|
+
return _extends.apply(this, arguments);
|
|
6756
6721
|
}
|
|
6757
6722
|
|
|
6758
6723
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6761,7 +6726,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6761
6726
|
subClass.__proto__ = superClass;
|
|
6762
6727
|
}
|
|
6763
6728
|
|
|
6764
|
-
function _assertThisInitialized(self) {
|
|
6729
|
+
function _assertThisInitialized$1(self) {
|
|
6765
6730
|
if (self === void 0) {
|
|
6766
6731
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6767
6732
|
}
|
|
@@ -6771,8 +6736,8 @@ function _assertThisInitialized(self) {
|
|
|
6771
6736
|
|
|
6772
6737
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6773
6738
|
|
|
6774
|
-
function _extends$1
|
|
6775
|
-
_extends$1
|
|
6739
|
+
function _extends$1() {
|
|
6740
|
+
_extends$1 = Object.assign || function (target) {
|
|
6776
6741
|
for (var i = 1; i < arguments.length; i++) {
|
|
6777
6742
|
var source = arguments[i];
|
|
6778
6743
|
|
|
@@ -6786,7 +6751,7 @@ function _extends$1$1() {
|
|
|
6786
6751
|
return target;
|
|
6787
6752
|
};
|
|
6788
6753
|
|
|
6789
|
-
return _extends$1
|
|
6754
|
+
return _extends$1.apply(this, arguments);
|
|
6790
6755
|
}
|
|
6791
6756
|
|
|
6792
6757
|
var version$1 = "1.7.1";
|
|
@@ -6794,7 +6759,7 @@ var version$1 = "1.7.1";
|
|
|
6794
6759
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6795
6760
|
var version$1$1 = "1.2.0";
|
|
6796
6761
|
|
|
6797
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6762
|
+
var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6798
6763
|
return typeof obj;
|
|
6799
6764
|
} : function (obj) {
|
|
6800
6765
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6929,7 +6894,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6929
6894
|
|
|
6930
6895
|
var qs = '';
|
|
6931
6896
|
|
|
6932
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6897
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
|
|
6933
6898
|
qs = getQueryString(queryParams);
|
|
6934
6899
|
}
|
|
6935
6900
|
|
|
@@ -7163,7 +7128,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
7163
7128
|
el.style.width = '100%';
|
|
7164
7129
|
el.style.height = '100%';
|
|
7165
7130
|
|
|
7166
|
-
var responsive = _extends$1
|
|
7131
|
+
var responsive = _extends$1({
|
|
7167
7132
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
7168
7133
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
7169
7134
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7848,7 +7813,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7848
7813
|
|
|
7849
7814
|
|
|
7850
7815
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7851
|
-
var params = _extends$1
|
|
7816
|
+
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7852
7817
|
|
|
7853
7818
|
var Promise = params.Promise,
|
|
7854
7819
|
onSuccess = params.onSuccess,
|
|
@@ -7990,7 +7955,7 @@ function (_React$Component) {
|
|
|
7990
7955
|
_this.refNode = ref;
|
|
7991
7956
|
};
|
|
7992
7957
|
|
|
7993
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7958
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
|
|
7994
7959
|
return _this;
|
|
7995
7960
|
}
|
|
7996
7961
|
/**
|
|
@@ -8011,7 +7976,7 @@ function (_React$Component) {
|
|
|
8011
7976
|
var userSuccess = this.props.onSuccess;
|
|
8012
7977
|
var userFailure = this.props.onFailure;
|
|
8013
7978
|
|
|
8014
|
-
var options = _extends
|
|
7979
|
+
var options = _extends({}, this.props, {
|
|
8015
7980
|
refNode: this.refNode,
|
|
8016
7981
|
refNodeInsert: 'append',
|
|
8017
7982
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8320,7 +8285,7 @@ function (_React$Component) {
|
|
|
8320
8285
|
;
|
|
8321
8286
|
|
|
8322
8287
|
_proto.render = function render() {
|
|
8323
|
-
var props = _extends
|
|
8288
|
+
var props = _extends({
|
|
8324
8289
|
className: 'brightcove-react-player-loader'
|
|
8325
8290
|
}, this.props.attrs, {
|
|
8326
8291
|
ref: this.setRefNode
|
|
@@ -8736,11 +8701,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8736
8701
|
|
|
8737
8702
|
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; }
|
|
8738
8703
|
|
|
8739
|
-
function
|
|
8704
|
+
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(_e2) { throw _e2; }, 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(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
8705
|
+
|
|
8706
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8707
|
+
|
|
8708
|
+
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."); }
|
|
8740
8709
|
|
|
8741
|
-
function
|
|
8710
|
+
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); }
|
|
8742
8711
|
|
|
8743
|
-
function
|
|
8712
|
+
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; }
|
|
8713
|
+
|
|
8714
|
+
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; }
|
|
8744
8715
|
|
|
8745
8716
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8746
8717
|
|
|
@@ -8870,12 +8841,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8870
8841
|
|
|
8871
8842
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8872
8843
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8873
|
-
|
|
8874
|
-
var
|
|
8875
|
-
|
|
8844
|
+
|
|
8845
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
8846
|
+
_step;
|
|
8876
8847
|
|
|
8877
8848
|
try {
|
|
8878
|
-
for (
|
|
8849
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
8879
8850
|
var p = _step.value;
|
|
8880
8851
|
|
|
8881
8852
|
if (props$1[p]) {
|
|
@@ -8890,18 +8861,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8890
8861
|
}
|
|
8891
8862
|
}
|
|
8892
8863
|
} catch (err) {
|
|
8893
|
-
|
|
8894
|
-
_iteratorError = err;
|
|
8864
|
+
_iterator.e(err);
|
|
8895
8865
|
} finally {
|
|
8896
|
-
|
|
8897
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8898
|
-
_iterator["return"]();
|
|
8899
|
-
}
|
|
8900
|
-
} finally {
|
|
8901
|
-
if (_didIteratorError) {
|
|
8902
|
-
throw _iteratorError;
|
|
8903
|
-
}
|
|
8904
|
-
}
|
|
8866
|
+
_iterator.f();
|
|
8905
8867
|
}
|
|
8906
8868
|
|
|
8907
8869
|
return config;
|
|
@@ -9048,12 +9010,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9048
9010
|
|
|
9049
9011
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9050
9012
|
|
|
9051
|
-
function
|
|
9013
|
+
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); }; }
|
|
9052
9014
|
|
|
9053
|
-
function
|
|
9015
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9054
9016
|
|
|
9055
9017
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9056
9018
|
|
|
9019
|
+
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; } }
|
|
9020
|
+
|
|
9021
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9022
|
+
|
|
9057
9023
|
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); }
|
|
9058
9024
|
|
|
9059
9025
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9062,14 +9028,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9062
9028
|
|
|
9063
9029
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
9064
9030
|
|
|
9065
|
-
var Player =
|
|
9066
|
-
/*#__PURE__*/
|
|
9067
|
-
function (_Component) {
|
|
9031
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
9068
9032
|
_inherits(Player, _Component);
|
|
9069
9033
|
|
|
9070
|
-
|
|
9071
|
-
var _getPrototypeOf2;
|
|
9034
|
+
var _super = _createSuper(Player);
|
|
9072
9035
|
|
|
9036
|
+
function Player() {
|
|
9073
9037
|
var _this;
|
|
9074
9038
|
|
|
9075
9039
|
_classCallCheck(this, Player);
|
|
@@ -9078,7 +9042,7 @@ function (_Component) {
|
|
|
9078
9042
|
_args[_key] = arguments[_key];
|
|
9079
9043
|
}
|
|
9080
9044
|
|
|
9081
|
-
_this =
|
|
9045
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
9082
9046
|
|
|
9083
9047
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
9084
9048
|
|
|
@@ -9403,7 +9367,7 @@ function (_Component) {
|
|
|
9403
9367
|
return null;
|
|
9404
9368
|
}
|
|
9405
9369
|
|
|
9406
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9370
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
9407
9371
|
ref: this.ref,
|
|
9408
9372
|
onReady: this.handleReady,
|
|
9409
9373
|
onPlay: this.handlePlay,
|
|
@@ -9464,12 +9428,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9464
9428
|
|
|
9465
9429
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9466
9430
|
|
|
9467
|
-
function
|
|
9431
|
+
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); }; }
|
|
9468
9432
|
|
|
9469
|
-
function
|
|
9433
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9470
9434
|
|
|
9471
9435
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9472
9436
|
|
|
9437
|
+
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; } }
|
|
9438
|
+
|
|
9439
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9440
|
+
|
|
9473
9441
|
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); }
|
|
9474
9442
|
|
|
9475
9443
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9481,14 +9449,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9481
9449
|
function createSinglePlayer(activePlayer) {
|
|
9482
9450
|
var _class, _temp;
|
|
9483
9451
|
|
|
9484
|
-
return _temp = _class =
|
|
9485
|
-
/*#__PURE__*/
|
|
9486
|
-
function (_Component) {
|
|
9452
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
9487
9453
|
_inherits(SinglePlayer, _Component);
|
|
9488
9454
|
|
|
9489
|
-
|
|
9490
|
-
var _getPrototypeOf2;
|
|
9455
|
+
var _super = _createSuper(SinglePlayer);
|
|
9491
9456
|
|
|
9457
|
+
function SinglePlayer() {
|
|
9492
9458
|
var _this;
|
|
9493
9459
|
|
|
9494
9460
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9497,7 +9463,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9497
9463
|
args[_key] = arguments[_key];
|
|
9498
9464
|
}
|
|
9499
9465
|
|
|
9500
|
-
_this =
|
|
9466
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9501
9467
|
|
|
9502
9468
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9503
9469
|
|
|
@@ -9565,12 +9531,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9565
9531
|
height = _this$props.height,
|
|
9566
9532
|
Wrapper = _this$props.wrapper;
|
|
9567
9533
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9568
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
9534
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
9569
9535
|
style: _objectSpread({}, style, {
|
|
9570
9536
|
width: width,
|
|
9571
9537
|
height: height
|
|
9572
9538
|
})
|
|
9573
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9539
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9574
9540
|
ref: this.ref,
|
|
9575
9541
|
activePlayer: activePlayer,
|
|
9576
9542
|
config: this.config
|
|
@@ -9616,23 +9582,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9616
9582
|
|
|
9617
9583
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9618
9584
|
|
|
9619
|
-
function
|
|
9585
|
+
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); }; }
|
|
9620
9586
|
|
|
9621
|
-
function
|
|
9587
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9622
9588
|
|
|
9623
9589
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9624
9590
|
|
|
9591
|
+
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; } }
|
|
9592
|
+
|
|
9593
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9594
|
+
|
|
9625
9595
|
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); }
|
|
9626
9596
|
|
|
9627
9597
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9628
9598
|
|
|
9629
9599
|
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; }
|
|
9630
9600
|
|
|
9631
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9601
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9602
|
+
|
|
9603
|
+
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."); }
|
|
9632
9604
|
|
|
9633
|
-
function
|
|
9605
|
+
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); }
|
|
9634
9606
|
|
|
9635
|
-
function
|
|
9607
|
+
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; }
|
|
9608
|
+
|
|
9609
|
+
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; }
|
|
9636
9610
|
|
|
9637
9611
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9638
9612
|
|
|
@@ -9657,14 +9631,12 @@ function parsePlaylist(url) {
|
|
|
9657
9631
|
return {};
|
|
9658
9632
|
}
|
|
9659
9633
|
|
|
9660
|
-
var YouTube =
|
|
9661
|
-
/*#__PURE__*/
|
|
9662
|
-
function (_Component) {
|
|
9634
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
9663
9635
|
_inherits(YouTube, _Component);
|
|
9664
9636
|
|
|
9665
|
-
|
|
9666
|
-
var _getPrototypeOf2;
|
|
9637
|
+
var _super = _createSuper(YouTube);
|
|
9667
9638
|
|
|
9639
|
+
function YouTube() {
|
|
9668
9640
|
var _this;
|
|
9669
9641
|
|
|
9670
9642
|
_classCallCheck(this, YouTube);
|
|
@@ -9673,7 +9645,7 @@ function (_Component) {
|
|
|
9673
9645
|
args[_key] = arguments[_key];
|
|
9674
9646
|
}
|
|
9675
9647
|
|
|
9676
|
-
_this =
|
|
9648
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9677
9649
|
|
|
9678
9650
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9679
9651
|
|
|
@@ -9861,9 +9833,9 @@ function (_Component) {
|
|
|
9861
9833
|
height: '100%',
|
|
9862
9834
|
display: display
|
|
9863
9835
|
};
|
|
9864
|
-
return _react["default"].createElement("div", {
|
|
9836
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
9865
9837
|
style: style
|
|
9866
|
-
}, _react["default"].createElement("div", {
|
|
9838
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
9867
9839
|
ref: this.ref
|
|
9868
9840
|
}));
|
|
9869
9841
|
}
|
|
@@ -9919,12 +9891,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9919
9891
|
|
|
9920
9892
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9921
9893
|
|
|
9922
|
-
function
|
|
9894
|
+
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); }; }
|
|
9923
9895
|
|
|
9924
|
-
function
|
|
9896
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9925
9897
|
|
|
9926
9898
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9927
9899
|
|
|
9900
|
+
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; } }
|
|
9901
|
+
|
|
9902
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9903
|
+
|
|
9928
9904
|
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); }
|
|
9929
9905
|
|
|
9930
9906
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9933,16 +9909,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9933
9909
|
|
|
9934
9910
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9935
9911
|
var SDK_GLOBAL = 'SC';
|
|
9936
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
9912
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
9937
9913
|
|
|
9938
|
-
var SoundCloud =
|
|
9939
|
-
/*#__PURE__*/
|
|
9940
|
-
function (_Component) {
|
|
9914
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
9941
9915
|
_inherits(SoundCloud, _Component);
|
|
9942
9916
|
|
|
9943
|
-
|
|
9944
|
-
var _getPrototypeOf2;
|
|
9917
|
+
var _super = _createSuper(SoundCloud);
|
|
9945
9918
|
|
|
9919
|
+
function SoundCloud() {
|
|
9946
9920
|
var _this;
|
|
9947
9921
|
|
|
9948
9922
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9951,7 +9925,7 @@ function (_Component) {
|
|
|
9951
9925
|
args[_key] = arguments[_key];
|
|
9952
9926
|
}
|
|
9953
9927
|
|
|
9954
|
-
_this =
|
|
9928
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9955
9929
|
|
|
9956
9930
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9957
9931
|
|
|
@@ -10072,7 +10046,7 @@ function (_Component) {
|
|
|
10072
10046
|
height: '100%',
|
|
10073
10047
|
display: display
|
|
10074
10048
|
};
|
|
10075
|
-
return _react["default"].createElement("iframe", {
|
|
10049
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
10076
10050
|
ref: this.ref,
|
|
10077
10051
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
10078
10052
|
style: style,
|
|
@@ -10134,12 +10108,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10134
10108
|
|
|
10135
10109
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10136
10110
|
|
|
10137
|
-
function
|
|
10111
|
+
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); }; }
|
|
10138
10112
|
|
|
10139
|
-
function
|
|
10113
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10140
10114
|
|
|
10141
10115
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10142
10116
|
|
|
10117
|
+
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; } }
|
|
10118
|
+
|
|
10119
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10120
|
+
|
|
10143
10121
|
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); }
|
|
10144
10122
|
|
|
10145
10123
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10151,14 +10129,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10151
10129
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10152
10130
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10153
10131
|
|
|
10154
|
-
var Vimeo =
|
|
10155
|
-
/*#__PURE__*/
|
|
10156
|
-
function (_Component) {
|
|
10132
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
10157
10133
|
_inherits(Vimeo, _Component);
|
|
10158
10134
|
|
|
10159
|
-
|
|
10160
|
-
var _getPrototypeOf2;
|
|
10135
|
+
var _super = _createSuper(Vimeo);
|
|
10161
10136
|
|
|
10137
|
+
function Vimeo() {
|
|
10162
10138
|
var _this;
|
|
10163
10139
|
|
|
10164
10140
|
_classCallCheck(this, Vimeo);
|
|
@@ -10167,7 +10143,7 @@ function (_Component) {
|
|
|
10167
10143
|
args[_key] = arguments[_key];
|
|
10168
10144
|
}
|
|
10169
10145
|
|
|
10170
|
-
_this =
|
|
10146
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10171
10147
|
|
|
10172
10148
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10173
10149
|
|
|
@@ -10324,7 +10300,7 @@ function (_Component) {
|
|
|
10324
10300
|
overflow: 'hidden',
|
|
10325
10301
|
display: display
|
|
10326
10302
|
};
|
|
10327
|
-
return _react["default"].createElement("div", {
|
|
10303
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10328
10304
|
key: this.props.url,
|
|
10329
10305
|
ref: this.ref,
|
|
10330
10306
|
style: style
|
|
@@ -10384,12 +10360,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10384
10360
|
|
|
10385
10361
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10386
10362
|
|
|
10387
|
-
function
|
|
10363
|
+
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); }; }
|
|
10388
10364
|
|
|
10389
|
-
function
|
|
10365
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10390
10366
|
|
|
10391
10367
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10392
10368
|
|
|
10369
|
+
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; } }
|
|
10370
|
+
|
|
10371
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10372
|
+
|
|
10393
10373
|
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); }
|
|
10394
10374
|
|
|
10395
10375
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10402,14 +10382,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10402
10382
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10403
10383
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10404
10384
|
|
|
10405
|
-
var Facebook =
|
|
10406
|
-
/*#__PURE__*/
|
|
10407
|
-
function (_Component) {
|
|
10385
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
10408
10386
|
_inherits(Facebook, _Component);
|
|
10409
10387
|
|
|
10410
|
-
|
|
10411
|
-
var _getPrototypeOf2;
|
|
10388
|
+
var _super = _createSuper(Facebook);
|
|
10412
10389
|
|
|
10390
|
+
function Facebook() {
|
|
10413
10391
|
var _this;
|
|
10414
10392
|
|
|
10415
10393
|
_classCallCheck(this, Facebook);
|
|
@@ -10418,7 +10396,7 @@ function (_Component) {
|
|
|
10418
10396
|
args[_key] = arguments[_key];
|
|
10419
10397
|
}
|
|
10420
10398
|
|
|
10421
|
-
_this =
|
|
10399
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10422
10400
|
|
|
10423
10401
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10424
10402
|
|
|
@@ -10534,7 +10512,7 @@ function (_Component) {
|
|
|
10534
10512
|
width: '100%',
|
|
10535
10513
|
height: '100%'
|
|
10536
10514
|
};
|
|
10537
|
-
return _react["default"].createElement("div", {
|
|
10515
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10538
10516
|
style: style,
|
|
10539
10517
|
id: this.playerID,
|
|
10540
10518
|
className: "fb-video",
|
|
@@ -10594,12 +10572,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10594
10572
|
|
|
10595
10573
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10596
10574
|
|
|
10597
|
-
function
|
|
10575
|
+
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); }; }
|
|
10598
10576
|
|
|
10599
|
-
function
|
|
10577
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10600
10578
|
|
|
10601
10579
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10602
10580
|
|
|
10581
|
+
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; } }
|
|
10582
|
+
|
|
10583
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10584
|
+
|
|
10603
10585
|
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); }
|
|
10604
10586
|
|
|
10605
10587
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10610,14 +10592,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10610
10592
|
var SDK_GLOBAL = 'playerjs';
|
|
10611
10593
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10612
10594
|
|
|
10613
|
-
var Streamable =
|
|
10614
|
-
/*#__PURE__*/
|
|
10615
|
-
function (_Component) {
|
|
10595
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
10616
10596
|
_inherits(Streamable, _Component);
|
|
10617
10597
|
|
|
10618
|
-
|
|
10619
|
-
var _getPrototypeOf2;
|
|
10598
|
+
var _super = _createSuper(Streamable);
|
|
10620
10599
|
|
|
10600
|
+
function Streamable() {
|
|
10621
10601
|
var _this;
|
|
10622
10602
|
|
|
10623
10603
|
_classCallCheck(this, Streamable);
|
|
@@ -10626,7 +10606,7 @@ function (_Component) {
|
|
|
10626
10606
|
args[_key] = arguments[_key];
|
|
10627
10607
|
}
|
|
10628
10608
|
|
|
10629
|
-
_this =
|
|
10609
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10630
10610
|
|
|
10631
10611
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10632
10612
|
|
|
@@ -10746,7 +10726,7 @@ function (_Component) {
|
|
|
10746
10726
|
width: '100%',
|
|
10747
10727
|
height: '100%'
|
|
10748
10728
|
};
|
|
10749
|
-
return _react["default"].createElement("iframe", {
|
|
10729
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
10750
10730
|
ref: this.ref,
|
|
10751
10731
|
src: "https://streamable.com/o/".concat(id),
|
|
10752
10732
|
frameBorder: "0",
|
|
@@ -10807,12 +10787,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10807
10787
|
|
|
10808
10788
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10809
10789
|
|
|
10810
|
-
function
|
|
10790
|
+
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); }; }
|
|
10811
10791
|
|
|
10812
|
-
function
|
|
10792
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10813
10793
|
|
|
10814
10794
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10815
10795
|
|
|
10796
|
+
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; } }
|
|
10797
|
+
|
|
10798
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10799
|
+
|
|
10816
10800
|
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); }
|
|
10817
10801
|
|
|
10818
10802
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10823,27 +10807,49 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10823
10807
|
var SDK_GLOBAL = 'Wistia';
|
|
10824
10808
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10825
10809
|
|
|
10826
|
-
var Wistia =
|
|
10827
|
-
/*#__PURE__*/
|
|
10828
|
-
function (_Component) {
|
|
10810
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
10829
10811
|
_inherits(Wistia, _Component);
|
|
10830
10812
|
|
|
10831
|
-
|
|
10832
|
-
var _getPrototypeOf2;
|
|
10813
|
+
var _super = _createSuper(Wistia);
|
|
10833
10814
|
|
|
10815
|
+
function Wistia() {
|
|
10834
10816
|
var _this;
|
|
10835
10817
|
|
|
10836
10818
|
_classCallCheck(this, Wistia);
|
|
10837
10819
|
|
|
10838
|
-
for (var _len = arguments.length,
|
|
10839
|
-
|
|
10820
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10821
|
+
_args[_key] = arguments[_key];
|
|
10840
10822
|
}
|
|
10841
10823
|
|
|
10842
|
-
_this =
|
|
10824
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
10843
10825
|
|
|
10844
10826
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10845
10827
|
|
|
10846
|
-
_defineProperty(_assertThisInitialized(_this), "
|
|
10828
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10829
|
+
var _this$props;
|
|
10830
|
+
|
|
10831
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10832
|
+
});
|
|
10833
|
+
|
|
10834
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10835
|
+
var _this$props2;
|
|
10836
|
+
|
|
10837
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10838
|
+
});
|
|
10839
|
+
|
|
10840
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10841
|
+
var _this$props3;
|
|
10842
|
+
|
|
10843
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10844
|
+
});
|
|
10845
|
+
|
|
10846
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10847
|
+
var _this$props4;
|
|
10848
|
+
|
|
10849
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10850
|
+
});
|
|
10851
|
+
|
|
10852
|
+
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10847
10853
|
_this.callPlayer('mute');
|
|
10848
10854
|
});
|
|
10849
10855
|
|
|
@@ -10864,17 +10870,13 @@ function (_Component) {
|
|
|
10864
10870
|
value: function load(url) {
|
|
10865
10871
|
var _this2 = this;
|
|
10866
10872
|
|
|
10867
|
-
var _this$
|
|
10868
|
-
playing = _this$
|
|
10869
|
-
muted = _this$
|
|
10870
|
-
controls = _this$
|
|
10871
|
-
_onReady = _this$
|
|
10872
|
-
|
|
10873
|
-
|
|
10874
|
-
onSeek = _this$props.onSeek,
|
|
10875
|
-
onEnded = _this$props.onEnded,
|
|
10876
|
-
config = _this$props.config,
|
|
10877
|
-
onError = _this$props.onError;
|
|
10873
|
+
var _this$props5 = this.props,
|
|
10874
|
+
playing = _this$props5.playing,
|
|
10875
|
+
muted = _this$props5.muted,
|
|
10876
|
+
controls = _this$props5.controls,
|
|
10877
|
+
_onReady = _this$props5.onReady,
|
|
10878
|
+
config = _this$props5.config,
|
|
10879
|
+
onError = _this$props5.onError;
|
|
10878
10880
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10879
10881
|
window._wq = window._wq || [];
|
|
10880
10882
|
|
|
@@ -10891,19 +10893,28 @@ function (_Component) {
|
|
|
10891
10893
|
|
|
10892
10894
|
_this2.unbind();
|
|
10893
10895
|
|
|
10894
|
-
_this2.player.bind('play', onPlay);
|
|
10896
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
10895
10897
|
|
|
10896
|
-
_this2.player.bind('pause', onPause);
|
|
10898
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
10897
10899
|
|
|
10898
|
-
_this2.player.bind('seek', onSeek);
|
|
10900
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
10899
10901
|
|
|
10900
|
-
_this2.player.bind('end', onEnded);
|
|
10902
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
10901
10903
|
|
|
10902
10904
|
_onReady();
|
|
10903
10905
|
}
|
|
10904
10906
|
});
|
|
10905
10907
|
}, onError);
|
|
10906
10908
|
}
|
|
10909
|
+
}, {
|
|
10910
|
+
key: "unbind",
|
|
10911
|
+
value: function unbind() {
|
|
10912
|
+
this.player.unbind('play', this.onPlay);
|
|
10913
|
+
this.player.unbind('pause', this.onPause);
|
|
10914
|
+
this.player.unbind('seek', this.onSeek);
|
|
10915
|
+
this.player.unbind('end', this.onEnded);
|
|
10916
|
+
} // Proxy methods to prevent listener leaks
|
|
10917
|
+
|
|
10907
10918
|
}, {
|
|
10908
10919
|
key: "play",
|
|
10909
10920
|
value: function play() {
|
|
@@ -10914,19 +10925,6 @@ function (_Component) {
|
|
|
10914
10925
|
value: function pause() {
|
|
10915
10926
|
this.callPlayer('pause');
|
|
10916
10927
|
}
|
|
10917
|
-
}, {
|
|
10918
|
-
key: "unbind",
|
|
10919
|
-
value: function unbind() {
|
|
10920
|
-
var _this$props2 = this.props,
|
|
10921
|
-
onPlay = _this$props2.onPlay,
|
|
10922
|
-
onPause = _this$props2.onPause,
|
|
10923
|
-
onSeek = _this$props2.onSeek,
|
|
10924
|
-
onEnded = _this$props2.onEnded;
|
|
10925
|
-
this.player.unbind('play', onPlay);
|
|
10926
|
-
this.player.unbind('pause', onPause);
|
|
10927
|
-
this.player.unbind('seek', onSeek);
|
|
10928
|
-
this.player.unbind('end', onEnded);
|
|
10929
|
-
}
|
|
10930
10928
|
}, {
|
|
10931
10929
|
key: "stop",
|
|
10932
10930
|
value: function stop() {
|
|
@@ -10972,7 +10970,7 @@ function (_Component) {
|
|
|
10972
10970
|
width: '100%',
|
|
10973
10971
|
height: '100%'
|
|
10974
10972
|
};
|
|
10975
|
-
return _react["default"].createElement("div", {
|
|
10973
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10976
10974
|
key: id,
|
|
10977
10975
|
className: className,
|
|
10978
10976
|
style: style
|
|
@@ -11032,12 +11030,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11032
11030
|
|
|
11033
11031
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11034
11032
|
|
|
11035
|
-
function
|
|
11033
|
+
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); }; }
|
|
11036
11034
|
|
|
11037
|
-
function
|
|
11035
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11038
11036
|
|
|
11039
11037
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11040
11038
|
|
|
11039
|
+
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; } }
|
|
11040
|
+
|
|
11041
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11042
|
+
|
|
11041
11043
|
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); }
|
|
11042
11044
|
|
|
11043
11045
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11050,14 +11052,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
11050
11052
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
11051
11053
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
11052
11054
|
|
|
11053
|
-
var Twitch =
|
|
11054
|
-
/*#__PURE__*/
|
|
11055
|
-
function (_Component) {
|
|
11055
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
11056
11056
|
_inherits(Twitch, _Component);
|
|
11057
11057
|
|
|
11058
|
-
|
|
11059
|
-
var _getPrototypeOf2;
|
|
11058
|
+
var _super = _createSuper(Twitch);
|
|
11060
11059
|
|
|
11060
|
+
function Twitch() {
|
|
11061
11061
|
var _this;
|
|
11062
11062
|
|
|
11063
11063
|
_classCallCheck(this, Twitch);
|
|
@@ -11066,7 +11066,7 @@ function (_Component) {
|
|
|
11066
11066
|
args[_key] = arguments[_key];
|
|
11067
11067
|
}
|
|
11068
11068
|
|
|
11069
|
-
_this =
|
|
11069
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11070
11070
|
|
|
11071
11071
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11072
11072
|
|
|
@@ -11187,7 +11187,7 @@ function (_Component) {
|
|
|
11187
11187
|
width: '100%',
|
|
11188
11188
|
height: '100%'
|
|
11189
11189
|
};
|
|
11190
|
-
return _react["default"].createElement("div", {
|
|
11190
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11191
11191
|
style: style,
|
|
11192
11192
|
id: this.playerID
|
|
11193
11193
|
});
|
|
@@ -11240,11 +11240,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11240
11240
|
|
|
11241
11241
|
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; }
|
|
11242
11242
|
|
|
11243
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11243
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11244
|
+
|
|
11245
|
+
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."); }
|
|
11246
|
+
|
|
11247
|
+
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); }
|
|
11244
11248
|
|
|
11245
|
-
function
|
|
11249
|
+
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; }
|
|
11246
11250
|
|
|
11247
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
11251
|
+
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; }
|
|
11248
11252
|
|
|
11249
11253
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11250
11254
|
|
|
@@ -11254,12 +11258,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11254
11258
|
|
|
11255
11259
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11256
11260
|
|
|
11257
|
-
function
|
|
11261
|
+
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); }; }
|
|
11258
11262
|
|
|
11259
|
-
function
|
|
11263
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11260
11264
|
|
|
11261
11265
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11262
11266
|
|
|
11267
|
+
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; } }
|
|
11268
|
+
|
|
11269
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11270
|
+
|
|
11263
11271
|
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); }
|
|
11264
11272
|
|
|
11265
11273
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11271,14 +11279,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
11271
11279
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11272
11280
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11273
11281
|
|
|
11274
|
-
var DailyMotion =
|
|
11275
|
-
/*#__PURE__*/
|
|
11276
|
-
function (_Component) {
|
|
11282
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
11277
11283
|
_inherits(DailyMotion, _Component);
|
|
11278
11284
|
|
|
11279
|
-
|
|
11280
|
-
var _getPrototypeOf2;
|
|
11285
|
+
var _super = _createSuper(DailyMotion);
|
|
11281
11286
|
|
|
11287
|
+
function DailyMotion() {
|
|
11282
11288
|
var _this;
|
|
11283
11289
|
|
|
11284
11290
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11287,7 +11293,7 @@ function (_Component) {
|
|
|
11287
11293
|
args[_key] = arguments[_key];
|
|
11288
11294
|
}
|
|
11289
11295
|
|
|
11290
|
-
_this =
|
|
11296
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11291
11297
|
|
|
11292
11298
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11293
11299
|
|
|
@@ -11416,9 +11422,9 @@ function (_Component) {
|
|
|
11416
11422
|
height: '100%',
|
|
11417
11423
|
display: display
|
|
11418
11424
|
};
|
|
11419
|
-
return _react["default"].createElement("div", {
|
|
11425
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11420
11426
|
style: style
|
|
11421
|
-
}, _react["default"].createElement("div", {
|
|
11427
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
11422
11428
|
ref: this.ref
|
|
11423
11429
|
}));
|
|
11424
11430
|
}
|
|
@@ -11476,12 +11482,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11476
11482
|
|
|
11477
11483
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11478
11484
|
|
|
11479
|
-
function
|
|
11485
|
+
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); }; }
|
|
11480
11486
|
|
|
11481
|
-
function
|
|
11487
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11482
11488
|
|
|
11483
11489
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11484
11490
|
|
|
11491
|
+
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; } }
|
|
11492
|
+
|
|
11493
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11494
|
+
|
|
11485
11495
|
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); }
|
|
11486
11496
|
|
|
11487
11497
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11492,14 +11502,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11492
11502
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11493
11503
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11494
11504
|
|
|
11495
|
-
var Mixcloud =
|
|
11496
|
-
/*#__PURE__*/
|
|
11497
|
-
function (_Component) {
|
|
11505
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
11498
11506
|
_inherits(Mixcloud, _Component);
|
|
11499
11507
|
|
|
11500
|
-
|
|
11501
|
-
var _getPrototypeOf2;
|
|
11508
|
+
var _super = _createSuper(Mixcloud);
|
|
11502
11509
|
|
|
11510
|
+
function Mixcloud() {
|
|
11503
11511
|
var _this;
|
|
11504
11512
|
|
|
11505
11513
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11508,7 +11516,7 @@ function (_Component) {
|
|
|
11508
11516
|
args[_key] = arguments[_key];
|
|
11509
11517
|
}
|
|
11510
11518
|
|
|
11511
|
-
_this =
|
|
11519
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11512
11520
|
|
|
11513
11521
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11514
11522
|
|
|
@@ -11611,7 +11619,7 @@ function (_Component) {
|
|
|
11611
11619
|
})); // We have to give the iframe a key here to prevent a
|
|
11612
11620
|
// weird dialog appearing when loading a new track
|
|
11613
11621
|
|
|
11614
|
-
return _react["default"].createElement("iframe", {
|
|
11622
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
11615
11623
|
key: id,
|
|
11616
11624
|
ref: this.ref,
|
|
11617
11625
|
style: style,
|
|
@@ -11671,23 +11679,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11671
11679
|
|
|
11672
11680
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11673
11681
|
|
|
11674
|
-
function
|
|
11682
|
+
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); }; }
|
|
11675
11683
|
|
|
11676
|
-
function
|
|
11684
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11677
11685
|
|
|
11678
11686
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11679
11687
|
|
|
11688
|
+
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; } }
|
|
11689
|
+
|
|
11690
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11691
|
+
|
|
11680
11692
|
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); }
|
|
11681
11693
|
|
|
11682
11694
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11683
11695
|
|
|
11684
11696
|
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; }
|
|
11685
11697
|
|
|
11698
|
+
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; } } }; }
|
|
11699
|
+
|
|
11700
|
+
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); }
|
|
11701
|
+
|
|
11702
|
+
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; }
|
|
11703
|
+
|
|
11686
11704
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11687
11705
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11688
11706
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11689
11707
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11690
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11708
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
11691
11709
|
var HLS_GLOBAL = 'Hls';
|
|
11692
11710
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11693
11711
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11696,12 +11714,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11696
11714
|
|
|
11697
11715
|
function canPlay(url) {
|
|
11698
11716
|
if (url instanceof Array) {
|
|
11699
|
-
var
|
|
11700
|
-
|
|
11701
|
-
var _iteratorError = undefined;
|
|
11717
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
11718
|
+
_step;
|
|
11702
11719
|
|
|
11703
11720
|
try {
|
|
11704
|
-
for (
|
|
11721
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
11705
11722
|
var item = _step.value;
|
|
11706
11723
|
|
|
11707
11724
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11713,18 +11730,9 @@ function canPlay(url) {
|
|
|
11713
11730
|
}
|
|
11714
11731
|
}
|
|
11715
11732
|
} catch (err) {
|
|
11716
|
-
|
|
11717
|
-
_iteratorError = err;
|
|
11733
|
+
_iterator.e(err);
|
|
11718
11734
|
} finally {
|
|
11719
|
-
|
|
11720
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11721
|
-
_iterator["return"]();
|
|
11722
|
-
}
|
|
11723
|
-
} finally {
|
|
11724
|
-
if (_didIteratorError) {
|
|
11725
|
-
throw _iteratorError;
|
|
11726
|
-
}
|
|
11727
|
-
}
|
|
11735
|
+
_iterator.f();
|
|
11728
11736
|
}
|
|
11729
11737
|
|
|
11730
11738
|
return false;
|
|
@@ -11748,14 +11756,12 @@ function canEnablePIP(url) {
|
|
|
11748
11756
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11749
11757
|
}
|
|
11750
11758
|
|
|
11751
|
-
var FilePlayer =
|
|
11752
|
-
/*#__PURE__*/
|
|
11753
|
-
function (_Component) {
|
|
11759
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
11754
11760
|
_inherits(FilePlayer, _Component);
|
|
11755
11761
|
|
|
11756
|
-
|
|
11757
|
-
var _getPrototypeOf2;
|
|
11762
|
+
var _super = _createSuper(FilePlayer);
|
|
11758
11763
|
|
|
11764
|
+
function FilePlayer() {
|
|
11759
11765
|
var _this;
|
|
11760
11766
|
|
|
11761
11767
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11764,7 +11770,7 @@ function (_Component) {
|
|
|
11764
11770
|
_args[_key] = arguments[_key];
|
|
11765
11771
|
}
|
|
11766
11772
|
|
|
11767
|
-
_this =
|
|
11773
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
11768
11774
|
|
|
11769
11775
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11770
11776
|
var _this$props;
|
|
@@ -11851,19 +11857,19 @@ function (_Component) {
|
|
|
11851
11857
|
|
|
11852
11858
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11853
11859
|
if (typeof source === 'string') {
|
|
11854
|
-
return _react["default"].createElement("source", {
|
|
11860
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
11855
11861
|
key: index,
|
|
11856
11862
|
src: source
|
|
11857
11863
|
});
|
|
11858
11864
|
}
|
|
11859
11865
|
|
|
11860
|
-
return _react["default"].createElement("source", _extends({
|
|
11866
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
11861
11867
|
key: index
|
|
11862
11868
|
}, source));
|
|
11863
11869
|
});
|
|
11864
11870
|
|
|
11865
11871
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11866
|
-
return _react["default"].createElement("track", _extends({
|
|
11872
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
11867
11873
|
key: index
|
|
11868
11874
|
}, track));
|
|
11869
11875
|
});
|
|
@@ -11901,6 +11907,10 @@ function (_Component) {
|
|
|
11901
11907
|
key: "componentWillUnmount",
|
|
11902
11908
|
value: function componentWillUnmount() {
|
|
11903
11909
|
this.removeListeners(this.player);
|
|
11910
|
+
|
|
11911
|
+
if (this.hls) {
|
|
11912
|
+
this.hls.destroy();
|
|
11913
|
+
}
|
|
11904
11914
|
}
|
|
11905
11915
|
}, {
|
|
11906
11916
|
key: "addListeners",
|
|
@@ -12031,10 +12041,6 @@ function (_Component) {
|
|
|
12031
12041
|
value: function stop() {
|
|
12032
12042
|
this.player.removeAttribute('src');
|
|
12033
12043
|
|
|
12034
|
-
if (this.hls) {
|
|
12035
|
-
this.hls.destroy();
|
|
12036
|
-
}
|
|
12037
|
-
|
|
12038
12044
|
if (this.dash) {
|
|
12039
12045
|
this.dash.reset();
|
|
12040
12046
|
}
|
|
@@ -12146,7 +12152,7 @@ function (_Component) {
|
|
|
12146
12152
|
width: width === 'auto' ? width : '100%',
|
|
12147
12153
|
height: height === 'auto' ? height : '100%'
|
|
12148
12154
|
};
|
|
12149
|
-
return _react["default"].createElement(Element, _extends({
|
|
12155
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
12150
12156
|
ref: this.ref,
|
|
12151
12157
|
src: this.getSource(url),
|
|
12152
12158
|
style: style,
|
|
@@ -12236,12 +12242,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12236
12242
|
|
|
12237
12243
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12238
12244
|
|
|
12239
|
-
function
|
|
12245
|
+
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); }; }
|
|
12240
12246
|
|
|
12241
|
-
function
|
|
12247
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12242
12248
|
|
|
12243
12249
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12244
12250
|
|
|
12251
|
+
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; } }
|
|
12252
|
+
|
|
12253
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12254
|
+
|
|
12245
12255
|
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); }
|
|
12246
12256
|
|
|
12247
12257
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12250,14 +12260,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12250
12260
|
|
|
12251
12261
|
var ICON_SIZE = '64px';
|
|
12252
12262
|
|
|
12253
|
-
var Preview =
|
|
12254
|
-
/*#__PURE__*/
|
|
12255
|
-
function (_Component) {
|
|
12263
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
12256
12264
|
_inherits(Preview, _Component);
|
|
12257
12265
|
|
|
12258
|
-
|
|
12259
|
-
var _getPrototypeOf2;
|
|
12266
|
+
var _super = _createSuper(Preview);
|
|
12260
12267
|
|
|
12268
|
+
function Preview() {
|
|
12261
12269
|
var _this;
|
|
12262
12270
|
|
|
12263
12271
|
_classCallCheck(this, Preview);
|
|
@@ -12266,7 +12274,7 @@ function (_Component) {
|
|
|
12266
12274
|
args[_key] = arguments[_key];
|
|
12267
12275
|
}
|
|
12268
12276
|
|
|
12269
|
-
_this =
|
|
12277
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12270
12278
|
|
|
12271
12279
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12272
12280
|
|
|
@@ -12364,15 +12372,15 @@ function (_Component) {
|
|
|
12364
12372
|
}
|
|
12365
12373
|
};
|
|
12366
12374
|
|
|
12367
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12375
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
12368
12376
|
style: styles.shadow,
|
|
12369
12377
|
className: "react-player__shadow"
|
|
12370
|
-
}, _react["default"].createElement("div", {
|
|
12378
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
12371
12379
|
style: styles.playIcon,
|
|
12372
12380
|
className: "react-player__play-icon"
|
|
12373
12381
|
}));
|
|
12374
12382
|
|
|
12375
|
-
return _react["default"].createElement("div", {
|
|
12383
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
12376
12384
|
style: styles.preview,
|
|
12377
12385
|
className: "react-player__preview",
|
|
12378
12386
|
onClick: onClick
|
|
@@ -12409,6 +12417,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12409
12417
|
|
|
12410
12418
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12411
12419
|
|
|
12420
|
+
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; } } }; }
|
|
12421
|
+
|
|
12422
|
+
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); }
|
|
12423
|
+
|
|
12424
|
+
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; }
|
|
12425
|
+
|
|
12412
12426
|
var PRELOAD_PLAYERS = [{
|
|
12413
12427
|
Player: YouTube_1.YouTube,
|
|
12414
12428
|
configKey: 'youtube',
|
|
@@ -12429,16 +12443,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12429
12443
|
|
|
12430
12444
|
function renderPreloadPlayers(url, controls, config) {
|
|
12431
12445
|
var players = [];
|
|
12432
|
-
|
|
12433
|
-
var
|
|
12434
|
-
|
|
12446
|
+
|
|
12447
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
12448
|
+
_step;
|
|
12435
12449
|
|
|
12436
12450
|
try {
|
|
12437
|
-
for (
|
|
12451
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12438
12452
|
var player = _step.value;
|
|
12439
12453
|
|
|
12440
12454
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12441
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
12455
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
12442
12456
|
key: player.Player.displayName,
|
|
12443
12457
|
activePlayer: player.Player,
|
|
12444
12458
|
url: player.url,
|
|
@@ -12450,18 +12464,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12450
12464
|
}
|
|
12451
12465
|
}
|
|
12452
12466
|
} catch (err) {
|
|
12453
|
-
|
|
12454
|
-
_iteratorError = err;
|
|
12467
|
+
_iterator.e(err);
|
|
12455
12468
|
} finally {
|
|
12456
|
-
|
|
12457
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12458
|
-
_iterator["return"]();
|
|
12459
|
-
}
|
|
12460
|
-
} finally {
|
|
12461
|
-
if (_didIteratorError) {
|
|
12462
|
-
throw _iteratorError;
|
|
12463
|
-
}
|
|
12464
|
-
}
|
|
12469
|
+
_iterator.f();
|
|
12465
12470
|
}
|
|
12466
12471
|
|
|
12467
12472
|
return players;
|
|
@@ -12585,13 +12590,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12585
12590
|
|
|
12586
12591
|
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); }
|
|
12587
12592
|
|
|
12588
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12593
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
12589
12594
|
|
|
12590
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12595
|
+
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."); }
|
|
12591
12596
|
|
|
12592
|
-
function
|
|
12597
|
+
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); }
|
|
12593
12598
|
|
|
12594
|
-
function
|
|
12599
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
12600
|
+
|
|
12601
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12602
|
+
|
|
12603
|
+
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; }
|
|
12595
12604
|
|
|
12596
12605
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12597
12606
|
|
|
@@ -12599,12 +12608,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12599
12608
|
|
|
12600
12609
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12601
12610
|
|
|
12602
|
-
function
|
|
12611
|
+
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); }; }
|
|
12603
12612
|
|
|
12604
|
-
function
|
|
12613
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12605
12614
|
|
|
12606
12615
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12607
12616
|
|
|
12617
|
+
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; } }
|
|
12618
|
+
|
|
12619
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12620
|
+
|
|
12608
12621
|
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); }
|
|
12609
12622
|
|
|
12610
12623
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12614,14 +12627,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12614
12627
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12615
12628
|
var customPlayers = [];
|
|
12616
12629
|
|
|
12617
|
-
var ReactPlayer =
|
|
12618
|
-
/*#__PURE__*/
|
|
12619
|
-
function (_Component) {
|
|
12630
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
12620
12631
|
_inherits(ReactPlayer, _Component);
|
|
12621
12632
|
|
|
12622
|
-
|
|
12623
|
-
var _getPrototypeOf2;
|
|
12633
|
+
var _super = _createSuper(ReactPlayer);
|
|
12624
12634
|
|
|
12635
|
+
function ReactPlayer() {
|
|
12625
12636
|
var _this;
|
|
12626
12637
|
|
|
12627
12638
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12630,7 +12641,7 @@ function (_Component) {
|
|
|
12630
12641
|
args[_key] = arguments[_key];
|
|
12631
12642
|
}
|
|
12632
12643
|
|
|
12633
|
-
_this =
|
|
12644
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12634
12645
|
|
|
12635
12646
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12636
12647
|
|
|
@@ -12741,7 +12752,7 @@ function (_Component) {
|
|
|
12741
12752
|
key: "renderActivePlayer",
|
|
12742
12753
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12743
12754
|
if (!url) return null;
|
|
12744
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12755
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12745
12756
|
key: activePlayer.displayName,
|
|
12746
12757
|
ref: this.activePlayerRef,
|
|
12747
12758
|
config: this.config,
|
|
@@ -12778,14 +12789,14 @@ function (_Component) {
|
|
|
12778
12789
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12779
12790
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12780
12791
|
|
|
12781
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12792
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
12782
12793
|
url: url,
|
|
12783
12794
|
light: light,
|
|
12784
12795
|
playIcon: playIcon,
|
|
12785
12796
|
onClick: this.handleClickPreview
|
|
12786
12797
|
});
|
|
12787
12798
|
|
|
12788
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
12799
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
12789
12800
|
ref: this.wrapperRef,
|
|
12790
12801
|
style: _objectSpread({}, style, {
|
|
12791
12802
|
width: width,
|
|
@@ -13390,7 +13401,7 @@ var Poll = function Poll(_ref) {
|
|
|
13390
13401
|
);
|
|
13391
13402
|
};
|
|
13392
13403
|
|
|
13393
|
-
var numberOfPaginations = main.
|
|
13404
|
+
var numberOfPaginations = main.main_38 ? 4 : 10;
|
|
13394
13405
|
|
|
13395
13406
|
var Quiz = function Quiz(_ref) {
|
|
13396
13407
|
var quizzes = _ref.quizzes,
|
|
@@ -13480,7 +13491,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
13480
13491
|
var renderPagination = function renderPagination() {
|
|
13481
13492
|
return React__default.createElement(
|
|
13482
13493
|
Pagination,
|
|
13483
|
-
{ className: 'p-0 m-0', size: main.
|
|
13494
|
+
{ className: 'p-0 m-0', size: main.main_38 && 'sm' },
|
|
13484
13495
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
13485
13496
|
return changePage('first');
|
|
13486
13497
|
}, disabled: currentPage === 1 }),
|
|
@@ -13593,10 +13604,10 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
13593
13604
|
|
|
13594
13605
|
return React__default.createElement(
|
|
13595
13606
|
'div',
|
|
13596
|
-
{ className: 'mt-3 mb-
|
|
13607
|
+
{ className: 'mt-3 mb-4' },
|
|
13597
13608
|
React__default.createElement(
|
|
13598
13609
|
reactBootstrap.Carousel,
|
|
13599
|
-
{ activeIndex: carouselIndex, onSelect: onChangeSlide },
|
|
13610
|
+
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
13600
13611
|
slides && slides.map(function (slide) {
|
|
13601
13612
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
13602
13613
|
return React__default.createElement(
|
|
@@ -13621,6 +13632,11 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
13621
13632
|
}
|
|
13622
13633
|
return null;
|
|
13623
13634
|
})
|
|
13635
|
+
),
|
|
13636
|
+
React__default.createElement(
|
|
13637
|
+
'style',
|
|
13638
|
+
{ jsx: 'true' },
|
|
13639
|
+
'\n .carousel-indicators {\n bottom: -2.5rem!important;\n }\n .carousel-indicators li{\n width: 20px;\n height: 20px;\n border-radius: 50%!important;\n background-color: var(--secondary);\n }\n .carousel-control-prev{\n justify-content: flex-start;\n \n } \n .carousel-control-next {\n justify-content: flex-end;\n \n }\n '
|
|
13624
13640
|
)
|
|
13625
13641
|
);
|
|
13626
13642
|
};
|
|
@@ -13644,7 +13660,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
13644
13660
|
};
|
|
13645
13661
|
|
|
13646
13662
|
var Figure = dynamic(function () {
|
|
13647
|
-
return Promise.resolve().then(function () { return require('./Figure-
|
|
13663
|
+
return Promise.resolve().then(function () { return require('./Figure-a47ec3a7.js'); });
|
|
13648
13664
|
}, { ssr: false });
|
|
13649
13665
|
|
|
13650
13666
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -13866,7 +13882,7 @@ var Feature = function Feature(props) {
|
|
|
13866
13882
|
};
|
|
13867
13883
|
//image width
|
|
13868
13884
|
var imageWidth = 900;
|
|
13869
|
-
if (main.
|
|
13885
|
+
if (main.main_39) {
|
|
13870
13886
|
imageWidth = 450;
|
|
13871
13887
|
}
|
|
13872
13888
|
|
|
@@ -14218,16 +14234,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14218
14234
|
_ref$className = _ref.className,
|
|
14219
14235
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14220
14236
|
|
|
14221
|
-
/*
|
|
14222
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14223
|
-
example:
|
|
14224
|
-
<RelatedTopicDropdown
|
|
14225
|
-
page='/clinical'
|
|
14226
|
-
exclude="clinical"
|
|
14227
|
-
className='mb-3'
|
|
14228
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14229
|
-
subTaxonomies={props.subTaxonomies}
|
|
14230
|
-
/>
|
|
14237
|
+
/*
|
|
14238
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14239
|
+
example:
|
|
14240
|
+
<RelatedTopicDropdown
|
|
14241
|
+
page='/clinical'
|
|
14242
|
+
exclude="clinical"
|
|
14243
|
+
className='mb-3'
|
|
14244
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14245
|
+
subTaxonomies={props.subTaxonomies}
|
|
14246
|
+
/>
|
|
14231
14247
|
*/
|
|
14232
14248
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14233
14249
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14265,25 +14281,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14265
14281
|
}
|
|
14266
14282
|
};
|
|
14267
14283
|
|
|
14268
|
-
/*
|
|
14269
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14270
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14271
|
-
|
|
14272
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14273
|
-
|
|
14274
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14275
|
-
|
|
14276
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14277
|
-
...,
|
|
14278
|
-
'ancestor': parent->parent->identifier,
|
|
14279
|
-
'parent': parent->identifier,
|
|
14280
|
-
'path': identifier
|
|
14281
|
-
},
|
|
14282
|
-
'document_group': documentGroup-> {
|
|
14283
|
-
name,
|
|
14284
|
-
'parent': parent->identifier,
|
|
14285
|
-
'path': identifier.current
|
|
14286
|
-
}
|
|
14284
|
+
/*
|
|
14285
|
+
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14286
|
+
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14287
|
+
|
|
14288
|
+
- accepts any normal html arrtibute (style, id, class)
|
|
14289
|
+
|
|
14290
|
+
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14291
|
+
|
|
14292
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14293
|
+
...,
|
|
14294
|
+
'ancestor': parent->parent->identifier,
|
|
14295
|
+
'parent': parent->identifier,
|
|
14296
|
+
'path': identifier
|
|
14297
|
+
},
|
|
14298
|
+
'document_group': documentGroup-> {
|
|
14299
|
+
name,
|
|
14300
|
+
'parent': parent->identifier,
|
|
14301
|
+
'path': identifier.current
|
|
14302
|
+
}
|
|
14287
14303
|
*/
|
|
14288
14304
|
|
|
14289
14305
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -15191,34 +15207,34 @@ var GridHero = function GridHero(props) {
|
|
|
15191
15207
|
);
|
|
15192
15208
|
};
|
|
15193
15209
|
|
|
15194
|
-
/*
|
|
15195
|
-
Sample query
|
|
15196
|
-
let references = ''
|
|
15197
|
-
if(article.taxonomyMapping.length > 0){
|
|
15198
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15199
|
-
references = references + `references('${ref._ref}') `
|
|
15200
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15201
|
-
references = references + ` && `
|
|
15202
|
-
}
|
|
15203
|
-
})
|
|
15204
|
-
}
|
|
15205
|
-
|
|
15206
|
-
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] {
|
|
15207
|
-
...,
|
|
15208
|
-
title,
|
|
15209
|
-
summary,
|
|
15210
|
-
thumbnail,
|
|
15211
|
-
url,
|
|
15212
|
-
published,
|
|
15213
|
-
authorMapping[]->,
|
|
15214
|
-
contentCategory->
|
|
15215
|
-
}`
|
|
15216
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15217
|
-
|
|
15218
|
-
Sample usage
|
|
15219
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15220
|
-
|
|
15221
|
-
|
|
15210
|
+
/*
|
|
15211
|
+
Sample query
|
|
15212
|
+
let references = ''
|
|
15213
|
+
if(article.taxonomyMapping.length > 0){
|
|
15214
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15215
|
+
references = references + `references('${ref._ref}') `
|
|
15216
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15217
|
+
references = references + ` && `
|
|
15218
|
+
}
|
|
15219
|
+
})
|
|
15220
|
+
}
|
|
15221
|
+
|
|
15222
|
+
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] {
|
|
15223
|
+
...,
|
|
15224
|
+
title,
|
|
15225
|
+
summary,
|
|
15226
|
+
thumbnail,
|
|
15227
|
+
url,
|
|
15228
|
+
published,
|
|
15229
|
+
authorMapping[]->,
|
|
15230
|
+
contentCategory->
|
|
15231
|
+
}`
|
|
15232
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15233
|
+
|
|
15234
|
+
Sample usage
|
|
15235
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15236
|
+
|
|
15237
|
+
|
|
15222
15238
|
*/
|
|
15223
15239
|
var RelatedContent = function RelatedContent(props) {
|
|
15224
15240
|
var client = props.client,
|
|
@@ -15285,21 +15301,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15285
15301
|
);
|
|
15286
15302
|
};
|
|
15287
15303
|
|
|
15288
|
-
/*
|
|
15289
|
-
Example usage - targetedonc.com/latest-conference
|
|
15290
|
-
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] {
|
|
15291
|
-
...,
|
|
15292
|
-
title,
|
|
15293
|
-
summary,
|
|
15294
|
-
thumbnail,
|
|
15295
|
-
url,
|
|
15296
|
-
published,
|
|
15297
|
-
documentGroup->,
|
|
15298
|
-
contentCategory->,
|
|
15299
|
-
'pageNumber': ${currentPage}
|
|
15300
|
-
}`
|
|
15301
|
-
|
|
15302
|
-
const posts = await client.fetch(query, params)
|
|
15304
|
+
/*
|
|
15305
|
+
Example usage - targetedonc.com/latest-conference
|
|
15306
|
+
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] {
|
|
15307
|
+
...,
|
|
15308
|
+
title,
|
|
15309
|
+
summary,
|
|
15310
|
+
thumbnail,
|
|
15311
|
+
url,
|
|
15312
|
+
published,
|
|
15313
|
+
documentGroup->,
|
|
15314
|
+
contentCategory->,
|
|
15315
|
+
'pageNumber': ${currentPage}
|
|
15316
|
+
}`
|
|
15317
|
+
|
|
15318
|
+
const posts = await client.fetch(query, params)
|
|
15303
15319
|
*/
|
|
15304
15320
|
|
|
15305
15321
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -16527,7 +16543,7 @@ var Article = function Article(props) {
|
|
|
16527
16543
|
issue.volume && React__default.createElement(
|
|
16528
16544
|
'span',
|
|
16529
16545
|
null,
|
|
16530
|
-
'Volume ' + issue.volume
|
|
16546
|
+
' Volume ' + issue.volume
|
|
16531
16547
|
)
|
|
16532
16548
|
)
|
|
16533
16549
|
)
|
|
@@ -16565,7 +16581,7 @@ var Article = function Article(props) {
|
|
|
16565
16581
|
React__default.createElement('br', null),
|
|
16566
16582
|
React__default.createElement('br', null)
|
|
16567
16583
|
),
|
|
16568
|
-
main.
|
|
16584
|
+
main.main_39 && props.article.Ads.map(function (ad, index) {
|
|
16569
16585
|
if (index === 0) {
|
|
16570
16586
|
return React__default.createElement(
|
|
16571
16587
|
'div',
|
|
@@ -16590,7 +16606,7 @@ var Article = function Article(props) {
|
|
|
16590
16606
|
renderIsiContent(props.article)
|
|
16591
16607
|
)
|
|
16592
16608
|
),
|
|
16593
|
-
main.
|
|
16609
|
+
main.main_39 && props.article.Ads.map(function (ad, index) {
|
|
16594
16610
|
if (index > 0) {
|
|
16595
16611
|
return React__default.createElement(
|
|
16596
16612
|
'div',
|
|
@@ -16697,7 +16713,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16697
16713
|
setQueueData = _useState2[1];
|
|
16698
16714
|
|
|
16699
16715
|
var refreshAD = function refreshAD(path) {
|
|
16700
|
-
if (!main.
|
|
16716
|
+
if (!main.main_39) {
|
|
16701
16717
|
var activeArticle = queueData.find(function (item) {
|
|
16702
16718
|
return item.url.current === path;
|
|
16703
16719
|
});
|
|
@@ -16807,27 +16823,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16807
16823
|
};
|
|
16808
16824
|
|
|
16809
16825
|
var KMTracker = function KMTracker(props) {
|
|
16810
|
-
|
|
16826
|
+
var id = props.id;
|
|
16811
16827
|
|
|
16812
|
-
|
|
16828
|
+
if (document && id) {
|
|
16813
16829
|
(function () {
|
|
16814
|
-
|
|
16830
|
+
var ecnJquery = document.createElement('script');
|
|
16815
16831
|
|
|
16816
|
-
|
|
16817
|
-
|
|
16818
|
-
|
|
16832
|
+
ecnJquery.type = 'text/javascript';
|
|
16833
|
+
ecnJquery.async = true;
|
|
16834
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
16819
16835
|
|
|
16820
|
-
|
|
16836
|
+
var ecnScript = document.createElement('script');
|
|
16821
16837
|
|
|
16822
|
-
|
|
16823
|
-
|
|
16824
|
-
|
|
16825
|
-
|
|
16838
|
+
ecnScript.type = 'text/javascript';
|
|
16839
|
+
ecnScript.async = true;
|
|
16840
|
+
ecnScript.id = 'km-tracker';
|
|
16841
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
16826
16842
|
|
|
16827
|
-
|
|
16828
|
-
|
|
16829
|
-
|
|
16830
|
-
|
|
16843
|
+
document.head.appendChild(ecnJquery);
|
|
16844
|
+
document.head.appendChild(ecnScript);
|
|
16845
|
+
})();
|
|
16846
|
+
}
|
|
16831
16847
|
};
|
|
16832
16848
|
|
|
16833
16849
|
var returnFormField = function returnFormField(_ref) {
|
|
@@ -18854,9 +18870,6 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
18854
18870
|
if (value != null) {
|
|
18855
18871
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
18856
18872
|
var desc = $gOPD(value, parts[i]);
|
|
18857
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
18858
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
18859
|
-
}
|
|
18860
18873
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
18861
18874
|
} else {
|
|
18862
18875
|
value = value[parts[i]];
|
|
@@ -18889,16 +18902,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
18889
18902
|
return intrinsic;
|
|
18890
18903
|
};
|
|
18891
18904
|
|
|
18892
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%'
|
|
18893
|
-
|
|
18894
|
-
if ($defineProperty) {
|
|
18895
|
-
try {
|
|
18896
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
18897
|
-
} catch (e) {
|
|
18898
|
-
// IE 8 has a broken defineProperty
|
|
18899
|
-
$defineProperty = null;
|
|
18900
|
-
}
|
|
18901
|
-
}
|
|
18905
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
18902
18906
|
|
|
18903
18907
|
|
|
18904
18908
|
|
|
@@ -19041,95 +19045,103 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
19041
19045
|
return obj;
|
|
19042
19046
|
};
|
|
19043
19047
|
|
|
19044
|
-
|
|
19045
|
-
if ($gOPD$1) {
|
|
19046
|
-
try {
|
|
19047
|
-
$gOPD$1([], 'length');
|
|
19048
|
-
} catch (e) {
|
|
19049
|
-
// IE 8 has a broken gOPD
|
|
19050
|
-
$gOPD$1 = null;
|
|
19051
|
-
}
|
|
19052
|
-
}
|
|
19048
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
19053
19049
|
|
|
19054
|
-
var
|
|
19050
|
+
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
19051
|
+
if (typeof Desc === 'undefined') {
|
|
19052
|
+
return false;
|
|
19053
|
+
}
|
|
19055
19054
|
|
|
19056
|
-
|
|
19055
|
+
assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
|
|
19057
19056
|
|
|
19058
|
-
|
|
19059
|
-
|
|
19057
|
+
if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
|
|
19058
|
+
return false;
|
|
19059
|
+
}
|
|
19060
19060
|
|
|
19061
|
-
|
|
19061
|
+
return true;
|
|
19062
|
+
};
|
|
19062
19063
|
|
|
19063
|
-
var
|
|
19064
|
-
return
|
|
19064
|
+
var isPrimitive$1 = function isPrimitive(value) {
|
|
19065
|
+
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
19065
19066
|
};
|
|
19066
19067
|
|
|
19068
|
+
var $Object = GetIntrinsic('%Object%');
|
|
19069
|
+
|
|
19070
|
+
|
|
19071
|
+
|
|
19072
|
+
var $preventExtensions = $Object.preventExtensions;
|
|
19073
|
+
var $isExtensible = $Object.isExtensible;
|
|
19074
|
+
|
|
19075
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
19076
|
+
|
|
19077
|
+
var IsExtensible = $preventExtensions
|
|
19078
|
+
? function IsExtensible(obj) {
|
|
19079
|
+
return !isPrimitive$1(obj) && $isExtensible(obj);
|
|
19080
|
+
}
|
|
19081
|
+
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
19082
|
+
return true;
|
|
19083
|
+
};
|
|
19084
|
+
|
|
19067
19085
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
19068
19086
|
|
|
19069
19087
|
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
19070
19088
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
19071
19089
|
};
|
|
19072
19090
|
|
|
19073
|
-
var
|
|
19074
|
-
|
|
19091
|
+
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
19092
|
+
return a !== a;
|
|
19093
|
+
};
|
|
19075
19094
|
|
|
19076
|
-
|
|
19077
|
-
try {
|
|
19078
|
-
var lastIndex = value.lastIndex;
|
|
19079
|
-
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
19095
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
19080
19096
|
|
|
19081
|
-
|
|
19097
|
+
var SameValue = function SameValue(x, y) {
|
|
19098
|
+
if (x === y) { // 0 === -0, but they are not identical.
|
|
19099
|
+
if (x === 0) { return 1 / x === 1 / y; }
|
|
19082
19100
|
return true;
|
|
19083
|
-
} catch (e) {
|
|
19084
|
-
return false;
|
|
19085
|
-
} finally {
|
|
19086
|
-
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
19087
19101
|
}
|
|
19102
|
+
return _isNaN(x) && _isNaN(y);
|
|
19088
19103
|
};
|
|
19089
|
-
var toStr$5 = Object.prototype.toString;
|
|
19090
|
-
var regexClass = '[object RegExp]';
|
|
19091
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19092
19104
|
|
|
19093
|
-
var
|
|
19094
|
-
|
|
19095
|
-
return false;
|
|
19096
|
-
}
|
|
19097
|
-
if (!hasToStringTag) {
|
|
19098
|
-
return toStr$5.call(value) === regexClass;
|
|
19099
|
-
}
|
|
19105
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
19106
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
19100
19107
|
|
|
19101
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
19102
|
-
var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
|
|
19103
|
-
if (!hasLastIndexDataProperty) {
|
|
19104
|
-
return false;
|
|
19105
|
-
}
|
|
19106
19108
|
|
|
19107
|
-
return tryRegexExecCall(value);
|
|
19108
|
-
};
|
|
19109
19109
|
|
|
19110
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
19111
19110
|
|
|
19112
|
-
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
19113
19111
|
|
|
19114
|
-
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
19115
19112
|
|
|
19116
19113
|
|
|
19117
19114
|
|
|
19118
19115
|
|
|
19119
19116
|
|
|
19120
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-
|
|
19117
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
19121
19118
|
|
|
19122
|
-
var
|
|
19123
|
-
if (
|
|
19119
|
+
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
19120
|
+
if (Type$1(O) !== 'Object') {
|
|
19121
|
+
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
19122
|
+
}
|
|
19123
|
+
if (!IsPropertyKey(P)) {
|
|
19124
|
+
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
19125
|
+
}
|
|
19126
|
+
var oldDesc = $gOPD$1(O, P);
|
|
19127
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
19128
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
19129
|
+
if (immutable || !extensible) {
|
|
19124
19130
|
return false;
|
|
19125
19131
|
}
|
|
19126
|
-
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
|
|
19132
|
+
return DefineOwnProperty(
|
|
19133
|
+
IsDataDescriptor,
|
|
19134
|
+
SameValue,
|
|
19135
|
+
FromPropertyDescriptor,
|
|
19136
|
+
O,
|
|
19137
|
+
P,
|
|
19138
|
+
{
|
|
19139
|
+
'[[Configurable]]': true,
|
|
19140
|
+
'[[Enumerable]]': true,
|
|
19141
|
+
'[[Value]]': V,
|
|
19142
|
+
'[[Writable]]': true
|
|
19130
19143
|
}
|
|
19131
|
-
|
|
19132
|
-
return isRegex(argument);
|
|
19144
|
+
);
|
|
19133
19145
|
};
|
|
19134
19146
|
|
|
19135
19147
|
var fnToStr = Function.prototype.toString;
|
|
@@ -19153,18 +19165,18 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
19153
19165
|
return false;
|
|
19154
19166
|
}
|
|
19155
19167
|
};
|
|
19156
|
-
var toStr$
|
|
19168
|
+
var toStr$4 = Object.prototype.toString;
|
|
19157
19169
|
var fnClass = '[object Function]';
|
|
19158
19170
|
var genClass = '[object GeneratorFunction]';
|
|
19159
|
-
var hasToStringTag
|
|
19171
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19160
19172
|
|
|
19161
19173
|
var isCallable = function isCallable(value) {
|
|
19162
19174
|
if (!value) { return false; }
|
|
19163
19175
|
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
19164
19176
|
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
19165
|
-
if (hasToStringTag
|
|
19177
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
19166
19178
|
if (isES6ClassFn(value)) { return false; }
|
|
19167
|
-
var strClass = toStr$
|
|
19179
|
+
var strClass = toStr$4.call(value);
|
|
19168
19180
|
return strClass === fnClass || strClass === genClass;
|
|
19169
19181
|
};
|
|
19170
19182
|
|
|
@@ -19172,204 +19184,24 @@ var isCallable = function isCallable(value) {
|
|
|
19172
19184
|
|
|
19173
19185
|
var IsCallable = isCallable;
|
|
19174
19186
|
|
|
19175
|
-
var $TypeError$
|
|
19176
|
-
|
|
19177
|
-
|
|
19178
|
-
|
|
19179
|
-
|
|
19180
|
-
|
|
19181
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
19182
|
-
|
|
19183
|
-
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
19184
|
-
if (Type$1(Obj) !== 'Object') {
|
|
19185
|
-
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
19186
|
-
}
|
|
19187
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
19187
19188
|
|
|
19188
|
-
|
|
19189
|
-
if (src$1(Obj, 'enumerable')) {
|
|
19190
|
-
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
19191
|
-
}
|
|
19192
|
-
if (src$1(Obj, 'configurable')) {
|
|
19193
|
-
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
19194
|
-
}
|
|
19195
|
-
if (src$1(Obj, 'value')) {
|
|
19196
|
-
desc['[[Value]]'] = Obj.value;
|
|
19197
|
-
}
|
|
19198
|
-
if (src$1(Obj, 'writable')) {
|
|
19199
|
-
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
19200
|
-
}
|
|
19201
|
-
if (src$1(Obj, 'get')) {
|
|
19202
|
-
var getter = Obj.get;
|
|
19203
|
-
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
19204
|
-
throw new TypeError('getter must be a function');
|
|
19205
|
-
}
|
|
19206
|
-
desc['[[Get]]'] = getter;
|
|
19207
|
-
}
|
|
19208
|
-
if (src$1(Obj, 'set')) {
|
|
19209
|
-
var setter = Obj.set;
|
|
19210
|
-
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
19211
|
-
throw new $TypeError$2('setter must be a function');
|
|
19212
|
-
}
|
|
19213
|
-
desc['[[Set]]'] = setter;
|
|
19214
|
-
}
|
|
19189
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
19215
19190
|
|
|
19216
|
-
|
|
19217
|
-
|
|
19191
|
+
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
19192
|
+
if (value == null) {
|
|
19193
|
+
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
19218
19194
|
}
|
|
19219
|
-
return
|
|
19195
|
+
return value;
|
|
19220
19196
|
};
|
|
19221
19197
|
|
|
19222
|
-
var
|
|
19223
|
-
|
|
19198
|
+
var RequireObjectCoercible = CheckObjectCoercible;
|
|
19224
19199
|
|
|
19200
|
+
var $Object$1 = GetIntrinsic('%Object%');
|
|
19225
19201
|
|
|
19226
|
-
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
19227
19202
|
|
|
19228
19203
|
|
|
19229
|
-
|
|
19230
|
-
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
19237
|
-
|
|
19238
|
-
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
19239
|
-
if (Type$1(O) !== 'Object') {
|
|
19240
|
-
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
19241
|
-
}
|
|
19242
|
-
if (!IsPropertyKey(P)) {
|
|
19243
|
-
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
19244
|
-
}
|
|
19245
|
-
if (!src$1(O, P)) {
|
|
19246
|
-
return void 0;
|
|
19247
|
-
}
|
|
19248
|
-
if (!getOwnPropertyDescriptor) {
|
|
19249
|
-
// ES3 / IE 8 fallback
|
|
19250
|
-
var arrayLength = IsArray(O) && P === 'length';
|
|
19251
|
-
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
19252
|
-
return {
|
|
19253
|
-
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
19254
|
-
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
19255
|
-
'[[Value]]': O[P],
|
|
19256
|
-
'[[Writable]]': true
|
|
19257
|
-
};
|
|
19258
|
-
}
|
|
19259
|
-
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
19260
|
-
};
|
|
19261
|
-
|
|
19262
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
19263
|
-
|
|
19264
|
-
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
19265
|
-
if (typeof Desc === 'undefined') {
|
|
19266
|
-
return false;
|
|
19267
|
-
}
|
|
19268
|
-
|
|
19269
|
-
assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
|
|
19270
|
-
|
|
19271
|
-
if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
|
|
19272
|
-
return false;
|
|
19273
|
-
}
|
|
19274
|
-
|
|
19275
|
-
return true;
|
|
19276
|
-
};
|
|
19277
|
-
|
|
19278
|
-
var isPrimitive$1 = function isPrimitive(value) {
|
|
19279
|
-
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
19280
|
-
};
|
|
19281
|
-
|
|
19282
|
-
var $Object = GetIntrinsic('%Object%');
|
|
19283
|
-
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
var $preventExtensions = $Object.preventExtensions;
|
|
19287
|
-
var $isExtensible = $Object.isExtensible;
|
|
19288
|
-
|
|
19289
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
19290
|
-
|
|
19291
|
-
var IsExtensible = $preventExtensions
|
|
19292
|
-
? function IsExtensible(obj) {
|
|
19293
|
-
return !isPrimitive$1(obj) && $isExtensible(obj);
|
|
19294
|
-
}
|
|
19295
|
-
: function IsExtensible(obj) {
|
|
19296
|
-
return !isPrimitive$1(obj);
|
|
19297
|
-
};
|
|
19298
|
-
|
|
19299
|
-
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
19300
|
-
return a !== a;
|
|
19301
|
-
};
|
|
19302
|
-
|
|
19303
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
19304
|
-
|
|
19305
|
-
var SameValue = function SameValue(x, y) {
|
|
19306
|
-
if (x === y) { // 0 === -0, but they are not identical.
|
|
19307
|
-
if (x === 0) { return 1 / x === 1 / y; }
|
|
19308
|
-
return true;
|
|
19309
|
-
}
|
|
19310
|
-
return _isNaN(x) && _isNaN(y);
|
|
19311
|
-
};
|
|
19312
|
-
|
|
19313
|
-
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
19314
|
-
|
|
19315
|
-
|
|
19316
|
-
|
|
19317
|
-
|
|
19318
|
-
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
|
|
19325
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
19326
|
-
|
|
19327
|
-
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
19328
|
-
if (Type$1(O) !== 'Object') {
|
|
19329
|
-
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
19330
|
-
}
|
|
19331
|
-
if (!IsPropertyKey(P)) {
|
|
19332
|
-
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
19333
|
-
}
|
|
19334
|
-
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
19335
|
-
var extensible = oldDesc || IsExtensible(O);
|
|
19336
|
-
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
19337
|
-
if (immutable || !extensible) {
|
|
19338
|
-
return false;
|
|
19339
|
-
}
|
|
19340
|
-
return DefineOwnProperty(
|
|
19341
|
-
IsDataDescriptor,
|
|
19342
|
-
SameValue,
|
|
19343
|
-
FromPropertyDescriptor,
|
|
19344
|
-
O,
|
|
19345
|
-
P,
|
|
19346
|
-
{
|
|
19347
|
-
'[[Configurable]]': true,
|
|
19348
|
-
'[[Enumerable]]': true,
|
|
19349
|
-
'[[Value]]': V,
|
|
19350
|
-
'[[Writable]]': true
|
|
19351
|
-
}
|
|
19352
|
-
);
|
|
19353
|
-
};
|
|
19354
|
-
|
|
19355
|
-
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
19356
|
-
|
|
19357
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
19358
|
-
|
|
19359
|
-
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
19360
|
-
if (value == null) {
|
|
19361
|
-
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
19362
|
-
}
|
|
19363
|
-
return value;
|
|
19364
|
-
};
|
|
19365
|
-
|
|
19366
|
-
var RequireObjectCoercible = CheckObjectCoercible;
|
|
19367
|
-
|
|
19368
|
-
var $Object$1 = GetIntrinsic('%Object%');
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19372
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
19204
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
19373
19205
|
|
|
19374
19206
|
var ToObject = function ToObject(value) {
|
|
19375
19207
|
RequireObjectCoercible(value);
|
|
@@ -19429,6 +19261,241 @@ defineProperties_1(implementation$2, {
|
|
|
19429
19261
|
|
|
19430
19262
|
var object_getownpropertydescriptors = implementation$2;
|
|
19431
19263
|
|
|
19264
|
+
/* globals
|
|
19265
|
+
Atomics,
|
|
19266
|
+
SharedArrayBuffer,
|
|
19267
|
+
*/
|
|
19268
|
+
|
|
19269
|
+
var undefined$2;
|
|
19270
|
+
|
|
19271
|
+
var $TypeError$4 = TypeError;
|
|
19272
|
+
|
|
19273
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
19274
|
+
if ($gOPD$3) {
|
|
19275
|
+
try {
|
|
19276
|
+
$gOPD$3({}, '');
|
|
19277
|
+
} catch (e) {
|
|
19278
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
19279
|
+
}
|
|
19280
|
+
}
|
|
19281
|
+
|
|
19282
|
+
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
19283
|
+
var ThrowTypeError$1 = $gOPD$3
|
|
19284
|
+
? (function () {
|
|
19285
|
+
try {
|
|
19286
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
19287
|
+
arguments.callee; // IE 8 does not throw here
|
|
19288
|
+
return throwTypeError$1;
|
|
19289
|
+
} catch (calleeThrows) {
|
|
19290
|
+
try {
|
|
19291
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
19292
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
19293
|
+
} catch (gOPDthrows) {
|
|
19294
|
+
return throwTypeError$1;
|
|
19295
|
+
}
|
|
19296
|
+
}
|
|
19297
|
+
}())
|
|
19298
|
+
: throwTypeError$1;
|
|
19299
|
+
|
|
19300
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
19301
|
+
|
|
19302
|
+
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
19303
|
+
var generatorFunction$1 = undefined$2;
|
|
19304
|
+
var asyncFunction$1 = undefined$2;
|
|
19305
|
+
var asyncGenFunction$1 = undefined$2;
|
|
19306
|
+
|
|
19307
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
19308
|
+
|
|
19309
|
+
var INTRINSICS$1 = {
|
|
19310
|
+
'%Array%': Array,
|
|
19311
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
19312
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
19313
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
19314
|
+
'%ArrayPrototype%': Array.prototype,
|
|
19315
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
19316
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
19317
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
19318
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
19319
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
19320
|
+
'%AsyncFunction%': asyncFunction$1,
|
|
19321
|
+
'%AsyncFunctionPrototype%': undefined$2,
|
|
19322
|
+
'%AsyncGenerator%': undefined$2,
|
|
19323
|
+
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
19324
|
+
'%AsyncGeneratorPrototype%': undefined$2,
|
|
19325
|
+
'%AsyncIteratorPrototype%': undefined$2,
|
|
19326
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
19327
|
+
'%Boolean%': Boolean,
|
|
19328
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
19329
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
19330
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
19331
|
+
'%Date%': Date,
|
|
19332
|
+
'%DatePrototype%': Date.prototype,
|
|
19333
|
+
'%decodeURI%': decodeURI,
|
|
19334
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
19335
|
+
'%encodeURI%': encodeURI,
|
|
19336
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
19337
|
+
'%Error%': Error,
|
|
19338
|
+
'%ErrorPrototype%': Error.prototype,
|
|
19339
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
19340
|
+
'%EvalError%': EvalError,
|
|
19341
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
19342
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
19343
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
19344
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
19345
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
19346
|
+
'%Function%': Function,
|
|
19347
|
+
'%FunctionPrototype%': Function.prototype,
|
|
19348
|
+
'%Generator%': undefined$2,
|
|
19349
|
+
'%GeneratorFunction%': generatorFunction$1,
|
|
19350
|
+
'%GeneratorPrototype%': undefined$2,
|
|
19351
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
19352
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
19353
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
19354
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
19355
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
19356
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
19357
|
+
'%isFinite%': isFinite,
|
|
19358
|
+
'%isNaN%': isNaN,
|
|
19359
|
+
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
19360
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
19361
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
19362
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
19363
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
19364
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
19365
|
+
'%Math%': Math,
|
|
19366
|
+
'%Number%': Number,
|
|
19367
|
+
'%NumberPrototype%': Number.prototype,
|
|
19368
|
+
'%Object%': Object,
|
|
19369
|
+
'%ObjectPrototype%': Object.prototype,
|
|
19370
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
19371
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
19372
|
+
'%parseFloat%': parseFloat,
|
|
19373
|
+
'%parseInt%': parseInt,
|
|
19374
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
19375
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
19376
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
19377
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
19378
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
19379
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
19380
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
19381
|
+
'%RangeError%': RangeError,
|
|
19382
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
19383
|
+
'%ReferenceError%': ReferenceError,
|
|
19384
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
19385
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
19386
|
+
'%RegExp%': RegExp,
|
|
19387
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
19388
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
19389
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
19390
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
19391
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
19392
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
19393
|
+
'%String%': String,
|
|
19394
|
+
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
19395
|
+
'%StringPrototype%': String.prototype,
|
|
19396
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
19397
|
+
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
19398
|
+
'%SyntaxError%': SyntaxError,
|
|
19399
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
19400
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
19401
|
+
'%TypedArray%': TypedArray$1,
|
|
19402
|
+
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
19403
|
+
'%TypeError%': $TypeError$4,
|
|
19404
|
+
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
19405
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
19406
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
19407
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
19408
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
19409
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
19410
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
19411
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
19412
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
19413
|
+
'%URIError%': URIError,
|
|
19414
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
19415
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
19416
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
19417
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
19418
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
19419
|
+
};
|
|
19420
|
+
|
|
19421
|
+
|
|
19422
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
19423
|
+
|
|
19424
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
19425
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
19426
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
19427
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
19428
|
+
var result = [];
|
|
19429
|
+
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
19430
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
19431
|
+
});
|
|
19432
|
+
return result;
|
|
19433
|
+
};
|
|
19434
|
+
/* end adaptation */
|
|
19435
|
+
|
|
19436
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
19437
|
+
if (!(name in INTRINSICS$1)) {
|
|
19438
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
19439
|
+
}
|
|
19440
|
+
|
|
19441
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
19442
|
+
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
19443
|
+
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
19444
|
+
}
|
|
19445
|
+
|
|
19446
|
+
return INTRINSICS$1[name];
|
|
19447
|
+
};
|
|
19448
|
+
|
|
19449
|
+
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
19450
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
19451
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
19452
|
+
}
|
|
19453
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
19454
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
19455
|
+
}
|
|
19456
|
+
|
|
19457
|
+
var parts = stringToPath$1(name);
|
|
19458
|
+
|
|
19459
|
+
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
19460
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
19461
|
+
if (value != null) {
|
|
19462
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
19463
|
+
var desc = $gOPD$3(value, parts[i]);
|
|
19464
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
19465
|
+
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
19466
|
+
}
|
|
19467
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
19468
|
+
} else {
|
|
19469
|
+
value = value[parts[i]];
|
|
19470
|
+
}
|
|
19471
|
+
}
|
|
19472
|
+
}
|
|
19473
|
+
return value;
|
|
19474
|
+
};
|
|
19475
|
+
|
|
19476
|
+
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
19477
|
+
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
19478
|
+
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
19479
|
+
|
|
19480
|
+
var callBind$1 = function callBind() {
|
|
19481
|
+
return $reflectApply(functionBind, $call$1, arguments);
|
|
19482
|
+
};
|
|
19483
|
+
|
|
19484
|
+
var apply$1 = function applyBind() {
|
|
19485
|
+
return $reflectApply(functionBind, $apply$1, arguments);
|
|
19486
|
+
};
|
|
19487
|
+
callBind$1.apply = apply$1;
|
|
19488
|
+
|
|
19489
|
+
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
19490
|
+
|
|
19491
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
19492
|
+
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
19493
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
19494
|
+
return callBind$1(intrinsic);
|
|
19495
|
+
}
|
|
19496
|
+
return intrinsic;
|
|
19497
|
+
};
|
|
19498
|
+
|
|
19432
19499
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
19433
19500
|
&& typeof Object.defineProperties === 'function';
|
|
19434
19501
|
|
|
@@ -19446,14 +19513,14 @@ if (typeof Promise !== 'function') {
|
|
|
19446
19513
|
|
|
19447
19514
|
|
|
19448
19515
|
|
|
19449
|
-
var $slice = callBound('Array.prototype.slice');
|
|
19450
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
19451
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
19516
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
19517
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
19518
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
19452
19519
|
|
|
19453
|
-
var hasSymbols$
|
|
19520
|
+
var hasSymbols$4 = hasSymbols$1();
|
|
19454
19521
|
|
|
19455
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
19456
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
19522
|
+
var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
|
|
19523
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
|
|
19457
19524
|
|
|
19458
19525
|
var implementation$3 = function promisify(orig) {
|
|
19459
19526
|
if (typeof orig !== 'function') {
|
|
@@ -19463,7 +19530,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
19463
19530
|
throw error;
|
|
19464
19531
|
}
|
|
19465
19532
|
|
|
19466
|
-
if (hasSymbols$
|
|
19533
|
+
if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
|
|
19467
19534
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
19468
19535
|
if (typeof customFunction !== 'function') {
|
|
19469
19536
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -19592,6 +19659,324 @@ function connect() {
|
|
|
19592
19659
|
|
|
19593
19660
|
var db = connect;
|
|
19594
19661
|
|
|
19662
|
+
var crypt = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
19663
|
+
(function() {
|
|
19664
|
+
var base64map
|
|
19665
|
+
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
19666
|
+
|
|
19667
|
+
crypt = {
|
|
19668
|
+
// Bit-wise rotation left
|
|
19669
|
+
rotl: function(n, b) {
|
|
19670
|
+
return (n << b) | (n >>> (32 - b));
|
|
19671
|
+
},
|
|
19672
|
+
|
|
19673
|
+
// Bit-wise rotation right
|
|
19674
|
+
rotr: function(n, b) {
|
|
19675
|
+
return (n << (32 - b)) | (n >>> b);
|
|
19676
|
+
},
|
|
19677
|
+
|
|
19678
|
+
// Swap big-endian to little-endian and vice versa
|
|
19679
|
+
endian: function(n) {
|
|
19680
|
+
// If number given, swap endian
|
|
19681
|
+
if (n.constructor == Number) {
|
|
19682
|
+
return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;
|
|
19683
|
+
}
|
|
19684
|
+
|
|
19685
|
+
// Else, assume array and swap all items
|
|
19686
|
+
for (var i = 0; i < n.length; i++)
|
|
19687
|
+
n[i] = crypt.endian(n[i]);
|
|
19688
|
+
return n;
|
|
19689
|
+
},
|
|
19690
|
+
|
|
19691
|
+
// Generate an array of any length of random bytes
|
|
19692
|
+
randomBytes: function(n) {
|
|
19693
|
+
for (var bytes = []; n > 0; n--)
|
|
19694
|
+
bytes.push(Math.floor(Math.random() * 256));
|
|
19695
|
+
return bytes;
|
|
19696
|
+
},
|
|
19697
|
+
|
|
19698
|
+
// Convert a byte array to big-endian 32-bit words
|
|
19699
|
+
bytesToWords: function(bytes) {
|
|
19700
|
+
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
|
|
19701
|
+
words[b >>> 5] |= bytes[i] << (24 - b % 32);
|
|
19702
|
+
return words;
|
|
19703
|
+
},
|
|
19704
|
+
|
|
19705
|
+
// Convert big-endian 32-bit words to a byte array
|
|
19706
|
+
wordsToBytes: function(words) {
|
|
19707
|
+
for (var bytes = [], b = 0; b < words.length * 32; b += 8)
|
|
19708
|
+
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
|
|
19709
|
+
return bytes;
|
|
19710
|
+
},
|
|
19711
|
+
|
|
19712
|
+
// Convert a byte array to a hex string
|
|
19713
|
+
bytesToHex: function(bytes) {
|
|
19714
|
+
for (var hex = [], i = 0; i < bytes.length; i++) {
|
|
19715
|
+
hex.push((bytes[i] >>> 4).toString(16));
|
|
19716
|
+
hex.push((bytes[i] & 0xF).toString(16));
|
|
19717
|
+
}
|
|
19718
|
+
return hex.join('');
|
|
19719
|
+
},
|
|
19720
|
+
|
|
19721
|
+
// Convert a hex string to a byte array
|
|
19722
|
+
hexToBytes: function(hex) {
|
|
19723
|
+
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
|
19724
|
+
bytes.push(parseInt(hex.substr(c, 2), 16));
|
|
19725
|
+
return bytes;
|
|
19726
|
+
},
|
|
19727
|
+
|
|
19728
|
+
// Convert a byte array to a base-64 string
|
|
19729
|
+
bytesToBase64: function(bytes) {
|
|
19730
|
+
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
|
19731
|
+
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
|
|
19732
|
+
for (var j = 0; j < 4; j++)
|
|
19733
|
+
if (i * 8 + j * 6 <= bytes.length * 8)
|
|
19734
|
+
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
|
|
19735
|
+
else
|
|
19736
|
+
base64.push('=');
|
|
19737
|
+
}
|
|
19738
|
+
return base64.join('');
|
|
19739
|
+
},
|
|
19740
|
+
|
|
19741
|
+
// Convert a base-64 string to a byte array
|
|
19742
|
+
base64ToBytes: function(base64) {
|
|
19743
|
+
// Remove non-base-64 characters
|
|
19744
|
+
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
|
19745
|
+
|
|
19746
|
+
for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
|
|
19747
|
+
imod4 = ++i % 4) {
|
|
19748
|
+
if (imod4 == 0) continue;
|
|
19749
|
+
bytes.push(((base64map.indexOf(base64.charAt(i - 1))
|
|
19750
|
+
& (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
|
|
19751
|
+
| (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
|
|
19752
|
+
}
|
|
19753
|
+
return bytes;
|
|
19754
|
+
}
|
|
19755
|
+
};
|
|
19756
|
+
|
|
19757
|
+
module.exports = crypt;
|
|
19758
|
+
})();
|
|
19759
|
+
});
|
|
19760
|
+
|
|
19761
|
+
var charenc = {
|
|
19762
|
+
// UTF-8 encoding
|
|
19763
|
+
utf8: {
|
|
19764
|
+
// Convert a string to a byte array
|
|
19765
|
+
stringToBytes: function(str) {
|
|
19766
|
+
return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
|
|
19767
|
+
},
|
|
19768
|
+
|
|
19769
|
+
// Convert a byte array to a string
|
|
19770
|
+
bytesToString: function(bytes) {
|
|
19771
|
+
return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
|
|
19772
|
+
}
|
|
19773
|
+
},
|
|
19774
|
+
|
|
19775
|
+
// Binary encoding
|
|
19776
|
+
bin: {
|
|
19777
|
+
// Convert a string to a byte array
|
|
19778
|
+
stringToBytes: function(str) {
|
|
19779
|
+
for (var bytes = [], i = 0; i < str.length; i++)
|
|
19780
|
+
bytes.push(str.charCodeAt(i) & 0xFF);
|
|
19781
|
+
return bytes;
|
|
19782
|
+
},
|
|
19783
|
+
|
|
19784
|
+
// Convert a byte array to a string
|
|
19785
|
+
bytesToString: function(bytes) {
|
|
19786
|
+
for (var str = [], i = 0; i < bytes.length; i++)
|
|
19787
|
+
str.push(String.fromCharCode(bytes[i]));
|
|
19788
|
+
return str.join('');
|
|
19789
|
+
}
|
|
19790
|
+
}
|
|
19791
|
+
};
|
|
19792
|
+
|
|
19793
|
+
var charenc_1 = charenc;
|
|
19794
|
+
|
|
19795
|
+
/*!
|
|
19796
|
+
* Determine if an object is a Buffer
|
|
19797
|
+
*
|
|
19798
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
19799
|
+
* @license MIT
|
|
19800
|
+
*/
|
|
19801
|
+
|
|
19802
|
+
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
19803
|
+
// Object.prototype.constructor. Remove this eventually
|
|
19804
|
+
var isBuffer_1$1 = function (obj) {
|
|
19805
|
+
return obj != null && (isBuffer$1(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
|
19806
|
+
};
|
|
19807
|
+
|
|
19808
|
+
function isBuffer$1 (obj) {
|
|
19809
|
+
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
19810
|
+
}
|
|
19811
|
+
|
|
19812
|
+
// For Node v0.10 support. Remove this eventually.
|
|
19813
|
+
function isSlowBuffer (obj) {
|
|
19814
|
+
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer$1(obj.slice(0, 0))
|
|
19815
|
+
}
|
|
19816
|
+
|
|
19817
|
+
var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
19818
|
+
(function(){
|
|
19819
|
+
var crypt$1 = crypt,
|
|
19820
|
+
utf8 = charenc_1.utf8,
|
|
19821
|
+
isBuffer = isBuffer_1$1,
|
|
19822
|
+
bin = charenc_1.bin,
|
|
19823
|
+
|
|
19824
|
+
// The core
|
|
19825
|
+
md5 = function (message, options) {
|
|
19826
|
+
// Convert to byte array
|
|
19827
|
+
if (message.constructor == String)
|
|
19828
|
+
if (options && options.encoding === 'binary')
|
|
19829
|
+
message = bin.stringToBytes(message);
|
|
19830
|
+
else
|
|
19831
|
+
message = utf8.stringToBytes(message);
|
|
19832
|
+
else if (isBuffer(message))
|
|
19833
|
+
message = Array.prototype.slice.call(message, 0);
|
|
19834
|
+
else if (!Array.isArray(message))
|
|
19835
|
+
message = message.toString();
|
|
19836
|
+
// else, assume byte array already
|
|
19837
|
+
|
|
19838
|
+
var m = crypt$1.bytesToWords(message),
|
|
19839
|
+
l = message.length * 8,
|
|
19840
|
+
a = 1732584193,
|
|
19841
|
+
b = -271733879,
|
|
19842
|
+
c = -1732584194,
|
|
19843
|
+
d = 271733878;
|
|
19844
|
+
|
|
19845
|
+
// Swap endian
|
|
19846
|
+
for (var i = 0; i < m.length; i++) {
|
|
19847
|
+
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
|
|
19848
|
+
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
|
|
19849
|
+
}
|
|
19850
|
+
|
|
19851
|
+
// Padding
|
|
19852
|
+
m[l >>> 5] |= 0x80 << (l % 32);
|
|
19853
|
+
m[(((l + 64) >>> 9) << 4) + 14] = l;
|
|
19854
|
+
|
|
19855
|
+
// Method shortcuts
|
|
19856
|
+
var FF = md5._ff,
|
|
19857
|
+
GG = md5._gg,
|
|
19858
|
+
HH = md5._hh,
|
|
19859
|
+
II = md5._ii;
|
|
19860
|
+
|
|
19861
|
+
for (var i = 0; i < m.length; i += 16) {
|
|
19862
|
+
|
|
19863
|
+
var aa = a,
|
|
19864
|
+
bb = b,
|
|
19865
|
+
cc = c,
|
|
19866
|
+
dd = d;
|
|
19867
|
+
|
|
19868
|
+
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
|
|
19869
|
+
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
|
|
19870
|
+
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
|
|
19871
|
+
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
|
|
19872
|
+
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
|
|
19873
|
+
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
|
|
19874
|
+
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
|
|
19875
|
+
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
|
|
19876
|
+
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
|
|
19877
|
+
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
|
|
19878
|
+
c = FF(c, d, a, b, m[i+10], 17, -42063);
|
|
19879
|
+
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
|
|
19880
|
+
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
|
|
19881
|
+
d = FF(d, a, b, c, m[i+13], 12, -40341101);
|
|
19882
|
+
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
|
|
19883
|
+
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
|
|
19884
|
+
|
|
19885
|
+
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
|
|
19886
|
+
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
|
|
19887
|
+
c = GG(c, d, a, b, m[i+11], 14, 643717713);
|
|
19888
|
+
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
|
|
19889
|
+
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
|
|
19890
|
+
d = GG(d, a, b, c, m[i+10], 9, 38016083);
|
|
19891
|
+
c = GG(c, d, a, b, m[i+15], 14, -660478335);
|
|
19892
|
+
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
|
|
19893
|
+
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
|
|
19894
|
+
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
|
|
19895
|
+
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
|
|
19896
|
+
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
|
|
19897
|
+
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
|
|
19898
|
+
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
|
|
19899
|
+
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
|
|
19900
|
+
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
|
|
19901
|
+
|
|
19902
|
+
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
|
|
19903
|
+
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
|
|
19904
|
+
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
|
|
19905
|
+
b = HH(b, c, d, a, m[i+14], 23, -35309556);
|
|
19906
|
+
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
|
|
19907
|
+
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
|
|
19908
|
+
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
|
|
19909
|
+
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
|
|
19910
|
+
a = HH(a, b, c, d, m[i+13], 4, 681279174);
|
|
19911
|
+
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
|
|
19912
|
+
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
|
|
19913
|
+
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
|
|
19914
|
+
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
|
|
19915
|
+
d = HH(d, a, b, c, m[i+12], 11, -421815835);
|
|
19916
|
+
c = HH(c, d, a, b, m[i+15], 16, 530742520);
|
|
19917
|
+
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
|
|
19918
|
+
|
|
19919
|
+
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
|
|
19920
|
+
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
|
|
19921
|
+
c = II(c, d, a, b, m[i+14], 15, -1416354905);
|
|
19922
|
+
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
|
|
19923
|
+
a = II(a, b, c, d, m[i+12], 6, 1700485571);
|
|
19924
|
+
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
|
|
19925
|
+
c = II(c, d, a, b, m[i+10], 15, -1051523);
|
|
19926
|
+
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
|
|
19927
|
+
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
|
|
19928
|
+
d = II(d, a, b, c, m[i+15], 10, -30611744);
|
|
19929
|
+
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
|
|
19930
|
+
b = II(b, c, d, a, m[i+13], 21, 1309151649);
|
|
19931
|
+
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
|
|
19932
|
+
d = II(d, a, b, c, m[i+11], 10, -1120210379);
|
|
19933
|
+
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
|
|
19934
|
+
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
|
|
19935
|
+
|
|
19936
|
+
a = (a + aa) >>> 0;
|
|
19937
|
+
b = (b + bb) >>> 0;
|
|
19938
|
+
c = (c + cc) >>> 0;
|
|
19939
|
+
d = (d + dd) >>> 0;
|
|
19940
|
+
}
|
|
19941
|
+
|
|
19942
|
+
return crypt$1.endian([a, b, c, d]);
|
|
19943
|
+
};
|
|
19944
|
+
|
|
19945
|
+
// Auxiliary functions
|
|
19946
|
+
md5._ff = function (a, b, c, d, x, s, t) {
|
|
19947
|
+
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
|
|
19948
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19949
|
+
};
|
|
19950
|
+
md5._gg = function (a, b, c, d, x, s, t) {
|
|
19951
|
+
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
|
|
19952
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19953
|
+
};
|
|
19954
|
+
md5._hh = function (a, b, c, d, x, s, t) {
|
|
19955
|
+
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
|
|
19956
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19957
|
+
};
|
|
19958
|
+
md5._ii = function (a, b, c, d, x, s, t) {
|
|
19959
|
+
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
|
|
19960
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19961
|
+
};
|
|
19962
|
+
|
|
19963
|
+
// Package private blocksize
|
|
19964
|
+
md5._blocksize = 16;
|
|
19965
|
+
md5._digestsize = 16;
|
|
19966
|
+
|
|
19967
|
+
module.exports = function (message, options) {
|
|
19968
|
+
if (message === undefined || message === null)
|
|
19969
|
+
throw new Error('Illegal argument ' + message);
|
|
19970
|
+
|
|
19971
|
+
var digestbytes = crypt$1.wordsToBytes(md5(message, options));
|
|
19972
|
+
return options && options.asBytes ? digestbytes :
|
|
19973
|
+
options && options.asString ? bin.bytesToString(digestbytes) :
|
|
19974
|
+
crypt$1.bytesToHex(digestbytes);
|
|
19975
|
+
};
|
|
19976
|
+
|
|
19977
|
+
})();
|
|
19978
|
+
});
|
|
19979
|
+
|
|
19595
19980
|
var _this$3 = undefined;
|
|
19596
19981
|
|
|
19597
19982
|
var config = {
|