@mjhls/mjh-framework 1.0.331 → 1.0.332
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 +1184 -804
- 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 +1187 -807
- 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/esm/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { _ as _objectKeys, a as _toObject, b as _core } from './_to-object-b9b796ec.js';
|
|
3
3
|
import './web.dom.iterable-7e9bebf9.js';
|
|
4
|
-
import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-
|
|
5
|
-
import { m as
|
|
6
|
-
import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-
|
|
4
|
+
import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-702eb224.js';
|
|
5
|
+
import { m as main_39, a as main_16, b as main_38 } from './main-cb86f95d.js';
|
|
6
|
+
import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-2718dc16.js';
|
|
7
7
|
import { _ as _extends$2, a as _Object$assign } from './extends-26d3b609.js';
|
|
8
|
-
import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-
|
|
8
|
+
import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-4b85034c.js';
|
|
9
9
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import Container from 'react-bootstrap/Container';
|
|
12
12
|
import Row from 'react-bootstrap/Row';
|
|
13
13
|
import Col from 'react-bootstrap/Col';
|
|
14
14
|
import 'react-bootstrap/Card';
|
|
15
|
-
import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-
|
|
15
|
+
import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-3cea5efb.js';
|
|
16
16
|
import Link from 'next/link';
|
|
17
17
|
import Router, { useRouter } from 'next/router';
|
|
18
18
|
import 'react-dom';
|
|
19
|
-
import { i as imageUrlBuilder } from './index-
|
|
19
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
20
20
|
import './index-5f9f807a.js';
|
|
21
21
|
import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
22
22
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-a47a84a4.js';
|
|
23
|
-
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-
|
|
24
|
-
export { D as AdSlot, B as Beam } from './AdSlot-
|
|
25
|
-
import './promise-
|
|
26
|
-
import './ADInfeed-
|
|
23
|
+
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-8946358f.js';
|
|
24
|
+
export { D as AdSlot, B as Beam } from './AdSlot-8946358f.js';
|
|
25
|
+
import './promise-86cb8313.js';
|
|
26
|
+
import './ADInfeed-aadcfc25.js';
|
|
27
27
|
export { default as DeckContent } from './DeckContent.js';
|
|
28
|
-
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-
|
|
29
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
28
|
+
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-36d03764.js';
|
|
29
|
+
export { A as AD, G as GridContent } from './GridContent-13be42a1.js';
|
|
30
30
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
31
31
|
import 'react-bootstrap/Media';
|
|
32
32
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
33
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
34
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
33
|
+
import { B as BlockContent } from './TaxonomyCard-89325080.js';
|
|
34
|
+
export { T as TaxonomyCard } from './TaxonomyCard-89325080.js';
|
|
35
35
|
import './react-social-icons-a7d5c5c7.js';
|
|
36
36
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
37
37
|
import GroupDeck from './GroupDeck.js';
|
|
@@ -48,8 +48,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
48
48
|
import 'react-bootstrap/Badge';
|
|
49
49
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
50
50
|
import Spinner from 'react-bootstrap/Spinner';
|
|
51
|
-
import { M as MdPictureAsPdf } from './Normal-
|
|
52
|
-
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-
|
|
51
|
+
import { M as MdPictureAsPdf } from './Normal-cbddc3c0.js';
|
|
52
|
+
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-cbddc3c0.js';
|
|
53
53
|
import 'react-bootstrap/ListGroup';
|
|
54
54
|
import Head from 'next/head';
|
|
55
55
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -71,7 +71,6 @@ export { U as Ustream } from './Ustream-d8cc3cbd.js';
|
|
|
71
71
|
import useSWR from 'swr';
|
|
72
72
|
import Local from 'passport-local';
|
|
73
73
|
import mysql from 'mysql';
|
|
74
|
-
import md5 from 'md5';
|
|
75
74
|
|
|
76
75
|
var momentTimezone = createCommonjsModule(function (module) {
|
|
77
76
|
//! moment-timezone.js
|
|
@@ -2151,7 +2150,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2151
2150
|
)
|
|
2152
2151
|
)
|
|
2153
2152
|
),
|
|
2154
|
-
|
|
2153
|
+
main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2155
2154
|
'div',
|
|
2156
2155
|
{ style: { margin: '0 auto' } },
|
|
2157
2156
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2542,7 +2541,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2542
2541
|
)
|
|
2543
2542
|
)
|
|
2544
2543
|
),
|
|
2545
|
-
|
|
2544
|
+
main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2546
2545
|
'div',
|
|
2547
2546
|
{ style: { margin: '0 auto' } },
|
|
2548
2547
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2831,7 +2830,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2831
2830
|
pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
|
|
2832
2831
|
|
|
2833
2832
|
var mobileView = false;
|
|
2834
|
-
if (
|
|
2833
|
+
if (main_39) {
|
|
2835
2834
|
pos = 'rect1-mobile';
|
|
2836
2835
|
mobileView = true;
|
|
2837
2836
|
}
|
|
@@ -2863,7 +2862,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2863
2862
|
pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
|
|
2864
2863
|
|
|
2865
2864
|
var mobileView = false;
|
|
2866
|
-
if (
|
|
2865
|
+
if (main_39) {
|
|
2867
2866
|
pos = 'rect2-mobile';
|
|
2868
2867
|
mobileView = true;
|
|
2869
2868
|
}
|
|
@@ -3320,21 +3319,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3320
3319
|
);
|
|
3321
3320
|
};
|
|
3322
3321
|
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3322
|
+
// do not edit .js files directly - edit src/index.jst
|
|
3323
|
+
|
|
3324
|
+
|
|
3326
3325
|
|
|
3327
3326
|
var fastDeepEqual = function equal(a, b) {
|
|
3328
3327
|
if (a === b) return true;
|
|
3329
3328
|
|
|
3330
3329
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3331
|
-
|
|
3332
|
-
, arrB = isArray(b)
|
|
3333
|
-
, i
|
|
3334
|
-
, length
|
|
3335
|
-
, key;
|
|
3330
|
+
if (a.constructor !== b.constructor) return false;
|
|
3336
3331
|
|
|
3337
|
-
|
|
3332
|
+
var length, i, keys;
|
|
3333
|
+
if (Array.isArray(a)) {
|
|
3338
3334
|
length = a.length;
|
|
3339
3335
|
if (length != b.length) return false;
|
|
3340
3336
|
for (i = length; i-- !== 0;)
|
|
@@ -3342,35 +3338,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3342
3338
|
return true;
|
|
3343
3339
|
}
|
|
3344
3340
|
|
|
3345
|
-
if (arrA != arrB) return false;
|
|
3346
3341
|
|
|
3347
|
-
var dateA = a instanceof Date
|
|
3348
|
-
, dateB = b instanceof Date;
|
|
3349
|
-
if (dateA != dateB) return false;
|
|
3350
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3351
3342
|
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
if (
|
|
3355
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3343
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
3344
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
3345
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
3356
3346
|
|
|
3357
|
-
|
|
3347
|
+
keys = Object.keys(a);
|
|
3358
3348
|
length = keys.length;
|
|
3359
|
-
|
|
3360
|
-
if (length !== keyList(b).length)
|
|
3361
|
-
return false;
|
|
3349
|
+
if (length !== Object.keys(b).length) return false;
|
|
3362
3350
|
|
|
3363
3351
|
for (i = length; i-- !== 0;)
|
|
3364
|
-
if (!
|
|
3352
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
3365
3353
|
|
|
3366
3354
|
for (i = length; i-- !== 0;) {
|
|
3367
|
-
key = keys[i];
|
|
3355
|
+
var key = keys[i];
|
|
3356
|
+
|
|
3368
3357
|
if (!equal(a[key], b[key])) return false;
|
|
3369
3358
|
}
|
|
3370
3359
|
|
|
3371
3360
|
return true;
|
|
3372
3361
|
}
|
|
3373
3362
|
|
|
3363
|
+
// true if both NaN, false otherwise
|
|
3374
3364
|
return a!==a && b!==b;
|
|
3375
3365
|
};
|
|
3376
3366
|
|
|
@@ -4393,7 +4383,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4393
4383
|
var base = '', array = false, braces = ['{', '}'];
|
|
4394
4384
|
|
|
4395
4385
|
// Make Array say that they are Array
|
|
4396
|
-
if (isArray
|
|
4386
|
+
if (isArray(value)) {
|
|
4397
4387
|
array = true;
|
|
4398
4388
|
braces = ['[', ']'];
|
|
4399
4389
|
}
|
|
@@ -4572,7 +4562,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4572
4562
|
|
|
4573
4563
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4574
4564
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4575
|
-
function isArray
|
|
4565
|
+
function isArray(ar) {
|
|
4576
4566
|
return Array.isArray(ar);
|
|
4577
4567
|
}
|
|
4578
4568
|
|
|
@@ -4699,7 +4689,7 @@ var util = {
|
|
|
4699
4689
|
isNullOrUndefined: isNullOrUndefined,
|
|
4700
4690
|
isNull: isNull,
|
|
4701
4691
|
isBoolean: isBoolean,
|
|
4702
|
-
isArray: isArray
|
|
4692
|
+
isArray: isArray,
|
|
4703
4693
|
inspect: inspect,
|
|
4704
4694
|
deprecate: deprecate,
|
|
4705
4695
|
format: format,
|
|
@@ -5366,199 +5356,235 @@ module.exports = exports['default'];
|
|
|
5366
5356
|
|
|
5367
5357
|
var youTubePlayer = unwrapExports(dist);
|
|
5368
5358
|
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
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; };
|
|
5359
|
+
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); }
|
|
5372
5360
|
|
|
5373
5361
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5374
5362
|
|
|
5375
|
-
function
|
|
5363
|
+
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); } }
|
|
5364
|
+
|
|
5365
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5366
|
+
|
|
5367
|
+
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); }; }
|
|
5368
|
+
|
|
5369
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5370
|
+
|
|
5371
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5372
|
+
|
|
5373
|
+
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; } }
|
|
5376
5374
|
|
|
5377
|
-
function
|
|
5375
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5376
|
+
|
|
5377
|
+
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); }
|
|
5378
|
+
|
|
5379
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5380
|
+
|
|
5381
|
+
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; }
|
|
5382
|
+
|
|
5383
|
+
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; }
|
|
5378
5384
|
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
*
|
|
5382
|
-
*
|
|
5383
|
-
* @param {Object}
|
|
5385
|
+
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; }
|
|
5386
|
+
/**
|
|
5387
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5388
|
+
*
|
|
5389
|
+
* @param {Object} prevProps
|
|
5390
|
+
* @param {Object} props
|
|
5384
5391
|
*/
|
|
5392
|
+
|
|
5385
5393
|
function shouldUpdateVideo(prevProps, props) {
|
|
5386
5394
|
// A changing video should always trigger an update
|
|
5387
5395
|
if (prevProps.videoId !== props.videoId) {
|
|
5388
5396
|
return true;
|
|
5389
|
-
}
|
|
5390
|
-
|
|
5391
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5397
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
5392
5398
|
// update.
|
|
5399
|
+
|
|
5400
|
+
|
|
5393
5401
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5394
5402
|
var vars = props.opts.playerVars || {};
|
|
5395
|
-
|
|
5396
5403
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5397
5404
|
}
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
*
|
|
5401
|
-
*
|
|
5402
|
-
*
|
|
5403
|
-
*
|
|
5404
|
-
* @param {Object} opts
|
|
5405
|
+
/**
|
|
5406
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
5407
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5408
|
+
* player reset is necessary.
|
|
5409
|
+
*
|
|
5410
|
+
* @param {Object} opts
|
|
5405
5411
|
*/
|
|
5412
|
+
|
|
5413
|
+
|
|
5406
5414
|
function filterResetOptions(opts) {
|
|
5407
|
-
return
|
|
5408
|
-
playerVars:
|
|
5415
|
+
return _objectSpread({}, opts, {
|
|
5416
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
5409
5417
|
autoplay: 0,
|
|
5410
5418
|
start: 0,
|
|
5411
5419
|
end: 0
|
|
5412
5420
|
})
|
|
5413
5421
|
});
|
|
5414
5422
|
}
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
*
|
|
5418
|
-
*
|
|
5419
|
-
*
|
|
5420
|
-
*
|
|
5421
|
-
*
|
|
5422
|
-
* @param {Object}
|
|
5423
|
-
* @param {Object} props
|
|
5423
|
+
/**
|
|
5424
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5425
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5426
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5427
|
+
* those.
|
|
5428
|
+
*
|
|
5429
|
+
* @param {Object} prevProps
|
|
5430
|
+
* @param {Object} props
|
|
5424
5431
|
*/
|
|
5432
|
+
|
|
5433
|
+
|
|
5425
5434
|
function shouldResetPlayer(prevProps, props) {
|
|
5426
5435
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5427
5436
|
}
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
*
|
|
5431
|
-
*
|
|
5432
|
-
* @param {Object}
|
|
5433
|
-
* @param {Object} props
|
|
5437
|
+
/**
|
|
5438
|
+
* Check whether a props change should result in an id or className update.
|
|
5439
|
+
*
|
|
5440
|
+
* @param {Object} prevProps
|
|
5441
|
+
* @param {Object} props
|
|
5434
5442
|
*/
|
|
5443
|
+
|
|
5444
|
+
|
|
5435
5445
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5436
5446
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5437
5447
|
}
|
|
5438
5448
|
|
|
5439
|
-
var YouTube = function (_React$Component) {
|
|
5449
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
5440
5450
|
_inherits(YouTube, _React$Component);
|
|
5441
5451
|
|
|
5452
|
+
var _super = _createSuper(YouTube);
|
|
5453
|
+
|
|
5454
|
+
/**
|
|
5455
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5456
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5457
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5458
|
+
*/
|
|
5442
5459
|
function YouTube(props) {
|
|
5460
|
+
var _this;
|
|
5461
|
+
|
|
5443
5462
|
_classCallCheck(this, YouTube);
|
|
5444
5463
|
|
|
5445
|
-
|
|
5464
|
+
_this = _super.call(this, props);
|
|
5446
5465
|
|
|
5447
|
-
_this
|
|
5466
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
5448
5467
|
return _this.props.onReady(event);
|
|
5449
|
-
};
|
|
5468
|
+
});
|
|
5450
5469
|
|
|
5451
|
-
_this
|
|
5470
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
5452
5471
|
return _this.props.onError(event);
|
|
5453
|
-
};
|
|
5472
|
+
});
|
|
5454
5473
|
|
|
5455
|
-
_this
|
|
5474
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
5456
5475
|
_this.props.onStateChange(event);
|
|
5457
|
-
switch (event.data) {
|
|
5458
5476
|
|
|
5477
|
+
switch (event.data) {
|
|
5459
5478
|
case YouTube.PlayerState.ENDED:
|
|
5460
5479
|
_this.props.onEnd(event);
|
|
5480
|
+
|
|
5461
5481
|
break;
|
|
5462
5482
|
|
|
5463
5483
|
case YouTube.PlayerState.PLAYING:
|
|
5464
5484
|
_this.props.onPlay(event);
|
|
5485
|
+
|
|
5465
5486
|
break;
|
|
5466
5487
|
|
|
5467
5488
|
case YouTube.PlayerState.PAUSED:
|
|
5468
5489
|
_this.props.onPause(event);
|
|
5490
|
+
|
|
5469
5491
|
break;
|
|
5470
5492
|
}
|
|
5471
|
-
};
|
|
5493
|
+
});
|
|
5472
5494
|
|
|
5473
|
-
_this
|
|
5495
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
5474
5496
|
return _this.props.onPlaybackRateChange(event);
|
|
5475
|
-
};
|
|
5497
|
+
});
|
|
5476
5498
|
|
|
5477
|
-
_this
|
|
5499
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
5478
5500
|
return _this.props.onPlaybackQualityChange(event);
|
|
5479
|
-
};
|
|
5501
|
+
});
|
|
5480
5502
|
|
|
5481
|
-
_this
|
|
5503
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
5482
5504
|
// do not attempt to create a player server-side, it won't work
|
|
5483
|
-
if (typeof document === 'undefined') return;
|
|
5484
|
-
|
|
5485
|
-
var playerOpts =
|
|
5505
|
+
if (typeof document === 'undefined') return; // create player
|
|
5506
|
+
|
|
5507
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
5486
5508
|
// preload the `videoId` video if one is already given
|
|
5487
5509
|
videoId: _this.props.videoId
|
|
5488
5510
|
});
|
|
5489
|
-
|
|
5490
|
-
// attach event handlers
|
|
5511
|
+
|
|
5512
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
5513
|
+
|
|
5491
5514
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5515
|
+
|
|
5492
5516
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5517
|
+
|
|
5493
5518
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5519
|
+
|
|
5494
5520
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5521
|
+
|
|
5495
5522
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5496
|
-
};
|
|
5523
|
+
});
|
|
5497
5524
|
|
|
5498
|
-
_this
|
|
5525
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
5499
5526
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5500
|
-
};
|
|
5527
|
+
});
|
|
5501
5528
|
|
|
5502
|
-
_this
|
|
5529
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
5503
5530
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5504
5531
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5505
5532
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5506
5533
|
});
|
|
5507
|
-
};
|
|
5534
|
+
});
|
|
5508
5535
|
|
|
5509
|
-
_this
|
|
5536
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
5510
5537
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5511
5538
|
_this.internalPlayer.stopVideo();
|
|
5539
|
+
|
|
5512
5540
|
return;
|
|
5513
|
-
}
|
|
5541
|
+
} // set queueing options
|
|
5542
|
+
|
|
5514
5543
|
|
|
5515
|
-
// set queueing options
|
|
5516
5544
|
var autoplay = false;
|
|
5517
5545
|
var opts = {
|
|
5518
5546
|
videoId: _this.props.videoId
|
|
5519
5547
|
};
|
|
5548
|
+
|
|
5520
5549
|
if ('playerVars' in _this.props.opts) {
|
|
5521
5550
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5551
|
+
|
|
5522
5552
|
if ('start' in _this.props.opts.playerVars) {
|
|
5523
5553
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5524
5554
|
}
|
|
5555
|
+
|
|
5525
5556
|
if ('end' in _this.props.opts.playerVars) {
|
|
5526
5557
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5527
5558
|
}
|
|
5528
|
-
}
|
|
5559
|
+
} // if autoplay is enabled loadVideoById
|
|
5560
|
+
|
|
5529
5561
|
|
|
5530
|
-
// if autoplay is enabled loadVideoById
|
|
5531
5562
|
if (autoplay) {
|
|
5532
5563
|
_this.internalPlayer.loadVideoById(opts);
|
|
5564
|
+
|
|
5533
5565
|
return;
|
|
5534
|
-
}
|
|
5535
|
-
|
|
5566
|
+
} // default behaviour just cues the video
|
|
5567
|
+
|
|
5568
|
+
|
|
5536
5569
|
_this.internalPlayer.cueVideoById(opts);
|
|
5537
|
-
};
|
|
5570
|
+
});
|
|
5538
5571
|
|
|
5539
|
-
_this
|
|
5572
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
5540
5573
|
_this.container = container;
|
|
5541
|
-
};
|
|
5574
|
+
});
|
|
5542
5575
|
|
|
5543
5576
|
_this.container = null;
|
|
5544
5577
|
_this.internalPlayer = null;
|
|
5545
5578
|
return _this;
|
|
5546
5579
|
}
|
|
5547
5580
|
|
|
5548
|
-
/**
|
|
5549
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5550
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5551
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5552
|
-
*/
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
5581
|
_createClass(YouTube, [{
|
|
5556
|
-
key:
|
|
5582
|
+
key: "componentDidMount",
|
|
5557
5583
|
value: function componentDidMount() {
|
|
5558
5584
|
this.createPlayer();
|
|
5559
5585
|
}
|
|
5560
5586
|
}, {
|
|
5561
|
-
key:
|
|
5587
|
+
key: "componentDidUpdate",
|
|
5562
5588
|
value: function componentDidUpdate(prevProps) {
|
|
5563
5589
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5564
5590
|
this.updatePlayer();
|
|
@@ -5573,112 +5599,58 @@ var YouTube = function (_React$Component) {
|
|
|
5573
5599
|
}
|
|
5574
5600
|
}
|
|
5575
5601
|
}, {
|
|
5576
|
-
key:
|
|
5602
|
+
key: "componentWillUnmount",
|
|
5577
5603
|
value: function componentWillUnmount() {
|
|
5578
|
-
/**
|
|
5579
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5580
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5581
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5582
|
-
* this method isn't quick enough to reset the container element.
|
|
5604
|
+
/**
|
|
5605
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
5606
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5607
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5608
|
+
* this method isn't quick enough to reset the container element.
|
|
5583
5609
|
*/
|
|
5584
5610
|
this.internalPlayer.destroy();
|
|
5585
5611
|
}
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
*
|
|
5589
|
-
*
|
|
5590
|
-
*
|
|
5591
|
-
* @param {Object} target - player object
|
|
5592
|
-
*/
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
/**
|
|
5596
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5597
|
-
*
|
|
5598
|
-
* @param {Object} event
|
|
5599
|
-
* @param {Integer} data - error type
|
|
5600
|
-
* @param {Object} target - player object
|
|
5601
|
-
*/
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
/**
|
|
5605
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5606
|
-
*
|
|
5607
|
-
* @param {Object} event
|
|
5608
|
-
* @param {Integer} data - status change type
|
|
5609
|
-
* @param {Object} target - actual YT player
|
|
5610
|
-
*/
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
/**
|
|
5614
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5615
|
-
*
|
|
5616
|
-
* @param {Object} event
|
|
5617
|
-
* @param {Float} data - playback rate
|
|
5618
|
-
* @param {Object} target - actual YT player
|
|
5619
|
-
*/
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
/**
|
|
5623
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5624
|
-
*
|
|
5625
|
-
* @param {Object} event
|
|
5626
|
-
* @param {String} data - playback quality
|
|
5627
|
-
* @param {Object} target - actual YT player
|
|
5628
|
-
*/
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
/**
|
|
5632
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5633
|
-
*/
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
/**
|
|
5637
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5638
|
-
*/
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
/**
|
|
5642
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
5643
|
-
* React should update this automatically but since the Youtube Player API
|
|
5644
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5645
|
-
*/
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
/**
|
|
5649
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
5650
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5651
|
-
* Youtube Player API methods to update the video.
|
|
5612
|
+
/**
|
|
5613
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5614
|
+
*
|
|
5615
|
+
* @param {Object} event
|
|
5616
|
+
* @param {Object} target - player object
|
|
5652
5617
|
*/
|
|
5653
5618
|
|
|
5654
5619
|
}, {
|
|
5655
|
-
key:
|
|
5620
|
+
key: "render",
|
|
5656
5621
|
value: function render() {
|
|
5657
|
-
return React__default.createElement(
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5622
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
5623
|
+
className: this.props.containerClassName
|
|
5624
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5625
|
+
id: this.props.id,
|
|
5626
|
+
className: this.props.className,
|
|
5627
|
+
ref: this.refContainer
|
|
5628
|
+
}));
|
|
5662
5629
|
}
|
|
5663
5630
|
}]);
|
|
5664
5631
|
|
|
5665
5632
|
return YouTube;
|
|
5666
5633
|
}(React__default.Component);
|
|
5667
5634
|
|
|
5635
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
5636
|
+
UNSTARTED: -1,
|
|
5637
|
+
ENDED: 0,
|
|
5638
|
+
PLAYING: 1,
|
|
5639
|
+
PAUSED: 2,
|
|
5640
|
+
BUFFERING: 3,
|
|
5641
|
+
CUED: 5
|
|
5642
|
+
});
|
|
5643
|
+
|
|
5668
5644
|
YouTube.propTypes = {
|
|
5669
5645
|
videoId: PropTypes.string,
|
|
5670
|
-
|
|
5671
5646
|
// custom ID for player element
|
|
5672
5647
|
id: PropTypes.string,
|
|
5673
|
-
|
|
5674
5648
|
// custom class name for player element
|
|
5675
5649
|
className: PropTypes.string,
|
|
5676
5650
|
// custom class name for player container element
|
|
5677
5651
|
containerClassName: PropTypes.string,
|
|
5678
|
-
|
|
5679
5652
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5680
5653
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5681
|
-
|
|
5682
5654
|
// event subscriptions
|
|
5683
5655
|
onReady: PropTypes.func,
|
|
5684
5656
|
onError: PropTypes.func,
|
|
@@ -5690,6 +5662,7 @@ YouTube.propTypes = {
|
|
|
5690
5662
|
onPlaybackQualityChange: PropTypes.func
|
|
5691
5663
|
};
|
|
5692
5664
|
YouTube.defaultProps = {
|
|
5665
|
+
videoId: null,
|
|
5693
5666
|
id: null,
|
|
5694
5667
|
className: null,
|
|
5695
5668
|
opts: {},
|
|
@@ -5703,14 +5676,6 @@ YouTube.defaultProps = {
|
|
|
5703
5676
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5704
5677
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5705
5678
|
};
|
|
5706
|
-
YouTube.PlayerState = {
|
|
5707
|
-
UNSTARTED: -1,
|
|
5708
|
-
ENDED: 0,
|
|
5709
|
-
PLAYING: 1,
|
|
5710
|
-
PAUSED: 2,
|
|
5711
|
-
BUFFERING: 3,
|
|
5712
|
-
CUED: 5
|
|
5713
|
-
};
|
|
5714
5679
|
|
|
5715
5680
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5716
5681
|
var url = _ref.url;
|
|
@@ -6734,8 +6699,8 @@ var window_1 = win;
|
|
|
6734
6699
|
|
|
6735
6700
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6736
6701
|
|
|
6737
|
-
function _extends
|
|
6738
|
-
_extends
|
|
6702
|
+
function _extends() {
|
|
6703
|
+
_extends = Object.assign || function (target) {
|
|
6739
6704
|
for (var i = 1; i < arguments.length; i++) {
|
|
6740
6705
|
var source = arguments[i];
|
|
6741
6706
|
|
|
@@ -6749,7 +6714,7 @@ function _extends$1() {
|
|
|
6749
6714
|
return target;
|
|
6750
6715
|
};
|
|
6751
6716
|
|
|
6752
|
-
return _extends
|
|
6717
|
+
return _extends.apply(this, arguments);
|
|
6753
6718
|
}
|
|
6754
6719
|
|
|
6755
6720
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6758,7 +6723,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6758
6723
|
subClass.__proto__ = superClass;
|
|
6759
6724
|
}
|
|
6760
6725
|
|
|
6761
|
-
function _assertThisInitialized(self) {
|
|
6726
|
+
function _assertThisInitialized$1(self) {
|
|
6762
6727
|
if (self === void 0) {
|
|
6763
6728
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6764
6729
|
}
|
|
@@ -6768,8 +6733,8 @@ function _assertThisInitialized(self) {
|
|
|
6768
6733
|
|
|
6769
6734
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6770
6735
|
|
|
6771
|
-
function _extends$1
|
|
6772
|
-
_extends$1
|
|
6736
|
+
function _extends$1() {
|
|
6737
|
+
_extends$1 = Object.assign || function (target) {
|
|
6773
6738
|
for (var i = 1; i < arguments.length; i++) {
|
|
6774
6739
|
var source = arguments[i];
|
|
6775
6740
|
|
|
@@ -6783,7 +6748,7 @@ function _extends$1$1() {
|
|
|
6783
6748
|
return target;
|
|
6784
6749
|
};
|
|
6785
6750
|
|
|
6786
|
-
return _extends$1
|
|
6751
|
+
return _extends$1.apply(this, arguments);
|
|
6787
6752
|
}
|
|
6788
6753
|
|
|
6789
6754
|
var version$1 = "1.7.1";
|
|
@@ -6791,7 +6756,7 @@ var version$1 = "1.7.1";
|
|
|
6791
6756
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6792
6757
|
var version$1$1 = "1.2.0";
|
|
6793
6758
|
|
|
6794
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6759
|
+
var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6795
6760
|
return typeof obj;
|
|
6796
6761
|
} : function (obj) {
|
|
6797
6762
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6926,7 +6891,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6926
6891
|
|
|
6927
6892
|
var qs = '';
|
|
6928
6893
|
|
|
6929
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6894
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
|
|
6930
6895
|
qs = getQueryString(queryParams);
|
|
6931
6896
|
}
|
|
6932
6897
|
|
|
@@ -7160,7 +7125,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
7160
7125
|
el.style.width = '100%';
|
|
7161
7126
|
el.style.height = '100%';
|
|
7162
7127
|
|
|
7163
|
-
var responsive = _extends$1
|
|
7128
|
+
var responsive = _extends$1({
|
|
7164
7129
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
7165
7130
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
7166
7131
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7845,7 +7810,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7845
7810
|
|
|
7846
7811
|
|
|
7847
7812
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7848
|
-
var params = _extends$1
|
|
7813
|
+
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7849
7814
|
|
|
7850
7815
|
var Promise = params.Promise,
|
|
7851
7816
|
onSuccess = params.onSuccess,
|
|
@@ -7987,7 +7952,7 @@ function (_React$Component) {
|
|
|
7987
7952
|
_this.refNode = ref;
|
|
7988
7953
|
};
|
|
7989
7954
|
|
|
7990
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7955
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
|
|
7991
7956
|
return _this;
|
|
7992
7957
|
}
|
|
7993
7958
|
/**
|
|
@@ -8008,7 +7973,7 @@ function (_React$Component) {
|
|
|
8008
7973
|
var userSuccess = this.props.onSuccess;
|
|
8009
7974
|
var userFailure = this.props.onFailure;
|
|
8010
7975
|
|
|
8011
|
-
var options = _extends
|
|
7976
|
+
var options = _extends({}, this.props, {
|
|
8012
7977
|
refNode: this.refNode,
|
|
8013
7978
|
refNodeInsert: 'append',
|
|
8014
7979
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8317,7 +8282,7 @@ function (_React$Component) {
|
|
|
8317
8282
|
;
|
|
8318
8283
|
|
|
8319
8284
|
_proto.render = function render() {
|
|
8320
|
-
var props = _extends
|
|
8285
|
+
var props = _extends({
|
|
8321
8286
|
className: 'brightcove-react-player-loader'
|
|
8322
8287
|
}, this.props.attrs, {
|
|
8323
8288
|
ref: this.setRefNode
|
|
@@ -8733,11 +8698,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8733
8698
|
|
|
8734
8699
|
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; }
|
|
8735
8700
|
|
|
8736
|
-
function
|
|
8701
|
+
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; } } }; }
|
|
8702
|
+
|
|
8703
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8704
|
+
|
|
8705
|
+
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."); }
|
|
8737
8706
|
|
|
8738
|
-
function
|
|
8707
|
+
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); }
|
|
8739
8708
|
|
|
8740
|
-
function
|
|
8709
|
+
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; }
|
|
8710
|
+
|
|
8711
|
+
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; }
|
|
8741
8712
|
|
|
8742
8713
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8743
8714
|
|
|
@@ -8867,12 +8838,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8867
8838
|
|
|
8868
8839
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8869
8840
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8870
|
-
|
|
8871
|
-
var
|
|
8872
|
-
|
|
8841
|
+
|
|
8842
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
8843
|
+
_step;
|
|
8873
8844
|
|
|
8874
8845
|
try {
|
|
8875
|
-
for (
|
|
8846
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
8876
8847
|
var p = _step.value;
|
|
8877
8848
|
|
|
8878
8849
|
if (props$1[p]) {
|
|
@@ -8887,18 +8858,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8887
8858
|
}
|
|
8888
8859
|
}
|
|
8889
8860
|
} catch (err) {
|
|
8890
|
-
|
|
8891
|
-
_iteratorError = err;
|
|
8861
|
+
_iterator.e(err);
|
|
8892
8862
|
} finally {
|
|
8893
|
-
|
|
8894
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8895
|
-
_iterator["return"]();
|
|
8896
|
-
}
|
|
8897
|
-
} finally {
|
|
8898
|
-
if (_didIteratorError) {
|
|
8899
|
-
throw _iteratorError;
|
|
8900
|
-
}
|
|
8901
|
-
}
|
|
8863
|
+
_iterator.f();
|
|
8902
8864
|
}
|
|
8903
8865
|
|
|
8904
8866
|
return config;
|
|
@@ -9045,12 +9007,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9045
9007
|
|
|
9046
9008
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9047
9009
|
|
|
9048
|
-
function
|
|
9010
|
+
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); }; }
|
|
9049
9011
|
|
|
9050
|
-
function
|
|
9012
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9051
9013
|
|
|
9052
9014
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9053
9015
|
|
|
9016
|
+
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; } }
|
|
9017
|
+
|
|
9018
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9019
|
+
|
|
9054
9020
|
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); }
|
|
9055
9021
|
|
|
9056
9022
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9059,14 +9025,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9059
9025
|
|
|
9060
9026
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
9061
9027
|
|
|
9062
|
-
var Player =
|
|
9063
|
-
/*#__PURE__*/
|
|
9064
|
-
function (_Component) {
|
|
9028
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
9065
9029
|
_inherits(Player, _Component);
|
|
9066
9030
|
|
|
9067
|
-
|
|
9068
|
-
var _getPrototypeOf2;
|
|
9031
|
+
var _super = _createSuper(Player);
|
|
9069
9032
|
|
|
9033
|
+
function Player() {
|
|
9070
9034
|
var _this;
|
|
9071
9035
|
|
|
9072
9036
|
_classCallCheck(this, Player);
|
|
@@ -9075,7 +9039,7 @@ function (_Component) {
|
|
|
9075
9039
|
_args[_key] = arguments[_key];
|
|
9076
9040
|
}
|
|
9077
9041
|
|
|
9078
|
-
_this =
|
|
9042
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
9079
9043
|
|
|
9080
9044
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
9081
9045
|
|
|
@@ -9400,7 +9364,7 @@ function (_Component) {
|
|
|
9400
9364
|
return null;
|
|
9401
9365
|
}
|
|
9402
9366
|
|
|
9403
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9367
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
9404
9368
|
ref: this.ref,
|
|
9405
9369
|
onReady: this.handleReady,
|
|
9406
9370
|
onPlay: this.handlePlay,
|
|
@@ -9461,12 +9425,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9461
9425
|
|
|
9462
9426
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9463
9427
|
|
|
9464
|
-
function
|
|
9428
|
+
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); }; }
|
|
9465
9429
|
|
|
9466
|
-
function
|
|
9430
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9467
9431
|
|
|
9468
9432
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9469
9433
|
|
|
9434
|
+
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; } }
|
|
9435
|
+
|
|
9436
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9437
|
+
|
|
9470
9438
|
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); }
|
|
9471
9439
|
|
|
9472
9440
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9478,14 +9446,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9478
9446
|
function createSinglePlayer(activePlayer) {
|
|
9479
9447
|
var _class, _temp;
|
|
9480
9448
|
|
|
9481
|
-
return _temp = _class =
|
|
9482
|
-
/*#__PURE__*/
|
|
9483
|
-
function (_Component) {
|
|
9449
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
9484
9450
|
_inherits(SinglePlayer, _Component);
|
|
9485
9451
|
|
|
9486
|
-
|
|
9487
|
-
var _getPrototypeOf2;
|
|
9452
|
+
var _super = _createSuper(SinglePlayer);
|
|
9488
9453
|
|
|
9454
|
+
function SinglePlayer() {
|
|
9489
9455
|
var _this;
|
|
9490
9456
|
|
|
9491
9457
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9494,7 +9460,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9494
9460
|
args[_key] = arguments[_key];
|
|
9495
9461
|
}
|
|
9496
9462
|
|
|
9497
|
-
_this =
|
|
9463
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9498
9464
|
|
|
9499
9465
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9500
9466
|
|
|
@@ -9562,12 +9528,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9562
9528
|
height = _this$props.height,
|
|
9563
9529
|
Wrapper = _this$props.wrapper;
|
|
9564
9530
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9565
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
9531
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
9566
9532
|
style: _objectSpread({}, style, {
|
|
9567
9533
|
width: width,
|
|
9568
9534
|
height: height
|
|
9569
9535
|
})
|
|
9570
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9536
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9571
9537
|
ref: this.ref,
|
|
9572
9538
|
activePlayer: activePlayer,
|
|
9573
9539
|
config: this.config
|
|
@@ -9613,23 +9579,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9613
9579
|
|
|
9614
9580
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9615
9581
|
|
|
9616
|
-
function
|
|
9582
|
+
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); }; }
|
|
9617
9583
|
|
|
9618
|
-
function
|
|
9584
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9619
9585
|
|
|
9620
9586
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9621
9587
|
|
|
9588
|
+
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; } }
|
|
9589
|
+
|
|
9590
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9591
|
+
|
|
9622
9592
|
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); }
|
|
9623
9593
|
|
|
9624
9594
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9625
9595
|
|
|
9626
9596
|
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; }
|
|
9627
9597
|
|
|
9628
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9598
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9599
|
+
|
|
9600
|
+
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."); }
|
|
9629
9601
|
|
|
9630
|
-
function
|
|
9602
|
+
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); }
|
|
9631
9603
|
|
|
9632
|
-
function
|
|
9604
|
+
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; }
|
|
9605
|
+
|
|
9606
|
+
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; }
|
|
9633
9607
|
|
|
9634
9608
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9635
9609
|
|
|
@@ -9654,14 +9628,12 @@ function parsePlaylist(url) {
|
|
|
9654
9628
|
return {};
|
|
9655
9629
|
}
|
|
9656
9630
|
|
|
9657
|
-
var YouTube =
|
|
9658
|
-
/*#__PURE__*/
|
|
9659
|
-
function (_Component) {
|
|
9631
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
9660
9632
|
_inherits(YouTube, _Component);
|
|
9661
9633
|
|
|
9662
|
-
|
|
9663
|
-
var _getPrototypeOf2;
|
|
9634
|
+
var _super = _createSuper(YouTube);
|
|
9664
9635
|
|
|
9636
|
+
function YouTube() {
|
|
9665
9637
|
var _this;
|
|
9666
9638
|
|
|
9667
9639
|
_classCallCheck(this, YouTube);
|
|
@@ -9670,7 +9642,7 @@ function (_Component) {
|
|
|
9670
9642
|
args[_key] = arguments[_key];
|
|
9671
9643
|
}
|
|
9672
9644
|
|
|
9673
|
-
_this =
|
|
9645
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9674
9646
|
|
|
9675
9647
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9676
9648
|
|
|
@@ -9858,9 +9830,9 @@ function (_Component) {
|
|
|
9858
9830
|
height: '100%',
|
|
9859
9831
|
display: display
|
|
9860
9832
|
};
|
|
9861
|
-
return _react["default"].createElement("div", {
|
|
9833
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
9862
9834
|
style: style
|
|
9863
|
-
}, _react["default"].createElement("div", {
|
|
9835
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
9864
9836
|
ref: this.ref
|
|
9865
9837
|
}));
|
|
9866
9838
|
}
|
|
@@ -9916,12 +9888,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9916
9888
|
|
|
9917
9889
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9918
9890
|
|
|
9919
|
-
function
|
|
9891
|
+
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); }; }
|
|
9920
9892
|
|
|
9921
|
-
function
|
|
9893
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9922
9894
|
|
|
9923
9895
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9924
9896
|
|
|
9897
|
+
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; } }
|
|
9898
|
+
|
|
9899
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9900
|
+
|
|
9925
9901
|
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); }
|
|
9926
9902
|
|
|
9927
9903
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9930,16 +9906,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9930
9906
|
|
|
9931
9907
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9932
9908
|
var SDK_GLOBAL = 'SC';
|
|
9933
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
9909
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
9934
9910
|
|
|
9935
|
-
var SoundCloud =
|
|
9936
|
-
/*#__PURE__*/
|
|
9937
|
-
function (_Component) {
|
|
9911
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
9938
9912
|
_inherits(SoundCloud, _Component);
|
|
9939
9913
|
|
|
9940
|
-
|
|
9941
|
-
var _getPrototypeOf2;
|
|
9914
|
+
var _super = _createSuper(SoundCloud);
|
|
9942
9915
|
|
|
9916
|
+
function SoundCloud() {
|
|
9943
9917
|
var _this;
|
|
9944
9918
|
|
|
9945
9919
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9948,7 +9922,7 @@ function (_Component) {
|
|
|
9948
9922
|
args[_key] = arguments[_key];
|
|
9949
9923
|
}
|
|
9950
9924
|
|
|
9951
|
-
_this =
|
|
9925
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9952
9926
|
|
|
9953
9927
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9954
9928
|
|
|
@@ -10069,7 +10043,7 @@ function (_Component) {
|
|
|
10069
10043
|
height: '100%',
|
|
10070
10044
|
display: display
|
|
10071
10045
|
};
|
|
10072
|
-
return _react["default"].createElement("iframe", {
|
|
10046
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
10073
10047
|
ref: this.ref,
|
|
10074
10048
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
10075
10049
|
style: style,
|
|
@@ -10131,12 +10105,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10131
10105
|
|
|
10132
10106
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10133
10107
|
|
|
10134
|
-
function
|
|
10108
|
+
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); }; }
|
|
10135
10109
|
|
|
10136
|
-
function
|
|
10110
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10137
10111
|
|
|
10138
10112
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10139
10113
|
|
|
10114
|
+
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; } }
|
|
10115
|
+
|
|
10116
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10117
|
+
|
|
10140
10118
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10141
10119
|
|
|
10142
10120
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10148,14 +10126,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10148
10126
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10149
10127
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10150
10128
|
|
|
10151
|
-
var Vimeo =
|
|
10152
|
-
/*#__PURE__*/
|
|
10153
|
-
function (_Component) {
|
|
10129
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
10154
10130
|
_inherits(Vimeo, _Component);
|
|
10155
10131
|
|
|
10156
|
-
|
|
10157
|
-
var _getPrototypeOf2;
|
|
10132
|
+
var _super = _createSuper(Vimeo);
|
|
10158
10133
|
|
|
10134
|
+
function Vimeo() {
|
|
10159
10135
|
var _this;
|
|
10160
10136
|
|
|
10161
10137
|
_classCallCheck(this, Vimeo);
|
|
@@ -10164,7 +10140,7 @@ function (_Component) {
|
|
|
10164
10140
|
args[_key] = arguments[_key];
|
|
10165
10141
|
}
|
|
10166
10142
|
|
|
10167
|
-
_this =
|
|
10143
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10168
10144
|
|
|
10169
10145
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10170
10146
|
|
|
@@ -10321,7 +10297,7 @@ function (_Component) {
|
|
|
10321
10297
|
overflow: 'hidden',
|
|
10322
10298
|
display: display
|
|
10323
10299
|
};
|
|
10324
|
-
return _react["default"].createElement("div", {
|
|
10300
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10325
10301
|
key: this.props.url,
|
|
10326
10302
|
ref: this.ref,
|
|
10327
10303
|
style: style
|
|
@@ -10381,12 +10357,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10381
10357
|
|
|
10382
10358
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10383
10359
|
|
|
10384
|
-
function
|
|
10360
|
+
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); }; }
|
|
10385
10361
|
|
|
10386
|
-
function
|
|
10362
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10387
10363
|
|
|
10388
10364
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10389
10365
|
|
|
10366
|
+
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; } }
|
|
10367
|
+
|
|
10368
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10369
|
+
|
|
10390
10370
|
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); }
|
|
10391
10371
|
|
|
10392
10372
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10399,14 +10379,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10399
10379
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10400
10380
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10401
10381
|
|
|
10402
|
-
var Facebook =
|
|
10403
|
-
/*#__PURE__*/
|
|
10404
|
-
function (_Component) {
|
|
10382
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
10405
10383
|
_inherits(Facebook, _Component);
|
|
10406
10384
|
|
|
10407
|
-
|
|
10408
|
-
var _getPrototypeOf2;
|
|
10385
|
+
var _super = _createSuper(Facebook);
|
|
10409
10386
|
|
|
10387
|
+
function Facebook() {
|
|
10410
10388
|
var _this;
|
|
10411
10389
|
|
|
10412
10390
|
_classCallCheck(this, Facebook);
|
|
@@ -10415,7 +10393,7 @@ function (_Component) {
|
|
|
10415
10393
|
args[_key] = arguments[_key];
|
|
10416
10394
|
}
|
|
10417
10395
|
|
|
10418
|
-
_this =
|
|
10396
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10419
10397
|
|
|
10420
10398
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10421
10399
|
|
|
@@ -10531,7 +10509,7 @@ function (_Component) {
|
|
|
10531
10509
|
width: '100%',
|
|
10532
10510
|
height: '100%'
|
|
10533
10511
|
};
|
|
10534
|
-
return _react["default"].createElement("div", {
|
|
10512
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10535
10513
|
style: style,
|
|
10536
10514
|
id: this.playerID,
|
|
10537
10515
|
className: "fb-video",
|
|
@@ -10591,12 +10569,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10591
10569
|
|
|
10592
10570
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10593
10571
|
|
|
10594
|
-
function
|
|
10572
|
+
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); }; }
|
|
10595
10573
|
|
|
10596
|
-
function
|
|
10574
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10597
10575
|
|
|
10598
10576
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10599
10577
|
|
|
10578
|
+
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; } }
|
|
10579
|
+
|
|
10580
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10581
|
+
|
|
10600
10582
|
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); }
|
|
10601
10583
|
|
|
10602
10584
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10607,14 +10589,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10607
10589
|
var SDK_GLOBAL = 'playerjs';
|
|
10608
10590
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10609
10591
|
|
|
10610
|
-
var Streamable =
|
|
10611
|
-
/*#__PURE__*/
|
|
10612
|
-
function (_Component) {
|
|
10592
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
10613
10593
|
_inherits(Streamable, _Component);
|
|
10614
10594
|
|
|
10615
|
-
|
|
10616
|
-
var _getPrototypeOf2;
|
|
10595
|
+
var _super = _createSuper(Streamable);
|
|
10617
10596
|
|
|
10597
|
+
function Streamable() {
|
|
10618
10598
|
var _this;
|
|
10619
10599
|
|
|
10620
10600
|
_classCallCheck(this, Streamable);
|
|
@@ -10623,7 +10603,7 @@ function (_Component) {
|
|
|
10623
10603
|
args[_key] = arguments[_key];
|
|
10624
10604
|
}
|
|
10625
10605
|
|
|
10626
|
-
_this =
|
|
10606
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10627
10607
|
|
|
10628
10608
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10629
10609
|
|
|
@@ -10743,7 +10723,7 @@ function (_Component) {
|
|
|
10743
10723
|
width: '100%',
|
|
10744
10724
|
height: '100%'
|
|
10745
10725
|
};
|
|
10746
|
-
return _react["default"].createElement("iframe", {
|
|
10726
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
10747
10727
|
ref: this.ref,
|
|
10748
10728
|
src: "https://streamable.com/o/".concat(id),
|
|
10749
10729
|
frameBorder: "0",
|
|
@@ -10804,12 +10784,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10804
10784
|
|
|
10805
10785
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10806
10786
|
|
|
10807
|
-
function
|
|
10787
|
+
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); }; }
|
|
10808
10788
|
|
|
10809
|
-
function
|
|
10789
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10810
10790
|
|
|
10811
10791
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10812
10792
|
|
|
10793
|
+
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; } }
|
|
10794
|
+
|
|
10795
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10796
|
+
|
|
10813
10797
|
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); }
|
|
10814
10798
|
|
|
10815
10799
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10820,27 +10804,49 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10820
10804
|
var SDK_GLOBAL = 'Wistia';
|
|
10821
10805
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10822
10806
|
|
|
10823
|
-
var Wistia =
|
|
10824
|
-
/*#__PURE__*/
|
|
10825
|
-
function (_Component) {
|
|
10807
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
10826
10808
|
_inherits(Wistia, _Component);
|
|
10827
10809
|
|
|
10828
|
-
|
|
10829
|
-
var _getPrototypeOf2;
|
|
10810
|
+
var _super = _createSuper(Wistia);
|
|
10830
10811
|
|
|
10812
|
+
function Wistia() {
|
|
10831
10813
|
var _this;
|
|
10832
10814
|
|
|
10833
10815
|
_classCallCheck(this, Wistia);
|
|
10834
10816
|
|
|
10835
|
-
for (var _len = arguments.length,
|
|
10836
|
-
|
|
10817
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10818
|
+
_args[_key] = arguments[_key];
|
|
10837
10819
|
}
|
|
10838
10820
|
|
|
10839
|
-
_this =
|
|
10821
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
10840
10822
|
|
|
10841
10823
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10842
10824
|
|
|
10843
|
-
_defineProperty(_assertThisInitialized(_this), "
|
|
10825
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10826
|
+
var _this$props;
|
|
10827
|
+
|
|
10828
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10829
|
+
});
|
|
10830
|
+
|
|
10831
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10832
|
+
var _this$props2;
|
|
10833
|
+
|
|
10834
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10835
|
+
});
|
|
10836
|
+
|
|
10837
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10838
|
+
var _this$props3;
|
|
10839
|
+
|
|
10840
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10841
|
+
});
|
|
10842
|
+
|
|
10843
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10844
|
+
var _this$props4;
|
|
10845
|
+
|
|
10846
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10847
|
+
});
|
|
10848
|
+
|
|
10849
|
+
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10844
10850
|
_this.callPlayer('mute');
|
|
10845
10851
|
});
|
|
10846
10852
|
|
|
@@ -10861,17 +10867,13 @@ function (_Component) {
|
|
|
10861
10867
|
value: function load(url) {
|
|
10862
10868
|
var _this2 = this;
|
|
10863
10869
|
|
|
10864
|
-
var _this$
|
|
10865
|
-
playing = _this$
|
|
10866
|
-
muted = _this$
|
|
10867
|
-
controls = _this$
|
|
10868
|
-
_onReady = _this$
|
|
10869
|
-
|
|
10870
|
-
|
|
10871
|
-
onSeek = _this$props.onSeek,
|
|
10872
|
-
onEnded = _this$props.onEnded,
|
|
10873
|
-
config = _this$props.config,
|
|
10874
|
-
onError = _this$props.onError;
|
|
10870
|
+
var _this$props5 = this.props,
|
|
10871
|
+
playing = _this$props5.playing,
|
|
10872
|
+
muted = _this$props5.muted,
|
|
10873
|
+
controls = _this$props5.controls,
|
|
10874
|
+
_onReady = _this$props5.onReady,
|
|
10875
|
+
config = _this$props5.config,
|
|
10876
|
+
onError = _this$props5.onError;
|
|
10875
10877
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10876
10878
|
window._wq = window._wq || [];
|
|
10877
10879
|
|
|
@@ -10888,19 +10890,28 @@ function (_Component) {
|
|
|
10888
10890
|
|
|
10889
10891
|
_this2.unbind();
|
|
10890
10892
|
|
|
10891
|
-
_this2.player.bind('play', onPlay);
|
|
10893
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
10892
10894
|
|
|
10893
|
-
_this2.player.bind('pause', onPause);
|
|
10895
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
10894
10896
|
|
|
10895
|
-
_this2.player.bind('seek', onSeek);
|
|
10897
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
10896
10898
|
|
|
10897
|
-
_this2.player.bind('end', onEnded);
|
|
10899
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
10898
10900
|
|
|
10899
10901
|
_onReady();
|
|
10900
10902
|
}
|
|
10901
10903
|
});
|
|
10902
10904
|
}, onError);
|
|
10903
10905
|
}
|
|
10906
|
+
}, {
|
|
10907
|
+
key: "unbind",
|
|
10908
|
+
value: function unbind() {
|
|
10909
|
+
this.player.unbind('play', this.onPlay);
|
|
10910
|
+
this.player.unbind('pause', this.onPause);
|
|
10911
|
+
this.player.unbind('seek', this.onSeek);
|
|
10912
|
+
this.player.unbind('end', this.onEnded);
|
|
10913
|
+
} // Proxy methods to prevent listener leaks
|
|
10914
|
+
|
|
10904
10915
|
}, {
|
|
10905
10916
|
key: "play",
|
|
10906
10917
|
value: function play() {
|
|
@@ -10911,19 +10922,6 @@ function (_Component) {
|
|
|
10911
10922
|
value: function pause() {
|
|
10912
10923
|
this.callPlayer('pause');
|
|
10913
10924
|
}
|
|
10914
|
-
}, {
|
|
10915
|
-
key: "unbind",
|
|
10916
|
-
value: function unbind() {
|
|
10917
|
-
var _this$props2 = this.props,
|
|
10918
|
-
onPlay = _this$props2.onPlay,
|
|
10919
|
-
onPause = _this$props2.onPause,
|
|
10920
|
-
onSeek = _this$props2.onSeek,
|
|
10921
|
-
onEnded = _this$props2.onEnded;
|
|
10922
|
-
this.player.unbind('play', onPlay);
|
|
10923
|
-
this.player.unbind('pause', onPause);
|
|
10924
|
-
this.player.unbind('seek', onSeek);
|
|
10925
|
-
this.player.unbind('end', onEnded);
|
|
10926
|
-
}
|
|
10927
10925
|
}, {
|
|
10928
10926
|
key: "stop",
|
|
10929
10927
|
value: function stop() {
|
|
@@ -10969,7 +10967,7 @@ function (_Component) {
|
|
|
10969
10967
|
width: '100%',
|
|
10970
10968
|
height: '100%'
|
|
10971
10969
|
};
|
|
10972
|
-
return _react["default"].createElement("div", {
|
|
10970
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10973
10971
|
key: id,
|
|
10974
10972
|
className: className,
|
|
10975
10973
|
style: style
|
|
@@ -11029,12 +11027,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11029
11027
|
|
|
11030
11028
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11031
11029
|
|
|
11032
|
-
function
|
|
11030
|
+
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); }; }
|
|
11033
11031
|
|
|
11034
|
-
function
|
|
11032
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11035
11033
|
|
|
11036
11034
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11037
11035
|
|
|
11036
|
+
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; } }
|
|
11037
|
+
|
|
11038
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11039
|
+
|
|
11038
11040
|
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); }
|
|
11039
11041
|
|
|
11040
11042
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11047,14 +11049,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
11047
11049
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
11048
11050
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
11049
11051
|
|
|
11050
|
-
var Twitch =
|
|
11051
|
-
/*#__PURE__*/
|
|
11052
|
-
function (_Component) {
|
|
11052
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
11053
11053
|
_inherits(Twitch, _Component);
|
|
11054
11054
|
|
|
11055
|
-
|
|
11056
|
-
var _getPrototypeOf2;
|
|
11055
|
+
var _super = _createSuper(Twitch);
|
|
11057
11056
|
|
|
11057
|
+
function Twitch() {
|
|
11058
11058
|
var _this;
|
|
11059
11059
|
|
|
11060
11060
|
_classCallCheck(this, Twitch);
|
|
@@ -11063,7 +11063,7 @@ function (_Component) {
|
|
|
11063
11063
|
args[_key] = arguments[_key];
|
|
11064
11064
|
}
|
|
11065
11065
|
|
|
11066
|
-
_this =
|
|
11066
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11067
11067
|
|
|
11068
11068
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11069
11069
|
|
|
@@ -11184,7 +11184,7 @@ function (_Component) {
|
|
|
11184
11184
|
width: '100%',
|
|
11185
11185
|
height: '100%'
|
|
11186
11186
|
};
|
|
11187
|
-
return _react["default"].createElement("div", {
|
|
11187
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11188
11188
|
style: style,
|
|
11189
11189
|
id: this.playerID
|
|
11190
11190
|
});
|
|
@@ -11237,11 +11237,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11237
11237
|
|
|
11238
11238
|
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; }
|
|
11239
11239
|
|
|
11240
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11240
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11241
|
+
|
|
11242
|
+
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."); }
|
|
11243
|
+
|
|
11244
|
+
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); }
|
|
11241
11245
|
|
|
11242
|
-
function
|
|
11246
|
+
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; }
|
|
11243
11247
|
|
|
11244
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
11248
|
+
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; }
|
|
11245
11249
|
|
|
11246
11250
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11247
11251
|
|
|
@@ -11251,12 +11255,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11251
11255
|
|
|
11252
11256
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11253
11257
|
|
|
11254
|
-
function
|
|
11258
|
+
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); }; }
|
|
11255
11259
|
|
|
11256
|
-
function
|
|
11260
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11257
11261
|
|
|
11258
11262
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11259
11263
|
|
|
11264
|
+
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; } }
|
|
11265
|
+
|
|
11266
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11267
|
+
|
|
11260
11268
|
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); }
|
|
11261
11269
|
|
|
11262
11270
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11268,14 +11276,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
11268
11276
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11269
11277
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11270
11278
|
|
|
11271
|
-
var DailyMotion =
|
|
11272
|
-
/*#__PURE__*/
|
|
11273
|
-
function (_Component) {
|
|
11279
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
11274
11280
|
_inherits(DailyMotion, _Component);
|
|
11275
11281
|
|
|
11276
|
-
|
|
11277
|
-
var _getPrototypeOf2;
|
|
11282
|
+
var _super = _createSuper(DailyMotion);
|
|
11278
11283
|
|
|
11284
|
+
function DailyMotion() {
|
|
11279
11285
|
var _this;
|
|
11280
11286
|
|
|
11281
11287
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11284,7 +11290,7 @@ function (_Component) {
|
|
|
11284
11290
|
args[_key] = arguments[_key];
|
|
11285
11291
|
}
|
|
11286
11292
|
|
|
11287
|
-
_this =
|
|
11293
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11288
11294
|
|
|
11289
11295
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11290
11296
|
|
|
@@ -11413,9 +11419,9 @@ function (_Component) {
|
|
|
11413
11419
|
height: '100%',
|
|
11414
11420
|
display: display
|
|
11415
11421
|
};
|
|
11416
|
-
return _react["default"].createElement("div", {
|
|
11422
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11417
11423
|
style: style
|
|
11418
|
-
}, _react["default"].createElement("div", {
|
|
11424
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
11419
11425
|
ref: this.ref
|
|
11420
11426
|
}));
|
|
11421
11427
|
}
|
|
@@ -11473,12 +11479,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11473
11479
|
|
|
11474
11480
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11475
11481
|
|
|
11476
|
-
function
|
|
11482
|
+
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); }; }
|
|
11477
11483
|
|
|
11478
|
-
function
|
|
11484
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11479
11485
|
|
|
11480
11486
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11481
11487
|
|
|
11488
|
+
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; } }
|
|
11489
|
+
|
|
11490
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11491
|
+
|
|
11482
11492
|
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); }
|
|
11483
11493
|
|
|
11484
11494
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11489,14 +11499,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11489
11499
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11490
11500
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11491
11501
|
|
|
11492
|
-
var Mixcloud =
|
|
11493
|
-
/*#__PURE__*/
|
|
11494
|
-
function (_Component) {
|
|
11502
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
11495
11503
|
_inherits(Mixcloud, _Component);
|
|
11496
11504
|
|
|
11497
|
-
|
|
11498
|
-
var _getPrototypeOf2;
|
|
11505
|
+
var _super = _createSuper(Mixcloud);
|
|
11499
11506
|
|
|
11507
|
+
function Mixcloud() {
|
|
11500
11508
|
var _this;
|
|
11501
11509
|
|
|
11502
11510
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11505,7 +11513,7 @@ function (_Component) {
|
|
|
11505
11513
|
args[_key] = arguments[_key];
|
|
11506
11514
|
}
|
|
11507
11515
|
|
|
11508
|
-
_this =
|
|
11516
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11509
11517
|
|
|
11510
11518
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11511
11519
|
|
|
@@ -11608,7 +11616,7 @@ function (_Component) {
|
|
|
11608
11616
|
})); // We have to give the iframe a key here to prevent a
|
|
11609
11617
|
// weird dialog appearing when loading a new track
|
|
11610
11618
|
|
|
11611
|
-
return _react["default"].createElement("iframe", {
|
|
11619
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
11612
11620
|
key: id,
|
|
11613
11621
|
ref: this.ref,
|
|
11614
11622
|
style: style,
|
|
@@ -11668,23 +11676,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11668
11676
|
|
|
11669
11677
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11670
11678
|
|
|
11671
|
-
function
|
|
11679
|
+
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); }; }
|
|
11672
11680
|
|
|
11673
|
-
function
|
|
11681
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11674
11682
|
|
|
11675
11683
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11676
11684
|
|
|
11685
|
+
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; } }
|
|
11686
|
+
|
|
11687
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11688
|
+
|
|
11677
11689
|
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); }
|
|
11678
11690
|
|
|
11679
11691
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11680
11692
|
|
|
11681
11693
|
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; }
|
|
11682
11694
|
|
|
11695
|
+
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; } } }; }
|
|
11696
|
+
|
|
11697
|
+
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); }
|
|
11698
|
+
|
|
11699
|
+
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; }
|
|
11700
|
+
|
|
11683
11701
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11684
11702
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11685
11703
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11686
11704
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11687
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11705
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
11688
11706
|
var HLS_GLOBAL = 'Hls';
|
|
11689
11707
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11690
11708
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11693,12 +11711,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11693
11711
|
|
|
11694
11712
|
function canPlay(url) {
|
|
11695
11713
|
if (url instanceof Array) {
|
|
11696
|
-
var
|
|
11697
|
-
|
|
11698
|
-
var _iteratorError = undefined;
|
|
11714
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
11715
|
+
_step;
|
|
11699
11716
|
|
|
11700
11717
|
try {
|
|
11701
|
-
for (
|
|
11718
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
11702
11719
|
var item = _step.value;
|
|
11703
11720
|
|
|
11704
11721
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11710,18 +11727,9 @@ function canPlay(url) {
|
|
|
11710
11727
|
}
|
|
11711
11728
|
}
|
|
11712
11729
|
} catch (err) {
|
|
11713
|
-
|
|
11714
|
-
_iteratorError = err;
|
|
11730
|
+
_iterator.e(err);
|
|
11715
11731
|
} finally {
|
|
11716
|
-
|
|
11717
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11718
|
-
_iterator["return"]();
|
|
11719
|
-
}
|
|
11720
|
-
} finally {
|
|
11721
|
-
if (_didIteratorError) {
|
|
11722
|
-
throw _iteratorError;
|
|
11723
|
-
}
|
|
11724
|
-
}
|
|
11732
|
+
_iterator.f();
|
|
11725
11733
|
}
|
|
11726
11734
|
|
|
11727
11735
|
return false;
|
|
@@ -11745,14 +11753,12 @@ function canEnablePIP(url) {
|
|
|
11745
11753
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11746
11754
|
}
|
|
11747
11755
|
|
|
11748
|
-
var FilePlayer =
|
|
11749
|
-
/*#__PURE__*/
|
|
11750
|
-
function (_Component) {
|
|
11756
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
11751
11757
|
_inherits(FilePlayer, _Component);
|
|
11752
11758
|
|
|
11753
|
-
|
|
11754
|
-
var _getPrototypeOf2;
|
|
11759
|
+
var _super = _createSuper(FilePlayer);
|
|
11755
11760
|
|
|
11761
|
+
function FilePlayer() {
|
|
11756
11762
|
var _this;
|
|
11757
11763
|
|
|
11758
11764
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11761,7 +11767,7 @@ function (_Component) {
|
|
|
11761
11767
|
_args[_key] = arguments[_key];
|
|
11762
11768
|
}
|
|
11763
11769
|
|
|
11764
|
-
_this =
|
|
11770
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
11765
11771
|
|
|
11766
11772
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11767
11773
|
var _this$props;
|
|
@@ -11848,19 +11854,19 @@ function (_Component) {
|
|
|
11848
11854
|
|
|
11849
11855
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11850
11856
|
if (typeof source === 'string') {
|
|
11851
|
-
return _react["default"].createElement("source", {
|
|
11857
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
11852
11858
|
key: index,
|
|
11853
11859
|
src: source
|
|
11854
11860
|
});
|
|
11855
11861
|
}
|
|
11856
11862
|
|
|
11857
|
-
return _react["default"].createElement("source", _extends({
|
|
11863
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
11858
11864
|
key: index
|
|
11859
11865
|
}, source));
|
|
11860
11866
|
});
|
|
11861
11867
|
|
|
11862
11868
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11863
|
-
return _react["default"].createElement("track", _extends({
|
|
11869
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
11864
11870
|
key: index
|
|
11865
11871
|
}, track));
|
|
11866
11872
|
});
|
|
@@ -11898,6 +11904,10 @@ function (_Component) {
|
|
|
11898
11904
|
key: "componentWillUnmount",
|
|
11899
11905
|
value: function componentWillUnmount() {
|
|
11900
11906
|
this.removeListeners(this.player);
|
|
11907
|
+
|
|
11908
|
+
if (this.hls) {
|
|
11909
|
+
this.hls.destroy();
|
|
11910
|
+
}
|
|
11901
11911
|
}
|
|
11902
11912
|
}, {
|
|
11903
11913
|
key: "addListeners",
|
|
@@ -12028,10 +12038,6 @@ function (_Component) {
|
|
|
12028
12038
|
value: function stop() {
|
|
12029
12039
|
this.player.removeAttribute('src');
|
|
12030
12040
|
|
|
12031
|
-
if (this.hls) {
|
|
12032
|
-
this.hls.destroy();
|
|
12033
|
-
}
|
|
12034
|
-
|
|
12035
12041
|
if (this.dash) {
|
|
12036
12042
|
this.dash.reset();
|
|
12037
12043
|
}
|
|
@@ -12143,7 +12149,7 @@ function (_Component) {
|
|
|
12143
12149
|
width: width === 'auto' ? width : '100%',
|
|
12144
12150
|
height: height === 'auto' ? height : '100%'
|
|
12145
12151
|
};
|
|
12146
|
-
return _react["default"].createElement(Element, _extends({
|
|
12152
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
12147
12153
|
ref: this.ref,
|
|
12148
12154
|
src: this.getSource(url),
|
|
12149
12155
|
style: style,
|
|
@@ -12233,12 +12239,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12233
12239
|
|
|
12234
12240
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12235
12241
|
|
|
12236
|
-
function
|
|
12242
|
+
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); }; }
|
|
12237
12243
|
|
|
12238
|
-
function
|
|
12244
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12239
12245
|
|
|
12240
12246
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12241
12247
|
|
|
12248
|
+
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; } }
|
|
12249
|
+
|
|
12250
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12251
|
+
|
|
12242
12252
|
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); }
|
|
12243
12253
|
|
|
12244
12254
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12247,14 +12257,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12247
12257
|
|
|
12248
12258
|
var ICON_SIZE = '64px';
|
|
12249
12259
|
|
|
12250
|
-
var Preview =
|
|
12251
|
-
/*#__PURE__*/
|
|
12252
|
-
function (_Component) {
|
|
12260
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
12253
12261
|
_inherits(Preview, _Component);
|
|
12254
12262
|
|
|
12255
|
-
|
|
12256
|
-
var _getPrototypeOf2;
|
|
12263
|
+
var _super = _createSuper(Preview);
|
|
12257
12264
|
|
|
12265
|
+
function Preview() {
|
|
12258
12266
|
var _this;
|
|
12259
12267
|
|
|
12260
12268
|
_classCallCheck(this, Preview);
|
|
@@ -12263,7 +12271,7 @@ function (_Component) {
|
|
|
12263
12271
|
args[_key] = arguments[_key];
|
|
12264
12272
|
}
|
|
12265
12273
|
|
|
12266
|
-
_this =
|
|
12274
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12267
12275
|
|
|
12268
12276
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12269
12277
|
|
|
@@ -12361,15 +12369,15 @@ function (_Component) {
|
|
|
12361
12369
|
}
|
|
12362
12370
|
};
|
|
12363
12371
|
|
|
12364
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12372
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
12365
12373
|
style: styles.shadow,
|
|
12366
12374
|
className: "react-player__shadow"
|
|
12367
|
-
}, _react["default"].createElement("div", {
|
|
12375
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
12368
12376
|
style: styles.playIcon,
|
|
12369
12377
|
className: "react-player__play-icon"
|
|
12370
12378
|
}));
|
|
12371
12379
|
|
|
12372
|
-
return _react["default"].createElement("div", {
|
|
12380
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
12373
12381
|
style: styles.preview,
|
|
12374
12382
|
className: "react-player__preview",
|
|
12375
12383
|
onClick: onClick
|
|
@@ -12406,6 +12414,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12406
12414
|
|
|
12407
12415
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12408
12416
|
|
|
12417
|
+
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; } } }; }
|
|
12418
|
+
|
|
12419
|
+
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); }
|
|
12420
|
+
|
|
12421
|
+
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; }
|
|
12422
|
+
|
|
12409
12423
|
var PRELOAD_PLAYERS = [{
|
|
12410
12424
|
Player: YouTube_1.YouTube,
|
|
12411
12425
|
configKey: 'youtube',
|
|
@@ -12426,16 +12440,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12426
12440
|
|
|
12427
12441
|
function renderPreloadPlayers(url, controls, config) {
|
|
12428
12442
|
var players = [];
|
|
12429
|
-
|
|
12430
|
-
var
|
|
12431
|
-
|
|
12443
|
+
|
|
12444
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
12445
|
+
_step;
|
|
12432
12446
|
|
|
12433
12447
|
try {
|
|
12434
|
-
for (
|
|
12448
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12435
12449
|
var player = _step.value;
|
|
12436
12450
|
|
|
12437
12451
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12438
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
12452
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
12439
12453
|
key: player.Player.displayName,
|
|
12440
12454
|
activePlayer: player.Player,
|
|
12441
12455
|
url: player.url,
|
|
@@ -12447,18 +12461,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12447
12461
|
}
|
|
12448
12462
|
}
|
|
12449
12463
|
} catch (err) {
|
|
12450
|
-
|
|
12451
|
-
_iteratorError = err;
|
|
12464
|
+
_iterator.e(err);
|
|
12452
12465
|
} finally {
|
|
12453
|
-
|
|
12454
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12455
|
-
_iterator["return"]();
|
|
12456
|
-
}
|
|
12457
|
-
} finally {
|
|
12458
|
-
if (_didIteratorError) {
|
|
12459
|
-
throw _iteratorError;
|
|
12460
|
-
}
|
|
12461
|
-
}
|
|
12466
|
+
_iterator.f();
|
|
12462
12467
|
}
|
|
12463
12468
|
|
|
12464
12469
|
return players;
|
|
@@ -12582,13 +12587,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12582
12587
|
|
|
12583
12588
|
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); }
|
|
12584
12589
|
|
|
12585
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12590
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
12586
12591
|
|
|
12587
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12592
|
+
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."); }
|
|
12588
12593
|
|
|
12589
|
-
function
|
|
12594
|
+
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); }
|
|
12590
12595
|
|
|
12591
|
-
function
|
|
12596
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
12597
|
+
|
|
12598
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12599
|
+
|
|
12600
|
+
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; }
|
|
12592
12601
|
|
|
12593
12602
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12594
12603
|
|
|
@@ -12596,12 +12605,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12596
12605
|
|
|
12597
12606
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12598
12607
|
|
|
12599
|
-
function
|
|
12608
|
+
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); }; }
|
|
12600
12609
|
|
|
12601
|
-
function
|
|
12610
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12602
12611
|
|
|
12603
12612
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12604
12613
|
|
|
12614
|
+
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; } }
|
|
12615
|
+
|
|
12616
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12617
|
+
|
|
12605
12618
|
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); }
|
|
12606
12619
|
|
|
12607
12620
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12611,14 +12624,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12611
12624
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12612
12625
|
var customPlayers = [];
|
|
12613
12626
|
|
|
12614
|
-
var ReactPlayer =
|
|
12615
|
-
/*#__PURE__*/
|
|
12616
|
-
function (_Component) {
|
|
12627
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
12617
12628
|
_inherits(ReactPlayer, _Component);
|
|
12618
12629
|
|
|
12619
|
-
|
|
12620
|
-
var _getPrototypeOf2;
|
|
12630
|
+
var _super = _createSuper(ReactPlayer);
|
|
12621
12631
|
|
|
12632
|
+
function ReactPlayer() {
|
|
12622
12633
|
var _this;
|
|
12623
12634
|
|
|
12624
12635
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12627,7 +12638,7 @@ function (_Component) {
|
|
|
12627
12638
|
args[_key] = arguments[_key];
|
|
12628
12639
|
}
|
|
12629
12640
|
|
|
12630
|
-
_this =
|
|
12641
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12631
12642
|
|
|
12632
12643
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12633
12644
|
|
|
@@ -12738,7 +12749,7 @@ function (_Component) {
|
|
|
12738
12749
|
key: "renderActivePlayer",
|
|
12739
12750
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12740
12751
|
if (!url) return null;
|
|
12741
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12752
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12742
12753
|
key: activePlayer.displayName,
|
|
12743
12754
|
ref: this.activePlayerRef,
|
|
12744
12755
|
config: this.config,
|
|
@@ -12775,14 +12786,14 @@ function (_Component) {
|
|
|
12775
12786
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12776
12787
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12777
12788
|
|
|
12778
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12789
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
12779
12790
|
url: url,
|
|
12780
12791
|
light: light,
|
|
12781
12792
|
playIcon: playIcon,
|
|
12782
12793
|
onClick: this.handleClickPreview
|
|
12783
12794
|
});
|
|
12784
12795
|
|
|
12785
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
12796
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
12786
12797
|
ref: this.wrapperRef,
|
|
12787
12798
|
style: _objectSpread({}, style, {
|
|
12788
12799
|
width: width,
|
|
@@ -13387,7 +13398,7 @@ var Poll = function Poll(_ref) {
|
|
|
13387
13398
|
);
|
|
13388
13399
|
};
|
|
13389
13400
|
|
|
13390
|
-
var numberOfPaginations =
|
|
13401
|
+
var numberOfPaginations = main_38 ? 4 : 10;
|
|
13391
13402
|
|
|
13392
13403
|
var Quiz = function Quiz(_ref) {
|
|
13393
13404
|
var quizzes = _ref.quizzes,
|
|
@@ -13477,7 +13488,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
13477
13488
|
var renderPagination = function renderPagination() {
|
|
13478
13489
|
return React__default.createElement(
|
|
13479
13490
|
Pagination,
|
|
13480
|
-
{ className: 'p-0 m-0', size:
|
|
13491
|
+
{ className: 'p-0 m-0', size: main_38 && 'sm' },
|
|
13481
13492
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
13482
13493
|
return changePage('first');
|
|
13483
13494
|
}, disabled: currentPage === 1 }),
|
|
@@ -13641,7 +13652,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
13641
13652
|
};
|
|
13642
13653
|
|
|
13643
13654
|
var Figure = dynamic(function () {
|
|
13644
|
-
return import('./Figure-
|
|
13655
|
+
return import('./Figure-584ac0c8.js');
|
|
13645
13656
|
}, { ssr: false });
|
|
13646
13657
|
|
|
13647
13658
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -13863,7 +13874,7 @@ var Feature = function Feature(props) {
|
|
|
13863
13874
|
};
|
|
13864
13875
|
//image width
|
|
13865
13876
|
var imageWidth = 900;
|
|
13866
|
-
if (
|
|
13877
|
+
if (main_39) {
|
|
13867
13878
|
imageWidth = 450;
|
|
13868
13879
|
}
|
|
13869
13880
|
|
|
@@ -14215,16 +14226,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14215
14226
|
_ref$className = _ref.className,
|
|
14216
14227
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14217
14228
|
|
|
14218
|
-
/*
|
|
14219
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14220
|
-
example:
|
|
14221
|
-
<RelatedTopicDropdown
|
|
14222
|
-
page='/clinical'
|
|
14223
|
-
exclude="clinical"
|
|
14224
|
-
className='mb-3'
|
|
14225
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14226
|
-
subTaxonomies={props.subTaxonomies}
|
|
14227
|
-
/>
|
|
14229
|
+
/*
|
|
14230
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14231
|
+
example:
|
|
14232
|
+
<RelatedTopicDropdown
|
|
14233
|
+
page='/clinical'
|
|
14234
|
+
exclude="clinical"
|
|
14235
|
+
className='mb-3'
|
|
14236
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14237
|
+
subTaxonomies={props.subTaxonomies}
|
|
14238
|
+
/>
|
|
14228
14239
|
*/
|
|
14229
14240
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14230
14241
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14262,25 +14273,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14262
14273
|
}
|
|
14263
14274
|
};
|
|
14264
14275
|
|
|
14265
|
-
/*
|
|
14266
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14267
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14268
|
-
|
|
14269
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14270
|
-
|
|
14271
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14272
|
-
|
|
14273
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14274
|
-
...,
|
|
14275
|
-
'ancestor': parent->parent->identifier,
|
|
14276
|
-
'parent': parent->identifier,
|
|
14277
|
-
'path': identifier
|
|
14278
|
-
},
|
|
14279
|
-
'document_group': documentGroup-> {
|
|
14280
|
-
name,
|
|
14281
|
-
'parent': parent->identifier,
|
|
14282
|
-
'path': identifier.current
|
|
14283
|
-
}
|
|
14276
|
+
/*
|
|
14277
|
+
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14278
|
+
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14279
|
+
|
|
14280
|
+
- accepts any normal html arrtibute (style, id, class)
|
|
14281
|
+
|
|
14282
|
+
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14283
|
+
|
|
14284
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14285
|
+
...,
|
|
14286
|
+
'ancestor': parent->parent->identifier,
|
|
14287
|
+
'parent': parent->identifier,
|
|
14288
|
+
'path': identifier
|
|
14289
|
+
},
|
|
14290
|
+
'document_group': documentGroup-> {
|
|
14291
|
+
name,
|
|
14292
|
+
'parent': parent->identifier,
|
|
14293
|
+
'path': identifier.current
|
|
14294
|
+
}
|
|
14284
14295
|
*/
|
|
14285
14296
|
|
|
14286
14297
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -15188,34 +15199,34 @@ var GridHero = function GridHero(props) {
|
|
|
15188
15199
|
);
|
|
15189
15200
|
};
|
|
15190
15201
|
|
|
15191
|
-
/*
|
|
15192
|
-
Sample query
|
|
15193
|
-
let references = ''
|
|
15194
|
-
if(article.taxonomyMapping.length > 0){
|
|
15195
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15196
|
-
references = references + `references('${ref._ref}') `
|
|
15197
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15198
|
-
references = references + ` && `
|
|
15199
|
-
}
|
|
15200
|
-
})
|
|
15201
|
-
}
|
|
15202
|
-
|
|
15203
|
-
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] {
|
|
15204
|
-
...,
|
|
15205
|
-
title,
|
|
15206
|
-
summary,
|
|
15207
|
-
thumbnail,
|
|
15208
|
-
url,
|
|
15209
|
-
published,
|
|
15210
|
-
authorMapping[]->,
|
|
15211
|
-
contentCategory->
|
|
15212
|
-
}`
|
|
15213
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15214
|
-
|
|
15215
|
-
Sample usage
|
|
15216
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15217
|
-
|
|
15218
|
-
|
|
15202
|
+
/*
|
|
15203
|
+
Sample query
|
|
15204
|
+
let references = ''
|
|
15205
|
+
if(article.taxonomyMapping.length > 0){
|
|
15206
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15207
|
+
references = references + `references('${ref._ref}') `
|
|
15208
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15209
|
+
references = references + ` && `
|
|
15210
|
+
}
|
|
15211
|
+
})
|
|
15212
|
+
}
|
|
15213
|
+
|
|
15214
|
+
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] {
|
|
15215
|
+
...,
|
|
15216
|
+
title,
|
|
15217
|
+
summary,
|
|
15218
|
+
thumbnail,
|
|
15219
|
+
url,
|
|
15220
|
+
published,
|
|
15221
|
+
authorMapping[]->,
|
|
15222
|
+
contentCategory->
|
|
15223
|
+
}`
|
|
15224
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15225
|
+
|
|
15226
|
+
Sample usage
|
|
15227
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15228
|
+
|
|
15229
|
+
|
|
15219
15230
|
*/
|
|
15220
15231
|
var RelatedContent = function RelatedContent(props) {
|
|
15221
15232
|
var client = props.client,
|
|
@@ -15282,21 +15293,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15282
15293
|
);
|
|
15283
15294
|
};
|
|
15284
15295
|
|
|
15285
|
-
/*
|
|
15286
|
-
Example usage - targetedonc.com/latest-conference
|
|
15287
|
-
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] {
|
|
15288
|
-
...,
|
|
15289
|
-
title,
|
|
15290
|
-
summary,
|
|
15291
|
-
thumbnail,
|
|
15292
|
-
url,
|
|
15293
|
-
published,
|
|
15294
|
-
documentGroup->,
|
|
15295
|
-
contentCategory->,
|
|
15296
|
-
'pageNumber': ${currentPage}
|
|
15297
|
-
}`
|
|
15298
|
-
|
|
15299
|
-
const posts = await client.fetch(query, params)
|
|
15296
|
+
/*
|
|
15297
|
+
Example usage - targetedonc.com/latest-conference
|
|
15298
|
+
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] {
|
|
15299
|
+
...,
|
|
15300
|
+
title,
|
|
15301
|
+
summary,
|
|
15302
|
+
thumbnail,
|
|
15303
|
+
url,
|
|
15304
|
+
published,
|
|
15305
|
+
documentGroup->,
|
|
15306
|
+
contentCategory->,
|
|
15307
|
+
'pageNumber': ${currentPage}
|
|
15308
|
+
}`
|
|
15309
|
+
|
|
15310
|
+
const posts = await client.fetch(query, params)
|
|
15300
15311
|
*/
|
|
15301
15312
|
|
|
15302
15313
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -16524,7 +16535,7 @@ var Article = function Article(props) {
|
|
|
16524
16535
|
issue.volume && React__default.createElement(
|
|
16525
16536
|
'span',
|
|
16526
16537
|
null,
|
|
16527
|
-
'Volume ' + issue.volume
|
|
16538
|
+
' Volume ' + issue.volume
|
|
16528
16539
|
)
|
|
16529
16540
|
)
|
|
16530
16541
|
)
|
|
@@ -16562,7 +16573,7 @@ var Article = function Article(props) {
|
|
|
16562
16573
|
React__default.createElement('br', null),
|
|
16563
16574
|
React__default.createElement('br', null)
|
|
16564
16575
|
),
|
|
16565
|
-
|
|
16576
|
+
main_39 && props.article.Ads.map(function (ad, index) {
|
|
16566
16577
|
if (index === 0) {
|
|
16567
16578
|
return React__default.createElement(
|
|
16568
16579
|
'div',
|
|
@@ -16587,7 +16598,7 @@ var Article = function Article(props) {
|
|
|
16587
16598
|
renderIsiContent(props.article)
|
|
16588
16599
|
)
|
|
16589
16600
|
),
|
|
16590
|
-
|
|
16601
|
+
main_39 && props.article.Ads.map(function (ad, index) {
|
|
16591
16602
|
if (index > 0) {
|
|
16592
16603
|
return React__default.createElement(
|
|
16593
16604
|
'div',
|
|
@@ -16694,7 +16705,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16694
16705
|
setQueueData = _useState2[1];
|
|
16695
16706
|
|
|
16696
16707
|
var refreshAD = function refreshAD(path) {
|
|
16697
|
-
if (!
|
|
16708
|
+
if (!main_39) {
|
|
16698
16709
|
var activeArticle = queueData.find(function (item) {
|
|
16699
16710
|
return item.url.current === path;
|
|
16700
16711
|
});
|
|
@@ -16804,27 +16815,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16804
16815
|
};
|
|
16805
16816
|
|
|
16806
16817
|
var KMTracker = function KMTracker(props) {
|
|
16807
|
-
|
|
16818
|
+
var id = props.id;
|
|
16808
16819
|
|
|
16809
|
-
|
|
16820
|
+
if (document && id) {
|
|
16810
16821
|
(function () {
|
|
16811
|
-
|
|
16822
|
+
var ecnJquery = document.createElement('script');
|
|
16812
16823
|
|
|
16813
|
-
|
|
16814
|
-
|
|
16815
|
-
|
|
16824
|
+
ecnJquery.type = 'text/javascript';
|
|
16825
|
+
ecnJquery.async = true;
|
|
16826
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
16816
16827
|
|
|
16817
|
-
|
|
16828
|
+
var ecnScript = document.createElement('script');
|
|
16818
16829
|
|
|
16819
|
-
|
|
16820
|
-
|
|
16821
|
-
|
|
16822
|
-
|
|
16830
|
+
ecnScript.type = 'text/javascript';
|
|
16831
|
+
ecnScript.async = true;
|
|
16832
|
+
ecnScript.id = 'km-tracker';
|
|
16833
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
16823
16834
|
|
|
16824
|
-
|
|
16825
|
-
|
|
16826
|
-
|
|
16827
|
-
|
|
16835
|
+
document.head.appendChild(ecnJquery);
|
|
16836
|
+
document.head.appendChild(ecnScript);
|
|
16837
|
+
})();
|
|
16838
|
+
}
|
|
16828
16839
|
};
|
|
16829
16840
|
|
|
16830
16841
|
var returnFormField = function returnFormField(_ref) {
|
|
@@ -18851,9 +18862,6 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
18851
18862
|
if (value != null) {
|
|
18852
18863
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
18853
18864
|
var desc = $gOPD(value, parts[i]);
|
|
18854
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
18855
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
18856
|
-
}
|
|
18857
18865
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
18858
18866
|
} else {
|
|
18859
18867
|
value = value[parts[i]];
|
|
@@ -18886,16 +18894,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
18886
18894
|
return intrinsic;
|
|
18887
18895
|
};
|
|
18888
18896
|
|
|
18889
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%'
|
|
18890
|
-
|
|
18891
|
-
if ($defineProperty) {
|
|
18892
|
-
try {
|
|
18893
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
18894
|
-
} catch (e) {
|
|
18895
|
-
// IE 8 has a broken defineProperty
|
|
18896
|
-
$defineProperty = null;
|
|
18897
|
-
}
|
|
18898
|
-
}
|
|
18897
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
18899
18898
|
|
|
18900
18899
|
|
|
18901
18900
|
|
|
@@ -19038,224 +19037,6 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
19038
19037
|
return obj;
|
|
19039
19038
|
};
|
|
19040
19039
|
|
|
19041
|
-
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
19042
|
-
if ($gOPD$1) {
|
|
19043
|
-
try {
|
|
19044
|
-
$gOPD$1([], 'length');
|
|
19045
|
-
} catch (e) {
|
|
19046
|
-
// IE 8 has a broken gOPD
|
|
19047
|
-
$gOPD$1 = null;
|
|
19048
|
-
}
|
|
19049
|
-
}
|
|
19050
|
-
|
|
19051
|
-
var getOwnPropertyDescriptor = $gOPD$1;
|
|
19052
|
-
|
|
19053
|
-
var $Array = GetIntrinsic('%Array%');
|
|
19054
|
-
|
|
19055
|
-
// eslint-disable-next-line global-require
|
|
19056
|
-
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
19057
|
-
|
|
19058
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
19059
|
-
|
|
19060
|
-
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
19061
|
-
return toStr$4(argument) === '[object Array]';
|
|
19062
|
-
};
|
|
19063
|
-
|
|
19064
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
19065
|
-
|
|
19066
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
19067
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
19068
|
-
};
|
|
19069
|
-
|
|
19070
|
-
var regexExec = RegExp.prototype.exec;
|
|
19071
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
19072
|
-
|
|
19073
|
-
var tryRegexExecCall = function tryRegexExec(value) {
|
|
19074
|
-
try {
|
|
19075
|
-
var lastIndex = value.lastIndex;
|
|
19076
|
-
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
19077
|
-
|
|
19078
|
-
regexExec.call(value);
|
|
19079
|
-
return true;
|
|
19080
|
-
} catch (e) {
|
|
19081
|
-
return false;
|
|
19082
|
-
} finally {
|
|
19083
|
-
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
19084
|
-
}
|
|
19085
|
-
};
|
|
19086
|
-
var toStr$5 = Object.prototype.toString;
|
|
19087
|
-
var regexClass = '[object RegExp]';
|
|
19088
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19089
|
-
|
|
19090
|
-
var isRegex = function isRegex(value) {
|
|
19091
|
-
if (!value || typeof value !== 'object') {
|
|
19092
|
-
return false;
|
|
19093
|
-
}
|
|
19094
|
-
if (!hasToStringTag) {
|
|
19095
|
-
return toStr$5.call(value) === regexClass;
|
|
19096
|
-
}
|
|
19097
|
-
|
|
19098
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
19099
|
-
var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
|
|
19100
|
-
if (!hasLastIndexDataProperty) {
|
|
19101
|
-
return false;
|
|
19102
|
-
}
|
|
19103
|
-
|
|
19104
|
-
return tryRegexExecCall(value);
|
|
19105
|
-
};
|
|
19106
|
-
|
|
19107
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
19108
|
-
|
|
19109
|
-
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
19110
|
-
|
|
19111
|
-
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
|
|
19117
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
19118
|
-
|
|
19119
|
-
var IsRegExp = function IsRegExp(argument) {
|
|
19120
|
-
if (!argument || typeof argument !== 'object') {
|
|
19121
|
-
return false;
|
|
19122
|
-
}
|
|
19123
|
-
if ($match) {
|
|
19124
|
-
var isRegExp = argument[$match];
|
|
19125
|
-
if (typeof isRegExp !== 'undefined') {
|
|
19126
|
-
return ToBoolean(isRegExp);
|
|
19127
|
-
}
|
|
19128
|
-
}
|
|
19129
|
-
return isRegex(argument);
|
|
19130
|
-
};
|
|
19131
|
-
|
|
19132
|
-
var fnToStr = Function.prototype.toString;
|
|
19133
|
-
|
|
19134
|
-
var constructorRegex = /^\s*class\b/;
|
|
19135
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
19136
|
-
try {
|
|
19137
|
-
var fnStr = fnToStr.call(value);
|
|
19138
|
-
return constructorRegex.test(fnStr);
|
|
19139
|
-
} catch (e) {
|
|
19140
|
-
return false; // not a function
|
|
19141
|
-
}
|
|
19142
|
-
};
|
|
19143
|
-
|
|
19144
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
19145
|
-
try {
|
|
19146
|
-
if (isES6ClassFn(value)) { return false; }
|
|
19147
|
-
fnToStr.call(value);
|
|
19148
|
-
return true;
|
|
19149
|
-
} catch (e) {
|
|
19150
|
-
return false;
|
|
19151
|
-
}
|
|
19152
|
-
};
|
|
19153
|
-
var toStr$6 = Object.prototype.toString;
|
|
19154
|
-
var fnClass = '[object Function]';
|
|
19155
|
-
var genClass = '[object GeneratorFunction]';
|
|
19156
|
-
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19157
|
-
|
|
19158
|
-
var isCallable = function isCallable(value) {
|
|
19159
|
-
if (!value) { return false; }
|
|
19160
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
19161
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
19162
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
19163
|
-
if (isES6ClassFn(value)) { return false; }
|
|
19164
|
-
var strClass = toStr$6.call(value);
|
|
19165
|
-
return strClass === fnClass || strClass === genClass;
|
|
19166
|
-
};
|
|
19167
|
-
|
|
19168
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
19169
|
-
|
|
19170
|
-
var IsCallable = isCallable;
|
|
19171
|
-
|
|
19172
|
-
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
19173
|
-
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
|
|
19177
|
-
|
|
19178
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
19179
|
-
|
|
19180
|
-
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
19181
|
-
if (Type$1(Obj) !== 'Object') {
|
|
19182
|
-
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
19183
|
-
}
|
|
19184
|
-
|
|
19185
|
-
var desc = {};
|
|
19186
|
-
if (src$1(Obj, 'enumerable')) {
|
|
19187
|
-
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
19188
|
-
}
|
|
19189
|
-
if (src$1(Obj, 'configurable')) {
|
|
19190
|
-
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
19191
|
-
}
|
|
19192
|
-
if (src$1(Obj, 'value')) {
|
|
19193
|
-
desc['[[Value]]'] = Obj.value;
|
|
19194
|
-
}
|
|
19195
|
-
if (src$1(Obj, 'writable')) {
|
|
19196
|
-
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
19197
|
-
}
|
|
19198
|
-
if (src$1(Obj, 'get')) {
|
|
19199
|
-
var getter = Obj.get;
|
|
19200
|
-
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
19201
|
-
throw new TypeError('getter must be a function');
|
|
19202
|
-
}
|
|
19203
|
-
desc['[[Get]]'] = getter;
|
|
19204
|
-
}
|
|
19205
|
-
if (src$1(Obj, 'set')) {
|
|
19206
|
-
var setter = Obj.set;
|
|
19207
|
-
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
19208
|
-
throw new $TypeError$2('setter must be a function');
|
|
19209
|
-
}
|
|
19210
|
-
desc['[[Set]]'] = setter;
|
|
19211
|
-
}
|
|
19212
|
-
|
|
19213
|
-
if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
|
|
19214
|
-
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
19215
|
-
}
|
|
19216
|
-
return desc;
|
|
19217
|
-
};
|
|
19218
|
-
|
|
19219
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
19220
|
-
|
|
19221
|
-
|
|
19222
|
-
|
|
19223
|
-
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
|
|
19230
|
-
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
19234
|
-
|
|
19235
|
-
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
19236
|
-
if (Type$1(O) !== 'Object') {
|
|
19237
|
-
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
19238
|
-
}
|
|
19239
|
-
if (!IsPropertyKey(P)) {
|
|
19240
|
-
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
19241
|
-
}
|
|
19242
|
-
if (!src$1(O, P)) {
|
|
19243
|
-
return void 0;
|
|
19244
|
-
}
|
|
19245
|
-
if (!getOwnPropertyDescriptor) {
|
|
19246
|
-
// ES3 / IE 8 fallback
|
|
19247
|
-
var arrayLength = IsArray(O) && P === 'length';
|
|
19248
|
-
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
19249
|
-
return {
|
|
19250
|
-
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
19251
|
-
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
19252
|
-
'[[Value]]': O[P],
|
|
19253
|
-
'[[Writable]]': true
|
|
19254
|
-
};
|
|
19255
|
-
}
|
|
19256
|
-
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
19257
|
-
};
|
|
19258
|
-
|
|
19259
19040
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
19260
19041
|
|
|
19261
19042
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -19289,10 +19070,16 @@ var IsExtensible = $preventExtensions
|
|
|
19289
19070
|
? function IsExtensible(obj) {
|
|
19290
19071
|
return !isPrimitive$1(obj) && $isExtensible(obj);
|
|
19291
19072
|
}
|
|
19292
|
-
: function IsExtensible(obj) {
|
|
19293
|
-
return
|
|
19073
|
+
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
19074
|
+
return true;
|
|
19294
19075
|
};
|
|
19295
19076
|
|
|
19077
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
19078
|
+
|
|
19079
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
19080
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
19081
|
+
};
|
|
19082
|
+
|
|
19296
19083
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
19297
19084
|
return a !== a;
|
|
19298
19085
|
};
|
|
@@ -19307,8 +19094,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
19307
19094
|
return _isNaN(x) && _isNaN(y);
|
|
19308
19095
|
};
|
|
19309
19096
|
|
|
19310
|
-
var $
|
|
19311
|
-
|
|
19097
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
19098
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
19312
19099
|
|
|
19313
19100
|
|
|
19314
19101
|
|
|
@@ -19323,12 +19110,12 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
|
19323
19110
|
|
|
19324
19111
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
19325
19112
|
if (Type$1(O) !== 'Object') {
|
|
19326
|
-
throw new $TypeError$
|
|
19113
|
+
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
19327
19114
|
}
|
|
19328
19115
|
if (!IsPropertyKey(P)) {
|
|
19329
|
-
throw new $TypeError$
|
|
19116
|
+
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
19330
19117
|
}
|
|
19331
|
-
var oldDesc =
|
|
19118
|
+
var oldDesc = $gOPD$1(O, P);
|
|
19332
19119
|
var extensible = oldDesc || IsExtensible(O);
|
|
19333
19120
|
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
19334
19121
|
if (immutable || !extensible) {
|
|
@@ -19349,13 +19136,53 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
19349
19136
|
);
|
|
19350
19137
|
};
|
|
19351
19138
|
|
|
19352
|
-
var
|
|
19139
|
+
var fnToStr = Function.prototype.toString;
|
|
19140
|
+
|
|
19141
|
+
var constructorRegex = /^\s*class\b/;
|
|
19142
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
19143
|
+
try {
|
|
19144
|
+
var fnStr = fnToStr.call(value);
|
|
19145
|
+
return constructorRegex.test(fnStr);
|
|
19146
|
+
} catch (e) {
|
|
19147
|
+
return false; // not a function
|
|
19148
|
+
}
|
|
19149
|
+
};
|
|
19150
|
+
|
|
19151
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
19152
|
+
try {
|
|
19153
|
+
if (isES6ClassFn(value)) { return false; }
|
|
19154
|
+
fnToStr.call(value);
|
|
19155
|
+
return true;
|
|
19156
|
+
} catch (e) {
|
|
19157
|
+
return false;
|
|
19158
|
+
}
|
|
19159
|
+
};
|
|
19160
|
+
var toStr$4 = Object.prototype.toString;
|
|
19161
|
+
var fnClass = '[object Function]';
|
|
19162
|
+
var genClass = '[object GeneratorFunction]';
|
|
19163
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19164
|
+
|
|
19165
|
+
var isCallable = function isCallable(value) {
|
|
19166
|
+
if (!value) { return false; }
|
|
19167
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
19168
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
19169
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
19170
|
+
if (isES6ClassFn(value)) { return false; }
|
|
19171
|
+
var strClass = toStr$4.call(value);
|
|
19172
|
+
return strClass === fnClass || strClass === genClass;
|
|
19173
|
+
};
|
|
19174
|
+
|
|
19175
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
19176
|
+
|
|
19177
|
+
var IsCallable = isCallable;
|
|
19178
|
+
|
|
19179
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
19353
19180
|
|
|
19354
19181
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
19355
19182
|
|
|
19356
19183
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
19357
19184
|
if (value == null) {
|
|
19358
|
-
throw new $TypeError$
|
|
19185
|
+
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
19359
19186
|
}
|
|
19360
19187
|
return value;
|
|
19361
19188
|
};
|
|
@@ -19426,6 +19253,241 @@ defineProperties_1(implementation$2, {
|
|
|
19426
19253
|
|
|
19427
19254
|
var object_getownpropertydescriptors = implementation$2;
|
|
19428
19255
|
|
|
19256
|
+
/* globals
|
|
19257
|
+
Atomics,
|
|
19258
|
+
SharedArrayBuffer,
|
|
19259
|
+
*/
|
|
19260
|
+
|
|
19261
|
+
var undefined$2;
|
|
19262
|
+
|
|
19263
|
+
var $TypeError$4 = TypeError;
|
|
19264
|
+
|
|
19265
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
19266
|
+
if ($gOPD$3) {
|
|
19267
|
+
try {
|
|
19268
|
+
$gOPD$3({}, '');
|
|
19269
|
+
} catch (e) {
|
|
19270
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
19271
|
+
}
|
|
19272
|
+
}
|
|
19273
|
+
|
|
19274
|
+
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
19275
|
+
var ThrowTypeError$1 = $gOPD$3
|
|
19276
|
+
? (function () {
|
|
19277
|
+
try {
|
|
19278
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
19279
|
+
arguments.callee; // IE 8 does not throw here
|
|
19280
|
+
return throwTypeError$1;
|
|
19281
|
+
} catch (calleeThrows) {
|
|
19282
|
+
try {
|
|
19283
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
19284
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
19285
|
+
} catch (gOPDthrows) {
|
|
19286
|
+
return throwTypeError$1;
|
|
19287
|
+
}
|
|
19288
|
+
}
|
|
19289
|
+
}())
|
|
19290
|
+
: throwTypeError$1;
|
|
19291
|
+
|
|
19292
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
19293
|
+
|
|
19294
|
+
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
19295
|
+
var generatorFunction$1 = undefined$2;
|
|
19296
|
+
var asyncFunction$1 = undefined$2;
|
|
19297
|
+
var asyncGenFunction$1 = undefined$2;
|
|
19298
|
+
|
|
19299
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
19300
|
+
|
|
19301
|
+
var INTRINSICS$1 = {
|
|
19302
|
+
'%Array%': Array,
|
|
19303
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
19304
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
19305
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
19306
|
+
'%ArrayPrototype%': Array.prototype,
|
|
19307
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
19308
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
19309
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
19310
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
19311
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
19312
|
+
'%AsyncFunction%': asyncFunction$1,
|
|
19313
|
+
'%AsyncFunctionPrototype%': undefined$2,
|
|
19314
|
+
'%AsyncGenerator%': undefined$2,
|
|
19315
|
+
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
19316
|
+
'%AsyncGeneratorPrototype%': undefined$2,
|
|
19317
|
+
'%AsyncIteratorPrototype%': undefined$2,
|
|
19318
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
19319
|
+
'%Boolean%': Boolean,
|
|
19320
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
19321
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
19322
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
19323
|
+
'%Date%': Date,
|
|
19324
|
+
'%DatePrototype%': Date.prototype,
|
|
19325
|
+
'%decodeURI%': decodeURI,
|
|
19326
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
19327
|
+
'%encodeURI%': encodeURI,
|
|
19328
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
19329
|
+
'%Error%': Error,
|
|
19330
|
+
'%ErrorPrototype%': Error.prototype,
|
|
19331
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
19332
|
+
'%EvalError%': EvalError,
|
|
19333
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
19334
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
19335
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
19336
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
19337
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
19338
|
+
'%Function%': Function,
|
|
19339
|
+
'%FunctionPrototype%': Function.prototype,
|
|
19340
|
+
'%Generator%': undefined$2,
|
|
19341
|
+
'%GeneratorFunction%': generatorFunction$1,
|
|
19342
|
+
'%GeneratorPrototype%': undefined$2,
|
|
19343
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
19344
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
19345
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
19346
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
19347
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
19348
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
19349
|
+
'%isFinite%': isFinite,
|
|
19350
|
+
'%isNaN%': isNaN,
|
|
19351
|
+
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
19352
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
19353
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
19354
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
19355
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
19356
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
19357
|
+
'%Math%': Math,
|
|
19358
|
+
'%Number%': Number,
|
|
19359
|
+
'%NumberPrototype%': Number.prototype,
|
|
19360
|
+
'%Object%': Object,
|
|
19361
|
+
'%ObjectPrototype%': Object.prototype,
|
|
19362
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
19363
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
19364
|
+
'%parseFloat%': parseFloat,
|
|
19365
|
+
'%parseInt%': parseInt,
|
|
19366
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
19367
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
19368
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
19369
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
19370
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
19371
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
19372
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
19373
|
+
'%RangeError%': RangeError,
|
|
19374
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
19375
|
+
'%ReferenceError%': ReferenceError,
|
|
19376
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
19377
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
19378
|
+
'%RegExp%': RegExp,
|
|
19379
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
19380
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
19381
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
19382
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
19383
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
19384
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
19385
|
+
'%String%': String,
|
|
19386
|
+
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
19387
|
+
'%StringPrototype%': String.prototype,
|
|
19388
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
19389
|
+
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
19390
|
+
'%SyntaxError%': SyntaxError,
|
|
19391
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
19392
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
19393
|
+
'%TypedArray%': TypedArray$1,
|
|
19394
|
+
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
19395
|
+
'%TypeError%': $TypeError$4,
|
|
19396
|
+
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
19397
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
19398
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
19399
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
19400
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
19401
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
19402
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
19403
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
19404
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
19405
|
+
'%URIError%': URIError,
|
|
19406
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
19407
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
19408
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
19409
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
19410
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
19411
|
+
};
|
|
19412
|
+
|
|
19413
|
+
|
|
19414
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
19415
|
+
|
|
19416
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
19417
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
19418
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
19419
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
19420
|
+
var result = [];
|
|
19421
|
+
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
19422
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
19423
|
+
});
|
|
19424
|
+
return result;
|
|
19425
|
+
};
|
|
19426
|
+
/* end adaptation */
|
|
19427
|
+
|
|
19428
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
19429
|
+
if (!(name in INTRINSICS$1)) {
|
|
19430
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
19431
|
+
}
|
|
19432
|
+
|
|
19433
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
19434
|
+
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
19435
|
+
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
19436
|
+
}
|
|
19437
|
+
|
|
19438
|
+
return INTRINSICS$1[name];
|
|
19439
|
+
};
|
|
19440
|
+
|
|
19441
|
+
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
19442
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
19443
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
19444
|
+
}
|
|
19445
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
19446
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
19447
|
+
}
|
|
19448
|
+
|
|
19449
|
+
var parts = stringToPath$1(name);
|
|
19450
|
+
|
|
19451
|
+
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
19452
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
19453
|
+
if (value != null) {
|
|
19454
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
19455
|
+
var desc = $gOPD$3(value, parts[i]);
|
|
19456
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
19457
|
+
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
19458
|
+
}
|
|
19459
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
19460
|
+
} else {
|
|
19461
|
+
value = value[parts[i]];
|
|
19462
|
+
}
|
|
19463
|
+
}
|
|
19464
|
+
}
|
|
19465
|
+
return value;
|
|
19466
|
+
};
|
|
19467
|
+
|
|
19468
|
+
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
19469
|
+
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
19470
|
+
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
19471
|
+
|
|
19472
|
+
var callBind$1 = function callBind() {
|
|
19473
|
+
return $reflectApply(functionBind, $call$1, arguments);
|
|
19474
|
+
};
|
|
19475
|
+
|
|
19476
|
+
var apply$1 = function applyBind() {
|
|
19477
|
+
return $reflectApply(functionBind, $apply$1, arguments);
|
|
19478
|
+
};
|
|
19479
|
+
callBind$1.apply = apply$1;
|
|
19480
|
+
|
|
19481
|
+
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
19482
|
+
|
|
19483
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
19484
|
+
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
19485
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
19486
|
+
return callBind$1(intrinsic);
|
|
19487
|
+
}
|
|
19488
|
+
return intrinsic;
|
|
19489
|
+
};
|
|
19490
|
+
|
|
19429
19491
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
19430
19492
|
&& typeof Object.defineProperties === 'function';
|
|
19431
19493
|
|
|
@@ -19443,14 +19505,14 @@ if (typeof Promise !== 'function') {
|
|
|
19443
19505
|
|
|
19444
19506
|
|
|
19445
19507
|
|
|
19446
|
-
var $slice = callBound('Array.prototype.slice');
|
|
19447
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
19448
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
19508
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
19509
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
19510
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
19449
19511
|
|
|
19450
|
-
var hasSymbols$
|
|
19512
|
+
var hasSymbols$4 = hasSymbols$1();
|
|
19451
19513
|
|
|
19452
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
19453
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
19514
|
+
var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
|
|
19515
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
|
|
19454
19516
|
|
|
19455
19517
|
var implementation$3 = function promisify(orig) {
|
|
19456
19518
|
if (typeof orig !== 'function') {
|
|
@@ -19460,7 +19522,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
19460
19522
|
throw error;
|
|
19461
19523
|
}
|
|
19462
19524
|
|
|
19463
|
-
if (hasSymbols$
|
|
19525
|
+
if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
|
|
19464
19526
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
19465
19527
|
if (typeof customFunction !== 'function') {
|
|
19466
19528
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -19589,6 +19651,324 @@ function connect() {
|
|
|
19589
19651
|
|
|
19590
19652
|
var db = connect;
|
|
19591
19653
|
|
|
19654
|
+
var crypt = createCommonjsModule(function (module) {
|
|
19655
|
+
(function() {
|
|
19656
|
+
var base64map
|
|
19657
|
+
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
19658
|
+
|
|
19659
|
+
crypt = {
|
|
19660
|
+
// Bit-wise rotation left
|
|
19661
|
+
rotl: function(n, b) {
|
|
19662
|
+
return (n << b) | (n >>> (32 - b));
|
|
19663
|
+
},
|
|
19664
|
+
|
|
19665
|
+
// Bit-wise rotation right
|
|
19666
|
+
rotr: function(n, b) {
|
|
19667
|
+
return (n << (32 - b)) | (n >>> b);
|
|
19668
|
+
},
|
|
19669
|
+
|
|
19670
|
+
// Swap big-endian to little-endian and vice versa
|
|
19671
|
+
endian: function(n) {
|
|
19672
|
+
// If number given, swap endian
|
|
19673
|
+
if (n.constructor == Number) {
|
|
19674
|
+
return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;
|
|
19675
|
+
}
|
|
19676
|
+
|
|
19677
|
+
// Else, assume array and swap all items
|
|
19678
|
+
for (var i = 0; i < n.length; i++)
|
|
19679
|
+
n[i] = crypt.endian(n[i]);
|
|
19680
|
+
return n;
|
|
19681
|
+
},
|
|
19682
|
+
|
|
19683
|
+
// Generate an array of any length of random bytes
|
|
19684
|
+
randomBytes: function(n) {
|
|
19685
|
+
for (var bytes = []; n > 0; n--)
|
|
19686
|
+
bytes.push(Math.floor(Math.random() * 256));
|
|
19687
|
+
return bytes;
|
|
19688
|
+
},
|
|
19689
|
+
|
|
19690
|
+
// Convert a byte array to big-endian 32-bit words
|
|
19691
|
+
bytesToWords: function(bytes) {
|
|
19692
|
+
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
|
|
19693
|
+
words[b >>> 5] |= bytes[i] << (24 - b % 32);
|
|
19694
|
+
return words;
|
|
19695
|
+
},
|
|
19696
|
+
|
|
19697
|
+
// Convert big-endian 32-bit words to a byte array
|
|
19698
|
+
wordsToBytes: function(words) {
|
|
19699
|
+
for (var bytes = [], b = 0; b < words.length * 32; b += 8)
|
|
19700
|
+
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
|
|
19701
|
+
return bytes;
|
|
19702
|
+
},
|
|
19703
|
+
|
|
19704
|
+
// Convert a byte array to a hex string
|
|
19705
|
+
bytesToHex: function(bytes) {
|
|
19706
|
+
for (var hex = [], i = 0; i < bytes.length; i++) {
|
|
19707
|
+
hex.push((bytes[i] >>> 4).toString(16));
|
|
19708
|
+
hex.push((bytes[i] & 0xF).toString(16));
|
|
19709
|
+
}
|
|
19710
|
+
return hex.join('');
|
|
19711
|
+
},
|
|
19712
|
+
|
|
19713
|
+
// Convert a hex string to a byte array
|
|
19714
|
+
hexToBytes: function(hex) {
|
|
19715
|
+
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
|
19716
|
+
bytes.push(parseInt(hex.substr(c, 2), 16));
|
|
19717
|
+
return bytes;
|
|
19718
|
+
},
|
|
19719
|
+
|
|
19720
|
+
// Convert a byte array to a base-64 string
|
|
19721
|
+
bytesToBase64: function(bytes) {
|
|
19722
|
+
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
|
19723
|
+
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
|
|
19724
|
+
for (var j = 0; j < 4; j++)
|
|
19725
|
+
if (i * 8 + j * 6 <= bytes.length * 8)
|
|
19726
|
+
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
|
|
19727
|
+
else
|
|
19728
|
+
base64.push('=');
|
|
19729
|
+
}
|
|
19730
|
+
return base64.join('');
|
|
19731
|
+
},
|
|
19732
|
+
|
|
19733
|
+
// Convert a base-64 string to a byte array
|
|
19734
|
+
base64ToBytes: function(base64) {
|
|
19735
|
+
// Remove non-base-64 characters
|
|
19736
|
+
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
|
19737
|
+
|
|
19738
|
+
for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
|
|
19739
|
+
imod4 = ++i % 4) {
|
|
19740
|
+
if (imod4 == 0) continue;
|
|
19741
|
+
bytes.push(((base64map.indexOf(base64.charAt(i - 1))
|
|
19742
|
+
& (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
|
|
19743
|
+
| (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
|
|
19744
|
+
}
|
|
19745
|
+
return bytes;
|
|
19746
|
+
}
|
|
19747
|
+
};
|
|
19748
|
+
|
|
19749
|
+
module.exports = crypt;
|
|
19750
|
+
})();
|
|
19751
|
+
});
|
|
19752
|
+
|
|
19753
|
+
var charenc = {
|
|
19754
|
+
// UTF-8 encoding
|
|
19755
|
+
utf8: {
|
|
19756
|
+
// Convert a string to a byte array
|
|
19757
|
+
stringToBytes: function(str) {
|
|
19758
|
+
return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
|
|
19759
|
+
},
|
|
19760
|
+
|
|
19761
|
+
// Convert a byte array to a string
|
|
19762
|
+
bytesToString: function(bytes) {
|
|
19763
|
+
return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
|
|
19764
|
+
}
|
|
19765
|
+
},
|
|
19766
|
+
|
|
19767
|
+
// Binary encoding
|
|
19768
|
+
bin: {
|
|
19769
|
+
// Convert a string to a byte array
|
|
19770
|
+
stringToBytes: function(str) {
|
|
19771
|
+
for (var bytes = [], i = 0; i < str.length; i++)
|
|
19772
|
+
bytes.push(str.charCodeAt(i) & 0xFF);
|
|
19773
|
+
return bytes;
|
|
19774
|
+
},
|
|
19775
|
+
|
|
19776
|
+
// Convert a byte array to a string
|
|
19777
|
+
bytesToString: function(bytes) {
|
|
19778
|
+
for (var str = [], i = 0; i < bytes.length; i++)
|
|
19779
|
+
str.push(String.fromCharCode(bytes[i]));
|
|
19780
|
+
return str.join('');
|
|
19781
|
+
}
|
|
19782
|
+
}
|
|
19783
|
+
};
|
|
19784
|
+
|
|
19785
|
+
var charenc_1 = charenc;
|
|
19786
|
+
|
|
19787
|
+
/*!
|
|
19788
|
+
* Determine if an object is a Buffer
|
|
19789
|
+
*
|
|
19790
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
19791
|
+
* @license MIT
|
|
19792
|
+
*/
|
|
19793
|
+
|
|
19794
|
+
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
19795
|
+
// Object.prototype.constructor. Remove this eventually
|
|
19796
|
+
var isBuffer_1$1 = function (obj) {
|
|
19797
|
+
return obj != null && (isBuffer$1(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
|
19798
|
+
};
|
|
19799
|
+
|
|
19800
|
+
function isBuffer$1 (obj) {
|
|
19801
|
+
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
19802
|
+
}
|
|
19803
|
+
|
|
19804
|
+
// For Node v0.10 support. Remove this eventually.
|
|
19805
|
+
function isSlowBuffer (obj) {
|
|
19806
|
+
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer$1(obj.slice(0, 0))
|
|
19807
|
+
}
|
|
19808
|
+
|
|
19809
|
+
var md5 = createCommonjsModule(function (module) {
|
|
19810
|
+
(function(){
|
|
19811
|
+
var crypt$1 = crypt,
|
|
19812
|
+
utf8 = charenc_1.utf8,
|
|
19813
|
+
isBuffer = isBuffer_1$1,
|
|
19814
|
+
bin = charenc_1.bin,
|
|
19815
|
+
|
|
19816
|
+
// The core
|
|
19817
|
+
md5 = function (message, options) {
|
|
19818
|
+
// Convert to byte array
|
|
19819
|
+
if (message.constructor == String)
|
|
19820
|
+
if (options && options.encoding === 'binary')
|
|
19821
|
+
message = bin.stringToBytes(message);
|
|
19822
|
+
else
|
|
19823
|
+
message = utf8.stringToBytes(message);
|
|
19824
|
+
else if (isBuffer(message))
|
|
19825
|
+
message = Array.prototype.slice.call(message, 0);
|
|
19826
|
+
else if (!Array.isArray(message))
|
|
19827
|
+
message = message.toString();
|
|
19828
|
+
// else, assume byte array already
|
|
19829
|
+
|
|
19830
|
+
var m = crypt$1.bytesToWords(message),
|
|
19831
|
+
l = message.length * 8,
|
|
19832
|
+
a = 1732584193,
|
|
19833
|
+
b = -271733879,
|
|
19834
|
+
c = -1732584194,
|
|
19835
|
+
d = 271733878;
|
|
19836
|
+
|
|
19837
|
+
// Swap endian
|
|
19838
|
+
for (var i = 0; i < m.length; i++) {
|
|
19839
|
+
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
|
|
19840
|
+
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
|
|
19841
|
+
}
|
|
19842
|
+
|
|
19843
|
+
// Padding
|
|
19844
|
+
m[l >>> 5] |= 0x80 << (l % 32);
|
|
19845
|
+
m[(((l + 64) >>> 9) << 4) + 14] = l;
|
|
19846
|
+
|
|
19847
|
+
// Method shortcuts
|
|
19848
|
+
var FF = md5._ff,
|
|
19849
|
+
GG = md5._gg,
|
|
19850
|
+
HH = md5._hh,
|
|
19851
|
+
II = md5._ii;
|
|
19852
|
+
|
|
19853
|
+
for (var i = 0; i < m.length; i += 16) {
|
|
19854
|
+
|
|
19855
|
+
var aa = a,
|
|
19856
|
+
bb = b,
|
|
19857
|
+
cc = c,
|
|
19858
|
+
dd = d;
|
|
19859
|
+
|
|
19860
|
+
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
|
|
19861
|
+
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
|
|
19862
|
+
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
|
|
19863
|
+
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
|
|
19864
|
+
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
|
|
19865
|
+
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
|
|
19866
|
+
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
|
|
19867
|
+
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
|
|
19868
|
+
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
|
|
19869
|
+
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
|
|
19870
|
+
c = FF(c, d, a, b, m[i+10], 17, -42063);
|
|
19871
|
+
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
|
|
19872
|
+
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
|
|
19873
|
+
d = FF(d, a, b, c, m[i+13], 12, -40341101);
|
|
19874
|
+
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
|
|
19875
|
+
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
|
|
19876
|
+
|
|
19877
|
+
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
|
|
19878
|
+
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
|
|
19879
|
+
c = GG(c, d, a, b, m[i+11], 14, 643717713);
|
|
19880
|
+
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
|
|
19881
|
+
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
|
|
19882
|
+
d = GG(d, a, b, c, m[i+10], 9, 38016083);
|
|
19883
|
+
c = GG(c, d, a, b, m[i+15], 14, -660478335);
|
|
19884
|
+
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
|
|
19885
|
+
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
|
|
19886
|
+
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
|
|
19887
|
+
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
|
|
19888
|
+
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
|
|
19889
|
+
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
|
|
19890
|
+
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
|
|
19891
|
+
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
|
|
19892
|
+
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
|
|
19893
|
+
|
|
19894
|
+
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
|
|
19895
|
+
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
|
|
19896
|
+
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
|
|
19897
|
+
b = HH(b, c, d, a, m[i+14], 23, -35309556);
|
|
19898
|
+
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
|
|
19899
|
+
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
|
|
19900
|
+
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
|
|
19901
|
+
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
|
|
19902
|
+
a = HH(a, b, c, d, m[i+13], 4, 681279174);
|
|
19903
|
+
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
|
|
19904
|
+
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
|
|
19905
|
+
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
|
|
19906
|
+
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
|
|
19907
|
+
d = HH(d, a, b, c, m[i+12], 11, -421815835);
|
|
19908
|
+
c = HH(c, d, a, b, m[i+15], 16, 530742520);
|
|
19909
|
+
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
|
|
19910
|
+
|
|
19911
|
+
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
|
|
19912
|
+
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
|
|
19913
|
+
c = II(c, d, a, b, m[i+14], 15, -1416354905);
|
|
19914
|
+
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
|
|
19915
|
+
a = II(a, b, c, d, m[i+12], 6, 1700485571);
|
|
19916
|
+
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
|
|
19917
|
+
c = II(c, d, a, b, m[i+10], 15, -1051523);
|
|
19918
|
+
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
|
|
19919
|
+
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
|
|
19920
|
+
d = II(d, a, b, c, m[i+15], 10, -30611744);
|
|
19921
|
+
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
|
|
19922
|
+
b = II(b, c, d, a, m[i+13], 21, 1309151649);
|
|
19923
|
+
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
|
|
19924
|
+
d = II(d, a, b, c, m[i+11], 10, -1120210379);
|
|
19925
|
+
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
|
|
19926
|
+
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
|
|
19927
|
+
|
|
19928
|
+
a = (a + aa) >>> 0;
|
|
19929
|
+
b = (b + bb) >>> 0;
|
|
19930
|
+
c = (c + cc) >>> 0;
|
|
19931
|
+
d = (d + dd) >>> 0;
|
|
19932
|
+
}
|
|
19933
|
+
|
|
19934
|
+
return crypt$1.endian([a, b, c, d]);
|
|
19935
|
+
};
|
|
19936
|
+
|
|
19937
|
+
// Auxiliary functions
|
|
19938
|
+
md5._ff = function (a, b, c, d, x, s, t) {
|
|
19939
|
+
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
|
|
19940
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19941
|
+
};
|
|
19942
|
+
md5._gg = function (a, b, c, d, x, s, t) {
|
|
19943
|
+
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
|
|
19944
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19945
|
+
};
|
|
19946
|
+
md5._hh = function (a, b, c, d, x, s, t) {
|
|
19947
|
+
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
|
|
19948
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19949
|
+
};
|
|
19950
|
+
md5._ii = function (a, b, c, d, x, s, t) {
|
|
19951
|
+
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
|
|
19952
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19953
|
+
};
|
|
19954
|
+
|
|
19955
|
+
// Package private blocksize
|
|
19956
|
+
md5._blocksize = 16;
|
|
19957
|
+
md5._digestsize = 16;
|
|
19958
|
+
|
|
19959
|
+
module.exports = function (message, options) {
|
|
19960
|
+
if (message === undefined || message === null)
|
|
19961
|
+
throw new Error('Illegal argument ' + message);
|
|
19962
|
+
|
|
19963
|
+
var digestbytes = crypt$1.wordsToBytes(md5(message, options));
|
|
19964
|
+
return options && options.asBytes ? digestbytes :
|
|
19965
|
+
options && options.asString ? bin.bytesToString(digestbytes) :
|
|
19966
|
+
crypt$1.bytesToHex(digestbytes);
|
|
19967
|
+
};
|
|
19968
|
+
|
|
19969
|
+
})();
|
|
19970
|
+
});
|
|
19971
|
+
|
|
19592
19972
|
var _this$3 = undefined;
|
|
19593
19973
|
|
|
19594
19974
|
var config = {
|