@playkit-js/transcript 2.1.4 → 2.1.5-canary.16-1ac3e09
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/CHANGELOG.md +9 -0
- package/LICENSE +5 -5
- package/README.md +122 -24
- package/dist/1501adfdf5c835667ce7.svg +9 -0
- package/dist/301e7a199b2cd06c2edf.svg +9 -0
- package/dist/33bce27c0f546e80478c.svg +36 -0
- package/dist/6a4867d3d9170cc2a24d.svg +9 -0
- package/dist/73bab0af28a1c7aed29f.svg +9 -0
- package/dist/84087eb1cff72e5e6bd3.svg +9 -0
- package/dist/95d7192dc427afb678d0.svg +9 -0
- package/dist/cea5d6a7f050cbd199a1.svg +9 -0
- package/dist/d93f06ff32cdfcd016df.svg +9 -0
- package/dist/e5496f4c01207db44ffc.svg +9 -0
- package/dist/playkit-transcript.js +1 -31
- package/dist/playkit-transcript.js.map +1 -1
- package/package.json +53 -50
- package/src/components/a11y-wrapper/a11y-wrapper.ts +26 -0
- package/src/components/a11y-wrapper/index.ts +1 -0
- package/src/components/caption/caption.scss +1 -1
- package/src/components/caption/caption.tsx +118 -140
- package/src/components/caption/index.ts +1 -1
- package/src/components/caption-list/captionList.scss +8 -8
- package/src/components/caption-list/captionList.tsx +115 -117
- package/src/components/caption-list/index.ts +1 -1
- package/src/components/close-button/close-button.scss +11 -0
- package/src/components/close-button/index.tsx +23 -0
- package/src/components/download-print-menu/download-print-menu.scss +49 -48
- package/src/components/download-print-menu/download-print-menu.tsx +147 -125
- package/src/components/download-print-menu/index.ts +1 -1
- package/src/components/icons/index.ts +11 -0
- package/src/components/plugin-button/plugin-button.scss +26 -0
- package/src/components/plugin-button/plugin-button.tsx +29 -0
- package/src/components/popover-menu/index.ts +1 -1
- package/src/components/popover-menu/popover-menu.scss +3 -3
- package/src/components/popover-menu/popover-menu.tsx +25 -25
- package/src/components/search/index.ts +1 -1
- package/src/components/search/search.scss +1 -1
- package/src/components/search/search.tsx +137 -144
- package/src/components/spinner/index.ts +1 -1
- package/src/components/spinner/spinner.scss +58 -50
- package/src/components/spinner/spinner.tsx +9 -9
- package/src/components/transcript/index.ts +1 -1
- package/src/components/transcript/transcript.scss +9 -33
- package/src/components/transcript/transcript.tsx +333 -454
- package/src/global.d.ts +6 -6
- package/src/index.ts +13 -1
- package/src/transcript-plugin.scss +3 -3
- package/src/transcript-plugin.tsx +210 -391
- package/src/types/index.ts +3 -0
- package/src/types/transcript-config.ts +11 -0
- package/src/types/transcript-item-data.ts +29 -0
- package/src/types/types-ui.ts +11 -0
- package/src/utils/debounce.ts +36 -0
- package/src/utils/index.ts +4 -0
- package/src/utils/object-utils.ts +34 -0
- package/src/utils/popover/popover.scss +30 -0
- package/src/utils/popover/popover.tsx +178 -0
- package/src/utils/utils.ts +86 -0
- package/src/variables.scss +14 -0
- package/src/assets/close.svg +0 -10
- package/src/utils.ts +0 -192
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("playkit-transcript",[],e):"object"==typeof exports?exports["playkit-transcript"]=e():(t.KalturaPlayer=t.KalturaPlayer||{},t.KalturaPlayer.plugins=t.KalturaPlayer.plugins||{},t.KalturaPlayer.plugins["playkit-transcript"]=e())}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=46)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return i})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return p})),n.d(e,"__exportStar",(function(){return f})),n.d(e,"__values",(function(){return h})),n.d(e,"__read",(function(){return d})),n.d(e,"__spread",(function(){return g})),n.d(e,"__spreadArrays",(function(){return _})),n.d(e,"__await",(function(){return m})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return v})),n.d(e,"__asyncValues",(function(){return b})),n.d(e,"__makeTemplateObject",(function(){return C})),n.d(e,"__importStar",(function(){return w})),n.d(e,"__importDefault",(function(){return A}));
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
5
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
6
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
|
|
8
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
9
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
10
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
11
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
12
|
-
|
|
13
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
|
-
and limitations under the License.
|
|
15
|
-
***************************************************************************** */
|
|
16
|
-
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(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 s(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function c(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function p(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function f(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function d(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function m(t){return this instanceof m?(this.v=t,this):new m(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=o[t](e)).value instanceof m?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function c(t){s("next",t)}function u(t){s("throw",t)}function l(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function v(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:m(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function A(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o={},i=function(){function t(){}return t.registerType=function(t,e){o[t]=e},t.createObject=function(t){var e="";t instanceof r.KalturaObjectBase?e=t.getTypeName():"string"==typeof t&&(e=t);var n=e?o[e]:null;return n?new n:null},t}();e.KalturaTypesFactory=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(56),o=n(1),i=new(n(57).KalturaLogger)("KalturaObjectBase"),a=function(){function t(t){this._allowedEmptyArray=[],this._dependentProperties={},t&&Object.assign(this,t),void 0===this.relatedObjects&&(this.relatedObjects={})}return t.prototype.allowEmptyArray=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this._getMetadata().properties,r=0,o=t;r<o.length;r++){var a=o[r],s=n[a];s?"a"!==s.type?i.warn("ignore property '"+a+"' flaged to allow empty array as it is not of type array (did you set the right property in method 'allowEmptyArray'?)"):this._allowedEmptyArray.push(a):i.warn("ignore property '"+a+"' flaged to allow empty array as it doesn't not exists on type (did you set the right property in method 'allowEmptyArray'?)")}return this},t.prototype.setData=function(t){return t&&t(this),this},t.prototype.getTypeName=function(){return this._getMetadata().properties.objectType.default},t.prototype._getMetadata=function(){return{properties:{relatedObjects:{type:"m",readOnly:!0,subTypeConstructor:null,subType:"KalturaListResponse"}}}},t.prototype.hasMetadataProperty=function(t){return!!this._getMetadata().properties[t]},t.prototype.toRequestObject=function(){var t=this,e=this._getMetadata(),n={};try{Object.keys(e.properties).forEach((function(r){var o=e.properties[r],i=t._createRequestPropertyValue(r,o);switch(i.status){case"exists":n[r]=i.value;break;case"removed":n[r+"__null"]=""}}))}catch(t){throw i.warn(t.message),t}return n},t.prototype.fromResponseObject=function(t){var e=this,n=this._getMetadata();try{Object.keys(n.properties).forEach((function(r){var o=n.properties[r],i=e._parseResponseProperty(r,o,t);null!=i&&void 0!==i&&(e[r]=i)}))}catch(t){throw i.warn(t.message),t}return{}},t.prototype._parseResponseProperty=function(t,e,n){var o,i=this,a=t?n[t]:n;if(void 0!==a)if(null===a)o=null;else switch(e.type){case"b":"boolean"==typeof a?o=a:a+""=="0"?o=!1:a+""=="1"&&(o=!0);break;case"s":o=a+"";break;case"n":case"en":o=1*a;break;case"es":o=null!=a?a.toString():void 0;break;case"o":var s=a.objectType;if(!s)throw new Error("Failed to create kaltura object for property '"+t+"' (type '"+e.subType+"'). provided response object is missing property 'objectType'.");if(!(o=this._createKalturaObject(s,e.subType)))throw new Error("Failed to create kaltura object of type '"+n.objectType+"' (fallback type '"+e.subType+"')");o.fromResponseObject(a);break;case"m":var c={};if(!(a instanceof Object))throw new Error("failed to parse property '"+t+". Expected type object, got type '"+typeof a);Object.keys(a).forEach((function(t){var n=a[t],r=i._createKalturaObject(n.objectType,e.subType);if(!n||!r)throw new Error("Failed to create kaltura object for type '"+e.subType+"'");r.fromResponseObject(n),c[t]=r})),o=c;break;case"a":if(!(a instanceof Array))throw new Error("failed to parse property '"+t+". Expected type array, got type '"+typeof a);var u=[];a.forEach((function(t){var n=i._createKalturaObject(t.objectType,e.subType);if(!n)throw new Error("Failed to create kaltura object for type '"+t.objectType+"' and for fallback type '"+e.subType+"'");n.fromResponseObject(t),u.push(n)})),o=u;break;case"d":if(!this._isNumeric(a))throw new Error("failed to parse property '"+t+". Expected type date, got type '"+typeof a);o=r.KalturaClientUtils.fromServerDate(1*a)}return o},t.prototype._isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},t.prototype._createKalturaObject=function(t,e){var n=null,r=!1;return t&&(n=o.KalturaTypesFactory.createObject(t)),!n&&e&&(r=!0,n=o.KalturaTypesFactory.createObject(e)),r&&n?i.warn("[kaltura-client]: Could not find object type '"+t+"', Falling back to '"+e+"' object type. (Did you remember to set your accepted object types in the request “config.acceptedTypes” attribute?)"):n||i.warn("[kaltura-client]: Could not find object type '"+t+"'. (Did you remember to set your accepted object types in the request “config.acceptedTypes” attribute?)"),n},t.prototype._createRequestPropertyValue=function(e,n){var o={status:"missing"};if("c"===n.type)n.default&&(o={status:"exists",value:n.default});else if(this._dependentProperties[e]){var i=this._dependentProperties[e];o={status:"exists",value:"{"+i.request+":result"+(i.targetPath?":"+i.targetPath:"")+"}"}}else if(!n.readOnly){var a=this[e];if(void 0!==a)if(null===a)o={status:"removed"};else switch(n.type){case"b":o={status:"exists",value:a};break;case"s":o={status:"exists",value:a+""};break;case"n":case"en":o={status:"exists",value:1*a};break;case"o":if(!(a instanceof t))throw new Error("failed to parse property. Expected '"+e+" to be kaltura object");o={status:"exists",value:a.toRequestObject()};break;case"a":if(!(a instanceof Array))throw new Error("failed to parse property. Expected '"+e+" to be Array");var s=[];if(a.forEach((function(e){e instanceof t&&s.push(e.toRequestObject())})),-1!==this._allowedEmptyArray.indexOf(e)||0!==s.length){if(s.length!==a.length)throw new Error("failed to parse array. Expected all '"+e+" items to be kaltura object");o={status:"exists",value:s}}break;case"m":if(!(a instanceof Object))throw new Error("failed to parse property. Expected '"+e+" to be kaltura object");var c=Object.keys(a);if(c.length>0){var u={};if(c.forEach((function(e){var n=a[e];n instanceof t&&(u[e]=n.toRequestObject())})),c.length!==Object.keys(u).length)throw new Error("failed to parse map. Expected all '"+e+" items to be kaltura object");o={status:"exists",value:u}}break;case"d":if(!(a instanceof Date))throw new Error("failed to parse property. Expected '"+e+" to be date");o={status:"exists",value:r.KalturaClientUtils.toServerDate(a)};break;case"es":o={status:"exists",value:"string"==typeof a?a:void 0};break;case"f":a instanceof FormData&&(o={status:"exists",value:a})}}return o},t.prototype.setDependency=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++){var o=t[n],i=o,a=i.property,s=i.request,c=i.targetPath;o instanceof Array&&(a=o[0],s=o[1],c=3===o.length?o[2]:null),s+=1,this._dependentProperties[a]={property:a,request:s,targetPath:c}}return this},t}();e.KalturaObjectBase=a},function(t,e){t.exports=KalturaPlayer.ui.preact},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];null!=a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(t,e){return e?e.querySelector(t):document.querySelector(t)},c=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=s.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),u=null,l=0,p=[],f=n(53);function h(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(v(r.parts[a],e))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(v(r.parts[a],e));i[r.id]={id:r.id,refs:1,parts:s}}}}function d(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function g(t,e){var n=c(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=p[p.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),p.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=c(t.insertAt.before,n);n.insertBefore(e,o)}}function _(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=p.indexOf(t);e>=0&&p.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return y(e,t.attrs),g(t,e),e}function y(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function v(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var a=l++;n=u||(u=m(e)),r=w.bind(null,n,a,!1),o=w.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",y(e,t.attrs),g(t,e),e}(e),r=x.bind(null,n,e),o=function(){_(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),r=A.bind(null,n),o=function(){_(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=d(t,e);return h(n,e),function(t){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}t&&h(d(t,e),e);for(o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete i[s.id]}}}};var b,C=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function w(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=C(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function A(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function x(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=f(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(t){function e(n,r,o){var i=t.call(this,n)||this;return i.message=n,i.code=r,i.args=o,Object.setPrototypeOf(i,e.prototype),i}return r.__extends(e,t),e}(Error);e.KalturaAPIException=o},function(t,e,n){"use strict";var r=n(20),o=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=p;var i=n(16);i.inherits=n(12);var a=n(41),s=n(28);i.inherits(p,a);for(var c=o(s.prototype),u=0;u<c.length;u++){var l=c[u];p.prototype[l]||(p.prototype[l]=s.prototype[l])}function p(t){if(!(this instanceof p))return new p(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),p.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},function(t,e,n){var r;window,t.exports=(r=n(13),function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=37)}([function(t,e){t.exports=KalturaPlayer.ui.preact},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,r,o,i=t[1]||"",a=t[3];if(!a)return i;if(e&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),c=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[i].concat(c).concat([s]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},function(t,e){t.exports=r},function(t,e,n){"use strict";var r,o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),i=[];function a(t){for(var e=-1,n=0;n<i.length;n++)if(i[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},r=[],o=0;o<t.length;o++){var s=t[o],c=e.base?s[0]+e.base:s[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var p=a(l),f={css:s[1],media:s[2],sourceMap:s[3]};-1!==p?(i[p].references++,i[p].updater(f)):i.push({identifier:l,updater:g(f,e),references:1}),r.push(l)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,l=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function p(t,e,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=l(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function f(t,e,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var h=null,d=0;function g(t,e){var n,r,o;if(e.singleton){var i=d++;n=h||(h=c(e)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(e),r=f.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var o=a(n[r]);i[o].references--}for(var c=s(t,e),u=0;u<n.length;u++){var l=a(n[u]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}n=c}}}},function(t,e,n){"use strict";var r=n(20),o=n(92),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===i.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:a,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return e},deepMerge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]="object"==typeof n?t({},n):n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return e},extend:function(t,e,n){return u(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getContribConfig=void 0;var r=n(2);e.getContribConfig=function(t,e,n,o){return r.KalturaPlayerUtils.getPlayerConfig(t,"contrib."+e,n,o)}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(54),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PresetsUtils=void 0;var r=n(2).getContribLogger({module:"contrib-ui",class:"PresetsUtils"}),o=function(){function t(){}return t.groupPresetAreasByType=function(t){var e=t.presetAreasMapping,n=t.acceptableTypes,o={};return n.forEach((function(t){return o[t]={}})),Object.keys(e).forEach((function(t){Object.keys(e[t]).forEach((function(i){-1===n.indexOf(i)?r.warn("Unknown preset area type '"+i+"' provided, ignoring specific type mapping. Acceptable values are '"+n.join(", "),{}):o[i][t]=e[t][i]}))})),o},t}();e.PresetsUtils=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingPositions=e.FloatingUIModes=void 0,function(t){t.MediaLoaded="MediaLoaded",t.OnDemand="OnDemand",t.Immediate="Immediate",t.FirstPlay="FirstPlay"}(e.FloatingUIModes||(e.FloatingUIModes={})),function(t){t.VideoArea="VideoArea",t.PresetArea="PresetArea",t.InteractiveArea="InteractiveArea"}(e.FloatingPositions||(e.FloatingPositions={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KitchenSinkPositions=e.KitchenSinkExpandModes=void 0,function(t){t.AlongSideTheVideo="alongside",t.Hidden="hidden",t.OverTheVideo="over"}(e.KitchenSinkExpandModes||(e.KitchenSinkExpandModes={})),function(t){t.Top="top",t.Left="left",t.Right="right",t.Bottom="bottom"}(e.KitchenSinkPositions||(e.KitchenSinkPositions={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getVideoSize=e.getPlayerSize=void 0,e.getPlayerSize=function(t){return t?t.dimensions:{width:0,height:0}},e.getVideoSize=function(t){if(!t)return{width:0,height:0};var e=t.getActiveTracks().video;return e&&void 0!==e.width&&void 0!==e.height?{width:e.width,height:e.height}:t.getVideoElement()?{width:t.getVideoElement().videoWidth,height:t.getVideoElement().videoHeight}:{width:0,height:0}}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__rest||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};Object.defineProperty(e,"__esModule",{value:!0}),e.ToastManager=e.ToastSeverity=void 0;var i=n(2),a=n(9),s=n(47),c=n(0);!function(t){t.Info="Info",t.Success="Success",t.Warn="Warn",t.Error="Error"}(e.ToastSeverity||(e.ToastSeverity={}));var u=function(){function t(t){var e=this;this.options=t,this._toasts=[],this._floatingItem=null,this._remove=function(t){var n=e._findToastIndexById(t);-1!==n&&(clearTimeout(e._toasts[n].timerSubscription),e._toasts.splice(n,1),e._updateToastsUI(),0===e._toasts.length&&e._removeToastsContainer())},this._options=t}return t.prototype.add=function(t){var e=t.duration,n=o(t,["duration"]);this._floatingItem||this._addToastsContainer();var a={toastProps:r(r({},n),{id:i.UUID.uuidV1(),onClose:this._remove}),duration:e,timerSubscription:null};this._toasts.push(a),this._updateToastsUI(),this._startDurationTimer(a)},t.prototype.reset=function(){var t=this;this._toasts.forEach((function(e){t._remove(e.toastProps.id)}))},t.prototype._startDurationTimer=function(t){var e=this;t.timerSubscription=setTimeout((function(){e._remove(t.toastProps.id)}),t.duration)},t.prototype._addToastsContainer=function(){var t=this;this._floatingItem=this._options.floatingManager.add({label:"Toasts",mode:a.FloatingUIModes.Immediate,position:a.FloatingPositions.InteractiveArea,renderContent:function(){return c.h(s.ToastsContainer,{toasts:t._toasts.map((function(t){return t.toastProps}))})}})},t.prototype._removeToastsContainer=function(){this._floatingItem&&(this._options.floatingManager.remove(this._floatingItem),this._floatingItem=null)},t.prototype._updateToastsUI=function(){this._floatingItem&&this._floatingItem.update()},t.prototype._findToastIndexById=function(t){for(var e=0;e<this._toasts.length;){if(this._toasts[e].toastProps.id===t)return e;e++}return-1},t}();e.ToastManager=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingItem=void 0;var r=n(0),o=n(2),i=n(9),a=n(7),s=function(){function t(t){var e=this;this._destroyed=!1,this._isShown=!1,this._componentRef=null,this.remove=function(){e._logger.info("remove item from player",{method:"remove"}),e._isShown=!1,e._componentRef&&e._componentRef.update()},this.add=function(){e._logger.info("add item to player",{method:"add"}),e._isShown=!0,e._componentRef&&e._componentRef.update()},this._handleMediaLoaded=function(){var t=e._options.kalturaPlayer;t.removeEventListener(t.Event.MEDIA_LOADED,e._handleMediaLoaded),e.add()},this._handleFirstPlay=function(){var t=e._options.kalturaPlayer;t.removeEventListener(t.Event.FIRST_PLAY,e._handleFirstPlay),e.add()},this._options=t,this._logger=o.getContribLogger({module:"contrib-ui",class:"FloatingItem",context:t.data.label}),this._logger.debug("executed",{method:"constructor",data:{options:t}}),this._logger.info("created item "+t.data.label,{method:"constructor"}),this._addPlayerBindings()}return Object.defineProperty(t.prototype,"data",{get:function(){return this._options.data},enumerable:!1,configurable:!0}),t.prototype.update=function(){this._componentRef&&this._componentRef.update()},t.prototype.destroy=function(){this._logger.info("destroy item",{method:"destroy"}),this._destroyed=!0,this.remove()},t.prototype.renderFloatingChild=function(t){var e=this,n=this._options.data.label;return r.h(a.ManagedComponent,{label:n,renderChildren:function(){return e._options.data.renderContent(t)},isShown:function(){return e._isShown},ref:function(t){return e._componentRef=t}})},t.prototype._addPlayerBindings=function(){var t=this._options,e=t.kalturaPlayer,n=t.data;n.mode===i.FloatingUIModes.MediaLoaded&&e.addEventListener(e.Event.MEDIA_LOADED,this._handleMediaLoaded),n.mode===i.FloatingUIModes.FirstPlay&&e.addEventListener(e.Event.FIRST_PLAY,this._handleFirstPlay),n.mode===i.FloatingUIModes.Immediate&&this.add()},t}();e.FloatingItem=s},function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.PresetManager=e.PresetManagerEventTypes=void 0;var o,i=n(0),a=n(58),s=n(2),c=n(62),u=n(8),l=n(6);!function(t){t.PresetResizeEvent="PresetResizeEvent",t.VideoResizeEvent="VideoResizeEvent"}(o=e.PresetManagerEventTypes||(e.PresetManagerEventTypes={}));var p=["PlayerArea"],f={presetAreasMapping:{Playback:{PlayerArea:"PlayerArea"},Live:{PlayerArea:"PlayerArea"}}},h=function(){function t(t){var e=this;this._events=new s.EventsManager,this._isLocked=!1,this._items=[],this._pendingItems=[],this._registerToPlayer=function(t){t.addEventListener(KalturaPlayer.ui.EventType.UI_PRESET_RESIZE,e._notifyUIPresetResize),t.addEventListener(KalturaPlayer.ui.EventType.VIDEO_RESIZE,e._notifyVideoResize)},this._notifyVideoResize=function(){e._events.emit({type:o.VideoResizeEvent})},this._notifyUIPresetResize=function(){e._events.emit({type:o.PresetResizeEvent})},this._unregisterToPlayer=function(t){t.removeEventListener(KalturaPlayer.ui.EventType.UI_PRESET_RESIZE,e._notifyUIPresetResize),t.removeEventListener(KalturaPlayer.ui.EventType.VIDEO_RESIZE,e._notifyVideoResize)},this.on=this._events.on.bind(this._events),this.off=this._events.off.bind(this._events),this._options=t,this._presetConfig=l.getContribConfig(this._options.kalturaPlayer,"ui.preset",f,{explicitMerge:["presetAreasMapping"]});var n=u.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._presetConfig.presetAreasMapping,acceptableTypes:p});this.add({label:"preset-manager",presetAreas:n.PlayerArea,renderChild:function(){return i.h(c.UIPlayerAdapter,{onMount:e._registerToPlayer,onUnmount:e._unregisterToPlayer})}})}return t.prototype.add=function(t){if(this._isLocked)return console.warn("cannot add new preset items once player completed its' setup phase"),null;var e=new a.PresetItem({kalturaPlayer:this._options.kalturaPlayer,data:t});this._pendingItems.push(e)},t.prototype.lockManager=function(){this._isLocked=!0},t.prototype.registerComponents=function(){var t=[];return this._pendingItems.forEach((function(e){t=r(t,e.playerConfig)})),this._items=r(this._items,this._pendingItems),this._pendingItems=[],t.filter(Boolean)},t}();e.PresetManager=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RelativeToTypes=e.ReservedPresetAreas=e.ReservedPresetNames=void 0,function(t){t.Playback="Playback",t.Live="Live"}(e.ReservedPresetNames||(e.ReservedPresetNames={})),function(t){t.PresetFloating="PresetFloating",t.BottomBarLeftControls="BottomBarLeftControls",t.BottomBarRightControls="BottomBarRightControls",t.TopBarLeftControls="TopBarLeftControls",t.TopBarRightControls="TopBarRightControls",t.SidePanelTop="SidePanelTop",t.SidePanelLeft="SidePanelLeft",t.SidePanelRight="SidePanelRight",t.SidePanelBottom="SidePanelBottom",t.PresetArea="PresetArea",t.InteractiveArea="InteractiveArea",t.PlayerArea="PlayerArea",t.VideoArea="VideoArea"}(e.ReservedPresetAreas||(e.ReservedPresetAreas={})),function(t){t.Before="Before",t.After="After",t.Replace="Replace"}(e.RelativeToTypes||(e.RelativeToTypes={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UpperBarItem=void 0;var r=n(0),o=n(2);e.UpperBarItem=function(t){var e=this;this.renderChild=function(t){var n=e._options.data,o=n.onClick,i=n.renderItem,a=(n.label,i(t));return r.h("div",{onClick:o,className:"upper-bar-icon"},a)},this._options=t,this._logger=o.getContribLogger({module:"contrib-ui",class:"PresetItem",context:t.data.label}),this._logger.debug("executed",{method:"constructor",data:{options:t}}),this._logger.info("created item "+t.data.label,{method:"constructor"})}},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(74),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KitchenSinkItem=void 0;var r=n(0),o=n(2),i=n(7),a=n(19),s=n(85),c=function(){function t(t){var e=this;this._componentRef=null,this._destroyed=!1,this._activationStateChange=function(t){var n=t.item;e===n&&e.update()},this.renderContentChild=function(t){if(!e._isDestroyed()){var n=e._options.data,o=n.renderContent,a=n.label,c=e._options.kitchenSinkConfig;return r.h(i.ManagedComponent,{label:a,fillContainer:!1,renderChildren:function(){return r.h(s.KitchenSink,{children:o(t),isActive:e.isActive(),kitchenSinkConfig:c})},isShown:function(){return!e._destroyed},ref:function(t){return e._componentRef=t}})}},this._options=t,this._logger=o.getContribLogger({module:"contrib-ui",class:"KitchenSinkItem",context:t&&t.data&&t.data.label}),this._logger.debug("executed",{method:"constructor",data:{options:t}}),this._logger.info("created item "+t.data.label,{method:"constructor"}),this._options.eventManager.on(a.KitchenSinkEventTypes.ItemActiveStateChangeEvent,this._activationStateChange)}return Object.defineProperty(t.prototype,"data",{get:function(){if(!this._isDestroyed())return this._options.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayName",{get:function(){if(!this._isDestroyed())return this._options.data.label},enumerable:!1,configurable:!0}),t.prototype.update=function(){this._isDestroyed()||this._componentRef&&this._componentRef.update()},t.prototype.isActive=function(){if(!this._isDestroyed())return this._options.isActive(this)},t.prototype.activate=function(){this._isDestroyed()||this._options.activate(this)},t.prototype.deactivate=function(){this._isDestroyed()||this._options.deactivate(this)},t.prototype._destroy=function(){this._isDestroyed()||(this._options.eventManager.off(a.KitchenSinkEventTypes.ItemActiveStateChangeEvent,this._activationStateChange),this.update(),this._componentRef=null,this._options=null,this._destroyed=!0)},t.prototype._isDestroyed=function(){return!!this._destroyed&&(this._logger.warn("can't perform requested call, item was marked as destroyed",{}),!0)},t}();e.KitchenSinkItem=c},function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.KitchenSinkManager=e.KitchenSinkEventTypes=e.ItemActiveStates=void 0;var o,i,a=n(0),s=n(10),c=n(18),u=n(2),l=n(80),p=n(83),f=n(7),h=n(8),d=n(6),g=["PlayerArea","SidePanelRight","SidePanelBottom"];!function(t){t.Active="Active",t.InActive="InActive"}(o=e.ItemActiveStates||(e.ItemActiveStates={})),function(t){t.ItemActiveStateChangeEvent="ItemActiveStateChangeEvent"}(i=e.KitchenSinkEventTypes||(e.KitchenSinkEventTypes={}));var _={theme:{backgroundColor:"rgba(0, 0, 0, .7)",blur:"10px"},presetAreasMapping:{Playback:{PlayerArea:"PlayerArea",SidePanelRight:"SidePanelRight",SidePanelBottom:"SidePanelBottom"},Live:{PlayerArea:"PlayerArea",SidePanelRight:"SidePanelRight",SidePanelBottom:"SidePanelBottom"}}},m=function(){function t(t){var e,n=this;this.options=t,this._events=new u.EventsManager,this._panels=((e={})[s.KitchenSinkPositions.Bottom]={ref:null,items:[],activeItem:null},e[s.KitchenSinkPositions.Right]={ref:null,items:[],activeItem:null},e[s.KitchenSinkPositions.Top]={ref:null,items:[],activeItem:null},e[s.KitchenSinkPositions.Left]={ref:null,items:[],activeItem:null},e),this._kitchenSinkAdapterRef=null,this.on=this._events.on.bind(this._events),this.off=this._events.off.bind(this._events),this._toggle=function(t){n._isActive(t)?n._deactivateItem(t):n._activateItem(t)},this._activateItem=function(t){var e=t.data,r=e.position,a=e.expandMode,s=n._panels[r];s.activeItem!==t&&(s.activeItem&&n._events.emit({type:i.ItemActiveStateChangeEvent,state:o.InActive,item:s.activeItem}),s.activeItem=t,n._events.emit({type:i.ItemActiveStateChangeEvent,state:o.Active,item:t}),n._expand(r,a))},this._deactivateItem=function(t){var e=t.data.position,r=n._panels[e];r.activeItem===t&&(n._collapse(e),n._events.emit({type:i.ItemActiveStateChangeEvent,state:o.InActive,item:r.activeItem}),r.activeItem=null)},this._isActive=function(t){return n._panels[t.data.position].activeItem===t},this._expand=function(t,e){n._kitchenSinkAdapterRef&&n._kitchenSinkAdapterRef.expand(t,e)},this._renderChild=function(t){return a.h(f.ManagedComponent,{label:"kitchen-sink-manager",renderChildren:function(){return n._renderKitchenSink(t)},isShown:function(){return!0},ref:function(e){return n._panels[t].ref=e}})},this._setRef=function(t){n._kitchenSinkAdapterRef=t||null},this._options=t,this._kitchenSinkConfig=d.getContribConfig(this._options.kalturaPlayer,"ui.kitchenSink",_,{explicitMerge:["presetAreasMapping"]});var r=h.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._kitchenSinkConfig.presetAreasMapping,acceptableTypes:g});this.options.presetManager.add({label:"kitchen-sink-right",fillContainer:!0,presetAreas:r.SidePanelRight,renderChild:this._renderChild.bind(this,s.KitchenSinkPositions.Right)}),this.options.presetManager.add({label:"kitchen-sink-bottom",fillContainer:!0,presetAreas:r.SidePanelBottom,renderChild:this._renderChild.bind(this,s.KitchenSinkPositions.Bottom)}),this.options.presetManager.add({label:"kitchen-sink-adapter",presetAreas:r.PlayerArea,renderChild:function(){return a.h(p.KitchenSinkAdapter,{ref:n._setRef})}})}return t.prototype.add=function(t){var e=this,n={data:t,isActive:this._isActive,activate:this._activateItem,deactivate:this._deactivateItem,eventManager:this._events,kitchenSinkConfig:this._kitchenSinkConfig},r=this._panels[t.position],o=new c.KitchenSinkItem(n),i=this.options.upperBarManager.add({label:t.label,renderItem:function(){return t.renderIcon(n.isActive(o))},onClick:function(){e._toggle(o),e.options.upperBarManager.update()}});return r.items.push({kitchenSinkItem:o,upperBarItem:i}),r.ref&&r.ref.update(),o},t.prototype.remove=function(t){var e=this._panels[t.data.position],n=u.ArrayUtils.findIndex(e.items,(function(e){var n=e.kitchenSinkItem;return t===n}));if(-1!==n){this._deactivateItem(t);var r=e.items[n].upperBarItem;t._destroy(),this.options.upperBarManager.remove(r),e.items.splice(n,1),e.ref&&e.ref.update()}},t.prototype._collapse=function(t){this._kitchenSinkAdapterRef&&this._kitchenSinkAdapterRef.collapse(t)},t.prototype._renderKitchenSink=function(t){var e=this,n=this._panels[t].items.map((function(t){var n=t.kitchenSinkItem,r={onClose:e._deactivateItem.bind(e,n)};return n.renderContentChild(r)}));return a.h(l.KitchenSinkContainer,null,n)},t.prototype.reset=function(){var t=this;r(this._panels[s.KitchenSinkPositions.Bottom].items,this._panels[s.KitchenSinkPositions.Left].items,this._panels[s.KitchenSinkPositions.Top].items,this._panels[s.KitchenSinkPositions.Right].items).forEach((function(e){var n=e.kitchenSinkItem;t.remove(n)}))},t}();e.KitchenSinkManager=m},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(4);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(4),o=n(98),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,c={adapter:((void 0!==e&&"[object process]"===Object.prototype.toString.call(e)||"undefined"!=typeof XMLHttpRequest)&&(s=n(24)),s),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(i)})),t.exports=c}).call(this,n(97))},function(t,e,n){"use strict";var r=n(4),o=n(99),i=n(21),a=n(101),s=n(102),c=n(25);t.exports=function(t){return new Promise((function(e,u){var l=t.data,p=t.headers;r.isFormData(l)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",d=t.auth.password||"";p.Authorization="Basic "+btoa(h+":"+d)}if(f.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,u,r),f=null}},f.onabort=function(){f&&(u(c("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){u(c("Network Error",t,null,f)),f=null},f.ontimeout=function(){u(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var g=n(103),_=(t.withCredentials||s(t.url))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;_&&(p[t.xsrfHeaderName]=_)}if("setRequestHeader"in f&&r.forEach(p,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:f.setRequestHeader(e,t)})),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),u(t),f=null)})),void 0===l&&(l=null),f.send(l)}))}},function(t,e,n){"use strict";var r=n(100);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e){e=e||{};var n={};return r.forEach(["url","method","params","data"],(function(t){void 0!==e[t]&&(n[t]=e[t])})),r.forEach(["headers","auth","proxy"],(function(o){r.isObject(e[o])?n[o]=r.deepMerge(t[o],e[o]):void 0!==e[o]?n[o]=e[o]:r.isObject(t[o])?n[o]=r.deepMerge(t[o]):void 0!==t[o]&&(n[o]=t[o])})),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])})),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scaleVideo=void 0,e.scaleVideo=function(t,e,n,r,o){var i={width:0,height:0,left:0,top:0,scaleToTargetWidth:!0};if(t<=0||e<=0||n<=0||r<=0)return i;var a=n,s=e*n/t,c=t*r/e,u=r,l=c>n;return(l=l?o:!o)?(i.width=Math.abs(a),i.height=Math.abs(s),i.scaleToTargetWidth=!0):(i.width=Math.abs(c),i.height=Math.abs(u),i.scaleToTargetWidth=!1),i.left=Math.abs((n-i.width)/2),i.top=Math.abs((r-i.height)/2),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OverlayItem=void 0;var r=n(2),o=function(){function t(t){this._destroyed=!1,this._options=t,this._logger=r.getContribLogger({module:"contrib-ui",class:"OverlayItem",context:t.data.label}),this._logger.debug("executed",{method:"constructor",data:{options:t}}),this._logger.info("created item "+t.data.label,{method:"constructor"})}return Object.defineProperty(t.prototype,"data",{get:function(){return this._options.data},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this._logger.info("destroy item",{method:"destroy"}),this._destroyed=!0},t.prototype.renderOverlayChild=function(t){return this._destroyed?null:this._options.data.renderContent(t)},t}();e.OverlayItem=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OverlayPositions=void 0,function(t){t.PlayerArea="PlayerArea"}(e.OverlayPositions||(e.OverlayPositions={}))},function(t,e){t.exports="data:image/svg+xml,%3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/32/Someone asks%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32/Someone-asks' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='Group' transform='translate(4.000000, 5.000000)' fill='%23B2D238'%3E %3Cellipse id='Oval' cx='12' cy='5.5' rx='6' ry='5.5'%3E%3C/ellipse%3E %3Cpath d='M12,13 C7.995,13 0,15.01 0,19 L0,20.5 C0,21.325 0.675,22 1.5,22 L22.5,22 C23.325,22 24,21.325 24,20.5 L24,19 C24,15.01 16.005,13 12,13 Z' id='Path'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3Csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/20/Someone asks%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/20/Someone-asks' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='Group' transform='translate(2.000000, 2.000000)' fill='%23B2D238'%3E %3Ccircle id='Oval' cx='8' cy='4' r='4'%3E%3C/circle%3E %3Cpath d='M8,9 C5.33,9 0,10.5633333 0,13.6666667 L0,14.8333333 C0,15.475 0.45,16 1,16 L15,16 C15.55,16 16,15.475 16,14.8333333 L16,13.6666667 C16,10.5633333 10.67,9 8,9 Z' id='Path'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/32x32/Menu Player Close%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32x32/Menu-Player-Close' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M17.4142136,16 L22.363961,20.9497475 C22.7544853,21.3402718 22.7544853,21.9734367 22.363961,22.363961 C21.9734367,22.7544853 21.3402718,22.7544853 20.9497475,22.363961 L16,17.4142136 L11.0502525,22.363961 C10.6597282,22.7544853 10.0265633,22.7544853 9.63603897,22.363961 C9.24551468,21.9734367 9.24551468,21.3402718 9.63603897,20.9497475 L14.5857864,16 L9.63603897,11.0502525 C9.24551468,10.6597282 9.24551468,10.0265633 9.63603897,9.63603897 C10.0265633,9.24551468 10.6597282,9.24551468 11.0502525,9.63603897 L16,14.5857864 L20.9497475,9.63603897 C21.3402718,9.24551468 21.9734367,9.24551468 22.363961,9.63603897 C22.7544853,10.0265633 22.7544853,10.6597282 22.363961,11.0502525 L17.4142136,16 Z' id='Path' fill='%23FFFFFF'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E %3Cpath fill='%23FFF' fill-rule='evenodd' d='M5.956 5l3.348-3.348A.674.674 0 0 0 9.3.7a.672.672 0 0 0-.952-.004L5 4.044 1.652.696A.674.674 0 0 0 .7.7a.672.672 0 0 0-.004.952L4.044 5 .696 8.348A.674.674 0 0 0 .7 9.3c.265.266.69.266.952.004L5 5.956l3.348 3.348c.262.262.689.26.952-.004a.672.672 0 0 0 .004-.952L5.956 5z' opacity='.9'/%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3Csvg width='16px' height='16px' viewBox='0 0 16 16' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/16/Close%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/16/Close' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M8.8497789,8 L11.824005,10.9742261 C12.058665,11.2088861 12.058665,11.5893451 11.824005,11.824005 C11.5893451,12.058665 11.2088861,12.058665 10.9742261,11.824005 L8,8.8497789 L5.02577387,11.824005 C4.7911139,12.058665 4.41065493,12.058665 4.17599497,11.824005 C3.94133501,11.5893451 3.94133501,11.2088861 4.17599497,10.9742261 L7.1502211,8 L4.17599497,5.02577387 C3.94133501,4.7911139 3.94133501,4.41065493 4.17599497,4.17599497 C4.41065493,3.94133501 4.7911139,3.94133501 5.02577387,4.17599497 L8,7.1502211 L10.9742261,4.17599497 C11.2088861,3.94133501 11.5893451,3.94133501 11.824005,4.17599497 C12.058665,4.41065493 12.058665,4.7911139 11.824005,5.02577387 L8.8497789,8 Z' id='Path' fill='%23cccccc'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E %3Cg fill='none' fill-rule='evenodd'%3E %3Cpath d='M0 0h32v32H0z'/%3E %3Cpath fill='%23FFF' d='M16 22a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm0-11a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm0-11a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E %3C/g%3E %3C/svg%3E"},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(38),e),o(n(12),e),o(n(13),e),o(n(9),e),o(n(57),e),o(n(16),e),o(n(64),e),o(n(65),e),o(n(18),e),o(n(10),e),o(n(19),e),o(n(14),e),o(n(89),e),o(n(15),e),o(n(8),e),o(n(28),e),o(n(108),e),o(n(109),e),o(n(7),e),o(n(110),e),o(n(111),e),o(n(29),e),o(n(30),e),o(n(17),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BannerManager=e.VisibilityMode=void 0;var r,o=n(9),i=n(0),a=n(39),s=n(43),c=n(11),u=n(6);!function(t){t.VISIBLE="VISIBLE",t.HIDDEN="HIDDEN"}(r=e.VisibilityMode||(e.VisibilityMode={}));var l={theme:{backgroundColor:"rgba(0, 0, 0, .7)",blur:"10px"}},p=function(){function t(t){this.options=t,this._floatingItem=null,this._timerSubscription=void 0,this._options=t,this._bannerConfig=u.getContribConfig(this._options.kalturaPlayer,"ui.banner",l)}return t.prototype.add=function(t){return this._floatingItem&&this.remove(),this._floatingItem=this._options.floatingManager.add({label:"Banner",mode:o.FloatingUIModes.Immediate,position:o.FloatingPositions.InteractiveArea,renderContent:this._createRenderBanner(t,{onClose:this._handleCloseEvent.bind(this),theme:this._bannerConfig.theme})}),t.autoClose&&this._startDurationTimer(t.duration),this._getState()},t.prototype.remove=function(){this._floatingItem&&(this._timerSubscription&&clearTimeout(this._timerSubscription),this._options.floatingManager.remove(this._floatingItem),this._floatingItem=null)},t.prototype.reset=function(){this.remove()},t.prototype._createRenderBanner=function(t,e){var n=t.content,r=t.renderContent,o=e.onClose,c=e.theme;return function(t){return i.h(s.BannerContainer,{onClose:o,theme:c},r?r(n,t):i.h(a.Banner,{content:n}))}},t.prototype._handleCloseEvent=function(){this.remove()},t.prototype._startDurationTimer=function(t){void 0===t&&(t=6e4),this._timerSubscription=setTimeout(this.remove.bind(this),Math.max(5e3,t))},t.prototype._getState=function(){var t=c.getPlayerSize(this._options.kalturaPlayer);return{visibilityMode:!t||t.width<480?r.HIDDEN:r.VISIBLE}},t}();e.BannerManager=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(40);Object.defineProperty(e,"Banner",{enumerable:!0,get:function(){return r.Banner}})},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Banner=void 0;var i=n(0),a=n(2),s=n(41),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._logger=a.getContribLogger({module:"contrib-ui",class:"Banner"}),e}return o(e,t),e.prototype.componentDidMount=function(){this._logger.info("mount component",{method:"componentDidMount"})},e.prototype.componentWillUnmount=function(){this._logger.info("unmount component",{method:"componentWillUnmount"})},e.prototype.render=function(t){var e=t.content,n=e.text,r=e.title,o=void 0===r?"Audience asks:":r,a=e.icon,c=void 0===a?this._defaultIcon():a;return this._logger.trace("render component",{method:"render"}),i.h("div",{className:s.defaultBannerRoot+" "+s.bannerWrapper},i.h("div",{className:s.iconContainer},i.h("div",{className:s.iconWrapper},c)),i.h("div",{className:s.bannerBody},i.h("div",{className:s.title},o),i.h("div",{className:s.text},n)))},e.prototype._defaultIcon=function(){return i.h("div",{className:s.iconImage})},e}(i.Component);e.Banner=c},function(t,e,n){var r=n(3),o=n(42);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r),i=n(5),a=n.n(i),s=n(31),c=n.n(s),u=n(32),l=n.n(u),p=o()(!0),f=a()(c.a),h=a()(l.a);p.push([t.i,".contrib_banner__defaultBannerRoot___3Mjsx{display:flex;max-width:100%;height:100%;transition:all .5s ease;text-align:left}.contrib_banner__bannerWrapper___10Aav{padding:18px 17px 17px 16px}.contrib_banner__iconContainer___11URF{height:100%;width:64px}.contrib_banner__iconWrapper___2GmiQ{position:relative;height:48px;width:48px;background-color:rgba(255,255,255,0.14);border-radius:50%;transition:all .5s ease}.contrib_banner__iconImage___34fSF{position:absolute;width:32px;height:32px;left:calc(50% - 16px);top:calc(50% - 16px);background-image:url("+f+");background-repeat:no-repeat;transition:all .5s ease}.contrib_banner__bannerBody___3co4C{height:100%;flex:1 1 auto;overflow:hidden}.contrib_banner__title___3cUox{opacity:0.9;font-size:14px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1;letter-spacing:normal;color:#ebebeb}.contrib_banner__text___1yzsx{opacity:0.9;font-size:24px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.21;letter-spacing:normal;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .5s ease}.playkit-size-md .contrib_banner__bannerWrapper___10Aav{padding:14px 16px 14px}.playkit-size-md .contrib_banner__iconContainer___11URF{width:44px}.playkit-size-md .contrib_banner__iconWrapper___2GmiQ{height:32px;width:32px}.playkit-size-md .contrib_banner__iconImage___34fSF{width:20px;height:20px;left:calc(50% - 10px);top:calc(50% - 10px);background-image:url("+h+")}.playkit-size-md .contrib_banner__bannerBody___3co4C{flex:1 1 auto}.playkit-size-md .contrib_banner__title___3cUox{font-size:12px;font-weight:bold;line-height:1.17}.playkit-size-md .contrib_banner__text___1yzsx{font-size:15px;line-height:1.27}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/banner/_banner.scss"],names:[],mappings:"AAAA,2CACE,YAAa,CACb,cAAe,CACf,WAAY,CACZ,uBAAwB,CACxB,eAAgB,CACjB,uCAGC,2BAA4B,CAC7B,uCAGC,WAAY,CACZ,UAAW,CACZ,qCAGC,iBAAkB,CAClB,WAAY,CACZ,UAAW,CACX,uCAAwC,CACxC,iBAAkB,CAClB,uBAAwB,CACzB,mCAGC,iBAAkB,CAClB,UAAW,CACX,WAAY,CACZ,qBAAsB,CACtB,oBAAqB,CACrB,wDAAwD,CACxD,2BAA4B,CAC5B,uBAAwB,CACzB,oCAGC,WAAY,CACZ,aAAc,CACd,eAAgB,CACjB,+BAGC,WAAY,CACZ,cAAe,CACf,kBAAmB,CACnB,iBAAkB,CAClB,mBAAoB,CACpB,aAAc,CACd,qBAAsB,CACtB,aAAc,CACf,8BAGC,WAAY,CACZ,cAAe,CACf,kBAAmB,CACnB,iBAAkB,CAClB,mBAAoB,CACpB,gBAAiB,CACjB,qBAAsB,CACtB,aAAc,CACd,kBAAmB,CACnB,eAAgB,CAChB,sBAAuB,CACvB,uBAAwB,CACzB,wDAMO,sBACF,CALN,wDAOQ,UAAW,CAPnB,sDAUQ,WAAY,CACZ,UAAW,CAXnB,oDAcQ,UAAW,CACX,WAAY,CACZ,qBAAsB,CACtB,oBAAqB,CACrB,wDAAwD,CAlBhE,qDAqBQ,aAAc,CArBtB,gDAwBQ,cAAe,CACf,gBAAiB,CACjB,gBAAiB,CA1BzB,+CA6BQ,cAAe,CACf,gBAAiB",file:"_banner.scss",sourcesContent:[".defaultBannerRoot {\n display: flex;\n max-width: 100%;\n height: 100%;\n transition: all .5s ease;\n text-align: left;\n}\n\n.bannerWrapper {\n padding: 18px 17px 17px 16px;\n}\n\n.iconContainer {\n height: 100%;\n width: 64px;\n}\n\n.iconWrapper {\n position: relative;\n height: 48px;\n width: 48px;\n background-color: rgba(255,255,255,0.14);\n border-radius: 50%;\n transition: all .5s ease;\n}\n\n.iconImage {\n position: absolute;\n width: 32px;\n height: 32px;\n left: calc(50% - 16px);\n top: calc(50% - 16px);\n background-image: url('./assets/someone_asks_large.svg');\n background-repeat: no-repeat;\n transition: all .5s ease;\n}\n\n.bannerBody {\n height: 100%;\n flex: 1 1 auto;\n overflow: hidden;\n}\n\n.title {\n opacity: 0.9;\n font-size: 14px;\n font-weight: normal;\n font-style: normal;\n font-stretch: normal;\n line-height: 1;\n letter-spacing: normal;\n color: #ebebeb;\n}\n\n.text {\n opacity: 0.9;\n font-size: 24px;\n font-weight: normal;\n font-style: normal;\n font-stretch: normal;\n line-height: 1.21;\n letter-spacing: normal;\n color: #ffffff;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: all .5s ease;\n}\n\n:global {\n .playkit-size-md {\n :local {\n .bannerWrapper {\n padding: 14px 16px 14px\n }\n .iconContainer {\n width: 44px;\n }\n .iconWrapper {\n height: 32px;\n width: 32px;\n }\n .iconImage {\n width: 20px;\n height: 20px;\n left: calc(50% - 10px);\n top: calc(50% - 10px);\n background-image: url('./assets/someone_asks_small.svg');\n }\n .bannerBody {\n flex: 1 1 auto;\n }\n .title {\n font-size: 12px;\n font-weight: bold;\n line-height: 1.17;\n }\n .text {\n font-size: 15px;\n line-height: 1.27;\n }\n }\n }\n}\n"]}]),p.locals={defaultBannerRoot:"contrib_banner__defaultBannerRoot___3Mjsx",bannerWrapper:"contrib_banner__bannerWrapper___10Aav",iconContainer:"contrib_banner__iconContainer___11URF",iconWrapper:"contrib_banner__iconWrapper___2GmiQ",iconImage:"contrib_banner__iconImage___34fSF",bannerBody:"contrib_banner__bannerBody___3co4C",title:"contrib_banner__title___3cUox",text:"contrib_banner__text___1yzsx"},e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(44);Object.defineProperty(e,"BannerContainer",{enumerable:!0,get:function(){return r.BannerContainer}})},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.BannerContainer=void 0;var i=n(0),a=n(2),s=n(45),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._logger=a.getContribLogger({module:"contrib-ui",class:"BannerContainer"}),e}return o(e,t),e.prototype.componentDidMount=function(){this._logger.info("mount component",{method:"componentDidMount"})},e.prototype.componentWillUnmount=function(){this._logger.info("unmount component",{method:"componentWillUnmount"})},e.prototype.render=function(t){this._logger.trace("render component",{method:"render"});var e=this.props.theme,n=e.backgroundColor,r=e.blur;return i.h("div",{className:s.bannerContainerRoot},i.h("div",{style:"\n background-color:"+n+"; \n backdrop-filter: blur("+r+");\n ",className:s.bannerContainer},i.h("button",{className:s.closeButton,onClick:t.onClose}),this.props.children))},e}(i.Component);e.BannerContainer=c},function(t,e,n){var r=n(3),o=n(46);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r),i=n(5),a=n.n(i),s=n(33),c=n.n(s),u=n(34),l=n.n(u),p=o()(!0),f=a()(c.a),h=a()(l.a);p.push([t.i,".contrib_banner-container__bannerContainerRoot___3riMs{position:absolute;max-width:100%;min-width:270px;padding:0 16px 8px;height:88px;bottom:0;left:0;transition:all .5s ease}.contrib_banner-container__bannerContainer___gn6bT{position:relative;width:100%;height:100%;border-radius:4px;transition:all .5s ease}.contrib_banner-container__closeButton___2PBES{position:absolute;background-color:transparent;padding:0;border:none;top:0;right:0;width:32px;height:32px;background-image:url("+f+");background-repeat:no-repeat}.contrib_banner-container__closeButton___2PBES:hover,.contrib_banner-container__closeButton___2PBES:active{cursor:pointer}.playkit-size-md .contrib_banner-container__bannerContainerRoot___3riMs{height:68px;min-width:230px}.playkit-size-md .contrib_banner-container__closeButton___2PBES{top:8px;right:8px;width:10px;height:10px;background-image:url("+h+")}.playkit-size-sm .contrib_banner-container__bannerContainerRoot___3riMs,.playkit-size-xs .contrib_banner-container__bannerContainerRoot___3riMs,.playkit-size-ty .contrib_banner-container__bannerContainerRoot___3riMs{display:none;width:0;height:0}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/banner-container/_banner-container.scss"],names:[],mappings:"AAAA,uDACE,iBAAkB,CAClB,cAAe,CACf,eAAgB,CAChB,kBAAmB,CACnB,WAAY,CACZ,QAAS,CACT,MAAO,CACP,uBAAwB,CACzB,mDAGC,iBAAkB,CAClB,UAAW,CACX,WAAY,CACZ,iBAAkB,CAClB,uBAAwB,CACzB,+CAGC,iBAAkB,CAClB,4BAA6B,CAC7B,SAAU,CACV,WAAY,CACZ,KAAM,CACN,OAAQ,CACR,UAAW,CACX,WAAY,CACZ,wDAAiD,CACjD,2BAA4B,CAC7B,2GAGC,cAAe,CAChB,wEAMO,WAAY,CACZ,eAAgB,CALxB,gEAQQ,OAAQ,CACR,SAAU,CACV,UAAW,CACX,WAAY,CACZ,wDAAiD,CAClD,wNAQD,YAAa,CACb,OAAQ,CACR,QAAS",file:"_banner-container.scss",sourcesContent:[".bannerContainerRoot {\n position: absolute;\n max-width: 100%;\n min-width: 270px;\n padding: 0 16px 8px;\n height: 88px;\n bottom: 0;\n left: 0;\n transition: all .5s ease;\n}\n\n.bannerContainer {\n position: relative;\n width: 100%;\n height: 100%;\n border-radius: 4px;\n transition: all .5s ease;\n}\n\n.closeButton {\n position: absolute;\n background-color: transparent;\n padding: 0;\n border: none;\n top: 0;\n right: 0;\n width: 32px;\n height: 32px;\n background-image: url('./assets/close_large.svg');\n background-repeat: no-repeat;\n}\n\n.closeButton:hover, .closeButton:active {\n cursor: pointer;\n}\n\n:global {\n .playkit-size-md {\n :local {\n .bannerContainerRoot {\n height: 68px;\n min-width: 230px;\n }\n .closeButton {\n top: 8px;\n right: 8px;\n width: 10px;\n height: 10px;\n background-image: url('./assets/close_small.svg');\n }\n }\n }\n}\n\n:global {\n .playkit-size-sm, .playkit-size-xs, .playkit-size-ty {\n :local .bannerContainerRoot {\n display: none;\n width: 0;\n height: 0;\n }\n }\n}\n"]}]),p.locals={bannerContainerRoot:"contrib_banner-container__bannerContainerRoot___3riMs",bannerContainer:"contrib_banner-container__bannerContainer___gn6bT",closeButton:"contrib_banner-container__closeButton___2PBES"},e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(48);Object.defineProperty(e,"ToastsContainer",{enumerable:!0,get:function(){return r.ToastsContainer}})},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ToastsContainer=void 0;var a=n(0),s=n(49),c=n(52),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){return a.h("div",{className:c.toastsContainer},this.props.toasts.map((function(t){return a.h("div",{className:c.toastRow,key:t.id},a.h(s.Toast,i({},t)))})))},e}(a.Component);e.ToastsContainer=u},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Toast=void 0;var i=n(0),a=n(50),s=n(12),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={isShown:!0},e._onClick=function(t){e.props.onClick(),e._onClose(t)},e._onClose=function(t){t.stopPropagation(),e.setState({isShown:!1}),e.props.onClose(e.props.id)},e}return o(e,t),e.prototype._getToastSeverityClass=function(){switch(this.props.severity){case s.ToastSeverity.Success:return a.successToast;case s.ToastSeverity.Warn:return a.warnToast;case s.ToastSeverity.Error:return a.errorToast;default:return a.infoToast}},e.prototype.render=function(){var t=this.props,e=t.text,n=t.title,r=t.icon;return i.h("div",{className:a.toastWrapper+" "+this._getToastSeverityClass(),onClick:this._onClick},i.h("button",{className:a.closeButton,onClick:this._onClose}),i.h("div",{className:a.title},n),i.h("div",{className:a.toastBody},i.h("div",{className:a.iconContainer},i.h("div",{className:a.iconWrapper},r)),i.h("div",{className:a.text},e)))},e}(i.Component);e.Toast=c},function(t,e,n){var r=n(3),o=n(51);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r),i=n(5),a=n.n(i),s=n(35),c=n.n(s),u=o()(!0),l=a()(c.a);u.push([t.i,".contrib_toast__toastWrapper___QXcJM{position:relative;min-width:120px;max-width:264px;height:100%;border-radius:4px;background-color:#222222;border-left-style:solid;border-left-width:4px;text-align:left}.contrib_toast__infoToast___1HmIt{border-left-color:#01ACCD}.contrib_toast__successToast___3ampp{border-left-color:#009E48}.contrib_toast__warnToast___23lkF{border-left-color:#F9A71B}.contrib_toast__errorToast___3bwna{border-left-color:#E7585D}.contrib_toast__closeButton___ATTAj{position:absolute;background-color:transparent;top:0;right:0;width:16px;height:16px;object-fit:contain;background-repeat:no-repeat;border:none;background-image:url("+l+")}.contrib_toast__closeButton___ATTAj:hover{cursor:pointer}.contrib_toast__title___RMhDh{font-size:12px;font-weight:normal;font-style:normal;font-stretch:normal;line-height:1.17;letter-spacing:normal;color:#cccccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-top:4px;padding-right:16px;padding-left:12px}.contrib_toast__toastBody___2kkj8{position:relative;width:100%;padding:2px 16px 5px 12px}.contrib_toast__iconContainer___37C80{position:relative;height:16px;width:16px;float:left;margin-right:7px}.contrib_toast__iconWrapper___h5_1x{height:16px;width:16px}.contrib_toast__text___2d4Qb{font-size:14px;font-weight:bold;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#cccccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/toast/_toast.scss"],names:[],mappings:"AAAA,qCACE,iBAAkB,CAClB,eAAgB,CAChB,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,wBAAyB,CACzB,uBAAwB,CACxB,qBAAsB,CACtB,eAAgB,CACjB,kCAGC,yBAA0B,CAC3B,qCAGC,yBAA0B,CAC3B,kCAGC,yBAA0B,CAC3B,mCAGC,yBAA0B,CAC3B,oCAGC,iBAAkB,CAClB,4BAA6B,CAC7B,KAAM,CACN,OAAQ,CACR,UAAW,CACX,WAAY,CACZ,kBAAmB,CACnB,2BAA4B,CAC5B,WAAY,CACZ,wDAA2C,CAV7C,0CAaI,cAAe,CAChB,8BAID,cAAe,CACf,kBAAmB,CACnB,iBAAkB,CAClB,mBAAoB,CACpB,gBAAiB,CACjB,qBAAsB,CACtB,aAAc,CACd,kBAAmB,CACnB,eAAgB,CAChB,sBAAuB,CACvB,eAAgB,CAChB,kBAAmB,CACnB,iBAAkB,CACnB,kCAGC,iBAAkB,CAClB,UAAW,CACX,yBAA0B,CAC3B,sCAGC,iBAAkB,CAClB,WAAY,CACZ,UAAW,CACX,UAAW,CACX,gBAAiB,CAClB,oCAGC,WAAY,CACZ,UAAW,CACZ,6BAGC,cAAe,CACf,gBAAiB,CACjB,iBAAkB,CAClB,mBAAoB,CACpB,kBAAmB,CACnB,qBAAsB,CACtB,aAAc,CACd,kBAAmB,CACnB,eAAgB,CAChB,sBAAuB",file:"_toast.scss",sourcesContent:['.toastWrapper {\n position: relative;\n min-width: 120px;\n max-width: 264px;\n height: 100%;\n border-radius: 4px;\n background-color: #222222;\n border-left-style: solid;\n border-left-width: 4px;\n text-align: left;\n}\n\n.infoToast {\n border-left-color: #01ACCD;\n}\n\n.successToast {\n border-left-color: #009E48;\n}\n\n.warnToast {\n border-left-color: #F9A71B;\n}\n\n.errorToast {\n border-left-color: #E7585D;\n}\n\n.closeButton {\n position: absolute;\n background-color: transparent;\n top: 0;\n right: 0;\n width: 16px;\n height: 16px;\n object-fit: contain;\n background-repeat: no-repeat;\n border: none;\n background-image: url("./assets/close.svg");\n\n &:hover {\n cursor: pointer;\n }\n}\n\n.title {\n font-size: 12px;\n font-weight: normal;\n font-style: normal;\n font-stretch: normal;\n line-height: 1.17;\n letter-spacing: normal;\n color: #cccccc;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding-top: 4px;\n padding-right: 16px;\n padding-left: 12px;\n}\n\n.toastBody {\n position: relative;\n width: 100%;\n padding: 2px 16px 5px 12px;\n}\n\n.iconContainer {\n position: relative;\n height: 16px;\n width: 16px;\n float: left;\n margin-right: 7px;\n}\n\n.iconWrapper {\n height: 16px;\n width: 16px;\n}\n\n.text {\n font-size: 14px;\n font-weight: bold;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n color: #cccccc;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n']}]),u.locals={toastWrapper:"contrib_toast__toastWrapper___QXcJM",infoToast:"contrib_toast__infoToast___1HmIt",successToast:"contrib_toast__successToast___3ampp",warnToast:"contrib_toast__warnToast___23lkF",errorToast:"contrib_toast__errorToast___3bwna",closeButton:"contrib_toast__closeButton___ATTAj",title:"contrib_toast__title___RMhDh",toastBody:"contrib_toast__toastBody___2kkj8",iconContainer:"contrib_toast__iconContainer___37C80",iconWrapper:"contrib_toast__iconWrapper___h5_1x",text:"contrib_toast__text___2d4Qb"},e.default=u},function(t,e,n){var r=n(3),o=n(53);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r)()(!0);o.push([t.i,".contrib_toasts-container__toastsContainer___2MBa-{position:absolute;right:0;top:0;padding:8px 16px 0;min-width:120px;max-width:264px;display:flex;flex-direction:column}.contrib_toasts-container__toastRow___2oVhO{height:42px;min-width:120px;max-width:264px;margin-bottom:8px;overflow:hidden;overflow-wrap:break-word;text-overflow:ellipsis;align-self:flex-end}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/toasts-container/_toasts-container.scss"],names:[],mappings:"AAAA,mDACE,iBAAkB,CAClB,OAAQ,CACR,KAAM,CACN,kBAAmB,CACnB,eAAgB,CAChB,eAAgB,CAChB,YAAa,CACb,qBAAsB,CACvB,4CAGC,WAAY,CACZ,eAAgB,CAChB,eAAgB,CAChB,iBAAkB,CAClB,eAAgB,CAChB,wBAAyB,CACzB,sBAAuB,CACvB,mBAAoB",file:"_toasts-container.scss",sourcesContent:[".toastsContainer {\n position: absolute;\n right: 0;\n top: 0;\n padding: 8px 16px 0;\n min-width: 120px;\n max-width: 264px;\n display: flex;\n flex-direction: column;\n}\n\n.toastRow {\n height: 42px;\n min-width: 120px;\n max-width: 264px;\n margin-bottom: 8px;\n overflow: hidden;\n overflow-wrap: break-word;\n text-overflow: ellipsis;\n align-self: flex-end;\n}\n"]}]),o.locals={toastsContainer:"contrib_toasts-container__toastsContainer___2MBa-",toastRow:"contrib_toasts-container__toastRow___2oVhO"},e.default=o},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.ManagedComponent=void 0;var a=n(0),s=n(2),c=n(55),u=KalturaPlayer.ui.redux.connect,l=function(t){return{playerSize:t.shell.playerSize}},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._logger=null,e}return o(e,t),e.prototype.update=function(){this.setState((function(t){return{toggler:!t.toggler}}))},e.prototype.shouldComponentUpdate=function(t){var e=this.props,n=e.updateOnPlayerSizeChanged,r=e.playerSize;return n&&t.playerSize!==r||t.playerSize===r},e.prototype.componentDidMount=function(){this._logger=s.getContribLogger({module:"contrib-ui",class:"ManagedComponent",context:this.props.label}),this._logger.info("mount component",{method:"componentDidMount"}),this.setState({toggler:!1})},e.prototype.render=function(){var t=this.props,e=t.fillContainer,n=t.isShown,r=t.playerSize;return n()?(this._logger&&this._logger.trace("render component",{method:"render"}),a.h("div",{"data-contrib-item":this.props.label,className:[""+(e?c.fillContainer:""),c.inlineContainer].join(" ")},this.props.renderChildren(r))):null},e.defaultProps={fillContainer:!1},i([u(l,null,null,{forwardRef:!0})],e)}(a.Component);e.ManagedComponent=p},function(t,e,n){var r=n(3),o=n(56);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r)()(!0);o.push([t.i,".contrib_managed-component__fill-container___27fdI{width:100%;height:100%}.contrib_managed-component__inline-container___2VQc4{display:inline-block}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/managed-component/_managed-component.scss"],names:[],mappings:"AAAA,mDACE,UAAW,CACX,WAAY,CACb,qDAGC,oBAAqB",file:"_managed-component.scss",sourcesContent:[".fill-container {\n width: 100%;\n height: 100%;\n}\n\n.inline-container {\n display: inline-block;\n}\n"]}]),o.locals={"fill-container":"contrib_managed-component__fill-container___27fdI",fillContainer:"contrib_managed-component__fill-container___27fdI","inline-container":"contrib_managed-component__inline-container___2VQc4",inlineContainer:"contrib_managed-component__inline-container___2VQc4"},e.default=o},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingManager=void 0;var i=n(13),a=n(9),s=n(14),c=n(0),u=n(11),l=n(7),p=n(8),f=n(6),h={presetAreasMapping:{Playback:{VideoArea:"VideoArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea"},Live:{VideoArea:"VideoArea",PresetArea:"PresetArea",InteractiveArea:"InteractiveArea"}}},d=["VideoArea","PresetArea","InteractiveArea"],g=function(){function t(t){var e,n,r=this;this._options=t,this._items=((e={})[a.FloatingPositions.VideoArea]=[],e[a.FloatingPositions.InteractiveArea]=[],e[a.FloatingPositions.PresetArea]=[],e),this._componentRef=((n={})[a.FloatingPositions.InteractiveArea]=null,n[a.FloatingPositions.VideoArea]=null,n[a.FloatingPositions.PresetArea]=null,n),this._cache={canvas:{playerSize:{width:0,height:0},videoSize:{width:0,height:0}}},this._renderItems=function(t){var e=r._getRendererProps({});return r._items[t].map((function(t){return t.renderFloatingChild(e)}))},this._renderChild=function(t){return c.h(l.ManagedComponent,{label:"floating-manager",renderChildren:function(){return r._renderItems(t)},isShown:function(){return!0},ref:function(e){return r._componentRef[t]=e}})},this._floatingConfig=f.getContribConfig(this._options.kalturaPlayer,"ui.floating",h,{explicitMerge:["presetAreasMapping"]});var o=p.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._floatingConfig.presetAreasMapping,acceptableTypes:d});Object.keys(o).forEach((function(t){r._options.presetManager.add({label:"floating-manager",presetAreas:o[t],renderChild:function(){return r._renderChild(a.FloatingPositions[t])}})})),this._addPlayerBindings(),this._updateCachedCanvas()}return t.prototype.add=function(t){var e=this._options.presetManager,n=r(r({presetManager:e},this._options),{data:t}),o=new i.FloatingItem(n);return this._items[t.position].push(o),o},t.prototype.remove=function(t){var e=this._items[t.data.position],n=e.indexOf(t);n>-1?(e[n].destroy(),e.splice(n,1)):console.warn("couldn't remove "+t+" since it wasn't found")},t.prototype.reset=function(){o(this._items.VideoArea,this._items.InteractiveArea,this._items.PresetArea).forEach((function(t){try{t.destroy()}catch(t){console.warn(t)}})),this._items.VideoArea=[],this._items.PresetArea=[],this._items.InteractiveArea=[]},t.prototype._getRendererProps=function(t){var e=this._options.kalturaPlayer;return{currentTime:void 0!==t.currentTime?t.currentTime:1e3*e.currentTime,canvas:this._cache.canvas}},t.prototype._updateCachedCanvas=function(){this._cache.canvas={playerSize:u.getPlayerSize(this._options.kalturaPlayer),videoSize:u.getVideoSize(this._options.kalturaPlayer)}},t.prototype._updateComponents=function(){this._componentRef.InteractiveArea&&this._componentRef.InteractiveArea.update(),this._componentRef.PresetArea&&this._componentRef.PresetArea.update(),this._componentRef.VideoArea&&this._componentRef.VideoArea.update()},t.prototype._addPlayerBindings=function(){var t=this,e=this._options.kalturaPlayer;e.addEventListener(e.Event.TIME_UPDATE,(function(){t._updateComponents()})),e.addEventListener(e.Event.MEDIA_LOADED,(function(){t._updateCachedCanvas(),t._updateComponents()})),e.addEventListener(e.Event.LOADED_DATA,(function(){t._updateCachedCanvas(),t._updateComponents()})),this._options.presetManager.on(s.PresetManagerEventTypes.VideoResizeEvent,(function(){t._updateCachedCanvas(),t._updateComponents()})),this._options.presetManager.on(s.PresetManagerEventTypes.PresetResizeEvent,(function(){t._updateCachedCanvas(),t._updateComponents()}))},t}();e.FloatingManager=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PresetItem=void 0;var r=n(0),o=n(2),i=n(15),a=n(59),s=function(){function t(t){var e=this;this._render=function(){if(e._options.data.isolateComponent){var t=e._options.data,n=t.label,o=t.fillContainer;return r.h(a.InjectedComponent,{label:n,fillContainer:o||!1,onCreate:e._onCreate,onDestroy:e._onDestroy})}return e._options.data.renderChild()},this._onDestroy=function(t){t.parent?(e._logger.info("remove injected contrib preset component",{method:"_onDestroy"}),r.render(null,t.parent)):e._logger.warn("missing parent argument, aborting element removal",{method:"_onDestroy"})},this._onCreate=function(t){try{if(!t.parent)return void e._logger.warn("missing parent argument, aborting element creation",{method:"_create"});var n=e._options.data.renderChild();if(!n)return void e._logger.warn("child renderer result is invalid, expected element got undefined|null",{method:"_create"});e._logger.info("inject contrib preset component",{method:"_create"}),r.render(n,t.parent)}catch(t){e._logger.error("failed to create injected component.",{method:"_onCreate"})}},this._options=t,this._logger=o.getContribLogger({module:"contrib-ui",class:"PresetItem",context:t.data.label}),this._logger.debug("executed",{method:"constructor",data:{options:t}}),this._logger.info("created item "+t.data.label,{method:"constructor"})}return Object.defineProperty(t.prototype,"playerConfig",{get:function(){var t=[];for(var e in this._options.data.presetAreas){var n=this._options.data.presetAreas[e],r=this._options.data.relativeTo;if(n){var o={label:this._options.data.label,presets:[e],container:n,get:this._render};if(r)switch(r.type){case i.RelativeToTypes.After:o.afterComponent=r.name;break;case i.RelativeToTypes.Before:o.beforeComponent=r.name;break;case i.RelativeToTypes.Replace:o.replaceComponent=r.name}t.push(o)}else this._logger.warn("Cannot register component to core player using the preset manager for preset "+e+". preset area name is missing. Ignoring this request.",{method:"playerConfig"})}return t},enumerable:!1,configurable:!0}),t}();e.PresetItem=s},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.InjectedComponent=void 0;var i=n(0),a=n(60),s=n(2).getContribLogger({module:"contrib-ui",class:"InjectedComponent"}),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._root=null,e}return o(e,t),e.prototype.shouldComponentUpdate=function(){return!1},e.prototype.componentDidMount=function(){var t=this.props,e=t.onCreate,n=t.label;if(e){var r=this._root;r?(s.debug("inject component",{data:{label:n}}),e({parent:r})):s.warn("Cannot inject item, ailed to create parent component",{data:{label:n}})}else s.warn("Cannot inject item, missing 'onCreate' method",{data:{label:n}})},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.onDestroy,n=t.label,r=this._root;r&&e&&(e({parent:r}),s.debug("destroy injected component",{data:{label:n}}))},e.prototype.render=function(){var t=this,e=this.props,n=e.label,r=e.fillContainer?a.fillContainer:"";return i.h("div",{"data-contrib-injected":n,className:r,ref:function(e){return t._root=e}})},e}(i.Component);e.InjectedComponent=c},function(t,e,n){var r=n(3),o=n(61);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r)()(!0);o.push([t.i,".contribinjected-component__fill-container___2LHoe{width:100%;height:100%;overflow:hidden}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/injected-component/injected-component.scss"],names:[],mappings:"AAAA,mDACE,UAAW,CACX,WAAY,CACZ,eAAgB",file:"injected-component.scss",sourcesContent:[".fill-container {\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n"]}]),o.locals={"fill-container":"contribinjected-component__fill-container___2LHoe",fillContainer:"contribinjected-component__fill-container___2LHoe"},e.default=o},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(63),e)},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.UIPlayerAdapter=void 0;var a=n(0),s=n(2),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._logger=null,e}return o(e,t),e.prototype.componentDidMount=function(){this._logger=s.getContribLogger({module:"contrib-ui",class:"UIPlayerAdapter"}),this._logger.info("mount component",{method:"componentDidMount"}),this.props.onMount(this.props.player)},e.prototype.componentWillUnmount=function(){this.props.onUnmount(this.props.player),this._logger&&this._logger.info("unmount component",{method:"componentWillUnmount"})},e.prototype.render=function(t){return null},e.defaultProps={player:null},i([KalturaPlayer.ui.components.withPlayer],e)}(a.Component);e.UIPlayerAdapter=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.UpperBarManager=void 0;var o=n(0),i=n(16),a=n(66),s=n(2),c=n(7),u=n(8),l=n(6),p=n(70),f={Navigation:10,"Q&A":20,Moderation:30,Transcript:40,"Download transcript":50,Share:70,Playlist:80,Info:90,Related:100,Quiz:110,Layout:120,"Source Selector":140,Polls:150},h=KalturaPlayer.ui.components.PLAYER_SIZE,d={presetAreasMapping:{Playback:{TopBarRightControls:"TopBarRightControls"},Live:{TopBarRightControls:"TopBarRightControls"}}},g=["TopBarRightControls"],_=function(){function t(t){var e=this;this._items=[],this._renderChild=function(){return o.h(c.ManagedComponent,{label:"upper-bar-manager",renderChildren:function(t){return e._renderItems(t)},isShown:function(){return!0},updateOnPlayerSizeChanged:!0,ref:function(t){return e._rootElement=t}})},this._renderItems=function(t){var n=e._prepareUpperBarItems(t),r=n.upperBarItems,s=n.iconMenuItems;if(r.length&&s.length){var c={kalturaPlayer:e._options.kalturaPlayer,data:{label:"Icon-menu",onClick:function(){},renderItem:function(){return o.h(p.IconsMenu,{content:s})}}},u=new i.UpperBarItem(c);r.push(u)}var l=r.map((function(t){return t.renderChild({})}));return o.h(a.UpperBar,null,l)},this._options=t,this._upperBarConfig=l.getContribConfig(this._options.kalturaPlayer,"ui.upperBar",d,{explicitMerge:["presetAreasMapping"]}),this._iconsMenuConfig=l.getContribConfig(this._options.kalturaPlayer,"ui.iconsMenu",{iconsOrder:{}});var n=u.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._upperBarConfig.presetAreasMapping,acceptableTypes:g});this._options.presetManager.add({label:"upper-bar-manager",presetAreas:n.TopBarRightControls,renderChild:this._renderChild})}return t.prototype.add=function(t){var e={kalturaPlayer:this._options.kalturaPlayer,data:t,order:s.ObjectUtils.get(this._iconsMenuConfig,"iconsOrder."+t.label,f[t.label]||1/0)},n=new i.UpperBarItem(e);return this._items.push(n),this._items=s.ArrayUtils.sortByKey(this._items,"_options.order").reverse(),this.update(),n},t.prototype.remove=function(t){var e=s.ArrayUtils.findIndex(this._items,(function(e){return e===t}));-1!==e&&(this._items.splice(e,1),this.update())},t.prototype.update=function(){this._rootElement&&this._rootElement.update()},t.prototype._prepareUpperBarItems=function(t){var e=r(this._items),n=[];switch(t){case h.TINY:n=[];break;case h.EXTRA_SMALL:case h.SMALL:n=e.splice(0,2);break;default:n=e.splice(0,4)}return{upperBarItems:n,iconMenuItems:e}},t.prototype.reset=function(){var t=this;this._items.forEach((function(e){t.remove(e)}))},t}();e.UpperBarManager=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(67);Object.defineProperty(e,"UpperBar",{enumerable:!0,get:function(){return r.UpperBar}})},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.UpperBar=void 0;var i=n(0),a=n(68),s=n(2),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._logger=null,e}return o(e,t),e.prototype.componentDidMount=function(){this._logger=s.getContribLogger({module:"contrib-ui",class:"UpperBar"}),this._logger.info("mount component",{method:"componentDidMount"})},e.prototype.componentWillUnmount=function(){this._logger&&this._logger.info("unmount component",{method:"componentWillUnmount"})},e.prototype.render=function(t){return this._logger&&this._logger.trace("render component",{method:"render"}),i.h("div",{className:a.root},this.props.children)},e}(i.Component);e.UpperBar=c},function(t,e,n){var r=n(3),o=n(69);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r)()(!0);o.push([t.i,".contrib_upper-bar__root___1T--i{display:inline-flex;flex-direction:row}.contrib_upper-bar__root___1T--i .upper-bar-icon{cursor:pointer}.contrib_upper-bar__root___1T--i>*{margin-left:10px}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/upper-bar/_upper-bar.scss"],names:[],mappings:"AAAA,iCAKE,mBAAoB,CACpB,kBAAmB,CANrB,iDAEI,cAAe,CAFnB,mCASI,gBAAiB",file:"_upper-bar.scss",sourcesContent:[".root {\n :global(.upper-bar-icon) {\n cursor: pointer;\n }\n\n display: inline-flex;\n flex-direction: row;\n\n &>* {\n margin-left: 10px; // TODO sakal improve\n }\n}\n"]}]),o.locals={root:"contrib_upper-bar__root___1T--i"},e.default=o},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(71),e)},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.IconsMenu=void 0;var i=n(0),a=n(72),s=n(2),c=n(17),u=n(77),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._logger=null,e._onKeyDown=function(t,e){switch(t.keyCode!==c.KeyboardKeys.Enter&&t.keyCode!==c.KeyboardKeys.Esc&&t.stopPropagation(),t.keyCode){case c.KeyboardKeys.Enter:e()}},e._getPopoverMenuOptions=function(){return e.props.content.map((function(t){var n=t.renderChild,r=t._options.data,o=r.label,s=r.onClick;return{customRenderer:function(){return i.h("div",{tabIndex:1,role:"button",onKeyDown:function(t){return e._onKeyDown(t,s)},onClick:s,className:a.iconMenuItem},i.h("div",{"aria-hidden":"true",onClick:function(t){t.stopPropagation()}},n({})),i.h("span",{className:a.itemLabel},o))}}}))},e._popoverContent=function(){return i.h(u.PopoverMenu,{options:e._getPopoverMenuOptions()})},e}return o(e,t),e.prototype.componentDidMount=function(){this._logger=s.getContribLogger({module:"contrib-ui",class:"IconMenu"}),this._logger.info("mount component",{method:"componentDidMount"})},e.prototype.componentWillUnmount=function(){this._logger&&this._logger.info("unmount component",{method:"componentWillUnmount"})},e.prototype.render=function(t){return this._logger&&this._logger.trace("render component",{method:"render"}),i.h(c.Popover,{className:"icons-menu",verticalPosition:c.PopoverVerticalPositions.Bottom,horizontalPosition:c.PopoverHorizontalPositions.Left,content:this._popoverContent()},i.h("button",{className:a.iconMenu,tabIndex:1}))},e}(i.Component);e.IconsMenu=l},function(t,e,n){var r=n(3),o=n(73);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r),i=n(5),a=n.n(i),s=n(36),c=n.n(s),u=o()(!0),l=a()(c.a);u.push([t.i,".contrib_icons-menu__icon-menu___186vH{width:32px;height:32px;opacity:0.8;border:none;padding:0;cursor:pointer;background-color:inherit;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url("+l+")}.contrib_icons-menu__icon-menu___186vH:hover,.contrib_icons-menu__icon-menu___186vH:focus{opacity:1}.contrib_icons-menu__icon-menu-item___t1NfQ{opacity:0.8;display:flex;align-items:center;height:36px;margin-bottom:1px;padding:0 8px;min-width:228px;border-radius:4px;background-color:#222222}.contrib_icons-menu__icon-menu-item___t1NfQ:focus{opacity:1;background-color:#333333}.contrib_icons-menu__icon-menu-item___t1NfQ:hover{opacity:1;background-color:#666666}.contrib_icons-menu__icon-menu-item___t1NfQ .contrib_icons-menu__item-label___1VK4q{margin-left:2px;font-size:15px}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/icons-menu/_icons-menu.scss"],names:[],mappings:"AAAA,uCACI,UAAW,CACX,WAAY,CACZ,WAAY,CACZ,WAAY,CACZ,SAAU,CACV,cAAe,CACf,wBAAyB,CACzB,2BAA4B,CAC5B,0BAA2B,CAC3B,uBAAwB,CACxB,wDAA0C,CAX9C,0FAcM,SAAU,CACX,4CAIH,WAAY,CASZ,YAAa,CACb,kBAAmB,CACnB,WAAY,CACZ,iBAAkB,CAClB,aAAc,CACd,eAAgB,CAChB,iBAAkB,CAClB,wBAAyB,CAjB3B,kDAGI,SAAU,CACV,wBAAyB,CAJ7B,kDAOI,SAAU,CACV,wBAAyB,CAR7B,oFAmBI,eAAgB,CAChB,cAAe",file:"_icons-menu.scss",sourcesContent:[".icon-menu {\n width: 32px;\n height: 32px;\n opacity: 0.8;\n border: none;\n padding: 0;\n cursor: pointer;\n background-color: inherit;\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n background-image: url('./assets/more.svg');\n &:hover,\n &:focus {\n opacity: 1;\n }\n}\n\n.icon-menu-item {\n opacity: 0.8;\n &:focus {\n opacity: 1;\n background-color: #333333;\n }\n &:hover {\n opacity: 1;\n background-color: #666666;\n }\n display: flex;\n align-items: center;\n height: 36px;\n margin-bottom: 1px;\n padding: 0 8px;\n min-width: 228px;\n border-radius: 4px;\n background-color: #222222;\n .item-label {\n margin-left: 2px;\n font-size: 15px;\n }\n}\n"]}]),u.locals={"icon-menu":"contrib_icons-menu__icon-menu___186vH",iconMenu:"contrib_icons-menu__icon-menu___186vH","icon-menu-item":"contrib_icons-menu__icon-menu-item___t1NfQ",iconMenuItem:"contrib_icons-menu__icon-menu-item___t1NfQ","item-label":"contrib_icons-menu__item-label___1VK4q",itemLabel:"contrib_icons-menu__item-label___1VK4q"},e.default=u},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Popover=e.KeyboardKeys=e.PopoverTriggerMode=e.PopoverHorizontalPositions=e.PopoverVerticalPositions=void 0;var a,s,c,u,l=n(0),p=n(75);!function(t){t.Top="top",t.Bottom="bottom"}(a=e.PopoverVerticalPositions||(e.PopoverVerticalPositions={})),function(t){t.Left="left",t.Right="right"}(s=e.PopoverHorizontalPositions||(e.PopoverHorizontalPositions={})),function(t){t.Click="click",t.Hover="hover"}(c=e.PopoverTriggerMode||(e.PopoverTriggerMode={})),function(t){t[t.Esc=27]="Esc",t[t.Enter=13]="Enter",t[t.Tab=9]="Tab",t[t.Space=32]="Space",t[t.End=35]="End",t[t.Home=36]="Home"}(u=e.KeyboardKeys||(e.KeyboardKeys={}));var f={verticalPosition:a.Top,horizontalPosition:s.Left,triggerMode:c.Click,className:"popover",closeOnEsc:!0,closeOnClick:!0},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._closeTimeout=null,e._controlElement=null,e.state={open:!1},e._clearTimeout=function(){clearTimeout(e._closeTimeout),e._closeTimeout=null},e._handleMouseEvent=function(t){!e._controlElement.contains(t.target)&&e.props.closeOnClick&&e._closePopover()},e._handleKeyboardEvent=function(t){e._controlElement.contains(t.target)&&t.keyCode===u.Enter||(e.props.closeOnEsc&&t.keyCode===u.Esc||t.keyCode===u.Enter)&&e._closePopover()},e._openPopover=function(){var t=e.props.onOpen;e._clearTimeout(),e.setState({open:!0},(function(){e._addListeners(),t&&t()}))},e._closePopover=function(){var t=e.props.onClose;e._clearTimeout(),e.setState({open:!1},(function(){e._removeListeners(),t&&t()}))},e._togglePopover=function(t){e.state.open?e._closePopover():e._openPopover()},e._handleMouseEnter=function(){e.state.open||e._openPopover()},e._handleMouseLeave=function(){e._closeTimeout=setTimeout(e._closePopover,500)},e._handleHoverOnPopover=function(){e.state.open&&e._closeTimeout?e._clearTimeout():e._closePopover()},e._addListeners=function(){document.addEventListener("click",e._handleMouseEvent),document.addEventListener("keydown",e._handleKeyboardEvent)},e._removeListeners=function(){document.removeEventListener("click",e._handleMouseEvent),document.removeEventListener("keydown",e._handleKeyboardEvent)},e._getHoverEvents=function(){return e.props.triggerMode===c.Hover?{targetEvents:{onMouseEnter:e._handleMouseEnter,onMouseLeave:e._handleMouseLeave},popoverEvents:{onMouseEnter:e._handleHoverOnPopover,onMouseLeave:e._handleHoverOnPopover}}:{targetEvents:{onClick:e._togglePopover},popoverEvents:{}}},e}return o(e,t),e.prototype.componentWillUnmount=function(){this._removeListeners()},e.prototype.render=function(t){var e=this;if(!t.content||!t.children)return null;var n=this._getHoverEvents(),r=n.targetEvents,o=n.popoverEvents;return l.h("div",{className:p.popoverContainer},l.h("div",i({className:"popover-anchor-container",ref:function(t){e._controlElement=t}},r),t.children),this.state.open&&l.h("div",i({"aria-expanded":"true",className:[t.className,p.popoverComponent,p[t.verticalPosition],p[t.horizontalPosition]].join(" ")},o),t.content))},e.defaultProps=i({},f),e}(l.Component);e.Popover=h},function(t,e,n){var r=n(3),o=n(76);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r)()(!0);o.push([t.i,".contribpopover__popover-container___35CJw{position:relative}.contribpopover__popover-container___35CJw .contribpopover__popover-component___BuiEX{background-color:#222222;border-radius:4px;position:absolute;right:0px;font-size:15px;display:block}.contribpopover__popover-container___35CJw .contribpopover__popover-component___BuiEX.contribpopover__visible___21aRy{visibility:visible;opacity:1;z-index:10}.contribpopover__popover-container___35CJw .contribpopover__popover-component___BuiEX.contribpopover__top___SCpk8{bottom:100%;margin-bottom:6px}.contribpopover__popover-container___35CJw .contribpopover__popover-component___BuiEX.contribpopover__bottom___1gFrU{top:100%;margin-top:6px}.contribpopover__popover-container___35CJw .contribpopover__popover-component___BuiEX.contribpopover__right___zCEB3{left:0px}.contribpopover__popover-container___35CJw .contribpopover__popover-component___BuiEX.contribpopover__left___2H-Oh{right:0px}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/popover/popover.scss"],names:[],mappings:"AAAA,2CACI,iBAAkB,CADtB,sFAGQ,wBAAyB,CACzB,iBAAkB,CAClB,iBAAkB,CAClB,SAAU,CACV,cAAe,CACf,aAAc,CARtB,sHAUY,kBAAmB,CACnB,SAAU,CACV,UAAW,CAZvB,kHAeY,WAAY,CACZ,iBAAkB,CAhB9B,qHAmBY,QAAS,CACT,cAAe,CApB3B,oHAuBY,QAAS,CAvBrB,mHA0BY,SAAU",file:"popover.scss",sourcesContent:[".popover-container {\n position: relative;\n .popover-component {\n background-color: #222222;\n border-radius: 4px;\n position: absolute;\n right: 0px;\n font-size: 15px;\n display: block;\n &.visible {\n visibility: visible;\n opacity: 1;\n z-index: 10;\n }\n &.top {\n bottom: 100%;\n margin-bottom: 6px;\n }\n &.bottom {\n top: 100%;\n margin-top: 6px;\n }\n &.right {\n left: 0px;\n }\n &.left {\n right: 0px;\n }\n }\n}\n"]}]),o.locals={"popover-container":"contribpopover__popover-container___35CJw",popoverContainer:"contribpopover__popover-container___35CJw","popover-component":"contribpopover__popover-component___BuiEX",popoverComponent:"contribpopover__popover-component___BuiEX",visible:"contribpopover__visible___21aRy",top:"contribpopover__top___SCpk8",bottom:"contribpopover__bottom___1gFrU",right:"contribpopover__right___zCEB3",left:"contribpopover__left___2H-Oh"},e.default=o},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.PopoverMenu=void 0;var i=n(0),a=n(78),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t){return i.h("div",{className:a.popoverMenu},t.options.map((function(e){return e.customRenderer?e.customRenderer(e):t.itemRenderer?t.itemRenderer(e):i.h("div",{className:"popover-menu-item",onClick:function(){return e.onMenuChosen(e)}},e.label)})))},e}(i.Component);e.PopoverMenu=s},function(t,e,n){var r=n(3),o=n(79);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r)()(!0);o.push([t.i,".contribpopover-menu__popover-menu___3upQr{padding-top:6px;padding-bottom:6px}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/popover/popover-menu.scss"],names:[],mappings:"AAAA,2CACI,eAAgB,CAChB,kBAAmB",file:"popover-menu.scss",sourcesContent:[".popover-menu {\n padding-top: 6px;\n padding-bottom: 6px;\n}\n"]}]),o.locals={"popover-menu":"contribpopover-menu__popover-menu___3upQr",popoverMenu:"contribpopover-menu__popover-menu___3upQr"},e.default=o},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.KitchenSinkContainer=void 0;var i=n(0),a=n(81),s=n(2),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._logger=null,e}return o(e,t),e.prototype.componentDidMount=function(){this._logger=s.getContribLogger({module:"contrib-ui",class:"KitchenSinkContainer"}),this._logger.info("mount component",{method:"componentDidMount"})},e.prototype.componentWillUnmount=function(){this._logger&&this._logger.info("unmount component",{method:"componentWillUnmount"})},e.prototype.render=function(t){return this._logger&&this._logger.trace("render component",{method:"render"}),i.h("div",{className:a.root},this.props.children)},e.defaultProps={updateSidePanelMode:function(){}},e}(i.Component);e.KitchenSinkContainer=c},function(t,e,n){var r=n(3),o=n(82);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r)()(!0);o.push([t.i,".contrib_kitchen-sink-container__root___3bxzN{width:100%;height:100%}.playkit-side-panel-content>div{width:100%;height:100%}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/kitchen-sink-container/_kitchen-sink-container.scss"],names:[],mappings:"AAAA,8CACE,UAAW,CACX,WAAY,CACb,gCAKG,UAAW,CACX,WAAY",file:"_kitchen-sink-container.scss",sourcesContent:[".root {\n width: 100%;\n height: 100%;\n}\n\n/* TODO should fix in player and remove */\n:global(.playkit-side-panel-content) {\n & > div {\n width: 100%;\n height: 100%;\n }\n}\n"]}]),o.locals={root:"contrib_kitchen-sink-container__root___3bxzN"},e.default=o},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(84),e)},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.KitchenSinkAdapter=e.SidePanelModes=e.SidePanelPositions=void 0;var a,s,c=n(0),u=n(2),l=n(10);!function(t){t.Left="left",t.Top="top",t.Bottom="bottom",t.Right="right"}(a=e.SidePanelPositions||(e.SidePanelPositions={})),function(t){t.AlongSideTheVideo="alongside",t.Hidden="hidden",t.OverTheVideo="over"}(s=e.SidePanelModes||(e.SidePanelModes={}));var p=function(t){return{sidePanelsModes:t.shell.sidePanelsModes}},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._logger=null,e}return o(e,t),e.prototype.componentDidMount=function(){this._logger=u.getContribLogger({module:"contrib-ui",class:"KitchenSinkAdapter"}),this._logger.info("mount component",{method:"componentDidMount"})},e.prototype.componentWillUnmount=function(){this._logger&&this._logger.info("unmount component",{method:"componentWillUnmount"})},e.prototype.expand=function(t,e){this.props.updateSidePanelMode(this._convertToAdapterPositionEnum(t),this._convertToAdapterModeEnum(e))},e.prototype.getSidePanelMode=function(t){return this.props.sidePanelsModes?this._convertToKitchenSinkModeEnum(this.props.sidePanelsModes[this._convertToAdapterPositionEnum(t)]):l.KitchenSinkExpandModes.Hidden},e.prototype.collapse=function(t){this.props.updateSidePanelMode(this._convertToAdapterPositionEnum(t),s.Hidden)},e.prototype.render=function(t){return null},e.prototype._convertToAdapterPositionEnum=function(t){return t===l.KitchenSinkPositions.Top?a.Top:t===l.KitchenSinkPositions.Bottom?a.Bottom:t===l.KitchenSinkPositions.Right?a.Right:a.Left},e.prototype._convertToAdapterModeEnum=function(t){return t===l.KitchenSinkExpandModes.AlongSideTheVideo?s.AlongSideTheVideo:t===l.KitchenSinkExpandModes.OverTheVideo?s.OverTheVideo:s.Hidden},e.prototype._convertToKitchenSinkModeEnum=function(t){return t===s.AlongSideTheVideo?l.KitchenSinkExpandModes.AlongSideTheVideo:t===s.OverTheVideo?l.KitchenSinkExpandModes.OverTheVideo:l.KitchenSinkExpandModes.Hidden},e.defaultProps={updateSidePanelMode:function(){}},i([KalturaPlayer.ui.redux.connect(p,KalturaPlayer.ui.utils.bindActions(KalturaPlayer.ui.reducers.shell.actions),null,{forwardRef:!0})],e)}(c.Component);e.KitchenSinkAdapter=f},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(86),e)},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.KitchenSink=void 0;var i=n(0),a=n(2),s=n(87),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._logger=null,e}return o(e,t),e.prototype.componentDidMount=function(){this._logger=a.getContribLogger({module:"contrib-ui",class:"KitchenSink"}),this._logger.info("mount component",{method:"componentDidMount"})},e.prototype.componentWillUnmount=function(){this._logger&&this._logger.info("unmount component",{method:"componentWillUnmount"})},e.prototype.render=function(t){this._logger&&this._logger.trace("render component",{method:"render"});var e=this.props.kitchenSinkConfig.theme,n=e.backgroundColor,r=e.blur;return i.h("div",{className:this._getClass()},i.h("div",{className:s.backgroundLayout,style:"\n background-color:"+n+"; \n backdrop-filter: blur("+r+");\n "}),i.h("div",{className:s.children},this.props.children))},e.prototype._getClass=function(){return s.root+" "+(this.props.isActive?s.active:"")},e.defaultProps={isActive:!1},e}(i.Component);e.KitchenSink=c},function(t,e,n){var r=n(3),o=n(88);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r)()(!0);o.push([t.i,".contrib_kitchen-sink__root___2dg28{position:absolute;top:0;left:0;overflow:hidden;width:100%;height:100%;transition:opacity 500ms ease-in-out;opacity:0;z-index:-1}.contrib_kitchen-sink__root___2dg28.contrib_kitchen-sink__active___2Xv8g{opacity:1;z-index:0}.contrib_kitchen-sink__children___UBMYE{position:absolute;top:0;left:0;overflow:hidden;width:100%;height:100%}.contrib_kitchen-sink__background-layout___2pJ-a{width:100%;height:100%}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/kitchen-sink/_kitchen-sink.scss"],names:[],mappings:"AAAA,oCACE,iBAAkB,CAClB,KAAM,CACN,MAAO,CACP,eAAgB,CAChB,UAAW,CACX,WAAY,CACZ,oCAAqC,CACrC,SAAU,CACV,UAAW,CATb,yEAYI,SAAU,CACV,SAAU,CACX,wCAID,iBAAkB,CAClB,KAAM,CACN,MAAO,CACP,eAAgB,CAChB,UAAW,CACX,WAAY,CACb,iDAGC,UAAW,CACX,WAAY",file:"_kitchen-sink.scss",sourcesContent:[".root {\n position: absolute;\n top: 0;\n left: 0;\n overflow: hidden;\n width: 100%;\n height: 100%;\n transition: opacity 500ms ease-in-out;\n opacity: 0;\n z-index: -1;\n\n &.active {\n opacity: 1;\n z-index: 0;\n }\n}\n\n.children {\n position: absolute;\n top: 0;\n left: 0;\n overflow: hidden;\n width: 100%;\n height: 100%;\n}\n\n.background-layout {\n width: 100%;\n height: 100%;\n}\n"]}]),o.locals={root:"contrib_kitchen-sink__root___2dg28",active:"contrib_kitchen-sink__active___2Xv8g",children:"contrib_kitchen-sink__children___UBMYE","background-layout":"contrib_kitchen-sink__background-layout___2pJ-a",backgroundLayout:"contrib_kitchen-sink__background-layout___2pJ-a"},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontManager=void 0;var r=n(90),o=n(2),i=n(6),a=o.getContribLogger({module:"ui",class:"FontManager"}),s={fontFamily:"Lato, sans-serif",testingFont:{text:"abcdefghiiiiiiiiijklmnopqrstuvwwwwwwwwwwxyz0123456789",size:72,fontName:"monospace"}},c="",u=function(){function t(t){this._fontConfig=i.getContribConfig(t.kalturaPlayer,"ui.fonts",s)}return t.prototype.loadFont=function(){if(!this._isFontLoaded()){var t=this._fontConfig.fontFamily;try{this._overrideCorePlayerFontStyles(),c=t,this._handleFontDownloadProcess()}catch(e){a.warn("Failed to load font and override core player style with "+t,{method:"loadFont",data:{error:e}})}}},t.prototype.reset=function(){},t.prototype._overrideCorePlayerFontStyles=function(){var t=this._fontConfig.fontFamily,e=".kaltura-player-container {\n font-family: inherit;\n } \n .playkit-player {\n font-family: "+t+";\n }\n .playkit-player .playkit-player-gui {\n font-family: "+t+";\n }\n button, textarea {\n font-family: inherit;\n }",n=(document.head||document.getElementsByTagName("head")[0]).lastElementChild,r=document.createElement("style");n.parentNode.insertBefore(r,n.nextSibling),r.appendChild(document.createTextNode(e)),a.info("Overridden Core player font-family style with: "+t,{method:"_overrideCorePlayerFontStyles"})},t.prototype._handleFontDownloadProcess=function(){var t=this,e=this._fontConfig,n=e.downloadData,r=e.testingFont;n&&(n.name&&n.url?this._checkFontExistence(n.name,r)?a.info("Font "+n.name+" already exists, no need to reload it",{method:"loadFont"}):this._downloadAndCacheFont(n.name,n.url).then((function(e){e&&t._injectFontRawStyle(n.name,e)})):a.warn("Configuration provided for contrib.ui.fonts.downloadData is invalid (did you remember to provide both url and name?).",{method:"loadFont"}))},t.prototype._checkFontExistence=function(t,e){try{var n=document.createElement("canvas").getContext("2d"),r=e.text,o=e.size+"px";n.font=o+" "+e.fontName;var i=n.measureText(r).width;return n.font=o+" "+t+","+e.fontName,n.measureText(r).width!==i}catch(e){return a.warn("Failed to determine if font "+t+" exists in the system.",{method:"_checkFontExistence",data:{error:e}}),!1}},t.prototype._downloadAndCacheFont=function(t,e){var n=this,o=this._loadFontFromLocalStorage(t);return o&&""!==o?Promise.resolve(o):r.default.get(e).then((function(e){return e.data&&"string"==typeof e.data&&""!==e.data?(a.info("font "+t+" was downloaded successfully",{method:"_downloadAndCacheFont"}),n._saveFontToLocalStorage(""+t,e.data),e.data):(a.warn("failed to downloaded font "+t+" due to an unexpected font data",{method:"_downloadAndCacheFont",data:{error:e.data?e.data:"empty font data"}}),null)})).catch((function(e){return a.warn("Failed to download font "+t,{method:"_downloadFont",data:{error:e}}),null}))},t.prototype._injectFontRawStyle=function(t,e){try{var n=document.createElement("style");n.innerHTML=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(n),a.info('font "'+t+'" raw data style was injected',{method:"_injectFontRawStyle"})}catch(e){a.warn("Failed to inject font "+t+" data to core player style.",{method:"_injectFontRawStyle",data:{error:e}})}},t.prototype._loadFontFromLocalStorage=function(t){try{return localStorage.getItem("contrib-plugins-font-"+t)}catch(e){return a.warn('Failed to load font "'+t+'" data, key: contrib-plugins-font-'+t+" from localStorage",{method:"_loadFontFromLocalStorage",data:{error:e}}),null}},t.prototype._saveFontToLocalStorage=function(t,e){try{localStorage.setItem("contrib-plugins-font-"+t,e),a.info('font "'+t+'" was cached into localStorage',{method:"_saveFontToLocalStorage"})}catch(e){a.warn('Failed to cache font "'+t+'" into localStorage',{method:"_saveFontToLocalStorage",data:{error:e}})}},t.prototype._isFontLoaded=function(){return""!==c&&(c!==this._fontConfig.fontFamily&&a.warn("This request for loading font will be ignored since\n an earlier call for loading "+this._fontConfig.fontFamily+" was made.",{method:"_isFontLoaded"}),!0)},t}();e.FontManager=u},function(t,e,n){t.exports=n(91)},function(t,e,n){"use strict";var r=n(4),o=n(20),i=n(93),a=n(26);function s(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var c=s(n(23));c.Axios=i,c.create=function(t){return s(a(c.defaults,t))},c.Cancel=n(27),c.CancelToken=n(106),c.isCancel=n(22),c.all=function(t){return Promise.all(t)},c.spread=n(107),t.exports=c,t.exports.default=c},function(t,e){
|
|
17
|
-
/*!
|
|
18
|
-
* Determine if an object is a Buffer
|
|
19
|
-
*
|
|
20
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
21
|
-
* @license MIT
|
|
22
|
-
*/
|
|
23
|
-
t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(4),o=n(21),i=n(94),a=n(95),s=n(26);function c(t){this.defaults=t,this.interceptors={request:new i,response:new i}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method=t.method?t.method.toLowerCase():"get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},c.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,o){return this.request(r.merge(o||{},{method:t,url:e,data:n}))}})),t.exports=c},function(t,e,n){"use strict";var r=n(4);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(4),o=n(96),i=n(22),a=n(23),s=n(104),c=n(105);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return u(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,u=[],l=!1,p=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):p=-1,u.length&&h())}function h(){if(!l){var t=s(f);l=!0;for(var e=u.length;e;){for(c=u,u=[];++p<e;)c&&c[p].run();p=-1,e=u.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||l||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(25);t.exports=function(t,e,n){var o=n.config.validateStatus;!o||o(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(4),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(27);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CuepointFloatingEngine=void 0;var i,a=n(28),s=n(2),c=n(2);!function(t){t.Show="show",t.Hide="hide"}(i||(i={}));var u=c.getContribLogger({module:"contrib-ui",class:"CuepointFloatingEngine"}),l=function(t){function e(e){var n=t.call(this,e)||this;return n.playerSize=null,n.videoSize=null,n}return o(e,t),e.prototype.updateLayout=function(t,e){return this.videoSize=e,this.playerSize=t,this.recalculateCuepointLayout(),this.getCurrentCuepointSnapshot()},e.prototype._calculateLayout=function(t,e){var n=t.rawLayout;return{x:e.left+n.relativeX*e.width,y:e.top+n.relativeY*e.height,width:n.relativeWidth*e.width,height:n.relativeHeight*e.height}},e.prototype.recalculateCuepointLayout=function(){var t=this;if(u.debug("calculating cuepoint layout based on video/player sizes",{method:"recalculateCuepointLayout"}),!this.playerSize||!this.videoSize)return u.warn("missing video/player sizes, hide all cuepoint",{method:"recalculateCuepointLayout"}),void(this.enabled=!1);var e=this.playerSize,n=e.width,r=e.height,o=this.videoSize,i=o.width,s=o.height;if(!(n&&r&&i&&s))return u.warn("missing video/player sizes, hide all cuepoint",{method:"recalculateCuepointLayout"}),void(this.enabled=!1);var c=a.scaleVideo(i,s,n,r,!0);u.debug("recalculate cuepoint layout based on new sizes",{method:"recalculateCuepointLayout",data:{scaleCalculation:c}}),(this.cuepoints||[]).forEach((function(e){e.layout=t._calculateLayout(e,c)})),this.enabled=!0},e}(s.CuepointEngine);e.CuepointFloatingEngine=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.printContent=e.downloadContent=void 0,e.downloadContent=function(t,e){var n=new Blob([t],{type:"text/plain;charset=utf-8;"}),r=document.createElement("a");window.navigator.msSaveBlob?window.navigator.msSaveOrOpenBlob(n,e):(-1!==navigator.userAgent.search("Firefox")?(r.style.display="none",r.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t))):r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("target","_blank"),r.setAttribute("download",e),r.click(),r.remove())},e.printContent=function(t){var e=window.open("","","width=400,height=600");e&&(e.document.write(t),e.document.close(),e.focus(),e.print(),e.close())},e.timeSince=function(t){"object"!=typeof t&&(t=new Date(t));var e,n=new Date,r=Math.floor((n-t)/1e3),o=Math.floor(r/31536e3);return o>=1?e="year":(o=Math.floor(r/2592e3))>=1?e="month":(o=Math.floor(r/86400))>=1?e="day":(o=Math.floor(r/3600))>=1?e="hour":(o=Math.floor(r/60))>=1?e="minute":(o=-1,e="a moment"),(o>1||0===o)&&(e+="s"),(o>=0?o:"")+" "+e+" ago"}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.OverlayManager=void 0;var i=n(0),a=n(29),s=n(30),c=n(7),u=n(112),l=n(8),p=n(6),f={presetAreasMapping:{Playback:{PlayerArea:"PlayerArea"},Live:{PlayerArea:"PlayerArea"}}},h=["PlayerArea"],d=function(){function t(t){var e,n,r=this;this.options=t,this._items=((e={})[s.OverlayPositions.PlayerArea]=[],e),this._componentRef=((n={})[s.OverlayPositions.PlayerArea]=null,n),this._renderItems=function(t){return 0===r._items[t].length?null:i.h(u.OverlayItemContainer,{renderContent:function(){return r._items[t][0].renderOverlayChild({})}})},this._renderChild=function(t){return i.h(c.ManagedComponent,{label:"overlay-manager",renderChildren:function(){return r._renderItems(t)},isShown:function(){return!0},ref:function(e){return r._componentRef[t]=e}})},this._options=t,this._overlayConfig=p.getContribConfig(this._options.kalturaPlayer,"ui.overlay",f,{explicitMerge:["presetAreasMapping"]});var o=l.PresetsUtils.groupPresetAreasByType({presetAreasMapping:this._overlayConfig.presetAreasMapping,acceptableTypes:h});this.options.presetManager.add({label:"overlay-manager",fillContainer:!0,presetAreas:o.PlayerArea,renderChild:function(){return r._renderChild(s.OverlayPositions.PlayerArea)}})}return t.prototype.add=function(t){var e=this._options.presetManager,n=r(r({presetManager:e},this.options),{data:t}),o=new a.OverlayItem(n);return this._items[t.position].unshift(o),this._updateComponents(t.position),o},t.prototype.remove=function(t){var e=this._items[t.data.position],n=e.indexOf(t);n>-1?(e[n].destroy(),e.splice(n,1),0===n&&this._updateComponents(t.data.position)):console.warn("couldn't remove "+t+" since it wasn't found")},t.prototype.reset=function(){o(this._items.PlayerArea).forEach((function(t){try{t.destroy()}catch(t){console.warn(t)}})),this._items.PlayerArea=[]},t.prototype._updateComponents=function(t){!this._componentRef.PlayerArea||t&&t!==s.OverlayPositions.PlayerArea||this._componentRef.PlayerArea.update()},t}();e.OverlayManager=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(113);Object.defineProperty(e,"OverlayItemContainer",{enumerable:!0,get:function(){return r.OverlayItemContainer}})},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.OverlayItemContainer=void 0;var i=n(0),a=n(2),s=n(114),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._logger=a.getContribLogger({module:"contrib-ui",class:"OverlayContainer"}),e}return o(e,t),e.prototype.componentDidMount=function(){this._logger.info("mount component",{method:"componentDidMount"})},e.prototype.componentWillUnmount=function(){this._logger.info("unmount component",{method:"componentWillUnmount"})},e.prototype.render=function(){this._logger.trace("render component",{method:"render"});var t=this.props.renderContent();return t?i.h("div",{className:s.overlayItemContainer},t):null},e}(i.Component);e.OverlayItemContainer=c},function(t,e,n){var r=n(3),o=n(115);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]),r(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r)()(!0);o.push([t.i,".contrib_overlay-item-container__overlayItemContainer___1YRFl{position:absolute;z-index:6;top:0;bottom:0;left:0;right:0;width:100%;height:100%}\n","",{version:3,sources:["/Users/jonathangold/Desktop/dev/playkit-js-contrib/packages/ui/src/components/overlay-item-container/_overlay-item-container.scss"],names:[],mappings:"AAAA,8DACE,iBAAkB,CAClB,SAAU,CACV,KAAM,CACN,QAAS,CACT,MAAO,CACP,OAAQ,CACR,UAAW,CACX,WAAY",file:"_overlay-item-container.scss",sourcesContent:[".overlayItemContainer {\n position: absolute;\n z-index: 6;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%;\n}\n"]}]),o.locals={overlayItemContainer:"contrib_overlay-item-container__overlayItemContainer___1YRFl"},e.default=o}]))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(t){function e(n,r,o){var i=t.call(this,r)||this;return i.code=n,i.message=r,i.args=o,Object.setPrototypeOf(i,e.prototype),i}return r.__extends(e,t),e}(Error);e.KalturaClientException=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(34),i=n(22),a=n(6),s=n(24),c=n(23),u=function(t){function e(e,n){var r=n.responseType,o=n.responseSubType,i=n.responseConstructor,a=t.call(this,e)||this;return a.responseSubType=o,a.responseType=r,a._responseConstructor=i,a}return r.__extends(e,t),e.prototype.setCompletion=function(t){return this.callback=t,this},e.prototype._unwrapResponse=function(t){if(c.environment.response.nestedResponse){if(t&&t.hasOwnProperty("result"))return t.result.hasOwnProperty("error")?t.result.error:t.result;if(t&&t.hasOwnProperty("error"))return t.error}return t},e.prototype.handleResponse=function(e){var n,r;try{var i=this._unwrapResponse(e),s=null;i&&(s=i instanceof a.KalturaAPIException?i:"KalturaAPIException"===i.objectType?new a.KalturaAPIException(i.message,i.code,i.args):t.prototype._parseResponseProperty.call(this,"",{type:this.responseType,subType:this.responseSubType},i)),s||"v"===this.responseType?s instanceof a.KalturaAPIException?r=s:n=s:r=new a.KalturaAPIException("server response is undefined, expected '"+this.responseType+" / "+this.responseSubType+"'","client::response_type_error",null)}catch(t){r=new a.KalturaAPIException(t.message,"client::general_error",null)}var c=new o.KalturaResponse(n,r);if(this.callback)try{this.callback(c)}catch(t){}return c},e.prototype.setRequestOptions=function(t){return this.__requestOptions__=t instanceof s.KalturaRequestOptions?t:new s.KalturaRequestOptions(t),this},e.prototype.getRequestOptions=function(){return this.__requestOptions__},e.prototype.buildRequest=function(t){var e=this.__requestOptions__?this.__requestOptions__.toRequestObject():{},n=t?t.toRequestObject():{};return Object.assign({},n,e,this.toRequestObject())},e}(i.KalturaRequestBase);e.KalturaRequest=u},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=62)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(66))},function(t,e,n){var r=n(0),o=n(18),i=n(42),a=n(70),s=r.Symbol,c=o("wks");t.exports=function(t){return c[t]||(c[t]=a&&s[t]||(a?s:i)("Symbol."+t))}},function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(6),o=n(11),i=n(19);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(0),o=n(30).f,i=n(3),a=n(10),s=n(24),c=n(73),u=n(50);t.exports=function(t,e){var n,l,p,f,h,d=t.target,g=t.global,_=t.stat;if(n=g?r:_?r[d]||s(d,{}):(r[d]||{}).prototype)for(l in e){if(f=e[l],p=t.noTargetGet?(h=o(n,l))&&h.value:n[l],!u(g?l:d+(_?".":"#")+l,t.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(t.sham||p&&p.sham)&&i(f,"sham",!0),a(n,l,f,t)}}},function(t,e,n){var r=n(4);t.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(21),o=n(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(0),o=n(18),i=n(3),a=n(7),s=n(24),c=n(41),u=n(14),l=u.get,p=u.enforce,f=String(c).split("toString");o("inspectSource",(function(t){return c.call(t)})),(t.exports=function(t,e,n,o){var c=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof e||a(n,"name")||i(n,"name",e),p(n).source=f.join("string"==typeof e?e:"")),t!==r?(c?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)):u?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||c.call(this)}))},function(t,e,n){var r=n(6),o=n(39),i=n(2),a=n(40),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e){t.exports=!1},function(t,e,n){var r,o,i,a=n(68),s=n(0),c=n(8),u=n(3),l=n(7),p=n(26),f=n(27),h=s.WeakMap;if(a){var d=new h,g=d.get,_=d.has,m=d.set;r=function(t,e){return m.call(d,t,e),e},o=function(t){return g.call(d,t)||{}},i=function(t){return _.call(d,t)}}else{var y=p("state");f[y]=!0,r=function(t,e){return u(t,y,e),e},o=function(t){return l(t,y)?t[y]:{}},i=function(t){return l(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(12),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(13),o=n(67);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.3.5",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(46),o=n(29);t.exports=function(t){return r(o(t))}},function(t,e,n){t.exports=n(0)},function(t,e,n){var r=n(2),o=n(90),i=n(48),a=n(55),s=n(91),c=n(92),u=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,l,p){var f,h,d,g,_,m,y,v=a(e,n,l?2:1);if(p)f=t;else{if("function"!=typeof(h=s(t)))throw TypeError("Target is not iterable");if(o(h)){for(d=0,g=i(t.length);g>d;d++)if((_=l?v(r(y=t[d])[0],y[1]):v(t[d]))&&_ instanceof u)return _;return new u(!1)}f=h.call(t)}for(m=f.next;!(y=m.call(f)).done;)if("object"==typeof(_=c(f,v,y.value,l))&&_&&_ instanceof u)return _;return new u(!1)}).stop=function(t){return new u(!0,t)}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r=n(0),o=n(3);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(0),o=n(8),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){var r=n(18),o=n(42),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(6),o=n(45),i=n(19),a=n(20),s=n(40),c=n(7),u=n(39),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e,!0),u)try{return l(t,e)}catch(t){}if(c(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(7),o=n(33),i=n(26),a=n(79),s=i("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},function(t,e,n){var r=n(29);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(2),o=n(80),i=n(31),a=n(27),s=n(52),c=n(25),u=n(26)("IE_PROTO"),l=function(){},p=function(){var t,e=c("iframe"),n=i.length;for(e.style.display="none",s.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),p=t.F;n--;)delete p.prototype[i[n]];return p()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=r(t),n=new l,l.prototype=null,n[u]=t):n=p(),void 0===e?n:o(n,e)},a[u]=!0},function(t,e,n){var r=n(47),o=n(31);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(11).f,o=n(7),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(9);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectUtils=void 0;var o=function(){function t(){}return t.copyDeep=function(e){var n;return Array.isArray(e)?(n=e.length>0?e.slice(0):[]).forEach((function(e,r){("object"==typeof e&&e!=={}||Array.isArray(e)&&e.length>0)&&(n[r]=t.copyDeep(e))})):"object"==typeof e?(n=Object.assign({},e),Object.keys(n).forEach((function(e){("object"==typeof n[e]&&n[e]!=={}||Array.isArray(n[e])&&n[e].length>0)&&(n[e]=t.copyDeep(n[e]))}))):n=e,n},t.isObject=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},t.mergeDeep=function(e,n,r){var o,i;if(!n.length)return e;var a=(r?r.explicitMerge:null)||[],s=n.shift();if(t.isObject(e)&&t.isObject(s))for(var c in s)t.isObject(s[c])?(e[c]||Object.assign(e,((o={})[c]={},o)),-1!==a.indexOf(c)?e[c]=t.explicitFlatMerge(e[c],s[c]):t.mergeDeep(e[c],[s[c]],r)):Object.assign(e,((i={})[c]=s[c],i));return t.mergeDeep(e,n,r)},t.mergeDefaults=function(e,n,r){return t.mergeDeep({},[n,e],r)},t.explicitFlatMerge=function(t,e){var n=r({},t);return Object.keys(e).forEach((function(t){null===e[t]||0===Object.keys(e[t]).length?delete n[t]:n[t]=e[t]})),n},t.get=function(t,e,n){for(var r=function(t){var e=[];return t.split(".").forEach((function(t){t.split(/\[([^}]+)\]/g).forEach((function(t){t.length>0&&e.push(t)}))})),e}(e),o=t,i=0;i<r.length;i++){if(!o[r[i]])return n;o=o[r[i]]}return o},t}();e.ObjectUtils=o},function(t,e,n){var r=n(6),o=n(4),i=n(25);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(18);t.exports=r("native-function-to-string",Function.toString)},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(15),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){"use strict";var r=n(5),o=n(78),i=n(32),a=n(53),s=n(36),c=n(3),u=n(10),l=n(1),p=n(13),f=n(16),h=n(51),d=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,_=l("iterator"),m=function(){return this};t.exports=function(t,e,n,l,h,y,v){o(n,e,l);var b,C,w,A=function(t){if(t===h&&S)return S;if(!g&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},x=e+" Iterator",E=!1,k=t.prototype,T=k[_]||k["@@iterator"]||h&&k[h],S=!g&&T||A(h),P="Array"==e&&k.entries||T;if(P&&(b=i(P.call(new t)),d!==Object.prototype&&b.next&&(p||i(b)===d||(a?a(b,d):"function"!=typeof b[_]&&c(b,_,m)),s(b,x,!0,!0),p&&(f[x]=m))),"values"==h&&T&&"values"!==T.name&&(E=!0,S=function(){return T.call(this)}),p&&!v||k[_]===S||c(k,_,S),f[e]=S,h)if(C={values:A("values"),keys:y?S:A("keys"),entries:A("entries")},v)for(w in C)(g||E||!(w in k))&&u(k,w,C[w]);else r({target:e,proto:!0,forced:g||E},C);return C}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(4),o=n(15),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(7),o=n(20),i=n(76).indexOf,a=n(27);t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e,n){var r=n(28),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(4),o=/#|\.prototype\./,i=function(t,e){var n=s[a(t)];return n==u||n!=c&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";t.exports=i},function(t,e,n){"use strict";var r,o,i,a=n(32),s=n(3),c=n(7),u=n(1),l=n(13),p=u("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):f=!0),null==r&&(r={}),l||c(r,p)||s(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(t,e,n){var r=n(9);t.exports=r("document","documentElement")},function(t,e,n){var r=n(2),o=n(81);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var r=n(0);t.exports=r.Promise},function(t,e,n){var r=n(12);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(2),o=n(12),i=n(1)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(0),s=n(4),c=n(15),u=n(55),l=n(52),p=n(25),f=n(37),h=a.location,d=a.setImmediate,g=a.clearImmediate,_=a.process,m=a.MessageChannel,y=a.Dispatch,v=0,b={},C=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},w=function(t){return function(){C(t)}},A=function(t){C(t.data)},x=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};d&&g||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++v]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(v),v},g=function(t){delete b[t]},"process"==c(_)?r=function(t){_.nextTick(w(t))}:y&&y.now?r=function(t){y.now(w(t))}:m&&!/(iphone|ipod|ipad).*applewebkit/i.test(f)?(i=(o=new m).port2,o.port1.onmessage=A,r=u(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(x)?r="onreadystatechange"in p("script")?function(t){l.appendChild(p("script")).onreadystatechange=function(){l.removeChild(this),C(t)}}:function(t){setTimeout(w(t),0)}:(r=x,a.addEventListener("message",A,!1))),t.exports={set:d,clear:g}},function(t,e,n){var r=n(2),o=n(8),i=n(17);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(5),o=n(12),i=n(17),a=n(23),s=n(22);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=i.f(e),r=n.resolve,c=n.reject,u=a((function(){var n=o(e.resolve),i=[],a=0,c=1;s(t,(function(t){var o=a++,s=!1;i.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,i[o]={status:"fulfilled",value:t},--c||r(i))}),(function(t){s||(s=!0,i[o]={status:"rejected",reason:t},--c||r(i))}))})),--c||r(i)}));return u.error&&c(u.value),n.promise}})},function(t,e,n){"use strict";function r(t){var e=t.kalturaPlayer,n=t.loggerName,r=e?e.getLogger:KalturaPlayer.ui.utils.getLogger;if(!r)return null;var o=r(n);return function(t){return t&&"setLevel"in t}(o)?o:null}Object.defineProperty(e,"__esModule",{value:!0}),e.enableLogIfNeeded=e.getContribLogger=e.ProxyLogger=e.NoopLogger=void 0;var o=function(){function t(){}return t.prototype.debug=function(t,e){},t.prototype.info=function(t,e){},t.prototype.trace=function(t,e){},t.prototype.warn=function(t,e){},t.prototype.error=function(t,e){},t}();e.NoopLogger=o;var i=r({}),a=new o,s=function(){function t(t,e){this._logger=t,this._defaultOptions=e}return t.prototype._log=function(t,e,n,r){var o=r.class||this._defaultOptions.class||"_",i=this._defaultOptions.module||"",a=r.method?"."+r.method+"()":"",s="["+i+"::"+o+"("+(this._defaultOptions.context?"'"+this._defaultOptions.context+"'":"")+")"+a+"] "+n;r.data?this._logger[t](s,r.data):this._logger[t](s)},t.prototype.debug=function(t,e){i&&this._log("debug",i.DEBUG,t,e)},t.prototype.info=function(t,e){i&&this._log("info",i.INFO,t,e)},t.prototype.trace=function(t,e){i&&this._log("trace",i.TRACE,t,e)},t.prototype.warn=function(t,e){i&&this._log("warn",i.WARN,t,e)},t.prototype.error=function(t,e){i&&this._log("error",i.ERROR,t,e)},t}();e.ProxyLogger=s,e.getContribLogger=function(t){void 0===t&&(t={});var e=t.kalturaPlayer,n=r({kalturaPlayer:e,loggerName:(e?e._playerId:"global")+"_contrib"});return n?new s(n,t):a},e.enableLogIfNeeded=function(){try{if(-1!==document.URL.indexOf("debugKalturaPlayer")){var t=r({});if(!t)return;t.setLevel(t.TRACE)}}catch(t){}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=void 0;var r=n(116),o=function(){function t(){}return t.uuidV1=function(){return r.v1()},t.uuidV5=function(t,e){return r.v5(t,e)},t.numberedUuidV1=function(){for(var e=t.uuidV1(),n="",r=0;r<e.length;r++){var o=e.charAt(r);n+=Number.isNaN(+o)?o.charCodeAt(0):o}return n},t}();e.UUID=o},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),n(63),n(102),n(106),Number.isNaN=Number.isNaN||function(t){return null!==t&&(t!=t||+t!=t)},o(n(109),e),o(n(110),e),o(n(111),e),o(n(112),e),o(n(60),e),o(n(61),e),o(n(113),e),o(n(38),e),o(n(114),e),o(n(115),e)},function(t,e,n){t.exports=n(64),n(98),n(99),n(100),n(101)},function(t,e,n){n(65),n(71),n(82),n(86),n(59),n(97);var r=n(21);t.exports=r.Promise},function(t,e,n){var r=n(10),o=n(69),i=Object.prototype;o!==i.toString&&r(i,"toString",o,{unsafe:!0})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(0),o=n(24),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=n(41),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o.call(i))},function(t,e,n){"use strict";var r=n(43),o={};o[n(1)("toStringTag")]="z",t.exports="[object z]"!==String(o)?function(){return"[object "+r(this)+"]"}:o.toString},function(t,e,n){var r=n(4);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){"use strict";var r=n(72).charAt,o=n(14),i=n(44),a=o.set,s=o.getterFor("String Iterator");i(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=s(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(28),o=n(29),i=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){var r=n(7),o=n(74),i=n(30),a=n(11);t.exports=function(t,e){for(var n=o(e),s=a.f,c=i.f,u=0;u<n.length;u++){var l=n[u];r(t,l)||s(t,l,c(e,l))}}},function(t,e,n){var r=n(9),o=n(75),i=n(49),a=n(2);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(47),o=n(31).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(20),o=n(48),i=n(77),a=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),l=i(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var r=n(28),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=n(51).IteratorPrototype,o=n(34),i=n(19),a=n(36),s=n(16),c=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,u,!1,!0),s[u]=c,t}},function(t,e,n){var r=n(4);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(6),o=n(11),i=n(2),a=n(35);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),s=r.length,c=0;s>c;)o.f(t,n=r[c++],e[n]);return t}},function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(0),o=n(83),i=n(84),a=n(3),s=n(1),c=s("iterator"),u=s("toStringTag"),l=i.values;for(var p in o){var f=r[p],h=f&&f.prototype;if(h){if(h[c]!==l)try{a(h,c,l)}catch(t){h[c]=l}if(h[u]||a(h,u,p),o[p])for(var d in i)if(h[d]!==i[d])try{a(h,d,i[d])}catch(t){h[d]=i[d]}}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){"use strict";var r=n(20),o=n(85),i=n(16),a=n(14),s=n(44),c=a.set,u=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=u(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(1),o=n(34),i=n(3),a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,o(null)),t.exports=function(t){s[a][t]=!0}},function(t,e,n){"use strict";var r,o,i,a,s=n(5),c=n(13),u=n(0),l=n(9),p=n(54),f=n(10),h=n(87),d=n(36),g=n(88),_=n(8),m=n(12),y=n(89),v=n(15),b=n(22),C=n(93),w=n(56),A=n(57).set,x=n(94),E=n(58),k=n(95),T=n(17),S=n(23),P=n(14),O=n(50),M=n(1),B=n(96),L=M("species"),j="Promise",I=P.get,R=P.set,K=P.getterFor(j),N=p,F=u.TypeError,D=u.document,U=u.process,q=l("fetch"),z=T.f,W=z,V="process"==v(U),H=!!(D&&D.createEvent&&u.dispatchEvent),Y=O(j,(function(){if(66===B)return!0;if(!V&&"function"!=typeof PromiseRejectionEvent)return!0;if(c&&!N.prototype.finally)return!0;if(B>=51&&/native code/.test(N))return!1;var t=N.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[L]=e,!(t.then((function(){}))instanceof e)})),G=Y||!C((function(t){N.all(t).catch((function(){}))})),Z=function(t){var e;return!(!_(t)||"function"!=typeof(e=t.then))&&e},X=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;x((function(){for(var o=e.value,i=1==e.state,a=0;r.length>a;){var s,c,u,l=r[a++],p=i?l.ok:l.fail,f=l.resolve,h=l.reject,d=l.domain;try{p?(i||(2===e.rejection&&tt(t,e),e.rejection=1),!0===p?s=o:(d&&d.enter(),s=p(o),d&&(d.exit(),u=!0)),s===l.promise?h(F("Promise-chain cycle")):(c=Z(s))?c.call(s,f,h):f(s)):h(o)}catch(t){d&&!u&&d.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&J(t,e)}))}},Q=function(t,e,n){var r,o;H?((r=D.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},(o=u["on"+t])?o(r):"unhandledrejection"===t&&k("Unhandled promise rejection",n)},J=function(t,e){A.call(u,(function(){var n,r=e.value;if($(e)&&(n=S((function(){V?U.emit("unhandledRejection",r,t):Q("unhandledrejection",t,r)})),e.rejection=V||$(e)?2:1,n.error))throw n.value}))},$=function(t){return 1!==t.rejection&&!t.parent},tt=function(t,e){A.call(u,(function(){V?U.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},et=function(t,e,n,r){return function(o){t(e,n,o,r)}},nt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,X(t,e,!0))},rt=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw F("Promise can't be resolved itself");var o=Z(n);o?x((function(){var r={done:!1};try{o.call(n,et(rt,t,r,e),et(nt,t,r,e))}catch(n){nt(t,r,n,e)}})):(e.value=n,e.state=1,X(t,e,!1))}catch(n){nt(t,{done:!1},n,e)}}};Y&&(N=function(t){y(this,N,j),m(t),r.call(this);var e=I(this);try{t(et(rt,this,e),et(nt,this,e))}catch(t){nt(this,e,t)}},(r=function(t){R(this,{type:j,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(N.prototype,{then:function(t,e){var n=K(this),r=z(w(this,N));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=V?U.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&X(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=I(t);this.promise=t,this.resolve=et(rt,t,e),this.reject=et(nt,t,e)},T.f=z=function(t){return t===N||t===i?new o(t):W(t)},c||"function"!=typeof p||(a=p.prototype.then,f(p.prototype,"then",(function(t,e){var n=this;return new N((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof q&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return E(N,q.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:N}),d(N,j,!1,!0),g(j),i=l(j),s({target:j,stat:!0,forced:Y},{reject:function(t){var e=z(this);return e.reject.call(void 0,t),e.promise}}),s({target:j,stat:!0,forced:c||Y},{resolve:function(t){return E(c&&this===i?N:this,t)}}),s({target:j,stat:!0,forced:G},{all:function(t){var e=this,n=z(e),r=n.resolve,o=n.reject,i=S((function(){var n=m(e.resolve),i=[],a=0,s=1;b(t,(function(t){var c=a++,u=!1;i.push(void 0),s++,n.call(e,t).then((function(t){u||(u=!0,i[c]=t,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=z(e),r=n.reject,o=S((function(){var o=m(e.resolve);b(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(10);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(9),o=n(11),i=n(1),a=n(6),s=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r=n(1),o=n(16),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},function(t,e,n){var r=n(43),o=n(16),i=n(1)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(2);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r,o,i,a,s,c,u,l,p=n(0),f=n(30).f,h=n(15),d=n(57).set,g=n(37),_=p.MutationObserver||p.WebKitMutationObserver,m=p.process,y=p.Promise,v="process"==h(m),b=f(p,"queueMicrotask"),C=b&&b.value;C||(r=function(){var t,e;for(v&&(t=m.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},v?a=function(){m.nextTick(r)}:_&&!/(iphone|ipod|ipad).*applewebkit/i.test(g)?(s=!0,c=document.createTextNode(""),new _(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),l=u.then,a=function(){l.call(u,r)}):a=function(){d.call(p,r)}),t.exports=C||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},function(t,e,n){var r=n(0);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e,n){var r,o,i=n(0),a=n(37),s=i.process,c=s&&s.versions,u=c&&c.v8;u?o=(r=u.split("."))[0]+r[1]:a&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){"use strict";var r=n(5),o=n(13),i=n(54),a=n(9),s=n(56),c=n(58),u=n(10);r({target:"Promise",proto:!0,real:!0},{finally:function(t){var e=s(this,a("Promise")),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}}),o||"function"!=typeof i||i.prototype.finally||u(i.prototype,"finally",a("Promise").prototype.finally)},function(t,e,n){"use strict";var r=n(5),o=n(6),i=n(32),a=n(53),s=n(34),c=n(11),u=n(19),l=n(22),p=n(3),f=n(2),h=n(14),d=h.set,g=h.getterFor("AggregateError"),_=function(t,e){var n=this;if(!(n instanceof _))return new _(t,e);a&&(n=a(new Error(e),i(n)));var r=[];return l(t,r.push,r),o?d(n,{errors:r,type:"AggregateError"}):n.errors=r,void 0!==e&&p(n,"message",String(e)),n};_.prototype=s(Error.prototype,{constructor:u(5,_),message:u(5,""),name:u(5,"AggregateError"),toString:u(5,(function(){var t=f(this).name;t=void 0===t?"AggregateError":String(t);var e=this.message;return t+": "+(void 0===e?"":String(e))}))}),o&&c.f(_.prototype,"errors",{get:function(){return g(this).errors},configurable:!0}),r({global:!0},{AggregateError:_})},function(t,e,n){n(59)},function(t,e,n){"use strict";var r=n(5),o=n(17),i=n(23);r({target:"Promise",stat:!0},{try:function(t){var e=o.f(this),n=i(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}})},function(t,e,n){"use strict";var r=n(5),o=n(12),i=n(9),a=n(17),s=n(23),c=n(22);r({target:"Promise",stat:!0},{any:function(t){var e=this,n=a.f(e),r=n.resolve,u=n.reject,l=s((function(){var n=o(e.resolve),a=[],s=0,l=1,p=!1;c(t,(function(t){var o=s++,c=!1;a.push(void 0),l++,n.call(e,t).then((function(t){c||p||(p=!0,r(t))}),(function(t){c||p||(c=!0,a[o]=t,--l||u(new(i("AggregateError"))(a,"No one promise resolved")))}))})),--l||u(new(i("AggregateError"))(a,"No one promise resolved"))}));return l.error&&u(l.value),n.promise}})},function(t,e,n){t.exports=n(103)},function(t,e,n){n(104);var r=n(21);t.exports=r.Object.assign},function(t,e,n){var r=n(5),o=n(105);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(6),o=n(4),i=n(35),a=n(49),s=n(45),c=n(33),u=n(46),l=Object.assign;t.exports=!l||o((function(){var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||"abcdefghijklmnopqrst"!=i(l({},e)).join("")}))?function(t,e){for(var n=c(t),o=arguments.length,l=1,p=a.f,f=s.f;o>l;)for(var h,d=u(arguments[l++]),g=p?i(d).concat(p(d)):i(d),_=g.length,m=0;_>m;)h=g[m++],r&&!f.call(d,h)||(n[h]=d[h]);return n}:l},function(t,e,n){t.exports=n(107)},function(t,e,n){n(108);var r=n(21);t.exports=r.Object.keys},function(t,e,n){var r=n(5),o=n(33),i=n(35);r({target:"Object",stat:!0,forced:n(4)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.CuepointEngine=void 0;var o,i=n(60);!function(t){t.Show="show",t.Hide="hide"}(o||(o={}));var a=i.getContribLogger({module:"contrib-common",class:"CuepointEngine"}),s=function(){function t(t,e){this.isFirstTime=!0,this.enabled=!0,this.lastHandledTime=null,this.lastHandledTimeIndex=null,this.nextTimeToHandle=null,this.cuepointChanges=[],a.debug("executed",{method:"ctor"}),this.reasonableSeekThreshold=Math.max(2e3,e&&e.reasonableSeekThreshold||0),this._cuepoints=t,this.prepareCuepoint()}return Object.defineProperty(t.prototype,"cuepoints",{get:function(){return r(this._cuepoints)},enumerable:!1,configurable:!0}),t.prototype.getSnapshot=function(t){var e=this.findClosestLastIndexByTime(t);return a.debug("create snapshot based on time "+t,{method:"getSnapshot",data:{timeIndex:e}}),this.createCuepointSnapshot(e)},t.prototype.updateTime=function(t,e,n){void 0===e&&(e=!1);var r=this.isFirstTime,o=this.lastHandledTime,i=this.nextTimeToHandle;if(0===this.cuepointChanges.length)return r&&(a.info("cuepoint list empty. will always return empty snapshot",{method:"updateTime"}),this.isFirstTime=!1),{snapshot:[]};var s=!r&&null!==o&&null!==i&&(o>t||t-i>this.reasonableSeekThreshold),c=r||null!==this.lastHandledTime&&this.lastHandledTime>t||null!=this.nextTimeToHandle&&t>=this.nextTimeToHandle,u=this.findClosestLastIndexByTime(t),l=u<0?0:this.cuepointChanges[u].time;if(!c)return e?{snapshot:this.createCuepointSnapshot(u,n)}:{delta:this.createEmptyDelta()};if(a.debug("has changes to handle. check if need to return snapshot instead of delta based on provided new time",{method:"updateTime",data:{currentTime:t,closestChangeIndex:u,closestChangeTime:l,lastHandledTime:o,nextTimeToHandle:i,isFirstTime:r}}),r||e||s){a.debug("some conditions doesn't allow returning delta, return snapshot instead",{method:"updateTime",data:{isFirstTime:r,userSeeked:s,forceSnapshot:e}});var p=this.createCuepointSnapshot(u,n);return this.updateInternals(l,u),{snapshot:p}}var f=this.createCuepointDelta(u,n);return this.updateInternals(l,u),{delta:f}},t.prototype.getCurrentCuepointSnapshot=function(){return this.lastHandledTimeIndex?this.createCuepointSnapshot(this.lastHandledTimeIndex):[]},t.prototype.createCuepointSnapshot=function(t,e){if(!this.enabled||t<0||!this.cuepointChanges||0===this.cuepointChanges.length)return a.debug("resulted with empty snapshot",{method:"createCuepointSnapshot",data:{targetIndex:t,enabled:this.enabled,cuepointCount:(this.cuepointChanges||[]).length}}),[];for(var n=[],r=0;r<=t;r++){var i=this.cuepointChanges[r],s=n.indexOf(i.cuePoint);i.type===o.Show?-1===s&&n.push(i.cuePoint):-1!==s&&n.splice(s,1)}return a.debug("resulted snapshot",{method:"createCuepointSnapshot",data:{snapshot:n}}),e&&(n=n.filter(e)),n},t.prototype.createCuepointDelta=function(t,e){if(!this.enabled||!this.cuepointChanges||0===this.cuepointChanges.length)return a.debug("resulted with empty delta",{method:"createCuepointDelta",data:{enabled:this.enabled,cuepointCount:(this.cuepointChanges||[]).length}}),this.createEmptyDelta();var n=this.lastHandledTimeIndex;if(null===n)return a.debug("invalid internal state. resulted with empty delta",{method:"createCuepointDelta"}),this.createEmptyDelta();var r=[],i=[];a.info("find cuepoint that were added or removed",{method:"createCuepointDelta"});for(var s=n+1;s<=t;s++){var c=this.cuepointChanges[s],u=r.indexOf(c.cuePoint);c.type===o.Show?-1===u&&r.push(c.cuePoint):-1!==u?(a.info("cuepoint was marked with type "+c.type+" at "+c.time+". remove from new cuepoint list as it wasn't visible yet",{method:"createCuepointDelta",data:{cuepoint:c.cuePoint}}),r.splice(u,1)):-1===i.indexOf(c.cuePoint)&&(a.info("cuepoint was marked with type "+c.type+" at "+c.time+". add to removed cuepoint list",{method:"createCuepointDelta",data:{cuepoint:c.cuePoint}}),i.push(c.cuePoint))}return a.debug("resulted delta",{method:"createCuepointDelta",data:{newCuepoint:r,removedCuepoint:i}}),e&&(r=r.filter(e),i=i.filter(e)),{show:r,hide:i}},t.prototype.updateInternals=function(t,e){var n=this.cuepointChanges;if(n&&0!==n.length){var r=e>=n.length-1,o=null===e;this.lastHandledTime=t,this.lastHandledTimeIndex=e,this.nextTimeToHandle=o?n[0].time:r?n[n.length-1].time:n[e+1].time,this.isFirstTime=!1}},t.prototype.createEmptyDelta=function(){return{show:[],hide:[]}},t.prototype.binarySearch=function(t,e){if(!t||0===t.length)return null;if(e<t[0].time)return-1;if(e>t[t.length-1].time)return t.length-1;for(var n=0,r=t.length-1;n<=r;){var o=Math.floor((r+n+1)/2);if(e<t[o].time)r=o-1;else{if(!(e>t[o].time))return o;n=o+1}}return Math.min(n,r)},t.prototype.findClosestLastIndexByTime=function(t){var e=this.cuepointChanges,n=this.binarySearch(e,t);if(null===n)return-1;for(var r=e.length;n<r-1&&e[n+1].time===t;)n++;return n},t.prototype.prepareCuepoint=function(){var t=this;(this._cuepoints||[]).forEach((function(e){null!==e.startTime&&void 0!==e.startTime&&e.startTime>=0&&t.cuepointChanges.push({time:e.startTime,type:o.Show,cuePoint:e}),null!==e.endTime&&void 0!==e.endTime&&e.endTime>=0&&t.cuepointChanges.push({time:e.endTime,type:o.Hide,cuePoint:e})})),this.cuepointChanges.sort((function(t,e){return t.time<e.time?-1:t.time===e.time?0:1})),a.debug("tracking "+this.cuepointChanges.length+" changes",{method:"prepareCuepoint",data:{changes:this.cuepointChanges}})},t}();e.CuepointEngine=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlayerContribRegistry=void 0;var r=function(){function t(){this._cache={}}return t.get=function(e){return e.__contrib__=e.__contrib__||{},e.__contrib__.services=e.__contrib__.services||new t,e.__contrib__.services},t.prototype.get=function(t){var e=this._cache[t];if(!e)throw new Error("cannot find resource with token "+t);return e},t.prototype.register=function(t,e){var n=this._cache[t];return n||(n=this._cache[t]={instance:e()}),n.instance},t}();e.PlayerContribRegistry=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KalturaLiveServices=void 0;var r=n(61),o=function(){function t(){}return t.getAnonymousUserId=function(e){return"undefined"==typeof Storage?t._generateAnonymousUserId(e):((n=localStorage.getItem("anonymousUserId"))||(n=t._generateAnonymousUserId(e),localStorage.setItem("anonymousUserId",n)),n);var n},t._generateAnonymousUserId=function(t){return"##"+t+"HashSeparator"+r.UUID.numberedUuidV1()+"##"},t}();e.KalturaLiveServices=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventsManager=void 0;var r=function(){function t(){this._eventListeners={},this._wildcardEventListeners=[]}return t.prototype.on=function(t,e){"*"!==t?(this._eventListeners[t]||(this._eventListeners[t]=[])).push(e):this._wildcardEventListeners.push(e)},t.prototype.off=function(t,e){if("*"!==t){var n=this._eventListeners[t];n&&n.splice(n.indexOf(e)>>>0,1)}else this._wildcardEventListeners.splice(this._wildcardEventListeners.indexOf(e)>>>0,1)},t.prototype.emit=function(t){(this._eventListeners[t.type]||[]).slice().map((function(e){e(t)})),this._wildcardEventListeners.slice().map((function(e){e(t)}))},t}();e.EventsManager=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0,e.debounce=function(t,e,n){var r;return void 0===e&&(e=50),void 0===n&&(n={isImmediate:!1}),function(){for(var o=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=function(){r=void 0,n.isImmediate||t.apply(o,i)},c=n.isImmediate&&void 0===r;void 0!==r&&clearTimeout(r),r=setTimeout(s,e),c&&t.apply(this,i)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KalturaPlayerUtils=void 0;var r=n(38),o=function(){function t(){}return t.getPlayerConfig=function(t,e,n,o){var i=r.ObjectUtils.get(t.config,e,{});return r.ObjectUtils.mergeDefaults(i,n,o)},t}();e.KalturaPlayerUtils=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayUtils=void 0;var r=n(38),o=function(){function t(){}return t.findIndex=function(t,e){for(var n=0;n<t.length;){if(e(t[n]))return n;n++}return-1},t.sortByKey=function(t,e){return t.sort((function(t,n){var o=r.ObjectUtils.get(t,e,null),i=r.ObjectUtils.get(n,e,null);return o<i?-1:o>i?1:0}))},t}();e.ArrayUtils=o},function(t,e,n){"use strict";n.r(e),n.d(e,"v1",(function(){return g})),n.d(e,"v3",(function(){return E})),n.d(e,"v4",(function(){return k})),n.d(e,"v5",(function(){return P})),n.d(e,"NIL",(function(){return O})),n.d(e,"version",(function(){return M})),n.d(e,"validate",(function(){return s})),n.d(e,"stringify",(function(){return f})),n.d(e,"parse",(function(){return _}));var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function i(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(t){return"string"==typeof t&&a.test(t)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var l,p,f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},h=0,d=0,g=function(t,e,n){var r=e&&n||0,o=e||new Array(16),a=(t=t||{}).node||l,s=void 0!==t.clockseq?t.clockseq:p;if(null==a||null==s){var c=t.random||(t.rng||i)();null==a&&(a=l=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==s&&(s=p=16383&(c[6]<<8|c[7]))}var u=void 0!==t.msecs?t.msecs:Date.now(),g=void 0!==t.nsecs?t.nsecs:d+1,_=u-h+(g-d)/1e4;if(_<0&&void 0===t.clockseq&&(s=s+1&16383),(_<0||u>h)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=u,d=g,p=s;var m=(1e4*(268435455&(u+=122192928e5))+g)%4294967296;o[r++]=m>>>24&255,o[r++]=m>>>16&255,o[r++]=m>>>8&255,o[r++]=255&m;var y=u/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=s>>>8|128,o[r++]=255&s;for(var v=0;v<6;++v)o[r+v]=a[v];return e||f(o)},_=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n},m=function(t,e,n){function r(t,r,o,i){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"==typeof r&&(r=_(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+t.length);if(a.set(r),a.set(t,r.length),(a=n(a))[6]=15&a[6]|e,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return f(a)}try{r.name=t}catch(t){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};function y(t){return 14+(t+64>>>9<<4)+1}function v(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function b(t,e,n,r,o,i){return v((a=v(v(e,t),v(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function C(t,e,n,r,o,i,a){return b(e&n|~e&r,t,e,o,i,a)}function w(t,e,n,r,o,i,a){return b(e&r|n&~r,t,e,o,i,a)}function A(t,e,n,r,o,i,a){return b(e^n^r,t,e,o,i,a)}function x(t,e,n,r,o,i,a){return b(n^(e|~r),t,e,o,i,a)}var E=m("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return function(t){for(var e=[],n=32*t.length,r=0;r<n;r+=8){var o=t[r>>5]>>>r%32&255,i=parseInt("0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o),16);e.push(i)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[y(e)-1]=e;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<t.length;a+=16){var s=n,c=r,u=o,l=i;n=C(n,r,o,i,t[a],7,-680876936),i=C(i,n,r,o,t[a+1],12,-389564586),o=C(o,i,n,r,t[a+2],17,606105819),r=C(r,o,i,n,t[a+3],22,-1044525330),n=C(n,r,o,i,t[a+4],7,-176418897),i=C(i,n,r,o,t[a+5],12,1200080426),o=C(o,i,n,r,t[a+6],17,-1473231341),r=C(r,o,i,n,t[a+7],22,-45705983),n=C(n,r,o,i,t[a+8],7,1770035416),i=C(i,n,r,o,t[a+9],12,-1958414417),o=C(o,i,n,r,t[a+10],17,-42063),r=C(r,o,i,n,t[a+11],22,-1990404162),n=C(n,r,o,i,t[a+12],7,1804603682),i=C(i,n,r,o,t[a+13],12,-40341101),o=C(o,i,n,r,t[a+14],17,-1502002290),n=w(n,r=C(r,o,i,n,t[a+15],22,1236535329),o,i,t[a+1],5,-165796510),i=w(i,n,r,o,t[a+6],9,-1069501632),o=w(o,i,n,r,t[a+11],14,643717713),r=w(r,o,i,n,t[a],20,-373897302),n=w(n,r,o,i,t[a+5],5,-701558691),i=w(i,n,r,o,t[a+10],9,38016083),o=w(o,i,n,r,t[a+15],14,-660478335),r=w(r,o,i,n,t[a+4],20,-405537848),n=w(n,r,o,i,t[a+9],5,568446438),i=w(i,n,r,o,t[a+14],9,-1019803690),o=w(o,i,n,r,t[a+3],14,-187363961),r=w(r,o,i,n,t[a+8],20,1163531501),n=w(n,r,o,i,t[a+13],5,-1444681467),i=w(i,n,r,o,t[a+2],9,-51403784),o=w(o,i,n,r,t[a+7],14,1735328473),n=A(n,r=w(r,o,i,n,t[a+12],20,-1926607734),o,i,t[a+5],4,-378558),i=A(i,n,r,o,t[a+8],11,-2022574463),o=A(o,i,n,r,t[a+11],16,1839030562),r=A(r,o,i,n,t[a+14],23,-35309556),n=A(n,r,o,i,t[a+1],4,-1530992060),i=A(i,n,r,o,t[a+4],11,1272893353),o=A(o,i,n,r,t[a+7],16,-155497632),r=A(r,o,i,n,t[a+10],23,-1094730640),n=A(n,r,o,i,t[a+13],4,681279174),i=A(i,n,r,o,t[a],11,-358537222),o=A(o,i,n,r,t[a+3],16,-722521979),r=A(r,o,i,n,t[a+6],23,76029189),n=A(n,r,o,i,t[a+9],4,-640364487),i=A(i,n,r,o,t[a+12],11,-421815835),o=A(o,i,n,r,t[a+15],16,530742520),n=x(n,r=A(r,o,i,n,t[a+2],23,-995338651),o,i,t[a],6,-198630844),i=x(i,n,r,o,t[a+7],10,1126891415),o=x(o,i,n,r,t[a+14],15,-1416354905),r=x(r,o,i,n,t[a+5],21,-57434055),n=x(n,r,o,i,t[a+12],6,1700485571),i=x(i,n,r,o,t[a+3],10,-1894986606),o=x(o,i,n,r,t[a+10],15,-1051523),r=x(r,o,i,n,t[a+1],21,-2054922799),n=x(n,r,o,i,t[a+8],6,1873313359),i=x(i,n,r,o,t[a+15],10,-30611744),o=x(o,i,n,r,t[a+6],15,-1560198380),r=x(r,o,i,n,t[a+13],21,1309151649),n=x(n,r,o,i,t[a+4],6,-145523070),i=x(i,n,r,o,t[a+11],10,-1120210379),o=x(o,i,n,r,t[a+2],15,718787259),r=x(r,o,i,n,t[a+9],21,-343485551),n=v(n,s),r=v(r,c),o=v(o,u),i=v(i,l)}return[n,r,o,i]}(function(t){if(0===t.length)return[];for(var e=8*t.length,n=new Uint32Array(y(e)),r=0;r<e;r+=8)n[r>>5]|=(255&t[r/8])<<r%32;return n}(t),8*t.length))})),k=function(t,e,n){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return f(r)};function T(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:return e^n^r;case 2:return e&n^e&r^n&r;case 3:return e^n^r}}function S(t,e){return t<<e|t>>>32-e}var P=m("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var o=0;o<r.length;++o)t.push(r.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,a=Math.ceil(i/16),s=new Array(a),c=0;c<a;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=t[64*c+4*l]<<24|t[64*c+4*l+1]<<16|t[64*c+4*l+2]<<8|t[64*c+4*l+3];s[c]=u}s[a-1][14]=8*(t.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(t.length-1)&4294967295;for(var p=0;p<a;++p){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=s[p][h];for(var d=16;d<80;++d)f[d]=S(f[d-3]^f[d-8]^f[d-14]^f[d-16],1);for(var g=n[0],_=n[1],m=n[2],y=n[3],v=n[4],b=0;b<80;++b){var C=Math.floor(b/20),w=S(g,5)+T(C,_,m,y)+v+e[C]+f[b]>>>0;v=y,y=m,m=S(_,30)>>>0,_=g,g=w}n[0]=n[0]+g>>>0,n[1]=n[1]+_>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+v>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),O="00000000-0000-0000-0000-000000000000",M=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}}])},function(t,e,n){"use strict";t.exports=function(t,e){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)||e?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this._executors=[],this._onCancel=t(this._onResolve.bind(this),this._onReject.bind(this),this)}return t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.prototype._onResolve=function(t){this._notifyExecutor(t)},t.prototype._onReject=function(t){this._notifyExecutor(t)},t.prototype._notifyExecutor=function(e){var n,r=this._executors.length>0?this._executors.splice(0,1)[0]:null;if(r)try{if(e instanceof Error?r.reject?n=r.reject(e):this._handleErrorOriginatedFromExecuter(e):r.resolve&&(n=r.resolve(e)),n instanceof t)return void n.then(this._onResolve.bind(this),this._onReject.bind(this));if(n instanceof Promise)return void n.then(this._onResolve.bind(this),this._onReject.bind(this));n=void 0===n?e:n,this._notifyExecutor(n)}catch(t){this._handleErrorOriginatedFromExecuter(t)}},t.prototype._handleErrorOriginatedFromExecuter=function(t){if(!(this._executors.length>0))throw t;this._notifyExecutor(t)},t.prototype.cancel=function(){this._onCancel&&this._onCancel()},t.prototype.then=function(t,e){return this._executors.push({resolve:t,reject:e}),this},t.prototype.catch=function(t){return this._executors.push({resolve:null,reject:t}),this},t}();e.CancelableAction=r},function(t,e,n){(function(t){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(18).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(15),i=n(6),a=n(9),s=n(23);function c(t,e){var n=t.trim();if(!e)return n;var r=-1!==n.indexOf("?");return n+(r?"&":"?")+function t(e,n){var r,o=[];for(r in e)if(e.hasOwnProperty(r)){var i=n?n+"["+r+"]":r,a=e[r];o.push(null!==a&&"object"==typeof a?t(a,i):encodeURIComponent(i)+"="+encodeURIComponent(a))}return o.join("&")}(e)}function u(t,e){var n=(t.getNetworkTag()||"").trim(),r=(e.clientTag||"").trim()||"ng-app";return n&&n.length?r+"_"+n:r}e.createEndpoint=function(t,e,n,o,i){var a=e.endpointUrl,s=u(t,e),l=a+"/api_v3/service/"+n;return o&&(l+="/action/"+o),c(l,r.__assign({},i||{},s?{clientTag:s}:{}))},e.buildUrl=c,e.createClientTag=u,e.buildQuerystring=function t(e,n){var r,o=[];for(r in e)if(e.hasOwnProperty(r)){var i=n?n+"["+r+"]":r,a=e[r];o.push(null!==a&&"object"==typeof a?t(a,i):encodeURIComponent(i)+"="+encodeURIComponent(a))}return o.join("&")},e.getHeaders=function(){return{Accept:"application/json","Content-Type":"application/json"}},e.prepareParameters=function(t,e,n){return Object.assign({},t.buildRequest(n),{apiVersion:s.environment.request.apiVersion,format:1})},e.createCancelableAction=function(t){return new o.CancelableAction((function(e,n){var r=new XMLHttpRequest,o=!1;return r.onreadystatechange=function(){if(4===r.readyState){if(o)return;o=!0;var t=void 0;try{t=200===r.status?JSON.parse(r.response):new a.KalturaClientException("client::requre-failure",r.responseText||"failed to transmit request")}catch(e){t=new Error(r.responseText)}t instanceof Error||t instanceof i.KalturaAPIException?n(t):e(t)}},r.open("POST",t.endpoint),t.headers&&Object.keys(t.headers).forEach((function(e){var n=t.headers[e];r.setRequestHeader(e,n)})),r.send(JSON.stringify(t.body)),function(){o||(o=!0,r.abort())}}))}},function(t,e,n){"use strict";(function(t){
|
|
24
|
-
/*!
|
|
25
|
-
* The buffer module from node.js, for the browser.
|
|
26
|
-
*
|
|
27
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
28
|
-
* @license MIT
|
|
29
|
-
*/
|
|
30
|
-
var r=n(109),o=n(110),i=n(40);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=f(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(e,n),o=(t=s(t,r)).write(e,n);o!==r&&(t=t.slice(0,o));return t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|h(e.length);return 0===(t=s(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):f(t,e);if("Buffer"===e.type&&i(e.data))return f(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function p(t,e){if(l(e),t=s(t,e<0?0:0|h(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|h(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function d(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(t).length;default:if(r)return D(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return S(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function _(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,o);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,o){var i,a=1,s=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=n;i<s;i++)if(u(t,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){for(var p=!0,f=0;f<c;f++)if(u(t,i+f)!==u(e,f)){p=!1;break}if(p)return i}return-1}function v(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function b(t,e,n,r){return q(D(e,t.length-n),t,n,r)}function C(t,e,n,r){return q(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return C(t,e,n,r)}function A(t,e,n,r){return q(U(e),t,n,r)}function x(t,e,n,r){return q(function(t,e){for(var n,r,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i,a,s,c,u=t[o],l=null,p=u>239?4:u>223?3:u>191?2:1;if(o+p<=n)switch(p){case 1:u<128&&(l=u);break;case 2:128==(192&(i=t[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=p}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return p(null,t)},c.allocUnsafeSlow=function(t){return p(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=d,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)_(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)_(this,e,e+3),_(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)_(this,e,e+7),_(this,e+1,e+6),_(this,e+2,e+5),_(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):g.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,o){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(i,a),u=this.slice(r,o),l=t.slice(e,n),p=0;p<s;++p)if(u[p]!==l[p]){i=u[p],a=l[p];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function S(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function P(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=F(t[i]);return o}function O(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function M(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function L(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function I(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,r,i){return i||I(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function K(t,e,n,r,i){return i||I(t,0,n,8),o.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var o=e-t;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},c.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||B(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||B(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);B(this,t,e,n,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<n&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);B(this,t,e,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return K(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return K(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,i=r-n;if(this===t&&n<e&&e<r)for(o=i-1;o>=0;--o)t[o+e]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var a=c.isBuffer(t)?t:D(new c(t,r).toString()),s=a.length;for(i=0;i<n-e;++i)this[i+e]=a[i%s]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function q(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n(11))},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,u=[],l=!1,p=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):p=-1,u.length&&h())}function h(){if(!l){var t=s(f);l=!0;for(var e=u.length;e;){for(c=u,u=[];++p<e;)c&&c[p].run();p=-1,e=u.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||l||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,o)}));default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return e.nextTick((function(){t.apply(null,i)}))}}}:t.exports=e}).call(this,n(19))},function(t,e,n){var r=n(18),o=r.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=a),i(o,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=o(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype.setNetworkTag=function(t){return!t||t.length>10?console.warn("cannot set network tag longer than 10 characters. ignoring tag '"+t):this._networkTag=t,this},e.prototype.getNetworkTag=function(){return this._networkTag},e}(n(2).KalturaObjectBase);e.KalturaRequestBase=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.environment={request:{apiVersion:"16.11.0",avoidQueryString:!1,fileFormatValue:1},response:{nestedResponse:!1,customErrorInHttp500:!1}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(58),i=function(t){function e(e){var n=t.call(this,e)||this;return void 0===n.acceptedTypes&&(n.acceptedTypes=[]),n}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{partnerId:{type:"n"},ks:{type:"s"},responseProfile:{type:"o",subTypeConstructor:o.KalturaBaseResponseProfile,subType:"KalturaBaseResponseProfile"}}),e},e}(n(2).KalturaObjectBase);e.KalturaRequestOptions=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__rest||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};Object.defineProperty(e,"__esModule",{value:!0});var a=n(107),s=n(10);e.HOUR=3600,e.toSeconds=function(t,n){void 0===n&&(n=!1);var r=(n?/(\d+):(\d{2}):(\d{2}).(\d{2,3}|\d{2})/:/(\d+):(\d{2}):(\d{2}),((\d{2,3}|\d{2}|\d{1}))?/).exec(t);if(null===r)return 0;for(var o=1;o<5;o++)r[o]=parseInt(r[o],10),isNaN(r[o])&&(r[o]=0);return r[1]*e.HOUR+60*r[2]+r[3]+r[4]/1e3},e.getCaptionsByFormat=function(t,n){switch(n.toLowerCase()){case"1":return u(t);case"2":return t=t.replace(/<span[^>]+\?>/i,"").replace(/<\/span>/i,"").replace(/<br><\/br>/g," ").replace(/<[//]{0,1}(SPAN|span)[^><]*>/g,""),e.TTML2Obj(t);case"3":return c(t);default:return[]}};var c=function(t){for(var n=t.replace(/\r/g,""),r=n.substring(0,200),o=n.substring(200),i=r.split(/\r?\n/),a=0;a<4;a++)/^\d+$/.test(r[0].charAt(0))||i.shift();(n=(n=(r=i.join("\n"))+o).split(/(\d+)?\n?(\d{2}:\d{2}:\d{2}[,.]\d{3}) --> (\d{2}:\d{2}:\d{2}[,.]\d{3}).*\n/g)).shift();var s=[];for(a=0;a<n.length;a+=4)s.push({id:s.length+1,startTime:e.toSeconds(n[a+1].trim(),!0),endTime:e.toSeconds(n[a+2].trim(),!0),text:n[a+3].trim()});return s},u=function(t){var n=t.replace(/\r/g,"");(n=n.split(/(\d+)?\n?(\d{2}:\d{2}:\d{2}[,.]\d{3}) --> (\d{2}:\d{2}:\d{2}[,.]\d{3}).*\n/g)).shift();for(var r=[],o=0;o<n.length;o+=4)r.push({id:r.length+1,startTime:e.toSeconds(n[o+1].trim()),endTime:e.toSeconds(n[o+2].trim()),text:n[o+3].trim()});return r};e.TTML2Obj=function(t){return a.xml2js(t,{compact:!0}).tt.body.div.p.map((function(t,n){var r=t._attributes,o=r.begin,a=r.end,s=(i(r,["begin","end"]),a.replace(/\./g,",")),c=o.replace(/\./g,",");return{id:n+1,endTime:e.toSeconds(s),startTime:e.toSeconds(c),text:(Array.isArray(t._text)?t._text.join(" "):t._text)||""}}))};var l=function(t){return t<10?"0"+t:t};e.secontsToTime=function(t,n){var r=new Date(0);return r.setSeconds(t),""+(n?function(t){var n=Math.floor(t/e.HOUR);return n>=1?n+":":""}(t):"")+l(r.getUTCMinutes())+":"+l(r.getUTCSeconds())},e.getConfigValue=function(t,e,n){var r=n;return"function"==typeof e&&e(t)&&(r=t),r},e.isBoolean=function(t){return"boolean"==typeof t},e.makePlainText=function(t){return t.reduce((function(t,e){return t+" "+e.text}),"")};var p=function(t){function e(e){return t.call(this,e,{responseType:"v",responseSubType:"",responseConstructor:null})||this}return o(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{service:{type:"c",default:"caption_captionasset"},action:{type:"c",default:"serve"},captionAssetId:{type:"s"}}),e},e}(s.KalturaRequest);e.CaptionAssetServeAction=p},function(t,e,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function p(t,e,n,r){var o,i,a,s;if(u(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),a=i[e]),void 0===a)a=i[e]=n,++t._eventsCount;else if("function"==typeof a?a=i[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(t))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function d(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):_(o,o.length)}function g(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function _(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[t];if(void 0===c)return!1;if("function"==typeof c)i(c,this,e);else{var u=c.length,l=_(c,u);for(n=0;n<u;++n)i(l[n],this,e)}return!0},s.prototype.addListener=function(t,e){return p(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return p(this,t,e,!0)},s.prototype.once=function(t,e){return u(e),this.on(t,h(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,h(this,t,e)),this},s.prototype.removeListener=function(t,e){var n,r,o,i,a;if(u(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){(e=t.exports=n(41)).Stream=e,e.Readable=e,e.Writable=n(28),e.Duplex=n(7),e.Transform=n(44),e.PassThrough=n(118)},function(t,e,n){"use strict";(function(e,r,o){var i=n(20);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var o=r.callback;e.pendingcb--,o(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=y;var s,c=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?r:i.nextTick;y.WritableState=m;var u=n(16);u.inherits=n(12);var l={deprecate:n(117)},p=n(42),f=n(21).Buffer,h=o.Uint8Array||function(){};var d,g=n(43);function _(){}function m(t,e){s=s||n(7),t=t||{};var r=e instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,u=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===t.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,o){--e.pendingcb,n?(i.nextTick(o,r),i.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(o(r),t._writableState.errorEmitted=!0,t.emit("error",r),x(t,e))}(t,n,r,e,o);else{var a=w(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||C(t,n),r?c(b,t,n,a,o):b(t,n,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(t){if(s=s||n(7),!(d.call(y,this)||this instanceof s))return new y(t);this._writableState=new m(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),p.call(this)}function v(t,e,n,r,o,i,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function b(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),x(t,e)}function C(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),i=e.corkedRequestsFree;i.entry=n;for(var s=0,c=!0;n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;o.allBuffers=c,v(t,e,!0,e.length,o,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,p=n.callback;if(v(t,e,!1,e.objectMode?1:u.length,u,l,p),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function w(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function A(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),x(t,e)}))}function x(t,e){var n=w(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(A,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}u.inherits(y,p),m.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(m.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===y&&(t&&t._writableState instanceof m)}})):d=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=t,f.isBuffer(r)||r instanceof h);return s&&!f.isBuffer(t)&&(t=function(t){return f.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=_),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),i.nextTick(e,n)}(this,n):(s||function(t,e,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,o,i){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=f.from(e,n));return e}(e,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var c=e.length<e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else v(t,e,!1,s,r,o,i);return c}(this,o,s,t,e,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||C(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,x(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(19),n(115).setImmediate,n(11))},function(t,e,n){"use strict";var r=n(21).Buffer,o=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=u,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=p,e=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}e.StringDecoder=i,i.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},i.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},i.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var o=a(e[r]);if(o>=0)return o>0&&(t.lastNeed=o-1),o;if(--r<n||-2===o)return 0;if((o=a(e[r]))>=0)return o>0&&(t.lastNeed=o-2),o;if(--r<n||-2===o)return 0;if((o=a(e[r]))>=0)return o>0&&(2===o?o=0:t.lastNeed=o-3),o;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){var r=n(31).isArray;t.exports={copyOptions:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n},ensureFlagExists:function(t,e){t in e&&"boolean"==typeof e[t]||(e[t]=!1)},ensureSpacesExists:function(t){"spaces"in t&&("number"==typeof t.spaces||"string"==typeof t.spaces)||(t.spaces=0)},ensureAlwaysArrayExists:function(t){"alwaysArray"in t&&("boolean"==typeof t.alwaysArray||r(t.alwaysArray))||(t.alwaysArray=!1)},ensureKeyExists:function(t,e){t+"Key"in e&&"string"==typeof e[t+"Key"]||(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}}},function(t,e){t.exports={isArray:function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(22),i=n(33),a=n(6),s=n(23),c=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.call(this,{})||this;return r.requests=[],r.requests=e,r}return r.__extends(e,t),e.prototype.buildRequest=function(e){for(var n=t.prototype.toRequestObject.call(this),r=0,o=this.requests.length;r<o;r++)n[r]=this.requests[r].buildRequest(e);return n},e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{service:{default:"multirequest",type:"c"}}),e},e.prototype._unwrapResponse=function(t){if(s.environment.response.nestedResponse){if(t&&t.hasOwnProperty("result"))return t.result;if(t&&t.hasOwnProperty("error"))return t.error}return t},e.prototype.setCompletion=function(t){return this.callback=t,this},e.prototype.handleResponse=function(t){var e=[],n=this._unwrapResponse(t);if(n&&n instanceof Array&&n.length===this.requests.length){for(s=0,c=this.requests.length;s<c;s++){var r=n[s];e.push(this.requests[s].handleResponse(r))}if(this.callback)try{this.callback(new i.KalturaMultiResponse(e))}catch(t){}}else for(var o=new a.KalturaAPIException("server response is invalid, expected array of "+this.requests.length,"client::response_type_error",null),s=0,c=this.requests.length;s<c;s++)e.push(this.requests[s].handleResponse(o));return new i.KalturaMultiResponse(e)},e}(o.KalturaRequestBase);e.KalturaMultiRequest=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(t){function e(e){var n=this.constructor;void 0===e&&(e=[]);var r=t.call(this)||this;return n&&Object.setPrototypeOf(r,n.prototype),e&&e.length>0&&r.push.apply(r,e),r}return r.__extends(e,t),e.prototype.hasErrors=function(){return this.filter((function(t){return t.error})).length>0},e.prototype.getFirstError=function(){for(var t=null,e=0;e<this.length&&!(t=this[e].error);e++);return t},e}(Array);e.KalturaMultiResponse=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){this.result=t,this.error=e};e.KalturaResponse=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(t){function e(e,n){var r=n.responseType,o=n.responseSubType,i=n.responseConstructor,a=t.call(this,e,{responseType:r,responseSubType:o,responseConstructor:i})||this;return a.uploadedFileSize=0,a.uploadedFileSize=e.uploadedFileSize,a}return r.__extends(e,t),e.prototype.setProgress=function(t){return this._progressCallback=t,this},e.prototype._getProgressCallback=function(){return this._progressCallback},e.prototype.supportChunkUpload=function(){var t=this._getMetadata().properties;return!!this._responseConstructor&&(new this._responseConstructor).hasMetadataProperty("uploadedFileSize")&&!!t.resume&&!!t.resumeAt&&!!t.finalChunk},e.prototype.getFileInfo=function(){var t=this._getMetadata().properties,e=Object.keys(t).find((function(e){return"f"===t[e].type}));return e?{propertyName:e,file:this[e]}:null},e.prototype.toRequestObject=function(){var e=t.prototype.toRequestObject.call(this),n=this.getFileInfo().propertyName;return n&&delete e[n],e},e}(n(10).KalturaRequest);e.KalturaUploadRequest=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.cap="4",t.dfxp="2",t.scc="5",t.srt="1",t.webvtt="3"}(e.KalturaCaptionType||(e.KalturaCaptionType={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.deleted=3]="deleted",t[t.error=-1]="error",t[t.exporting=9]="exporting",t[t.importing=7]="importing",t[t.queued=0]="queued",t[t.ready=2]="ready"}(e.KalturaCaptionAssetStatus||(e.KalturaCaptionAssetStatus={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaAssetFilter"},typeIn:{type:"s"}}),e},e}(n(67).KalturaAssetBaseFilter);e.KalturaAssetFilter=i,o.KalturaTypesFactory.registerType("KalturaAssetFilter",i)},function(t,e,n){var r,o,i=n(108),a=n(30),s=n(31).isArray;function c(t){var e=Number(t);if(!isNaN(e))return e;var n=t.toLowerCase();return"true"===n||"false"!==n&&t}function u(t,e){var n;if(r.compact){if(!o[r[t+"Key"]]&&(s(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[t+"Key"]):r.alwaysArray)&&(o[r[t+"Key"]]=[]),o[r[t+"Key"]]&&!s(o[r[t+"Key"]])&&(o[r[t+"Key"]]=[o[r[t+"Key"]]]),t+"Fn"in r&&"string"==typeof e&&(e=r[t+"Fn"](e,o)),"instruction"===t&&("instructionFn"in r||"instructionNameFn"in r))for(n in e)if(e.hasOwnProperty(n))if("instructionFn"in r)e[n]=r.instructionFn(e[n],n,o);else{var i=e[n];delete e[n],e[r.instructionNameFn(n,i,o)]=i}s(o[r[t+"Key"]])?o[r[t+"Key"]].push(e):o[r[t+"Key"]]=e}else{o[r.elementsKey]||(o[r.elementsKey]=[]);var a={};if(a[r.typeKey]=t,"instruction"===t){for(n in e)if(e.hasOwnProperty(n))break;a[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(n,e,o):n,r.instructionHasAttributes?(a[r.attributesKey]=e[n][r.attributesKey],"instructionFn"in r&&(a[r.attributesKey]=r.instructionFn(a[r.attributesKey],n,o))):("instructionFn"in r&&(e[n]=r.instructionFn(e[n],n,o)),a[r.instructionKey]=e[n])}else t+"Fn"in r&&(e=r[t+"Fn"](e,o)),a[r[t+"Key"]]=e;r.addParent&&(a[r.parentKey]=o),o[r.elementsKey].push(a)}}function l(t){var e;if("attributesFn"in r&&t&&(t=r.attributesFn(t,o)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&t)for(e in t)if(t.hasOwnProperty(e)&&(r.trim&&(t[e]=t[e].trim()),r.nativeTypeAttributes&&(t[e]=c(t[e])),"attributeValueFn"in r&&(t[e]=r.attributeValueFn(t[e],e,o)),"attributeNameFn"in r)){var n=t[e];delete t[e],t[r.attributeNameFn(e,t[e],o)]=n}return t}function p(t){var e={};if(t.body&&("xml"===t.name.toLowerCase()||r.instructionHasAttributes)){for(var n,i=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(n=i.exec(t.body));)e[n[1]]=n[2]||n[3]||n[4];e=l(e)}if("xml"===t.name.toLowerCase()){if(r.ignoreDeclaration)return;o[r.declarationKey]={},Object.keys(e).length&&(o[r.declarationKey][r.attributesKey]=e),r.addParent&&(o[r.declarationKey][r.parentKey]=o)}else{if(r.ignoreInstruction)return;r.trim&&(t.body=t.body.trim());var a={};r.instructionHasAttributes&&Object.keys(e).length?(a[t.name]={},a[t.name][r.attributesKey]=e):a[t.name]=t.body,u("instruction",a)}}function f(t,e){var n;if("object"==typeof t&&(e=t.attributes,t=t.name),e=l(e),"elementNameFn"in r&&(t=r.elementNameFn(t,o)),r.compact){var i;if(n={},!r.ignoreAttributes&&e&&Object.keys(e).length)for(i in n[r.attributesKey]={},e)e.hasOwnProperty(i)&&(n[r.attributesKey][i]=e[i]);t in o||(s(r.alwaysArray)?-1===r.alwaysArray.indexOf(t):!r.alwaysArray)||(o[t]=[]),o[t]&&!s(o[t])&&(o[t]=[o[t]]),s(o[t])?o[t].push(n):o[t]=n}else o[r.elementsKey]||(o[r.elementsKey]=[]),(n={})[r.typeKey]="element",n[r.nameKey]=t,!r.ignoreAttributes&&e&&Object.keys(e).length&&(n[r.attributesKey]=e),r.alwaysChildren&&(n[r.elementsKey]=[]),o[r.elementsKey].push(n);n[r.parentKey]=o,o=n}function h(t){r.ignoreText||(t.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(t=t.trim()),r.nativeType&&(t=c(t)),r.sanitize&&(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),u("text",t))}function d(t){r.ignoreComment||(r.trim&&(t=t.trim()),u("comment",t))}function g(t){var e=o[r.parentKey];r.addParent||delete o[r.parentKey],o=e}function _(t){r.ignoreCdata||(r.trim&&(t=t.trim()),u("cdata",t))}function m(t){r.ignoreDoctype||(t=t.replace(/^ /,""),r.trim&&(t=t.trim()),u("doctype",t))}function y(t){t.note=t}t.exports=function(t,e){var n=i.parser(!0,{}),s={};if(o=s,r=function(t){return r=a.copyOptions(t),a.ensureFlagExists("ignoreDeclaration",r),a.ensureFlagExists("ignoreInstruction",r),a.ensureFlagExists("ignoreAttributes",r),a.ensureFlagExists("ignoreText",r),a.ensureFlagExists("ignoreComment",r),a.ensureFlagExists("ignoreCdata",r),a.ensureFlagExists("ignoreDoctype",r),a.ensureFlagExists("compact",r),a.ensureFlagExists("alwaysChildren",r),a.ensureFlagExists("addParent",r),a.ensureFlagExists("trim",r),a.ensureFlagExists("nativeType",r),a.ensureFlagExists("nativeTypeAttributes",r),a.ensureFlagExists("sanitize",r),a.ensureFlagExists("instructionHasAttributes",r),a.ensureFlagExists("captureSpacesBetweenElements",r),a.ensureAlwaysArrayExists(r),a.ensureKeyExists("declaration",r),a.ensureKeyExists("instruction",r),a.ensureKeyExists("attributes",r),a.ensureKeyExists("text",r),a.ensureKeyExists("comment",r),a.ensureKeyExists("cdata",r),a.ensureKeyExists("doctype",r),a.ensureKeyExists("type",r),a.ensureKeyExists("name",r),a.ensureKeyExists("elements",r),a.ensureKeyExists("parent",r),a.checkFnExists("doctype",r),a.checkFnExists("instruction",r),a.checkFnExists("cdata",r),a.checkFnExists("comment",r),a.checkFnExists("text",r),a.checkFnExists("instructionName",r),a.checkFnExists("elementName",r),a.checkFnExists("attributeName",r),a.checkFnExists("attributeValue",r),a.checkFnExists("attributes",r),r}(e),n.opt={strictEntities:!0},n.onopentag=f,n.ontext=h,n.oncomment=d,n.onclosetag=g,n.onerror=y,n.oncdata=_,n.ondoctype=m,n.onprocessinginstruction=p,n.write(t).close(),s[r.elementsKey]){var c=s[r.elementsKey];delete s[r.elementsKey],s[r.elementsKey]=c,delete s.text}return s}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";(function(e,r){var o=n(20);t.exports=v;var i,a=n(40);v.ReadableState=y;n(26).EventEmitter;var s=function(t,e){return t.listeners(e).length},c=n(42),u=n(21).Buffer,l=e.Uint8Array||function(){};var p=n(16);p.inherits=n(12);var f=n(112),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,g=n(113),_=n(43);p.inherits(v,c);var m=["error","close","destroy","pause","resume"];function y(t,e){t=t||{};var r=e instanceof(i=i||n(7));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=n(29).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function v(t){if(i=i||n(7),!(this instanceof v))return new v(t);this._readableState=new y(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function b(t,e,n,r,o){var i,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,A(t)}(t,a)):(o||(i=function(t,e){var n;r=e,u.isBuffer(r)||r instanceof l||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,e)),i?t.emit("error",i):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):C(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?C(t,a,e,!1):E(t,a)):C(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function C(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&A(t)),E(t,e)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=_.destroy,v.prototype._undestroy=_.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=u.from(t,e),e=""),n=!0),b(this,t,e,!1,n)},v.prototype.unshift=function(t){return b(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return d||(d=n(29).StringDecoder),this._readableState.decoder=new d(t),this._readableState.encoding=t,this};function w(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function A(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?o.nextTick(x,t):x(t))}function x(t){h("emit readable"),t.emit("readable"),P(t)}function E(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(k,t,e))}function k(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(h("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function T(t){h("readable nexttick read 0"),t.read(0)}function S(t,e){e.reading||(h("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),P(t),e.flowing&&!e.reading&&t.read(0)}function P(t){var e=t._readableState;for(h("flow",e.flowing);e.flowing&&null!==t.read(););}function O(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,o=n.data;t-=o.length;for(;n=n.next;){var i=n.data,a=t>i.length?i.length:t;if(a===i.length?o+=i:o+=i.slice(0,t),0===(t-=a)){a===i.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=i.slice(a));break}++r}return e.length-=r,o}(t,e):function(t,e){var n=u.allocUnsafe(t),r=e.head,o=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var i=r.data,a=t>i.length?i.length:t;if(i.copy(n,n.length-t,0,a),0===(t-=a)){a===i.length?(++o,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=i.slice(a));break}++o}return e.length-=o,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function M(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,o.nextTick(B,e,t))}function B(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function L(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}v.prototype.read=function(t){h("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?M(this):A(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&M(this),null;var r,o=e.needReadable;return h("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&h("length less than watermark",o=!0),e.ended||e.reading?h("reading or ended",o=!1):o&&(h("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=w(n,e))),null===(r=t>0?O(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&M(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var c=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?l:v;function u(e,r){h("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),t.removeListener("close",m),t.removeListener("finish",y),t.removeListener("drain",p),t.removeListener("error",_),t.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",v),n.removeListener("data",g),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||p())}function l(){h("onend"),t.end()}i.endEmitted?o.nextTick(c):n.once("end",c),t.on("unpipe",u);var p=function(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,P(t))}}(n);t.on("drain",p);var f=!1;var d=!1;function g(e){h("ondata"),d=!1,!1!==t.write(e)||d||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==L(i.pipes,t))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function _(e){h("onerror",e),v(),t.removeListener("error",_),0===s(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",y),v()}function y(){h("onfinish"),t.removeListener("close",m),v()}function v(){h("unpipe"),n.unpipe(t)}return n.on("data",g),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",_),t.once("close",m),t.once("finish",y),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var a=L(e.pipes,t);return-1===a?this:(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)},v.prototype.on=function(t,e){var n=c.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&A(this):o.nextTick(T,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(S,t,e))}(this,t)),this},v.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var o in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(h("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(e.push(o)||(r=!0,t.pause()))})),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var i=0;i<m.length;i++)t.on(m[i],this.emit.bind(this,m[i]));return this._read=function(e){h("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=O}).call(this,n(11),n(19))},function(t,e,n){t.exports=n(26).EventEmitter},function(t,e,n){"use strict";var r=n(20);function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){"use strict";t.exports=a;var r=n(7),o=n(16);function i(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);r.call(this,t),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",s)}function s(){var t=this;"function"==typeof this._flush?this._flush((function(e,n){c(t,e,n)})):c(this,null,null)}function c(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}o.inherits=n(12),o.inherits(a,r),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},function(t,e,n){var r,o,i=n(30),a=n(31).isArray;function s(t,e,n){return(!n&&t.spaces?"\n":"")+Array(e+1).join(t.spaces)}function c(t,e,n){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,o,r));var i,a,c,u,l=[];for(i in t)t.hasOwnProperty(i)&&null!==t[i]&&void 0!==t[i]&&(u=e.noQuotesForNativeAttributes&&"string"!=typeof t[i]?"":'"',a=(a=""+t[i]).replace(/"/g,"""),c="attributeNameFn"in e?e.attributeNameFn(i,a,o,r):i,l.push(e.spaces&&e.indentAttributes?s(e,n+1,!1):" "),l.push(c+"="+u+("attributeValueFn"in e?e.attributeValueFn(a,i,o,r):a)+u));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&l.push(s(e,n,!1)),l.join("")}function u(t,e,n){return r=t,o="xml",e.ignoreDeclaration?"":"<?xml"+c(t[e.attributesKey],e,n)+"?>"}function l(t,e,n){if(e.ignoreInstruction)return"";var i;for(i in t)if(t.hasOwnProperty(i))break;var a="instructionNameFn"in e?e.instructionNameFn(i,t[i],o,r):i;if("object"==typeof t[i])return r=t,o=a,"<?"+a+c(t[i][e.attributesKey],e,n)+"?>";var s=t[i]?t[i]:"";return"instructionFn"in e&&(s=e.instructionFn(s,i,o,r)),"<?"+a+(s?" "+s:"")+"?>"}function p(t,e){return e.ignoreComment?"":"\x3c!--"+("commentFn"in e?e.commentFn(t,o,r):t)+"--\x3e"}function f(t,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(t,o,r):t.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function h(t,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(t,o,r):t)+">"}function d(t,e){return e.ignoreText?"":(t=(t=(t=""+t).replace(/&/g,"&")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in e?e.textFn(t,o,r):t)}function g(t,e,n,i){return t.reduce((function(t,a){var u=s(e,n,i&&!t);switch(a.type){case"element":return t+u+function(t,e,n){r=t,o=t.name;var i=[],a="elementNameFn"in e?e.elementNameFn(t.name,t):t.name;i.push("<"+a),t[e.attributesKey]&&i.push(c(t[e.attributesKey],e,n));var s=t[e.elementsKey]&&t[e.elementsKey].length||t[e.attributesKey]&&"preserve"===t[e.attributesKey]["xml:space"];return s||(s="fullTagEmptyElementFn"in e?e.fullTagEmptyElementFn(t.name,t):e.fullTagEmptyElement),s?(i.push(">"),t[e.elementsKey]&&t[e.elementsKey].length&&(i.push(g(t[e.elementsKey],e,n+1)),r=t,o=t.name),i.push(e.spaces&&function(t,e){var n;if(t.elements&&t.elements.length)for(n=0;n<t.elements.length;++n)switch(t.elements[n][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;case"doctype":case"comment":case"element":default:return!0}return!1}(t,e)?"\n"+Array(n+1).join(e.spaces):""),i.push("</"+a+">")):i.push("/>"),i.join("")}(a,e,n);case"comment":return t+u+p(a[e.commentKey],e);case"doctype":return t+u+h(a[e.doctypeKey],e);case"cdata":return t+(e.indentCdata?u:"")+f(a[e.cdataKey],e);case"text":return t+(e.indentText?u:"")+d(a[e.textKey],e);case"instruction":var _={};return _[a[e.nameKey]]=a[e.attributesKey]?a:a[e.instructionKey],t+(e.indentInstruction?u:"")+l(_,e,n)}}),"")}function _(t,e,n){var r;for(r in t)if(t.hasOwnProperty(r))switch(r){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||n)return!0;break;case e.cdataKey:if(e.indentCdata||n)return!0;break;case e.instructionKey:if(e.indentInstruction||n)return!0;break;case e.doctypeKey:case e.commentKey:default:return!0}return!1}function m(t,e,n,i,a){r=t,o=e;var u="elementNameFn"in n?n.elementNameFn(e,t):e;if(null==t||""===t)return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(e,t)||n.fullTagEmptyElement?"<"+u+"></"+u+">":"<"+u+"/>";var l=[];if(e){if(l.push("<"+u),"object"!=typeof t)return l.push(">"+d(t,n)+"</"+u+">"),l.join("");t[n.attributesKey]&&l.push(c(t[n.attributesKey],n,i));var p=_(t,n,!0)||t[n.attributesKey]&&"preserve"===t[n.attributesKey]["xml:space"];if(p||(p="fullTagEmptyElementFn"in n?n.fullTagEmptyElementFn(e,t):n.fullTagEmptyElement),!p)return l.push("/>"),l.join("");l.push(">")}return l.push(y(t,n,i+1,!1)),r=t,o=e,e&&l.push((a?s(n,i,!1):"")+"</"+u+">"),l.join("")}function y(t,e,n,r){var o,i,c,g=[];for(i in t)if(t.hasOwnProperty(i))for(c=a(t[i])?t[i]:[t[i]],o=0;o<c.length;++o){switch(i){case e.declarationKey:g.push(u(c[o],e,n));break;case e.instructionKey:g.push((e.indentInstruction?s(e,n,r):"")+l(c[o],e,n));break;case e.attributesKey:case e.parentKey:break;case e.textKey:g.push((e.indentText?s(e,n,r):"")+d(c[o],e));break;case e.cdataKey:g.push((e.indentCdata?s(e,n,r):"")+f(c[o],e));break;case e.doctypeKey:g.push(s(e,n,r)+h(c[o],e));break;case e.commentKey:g.push(s(e,n,r)+p(c[o],e));break;default:g.push(s(e,n,r)+m(c[o],i,e,n,_(c[o],e)))}r=r&&!g.length}return g.join("")}t.exports=function(t,e){e=function(t){var e=i.copyOptions(t);return i.ensureFlagExists("ignoreDeclaration",e),i.ensureFlagExists("ignoreInstruction",e),i.ensureFlagExists("ignoreAttributes",e),i.ensureFlagExists("ignoreText",e),i.ensureFlagExists("ignoreComment",e),i.ensureFlagExists("ignoreCdata",e),i.ensureFlagExists("ignoreDoctype",e),i.ensureFlagExists("compact",e),i.ensureFlagExists("indentText",e),i.ensureFlagExists("indentCdata",e),i.ensureFlagExists("indentAttributes",e),i.ensureFlagExists("indentInstruction",e),i.ensureFlagExists("fullTagEmptyElement",e),i.ensureFlagExists("noQuotesForNativeAttributes",e),i.ensureSpacesExists(e),"number"==typeof e.spaces&&(e.spaces=Array(e.spaces+1).join(" ")),i.ensureKeyExists("declaration",e),i.ensureKeyExists("instruction",e),i.ensureKeyExists("attributes",e),i.ensureKeyExists("text",e),i.ensureKeyExists("comment",e),i.ensureKeyExists("cdata",e),i.ensureKeyExists("doctype",e),i.ensureKeyExists("type",e),i.ensureKeyExists("name",e),i.ensureKeyExists("elements",e),i.checkFnExists("doctype",e),i.checkFnExists("instruction",e),i.checkFnExists("cdata",e),i.checkFnExists("comment",e),i.checkFnExists("text",e),i.checkFnExists("instructionName",e),i.checkFnExists("elementName",e),i.checkFnExists("attributeName",e),i.checkFnExists("attributeValue",e),i.checkFnExists("attributes",e),i.checkFnExists("fullTagEmptyElement",e),e}(e);var n=[];return r=t,o="_root_",e.compact?n.push(y(t,e,0,!0)):(t[e.declarationKey]&&n.push(u(t[e.declarationKey],e,0)),t[e.elementsKey]&&t[e.elementsKey].length&&n.push(g(t[e.elementsKey],e,0,!n.length))),n.join("")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(47)},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=n(48),a=n(13),s=n(49),c=n(54),u=n(8),l=n(65),p=n(71),f=n(81),h=n(25),d=n(127),g=a.getContribLogger({class:"TranscriptPlugin",module:"transcript-plugin"}),_=a.ObjectUtils.get,m=function(){function t(t,e,n){var i=this;this._contribServices=t,this._configs=e,this._player=n,this._kitchenSinkItem=null,this._upperBarItem=null,this._isLoading=!1,this._hasError=!1,this._entryId="",this._captionsList=[],this._captions=[],this._kalturaClient=new c.KalturaClient,this._transcriptLanguage="default",this._triggeredByKeyboard=!1,this._handleIconClick=function(t){i._triggeredByKeyboard=0===t.x&&0===t.y},this._onTimeUpdate=function(){i._updateKitchenSink()},this._onError=function(t,e,n){var r=e||"Error message not defined";t instanceof c.KalturaClientException?r+=" (network error etc)":t instanceof c.KalturaAPIException&&(r+=" (api exception)"),g.error(r,{method:n||"Method not defined",data:{error:t}}),i._isLoading=!1,i._hasError=!0,i._updateKitchenSink()},this._loadCaptions=function(t){i._entryId&&i._getCaptionsByLang(t)},this._getCaptionsList=function(){var t=new l.KalturaCaptionAssetFilter({entryIdEqual:i._entryId}),e=new p.CaptionAssetListAction({filter:t});i._initLoading(),i._kalturaClient.request(e).then((function(t){t&&Array.isArray(t.objects)&&t.objects.length>0?(i._captionsList=t.objects.filter((function(t){return!1!==t.displayOnPlayer})),i._loadCaptions()):i._onError(void 0,"Data is empty","_getCaptionsList")}),(function(t){i._onError(t,"Failed to fetch captions list","_getCaptionsList")}))},this._filterCaptionAssetsByProperty=function(t,e,n){return t.filter((function(t){return _(t,n,null)===e}))},this._findCaptionAsset=function(t){if("string"==typeof t){var e=i._filterCaptionAssetsByProperty(i._captionsList,t,"languageCode");return e[0]?e[0]:i._captionsList[0]}var n=i._filterCaptionAssetsByProperty(i._captionsList,_(t,"payload.selectedTextTrack._language",null),"languageCode");if(1===n.length)return n[0];var r=i._filterCaptionAssetsByProperty(n,_(t,"payload.selectedTextTrack._label",null),"label");if(1===n.length)return r[0];var o=_(t,"payload.selectedTextTrack._id",-1),a=i._captionsList[o];return a||i._captionsList[0]},this._getCaptionsByLang=function(t){if(void 0===t&&(t=_(i._configs,"playerConfig.playback.textLanguage","")),"off"!==("string"==typeof t?t:_(t,"payload.selectedTextTrack._language",null))||!i._captions.length)if(i._captionsList&&i._captionsList.length>0){var e=i._findCaptionAsset(t);e?(i._transcriptLanguage=e.language,i._initLoading(),i._initKitchensinkAndUpperBarItems(),i._loadCaptionsAsset(e)):i._onError(void 0,"Current video doesn't have captions in selected language","_getCaptionsByLang")}else i._onError(void 0,"Current video doesn't have captions","_getCaptionsByLang")},this._loadCaptionsAsset=function(t){var e=new h.CaptionAssetServeAction({captionAssetId:t.id});i._kalturaClient.request(e).then((function(e){i._getCaptionData(e,t)}),(function(e){i._getCaptionData(e,t)}))},this._getCaptionData=function(t,e){var n=_(t,"error.message",t);n?(i._captions=i._parseCaptions(n,e),i._isLoading=!1,i._updateKitchenSink()):i._onError(void 0,"Captions data is empty","_loadCaptionsAsset")},this._parseCaptions=function(t,e){try{var n=i._getCaptionFormat(e);return 0===t.toString().indexOf("Error: ")&&(t=t.toString().replace("Error: ","")),h.getCaptionsByFormat(t,n)}catch(t){i._onError(t,"Failed to parse the caption file","_parseCaptions")}return[]},this._getCaptionFormat=function(t){var e=i._captionsList&&t&&(i._captionsList.find((function(e){return e.id===t.id}))||{});return _(e,"format","")},this._seekTo=function(t){i._player.currentTime=t},this._handleDownload=function(){var t=i._configs.playerConfig;if(i._captions){var e=_(t,"sources.metadata",{});u.downloadContent(h.makePlainText(i._captions),i._transcriptLanguage+(e.name?"-"+e.name:"")+".txt")}},this._handlePrint=function(){i._captions&&u.printContent(h.makePlainText(i._captions))},this._renderKitchenSinkContent=function(t){var e,n=i._configs.pluginConfig,a=n.showTime,s=n.scrollOffset,c=n.searchDebounceTimeout,u=n.searchNextPrevDebounceTimeout;return o.h(f.Transcript,r({},t,{showTime:h.getConfigValue(a,h.isBoolean,!0),scrollOffset:h.getConfigValue(s,Number.isInteger,0),searchDebounceTimeout:h.getConfigValue(c,Number.isInteger,250),searchNextPrevDebounceTimeout:h.getConfigValue(u,Number.isInteger,100),onSeek:i._seekTo,captions:i._captions,isLoading:i._isLoading,hasError:i._hasError,onRetryLoad:i._loadCaptions,currentTime:i._player.currentTime,videoDuration:i._player.duration,kitchenSinkActive:!!(null===(e=i._kitchenSinkItem)||void 0===e?void 0:e.isActive()),toggledWithEnter:i._triggeredByKeyboard}))}}return t.prototype.onPluginSetup=function(){var t=this._configs.playerConfig;this._kalturaClient.setOptions({clientTag:"playkit-js-transcript",endpointUrl:t.provider.env.serviceUrl}),this._kalturaClient.setDefaultRequestOptions({ks:t.provider.ks?t.provider.ks:t.session.ks}),this._player.addEventListener(this._player.Event.TIME_UPDATE,this._onTimeUpdate),this._player.addEventListener(this._player.Event.TEXT_TRACK_CHANGED,this._loadCaptions),this._player.addEventListener(this._player.Event.RESIZE,this._updateKitchenSink)},t.prototype.onRegisterUI=function(){},t.prototype.onMediaLoad=function(){var t=this._configs.playerConfig;this._entryId=t.sources.id,this._getCaptionsList()},t.prototype.onMediaUnload=function(){this._reset()},t.prototype._reset=function(){this._kitchenSinkItem&&(this._contribServices.kitchenSinkManager.remove(this._kitchenSinkItem),this._kitchenSinkItem=null),this._upperBarItem&&(this._contribServices.upperBarManager.remove(this._upperBarItem),this._upperBarItem=null),this._captionsList=[],this._captions=[],this._isLoading=!1,this._hasError=!1,this._entryId="",this._transcriptLanguage="default"},t.prototype._initKitchensinkAndUpperBarItems=function(){this._upperBarItem||this._kitchenSinkItem||(this._addPopoverIcon(),this._addKitchenSinkItem())},t.prototype._addPopoverIcon=function(){var t=this,e=this._configs.pluginConfig,n=e.downloadDisabled,r=e.printDisabled;this._upperBarItem=this._contribServices.upperBarManager.add({label:"Download transcript",onClick:function(){},renderItem:function(){return o.h(d.DownloadPrintMenu,{onDownload:t._handleDownload,onPrint:t._handlePrint,downloadDisabled:h.getConfigValue(n,h.isBoolean,!1),printDisabled:h.getConfigValue(r,h.isBoolean,!1),dropdownAriaLabel:"Download or print "+(t._captionsList.length>1?"current ":"")+"transcript",printButtonAriaLabel:"Print "+(t._captionsList.length>1?"current ":"")+"transcript",downloadButtonAriaLabel:"Download "+(t._captionsList.length>1?"current ":"")+"transcript"})}})},t.prototype._addKitchenSinkItem=function(){var t=this,e=this._configs.pluginConfig,n=e.expandMode,r=e.position,i=e.expandOnFirstPlay;this._kitchenSinkItem=this._contribServices.kitchenSinkManager.add({label:"Transcript",expandMode:n===u.KitchenSinkExpandModes.OverTheVideo?u.KitchenSinkExpandModes.OverTheVideo:u.KitchenSinkExpandModes.AlongSideTheVideo,renderIcon:function(){return o.h("button",{className:s.pluginButton,tabIndex:1,onClick:t._handleIconClick},o.h("div",{className:s.transcriptIcon}))},position:h.getConfigValue(r,(function(t){return"string"==typeof t&&(t===u.KitchenSinkPositions.Bottom||t===u.KitchenSinkPositions.Right)}),u.KitchenSinkPositions.Bottom),renderContent:this._renderKitchenSinkContent}),i&&this._kitchenSinkItem.activate()},t.prototype._updateKitchenSink=function(){this._kitchenSinkItem&&this._kitchenSinkItem.update()},t.prototype._initLoading=function(){this._isLoading&&!this._hasError||(this._isLoading=!0,this._hasError=!1,this._updateKitchenSink())},t}();e.TranscriptPlugin=m,i.ContribPluginManager.registerPlugin("playkit-js-transcript",(function(t){return new m(t.contribServices,t.configs,t.player)}),{defaultConfig:{expandMode:u.KitchenSinkExpandModes.AlongSideTheVideo,expandOnFirstPlay:!0,showTime:!0,position:u.KitchenSinkPositions.Bottom,scrollOffset:0,searchDebounceTimeout:250,searchNextPrevDebounceTimeout:100,downloadDisabled:!1,printDisabled:!1}})},function(t,e,n){var r,o;window,t.exports=(r=n(13),o=n(8),function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasOnMediaUnload=e.hasOnMediaLoad=e.hasOnPluginDestroy=e.hasOnPluginSetup=e.hasOnRegisterPresetsComponents=void 0,e.hasOnRegisterPresetsComponents=function(t){return"onRegisterPresetsComponents"in t},e.hasOnPluginSetup=function(t){return"onPluginSetup"in t},e.hasOnPluginDestroy=function(t){return"OnPluginDestroy"in t},e.hasOnMediaLoad=function(t){return"onMediaLoad"in t},e.hasOnMediaUnload=function(t){return"onMediaUnload"in t}},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CorePlugin=void 0;var i=n(1),a=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;return r._wasSetupExecuted=!1,r._wasSetupFailed=!1,r.handleMediaLoaded=function(){if(!r._wasSetupExecuted){if(i.hasOnPluginSetup(r._contribPlugin))try{r._contribPlugin.onPluginSetup()}catch(t){r._wasSetupFailed=!0,console.error("failed to execute plugin setup, suspend plugin",{error:t.message})}r._wasSetupExecuted=!0}if(!r._wasSetupFailed&&i.hasOnMediaLoad(r._contribPlugin))try{r._contribPlugin.onMediaLoad()}catch(t){console.error("failure during media load ",{error:t.message})}},r.player.addEventListener(r.player.Event.MEDIA_LOADED,r.handleMediaLoaded),r}return o(e,t),e.isValid=function(t){return!0},e.prototype.setContribContext=function(t){this._contribPlugin=t.contribPlugin,this._contribServices=t.contribServices},e.prototype.getUIComponents=function(){if(i.hasOnRegisterPresetsComponents(this._contribPlugin))try{this._contribPlugin.onRegisterPresetsComponents(this._contribServices.presetManager)}catch(t){console.error("failed to register contrib presets components",{error:t.message})}return this._contribServices.presetManager.registerComponents()},e.prototype.destroy=function(){if(this.reset(),this.player.removeEventListener(this.player.Event.MEDIA_LOADED,this.handleMediaLoaded),i.hasOnPluginDestroy(this._contribPlugin))try{this._contribPlugin.onPluginDestroy()}catch(t){console.error("failure during plugin destroy",{error:t.message})}},e.prototype.reset=function(){if(i.hasOnMediaUnload(this._contribPlugin))try{this._contribPlugin.onMediaUnload()}catch(t){console.error("failure during media unload",{error:t.message})}},e.defaultConfig={},e}(KalturaPlayer.core.BasePlugin);e.CorePlugin=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContribPluginFactories=void 0;var r=function(){function t(){}return t.factories={},t}();e.ContribPluginFactories=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContribServices=void 0;var r=n(0),o=n(9);n(0).enableLogIfNeeded();var i=function(){function t(t,e){var n=this;this._playerContribRegistry=t,this._options=e,this._addListeners=function(){var t=n._options.kalturaPlayer;t.addEventListener(t.Event.PLAYER_RESET,n.reset),t.addEventListener(t.Event.PLAYER_DESTROY,n._removeListeners)},this._removeListeners=function(){var t=n._options.kalturaPlayer;t.removeEventListener(t.Event.PLAYER_RESET,n.reset),t.removeEventListener(t.Event.PLAYER_DESTROY,n._removeListeners)},this.reset=function(){n._toastManager.reset(),n._overlayManager.reset(),n._bannerManager.reset(),n._floatingManager.reset(),n._kitchenSinkManager.reset(),n._upperBarManager.reset()},this._initialize(),this._addListeners()}return t.get=function(e){var n,o=(n=e.kalturaPlayer,r.PlayerContribRegistry.get(n));return o.register("ContribServices",(function(){return new t(o,e)}))},t.prototype._initialize=function(){var t=this._options.kalturaPlayer,e=new o.PresetManager({kalturaPlayer:t}),n=new o.FontManager({kalturaPlayer:t}),r=new o.UpperBarManager({kalturaPlayer:t,presetManager:e}),i=new o.FloatingManager({kalturaPlayer:t,presetManager:e}),a=new o.OverlayManager({presetManager:e,kalturaPlayer:t}),s=new o.BannerManager({kalturaPlayer:t,floatingManager:i}),c=new o.ToastManager({floatingManager:i}),u=new o.KitchenSinkManager({kalturaPlayer:t,presetManager:e,upperBarManager:r});n.loadFont(),this._toastManager=c,this._overlayManager=a,this._bannerManager=s,this._floatingManager=i,this._kitchenSinkManager=u,this._upperBarManager=r,this._presetManager=e,this._fontManager=n},Object.defineProperty(t.prototype,"presetManager",{get:function(){return this._presetManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"upperBarManager",{get:function(){return this._upperBarManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kitchenSinkManager",{get:function(){return this._kitchenSinkManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"floatingManager",{get:function(){return this._floatingManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"overlayManager",{get:function(){return this._overlayManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bannerManager",{get:function(){return this._bannerManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toastManager",{get:function(){return this._toastManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontManager",{get:function(){return this._fontManager},enumerable:!1,configurable:!0}),t.prototype.getPlayerKS=function(){var t=this._options.kalturaPlayer.config.session;return t&&t.ks?t.ks:null},t}();e.ContribServices=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContribPluginConfigs=void 0;var r=function(){function t(t,e){this._player=t,this._corePlugin=e}return Object.defineProperty(t.prototype,"playerConfig",{get:function(){return this._player.config},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pluginConfig",{get:function(){return this._corePlugin.config},enumerable:!1,configurable:!0}),t}();e.ContribPluginConfigs=r},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(1),e),o(n(2),e),o(n(7),e),o(n(4),e),o(n(5),e)},function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.ContribPluginManager=void 0;var o=n(3),i=n(8),a=n(2);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(a.CorePlugin.bind.apply(a.CorePlugin,r([void 0],t)))}var c=function(){function t(){}return t.registerPlugin=function(t,e,n){o.ContribPluginFactories.factories[t]={contribPluginFactory:e,corePluginFactory:(n?n.corePluginFactory:null)||s,defaultConfig:(n?n.defaultConfig:null)||{}},KalturaPlayer.core.registerPlugin(t,i.CorePluginProxy)},t}();e.ContribPluginManager=c},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CorePluginProxy=void 0;var i=n(3),a=n(4),s=n(0),c=n(5),u=s.getContribLogger({module:"contrib-plugin",class:"core-plugin-proxy"}),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.isValid=function(t){return!0},e.createPlugin=function(t,e,n){var r=i.ContribPluginFactories.factories[t];if(!r)throw u.error("cannot find requested contrib plugin",{data:{pluginName:t}}),new Error("cannot find contrib plugin factory named '"+t);try{var o=KalturaPlayer.core.utils.Object.mergeDeep({},r.defaultConfig||{},n),s=a.ContribServices.get({kalturaPlayer:e}),l=r.corePluginFactory(t,e,o),p=r.contribPluginFactory({corePlugin:l,contribServices:s,configs:new c.ContribPluginConfigs(e,l),player:e});return l.setContribContext({contribPlugin:p,contribServices:s}),u.info("created contrib plugin",{data:{pluginName:t}}),l}catch(e){throw u.error("failed to create contrib plugin",{data:{pluginName:t,error:e}}),e}},e.prototype.setPluginContext=function(t){this._contribPlugin=t},e}(KalturaPlayer.core.BasePlugin);e.CorePluginProxy=l},function(t,e){t.exports=o}]))},function(t,e,n){var r=n(50);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(4)(!1);var r=n(14),o=r(n(51)),i=r(n(52));e.push([t.i,".src-transcript-plugin__transcriptIcon--3qwtV{top:3px;left:2px;position:relative;background-image:url("+o+");background-repeat:no-repeat;cursor:pointer}:active>.src-transcript-plugin__transcriptIcon--3qwtV{background-image:url("+i+")}:disabled>.src-transcript-plugin__transcriptIcon--3qwtV{opacity:0.4}.src-transcript-plugin__pluginButton--3ar22,.src-transcript-plugin__transcriptIcon--3qwtV{min-height:36px;min-width:36px;opacity:0.8}.src-transcript-plugin__pluginButton--3ar22{padding:0;border:none;background:none}.src-transcript-plugin__pluginButton--3ar22:hover,.src-transcript-plugin__pluginButton--3ar22:active{border-radius:4px;background-color:rgba(0,0,0,0.8)}\n",""]),e.locals={transcriptIcon:"src-transcript-plugin__transcriptIcon--3qwtV",pluginButton:"src-transcript-plugin__pluginButton--3ar22"}},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/32/transcript%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32/transcript' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M23.1111111,19 C23.6020309,19 24,19.4477153 24,20 C24,20.5522847 23.6020309,21 23.1111111,21 L8.88888889,21 C8.39796911,21 8,20.5522847 8,20 C8,19.4477153 8.39796911,19 8.88888889,19 L23.1111111,19 Z M24.8695652,3 C26.5984566,3 28,4.24720677 28,5.78571429 L28,26.2142857 C28,27.7527932 26.5984566,29 24.8695652,29 L7.13043478,29 C5.40154339,29 4,27.7527932 4,26.2142857 L4,5.78571429 C4,4.24720677 5.40154339,3 7.13043478,3 L24.8695652,3 Z M26,17 L6,17 L6,26.0833333 C6,26.5895944 6.47127921,27 7.05263158,27 L24.9473684,27 C25.5287208,27 26,26.5895944 26,26.0833333 L26,17 Z M8.88888889,23 L23.1111111,23 C23.6020309,23 24,23.4477153 24,24 C24,24.5128358 23.6568532,24.9355072 23.2147743,24.9932723 L23.1111111,25 L8.88888889,25 C8.39796911,25 8,24.5522847 8,24 C8,23.4871642 8.34314684,23.0644928 8.78522567,23.0067277 L8.88888889,23 L23.1111111,23 L8.88888889,23 Z M24.9473684,5 L7.05263158,5 C6.47127921,5 6,5.41040565 6,5.91666667 L6,15 L26,15 L26,5.91666667 C26,5.41040565 25.5287208,5 24.9473684,5 Z' id='Shape' fill='%23ffffff'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/32/transcript%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32/transcript' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M23.1111111,19 C23.6020309,19 24,19.4477153 24,20 C24,20.5522847 23.6020309,21 23.1111111,21 L8.88888889,21 C8.39796911,21 8,20.5522847 8,20 C8,19.4477153 8.39796911,19 8.88888889,19 L23.1111111,19 Z M24.8695652,3 C26.5984566,3 28,4.24720677 28,5.78571429 L28,26.2142857 C28,27.7527932 26.5984566,29 24.8695652,29 L7.13043478,29 C5.40154339,29 4,27.7527932 4,26.2142857 L4,5.78571429 C4,4.24720677 5.40154339,3 7.13043478,3 L24.8695652,3 Z M26,17 L6,17 L6,26.0833333 C6,26.5895944 6.47127921,27 7.05263158,27 L24.9473684,27 C25.5287208,27 26,26.5895944 26,26.0833333 L26,17 Z M8.88888889,23 L23.1111111,23 C23.6020309,23 24,23.4477153 24,24 C24,24.5128358 23.6568532,24.9355072 23.2147743,24.9932723 L23.1111111,25 L8.88888889,25 C8.39796911,25 8,24.5522847 8,24 C8,23.4871642 8.34314684,23.0644928 8.78522567,23.0067277 L8.88888889,23 L23.1111111,23 L8.88888889,23 Z M24.9473684,5 L7.05263158,5 C6.47127921,5 6,5.41040565 6,5.91666667 L6,15 L26,15 L26,5.91666667 C26,5.41040565 25.5287208,5 24.9473684,5 Z' id='Shape' fill='%2301ACCD'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var o,i=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(55),e),r.__exportStar(n(15),e),r.__exportStar(n(59),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(9);e.KalturaClientException=o.KalturaClientException;var i=n(6);e.KalturaAPIException=i.KalturaAPIException;var a=n(32);e.KalturaMultiRequest=a.KalturaMultiRequest;var s=n(33);e.KalturaMultiResponse=s.KalturaMultiResponse;var c=n(10);e.KalturaRequest=c.KalturaRequest;var u=n(22);e.KalturaRequestBase=u.KalturaRequestBase;var l=n(35);e.KalturaUploadRequest=l.KalturaUploadRequest;var p=n(34);e.KalturaResponse=p.KalturaResponse;var f=n(1);e.KalturaTypesFactory=f.KalturaTypesFactory,r.__exportStar(n(24),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.fromServerDate=function(t){return t?new Date(1e3*t):null},t.toServerDate=function(t){return t?Math.round(t.getTime()/1e3):null},t.getStartDateValue=function(t){return t?(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t):null},t.getEndDateValue=function(t){return t?(t.setHours(23),t.setMinutes(59),t.setSeconds(59),t):null},t}();e.KalturaClientUtils=r},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.info=0]="info",t[t.warn=1]="warn",t[t.error=2]="error",t[t.none=100]="none"}(r=e.LogLevels||(e.LogLevels={})),e.LoggerSettings={logLevel:r.warn};var o=function(){function t(t){this._name=t}return t.prototype.warn=function(t){e.LoggerSettings.logLevel<=r.warn&&console.warn("[kaltura-client/"+this._name+"]: "+t)},t.prototype.info=function(t){e.LoggerSettings.logLevel<=r.info&&console.info("[kaltura-client/"+this._name+"]: "+t)},t.prototype.error=function(t){e.LoggerSettings.logLevel<=r.error&&console.error("[kaltura-client/"+this._name+"]: "+t)},t}();e.KalturaLogger=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaBaseResponseProfile"}}),e},e}(n(2).KalturaObjectBase);e.KalturaBaseResponseProfile=i,o.KalturaTypesFactory.registerType("KalturaBaseResponseProfile",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(10),o=n(32),i=n(60),a=n(35),s=n(61),c=n(62),u=n(63),l=n(9),p=n(64),f=n(24),h=n(15),d=function(){function t(t,e){this._options=t,this._defaultRequestOptions=new f.KalturaRequestOptions(e||{})}return t.prototype.appendOptions=function(t){if(!t)throw new l.KalturaClientException("client::append_options","missing required argument 'options'");this._options=Object.assign(this._options||{},t)},t.prototype.setOptions=function(t){if(!t)throw new l.KalturaClientException("client::set_options","missing required argument 'options'");this._options=t},t.prototype.appendDefaultRequestOptions=function(t){if(!t)throw new l.KalturaClientException("client::append_default_request_options","missing required argument 'args'");this._defaultRequestOptions=Object.assign(this._defaultRequestOptions||new f.KalturaRequestOptions,new f.KalturaRequestOptions(t))},t.prototype.setDefaultRequestOptions=function(t){if(!t)throw new l.KalturaClientException("client::set_default_request_options","missing required argument 'args'");this._defaultRequestOptions=new f.KalturaRequestOptions(t)},t.prototype._validateOptions=function(){return this._options?this._options.endpointUrl?this._options.clientTag?null:new l.KalturaClientException("client::missing_options","cannot transmit request, missing 'clientTag' in client options"):new l.KalturaClientException("client::missing_options","cannot transmit request, missing 'endpointUrl' in client options"):new l.KalturaClientException("client::missing_options","cannot transmit request, missing client options (did you forgot to provide options manually?)")},t.prototype.request=function(t){var e=this._validateOptions();return e?h.CancelableAction.reject(e):t instanceof i.KalturaFileRequest?(new c.KalturaFileRequestAdapter).transmit(t,this._options,this._defaultRequestOptions):t instanceof a.KalturaUploadRequest?new p.KalturaUploadRequestAdapter(this._options,this._defaultRequestOptions).transmit(t):t instanceof r.KalturaRequest?(new s.KalturaRequestAdapter).transmit(t,this._options,this._defaultRequestOptions):h.CancelableAction.reject(new l.KalturaClientException("client::request_type_error","unsupported request type requested"))},t.prototype.multiRequest=function(t){var e=this._validateOptions();if(e)return h.CancelableAction.reject(e);var n=t instanceof o.KalturaMultiRequest?t:t instanceof Array?new(o.KalturaMultiRequest.bind.apply(o.KalturaMultiRequest,[void 0].concat(t))):null;return n?n.requests.some((function(t){return t instanceof i.KalturaFileRequest}))?h.CancelableAction.reject(new l.KalturaClientException("client::invalid_request","multi-request not support requests of type 'KalturaFileRequest', use regular request instead")):(new u.KalturaMultiRequestAdapter).transmit(n,this._options,this._defaultRequestOptions):h.CancelableAction.reject(new l.KalturaClientException("client::invalid_request","Expected argument of type Array or KalturaMultiRequest"))},t}();e.KalturaClient=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(t){function e(e){return t.call(this,e,{responseType:"v",responseSubType:"",responseConstructor:null})||this}return r.__extends(e,t),e}(n(10).KalturaRequest);e.KalturaFileRequest=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(6),i=n(9),a=n(17),s=function(){function t(){}return t.prototype.transmit=function(t,e,n){var s=a.prepareParameters(t,e,n),c=s.service,u=s.action,l=r.__rest(s,["service","action"]),p=a.createEndpoint(t,e,c,u);return a.createCancelableAction({endpoint:p,headers:a.getHeaders(),body:l}).then((function(e){try{var n=t.handleResponse(e);if(n.error)throw n.error;return n.result}catch(t){if(t instanceof i.KalturaClientException||t instanceof o.KalturaAPIException)throw t;var r=t instanceof Error?t.message:"string"==typeof t?t:null;throw new i.KalturaClientException("client::response-unknown-error",r||"Failed to parse response")}}),(function(t){var e=t instanceof Error?t.message:"string"==typeof t?t:null;throw new i.KalturaClientException("client::request-network-error",e||"Error connecting to server")}))},t}();e.KalturaRequestAdapter=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(15),a=function(){function t(){}return t.prototype.transmit=function(t,e,n){var a=o.prepareParameters(t,e,n),s=a.service,c=a.action,u=r.__rest(a,["service","action"]),l=o.createEndpoint(t,e,s,c,u);return i.CancelableAction.resolve({url:l})},t}();e.KalturaFileRequestAdapter=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(6),a=n(9),s=function(){function t(){}return t.prototype.transmit=function(t,e,n){var s=o.prepareParameters(t,e,n),c=s.service,u=s.action,l=r.__rest(s,["service","action"]),p=o.createEndpoint(t,e,c,u);return o.createCancelableAction({endpoint:p,headers:o.getHeaders(),body:l}).then((function(e){try{return t.handleResponse(e)}catch(t){if(t instanceof a.KalturaClientException||t instanceof i.KalturaAPIException)throw t;var n=t instanceof Error?t.message:"string"==typeof t?t:null;throw new a.KalturaClientException("client::multi-response-unknown-error",n||"Failed to parse response")}}),(function(t){var e=t instanceof Error?t.message:"string"==typeof t?t:null;throw new a.KalturaClientException("client::multi-request-network-error",e||"Error connecting to server")}))},t}();e.KalturaMultiRequestAdapter=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(17),i=n(9),a=n(6),s=n(15),c=function(){function t(t,e){this.clientOptions=t,this.defaultRequestOptions=e}return t.prototype._chunkUploadSupported=function(t){var e=!("undefined"==typeof File||"undefined"==typeof Blob||"undefined"==typeof FileList||!Blob.prototype.webkitSlice&&!Blob.prototype.mozSlice&&!Blob.prototype.slice),n=t.supportChunkUpload();return!this.clientOptions.chunkFileDisabled&&e&&n},t.prototype.transmit=function(t){var e=this;return new s.CancelableAction((function(n,r,o){var s,c=!isNaN(t.uploadedFileSize)&&isFinite(t.uploadedFileSize)&&t.uploadedFileSize>0?t.uploadedFileSize:0,u={enabled:e._chunkUploadSupported(t),resume:!!c,finalChunk:!1,resumeAt:c},l=function(t){s=null,r(t)},p=function(o){if(!u.enabled||u.finalChunk){s=null;try{var c=t.handleResponse(o);c.error?r(c.error):n(c.result)}catch(t){if(t instanceof i.KalturaClientException||t instanceof a.KalturaAPIException)r(t);else{var f=t instanceof Error?t.message:"string"==typeof t?t:null;r(new i.KalturaClientException("client::response-unknown-error",f||"Failed to parse response"))}}}else s=e._chunkUpload(t,u).then(p,l)};return s=e._chunkUpload(t,u).then(p,l),function(){s&&(s.cancel(),s=null)}}))},t.prototype._getFormData=function(t,e,n){var r=new FormData;return r.append("fileName",e),r.append(t,n),r},t.prototype._chunkUpload=function(t,e){var n=this;return new s.CancelableAction((function(a,s){var c=o.prepareParameters(t,n.clientOptions,n.defaultRequestOptions),u=!1,l=t.getFileInfo(),p=l.propertyName,f=l.file,h=n._getFormData(p,f.name,f),d=0;if(e.enabled){var g=null,_=n.clientOptions?n.clientOptions.chunkFileSize:null;_&&Number.isFinite(_)&&!Number.isNaN(_)?_<1e5?(console.warn("user requested for invalid upload chunk size '"+_+"'. minimal value 100Kb. using minimal value 100Kb instead"),g=1e5):(console.log("using user requetsed chunk size '"+_+"'"),g=_):(console.log("using default chunk size 5Mb"),g=5e6),e.finalChunk=f.size-e.resumeAt<=g,d=e.resumeAt;var m=e.finalChunk?f.size:d+g;h=n._getFormData(p,f.name,f.slice(d,m,f.type)),c.resume=e.resume,c.resumeAt=e.resumeAt,c.finalChunk=e.finalChunk}else console.log("chunk upload not supported by browser or by request. Uploading the file as-is");var y=c.service,v=c.action,b=r.__rest(c,["service","action"]),C=o.createEndpoint(t,n.clientOptions,y,v,b),w=new XMLHttpRequest;w.onreadystatechange=function(){if(4===w.readyState){if(u)return;u=!0;var t=void 0;try{t=200===w.status?JSON.parse(w.response):new i.KalturaClientException("client::upload-failure",w.responseText||"failed to upload file")}catch(e){t=new i.KalturaClientException("client::upload-failure",e.message||"failed to upload file")}if(t instanceof Error)s(t);else{if(e.enabled){if(void 0===t.uploadedFileSize||null===t.uploadedFileSize)return void s(new i.KalturaClientException("client::upload-failure","uploaded chunk of file failed, expected response with property 'uploadedFileSize'"));e.finalChunk||(e.resumeAt=Number(t.uploadedFileSize),e.resume=!0)}a(t)}}};var A=t._getProgressCallback();return A&&w.upload.addEventListener("progress",(function(e){e.lengthComputable&&A.apply(t,[e.loaded+d,f.size])}),!1),w.open("POST",C),w.send(h),function(){u||(u=!0,w.abort())}}))},t}();e.KalturaUploadRequestAdapter=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaCaptionAssetFilter"}}),e},e}(n(66).KalturaCaptionAssetBaseFilter);e.KalturaCaptionAssetFilter=i,o.KalturaTypesFactory.registerType("KalturaCaptionAssetFilter",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(36),a=n(37),s=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaCaptionAssetBaseFilter"},captionParamsIdEqual:{type:"n"},captionParamsIdIn:{type:"s"},formatEqual:{type:"es",subTypeConstructor:i.KalturaCaptionType,subType:"KalturaCaptionType"},formatIn:{type:"s"},statusEqual:{type:"en",subTypeConstructor:a.KalturaCaptionAssetStatus,subType:"KalturaCaptionAssetStatus"},statusIn:{type:"s"},statusNotIn:{type:"s"}}),e},e}(n(38).KalturaAssetFilter);e.KalturaCaptionAssetBaseFilter=s,o.KalturaTypesFactory.registerType("KalturaCaptionAssetBaseFilter",s)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaAssetBaseFilter"},idEqual:{type:"s"},idIn:{type:"s"},entryIdEqual:{type:"s"},entryIdIn:{type:"s"},partnerIdEqual:{type:"n"},partnerIdIn:{type:"s"},sizeGreaterThanOrEqual:{type:"n"},sizeLessThanOrEqual:{type:"n"},tagsLike:{type:"s"},tagsMultiLikeOr:{type:"s"},tagsMultiLikeAnd:{type:"s"},createdAtGreaterThanOrEqual:{type:"d"},createdAtLessThanOrEqual:{type:"d"},updatedAtGreaterThanOrEqual:{type:"d"},updatedAtLessThanOrEqual:{type:"d"},deletedAtGreaterThanOrEqual:{type:"d"},deletedAtLessThanOrEqual:{type:"d"}}),e},e}(n(68).KalturaRelatedFilter);e.KalturaAssetBaseFilter=i,o.KalturaTypesFactory.registerType("KalturaAssetBaseFilter",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaRelatedFilter"}}),e},e}(n(69).KalturaFilter);e.KalturaRelatedFilter=i,o.KalturaTypesFactory.registerType("KalturaRelatedFilter",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(70),a=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaFilter"},orderBy:{type:"s"},advancedSearch:{type:"o",subTypeConstructor:i.KalturaSearchItem,subType:"KalturaSearchItem"}}),e},e}(n(2).KalturaObjectBase);e.KalturaFilter=a,o.KalturaTypesFactory.registerType("KalturaFilter",a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaSearchItem"}}),e},e}(n(2).KalturaObjectBase);e.KalturaSearchItem=i,o.KalturaTypesFactory.registerType("KalturaSearchItem",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(72),i=n(38),a=n(79),s=function(t){function e(e){return t.call(this,e,{responseType:"o",responseSubType:"KalturaCaptionAssetListResponse",responseConstructor:o.KalturaCaptionAssetListResponse})||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{service:{type:"c",default:"caption_captionasset"},action:{type:"c",default:"list"},filter:{type:"o",subTypeConstructor:i.KalturaAssetFilter,subType:"KalturaAssetFilter"},pager:{type:"o",subTypeConstructor:a.KalturaFilterPager,subType:"KalturaFilterPager"}}),e},e}(n(10).KalturaRequest);e.CaptionAssetListAction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(73),a=function(t){function e(e){var n=t.call(this,e)||this;return void 0===n.objects&&(n.objects=[]),n}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaCaptionAssetListResponse"},objects:{type:"a",readOnly:!0,subTypeConstructor:i.KalturaCaptionAsset,subType:"KalturaCaptionAsset"}}),e},e}(n(78).KalturaListResponse);e.KalturaCaptionAssetListResponse=a,o.KalturaTypesFactory.registerType("KalturaCaptionAssetListResponse",a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(74),a=n(75),s=n(76),c=n(36),u=n(37),l=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaCaptionAsset"},captionParamsId:{type:"n"},language:{type:"es",subTypeConstructor:i.KalturaLanguage,subType:"KalturaLanguage"},languageCode:{type:"es",readOnly:!0,subTypeConstructor:a.KalturaLanguageCode,subType:"KalturaLanguageCode"},isDefault:{type:"en",subTypeConstructor:s.KalturaNullableBoolean,subType:"KalturaNullableBoolean"},label:{type:"s"},format:{type:"es",subTypeConstructor:c.KalturaCaptionType,subType:"KalturaCaptionType"},status:{type:"en",readOnly:!0,subTypeConstructor:u.KalturaCaptionAssetStatus,subType:"KalturaCaptionAssetStatus"},parentId:{type:"s"},accuracy:{type:"n"},displayOnPlayer:{type:"b"},associatedTranscriptIds:{type:"s"}}),e},e}(n(77).KalturaAsset);e.KalturaCaptionAsset=l,o.KalturaTypesFactory.registerType("KalturaCaptionAsset",l)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.aa="Afar",t.aal="Afade",t.ab="Abkhazian",t.abe="Abnaki Western",t.abq="Abaza",t.abu="Abure",t.ace="Achinese",t.acf="Saint Lucian Creole French",t.acn="Achang",t.act="Achterhooks",t.acv="Achumawi",t.adj="Adioukrou",t.adt="Adynyamathanha",t.ady="Adyghe; Adygei",t.af="Afrikaans",t.agq="Aghem",t.agr="Aguaruna",t.agu="Aguacateco",t.agx="Aghul",t.aii="Assyrian Neo-Aramaic",t.ain="Ainu (Japan)",t.akk="Akkadian",t.akl="Aklanon",t.aku="Akum",t.akz="Alabama",t.alc="Qawasqar",t.ale="Aleut",t.alg="Algonquian languages",t.aln="Albanian (Gheg)",t.alq="Algonquin",t.als="Albanian (Tosk)",t.alt="Altai (Southern)",t.am="Amharic",t.ame="Yanesha",t.amw="Western Neo-Aramaic",t.ang="Old English",t.apj="Apache (Jicarilla)",t.apw="Apache (Western)",t.ar="Arabic",t.arb="Arabic (standard)",t.arc="Aramaic",t.ari="Arikara",t.arn="Araucanian",t.arp="Arapaho",t.asb="Assiniboine",t.ast="Asturian",t.as="Assamese",t.ath="Athapascan languages",t.atj="Atikamekw",t.auc="Waorani",t.avk="Kotava",t.awa="Awadhi",t.ay="Aymara",t.az="Azerbaijani",t.ba="Bashkir",t.bal="Baluchi",t.ban="Balinese",t.bar="Bavarian",t.bas="Basa (Cameroon)",t.bcc="Balochi Southern",t.bcr="Babine",t.bdj="Bai",t.be="Byelorussian (Belarusian)",t.bea="Beaver",t.bej="Beja",t.bem="Bemba (Zambia)",t.bew="Betawi",t.bfq="Badaga",t.bft="Balti",t.bg="Bulgarian",t.bh="Bihari",t.bhb="Bhili",t.bho="Bhojpuri",t.bi="Bislama",t.bik="Bikol",t.bin="Bini",t.bla="Siksika",t.bn="Bengali (Bangla)",t.bo="Tibetan",t.bpy="Bishnupriya Manipuri",t.br="Breton",t.bua="Buriat",t.bug="Buginese",t.bT="Arabic Tunisian Spoken",t.ca="Catalan",t.caa="Chor",t.cad="Caddo",t.caf="Carrier Southern",t.cay="Cayuga",t.cdo="Min Dong Chinese",t.ceb="Cebuano",t.chc="Catawba",t.chg="Chagatai",t.chm="Mari (Russia)",t.chn="Chinook jargon",t.cho="Choctaw",t.chp="Chipewyan",t.chr="Cherokee",t.chy="Cheyenne",t.cic="Chickasaw",t.cim="Cimbrian",t.ciw="Chippewa",t.cjs="Shor",t.cjy="Jinyu Chinese",t.ckt="Chukot",t.clc="Chilcotin",t.cld="Chaldean Neo-Aramaic",t.clm="Clallam Klallam",t.cmn="Mandarin Chinese",t.co="Corsican",t.coc="Cocopa",t.coj="Cochimi",t.com="Comanche",t.coo="Comox",t.cop="Coptic",t.cr="Cree",t.crg="Michif",t.crh="Crimean Tatar",t.crx="Carrier",t.cs="Czech",t.csb="Kashubian",t.cup="Cupeo",t.cy="Welsh",t.czh="Huizhou Chinese",t.da="Danish",t.dak="Dakota",t.dar="Dargwa",t.ddo="Tsez",t.de="German",t.del="Delaware",t.dgr="Dogrib",t.dhv="Dehu",t.dih="Kumiai",t.din="Dinka",t.dje="Zarma",t.dlg="Dolgan",t.dng="Dungan",t.doh="Dong",t.doi="Dogri (generic)",t.dsb="Sorbian Lower",t.dua="Duala",t.dyu="Dyula",t.dz="Bhutani",t.eee="E",t.egl="Emilian",t.el="Greek",t.en="English",t.enm="English Middle (1100-1500)",t.enGb="English (British)",t.enUs="English (American)",t.eo="Esperanto",t.es="Spanish",t.esXl="Spanish (Latin America)",t.et="Estonian",t.eu="Basque",t.eve="Even",t.evn="Evenki",t.fa="Farsi",t.fan="Fang (Equatorial Guinea)",t.fax="Fala",t.fi="Finnish",t.fil="Filipino",t.fit="Finnish (Tornedalen)",t.fj="Fiji",t.fo="Faeroese",t.fon="Fon",t.fr="French",t.frk="Frankish",t.frp="Franco-Prove",t.frr="Frisian Northern",t.frCa="French (Canada)",t.fuc="Pulaar",t.fur="Friulian",t.fvr="Fur",t.fy="Frisian",t.ga="Irish",t.gaa="Ga",t.gag="Gagauz",t.gan="Gan",t.gbz="Dari Zoroastrian",t.gd="Gaelic (Scottish)",t.gdm="Laal",t.geh="German Hutterite",t.gez="Geez",t.gil="Gilbertese",t.git="Gitxsan",t.gl="Galician",t.gld="Nanai",t.gn="Guarani",t.gom="Konkani Goan",t.grc="Greek Ancient (to 1453)",t.gsw="Swiss German Alemannic Alsatian",t.gu="Gujarati",t.gv="Gaelic (Manx)",t.gwi="Gwichin",t.ha="Hausa",t.haa="Han",t.hai="Haida",t.hak="Hakka",t.has="Haisla",t.haw="Hawaiian",t.he="Hebrew",t.hei="Heiltsuk",t.hi="Hindi",t.hid="Hidatsa",t.hil="Hiligaynon",t.hkk="Hokkien",t.hmn="Hmong",t.hni="Hani",t.hnn="Hainanese",t.hop="Hopi",t.hr="Croatian",t.hsb="Sorbian Upper",t.hu="Hungarian",t.hur="Halkomelem",t.hy="Armenian",t.ia="Interlingua",t.id="Indonesian",t.ie="Interlingue",t.ik="Inupiak",t.ikt="Inuinnaqtun",t.ilo="Iloko",t.in="Indonesian",t.inh="Ingush",t.iro="Iroquoian languages",t.is="Icelandic",t.it="Italian",t.itl="Itelmen",t.iu="Inuktitut",t.iw="Hebrew",t.izh="Ingrian",t.ja="Japanese",t.jbo="Lojban",t.jct="Judeo-Crimean Tatar",t.jge="Judeo-Georgian",t.ji="Yiddish",t.jut="Jutish",t.jv="Javanese",t.ka="Georgian",t.kaa="Karakalpak",t.kab="Kabyle",t.kaj="Jju",t.kap="Bezhta",t.kaw="Kawi",t.kbd="Kabardian",t.kca="Khanty",t.kdr="Karaim",t.kea="Kabuverdianu",t.kfa="Kodava",t.kfr="Kachchi",t.kha="Khasi",t.kic="Kickapoo",t.kim="Karagas",t.kio="Kiowa",t.kjh="Khakas",t.kjv="Kaikavian literary language (Kajkavian)",t.kk="Kazakh",t.kkz="Kaska",t.kl="Greenlandic",t.klj="Khalaj Turkic",t.km="Cambodian",t.kn="Kannada",t.knn="Konkani (specific)",t.ko="Korean",t.koi="Komi-Permyak",t.kok="Konkani (generic)",t.kos="Kosraean",t.kpe="Kpelle",t.kpo="Ikposo",t.kpy="Koryak",t.krc="Karachay-Balkar",t.krl="Karelian",t.ks="Kashmiri",t.ksh="Colognian",t.ksk="Kansa",t.ku="Kurdish",t.kum="Kumyk",t.kut="Kutenai",t.kwk="Kwakiutl",t.kxm="Khmer Northern",t.ky="Kirghiz",t.la="Latin",t.lad="Ladino",t.lah="Lahnda",t.lb="Luxembourgish (Letzeburgesch)",t.lbe="Lak",t.lez="Lezghian",t.lhu="Lahu",t.li="Limburgish ( Limburger)",t.lif="Limbu",t.lij="Ligurian",t.lil="Lillooet",t.lki="Laki",t.lkt="Lakota",t.lld="Ladin",t.lmo="Lombard",t.ln="Lingala",t.lo="Laothian",t.lom="Loma (Liberia)",t.loz="Lozi",t.lt="Lithuanian",t.lua="Luba-Lulua",t.lud="Ludian",t.lun="Lunda",t.luo="Luo (Kenya and Tanzania)",t.luq="Lucumi",t.lut="Lushootseed",t.lv="Latvian (Lettish)",t.lzz="Laz",t.mad="Madurese",t.mag="Magahi",t.mai="Maithili",t.mas="Masai",t.mdf="Moksha",t.men="Mende (Sierra Leone)",t.mez="Menominee",t.mfe="Morisyen",t.mfy="Mayo",t.mg="Malagasy",t.mhq="Mandan",t.mi="Maori",t.mic="Micmac",t.mid="Mandaic",t.min="Minangkabau",t.mk="Macedonian",t.ml="Malayalam",t.mn="Mongolian",t.mnc="Manchu",t.mni="Meitei",t.mnp="Min Bei Chinese",t.mns="Mansi",t.mnw="Mon",t.mo="Moldavian",t.moe="Montagnais",t.moh="Mohawk",t.mos="Mossi",t.mr="Marathi",t.mrw="Maranao",t.ms="Malay",t.mt="Maltese",t.mtq="Muong",t.mu="Multilingual",t.mus="Creek",t.mwl="Mirandese",t.mwr="Marwari",t.mxi="Mozarabic",t.my="Burmese",t.myp="Pirah",t.myv="Erzya",t.mzb="Tumzabt",t.na="Nauru",t.nap="Neapolitan",t.naq="Nama (Namibia)",t.ncg="Nisgaa",t.nds="Low German Low Saxon",t.ne="Nepali",t.new="Newari Nepal Bhasa",t.nio="Nganasan",t.niu="Niuean",t.niv="Gilyak Nivkh",t.nl="Dutch",t.no="Norwegian",t.nod="Thai (Northern)",t.nog="Nogai",t.non="Norse Old",t.nov="Novial",t.nsk="Naskapi",t.nso="Northern Sotho Pedi Sepedi",t.nym="Nyamwezi",t.nyo="Nyoro",t.nys="Nyungah",t.oc="Occitan",t.oj="Ojibwe, Ojibwa",t.ojb="Ojibwa Northwestern",t.ojc="Ojibwa Central",t.ojg="Ojibwa Eastern",t.ojs="Ojibwa Severn",t.ojw="Ojibwa Western",t.oka="Okanagan",t.om="Oromo (Afan, Galla)",t.one="Oneida",t.ono="Onondaga",t.ood="Tohono Oodham",t.or="Oriya",t.ota="Turkish Ottoman",t.otw="Ottawa",t.pa="Punjabi",t.pag="Pangasinan",t.pam="Pampanga",t.pap="Papiamento",t.pau="Palauan",t.pcd="Picard",t.pdc="German Pennsylvania",t.pdt="Plautdietsch",t.pes="Western Farsi",t.pfl="Pfaelzisch",t.pih="Pitcairn-Norfolk",t.pl="Polish",t.pms="Piedmontese",t.pnt="Pontic",t.pot="Potawatomi",t.ppi="Paipai",t.pqm="Malecite-Passamaquoddy",t.prd="Dari (Persian)",t.prg="Prussian",t.prp="Persian",t.prs="Persian (Dari)",t.ps="Pashto (Pushto)",t.pt="Portuguese",t.ptBr="Portuguese (Brazil)",t.qtz="Reserved for local use.",t.qu="Quechua",t.quc="Quich Central",t.qxq="Qashqai",t.rap="Rapanui",t.rar="Rarotongan",t.rcf="Runion Creole French",t.rgn="Romagnol",t.rm="Rhaeto-Romance",t.rme="Angloromani",t.rmf="Romani Kalo Finnish",t.rmo="Romani Sinte",t.rn="Kirundi (Rundi)",t.ro="Romanian",t.rom="Romany",t.ru="Russian",t.rue="Rusyn",t.ruo="Romanian Istro",t.rup="Aromanian",t.ruq="Romanian Megleno",t.rw="Kinyarwanda (Ruanda)",t.ryu="Okinawan Central",t.sa="Sanskrit",t.sah="Sakha",t.sal="Salishan languages",t.sam="Aramaic Samaritan",t.sat="Santali",t.scn="Sicilian",t.sco="Scots",t.scs="Slavey North",t.sd="Sindhi",t.sdc="Sardinian Sassarese",t.sec="Sechelt",t.see="Seneca",t.sei="Seri",t.sek="Sekani",t.sel="Selkup",t.sg="Sangro",t.sh="Serbo-Croatian",t.shh="Shoshoni",t.shi="Tachelhit",t.shs="Shuswap",t.shy="Tachawit",t.si="Sinhalese",t.sid="Sidamo",t.sjd="Sami Kildin",t.sjw="Shawnee",t.sk="Slovak",t.sl="Slovenian",t.slr="Salar",t.sm="Samoan",t.sma="Southern Sami",t.smi="Sami languages",t.smj="Lule Sami",t.smn="Inari Sami",t.sms="Skolt Sami",t.sn="Shona",t.snk="Soninke",t.so="Somali",t.sq="Albanian",t.sr="Serbian",t.srm="Saramaccan",t.srn="Sranan",t.ss="Siswati",t.st="Sesotho",t.sto="Stoney",t.stq="Saterland Frisian",t.str="Salish Straits",t.su="Sundanese",t.sux="Sumerian",t.sv="Swedish",t.sva="Svan",t.sw="Swahili (Kiswahili)",t.swb="Comorian",t.swg="Swabian",t.swl="Swedish Sign Language",t.sxu="Saxon Upper",t.syr="Syriac",t.szl="Silesian",t.ta="Tamil",t.tab="Tabassaran",t.taq="Tamasheq",t.tar="Tarahumara Central",t.tbw="Tagbanwa",t.tce="Southern Tutchone",t.tcx="Toda",t.tcy="Tulu",t.tdd="Tai Na",t.te="Telugu",t.teo="Teo Chew",t.tet="Tetum",t.tg="Tajik",t.tgx="Tagish",t.th="Thai",t.thp="Thompson",t.tht="Tahltan",t.ti="Tigrinya",t.tig="Tigre",t.tk="Turkmen",t.tl="Tagalog",t.tlh="Klingon tlhIngan-Hol",t.tli="Tlingit",t.tly="Talysh",t.tn="Setswana",t.to="Tonga",t.tog="Tonga (Nyasa)",t.tpi="Tok Pisin",t.tpn="Tupinamb",t.tr="Turkish",t.trv="Seediq",t.ts="Tsonga",t.tsi="Tsimshian",t.tt="Tatar",t.ttq="Tamajaq Tawallammat",t.tts="Thai Northeastern",t.ttt="Tat Muslim",t.tum="Tumbuka",t.tus="Tuscarora",t.tuv="Turkana",t.tvl="Tuvalu",t.tw="Twi",t.tyv="Tuvinian",t.tzm="Tamazight Central Atlas",t.uby="Ubykh",t.udi="Udi",t.udm="Udmurt",t.ug="Uighur",t.uk="Ukrainian",t.un="Undefined",t.ur="Urdu",t.uum="Urum",t.uz="Uzbek",t.vec="Venetian",t.vep="Veps",t.vi="Vietnamese",t.vo="Volapuk",t.vor="Voro",t.vot="Votic",t.vro="Vro",t.war="Waray (Philippines)",t.wiy="Wiyot",t.wo="Wolof",t.wuu="Wu Chinese",t.wym="Wymysorys",t.xal="Kalmyk Oirat",t.xh="Xhosa",t.xmf="Mingrelian",t.xsl="Slavey South",t.xsv="Sudovian",t.yi="Yiddish",t.yo="Yoruba",t.yue="Cantonese",t.zai="Zapotec Isthmus",t.zh="Chinese",t.zhTw="Taiwanese Mandarin",t.zu="Zulu",t.zxx="No linguistic content"}(e.KalturaLanguage||(e.KalturaLanguage={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.aa="aa",t.ab="ab",t.af="af",t.alg="alg",t.am="am",t.ar="ar",t.as="as",t.ath="ath",t.ay="ay",t.az="az",t.ba="ba",t.be="be",t.bg="bg",t.bh="bh",t.bi="bi",t.bla="bla",t.bn="bn",t.bo="bo",t.br="br",t.ca="ca",t.co="co",t.cr="cr",t.crg="crg",t.cs="cs",t.cy="cy",t.da="da",t.de="de",t.dz="dz",t.el="el",t.en="en",t.enGb="en_gb",t.enUs="en_us",t.eo="eo",t.es="es",t.esXl="es_xl",t.et="et",t.eu="eu",t.fa="fa",t.fi="fi",t.fj="fj",t.fo="fo",t.fr="fr",t.frCa="fr_ca",t.fy="fy",t.ga="ga",t.gd="gd",t.gl="gl",t.gn="gn",t.gu="gu",t.gv="gv",t.ha="ha",t.he="he",t.hi="hi",t.hr="hr",t.hu="hu",t.hy="hy",t.ia="ia",t.id="id",t.ie="ie",t.ik="ik",t.ikt="ikt",t.in="in",t.iro="iro",t.is="is",t.it="it",t.iu="iu",t.iw="iw",t.ja="ja",t.ji="ji",t.jv="jv",t.ka="ka",t.kk="kk",t.kl="kl",t.km="km",t.kn="kn",t.ko="ko",t.ks="ks",t.ku="ku",t.ky="ky",t.la="la",t.lb="lb",t.li="li",t.ln="ln",t.lo="lo",t.lt="lt",t.lv="lv",t.mg="mg",t.mi="mi",t.mic="mic",t.mk="mk",t.ml="ml",t.mn="mn",t.mo="mo",t.moe="moe",t.mr="mr",t.ms="ms",t.mt="mt",t.mu="mu",t.my="my",t.na="na",t.ne="ne",t.nl="nl",t.no="no",t.oc="oc",t.oj="oj",t.ojs="ojs",t.ojw="ojw",t.oka="oka",t.om="om",t.or="or",t.pa="pa",t.pl="pl",t.ps="ps",t.pt="pt",t.ptBr="pt_br",t.qu="qu",t.rm="rm",t.rn="rn",t.ro="ro",t.ru="ru",t.rw="rw",t.sa="sa",t.sal="sal",t.sd="sd",t.sg="sg",t.sh="sh",t.si="si",t.sk="sk",t.sl="sl",t.sm="sm",t.smi="smi",t.sn="sn",t.so="so",t.sq="sq",t.sr="sr",t.ss="ss",t.st="st",t.su="su",t.sv="sv",t.sw="sw",t.ta="ta",t.tce="tce",t.te="te",t.tg="tg",t.th="th",t.ti="ti",t.tk="tk",t.tl="tl",t.tn="tn",t.to="to",t.tr="tr",t.ts="ts",t.tt="tt",t.tw="tw",t.ug="ug",t.uk="uk",t.un="un",t.ur="ur",t.uz="uz",t.vi="vi",t.vo="vo",t.wo="wo",t.xh="xh",t.yi="yi",t.yo="yo",t.zh="zh",t.zhTw="zh_tw",t.zu="zu",t.zxx="zxx"}(e.KalturaLanguageCode||(e.KalturaLanguageCode={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.falseValue=0]="falseValue",t[t.nullValue=-1]="nullValue",t[t.trueValue=1]="trueValue"}(e.KalturaNullableBoolean||(e.KalturaNullableBoolean={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaAsset"},id:{type:"s",readOnly:!0},entryId:{type:"s",readOnly:!0},partnerId:{type:"n",readOnly:!0},version:{type:"n",readOnly:!0},size:{type:"n",readOnly:!0},tags:{type:"s"},fileExt:{type:"s"},createdAt:{type:"d",readOnly:!0},updatedAt:{type:"d",readOnly:!0},deletedAt:{type:"d",readOnly:!0},description:{type:"s",readOnly:!0},partnerData:{type:"s"},partnerDescription:{type:"s"},actualSourceAssetParamsIds:{type:"s"},sizeInBytes:{type:"n",readOnly:!0}}),e},e}(n(2).KalturaObjectBase);e.KalturaAsset=i,o.KalturaTypesFactory.registerType("KalturaAsset",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaListResponse"},totalCount:{type:"n",readOnly:!0}}),e},e}(n(2).KalturaObjectBase);e.KalturaListResponse=i,o.KalturaTypesFactory.registerType("KalturaListResponse",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaFilterPager"}}),e},e}(n(80).KalturaPager);e.KalturaFilterPager=i,o.KalturaTypesFactory.registerType("KalturaFilterPager",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._getMetadata=function(){var e=t.prototype._getMetadata.call(this);return Object.assign(e.properties,{objectType:{type:"c",default:"KalturaPager"},pageSize:{type:"n"},pageIndex:{type:"n"}}),e},e}(n(2).KalturaObjectBase);e.KalturaPager=i,o.KalturaTypesFactory.registerType("KalturaPager",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(82))},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(3),s=n(8),c=n(83),u=n(13),l=n(88),p=n(93),f=n(101),h={search:"",activeSearchIndex:1,searchMap:{},totalSearchResults:0,searchLength:0},d=u.getContribLogger({class:"Transcript",module:"transcript-plugin"}),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._transcriptListRef=null,e._captionListRef=null,e._skipTranscriptButtonRef=null,e._autoscrollButtonRef=null,e._preventScrollEvent=!1,e._scrollToSearchMatchEnabled=!1,e._widgetRootRef=null,e._engine=null,e._widgetHeight=0,e._topAutoscrollEdge=0,e._bottomAutoscrollEdge=0,e._thirdOfWidgetHeight=0,e._log=function(t,e){d.trace(t,{method:e||"Method not defined"})},e._silence=!1,e.state=i({isAutoScrollEnabled:!0,highlightedMap:{},widgetWidth:0},h),e._createEngine=function(){var t=e.props.captions;t&&0!==t.length?(e._engine=new u.CuepointEngine(t),e._syncVisibleTranscript()):e._engine=null},e._syncVisibleTranscript=function(t){void 0===t&&(t=!1);var n=e.props.currentTime;e.setState((function(r){if(!e._engine)return{highlightedMap:{}};var o=e._engine.updateTime(n,t);if(o.snapshot)return e._silence=!1,{highlightedMap:o.snapshot.reduce((function(t,e){var n;return i(i({},t),((n={})[e.id]=!0,n))}),{})};if(!o.delta)return r;var a=o.delta,s=a.show,c=a.hide;if(0===s.length&&c.length>0)return e._silence=!0,r;if(s.length>0||c.length>0){var u={};return e._silence?e._silence=!1:u=i({},r.highlightedMap),s.forEach((function(t){u[t.id]=!0})),c.forEach((function(t){delete u[t.id]})),{highlightedMap:u}}return r}))},e._enableAutoScroll=function(t){var n;t.preventDefault(),e.state.isAutoScrollEnabled||"click"!==t.type&&t.keyCode!==s.KeyboardKeys.Space&&t.keyCode!==s.KeyboardKeys.Enter||(e._preventScrollEvent=!0,e.setState({isAutoScrollEnabled:!0}),"click"!==t.type&&(null===(n=e._skipTranscriptButtonRef)||void 0===n||n.focus()))},e._renderScrollToButton=function(){var t=e.state.isAutoScrollEnabled;return a.h("div",{role:"button",className:c.autoscrollButton+" "+(t?"":c.autoscrollButtonVisible),onClick:e._enableAutoScroll,onKeyDown:e._enableAutoScroll,tabIndex:t?-1:1,ref:function(t){e._autoscrollButtonRef=t}})},e._onSearch=function(t){e.setState({search:t})},e._findSearchMatches=function(){e.setState((function(t){if(!t.search)return i({},h);var n=0,r=t.search.toLowerCase(),o={};return e.props.captions.forEach((function(t){for(var e,a=t.text.toLowerCase(),s=new RegExp(r,"gi"),c=[];e=s.exec(a);)c.push(e.index);c.forEach((function(e){var r;n++,o[t.id]=i(i({},o[t.id]),((r={})[n]=e,r))}))})),{searchMap:o,totalSearchResults:n,activeSearchIndex:1,searchLength:r.length}}))},e._setActiveSearchIndex=function(t){e._scrollToSearchMatchEnabled=!0,e.setState({activeSearchIndex:t,isAutoScrollEnabled:!1})},e._getHeaderStyles=function(){var t=e.state.widgetWidth;return t>=692?"":t>=649?c.mediumWidth:c.smallWidth},e._renderHeader=function(){var t=e.props,n=t.toggledWithEnter,r=t.kitchenSinkActive,o=e.state,i=o.search,s=o.activeSearchIndex,u=o.totalSearchResults;return a.h("div",{className:[c.header,e._getHeaderStyles()].join(" ")},a.h(p.Search,{onChange:e._onSearch,onSearchIndexChange:e._debounced.onActiveSearchIndexChange,value:i,activeSearchIndex:s,totalSearchResults:u,toggledWithEnter:n,kitchenSinkActive:r}))},e._handleKeyDown=function(t){var n,r,o;if(t.keyCode!==s.KeyboardKeys.Tab||t.shiftKey)t.keyCode!==s.KeyboardKeys.Enter&&t.keyCode!==s.KeyboardKeys.Space||(t.preventDefault(),null===(o=e._autoscrollButtonRef)||void 0===o||o.focus());else{e.setState({isAutoScrollEnabled:!1});var i=null===(r=null===(n=e._captionListRef)||void 0===n?void 0:n._currentCaptionRef)||void 0===r?void 0:r._hotspotRef;i&&(t.preventDefault(),i.focus())}},e._renderSkipTranscriptButton=function(){return a.h("div",{role:"button",ref:function(t){e._skipTranscriptButtonRef=t},className:c.skipTranscriptButton,onKeyDown:e._handleKeyDown,tabIndex:1},"Skip transcript")},e._renderTranscript=function(){var t=e.props,n=t.captions,r=t.hasError,o=(t.onRetryLoad,t.showTime),i=t.videoDuration,s=e.state,u=s.isAutoScrollEnabled,l=s.searchMap,p=s.activeSearchIndex,h=s.highlightedMap,d=s.searchLength;if(!n||!n.length)return null;if(r)return a.h("div",{className:c.errorWrapper},a.h("div",{className:c.errorIcon}),a.h("p",{className:c.errorMainText},"Whoops!"),a.h("p",{className:c.errorDescriptionText},"Failed to get transcript, please try again"));var g={showTime:o,searchLength:d,scrollTo:e._scrollTo,scrollToSearchMatch:e._scrollToSearchMatch,videoDuration:i};return a.h(f.CaptionList,{ref:function(t){e._captionListRef=t},highlightedMap:h,captions:n,seekTo:e._handleSeek,isAutoScrollEnabled:u,searchMap:l,activeSearchIndex:p,captionProps:g})},e._setWidgetSize=function(){if(e._widgetRootRef){var t=e._widgetRootRef.getBoundingClientRect(),n=t.width,r=t.height;t.top;e.state.widgetWidth!==n&&e.setState({widgetWidth:n}),e._widgetHeight!==r&&(e._widgetHeight=r,e._thirdOfWidgetHeight=r/3,e._topAutoscrollEdge=Math.floor(e._thirdOfWidgetHeight+38),e._bottomAutoscrollEdge=Math.ceil(2*e._thirdOfWidgetHeight+38))}},e._renderLoading=function(){return a.h("div",{className:c.loadingWrapper},a.h(l.Spinner,null))},e._scrollTo=function(t){if(e._transcriptListRef){e._preventScrollEvent=!0;var n=t.getBoundingClientRect().top;(n>=e._topAutoscrollEdge||n<=e._bottomAutoscrollEdge)&&(e._transcriptListRef.scrollTop=t.offsetTop-(e._thirdOfWidgetHeight-38))}},e._scrollToSearchMatch=function(t){e._transcriptListRef&&e._scrollToSearchMatchEnabled&&(e._scrollToSearchMatchEnabled=!1,e._preventScrollEvent=!0,e._transcriptListRef.scrollTop=t.offsetTop-38)},e._onScroll=function(){e._preventScrollEvent?e._preventScrollEvent=!1:e.setState({isAutoScrollEnabled:!1})},e._handleSeek=function(t){var n=e.props.onSeek,r=window.getSelection();r&&"Range"!==r.type&&n(t.startTime)},e._debounced={findSearchMatches:u.debounce(e._findSearchMatches,e.props.searchDebounceTimeout),onActiveSearchIndexChange:u.debounce(e._setActiveSearchIndex,e.props.searchNextPrevDebounceTimeout)},e._handleEsc=function(t){t.keyCode===s.KeyboardKeys.Esc&&e.props.onClose()},e._handleClose=function(t){"click"!==t.type&&t.keyCode!==s.KeyboardKeys.Space&&t.keyCode!==s.KeyboardKeys.Enter||e.props.onClose()},e}return o(e,t),e.prototype.componentDidMount=function(){this._log("Creating engine","componentDidMount"),this._createEngine()},e.prototype.componentDidUpdate=function(t,e){var n=this.props,r=n.captions,o=n.currentTime,i=this.state.search;t.captions!==r&&(this._log("Re-creating engine","componentDidUpdate"),this._createEngine(),this.setState({search:"",isAutoScrollEnabled:!0})),t.currentTime!==o&&this._syncVisibleTranscript(),e.search!==i&&this._debounced.findSearchMatches(),this._setWidgetSize()},e.prototype.componentWillUnmount=function(){this._log("Removing engine","componentWillUnmount"),this._engine=null},e.prototype.render=function(t){var e=this,n=t.isLoading,r=t.kitchenSinkActive;return a.h("div",{className:c.root+" "+(r?"":c.hidden),ref:function(t){e._widgetRootRef=t},onKeyUp:this._handleEsc},a.h("div",{className:c.globalContainer},this._renderHeader(),a.h("div",{role:"button",className:c.closeButton,tabIndex:1,onClick:this._handleClose,onKeyUp:this._handleClose}),!n&&this._renderSkipTranscriptButton(),a.h("div",{className:c.body,onScroll:this._onScroll,ref:function(t){e._transcriptListRef=t}},n?this._renderLoading():this._renderTranscript()),this._renderScrollToButton()))},e}(a.Component);e.Transcript=g},function(t,e,n){var r=n(84);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(4)(!1);var r=n(14),o=r(n(85)),i=r(n(86)),a=r(n(87));e.push([t.i,".src-components-transcript-transcript__body--lMbLS::-webkit-scrollbar{width:4px}.src-components-transcript-transcript__body--lMbLS::-webkit-scrollbar-track{background:rgba(33,33,33,0.9)}.src-components-transcript-transcript__body--lMbLS::-webkit-scrollbar-thumb{border-radius:3px;background-color:rgba(255,255,255,0.3)}.src-components-transcript-transcript__hidden--1z7Bq{visibility:hidden}.src-components-transcript-transcript__root--12Kv-{display:flex;justify-content:center;padding:8px 4px 8px 0px;color:#fff;height:100%;width:100%;position:absolute;background-color:rgba(0,0,0,0.631373)}.src-components-transcript-transcript__root--12Kv- .src-components-transcript-transcript__skip-transcript-button--WNMp2{position:absolute;top:-1000px;z-index:1;display:flex;align-items:center;justify-content:center;width:120px;height:32px;border-radius:16px;box-shadow:0 2px 8px 0 rgba(0,0,0,0.3);border:solid 1px #01accd;background-color:#222;font-size:15px;line-height:1.27;color:#fff}.src-components-transcript-transcript__root--12Kv- .src-components-transcript-transcript__skip-transcript-button--WNMp2:focus{top:46px;right:12px;outline:none !important}.src-components-transcript-transcript__global-container--2G2rz{height:100%;display:flex;flex-direction:column;max-width:599px;width:100%}.src-components-transcript-transcript__header--2YEtK{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:6px;padding-left:16px;font-size:16px}.src-components-transcript-transcript__header--2YEtK.src-components-transcript-transcript__small-width--3WUOi{padding-right:44px}.src-components-transcript-transcript__header--2YEtK.src-components-transcript-transcript__medium-width--2A1Af{padding-right:22px}.src-components-transcript-transcript__close-button--2E5N0{position:absolute;top:8px;right:0;width:32px;height:32px;min-width:32px;margin:0 8px;cursor:pointer;background-image:url("+o+");background-color:transparent;border:none;padding:0}.src-components-transcript-transcript__body--lMbLS{position:relative;padding-top:1px;flex:1;overflow-y:auto;text-align:center;overflow-x:hidden}.src-components-transcript-transcript__loading-wrapper--1AgI_,.src-components-transcript-transcript__error-wrapper--1N65k{height:100%;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#999}.src-components-transcript-transcript__loading-wrapper--1AgI_ .src-components-transcript-transcript__error-icon--OVBW3,.src-components-transcript-transcript__error-wrapper--1N65k .src-components-transcript-transcript__error-icon--OVBW3{width:100%;height:100%;max-width:184px;max-height:184px;background-size:contain;background-repeat:no-repeat;background-position:center;background-image:url("+i+")}.src-components-transcript-transcript__loading-wrapper--1AgI_ .src-components-transcript-transcript__error-main-text--203kH,.src-components-transcript-transcript__error-wrapper--1N65k .src-components-transcript-transcript__error-main-text--203kH{font-size:1.3em;margin-top:8px;margin-bottom:2px}.src-components-transcript-transcript__loading-wrapper--1AgI_ .src-components-transcript-transcript__error-description-text--1GSAk,.src-components-transcript-transcript__error-wrapper--1N65k .src-components-transcript-transcript__error-description-text--1GSAk{margin:0}.src-components-transcript-transcript__loading-wrapper--1AgI_ .src-components-transcript-transcript__retry-button--2vZRQ,.src-components-transcript-transcript__error-wrapper--1N65k .src-components-transcript-transcript__retry-button--2vZRQ{width:30px;padding:0;margin-left:20px;border:none;background:inherit;color:white;cursor:pointer}.src-components-transcript-transcript__autoscroll-button--1fuPg{opacity:0;position:absolute;right:12px;bottom:12px;width:32px;height:32px;padding:0;border:none;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0,0,0,0.5);background-color:#01819a;background-position:center;background-repeat:no-repeat;background-size:22px;background-image:url("+a+");cursor:pointer;z-index:1}.src-components-transcript-transcript__autoscroll-button-visible--JpOQp{opacity:1}\n",""]),e.locals={body:"src-components-transcript-transcript__body--lMbLS",hidden:"src-components-transcript-transcript__hidden--1z7Bq",root:"src-components-transcript-transcript__root--12Kv-","skip-transcript-button":"src-components-transcript-transcript__skip-transcript-button--WNMp2",skipTranscriptButton:"src-components-transcript-transcript__skip-transcript-button--WNMp2","global-container":"src-components-transcript-transcript__global-container--2G2rz",globalContainer:"src-components-transcript-transcript__global-container--2G2rz",header:"src-components-transcript-transcript__header--2YEtK","small-width":"src-components-transcript-transcript__small-width--3WUOi",smallWidth:"src-components-transcript-transcript__small-width--3WUOi","medium-width":"src-components-transcript-transcript__medium-width--2A1Af",mediumWidth:"src-components-transcript-transcript__medium-width--2A1Af","close-button":"src-components-transcript-transcript__close-button--2E5N0",closeButton:"src-components-transcript-transcript__close-button--2E5N0","loading-wrapper":"src-components-transcript-transcript__loading-wrapper--1AgI_",loadingWrapper:"src-components-transcript-transcript__loading-wrapper--1AgI_","error-wrapper":"src-components-transcript-transcript__error-wrapper--1N65k",errorWrapper:"src-components-transcript-transcript__error-wrapper--1N65k","error-icon":"src-components-transcript-transcript__error-icon--OVBW3",errorIcon:"src-components-transcript-transcript__error-icon--OVBW3","error-main-text":"src-components-transcript-transcript__error-main-text--203kH",errorMainText:"src-components-transcript-transcript__error-main-text--203kH","error-description-text":"src-components-transcript-transcript__error-description-text--1GSAk",errorDescriptionText:"src-components-transcript-transcript__error-description-text--1GSAk","retry-button":"src-components-transcript-transcript__retry-button--2vZRQ",retryButton:"src-components-transcript-transcript__retry-button--2vZRQ","autoscroll-button":"src-components-transcript-transcript__autoscroll-button--1fuPg",autoscrollButton:"src-components-transcript-transcript__autoscroll-button--1fuPg","autoscroll-button-visible":"src-components-transcript-transcript__autoscroll-button-visible--JpOQp",autoscrollButtonVisible:"src-components-transcript-transcript__autoscroll-button-visible--JpOQp"}},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/32/Close%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32/Close' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Crect id='Bounds' x='0' y='0' width='32' height='32'%3E%3C/rect%3E %3Cpath d='M17.9113162,16 L24.6072325,9.30408374 C25.1313645,8.77995172 25.1287183,7.92687249 24.6009229,7.3990771 C24.0694478,6.86760201 23.220227,6.86845682 22.6959163,7.39276754 L16,14.0886838 L9.30408374,7.39276754 C8.77995172,6.86863552 7.92687249,6.8712817 7.3990771,7.3990771 C6.86760201,7.93055219 6.86845682,8.77977302 7.39276754,9.30408374 L14.0886838,16 L7.39276754,22.6959163 C6.86863552,23.2200483 6.8712817,24.0731275 7.3990771,24.6009229 C7.93055219,25.132398 8.77977302,25.1315432 9.30408374,24.6072325 L16,17.9113162 L22.6959163,24.6072325 C23.2200483,25.1313645 24.0731275,25.1287183 24.6009229,24.6009229 C25.132398,24.0694478 25.1315432,23.220227 24.6072325,22.6959163 L17.9113162,16 Z' id='Close' fill='rgba(255,255,255,0.8)'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='184px' height='184px' viewBox='0 0 184 184' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIL/ Error%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='IL/-Error' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Ccircle id='Oval' fill='%23333333' cx='92' cy='92' r='92'%3E%3C/circle%3E %3Cpath d='M86.8445942,41 C98.1281098,41 107.894768,46.3707345 112.610486,54.1896075 L112.772795,54.4651697 C121.905986,54.9935965 129.089492,60.510023 129.089492,67.2372881 C129.089492,67.4828605 129.07992,67.7268193 129.06103,67.9689809 C143.527428,69.1244669 154.803778,78.4637688 154.803778,89.8135593 C154.803778,101.945102 141.920543,111.779661 126.028268,111.779661 C122.218304,111.779661 118.581281,111.214432 115.253251,110.187831 C110.482744,111.936312 104.172429,113 97.2527575,113 C90.6076765,113 84.5245506,112.019057 79.8270144,110.392971 C76.2815407,111.290993 72.4601472,111.779661 68.4772473,111.779661 C49.8799037,111.779661 34.8037779,101.125556 34.8037779,87.9830508 C34.8037779,77.4055553 44.569383,68.439928 58.0766538,65.3432099 C58.0715743,65.1615713 58.069084,64.9793312 58.069084,64.7966102 C58.069084,51.6541053 70.9523188,41 86.8445942,41 Z' id='Combined-Shape' fill='%231A7080'%3E%3C/path%3E %3Cpath d='M83.1492849,135.070223 C82.1325765,138.189187 86.1421275,140.443183 88.278329,137.95355 L112.039401,110.261242 C113.708897,108.315531 112.326427,105.307692 109.76264,105.307692 L102.55417,105.307692 L108.530391,92.2483573 C109.439682,90.2613598 107.987631,88 105.802461,88 L90.6745782,88 C89.4360625,88 88.3248534,88.7610908 87.8773011,89.9159147 L79.0065008,112.805338 C78.2445332,114.771451 79.6951774,116.889423 81.8037779,116.889423 L89.0757959,116.889423 L83.1492849,135.070223 Z' id='Path-8' fill='%23333333' fill-rule='nonzero'%3E%3C/path%3E %3Cpolygon id='Path-8' fill='%23999999' points='90.6745782 91 81.8037779 113.889423 93.2090926 113.889423 86.0015674 136 109.76264 108.307692 97.8821035 108.307692 105.802461 91'%3E%3C/polygon%3E %3Cpolygon id='Path-8' fill='%2301ACCD' opacity='0.5' points='90.6745782 91 81.8037779 113.889423 93.2090926 113.889423 86.0015674 136 109.76264 108.307692 97.8821035 108.307692 105.802461 91'%3E%3C/polygon%3E %3Cpath d='M86.9135883,41 C90.3885178,41 93.7197752,41.5049061 96.8044095,42.4302153 C80.0521708,44.2102049 67.0736479,56.714855 67.0736479,71.8761372 C67.0736479,72.1038764 67.0765763,72.331016 67.0824019,72.557529 C51.5088979,76.3414085 40.1641521,87.1546035 39.7216459,99.9991784 C36.6015945,96.4151247 34.8037779,92.202078 34.8037779,87.6945045 C34.8037779,77.1820037 44.5822685,68.2714617 58.1073807,65.1937351 C58.1024214,65.013137 58.0999284,64.8320391 58.0999284,64.6504633 C58.0999284,51.5886731 71.0002433,41 86.9135883,41 Z' id='Combined-Shape' fill='%23222222' opacity='0.3'%3E%3C/path%3E %3Cpath d='M90.8028945,22 L90.8028945,29.0476864 C90.8028945,29.5999712 91.2506097,30.0476864 91.8028945,30.0476864 C92.3551792,30.0476864 92.8028945,29.5999712 92.8028945,29.0476864 L92.8028945,22 C92.8028945,21.4477153 92.3551792,21 91.8028945,21 C91.2506097,21 90.8028945,21.4477153 90.8028945,22 Z M126.112197,30.8515352 L121.582032,36.2503762 C121.22703,36.6734508 121.282214,37.3042064 121.705288,37.6592082 C122.128363,38.01421 122.759119,37.9590261 123.114121,37.5359514 L127.644286,32.1371104 C127.999288,31.7140357 127.944104,31.0832801 127.521029,30.7282783 C127.097955,30.3732765 126.467199,30.4284605 126.112197,30.8515352 Z M152.431974,58.6783398 L145.491357,59.9021577 C144.947463,59.9980609 144.584295,60.5167193 144.680198,61.0606136 C144.776101,61.6045079 145.294759,61.9676764 145.838654,61.8717732 L152.77927,60.6479553 C153.323164,60.552052 153.686333,60.0333936 153.59043,59.4894993 C153.494526,58.945605 152.975868,58.5824365 152.431974,58.6783398 Z M30.826519,60.6479553 L37.7671352,61.8717732 C38.3110295,61.9676764 38.8296879,61.6045079 38.9255912,61.0606136 C39.0214944,60.5167193 38.6583259,59.9980609 38.1144316,59.9021577 L31.1738154,58.6783398 C30.6299211,58.5824365 30.1112627,58.945605 30.0153594,59.4894993 C29.9194562,60.0333936 30.2826247,60.552052 30.826519,60.6479553 Z M55.9615029,32.1371104 L60.4916684,37.5359514 C60.8466702,37.9590261 61.4774258,38.01421 61.9005005,37.6592082 C62.3235751,37.3042064 62.3787591,36.6734508 62.0237573,36.2503762 L57.4935918,30.8515352 C57.13859,30.4284605 56.5078344,30.3732765 56.0847597,30.7282783 C55.6616851,31.0832801 55.6065011,31.7140357 55.9615029,32.1371104 Z' id='Path-9' fill='%2301ACCD' fill-rule='nonzero' opacity='0.5'%3E%3C/path%3E %3Cg id='Oval-Copy-5' opacity='0.3' transform='translate(80.000000, 166.000000)' fill='%2301ACCD'%3E %3Cpath d='M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,-5.32907052e-15 3.3015873,-5.32907052e-15 C1.47817098,-5.32907052e-15 1.07647224e-12,1.4883507 1.07647224e-12,3.32432432 C1.07647224e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z' id='Oval-Copy-3'%3E%3C/path%3E %3C/g%3E %3Cg id='Path-Copy-4' opacity='0.9' transform='translate(100.000000, 146.000000)' fill='%2301ACCD'%3E %3Cpolygon id='Path-Copy-2' points='5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0'%3E%3C/polygon%3E %3C/g%3E %3Cg id='Oval-2' opacity='0.5' transform='translate(39.000000, 115.000000)' fill='%2301ACCD'%3E %3Cpath d='M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,0 3.3015873,0 C1.47817098,0 1.08002496e-12,1.4883507 1.08002496e-12,3.32432432 C1.08002496e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z' id='Oval'%3E%3C/path%3E %3C/g%3E %3Cg id='Oval-Copy-4' opacity='0.8' transform='translate(60.000000, 139.000000)' fill='%2301ACCD'%3E %3Cpath d='M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,1.42108547e-14 3.3015873,1.42108547e-14 C1.47817098,1.42108547e-14 1.08002496e-12,1.4883507 1.08002496e-12,3.32432432 C1.08002496e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z' id='Oval-Copy'%3E%3C/path%3E %3C/g%3E %3Cg id='Path-Copy-3' opacity='0.3' transform='translate(31.000000, 142.000000)' fill='%2301ACCD'%3E %3Cpolygon id='Path-Copy' points='5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0'%3E%3C/polygon%3E %3C/g%3E %3Cg id='Oval-Copy-6' opacity='0.6' transform='translate(139.000000, 139.000000)' fill='%2301ACCD'%3E %3Cpath d='M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,0 3.3015873,0 C1.47817098,0 1.08713039e-12,1.4883507 1.08713039e-12,3.32432432 C1.08713039e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z' id='Oval-Copy-2'%3E%3C/path%3E %3C/g%3E %3Cg id='Path-2' opacity='0.4' transform='translate(122.000000, 122.000000)' fill='%2301ACCD'%3E %3Cpolygon id='Path' points='5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0'%3E%3C/polygon%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='16px' height='16px' viewBox='0 0 16 16' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/16/Arrowline/up%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/16/Arrowline/up' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M8.0000393,2 C8.55232405,2 9.0000393,2.44771525 9.0000393,3 L9.0000393,3 L9,10.17 L11.216782,7.37830235 C11.5337243,6.97899674 12.0940739,6.88664831 12.5186429,7.14486093 L12.6217369,7.21674268 C13.054318,7.56009681 13.1266507,8.18911658 12.7832966,8.62169765 L12.7832966,8.62169765 L8.78329662,13.6611718 C8.3829349,14.165575 7.61714369,14.165575 7.21678198,13.6611718 L7.21678198,13.6611718 L3.21678198,8.62169765 C2.87342784,8.18911658 2.94576057,7.56009681 3.37834164,7.21674268 C3.81092272,6.87338855 4.43994248,6.94572127 4.78329662,7.37830235 L4.78329662,7.37830235 L7,10.17 L7.0000393,3 C7.0000393,2.48716416 7.38607949,2.06449284 7.88341817,2.00672773 Z' id='Combined-Shape' fill='%23ffffff' transform='translate(8.000039, 8.019737) scale(1, -1) translate(-8.000039, -8.019737) '%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(89))},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),a=n(90),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){return i.h("div",{className:a.spinnerBall},i.h("div",{className:a.bounceFrame}))},e}(i.Component);e.Spinner=s},function(t,e,n){var r=n(91);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(4)(!1);var r=n(14)(n(92));e.push([t.i,".src-components-spinner-spinner__spinner-ball--2Um5B{position:relative;display:flex;align-items:center;width:100%;height:100%;max-width:184px;max-height:184px;margin:4px 0 8px 0;background-size:contain;background-repeat:no-repeat;background-position:center;background-image:url("+r+");animation:src-components-spinner-spinner__icon-bounce--b5fbz 2.0s infinite ease-in-out}.src-components-spinner-spinner__bounce-frame--2SYy0{width:100%;height:100%;min-width:184px;min-height:184px;border-radius:50%;background-color:#cccccc;opacity:0.2;-webkit-animation:src-components-spinner-spinner__frame-bounce--3cZLg 2.0s infinite ease-in-out;animation:src-components-spinner-spinner__frame-bounce--3cZLg 2.0s infinite ease-in-out}@keyframes src-components-spinner-spinner__icon-bounce--b5fbz{0%,100%{opacity:0.3}50%{opacity:1}}@-webkit-keyframes src-components-spinner-spinner__frame-bounce--3cZLg{0%,100%{-webkit-transform:scale(1);opacity:0.1}50%{-webkit-transform:scale(1.3);opacity:0.1}}@keyframes src-components-spinner-spinner__frame-bounce--3cZLg{0%,100%{opacity:0.1;transform:scale(1);-webkit-transform:scale(1)}50%{opacity:0.25;transform:scale(1.3);-webkit-transform:scale(1.3)}}\n",""]),e.locals={"spinner-ball":"src-components-spinner-spinner__spinner-ball--2Um5B",spinnerBall:"src-components-spinner-spinner__spinner-ball--2Um5B","icon-bounce":"src-components-spinner-spinner__icon-bounce--b5fbz",iconBounce:"src-components-spinner-spinner__icon-bounce--b5fbz","bounce-frame":"src-components-spinner-spinner__bounce-frame--2SYy0",bounceFrame:"src-components-spinner-spinner__bounce-frame--2SYy0","frame-bounce":"src-components-spinner-spinner__frame-bounce--3cZLg",frameBounce:"src-components-spinner-spinner__frame-bounce--3cZLg"}},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='184px' height='184px' viewBox='0 0 184 184' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 58 (84663) - https://sketch.com --%3E %3Ctitle%3EIL/ transcript/ loder%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='IL/-transcript/-loder' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M131,37 C133.688755,37 135.881818,39.1223067 135.99538,41.7831104 L136,42 L136,142 C136,144.688755 133.877693,146.881818 131.21689,146.99538 L131,147 L54,147 C51.3112453,147 49.1181819,144.877693 49.0046195,142.21689 L49,142 L49,42 C49,39.3112453 51.1223067,37.1181819 53.7831104,37.0046195 L54,37 L131,37 Z M101.454542,126.814926 L63.4545421,126.814926 C62.3499726,126.814926 61.4545421,127.710356 61.4545421,128.814926 C61.4545421,129.919495 62.3499726,130.814926 63.4545421,130.814926 L63.4545421,130.814926 L101.454542,130.814926 C102.559112,130.814926 103.454542,129.919495 103.454542,128.814926 C103.454542,127.710356 102.559112,126.814926 101.454542,126.814926 L101.454542,126.814926 Z M115.288711,116.850282 L63.2887108,116.850282 C62.1841413,116.850282 61.2887108,117.745712 61.2887108,118.850282 C61.2887108,119.904643 62.1045886,120.768447 63.1394485,120.844796 L63.2887108,120.850282 L115.288711,120.850282 C116.39328,120.850282 117.288711,119.954851 117.288711,118.850282 C117.288711,117.745712 116.39328,116.850282 115.288711,116.850282 Z M97.011063,106.163706 L64.011063,106.163706 C62.9064935,106.163706 62.011063,107.059136 62.011063,108.163706 C62.011063,109.218068 62.8269408,110.081871 63.8618007,110.15822 L64.011063,110.163706 L97.011063,110.163706 C98.1156325,110.163706 99.011063,109.268275 99.011063,108.163706 C99.011063,107.059136 98.1156325,106.163706 97.011063,106.163706 Z M112.011284,95.3010779 L64.0112838,95.3010779 C62.9067143,95.3010779 62.0112838,96.1965084 62.0112838,97.3010779 C62.0112838,98.3554397 62.8271616,99.219243 63.8620215,99.2955922 L64.0112838,99.3010779 L112.011284,99.3010779 C113.115853,99.3010779 114.011284,98.4056474 114.011284,97.3010779 C114.011284,96.1965084 113.115853,95.3010779 112.011284,95.3010779 Z M96.7184437,84.7881504 L63.7184437,84.7881504 C62.6138742,84.7881504 61.7184437,85.6835809 61.7184437,86.7881504 C61.7184437,87.8425122 62.5343215,88.7063156 63.5691814,88.7826647 L63.7184437,88.7881504 L96.7184437,88.7881504 C97.8230132,88.7881504 98.7184437,87.8927199 98.7184437,86.7881504 C98.7184437,85.6835809 97.8230132,84.7881504 96.7184437,84.7881504 Z M108.741453,73.6650501 L63.7414529,73.6650501 C62.6368834,73.6650501 61.7414529,74.5604806 61.7414529,75.6650501 C61.7414529,76.7194119 62.5573307,77.5832152 63.5921905,77.6595644 L63.7414529,77.6650501 L108.741453,77.6650501 C109.846022,77.6650501 110.741453,76.7696196 110.741453,75.6650501 C110.741453,74.5604806 109.846022,73.6650501 108.741453,73.6650501 Z M92.456209,63.0652986 L63.456209,63.0652986 C62.3516395,63.0652986 61.456209,63.9607291 61.456209,65.0652986 C61.456209,66.1196603 62.2720867,66.9834637 63.3069466,67.0598128 L63.456209,67.0652986 L92.456209,67.0652986 C93.5607785,67.0652986 94.456209,66.1698681 94.456209,65.0652986 C94.456209,63.9607291 93.5607785,63.0652986 92.456209,63.0652986 Z M102.320762,52.7533578 L63.3207622,52.7533578 C62.2161927,52.7533578 61.3207622,53.6487883 61.3207622,54.7533578 C61.3207622,55.8077196 62.13664,56.6715229 63.1714998,56.7478721 L63.3207622,56.7533578 L102.320762,56.7533578 C103.425332,56.7533578 104.320762,55.8579273 104.320762,54.7533578 C104.320762,53.6487883 103.425332,52.7533578 102.320762,52.7533578 Z' id='Combined-Shape' fill='%23999999' transform='translate(92.500000, 92.000000) rotate(-10.000000) translate(-92.500000, -92.000000) '%3E%3C/path%3E %3Cg id='Oval-2' opacity='0.5' transform='translate(38.000000, 147.000000)' fill='%23999999'%3E %3Cpath d='M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,0 3.3015873,0 C1.47817098,0 1.08002496e-12,1.4883507 1.08002496e-12,3.32432432 C1.08002496e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z' id='Oval'%3E%3C/path%3E %3C/g%3E %3Cg id='Oval-Copy-8' opacity='0.8' transform='translate(147.000000, 93.000000)' fill='%23999999'%3E %3Cpath d='M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,1.42108547e-14 3.3015873,1.42108547e-14 C1.47817098,1.42108547e-14 1.08002496e-12,1.4883507 1.08002496e-12,3.32432432 C1.08002496e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z' id='Oval-Copy'%3E%3C/path%3E %3C/g%3E %3Cg id='Oval-Copy-6' opacity='0.6' transform='translate(11.000000, 80.000000)' fill='%23999999'%3E %3Cpath d='M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,0 3.3015873,0 C1.47817098,0 1.08713039e-12,1.4883507 1.08713039e-12,3.32432432 C1.08713039e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z' id='Oval-Copy-2'%3E%3C/path%3E %3C/g%3E %3Cg id='Oval-Copy-5' opacity='0.3' transform='translate(56.000000, 25.000000)' fill='%23999999'%3E %3Cpath d='M3.3015873,6.64864865 C5.12500362,6.64864865 6.6031746,5.16029795 6.6031746,3.32432432 C6.6031746,1.4883507 5.12500362,-5.32907052e-15 3.3015873,-5.32907052e-15 C1.47817098,-5.32907052e-15 1.07647224e-12,1.4883507 1.07647224e-12,3.32432432 C1.07647224e-12,5.16029795 1.47817098,6.64864865 3.3015873,6.64864865 Z M3.3015873,4.64864865 C2.5858248,4.64864865 2,4.05878945 2,3.32432432 C2,2.5898592 2.5858248,2 3.3015873,2 C4.0173498,2 4.6031746,2.5898592 4.6031746,3.32432432 C4.6031746,4.05878945 4.0173498,4.64864865 3.3015873,4.64864865 Z' id='Oval-Copy-3'%3E%3C/path%3E %3C/g%3E %3Cg id='Path-2' opacity='0.4' transform='translate(88.000000, 164.000000)' fill='%23999999'%3E %3Cpolygon id='Path' points='5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0'%3E%3C/polygon%3E %3C/g%3E %3Cg id='Path-2-Copy-3' opacity='0.4' transform='translate(15.000000, 57.000000)' fill='%23999999'%3E %3Cpolygon id='Path' points='5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0'%3E%3C/polygon%3E %3C/g%3E %3Cg id='Path-Copy-5' opacity='0.3' transform='translate(129.000000, 155.000000)' fill='%23999999'%3E %3Cpolygon id='Path-Copy' points='5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0'%3E%3C/polygon%3E %3C/g%3E %3Cg id='Path-Copy-4' opacity='0.9' transform='translate(77.000000, 12.000000)' fill='%23999999'%3E %3Cpolygon id='Path-Copy-2' points='5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0'%3E%3C/polygon%3E %3C/g%3E %3Cg id='Path-Copy-6' opacity='0.9' transform='translate(146.000000, 56.000000)' fill='%23999999'%3E %3Cpolygon id='Path-Copy-2' points='5.5 2.5 8 2.5 8 5.5 5.5 5.5 5.5 8 2.5 8 2.5 5.5 0 5.5 0 2.5 2.5 2.5 2.5 0 5.5 0'%3E%3C/polygon%3E %3C/g%3E %3C/g%3E %3C/svg%3E"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(94))},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),a=n(95),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={active:!1,focused:!1},e._inputRef=null,e._focusedByMouse=!1,e._handleOnChange=function(t){e.props.onChange(t.target.value)},e._onClear=function(t){var n;0!==t.x&&0!==t.y&&(e._focusedByMouse=!0),null===(n=e._inputRef)||void 0===n||n.focus(),e.props.onChange("")},e._onFocus=function(){e.setState({active:!0,focused:!e._focusedByMouse}),e._focusedByMouse=!1},e._onBlur=function(){e.setState({active:!1,focused:!1})},e._goToNextSearchResult=function(){var t=e.props,n=t.activeSearchIndex,r=t.totalSearchResults,o=t.onSearchIndexChange;if(0!==r){o(n!==r?e.props.activeSearchIndex+1:1)}},e._goToPrevSearchResult=function(){var t=e.props,n=t.activeSearchIndex,r=t.totalSearchResults;(0,t.onSearchIndexChange)(1!==n?n-1:r)},e._handleMouseDown=function(){e._focusedByMouse=!0},e}return o(e,t),e.prototype.shouldComponentUpdate=function(t,e){var n=this.props,r=n.value,o=n.activeSearchIndex,i=n.totalSearchResults,a=n.kitchenSinkActive;return r!==t.value||o!==t.activeSearchIndex||i!==t.totalSearchResults||a!==t.kitchenSinkActive||this.state.active!==e.active},e.prototype.componentDidUpdate=function(t){var e,n=this.props,r=n.kitchenSinkActive,o=n.toggledWithEnter;!t.kitchenSinkActive&&r&&o&&(null===(e=this._inputRef)||void 0===e||e.focus())},e.prototype.render=function(){var t=this,e=this.props,n=e.value,r=e.activeSearchIndex,o=e.totalSearchResults;return i.h("div",{className:[a.searchWrapper,n||this.state.active?a.active:"",this.state.focused?a.focused:""].join(" ")},i.h("div",{className:a.searchIcon}),i.h("input",{className:a.searchInput,placeholder:"Search in Transcript",value:n,onInput:this._handleOnChange,onFocus:this._onFocus,onBlur:this._onBlur,onMouseDown:this._handleMouseDown,tabIndex:1,ref:function(e){t._inputRef=e}}),n&&i.h("button",{className:a.clearIcon,onClick:this._onClear,tabIndex:1}),n&&i.h("div",{className:a.searchResults},o>0?r+"/"+o:"0/0"),i.h("div",{className:a.prevNextWrapper},n&&i.h("button",{tabIndex:1,className:a.prevNextButton+" "+a.prevButton+" "+(0===o?a.disabled:""),onClick:this._goToPrevSearchResult}),n&&i.h("button",{tabIndex:1,className:a.prevNextButton+" "+a.nextButton+" "+(0===o?a.disabled:""),onClick:this._goToNextSearchResult})))},e}(i.Component);e.Search=s},function(t,e,n){var r=n(96);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(4)(!1);var r=n(14),o=r(n(97)),i=r(n(98)),a=r(n(99)),s=r(n(100));e.push([t.i,".src-components-search-search__search-wrapper--3by0K{display:flex;align-items:center;flex-grow:1;width:100%;max-width:599px;height:32px;background-color:rgba(255,255,255,0.24);border:solid 1px rgba(255,255,255,0.4);border-radius:4px}.src-components-search-search__search-wrapper--3by0K ::-moz-placeholder{opacity:1}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__search-icon--uIKE9{flex:0 0 32px;background-color:transparent;background-position:center;background-image:url("+o+");width:32px;height:32px;margin:0 2px}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__search-results--3oNdk{display:flex;justify-content:flex-end;align-items:center;flex-shrink:0;margin:0 8px;font-size:12px;text-overflow:ellipsis}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__prev-next-wrapper--2V6sg{display:flex;flex-direction:column;justify-content:space-around;height:100%;margin-right:8px}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__prev-next-wrapper--2V6sg .src-components-search-search__prev-next-button--aH4JM{width:14px;height:6px;background-color:transparent;background-position:center;background-size:cover;border:none;cursor:pointer}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__prev-next-wrapper--2V6sg .src-components-search-search__prev-next-button--aH4JM.src-components-search-search__prev-button--4YIFQ{background-image:url("+i+")}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__prev-next-wrapper--2V6sg .src-components-search-search__prev-next-button--aH4JM.src-components-search-search__next-button--3qhEz{background-image:url("+a+")}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__prev-next-wrapper--2V6sg .src-components-search-search__prev-next-button--aH4JM.src-components-search-search__disabled--1d_Kq{opacity:0.4;cursor:default}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__search-input--gARpy{width:100%;flex-grow:1;flex-shrink:1;font-size:15px;padding:0 6px 1px 0;color:#ccc;background:transparent;border:none;overflow:hidden;text-overflow:ellipsis}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__search-input--gARpy:focus{outline:none !important}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__search-input--gARpy::placeholder{color:#ccc}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__search-input--gARpy::selection{background-color:#5b80a7}.src-components-search-search__search-wrapper--3by0K .src-components-search-search__clear-icon--1NED4{flex:0 0 32px;max-width:32px;max-height:32px;background-color:transparent;background-position:center;background-image:url("+s+");width:32px;height:32px;border:none;cursor:pointer}.src-components-search-search__search-wrapper--3by0K.src-components-search-search__active--UjM8Q{color:#ccc;background:#000}.src-components-search-search__search-wrapper--3by0K.src-components-search-search__focused--1fj3o{box-shadow:0 0 0 1px #00cbff;border-radius:4px}\n",""]),e.locals={"search-wrapper":"src-components-search-search__search-wrapper--3by0K",searchWrapper:"src-components-search-search__search-wrapper--3by0K","search-icon":"src-components-search-search__search-icon--uIKE9",searchIcon:"src-components-search-search__search-icon--uIKE9","search-results":"src-components-search-search__search-results--3oNdk",searchResults:"src-components-search-search__search-results--3oNdk","prev-next-wrapper":"src-components-search-search__prev-next-wrapper--2V6sg",prevNextWrapper:"src-components-search-search__prev-next-wrapper--2V6sg","prev-next-button":"src-components-search-search__prev-next-button--aH4JM",prevNextButton:"src-components-search-search__prev-next-button--aH4JM","prev-button":"src-components-search-search__prev-button--4YIFQ",prevButton:"src-components-search-search__prev-button--4YIFQ","next-button":"src-components-search-search__next-button--3qhEz",nextButton:"src-components-search-search__next-button--3qhEz",disabled:"src-components-search-search__disabled--1d_Kq","search-input":"src-components-search-search__search-input--gARpy",searchInput:"src-components-search-search__search-input--gARpy","clear-icon":"src-components-search-search__clear-icon--1NED4",clearIcon:"src-components-search-search__clear-icon--1NED4",active:"src-components-search-search__active--UjM8Q",focused:"src-components-search-search__focused--1fj3o"}},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/32/serch%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32/serch' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M15.1578947,8 C19.1110908,8 22.3157895,11.2046986 22.3157895,15.1578947 C22.3157895,16.8311546 21.7416502,18.3703171 20.7796271,19.5891266 L24.5954583,23.4045417 C24.9243209,23.7334042 24.9243209,24.2665958 24.5954583,24.5954583 C24.2665958,24.9243209 23.7334042,24.9243209 23.4045417,24.5954583 L19.5891266,20.7796271 C18.3703171,21.7416502 16.8311546,22.3157895 15.1578947,22.3157895 C11.2046986,22.3157895 8,19.1110908 8,15.1578947 C8,11.2046986 11.2046986,8 15.1578947,8 Z M15.1578947,9.68421053 C12.1348624,9.68421053 9.68421053,12.1348624 9.68421053,15.1578947 C9.68421053,18.1809271 12.1348624,20.6315789 15.1578947,20.6315789 C18.1809271,20.6315789 20.6315789,18.1809271 20.6315789,15.1578947 C20.6315789,12.1348624 18.1809271,9.68421053 15.1578947,9.68421053 Z' id='Shape' fill='%23cccccc'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='16px' height='16px' viewBox='0 0 16 16' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/16/Arrow/ up%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/16/Arrow/-up' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M4.78325732,5.37830235 C4.43990319,4.94572127 3.81088342,4.87338855 3.37830235,5.21674268 C2.94572127,5.56009681 2.87338855,6.18911658 3.21674268,6.62169765 L7.21674268,11.6611718 C7.61710439,12.165575 8.38289561,12.165575 8.78325732,11.6611718 L12.7832573,6.62169765 C13.1266115,6.18911658 13.0542787,5.56009681 12.6216977,5.21674268 C12.1891166,4.87338855 11.5600968,4.94572127 11.2167427,5.37830235 L8,9.43097528 L4.78325732,5.37830235 Z' id='Path-2' fill='%23cccccc' transform='translate(8.000000, 8.519717) scale(1, -1) translate(-8.000000, -8.519717) '%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='16px' height='16px' viewBox='0 0 16 16' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/16/Arrow/down%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/16/Arrow/down' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M4.78325732,5.37830235 C4.43990319,4.94572127 3.81088342,4.87338855 3.37830235,5.21674268 C2.94572127,5.56009681 2.87338855,6.18911658 3.21674268,6.62169765 L7.21674268,11.6611718 C7.61710439,12.165575 8.38289561,12.165575 8.78325732,11.6611718 L12.7832573,6.62169765 C13.1266115,6.18911658 13.0542787,5.56009681 12.6216977,5.21674268 C12.1891166,4.87338855 11.5600968,4.94572127 11.2167427,5.37830235 L8,9.43097528 L4.78325732,5.37830235 Z' id='Path-2' fill='%23cccccc'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/32/Clere%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32/Clere' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M16,8 C20.418278,8 24,11.581722 24,16 C24,20.418278 20.418278,24 16,24 C11.581722,24 8,20.418278 8,16 C8,11.581722 11.581722,8 16,8 Z M19.8665357,12.1334643 C19.6885833,11.9555119 19.4000655,11.9555119 19.2221131,12.1334643 L16,15.356 L12.7778869,12.1334643 L12.7064039,12.0750737 C12.5295326,11.9582924 12.2891726,11.977756 12.1334643,12.1334643 L12.0750737,12.2049473 C11.9582924,12.3818186 11.977756,12.6221786 12.1334643,12.7778869 L15.356,16 L12.1334643,19.2221131 C11.9555119,19.4000655 11.9555119,19.6885833 12.1334643,19.8665357 C12.3114167,20.0444881 12.5999345,20.0444881 12.7778869,19.8665357 L16,16.644 L19.2221131,19.8665357 L19.2935961,19.9249263 C19.4704674,20.0417076 19.7108274,20.022244 19.8665357,19.8665357 L19.9249263,19.7950527 C20.0417076,19.6181814 20.022244,19.3778214 19.8665357,19.2221131 L16.644,16 L19.8665357,12.7778869 C20.0444881,12.5999345 20.0444881,12.3114167 19.8665357,12.1334643 Z' id='Shape' fill='%23cccccc'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(102))},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(3),s=n(13),c=n(8),u=n(103),l=n(125),p=n(25),f=(s.ObjectUtils.get,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._currentCaptionRef=null,e._firstCaptionRef=null,e._lastCaptionRef=null,e._handleClick=function(t){return function(){(0,e.props.seekTo)(t)}},e._getShouldScroll=function(t){var n=e.props,r=n.isAutoScrollEnabled,o=n.highlightedMap;return r&&o[t]},e._getShouldScrollToSearchMatch=function(t){var n=e.props,r=n.isAutoScrollEnabled,o=n.searchMap,i=n.activeSearchIndex;return!r&&o[t]&&void 0!==o[t][i]},e._getSearchProps=function(t){var n=e.props,r=n.searchMap,o=n.activeSearchIndex,i=n.captionProps,a={};return r[t]&&(a.indexMap=r[t],a.activeSearchIndex=o,a.searchLength=i.searchLength),a},e._getCaptionProps=function(t){var n=e.props,r=n.highlightedMap,o=n.captionProps,a=n.isAutoScrollEnabled,s=t.id;return i({showTime:o.showTime,scrollTo:o.scrollTo,scrollToSearchMatch:o.scrollToSearchMatch,key:s,onClick:e._handleClick(t),caption:t,highlighted:r[s],longerThanHour:o.videoDuration>=p.HOUR,shouldScroll:e._getShouldScroll(s),shouldScrollToSearchMatch:e._getShouldScrollToSearchMatch(s),isAutoScrollEnabled:a},e._getSearchProps(s))},e._handleKeyUp=function(t){var n,r,o,i;t.keyCode===c.KeyboardKeys.End?null===(r=null===(n=e._lastCaptionRef)||void 0===n?void 0:n._hotspotRef)||void 0===r||r.focus():t.keyCode===c.KeyboardKeys.Home&&(null===(i=null===(o=e._firstCaptionRef)||void 0===o?void 0:o._hotspotRef)||void 0===i||i.focus())},e}return o(e,t),e.prototype.shouldComponentUpdate=function(t){var e=this.props,n=e.highlightedMap,r=e.captions,o=e.searchMap,i=e.activeSearchIndex,a=e.isAutoScrollEnabled,s=e.captionProps;return n!==t.highlightedMap||r!==t.captions||o!==t.searchMap||i!==t.activeSearchIndex||a!==t.isAutoScrollEnabled||s.videoDuration!==t.captionProps.videoDuration},e.prototype.render=function(){var t=this,e=this.props.captions;return a.h("div",{className:l.transcriptWrapper,onKeyUp:this._handleKeyUp},e.map((function(n,r){var o=t._getCaptionProps(n);return a.h(u.Caption,i({ref:function(n){0===r?t._firstCaptionRef=n:r===e.length-1&&(t._lastCaptionRef=n),o.highlighted&&(t._currentCaptionRef=n)}},o))})))},e}(a.Component));e.CaptionList=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(104))},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),a=n(8),s=n(105),c=n(25),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hotspotRef=null,e._handleKeyPress=function(t){var n=t.which||t.keyCode;if(n===a.KeyboardKeys.Enter||n===a.KeyboardKeys.Space)return t.preventDefault(),void e._gotoCurrentTime()},e._handleClick=function(t){var n;t.stopPropagation(),null===(n=e._hotspotRef)||void 0===n||n.focus(),e._gotoCurrentTime()},e._gotoCurrentTime=function(){var t=e.props,n=t.caption,r=t.onClick;n.text.length&&r()},e._renderText=function(t){var n=e.props,r=n.activeSearchIndex,o=n.searchLength,a=n.indexMap,c=[];return a&&(c=Object.keys(a).sort((function(t,e){return Number(t)-Number(e)}))),0===t.length?null:i.h("span",{className:s.captionSpan},a?c.map((function(e,n){var u=0===n?t.substring(0,a[e]):"",l=t.substring(a[e],a[e]+o),p=t.substring(a[e]+o,n-1===c.length?t.length:a[c[n+1]]);return i.h("span",null,u,i.h("span",{className:Number(e)===r?s.activeSearch:s.highlightSearch},l),p)})):t)},e}return o(e,t),e.prototype.componentDidUpdate=function(){this._hotspotRef&&this.props.shouldScroll?this.props.scrollTo(this._hotspotRef):this._hotspotRef&&this.props.shouldScrollToSearchMatch&&this.props.scrollToSearchMatch(this._hotspotRef)},e.prototype.shouldComponentUpdate=function(t){var e=this.props,n=e.indexMap,r=e.highlighted,o=e.isAutoScrollEnabled,i=e.activeSearchIndex;return e.longerThanHour!==t.longerThanHour||(r!==t.highlighted||(!(!r||o===t.isAutoScrollEnabled)||(n!==t.indexMap||!(!n||!t.indexMap||n[i]===t.indexMap[t.activeSearchIndex]))))},e.prototype.render=function(){var t=this,e=this.props,n=e.caption,r=e.highlighted,o=e.showTime,a=e.longerThanHour,u=n.text,l=n.startTime;return i.h("div",{className:s.caption,tabIndex:1,ref:function(e){t._hotspotRef=e},onKeyDown:this._handleKeyPress},o&&i.h("div",{className:s.captionTime},c.secontsToTime(l,a)),i.h("div",{onClick:this._handleClick,className:s.captionContent+" "+(r?s.highlighted:"")+" "+(o?"":s.withoutTime),role:"button"},this._renderText(u)))},e}(i.Component);e.Caption=u},function(t,e,n){var r=n(106);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(4)(!1)).push([t.i,".src-components-caption-caption__caption--3XwrP{display:flex;justify-content:space-between;width:100%;margin-bottom:9px;margin-left:8px;color:#fff}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-time--2vI2E{flex-shrink:1;min-width:48px;align-items:flex-start;margin-right:8px;padding-top:2px;text-align:right;font-size:12px;color:#ccc}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE{flex-grow:1;font-size:14px;line-height:18px;text-align:left;user-select:text}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE:hover .src-components-caption-caption__caption-span--1H41N{background-color:#666}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE:hover.src-components-caption-caption__highlighted--1nPNq .src-components-caption-caption__caption-span--1H41N{color:#fff;background-color:#01819a;padding:0 2px}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE.src-components-caption-caption__highlighted--1nPNq .src-components-caption-caption__caption-span--1H41N{color:#000;background-color:#01accd;padding:0 2px}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE.src-components-caption-caption__without-time--3lzVv{margin-left:16px}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE .src-components-caption-caption__caption-span--1H41N{user-select:text;-ms-user-select:text;border-radius:2px;cursor:pointer}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE .src-components-caption-caption__caption-span--1H41N::selection{background-color:#5b80a7;padding:0 2px}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE .src-components-caption-caption__caption-span--1H41N>span::selection{background-color:#5b80a7}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE .src-components-caption-caption__highlight-search--1Vh4s{color:#000;background-color:#fdd304;border-radius:2px}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE .src-components-caption-caption__highlight-search--1Vh4s::selection{background-color:#5b80a7}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE .src-components-caption-caption__active-search--YJY4d{color:#000;background-color:#1687ff;border-radius:2px}.src-components-caption-caption__caption--3XwrP .src-components-caption-caption__caption-content--2wYNE .src-components-caption-caption__active-search--YJY4d::selection{background-color:#5b80a7}\n",""]),e.locals={caption:"src-components-caption-caption__caption--3XwrP","caption-time":"src-components-caption-caption__caption-time--2vI2E",captionTime:"src-components-caption-caption__caption-time--2vI2E","caption-content":"src-components-caption-caption__caption-content--2wYNE",captionContent:"src-components-caption-caption__caption-content--2wYNE","caption-span":"src-components-caption-caption__caption-span--1H41N",captionSpan:"src-components-caption-caption__caption-span--1H41N",highlighted:"src-components-caption-caption__highlighted--1nPNq","without-time":"src-components-caption-caption__without-time--3lzVv",withoutTime:"src-components-caption-caption__without-time--3lzVv","highlight-search":"src-components-caption-caption__highlight-search--1Vh4s",highlightSearch:"src-components-caption-caption__highlight-search--1Vh4s","active-search":"src-components-caption-caption__active-search--YJY4d",activeSearch:"src-components-caption-caption__active-search--YJY4d"}},function(t,e,n){var r=n(39),o=n(123),i=n(45),a=n(124);t.exports={xml2js:r,xml2json:o,js2xml:i,json2xml:a}},function(t,e,n){(function(t){!function(e){e.parser=function(t,e){return new i(t,e)},e.SAXParser=i,e.SAXStream=s,e.createStream=function(t,e){return new s(t,e)},e.MAX_BUFFER_LENGTH=65536;var r,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(t,n){if(!(this instanceof i))return new i(t,n);!function(t){for(var e=0,n=o.length;e<n;e++)t[o[e]]=""}(this),this.q=this.c="",this.bufferCheckPosition=e.MAX_BUFFER_LENGTH,this.opt=n||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!t,this.noscript=!(!t&&!this.opt.noscript),this.state=w.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(u)),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),x(this,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),i.prototype={end:function(){P(this)},write:function(t){if(this.error)throw this.error;if(this.closed)return S(this,"Cannot write after close. Assign an onready handler.");if(null===t)return P(this);"object"==typeof t&&(t=t.toString());var n=0,r="";for(;r=N(t,n++),this.c=r,r;)switch(this.trackPosition&&(this.position++,"\n"===r?(this.line++,this.column=0):this.column++),this.state){case w.BEGIN:if(this.state=w.BEGIN_WHITESPACE,"\ufeff"===r)continue;K(this,r);continue;case w.BEGIN_WHITESPACE:K(this,r);continue;case w.TEXT:if(this.sawRoot&&!this.closedRoot){for(var i=n-1;r&&"<"!==r&&"&"!==r;)(r=N(t,n++))&&this.trackPosition&&(this.position++,"\n"===r?(this.line++,this.column=0):this.column++);this.textNode+=t.substring(i,n-1)}"<"!==r||this.sawRoot&&this.closedRoot&&!this.strict?(d(r)||this.sawRoot&&!this.closedRoot||O(this,"Text data outside of root node."),"&"===r?this.state=w.TEXT_ENTITY:this.textNode+=r):(this.state=w.OPEN_WAKA,this.startTagPosition=this.position);continue;case w.SCRIPT:"<"===r?this.state=w.SCRIPT_ENDING:this.script+=r;continue;case w.SCRIPT_ENDING:"/"===r?this.state=w.CLOSE_TAG:(this.script+="<"+r,this.state=w.SCRIPT);continue;case w.OPEN_WAKA:if("!"===r)this.state=w.SGML_DECL,this.sgmlDecl="";else if(d(r));else if(m(l,r))this.state=w.OPEN_TAG,this.tagName=r;else if("/"===r)this.state=w.CLOSE_TAG,this.tagName="";else if("?"===r)this.state=w.PROC_INST,this.procInstName=this.procInstBody="";else{if(O(this,"Unencoded <"),this.startTagPosition+1<this.position){var a=this.position-this.startTagPosition;r=new Array(a).join(" ")+r}this.textNode+="<"+r,this.state=w.TEXT}continue;case w.SGML_DECL:"[CDATA["===(this.sgmlDecl+r).toUpperCase()?(E(this,"onopencdata"),this.state=w.CDATA,this.sgmlDecl="",this.cdata=""):this.sgmlDecl+r==="--"?(this.state=w.COMMENT,this.comment="",this.sgmlDecl=""):"DOCTYPE"===(this.sgmlDecl+r).toUpperCase()?(this.state=w.DOCTYPE,(this.doctype||this.sawRoot)&&O(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===r?(E(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=w.TEXT):g(r)?(this.state=w.SGML_DECL_QUOTED,this.sgmlDecl+=r):this.sgmlDecl+=r;continue;case w.SGML_DECL_QUOTED:r===this.q&&(this.state=w.SGML_DECL,this.q=""),this.sgmlDecl+=r;continue;case w.DOCTYPE:">"===r?(this.state=w.TEXT,E(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=r,"["===r?this.state=w.DOCTYPE_DTD:g(r)&&(this.state=w.DOCTYPE_QUOTED,this.q=r));continue;case w.DOCTYPE_QUOTED:this.doctype+=r,r===this.q&&(this.q="",this.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:this.doctype+=r,"]"===r?this.state=w.DOCTYPE:g(r)&&(this.state=w.DOCTYPE_DTD_QUOTED,this.q=r);continue;case w.DOCTYPE_DTD_QUOTED:this.doctype+=r,r===this.q&&(this.state=w.DOCTYPE_DTD,this.q="");continue;case w.COMMENT:"-"===r?this.state=w.COMMENT_ENDING:this.comment+=r;continue;case w.COMMENT_ENDING:"-"===r?(this.state=w.COMMENT_ENDED,this.comment=T(this.opt,this.comment),this.comment&&E(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+r,this.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==r?(O(this,"Malformed comment"),this.comment+="--"+r,this.state=w.COMMENT):this.state=w.TEXT;continue;case w.CDATA:"]"===r?this.state=w.CDATA_ENDING:this.cdata+=r;continue;case w.CDATA_ENDING:"]"===r?this.state=w.CDATA_ENDING_2:(this.cdata+="]"+r,this.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===r?(this.cdata&&E(this,"oncdata",this.cdata),E(this,"onclosecdata"),this.cdata="",this.state=w.TEXT):"]"===r?this.cdata+="]":(this.cdata+="]]"+r,this.state=w.CDATA);continue;case w.PROC_INST:"?"===r?this.state=w.PROC_INST_ENDING:d(r)?this.state=w.PROC_INST_BODY:this.procInstName+=r;continue;case w.PROC_INST_BODY:if(!this.procInstBody&&d(r))continue;"?"===r?this.state=w.PROC_INST_ENDING:this.procInstBody+=r;continue;case w.PROC_INST_ENDING:">"===r?(E(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=w.TEXT):(this.procInstBody+="?"+r,this.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:m(p,r)?this.tagName+=r:(M(this),">"===r?j(this):"/"===r?this.state=w.OPEN_TAG_SLASH:(d(r)||O(this,"Invalid character in tag name"),this.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:">"===r?(j(this,!0),I(this)):(O(this,"Forward-slash in opening tag not followed by >"),this.state=w.ATTRIB);continue;case w.ATTRIB:if(d(r))continue;">"===r?j(this):"/"===r?this.state=w.OPEN_TAG_SLASH:m(l,r)?(this.attribName=r,this.attribValue="",this.state=w.ATTRIB_NAME):O(this,"Invalid attribute name");continue;case w.ATTRIB_NAME:"="===r?this.state=w.ATTRIB_VALUE:">"===r?(O(this,"Attribute without value"),this.attribValue=this.attribName,L(this),j(this)):d(r)?this.state=w.ATTRIB_NAME_SAW_WHITE:m(p,r)?this.attribName+=r:O(this,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===r)this.state=w.ATTRIB_VALUE;else{if(d(r))continue;O(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",E(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===r?j(this):m(l,r)?(this.attribName=r,this.state=w.ATTRIB_NAME):(O(this,"Invalid attribute name"),this.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:if(d(r))continue;g(r)?(this.q=r,this.state=w.ATTRIB_VALUE_QUOTED):(O(this,"Unquoted attribute value"),this.state=w.ATTRIB_VALUE_UNQUOTED,this.attribValue=r);continue;case w.ATTRIB_VALUE_QUOTED:if(r!==this.q){"&"===r?this.state=w.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=r;continue}L(this),this.q="",this.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:d(r)?this.state=w.ATTRIB:">"===r?j(this):"/"===r?this.state=w.OPEN_TAG_SLASH:m(l,r)?(O(this,"No whitespace between attributes"),this.attribName=r,this.attribValue="",this.state=w.ATTRIB_NAME):O(this,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!_(r)){"&"===r?this.state=w.ATTRIB_VALUE_ENTITY_U:this.attribValue+=r;continue}L(this),">"===r?j(this):this.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(this.tagName)">"===r?I(this):m(p,r)?this.tagName+=r:this.script?(this.script+="</"+this.tagName,this.tagName="",this.state=w.SCRIPT):(d(r)||O(this,"Invalid tagname in closing tag"),this.state=w.CLOSE_TAG_SAW_WHITE);else{if(d(r))continue;y(l,r)?this.script?(this.script+="</"+r,this.state=w.SCRIPT):O(this,"Invalid tagname in closing tag."):this.tagName=r}continue;case w.CLOSE_TAG_SAW_WHITE:if(d(r))continue;">"===r?I(this):O(this,"Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:var s,c;switch(this.state){case w.TEXT_ENTITY:s=w.TEXT,c="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:s=w.ATTRIB_VALUE_QUOTED,c="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:s=w.ATTRIB_VALUE_UNQUOTED,c="attribValue"}";"===r?(this[c]+=R(this),this.entity="",this.state=s):m(this.entity.length?h:f,r)?this.entity+=r:(O(this,"Invalid character in entity name"),this[c]+="&"+this.entity+r,this.entity="",this.state=s);continue;default:throw new Error(this,"Unknown state: "+this.state)}this.position>=this.bufferCheckPosition&&function(t){for(var n=Math.max(e.MAX_BUFFER_LENGTH,10),r=0,i=0,a=o.length;i<a;i++){var s=t[o[i]].length;if(s>n)switch(o[i]){case"textNode":k(t);break;case"cdata":E(t,"oncdata",t.cdata),t.cdata="";break;case"script":E(t,"onscript",t.script),t.script="";break;default:S(t,"Max buffer length exceeded: "+o[i])}r=Math.max(r,s)}var c=e.MAX_BUFFER_LENGTH-r;t.bufferCheckPosition=c+t.position}(this);return this}
|
|
31
|
-
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;k(t=this),""!==t.cdata&&(E(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(E(t,"onscript",t.script),t.script="")}};try{r=n(111).Stream}catch(t){r=function(){}}var a=e.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function s(t,e){if(!(this instanceof s))return new s(t,e);r.apply(this),this._parser=new i(t,e),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},this._decoder=null,a.forEach((function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e,e;n.on(t,e)},enumerable:!0,configurable:!1})}))}s.prototype=Object.create(r.prototype,{constructor:{value:s}}),s.prototype.write=function(e){if("function"==typeof t&&"function"==typeof t.isBuffer&&t.isBuffer(e)){if(!this._decoder){var r=n(29).StringDecoder;this._decoder=new r("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},s.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},s.prototype.on=function(t,e){var n=this;return n._parser["on"+t]||-1===a.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),r.prototype.on.call(n,t,e)};var c="http://www.w3.org/XML/1998/namespace",u={xml:c,xmlns:"http://www.w3.org/2000/xmlns/"},l=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function d(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function g(t){return'"'===t||"'"===t}function _(t){return">"===t||d(t)}function m(t,e){return t.test(e)}function y(t,e){return!m(t,e)}var v,b,C,w=0;for(var A in e.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var n=e.ENTITIES[t],r="number"==typeof n?String.fromCharCode(n):n;e.ENTITIES[t]=r})),e.STATE)e.STATE[e.STATE[A]]=A;function x(t,e,n){t[e]&&t[e](n)}function E(t,e,n){t.textNode&&k(t),x(t,e,n)}function k(t){t.textNode=T(t.opt,t.textNode),t.textNode&&x(t,"ontext",t.textNode),t.textNode=""}function T(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function S(t,e){return k(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,x(t,"onerror",e),t}function P(t){return t.sawRoot&&!t.closedRoot&&O(t,"Unclosed root tag"),t.state!==w.BEGIN&&t.state!==w.BEGIN_WHITESPACE&&t.state!==w.TEXT&&S(t,"Unexpected end"),k(t),t.c="",t.closed=!0,x(t,"onend"),i.call(t,t.strict,t.opt),t}function O(t,e){if("object"!=typeof t||!(t instanceof i))throw new Error("bad call to strictFail");t.strict&&S(t,e)}function M(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,E(t,"onopentagstart",n)}function B(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),r=n[0],o=n[1];return e&&"xmlns"===t&&(r="xmlns",o=""),{prefix:r,local:o}}function L(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=B(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==c)O(t,"xml: prefix must be bound to "+c+"\nActual: "+t.attribValue);else if("xmlns"===r&&"http://www.w3.org/2000/xmlns/"!==t.attribValue)O(t,"xmlns: prefix must be bound to http://www.w3.org/2000/xmlns/\nActual: "+t.attribValue);else{var o=t.tag,i=t.tags[t.tags.length-1]||t;o.ns===i.ns&&(o.ns=Object.create(i.ns)),o.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,E(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function j(t,e){if(t.opt.xmlns){var n=t.tag,r=B(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(O(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var o=t.tags[t.tags.length-1]||t;n.ns&&o.ns!==n.ns&&Object.keys(n.ns).forEach((function(e){E(t,"onopennamespace",{prefix:e,uri:n.ns[e]})}));for(var i=0,a=t.attribList.length;i<a;i++){var s=t.attribList[i],c=s[0],u=s[1],l=B(c,!0),p=l.prefix,f=l.local,h=""===p?"":n.ns[p]||"",d={name:c,value:u,prefix:p,local:f,uri:h};p&&"xmlns"!==p&&!h&&(O(t,"Unbound namespace prefix: "+JSON.stringify(p)),d.uri=p),t.tag.attributes[c]=d,E(t,"onattribute",d)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),E(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=w.TEXT:t.state=w.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function I(t){if(!t.tagName)return O(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=w.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=w.SCRIPT);E(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--;){if(t.tags[e].name===r)break;O(t,"Unexpected close tag")}if(e<0)return O(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=w.TEXT);t.tagName=n;for(var o=t.tags.length;o-- >e;){var i=t.tag=t.tags.pop();t.tagName=t.tag.name,E(t,"onclosetag",t.tagName);var a={};for(var s in i.ns)a[s]=i.ns[s];var c=t.tags[t.tags.length-1]||t;t.opt.xmlns&&i.ns!==c.ns&&Object.keys(i.ns).forEach((function(e){var n=i.ns[e];E(t,"onclosenamespace",{prefix:e,uri:n})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=w.TEXT}function R(t){var e,n=t.entity,r=n.toLowerCase(),o="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),o=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),o=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(e)||o.toLowerCase()!==n?(O(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function K(t,e){"<"===e?(t.state=w.OPEN_WAKA,t.startTagPosition=t.position):d(e)||(O(t,"Non-whitespace before first tag."),t.textNode=e,t.state=w.TEXT)}function N(t,e){var n="";return e<t.length&&(n=t.charAt(e)),n}w=e.STATE,String.fromCodePoint||(v=String.fromCharCode,b=Math.floor,C=function(){var t,e,n=16384,r=[],o=-1,i=arguments.length;if(!i)return"";for(var a="";++o<i;){var s=Number(arguments[o]);if(!isFinite(s)||s<0||s>1114111||b(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(t=55296+((s-=65536)>>10),e=s%1024+56320,r.push(t,e)),(o+1===i||r.length>n)&&(a+=v.apply(null,r),r.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:C,configurable:!0,writable:!0}):String.fromCodePoint=C)}(e)}).call(this,n(18).Buffer)},function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),a=r[0],s=r[1],c=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,p=s>0?a-4:a;for(n=0;n<p;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;2===s&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,c[l++]=255&e);1===s&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(l(t,a,a+16383>s?s:a+16383));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var o,i,a=[],s=e;s<n;s+=3)o=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,l=-7,p=n?o-1:0,f=n?-1:1,h=t[e+p];for(p+=f,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+t[e+p],p+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+t[e+p],p+=f,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,p=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+p>=1?f/c:f*Math.pow(2,1-p))*c>=2&&(a++,c/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(e*c-1)*Math.pow(2,o),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;t[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;t[n+h]=255&a,h+=d,a/=256,u-=8);t[n+h-d]|=128*g}},function(t,e,n){t.exports=o;var r=n(26).EventEmitter;function o(){r.call(this)}n(12)(o,r),o.Readable=n(27),o.Writable=n(119),o.Duplex=n(120),o.Transform=n(121),o.PassThrough=n(122),o.Stream=o,o.prototype.pipe=function(t,e){var n=this;function o(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),t.on("drain",i),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,t.end())}function c(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(l(),0===r.listenerCount(this,"error"))throw t}function l(){n.removeListener("data",o),t.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),t.removeListener("close",l)}return n.on("error",u),t.on("error",u),n.on("end",l),n.on("close",l),t.on("close",l),t.emit("pipe",n),t}},function(t,e){},function(t,e,n){"use strict";var r=n(21).Buffer,o=n(114);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,o,i=r.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=i,o=s,e.copy(n,o),s+=a.data.length,a=a.next;return i},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(116),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,a,s,c=1,u={},l=!1,p=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){i.port2.postMessage(t)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,r=function(t){var e=p.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return u[c]=o,r(c),c++},f.clearImmediate=h}function h(t){delete u[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=u[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{h(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(11),n(19))},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,n(11))},function(t,e,n){"use strict";t.exports=i;var r=n(44),o=n(16);function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}o.inherits=n(12),o.inherits(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(28)},function(t,e,n){t.exports=n(7)},function(t,e,n){t.exports=n(27).Transform},function(t,e,n){t.exports=n(27).PassThrough},function(t,e,n){var r=n(30),o=n(39);t.exports=function(t,e){var n,i,a;return n=function(t){var e=r.copyOptions(t);return r.ensureSpacesExists(e),e}(e),i=o(t,n),a="compact"in n&&n.compact?"_parent":"parent",("addParent"in n&&n.addParent?JSON.stringify(i,(function(t,e){return t===a?"_":e}),n.spaces):JSON.stringify(i,null,n.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},function(t,e,n){(function(e){var r=n(45);t.exports=function(t,n){t instanceof e&&(t=t.toString());var o=null;if("string"==typeof t)try{o=JSON.parse(t)}catch(t){throw new Error("The JSON structure is invalid")}else o=t;return r(o,n)}}).call(this,n(18).Buffer)},function(t,e,n){var r=n(126);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(4)(!1)).push([t.i,".src-components-caption-list-captionList__transcript-wrapper--f0Xik{position:absolute;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-right:9px}\n",""]),e.locals={"transcript-wrapper":"src-components-caption-list-captionList__transcript-wrapper--f0Xik",transcriptWrapper:"src-components-caption-list-captionList__transcript-wrapper--f0Xik"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(128))},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__rest||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};Object.defineProperty(e,"__esModule",{value:!0});var s=n(3),c=n(8),u=n(129),l=n(133),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={popoverOpen:!1},e._onDownloadClicked=function(){e.props.onDownload()},e._onPrintClicked=function(){e.props.onPrint()},e._onKeyDown=function(t,e){switch(t.keyCode!==c.KeyboardKeys.Enter&&t.keyCode!==c.KeyboardKeys.Esc&&t.stopPropagation(),t.keyCode){case 13:e()}},e._popoverMenuItemRenderer=function(t){return s.h("div",{tabIndex:1,role:"button",onClick:function(){return t.onMenuChosen()},onKeyDown:function(n){return e._onKeyDown(n,t.onMenuChosen)},className:l.popoverMenuItem},t.label)},e._getPopoverMenuOptions=function(){return[{label:e.props.downloadButtonAriaLabel,onMenuChosen:e._onDownloadClicked},{label:e.props.printButtonAriaLabel,onMenuChosen:e._onPrintClicked}]},e._renderIcon=function(t){var e=t.buttonStyles,n=t.tabIndex,r=void 0===n?1:n,o=t.iconStyles,c=a(t,["buttonStyles","tabIndex","iconStyles"]);return s.h("button",i({className:e,tabIndex:r},c),s.h("div",{className:o}))},e._popoverContent=function(){return s.h(u.PopoverMenu,{itemRenderer:e._popoverMenuItemRenderer,options:e._getPopoverMenuOptions()})},e}return o(e,t),e.prototype.render=function(t){var e,n,r,o=t.downloadDisabled,i=t.printDisabled;return o||i?!o&&i?this._renderIcon(((n={})["aria-label"]=t.downloadButtonAriaLabel,n.buttonStyles=l.downloadPrintButton,n.iconStyles=[l.icon,l.downloadIcon].join(" "),n.onClick=this._onDownloadClicked,n)):o&&!i?this._renderIcon(((r={})["aria-label"]=t.printButtonAriaLabel,r.buttonStyles=l.downloadPrintButton,r.iconStyles=[l.icon,l.printIcon].join(" "),r.onClick=this._onPrintClicked,r)):null:s.h(c.Popover,{className:"download-print-popover",verticalPosition:c.PopoverVerticalPositions.Bottom,horizontalPosition:c.PopoverHorizontalPositions.Left,content:this._popoverContent()},this._renderIcon(((e={})["aria-label"]=t.dropdownAriaLabel,e.buttonStyles=l.downloadPrintButton,e.iconStyles=[l.icon,l.downloadIcon].join(" "),e)))},e.defaultProps={dropdownAriaLabel:"Download or print current transcript",printButtonAriaLabel:"Print current transcript",downloadButtonAriaLabel:"Download current transcript"},e}(s.Component);e.DownloadPrintMenu=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(130))},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),a=n(131),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t){return i.h("div",{className:a.popoverMenu},t.options.map((function(e){return e.customRenderer?e.customRenderer(e):t.itemRenderer?t.itemRenderer(e):i.h("div",{className:"popover-menu-item",onClick:function(){return e.onMenuChosen(e)}},e.label)})))},e}(i.Component);e.PopoverMenu=s},function(t,e,n){var r=n(132);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(e=t.exports=n(4)(!1)).push([t.i,".src-components-popover-menu-popover-menu__popover-menu--1g4DI{padding-top:6px;padding-bottom:6px}\n",""]),e.locals={"popover-menu":"src-components-popover-menu-popover-menu__popover-menu--1g4DI",popoverMenu:"src-components-popover-menu-popover-menu__popover-menu--1g4DI"}},function(t,e,n){var r=n(134);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(4)(!1);var r=n(14),o=r(n(135)),i=r(n(136)),a=r(n(137)),s=r(n(138));e.push([t.i,".src-components-download-print-menu-download-print-menu__download-print-button--p3A_x{display:inline-block;width:36px;height:36px;color:#fff;border:none;cursor:pointer;padding:0;opacity:0.8;background:none}.src-components-download-print-menu-download-print-menu__download-print-button--p3A_x:hover,.src-components-download-print-menu-download-print-menu__download-print-button--p3A_x:active{border-radius:4px;background-color:rgba(0,0,0,0.8)}.src-components-download-print-menu-download-print-menu__download-print-button--p3A_x:focus{outline:1px solid #00cbff}.src-components-download-print-menu-download-print-menu__download-print-button--p3A_x .src-components-download-print-menu-download-print-menu__icon--3D6Bs{width:100%;height:100%;background-position:center;background-size:cover}.src-components-download-print-menu-download-print-menu__download-print-button--p3A_x .src-components-download-print-menu-download-print-menu__download-icon--zO2i1{background-image:url("+o+")}.src-components-download-print-menu-download-print-menu__download-print-button--p3A_x .src-components-download-print-menu-download-print-menu__download-icon--zO2i1:active{background-image:url("+i+")}.src-components-download-print-menu-download-print-menu__download-print-button--p3A_x .src-components-download-print-menu-download-print-menu__print-icon--3BgL1{background-image:url("+a+")}.src-components-download-print-menu-download-print-menu__download-print-button--p3A_x .src-components-download-print-menu-download-print-menu__print-icon--3BgL1:active{background-image:url("+s+")}.src-components-download-print-menu-download-print-menu__popover-menu-item--35vi-{display:flex;align-items:center;padding:9px 24px 9px 16px;white-space:nowrap;min-height:30px;line-height:18px;font-size:15px}.src-components-download-print-menu-download-print-menu__popover-menu-item--35vi-:hover{cursor:pointer;background-color:#666}.src-components-download-print-menu-download-print-menu__popover-menu-item--35vi-:focus{outline:1px solid #00cbff}\n",""]),e.locals={"download-print-button":"src-components-download-print-menu-download-print-menu__download-print-button--p3A_x",downloadPrintButton:"src-components-download-print-menu-download-print-menu__download-print-button--p3A_x",icon:"src-components-download-print-menu-download-print-menu__icon--3D6Bs","download-icon":"src-components-download-print-menu-download-print-menu__download-icon--zO2i1",downloadIcon:"src-components-download-print-menu-download-print-menu__download-icon--zO2i1","print-icon":"src-components-download-print-menu-download-print-menu__print-icon--3BgL1",printIcon:"src-components-download-print-menu-download-print-menu__print-icon--3BgL1","popover-menu-item":"src-components-download-print-menu-download-print-menu__popover-menu-item--35vi-",popoverMenuItem:"src-components-download-print-menu-download-print-menu__popover-menu-item--35vi-"}},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/32/Download%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32/Download' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M26,25 C26.5522847,25 27,25.4477153 27,26 C27,26.5522847 26.5522847,27 26,27 L26,27 L7,27 C6.44771525,27 6,26.5522847 6,26 C6,25.4477153 6.44771525,25 7,25 L7,25 Z M15.897,20.797 L15.817,20.73 L15.8163834,20.7298413 L8.34305882,13.7298413 C7.93997861,13.3522902 7.91928313,12.7194636 8.29683417,12.3163834 C8.67438521,11.9133032 9.30721188,11.8926077 9.71029209,12.2701587 L15.4996721,17.693 L15.5,6 C15.5,5.48716416 15.8860402,5.06449284 16.3833789,5.00672773 L16.5,5 C17.0522847,5 17.5,5.44771525 17.5,6 L17.4996721,17.694 L23.2951711,12.2699211 C23.6673663,11.9215418 24.2352038,11.9125649 24.6172049,12.230382 L24.7086128,12.3166371 C25.0860237,12.7198486 25.0651082,13.352668 24.6618968,13.7300789 L17.1833629,20.7300789 L17.1610165,20.7503813 L17.1610165,20.7503813 C17.1421868,20.7669999 17.1224361,20.7831339 17.102079,20.7985075 C17.0891381,20.8082894 17.0764369,20.8174134 17.0635772,20.826204 C17.0434306,20.8399634 17.0223437,20.8532674 17.0007451,20.8657864 C16.9872099,20.8736423 16.9734873,20.8811624 16.959633,20.8883367 L16.8877511,20.9220455 L16.8877511,20.9220455 C16.8756318,20.927087 16.8632234,20.9320132 16.8507409,20.9366814 C16.83028,20.9444208 16.8097352,20.9513578 16.7889039,20.9576336 C16.7705976,20.9630349 16.752126,20.968019 16.7335525,20.9724647 C16.6585039,20.9905214 16.5803589,21 16.5,21 C16.4170842,21 16.3365254,20.9899086 16.2594848,20.9708871 C16.2500284,20.9684434 16.2399293,20.9657886 16.2298654,20.9629733 C16.2028024,20.9554899 16.1769173,20.947049 16.1515197,20.9376057 C16.1370523,20.9321598 16.1223107,20.9262914 16.1076867,20.9200585 C16.0832011,20.9096448 16.0596143,20.8984375 16.036557,20.886357 C16.025923,20.8807972 16.0148138,20.8747205 16.0037984,20.8684173 C15.9792921,20.8543502 15.955966,20.8396537 15.9333153,20.8240474 L15.898,20.798 L15.897,20.797 Z M15.867,20.774 L15.888,20.79 L15.8735171,20.7794831 L15.8735171,20.7794831 L15.867,20.774 Z M15.817,20.73 L15.9035191,20.8027045 C15.8784859,20.7840722 15.8543541,20.7642966 15.831201,20.7434548 L15.817,20.73 Z' id='Combined-Shape' fill='%23ffffff'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 57.1 (83088) - https://sketch.com --%3E %3Ctitle%3EIcons/32/Download%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32/Download' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M26,25 C26.5522847,25 27,25.4477153 27,26 C27,26.5522847 26.5522847,27 26,27 L26,27 L7,27 C6.44771525,27 6,26.5522847 6,26 C6,25.4477153 6.44771525,25 7,25 L7,25 Z M15.897,20.797 L15.817,20.73 L15.8163834,20.7298413 L8.34305882,13.7298413 C7.93997861,13.3522902 7.91928313,12.7194636 8.29683417,12.3163834 C8.67438521,11.9133032 9.30721188,11.8926077 9.71029209,12.2701587 L15.4996721,17.693 L15.5,6 C15.5,5.48716416 15.8860402,5.06449284 16.3833789,5.00672773 L16.5,5 C17.0522847,5 17.5,5.44771525 17.5,6 L17.4996721,17.694 L23.2951711,12.2699211 C23.6673663,11.9215418 24.2352038,11.9125649 24.6172049,12.230382 L24.7086128,12.3166371 C25.0860237,12.7198486 25.0651082,13.352668 24.6618968,13.7300789 L17.1833629,20.7300789 L17.1610165,20.7503813 L17.1610165,20.7503813 C17.1421868,20.7669999 17.1224361,20.7831339 17.102079,20.7985075 C17.0891381,20.8082894 17.0764369,20.8174134 17.0635772,20.826204 C17.0434306,20.8399634 17.0223437,20.8532674 17.0007451,20.8657864 C16.9872099,20.8736423 16.9734873,20.8811624 16.959633,20.8883367 L16.8877511,20.9220455 L16.8877511,20.9220455 C16.8756318,20.927087 16.8632234,20.9320132 16.8507409,20.9366814 C16.83028,20.9444208 16.8097352,20.9513578 16.7889039,20.9576336 C16.7705976,20.9630349 16.752126,20.968019 16.7335525,20.9724647 C16.6585039,20.9905214 16.5803589,21 16.5,21 C16.4170842,21 16.3365254,20.9899086 16.2594848,20.9708871 C16.2500284,20.9684434 16.2399293,20.9657886 16.2298654,20.9629733 C16.2028024,20.9554899 16.1769173,20.947049 16.1515197,20.9376057 C16.1370523,20.9321598 16.1223107,20.9262914 16.1076867,20.9200585 C16.0832011,20.9096448 16.0596143,20.8984375 16.036557,20.886357 C16.025923,20.8807972 16.0148138,20.8747205 16.0037984,20.8684173 C15.9792921,20.8543502 15.955966,20.8396537 15.9333153,20.8240474 L15.898,20.798 L15.897,20.797 Z M15.867,20.774 L15.888,20.79 L15.8735171,20.7794831 L15.8735171,20.7794831 L15.867,20.774 Z M15.817,20.73 L15.9035191,20.8027045 C15.8784859,20.7840722 15.8543541,20.7642966 15.831201,20.7434548 L15.817,20.73 Z' id='Combined-Shape' fill='%2301ACCD'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 59 (86127) - https://sketch.com --%3E %3Ctitle%3EIcons/32/print%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32/print' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M21,3 C22.0543618,3 22.9181651,3.81587779 22.9945143,4.85073766 L23,5 L23,9 L26,9 C27.1045695,9 28,9.8954305 28,11 L28,21 C28,22.1045695 27.1045695,23 26,23 L23,23 L23,28 C23,29.1045695 22.1045695,30 21,30 L11,30 C9.8954305,30 9,29.1045695 9,28 L9,23 L6,23 C4.8954305,23 4,22.1045695 4,21 L4,11 C4,9.8954305 4.8954305,9 6,9 L9,9 L9,5 C9,3.9456382 9.81587779,3.08183488 10.8507377,3.00548574 L11,3 L21,3 Z M21,19 L11,19 L11,28 L21,28 L21,19 Z M26,11 L6,11 L6,21 L9,21 L9,19 C8.44771525,19 8,18.5522847 8,18 C8,17.4477153 8.44771525,17 9,17 L23,17 C23.5522847,17 24,17.4477153 24,18 C24,18.5522847 23.5522847,19 23,19 L23,21 L26,21 L26,11 Z M21,5 L11,5 L11,9 L21,9 L21,5 Z' id='Combined-Shape' fill='%23fff'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"},function(t,e){t.exports="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='32px' height='32px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 59 (86127) - https://sketch.com --%3E %3Ctitle%3EIcons/32/print%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='Icons/32/print' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cpath d='M21,3 C22.0543618,3 22.9181651,3.81587779 22.9945143,4.85073766 L23,5 L23,9 L26,9 C27.1045695,9 28,9.8954305 28,11 L28,21 C28,22.1045695 27.1045695,23 26,23 L23,23 L23,28 C23,29.1045695 22.1045695,30 21,30 L11,30 C9.8954305,30 9,29.1045695 9,28 L9,23 L6,23 C4.8954305,23 4,22.1045695 4,21 L4,11 C4,9.8954305 4.8954305,9 6,9 L9,9 L9,5 C9,3.9456382 9.81587779,3.08183488 10.8507377,3.00548574 L11,3 L21,3 Z M21,19 L11,19 L11,28 L21,28 L21,19 Z M26,11 L6,11 L6,21 L9,21 L9,19 C8.44771525,19 8,18.5522847 8,18 C8,17.4477153 8.44771525,17 9,17 L23,17 C23.5522847,17 24,17.4477153 24,18 C24,18.5522847 23.5522847,19 23,19 L23,21 L26,21 L26,11 Z M21,5 L11,5 L11,9 L21,9 L21,5 Z' id='Combined-Shape' fill='%2301ACCD'%3E%3C/path%3E %3C/g%3E %3C/svg%3E"}])}));
|
|
1
|
+
var KalturaPlayer;(()=>{var e={828:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".captionList__transcript-wrapper___Omf8T{position:absolute;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-right:9px}\n","",{version:3,sources:["webpack://./components/caption-list/captionList.scss"],names:[],mappings:"AAAA,yCACE,iBAAkB,CAClB,UAAW,CACX,YAAa,CACb,qBAAsB,CACtB,kBAAmB,CACnB,sBAAuB,CACvB,iBAAkB",sourcesContent:[".transcript-wrapper {\n position: absolute;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding-right: 9px;\n}\n"],sourceRoot:""}]),a.locals={"transcript-wrapper":"captionList__transcript-wrapper___Omf8T",transcriptWrapper:"captionList__transcript-wrapper___Omf8T"};const c=a},9116:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".caption__caption___v5MZY{display:flex;justify-content:space-between;width:100%;margin-bottom:9px;margin-left:8px;color:#fff}.caption__caption___v5MZY .caption__caption-time___N5cw5{flex-shrink:1;min-width:48px;align-items:flex-start;margin-right:8px;padding-top:2px;text-align:right;font-size:12px;color:#ccc}.caption__caption___v5MZY .caption__caption-content___F1WTh{flex-grow:1;font-size:14px;line-height:18px;text-align:left;user-select:text}.caption__caption___v5MZY .caption__caption-content___F1WTh:hover .caption__caption-span___cTewu{background-color:#666}.caption__caption___v5MZY .caption__caption-content___F1WTh:hover.caption__highlighted___ikaKW .caption__caption-span___cTewu{color:#fff;background-color:#01819a;padding:0 2px}.caption__caption___v5MZY .caption__caption-content___F1WTh.caption__highlighted___ikaKW .caption__caption-span___cTewu{color:#000;background-color:#01accd;padding:0 2px}.caption__caption___v5MZY .caption__caption-content___F1WTh.caption__without-time___v7BWT{margin-left:16px}.caption__caption___v5MZY .caption__caption-content___F1WTh .caption__caption-span___cTewu{user-select:text;-ms-user-select:text;border-radius:2px;cursor:pointer}.caption__caption___v5MZY .caption__caption-content___F1WTh .caption__caption-span___cTewu::selection{background-color:#5b80a7;padding:0 2px}.caption__caption___v5MZY .caption__caption-content___F1WTh .caption__caption-span___cTewu>span::selection{background-color:#5b80a7}.caption__caption___v5MZY .caption__caption-content___F1WTh .caption__highlight-search___Rc4qg{color:#000;background-color:#fdd304;border-radius:2px}.caption__caption___v5MZY .caption__caption-content___F1WTh .caption__highlight-search___Rc4qg::selection{background-color:#5b80a7}.caption__caption___v5MZY .caption__caption-content___F1WTh .caption__active-search___yoZOD{color:#000;background-color:#1687ff;border-radius:2px}.caption__caption___v5MZY .caption__caption-content___F1WTh .caption__active-search___yoZOD::selection{background-color:#5b80a7}\n","",{version:3,sources:["webpack://./components/caption/caption.scss","webpack://./variables.scss"],names:[],mappings:"AAEA,0BACE,YAAa,CACb,6BAA8B,CAC9B,UAAW,CACX,iBAAkB,CAClB,eAAgB,CAChB,UCPmB,CDCrB,yDAQI,aAAc,CACd,cAAe,CACf,sBAAuB,CACvB,gBAAiB,CACjB,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CACf,UCfgB,CDApB,4DAkBI,WAAY,CACZ,cAAe,CACf,gBAAiB,CACjB,eAAgB,CAChB,gBAAiB,CAtBrB,iGAyBQ,qBCtBgB,CDHxB,8HA6BU,UC9BW,CD+BX,wBCpBkC,CDqBlC,aAAc,CA/BxB,wHAqCQ,UChCa,CDiCb,wBCxCY,CDyCZ,aAAc,CAvCtB,0FA2CM,gBAAiB,CA3CvB,2FA8CM,gBAAiB,CACjB,oBAAqB,CACrB,iBAAkB,CAClB,cAAe,CAjDrB,sGAmDQ,wBC1CsB,CD2CtB,aAAc,CApDtB,2GAuDQ,wBC9CsB,CDT9B,+FA2DM,UCtDe,CDuDf,wBCrDoB,CDsDpB,iBAAkB,CA7DxB,0GA+DQ,wBCtDsB,CDT9B,4FAmEM,UC9De,CD+Df,wBC5D4B,CD6D5B,iBAAkB,CArExB,uGAuEQ,wBC9DsB",sourcesContent:["@import '../../variables.scss';\n\n.caption {\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-bottom: 9px;\n margin-left: 8px;\n color: $white-color;\n .caption-time {\n flex-shrink: 1;\n min-width: 48px;\n align-items: flex-start;\n margin-right: 8px;\n padding-top: 2px;\n text-align: right;\n font-size: 12px;\n color: $gray-color;\n }\n .caption-content {\n flex-grow: 1;\n font-size: 14px;\n line-height: 18px;\n text-align: left;\n user-select: text;\n &:hover {\n .caption-span {\n background-color: $semigray-color;\n }\n &.highlighted {\n .caption-span {\n color: $white-color;\n background-color: $main-color-darken;\n padding: 0 2px;\n }\n }\n }\n &.highlighted {\n .caption-span {\n color: $black-color;\n background-color: $main-color;\n padding: 0 2px;\n }\n }\n &.without-time {\n margin-left: 16px;\n }\n .caption-span {\n user-select: text;\n -ms-user-select: text;\n border-radius: 2px;\n cursor: pointer;\n &::selection {\n background-color: $text-selection-color;\n padding: 0 2px;\n }\n & > span::selection {\n background-color: $text-selection-color;\n }\n }\n .highlight-search {\n color: $black-color;\n background-color: $text-match-color;\n border-radius: 2px;\n &::selection {\n background-color: $text-selection-color;\n }\n }\n .active-search {\n color: $black-color;\n background-color: $text-current-match-color;\n border-radius: 2px;\n &::selection {\n background-color: $text-selection-color;\n }\n }\n }\n}\n","$main-color: #01accd;\n$white-color: #ffffff;\n$gray-color: #cccccc;\n$darken-gray: #444444;\n$darkgray-color: #333333;\n$semigray-color: #666666;\n$lightgray-color: #999999;\n$black-color: #000000;\n$semiblack-color: #222222;\n$text-match-color: #fdd304;\n$text-current-match-color: #1687ff;\n$text-selection-color: #5b80a7;\n$main-color-darken: darken($main-color, 10%);\n$root-background: #000000a1;\n$focus-color: #00cbff;\n\n@mixin plugin-scrollbar {\n &::-webkit-scrollbar {\n width: 4px;\n }\n &::-webkit-scrollbar-track {\n background: rgba(33, 33, 33, 0.9);\n }\n &::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: rgba(255, 255, 255, 0.3);\n }\n}\n"],sourceRoot:""}]),a.locals={caption:"caption__caption___v5MZY","caption-time":"caption__caption-time___N5cw5",captionTime:"caption__caption-time___N5cw5","caption-content":"caption__caption-content___F1WTh",captionContent:"caption__caption-content___F1WTh","caption-span":"caption__caption-span___cTewu",captionSpan:"caption__caption-span___cTewu",highlighted:"caption__highlighted___ikaKW","without-time":"caption__without-time___v7BWT",withoutTime:"caption__without-time___v7BWT","highlight-search":"caption__highlight-search___Rc4qg",highlightSearch:"caption__highlight-search___Rc4qg","active-search":"caption__active-search___yoZOD",activeSearch:"caption__active-search___yoZOD"};const c=a},2492:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".close-button__close-btn___vnv2i{position:absolute;top:13px;right:14px;width:24px;height:24px;padding:0;background-color:transparent;border:none;cursor:pointer}\n","",{version:3,sources:["webpack://./components/close-button/close-button.scss"],names:[],mappings:"AAAA,iCACE,iBAAkB,CAClB,QAAS,CACT,UAAW,CACX,UAAW,CACX,WAAY,CACZ,SAAU,CACV,4BAA6B,CAC7B,WAAY,CACZ,cAAe",sourcesContent:[".close-btn {\n position: absolute;\n top: 13px;\n right: 14px;\n width: 24px;\n height: 24px;\n padding: 0;\n background-color: transparent;\n border: none;\n cursor: pointer;\n}\n"],sourceRoot:""}]),a.locals={"close-btn":"close-button__close-btn___vnv2i",closeBtn:"close-button__close-btn___vnv2i"};const c=a},2666:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>C});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i),c=t(1678),s=t.n(c),p=new URL(t(4987),t.b),l=new URL(t(485),t.b),_=new URL(t(2215),t.b),u=new URL(t(8057),t.b),d=a()(r()),h=s()(p),A=s()(l),f=s()(_),g=s()(u);d.push([e.id,".download-print-menu__download-print-button___lopD9{display:inline-block;width:36px;height:36px;color:#fff;border:none;cursor:pointer;padding:0;background:none;border-radius:4px;outline-offset:0 -1px}.download-print-menu__download-print-button___lopD9:hover,.download-print-menu__download-print-button___lopD9:active{border-radius:4px;background-color:rgba(0,0,0,0.8)}.download-print-menu__download-print-button___lopD9:focus{outline:1px solid #00cbff}.download-print-menu__download-print-button___lopD9 .download-print-menu__icon___fBxyb{width:100%;height:100%;background-position:center;background-size:cover}.download-print-menu__download-print-button___lopD9 .download-print-menu__download-icon___JnQEu{background-image:url("+h+")}.download-print-menu__download-print-button___lopD9 .download-print-menu__download-icon___JnQEu:active{background-image:url("+A+")}.download-print-menu__download-print-button___lopD9 .download-print-menu__print-icon___t8VI9{background-image:url("+f+")}.download-print-menu__download-print-button___lopD9 .download-print-menu__print-icon___t8VI9:active{background-image:url("+g+")}.download-print-menu__popover-menu-item___MkzGI{display:flex;align-items:center;padding:9px 24px 9px 16px;white-space:nowrap;min-height:30px;line-height:18px;font-size:15px}.download-print-menu__popover-menu-item___MkzGI:hover{cursor:pointer;background-color:#666}.download-print-menu__popover-menu-item___MkzGI:focus{outline:1px solid #00cbff}\n","",{version:3,sources:["webpack://./components/download-print-menu/download-print-menu.scss","webpack://./variables.scss"],names:[],mappings:"AAEA,oDACE,oBAAqB,CACrB,UAAW,CACX,WAAY,CACZ,UCLmB,CDMnB,WAAY,CACZ,cAAe,CACf,SAAU,CACV,eAAgB,CAChB,iBAAkB,CAClB,qBAAsB,CAVxB,qHAaI,iBAAkB,CAClB,gCAAoC,CAdxC,0DAiBI,yBCLiB,CDZrB,uFAoBI,UAAW,CACX,WAAY,CACZ,0BAA2B,CAC3B,qBAAsB,CAvB1B,gGA0BI,wDAAkD,CA1BtD,uGA4BM,wDAAuD,CA5B7D,6FAgCI,wDAA+C,CAhCnD,oGAkCM,wDAAoD,CACrD,gDAIH,YAAa,CACb,kBAAmB,CACnB,yBAA0B,CAC1B,kBAAmB,CACnB,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CAPjB,sDASI,cAAe,CACf,qBC7CoB,CDmCxB,sDAaI,yBCvCiB",sourcesContent:["@import '../../variables.scss';\n\n.download-print-button {\n display: inline-block;\n width: 36px;\n height: 36px;\n color: $white-color;\n border: none;\n cursor: pointer;\n padding: 0;\n background: none;\n border-radius: 4px;\n outline-offset: 0 -1px;\n &:hover,\n &:active {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.8);\n }\n &:focus {\n outline: 1px solid $focus-color;\n }\n .icon {\n width: 100%;\n height: 100%;\n background-position: center;\n background-size: cover;\n }\n .download-icon {\n background-image: url('../../assets/download.svg');\n &:active {\n background-image: url('../../assets/download-over.svg');\n }\n }\n .print-icon {\n background-image: url('../../assets/print.svg');\n &:active {\n background-image: url('../../assets/print-over.svg');\n }\n }\n}\n.popover-menu-item {\n display: flex;\n align-items: center;\n padding: 9px 24px 9px 16px;\n white-space: nowrap;\n min-height: 30px;\n line-height: 18px;\n font-size: 15px;\n &:hover {\n cursor: pointer;\n background-color: $semigray-color;\n }\n &:focus {\n outline: 1px solid $focus-color;\n }\n}\n","$main-color: #01accd;\n$white-color: #ffffff;\n$gray-color: #cccccc;\n$darken-gray: #444444;\n$darkgray-color: #333333;\n$semigray-color: #666666;\n$lightgray-color: #999999;\n$black-color: #000000;\n$semiblack-color: #222222;\n$text-match-color: #fdd304;\n$text-current-match-color: #1687ff;\n$text-selection-color: #5b80a7;\n$main-color-darken: darken($main-color, 10%);\n$root-background: #000000a1;\n$focus-color: #00cbff;\n\n@mixin plugin-scrollbar {\n &::-webkit-scrollbar {\n width: 4px;\n }\n &::-webkit-scrollbar-track {\n background: rgba(33, 33, 33, 0.9);\n }\n &::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: rgba(255, 255, 255, 0.3);\n }\n}\n"],sourceRoot:""}]),d.locals={"download-print-button":"download-print-menu__download-print-button___lopD9",downloadPrintButton:"download-print-menu__download-print-button___lopD9",icon:"download-print-menu__icon___fBxyb","download-icon":"download-print-menu__download-icon___JnQEu",downloadIcon:"download-print-menu__download-icon___JnQEu","print-icon":"download-print-menu__print-icon___t8VI9",printIcon:"download-print-menu__print-icon___t8VI9","popover-menu-item":"download-print-menu__popover-menu-item___MkzGI",popoverMenuItem:"download-print-menu__popover-menu-item___MkzGI"};const C=d},6958:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".plugin-button__navigationPluginButton___aYKGm,.plugin-button__navigationPluginIcon___cMc2h{min-height:36px;min-width:36px}.plugin-button__pluginButton___hbzoA{display:flex;width:36px;height:36px;padding:0;background:transparent;border:none;border-radius:4px;cursor:pointer}.plugin-button__pluginButton___hbzoA.plugin-button__active___pVKh2{background-color:#444}.playkit-player .playkit-top-bar .playkit-right-controls{display:flex}\n","",{version:3,sources:["webpack://./components/plugin-button/plugin-button.scss","webpack://./variables.scss"],names:[],mappings:"AAEA,4FAEE,eAAgB,CAChB,cAAe,CAChB,qCAGC,YAAa,CACb,UAAW,CACX,WAAY,CACZ,SAAU,CACV,sBAAuB,CACvB,WAAY,CACZ,iBAAkB,CAClB,cAAe,CARjB,mEAUI,qBCfiB,CDgBlB,yDAKD,YAAa",sourcesContent:["@import '../../variables.scss';\n\n.navigationPluginButton,\n.navigationPluginIcon {\n min-height: 36px;\n min-width: 36px;\n}\n\n.pluginButton {\n display: flex;\n width: 36px;\n height: 36px;\n padding: 0;\n background: transparent;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n &.active {\n background-color: $darken-gray;\n }\n}\n\n// TODO: remove once core team fix alignment of plugin icons\n:global(.playkit-player .playkit-top-bar .playkit-right-controls) {\n display: flex;\n}\n","$main-color: #01accd;\n$white-color: #ffffff;\n$gray-color: #cccccc;\n$darken-gray: #444444;\n$darkgray-color: #333333;\n$semigray-color: #666666;\n$lightgray-color: #999999;\n$black-color: #000000;\n$semiblack-color: #222222;\n$text-match-color: #fdd304;\n$text-current-match-color: #1687ff;\n$text-selection-color: #5b80a7;\n$main-color-darken: darken($main-color, 10%);\n$root-background: #000000a1;\n$focus-color: #00cbff;\n\n@mixin plugin-scrollbar {\n &::-webkit-scrollbar {\n width: 4px;\n }\n &::-webkit-scrollbar-track {\n background: rgba(33, 33, 33, 0.9);\n }\n &::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: rgba(255, 255, 255, 0.3);\n }\n}\n"],sourceRoot:""}]),a.locals={navigationPluginButton:"plugin-button__navigationPluginButton___aYKGm",navigationPluginIcon:"plugin-button__navigationPluginIcon___cMc2h",pluginButton:"plugin-button__pluginButton___hbzoA",active:"plugin-button__active___pVKh2"};const c=a},3558:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".popover-menu__popover-menu___GirVB{padding-top:6px;padding-bottom:6px}\n","",{version:3,sources:["webpack://./components/popover-menu/popover-menu.scss"],names:[],mappings:"AAEA,oCACE,eAAgB,CAChB,kBAAmB",sourcesContent:["@import '../../variables.scss';\n\n.popover-menu {\n padding-top: 6px;\n padding-bottom: 6px;\n}\n"],sourceRoot:""}]),a.locals={"popover-menu":"popover-menu__popover-menu___GirVB",popoverMenu:"popover-menu__popover-menu___GirVB"};const c=a},6855:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>C});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i),c=t(1678),s=t.n(c),p=new URL(t(832),t.b),l=new URL(t(6824),t.b),_=new URL(t(7469),t.b),u=new URL(t(1987),t.b),d=a()(r()),h=s()(p),A=s()(l),f=s()(_),g=s()(u);d.push([e.id,".search__search-wrapper___b302M{display:flex;align-items:center;flex-grow:1;width:100%;max-width:599px;height:32px;background-color:rgba(255,255,255,0.24);border:solid 1px rgba(255,255,255,0.4);border-radius:4px}.search__search-wrapper___b302M ::-moz-placeholder{opacity:1}.search__search-wrapper___b302M .search__search-icon___pdHf8{flex:0 0 32px;background-color:transparent;background-position:center;background-image:url("+h+");width:32px;height:32px;margin:0 2px}.search__search-wrapper___b302M .search__search-results___XnM2h{display:flex;justify-content:flex-end;align-items:center;flex-shrink:0;margin:0 8px;font-size:12px;text-overflow:ellipsis}.search__search-wrapper___b302M .search__prev-next-wrapper___aRLOB{display:flex;flex-direction:column;justify-content:space-around;height:100%;margin-right:8px}.search__search-wrapper___b302M .search__prev-next-wrapper___aRLOB .search__prev-next-button___eNGEo{width:14px;height:6px;background-color:transparent;background-position:center;background-size:cover;border:none;cursor:pointer}.search__search-wrapper___b302M .search__prev-next-wrapper___aRLOB .search__prev-next-button___eNGEo.search__prev-button___aL_2P{background-image:url("+A+")}.search__search-wrapper___b302M .search__prev-next-wrapper___aRLOB .search__prev-next-button___eNGEo.search__next-button___WmiHA{background-image:url("+f+")}.search__search-wrapper___b302M .search__prev-next-wrapper___aRLOB .search__prev-next-button___eNGEo.search__disabled___EegfA{opacity:0.4;cursor:default}.search__search-wrapper___b302M .search__search-input___vUcqo{width:100%;flex-grow:1;flex-shrink:1;font-size:15px;padding:0 6px 1px 0;color:#ccc;background:transparent;border:none;overflow:hidden;text-overflow:ellipsis}.search__search-wrapper___b302M .search__search-input___vUcqo:focus{outline:none !important}.search__search-wrapper___b302M .search__search-input___vUcqo::placeholder{color:#ccc}.search__search-wrapper___b302M .search__search-input___vUcqo::selection{background-color:#5b80a7}.search__search-wrapper___b302M .search__clear-icon___zbwig{flex:0 0 32px;max-width:32px;max-height:32px;background-color:transparent;background-position:center;background-image:url("+g+");width:32px;height:32px;border:none;cursor:pointer}.search__search-wrapper___b302M.search__active___Dcstu{color:#ccc;background:#000}.search__search-wrapper___b302M.search__focused___taZHo{box-shadow:0 0 0 1px #00cbff;border-radius:4px}\n","",{version:3,sources:["webpack://./components/search/search.scss","webpack://./variables.scss"],names:[],mappings:"AAEA,gCAKE,YAAa,CACb,kBAAmB,CACnB,WAAY,CACZ,UAAW,CACX,eAAgB,CAChB,WAAY,CACZ,uCAA2C,CAC3C,sCAA0C,CAC1C,iBAAkB,CAbpB,mDAEI,SAAU,CAFd,6DAeI,aAAc,CACd,4BAA6B,CAC7B,0BAA2B,CAC3B,wDAAgD,CAChD,UAAW,CACX,WAAY,CACZ,YAAa,CArBjB,gEAwBI,YAAa,CACb,wBAAyB,CACzB,kBAAmB,CACnB,aAAc,CACd,YAAa,CACb,cAAe,CACf,sBAAuB,CA9B3B,mEAiCI,YAAa,CACb,qBAAsB,CACtB,4BAA6B,CAC7B,WAAY,CACZ,gBAAiB,CArCrB,qGAuCM,UAAW,CACX,UAAW,CACX,4BAA6B,CAC7B,0BAA2B,CAC3B,qBAAsB,CACtB,WAAY,CACZ,cAAe,CA7CrB,iIA+CQ,wDAA4C,CA/CpD,iIAkDQ,wDAA8C,CAlDtD,8HAqDQ,WAAY,CACZ,cAAe,CAtDvB,8DA2DI,UAAW,CACX,WAAY,CACZ,aAAc,CACd,cAAe,CACf,mBAAoB,CACpB,UChEgB,CDiEhB,sBAAuB,CACvB,WAAY,CACZ,eAAgB,CAChB,sBAAuB,CApE3B,oEAsEM,uBAAwB,CAtE9B,2EAyEM,UCzEc,CDApB,yEA4EM,wBCnEwB,CDT9B,4DAgFI,aAAc,CACd,cAAe,CACf,eAAgB,CAChB,4BAA6B,CAC7B,0BAA2B,CAC3B,wDAA+C,CAC/C,UAAW,CACX,WAAY,CACZ,WAAY,CACZ,cAAe,CAzFnB,uDA4FI,UC5FgB,CD6FhB,eCxFiB,CDLrB,wDAgGI,4BCpFiB,CDqFjB,iBAAkB",sourcesContent:["@import '../../variables.scss';\n\n.search-wrapper {\n ::-moz-placeholder {\n opacity: 1;\n }\n\n display: flex;\n align-items: center;\n flex-grow: 1;\n width: 100%;\n max-width: 599px;\n height: 32px;\n background-color: rgba(255, 255, 255, 0.24);\n border: solid 1px rgba(255, 255, 255, 0.4);\n border-radius: 4px;\n .search-icon {\n flex: 0 0 32px;\n background-color: transparent;\n background-position: center;\n background-image: url('../../assets/search.svg');\n width: 32px;\n height: 32px;\n margin: 0 2px;\n }\n .search-results {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n flex-shrink: 0;\n margin: 0 8px;\n font-size: 12px;\n text-overflow: ellipsis;\n }\n .prev-next-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n height: 100%;\n margin-right: 8px;\n .prev-next-button {\n width: 14px;\n height: 6px;\n background-color: transparent;\n background-position: center;\n background-size: cover;\n border: none;\n cursor: pointer;\n &.prev-button {\n background-image: url('../../assets/up.svg');\n }\n &.next-button {\n background-image: url('../../assets/down.svg');\n }\n &.disabled {\n opacity: 0.4;\n cursor: default;\n }\n }\n }\n .search-input {\n width: 100%;\n flex-grow: 1;\n flex-shrink: 1;\n font-size: 15px;\n padding: 0 6px 1px 0;\n color: $gray-color;\n background: transparent;\n border: none;\n overflow: hidden;\n text-overflow: ellipsis;\n &:focus {\n outline: none !important; // prevent focus styles inherited from playkit-player.playkit-nav\n }\n &::placeholder {\n color: $gray-color;\n }\n &::selection {\n background-color: $text-selection-color;\n }\n }\n .clear-icon {\n flex: 0 0 32px;\n max-width: 32px;\n max-height: 32px;\n background-color: transparent;\n background-position: center;\n background-image: url('../../assets/clear.svg');\n width: 32px;\n height: 32px;\n border: none;\n cursor: pointer;\n }\n &.active {\n color: $gray-color;\n background: $black-color;\n }\n &.focused {\n box-shadow: 0 0 0 1px $focus-color;\n border-radius: 4px;\n }\n}\n","$main-color: #01accd;\n$white-color: #ffffff;\n$gray-color: #cccccc;\n$darken-gray: #444444;\n$darkgray-color: #333333;\n$semigray-color: #666666;\n$lightgray-color: #999999;\n$black-color: #000000;\n$semiblack-color: #222222;\n$text-match-color: #fdd304;\n$text-current-match-color: #1687ff;\n$text-selection-color: #5b80a7;\n$main-color-darken: darken($main-color, 10%);\n$root-background: #000000a1;\n$focus-color: #00cbff;\n\n@mixin plugin-scrollbar {\n &::-webkit-scrollbar {\n width: 4px;\n }\n &::-webkit-scrollbar-track {\n background: rgba(33, 33, 33, 0.9);\n }\n &::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: rgba(255, 255, 255, 0.3);\n }\n}\n"],sourceRoot:""}]),d.locals={"search-wrapper":"search__search-wrapper___b302M",searchWrapper:"search__search-wrapper___b302M","search-icon":"search__search-icon___pdHf8",searchIcon:"search__search-icon___pdHf8","search-results":"search__search-results___XnM2h",searchResults:"search__search-results___XnM2h","prev-next-wrapper":"search__prev-next-wrapper___aRLOB",prevNextWrapper:"search__prev-next-wrapper___aRLOB","prev-next-button":"search__prev-next-button___eNGEo",prevNextButton:"search__prev-next-button___eNGEo","prev-button":"search__prev-button___aL_2P",prevButton:"search__prev-button___aL_2P","next-button":"search__next-button___WmiHA",nextButton:"search__next-button___WmiHA",disabled:"search__disabled___EegfA","search-input":"search__search-input___vUcqo",searchInput:"search__search-input___vUcqo","clear-icon":"search__clear-icon___zbwig",clearIcon:"search__clear-icon___zbwig",active:"search__active___Dcstu",focused:"search__focused___taZHo"};const C=d},7586:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i),c=t(1678),s=t.n(c),p=new URL(t(2365),t.b),l=a()(r()),_=s()(p);l.push([e.id,".spinner__spinner-ball___bGl4C{position:relative;display:flex;align-items:center;width:100%;height:100%;max-width:184px;max-height:184px;margin:4px 0 8px 0;background-size:contain;background-repeat:no-repeat;background-position:center;background-image:url("+_+");animation:spinner__icon-bounce___zetv0 2s infinite ease-in-out}.spinner__bounce-frame___ci1vS{width:100%;height:100%;min-width:184px;min-height:184px;border-radius:50%;background-color:#cccccc;opacity:0.2;-webkit-animation:spinner__frame-bounce___nmvI_ 2s infinite ease-in-out;animation:spinner__frame-bounce___nmvI_ 2s infinite ease-in-out}@keyframes spinner__icon-bounce___zetv0{0%,100%{opacity:0.3}50%{opacity:1}}@-webkit-keyframes spinner__frame-bounce___nmvI_{0%,100%{-webkit-transform:scale(1);opacity:0.1}50%{-webkit-transform:scale(1.3);opacity:0.1}}@keyframes spinner__frame-bounce___nmvI_{0%,100%{opacity:0.1;transform:scale(1);-webkit-transform:scale(1)}50%{opacity:0.25;transform:scale(1.3);-webkit-transform:scale(1.3)}}\n","",{version:3,sources:["webpack://./components/spinner/spinner.scss"],names:[],mappings:"AAAA,+BACE,iBAAkB,CAClB,YAAa,CACb,kBAAmB,CACnB,UAAW,CACX,WAAY,CACZ,eAAgB,CAChB,gBAAiB,CACjB,kBAAmB,CACnB,uBAAwB,CACxB,2BAA4B,CAC5B,0BAA2B,CAC3B,wDAAgD,CAEhD,8DAA8C,CAC/C,+BAGC,UAAW,CACX,WAAY,CACZ,eAAgB,CAChB,gBAAiB,CACjB,iBAAkB,CAClB,wBAAyB,CACzB,WAAY,CAEZ,uEAAuD,CACvD,+DAA+C,CAChD,wCAGC,QAEE,WAAY,CAEd,IACE,SAAU,CAAA,CAId,iDACE,QAEE,0BAA2B,CAC3B,WAAY,CAEd,IACE,4BAA6B,CAC7B,WAAY,CAAA,CAIhB,yCACE,QAEE,WAAY,CACZ,kBAAmB,CACnB,0BAA2B,CAE7B,IACE,YAAa,CACb,oBAAqB,CACrB,4BAA6B,CAAA",sourcesContent:[".spinner-ball {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n height: 100%;\n max-width: 184px;\n max-height: 184px;\n margin: 4px 0 8px 0;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n background-image: url('../../assets/loader.svg');\n\n animation: icon-bounce 2s infinite ease-in-out;\n}\n\n.bounce-frame {\n width: 100%;\n height: 100%;\n min-width: 184px;\n min-height: 184px;\n border-radius: 50%;\n background-color: #cccccc;\n opacity: 0.2;\n\n -webkit-animation: frame-bounce 2s infinite ease-in-out;\n animation: frame-bounce 2s infinite ease-in-out;\n}\n\n@keyframes icon-bounce {\n 0%,\n 100% {\n opacity: 0.3;\n }\n 50% {\n opacity: 1;\n }\n}\n\n@-webkit-keyframes frame-bounce {\n 0%,\n 100% {\n -webkit-transform: scale(1);\n opacity: 0.1;\n }\n 50% {\n -webkit-transform: scale(1.3);\n opacity: 0.1;\n }\n}\n\n@keyframes frame-bounce {\n 0%,\n 100% {\n opacity: 0.1;\n transform: scale(1);\n -webkit-transform: scale(1);\n }\n 50% {\n opacity: 0.25;\n transform: scale(1.3);\n -webkit-transform: scale(1.3);\n }\n}\n"],sourceRoot:""}]),l.locals={"spinner-ball":"spinner__spinner-ball___bGl4C",spinnerBall:"spinner__spinner-ball___bGl4C","icon-bounce":"spinner__icon-bounce___zetv0",iconBounce:"spinner__icon-bounce___zetv0","bounce-frame":"spinner__bounce-frame___ci1vS",bounceFrame:"spinner__bounce-frame___ci1vS","frame-bounce":"spinner__frame-bounce___nmvI_",frameBounce:"spinner__frame-bounce___nmvI_"};const u=l},7017:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i),c=t(1678),s=t.n(c),p=new URL(t(3586),t.b),l=a()(r()),_=s()(p);l.push([e.id,".transcript__hidden___uGO_Y{visibility:hidden}.transcript__root___SEZlz{display:flex;justify-content:center;padding:8px 4px 8px 0px;color:#fff;height:100%;width:100%;position:absolute;background-color:rgba(0,0,0,0.631373);z-index:1}.transcript__root___SEZlz .transcript__skip-transcript-button___fQwQC{position:absolute;top:-1000px;z-index:1;display:flex;align-items:center;justify-content:center;width:120px;height:32px;border-radius:16px;box-shadow:0 2px 8px 0 rgba(0,0,0,0.3);border:solid 1px #01accd;background-color:#222;font-size:15px;line-height:1.27;color:#fff}.transcript__root___SEZlz .transcript__skip-transcript-button___fQwQC:focus{top:46px;right:12px;outline:none !important}.transcript__root___SEZlz *{font-family:sans-serif;font-style:normal}.transcript__global-container___Sn7v8{height:100%;display:flex;flex-direction:column;max-width:599px;width:100%}.transcript__header___AgZkl{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:6px;padding-left:16px;font-size:16px}.transcript__header___AgZkl.transcript__small-width___XW2fb{padding-right:44px}.transcript__header___AgZkl.transcript__medium-width___jz_hP{padding-right:22px}.transcript__body___jTlBG{position:relative;padding-top:1px;flex:1;overflow-y:auto;text-align:center;overflow-x:hidden}.transcript__body___jTlBG::-webkit-scrollbar{width:4px}.transcript__body___jTlBG::-webkit-scrollbar-track{background:rgba(33,33,33,0.9)}.transcript__body___jTlBG::-webkit-scrollbar-thumb{border-radius:3px;background-color:rgba(255,255,255,0.3)}.transcript__loading-wrapper___QFjK7,.transcript__error-wrapper___Qe39U{height:100%;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#999}.transcript__loading-wrapper___QFjK7 .transcript__error-icon___no0DO,.transcript__error-wrapper___Qe39U .transcript__error-icon___no0DO{width:100%;height:100%;max-width:184px;max-height:184px;background-size:contain;background-repeat:no-repeat;background-position:center}.transcript__loading-wrapper___QFjK7 .transcript__error-main-text___VIVvd,.transcript__error-wrapper___Qe39U .transcript__error-main-text___VIVvd{font-size:1.3em;margin-top:8px;margin-bottom:2px}.transcript__loading-wrapper___QFjK7 .transcript__error-description-text___gg6yo,.transcript__error-wrapper___Qe39U .transcript__error-description-text___gg6yo{margin:0}.transcript__loading-wrapper___QFjK7 .transcript__retry-button___wCycN,.transcript__error-wrapper___Qe39U .transcript__retry-button___wCycN{width:30px;padding:0;margin-left:20px;border:none;background:inherit;color:white;cursor:pointer}.transcript__autoscroll-button___QWJaj{opacity:0;position:absolute;right:12px;bottom:25px;width:32px;height:32px;padding:0;border:none;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0,0,0,0.5);background-color:#01819a;background-position:center;background-repeat:no-repeat;background-size:22px;background-image:url("+_+");cursor:pointer;z-index:1}.transcript__autoscroll-button-visible___BOE3n{opacity:1}\n","",{version:3,sources:["webpack://./components/transcript/transcript.scss","webpack://./variables.scss"],names:[],mappings:"AAEA,4BACE,iBAAkB,CACnB,0BAGC,YAAa,CACb,sBAAuB,CACvB,uBAAwB,CACxB,UCTmB,CDUnB,WAAY,CACZ,UAAW,CACX,iBAAkB,CAClB,qCCDyB,CDEzB,SAAU,CATZ,sEAWI,iBAAkB,CAClB,WAAY,CACZ,SAAU,CACV,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,WAAY,CACZ,WAAY,CACZ,kBAAmB,CACnB,sCAA0C,CAC1C,wBC3BgB,CD4BhB,qBCpBqB,CDqBrB,cAAe,CACf,gBAAiB,CACjB,UC9BiB,CDKrB,4EA2BM,QAAS,CACT,UAAW,CACX,uBAAwB,CA7B9B,4BAkCI,sBAAuB,CACvB,iBAAkB,CACnB,sCAID,WAAY,CACZ,YAAa,CACb,qBAAsB,CACtB,eAAgB,CAChB,UAAW,CACZ,4BAGC,YAAa,CACb,kBAAmB,CACnB,6BAA8B,CAC9B,UAAW,CACX,iBAAkB,CAClB,iBAAkB,CAClB,cAAe,CAPjB,4DASI,kBAAmB,CATvB,6DAYI,kBAAmB,CACpB,0BAID,iBAAkB,CAClB,eAAgB,CAChB,MAAO,CACP,eAAgB,CAChB,iBAAkB,CAClB,iBAAkB,CANpB,6CCnDI,SAAU,CDmDd,mDChDI,6BAAiC,CDgDrC,mDC7CI,iBAAkB,CAClB,sCAA0C,CDsD9C,wEAEE,WAAY,CACZ,UAAW,CACX,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,qBAAsB,CACtB,UCjFuB,CDyEzB,wIAUI,UAAW,CACX,WAAY,CACZ,eAAgB,CAChB,gBAAiB,CACjB,uBAAwB,CACxB,2BAA4B,CAC5B,0BAA2B,CAhB/B,kJAmBI,eAAgB,CAChB,cAAe,CACf,iBAAkB,CArBtB,gKAwBI,QAAS,CAxBb,4IA2BI,UAAW,CACX,SAAU,CACV,gBAAiB,CACjB,WAAY,CACZ,kBAAmB,CACnB,WAAY,CACZ,cAAe,CAChB,uCAID,SAAU,CACV,iBAAkB,CAClB,UAAW,CACX,WAAY,CACZ,UAAW,CACX,WAAY,CACZ,SAAU,CACV,WAAY,CACZ,iBAAkB,CAClB,sCAA0C,CAC1C,wBAAyB,CACzB,0BAA2B,CAC3B,2BAA4B,CAC5B,oBAAqB,CACrB,wDAAkD,CAClD,cAAe,CACf,SAAU,CACX,+CAGC,SAAU",sourcesContent:["@import '../../variables.scss';\n\n.hidden {\n visibility: hidden;\n}\n\n.root {\n display: flex;\n justify-content: center;\n padding: 8px 4px 8px 0px;\n color: $white-color;\n height: 100%;\n width: 100%;\n position: absolute;\n background-color: $root-background;\n z-index: 1;\n .skip-transcript-button {\n position: absolute;\n top: -1000px;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 120px;\n height: 32px;\n border-radius: 16px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);\n border: solid 1px $main-color;\n background-color: $semiblack-color;\n font-size: 15px;\n line-height: 1.27;\n color: $white-color;\n &:focus {\n top: 46px;\n right: 12px;\n outline: none !important; // prevent focus styles inherited from playkit-player.playkit-nav\n }\n }\n\n * {\n font-family: sans-serif;\n font-style: normal;\n }\n}\n\n.global-container {\n height: 100%;\n display: flex;\n flex-direction: column;\n max-width: 599px;\n width: 100%;\n}\n\n.header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n margin-bottom: 6px;\n padding-left: 16px;\n font-size: 16px;\n &.small-width {\n padding-right: 44px;\n }\n &.medium-width {\n padding-right: 22px;\n }\n}\n\n.body {\n position: relative;\n padding-top: 1px;\n flex: 1;\n overflow-y: auto;\n text-align: center;\n overflow-x: hidden;\n @include plugin-scrollbar();\n}\n\n.loading-wrapper,\n.error-wrapper {\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n color: $lightgray-color;\n .error-icon {\n width: 100%;\n height: 100%;\n max-width: 184px;\n max-height: 184px;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n }\n .error-main-text {\n font-size: 1.3em;\n margin-top: 8px;\n margin-bottom: 2px;\n }\n .error-description-text {\n margin: 0;\n }\n .retry-button {\n width: 30px;\n padding: 0;\n margin-left: 20px;\n border: none;\n background: inherit;\n color: white;\n cursor: pointer;\n }\n}\n\n.autoscroll-button {\n opacity: 0;\n position: absolute;\n right: 12px;\n bottom: 25px;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 50%;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);\n background-color: #01819a;\n background-position: center;\n background-repeat: no-repeat;\n background-size: 22px;\n background-image: url('../../assets/arrow-up.svg');\n cursor: pointer;\n z-index: 1;\n}\n\n.autoscroll-button-visible {\n opacity: 1;\n}\n","$main-color: #01accd;\n$white-color: #ffffff;\n$gray-color: #cccccc;\n$darken-gray: #444444;\n$darkgray-color: #333333;\n$semigray-color: #666666;\n$lightgray-color: #999999;\n$black-color: #000000;\n$semiblack-color: #222222;\n$text-match-color: #fdd304;\n$text-current-match-color: #1687ff;\n$text-selection-color: #5b80a7;\n$main-color-darken: darken($main-color, 10%);\n$root-background: #000000a1;\n$focus-color: #00cbff;\n\n@mixin plugin-scrollbar {\n &::-webkit-scrollbar {\n width: 4px;\n }\n &::-webkit-scrollbar-track {\n background: rgba(33, 33, 33, 0.9);\n }\n &::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: rgba(255, 255, 255, 0.3);\n }\n}\n"],sourceRoot:""}]),l.locals={hidden:"transcript__hidden___uGO_Y",root:"transcript__root___SEZlz","skip-transcript-button":"transcript__skip-transcript-button___fQwQC",skipTranscriptButton:"transcript__skip-transcript-button___fQwQC","global-container":"transcript__global-container___Sn7v8",globalContainer:"transcript__global-container___Sn7v8",header:"transcript__header___AgZkl","small-width":"transcript__small-width___XW2fb",smallWidth:"transcript__small-width___XW2fb","medium-width":"transcript__medium-width___jz_hP",mediumWidth:"transcript__medium-width___jz_hP",body:"transcript__body___jTlBG","loading-wrapper":"transcript__loading-wrapper___QFjK7",loadingWrapper:"transcript__loading-wrapper___QFjK7","error-wrapper":"transcript__error-wrapper___Qe39U",errorWrapper:"transcript__error-wrapper___Qe39U","error-icon":"transcript__error-icon___no0DO",errorIcon:"transcript__error-icon___no0DO","error-main-text":"transcript__error-main-text___VIVvd",errorMainText:"transcript__error-main-text___VIVvd","error-description-text":"transcript__error-description-text___gg6yo",errorDescriptionText:"transcript__error-description-text___gg6yo","retry-button":"transcript__retry-button___wCycN",retryButton:"transcript__retry-button___wCycN","autoscroll-button":"transcript__autoscroll-button___QWJaj",autoscrollButton:"transcript__autoscroll-button___QWJaj","autoscroll-button-visible":"transcript__autoscroll-button-visible___BOE3n",autoscrollButtonVisible:"transcript__autoscroll-button-visible___BOE3n"};const u=l},22:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var o=t(559),r=t.n(o),i=t(3476),a=t.n(i)()(r());a.push([e.id,".popover__popover-container___LdItq{position:relative}.popover__popover-container___LdItq .popover__popover-component___oMrLL{background-color:#222222;border-radius:4px;position:absolute;right:0px;font-size:15px;display:block}.popover__popover-container___LdItq .popover__popover-component___oMrLL.popover__visible___YLUUQ{visibility:visible;opacity:1;z-index:10}.popover__popover-container___LdItq .popover__popover-component___oMrLL.popover__top___z8MON{bottom:100%;margin-bottom:6px}.popover__popover-container___LdItq .popover__popover-component___oMrLL.popover__bottom___I_Me9{top:100%;margin-top:6px}.popover__popover-container___LdItq .popover__popover-component___oMrLL.popover__right___QEfhd{left:0px}.popover__popover-container___LdItq .popover__popover-component___oMrLL.popover__left___H2xaY{right:0px}\n","",{version:3,sources:["webpack://./utils/popover/popover.scss"],names:[],mappings:"AAAA,oCACE,iBAAkB,CADpB,wEAGI,wBAAyB,CACzB,iBAAkB,CAClB,iBAAkB,CAClB,SAAU,CACV,cAAe,CACf,aAAc,CARlB,iGAUM,kBAAmB,CACnB,SAAU,CACV,UAAW,CAZjB,6FAeM,WAAY,CACZ,iBAAkB,CAhBxB,gGAmBM,QAAS,CACT,cAAe,CApBrB,+FAuBM,QAAS,CAvBf,8FA0BM,SAAU",sourcesContent:[".popover-container {\n position: relative;\n .popover-component {\n background-color: #222222;\n border-radius: 4px;\n position: absolute;\n right: 0px;\n font-size: 15px;\n display: block;\n &.visible {\n visibility: visible;\n opacity: 1;\n z-index: 10;\n }\n &.top {\n bottom: 100%;\n margin-bottom: 6px;\n }\n &.bottom {\n top: 100%;\n margin-top: 6px;\n }\n &.right {\n left: 0px;\n }\n &.left {\n right: 0px;\n }\n }\n}\n"],sourceRoot:""}]),a.locals={"popover-container":"popover__popover-container___LdItq",popoverContainer:"popover__popover-container___LdItq","popover-component":"popover__popover-component___oMrLL",popoverComponent:"popover__popover-component___oMrLL",visible:"popover__visible___YLUUQ",top:"popover__top___z8MON",bottom:"popover__bottom___I_Me9",right:"popover__right___QEfhd",left:"popover__left___H2xaY"};const c=a},3476:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",o=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),o&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),o&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var p=0;p<e.length;p++){var l=[].concat(e[p]);o&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),t&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=t):l[2]=t),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),n.push(l))}},n}},1678:e=>{"use strict";e.exports=function(e,n){return n||(n={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),n.hash&&(e+=n.hash),/["'() \t\n]|(%20)/.test(e)||n.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},559:e=>{"use strict";e.exports=function(e){var n=e[1],t=e[3];if(!t)return n;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(r," */"),a=t.sources.map((function(e){return"/*# sourceURL=".concat(t.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}},1044:(e,n,t)=>{var o=t(1892),r=t(828);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},3930:(e,n,t)=>{var o=t(1892),r=t(9116);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},5338:(e,n,t)=>{var o=t(1892),r=t(2492);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},2769:(e,n,t)=>{var o=t(1892),r=t(2666);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},3364:(e,n,t)=>{var o=t(1892),r=t(6958);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},5318:(e,n,t)=>{var o=t(1892),r=t(3558);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},214:(e,n,t)=>{var o=t(1892),r=t(6855);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},7863:(e,n,t)=>{var o=t(1892),r=t(7586);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},6513:(e,n,t)=>{var o=t(1892),r=t(7017);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},4531:(e,n,t)=>{var o=t(1892),r=t(22);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);o(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},1892:(e,n,t)=>{"use strict";var o,r=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function a(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function c(e,n){for(var t={},o=[],r=0;r<e.length;r++){var c=e[r],s=n.base?c[0]+n.base:c[0],p=t[s]||0,l="".concat(s," ").concat(p);t[s]=p+1;var _=a(l),u={css:c[1],media:c[2],sourceMap:c[3]};-1!==_?(i[_].references++,i[_].updater(u)):i.push({identifier:l,updater:A(u,n),references:1}),o.push(l)}return o}function s(e){var n=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var i=t.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(e){n.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(n);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}return n}var p,l=(p=[],function(e,n){return p[e]=n,p.filter(Boolean).join("\n")});function _(e,n,t,o){var r=t?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=l(n,r);else{var i=document.createTextNode(r),a=e.childNodes;a[n]&&e.removeChild(a[n]),a.length?e.insertBefore(i,a[n]):e.appendChild(i)}}function u(e,n,t){var o=t.css,r=t.media,i=t.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var d=null,h=0;function A(e,n){var t,o,r;if(n.singleton){var i=h++;t=d||(d=s(n)),o=_.bind(null,t,i,!1),r=_.bind(null,t,i,!0)}else t=s(n),o=u.bind(null,t,n),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return o(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;o(e=n)}else r()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=(void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o));var t=c(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<t.length;o++){var r=a(t[o]);i[r].references--}for(var s=c(e,n),p=0;p<t.length;p++){var l=a(t[p]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}t=s}}}},9749:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.A11yWrapper=void 0;var o=t(4522),r=KalturaPlayer.ui.utils.KeyMap,i=r.ENTER,a=r.SPACE;n.A11yWrapper=function(e){var n=e.children,t=e.onClick;return(0,o.cloneElement)(n,{onKeyDown:function(e){[a,i].includes(e.keyCode)&&(e.preventDefault(),t(e,!0))},onClick:function(e){e.stopPropagation(),t(e)}})}},6571:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(9749),n)},9291:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.CaptionList=void 0;var a=t(4522),c=t(4539),s=t(6734),p=t(1044),l=KalturaPlayer.ui.utils.KeyMap,_=l.End,u=l.Home,d=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._currentCaptionRef=null,n._firstCaptionRef=null,n._lastCaptionRef=null,n._handleClick=function(e){return function(){(0,n.props.onSeek)(e)}},n._getShouldScroll=function(e){var t=n.props,o=t.isAutoScrollEnabled,r=t.highlightedMap;return o&&r[e]},n._getShouldScrollToSearchMatch=function(e){var t=n.props,o=t.isAutoScrollEnabled,r=t.searchMap,i=t.activeSearchIndex;return!o&&r[e]&&void 0!==r[e][i]},n._getSearchProps=function(e){var t=n.props,o=t.searchMap,r=t.activeSearchIndex,i=t.captionProps,a={};return o[e]&&(a.indexMap=o[e],a.activeSearchIndex=r,a.searchLength=i.searchLength),a},n._getCaptionProps=function(e){var t=n.props,o=t.highlightedMap,r=t.captionProps,a=t.isAutoScrollEnabled,s=e.id;return i({showTime:r.showTime,scrollTo:r.scrollTo,scrollToSearchMatch:r.scrollToSearchMatch,key:s,onClick:n._handleClick(e),caption:e,highlighted:o,longerThanHour:r.videoDuration>=c.HOUR,shouldScroll:n._getShouldScroll(s),shouldScrollToSearchMatch:n._getShouldScrollToSearchMatch(s),isAutoScrollEnabled:a},n._getSearchProps(s))},n._handleKeyUp=function(e){var t,o,r,i;e.keyCode===_?null===(o=null===(t=n._lastCaptionRef)||void 0===t?void 0:t._hotspotRef)||void 0===o||o.focus():e.keyCode===u&&(null===(i=null===(r=n._firstCaptionRef)||void 0===r?void 0:r._hotspotRef)||void 0===i||i.focus())},n}return r(n,e),n.prototype.shouldComponentUpdate=function(e){var n=this.props,t=n.highlightedMap,o=n.data,r=n.searchMap,i=n.activeSearchIndex,a=n.isAutoScrollEnabled,c=n.captionProps;return t!==e.highlightedMap||o!==e.data||r!==e.searchMap||i!==e.activeSearchIndex||a!==e.isAutoScrollEnabled||c.videoDuration!==e.captionProps.videoDuration},n.prototype.render=function(){var e=this,n=this.props.data;return(0,a.h)("div",{className:p.transcriptWrapper,onKeyUp:this._handleKeyUp},n.map((function(t,o){var r=e._getCaptionProps(t);return(0,a.h)(s.Caption,i({ref:function(t){0===o?e._firstCaptionRef=t:o===n.length-1&&(e._lastCaptionRef=t),r.highlighted&&(e._currentCaptionRef=t)}},r))})))},n}(a.Component);n.CaptionList=d},5271:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(9291),n)},5348:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.Caption=void 0;var i=t(3930),a=t(4539),c=KalturaPlayer.ui.utils.KeyMap,s=c.ENTER,p=c.Space,l=t(4522),_=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._hotspotRef=null,n._handleKeyPress=function(e){var t=e.which||e.keyCode;if(t===s||t===p)return e.preventDefault(),void n._gotoCurrentTime()},n._handleClick=function(e){var t;e.stopPropagation(),null===(t=n._hotspotRef)||void 0===t||t.focus(),n._gotoCurrentTime()},n._gotoCurrentTime=function(){var e=n.props,t=e.caption,o=e.onClick;t.text.length&&o()},n._renderText=function(e){var t=n.props,o=t.activeSearchIndex,r=t.searchLength,a=t.indexMap,c=[];return a&&(c=Object.keys(a).sort((function(e,n){return Number(e)-Number(n)}))),0===(null==e?void 0:e.length)?null:(0,l.h)("span",{className:i.captionSpan},a?c.map((function(n,t){var s=0===t?e.substring(0,a[n]):"",p=e.substring(a[n],a[n]+r),_=e.substring(a[n]+r,t-1===c.length?e.length:a[c[t+1]]);return(0,l.h)("span",null,s,(0,l.h)("span",{className:Number(n)===o?i.activeSearch:i.highlightSearch},p),_)})):e)},n}return r(n,e),n.prototype.componentDidUpdate=function(){this._hotspotRef&&this.props.shouldScroll?this.props.scrollTo(this._hotspotRef):this._hotspotRef&&this.props.shouldScrollToSearchMatch&&this.props.scrollToSearchMatch(this._hotspotRef)},n.prototype.shouldComponentUpdate=function(e){var n=this.props,t=n.indexMap,o=n.highlighted,r=n.isAutoScrollEnabled,i=n.activeSearchIndex,a=n.longerThanHour;return n.caption,a!==e.longerThanHour||o!==e.highlighted||!(!o||r===e.isAutoScrollEnabled)||t!==e.indexMap||!(!t||!e.indexMap||t[i]===e.indexMap[e.activeSearchIndex])},n.prototype.render=function(){var e=this,n=this.props,t=n.caption,o=n.highlighted,r=n.showTime,c=n.longerThanHour,s=t.startTime,p=t.id,_=Object.keys(o)[0]===p;return(0,l.h)("div",{className:i.caption,tabIndex:1,ref:function(n){e._hotspotRef=n},onKeyDown:this._handleKeyPress},r&&(0,l.h)("div",{className:i.captionTime},(0,a.secontsToTime)(s,c)),(0,l.h)("div",{onClick:this._handleClick,className:"".concat(i.captionContent," ").concat(_?i.highlighted:""," ").concat(r?"":i.withoutTime),role:"button"},this._renderText(t.text)))},n}(l.Component);n.Caption=_},6734:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(5348),n)},5743:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CloseButton=void 0;var o=t(4522),r=t(5338),i=t(9749),a=t(1293),c=KalturaPlayer.ui.components.Icon;n.CloseButton=function(e){return(0,o.h)(i.A11yWrapper,{onClick:e.onClick},(0,o.h)("button",{className:r.closeBtn,tabIndex:1},(0,o.h)(c,{id:"transcript-plugin-close-button",height:a.icons.BigSize,width:a.icons.BigSize,viewBox:"0 0 ".concat(a.icons.BigSize," ").concat(a.icons.BigSize),path:a.icons.CLOSE_ICON})))}},745:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};Object.defineProperty(n,"__esModule",{value:!0}),n.DownloadPrintMenu=n.printContent=n.downloadContent=void 0;var c=t(4522),s=t(4539),p=t(8909),l=t(2769),_=KalturaPlayer.ui.utils.KeyMap,u=_.ENTER,d=_.Esc;n.downloadContent=function(e,n){var t=new Blob([e],{type:"text/plain;charset=utf-8;"}),o=document.createElement("a"),r=window.navigator;r.msSaveBlob?r.msSaveOrOpenBlob(t,n):(-1!==r.userAgent.search("Firefox")?(o.style.display="none",o.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e))):o.setAttribute("href",URL.createObjectURL(t)),o.setAttribute("target","_blank"),o.setAttribute("download",n),o.click(),o.remove())},n.printContent=function(e){var n=window.open("","","width=400,height=600");n&&(n.document.write(e),n.document.close(),n.focus(),n.print(),n.close())};var h=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={popoverOpen:!1},n._onDownloadClicked=function(){n.props.onDownload()},n._onPrintClicked=function(){n.props.onPrint()},n._onKeyDown=function(e,n){e.keyCode!==u&&e.keyCode!==d&&e.stopPropagation(),13===e.keyCode&&n()},n._popoverMenuItemRenderer=function(e){return(0,c.h)("div",{tabIndex:1,role:"button",onClick:function(){return e.onMenuChosen()},onKeyDown:function(t){return n._onKeyDown(t,e.onMenuChosen)},className:l.popoverMenuItem},e.label)},n._getPopoverMenuOptions=function(){return[{label:n.props.downloadButtonAriaLabel,onMenuChosen:n._onDownloadClicked},{label:n.props.printButtonAriaLabel,onMenuChosen:n._onPrintClicked}]},n._renderIcon=function(e){var n=e.buttonStyles,t=e.tabIndex,o=void 0===t?0:t,r=e.iconStyles,s=a(e,["buttonStyles","tabIndex","iconStyles"]);return(0,c.h)("button",i({className:n,tabIndex:o},s),(0,c.h)("div",{className:r}))},n._popoverContent=function(){return(0,c.h)(p.PopoverMenu,{itemRenderer:n._popoverMenuItemRenderer,options:n._getPopoverMenuOptions()})},n}return r(n,e),n.prototype.render=function(e){var n,t,o,r=e.downloadDisabled,i=e.printDisabled;return r||i?!r&&i?this._renderIcon(((t={})["aria-label"]=e.downloadButtonAriaLabel,t.buttonStyles=l.downloadPrintButton,t.iconStyles=[l.icon,l.downloadIcon].join(" "),t.onClick=this._onDownloadClicked,t)):r&&!i?this._renderIcon(((o={})["aria-label"]=e.printButtonAriaLabel,o.buttonStyles=l.downloadPrintButton,o.iconStyles=[l.icon,l.printIcon].join(" "),o.onClick=this._onPrintClicked,o)):null:(0,c.h)(s.Popover,{className:"download-print-popover",verticalPosition:s.PopoverVerticalPositions.Bottom,horizontalPosition:s.PopoverHorizontalPositions.Left,content:this._popoverContent()},this._renderIcon(((n={})["aria-label"]=e.dropdownAriaLabel,n.buttonStyles=l.downloadPrintButton,n.iconStyles=[l.icon,l.downloadIcon].join(" "),n)))},n.defaultProps={dropdownAriaLabel:"Download or print current transcript",printButtonAriaLabel:"Print current transcript",downloadButtonAriaLabel:"Download current transcript"},n}(c.Component);n.DownloadPrintMenu=h},6017:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(745),n)},1293:(e,n)=>{"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0}),n.icons=void 0,(t=n.icons||(n.icons={})).PLUGIN_ICON="M23.1111111,19 C23.6020309,19 24,19.4477153 24,20 C24,20.5522847 23.6020309,21 23.1111111,21 L8.88888889,21 C8.39796911,21 8,20.5522847 8,20 C8,19.4477153 8.39796911,19 8.88888889,19 L23.1111111,19 Z M24.8695652,3 C26.5984566,3 28,4.24720677 28,5.78571429 L28,26.2142857 C28,27.7527932 26.5984566,29 24.8695652,29 L7.13043478,29 C5.40154339,29 4,27.7527932 4,26.2142857 L4,5.78571429 C4,4.24720677 5.40154339,3 7.13043478,3 L24.8695652,3 Z M26,17 L6,17 L6,26.0833333 C6,26.5895944 6.47127921,27 7.05263158,27 L24.9473684,27 C25.5287208,27 26,26.5895944 26,26.0833333 L26,17 Z M8.88888889,23 L23.1111111,23 C23.6020309,23 24,23.4477153 24,24 C24,24.5128358 23.6568532,24.9355072 23.2147743,24.9932723 L23.1111111,25 L8.88888889,25 C8.39796911,25 8,24.5522847 8,24 C8,23.4871642 8.34314684,23.0644928 8.78522567,23.0067277 L8.88888889,23 L23.1111111,23 L8.88888889,23 Z M24.9473684,5 L7.05263158,5 C6.47127921,5 6,5.41040565 6,5.91666667 L6,15 L26,15 L26,5.91666667 C26,5.41040565 25.5287208,5 24.9473684,5 Z",t.CLOSE_ICON="M17.9113162,16 L24.6072325,9.30408374 C25.1313645,8.77995172 25.1287183,7.92687249 24.6009229,7.3990771 C24.0694478,6.86760201 23.220227,6.86845682 22.6959163,7.39276754 L16,14.0886838 L9.30408374,7.39276754 C8.77995172,6.86863552 7.92687249,6.8712817 7.3990771,7.3990771 C6.86760201,7.93055219 6.86845682,8.77977302 7.39276754,9.30408374 L14.0886838,16 L7.39276754,22.6959163 C6.86863552,23.2200483 6.8712817,24.0731275 7.3990771,24.6009229 C7.93055219,25.132398 8.77977302,25.1315432 9.30408374,24.6072325 L16,17.9113162 L22.6959163,24.6072325 C23.2200483,25.1313645 24.0731275,25.1287183 24.6009229,24.6009229 C25.132398,24.0694478 25.1315432,23.220227 24.6072325,22.6959163 L17.9113162,16 Z",t.SCROLL_ICON="M11.7071 6.70711C11.3466 7.06759 10.7794 7.09532 10.3871 6.7903L10.2929 6.70711L6 2.415L1.70711 6.70711C1.34662 7.06759 0.779391 7.09532 0.3871 6.79029L0.292893 6.70711C-0.0675907 6.34662 -0.0953206 5.77939 0.209705 5.3871L0.292894 5.29289L5.29289 0.292893C5.65338 -0.0675913 6.22061 -0.0953212 6.6129 0.209704L6.70711 0.292893L11.7071 5.29289C12.0976 5.68342 12.0976 6.31658 11.7071 6.70711Z",t.BigSize=32,t.MediumSize=24,t.SmallSize=16},2351:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PluginButton=void 0;var o=t(4522),r=t(3364),i=t(1293),a=t(6571),c=KalturaPlayer.ui.components,s=c.Tooltip,p=c.Icon;n.PluginButton=function(e){var n=e.isActive,t=e.onClick,c=e.label;return(0,o.h)(s,{label:c,type:"bottom"},(0,o.h)(a.A11yWrapper,{onClick:t},(0,o.h)("button",{"aria-label":c,className:[r.pluginButton,n?r.active:""].join(" ")},(0,o.h)(p,{id:"transcript-plugin-button",height:i.icons.BigSize,width:i.icons.BigSize,viewBox:"0 0 ".concat(i.icons.BigSize," ").concat(i.icons.BigSize),path:i.icons.PLUGIN_ICON}))))}},8909:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(1664),n)},1664:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.PopoverMenu=void 0;var i=t(4522),a=t(5318),c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.render=function(e){return(0,i.h)("div",{className:a.popoverMenu},e.options.map((function(n){return n.customRenderer?n.customRenderer(n):e.itemRenderer?e.itemRenderer(n):(0,i.h)("div",{className:"popover-menu-item",onClick:function(){return n.onMenuChosen(n)}},n.label)})))},n}(i.Component);n.PopoverMenu=c},3517:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(8372),n)},8372:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.Search=void 0;var i=t(4522),a=t(214),c=t(4539),s=function(e){function n(n){var t=e.call(this,n)||this;return t.state={active:!1,focused:!1},t._inputRef=null,t._focusedByMouse=!1,t._handleOnChange=function(e){t.props.onChange(e.target.value)},t._onClear=function(e){var n;0!==e.x&&0!==e.y&&(t._focusedByMouse=!0),null===(n=t._inputRef)||void 0===n||n.focus(),t.props.onChange("")},t._onFocus=function(){t.setState({active:!0,focused:!t._focusedByMouse}),t._focusedByMouse=!1},t._onBlur=function(){t.setState({active:!1,focused:!1})},t._goToNextSearchResult=function(){var e=t.props,n=e.activeSearchIndex,o=e.totalSearchResults,r=e.onSearchIndexChange;0!==o&&r(n!==o?t.props.activeSearchIndex+1:1)},t._goToPrevSearchResult=function(){var e=t.props,n=e.activeSearchIndex,o=e.totalSearchResults;(0,e.onSearchIndexChange)(1!==n?n-1:o)},t._handleMouseDown=function(){t._focusedByMouse=!0},t._debouncedOnChange=(0,c.debounce)(n.onChange,300),t.state={active:!1,focused:!1},t}return r(n,e),n.prototype.shouldComponentUpdate=function(e,n){var t=this.props,o=t.value,r=t.activeSearchIndex,i=t.totalSearchResults,a=t.kitchenSinkActive;return o!==e.value||r!==e.activeSearchIndex||i!==e.totalSearchResults||a!==e.kitchenSinkActive||this.state.active!==n.active},n.prototype.componentDidUpdate=function(e){var n,t=this.props,o=t.kitchenSinkActive,r=t.toggledWithEnter;!e.kitchenSinkActive&&o&&r&&(null===(n=this._inputRef)||void 0===n||n.focus())},n.prototype.render=function(){var e=this,n=this.props,t=n.searchQuery,o=n.totalSearchResults,r=n.activeSearchIndex;return(0,i.h)("div",{className:[a.searchWrapper,t||this.state.active?a.active:"",this.state.focused?a.focused:""].join(" ")},(0,i.h)("div",{className:a.searchIcon}),(0,i.h)("input",{className:a.searchInput,placeholder:"Search in Transcript",value:t,onInput:this._handleOnChange,onFocus:this._onFocus,onBlur:this._onBlur,onMouseDown:this._handleMouseDown,tabIndex:1,ref:function(n){e._inputRef=n}}),t&&(0,i.h)("button",{className:a.clearIcon,onClick:this._onClear,tabIndex:1}),t&&(0,i.h)("div",{className:a.searchResults},"".concat(o>0?"".concat(r,"/").concat(o):"0/0")),(0,i.h)("div",{className:a.prevNextWrapper},t&&(0,i.h)("button",{tabIndex:1,className:"".concat(a.prevNextButton," ").concat(a.prevButton," ").concat(0===o?a.disabled:""),onClick:this._goToPrevSearchResult}),t&&(0,i.h)("button",{tabIndex:1,className:"".concat(a.prevNextButton," ").concat(a.nextButton," ").concat(0===o?a.disabled:""),onClick:this._goToNextSearchResult})))},n}(i.Component);n.Search=s},1797:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(4350),n)},4350:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.Spinner=void 0;var i=t(4522),a=t(7863),c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.render=function(){return(0,i.h)("div",{className:a.spinnerBall},(0,i.h)("div",{className:a.bounceFrame}))},n}(i.Component);n.Spinner=c},9754:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(464),n)},464:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Transcript=void 0;var a=t(4522),c=t(4539),s=t(6513),p=t(1797),l=t(3517),_=t(5271),u=t(6571),d=t(5743),h=KalturaPlayer.ui.utils.KeyMap,A=h.ENTER,f=h.Space,g=h.Tab,C=h.Esc,b=(h.click,{search:"",activeSearchIndex:1,searchMap:{},totalSearchResults:0,searchLength:0}),v=38,m=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._transcriptListRef=null,n._captionListRef=null,n._skipTranscriptButtonRef=null,n._autoscrollButtonRef=null,n._preventScrollEvent=!1,n._scrollToSearchMatchEnabled=!1,n._widgetRootRef=null,n._widgetHeight=0,n._topAutoscrollEdge=0,n._bottomAutoscrollEdge=0,n._thirdOfWidgetHeight=0,n.state=i({isAutoScrollEnabled:!0,widgetWidth:0},b),n._enableAutoScroll=function(e,t){var o;e.preventDefault(),n.state.isAutoScrollEnabled||(n._preventScrollEvent=!0,n.setState({isAutoScrollEnabled:!0}),"click"!==e.type&&(null===(o=n._skipTranscriptButtonRef)||void 0===o||o.focus()))},n._renderScrollToButton=function(){var e=n.state.isAutoScrollEnabled;return(0,a.h)(u.A11yWrapper,{onClick:n._enableAutoScroll},(0,a.h)("div",{role:"button",className:"".concat(s.autoscrollButton," ").concat(e?"":s.autoscrollButtonVisible),tabIndex:e?-1:1,ref:function(e){n._autoscrollButtonRef=e}}))},n._onSearch=function(e){n.setState({search:e})},n._findSearchMatches=function(){n.setState((function(e){if(!e.search)return i({},b);var t=0,o=e.search.toLowerCase(),r={};return n.props.captions.forEach((function(e){for(var n,a,c=(null===(n=null==e?void 0:e.text)||void 0===n?void 0:n.toLowerCase())||"",s=new RegExp(o,"gi"),p=[];a=s.exec(c);)p.push(a.index);p.forEach((function(n){var o;t++,r[e.id]=i(i({},r[e.id]),((o={})[t]=n,o))}))})),{searchMap:r,totalSearchResults:t,activeSearchIndex:1,searchLength:o.length}}))},n._setActiveSearchIndex=function(e){n._scrollToSearchMatchEnabled=!0,n.setState({activeSearchIndex:e,isAutoScrollEnabled:!1})},n._getHeaderStyles=function(){var e=n.state.widgetWidth;return e>=692?"":e>=649?s.mediumWidth:s.smallWidth},n._renderHeader=function(){var e=n.props,t=e.toggledWithEnter,o=e.kitchenSinkActive,r=n.state,i=r.search,c=r.activeSearchIndex,p=r.totalSearchResults;return(0,a.h)("div",{className:[s.header,n._getHeaderStyles()].join(" ")},(0,a.h)(l.Search,{onChange:n._onSearch,onSearchIndexChange:n._debounced.onActiveSearchIndexChange,value:i,activeSearchIndex:c,totalSearchResults:p,toggledWithEnter:t,kitchenSinkActive:o,searchQuery:i}))},n._handleKeyDown=function(e){var t,o,r;if(e.keyCode!==g||e.shiftKey)e.keyCode!==A&&e.keyCode!==f||(e.preventDefault(),null===(r=n._autoscrollButtonRef)||void 0===r||r.focus());else{n.setState({isAutoScrollEnabled:!1});var i=null===(o=null===(t=n._captionListRef)||void 0===t?void 0:t._currentCaptionRef)||void 0===o?void 0:o._hotspotRef;i&&(e.preventDefault(),i.focus())}},n._renderSkipTranscriptButton=function(){return(0,a.h)("div",{role:"button",ref:function(e){n._skipTranscriptButtonRef=e},className:s.skipTranscriptButton,onKeyDown:n._handleKeyDown,tabIndex:1},"Skip transcript")},n._renderTranscript=function(){var e=n.props,t=e.captions,o=e.hasError,r=e.onRetryLoad,i=e.showTime,c=e.videoDuration,p=e.highlightedMap,l=n.state,u=l.isAutoScrollEnabled,d=l.searchMap,h=l.activeSearchIndex,A=l.searchLength;if(!t||!t.length)return null;if(o)return(0,a.h)("div",{className:s.errorWrapper},(0,a.h)("div",{className:s.errorIcon}),(0,a.h)("p",{className:s.errorMainText},"Whoops!"),(0,a.h)("p",{className:s.errorDescriptionText},"Failed to get transcript, please try again",(0,a.h)("button",{className:s.retryButton,onClick:r},"Retry")));var f={showTime:i,searchLength:A,scrollTo:n._scrollTo,scrollToSearchMatch:n._scrollToSearchMatch,videoDuration:c};return(0,a.h)(_.CaptionList,{ref:function(e){n._captionListRef=e},highlightedMap:p,data:t,onSeek:n._handleSeek,isAutoScrollEnabled:u,searchMap:d,activeSearchIndex:h,captionProps:f,onScroll:n._onScroll,widgetWidth:n.state.widgetWidth,showItemsIcons:!0,searchActive:!1})},n._setWidgetSize=function(){if(n._widgetRootRef){var e=n._widgetRootRef.getBoundingClientRect(),t=e.width,o=e.height;e.top,n.state.widgetWidth!==t&&n.setState({widgetWidth:t}),n._widgetHeight!==o&&(n._widgetHeight=o,n._thirdOfWidgetHeight=o/3,n._topAutoscrollEdge=Math.floor(n._thirdOfWidgetHeight+v),n._bottomAutoscrollEdge=Math.ceil(2*n._thirdOfWidgetHeight+v))}},n._renderLoading=function(){return(0,a.h)("div",{className:s.loadingWrapper},(0,a.h)(p.Spinner,null))},n._scrollTo=function(e){if(n._transcriptListRef){n._preventScrollEvent=!0;var t=e.getBoundingClientRect().top;(t>=n._topAutoscrollEdge||t<=n._bottomAutoscrollEdge)&&(n._transcriptListRef.scrollTop=e.offsetTop-(n._thirdOfWidgetHeight-v))}},n._scrollToSearchMatch=function(e){n._transcriptListRef&&n._scrollToSearchMatchEnabled&&(n._scrollToSearchMatchEnabled=!1,n._preventScrollEvent=!0,n._transcriptListRef.scrollTop=e.offsetTop-v)},n._onScroll=function(){n._preventScrollEvent?n._preventScrollEvent=!1:n.setState({isAutoScrollEnabled:!1})},n._handleSeek=function(e){var t=n.props.onSeek,o=window.getSelection();o&&"Range"!==o.type&&t(e.startTime)},n._debounced={findSearchMatches:(0,c.debounce)(n._findSearchMatches,n.props.searchDebounceTimeout),onActiveSearchIndexChange:(0,c.debounce)(n._setActiveSearchIndex,n.props.searchNextPrevDebounceTimeout)},n._handleEsc=function(e){e.keyCode===C&&n.props.onClose()},n}return r(n,e),n.prototype.componentDidUpdate=function(e,n){var t=this.props.captions,o=this.state.search;e.captions!==t&&this.setState({search:"",isAutoScrollEnabled:!0}),n.search!==o&&this._debounced.findSearchMatches(),this._setWidgetSize()},n.prototype.render=function(e){var n=this,t=e.isLoading,o=e.kitchenSinkActive;return(0,a.h)("div",{className:"".concat(s.root," ").concat(o?"":s.hidden),ref:function(e){n._widgetRootRef=e},onKeyUp:this._handleEsc},(0,a.h)("div",{className:s.globalContainer},this._renderHeader(),(0,a.h)(d.CloseButton,{onClick:this.props.onClose}),!t&&this._renderSkipTranscriptButton(),(0,a.h)("div",{className:s.body,onScroll:this._onScroll,ref:function(e){n._transcriptListRef=e}},t?this._renderLoading():this._renderTranscript()),this._renderScrollToButton()))},n}(a.Component);n.Transcript=m},5667:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(n,"__esModule",{value:!0}),n.TranscriptPlugin=void 0;var i=t(4522),a=t(4539),c=t(6978),s=t(2351),p=t(9754),l=t(4539),_=t(2085),u=t(6017),d=c.ui.SidePanelModes,h=c.ui.SidePanelPositions,A=c.ui.ReservedPresetNames,f=c.ui.ReservedPresetAreas,g=a.ObjectUtils.get,C=KalturaPlayer.ui.components.Tooltip,b=function(e){function n(n,t,o){var r=e.call(this,n,t,o)||this;return r._activeCaptionMapId="",r._activeCuePointsMap={},r._captionMap=new Map,r._isLoading=!1,r._hasError=!1,r._triggeredByKeyboard=!1,r._removePopoverIcon=null,r._transcriptPanel=null,r._pluginState=null,r._handleLanguageChange=function(){r._activeCaptionMapId=r._getCaptionMapId(),r._captionMap.has(r._activeCaptionMapId)&&r._updateTranscriptPanel()},r._onTimedMetadataAdded=function(e){var n=e.payload,t=[];n.cues.forEach((function(e){e.metadata.cuePointType===_.ItemTypes.Caption&&t.push((0,l.prepareCuePoint)(e))})),t.length&&r._addCaptionData(t)},r._onTimedMetadataChange=function(e){var n=e.payload.cues.filter((function(e){return e.metadata.cuePointType===_.ItemTypes.Caption}));r._activeCuePointsMap={},n.forEach((function(e){r._activeCuePointsMap[e.id]=!0})),r._updateTranscriptPanel()},r._addCaptionData=function(e){r._activeCaptionMapId=r._getCaptionMapId(),r._captionMap.set(r._activeCaptionMapId,e),r._createOrUpdatePlugin()},r._getCaptionMapId=function(){var e=(r.player.getTracks(r.player.Track.TEXT)||[]).find((function(e){return e.active}));return e?"".concat(e.language,"-").concat(e.label):""},r.onClose=function(){r.sidePanelsManager.isItemActive(r._transcriptPanel)?(r._pluginState=_.PluginStates.CLOSED,r.sidePanelsManager.deactivateItem(r._transcriptPanel)):r.sidePanelsManager.activateItem(r._transcriptPanel)},r._createOrUpdatePlugin=function(){r._transcriptPanel?r._updateTranscriptPanel():(r._initLoading(),r._addPopoverIcon(),r._addTranscriptItem())},r._seekTo=function(e){r.player.currentTime=e},r._handleDownload=function(){var e=r.player.config,n=r._captionMap.get(r._activeCaptionMapId)||[];if(n){var t=g(e,"sources.metadata",{}),o=r._getCaptionMapId();(0,u.downloadContent)((0,l.makePlainText)(n),"".concat(o).concat(t.name?"-".concat(t.name):"",".txt"))}},r._handlePrint=function(){var e=r._captionMap.get(r._activeCaptionMapId)||[];e&&(0,u.printContent)((0,l.makePlainText)(e))},r}return r(n,e),Object.defineProperty(n.prototype,"sidePanelsManager",{get:function(){return this.player.getService("sidePanelsManager")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cuePointManager",{get:function(){return this.player.getService("kalturaCuepoints")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_data",{get:function(){return this._captionMap.get(this._activeCaptionMapId)||[]},enumerable:!1,configurable:!0}),n.prototype.loadMedia=function(){this.cuePointManager&&this.sidePanelsManager?(this.onPluginSetup(),this.cuePointManager.registerTypes([this.cuePointManager.CuepointType.CAPTION])):this.logger.warn("kalturaCuepoints or sidePanelsManager haven't registered")},n.prototype.onPluginSetup=function(){this.eventManager.listen(this.player,this.player.Event.TIMED_METADATA_CHANGE,this._onTimedMetadataChange),this.eventManager.listen(this.player,this.player.Event.TIMED_METADATA_ADDED,this._onTimedMetadataAdded),this.eventManager.listen(this.player,this.player.Event.TEXT_TRACK_CHANGED,this._handleLanguageChange)},n.prototype.onRegisterUI=function(){},n.prototype._updateTranscriptPanel=function(){this._isLoading=!1,this._transcriptPanel&&this.sidePanelsManager.update(this._transcriptPanel)},n.prototype._addPopoverIcon=function(){var e=this,n=this.config,t=n.downloadDisabled,o=n.printDisabled;this._removePopoverIcon||(this._removePopoverIcon=this.player.ui.addComponent({label:"Download transcript",area:f.TopBarRightControls,presets:[A.Playback,A.Live],get:function(){return(0,i.h)(u.DownloadPrintMenu,{onDownload:e._handleDownload,onPrint:e._handlePrint,downloadDisabled:(0,l.getConfigValue)(t,l.isBoolean,!1),printDisabled:(0,l.getConfigValue)(o,l.isBoolean,!1),dropdownAriaLabel:"Download or print transcript",printButtonAriaLabel:"Print transcript",downloadButtonAriaLabel:"Download transcript"})}}))},n.prototype._addTranscriptItem=function(){var e=this,n="Transcript",t=this.config,o=t.expandMode,r=t.position,a=t.expandOnFirstPlay,c=[h.RIGHT,h.LEFT].includes(r)?_.PluginPositions.VERTICAL:_.PluginPositions.HORIZONTAL,u=this.config,d=u.showTime,f=u.scrollOffset,g=u.searchDebounceTimeout,b=u.searchNextPrevDebounceTimeout;this._transcriptPanel=this.sidePanelsManager.addItem({label:"Transcript",panelComponent:function(){return(0,i.h)(p.Transcript,{showTime:(0,l.getConfigValue)(d,l.isBoolean,!0),scrollOffset:(0,l.getConfigValue)(f,Number.isInteger,0),searchDebounceTimeout:(0,l.getConfigValue)(g,Number.isInteger,250),searchNextPrevDebounceTimeout:(0,l.getConfigValue)(b,Number.isInteger,100),highlightedMap:e._activeCuePointsMap,onSeek:e._seekTo,pluginMode:c,onItemClicked:e._seekTo,captions:e._data,isLoading:e._isLoading,hasError:e._hasError,onRetryLoad:e._createOrUpdatePlugin,currentTime:e.player.currentTime,videoDuration:e.player.duration,kitchenSinkActive:!!e.sidePanelsManager.isItemActive(e._transcriptPanel),toggledWithEnter:e._triggeredByKeyboard,onClose:e.onClose})},iconComponent:function(t){var o=t.isActive;return(0,i.h)(C,{label:n,type:"bottom"},(0,i.h)(s.PluginButton,{isActive:o,onClick:e.onClose,label:n}))},presets:[A.Playback,A.Live,A.Ads],position:r,expandMode:o,onActivate:function(){e._pluginState=_.PluginStates.OPENED}}),(a&&!this._pluginState||this._pluginState===_.PluginStates.OPENED)&&this.ready.then((function(){e.sidePanelsManager.activateItem(e._transcriptPanel)}))},n.prototype._initLoading=function(){this._isLoading&&!this._hasError||(this._isLoading=!0,this._hasError=!1,this._updateTranscriptPanel())},n.isValid=function(){return!0},n.prototype.reset=function(){this._removePopoverIcon&&(this._removePopoverIcon(),this._removePopoverIcon=null),this._captionMap=new Map,this._activeCaptionMapId="",this._isLoading=!1,this._hasError=!1},n.prototype.destroy=function(){this.reset()},n.defaultConfig={expandMode:d.ALONGSIDE,expandOnFirstPlay:!0,showTime:!0,position:h.RIGHT,scrollOffset:0,searchDebounceTimeout:250,searchNextPrevDebounceTimeout:100,downloadDisabled:!1,printDisabled:!1},n}(KalturaPlayer.core.BasePlugin);n.TranscriptPlugin=b},2085:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(5481),n),r(t(4944),n),r(t(1352),n)},4944:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0})},1352:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ItemTypes=void 0,(n.ItemTypes||(n.ItemTypes={})).Caption="kalturaCaption"},5481:(e,n)=>{"use strict";var t,o;Object.defineProperty(n,"__esModule",{value:!0}),n.PluginStates=n.PluginPositions=void 0,(o=n.PluginPositions||(n.PluginPositions={})).HORIZONTAL="horizontal",o.VERTICAL="vertical",(t=n.PluginStates||(n.PluginStates={})).OPENED="opened",t.CLOSED="closed"},7256:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.debounce=void 0,n.debounce=function(e,n,t){var o;return void 0===n&&(n=50),void 0===t&&(t={isImmediate:!1}),function(){for(var r=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var c=function(){o=void 0,t.isImmediate||e.apply(r,i)},s=t.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout(c,n),s&&e.apply(this,i)}}},4539:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t);var r=Object.getOwnPropertyDescriptor(n,t);r&&!("get"in r?!n.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,o,r)}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(9714),n),r(t(4935),n),r(t(7256),n),r(t(1903),n)},4935:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ObjectUtils=void 0;var t=function(){function e(){}return e.get=function(e,n,t){for(var o=function(e){var n=[];return e.split(".").forEach((function(e){e.split(/\[([^}]+)\]/g).forEach((function(e){e.length>0&&n.push(e)}))})),n}(n),r=e,i=0;i<o.length;i++){if(!r[o[i]])return t;r=r[o[i]]}return r},e}();n.ObjectUtils=t},1903:function(e,n,t){"use strict";var o,r=this&&this.__extends||(o=function(e,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},o(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Popover=n.PopoverTriggerMode=n.PopoverHorizontalPositions=n.PopoverVerticalPositions=void 0;var a,c,s,p=t(4522),l=t(4531),_=KalturaPlayer.ui.utils.KeyMap,u=_.ENTER,d=_.Esc;!function(e){e.Top="top",e.Bottom="bottom"}(a=n.PopoverVerticalPositions||(n.PopoverVerticalPositions={})),function(e){e.Left="left",e.Right="right"}(c=n.PopoverHorizontalPositions||(n.PopoverHorizontalPositions={})),function(e){e.Click="click",e.Hover="hover"}(s=n.PopoverTriggerMode||(n.PopoverTriggerMode={}));var h={verticalPosition:a.Top,horizontalPosition:c.Left,triggerMode:s.Click,className:"popover",closeOnEsc:!0,closeOnClick:!0},A=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._closeTimeout=null,n._controlElement=null,n.state={open:!1},n._clearTimeout=function(){clearTimeout(n._closeTimeout),n._closeTimeout=null},n._handleMouseEvent=function(e){var t;!(null===(t=n._controlElement)||void 0===t?void 0:t.contains(e.target))&&n.props.closeOnClick&&n._closePopover()},n._handleKeyboardEvent=function(e){var t;(null===(t=n._controlElement)||void 0===t?void 0:t.contains(e.target))&&e.keyCode===u||(n.props.closeOnEsc&&e.keyCode===d||e.keyCode===u)&&n._closePopover()},n._openPopover=function(){var e=n.props.onOpen;n._clearTimeout(),n.setState({open:!0},(function(){n._addListeners(),e&&e()}))},n._closePopover=function(){var e=n.props.onClose;n._clearTimeout(),n.setState({open:!1},(function(){n._removeListeners(),e&&e()}))},n._togglePopover=function(e){n.state.open?n._closePopover():n._openPopover()},n._handleMouseEnter=function(){n.state.open||n._openPopover()},n._handleMouseLeave=function(){n._closeTimeout=setTimeout(n._closePopover,500)},n._handleHoverOnPopover=function(){n.state.open&&n._closeTimeout?n._clearTimeout():n._closePopover()},n._addListeners=function(){document.addEventListener("click",n._handleMouseEvent),document.addEventListener("keydown",n._handleKeyboardEvent)},n._removeListeners=function(){document.removeEventListener("click",n._handleMouseEvent),document.removeEventListener("keydown",n._handleKeyboardEvent)},n._getHoverEvents=function(){return n.props.triggerMode===s.Hover?{targetEvents:{onMouseEnter:n._handleMouseEnter,onMouseLeave:n._handleMouseLeave},popoverEvents:{onMouseEnter:n._handleHoverOnPopover,onMouseLeave:n._handleHoverOnPopover}}:{targetEvents:{onClick:n._togglePopover},popoverEvents:{}}},n}return r(n,e),n.prototype.componentWillUnmount=function(){this._removeListeners()},n.prototype.render=function(e){var n=this;if(!e.content||!e.children)return null;var t=this._getHoverEvents(),o=t.targetEvents,r=t.popoverEvents;return(0,p.h)("div",{className:l.popoverContainer},(0,p.h)("div",i({className:"popover-anchor-container",ref:function(e){n._controlElement=e}},o),e.children),this.state.open&&(0,p.h)("div",i({"aria-expanded":"true",className:[e.className,l.popoverComponent,l[e.verticalPosition],l[e.horizontalPosition]].join(" ")},r),e.content))},n.defaultProps=i({},h),n}(p.Component);n.Popover=A},9714:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.prepareCuePoint=n.decodeString=n.makePlainText=n.isBoolean=n.getConfigValue=n.secontsToTime=n.toSeconds=n.HOUR=void 0,n.HOUR=3600,n.toSeconds=function(e,t){void 0===t&&(t=!1);var o=(t?/(\d+):(\d{2}):(\d{2}).(\d{2,3}|\d{2})/:/(\d+):(\d{2}):(\d{2}),((\d{2,3}|\d{2}|\d{1}))?/).exec(e);if(null===o)return 0;for(var r=1;r<5;r++)o[r]=parseInt(o[r],10),isNaN(o[r])&&(o[r]=0);return o[1]*n.HOUR+60*o[2]+o[3]+o[4]/1e3};var t=function(e){return e<10?"0".concat(e):e};n.secontsToTime=function(e,o){var r=new Date(0);return r.setSeconds(e),"".concat(o?function(e){var t=Math.floor(e/n.HOUR);return t>=1?"".concat(t,":"):""}(e):"").concat(t(r.getUTCMinutes()),":").concat(t(r.getUTCSeconds()))},n.getConfigValue=function(e,n,t){var o=t;return"function"==typeof n&&n(e)&&(o=e),o},n.isBoolean=function(e){return"boolean"==typeof e},n.makePlainText=function(e){return e.reduce((function(e,n){return"".concat(e," ").concat(n.text)}),"")},KalturaPlayer.ui.utils.toHHMMSS,n.decodeString=function(e){return"string"!=typeof e?e:e.replace(/</gi,"<").replace(/>/gi,">").replace(/ /gi," ").replace(/&/gi,"&").replace(/"/gi,'"')},n.prepareCuePoint=function(e){var t=e.metadata;return{id:e.id,startTime:e.startTime,displayTime:Math.floor(e.startTime),text:(0,n.decodeString)(t.text)}}},3586:(e,n,t)=>{"use strict";e.exports=t.p+"84087eb1cff72e5e6bd3.svg"},1987:(e,n,t)=>{"use strict";e.exports=t.p+"301e7a199b2cd06c2edf.svg"},7469:(e,n,t)=>{"use strict";e.exports=t.p+"95d7192dc427afb678d0.svg"},485:(e,n,t)=>{"use strict";e.exports=t.p+"e5496f4c01207db44ffc.svg"},4987:(e,n,t)=>{"use strict";e.exports=t.p+"1501adfdf5c835667ce7.svg"},2365:(e,n,t)=>{"use strict";e.exports=t.p+"33bce27c0f546e80478c.svg"},8057:(e,n,t)=>{"use strict";e.exports=t.p+"6a4867d3d9170cc2a24d.svg"},2215:(e,n,t)=>{"use strict";e.exports=t.p+"d93f06ff32cdfcd016df.svg"},832:(e,n,t)=>{"use strict";e.exports=t.p+"cea5d6a7f050cbd199a1.svg"},6824:(e,n,t)=>{"use strict";e.exports=t.p+"73bab0af28a1c7aed29f.svg"},4522:e=>{"use strict";e.exports=KalturaPlayer.ui.preact},6978:e=>{"use strict";e.exports=KalturaPlayer}},n={};function t(o){var r=n[o];if(void 0!==r)return r.exports;var i=n[o]={id:o,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.exports}t.m=e,t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var n=t.g.document;if(!e&&n&&(n.currentScript&&(e=n.currentScript.src),!e)){var o=n.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e})(),t.b=document.baseURI||self.location.href,t.nc=void 0;var o={};(()=>{"use strict";var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.NAME=e.VERSION=e.Plugin=void 0;var n=t(5667);Object.defineProperty(e,"Plugin",{enumerable:!0,get:function(){return n.TranscriptPlugin}}),e.VERSION="2.1.5-canary.16-1ac3e09",e.NAME="@playkit-js/transcript",KalturaPlayer.core.registerPlugin("transcript",n.TranscriptPlugin)})(),((KalturaPlayer=void 0===KalturaPlayer?{}:KalturaPlayer).plugins=KalturaPlayer.plugins||{}).transcript=o})();
|
|
32
2
|
//# sourceMappingURL=playkit-transcript.js.map
|