1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7596],{9524:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,o,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(r=0)),r;)try{if(n=1,o&&(i=2&s[0]?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,o=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!(i=(i=r.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){r=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(6===s[0]&&r.label<i[1]){r.label=i[1],i=s;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(s);break}i[2]&&r.ops.pop(),r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e],o=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DOM=void 0;var i=function(){function e(e,t,n){if(e instanceof Array)e.length>0&&e[0]instanceof HTMLElement&&(this.elements=e);else if(e instanceof HTMLElement){var o=e;this.elements=[o]}else if(e instanceof Document||e instanceof ShadowRoot)this.documentOrShadowRoot=e,this.elements=null;else if(t){var o=document.createElement(e);for(var i in t){var r=t[i];null!=r&&o.setAttribute(i,r)}n&&(o.component=n),this.elements=[o]}else this.elements=this.findChildElements(e)}return Object.defineProperty(e.prototype,"length",{get:function(){return this.elements?this.elements.length:0},enumerable:!1,configurable:!0}),e.prototype.get=function(e){if(void 0===e)return this.elements;if(!(!this.elements||e>=this.elements.length||e<-this.elements.length))return e<0?this.elements[this.elements.length-e]:this.elements[e]},e.prototype.forEach=function(e){this.elements&&this.elements.forEach(function(t){e(t)})},e.prototype.findChildElementsOfElement=function(e,t){var n=e.querySelectorAll(t);return[].slice.call(n)},e.prototype.findChildElements=function(e){var t=this,n=[];return this.elements?(this.forEach(function(o){n=n.concat(t.findChildElementsOfElement(o,e))}),n):this.findChildElementsOfElement(document,e)},e.prototype.find=function(t){return new e(this.findChildElements(t))},e.prototype.focusToFirstInput=function(){var e=this.findChildElements('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e.length>0&&e[0].focus()},e.prototype.scrollTo=function(e,t){this.elements[0].scrollTo(e,t)},e.prototype.html=function(e){return arguments.length>0?this.setHtml(e):this.getHtml()},e.prototype.getHtml=function(){return this.elements[0].innerHTML},e.prototype.setHtml=function(e){return(void 0===e||null==e)&&(e=""),this.forEach(function(t){t.innerHTML=e}),this},e.prototype.empty=function(){return this.forEach(function(e){e.innerHTML=""}),this},e.prototype.val=function(){var e=this.elements[0];if(e instanceof HTMLSelectElement||e instanceof HTMLInputElement)return e.value;throw Error("val() not supported for ".concat(typeof e))},e.prototype.attr=function(e,t){return arguments.length>1?this.setAttr(e,t):this.getAttr(e)},e.prototype.removeAttr=function(e){this.forEach(function(t){t.removeAttribute(e)})},e.prototype.getAttr=function(e){return this.elements[0].getAttribute(e)},e.prototype.setAttr=function(e,t){return this.forEach(function(n){n.setAttribute(e,t)}),this},e.prototype.data=function(e,t){return arguments.length>1?this.setData(e,t):this.getData(e)},e.prototype.getData=function(e){return this.elements[0].getAttribute("data-"+e)},e.prototype.setData=function(e,t){return this.forEach(function(n){n.setAttribute("data-"+e,t)}),this},e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];
1var n=function(t){e.forEach(function(e){e.elements.forEach(function(n,o){t.appendChild(e.elements[o])})})};return this.elements?this.forEach(function(e){return n(e)}):n(this.documentOrShadowRoot),this},e.prototype.prepend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(t){e.forEach(function(e){e.elements.forEach(function(n,o){t.insertBefore(e.elements[o],t.firstChild)})})};return this.elements?this.forEach(function(e){return n(e)}):n(this.documentOrShadowRoot),this},e.prototype.remove=function(){var e=function(e){var t=e.parentNode;t&&t.removeChild(e)};this.elements?this.forEach(function(t){return e(t)}):e(this.documentOrShadowRoot)},e.prototype.offset=function(){var e=this.elements[0].getBoundingClientRect(),t=document.body.parentElement.getBoundingClientRect();return{top:e.top-t.top,left:e.left-t.left}},e.prototype.width=function(){return this.elements[0].offsetWidth},e.prototype.height=function(){return this.elements[0].offsetHeight},e.prototype.size=function(){return{width:this.width(),height:this.height()}},e.prototype.on=function(e,t,n){var o=this;return e.split(" ").forEach(function(e){null==o.elements?o.documentOrShadowRoot.addEventListener(e,t,n):o.forEach(function(o){o.addEventListener(e,t,n)})}),this},e.prototype.off=function(e,t,n){var o=this;return e.split(" ").forEach(function(e){null==o.elements?o.documentOrShadowRoot.removeEventListener(e,t,n):o.forEach(function(o){o.removeEventListener(e,t,n)})}),this},e.prototype.waitForTransitionEnd=function(e){return n(this,void 0,void 0,function(){var t,n=this;return o(this,function(o){return(t=this.get(0))&&"none"!==getComputedStyle(t).transitionProperty?[2,new Promise(function(o){var i=function(r){r.target===t&&r.propertyName===e&&(n.off("transitionend",i),n.off("transitioncancel",i),o())};n.on("transitionend",i),n.on("transitioncancel",i)})]:[2]})})},e.prototype.addClass=function(e){return this.forEach(function(t){var n;if(t.classList){var o=e.split(" ").filter(function(e){return e.length>0});o.length>0&&(n=t.classList).add.apply(n,o)}else t.className+=" "+e}),this},e.prototype.removeClass=function(e){return this.forEach(function(t){var n;if(t.classList){var o=e.split(" ").filter(function(e){return e.length>0});o.length>0&&(n=t.classList).remove.apply(n,o)}else t.className=t.className.replace(RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}),this},e.prototype.hasClass=function(e){var t=!1;return this.forEach(function(n){n.classList?n.classList.contains(e)&&(t=!0):RegExp("(^| )"+e+"( |$)","gi").test(n.className)&&(t=!0)}),t},e.prototype.css=function(e,t){return"string"!=typeof e?this.setCssCollection(e):2==arguments.length?this.setCss(e,t):this.getCss(e)},e.prototype.removeCss=function(e,t){return void 0===t&&(t=0),this.elements[t].style.removeProperty(e)},e.prototype.getCss=function(e){return getComputedStyle(this.elements[0])[e]},e.prototype.setCss=function(e,t){return this.forEach(function(n){n.style[e]=t}),this},e.prototype.setCssCollection=function(e){return this.forEach(function(t){Object.assign(t.style,e)}),this},e}();t.DOM=i},37388:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EventDispatcher=void 0;var r=n(5602),a=n(9110),s=function(){function e(){this.listeners=[]}return e.prototype.subscribe=function(e){this.listeners.push(new l(e))},e.prototype.subscribeOnce=function(e){this.listeners.push(new l(e,!0))},e.prototype.subscribeRateLimited=function(e,t){this.listeners.push(new c(e,t))},e.prototype.unsubscribe=function(e){for(var t=0;t<this.listeners.length;t++){var n=this.listeners[t];if(n.listener===e)return n.clear(),r.ArrayUtils.remove(this.listeners,n),!0}return!1},e.prototype.unsubscribeAll=function(){for(var e=0,t=this.listeners;e<t.length;e++)t[e].clear();this.listeners=[]},e.prototype.dispatch=function(e,t){void 0===t&&(t=null);for(var n=[],o=this.listeners.slice(0),i=0;i<o.length;i++){var a=o[i];a.fire(e,t),a.isOnce()&&n.push(a)}for(var s=0;s<n.length;s++){var l=n[s];r.ArrayUtils.remove(this.listeners,l)}},e.prototype.getEvent=function(){return this},e}();t.EventDispatcher=s;var l=function(){function e(e,t){void 0===t&&(t=!1),this.eventListener=e,this.once=t}return Object.defineProperty(e.prototype,"listener",{get:function(){return this.eventListener}
1,enumerable:!1,configurable:!0}),e.prototype.fire=function(e,t){this.eventListener(e,t)},e.prototype.isOnce=function(){return this.once},e.prototype.clear=function(){},e}(),c=function(e){function t(t,n){var o=e.call(this,t)||this;o.rateMs=n;var i=function(){o.rateLimitTimout.start()};return o.rateLimitTimout=new a.Timeout(o.rateMs,function(){o.lastSeenEvent&&(o.fireSuper(o.lastSeenEvent.sender,o.lastSeenEvent.args),i(),o.lastSeenEvent=null)}),o.rateLimitingEventListener=function(e,t){if(o.shouldFireEvent()){o.fireSuper(e,t),i();return}o.lastSeenEvent={sender:e,args:t}},o}return i(t,e),t.prototype.shouldFireEvent=function(){return!this.rateLimitTimout.isActive()},t.prototype.fireSuper=function(t,n){e.prototype.fire.call(this,t,n)},t.prototype.fire=function(e,t){this.rateLimitingEventListener(e,t)},t.prototype.clear=function(){e.prototype.clear.call(this),this.rateLimitTimout.clear()},t}(l)},95703:function(e,t){var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.UIComponentLayoutOverride=void 0,(o=n||(t.UIComponentLayoutOverride=n={})).Include="include",o.Exclude="exclude"},13877:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},17326:function(e,t,n){var o,i=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.UIFactory=void 0;var r=n(8954),a=n(62306),s=n(76154),l=n(25018),c=n(77080),u=n(86665),p=n(3325),f=n(67490),d=n(45225),g=n(80868),h=n(71484),v=n(35238),y=n(23750),m=n(87754),b=n(49067),C=n(31642),S=n(97988),P=n(57456),w=n(31533),E=n(29336),O=n(59998),_=n(54212),k=n(11649),T=n(21903),x=n(62311),A=n(3434),I=n(61110),L=n(36207),M=n(8359),B=n(95306),j=n(75114),D=n(29820),U=n(53034),F=n(95112),R=n(21533),H=n(19554),V=n(89323),z=n(22982),N=n(94663),W=n(78966),G=n(89801),K=n(99493),q=n(54745),Q=n(42569),Y=n(33794),X=n(55375),J=n(72560),Z=n(27871),$=n(26696),ee=n(24371),et=n(6337),en=n(88428),eo=n(1230),ei=n(75482),er=n(52092),ea=n(64248),es=n(10654),el=n(29810),ec=n(62772),eu=n(65083),ep=n(11506),ef=n(34575);!function(e){var t;function n(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!1);var o={components:[],hidden:!0,pageTransitionAnimation:!0};void 0!=t&&(o.hideDelay=t);var i=new p.SettingsPanel(o),r=[new et.DynamicSettingsPanelItem({label:q.i18n.getLocalizer("settings.video.quality"),settingComponent:new s.VideoQualitySelectBox,container:i}),new et.DynamicSettingsPanelItem({label:q.i18n.getLocalizer("speed"),settingComponent:new l.PlaybackSpeedSelectBox,container:i}),new et.DynamicSettingsPanelItem({label:q.i18n.getLocalizer("settings.audio.track"),settingComponent:new c.AudioTrackSelectBox,container:i}),new et.DynamicSettingsPanelItem({label:q.i18n.getLocalizer("settings.audio.quality"),settingComponent:new u.AudioQualitySelectBox,container:i})],h=new $.EcoModeContainer;h.setOnToggleCallback(function(){i.getDomElement().css({width:"",height:""})}),r.unshift(h);var v=new a.SettingsPanelPage({components:r});i.addComponent(v);var y=new f.SubtitleSettingsPanelPage({settingsPanel:i,overlay:e,useDynamicSettingsPanelItem:!0}),m=new d.SettingsPanelPageOpenButton({targetPage:y,container:i,ariaLabel:q.i18n.getLocalizer("settings.subtitles"),text:q.i18n.getLocalizer("settings.subtitles.options")}),b=new g.SubtitleSelectBox,C=new et.DynamicSettingsPanelItem({label:q.i18n.getLocalizer("settings.subtitles"),backNavigationRightComponent:m,settingComponent:b,container:i});if(v.addComponent(C),i.addComponent(y),n){var S=new ee.PersistentPreferencesToggleButton,P=new eo.Label({text:q.i18n.getLocalizer("persistentPreferences"),for:S.getConfig().id});v.addComponent(new en.ToggleSettingsPanelItem({label:P,settingComponent:S}))}return i}e.buildUI=function(t,n){return void 0===n&&(n={}),new K.UIManager(t,[{ui:e.defaultLayouts.emptyState,condition:function(e){return!e.isSourceLoaded},identifier:K.UIVariantIdentifier.empty},{ui:e.defaultLayouts.smallScreenAds,condition:function(e){return e.documentWidth<800&&e.isAd&&e.adRequiresUi},identifier:K.UIVariantIdentifier.smallScreenAds},{ui:e.defaultLayouts.smallScreen,condition:function(e){return!e.isAd&&!e.adRequiresUi&&e.documentWidth<800},identifier:K.UIVariantIdentifier.smallScreen},{ui:e.defaultLayouts.tvAds,condition:function(e){return e.isTv&&e.isAd&&e.adRequiresUi},identifier:K.UIVariantIdentifier.tvAds},{ui:e.defaultLayouts.tv,condition:function(e){return e.isTv&&!e.isAd&&!e.adRequiresUi},identifier:K.UIVariantIdentifier.tv},{ui:e.defaultLayouts.ads,condition:function(e){return e.isAd&&e.adRequiresUi},identifier:K.UIVariantIdentifier.ads},{ui:function(){return e.defaultLayouts.main(n)},condition:function(e){return!e.isAd&&!e.adRequiresUi},identifier:K.UIVariantIdentifier.main}],n)},e.buildSmallScreenUI=function(t,n){return void 0===n&&(n={}),new K.UIManager(t,[{ui:e.defaultLayouts.smallScreenAds,condition:function(e){return e.isAd&&e.adRequiresUi},identifier:K.UIVariantIdentifier.smallScreenAds},{ui:e.defaultLayouts.smallScreen,condition:function(e){return!e.isAd&&!e.adRequiresUi},identifier:K.UIVariantIdentifier.smallScreen}],n)},e.buildCastReceiverUI=function(t,n){return void 0===n&&(n={}),new K.UIManager(t,[{ui:e.defaultLayouts.castReceiver,identifier:K.UIVariantIdentifier.castReceiver}],n)},e.buildTvUI=function(t,n){return void 0===n&&(n={}),new K.UIManager(t,[{ui:e.defaultLayouts.tvAds,condition:function(e){return e.isAd&&e.adRequiresUi},identifier:K.UIVariantIdentifier.tvAds},{ui:e.defaultLayouts.tv,condition:function(e){return!e.isAd&&!e.adRequiresUi},identifier:K.UIVariantIdentifier.tv}],n)},e.buildSubtitleUI=function(t,n){return void 0===n&&(n={}),new K.UIManager(t,[{ui:e.defaultLayouts.subtitle,identifier:K.UIVariantIdentifier.subtitle}],n)},(t=e.defaultLayouts||(e.defaultLayouts={})).subtitle=function(){var e=new r.SubtitleOverlay,t=new p.SettingsPanel({components:[],hidden:!0}),n=new f.SubtitleSettingsPanelPage({settingsPanel:t,overlay:e});return t.addComponent(n),new L.UIContainer({components:[e,t]})},t.main=function(e){void 0===e&&(e={});var t=new r.SubtitleOverlay,o=ec.BrowserUtils.isMobile?null:new ep.PlayerInsightsPanel({hidden:!0}),a=o?new B.PlayerContextMenu({playerInsightsPanel:o}
vendor: 7,132 bytes, line 1
1):null,s=n(t,void 0,!0===e.showPersistentPreferencesToggle&&!0!==e.disableStorageApi),l=new h.ControlBar({components:[new v.Container({components:[new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),new b.SeekBar({label:new C.SeekBarLabel}),new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]}),new v.Container({components:[new P.QuickSeekButton({seekSeconds:-10}),new S.PlaybackToggleButton,new P.QuickSeekButton({seekSeconds:10}),new w.VolumeToggleButton,new E.VolumeSlider,new O.Spacer,new ef.CaptionToggleButton,new _.PictureInPictureToggleButton,new k.AirPlayToggleButton,new T.CastToggleButton,new x.VRToggleButton,new A.SettingsToggleButton({settingsPanel:s}),new I.FullscreenToggleButton],cssClasses:["controlbar-bottom"]})]});return new L.UIContainer({components:i(i(i([t,new M.BufferingOverlay,new j.PlaybackToggleOverlay,new D.CastStatusOverlay,l,new U.TitleBar,new F.RecommendationOverlay,new R.Watermark],o?[o]:[],!0),a?[new ea.DismissClickOverlay({target:a}),a]:[],!0),[new ea.DismissClickOverlay({target:s}),s,new H.ErrorMessageOverlay],!1),hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})},t.ads=function(){var e=new z.AdControlBar({components:[new v.Container({components:[new y.AdCounterLabel,new b.SeekBar({label:new C.SeekBarLabel}),new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.RemainingTime,cssClasses:["text-right"]})],cssClasses:["ad-controlbar-top"]}),new v.Container({components:[new S.PlaybackToggleButton,new w.VolumeToggleButton,new O.Spacer,new I.FullscreenToggleButton],cssClasses:["ad-controlbar-bottom"]})]});return new L.UIContainer({components:[new M.BufferingOverlay,new V.AdClickOverlay,new j.PlaybackToggleOverlay,new er.AdStatusOverlay,e,new U.TitleBar({components:[new v.Container({components:[new es.AdMessageLabel],cssClasses:["ui-titlebar-top"]})],keepHiddenWithoutMetadata:!0}),new H.ErrorMessageOverlay],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished],cssClasses:["ui-ads"]})},t.smallScreen=function(){var e=new r.SubtitleOverlay,t=ec.BrowserUtils.isMobile?null:new ep.PlayerInsightsPanel({hidden:!0}),o=t?new B.PlayerContextMenu({playerInsightsPanel:t}):null,a=n(e,-1),s=new h.ControlBar({components:[new v.Container({components:[new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),new b.SeekBar({label:new C.SeekBarLabel}),new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]}),new v.Container({components:[new P.QuickSeekButton({seekSeconds:-10}),new S.PlaybackToggleButton,new P.QuickSeekButton({seekSeconds:10}),new w.VolumeToggleButton,new E.VolumeSlider,new O.Spacer,new ef.CaptionToggleButton,new _.PictureInPictureToggleButton,new A.SettingsToggleButton({settingsPanel:a}),new I.FullscreenToggleButton],cssClasses:["controlbar-bottom"]})]});return new L.UIContainer({components:i(i(i(i([e,new M.BufferingOverlay,new D.CastStatusOverlay,ec.BrowserUtils.isMobile?new ei.TouchControlOverlay:new j.PlaybackToggleOverlay,new F.RecommendationOverlay,s,new U.TitleBar({components:[new v.Container({components:[new N.MetadataLabel({content:N.MetadataLabelContent.Title}),new O.Spacer,new T.CastToggleButton,new k.AirPlayToggleButton,new x.VRToggleButton],cssClasses:["titlebar-row"]})]})],t?[t]:[],!0),[new ea.DismissClickOverlay({target:a}),a],!1),o?[new ea.DismissClickOverlay({target:o}),o]:[],!0),[new H.ErrorMessageOverlay],!1),cssClasses:["ui-smallscreen"],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})},t.smallScreenAds=function(){var e=new z.AdControlBar({components:[new v.Container({components:[new y.AdCounterLabel,new b.SeekBar({label:new C.SeekBarLabel}),new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.RemainingTime,cssClasses:["text-right"]})],cssClasses:["ad-controlbar-top"]}),new v.Container({components:[new S.PlaybackToggleButton,new w.VolumeToggleButton,new O.Spacer,new I.FullscreenToggleButton],cssClasses:["ad-controlbar-bottom"]})]});return new L.UIContainer({components:[new M.BufferingOverlay,new V.AdClickOverlay,new j.PlaybackToggleOverlay,e,new U.TitleBar({components:[new v.Container({components:[new es.AdMessageLabel],cssClasses:["ui-titlebar-top"]})],keepHiddenWithoutMetadata:!0}),new er.AdStatusOverlay,new H.ErrorMessageOverlay],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished],cssClasses:["ui-smallscreen","ui-ads"]})},t.castReceiver=function(){var e=new h.ControlBar({components:[new v.Container({components:[new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),new b.SeekBar({smoothPlaybackPositionUpdateIntervalMs:-1}),new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]})]});return new G.CastUIContainer({components:[new r.SubtitleOverlay,new M.BufferingOverlay,new j.PlaybackToggleOverlay,e,new U.TitleBar({keepHiddenWithoutMetadata:!0}),new R.Watermark,new H.ErrorMessageOverlay],cssClasses:["ui-cast-receiver"],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})},t.tv=function(){var e=new b.SeekBar({label:new C.SeekBarLabel}),t=new r.SubtitleOverlay,o=n(t,5e3),i=new Q.SubtitleListBox({title:q.i18n.getLocalizer("settings.subtitles")}),a=new A.SettingsToggleButton({settingsPanel:i,autoHideWhenNoActiveSettings:!0,cssClass:"ui-subtitle-list-box-toggle-button",text:q.i18n.getLocalizer("settings.subtitles")}),s=new Y.AudioTrackListBox({title:q.i18n.getLocalizer("settings.audio.track")}),l=new A.SettingsToggleButton({settingsPanel:s,autoHideWhenNoActiveSettings:!0,cssClass:"ui-audio-track-list-box-toggle-button",text:q.i18n.getLocalizer("settings.audio.track")}),c=new U.TitleBar({components:[new v.Container({components:[new N.MetadataLabel({content:N.MetadataLabelContent.Title})],cssClasses:["ui-titlebar-top"]}),new v.Container({components:[new N.MetadataLabel({content:N.MetadataLabelContent.Description})],cssClasses:["ui-titlebar-bottom"]})]}),u=new S.PlaybackToggleButton,p=new v.Container({components:[u,new O.Spacer,new ef.CaptionToggleButton,a,l,new A.SettingsToggleButton({settingsPanel:o})],cssClasses:["controlbar-bottom"]}),f=new h.ControlBar({components:[new v.Container({components:[new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),e,new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]}),p]}),d=new j.PlaybackToggleOverlay,g=new F.RecommendationOverlay,y=new L.UIContainer({components:[t,new M.BufferingOverlay,d,f,c,o,i,s,g,new H.ErrorMessageOverlay],cssClasse
1s:["ui-tv"],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]}),P=new X.SpatialNavigation(new J.RootNavigationGroup(y,d,e,new el.FocusableContainer(p,u)),new Z.SettingsPanelNavigationGroup(o,{closeOnSelect:!1}),new Z.SettingsPanelNavigationGroup(i),new Z.SettingsPanelNavigationGroup(s),new eu.RecommendationOverlayNavigationGroup(g));return{ui:y,spatialNavigation:P}},t.tvAds=function(){var e=new j.PlaybackToggleOverlay,t=new er.AdStatusOverlay,n=new L.UIContainer({components:[new M.BufferingOverlay,new V.AdClickOverlay,e,t,new z.AdControlBar({components:[new v.Container({components:[new y.AdCounterLabel,new b.SeekBar({label:new C.SeekBarLabel}),new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.RemainingTime,cssClasses:["text-right"]})],cssClasses:["ad-controlbar-top"]})]}),new U.TitleBar({components:[new v.Container({components:[new es.AdMessageLabel],cssClasses:["ui-titlebar-top"]})],keepHiddenWithoutMetadata:!0}),new H.ErrorMessageOverlay],cssClasse
1s:["ui-tv","ui-ads"],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]}),o=new X.SpatialNavigation(new J.RootNavigationGroup(n,e,t.adSkipButton));return{ui:n,spatialNavigation:o}},t.emptyState=function(){return new L.UIContainer({components:[new M.BufferingOverlay,new j.PlaybackToggleOverlay,new H.ErrorMessageOverlay],cssClasses:["ui","ui-empty-state"]})}}(o||(t.UIFactory=o={}))},99493:function(e,t,n){var o,i,r,a=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapper=t.UIInstanceManager=t.UIManager=t.UIVariantIdentifier=void 0;var c=n(36207),u=n(9524),p=n(35238),f=n(37388),d=n(92836),g=n(78966),h=n(5602),v=n(62772),y=n(48339),m=n(54745),b=n(63096),C=n(47673),S=n(64451),P=n(50074),w=n(12663),E=n(26718),O=n(4922),_=n(29672),k=n(84631),T=n(26195),x=n(35466),A=n(95703);(o=r||(t.UIVariantIdentifier=r={})).main="main",o.ads="ads",o.smallScreen="smallScreen",o.smallScreenAds="smallScreenAds",o.tv="tv",o.tvAds="tvAds",o.subtitle="subtitle",o.castReceiver="castReceiver",o.empty="empty";var I=function(){function e(e,t,n){void 0===n&&(n={});var o=this;if(this.events={onUiVariantResolve:new f.EventDispatcher,onActiveUiChanged:new f.EventDispatcher},t instanceof c.UIContainer){var i=[];i.push({ui:t}),this.uiVariants=i}else this.uiVariants=t;this.subtitleSettingsManager=new S.SubtitleSettingsManager,this.uiPreferencesManager=new w.UIPreferencesManager,this.shadowDomManager=new O.ShadowDomManager,this.player=e,this.managerPlayerWrapper=new B(e),n.metadata=n.metadata?n.metadata:{},this.config=s(s({playbackSpeedSelectionEnabled:!0,autoUiVariantResolve:!0,disableAutoHideWhenHovered:!1,enableSeekPreview:!0,enableResumeFromLastPosition:!1,enableTimestampDeepLink:!0,shadowDom:!1},n),{componentLayoutOverrides:s(s(s(s({CaptionToggleButton:A.UIComponentLayoutOverride.Exclude,EcoModeContainer:A.UIComponentLayoutOverride.Exclude,QuickSeekButton:A.UIComponentLayoutOverride.Exclude,Watermark:A.UIComponentLayoutOverride.Exclude},null!=n.ecoMode&&{EcoModeContainer:n.ecoMode?A.UIComponentLayoutOverride.Include:A.UIComponentLayoutOverride.Exclude}),null!=n.includeWatermark&&{Watermark:n.includeWatermark?A.UIComponentLayoutOverride.Include:A.UIComponentLayoutOverride.Exclude}),null!=n.playbackSpeedSelectionEnabled&&{PlaybackSpeedSelectBox:n.playbackSpeedSelectionEnabled?A.UIComponentLayoutOverride.Include:A.UIComponentLayoutOverride.Exclude}),n.componentLayoutOverrides),events:{onUpdated:new f.EventDispatcher},volumeController:new y.VolumeController(this.managerPlayerWrapper.getPlayer()),adBreakTracker:new _.AdBreakTracker(this.managerPlayerWrapper.getPlayer())}),this.componentLayoutOverrideProcessor=new x.ComponentLayoutOverrideProcessor(this.config),this.recommendationsApi={add:function(e){o.config.metadata.recommendations.push(e),o.config.events.onUpdated.dispatch(o)},remove:function(e){return h.ArrayUtils.remove(o.config.metadata.recommendations,e)===e&&(o.config.events.onUpdated.dispatch(o),!0)},list:function(){return l([],o.config.metadata.recommendations,!0)}},this.timelineMarkersApi={add:function(e){o.config.metadata.markers.push(e),o.config.events.onUpdated.dispatch(o)},remove:function(e){return h.ArrayUtils.remove(o.config.metadata.markers,e)===e&&(o.config.events.onUp
vendor: 10,361 bytes, line 1
1dated.dispatch(o),!0)},list:function(){return l([],o.config.metadata.markers,!0)}};var r=function(){var t=e.getSource()||{};o.config.metadata=s({},n.metadata);var i={metadata:{title:t.title,description:t.description,markers:t.markers,recommendations:t.recommendations}};o.config.metadata.title=i.metadata.title||n.metadata.title,o.config.metadata.description=i.metadata.description||n.metadata.description,o.config.metadata.markers=l([],i.metadata.markers||n.metadata.markers||[],!0),o.config.metadata.recommendations=l([],i.metadata.recommendations||n.metadata.recommendations||[],!0),P.StorageUtils.setStorageApiDisabled(n)};r(),this.config.localization&&m.i18n.setConfig(this.config.localization),this.subtitleSettingsManager.initialize(),!0!==n.disableStorageApi&&this.uiPreferencesManager.configure(this.player,!0===n.enablePersistentPreferences,!0===n.showPersistentPreferencesToggle);var a=this.managerPlayerWrapper.getPlayer(),p=!0===this.config.enableTimestampDeepLink?E.TimestampLinkUtils.parseTimestampFromUrl():null;if(!0===this.config.enableResumeFromLastPosition&&(this.resumePositionTracker=new k.ResumePositionTracker(a)),null!==p||void 0!==this.resumePositionTracker){var d=!1,v=function(){var e,t;if(a.isLive()){null!==p&&(d=!0);return}if(null===p||d){var n=null!==(t=null===(e=o.resumePositionTracker)||void 0===e?void 0:e.getStoredPosition())&&void 0!==t?t:null;null!==n&&a.seek(n,"ui")}else d=!0,p>0&&a.seek(p,"ui")};a.on(this.player.exports.PlayerEvent.SourceLoaded,v),g.PlayerUtils.getState(a)===g.PlayerUtils.PlayerState.Prepared&&v()}var T=function(){r(),o.config.events.onUpdated.dispatch(o)};a.on(this.player.exports.PlayerEvent.SourceLoaded,T),(0,C.isMobileV3PlayerAPI)(a)&&a.on(C.MobileV3PlayerEvent.PlaylistTransition,T),n.container?this.uiContainerElement=(n.container,HTMLElement,new u.DOM(n.container)):this.uiContainerElement=new u.DOM(e.getContainer()),(!0==this.config.shadowDom||this.config.shadowDom&&this.config.shadowDom.enabled)&&(O.ShadowDomManager.isShadowDomSupported()?this.shadowDomManager.initialize(this.uiContainerElement,!0===this.config.shadowDom?{enabled:!0}:this.config.shadowDom):console.warn("Shadow DOM is not supported in this environment. Falling back to classic UI rendering.")),this.uiInstanceManagers=[];for(var I=[],L=0,j=this.uiVariants;L<j.length;L++){var D=j[L];null==D.condition&&I.push(D),this.uiInstanceManagers.push(new M(e,D,this.config,this.subtitleSettingsManager,this.uiPreferencesManager,this.uiWrapperElement))}if(I.length>1)throw Error("Too many UIs without a condition: You cannot have more than one default UI");if(I.length>0&&I[0]!==this.uiVariants[this.uiVariants.length-1])throw Error("Invalid UI variant order: the default UI (without condition) must be at the end of the list");var U=null,F=null!=e.getSource();e.on(e.exports.PlayerEvent.SourceLoaded,function(){F=!0}),e.on(e.exports.PlayerEvent.SourceUnloaded,function(){F=!1});var R=function(t){if(null!=t)switch(t.type){case e.exports.PlayerEvent.AdStarted:U=t;break;case e.exports.PlayerEvent.AdBreakFinished:U=null,o.config.events.onUpdated.dispatch(o);break;case e.exports.PlayerEvent.SourceLoaded:break;case e.exports.PlayerEvent.SourceUnloaded:U=null}var n=null!=U,i=!1;if(n){var r=U.ad;r.isLinear&&(i=r.uiConfig&&r.uiConfig.requestsUi||!1)}i&&o.config.events.onUpdated.dispatch(o),o.resolveUiVariant({isAd:n,adRequiresUi:i,isSourceLoaded:F},function(e){e.isAd&&o.currentUi.getWrappedPlayer().fireEventInUI(o.player.exports.PlayerEvent.AdStarted,U)})};this.config.autoUiVariantResolve&&(this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.SourceLoaded,R),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.SourceUnloaded,R),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Play,R),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Paused,R),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Playing,R),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.AdStarted,R),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.AdBreakFinished,R),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.PlayerResized,R),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.ViewModeChanged,R)),this.focusVisibilityTracker=new b.FocusVisibilityTracker("bmpui",this.uiWrapperElement),R(null)}return e.localize=function(e){return m.i18n.getLocalizer(e)},e.setLocalizationConfig=function(e){m.i18n.setConfig(e)},e.prototype.getSubtitleSettingsManager=function(){return this.subtitleSettingsManager},e.prototype.getUIPreferencesManager=function(){return this.uiPreferencesManager},e.prototype.getConfig=function(){return this.config},e.prototype.getUiVariants=function(){return this.uiVariants},e.prototype.switchToUiVariant=function(e,t){var n=this.uiVariants.indexOf(e),o=this.uiInstanceManagers[n];this.switchToUiInstance(o,t)},e.prototype.switchToUiInstance=function(e,t){var n=this.currentUi;if(e!==this.currentUi){if(this.currentUi){var o=this.currentUi.resolveUI();this.currentUi.onInactive.dispatch(o),o.hide()}if(this.currentUi=e,null!=this.currentUi){var i=this.currentUi.resolveUI();this.currentUi.isConfigured()||(this.addUi(this.currentUi),i.isHidden()||i.hide()),t&&t(),i.show(),this.currentUi.onActive.dispatch(i),this.events.onActiveUiChanged.dispatch(this,{previousUi:n,currentUi:e})}}},e.prototype.resolveUiVariant=function(e,t){void 0===e&&(e={});var n={isAd:!1,adRequiresUi:!1,isFullscreen:this.player.getViewMode()===this.player.exports.ViewMode.Fullscreen,isMobile:v.BrowserUtils.isMobile,isTv:v.BrowserUtils.isTv,isPlaying:this.player.isPlaying(),isSourceLoaded:!1,width:this.uiContainerElement.width(),documentWidth:document.body.clientWidth},o=s(s({},n),e);this.events.onUiVariantResolve.dispatch(this,o);for(var i=null,r=0,a=this.uiInstanceManagers;r<a.length;r++){var l=a[r],c=null==l.conditionResolver||!0===l.conditionResolver(o);null==i&&c?i=l:l.isUIResolved()&&l.getUI().hide()}this.switchToUiInstance(i,function(){t&&t(o)})},Object.defineProperty(e.prototype,"uiWrapperElement",{get:function(){var e=this.shadowDomManager.getShadowRoot();return void 0!=e?new u.DOM(e):this.uiContainerElement},enumerable:!1,configurable:!0}),e.prototype.addUi=function(e){var t=e.resolveUI();void 0!==e.variantIdentifier&&this.componentLayoutOverrideProcessor.process(t,e.variantIdentifier);var n=t.getDomElement(),o=e.getWrappedPlayer();e.configureControls(),this.uiWrapperElement.append(n),o.getSource()&&this.config.events.onUpdated.dispatch(this),window.requestAnimationFrame?requestAnimationFrame(function(){e.onConfigured.dispatch(e.getUI())}):setTimeout(function(){e.onConfigured.dispatch(e.getUI())},0)},e.prototype.releaseUi=function(e){if(e.releaseControls(),e.isUIResolved()){var t=e.getUI();t.hasDomElement()&&t.getDomElement().remove(),e.clearEventHandlers()}},e.prototype.release=function(){var e;null===(e=this.resumePositionTracker)||void 0===e||e.release(),this.config.adBreakTracker.release(),this.currentUi&&(this.currentUi.onInactive.dispatch(this.currentUi.getUI()),this.currentUi=null);for(var t=0,n=this.uiInstanceManagers;t<n.length;t++){var o=n[t];this.releaseUi(o)}this.managerPlayerWrapper.clearEventHandlers(),this.uiPreferencesManager.release(),this.focusVisibilityTracker.release(),this.shadowDomManager.release()},Object.defineProperty(e.prototype,"onUiVariantResolve",{get:function(){return this.events.onUiVariantResolve},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onActiveUiChanged",{get:function(){return this.events.onActiveUiChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeUi",{get:function(){return this.currentUi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"recommendations",{get:function(){return this.recommendationsApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timelineMarkers",{get:function(){return this.timelineMarkersApi},enumerable:!1,configurable:!0}),e.prototype.getTimelineMarkers=function(){return this.timelineMarkers.list()},e.prototype.addTimelineMarker=function(e){this.timelineMarkers.add(e)},e.prototype.removeTimelineMarker=function(e){return this.timelineMarkers.remove(e)},e}();t.UIManager=I;var L=function(){function e(e,t,n,o,i,r){if(this.events={onConfigured:new f.EventDispatcher,onActive:new f.EventDispatcher,onInactive:new f.EventDispatcher,onSeek:new f.EventDispatcher,onSeekPreview:new f.EventDispatcher,onSeeked:new f.EventDispatcher,onComponentShow:new f.EventDispatcher,onComponentHide:new f.EventDispatcher,onComponentViewModeChanged:new f.EventDispatcher,onControlsShow:new f.EventDispatcher,onPreviewControlsHide:new f.EventDispatcher,onControlsHide:new f.EventDispatcher,onRelease:new f.EventDispatcher,onBufferingShow:new f.EventDispatcher,onBufferingHide:new f.EventDispatcher},"function"==typeof t.ui&&t.spatialNavigation)throw Error("Lazy UI variants must return spatialNavigation from the ui factory");this.playerWrapper=new B(e),this.uiVariant=t,this.config=n,this.subtitleSettingsManager=o,this.uiPreferencesManager=i,this.uiWrapperElement=r,"function"!=typeof t.ui&&(this.uiContainer=t.ui,this.spatialNavigation=t.spatialNavigation)}return e.prototype.getSubtitleSettingsManager=function(){return this.subtitleSettingsManager},e.prototype.getUIPreferencesManager=function(){return this.uiPreferencesManager},e.prototype.getConfig=function(){return this.config},Object.defineProperty(e.prototype,"conditionResolver",{get:function(){return this.uiVariant.condition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variantIdentifier",{get:function(){return this.uiVariant.identifier},enumerable:!1,configurable:!0}),e.prototype.resolveUI=function(){if(this.uiContainer)return this.uiContainer;if("function"==typeof this.uiVariant.ui){var e=T.ComponentConfigManager.run(this.config.componentConfigOverrides,this.uiVariant.identifier,this.uiVariant.ui);e instanceof c.UIContainer?this.uiContainer=e:(this.uiContainer=e.ui,this.spatialNavigation=e.spatialNavigation)}else this.uiContainer=this.uiVariant.ui;return this.uiContainer},e.prototype.getUI=function(){return this.resolveUI()},e.prototype.isUIResolved=function(){return null!=this.uiContainer},e.prototype.getPlayer=function(){return this.playerWrapper.getPlayer()}
1,Object.defineProperty(e.prototype,"onConfigured",{get:function(){return this.events.onConfigured},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onActive",{get:function(){return this.events.onActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInactive",{get:function(){return this.events.onInactive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeek",{get:function(){return this.events.onSeek},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeekPreview",{get:function(){return this.events.onSeekPreview},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeeked",{get:function(){return this.events.onSeeked},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComponentShow",{get:function(){return this.events.onComponentShow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComponentHide",{get:function(){return this.events.onComponentHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onControlsShow",{get:function(){return this.events.onControlsShow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onPreviewControlsHide",{get:function(){return this.events.onPreviewControlsHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onControlsHide",{get:function(){return this.events.onControlsHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBufferingShow",{get:function(){return this.events.onBufferingShow}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBufferingHide",{get:function(){return this.events.onBufferingHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRelease",{get:function(){return this.events.onRelease},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComponentViewModeChanged",{get:function(){return this.events.onComponentViewModeChanged},enumerable:!1,configurable:!0}),e.prototype.clearEventHandlers=function(){this.playerWrapper.clearEventHandlers();var e=this.events;for(var t in e)e[t].unsubscribeAll()},e}();t.UIInstanceManager=L;var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getWrappedPlayer=function(){return this.getPlayer()},t.prototype.configureControls=function(){this.configureControlsTree(this.getUI()),this.configured=!0},t.prototype.isConfigured=function(){return this.configured},t.prototype.configureControlsTree=function(e){var t=this,n=[];d.UIUtils.traverseTree(e,function(e){for(var o=0;o<n.length;o++)if(n[o]===e)throw console&&console.error("Circular reference in UI tree",e),Error("Circular reference in UI tree: "+e.constructor.name);e.initialize(),e.configure(t.getPlayer(),t),n.push(e)})},t.prototype.releaseControls=function(){var e;this.configured&&(this.onRelease.dispatch(this.getUI()),this.releaseControlsTree(this.getUI()),this.configured=!1),null===(e=this.spatialNavigation)||void 0===e||e.release(),this.released=!0},t.prototype.isReleased=function(){return this.released},t.prototype.releaseControlsTree=function(e){if(e.release(),e instanceof p.Container)for(var t=0,n=e.getComponents();t<n.length;t++){var o=n[t];this.releaseControlsTree(o)}},t.prototype.clearEventHandlers=function(){e.prototype.clearEventHandlers.call(this)},t}(L),B=function(){function e(e){var t=this;this.eventHandlers={},this.player=e;for(var n=l(["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf({})),!0),o=(function(e){for(var t=[];e;){var n=Object.getOwnPropertyNames(e).filter(function(e){return -1===t.indexOf(e)});t=t.concat(n),e=Object.getPrototypeOf(e)}return t})(e).filter(function(e){return -1===n.indexOf(e)}),i=[],r=[],a=0;a<o.length;a++){var s=o[a];"function"==typeof e[s]?i.push(s):r.push(s)}for(var c={},u=function(t){c[t]=function(){return e[t].apply(e,arguments)}},p=0;p<i.length;p++)u(i[p]);for(var f=function(t){var n=function(e){for(;e;){var n=Object.getOwnPropertyDescriptor(e,t);if(n)return n;e=Object.getPrototypeOf(e)}}(e);n&&(n.get||n.set)?Object.defineProperty(c,t,{get:function(){return n.get.call(e)},set:function(t){return n.set.call(e,t)}}):c[t]=e[t]},d=0;d<r.length;d++)f(r[d]);c.on=function(n,o){return e.on(n,o),t.eventHandlers[n]||(t.eventHandlers[n]=[]),t.eventHandlers[n].push(o),c},c.off=function(n,o){return e.off(n,o),t.eventHandlers[n]&&h.ArrayUtils.remove(t.eventHandlers[n],o),c},c.fireEventInUI=function(e,n){if(t.eventHandlers[e])for(var o=Object.assign({},{timestamp:Date.now(),type:e,uiSourced:!0},n),i=0,r=t.eventHandlers[e];i<r.length;i++)(0,r[i])(o)},this.wrapper=c}return e.prototype.getPlayer=function(){return this.wrapper},e.prototype.clearEventHandlers=function(){try{this.player.getSource()}catch(e){e instanceof this.player.exports.PlayerAPINotAvailableError&&(this.eventHandlers={})}for(var e in this.eventHandlers)for(var t=0,n=this.eventHandlers[e];t<n.length;t++){var o=n[t];this.player.off(e,o)}},e}();t.PlayerWrapper=B},89801:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CastUIContainer=void 0;var r=n(36207),a=n(9110),s=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=!1;this.castUiHideTimeout=new a.Timeout(i.hideDelay,function(){n.onControlsHide.dispatch(o),r=!1});var s=function(){r||(n.onControlsShow.dispatch(o),r=!0)},l=function(){s(),o.castUiHideTimeout.clear()},c=function(){s(),o.castUiHideTimeout.start()};t.on(t.exports.PlayerEvent.Play,c),t.on(t.exports.PlayerEvent.Paused,l),t.on(t.exports.PlayerEvent.Seek,l),t.on(t.exports.PlayerEvent.Seeked,function(){t.isPlaying()?c():l()}
vendor: 9,122 bytes, line 1
1),n.getConfig().events.onUpdated.subscribe(c)},t.prototype.release=function(){var t;e.prototype.release.call(this),null===(t=this.castUiHideTimeout)||void 0===t||t.clear()},t}(r.UIContainer);t.CastUIContainer=s},30040:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Component=t.ViewMode=void 0;var o,i,r=n(41730),a=n(9524),s=n(37388),l=n(54745),c=n(26195);(o=i||(t.ViewMode=i={})).Persistent="persistent",o.Temporary="temporary";var u=function(){function e(e){void 0===e&&(e={});var t=this;this.languageChangedHandler=function(){return t.onLanguageChanged()},this.componentEvents={onShow:new s.EventDispatcher,onHide:new s.EventDispatcher,onViewModeChanged:new s.EventDispatcher,onHoverChanged:new s.EventDispatcher,onEnabled:new s.EventDispatcher,onDisabled:new s.EventDispatcher,onFocusChanged:new s.EventDispatcher},Object.assign(e,c.ComponentConfigManager.getConfigFor(this.constructor)),this.config=this.mergeConfig(e,{tag:"div",id:"bmpui-id-"+r.Guid.next(),cssPrefix:"bmpui",cssClass:"ui-component",cssClasses:[],hidden:!1,disabled:!1,tabIndex:-1},{}),this.viewMode=i.Temporary,l.i18n.getConfig().events.onLanguageChanged.subscribe(this.languageChangedHandler)}return e.prototype.initialize=function(){this.hidden=this.config.hidden,this.disabled=this.config.disabled,this.isHidden()&&(this.hidden=!1,this.hide()),this.isDisabled()&&(this.disabled=!1,this.disable())},e.prototype.configure=function(e,t){var n=this;this.onShow.subscribe(function(){return t.onComponentShow.dispatch(n)}),this.onHide.subscribe(function(){return t.onComponentHide.dispatch(n)}),this.onViewModeChanged.subscribe(function(e,o){return t.onComponentViewModeChanged.dispatch(n,o)}),this.getDomElement().on("mouseenter",function(){return n.onHoverChangedEvent(!0)}),this.getDomElement().on("mouseleave",function(){return n.onHoverChangedEvent(!1)}),this.getDomElement().on("focusin",function(){return n.onFocusChangedEvent(!0)}),this.getDomElement().on("focusout",function(){return n.onFocusChangedEvent(!1)})},e.prototype.release=function(){l.i18n.getConfig().events.onLanguageChanged.unsubscribe(this.languageChangedHandler)},e.prototype.onLanguageChanged=function(){},e.prototype.toDomElement=function(){var e=new a.DOM(this.config.tag,{id:this.config.id,class:this.getCssClasses(),role:this.config.role},this);return"number"==typeof this.config.tabIndex&&e.attr("tabindex",this.config.tabIndex.toString()),e},e.prototype.getDomElement=function(){return this.element||(this.element=this.toDomElement()),this.element},e.prototype.hasDomElement=function(){return!!this.element},e.prototype.setAriaLabel=function(e){this.setAriaAttr("label",l.i18n.performLocalization(e))},e.prototype.setAriaAttr=function(e,t){this.getDomElement().attr("aria-".concat(e),t)},e.prototype.mergeConfig=function(e,t,n){return Object.assign({},n,t,e)},e.prototype.getCssClasses=function(){var e=this,t=[this.config.cssClass].concat(this.config.cssClasses);return(t=t.map(function(t){return e.prefixCss(t)})).join(" ").trim()},e.prototype.prefixCss=function(e){return this.config.cssPrefix+"-"+e},e.prototype.getConfig=function(){return this.config},e.prototype.hide=function(){this.hidden||(this.hidden=!0,this.getDomElement().addClass(this.prefixCss(e.CLASS_HIDDEN)),this.onHideEvent())},e.prototype.show=function(){this.hidden&&(this.getDomElement().removeClass(this.prefixCss(e.CLASS_HIDDEN)),this.hidden=!1,this.onShowEvent())},e.prototype.isHidden=function(){return this.hidden},e.prototype.isShown=function(){return!this.isHidden()},e.prototype.toggleHidden=function(){this.isHidden()?this.show():this.hide()},e.prototype.disable=function(){this.disabled||(this.disabled=!0,this.getDomElement().addClass(this.prefixCss(e.CLASS_DISABLED)),this.onDisabledEvent())},e.prototype.enable=function(){this.disabled&&(this.getDomElement().removeClass(this.prefixCss(e.CLASS_DISABLED)),this.disabled=!1,this.onEnabledEvent())},e.prototype.isDisabled=function(){return this.disabled},e.prototype.isEnabled=function(){return!this.isDisabled()},e.prototype.isHovered=function(){return this.hovered},e.prototype.onShowEvent=function(){this.componentEvents.onShow.dispatch(this)},e.prototype.onHideEvent=function(){this.componentEvents.onHide.dispatch(this)},e.prototype.onEnabledEvent=function(){this.componentEvents.onEnabled.dispatch(this)},e.prototype.onDisabledEvent=function(){this.componentEvents.onDisabled.dispatch(this)},e.prototype.onViewModeChangedEvent=function(e){this.viewMode!==e&&(this.viewMode=e,this.componentEvents.onViewModeChanged.dispatch(this,{mode:e}))},e.prototype.onHoverChangedEvent=function(e){this.hovered=e,this.componentEvents.onHoverChanged.dispatch(this,{hovered:e})},e.prototype.onFocusChangedEvent=function(e){this.componentEvents.onFocusChanged.dispatch(this,{focused:e})},Object.defineProperty(e.prototype,"onShow",{get:function(){return this.componentEvents.onShow.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHide",{get:function(){return this.componentEvents.onHide.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onEnabled",{get:function(){return this.componentEvents.onEnabled.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDisabled",{get:function(){return this.componentEvents.onDisabled.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHoverChanged",{get:function(){return this.componentEvents.onHoverChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onViewModeChanged",{get:function(){return this.componentEvents.onViewModeChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onFocusedChanged",{get:function(){return this.componentEvents.onFocusChanged.getEvent()},enumerable:!1,configurable:!0}),e.CLASS_HIDDEN="hidden",e.CLASS_DISABLED="disabled",e}();t.Component=u},35238:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;var r=n(30040),a=n(9524),s=n(5602),l=n(54745),c=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-container",components:[]},n.config),n.componentsToAppend=[],n.componentsToPrepend=[],n.componentsToRemove=[],n.componentsInPersistentViewMode=0,n}return i(t,e),t.prototype.addComponent=function(e){this.config.components.push(e),this.componentsToAppend.push(e)},t.prototype.prependComponent=function(e){this.config.components.unshift(e),this.componentsToPrepend.push(e)},t.prototype.removeComponent=function(e){return null!=s.ArrayUtils.remove(this.config.components,e)&&(this.componentsToRemove.push(e),!0)},t.prototype.getComponents=function(){return this.config.components},t.prototype.removeComponents=function(){for(var e=0,t=this.getComponents().slice();e<t.length;e++){var n=t[e];this.removeComponent(n)}},t.prototype.updateComponents=function(){for(var e;void 0!==(e=this.componentsToRemove.shift());)e.getDomElement().remove();for(;void 0!==(e=this.componentsToAppend.shift());)this.innerContainerElement.append(e.getDomElement());for(;void 0!==(e=this.componentsToPrepend.shift());)this.innerContainerElement.prepend(e.getDomElement())},t.prototype.toDomElement=function(){var e=new a.DOM(this.config.tag,{id:this.config.id,class:this.getCssClasses(),role:this.config.role,"aria-label":l.i18n.performLocalization(this.config.ariaLabel)},this);"number"==typeof this.config.tabIndex&&e.attr("tabindex",this.config.tabIndex.toString());var t=new a.DOM(this.config.tag,{class:this.prefixCss("container-wrapper")});this.innerContainerElement=t;for(var n=0,o=this.config.components;n<o.length;n++){var i=o[n];this.componentsToAppend.push(i)}return this.updateComponents(),e.append(t),e},t.prototype.suspendHideTimeout=function(){},t.prototype.resumeHideTimeout=function(){},t.prototype.trackComponentViewMode=function(e){e===r.ViewMode.Persistent?this.componentsInPersistentViewMode++:e===r.ViewMode.Temporary&&(this.componentsInPersistentViewMode=Math.max(this.componentsInPersistentViewMode-1,0)),this.componentsInPersistentViewMode>0?this.suspendHideTimeout():this.resumeHideTimeout()},t}(r.Component);t.Container=c},71484:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.ControlBar=void 0;var r=n(35238),a=n(92836),s=n(59998),l=n(54745),c=n(62772),u=n(3325),p=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-controlbar",hidden:!0,role:"region",ariaLabel:l.i18n.getLocalizer("controlBar")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=0,l=!1;n.getConfig().disableAutoHideWhenHovered&&!c.BrowserUtils.isTouchSupported&&a.UIUtils.traverseTree(this,function(e){e instanceof r.Container||e instanceof s.Spacer||e.onHoverChanged.subscribe(function(e,t){t.hovered?i++:i--})}),c.BrowserUtils.isMobile&&(n.onComponentShow.subscribe(function(e){e instanceof u.SettingsPanel&&(l=!0)}),n.onComponentHide.subscribe(function(e){e instanceof u.SettingsPanel&&(l=!1)})),n.onControlsShow.subscribe(function(){o.show()}),n.onPreviewControlsHide.subscribe(function(e,t){t.cancel=t.cancel||i>0||l}),n.onControlsHide.subscribe(function(){o.hide()})},t}(r.Container);t.ControlBar=p},58041:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.prefixCss=function(e){return r.instance().prefixCss(e)};var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.instance=function(){return t._instance||(t._instance=new t),t._instance},t.prototype.prefixCss=function(t){return e.prototype.prefixCss.call(this,t)},t}(n(30040).Component)},26696:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EcoModeContainer=void 0;var r=n(54745),a=n(35238),s=n(35918),l=n(1230),c=n(14394),u=n(88428),p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.savedEmissons=0;
1var o=new s.EcoModeToggleButton,i=new l.Label({text:r.i18n.getLocalizer("ecoMode.title"),for:o.getConfig().id,id:"ecomodelabel"});return n.emissionsSavedLabel=new l.Label({text:"".concat(n.savedEmissons.toFixed(4)," gCO2"),cssClass:"ui-label-savedEnergy"}),n.ecoModeToggleButtonItem=new u.ToggleSettingsPanelItem({label:i,settingComponent:o}),n.ecoModeSavedEmissionsItem=new c.SettingsPanelItem({label:"Saved Emissions",settingComponent:n.emissionsSavedLabel,hidden:!0}),n.addComponent(n.ecoModeToggleButtonItem),n.addComponent(n.ecoModeSavedEmissionsItem),o.onToggleOn.subscribe(function(){n.ecoModeSavedEmissionsItem.show(),n.onToggleCallback()}),o.onToggleOff.subscribe(function(){n.ecoModeSavedEmissionsItem.hide(),n.onToggleCallback()}),n}return i(t,e),t.prototype.setOnToggleCallback=function(e){this.onToggleCallback=e},t.prototype.configure=function(e){var t=this;e.on(e.exports.PlayerEvent.SegmentPlayback,function(n){if(n.mimeType.includes("video")){var o=n.mediaInfo,i=o.height,r=o.width,a=o.bitrate,s=o.frameRate,l=t.getMaxQualityAvailable(e.getAvailableVideoQualities()),c=l.height,u=l.bitrate,p=l.width,f=t.calculateEnergyConsumption(s,i,r,a,n.duration),d=t.calculateEnergyConsumption(s,c,p,u,n.duration);t.ecoModeSavedEmissionsItem.isShown()&&t.updateSavedEmissions(f,d,t.emissionsSavedLabel)}})},t.prototype.updateSavedEmissions=function(e,t,n){this.currentEnergyEmission=475*e,this.savedEmissons+=475*t-this.currentEnergyEmission,n.setText(this.savedEmissons.toFixed(4)+" gCO2")},t.prototype.calculateEnergyConsumption=function(e,t,n,o,i){return(.035*e+576e-11*t*n+o/1e3*(697e-8+324e-7)+4.16+8.52+1.15)*i/36e5},t.prototype.getMaxQualityAvailable=function(e){var t=e.sort(function(e,t){return e.bitrate-t.bitrate});return t[t.length-1]},t}(a.Container);t.EcoModeContainer=p},29745:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=void 0;var r=n(30040),a=n(9524),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-icon"},n.config),n}return i(t,e),t.prototype.toDomElement=function(){return new a.DOM("div",{class:this.getCssClasses()})},t}(r.Component);t.Icon=s},85728:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.RecommendationItem=void 0;var a=n(30040),s=n(37388),l=n(9524),c=n(1230),u=n(74039),p=function(e){function t(t){var n=e.call(this,t)||this;return n.events={onClick:new s.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-recommendation-item",recommendationConfig:null,tabIndex:0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),f(this.config.recommendationConfig.resource)||this.onClick.subscribe(function(){t.load(o.config.recommendationConfig.resource),t.play()})},t.prototype.toDomElement=function(){var e,t,n=this,o=this.config.recommendationConfig,i=o.resource,a={};f(i)?(e="a",a={href:i.url},t=i.thumbnail):(e="button",t=i.poster);var s=new l.DOM(e,r(r({id:this.config.id,class:this.getCssClasse
1s()},a),{tabindex:this.config.tabIndex.toString()}),this);t&&s.css({"background-image":'url("'.concat(t,'")')});var p=new l.DOM("div",{class:this.prefixCss("title-container")},this),d=new c.Label({text:o.title,cssClass:"title"});if(p.append(d.getDomElement()),s.append(p),null!=o.duration){var g=new c.Label({text:o.duration?u.StringUtils.secondsToTime(o.duration):"",cssClass:"duration"});s.append(g.getDomElement())}return f(i)||s.on("click",function(e){e.preventDefault(),e.stopPropagation(),n.onClickEvent()}),s},t.prototype.onClickEvent=function(){this.events.onClick.dispatch(this)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.events.onClick.getEvent()},enumerable:!1,configurable:!0}),t}(a.Component);function f(e){return"url"in e}t.RecommendationItem=p},59998:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Spacer=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-spacer"},n.config),n}return i(t,e),t.prototype.onShowEvent=function(){},t.prototype.onHideEvent=function(){},t.prototype.onHoverChangedEvent=function(e){},t}(n(30040).Component);t.Spacer=r},53034:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TitleBar=void 0;var r=n(35238),a=n(94663),s=n(1230),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-titlebar",hidden:!0,keepHiddenWithoutMetadata:!1,components:[new r.Container({components:[new a.MetadataLabel({content:a.MetadataLabelContent.Title})],cssClasses:["titlebar-row"]}),new r.Container({components:[new a.MetadataLabel({content:a.MetadataLabelContent.Description})],cssClasses:["titlebar-row"]})]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=!this.isHidden(),a=!0,s=function(){a=o.hasNonEmptyComponents(o.getComponents()),o.isShown()?i.keepHiddenWithoutMetadata&&!a&&o.hide():r&&(!i.keepHiddenWithoutMetadata||a)&&o.show()};this.subscribeToTextChanges(this.getComponents(),s),n.onControlsShow.subscribe(function(){r=!0,(!i.keepHiddenWithoutMetadata||a)&&o.show()}),n.onControlsHide.subscribe(function(){r=!1,o.hide()}),s()},t.prototype.hasNonEmptyComponents=function(e){for(var t=0;t<e.length;t++){var n=e[t];if("object"==typeof n&&null!==n&&"function"==typeof n.isEmpty&&!n.isEmpty()||n instanceof r.Container&&this.hasNonEmptyComponents(n.getComponents()))return!0}return!1},t.prototype.subscribeToTextChanges=function(e,t){for(var n=0;n<e.length;n++){var o=e[n];o instanceof s.Label&&o.onTextChanged.subscribe(t),o instanceof r.Container&&this.subscribeToTextChanges(o.getComponents(),t)}},t}(r.Container);t.TitleBar=l},39038:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.TvNoiseCanvas=void 0;var r=n(30040),a=n(9524),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.canvasWidth=160,n.canvasHeight=90,n.interferenceHeight=50,n.lastFrameUpdate=0,n.frameInterval=60,n.useAnimationFrame=!!window.requestAnimationFrame,n.config=n.mergeConfig(t,{cssClass:"ui-tvnoisecanvas"},n.config),n}return i(t,e),t.prototype.toDomElement=function(){return this.canvas=new a.DOM("canvas",{class:this.getCssClasses()},this)},t.prototype.start=function(){this.canvasElement=this.canvas.get(0),this.canvasContext=this.canvasElement.getContext("2d"),this.noiseAnimationWindowPos=-this.canvasHeight,this.lastFrameUpdate=0,this.canvasElement.width=this.canvasWidth,this.canvasElement.height=this.canvasHeight,this.renderFrame()},t.prototype.stop=function(){this.useAnimationFrame?cancelAnimationFrame(this.frameUpdateHandlerId):clearTimeout(this.frameUpdateHandlerId)},t.prototype.renderFrame=function(){if(this.lastFrameUpdate+this.frameInterval>new Date().getTime()){this.scheduleNextRender();return}for(var e,t=this.canvasWidth,n=this.canvasHeight,o=this.canvasContext.createImageData(t,n),i=0;i<n;i++)for(var r=0;r<t;r++)e=t*i*4+4*r,o.data[e]=255*Math.random(),(i<this.noiseAnimationWindowPos||i>this.noiseAnimationWindowPos+this.interferenceHeight)&&(o.data[e]*=.85),o.data[e+1]=o.data[e],o.data[e+2]=o.data[e],o.data[e+3]=50;this.canvasContext.putImageData(o,0,0),this.lastFrameUpdate=new Date().getTime(),this.noiseAnimationWindowPos+=7,this.noiseAnimationWindowPos>n&&(this.noiseAnimationWindowPos=-n),this.scheduleNextRender()},t.prototype.scheduleNextRender=function(){this.useAnimationFrame?this.frameUpdateHandlerId=window.requestAnimationFrame(this.renderFrame.bind(this)):this.frameUpdateHandlerId=window.setTimeout(this.renderFrame.bind(this),this.frameInterval)},t}(r.Component);t.TvNoiseCanvas=s},36207:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UIContainer=void 0;var r=n(35238),a=n(9524),s=n(9110),l=n(78966),c=n(37388),u=n(54745),p=n(12070),f=n(75482),d=n(3325),g=function(e){function t(t){var n=e.call(this,t)||this;return n.hideUi=function(){},n.showUi=function(){},n.toggleUiShown=function(){},n.config=n.mergeConfig(t,{cssClass:"ui-uicontainer",role:"region",ariaLabel:u.i18n.getLocalizer("player"),hideDelay:2e3,hideImmediatelyOnMouseLeave:!0,deferUiHideWhileSettingsOpen:!0},n.config),n.playerStateChange=new c.EventDispatcher,n.hidingPrevented=function(){return!1},n}return i(t,e),t.prototype.configure=function(t,n){var o=this.getConfig();o.userInteractionEventSource?this.userInteractionEventSource=new a.DOM(o.userInteractionEventSource):this.userInteractionEventSource=this.getDomElement(),e.prototype.configure.call(this,t,n),this.configureUIShowHide(t,n),this.configurePlayerStates(t,n)},t.prototype.configureUIShowHide=function(e,n){var o,i=this,r=this.getConfig(),a=!1,l=!1,c=!1;if(n.onConfigured.subscribe(function(){a?n.onControlsShow.dispatch(i):n.onControlsHide.dispatch(i)}),-1===r.hideDelay){a=!0;return}var u=!1,g=!0;r.deferUiHideWhileSettingsOpen&&(n.onComponentShow.subscribe(function(e){e instanceof d.SettingsPanel&&(l=!0)}),n.onComponentHide.subscribe(function(e){e instanceof d.SettingsPanel&&(l=!1,c&&(i.hideUi(!0),c=!1))})),this.hidingPrevented=function(){return r.hidePlayerStateExceptions&&r.hidePlayerStateExceptions.indexOf(o)>-1},this.showUi=function(){c=!1,a||(n.onControlsShow.dispatch(i),a=!0),u||e.isCasting()||i.hidingPrevented()||i.uiHideTimeout.start()},this.hideUi=function(t){if(void 0===t&&(t=!1),a&&!e.isCasting()){if(t){n.onControlsHide.dispatch(i),a=!1;return}if(r.deferUiHideWhileSettingsOpen&&l){c=!0;return}var o={};
1n.onPreviewControlsHide.dispatch(i,o),o.cancel?i.showUi():(n.onControlsHide.dispatch(i),a=!1)}},this.toggleUiShown=function(){a?i.hideUi():i.showUi()},this.uiHideTimeout=new s.Timeout(r.hideDelay,this.hideUi);var h=function(e){return!(e.target.component instanceof f.TouchControlOverlay)};this.userInteractionEvents=[{name:"touchend",handler:function(n){if(h(n)&&!a){if(g&&!e.isPlaying())g=!1;else{var o,r;(r=(o=function(e){return!e||e===i.userInteractionEventSource.get(0)||e.component instanceof t?null:e.component&&e.component instanceof p.Button||e.component instanceof f.TouchControlOverlay?e.component:o(e.parentElement)})(n.target))&&r.getConfig().acceptsTouchWithUiHidden||n.preventDefault()}i.showUi()}}},{name:"mouseenter",handler:function(e){h(e)&&i.showUi()}},{name:"mousemove",handler:function(e){h(e)&&i.showUi()}},{name:"focusin",handler:function(e){h(e)&&i.showUi()}},{name:"keydown",handler:function(e){h(e)&&i.showUi()}},{name:"mouseleave",handler:function(){u||i.hidingPrevented()||(i.config.hideImmediatelyOnMouseLeave?i.hideUi(!0):i.uiHideTimeout.start())}},{name:"wheel",handler:function(e){h(e)&&i.showUi()}}],this.userInteractionEvents.forEach(function(e){return i.userInteractionEventSource.on(e.name,e.handler)}),this.userInteractionEventSource.on("click",function(e){h(e)&&i.showUi()},{capture:!0}),n.onSeek.subscribe(function(){i.uiHideTimeout.clear(),u=!0}),n.onSeeked.subscribe(function(){u=!1,i.hidingPrevented()||i.uiHideTimeout.start()}),n.onComponentViewModeChanged.subscribe(function(e,t){var n=t.mode;return i.trackComponentViewMode(n)}),e.on(e.exports.PlayerEvent.CastStarted,function(){i.showUi()}),this.playerStateChange.subscribe(function(e,t){o=t,i.hidingPrevented()?(i.uiHideTimeout.clear(),i.showUi()):i.uiHideTimeout.start()})},t.prototype.configurePlayerStates=function(e,n){var o=this,i=this.getDomElement(),r=[];for(var s in l.PlayerUtils.PlayerState)if(isNaN(Number(s))){var c=l.PlayerUtils.PlayerState[l.PlayerUtils.PlayerState[s]];r[l.PlayerUtils.PlayerState[s]]=this.prefixCss(t.STATE_PREFIX+c.toLowerCase())}var u=function(){i.removeClass(r[l.PlayerUtils.PlayerState.Idle]),i.removeClass(r[l.PlayerUtils.PlayerState.Prepared]),i.removeClass(r[l.PlayerUtils.PlayerState.Playing]),i.removeClass(r[l.PlayerUtils.PlayerState.Paused]),i.removeClass(r[l.PlayerUtils.PlayerState.Finished])},p=function(e){u(),i.addClass(r[e]),o.playerStateChange.dispatch(o,e)};e.on(e.exports.PlayerEvent.SourceLoaded,function(){p(l.PlayerUtils.PlayerState.Prepared)}),e.on(e.exports.PlayerEvent.Play,function(){p(l.PlayerUtils.PlayerState.Playing)}),e.on(e.exports.PlayerEvent.Playing,function(){p(l.PlayerUtils.PlayerState.Playing)}),e.on(e.exports.PlayerEvent.Paused,function(){p(l.PlayerUtils.PlayerState.Paused)}),e.on(e.exports.PlayerEvent.PlaybackFinished,function(){p(l.PlayerUtils.PlayerState.Finished)}),e.on(e.exports.PlayerEvent.SourceUnloaded,function(){p(l.PlayerUtils.PlayerState.Idle)}),n.getConfig().events.onUpdated.subscribe(function(){p(l.PlayerUtils.getState(e))}),e.on(e.exports.PlayerEvent.ViewModeChanged,function(){e.getViewMode()===e.exports.ViewMode.Fullscreen?i.addClass(o.prefixCss(t.FULLSCREEN)):i.removeClass(o.prefixCss(t.FULLSCREEN))}),e.getViewMode()===e.exports.ViewMode.Fullscreen&&i.addClass(this.prefixCss(t.FULLSCREEN)),e.on(e.exports.PlayerEvent.StallStarted,function(){i.addClass(o.prefixCss(t.BUFFERING))}),e.on(e.exports.PlayerEvent.StallEnded,function(){i.removeClass(o.prefixCss(t.BUFFERING))}),e.isStalled()&&i.addClass(this.prefixCss(t.BUFFERING)),e.on(e.exports.PlayerEvent.CastStarted,function(){i.addClass(o.prefixCss(t.REMOTE_CONTROL))}),e.on(e.exports.PlayerEvent.CastStopped,function(){i.removeClass(o.prefixCss(t.REMOTE_CONTROL))}),e.isCasting()&&i.addClass(this.prefixCss(t.REMOTE_CONTROL)),n.onControlsShow.subscribe(function(){i.removeClass(o.prefixCss(t.CONTROLS_HIDDEN)),i.addClass(o.prefixCss(t.CONTROLS_SHOWN))}),n.onControlsHide.subscribe(function(){i.removeClass(o.prefixCss(t.CONTROLS_SHOWN)),i.addClass(o.prefixCss(t.CONTROLS_HIDDEN))});var f=function(e,t){i.removeClass(o.prefixCss("layout-max-width-400")),i.removeClass(o.prefixCss("layout-max-width-600")),i.removeClass(o.prefixCss("layout-max-width-800")),i.removeClass(o.prefixCss("layout-max-width-1200")),e<=400?i.addClass(o.prefixCss("layout-max-width-400")):e<=600?i.addClass(o.prefixCss("layout-max-width-600")):e<=800?i.addClass(o.prefixCss("layout-max-width-800")):e<=1200&&i.addClass(o.prefixCss("layout-max-width-1200"))};e.on(e.exports.PlayerEvent.PlayerResized,function(e){f(Math.round(Number(e.width.substring(0,e.width.length-2))),Math.round(Number(e.height.substring(0,e.height.length-2))))}),f(new a.DOM(e.getContainer()).width(),new a.DOM(e.getContainer()).height())},t.prototype.release=function(){var t=this;this.hideUi(!0),this.userInteractionEvents&&this.userInteractionEvents.forEac
1h(function(e){return t.userInteractionEventSource.off(e.name,e.handler)}),e.prototype.release.call(this),this.uiHideTimeout&&this.uiHideTimeout.clear()},t.prototype.onPlayerStateChange=function(){return this.playerStateChange.getEvent()},t.prototype.suspendHideTimeout=function(){this.uiHideTimeout.suspend()},t.prototype.resumeHideTimeout=function(){this.uiHideTimeout.resume(!this.hidingPrevented())},t.prototype.toDomElement=function(){var t=e.prototype.toDomElement.call(this);return document&&void 0!==document.createElement("p").style.flex?t.addClass(this.prefixCss("flexbox")):t.addClass(this.prefixCss("no-flexbox")),t},t.STATE_PREFIX="player-state-",t.FULLSCREEN="fullscreen",t.BUFFERING="buffering",t.REMOTE_CONTROL="remote-control",t.CONTROLS_SHOWN="controls-shown",t.CONTROLS_HIDDEN="controls-hidden",t}(r.Container);t.UIContainer=g},21533:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Watermark=void 0;var r=n(79863),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-watermark",url:"http://bitmovin.com",role:"link",text:"logo",ariaLabel:a.i18n.getLocalizer("watermarkLink")},n.config),n}return i(t,e),t}(r.ClickOverlay);t.Watermark=s},89323:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdClickOverlay=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{acceptsTouchWithUiHidden:!0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=null;t.on(t.exports.PlayerEvent.AdStarted,function(e){var t=e.ad;o.setUrl(t.clickThroughUrl),i=t.clickThroughUrlOpened});var r=function(){o.setUrl(null)};t.on(t.exports.PlayerEvent.AdFinished,r),t.on(t.exports.PlayerEvent.AdSkipped,r),t.on(t.exports.PlayerEvent.AdError,r),this.onClick.subscribe(function(){t.pause("ui-ad-click-overlay"),i&&i()})},t}(n(79863).ClickOverlay);t.AdClickOverlay=r},22982:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.AdControlBar=void 0;var a=n(71484),s=n(35238),l=n(54745),c=n(49067),u=function(e){function t(t){var n=e.call(this,t)||this;return n.containersToHide=[],n.containersToKeepVisible=[],n.config=n.mergeConfig(t,{cssClasses:["ad-controlbar"],hidden:!1,role:"region",ariaLabel:l.i18n.getLocalizer("controlBar")},n.config),n.config.components.forEach(function(e){e instanceof s.Container&&(n.containsSeekBar(e)?n.containersToKeepVisible.push(e):n.containersToHide.pu
1sh(e))}),n}return i(t,e),t.prototype.hide=function(){this.containersToHide.forEach(function(e){e.hide()})},t.prototype.show=function(){r(r([],this.containersToHide,!0),this.containersToKeepVisible,!0).forEach(function(e){e.show()})},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),n.onControlsShow.subscribe(function(){o.show()}),n.onControlsHide.subscribe(function(){o.hide()})},t.prototype.containsSeekBar=function(e){for(var t=e.getComponents(),n=0;n<t.length;n++){var o=t[n];if(o instanceof c.SeekBar||o instanceof s.Container&&this.containsSeekBar(o))return!0}return!1},t}(a.ControlBar);t.AdControlBar=u},23750:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdCounterLabel=void 0;var r=n(54745),a=n(74039),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.adBreakTrackerAdCountChangedHandler=function(e,t){n.setAdCounterFromAdBreakTracker(t.currentAdIndex,t.totalNumberOfAds)},n.config=n.mergeConfig(t,{cssClass:"ui-label-ad-counter",text:r.i18n.getLocalizer("ad"),adCountOutOfTotal:r.i18n.getLocalizer("ads.adNumberOfTotal")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.player=t,this.adBreakTracker=n.getConfig().adBreakTracker,this.adBreakTracker.onAdCountChanged.subscribe(this.adBreakTrackerAdCountChangedHandler),this.adBreakTracker.currentAdIndex>0&&this.adBreakTracker.totalNumberOfAds>0&&this.setAdCounterFromAdBreakTracker(this.adBreakTracker.currentAdIndex,this.adBreakTracker.totalNumberOfAds)},t.prototype.release=function(){var t;null===(t=this.adBreakTracker)||void 0===t||t.onAdCountChanged.unsubscribe(this.adBreakTrackerAdCountChangedHandler),this.adBreakTracker=void 0,this.player=void 0,e.prototype.release.call(this)},t.prototype.onLanguageChanged=function(){var e,t,n,o,i,r;((null===(e=this.adBreakTracker)||void 0===e?void 0:e.currentAdIndex)>0||(null===(o=null===(n=null===(t=this.player)||void 0===t?void 0:t.ads)||void 0===n?void 0:n.isLinearAdActive)||void 0===o?void 0:o.call(n)))&&this.setAdCounterFromAdBreakTracker(null===(i=this.adBreakTracker)||void 0===i?void 0:i.currentAdIndex,null===(r=this.adBreakTracker)||void 0===r?void 0:r.totalNumberOfAds)},t.prototype.getAdMessage=function(t,n,o,i){var r,a,s=null!=o?o:null===(r=this.adBreakTracker)||void 0===r?void 0:r.currentAdIndex,l=null!=i?i:null===(a=this.adBreakTracker)||void 0===a?void 0:a.totalNumberOfAds;return s>0&&l>1?this.getAdCounterMessage(t,s,l):e.prototype.getAdMessage.call(this,t,n)},t.prototype.setAdCounterFromAdBreakTracker=function(e,t){var n,o;if(0===e&&0===t){this.setText("");return}this.setText(this.getAdMessage(this.player,null===(o=null===(n=this.player.ads)||void 0===n?void 0:n.getActiveAd)||void 0===o?void 0:o.call(n),e,t))},t.prototype.getAdCounterMessage=function(e,t,n){return a.StringUtils.replaceAdMessagePlaceholders(r.i18n.performLocalization(this.config.adCountOutOfTotal),e,void 0,t,n)},t}(n(10654).AdMessageLabel);t.AdCounterLabel=s},10654:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdMessageLabel=void 0;var r=n(1230),a=n(54745),s=n(74039),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-ad-message-label"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o,i=this;e.prototype.configure.call(this,t,n);var r=function(){i.setText(i.getAdMessage(t,o))},a=function(){t.off(t.exports.PlayerEvent.TimeChanged,r)};t.on(t.exports.PlayerEvent.AdStarted,function(e){o=e.ad,r(),t.on(t.exports.PlayerEvent.TimeChanged,r)}),t.on(t.exports.PlayerEvent.AdSkipped,a),t.on(t.exports.PlayerEvent.AdError,a),t.on(t.exports.PlayerEvent.AdFinished,a),t.on(t.exports.PlayerEvent.SourceUnloaded,a)},t.prototype.getAdMessage=function(e,t){var n,o=(null===(n=null==t?void 0:t.uiConfig)||void 0===n?void 0:n.message)||this.config.text||"";return s.StringUtils.replaceAdMessagePlaceholders(a.i18n.performLocalization(o),e)},t}(r.Label);t.AdMessageLabel=l},68515:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdSkipButton=void 0;var r=n(12070),a=n(74039),s=n(54745),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.skipOffset=-1,n.config=n.mergeConfig(t,{cssClass:"ui-button-ad-skip",untilSkippableMessage:s.i18n.getLocalizer("ads.skippableIn"),skippableMessage:s.i18n.getLocalizer("ads.skip"),acceptsTouchWithUiHidden:!0,buttonStyle:r.ButtonStyle.TextWithTrailingIcon},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.player=t;var i=this.getConfig();this.untilSkippableMessage=i.untilSkippableMessage,this.skippableMessage=i.skippableMessage,this.skipOffset=-1,this.updateSkipMessageHandler=function(){o.show(),t.getCurrentTime()<o.skipOffset?(o.setText(a.StringUtils.replaceAdMessagePlaceholders(s.i18n.performLocalization(o.untilSkippableMessage),t,o.skipOffset)),o.disable()):(o.setText(a.StringUtils.replaceAdMessagePlaceholders(s.i18n.performLocalization(o.skippableMessage),t)),o.enable())};var r=function(){o.updateSkipMessageHandler&&t.off(t.exports.PlayerEvent.TimeChanged,o.updateSkipMessageHandler)};t.on(t.exports.PlayerEvent.AdStarted,function(e){var n=e.ad;o.skipOffset=n.skippableAfter,o.untilSkippableMessage=n.uiConfig&&n.uiConfig.untilSkippableMessage||i.untilSkippableMessage,o.skippableMessage=n.uiConfig&&n.uiConfig.skippableMessage||i.skippableMessage,"number"==typeof o.skipOffset&&o.skipOffset>=0?(o.updateSkipMessageHandler(),t.on(t.exports.PlayerEvent.TimeChanged,o.updateSkipMessageHandler)):o.hide()}),t.on(t.exports.PlayerEvent.AdSkipped,r),t.on(t.exports.PlayerEvent.AdError,r),t.on(t.exports.PlayerEvent.AdFinished,r),this.onClick.subscribe(function(){t.ads.skip()})},t.prototype.onLanguageChanged=function(){this.updateSkipMessageHandler&&"number"==typeof this.skipOffset&&this.skipOffset>=0&&this.updateSkipMessageHandler()},t.prototype.release=function(){this.player&&this.updateSkipMessageHandler&&this.player.off(this.player.exports.PlayerEvent.TimeChanged,this.updateSkipMessageHandler),e.prototype.release.call(this)},t}(r.Button);t.AdSkipButton=l},52092:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdStatusOverlay=void 0;var r=n(35238),a=n(68515),s=n(59998),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.adSkipButton=new a.AdSkipButton,n.config=n.mergeConfig(t,{components:[new r.Container({components:[new s.Spacer,n.adSkipButton],cssClasse
1s:["bar"]})],cssClass:"ui-ad-status-overlay"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n)},t}(r.Container);t.AdStatusOverlay=l},11649:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AirPlayToggleButton=void 0;var r=n(20519),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-airplaytogglebutton",text:a.i18n.getLocalizer("appleAirplay")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;if(e.prototype.configure.call(this,t,n),!t.isAirplayAvailable){this.hide();return}this.onClick.subscribe(function(){t.isAirplayAvailable()?t.showAirplayTargetPicker():console&&console.log("AirPlay unavailable")});var i=function(){t.isAirplayAvailable()?o.show():o.hide()},r=function(){t.isAirplayActive()?o.on():o.off()};t.on(t.exports.PlayerEvent.AirplayAvailable,i),t.on(t.exports.PlayerEvent.AirplayChanged,r),i(),r()},t}(r.ToggleButton);t.AirPlayToggleButton=s},12070:function(e,t,n){var o,i,r,a=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonStyle=void 0;var s=n(30040),l=n(9524),c=n(37388),u=n(54745),p=n(29745);(o=r||(t.ButtonStyle=r={})).Icon="icon",o.Text="text",o.TextWithLeadingIcon="text-icon-leading",o.TextWithTrailingIcon="text-icon-trailing";var f=function(e){function t(t){var n=e.call(this,t)||this;return n.buttonEvents={onClick:new c.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-button",role:"button",tabIndex:0,acceptsTouchWithUiHidden:!1,buttonStyle:r.Icon},n.config),n}return a(t,e),t.prototype.onLanguageChanged=function(){"function"==typeof this.config.text&&this.setText(this.config.text)},t.prototype.toDomElement=function(){var e=this,n={id:this.config.id,"aria-label":u.i18n.performLocalization(this.config.ariaLabel||this.config.text),class:this.getCssClasses(),type:"button",tabindex:this.config.tabIndex.toString()};null!=this.config.role&&(n.role=this.config.role);var o=new l.DOM("button",n,this),i=function(){var e=new p.Icon;o.append(e.getDomElement())},a=function(){o.append(new l.DOM("span",{class:e.prefixCss("label")}).html(u.i18n.performLocalization(e.config.text)))};switch(this.config.buttonStyle){case r.Icon:i();break;case r.Text:a();break;case r.TextWithLeadingIcon:i(),a();break;case r.TextWithTrailingIcon:a(),i()}return o.on("click",function(t){t.preventDefault(),e.onClickEvent()}),o.on("touchstart",function(n){e.getDomElement().addClass(t.CLASS_TOUCHED)}),o.on("touchend",function(n){e.getDomElement().removeClass(t.CLASS_TOUCHED)}),o},t.prototype.setText=function(e){this.getDomElement().find("."+this.prefixCss("label")).html(u.i18n.performLocalization(e))},t.prototype.onClickEvent=function(){this.buttonEvents.onClick.dispatch(this)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.buttonEvents.onClick.getEvent()},enumerable:!1,configurable:!0}),t.CLASS_TOUCHED="touched",t}(s.Component);t.Button=f},34575:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.CaptionToggleButton=void 0;var r=n(20519),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-captiontogglebutton",text:a.i18n.getLocalizer("settings.subtitles"),onAriaLabel:a.i18n.getLocalizer("captions.disable"),offAriaLabel:a.i18n.getLocalizer("captions.enable")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o,i,r=this;e.prototype.configure.call(this,t,n);var a=function(){var e,n;return null!==(n=null===(e=t.subtitles)||void 0===e?void 0:e.list())&&void 0!==n?n:[]},s=function(){return a().filter(function(e){return e.enabled})},l=function(){var e,n,o,r=a(),s=null===(e=t.getAudio())||void 0===e?void 0:e.lang;return null!==(o=null!==(n=r.find(function(e){return e.id===i}))&&void 0!==n?n:r.find(function(e){return e.lang===s}))&&void 0!==o?o:r[0]},c=function(){if(0===a().length){r.hide();return}r.show(),s().length>0?r.on():r.off()};t.on(t.exports.PlayerEvent.SourceLoaded,c),t.on(t.exports.PlayerEvent.SourceUnloaded,function(){i=void 0,c()}),t.on(t.exports.PlayerEvent.SubtitleAdded,c),t.on(t.exports.PlayerEvent.SubtitleRemoved,c),t.on(t.exports.PlayerEvent.SubtitleEnabled,function(e){e.subtitle&&(i=e.subtitle.id),c()}),t.on(t.exports.PlayerEvent.SubtitleDisabled,c),t.on(t.exports.PlayerEvent.PeriodSwitched,c),n.getConfig().events.onUpdated.subscribe(c),this.onClick.subscribe(function(){var e=s();if(e.length>0)e.forEach(function(e){return t.subtitles.disable(e.id)});else{var n=l();n&&t.subtitles.enable(n.id,!0)}}),i=null===(o=s().pop())||void 0===o?void 0:o.id,c()},t}(r.ToggleButton);t.CaptionToggleButton=s},21903:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CastToggleButton=void 0;var r=n(20519),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-casttogglebutton",text:a.i18n.getLocalizer("googleCast")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.onClick.subscribe(function(){t.isCastAvailable()?t.isCasting()?t.castStop():t.castVideo():console&&console.log("Cast unavailable")});var i=function(){t.isCastAvailable()?o.show():o.hide()};t.on(t.exports.PlayerEvent.CastAvailable,i),t.on(t.exports.PlayerEvent.CastWaitingForDevice,function(){o.on()}),t.on(t.exports.PlayerEvent.CastStarted,function(){o.on()}),t.on(t.exports.PlayerEvent.CastStopped,function(){o.off()}),i(),t.isCasting()&&this.on()},t}(r.ToggleButton);t.CastToggleButton=s},89729:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CloseButton=void 0;var r=n(12070),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-closebutton",text:a.i18n.getLocalizer("close")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n);var o=this.getConfig();this.onClick.subscribe(function(){o.target.hide()})},t}(r.Button);t.CloseButton=s},35918:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EcoModeToggleButton=void 0;var r=n(20519),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,o={text:a.i18n.getLocalizer("ecoMode"),cssClass:"ui-ecomodetogglebutton",onClass:"on",offClass:"off",ariaLabel:a.i18n.getLocalizer("ecoMode")};return n.config=n.mergeConfig(t,o,n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.areAdaptationApisAvailable(t)?(this.onClick.subscribe(function(){o.toggle()}),this.onToggleOn.subscribe(function(){o.enableEcoMode(t),t.setVideoQuality("auto")}),this.onToggleOff.subscribe(function(){o.disableEcoMode(t)}),t.on(t.exports.PlayerEvent.VideoQualityChanged,function(e){"auto"!==e.targetQuality.id&&(o.off(),o.disableEcoMode(t))})):e.prototype.disable.call(this)},t.prototype.areAdaptationApisAvailable=function(e){var t=!!(e.adaptation.getConfig&&"function"==typeof e.adaptation.getConfig),n=!!(e.adaptation.setConfig&&"function"==typeof e.adaptation.setConfig);return!!(e.adaptation&&t&&n)},t.prototype.enableEcoMode=function(e){this.adaptationConfig=e.adaptation.getConfig();var t=e.getAvailableVideoQualities()[0].codec;t.includes("avc")&&e.adaptation.setConfig({resolution:{maxSelectableVideoHeight:720},limitToPlayerSize:!0}),(t.includes("hvc")||t.includes("hev"))&&e.adaptation.setConfig({resolution:{maxSelectableVideoHeight:1080},limitToPlayerSize:!0}),(t.includes("av1")||t.includes("av01"))&&e.adaptation.setConfig({resolution:{maxSelectableVideoHeight:1440},limitToPlayerSize:!0})},t.prototype.disableEcoMode=function(e){e.adaptation.setConfig(this.adaptationConfig)},t}(r.ToggleButton);t.EcoModeToggleButton=s},61110:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenToggleButton=void 0;var r=n(20519),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-fullscreentogglebutton",text:a.i18n.getLocalizer("fullscreen")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){return t.isViewModeAvailable(t.exports.ViewMode.Fullscreen)},r=function(){t.getViewMode()===t.exports.ViewMode.Fullscreen?o.on():o.off()},a=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.ViewModeChanged,r),t.exports.PlayerEvent.ViewModeAvailabilityChanged&&t.on(t.exports.PlayerEvent.ViewModeAvailabilityChanged,a),n.getConfig().events.onUpdated.subscribe(a),this.onClick.subscribe(function(){if(!i()){console&&console.log("Fullscreen unavailable");return}var e=t.getViewMode()===t.exports.ViewMode.Fullscreen?t.exports.ViewMode.Inline:t.exports.ViewMode.Fullscreen;t.setViewMode(e)}),a(),r()},t}(r.ToggleButton);t.FullscreenToggleButton=s},97172:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.HugePlaybackToggleButton=void 0;var r=n(97988),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-hugeplaybacktogglebutton",text:a.i18n.getLocalizer("playPause"),role:"button"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n,!1),"boolean"==typeof n.getConfig().enterFullscreenOnInitialPlayback&&(this.config.enterFullscreenOnInitialPlayback=n.getConfig().enterFullscreenOnInitialPlayback);var i=function(){t.isPlaying()||o.isPlayInitiated?t.pause("ui"):t.play("ui")},r=function(){t.getViewMode()===t.exports.ViewMode.Fullscreen?t.setViewMode(t.exports.ViewMode.Inline):t.setViewMode(t.exports.ViewMode.Fullscreen)},a=!0,s=0,l=0;this.onClick.subscribe(function(){if(a){i(),o.config.enterFullscreenOnInitialPlayback&&t.setViewMode(t.exports.ViewMode.Fullscreen);return}var e=Date.now();if(e-s<200){r(),l=e;return}if(e-s<500){r(),i(),l=e;return}s=e,setTimeout(function(){Date.now()-l>200&&i()},200)}),t.on(t.exports.PlayerEvent.Play,function(){a=!1}),t.on(t.exports.PlayerEvent.Warning,function(e){e.code===t.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&(a=!0)});var c=function(){o.setTransitionAnimationsEnabled(!1),o.onToggle.subscribeOnce(function(){o.setTransitionAnimationsEnabled(!0)})};c();var u=t.getConfig().playback&&!!t.getConfig().playback.autoplay,p=!t.getSource()&&u;(t.isPlaying()||p)&&(this.on(),c(),t.on(t.exports.PlayerEvent.Warning,function(e){e.code===t.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&c()}))},t.prototype.setTransitionAnimationsEnabled=function(e){var t=this.prefixCss("no-transition-animations");e?this.getDomElement().removeClass(t):this.getDomElement().hasClass(t)||this.getDomElement().addClass(t)},t}(r.PlaybackToggleButton);t.HugePlaybackToggleButton=s},32816:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HugeReplayButton=void 0;var r=n(12070),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-hugereplaybutton",text:a.i18n.getLocalizer("replay")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.onClick.subscribe(function(){t.play("ui")})},t}(r.Button);t.HugeReplayButton=s},24371:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PersistentPreferencesToggleButton=void 0;var r=n(20519),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{text:a.i18n.getLocalizer("persistentPreferences"),cssClass:"ui-persistentpreferencestogglebutton",ariaLabel:a.i18n.getLocalizer("persistentPreferences")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=n.getUIPreferencesManager();i.isEnabled()&&this.on(),this.onClick.subscribe(function(){o.toggle()}),this.onToggleOn.subscribe(function(){i.setEnabled(!0)}),this.onToggleOff.subscribe(function(){i.setEnabled(!1)})},t}(r.ToggleButton);t.PersistentPreferencesToggleButton=s},54212:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PictureInPictureToggleButton=void 0;var r=n(20519),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-piptogglebutton",text:a.i18n.getLocalizer("pictureInPicture")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){return t.isViewModeAvailable(t.exports.ViewMode.PictureInPicture)},r=function(){t.getViewMode()===t.exports.ViewMode.PictureInPicture?o.on():o.off()},a=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.ViewModeChanged,r),t.exports.PlayerEvent.ViewModeAvailabilityChanged&&t.on(t.exports.PlayerEvent.ViewModeAvailabilityChanged,a),n.getConfig().events.onUpdated.subscribe(a),this.onClick.subscribe(function(){if(!i()){console&&console.log("PIP unavailable");return}var e=t.getViewMode()===t.exports.ViewMode.PictureInPicture?t.exports.ViewMode.Inline:t.exports.ViewMode.PictureInPicture;t.setViewMode(e)}),a(),r()},t}(r.ToggleButton);t.PictureInPictureToggleButton=s},97988:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackToggleButton=void 0;var r=n(20519),a=n(78966),s=n(54745),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-playbacktogglebutton",text:s.i18n.getLocalizer("play"),onAriaLabel:s.i18n.getLocalizer("pause"),offAriaLabel:s.i18n.getLocalizer("play")},n.config),n.isPlayInitiated=!1,n}return i(t,e),t.prototype.configure=function(n,o,i){var r=this;void 0===i&&(i=!0),e.prototype.configure.call(this,n,o),"boolean"==typeof o.getConfig().enterFullscreenOnInitialPlayback&&(this.config.enterFullscreenOnInitialPlayback=o.getConfig().enterFullscreenOnInitialPlayback);var s=!1,l=!0,c=function(){s||(n.isPlaying()||r.isPlayInitiated?r.on():r.off())};n.on(n.exports.PlayerEvent.Play,function(e){r.isPlayInitiated=!0,l=!1,c()}),n.on(n.exports.PlayerEvent.Paused,function(e){r.isPlayInitiated=!1,c()}),n.on(n.exports.PlayerEvent.Playing,function(e){r.isPlayInitiated=!1,c()}),n.on(n.exports.PlayerEvent.SourceLoaded,c),o.getConfig().events.onUpdated.subscribe(c),n.on(n.exports.PlayerEvent.SourceUnloaded,c),n.on(n.exports.PlayerEvent.PlaybackFinished,c),n.on(n.exports.PlayerEvent.CastStarted,c),n.on(n.exports.PlayerEvent.Warning,function(e){e.code===n.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&(r.isPlayInitiated=!1,l=!0,r.off())});var u=function(){n.isLive()&&!a.PlayerUtils.isTimeShiftAvailable(n)?r.getDomElement().addClass(r.prefixCss(t.CLASS_STOPTOGGLE)):r.getDomElement().removeClass(r.prefixCss(t.CLASS_STOPTOGGLE))},p=new a.PlayerUtils.TimeShiftAvailabilityDetector(n),f=new a.PlayerUtils.LiveStreamDetector(n,o);p.onTimeShiftAvailabilityChanged.subscribe(function(){return u()}),f.onLiveChanged.subscribe(function(){return u()}),p.detect(),f.detect(),i&&this.onClick.subscribe(function(){n.isPlaying()||r.isPlayInitiated?n.pause("ui"):(n.play("ui"),l&&r.config.enterFullscreenOnInitialPlayback&&n.setViewMode(n.exports.ViewMode.Fullscreen))}),o.onSeek.subscribe(function(){s=!0}),o.onSeeked.subscribe(function(){s=!1}),c()},t.CLASS_STOPTOGGLE="stoptoggle",t}(r.ToggleButton);t.PlaybackToggleButton=l},57456:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.QuickSeekButton=void 0;var r=n(12070),a=n(54745),s=n(78966),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.onSeek=function(e){n.currentSeekTarget=e.seekTarget},n.onSeekedOrTimeShifted=function(){n.currentSeekTarget=null},n.onTimeShift=function(e){n.currentSeekTarget=n.player.getTimeShift()+(e.target-e.position)},n.currentSeekTarget=null,n.config=n.mergeConfig(t,{seekSeconds:-10,cssClass:"ui-quickseekbutton"},n.config);var o=n.config.seekSeconds<0?"rewind":"forward";return n.config.text=n.config.text||a.i18n.getLocalizer("quickseek.".concat(o)),n.config.ariaLabel=n.config.ariaLabel||a.i18n.getLocalizer("quickseek.".concat(o),{seekSeconds:Math.abs(n.config.seekSeconds)}),n.getDomElement().data(n.prefixCss("seek-direction"),o).data(n.prefixCss("seek-seconds"),Math.abs(n.config.seekSeconds).toString()),n}return i(t,e),t.prototype.configure=function(t,n){var o,i,r=this;e.prototype.configure.call(this,t,n),this.player=t;var a=function(e,t){e&&!t?r.hide():r.show()},l=new s.PlayerUtils.TimeShiftAvailabilityDetector(t);l.onTimeShiftAvailabilityChanged.subscribe(function(e,t){i=t.timeShiftAvailable,a(o,i)});var c=new s.PlayerUtils.LiveStreamDetector(t,n);c.onLiveChanged.subscribe(function(e,t){a(o=t.live,i)}),l.detect(),c.detect(),this.onClick.subscribe(function(){if((!o||i)&&(!o||!(r.config.seekSeconds>0)||0!==t.getTimeShift())){var e=(null!==r.currentSeekTarget?r.currentSeekTarget:o?t.getTimeShift():t.getCurrentTime())+r.config.seekSeconds;if(o){var n=s.PlayerUtils.clampValueToRange(e,t.getMaxTimeShift(),0);t.timeShift(n)}else{var n=s.PlayerUtils.clampValueToRange(e,0,t.getDuration());t.seek(n)}}}),this.player.on(this.player.exports.PlayerEvent.Seek,this.onSeek),this.player.on(this.player.exports.PlayerEvent.Seeked,this.onSeekedOrTimeShifted),this.player.on(this.player.exports.PlayerEvent.TimeShift,this.onTimeShift),this.player.on(this.player.exports.PlayerEvent.TimeShifted,this.onSeekedOrTimeShifted)},t.prototype.release=function(){e.prototype.release.call(this);var t=this.player;null==t||t.off(t.exports.PlayerEvent.Seek,this.onSeek),null==t||t.off(t.exports.PlayerEvent.Seeked,this.onSeekedOrTimeShifted),null==t||t.off(t.exports.PlayerEvent.TimeShift,this.onTimeShift),null==t||t.off(t.exports.PlayerEvent.TimeShifted,this.onSeekedOrTimeShifted),this.currentSeekTarget=null,this.player=null},t}(r.Button);t.QuickSeekButton=l},67031:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplayButton=void 0;var r=n(12070),a=n(54745),s=n(78966),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-replaybutton",text:a.i18n.getLocalizer("replay"),ariaLabel:a.i18n.getLocalizer("replay")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),t.isLive()&&this.hide(),new s.PlayerUtils.LiveStreamDetector(t,n).onLiveChanged.subscribe(function(e,t){t.live?o.hide():o.show()}),this.onClick.subscribe(function(){t.hasEnded()?t.play("ui"):t.seek(0)})},t}(r.Button);t.ReplayButton=l},43187:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SmallCenteredPlaybackToggleButton=void 0;var r=n(97988),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-smallcenteredplaybacktogglebutton",text:a.i18n.getLocalizer("playPause"),role:"button"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o,i=this;e.prototype.configure.call(this,t,n,!1),"boolean"==typeof n.getConfig().enterFullscreenOnInitialPlayback&&(this.config.enterFullscreenOnInitialPlayback=n.getConfig().enterFullscreenOnInitialPlayback);var r=function(){t.isPlaying()||i.isPlayInitiated?t.pause("ui"):t.play("ui")},a=!0;this.onClick.subscribe(function(){r(),a&&i.config.enterFullscreenOnInitialPlayback&&t.setViewMode(t.exports.ViewMode.Fullscreen)}),t.on(t.exports.PlayerEvent.Playing,function(){a=!1});var s=function(){i.setTransitionAnimationsEnabled(!1),i.onToggle.subscribeOnce(function(){i.setTransitionAnimationsEnabled(!0)})};s();var l=!!(null===(o=t.getConfig().playback)||void 0===o?void 0:o.autoplay),c=!t.getSource()&&l;(t.isPlaying()||c)&&(this.on(),s(),t.on(t.exports.PlayerEvent.Warning,function(e){e.code===t.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&s()}))},t.prototype.setTransitionAnimationsEnabled=function(e){var t=this.prefixCss("no-transition-animations");e?this.getDomElement().removeClass(t):this.getDomElement().hasClass(t)||this.getDomElement().addClass(t)},t}(r.PlaybackToggleButton);t.SmallCenteredPlaybackToggleButton=s},20519:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleButton=void 0;var r=n(12070),a=n(37388),s=function(e){function t(t){var n=e.call(this,t)||this;return n.toggleButtonEvents={onToggle:new a.EventDispatcher,onToggleOn:new a.EventDispatcher,onToggleOff:new a.EventDispatcher},t.onAriaLabel&&(t.ariaLabel=t.onAriaLabel),n.config=n.mergeConfig(t,{cssClass:"ui-togglebutton",onClass:"on",offClass:"off"},n.config),n.useAriaPressedAttributeAsToggleIndicator=!n.config.onAriaLabel||!n.config.offAriaLabel,n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n);var o=this.getConfig();this.getDomElement().addClass(this.prefixCss(o.offClass)),this.useAriaPressedAttributeAsToggleIndicator=!this.config.onAriaLabel||!this.config.offAriaLabel,this.useAriaPressedAttributeAsToggleIndicator?this.setAriaAttr("pressed","false"):this.setAriaLabel(this.config.offAriaLabel)},t.prototype.on=function(){if(this.isOff()){var e=this.getConfig();this.onState=!0,this.getDomElement().removeClass(this.prefixCss(e.offClass)),this.getDomElement().addClass(this.prefixCss(e.onClass)),this.onToggleEvent(),this.onToggleOnEvent(),this.useAriaPressedAttributeAsToggleIndicator?this.setAriaAttr("pressed","true"):this.setAriaLabel(this.config.onAriaLabel)}},t.prototype.off=function(){if(this.isOn()){var e=this.getConfig();this.onState=!1,this.getDomElement().removeClass(this.prefixCss(e.onClass)),this.getDomElement().addClass(this.prefixCss(e.offClass)),this.onToggleEvent(),this.onToggleOffEvent(),this.useAriaPressedAttributeAsToggleIndicator?this.setAriaAttr("pressed","false"):this.setAriaLabel(this.config.offAriaLabel)}},t.prototype.toggle=function(){this.isOn()?this.off():this.on()},t.prototype.isOn=function(){return this.onState},t.prototype.isOff=function(){return!this.isOn()},t.prototype.onClickEvent=function(){e.prototype.onClickEvent.call(this),this.onToggleEvent()},t.prototype.onToggleEvent=function(){this.toggleButtonEvents.onToggle.dispatch(this)},t.prototype.onToggleOnEvent=function(){this.toggleButtonEvents.onToggleOn.dispatch(this)},t.prototype.onToggleOffEvent=function(){this.toggleButtonEvents.onToggleOff.dispatch(this)},Object.defineProperty(t.prototype,"onToggle",{get:function(){return this.toggleButtonEvents.onToggle.getEvent()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onToggleOn",{get:function(){return this.toggleButtonEvents.onToggleOn.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onToggleOff",{get:function(){return this.toggleButtonEvents.onToggleOff.getEvent()},enumerable:!1,configurable:!0}),t}(r.Button);t.ToggleButton=s},62311:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VRToggleButton=void 0;var r=n(20519),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-vrtogglebutton",text:a.i18n.getLocalizer("vr")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){var e=t.getSource();return e&&!!e.vr},r=function(){var e=t.getSource();return t.vr&&!!e.vr},a=function(e){(e.type!==t.exports.PlayerEvent.Warning||e.code===t.exports.WarningCode.VR_RENDERING_ERROR)&&(i()&&r()?(o.show(),t.vr&&t.vr.getStereo()?o.on():o.off()):o.hide())},s=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.VRStereoChanged,a),t.on(t.exports.PlayerEvent.Warning,a),t.on(t.exports.PlayerEvent.SourceUnloaded,s),n.getConfig().events.onUpdated.subscribe(s),this.onClick.subscribe(function(){r()?t.vr&&t.vr.getStereo()?t.vr.setStereo(!1):t.vr.setStereo(!0):console&&console.log("No VR content")}),s()},t}(r.ToggleButton);t.VRToggleButton=s},73476:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeControlButton=void 0;var r=n(35238),a=n(29336),s=n(31533),l=n(9110),c=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.volumeToggleButton=new s.VolumeToggleButton,n.volumeSlider=new a.VolumeSlider({vertical:null==t.vertical||t.vertical,hidden:!0}),n.config=n.mergeConfig(t,{cssClass:"ui-volumecontrolbutton",components:[n.volumeToggleButton,n.volumeSlider],hideDelay:500},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getVolumeToggleButton(),r=this.getVolumeSlider();this.volumeSliderHideTimeout=new l.Timeout(this.getConfig().hideDelay,function(){r.hide()});var a=!1;i.getDomElement().on("mouseenter",function(){r.isHidden()&&r.show(),o.volumeSliderHideTimeout.clear()}),i.getDomElement().on("mouseleave",function(){o.volumeSliderHideTimeout.reset()}),r.getDomElement().on("mouseenter",function(){o.volumeSliderHideTimeout.clear(),a=!0}),r.getDomElement().on("mouseleave",function(){r.isSeeking()?o.volumeSliderHideTimeout.clear():o.volumeSliderHideTimeout.reset(),a=!1}),r.onSeeked.subscribe(function(){a||o.volumeSliderHideTimeout.reset()})},t.prototype.release=function(){var t;e.prototype.release.call(this),null===(t=this.volumeSliderHideTimeout)||void 0===t||t.clear()},t.prototype.getVolumeToggleButton=function(){return this.volumeToggleButton},t.prototype.getVolumeSlider=function(){return this.volumeSlider},t}(r.Container);t.VolumeControlButton=c},31533:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeToggleButton=void 0;var r=n(20519),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,o={cssClass:"ui-volumetogglebutton",text:a.i18n.getLocalizer("settings.audio.mute"),onClass:"muted",offClass:"unmuted",ariaLabel:a.i18n.getLocalizer("settings.audio.mute")};return n.config=n.mergeConfig(t,o,n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=n.getConfig().volumeController;i.onChanged.subscribe(function(e,t){t.muted?o.on():o.off();var n=Math.ceil(t.volume/10);o.getDomElement().data(o.prefixCss("volume-level-tens"),String(n))}),this.onClick.subscribe(function(){i.toggleMuted()}),i.onChangedEvent()},t}(r.ToggleButton);t.VolumeToggleButton=s},21142:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ContextMenu=void 0;var r=n(3325),a=n(35238),s=n(14145),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-context-menu",hideDelay:-1,hideOnControlsHide:!1,hidden:!0,role:"menu"},n.config),n.getComponents().forEach(function(e){return n.setContextMenuForComponent(e)}),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=n.getUI();this.contextMenuHost=i.getDomElement().get(0),this.onHide.subscribe(function(){var e=o.getDomElement();e.waitForTransitionEnd("opacity").then(function(){o.isHidden()&&e.remove()})});var r=function(e){if(!e.defaultPrevented){if(o.isShown()){o.isEventTargetInsideContextMenu(e)||o.hideAndReset();return}o.isEventTargetInsideElement(e,i.getDomElement().get(0))&&(e.preventDefault(),o.showAt(e.clientX,e.clientY))}},a=function(e){"Escape"===e.key&&o.isShown()&&o.hideAndReset()},s=function(e){o.isShown()&&!o.isEventTargetInsideContextMenu(e)&&o.hideAndReset()},l=function(){document.removeEventListener("contextmenu",r),document.removeEventListener("keydown",a),document.removeEventListener("click",s)};n.onActive.subscribe(function(){document.addEventListener("contextmenu",r),document.addEventListener("keydown",a),document.addEventListener("click",s)}),n.onInactive.subscribe(function(){l(),o.hideAndReset()})},t.prototype.release=function(){var t=this;this.getComponents().forEach(function(e){return t.unsetContextMenuForComponent(e)}),e.prototype.release.call(this),this.hasDomElement()&&this.getDomElement().remove()},t.prototype.addComponent=function(t){e.prototype.addComponent.call(this,t),this.setContextMenuForComponent(t)},t.prototype.prependComponent=function(t){e.prototype.prependComponent.call(this,t),this.setContextMenuForComponent(t)},t.prototype.removeComponent=function(t){var n=e.prototype.removeComponent.call(this,t);return n&&this.unsetContextMenuForComponent(t),n},t.prototype.showAt=function(e,t){var n=this.getDomElement(),o=n.get(0);this.attachContextMenuElement();var i=o.offsetWidth,r=o.offsetHeight,a=this.contextMenuHost.getBoundingClientRect(),s=Math.max(0,a.width-i-4),l=Math.max(0,a.height-r-4),c=Math.max(0,Math.min(e-a.left,s)),u=Math.max(0,Math.min(t-a.top,l));n.css({left:"".concat(c,"px"),top:"".concat(u,"px")}),this.show()},t.prototype.isEventTargetInsideContextMenu=function(e){return this.isEventTargetInsideElement(e,this.getDomElement().get(0))},t.prototype.isEventTargetInsideElement=function(e,t){var n,o=null===(n=e.composedPath)||void 0===n?void 0:n.call(e);return o?o.includes(t):e.target instanceof Node&&t.contains(e.target)},t.prototype.attachContextMenuElement=function(){this.contextMenuHost.appendChild(this.getDomElement().get(0))},t.prototype.setContextMenuForComponent=function(e){var t=this;e instanceof s.InteractiveContextMenuItem&&e.setContextMenu(this),e instanceof a.Container&&e.getComponents().forEac
1h(function(e){return t.setContextMenuForComponent(e)})},t.prototype.unsetContextMenuForComponent=function(e){var t=this;e instanceof s.InteractiveContextMenuItem&&e.setContextMenu(null),e instanceof a.Container&&e.getComponents().forEach(function(e){return t.unsetContextMenuForComponent(e)})},t}(r.SettingsPanel);t.ContextMenu=l},14145:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InteractiveContextMenuItem=void 0;var r=function(e){function t(t){var n=e.call(this,t)||this;return n.contextMenu=null,n.config=n.mergeConfig(t,{cssClass:"ui-interactive-context-menu-item",role:"menuitem",tabIndex:0,closeContextMenuOnAction:!1,addSettingAsComponent:!1,isSetting:!1},n.config),n}return i(t,e),t.prototype.setContextMenu=function(e){this.contextMenu=e},t.prototype.onClickEvent=function(){this.closeContextMenuForAction(),e.prototype.onClickEvent.call(this)},t.prototype.closeContextMenuForAction=function(){var e;this.config.closeContextMenuOnAction&&(null===(e=this.contextMenu)||void 0===e||e.hide())},t}(n(99066).InteractiveSettingsPanelItem);t.InteractiveContextMenuItem=r},95306:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerContextMenu=void 0;var r=n(54745),a=n(90439),s=n(1230),l=n(78966),c=n(26718),u=n(21142),p=n(49954),f=n(14145),d=n(14394),g=n(62306),h=n(53029),v=function(e){function t(t){var n=e.call(this,t)||this;n.config=n.mergeConfig(t,{cssClasses:["ui-player-context-menu"]},n.config);var o=new f.InteractiveContextMenuItem({label:new s.Label({text:r.i18n.getLocalizer("contextMenu.copyTimestampLink")}),ariaLabel:r.i18n.getLocalizer("contextMenu.copyTimestampLink"),closeContextMenuOnAction:!0});return n.copyTimestampLinkItem=o,n.addComponent(new g.SettingsPanelPage({components:[new y,new h.SettingsPanelSeparator,new p.PlayerInsightsContextMenuItem({playerInsightsPanel:t.playerInsightsPanel}),o]})),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.copyTimestampLinkItem.onClick.subscribe(function(){var e,n=c.TimestampLinkUtils.buildTimestampLink(t.getCurrentTime());if(!(null===(e=navigator.clipboard)||void 0===e?void 0:e.writeText)){console.warn("Clipboard API is not available. Timestamp link was not copied.");return}navigator.clipboard.writeText(n).catch(function(){return console.warn("Failed to copy timestamp link to clipboard.")})});var i=new l.PlayerUtils.LiveStreamDetector(t,n);i.onLiveChanged.subscribe(function(e,t){!n.getConfig().enableTimestampDeepLink||t.live?o.copyTimestampLinkItem.hide():o.copyTimestampLinkItem.show()}),i.detect()},t}(u.ContextMenu);t.PlayerContextMenu=v;var y=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,o=new s.Label({text:"Player: -",cssClasses:["ui-player-context-menu-info"]});return n.config=n.mergeConfig(t,{label:null,cssClasses:["ui-player-context-menu-info-item"],isSetting:!1,role:"group",tabIndex:-1},n.config),n.playerVersionLabel=o,n.addComponent(new s.Label({text:r.i18n.getLocalizer("contextMenu.title"),cssClasses:["ui-player-context-menu-header"]})),n.addComponent(new s.Label({text:r.i18n.getLocalizer("contextMenu.subtitle"),cssClasse
1s:["ui-player-context-menu-subtitle"]})),n.addComponent(o),n.addComponent(new s.Label({text:"UI: ".concat(a.version),cssClasses:["ui-player-context-menu-info"]})),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.playerVersionLabel.setText("Player: ".concat(t.version))},t}(d.SettingsPanelItem)},1230:function(e,t,n){var o,i,r,a=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Label=t.LabelStyle=void 0;var s=n(30040),l=n(9524),c=n(37388),u=n(54745),p=n(29745);(o=r||(t.LabelStyle=r={})).Text="text",o.TextWithLeadingIcon="text-icon-leading",o.TextWithTrailingIcon="text-icon-trailing";var f=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.textElement=null,n.labelEvents={onClick:new c.EventDispatcher,onTextChanged:new c.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-label",labelStyle:r.Text},n.config),n.text=n.config.text,n}return a(t,e),t.prototype.onLanguageChanged=function(){"function"==typeof this.config.text&&this.setText(this.config.text)},t.prototype.toDomElement=function(){var e=this,t=null!=this.config.for?"label":"span",n=new l.DOM("span",{class:this.prefixCss("ui-label-text")},this).html(u.i18n.performLocalization(this.text));this.textElement=n;var o=new l.DOM(t,{id:this.config.id,for:this.config.for,class:this.getCssClasses(),tabindex:this.config.tabIndex.toString()},this);if(o.append(n),o.on("click",function(){e.onClickEvent()}),this.config.labelStyle!==r.Text){var i=new p.Icon;switch(this.config.labelStyle){case r.TextWithTrailingIcon:o.append(i.getDomElement());break;case r.TextWithLeadingIcon:o.prepend(i.getDomElement())}}return o},t.prototype.setText=function(e){if(e!==this.text||"function"==typeof e){this.text=e;var t,n=u.i18n.performLocalization(e);null===(t=this.textElement)||void 0===t||t.html(u.i18n.performLocalization(e)),this.onTextChangedEvent(n)}},t.prototype.getText=function(){return u.i18n.performLocalization(this.text)},t.prototype.clearText=function(){var e;null===(e=this.textElement)||void 0===e||e.html(""),this.onTextChangedEvent(null)},t.prototype.isEmpty=function(){return!this.text},t.prototype.onClickEvent=function(){this.labelEvents.onClick.dispatch(this)},t.prototype.onTextChangedEvent=function(e){this.labelEvents.onTextChanged.dispatch(this,e)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.labelEvents.onClick.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTextChanged",{get:function(){return this.labelEvents.onTextChanged.getEvent()},enumerable:!1,configurable:!0}),t}(s.Component);t.Label=f},94663:function(e,t,n){var o,i,r,a=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataLabel=t.MetadataLabelContent=void 0;var s=n(1230);(o=r||(t.MetadataLabelContent=r={}))[o.Title=0]="Title",o[o.Description=1]="Description";var l=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["label-metadata","label-metadata-"+r[t.content].toLowerCase()]},n.config),n}return a(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),a=n.getConfig(),s=function(){switch(i.content){case r.Title:o.setText(a.metadata.title);break;case r.Description:o.setText(a.metadata.description)}};s(),t.on(t.exports.PlayerEvent.SourceUnloaded,function(){o.setText(null)}
1),n.getConfig().events.onUpdated.subscribe(s)},t}(s.Label);t.MetadataLabel=l},87754:function(e,t,n){var o,i,r,a=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackTimeLabel=t.PlaybackTimeLabelMode=void 0;var s=n(1230),l=n(78966),c=n(74039),u=n(54745);(o=r||(t.PlaybackTimeLabelMode=r={}))[o.CurrentTime=0]="CurrentTime",o[o.TotalTime=1]="TotalTime",o[o.CurrentAndTotalTime=2]="CurrentAndTotalTime",o[o.RemainingTime=3]="RemainingTime";var p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-playbacktimelabel",timeLabelMode:r.CurrentAndTotalTime,hideInLivePlayback:!1},n.config),n}return a(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=!1,a=this.prefixCss("ui-playbacktimelabel-live"),s=this.prefixCss("ui-playbacktimelabel-live-edge"),p=0,f=function(){t.timeShift(0)},d=function(e){"Enter"!==e.key&&" "!==e.key&&"Space"!==e.code||(e.preventDefault(),e.repeat||f())},g=function(){var e=o.getDomElement();e.attr("tabindex","0"),e.attr("role","button");var t=u.i18n.performLocalization(u.i18n.getLocalizer("live"));o.setAriaLabel(u.i18n.getLocalizer("live.jumpToLiveEdge",{liveLabel:t})),o.onClick.subscribe(f),e.on("keydown",d)},h=function(){var e=o.getDomElement();e.attr("tabindex",i.tabIndex.toString()),e.removeAttr("role"),e.removeAttr("aria-label"),o.onClick.unsubscribe(f),e.off("keydown",d)},v=function(){(r=t.isLive())?(o.getDomElement().addClass(a),o.setText(u.i18n.getLocalizer("live")),i.hideInLivePlayback?o.hide():g(),y()):(o.getDomElement().removeClass(a),o.getDomElement().removeClass(s),o.show(),h())},y=function(){if(r){var e=0>t.getTimeShift(),n=0>t.getMaxTimeShift();e||t.isPaused()&&n?o.getDomElement().removeClass(s):o.getDomElement().addClass(s)}},m=function(){r||t.getDuration()===1/0||o.setTime(l.PlayerUtils.getCurrentTimeRelativeToSeekableRange(t),t.getDuration());var e=o.getDomElement().width();e>p&&(p=e,o.getDomElement().css({"min-width":p+"px"}))},b=function(){o.timeFormat=Math.abs(t.isLive()?t.getMaxTimeShift():t.getDuration())>=3600?c.StringUtils.FORMAT_HHMMSS:c.StringUtils.FORMAT_MMSS,m()},C=new l.PlayerUtils.LiveStreamDetector(t,n);C.onLiveChanged.subscribe(function(e,t){r=t.live,m(),b(),v()}),C.detect();var S=function(){p=0,o.getDomElement().css({"min-width":null}),b()};t.on(t.exports.PlayerEvent.TimeChanged,m),t.on(t.exports.PlayerEvent.Ready,b),t.on(t.exports.PlayerEvent.Seeked,m),t.on(t.exports.PlayerEvent.TimeShift,y),t.on(t.exports.PlayerEvent.TimeShifted,y),t.on(t.exports.PlayerEvent.Playing,y),t.on(t.exports.PlayerEvent.Paused,y),t.on(t.exports.PlayerEvent.StallStarted,y),t.on(t.exports.PlayerEvent.StallEnded,y),t.on(t.exports.PlayerEvent.DurationChanged,S),n.getConfig().events.onUpdated.subscribe(S),S()},t.prototype.setTime=function(e,t){var n=c.StringUtils.secondsToTime(e,this.timeFormat),o=c.StringUtils.secondsToTime(t,this.timeFormat);switch(this.config.timeLabelMode){case r.CurrentTime:this.setText("".concat(n));break;case r.TotalTime:this.setText("".concat(o));break;case r.CurrentAndTotalTime:this.setText("".concat(n," / ").concat(o));break;
1case r.RemainingTime:this.setText("".concat(c.StringUtils.secondsToTime(t-e,this.timeFormat)))}},t.prototype.setTimeFormat=function(e){this.timeFormat=e},t}(s.Label);t.PlaybackTimeLabel=p},33794:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackListBox=void 0;var a=n(89701),s=n(1782),l=n(77080),c=function(e){function t(t){void 0===t&&(t={});var n="string"==typeof t||"function"==typeof t?{title:t}:t;return e.call(this,r(r({},n),{listSelector:new l.AudioTrackSelectBox(n)}))||this}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new s.AudioTrackSwitchHandler(t,this.config.listSelector,n)},t}(a.ListBox);t.AudioTrackListBox=c},69563:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ItemSelectionList=void 0;var r=n(89022),a=n(9524),s=n(54745),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{tag:"ul",cssClass:"ui-itemselectionlist"},n.config),n}return i(t,e),t.prototype.isActive=function(){return this.items.length>1},t.prototype.toDomElement=function(){var e=new a.DOM("ul",{id:this.config.id,class:this.getCssClasses()},this);return this.listElement=e,this.updateDomItems(),e},t.prototype.updateDomItems=function(e){var n=this;void 0===e&&(e=null),this.listElement.empty();for(var o=null,i=function(e){e.addClass(n.prefixCss(t.CLASS_SELECTED))},r=function(e){e.removeClass(n.prefixCss(t.CLASS_SELECTED))},l=function(t){var l=new a.DOM("li",{type:"li",class:c.prefixCss("ui-selectionlistitem")}).append(new a.DOM("a",{}).html(s.i18n.performLocalization(t.label)));o||(null==e?o=l:String(e)!==t.key||(o=l)),l.on("click",function(){o&&r(o),o=l,i(l),n.onItemSelectedEvent(t.key,!1)}),o&&i(o),c.listElement.append(l)},c=this,u=0,p=this.items;u<p.length;u++)l(p[u])},t.prototype.onItemsChangedEvent=function(){e.prototype.onItemsChangedEvent.call(this),this.updateDomItems(this.selectedItem)},t.prototype.onItemSelectedEvent=function(t,n){void 0===n&&(n=!0),e.prototype.onItemSelectedEvent.call(this,t),n&&this.updateDomItems(t)},t.CLASS_SELECTED="selected",t}(r.ListSelector);t.ItemSelectionList=l},89701:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ListBox=void 0;var r=n(3325),a=n(62306),s=n(43625),l=n(14394),c=n(1230),u=function(e){function t(t){var n=e.call(this,t)||this;if(n.settingsPanelPage=new a.SettingsPanelPage({}),n.listSelector=t.listSelector,n.config=n.mergeConfig(t,{hidden:!0,cssClasse
1s:["ui-listbox"]},n.config),n.addComponent(n.settingsPanelPage),t.title){var o=new c.Label({text:t.title,cssClasses:["title-label"]});n.settingsPanelPage.addComponent(new l.SettingsPanelItem({label:o,cssClasses:["title-item"],isSetting:!1}))}return n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(e){var i=o.listSelector.getItemForKey(e);if(!i)return null;var r=new s.SettingsPanelSelectOption({label:i.label,labelStyle:c.LabelStyle.TextWithLeadingIcon,settingComponent:o.listSelector,settingsValue:i.key,addSettingAsComponent:!1});return r.configure(t,n),r},r=function(){for(var e=o.settingsPanelPage.getComponents().filter(function(e){return e instanceof s.SettingsPanelSelectOption}),t=0;t<e.length;t++){var n=e[t];o.settingsPanelPage.removeSettingsPanelItem(n)}for(var r=0,a=o.listSelector.getItems();r<a.length;r++){var l=i(a[r].key);l&&o.settingsPanelPage.addSettingsPanelItem(l)}o.onSettingsStateChangedEvent()},a=!1;this.listSelector.onItemsChanged.subscribe(function(){a=!0,r()}),this.settingsPanelPage.configure(t,n),this.listSelector.configure(t,n),a||r()},t}(r.SettingsPanel);t.ListBox=u},89022:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ListSelector=void 0;var a=n(30040),s=n(37388),l=n(5602),c=n(54745),u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.selectedItem=null,n.listSelectorEvents={onItemAdded:new s.EventDispatcher,onItemRemoved:new s.EventDispatcher,onItemsChanged:new s.EventDispatcher,onItemSelected:new s.EventDispatcher,onItemSelectionChanged:new s.EventDispatcher},n.config=n.mergeConfig(t,{items:[],cssClass:"ui-listselector"},n.config),n.items=n.config.items,n}return i(t,e),t.prototype.normalizeItem=function(e){var t=r({},e);return this.config.filter&&!this.config.filter(t)?null:(this.config.translator&&(t.label=this.config.translator(t)),t)},t.prototype.getItemIndex=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].key===e)return t;return -1},t.prototype.haveItemsChanged=function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++){var o=e[n],i=t[n];if(o.key!==i.key||c.i18n.performLocalization(o.label)!==c.i18n.performLocalization(i.label)||o.ariaLabel!==i.ariaLabel)return!0}return!1},t.prototype.insertItem=function(e,t){if(this.config.comparator){this.items.push(e),this.items.sort(this.config.comparator);return}if(t){var n=this.items.findIndex(function(t){return t.key>e.key});n<0?this.items.push(e):this.items.splice(n,0,e);return}this.items.push(e)},t.prototype.getItems=function(){return this.items},t.prototype.hasItem=function(e){return this.getItemIndex(e)>-1},t.prototype.addItem=function(e,t,n,o){void 0===n&&(n=!1),void 0===o&&(o="");var i=this.normalizeItem(r({key:e,label:t},o&&{ariaLabel:o}));if(i){var a=this.getItemIndex(e);a>-1&&(l.ArrayUtils.remove(this.items,this.items[a]),this.onItemRemovedEvent(e)),this.insertItem(i,n),this.onItemAddedEvent(e),this.onItemsChangedEvent()}},t.prototype.removeItem=function(e){var t=this.getItemIndex(e);return t>-1&&(l.ArrayUtils.remove(this.items,this.items[t]),this.onItemRemovedEvent(e),this.onItemsChangedEvent(),!0)},t.prototype.selectItem=function(e){return e===this.selectedItem||this.getItemIndex(e)>-1&&(this.selectedItem=e,this.onItemSelectedEvent(e),!0)},t.prototype.getSelectedItem=function(){return this.selectedItem},t.prototype.getItemForKey=function(e){return this.items.find(function(t){return t.key===e})},t.prototype.synchronizeItems=function(e){var t=this,n=e.map(function(e){return t.normalizeItem(e)}).filter(function(e){return null!==e});this.config.comparator&&n.sort(this.config.comparator);var o=this.haveItemsChanged(this.items,n),i=new Set(this.items.map(function(e){return e.key})),r=new Set(n.map(function(e){return e.key})),a=this.items.filter(function(e){return!r.has(e.key)}).map(function(e){return e.key}),s=n.filter(function(e){return!i.has(e.key)}).map(function(e){return e.key});this.items=n,null===this.selectedItem||r.has(this.selectedItem)||(this.selectedItem=null);for(var l=0;l<a.length;l++){var c=a[l];this.onItemRemovedEvent(c)}for(var u=0;u<s.length;u++){var c=s[u];this.onItemAddedEvent(c)}o&&this.onItemsChangedEvent()},t.prototype.clearItems=function(){if(0!==this.items.length){var e=this.items;this.items=[],this.selectedItem=null;for(var t=0;t<e.length;t++){var n=e[t];this.onItemRemovedEvent(n.key)}this.onItemsChangedEvent()}},t.prototype.itemCount=function(){return Object.keys(this.items).length},t.prototype.onItemAddedEvent=function(e){this.listSelectorEvents.onItemAdded.dispatch(this,e)},t.prototype.onItemRemovedEvent=function(e){this.listSelectorEvents.onItemRemoved.dispatch(this,e)},t.prototype.onItemsChangedEvent=function(){this.listSelectorEvents.onItemsChanged.dispatch(this)},t.prototype.onItemSelectedEvent=function(e){this.listSelectorEvents.onItemSelected.dispatch(this,e)},t.prototype.onItemSelectionChangedEvent=function(e){this.listSelectorEvents.onItemSelectionChanged.dispatch(this,e)},t.prototype.dispatchItemSelectionChanged=function(e,t){void 0===t&&(t=!0),t&&this.selectItem(e),this.onItemSelectionChangedEvent(e)},Object.defineProperty(t.prototype,"onItemAdded",{get:function(){return this.listSelectorEvents.onItemAdded.getEvent()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemRemoved",{get:function(){return this.listSelectorEvents.onItemRemoved.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemsChanged",{get:function(){return this.listSelectorEvents.onItemsChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemSelected",{get:function(){return this.listSelectorEvents.onItemSelected.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemSelectionChanged",{get:function(){return this.listSelectorEvents.onItemSelectionChanged.getEvent()},enumerable:!1,configurable:!0}),t}(a.Component);t.ListSelector=u},42569:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleListBox=void 0;var a=n(89701),s=n(42187),l=n(80868),c=function(e){function t(t){void 0===t&&(t={});var n="string"==typeof t||"function"==typeof t?{title:t}:t;return e.call(this,r(r({},n),{listSelector:new l.SubtitleSelectBox(n)}))||this}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new s.SubtitleSwitchHandler(t,this.config.listSelector,n)},t}(a.ListBox);t.SubtitleListBox=c},8359:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferingOverlay=void 0;var r=n(35238),a=n(30040),s=n(9110),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.indicators=[new a.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"}),new a.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"}),new a.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"})],n.config=n.mergeConfig(t,{cssClass:"ui-buffering-overlay",hidden:!0,components:n.indicators,showDelayMs:1e3},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=new s.Timeout(i.showDelayMs,function(){n.onBufferingShow.dispatch(o),o.show()}),a=function(){r.start()},l=function(){t.isPlaying()&&a()},c=function(){r.clear(),n.onBufferingHide.dispatch(o),o.hide()};t.on(t.exports.PlayerEvent.StallStarted,a),t.on(t.exports.PlayerEvent.StallEnded,c),t.on(t.exports.PlayerEvent.Play,a),t.on(t.exports.PlayerEvent.Playing,c),t.on(t.exports.PlayerEvent.Paused,c),t.on(t.exports.PlayerEvent.Seek,l),t.on(t.exports.PlayerEvent.Seeked,c),t.on(t.exports.PlayerEvent.TimeShift,l),t.on(t.exports.PlayerEvent.TimeShifted,c),t.on(t.exports.PlayerEvent.SourceUnloaded,c),t.isStalled()&&this.show()},t}(r.Container);t.BufferingOverlay=l},29820:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.CastStatusOverlay=void 0;var r=n(35238),a=n(1230),s=n(54745),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.statusLabel=new a.Label({cssClass:"ui-cast-status-label"}),n.config=n.mergeConfig(t,{cssClass:"ui-cast-status-overlay",components:[n.statusLabel],hidden:!0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),t.on(t.exports.PlayerEvent.CastWaitingForDevice,function(e){o.show();var t=e.castPayload.deviceName;o.statusLabel.setText(s.i18n.getLocalizer("connectingTo",{castDeviceName:t}))}),t.on(t.exports.PlayerEvent.CastStarted,function(e){o.show();var t=e.deviceName;o.statusLabel.setText(s.i18n.getLocalizer("playingOn",{castDeviceName:t}))}),t.on(t.exports.PlayerEvent.CastStopped,function(e){o.hide()})},t}(r.Container);t.CastStatusOverlay=l},79863:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClickOverlay=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-clickoverlay",role:n.config.role},n.config),n}return i(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this.setUrl(this.config.url);var t=this.getDomElement();t.on("click",function(){t.data("url")&&window.open(t.data("url"),"_blank")})},t.prototype.getUrl=function(){return this.getDomElement().data("url")},t.prototype.setUrl=function(e){(void 0===e||null==e)&&(e=""),this.getDomElement().data("url",e)},t}(n(12070).Button);t.ClickOverlay=r},64248:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DismissClickOverlay=void 0;var r=n(35238),a=n(3325),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-dismiss-click-overlay",role:n.config.role},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.config.target.onShow.subscribe(function(){o.show()}),this.config.target.onHide.subscribe(function(){o.hide()}),this.getDomElement().on("click",function(){o.config.target instanceof a.SettingsPanel?o.config.target.hideAndReset():o.config.target.hide()})},t}(r.Container);t.DismissClickOverlay=s},19554:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessageOverlay=void 0;var r=n(35238),a=n(1230),s=n(39038),l=n(51525),c=n(47673),u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.errorLabel=new a.Label({cssClass:"ui-errormessage-label"}),n.tvNoiseBackground=new s.TvNoiseCanvas,n.config=n.mergeConfig(t,{cssClass:"ui-errormessage-overlay",components:[n.tvNoiseBackgroun
1d,n.errorLabel],hidden:!0,role:"status"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=function(e,t){var r=function(e,t){if(e){if("function"==typeof e)return e(t);if(e[t.code]){var n=e[t.code];return"string"==typeof n?n:n(t)}}}(n.getConfig().errorMessages||i.messages,e);r&&(t=r),o.display(t)};if((0,c.isMobileV3PlayerAPI)(t)){var a=function(e){var t=l.ErrorUtils.defaultMobileV3ErrorMessageTranslator(e);r(e,t)};t.on(c.MobileV3PlayerEvent.PlayerError,a),t.on(c.MobileV3PlayerEvent.SourceError,a)}else t.on(t.exports.PlayerEvent.Error,function(e){var t=l.ErrorUtils.defaultWebErrorMessageTranslator(e);r(e,t)});t.on(t.exports.PlayerEvent.SourceLoaded,function(e){o.isShown()&&o.clear()})},t.prototype.display=function(e){this.errorLabel.setText(e),this.tvNoiseBackground.start(),this.show()},t.prototype.clear=function(){this.errorLabel.setText(""),this.tvNoiseBackground.stop(),this.hide()},t.prototype.release=function(){e.prototype.release.call(this),this.clear()},t}(r.Container);t.ErrorMessageOverlay=u},75114:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackToggleOverlay=void 0;var r=n(35238),a=n(97172),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.playbackToggleButton=new a.HugePlaybackToggleButton({enterFullscreenOnInitialPlayback:!!t.enterFullscreenOnInitialPlayback}),n.config=n.mergeConfig(t,{cssClass:"ui-playbacktoggle-overlay",components:[n.playbackToggleButton]},n.config),n}return i(t,e),t}(r.Container);t.PlaybackToggleOverlay=s},95112:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RecommendationOverlay=void 0;var r=n(35238),a=n(32816),s=n(85728),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.replayButton=new a.HugeReplayButton,n.recommendationContainer=new r.Container({components:[],cssClasses:["recommendation-overlay-row","recommendations-section"]}),n.config=n.mergeConfig(t,{cssClass:"ui-recommendation-overlay",hidden:!0,components:[new r.Container({components:[n.replayButton,n.recommendationContainer],cssClasses:["recommendation-overlay-row","replay-section"]})]},n.config),n}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);var r=function(){i.recommendationContainer.removeComponents(),i.recommendationContainer.updateComponents(),i.getDomElement().removeClass(i.prefixCss(t.CLASS_HAS_RECOMMENDATIONS))},a=function(){r();var e=o.getConfig().metadata.recommendations;if(0!=e.length){var a=1;e.forEach(function(e){var t=new s.RecommendationItem({recommendationConfig:e,cssClasses:["recommendation-item-"+a++]});t.configure(n,o),i.recommendationContainer.addComponent(t)}),i.recommendationContainer.updateComponents(),i.getDomElement().addClass(i.prefixCss(t.CLASS_HAS_RECOMMENDATIONS))}};o.getConfig().events.onUpdated.subscribe(a),n.on(n.exports.PlayerEvent.SourceUnloaded,function(){r(),i.hide()}),n.on(n.exports.PlayerEvent.PlaybackFinished,function(){i.show()}),n.on(n.exports.PlayerEvent.Play,function(){i.hide()}),a()},t.CLASS_HAS_RECOMMENDATIONS="recommendations",t}(r.Container);t.RecommendationOverlay=l},8954:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.
vendor: 4,636 bytes, line 1
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleRegionContainer=t.SubtitleRegionContainerManager=t.SubtitleLabel=t.SubtitleOverlay=void 0;var r=n(35238),a=n(1230),s=n(71484),l=n(37388),c=n(9524),u=n(54745),p=n(45419),f=function(e){function t(n){void 0===n&&(n={});var o=e.call(this,n)||this;return o.preprocessLabelEventCallback=new l.EventDispatcher,o.cea608Enabled=!1,o.cea608FontSizeFactor=1,o.cea608SmallPlayerHeightThreshold=t.DEFAULT_CEA608_SMALL_PLAYER_HEIGHT_THRESHOLD,o.filterFontSizeOptions=function(e){if(o.cea608Enabled&&null!==e.key){var t=parseInt(e.key,10);return!isNaN(t)&&t<=200}return!0},o.previewSubtitleActive=!1,o.previewSubtitle=new d({text:u.i18n.getLocalizer("subtitle.example")}),o.config=o.mergeConfig(n,{cssClass:"ui-subtitle-overlay",enableCea608CaptionFormatting:!0,enableCea608CaptionPositioning:!0},o.config),o}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);var r=o.getConfig();void 0!==r.cea608SmallPlayerHeightThreshold&&(this.cea608SmallPlayerHeightThreshold=r.cea608SmallPlayerHeightThreshold);var a=new g;this.subtitleManager=a,this.subtitleContainerManager=new h(this),n.on(n.exports.PlayerEvent.CueEnter,function(e){var t=i.generateLabel(e);a.cueEnter(e,t),i.preprocessLabelEventCallback.dispatch(e,t),i.previewSubtitleActive&&i.subtitleContainerManager.removeLabel(i.previewSubtitle),i.show(),i.subtitleContainerManager.addLabel(t,i.getDomElement().size()),i.updateComponents(),o.getConfig().forceSubtitlesIntoViewContainer&&i.handleSubtitleCropping(t)}),n.on(n.exports.PlayerEvent.CueUpdate,function(e){var t=i.generateLabel(e),n=a.cueUpdate(e,t);i.preprocessLabelEventCallback.dispatch(e,t),n&&(i.subtitleContainerManager.replaceLabel(n,t,i.getDomElement().size()),i.updateComponents()),o.getConfig().forceSubtitlesIntoViewContainer&&i.handleSubtitleCropping(t)}),n.on(n.exports.PlayerEvent.CueExit,function(e){var t=a.cueExit(e);t&&(i.subtitleContainerManager.removeLabel(t),i.updateComponents()),a.hasCues||(i.previewSubtitleActive?(i.subtitleContainerManager.addLabel(i.previewSubtitle),i.updateComponents()):i.hide())});var l=function(){i.hide(),i.subtitleContainerManager.clear(),a.clear(),i.removeComponents(),i.updateComponents()},u=function(){a.clearInactiveCues(n.getCurrentTime()).forEach(function(e){i.subtitleContainerManager.removeLabel(e.label)}),i.updateComponents()};n.on(n.exports.PlayerEvent.AudioChanged,l),n.on(n.exports.PlayerEvent.SubtitleDisabled,l),n.on(n.exports.PlayerEvent.Seeked,u),n.on(n.exports.PlayerEvent.TimeShifted,u),n.on(n.exports.PlayerEvent.PlaybackFinished,l),n.on(n.exports.PlayerEvent.SourceUnloaded,l),o.onComponentShow.subscribe(function(e){if(e instanceof s.ControlBar){i.getDomElement().addClass(i.prefixCss(t.CLASS_CONTROLBAR_VISIBLE));var n=!i.getDomElement().hasClass(i.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED));i.cea608Enabled&&i.ensureCea608GridSizeUpdated&&n&&i.getDomElement().waitForTransitionEnd("bottom").then(i.ensureCea608GridSizeUpdated)}}),o.onComponentHide.subscribe(function(e){if(e instanceof s.ControlBar){i.getDomElement().removeClass(i.prefixCss(t.CLASS_CONTROLBAR_VISIBLE));var n=!i.getDomElement().hasClass(i.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED));i.cea608Enabled&&i.ensureCea608GridSizeUpdated&&n&&i.getDomElement().waitForTransitionEnd("bottom").then(i.ensureCea608GridSizeUpdated)}}),this.configureCea608Captions(n,o),l(),this.updateCea608PushupFromPlayerHeight(new c.DOM(n.getContainer()).height())},t.prototype.updateCea608PushupFromPlayerHeight=function(e){this.cea608SmallPlayerHeightThreshold>0&&e<=this.cea608SmallPlayerHeightThreshold?this.getDomElement().addClass(this.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED)):this.getDomElement().removeClass(this.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED))},t.prototype.setFontSizeFactor=function(e){this.cea608FontSizeFactor=Math.max(.5,Math.min(2,e))},t.prototype.detectCroppedSubtitleLabel=function(e){var t=this.getDomElement().get(0),n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{top:n.top<o.top,right:n.right>o.right,bottom:n.bottom>o.bottom,left:n.left<o.left}},t.prototype.handleSubtitleCropping=function(e){var t=e.getDomElement(),n=this.detectCroppedSubtitleLabel(t.get(0));
1n.top&&(t.css("top","0"),t.removeCss("bottom")),n.right&&(t.css("right","0"),t.removeCss("left")),n.bottom&&(t.css("bottom","0"),t.removeCss("top")),n.left&&(t.css("left","0"),t.removeCss("right"))},t.prototype.generateLabel=function(e){var t,n=e.region,o=(null===(t=e.position)||void 0===t?void 0:t.row)||0;return y(e)&&(e.position.row=e.position.row||0,e.position.column=e.position.column||0,this.isCea608PositioningEnabled()&&(n=n||"cea608-row-".concat(e.position.row))),new d({text:e.html||g.generateImageTagText(e.image)||e.text,cssClasses:e.vtt&&!e.vtt.region?["subtitle-vtt-cue"]:[],vtt:e.vtt,region:n,regionStyle:e.regionStyle,originalRowPosition:o})},t.prototype.resolveFontSizeFactor=function(e){return parseInt(e)/100},t.prototype.configureCea608Captions=function(e,n){var o,i,r=this,a=0,s=0,l=0;this.cea608Enabled=!1;var c=!1,u={overlayWidth:0,overlayHeight:0,fontSizeFactor:0},p=n.getSubtitleSettingsManager();if(null!=p.fontSize.value){var f=this.resolveFontSizeFactor(p.fontSize.value);this.setFontSizeFactor(f)}p.fontSize.onChanged.subscribe(function(e,t){if(t.isSet()){var n=r.resolveFontSizeFactor(t.value);r.setFontSizeFactor(n)}else r.setFontSizeFactor(1);r.cea608Enabled&&r.ensureCea608GridSizeUpdated()}),null===(o=this.onShow)||void 0===o||o.subscribe(function(){r.cea608Enabled&&r.ensureCea608GridSizeUpdated()}),this.ensureCea608GridSizeUpdated=function(){var e=r.getDomElement(),n=e.width(),o=e.height(),c=n!==u.overlayWidth||o!==u.overlayHeight,p=r.cea608FontSizeFactor!==u.fontSizeFactor;if(c||p){u={overlayWidth:n,overlayHeight:o,fontSizeFactor:r.cea608FontSizeFactor};var f=new d({text:"X"});f.getDomElement().css({"font-size":"200px","line-height":"200px",visibility:"hidden"}),r.addComponent(f),r.updateComponents(),r.show();var g=f.getDomElement().width(),h=f.getDomElement().height(),y=g/h;r.removeComponent(f),r.updateComponents(),r.subtitleManager.hasCues||r.hide();var m=Math.floor((1-parseFloat(t.DEFAULT_CAPTION_LEFT_OFFSET)/100)*n)-10;if(m/o>g*t.CEA608_NUM_COLUMNS/(h*t.CEA608_NUM_ROWS)){var b=.6000000000000001*(a=o/t.CEA608_NUM_ROWS);s=b*r.cea608FontSizeFactor,l=Math.max(m/t.CEA608_NUM_COLUMNS-s*y,0)}else{var b=.6000000000000001*(a=m/t.CEA608_NUM_COLUMNS/y);s=b*r.cea608FontSizeFactor,l=0}i=.2*a,e.get().forEach(function(e){e.style.setProperty("--cea608-row-height","".concat(a,"px"))});for(var C=function(e){var t={"font-size":"".concat(s,"px"),"line-height":"".concat(a-i,"px")};r.isCea608FormattingEnabled()&&(t["letter-spacing"]="".concat(l,"px")),e.getDomElement().css(t),e.regionStyle="margin: ".concat(i/2,"px; height: ").concat(a,"px")},S=0,P=r.getComponents();S<P.length;S++){var w=P[S];w instanceof v&&(w.getDomElement().css({margin:"".concat(i/2,"px"),height:"".concat(a,"px")}),w.getComponents().forEach(function(e){C(e)})),w instanceof d&&C(w)}}},e.on(e.exports.PlayerEvent.PlayerResized,function(e){r.updateCea608PushupFromPlayerHeight(parseFloat(e.height)),r.cea608Enabled&&r.ensureCea608GridSizeUpdated()}),this.preprocessLabelEventCallback.subscribe(function(e,n){if(y(e)){if(r.isCea608PositioningEnabled()){!r.cea608Enabled&&(r.cea608Enabled=!0,r.getDomElement().addClass(r.prefixCss(t.CLASS_CEA_608)),r.isCea608FormattingEnabled()&&r.getDomElement().addClass(r.prefixCss(t.CLASS_CEA_608_FORMATTING)));var o=e.position.column*t.CEA608_COLUMN_OFFSET+"%";"0%"===o&&(o=t.DEFAULT_CAPTION_LEFT_OFFSET);var u={left:o,"font-size":"".concat(s,"px"),"line-height":"".concat(a-i,"px")};r.isCea608FormattingEnabled()&&(u["letter-spacing"]="".concat(l,"px")),n.getDomElement().css(u),n.regionStyle="margin: ".concat(i/2,"px; height: ").concat(a,"px")}else r.isCea608FormattingEnabled()&&!c&&(c=!0,r.getDomElement().addClass(r.prefixCss(t.CLASS_CEA_608_FORMATTING)))}});var g=function(){r.getDomElement().removeClass(r.prefixCss(t.CLASS_CEA_608)),r.getDomElement().removeClass(r.prefixCss(t.CLASS_CEA_608_FORMATTING)),r.cea608Enabled&&(u={overlayWidth:0,overlayHeight:0,fontSizeFactor:0}),r.cea608Enabled=!1,c=!1};e.on(e.exports.PlayerEvent.CueExit,function(){r.subtitleManager.hasCues||g()}),e.on(e.exports.PlayerEvent.SourceUnloaded,g),e.on(e.exports.PlayerEvent.SubtitleEnabled,g),e.on(e.exports.PlayerEvent.SubtitleDisabled,g)},t.prototype.enablePreviewSubtitleLabel=function(){this.subtitleManager.hasCues||(this.previewSubtitleActive=!0,this.subtitleContainerManager.addLabel(this.previewSubtitle),this.updateComponents(),this.show())},t.prototype.removePreviewSubtitleLabel=function(){this.previewSubtitleActive&&(this.previewSubtitleActive=!1,this.subtitleContainerManager.removeLabel(this.previewSubtitle),this.updateComponents())},t.prototype.isCea608FormattingEnabled=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.enableCea608CaptionFormatting)!==!1},t.prototype.isCea608PositioningEnabled=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.enableCea608CaptionPositioning)!==!1},t.CLASS_CONTROLBAR_VISIBLE="controlbar-visible",t.CLASS_CEA_608="cea608",t.CLASS_CEA608_PUSHUP_DISABLED="cea608-pushup-disabled",t.DEFAULT_CEA608_SMALL_PLAYER_HEIGHT_THRESHOLD=360,t.CLASS_CEA_608_FORMATTING="cea608-formatting",t.CEA608_NUM_ROWS=15,t.CEA608_NUM_COLUMNS=32,t.CEA608_COLUMN_OFFSET=100/t.CEA608_NUM_COLUMNS,t.DEFAULT_CAPTION_LEFT_OFFSET="0.5%",t}(r.Container);t.SubtitleOverlay=f;var d=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-subtitle-label"},n.config),n}return i(t,e),Object.defineProperty(t.prototype,"vtt",{get:function(){return this.config.vtt}
vendor: 8,485 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this.config.region},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"regionStyle",{get:function(){return this.config.regionStyle},set:function(e){this.config.regionStyle=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"originalRowPosition",{get:function(){return this.config.originalRowPosition},set:function(e){this.config.originalRowPosition=e},enumerable:!1,configurable:!0}),t}(a.Label);t.SubtitleLabel=d;var g=function(){function e(){this.activeSubtitleCueMap={},this.activeSubtitleCueCount=0}return e.calculateId=function(e){var t=e.start+"-"+e.text;return e.position&&(t+="-"+e.position.row+"-"+e.position.column),t},e.prototype.cueEnter=function(e,t){this.addCueToMap(e,t)},e.prototype.cueUpdate=function(e,t){var n=this.popCueFromMap(e);if(n)return this.addCueToMap(e,t),n},e.prototype.addCueToMap=function(t,n){var o=e.calculateId(t);this.activeSubtitleCueMap[o]=this.activeSubtitleCueMap[o]||[],this.activeSubtitleCueMap[o].push({event:t,label:n}),this.activeSubtitleCueCount++},e.prototype.popCueFromMap=function(t){var n=e.calculateId(t),o=this.activeSubtitleCueMap[n];if(o&&o.length>0){var i=o.shift();return this.activeSubtitleCueCount--,i.label}},e.prototype.clearInactiveCues=function(e){var t=this,n=[];return Object.keys(this.activeSubtitleCueMap).forEach(function(o){t.activeSubtitleCueMap[o].forEach(function(o){(e<o.event.start||e>o.event.end)&&(t.popCueFromMap(o.event),n.push(o))})}),n},e.generateImageTagText=function(e){if(e){var t=new c.DOM("img",{src:e});return t.css("width","100%"),t.get(0).outerHTML}},e.prototype.getCues=function(t){var n=e.calculateId(t),o=this.activeSubtitleCueMap[n];if(o&&o.length>0)return o.map(function(e){return e.label})},e.prototype.cueExit=function(e){return this.popCueFromMap(e)},Object.defineProperty(e.prototype,"cueCount",{get:function(){return this.activeSubtitleCueCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCues",{get:function(){return this.cueCount>0},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.activeSubtitleCueMap={},this.activeSubtitleCueCount=0},e}(),h=function(){function e(e){this.subtitleOverlay=e,this.subtitleRegionContainers={},this.subtitleOverlay=e}return e.prototype.getRegion=function(e){return e.vtt?{regionContainerId:e.vtt.region&&e.vtt.region.id?e.vtt.region.id:"vtt",regionName:"vtt"}:{regionContainerId:e.region||"default",regionName:e.region||"default"}},e.prototype.addLabel=function(e,t){var n=this.getRegion(e),o=n.regionContainerId,i=n.regionName,r=["subtitle-position-".concat(i)];if(e.vtt&&e.vtt.region?(r.push("subtitle-vtt-region-container"),r.push("vtt-region-".concat(e.vtt.region.id))):e.vtt&&r.push("subtitle-vtt-cue-container"),!this.subtitleRegionContainers[o]){var a=new v({cssClasses:r});for(var s in this.subtitleRegionContainers[o]=a,e.regionStyle&&a.getDomElement().attr("style",e.regionStyle),e.vtt&&a.getDomElement().css("position","static"),a.getDomElement(),this.subtitleRegionContainers)this.subtitleOverlay.addComponent(this.subtitleRegionContainers[s])}this.subtitleRegionContainers[o].addLabel(e,t)},e.prototype.replaceLabel=function(e,t,n){var o=this.getRegion(e),i=this.getRegion(t);if(o.regionContainerId===i.regionContainerId){var r=this.subtitleRegionContainers[o.regionContainerId];r.removeLabel(e),r.addLabel(t,n);return}this.removeLabel(e),this.addLabel(t,n)},e.prototype.removeLabel=function(e){var t;t=e.vtt?e.vtt.region&&e.vtt.region.id?e.vtt.region.id:"vtt":e.region||"default",this.subtitleRegionContainers[t].removeLabel(e),this.subtitleRegionContainers[t].isEmpty()&&(this.subtitleOverlay.removeComponent(this.subtitleRegionContainers[t]),delete this.subtitleRegionContainers[t])},e.prototype.clear=function(){for(var e in this.subtitleRegionContainers)this.subtitleOverlay.removeComponent(this.subtitleRegionContainers[e]);this.subtitleRegionContainers={}},e}();t.SubtitleRegionContainerManager=h;var v=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.labelCount=0,n.config=n.mergeConfig(t,{cssClass:"subtitle-region-container"},n.config),n}return i(t,e),t.prototype.addLabel=function(e,t){this.labelCount++,e.vtt&&(e.vtt.region&&t&&p.VttUtils.setVttRegionStyles(this,e.vtt.region,t),p.VttUtils.setVttCueBoxStyles(e,t)),this.addComponent(e),this.updateComponents()},t.prototype.removeLabel=function(e){this.labelCount--,this.removeComponent(e),this.updateComponents()},t.prototype.isEmpty=function(){return 0===this.labelCount},t}(r.Container);function y(e){return null!=e.position}t.SubtitleRegionContainer=v},75482:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TouchControlOverlay=void 0;var r=n(35238),a=n(43187),s=n(37388),l=n(9110),c=n(1230),u=n(54745),p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.SEEK_FORWARD_CLASS="seek-forward",n.SEEK_BACKWARD_CLASS="seek-backward",n.touchControlEvents={onSingleClick:new s.EventDispatcher,onDoubleClick:new s.EventDispatcher,onSeekBackward:new s.EventDispatcher,onSeekForward:new s.EventDispatcher},n.playbackToggleButton=new a.SmallCenteredPlaybackToggleButton({enterFullscreenOnInitialPlayback:!!t.enterFullscreenOnInitialPlayback}),n.seekForwardLabel=new c.Label({text:"",for:n.getConfig().id,cssClass:"seek-forward-label",hidden:!0}),n.seekBackwardLabel=new c.Label({text:"",for:n.getConfig().id,cssClass:"seek-backward-label",hidden:!0}),n.config=n.mergeConfig(t,{cssClass:"ui-touch-control-overlay",acceptsTouchWithUiHidden:!0,seekTime:10,seekDoubleTapMargin:15,seekDoubleTapTimeout:200,components:[n.seekBackwardLabel,n.playbackToggleButton,n.seekForwardLabel]},n.config),n}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);var r=0,a=0;this.doubleTapTimeout=new l.Timeout(this.config.seekDoubleTapTimeout,function(){i.couldBeDoubleTapping=!1,a=0,setTimeout(function(){return i.hideSeekAnimationElements()},150)});var s=!1,c=!1,p=function(){i.playbackToggleButton.show()},f=function(){i.playbackToggleButton.hide()};o.onBufferingShow.subscribe(function(){s=!0,f()}),o.onBufferingHide.subscribe(function(){s=!1,c&&p()}),o.onControlsHide.subscribe(function(){c=!1,f()}),o.onControlsShow.subscribe(function(){c=!0,s||p()}),this.touchControlEvents.onSeekBackward.subscribe(function(){r-=i.config.seekTime,n.seek(r),i.seekBackwardLabel.setText(Math.abs(Math.round(r-a))+" "+u.i18n.performLocalization(u.i18n.getLocalizer("settings.time.seconds"))),i.seekBackwardLabel.show(),i.getDomElement().addClass(i.prefixCss(i.SEEK_BACKWARD_CLASS)),i.seekForwardLabel.hide(),i.getDomElement().removeClass(i.prefixCss(i.SEEK_FORWARD_CLASS))}),this.touchControlEvents.onSeekForward.subscribe(function(){r+=i.config.seekTime,n.seek(r),i.seekForwardLabel.setText(Math.abs(Math.round(r-a))+" "+u.i18n.performLocalization(u.i18n.getLocalizer("settings.time.seconds"))),i.seekForwardLabel.show(),i.getDomElement().addClass(i.prefixCss(i.SEEK_FORWARD_CLASS)),i.seekBackwardLabel.hide(),i.getDomElement().removeClass(i.prefixCss(i.SEEK_BACKWARD_CLASS))}),this.touchControlEvents.onSingleClick.subscribe(function(e,t){o.getUI().toggleUiShown(),a=r=n.getCurrentTime();var s=t.target.getBoundingClientRect(),l=t.clientX-s.left,c=t.clientY-s.top;i.latestTapPosition={x:l,y:c}}),this.touchControlEvents.onDoubleClick.subscribe(function(e,n){o.getUI().hideUi();var r=n.target;if(r&&r.component instanceof t){var a=r.clientWidth,s=.4*a,l=r.getBoundingClientRect(),c=n.clientX-l.left,u=n.clientY-l.top,p=i.config.seekDoubleTapMargin;Math.abs(i.latestTapPosition.x-c)<=p&&Math.abs(i.latestTapPosition.y-u)<=p&&(c<s?i.touchControlEvents.onSeekBackward.dispatch(i):c>a-s&&i.touchControlEvents.onSeekForward.dispatch(i)),i.latestTapPosition={x:c,y:u}}}),this.getDomElement().on("click",function(e){e.target.component instanceof t&&d(e)});var d=function(e){i.couldBeDoubleTapping?i.onDoubleClickEvent(e):i.onSingleClickEvent(e),i.c
1ouldBeDoubleTapping=!0,i.doubleTapTimeout.start()}},t.prototype.hideSeekAnimationElements=function(){this.getDomElement().removeClass(this.prefixCss(this.SEEK_FORWARD_CLASS)),this.getDomElement().removeClass(this.prefixCss(this.SEEK_BACKWARD_CLASS)),this.seekForwardLabel.hide(),this.seekBackwardLabel.hide()},t.prototype.onDoubleClickEvent=function(e){this.touchControlEvents.onDoubleClick.dispatch(this,e)},t.prototype.onSingleClickEvent=function(e){this.touchControlEvents.onSingleClick.dispatch(this,e)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.touchControlEvents.onSingleClick.getEvent()},enumerable:!1,configurable:!0}),t}(r.Container);t.TouchControlOverlay=p},49954:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightsContextMenuItem=void 0;var r=n(54745),a=n(14145),s=n(1230),l=function(e){function t(t){var n=e.call(this,t)||this,o=new s.Label({text:r.i18n.getLocalizer("playerInsights.show")});return n.config=n.mergeConfig(t,{ariaLabel:r.i18n.getLocalizer("playerInsights.show"),closeContextMenuOnAction:!0},n.config),n.itemLabel=o,n.playerInsightsPanel=t.playerInsightsPanel,n.addComponent(o),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){var e=o.playerInsightsPanel.isShown()?r.i18n.getLocalizer("playerInsights.hide"):r.i18n.getLocalizer("playerInsights.show");o.itemLabel.setText(e),o.setAriaLabel(e)};this.playerInsightsPanel.onShow.subscribe(i),this.playerInsightsPanel.onHide.subscribe(i),this.onClick.subscribe(function(){return o.playerInsightsPanel.toggleHidden()}),i()},t}(a.InteractiveContextMenuItem);t.PlayerInsightsContextMenuItem=l},11506:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightsPanel=void 0;var a=n(19772),s=n(3325),l=n(62306),c=n(52137),u=n(8897),p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.playerInsightsChangedHandler=function(e,t){t.forEach(function(e,t){var o=n.insightItems[t];o&&(e.visible?o.show():o.hide(),null!=e.value&&""!==e.value&&o.setTrailingLabel(e.value))})};var o=new a.PlayerInsightsProvider,i=o.getInsights().map(function(e){return new c.PlayerInsightsPanelItem({leadingLabel:e.leadingLabel})}),s=new u.PlayerInsightsPanelTitleItem,p=new l.SettingsPanelPage({components:r([s],i,!0)});return s.setTarget(n),n.insightsProvider=o,n.insightItems=i,n.config=n.mergeConfig(t,{cssClasses:["ui-player-insights-panel"],hidden:!0,hideDelay:-1,hideOnControlsHide:!1,hideOnOtherSettingsPanelOpening:!1,refreshIntervalMs:1e3},n.config),n.addComponent(p),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.insightsProvider.onChanged.subscribe(this.playerInsightsChangedHandler),this.insightsProvider.initialize(t,n,this.config.refreshIntervalMs),this.onShow.subscribe(function(){return o.insightsProvider.activate()}
vendor: 6,961 bytes, line 1
1),this.onHide.subscribe(function(){return o.insightsProvider.deactivate()})},t.prototype.release=function(){this.insightsProvider.release(),e.prototype.release.call(this)},t}(s.SettingsPanel);t.PlayerInsightsPanel=p},52137:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightsPanelItem=void 0;var r=n(1230),a=function(e){function t(t){var n=e.call(this,t)||this,o=new r.Label({text:t.leadingLabel,cssClasses:["ui-player-insights-panel-item-leading-label"]}),i=new r.Label({text:"-",cssClasses:["ui-player-insights-panel-item-trailing-label"]});return n.config=n.mergeConfig(t,{cssClasses:["ui-player-insights-panel-item"],isSetting:!1,role:"group",tabIndex:-1},n.config),n.trailingLabel=i,n.addComponent(o),n.addComponent(i),n}return i(t,e),t.prototype.setTrailingLabel=function(e){this.trailingLabel.setText(e)},t}(n(14394).SettingsPanelItem);t.PlayerInsightsPanelItem=a},8897:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightsPanelTitleItem=void 0;var r=n(54745),a=n(12070),s=n(1230),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.target=null;var o=new s.Label({text:"Player Insights",cssClasses:["ui-player-insights-panel-title-label"]}),i=new a.Button({cssClass:"ui-closebutton",cssClasses:["ui-player-insights-panel-close-button"],text:r.i18n.getLocalizer("close")});return n.config=n.mergeConfig(t,{cssClasses:["title-item","ui-player-insights-panel-title-item"],isSetting:!1,role:"group",tabIndex:-1},n.config),n.closeButton=i,n.addComponent(o),n.addComponent(i),n}return i(t,e),t.prototype.setTarget=function(e){this.target=e},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.closeButton.onClick.subscribe(function(){var e;null===(e=o.target)||void 0===e||e.hide()})},t}(n(14394).SettingsPanelItem);t.PlayerInsightsPanelTitleItem=l},49067:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBar=void 0;var r=n(60145),a=n(30040),s=n(9524),l=n(37388),c=n(9110),u=n(78966),p=n(74039),f=n(75351),d=n(54745),g=n(62772),h=n(16610),v=n(87047),y=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.playbackPositionPercentage=0,n.isUserSeeking=!1,n.isAdPlaying=!1,n.seekBarEvents={onSeek:new l.EventDispatcher,onSeekPreview:new l.EventDispatcher,onSeeked:new l.EventDispatcher},n.seekWhileScrubbing=function(e,t){t.scrubbing&&n.seek(t.position)},n.getTargetSeekPosition=function(e){var t;if(n.player.isLive()){var o=n.player.getMaxTimeShift();t=o-e/100*o}else{var i=u.PlayerUtils.getSeekableRangeStart(n.player,0);t=n.player.getDuration()*(e/100)+i}return t},n.seek=function(e){var t=n.getTargetSeekPosition(e);n.player.isLive()?n.player.timeShift(t,"ui"):n.player.seek(t,"ui")},n.updateLabelPosition=function(e){n.uiBoundingRect||(n.uiBoundingRect=n.uiManager.getUI().getDomElement().get(0).getBoundingClientRect()),n.label.setPositionInBounds(e,n.uiBoundingRect)};var o=n.config.keyStepIncrements||{leftRight:1,upDown:5};return n.config=n.mergeConfig(t,{cssClass:"ui-seekbar",vertical:!1,smoothPlaybackPositionUpdateIntervalMs:50,keyStepIncrements:o,ariaLabel:d.i18n.getLocalizer("seekBar"),tabIndex:0,snappingRange:1,enableSeekPreview:!0,snappingEnabled:!0},n.config),n.label=n.config.label,n}return i(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this.hasLabel()&&this.getLabel().initialize()},t.prototype.setAriaSliderMinMax=function(e,t){this.getDomElement().attr("aria-valuemin",e),this.getDomElement().attr("aria-valuemax",t)},t.prototype.setAriaSliderValues=function(){if(this.seekBarType===f.SeekBarType.Live){var e=Math.ceil(this.player.getTimeShift()).toString(),t="".concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.timeshift"))," ").concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.value")),": ").concat(e);this.getDomElement().attr("aria-valuenow",e),this.getDomElement().attr("aria-valuetext",t),this.config.addCurrentTimeToAriaLabel&&this.getDomElement().attr("aria-label","".concat(d.i18n.performLocalization(this.config.ariaLabel),": ").concat(t))}else if(this.seekBarType===f.SeekBarType.Vod){var n="".concat(p.StringUtils.secondsToText(this.player.getCurrentTime())," ").concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.durationText"))," ").concat(p.StringUtils.secondsToText(this.player.getDuration()));this.getDomElement().attr("aria-valuenow",Math.floor(this.player.getCurrentTime()).toString()),this.getDomElement().attr("aria-valuetext",n),this.config.addCurrentTimeToAriaLabel&&this.getDomElement().attr("aria-label","".concat(d.i18n.performLocalization(this.config.ariaLabel),": ").concat(p.StringUtils.secondsToText(this.player.getCurrentTime())))}},t.prototype.getPlaybackPositionPercentage=function(){return this.player.isLive()?100-100/this.player.getMaxTimeShift()*this.player.getTimeShift():100/this.player.getDuration()*this.getRelativeCurrentTime()},t.prototype.updateBufferLevel=function(e){var t;t=this.player.isLive()?100:e+(0,v.getMinBufferLevel)(this.player),this.setBufferPosition(t)},t.prototype.configure=function(n,o,i){var a,s=this;if(void 0===i&&(i=!0),e.prototype.configure.call(this,n,o),this.player=n,this.uiManager=o,this.setPosition(this.seekBarBackdrop,100),new f.SeekBarController(this.config.keyStepIncrements,n,o.getConfig().volumeController).setSeekBarControls(this.getDomElement(),function(){return s.seekBarType}),!i){this.seekBarType=f.SeekBarType.Volume;return}var l=function(){s.isUiShown=!0,!s.smoothPlaybackPositionUpdater||n.isLive
1()||s.smoothPlaybackPositionUpdater.isActive()||(g(null,!0),s.smoothPlaybackPositionUpdater.start())};n.on(n.exports.PlayerEvent.AdStarted,function(){s.isAdPlaying=!0,l()}),n.on(n.exports.PlayerEvent.AdBreakFinished,function(){s.isAdPlaying=!1}),n.on(n.exports.PlayerEvent.SourceUnloaded,function(){s.isAdPlaying=!1}),o.onControlsShow.subscribe(l),o.onControlsHide.subscribe(function(){!s.isAdPlaying&&(s.isUiShown=!1,s.smoothPlaybackPositionUpdater&&s.smoothPlaybackPositionUpdater.isActive()&&s.smoothPlaybackPositionUpdater.clear())});var c=!1,p=!1,d=!1,g=function(e,o){if(void 0===e&&(e=null),void 0===o&&(o=!1),!s.isUserSeeking){var i=s.getPlaybackPositionPercentage();if(s.updateBufferLevel(i),p&&e&&e.type===n.exports.PlayerEvent.SegmentRequestFinished&&i!==s.playbackPositionPercentage&&(i=s.playbackPositionPercentage),n.isLive())0===n.getMaxTimeShift()?s.setPlaybackPosition(100):(s.isSeeking()||s.setPlaybackPosition(i),s.setAriaSliderMinMax(n.getMaxTimeShift().toString(),"0"));else{var r=s.config.smoothPlaybackPositionUpdateIntervalMs===t.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED||o||n.isPaused(),a=n.isPaused()===n.isPlaying();(r||a)&&!s.isSeeking()&&s.setPlaybackPosition(i),s.setAriaSliderMinMax("0",n.getDuration().toString())}s.isUiShown&&s.setAriaSliderValues()}};n.on(n.exports.PlayerEvent.Ready,g),n.on(n.exports.PlayerEvent.TimeChanged,g),n.on(n.exports.PlayerEvent.StallEnded,g),n.on(n.exports.PlayerEvent.TimeShifted,g),n.on(n.exports.PlayerEvent.SegmentRequestFinished,g),this.configureLivePausedTimeshiftUpdater(n,o,g);var h=function(){d=!0,s.setSeeking(!0),p=!1},v=function(e){void 0===e&&(e=null),d=!1,s.setSeeking(!1),g(e,!0)},y=function(){c&&n.play("ui-seek")};n.on(n.exports.PlayerEvent.Seek,h),n.on(n.exports.PlayerEvent.Seeked,v),n.on(n.exports.PlayerEvent.TimeShift,h),n.on(n.exports.PlayerEvent.TimeShifted,v);var m=function(e){return!!e.groupPlayback};this.onSeek.subscribe(function(e){s.isUserSeeking=!0,o.onSeek.dispatch(e),m(n)&&n.groupPlayback.hasJoined()&&!a&&(a=n.groupPlayback.beginSuspension(r.GroupPlaybackSuspensionReason.UserIsScrubbing)),!d&&(c=n.isPlaying())&&n.pause("ui-seek")}),this.onSeekPreview.subscribe(function(e,t){o.onSeekPreview.dispatch(e,t),p=t.scrubbing}),"boolean"==typeof o.getConfig().enableSeekPreview&&(this.config.enableSeekPreview=o.getConfig().enableSeekPreview),this.config.enableSeekPreview&&this.onSeekPreview.subscribeRateLimited(this.seekWhileScrubbing,200),this.onSeeked.subscribe(function(e,t){if(s.isUserSeeking=!1,s.seek(t),o.onSeeked.dispatch(e),y(),m(n)&&n.groupPlayback.hasJoined()&&a){var i=s.getTargetSeekPosition(t);n.groupPlayback.endSuspension(a,{proposedPlaybackTime:i}),a=void 0}}),this.hasLabel()&&this.getLabel().configure(n,o);var b=!1,C=!1,S=function(e,t){e&&!t?s.hide():s.show(),g(null,!0),s.refreshPlaybackPosition()},P=new u.PlayerUtils.LiveStreamDetector(n,o);P.onLiveChanged.subscribe(function(e,t){(b=t.live)&&null!=s.smoothPlaybackPositionUpdater?(s.smoothPlaybackPositionUpdater.clear(),s.seekBarType=f.SeekBarType.Live):s.seekBarType=f.SeekBarType.Vod,S(b,C)});var w=new u.PlayerUtils.TimeShiftAvailabilityDetector(n);w.onTimeShiftAvailabilityChanged.subscribe(function(e,t){C=t.timeShiftAvailable,S(b,C)}),P.detect(),w.detect(),n.on(n.exports.PlayerEvent.PlayerResized,function(){s.refreshPlaybackPosition(),s.uiBoundingRect=s.uiManager.getUI().getDomElement().get(0).getBoundingClientRect()}),o.onConfigured.subscribe(function(){s.refreshPlaybackPosition()}),n.on(n.exports.PlayerEvent.SourceLoaded,function(){s.refreshPlaybackPosition()}),o.getConfig().events.onUpdated.subscribe(function(){g()}),"number"==typeof o.getConfig().seekbarSnappingRange&&(this.config.snappingRange=o.getConfig().seekbarSnappingRange),"boolean"==typeof o.getConfig().seekbarSnappingEnabled&&(this.config.snappingEnabled=o.getConfig().seekbarSnappingEnabled),g(),this.setBufferPosition(0),this.setSeekPosition(0),this.config.smoothPlaybackPositionUpdateIntervalMs!==t.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED&&this.configureSmoothPlaybackPositionUpdater(n,o),this.initializeTimelineMarkers(n,o)},t.prototype.initializeTimelineMarkers=function(e,t){var n=this,o={cssPrefix:this.config.cssPrefix,snappingRange:this.config.snappingRange};this.timelineMarkersHandler=new h.TimelineMarkersHandler(o,function(){return n.seekBar.width()},this.seekBarMarkersContainer),this.timelineMarkersHandler.initialize(e,t)},t.prototype.configureLivePausedTimeshiftUpdater=function(e,t,n){var o=this;this.pausedTimeshiftUpdater=new c.Timeout(1e3,n,!0),e.on(e.exports.PlayerEvent.Paused,function(){e.isLive()&&0>e.getMaxTimeShift()&&o.pausedTimeshiftUpdater.start()}),e.on(e.exports.PlayerEvent.Play,function(){return o.pausedTimeshiftUpdater.clear()})},t.prototype.configureSmoothPlaybackPositionUpdater=function(e,t){var n=this,o=0,i=0;this.smoothPlaybackPositionUpdater=new c.Timeout(50,function(){if(!n.isSeeking()){try{if(0===n.player.getDuration()){n.setPlaybackPosition(0),o=0;return}o+=.05,i=n.getRelativeCurrentTime()}catch(t){t instanceof e.exports.PlayerAPINotAvailableError&&n.smoothPlaybackPositionUpdater.clear();return}var t=o-i;Math.abs(t)>2?o=i:t<=-.05?o+=.05:t>=.05&&(o-=.05);var r=100/e.getDuration()*o;n.setPlaybackPosition(r)}},!0);var r=function(){e.isLive()||(o=n.getRelativeCurrentTime(),n.smoothPlaybackPositionUpdater.start())},a=function(){n.smoothPlaybackPositionUpdater.clear()};e.on(e.exports.PlayerEvent.Play,r),e.on(e.exports.PlayerEvent.Playing,r),e.on(e.exports.PlayerEvent.Paused,a),e.on(e.exports.PlayerEvent.PlaybackFinished,a),e.on(e.exports.PlayerEvent.Seeked,function(){o=n.getRelativeCurrentTime()}),e.on(e.exports.PlayerEvent.SourceUnloaded,a),e.isPlaying()&&r()},t.prototype.getRelativeCurrentTime=function(){return u.PlayerUtils.getCurrentTimeRelativeToSeekableRange(this.player)},t.prototype.release=function(){e.prototype.release.call(this),this.smoothPlaybackPositionUpdater&&this.smoothPlaybackPositionUpdater.clear(),this.pausedTimeshiftUpdater&&this.pausedTimeshiftUpdater.clear(),this.config.enableSeekPreview&&this.onSeekPreview.unsubscribe(this.seekWhileScrubbing)},t.prototype.toDomElement=function(){var e=this;
vendor: 5,941 bytes, line 1
1this.config.vertical&&this.config.cssClasses.push("vertical");var t=new s.DOM("div",{id:this.config.id,class:this.getCssClasses(),role:"slider","aria-label":d.i18n.performLocalization(this.config.ariaLabel),tabindex:this.config.tabIndex.toString()},this),n=new s.DOM("div",{class:this.prefixCss("seekbar")});this.seekBar=n;var o=new s.DOM("div",{class:this.prefixCss("seekbar-bars")}),i=new s.DOM("div",{class:this.prefixCss("seekbar-bufferlevel")});this.seekBarBufferPosition=i;var r=new s.DOM("div",{class:this.prefixCss("seekbar-playbackposition")});this.seekBarPlaybackPosition=r;var a=new s.DOM("div",{class:this.prefixCss("seekbar-playbackposition-marker")});this.seekBarPlaybackPositionMarker=a;var l=new s.DOM("div",{class:this.prefixCss("seekbar-seekposition")});this.seekBarSeekPosition=l;var c=new s.DOM("div",{class:this.prefixCss("seekbar-backdrop")});this.seekBarBackdrop=c;var u=new s.DOM("div",{class:this.prefixCss("seekbar-markers")});this.seekBarMarkersContainer=u,o.append(this.seekBarBackdrop,this.seekBarBufferPosition,this.seekBarSeekPosition,this.seekBarPlaybackPosition),n.append(o,this.seekBarMarkersContainer,this.seekBarPlaybackPositionMarker);var p=!1,f=function(t){t.preventDefault(),null!=e.player.vr&&t.stopPropagation();var n=e.getOffset(t),o=100*n,i=n*e.seekBar.width();e.setSeekPosition(o),e.setPlaybackPosition(o),e.onSeekPreviewEvent(o,i,!0)},h=function(t){t.preventDefault(),new s.DOM(document).off("touchmove mousemove",f),new s.DOM(document).off("touchend mouseup",h);var n,o=100*e.getOffset(t);if(e.config.snappingEnabled){var i=null===(n=e.timelineMarkersHandler)||void 0===n?void 0:n.getMarkerAtPosition(o);o=i?i.position:o}e.setSeeking(!1),p=!1,e.setSeekPosition(o),e.setPlaybackPosition(o),e.onSeekedEvent(o)};return n.on("touchstart mousedown",function(t){var n=g.BrowserUtils.isTouchSupported&&e.isTouchEvent(t);t.preventDefault(),null!=e.player.vr&&t.stopPropagation(),e.setSeeking(!0),p=!0,e.onSeekEvent(),new s.DOM(document).on(n?"touchmove":"mousemove",f),new s.DOM(document).on(n?"touchend":"mouseup",h)}),n.on("touchmove mousemove",function(t){t.preventDefault(),p&&f(t);var n=e.getOffset(t),o=100*n,i=n*e.seekBar.width();e.setSeekPosition(o),e.onSeekPreviewEvent(o,i,!1),e.hasLabel()&&e.getLabel().isHidden()&&e.getLabel().show()}),n.on("touchend mouseleave",function(t){t.preventDefault(),e.setSeekPosition(0),e.hasLabel()&&e.getLabel().hide()}),t.append(n),this.label&&t.append(this.label.getDomElement()),t},t.prototype.getHorizontalOffset=function(e){var t=this.seekBar.offset().left,n=this.seekBar.width();return this.sanitizeOffset(1/n*(e-t))},t.prototype.getVerticalOffset=function(e){var t=this.seekBar.offset().top,n=this.seekBar.height();return 1-this.sanitizeOffset(1/n*(e-t))},t.prototype.getOffset=function(e){return g.BrowserUtils.isTouchSupported&&this.isTouchEvent(e)?this.config.vertical?this.getVerticalOffset("touchend"===e.type?e.changedTouches[0].pageY:e.touches[0].pageY):this.getHorizontalOffset("touchend"===e.type?e.changedTouches[0].pageX:e.touches[0].pageX):e instanceof MouseEvent?this.config.vertical?this.getVerticalOffset(e.pageY):this.getHorizontalOffset(e.pageX):(console&&console.warn("invalid event"),0)},t.prototype.sanitizeOffset=function(e){return e<0?e=0:e>1&&(e=1),e},t.prototype.setPlaybackPosition=function(e){this.playbackPositionPercentage=e,this.setPosition(this.seekBarPlaybackPosition,e);var t=(this.config.vertical?this.seekBar.height()-this.seekBarPlaybackPositionMarker.height():this.seekBar.width())/100*e;this.config.vertical&&(t=this.seekBar.height()-t-this.seekBarPlaybackPositionMarker.height());var n=this.config.vertical?{transform:"translateY("+t+"px)","-ms-transform":"translateY("+t+"px)","-webkit-transform":"translateY("+t+"px)"}:{transform:"translateX("+t+"px)","-ms-transform":"translateX("+t+"px)","-webkit-transform":"translateX("+t+"px)"};this.seekBarPlaybackPositionMarker.css(n)},t.prototype.refreshPlaybackPosition=function(){this.setPlaybackPosition(this.playbackPositionPercentage)},t.prototype.setBufferPosition=function(e){this.setPosition(this.seekBarBufferPosition,e)},t.prototype.setSeekPosition=function(e){this.setPosition(this.seekBarSeekPosition,e)},t.prototype.setPosition=function(e,t){var n=t/100;n>=.99999&&n<=1.00001&&(n=.99999);var o=this.config.vertical?{transform:"scaleY("+n+")","-ms-transform":"scaleY("+n+")","-webkit-transform":"scaleY("+n+")"}:{transform:"scaleX("+n+")","-ms-transform":"scaleX("+n+")","-webkit-transform":"scaleX("+n+")"};e.css(o)},t.prototype.setSeeking=function(e){e?this.getDomElement().addClass(this.prefixCss(t.CLASS_SEEKING)):this.getDomElement().removeClass(this.prefixCss(t.CLASS_SEEKING))},t.prototype.isSeeking=function(){return this.getDomElement().hasClass(this.prefixCss(t.CLASS_SEEKING))},t.prototype.hasLabel=function(){return null!=this.label},t.prototype.getLabel=function(){return this.label},t.prototype.onSeekEvent=function(){this.seekBarEvents.onSeek.dispatch(this)},t.prototype.clearAllThickenedMarkers=function(){var e;null===(e=this.seekBarMarkersContainer.find(".".concat(this.prefixCss("seekbar-marker"))))||void 0===e||e.removeClass(this.prefixCss(t.CLASS_CHAPTER_HOVERED))},t.prototype.thickenMarker=function(e){(null==e?void 0:e.element)&&e.element.addClass(this.prefixCss(t.CLASS_CHAPTER_HOVERED))},t.prototype.onSeekPreviewEvent=function(e,t,n){var o=this.timelineMarkersHandler&&this.timelineMarkersHandler.getMarkerAtPosition(e),i=e;o&&(o.duration>0?e<o.position?i=o.position:e>o.position+o.duration&&(i=o.position+o.duration):i=o.position),this.label&&this.updateLabelPosition(t),n&&(this.clearAllThickenedMarkers(),this.thickenMarker(o)),this.seekBarEvents.onSeekPreview.dispatch(this,{scrubbing:n,position:i,marker:o})},t.prototype.onSeekedEvent=function(e){this.clearAllThickenedMarkers(),this.seekBarEvents.onSeeked.dispatch(this,e)},Object.defineProperty(t.prototype,"onSeek",{get:function(){return this.seekBarEvents.onSeek.getEvent()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSeekPreview",{get:function(){return this.seekBarEvents.onSeekPreview.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSeeked",{get:function(){return this.seekBarEvents.onSeeked.getEvent()},enumerable:!1,configurable:!0}),t.prototype.onShowEvent=function(){e.prototype.onShowEvent.call(this),this.refreshPlaybackPosition()},t.prototype.isTouchEvent=function(e){return window.TouchEvent&&e instanceof TouchEvent},t.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED=-1,t.CLASS_SEEKING="seeking",t.CLASS_CHAPTER_HOVERED="hovered",t}(a.Component);t.SeekBar=y},31642:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarLabel=void 0;var r=n(35238),a=n(1230),s=n(30040),l=n(74039),c=n(8407),u=n(78966),p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.appliedMarkerCssClasses=[],n.initializeTimeFormat=function(){var e=n.player;null!=e&&(n.timeFormat=Math.abs(e.isLive()?e.getMaxTimeShift():e.getDuration())>=3600?l.StringUtils.FORMAT_HHMMSS:l.StringUtils.FORMAT_MMSS,n.setTitleText(null),n.setThumbnail(null))},n.handleSeekPreview=function(e,t){if(n.player.isLive()){var o,i=n.player.getMaxTimeShift(),r=i-t.position/100*i;n.setTime(r);var a=(o=n.player.getTimeShift(),n.player.getCurrentTime()-o+r);n.setThumbnail(n.player.getThumbnail(a))}else{var s=n.player.getDuration()*(t.position/100);n.setTime(s);var l=u.PlayerUtils.getSeekableRangeStart(n.player,0);n.setThumbnail(n.player.getThumbnail(s+l))}if(t.marker?n.setTitleText(t.marker.marker.title):n.setTitleText(null),n.appliedMarkerCssClasses.length>0&&(n.getDomElement().removeClass(n.appliedMarkerCssClasses.join(" ")),n.appliedMarkerCssClasses=[]),t.marker){var c=(t.marker.marker.cssClasses||[]).map(function(e){return n.prefixCss(e)});n.getDomElement().addClass(c.join(" ")),n.appliedMarkerCssClasses=c}},n.timeLabel=new a.Label({cssClasses:["seekbar-label-metadata","seekbar-label-time"]}),n.titleLabel=new a.Label({cssClasses:["seekbar-label-metadata","seekbar-label-title"]}),n.thumbnail=new s.Component({cssClasses:["seekbar-thumbnail"],role:"img"}),n.thumbnailImageLoader=new c.ImageLoader,n.container=new r.Container({components:[n.titleLabel,n.thumbnail,n.timeLabel],cssClass:"seekbar-label-inner"}),n.config=n.mergeConfig(t,{cssClass:"ui-seekbar-label",components:[n.container],hidden:!0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.player=t,this.uiManager=n,n.onSeekPreview.subscribeRateLimited(this.handleSeekPreview,100),n.getConfig().events.onUpdated.subscribe(this.initializeTimeFormat),t.on(this.player.exports.PlayerEvent.DurationChanged,this.initializeTimeFormat),this.initializeTimeFormat()},t.prototype.setPositionInBounds=function(e,t){this.getDomElement().css("left",e+"px");var n=this.container.getDomElement().get(0).parentElement.getBoundingClientRect(),o=0;n.right>t.right?o=n.right-t.right:n.left<t.left&&(o=n.left-t.left),0!==o&&this.getDomElement().css("left",e-o+"px")},t.prototype.setText=function(e){this.timeLabel.setText(e)},t.prototype.setTime=function(e){this.setText(l.StringUtils.secondsToTime(e,this.timeFormat))},t.prototype.setTitleText=function(e){this.titleLabel.setText(e),null==e?this.titleLabel.hide():this.titleLabel.show()},t.prototype.setThumbnail=function(e){var t=this;void 0===e&&(e=null);var n=this.thumbnail.getDomElement();null==e?n.css({"background-image":null,display:"none",width:null,height:null}):this.thumbnailImageLoader.load(e.url,function(o,i,r){void 0!==e.x?n.css(t.thumbnailCssSprite(e,i,r)):n.css(t.thumbnailCssSingleImage(e,i,r))})},t.prototype.thumbnailCssSprite=function(e,t,n){var o=t/e.width,i=n/e.height,r=e.x/e.width,a=e.y/e.height,s=1/e.width*e.height;return{display:"inherit","background-image":'url("'.concat(e.url,'")'),"padding-bottom":"".concat(100*s,"%"),"background-size":"".concat(100*o,"% ").concat(100*i,"%"),"background-position":"-".concat(100*r,"% -").concat(100*a,"%")}
1},t.prototype.thumbnailCssSingleImage=function(e,t,n){return{display:"inherit","background-image":'url("'.concat(e.url,'")'),"padding-bottom":"".concat(1/t*n*100,"%"),"background-size":"100% 100%","background-position":"0 0"}},t.prototype.release=function(){e.prototype.release.call(this),null===(t=this.uiManager)||void 0===t||t.onSeekPreview.unsubscribe(this.handleSeekPreview);var t,n=this.player;null==n||n.off(n.exports.PlayerEvent.DurationChanged,this.initializeTimeFormat)},t}(r.Container);t.SeekBarLabel=p},29336:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeSlider=void 0;var r=n(49067),a=n(54745),s=n(62772),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.updateVolumeWhileScrubbing=function(e,t){t.scrubbing&&n.volumeTransition&&n.volumeTransition.update(t.position)},n.config=n.mergeConfig(t,{cssClass:"ui-volumeslider",hideIfVolumeControlProhibited:!0,hideOnMobile:!0,ariaLabel:a.i18n.getLocalizer("settings.audio.volume"),tabIndex:0},n.config),n}return i(t,e),t.prototype.setVolumeAriaSliderValues=function(e){this.getDomElement().attr("aria-valuenow",Math.ceil(e).toString()),this.getDomElement().attr("aria-valuetext","".concat(a.i18n.performLocalization(a.i18n.getLocalizer("seekBar.value")),": ").concat(Math.ceil(e)))},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n,!1),this.setAriaSliderMinMax("0","100");var i=this.getConfig(),r=n.getConfig().volumeController;if(i.hideOnMobile&&s.BrowserUtils.isMobile||i.hideIfVolumeControlProhibited&&!this.detectVolumeControlAvailability()){this.hide();return}r.onChanged.subscribe(function(e,t){t.muted?(o.setVolumeAriaSliderValues(0),o.setPlaybackPosition(0)):(o.setPlaybackPosition(t.volume),o.setVolumeAriaSliderValues(t.volume))}),this.onSeek.subscribe(function(){o.volumeTransition=r.startTransition()}),this.onSeekPreview.subscribeRateLimited(this.updateVolumeWhileScrubbing,50),this.onSeeked.subscribe(function(e,t){o.volumeTransition&&o.volumeTransition.finish(t)}),t.on(t.exports.PlayerEvent.PlayerResized,function(){o.refreshPlaybackPosition()}),n.onConfigured.subscribe(function(){o.refreshPlaybackPosition()}),n.getConfig().events.onUpdated.subscribe(function(){o.refreshPlaybackPosition()}),n.onComponentShow.subscribe(function(){o.refreshPlaybackPosition()}),n.onComponentHide.subscribe(function(){o.refreshPlaybackPosition()}),r.onChangedEvent()},t.prototype.detectVolumeControlAvailability=function(){var e=document.createElement("video");return e.volume=.7,1!==e.volume},t.prototype.release=function(){e.prototype.release.call(this),this.onSeekPreview.unsubscribe(this.updateVolumeWhileScrubbing)},t}(r.SeekBar);t.VolumeSlider=l},86665:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AudioQualitySelectBox=void 0;var r=n(51824),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-audioqualityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){o.selectItem(t.getAudioQuality().id)},r=function(){var e=t.getAvailableAudioQualities();
1o.clearItems(),o.addItem("auto",a.i18n.getLocalizer("auto"));for(var n=0;n<e.length;n++){var r=e[n];o.addItem(r.id,r.label)}i()};this.onItemSelectionChanged.subscribe(function(e,n){t.setAudioQuality(n)}),t.on(t.exports.PlayerEvent.AudioChanged,r),t.on(t.exports.PlayerEvent.SourceUnloaded,r),t.on(t.exports.PlayerEvent.PeriodSwitched,r),t.on(t.exports.PlayerEvent.AudioQualityChanged,i),t.exports.PlayerEvent.AudioQualityAdded&&(t.on(t.exports.PlayerEvent.AudioQualityAdded,r),t.on(t.exports.PlayerEvent.AudioQualityRemoved,r)),n.getConfig().events.onUpdated.subscribe(r)},t}(r.SelectBox);t.AudioQualitySelectBox=s},77080:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackSelectBox=void 0;var r=n(51824),a=n(1782),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-audiotrackselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new a.AudioTrackSwitchHandler(t,this,n)},t}(r.SelectBox);t.AudioTrackSelectBox=s},6337:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicSettingsPanelItem=void 0;var r=n(1230),a=n(54745),s=n(80868),l=n(14394),c=n(43625),u=n(62306),p=n(74284),f=n(69850),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSelectedItemChanged=function(){var e=n.settingComponent.getItemForKey(n.settingComponent.getSelectedItem());if(null==e){n.selectedOptionLabel.setText("-");return}var t=e.label;if(n.settingComponent instanceof s.SubtitleSelectBox){var o=n.settingComponent.getItems().length;t=a.i18n.performLocalization(t)+" ("+(o-1)+")"}n.selectedOptionLabel.setText(t)},n.backNavigationRightComponent=t.backNavigationRightComponent,n.settingComponent=t.settingComponent,n.selectedOptionLabel=new r.Label({text:"-",for:n.getConfig().id,cssClasse
vendor: 8,686 bytes, line 1
1s:["ui-label-setting-selected-option"],labelStyle:r.LabelStyle.TextWithTrailingIcon}),n.config=n.mergeConfig(t,{components:[n.selectedOptionLabel],cssClass:"ui-settings-panel-item",role:"menuitem",addSettingAsComponent:!1,tabIndex:0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.player=t,this.uimanager=n,null!=this.backNavigationRightComponent&&this.backNavigationRightComponent.configure(this.player,this.uimanager),null!=this.settingComponent&&this.settingComponent.configure(this.player,this.uimanager),this.settingComponent.onItemSelected.subscribe(this.handleSelectedItemChanged),this.handleSelectedItemChanged(),this.onClick.subscribe(function(){o.displayItemsSubPage()})},t.prototype.onLanguageChanged=function(){this.handleSelectedItemChanged()},t.prototype.buildSubPanelPage=function(){var e=this,t=this.settingComponent.getItems(),n=new u.SettingsPanelPage({removeOnPop:!0}),o=this.config.label,i=new p.SettingsPanelPageBackButton({text:o,container:this.config.container});i.configure(this.player,this.uimanager);var a=new l.SettingsPanelItem({label:i,settingComponent:this.backNavigationRightComponent,cssClasses:["title-item"],isSetting:!1});a.configure(this.player,this.uimanager),n.addComponent(a),t.map(function(t){return new c.SettingsPanelSelectOption({label:t.label,labelStyle:r.LabelStyle.TextWithLeadingIcon,settingComponent:e.settingComponent,settingsValue:t.key,addSettingAsComponent:!1})}).forEach(function(t){t.configure(e.player,e.uimanager),n.addComponent(t)}),n.configure(this.player,this.uimanager);var s=this.settingComponent;return s instanceof f.SubtitleSettingSelectBox&&(n.onActive.subscribe(function(){return s.overlay.enablePreviewSubtitleLabel()}),n.onInactive.subscribe(function(){return s.overlay.removePreviewSubtitleLabel()})),n},t.prototype.displayItemsSubPage=function(){var e=this.buildSubPanelPage();this.config.container.addPage(e),this.config.container.setActivePage(e)},t}(n(99066).InteractiveSettingsPanelItem);t.DynamicSettingsPanelItem=d},99066:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InteractiveSettingsPanelItem=void 0;var r=n(14394),a=n(37388),s=n(63664),l=n(39843),c=function(e){function t(t){var n=e.call(this,t)||this;return n.events={onClick:new a.EventDispatcher},n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(e){e.preventDefault(),e.stopPropagation(),o.onClickEvent()};this.getDomElement().on("click",i);var r=function(e){((0,s.getKeyMapForPlatform)()[e.keyCode]===l.Action.SELECT||["Enter"," "].includes(e.key)||["Enter","Space"].includes(e.code))&&i(e)};this.onFocusedChanged.subscribe(function(e,t){t.focused?o.getDomElement().on("keydown",r):o.getDomElement().off("keydown",r)})},t.prototype.onClickEvent=function(){this.events.onClick.dispatch(this)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.events.onClick.getEvent()},enumerable:!1,configurable:!0}),t}(r.SettingsPanelItem);t.InteractiveSettingsPanelItem=c},25018:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackSpeedSelectBox=void 0;var r=n(51824),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.defaultPlaybackSpeeds=[.25,.5,1,1.5,2],n.config=n.mergeConfig(t,{cssClasses:["ui-playbackspeedselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addDefaultItems(),this.onItemSelectionChanged.subscribe(function(e,n){t.setPlaybackSpeed(parseFloat(n))});var i=function(){var e=t.getPlaybackSpeed();o.setSpeed(e)};t.on(t.exports.PlayerEvent.PlaybackSpeedChanged,i),n.getConfig().events.onUpdated.subscribe(i)},t.prototype.setSpeed=function(e){this.selectItem(String(e))||(this.clearItems(),this.addDefaultItems([e]),this.selectItem(String(e)))},t.prototype.addDefaultItems=function(e){var t=this;void 0===e&&(e=[]),this.defaultPlaybackSpeeds.concat(e).sort().forEach(function(e){1!==e?t.addItem(String(e),"".concat(e,"x")):t.addItem(String(e),a.i18n.getLocalizer("normal"))})},t.prototype.clearItems=function(){this.items=[],this.selectedItem=null},t}(r.SelectBox);t.PlaybackSpeedSelectBox=s},51824:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SelectBox=void 0;var r=n(89022),a=n(9524),s=n(54745),l=n(78966),c=n(30040),u=["mousemove","mouseenter","mouseleave","touchstart","touchmove","touchend","pointermove","click","keydown","keypress","keyup","blur"],p=["change","keyup","mouseup"],f=[["click",function(){return!0}],["keydown",function(e){return[" ","ArrowUp","ArrowDown"].includes(e.key)}],["mousedown",function(){return!0}]],d=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.dropdownCloseListenerTimeoutId=0,n.removeDropdownCloseListeners=function(){},n.removeDropdownOpenedListeners=function(){},n.onChange=function(){var e=n.selectElement.val();n.onItemSelectedEvent(e,!1)},n.closeDropdown=function(){var e=n.getSelectElement();void 0!==e&&e.blur()},n.onPlayerStateChange=function(e,t){[l.PlayerUtils.PlayerState.Idle,l.PlayerUtils.PlayerState.Finished].includes(t)&&n.closeDropdown()},n.onDropdownOpened=function(){clearTimeout(n.dropdownCloseListenerTimeoutId),n.dropdownCloseListenerTimeoutId=window.setTimeout(function(){return n.addDropdownCloseListeners()},100),n.onViewModeChangedEvent(c.ViewMode.Persistent)},n.onDropdownClosed=function(){clearTimeout(n.dropdownCloseListenerTimeoutId),n.removeDropdownCloseListeners(),n.onViewModeChangedEvent(c.ViewMode.Temporary)},n.config=n.mergeConfig(t,{cssClass:"ui-selectbox"},n.config),n}return i(t,e),t.prototype.toDomElement=function(){return this.selectElement=new a.DOM("select",{id:this.config.id,class:this.getCssClasses(),"aria-label":s.i18n.performLocalization(this.config.ariaLabel)},this),this.onDisabled.subscribe(this.closeDropdown),this.onHide.subscribe(this.closeDropdown),this.addDropdownOpenedListeners(),this.updateDomItems(),this.selectElement.on("change",this.onChange),this.selectElement},t.prototype.configure=function(t,n){var o;e.prototype.configure.call(this,t,n),this.uiContainer=n.getUI(),null===(o=this.uiContainer)||void 0===o||o.onPlayerStateChange().subscribe(this.onPlayerStateChange),this.uiWrapperElement=n.uiWrapperElement},t.prototype.getSelectElement=function(){var e,t;return null===(t=null===(e=this.selectElement)||void 0===e?void 0:e.get())||void 0===t?void 0:t[0]},t.prototype.updateDomItems=function(e){if(void 0===e&&(e=null),void 0!==this.selectElement){this.selectElement.empty();for(var t=0,n=this.items;t<n.length;t++){var o=n[t],i=new a.DOM("option",{value:String(o.key)}).html(s.i18n.performLocalization(o.label));o.key===String(e)&&i.attr("selected","selected"),this.selectElement.append(i)}}},t.prototype.onItemsChangedEvent=function(){e.prototype.onItemsChangedEvent.call(this),this.updateDomItems(this.selectedItem)},t.prototype.onItemSelectedEvent=function(t,n){void 0===n&&(n=!0),e.prototype.onItemSelectedEvent.call(this,t),n&&this.updateDomItems(t)},t.prototype.addDropdownCloseListeners=function(){var e=this;this.removeDropdownCloseListeners(),clearTimeout(this.dropdownCloseListenerTimeoutId),u.forEach(function(t){return e.uiWra
1pperElement.on(t,e.onDropdownClosed,!0)}),p.forEach(function(t){return e.selectElement.on(t,e.onDropdownClosed,!0)}),this.removeDropdownCloseListeners=function(){u.forEach(function(t){return e.uiWrapperElement.off(t,e.onDropdownClosed,!0)}),p.forEach(function(t){return e.selectElement.off(t,e.onDropdownClosed,!0)})}},t.prototype.addDropdownOpenedListeners=function(){var e=this,t=[];this.removeDropdownOpenedListeners();for(var n=function(n,i){var r=function(t){i(t)&&e.onDropdownOpened()};t.push(function(){return e.selectElement.off(n,r,!0)}),o.selectElement.on(n,r,!0)},o=this,i=0;i<f.length;i++){var r=f[i];n(r[0],r[1])}this.removeDropdownOpenedListeners=function(){for(var e=0;e<t.length;e++)(0,t[e])()}},t.prototype.release=function(){e.prototype.release.call(this),this.removeDropdownCloseListeners(),this.removeDropdownOpenedListeners(),clearTimeout(this.dropdownCloseListenerTimeoutId)},t}(r.ListSelector);t.SelectBox=d},3325:function(e,t,n){var o,i,r,a=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanel=t.NavigationDirection=void 0;var s=n(35238),l=n(51824),c=n(9110),u=n(37388),p=n(62306),f=n(63664),d=n(39843);(o=r||(t.NavigationDirection=r={}))[o.Forwards=0]="Forwards",o[o.Backwards=1]="Backwards";var g=function(e){function t(t){var n=e.call(this,t)||this;return n.navigationStack=[],n.currentState=null,n.resetStateTimerId=null,n.shouldResetStateImmediately=!1,n.settingsPanelEvents={onSettingsStateChanged:new u.EventDispatcher,onActivePageChanged:new u.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel",hideDelay:5e3,pageTransitionAnimation:!0,stateResetDelay:5e3,hideOnControlsHide:!0,hideOnOtherSettingsPanelOpening:!0},n.config),n.activePage=n.getRootPage(),n.onActivePageChangedEvent(),n}return a(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig();n.onControlsHide.subscribe(function(){return o.hideHoveredSelectBoxes()}),n.onComponentViewModeChanged.subscribe(function(e,t){var n=t.mode;return o.trackComponentViewMode(n)}),i.hideDelay>-1&&(this.hideTimeout=new c.Timeout(i.hideDelay,function(){o.hide(),o.hideHoveredSelectBoxes()}),this.getDomElement().on("mouseenter mousemove",function(){o.hideTimeout.reset()}),this.getDomElement().on("mouseleave",function(){o.hideTimeout.reset()}),this.getDomElement().on("focusin",function(){o.hideTimeout.clear()}),this.getDomElement().on("focusout",function(){o.hideTimeout.reset()})),i.pageTransitionAnimation&&t.on(t.exports.PlayerEvent.PlayerResized,function(){o.getDomElement().css({width:"",height:""})});var r=function(e){(0,f.getKeyMapForPlatform)()[e.keyCode]===d.Action.BACK&&(o.hide(),o.resetState())},a=function(){null!==o.resetStateTimerId&&(clearTimeout(o.resetStateTimerId),o.resetStateTimerId=null),i.stateResetDelay>-1&&(o.resetStateTimerId=window.setTimeout(function(){return o.resetState()},i.stateResetDelay))};this.onHide.subscribe(function(){o.shouldResetStateImmediately?(o.currentState=null,o.shouldResetStateImmediately=!1):(o.currentState=o.maybeSaveCurrentState(),a()),i.hideDelay>-1&&o.hideTimeout.clear(),o.activePage.onInactiveEvent(),document.removeEventListener("keyup",r)}),this.onShow.subscribe(function(){null!==o.resetStateTimerId&&(clearTimeout(o.resetStateTimerId),o.resetStateTimerId=null),null!==o.currentState?o.restoreNavigationState(o.currentState):o.updateActivePageClass(),o.activePage.onActiveEvent(),i.hideDelay>-1&&o.hideTimeout.start(),document.addEventListener("keyup",r)}),this.getRootPage().onSettingsStateChanged.subscribe(function(){o.onSettingsStateChangedEvent()}),i.hideOnControlsHide&&n.onControlsHide.subscribe(function(){o.hide()}),n.onControlsShow.subscribe(function(){null!==o.currentState&&o.show()}),this.updateActivePageClass()},t.prototype.getActivePage=function(){return this.activePage},t.prototype.setActivePageIndex=function(e){this.setActivePage(this.getPages()[e])},t.prototype.setActivePage=function(e){if(e===this.getActivePage()){console.warn("Page is already the current one ... skipping navigation");return}this.navigateToPage(e,this.getActivePage(),r.Forwards,!this.config.pageTransitionAnimation)},t.prototype.popToRootSettingsPanelPage=function(){this.resetNavigation(this.config.pageTransitionAnimation)},t.prototype.popSettingsPanelPage=function(){if(0===this.navigationStack.length){console.warn("Already on the root page ... skipping navigation");return}var e=this.navigationStack[this.navigationStack.length-2];e||(e=this.getRootPage());var t=this.activePage;this.navigateToPage(e,this.activePage,r.Backwards,!this.config.pageTransitionAnimation),t.getConfig().removeOnPop&&(this.removeComponent(t),this.updateComponents())},t.prototype.rootPageHasActiveSettings=function(){return this.getRootPage().hasActiveSettings()},t.prototype.getPages=function(){return this.config.components.filter(function(e){return e instanceof p.SettingsPanelPage})},t.prototype.getRootPage=function(){return this.getPages()[0]},Object.defineProperty(t.prototype,"onSettingsStateChanged",{get:function(){return this.settingsPanelEvents.onSettingsStateChanged.getEvent()}
vendor: 8,780 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onActivePageChanged",{get:function(){return this.settingsPanelEvents.onActivePageChanged.getEvent()},enumerable:!1,configurable:!0}),t.prototype.hideAndReset=function(){this.shouldResetStateImmediately=!0,this.hide(),this.resetState()},t.prototype.release=function(){e.prototype.release.call(this),this.hideTimeout&&this.hideTimeout.clear()},t.prototype.addComponent=function(t){0===this.getPages().length&&t instanceof p.SettingsPanelPage&&(this.activePage=t,this.onActivePageChangedEvent()),e.prototype.addComponent.call(this,t)},t.prototype.addPage=function(e){this.addComponent(e),this.updateComponents()},t.prototype.suspendHideTimeout=function(){var e;null===(e=this.hideTimeout)||void 0===e||e.suspend()},t.prototype.resumeHideTimeout=function(){var e;null===(e=this.hideTimeout)||void 0===e||e.resume(!0)},t.prototype.updateActivePageClass=function(){var e=this;this.getPages().forEach(function(n){n===e.activePage?n.getDomElement().addClass(e.prefixCss(t.CLASS_ACTIVE_PAGE)):n.getDomElement().removeClass(e.prefixCss(t.CLASS_ACTIVE_PAGE))})},t.prototype.resetNavigation=function(e){var t=this.getActivePage(),n=this.getRootPage();t&&!e&&t.onInactiveEvent(),this.navigationStack=[],this.animateNavigation(n,t,e),this.activePage=n,this.updateActivePageClass(),this.onActivePageChangedEvent()},Object.defineProperty(t.prototype,"wrapperScrollTop",{get:function(){var e,t;return null!==(t=null===(e=this.innerContainerElement.get(0))||void 0===e?void 0:e.scrollTop)&&void 0!==t?t:0},set:function(e){var t=this.innerContainerElement.get(0);t&&(t.scrollTop=e)},enumerable:!1,configurable:!0}),t.prototype.resetState=function(){this.activePage=this.getRootPage(),this.navigationStack=[],this.currentState=null,this.resetStateTimerId=null,this.isHidden()&&this.getDomElement().css({width:"",height:""})},t.prototype.buildCurrentState=function(){var e=this.getPages();return{activePageIndex:e.indexOf(this.getActivePage()),navigationStackIndices:this.navigationStack.map(function(t){return e.indexOf(t)}),scrollTop:this.getDomElement().get(0).scrollTop,wrapperScrollTop:this.wrapperScrollTop}},t.prototype.isDefaultPanelState=function(){var e,t=this.getDomElement().get(0),n=this.getActivePage()===this.getRootPage(),o=0===this.navigationStack.length,i=(null!==(e=null==t?void 0:t.scrollTop)&&void 0!==e?e:0)===0&&0===this.wrapperScrollTop;return n&&o&&i},t.prototype.maybeSaveCurrentState=function(){return this.isDefaultPanelState()?null:this.buildCurrentState()},t.prototype.restoreNavigationState=function(e){var t,n=this.getPages();this.activePage=null!==(t=n[e.activePageIndex])&&void 0!==t?t:this.getRootPage(),this.navigationStack=e.navigationStackIndices.map(function(e){return n[e]}).filter(Boolean),this.updateActivePageClass(),this.onActivePageChangedEvent(),this.activePage.onActiveEvent(),this.getDomElement().get(0).scrollTop=e.scrollTop,this.wrapperScrollTop=e.wrapperScrollTop},t.prototype.navigateToPage=function(e,t,n,o){this.activePage=e,n===r.Forwards?this.navigationStack.push(e):this.navigationStack.pop(),this.animateNavigation(e,t,o),this.updateActivePageClass(),t.onInactiveEvent(),e.onActiveEvent(),this.onActivePageChangedEvent()},t.prototype.animateNavigation=function(e,t,n){if(this.config.pageTransitionAnimation){var o=this.getDomElement(),i=this.getDomElement().get(0),r=i.scrollWidth,a=i.scrollHeight;t.getDomElement().css("display","none"),this.getDomElement().css({width:"",height:""});var s=e.getDomElement().get(0),l=s.cloneNode(!0);s.parentNode.appendChild(l),l.style.display="block";var c=i.scrollWidth,u=i.scrollHeight;l.parentElement.removeChild(l),t.getDomElement().css("display",""),o.css({width:r+"px",height:a+"px"}),n||this.forceBrowserReflow(),o.css({width:c+"px",height:u+"px"})}},t.prototype.forceBrowserReflow=function(){this.getDomElement().get(0).offsetLeft},t.prototype.hideHoveredSelectBoxes=function(){this.getComputedItems().map(function(e){return e.settingComponent}).filter(function(e){return e instanceof l.SelectBox}).forEach(function(e){return e.closeDropdown()})},t.prototype.getComputedItems=function(){for(var e=[],t=0,n=this.getPages();t<n.length;t++){var o=n[t];e.push.apply(e,o.getItems())}return e},t.prototype.onSettingsStateChangedEvent=function(){this.settingsPanelEvents.onSettingsStateChanged.dispatch(this)},t.prototype.onActivePageChangedEvent=function(){this.settingsPanelEvents.onActivePageChanged.dispatch(this)},t.CLASS_ACTIVE_PAGE="active",t}(s.Container);t.SettingsPanel=g},14394:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelItem=void 0;var r=n(35238),a=n(30040),s=n(37388),l=n(1230),c=n(76154),u=n(86665),p=n(89022),f=function(e){function t(t){var n=e.call(this,t)||this;n.settingsPanelItemEvents={onActiveChanged:new s.EventDispatcher},n.settingComponent=t.settingComponent,n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-item",role:"menuitem",addSettingAsComponent:!0,isSetting:!0,labelStyle:l.LabelStyle.Text},n.config);var o=t.label;return null!=o&&(o instanceof a.Component?n.label=o:n.label=new l.Label({text:o,labelStyle:t.labelStyle}),n.addComponent(n.label)),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;if(e.prototype.configure.call(this,t,n),null!=this.settingComponent&&this.config.addSettingAsComponent&&(this.addComponent(this.settingComponent),this.updateComponents()),this.settingComponent instanceof p.ListSelector){var i=function(){if(o.settingComponent instanceof p.ListSelector){var e=2;(o.settingComponent instanceof c.VideoQualitySelectBox&&o.settingComponent.hasAutoItem()||o.settingComponent instanceof u.AudioQualitySelectBox)&&(e=3),o.settingComponent.itemCount()<e?o.hide():o.show(),o.onActiveChangedEvent(),o.getDomElement().attr("aria-haspopup","true")}};this.settingComponent.onItemAdded.subscribe(i),this.settingComponent.onItemRemoved.subscribe(i),i()}},t.prototype.onLanguageChanged=function(){this.label instanceof l.Label&&"function"==typeof this.config.label&&this.label.setText(this.config.label)},t.prototype.isActive=function(){return this.isShown()},t.prototype.onActiveChangedEvent=function(){this.settingsPanelItemEvents.onActiveChanged.dispatch(this)},Object.defineProperty(t.prototype,"onActiveChanged",{get:function(){return this.settingsPanelItemEvents.onActiveChanged.getEvent()},enumerable:!1,configurable:!0}),t}(r.Container);t.SettingsPanelItem=f},62306:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPage=void 0;var r=n(35238),a=n(14394),s=n(37388),l=n(62772),c=n(99066),u=function(e){function t(t){var n=e.call(this,t)||this;return n.settingsPanelPageEvents={onSettingsStateChanged:new s.EventDispatcher,onActive:new s.EventDispatcher,onInactive:new s.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-page",role:"menu",removeOnPop:!1},n.config),n}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);for(var r=function(){i.onSettingsStateChangedEvent();for(var e=null,n=0,o=i.getItems();n<o.length;n++){var r=o[n];r.getDomElement().removeClass(i.prefixCss(t.CLASS_LAST)),r.isShown()&&(e=r)}e&&e.getDomElement().addClass(i.prefixCss(t.CLASS_LAST))},a=0,s=this.getItems();a<s.length;a++)s[a].onActiveChanged.subscribe(r)},t.prototype.hasActiveSettings=function(){for(var e=0,t=this.getItems();e<t.length;e++){var n=t[e];if(n.getConfig().isSetting&&n.isActive())return!0}return!1},t.prototype.getItems=function(){return this.config.components.filter(function(e){return e instanceof a.SettingsPanelItem})},t.prototype.onSettingsStateChangedEvent=function(){this.settingsPanelPageEvents.onSettingsStateChanged.dispatch(this)},Object.defineProperty(t.prototype,"onSettingsStateChanged",{get:function(){return this.settingsPanelPageEvents.onSettingsStateChanged.getEvent()}
1,enumerable:!1,configurable:!0}),t.prototype.onActiveEvent=function(){var e=this.getItems().filter(function(e){return e.isActive()&&e.getConfig().isSetting});this.settingsPanelPageEvents.onActive.dispatch(this),!(e.length>0)||l.BrowserUtils.isIOS||l.BrowserUtils.isMacIntel&&l.BrowserUtils.isTouchSupported||(e[0]instanceof c.InteractiveSettingsPanelItem?e[0].getDomElement().get(0).focus():e[0].getDomElement().focusToFirstInput())},Object.defineProperty(t.prototype,"onActive",{get:function(){return this.settingsPanelPageEvents.onActive.getEvent()},enumerable:!1,configurable:!0}),t.prototype.onInactiveEvent=function(){this.settingsPanelPageEvents.onInactive.dispatch(this)},Object.defineProperty(t.prototype,"onInactive",{get:function(){return this.settingsPanelPageEvents.onInactive.getEvent()},enumerable:!1,configurable:!0}),t.prototype.addSettingsPanelItem=function(e){this.addComponent(e),this.updateComponents()},t.prototype.removeSettingsPanelItem=function(e){this.removeComponent(e),this.updateComponents()},t.CLASS_LAST="last",t}(r.Container);t.SettingsPanelPage=u},74284:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPageBackButton=void 0;var r=n(6266),a=n(54745),s=n(12070),l=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settingspanelpagebackbutton",text:a.i18n.getLocalizer("back"),buttonStyle:s.ButtonStyle.TextWithLeadingIcon},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.onClick.subscribe(function(){o.popPage()})},t}(r.SettingsPanelPageNavigatorButton);t.SettingsPanelPageBackButton=l},6266:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPageNavigatorButton=void 0;var r=n(12070),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{buttonStyle:r.ButtonStyle.Text},n.config),n.container=n.config.container,n.targetPage=n.config.targetPage,n}return i(t,e),t.prototype.popPage=function(){this.container.popSettingsPanelPage()},t.prototype.pushTargetPage=function(){this.container.setActivePage(this.targetPage)},t}(r.Button);t.SettingsPanelPageNavigatorButton=a},45225:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPageOpenButton=void 0;var r=n(6266),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-navigation-text-button",text:a.i18n.getLocalizer("settings.subtitles.options"),role:"menuitem"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.getDomElement().attr("aria-haspopup","true"),this.getDomElement().attr("aria-owns",this.config.targetPage.getConfig().id),this.onClick.subscribe(function(){o.pushTargetPage()})},t}(r.SettingsPanelPageNavigatorButton);t.SettingsPanelPageOpenButton=s},43625:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelSelectOption=void 0;var r=function(e){function t(t){var n=e.call(this,t)||this;return n.settingsValue=t.settingsValue,n.config=n.mergeConfig(t,{cssClasses:["ui-settings-panel-item-select-option"],role:"menuitem",tabIndex:0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){var e=o.settingComponent.getSelectedItem();o.settingsValue===e?o.getDomElement().addClass(o.prefixCss("selected")):o.getDomElement().removeClass(o.prefixCss("selected"))};this.settingComponent.onItemSelected.subscribe(i),this.onClick.subscribe(function(){o.settingComponent.dispatchItemSelectionChanged(o.settingsValue)}),i()},t}(n(99066).InteractiveSettingsPanelItem);t.SettingsPanelSelectOption=r},53029:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelSeparator=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-separator",role:"separator"},n.config),n}return i(t,e),t}(n(35238).Container);t.SettingsPanelSeparator=r},3434:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsToggleButton=void 0;var r=n(20519),a=n(3325),s=n(5602),l=n(54745),c=function(e){function t(t){var n=e.call(this,t)||this;if(n.visibleSettingsPanels=[],!t.settingsPanel)throw Error("Required SettingsPanel is missing");var o=l.i18n.getLocalizer("settings");return n.config=n.mergeConfig(t,{cssClass:"ui-settingstogglebutton",text:o,onAriaLabel:o,offAriaLabel:o,settingsPanel:null,autoHideWhenNoActiveSettings:!0},n.config),n.getDomElement().attr("aria-haspopup","menu"),n.updateAriaPanelIdRefs(),n.getDomElement().attr("aria-expanded","false"),n}return i(t,e),t.prototype.updateAriaPanelIdRefs=function(){var e=this.getConfig().settingsPanel;if(e){var t=e.getActivePage().getConfig().id;this.getDomElement().attr("aria-controls",t)}},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=i.settingsPanel;if(this.onClick.subscribe(function(){r.isShown()||o.visibleSettingsPanels.slice().filter(function(e){return e.getConfig().hideOnOtherSettingsPanelOpening}
1).forEach(function(e){return e.hide()}),r.toggleHidden()}),r.onShow.subscribe(function(){o.on(),o.getDomElement().attr("aria-expanded","true")}),r.onHide.subscribe(function(){o.off(),o.getDomElement().attr("aria-expanded","false")}),r.onActivePageChanged.subscribe(function(){return o.updateAriaPanelIdRefs()}),this.getDomElement().attr("aria-expanded",r.isShown()?"true":"false"),n.onComponentShow.subscribe(function(e){e instanceof a.SettingsPanel&&e.getConfig().hideOnOtherSettingsPanelOpening&&(o.visibleSettingsPanels.push(e),e.onHide.subscribeOnce(function(){return s.ArrayUtils.remove(o.visibleSettingsPanels,e)}))}),i.autoHideWhenNoActiveSettings){var l=function(){r.rootPageHasActiveSettings()?o.isHidden()&&o.show():o.isShown()&&o.hide()};r.onSettingsStateChanged.subscribe(l),l()}},t}(r.ToggleButton);t.SettingsToggleButton=c},80868:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSelectBox=void 0;var a=n(51824),s=n(42187),l=n(54745),c=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,o=t.comparator?function(e,n){return e.key===s.SubtitleSwitchHandler.SUBTITLES_OFF_KEY&&n.key===s.SubtitleSwitchHandler.SUBTITLES_OFF_KEY?0:e.key===s.SubtitleSwitchHandler.SUBTITLES_OFF_KEY?-1:n.key===s.SubtitleSwitchHandler.SUBTITLES_OFF_KEY?1:t.comparator(e,n)}:void 0;return n.config=n.mergeConfig(r(r({},t),{comparator:o}),{cssClasses:["ui-subtitleselectbox"],ariaLabel:l.i18n.getLocalizer("subtitle.select")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new s.SubtitleSwitchHandler(t,this,n)},t}(a.SelectBox);t.SubtitleSelectBox=c},88428:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleSettingsPanelItem=void 0;var r=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-toggle-settings-panel-item"],role:"menuitemcheckbox",tabIndex:0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.settingComponent.getDomElement().attr("tabindex","-1"),this.settingComponent.setAriaAttr("hidden","true"),this.settingComponent.getDomElement().on("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),o.onClickEvent()},!0);var i=function(){o.setAriaAttr("disabled",o.settingComponent.isDisabled()?"true":"false")};this.onClick.subscribe(function(){o.settingComponent.isDisabled()||o.settingComponent.toggle()}),this.settingComponent.onToggle.subscribe(function(){return o.updateAriaChecked()}),this.settingComponent.onDisabled.subscribe(i),this.settingComponent.onEnabled.subscribe(i),this.updateAriaChecked(),i()},t.prototype.updateAriaChecked=function(){this.getDomElement().attr("aria-checked",this.settingComponent.isOn()?"true":"false")},t}(n(99066).InteractiveSettingsPanelItem);t.ToggleSettingsPanelItem=r},76154:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VideoQualitySelectBox=void 0;var r=n(51824),a=n(54745),s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-videoqualityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){o.selectItem(t.getVideoQuality().id)},r=function(){var e=t.getAvailableVideoQualities();o.clearItems(),o.hasAuto="progressive"!==t.getStreamType(),o.hasAuto&&o.addItem("auto",a.i18n.getLocalizer("auto"));for(var n=0;n<e.length;n++){var r=e[n];o.addItem(r.id,r.label)}i()};this.onItemSelectionChanged.subscribe(function(e,n){t.setVideoQuality(n)}),t.on(t.exports.PlayerEvent.SourceUnloaded,r),t.on(t.exports.PlayerEvent.PeriodSwitched,r),t.on(t.exports.PlayerEvent.VideoQualityChanged,i),t.exports.PlayerEvent.VideoQualityAdded&&(t.on(t.exports.PlayerEvent.VideoQualityAdded,r),t.on(t.exports.PlayerEvent.VideoQualityRemoved,r)),n.getConfig().events.onUpdated.subscribe(r)},t.prototype.hasAutoItem=function(){return this.hasAuto},t}(r.SelectBox);t.VideoQualitySelectBox=s},15006:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundColorSelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsbackgroundcolorselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,a.i18n.getLocalizer("default")),this.addItem("white",a.i18n.getLocalizer("colors.white")),this.addItem("black",a.i18n.getLocalizer("colors.black")),this.addItem("red",a.i18n.getLocalizer("colors.red")),this.addItem("green",a.i18n.getLocalizer("colors.green")),this.addItem("blue",a.i18n.getLocalizer("colors.blue")),this.addItem("cyan",a.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",a.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",a.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.backgroundColor.value=t}),this.settingsManager.backgroundColor.onChanged.subscribe(function(e,t){o.settingsManager.backgroundColor.isSet()?o.settingsManager.backgroundOpacity.isSet()||(o.settingsManager.backgroundOpacity.value="100"):o.settingsManager.backgroundOpacity.clear(),o.selectItem(t.value),o.setColorAndOpacity()}),this.settingsManager.backgroundOpacity.onChanged.subscribe(function(){o.setColorAndOpacity()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.backgroundColor.isSet()&&(this.selectItem(this.settingsManager.backgroundColor.value),this.setColorAndOpacity())},t.prototype.setColorAndOpacity=function(){this.settingsManager.backgroundColor.isSet()&&this.settingsManager.backgroundOpacity.isSet()?this.toggleOverlayClass("bgcolor-"+this.settingsManager.backgroundColor.value+this.settingsManager.backgroundOpacity.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.BackgroundColorSelectBox=s},53963:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundOpacitySelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsbackgroundopacityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,a.i18n.getLocalizer("default")),this.addItem("100",a.i18n.getLocalizer("percent",{value:100})),this.addItem("75",a.i18n.getLocalizer("percent",{value:75})),this.addItem("50",a.i18n.getLocalizer("percent",{value:50})),this.addItem("25",a.i18n.getLocalizer("percent",{value:25})),this.addItem("0",a.i18n.getLocalizer("percent",{value:0})),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.backgroundOpacity.value=t,o.settingsManager.backgroundOpacity.isSet()?o.settingsManager.backgroundColor.isSet()||(o.settingsManager.backgroundColor.value="black"):o.settingsManager.backgroundColor.clear()}),this.settingsManager.backgroundOpacity.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.backgroundOpacity.isSet()&&this.selectItem(this.settingsManager.backgroundOpacity.value)},t}(r.SubtitleSettingSelectBox);t.BackgroundOpacitySelectBox=s},89664:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterEdgeColorSelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitle-settings-character-edge-color-select-box"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,a.i18n.getLocalizer("default")),this.addItem("white",a.i18n.getLocalizer("colors.white")),this.addItem("black",a.i18n.getLocalizer("colors.black")),this.addItem("red",a.i18n.getLocalizer("colors.red")),this.addItem("green",a.i18n.getLocalizer("colors.green")),this.addItem("blue",a.i18n.getLocalizer("colors.blue")),this.addItem("cyan",a.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",a.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",a.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.characterEdgeColor.value=t,o.settingsManager.characterEdgeColor.isSet()?o.settingsManager.characterEdge.isSet()||(o.settingsManager.characterEdge.value="uniform"):o.settingsManager.characterEdge.clear()}),this.settingsManager.characterEdgeColor.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.characterEdgeColor.isSet()&&this.selectItem(this.settingsManager.characterEdgeColor.value)},t}(r.SubtitleSettingSelectBox);t.CharacterEdgeColorSelectBox=s},64131:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterEdgeSelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingscharacteredgeselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,a.i18n.getLocalizer("default")),this.addItem("raised",a.i18n.getLocalizer("settings.subtitles.characterEdge.raised")),this.addItem("depressed",a.i18n.getLocalizer("settings.subtitles.characterEdge.depressed")),this.addItem("uniform",a.i18n.getLocalizer("settings.subtitles.characterEdge.uniform")),this.addItem("dropshadowed",a.i18n.getLocalizer("settings.subtitles.characterEdge.dropshadowed")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.characterEdge.value=t}),this.settingsManager.characterEdge.onChanged.subscribe(function(e,t){o.settingsManager.characterEdge.isSet()?o.settingsManager.characterEdgeColor.isSet()||(o.settingsManager.characterEdgeColor.value="black"):o.settingsManager.characterEdgeColor.clear(),o.selectItem(t.value),o.setColorAndEdgeType()}),this.settingsManager.characterEdgeColor.onChanged.subscribe(function(){o.setColorAndEdgeType()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.characterEdge.isSet()&&(this.selectItem(this.settingsManager.characterEdge.value),this.setColorAndEdgeType())},t.prototype.setColorAndEdgeType=function(){this.settingsManager.characterEdge.isSet()&&this.settingsManager.characterEdgeColor.isSet()?this.toggleOverlayClass("characteredge-"+this.settingsManager.characterEdge.value+"-"+this.settingsManager.characterEdgeColor.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.CharacterEdgeSelectBox=s},48415:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontColorSelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontcolorselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,a.i18n.getLocalizer("default")),this.addItem("white",a.i18n.getLocalizer("colors.white")),this.addItem("black",a.i18n.getLocalizer("colors.black")),this.addItem("red",a.i18n.getLocalizer("colors.red")),this.addItem("green",a.i18n.getLocalizer("colors.green")),this.addItem("blue",a.i18n.getLocalizer("colors.blue")),this.addItem("cyan",a.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",a.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",a.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontColor.value=t}),this.settingsManager.fontColor.onChanged.subscribe(function(e,t){o.settingsManager.fontColor.isSet()?o.settingsManager.fontOpacity.isSet()||(o.settingsManager.fontOpacity.value="100"):o.settingsManager.fontOpacity.clear(),o.selectItem(t.value),o.setColorAndOpacity()}),this.settingsManager.fontOpacity.onChanged.subscribe(function(){o.setColorAndOpacity()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontColor.isSet()&&(this.selectItem(this.settingsManager.fontColor.value),this.setColorAndOpacity())},t.prototype.setColorAndOpacity=function(){this.settingsManager.fontColor.isSet()&&this.settingsManager.fontOpacity.isSet()?this.toggleOverlayClass("fontcolor-"+this.settingsManager.fontColor.value+this.settingsManager.fontOpacity.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.FontColorSelectBox=s},54414:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontFamilySelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontfamilyselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,a.i18n.getLocalizer("default")),this.addItem("monospacedserif",a.i18n.getLocalizer("settings.subtitles.font.family.monospacedserif")),this.addItem("proportionalserif",a.i18n.getLocalizer("settings.subtitles.font.family.proportionalserif")),this.addItem("monospacedsansserif",a.i18n.getLocalizer("settings.subtitles.font.family.monospacedsansserif")),this.addItem("proportionalsansserif",a.i18n.getLocalizer("settings.subtitles.font.family.proportionalsansserif")),this.addItem("casual",a.i18n.getLocalizer("settings.subtitles.font.family.casual")),this.addItem("cursive",a.i18n.getLocalizer("settings.subtitles.font.family.cursive")),this.addItem("smallcapital",a.i18n.getLocalizer("settings.subtitles.font.family.smallcapital")),this.settingsManager.fontFamily.onChanged.subscribe(function(e,t){t.isSet()?o.toggleOverlayClass("fontfamily-"+t.value):o.toggleOverlayClass(null),o.selectItem(t.value)}),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontFamily.value=t}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontFamily.isSet()&&(this.selectItem(this.settingsManager.fontFamily.value),this.toggleOverlayClass("fontfamily-"+this.settingsManager.fontFamily.value))},t}(r.SubtitleSettingSelectBox);t.FontFamilySelectBox=s},32700:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontOpacitySelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontopacityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,a.i18n.getLocalizer("default")),this.addItem("100",a.i18n.getLocalizer("percent",{value:100})),this.addItem("75",a.i18n.getLocalizer("percent",{value:75})),this.addItem("50",a.i18n.getLocalizer("percent",{value:50})),this.addItem("25",a.i18n.getLocalizer("percent",{value:25})),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontOpacity.value=t,o.settingsManager.fontOpacity.isSet()?o.settingsManager.fontColor.isSet()||(o.settingsManager.fontColor.value="white"):o.settingsManager.fontColor.clear()}),this.settingsManager.fontOpacity.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontOpacity.isSet()&&this.selectItem(this.settingsManager.fontOpacity.value)},t}(r.SubtitleSettingSelectBox);t.FontOpacitySelectBox=s},29848:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.FontSizeSelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontsizeselectbox"]},n.config),n}return i(t,e),t.prototype.getFontSizeOptions=function(){return[{key:null,label:a.i18n.getLocalizer("default")},{key:"50",label:a.i18n.getLocalizer("percent",{value:50})},{key:"75",label:a.i18n.getLocalizer("percent",{value:75})},{key:"100",label:a.i18n.getLocalizer("percent",{value:100})},{key:"150",label:a.i18n.getLocalizer("percent",{value:150})},{key:"200",label:a.i18n.getLocalizer("percent",{value:200})},{key:"300",label:a.i18n.getLocalizer("percent",{value:300})},{key:"400",label:a.i18n.getLocalizer("percent",{value:400})}]},t.prototype.populateItemsWithFilter=function(){this.clearItems();for(var e=0,t=this.getFontSizeOptions();e<t.length;e++){var n=t[e];(!this.config.filter||this.config.filter(n))&&this.addItem(n.key,n.label)}this.settingsManager.fontSize.isSet()&&this.selectItem(this.settingsManager.fontSize.value)},t.prototype.reapplyFilterAndReload=function(){this.populateItemsWithFilter()},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.settingsManager.fontSize.onChanged.subscribe(function(e,t){t.isSet()?o.toggleOverlayClass("fontsize-"+t.value):o.toggleOverlayClass(null),o.selectItem(t.value)}),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontSize.value=t}),this.onShow.subscribe(function(){o.populateItemsWithFilter()}),this.populateItemsWithFilter(),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontSize.isSet()&&this.toggleOverlayClass("fontsize-"+this.settingsManager.fontSize.value)},t}(r.SubtitleSettingSelectBox);t.FontSizeSelectBox=s},23210:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontStyleSelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitle-settings-font-style-select-box"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o,i=this;e.prototype.configure.call(this,t,n),this.addItem(null,a.i18n.getLocalizer("default")),this.addItem("italic",a.i18n.getLocalizer("settings.subtitles.font.style.italic")),this.addItem("bold",a.i18n.getLocalizer("settings.subtitles.font.style.bold")),null===(o=this.settingsManager)||void 0===o||o.fontStyle.onChanged.subscribe(function(e,t){t.isSet()?i.toggleOverlayClass("fontstyle-"+t.value):i.toggleOverlayClass(null),i.selectItem(t.value)}),this.onItemSelectionChanged.subscribe(function(e,t){i.settingsManager&&(i.settingsManager.fontStyle.value=t)}),this.initFromSettings()},t.prototype.initFromSettings=function(){var e;(null===(e=this.settingsManager)||void 0===e?void 0:e.fontStyle.isSet())&&(this.selectItem(this.settingsManager.fontStyle.value),this.toggleOverlayClass("fontstyle-"+this.settingsManager.fontStyle.value))},t}(r.SubtitleSettingSelectBox);t.FontStyleSelectBox=s},69850:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingSelectBox=void 0;var r=function(e){function t(t){var n=e.call(this,t)||this;return n.overlay=t.overlay,n}return i(t,e),t.prototype.toggleOverlayClass=function(e){this.currentCssClass&&(this.overlay.getDomElement().removeClass(this.currentCssClass),this.currentCssClass=null),e&&(this.currentCssClass=this.prefixCss(e),this.overlay.getDomElement().addClass(this.currentCssClass))},t.prototype.configure=function(e,t){this.settingsManager=t.getSubtitleSettingsManager()},t}(n(51824).SelectBox);t.SubtitleSettingSelectBox=r}
1,67490:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingsPanelPage=void 0;var r=n(62306),a=n(29848),s=n(54414),l=n(48415),c=n(32700),u=n(64131),p=n(15006),f=n(53963),d=n(7489),g=n(98740),h=n(70821),v=n(74284),y=n(14394),m=n(54745),b=n(6337),C=n(23210),S=n(89664),P=function(e){function t(t){var n=e.call(this,t)||this;n.overlay=t.overlay,n.settingsPanel=t.settingsPanel;var o=[n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.size"),new a.FontSizeSelectBox({overlay:n.overlay,filter:function(e){return n.overlay.filterFontSizeOptions(e)}}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.style"),new C.FontStyleSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.family"),new s.FontFamilySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.color"),new l.FontColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.opacity"),new c.FontOpacitySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.characterEdge"),new u.CharacterEdgeSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.characterEdge.color"),new S.CharacterEdgeColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.background.color"),new p.BackgroundColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.background.opacity"),new f.BackgroundOpacitySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.window.color"),new d.WindowColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.window.opacity"),new g.WindowOpacitySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem)],i=new y.SettingsPanelItem({label:new v.SettingsPanelPageBackButton({container:n.settingsPanel}),settingComponent:new h.SubtitleSettingsResetButton({}),cssClasses:["title-item"],isSetting:!1});return t.useDynamicSettingsPanelItem?o.unshift(i):o.push(i),n.config=n.mergeConfig(t,{components:o},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.onActive.subscribe(function(){o.overlay.enablePreviewSubtitleLabel();var e=o.getComponents().find(function(e){return e instanceof y.SettingsPanelItem&&e.getComponents().some(function(e){return e instanceof a.FontSizeSelectBox})});if(e){var t=e.getComponents().find(function(e){return e instanceof a.FontSizeSelectBox});null==t||t.reapplyFilterAndReload()}}),this.onInactive.subscribe(function(){o.overlay.removePreviewSubtitleLabel()})},t.prototype.buildSettingsPanelItem=function(e,t,n){return(void 0===n&&(n=!1),n)?new b.DynamicSettingsPanelItem({label:e,settingComponent:t,container:this.settingsPanel}):new y.SettingsPanelItem({label:e,settingComponent:t})},t}(r.SettingsPanelPage);t.SubtitleSettingsPanelPage=P},70821:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingsResetButton=void 0;var r=n(12070),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-navigation-text-button",text:a.i18n.getLocalizer("reset"),buttonStyle:r.ButtonStyle.Text},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.settingsManager=n.getSubtitleSettingsManager(),this.onClick.subscribe(function(){o.settingsManager.reset()})},t}(r.Button);t.SubtitleSettingsResetButton=s},7489:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.WindowColorSelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingswindowcolorselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,a.i18n.getLocalizer("default")),this.addItem("white",a.i18n.getLocalizer("colors.white")),this.addItem("black",a.i18n.getLocalizer("colors.black")),this.addItem("red",a.i18n.getLocalizer("colors.red")),this.addItem("green",a.i18n.getLocalizer("colors.green")),this.addItem("blue",a.i18n.getLocalizer("colors.blue")),this.addItem("cyan",a.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",a.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",a.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.windowColor.value=t}),this.settingsManager.windowColor.onChanged.subscribe(function(e,t){o.settingsManager.windowColor.isSet()?o.settingsManager.windowOpacity.isSet()||(o.settingsManager.windowOpacity.value="100"):o.settingsManager.windowOpacity.clear(),o.selectItem(t.value),o.setColorAndOpacity()}),this.settingsManager.windowOpacity.onChanged.subscribe(function(){o.setColorAndOpacity()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.windowColor.isSet()&&(this.selectItem(this.settingsManager.windowColor.value),this.setColorAndOpacity())},t.prototype.setColorAndOpacity=function(){this.settingsManager.windowColor.isSet()&&this.settingsManager.windowOpacity.isSet()?this.toggleOverlayClass("windowcolor-"+this.settingsManager.windowColor.value+this.settingsManager.windowOpacity.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.WindowColorSelectBox=s},98740:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.WindowOpacitySelectBox=void 0;var r=n(69850),a=n(54745),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingswindowopacityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,a.i18n.getLocalizer("default")),this.addItem("100",a.i18n.getLocalizer("percent",{value:100})),this.addItem("75",a.i18n.getLocalizer("percent",{value:75})),this.addItem("50",a.i18n.getLocalizer("percent",{value:50})),this.addItem("25",a.i18n.getLocalizer("percent",{value:25})),this.addItem("0",a.i18n.getLocalizer("percent",{value:0})),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.windowOpacity.value=t,o.settingsManager.windowOpacity.isSet()?o.settingsManager.windowColor.isSet()||(o.settingsManager.windowColor.value="black"):o.settingsManager.windowColor.clear()}),this.settingsManager.windowOpacity.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.windowOpacity.isSet()&&this.selectItem(this.settingsManager.windowOpacity.value)},t}(r.SubtitleSettingSelectBox);t.WindowOpacitySelectBox=s},54745:function(e,t,n){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};
1Object.defineProperty(t,"__esModule",{value:!0}),t.i18n=t.I18n=t.defaultVocabularies=void 0;var i=n(413),r=n(85010),a=n(95998),s=n(38866),l=n(63963),c=n(8258),u=n(37388);t.defaultVocabularies={de:i,en:r,es:a,fr:s,nl:l,pt:c};var p={language:"en",vocabularies:t.defaultVocabularies,events:{onLanguageChanged:new u.EventDispatcher}},f=function(){function e(e){this.setConfig(e)}return e.prototype.setConfig=function(t){this.config=o(o({},p),t);var n="auto"===this.config.language;this.vocabularies=this.mergeVocabulariesWithDefaultVocabularies(this.config.vocabularies),this.initializeLanguage(this.config.language,n,this.vocabularies),this.defaultLanguage=this.resolveDefaultLanguage(this.language),e.containsLanguage(this.vocabularies,this.language)||(this.language=this.defaultLanguage),this.initializeVocabulary(this.vocabularies)},e.prototype.getConfig=function(){return this.config},e.prototype.setLanguage=function(t){var n=this.language;e.containsLanguage(this.vocabularies,t)?this.language=t:e.containsLanguage(this.vocabularies,t.slice(0,2))?this.language=t.slice(0,2):this.language=this.defaultLanguage,this.initializeVocabulary(this.vocabularies),this.language!==n&&this.config.events.onLanguageChanged.dispatch(this,{newLanguage:this.language,oldLanguage:n})},e.containsLanguage=function(e,t){return e.hasOwnProperty(t)},e.prototype.resolveDefaultLanguage=function(t){if(e.containsLanguage(this.vocabularies,t))return t;if(e.containsLanguage(this.vocabularies,"en"))return"en";var n=Object.keys(this.vocabularies);return n.length>0?n[0]:"en"},e.prototype.mergeVocabulariesWithDefaultVocabularies=function(n){void 0===n&&(n={});var i=o(o({},t.defaultVocabularies),n);return Object.keys(i).reduce(function(r,a){var s,l=i[a];return e.containsLanguage(t.defaultVocabularies,a)&&e.containsLanguage(n,a)&&(l=o(o({},t.defaultVocabularies[a]),n[a])),o(o({},r),((s={})[a]=l,s))},{})},e.prototype.initializeLanguage=function(t,n,o){if(n){var i=window.navigator.language;if(e.containsLanguage(o,i)){this.language=i;return}var r=i.slice(0,2);if(e.containsLanguage(o,r)){this.language=r;return}}this.language=t},e.prototype.initializeVocabulary=function(e){this.vocabulary=["en",this.language].reduce(function(t,n){return o(o({},t),e[n]||{})},{})},e.prototype.replaceVariableWithPlaceholderIfExists=function(e,t){var n=e.match(/{[a-zA-Z0-9]+}/g);return 0===n.length?e:n.map(function(e){return{match:e,key:e.slice(1,-1)}}).reduce(function(e,n){var o=n.key,i=n.match;return t.hasOwnProperty(o)?e.replace(i,t[o]):e},e)},e.prototype.getLocalizer=function(e,t){var n=this;return function(){if(null!=e){var o=n.vocabulary[e];return null==o&&(o=e),null!=t&&(o=n.replaceVariableWithPlaceholderIfExists(o,t)),o}}},e.prototype.performLocalization=function(e){return"function"==typeof e?e():e},e}();t.I18n=f,t.i18n=new f(p)},27596:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.RecommendationOverlay=t.ErrorMessageOverlay=t.ViewMode=t.Component=t.CastToggleButton=t.CastStatusOverlay=t.AudioTrackSelectBox=t.AudioQualitySelectBox=t.LabelStyle=t.Label=t.Container=t.UIContainer=t.Watermark=t.VRToggleButton=t.VolumeToggleButton=t.VideoQualitySelectBox=t.ToggleButton=t.SettingsToggleButton=t.NavigationDirection=t.SettingsPanel=t.ItemSelectionList=t.SelectBox=t.SeekBar=t.PlaybackToggleButton=t.PlaybackTimeLabelMode=t.PlaybackTimeLabel=t.HugePlaybackToggleButton=t.FullscreenToggleButton=t.ControlBar=t.ButtonStyle=t.Button=t.SettingsPanelNavigationGroupConfig=t.SettingsPanelNavigationGroup=t.RootNavigationGroup=t.NavigationGroup=t.SpatialNavigation=t.I18n=t.i18n=t.ShadowDomManager=t.ErrorUtils=t.UIPreferencesManager=t.StorageUtils=t.BrowserUtils=t.UIUtils=t.PlayerUtils=t.StringUtils=t.ArrayUtils=t.UIFactory=t.UIComponentLayoutOverride=t.version=void 0,t.ReplayButton=t.ToggleSettingsPanelItem=t.DynamicSettingsPanelItem=t.SettingsPanelItem=t.SubtitleSettingsPanelPage=t.SettingsPanelPageOpenButton=t.SettingsPanelPageBackButton=t.SettingsPanelPage=t.AudioTrackListBox=t.SubtitleListBox=t.ListBox=t.SubtitleSettingsResetButton=t.WindowOpacitySelectBox=t.WindowColorSelectBox=t.SubtitleSettingSelectBox=t.FontSizeSelectBox=t.FontOpacitySelectBox=t.FontFamilySelectBox=t.FontColorSelectBox=t.CharacterEdgeSelectBox=t.Backgroun
1dOpacitySelectBox=t.BackgroundColorSelectBox=t.Spacer=t.CaptionToggleButton=t.PictureInPictureToggleButton=t.VolumeSlider=t.AirPlayToggleButton=t.MetadataLabelContent=t.MetadataLabel=t.CloseButton=t.PlaybackToggleOverlay=t.CastUIContainer=t.PlayerContextMenu=t.InteractiveContextMenuItem=t.ContextMenu=t.BufferingOverlay=t.HugeReplayButton=t.PlaybackSpeedSelectBox=t.AdCounterLabel=t.AdClickOverlay=t.AdMessageLabel=t.AdControlBar=t.AdSkipButton=t.ClickOverlay=t.VolumeControlButton=t.TitleBar=t.SubtitleSelectBox=t.SubtitleOverlay=t.SeekBarLabel=t.RecommendationItem=void 0,t.FontStyleSelectBox=t.CharacterEdgeColorSelectBox=t.TouchControlOverlay=t.InteractiveSettingsPanelItem=t.PlayerInsightsPanel=t.SettingsPanelSeparator=t.SettingsPanelPageNavigatorButton=t.SettingsPanelSelectOption=t.SmallCenteredPlaybackToggleButton=t.TvNoiseCanvas=t.PersistentPreferencesToggleButton=t.EcoModeToggleButton=t.EcoModeContainer=t.DismissClickOverlay=t.Icon=t.AdStatusOverlay=t.ListSelector=t.QuickSeekButton=void 0;var r=n(90439);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),i(n(99493),t),i(n(13877),t);var a=n(95703);Object.defineProperty(t,"UIComponentLayoutOverride",{enumerable:!0,get:function(){return a.UIComponentLayoutOverride}});var s=n(17326);Object.defineProperty(t,"UIFactory",{enumerable:!0,get:function(){return s.UIFactory}});var l=n(5602);Object.defineProperty(t,"ArrayUtils",{enumerable:!0,get:function(){return l.ArrayUtils}});var c=n(74039);Object.defineProperty(t,"StringUtils",{enumerable:!0,get:function(){return c.StringUtils}});var u=n(78966);Object.defineProperty(t,"PlayerUtils",{enumerable:!0,get:function(){return u.PlayerUtils}});var p=n(92836);Object.defineProperty(t,"UIUtils",{enumerable:!0,get:function(){return p.UIUtils}});var f=n(62772);Object.defineProperty(t,"BrowserUtils",{enumerable:!0,get:function(){return f.BrowserUtils}});var d=n(50074);Object.defineProperty(t,"StorageUtils",{enumerable:!0,get:function(){return d.StorageUtils}});var g=n(12663);Object.defineProperty(t,"UIPreferencesManager",{enumerable:!0,get:function(){return g.UIPreferencesManager}});var h=n(51525);Object.defineProperty(t,"ErrorUtils",{enumerable:!0,get:function(){return h.ErrorUtils}});var v=n(4922);Object.defineProperty(t,"ShadowDomManager",{enumerable:!0,get:function(){return v.ShadowDomManager}});var y=n(54745);Object.defineProperty(t,"i18n",{enumerable:!0,get:function(){return y.i18n}}),Object.defineProperty(t,"I18n",{enumerable:!0,get:function(){return y.I18n}});var m=n(55375);Object.defineProperty(t,"SpatialNavigation",{enumerable:!0,get:function(){return m.SpatialNavigation}});var b=n(1996);Object.defineProperty(t,"NavigationGroup",{enumerable:!0,get:function(){return b.NavigationGroup}});var C=n(72560);Object.defineProperty(t,"RootNavigationGroup",{enumerable:!0,get:function(){return C.RootNavigationGroup}});var S=n(27871);Object.defineProperty(t,"SettingsPanelNavigationGroup",{enumerable:!0,get:function(){return S.SettingsPanelNavigationGroup}}),Object.defineProperty(t,"SettingsPanelNavigationGroupConfig",{enumerable:!0,get:function(){return S.SettingsPanelNavigationGroupConfig}});var P=n(12070);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return P.Button}}),Object.defineProperty(t,"ButtonStyle",{enumerable:!0,get:function(){return P.ButtonStyle}});var w=n(71484);Object.defineProperty(t,"ControlBar",{enumerable:!0,get:function(){return w.ControlBar}});var E=n(61110);Object.defineProperty(t,"FullscreenToggleButton",{enumerable:!0,get:function(){return E.FullscreenToggleButton}});var O=n(97172);Object.defineProperty(t,"HugePlaybackToggleButton",{enumerable:!0,get:function(){return O.HugePlaybackToggleButton}});var _=n(87754);Object.defineProperty(t,"PlaybackTimeLabel",{enumerable:!0,get:function(){return _.PlaybackTimeLabel}}),Object.defineProperty(t,"PlaybackTimeLabelMode",{enumerable:!0,get:function(){return _.PlaybackTimeLabelMode}});var k=n(97988);Object.defineProperty(t,"PlaybackToggleButton",{enumerable:!0,get:function(){return k.PlaybackToggleButton}});var T=n(49067);Object.defineProperty(t,"SeekBar",{enumerable:!0,get:function(){return T.SeekBar}});var x=n(51824);Object.defineProperty(t,"SelectBox",{enumerable:!0,get:function(){return x.SelectBox}});var A=n(69563);Object.defineProperty(t,"ItemSelectionList",{enumerable:!0,get:function(){return A.ItemSelectionList}});var I=n(3325);Object.defineProperty(t,"SettingsPanel",{enumerable:!0,get:function(){return I.SettingsPanel}}),Object.defineProperty(t,"NavigationDirection",{enumerable:!0,get:function(){return I.NavigationDirection}});var L=n(3434);Object.defineProperty(t,"SettingsToggleButton",{enumerable:!0,get:function(){return L.SettingsToggleButton}});var M=n(20519);Object.defineProperty(t,"ToggleButton",{enumerable:!0,get:function(){return M.ToggleButton}});var B=n(76154);Object.defineProperty(t,"VideoQualitySelectBox",{enumerable:!0,get:function(){return B.VideoQualitySelectBox}});var j=n(31533);Object.defineProperty(t,"VolumeToggleButton",{enumerable:!0,get:function(){return j.VolumeToggleButton}});var D=n(62311);Object.defineProperty(t,"VRToggleButton",{enumerable:!0,get:function(){return D.VRToggleButton}});var U=n(21533);Object.defineProperty(t,"Watermark",{enumerable:!0,get:function(){return U.Watermark}});var F=n(36207);Object.defineProperty(t,"UIContainer",{enumerable:!0,get:function(){return F.UIContainer}}
1);var R=n(35238);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return R.Container}});var H=n(1230);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return H.Label}}),Object.defineProperty(t,"LabelStyle",{enumerable:!0,get:function(){return H.LabelStyle}});var V=n(86665);Object.defineProperty(t,"AudioQualitySelectBox",{enumerable:!0,get:function(){return V.AudioQualitySelectBox}});var z=n(77080);Object.defineProperty(t,"AudioTrackSelectBox",{enumerable:!0,get:function(){return z.AudioTrackSelectBox}});var N=n(29820);Object.defineProperty(t,"CastStatusOverlay",{enumerable:!0,get:function(){return N.CastStatusOverlay}});var W=n(21903);Object.defineProperty(t,"CastToggleButton",{enumerable:!0,get:function(){return W.CastToggleButton}});var G=n(30040);Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return G.Component}}),Object.defineProperty(t,"ViewMode",{enumerable:!0,get:function(){return G.ViewMode}});var K=n(19554);Object.defineProperty(t,"ErrorMessageOverlay",{enumerable:!0,get:function(){return K.ErrorMessageOverlay}});var q=n(95112);Object.defineProperty(t,"RecommendationOverlay",{enumerable:!0,get:function(){return q.RecommendationOverlay}});var Q=n(85728);Object.defineProperty(t,"RecommendationItem",{enumerable:!0,get:function(){return Q.RecommendationItem}});var Y=n(31642);Object.defineProperty(t,"SeekBarLabel",{enumerable:!0,get:function(){return Y.SeekBarLabel}});var X=n(8954);Object.defineProperty(t,"SubtitleOverlay",{enumerable:!0,get:function(){return X.SubtitleOverlay}});var J=n(80868);Object.defineProperty(t,"SubtitleSelectBox",{enumerable:!0,get:function(){return J.SubtitleSelectBox}});var Z=n(53034);Object.defineProperty(t,"TitleBar",{enumerable:!0,get:function(){return Z.TitleBar}});var $=n(73476);Object.defineProperty(t,"VolumeControlButton",{enumerable:!0,get:function(){return $.VolumeControlButton}});var ee=n(79863);Object.defineProperty(t,"ClickOverlay",{enumerable:!0,get:function(){return ee.ClickOverlay}});var et=n(68515);Object.defineProperty(t,"AdSkipButton",{enumerable:!0,get:function(){return et.AdSkipButton}});var en=n(22982);Object.defineProperty(t,"AdControlBar",{enumerable:!0,get:function(){return en.AdControlBar}});var eo=n(10654);Object.defineProperty(t,"AdMessageLabel",{enumerable:!0,get:function(){return eo.AdMessageLabel}});var ei=n(89323);Object.defineProperty(t,"AdClickOverlay",{enumerable:!0,get:function(){return ei.AdClickOverlay}});var er=n(23750);Object.defineProperty(t,"AdCounterLabel",{enumerable:!0,get:function(){return er.AdCounterLabel}});var ea=n(25018);Object.defineProperty(t,"PlaybackSpeedSelectBox",{enumerable:!0,get:function(){return ea.PlaybackSpeedSelectBox}});var es=n(32816);Object.defineProperty(t,"HugeReplayButton",{enumerable:!0,get:function(){return es.HugeReplayButton}});var el=n(8359);Object.defineProperty(t,"BufferingOverlay",{enumerable:!0,get:function(){return el.BufferingOverlay}});var ec=n(21142);Object.defineProperty(t,"ContextMenu",{enumerable:!0,get:function(){return ec.ContextMenu}});var eu=n(14145);Object.defineProperty(t,"InteractiveContextMenuItem",{enumerable:!0,get:function(){return eu.InteractiveContextMenuItem}});var ep=n(95306);Object.defineProperty(t,"PlayerContextMenu",{enumerable:!0,get:function(){return ep.PlayerContextMenu}});var ef=n(89801);Object.defineProperty(t,"CastUIContainer",{enumerable:!0,get:function(){return ef.CastUIContainer}});var ed=n(75114);Object.defineProperty(t,"PlaybackToggleOverlay",{enumerable:!0,get:function(){return ed.PlaybackToggleOverlay}});var eg=n(89729);Object.defineProperty(t,"CloseButton",{enumerable:!0,get:function(){return eg.CloseButton}});var eh=n(94663);Object.defineProperty(t,"MetadataLabel",{enumerable:!0,get:function(){return eh.MetadataLabel}}),Object.defineProperty(t,"MetadataLabelContent",{enumerable:!0,get:function(){return eh.MetadataLabelContent}});var ev=n(11649);Object.defineProperty(t,"AirPlayToggleButton",{enumerable:!0,get:function(){return ev.AirPlayToggleButton}});var ey=n(29336);Object.defineProperty(t,"VolumeSlider",{enumerable:!0,get:function(){return ey.VolumeSlider}});var em=n(54212);Object.defineProperty(t,"PictureInPictureToggleButton",{enumerable:!0,get:function(){return em.PictureInPictureToggleButton}});var eb=n(34575);Object.defineProperty(t,"CaptionToggleButton",{enumerable:!0,get:function(){return eb.CaptionToggleButton}});var eC=n(59998);Object.defineProperty(t,"Spacer",{enumerable:!0,get:function(){return eC.Spacer}});var eS=n(15006);
1Object.defineProperty(t,"BackgroundColorSelectBox",{enumerable:!0,get:function(){return eS.BackgroundColorSelectBox}});var eP=n(53963);Object.defineProperty(t,"BackgroundOpacitySelectBox",{enumerable:!0,get:function(){return eP.BackgroundOpacitySelectBox}});var ew=n(64131);Object.defineProperty(t,"CharacterEdgeSelectBox",{enumerable:!0,get:function(){return ew.CharacterEdgeSelectBox}});var eE=n(48415);Object.defineProperty(t,"FontColorSelectBox",{enumerable:!0,get:function(){return eE.FontColorSelectBox}});var eO=n(54414);Object.defineProperty(t,"FontFamilySelectBox",{enumerable:!0,get:function(){return eO.FontFamilySelectBox}});var e_=n(32700);Object.defineProperty(t,"FontOpacitySelectBox",{enumerable:!0,get:function(){return e_.FontOpacitySelectBox}});var ek=n(29848);Object.defineProperty(t,"FontSizeSelectBox",{enumerable:!0,get:function(){return ek.FontSizeSelectBox}});var eT=n(69850);Object.defineProperty(t,"SubtitleSettingSelectBox",{enumerable:!0,get:function(){return eT.SubtitleSettingSelectBox}});var ex=n(7489);Object.defineProperty(t,"WindowColorSelectBox",{enumerable:!0,get:function(){return ex.WindowColorSelectBox}});var eA=n(98740);Object.defineProperty(t,"WindowOpacitySelectBox",{enumerable:!0,get:function(){return eA.WindowOpacitySelectBox}});var eI=n(70821);Object.defineProperty(t,"SubtitleSettingsResetButton",{enumerable:!0,get:function(){return eI.SubtitleSettingsResetButton}});var eL=n(89701);Object.defineProperty(t,"ListBox",{enumerable:!0,get:function(){return eL.ListBox}});var eM=n(42569);Object.defineProperty(t,"SubtitleListBox",{enumerable:!0,get:function(){return eM.SubtitleListBox}});var eB=n(33794);Object.defineProperty(t,"AudioTrackListBox",{enumerable:!0,get:function(){return eB.AudioTrackListBox}});var ej=n(62306);Object.defineProperty(t,"SettingsPanelPage",{enumerable:!0,get:function(){return ej.SettingsPanelPage}});var eD=n(74284);Object.defineProperty(t,"SettingsPanelPageBackButton",{enumerable:!0,get:function(){return eD.SettingsPanelPageBackButton}});var eU=n(45225);Object.defineProperty(t,"SettingsPanelPageOpenButton",{enumerable:!0,get:function(){return eU.SettingsPanelPageOpenButton}});var eF=n(67490);Object.defineProperty(t,"SubtitleSettingsPanelPage",{enumerable:!0,get:function(){return eF.SubtitleSettingsPanelPage}});var eR=n(14394);Object.defineProperty(t,"SettingsPanelItem",{enumerable:!0,get:function(){return eR.SettingsPanelItem}});var eH=n(6337);Object.defineProperty(t,"DynamicSettingsPanelItem",{enumerable:!0,get:function(){return eH.DynamicSettingsPanelItem}});var eV=n(88428);Object.defineProperty(t,"ToggleSettingsPanelItem",{enumerable:!0,get:function(){return eV.ToggleSettingsPanelItem}});var ez=n(67031);Object.defineProperty(t,"ReplayButton",{enumerable:!0,get:function(){return ez.ReplayButton}});var eN=n(57456);Object.defineProperty(t,"QuickSeekButton",{enumerable:!0,get:function(){return eN.QuickSeekButton}});var eW=n(89022);Object.defineProperty(t,"ListSelector",{enumerable:!0,get:function(){return eW.ListSelector}});var eG=n(52092);Object.defineProperty(t,"AdStatusOverlay",{enumerable:!0,get:function(){return eG.AdStatusOverlay}});var eK=n(29745);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return eK.Icon}});var eq=n(64248);Object.defineProperty(t,"DismissClickOverlay",{enumerable:!0,get:function(){return eq.DismissClickOverlay}});var eQ=n(26696);Object.defineProperty(t,"EcoModeContainer",{enumerable:!0,get:function(){return eQ.EcoModeContainer}});var eY=n(35918);Object.defineProperty(t,"EcoModeToggleButton",{enumerable:!0,get:function(){return eY.EcoModeToggleButton}});var eX=n(24371);Object.defineProperty(t,"PersistentPreferencesToggleButton",{enumerable:!0,get:function(){return eX.PersistentPreferencesToggleButton}});var eJ=n(39038);Object.defineProperty(t,"TvNoiseCanvas",{enumerable:!0,get:function(){return eJ.TvNoiseCanvas}});var eZ=n(43187);Object.defineProperty(t,"SmallCenteredPlaybackToggleButton",{enumerable:!0,get:function(){return eZ.SmallCenteredPlaybackToggleButton}});var e$=n(43625);Object.defineProperty(t,"SettingsPanelSelectOption",{enumerable:!0,get:function(){return e$.SettingsPanelSelectOption}});var e0=n(6266);Object.defineProperty(t,"SettingsPanelPageNavigatorButton",{enumerable:!0,get:function(){return e0.SettingsPanelPageNavigatorButton}});var e1=n(53029);Object.defineProperty(t,"SettingsPanelSeparator",{enumerable:!0,get:function(){return e1.SettingsPanelSeparator}});var e8=n(11506);Object.defineProperty(t,"PlayerInsightsPanel",{enumerable:!0,get:function(){return e8.PlayerInsightsPanel}});var e5=n(99066);Object.defineProperty(t,"InteractiveSettingsPanelItem",{enumerable:!0,get:function(){return e5.InteractiveSettingsPanelItem}});var e3=n(75482);Object.defineProperty(t,"TouchControlOverlay",{enumerable:!0,get:function(){return e3.TouchControlOverlay}});var e2=n(89664);Object.defineProperty(t,"CharacterEdgeColorSelectBox",{enumerable:!0,get:function(){return e2.CharacterEdgeColorSelectBox}});var e4=n(23210);Object.defineProperty(t,"FontStyleSelectBox",{enumerable:!0,get:function(){return e4.FontStyleSelectBox}}),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e})}
1,29810:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FocusableContainer=void 0;var o=n(28944),i=n(39169),r=function(){function e(e,t){if(void 0===t&&(t=void 0),this.container=e,this._primaryComponent=t,t&&!this.components.includes(t))throw Error("The primary component must be part of the container.")}return Object.defineProperty(e.prototype,"primaryComponent",{get:function(){var e;return null!==(e=this._primaryComponent)&&void 0!==e?e:this.components[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return(0,o.resolveAllComponents)(this.container).filter(function(e){return(0,i.isFocusable)(e)})},enumerable:!1,configurable:!0}),e}();t.FocusableContainer=r},5989:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getComponentInDirection=function(e,t,n){if(e){var l=s((0,r.toHtmlElement)(e)),c=t.map(function(e){return e instanceof i.FocusableContainer?{component:e,element:(0,r.toHtmlElement)(e.container)}:{component:e,element:(0,r.toHtmlElement)(e)}}).filter(function(t){return t.component!==e}).map(function(e){var t,i,r,c,u=e.element,p=e.component,f=s(u),d=a({x:f.x-l.x,y:f.y-l.y});return{angle:(t={x:n===o.Direction.LEFT?-1:n===o.Direction.RIGHT?1:0,y:n===o.Direction.UP?-1:n===o.Direction.DOWN?1:0},r=a(i={x:f.x-l.x,y:f.y-l.y}),c={x:i.x/r,y:i.y/r},180*Math.acos((t.x*c.x+t.y*c.y)/(a(t)*a(c)))/Math.PI),dist:d,element:u,component:p}}).filter(function(e){return e.angle<89}),u=c.filter(function(e){return 0===e.angle});return(u.length>0?u.sort(function(e,t){return e.dist-t.dist}).map(function(e){return e.component}):c.filter(function(e){return 0!==e.angle}).sort(function(e,t){return e.dist-t.dist}).map(function(e){return e.component})).shift()}},t.getBoundingRectFromElement=l;var o=n(39843),i=n(29810),r=n(81792);function a(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function s(e){var t=l(e);return{x:t.x+t.width/2,y:t.y+t.height/2}}function l(e){var t=e.getBoundingClientRect();return"number"!=typeof t.x&&"number"!=typeof t.y&&(t.x=t.left,t.y=t.top),t}},1996:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationGroup=void 0;var o=n(35238),i=n(5989),r=n(28944),a=n(50236),s=n(39169),l=n(39843),c=n(29810),u=n(81792),p=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.container=e,this.removeElementHoverEventListeners=function(){},this._components=t,this.eventSubscriber=new a.NodeEventSubscriber}return e.prototype.getComponents=function(){var e=[],t=this._components.filter(function(e){return e instanceof c.FocusableContainer}).map(function(e){return e});if(this.activeComponent){var n=this.getActiveFocusableContainer();n?e.push.apply(e,n.components):e.push.apply(e,t)}return this._components.filter(function(e){return!(e instanceof c.FocusableContainer)}).forEach(function(t){t instanceof o.Container?e.push.apply(e,(0,r.resolveAllComponents)(t)):e.push(t)}),e.filter(function(e){return(0,s.isFocusable)(e)})},e.prototype.getActiveComponent=function(){return this.activeComponent},e.prototype.focusComponent=function(e){var t;t=e instanceof c.FocusableContainer?e.primaryComponent:e,this.blurActiveComponent(),this.activeComponent=t,(0,u.toHtmlElement)(this.activeComponent).focus()},e.prototype.blurActiveComponent=function(){this.activeComponent&&(0,u.toHtmlElement)(this.activeComponent).blur()},e.prototype.focusFirstComponent=function(){var e=this.getComponents()[0];e&&this.focusComponent(e)},e.prototype.defaultNavigationHandler=function(e){var t=this;if(!this.activeComponent)return!1;var n=function(n){var o=n instanceof c.FocusableContainer?n.primaryComponent:n;t.afterNavigation&&t.afterNavigation(e,o)},o=this.getActiveFocusableContainer();if(o){var r=(0,i.getComponentInDirection)(this.activeComponent,o.components,e);if(r)return this.focusComponent(r),n(r),!0}var a=(0,i.getComponentInDirection)(this.activeComponent,this.getComponents(),e);return a?(this.focusComponent(a),n(a),!0):(n(a),!1)},e.prototype.defaultActionHandler=function(e){switch(e){case l.Action.SELECT:return this.activeComponent&&(0,u.toHtmlElement)(this.activeComponent).click(),!!this.activeComponent;case l.Action.BACK:return this.container.hide(),!0}return!1},e.prototype.handleInput=function(e,t,n){var o=!0,i=!1;if(n&&this.activeComponent&&(i=!!n(e,this.activeComponent,function(){return o=!1})),o){var r=t.call(this,e);i=i||r}return i},e.prototype.handleNavigation=function(e){return this.activeComponent?this.handleInput(e,this.defaultNavigationHandler,this.onNavigation):(this.activeComponentBeforeDisable?this.focusComponent(this.activeComponentBeforeDisable):this.focusFirstC
vendor: 8,536 bytes, line 1
1omponent(),!!this.activeComponent)},e.prototype.handleAction=function(e){return this.handleInput(e,this.defaultActionHandler,this.onAction)},e.prototype.disable=function(){this.activeComponent&&(this.activeComponentBeforeDisable=this.activeComponent,this.blurActiveComponent(),this.activeComponent=void 0)},e.prototype.enable=function(){this.activeComponentBeforeDisable&&!(0,s.isSettingsPanel)(this.container)?(this.focusComponent(this.activeComponentBeforeDisable),this.activeComponentBeforeDisable=void 0):this.focusFirstComponent(),this.trackElementHover()},e.prototype.trackElementHover=function(){var e=this;this.removeElementHoverEventListeners();var t=[];this.getComponents().forEach(function(e){(e instanceof o.Container?(0,r.resolveAllComponents)(e):e instanceof c.FocusableContainer?(0,r.resolveAllComponents)(e.container):[e]).forEach(function(e){t.push(e)})});var n=t.map(function(e){return{component:e,element:(0,u.toHtmlElement)(e)}}).map(function(t){var n=t.element,o=t.component,i=e.focusComponent.bind(e,o),r=function(){return e.disable()};return e.eventSubscriber.on(n,"mouseenter",i),e.eventSubscriber.on(n,"mouseleave",r),function(){e.eventSubscriber.off(n,"mouseenter",i),e.eventSubscriber.off(n,"mouseleave",r)}});this.removeElementHoverEventListeners=function(){return n.forEach(function(e){return e()})}},e.prototype.release=function(){this.eventSubscriber.release(),this.activeComponent=void 0,this._components.splice(0,this._components.length),this.removeElementHoverEventListeners()},e.prototype.getActiveFocusableContainer=function(){var e=this;if(this.activeComponent)return this._components.filter(function(e){return e instanceof c.FocusableContainer}).map(function(e){return e}).find(function(t){return t.components.includes(e.activeComponent)})},e}();t.NavigationGroup=p},50236:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NodeEventSubscriber=void 0;var n=function(){function e(){this.attachedListeners=new Map}return e.prototype.getEventListenersOfType=function(e){return this.attachedListeners.has(e)||this.attachedListeners.set(e,[]),this.attachedListeners.get(e)},e.prototype.on=function(e,t,n,o){e.addEventListener(t,n,o),this.getEventListenersOfType(t).push([e,n,o])},e.prototype.off=function(e,t,n,o){var i=this.getEventListenersOfType(t),r=i.findIndex(function(t){var i=t[0],r=t[1],a=t[2];return i===e&&r===n&&a===o});e.removeEventListener(t,n,o),r>-1&&i.splice(r,1)},e.prototype.release=function(){var e=this;this.attachedListeners.forEach(function(t,n){t.forEach(function(t){var o=t[0],i=t[1],r=t[2];e.off(o,n,i,r)})}),this.attachedListeners.clear()},e}();t.NodeEventSubscriber=n},65083:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RecommendationOverlayNavigationGroup=void 0;var r=n(1996),a=n(29810),s=function(e){function t(t){var n=e.call(this,t,t.replayButton,new a.FocusableContainer(t.recommendationContainer))||this;return n.recommendationOverlay=t,n}return i(t,e),t.prototype.getComponents=function(){return this.recommendationOverlay.recommendationContainer.getComponents().length>0?e.prototype.getComponents.call(this):[this.recommendationOverlay.replayButton]},t}(r.NavigationGroup);t.RecommendationOverlayNavigationGroup=s},72560:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.RootNavigationGroup=void 0;var a=n(1996),s=n(39843),l=function(e){function t(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=e.apply(this,r([t],n,!1))||this;return i.container=t,i}return i(t,e),t.prototype.handleAction=function(t){return t!==s.Action.BACK&&this.container.showUi(),e.prototype.handleAction.call(this,t)},t.prototype.handleNavigation=function(t){return this.container.showUi(),e.prototype.handleNavigation.call(this,t)},t.prototype.defaultActionHandler=function(t){return t!==s.Action.BACK?e.prototype.defaultActionHandler.call(this,t):!!this.isUiShown()&&(this.container.hideUi(),!0)},t.prototype.isUiShown=function(){var e,t=null===(e=this.container.getDomElement().get(0))||void 0===e?void 0:e.classList;return!!t&&Array.from(t).some(function(e){return/-controls-shown$/.test(e)})},t.prototype.release=function(){e.prototype.release.call(this)},t}(a.NavigationGroup);t.RootNavigationGroup=l},32110:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarHandler=void 0;var o=n(50236),i=n(39843),r=n(5989),a=n(81792),s=function(){function e(e){var t=this;this.rootNavigationGroup=e,this.cursorPosition={x:0,y:0},this.isScrubbing=!1,this.scrubSpeedPercentage=.005,this.onNavigation=function(e,n,o){var r=(0,a.toHtmlElement)(n);return!!l(r)&&(e===i.Direction.UP||e===i.Direction.DOWN?t.stopSeeking(c(r)):(t.initializeOrUpdateCursorPosition(r,e),t.dispatchMouseMoveEvent(c(r)),o()),!0)},this.onAction=function(e,n,o){var r=(0,a.toHtmlElement)(n);if(!l(r))return!1;var s=c(r);return e===i.Action.SELECT&&t.isScrubbing?(t.dispatchMouseClickEvent(s),o(),!0):e===i.Action.BACK&&!!t.isScrubbing&&(t.stopSeeking(s),o(),!0)},this.rootNavigationGroup.onAction=this.onAction,this.eventSubscriber=new o.NodeEventSubscriber,this.rootNavigationGroup.onNavigation=this.onNavigation}return e.prototype.updateScrubSpeedPercentage=function(){var e=this;clearTimeout(this.scrubSpeedResetTimeout),this.scrubSpeedPercentage*=1.1,this.scrubSpeedResetTimeout=window.setTimeout(function(){return e.scrubSpeedPercentage=.005},100)},e.prototype.getIncrement=function(e,t){this.updateScrubSpeedPercentage();var n=t*this.scrubSpeedPercentage;return e===i.Direction.RIGHT?n:-n},e.prototype.resetCursorPosition=function(){this.cursorPosition.x=0,this.cursorPosition.y=0},e.prototype.updateCursorPosition=function(e,t){var n=(0,r.getBoundingRectFromElement)(t),o=this.getIncrement(e,n.width),i=n.x,a=n.x+n.width;this.cursorPosition.x=Math.min(Math.max(this.cursorPosition.x+o,i),a)},e.prototype.initializeCursorPosition=function(e){var t=e.querySelector('[class*="seekbar-playbackposition-marker"]'),n=(0,r.getBoundingRectFromElement)(t),o=n.x+n.width/2,i=n.y;this.cursorPosition.x=o,this.cursorPosition.y=i},e.prototype.initializeOrUpdateCursorPosition=function(e,t){this.isScrubbing?this.updateCursorPosition(t,e):this.initializeCursorPosition(e),this.isScrubbing=!0},e.prototype.getCursorPositionMouseEventInit=function(){return{clientX:this.cursorPosition.x,clientY:this.cursorPosition.y}},e.prototype.dispatchMouseMoveEvent=function(e){e.dispatchEvent(new MouseEvent("mousemove",this.getCursorPositionMouseEventInit()))},e.prototype.dispatchMouseClickEvent=function(e){var t=this,n=function(){var o=t.getCursorPositionMouseEventInit();document.dispatchEvent(new MouseEvent("mouseup",o)),t.eventSubscriber.off(e,"mousedown",n),t.stopSeeking(e)};this.eventSubscriber.on(e,"mousedown",n),e.dispatchEvent(new MouseEvent("mousedown"))},e.prototype.stopSeeking=function(e){this.resetCursorPosition(),this.isScrubbing=!1,this.dispatchMouseLeaveEvent(e)},e.prototype.dispatchMouseLeaveEvent=function(e){e.dispatchEvent(new MouseEvent("mouseleave"))},e.prototype.release=function(){this.eventSubscriber.release(),this.rootNavigationGroup.onAction=void 0,this.rootNavigationGroup.onNavigation=void 0},e}();function l(e){return Array.from(e.classList).findIndex(function(e){return/-ui-seekbar$/.test(e)})>-1}function c(e){return e.children.item(0)}t.SeekBarHandler=s},27871:function(e,t,n){var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelNavigationGroup=t.SettingsPanelNavigationGroupConfig=void 0;var a=n(1996),s=n(39843),l=n(28944),c=n(99066);t.SettingsPanelNavigationGroupConfig=function(){};var u=function(e){function t(t,n){void 0===n&&(n=void 0);var o=this,i=t.getRootPage().getItems();return(o=e.apply(this,r([t],i,!1))||this).settingsPanel=t,o.config=Object.assign({},o.config,{closeOnSelect:!0},n),t.onActivePageChanged.subscribe(function(){o.activeComponent=void 0,o.focusFirstComponent()}),o}return i(t,e),t.prototype.getComponents=function(){var e=this.settingsPanel.getActivePage().getItems(),t=[];return e.forEach(function(e){e instanceof c.InteractiveSettingsPanelItem?t.push(e):t.push.apply(t,(0,l.resolveAllComponents)(e))}),t},t.prototype.defaultActionHandler=function(t){return t===s.Action.BACK?(this.settingsPanel.popSettingsPanelPage(),!0):t===s.Action.SELECT?(e.prototype.defaultActionHandler.call(this,t),this.config.closeOnSelect&&(this.settingsPanel.hide(),e.prototype.defaultActionHandler.call(this,s.Action.BACK)),!0):e.prototype.defaultActionHandler.call(this,t)},t}(a.NavigationGroup);t.SettingsPanelNavigationGroup=u},55375:function(e,t,n){var o=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SpatialNavigation=void 0;var i=n(50236),r=n(32110),a=n(63664),s=n(39169),l=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var l=this;this.navigationGroups=[],this.onShow=function(e){l.activeNavigationGroups.push(e),l.updateEnabledNavigationGroup()},this.onHide=function(e){var t=l.activeNavigationGroups.findIndex(function(t){return t===e});t>-1&&(e.disable(),l.activeNavigationGroups.splice(t,1),l.updateEnabledNavigationGroup())},this.handleKeyEvent=function(e){var t=l.keyMap[e.keyCode],n=l.getActiveNavigationGroup();!(!n||!n.container||n.container.isHidden()||n.container.isDisabled())&&((0,s.isDirection)(t)?(n.handleNavigation(t),e.preventDefault(),e.stopPropagation()):(0,s.isAction)(t)&&n.handleAction(t)&&(e.preventDefault(),e.stopPropagation()))},this.seekBarHandler=new r.SeekBarHandler(e),this.activeNavigationGroups=[],this.unsubscribeVisibilityChangesFns=[],this.eventSubscriber=new i.NodeEventSubscriber,this.navigationGroups=o([e],t,!0),this.keyMap=(0,a.getKeyMapForPlatform)(),this.subscribeToNavigationGroupVisibilityChanges(),this.attachKeyEventHandler(),this.enableDefaultNavigationGroup()}return e.prototype.attachKeyEventHandler=function(){this.eventSubscriber.on(document,"keydown",this.handleKeyEvent,!0)},e.prototype.subscribeToNavigationGroupVisibilityChanges=function(){var e=this;this.navigationGroups.forEach(function(t){var n=function(){return e.onShow(t)},o=function(){return e.onHide(t)};t.container.onShow.subscribe(n),t.container.onHide.subscribe(o),e.unsubscribeVisibilityChangesFns.push(function(){return t.container.onShow.unsubscribe(n)},function(){return t.container.onHide.unsubscribe(o)})})},e.prototype.unsubscribeFromNavigationGroupVisibilityChanges=function(){this.unsubscribeVisibilityChangesFns.forEach(function(e){return e()}),this.unsubscribeVisibilityChangesFns=[]},e.prototype.enableDefaultNavigationGroup=function(){var e,t=null!==(e=this.navigationGroups.find(function(e){return e.container.isShown()}))&&void 0!==e?e:this.navigationGroups[0];t&&(this.activeNavigationGroups.push(t),this.updateEnabledNavigationGroup())},e.prototype.updateEnabledNavigationGroup=function(){var e=this;this.activeNavigationGroups.forEach(function(t,n){n<e.activeNavigationGroups.length-1?t.disable():t.enable()})},e.prototype.getActiveNavigationGroup=function(){return this.activeNavigationGroups[this.activeNavigationGroups.length-1]},e.prototype.release=function(){this.unsubscribeFromNavigationGroupVisibilityChanges(),this.eventSubscriber.release(),this.navigationGroups.forEach(function(e){return e.release()}),this.seekBarHandler.release()},e}();t.SpatialNavigation=l}
1,39169:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isSettingsPanel=function(e){return e instanceof i.SettingsPanel},t.isComponent=function(e){return null!=e&&e instanceof o.Component},t.isContainer=function(e){return null!=e&&e instanceof r.Container},t.isDirection=function(e){return"string"==typeof e&&Object.values(a.Direction).includes(e)},t.isAction=function(e){return"string"==typeof e&&Object.values(a.Action).includes(e)},t.isFocusable=function(e){return e instanceof s.FocusableContainer||e.isShown()&&e.getConfig().tabIndex>=0};var o=n(30040),i=n(3325),r=n(35238),a=n(39843),s=n(29810)},63664:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getKeyMapForPlatform=function(){var e=[a,r,s,c,l,u].find(function(e){return e.isApplicable()});return e?e.keyCodes:p};var o=n(39843),i=n(62772),r={isApplicable:function(){return i.BrowserUtils.isTizen},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,10009:o.Action.BACK}},a={isApplicable:function(){return i.BrowserUtils.isWebOs},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,461:o.Action.BACK}},s={isApplicable:function(){return i.BrowserUtils.isPlayStation},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,27:o.Action.BACK}},l={isApplicable:function(){return i.BrowserUtils.isAndroid},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,27:o.Action.BACK}},c={isApplicable:function(){return i.BrowserUtils.isHisense},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,8:o.Action.BACK}},u={isApplicable:function(){return i.BrowserUtils.isXbox},keyCodes:{203:o.Direction.UP,211:o.Direction.UP,204:o.Direction.DOWN,212:o.Direction.DOWN,205:o.Direction.LEFT,214:o.Direction.LEFT,206:o.Direction.RIGHT,213:o.Direction.RIGHT,195:o.Action.SELECT}},p={38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,27:o.Action.BACK}},28944:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAllComponents=function e(t){var n=[];return t.getComponents().forEach(function(t){(0,o.isContainer)(t)?n.push.apply(n,e(t)):(0,o.isComponent)(t)&&n.push(t)}),n};var o=n(39169)},81792:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toHtmlElement=function(e){return e.getDomElement().get(0)}},39843:function(e,t){var n,o,i,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Action=t.Direction=void 0,(i=n||(t.Direction=n={})).UP="up",i.DOWN="down",i.LEFT="left",i.RIGHT="right",(r=o||(t.Action=o={})).SELECT="select",r.BACK="back"},29672:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AdBreakTracker=void 0;var o=n(37388),i=function(){function e(e){var t=this;this.player=e,this.groupBreaks=[],this.groupScheduleTime=void 0,this.events={onAdCountChanged:new o.EventDispatcher},this.handleAdStarted=function(){var e,n,o,i,r,a=null===(n=null===(e=t.player.ads)||void 0===e?void 0:e.getActiveAdBreak)||void 0===n?void 0:n.call(e);if(!a){t.reset(),t.dispatchChanged();return}var s=(null!==(r=null===(i=null===(o=t.player.ads)||void 0===o?void 0:o.list)||void 0===i?void 0:i.call(o))&&void 0!==r?r:[]).some(function(e){return e.scheduleTime===a.scheduleTime}),l=t.groupBreaks.length>0&&a.scheduleTime===t.groupScheduleTime;l||s?(!l&&t.groupBreaks.length>0&&(t.groupBreaks=[]),t.groupScheduleTime=a.scheduleTime,t.groupBreaks.includes(a)||t.groupBreaks.push(a)):(t.groupBreaks=[a],t.groupScheduleTime=void 0),t.dispatchChanged()},this.handleAdBreakFinished=function(e){if(e.adBreak.scheduleTime!==t.groupScheduleTime){void 0===t.groupScheduleTime&&(t.reset(),t.dispatchChanged());return}var n,o,i,r,a,s=(null!==(i=null===(o=null===(n=t.player.ads)||void 0===n?void 0:n.list)||void 0===o?void 0:o.call(n))&&void 0!==i?i:[]).filter(function(e){return e.scheduleTime===t.groupScheduleTime}),l=null===(a=null===(r=t.player.ads)||void 0===r?void 0:r.getActiveAdBreak)||void 0===a?void 0:a.call(r),c=(null==l?void 0:l.scheduleTime)===t.groupScheduleTime&&void 0!==t.groupScheduleTime;
10!==s.length||c||(t.reset(),t.dispatchChanged())},e.on(e.exports.PlayerEvent.AdStarted,this.handleAdStarted),e.on(e.exports.PlayerEvent.AdBreakFinished,this.handleAdBreakFinished)}return Object.defineProperty(e.prototype,"onAdCountChanged",{get:function(){return this.events.onAdCountChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAdIndex",{get:function(){var e,t,n,o,i,r=null===(t=null===(e=this.player.ads)||void 0===e?void 0:e.getActiveAd)||void 0===t?void 0:t.call(e);if(!r||0===this.groupBreaks.length)return 0;for(var a=0,s=0,l=this.groupBreaks;s<l.length;s++){var c=l[s],u=null!==(n=c.ads)&&void 0!==n?n:[];if(u.length>0){var p=u.findIndex(function(e){return null!=r.id&&null!=e.id?e.id===r.id:e===r});if(p>=0)return a+p+1;a+=u.length}else{var f=null===(i=null===(o=this.player.ads)||void 0===o?void 0:o.getActiveAdBreak)||void 0===i?void 0:i.call(o);if(f===c||(null==f?void 0:f.id)!=null&&f.id===c.id)return a+1;a+=1}}return a+1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalNumberOfAds",{get:function(){var e,t,n,o=this;return 0===this.groupBreaks.length?0:this.groupBreaks.reduce(function(e,t){var n;return e+((null===(n=t.ads)||void 0===n?void 0:n.length)>0?t.ads.length:1)},0)+(null!==(n=null===(t=null===(e=this.player.ads)||void 0===e?void 0:e.list)||void 0===t?void 0:t.call(e))&&void 0!==n?n:[]).filter(function(e){return e.scheduleTime===o.groupScheduleTime}).reduce(function(e,t){var n;return e+((null===(n=t.ads)||void 0===n?void 0:n.length)>0?t.ads.length:1)},0)},enumerable:!1,configurable:!0}),e.prototype.release=function(){this.player.off(this.player.exports.PlayerEvent.AdStarted,this.handleAdStarted),this.player.off(this.player.exports.PlayerEvent.AdBreakFinished,this.handleAdBreakFinished),this.reset(),this.events.onAdCountChanged.unsubscribeAll()},e.prototype.dispatchChanged=function(){this.events.onAdCountChanged.dispatch(this,{currentAdIndex:this.currentAdIndex,totalNumberOfAds:this.totalNumberOfAds})},e.prototype.reset=function(){this.groupBreaks=[],this.groupScheduleTime=void 0},e}();t.AdBreakTracker=i},5602:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0,(n||(t.ArrayUtils=n={})).remove=function(e,t){var n=e.indexOf(t);return n>-1?e.splice(n,1)[0]:null}},1782:function(e,t,n){var o=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackSwitchHandler=void 0;var i=n(54745),r=function(){function e(e,t,n){var r=this;this.addAudioTrack=function(e){var t=e.track;if(!r.hasComparator()){r.listElement.hasItem(t.id)||r.listElement.addItem(t.id,i.i18n.getLocalizer(t.label),!0);return}var n=r.player.getAvailableAudio(),a=n.some(function(e){return e.id===t.id})?n:o(o([],n,!0),[t],!1);r.listElement.synchronizeItems(a.map(function(e){return r.audioTrackToListItem(e)})),r.selectCurrentAudioTrack()},this.removeAudioTrack=function(e){var t=e.track;r.listElement.hasItem(t.id)&&r.listElement.removeItem(t.id)},this.selectCurrentAudioTrack=function(){var e=r.player.getAudio();e&&r.listElement.selectItem(e.id)},this.refreshAudioTracks=function(){var e=r.listElement.getSelectedItem();r.listElement.synchronizeItems(r.player.getAvailableAudio().map(function(e){return r.audioTrackToListItem(e)})),r.player.getAudio()?r.selectCurrentAudioTrack():e&&r.listElement.hasItem(e)&&r.listElement.selectItem(e)},this.player=e,this.listElement=t,this.uimanager=n,this.bindSelectionEvent(),this.bindPlayerEvents(),this.refreshAudioTracks()}return e.prototype.bindSelectionEvent=function(){var e=this;this.listElement.onItemSelectionChanged.subscribe(function(t,n){e.player.setAudio(n)})},e.prototype.bindPlayerEvents=function(){this.player.on(this.player.exports.PlayerEvent.AudioChanged,this.selectCurrentAudioTrack),this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,this.refreshAudioTracks),this.player.on(this.player.exports.PlayerEvent.PeriodSwitched,this.refreshAudioTracks),this.player.on(this.player.exports.PlayerEvent.AudioAdded,this.addAudioTrack),this.player.on(this.player.exports.PlayerEvent.AudioRemoved,this.removeAudioTrack),this.uimanager.getConfig().events.onUp
1dated.subscribe(this.refreshAudioTracks)},e.prototype.hasComparator=function(){return null!=this.listElement.getConfig().comparator},e.prototype.audioTrackToListItem=function(e){return{key:e.id,label:e.label}},e}();t.AudioTrackSwitchHandler=r},62772:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserUtils=void 0;var n=function(){function e(){}return Object.defineProperty(e,"isMobile",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Mobi/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isChrome",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Chrome/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isAndroid",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Android/.test(navigator.userAgent)&&!this.isHisense},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isIOS",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/iPad|iPhone|iPod/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isMacIntel",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&"MacIntel"===navigator.platform},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isTv",{get:function(){return this.isHisense||this.isPlayStation||this.isWebOs||this.isTizen||this.isVizio||this.isXumo||this.isXbox||this.isVidaa},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isHisense",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Hisense/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isPlayStation",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/PlayStation/i.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isWebOs",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&(navigator.userAgent.includes("Web0S")||navigator.userAgent.includes("NetCast"))},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isTizen",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Tizen/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isVizio",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/vizio/.test(navigator.userAgent.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isXumo",{get:function(){return!!this.windowExists()&&(navigator&&navigator.userAgent&&/sky_ott/.test(navigator.userAgent.toLowerCase())||navigator&&navigator.userAgent&&/xglobal/.test(navigator.userAgent.toLowerCase())||navigator&&navigator.userAgent&&/xfinity/.test(navigator.userAgent.toLowerCase()))},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isXbox",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Xbox/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isVidaa",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/vidaa/.test(navigator.userAgent.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isTouchSupported",{get:function(){return!!this.windowExists()&&("ontouchstart"in window||navigator&&navigator.userAgent&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0))},enumerable:!1,configurable:!0}),e.windowExists=function(){return"undefined"!=typeof window},e}();t.BrowserUtils=n},26195:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentConfigManager=void 0;var o=n(28195),i=function(){function e(){}return e.run=function(t,n,o){e.componentConfig=t,e.variantIdentifier=n;try{return o()}finally{e.componentConfig=void 0,e.variantIdentifier=void 0}},e.getConfigFor=function(t){if(!e.componentConfig)return{};var n={};return e.applyConfig(n,e.componentConfig,t),e.applyConfig(n,e.componentConfig[e.variantIdentifier],t),n},e.applyConfig=function(e,t,n){if(t)for(var i=0,r=(0,o.getConstructorNames)(n);i<r.length;i++)Object.assign(e,t[r[i]])},e}();t.ComponentConfigManager=i}
1,35466:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentLayoutOverrideProcessor=void 0;var o=n(95703),i=n(35238),r=n(14394),a=n(28195),s=function(){function e(e){this.config=e}return e.prototype.process=function(e,t){void 0!==this.config.componentLayoutOverrides&&this.removeExcludedComponents(e,t)},e.prototype.removeExcludedComponents=function(e,t){var n=this;e.getComponents().slice().forEach(function(o){n.shouldExclude(o,t)?(e.removeComponent(o),n.releaseComponentTree(o)):o instanceof i.Container&&n.removeExcludedComponents(o,t)})},e.prototype.shouldExclude=function(e,t){if(this.resolveComponentLayoutOverride(e,t)===o.UIComponentLayoutOverride.Exclude)return!0;if(e instanceof r.SettingsPanelItem){var n=e.getConfig().settingComponent;return null!=n&&this.resolveComponentLayoutOverride(n,t)===o.UIComponentLayoutOverride.Exclude}return!1},e.prototype.resolveComponentLayoutOverride=function(e,t){var n=this.config.componentLayoutOverrides,i=(0,a.getConstructorNames)(e.constructor),r=o.UIComponentLayoutOverride.Include,s=function(e){for(var t,n=0;n<i.length;n++)r=null!==(t=e[i[n]])&&void 0!==t?t:r};return s(n),null!=n[t]&&s(n[t]),r},e.prototype.releaseComponentTree=function(e,t){if(void 0===t&&(t=[]),-1===t.indexOf(e)){if(t.push(e),e instanceof r.SettingsPanelItem){var n=e.getConfig().settingComponent;null!=n&&this.releaseComponentTree(n,t)}if(e instanceof i.Container)for(var o=e.getComponents().slice(),a=0;a<o.length;a++){var s=o[a];this.releaseComponentTree(s,t)}e.release()}},e}();t.ComponentLayoutOverrideProcessor=s},28195:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getConstructorNames=function(e){for(var t=[],n=e.prototype;n&&n.constructor&&n.constructor.name;)t.unshift(n.constructor.name),n=Object.getPrototypeOf(n);return t}},51525:function(e,t){var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorUtils=void 0,(o=n||(t.ErrorUtils=n={})).defaultErrorMessages={1e3:"Error is unknown",1001:"The player API is not available after a call to PlayerAPI.destroy.",1100:"General setup error",1101:"There was an error when inserting the HTML video element",1102:"No configuration was provided",1103:"The license is not valid",1104:"The the domain-locked player is not authorized to playback on this domain",1105:"The domain is not allowlisted",1106:"The license server URL is invalid",1107:"The impression server URL is invalid",1108:"Could not initialize a rendering engine",1109:"The used flash version does not support playback",1110:"Native Flash is not authorized by a valid Adobe token",1111:"Flash doesn't have sufficient resources",1112:"Flash container API not available",1113:'Protocol not supported. This site has been loaded using "file" protocol, but unfortunately this is not supported. Please load the page using a web server (using http or https)',1200:"General source error",1201:"No valid source was provided",1202:"The downloaded manifest is invalid",1203:"There was no technology detected to playback the provided source",1204:"The stream type is not supported",1205:"The forced technology is not supported",1206:"No stream found for supported technologies.",1207:"The downloaded segment is empty",1208:"The manifest could not be loaded",1209:"Progressive stream type not supported or the stream has an error",1210:"HLS stream has an error",1211:"The encryption method is not supported",1300:"General playback error",1301:"Video decoder or demuxer had an error with the content",1302:"General error if Flash renderer has an error",1303:"Flash doesn't have sufficient resources",1304:"The transmuxer could not be initialized",1400:"Network error while downloading",1401:"The manifest download timed out",1402:"The segment download timed out",1403:"The progressive stream download timed out",1404:"The Certificate could not be loaded",2e3:"General DRM error",2001:"Required DRM configuration is missing",2002:"The licensing server URL is missing",2003:"License request failed",2004:"Key or KeyId is missing",2005:"Key size is not supported",2006:"Unable to instantiate a key system supporting the required combinations",2007:"Unable to create or initialize key session",2008:"The MediaKey object c
1ould not be created/initialized",2009:"Key error",2010:"The key system is not supported",2011:"The certificate is not valid",2012:"Invalid header key/value pair for PlayReady license request",2013:"Content cannot be played back because the output is restricted on this machine",2014:"DRM error for the Flash renderer",2100:"General VR error",2101:"Player technology not compatible with VR playback",3e3:"General module error",3001:"The definition of the module is invalid (e.g. incomplete).",3002:"The module definition specifies dependencies but the module is not provided via a function for deferred loading.",3003:"A module cannot be loaded because it has not been added to the player core.",3004:"A module cannot be loaded because one or more dependencies are missing.",3100:"An Advertising module error has occurred. Refer to the attached AdvertisingError."},o.defaultMobileV3ErrorMessageTranslator=function(e){return e.message},o.defaultWebErrorMessageTranslator=function(e){var t=o.defaultErrorMessages[e.code];return t?"".concat(t,"\n(").concat(e.name,")"):"".concat(e.code," ").concat(e.name)}},63096:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FocusVisibilityTracker=void 0;var n="bmpui-focus-visible",o=function(){function e(e,t){var o=this;this.bitmovinUiPrefix=e,this.lastInteractionWasKeyboard=!0,this.onKeyDown=function(e){e.metaKey||e.altKey||e.ctrlKey||(o.lastInteractionWasKeyboard=!0)},this.onMouseOrPointerOrTouch=function(){return o.lastInteractionWasKeyboard=!1},this.onFocus=function(e){var t,r=e.target;o.lastInteractionWasKeyboard&&i(r)&&(t=o.bitmovinUiPrefix,0===r.id.indexOf(t))&&!r.classList.contains(n)&&r.classList.add(n)},this.onBlur=function(e){var t=e.target;i(t)&&t.classList.remove(n)},this.uiWrapperElement=t,this.eventHandlerMap={mousedown:this.onMouseOrPointerOrTouch,pointerdown:this.onMouseOrPointerOrTouch,touchstart:this.onMouseOrPointerOrTouch,keydown:this.onKeyDown,focus:this.onFocus,blur:this.onBlur},this.registerEventListeners()}return e.prototype.registerEventListeners=function(){for(var e in this.eventHandlerMap)this.uiWrapperElement.on(e,this.eventHandlerMap[e],!0)},e.prototype.unregisterEventListeners=function(){for(var e in this.eventHandlerMap)this.uiWrapperElement.off(e,this.eventHandlerMap[e],!0)},e.prototype.release=function(){this.unregisterEventListeners()},e}();function i(e){return e instanceof HTMLElement&&e.classList instanceof DOMTokenList}t.FocusVisibilityTracker=o},60145:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GroupPlaybackSuspensionReason=void 0,(n||(t.GroupPlaybackSuspensionReason=n={})).UserIsScrubbing="userIsScrubbing"},41730:function(e,t){var n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.Guid=void 0,o=n||(t.Guid=n={}),i=1,o.next=function(){return i++}},8407:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLoader=void 0;var o=n(9524),i=function(){function e(){this.state={}}return e.prototype.load=function(e,t){var n=this;if(this.state[e]){var i=this.state[e];i.loadedCallback=t,i.loaded&&this.callLoadedCallback(i)}else{var r={url:e,image:new o.DOM("img",{}),loadedCallback:t,loaded:!1,width:0,height:0};this.state[e]=r,r.image.on("load",function(e){r.loaded=!0,r.width=r.image.get(0).width,r.height=r.image.get(0).height,n.callLoadedCallback(r)}),r.image.attr("src",r.url)}},e.prototype.callLoadedCallback=function(e){e.loadedCallback(e.url,e.width,e.height)},e}();t.ImageLoader=i},47673:function(e,t){var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.MobileV3PlayerEvent=void 0,t.isMobileV3PlayerAPI=function(e){for(var t in n)if(n.hasOwnProperty(t)&&!e.exports.PlayerEvent.hasOwnProperty(t))return!1;return!0},(o=n||(t.MobileV3PlayerEvent=n={})).SourceError="sourceerror",o.PlayerError="playererror",o.PlaylistTransition="playlisttransition"},19772:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightProperty=t.PlayerInsightsProvider=void 0;var o=n(37388),i=n(9110),r=n(75926),a=function(){function e(){var e=this;this.properties={video:new s("Video",function(e){return r.PlayerInsightsUtils.formatVideoQualityInsight(e)}),viewportFrames:new s("Viewport / Frames",function(e){return r.PlayerInsightsUtils.formatViewportFramesInsight(e)}),audio:new s("Audio",function(e){return r.PlayerInsightsUtils.formatAudioQualityInsight(e)}),bufferVideoAudio:new s("Buffer Video / Audio",function(e){return r.PlayerInsightsUtils.formatBufferInsight(e)}),time:new s("Time",function(e){return r.PlayerInsightsUtils.formatTimeInsight(e)}),stream:new s("Stream",function(e){return r.PlayerInsightsUtils.formatStreamInsight(e)}),player:new s("Player version",function(e){return e.version})},this.events={onChanged:new o.EventDispatcher},this.playerApi=null,this.uimanager=null,this.refreshTimer=null,this.refreshIntervalMs=1e3,this.active=!1,this.updateAndStartTimer=function(){e.dispatchChanged(),e.startTimer()},this.dispatchChanged=function(){e.active&&e.playerApi&&e.events.onChanged.dispatch(e,e.getSnapshots(e.playerApi))},this.stopTimer=function(){e.refreshTimer&&(e.refreshTimer.clear(),e.refreshTimer=null)}}return e.prototype.getInsights=function(){var e=[];for(var t in this.properties)e.push(this.properties[t]);return e},e.prototype.initialize=function(e,t,n){this.playerApi=e,this.uimanager=t,this.refreshIntervalMs=n,e.on(e.exports.PlayerEvent.Play,this.updateAndStartTimer),e.on(e.exports.PlayerEvent.Playing,this.updateAndStartTimer),e.on(e.exports.PlayerEvent.Paused,this.dispatchChanged),e.on(e.exports.PlayerEvent.Seeked,this.dispatchChanged),e.on(e.exports.PlayerEvent.SourceLoaded,this.dispatchChanged),e.on(e.exports.PlayerEvent.SourceUnloaded,this.dispatchChanged),e.on(e.exports.PlayerEvent.VideoQualityChanged,this.dispatchChanged),e.on(e.exports.PlayerEvent.AudioQualityChanged,this.dispatchChanged),e.on(e.exports.PlayerEvent.PlayerResized,this.dispatchChanged),e.on(e.exports.PlayerEvent.StallStarted,this.dispatchChanged),e.on(e.exports.PlayerEvent.StallEnded,this.dispatchChanged),e.on(e.exports.PlayerEvent.PlaybackFinished,this.stopTimer),e.on(e.exports.PlayerEvent.Destroy,this.stopTimer),t.getConfig().events.onUp
1dated.subscribe(this.dispatchChanged)},e.prototype.activate=function(){this.active=!0,this.dispatchChanged(),this.startTimer()},e.prototype.deactivate=function(){this.active=!1,this.stopTimer()},e.prototype.release=function(){var e;this.active=!1,this.stopTimer(),this.playerApi&&(this.playerApi.off(this.playerApi.exports.PlayerEvent.Play,this.updateAndStartTimer),this.playerApi.off(this.playerApi.exports.PlayerEvent.Playing,this.updateAndStartTimer),this.playerApi.off(this.playerApi.exports.PlayerEvent.Paused,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.Seeked,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.SourceLoaded,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.SourceUnloaded,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.VideoQualityChanged,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.AudioQualityChanged,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.PlayerResized,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.StallStarted,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.StallEnded,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.PlaybackFinished,this.stopTimer),this.playerApi.off(this.playerApi.exports.PlayerEvent.Destroy,this.stopTimer)),null===(e=this.uimanager)||void 0===e||e.getConfig().events.onUpdated.unsubscribe(this.dispatchChanged),this.events.onChanged.unsubscribeAll(),this.playerApi=null,this.uimanager=null},Object.defineProperty(e.prototype,"onChanged",{get:function(){return this.events.onChanged.getEvent()},enumerable:!1,configurable:!0}),e.prototype.getSnapshots=function(e){var t=[];for(var n in this.properties)t.push(this.properties[n].getSnapshot(e));return t},e.prototype.startTimer=function(){this.stopTimer(),this.playerApi&&this.active&&-1!==this.refreshIntervalMs&&(this.refreshTimer=new i.Timeout(this.refreshIntervalMs,this.dispatchChanged,!0).start())},e}();t.PlayerInsightsProvider=a;var s=function(){function e(e,t){this.label=e,this.valueProvider=t}return Object.defineProperty(e.prototype,"leadingLabel",{get:function(){return this.label},enumerable:!1,configurable:!0}),e.prototype.getSnapshot=function(e){var t=this.valueProvider(e);return{value:t,visible:null!=t&&""!==t}},e}();t.PlayerInsightProperty=s},75926:function(e,t){var n,o,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t){if(e){var n=t.find(function(t){return t.id===e.id});return i(i({},e),{codec:null==n?void 0:n.codec,frameRate:null==n?void 0:n.frameRate})}}function a(e,t){var n=s(e),o=s(t);return n?o&&(null==e?void 0:e.id)!==(null==t?void 0:t.id)&&n!==o?"".concat(n," / ").concat("↓").concat(o):n:o||null}function s(e){if(!e)return"";var t,n=[],o=e.width&&e.height?"".concat(e.width,"x").concat(e.height).concat(e.frameRate?"@".concat(e.frameRate):""):null,i=(t=e.bitrate)&&isFinite(t)?t>=1e6?"".concat((t/1e6).toFixed(2),"Mbps"):"".concat(Math.round(t/1e3),"kbps"):"";return o&&n.push(o),i&&n.push(i),e.codec&&n.push(e.codec),n.length>0?n.join(","):""}function l(e){if(!isFinite(e))return"Infinity";var t=Math.floor(Math.abs(e)),n=Math.floor(t/3600),o=Math.floor(t%3600/60),i=t%60,r=function(e){return e<10?"0".concat(e):e.toString()};return n>0?"".concat(n,":").concat(r(o),":").concat(r(i)):"".concat(o,":").concat(r(i))}Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightsUtils=void 0,(n=o||(t.PlayerInsightsUtils=o={})).formatVideoQualityInsight=function(e){var t=e.getAvailableVideoQualities();return a(e.getPlaybackVideoData(),r(e.getDownloadedVideoData(),t))},n.formatAudioQualityInsight=function(e){var t=e.getAvailableAudioQualities();return a(e.getPlaybackAudioData(),r(e.getDownloadedAudioData(),t))},n.formatViewportFramesInsight=function(e){var t=e.getVideoElement(),n=t.clientWidth>0&&t.clientHeight>0?"".concat(t.clientWidth,"x").concat(t.clientHeight):null,o="".concat(e.getDroppedVideoFrames()," dropped");return n?"".concat(n," / ").concat(o):o},n.formatBufferInsight=function(e){var t=e.buffer.getLevel(e.exports.BufferType.ForwardDuration,e.exports.MediaType.Video).level,n=e.buffer.getLevel(e.exports.BufferType.ForwardDuration,e.exports.MediaType.Audio).level;return null==t&&null==n?null:[null!=t?"".concat(t.toFixed(2),"s"):"-",null!=n?"".concat(n.toFixed(2),"s"):"-"].join(" / ")},n.formatTimeInsight=function(e){if(e.isLive()){var t,n,o=e.getTimeShift(),i=e.getCurrentTime();return"".concat(i>=Date.UTC(2e3,0,1)/1e3?(t=new Date(1e3*i),n=function(e){return e<10?"0".concat(e):e.toString()},"".concat(n(t.getHours()),":").concat(n(t.getMinutes()),":").concat(n(t.getSeconds()))):l(i)," / TimeShift: ").concat(o.toFixed(2),"s")}var r=e.getCurrentTime(),a=e.getDuration();return"".concat(l(r)," / ").concat(l(a))},n.formatStreamInsight=function(e){var t=e.getStreamType(),n=e.getPlayerType();
1return t||n?[t,n?"(".concat(n,")"):null].filter(Boolean).join(" "):null}},78966:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerUtils=void 0;var o,i,r,a,s,l,c=n(37388),u=n(62772);(i=r=(o=l||(t.PlayerUtils=l={})).PlayerState||(o.PlayerState={}))[i.Idle=0]="Idle",i[i.Prepared=1]="Prepared",i[i.Playing=2]="Playing",i[i.Paused=3]="Paused",i[i.Finished=4]="Finished",o.isTimeShiftAvailable=function(e){return e.isLive()&&0!==e.getMaxTimeShift()},o.getState=function(e){return e.hasEnded()?r.Finished:e.isPlaying()?r.Playing:e.isPaused()?r.Paused:null!=e.getSource()?r.Prepared:r.Idle},o.getCurrentTimeRelativeToSeekableRange=function(e){var t=e.getCurrentTime();return e.isLive()?t:t-o.getSeekableRangeStart(e,0)},o.getSeekableRangeStart=function(e,t){return void 0===t&&(t=0),e.getSeekableRange()&&e.getSeekableRange().start||t},o.getSeekableRangeRespectingLive=function(e){if(!e.isLive())return e.getSeekableRange();var t=-e.getTimeShift(),n=-e.getMaxTimeShift(),o=e.getCurrentTime();return{start:o-(n-t),end:o+t}},a=function(){function e(e){var t=this;this.timeShiftAvailabilityChangedEvent=new c.EventDispatcher,this.player=e,this.timeShiftAvailable=void 0;var n=function(){t.detect()};e.on(e.exports.PlayerEvent.SourceLoaded,n),e.on(e.exports.PlayerEvent.TimeChanged,n)}return e.prototype.detect=function(){if(this.player.isLive()){var e=o.isTimeShiftAvailable(this.player);e!==this.timeShiftAvailable&&(this.timeShiftAvailabilityChangedEvent.dispatch(this.player,{timeShiftAvailable:e}),this.timeShiftAvailable=e)}},Object.defineProperty(e.prototype,"onTimeShiftAvailabilityChanged",{get:function(){return this.timeShiftAvailabilityChangedEvent.getEvent()},enumerable:!1,configurable:!0}),e}(),o.TimeShiftAvailabilityDetector=a,s=function(){function e(e,t){var n=this;this.liveChangedEvent=new c.EventDispatcher,this.player=e,this.uimanager=t,this.live=void 0;var o=function(){n.detect()};this.uimanager.getConfig().events.onUpdated.subscribe(o),e.on(e.exports.PlayerEvent.Play,o),u.BrowserUtils.isAndroid&&u.BrowserUtils.isChrome&&e.on(e.exports.PlayerEvent.TimeChanged,o),e.exports.PlayerEvent.DurationChanged&&e.on(e.exports.PlayerEvent.DurationChanged,o),e.on(e.exports.PlayerEvent.AdBreakStarted,o),e.on(e.exports.PlayerEvent.AdBreakFinished,o)}return e.prototype.detect=function(){var e=this.player.isLive();e!==this.live&&(this.liveChangedEvent.dispatch(this.player,{live:e}),this.live=e)},Object.defineProperty(e.prototype,"onLiveChanged",{get:function(){return this.liveChangedEvent.getEvent()},enumerable:!1,configurable:!0}),e}(),o.LiveStreamDetector=s,o.clampValueToRange=function(e,t,n){return Math.min(Math.max(e,Math.min(t,n)),Math.max(t,n))}},84631:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ResumePositionTracker=void 0;var o=n(50074),i=n(58041),r="".concat((0,i.prefixCss)("resume"),"."),a=function(){function e(e){var t=this;this.player=e,this.activeSourceKey=null,this.lastPosition=null,this.updatePosition=function(e){var n,o;(null===(o=null===(n=t.player.ads)||void 0===n?void 0:n.isLinearAdActive)||void 0===o?void 0:o.call(n))!==!0&&isFinite(e.time)&&(t.lastPosition=e.time)},this.savePosition=function(e){if(t.activeSourceKey&&null!==e){if(!isFinite(e)||e<5){o.StorageUtils.removeItem(t.activeSourceKey);return}o.StorageUtils.setItem(t.activeSourceKey,String(e))}},this.pausePositionTracking=function(){if((null===(n=null===(e=t.player.ads)||void 0===e?void 0:e.isLinearAdActive)||void 0===n?void 0:n.call(e))!==!0){var e,n,o=t.player.getCurrentTime();isFinite(o)&&(t.lastPosition=o),t.savePosition(t.lastPosition)}},this.storeCurrentPosition=function(){t.savePosition(t.lastPosition)},this.storeCurrentPositionWhenHidden=function(){"hidden"===document.visibilityState&&t.storeCurrentPosition()},this.startPositionTracking=function(){if(t.stopPositionTracking(),t.activeSourceKey=null,t.lastPosition=null,!t.player.isLive()){var e=s(t.player.getSource());e&&(t.activeSourceKey=e,t.player.on(t.player.exports.PlayerEvent.TimeChanged,t.updatePosition),t.player.on(t.player.exports.PlayerEvent.Paused,t.pausePositionTracking),t.player.on(t.player.exports.PlayerEvent.PlaybackFinished,t.finishPositionTracking),document.addEventListener("visibilitychange",t.storeCurrentPositionWhenHidden))}},this.restartPositionTracking=function(){t.activeSourceKey||null===t.player.getSource()||t.startPositionTracking()},this.unloadSource=function(){t.savePosition(t.lastPosition),t.stopPositionTracking(),t.activeSourceKey=null,t.lastPosition=null},this.finishPositionTracking=function(){t.activeSourceKey&&o.StorageUtils.removeItem(t.activeSourceKey),t.stopPositionTracking(),t.activeSourceKey=null,t.lastPosition=null},e.on(e.exports.PlayerEvent.SourceLoaded,this.startPositionTracking),e.on(e.exports.PlayerEvent.SourceUnloaded,this.unloadSource),e.on(e.exports.PlayerEvent.Play,this.restartPositionTracking),null!==e.getSource()&&this.startPositionTracking()}return e.prototype.release=function(){this.storeCurrentPosition(),document.removeEventListener("visibilitychange",this.storeCurrentPositionWhenHidden),this.activeSourceKey=null,this.lastPosition=null},e.prototype.getStoredPosition=function(){if(this.player.isLive())return null;var e=s(this.player.getSource());if(!e)return null;var t=Number(o.StorageUtils.getItem(e));return isFinite(t)&&t>=5?t:null},e.prototype.stopPositionTracking=function(){this.player.off(this.player.exports.PlayerEvent.TimeChanged,this.updatePosition),this.player.off(this.player.exports.PlayerEvent.Paused,this.pausePositionTracking),this.player.off(this.player.exports.PlayerEvent.PlaybackFinished,this.finishPositionTracking),document.removeEventListener("visibilitychange",this.storeCurrentPositionWhenHidden)},e}();function s(e){var t,n=e?e.title?"title:"+e.title:e.dash?"dash:"+e.dash:e.hls?"hls:"+e.hls:e.smooth?"smooth:"+e.smooth:"str
1ing"==typeof e.progressive?"progressive:"+e.progressive:Array.isArray(e.progressive)&&(null===(t=e.progressive[0])||void 0===t?void 0:t.url)?"progressive:"+e.progressive[0].url:null:null;return n?r+function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}(n):null}t.ResumePositionTracker=a},75351:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarController=t.SeekBarType=void 0;var o,i,r=n(92836);(o=i||(t.SeekBarType=i={}))[o.Vod=0]="Vod",o[o.Live=1]="Live",o[o.Volume=2]="Volume";var a=function(e,t,n){n(e<t.min?t.min:e>t.max?t.max:e)},s=function(){function e(e,t,n){this.keyStepIncrements=e,this.player=t,this.volumeController=n}return e.prototype.arrowKeyControls=function(e,t,n){var o=this,i=Math.floor(e);return{left:function(){return a(i-o.keyStepIncrements.leftRight,t,n)},right:function(){return a(i+o.keyStepIncrements.leftRight,t,n)},up:function(){return a(i+o.keyStepIncrements.upDown,t,n)},down:function(){return a(i-o.keyStepIncrements.upDown,t,n)},home:function(){return a(t.min,t,n)},end:function(){return a(t.max,t,n)}}},e.prototype.seekBarControls=function(e){var t=this;if(e===i.Live)return this.arrowKeyControls(this.player.getTimeShift(),{min:this.player.getMaxTimeShift(),max:0},function(e){return t.player.timeShift(e)});if(e===i.Vod)return this.arrowKeyControls(this.player.getCurrentTime(),{min:0,max:this.player.getDuration()},function(e){return t.player.seek(e)});if(e===i.Volume&&null!=this.volumeController){var n=this.volumeController.startTransition();return this.arrowKeyControls(this.player.getVolume(),{min:0,max:100},n.finish.bind(n))}},e.prototype.setSeekBarControls=function(e,t){var n=this;e.on("keydown",function(e){var o=t(),a=n.seekBarControls(o);switch(e.keyCode){case r.UIUtils.KeyCode.LeftArrow:a.left(),e.preventDefault();break;case r.UIUtils.KeyCode.RightArrow:a.right(),e.preventDefault();break;case r.UIUtils.KeyCode.UpArrow:a.up(),e.preventDefault();break;case r.UIUtils.KeyCode.DownArrow:a.down(),e.preventDefault();break;case r.UIUtils.KeyCode.Home:a.home(),e.preventDefault();break;case r.UIUtils.KeyCode.End:a.end(),e.preventDefault();break;case r.UIUtils.KeyCode.Space:n.player.isPlaying()?n.player.pause():n.player.play(),e.preventDefault();break;case r.UIUtils.KeyCode.Comma:o!==i.Volume&&(n.stepFrame(-1),e.preventDefault());break;case r.UIUtils.KeyCode.Period:o!==i.Volume&&(n.stepFrame(1),e.preventDefault())}})},e.prototype.stepFrame=function(e){if(!this.player.isLive()){this.player.isPaused()||this.player.pause("ui");var t=Math.max(0,this.player.getCurrentTime()+e/this.getFrameRate());this.player.seek(t)}},e.prototype.getFrameRate=function(){var e,t=null===(e=this.player.getPlaybackVideoData())||void 0===e?void 0:e.frameRate;return"number"==typeof t&&t>0?t:30},e}();t.SeekBarController=s},4922:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowDomManager=void 0;var o=n(9524),i=n(58041),r=function(){function e(){}return e.isShadowDomSupported=function(){return"undefined"!=typeof ShadowRoot&&"undefined"!=typeof HTMLElement&&"function"==typeof HTMLElement.prototype.attachShadow},e.prototype.initialize=function(t,n){if(e.isShadowDomSupported()){var r=new o.DOM("div",{class:(0,i.prefixCss)("shadow-dom-container")});r.css({position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}),t.append(r),this.shadowHost=r,this.shadowRoot=r.get(0).attachShadow({mode:"open"}),this.injectStyles(n)}},e.prototype.getShadowRoot=function(){return this.shadowRoot},e.prototype.release=function(){this.shadowHost&&(this.shadowHost.remove(),this.shadowHost=void 0,this.shadowRoot=void 0)},e.prototype.injectStyles=function(t){var n=this;if(this.shadowRoot){var o=a(t.uiStylesheet||e.DEFAULT_SHADOW_STYLESHEET_NAME);o?s(this.shadowRoot,o):console.warn("Shadow DOM is enabled but no stylesheet was found. Provide `uiStylesheet` (URL or filename) or include {{FILENAME}} on the page."),t.additionalStylesheets&&t.additionalStylesheets.length>0&&t.additionalStylesheets.forEach(function(e){var t=a(e);t?s(n.shadowRoot,t):console.warn("Shadow DOM: Could not resolve additional stylesheet '".concat(e,"'. ")+"Check the URL or ensure the stylesheet is linked on the page.")})}},e.DEFAULT_SHADOW_STYLESHEET_NAME="{{FILENAME}}",e}();function a(e){if(/^https?:\/\//.test(e)||e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))return e;var t=Array.from(document.querySelectorAll('link[rel~="stylesheet"]')).find(function(t){return t.href&&-1!==t.href.indexOf(e)});return(null==t?void 0:t.href)||null}function s(e,t){var n=document.createElement("link");n.rel="stylesheet",n.href=t,e.appendChild(n)}t.ShadowDomManager=r},50074:function(e,t){var n;
vendor: 11,035 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.StorageUtils=void 0,function(e){var t;function n(){try{return!t&&window.localStorage&&"function"==typeof localStorage.getItem&&"function"==typeof localStorage.setItem&&"function"==typeof localStorage.removeItem}catch(e){return!1}}function o(e,t){if(n())try{window.localStorage.setItem(e,t)}catch(t){console.debug("Failed to set storage item ".concat(e),t)}}function i(e){if(n())try{return window.localStorage.getItem(e)}catch(t){console.debug("Failed to get storage item ".concat(e),t)}return null}e.setStorageApiDisabled=function(e){t=e.disableStorageApi},e.setItem=o,e.getItem=i,e.removeItem=function(e){if(n())try{window.localStorage.removeItem(e)}catch(t){console.debug("Failed to remove storage item ".concat(e),t)}},e.setObject=function(e,t){o(e,JSON.stringify(t))},e.getObject=function(e){var t=i(e);return t?JSON.parse(t):null}}(n||(t.StorageUtils=n={}))},74039:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;var o,i=n(54745);!function(e){function t(t,o){void 0===o&&(o=e.FORMAT_HHMMSS);var i=t<0;i&&(t=-t);var r=Math.floor(t/3600),a=Math.floor(t/60)-60*r,s=Math.floor(t)%60;return(i?"-":"")+o.replace("hh",n(r,2)).replace("mm",n(a,2)).replace("ss",n(s,2))}function n(e,t){var n=e+"";return"0000000000".substr(0,t-n.length)+n}function o(e,o){/%((0[1-9]\d*(\.\d+(d|f)|d|f)|\.\d+f|d|f)|hh:mm:ss|mm:ss)/.test(o)||(o="%d");var i=0,r=o.match(/(%0[1-9]\d*)(?=(\.\d+f|f|d))/);r&&(i=parseInt(r[0].substring(2)));var a=null,s=o.match(/\.\d*(?=f)/);if(s&&!isNaN(parseInt(s[0].substring(1)))&&(a=parseInt(s[0].substring(1)))>20&&(a=20),o.indexOf("f")>-1){var l="";return(l=null!==a?e.toFixed(a):""+e).indexOf(".")>-1?n(l,l.length+(i-l.indexOf("."))):n(l,i)}if(!(o.indexOf(":")>-1))return n(Math.ceil(e),i);var c=Math.ceil(e);return o.indexOf("hh")>-1?t(c):n(Math.floor(c/60),2)+":"+n(c%60,2)}e.FORMAT_HHMMSS="hh:mm:ss",e.FORMAT_MMSS="mm:ss",e.secondsToTime=t,e.secondsToText=function(e){var t=e<0;t&&(e=-e);var n=Math.floor(e/3600),o=Math.floor(e/60)-60*n,r=Math.floor(e)%60;return(t?"-":"")+(0!==n?"".concat(n," ").concat(i.i18n.performLocalization(i.i18n.getLocalizer("settings.time.hours"))," "):"")+(0!==o?"".concat(o," ").concat(i.i18n.performLocalization(i.i18n.getLocalizer("settings.time.minutes"))," "):"")+"".concat(r," ").concat(i.i18n.performLocalization(i.i18n.getLocalizer("settings.time.seconds")))},e.replaceAdMessagePlaceholders=function(e,t,n,i,r){var a=RegExp("\\{(remainingTime|playedTime|adDuration|adBreakRemainingTime|activeAdIndex|totalAdsCount)(}|%((0[1-9]\\d*(\\.\\d+(d|f)|d|f)|\\.\\d+f|d|f)|hh:mm:ss|mm:ss)})","g");return e.replace(a,function(e){var a,s,l,c,u,p,f,d,g=0;if(e.indexOf("remainingTime")>-1)g="number"==typeof n?Math.ceil(n-t.getCurrentTime()):t.getDuration()-t.getCurrentTime();else if(e.indexOf("playedTime")>-1)g=t.getCurrentTime();else if(e.indexOf("adDuration")>-1)g=t.getDuration();else if(e.indexOf("adBreakRemainingTime")>-1){if(g=0,null===(s=null===(a=t.ads)||void 0===a?void 0:a.isLinearAdActive)||void 0===s?void 0:s.call(a)){var h=t.ads.getActiveAdBreak().ads.findIndex(function(e){return t.ads.getActiveAd().id===e.id});g=t.ads.getActiveAdBreak().ads.slice(h).reduce(function(e,t){return e+(t.isLinear?t.duration:0)},0)-t.getCurrentTime()}}else if(e.indexOf("activeAdIndex")>-1||e.indexOf("totalAdsCount")>-1){if(e.includes("activeAdIndex")){if(null!=i)return o(i,e);var v=null===(c=null===(l=t.ads)||void 0===l?void 0:l.getActiveAdBreak)||void 0===c?void 0:c.call(l),y=null===(p=null===(u=t.ads)||void 0===u?void 0:u.getActiveAd)||void 0===p?void 0:p.call(u),m=null==v?void 0:v.ads;return v&&y&&Array.isArray(m)&&0!==m.length?o(m.findIndex(function(e){return null!=y.id&&null!=e.id?e.id===y.id:e===y})+1,e):o(0,e)}if(null!=r)return o(r,e);var b=null===(d=null===(f=t.ads)||void 0===f?void 0:f.getActiveAdBreak)||void 0===d?void 0:d.call(f),C=null==b?void 0:b.ads;return o(Array.isArray(C)?C.length:0,e)}return o(Math.round(g),e)})}}(o||(t.StringUtils=o={}))},64451:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingsProperty=t.SubtitleSettingsManager=void 0;var o=n(50074),i=n(37388),r=n(58041),a=function(){function e(){this._properties={fontColor:new s(this),fontOpacity:new s(this),fontFamily:new s(this),fontSize:new s(this),fontStyle:new s(this),characterEdge:new s(this),characterEdgeColor:new s(this),backgroundColor:new s(this),backgroundOpacity:new s(this),windowColor:new s(this),windowOpacity:new s(this)},this.userSettings={},this.localStorageKey=(0,r.prefixCss)("subtitlesettings")}return e.prototype.reset=function(){for(var e in this._properties)this._properties[e].clear()},Object.defineProperty(e.prototype,"fontColor",{get:function(){return this._properties.fontColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontOpacity",{get:function(){return this._properties.fontOpacity},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._properties.fontFamily},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._properties.fontSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._properties.fontStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"characterEdge",{get:function(){return this._properties.characterEdge},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"characterEdgeColor",{get:function(){return this._properties.characterEdgeColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._properties.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundOpacity",{get:function(){return this._properties.backgroundOpacity},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"windowColor",{get:function(){return this._properties.windowColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"windowOpacity",{get:function(){return this._properties.windowOpacity},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){var e=this,t=function(t){n._properties[t].onChanged.subscribe(function(n,o){o.isSet()?e.userSettings[t]=o.value:delete e.userSettings[t],e.save()})},n=this;for(var o in this._properties)t(o);this.load()},e.prototype.save=function(){o.StorageUtils.setObject(this.localStorageKey,this.userSettings)},e.prototype.load=function(){for(var e in this.userSettings=o.StorageUtils.getObject(this.localStorageKey)||{},this.userSettings)this._properties[e].value=this.userSettings[e]},e}();t.SubtitleSettingsManager=a;var s=function(){function e(e){this._manager=e,this._onChanged=new i.EventDispatcher}return e.prototype.isSet=function(){return null!=this._value},e.prototype.clear=function(){this._value=null,this.onChangedEvent(null)},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){"string"==typeof e&&"null"===e&&(e=null),this._value=e,this.onChangedEvent(e)},enumerable:!1,configurable:!0}),e.prototype.onChangedEvent=function(e){this._onChanged.dispatch(this._manager,this)},Object.defineProperty(e.prototype,"onChanged",{get:function(){return this._onChanged.getEvent()},enumerable:!1,configurable:!0}),e}();t.SubtitleSettingsProperty=s},42187:function(e,t,n){var o=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSwitchHandler=void 0;var i=n(54745),r=function(){function e(t,n,r){var a=this;this.onSubtitleEnabled=function(e){var t;if(a.selectCurrentSubtitle(),i.i18n.getConfig().adaptLocalizationToSubtitleLanguage){var n="string"==typeof(null===(t=e.subtitle)||void 0===t?void 0:t.lang)?e.subtitle.lang.trim():"";n&&i.i18n.setLanguage(n)}},this.addSubtitle=function(t){var n=t.subtitle;if(!a.hasComparator()){a.listElement.hasItem(n.id)||a.listElement.addItem(n.id,n.label);return}var r=a.player.subtitles.list(),s=r.some(function(e){return e.id===n.id})?r:o(o([],r,!0),[n],!1),l={key:e.SUBTITLES_OFF_KEY,label:i.i18n.getLocalizer("off")};a.listElement.synchronizeItems(o([l],s.map(function(e){return a.subtitleToListItem(e)}),!0)),a.selectCurrentSubtitle()},this.removeSubtitle=function(e){var t=e.subtitle;a.listElement.hasItem(t.id)&&a.listElement.removeItem(t.id),a.selectCurrentSubtitle()},this.selectCurrentSubtitle=function(){if(a.player.subtitles){var t=a.player.subtitles.list().filter(function(e){return e.enabled}).pop();a.listElement.selectItem(t?t.id:e.SUBTITLES_OFF_KEY)}},this.clearSubtitles=function(){a.listElement.clearItems()},this.refreshSubtitles=function(){if(a.player.subtitles){var t={key:e.SUBTITLES_OFF_KEY,label:i.i18n.getLocalizer("off")};a.listElement.synchronizeItems(o([t],a.player.subtitles.list().map(function(e){return a.subtitleToListItem(e)}),!0)),a.selectCurrentSubtitle()}},this.player=t,this.listElement=n,this.uimanager=r,this.bindSelectionEvent(),this.bindPlayerEvents(),this.refreshSubtitles()}return e.prototype.bindSelectionEvent=function(){var t=this;this.listElement.onItemSelectionChanged.subscribe(function(n,o){if(o===e.SUBTITLES_OFF_KEY){var i=t.player.subtitles.list().filter(function(e){return e.enabled}).pop();i&&t.player.subtitles.disable(i.id)}else t.player.subtitles.enable(o,!0)})},e.prototype.bindPlayerEvents=function(){this.player.on(this.player.exports.PlayerEvent.SubtitleAdded,this.addSubtitle),this.player.on(this.player.exports.PlayerEvent.SubtitleEnabled,this.onSubtitleEnabled),this.player.on(this.player.exports.PlayerEvent.SubtitleDisabled,this.selectCurrentSubtitle),this.player.on(this.player.exports.PlayerEvent.SubtitleRemoved,this.removeSubtitle),this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,this.clearSubtitles),this.player.on(this.player.exports.PlayerEvent.PeriodSwitched,this.refreshSubtitles),this.uimanager.getConfig().events.onUpdated.subscribe(this.refreshSubtitles)},e.prototype.hasComparator=function(){return null!=this.listElement.getConfig().comparator},e.prototype.subtitleToListItem=function(e){return{key:e.id,label:e.label}},e.SUBTITLES_OFF_KEY="null",e}();t.SubtitleSwitchHandler=r},16610:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineMarkersHandler=void 0;var o=n(9524),i=n(78966),r=n(9110),a=n(58041),s=function(){function e(e,t,n){this.markerPositionUpdater=null,this.isTimeShifting=!1,this.seekableRangeSnapshot=null,this.config=e,this.getSeekBarWidth=t,this.markersContainer=n,this.timelineMarkers=[]}return e.prototype.initialize=function(e,t){this.player=e,this.uimanager=t,this.configureMarkers()},e.prototype.configureMarkers=function(){var e=this,t=function(){return e.updateMarkers(!1)},n=function(){return e.clearMarkers()},o=function(){e.isTimeShifting=!0},r=function(){e.isTimeShifting=!1},a=function(e,t){t.scrubbing&&o()}
1,s=function(){e.stopLiveMarkerUpdater(),e.isTimeShifting=!1,e.seekableRangeSnapshot=null,e.player.off(e.player.exports.PlayerEvent.TimeShift,o),e.player.off(e.player.exports.PlayerEvent.TimeShifted,r),e.uimanager.onSeekPreview.unsubscribe(a)},l=function(){s(),e.clearMarkers()};this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,l),this.player.on(this.player.exports.PlayerEvent.Destroy,l),this.player.on(this.player.exports.PlayerEvent.AdBreakStarted,n),this.player.on(this.player.exports.PlayerEvent.AdBreakFinished,t);var c=new i.PlayerUtils.LiveStreamDetector(this.player,this.uimanager),u=function(t,n){n.live?(e.player.on(e.player.exports.PlayerEvent.TimeShift,o),e.player.on(e.player.exports.PlayerEvent.TimeShifted,r),e.uimanager.onSeekPreview.subscribe(a),e.startLiveMarkerUpdater()):s()};c.onLiveChanged.subscribe(u),c.detect(),this.uimanager.getConfig().events.onUpdated.subscribe(t),this.player.on(this.player.exports.PlayerEvent.PlayerResized,t),this.uimanager.onConfigured.subscribe(t),this.player.on(this.player.exports.PlayerEvent.SourceLoaded,t),this.uimanager.onRelease.subscribe(function(){e.uimanager.getConfig().events.onUpdated.unsubscribe(t),e.uimanager.onConfigured.unsubscribe(t),c.onLiveChanged.unsubscribe(u),l(),e.player.off(e.player.exports.PlayerEvent.SourceUnloaded,l),e.player.off(e.player.exports.PlayerEvent.Destroy,l),e.player.off(e.player.exports.PlayerEvent.AdBreakStarted,n),e.player.off(e.player.exports.PlayerEvent.AdBreakFinished,t),e.player.off(e.player.exports.PlayerEvent.PlayerResized,t),e.player.off(e.player.exports.PlayerEvent.SourceLoaded,t)}),this.updateMarkers(!1)},e.prototype.getMarkerAtPosition=function(e){var t=this.config.snappingRange;return this.timelineMarkers.find(function(n){var o=n.duration>0&&e>=n.position-t&&e<=n.position+n.duration+t,i=e>=n.position-t&&e<=n.position+t;return o||i})||null},e.prototype.clearMarkers=function(){this.timelineMarkers=[],this.markersContainer.empty()},e.prototype.removeMarkerFromConfig=function(e){this.uimanager.getConfig().metadata.markers=this.uimanager.getConfig().metadata.markers.filter(function(t){return e!==t})},e.prototype.filterRemovedMarkers=function(){var e=this;this.timelineMarkers=this.timelineMarkers.filter(function(t){var n=e.uimanager.getConfig().metadata.markers.find(function(e){return t.marker===e});return n||e.removeMarkerFromDOM(t),n})},e.prototype.removeMarkerFromDOM=function(e){e.element&&e.element.remove()},e.prototype.updateMarkers=function(e){var t,n,o,i,r=this;if(0!==this.getSeekBarWidth()){if(t=this.player,n=this.uimanager,o=t.getDuration()!==1/0||t.isLive(),i=n.getConfig().metadata.markers.length>0,!o||!i){this.clearMarkers();return}this.filterRemovedMarkers(),this.uimanager.getConfig().metadata.markers.forEach(function(t){var n,o,i,a,s,l=(n=r.player,a=100/(i=function(e,t){if(!e.isLive())return e.getDuration();var n=t.start;return t.end-n}(n,o=r.getSeekableRangeRespectingSnapshot()))*(n.isLive()?i-(o.end-t.t
1ime):t.time),s=100/i*t.duration,a<0&&!isNaN(s)&&(s+=a),100-a<s&&(s=100-a),{markerDuration:s,markerPosition:a}),c=l.markerPosition,u=l.markerDuration;if((u<0||isNaN(u))&&c<0)r.removeMarkerFromConfig(t);else if(c<=100){var p=r.timelineMarkers.find(function(e){return e.marker===t});if(p)p.position=c,p.duration=u,r.updateMarkerDOM(p,e);else{var f={marker:t,position:c,duration:u};r.timelineMarkers.push(f),r.createMarkerDOM(f)}}})}},e.prototype.getMarkerCssProperties=function(e,t){void 0===t&&(t=!0);var n=this.getSeekBarWidth(),o=n/100*(e.position<0?0:e.position),i={transform:"translateX(".concat(o,"px)")};if(t){var r=this.config.markerUpdateIntervalMs||1e3;i["transition-duration"]="".concat(r,"ms")}else i.transition="none";if(e.duration>0){var a=Math.round(n/100*e.duration);i.width="".concat(a,"px")}return i},e.prototype.updateMarkerDOM=function(e,t){e.element.removeCss("transition"),e.element.css(this.getMarkerCssProperties(e,t))},e.prototype.createMarkerDOM=function(e){var t=["seekbar-marker"].concat(e.marker.cssClasses||[]).map(function(e){return(0,a.prefixCss)(e)}),n=new o.DOM("div",{class:(0,a.prefixCss)("seekbar-marker-indicator")}),i=new o.DOM("div",{class:(0,a.prefixCss)("seekbar-marker-indicator")}),r=new o.DOM("div",{class:t.join(" "),"data-marker-time":String(e.marker.time),"data-marker-title":String(e.marker.title)}).css(this.getMarkerCssProperties(e,!1));if(e.marker.imageUrl){var s=new o.DOM("img",{class:(0,a.prefixCss)("seekbar-marker-image"),src:e.marker.imageUrl}).on("error",function(){s.remove()});r.append(s)}r.append(n),e.duration>0&&r.append(i),e.element=r,this.markersContainer.append(r)},e.prototype.startLiveMarkerUpdater=function(){var e=this,t=this.config.markerUpdateIntervalMs||1e3;this.stopLiveMarkerUpdater(),this.captureSeekableRangeSnapshot(),this.markerPositionUpdater=new r.Timeout(t,function(){e.isTimeShifting||e.captureSeekableRangeSnapshot(),e.updateMarkers(!0)},!0),this.markerPositionUpdater.start()},e.prototype.stopLiveMarkerUpdater=function(){this.markerPositionUpdater&&(this.markerPositionUpdater.clear(),this.markerPositionUpdater=null)},e.prototype.captureSeekableRangeSnapshot=function(){var e=i.PlayerUtils.getSeekableRangeRespectingLive(this.player);this.seekableRangeSnapshot={start:e.start,end:e.end,timestampMs:Date.now()}},e.prototype.getSeekableRangeRespectingSnapshot=function(){var e=i.PlayerUtils.getSeekableRangeRespectingLive(this.player);if(!this.player.isLive())return e;if(this.isTimeShifting&&this.seekableRangeSnapshot){var t=(Date.now()-this.seekableRangeSnapshot.timestampMs)/1e3;return{start:this.seekableRangeSnapshot.start+t,end:this.seekableRangeSnapshot.end+t}}return e},e}();t.TimelineMarkersHandler=s},9110:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Timeout=void 0;var n=function(){function e(e,t,n){void 0===n&&(n=!1),this.delay=e,this.callback=t,this.repeat=n,this.timeoutOrIntervalId=0,this.active=!1,this.suspended=!1}return e.prototype.start=function(){return this.reset(),this},e.prototype.clear=function(){this.clearInternal()},e.prototype.suspend=function(){return this.suspended=!0,this.clearInternal(),this},e.prototype.resume=function(e){return this.suspended=!1,e&&this.reset(),this},e.prototype.reset=function(){var e=this;this.clearInternal(),this.suspended||(this.repeat?this.timeoutOrIntervalId=setInterval(this.callback,this.delay):this.timeoutOrIntervalId=setTimeout(function(){e.active=!1,e.callback()},this.delay),this.active=!0)},e.prototype.isActive=function(){return this.active},e.prototype.clearInternal=function(){this.repeat?clearInterval(this.timeoutOrIntervalId):clearTimeout(this.timeoutOrIntervalId),this.active=!1},e}();t.Timeout=n},26718:function(e,t){var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampLinkUtils=void 0,(o=n||(t.TimestampLinkUtils=n={})).parseTimestampFromUrl=function(e){void 0===e&&(e=window.location.href);var t,n=new URL(e),o=null!==(t=n.searchParams.get("t"))&&void 0!==t?t:new URLSearchParams(n.hash.substring(1)).get("t"),i=null==o?void 0:o.match(/^([0-9]+(?:\.[0-9]+)?)s?$/);if(!i)return null;var r=parseFloat(i[1]);return isFinite(r)&&r>=0?r:null},o.buildTimestampLink=function(e,t){void 0===t&&(t=window.location.href);var n=new URL(t);return n.searchParams.delete("t"),n.searchParams.set("t","".concat(Math.max(0,Math.floor(e||0)),"s")),n.toString()}}
1,12663:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIPreferencesManager=void 0;var o=n(50074),i=n(58041),r="".concat((0,i.prefixCss)("preferences"),"."),a=r+"enabled",s=r+"volume",l=r+"muted",c=r+"playbackSpeed",u="ui-preferences",p=function(){function e(){this.player=null,this.enabled=!1,this.unsubscribeHandlers=[]}return e.prototype.configure=function(e,t,n){this.player=e;var o=n?h(a):null;this.enabled=null!==o?o:t,this.enabled&&(this.startTracking(),this.apply())},e.prototype.isEnabled=function(){return this.enabled},e.prototype.setEnabled=function(e){this.enabled=e,g(a,e),this.stopTracking(),e?(this.capture(),this.startTracking(),this.apply()):this.clear()},e.prototype.release=function(){this.stopTracking(),this.player=null},e.prototype.startTracking=function(){var e=this;if(null!=this.player){var t=this.player.exports.PlayerEvent;this.track(t.VolumeChanged,function(){return f(s,e.player.getVolume())}),this.track(t.Muted,function(){return g(l,!0)}),this.track(t.Unmuted,function(){return g(l,!1)}),this.track(t.PlaybackSpeedChanged,function(){return f(c,e.player.getPlaybackSpeed())}),this.track(t.Ready,function(){return e.apply()})}},e.prototype.track=function(e,t){var n=this;this.player.on(e,t),this.unsubscribeHandlers.push(function(){return n.player.off(e,t)})},e.prototype.stopTracking=function(){for(var e=0,t=this.unsubscribeHandlers;e<t.length;e++)(0,t[e])();this.unsubscribeHandlers=[]},e.prototype.capture=function(){f(s,this.player.getVolume()),g(l,this.player.isMuted()),f(c,this.player.getPlaybackSpeed())},e.prototype.clear=function(){o.StorageUtils.removeItem(s),o.StorageUtils.removeItem(l),o.StorageUtils.removeItem(c)},e.prototype.apply=function(){if(null!=this.player){var e=d(s);null!==e&&e>=0&&e<=100&&this.player.setVolume(e,u);var t=h(l);null!==t&&(t?this.player.mute(u):this.player.unmute(u));var n=d(c);null!==n&&n>0&&this.player.setPlaybackSpeed(n)}},e}();function f(e,t){"number"==typeof t&&isFinite(t)&&o.StorageUtils.setItem(e,String(t))}function d(e){var t=o.StorageUtils.getItem(e);if(null===t)return null;var n=parseFloat(t);return isFinite(n)?n:null}function g(e,t){o.StorageUtils.setItem(e,t?"1":"0")}function h(e){var t=o.StorageUtils.getItem(e);return null===t?null:"1"===t}t.UIPreferencesManager=p},92836:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIUtils=void 0;var o,i,r,a=n(35238);(o=r||(t.UIUtils=r={})).traverseTree=function(e,t){var n=function(e,o){if(t(e,o),e instanceof a.Container)for(var i=0,r=e.getComponents();i<r.length;i++)n(r[i],e)};n(e)},(i=o.KeyCode||(o.KeyCode={}))[i.LeftArrow=37]="LeftArrow",i[i.UpArrow=38]="UpArrow",i[i.RightArrow=39]="RightArrow",i[i.DownArrow=40]="DownArrow",i[i.Space=32]="Space",i[i.End=35]="End",i[i.Home=36]="Home",i[i.Comma=188]="Comma",i[i.Period=190]="Period"},48339:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeTransition=t.VolumeController=void 0;var o=n(37388),i=function(){function e(t){var n=this;this.player=t,this.events={onChanged:new o.EventDispatcher},this.transitionActive=!1,this.storedVolume=e.defaultVolume,this.storeVolume();var i=function(){n.onChangedEvent()};t.on(t.exports.PlayerEvent.SourceLoaded,i),t.on(t.exports.PlayerEvent.VolumeChanged,i),t.on(t.exports.PlayerEvent.Muted,i),t.on(t.exports.PlayerEvent.Unmuted,i)}return e.prototype.setVolume=function(t){this.player.setVolume(t,e.issuerName)},e.prototype.getVolume=function(){return this.player.getVolume()},e.prototype.setMuted=function(t){t?this.player.mute(e.issuerName):this.player.unmute(e.issuerName)},e.prototype.toggleMuted=function(){this.isMuted()||0===this.getVolume()?this.recallVolume():this.setMuted(!0)},e.prototype.isMuted=function(){return this.player.isMuted()},e.prototype.storeVolume=function(){var e=this.getVolume();e>0&&(this.storedVolume=e)},e.prototype.recallVolume=function(){var t=this.storedVolume>0?this.storedVolume:e.defaultVolume;this.setMuted(!1),this.setVolume(t)},e.prototype.startTransition=function(){return this.transitionActive=!0,new r(this)},e.prototype.endTransition=function(){this.transitionActive=!1},e.prototype.onChangedEvent=function(){var e=this.isMuted(),t=this.getVolume();this.transitionActive||this.storeVolume(),this.events.onChanged.dispatch(this,{volume:e?0:t,muted:e||0===t})},Object.defineProperty(e.prototype,"onChanged",{get:function(){return this.events.onChanged.getEvent()}
1,enumerable:!1,configurable:!0}),e.issuerName="ui-volumecontroller",e.defaultVolume=100,e}();t.VolumeController=i;var r=function(){function e(e){this.controller=e,e.storeVolume()}return e.prototype.update=function(e){this.controller.setMuted(!1),this.controller.setVolume(e)},e.prototype.finish=function(e){0===e?(this.controller.recallVolume(),this.controller.setMuted(!0)):(this.controller.setMuted(!1),this.controller.setVolume(e),this.controller.storeVolume()),this.controller.endTransition()},e}();t.VolumeTransition=r},45419:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.VttUtils=void 0,(r=n||(n={})).Top="top",r.Bottom="bottom",r.Left="left",r.Right="right",(a=o||(o={})).GrowingRight="lr",a.GrowingLeft="rl";var n,o,i,r,a,s,l=new Map([[n.Top,n.Bottom],[n.Bottom,n.Top],[n.Left,n.Right],[n.Right,n.Left]]),c=function(e,t){t.region?(e.css("position","relative"),e.css("unicode-bidi","plaintext")):(e.css("position","absolute"),e.css("overflow-wrap","break-word"),e.css("overflow","hidden"),e.css("flex-flow","column")),e.css("display","inline-flex")},u=function(e,t,n,o){switch(t.lineAlign){case"center":h(e,n,o);break;case"end":v(e,n,o)}},p=function(e,t,n,o){var i=l.get(n);if("auto"===t.line&&t.vertical){e.css(i,"0");return}if("auto"!==t.line||t.vertical){var r=parseFloat(t.line);if(t.snapToLines){var a=Number(t.line);a<0&&(a=21+a),r=o.height/21*a*100/o.height}"end"!==t.lineAlign&&e.css(i,"".concat(r,"%")),u(e,t,n,r)}},f=function(e,t,i){switch(t.vertical){case"":e.css("writing-mode","horizontal-tb"),e.css(n.Bottom,"0"),p(e,t,n.Bottom,i);break;case o.GrowingRight:d(e,n.Right,t,i);break;case o.GrowingLeft:d(e,n.Left,t,i)}},d=function(e,t,o,i){var r=t===n.Right?"vertical-lr":"vertical-rl";e.css("writing-mode",r),e.css(n.Top,"0"),p(e,o,t,i)},g=function(e,t,n){if("auto"===t.position)e.css(n,"0");else switch(t.positionAlign){case"line-left":e.css(n,"".concat(t.position,"%")),e.css(l.get(n),"auto"),e.css("justify-content","flex-start");break;case"center":e.css(n,"".concat(t.position-t.size/2,"%")),e.css(l.get(n),"auto"),e.css("justify-content","center");break;case"line-right":e.css(n,"auto"),e.css(l.get(n),"".concat(100-t.position,"%")),e.css("justify-content","flex-end");break;default:e.css(n,"".concat(t.position,"%")),e.css("justify-content","flex-start")}},h=function(e,t,o){switch(t){case n.Bottom:e.css("transform","translateY(-50%)");break;case n.Left:e.css("transform","translateX(50%)");break;case n.Right:e.css("transform","translateX(-50%)")}},v=function(e,t,n){e.css(t,"".concat(100-n,"%"))};(s=i||(t.VttUtils=i={})).setVttCueBoxStyles=function(e,t){var o=e.vtt,i=e.getDomElement();c(i,o),e.getText().split("<br />").length,f(i,o,t);var r="middle"===o.align?"center":o.align;i.css("text-align",r);var a=o.size;""===o.vertical?(i.css("width","".concat(a,"%")),g(i,o,n.Left)):(i.css("height","".concat(a,"%")),g(i,o,n.Top))},s.setVttRegionStyles=function(e,t,o){var i=e.getDomElement(),r=o.width*t.viewportAnchorX/100-o.width*t.width/100*t.regionAnchorX/100,a=o.height*t.viewportAnchorY/100-28*t.lines*t.regionAnchorY/100;i.css("position","absolute"),i.css("overflow","hidden"),i.css("width","".concat(t.width,"%")),i.css(n.Left,"".concat(r,"px")),i.css(n.Right,"unset"),i.css(n.Top,"".concat(a,"px")),i.css(n.Bottom,"unset"),i.css("height","".concat(28*t.lines,"px"))}},87047:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getMinBufferLevel=function(e){var t=e.getDuration(),n=e.getVideoBufferLength(),o=e.getAudioBufferLength(),i=Math.min(null!=n?n:Number.MAX_VALUE,null!=o?o:Number.MAX_VALUE);return i===Number.MAX_VALUE&&(i=0),100/t*i}},90439:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="{{VERSION}}"},413:function(e){e.exports=JSON.parse('{"settings.video.quality":"Videoqualit\xe4t","settings.audio.quality":"Audioqualit\xe4t","settings.audio.track":"Audiospur","settings.audio.mute":"Stummschaltung","settings.audio.volume":"Lautst\xe4rke","settings.subtitles.window.color":"Hintergrundfarbe","settings.subtitles.window.opacity":"Hintergrunddeckkraft","settings.subtitles":"Untertitel","settings.subtitles.font.color":"Farbe","settings.subtitles.font.opacity":"Deckkraft","settings.subtitles.background.color":"Hintergrundfarbe","settings.subtitles.background.opacity":"Hintergrunddeckkraft","settings.subtitles.options":"Optionen","playerInsights.show":"Player Insights anzeigen","playerInsights.hide":"Player Insights ausblenden","colors.white":"wei\xdf","colors.black":"schwarz","colors.red":"rot","colors.green":"gr\xfcn","colors.blue":"blau","colors.cyan":"cyan","colors.yellow":"gelb","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Gr\xf6\xdfe","settings.subtitles.font.style":"Schriftstil","settings.subtitles.font.style.bold":"Fett","settings.subtitles.font.style.italic":"Kursiv","settings.subtitles.characterEdge":"R\xe4nder","settings.subtitles.characterEdge.raised":"erh\xf6ht","settings.subtitles.characterEdge.depressed":"vertieft","settings.subtitles.characterEdge.uniform":"einheitlich","settings.subtitles.characterEdge.dropshadowed":"Schlagschatten","settings.subtitles.characterEdge.color":"Buchstabenrandfarbe","settings.subtitles.font.family":"Schriftart","settings.subtitles.font.family.monospacedserif":"Monospace Serif","settings.subtitles.font.family.proportionalserif":"Proportional Serif","settings.subtitles.font.family.monospacedsansserif":"Monospace Sans-Serif","settings.subtitles.font.family.proportionalsansserif":"Proportional Sans-Serif","settings.subtitles.font.family.casual":"L\xe4ssig","settings.subtitles.font.family.cursive":"Kursiv","settings.subtitles.font.family.smallcapital":"Kapit\xe4lchen","settings.time.hours":"Stunden","settings.time.minutes":"Minuten","settings.time.seconds":"Sekunden","ads.remainingTime":"Diese Anzeige endet in {remainingTime} Sekunden.","ads.skip":"\xdcberspringen","ads.skippableIn":"\xdcberspringen in {remainingTime}","ads.adNumberOfTotal":"Anzeige {activeAdIndex} von {totalAdsCount}","ad":"Anzeige","settings":"Einstellungen","fullscreen":"Vollbild","speed":"Geschwindigkeit","playPause":"Abspielen/Pause","play":"Abspielen","pause":"Pause","open":"\xf6ffnen","close"
1:"Schlie\xdfen","pictureInPicture":"Bild im Bild","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"aus","auto":"automatisch","ecoMode":"ecoMode","ecoMode.title":"Eco Mode","persistentPreferences":"Einstellungen merken","back":"Zur\xfcck","reset":"Zur\xfccksetzen","replay":"Wiederholen","normal":"normal","default":"standard","live":"Live","live.jumpToLiveEdge":"{liveLabel}, zum Live-Punkt springen","subtitle.example":"Beispiel Untertitel","subtitle.select":"Untertitel ausw\xe4hlen","playingOn":"Spielt auf <strong>{castDeviceName}</strong>","connectingTo":"Verbindung mit <strong>{castDeviceName}</strong> wird hergestellt...","watermarkLink":"Link zum Homepage","controlBar":"Videoplayer Kontrollen","player":"Video player","seekBar":"Video-Timeline","seekBar.value":"Wert","seekBar.timeshift":"Timeshift","seekBar.durationText":"aus","quickseek.forward":"{seekSeconds} Sekunden Vor","quickseek.rewind":"{seekSeconds} Sekunden Zur\xfcck","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Adaptive Streaming f\xfcr das Web","contextMenu.copyTimestampLink":"Link zur aktuellen Zeit kopieren","captions.enable":"Untertitel einschalten","captions.disable":"Untertitel ausschalten"}')},85010:function(e){e.exports=JSON.parse('{"settings.video.quality":"Video Quality","settings.audio.quality":"Audio Quality","settings.audio.track":"Audio Track","settings.audio.mute":"Mute","settings.audio.volume":"Volume","settings.subtitles.window.color":"Window color","settings.subtitles.window.opacity":"Window opacity","settings.subtitles":"Subtitles","settings.subtitles.font.color":"Font color","settings.subtitles.font.opacity":"Font opacity","settings.subtitles.background.color":"Background color","settings.subtitles.background.opacity":"Background opacity","settings.subtitles.options":"Options","playerInsights.show":"Show Player Insights","playerInsights.hide":"Hide Player Insights","colors.white":"white","colors.black":"black","colors.red":"red","colors.green":"green","colors.blue":"blue","colors.cyan":"cyan","colors.yellow":"yellow","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Font size","settings.subtitles.font.style":"Font style","settings.subtitles.font.style.bold":"bold","settings.subtitles.font.style.italic":"italic","settings.subtitles.characterEdge":"Character edge","settings.subtitles.characterEdge.raised":"raised","settings.subtitles.characterEdge.depressed":"depressed","settings.subtitles.characterEdge.uniform":"uniform","settings.subtitles.characterEdge.dropshadowed":"drop shadowed","settings.subtitles.characterEdge.color":"Character edge color","settings.subtitles.font.family":"Font family","settings.subtitles.font.family.monospacedserif":"monospaced serif","settings.subtitles.font.family.proportionalserif":"proportional serif","settings.subtitles.font.family.monospacedsansserif":"monospaced sans serif","settings.subtitles.font.family.proportionalsansserif":"proportional sans serif","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursive","settings.subtitles.font.family.smallcapital":"small capital","settings.time.hours":"Hours","settings.time.minutes":"Minutes","settings.time.seconds":"Seconds","ads.remainingTime":"This ad will end in {remainingTime} seconds.","ads.skip":"Skip","ads.skippableIn":"Skip ad in {remainingTime}","ads.adNumberOfTotal":"Ad {activeAdIndex} of {totalAdsCount}","ad":"Ad","settings":"Settings","fullscreen":"Fullscreen","speed":"Speed","playPause":"Play/Pause","play":"Play","pause":"Pause","open":"open","close":"Close","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"off","auto":"auto","ecoMode":"ecoMode","ecoMode.title":"Eco Mode","persistentPreferences":"Remember preferences","back":"Back","reset":"Reset","replay":"Replay","normal":"normal","default":"default","live":"Live","live.jumpToLiveEdge":"{liveLabel}, jump to live edge","subtitle.example":"example subtitle","subtitle.select":"Select subtitle","playingOn":"Playing on <strong>{castDeviceName}</strong>","connectingTo":"Connecting to <strong>{castDeviceName}</strong>...","watermarkLink":"Link to Homepage","controlBar":"Video player controls","player":"Video player","seekBar":"Video timeline","seekBar.value":"Value","seekBar.timeshift":"Timeshift","seekBar.durationText":"out of","quickseek.forward":"Fast Forward {seekSeconds} seconds","quickseek.rewind":"Rewind {seekSeconds} seconds","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Adaptive Streaming for the Web","contextMenu.copyTimestampLink":"Copy link at current time","captions.enable":"Enable captions","captions.disable":"Disable captions"}')},95998:function(e){e.exports=JSON.parse('{"settings.video.quality":"Calidad de Video","settings.audio.quality":"Calidad de Audio","settings.audio.track":"Pista de Audio","settings.audio.mute":"Silencio","settings.audio.volume":"Volumen","settings.subtitles.window.color":"color de Ventana","settings.subtitles.window.opacity":"opacidad de Ventana","settings.subtitles":"Subt\xedtulos","settings.subtitles.font.color":"color de Fuente","settings.subtitles.font.opacity":"opacidad de Fuente","settings.subtitles.background.color":"color de Fondo","settings.subtitles.background.opacity":"opacidad de Fondo","settings.subtitles.options":"Opciones","playerInsights.show":"Mostrar Player Insights","playerInsights.hide":"Ocultar Player Insights","colors.white":"blanco","colors.black":"negro","colors.red":"rojo","colors.green":"verde","colors.blue":"azul","colors.cyan":"cian","colors.yellow":"amarillo","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"tama\xf1o de Fuente","settings.subtitles.font.style":"Estilo de Fuente","settings.subtitles.font.style.bold":"negrita","
1settings.subtitles.font.style.italic":"cursiva","settings.subtitles.characterEdge":"borde del Caracter","settings.subtitles.characterEdge.raised":"alzado","settings.subtitles.characterEdge.depressed":"discreto","settings.subtitles.characterEdge.uniform":"uniforme","settings.subtitles.characterEdge.dropshadowed":"sombreado","settings.subtitles.characterEdge.color":"color de contorno de texto","settings.subtitles.font.family":"tipo de Fuente","settings.subtitles.font.family.monospacedserif":"monospaced serif","settings.subtitles.font.family.proportionalserif":"proportional serif","settings.subtitles.font.family.monospacedsansserif":"monospaced sans serif","settings.subtitles.font.family.proportionalsansserif":"proportional sans serif","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursiva","settings.subtitles.font.family.smallcapital":"small capital","settings.time.hours":"Horas","settings.time.minutes":"Minutos","settings.time.seconds":"Segundos","ads.remainingTime":"Este anuncio acabar\xe1 en {remainingTime} segundos.","ads.skip":"Saltar","ads.skippableIn":"Saltar anuncio en {remainingTime}","ads.adNumberOfTotal":"Anuncio {activeAdIndex} de {totalAdsCount}","ad":"Anuncio","settings":"Configuraci\xf3n","fullscreen":"Pantalla Completa","speed":"Velocidad","playPause":"Reproducir/Pausa","play":"Reproducir","pause":"Pausa","open":"Abrir","close":"Cerrar","pictureInPicture":"Imagen en Imagen","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"off","auto":"auto","ecoMode":"ecoMode","ecoMode.title":"Eco Mode","persistentPreferences":"Recordar preferencias","back":"Atr\xe1s","reset":"Reiniciar","replay":"Rebobinar","normal":"normal","default":"predeterminado","live":"Directo","live.jumpToLiveEdge":"{liveLabel}, saltar al punto en directo","subtitle.example":"Ejemplo de Subt\xedtulo","subtitle.select":"Seleccionar subt\xedtulo","playingOn":"Reproduciendo en <strong>{castDeviceName}</strong>","connectingTo":"Conectando a <strong>{castDeviceName}</strong>...","watermarkLink":"Enlace al inicio","controlBar":"Controles del Reproductor","player":"Reproductor de Video","seekBar":"L\xednea de Tiempo","seekBar.value":"posici\xf3n","seekBar.timeshift":"cambio de posici\xf3n","seekBar.durationText":"de","quickseek.forward":"Adelantar {seekSeconds} segundos","quickseek.rewind":"Rebobinar {seekSeconds} segundos","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Streaming adaptativo para la web","contextMenu.copyTimestampLink":"Copiar enlace en el momento actual","captions.enable":"Activar subt\xedtulos","captions.disable":"Desactivar subt\xedtulos"}')},38866:function(e){e.exports=JSON.parse('{"settings.video.quality":"Qualit\xe9 vid\xe9o","settings.audio.quality":"Qualit\xe9 audio","settings.audio.track":"Piste audio","settings.audio.mute":"Couper le son","settings.audio.volume":"Volume","settings.subtitles.window.color":"Couleur de la fen\xeatre","settings.subtitles.window.opacity":"Opacit\xe9 de la fen\xeatre","settings.subtitles":"Sous-titres","settings.subtitles.font.color":"Couleur de la police","settings.subtitles.font.opacity":"Opacit\xe9 de la police","settings.subtitles.background.color":"Couleur de fond","settings.subtitles.background.opacity":"Opacit\xe9 du fond","settings.subtitles.options":"Options","playerInsights.show":"Afficher Player Insights","playerInsights.hide":"Masquer Player Insights","colors.white":"blanc","colors.black":"noir","colors.red":"rouge","colors.green":"vert","colors.blue":"bleu","colors.cyan":"cyan","colors.yellow":"jaune","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Taille de la police","settings.subtitles.font.style":"Style de la police","settings.subtitles.font.style.bold":"gras","settings.subtitles.font.style.italic":"italique","settings.subtitles.characterEdge":"Bordure du caract\xe8re","settings.subtitles.characterEdge.raised":"en relief","settings.subtitles.characterEdge.depressed":"en creux","settings.subtitles.characterEdge.uniform":"uniforme","settings.subtitles.characterEdge.dropshadowed":"ombre port\xe9e","settings.subtitles.characterEdge.color":"Couleur de la bordure du caract\xe8re","settings.subtitles.font.family":"Police de caract\xe8res","settings.subtitles.font.family.monospacedserif":"empattement \xe0 chasse fixe","settings.subtitles.font.family.proportionalserif":"empattement proportionnel","settings.subtitles.font.family.monospacedsansserif":"sans empattement \xe0 chasse fixe","settings.subtitles.font.family.proportionalsansserif":"sans empattement proportionnel","settings.subtitles.font.family.casual":"d\xe9contract\xe9","settings.subtitles.font.family.cursive":"cursive","settings.subtitles.font.family.smallcapital":"petites majuscules","settings.time.hours":"Heures","settings.time.minutes":"Minutes","settings.time.seconds":"Secondes","ads.remainingTime":"Votre contenu reprendra dans {remainingTime} secondes.","ads.skip":"Passer","ads.skippableIn":"Passer l\'annonce dans {remainingTime}","ads.adNumberOfTotal":"Annonce {activeAdIndex} sur {totalAdsCount}","ad":"Annonce","settings":"R\xe9glages","fullscreen":"Plein \xe9cran","speed":"Vitesse","playPause":"Lecture/Pau
1se","play":"Lecture","pause":"Pause","open":"ouvrir","close":"Fermer","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"d\xe9sactiv\xe9","auto":"auto","ecoMode":"Mode \xe9co","ecoMode.title":"Mode \xc9co","persistentPreferences":"M\xe9moriser les pr\xe9f\xe9rences","back":"Retour","reset":"R\xe9initialiser","replay":"Rejouer","normal":"normale","default":"d\xe9faut","live":"En direct","live.jumpToLiveEdge":"{liveLabel}, aller au direct","subtitle.example":"exemple de sous-titre","subtitle.select":"S\xe9lectionner un sous-titre","playingOn":"Lecture sur <strong>{castDeviceName}</strong>","connectingTo":"Connexion \xe0 <strong>{castDeviceName}</strong>...","watermarkLink":"Lien vers la page d\'accueil","controlBar":"Barre de contr\xf4le","player":"Lecteur vid\xe9o","seekBar":"Barre de progression","seekBar.value":"Valeur","seekBar.timeshift":"D\xe9calage temporel","seekBar.durationText":"de","quickseek.forward":"Avance rapide de {seekSeconds} secondes","quickseek.rewind":"Retour rapide de {seekSeconds} secondes","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Streaming adaptatif pour le web","contextMenu.copyTimestampLink":"Copier le lien \xe0 l\'instant actuel","captions.enable":"Activer les sous-titres","captions.disable":"D\xe9sactiver les sous-titres"}')},63963:function(e){e.exports=JSON.parse('{"settings.video.quality":"Videokwaliteit","settings.audio.quality":"Audiokwaliteit","settings.audio.track":"Audiospoor","settings.audio.mute":"Dempen","settings.audio.volume":"Volume","settings.subtitles.window.color":"Vensterkleur","settings.subtitles.window.opacity":"Venster doorzichtigheid","settings.subtitles":"Ondertiteling","settings.subtitles.font.color":"Lettertype kleur","settings.subtitles.font.opacity":"Lettertype doorzichtigheid","settings.subtitles.background.color":"Achtergrondkleur","settings.subtitles.background.opacity":"Achtergrond doorzichtigheid","settings.subtitles.options":"Opties","playerInsights.show":"Player Insights tonen","playerInsights.hide":"Player Insights verbergen","colors.white":"wit","colors.black":"zwart","colors.red":"rood","colors.green":"groen","colors.blue":"blauw","colors.cyan":"cyaan","colors.yellow":"geel","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Lettertype grootte","settings.subtitles.font.style":"Letterstijl","settings.subtitles.font.style.bold":"vet","settings.subtitles.font.style.italic":"cursief","settings.subtitles.characterEdge":"Lettertype rand","settings.subtitles.characterEdge.raised":"verhoogd","settings.subtitles.characterEdge.depressed":"verlaagd","settings.subtitles.characterEdge.uniform":"uniform","settings.subtitles.characterEdge.dropshadowed":"schaduw","settings.subtitles.characterEdge.color":"Letterrandkleur","settings.subtitles.font.family":"Standaard lettertype","settings.subtitles.font.family.monospacedserif":"monospace serif","settings.subtitles.font.family.proportionalserif":"proportioneel serif","settings.subtitles.font.family.monospacedsansserif":"monospace sans-serif","settings.subtitles.font.family.proportionalsansserif":"proportioneel sans-serif","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursief","settings.subtitles.font.family.smallcapital":"kleine hoofdletters","settings.time.hours":"Uren","settings.time.minutes":"Minuten","settings.time.seconds":"Seconden","ads.remainingTime":"Deze advertentie eindigt in {remainingTime} seconden.","ads.skip":"Overslaan","ads.skippableIn":"Advertentie overslaan over {remainingTime}","ads.adNumberOfTotal":"Advertentie {activeAdIndex} van {totalAdsCount}","ad":"Advertentie","settings":"Instellingen","fullscreen":"Volledig scherm","speed":"Snelheid","playPause":"Afspelen/Pauzeren","play":"Afspelen","pause":"Pauzeren","open":"Openen","close":"Sluiten","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"uit","auto":"automatisch","ecoMode":"Eco-modus","ecoMode.title":"Eco-modus","persistentPreferences":"Voorkeuren onthouden","back":"Terug","reset":"Reset","replay":"Opnieuw afspelen","normal":"normaal","default":"standaard","live":"Live","live.jumpToLiveEdge":"{liveLabel}, naar live springen","subtitle.example":"voorbeeld ondertiteling","subtitle.select":"Selecteer ondertiteling","playingOn":"Speelt af op <strong>{castDeviceName}</strong>","connectingTo":"Verbinden met <strong>{castDeviceName}</strong>...","watermarkLink":"Link naar homepage","controlBar":"Videospeler bediening","player":"Videospeler","seekBar":"Video tijdlijn","seekBar.value":"Waarde","seekBar.timeshift":"Tijdverschuiving","seekBar.durationText":"van","quickseek.forward":"{seekSeconds} seconden vooruitspoelen","quickseek.rewind":"{seekSeconds} seconden terugspoelen","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Adaptive streaming voor het web","contextMenu.copyTimestampLink":"Link naar huidig tijdstip kopi\xebren","captions.enable":"Ondertiteling aanzetten","captions.disable":"Ondertiteling uitzetten"}')},8258:function(e){e.exports=JSON.parse('{"settings.video.quality":"Qualidade de v\xeddeo","settings.audio.quality":"Qualidade de \xe1udio","settings.audio.track":"Faixa de \xc1udio","settings.audio.mute":"Silenciar","settings.audio.volume":"Volume","settings.subtitles.window.color":"Cor da janela","settings.subtitles.window.opacity":"Opacidade da janela","settings.subtitles":"Legendas","settings.subtitles.font.color":"Cor do texto","settings.subtitles.font.opacity":"Opacidade do texto","settings.subtitles.background.color":"Cor do fundo","settings.subtitles.background.opacity":"Opacidade do fundo","settings.subtitles.options":"Op\xe7\xf5es","playerInsights.show":"Mostrar Player Insights","playerInsights.hide":"Ocultar Player Insights","colors.white":"branco","colors.black":"preto","colors.red":"vermelho","colors.green":"verde","colors.blue":"azul","colors.cyan":"ciano","colors.yellow":"amarelo","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Tamanho do texto","settings.subtitles.font.style":"Estilo do texto","settings.subtitles.font.style.bold":"negrito","settings.subtitles.font.style.italic":"it\xe1lico","settings.subtitles.characterEdge":"Borda do texto","settings.subtitles.characterEdge.raised":"levantada","settings.subtitles.characterEdge.depressed":"deprimida","settings.subtitles.characterEdge.uniform":"uniforme","settings.subtitles.characterEdge.dropshadowed":"com sombra","settings.subtitles.characterEdge.color":"Cor da borda do texto","settings.subtitles.font.family":"Fam\xedlia de fontes","settings.subtitles.font.family.monospacedserif":"serifado monoespa\xe7ado","settings.subtitles.font.family.proportionalserif":"serifado proporcional","settings.subtitles.font.family.monospacedsansserif":"monoespa\xe7ado sem serifa","settings.subtitles.font.family.proportionalsansserif":"proporcional sem serifa","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursivo","settings.subtitles.font.family.smallcapital":"letras min\xfasculas","settings.time.hours":"Horas","settings.time.minutes":"Minutos","settings.time.seconds":"Segundos","ads.remainingTime":"Este an\xfancio vai terminar em {remainingTime} segundos.","ads.skip":"Ignorar","ads.skippableIn":"Ignorar an\xfancio em {remainingTime}","ads.adNumberOfTotal":"An\xfancio {activeAdIndex} de {totalAdsCount}","ad":"An\xfancio","settings":"Defini\xe7\xf5es","fullscreen":"Ecr\xe3 inteiro","speed":"Velocidade","playPause":"Reproduzir/Pausar","play":"Reproduzir","pause":"Pausar","o
1pen":"abrir","close":"Fechar","pictureInPicture":"Imagem em imagem","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"Realidade Virtual","off":"desligado","auto":"autom\xe1tico","ecoMode":"ecoMode","ecoMode.title":"Modo Econ\xf3mico","persistentPreferences":"Lembrar prefer\xeancias","back":"Voltar atr\xe1s","reset":"Reiniciar","replay":"Repetir","normal":"normal","default":"predefini\xe7\xe3o","live":"Ao Vivo","live.jumpToLiveEdge":"{liveLabel}, ir para a transmiss\xe3o ao vivo","subtitle.example":"exemplo de legenda","subtitle.select":"Selecionar legenda","playingOn":"A reproduzir em <strong>{castDeviceName}</strong>","connectingTo":"A conectar a <strong>{castDeviceName}</strong>...","watermarkLink":"Link para a p\xe1gina inicial","controlBar":"Controlos do reprodutor de v\xeddeo","player":"Reprodutor de v\xeddeo","seekBar":"Linha do tempo do v\xeddeo","seekBar.value":"Valor","seekBar.timeshift":"Diferido","seekBar.durationText":"de","quickseek.forward":"Avan\xe7ar {seekSeconds} segundos","quickseek.rewind":"Retroceder {seekSeconds} segundos","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Streaming adaptativo para a web","contextMenu.copyTimestampLink":"Copiar liga\xe7\xe3o no momento atual","captions.enable":"Ativar legendas","captions.disable":"Desativar legendas"}')}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.