@mjhls/mjh-framework 1.0.325 → 1.0.327

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-b042a194.js → ADInfeed-d58f7a88.js} +1 -1
  3. package/dist/cjs/{AdSlot-c5bff604.js → AdSlot-c8f07bcf.js} +3 -3
  4. package/dist/cjs/DeckContent.js +18 -18
  5. package/dist/cjs/DeckQueue.js +8 -8
  6. package/dist/cjs/{Dfp-9ede68c7.js → Dfp-fc16f64b.js} +2 -2
  7. package/dist/cjs/{Figure-a47ec3a7.js → Figure-6805ef02.js} +1 -1
  8. package/dist/cjs/{GridContent-9f212ec5.js → GridContent-70d80f27.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-e7423a52.js → Normal-cc2f9b2f.js} +42 -40
  15. package/dist/cjs/PublicationDeck.js +1 -1
  16. package/dist/cjs/QueueDeckExpanded.js +11 -11
  17. package/dist/cjs/{TaxonomyCard-e36602e8.js → TaxonomyCard-0b6bc8db.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-528ad412.js → debounce-ba3eaee2.js} +6 -4
  24. package/dist/cjs/{get-3b23d857.js → get-de2660c3.js} +1 -1
  25. package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
  26. package/dist/cjs/index.js +860 -1220
  27. package/dist/cjs/{inherits-7548e3e8.js → inherits-d1613ef1.js} +1 -1
  28. package/dist/cjs/{main-987c23c6.js → main-6a82a5d2.js} +35 -66
  29. package/dist/cjs/{promise-3b44b2a3.js → promise-60431c75.js} +2 -2
  30. package/dist/cjs/{toConsumableArray-34b5e9a7.js → toConsumableArray-82ec1016.js} +1 -1
  31. package/dist/cjs/{visibility-sensor-c2ccc22d.js → visibility-sensor-b72d9527.js} +2 -4
  32. package/dist/esm/{ADInfeed-aadcfc25.js → ADInfeed-c42432d8.js} +1 -1
  33. package/dist/esm/{AdSlot-8946358f.js → AdSlot-4a85e252.js} +3 -3
  34. package/dist/esm/DeckContent.js +18 -18
  35. package/dist/esm/DeckQueue.js +8 -8
  36. package/dist/esm/{Dfp-9293acfb.js → Dfp-1cde9792.js} +2 -2
  37. package/dist/esm/{Figure-584ac0c8.js → Figure-ddfa279d.js} +1 -1
  38. package/dist/esm/{GridContent-13be42a1.js → GridContent-55e6512a.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-ff7a10ab.js → Normal-63478e2d.js} +42 -40
  45. package/dist/esm/PublicationDeck.js +1 -1
  46. package/dist/esm/QueueDeckExpanded.js +11 -11
  47. package/dist/esm/{TaxonomyCard-89325080.js → TaxonomyCard-c036f1c3.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-702eb224.js → debounce-93ab8f80.js} +6 -4
  54. package/dist/esm/{get-36d03764.js → get-9c285a85.js} +1 -1
  55. package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
  56. package/dist/esm/index.js +863 -1223
  57. package/dist/esm/{inherits-4b85034c.js → inherits-424c89e9.js} +1 -1
  58. package/dist/esm/{main-cb86f95d.js → main-9ae8991d.js} +34 -65
  59. package/dist/esm/{promise-86cb8313.js → promise-e4a5eb9f.js} +2 -2
  60. package/dist/esm/{toConsumableArray-2718dc16.js → toConsumableArray-ec38f5fe.js} +1 -1
  61. package/dist/esm/{visibility-sensor-3cea5efb.js → visibility-sensor-336093e1.js} +2 -4
  62. package/package.json +104 -104
package/dist/esm/index.js CHANGED
@@ -1,37 +1,37 @@
1
1
  import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
2
  import { _ as _objectKeys, a as _toObject, b as _core } from './_to-object-b9b796ec.js';
3
3
  import './web.dom.iterable-7e9bebf9.js';
4
- import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-702eb224.js';
5
- import { m as main_39, a as main_16, b as main_38 } from './main-cb86f95d.js';
6
- import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-2718dc16.js';
4
+ import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-93ab8f80.js';
5
+ import { m as main_36, a as main_16, b as main_35 } from './main-9ae8991d.js';
6
+ import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-ec38f5fe.js';
7
7
  import { _ as _extends$2, a as _Object$assign } from './extends-26d3b609.js';
8
- import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-4b85034c.js';
8
+ import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-424c89e9.js';
9
9
  import React__default, { useState, useRef, useEffect } from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import Container from 'react-bootstrap/Container';
12
12
  import Row from 'react-bootstrap/Row';
13
13
  import Col from 'react-bootstrap/Col';
14
14
  import 'react-bootstrap/Card';
15
- import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-3cea5efb.js';
15
+ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-336093e1.js';
16
16
  import Link from 'next/link';
17
17
  import Router, { useRouter } from 'next/router';
18
18
  import 'react-dom';
19
- import { i as imageUrlBuilder } from './index-51a80699.js';
19
+ import { i as imageUrlBuilder } from './index-73819142.js';
20
20
  import './index-5f9f807a.js';
21
21
  import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
22
22
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-a47a84a4.js';
23
- import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-8946358f.js';
24
- export { D as AdSlot, B as Beam } from './AdSlot-8946358f.js';
25
- import './promise-86cb8313.js';
26
- import './ADInfeed-aadcfc25.js';
23
+ import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-4a85e252.js';
24
+ export { D as AdSlot, B as Beam } from './AdSlot-4a85e252.js';
25
+ import './promise-e4a5eb9f.js';
26
+ import './ADInfeed-c42432d8.js';
27
27
  export { default as DeckContent } from './DeckContent.js';
28
- import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-36d03764.js';
29
- export { A as AD, G as GridContent } from './GridContent-13be42a1.js';
28
+ import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-9c285a85.js';
29
+ export { A as AD, G as GridContent } from './GridContent-55e6512a.js';
30
30
  export { default as DeckQueue } from './DeckQueue.js';
31
31
  import 'react-bootstrap/Media';
32
32
  export { default as ThumbnailCard } from './ThumbnailCard.js';
33
- import { B as BlockContent } from './TaxonomyCard-89325080.js';
34
- export { T as TaxonomyCard } from './TaxonomyCard-89325080.js';
33
+ import { B as BlockContent } from './TaxonomyCard-c036f1c3.js';
34
+ export { T as TaxonomyCard } from './TaxonomyCard-c036f1c3.js';
35
35
  import './react-social-icons-a7d5c5c7.js';
36
36
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
37
37
  import GroupDeck from './GroupDeck.js';
@@ -48,8 +48,8 @@ export { default as IssueDeck } from './IssueDeck.js';
48
48
  import 'react-bootstrap/Badge';
49
49
  export { default as IssueContentDeck } from './IssueContentDeck.js';
50
50
  import Spinner from 'react-bootstrap/Spinner';
51
- import { M as MdPictureAsPdf } from './Normal-ff7a10ab.js';
52
- export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-ff7a10ab.js';
51
+ import { M as MdPictureAsPdf } from './Normal-63478e2d.js';
52
+ export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-63478e2d.js';
53
53
  import 'react-bootstrap/ListGroup';
54
54
  import Head from 'next/head';
55
55
  import Accordion from 'react-bootstrap/Accordion';
@@ -71,6 +71,7 @@ export { U as Ustream } from './Ustream-d8cc3cbd.js';
71
71
  import useSWR from 'swr';
72
72
  import Local from 'passport-local';
73
73
  import mysql from 'mysql';
74
+ import md5 from 'md5';
74
75
 
75
76
  var momentTimezone = createCommonjsModule(function (module) {
76
77
  //! moment-timezone.js
@@ -2150,7 +2151,7 @@ var EventsDeck = function EventsDeck(_ref) {
2150
2151
  )
2151
2152
  )
2152
2153
  ),
2153
- main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2154
+ main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2154
2155
  'div',
2155
2156
  { style: { margin: '0 auto' } },
2156
2157
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2541,7 +2542,7 @@ var CMEDeck = function CMEDeck(_ref) {
2541
2542
  )
2542
2543
  )
2543
2544
  ),
2544
- main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2545
+ main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2545
2546
  'div',
2546
2547
  { style: { margin: '0 auto' } },
2547
2548
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2830,7 +2831,7 @@ var AD300x250 = function AD300x250(_ref) {
2830
2831
  pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
2831
2832
 
2832
2833
  var mobileView = false;
2833
- if (main_39) {
2834
+ if (main_36) {
2834
2835
  pos = 'rect1-mobile';
2835
2836
  mobileView = true;
2836
2837
  }
@@ -2841,7 +2842,9 @@ var AD300x250 = function AD300x250(_ref) {
2841
2842
  document_group: targeting.document_group,
2842
2843
  document_url: targeting.document_url,
2843
2844
  pos: pos,
2844
- campaign_id: targeting.campaign_id
2845
+ campaign_id: targeting.campaign_id,
2846
+ issue_url: targeting.issue_url,
2847
+ publication_url: targeting.publication_url
2845
2848
  };
2846
2849
 
2847
2850
  var browserSizes = [[300, 250], [300, 100]];
@@ -2860,7 +2863,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2860
2863
  pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
2861
2864
 
2862
2865
  var mobileView = false;
2863
- if (main_39) {
2866
+ if (main_36) {
2864
2867
  pos = 'rect2-mobile';
2865
2868
  mobileView = true;
2866
2869
  }
@@ -2871,7 +2874,9 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2871
2874
  document_group: targeting.document_group,
2872
2875
  document_url: targeting.document_url,
2873
2876
  pos: pos,
2874
- campaign_id: targeting.campaign_id
2877
+ campaign_id: targeting.campaign_id,
2878
+ issue_url: targeting.issue_url,
2879
+ publication_url: targeting.publication_url
2875
2880
  };
2876
2881
 
2877
2882
  var browserSizes = [[300, 250], [300, 600], [300, 100]];
@@ -2951,17 +2956,19 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
2951
2956
  document_group: targeting.document_group,
2952
2957
  document_url: targeting.document_url,
2953
2958
  pos: position,
2954
- campaign_id: targeting.campaign_id
2959
+ campaign_id: targeting.campaign_id,
2960
+ issue_url: targeting.issue_url,
2961
+ publication_url: targeting.publication_url
2955
2962
  };
2956
2963
 
2957
- var _useState = useState(true),
2964
+ var _useState = useState(false),
2958
2965
  _useState2 = _slicedToArray(_useState, 2),
2959
2966
  widthFlag = _useState2[0],
2960
2967
  setWidthFlag = _useState2[1];
2961
2968
 
2962
2969
  useEffect(function () {
2963
- if (window && window.innerWidth < minScreenWidth) {
2964
- setWidthFlag(false);
2970
+ if (window && window.innerWidth > minScreenWidth) {
2971
+ setWidthFlag(true);
2965
2972
  }
2966
2973
  }, [minScreenWidth]);
2967
2974
 
@@ -3034,7 +3041,9 @@ var ADGutter = function ADGutter(_ref) {
3034
3041
  document_group: targeting.document_group,
3035
3042
  document_url: targeting.document_url,
3036
3043
  pos: position,
3037
- campaign_id: targeting.campaign_id
3044
+ campaign_id: targeting.campaign_id,
3045
+ issue_url: targeting.issue_url,
3046
+ publication_url: targeting.publication_url
3038
3047
  };
3039
3048
 
3040
3049
  var _useState = useState(false),
@@ -3092,7 +3101,9 @@ var ADWelcome = function ADWelcome(_ref) {
3092
3101
  document_group: targeting.document_group,
3093
3102
  document_url: targeting.document_url,
3094
3103
  pos: position,
3095
- campaign_id: targeting.campaign_id
3104
+ campaign_id: targeting.campaign_id,
3105
+ issue_url: targeting.issue_url,
3106
+ publication_url: targeting.publication_url
3096
3107
  };
3097
3108
 
3098
3109
  var calculateTimeLeft = function calculateTimeLeft(timeLeft) {
@@ -3201,7 +3212,9 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
3201
3212
  document_group: targeting.document_group,
3202
3213
  document_url: targeting.document_url,
3203
3214
  pos: position,
3204
- campaign_id: targeting.campaign_id
3215
+ campaign_id: targeting.campaign_id,
3216
+ issue_url: targeting.issue_url,
3217
+ publication_url: targeting.publication_url
3205
3218
  };
3206
3219
 
3207
3220
  return React__default.createElement(
@@ -3282,18 +3295,21 @@ var Slideshow = function Slideshow(_ref) {
3282
3295
  );
3283
3296
  };
3284
3297
 
3285
- // do not edit .js files directly - edit src/index.jst
3286
-
3287
-
3298
+ var isArray = Array.isArray;
3299
+ var keyList = Object.keys;
3300
+ var hasProp = Object.prototype.hasOwnProperty;
3288
3301
 
3289
3302
  var fastDeepEqual = function equal(a, b) {
3290
3303
  if (a === b) return true;
3291
3304
 
3292
3305
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3293
- if (a.constructor !== b.constructor) return false;
3306
+ var arrA = isArray(a)
3307
+ , arrB = isArray(b)
3308
+ , i
3309
+ , length
3310
+ , key;
3294
3311
 
3295
- var length, i, keys;
3296
- if (Array.isArray(a)) {
3312
+ if (arrA && arrB) {
3297
3313
  length = a.length;
3298
3314
  if (length != b.length) return false;
3299
3315
  for (i = length; i-- !== 0;)
@@ -3301,29 +3317,35 @@ var fastDeepEqual = function equal(a, b) {
3301
3317
  return true;
3302
3318
  }
3303
3319
 
3320
+ if (arrA != arrB) return false;
3304
3321
 
3322
+ var dateA = a instanceof Date
3323
+ , dateB = b instanceof Date;
3324
+ if (dateA != dateB) return false;
3325
+ if (dateA && dateB) return a.getTime() == b.getTime();
3305
3326
 
3306
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3307
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3308
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3327
+ var regexpA = a instanceof RegExp
3328
+ , regexpB = b instanceof RegExp;
3329
+ if (regexpA != regexpB) return false;
3330
+ if (regexpA && regexpB) return a.toString() == b.toString();
3309
3331
 
3310
- keys = Object.keys(a);
3332
+ var keys = keyList(a);
3311
3333
  length = keys.length;
3312
- if (length !== Object.keys(b).length) return false;
3334
+
3335
+ if (length !== keyList(b).length)
3336
+ return false;
3313
3337
 
3314
3338
  for (i = length; i-- !== 0;)
3315
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3339
+ if (!hasProp.call(b, keys[i])) return false;
3316
3340
 
3317
3341
  for (i = length; i-- !== 0;) {
3318
- var key = keys[i];
3319
-
3342
+ key = keys[i];
3320
3343
  if (!equal(a[key], b[key])) return false;
3321
3344
  }
3322
3345
 
3323
3346
  return true;
3324
3347
  }
3325
3348
 
3326
- // true if both NaN, false otherwise
3327
3349
  return a!==a && b!==b;
3328
3350
  };
3329
3351
 
@@ -4346,7 +4368,7 @@ function formatValue(ctx, value, recurseTimes) {
4346
4368
  var base = '', array = false, braces = ['{', '}'];
4347
4369
 
4348
4370
  // Make Array say that they are Array
4349
- if (isArray(value)) {
4371
+ if (isArray$1(value)) {
4350
4372
  array = true;
4351
4373
  braces = ['[', ']'];
4352
4374
  }
@@ -4525,7 +4547,7 @@ function reduceToSingleString(output, base, braces) {
4525
4547
 
4526
4548
  // NOTE: These type checking functions intentionally don't use `instanceof`
4527
4549
  // because it is fragile and can be easily faked with `Object.create()`.
4528
- function isArray(ar) {
4550
+ function isArray$1(ar) {
4529
4551
  return Array.isArray(ar);
4530
4552
  }
4531
4553
 
@@ -4652,7 +4674,7 @@ var util = {
4652
4674
  isNullOrUndefined: isNullOrUndefined,
4653
4675
  isNull: isNull,
4654
4676
  isBoolean: isBoolean,
4655
- isArray: isArray,
4677
+ isArray: isArray$1,
4656
4678
  inspect: inspect,
4657
4679
  deprecate: deprecate,
4658
4680
  format: format,
@@ -5319,235 +5341,199 @@ module.exports = exports['default'];
5319
5341
 
5320
5342
  var youTubePlayer = unwrapExports(dist);
5321
5343
 
5322
- 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); }
5323
-
5324
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5325
-
5326
- 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); } }
5327
-
5328
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5329
-
5330
- 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); }; }
5344
+ 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; }; }();
5331
5345
 
5332
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5333
-
5334
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5335
-
5336
- 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; } }
5337
-
5338
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5339
-
5340
- 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); }
5346
+ 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; };
5341
5347
 
5342
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5348
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5343
5349
 
5344
- 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; }
5350
+ 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; }
5345
5351
 
5346
- 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; }
5352
+ 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; }
5347
5353
 
5348
- 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; }
5349
- /**
5350
- * Check whether a `props` change should result in the video being updated.
5351
- *
5352
- * @param {Object} prevProps
5353
- * @param {Object} props
5354
+ /**
5355
+ * Check whether a `props` change should result in the video being updated.
5356
+ *
5357
+ * @param {Object} prevProps
5358
+ * @param {Object} props
5354
5359
  */
5355
-
5356
5360
  function shouldUpdateVideo(prevProps, props) {
5357
5361
  // A changing video should always trigger an update
5358
5362
  if (prevProps.videoId !== props.videoId) {
5359
5363
  return true;
5360
- } // Otherwise, a change in the start/end time playerVars also requires a player
5361
- // update.
5362
-
5364
+ }
5363
5365
 
5366
+ // Otherwise, a change in the start/end time playerVars also requires a player
5367
+ // update.
5364
5368
  var prevVars = prevProps.opts.playerVars || {};
5365
5369
  var vars = props.opts.playerVars || {};
5370
+
5366
5371
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5367
5372
  }
5368
- /**
5369
- * Neutralize API options that only require a video update, leaving only options
5370
- * that require a player reset. The results can then be compared to see if a
5371
- * player reset is necessary.
5372
- *
5373
- * @param {Object} opts
5374
- */
5375
-
5376
5373
 
5374
+ /**
5375
+ * Neutralise API options that only require a video update, leaving only options
5376
+ * that require a player reset. The results can then be compared to see if a
5377
+ * player reset is necessary.
5378
+ *
5379
+ * @param {Object} opts
5380
+ */
5377
5381
  function filterResetOptions(opts) {
5378
- return _objectSpread({}, opts, {
5379
- playerVars: _objectSpread({}, opts.playerVars, {
5382
+ return _extends({}, opts, {
5383
+ playerVars: _extends({}, opts.playerVars, {
5380
5384
  autoplay: 0,
5381
5385
  start: 0,
5382
5386
  end: 0
5383
5387
  })
5384
5388
  });
5385
5389
  }
5386
- /**
5387
- * Check whether a `props` change should result in the player being reset.
5388
- * The player is reset when the `props.opts` change, except if the only change
5389
- * is in the `start` and `end` playerVars, because a video update can deal with
5390
- * those.
5391
- *
5392
- * @param {Object} prevProps
5393
- * @param {Object} props
5394
- */
5395
-
5396
5390
 
5391
+ /**
5392
+ * Check whether a `props` change should result in the player being reset.
5393
+ * The player is reset when the `props.opts` change, except if the only change
5394
+ * is in the `start` and `end` playerVars, because a video update can deal with
5395
+ * those.
5396
+ *
5397
+ * @param {Object} prevProps
5398
+ * @param {Object} props
5399
+ */
5397
5400
  function shouldResetPlayer(prevProps, props) {
5398
5401
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5399
5402
  }
5400
- /**
5401
- * Check whether a props change should result in an id or className update.
5402
- *
5403
- * @param {Object} prevProps
5404
- * @param {Object} props
5405
- */
5406
-
5407
5403
 
5404
+ /**
5405
+ * Check whether a props change should result in an id or className update.
5406
+ *
5407
+ * @param {Object} prevProps
5408
+ * @param {Object} props
5409
+ */
5408
5410
  function shouldUpdatePlayer(prevProps, props) {
5409
5411
  return prevProps.id !== props.id || prevProps.className !== props.className;
5410
5412
  }
5411
5413
 
5412
- var YouTube = /*#__PURE__*/function (_React$Component) {
5414
+ var YouTube = function (_React$Component) {
5413
5415
  _inherits(YouTube, _React$Component);
5414
5416
 
5415
- var _super = _createSuper(YouTube);
5416
-
5417
- /**
5418
- * Expose PlayerState constants for convenience. These constants can also be
5419
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5420
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5421
- */
5422
5417
  function YouTube(props) {
5423
- var _this;
5424
-
5425
5418
  _classCallCheck(this, YouTube);
5426
5419
 
5427
- _this = _super.call(this, props);
5420
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5428
5421
 
5429
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5422
+ _this.onPlayerReady = function (event) {
5430
5423
  return _this.props.onReady(event);
5431
- });
5424
+ };
5432
5425
 
5433
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5426
+ _this.onPlayerError = function (event) {
5434
5427
  return _this.props.onError(event);
5435
- });
5428
+ };
5436
5429
 
5437
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5430
+ _this.onPlayerStateChange = function (event) {
5438
5431
  _this.props.onStateChange(event);
5439
-
5440
5432
  switch (event.data) {
5433
+
5441
5434
  case YouTube.PlayerState.ENDED:
5442
5435
  _this.props.onEnd(event);
5443
-
5444
5436
  break;
5445
5437
 
5446
5438
  case YouTube.PlayerState.PLAYING:
5447
5439
  _this.props.onPlay(event);
5448
-
5449
5440
  break;
5450
5441
 
5451
5442
  case YouTube.PlayerState.PAUSED:
5452
5443
  _this.props.onPause(event);
5453
-
5454
5444
  break;
5455
5445
  }
5456
- });
5446
+ };
5457
5447
 
5458
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5448
+ _this.onPlayerPlaybackRateChange = function (event) {
5459
5449
  return _this.props.onPlaybackRateChange(event);
5460
- });
5450
+ };
5461
5451
 
5462
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5452
+ _this.onPlayerPlaybackQualityChange = function (event) {
5463
5453
  return _this.props.onPlaybackQualityChange(event);
5464
- });
5454
+ };
5465
5455
 
5466
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5456
+ _this.createPlayer = function () {
5467
5457
  // do not attempt to create a player server-side, it won't work
5468
- if (typeof document === 'undefined') return; // create player
5469
-
5470
- var playerOpts = _objectSpread({}, _this.props.opts, {
5458
+ if (typeof document === 'undefined') return;
5459
+ // create player
5460
+ var playerOpts = _extends({}, _this.props.opts, {
5471
5461
  // preload the `videoId` video if one is already given
5472
5462
  videoId: _this.props.videoId
5473
5463
  });
5474
-
5475
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5476
-
5464
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5465
+ // attach event handlers
5477
5466
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5478
-
5479
5467
  _this.internalPlayer.on('error', _this.onPlayerError);
5480
-
5481
5468
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5482
-
5483
5469
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5484
-
5485
5470
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5486
- });
5471
+ };
5487
5472
 
5488
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5473
+ _this.resetPlayer = function () {
5489
5474
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5490
- });
5475
+ };
5491
5476
 
5492
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5477
+ _this.updatePlayer = function () {
5493
5478
  _this.internalPlayer.getIframe().then(function (iframe) {
5494
5479
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5495
5480
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5496
5481
  });
5497
- });
5482
+ };
5498
5483
 
5499
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5484
+ _this.updateVideo = function () {
5500
5485
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5501
5486
  _this.internalPlayer.stopVideo();
5502
-
5503
5487
  return;
5504
- } // set queueing options
5505
-
5488
+ }
5506
5489
 
5490
+ // set queueing options
5507
5491
  var autoplay = false;
5508
5492
  var opts = {
5509
5493
  videoId: _this.props.videoId
5510
5494
  };
5511
-
5512
5495
  if ('playerVars' in _this.props.opts) {
5513
5496
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5514
-
5515
5497
  if ('start' in _this.props.opts.playerVars) {
5516
5498
  opts.startSeconds = _this.props.opts.playerVars.start;
5517
5499
  }
5518
-
5519
5500
  if ('end' in _this.props.opts.playerVars) {
5520
5501
  opts.endSeconds = _this.props.opts.playerVars.end;
5521
5502
  }
5522
- } // if autoplay is enabled loadVideoById
5523
-
5503
+ }
5524
5504
 
5505
+ // if autoplay is enabled loadVideoById
5525
5506
  if (autoplay) {
5526
5507
  _this.internalPlayer.loadVideoById(opts);
5527
-
5528
5508
  return;
5529
- } // default behaviour just cues the video
5530
-
5531
-
5509
+ }
5510
+ // default behaviour just cues the video
5532
5511
  _this.internalPlayer.cueVideoById(opts);
5533
- });
5512
+ };
5534
5513
 
5535
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5514
+ _this.refContainer = function (container) {
5536
5515
  _this.container = container;
5537
- });
5516
+ };
5538
5517
 
5539
5518
  _this.container = null;
5540
5519
  _this.internalPlayer = null;
5541
5520
  return _this;
5542
5521
  }
5543
5522
 
5523
+ /**
5524
+ * Expose PlayerState constants for convenience. These constants can also be
5525
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5526
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5527
+ */
5528
+
5529
+
5544
5530
  _createClass(YouTube, [{
5545
- key: "componentDidMount",
5531
+ key: 'componentDidMount',
5546
5532
  value: function componentDidMount() {
5547
5533
  this.createPlayer();
5548
5534
  }
5549
5535
  }, {
5550
- key: "componentDidUpdate",
5536
+ key: 'componentDidUpdate',
5551
5537
  value: function componentDidUpdate(prevProps) {
5552
5538
  if (shouldUpdatePlayer(prevProps, this.props)) {
5553
5539
  this.updatePlayer();
@@ -5562,58 +5548,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
5562
5548
  }
5563
5549
  }
5564
5550
  }, {
5565
- key: "componentWillUnmount",
5551
+ key: 'componentWillUnmount',
5566
5552
  value: function componentWillUnmount() {
5567
- /**
5568
- * Note: The `youtube-player` package that is used promisifies all YouTube
5569
- * Player API calls, which introduces a delay of a tick before it actually
5570
- * gets destroyed. Since React attempts to remove the element instantly
5571
- * this method isn't quick enough to reset the container element.
5553
+ /**
5554
+ * Note: The `youtube-player` package that is used promisifies all Youtube
5555
+ * Player API calls, which introduces a delay of a tick before it actually
5556
+ * gets destroyed. Since React attempts to remove the element instantly
5557
+ * this method isn't quick enough to reset the container element.
5572
5558
  */
5573
5559
  this.internalPlayer.destroy();
5574
5560
  }
5575
- /**
5576
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5577
- *
5578
- * @param {Object} event
5579
- * @param {Object} target - player object
5561
+
5562
+ /**
5563
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5564
+ *
5565
+ * @param {Object} event
5566
+ * @param {Object} target - player object
5567
+ */
5568
+
5569
+
5570
+ /**
5571
+ * https://developers.google.com/youtube/iframe_api_reference#onError
5572
+ *
5573
+ * @param {Object} event
5574
+ * @param {Integer} data - error type
5575
+ * @param {Object} target - player object
5576
+ */
5577
+
5578
+
5579
+ /**
5580
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5581
+ *
5582
+ * @param {Object} event
5583
+ * @param {Integer} data - status change type
5584
+ * @param {Object} target - actual YT player
5585
+ */
5586
+
5587
+
5588
+ /**
5589
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5590
+ *
5591
+ * @param {Object} event
5592
+ * @param {Float} data - playback rate
5593
+ * @param {Object} target - actual YT player
5594
+ */
5595
+
5596
+
5597
+ /**
5598
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5599
+ *
5600
+ * @param {Object} event
5601
+ * @param {String} data - playback quality
5602
+ * @param {Object} target - actual YT player
5603
+ */
5604
+
5605
+
5606
+ /**
5607
+ * Initialize the Youtube Player API on the container and attach event handlers
5608
+ */
5609
+
5610
+
5611
+ /**
5612
+ * Shorthand for destroying and then re-creating the Youtube Player
5613
+ */
5614
+
5615
+
5616
+ /**
5617
+ * Method to update the id and class of the Youtube Player iframe.
5618
+ * React should update this automatically but since the Youtube Player API
5619
+ * replaced the DIV that is mounted by React we need to do this manually.
5620
+ */
5621
+
5622
+
5623
+ /**
5624
+ * Call Youtube Player API methods to update the currently playing video.
5625
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5626
+ * Youtube Player API methods to update the video.
5580
5627
  */
5581
5628
 
5582
5629
  }, {
5583
- key: "render",
5630
+ key: 'render',
5584
5631
  value: function render() {
5585
- return /*#__PURE__*/React__default.createElement("div", {
5586
- className: this.props.containerClassName
5587
- }, /*#__PURE__*/React__default.createElement("div", {
5588
- id: this.props.id,
5589
- className: this.props.className,
5590
- ref: this.refContainer
5591
- }));
5632
+ return React__default.createElement(
5633
+ 'div',
5634
+ { className: this.props.containerClassName },
5635
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5636
+ );
5592
5637
  }
5593
5638
  }]);
5594
5639
 
5595
5640
  return YouTube;
5596
5641
  }(React__default.Component);
5597
5642
 
5598
- _defineProperty(YouTube, "PlayerState", {
5599
- UNSTARTED: -1,
5600
- ENDED: 0,
5601
- PLAYING: 1,
5602
- PAUSED: 2,
5603
- BUFFERING: 3,
5604
- CUED: 5
5605
- });
5606
-
5607
5643
  YouTube.propTypes = {
5608
5644
  videoId: PropTypes.string,
5645
+
5609
5646
  // custom ID for player element
5610
5647
  id: PropTypes.string,
5648
+
5611
5649
  // custom class name for player element
5612
5650
  className: PropTypes.string,
5613
5651
  // custom class name for player container element
5614
5652
  containerClassName: PropTypes.string,
5653
+
5615
5654
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5616
5655
  opts: PropTypes.objectOf(PropTypes.any),
5656
+
5617
5657
  // event subscriptions
5618
5658
  onReady: PropTypes.func,
5619
5659
  onError: PropTypes.func,
@@ -5625,7 +5665,6 @@ YouTube.propTypes = {
5625
5665
  onPlaybackQualityChange: PropTypes.func
5626
5666
  };
5627
5667
  YouTube.defaultProps = {
5628
- videoId: null,
5629
5668
  id: null,
5630
5669
  className: null,
5631
5670
  opts: {},
@@ -5639,6 +5678,14 @@ YouTube.defaultProps = {
5639
5678
  onPlaybackRateChange: function onPlaybackRateChange() {},
5640
5679
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5641
5680
  };
5681
+ YouTube.PlayerState = {
5682
+ UNSTARTED: -1,
5683
+ ENDED: 0,
5684
+ PLAYING: 1,
5685
+ PAUSED: 2,
5686
+ BUFFERING: 3,
5687
+ CUED: 5
5688
+ };
5642
5689
 
5643
5690
  var YouTubePlayer = function YouTubePlayer(_ref) {
5644
5691
  var url = _ref.url;
@@ -6662,8 +6709,8 @@ var window_1 = win;
6662
6709
 
6663
6710
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6664
6711
 
6665
- function _extends() {
6666
- _extends = Object.assign || function (target) {
6712
+ function _extends$1() {
6713
+ _extends$1 = Object.assign || function (target) {
6667
6714
  for (var i = 1; i < arguments.length; i++) {
6668
6715
  var source = arguments[i];
6669
6716
 
@@ -6677,7 +6724,7 @@ function _extends() {
6677
6724
  return target;
6678
6725
  };
6679
6726
 
6680
- return _extends.apply(this, arguments);
6727
+ return _extends$1.apply(this, arguments);
6681
6728
  }
6682
6729
 
6683
6730
  function _inheritsLoose(subClass, superClass) {
@@ -6686,7 +6733,7 @@ function _inheritsLoose(subClass, superClass) {
6686
6733
  subClass.__proto__ = superClass;
6687
6734
  }
6688
6735
 
6689
- function _assertThisInitialized$1(self) {
6736
+ function _assertThisInitialized(self) {
6690
6737
  if (self === void 0) {
6691
6738
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6692
6739
  }
@@ -6696,8 +6743,8 @@ function _assertThisInitialized$1(self) {
6696
6743
 
6697
6744
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6698
6745
 
6699
- function _extends$1() {
6700
- _extends$1 = Object.assign || function (target) {
6746
+ function _extends$1$1() {
6747
+ _extends$1$1 = Object.assign || function (target) {
6701
6748
  for (var i = 1; i < arguments.length; i++) {
6702
6749
  var source = arguments[i];
6703
6750
 
@@ -6711,7 +6758,7 @@ function _extends$1() {
6711
6758
  return target;
6712
6759
  };
6713
6760
 
6714
- return _extends$1.apply(this, arguments);
6761
+ return _extends$1$1.apply(this, arguments);
6715
6762
  }
6716
6763
 
6717
6764
  var version$1 = "1.7.1";
@@ -6719,7 +6766,7 @@ var version$1 = "1.7.1";
6719
6766
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6720
6767
  var version$1$1 = "1.2.0";
6721
6768
 
6722
- var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6769
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6723
6770
  return typeof obj;
6724
6771
  } : function (obj) {
6725
6772
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6854,7 +6901,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6854
6901
 
6855
6902
  var qs = '';
6856
6903
 
6857
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6904
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6858
6905
  qs = getQueryString(queryParams);
6859
6906
  }
6860
6907
 
@@ -7088,7 +7135,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
7088
7135
  el.style.width = '100%';
7089
7136
  el.style.height = '100%';
7090
7137
 
7091
- var responsive = _extends$1({
7138
+ var responsive = _extends$1$1({
7092
7139
  aspectRatio: DEFAULT_ASPECT_RATIO,
7093
7140
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
7094
7141
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7773,7 +7820,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7773
7820
 
7774
7821
 
7775
7822
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7776
- var params = _extends$1({}, DEFAULTS, parameters);
7823
+ var params = _extends$1$1({}, DEFAULTS, parameters);
7777
7824
 
7778
7825
  var Promise = params.Promise,
7779
7826
  onSuccess = params.onSuccess,
@@ -7915,7 +7962,7 @@ function (_React$Component) {
7915
7962
  _this.refNode = ref;
7916
7963
  };
7917
7964
 
7918
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7965
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7919
7966
  return _this;
7920
7967
  }
7921
7968
  /**
@@ -7936,7 +7983,7 @@ function (_React$Component) {
7936
7983
  var userSuccess = this.props.onSuccess;
7937
7984
  var userFailure = this.props.onFailure;
7938
7985
 
7939
- var options = _extends({}, this.props, {
7986
+ var options = _extends$1({}, this.props, {
7940
7987
  refNode: this.refNode,
7941
7988
  refNodeInsert: 'append',
7942
7989
  onSuccess: function onSuccess(_ref) {
@@ -8245,7 +8292,7 @@ function (_React$Component) {
8245
8292
  ;
8246
8293
 
8247
8294
  _proto.render = function render() {
8248
- var props = _extends({
8295
+ var props = _extends$1({
8249
8296
  className: 'brightcove-react-player-loader'
8250
8297
  }, this.props.attrs, {
8251
8298
  ref: this.setRefNode
@@ -8661,17 +8708,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8661
8708
 
8662
8709
  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; }
8663
8710
 
8664
- 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; } } }; }
8665
-
8666
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8667
-
8668
- 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."); }
8669
-
8670
- 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); }
8711
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8671
8712
 
8672
- 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
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8673
8714
 
8674
- 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; }
8715
+ 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; }
8675
8716
 
8676
8717
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8677
8718
 
@@ -8801,12 +8842,12 @@ function getSDK(url, sdkGlobal) {
8801
8842
 
8802
8843
  function getConfig(props$1, defaultProps, showWarning) {
8803
8844
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8804
-
8805
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8806
- _step;
8845
+ var _iteratorNormalCompletion = true;
8846
+ var _didIteratorError = false;
8847
+ var _iteratorError = undefined;
8807
8848
 
8808
8849
  try {
8809
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
8850
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8810
8851
  var p = _step.value;
8811
8852
 
8812
8853
  if (props$1[p]) {
@@ -8821,9 +8862,18 @@ function getConfig(props$1, defaultProps, showWarning) {
8821
8862
  }
8822
8863
  }
8823
8864
  } catch (err) {
8824
- _iterator.e(err);
8865
+ _didIteratorError = true;
8866
+ _iteratorError = err;
8825
8867
  } finally {
8826
- _iterator.f();
8868
+ try {
8869
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8870
+ _iterator["return"]();
8871
+ }
8872
+ } finally {
8873
+ if (_didIteratorError) {
8874
+ throw _iteratorError;
8875
+ }
8876
+ }
8827
8877
  }
8828
8878
 
8829
8879
  return config;
@@ -8970,16 +9020,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8970
9020
 
8971
9021
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8972
9022
 
8973
- 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); }; }
8974
-
8975
9023
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8976
9024
 
8977
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8978
-
8979
- 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; } }
8980
-
8981
9025
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8982
9026
 
9027
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9028
+
8983
9029
  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); }
8984
9030
 
8985
9031
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -8988,12 +9034,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8988
9034
 
8989
9035
  var SEEK_ON_PLAY_EXPIRY = 5000;
8990
9036
 
8991
- var Player = /*#__PURE__*/function (_Component) {
9037
+ var Player =
9038
+ /*#__PURE__*/
9039
+ function (_Component) {
8992
9040
  _inherits(Player, _Component);
8993
9041
 
8994
- var _super = _createSuper(Player);
8995
-
8996
9042
  function Player() {
9043
+ var _getPrototypeOf2;
9044
+
8997
9045
  var _this;
8998
9046
 
8999
9047
  _classCallCheck(this, Player);
@@ -9002,7 +9050,7 @@ var Player = /*#__PURE__*/function (_Component) {
9002
9050
  _args[_key] = arguments[_key];
9003
9051
  }
9004
9052
 
9005
- _this = _super.call.apply(_super, [this].concat(_args));
9053
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
9006
9054
 
9007
9055
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
9008
9056
 
@@ -9327,7 +9375,7 @@ var Player = /*#__PURE__*/function (_Component) {
9327
9375
  return null;
9328
9376
  }
9329
9377
 
9330
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9378
+ return _react["default"].createElement(Player, _extends({}, this.props, {
9331
9379
  ref: this.ref,
9332
9380
  onReady: this.handleReady,
9333
9381
  onPlay: this.handlePlay,
@@ -9388,16 +9436,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9388
9436
 
9389
9437
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9390
9438
 
9391
- 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); }; }
9392
-
9393
9439
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9394
9440
 
9395
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9396
-
9397
- 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; } }
9398
-
9399
9441
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9400
9442
 
9443
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9444
+
9401
9445
  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); }
9402
9446
 
9403
9447
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9409,12 +9453,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9409
9453
  function createSinglePlayer(activePlayer) {
9410
9454
  var _class, _temp;
9411
9455
 
9412
- return _temp = _class = /*#__PURE__*/function (_Component) {
9456
+ return _temp = _class =
9457
+ /*#__PURE__*/
9458
+ function (_Component) {
9413
9459
  _inherits(SinglePlayer, _Component);
9414
9460
 
9415
- var _super = _createSuper(SinglePlayer);
9416
-
9417
9461
  function SinglePlayer() {
9462
+ var _getPrototypeOf2;
9463
+
9418
9464
  var _this;
9419
9465
 
9420
9466
  _classCallCheck(this, SinglePlayer);
@@ -9423,7 +9469,7 @@ function createSinglePlayer(activePlayer) {
9423
9469
  args[_key] = arguments[_key];
9424
9470
  }
9425
9471
 
9426
- _this = _super.call.apply(_super, [this].concat(args));
9472
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9427
9473
 
9428
9474
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9429
9475
 
@@ -9491,12 +9537,12 @@ function createSinglePlayer(activePlayer) {
9491
9537
  height = _this$props.height,
9492
9538
  Wrapper = _this$props.wrapper;
9493
9539
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9494
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9540
+ return _react["default"].createElement(Wrapper, _extends({
9495
9541
  style: _objectSpread({}, style, {
9496
9542
  width: width,
9497
9543
  height: height
9498
9544
  })
9499
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9545
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9500
9546
  ref: this.ref,
9501
9547
  activePlayer: activePlayer,
9502
9548
  config: this.config
@@ -9542,31 +9588,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9542
9588
 
9543
9589
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9544
9590
 
9545
- 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); }; }
9546
-
9547
9591
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9548
9592
 
9549
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9550
-
9551
- 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; } }
9552
-
9553
9593
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9554
9594
 
9595
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9596
+
9555
9597
  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); }
9556
9598
 
9557
9599
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9558
9600
 
9559
9601
  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; }
9560
9602
 
9561
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9603
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9562
9604
 
9563
- 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."); }
9605
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9564
9606
 
9565
- 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); }
9566
-
9567
- 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; }
9568
-
9569
- 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; }
9607
+ 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; }
9570
9608
 
9571
9609
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9572
9610
 
@@ -9591,12 +9629,14 @@ function parsePlaylist(url) {
9591
9629
  return {};
9592
9630
  }
9593
9631
 
9594
- var YouTube = /*#__PURE__*/function (_Component) {
9632
+ var YouTube =
9633
+ /*#__PURE__*/
9634
+ function (_Component) {
9595
9635
  _inherits(YouTube, _Component);
9596
9636
 
9597
- var _super = _createSuper(YouTube);
9598
-
9599
9637
  function YouTube() {
9638
+ var _getPrototypeOf2;
9639
+
9600
9640
  var _this;
9601
9641
 
9602
9642
  _classCallCheck(this, YouTube);
@@ -9605,7 +9645,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
9605
9645
  args[_key] = arguments[_key];
9606
9646
  }
9607
9647
 
9608
- _this = _super.call.apply(_super, [this].concat(args));
9648
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9609
9649
 
9610
9650
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9611
9651
 
@@ -9793,9 +9833,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
9793
9833
  height: '100%',
9794
9834
  display: display
9795
9835
  };
9796
- return /*#__PURE__*/_react["default"].createElement("div", {
9836
+ return _react["default"].createElement("div", {
9797
9837
  style: style
9798
- }, /*#__PURE__*/_react["default"].createElement("div", {
9838
+ }, _react["default"].createElement("div", {
9799
9839
  ref: this.ref
9800
9840
  }));
9801
9841
  }
@@ -9851,16 +9891,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9851
9891
 
9852
9892
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9853
9893
 
9854
- 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); }; }
9855
-
9856
9894
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9857
9895
 
9858
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9859
-
9860
- 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; } }
9861
-
9862
9896
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9863
9897
 
9898
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9899
+
9864
9900
  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); }
9865
9901
 
9866
9902
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9869,14 +9905,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9869
9905
 
9870
9906
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9871
9907
  var SDK_GLOBAL = 'SC';
9872
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9908
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9873
9909
 
9874
- var SoundCloud = /*#__PURE__*/function (_Component) {
9910
+ var SoundCloud =
9911
+ /*#__PURE__*/
9912
+ function (_Component) {
9875
9913
  _inherits(SoundCloud, _Component);
9876
9914
 
9877
- var _super = _createSuper(SoundCloud);
9878
-
9879
9915
  function SoundCloud() {
9916
+ var _getPrototypeOf2;
9917
+
9880
9918
  var _this;
9881
9919
 
9882
9920
  _classCallCheck(this, SoundCloud);
@@ -9885,7 +9923,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9885
9923
  args[_key] = arguments[_key];
9886
9924
  }
9887
9925
 
9888
- _this = _super.call.apply(_super, [this].concat(args));
9926
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9889
9927
 
9890
9928
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9891
9929
 
@@ -10006,7 +10044,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
10006
10044
  height: '100%',
10007
10045
  display: display
10008
10046
  };
10009
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10047
+ return _react["default"].createElement("iframe", {
10010
10048
  ref: this.ref,
10011
10049
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
10012
10050
  style: style,
@@ -10068,16 +10106,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10068
10106
 
10069
10107
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10070
10108
 
10071
- 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); }; }
10072
-
10073
10109
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10074
10110
 
10075
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10076
-
10077
- 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; } }
10078
-
10079
10111
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10080
10112
 
10113
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10114
+
10081
10115
  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); }
10082
10116
 
10083
10117
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10089,12 +10123,14 @@ var SDK_GLOBAL = 'Vimeo';
10089
10123
  var MATCH_URL = /vimeo\.com\/.+/;
10090
10124
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10091
10125
 
10092
- var Vimeo = /*#__PURE__*/function (_Component) {
10126
+ var Vimeo =
10127
+ /*#__PURE__*/
10128
+ function (_Component) {
10093
10129
  _inherits(Vimeo, _Component);
10094
10130
 
10095
- var _super = _createSuper(Vimeo);
10096
-
10097
10131
  function Vimeo() {
10132
+ var _getPrototypeOf2;
10133
+
10098
10134
  var _this;
10099
10135
 
10100
10136
  _classCallCheck(this, Vimeo);
@@ -10103,7 +10139,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10103
10139
  args[_key] = arguments[_key];
10104
10140
  }
10105
10141
 
10106
- _this = _super.call.apply(_super, [this].concat(args));
10142
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
10107
10143
 
10108
10144
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10109
10145
 
@@ -10260,7 +10296,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10260
10296
  overflow: 'hidden',
10261
10297
  display: display
10262
10298
  };
10263
- return /*#__PURE__*/_react["default"].createElement("div", {
10299
+ return _react["default"].createElement("div", {
10264
10300
  key: this.props.url,
10265
10301
  ref: this.ref,
10266
10302
  style: style
@@ -10320,16 +10356,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10320
10356
 
10321
10357
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10322
10358
 
10323
- 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); }; }
10324
-
10325
10359
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10326
10360
 
10327
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10328
-
10329
- 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; } }
10330
-
10331
10361
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10332
10362
 
10363
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10364
+
10333
10365
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
10334
10366
 
10335
10367
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10342,12 +10374,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10342
10374
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10343
10375
  var PLAYER_ID_PREFIX = 'facebook-player-';
10344
10376
 
10345
- var Facebook = /*#__PURE__*/function (_Component) {
10377
+ var Facebook =
10378
+ /*#__PURE__*/
10379
+ function (_Component) {
10346
10380
  _inherits(Facebook, _Component);
10347
10381
 
10348
- var _super = _createSuper(Facebook);
10349
-
10350
10382
  function Facebook() {
10383
+ var _getPrototypeOf2;
10384
+
10351
10385
  var _this;
10352
10386
 
10353
10387
  _classCallCheck(this, Facebook);
@@ -10356,7 +10390,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10356
10390
  args[_key] = arguments[_key];
10357
10391
  }
10358
10392
 
10359
- _this = _super.call.apply(_super, [this].concat(args));
10393
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10360
10394
 
10361
10395
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10362
10396
 
@@ -10472,7 +10506,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10472
10506
  width: '100%',
10473
10507
  height: '100%'
10474
10508
  };
10475
- return /*#__PURE__*/_react["default"].createElement("div", {
10509
+ return _react["default"].createElement("div", {
10476
10510
  style: style,
10477
10511
  id: this.playerID,
10478
10512
  className: "fb-video",
@@ -10532,16 +10566,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10532
10566
 
10533
10567
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10534
10568
 
10535
- 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); }; }
10536
-
10537
10569
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10538
10570
 
10539
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10540
-
10541
- 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; } }
10542
-
10543
10571
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10544
10572
 
10573
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10574
+
10545
10575
  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); }
10546
10576
 
10547
10577
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10552,12 +10582,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10552
10582
  var SDK_GLOBAL = 'playerjs';
10553
10583
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10554
10584
 
10555
- var Streamable = /*#__PURE__*/function (_Component) {
10585
+ var Streamable =
10586
+ /*#__PURE__*/
10587
+ function (_Component) {
10556
10588
  _inherits(Streamable, _Component);
10557
10589
 
10558
- var _super = _createSuper(Streamable);
10559
-
10560
10590
  function Streamable() {
10591
+ var _getPrototypeOf2;
10592
+
10561
10593
  var _this;
10562
10594
 
10563
10595
  _classCallCheck(this, Streamable);
@@ -10566,7 +10598,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10566
10598
  args[_key] = arguments[_key];
10567
10599
  }
10568
10600
 
10569
- _this = _super.call.apply(_super, [this].concat(args));
10601
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10570
10602
 
10571
10603
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10572
10604
 
@@ -10686,7 +10718,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10686
10718
  width: '100%',
10687
10719
  height: '100%'
10688
10720
  };
10689
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10721
+ return _react["default"].createElement("iframe", {
10690
10722
  ref: this.ref,
10691
10723
  src: "https://streamable.com/o/".concat(id),
10692
10724
  frameBorder: "0",
@@ -10747,16 +10779,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10747
10779
 
10748
10780
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10749
10781
 
10750
- 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); }; }
10751
-
10752
10782
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10753
10783
 
10754
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10755
-
10756
- 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; } }
10757
-
10758
10784
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10759
10785
 
10786
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10787
+
10760
10788
  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); }
10761
10789
 
10762
10790
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10767,48 +10795,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10767
10795
  var SDK_GLOBAL = 'Wistia';
10768
10796
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10769
10797
 
10770
- var Wistia = /*#__PURE__*/function (_Component) {
10798
+ var Wistia =
10799
+ /*#__PURE__*/
10800
+ function (_Component) {
10771
10801
  _inherits(Wistia, _Component);
10772
10802
 
10773
- var _super = _createSuper(Wistia);
10774
-
10775
10803
  function Wistia() {
10804
+ var _getPrototypeOf2;
10805
+
10776
10806
  var _this;
10777
10807
 
10778
10808
  _classCallCheck(this, Wistia);
10779
10809
 
10780
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10781
- _args[_key] = arguments[_key];
10810
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10811
+ args[_key] = arguments[_key];
10782
10812
  }
10783
10813
 
10784
- _this = _super.call.apply(_super, [this].concat(_args));
10814
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10785
10815
 
10786
10816
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10787
10817
 
10788
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10789
- var _this$props;
10790
-
10791
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10792
- });
10793
-
10794
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10795
- var _this$props2;
10796
-
10797
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10798
- });
10799
-
10800
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10801
- var _this$props3;
10802
-
10803
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10804
- });
10805
-
10806
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10807
- var _this$props4;
10808
-
10809
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10810
- });
10811
-
10812
10818
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10813
10819
  _this.callPlayer('mute');
10814
10820
  });
@@ -10830,13 +10836,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
10830
10836
  value: function load(url) {
10831
10837
  var _this2 = this;
10832
10838
 
10833
- var _this$props5 = this.props,
10834
- playing = _this$props5.playing,
10835
- muted = _this$props5.muted,
10836
- controls = _this$props5.controls,
10837
- _onReady = _this$props5.onReady,
10838
- config = _this$props5.config,
10839
- onError = _this$props5.onError;
10839
+ var _this$props = this.props,
10840
+ playing = _this$props.playing,
10841
+ muted = _this$props.muted,
10842
+ controls = _this$props.controls,
10843
+ _onReady = _this$props.onReady,
10844
+ onPlay = _this$props.onPlay,
10845
+ onPause = _this$props.onPause,
10846
+ onSeek = _this$props.onSeek,
10847
+ onEnded = _this$props.onEnded,
10848
+ config = _this$props.config,
10849
+ onError = _this$props.onError;
10840
10850
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10841
10851
  window._wq = window._wq || [];
10842
10852
 
@@ -10853,28 +10863,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10853
10863
 
10854
10864
  _this2.unbind();
10855
10865
 
10856
- _this2.player.bind('play', _this2.onPlay);
10866
+ _this2.player.bind('play', onPlay);
10857
10867
 
10858
- _this2.player.bind('pause', _this2.onPause);
10868
+ _this2.player.bind('pause', onPause);
10859
10869
 
10860
- _this2.player.bind('seek', _this2.onSeek);
10870
+ _this2.player.bind('seek', onSeek);
10861
10871
 
10862
- _this2.player.bind('end', _this2.onEnded);
10872
+ _this2.player.bind('end', onEnded);
10863
10873
 
10864
10874
  _onReady();
10865
10875
  }
10866
10876
  });
10867
10877
  }, onError);
10868
10878
  }
10869
- }, {
10870
- key: "unbind",
10871
- value: function unbind() {
10872
- this.player.unbind('play', this.onPlay);
10873
- this.player.unbind('pause', this.onPause);
10874
- this.player.unbind('seek', this.onSeek);
10875
- this.player.unbind('end', this.onEnded);
10876
- } // Proxy methods to prevent listener leaks
10877
-
10878
10879
  }, {
10879
10880
  key: "play",
10880
10881
  value: function play() {
@@ -10885,6 +10886,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10885
10886
  value: function pause() {
10886
10887
  this.callPlayer('pause');
10887
10888
  }
10889
+ }, {
10890
+ key: "unbind",
10891
+ value: function unbind() {
10892
+ var _this$props2 = this.props,
10893
+ onPlay = _this$props2.onPlay,
10894
+ onPause = _this$props2.onPause,
10895
+ onSeek = _this$props2.onSeek,
10896
+ onEnded = _this$props2.onEnded;
10897
+ this.player.unbind('play', onPlay);
10898
+ this.player.unbind('pause', onPause);
10899
+ this.player.unbind('seek', onSeek);
10900
+ this.player.unbind('end', onEnded);
10901
+ }
10888
10902
  }, {
10889
10903
  key: "stop",
10890
10904
  value: function stop() {
@@ -10930,7 +10944,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
10930
10944
  width: '100%',
10931
10945
  height: '100%'
10932
10946
  };
10933
- return /*#__PURE__*/_react["default"].createElement("div", {
10947
+ return _react["default"].createElement("div", {
10934
10948
  key: id,
10935
10949
  className: className,
10936
10950
  style: style
@@ -10990,16 +11004,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10990
11004
 
10991
11005
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10992
11006
 
10993
- 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); }; }
10994
-
10995
11007
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10996
11008
 
10997
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10998
-
10999
- 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; } }
11000
-
11001
11009
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11002
11010
 
11011
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11012
+
11003
11013
  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); }
11004
11014
 
11005
11015
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11012,12 +11022,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
11012
11022
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
11013
11023
  var PLAYER_ID_PREFIX = 'twitch-player-';
11014
11024
 
11015
- var Twitch = /*#__PURE__*/function (_Component) {
11025
+ var Twitch =
11026
+ /*#__PURE__*/
11027
+ function (_Component) {
11016
11028
  _inherits(Twitch, _Component);
11017
11029
 
11018
- var _super = _createSuper(Twitch);
11019
-
11020
11030
  function Twitch() {
11031
+ var _getPrototypeOf2;
11032
+
11021
11033
  var _this;
11022
11034
 
11023
11035
  _classCallCheck(this, Twitch);
@@ -11026,7 +11038,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11026
11038
  args[_key] = arguments[_key];
11027
11039
  }
11028
11040
 
11029
- _this = _super.call.apply(_super, [this].concat(args));
11041
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
11030
11042
 
11031
11043
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11032
11044
 
@@ -11147,7 +11159,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11147
11159
  width: '100%',
11148
11160
  height: '100%'
11149
11161
  };
11150
- return /*#__PURE__*/_react["default"].createElement("div", {
11162
+ return _react["default"].createElement("div", {
11151
11163
  style: style,
11152
11164
  id: this.playerID
11153
11165
  });
@@ -11200,15 +11212,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11200
11212
 
11201
11213
  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; }
11202
11214
 
11203
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11204
-
11205
- 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."); }
11215
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11206
11216
 
11207
- 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); }
11217
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11208
11218
 
11209
- 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; }
11210
-
11211
- 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; }
11219
+ 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; }
11212
11220
 
11213
11221
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11214
11222
 
@@ -11218,16 +11226,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11218
11226
 
11219
11227
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11220
11228
 
11221
- 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); }; }
11222
-
11223
11229
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11224
11230
 
11225
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11226
-
11227
- 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; } }
11228
-
11229
11231
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11230
11232
 
11233
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11234
+
11231
11235
  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); }
11232
11236
 
11233
11237
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11239,12 +11243,14 @@ var SDK_GLOBAL = 'DM';
11239
11243
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11240
11244
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11241
11245
 
11242
- var DailyMotion = /*#__PURE__*/function (_Component) {
11246
+ var DailyMotion =
11247
+ /*#__PURE__*/
11248
+ function (_Component) {
11243
11249
  _inherits(DailyMotion, _Component);
11244
11250
 
11245
- var _super = _createSuper(DailyMotion);
11246
-
11247
11251
  function DailyMotion() {
11252
+ var _getPrototypeOf2;
11253
+
11248
11254
  var _this;
11249
11255
 
11250
11256
  _classCallCheck(this, DailyMotion);
@@ -11253,7 +11259,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11253
11259
  args[_key] = arguments[_key];
11254
11260
  }
11255
11261
 
11256
- _this = _super.call.apply(_super, [this].concat(args));
11262
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11257
11263
 
11258
11264
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11259
11265
 
@@ -11382,9 +11388,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11382
11388
  height: '100%',
11383
11389
  display: display
11384
11390
  };
11385
- return /*#__PURE__*/_react["default"].createElement("div", {
11391
+ return _react["default"].createElement("div", {
11386
11392
  style: style
11387
- }, /*#__PURE__*/_react["default"].createElement("div", {
11393
+ }, _react["default"].createElement("div", {
11388
11394
  ref: this.ref
11389
11395
  }));
11390
11396
  }
@@ -11442,16 +11448,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11442
11448
 
11443
11449
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11444
11450
 
11445
- 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); }; }
11446
-
11447
11451
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11448
11452
 
11449
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11450
-
11451
- 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; } }
11452
-
11453
11453
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11454
11454
 
11455
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11456
+
11455
11457
  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); }
11456
11458
 
11457
11459
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11462,12 +11464,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11462
11464
  var SDK_GLOBAL = 'Mixcloud';
11463
11465
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11464
11466
 
11465
- var Mixcloud = /*#__PURE__*/function (_Component) {
11467
+ var Mixcloud =
11468
+ /*#__PURE__*/
11469
+ function (_Component) {
11466
11470
  _inherits(Mixcloud, _Component);
11467
11471
 
11468
- var _super = _createSuper(Mixcloud);
11469
-
11470
11472
  function Mixcloud() {
11473
+ var _getPrototypeOf2;
11474
+
11471
11475
  var _this;
11472
11476
 
11473
11477
  _classCallCheck(this, Mixcloud);
@@ -11476,7 +11480,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11476
11480
  args[_key] = arguments[_key];
11477
11481
  }
11478
11482
 
11479
- _this = _super.call.apply(_super, [this].concat(args));
11483
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11480
11484
 
11481
11485
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11482
11486
 
@@ -11579,7 +11583,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11579
11583
  })); // We have to give the iframe a key here to prevent a
11580
11584
  // weird dialog appearing when loading a new track
11581
11585
 
11582
- return /*#__PURE__*/_react["default"].createElement("iframe", {
11586
+ return _react["default"].createElement("iframe", {
11583
11587
  key: id,
11584
11588
  ref: this.ref,
11585
11589
  style: style,
@@ -11639,33 +11643,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11639
11643
 
11640
11644
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11641
11645
 
11642
- 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); }; }
11643
-
11644
11646
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11645
11647
 
11646
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11647
-
11648
- 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; } }
11649
-
11650
11648
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11651
11649
 
11650
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11651
+
11652
11652
  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); }
11653
11653
 
11654
11654
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11655
11655
 
11656
11656
  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; }
11657
11657
 
11658
- 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; } } }; }
11659
-
11660
- 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); }
11661
-
11662
- 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; }
11663
-
11664
11658
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11665
11659
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11666
11660
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11667
11661
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11668
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11662
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11669
11663
  var HLS_GLOBAL = 'Hls';
11670
11664
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11671
11665
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11674,11 +11668,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11674
11668
 
11675
11669
  function canPlay(url) {
11676
11670
  if (url instanceof Array) {
11677
- var _iterator = _createForOfIteratorHelper(url),
11678
- _step;
11671
+ var _iteratorNormalCompletion = true;
11672
+ var _didIteratorError = false;
11673
+ var _iteratorError = undefined;
11679
11674
 
11680
11675
  try {
11681
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
11676
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11682
11677
  var item = _step.value;
11683
11678
 
11684
11679
  if (typeof item === 'string' && canPlay(item)) {
@@ -11690,9 +11685,18 @@ function canPlay(url) {
11690
11685
  }
11691
11686
  }
11692
11687
  } catch (err) {
11693
- _iterator.e(err);
11688
+ _didIteratorError = true;
11689
+ _iteratorError = err;
11694
11690
  } finally {
11695
- _iterator.f();
11691
+ try {
11692
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11693
+ _iterator["return"]();
11694
+ }
11695
+ } finally {
11696
+ if (_didIteratorError) {
11697
+ throw _iteratorError;
11698
+ }
11699
+ }
11696
11700
  }
11697
11701
 
11698
11702
  return false;
@@ -11716,12 +11720,14 @@ function canEnablePIP(url) {
11716
11720
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11717
11721
  }
11718
11722
 
11719
- var FilePlayer = /*#__PURE__*/function (_Component) {
11723
+ var FilePlayer =
11724
+ /*#__PURE__*/
11725
+ function (_Component) {
11720
11726
  _inherits(FilePlayer, _Component);
11721
11727
 
11722
- var _super = _createSuper(FilePlayer);
11723
-
11724
11728
  function FilePlayer() {
11729
+ var _getPrototypeOf2;
11730
+
11725
11731
  var _this;
11726
11732
 
11727
11733
  _classCallCheck(this, FilePlayer);
@@ -11730,7 +11736,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11730
11736
  _args[_key] = arguments[_key];
11731
11737
  }
11732
11738
 
11733
- _this = _super.call.apply(_super, [this].concat(_args));
11739
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11734
11740
 
11735
11741
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11736
11742
  var _this$props;
@@ -11817,19 +11823,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11817
11823
 
11818
11824
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11819
11825
  if (typeof source === 'string') {
11820
- return /*#__PURE__*/_react["default"].createElement("source", {
11826
+ return _react["default"].createElement("source", {
11821
11827
  key: index,
11822
11828
  src: source
11823
11829
  });
11824
11830
  }
11825
11831
 
11826
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
11832
+ return _react["default"].createElement("source", _extends({
11827
11833
  key: index
11828
11834
  }, source));
11829
11835
  });
11830
11836
 
11831
11837
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11832
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
11838
+ return _react["default"].createElement("track", _extends({
11833
11839
  key: index
11834
11840
  }, track));
11835
11841
  });
@@ -11867,10 +11873,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11867
11873
  key: "componentWillUnmount",
11868
11874
  value: function componentWillUnmount() {
11869
11875
  this.removeListeners(this.player);
11870
-
11871
- if (this.hls) {
11872
- this.hls.destroy();
11873
- }
11874
11876
  }
11875
11877
  }, {
11876
11878
  key: "addListeners",
@@ -12001,6 +12003,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12001
12003
  value: function stop() {
12002
12004
  this.player.removeAttribute('src');
12003
12005
 
12006
+ if (this.hls) {
12007
+ this.hls.destroy();
12008
+ }
12009
+
12004
12010
  if (this.dash) {
12005
12011
  this.dash.reset();
12006
12012
  }
@@ -12112,7 +12118,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12112
12118
  width: width === 'auto' ? width : '100%',
12113
12119
  height: height === 'auto' ? height : '100%'
12114
12120
  };
12115
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12121
+ return _react["default"].createElement(Element, _extends({
12116
12122
  ref: this.ref,
12117
12123
  src: this.getSource(url),
12118
12124
  style: style,
@@ -12202,16 +12208,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12202
12208
 
12203
12209
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12204
12210
 
12205
- 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); }; }
12206
-
12207
12211
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12208
12212
 
12209
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12210
-
12211
- 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; } }
12212
-
12213
12213
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12214
12214
 
12215
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12216
+
12215
12217
  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); }
12216
12218
 
12217
12219
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12220,12 +12222,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12220
12222
 
12221
12223
  var ICON_SIZE = '64px';
12222
12224
 
12223
- var Preview = /*#__PURE__*/function (_Component) {
12225
+ var Preview =
12226
+ /*#__PURE__*/
12227
+ function (_Component) {
12224
12228
  _inherits(Preview, _Component);
12225
12229
 
12226
- var _super = _createSuper(Preview);
12227
-
12228
12230
  function Preview() {
12231
+ var _getPrototypeOf2;
12232
+
12229
12233
  var _this;
12230
12234
 
12231
12235
  _classCallCheck(this, Preview);
@@ -12234,7 +12238,7 @@ var Preview = /*#__PURE__*/function (_Component) {
12234
12238
  args[_key] = arguments[_key];
12235
12239
  }
12236
12240
 
12237
- _this = _super.call.apply(_super, [this].concat(args));
12241
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12238
12242
 
12239
12243
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12240
12244
 
@@ -12332,15 +12336,15 @@ var Preview = /*#__PURE__*/function (_Component) {
12332
12336
  }
12333
12337
  };
12334
12338
 
12335
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12339
+ var defaultPlayIcon = _react["default"].createElement("div", {
12336
12340
  style: styles.shadow,
12337
12341
  className: "react-player__shadow"
12338
- }, /*#__PURE__*/_react["default"].createElement("div", {
12342
+ }, _react["default"].createElement("div", {
12339
12343
  style: styles.playIcon,
12340
12344
  className: "react-player__play-icon"
12341
12345
  }));
12342
12346
 
12343
- return /*#__PURE__*/_react["default"].createElement("div", {
12347
+ return _react["default"].createElement("div", {
12344
12348
  style: styles.preview,
12345
12349
  className: "react-player__preview",
12346
12350
  onClick: onClick
@@ -12377,12 +12381,6 @@ var _Player = _interopRequireDefault(Player_1);
12377
12381
 
12378
12382
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12379
12383
 
12380
- 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; } } }; }
12381
-
12382
- 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); }
12383
-
12384
- 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; }
12385
-
12386
12384
  var PRELOAD_PLAYERS = [{
12387
12385
  Player: YouTube_1.YouTube,
12388
12386
  configKey: 'youtube',
@@ -12403,16 +12401,16 @@ var PRELOAD_PLAYERS = [{
12403
12401
 
12404
12402
  function renderPreloadPlayers(url, controls, config) {
12405
12403
  var players = [];
12406
-
12407
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12408
- _step;
12404
+ var _iteratorNormalCompletion = true;
12405
+ var _didIteratorError = false;
12406
+ var _iteratorError = undefined;
12409
12407
 
12410
12408
  try {
12411
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
12409
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12412
12410
  var player = _step.value;
12413
12411
 
12414
12412
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12415
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12413
+ players.push(_react["default"].createElement(_Player["default"], {
12416
12414
  key: player.Player.displayName,
12417
12415
  activePlayer: player.Player,
12418
12416
  url: player.url,
@@ -12424,9 +12422,18 @@ function renderPreloadPlayers(url, controls, config) {
12424
12422
  }
12425
12423
  }
12426
12424
  } catch (err) {
12427
- _iterator.e(err);
12425
+ _didIteratorError = true;
12426
+ _iteratorError = err;
12428
12427
  } finally {
12429
- _iterator.f();
12428
+ try {
12429
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12430
+ _iterator["return"]();
12431
+ }
12432
+ } finally {
12433
+ if (_didIteratorError) {
12434
+ throw _iteratorError;
12435
+ }
12436
+ }
12430
12437
  }
12431
12438
 
12432
12439
  return players;
@@ -12550,17 +12557,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12550
12557
 
12551
12558
  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); }
12552
12559
 
12553
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12554
-
12555
- 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."); }
12560
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12556
12561
 
12557
- 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); }
12562
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12558
12563
 
12559
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12564
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12560
12565
 
12561
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12562
-
12563
- 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; }
12566
+ 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; } }
12564
12567
 
12565
12568
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12566
12569
 
@@ -12568,16 +12571,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12568
12571
 
12569
12572
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12570
12573
 
12571
- 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); }; }
12572
-
12573
12574
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12574
12575
 
12575
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12576
-
12577
- 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; } }
12578
-
12579
12576
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12580
12577
 
12578
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12579
+
12581
12580
  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); }
12582
12581
 
12583
12582
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12587,12 +12586,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12587
12586
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12588
12587
  var customPlayers = [];
12589
12588
 
12590
- var ReactPlayer = /*#__PURE__*/function (_Component) {
12589
+ var ReactPlayer =
12590
+ /*#__PURE__*/
12591
+ function (_Component) {
12591
12592
  _inherits(ReactPlayer, _Component);
12592
12593
 
12593
- var _super = _createSuper(ReactPlayer);
12594
-
12595
12594
  function ReactPlayer() {
12595
+ var _getPrototypeOf2;
12596
+
12596
12597
  var _this;
12597
12598
 
12598
12599
  _classCallCheck(this, ReactPlayer);
@@ -12601,7 +12602,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12601
12602
  args[_key] = arguments[_key];
12602
12603
  }
12603
12604
 
12604
- _this = _super.call.apply(_super, [this].concat(args));
12605
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12605
12606
 
12606
12607
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12607
12608
 
@@ -12712,7 +12713,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12712
12713
  key: "renderActivePlayer",
12713
12714
  value: function renderActivePlayer(url, activePlayer) {
12714
12715
  if (!url) return null;
12715
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12716
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12716
12717
  key: activePlayer.displayName,
12717
12718
  ref: this.activePlayerRef,
12718
12719
  config: this.config,
@@ -12749,14 +12750,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12749
12750
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12750
12751
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12751
12752
 
12752
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12753
+ var preview = _react["default"].createElement(_Preview["default"], {
12753
12754
  url: url,
12754
12755
  light: light,
12755
12756
  playIcon: playIcon,
12756
12757
  onClick: this.handleClickPreview
12757
12758
  });
12758
12759
 
12759
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12760
+ return _react["default"].createElement(Wrapper, _extends({
12760
12761
  ref: this.wrapperRef,
12761
12762
  style: _objectSpread({}, style, {
12762
12763
  width: width,
@@ -13361,7 +13362,7 @@ var Poll = function Poll(_ref) {
13361
13362
  );
13362
13363
  };
13363
13364
 
13364
- var numberOfPaginations = main_38 ? 4 : 10;
13365
+ var numberOfPaginations = main_35 ? 4 : 10;
13365
13366
 
13366
13367
  var Quiz = function Quiz(_ref) {
13367
13368
  var quizzes = _ref.quizzes,
@@ -13451,7 +13452,7 @@ var Quiz = function Quiz(_ref) {
13451
13452
  var renderPagination = function renderPagination() {
13452
13453
  return React__default.createElement(
13453
13454
  Pagination,
13454
- { className: 'p-0 m-0', size: main_38 && 'sm' },
13455
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
13455
13456
  React__default.createElement(Pagination.First, { onClick: function onClick() {
13456
13457
  return changePage('first');
13457
13458
  }, disabled: currentPage === 1 }),
@@ -13615,7 +13616,7 @@ var NativeAd = function NativeAd(props) {
13615
13616
  };
13616
13617
 
13617
13618
  var Figure = dynamic(function () {
13618
- return import('./Figure-584ac0c8.js');
13619
+ return import('./Figure-ddfa279d.js');
13619
13620
  }, { ssr: false });
13620
13621
 
13621
13622
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -13837,7 +13838,7 @@ var Feature = function Feature(props) {
13837
13838
  };
13838
13839
  //image width
13839
13840
  var imageWidth = 900;
13840
- if (main_39) {
13841
+ if (main_36) {
13841
13842
  imageWidth = 450;
13842
13843
  }
13843
13844
 
@@ -14189,16 +14190,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14189
14190
  _ref$className = _ref.className,
14190
14191
  className = _ref$className === undefined ? '' : _ref$className;
14191
14192
 
14192
- /*
14193
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14194
- example:
14195
- <RelatedTopicDropdown
14196
- page='/clinical'
14197
- exclude="clinical"
14198
- className='mb-3'
14199
- parentTaxonomy={props.parentTaxonomy}
14200
- subTaxonomies={props.subTaxonomies}
14201
- />
14193
+ /*
14194
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14195
+ example:
14196
+ <RelatedTopicDropdown
14197
+ page='/clinical'
14198
+ exclude="clinical"
14199
+ className='mb-3'
14200
+ parentTaxonomy={props.parentTaxonomy}
14201
+ subTaxonomies={props.subTaxonomies}
14202
+ />
14202
14203
  */
14203
14204
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14204
14205
  if (parentTaxonomy.identifier == exclude) {
@@ -14236,25 +14237,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14236
14237
  }
14237
14238
  };
14238
14239
 
14239
- /*
14240
- This dropdown is used inside Article body to display related content placement and document group pages
14241
- sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
14242
-
14243
- - accepts any normal html arrtibute (style, id, class)
14244
-
14245
- - in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
14246
-
14247
- 'content_placement': taxonomyMapping[]-> {
14248
- ...,
14249
- 'ancestor': parent->parent->identifier,
14250
- 'parent': parent->identifier,
14251
- 'path': identifier
14252
- },
14253
- 'document_group': documentGroup-> {
14254
- name,
14255
- 'parent': parent->identifier,
14256
- 'path': identifier.current
14257
- }
14240
+ /*
14241
+ This dropdown is used inside Article body to display related content placement and document group pages
14242
+ sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
14243
+
14244
+ - accepts any normal html arrtibute (style, id, class)
14245
+
14246
+ - in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
14247
+
14248
+ 'content_placement': taxonomyMapping[]-> {
14249
+ ...,
14250
+ 'ancestor': parent->parent->identifier,
14251
+ 'parent': parent->identifier,
14252
+ 'path': identifier
14253
+ },
14254
+ 'document_group': documentGroup-> {
14255
+ name,
14256
+ 'parent': parent->identifier,
14257
+ 'path': identifier.current
14258
+ }
14258
14259
  */
14259
14260
 
14260
14261
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -15162,34 +15163,34 @@ var GridHero = function GridHero(props) {
15162
15163
  );
15163
15164
  };
15164
15165
 
15165
- /*
15166
- Sample query
15167
- let references = ''
15168
- if(article.taxonomyMapping.length > 0){
15169
- article.taxonomyMapping.forEach((ref, index) => {
15170
- references = references + `references('${ref._ref}') `
15171
- if(index+1 !== article.taxonomyMapping.length){
15172
- references = references + ` && `
15173
- }
15174
- })
15175
- }
15176
-
15177
- 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] {
15178
- ...,
15179
- title,
15180
- summary,
15181
- thumbnail,
15182
- url,
15183
- published,
15184
- authorMapping[]->,
15185
- contentCategory->
15186
- }`
15187
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15188
-
15189
- Sample usage
15190
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15191
-
15192
-
15166
+ /*
15167
+ Sample query
15168
+ let references = ''
15169
+ if(article.taxonomyMapping.length > 0){
15170
+ article.taxonomyMapping.forEach((ref, index) => {
15171
+ references = references + `references('${ref._ref}') `
15172
+ if(index+1 !== article.taxonomyMapping.length){
15173
+ references = references + ` && `
15174
+ }
15175
+ })
15176
+ }
15177
+
15178
+ 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] {
15179
+ ...,
15180
+ title,
15181
+ summary,
15182
+ thumbnail,
15183
+ url,
15184
+ published,
15185
+ authorMapping[]->,
15186
+ contentCategory->
15187
+ }`
15188
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
15189
+
15190
+ Sample usage
15191
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15192
+
15193
+
15193
15194
  */
15194
15195
  var RelatedContent = function RelatedContent(props) {
15195
15196
  var client = props.client,
@@ -15256,21 +15257,21 @@ var RelatedContent = function RelatedContent(props) {
15256
15257
  );
15257
15258
  };
15258
15259
 
15259
- /*
15260
- Example usage - targetedonc.com/latest-conference
15261
- 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] {
15262
- ...,
15263
- title,
15264
- summary,
15265
- thumbnail,
15266
- url,
15267
- published,
15268
- documentGroup->,
15269
- contentCategory->,
15270
- 'pageNumber': ${currentPage}
15271
- }`
15272
-
15273
- const posts = await client.fetch(query, params)
15260
+ /*
15261
+ Example usage - targetedonc.com/latest-conference
15262
+ 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] {
15263
+ ...,
15264
+ title,
15265
+ summary,
15266
+ thumbnail,
15267
+ url,
15268
+ published,
15269
+ documentGroup->,
15270
+ contentCategory->,
15271
+ 'pageNumber': ${currentPage}
15272
+ }`
15273
+
15274
+ const posts = await client.fetch(query, params)
15274
15275
  */
15275
15276
 
15276
15277
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -16536,7 +16537,7 @@ var Article = function Article(props) {
16536
16537
  React__default.createElement('br', null),
16537
16538
  React__default.createElement('br', null)
16538
16539
  ),
16539
- main_39 && props.article.Ads.map(function (ad, index) {
16540
+ main_36 && props.article.Ads.map(function (ad, index) {
16540
16541
  if (index === 0) {
16541
16542
  return React__default.createElement(
16542
16543
  'div',
@@ -16561,7 +16562,7 @@ var Article = function Article(props) {
16561
16562
  renderIsiContent(props.article)
16562
16563
  )
16563
16564
  ),
16564
- main_39 && props.article.Ads.map(function (ad, index) {
16565
+ main_36 && props.article.Ads.map(function (ad, index) {
16565
16566
  if (index > 0) {
16566
16567
  return React__default.createElement(
16567
16568
  'div',
@@ -16644,6 +16645,14 @@ var ArticleQueue = function ArticleQueue(props) {
16644
16645
  document_url: [url],
16645
16646
  content_placement: content_placement_urls
16646
16647
  };
16648
+
16649
+ if (article.issue && article.issue.path) {
16650
+ targeting.issue_url = [article.issue.path];
16651
+ if (article.issue.publication && article.issue.publication.path) {
16652
+ targeting.publication_url = [article.issue.publication.path];
16653
+ }
16654
+ }
16655
+
16647
16656
  return targeting;
16648
16657
  };
16649
16658
 
@@ -16660,7 +16669,7 @@ var ArticleQueue = function ArticleQueue(props) {
16660
16669
  setQueueData = _useState2[1];
16661
16670
 
16662
16671
  var refreshAD = function refreshAD(path) {
16663
- if (!main_39) {
16672
+ if (!main_36) {
16664
16673
  var activeArticle = queueData.find(function (item) {
16665
16674
  return item.url.current === path;
16666
16675
  });
@@ -16770,27 +16779,27 @@ var ArticleQueue = function ArticleQueue(props) {
16770
16779
  };
16771
16780
 
16772
16781
  var KMTracker = function KMTracker(props) {
16773
- var id = props.id;
16782
+ var id = props.id;
16774
16783
 
16775
- if (document && id) {
16784
+ if (document && id) {
16776
16785
  (function () {
16777
- var ecnJquery = document.createElement('script');
16786
+ var ecnJquery = document.createElement('script');
16778
16787
 
16779
- ecnJquery.type = 'text/javascript';
16780
- ecnJquery.async = true;
16781
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
16788
+ ecnJquery.type = 'text/javascript';
16789
+ ecnJquery.async = true;
16790
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
16782
16791
 
16783
- var ecnScript = document.createElement('script');
16792
+ var ecnScript = document.createElement('script');
16784
16793
 
16785
- ecnScript.type = 'text/javascript';
16786
- ecnScript.async = true;
16787
- ecnScript.id = 'km-tracker';
16788
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
16794
+ ecnScript.type = 'text/javascript';
16795
+ ecnScript.async = true;
16796
+ ecnScript.id = 'km-tracker';
16797
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
16789
16798
 
16790
- document.head.appendChild(ecnJquery);
16791
- document.head.appendChild(ecnScript);
16792
- })();
16793
- }
16799
+ document.head.appendChild(ecnJquery);
16800
+ document.head.appendChild(ecnScript);
16801
+ })();
16802
+ }
16794
16803
  };
16795
16804
 
16796
16805
  var returnFormField = function returnFormField(_ref) {
@@ -18817,6 +18826,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
18817
18826
  if (value != null) {
18818
18827
  if ($gOPD && (i + 1) >= parts.length) {
18819
18828
  var desc = $gOPD(value, parts[i]);
18829
+ if (!allowMissing && !(parts[i] in value)) {
18830
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
18831
+ }
18820
18832
  value = desc ? (desc.get || desc.value) : value[parts[i]];
18821
18833
  } else {
18822
18834
  value = value[parts[i]];
@@ -18849,7 +18861,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
18849
18861
  return intrinsic;
18850
18862
  };
18851
18863
 
18852
- var $defineProperty = GetIntrinsic('%Object.defineProperty%');
18864
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
18865
+
18866
+ if ($defineProperty) {
18867
+ try {
18868
+ $defineProperty({}, 'a', { value: 1 });
18869
+ } catch (e) {
18870
+ // IE 8 has a broken defineProperty
18871
+ $defineProperty = null;
18872
+ }
18873
+ }
18853
18874
 
18854
18875
 
18855
18876
 
@@ -18992,42 +19013,28 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
18992
19013
  return obj;
18993
19014
  };
18994
19015
 
18995
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
18996
-
18997
- var IsDataDescriptor = function IsDataDescriptor(Desc) {
18998
- if (typeof Desc === 'undefined') {
18999
- return false;
19000
- }
19001
-
19002
- assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
19003
-
19004
- if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
19005
- return false;
19016
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19017
+ if ($gOPD$1) {
19018
+ try {
19019
+ $gOPD$1([], 'length');
19020
+ } catch (e) {
19021
+ // IE 8 has a broken gOPD
19022
+ $gOPD$1 = null;
19006
19023
  }
19024
+ }
19007
19025
 
19008
- return true;
19009
- };
19010
-
19011
- var isPrimitive$1 = function isPrimitive(value) {
19012
- return value === null || (typeof value !== 'function' && typeof value !== 'object');
19013
- };
19014
-
19015
- var $Object = GetIntrinsic('%Object%');
19016
-
19026
+ var getOwnPropertyDescriptor = $gOPD$1;
19017
19027
 
19028
+ var $Array = GetIntrinsic('%Array%');
19018
19029
 
19019
- var $preventExtensions = $Object.preventExtensions;
19020
- var $isExtensible = $Object.isExtensible;
19030
+ // eslint-disable-next-line global-require
19031
+ var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
19021
19032
 
19022
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
19033
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
19023
19034
 
19024
- var IsExtensible = $preventExtensions
19025
- ? function IsExtensible(obj) {
19026
- return !isPrimitive$1(obj) && $isExtensible(obj);
19027
- }
19028
- : function IsExtensible(obj) { // eslint-disable-line no-unused-vars
19029
- return true;
19030
- };
19035
+ var IsArray = $Array.isArray || function IsArray(argument) {
19036
+ return toStr$4(argument) === '[object Array]';
19037
+ };
19031
19038
 
19032
19039
  // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19033
19040
 
@@ -19035,60 +19042,66 @@ var IsPropertyKey = function IsPropertyKey(argument) {
19035
19042
  return typeof argument === 'string' || typeof argument === 'symbol';
19036
19043
  };
19037
19044
 
19038
- var _isNaN = Number.isNaN || function isNaN(a) {
19039
- return a !== a;
19040
- };
19045
+ var regexExec = RegExp.prototype.exec;
19046
+ var gOPD = Object.getOwnPropertyDescriptor;
19041
19047
 
19042
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
19048
+ var tryRegexExecCall = function tryRegexExec(value) {
19049
+ try {
19050
+ var lastIndex = value.lastIndex;
19051
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
19043
19052
 
19044
- var SameValue = function SameValue(x, y) {
19045
- if (x === y) { // 0 === -0, but they are not identical.
19046
- if (x === 0) { return 1 / x === 1 / y; }
19053
+ regexExec.call(value);
19047
19054
  return true;
19055
+ } catch (e) {
19056
+ return false;
19057
+ } finally {
19058
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
19048
19059
  }
19049
- return _isNaN(x) && _isNaN(y);
19050
19060
  };
19061
+ var toStr$5 = Object.prototype.toString;
19062
+ var regexClass = '[object RegExp]';
19063
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19051
19064
 
19052
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19053
- var $TypeError$2 = GetIntrinsic('%TypeError%');
19065
+ var isRegex = function isRegex(value) {
19066
+ if (!value || typeof value !== 'object') {
19067
+ return false;
19068
+ }
19069
+ if (!hasToStringTag) {
19070
+ return toStr$5.call(value) === regexClass;
19071
+ }
19054
19072
 
19073
+ var descriptor = gOPD(value, 'lastIndex');
19074
+ var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
19075
+ if (!hasLastIndexDataProperty) {
19076
+ return false;
19077
+ }
19055
19078
 
19079
+ return tryRegexExecCall(value);
19080
+ };
19056
19081
 
19082
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
19057
19083
 
19084
+ var ToBoolean = function ToBoolean(value) { return !!value; };
19058
19085
 
19086
+ var $match = GetIntrinsic('%Symbol.match%', true);
19059
19087
 
19060
19088
 
19061
19089
 
19062
19090
 
19063
19091
 
19064
- // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
19092
+ // https://ecma-international.org/ecma-262/6.0/#sec-isregexp
19065
19093
 
19066
- var CreateDataProperty = function CreateDataProperty(O, P, V) {
19067
- if (Type$1(O) !== 'Object') {
19068
- throw new $TypeError$2('Assertion failed: Type(O) is not Object');
19069
- }
19070
- if (!IsPropertyKey(P)) {
19071
- throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
19072
- }
19073
- var oldDesc = $gOPD$1(O, P);
19074
- var extensible = oldDesc || IsExtensible(O);
19075
- var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
19076
- if (immutable || !extensible) {
19094
+ var IsRegExp = function IsRegExp(argument) {
19095
+ if (!argument || typeof argument !== 'object') {
19077
19096
  return false;
19078
19097
  }
19079
- return DefineOwnProperty(
19080
- IsDataDescriptor,
19081
- SameValue,
19082
- FromPropertyDescriptor,
19083
- O,
19084
- P,
19085
- {
19086
- '[[Configurable]]': true,
19087
- '[[Enumerable]]': true,
19088
- '[[Value]]': V,
19089
- '[[Writable]]': true
19098
+ if ($match) {
19099
+ var isRegExp = argument[$match];
19100
+ if (typeof isRegExp !== 'undefined') {
19101
+ return ToBoolean(isRegExp);
19090
19102
  }
19091
- );
19103
+ }
19104
+ return isRegex(argument);
19092
19105
  };
19093
19106
 
19094
19107
  var fnToStr = Function.prototype.toString;
@@ -19112,18 +19125,18 @@ var tryFunctionObject = function tryFunctionToStr(value) {
19112
19125
  return false;
19113
19126
  }
19114
19127
  };
19115
- var toStr$4 = Object.prototype.toString;
19128
+ var toStr$6 = Object.prototype.toString;
19116
19129
  var fnClass = '[object Function]';
19117
19130
  var genClass = '[object GeneratorFunction]';
19118
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19131
+ var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19119
19132
 
19120
19133
  var isCallable = function isCallable(value) {
19121
19134
  if (!value) { return false; }
19122
19135
  if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19123
19136
  if (typeof value === 'function' && !value.prototype) { return true; }
19124
- if (hasToStringTag) { return tryFunctionObject(value); }
19137
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
19125
19138
  if (isES6ClassFn(value)) { return false; }
19126
- var strClass = toStr$4.call(value);
19139
+ var strClass = toStr$6.call(value);
19127
19140
  return strClass === fnClass || strClass === genClass;
19128
19141
  };
19129
19142
 
@@ -19131,32 +19144,212 @@ var isCallable = function isCallable(value) {
19131
19144
 
19132
19145
  var IsCallable = isCallable;
19133
19146
 
19134
- var $TypeError$3 = GetIntrinsic('%TypeError%');
19147
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
19135
19148
 
19136
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
19137
19149
 
19138
- var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
19139
- if (value == null) {
19140
- throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
19141
- }
19142
- return value;
19143
- };
19144
19150
 
19145
- var RequireObjectCoercible = CheckObjectCoercible;
19146
19151
 
19147
- var $Object$1 = GetIntrinsic('%Object%');
19148
19152
 
19153
+ // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
19149
19154
 
19155
+ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
19156
+ if (Type$1(Obj) !== 'Object') {
19157
+ throw new $TypeError$2('ToPropertyDescriptor requires an object');
19158
+ }
19150
19159
 
19151
- // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
19160
+ var desc = {};
19161
+ if (src$1(Obj, 'enumerable')) {
19162
+ desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
19163
+ }
19164
+ if (src$1(Obj, 'configurable')) {
19165
+ desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
19166
+ }
19167
+ if (src$1(Obj, 'value')) {
19168
+ desc['[[Value]]'] = Obj.value;
19169
+ }
19170
+ if (src$1(Obj, 'writable')) {
19171
+ desc['[[Writable]]'] = ToBoolean(Obj.writable);
19172
+ }
19173
+ if (src$1(Obj, 'get')) {
19174
+ var getter = Obj.get;
19175
+ if (typeof getter !== 'undefined' && !IsCallable(getter)) {
19176
+ throw new TypeError('getter must be a function');
19177
+ }
19178
+ desc['[[Get]]'] = getter;
19179
+ }
19180
+ if (src$1(Obj, 'set')) {
19181
+ var setter = Obj.set;
19182
+ if (typeof setter !== 'undefined' && !IsCallable(setter)) {
19183
+ throw new $TypeError$2('setter must be a function');
19184
+ }
19185
+ desc['[[Set]]'] = setter;
19186
+ }
19152
19187
 
19153
- var ToObject = function ToObject(value) {
19154
- RequireObjectCoercible(value);
19155
- return $Object$1(value);
19188
+ if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
19189
+ throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
19190
+ }
19191
+ return desc;
19156
19192
  };
19157
19193
 
19158
- var $gOPD$2 = Object.getOwnPropertyDescriptor;
19159
- var $getOwnNames = Object.getOwnPropertyNames;
19194
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
19195
+
19196
+
19197
+
19198
+ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
19199
+
19200
+
19201
+
19202
+
19203
+
19204
+
19205
+
19206
+
19207
+
19208
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
19209
+
19210
+ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
19211
+ if (Type$1(O) !== 'Object') {
19212
+ throw new $TypeError$3('Assertion failed: O must be an Object');
19213
+ }
19214
+ if (!IsPropertyKey(P)) {
19215
+ throw new $TypeError$3('Assertion failed: P must be a Property Key');
19216
+ }
19217
+ if (!src$1(O, P)) {
19218
+ return void 0;
19219
+ }
19220
+ if (!getOwnPropertyDescriptor) {
19221
+ // ES3 / IE 8 fallback
19222
+ var arrayLength = IsArray(O) && P === 'length';
19223
+ var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
19224
+ return {
19225
+ '[[Configurable]]': !(arrayLength || regexLastIndex),
19226
+ '[[Enumerable]]': $isEnumerable$1(O, P),
19227
+ '[[Value]]': O[P],
19228
+ '[[Writable]]': true
19229
+ };
19230
+ }
19231
+ return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
19232
+ };
19233
+
19234
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
19235
+
19236
+ var IsDataDescriptor = function IsDataDescriptor(Desc) {
19237
+ if (typeof Desc === 'undefined') {
19238
+ return false;
19239
+ }
19240
+
19241
+ assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
19242
+
19243
+ if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
19244
+ return false;
19245
+ }
19246
+
19247
+ return true;
19248
+ };
19249
+
19250
+ var isPrimitive$1 = function isPrimitive(value) {
19251
+ return value === null || (typeof value !== 'function' && typeof value !== 'object');
19252
+ };
19253
+
19254
+ var $Object = GetIntrinsic('%Object%');
19255
+
19256
+
19257
+
19258
+ var $preventExtensions = $Object.preventExtensions;
19259
+ var $isExtensible = $Object.isExtensible;
19260
+
19261
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
19262
+
19263
+ var IsExtensible = $preventExtensions
19264
+ ? function IsExtensible(obj) {
19265
+ return !isPrimitive$1(obj) && $isExtensible(obj);
19266
+ }
19267
+ : function IsExtensible(obj) {
19268
+ return !isPrimitive$1(obj);
19269
+ };
19270
+
19271
+ var _isNaN = Number.isNaN || function isNaN(a) {
19272
+ return a !== a;
19273
+ };
19274
+
19275
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
19276
+
19277
+ var SameValue = function SameValue(x, y) {
19278
+ if (x === y) { // 0 === -0, but they are not identical.
19279
+ if (x === 0) { return 1 / x === 1 / y; }
19280
+ return true;
19281
+ }
19282
+ return _isNaN(x) && _isNaN(y);
19283
+ };
19284
+
19285
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
19286
+
19287
+
19288
+
19289
+
19290
+
19291
+
19292
+
19293
+
19294
+
19295
+
19296
+
19297
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
19298
+
19299
+ var CreateDataProperty = function CreateDataProperty(O, P, V) {
19300
+ if (Type$1(O) !== 'Object') {
19301
+ throw new $TypeError$4('Assertion failed: Type(O) is not Object');
19302
+ }
19303
+ if (!IsPropertyKey(P)) {
19304
+ throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
19305
+ }
19306
+ var oldDesc = OrdinaryGetOwnProperty(O, P);
19307
+ var extensible = oldDesc || IsExtensible(O);
19308
+ var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
19309
+ if (immutable || !extensible) {
19310
+ return false;
19311
+ }
19312
+ return DefineOwnProperty(
19313
+ IsDataDescriptor,
19314
+ SameValue,
19315
+ FromPropertyDescriptor,
19316
+ O,
19317
+ P,
19318
+ {
19319
+ '[[Configurable]]': true,
19320
+ '[[Enumerable]]': true,
19321
+ '[[Value]]': V,
19322
+ '[[Writable]]': true
19323
+ }
19324
+ );
19325
+ };
19326
+
19327
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
19328
+
19329
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
19330
+
19331
+ var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
19332
+ if (value == null) {
19333
+ throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
19334
+ }
19335
+ return value;
19336
+ };
19337
+
19338
+ var RequireObjectCoercible = CheckObjectCoercible;
19339
+
19340
+ var $Object$1 = GetIntrinsic('%Object%');
19341
+
19342
+
19343
+
19344
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
19345
+
19346
+ var ToObject = function ToObject(value) {
19347
+ RequireObjectCoercible(value);
19348
+ return $Object$1(value);
19349
+ };
19350
+
19351
+ var $gOPD$2 = Object.getOwnPropertyDescriptor;
19352
+ var $getOwnNames = Object.getOwnPropertyNames;
19160
19353
  var $getSymbols = Object.getOwnPropertySymbols;
19161
19354
  var $concat = callBound('Array.prototype.concat');
19162
19355
  var $reduce = callBound('Array.prototype.reduce');
@@ -19208,241 +19401,6 @@ defineProperties_1(implementation$2, {
19208
19401
 
19209
19402
  var object_getownpropertydescriptors = implementation$2;
19210
19403
 
19211
- /* globals
19212
- Atomics,
19213
- SharedArrayBuffer,
19214
- */
19215
-
19216
- var undefined$2;
19217
-
19218
- var $TypeError$4 = TypeError;
19219
-
19220
- var $gOPD$3 = Object.getOwnPropertyDescriptor;
19221
- if ($gOPD$3) {
19222
- try {
19223
- $gOPD$3({}, '');
19224
- } catch (e) {
19225
- $gOPD$3 = null; // this is IE 8, which has a broken gOPD
19226
- }
19227
- }
19228
-
19229
- var throwTypeError$1 = function () { throw new $TypeError$4(); };
19230
- var ThrowTypeError$1 = $gOPD$3
19231
- ? (function () {
19232
- try {
19233
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
19234
- arguments.callee; // IE 8 does not throw here
19235
- return throwTypeError$1;
19236
- } catch (calleeThrows) {
19237
- try {
19238
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
19239
- return $gOPD$3(arguments, 'callee').get;
19240
- } catch (gOPDthrows) {
19241
- return throwTypeError$1;
19242
- }
19243
- }
19244
- }())
19245
- : throwTypeError$1;
19246
-
19247
- var hasSymbols$3 = hasSymbols$1();
19248
-
19249
- var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
19250
- var generatorFunction$1 = undefined$2;
19251
- var asyncFunction$1 = undefined$2;
19252
- var asyncGenFunction$1 = undefined$2;
19253
-
19254
- var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
19255
-
19256
- var INTRINSICS$1 = {
19257
- '%Array%': Array,
19258
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
19259
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
19260
- '%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
19261
- '%ArrayPrototype%': Array.prototype,
19262
- '%ArrayProto_entries%': Array.prototype.entries,
19263
- '%ArrayProto_forEach%': Array.prototype.forEach,
19264
- '%ArrayProto_keys%': Array.prototype.keys,
19265
- '%ArrayProto_values%': Array.prototype.values,
19266
- '%AsyncFromSyncIteratorPrototype%': undefined$2,
19267
- '%AsyncFunction%': asyncFunction$1,
19268
- '%AsyncFunctionPrototype%': undefined$2,
19269
- '%AsyncGenerator%': undefined$2,
19270
- '%AsyncGeneratorFunction%': asyncGenFunction$1,
19271
- '%AsyncGeneratorPrototype%': undefined$2,
19272
- '%AsyncIteratorPrototype%': undefined$2,
19273
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
19274
- '%Boolean%': Boolean,
19275
- '%BooleanPrototype%': Boolean.prototype,
19276
- '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
19277
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
19278
- '%Date%': Date,
19279
- '%DatePrototype%': Date.prototype,
19280
- '%decodeURI%': decodeURI,
19281
- '%decodeURIComponent%': decodeURIComponent,
19282
- '%encodeURI%': encodeURI,
19283
- '%encodeURIComponent%': encodeURIComponent,
19284
- '%Error%': Error,
19285
- '%ErrorPrototype%': Error.prototype,
19286
- '%eval%': eval, // eslint-disable-line no-eval
19287
- '%EvalError%': EvalError,
19288
- '%EvalErrorPrototype%': EvalError.prototype,
19289
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
19290
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
19291
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
19292
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
19293
- '%Function%': Function,
19294
- '%FunctionPrototype%': Function.prototype,
19295
- '%Generator%': undefined$2,
19296
- '%GeneratorFunction%': generatorFunction$1,
19297
- '%GeneratorPrototype%': undefined$2,
19298
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
19299
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
19300
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
19301
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
19302
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
19303
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
19304
- '%isFinite%': isFinite,
19305
- '%isNaN%': isNaN,
19306
- '%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
19307
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
19308
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
19309
- '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
19310
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
19311
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
19312
- '%Math%': Math,
19313
- '%Number%': Number,
19314
- '%NumberPrototype%': Number.prototype,
19315
- '%Object%': Object,
19316
- '%ObjectPrototype%': Object.prototype,
19317
- '%ObjProto_toString%': Object.prototype.toString,
19318
- '%ObjProto_valueOf%': Object.prototype.valueOf,
19319
- '%parseFloat%': parseFloat,
19320
- '%parseInt%': parseInt,
19321
- '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
19322
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
19323
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
19324
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
19325
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
19326
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
19327
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
19328
- '%RangeError%': RangeError,
19329
- '%RangeErrorPrototype%': RangeError.prototype,
19330
- '%ReferenceError%': ReferenceError,
19331
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
19332
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
19333
- '%RegExp%': RegExp,
19334
- '%RegExpPrototype%': RegExp.prototype,
19335
- '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
19336
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
19337
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
19338
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
19339
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
19340
- '%String%': String,
19341
- '%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
19342
- '%StringPrototype%': String.prototype,
19343
- '%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
19344
- '%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
19345
- '%SyntaxError%': SyntaxError,
19346
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
19347
- '%ThrowTypeError%': ThrowTypeError$1,
19348
- '%TypedArray%': TypedArray$1,
19349
- '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
19350
- '%TypeError%': $TypeError$4,
19351
- '%TypeErrorPrototype%': $TypeError$4.prototype,
19352
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
19353
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
19354
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
19355
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
19356
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
19357
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
19358
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
19359
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
19360
- '%URIError%': URIError,
19361
- '%URIErrorPrototype%': URIError.prototype,
19362
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
19363
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
19364
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
19365
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
19366
- };
19367
-
19368
-
19369
- var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
19370
-
19371
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
19372
- var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
19373
- var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
19374
- var stringToPath$1 = function stringToPath(string) {
19375
- var result = [];
19376
- $replace$1(string, rePropName$1, function (match, number, quote, subString) {
19377
- result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
19378
- });
19379
- return result;
19380
- };
19381
- /* end adaptation */
19382
-
19383
- var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
19384
- if (!(name in INTRINSICS$1)) {
19385
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
19386
- }
19387
-
19388
- // istanbul ignore if // hopefully this is impossible to test :-)
19389
- if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
19390
- throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
19391
- }
19392
-
19393
- return INTRINSICS$1[name];
19394
- };
19395
-
19396
- var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
19397
- if (typeof name !== 'string' || name.length === 0) {
19398
- throw new TypeError('intrinsic name must be a non-empty string');
19399
- }
19400
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
19401
- throw new TypeError('"allowMissing" argument must be a boolean');
19402
- }
19403
-
19404
- var parts = stringToPath$1(name);
19405
-
19406
- var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
19407
- for (var i = 1; i < parts.length; i += 1) {
19408
- if (value != null) {
19409
- if ($gOPD$3 && (i + 1) >= parts.length) {
19410
- var desc = $gOPD$3(value, parts[i]);
19411
- if (!allowMissing && !(parts[i] in value)) {
19412
- throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
19413
- }
19414
- value = desc ? (desc.get || desc.value) : value[parts[i]];
19415
- } else {
19416
- value = value[parts[i]];
19417
- }
19418
- }
19419
- }
19420
- return value;
19421
- };
19422
-
19423
- var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
19424
- var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
19425
- var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
19426
-
19427
- var callBind$1 = function callBind() {
19428
- return $reflectApply(functionBind, $call$1, arguments);
19429
- };
19430
-
19431
- var apply$1 = function applyBind() {
19432
- return $reflectApply(functionBind, $apply$1, arguments);
19433
- };
19434
- callBind$1.apply = apply$1;
19435
-
19436
- var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
19437
-
19438
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
19439
- var intrinsic = GetIntrinsic$1(name, !!allowMissing);
19440
- if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
19441
- return callBind$1(intrinsic);
19442
- }
19443
- return intrinsic;
19444
- };
19445
-
19446
19404
  var isES5$1 = typeof Object.defineProperty === 'function'
19447
19405
  && typeof Object.defineProperties === 'function';
19448
19406
 
@@ -19460,14 +19418,14 @@ if (typeof Promise !== 'function') {
19460
19418
 
19461
19419
 
19462
19420
 
19463
- var $slice = callBound$1('Array.prototype.slice');
19464
- var $concat$1 = callBound$1('Array.prototype.concat');
19465
- var $forEach = callBound$1('Array.prototype.forEach');
19421
+ var $slice = callBound('Array.prototype.slice');
19422
+ var $concat$1 = callBound('Array.prototype.concat');
19423
+ var $forEach = callBound('Array.prototype.forEach');
19466
19424
 
19467
- var hasSymbols$4 = hasSymbols$1();
19425
+ var hasSymbols$3 = hasSymbols$1();
19468
19426
 
19469
- var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
19470
- var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
19427
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
19428
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
19471
19429
 
19472
19430
  var implementation$3 = function promisify(orig) {
19473
19431
  if (typeof orig !== 'function') {
@@ -19477,7 +19435,7 @@ var implementation$3 = function promisify(orig) {
19477
19435
  throw error;
19478
19436
  }
19479
19437
 
19480
- if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
19438
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
19481
19439
  var customFunction = orig[kCustomPromisifiedSymbol];
19482
19440
  if (typeof customFunction !== 'function') {
19483
19441
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -19606,324 +19564,6 @@ function connect() {
19606
19564
 
19607
19565
  var db = connect;
19608
19566
 
19609
- var crypt = createCommonjsModule(function (module) {
19610
- (function() {
19611
- var base64map
19612
- = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
19613
-
19614
- crypt = {
19615
- // Bit-wise rotation left
19616
- rotl: function(n, b) {
19617
- return (n << b) | (n >>> (32 - b));
19618
- },
19619
-
19620
- // Bit-wise rotation right
19621
- rotr: function(n, b) {
19622
- return (n << (32 - b)) | (n >>> b);
19623
- },
19624
-
19625
- // Swap big-endian to little-endian and vice versa
19626
- endian: function(n) {
19627
- // If number given, swap endian
19628
- if (n.constructor == Number) {
19629
- return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;
19630
- }
19631
-
19632
- // Else, assume array and swap all items
19633
- for (var i = 0; i < n.length; i++)
19634
- n[i] = crypt.endian(n[i]);
19635
- return n;
19636
- },
19637
-
19638
- // Generate an array of any length of random bytes
19639
- randomBytes: function(n) {
19640
- for (var bytes = []; n > 0; n--)
19641
- bytes.push(Math.floor(Math.random() * 256));
19642
- return bytes;
19643
- },
19644
-
19645
- // Convert a byte array to big-endian 32-bit words
19646
- bytesToWords: function(bytes) {
19647
- for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
19648
- words[b >>> 5] |= bytes[i] << (24 - b % 32);
19649
- return words;
19650
- },
19651
-
19652
- // Convert big-endian 32-bit words to a byte array
19653
- wordsToBytes: function(words) {
19654
- for (var bytes = [], b = 0; b < words.length * 32; b += 8)
19655
- bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
19656
- return bytes;
19657
- },
19658
-
19659
- // Convert a byte array to a hex string
19660
- bytesToHex: function(bytes) {
19661
- for (var hex = [], i = 0; i < bytes.length; i++) {
19662
- hex.push((bytes[i] >>> 4).toString(16));
19663
- hex.push((bytes[i] & 0xF).toString(16));
19664
- }
19665
- return hex.join('');
19666
- },
19667
-
19668
- // Convert a hex string to a byte array
19669
- hexToBytes: function(hex) {
19670
- for (var bytes = [], c = 0; c < hex.length; c += 2)
19671
- bytes.push(parseInt(hex.substr(c, 2), 16));
19672
- return bytes;
19673
- },
19674
-
19675
- // Convert a byte array to a base-64 string
19676
- bytesToBase64: function(bytes) {
19677
- for (var base64 = [], i = 0; i < bytes.length; i += 3) {
19678
- var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
19679
- for (var j = 0; j < 4; j++)
19680
- if (i * 8 + j * 6 <= bytes.length * 8)
19681
- base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
19682
- else
19683
- base64.push('=');
19684
- }
19685
- return base64.join('');
19686
- },
19687
-
19688
- // Convert a base-64 string to a byte array
19689
- base64ToBytes: function(base64) {
19690
- // Remove non-base-64 characters
19691
- base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
19692
-
19693
- for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
19694
- imod4 = ++i % 4) {
19695
- if (imod4 == 0) continue;
19696
- bytes.push(((base64map.indexOf(base64.charAt(i - 1))
19697
- & (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
19698
- | (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
19699
- }
19700
- return bytes;
19701
- }
19702
- };
19703
-
19704
- module.exports = crypt;
19705
- })();
19706
- });
19707
-
19708
- var charenc = {
19709
- // UTF-8 encoding
19710
- utf8: {
19711
- // Convert a string to a byte array
19712
- stringToBytes: function(str) {
19713
- return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
19714
- },
19715
-
19716
- // Convert a byte array to a string
19717
- bytesToString: function(bytes) {
19718
- return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
19719
- }
19720
- },
19721
-
19722
- // Binary encoding
19723
- bin: {
19724
- // Convert a string to a byte array
19725
- stringToBytes: function(str) {
19726
- for (var bytes = [], i = 0; i < str.length; i++)
19727
- bytes.push(str.charCodeAt(i) & 0xFF);
19728
- return bytes;
19729
- },
19730
-
19731
- // Convert a byte array to a string
19732
- bytesToString: function(bytes) {
19733
- for (var str = [], i = 0; i < bytes.length; i++)
19734
- str.push(String.fromCharCode(bytes[i]));
19735
- return str.join('');
19736
- }
19737
- }
19738
- };
19739
-
19740
- var charenc_1 = charenc;
19741
-
19742
- /*!
19743
- * Determine if an object is a Buffer
19744
- *
19745
- * @author Feross Aboukhadijeh <https://feross.org>
19746
- * @license MIT
19747
- */
19748
-
19749
- // The _isBuffer check is for Safari 5-7 support, because it's missing
19750
- // Object.prototype.constructor. Remove this eventually
19751
- var isBuffer_1$1 = function (obj) {
19752
- return obj != null && (isBuffer$1(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
19753
- };
19754
-
19755
- function isBuffer$1 (obj) {
19756
- return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
19757
- }
19758
-
19759
- // For Node v0.10 support. Remove this eventually.
19760
- function isSlowBuffer (obj) {
19761
- return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer$1(obj.slice(0, 0))
19762
- }
19763
-
19764
- var md5 = createCommonjsModule(function (module) {
19765
- (function(){
19766
- var crypt$1 = crypt,
19767
- utf8 = charenc_1.utf8,
19768
- isBuffer = isBuffer_1$1,
19769
- bin = charenc_1.bin,
19770
-
19771
- // The core
19772
- md5 = function (message, options) {
19773
- // Convert to byte array
19774
- if (message.constructor == String)
19775
- if (options && options.encoding === 'binary')
19776
- message = bin.stringToBytes(message);
19777
- else
19778
- message = utf8.stringToBytes(message);
19779
- else if (isBuffer(message))
19780
- message = Array.prototype.slice.call(message, 0);
19781
- else if (!Array.isArray(message))
19782
- message = message.toString();
19783
- // else, assume byte array already
19784
-
19785
- var m = crypt$1.bytesToWords(message),
19786
- l = message.length * 8,
19787
- a = 1732584193,
19788
- b = -271733879,
19789
- c = -1732584194,
19790
- d = 271733878;
19791
-
19792
- // Swap endian
19793
- for (var i = 0; i < m.length; i++) {
19794
- m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
19795
- ((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
19796
- }
19797
-
19798
- // Padding
19799
- m[l >>> 5] |= 0x80 << (l % 32);
19800
- m[(((l + 64) >>> 9) << 4) + 14] = l;
19801
-
19802
- // Method shortcuts
19803
- var FF = md5._ff,
19804
- GG = md5._gg,
19805
- HH = md5._hh,
19806
- II = md5._ii;
19807
-
19808
- for (var i = 0; i < m.length; i += 16) {
19809
-
19810
- var aa = a,
19811
- bb = b,
19812
- cc = c,
19813
- dd = d;
19814
-
19815
- a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
19816
- d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
19817
- c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
19818
- b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
19819
- a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
19820
- d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
19821
- c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
19822
- b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
19823
- a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
19824
- d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
19825
- c = FF(c, d, a, b, m[i+10], 17, -42063);
19826
- b = FF(b, c, d, a, m[i+11], 22, -1990404162);
19827
- a = FF(a, b, c, d, m[i+12], 7, 1804603682);
19828
- d = FF(d, a, b, c, m[i+13], 12, -40341101);
19829
- c = FF(c, d, a, b, m[i+14], 17, -1502002290);
19830
- b = FF(b, c, d, a, m[i+15], 22, 1236535329);
19831
-
19832
- a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
19833
- d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
19834
- c = GG(c, d, a, b, m[i+11], 14, 643717713);
19835
- b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
19836
- a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
19837
- d = GG(d, a, b, c, m[i+10], 9, 38016083);
19838
- c = GG(c, d, a, b, m[i+15], 14, -660478335);
19839
- b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
19840
- a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
19841
- d = GG(d, a, b, c, m[i+14], 9, -1019803690);
19842
- c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
19843
- b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
19844
- a = GG(a, b, c, d, m[i+13], 5, -1444681467);
19845
- d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
19846
- c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
19847
- b = GG(b, c, d, a, m[i+12], 20, -1926607734);
19848
-
19849
- a = HH(a, b, c, d, m[i+ 5], 4, -378558);
19850
- d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
19851
- c = HH(c, d, a, b, m[i+11], 16, 1839030562);
19852
- b = HH(b, c, d, a, m[i+14], 23, -35309556);
19853
- a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
19854
- d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
19855
- c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
19856
- b = HH(b, c, d, a, m[i+10], 23, -1094730640);
19857
- a = HH(a, b, c, d, m[i+13], 4, 681279174);
19858
- d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
19859
- c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
19860
- b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
19861
- a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
19862
- d = HH(d, a, b, c, m[i+12], 11, -421815835);
19863
- c = HH(c, d, a, b, m[i+15], 16, 530742520);
19864
- b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
19865
-
19866
- a = II(a, b, c, d, m[i+ 0], 6, -198630844);
19867
- d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
19868
- c = II(c, d, a, b, m[i+14], 15, -1416354905);
19869
- b = II(b, c, d, a, m[i+ 5], 21, -57434055);
19870
- a = II(a, b, c, d, m[i+12], 6, 1700485571);
19871
- d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
19872
- c = II(c, d, a, b, m[i+10], 15, -1051523);
19873
- b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
19874
- a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
19875
- d = II(d, a, b, c, m[i+15], 10, -30611744);
19876
- c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
19877
- b = II(b, c, d, a, m[i+13], 21, 1309151649);
19878
- a = II(a, b, c, d, m[i+ 4], 6, -145523070);
19879
- d = II(d, a, b, c, m[i+11], 10, -1120210379);
19880
- c = II(c, d, a, b, m[i+ 2], 15, 718787259);
19881
- b = II(b, c, d, a, m[i+ 9], 21, -343485551);
19882
-
19883
- a = (a + aa) >>> 0;
19884
- b = (b + bb) >>> 0;
19885
- c = (c + cc) >>> 0;
19886
- d = (d + dd) >>> 0;
19887
- }
19888
-
19889
- return crypt$1.endian([a, b, c, d]);
19890
- };
19891
-
19892
- // Auxiliary functions
19893
- md5._ff = function (a, b, c, d, x, s, t) {
19894
- var n = a + (b & c | ~b & d) + (x >>> 0) + t;
19895
- return ((n << s) | (n >>> (32 - s))) + b;
19896
- };
19897
- md5._gg = function (a, b, c, d, x, s, t) {
19898
- var n = a + (b & d | c & ~d) + (x >>> 0) + t;
19899
- return ((n << s) | (n >>> (32 - s))) + b;
19900
- };
19901
- md5._hh = function (a, b, c, d, x, s, t) {
19902
- var n = a + (b ^ c ^ d) + (x >>> 0) + t;
19903
- return ((n << s) | (n >>> (32 - s))) + b;
19904
- };
19905
- md5._ii = function (a, b, c, d, x, s, t) {
19906
- var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
19907
- return ((n << s) | (n >>> (32 - s))) + b;
19908
- };
19909
-
19910
- // Package private blocksize
19911
- md5._blocksize = 16;
19912
- md5._digestsize = 16;
19913
-
19914
- module.exports = function (message, options) {
19915
- if (message === undefined || message === null)
19916
- throw new Error('Illegal argument ' + message);
19917
-
19918
- var digestbytes = crypt$1.wordsToBytes(md5(message, options));
19919
- return options && options.asBytes ? digestbytes :
19920
- options && options.asString ? bin.bytesToString(digestbytes) :
19921
- crypt$1.bytesToHex(digestbytes);
19922
- };
19923
-
19924
- })();
19925
- });
19926
-
19927
19567
  var _this$3 = undefined;
19928
19568
 
19929
19569
  var config = {