@clickview/reports 0.0.7-rc.2 → 0.0.7-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/scripts/11-18dce5a0a0-reports.chunk.js +1 -0
- package/dist/scripts/7-9b6448fe2d-reports.chunk.js +1 -0
- package/dist/scripts/7-9fd4b6fd37-reports.chunk.js +1 -0
- package/dist/scripts/bundle-47dde9cba2.min.js +19 -0
- package/dist/scripts/bundle-4928fa949c.min.js +19 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_reports=window.webpackJsonp_clickview_reports||[]).push([[7],{1e3:function(t,e){},1001:function(t,e,n){"use strict";var r;!function(t){t[t.Row=0]="Row",t[t.LargeRow=1]="LargeRow",t[t.Hero=2]="Hero",t[t.ResourcesTile=3]="ResourcesTile"}(r||(r={}))},1002:function(t,e){},1003:function(t,e){},1004:function(t,e){},1005:function(t,e){},1006:function(t,e){},1007:function(t,e){},1008:function(t,e){},1009:function(t,e){},1010:function(t,e){},1011:function(t,e){},1012:function(t,e){},1013:function(t,e){},1014:function(t,e){},1015:function(t,e){},1016:function(t,e){},1017:function(t,e){},1018:function(t,e){},1019:function(t,e){},1020:function(t,e){},1021:function(t,e){},1022:function(t,e){},1023:function(t,e){},1024:function(t,e){},1025:function(t,e){},1026:function(t,e){},1027:function(t,e){},1028:function(t,e){},1029:function(t,e){},1030:function(t,e){},1031:function(t,e){},1032:function(t,e){},1033:function(t,e){},1034:function(t,e){},1035:function(t,e){},1036:function(t,e){},1037:function(t,e){},1038:function(t,e,n){"use strict";var r=n(1039);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}))},1039:function(t,e){},1040:function(t,e,n){"use strict";var r=n(1041);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(1042);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(1043);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(1044);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(1045);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}));var u=n(1046);n.o(u,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return u.InteractionTypeId}));var l=n(1047);n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}));var s=n(1048);n.o(s,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return s.InteractionTypeId}));var f=n(1049);n.o(f,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return f.InteractionTypeId}));var p=n(1050);n.o(p,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return p.InteractionTypeId}));var y=n(1051);n.o(y,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return y.InteractionTypeId}));n(1052)},1041:function(t,e){},1042:function(t,e){},1043:function(t,e){},1044:function(t,e){},1045:function(t,e){},1046:function(t,e){},1047:function(t,e){},1048:function(t,e){},1049:function(t,e){},1050:function(t,e){},1051:function(t,e){},1052:function(t,e,n){"use strict"},1053:function(t,e,n){"use strict";var r=n(1054);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(1055);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}))},1054:function(t,e){},1055:function(t,e){},1056:function(t,e,n){"use strict";var r=n(1057);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(1058);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(1059);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(1060);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(1061);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}));var u=n(1062);n.o(u,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return u.InteractionTypeId}));var l=n(1063);n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}))},1057:function(t,e){},1058:function(t,e){},1059:function(t,e){},1060:function(t,e){},1061:function(t,e){},1062:function(t,e){},1063:function(t,e){},1064:function(t,e){},1065:function(t,e){},1066:function(t,e){},1067:function(t,e){},1068:function(t,e){},1069:function(t,e){},1070:function(t,e){},1071:function(t,e){},1072:function(t,e){},1073:function(t,e){},1074:function(t,e,n){t.exports={circleContainer:"_3xehl",backgroundCircle:"_3cBLD",circleSuccess:"_3o9el",circleWarning:"_1_El8",circleDanger:"_1Gugl",lgCircleContainer:"v4B9z",pendingCircle:"_1VB9b",centredPercentageText:"_3Jgjf"}},1079:function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(135),a=n(186),c=n(187),u=n(7),l=n(74);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v="shared.privateResourceError",b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(i,t);var e,n,r,o=y(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,u.a.getPhrase(v,"title"))}return e=i,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return u.a.getPhrase(v,"heading")}},{key:"description",get:function(){return u.a.getPhrase(v,"description")}}])&&f(e.prototype,n),r&&f(e,r),i}(l.a);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(i,t);var e,n,r,o=C(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,u.a.getPhrase("shared.regionLockedResourceError","title"))}return e=i,(n=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return u.a.getPhrase("shared.regionLockedResourceError","heading")}},{key:"description",get:function(){return u.a.getPhrase("shared.regionLockedResourceError","description")}}])&&g(e.prototype,n),r&&g(e,r),i}(l.a),S={notFound:a.a,forbidden:{rating:b,yearLevel:b,region:T,privacy:b},badRequest:c.a};function _(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign(Object.assign({},S),n);if(t){var a=+(null===(e=null==t?void 0:t.toString())||void 0===e?void 0:e.substr(0,1));a!==i.b.ClientError&&a!==i.b.ServerError||(t!==i.a.NotFound?t!==i.a.Forbidden?o.a.ErrorHelper.throw(new r.badRequest):o.a.ErrorHelper.throw(new r.forbidden.privacy):o.a.ErrorHelper.throw(new r.notFound))}}var k=n(280);n.d(e,"a",(function(){return E}));var j={notFound:k.a};function E(t){var e,n;e=t,n=j,Object(r.useEffect)((function(){_(null==e?void 0:e.statusCode,n)}),[null==e?void 0:e.statusCode,n])}},1080:function(t,e,n){"use strict"},1081:function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(7),a=n(33),c=n(923),u=n(34);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var f=i.a.encloseNamespace("reportsShared.anonymiseAction");function p(){var t=l(Object(a.a)(u.a.ANONYMISE_USERS,!1),2),e=t[0],n=t[1];return o.a.createElement("div",{className:"d-flex align-items center justify-content-between",onClick:function(){return n(!e)}},o.a.createElement("span",{className:"mr-3"},f("hideNames")),o.a.createElement(c.a,{on:e,onClick:function(){}}))}function y(){return[{label:function(){return o.a.createElement(p,null)}}]}n.d(e,"a",(function(){return y}))},1082:function(t,e,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i);function c(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("g",{transform:"translate(1.000000, 1.000000)"},a.a.createElement("g",{transform:"translate(5.000000, 3.000000)"},a.a.createElement("path",{d:"M5.129,4.52970994e-14 C5.80434375,4.52970994e-14 6.35378125,0.5494375 6.35378125,1.22478125 L6.35378125,1.22478125 L6.35378125,4.12053125 C6.35378125,4.795875 5.80434375,5.3453125 5.129,5.3453125 L5.129,5.3453125 L5.01765625,5.3453125 L5.01765625,5.7625625 C5.14371875,5.7230625 5.2778125,5.70175 5.4166875,5.70175 C5.8579375,5.70175 6.24996875,5.9166875 6.4935,6.24740625 C6.6880625,6.13675 6.9129375,6.0735 7.15228125,6.0735 C7.61575,6.0735 8.024875,6.31059375 8.26471875,6.6699375 C8.450875,6.57140625 8.6629375,6.51559375 8.88784375,6.51559375 C9.6248125,6.51559375 10.2244688,7.11515625 10.2244688,7.85209375 L10.2244688,7.85209375 L10.2239688,11.0194063 C10.22375,12.719125 9.73003125,14.3683438 8.79625,15.7887188 C8.7095625,15.9205625 8.562375,15.9999688 8.4045625,15.9999688 L8.4045625,15.9999688 L3.1323125,15.9999688 C3.0124375,15.9999688 2.897125,15.9540625 2.8100625,15.8716563 C2.80745313,15.8691864 2.80274841,15.8647056 2.79608533,15.8582606 L2.73370254,15.7963915 C2.38498908,15.4434944 0.983540179,13.9211451 0.6698125,11.95725 L0.6698125,11.95725 L0.0538125,9.3209375 C-0.03209375,8.95328125 0.043625,8.5848125 0.261625,8.3100625 C0.46915625,8.04846875 0.78865625,7.89309375 1.14465625,7.8788125 C1.47575,7.8150625 1.81340625,7.8773125 2.10134375,8.0561875 C2.19071875,8.1116875 2.272125,8.17646875 2.34459375,8.24915625 L2.34459375,8.24915625 L2.34459375,5.34534375 L2.23325,5.34534375 C1.55790625,5.34534375 1.00846875,4.79590625 1.00846875,4.1205625 L1.00846875,4.1205625 L1.00846875,1.22478125 C1.00846875,0.5494375 1.55790625,4.52970994e-14 2.23325,4.52970994e-14 L2.23325,4.52970994e-14 Z M3.6810625,3.4381875 C3.46103125,3.4381875 3.282,3.61721875 3.282,3.83725 L3.282,3.83725 L3.282,11.2870938 C3.282,11.4215625 3.22428125,11.5495625 3.12346875,11.6385313 C3.02265625,11.7275 2.88853125,11.7689063 2.7550625,11.7522188 L2.7550625,11.7522188 L2.7175,11.7475313 C2.5228125,11.7231875 2.36390625,11.580125 2.31925,11.3890625 L2.31925,11.3890625 L1.78459375,9.10071875 C1.76034375,8.9969375 1.69715625,8.9088125 1.60659375,8.8525625 C1.51603125,8.7963125 1.407,8.78928125 1.30065625,8.79571875 C1.2585,8.79828125 1.23959375,8.8036875 1.194,8.80803125 C1.10340625,8.81665625 1.035625,8.84275 0.996,8.89271875 C0.956375,8.9426875 0.94596875,9.019 0.96665625,9.107625 L0.96665625,9.107625 L1.58653125,11.7605625 C1.5891875,11.7719063 1.59140625,11.7833438 1.59321875,11.794875 C1.83815625,13.3630313 2.95146875,14.6606563 3.32925,15.0625 L3.32925,15.0625 L8.1469375,15.0625 C8.893,13.8445 9.28625,12.4519688 9.2864375,11.0193125 L9.2864375,11.0193125 L9.2869375,7.85203125 C9.2869375,7.63209375 9.10790625,7.4530625 8.887875,7.4530625 C8.66784375,7.4530625 8.4888125,7.63209375 8.4888125,7.852125 L8.4888125,7.852125 L8.4888125,8.61359375 C8.4888125,8.87246875 8.2789375,9.08234375 8.0200625,9.08234375 C7.7611875,9.08234375 7.5513125,8.87246875 7.5513125,8.61359375 L7.5513125,8.61359375 L7.5513125,7.4100625 C7.5513125,7.19003125 7.3723125,7.011 7.15228125,7.011 C6.93225,7.011 6.75321875,7.19003125 6.75321875,7.4100625 L6.75321875,7.4100625 L6.75321875,8.28625 C6.75321875,8.545125 6.54334375,8.755 6.28446875,8.755 C6.02559375,8.755 5.81571875,8.545125 5.81571875,8.28625 L5.81571875,8.28625 L5.81571875,7.0383125 C5.81571875,6.81828125 5.6366875,6.63928125 5.41665625,6.63928125 C5.196625,6.63928125 5.017625,6.81828125 5.017625,7.0383125 L5.017625,7.0383125 L5.017625,8.232875 C5.017625,8.49175 4.80775,8.701625 4.548875,8.701625 C4.29,8.701625 4.080125,8.49175 4.080125,8.232875 L4.080125,8.232875 L4.080125,3.83725 C4.080125,3.61721875 3.90109375,3.4381875 3.6810625,3.4381875 Z M11.131,-1.59872116e-14 C11.8064063,-1.59872116e-14 12.3558125,0.5494375 12.3558125,1.22478125 L12.3558125,1.22478125 L12.3558125,4.1205625 C12.3558125,4.79590625 11.806375,5.34534375 11.131,5.34534375 L11.131,5.34534375 L8.23525,5.34534375 C7.55990625,5.34534375 7.01046875,4.79590625 7.01046875,4.1205625 L7.01046875,4.1205625 L7.01046875,1.22478125 C7.01046875,0.5494375 7.55990625,-1.59872116e-14 8.23525,-1.59872116e-14 L8.23525,-1.59872116e-14 Z M11.1310313,0.9375 L8.23528125,0.9375 C8.076875,0.9375 7.948,1.066375 7.948,1.22478125 L7.948,1.22478125 L7.948,4.1205625 C7.948,4.27896875 8.076875,4.40784375 8.23528125,4.40784375 L8.23528125,4.40784375 L11.1310313,4.40784375 C11.2894375,4.40784375 11.4183438,4.27896875 11.4183438,4.1205625 L11.4183438,4.1205625 L11.4183438,1.22478125 C11.4183438,1.066375 11.2894375,0.9375 11.1310313,0.9375 L11.1310313,0.9375 Z M5.129,0.9375 L2.23325,0.9375 C2.07484375,0.9375 1.94596875,1.066375 1.94596875,1.22478125 L1.94596875,1.22478125 L1.94596875,4.1205625 C1.94596875,4.27896875 2.07484375,4.40784375 2.2331875,4.40784375 L2.2331875,4.40784375 L2.34453125,4.40784375 L2.34453125,3.83721875 C2.34453125,3.10025 2.944125,2.50065625 3.68109375,2.50065625 C4.4180625,2.50065625 5.01765625,3.10025 5.01765625,3.83721875 L5.01765625,3.83721875 L5.01765625,4.40784375 L5.129,4.40784375 C5.28740625,4.40784375 5.41628125,4.27896875 5.41628125,4.1205625 L5.41628125,4.1205625 L5.41628125,1.22478125 C5.41628125,1.066375 5.28740625,0.9375 5.129,0.9375 L5.129,0.9375 Z"}))))}function u(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("g",{transform:"translate(1.000000, 1.000000)"},a.a.createElement("path",{d:"M16.5547082,3.66666667 C17.0307547,3.66666667 17.4166667,4.10561087 17.4166667,4.65176211 L17.4166667,17.3482379 C17.4166667,17.8922911 17.0325905,18.3333333 16.5547082,18.3333333 L5.44529184,18.3333333 C4.9692453,18.3333333 4.58333333,17.8943891 4.58333333,17.3482379 L4.58333333,4.65176211 C4.58333333,4.10770892 4.96740951,3.66666667 5.44529184,3.66666667 L16.5547082,3.66666667 Z M6.64149485,4.58362946 L5.39188119,4.58333333 L5.39188119,4.58333333 L5.39140886,4.63124366 C5.39133174,4.64701901 5.39125542,4.66659213 5.39117991,4.68981696 L5.39052172,4.99349248 C5.39045096,5.0373129 5.39038099,5.08434682 5.39031181,5.13444817 L5.38951907,5.87355262 C5.38945612,5.94585631 5.38939393,6.02064317 5.38933252,6.09776711 L5.38846857,7.41164942 C5.38841476,7.50849255 5.38836171,7.60694243 5.3883094,7.706853 L5.38744819,9.63144592 C5.38740476,9.7436262 5.38736207,9.85639075 5.3873201,9.96959351 L5.38636125,13.0260679 C5.38633211,13.1353268 5.38630366,13.2437094 5.38627591,13.3510694 L5.38541667,17.4092786 L5.38541667,17.4092786 C5.38541667,17.4094727 5.40139773,17.4096625 5.43215374,17.4098483 L5.66621602,17.410657 C5.70239956,17.4107438 5.74182455,17.4108296 5.78434021,17.4109144 L6.24635879,17.4116506 C6.30606164,17.4117294 6.36840286,17.4118072 6.43323171,17.411884 L7.07978636,17.412549 C7.15818403,17.4126199 7.23861702,17.4126899 7.32093458,17.4127589 L8.38955516,17.4135407 C8.48453695,17.413602 8.58080025,17.4136624 8.67819428,17.4137218 L10.2050643,17.4145426 C10.3099966,17.4145926 10.4153058,17.4146418 10.5208411,17.41469 L12.7186143,17.4155682 C12.8199282,17.4156037 12.9204129,17.4156383 13.0199177,17.4156721 L16.5962838,17.4166643 C16.6041235,17.4166659 16.6081188,17.4166667 16.6081188,17.4166667 L16.6083574,17.404543 L16.6083574,17.404543 L16.6092636,17.1281822 C16.609336,17.0909349 16.6094075,17.0503279 16.6094783,17.0065075 L16.6102897,16.3357629 C16.6103542,16.2685716 16.610418,16.1987511 16.6104809,16.1264474 L16.6111995,15.1489598 C16.6112564,15.059128 16.6113124,14.9673972 16.6113678,14.8739137 L16.6122825,13.0334559 C16.6123288,12.924197 16.6123745,12.8140617 16.6124193,12.703196 L16.6132553,10.3177583 C16.6132901,10.2038252 16.6133242,10.0901843 16.6133575,9.97698153 L16.6143069,6.10515513 C16.6143225,6.02803119 16.6143373,5.95324434 16.6143515,5.88094064 L16.6145833,4.59072136 L16.6145833,4.59072136 L16.6027483,4.59043343 L16.6027483,4.59043343 L16.5107818,4.58987601 C16.4881671,4.58978515 16.4620094,4.5896953 16.4324595,4.58960647 L16.0789915,4.58883422 C16.0304453,4.58875142 15.9789591,4.58866963 15.9246838,4.58858883 L15.1491499,4.58766678 C15.0749737,4.58759388 14.9986113,4.58752196 14.9202136,4.58745101 L14.1637515,4.58683864 C14.0744988,4.5867735 13.983663,4.58670932 13.891395,4.58664609 L12.4188002,4.58576887 C12.3159787,4.5857151 12.2124787,4.58566226 12.108451,4.58561036 L10.2115288,4.58477559 C10.1065966,4.58473469 10.0020412,4.58469469 9.89801354,4.5846556 L6.8573146,4.58368638 C6.78313834,4.58366655 6.71114817,4.58364758 6.64149485,4.58362946 Z M9.80280172,11.9166667 C10.0210177,11.9166667 10.1979167,12.1218695 10.1979167,12.375 C10.1979167,12.6281305 10.0210177,12.8333333 9.80280172,12.8333333 L9.80280172,12.8333333 L7.38469828,12.8333333 C7.16648232,12.8333333 6.98958333,12.6281305 6.98958333,12.375 C6.98958333,12.1218695 7.16648232,11.9166667 7.38469828,11.9166667 L7.38469828,11.9166667 Z M14.5678761,9.16666667 C14.8122845,9.16666667 15.0104167,9.37186949 15.0104167,9.625 C15.0104167,9.87813051 14.8122845,10.0833333 14.5678761,10.0833333 L14.5678761,10.0833333 L7.4321239,10.0833333 C7.18771549,10.0833333 6.98958333,9.87813051 6.98958333,9.625 C6.98958333,9.37186949 7.18771549,9.16666667 7.4321239,9.16666667 L7.4321239,9.16666667 Z M14.5678761,6.41666667 C14.8122845,6.41666667 15.0104167,6.62186949 15.0104167,6.875 C15.0104167,7.12813051 14.8122845,7.33333333 14.5678761,7.33333333 L14.5678761,7.33333333 L7.4321239,7.33333333 C7.18771549,7.33333333 6.98958333,7.12813051 6.98958333,6.875 C6.98958333,6.62186949 7.18771549,6.41666667 7.4321239,6.41666667 L7.4321239,6.41666667 Z"})))}function l(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("g",{transform:"translate(2.000000, 2.000000)"},a.a.createElement("g",{transform:"translate(3.500000, 2.000000)"},a.a.createElement("path",{d:"M10.78125,7.53125 C11.0285625,7.53125 11.2715937,7.59621875 11.4840312,7.71909375 C11.7963125,7.89971875 12.1875,7.6735625 12.1875,7.31334375 L12.1875,3.3125 C12.1875,3.053625 11.977625,2.84375 11.71875,2.84375 L8.38675,2.84375 C8.42015625,2.680125 8.4375,2.51184375 8.4375,2.34375 C8.4375,1.05140625 7.38609375,0 6.09375,0 C4.80140625,0 3.75,1.05140625 3.75,2.34375 C3.75,2.51184375 3.76734375,2.680125 3.80075,2.84375 L0.46875,2.84375 C0.209875,2.84375 0,3.053625 0,3.3125 L0,7.31334375 C0,7.674125 0.391625,7.899375 0.70346875,7.71909375 C0.91590625,7.59621875 1.1589375,7.53125 1.40625,7.53125 C2.18165625,7.53125 2.8125,8.16209375 2.8125,8.9375 C2.8125,9.71290625 2.18165625,10.34375 1.40625,10.34375 C1.1589375,10.34375 0.91590625,10.2787812 0.70346875,10.1559062 C0.3911875,9.9753125 0,10.2013437 0,10.5616563 L0,15.53125 C0,15.790125 0.209875,16 0.46875,16 L4.46959375,16 C4.8303125,16 5.05578125,15.608375 4.8753125,15.2965312 C4.7524375,15.0840937 4.6875,14.8410938 4.6875,14.59375 C4.6875,13.8183438 5.31834375,13.1875 6.09375,13.1875 C6.86915625,13.1875 7.5,13.8183438 7.5,14.59375 C7.5,14.8410938 7.4350625,15.0840937 7.31215625,15.2965312 C7.13146875,15.6087812 7.3576875,16 7.717875,16 L11.71875,16 C11.977625,16 12.1875,15.790125 12.1875,15.53125 L12.1875,10.5616563 C12.1875,10.2009375 11.7959375,9.97553125 11.4840312,10.1559063 C11.2715937,10.2787812 11.0285625,10.34375 10.78125,10.34375 C10.0058438,10.34375 9.375,9.71290625 9.375,8.9375 C9.375,8.16209375 10.0058438,7.53125 10.78125,7.53125 Z M10.78125,11.28125 C10.9393125,11.28125 11.096375,11.2652812 11.25,11.234 L11.25,15.0625 L8.39021875,15.0625 C8.42153125,14.9088438 8.4375,14.7518125 8.4375,14.59375 C8.4375,13.3014062 7.38609375,12.25 6.09375,12.25 C4.80140625,12.25 3.75,13.3014062 3.75,14.59375 C3.75,14.7518125 3.76596875,14.9088438 3.79728125,15.0625 L0.9375,15.0625 L0.9375,11.234 C1.091125,11.2652812 1.2481875,11.28125 1.40625,11.28125 C2.69859375,11.28125 3.75,10.2298438 3.75,8.9375 C3.75,7.64515625 2.69859375,6.59375 1.40625,6.59375 C1.2481875,6.59375 1.091125,6.60971875 0.9375,6.641 L0.9375,3.78125 L4.46959375,3.78125 C4.8303125,3.78125 5.05578125,3.389625 4.8753125,3.07778125 C4.75596875,2.87140625 4.6875,2.603875 4.6875,2.34375 C4.6875,1.56834375 5.31834375,0.9375 6.09375,0.9375 C6.86915625,0.9375 7.5,1.56834375 7.5,2.34375 C7.5,2.603875 7.43153125,2.87140625 7.31215625,3.07778125 C7.13146875,3.39003125 7.3576875,3.78125 7.717875,3.78125 L11.25,3.78125 L11.25,6.641 C11.096375,6.60971875 10.9393125,6.59375 10.78125,6.59375 C9.48890625,6.59375 8.4375,7.64515625 8.4375,8.9375 C8.4375,10.2298438 9.48890625,11.28125 10.78125,11.28125 Z"}))))}function s(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("g",{transform:"translate(1.000000, 1.000000)"},a.a.createElement("path",{d:"M15.125,3.66666667 C16.8969136,3.66666667 18.3333333,5.10308643 18.3333333,6.875 L18.3333333,15.125 C18.3333333,16.8969136 16.8969136,18.3333333 15.125,18.3333333 L6.875,18.3333333 C5.10308643,18.3333333 3.66666667,16.8969136 3.66666667,15.125 L3.66666667,6.875 C3.66666667,5.10308643 5.10308643,3.66666667 6.875,3.66666667 L15.125,3.66666667 Z M15.125,4.58333333 L6.875,4.58333333 C5.60934745,4.58333333 4.58333333,5.60934745 4.58333333,6.875 L4.58333333,15.125 C4.58333333,16.3906526 5.60934745,17.4166667 6.875,17.4166667 L15.125,17.4166667 C16.3906526,17.4166667 17.4166667,16.3906526 17.4166667,15.125 L17.4166667,6.875 C17.4166667,5.60934745 16.3906526,4.58333333 15.125,4.58333333 Z M7.33333333,13.2916667 C7.83959435,13.2916667 8.25,13.7020723 8.25,14.2083333 C8.25,14.7145944 7.83959435,15.125 7.33333333,15.125 C6.82707231,15.125 6.41666667,14.7145944 6.41666667,14.2083333 C6.41666667,13.7020723 6.82707231,13.2916667 7.33333333,13.2916667 Z M15.0349223,13.75 C15.2880528,13.75 15.4932556,13.9552028 15.4932556,14.2083333 C15.4932556,14.4614638 15.2880528,14.6666667 15.0349223,14.6666667 L9.625,14.6666667 C9.37186949,14.6666667 9.16666667,14.4614638 9.16666667,14.2083333 C9.16666667,13.9552028 9.37186949,13.75 9.625,13.75 L15.0349223,13.75 Z M7.33333333,10.0833333 C7.83959435,10.0833333 8.25,10.493739 8.25,11 C8.25,11.506261 7.83959435,11.9166667 7.33333333,11.9166667 C6.82707231,11.9166667 6.41666667,11.506261 6.41666667,11 C6.41666667,10.493739 6.82707231,10.0833333 7.33333333,10.0833333 Z M15.125,10.5416667 C15.3781305,10.5416667 15.5833333,10.7468695 15.5833333,11 C15.5833333,11.2531305 15.3781305,11.4583333 15.125,11.4583333 L9.625,11.4583333 C9.37186949,11.4583333 9.16666667,11.2531305 9.16666667,11 C9.16666667,10.7468695 9.37186949,10.5416667 9.625,10.5416667 L15.125,10.5416667 Z M7.33333333,6.875 C7.83959435,6.875 8.25,7.28540565 8.25,7.79166667 C8.25,8.29792769 7.83959435,8.70833333 7.33333333,8.70833333 C6.82707231,8.70833333 6.41666667,8.29792769 6.41666667,7.79166667 C6.41666667,7.28540565 6.82707231,6.875 7.33333333,6.875 Z M15.125,7.33333333 C15.3781305,7.33333333 15.5833333,7.53853616 15.5833333,7.79166667 C15.5833333,8.04479718 15.3781305,8.25 15.125,8.25 L9.625,8.25 C9.37186949,8.25 9.16666667,8.04479718 9.16666667,7.79166667 C9.16666667,7.53853616 9.37186949,7.33333333 9.625,7.33333333 L15.125,7.33333333 Z"})))}function f(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("path",{d:"M19,5 C19.5522847,5 20,5.44771525 20,6 L20,18 C20,18.5522847 19.5522847,19 19,19 L5,19 C4.44771525,19 4,18.5522847 4,18 L4,6 C4,5.44771525 4.44771525,5 5,5 L19,5 Z M19,6 L5,6 L5,18 L19,18 L19,6 Z M13.5270821,8.72788029 L17.419465,14.7278803 C17.5697525,14.9595444 17.5037838,15.2691774 17.2721197,15.419465 C17.0404556,15.5697525 16.7308226,15.5037838 16.580535,15.2721197 L13.0911139,9.89327406 L11.4091273,12.2874279 C11.2306031,12.5415408 10.866042,12.5731488 10.6464466,12.3535534 L10.0540971,11.7612039 L7.4,15.3 C7.23431458,15.5209139 6.9209139,15.5656854 6.7,15.4 C6.4790861,15.2343146 6.43431458,14.9209139 6.6,14.7 L9.6,10.7 C9.7825648,10.4565803 10.1383987,10.4312919 10.3535534,10.6464466 L10.9328729,11.2257661 L12.6984898,8.71257207 C12.9021272,8.42271292 13.3342903,8.43069712 13.5270821,8.72788029 Z M8,7.5 C8.82842712,7.5 9.5,8.17157288 9.5,9 C9.5,9.82842712 8.82842712,10.5 8,10.5 C7.17157288,10.5 6.5,9.82842712 6.5,9 C6.5,8.17157288 7.17157288,7.5 8,7.5 Z M8,8.5 C7.72385763,8.5 7.5,8.72385763 7.5,9 C7.5,9.27614237 7.72385763,9.5 8,9.5 C8.27614237,9.5 8.5,9.27614237 8.5,9 C8.5,8.72385763 8.27614237,8.5 8,8.5 Z"}))}function p(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("g",{transform:"translate(1.000000, 1.000000)"},a.a.createElement("path",{d:"M15.0505278,14.68561 L15.4700891,14.1696106 C16.3000604,13.1488666 16.7599031,11.8782117 16.7599031,10.5341182 C16.7599031,7.34884269 14.1777271,4.76666667 10.9924516,4.76666667 C7.80717602,4.76666667 5.225,7.34884269 5.225,10.5341182 C5.225,13.7193938 7.80717602,16.3015698 10.9924516,16.3015698 C11.8841204,16.3015698 12.744766,16.0998293 13.5263257,15.7168631 L13.9796508,15.4947327 L15.7162646,16.2389957 L15.0505278,14.68561 Z M17.8106022,18.3333333 L14.0103444,16.7046514 C13.0994588,17.1509876 12.0752185,17.4015698 10.9924516,17.4015698 C7.1996628,17.4015698 4.125,14.326907 4.125,10.5341182 C4.125,6.74132946 7.1996628,3.66666667 10.9924516,3.66666667 C14.7852403,3.66666667 17.8599031,6.74132946 17.8599031,10.5341182 C17.8599031,12.175402 17.2841351,13.682208 16.3235621,14.8635731 L17.8106022,18.3333333 Z"})))}var y,h=n(895),d=n(25);function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return g}));var b=o.a.encloseNamespace("shared.interactionTypes"),m=(v(y={},h.InteractionTypeId.Annotation,(function(){return{name:b("annotationName"),bgClassName:"bg-pink",Svg:p,typeName:"annotation"}})),v(y,h.InteractionTypeId.Image,(function(){return{name:b("imageName"),bgClassName:"bg-orange",Svg:f,typeName:"image"}})),v(y,h.InteractionTypeId.MissingWord,(function(){return{name:b("missingWordName"),prompt:b("missingWordPrompt"),bgClassName:"bg-teal",Svg:l,typeName:"missing-word"}})),v(y,h.InteractionTypeId.MultipleChoice,(function(){return{name:b("multipleChoiceName"),prompt:b("multipleChoicePrompt"),bgClassName:"bg-blue",Svg:s,typeName:"multiple-choice"}})),v(y,h.InteractionTypeId.ShortAnswer,(function(){return{name:b("shortAnswerName"),prompt:b("shortAnswerPrompt"),bgClassName:"bg-green",Svg:u,typeName:"short-answer"}})),v(y,h.InteractionTypeId.TrueOrFalse,(function(){return{name:b("trueOrFalseName"),prompt:b("trueOrFalsePrompt"),bgClassName:"bg-purple",Svg:c,typeName:"true-or-false"}})),y),g={getTypeInfo:function(t){var e=m[t];if(e)return e();r.a.ErrorHelper.throw(new d.a("No type info defined for typeId: ".concat(t)))}}},1083:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(880);function a(t){return o.a.createElement(i.a,{layout:t.layout,className:t.className,percentage:0,customLabel:"--%"})}},1100:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(0),o=n.n(r),i=n(19),a=n(7),c=n(252),u=n(872),l=n(880),s=n(1083),f=a.a.encloseNamespace("interactives.engagementOverviewCard");function p(t){var e,n,r=Object(c.a)(),a=!r.users&&!r.classrooms&&!r.classroomGroups,p=i.a.useBasicFetch(!!t.objectId&&u.a.aggregateEngagement(t.objectId,r)),y=(null===(e=p.data)||void 0===e?void 0:e.engagementRate)>0?p.data.engagementRate:null;return o.a.createElement("div",{className:"d-flex flex-column rounded bg-white p-3 ".concat(null!==(n=t.className)&&void 0!==n?n:"")},o.a.createElement("h6",{className:"mb-2"},f("heading")),o.a.createElement("div",{className:"d-flex align-items-center flex-grow-1\n ".concat("vertical"===t.layout?" flex-column justify-content-center text-center":"")},!!p.data&&o.a.createElement(o.a.Fragment,null,o.a.createElement(l.a,{percentage:y,layout:l.b.LabelInside}),o.a.createElement("p",{className:"horizontal"===t.layout?"ml-2":""},"number"==typeof y?f(a?"descriptionEveryone":"descriptionSome",{percentage:Math.round(100*p.data.engagementRate)}):f("descriptionNoData"))),!p.data&&o.a.createElement(o.a.Fragment,null,o.a.createElement(s.a,{layout:l.b.LabelInside}),"vertical"===t.layout&&o.a.createElement("p",null," "))))}},1140:function(t,e,n){t.exports={playerContainer:"_3ka90",playerPlaceholder:"_2nP1G",heatMapContainer:"_23J5m",heatMap:"_1XzPA",heatMapTimepointIndicator:"FdoYN",heatMapTimepointIndicatorVisible:"_2VCB5",partialLoadingContainer:"_1nMot"}},1208:function(t,e){},1216:function(t,e){},1247:function(t){t.exports=JSON.parse('{"a":"0.0.10-rc.3"}')},1248:function(t,e,n){},1249:function(t,e,n){},1250:function(t,e,n){},1251:function(t,e,n){},1252:function(t,e,n){},1253:function(t,e,n){},1260:function(t,e,n){},1261:function(t,e,n){},1262:function(t,e,n){},1263:function(t,e,n){},1264:function(t,e,n){},1265:function(t,e,n){},1266:function(t,e,n){},1267:function(t,e,n){},1268:function(t,e,n){},1269:function(t,e,n){},1270:function(t,e,n){},1271:function(t,e,n){},1272:function(t,e,n){},1273:function(t,e,n){},1274:function(t,e,n){},1275:function(t,e,n){},1276:function(t,e,n){},1277:function(t,e,n){},1278:function(t,e,n){},1279:function(t,e,n){},1280:function(t,e,n){},1281:function(t,e,n){},1282:function(t,e,n){},1283:function(t,e,n){},1286:function(t){t.exports=JSON.parse('{"a":"1.0.28-rc.3"}')},1287:function(t,e,n){},1291:function(t,e,n){},1292:function(t,e,n){},1293:function(t,e,n){},1294:function(t,e,n){},1295:function(t,e,n){},1297:function(t,e,n){t.exports={heatMap:"_1Q1T9",legend:"_1Bntr"}},1299:function(t,e,n){t.exports={heatMap:"_1jPS3"}},1300:function(t,e,n){t.exports={viewCountContainer:"lA7G_",engagementPercentageContainer:"_1D53y",engagementGraphContainer:"_8US2G",partialTable:"_3UtUn"}},1479:function(t,e,n){"use strict";n.r(e);var r,o=n(0),i=n.n(o),a=n(19),c=n(7),u=n(867),l=n(39),s=function(t,e,n){var r={mediaId:t.toString(),mediaIdType:e};return n&&(r.shareContextId=n),{url:"/api/player/create-view-key",key:"view:key:".concat(t,":").concat(e),type:l.a.POST,data:r,expiryTime:1/0}},f=n(124);!function(t){t.Share="share",t.MasterObject="masterobject"}(r||(r={}));var p=n(881),y=n(871),h=n(209),d=n(1079),v=n(872),b=n(252),m=n(873),g=n(918),w=n(874),C=n(930),O=n(908),I=n(931),T=n(866),S=(n(1246),n(1247)),_="cv-persisttest",k=function(){try{return window.localStorage.setItem(_,"cv-player-storage-test"),window.localStorage.removeItem(_),!0}catch(t){return!1}},j=function(t){return window.localStorage.getItem(t)},E=function(t,e){window.localStorage.setItem(t,e)},P=function(t){window.localStorage.removeItem(t)};function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=N(t);if(e){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B(this,n)}}function B(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var M=T.a.getPlugin("plugin"),U="cvplayer-mute",D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(i,t);var e,n,r,o=A(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).player.ready((function(){return e.initialize()})),e}return e=i,(n=[{key:"initialize",value:function(){var t=this;if(k()){this.saveVolumeState=this.saveVolumeState.bind(this),this.player.on("volumechange",this.saveVolumeState),this.one("dispose",(function(){t.player.off("volumechange",t.saveVolumeState)}));var e=j("cvplayer-volume"),n=j(U);e&&this.player.volume(+e),n&&this.player.muted("true"===n)}}},{key:"saveVolumeState",value:function(){E("cvplayer-volume",this.player.volume().toString()),E(U,this.player.muted().toString())}}])&&x(e.prototype,n),r&&x(e,r),i}(M);function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function V(t,e){return(V=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function H(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=G(t);if(e){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}function W(t,e){return!e||"object"!==F(e)&&"function"!=typeof e?q(t):e}function q(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerPlugin("persistVolumePlugin",D);var K=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&V(t,e)}(i,t);var e,n,r,o=H(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).hasScreenOrientation()&&e.player.supportsFullScreen()?(e.onRotate=e.onRotate.bind(q(e)),e.onFullscreenChange=e.onFullscreenChange.bind(q(e)),e.player.ready((function(){return e.initialize()})),e):W(e)}return e=i,(n=[{key:"initialize",value:function(){var t=this;window.addEventListener("orientationchange",this.onRotate),this.hasScreenLock()&&this.player.on("fullscreenchange",this.onFullscreenChange),this.one("dispose",(function(){window.removeEventListener("orientationchange",t.onRotate),t.hasScreenLock()&&t.player.off("fullscreenchange",t.onFullscreenChange)}))}},{key:"onFullscreenChange",value:function(){!this.getAngle()&&this.player.isFullscreen()?window.screen.orientation.lock("portrait-primary"):window.screen.orientation.unlock()}},{key:"onRotate",value:function(){var t=this.getAngle();90===t||-90===t||270===t?this.player.requestFullscreen():this.player.isFullscreen()&&this.player.exitFullscreen()}},{key:"hasScreenOrientation",value:function(){var t,e;return"function"==typeof(null===(e=null===(t=window.screen)||void 0===t?void 0:t.orientation)||void 0===e?void 0:e.lock)}},{key:"hasScreenLock",value:function(){var t,e;return"function"==typeof(null===(e=null===(t=window.screen)||void 0===t?void 0:t.orientation)||void 0===e?void 0:e.lock)}},{key:"getAngle",value:function(){var t,e;return"number"==typeof(null===(e=null===(t=window.screen)||void 0===t?void 0:t.orientation)||void 0===e?void 0:e.angle)?window.screen.orientation.angle:0}}])&&z(e.prototype,n),r&&z(e,r),i}(T.a.getPlugin("plugin"));T.a.registerPlugin("fullscreenOnRotatePlugin",K);var Q="\n <svg viewBox='0 0 434 71'>\n <g>\n <path fill='#FFFFFF' d='M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z'/>\n <path fill='#F8981D' d='M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z'/>\n </g>\n </svg>\n";n(1248);function Z(t){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X(t,e){return(X=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function J(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=et(t);if(e){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Y(this,n)}}function Y(t,e){return!e||"object"!==Z(e)&&"function"!=typeof e?tt(t):e}function tt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function et(t){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var nt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&X(t,e)}(i,t);var e,n,r,o=J(i);function i(t,e){var n,r,a,c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).update=(r=n.update.bind(tt(n)),a=1e3,c=window.performance.now(),function(){var t=window.performance.now();t-c>=a&&(r.apply(void 0,arguments),c=t)}),t.on("timeupdate",n.update),t.one("dispose",(function(){t.off("timeupdate",n.update),n.el_.removeEventListener("click",n.pause)})),n}return e=i,(n=[{key:"update",value:function(){var t=this.player_.currentTime();this.el_.href=this.options_.getExternalLink({currentTime:Math.round(t)})}},{key:"buildCSSClass",value:function(){return"cv-open-externally-button"}},{key:"createEl",value:function(){var t={innerHTML:Q,className:this.buildCSSClass()},e={type:"button",href:this.options_.getExternalLink({currentTime:0}),target:"_blank"},n=T.a.dom.createEl("a",t,e);return this.createControlTextEl(n),n.addEventListener("click",this.pause.bind(this)),n}},{key:"pause",value:function(){this.player_.pause()}}])&&$(e.prototype,n),r&&$(e,r),i}(T.a.getComponent("Button"));function rt(t){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function at(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ut(t);if(e){var o=ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(t,e){return!e||"object"!==rt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}nt.prototype.controlText_="Open in ClickView",T.a.registerComponent("OpenExternallyButton",nt);var lt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&it(t,e)}(i,t);var e,n,r,o=at(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).options=e,t.ready((function(){return n.onReady()})),n}return e=i,(n=[{key:"onReady",value:function(){var t=this.player.getChild("collapserator"),e=t.getChild("customControlSpacer"),n=t.children_.indexOf(e);t.addChild("OpenExternallyButton",{getExternalLink:this.options.getExternalLink},n+1)}}])&&ot(e.prototype,n),r&&ot(e,r),i}(T.a.getPlugin("plugin"));T.a.registerPlugin("openExternallyPlugin",lt);n(1249);function st(t){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pt(t,e,n){return(pt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=vt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function yt(t,e){return(yt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ht(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vt(t);if(e){var o=vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dt(this,n)}}function dt(t,e){return!e||"object"!==st(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vt(t){return(vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yt(t,e)}(i,t);var e,n,r,o=ht(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-touch-control-ui ".concat(pt(vt(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return pt(vt(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"setUi",value:function(t,e){var n=this,r=t>0,o=r?"cv-touch-right":"cv-touch-left";this.el_.className=this.buildCSSClass()+" cv-ui-touch-active",this.el_.innerHTML="\n <div class='".concat(o,"'>\n <div class='cv-touch-text'>\n ").concat(r?"+":"").concat(10*t,"s\n </div>\n </div>\n "),window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout((function(){n.removeText()}),e)}},{key:"removeText",value:function(){this.el_.className=this.buildCSSClass(),this.el_.innerHTML=""}}])&&ft(e.prototype,n),r&&ft(e,r),i}(T.a.getComponent("component"));function mt(t){return(mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wt(t,e,n){return(wt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Tt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ct(t,e){return(Ct=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ot(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Tt(t);if(e){var o=Tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return It(this,n)}}function It(t,e){return!e||"object"!==mt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Tt(t){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerComponent("TouchControls",bt);var St=T.a.getPlugin("plugin"),_t=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ct(t,e)}(i,t);var e,n,r,o=Ot(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).doubleTouchCount=0,e.seekStartTime=0,e.directionModifier=0,e.bindFunctions(),e.player.ready((function(){return e.initialize()})),e}return e=i,(n=[{key:"bindFunctions",value:function(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.reBindEventListeners=this.reBindEventListeners.bind(this)}},{key:"initialize",value:function(){var t=this;this.player.addChild("TouchControls"),this.touchControls=this.player.getChild("TouchControls"),this.player.on("ready",this.reBindEventListeners),this.one("dispose",(function(){t.player.off("ready",t.reBindEventListeners)})),this.reBindEventListeners()}},{key:"reBindEventListeners",value:function(){this.unBindEventListeners(),this.tech=this.player.tech(!0),"Html5"===this.tech.name()&&(this.on(this.tech,"touchstart",this.onTouchStart),this.on(this.tech,"touchend",this.onTouchEnd))}},{key:"unBindEventListeners",value:function(){this.tech&&(this.off(this.tech,"touchstart",this.onTouchStart),this.off(this.tech,"touchend",this.onTouchEnd))}},{key:"dispose",value:function(){wt(Tt(i.prototype),"dispose",this).call(this),this.unBindEventListeners()}},{key:"onTouchStart",value:function(t){this.touchStartTime=t.timeStamp}},{key:"onTouchEnd",value:function(t){var e=this;if(t.changedTouches.length){if(t.timeStamp-this.lastTouchTime<300)return this.onDoubleTouch(t),void(this.lastTouchTime=t.timeStamp);this.resetProperties(),this.lastTouchTime=t.timeStamp,t.timeStamp-this.touchStartTime<300&&window.setTimeout((function(){e.doubleTouchCount||(e.player.paused()?e.player.play():e.player.pause())}),300)}}},{key:"resetProperties",value:function(){this.doubleTouchCount=0,this.seekStartTime=0,this.directionModifier=0}},{key:"onDoubleTouch",value:function(t){var e=this.player.el().getBoundingClientRect(),n=e.left+e.width/2;if(0===this.doubleTouchCount&&(this.seekStartTime=this.player.currentTime(),t.changedTouches[0].pageX<n?this.directionModifier=-1:this.directionModifier=1),this.doubleTouchCount++,this.directionModifier<0){if(10*this.doubleTouchCount>this.seekStartTime+10)return;return this.touchControls.setUi(-this.doubleTouchCount,900),void this.player.currentTime(this.player.currentTime()-10)}var r=this.player.duration()-this.seekStartTime;10*this.doubleTouchCount>r+10||(this.touchControls.setUi(this.doubleTouchCount,900),this.player.currentTime(this.player.currentTime()+10))}}])&>(e.prototype,n),r&>(e,r),i}(St);function kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}T.a.registerPlugin("touchControls",_t);var jt=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=n.id,this.plugin=e,this.source=n,this.enabled=this.enabled.bind(this)}var e,n,r;return e=t,(n=[{key:"enabled",value:function(t){return void 0===t?this.plugin.currentSource===this.source:(t&&this.plugin.setSource(this.source.id),t)}}])&&kt(e.prototype,n),r&&kt(e,r),t}();function Et(t){return(Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rt(t,e){return(Rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=At(t);if(e){var o=At(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lt(this,n)}}function Lt(t,e){return!e||"object"!==Et(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function At(t){return(At=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rt(t,e)}(i,t);var e,n,r,o=xt(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t)).options_=e,n.player.ready((function(){return n.initialize()})),n}return e=i,(n=[{key:"initialize",value:function(){this.sources=[],this.qualityLevels=this.player.qualityLevels(),this.populateSources(this.options_.sources)}},{key:"currentSource",get:function(){return this._currentSource}},{key:"setSource",value:function(t){var e=this,n=this.getSourceById(t);if(null===n)return this.currentSource;var r=this.player.currentTime(),o=!this.player.paused();return this._currentSource=n,this.player.src({src:n.url,type:n.mimeType}),this.player.one("loadedmetadata",(function(){e.player.currentTime()!==r&&e.player.currentTime(r),o&&e.player.play()})),this.trigger({event:"sourcechange",source:n}),this.sourceChangeUpdateQualityLevels(n),n}},{key:"getSourceById",value:function(t){return this.sources.find((function(e){return e.id===t}))}},{key:"sortSources",value:function(t){return t.sort((function(t,e){return t.id===e.id?0:+t.id>+e.id?-1:1}))}},{key:"populateSources",value:function(t){var e=this,n=null;(t=this.sortSources(t)).forEach((function(t){e.qualityLevels.addQualityLevel(new jt(e,t)),e.sources.push(t),e.trigger({event:"addsource",source:t}),t.default&&(n=t)})),null===n&&(n=this.sources[0]),null!==n&&this.setSource(n.id)}},{key:"sourceChangeUpdateQualityLevels",value:function(t){for(var e=this.qualityLevels,n=-1,r=0;r<e.length;r++)if(e[r].id===t.id){n=r;break}e.selectedIndex_=n,e.trigger({selectedIndex:n,type:"change"})}}])&&Pt(e.prototype,n),r&&Pt(e,r),i}(T.a.getPlugin("plugin"));function Nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}T.a.registerPlugin("progressiveFiles",Bt);var Mt=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},Ut=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e.name,this.playbackProfile=e.playbackProfile,this.address=new URL(e.httpsAddress)}var e,n,r;return e=t,(n=[{key:"getUrl",value:function(t){return t?this.address+"cache?file="+encodeURIComponent(t):null}},{key:"ping",value:function(){return Mt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new AbortController,n=setTimeout((function(){return e.abort()}),1e3),t.prev=3,t.next=6,fetch(this.address+"ping",{method:"GET",mode:"cors",signal:e.signal});case 6:return r=t.sent,t.next=9,r.text();case 9:return o=t.sent,clearTimeout(n),t.abrupt("return","PONG"===o);case 14:return t.prev=14,t.t0=t.catch(3),t.abrupt("return",!1);case 17:case"end":return t.stop()}}),t,this,[[3,14]])})))}}])&&Nt(e.prototype,n),r&&Nt(e,r),t}();function Dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ft=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"getKnownProfiles",value:function(){return["1080","720","480","360","240"]}},{key:"enableProfileOrNextBest",value:function(t,e){var n=t.getQualityLevelById(e);if(n||(n=this.getNextBestQuality(t,e)),!n)return null;for(var r=0;r<t.length;r++){var o=t[r];o.enabled=n.id===o.id}return n}},{key:"getNextBestQuality",value:function(t,e){var n=this.getKnownProfiles(),r=n.indexOf(e);if(r>=0){for(var o=r+1;o<n.length;o++){var i=n[o],a=t.getQualityLevelById(i);if(a)return a}for(var c=r-1;c>0;c--){var u=n[c],l=t.getQualityLevelById(u);if(l)return l}}return null}}],(n=null)&&Dt(e.prototype,n),r&&Dt(e,r),t}();function zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Vt=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},Ht=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.player=e,this.logger=T.a.log.createLogger("localcache")}var e,n,r;return e=t,(n=[{key:"setSource",value:function(t,e){return Vt(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.player.localCache||void 0===(null==t?void 0:t.src)){n.next=5;break}return n.next=3,this.player.localCache().getActiveLocalCache();case 3:null!==(r=n.sent)&&(this.logger.debug("Using Local Cache",r),t.src=r.getUrl(t.src));case 5:e(null,t);case 6:case"end":return n.stop()}}),n,this)})))}}])&&zt(e.prototype,n),r&&zt(e,r),t}();T.a.use("*",(function(t){return new Ht(t)}));n(1250);function Wt(t){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gt(t,e,n){return(Gt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Xt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Kt(t,e){return(Kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Xt(t);if(e){var o=Xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zt(this,n)}}function Zt(t,e){return!e||"object"!==Wt(e)&&"function"!=typeof e?$t(t):e}function $t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xt(t){return(Xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Jt=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},Yt='<?xml version="1.0" encoding="UTF-8"?><svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.9"><g id="Local-Cache" transform="translate(2.000000, 2.000000)"><rect id="Rectangle" fill="#FFFFFF" x="0" y="2.4" width="18.8" height="15.2"></rect><ellipse id="Oval" fill="#FFFFFF" cx="9.4" cy="2.4" rx="9.4" ry="2.4"></ellipse><ellipse id="Oval-Copy" fill="#FFFFFF" cx="9.4" cy="17.6" rx="9.4" ry="2.4"></ellipse><g id="Logo/Circle" transform="translate(2.500000, 3.000000)"><circle id="Oval" fill="#FFFFFF" cx="7" cy="7" r="7"></circle><polygon id="Fill-1" fill="#F8981D" points="4.66666667 2.33333333 4.66666667 11.4245258 10.0383286 6.87866667"></polygon></g></g></g></svg>',te=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kt(t,e)}(i,t);var e,n,r,o=Qt(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).hide(),n.onLocalCacheChange=n.onLocalCacheChange.bind($t(n)),t.ready((function(){n.initialize()})),n}return e=i,(n=[{key:"createEl",value:function(){return Gt(Xt(i.prototype),"createEl",this).call(this,"div",{className:"vjs-local-cache-indicator",innerHTML:'<div class="vjs-local-cache-indicator-icon">'.concat(Yt,"</div>"),title:"Streaming from ClickView Local Cache"})}},{key:"initialize",value:function(){var t=this;this.localCachePlugin=this.player_.localCache(),this.localCachePlugin&&(this.localCachePlugin.on("localcachechanged",this.onLocalCacheChange),this.player_.on("dispose",(function(){t.localCachePlugin.off("localcachechanged",t.onLocalCacheChange)})),this.onLocalCacheChange())}},{key:"onLocalCacheChange",value:function(){return Jt(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.localCachePlugin.getActiveLocalCache();case 2:t.sent?this.show():this.hide();case 4:case"end":return t.stop()}}),t,this)})))}}])&&qt(e.prototype,n),r&&qt(e,r),i}(T.a.getComponent("Component"));function ee(t){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function re(t,e,n){return(re="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ue(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function oe(t,e){return(oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ie(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ue(t);if(e){var o=ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ae(this,n)}}function ae(t,e){return!e||"object"!==ee(e)&&"function"!=typeof e?ce(t):e}function ce(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ue(t){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerComponent("localCacheIndicator",te);var le=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},se=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oe(t,e)}(i,t);var e,n,r,o=ie(i);function i(t,e){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t)).logger_=T.a.log.createLogger("localcache"),void 0===e)throw Error("no options defined");return n.onPlayerError=n.onPlayerError.bind(ce(n)),n.localCaches_=e.localCacheAddresses.map((function(t){return new Ut(t)})),n.player.ready((function(){n.initialize(),e.enabled&&n.enable()})),n}return e=i,(n=[{key:"isEnabled",get:function(){return this.enabled_}},{key:"enable",value:function(){this.enabled_=!0,this.resetActiveLocalCache()}},{key:"disable",value:function(){this.enabled_=!1}},{key:"getActiveLocalCache",value:function(){return this.enabled_?this.activeLocalCache_:null}},{key:"resetActiveLocalCache",value:function(){this.clearActiveLocalCache(),this.activeLocalCache_=this.getActiveLocalCacheInternal()}},{key:"clearActiveLocalCache",value:function(){this.activeLocalCache_&&(this.activeLocalCache_=null,this.onLocalCacheChange(null))}},{key:"dispose",value:function(){this.player.off("error",this.onPlayerError),re(ue(i.prototype),"dispose",this).call(this)}},{key:"initialize",value:function(){this.player.on("error",this.onPlayerError),this.player.controlBar.addChild("localCacheIndicator")}},{key:"onPlayerError",value:function(){var t;(null===(t=this.player.error())||void 0===t?void 0:t.code)===MediaError.MEDIA_ERR_NETWORK&&this.resetActiveLocalCache()}},{key:"getActiveLocalCacheInternal",value:function(){return le(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],n=function(t){return le(o,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.ping();case 2:if(!n.sent){n.next=4;break}e.push(t);case 4:case"end":return n.stop()}}),n)})))},t.next=4,Promise.all(this.localCaches_.map((function(t){return n(t)})));case 4:if(!(e.length>0)){t.next=8;break}return r=e[0],this.onLocalCacheChange(r),t.abrupt("return",r);case 8:return t.abrupt("return",null);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"onLocalCacheChange",value:function(t){this.logger_.debug("Local Cache changed",t),this.trigger("localcachechanged",{localCache:t});var e=!1;t&&t.playbackProfile&&(this.logger_.debug("Changing active profile for local cache",t.playbackProfile),Ft.enableProfileOrNextBest(this.player.qualityLevels(),t.playbackProfile),e=!0),e||this.player.src(this.player.src())}}])&&ne(e.prototype,n),r&&ne(e,r),i}(T.a.getPlugin("plugin"));function fe(t){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ye(t,e){return(ye=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function he(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ve(t);if(e){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return de(this,n)}}function de(t,e){return!e||"object"!==fe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ve(t){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerPlugin("localCache",se);var be=T.a.getPlugin("plugin"),me=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ye(t,e)}(i,t);var e,n,r,o=he(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t)).options=e,n.initialize(),n}return e=i,(n=[{key:"initialize",value:function(){if(this.player.textTracks().length){this.bindEventListeners();var t=!!this.options.showSubtitles,e=this.safeGet("cvplayer-show-subtitles");if("true"===e&&(t=!0),"false"===e&&(t=!1),t){var n=this.guessWhichTrack();n&&(n.mode="showing")}var r=this.safeGet("cvplayer-subtitle-size");r||(r=this.options.subtitleSize),r&&this.player.textTrackSettings.setSizeSetting(r)}}},{key:"safeGet",value:function(t){if(k())return j(t)}},{key:"onSelectedLanguageChange",value:function(){for(var t=this.player.textTracks(),e=0;e<t.length;e++){var n=t[e];if("showing"===n.mode)return E("cvplayer-show-subtitles","true"),void E("cvplayer-selected-language",n.language)}E("cvplayer-show-subtitles","false"),P("cvplayer-selected-language")}},{key:"bindEventListeners",value:function(){var t=this;k()&&(this.onSelectedLanguageChange=this.onSelectedLanguageChange.bind(this),this.onChangeSubtitleSize=this.onChangeSubtitleSize.bind(this),this.player.on("cv:languageselected",this.onSelectedLanguageChange),this.player.on("changesubtitlesize",this.onChangeSubtitleSize),this.one("dispose",(function(){t.player.off("cv:languageselected",t.onSelectedLanguageChange),t.player.off("changesubtitlesize",t.onChangeSubtitleSize)})))}},{key:"onChangeSubtitleSize",value:function(){var t=this.player.textTrackSettings.getSizeSetting();E("cvplayer-subtitle-size",t)}},{key:"guessWhichTrack",value:function(){for(var t,e,n=this.safeGet("cvplayer-selected-language")||window.navigator.language,r=this.getLanguageParts(n),o=r.language,i=r.country,a=this.player.textTracks(),c=0;c<a.length;c++){var u=a[c],l=this.getLanguageParts(u.language),s=l.language,f=l.country;if(s===o&&(t=u,f||(e=u),f===i))return t}return e||t||null}},{key:"getLanguageParts",value:function(t){var e=t.toLowerCase().split("-");return{language:e[0],country:e[1]}}}])&&pe(e.prototype,n),r&&pe(e,r),i}(be);function ge(t){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function we(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ce(t,e){return(Ce=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Te(t);if(e){var o=Te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ie(this,n)}}function Ie(t,e){return!e||"object"!==ge(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Te(t){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerPlugin("persistSubtitleSettingsPlugin",me);var Se=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},_e=T.a.getPlugin("plugin"),ke=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ce(t,e)}(i,t);var e,n,r,o=Oe(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t)).options=e,n.player.ready((function(){return n.initialize()})),n}return e=i,(n=[{key:"initialize",value:function(){return Se(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r,o,i=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getActiveLocalCache();case 2:if(e=t.sent,(n=e?this.options.playbackProfileLocalCache:this.options.playbackProfile)||(n="1080"),k()&&(r=j(this.getStorageKey(!!e)))&&(n=r),o=this.player.qualityLevels(),(null==e?void 0:e.playbackProfile)||Ft.enableProfileOrNextBest(o,n),k()){t.next=10;break}return t.abrupt("return");case 10:this.onQualityLevelsChange=this.onQualityLevelsChange.bind(this),o.on("change",this.onQualityLevelsChange),this.on("dispose",(function(){o.off("change",i.onQualityLevelsChange)}));case 13:case"end":return t.stop()}}),t,this)})))}},{key:"onQualityLevelsChange",value:function(){return Se(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.isLocalCacheActive();case 2:e=t.sent,n=this.player.qualityLevels(),r=n[n.selectedIndex],E(this.getStorageKey(e),r.id);case 6:case"end":return t.stop()}}),t,this)})))}},{key:"isLocalCacheActive",value:function(){return Se(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.player.localCache().getActiveLocalCache();case 2:return t.abrupt("return",!!t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getActiveLocalCache",value:function(){return this.player.localCache().getActiveLocalCache()}},{key:"getStorageKey",value:function(t){return t?"cvplayer-localcache-playback-quality":"cvplayer-playback-quality"}}])&&we(e.prototype,n),r&&we(e,r),i}(_e);function je(t){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Re(t,e){return(Re=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ae(t);if(e){var o=Ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Le(t,e){return!e||"object"!==je(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ae(t){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerPlugin("persistQualitySettingsPlugin",ke);var Be=T.a.getPlugin("plugin"),Ne="play",Me="playing",Ue="pause",De="seeking",Fe="seekstart",ze="seekend",Ve="ended",He="pausedseek",We="timeupdate",qe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Re(t,e)}(i,t);var e,n,r,o=xe(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).eventBuffer=[],n.latestTime=0,n.lastPlayingTime=0,n.isPlaying=!1,n.isSeeking=!1,n.hasEnded=!1,n.shouldLogPlayOnTimeUpdate=!1,n.options=e,n.player.ready((function(){return n.initialize()})),n}return e=i,(n=[{key:"initialize",value:function(){this.validateOptions(),this.bindListeners(),this.startInterval()}},{key:"validateOptions",value:function(){if("function"!=typeof this.options.onFlush)throw new Error("Please provide the onFlush option")}},{key:"bindListeners",value:function(){var t,e=this,n=(Ee(t={},Ne,(function(){return e.onPlay()})),Ee(t,Ue,(function(){return e.onPause()})),Ee(t,We,(function(){return e.onTimeUpdate()})),Ee(t,De,(function(){return e.onSeeking()})),Ee(t,Ve,(function(){return e.onEnded()})),t),r=Object.keys(n);r.forEach((function(t){return e.player.on(t,n[t])})),this.one("dispose",(function(){r.forEach((function(t){return e.player.off(t,n[t])}))}))}},{key:"startInterval",value:function(){var t=this,e=this.options.interval||5e3;setInterval((function(){return t.flushBuffer()}),e)}},{key:"onPlay",value:function(){return this.isPlaying=!0,this.isSeeking?(this.logEvent(ze),void(this.isSeeking=!1)):this.hasEnded?(this.shouldLogPlayOnTimeUpdate=!0,void(this.hasEnded=!1)):void this.logEvent(Ne)}},{key:"onPause",value:function(){var t=this;this.isSeeking||(this.pauseTimeout=window.setTimeout((function(){t.isPlaying=!1,t.logEvent(Ue),delete t.pauseTimeout}),50))}},{key:"onTimeUpdate",value:function(){this.shouldLogPlayOnTimeUpdate&&(this.shouldLogPlayOnTimeUpdate=!1,this.logEvent(Ne)),this.isPlaying&&!this.isSeeking&&this.logEvent(Me)}},{key:"onSeeking",value:function(){this.pauseTimeout&&(this.latestTime=this.previousLatestTime,window.clearTimeout(this.pauseTimeout),delete this.pauseTimeout),this.isPlaying||this.logEvent(He),!this.isSeeking&&this.isPlaying&&(this.isSeeking=!0,this.logEvent(Fe))}},{key:"onEnded",value:function(){this.hasEnded=!0,this.logEvent(Ve)}},{key:"logEvent",value:function(t){if(this.player){var e=this.player.currentTime();t===Fe&&(e=this.latestTime),this.previousLatestTime=this.latestTime,this.latestTime=this.player.currentTime(),this.eventBuffer.push({time:e,type:t})}}},{key:"shouldUseCarriedOverTime",value:function(t){return this.lastPlayingTime&&(t===Me||t===Ne)}},{key:"shouldSaveCarriedOverTime",value:function(t){return t===Me||t===Ue}},{key:"shouldClearCarriedOverTime",value:function(t){return t===Ve||t===He}},{key:"flushBuffer",value:function(){for(var t,e=[],n={};this.eventBuffer.length;){var r=this.eventBuffer.shift();this.shouldClearCarriedOverTime(r.type)?delete this.lastPlayingTime:n.start?r.type===Me&&this.eventBuffer.length>0||(this.shouldSaveCarriedOverTime(r.type)&&(this.lastPlayingTime=r.time),n.end=r,e.push(n),n={}):(this.shouldUseCarriedOverTime(r.type)&&(r.time=this.lastPlayingTime,delete this.lastPlayingTime),n.start=r)}this.eventBuffer=[],e.length&&(this.options.onFlush(e),null===(t=this.player)||void 0===t||t.trigger("progressflush"))}}])&&Pe(e.prototype,n),r&&Pe(e,r),i}(Be);T.a.registerPlugin("progressReporterPlugin",qe);n(1251);function Ge(t){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ke(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ze(t,e){return(Ze=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $e(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Je(t);if(e){var o=Je(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xe(this,n)}}function Xe(t,e){return!e||"object"!==Ge(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Je(t){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ye=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ze(t,e)}(i,t);var e,n,r,o=$e(i);function i(){return Ke(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createEl",value:function(){return T.a.dom.createEl("span",{innerHTML:'<span class="vjs-icon-placeholder"></span>',className:"cv-drag-handle vjs-control vjs-button"},{})}}])&&Qe(e.prototype,n),r&&Qe(e,r),i}(T.a.getComponent("Component")),tn=["top","left","right","bottom"],en={top:"Top",left:"Left",right:"Right",bottom:"Bottom"};n(1252);function nn(t){return(nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function on(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function an(t,e,n){return e&&on(t.prototype,e),n&&on(t,n),t}function cn(t,e,n){return(cn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=pn(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function un(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ln(t,e)}function ln(t,e){return(ln=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function sn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pn(t);if(e){var o=pn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fn(this,n)}}function fn(t,e){return!e||"object"!==nn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pn(t){return(pn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yn=T.a.getComponent("Component"),hn=function(t){un(n,t);var e=sn(n);function n(t,r){var o;return rn(this,n),(o=e.call(this,t,r)).bindEventListeners(),o}return an(n,[{key:"createEl",value:function(){return cn(pn(n.prototype),"createEl",this).call(this,"div",{},{class:"cv-drop-target cv-drop-".concat(this.options_.side)})}},{key:"bindEventListeners",value:function(){var t=this,e=this.el(),n=function(e){e.preventDefault(),e.dataTransfer.dropEffect="move",t.addClass("cv-drag-over")},r=function(e){e.preventDefault(),t.removeClass("cv-drag-over"),t.player_.whiteboardModePlugin().setWhiteboardMode(t.options_.side)},o=function(){t.removeClass("cv-drag-over")};e.addEventListener("dragover",n),e.addEventListener("drop",r),e.addEventListener("dragleave",o),this.on("dispose",(function(){e.removeEventListener("dragover",n),e.removeEventListener("drop",r),e.removeEventListener("dragleave",o)}))}}]),n}(yn),dn=function(t){un(n,t);var e=sn(n);function n(t,r){var o;return rn(this,n),(o=e.call(this,t,r)).addChildren(),o}return an(n,[{key:"addChildren",value:function(){var t=this;tn.forEach((function(e){t.addChild(new hn(t.player_,{side:e}))}))}}]),n}(yn);function vn(t){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mn(t,e,n){return(mn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=On(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function gn(t,e){return(gn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=On(t);if(e){var o=On(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cn(this,n)}}function Cn(t,e){return!e||"object"!==vn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function On(t){return(On=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var In=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gn(t,e)}(i,t);var e,n,r,o=wn(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"createEl",value:function(){return T.a.dom.createEl("li",{className:"vjs-menu-item cv-collapsible-menu-heading cv-divider-after-menu-item",innerHTML:'<span class="vjs-menu-item-text">'.concat(this.localize(this.options_.label),"</span>"),tabIndex:-1})}},{key:"handleClick",value:function(t){var e=this;mn(On(i.prototype),"handleClick",this).call(this,t),this.options_.onClickBack?this.options_.onClickBack():this.requestAnimationFrame((function(){e.player_.getChild("collapserator").getChild("cogButton").pressButton()}))}}])&&bn(e.prototype,n),r&&bn(e,r),i}(T.a.getComponent("MenuItem"));function Tn(t){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _n(t,e){return(_n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function kn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=En(t);if(e){var o=En(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jn(this,n)}}function jn(t,e){return!e||"object"!==Tn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function En(t){return(En=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_n(t,e)}(i,t);var e,n,r,o=kn(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"handleClick",value:function(){this.player_.whiteboardModePlugin().setWhiteboardMode(this.options_.side)}}])&&Sn(e.prototype,n),r&&Sn(e,r),i}(T.a.getComponent("MenuItem"));function Rn(t){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ln(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function An(t,e,n){return(An="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Un(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Bn(t,e){return(Bn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Nn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Un(t);if(e){var o=Un(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mn(this,n)}}function Mn(t,e){return!e||"object"!==Rn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Un(t){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Dn=T.a.getComponent("MenuButton"),Fn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bn(t,e)}(i,t);var e,n,r,o=Nn(i);function i(){var t;return xn(this,i),(t=o.apply(this,arguments)).alwaysCollapsed=!0,t.isCollapsed=!1,t.isCollabsible=!0,t}return e=i,(n=[{key:"createItems",value:function(){var t=this,e=this.player_.whiteboardModePlugin().side,n=[new In(this.player_,{label:"Video Controls"})];return tn.forEach((function(r){n.push(new Pn(t.player_,{side:r,label:en[r],selectable:!0,multiSelectable:!1,selected:r===e}))})),n}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-has-left-icons ".concat(An(Un(i.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"getCollabsibleName",value:function(){return"Video Controls"}},{key:"getCollabsibleValue",value:function(){var t=this.player_.whiteboardModePlugin().side;return en[t]}},{key:"showInCollabsibleMenu",value:function(){return this.player_.isFullscreen()}},{key:"showCollapsibleMenu",value:function(){Dn.prototype.handleClick.apply(this)}}])&&Ln(e.prototype,n),r&&Ln(e,r),i}(Dn);n(1253);function zn(t){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Hn(t,e){return(Hn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Wn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gn(t);if(e){var o=Gn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qn(this,n)}}function qn(t,e){return!e||"object"!==zn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gn(t){return(Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Kn="cv-whiteboard-side",Qn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hn(t,e)}(i,t);var e,n,r,o=Wn(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).side="bottom",e.player.ready((function(){e.initialize()})),e}return e=i,(n=[{key:"initialize",value:function(){if(k()){var t=j(Kn);t&&(this.side=t)}this.initCollapserator(),this.initDragTargets(),this.initFullscreenListener()}},{key:"initCollapserator",value:function(){var t=this,e=this.player.getChild("collapserator"),n=new Ye(this.player);this.button=new Fn(this.player),e.addChild(n),e.addChild(this.button),this.player.trigger("cv-updatecog");var r=function(){e.el().setAttribute("draggable","true")},o=function(){e.el().setAttribute("draggable","false")},i=function(e){t.player.addClass("cv-dragging"),e.dataTransfer.setData("text/plain","handle")},a=function(){t.player.removeClass("cv-dragging"),e.el().setAttribute("draggable","false")};n.el().addEventListener("mousedown",r),n.el().addEventListener("mouseup",o),e.el().addEventListener("dragstart",i),e.el().addEventListener("dragend",a),this.on("dispose",(function(){n.el().removeEventListener("mousedown",r),n.el().removeEventListener("mouseup",o),e.el().removeEventListener("dragstart",i),e.el().removeEventListener("dragend",a)}))}},{key:"initDragTargets",value:function(){this.player.addChild(new dn(this.player))}},{key:"initFullscreenListener",value:function(){var t=this;this.update=this.update.bind(this),this.player.on("fullscreenchange",this.update),this.one("dispose",(function(){t.player.off("fullscreenchange",t.update)}))}},{key:"setWhiteboardMode",value:function(t){this.side=t,this.button.update(),k()&&E(Kn,t),this.player.trigger("cv-whiteboard-change"),this.update()}},{key:"update",value:function(){this.player.removeClass("cv-whiteboard-top"),this.player.removeClass("cv-whiteboard-left"),this.player.removeClass("cv-whiteboard-right"),this.player.trigger("resizemenus"),this.player.isFullscreen()&&"bottom"!==this.side&&this.player.addClass("cv-whiteboard-".concat(this.side))}}])&&Vn(e.prototype,n),r&&Vn(e,r),i}(T.a.getPlugin("plugin"));T.a.registerPlugin("whiteboardModePlugin",Qn);var Zn=n(1254);function $n(t){return($n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yn(t,e,n){return(Yn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=rr(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function tr(t,e){return(tr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function er(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rr(t);if(e){var o=rr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nr(this,n)}}function nr(t,e){return!e||"object"!==$n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rr(t){return(rr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var or=T.a.getComponent("Menu"),ir=or.prototype,ar=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tr(t,e)}(i,t);var e,n,r,o=er(i);function i(){return Xn(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createEl",value:function(){var t=Yn(rr(i.prototype),"createEl",this).call(this);return this.simpleBar=new Zn.a(this.contentEl(),{autoHide:!1}),t}},{key:"contentEl",value:function(){return this.simpleBar?this.simpleBar.getContentElement():Yn(rr(i.prototype),"contentEl",this).call(this)}},{key:"dispose",value:function(){this.simpleBar&&(this.simpleBar.unMount(),delete this.simpleBar),Yn(rr(i.prototype),"dispose",this).call(this)}},{key:"addItem",value:function(t){Yn(rr(i.prototype),"addItem",this).call(this,t),this.simpleBar.recalculate()}},{key:"lockShowing",value:function(){Yn(rr(i.prototype),"lockShowing",this).call(this),this.simpleBar.recalculate()}},{key:"recalculateScrollBar",value:function(){this.simpleBar.recalculate()}},{key:"handleBlur",value:function(t){var e=t.relatedTarget||document.activeElement;this.el().contains(e)||ir.handleBlur.call(this,t)}}])&&Jn(e.prototype,n),r&&Jn(e,r),i}(or);function cr(t){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ur(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sr(t,e){return(sr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function fr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yr(t);if(e){var o=yr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pr(this,n)}}function pr(t,e){return!e||"object"!==cr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yr(t){return(yr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}or.prototype=ar.prototype,T.a.registerComponent("Menu",ar);var hr=T.a.getComponent("Component"),dr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sr(t,e)}(i,t);var e,n,r,o=fr(i);function i(){return ur(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createMenu",value:function(){var t,e=new ar(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var n=T.a.dom.createEl("li",{className:"vjs-menu-title",innerHTML:(t=this.options_.title,"string"!=typeof t?t:t.replace(/./,(function(t){return t.toUpperCase()}))),tabIndex:-1});this.hideThreshold_+=1;var r=new hr(this.player_,{el:n});e.addItem(r)}if(this.items=this.createItems(),this.items)for(var o=0;o<this.items.length;o++)e.addItem(this.items[o]);return e}}])&&lr(e.prototype,n),r&&lr(e,r),i}(T.a.getComponent("MenuButton"));T.a.registerComponent("MenuButton",dr);n(1260);function vr(t){return(vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function br(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gr(t,e,n){return(gr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ir(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function wr(t,e){return(wr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Cr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ir(t);if(e){var o=Ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Or(this,n)}}function Or(t,e){return!e||"object"!==vr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ir(t){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Tr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wr(t,e)}(i,t);var e,n,r,o=Cr(i);function i(){return br(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-time-wrapper ".concat(gr(Ir(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return gr(Ir(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}}])&&mr(e.prototype,n),r&&mr(e,r),i}(T.a.getComponent("Component"));Tr.prototype.options_={children:["currentTimeDisplay","remainingTimeDisplay"]},T.a.registerComponent("TimeWrapper",Tr);n(1261);function Sr(t){return(Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jr(t,e,n){return e&&kr(t.prototype,e),n&&kr(t,n),t}function Er(t,e,n){return(Er="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ar(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Pr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rr(t,e)}function Rr(t,e){return(Rr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ar(t);if(e){var o=Ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lr(this,n)}}function Lr(t,e){return!e||"object"!==Sr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ar(t){return(Ar=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Br=function(t){Pr(n,t);var e=xr(n);function n(t,r){return _r(this,n),e.call(this,t,r)}return jr(n,[{key:"handleClick",value:function(t){var e=this;Er(Ar(n.prototype),"handleClick",this).call(this,t),this.requestAnimationFrame((function(){e.options_.item.showCollapsibleMenu()}))}},{key:"createEl",value:function(t,e,r){if(!this.options_.item)return Er(Ar(n.prototype),"createEl",this).call(this,t,e,r);var o=this.options_.item.getCollabsibleName(),i=this.options_.item.getCollabsibleValue(),a='<span class="vjs-menu-item-text">'.concat(o,"</span>");this.valueHolder_=T.a.dom.createEl("span",{innerHTML:i});var c=Er(Ar(n.prototype),"createEl",this).call(this,t,{className:"vjs-menu-item cv-cog-menu-item ".concat(i?"cv-has-cog-value":""),innerHTML:a},r);return c.appendChild(this.valueHolder_),c}},{key:"updateCollapsibleValue",value:function(){this.valueHolder_.innerHTML=this.options_.item.getCollabsibleValue()}}]),n}(T.a.getComponent("MenuItem")),Nr=function(t){Pr(n,t);var e=xr(n);function n(t,r){return _r(this,n),e.call(this,t,r)}return jr(n,[{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-cog-menu-button ".concat(Er(Ar(n.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"buildCSSClass",value:function(){return"cv-cog-button ".concat(Er(Ar(n.prototype),"buildCSSClass",this).call(this))}},{key:"pressButton",value:function(){this.menu.children_.forEach((function(t){t.updateCollapsibleValue&&t.updateCollapsibleValue()})),Er(Ar(n.prototype),"pressButton",this).call(this)}},{key:"createItems",value:function(){for(var t,e=this,n=[],r=0;r<this.options_.items.length;r++){var o=this.options_.items[r];o.isCollabsible&&(o.showInCollabsibleMenu()&&o.isCollapsed&&n.push(new Br(this.player_,{item:o})))}return(null===(t=this.additionalItems)||void 0===t?void 0:t.length)&&this.additionalItems.forEach((function(t){var r,o=new t.ctor(e.player_,Object.assign(Object.assign({},e.options_),null!==(r=t.options)&&void 0!==r?r:{}));n.splice(t.index,0,o)})),n}},{key:"update",value:function(){Er(Ar(n.prototype),"update",this).call(this),this.player_.trigger("resizemenus")}},{key:"addItem",value:function(t){this.additionalItems||(this.additionalItems=[]),this.additionalItems.some((function(e){return e.name===t.name}))||(this.additionalItems.push(t),this.update())}}]),n}(T.a.getComponent("MenuButton"));function Mr(t){return(Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ur(t,e,n){return(Ur="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gr(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Dr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zr(t,e,n){return e&&Fr(t.prototype,e),n&&Fr(t,n),t}function Vr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hr(t,e)}function Hr(t,e){return(Hr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Wr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gr(t);if(e){var o=Gr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qr(this,n)}}function qr(t,e){return!e||"object"!==Mr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gr(t){return(Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerComponent("cogButton",Nr);var Kr=T.a.getComponent("MenuItem"),Qr=T.a.getComponent("MenuButton"),Zr=["large","medium","small"],$r=function(t){Vr(n,t);var e=Wr(n);function n(t,r){return Dr(this,n),e.call(this,t,r)}return zr(n,[{key:"handleClick",value:function(){this.player_.textTrackSettings.setSizeSetting(this.options_.value)}}]),n}(Kr),Xr=function(t){Vr(n,t);var e=Wr(n);function n(t,r){var o;return Dr(this,n),(o=e.call(this,t,r)).alwaysCollapsed=!0,o.isCollapsed=!1,o.isCollabsible=!0,o.player_.ready((function(){o.update()})),o}return zr(n,[{key:"createItems",value:function(){var t=this,e=this.player_.textTrackSettings;if(e){var n=e.getSizeSetting(),r=[new In(this.player_,{label:"Caption Text Size",onClickBack:function(){t.requestAnimationFrame((function(){t.player_.getChild("collapserator").getChild("subsCapsButton").pressButton()}))}})];return Zr.map((function(e){r.push(new $r(t.player_,{label:e.charAt(0).toUpperCase()+e.substring(1),selectable:!0,multiSelectable:!1,selected:e===n,value:e}))})),r}}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-has-left-icons ".concat(Ur(Gr(n.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"getCollabsibleName",value:function(){return"Subtitle Size"}},{key:"getCollabsibleValue",value:function(){return""}},{key:"showInCollabsibleMenu",value:function(){return!1}},{key:"showCollapsibleMenu",value:function(){Qr.prototype.handleClick.apply(this)}}]),n}(Qr);function Jr(t,e,n,r){t.kind===e&&(n&&t.label!==n||(t.loaded_?r(t):t.one("loadeddata",(function(){r(t)}))))}T.a.registerComponent("SubtitleSizeButton",Xr);var Yr=function(t,e,n,r){var o=function(t){Jr(t.track,e,n,r)},i=t.textTracks(),a=function(t,e,n){if(t.length)for(var r=t.length-1;r>=0;r--){var o=t[r];if(o.kind===e){if(n&&o.label!==n)continue;return o}}}(i,e,n);a?Jr(a,e,n,r):(i.addEventListener("addtrack",o),t.one("dispose",(function(){i.removeEventListener("addtrack",o)})))},to=function(t){if(!t)return null;for(var e=t.textTracks(),n=0;n<e.length;n++){var r=e[n];if("showing"===r.mode)return r}return null};function eo(t){return(eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function no(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ro(t,e){return(ro=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function oo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ao(t);if(e){var o=ao(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return io(this,n)}}function io(t,e){return!e||"object"!==eo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ao(t){return(ao=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var co=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ro(t,e)}(i,t);var e,n,r,o=oo(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"update",value:function(t,e){var n=this;if(null==t?void 0:t.length){var r=[],o=0;t.forEach((function(t){var i=n.options_.label.substr(o,t);i&&r.push(i),r.push('<span class="cv-highlight">'),r.push(n.options_.label.substr(t,e)),r.push("</span>"),o=t+e})),r.push(this.options_.label.substring(o,this.options_.label.length)),this.el().innerHTML='<span class="vjs-menu-item-text">'.concat(r.join(""),"</span>")}else this.el().innerHTML='<span class="vjs-menu-item-text">'.concat(this.options_.label,"</span>")}},{key:"handleClick",value:function(t){t.stopImmediatePropagation(),this.player_.currentTime(this.options_.cue.startTime)}}])&&no(e.prototype,n),r&&no(e,r),i}(T.a.getComponent("MenuItem"));function uo(t){return(uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function so(t,e,n){return(so="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=vo(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function fo(t,e){return(fo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function po(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vo(t);if(e){var o=vo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yo(this,n)}}function yo(t,e){return!e||"object"!==uo(e)&&"function"!=typeof e?ho(t):e}function ho(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vo(t){return(vo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var bo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fo(t,e)}(i,t);var e,n,r,o=po(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).onChange=function(t,e,n){var r,o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window,a=function(){i.clearTimeout(r),r=null},c=function(){for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];var l=function(){r=null,l=null,n||t.apply(this,c)};!r&&n&&t.apply(o,c),i.clearTimeout(r),r=i.setTimeout(l,e)};return c.cancel=a,c}(n.onChange,100,!1,ho(n)),n.bindEventListeners(),n}return e=i,(n=[{key:"createEl",value:function(){return so(vo(i.prototype),"createEl",this).call(this,"li",{innerHTML:'\n <div class="cv-subtitle-search-input">\n <span class="cv-search-icon">\n <svg viewBox="0 0 24 24">\n <path d="M15.803 14.306l3.917 3.954a1 1 0 0 1-.007 1.417l-.018.018-.018.018a.997.997 0 0 1-1.41 0l-3.918-3.953-.3.214c-1.14.713-2.323 1.07-3.549 1.07-1.796 0-3.328-.642-4.597-1.925C4.634 13.836 4 12.296 4 10.5c0-1.796.634-3.328 1.903-4.597C7.172 4.634 8.704 4 10.5 4c1.796 0 3.329.634 4.597 1.903 1.27 1.269 1.904 2.801 1.904 4.597a6.447 6.447 0 0 1-1.027 3.507l-.17.3zM10.5 5.368c-1.425 0-2.637.5-3.635 1.497-.998.998-1.497 2.21-1.497 3.635 0 1.426.5 2.637 1.497 3.635.998.998 2.21 1.497 3.635 1.497 1.426 0 2.637-.499 3.635-1.497 1.027-1.026 1.54-2.238 1.54-3.635 0-1.397-.513-2.608-1.54-3.635-.998-.998-2.21-1.497-3.635-1.497z"/>\n </svg>\n </span><input placeholder="Search" type="text" autocomplete="off" spellcheck="false" aria-label="Search" />\n </div>\n '})}},{key:"focus",value:function(){this.$("input").focus()}},{key:"handleClick",value:function(t){t.stopImmediatePropagation(),this.$("input").focus()}},{key:"handleKeyDown",value:function(){this.focus()}},{key:"bindEventListeners",value:function(){var t=this,e=this.$("input");this.onChange=this.onChange.bind(this),e.addEventListener("keyup",this.onChange),e.addEventListener("blur",(function(e){t.options_.menuButton.menu.handleBlur(e)}))}},{key:"onChange",value:function(t){var e=t.target;this.options_.menuButton.search(e.value)}}])&&lo(e.prototype,n),r&&lo(e,r),i}(T.a.getComponent("MenuItem"));n(1262);function mo(t){return(mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function go(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Co(t,e,n){return e&&wo(t.prototype,e),n&&wo(t,n),t}function Oo(t,e,n){return(Oo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=jo(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Io(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&To(t,e)}function To(t,e){return(To=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function So(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=jo(t);if(e){var o=jo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _o(this,n)}}function _o(t,e){return!e||"object"!==mo(e)&&"function"!=typeof e?ko(t):e}function ko(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jo(t){return(jo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Eo=T.a.getComponent("MenuItem"),Po=T.a.getComponent("MenuButton"),Ro=function(t){Io(n,t);var e=So(n);function n(){return go(this,n),e.apply(this,arguments)}return Co(n,[{key:"createEl",value:function(t,e,r){return Oo(jo(n.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:"vjs-menu-item cv-no-results"}),r)}}]),n}(Eo),xo=function(t){Io(n,t);var e=So(n);function n(t,r){var o;return go(this,n),(o=e.call(this,t,r)).alwaysCollapsed=!0,o.isCollapsed=!1,o.isCollabsible=!0,o.update=o.update.bind(ko(o)),o.player_.textTracks().addEventListener("selectedlanguagechange",o.update),o}return Co(n,[{key:"bindTrackEvents",value:function(t){var e=this;t.removeEventListener("loadeddata",this.update),t.addEventListener("loadeddata",this.update),this.player_.one("dispose",(function(){t.removeEventListener("loadeddata",e.update)}))}},{key:"createItems",value:function(){var t,e=to(this.player_);if(e){if(null===(t=e.cues)||void 0===t?void 0:t.length){for(var n=[new bo(this.player_,{menuButton:this})],r=0;r<e.cues.length;r++){var o=e.cues[r];n.push(new co(this.player_,{cue:o,label:o.text,selected:!1,multiSelectable:!1}))}var i=new Ro(this.player_,{label:"No matching results",selected:!1,selectable:!1,multiSelectable:!1});return i.hide(),n.push(i),n}this.bindTrackEvents(e)}}},{key:"search",value:function(t){var e;t=t.trim();var n=to(this.player_);if(null===(e=null==n?void 0:n.cues)||void 0===e?void 0:e.length){var r=this.findMatches(t,n);this.toggleItemVisibility(t,r),this.toggleNoResults(t,r)}}},{key:"findMatches",value:function(t,e){var n={};if(!t)return n;for(var r=new RegExp(t,"gi"),o=0;o<e.cues.length;o++){for(var i=e.cues[o].text,a=[],c=void 0;c=r.exec(i);)a.push(c.index);a.length&&(n[o]=a)}return n}},{key:"toggleItemVisibility",value:function(t,e){this.menu.children_.slice(1,this.menu.children_.length-1).forEach((function(n,r){!t||e[r]?n.show():n.hide(),n.update(e[r],t.length)}))}},{key:"toggleNoResults",value:function(t,e){var n=this.menu.children_[this.menu.children_.length-1];!t||Object.keys(e).length?n.hide():n.show()}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-big cv-subtitle-search-button ".concat(Oo(jo(n.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"update",value:function(){Oo(jo(n.prototype),"update",this).call(this),this.player_.trigger("resizemenus")}},{key:"pressButton",value:function(){Oo(jo(n.prototype),"pressButton",this).call(this);var t=this.menu.children_[0];(null==t?void 0:t.focus)&&(null==t||t.focus())}},{key:"getCollabsibleName",value:function(){return"Subtitle Size"}},{key:"getCollabsibleValue",value:function(){return""}},{key:"showInCollabsibleMenu",value:function(){return!1}},{key:"showCollapsibleMenu",value:function(){Po.prototype.handleClick.apply(this)}}]),n}(Po);T.a.registerComponent("subtitleSearchButton",xo);n(1263);function Lo(t){return(Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ao(t,e,n){return(Ao="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Vo(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Bo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function No(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mo(t,e,n){return e&&No(t.prototype,e),n&&No(t,n),t}function Uo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Do(t,e)}function Do(t,e){return(Do=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Fo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Vo(t);if(e){var o=Vo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zo(this,n)}}function zo(t,e){return!e||"object"!==Lo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vo(t){return(Vo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ho=T.a.getComponent("MenuItem"),Wo=T.a.getComponent("MenuButton"),qo=[{label:"Play / Pause",type:"play-pause"},{label:"Volume",type:"volume"},{label:"Mute",type:"mute"},{label:"Toggle fullscreen",type:"fullscreen"},{label:"Exit fullscreen",type:"exit-fullscreen"}],Go=function(t){Uo(n,t);var e=Fo(n);function n(t,r){return Bo(this,n),e.call(this,t,r)}return Mo(n,[{key:"createEl",value:function(){return T.a.dom.createEl("li",{className:"vjs-menu-item",tabIndex:-1,innerHTML:'\n <span class="vjs-menu-item-text">'.concat(this.options_.label,"</span>\n <span>").concat(this.getDisplayHtml(this.options_.type),"\n ")})}},{key:"getDisplayHtml",value:function(t){switch(t){case"play-pause":return'<span class="cv-keyboard-button">Spacebar</span>';case"volume":return'<span class="cv-keyboard-button">Shift</span> + \n <span class="cv-keyboard-button cv-single-key">⇑</span> / \n <span class="cv-keyboard-button">Shift</span> +\n <span class="cv-keyboard-button cv-single-key">⇓</span>';case"mute":return'<span class="cv-keyboard-button cv-single-key">m</span>';case"fullscreen":return'<span class="cv-keyboard-button cv-single-key">f</span>';case"exit-fullscreen":return'<span class="cv-keyboard-button cv-single-key">esc</span>'}return""}}]),n}(Ho),Ko=function(t){Uo(n,t);var e=Fo(n);function n(){var t;return Bo(this,n),(t=e.apply(this,arguments)).alwaysCollapsed=!0,t.isCollapsed=!1,t.isCollabsible=!0,t}return Mo(n,[{key:"createItems",value:function(){var t=this,e=[];return e.push(new In(this.player_,{label:"Keyboard Shortcuts"})),qo.forEach((function(n){e.push(new Go(t.player_,n))})),e}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-keyboard-shortcuts ".concat(Ao(Vo(n.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"getCollabsibleName",value:function(){return"Keyboard Shortcuts"}},{key:"getCollabsibleValue",value:function(){return""}},{key:"showInCollabsibleMenu",value:function(){return!0}},{key:"showCollapsibleMenu",value:function(){Wo.prototype.handleClick.apply(this)}}]),n}(Wo);T.a.registerComponent("KeyboardShortcutsButton",Ko);n(1264),n(1265);function Qo(t){return(Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $o(t,e,n){return($o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ei(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Xo(t,e){return(Xo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Jo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ei(t);if(e){var o=ei(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yo(this,n)}}function Yo(t,e){return!e||"object"!==Qo(e)&&"function"!=typeof e?ti(t):e}function ti(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ei(t){return(ei=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ni=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xo(t,e)}(i,t);var e,n,r,o=Jo(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).addChild("cogButton",{items:n.children_},n.children_.length-1),n.update=n.update.bind(ti(n)),n.player_.on("cv-updatecog",n.update),n.player_.on("playerresize",n.update),n.player_.on("dispose",(function(){n.player_.off("cv-updatecog",n.update),n.player_.off("playerresize",n.update)})),n}return e=i,(n=[{key:"togglehidden",value:function(t){for(var e=0;e<this.children_.length;e++){var n=this.children_[e];n.isCollabsible&&(n.alwaysCollapsed||t?(n.isCollapsed=!0,n.addClass("cv-collapsed")):(n.isCollapsed=!1,n.removeClass("cv-collapsed")))}this.getChild("cogButton").update()}},{key:"update",value:function(){var t=this.player_.el().getBoundingClientRect();0!==t.width&&(this.addClass("cv-collapsorator-ready"),this.togglehidden(t.width<600))}},{key:"buildCSSClass",value:function(){return"cv-collapsorator ".concat($o(ei(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return $o(ei(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}}])&&Zo(e.prototype,n),r&&Zo(e,r),i}(T.a.getComponent("Component"));function ri(t){return(ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ii(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ai(t,e){return(ai=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ci(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=li(t);if(e){var o=li(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}function ui(t,e){return!e||"object"!==ri(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function li(t){return(li=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ni.prototype.options_={children:["playToggle","volumePanel","customControlSpacer","playbackRateMenuButton","chaptersButton","qualityButton","keyboardShortcutsButton","subsCapsButton","whiteboardModeButton","subtitleSizeButton","subtitleSearchButton","fullscreenToggle"]},T.a.registerComponent("collapserator",ni);var si=T.a.getComponent("SeekBar"),fi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ai(t,e)}(i,t);var e,n,r,o=ci(i);function i(){return oi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"handleMouseDown",value:function(t){si.prototype.handleMouseDown.call(this,t),this.player_.addClass("cv-disable-play-pause-feedback")}},{key:"handleMouseUp",value:function(t){var e=this;si.prototype.handleMouseUp.call(this,t),this.timeoutId&&window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout((function(){e.player_.removeClass("cv-disable-play-pause-feedback")}),500)}}])&&ii(e.prototype,n),r&&ii(e,r),i}(si);T.a.registerComponent("SeekBar",fi);n(1266);function pi(t){return(pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function di(t,e,n){return(di="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=gi(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function vi(t,e){return(vi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gi(t);if(e){var o=gi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mi(this,n)}}function mi(t,e){return!e||"object"!==pi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gi(t){return(gi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vi(t,e)}(i,t);var e,n,r,o=bi(i);function i(){return yi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-chapter-bar-items ".concat(di(gi(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return di(gi(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"update",value:function(){this.children_.forEach((function(t){t.update()}))}},{key:"updateBuffered",value:function(){var t=this;this.children_.forEach((function(e){e.updateBuffered(function(t){for(var e=t.buffered(),n=t.currentTime(),r=0,o=0;o<e.length;o++){var i=e.start(o),a=e.end(o);if(i<=n&&a>=n){r=a;break}}return r}(t.player_))}))}}])&&hi(e.prototype,n),r&&hi(e,r),i}(T.a.getComponent("Component"));function Ci(t){return(Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ii(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ti(t,e,n){return(Ti="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ji(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Si(t,e){return(Si=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _i(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ji(t);if(e){var o=ji(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ki(this,n)}}function ki(t,e){return!e||"object"!==Ci(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ji(t){return(ji=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ei=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Si(t,e)}(i,t);var e,n,r,o=_i(i);function i(){return Oi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-chapter-bar-load-progress ".concat(Ti(ji(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return Ti(ji(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"update",value:function(t){this.el_.style.width=100*t+"%"}}])&&Ii(e.prototype,n),r&&Ii(e,r),i}(T.a.getComponent("Component"));function Pi(t){return(Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ri(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Li(t,e,n){return(Li="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Mi(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ai(t,e){return(Ai=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Bi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Mi(t);if(e){var o=Mi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ni(this,n)}}function Ni(t,e){return!e||"object"!==Pi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mi(t){return(Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ui=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ai(t,e)}(i,t);var e,n,r,o=Bi(i);function i(){return Ri(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-chapter-bar-play-progress ".concat(Li(Mi(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return Li(Mi(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"update",value:function(t){t>0&&t<1?this.addClass("cv-current"):this.removeClass("cv-current"),this.el_.style.width=100*t+"%"}}])&&xi(e.prototype,n),r&&xi(e,r),i}(T.a.getComponent("Component"));function Di(t){return(Di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zi(t,e,n){return(zi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=qi(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Vi(t,e){return(Vi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Hi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=qi(t);if(e){var o=qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wi(this,n)}}function Wi(t,e){return!e||"object"!==Di(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vi(t,e)}(i,t);var e,n,r,o=Hi(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).playProgress=new Ui(n.player_),n.addChild(n.playProgress),n.loadProgress=new Ei(n.player_),n.addChild(n.loadProgress),n.update(),n.updateBuffered(0),n}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-chapter-bar-item ".concat(zi(qi(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return zi(qi(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"getCurrentTime",value:function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}},{key:"update",value:function(){var t=this.player_.duration()||3600,e=this.options_.endTime-this.options_.startTime;if(t!==this.duration_){var n=e/t;this.el_.style.width=100*n+"%";var r=this.options_.startTime/t;this.el_.style.left=100*r+"%",this.duration_=t}var o=this.getCurrentTime();o<this.options_.startTime?this.playProgress.update(0):o>this.options_.endTime?this.playProgress.update(1):this.playProgress.update((o-this.options_.startTime)/e)}},{key:"updateBuffered",value:function(t){var e=this.options_.endTime-this.options_.startTime;t<this.options_.startTime?this.loadProgress.update(0):t>this.options_.endTime?this.loadProgress.update(1):this.loadProgress.update((t-this.options_.startTime)/e)}}])&&Fi(e.prototype,n),r&&Fi(e,r),i}(T.a.getComponent("Component"));function Ki(t){return(Ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zi(t,e,n){return(Zi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ta(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function $i(t,e){return($i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ta(t);if(e){var o=ta(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ji(this,n)}}function Ji(t,e){return!e||"object"!==Ki(e)&&"function"!=typeof e?Yi(t):e}function Yi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ta(t){return(ta=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ea=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$i(t,e)}(i,t);var e,n,r,o=Xi(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).onDurationChange=n.onDurationChange.bind(Yi(n)),n.createChapterItems=n.createChapterItems.bind(Yi(n)),n.updateBuffered=n.updateBuffered.bind(Yi(n)),Yr(n.player_,"chapters",null,n.createChapterItems),n.player_.on("durationchange",n.onDurationChange),n.player_.on("progress",n.updateBuffered),n.createChapterItems(),n.update(),n}return e=i,(n=[{key:"dispose",value:function(){this.player_.off("durationchange",this.onDurationChange),this.player_.off("progress",this.updateBuffered),Zi(ta(i.prototype),"dispose",this).call(this)}},{key:"createEl",value:function(){return T.a.dom.createEl("div",{className:"vjs-progress-holder cv-chapter-seek-bar"},{"aria-label":this.localize("Progress Bar")})}},{key:"onDurationChange",value:function(){this.createChapterItems(),this.update()}},{key:"update",value:function(){var t=Zi(ta(i.prototype),"update",this).call(this);return this.chapterBarItems&&this.chapterBarItems.update(),t}},{key:"updateBuffered",value:function(){this.chapterBarItems.updateBuffered()}},{key:"createChapterItems",value:function(t){var e,n;t&&(this.track_=t);var r=new wi(this.player_);if((null===(n=null===(e=this.track_)||void 0===e?void 0:e.cues)||void 0===n?void 0:n.length)&&!this.options_.ignoreChapters)for(var o=0;o<this.track_.cues.length;o++){var i=this.track_.cues[o],a=i.startTime,c=i.endTime,u=this.player_.duration();u&&(o===this.track_.cues.length-1&&i.endTime<this.player_.duration()&&(c=this.player_.duration()),c>u&&(c=u));var l=new Gi(this.player_,{startTime:a,endTime:c});if(r.addChild(l),u&&c===u)break}else r.addChild(new Gi(this.player_,{startTime:0,endTime:this.player_.duration()||3600}));this.chapterBarItems&&this.removeChild(this.chapterBarItems),this.chapterBarItems=r,this.addChild(this.chapterBarItems)}}])&&Qi(e.prototype,n),r&&Qi(e,r),i}(T.a.getComponent("SeekBar"));ea.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},T.a.browser.IS_IOS||T.a.browser.IS_ANDROID||ea.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),T.a.registerComponent("ChapterSeekBar",ea);n(1267);function na(t){return(na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ra(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ia(t,e,n){return(ia="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=la(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function aa(t,e){return(aa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ca(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=la(t);if(e){var o=la(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ua(this,n)}}function ua(t,e){return!e||"object"!==na(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function la(t){return(la=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var sa=T.a.getComponent("ProgressControl"),fa=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&aa(t,e)}(i,t);var e,n,r,o=ca(i);function i(){var t;return ra(this,i),(t=o.apply(this,arguments)).seekBarName_="seekBar",t}return e=i,(n=[{key:"setSeekBarName",value:function(t){this.seekBarName_=t}},{key:"getChild",value:function(t){return(null==t?void 0:t.toLowerCase())==="seekBar".toLowerCase()&&(t=this.seekBarName_),ia(la(i.prototype),"getChild",this).call(this,t)}}])&&oa(e.prototype,n),r&&oa(e,r),i}(sa);function pa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;t=t<0?0:t;var n=Math.floor(t%60),r=Math.floor(t/60%60),o=Math.floor(t/3600),i=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(o=r=n="-"),(o=o>0||a>0?o+":":"")+(r=((o||i>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)}fa.prototype.options_={children:[]},T.a.registerComponent("ProgressControl",fa);n(1268);function ya(t){return(ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ha(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function da(t,e,n){return(da="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ga(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function va(t,e){return(va=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ba(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ga(t);if(e){var o=ga(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ma(this,n)}}function ma(t,e){return!e||"object"!==ya(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ga(t){return(ga=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wa=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&va(t,e)}(i,t);var e,n,r,o=ba(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).hasCustomChapterText=!1,Yr(n.player_,"chapters",!1,(function(t){n.track_=t})),n}return e=i,(n=[{key:"createEl",value:function(){var t=da(ga(i.prototype),"createEl",this).call(this);return this.chapter_=T.a.dom.createEl("div"),t.appendChild(this.chapter_),this.time_=T.a.dom.createEl("div"),t.appendChild(this.time_),t}},{key:"updateTime",value:function(t){var e=this.player_.duration();if(T.a.dom.textContent(this.time_,pa(t,e)),this.track_&&!this.hasCustomChapterText){for(var n=0;n<this.track_.cues.length;n++){var r=this.track_.cues[n],o=r.endTime||e;if(r.startTime<=t&&o>=t)return void T.a.dom.textContent(this.chapter_,r.text)}T.a.dom.textContent(this.chapter_,"")}}},{key:"setCustomChapterText",value:function(t){this.hasCustomChapterText=!!t,T.a.dom.textContent(this.chapter_,null!=t?t:"")}}])&&ha(e.prototype,n),r&&ha(e,r),i}(T.a.getComponent("TimeTooltip"));T.a.registerComponent("TimeTooltip",wa);n(1269);function Ca(t){return(Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ia(t,e,n){return(Ia="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ka(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ta(t,e){return(Ta=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Sa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ka(t);if(e){var o=ka(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _a(this,n)}}function _a(t,e){return!e||"object"!==Ca(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ka(t){return(ka=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ja=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ta(t,e)}(i,t);var e,n,r,o=Sa(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"setTrack",value:function(t){this.track_=t}},{key:"createEl",value:function(){var t=Ia(ka(i.prototype),"createEl",this).call(this,"div",{className:"cv-thumbnail-display"});return this.img_=T.a.dom.createEl("img"),t.appendChild(this.img_),t}},{key:"enable",value:function(){this.addClass("cv-thumbnail-display-enabled")}},{key:"disable",value:function(){this.removeClass("cv-thumbnail-display-enabled")}},{key:"parseImageLink",value:function(t){var e=t.indexOf("#");if(-1===e)return{src:t,w:0,h:0,x:0,y:0};var n=t.substr(0,e),r=t.substr(e+1);if("xywh="!==r.substr(0,5))return{src:t,w:0,h:0,x:0,y:0};var o=this.getScale(),i=r.substr(5).split(",");return{src:n,w:parseInt(i[2])*o,h:parseInt(i[3])*o,x:parseInt(i[0])*o,y:parseInt(i[1])*o}}},{key:"getScale",value:function(){var t=this.options_.scaleFactor,e=this.player_.whiteboardModePlugin().side;return this.player_.isFullscreen()&&"bottom"!==e&&(t*=2),t}},{key:"update",value:function(t){var e,n;if(null===(n=null===(e=this.track_)||void 0===e?void 0:e.cues)||void 0===n?void 0:n.length){for(var r,o=t,i=0;i<this.track_.cues.length;){var a=this.track_.cues[i];if(a.startTime<=o&&a.endTime>=o){r=this.parseImageLink(a.text);break}i++}if(null==r?void 0:r.src){this.enable();var c=r,u=c.src,l=c.w,s=c.h,f=c.x,p=c.y,y=this.getScale();this.img_.src=u,this.img_.style.left=-f+"px",this.img_.style.top=-p+"px",this.img_.style.transformOrigin="0 0",this.img_.style.transform="scale(".concat(y,")"),this.el_.style.width=l+"px",this.el_.style.height=s+"px"}else this.disable()}}}])&&Oa(e.prototype,n),r&&Oa(e,r),i}(T.a.getComponent("Component"));ja.prototype.options_={scaleFactor:1},T.a.registerComponent("ThumbnailDisplay",ja);n(1270);function Ea(t){return(Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ra(t,e){return(Ra=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ba(t);if(e){var o=Ba(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return La(this,n)}}function La(t,e){return!e||"object"!==Ea(e)&&"function"!=typeof e?Aa(t):e}function Aa(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ba(t){return(Ba=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Na=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ra(t,e)}(i,t);var e,n,r,o=xa(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n=o.call(this,t,e),Yr(n.player_,"metadata","thumbnails",(function(t){n.getChild("ThumbnailDisplay").setTrack(t)})),n.update=n.update.bind(Aa(n)),n.player_.on("durationchange",n.update),n.player_.one("dispose",(function(){n.player_.off("durationchange",n.update)})),n}return e=i,(n=[{key:"update",value:function(t,e){var n=this;this.requestAnimationFrame((function(){var r=e*n.player_.duration();n.getChild("ThumbnailDisplay").update(r),n.getChild("TimeTooltip").updateTime(r);var o=n.el_.getBoundingClientRect();n.el_.style.marginLeft=-o.width/2+"px";var i=t.width*e;i<o.width/2?n.el_.style.left=o.width/2+"px":i>t.width-o.width/2?n.el_.style.left=t.width-o.width/2+"px":n.el_.style.left=t.width*e+"px"}))}},{key:"forceShow",value:function(){this.addClass("cv-mouse-time-display-force-show")}},{key:"removeForceShow",value:function(){this.removeClass("cv-mouse-time-display-force-show")}}])&&Pa(e.prototype,n),r&&Pa(e,r),i}(T.a.getComponent("MouseTimeDisplay"));Na.prototype.options_={children:["ThumbnailDisplay","TimeTooltip"]},T.a.registerComponent("MouseTimeDisplay",Na);n(1271);function Ma(t){return(Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ua(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Da(t,e,n){return(Da="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ha(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Fa(t,e){return(Fa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function za(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ha(t);if(e){var o=Ha(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Va(this,n)}}function Va(t,e){return!e||"object"!==Ma(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ha(t){return(Ha=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Wa=T.a.getComponent("ChaptersTrackMenuItem"),qa=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fa(t,e)}(i,t);var e,n,r,o=za(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).nonIconControl=!1,n.thumbnailDisplay=new ja(n.player_,{scaleFactor:.5}),n.el().insertBefore(n.thumbnailDisplay.el(),n.el().firstChild),Yr(n.player_,"metadata","thumbnails",(function(t){n.addClass("cv-has-thumbnails"),n.thumbnailDisplay.setTrack(t),n.thumbnailDisplay.update(n.options_.cue.startTime)})),n}return e=i,(n=[{key:"update",value:function(){this.player_&&Wa.prototype.update.call(this)}},{key:"buildCSSClass",value:function(){return"vjs-menu-item cv-chapter-menu-item"}},{key:"createEl",value:function(t,e,n){return this.nonIconControl=!0,Da(Ha(i.prototype),"createEl",this).call(this,"li",Object.assign({className:this.buildCSSClass(),innerHTML:this.getInnerHTML(),tabIndex:-1},e),n)}},{key:"getInnerHTML",value:function(){var t=this.player_.duration();return'<span class="vjs-menu-item-text cv-chapter-menu-item-text">'+"<p>".concat(this.localize(this.options_.label),"</p>")+"<p>(".concat(pa(this.options_.cue.startTime,t),")</p>")+"</span>"}}])&&Ua(e.prototype,n),r&&Ua(e,r),i}(Wa);n(1272);function Ga(t){return(Ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ka(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qa(t,e,n){return(Qa="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ya(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Za(t,e){return(Za=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ya(t);if(e){var o=Ya(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xa(this,n)}}function Xa(t,e){return!e||"object"!==Ga(e)&&"function"!=typeof e?Ja(t):e}function Ja(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ya(t){return(Ya=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var tc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Za(t,e)}(i,t);var e,n,r,o=$a(i);function i(t,e,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(r=o.call(this,t,e,n)).alwaysCollapsed=!1,r.isCollapsed=!1,r.isCollabsible=!0,r.update=r.update.bind(Ja(r)),r.player_.on("cv-whiteboard-change",r.update),r.player_.on("fullscreenchange",r.update),r.player_.on("dispose",(function(){r.player_.off("cv-whiteboard-change",r.update),r.player_.off("fullscreenchange",r.update)})),r}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-chapters-button ".concat(Qa(Ya(i.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-big ".concat(Qa(Ya(i.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,r=e.length;n<r;n++){var o=e[n],i=new qa(this.player_,{track:this.track_,cue:o});t.push(i)}return t}},{key:"setTrack",value:function(t){var e=this;Qa(Ya(i.prototype),"setTrack",this).call(this,t),this.track_&&"chapters"===this.track_.kind&&t.one("loadeddata",(function(){e.update()}))}},{key:"update",value:function(t){Qa(Ya(i.prototype),"update",this).call(this,t)}},{key:"getCollabsibleName",value:function(){return"Chapters"}},{key:"getCollabsibleValue",value:function(){var t=this.track_.activeCues[0];return(null==t?void 0:t.text)||""}},{key:"showInCollabsibleMenu",value:function(){if(!this.track_)return!1;var t=this.track_.cues;return!(!t||!t.length)}},{key:"showCollapsibleMenu",value:function(){this.handleClick(null)}}])&&Ka(e.prototype,n),r&&Ka(e,r),i}(T.a.getComponent("ChaptersButton"));function ec(t){return(ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oc(t,e){return(oc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ic(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cc(t);if(e){var o=cc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ac(this,n)}}function ac(t,e){return!e||"object"!==ec(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function cc(t){return(cc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerComponent("ChaptersButton",tc);var uc=T.a.getComponent("OffTextTrackMenuItem"),lc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oc(t,e)}(i,t);var e,n,r,o=ic(i);function i(){return nc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"handleClick",value:function(t){uc.prototype.handleClick.call(this,t),this.player_.trigger("cv:languageselected")}}])&&rc(e.prototype,n),r&&rc(e,r),i}(uc);function sc(t){return(sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yc(t,e){return(yc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function hc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vc(t);if(e){var o=vc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dc(this,n)}}function dc(t,e){return!e||"object"!==sc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vc(t){return(vc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerComponent("OffTextTrackMenuItem",lc);var bc=T.a.getComponent("TextTrackButton"),mc=T.a.getComponent("TextTrackMenuItem"),gc=T.a.getComponent("OffTextTrackMenuItem"),wc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yc(t,e)}(i,t);var e,n,r,o=hc(i);function i(){return fc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createItems",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mc;this.label_&&(t="".concat(this.label_," off")),e.push(new gc(this.player_,{kinds:this.kinds_,kind:this.kind_,label:t})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var o=0;o<r.length;o++){var i=r[o];if(this.kinds_.indexOf(i.kind)>-1){var a=new n(this.player_,{track:i,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-".concat(i.kind,"-menu-item")),e.push(a)}}return e}}])&&pc(e.prototype,n),r&&pc(e,r),i}(bc);function Cc(t){return(Cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ic(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tc(t,e){return(Tc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Sc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=kc(t);if(e){var o=kc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _c(this,n)}}function _c(t,e){return!e||"object"!==Cc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function kc(t){return(kc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerComponent("TextTrackButton",wc);var jc=T.a.getComponent("SubsCapsMenuItem"),Ec=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tc(t,e)}(i,t);var e,n,r,o=Sc(i);function i(){return Oc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"handleClick",value:function(t){jc.prototype.handleClick.call(this,t),this.player_.trigger("cv:languageselected")}}])&&Ic(e.prototype,n),r&&Ic(e,r),i}(jc);function Pc(t){return(Pc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Rc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xc(t,e){return(xc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Lc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Bc(t);if(e){var o=Bc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ac(this,n)}}function Ac(t,e){return!e||"object"!==Pc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Bc(t){return(Bc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Nc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xc(t,e)}(i,t);var e,n,r,o=Lc(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var n={};return n.track={player:t,kind:"subtitle",label:"Caption Text Size",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="SubtitleSizeMenuItem",(e=o.call(this,t,n)).addClass("vjs-texttrack-settings"),e.addClass("cv-divider-after-menu-item"),e.addClass("cv-subtitle-size-menu-item"),e.controlText(", opens subtitle size settings"),e}return e=i,(n=[{key:"handleClick",value:function(){var t=this;this.requestAnimationFrame((function(){t.player_.getChild("collapserator").getChild("subtitleSizeButton").showCollapsibleMenu()}))}}])&&Rc(e.prototype,n),r&&Rc(e,r),i}(T.a.getComponent("TextTrackMenuItem"));function Mc(t){return(Mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dc(t,e){return(Dc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Fc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Hc(t);if(e){var o=Hc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zc(this,n)}}function zc(t,e){return!e||"object"!==Mc(e)&&"function"!=typeof e?Vc(t):e}function Vc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hc(t){return(Hc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Wc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dc(t,e)}(i,t);var e,n,r,o=Fc(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var n={};n.track={player:t,kind:"subtitle",label:"Search Captions",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="SubtitleSearchMenuItem",(e=o.call(this,t,n)).addClass("vjs-texttrack-settings"),e.addClass("cv-subtitle-search-menu-item"),e.controlText(", opens subtitle search"),e.toggleEnabled=e.toggleEnabled.bind(Vc(e));var r=e.player_.textTracks();return r.addEventListener("selectedlanguagechange",e.toggleEnabled),e.player_.one("dispose",(function(){r.removeEventListener("selectedlanguagechange",e.toggleEnabled)})),e.toggleEnabled(),e}return e=i,(n=[{key:"toggleEnabled",value:function(){var t;if(this.player_){var e=to(this.player_);e?(null===(t=e.cues)||void 0===t?void 0:t.length)?this.removeClass("vjs-disabled"):(this.bindTrackEvents(e),this.addClass("vjs-disabled")):this.addClass("vjs-disabled")}}},{key:"bindTrackEvents",value:function(t){var e=this;t.removeEventListener("loadeddata",this.toggleEnabled),t.addEventListener("loadeddata",this.toggleEnabled),this.player_.one("dispose",(function(){t.removeEventListener("loadeddata",e.toggleEnabled)}))}},{key:"handleClick",value:function(){var t,e=this,n=to(this.player_);(null===(t=null==n?void 0:n.cues)||void 0===t?void 0:t.length)&&this.requestAnimationFrame((function(){e.player_.getChild("collapserator").getChild("subtitleSearchButton").showCollapsibleMenu()}))}}])&&Uc(e.prototype,n),r&&Uc(e,r),i}(T.a.getComponent("TextTrackMenuItem"));function qc(t){return(qc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qc(t,e,n){return(Qc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Jc(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Zc(t,e){return(Zc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Jc(t);if(e){var o=Jc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xc(this,n)}}function Xc(t,e){return!e||"object"!==qc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Jc(t){return(Jc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Yc=T.a.getComponent("OffTextTrackMenuItem"),tu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zc(t,e)}(i,t);var e,n,r,o=$c(i);function i(){return Gc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createEl",value:function(t,e,n){return Qc(Jc(i.prototype),"createEl",this).call(this,"li",Object.assign(Object.assign({className:"vjs-menu-item",tabIndex:-1},e),{innerHTML:'<span class="vjs-menu-item-text">Off</span>'}),n)}}])&&Kc(e.prototype,n),r&&Kc(e,r),i}(Yc);Yc.prototype=tu.prototype,T.a.registerComponent("OffTextTrackMenuItem",tu);n(1273);function eu(t){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ru(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ou(t,e,n){return(ou="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=uu(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function iu(t,e){return(iu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function au(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=uu(t);if(e){var o=uu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cu(this,n)}}function cu(t,e){return!e||"object"!==eu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function uu(t){return(uu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lu=T.a.getComponent("TextTrackButton"),su=T.a.getComponent("SubsCapsButton"),fu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&iu(t,e)}(i,t);var e,n,r,o=au(i);function i(){var t;return nu(this,i),(t=o.apply(this,arguments)).alwaysCollapsed=!1,t.isCollapsed=!1,t.isCollabsible=!0,t}return e=i,(n=[{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-has-left-icons ".concat(ou(uu(i.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var t=[new Wc(this.player_),new Nc(this.player_)];return this.hideThreshold_=this.hideThreshold_+2,lu.prototype.createItems.call(this,t,Ec)}},{key:"getCollabsibleName",value:function(){return"Subtitles"}},{key:"getCollabsibleValue",value:function(){for(var t=this.player_.textTracks(),e=0;e<t.length;e++){var n=t[e];if(this.kinds_.indexOf(n.kind)>-1&&"showing"===n.mode)return n.label}return"Off"}},{key:"showInCollabsibleMenu",value:function(){for(var t=this.player_.textTracks(),e=0;e<t.length;e++){var n=t[e];if(this.kinds_.indexOf(n.kind)>-1)return!0}return!1}},{key:"showCollapsibleMenu",value:function(){su.prototype.handleClick.apply(this)}}])&&ru(e.prototype,n),r&&ru(e,r),i}(su);function pu(t){return(pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hu(t,e){return(hu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function du(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mu(t);if(e){var o=mu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vu(this,n)}}function vu(t,e){return!e||"object"!==pu(e)&&"function"!=typeof e?bu(t):e}function bu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mu(t){return(mu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerComponent("SubsCapsButton",fu);var gu=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},wu="<span class='vjs-local-cache-indicator-icon' title='Streaming from ClickView Local Cache'>".concat(Yt,"</span>"),Cu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hu(t,e)}(i,t);var e,n,r,o=du(i);function i(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).qualityId=e.qualityId;var r=t.qualityLevels(),a=n.handleQualityChange.bind(bu(n));return r.on("change",a),t.one("dispose",(function(){r.off("change",a)})),n.handleLocalCacheChange=n.handleLocalCacheChange.bind(bu(n)),n.player_.ready((function(){n.player_&&(n.player_.on("localcachechanged",n.handleLocalCacheChange),n.player_.one("dispose",(function(){var t;null===(t=n.player_)||void 0===t||t.off("localcachechanged",n.handleLocalCacheChange)})),n.handleLocalCacheChange())})),n}return e=i,(n=[{key:"handleLocalCacheChange",value:function(){return gu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.player_.localCache(),t.next=3,e.getActiveLocalCache();case 3:if(null==(n=t.sent)?void 0:n.playbackProfile){t.next=9;break}return this.show(),this.enable(),this.setLabel(this.options_.label),t.abrupt("return");case 9:n.playbackProfile!==this.qualityId?this.disable():this.setLabel(this.options_.label+wu);case 10:case"end":return t.stop()}}),t,this)})))}},{key:"setLabel",value:function(t){var e=this.$(".vjs-menu-item-text");e&&(e.innerHTML=t)}},{key:"buildCSSClass",value:function(){return"vjs-menu-item cv-quality-menu-item"}},{key:"handleClick",value:function(){for(var t=this.player_.qualityLevels(),e=0;e<t.length;e++){var n=t[e];n.enabled=n.id===this.qualityId}}},{key:"handleQualityChange",value:function(){if(this.player_){var t=this.player_.qualityLevels(),e=t[t.selectedIndex],n=e&&e.id===this.qualityId;n!==this.isSelected_&&this.selected(n)}}}])&&yu(e.prototype,n),r&&yu(e,r),i}(T.a.getComponent("MenuItem"));n(1274);function Ou(t){return(Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Iu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tu(t,e,n){return(Tu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Eu(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Su(t,e){return(Su=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Eu(t);if(e){var o=Eu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ku(this,n)}}function ku(t,e){return!e||"object"!==Ou(e)&&"function"!=typeof e?ju(t):e}function ju(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Eu(t){return(Eu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pu={240:"240p",360:"360p",480:"480p",720:"720p",1080:"1080p"},Ru=T.a.getComponent("MenuButton"),xu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Su(t,e)}(i,t);var e,n,r,o=_u(i);function i(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).alwaysCollapsed=!0,n.isCollapsed=!1,n.isCollabsible=!0;var r=n.player_.qualityLevels(),a=n.update.bind(ju(n));return r.on("addqualitylevel",a),r.on("removequalitylevel",a),t.one("dispose",(function(){r.removeEventListener("addqualitylevel",a),r.removeEventListener("removequalitylevel",a)})),n}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-quality-button ".concat(Tu(Eu(i.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small vjs-quality-button cv-has-left-icons ".concat(Tu(Eu(i.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var t=[],e=this.player_.qualityLevels();t.push(new In(this.player_,{label:"Quality"}));for(var n=0;n<e.length;n++){var r=e[n];if(r){var o=Pu[r.id];o&&t.push(new Cu(this.player_,{qualityId:r.id,label:o,selectable:!0,multiSelectable:!1}))}}return t}},{key:"getCollabsibleName",value:function(){return"Quality"}},{key:"getCollabsibleValue",value:function(){var t=this.player_.qualityLevels(),e=t[t.selectedIndex];return e?Pu[e.id]:""}},{key:"showInCollabsibleMenu",value:function(){return!!this.player_.qualityLevels().length}},{key:"showCollapsibleMenu",value:function(){Ru.prototype.handleClick.apply(this)}}])&&Iu(e.prototype,n),r&&Iu(e,r),i}(Ru);T.a.registerComponent("QualityButton",xu);n(1275);function Lu(t){return(Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Au(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nu(t,e,n){return(Nu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Fu(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Mu(t,e){return(Mu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Uu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fu(t);if(e){var o=Fu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Du(this,n)}}function Du(t,e){return!e||"object"!==Lu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fu(t){return(Fu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zu=T.a.getComponent("Menu"),Vu=T.a.getComponent("MenuButton"),Hu=T.a.getComponent("PlaybackRateMenuItem"),Wu=T.a.getComponent("PlaybackRateMenuButton"),qu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mu(t,e)}(i,t);var e,n,r,o=Uu(i);function i(){var t;return Au(this,i),(t=o.apply(this,arguments)).alwaysCollapsed=!0,t.isCollapsed=!1,t.isCollabsible=!0,t}return e=i,(n=[{key:"createEl",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=Vu.prototype.createEl).apply.apply(t,[this].concat(n))}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-has-left-icons ".concat(Nu(Fu(i.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createMenu",value:function(){var t=new zu(this.player(),{menuButton:this});t.addItem(new In(this.player_,{label:"Playback Speed"}));var e=this.playbackRates();if(e)for(var n=0;n<e.length;n++){var r=e[n]+"x";1===e[n]&&(r+=" (Normal)"),t.addItem(new Hu(this.player(),{rate:r}))}return t}},{key:"handleClick",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=Vu.prototype.handleClick).apply.apply(t,[this].concat(n))}},{key:"updateLabel",value:function(){var t;this.setupLabelEl();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=Wu.prototype.updateLabel).apply.apply(t,[this].concat(n))}},{key:"setupLabelEl",value:function(){if(!this.labelEl_){var t=this.$("button");t&&(this.labelEl_=T.a.dom.createEl("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_))}}},{key:"getCollabsibleName",value:function(){return"Playback Speed"}},{key:"getCollabsibleValue",value:function(){return this.player().playbackRate()+"x"}},{key:"showInCollabsibleMenu",value:function(){return!!this.playbackRates()}},{key:"showCollapsibleMenu",value:function(){this.handleClick(null)}}])&&Bu(e.prototype,n),r&&Bu(e,r),i}(Wu);function Gu(t){return(Gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ku(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zu(t,e){return(Zu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ju(t);if(e){var o=Ju(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xu(this,n)}}function Xu(t,e){return!e||"object"!==Gu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ju(t){return(Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerComponent("PlaybackRateMenuButton",qu);var Yu=T.a.getComponent("TextTrackSettings"),tl={backgroundColor:"#000",backgroundOpacity:"1",color:"#FFF",edgeStyle:void 0,fontFamily:"proportionalSansSerif",fontPercent:1,textOpacity:"1",windowColor:"#000",windowOpacity:"0"},el={small:tl,medium:Object.assign(Object.assign({},tl),{fontPercent:1.5}),large:Object.assign(Object.assign({},tl),{fontPercent:2})},nl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zu(t,e)}(i,t);var e,n,r,o=$u(i);function i(){return Ku(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"setSizeSetting",value:function(t){this.size_=t,this.player_.getChild("textTrackDisplay").updateDisplay(),this.player_.getChild("collapserator").getChild("subtitleSizeButton").update(),this.player_.trigger("resizemenus"),this.player_.trigger("changesubtitlesize",this.size_)}},{key:"getSizeSetting",value:function(){return this.size_||"small"}},{key:"getValues",value:function(){return el[this.size_]?el[this.size_]:tl}}])&&Qu(e.prototype,n),r&&Qu(e,r),i}(Yu);T.a.registerComponent("TextTrackSettings",nl);n(1276);function rl(t){return(rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ol(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function il(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function al(t,e,n){return(al="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=sl(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function cl(t,e){return(cl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ul(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=sl(t);if(e){var o=sl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ll(this,n)}}function ll(t,e){return!e||"object"!==rl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function sl(t){return(sl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fl=window.navigator&&window.navigator.userAgent||"",pl=(/iPod/i.test(fl),/Android/i.test(fl),T.a.getComponent("Player")),yl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cl(t,e)}(i,t);var e,n,r,o=ul(i);function i(){return ol(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"lock",value:function(t){this.callback_=t}},{key:"unlock",value:function(){delete this.callback_}},{key:"currentTime",value:function(t,e){var n=this;if("number"!=typeof t||!this.callback_||e)return al(sl(i.prototype),"currentTime",this).call(this,t);this.callback_((function(){n.unlock(),n.currentTime(t)}))}},{key:"play",value:function(){var t=this;if(!this.callback_)return al(sl(i.prototype),"play",this).call(this);this.callback_((function(){t.unlock(),t.play()}))}},{key:"updateStyleEl_",value:function(){if(pl.prototype.updateStyleEl_.call(this),this.options_.fluid){var t=this.el_.parentNode;if(t&&this.options_.setMaxHeight){var e=this.aspectRatio();void 0!==e&&"auto"!==e||(e=this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9");var n=e.split(":"),r=+n[1]/+n[0];t.style.maxWidth=85/r+"vh",t.style.margin="0 auto"}}}},{key:"listenForUserActivity_",value:function(){var t=this;pl.prototype.listenForUserActivity_.call(this);var e=this.getChild("collapserator");e.on("mouseenter",(function(){t.player().cache_.inactivityTimeout=t.player().options_.inactivityTimeout,t.player().options_.inactivityTimeout=0})),e.on("mouseleave",(function(){t.player().options_.inactivityTimeout=t.player().cache_.inactivityTimeout}))}}])&&il(e.prototype,n),r&&il(e,r),i}(pl);yl.prototype.options_=Object.assign(Object.assign({},pl.prototype.options_),{setMaxHeight:!0}),T.a.registerComponent("player",yl);n(1277);function hl(t){return(hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vl(t,e){return(vl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=wl(t);if(e){var o=wl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ml(this,n)}}function ml(t,e){return!e||"object"!==hl(e)&&"function"!=typeof e?gl(t):e}function gl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wl(t){return(wl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Cl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vl(t,e)}(i,t);var e,n,r,o=bl(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).player_.addClass("cv-disable-play-pause-feedback"),n.onFirstPlay=n.onFirstPlay.bind(gl(n)),n.player_.one("firstplay",n.onFirstPlay),n}return e=i,(n=[{key:"dispose",value:function(){this.player_.off("firstplay",this.onFirstPlay)}},{key:"onFirstPlay",value:function(){var t=this;window.setTimeout((function(){t.player_.removeClass("cv-disable-play-pause-feedback")}),500)}},{key:"createEl",value:function(){return T.a.dom.createEl("div",{className:"cv-play-pause-feedback"})}}])&&dl(e.prototype,n),r&&dl(e,r),i}(T.a.getComponent("Component"));T.a.registerComponent("PlayPauseFeedback",Cl);n(1278);function Ol(t){return(Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Il(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sl(t,e){return(Sl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=jl(t);if(e){var o=jl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kl(this,n)}}function kl(t,e){return!e||"object"!==Ol(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function jl(t){return(jl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var El=T.a.getComponent("PlayToggle"),Pl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sl(t,e)}(i,t);var e,n,r,o=_l(i);function i(){return Il(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"handleClick",value:function(t){var e=this;El.prototype.handleClick.call(this,t),this.player_.addClass("cv-disable-play-pause-feedback"),this.timeoutId&&window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout((function(){e.player_.removeClass("cv-disable-play-pause-feedback")}),500)}}])&&Tl(e.prototype,n),r&&Tl(e,r),i}(El);T.a.registerComponent("PlayToggle",Pl);n(1279),n(1280),n(1281),n(1282),n(1283);var Rl,xl=n(1132),Ll=n.n(xl);function Al(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bl(t){t.paused()?t.play():t.pause()}function Nl(t,e){t.currentTime(t.currentTime()+e)}function Ml(t,e){t.volume(t.volume()+e)}var Ul=(Al(Rl={},"f",(function(t){document[t.fsApi_.fullscreenEnabled]&&(t.isFullscreen()?t.exitFullscreen():t.requestFullscreen())})),Al(Rl,"m",(function(t){var e=t.volume(),n=t.lastVolume_();if(0===e){var r=n<.1?.1:n;t.volume(r),t.muted(!1)}else t.muted(!t.muted())})),Al(Rl,"k",Bl),Al(Rl,"space",Bl),Al(Rl,"left",(function(t){return Nl(t,-5)})),Al(Rl,"right",(function(t){return Nl(t,5)})),Al(Rl,"j",(function(t){return Nl(t,-10)})),Al(Rl,"l",(function(t){return Nl(t,10)})),Al(Rl,"up",(function(t){return Ml(t,.05)})),Al(Rl,"down",(function(t){return Ml(t,-.05)})),Rl);function Dl(t){var e=Ll()(t);Ul[e]&&(["space"].includes(e)&&(t.preventDefault(),t.stopPropagation()),Ul[e](this,t))}function Fl(t){return(Fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zl(t,e){return!e||"object"!==Fl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vl(t){var e="function"==typeof Map?new Map:void 0;return(Vl=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Hl(t,arguments,Gl(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ql(r,t)})(t)}function Hl(t,e,n){return(Hl=Wl()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&ql(o,n.prototype),o}).apply(null,arguments)}function Wl(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function ql(t,e){return(ql=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gl(t){return(Gl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Kl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ql(t,e)}(o,t);var e,n,r=(e=o,n=Wl(),function(){var t,r=Gl(e);if(n){var o=Gl(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return zl(this,t)});function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=r.call(this,t)).url=e,n}return o}(Vl(Error));function Ql(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Zl=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},$l=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tokens={gateway:null}}var e,n,r;return e=t,(n=[{key:"get",value:function(t,e){return Zl(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=this,n.next=3,fetch(t,{method:"GET",mode:"cors",headers:this.getHeaders(e)});case 3:return n.t1=n.sent,n.next=6,n.t0.parseResponse.call(n.t0,n.t1);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n,this)})))}},{key:"delete",value:function(t,e){return Zl(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,fetch(t,{method:"DELETE",headers:this.getHeaders(e)});case 2:case"end":return n.stop()}}),n,this)})))}},{key:"post",value:function(t,e,n){return Zl(this,void 0,void 0,regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=this,r.next=3,fetch(t,{method:"POST",headers:this.getHeaders(n),body:e,mode:"cors"});case 3:return r.t1=r.sent,r.next=6,r.t0.parseResponse.call(r.t0,r.t1);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"put",value:function(t,e,n){return Zl(this,void 0,void 0,regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=this,r.next=3,fetch(t,{method:"PUT",headers:this.getHeaders(n),body:e,mode:"cors"});case 3:return r.t1=r.sent,r.next=6,r.t0.parseResponse.call(r.t0,r.t1);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"setToken",value:function(t,e){this.tokens[t]=e}},{key:"getHeaders",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={"Content-Type":"application/json"};return this.tokens[t.tokenName]&&(e.authorization="Bearer ".concat(this.tokens[t.tokenName])),e}},{key:"parseResponse",value:function(t){return Zl(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(404!==t.status){e.next=2;break}return e.abrupt("return",null);case 2:if(t.ok){e.next=4;break}throw new Kl("Ajax error",t.url);case 4:return e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})))}}])&&Ql(e.prototype,n),r&&Ql(e,r),t}()),Xl=n(202),Jl=(n(1284),n(1285)),Yl=n.n(Jl),ts=n(1286);function es(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ns(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ns(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ns(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var rs={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i};function os(t,e,n){var r=es(e.exec(n)||[],1)[0];return r||(r="Unknown"),{name:t,version:r}}function is(t,e,n){if(!e)return{name:t,version:"Unknown"};var r=e.exec(n);return{name:t,version:r&&r.length?r[0].trim():"Unknown"}}var as=function(){var t=window.navigator.userAgent;return rs.android.test(t)?is("Android",rs.androidVersion,t):rs.iphone.test(t)||rs.ipad.test(t)?is("iOS",rs.iosVersion,t):rs.linux.test(t)?is("Linux",null,t):rs.unix.test(t)?is("Unix",null,t):rs.mac.test(t)?is("Macintosh",rs.osxVersion,t):rs.windows.test(t)?function(t,e){var n={name:t,version:null};return rs.win2000.test(e)&&(n.version="2000"),rs.winXP.test(e)&&(n.version="XP"),rs.winVista.test(e)&&(n.version="Vista"),rs.win7.test(e)&&(n.version="7"),rs.win8.test(e)&&(n.version="8"),rs.win81.test(e)&&(n.version="8.1"),rs.win10.test(e)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",t):rs.blackberry.test(t)?is("BlackBerry",rs.blackberryVersion,t):rs.windowsPhone.test(t)?is("Windows Phone",rs.windowsPhoneVersion,t):{name:"Unknown",version:"Unknown"}},cs=function(){var t=window.navigator.userAgent;return rs.chrome.test(t)?os("Chrome",rs.generalVersion,t):rs.firefox.test(t)?os("Firefox",rs.generalVersion,t):rs.safari.test(t)?os("Safari",rs.generalVersion,t):rs.ie.test(t)?os("Internet Explorer",rs.ieVersion,t):rs.edge.test(t)?os("Edge",rs.edgeVersion,t):rs.opera.test(t)?os("Opera",rs.operaVersion,t):{name:"Unknown",version:"Unknown"}};function us(t){return(us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ls,ss=function(t){var e=us(t);return"function"===e||"object"===e&&!!t},fs=function(t){return"function"==typeof t},ps=n(480),ys=n(279);!function(t){t.CvApSoutheast1="cv-ap-southeast-1",t.CvApSoutheast2="cv-ap-southeast-2",t.CvEuWest1="cv-eu-west-1",t.CvNaWest1="cv-na-west-1"}(ls||(ls={}));var hs={CvApSoutheast1:{systemName:ls.CvApSoutheast1},CvApSoutheast2:{systemName:ls.CvApSoutheast2},CvEuWest1:{systemName:ls.CvEuWest1},CvNaWest1:{systemName:ls.CvNaWest1}};function ds(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var vs=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},bs=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.initialize()}var e,n,r;return e=t,(n=[{key:"initialize",value:function(){this.validateOptions()}},{key:"name",get:function(){return"CollectionApiClient"}},{key:"log",value:function(t){return vs(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Array.isArray(t)){e.next=2;break}return e.abrupt("return",this.logBulk(t));case 2:if(this.shouldLog(t)){e.next=4;break}return e.abrupt("return");case 4:return this.validateEvent(t),e.t0=this,e.next=8,this.formatData(t);case 8:return e.t1=e.sent,e.next=11,e.t0.postData.call(e.t0,e.t1);case 11:case"end":return e.stop()}}),e,this)})))}},{key:"logBulk",value:function(t){return vs(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.filter((function(t){return o.shouldLog(t)}))).length){e.next=3;break}return e.abrupt("return");case 3:return n.forEach((function(t){return o.validateEvent(t)})),e.next=6,Promise.all(n.map((function(t){return o.formatData(t)})));case 6:return r=e.sent,e.next=9,this.postData(r);case 9:case"end":return e.stop()}}),e,this)})))}},{key:"validateOptions",value:function(){if(!fs(this.options.getUser))throw new Error("getUser option is required.")}},{key:"shouldLog",value:function(t){return!fs(this.options.shouldLog)||this.options.shouldLog(t)}},{key:"postData",value:function(t){return vs(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRegionalUrl(this.options.collectionApiUrls);case 2:return n=e.sent,r=JSON.stringify(t),o=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(r)),i=ps.a.safeUrlConcat(n,"/v1/ingest"),Array.isArray(t)&&(i=ps.a.safeUrlConcat(i,"/bulk")),e.next=9,fetch(i,{method:"POST",mode:"cors",headers:o,body:r});case 9:case"end":return e.stop()}}),e,this)})))}},{key:"getSignatureHeader",value:function(t){var e=new Yl.a("SHA-1","TEXT",{hmacKey:{value:"zXJL9nOHxzDlMUDjiP41",format:"TEXT",encoding:"UTF8"}});return e.update(t),{"cv-analytics-signature":"".concat(this.options.collectionApiClientId,".").concat(e.getHash("B64"))}}},{key:"getRegionalUrl",value:function(t){return vs(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRegion();case 2:n=e.sent,e.t0=n.systemName,e.next=e.t0===ls.CvEuWest1?6:e.t0===ls.CvApSoutheast2?7:e.t0===ls.CvNaWest1?8:(e.t0,ls.CvApSoutheast1,9);break;case 6:return e.abrupt("return",t.cvEuWest1);case 7:return e.abrupt("return",t.cvApSoutheast2);case 8:return e.abrupt("return",t.cvNaWest1);case 9:return e.abrupt("return",t.cvApSoutheast1);case 10:case"end":return e.stop()}}),e,this)})))}},{key:"validateEvent",value:function(t){if("string"!=typeof t.type)throw new Error("Event type is required.");if(!ss(t.actionContext))throw new Error("Event actionContext is required.");if(!t.actionContext.entity)throw new Error("Event actionContext entity is required.")}},{key:"formatData",value:function(t){return vs(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t.type,e.next=3,this.getEventData(t);case 3:return e.t1=e.sent,e.t2=this.getEventMetadata(t),e.abrupt("return",{type:e.t0,data:e.t1,metadata:e.t2});case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getEventData",value:function(t){return vs(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o,i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.actionContext,e.next=3,this.getUserData();case 3:return r=e.sent,o={user:r,action:n,platform:this.getPlatformMetadata(),product:{name:this.options.productName,version:this.options.productVersion}},i=this.extractData(t),a=Object.keys(o).map((function(t){return t.toLowerCase()})),c=Object.keys(i).map((function(t){return t.toLowerCase()})),a.forEach((function(t){if(c.includes(t))throw Error("".concat(t," is a reserved key."))})),e.abrupt("return",Object.assign(Object.assign({},o),i));case 10:case"end":return e.stop()}}),e,this)})))}},{key:"extractData",value:function(t){return fs(this.options.formatData)?this.options.formatData(t):(e={},n=t.actionContext.entity,r=t.data,n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e);var e,n,r}},{key:"getUserData",value:function(){var t,e;return vs(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.options.getUser();case 2:if(null==(r=n.sent)?void 0:r.id){n.next=5;break}return n.abrupt("return");case 5:return n.t0=r.id,n.t1=(null===(t=r.role)||void 0===t?void 0:t.toLowerCase())||"unknown",n.t2=(null===(e=r.userGroup)||void 0===e?void 0:e.toLowerCase())||ys.a.Unknown,n.t3=this.normalizeYearGroup(r.yearGroup),n.t4=r.customerId,n.t5=r.customerName,n.t6=r.customerGuid,n.t7=r.crmId,n.t8=r.countryCode,n.next=16,this.getRegion();case 16:return n.t9=n.sent,n.t10=r.isOpenCustomer,n.t11={id:n.t4,name:n.t5,customerGuid:n.t6,crmId:n.t7,country:n.t8,region:n.t9,openCustomer:n.t10},n.abrupt("return",{id:n.t0,role:n.t1,userGroup:n.t2,yearGroup:n.t3,customer:n.t11});case 20:case"end":return n.stop()}}),n,this)})))}},{key:"getRegion",value:function(){return vs(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.options.getUser();case 2:if(e=t.sent,n=(null==e?void 0:e.instanceRegion)||this.options.regionName){t.next=6;break}throw Error("RegionName is not set.");case 6:return t.abrupt("return",this.getRegionByName(n.toLowerCase()));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getPlatformMetadata",value:function(){return{browser:cs(),os:as(),request:{url:window.location.href,referrer:document.referrer},screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"getEventMetadata",value:function(t){return{client:{name:"".concat(this.name,".ts"),version:ts.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:t.eventVersion}}},{key:"getRegionByName",value:function(t){var e;return Object.values(hs).forEach((function(n){n.systemName===t&&(e=n)})),e}},{key:"normalizeYearGroup",value:function(t){return t?t.toLowerCase().split(" ").join("_"):"unknown"}}])&&ds(e.prototype,n),r&&ds(e,r),t}(),ms=n(36),gs=function(){return!0},ws=function(){return!1};var Cs,Os,Is,Ts,Ss=function(t){return t},_s={getUploadData:function(t,e){var n=e.actionContext.entity;if(n===ms.EntityType.Video)return _s.formatVideoUpload(t,e);if(n===ms.EntityType.Resource||n===ms.EntityType.Subtitle)return _s.formatResourceUpload(t);if(n===ms.EntityType.Banner||n===ms.EntityType.Thumbnail)return t;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(t,e){var n=e.actionContext.workflowPhase;return n===ms.WorkflowPhase.Start?_s.getStartVideoUploadData(t):n===ms.WorkflowPhase.Discard?_s.getDiscardVideoUploadData(t):n===ms.WorkflowPhase.Complete?_s.getCompleteUploadData(t):void 0},getStartVideoUploadData:function(t){return t&&t.length?(t instanceof FileList&&(t=Array.from(t)),t.map((function(e){return{fileName:e.name,size:e.size,type:e.type,count:t.length}}))):[]},getDiscardVideoUploadData:function(t){var e=function(e){var n=e.file,r=n.type,o=n.name,i=n.status,a=n.cvUpload,c={fileName:o,count:Array.isArray(t)?t.length:1,type:r,status:i};return e.progress&&(c.progress=e.progress.toFixed(2)),a&&(c.uploadId=a.uploadId),c};return Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]},getCompleteUploadData:function(t){return t&&t.length?t.map((function(e){return{fileName:e.fileName,libraryId:e.libraryId,folderId:e.folderId,autoCaption:e.autoCaption,count:t.length}})):[]},formatResourceUpload:function(t){var e={id:t.id,name:t.name};return ss(t.metadata)&&(e.type=t.metadata.type),e}};function ks(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var js=(ks(Cs={},ms.UserAction.Navigate,ws),ks(Cs,ms.UserAction.Click,gs),ks(Cs,ms.UserAction.Search,gs),ks(Cs,ms.UserAction.InstantSearch,gs),ks(Cs,ms.UserAction.Play,gs),ks(Cs,ms.UserAction.Stream,gs),ks(Cs,ms.UserAction.WebPlayerStream,gs),ks(Cs,ms.UserAction.StreamProgress,gs),ks(Cs,ms.UserAction.Rename,gs),ks(Cs,ms.UserAction.Move,gs),ks(Cs,ms.UserAction.Create,gs),ks(Cs,ms.UserAction.Delete,gs),ks(Cs,ms.UserAction.Associate,gs),ks(Cs,ms.UserAction.Dissociate,gs),ks(Cs,ms.UserAction.Filter,gs),ks(Cs,ms.UserAction.Sort,gs),ks(Cs,ms.UserAction.Approve,gs),ks(Cs,ms.UserAction.Reject,gs),ks(Cs,ms.UserAction.Disable,gs),ks(Cs,ms.UserAction.Upload,gs),ks(Cs,ms.UserAction.Download,ws),ks(Cs,ms.UserAction.SetAccess,gs),ks(Cs,ms.UserAction.AddToLocalCache,ws),ks(Cs,ms.UserAction.Share,gs),ks(Cs,ms.UserAction.Unshare,gs),ks(Cs,ms.UserAction.Edit,gs),ks(Cs,ms.UserAction.Suggest,gs),ks(Cs,ms.UserAction.Favourite,gs),ks(Cs,ms.UserAction.ResolveWarning,gs),ks(Cs,ms.UserAction.DismissWarning,gs),ks(Cs,ms.UserAction.EditAssoc,gs),ks(Cs,ms.UserAction.Follow,gs),ks(Cs,ms.UserAction.Print,gs),ks(Cs,ms.UserAction.Copy,gs),ks(Cs,ms.UserAction.Activate,gs),ks(Cs,ms.UserAction.VerifyEmail,gs),ks(Cs,ms.UserAction.ChangePassword,gs),ks(Cs,ms.UserAction.Export,gs),ks(Cs,ms.UserAction.SendEmail,gs),ks(Cs,ms.UserAction.Publish,gs),ks(Cs,ms.UserAction.Answer,gs),ks(Cs,ms.UserAction.Complete,gs),Cs),Es=(ks(Os={},ms.UserAction.Search,Ss),ks(Os,ms.UserAction.InstantSearch,Ss),ks(Os,ms.UserAction.Play,Ss),ks(Os,ms.UserAction.Stream,Ss),ks(Os,ms.UserAction.StreamProgress,Ss),ks(Os,ms.UserAction.Click,Ss),ks(Os,ms.UserAction.Filter,Ss),ks(Os,ms.UserAction.Sort,Ss),ks(Os,ms.UserAction.SetAccess,Ss),ks(Os,ms.UserAction.Approve,Ss),ks(Os,ms.UserAction.Reject,Ss),ks(Os,ms.UserAction.Create,Ss),ks(Os,ms.UserAction.Delete,Ss),ks(Os,ms.UserAction.Rename,Ss),ks(Os,ms.UserAction.Move,Ss),ks(Os,ms.UserAction.Edit,Ss),ks(Os,ms.UserAction.Share,Ss),ks(Os,ms.UserAction.Disable,Ss),ks(Os,ms.UserAction.Suggest,Ss),ks(Os,ms.UserAction.Upload,_s.getUploadData),ks(Os,ms.UserAction.ResolveWarning,Ss),ks(Os,ms.UserAction.DismissWarning,Ss),ks(Os,ms.UserAction.Follow,Ss),ks(Os,ms.UserAction.Print,Ss),ks(Os,ms.UserAction.Copy,Ss),Os),Ps=(ks(Is={},ms.UserAction.Search,(function(){return"search"})),ks(Is,ms.UserAction.InstantSearch,(function(){return"search"})),ks(Is,ms.UserAction.Filter,(function(){return"filter"})),ks(Is,ms.UserAction.Stream,(function(){return ms.EntityType.Video})),Is),Rs={user:"target_user"},xs=(ks(Ts={},ms.UserAction.StreamProgress,!0),ks(Ts,ms.UserAction.WebPlayerStream,!0),Ts),Ls={shouldLog:function(t){return!!js[t.type](t)},formatData:function(t){var e=Es[t.type],n=fs(e)?e(t.data,t):t.data;if(xs[t.type])return n;var r=t.actionContext.entity;return fs(Ps[t.type])&&(r=Ps[t.type](t)),Rs[r]&&(r=Rs[r]),ks({},r,n)}};function As(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Bs=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},Ns=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.initialize()}var e,n,r;return e=t,(n=[{key:"logStream",value:function(){var t="v:".concat(this.options.videoId);Xl.a.cacheExists(t)||(this.collectionApiClient.log({type:ms.UserAction.WebPlayerStream,actionContext:this.getActionContext(),data:this.getAnalyticsData(),eventVersion:ms.EventVersion.V2}),Xl.a&&Xl.a.cacheSet(t,null,300))}},{key:"logVideoProgress",value:function(t){var e=this,n=this.getAnalyticsData();this.collectionApiClient.log(t.map((function(t){return{type:ms.UserAction.StreamProgress,actionContext:e.getActionContext(),data:Object.assign(Object.assign({},n),{progress:t}),eventVersion:ms.EventVersion.V1}})))}},{key:"logUserAction",value:function(t,e){var n=Object.assign(Object.assign({},this.getAnalyticsData()),t);this.collectionApiClient.log({type:e.actionType,data:n,actionContext:{productArea:e.productArea,location:this.getLocationContext(),entity:e.entity,descriptor:e.descriptor,workflowPhase:e.workflowPhase},eventVersion:ms.EventVersion.V1})}},{key:"getAnalyticsData",value:function(){var t=Object.assign({video:{id:this.options.videoId},flags:{isUsingLocalCache:this.options.isUsingLocalCache}},this.options.additionalAnalyticsData||{});this.options.shareId&&(t.video.shareId=this.options.shareId);var e=this.getEntityType();return e===ms.EntityType.Interactive?t.interactive={id:this.options.mediaId}:e===ms.EntityType.Clip&&(t.clip={id:this.options.mediaId}),t}},{key:"initialize",value:function(){this.setupCollectionApiClient()}},{key:"setupCollectionApiClient",value:function(){var t=this;this.collectionApiClient=new bs({productName:"player.web",productVersion:this.options.productVersion,regionName:this.options.regionName,collectionApiUrls:this.options.collectionApiUrls,collectionApiClientId:this.options.collectionApiClientId,getUser:function(){return t.getCurrentUser()},shouldLog:Ls.shouldLog,formatData:Ls.formatData})}},{key:"getCurrentUser",value:function(){return Bs(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{id:this.options.userId,customerId:this.options.customerId});case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getActionContext",value:function(){return{entity:this.getEntityType(),location:this.getLocationContext(),productArea:void 0,descriptor:this.options.isEmbedded?ms.PlayerDescriptor.Embedded:void 0,workflowPhase:void 0}}},{key:"getEntityType",value:function(){switch(this.options.mediaType){case"MasterVideo":return ms.EntityType.Video;case"MasterInteractive":return ms.EntityType.Interactive;case"MasterClip":return ms.EntityType.Clip}}},{key:"getLocationContext",value:function(){switch(this.options.playerType){case"player":return ms.LocationContext.Player;case"interactive-player":return ms.LocationContext.InteractivePlayer;case"create-clip-player":return ms.LocationContext.CreateClipPlayer}}}])&&As(e.prototype,n),r&&As(e,r),t}();function Ms(t){return(Ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Us(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ds(t,e,n){return(Ds="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Hs(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Fs(t,e){return(Fs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Hs(t);if(e){var o=Hs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vs(this,n)}}function Vs(t,e){return!e||"object"!==Ms(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Hs(t){return(Hs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ws=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fs(t,e)}(i,t);var e,n,r,o=zs(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).options_=e,n}return e=i,(n=[{key:"createEl",value:function(t,e,n){var r="<h1>".concat(this.options_.title,"</h1>");if(!this.options_.seriesName)return Ds(Hs(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{innerHTML:r}),n);var o=this.buildSeasonEpisodeString();return o?(r="<div class='cv-series-text'>".concat(this.options_.seriesName.toUpperCase()," ").concat(o,"</div>")+r,Ds(Hs(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{innerHTML:r}),n)):(r="<div class='cv-series-text'>".concat(this.options_.seriesName.toUpperCase(),"</div>")+r,Ds(Hs(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{innerHTML:r}),n))}},{key:"buildSeasonEpisodeString",value:function(){if(!this.options_.seasonNumber||!this.options_.episodeNumber)return"";var t=this.padNumber(this.options_.seasonNumber,2),e=this.padNumber(this.options_.episodeNumber,2);return"S".concat(t," • E").concat(e)}},{key:"padNumber",value:function(t,e){var n=t.toString();if(n.length>=e)return n;for(e-=n.length;e>0;)n="0"+n,e--;return n}}])&&Us(e.prototype,n),r&&Us(e,r),i}(T.a.getComponent("Component"));function qs(t){return(qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ks(t,e,n){return(Ks="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Xs(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Qs(t,e){return(Qs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Xs(t);if(e){var o=Xs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $s(this,n)}}function $s(t,e){return!e||"object"!==qs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xs(t){return(Xs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Js=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qs(t,e)}(i,t);var e,n,r,o=Zs(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).options_=e,n}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-splash-warning-container ".concat(Ks(Xs(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){var r=Ks(Xs(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n);if(!this.options_.ratingCode)return r;var o=this.mapCodeToColourClass(this.options_.ratingCode);return r.appendChild(T.a.dom.createEl("div",{className:"cv-splash-rating badge rating-badge ".concat(o),innerHTML:this.options_.ratingCode})),this.options_.warning&&r.appendChild(T.a.dom.createEl("div",{className:"cv-splash-warning",innerHTML:this.options_.warning})),r}},{key:"mapCodeToColourClass",value:function(t){switch(t){case"E":return"bg-purple";case"G":return"bg-green";case"PG":return"bg-info";case"M":return"bg-red";case"MA15+":return"bg-pink";case"R18+":return"bg-yellow"}}}])&&Gs(e.prototype,n),r&&Gs(e,r),i}(T.a.getComponent("Component"));function Ys(t){return(Ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ef(t,e){return(ef=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function nf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=of(t);if(e){var o=of(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rf(this,n)}}function rf(t,e){return!e||"object"!==Ys(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function of(t){return(of=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var af=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ef(t,e)}(i,t);var e,n,r,o=nf(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"createEl",value:function(){var t=T.a.dom.createEl("div",{className:"cv-splash-metadata ".concat(this.options_.embed?"cv-embed-splash-metadata":"")});return this.options_.embed&&t.appendChild(new Ws(this.player_,{title:this.options_.title,seriesName:this.options_.seriesName,seasonNumber:this.options_.seasonNumber,episodeNumber:this.options_.episodeNumber}).el()),t.appendChild(new Js(this.player_,{warning:this.options_.warning,ratingCode:this.options_.ratingCode}).el()),t}}])&&tf(e.prototype,n),r&&tf(e,r),i}(T.a.getComponent("Component"));n(1287);function cf(t){return(cf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lf(t,e,n){return(lf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=yf(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function sf(t,e){return(sf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ff(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yf(t);if(e){var o=yf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pf(this,n)}}function pf(t,e){return!e||"object"!==cf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yf(t){return(yf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var hf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sf(t,e)}(i,t);var e,n,r,o=ff(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).addChild(new af(n.player_,n.options_)),n}return e=i,(n=[{key:"createEl",value:function(t,e,n){var r="<div class='cv-player-mask'></div>";return this.options_.embed&&(r+="<div class='cv-embed-logo'>".concat(Q,"</div>")),lf(yf(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass(),innerHTML:r}),n)}}])&&uf(e.prototype,n),r&&uf(e,r),i}(T.a.getComponent("Component"));function df(t){return function(t){if(Array.isArray(t))return vf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return vf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vf(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vf(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function bf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var mf,gf=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},wf=T.a.getComponent("Player"),Cf=450,Of=function(){function t(e,n){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.streamLogged=!1,this.options=T.a.mergeOptions({},t.options_,n),null===this.options.playerApi)throw new Error("PlayerApi required");this.initialize(),this.createEl(e),this.buildVideoJs(),this.bindEventListeners(),this.setupSeekBar(),this.fetchConfig(),this.logStream=this.logStream.bind(this),this.player.ready((function(){r._configurePlugins(),r.options.setup&&r.options.setup(r.options,r.player),r.fetch().catch((function(t){r.player.error(t.message),r.options.onError&&r.options.onError(t)}))}))}var e,n,r;return e=t,(n=[{key:"initialize",value:function(){}},{key:"_configurePlugins",value:function(){this.player.progressReporterPlugin({onFlush:this.onFlushProgress=this.onFlushProgress.bind(this)}),this.player.persistVolumePlugin(),this.player.fullscreenOnRotatePlugin(),this.player.touchControls(),this.options.getExternalLink&&this.player.openExternallyPlugin({getExternalLink:this.options.getExternalLink}),this.configurePlugins()}},{key:"configurePlugins",value:function(){}},{key:"onFlushProgress",value:function(t){var e;null===(e=this.analyticsService)||void 0===e||e.logVideoProgress(t)}},{key:"buildVideoJs",value:function(){return this.player=Object(T.a)(this.el,this.getPlayerOptions())}},{key:"getPlayerOptions",value:function(){var t=wf.prototype.options_.children;return t=t.filter((function(t){return"bigPlayButton"!==t&&"posterImage"!==t})),{controls:this.options.controls,fluid:!this.options.embed,fill:!!this.options.embed,inactivityTimeout:500,controlBar:{children:["timeWrapper","progressControl"]},children:[].concat(df(t),["collapserator","playPauseFeedback"]),userActions:{hotkeys:Dl},playbackRates:this.options.playbackRates,techOrder:["html5"],html5:{nativeTextTracks:!1},playsinline:!0}}},{key:"fetch",value:function(){var t,e,n;return gf(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o,i,a,c=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=this.options.fetch,void 0===this.options.fetch&&(o=function(t){var e="".concat(c.options.playerApi.origin,"/api/playback?viewKey=").concat(t);return $l.get(e)}),this.options.viewKey){r.next=4;break}throw new Error("Please specify a viewKey or a fetch function");case 4:return r.next=6,o(this.options.viewKey);case 6:if(i=r.sent){r.next=9;break}throw new Error("Error fetching playback object");case 9:i.chapters.list.length>0&&(a=this.player.addTextTrack("chapters"),i.chapters.list.forEach((function(t){a.addCue({startTime:t.timestamp,endTime:t.endTimestamp,text:t.name})})),a.trigger({type:"loadeddata",target:a})),this.player.localCache({localCacheAddresses:i.localCacheAddresses,enabled:null===(t=this.options.enableLocalCache)||void 0===t||t}),this.player.progressiveFiles({sources:i.files.progressive.map((function(t){return{id:t.profile,mimeType:t.mimeType,url:t.url}}))}),i.subtitles.list.length>0&&(i.subtitles.list.forEach((function(t){"text/vtt"===t.mimeType&&c.player.addRemoteTextTrack({kind:"subtitles",src:t.url,language:t.language,label:t.label},!0)})),this.player.persistSubtitleSettingsPlugin({showSubtitles:null===(e=i.settings)||void 0===e?void 0:e.showSubtitles,subtitleSize:null===(n=i.settings)||void 0===n?void 0:n.playbackSubtitleSizeDefault})),i.posterUrl&&this.player.poster(i.posterUrl),this.options.autoplay||this.setupSplash(i),this.additionalSetup(i),this.options.autoplay&&this.player.ready((function(){c.player.play().catch((function(){c.setupSplash(i)}))})),this.options.startTime&&this.player.currentTime(this.options.startTime);case 18:case"end":return r.stop()}}),r,this)})))}},{key:"fetchConfig",value:function(){var t=this;if(!mf&&!this.options.fetch){var e="".concat(this.options.playerApi.origin,"/api/config");$l.get(e).then((function(e){mf=e,t.trigger("config:loaded")}))}}},{key:"additionalSetup",value:function(t){var e,n,r,o=this;this.player.persistQualitySettingsPlugin({playbackProfile:null===(e=t.settings)||void 0===e?void 0:e.playbackProfile,playbackProfileLocalCache:null===(n=t.settings)||void 0===n?void 0:n.playbackProfileLocalCache}),this.player.whiteboardModePlugin();var i=this.options.enableLocalCache&&!!(null===(r=t.localCacheAddresses)||void 0===r?void 0:r.length);mf?this.setupAnalyticsService(t,i):this.one("config:loaded",(function(){return o.setupAnalyticsService(t,i)}))}},{key:"setupAnalyticsService",value:function(t,e){this.analyticsService=new Ns({collectionApiUrls:mf.collectionApi.urls,collectionApiClientId:mf.collectionApi.clientId,productVersion:S.a,regionName:"cv-ap-southeast-1",videoId:t.videoId,mediaId:t.mediaId,userId:t.viewerId,shareId:t.shareId,customerId:t.viewerCustomerId,mediaType:t.mediaType,playerType:this.getAnalyticsPlayerType(),isEmbedded:!!this.options.embed,isUsingLocalCache:e,additionalAnalyticsData:this.getAdditionalAnalyticsData(t)}),this.on("timeupdate",this.logStream)}},{key:"getAdditionalAnalyticsData",value:function(t){return{}}},{key:"logStream",value:function(){this.player.currentTime()<3||this.streamLogged||(this.analyticsService.logStream(),this.streamLogged=!0,this.off("timeupdate",this.logStream))}},{key:"getAnalyticsPlayerType",value:function(){return"player"}},{key:"createEl",value:function(t){var e;"string"==typeof t?(t=function(t){return 0===t.indexOf("#")?t.slice(1):t}(t),e=T.a.dom.$("#"+t)):e=t;var n="video-js";return this.getPlayerClassName()&&(n+=" ".concat(this.getPlayerClassName())),this.el=T.a.dom.createEl("video",{},{class:n}),e.appendChild(this.el),this.el}},{key:"getPlayerClassName",value:function(){return""}},{key:"on",value:function(t,e){this.player.on(t,e)}},{key:"one",value:function(t,e){this.player.one(t,e)}},{key:"off",value:function(t,e){this.player.off(t,e)}},{key:"trigger",value:function(t,e){return this.player.trigger(t,e)}},{key:"dispose",value:function(){this.player.dispose()}},{key:"ready",value:function(t){this.player.ready(t)}},{key:"play",value:function(){this.player.play()}},{key:"currentTime",value:function(t){return this.player.currentTime(t)}},{key:"bindEventListeners",value:function(){var t=this,e=function(){return t.configureMenuDimensions()};if(this.player.ready(e),this.on("resize",e),this.on("fullscreenchange",e),this.one("play",e),this.on("resizemenus",e),this.player.one("dispose",(function(){t.off("resize",e),t.off("fullscreenchange",e),t.off("resizemenus",e)})),this.options.hotkeyElQuerySelector){var n=T.a.dom.$(this.options.hotkeyElQuerySelector);n&&(this.player.on(n,"keydown",this.player.handleKeyDown),this.player.one("dispose",(function(){t.player.off(n,"keydown",t.player.handleKeyDown)})))}}},{key:"setupSeekBar",value:function(){var t=this.getSeekBarName(),e=this.player.controlBar.getChild("progressControl");e.addChild(t,this.getSeekBarOptions()),e.setSeekBarName(t)}},{key:"setupSplash",value:function(t){var e=this.player.addChild("posterImage");this.player.addChild("bigPlayButton");var n=new hf(this.player,{embed:this.options.embed,posterUrl:t.posterUrl,title:t.title,ratingCode:t.ratingCode,seriesName:t.seriesName,seasonNumber:t.seasonNumber,episodeNumber:t.episodeNumber});e.addChild(n),e.show()}},{key:"getSeekBarOptions",value:function(){return{}}},{key:"getSeekBarName",value:function(){return"ChapterSeekBar"}},{key:"configureMenuDimensions",value:function(){var t=this;if(this.player.isFullscreen()){var e=this.player.whiteboardModePlugin().side;if("top"===e){var n=this.player.getChild("collapserator"),r=n.getChild("volumePanel"),o=n.children_.indexOf(r);n.removeChild(r),n.addChild("volumePanel",{inline:!1},o)}else{var i=this.player.getChild("collapserator"),a=i.getChild("volumePanel"),c=i.children_.indexOf(a);i.removeChild(a),i.addChild("volumePanel",{inline:!0},c)}if("left"===e||"right"===e||"top"===e){var u=this.player.currentWidth();return void this.player.el().querySelectorAll(".vjs-menu").forEach((function(t){t.style.paddingTop=null,t.style.marginBottom=null,t.style.width="calc(".concat(u,"px - 4em)")}))}}var l=this.player.currentWidth(),s=this.player.currentHeight()/l*100,f=this.player.el().querySelector(".cv-collapsorator"),p=this.player.el().querySelectorAll(".vjs-menu"),y=f&&f.offsetHeight;y?("CreateClipSeekBar"===this.getSeekBarName()&&(y+=22),p&&p.length&&p.forEach((function(e){e.style.paddingTop="calc(".concat(s,"% - ").concat(y,"px)"),e.style.marginBottom="".concat(y,"px"),e.style.width=null,e.querySelector(".vjs-menu-content")&&(l<=Cf?t.player.addClass("cv-player-small"):t.player.removeClass("cv-player-small"))}))):this.one("play",(function(){return t.configureMenuDimensions()}))}}])&&bf(e.prototype,n),r&&bf(e,r),t}();Of.options_={viewKey:null,controls:!0,playbackRates:[.25,.5,.75,1,1.25,1.5,1.75,2],playerApi:new URL("http://localhost:52000"),enableLocalCache:!0};var If=n(883),Tf=n.n(If),Sf=n(1288),_f=n.n(Sf),kf=n(919);function jf(t){var e,n=t.interactive.timepoints.find((function(e){var n=e.visibleAt/1e3;return Math.floor(t.time)===Math.floor(n)||Math.ceil(t.time)===Math.ceil(n)}));if(!(null===(e=null==n?void 0:n.interactions)||void 0===e?void 0:e.length))return i.a.createElement(i.a.Fragment,null);var r=n.interactions.length>3?n.interactions.slice(0,2):n.interactions,o=n.interactions.length-r.length;return i.a.createElement("div",{className:"d-flex justify-content-end ml-2"},r.map((function(t,e){return i.a.createElement(kf.a,{key:e,interaction:t,showQuestion:!1,iconClassName:"ml-1"})})),!!o&&i.a.createElement("div",{className:"interaction-type-icon d-flex justify-content-center align-items-center border border-dark text-body ml-1"},"+".concat(o)))}function Ef(t){return function(t){if(Array.isArray(t))return Pf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Pf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pf(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pf(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Rf={title:{text:null},xAxis:{visible:!1,minPadding:0,maxPadding:0},legend:{enabled:!1},credits:{enabled:!1},defs:{gradient:{tagName:"linearGradient",id:"area-gradient",x1:0,y1:1,x2:0,y2:0,children:[{tagName:"stop",offset:0},{tagName:"stop",offset:1}]}}};function xf(t,e){return{styledMode:!0,spacing:[15,0,0,0],width:t,height:e}}function Lf(t){return{formatter:function(){return'<div class="cv-engagement-tooltip bg-white rounded"><div class="d-flex justify-content-between">'+"<strong>".concat(pa(this.x),"</strong>")+"".concat(function(t,e){return _f.a.renderToStaticMarkup(i.a.createElement(jf,{time:e,interactive:t}))}(t,this.x))+'</div><div class="d-flex justify-content-between rounded bg-light cv-view-count-container">'+'<strong>Views</strong> <span class="cv-view-count">'.concat(this.y,"</span>")+"</div></div>"},positioner:function(t,e,n){var r=this.chart.plotWidth-t,o=n.plotX-t/2;return{x:Math.min(Math.max(o,0),r),y:this.chart.plotTop}},useHTML:!0,padding:0}}n(1291);function Af(t){return(Af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nf(t,e,n){return(Nf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ff(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Mf(t,e){return(Mf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Uf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ff(t);if(e){var o=Ff(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Df(this,n)}}function Df(t,e){return!e||"object"!==Af(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ff(t){return(Ff=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zf=T.a.getComponent("Component");Tf.a.AST.allowedTags.push("g"),Tf.a.AST.allowedAttributes.push("viewBox","transform");var Vf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mf(t,e)}(i,t);var e,n,r,o=Uf(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).initialize(),n.bindListeners(),n}return e=i,(n=[{key:"initialize",value:function(){var t=this;this.player().ready((function(){return t.buildChart()}))}},{key:"buildCSSClass",value:function(){return"cv-engagement-overlay"}},{key:"createEl",value:function(t,e,n){return Nf(Ff(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass(),innerHTML:'<div class="cv-engagement-chart"></div><div class="cv-engagement-timepoint-indicator"></div>'}),n)}},{key:"toggleChart",value:function(t){t?this.buildChart():this.destroyChart()}},{key:"bindListeners",value:function(){var t=this;this.handleClick=this.handleClick.bind(this),this.resizeChart=this.resizeChart.bind(this),this.player().on("playerresize",this.resizeChart),this.on(this.el(),"mouseup",this.handleClick),this.player().on("dispose",(function(){t.player().off("playerresize",t.resizeChart),t.off(t.el(),"mouseup",t.handleClick)}))}},{key:"handleClick",value:function(t){T.a.dom.isSingleLeftClick(t)&&(this.player().paused()?this.player().play():this.player().pause())}},{key:"buildChart",value:function(){var t=this;if(!this.chart){var e=this.getChartDimensions();if(e){var n=this.el().querySelector(".cv-engagement-chart");this.chart=Tf.a.chart(n,this.getHighchartOptions(e))}else this.player().one("play",(function(){return t.buildChart()}))}}},{key:"resizeChart",value:function(){var t=this.getChartDimensions();this.chart&&t&&this.chart.setSize(t.width,t.height)}},{key:"destroyChart",value:function(){var t;null===(t=this.chart)||void 0===t||t.destroy(),this.chart=null}},{key:"getChartDimensions",value:function(){var t=this.player().getChild("collapserator"),e=null==t?void 0:t.currentHeight(),n=this.el().clientWidth;return e&&n?{width:n,height:this.player().currentDimensions().height-e}:null}},{key:"getHighchartOptions",value:function(t){var e,n,r=t.width,o=t.height;return Object.assign(Object.assign({},Rf),{chart:xf(r,o),yAxis:(n=this.options_.heatMap,{max:1.05*Math.max.apply(Math,Ef(n)),min:0,minPadding:0,maxPadding:0,allowDecimals:!0,startOnTick:!1,endOnTick:!1,visible:!1}),tooltip:Lf(this.options_.interactive),plotOptions:(e=this.moveTimepointIndicator.bind(this),{area:{point:{events:{mouseOver:function(){e(this.x)},mouseOut:function(){e(null)}}}}}),series:[{type:"area",data:this.options_.heatMap}]})}},{key:"moveTimepointIndicator",value:function(t){this.options_.onTimepointHover&&this.options_.onTimepointHover(t);var e=this.el().querySelector(".cv-engagement-timepoint-indicator");null!==t?(T.a.dom.addClass(e,"cv-engagement-timepoint-indicator-visible"),e.style.left="".concat(t/this.options_.heatMap.length*100,"%")):T.a.dom.removeClass(e,"cv-engagement-timepoint-indicator-visible")}}])&&Bf(e.prototype,n),r&&Bf(e,r),i}(zf);function Hf(t){return(Hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qf(t,e,n){return(qf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Zf(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Gf(t,e){return(Gf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zf(t);if(e){var o=Zf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qf(this,n)}}function Qf(t,e){return!e||"object"!==Hf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zf(t){return(Zf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerComponent("EngagementOverlay",Vf);var $f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gf(t,e)}(i,t);var e,n,r,o=Kf(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).overlayVisible=e.overlayVisible,n.toggle(n.overlayVisible),n}return e=i,(n=[{key:"handleToggle",value:function(){this.toggle(!this.overlayVisible)}},{key:"toggle",value:function(t){t?this.toggleOn():this.toggleOff()}},{key:"toggleOn",value:function(){T.a.dom.addClass(this.toggleEl,"on"),this.overlayVisible=!0,this.player().engagementOverlayPlugin().toggleOverlay(this.overlayVisible),this.player().addClass("cv-reports-player-overlay-visible")}},{key:"toggleOff",value:function(){T.a.dom.removeClass(this.toggleEl,"on"),this.overlayVisible=!1,this.player().engagementOverlayPlugin().toggleOverlay(this.overlayVisible),this.player().removeClass("cv-reports-player-overlay-visible")}},{key:"handleClick",value:function(t){t.stopImmediatePropagation()}},{key:"createEl",value:function(t,e,n){this.handlerBound||(this.handleToggle=this.handleToggle.bind(this),this.handlerBound=!0),this.toggleEl&&this.toggleEl.removeEventListener("click",this.handleToggle),this.toggleEl=T.a.dom.createEl("div",{className:"custom-toggle toggle-option float-right",innerHTML:'<span class="handle"></span></div>'}),this.toggleEl.addEventListener("click",this.handleToggle);var r=qf(Zf(i.prototype),"createEl",this).call(this,t,{className:"vjs-menu-item cv-cog-menu-item",innerHTML:'\n <span class="vjs-menu-item-text">Heat Map</span>\n <span class="cv-toggle-container"></span>'},n);return r.children[1].appendChild(this.toggleEl),r}}])&&Wf(e.prototype,n),r&&Wf(e,r),i}(T.a.getComponent("MenuItem"));function Xf(t){return(Xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yf(t,e){return(Yf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=np(t);if(e){var o=np(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ep(this,n)}}function ep(t,e){return!e||"object"!==Xf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function np(t){return(np=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerComponent("EngagementOverlayMenuItem",$f);var rp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yf(t,e)}(i,t);var e,n,r,o=tp(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).options=e,t.ready((function(){n.initialize()})),n}return e=i,(n=[{key:"initialize",value:function(){var t;this.hasHeatMapData()&&(this.player.addChild("engagementOverlay",{heatMap:this.options.heatMap,interactive:this.options.interactive,onTimepointHover:this.options.onTimepointHover}),(null===(t=this.player.getChild("collapserator"))||void 0===t?void 0:t.getChild("cogButton")).addItem({index:0,ctor:$f,name:"EngagementOverlayMenuItem",options:{overlayVisible:!0}}))}},{key:"toggleOverlay",value:function(t){var e=this.player.getChild("engagementOverlay");null==e||e.toggleChart(t)}},{key:"hasHeatMapData",value:function(){var t;return(null===(t=this.options.heatMap)||void 0===t?void 0:t.reduce((function(t,e){return t+e}),0))>0}}])&&Jf(e.prototype,n),r&&Jf(e,r),i}(T.a.getPlugin("plugin"));function op(t){return(op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ip(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ap(t,e,n){return(ap="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=fp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function cp(t,e){return(cp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function up(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fp(t);if(e){var o=fp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lp(this,n)}}function lp(t,e){return!e||"object"!==op(e)&&"function"!=typeof e?sp(t):e}function sp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fp(t){return(fp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}T.a.registerPlugin("engagementOverlayPlugin",rp);var pp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cp(t,e)}(i,t);var e,n,r,o=up(i);function i(t,e){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n=o.call(this,t),void 0===e.startTime)throw Error("Invalid clip start");if(void 0===e.endTime)throw Error("Invalid clip end");if(e.startTime>e.endTime)throw Error("Clip start cannot be greater than clip end");return n._clipStart=e.startTime,n._clipEnd=e.endTime,n.playerEndedFn=n.player.ended.bind(t),n.playerDurationFn=n.player.duration.bind(t),n.playerCurrentTimeFn=n.player.currentTime.bind(t),n.playerbufferedFn=n.player.buffered.bind(t),n.player.ended=n.ended.bind(sp(n)),n.player.duration=n.duration.bind(sp(n)),n.player.currentTime=n.currentTime.bind(sp(n)),n.player.buffered=n.buffered.bind(sp(n)),n.initialize(),n.player.ready((function(){n.player.trigger("durationchange")})),n}return e=i,(n=[{key:"clipStart",get:function(){var t=this.playerDurationFn();return this._clipStart>t?t:this._clipStart}},{key:"clipEnd",get:function(){var t=this.playerDurationFn();return this._clipEnd>t?t:this._clipEnd}},{key:"dispose",value:function(){this.player.off("timeupdate",this.onTimeUpdate),this.player.off("play",this.onPlay),this.player.ended=this.playerEndedFn,this.player.duration=this.playerDurationFn,this.player.currentTime=this.playerCurrentTimeFn,this.player.buffered=this.playerbufferedFn,this.player.trigger("durationchange"),ap(fp(i.prototype),"dispose",this).call(this)}},{key:"initialize",value:function(){this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onPlay=this.onPlay.bind(this),this.player.on("timeupdate",this.onTimeUpdate),this.player.on("play",this.onPlay)}},{key:"onPlay",value:function(){this._isEnded&&this.player.currentTime(0)}},{key:"onTimeUpdate",value:function(){var t=this.getCurrentTime(!1);t>this.clipEnd?this._isEnded||(this.player.pause(),this.player.trigger("ended"),this._isEnded=!0):(this._isEnded=!1,t<this.clipStart&&this.playerCurrentTimeFn(this.clipStart,!0))}},{key:"ended",value:function(){return this.getCurrentTime(!1)>this.clipEnd}},{key:"duration",value:function(t){return void 0!==t&&this.playerDurationFn(t),this.clipEnd-this.clipStart}},{key:"currentTime",value:function(t){if(void 0===t)return this.getCurrentTime(!0);for(var e=t+this.clipStart,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.playerCurrentTimeFn.apply(this,[e].concat(r))}},{key:"getCurrentTime",value:function(t){var e=this.playerCurrentTimeFn(),n=0;return e>=this.clipStart&&(n=e-this.clipStart),this.player.getCache().currentTime=n,t?n:e}},{key:"buffered",value:function(){for(var t=this.playerbufferedFn(),e=[],n=0;n<t.length;n++)e[n]=[Math.max(0,t.start(n)-this.clipStart),Math.min(Math.max(0,t.end(n)-this.clipStart),this.player.duration())];return T.a.createTimeRanges(e)}}])&&ip(e.prototype,n),r&&ip(e,r),i}(T.a.getPlugin("plugin"));T.a.registerPlugin("clipPlugin",pp);var yp=n(1082);n(1292);function hp(t){return(hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vp(t,e,n){return(vp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=wp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function bp(t,e){return(bp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function mp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=wp(t);if(e){var o=wp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gp(this,n)}}function gp(t,e){return!e||"object"!==hp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wp(t){return(wp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Cp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bp(t,e)}(i,t);var e,n,r,o=mp(i);function i(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).timepoint_=e.timepoint,n.time_=e.timepoint.visibleAt/1e3;var r=e.timepoint.interactions[0];r||n.hide();var a=yp.a.getTypeInfo(r.typeId).bgClassName;return n.$(".vjs-icon-placeholder").classList.add(a),n.controlText(r.name),n.update(),n}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-interactive-bar-item ".concat(vp(wp(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return vp(wp(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),Object.assign(Object.assign({},n),{tabIndex:0}))}},{key:"update",value:function(){var t=this.player_.duration(),e=this.time_/t;this.el().style.left=100*e+"%",e>100||e<0?this.hide():this.show()}},{key:"handleClick",value:function(t){t.stopPropagation(),this.player_.currentTime(this.time_)}}])&&dp(e.prototype,n),r&&dp(e,r),i}(T.a.getComponent("Button"));n(1293);function Op(t){return(Op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ip(t){return function(t){if(Array.isArray(t))return Tp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Tp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tp(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tp(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Sp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _p(t,e,n){return(_p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Rp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function kp(t,e){return(kp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function jp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Rp(t);if(e){var o=Rp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ep(this,n)}}function Ep(t,e){return!e||"object"!==Op(e)&&"function"!=typeof e?Pp(t):e}function Pp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rp(t){return(Rp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kp(t,e)}(i,t);var e,n,r,o=jp(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).track_=e.track,n.interactive_=e.interactive,n.onDurationChange=n.onDurationChange.bind(Pp(n)),n.createInteractionItems=n.createInteractionItems.bind(Pp(n)),n.createInteractionItems(),n.track_.on("cv:cuechange",n.createInteractionItems),n.player_.on("durationchange",n.onDurationChange),n.player_.on("dispose",(function(){n.track_.off("cv:cuechange"),n.player_.off("durationchange",n.onDurationChange)})),n}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-interactive-bar-items ".concat(_p(Rp(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return _p(Rp(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"update",value:function(){this.children_.forEach((function(t){t.update()}))}},{key:"createInteractionItems",value:function(){var t,e=this;if(this.track_){Ip(this.children_).forEach((function(t){e.removeChild(t)}));for(var n=0;n<this.track_.cues.length;n++){var r=this.track_.cues[n],o=this.getTimepointById(r.text);o&&(null===(t=o.interactions)||void 0===t?void 0:t.length)&&this.addChild(new Cp(this.player_,{timepoint:o}))}}}},{key:"onDurationChange",value:function(){this.update()}},{key:"getTimepointById",value:function(t){var e;return null===(e=this.interactive_.timepoints)||void 0===e?void 0:e.find((function(e){return e.id.toString()===t.toString()}))}}])&&Sp(e.prototype,n),r&&Sp(e,r),i}(T.a.getComponent("Component"));n(1294);function Lp(t){return(Lp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ap(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bp(t,e){return(Bp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Np(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Dp(t);if(e){var o=Dp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mp(this,n)}}function Mp(t,e){return!e||"object"!==Lp(e)&&"function"!=typeof e?Up(t):e}function Up(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dp(t){return(Dp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Fp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bp(t,e)}(i,t);var e,n,r,o=Np(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t)).options=e,n.player.one("loadedmetadata",(function(){return n.player.ready(n.initialize.bind(Up(n)))})),n}return e=i,(n=[{key:"initialize",value:function(){Yr(this.player,"metadata","interactive",this.onTrackLoaded.bind(this)),this.player.addClass("cv-interactive-plugin")}},{key:"onTrackLoaded",value:function(t){this.addChildren(t)}},{key:"addChildren",value:function(t){this.player.controlBar.getChild("progressControl").getChild("SeekBar").addChild(new xp(this.player,{interactive:this.options.interactive,track:t}))}}])&&Ap(e.prototype,n),r&&Ap(e,r),i}(T.a.getPlugin("plugin"));T.a.registerPlugin("interactiveSeekBarPlugin",Fp);var zp=function(t,e){var n,r=t.addTextTrack("metadata","interactive"),o=e.additionalData.interactive,i=null===(n=e.additionalData.clipData)||void 0===n?void 0:n.startTime;return o.timepoints.forEach((function(t){var e,n=t.visibleAt/1e3,o=t.visibleFor?n+t.visibleFor/1e3:n+1;i&&(n+=i,o+=i),(null===(e=t.interactions)||void 0===e?void 0:e.length)&&r.addCue({startTime:n-.001,endTime:o,text:t.id})})),r};n(1295);function Vp(t){return(Vp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wp(t,e,n){return(Wp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Qp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function qp(t,e){return(qp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qp(t);if(e){var o=Qp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kp(this,n)}}function Kp(t,e){return!e||"object"!==Vp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qp(t){return(Qp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zp=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},$p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qp(t,e)}(i,t);var e,n,r,o=Gp(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"getPlayerClassName",value:function(){return"cv-reports-player"}},{key:"getAnalyticsPlayerType",value:function(){return"reports-player"}},{key:"additionalSetup",value:function(t){var e=this,n=Object.create(null,{additionalSetup:{get:function(){return Wp(Qp(i.prototype),"additionalSetup",e)}}});return Zp(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.additionalSetup.call(this,t),this.setupEngagementOverlayPlugin(t),this.setupUpClipPlugin(t),this.setupInteractiveSeekBarPlugin(t);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"setupEngagementOverlayPlugin",value:function(t){var e;this.player.engagementOverlayPlugin({heatMap:this.options.heatMap,interactive:null===(e=t.additionalData)||void 0===e?void 0:e.interactive,onTimepointHover:this.options.onTimepointHover})}},{key:"setupUpClipPlugin",value:function(t){var e,n=null===(e=t.additionalData)||void 0===e?void 0:e.clipData;n&&this.player.clipPlugin({startTime:n.startTime,endTime:n.endTime})}},{key:"setupInteractiveSeekBarPlugin",value:function(t){var e,n,r=null===(e=t.additionalData)||void 0===e?void 0:e.interactive;(null===(n=t.additionalData)||void 0===n?void 0:n.interactive)&&(this.track=zp(this.player,t),this.player.interactiveSeekBarPlugin({interactive:r}))}},{key:"getSeekBarOptions",value:function(){return{ignoreChapters:!0}}}])&&Hp(e.prototype,n),r&&Hp(e,r),i}(Of);function Xp(t){var e=i.a.useRef(),n=i.a.useRef();return i.a.useEffect((function(){n.current=new $p(e.current,t)}),[]),i.a.createElement("div",{ref:e})}function Jp(t){return new Array(Math.ceil(t.videoDuration)).fill(null).map((function(e,n){return t.heatMap[n]||0}))}var Yp=n(1296),ty=n.n(Yp),ey=n(870),ny=n(1297),ry=n.n(ny);function oy(t){return function(t){if(Array.isArray(t))return iy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return iy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iy(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ay="interactives.engagementHeatMap",cy=ty.a.scale(["#daf07d","#08bd1a"]),uy=[0,.01,.25,.5,.75,1];function ly(t,e){return t?cy(t/e).hex():"#f1f1f1"}function sy(t,e){for(var n=[],r=0;r<t.length;r++){var o=r>0&&t[r-1],i=t[r],a=r<t.length-1&&t[r+1];i===o&&i===a||n.push("".concat(ly(i,e)," ").concat(100/t.length*r,"%"))}return"linear-gradient(to right, ".concat(n.join(","),")")}function fy(){var t=Math.max.apply(Math,uy),e=100/uy.length;return i.a.createElement("div",{className:"d-flex justify-content-between w-100"},i.a.createElement(ey.b,{namespace:ay,phrase:"less"}),i.a.createElement("div",{className:"d-flex mx-1 flex-grow-1 ".concat(ry.a.legend)},uy.map((function(n,r){return i.a.createElement("div",{key:r,style:{width:"".concat(e,"%"),backgroundColor:ly(n,t)}})}))),i.a.createElement(ey.b,{namespace:ay,phrase:"more"}))}function py(t){var e,n,r=Jp(t.engagement),o=null!==(e=t.max)&&void 0!==e?e:Math.max.apply(Math,oy(r));return i.a.createElement("div",{className:"border rounded ".concat(ry.a.heatMap," ").concat(null!==(n=t.className)&&void 0!==n?n:""),style:{background:sy(r,o)}})}var yy=n(1140),hy=n.n(yy),dy=c.a.encloseNamespace("interactives.videoEngagementOverlay");function vy(t){var e=i.a.useRef(),n=Jp(t.engagement);return i.a.createElement("div",{className:"bg-white rounded p-2 h-100"},i.a.createElement("div",{className:"mb-2 position-relative"},i.a.createElement("div",{className:hy.a.playerPlaceholder}),i.a.createElement("div",{className:hy.a.playerContainer},i.a.createElement(Xp,{viewKey:t.viewKey,playerApi:new URL(t.playerApiUrl),hotkeyElQuerySelector:"body",heatMap:n,onTimepointHover:function(t){var r=e.current;r&&(null!==t?(r.classList.add(hy.a.heatMapTimepointIndicatorVisible),r.style.left="".concat(t/n.length*100,"%")):r.classList.remove(hy.a.heatMapTimepointIndicatorVisible))}}))),i.a.createElement("div",{className:hy.a.heatMapContainer},i.a.createElement("div",{className:"position-relative"},i.a.createElement(py,{engagement:t.engagement,className:hy.a.heatMap}),i.a.createElement("div",{ref:e,className:hy.a.heatMapTimepointIndicator}))),i.a.createElement("div",{className:"d-flex justify-content-between mt-2"},i.a.createElement("strong",null,dy("engagement")),i.a.createElement("div",{className:"w-33"},i.a.createElement(fy,null))))}var by=c.a.encloseNamespace("interactives.videoEngagementOverlay");function my(){return i.a.createElement("div",{className:"bg-white rounded d-flex flex-column justify-content-end p-2 ".concat(hy.a.partialLoadingContainer)},i.a.createElement("div",{className:hy.a.heatMapContainer},i.a.createElement("div",{className:"position-relative"},i.a.createElement(py,{engagement:{heatMap:[],videoDuration:0},className:hy.a.heatMap}))),i.a.createElement("div",{className:"d-flex justify-content-between mt-2"},i.a.createElement("strong",null,by("engagement")),i.a.createElement("div",{className:"w-33"},i.a.createElement(fy,null))))}var gy=n(917),wy=n(33),Cy=n(34),Oy=n(868),Iy=n(880),Ty=n(1299),Sy=n.n(Ty);function _y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||jy(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ky(t){return function(t){if(Array.isArray(t))return Ey(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||jy(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jy(t,e){if(t){if("string"==typeof t)return Ey(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ey(t,e):void 0}}function Ey(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Py=c.a.encloseNamespace("interactives.engagementTable");function Ry(t){var e;return i.a.createElement("div",{className:"p-2 ".concat(null!==(e=t.className)&&void 0!==e?e:"")},t.children)}function xy(t){return i.a.createElement(Ry,{className:"d-inline-block ".concat(t.column.isSorted?"font-weight-bold":"")},Py(t.phraseKey))}function Ly(t){var e=_y(Object(wy.a)(Cy.a.ANONYMISE_USERS),1)[0];return i.a.useMemo((function(){var n=function(t){var e=0;return t.forEach((function(t){var n=Math.max.apply(Math,ky(t.heatMap));n>e&&(e=n)})),e}(t);return[{Header:function(t){var e=t.column;return i.a.createElement(xy,{column:e,phraseKey:"name"})},width:8,accessor:"user",sortType:function(t,n){return Object(Oy.a)(t.values.user,e)>Object(Oy.a)(n.values.user,e)?1:-1},Cell:function(t){var n=t.value;return i.a.createElement(Ry,{className:"text-truncate"},Object(Oy.a)(n,e))}},{Header:function(t){var e=t.column;return i.a.createElement(xy,{column:e,phraseKey:"views"})},accessor:"viewCount",width:4,sortType:"basic",sortDescFirst:!0,Cell:function(t){var e=t.value;return i.a.createElement(Ry,null,e)}},{Header:function(t){var e=t.column;return i.a.createElement(xy,{column:e,phraseKey:"engagement"})},accessor:"engagementRate",width:8,sortType:"basic",sortDescFirst:!0,Cell:function(t){var e=t.value;return i.a.createElement(Ry,{className:"w-33"},i.a.createElement(Iy.a,{percentage:e,layout:Iy.b.LabelBefore}))}},{Header:function(t){var e=t.column;return i.a.createElement(xy,{column:e,phraseKey:"heatMap"})},accessor:"heatMap",width:15,disableSortBy:!0,Cell:function(t){var e=t.row.original;return i.a.createElement(Ry,{className:"d-flex align-items-center h-100"},i.a.createElement(py,{engagement:e,max:n,className:"".concat(Sy.a.heatMap," flex-grow-1")}))}}]}),[e])}var Ay={table:"bg-white rounded",header:"border-bottom"};function By(t){var e,n,r=Ly(t.engagement),o=(e=t.engagement,n=t.users,i.a.useMemo((function(){return e.map((function(t){return Object.assign(Object.assign({},t),{user:n.find((function(e){return e.id===t.userId}))})}))}),[]));return i.a.createElement(gy.a,{columns:r,data:o,theme:Ay,enableSort:!0})}var Ny=n(1100),My=n(1081);function Uy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Dy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dy(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Fy=n(1300),zy=n.n(Fy);n.d(e,"InteractiveEngagementView",(function(){return Hy}));var Vy=c.a.encloseNamespace("reportsInteractives.interactiveEngagement");function Hy(t){var e,n,c,l,T,S,_=Object(b.a)(),k=a.a.useBasicFetch(p.a.interactiveMetadata(t.interactiveMetadataId)),j=a.a.useBasicFetch(!!k.data&&p.a.interactive(k.data.interactiveId)),E=a.a.useBasicFetch(v.a.aggregateEngagement(t.interactiveMetadataId,_)),P=a.a.useBasicFetch(v.a.individualEngagement(t.interactiveMetadataId,_)),R=a.a.useBasicFetch((null===(e=P.data)||void 0===e?void 0:e.data.length)&&h.a.getById(P.data.data.map((function(t){return t.userId})))),x=a.a.useBasicFetch(s(t.interactiveMetadataId,r.MasterObject)),L=a.a.useBasicFetch(f.a.config());Object(u.a)(k.data?Vy("pageTitle",{interactive:k.data.name}):""),Object(y.a)(null===(n=k.data)||void 0===n?void 0:n.name),Object(C.a)(Object(My.a)()),c=t.interactiveMetadataId,l=Uy(Object(wy.a)(Cy.a.DATE_RANGE_QUERY_PARAMS),1)[0],T=a.a.useBasicFetch(v.a.individualEngagement(c,l)),S=Uy(Object(wy.a)(Cy.a.AUDIENCE_FILTER_SUGGESTIONS),2)[1],Object(o.useEffect)((function(){var t;T.data&&S("users",null===(t=T.data)||void 0===t?void 0:t.data.map((function(t){return t.userId})))}),[T.isFetching]),Object(w.a)(P),Object(d.a)(k);var A=!!(j.data&&k.data&&E.data&&x.data&&L.data);return i.a.createElement("div",null,i.a.createElement(I.a,{interactiveMetadataId:t.interactiveMetadataId}),i.a.createElement("div",{className:"d-flex pb-3"},i.a.createElement("div",{className:"pr-2 ".concat(zy.a.viewCountContainer)},i.a.createElement(g.a,{objectId:t.interactiveMetadataId,className:"h-100"})),i.a.createElement("div",{className:"px-2 ".concat(zy.a.engagementPercentageContainer)},i.a.createElement(Ny.a,{objectId:t.interactiveMetadataId,className:"h-100",layout:"vertical"})),i.a.createElement("div",{className:"pl-2 ".concat(zy.a.engagementGraphContainer)},A?i.a.createElement(vy,{key:Object(m.a)(_),engagement:E.data,viewKey:x.data.viewKey,imageCdnUrl:L.data.imageCdnUrl,playerApiUrl:L.data.playerApiUrl}):i.a.createElement(my,null))),i.a.createElement("div",{className:"pb-3"},P.data&&R.data?i.a.createElement(By,{key:Object(m.a)(_),engagement:P.data.data,users:R.data}):i.a.createElement(O.a,{className:zy.a.partialTable})))}},867:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),o=n(28),i=n(254);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=r.useContext(i.a),c=n.setPageTitle;r.useEffect((function(){"boolean"!=typeof t&&o.a.isFunction(c)&&(t||(t=""),c(t))}),[t].concat(a(e)))}},868:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l}));var r=n(929),o=n(7),i=n(168),a=n(875),c=o.a.encloseNamespace("reportsShared.utils");function u(t,e){return e?Object(r.c)(function(t){var e=+"".concat(t.id).concat(Math.floor((new Date).getMinutes()/5));return{dictionaries:[r.b,r.a],separator:" ",length:2,style:"capital",seed:e}}(t)):i.a.getFullName(t)}function l(t){switch(t.toLowerCase()){case a.a.Learner:return c("student");case a.a.Staff:return c("staff");default:return t}}},869:function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(885),a=n.n(i);function c(t){var e;return o.a.createElement("img",{alt:"",role:"presentation",src:t.src,className:"".concat(a.a.image," ").concat(null!==(e=t.className)&&void 0!==e?e:"")})}var u=n(3),l=n(28),s=n(211),f=n(42);function p(t){var e=t.className||"btn btn-dark";if(!t.icon){if(t.appLink&&!l.a.isFunction(t.onClick))return o.a.createElement(f.a,{appLink:t.appLink,className:e},t.text);return o.a.createElement("button",{onClick:function(){l.a.isFunction(t.onClick)&&t.onClick(),t.appLink&&u.a.AppLinkHelper.trigger(t.appLink)},className:e},t.text)}return o.a.createElement(s.a,{className:e,onClick:t.onClick,appLink:t.appLink,svgName:t.icon},t.text)}function y(t){var e;return o.a.createElement("div",{className:"text-center d-flex flex-column align-items-center ".concat(null!==(e=t.className)&&void 0!==e?e:"")},t.children)}n.d(e,"a",(function(){return y})),y.defaultProps={className:"pt-5"},y.Image=function(t){return o.a.createElement(c,Object.assign({},t))},y.Cta=function(t){return o.a.createElement(p,Object.assign({},t))},y.Heading=function(t){return o.a.createElement("h2",{className:t.className||"h6"},t.children)},y.Info=function(t){return o.a.createElement("p",{className:t.className||"mb-3 w-50"},t.children)}},870:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c}));var r=n(0),o=n(7),i=n(29),a=r.createContext(""),c=r.memo((function(t){var e=t.phrase,n=t.namespace,i=t.options,c=r.useContext(a),u=n||c,l=o.a.getPhrase(u,e,i);return r.createElement("span",{dangerouslySetInnerHTML:{__html:l}})}),(function(t,e){return t.namespace===e.namespace&&t.phrase===e.phrase&&i.a.isEqual(t.options,e.options)}))},871:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),o=n(33),i=n(34);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){var e=a(Object(o.a)(i.a.HEADER_TITLE),2)[1];Object(r.useEffect)((function(){return e(t),function(){e(null)}}),[t])}},872:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(89),o=n(890),i={views:function(t,e,n,i,a){var c="video:views";return e&&(c+=":".concat(e)),{url:r.a.urlBuilder("{gateway}/v1/analytics/views",Object.assign({objectId:e},Object(o.a)(t))),key:Object(o.b)(c,t),normalize:!1,success:n,error:i,always:a}},individualEngagement:function(t,e,n,i,a){return{url:r.a.urlBuilder("{gateway}/v1/analytics/heat-map",Object.assign({objectId:t},Object(o.a)(e))),key:Object(o.b)("engagement:".concat(t),e),formatData:function(t){var e;return Object.assign(Object.assign({},t),{data:null===(e=t.data)||void 0===e?void 0:e.map((function(t){var e;return Object.assign(Object.assign({},t),{heatMap:null!==(e=t.heatMap)&&void 0!==e?e:[]})}))})},normalize:!1,success:n,error:i,always:a}},aggregateEngagement:function(t,e,n,i,a){return{url:r.a.urlBuilder("{gateway}/v1/analytics/heat-map/aggregations",Object.assign({objectId:t},Object(o.a)(e))),key:Object(o.b)("aggregate:engagement:".concat(t),e),formatData:function(t){var e;return Object.assign(Object.assign({},t),{heatMap:null!==(e=t.heatMap)&&void 0!==e?e:[]})},normalize:!1,success:n,error:i,always:a}}}},873:function(t,e,n){"use strict";function r(t){var e=[];return Object.keys(t).forEach((function(n){var r=t[n];r&&e.push("".concat(n,":").concat(Array.isArray(r)?r.join(","):r))})),e.join(":")}n.d(e,"a",(function(){return r}))},874:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),o=n(33),i=n(34);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){var e,n=a(Object(o.a)(i.a.AUDIENCE_FILTER_SELECTED_COUNT),2)[1];Object(r.useEffect)((function(){t.data?n(t.data.count):n(null)}),[null===(e=t.data)||void 0===e?void 0:e.count])}},875:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Unknown="unknown",t.Staff="staff",t.Learner="learner"}(r||(r={}))},876:function(t,e,n){t.exports={totalCount:"_3a-8G",chartContainer:"_1QY5r",partialHeading:"l-ees",partialSelector:"_1Jzj5",partialCount:"_2mo-l"}},877:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(33),o=n(34);function i(){Object(r.a)(o.a.LEFT_NAV_STATE)}},878:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=["#FF9300","#38A2E8","#7A76E8","#B679C7","#F7847B","#D9584F","#FFCD52","#5DC786","#40BCC3","#40C2BB"];function o(t){return t.map((function(t,e){return Object.assign(Object.assign({},t),{color:r[e%r.length]})}))}},880:function(t,e,n){"use strict";var r,o,i=n(0),a=n.n(i),c=n(922),u=n(1074),l=n.n(u);function s(t){var e=t===r.Large?5.8:2,n=t===r.Large?.36:.2;return"".concat(e/2-2*n,"rem")}function f(t){return t>=c.a.HIGH?"text-success":t>=c.a.MODERATE?"text-warning":"text-danger"}function p(t,e){var n="d-inline-block ".concat(l.a.circleContainer);return t===r.Large&&(n+=" ".concat(l.a.lgCircleContainer)),y(e)&&(n+=" ".concat(l.a.pendingCircle)),n}function y(t){return"number"!=typeof t}function h(t){var e,n=a.a.useCallback((function(e){if(e){var n=e.r.baseVal.value,r=2*Math.PI*n,o=r-t.percentage*r;e.style.strokeDasharray="".concat(r," ").concat(r),e.style.strokeDashoffset=o.toString()}}),[]);return a.a.createElement("svg",null,a.a.createElement("circle",{r:s(t.size),className:l.a.backgroundCircle}),!y(t.percentage)&&a.a.createElement("circle",{ref:n,r:s(t.size),className:(e=t.percentage,e>=c.a.HIGH?l.a.circleSuccess:e>=c.a.MODERATE?l.a.circleWarning:l.a.circleDanger)}))}function d(t){var e,n,i=t.layout===o.LabelInside?r.Large:r.Small,c=t.customLabel||(y(n=t.percentage)?"--%":"".concat(Math.round(100*n),"%"));return t.layout===o.LabelOnly?a.a.createElement("span",{className:f(t.percentage)},c):a.a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(e=t.className)&&void 0!==e?e:"")},t.layout===o.LabelBefore&&a.a.createElement("span",{className:"mr-2"},c),a.a.createElement("div",{className:p(i,t.percentage)},a.a.createElement(h,{percentage:t.percentage,size:i}),t.layout===o.LabelInside&&a.a.createElement("span",{className:l.a.centredPercentageText},c)))}!function(t){t.Small="small",t.Large="large"}(r||(r={})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return d})),function(t){t.CircleOnly="circle_only",t.LabelOnly="label_only",t.LabelBefore="label_before",t.LabelInside="label_inside"}(o||(o={})),d.defaultProps={layout:o.CircleOnly}},881:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(39),o=n(47),i=n(873),a=n(882);function c(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t){var e=[];return t.classrooms&&e.push.apply(e,c(t.classrooms)),t.classroomGroups&&e.push.apply(e,c(t.classroomGroups)),{dateRange:{start:Object(a.a)(o.a.startOf(t.from,"day")),end:Object(a.a)(o.a.endOf(t.to,"day"))},userIds:t.users,classroomsAndGroups:e}}var s={interactiveMetadata:function(t,e,n,r){return{url:"{gateway}/v1/objects/".concat(t,"?query=video[thumbnail],clip[video[thumbnail]],thumbnail"),key:"interactive:metadata:".concat(t),success:e,error:n,always:r}},interactive:function(t,e,n,r){return{url:"/api/domain/v1/interactives/".concat(t),key:"interactive:".concat(t),success:e,error:n,always:r}},interactiveResultSet:function(t,e,n,o,a,c){var u="interactive:result:set:".concat(t,":").concat(e),s=Object(i.a)(n);return s&&(u+=":".concat(s)),{url:"/api/domain/v2/analytics/interactives/".concat(t,"/metadata/").concat(e),key:u,data:l(n),type:r.a.POST,normalize:!1,success:o,error:a,always:c}},userInteractiveResultSet:function(t,e,n,r,o,i,a){var c=Object.assign(Object.assign({},r),{users:[n]});return s.interactiveResultSet(t,e,c,o,i,a)},mark:function(t,e,n,o,i,a,c){return{url:"/api/domain/v1/analytics/answers/".concat(n),key:"mark:answer:".concat(n,":").concat(o.resultId),type:r.a.PUT,data:o,normalize:!1,invalidationKeys:"interactive:result:set:".concat(t,":").concat(e),success:i,error:a,always:c}}}},882:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(47);function o(t){var e=r.a.convertDateToUTC(t);return r.a.format(e,"YYYY-MM-DDTHH:mm:ss")}},885:function(t,e,n){t.exports={image:"_3T3Ux"}},886:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),o=n.n(r);function i(t){return o.a.createElement("div",Object.assign({},t,{role:"button",tabIndex:0,className:"".concat(t.className?t.className:""," cursor-pointer"),onKeyDown:t.onKeyDown?t.onKeyDown:function(e){return"Enter"===e.key&&t.onClick(e)},onClick:t.onClick,style:t.style?t.style:{}}),t.children)}},890:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return l}));var r=n(47),o=n(882),i=n(873);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object(i.a)(e);return n?t+":".concat(n):t}function l(t){var e,n,i=Object(o.a)(r.a.startOf(t.from,"day")),c=Object(o.a)(r.a.endOf(t.to,"day"));return{userId:t.users,groupId:[].concat(a(null!==(e=t.classrooms)&&void 0!==e?e:[]),a(null!==(n=t.classroomGroups)&&void 0!==n?n:[])),start:i,end:c}}},892:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(876),a=n.n(i);function c(){return o.a.createElement("div",{className:"d-flex align-items-start justify-content-between"},o.a.createElement("div",null,o.a.createElement("div",{className:"partial-loading-background mb-2 ".concat(a.a.partialHeading)}),o.a.createElement("div",{className:"partial-loading-background ".concat(a.a.partialCount)})),o.a.createElement("div",{className:"partial-loading-background rounded ".concat(a.a.partialSelector)}))}},895:function(t,e,n){"use strict";var r=n(932);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(961);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(1038);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(1040);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(1053);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}));var u=n(1056);n.o(u,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return u.InteractionTypeId}));n(1080);var l=n(1064);n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}));var s=n(1065);n.o(s,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return s.InteractionTypeId}));var f=n(1066);n.o(f,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return f.InteractionTypeId}));var p=n(900);n.o(p,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return p.InteractionTypeId}));var y=n(1067);n.o(y,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return y.InteractionTypeId}));var h=n(1068);n.o(h,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(p,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return p.InteractionTypeId}));var d=n(1069);n.o(d,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return d.InteractionTypeId}));var v=n(1070);n.o(v,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return v.InteractionTypeId}));var b=n(1071);n.o(b,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return b.InteractionTypeId}));var m=n(1072);n.o(m,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return m.InteractionTypeId}));var g=n(1073);n.o(g,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return g.InteractionTypeId}))},896:function(t,e){},897:function(t,e){},898:function(t,e){},899:function(t,e){},900:function(t,e){},902:function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(883),a=n.n(i),c=n(891),u=n.n(c),l=n(11),s=n(7),f=n(877),p=n(44),y=n(875),h=n(168),d=n(868),v=n(878),b={title:{text:null},credits:{enabled:!1},chart:{backgroundColor:"transparent",spacing:[0,0,0,0]},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0}}},m=s.a.encloseNamespace("shared.userActivityPieChart");function g(t,e){return Object.assign(Object.assign({},b),{series:[{type:"pie",name:e,data:t}]})}var w=n(876),C=n.n(w);function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return j}));var T=s.a.encloseNamespace("shared.userActivityPieChart"),S=["yearGroup","userType"],_={yearGroup:"yearGroups",userType:"userType"};function k(t){return o.a.createElement(l.Dropdown,{alignRight:!0},o.a.createElement(l.Dropdown.Toggle,{id:"group-by-dropdown",variant:"outline-dark",className:"no-caret"},T("yearGroup"===t.selectedOption?"yearGroups":"userType")),o.a.createElement(l.Dropdown.Menu,null,S.map((function(e,n){return t.selectedOption!==e&&o.a.createElement(l.Dropdown.Item,{key:n,onSelect:function(){return t.onSelect(e)}},T(_[e]))}))))}function j(t){var e=O(o.a.useState("yearGroup"),2),n=e[0],r=e[1];Object(f.a)();var i,c,l,s,b="yearGroup"===n?(i=t.events,c=t.users,l=p.a.toObject(c,"id"),s={},i.forEach((function(t){var e,n,r,o,i=l[t.userId];if(h.a.getUserTypeString(i)===y.a.Learner){var a=null!==(r=null===(n=null===(e=null==i?void 0:i._yearGroup)||void 0===e?void 0:e.value)||void 0===n?void 0:n.name)&&void 0!==r?r:m("unknown");a&&(s[a]=null!==(o=s[a])&&void 0!==o?o:0,s[a]++)}})),Object(v.a)(p.a.sortBy(Object.keys(s).map((function(t){return{name:t,y:s[t],type:"pie"}})),"name"))):function(t,e){var n=p.a.toObject(e,"id"),r={};return t.forEach((function(t){var e,o,i=n[t.userId],a=null!==(e=h.a.getUserTypeString(i))&&void 0!==e?e:m("unknown");r[a]=null!==(o=r[a])&&void 0!==o?o:0,r[a]++})),Object(v.a)(p.a.sortBy(Object.keys(r).map((function(t){return{name:Object(d.b)(t),y:r[t],type:"pie"}})),"name"))}(t.events,t.users);return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"d-flex align-items-start justify-content-between w-100"},o.a.createElement("div",null,o.a.createElement("h6",{className:"m-0"},"yearGroup"===n?t.yearGroupTitle:t.userTypeTitle),o.a.createElement("strong",{className:C.a.totalCount},function(t){return t.reduce((function(t,e){return t+e.y}),0)}(b))),o.a.createElement(k,{selectedOption:n,onSelect:r})),b.length?o.a.createElement(u.a,{highcharts:a.a,options:g(b,t.seriesName),containerProps:{className:"".concat(C.a.chartContainer," position-absolute w-100 h-75 flex-grow-1")}}):t.emptyStateComponent)}},906:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(0),o=n.n(r),i=n(11),a=n(42),c=n(95),u=n(907),l=n.n(u);function s(t){var e,n,r="nav-link pl-0 pt-0 pr-2 text-dark";return t.appLink.action===(null===(n=null===(e=c.a.getCurrentRoute())||void 0===e?void 0:e.appLink)||void 0===n?void 0:n.action)?"".concat(r," active font-weight-bold ").concat(l.a.active):r}function f(t){return o.a.createElement(i.Navbar,{className:"p-0 pb-2"},o.a.createElement(i.Nav,null,t.items.map((function(t,e){return o.a.createElement(i.Nav.Item,{key:e},o.a.createElement(a.a,{appLink:t.appLink,className:s(t)},t.label))}))))}},907:function(t,e,n){t.exports={active:"_3Qdep"}},908:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(909),a=n.n(i);function c(t){var e,n;return o.a.createElement("div",{className:"bg-white rounded ".concat(a.a.table," ").concat(null!==(e=t.className)&&void 0!==e?e:"")},o.a.createElement("div",{className:"border-bottom ".concat(a.a.header," ").concat(null!==(n=t.headerClassName)&&void 0!==n?n:"")}),t.children)}},909:function(t,e,n){t.exports={table:"_3XPjZ",header:"_1hiMB"}},910:function(t,e,n){t.exports={left:"_789pr",right:"_1P8qt",button:"_24q_F",hoverText:"p-vNG",chevron:"_3M27X",gradientLeft:"_3fkiw",gradientRight:"_2RDDy",extendedClickableAreaRight:"_13dgy",extendedClickableAreaLeft:"_37LtK",videoTopPos:"_1XTRO",topPos:"_3_p_J"}},911:function(t,e,n){t.exports={sortIndicator:"_3ac-N",scrollContainer:"i_8jB"}},917:function(t,e,n){"use strict";var r,o=n(0),i=n.n(o),a=n(903),c=n(15),u=n(16),l=n(910),s=n.n(l);!function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(r||(r={}));var f=o.memo((function(t){var e,n,i=t.direction===r.Left,a=i?u.b.ChevronLeft:u.b.ChevronRight,l=(t.contents,e=i,n=s.a.topPos,n+=e?" "+s.a.left:" "+s.a.right);return t.hide?o.createElement(o.Fragment,null):o.createElement(o.Fragment,null,o.createElement("div",{role:"button",className:"".concat(l," ").concat(s.a.button," ").concat(t.className||""),onClick:t.onClick},t.hoverText&&o.createElement("span",{className:"pl-3 pr-2 ".concat(s.a.hoverText)},t.hoverText),o.createElement(c.a,{svgName:a,size:c.b.Medium,className:"svg-container d-inline-block ".concat(s.a.chevron)})),t.useGradientBackdrop&&o.createElement("div",{className:i?s.a.gradientLeft:s.a.gradientRight}),!t.hideExtendedClickableArea&&o.createElement("div",{role:"button",onClick:t.onClick,className:i?s.a.extendedClickableAreaLeft:s.a.extendedClickableAreaRight}))})),p=n(28);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t){var e,n,r,o;return{canScrollLeft:(null===(e=t.current)||void 0===e?void 0:e.scrollLeft)>0,canScrollRight:(null===(n=t.current)||void 0===n?void 0:n.scrollLeft)<(null===(r=t.current)||void 0===r?void 0:r.scrollWidth)-(null===(o=t.current)||void 0===o?void 0:o.clientWidth)}}var v=n(911),b=n.n(v);function m(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return O}));var w=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function C(t){var e,n,r,o,l,s,f,p,y={columns:t.columns,data:t.data,disableSortBy:!t.enableSort,manualSortBy:t.manualSort};t.initialSelectedRowIds&&(y.initialState={selectedRowIds:(f=t.initialSelectedRowIds,p={},f.forEach((function(t){return p[t]=!0})),p)}),t.getRowId&&(y.getRowId=t.getRowId);var h=a.useTable.apply(void 0,[y].concat(m([a.useFlexLayout,a.useSortBy,a.useRowSelect]))),d=h.getTableProps,v=h.getTableBodyProps,g=h.headerGroups,w=h.rows,C=h.prepareRow,O=h.toggleAllRowsSelected,I=h.state.sortBy;return i.a.useEffect((function(){t.onSort&&t.onSort(I)}),[I]),i.a.createElement("div",Object.assign({},d(),{className:null!==(n=null===(e=t.theme)||void 0===e?void 0:e.table)&&void 0!==n?n:""}),i.a.createElement("div",{className:null!==(o=null===(r=t.theme)||void 0===r?void 0:r.header)&&void 0!==o?o:""},g.map((function(e){var n,r;return i.a.createElement("div",Object.assign({},e.getHeaderGroupProps(),{className:null!==(r=null===(n=t.theme)||void 0===n?void 0:n.headerRow)&&void 0!==r?r:""}),e.headers.map((function(e){var n,r,o,a;return i.a.createElement("div",Object.assign({},e.getHeaderProps(e.getSortByToggleProps()),{className:null!==(r=null===(n=t.theme)||void 0===n?void 0:n.headerCell)&&void 0!==r?r:""}),e.render("Header"),!!e.canSort&&i.a.createElement("span",{className:"".concat(b.a.sortIndicator,"\n ").concat(e.isSorted?"":"text-muted","\n ").concat(null!==(a=null===(o=t.theme)||void 0===o?void 0:o.sortIndicator)&&void 0!==a?a:"")},i.a.createElement(c.a,{svgName:e.isSortedDesc||!e.isSorted?u.b.ArrowRight:u.b.ArrowLeft,size:c.b.Small})))})))}))),i.a.createElement("div",Object.assign({},v(),{className:null!==(s=null===(l=t.theme)||void 0===l?void 0:l.body)&&void 0!==s?s:""}),w.map((function(e){var n,r,o,a;C(e);var c=null!==(r=null===(n=t.theme)||void 0===n?void 0:n.row)&&void 0!==r?r:"";return e.isSelected&&(null===(o=t.theme)||void 0===o?void 0:o.selectedRow)&&(c+=" ".concat(null===(a=t.theme)||void 0===a?void 0:a.selectedRow)),t.onSelectRow&&(c+=" cursor-pointer"),i.a.createElement("div",Object.assign({},e.getRowProps(),{className:c,onClick:function(){t.onSelectRow&&(t.allowSelectMultipleRows||O(!1),t.onSelectRow(e),e.toggleRowSelected(!0))},onMouseOver:t.onRowMouseOver&&function(){return t.onRowMouseOver(e)},onMouseLeave:t.onRowMouseLeave&&function(){return t.onRowMouseLeave(e)}}),e.cells.map((function(e){var n,r,o=null!==(r=null===(n=t.theme)||void 0===n?void 0:n.cell)&&void 0!==r?r:"";return t.onSelectCell&&(o+=" cursor-pointer"),i.a.createElement("div",Object.assign({},e.getCellProps(),{className:o,onClick:function(){t.onSelectCell&&t.onSelectCell(e)}}),e.render("Cell"))})))}))))}function O(t){var e=t.enableSlider,n=t.scrollIncrement,o=w(t,["enableSlider","scrollIncrement"]),a=function(){var t=i.a.useRef(),e=y(i.a.useState(d(t)),2),n=e[0],r=e[1];function o(){r(d(t))}return i.a.useEffect((function(){if(t.current){var e=p.a.throttle(o,200);return r(d(t)),t.current.addEventListener("scroll",e),function(){t.current.removeEventListener("scroll",e)}}}),[t.current]),{ref:t,scrollState:n,scroll:function(e){var n;null===(n=t.current)||void 0===n||n.scrollBy({left:e,top:0,behavior:"smooth"})}}}(),c=a.ref,u=a.scrollState,l=a.scroll;if(!e)return i.a.createElement(C,Object.assign({},o));function s(t){c.current&&l(n*("right"===t?1:-1))}return i.a.createElement("div",{className:"mx-n3 overflow-hidden-x"},i.a.createElement("div",{className:"px-3"},i.a.createElement("div",{className:"position-relative"},i.a.createElement(f,{direction:r.Left,onClick:function(){return s("left")},hide:!u.canScrollLeft}),i.a.createElement("div",{className:b.a.scrollContainer,ref:c},i.a.createElement(C,Object.assign({},o))),i.a.createElement(f,{direction:r.Right,onClick:function(){return s("right")},hide:!u.canScrollRight}))))}O.defaultProps={scrollIncrement:250}},918:function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(19),a=n(7),c=n(872),u=n(252),l=n(209),s=n(874),f=n(902),p=n(892),y=n(869),h=n(208),d=a.a.encloseNamespace("shared.viewCountPieChartEmptyState");function v(t){return o.a.createElement(y.a,{className:"flex-grow-1 justify-content-center"},o.a.createElement(y.a.Image,{src:h.a.EmptyStates.Shared.ViewCount,className:"w-75 pb-0"}),o.a.createElement(y.a.Heading,null,d("heading")),o.a.createElement(y.a.Info,{className:"w-100"},d(t.singular?"descriptionSingular":"descriptionMultiple")))}n.d(e,"a",(function(){return m}));var b=a.a.encloseNamespace("shared.viewCountPieChartCard");function m(t){var e,n,r,a,y=Object(u.a)(),h=i.a.useBasicFetch(c.a.views(y,t.objectId)),d=i.a.useBasicFetch((null===(e=h.data)||void 0===e?void 0:e.data.length)&&l.a.getById(h.data.data.map((function(t){return t.userId}))));Object(s.a)(h);var m=(null===(n=h.data)||void 0===n?void 0:n.data.length)?!!d.data:!!h.data;return o.a.createElement("div",{className:"bg-white rounded p-3 position-relative d-flex flex-column ".concat(null!==(r=t.className)&&void 0!==r?r:"")},m?o.a.createElement(f.a,{events:h.data.data,users:null!==(a=d.data)&&void 0!==a?a:[],objectId:t.objectId,yearGroupTitle:b("totalStudentPlays"),userTypeTitle:b("totalPlays"),seriesName:b("plays"),emptyStateComponent:o.a.createElement(v,{singular:!!t.objectId})}):o.a.createElement(p.a,null))}},919:function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(895),a=n(1082);function c(t){if(t)return(t=function(t){if(t)return t.replace(/<a.*?>/g,"").replace("</a>","")}(t=function(t){if(t)return t.replace(/<p>/g,"").replace(/<\/p>/g,"<br>")}(t=function(t,e){if(t&&e)return e.forEach((function(e){t=t.replace("<"+e+">","").replace("</"+e+">","")})),t}(t,["b","i","u","ul","li","old"])))).split("<br>")[0]||"Annotation"}function u(t){var e=a.a.getTypeInfo(t.interaction.typeId),n=e.name,r=e.bgClassName,u=e.Svg,l=t.questionNumber?"".concat(t.questionNumber,". "):"",s="interaction-type-icon ".concat(r);return t.smallIcon&&(s+=" sm"),(t.showQuestion||t.showTypeName)&&(s+=t.smallIcon?" mr-1":" mr-2"),t.iconClassName&&(s+=" ".concat(t.iconClassName)),o.a.createElement(o.a.Fragment,null,!!t.showIcon&&o.a.createElement("span",{className:s},o.a.createElement(u,null)),!!t.showTypeName&&o.a.createElement("span",{className:t.typeNameClassName},o.a.createElement("strong",null,l,n)),!!t.showQuestion&&o.a.createElement("span",{className:t.questionClassName},t.interaction.typeId===i.InteractionTypeId.Annotation?o.a.createElement("span",{dangerouslySetInnerHTML:{__html:c(t.interaction.data.annotation)}}):t.interaction.name))}n.d(e,"a",(function(){return u})),u.defaultProps={showIcon:!0,showQuestion:!0}},922:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={HIGH:.8,MODERATE:.6}},923:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(886);function a(t){var e=t.disabled?"disabled":"",n=t.hideOutline?"outline-none":"",r=t.on?"on":"";return t.disabled&&!t.showStateWhenDisabled&&(r=""),o.a.createElement(i.a,{onClick:function(){t.disabled||t.onClick.apply(t,arguments)},className:"".concat("d-inline-block float-right align-top custom-toggle toggle-option"," ").concat(r," ").concat(e," ").concat(n)},o.a.createElement("span",{className:"handle"}))}},930:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),o=n(33),i=n(34);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){var e=a(Object(o.a)(i.a.HEADER_ACTIONS),2)[1];Object(r.useEffect)((function(){return e(t),function(){e(null)}}),[])}},931:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(0),o=n.n(r),i=n(7),a=n(12),c=n(30),u=n(906),l=n(252),s=i.a.encloseNamespace("interactives.interactiveNav");function f(t){var e,n,r,i=Object(l.a)(),f=(e=t.interactiveMetadataId,n=i,r=[e],[{label:s("overview"),appLink:{application:a.a.INTERACTIVES,action:c.a.Interactives.OVERVIEW,args:r,params:n}},{label:s("results"),appLink:{application:a.a.INTERACTIVES,action:c.a.Interactives.RESULTS,args:r,params:n}},{label:s("questions"),appLink:{application:a.a.INTERACTIVES,action:c.a.Interactives.QUESTION_LIST,args:r,params:n}},{label:s("engagement"),appLink:{application:a.a.INTERACTIVES,action:c.a.Interactives.ENGAGEMENT,args:r,params:n}}]);return o.a.createElement(u.a,{items:f})}},932:function(t,e,n){"use strict";var r=n(933);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(935);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(936);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(937);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(938);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}));var u=n(939);n.o(u,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return u.InteractionTypeId}));var l=n(896);n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}));var s=n(940);n.o(s,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return s.InteractionTypeId}));var f=n(941);n.o(f,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return f.InteractionTypeId}));var p=n(942);n.o(p,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return p.InteractionTypeId}));var y=n(943);n.o(y,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return y.InteractionTypeId}));var h=n(944);n.o(h,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return h.InteractionTypeId}));var d=n(945);n.o(d,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}));var v=n(946);n.o(v,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return v.InteractionTypeId}));var b=n(947);n.o(b,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return b.InteractionTypeId}));var m=n(948);n.o(m,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return m.InteractionTypeId}));var g=n(949);n.o(g,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return g.InteractionTypeId}));var w=n(950);n.o(w,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return w.InteractionTypeId}));var C=n(951);n.o(C,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return C.InteractionTypeId}));var O=n(952);n.o(O,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return O.InteractionTypeId}));var I=n(953);n.o(I,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return I.InteractionTypeId}));var T=n(954);n.o(T,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return T.InteractionTypeId}));var S=n(955);n.o(S,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return S.InteractionTypeId}));var _=n(956);n.o(_,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return _.InteractionTypeId}));var k=n(957);n.o(k,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return k.InteractionTypeId}));var j=n(958);n.o(j,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return j.InteractionTypeId}));var E=n(959);n.o(E,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return E.InteractionTypeId}));var P=n(960);n.o(P,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return P.InteractionTypeId}))},933:function(t,e,n){"use strict";var r=n(934);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}))},934:function(t,e){},935:function(t,e){},936:function(t,e){},937:function(t,e){},938:function(t,e){},939:function(t,e){},940:function(t,e){},941:function(t,e){},942:function(t,e){},943:function(t,e){},944:function(t,e){},945:function(t,e){},946:function(t,e){},947:function(t,e){},948:function(t,e){},949:function(t,e){},950:function(t,e){},951:function(t,e){},952:function(t,e){},953:function(t,e){},954:function(t,e){},955:function(t,e){},956:function(t,e){},957:function(t,e){},958:function(t,e){},959:function(t,e){},960:function(t,e){},961:function(t,e,n){"use strict";var r=n(962);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(965);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(971);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(977);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(978);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}));var u=n(979);n.o(u,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return u.InteractionTypeId}));var l=n(980);n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}));var s=n(981);n.o(s,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return s.InteractionTypeId}));var f=n(982);n.o(f,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return f.InteractionTypeId}));var p=n(983);n.o(p,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return p.InteractionTypeId}));n(984);var y=n(985);n.o(y,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return y.InteractionTypeId}));var h=n(986);n.o(h,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return h.InteractionTypeId}));var d=n(987);n.o(d,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return d.InteractionTypeId}));var v=n(988);n.o(v,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return v.InteractionTypeId}));var b=n(897);n.o(b,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return b.InteractionTypeId}));var m=n(989);n.o(m,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return m.InteractionTypeId}));var g=n(990);n.o(g,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return g.InteractionTypeId}));var w=n(991);n.o(w,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return w.InteractionTypeId}));var C=n(992);n.o(C,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return C.InteractionTypeId}));var O=n(993);n.o(O,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return O.InteractionTypeId}));var I=n(994);n.o(I,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return I.InteractionTypeId}));var T=n(898);n.o(T,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return T.InteractionTypeId}));var S=n(995);n.o(S,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(T,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return T.InteractionTypeId}));var _=n(996);n.o(_,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return _.InteractionTypeId}));var k=n(997);n.o(k,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return k.InteractionTypeId}));var j=n(998);n.o(j,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return j.InteractionTypeId}));var E=n(999);n.o(E,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return E.InteractionTypeId}));var P=n(1e3);n.o(P,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return P.InteractionTypeId}));var R=n(899);n.o(R,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return R.InteractionTypeId}));n(1001);var x=n(1002);n.o(x,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return x.InteractionTypeId}));var L=n(1003);n.o(L,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return L.InteractionTypeId}));var A=n(1004);n.o(A,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return A.InteractionTypeId}));var B=n(1005);n.o(B,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return B.InteractionTypeId}));var N=n(1006);n.o(N,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return N.InteractionTypeId}));var M=n(1007);n.o(M,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return M.InteractionTypeId}));var U=n(1008);n.o(U,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return U.InteractionTypeId}));var D=n(1009);n.o(D,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return D.InteractionTypeId}));var F=n(1010);n.o(F,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return F.InteractionTypeId}));var z=n(1011);n.o(z,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return z.InteractionTypeId}));var V=n(1012);n.o(V,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return V.InteractionTypeId}));var H=n(1013);n.o(H,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return H.InteractionTypeId}));var W=n(1014);n.o(W,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return W.InteractionTypeId}));var q=n(1015);n.o(q,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return q.InteractionTypeId}));var G=n(1016);n.o(G,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return G.InteractionTypeId}));var K=n(1017);n.o(K,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return K.InteractionTypeId}));var Q=n(1018);n.o(Q,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return Q.InteractionTypeId}));var Z=n(1019);n.o(Z,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return Z.InteractionTypeId})),n.o(R,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return R.InteractionTypeId}));var $=n(1020);n.o($,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return $.InteractionTypeId}));var X=n(1021);n.o(X,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return X.InteractionTypeId}));var J=n(1022);n.o(J,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return J.InteractionTypeId}));var Y=n(1023);n.o(Y,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return Y.InteractionTypeId})),n.o(b,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return b.InteractionTypeId}));var tt=n(1024);n.o(tt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return tt.InteractionTypeId}));var et=n(1025);n.o(et,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return et.InteractionTypeId}));var nt=n(1026);n.o(nt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return nt.InteractionTypeId}));var rt=n(1027);n.o(rt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return rt.InteractionTypeId}));var ot=n(1028);n.o(ot,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return ot.InteractionTypeId}));var it=n(1029);n.o(it,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return it.InteractionTypeId}));var at=n(1030);n.o(at,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return at.InteractionTypeId}));var ct=n(1031);n.o(ct,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return ct.InteractionTypeId}));var ut=n(1032);n.o(ut,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return ut.InteractionTypeId}));var lt=n(1033);n.o(lt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return lt.InteractionTypeId}));var st=n(1034);n.o(st,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return st.InteractionTypeId}));var ft=n(1035);n.o(ft,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return ft.InteractionTypeId}));var pt=n(1036);n.o(pt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return pt.InteractionTypeId}));var yt=n(1037);n.o(yt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return yt.InteractionTypeId}))},962:function(t,e,n){"use strict";var r=n(963);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(964);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}))},963:function(t,e){},964:function(t,e){},965:function(t,e,n){"use strict";var r=n(966);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(967);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(968);n.d(e,"InteractionTypeId",(function(){return i.a}));n(969),n(970)},966:function(t,e){},967:function(t,e){},968:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.MultipleChoice=1]="MultipleChoice",t[t.ShortAnswer=2]="ShortAnswer",t[t.TrueOrFalse=3]="TrueOrFalse",t[t.Annotation=4]="Annotation",t[t.Image=5]="Image",t[t.MissingWord=6]="MissingWord"}(r||(r={}))},969:function(t,e){},970:function(t,e){},971:function(t,e,n){"use strict";var r=n(972);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(973);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(974);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(975);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(976);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}))},972:function(t,e){},973:function(t,e){},974:function(t,e){},975:function(t,e){},976:function(t,e){},977:function(t,e){},978:function(t,e){},979:function(t,e){},980:function(t,e){},981:function(t,e){},982:function(t,e){},983:function(t,e){},984:function(t,e,n){"use strict";var r;!function(t){t.Pink="colour:0",t.Orange="colour:1",t.Green="colour:2",t.Blue="colour:3",t.Purple="colour:4",t.Indigo="colour:5"}(r||(r={}))},985:function(t,e){},986:function(t,e){},987:function(t,e){},988:function(t,e){},989:function(t,e){},990:function(t,e){},991:function(t,e){},992:function(t,e){},993:function(t,e){},994:function(t,e){},995:function(t,e){},996:function(t,e){},997:function(t,e){},998:function(t,e){},999:function(t,e){}}]);
|