@mjhls/mjh-framework 1.0.331 → 1.0.332

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