@mjhls/mjh-framework 1.0.247 → 1.0.249

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.
Files changed (42) hide show
  1. package/README.md +171 -171
  2. package/dist/cjs/{AdSlot-c472fff6.js → AdSlot-a79ba074.js} +0 -15
  3. package/dist/cjs/DeckContent.js +10 -10
  4. package/dist/cjs/DeckQueue.js +1 -1
  5. package/dist/cjs/{GridContent-463c504f.js → GridContent-e6c8fb75.js} +3 -3
  6. package/dist/cjs/GridContent.js +3 -3
  7. package/dist/cjs/IssueContentDeck.js +1 -1
  8. package/dist/cjs/IssueDeck.js +1 -1
  9. package/dist/cjs/MasterDeck.js +9 -9
  10. package/dist/cjs/{Normal-18cef899.js → Normal-2ee1925d.js} +30 -30
  11. package/dist/cjs/PublicationDeck.js +1 -1
  12. package/dist/cjs/QueueDeckExpanded.js +1 -1
  13. package/dist/cjs/{TaxonomyCard-e3566492.js → TaxonomyCard-b5074d6e.js} +1 -1
  14. package/dist/cjs/TaxonomyCard.js +2 -2
  15. package/dist/cjs/TemplateNormal.js +2 -2
  16. package/dist/cjs/ThumbnailCard.js +1 -1
  17. package/dist/cjs/VideoSeriesListing.js +1 -1
  18. package/dist/cjs/{YoutubeGroup-5f480446.js → YoutubeGroup-fd44f8a0.js} +4 -4
  19. package/dist/cjs/YoutubeGroup.js +1 -1
  20. package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
  21. package/dist/cjs/index.js +550 -536
  22. package/dist/esm/{AdSlot-bdd7a629.js → AdSlot-fb853576.js} +0 -15
  23. package/dist/esm/DeckContent.js +10 -10
  24. package/dist/esm/DeckQueue.js +1 -1
  25. package/dist/esm/{GridContent-2a48fb19.js → GridContent-3711b837.js} +2 -2
  26. package/dist/esm/GridContent.js +3 -3
  27. package/dist/esm/IssueContentDeck.js +1 -1
  28. package/dist/esm/IssueDeck.js +1 -1
  29. package/dist/esm/MasterDeck.js +9 -9
  30. package/dist/esm/{Normal-4c82c9c2.js → Normal-b0b212a3.js} +30 -30
  31. package/dist/esm/PublicationDeck.js +1 -1
  32. package/dist/esm/QueueDeckExpanded.js +1 -1
  33. package/dist/esm/{TaxonomyCard-2d0ab635.js → TaxonomyCard-ee1a22ae.js} +1 -1
  34. package/dist/esm/TaxonomyCard.js +2 -2
  35. package/dist/esm/TemplateNormal.js +2 -2
  36. package/dist/esm/ThumbnailCard.js +1 -1
  37. package/dist/esm/VideoSeriesListing.js +1 -1
  38. package/dist/esm/{YoutubeGroup-78d93d44.js → YoutubeGroup-1b3eca73.js} +4 -4
  39. package/dist/esm/YoutubeGroup.js +1 -1
  40. package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
  41. package/dist/esm/index.js +554 -540
  42. package/package.json +102 -103
package/dist/esm/index.js CHANGED
@@ -18,25 +18,25 @@ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visib
18
18
  import Link from 'next/link';
19
19
  import Router, { useRouter } from 'next/router';
20
20
  import 'react-dom';
21
- import { i as imageUrlBuilder } from './index-73819142.js';
21
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
22
22
  import './index-5f9f807a.js';
23
23
  import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
24
24
  import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
25
- import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-bdd7a629.js';
26
- export { D as AdSlot, B as Beam } from './AdSlot-bdd7a629.js';
25
+ import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-fb853576.js';
26
+ export { D as AdSlot, B as Beam } from './AdSlot-fb853576.js';
27
27
  import './promise-683a9c54.js';
28
28
  export { default as DeckContent } from './DeckContent.js';
29
29
  import './get-b2201dc8.js';
30
- export { A as AD, G as GridContent } from './GridContent-2a48fb19.js';
30
+ export { A as AD, G as GridContent } from './GridContent-3711b837.js';
31
31
  export { default as DeckQueue } from './DeckQueue.js';
32
32
  import 'react-bootstrap/Media';
33
33
  export { default as ThumbnailCard } from './ThumbnailCard.js';
34
- import { B as BlockContent } from './TaxonomyCard-2d0ab635.js';
35
- export { T as TaxonomyCard } from './TaxonomyCard-2d0ab635.js';
34
+ import { B as BlockContent } from './TaxonomyCard-ee1a22ae.js';
35
+ export { T as TaxonomyCard } from './TaxonomyCard-ee1a22ae.js';
36
36
  import GroupDeck from './GroupDeck.js';
37
37
  export { default as GroupDeck } from './GroupDeck.js';
38
- import { g as getYoutubeId } from './YoutubeGroup-78d93d44.js';
39
- export { Y as YoutubeGroup } from './YoutubeGroup-78d93d44.js';
38
+ import { g as getYoutubeId } from './YoutubeGroup-1b3eca73.js';
39
+ export { Y as YoutubeGroup } from './YoutubeGroup-1b3eca73.js';
40
40
  import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Figure, Carousel, Table, Button as Button$1, ProgressBar, Card } from 'react-bootstrap';
41
41
  export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
42
42
  import { I as IoMdArrowDropdown } from './index.esm-536609db.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, T as TemplateNormal } from './Normal-4c82c9c2.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-4c82c9c2.js';
51
+ import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-b0b212a3.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-b0b212a3.js';
53
53
  import 'react-bootstrap/ListGroup';
54
54
  import Head from 'next/head';
55
55
  import Accordion from 'react-bootstrap/Accordion';
@@ -2220,7 +2220,7 @@ var CMEDeck = function CMEDeck(_ref) {
2220
2220
  form.append('doc', 'per');
2221
2221
  form.append('from', params.from);
2222
2222
  form.append('limit', params.limit);
2223
- form.append('keyword', 'Oncology,Lung Cancer,Breast Cancer,Melanoma');
2223
+ form.append('keyword', keywords);
2224
2224
  _context.prev = 5;
2225
2225
  _context.next = 8;
2226
2226
  return fetch(corsProxy$1 + 'http://vaccine.mjhassoc.com/doc_loader.php', {
@@ -2293,7 +2293,9 @@ var CMEDeck = function CMEDeck(_ref) {
2293
2293
  rightItems = _ref.rightItems,
2294
2294
  _ref$seoPaginate = _ref.seoPaginate,
2295
2295
  seoPaginate = _ref$seoPaginate === undefined ? true : _ref$seoPaginate,
2296
- pageview = _ref.pageview;
2296
+ pageview = _ref.pageview,
2297
+ _ref$keywords = _ref.keywords,
2298
+ keywords = _ref$keywords === undefined ? '' : _ref$keywords;
2297
2299
 
2298
2300
  var router = useRouter();
2299
2301
 
@@ -2423,7 +2425,7 @@ var CMEDeck = function CMEDeck(_ref) {
2423
2425
  { xs: 3, sm: 4, md: 4, lg: 4, xl: 4, style: { padding: '0' } },
2424
2426
  React__default.createElement(
2425
2427
  'a',
2426
- { href: row.href },
2428
+ { href: row.href, target: '_blank' },
2427
2429
  React__default.createElement('img', { style: { width: '100%', borderRadius: '0 0 0 10%', marginBottom: '20px', borderTop: '1px solid #EEE' }, src: row.thumbnail })
2428
2430
  )
2429
2431
  ),
@@ -2432,7 +2434,7 @@ var CMEDeck = function CMEDeck(_ref) {
2432
2434
  { xs: 9, sm: 8, md: 8, lg: 8, xl: 8, style: { paddingTop: '10px', marginBottom: '20px', borderTop: '1px solid #EEE' } },
2433
2435
  React__default.createElement(
2434
2436
  'a',
2435
- { href: row.href },
2437
+ { href: row.href, target: '_blank' },
2436
2438
  React__default.createElement('h4', { className: 'mb-1', style: { fontWeight: '500', fontSize: '22px' }, dangerouslySetInnerHTML: { __html: row.title } }),
2437
2439
  React__default.createElement(
2438
2440
  'p',
@@ -2451,7 +2453,7 @@ var CMEDeck = function CMEDeck(_ref) {
2451
2453
  { xs: 9, sm: 8, lg: 8, xl: 8 },
2452
2454
  React__default.createElement(
2453
2455
  'a',
2454
- { href: row.href },
2456
+ { href: row.href, target: '_blank' },
2455
2457
  React__default.createElement('h4', { className: 'mb-1', style: { fontWeight: '500', fontSize: '22px' }, dangerouslySetInnerHTML: { __html: row.title } }),
2456
2458
  React__default.createElement(
2457
2459
  'p',
@@ -2466,7 +2468,7 @@ var CMEDeck = function CMEDeck(_ref) {
2466
2468
  { xs: 3, sm: 4, lg: 4, xl: 4 },
2467
2469
  React__default.createElement(
2468
2470
  'a',
2469
- { href: row.href },
2471
+ { href: row.href, target: '_blank' },
2470
2472
  React__default.createElement('img', { style: { width: '100%', borderRadius: '0 0 10% 0' }, src: row.thumbnail && urlFor(row.thumbnail.asset).url() })
2471
2473
  )
2472
2474
  )
@@ -3044,21 +3046,18 @@ var Slideshow = function Slideshow(_ref) {
3044
3046
  );
3045
3047
  };
3046
3048
 
3047
- var isArray = Array.isArray;
3048
- var keyList = Object.keys;
3049
- var hasProp = Object.prototype.hasOwnProperty;
3049
+ // do not edit .js files directly - edit src/index.jst
3050
+
3051
+
3050
3052
 
3051
3053
  var fastDeepEqual = function equal(a, b) {
3052
3054
  if (a === b) return true;
3053
3055
 
3054
3056
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3055
- var arrA = isArray(a)
3056
- , arrB = isArray(b)
3057
- , i
3058
- , length
3059
- , key;
3057
+ if (a.constructor !== b.constructor) return false;
3060
3058
 
3061
- if (arrA && arrB) {
3059
+ var length, i, keys;
3060
+ if (Array.isArray(a)) {
3062
3061
  length = a.length;
3063
3062
  if (length != b.length) return false;
3064
3063
  for (i = length; i-- !== 0;)
@@ -3066,35 +3065,29 @@ var fastDeepEqual = function equal(a, b) {
3066
3065
  return true;
3067
3066
  }
3068
3067
 
3069
- if (arrA != arrB) return false;
3070
3068
 
3071
- var dateA = a instanceof Date
3072
- , dateB = b instanceof Date;
3073
- if (dateA != dateB) return false;
3074
- if (dateA && dateB) return a.getTime() == b.getTime();
3075
3069
 
3076
- var regexpA = a instanceof RegExp
3077
- , regexpB = b instanceof RegExp;
3078
- if (regexpA != regexpB) return false;
3079
- if (regexpA && regexpB) return a.toString() == b.toString();
3070
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3071
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3072
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3080
3073
 
3081
- var keys = keyList(a);
3074
+ keys = Object.keys(a);
3082
3075
  length = keys.length;
3083
-
3084
- if (length !== keyList(b).length)
3085
- return false;
3076
+ if (length !== Object.keys(b).length) return false;
3086
3077
 
3087
3078
  for (i = length; i-- !== 0;)
3088
- if (!hasProp.call(b, keys[i])) return false;
3079
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3089
3080
 
3090
3081
  for (i = length; i-- !== 0;) {
3091
- key = keys[i];
3082
+ var key = keys[i];
3083
+
3092
3084
  if (!equal(a[key], b[key])) return false;
3093
3085
  }
3094
3086
 
3095
3087
  return true;
3096
3088
  }
3097
3089
 
3090
+ // true if both NaN, false otherwise
3098
3091
  return a!==a && b!==b;
3099
3092
  };
3100
3093
 
@@ -4117,7 +4110,7 @@ function formatValue(ctx, value, recurseTimes) {
4117
4110
  var base = '', array = false, braces = ['{', '}'];
4118
4111
 
4119
4112
  // Make Array say that they are Array
4120
- if (isArray$1(value)) {
4113
+ if (isArray(value)) {
4121
4114
  array = true;
4122
4115
  braces = ['[', ']'];
4123
4116
  }
@@ -4296,7 +4289,7 @@ function reduceToSingleString(output, base, braces) {
4296
4289
 
4297
4290
  // NOTE: These type checking functions intentionally don't use `instanceof`
4298
4291
  // because it is fragile and can be easily faked with `Object.create()`.
4299
- function isArray$1(ar) {
4292
+ function isArray(ar) {
4300
4293
  return Array.isArray(ar);
4301
4294
  }
4302
4295
 
@@ -4423,7 +4416,7 @@ var util = {
4423
4416
  isNullOrUndefined: isNullOrUndefined,
4424
4417
  isNull: isNull,
4425
4418
  isBoolean: isBoolean,
4426
- isArray: isArray$1,
4419
+ isArray: isArray,
4427
4420
  inspect: inspect,
4428
4421
  deprecate: deprecate,
4429
4422
  format: format,
@@ -5090,199 +5083,235 @@ module.exports = exports['default'];
5090
5083
 
5091
5084
  var youTubePlayer = unwrapExports(dist);
5092
5085
 
5093
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
5094
-
5095
- 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; };
5086
+ 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); }
5096
5087
 
5097
5088
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5098
5089
 
5099
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
5090
+ 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); } }
5091
+
5092
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5093
+
5094
+ 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); }; }
5095
+
5096
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5097
+
5098
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5099
+
5100
+ 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; } }
5101
+
5102
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5103
+
5104
+ 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); }
5105
+
5106
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5107
+
5108
+ 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; }
5100
5109
 
5101
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
5110
+ 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; }
5102
5111
 
5103
- /**
5104
- * Check whether a `props` change should result in the video being updated.
5105
- *
5106
- * @param {Object} prevProps
5107
- * @param {Object} props
5112
+ 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; }
5113
+ /**
5114
+ * Check whether a `props` change should result in the video being updated.
5115
+ *
5116
+ * @param {Object} prevProps
5117
+ * @param {Object} props
5108
5118
  */
5119
+
5109
5120
  function shouldUpdateVideo(prevProps, props) {
5110
5121
  // A changing video should always trigger an update
5111
5122
  if (prevProps.videoId !== props.videoId) {
5112
5123
  return true;
5113
- }
5114
-
5115
- // Otherwise, a change in the start/end time playerVars also requires a player
5124
+ } // Otherwise, a change in the start/end time playerVars also requires a player
5116
5125
  // update.
5126
+
5127
+
5117
5128
  var prevVars = prevProps.opts.playerVars || {};
5118
5129
  var vars = props.opts.playerVars || {};
5119
-
5120
5130
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5121
5131
  }
5122
-
5123
- /**
5124
- * Neutralise API options that only require a video update, leaving only options
5125
- * that require a player reset. The results can then be compared to see if a
5126
- * player reset is necessary.
5127
- *
5128
- * @param {Object} opts
5132
+ /**
5133
+ * Neutralize API options that only require a video update, leaving only options
5134
+ * that require a player reset. The results can then be compared to see if a
5135
+ * player reset is necessary.
5136
+ *
5137
+ * @param {Object} opts
5129
5138
  */
5139
+
5140
+
5130
5141
  function filterResetOptions(opts) {
5131
- return _extends({}, opts, {
5132
- playerVars: _extends({}, opts.playerVars, {
5142
+ return _objectSpread({}, opts, {
5143
+ playerVars: _objectSpread({}, opts.playerVars, {
5133
5144
  autoplay: 0,
5134
5145
  start: 0,
5135
5146
  end: 0
5136
5147
  })
5137
5148
  });
5138
5149
  }
5139
-
5140
- /**
5141
- * Check whether a `props` change should result in the player being reset.
5142
- * The player is reset when the `props.opts` change, except if the only change
5143
- * is in the `start` and `end` playerVars, because a video update can deal with
5144
- * those.
5145
- *
5146
- * @param {Object} prevProps
5147
- * @param {Object} props
5150
+ /**
5151
+ * Check whether a `props` change should result in the player being reset.
5152
+ * The player is reset when the `props.opts` change, except if the only change
5153
+ * is in the `start` and `end` playerVars, because a video update can deal with
5154
+ * those.
5155
+ *
5156
+ * @param {Object} prevProps
5157
+ * @param {Object} props
5148
5158
  */
5159
+
5160
+
5149
5161
  function shouldResetPlayer(prevProps, props) {
5150
5162
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5151
5163
  }
5152
-
5153
- /**
5154
- * Check whether a props change should result in an id or className update.
5155
- *
5156
- * @param {Object} prevProps
5157
- * @param {Object} props
5164
+ /**
5165
+ * Check whether a props change should result in an id or className update.
5166
+ *
5167
+ * @param {Object} prevProps
5168
+ * @param {Object} props
5158
5169
  */
5170
+
5171
+
5159
5172
  function shouldUpdatePlayer(prevProps, props) {
5160
5173
  return prevProps.id !== props.id || prevProps.className !== props.className;
5161
5174
  }
5162
5175
 
5163
- var YouTube = function (_React$Component) {
5176
+ var YouTube = /*#__PURE__*/function (_React$Component) {
5164
5177
  _inherits(YouTube, _React$Component);
5165
5178
 
5179
+ var _super = _createSuper(YouTube);
5180
+
5181
+ /**
5182
+ * Expose PlayerState constants for convenience. These constants can also be
5183
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5184
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5185
+ */
5166
5186
  function YouTube(props) {
5187
+ var _this;
5188
+
5167
5189
  _classCallCheck(this, YouTube);
5168
5190
 
5169
- var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5191
+ _this = _super.call(this, props);
5170
5192
 
5171
- _this.onPlayerReady = function (event) {
5193
+ _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5172
5194
  return _this.props.onReady(event);
5173
- };
5195
+ });
5174
5196
 
5175
- _this.onPlayerError = function (event) {
5197
+ _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5176
5198
  return _this.props.onError(event);
5177
- };
5199
+ });
5178
5200
 
5179
- _this.onPlayerStateChange = function (event) {
5201
+ _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5180
5202
  _this.props.onStateChange(event);
5181
- switch (event.data) {
5182
5203
 
5204
+ switch (event.data) {
5183
5205
  case YouTube.PlayerState.ENDED:
5184
5206
  _this.props.onEnd(event);
5207
+
5185
5208
  break;
5186
5209
 
5187
5210
  case YouTube.PlayerState.PLAYING:
5188
5211
  _this.props.onPlay(event);
5212
+
5189
5213
  break;
5190
5214
 
5191
5215
  case YouTube.PlayerState.PAUSED:
5192
5216
  _this.props.onPause(event);
5217
+
5193
5218
  break;
5194
5219
  }
5195
- };
5220
+ });
5196
5221
 
5197
- _this.onPlayerPlaybackRateChange = function (event) {
5222
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5198
5223
  return _this.props.onPlaybackRateChange(event);
5199
- };
5224
+ });
5200
5225
 
5201
- _this.onPlayerPlaybackQualityChange = function (event) {
5226
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5202
5227
  return _this.props.onPlaybackQualityChange(event);
5203
- };
5228
+ });
5204
5229
 
5205
- _this.createPlayer = function () {
5230
+ _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5206
5231
  // do not attempt to create a player server-side, it won't work
5207
- if (typeof document === 'undefined') return;
5208
- // create player
5209
- var playerOpts = _extends({}, _this.props.opts, {
5232
+ if (typeof document === 'undefined') return; // create player
5233
+
5234
+ var playerOpts = _objectSpread({}, _this.props.opts, {
5210
5235
  // preload the `videoId` video if one is already given
5211
5236
  videoId: _this.props.videoId
5212
5237
  });
5213
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5214
- // attach event handlers
5238
+
5239
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5240
+
5215
5241
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5242
+
5216
5243
  _this.internalPlayer.on('error', _this.onPlayerError);
5244
+
5217
5245
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5246
+
5218
5247
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5248
+
5219
5249
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5220
- };
5250
+ });
5221
5251
 
5222
- _this.resetPlayer = function () {
5252
+ _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5223
5253
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5224
- };
5254
+ });
5225
5255
 
5226
- _this.updatePlayer = function () {
5256
+ _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5227
5257
  _this.internalPlayer.getIframe().then(function (iframe) {
5228
5258
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5229
5259
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5230
5260
  });
5231
- };
5261
+ });
5232
5262
 
5233
- _this.updateVideo = function () {
5263
+ _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5234
5264
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5235
5265
  _this.internalPlayer.stopVideo();
5266
+
5236
5267
  return;
5237
- }
5268
+ } // set queueing options
5269
+
5238
5270
 
5239
- // set queueing options
5240
5271
  var autoplay = false;
5241
5272
  var opts = {
5242
5273
  videoId: _this.props.videoId
5243
5274
  };
5275
+
5244
5276
  if ('playerVars' in _this.props.opts) {
5245
5277
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5278
+
5246
5279
  if ('start' in _this.props.opts.playerVars) {
5247
5280
  opts.startSeconds = _this.props.opts.playerVars.start;
5248
5281
  }
5282
+
5249
5283
  if ('end' in _this.props.opts.playerVars) {
5250
5284
  opts.endSeconds = _this.props.opts.playerVars.end;
5251
5285
  }
5252
- }
5286
+ } // if autoplay is enabled loadVideoById
5287
+
5253
5288
 
5254
- // if autoplay is enabled loadVideoById
5255
5289
  if (autoplay) {
5256
5290
  _this.internalPlayer.loadVideoById(opts);
5291
+
5257
5292
  return;
5258
- }
5259
- // default behaviour just cues the video
5293
+ } // default behaviour just cues the video
5294
+
5295
+
5260
5296
  _this.internalPlayer.cueVideoById(opts);
5261
- };
5297
+ });
5262
5298
 
5263
- _this.refContainer = function (container) {
5299
+ _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5264
5300
  _this.container = container;
5265
- };
5301
+ });
5266
5302
 
5267
5303
  _this.container = null;
5268
5304
  _this.internalPlayer = null;
5269
5305
  return _this;
5270
5306
  }
5271
5307
 
5272
- /**
5273
- * Expose PlayerState constants for convenience. These constants can also be
5274
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5275
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5276
- */
5277
-
5278
-
5279
5308
  _createClass(YouTube, [{
5280
- key: 'componentDidMount',
5309
+ key: "componentDidMount",
5281
5310
  value: function componentDidMount() {
5282
5311
  this.createPlayer();
5283
5312
  }
5284
5313
  }, {
5285
- key: 'componentDidUpdate',
5314
+ key: "componentDidUpdate",
5286
5315
  value: function componentDidUpdate(prevProps) {
5287
5316
  if (shouldUpdatePlayer(prevProps, this.props)) {
5288
5317
  this.updatePlayer();
@@ -5297,112 +5326,58 @@ var YouTube = function (_React$Component) {
5297
5326
  }
5298
5327
  }
5299
5328
  }, {
5300
- key: 'componentWillUnmount',
5329
+ key: "componentWillUnmount",
5301
5330
  value: function componentWillUnmount() {
5302
- /**
5303
- * Note: The `youtube-player` package that is used promisifies all Youtube
5304
- * Player API calls, which introduces a delay of a tick before it actually
5305
- * gets destroyed. Since React attempts to remove the element instantly
5306
- * this method isn't quick enough to reset the container element.
5331
+ /**
5332
+ * Note: The `youtube-player` package that is used promisifies all YouTube
5333
+ * Player API calls, which introduces a delay of a tick before it actually
5334
+ * gets destroyed. Since React attempts to remove the element instantly
5335
+ * this method isn't quick enough to reset the container element.
5307
5336
  */
5308
5337
  this.internalPlayer.destroy();
5309
5338
  }
5310
-
5311
- /**
5312
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5313
- *
5314
- * @param {Object} event
5315
- * @param {Object} target - player object
5316
- */
5317
-
5318
-
5319
- /**
5320
- * https://developers.google.com/youtube/iframe_api_reference#onError
5321
- *
5322
- * @param {Object} event
5323
- * @param {Integer} data - error type
5324
- * @param {Object} target - player object
5325
- */
5326
-
5327
-
5328
- /**
5329
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5330
- *
5331
- * @param {Object} event
5332
- * @param {Integer} data - status change type
5333
- * @param {Object} target - actual YT player
5334
- */
5335
-
5336
-
5337
- /**
5338
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5339
- *
5340
- * @param {Object} event
5341
- * @param {Float} data - playback rate
5342
- * @param {Object} target - actual YT player
5343
- */
5344
-
5345
-
5346
- /**
5347
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5348
- *
5349
- * @param {Object} event
5350
- * @param {String} data - playback quality
5351
- * @param {Object} target - actual YT player
5352
- */
5353
-
5354
-
5355
- /**
5356
- * Initialize the Youtube Player API on the container and attach event handlers
5357
- */
5358
-
5359
-
5360
- /**
5361
- * Shorthand for destroying and then re-creating the Youtube Player
5362
- */
5363
-
5364
-
5365
- /**
5366
- * Method to update the id and class of the Youtube Player iframe.
5367
- * React should update this automatically but since the Youtube Player API
5368
- * replaced the DIV that is mounted by React we need to do this manually.
5369
- */
5370
-
5371
-
5372
- /**
5373
- * Call Youtube Player API methods to update the currently playing video.
5374
- * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5375
- * Youtube Player API methods to update the video.
5339
+ /**
5340
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5341
+ *
5342
+ * @param {Object} event
5343
+ * @param {Object} target - player object
5376
5344
  */
5377
5345
 
5378
5346
  }, {
5379
- key: 'render',
5347
+ key: "render",
5380
5348
  value: function render() {
5381
- return React__default.createElement(
5382
- 'div',
5383
- { className: this.props.containerClassName },
5384
- React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5385
- );
5349
+ return /*#__PURE__*/React__default.createElement("div", {
5350
+ className: this.props.containerClassName
5351
+ }, /*#__PURE__*/React__default.createElement("div", {
5352
+ id: this.props.id,
5353
+ className: this.props.className,
5354
+ ref: this.refContainer
5355
+ }));
5386
5356
  }
5387
5357
  }]);
5388
5358
 
5389
5359
  return YouTube;
5390
5360
  }(React__default.Component);
5391
5361
 
5362
+ _defineProperty(YouTube, "PlayerState", {
5363
+ UNSTARTED: -1,
5364
+ ENDED: 0,
5365
+ PLAYING: 1,
5366
+ PAUSED: 2,
5367
+ BUFFERING: 3,
5368
+ CUED: 5
5369
+ });
5370
+
5392
5371
  YouTube.propTypes = {
5393
5372
  videoId: PropTypes.string,
5394
-
5395
5373
  // custom ID for player element
5396
5374
  id: PropTypes.string,
5397
-
5398
5375
  // custom class name for player element
5399
5376
  className: PropTypes.string,
5400
5377
  // custom class name for player container element
5401
5378
  containerClassName: PropTypes.string,
5402
-
5403
5379
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5404
5380
  opts: PropTypes.objectOf(PropTypes.any),
5405
-
5406
5381
  // event subscriptions
5407
5382
  onReady: PropTypes.func,
5408
5383
  onError: PropTypes.func,
@@ -5414,6 +5389,7 @@ YouTube.propTypes = {
5414
5389
  onPlaybackQualityChange: PropTypes.func
5415
5390
  };
5416
5391
  YouTube.defaultProps = {
5392
+ videoId: null,
5417
5393
  id: null,
5418
5394
  className: null,
5419
5395
  opts: {},
@@ -5427,14 +5403,6 @@ YouTube.defaultProps = {
5427
5403
  onPlaybackRateChange: function onPlaybackRateChange() {},
5428
5404
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5429
5405
  };
5430
- YouTube.PlayerState = {
5431
- UNSTARTED: -1,
5432
- ENDED: 0,
5433
- PLAYING: 1,
5434
- PAUSED: 2,
5435
- BUFFERING: 3,
5436
- CUED: 5
5437
- };
5438
5406
 
5439
5407
  var YouTubePlayer = function YouTubePlayer(_ref) {
5440
5408
  var url = _ref.url;
@@ -6469,8 +6437,8 @@ var window_1 = win;
6469
6437
 
6470
6438
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6471
6439
 
6472
- function _extends$1() {
6473
- _extends$1 = Object.assign || function (target) {
6440
+ function _extends() {
6441
+ _extends = Object.assign || function (target) {
6474
6442
  for (var i = 1; i < arguments.length; i++) {
6475
6443
  var source = arguments[i];
6476
6444
 
@@ -6484,7 +6452,7 @@ function _extends$1() {
6484
6452
  return target;
6485
6453
  };
6486
6454
 
6487
- return _extends$1.apply(this, arguments);
6455
+ return _extends.apply(this, arguments);
6488
6456
  }
6489
6457
 
6490
6458
  function _inheritsLoose(subClass, superClass) {
@@ -6493,7 +6461,7 @@ function _inheritsLoose(subClass, superClass) {
6493
6461
  subClass.__proto__ = superClass;
6494
6462
  }
6495
6463
 
6496
- function _assertThisInitialized(self) {
6464
+ function _assertThisInitialized$1(self) {
6497
6465
  if (self === void 0) {
6498
6466
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6499
6467
  }
@@ -6503,8 +6471,8 @@ function _assertThisInitialized(self) {
6503
6471
 
6504
6472
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6505
6473
 
6506
- function _extends$1$1() {
6507
- _extends$1$1 = Object.assign || function (target) {
6474
+ function _extends$1() {
6475
+ _extends$1 = Object.assign || function (target) {
6508
6476
  for (var i = 1; i < arguments.length; i++) {
6509
6477
  var source = arguments[i];
6510
6478
 
@@ -6518,7 +6486,7 @@ function _extends$1$1() {
6518
6486
  return target;
6519
6487
  };
6520
6488
 
6521
- return _extends$1$1.apply(this, arguments);
6489
+ return _extends$1.apply(this, arguments);
6522
6490
  }
6523
6491
 
6524
6492
  var version$1 = "1.7.1";
@@ -6526,7 +6494,7 @@ var version$1 = "1.7.1";
6526
6494
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6527
6495
  var version$1$1 = "1.2.0";
6528
6496
 
6529
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6497
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6530
6498
  return typeof obj;
6531
6499
  } : function (obj) {
6532
6500
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6661,7 +6629,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6661
6629
 
6662
6630
  var qs = '';
6663
6631
 
6664
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6632
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6665
6633
  qs = getQueryString(queryParams);
6666
6634
  }
6667
6635
 
@@ -6895,7 +6863,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
6895
6863
  el.style.width = '100%';
6896
6864
  el.style.height = '100%';
6897
6865
 
6898
- var responsive = _extends$1$1({
6866
+ var responsive = _extends$1({
6899
6867
  aspectRatio: DEFAULT_ASPECT_RATIO,
6900
6868
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
6901
6869
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7580,7 +7548,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7580
7548
 
7581
7549
 
7582
7550
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7583
- var params = _extends$1$1({}, DEFAULTS, parameters);
7551
+ var params = _extends$1({}, DEFAULTS, parameters);
7584
7552
 
7585
7553
  var Promise = params.Promise,
7586
7554
  onSuccess = params.onSuccess,
@@ -7722,7 +7690,7 @@ function (_React$Component) {
7722
7690
  _this.refNode = ref;
7723
7691
  };
7724
7692
 
7725
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7693
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7726
7694
  return _this;
7727
7695
  }
7728
7696
  /**
@@ -7743,7 +7711,7 @@ function (_React$Component) {
7743
7711
  var userSuccess = this.props.onSuccess;
7744
7712
  var userFailure = this.props.onFailure;
7745
7713
 
7746
- var options = _extends$1({}, this.props, {
7714
+ var options = _extends({}, this.props, {
7747
7715
  refNode: this.refNode,
7748
7716
  refNodeInsert: 'append',
7749
7717
  onSuccess: function onSuccess(_ref) {
@@ -8052,7 +8020,7 @@ function (_React$Component) {
8052
8020
  ;
8053
8021
 
8054
8022
  _proto.render = function render() {
8055
- var props = _extends$1({
8023
+ var props = _extends({
8056
8024
  className: 'brightcove-react-player-loader'
8057
8025
  }, this.props.attrs, {
8058
8026
  ref: this.setRefNode
@@ -8466,11 +8434,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8466
8434
 
8467
8435
  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; }
8468
8436
 
8469
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8437
+ 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; } } }; }
8438
+
8439
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8470
8440
 
8471
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8441
+ 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."); }
8472
8442
 
8473
- function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
8443
+ 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); }
8444
+
8445
+ 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; }
8446
+
8447
+ 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; }
8474
8448
 
8475
8449
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8476
8450
 
@@ -8600,12 +8574,12 @@ function getSDK(url, sdkGlobal) {
8600
8574
 
8601
8575
  function getConfig(props$1, defaultProps, showWarning) {
8602
8576
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8603
- var _iteratorNormalCompletion = true;
8604
- var _didIteratorError = false;
8605
- var _iteratorError = undefined;
8577
+
8578
+ var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8579
+ _step;
8606
8580
 
8607
8581
  try {
8608
- for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8582
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
8609
8583
  var p = _step.value;
8610
8584
 
8611
8585
  if (props$1[p]) {
@@ -8620,18 +8594,9 @@ function getConfig(props$1, defaultProps, showWarning) {
8620
8594
  }
8621
8595
  }
8622
8596
  } catch (err) {
8623
- _didIteratorError = true;
8624
- _iteratorError = err;
8597
+ _iterator.e(err);
8625
8598
  } finally {
8626
- try {
8627
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8628
- _iterator["return"]();
8629
- }
8630
- } finally {
8631
- if (_didIteratorError) {
8632
- throw _iteratorError;
8633
- }
8634
- }
8599
+ _iterator.f();
8635
8600
  }
8636
8601
 
8637
8602
  return config;
@@ -8778,12 +8743,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8778
8743
 
8779
8744
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8780
8745
 
8781
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8746
+ 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); }; }
8782
8747
 
8783
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8748
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8784
8749
 
8785
8750
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8786
8751
 
8752
+ 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; } }
8753
+
8754
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8755
+
8787
8756
  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); }
8788
8757
 
8789
8758
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -8792,14 +8761,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8792
8761
 
8793
8762
  var SEEK_ON_PLAY_EXPIRY = 5000;
8794
8763
 
8795
- var Player =
8796
- /*#__PURE__*/
8797
- function (_Component) {
8764
+ var Player = /*#__PURE__*/function (_Component) {
8798
8765
  _inherits(Player, _Component);
8799
8766
 
8800
- function Player() {
8801
- var _getPrototypeOf2;
8767
+ var _super = _createSuper(Player);
8802
8768
 
8769
+ function Player() {
8803
8770
  var _this;
8804
8771
 
8805
8772
  _classCallCheck(this, Player);
@@ -8808,7 +8775,7 @@ function (_Component) {
8808
8775
  _args[_key] = arguments[_key];
8809
8776
  }
8810
8777
 
8811
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8778
+ _this = _super.call.apply(_super, [this].concat(_args));
8812
8779
 
8813
8780
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
8814
8781
 
@@ -9133,7 +9100,7 @@ function (_Component) {
9133
9100
  return null;
9134
9101
  }
9135
9102
 
9136
- return _react["default"].createElement(Player, _extends({}, this.props, {
9103
+ return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9137
9104
  ref: this.ref,
9138
9105
  onReady: this.handleReady,
9139
9106
  onPlay: this.handlePlay,
@@ -9194,12 +9161,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9194
9161
 
9195
9162
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9196
9163
 
9197
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9164
+ 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); }; }
9198
9165
 
9199
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9166
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9200
9167
 
9201
9168
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9202
9169
 
9170
+ 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; } }
9171
+
9172
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9173
+
9203
9174
  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); }
9204
9175
 
9205
9176
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9211,14 +9182,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9211
9182
  function createSinglePlayer(activePlayer) {
9212
9183
  var _class, _temp;
9213
9184
 
9214
- return _temp = _class =
9215
- /*#__PURE__*/
9216
- function (_Component) {
9185
+ return _temp = _class = /*#__PURE__*/function (_Component) {
9217
9186
  _inherits(SinglePlayer, _Component);
9218
9187
 
9219
- function SinglePlayer() {
9220
- var _getPrototypeOf2;
9188
+ var _super = _createSuper(SinglePlayer);
9221
9189
 
9190
+ function SinglePlayer() {
9222
9191
  var _this;
9223
9192
 
9224
9193
  _classCallCheck(this, SinglePlayer);
@@ -9227,7 +9196,7 @@ function createSinglePlayer(activePlayer) {
9227
9196
  args[_key] = arguments[_key];
9228
9197
  }
9229
9198
 
9230
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9199
+ _this = _super.call.apply(_super, [this].concat(args));
9231
9200
 
9232
9201
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9233
9202
 
@@ -9295,12 +9264,12 @@ function createSinglePlayer(activePlayer) {
9295
9264
  height = _this$props.height,
9296
9265
  Wrapper = _this$props.wrapper;
9297
9266
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9298
- return _react["default"].createElement(Wrapper, _extends({
9267
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9299
9268
  style: _objectSpread({}, style, {
9300
9269
  width: width,
9301
9270
  height: height
9302
9271
  })
9303
- }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9272
+ }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9304
9273
  ref: this.ref,
9305
9274
  activePlayer: activePlayer,
9306
9275
  config: this.config
@@ -9346,23 +9315,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9346
9315
 
9347
9316
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9348
9317
 
9349
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9318
+ 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); }; }
9350
9319
 
9351
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9320
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9352
9321
 
9353
9322
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9354
9323
 
9324
+ 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; } }
9325
+
9326
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9327
+
9355
9328
  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); }
9356
9329
 
9357
9330
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9358
9331
 
9359
9332
  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; }
9360
9333
 
9361
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9334
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9335
+
9336
+ 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."); }
9337
+
9338
+ 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); }
9362
9339
 
9363
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9340
+ 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; }
9364
9341
 
9365
- function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
9342
+ 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; }
9366
9343
 
9367
9344
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9368
9345
 
@@ -9387,14 +9364,12 @@ function parsePlaylist(url) {
9387
9364
  return {};
9388
9365
  }
9389
9366
 
9390
- var YouTube =
9391
- /*#__PURE__*/
9392
- function (_Component) {
9367
+ var YouTube = /*#__PURE__*/function (_Component) {
9393
9368
  _inherits(YouTube, _Component);
9394
9369
 
9395
- function YouTube() {
9396
- var _getPrototypeOf2;
9370
+ var _super = _createSuper(YouTube);
9397
9371
 
9372
+ function YouTube() {
9398
9373
  var _this;
9399
9374
 
9400
9375
  _classCallCheck(this, YouTube);
@@ -9403,7 +9378,7 @@ function (_Component) {
9403
9378
  args[_key] = arguments[_key];
9404
9379
  }
9405
9380
 
9406
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9381
+ _this = _super.call.apply(_super, [this].concat(args));
9407
9382
 
9408
9383
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9409
9384
 
@@ -9591,9 +9566,9 @@ function (_Component) {
9591
9566
  height: '100%',
9592
9567
  display: display
9593
9568
  };
9594
- return _react["default"].createElement("div", {
9569
+ return /*#__PURE__*/_react["default"].createElement("div", {
9595
9570
  style: style
9596
- }, _react["default"].createElement("div", {
9571
+ }, /*#__PURE__*/_react["default"].createElement("div", {
9597
9572
  ref: this.ref
9598
9573
  }));
9599
9574
  }
@@ -9649,12 +9624,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9649
9624
 
9650
9625
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9651
9626
 
9652
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9627
+ 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); }; }
9653
9628
 
9654
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9629
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9655
9630
 
9656
9631
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9657
9632
 
9633
+ 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; } }
9634
+
9635
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9636
+
9658
9637
  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); }
9659
9638
 
9660
9639
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9663,16 +9642,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9663
9642
 
9664
9643
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9665
9644
  var SDK_GLOBAL = 'SC';
9666
- var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9645
+ var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9667
9646
 
9668
- var SoundCloud =
9669
- /*#__PURE__*/
9670
- function (_Component) {
9647
+ var SoundCloud = /*#__PURE__*/function (_Component) {
9671
9648
  _inherits(SoundCloud, _Component);
9672
9649
 
9673
- function SoundCloud() {
9674
- var _getPrototypeOf2;
9650
+ var _super = _createSuper(SoundCloud);
9675
9651
 
9652
+ function SoundCloud() {
9676
9653
  var _this;
9677
9654
 
9678
9655
  _classCallCheck(this, SoundCloud);
@@ -9681,7 +9658,7 @@ function (_Component) {
9681
9658
  args[_key] = arguments[_key];
9682
9659
  }
9683
9660
 
9684
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9661
+ _this = _super.call.apply(_super, [this].concat(args));
9685
9662
 
9686
9663
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9687
9664
 
@@ -9802,7 +9779,7 @@ function (_Component) {
9802
9779
  height: '100%',
9803
9780
  display: display
9804
9781
  };
9805
- return _react["default"].createElement("iframe", {
9782
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
9806
9783
  ref: this.ref,
9807
9784
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
9808
9785
  style: style,
@@ -9864,12 +9841,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9864
9841
 
9865
9842
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9866
9843
 
9867
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9844
+ 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); }; }
9868
9845
 
9869
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9846
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9870
9847
 
9871
9848
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9872
9849
 
9850
+ 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; } }
9851
+
9852
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9853
+
9873
9854
  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); }
9874
9855
 
9875
9856
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9881,14 +9862,12 @@ var SDK_GLOBAL = 'Vimeo';
9881
9862
  var MATCH_URL = /vimeo\.com\/.+/;
9882
9863
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
9883
9864
 
9884
- var Vimeo =
9885
- /*#__PURE__*/
9886
- function (_Component) {
9865
+ var Vimeo = /*#__PURE__*/function (_Component) {
9887
9866
  _inherits(Vimeo, _Component);
9888
9867
 
9889
- function Vimeo() {
9890
- var _getPrototypeOf2;
9868
+ var _super = _createSuper(Vimeo);
9891
9869
 
9870
+ function Vimeo() {
9892
9871
  var _this;
9893
9872
 
9894
9873
  _classCallCheck(this, Vimeo);
@@ -9897,7 +9876,7 @@ function (_Component) {
9897
9876
  args[_key] = arguments[_key];
9898
9877
  }
9899
9878
 
9900
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
9879
+ _this = _super.call.apply(_super, [this].concat(args));
9901
9880
 
9902
9881
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9903
9882
 
@@ -10054,7 +10033,7 @@ function (_Component) {
10054
10033
  overflow: 'hidden',
10055
10034
  display: display
10056
10035
  };
10057
- return _react["default"].createElement("div", {
10036
+ return /*#__PURE__*/_react["default"].createElement("div", {
10058
10037
  key: this.props.url,
10059
10038
  ref: this.ref,
10060
10039
  style: style
@@ -10114,12 +10093,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10114
10093
 
10115
10094
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10116
10095
 
10117
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10096
+ 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); }; }
10118
10097
 
10119
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10098
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10120
10099
 
10121
10100
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10122
10101
 
10102
+ 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; } }
10103
+
10104
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10105
+
10123
10106
  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); }
10124
10107
 
10125
10108
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10132,14 +10115,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10132
10115
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10133
10116
  var PLAYER_ID_PREFIX = 'facebook-player-';
10134
10117
 
10135
- var Facebook =
10136
- /*#__PURE__*/
10137
- function (_Component) {
10118
+ var Facebook = /*#__PURE__*/function (_Component) {
10138
10119
  _inherits(Facebook, _Component);
10139
10120
 
10140
- function Facebook() {
10141
- var _getPrototypeOf2;
10121
+ var _super = _createSuper(Facebook);
10142
10122
 
10123
+ function Facebook() {
10143
10124
  var _this;
10144
10125
 
10145
10126
  _classCallCheck(this, Facebook);
@@ -10148,7 +10129,7 @@ function (_Component) {
10148
10129
  args[_key] = arguments[_key];
10149
10130
  }
10150
10131
 
10151
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10132
+ _this = _super.call.apply(_super, [this].concat(args));
10152
10133
 
10153
10134
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10154
10135
 
@@ -10264,7 +10245,7 @@ function (_Component) {
10264
10245
  width: '100%',
10265
10246
  height: '100%'
10266
10247
  };
10267
- return _react["default"].createElement("div", {
10248
+ return /*#__PURE__*/_react["default"].createElement("div", {
10268
10249
  style: style,
10269
10250
  id: this.playerID,
10270
10251
  className: "fb-video",
@@ -10324,12 +10305,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10324
10305
 
10325
10306
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10326
10307
 
10327
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10308
+ 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); }; }
10328
10309
 
10329
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10310
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10330
10311
 
10331
10312
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10332
10313
 
10314
+ 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; } }
10315
+
10316
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10317
+
10333
10318
  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); }
10334
10319
 
10335
10320
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10340,14 +10325,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10340
10325
  var SDK_GLOBAL = 'playerjs';
10341
10326
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10342
10327
 
10343
- var Streamable =
10344
- /*#__PURE__*/
10345
- function (_Component) {
10328
+ var Streamable = /*#__PURE__*/function (_Component) {
10346
10329
  _inherits(Streamable, _Component);
10347
10330
 
10348
- function Streamable() {
10349
- var _getPrototypeOf2;
10331
+ var _super = _createSuper(Streamable);
10350
10332
 
10333
+ function Streamable() {
10351
10334
  var _this;
10352
10335
 
10353
10336
  _classCallCheck(this, Streamable);
@@ -10356,7 +10339,7 @@ function (_Component) {
10356
10339
  args[_key] = arguments[_key];
10357
10340
  }
10358
10341
 
10359
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10342
+ _this = _super.call.apply(_super, [this].concat(args));
10360
10343
 
10361
10344
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10362
10345
 
@@ -10476,7 +10459,7 @@ function (_Component) {
10476
10459
  width: '100%',
10477
10460
  height: '100%'
10478
10461
  };
10479
- return _react["default"].createElement("iframe", {
10462
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10480
10463
  ref: this.ref,
10481
10464
  src: "https://streamable.com/o/".concat(id),
10482
10465
  frameBorder: "0",
@@ -10537,12 +10520,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10537
10520
 
10538
10521
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10539
10522
 
10540
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10523
+ 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); }; }
10541
10524
 
10542
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10525
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10543
10526
 
10544
10527
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10545
10528
 
10529
+ 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; } }
10530
+
10531
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10532
+
10546
10533
  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); }
10547
10534
 
10548
10535
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10553,26 +10540,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10553
10540
  var SDK_GLOBAL = 'Wistia';
10554
10541
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10555
10542
 
10556
- var Wistia =
10557
- /*#__PURE__*/
10558
- function (_Component) {
10543
+ var Wistia = /*#__PURE__*/function (_Component) {
10559
10544
  _inherits(Wistia, _Component);
10560
10545
 
10561
- function Wistia() {
10562
- var _getPrototypeOf2;
10546
+ var _super = _createSuper(Wistia);
10563
10547
 
10548
+ function Wistia() {
10564
10549
  var _this;
10565
10550
 
10566
10551
  _classCallCheck(this, Wistia);
10567
10552
 
10568
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10569
- args[_key] = arguments[_key];
10553
+ for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10554
+ _args[_key] = arguments[_key];
10570
10555
  }
10571
10556
 
10572
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10557
+ _this = _super.call.apply(_super, [this].concat(_args));
10573
10558
 
10574
10559
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10575
10560
 
10561
+ _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10562
+ var _this$props;
10563
+
10564
+ return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10565
+ });
10566
+
10567
+ _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10568
+ var _this$props2;
10569
+
10570
+ return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10571
+ });
10572
+
10573
+ _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10574
+ var _this$props3;
10575
+
10576
+ return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10577
+ });
10578
+
10579
+ _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10580
+ var _this$props4;
10581
+
10582
+ return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10583
+ });
10584
+
10576
10585
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10577
10586
  _this.callPlayer('mute');
10578
10587
  });
@@ -10594,17 +10603,13 @@ function (_Component) {
10594
10603
  value: function load(url) {
10595
10604
  var _this2 = this;
10596
10605
 
10597
- var _this$props = this.props,
10598
- playing = _this$props.playing,
10599
- muted = _this$props.muted,
10600
- controls = _this$props.controls,
10601
- _onReady = _this$props.onReady,
10602
- onPlay = _this$props.onPlay,
10603
- onPause = _this$props.onPause,
10604
- onSeek = _this$props.onSeek,
10605
- onEnded = _this$props.onEnded,
10606
- config = _this$props.config,
10607
- onError = _this$props.onError;
10606
+ var _this$props5 = this.props,
10607
+ playing = _this$props5.playing,
10608
+ muted = _this$props5.muted,
10609
+ controls = _this$props5.controls,
10610
+ _onReady = _this$props5.onReady,
10611
+ config = _this$props5.config,
10612
+ onError = _this$props5.onError;
10608
10613
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10609
10614
  window._wq = window._wq || [];
10610
10615
 
@@ -10621,19 +10626,28 @@ function (_Component) {
10621
10626
 
10622
10627
  _this2.unbind();
10623
10628
 
10624
- _this2.player.bind('play', onPlay);
10629
+ _this2.player.bind('play', _this2.onPlay);
10625
10630
 
10626
- _this2.player.bind('pause', onPause);
10631
+ _this2.player.bind('pause', _this2.onPause);
10627
10632
 
10628
- _this2.player.bind('seek', onSeek);
10633
+ _this2.player.bind('seek', _this2.onSeek);
10629
10634
 
10630
- _this2.player.bind('end', onEnded);
10635
+ _this2.player.bind('end', _this2.onEnded);
10631
10636
 
10632
10637
  _onReady();
10633
10638
  }
10634
10639
  });
10635
10640
  }, onError);
10636
10641
  }
10642
+ }, {
10643
+ key: "unbind",
10644
+ value: function unbind() {
10645
+ this.player.unbind('play', this.onPlay);
10646
+ this.player.unbind('pause', this.onPause);
10647
+ this.player.unbind('seek', this.onSeek);
10648
+ this.player.unbind('end', this.onEnded);
10649
+ } // Proxy methods to prevent listener leaks
10650
+
10637
10651
  }, {
10638
10652
  key: "play",
10639
10653
  value: function play() {
@@ -10644,19 +10658,6 @@ function (_Component) {
10644
10658
  value: function pause() {
10645
10659
  this.callPlayer('pause');
10646
10660
  }
10647
- }, {
10648
- key: "unbind",
10649
- value: function unbind() {
10650
- var _this$props2 = this.props,
10651
- onPlay = _this$props2.onPlay,
10652
- onPause = _this$props2.onPause,
10653
- onSeek = _this$props2.onSeek,
10654
- onEnded = _this$props2.onEnded;
10655
- this.player.unbind('play', onPlay);
10656
- this.player.unbind('pause', onPause);
10657
- this.player.unbind('seek', onSeek);
10658
- this.player.unbind('end', onEnded);
10659
- }
10660
10661
  }, {
10661
10662
  key: "stop",
10662
10663
  value: function stop() {
@@ -10702,7 +10703,7 @@ function (_Component) {
10702
10703
  width: '100%',
10703
10704
  height: '100%'
10704
10705
  };
10705
- return _react["default"].createElement("div", {
10706
+ return /*#__PURE__*/_react["default"].createElement("div", {
10706
10707
  key: id,
10707
10708
  className: className,
10708
10709
  style: style
@@ -10762,12 +10763,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10762
10763
 
10763
10764
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10764
10765
 
10765
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10766
+ 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); }; }
10766
10767
 
10767
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10768
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10768
10769
 
10769
10770
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10770
10771
 
10772
+ 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; } }
10773
+
10774
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10775
+
10771
10776
  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); }
10772
10777
 
10773
10778
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10780,14 +10785,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
10780
10785
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
10781
10786
  var PLAYER_ID_PREFIX = 'twitch-player-';
10782
10787
 
10783
- var Twitch =
10784
- /*#__PURE__*/
10785
- function (_Component) {
10788
+ var Twitch = /*#__PURE__*/function (_Component) {
10786
10789
  _inherits(Twitch, _Component);
10787
10790
 
10788
- function Twitch() {
10789
- var _getPrototypeOf2;
10791
+ var _super = _createSuper(Twitch);
10790
10792
 
10793
+ function Twitch() {
10791
10794
  var _this;
10792
10795
 
10793
10796
  _classCallCheck(this, Twitch);
@@ -10796,7 +10799,7 @@ function (_Component) {
10796
10799
  args[_key] = arguments[_key];
10797
10800
  }
10798
10801
 
10799
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10802
+ _this = _super.call.apply(_super, [this].concat(args));
10800
10803
 
10801
10804
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10802
10805
 
@@ -10917,7 +10920,7 @@ function (_Component) {
10917
10920
  width: '100%',
10918
10921
  height: '100%'
10919
10922
  };
10920
- return _react["default"].createElement("div", {
10923
+ return /*#__PURE__*/_react["default"].createElement("div", {
10921
10924
  style: style,
10922
10925
  id: this.playerID
10923
10926
  });
@@ -10970,11 +10973,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
10970
10973
 
10971
10974
  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; }
10972
10975
 
10973
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
10976
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10977
+
10978
+ 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."); }
10974
10979
 
10975
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
10980
+ 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); }
10976
10981
 
10977
- function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10982
+ 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; }
10983
+
10984
+ 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; }
10978
10985
 
10979
10986
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10980
10987
 
@@ -10984,12 +10991,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10984
10991
 
10985
10992
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10986
10993
 
10987
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10994
+ 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); }; }
10988
10995
 
10989
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10996
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10990
10997
 
10991
10998
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10992
10999
 
11000
+ 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; } }
11001
+
11002
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11003
+
10993
11004
  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); }
10994
11005
 
10995
11006
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11001,14 +11012,12 @@ var SDK_GLOBAL = 'DM';
11001
11012
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11002
11013
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11003
11014
 
11004
- var DailyMotion =
11005
- /*#__PURE__*/
11006
- function (_Component) {
11015
+ var DailyMotion = /*#__PURE__*/function (_Component) {
11007
11016
  _inherits(DailyMotion, _Component);
11008
11017
 
11009
- function DailyMotion() {
11010
- var _getPrototypeOf2;
11018
+ var _super = _createSuper(DailyMotion);
11011
11019
 
11020
+ function DailyMotion() {
11012
11021
  var _this;
11013
11022
 
11014
11023
  _classCallCheck(this, DailyMotion);
@@ -11017,7 +11026,7 @@ function (_Component) {
11017
11026
  args[_key] = arguments[_key];
11018
11027
  }
11019
11028
 
11020
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11029
+ _this = _super.call.apply(_super, [this].concat(args));
11021
11030
 
11022
11031
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11023
11032
 
@@ -11146,9 +11155,9 @@ function (_Component) {
11146
11155
  height: '100%',
11147
11156
  display: display
11148
11157
  };
11149
- return _react["default"].createElement("div", {
11158
+ return /*#__PURE__*/_react["default"].createElement("div", {
11150
11159
  style: style
11151
- }, _react["default"].createElement("div", {
11160
+ }, /*#__PURE__*/_react["default"].createElement("div", {
11152
11161
  ref: this.ref
11153
11162
  }));
11154
11163
  }
@@ -11206,12 +11215,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11206
11215
 
11207
11216
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11208
11217
 
11209
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11218
+ 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); }; }
11210
11219
 
11211
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11220
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11212
11221
 
11213
11222
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11214
11223
 
11224
+ 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; } }
11225
+
11226
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11227
+
11215
11228
  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); }
11216
11229
 
11217
11230
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11222,14 +11235,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11222
11235
  var SDK_GLOBAL = 'Mixcloud';
11223
11236
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11224
11237
 
11225
- var Mixcloud =
11226
- /*#__PURE__*/
11227
- function (_Component) {
11238
+ var Mixcloud = /*#__PURE__*/function (_Component) {
11228
11239
  _inherits(Mixcloud, _Component);
11229
11240
 
11230
- function Mixcloud() {
11231
- var _getPrototypeOf2;
11241
+ var _super = _createSuper(Mixcloud);
11232
11242
 
11243
+ function Mixcloud() {
11233
11244
  var _this;
11234
11245
 
11235
11246
  _classCallCheck(this, Mixcloud);
@@ -11238,7 +11249,7 @@ function (_Component) {
11238
11249
  args[_key] = arguments[_key];
11239
11250
  }
11240
11251
 
11241
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11252
+ _this = _super.call.apply(_super, [this].concat(args));
11242
11253
 
11243
11254
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11244
11255
 
@@ -11341,7 +11352,7 @@ function (_Component) {
11341
11352
  })); // We have to give the iframe a key here to prevent a
11342
11353
  // weird dialog appearing when loading a new track
11343
11354
 
11344
- return _react["default"].createElement("iframe", {
11355
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
11345
11356
  key: id,
11346
11357
  ref: this.ref,
11347
11358
  style: style,
@@ -11401,23 +11412,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11401
11412
 
11402
11413
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11403
11414
 
11404
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11415
+ 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); }; }
11405
11416
 
11406
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11417
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11407
11418
 
11408
11419
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11409
11420
 
11421
+ 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; } }
11422
+
11423
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11424
+
11410
11425
  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); }
11411
11426
 
11412
11427
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11413
11428
 
11414
11429
  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; }
11415
11430
 
11431
+ 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; } } }; }
11432
+
11433
+ 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); }
11434
+
11435
+ 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; }
11436
+
11416
11437
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11417
11438
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11418
11439
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11419
11440
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11420
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11441
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11421
11442
  var HLS_GLOBAL = 'Hls';
11422
11443
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11423
11444
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11426,12 +11447,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11426
11447
 
11427
11448
  function canPlay(url) {
11428
11449
  if (url instanceof Array) {
11429
- var _iteratorNormalCompletion = true;
11430
- var _didIteratorError = false;
11431
- var _iteratorError = undefined;
11450
+ var _iterator = _createForOfIteratorHelper(url),
11451
+ _step;
11432
11452
 
11433
11453
  try {
11434
- for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11454
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
11435
11455
  var item = _step.value;
11436
11456
 
11437
11457
  if (typeof item === 'string' && canPlay(item)) {
@@ -11443,18 +11463,9 @@ function canPlay(url) {
11443
11463
  }
11444
11464
  }
11445
11465
  } catch (err) {
11446
- _didIteratorError = true;
11447
- _iteratorError = err;
11466
+ _iterator.e(err);
11448
11467
  } finally {
11449
- try {
11450
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11451
- _iterator["return"]();
11452
- }
11453
- } finally {
11454
- if (_didIteratorError) {
11455
- throw _iteratorError;
11456
- }
11457
- }
11468
+ _iterator.f();
11458
11469
  }
11459
11470
 
11460
11471
  return false;
@@ -11478,14 +11489,12 @@ function canEnablePIP(url) {
11478
11489
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11479
11490
  }
11480
11491
 
11481
- var FilePlayer =
11482
- /*#__PURE__*/
11483
- function (_Component) {
11492
+ var FilePlayer = /*#__PURE__*/function (_Component) {
11484
11493
  _inherits(FilePlayer, _Component);
11485
11494
 
11486
- function FilePlayer() {
11487
- var _getPrototypeOf2;
11495
+ var _super = _createSuper(FilePlayer);
11488
11496
 
11497
+ function FilePlayer() {
11489
11498
  var _this;
11490
11499
 
11491
11500
  _classCallCheck(this, FilePlayer);
@@ -11494,7 +11503,7 @@ function (_Component) {
11494
11503
  _args[_key] = arguments[_key];
11495
11504
  }
11496
11505
 
11497
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11506
+ _this = _super.call.apply(_super, [this].concat(_args));
11498
11507
 
11499
11508
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11500
11509
  var _this$props;
@@ -11581,19 +11590,19 @@ function (_Component) {
11581
11590
 
11582
11591
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11583
11592
  if (typeof source === 'string') {
11584
- return _react["default"].createElement("source", {
11593
+ return /*#__PURE__*/_react["default"].createElement("source", {
11585
11594
  key: index,
11586
11595
  src: source
11587
11596
  });
11588
11597
  }
11589
11598
 
11590
- return _react["default"].createElement("source", _extends({
11599
+ return /*#__PURE__*/_react["default"].createElement("source", _extends({
11591
11600
  key: index
11592
11601
  }, source));
11593
11602
  });
11594
11603
 
11595
11604
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11596
- return _react["default"].createElement("track", _extends({
11605
+ return /*#__PURE__*/_react["default"].createElement("track", _extends({
11597
11606
  key: index
11598
11607
  }, track));
11599
11608
  });
@@ -11631,6 +11640,10 @@ function (_Component) {
11631
11640
  key: "componentWillUnmount",
11632
11641
  value: function componentWillUnmount() {
11633
11642
  this.removeListeners(this.player);
11643
+
11644
+ if (this.hls) {
11645
+ this.hls.destroy();
11646
+ }
11634
11647
  }
11635
11648
  }, {
11636
11649
  key: "addListeners",
@@ -11761,10 +11774,6 @@ function (_Component) {
11761
11774
  value: function stop() {
11762
11775
  this.player.removeAttribute('src');
11763
11776
 
11764
- if (this.hls) {
11765
- this.hls.destroy();
11766
- }
11767
-
11768
11777
  if (this.dash) {
11769
11778
  this.dash.reset();
11770
11779
  }
@@ -11876,7 +11885,7 @@ function (_Component) {
11876
11885
  width: width === 'auto' ? width : '100%',
11877
11886
  height: height === 'auto' ? height : '100%'
11878
11887
  };
11879
- return _react["default"].createElement(Element, _extends({
11888
+ return /*#__PURE__*/_react["default"].createElement(Element, _extends({
11880
11889
  ref: this.ref,
11881
11890
  src: this.getSource(url),
11882
11891
  style: style,
@@ -11966,12 +11975,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11966
11975
 
11967
11976
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11968
11977
 
11969
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11978
+ 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); }; }
11970
11979
 
11971
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11980
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11972
11981
 
11973
11982
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11974
11983
 
11984
+ 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; } }
11985
+
11986
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11987
+
11975
11988
  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); }
11976
11989
 
11977
11990
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11980,14 +11993,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
11980
11993
 
11981
11994
  var ICON_SIZE = '64px';
11982
11995
 
11983
- var Preview =
11984
- /*#__PURE__*/
11985
- function (_Component) {
11996
+ var Preview = /*#__PURE__*/function (_Component) {
11986
11997
  _inherits(Preview, _Component);
11987
11998
 
11988
- function Preview() {
11989
- var _getPrototypeOf2;
11999
+ var _super = _createSuper(Preview);
11990
12000
 
12001
+ function Preview() {
11991
12002
  var _this;
11992
12003
 
11993
12004
  _classCallCheck(this, Preview);
@@ -11996,7 +12007,7 @@ function (_Component) {
11996
12007
  args[_key] = arguments[_key];
11997
12008
  }
11998
12009
 
11999
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12010
+ _this = _super.call.apply(_super, [this].concat(args));
12000
12011
 
12001
12012
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12002
12013
 
@@ -12094,15 +12105,15 @@ function (_Component) {
12094
12105
  }
12095
12106
  };
12096
12107
 
12097
- var defaultPlayIcon = _react["default"].createElement("div", {
12108
+ var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12098
12109
  style: styles.shadow,
12099
12110
  className: "react-player__shadow"
12100
- }, _react["default"].createElement("div", {
12111
+ }, /*#__PURE__*/_react["default"].createElement("div", {
12101
12112
  style: styles.playIcon,
12102
12113
  className: "react-player__play-icon"
12103
12114
  }));
12104
12115
 
12105
- return _react["default"].createElement("div", {
12116
+ return /*#__PURE__*/_react["default"].createElement("div", {
12106
12117
  style: styles.preview,
12107
12118
  className: "react-player__preview",
12108
12119
  onClick: onClick
@@ -12139,6 +12150,12 @@ var _Player = _interopRequireDefault(Player_1);
12139
12150
 
12140
12151
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12141
12152
 
12153
+ 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; } } }; }
12154
+
12155
+ 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); }
12156
+
12157
+ 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; }
12158
+
12142
12159
  var PRELOAD_PLAYERS = [{
12143
12160
  Player: YouTube_1.YouTube,
12144
12161
  configKey: 'youtube',
@@ -12159,16 +12176,16 @@ var PRELOAD_PLAYERS = [{
12159
12176
 
12160
12177
  function renderPreloadPlayers(url, controls, config) {
12161
12178
  var players = [];
12162
- var _iteratorNormalCompletion = true;
12163
- var _didIteratorError = false;
12164
- var _iteratorError = undefined;
12179
+
12180
+ var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12181
+ _step;
12165
12182
 
12166
12183
  try {
12167
- for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12184
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
12168
12185
  var player = _step.value;
12169
12186
 
12170
12187
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12171
- players.push(_react["default"].createElement(_Player["default"], {
12188
+ players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12172
12189
  key: player.Player.displayName,
12173
12190
  activePlayer: player.Player,
12174
12191
  url: player.url,
@@ -12180,18 +12197,9 @@ function renderPreloadPlayers(url, controls, config) {
12180
12197
  }
12181
12198
  }
12182
12199
  } catch (err) {
12183
- _didIteratorError = true;
12184
- _iteratorError = err;
12200
+ _iterator.e(err);
12185
12201
  } finally {
12186
- try {
12187
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12188
- _iterator["return"]();
12189
- }
12190
- } finally {
12191
- if (_didIteratorError) {
12192
- throw _iteratorError;
12193
- }
12194
- }
12202
+ _iterator.f();
12195
12203
  }
12196
12204
 
12197
12205
  return players;
@@ -12315,13 +12323,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12315
12323
 
12316
12324
  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); }
12317
12325
 
12318
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12326
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12327
+
12328
+ 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."); }
12329
+
12330
+ 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); }
12319
12331
 
12320
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12332
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12321
12333
 
12322
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12334
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12323
12335
 
12324
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
12336
+ 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; }
12325
12337
 
12326
12338
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12327
12339
 
@@ -12329,12 +12341,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12329
12341
 
12330
12342
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12331
12343
 
12332
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12344
+ 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); }; }
12333
12345
 
12334
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12346
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12335
12347
 
12336
12348
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12337
12349
 
12350
+ 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; } }
12351
+
12352
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12353
+
12338
12354
  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); }
12339
12355
 
12340
12356
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12344,14 +12360,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12344
12360
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12345
12361
  var customPlayers = [];
12346
12362
 
12347
- var ReactPlayer =
12348
- /*#__PURE__*/
12349
- function (_Component) {
12363
+ var ReactPlayer = /*#__PURE__*/function (_Component) {
12350
12364
  _inherits(ReactPlayer, _Component);
12351
12365
 
12352
- function ReactPlayer() {
12353
- var _getPrototypeOf2;
12366
+ var _super = _createSuper(ReactPlayer);
12354
12367
 
12368
+ function ReactPlayer() {
12355
12369
  var _this;
12356
12370
 
12357
12371
  _classCallCheck(this, ReactPlayer);
@@ -12360,7 +12374,7 @@ function (_Component) {
12360
12374
  args[_key] = arguments[_key];
12361
12375
  }
12362
12376
 
12363
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12377
+ _this = _super.call.apply(_super, [this].concat(args));
12364
12378
 
12365
12379
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12366
12380
 
@@ -12471,7 +12485,7 @@ function (_Component) {
12471
12485
  key: "renderActivePlayer",
12472
12486
  value: function renderActivePlayer(url, activePlayer) {
12473
12487
  if (!url) return null;
12474
- return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12488
+ return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12475
12489
  key: activePlayer.displayName,
12476
12490
  ref: this.activePlayerRef,
12477
12491
  config: this.config,
@@ -12508,14 +12522,14 @@ function (_Component) {
12508
12522
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12509
12523
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12510
12524
 
12511
- var preview = _react["default"].createElement(_Preview["default"], {
12525
+ var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12512
12526
  url: url,
12513
12527
  light: light,
12514
12528
  playIcon: playIcon,
12515
12529
  onClick: this.handleClickPreview
12516
12530
  });
12517
12531
 
12518
- return _react["default"].createElement(Wrapper, _extends({
12532
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12519
12533
  ref: this.wrapperRef,
12520
12534
  style: _objectSpread({}, style, {
12521
12535
  width: width,
@@ -13833,16 +13847,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
13833
13847
  _ref$className = _ref.className,
13834
13848
  className = _ref$className === undefined ? '' : _ref$className;
13835
13849
 
13836
- /*
13837
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
13838
- example:
13839
- <RelatedTopicDropdown
13840
- page='/clinical'
13841
- exclude="clinical"
13842
- className='mb-3'
13843
- parentTaxonomy={props.parentTaxonomy}
13844
- subTaxonomies={props.subTaxonomies}
13845
- />
13850
+ /*
13851
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
13852
+ example:
13853
+ <RelatedTopicDropdown
13854
+ page='/clinical'
13855
+ exclude="clinical"
13856
+ className='mb-3'
13857
+ parentTaxonomy={props.parentTaxonomy}
13858
+ subTaxonomies={props.subTaxonomies}
13859
+ />
13846
13860
  */
13847
13861
  if (subTaxonomies.length === 0 && parentTaxonomy) {
13848
13862
  if (parentTaxonomy.identifier == exclude) {
@@ -13880,19 +13894,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
13880
13894
  }
13881
13895
  };
13882
13896
 
13883
- /*
13884
- This dropdown is used inside Article body to display related content placement pages
13885
- sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
13886
-
13887
- in article query, need to add '...' to content_placement to retreive additional info needed
13888
-
13889
- 'content_placement': taxonomyMapping[]-> {
13890
- ...,
13891
- 'ancestor': parent->parent->identifier,
13892
- 'parent': parent->identifier,
13893
- 'path': identifier
13894
- }
13895
-
13897
+ /*
13898
+ This dropdown is used inside Article body to display related content placement pages
13899
+ sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
13900
+
13901
+ in article query, need to add '...' to content_placement to retreive additional info needed
13902
+
13903
+ 'content_placement': taxonomyMapping[]-> {
13904
+ ...,
13905
+ 'ancestor': parent->parent->identifier,
13906
+ 'parent': parent->identifier,
13907
+ 'path': identifier
13908
+ }
13909
+
13896
13910
  */
13897
13911
 
13898
13912
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -14725,34 +14739,34 @@ var GridHero = function GridHero(props) {
14725
14739
  );
14726
14740
  };
14727
14741
 
14728
- /*
14729
- Sample query
14730
- let references = ''
14731
- if(article.taxonomyMapping.length > 0){
14732
- article.taxonomyMapping.forEach((ref, index) => {
14733
- references = references + `references('${ref._ref}') `
14734
- if(index+1 !== article.taxonomyMapping.length){
14735
- references = references + ` && `
14736
- }
14737
- })
14738
- }
14739
-
14740
- 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] {
14741
- ...,
14742
- title,
14743
- summary,
14744
- thumbnail,
14745
- url,
14746
- published,
14747
- authorMapping[]->,
14748
- contentCategory->
14749
- }`
14750
- const relatedArticles = await client.fetch(relatedArticlesQuery)
14751
-
14752
- Sample usage
14753
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
14754
-
14755
-
14742
+ /*
14743
+ Sample query
14744
+ let references = ''
14745
+ if(article.taxonomyMapping.length > 0){
14746
+ article.taxonomyMapping.forEach((ref, index) => {
14747
+ references = references + `references('${ref._ref}') `
14748
+ if(index+1 !== article.taxonomyMapping.length){
14749
+ references = references + ` && `
14750
+ }
14751
+ })
14752
+ }
14753
+
14754
+ 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] {
14755
+ ...,
14756
+ title,
14757
+ summary,
14758
+ thumbnail,
14759
+ url,
14760
+ published,
14761
+ authorMapping[]->,
14762
+ contentCategory->
14763
+ }`
14764
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
14765
+
14766
+ Sample usage
14767
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
14768
+
14769
+
14756
14770
  */
14757
14771
  var RelatedContent = function RelatedContent(props) {
14758
14772
  var client = props.client,
@@ -14819,21 +14833,21 @@ var RelatedContent = function RelatedContent(props) {
14819
14833
  );
14820
14834
  };
14821
14835
 
14822
- /*
14823
- Example usage - targetedonc.com/latest-conference
14824
- 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] {
14825
- ...,
14826
- title,
14827
- summary,
14828
- thumbnail,
14829
- url,
14830
- published,
14831
- documentGroup->,
14832
- contentCategory->,
14833
- 'pageNumber': ${currentPage}
14834
- }`
14835
-
14836
- const posts = await client.fetch(query, params)
14836
+ /*
14837
+ Example usage - targetedonc.com/latest-conference
14838
+ 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] {
14839
+ ...,
14840
+ title,
14841
+ summary,
14842
+ thumbnail,
14843
+ url,
14844
+ published,
14845
+ documentGroup->,
14846
+ contentCategory->,
14847
+ 'pageNumber': ${currentPage}
14848
+ }`
14849
+
14850
+ const posts = await client.fetch(query, params)
14837
14851
  */
14838
14852
 
14839
14853
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -15460,27 +15474,27 @@ var _initialiseProps = function _initialiseProps() {
15460
15474
  };
15461
15475
 
15462
15476
  var KMTracker = function KMTracker(props) {
15463
- var id = props.id;
15477
+ var id = props.id;
15464
15478
 
15465
- if (document) {
15479
+ if (document) {
15466
15480
  (function () {
15467
- var ecnJquery = document.createElement('script');
15481
+ var ecnJquery = document.createElement('script');
15468
15482
 
15469
- ecnJquery.type = 'text/javascript';
15470
- ecnJquery.async = true;
15471
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
15483
+ ecnJquery.type = 'text/javascript';
15484
+ ecnJquery.async = true;
15485
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
15472
15486
 
15473
- var ecnScript = document.createElement('script');
15487
+ var ecnScript = document.createElement('script');
15474
15488
 
15475
- ecnScript.type = 'text/javascript';
15476
- ecnScript.async = true;
15477
- ecnScript.id = 'km-tracker';
15478
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
15489
+ ecnScript.type = 'text/javascript';
15490
+ ecnScript.async = true;
15491
+ ecnScript.id = 'km-tracker';
15492
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
15479
15493
 
15480
- document.head.appendChild(ecnJquery);
15481
- document.head.appendChild(ecnScript);
15482
- })();
15483
- }
15494
+ document.head.appendChild(ecnJquery);
15495
+ document.head.appendChild(ecnScript);
15496
+ })();
15497
+ }
15484
15498
  };
15485
15499
 
15486
15500
  export { AD300x250, AD300x250x600, ADFooter, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleDetailDropdown, ArticleQueue, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HorizontalHero, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, YahooHero, getSerializers };