@mjhls/mjh-framework 1.0.720-beta.0 → 1.0.720-navigation-scroll-fix-v1

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 (102) hide show
  1. package/dist/cjs/ArticleCarousel.js +1 -1
  2. package/dist/cjs/ArticleProgramLandingPage.js +6 -6
  3. package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
  4. package/dist/cjs/ArticleSeriesListing.js +2 -2
  5. package/dist/cjs/Auth.js +11 -211
  6. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-80b15fac.js} +1 -1
  7. package/dist/cjs/ConferenceArticleCard.js +1 -1
  8. package/dist/cjs/DeckContent.js +2 -2
  9. package/dist/cjs/DeckQueue.js +2 -2
  10. package/dist/cjs/ExternalResources.js +4 -4
  11. package/dist/cjs/Feature.js +1 -1
  12. package/dist/cjs/ForbesHero.js +1 -1
  13. package/dist/cjs/GridContent.js +3 -3
  14. package/dist/cjs/GridHero.js +1 -1
  15. package/dist/cjs/GroupDeck.js +1 -1
  16. package/dist/cjs/HamMagazine.js +8 -7
  17. package/dist/cjs/Hero.js +1 -1
  18. package/dist/cjs/HorizontalArticleListing.js +4 -4
  19. package/dist/cjs/HorizontalHero.js +1 -1
  20. package/dist/cjs/IssueContentDeck.js +1 -1
  21. package/dist/cjs/IssueDeck.js +1 -1
  22. package/dist/cjs/IssueLanding.js +2 -2
  23. package/dist/cjs/MasterDeck.js +3 -3
  24. package/dist/cjs/OncliveHero.js +1 -1
  25. package/dist/cjs/OncliveLargeHero.js +1 -1
  26. package/dist/cjs/PartnerDetailListing.js +7 -7
  27. package/dist/cjs/PublicationDeck.js +2 -2
  28. package/dist/cjs/QueueDeckExpanded.js +2 -2
  29. package/dist/cjs/RecentNews.js +1 -1
  30. package/dist/cjs/RelatedContent.js +1 -1
  31. package/dist/cjs/TaxonomyCard.js +2 -2
  32. package/dist/cjs/TaxonomyDescription.js +4 -4
  33. package/dist/cjs/ThumbnailCard.js +1 -1
  34. package/dist/cjs/VerticalHero.js +1 -1
  35. package/dist/cjs/VideoProgramLandingPage.js +6 -6
  36. package/dist/cjs/VideoSeriesCard.js +3 -3
  37. package/dist/cjs/VideoSeriesLandingPage.js +5 -5
  38. package/dist/cjs/VideoSeriesListing.js +2 -2
  39. package/dist/cjs/View.js +32 -32
  40. package/dist/cjs/YahooHero.js +1 -1
  41. package/dist/cjs/YoutubeGroup.js +9 -11
  42. package/dist/cjs/getRelatedArticle.js +416 -5
  43. package/dist/cjs/getSerializers.js +4 -4
  44. package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
  45. package/dist/cjs/getTargeting.js +1 -1
  46. package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
  47. package/dist/cjs/{index-792274b1.js → index-a2ecf598.js} +451 -439
  48. package/dist/cjs/index-bd6c9f56.js +211 -0
  49. package/dist/cjs/index.js +9 -9
  50. package/dist/cjs/{inherits-c9f99d47.js → inherits-513d81cd.js} +4 -4
  51. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  52. package/dist/cjs/urlFor.js +1 -1
  53. package/dist/esm/ArticleCarousel.js +1 -1
  54. package/dist/esm/ArticleProgramLandingPage.js +3 -3
  55. package/dist/esm/ArticleSeriesLandingPage.js +2 -2
  56. package/dist/esm/ArticleSeriesListing.js +1 -1
  57. package/dist/esm/Auth.js +3 -203
  58. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-c409aca5.js} +1 -1
  59. package/dist/esm/ConferenceArticleCard.js +1 -1
  60. package/dist/esm/DeckContent.js +1 -1
  61. package/dist/esm/DeckQueue.js +1 -1
  62. package/dist/esm/ExternalResources.js +3 -3
  63. package/dist/esm/Feature.js +1 -1
  64. package/dist/esm/ForbesHero.js +1 -1
  65. package/dist/esm/GridContent.js +2 -2
  66. package/dist/esm/GridHero.js +1 -1
  67. package/dist/esm/GroupDeck.js +1 -1
  68. package/dist/esm/HamMagazine.js +8 -7
  69. package/dist/esm/Hero.js +1 -1
  70. package/dist/esm/HorizontalArticleListing.js +3 -3
  71. package/dist/esm/HorizontalHero.js +1 -1
  72. package/dist/esm/IssueContentDeck.js +1 -1
  73. package/dist/esm/IssueDeck.js +1 -1
  74. package/dist/esm/IssueLanding.js +2 -2
  75. package/dist/esm/MasterDeck.js +2 -2
  76. package/dist/esm/OncliveHero.js +1 -1
  77. package/dist/esm/OncliveLargeHero.js +1 -1
  78. package/dist/esm/PartnerDetailListing.js +4 -4
  79. package/dist/esm/PublicationDeck.js +2 -2
  80. package/dist/esm/QueueDeckExpanded.js +2 -2
  81. package/dist/esm/RecentNews.js +1 -1
  82. package/dist/esm/RelatedContent.js +1 -1
  83. package/dist/esm/TaxonomyCard.js +2 -2
  84. package/dist/esm/TaxonomyDescription.js +3 -3
  85. package/dist/esm/ThumbnailCard.js +1 -1
  86. package/dist/esm/VerticalHero.js +1 -1
  87. package/dist/esm/VideoProgramLandingPage.js +3 -3
  88. package/dist/esm/VideoSeriesCard.js +1 -1
  89. package/dist/esm/VideoSeriesLandingPage.js +2 -2
  90. package/dist/esm/VideoSeriesListing.js +1 -1
  91. package/dist/esm/View.js +5 -5
  92. package/dist/esm/YahooHero.js +1 -1
  93. package/dist/esm/YoutubeGroup.js +9 -11
  94. package/dist/esm/getRelatedArticle.js +416 -5
  95. package/dist/esm/getSerializers.js +3 -3
  96. package/dist/esm/{index-c3a5ff39.js → index-2749e7d8.js} +450 -438
  97. package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
  98. package/dist/esm/index-db3bb315.js +207 -0
  99. package/dist/esm/index.js +6 -6
  100. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  101. package/dist/esm/urlFor.js +1 -1
  102. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
2
  import { _ as _export, a as _core } from './_to-object-a4107da3.js';
3
3
  import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
4
- import { _ as _extends$1 } from './extends-eb69e8ac.js';
4
+ import { _ as _extends } from './extends-eb69e8ac.js';
5
5
  import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-fb9b6e8f.js';
6
- import { _ as _typeof } from './typeof-6435ba1c.js';
6
+ import { _ as _typeof$1 } from './typeof-6435ba1c.js';
7
7
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
8
8
  import { l as lib_3 } from './index-a9e53f80.js';
9
9
  import PropTypes from 'prop-types';
@@ -11,7 +11,7 @@ import Row from 'react-bootstrap/Row';
11
11
  import Col from 'react-bootstrap/Col';
12
12
  import { m as moment } from './moment-e2f9b20c.js';
13
13
  import Router, { useRouter } from 'next/router';
14
- import { i as imageUrlBuilder } from './index-73819142.js';
14
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
15
15
  import { L as LazyLoad } from './index-5f9f807a.js';
16
16
  import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
17
17
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
@@ -19,7 +19,7 @@ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f
19
19
  import Segment from './Segment.js';
20
20
  import Beam from './Beam.js';
21
21
  import DFPAdSlot from './AdSlot.js';
22
- import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
22
+ import { B as BlockContent } from './BlockContent-c409aca5.js';
23
23
  import { g as getYoutubeId } from './index-c7e2ac95.js';
24
24
  import GroupDeck from './GroupDeck.js';
25
25
  import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
@@ -95,21 +95,18 @@ var Slideshow = function Slideshow(_ref) {
95
95
  );
96
96
  };
97
97
 
98
- var isArray = Array.isArray;
99
- var keyList = Object.keys;
100
- var hasProp = Object.prototype.hasOwnProperty;
98
+ // do not edit .js files directly - edit src/index.jst
99
+
100
+
101
101
 
102
102
  var fastDeepEqual = function equal(a, b) {
103
103
  if (a === b) return true;
104
104
 
105
105
  if (a && b && typeof a == 'object' && typeof b == 'object') {
106
- var arrA = isArray(a)
107
- , arrB = isArray(b)
108
- , i
109
- , length
110
- , key;
106
+ if (a.constructor !== b.constructor) return false;
111
107
 
112
- if (arrA && arrB) {
108
+ var length, i, keys;
109
+ if (Array.isArray(a)) {
113
110
  length = a.length;
114
111
  if (length != b.length) return false;
115
112
  for (i = length; i-- !== 0;)
@@ -117,35 +114,29 @@ var fastDeepEqual = function equal(a, b) {
117
114
  return true;
118
115
  }
119
116
 
120
- if (arrA != arrB) return false;
121
117
 
122
- var dateA = a instanceof Date
123
- , dateB = b instanceof Date;
124
- if (dateA != dateB) return false;
125
- if (dateA && dateB) return a.getTime() == b.getTime();
126
118
 
127
- var regexpA = a instanceof RegExp
128
- , regexpB = b instanceof RegExp;
129
- if (regexpA != regexpB) return false;
130
- if (regexpA && regexpB) return a.toString() == b.toString();
119
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
120
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
121
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
131
122
 
132
- var keys = keyList(a);
123
+ keys = Object.keys(a);
133
124
  length = keys.length;
134
-
135
- if (length !== keyList(b).length)
136
- return false;
125
+ if (length !== Object.keys(b).length) return false;
137
126
 
138
127
  for (i = length; i-- !== 0;)
139
- if (!hasProp.call(b, keys[i])) return false;
128
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
140
129
 
141
130
  for (i = length; i-- !== 0;) {
142
- key = keys[i];
131
+ var key = keys[i];
132
+
143
133
  if (!equal(a[key], b[key])) return false;
144
134
  }
145
135
 
146
136
  return true;
147
137
  }
148
138
 
139
+ // true if both NaN, false otherwise
149
140
  return a!==a && b!==b;
150
141
  };
151
142
 
@@ -1568,199 +1559,235 @@ module.exports = exports['default'];
1568
1559
 
1569
1560
  var youTubePlayer = unwrapExports(dist);
1570
1561
 
1571
- 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; }; }();
1572
-
1573
- 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; };
1562
+ 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); }
1574
1563
 
1575
1564
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1576
1565
 
1577
- 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; }
1566
+ 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); } }
1567
+
1568
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1569
+
1570
+ 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); }; }
1571
+
1572
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1573
+
1574
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1575
+
1576
+ 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; } }
1577
+
1578
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1578
1579
 
1579
- 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; }
1580
+ 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); }
1581
+
1582
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1580
1583
 
1581
- /**
1582
- * Check whether a `props` change should result in the video being updated.
1583
- *
1584
- * @param {Object} prevProps
1585
- * @param {Object} props
1584
+ 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; }
1585
+
1586
+ 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; }
1587
+
1588
+ 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; }
1589
+ /**
1590
+ * Check whether a `props` change should result in the video being updated.
1591
+ *
1592
+ * @param {Object} prevProps
1593
+ * @param {Object} props
1586
1594
  */
1595
+
1587
1596
  function shouldUpdateVideo(prevProps, props) {
1588
1597
  // A changing video should always trigger an update
1589
1598
  if (prevProps.videoId !== props.videoId) {
1590
1599
  return true;
1591
- }
1592
-
1593
- // Otherwise, a change in the start/end time playerVars also requires a player
1600
+ } // Otherwise, a change in the start/end time playerVars also requires a player
1594
1601
  // update.
1602
+
1603
+
1595
1604
  var prevVars = prevProps.opts.playerVars || {};
1596
1605
  var vars = props.opts.playerVars || {};
1597
-
1598
1606
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1599
1607
  }
1600
-
1601
- /**
1602
- * Neutralise API options that only require a video update, leaving only options
1603
- * that require a player reset. The results can then be compared to see if a
1604
- * player reset is necessary.
1605
- *
1606
- * @param {Object} opts
1608
+ /**
1609
+ * Neutralize API options that only require a video update, leaving only options
1610
+ * that require a player reset. The results can then be compared to see if a
1611
+ * player reset is necessary.
1612
+ *
1613
+ * @param {Object} opts
1607
1614
  */
1615
+
1616
+
1608
1617
  function filterResetOptions(opts) {
1609
- return _extends({}, opts, {
1610
- playerVars: _extends({}, opts.playerVars, {
1618
+ return _objectSpread({}, opts, {
1619
+ playerVars: _objectSpread({}, opts.playerVars, {
1611
1620
  autoplay: 0,
1612
1621
  start: 0,
1613
1622
  end: 0
1614
1623
  })
1615
1624
  });
1616
1625
  }
1617
-
1618
- /**
1619
- * Check whether a `props` change should result in the player being reset.
1620
- * The player is reset when the `props.opts` change, except if the only change
1621
- * is in the `start` and `end` playerVars, because a video update can deal with
1622
- * those.
1623
- *
1624
- * @param {Object} prevProps
1625
- * @param {Object} props
1626
+ /**
1627
+ * Check whether a `props` change should result in the player being reset.
1628
+ * The player is reset when the `props.opts` change, except if the only change
1629
+ * is in the `start` and `end` playerVars, because a video update can deal with
1630
+ * those.
1631
+ *
1632
+ * @param {Object} prevProps
1633
+ * @param {Object} props
1626
1634
  */
1635
+
1636
+
1627
1637
  function shouldResetPlayer(prevProps, props) {
1628
1638
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1629
1639
  }
1630
-
1631
- /**
1632
- * Check whether a props change should result in an id or className update.
1633
- *
1634
- * @param {Object} prevProps
1635
- * @param {Object} props
1640
+ /**
1641
+ * Check whether a props change should result in an id or className update.
1642
+ *
1643
+ * @param {Object} prevProps
1644
+ * @param {Object} props
1636
1645
  */
1646
+
1647
+
1637
1648
  function shouldUpdatePlayer(prevProps, props) {
1638
1649
  return prevProps.id !== props.id || prevProps.className !== props.className;
1639
1650
  }
1640
1651
 
1641
- var YouTube = function (_React$Component) {
1652
+ var YouTube = /*#__PURE__*/function (_React$Component) {
1642
1653
  _inherits(YouTube, _React$Component);
1643
1654
 
1655
+ var _super = _createSuper(YouTube);
1656
+
1657
+ /**
1658
+ * Expose PlayerState constants for convenience. These constants can also be
1659
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
1660
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1661
+ */
1644
1662
  function YouTube(props) {
1663
+ var _this;
1664
+
1645
1665
  _classCallCheck(this, YouTube);
1646
1666
 
1647
- var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1667
+ _this = _super.call(this, props);
1648
1668
 
1649
- _this.onPlayerReady = function (event) {
1669
+ _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
1650
1670
  return _this.props.onReady(event);
1651
- };
1671
+ });
1652
1672
 
1653
- _this.onPlayerError = function (event) {
1673
+ _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
1654
1674
  return _this.props.onError(event);
1655
- };
1675
+ });
1656
1676
 
1657
- _this.onPlayerStateChange = function (event) {
1677
+ _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
1658
1678
  _this.props.onStateChange(event);
1659
- switch (event.data) {
1660
1679
 
1680
+ switch (event.data) {
1661
1681
  case YouTube.PlayerState.ENDED:
1662
1682
  _this.props.onEnd(event);
1683
+
1663
1684
  break;
1664
1685
 
1665
1686
  case YouTube.PlayerState.PLAYING:
1666
1687
  _this.props.onPlay(event);
1688
+
1667
1689
  break;
1668
1690
 
1669
1691
  case YouTube.PlayerState.PAUSED:
1670
1692
  _this.props.onPause(event);
1693
+
1671
1694
  break;
1672
1695
  }
1673
- };
1696
+ });
1674
1697
 
1675
- _this.onPlayerPlaybackRateChange = function (event) {
1698
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
1676
1699
  return _this.props.onPlaybackRateChange(event);
1677
- };
1700
+ });
1678
1701
 
1679
- _this.onPlayerPlaybackQualityChange = function (event) {
1702
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
1680
1703
  return _this.props.onPlaybackQualityChange(event);
1681
- };
1704
+ });
1682
1705
 
1683
- _this.createPlayer = function () {
1706
+ _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
1684
1707
  // do not attempt to create a player server-side, it won't work
1685
- if (typeof document === 'undefined') return;
1686
- // create player
1687
- var playerOpts = _extends({}, _this.props.opts, {
1708
+ if (typeof document === 'undefined') return; // create player
1709
+
1710
+ var playerOpts = _objectSpread({}, _this.props.opts, {
1688
1711
  // preload the `videoId` video if one is already given
1689
1712
  videoId: _this.props.videoId
1690
1713
  });
1691
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
1692
- // attach event handlers
1714
+
1715
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1716
+
1693
1717
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1718
+
1694
1719
  _this.internalPlayer.on('error', _this.onPlayerError);
1720
+
1695
1721
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1722
+
1696
1723
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1724
+
1697
1725
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1698
- };
1726
+ });
1699
1727
 
1700
- _this.resetPlayer = function () {
1728
+ _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
1701
1729
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1702
- };
1730
+ });
1703
1731
 
1704
- _this.updatePlayer = function () {
1732
+ _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
1705
1733
  _this.internalPlayer.getIframe().then(function (iframe) {
1706
1734
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1707
1735
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1708
1736
  });
1709
- };
1737
+ });
1710
1738
 
1711
- _this.updateVideo = function () {
1739
+ _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
1712
1740
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1713
1741
  _this.internalPlayer.stopVideo();
1742
+
1714
1743
  return;
1715
- }
1744
+ } // set queueing options
1745
+
1716
1746
 
1717
- // set queueing options
1718
1747
  var autoplay = false;
1719
1748
  var opts = {
1720
1749
  videoId: _this.props.videoId
1721
1750
  };
1751
+
1722
1752
  if ('playerVars' in _this.props.opts) {
1723
1753
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1754
+
1724
1755
  if ('start' in _this.props.opts.playerVars) {
1725
1756
  opts.startSeconds = _this.props.opts.playerVars.start;
1726
1757
  }
1758
+
1727
1759
  if ('end' in _this.props.opts.playerVars) {
1728
1760
  opts.endSeconds = _this.props.opts.playerVars.end;
1729
1761
  }
1730
- }
1762
+ } // if autoplay is enabled loadVideoById
1763
+
1731
1764
 
1732
- // if autoplay is enabled loadVideoById
1733
1765
  if (autoplay) {
1734
1766
  _this.internalPlayer.loadVideoById(opts);
1767
+
1735
1768
  return;
1736
- }
1737
- // default behaviour just cues the video
1769
+ } // default behaviour just cues the video
1770
+
1771
+
1738
1772
  _this.internalPlayer.cueVideoById(opts);
1739
- };
1773
+ });
1740
1774
 
1741
- _this.refContainer = function (container) {
1775
+ _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
1742
1776
  _this.container = container;
1743
- };
1777
+ });
1744
1778
 
1745
1779
  _this.container = null;
1746
1780
  _this.internalPlayer = null;
1747
1781
  return _this;
1748
1782
  }
1749
1783
 
1750
- /**
1751
- * Expose PlayerState constants for convenience. These constants can also be
1752
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1753
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1754
- */
1755
-
1756
-
1757
1784
  _createClass(YouTube, [{
1758
- key: 'componentDidMount',
1785
+ key: "componentDidMount",
1759
1786
  value: function componentDidMount() {
1760
1787
  this.createPlayer();
1761
1788
  }
1762
1789
  }, {
1763
- key: 'componentDidUpdate',
1790
+ key: "componentDidUpdate",
1764
1791
  value: function componentDidUpdate(prevProps) {
1765
1792
  if (shouldUpdatePlayer(prevProps, this.props)) {
1766
1793
  this.updatePlayer();
@@ -1775,112 +1802,58 @@ var YouTube = function (_React$Component) {
1775
1802
  }
1776
1803
  }
1777
1804
  }, {
1778
- key: 'componentWillUnmount',
1805
+ key: "componentWillUnmount",
1779
1806
  value: function componentWillUnmount() {
1780
- /**
1781
- * Note: The `youtube-player` package that is used promisifies all Youtube
1782
- * Player API calls, which introduces a delay of a tick before it actually
1783
- * gets destroyed. Since React attempts to remove the element instantly
1784
- * this method isn't quick enough to reset the container element.
1807
+ /**
1808
+ * Note: The `youtube-player` package that is used promisifies all YouTube
1809
+ * Player API calls, which introduces a delay of a tick before it actually
1810
+ * gets destroyed. Since React attempts to remove the element instantly
1811
+ * this method isn't quick enough to reset the container element.
1785
1812
  */
1786
1813
  this.internalPlayer.destroy();
1787
1814
  }
1788
-
1789
- /**
1790
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1791
- *
1792
- * @param {Object} event
1793
- * @param {Object} target - player object
1794
- */
1795
-
1796
-
1797
- /**
1798
- * https://developers.google.com/youtube/iframe_api_reference#onError
1799
- *
1800
- * @param {Object} event
1801
- * @param {Integer} data - error type
1802
- * @param {Object} target - player object
1803
- */
1804
-
1805
-
1806
- /**
1807
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1808
- *
1809
- * @param {Object} event
1810
- * @param {Integer} data - status change type
1811
- * @param {Object} target - actual YT player
1812
- */
1813
-
1814
-
1815
- /**
1816
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
1817
- *
1818
- * @param {Object} event
1819
- * @param {Float} data - playback rate
1820
- * @param {Object} target - actual YT player
1821
- */
1822
-
1823
-
1824
- /**
1825
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
1826
- *
1827
- * @param {Object} event
1828
- * @param {String} data - playback quality
1829
- * @param {Object} target - actual YT player
1830
- */
1831
-
1832
-
1833
- /**
1834
- * Initialize the Youtube Player API on the container and attach event handlers
1835
- */
1836
-
1837
-
1838
- /**
1839
- * Shorthand for destroying and then re-creating the Youtube Player
1840
- */
1841
-
1842
-
1843
- /**
1844
- * Method to update the id and class of the Youtube Player iframe.
1845
- * React should update this automatically but since the Youtube Player API
1846
- * replaced the DIV that is mounted by React we need to do this manually.
1847
- */
1848
-
1849
-
1850
- /**
1851
- * Call Youtube Player API methods to update the currently playing video.
1852
- * Depeding on the `opts.playerVars.autoplay` this function uses one of two
1853
- * Youtube Player API methods to update the video.
1815
+ /**
1816
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
1817
+ *
1818
+ * @param {Object} event
1819
+ * @param {Object} target - player object
1854
1820
  */
1855
1821
 
1856
1822
  }, {
1857
- key: 'render',
1823
+ key: "render",
1858
1824
  value: function render() {
1859
- return React__default.createElement(
1860
- 'div',
1861
- { className: this.props.containerClassName },
1862
- React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
1863
- );
1825
+ return /*#__PURE__*/React__default.createElement("div", {
1826
+ className: this.props.containerClassName
1827
+ }, /*#__PURE__*/React__default.createElement("div", {
1828
+ id: this.props.id,
1829
+ className: this.props.className,
1830
+ ref: this.refContainer
1831
+ }));
1864
1832
  }
1865
1833
  }]);
1866
1834
 
1867
1835
  return YouTube;
1868
1836
  }(React__default.Component);
1869
1837
 
1838
+ _defineProperty(YouTube, "PlayerState", {
1839
+ UNSTARTED: -1,
1840
+ ENDED: 0,
1841
+ PLAYING: 1,
1842
+ PAUSED: 2,
1843
+ BUFFERING: 3,
1844
+ CUED: 5
1845
+ });
1846
+
1870
1847
  YouTube.propTypes = {
1871
1848
  videoId: PropTypes.string,
1872
-
1873
1849
  // custom ID for player element
1874
1850
  id: PropTypes.string,
1875
-
1876
1851
  // custom class name for player element
1877
1852
  className: PropTypes.string,
1878
1853
  // custom class name for player container element
1879
1854
  containerClassName: PropTypes.string,
1880
-
1881
1855
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1882
1856
  opts: PropTypes.objectOf(PropTypes.any),
1883
-
1884
1857
  // event subscriptions
1885
1858
  onReady: PropTypes.func,
1886
1859
  onError: PropTypes.func,
@@ -1892,6 +1865,7 @@ YouTube.propTypes = {
1892
1865
  onPlaybackQualityChange: PropTypes.func
1893
1866
  };
1894
1867
  YouTube.defaultProps = {
1868
+ videoId: null,
1895
1869
  id: null,
1896
1870
  className: null,
1897
1871
  opts: {},
@@ -1905,14 +1879,6 @@ YouTube.defaultProps = {
1905
1879
  onPlaybackRateChange: function onPlaybackRateChange() {},
1906
1880
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1907
1881
  };
1908
- YouTube.PlayerState = {
1909
- UNSTARTED: -1,
1910
- ENDED: 0,
1911
- PLAYING: 1,
1912
- PAUSED: 2,
1913
- BUFFERING: 3,
1914
- CUED: 5
1915
- };
1916
1882
 
1917
1883
  var YouTubePlayer = function YouTubePlayer(_ref) {
1918
1884
  var url = _ref.url;
@@ -2176,7 +2142,7 @@ var Media = function Media(_ref) {
2176
2142
  React__default.createElement(
2177
2143
  LazyLoad,
2178
2144
  { once: true },
2179
- React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
2145
+ React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
2180
2146
  ),
2181
2147
  caption && React__default.createElement(
2182
2148
  Figure$1.Caption,
@@ -2188,7 +2154,7 @@ var Media = function Media(_ref) {
2188
2154
  } else if (caption && caption !== '') {
2189
2155
  return React__default.createElement(
2190
2156
  'a',
2191
- _extends$1({}, uploadDoc.downloadMedia ? {
2157
+ _extends({}, uploadDoc.downloadMedia ? {
2192
2158
  href: uploadDoc.asset.url + '?dl='
2193
2159
  } : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2194
2160
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2241,7 +2207,7 @@ var Video = function Video(_ref) {
2241
2207
  var onVideoSuccess = function onVideoSuccess(success) {
2242
2208
  //console.log('success:', success.ref)
2243
2209
  var player = success.ref;
2244
- if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2210
+ if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2245
2211
  player.ima3.settings.debug = true;
2246
2212
  if (targeting.content_placement && targeting.document_url) {
2247
2213
  player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
@@ -2756,11 +2722,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2756
2722
 
2757
2723
  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; }
2758
2724
 
2759
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2725
+ 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; } } }; }
2726
+
2727
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2728
+
2729
+ 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."); }
2730
+
2731
+ 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); }
2760
2732
 
2761
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2733
+ 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; }
2762
2734
 
2763
- 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; }
2735
+ 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; }
2764
2736
 
2765
2737
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2766
2738
 
@@ -2890,12 +2862,12 @@ function getSDK(url, sdkGlobal) {
2890
2862
 
2891
2863
  function getConfig(props$1, defaultProps, showWarning) {
2892
2864
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
2893
- var _iteratorNormalCompletion = true;
2894
- var _didIteratorError = false;
2895
- var _iteratorError = undefined;
2865
+
2866
+ var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
2867
+ _step;
2896
2868
 
2897
2869
  try {
2898
- for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
2870
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2899
2871
  var p = _step.value;
2900
2872
 
2901
2873
  if (props$1[p]) {
@@ -2910,18 +2882,9 @@ function getConfig(props$1, defaultProps, showWarning) {
2910
2882
  }
2911
2883
  }
2912
2884
  } catch (err) {
2913
- _didIteratorError = true;
2914
- _iteratorError = err;
2885
+ _iterator.e(err);
2915
2886
  } finally {
2916
- try {
2917
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
2918
- _iterator["return"]();
2919
- }
2920
- } finally {
2921
- if (_didIteratorError) {
2922
- throw _iteratorError;
2923
- }
2924
- }
2887
+ _iterator.f();
2925
2888
  }
2926
2889
 
2927
2890
  return config;
@@ -3068,12 +3031,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3068
3031
 
3069
3032
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3070
3033
 
3071
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3034
+ 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); }; }
3072
3035
 
3073
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3036
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3074
3037
 
3075
3038
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3076
3039
 
3040
+ 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; } }
3041
+
3042
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3043
+
3077
3044
  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); }
3078
3045
 
3079
3046
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3082,14 +3049,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3082
3049
 
3083
3050
  var SEEK_ON_PLAY_EXPIRY = 5000;
3084
3051
 
3085
- var Player =
3086
- /*#__PURE__*/
3087
- function (_Component) {
3052
+ var Player = /*#__PURE__*/function (_Component) {
3088
3053
  _inherits(Player, _Component);
3089
3054
 
3090
- function Player() {
3091
- var _getPrototypeOf2;
3055
+ var _super = _createSuper(Player);
3092
3056
 
3057
+ function Player() {
3093
3058
  var _this;
3094
3059
 
3095
3060
  _classCallCheck(this, Player);
@@ -3098,7 +3063,7 @@ function (_Component) {
3098
3063
  _args[_key] = arguments[_key];
3099
3064
  }
3100
3065
 
3101
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3066
+ _this = _super.call.apply(_super, [this].concat(_args));
3102
3067
 
3103
3068
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3104
3069
 
@@ -3423,7 +3388,7 @@ function (_Component) {
3423
3388
  return null;
3424
3389
  }
3425
3390
 
3426
- return _react["default"].createElement(Player, _extends({}, this.props, {
3391
+ return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
3427
3392
  ref: this.ref,
3428
3393
  onReady: this.handleReady,
3429
3394
  onPlay: this.handlePlay,
@@ -3484,12 +3449,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3484
3449
 
3485
3450
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3486
3451
 
3487
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3452
+ 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); }; }
3488
3453
 
3489
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3454
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3490
3455
 
3491
3456
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3492
3457
 
3458
+ 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; } }
3459
+
3460
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3461
+
3493
3462
  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); }
3494
3463
 
3495
3464
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3501,14 +3470,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3501
3470
  function createSinglePlayer(activePlayer) {
3502
3471
  var _class, _temp;
3503
3472
 
3504
- return _temp = _class =
3505
- /*#__PURE__*/
3506
- function (_Component) {
3473
+ return _temp = _class = /*#__PURE__*/function (_Component) {
3507
3474
  _inherits(SinglePlayer, _Component);
3508
3475
 
3509
- function SinglePlayer() {
3510
- var _getPrototypeOf2;
3476
+ var _super = _createSuper(SinglePlayer);
3511
3477
 
3478
+ function SinglePlayer() {
3512
3479
  var _this;
3513
3480
 
3514
3481
  _classCallCheck(this, SinglePlayer);
@@ -3517,7 +3484,7 @@ function createSinglePlayer(activePlayer) {
3517
3484
  args[_key] = arguments[_key];
3518
3485
  }
3519
3486
 
3520
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3487
+ _this = _super.call.apply(_super, [this].concat(args));
3521
3488
 
3522
3489
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3523
3490
 
@@ -3585,12 +3552,12 @@ function createSinglePlayer(activePlayer) {
3585
3552
  height = _this$props.height,
3586
3553
  Wrapper = _this$props.wrapper;
3587
3554
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3588
- return _react["default"].createElement(Wrapper, _extends({
3555
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
3589
3556
  style: _objectSpread({}, style, {
3590
3557
  width: width,
3591
3558
  height: height
3592
3559
  })
3593
- }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3560
+ }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
3594
3561
  ref: this.ref,
3595
3562
  activePlayer: activePlayer,
3596
3563
  config: this.config
@@ -3636,23 +3603,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3636
3603
 
3637
3604
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3638
3605
 
3639
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3606
+ 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); }; }
3640
3607
 
3641
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3608
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3642
3609
 
3643
3610
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3644
3611
 
3612
+ 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; } }
3613
+
3614
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3615
+
3645
3616
  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); }
3646
3617
 
3647
3618
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3648
3619
 
3649
3620
  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; }
3650
3621
 
3651
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3622
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3623
+
3624
+ 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."); }
3625
+
3626
+ 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); }
3652
3627
 
3653
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3628
+ 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; }
3654
3629
 
3655
- 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; }
3630
+ 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; }
3656
3631
 
3657
3632
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3658
3633
 
@@ -3677,14 +3652,12 @@ function parsePlaylist(url) {
3677
3652
  return {};
3678
3653
  }
3679
3654
 
3680
- var YouTube =
3681
- /*#__PURE__*/
3682
- function (_Component) {
3655
+ var YouTube = /*#__PURE__*/function (_Component) {
3683
3656
  _inherits(YouTube, _Component);
3684
3657
 
3685
- function YouTube() {
3686
- var _getPrototypeOf2;
3658
+ var _super = _createSuper(YouTube);
3687
3659
 
3660
+ function YouTube() {
3688
3661
  var _this;
3689
3662
 
3690
3663
  _classCallCheck(this, YouTube);
@@ -3693,7 +3666,7 @@ function (_Component) {
3693
3666
  args[_key] = arguments[_key];
3694
3667
  }
3695
3668
 
3696
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3669
+ _this = _super.call.apply(_super, [this].concat(args));
3697
3670
 
3698
3671
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3699
3672
 
@@ -3881,9 +3854,9 @@ function (_Component) {
3881
3854
  height: '100%',
3882
3855
  display: display
3883
3856
  };
3884
- return _react["default"].createElement("div", {
3857
+ return /*#__PURE__*/_react["default"].createElement("div", {
3885
3858
  style: style
3886
- }, _react["default"].createElement("div", {
3859
+ }, /*#__PURE__*/_react["default"].createElement("div", {
3887
3860
  ref: this.ref
3888
3861
  }));
3889
3862
  }
@@ -3939,12 +3912,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3939
3912
 
3940
3913
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3941
3914
 
3942
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3915
+ 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); }; }
3943
3916
 
3944
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3917
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3945
3918
 
3946
3919
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3947
3920
 
3921
+ 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; } }
3922
+
3923
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3924
+
3948
3925
  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); }
3949
3926
 
3950
3927
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3953,16 +3930,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3953
3930
 
3954
3931
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
3955
3932
  var SDK_GLOBAL = 'SC';
3956
- var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
3933
+ var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
3957
3934
 
3958
- var SoundCloud =
3959
- /*#__PURE__*/
3960
- function (_Component) {
3935
+ var SoundCloud = /*#__PURE__*/function (_Component) {
3961
3936
  _inherits(SoundCloud, _Component);
3962
3937
 
3963
- function SoundCloud() {
3964
- var _getPrototypeOf2;
3938
+ var _super = _createSuper(SoundCloud);
3965
3939
 
3940
+ function SoundCloud() {
3966
3941
  var _this;
3967
3942
 
3968
3943
  _classCallCheck(this, SoundCloud);
@@ -3971,7 +3946,7 @@ function (_Component) {
3971
3946
  args[_key] = arguments[_key];
3972
3947
  }
3973
3948
 
3974
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
3949
+ _this = _super.call.apply(_super, [this].concat(args));
3975
3950
 
3976
3951
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3977
3952
 
@@ -4092,7 +4067,7 @@ function (_Component) {
4092
4067
  height: '100%',
4093
4068
  display: display
4094
4069
  };
4095
- return _react["default"].createElement("iframe", {
4070
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
4096
4071
  ref: this.ref,
4097
4072
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4098
4073
  style: style,
@@ -4154,12 +4129,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4154
4129
 
4155
4130
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4156
4131
 
4157
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4132
+ 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); }; }
4158
4133
 
4159
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4134
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4160
4135
 
4161
4136
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4162
4137
 
4138
+ 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; } }
4139
+
4140
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4141
+
4163
4142
  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); }
4164
4143
 
4165
4144
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4171,14 +4150,12 @@ var SDK_GLOBAL = 'Vimeo';
4171
4150
  var MATCH_URL = /vimeo\.com\/.+/;
4172
4151
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4173
4152
 
4174
- var Vimeo =
4175
- /*#__PURE__*/
4176
- function (_Component) {
4153
+ var Vimeo = /*#__PURE__*/function (_Component) {
4177
4154
  _inherits(Vimeo, _Component);
4178
4155
 
4179
- function Vimeo() {
4180
- var _getPrototypeOf2;
4156
+ var _super = _createSuper(Vimeo);
4181
4157
 
4158
+ function Vimeo() {
4182
4159
  var _this;
4183
4160
 
4184
4161
  _classCallCheck(this, Vimeo);
@@ -4187,7 +4164,7 @@ function (_Component) {
4187
4164
  args[_key] = arguments[_key];
4188
4165
  }
4189
4166
 
4190
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4167
+ _this = _super.call.apply(_super, [this].concat(args));
4191
4168
 
4192
4169
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4193
4170
 
@@ -4344,7 +4321,7 @@ function (_Component) {
4344
4321
  overflow: 'hidden',
4345
4322
  display: display
4346
4323
  };
4347
- return _react["default"].createElement("div", {
4324
+ return /*#__PURE__*/_react["default"].createElement("div", {
4348
4325
  key: this.props.url,
4349
4326
  ref: this.ref,
4350
4327
  style: style
@@ -4404,12 +4381,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4404
4381
 
4405
4382
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4406
4383
 
4407
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4384
+ 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); }; }
4408
4385
 
4409
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4386
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4410
4387
 
4411
4388
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4412
4389
 
4390
+ 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; } }
4391
+
4392
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4393
+
4413
4394
  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); }
4414
4395
 
4415
4396
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4422,14 +4403,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4422
4403
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4423
4404
  var PLAYER_ID_PREFIX = 'facebook-player-';
4424
4405
 
4425
- var Facebook =
4426
- /*#__PURE__*/
4427
- function (_Component) {
4406
+ var Facebook = /*#__PURE__*/function (_Component) {
4428
4407
  _inherits(Facebook, _Component);
4429
4408
 
4430
- function Facebook() {
4431
- var _getPrototypeOf2;
4409
+ var _super = _createSuper(Facebook);
4432
4410
 
4411
+ function Facebook() {
4433
4412
  var _this;
4434
4413
 
4435
4414
  _classCallCheck(this, Facebook);
@@ -4438,7 +4417,7 @@ function (_Component) {
4438
4417
  args[_key] = arguments[_key];
4439
4418
  }
4440
4419
 
4441
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4420
+ _this = _super.call.apply(_super, [this].concat(args));
4442
4421
 
4443
4422
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4444
4423
 
@@ -4554,7 +4533,7 @@ function (_Component) {
4554
4533
  width: '100%',
4555
4534
  height: '100%'
4556
4535
  };
4557
- return _react["default"].createElement("div", {
4536
+ return /*#__PURE__*/_react["default"].createElement("div", {
4558
4537
  style: style,
4559
4538
  id: this.playerID,
4560
4539
  className: "fb-video",
@@ -4614,12 +4593,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4614
4593
 
4615
4594
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4616
4595
 
4617
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4596
+ 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); }; }
4618
4597
 
4619
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4598
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4620
4599
 
4621
4600
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4622
4601
 
4602
+ 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; } }
4603
+
4604
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4605
+
4623
4606
  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); }
4624
4607
 
4625
4608
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4630,14 +4613,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4630
4613
  var SDK_GLOBAL = 'playerjs';
4631
4614
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4632
4615
 
4633
- var Streamable =
4634
- /*#__PURE__*/
4635
- function (_Component) {
4616
+ var Streamable = /*#__PURE__*/function (_Component) {
4636
4617
  _inherits(Streamable, _Component);
4637
4618
 
4638
- function Streamable() {
4639
- var _getPrototypeOf2;
4619
+ var _super = _createSuper(Streamable);
4640
4620
 
4621
+ function Streamable() {
4641
4622
  var _this;
4642
4623
 
4643
4624
  _classCallCheck(this, Streamable);
@@ -4646,7 +4627,7 @@ function (_Component) {
4646
4627
  args[_key] = arguments[_key];
4647
4628
  }
4648
4629
 
4649
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4630
+ _this = _super.call.apply(_super, [this].concat(args));
4650
4631
 
4651
4632
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4652
4633
 
@@ -4766,7 +4747,7 @@ function (_Component) {
4766
4747
  width: '100%',
4767
4748
  height: '100%'
4768
4749
  };
4769
- return _react["default"].createElement("iframe", {
4750
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
4770
4751
  ref: this.ref,
4771
4752
  src: "https://streamable.com/o/".concat(id),
4772
4753
  frameBorder: "0",
@@ -4827,12 +4808,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4827
4808
 
4828
4809
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4829
4810
 
4830
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4811
+ 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); }; }
4831
4812
 
4832
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4813
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4833
4814
 
4834
4815
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4835
4816
 
4817
+ 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; } }
4818
+
4819
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4820
+
4836
4821
  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); }
4837
4822
 
4838
4823
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4843,26 +4828,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
4843
4828
  var SDK_GLOBAL = 'Wistia';
4844
4829
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
4845
4830
 
4846
- var Wistia =
4847
- /*#__PURE__*/
4848
- function (_Component) {
4831
+ var Wistia = /*#__PURE__*/function (_Component) {
4849
4832
  _inherits(Wistia, _Component);
4850
4833
 
4851
- function Wistia() {
4852
- var _getPrototypeOf2;
4834
+ var _super = _createSuper(Wistia);
4853
4835
 
4836
+ function Wistia() {
4854
4837
  var _this;
4855
4838
 
4856
4839
  _classCallCheck(this, Wistia);
4857
4840
 
4858
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4859
- args[_key] = arguments[_key];
4841
+ for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
4842
+ _args[_key] = arguments[_key];
4860
4843
  }
4861
4844
 
4862
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
4845
+ _this = _super.call.apply(_super, [this].concat(_args));
4863
4846
 
4864
4847
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4865
4848
 
4849
+ _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
4850
+ var _this$props;
4851
+
4852
+ return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
4853
+ });
4854
+
4855
+ _defineProperty(_assertThisInitialized(_this), "onPause", function () {
4856
+ var _this$props2;
4857
+
4858
+ return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
4859
+ });
4860
+
4861
+ _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
4862
+ var _this$props3;
4863
+
4864
+ return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
4865
+ });
4866
+
4867
+ _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
4868
+ var _this$props4;
4869
+
4870
+ return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
4871
+ });
4872
+
4866
4873
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
4867
4874
  _this.callPlayer('mute');
4868
4875
  });
@@ -4884,17 +4891,13 @@ function (_Component) {
4884
4891
  value: function load(url) {
4885
4892
  var _this2 = this;
4886
4893
 
4887
- var _this$props = this.props,
4888
- playing = _this$props.playing,
4889
- muted = _this$props.muted,
4890
- controls = _this$props.controls,
4891
- _onReady = _this$props.onReady,
4892
- onPlay = _this$props.onPlay,
4893
- onPause = _this$props.onPause,
4894
- onSeek = _this$props.onSeek,
4895
- onEnded = _this$props.onEnded,
4896
- config = _this$props.config,
4897
- onError = _this$props.onError;
4894
+ var _this$props5 = this.props,
4895
+ playing = _this$props5.playing,
4896
+ muted = _this$props5.muted,
4897
+ controls = _this$props5.controls,
4898
+ _onReady = _this$props5.onReady,
4899
+ config = _this$props5.config,
4900
+ onError = _this$props5.onError;
4898
4901
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
4899
4902
  window._wq = window._wq || [];
4900
4903
 
@@ -4911,19 +4914,28 @@ function (_Component) {
4911
4914
 
4912
4915
  _this2.unbind();
4913
4916
 
4914
- _this2.player.bind('play', onPlay);
4917
+ _this2.player.bind('play', _this2.onPlay);
4915
4918
 
4916
- _this2.player.bind('pause', onPause);
4919
+ _this2.player.bind('pause', _this2.onPause);
4917
4920
 
4918
- _this2.player.bind('seek', onSeek);
4921
+ _this2.player.bind('seek', _this2.onSeek);
4919
4922
 
4920
- _this2.player.bind('end', onEnded);
4923
+ _this2.player.bind('end', _this2.onEnded);
4921
4924
 
4922
4925
  _onReady();
4923
4926
  }
4924
4927
  });
4925
4928
  }, onError);
4926
4929
  }
4930
+ }, {
4931
+ key: "unbind",
4932
+ value: function unbind() {
4933
+ this.player.unbind('play', this.onPlay);
4934
+ this.player.unbind('pause', this.onPause);
4935
+ this.player.unbind('seek', this.onSeek);
4936
+ this.player.unbind('end', this.onEnded);
4937
+ } // Proxy methods to prevent listener leaks
4938
+
4927
4939
  }, {
4928
4940
  key: "play",
4929
4941
  value: function play() {
@@ -4934,19 +4946,6 @@ function (_Component) {
4934
4946
  value: function pause() {
4935
4947
  this.callPlayer('pause');
4936
4948
  }
4937
- }, {
4938
- key: "unbind",
4939
- value: function unbind() {
4940
- var _this$props2 = this.props,
4941
- onPlay = _this$props2.onPlay,
4942
- onPause = _this$props2.onPause,
4943
- onSeek = _this$props2.onSeek,
4944
- onEnded = _this$props2.onEnded;
4945
- this.player.unbind('play', onPlay);
4946
- this.player.unbind('pause', onPause);
4947
- this.player.unbind('seek', onSeek);
4948
- this.player.unbind('end', onEnded);
4949
- }
4950
4949
  }, {
4951
4950
  key: "stop",
4952
4951
  value: function stop() {
@@ -4992,7 +4991,7 @@ function (_Component) {
4992
4991
  width: '100%',
4993
4992
  height: '100%'
4994
4993
  };
4995
- return _react["default"].createElement("div", {
4994
+ return /*#__PURE__*/_react["default"].createElement("div", {
4996
4995
  key: id,
4997
4996
  className: className,
4998
4997
  style: style
@@ -5052,12 +5051,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5052
5051
 
5053
5052
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5054
5053
 
5055
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5054
+ 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); }; }
5056
5055
 
5057
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5056
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5058
5057
 
5059
5058
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5060
5059
 
5060
+ 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; } }
5061
+
5062
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5063
+
5061
5064
  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); }
5062
5065
 
5063
5066
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5070,14 +5073,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5070
5073
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5071
5074
  var PLAYER_ID_PREFIX = 'twitch-player-';
5072
5075
 
5073
- var Twitch =
5074
- /*#__PURE__*/
5075
- function (_Component) {
5076
+ var Twitch = /*#__PURE__*/function (_Component) {
5076
5077
  _inherits(Twitch, _Component);
5077
5078
 
5078
- function Twitch() {
5079
- var _getPrototypeOf2;
5079
+ var _super = _createSuper(Twitch);
5080
5080
 
5081
+ function Twitch() {
5081
5082
  var _this;
5082
5083
 
5083
5084
  _classCallCheck(this, Twitch);
@@ -5086,7 +5087,7 @@ function (_Component) {
5086
5087
  args[_key] = arguments[_key];
5087
5088
  }
5088
5089
 
5089
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5090
+ _this = _super.call.apply(_super, [this].concat(args));
5090
5091
 
5091
5092
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5092
5093
 
@@ -5207,7 +5208,7 @@ function (_Component) {
5207
5208
  width: '100%',
5208
5209
  height: '100%'
5209
5210
  };
5210
- return _react["default"].createElement("div", {
5211
+ return /*#__PURE__*/_react["default"].createElement("div", {
5211
5212
  style: style,
5212
5213
  id: this.playerID
5213
5214
  });
@@ -5260,11 +5261,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5260
5261
 
5261
5262
  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; }
5262
5263
 
5263
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5264
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5265
+
5266
+ 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."); }
5267
+
5268
+ 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); }
5264
5269
 
5265
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5270
+ 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; }
5266
5271
 
5267
- 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; }
5272
+ 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; }
5268
5273
 
5269
5274
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5270
5275
 
@@ -5274,12 +5279,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5274
5279
 
5275
5280
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5276
5281
 
5277
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5282
+ 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); }; }
5278
5283
 
5279
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5284
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5280
5285
 
5281
5286
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5282
5287
 
5288
+ 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; } }
5289
+
5290
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5291
+
5283
5292
  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); }
5284
5293
 
5285
5294
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5291,14 +5300,12 @@ var SDK_GLOBAL = 'DM';
5291
5300
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5292
5301
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5293
5302
 
5294
- var DailyMotion =
5295
- /*#__PURE__*/
5296
- function (_Component) {
5303
+ var DailyMotion = /*#__PURE__*/function (_Component) {
5297
5304
  _inherits(DailyMotion, _Component);
5298
5305
 
5299
- function DailyMotion() {
5300
- var _getPrototypeOf2;
5306
+ var _super = _createSuper(DailyMotion);
5301
5307
 
5308
+ function DailyMotion() {
5302
5309
  var _this;
5303
5310
 
5304
5311
  _classCallCheck(this, DailyMotion);
@@ -5307,7 +5314,7 @@ function (_Component) {
5307
5314
  args[_key] = arguments[_key];
5308
5315
  }
5309
5316
 
5310
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5317
+ _this = _super.call.apply(_super, [this].concat(args));
5311
5318
 
5312
5319
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5313
5320
 
@@ -5436,9 +5443,9 @@ function (_Component) {
5436
5443
  height: '100%',
5437
5444
  display: display
5438
5445
  };
5439
- return _react["default"].createElement("div", {
5446
+ return /*#__PURE__*/_react["default"].createElement("div", {
5440
5447
  style: style
5441
- }, _react["default"].createElement("div", {
5448
+ }, /*#__PURE__*/_react["default"].createElement("div", {
5442
5449
  ref: this.ref
5443
5450
  }));
5444
5451
  }
@@ -5496,12 +5503,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5496
5503
 
5497
5504
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5498
5505
 
5499
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5506
+ 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); }; }
5500
5507
 
5501
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5508
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5502
5509
 
5503
5510
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5504
5511
 
5512
+ 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; } }
5513
+
5514
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5515
+
5505
5516
  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); }
5506
5517
 
5507
5518
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5512,14 +5523,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5512
5523
  var SDK_GLOBAL = 'Mixcloud';
5513
5524
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5514
5525
 
5515
- var Mixcloud =
5516
- /*#__PURE__*/
5517
- function (_Component) {
5526
+ var Mixcloud = /*#__PURE__*/function (_Component) {
5518
5527
  _inherits(Mixcloud, _Component);
5519
5528
 
5520
- function Mixcloud() {
5521
- var _getPrototypeOf2;
5529
+ var _super = _createSuper(Mixcloud);
5522
5530
 
5531
+ function Mixcloud() {
5523
5532
  var _this;
5524
5533
 
5525
5534
  _classCallCheck(this, Mixcloud);
@@ -5528,7 +5537,7 @@ function (_Component) {
5528
5537
  args[_key] = arguments[_key];
5529
5538
  }
5530
5539
 
5531
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5540
+ _this = _super.call.apply(_super, [this].concat(args));
5532
5541
 
5533
5542
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5534
5543
 
@@ -5631,7 +5640,7 @@ function (_Component) {
5631
5640
  })); // We have to give the iframe a key here to prevent a
5632
5641
  // weird dialog appearing when loading a new track
5633
5642
 
5634
- return _react["default"].createElement("iframe", {
5643
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
5635
5644
  key: id,
5636
5645
  ref: this.ref,
5637
5646
  style: style,
@@ -5691,23 +5700,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5691
5700
 
5692
5701
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5693
5702
 
5694
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5703
+ 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); }; }
5695
5704
 
5696
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5705
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5697
5706
 
5698
5707
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5699
5708
 
5709
+ 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; } }
5710
+
5711
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5712
+
5700
5713
  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); }
5701
5714
 
5702
5715
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5703
5716
 
5704
5717
  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; }
5705
5718
 
5719
+ 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; } } }; }
5720
+
5721
+ 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); }
5722
+
5723
+ 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; }
5724
+
5706
5725
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5707
5726
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5708
5727
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5709
5728
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5710
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5729
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
5711
5730
  var HLS_GLOBAL = 'Hls';
5712
5731
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5713
5732
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5716,12 +5735,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5716
5735
 
5717
5736
  function canPlay(url) {
5718
5737
  if (url instanceof Array) {
5719
- var _iteratorNormalCompletion = true;
5720
- var _didIteratorError = false;
5721
- var _iteratorError = undefined;
5738
+ var _iterator = _createForOfIteratorHelper(url),
5739
+ _step;
5722
5740
 
5723
5741
  try {
5724
- for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5742
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
5725
5743
  var item = _step.value;
5726
5744
 
5727
5745
  if (typeof item === 'string' && canPlay(item)) {
@@ -5733,18 +5751,9 @@ function canPlay(url) {
5733
5751
  }
5734
5752
  }
5735
5753
  } catch (err) {
5736
- _didIteratorError = true;
5737
- _iteratorError = err;
5754
+ _iterator.e(err);
5738
5755
  } finally {
5739
- try {
5740
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
5741
- _iterator["return"]();
5742
- }
5743
- } finally {
5744
- if (_didIteratorError) {
5745
- throw _iteratorError;
5746
- }
5747
- }
5756
+ _iterator.f();
5748
5757
  }
5749
5758
 
5750
5759
  return false;
@@ -5768,14 +5777,12 @@ function canEnablePIP(url) {
5768
5777
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5769
5778
  }
5770
5779
 
5771
- var FilePlayer =
5772
- /*#__PURE__*/
5773
- function (_Component) {
5780
+ var FilePlayer = /*#__PURE__*/function (_Component) {
5774
5781
  _inherits(FilePlayer, _Component);
5775
5782
 
5776
- function FilePlayer() {
5777
- var _getPrototypeOf2;
5783
+ var _super = _createSuper(FilePlayer);
5778
5784
 
5785
+ function FilePlayer() {
5779
5786
  var _this;
5780
5787
 
5781
5788
  _classCallCheck(this, FilePlayer);
@@ -5784,7 +5791,7 @@ function (_Component) {
5784
5791
  _args[_key] = arguments[_key];
5785
5792
  }
5786
5793
 
5787
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5794
+ _this = _super.call.apply(_super, [this].concat(_args));
5788
5795
 
5789
5796
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5790
5797
  var _this$props;
@@ -5871,19 +5878,19 @@ function (_Component) {
5871
5878
 
5872
5879
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
5873
5880
  if (typeof source === 'string') {
5874
- return _react["default"].createElement("source", {
5881
+ return /*#__PURE__*/_react["default"].createElement("source", {
5875
5882
  key: index,
5876
5883
  src: source
5877
5884
  });
5878
5885
  }
5879
5886
 
5880
- return _react["default"].createElement("source", _extends({
5887
+ return /*#__PURE__*/_react["default"].createElement("source", _extends({
5881
5888
  key: index
5882
5889
  }, source));
5883
5890
  });
5884
5891
 
5885
5892
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
5886
- return _react["default"].createElement("track", _extends({
5893
+ return /*#__PURE__*/_react["default"].createElement("track", _extends({
5887
5894
  key: index
5888
5895
  }, track));
5889
5896
  });
@@ -5921,6 +5928,10 @@ function (_Component) {
5921
5928
  key: "componentWillUnmount",
5922
5929
  value: function componentWillUnmount() {
5923
5930
  this.removeListeners(this.player);
5931
+
5932
+ if (this.hls) {
5933
+ this.hls.destroy();
5934
+ }
5924
5935
  }
5925
5936
  }, {
5926
5937
  key: "addListeners",
@@ -6051,10 +6062,6 @@ function (_Component) {
6051
6062
  value: function stop() {
6052
6063
  this.player.removeAttribute('src');
6053
6064
 
6054
- if (this.hls) {
6055
- this.hls.destroy();
6056
- }
6057
-
6058
6065
  if (this.dash) {
6059
6066
  this.dash.reset();
6060
6067
  }
@@ -6166,7 +6173,7 @@ function (_Component) {
6166
6173
  width: width === 'auto' ? width : '100%',
6167
6174
  height: height === 'auto' ? height : '100%'
6168
6175
  };
6169
- return _react["default"].createElement(Element, _extends({
6176
+ return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6170
6177
  ref: this.ref,
6171
6178
  src: this.getSource(url),
6172
6179
  style: style,
@@ -6256,12 +6263,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6256
6263
 
6257
6264
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6258
6265
 
6259
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6266
+ 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); }; }
6260
6267
 
6261
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6268
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6262
6269
 
6263
6270
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6264
6271
 
6272
+ 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; } }
6273
+
6274
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6275
+
6265
6276
  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); }
6266
6277
 
6267
6278
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6270,14 +6281,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6270
6281
 
6271
6282
  var ICON_SIZE = '64px';
6272
6283
 
6273
- var Preview =
6274
- /*#__PURE__*/
6275
- function (_Component) {
6284
+ var Preview = /*#__PURE__*/function (_Component) {
6276
6285
  _inherits(Preview, _Component);
6277
6286
 
6278
- function Preview() {
6279
- var _getPrototypeOf2;
6287
+ var _super = _createSuper(Preview);
6280
6288
 
6289
+ function Preview() {
6281
6290
  var _this;
6282
6291
 
6283
6292
  _classCallCheck(this, Preview);
@@ -6286,7 +6295,7 @@ function (_Component) {
6286
6295
  args[_key] = arguments[_key];
6287
6296
  }
6288
6297
 
6289
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6298
+ _this = _super.call.apply(_super, [this].concat(args));
6290
6299
 
6291
6300
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6292
6301
 
@@ -6384,15 +6393,15 @@ function (_Component) {
6384
6393
  }
6385
6394
  };
6386
6395
 
6387
- var defaultPlayIcon = _react["default"].createElement("div", {
6396
+ var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
6388
6397
  style: styles.shadow,
6389
6398
  className: "react-player__shadow"
6390
- }, _react["default"].createElement("div", {
6399
+ }, /*#__PURE__*/_react["default"].createElement("div", {
6391
6400
  style: styles.playIcon,
6392
6401
  className: "react-player__play-icon"
6393
6402
  }));
6394
6403
 
6395
- return _react["default"].createElement("div", {
6404
+ return /*#__PURE__*/_react["default"].createElement("div", {
6396
6405
  style: styles.preview,
6397
6406
  className: "react-player__preview",
6398
6407
  onClick: onClick
@@ -6429,6 +6438,12 @@ var _Player = _interopRequireDefault(Player_1);
6429
6438
 
6430
6439
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6431
6440
 
6441
+ 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; } } }; }
6442
+
6443
+ 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); }
6444
+
6445
+ 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; }
6446
+
6432
6447
  var PRELOAD_PLAYERS = [{
6433
6448
  Player: YouTube_1.YouTube,
6434
6449
  configKey: 'youtube',
@@ -6449,16 +6464,16 @@ var PRELOAD_PLAYERS = [{
6449
6464
 
6450
6465
  function renderPreloadPlayers(url, controls, config) {
6451
6466
  var players = [];
6452
- var _iteratorNormalCompletion = true;
6453
- var _didIteratorError = false;
6454
- var _iteratorError = undefined;
6467
+
6468
+ var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6469
+ _step;
6455
6470
 
6456
6471
  try {
6457
- for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6472
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
6458
6473
  var player = _step.value;
6459
6474
 
6460
6475
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6461
- players.push(_react["default"].createElement(_Player["default"], {
6476
+ players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
6462
6477
  key: player.Player.displayName,
6463
6478
  activePlayer: player.Player,
6464
6479
  url: player.url,
@@ -6470,18 +6485,9 @@ function renderPreloadPlayers(url, controls, config) {
6470
6485
  }
6471
6486
  }
6472
6487
  } catch (err) {
6473
- _didIteratorError = true;
6474
- _iteratorError = err;
6488
+ _iterator.e(err);
6475
6489
  } finally {
6476
- try {
6477
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6478
- _iterator["return"]();
6479
- }
6480
- } finally {
6481
- if (_didIteratorError) {
6482
- throw _iteratorError;
6483
- }
6484
- }
6490
+ _iterator.f();
6485
6491
  }
6486
6492
 
6487
6493
  return players;
@@ -6605,13 +6611,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6605
6611
 
6606
6612
  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); }
6607
6613
 
6608
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6614
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6615
+
6616
+ 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."); }
6617
+
6618
+ 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); }
6609
6619
 
6610
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6620
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6611
6621
 
6612
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6622
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6613
6623
 
6614
- 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; } }
6624
+ 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; }
6615
6625
 
6616
6626
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6617
6627
 
@@ -6619,12 +6629,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6619
6629
 
6620
6630
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6621
6631
 
6622
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6632
+ 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); }; }
6623
6633
 
6624
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6634
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6625
6635
 
6626
6636
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6627
6637
 
6638
+ 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; } }
6639
+
6640
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6641
+
6628
6642
  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); }
6629
6643
 
6630
6644
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6634,14 +6648,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6634
6648
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6635
6649
  var customPlayers = [];
6636
6650
 
6637
- var ReactPlayer =
6638
- /*#__PURE__*/
6639
- function (_Component) {
6651
+ var ReactPlayer = /*#__PURE__*/function (_Component) {
6640
6652
  _inherits(ReactPlayer, _Component);
6641
6653
 
6642
- function ReactPlayer() {
6643
- var _getPrototypeOf2;
6654
+ var _super = _createSuper(ReactPlayer);
6644
6655
 
6656
+ function ReactPlayer() {
6645
6657
  var _this;
6646
6658
 
6647
6659
  _classCallCheck(this, ReactPlayer);
@@ -6650,7 +6662,7 @@ function (_Component) {
6650
6662
  args[_key] = arguments[_key];
6651
6663
  }
6652
6664
 
6653
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6665
+ _this = _super.call.apply(_super, [this].concat(args));
6654
6666
 
6655
6667
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6656
6668
 
@@ -6761,7 +6773,7 @@ function (_Component) {
6761
6773
  key: "renderActivePlayer",
6762
6774
  value: function renderActivePlayer(url, activePlayer) {
6763
6775
  if (!url) return null;
6764
- return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6776
+ return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6765
6777
  key: activePlayer.displayName,
6766
6778
  ref: this.activePlayerRef,
6767
6779
  config: this.config,
@@ -6798,14 +6810,14 @@ function (_Component) {
6798
6810
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
6799
6811
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
6800
6812
 
6801
- var preview = _react["default"].createElement(_Preview["default"], {
6813
+ var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
6802
6814
  url: url,
6803
6815
  light: light,
6804
6816
  playIcon: playIcon,
6805
6817
  onClick: this.handleClickPreview
6806
6818
  });
6807
6819
 
6808
- return _react["default"].createElement(Wrapper, _extends({
6820
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
6809
6821
  ref: this.wrapperRef,
6810
6822
  style: _objectSpread({}, style, {
6811
6823
  width: width,
@@ -7371,7 +7383,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7371
7383
  Videos[series - 1].intro
7372
7384
  )
7373
7385
  ),
7374
- Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7386
+ Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7375
7387
  ),
7376
7388
  React__default.createElement(
7377
7389
  'style',
@@ -8141,7 +8153,7 @@ var MultiMedia = function MultiMedia(props) {
8141
8153
  { xs: 12, md: 12 / medias.length, key: media._key },
8142
8154
  React__default.createElement(
8143
8155
  'a',
8144
- _extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8156
+ _extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
8145
8157
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
8146
8158
  React__default.createElement(
8147
8159
  'div',
@@ -8491,7 +8503,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8491
8503
 
8492
8504
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8493
8505
  if (biography) {
8494
- return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
8506
+ return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8495
8507
  }
8496
8508
  };
8497
8509
 
@@ -8769,7 +8781,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8769
8781
  React__default.createElement(
8770
8782
  'div',
8771
8783
  { className: 'mt-2 mb-2' },
8772
- React__default.createElement(BlockContent, _extends$1({
8784
+ React__default.createElement(BlockContent, _extends({
8773
8785
  serializers: getSerializers,
8774
8786
  videoAccountIDs: accountIDs,
8775
8787
  blocks: article.text,
@@ -9083,7 +9095,7 @@ var MultiFigure = function MultiFigure(props) {
9083
9095
  { xs: 12, md: 12 / images.length, key: index },
9084
9096
  image.link ? React__default.createElement(
9085
9097
  'a',
9086
- _extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9098
+ _extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
9087
9099
  React__default.createElement(
9088
9100
  'div',
9089
9101
  { className: 'multi-figure-image-container' },