PageSourceSearch

https://static.tiptip.id/webapp/current/_next/static/chunks/5177-caea9a54b1066f4c.js

js tiptip.id collected 2026-09-24 11:14:14 UTC 283,654 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5177],{384:function(e,t,n){"use strict";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(86334),s=n(87720);t.FontStyleSelectBox=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,r=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("italic",s.i18n.getLocalizer("settings.subtitles.font.style.italic")),this.addItem("bold",s.i18n.getLocalizer("settings.subtitles.font.style.bold")),null==(o=this.settingsManager)||o.fontStyle.onChanged.subscribe(function(e,t){t.isSet()?r.toggleOverlayClass("fontstyle-"+t.value):r.toggleOverlayClass(null),r.selectItem(t.value)}),this.onItemSelected.subscribe(function(e,t){r.settingsManager&&(r.settingsManager.fontStyle.value=t)}),(null==(i=this.settingsManager)?void 0:i.fontStyle.isSet())&&this.selectItem(this.settingsManager.fontStyle.value)},t}(r.SubtitleSettingSelectBox)},649:function(e,t,n){"use strict";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(87448),s=n(84801);t.CastUIContainer=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 s.Timeout(i.hideDelay,function(){n.onControlsHide.dispatch(o),r=!1});var a=function(){r||(n.onControlsShow.dispatch(o),r=!0)},l=function(){a(),o.castUiHideTimeout.clear()},c=function(){a(),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()}),n.getConfig().events.onUpdated.subscribe(c)},t.prototype.release=function(){e.prototype.release.call(this),this.castUiHideTimeout.clear()},t}(r.UIContainer)},2209:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DemoFactory=void 0;var o=n(26527),i=n(91346),r=n(96344),s=n(15359),a=n(39491),l=n(48722),c=n(93305),u=n(87456),p=n(70066),f=n(86536),d=n(50306),g=n(49465),h=n(72746),y=n(87448),v=n(26963),m=n(7033),b=n(39816),C=n(47969),P=n(40602),S=n(8458),w=n(86151),E=n(97258),_=n(56109),O=n(93246),k=n(11552),x=n(87236),T=n(26967),M=n(63344),L=n(85941),A=n(94532),I=n(60219),B=n(33375),j=n(10639),D=n(73162),U=n(19067);(t.DemoFactory||(t.DemoFactory={})).buildDemoWithSeparateAudioSubtitlesButtons=function(e,t){var n,V,R,z,H,F,N;return void 0===t&&(t={}),new T.UIManager(e,[{ui:D.UIFactory.modernSmallScreenAdsUI(),condition:function(e){return e.isMobile&&e.documentWidth<600&&e.isAd&&e.adRequiresUi}},{ui:D.UIFactory.modernAdsUI(),condition:function(e){return e.isAd&&e.adRequiresUi}},{ui:D.UIFactory.modernSmallScreenUI(),condition:function(e){return e.isMobile&&e.documentWidth<600}},{ui:(n=new m.SubtitleOverlay,V=new b.SettingsPanel({components:[new j.SettingsPanelPage({components:[new B.SettingsPanelItem("Video Quality",new x.VideoQualitySelectBox),new B.SettingsPanelItem("Speed",new d.PlaybackSpeedSelectBox),new B.SettingsPanelItem("Audio Quality",new g.AudioQualitySelectBox)]})],hidden:!0}),R=new A.SubtitleListBox,z=new b.SettingsPanel({components:[new j.SettingsPanelPage({components:[new B.SettingsPanelItem(null,R)]})],hidden:!0}),H=new I.AudioTrackListBox,F=new b.SettingsPanel({components:[new j.SettingsPanelPage({components:[new B.SettingsPanelItem(null,H)]})],hidden:!0}),N=new c.ControlBar({components:[F,z,V,new E.Container({components:[new s.PlaybackTimeLabel({timeLabelMode:s.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),new k.SeekBar({label:new C.SeekBarLabel}),new s.PlaybackTimeLabel({timeLabelMode:s.PlaybackTimeLabelMode.TotalTime,cssClasse
1s:["text-right"]})],cssClasses:["controlbar-top"]}),new E.Container({components:[new O.PlaybackToggleButton,new U.QuickSeekButton({seekSeconds:-10}),new U.QuickSeekButton({seekSeconds:10}),new _.VolumeToggleButton,new r.VolumeSlider,new w.Spacer,new S.PictureInPictureToggleButton,new a.AirPlayToggleButton,new u.CastToggleButton,new o.VRToggleButton,new i.SettingsToggleButton({settingsPanel:F,cssClass:"ui-audiotracksettingstogglebutton"}),new i.SettingsToggleButton({settingsPanel:z,cssClass:"ui-subtitlesettingstogglebutton"}),new i.SettingsToggleButton({settingsPanel:V}),new p.FullscreenToggleButton],cssClasses:["controlbar-bottom"]})]}),new y.UIContainer({components:[n,new L.BufferingOverlay,new P.PlaybackToggleOverlay,new h.CastStatusOverlay,N,new M.TitleBar,new f.RecommendationOverlay,new v.Watermark,new l.ErrorMessageOverlay]}))}],t)}},2715:function(e,t,n){"use strict";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(54276),s=n(84801);t.EventDispatcher=function(){function e(){this.listeners=[]}return e.prototype.subscribe=function(e){this.listeners.push(new a(e))},e.prototype.subscribeOnce=function(e){this.listeners.push(new a(e,!0))},e.prototype.subscribeRateLimited=function(e,t){this.listeners.push(new l(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 s=o[i];s.fire(e,t),s.isOnce()&&n.push(s)}for(var a=0;a<n.length;a++){var l=n[a];r.ArrayUtils.remove(this.listeners,l)}},e.prototype.getEvent=function(){return this},e}();var a=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},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}(),l=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 s.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}(a)},2971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Guid=void 0,function(e){var t=1;e.next=function(){return t++}}(t.Guid||(t.Guid={}))},3627:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAction=t.isDirection=t.isListBox=t.isContainer=t.isComponent=t.isSettingsPanel=void 0;var o=n(67650),i=n(39816),r=n(97258),s=n(48776),a=n(30714);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.isListBox=function(e){return e instanceof s.ListBox},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)}},3952:function(e,t,n){"use strict";
1var 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(86334),s=n(87720);t.FontOpacitySelectBox=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,s.i18n.getLocalizer("default")),this.addItem("100",s.i18n.getLocalizer("percent",{value:100})),this.addItem("75",s.i18n.getLocalizer("percent",{value:75})),this.addItem("50",s.i18n.getLocalizer("percent",{value:50})),this.addItem("25",s.i18n.getLocalizer("percent",{value:25})),this.onItemSelected.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.settingsManager.fontOpacity.isSet()&&this.selectItem(this.settingsManager.fontOpacity.value)},t}(r.SubtitleSettingSelectBox)},4432:function(e,t,n){"use strict";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.CharacterEdgeSelectBox=void 0;var r=n(86334),s=n(87720);t.CharacterEdgeSelectBox=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,s.i18n.getLocalizer("default")),this.addItem("raised",s.i18n.getLocalizer("settings.subtitles.characterEdge.raised")),this.addItem("depressed",s.i18n.getLocalizer("settings.subtitles.characterEdge.depressed")),this.addItem("uniform",s.i18n.getLocalizer("settings.subtitles.characterEdge.uniform")),this.addItem("dropshadowed",s.i18n.getLocalizer("settings.subtitles.characterEdge.dropshadowed"));var i=function(){o.settingsManager.characterEdge.isSet()&&o.settingsManager.characterEdgeColor.isSet()?o.toggleOverlayClass("characteredge-"+o.settingsManager.characterEdge.value+"-"+o.settingsManager.characterEdgeColor.value):o.toggleOverlayClass(null)};this.onItemSelected.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),i()}),this.settingsManager.characterEdgeColor.onChanged.subscribe(function(){i()}),this.settingsManager.characterEdge.isSet()&&this.selectItem(this.settingsManager.characterEdge.value)},t}(r.SubtitleSettingSelectBox)},4738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOM=void 0,t.DOM=function(){function e(e,t,n){if(this.document=document,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)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}
1,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))if(e<0)return this.elements[this.elements.length-e];else return 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];return this.forEach(function(t){e.forEach(function(e){e.elements.forEach(function(n,o){t.appendChild(e.elements[o])})})}),this},e.prototype.remove=function(){this.forEach(function(e){var t=e.parentNode;t&&t.removeChild(e)})},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.document.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.document.removeEventListener(e,t,n):o.forEach(function(o){o.removeEventListener(e,t,n)})}),this},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}()},7033:function(e,t,n){"use strict";
1var 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.SubtitleRegionContainer=t.SubtitleRegionContainerManager=t.SubtitleLabel=t.SubtitleOverlay=void 0;var r=n(97258),s=n(50071),a=n(93305),l=n(2715),c=n(4738),u=n(87720),p=n(71325);t.SubtitleOverlay=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.preprocessLabelEventCallback=new l.EventDispatcher,n.previewSubtitleActive=!1,n.previewSubtitle=new f({text:u.i18n.getLocalizer("subtitle.example")}),n.config=n.mergeConfig(t,{cssClass:"ui-subtitle-overlay"},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=new d;this.subtitleManager=r,this.subtitleContainerManager=new g(this),n.on(n.exports.PlayerEvent.CueEnter,function(e){var t=i.generateLabel(e);r.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=r.cueUpdate(e,t);i.preprocessLabelEventCallback.dispatch(e,t),n&&i.subtitleContainerManager.replaceLabel(n,t),o.getConfig().forceSubtitlesIntoViewContainer&&i.handleSubtitleCropping(t)}),n.on(n.exports.PlayerEvent.CueExit,function(e){var t=r.cueExit(e);t&&(i.subtitleContainerManager.removeLabel(t),i.updateComponents()),r.hasCues||(i.previewSubtitleActive?(i.subtitleContainerManager.addLabel(i.previewSubtitle),i.updateComponents()):i.hide())});var s=function(){i.hide(),i.subtitleContainerManager.clear(),r.clear(),i.removeComponents(),i.updateComponents()},l=function(){r.clearInactiveCues(n.getCurrentTime()).forEach(function(e){i.subtitleContainerManager.removeLabel(e.label)})};n.on(n.exports.PlayerEvent.AudioChanged,s),n.on(n.exports.PlayerEvent.SubtitleDisabled,s),n.on(n.exports.PlayerEvent.Seeked,l),n.on(n.exports.PlayerEvent.TimeShifted,l),n.on(n.exports.PlayerEvent.PlaybackFinished,s),n.on(n.exports.PlayerEvent.SourceUnloaded,s),o.onComponentShow.subscribe(function(e){e instanceof a.ControlBar&&i.getDomElement().addClass(i.prefixCss(t.CLASS_CONTROLBAR_VISIBLE))}),o.onComponentHide.subscribe(function(e){e instanceof a.ControlBar&&i.getDomElement().removeClass(i.prefixCss(t.CLASS_CONTROLBAR_VISIBLE))}),this.configureCea608Captions(n,o),s()},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));n.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=e.region;return e.position&&(e.position.row=e.position.row||0,e.position.column=e.position.column||0,t=t||"cea608-row-".concat(e.position.row)),new f({text:e.html||d.generateImageTagText(e.image)||e.text,vtt:e.vtt,region:t,regionStyle:e.regionStyle})},t.prototype.configureCea608Captions=function(e,n){var o=this,i=0,r=0,s=!0,a=!1,l=function(){var e=new f({text:"X"});e.getDomElement().css({"font-size":"200px","line-height":"200px",visibility:"hidden"}),o.addComponent(e),o.updateComponents(),o.show();var n=e.getDomElement().width(),s=e.getDomElement().height(),a=n/s;o.removeComponent(e),o.updateComponents(),o.subtitleManager.hasCues||o.hide();var l=o.getDomElement().width()-10,c=o.getDomElement().height();l/c>n*t.CEA608_NUM_COLUMNS/(s*t.CEA608_NUM_ROWS)?(i=c/t.CEA608_NUM_ROWS,r=l/t.CEA608_NUM_COLUMNS-i*a):(i=l/t.CEA608_NUM_COLUMNS/a,r=0);for(var u=0,p=o.getComponents();u<p.length;u++){var d=p[u];d instanceof f&&(d.getDomElement().css({"font-size":"".concat(i,"px"),"letter-spacing":"".concat(r,"px")}),d.regionStyle="line-height: ".concat(i,"px;"))}};e.on(e.exports.PlayerEvent.PlayerResized,function(){a?l():s=!0}
1),this.preprocessLabelEventCallback.subscribe(function(e,n){null!=e.position&&(!a&&(a=!0,o.getDomElement().addClass(o.prefixCss(t.CLASS_CEA_608)),s&&(l(),s=!1)),n.getDomElement().css({left:"".concat(e.position.column*t.CEA608_COLUMN_OFFSET,"%"),"font-size":"".concat(i,"px"),"letter-spacing":"".concat(r,"px")}),n.regionStyle="line-height: ".concat(i,"px;"))});var c=function(){o.getDomElement().removeClass(o.prefixCss(t.CLASS_CEA_608)),a=!1};e.on(e.exports.PlayerEvent.CueExit,function(){o.subtitleManager.hasCues||c()}),e.on(e.exports.PlayerEvent.SourceUnloaded,c),e.on(e.exports.PlayerEvent.SubtitleEnable,c),e.on(e.exports.PlayerEvent.SubtitleDisabled,c)},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.CLASS_CONTROLBAR_VISIBLE="controlbar-visible",t.CLASS_CEA_608="cea608",t.CEA608_NUM_ROWS=15,t.CEA608_NUM_COLUMNS=32,t.CEA608_COLUMN_OFFSET=100/t.CEA608_NUM_COLUMNS,t}(r.Container);var f=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},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}),t}(s.Label);t.SubtitleLabel=f;var d=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}(),g=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("vtt-region-".concat(e.vtt.region.id)),!this.subtitleRegionContainers[o]){var s=new h({cssClasse
1s:r});for(var a in this.subtitleRegionContainers[o]=s,e.regionStyle?s.getDomElement().attr("style",e.regionStyle):e.vtt&&!e.vtt.region?s.getDomElement().css("position","static"):s.getDomElement(),this.subtitleRegionContainers)this.subtitleOverlay.addComponent(this.subtitleRegionContainers[a])}this.subtitleRegionContainers[o].addLabel(e,t)},e.prototype.replaceLabel=function(e,t){var n=this.getRegion(e).regionContainerId;this.subtitleRegionContainers[n].removeLabel(e),this.subtitleRegionContainers[n].addLabel(t)},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=g;var h=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);t.SubtitleRegionContainer=h},8458:function(e,t,n){"use strict";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.PictureInPictureToggleButton=void 0;var r=n(69491),s=n(87720);t.PictureInPictureToggleButton=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:s.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()},s=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.ViewModeChanged,r),t.exports.PlayerEvent.ViewModeAvailabilityChanged&&t.on(t.exports.PlayerEvent.ViewModeAvailabilityChanged,s),n.getConfig().events.onUpdated.subscribe(s),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)}),s(),r()},t}(r.ToggleButton)},8997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineMarkersHandler=void 0;var o=n(4738),i=n(36092),r=n(84801);t.TimelineMarkersHandler=function(){function e(e,t,n){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;this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,function(){return e.clearMarkers()}),this.player.on(this.player.exports.PlayerEvent.AdBreakStarted,function(){return e.clearMarkers()}),this.player.on(this.player.exports.PlayerEvent.AdBreakFinished,function(){return e.updateMarkers()}),this.player.on(this.player.exports.PlayerEvent.PlayerResized,function(){return e.updateMarkersDOM()}),this.player.on(this.player.exports.PlayerEvent.SourceLoaded,function(){e.player.isLive()&&
1(e.player.on(e.player.exports.PlayerEvent.TimeChanged,function(){return e.updateMarkers()}),e.configureLivePausedTimeshiftUpdater(function(){return e.updateMarkers()}))}),this.uimanager.getConfig().events.onUpdated.subscribe(function(){return e.updateMarkers()}),this.uimanager.onRelease.subscribe(function(){return e.uimanager.getConfig().events.onUpdated.unsubscribe(function(){return e.updateMarkers()})}),this.updateMarkers()},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(){var e,t,n,o,r=this;if(e=this.player,t=this.uimanager,n=e.getDuration()!==1/0||e.isLive(),o=t.getConfig().metadata.markers.length>0,!n||!o)return void this.clearMarkers();this.filterRemovedMarkers(),this.uimanager.getConfig().metadata.markers.forEach(function(e){var t,n,o,s,a,l,c,u,p,f,d=(t=r.player,n=e,c=100/(l=function(e){if(!e.isLive())return e.getDuration();var t=i.PlayerUtils.getSeekableRangeRespectingLive(e),n=t.start;return t.end-n}(t))*(o=n,s=t,a=l,s.isLive()?a-(i.PlayerUtils.getSeekableRangeRespectingLive(s).end-o.time):o.time),u=100/l*n.duration,c<0&&!isNaN(u)&&(u+=c),100-c<u&&(u=100-c),{markerDuration:u,markerPosition:c}),g=d.markerPosition,h=d.markerDuration;if(p=g,((f=h)<0||isNaN(f))&&p<0)r.removeMarkerFromConfig(e);else if(g<=100){var y=r.timelineMarkers.find(function(t){return t.marker===e});if(y)y.position=g,y.duration=h,r.updateMarkerDOM(y);else{var v={marker:e,position:g,duration:h};r.timelineMarkers.push(v),r.createMarkerDOM(v)}}})},e.prototype.getMarkerCssProperties=function(e){var t=this.getSeekBarWidth(),n=t/100*(e.position<0?0:e.position),o={transform:"translateX(".concat(n,"px)")};if(e.duration>0){var i=Math.round(t/100*e.duration);o.width="".concat(i,"px")}return o},e.prototype.updateMarkerDOM=function(e){e.element.css(this.getMarkerCssProperties(e))},e.prototype.createMarkerDOM=function(e){var t=this,n=["seekbar-marker"].concat(e.marker.cssClasses||[]).map(function(e){return t.prefixCss(e)}),i=new o.DOM("div",{class:n.join(" "),"data-marker-time":String(e.marker.time),"data-marker-title":String(e.marker.title)}).css(this.getMarkerCssProperties(e));if(e.marker.imageUrl){var r=new o.DOM("img",{class:this.prefixCss("seekbar-marker-image"),src:e.marker.imageUrl}).on("error",function(){r.remove()});i.append(r)}e.element=i,this.markersContainer.append(i)},e.prototype.updateMarkersDOM=function(){var e=this;this.timelineMarkers.forEach(function(t){t.element?e.updateMarkerDOM(t):e.createMarkerDOM(t)})},e.prototype.configureLivePausedTimeshiftUpdater=function(e){var t=this;this.pausedTimeshiftUpdater=new r.Timeout(1e3,e,!0),this.player.on(this.player.exports.PlayerEvent.Paused,function(){t.player.isLive()&&0>t.player.getMaxTimeShift()&&t.pausedTimeshiftUpdater.start()}),this.player.on(this.player.exports.PlayerEvent.Play,function(){return t.pausedTimeshiftUpdater.clear()}),this.player.on(this.player.exports.PlayerEvent.Destroy,function(){return t.pausedTimeshiftUpdater.clear()})},e.prototype.prefixCss=function(e){return this.config.cssPrefix+"-"+e},e}()},9613:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UIUtils=void 0;var o=n(97258);!function(e){var t;e.traverseTree=function(e,t){var n=function(e,i){if(t(e,i),e instanceof o.Container)for(var r=0,s=e.getComponents();r<s.length;r++)n(s[r],e)};n(e)},(t=e.KeyCode||(e.KeyCode={}))[t.LeftArrow=37]="LeftArrow",t[t.UpArrow=38]="UpArrow",t[t.RightArrow=39]="RightArrow",t[t.DownArrow=40]="DownArrow",t[t.Space=32]="Space",t[t.End=35]="End",t[t.Home=36]="Home"}(t.UIUtils||(t.UIUtils={}))},10511:function(e,t,n){"use strict";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))};
1Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSwitchHandler=void 0;var i=n(87720);t.SubtitleSwitchHandler=function(){function e(t,n,r){var s=this;this.addSubtitle=function(e){var t=e.subtitle;s.listElement.hasItem(t.id)||s.listElement.addItem(t.id,t.label)},this.removeSubtitle=function(e){var t=e.subtitle;s.listElement.hasItem(t.id)&&s.listElement.removeItem(t.id)},this.selectCurrentSubtitle=function(){if(s.player.subtitles){var t=s.player.subtitles.list().filter(function(e){return e.enabled}).pop();s.listElement.selectItem(t?t.id:e.SUBTITLES_OFF_KEY)}},this.clearSubtitles=function(){s.listElement.clearItems()},this.refreshSubtitles=function(){if(s.player.subtitles){var t={key:e.SUBTITLES_OFF_KEY,label:i.i18n.getLocalizer("off")},n=s.player.subtitles.list();s.listElement.synchronizeItems(o([t],n.map(function(e){return{key:e.id,label:e.label}}),!0)),s.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.onItemSelected.subscribe(function(n,o){if(o===e.
1SUBTITLES_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.selectCurrentSubtitle),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.SUBTITLES_OFF_KEY="null",e}()},10639:function(e,t,n){"use strict";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(97258),s=n(33375),a=n(2715),l=n(73107);t.SettingsPanelPage=function(e){function t(t){var n=e.call(this,t)||this;return n.settingsPanelPageEvents={onSettingsStateChanged:new a.EventDispatcher,onActive:new a.EventDispatcher,onInactive:new a.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-page",role:"menu"},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))},s=0,a=this.getItems();s<a.length;s++)a[s].onActiveChanged.subscribe(r)},t.prototype.hasActiveSettings=function(){for(var e=0,t=this.getItems();e<t.length;e++)if(t[e].isActive())return!0;return!1},t.prototype.getItems=function(){return this.config.components.filter(function(e){return e instanceof s.SettingsPanelItem})},t.prototype.onSettingsStateChangedEvent=function(){this.settingsPanelPageEvents.onSettingsStateChanged.dispatch(this)},Object.defineProperty(t.prototype,"onSettingsStateChanged",{get:function(){return this.settingsPanelPageEvents.onSettingsStateChanged.getEvent()},enumerable:!1,configurable:!0}),t.prototype.onActiveEvent=function(){var e=this.getItems().filter(function(e){return e.isActive()});this.settingsPanelPageEvents.onActive.dispatch(this),!(e.length>0)||l.BrowserUtils.isIOS||l.BrowserUtils.isMacIntel&&l.BrowserUtils.isTouchSupported||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.CLASS_LAST="last",t}(r.Container)},10993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorUtils=void 0,function(e){e.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 invali
1d",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 could 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."},e.defaultMobileV3ErrorMessageTranslator=function(e){return e.message},e.defaultWebErrorMessageTranslator=function(t){var n=e.defaultErrorMessages[t.code];return n?"".concat(n,"\n(").concat(t.name,")"):"".concat(t.code," ").concat(t.name)}}(t.ErrorUtils||(t.ErrorUtils={}))},11144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLoader=void 0;var o=n(4738);t.ImageLoader=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}()},11505:function(e,t,n){"use strict";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.SubtitleSettingsResetButton=void 0;var r=n(49171),s=n(87720);t.SubtitleSettingsResetButton=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-subtitlesettingsresetbutton",text:s.i18n.getLocalizer("reset")},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)},11552:function(e,t,n){"use strict";
1var 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(78048),s=n(67650),a=n(4738),l=n(2715),c=n(84801),u=n(36092),p=n(50272),f=n(98360),d=n(87720),g=n(73107),h=n(8997),y=n(42880);t.SeekBar=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.playbackPositionPercentage=0,n.isUserSeeking=!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();this.getDomElement().attr("aria-valuenow",e),this.getDomElement().attr("aria-valuetext","".concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.timeshift"))," ").concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.value")),": ").concat(e))}else if(this.seekBarType===f.SeekBarType.Vod){var t="".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",t)}},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,y.getMinBufferLevel)(this.player),this.setBufferPosition(t)},t.prototype.configure=function(n,o,i){var s,a=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 a.seekBarType}),!i){this.seekBarType=f.SeekBarType.Volume;return}o.onControlsShow.subscribe(function(){a.isUiShown=!0,!a.smoothPlaybackPositionUpdater||n.isLive()||a.smoothPlaybackPositionUpdater.isActive()||(d(null,!0),a.smoothPlaybackPositionUpdater.start())}),o.onControlsHide.subscribe(function(){a.isUiShown=!1,a.smoothPlaybackPositionUpdater&&a.smoothPlaybackPositionUpdater.isActive()&&a.smoothPlaybackPositionUpdater.clear()});var l=!1,c=!1,p=!1,d=function(e,o){if(void 0===e&&(e=null),void 0===o&&(o=!1),!a.isUserSeeking){var i=a.getPlaybackPositionPercentage();if(a.updateBufferLevel(i),c&&e&&e.type===n.exports.PlayerEvent.SegmentRequestFinished&&i!==a.playbackPositionPercentage&&(i=a.playbackPositionPercentage),n.isLive
1())0===n.getMaxTimeShift()?a.setPlaybackPosition(100):(a.isSeeking()||a.setPlaybackPosition(i),a.setAriaSliderMinMax(n.getMaxTimeShift().toString(),"0"));else{var r=a.config.smoothPlaybackPositionUpdateIntervalMs===t.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED||o||n.isPaused(),s=n.isPaused()===n.isPlaying();(r||s)&&!a.isSeeking()&&a.setPlaybackPosition(i),a.setAriaSliderMinMax("0",n.getDuration().toString())}a.isUiShown&&a.setAriaSliderValues()}};n.on(n.exports.PlayerEvent.Ready,d),n.on(n.exports.PlayerEvent.TimeChanged,d),n.on(n.exports.PlayerEvent.StallEnded,d),n.on(n.exports.PlayerEvent.TimeShifted,d),n.on(n.exports.PlayerEvent.SegmentRequestFinished,d),this.configureLivePausedTimeshiftUpdater(n,o,d);var g=function(){p=!0,a.setSeeking(!0),c=!1},h=function(e){void 0===e&&(e=null),p=!1,a.setSeeking(!1),d(e,!0)},y=function(){l&&n.play("ui-seek")};n.on(n.exports.PlayerEvent.Seek,g),n.on(n.exports.PlayerEvent.Seeked,h),n.on(n.exports.PlayerEvent.TimeShift,g),n.on(n.exports.PlayerEvent.TimeShifted,h);var v=function(e){return!!e.groupPlayback};this.onSeek.subscribe(function(e){a.isUserSeeking=!0,o.onSeek.dispatch(e),v(n)&&n.groupPlayback.hasJoined()&&!s&&(s=n.groupPlayback.beginSuspension(r.GroupPlaybackSuspensionReason.UserIsScrubbing)),!p&&(l=n.isPlaying())&&n.pause("ui-seek")}),this.onSeekPreview.subscribe(function(e,t){o.onSeekPreview.dispatch(e,t),c=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(a.isUserSeeking=!1,a.seek(t),o.onSeeked.dispatch(e),y(),v(n)&&n.groupPlayback.hasJoined()&&s){var i=a.getTargetSeekPosition(t);n.groupPlayback.endSuspension(s,{proposedPlaybackTime:i}),s=void 0}}),this.hasLabel()&&this.getLabel().configure(n,o);var m=!1,b=!1,C=function(e,t){e&&!t?a.hide():a.show(),d(null,!0),a.refreshPlaybackPosition()},P=new u.PlayerUtils.LiveStreamDetector(n,o);P.onLiveChanged.subscribe(function(e,t){(m=t.live)&&null!=a.smoothPlaybackPositionUpdater?(a.smoothPlaybackPositionUpdater.clear(),a.seekBarType=f.SeekBarType.Live):a.seekBarType=f.SeekBarType.Vod,C(m,b)});var S=new u.PlayerUtils.TimeShiftAvailabilityDetector(n);S.onTimeShiftAvailabilityChanged.subscribe(function(e,t){b=t.timeShiftAvailable,C(m,b)}),P.detect(),S.detect(),n.on(n.exports.PlayerEvent.PlayerResized,function(){a.refreshPlaybackPosition(),a.uiBoundingRect=a.uiManager.getUI().getDomElement().get(0).getBoundingClientRect()}),o.onConfigured.subscribe(function(){a.refreshPlaybackPosition()}),n.on(n.exports.PlayerEvent.SourceLoaded,function(){a.refreshPlaybackPosition()}),o.getConfig().events.onUpdated.subscribe(function(){d()}),"number"==typeof o.getConfig().seekbarSnappingRange&&(this.config.snappingRange=o.getConfig().seekbarSnappingRange),"boolean"==typeof o.getConfig().seekbarSnappingEnabled&&(this.config.snappingEnabled=o.getConfig().seekbarSnappingEnabled),d(),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()){o+=.05;try{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())},s=function(){n.smoothPlaybackPositionUpdater.clear()};e.on(e.exports.PlayerEvent.Play,r),e.on(e.exports.PlayerEvent.Playing,r),e.on(e.exports.PlayerEvent.Paused,s),e.on(e.exports.PlayerEvent.PlaybackFinished,s),e.on(e.exports.PlayerEvent.Seeked,function(){o=n.getRelativeCurrentTime()}),e.on(e.exports.PlayerEvent.SourceUnloaded,s),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;
1this.config.vertical&&this.config.cssClasses.push("vertical");var t=new a.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 a.DOM("div",{class:this.prefixCss("seekbar")});this.seekBar=n;var o=new a.DOM("div",{class:this.prefixCss("seekbar-bufferlevel")});this.seekBarBufferPosition=o;var i=new a.DOM("div",{class:this.prefixCss("seekbar-playbackposition")});this.seekBarPlaybackPosition=i;var r=new a.DOM("div",{class:this.prefixCss("seekbar-playbackposition-marker")});this.seekBarPlaybackPositionMarker=r;var s=new a.DOM("div",{class:this.prefixCss("seekbar-seekposition")});this.seekBarSeekPosition=s;var l=new a.DOM("div",{class:this.prefixCss("seekbar-backdrop")});this.seekBarBackdrop=l;var c=new a.DOM("div",{class:this.prefixCss("seekbar-markers")});this.seekBarMarkersContainer=c,n.append(this.seekBarBackdrop,this.seekBarBufferPosition,this.seekBarSeekPosition,this.seekBarPlaybackPosition,this.seekBarMarkersContainer,this.seekBarPlaybackPositionMarker);var u=!1,p=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)},f=function(t){t.preventDefault(),new a.DOM(document).off("touchmove mousemove",p),new a.DOM(document).off("touchend mouseup",f);var n,o=100*e.getOffset(t);if(e.config.snappingEnabled){var i=null==(n=e.timelineMarkersHandler)?void 0:n.getMarkerAtPosition(o);o=i?i.position:o}e.setSeeking(!1),u=!1,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),u=!0,e.onSeekEvent(),new a.DOM(document).on(n?"touchmove":"mousemove",p),new a.DOM(document).on(n?"touchend":"mouseup",f)}),n.on("touchmove mousemove",function(t){t.preventDefault(),u&&p(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){if(g.BrowserUtils.isTouchSupported&&this.isTouchEvent(e))if(this.config.vertical)return this.getVerticalOffset("touchend"===e.type?e.changedTouches[0].pageY:e.touches[0].pageY);else return this.getHorizontalOffset("touchend"===e.type?e.changedTouches[0].pageX:e.touches[0].pageX);return 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.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),this.seekBarEvents.onSeekPreview.dispatch(this,{scrubbing:n,position:i,marker:o})},t.prototype.onSeekedEvent=function(e){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}(s.Component)},14807:function(e,t,n){"use strict";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(86334),s=n(87720);t.BackgroundColorSelectBox=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,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta"));var i=function(){o.settingsManager.backgroundColor.isSet()&&o.settingsManager.backgroundOpacity.isSet()?o.toggleOverlayClass("bgcolor-"+o.settingsManager.backgroundColor.value+o.settingsManager.backgroundOpacity.value):o.toggleOverlayClass(null)};this.onItemSelected.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),i()}),this.settingsManager.backgroundOpacity.onChanged.subscribe(function(){i()}),this.settingsManager.backgroundColor.isSet()&&this.selectItem(this.settingsManager.backgroundColor.value)},t}(r.SubtitleSettingSelectBox)},15359:function(e,t,n){"use strict";var o,i,r,s=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 a=n(50071),l=n(36092),c=n(50272),u=n(87720);(o=r=t.PlaybackTimeLabelMode||(t.PlaybackTimeLabelMode={}))[o.CurrentTime=0]="CurrentTime",o[o.TotalTime=1]="TotalTime",o[o.CurrentAndTotalTime=2]="CurrentAndTotalTime",o[o.RemainingTime=3]="RemainingTime",t.PlaybackTimeLabel=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 s(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=!1,s=this.prefixCss("ui-playbacktimelabel-live"),a=this.prefixCss("ui-playbacktimelabel-live-edge"),p=0,f=function(){t.timeShift(0)},d=function(){(r=t.isLive())?(o.getDomElement().addClass(s),o.setText(u.i18n.getLocalizer("live")),i.hideInLivePlayback&&o.hide(),o.onClick.subscribe(f),g()):(o.getDomElement().removeClass(s),o.getDomElement().removeClass(a),o.show(),o.onClick.unsubscribe(f))},g=function(){if(r){var e=0>t.getTimeShift(),n=0>t.getMaxTimeShift();e||t.isPaused()&&n?o.getDomElement().removeClass(a):o.getDomElement().addClass(a)}},h=new l.PlayerUtils.LiveStreamDetector(t,n);h.onLiveChanged.subscribe(function(e,t){r=t.live,d()}),h.detect();var y=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"}))},v=function(){o.timeFormat=Math.abs(t.isLive()?t.getMaxTimeShift():t.getDuration())>=3600?c.StringUtils.FORMAT_HHMMSS:c.StringUtils.FORMAT_MMSS,y()};t.on(t.exports.PlayerEvent.TimeChanged,y),t.on(t.exports.PlayerEvent.Ready,v),t.on(t.exports.PlayerEvent.Seeked,y),t.on(t.exports.PlayerEvent.TimeShift,g),t.on(t.exports.PlayerEvent.TimeShifted,g),t.on(t.exports.PlayerEvent.Playing,g),t.on(t.exports.PlayerEvent.Paused,g),t.on(t.exports.PlayerEvent.StallStarted,g),t.on(t.exports.PlayerEvent.StallEnded,g);var m=function(){p=0,o.getDomElement().css({"min-width":null}),v()};
vendor: 5,065 bytes, line 1
1n.getConfig().events.onUpdated.subscribe(m),m()},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;case r.RemainingTime:this.setText("".concat(c.StringUtils.secondsToTime(t-e,this.timeFormat)))}},t.prototype.setTimeFormat=function(e){this.timeFormat=e},t}(a.Label)},19067:function(e,t,n){"use strict";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.ClickOverlay=t.VolumeControlButton=t.TitleBar=t.SubtitleSelectBox=t.SubtitleOverlay=t.SeekBarLabel=t.RecommendationOverlay=t.ErrorMessageOverlay=t.Component=t.CastToggleButton=t.CastStatusOverlay=t.AudioTrackSelectBox=t.AudioQualitySelectBox=t.Label=t.Container=t.UIContainer=t.Watermark=t.VRToggleButton=t.VolumeToggleButton=t.VideoQualitySelectBox=t.ToggleButton=t.SettingsToggleButton=t.SettingsPanel=t.ItemSelectionList=t.SelectBox=t.SeekBar=t.PlaybackToggleButton=t.PlaybackTimeLabelMode=t.PlaybackTimeLabel=t.HugePlaybackToggleButton=t.FullscreenToggleButton=t.ControlBar=t.Button=t.ListOrientation=t.ListNavigationGroup=t.RootNavigationGroup=t.NavigationGroup=t.SpatialNavigation=t.I18n=t.i18n=t.ErrorUtils=t.StorageUtils=t.BrowserUtils=t.UIUtils=t.PlayerUtils=t.StringUtils=t.ArrayUtils=t.DemoFactory=t.UIFactory=t.version=void 0,t.ListSelector=t.QuickSeekButton=t.ReplayButton=t.SettingsPanelItem=t.SubtitleSettingsPanelPage=t.SettingsPanelPageOpenButton=t.SettingsPanelPageBackButton=t.SettingsPanelPage=t.AudioTrackListBox=t.SubtitleListBox=t.ListBox=t.SubtitleSettingsResetButton=t.WindowOpacitySelectBox=t.WindowColorSelectBox=t.SubtitleSettingsLabel=t.SubtitleSettingSelectBox=t.FontSizeSelectBox=t.FontOpacitySelectBox=t.FontFamilySelectBox=t.FontColorSelectBox=t.CharacterEdgeSelectBox=t.BackgroundOpacitySelectBox=t.BackgroundColorSelectBox=t.Spacer=t.PictureInPictureToggleButton=t.VolumeSlider=t.AirPlayToggleButton=t.MetadataLabelContent=t.MetadataLabel=t.CloseButton=t.PlaybackToggleOverlay=t.CastUIContainer=t.BufferingOverlay=t.HugeReplayButton=t.PlaybackSpeedSelectBox=t.AdClickOverlay=t.AdMessageLabel=t.AdSkipButton=void 0,t.version="3.85.0",i(n(26967),t),i(n(61714),t);var r=n(73162);Object.defineProperty(t,"UIFactory",{enumerable:!0,get:function(){return r.UIFactory}});var s=n(2209);Object.defineProperty(t,"DemoFactory",{enumerable:!0,get:function(){return s.DemoFactory}});var a=n(54276);Object.defineProperty(t,"ArrayUtils",{enumerable:!0,get:function(){return a.ArrayUtils}});var l=n(50272);Object.defineProperty(t,"StringUtils",{enumerable:!0,get:function(){return l.StringUtils}});var c=n(36092);Object.defineProperty(t,"PlayerUtils",{enumerable:!0,get:function(){return c.PlayerUtils}});var u=n(9613);Object.defineProperty(t,"UIUtils",{enumerable:!0,get:function(){return u.UIUtils}});var p=n(73107);Object.defineProperty(t,"BrowserUtils",{enumerable:!0,get:function(){return p.BrowserUtils}});var f=n(91288);Object.defineProperty(t,"StorageUtils",{enumerable:!0,get:function(){return f.StorageUtils}});var d=n(10993);Object.defineProperty(t,"ErrorUtils",{enumerable:!0,get:function(){return d.ErrorUtils}});var g=n(87720);Object.defineProperty(t,"i18n",{enumerable:!0,get:function(){return g.i18n}}),Object.defineProperty(t,"I18n",{enumerable:!0,get:function(){return g.I18n}});var h=n(91809);Object.defineProperty(t,"SpatialNavigation",{enumerable:!0,get:function(){return h.SpatialNavigation}});var y=n(42230);Object.defineProperty(t,"NavigationGroup",{enumerable:!0,get:function(){return y.NavigationGroup}});var v=n(75594);Object.defineProperty(t,"RootNavigationGroup",{enumerable:!0,get:function(){return v.RootNavigationGroup}});var m=n(61758);Object.defineProperty(t,"ListNavigationGroup",{enumerable:!0,get:function(){return m.ListNavigationGroup}}),Object.defineProperty(t,"ListOrientation",{enumerable:!0,get:function(){return m.ListOrientation}});var b=n(49171);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return b.Button}});var C=n(93305);Object.defineProperty(t,"ControlBar",{enumerable:!0,get:function(){return C.ControlBar}});var P=n(70066);Object.defineProperty(t,"FullscreenToggleButton",{enumerable:!0,get:function(){return P.FullscreenToggleButton}});var S=n(30821);Object.defineProperty(t,"HugePlaybackToggleButton",{enumerable:!0,get:function(){return S.HugePlaybackToggleButton}});var w=n(15359);Object.defineProperty(t,"PlaybackTimeLabel",{enumerable:!0,get:function(){return w.PlaybackTimeLabel}}
1),Object.defineProperty(t,"PlaybackTimeLabelMode",{enumerable:!0,get:function(){return w.PlaybackTimeLabelMode}});var E=n(93246);Object.defineProperty(t,"PlaybackToggleButton",{enumerable:!0,get:function(){return E.PlaybackToggleButton}});var _=n(11552);Object.defineProperty(t,"SeekBar",{enumerable:!0,get:function(){return _.SeekBar}});var O=n(42212);Object.defineProperty(t,"SelectBox",{enumerable:!0,get:function(){return O.SelectBox}});var k=n(72458);Object.defineProperty(t,"ItemSelectionList",{enumerable:!0,get:function(){return k.ItemSelectionList}});var x=n(39816);Object.defineProperty(t,"SettingsPanel",{enumerable:!0,get:function(){return x.SettingsPanel}});var T=n(91346);Object.defineProperty(t,"SettingsToggleButton",{enumerable:!0,get:function(){return T.SettingsToggleButton}});var M=n(69491);Object.defineProperty(t,"ToggleButton",{enumerable:!0,get:function(){return M.ToggleButton}});var L=n(87236);Object.defineProperty(t,"VideoQualitySelectBox",{enumerable:!0,get:function(){return L.VideoQualitySelectBox}});var A=n(56109);Object.defineProperty(t,"VolumeToggleButton",{enumerable:!0,get:function(){return A.VolumeToggleButton}});var I=n(26527);Object.defineProperty(t,"VRToggleButton",{enumerable:!0,get:function(){return I.VRToggleButton}});var B=n(26963);Object.defineProperty(t,"Watermark",{enumerable:!0,get:function(){return B.Watermark}});var j=n(87448);Object.defineProperty(t,"UIContainer",{enumerable:!0,get:function(){return j.UIContainer}});var D=n(97258);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return D.Container}});var U=n(50071);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return U.Label}});var V=n(49465);Object.defineProperty(t,"AudioQualitySelectBox",{enumerable:!0,get:function(){return V.AudioQualitySelectBox}});var R=n(51531);Object.defineProperty(t,"AudioTrackSelectBox",{enumerable:!0,get:function(){return R.AudioTrackSelectBox}});var z=n(72746);Object.defineProperty(t,"CastStatusOverlay",{enumerable:!0,get:function(){return z.CastStatusOverlay}});var H=n(87456);Object.defineProperty(t,"CastToggleButton",{enumerable:!0,get:function(){return H.CastToggleButton}});var F=n(67650);Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return F.Component}});var N=n(48722);Object.defineProperty(t,"ErrorMessageOverlay",{enumerable:!0,get:function(){return N.ErrorMessageOverlay}});var W=n(86536);Object.defineProperty(t,"RecommendationOverlay",{enumerable:!0,get:function(){return W.RecommendationOverlay}});var G=n(47969);Object.defineProperty(t,"SeekBarLabel",{enumerable:!0,get:function(){return G.SeekBarLabel}});var K=n(7033);Object.defineProperty(t,"SubtitleOverlay",{enumerable:!0,get:function(){return K.SubtitleOverlay}});var q=n(57200);Object.defineProperty(t,"SubtitleSelectBox",{enumerable:!0,get:function(){return q.SubtitleSelectBox}});var Q=n(63344);Object.defineProperty(t,"TitleBar",{enumerable:!0,get:function(){return Q.TitleBar}});var Y=n(73406);Object.defineProperty(t,"VolumeControlButton",{enumerable:!0,get:function(){return Y.VolumeControlButton}});var X=n(79975);Object.defineProperty(t,"ClickOverlay",{enumerable:!0,get:function(){return X.ClickOverlay}});var J=n(55193);Object.defineProperty(t,"AdSkipButton",{enumerable:!0,get:function(){return J.AdSkipButton}});var Z=n(27185);Object.defineProperty(t,"AdMessageLabel",{enumerable:!0,get:function(){return Z.AdMessageLabel}});var $=n(26994);Object.defineProperty(t,"AdClickOverlay",{enumerable:!0,get:function(){return $.AdClickOverlay}});var ee=n(50306);Object.defineProperty(t,"PlaybackSpeedSelectBox",{enumerable:!0,get:function(){return ee.PlaybackSpeedSelectBox}});var et=n(91347);Object.defineProperty(t,"HugeReplayButton",{enumerable:!0,get:function(){return et.HugeReplayButton}});var en=n(85941);Object.defineProperty(t,"BufferingOverlay",{enumerable:!0,get:function(){return en.BufferingOverlay}});var eo=n(649);Object.defineProperty(t,"CastUIContainer",{enumerable:!0,get:function(){return eo.CastUIContainer}});var ei=n(40602);Object.defineProperty(t,"PlaybackToggleOverlay",{enumerable:!0,get:function(){return ei.PlaybackToggleOverlay}});var er=n(49005);Object.defineProperty(t,"CloseButton",{enumerable:!0,get:function(){return er.CloseButton}});var es=n(81360);Object.defineProperty(t,"MetadataLabel",{enumerable:!0,get:function(){return es.MetadataLabel}}),Object.defineProperty(t,"MetadataLabelContent",{enumerable:!0,get:function(){return es.MetadataLabelContent}});var ea=n(39491);Object.defineProperty(t,"AirPlayToggleButton",{enumerable:!0,get:function(){return ea.AirPlayToggleButton}});var el=n(96344);Object.defineProperty(t,"VolumeSlider",{enumerable:!0,get:function(){return el.VolumeSlider}});var ec=n(8458);Object.defineProperty(t,"PictureInPictureToggleButton",{enumerable:!0,get:function(){return ec.PictureInPictureToggleButton}});var eu=n(86151);Object.defineProperty(t,"Spacer",{enumerable:!0,get:function(){return eu.Spacer}});var ep=n(14807);
1Object.defineProperty(t,"BackgroundColorSelectBox",{enumerable:!0,get:function(){return ep.BackgroundColorSelectBox}});var ef=n(77065);Object.defineProperty(t,"BackgroundOpacitySelectBox",{enumerable:!0,get:function(){return ef.BackgroundOpacitySelectBox}});var ed=n(4432);Object.defineProperty(t,"CharacterEdgeSelectBox",{enumerable:!0,get:function(){return ed.CharacterEdgeSelectBox}});var eg=n(91926);Object.defineProperty(t,"FontColorSelectBox",{enumerable:!0,get:function(){return eg.FontColorSelectBox}});var eh=n(76948);Object.defineProperty(t,"FontFamilySelectBox",{enumerable:!0,get:function(){return eh.FontFamilySelectBox}});var ey=n(3952);Object.defineProperty(t,"FontOpacitySelectBox",{enumerable:!0,get:function(){return ey.FontOpacitySelectBox}});var ev=n(85372);Object.defineProperty(t,"FontSizeSelectBox",{enumerable:!0,get:function(){return ev.FontSizeSelectBox}});var em=n(86334);Object.defineProperty(t,"SubtitleSettingSelectBox",{enumerable:!0,get:function(){return em.SubtitleSettingSelectBox}});var eb=n(41720);Object.defineProperty(t,"SubtitleSettingsLabel",{enumerable:!0,get:function(){return eb.SubtitleSettingsLabel}});var eC=n(99255);Object.defineProperty(t,"WindowColorSelectBox",{enumerable:!0,get:function(){return eC.WindowColorSelectBox}});var eP=n(75817);Object.defineProperty(t,"WindowOpacitySelectBox",{enumerable:!0,get:function(){return eP.WindowOpacitySelectBox}});var eS=n(11505);Object.defineProperty(t,"SubtitleSettingsResetButton",{enumerable:!0,get:function(){return eS.SubtitleSettingsResetButton}});var ew=n(48776);Object.defineProperty(t,"ListBox",{enumerable:!0,get:function(){return ew.ListBox}});var eE=n(94532);Object.defineProperty(t,"SubtitleListBox",{enumerable:!0,get:function(){return eE.SubtitleListBox}});var e_=n(60219);Object.defineProperty(t,"AudioTrackListBox",{enumerable:!0,get:function(){return e_.AudioTrackListBox}});var eO=n(10639);Object.defineProperty(t,"SettingsPanelPage",{enumerable:!0,get:function(){return eO.SettingsPanelPage}});var ek=n(90908);Object.defineProperty(t,"SettingsPanelPageBackButton",{enumerable:!0,get:function(){return ek.SettingsPanelPageBackButton}});var ex=n(58839);Object.defineProperty(t,"SettingsPanelPageOpenButton",{enumerable:!0,get:function(){return ex.SettingsPanelPageOpenButton}});var eT=n(48879);Object.defineProperty(t,"SubtitleSettingsPanelPage",{enumerable:!0,get:function(){return eT.SubtitleSettingsPanelPage}});var eM=n(33375);Object.defineProperty(t,"SettingsPanelItem",{enumerable:!0,get:function(){return eM.SettingsPanelItem}});var eL=n(68524);Object.defineProperty(t,"ReplayButton",{enumerable:!0,get:function(){return eL.ReplayButton}});var eA=n(33386);Object.defineProperty(t,"QuickSeekButton",{enumerable:!0,get:function(){return eA.QuickSeekButton}});var eI=n(97274);Object.defineProperty(t,"ListSelector",{enumerable:!0,get:function(){return eI.ListSelector}}),"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})},23982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getKeyMapForPlatform=void 0;var o=n(30714),i=n(73107),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}},s={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}},a={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={38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,27:o.Action.BACK};t.getKeyMapForPlatform=function(){var e=[s,r,a,c,l].find(function(e){return e.isApplicable()});return e?e.keyCodes:u}},25571:()=>{},26527:function(e,t,n){"use strict";
1var 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(69491),s=n(87720);t.VRToggleButton=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:s.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},s=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())},a=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.VRStereoChanged,s),t.on(t.exports.PlayerEvent.Warning,s),t.on(t.exports.PlayerEvent.SourceUnloaded,a),n.getConfig().events.onUpdated.subscribe(a),this.onClick.subscribe(function(){r()?t.vr&&t.vr.getStereo()?t.vr.setStereo(!1):t.vr.setStereo(!0):console&&console.log("No VR content")}),a()},t}(r.ToggleButton)},26963:function(e,t,n){"use strict";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(79975),s=n(87720);t.Watermark=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:s.i18n.getLocalizer("watermarkLink")},n.config),n}return i(t,e),t}(r.ClickOverlay)},26967:function(e,t,n){"use strict";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)},s=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=void 0;var a=n(87448),l=n(4738),c=n(97258),u=n(2715),p=n(9613),f=n(54276),d=n(73107),g=n(27720),h=n(87720),y=n(64606),v=n(64582),m=n(65249),b=n(91288);t.UIManager=function(){function e(e,t,n){void 0===n&&(n={});var o=this;if(this.events={onUiVariantResolve:new u.EventDispatcher,onActiveUiChanged:new u.EventDispatcher},t instanceof a.UIContainer){var i=[];i.push({ui:t}),this.uiVariants=i}else this.uiVariants=t;this.subtitleSettingsManager=new m.SubtitleSettingsManager,this.player=e,this.managerPlayerWrapper=new S(e),n.metadata=n.metadata?n.metadata:{},this.config=r(r({playbackSpeedSelectionEnabled:!0,autoUiVariantResolve:!0,disableAutoHideWhenHovered:!1,enableSeekPreview:!0},n),{events:{onUpdated:new u.EventDispatcher},volumeController:new g.VolumeController(this.managerPlayerWrapper.getPlayer())});var s=function(){var t=e.getSource()||{};o.config.metadata=JSON.parse(JSON.stringify(n.metadata||{}));
1var 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=i.metadata.markers||n.metadata.markers||[],o.config.recommendations=i.recommendations||n.recommendations||[],b.StorageUtils.setStorageApiDisabled(n)};s(),this.subtitleSettingsManager.initialize();var c=function(){s(),o.config.events.onUpdated.dispatch(o)},p=this.managerPlayerWrapper.getPlayer();p.on(this.player.exports.PlayerEvent.SourceLoaded,c),(0,v.isMobileV3PlayerAPI)(p)&&p.on(v.MobileV3PlayerEvent.PlaylistTransition,c),n.container?this.uiContainerElement=(n.container instanceof HTMLElement,new l.DOM(n.container)):this.uiContainerElement=new l.DOM(e.getContainer()),this.uiInstanceManagers=[];for(var f=[],d=0,h=this.uiVariants;d<h.length;d++){var C=h[d];null==C.condition&&f.push(C),this.uiInstanceManagers.push(new P(e,C.ui,this.config,this.subtitleSettingsManager,C.spatialNavigation))}if(f.length>1)throw Error("Too many UIs without a condition: You cannot have more than one default UI");if(f.length>0&&f[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 w=null,E=function(t){if(null!=t)switch(t.type){case e.exports.PlayerEvent.AdStarted:w=t;break;case e.exports.PlayerEvent.AdBreakFinished:w=null,o.config.events.onUpdated.dispatch(o);break;case e.exports.PlayerEvent.SourceLoaded:case e.exports.PlayerEvent.SourceUnloaded:w=null}var n=null!=w,i=!1;if(n){var r=w.ad;r.isLinear&&(i=r.uiConfig&&r.uiConfig.requestsUi||!1)}i&&o.config.events.onUpdated.dispatch(o),o.resolveUiVariant({isAd:n,adRequiresUi:i},function(e){e.isAd&&o.currentUi.getWrappedPlayer().fireEventInUI(o.player.exports.PlayerEvent.AdStarted,w)})};this.config.autoUiVariantResolve&&(this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.SourceLoaded,E),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.SourceUnloaded,E),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Play,E),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Paused,E),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.AdStarted,E),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.AdBreakFinished,E),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.PlayerResized,E),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.ViewModeChanged,E)),this.focusVisibilityTracker=new y.FocusVisibilityTracker("bmpui"),E(null)}return e.localize=function(e){return h.i18n.getLocalizer(e)},e.setLocalizationConfig=function(e){h.i18n.setConfig(e)},e.prototype.getSubtitleSettingsManager=function(){return this.subtitleSettingsManager},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.currentUi,i=this.uiInstanceManagers[n];i!==this.currentUi&&(this.currentUi&&this.currentUi.getUI().hide(),this.currentUi=i,null!=this.currentUi&&(!this.currentUi.isConfigured()&&(this.addUi(this.currentUi),this.currentUi.getUI().isHidden()||this.currentUi.getUI().hide()),t&&t(),this.currentUi.getUI().show(),this.events.onActiveUiChanged.dispatch(this,{previousUi:o,currentUi:i})))},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:d.BrowserUtils.isMobile,isPlaying:this.player.isPlaying(),width:this.uiContainerElement.width(),documentWidth:document.body.clientWidth},o=r(r({},n),e);this.events.onUiVariantResolve.dispatch(this,o);for(var i=null,s=0,a=this.uiVariants;s<a.length;s++){var l=a[s],c=null==l.condition||!0===l.condition(o);null==i&&c?i=l:l.ui.hide()}this.switchToUiVariant(i,function(){t&&t(o)})},e.prototype.addUi=function(e){var t=e.getUI().getDomElement(),n=e.getWrappedPlayer();e.configureControls(),this.uiContainerElement.append(t),n.getSource()&&this.config.events.onUp
1dated.dispatch(this),window.requestAnimationFrame?requestAnimationFrame(function(){e.onConfigured.dispatch(e.getUI())}):setTimeout(function(){e.onConfigured.dispatch(e.getUI())},0)},e.prototype.releaseUi=function(e){e.releaseControls();var t=e.getUI();t.hasDomElement()&&t.getDomElement().remove(),e.clearEventHandlers()},e.prototype.release=function(){for(var e=0,t=this.uiInstanceManagers;e<t.length;e++){var n=t[e];this.releaseUi(n)}this.managerPlayerWrapper.clearEventHandlers(),this.focusVisibilityTracker.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}),e.prototype.getTimelineMarkers=function(){return this.config.metadata.markers},e.prototype.addTimelineMarker=function(e){this.config.metadata.markers.push(e),this.config.events.onUpdated.dispatch(this)},e.prototype.removeTimelineMarker=function(e){return f.ArrayUtils.remove(this.config.metadata.markers,e)===e&&(this.config.events.onUpdated.dispatch(this),!0)},e}();var C=function(){function e(e,t,n,o,i){this.events={onConfigured:new u.EventDispatcher,onSeek:new u.EventDispatcher,onSeekPreview:new u.EventDispatcher,onSeeked:new u.EventDispatcher,onComponentShow:new u.EventDispatcher,onComponentHide:new u.EventDispatcher,onComponentViewModeChanged:new u.EventDispatcher,onControlsShow:new u.EventDispatcher,onPreviewControlsHide:new u.EventDispatcher,onControlsHide:new u.EventDispatcher,onRelease:new u.EventDispatcher},this.playerWrapper=new S(e),this.ui=t,this.config=n,this.subtitleSettingsManager=o,this.spatialNavigation=i}return e.prototype.getSubtitleSettingsManager=function(){return this.subtitleSettingsManager},e.prototype.getConfig=function(){return this.config},e.prototype.getUI=function(){return this.ui},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,"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,"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=C;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(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=[];p.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)||e.release(),this.released=!0},t.prototype.isReleased=function(){return this.released},t.prototype.releaseControlsTree=function(e){if(e.release(),e instanceof c.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}(C),S=function(){function e(e){var t=this;this.eventHandlers={},this.player=e;for(var n=s(["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 l=o[a];"function"==typeof e[l]?i.push(l):r.push(l)}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 d=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]},g=0;g<r.length;g++)d(r[g]);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]&&f.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=S},26994:function(e,t,n){"use strict";
1var 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,t.AdClickOverlay=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(79975).ClickOverlay)},27185:function(e,t,n){"use strict";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(50071),s=n(50272),a=n(87720);t.AdMessageLabel=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-label-ad-message",text:a.i18n.getLocalizer("ads.remainingTime")},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=i.text,l=function(){o.setText(s.StringUtils.replaceAdMessagePlaceholders(a.i18n.performLocalization(r),null,t))},c=function(){t.off(t.exports.PlayerEvent.TimeChanged,l)};t.on(t.exports.PlayerEvent.AdStarted,function(e){var n=e.ad.uiConfig;r=n&&n.message||i.text,l(),t.on(t.exports.PlayerEvent.TimeChanged,l)}),t.on(t.exports.PlayerEvent.AdSkipped,c),t.on(t.exports.PlayerEvent.AdError,c),t.on(t.exports.PlayerEvent.AdFinished,c)},t}(r.Label)},27720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeTransition=t.VolumeController=void 0;var o=n(2715);t.VolumeController=function(){function e(e){var t=this;this.player=e,this.events={onChanged:new o.EventDispatcher},this.storeVolume();var n=function(){t.onChangedEvent()};e.on(e.exports.PlayerEvent.SourceLoaded,n),e.on(e.exports.PlayerEvent.VolumeChanged,n),e.on(e.exports.PlayerEvent.Muted,n),e.on(e.exports.PlayerEvent.Unmuted,n)}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(){this.storedVolume=this.getVolume()},e.prototype.recallVolume=function(){this.setMuted(0===this.storedVolume),this.setVolume(this.storedVolume)},e.prototype.startTransition=function(){return new i(this)},e.prototype.onChangedEvent=function(){var e=this.isMuted(),t=this.getVolume();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()},enumerable:!1,configurable:!0}),e.issuerName="ui-volumecontroller",e}();var i=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())},e}();t.VolumeTransition=i},30714:(e,t)=>
1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Action=t.Direction=void 0,function(e){e.UP="up",e.DOWN="down",e.LEFT="left",e.RIGHT="right"}(t.Direction||(t.Direction={})),function(e){e.SELECT="select",e.BACK="back"}(t.Action||(t.Action={}))},30821:function(e,t,n){"use strict";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.HugePlaybackToggleButton=void 0;var r=n(93246),s=n(4738),a=n(87720);t.HugePlaybackToggleButton=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)},s=!0,a=0,l=0;this.onClick.subscribe(function(){if(s){i(),o.config.enterFullscreenOnInitialPlayback&&t.setViewMode(t.exports.ViewMode.Fullscreen);return}var e=Date.now();if(e-a<200){r(),l=e;return}if(e-a<500){r(),i(),l=e;return}a=e,setTimeout(function(){Date.now()-l>200&&i()},200)}),t.on(t.exports.PlayerEvent.Play,function(){s=!1}),t.on(t.exports.PlayerEvent.Warning,function(e){e.code===t.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&(s=!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.toDomElement=function(){var t=e.prototype.toDomElement.call(this);return t.append(new s.DOM("div",{class:this.prefixCss("image")})),t},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)},31729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeEventSubscriber=void 0,t.NodeEventSubscriber=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],s=t[2];return i===e&&r===n&&s===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}()},32975:function(e,t,n){"use strict";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.CharacterEdgeColorSelectBox=void 0;var r=n(86334),s=n(87720);t.CharacterEdgeColorSelectBox=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,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta")),this.onItemSelected.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.settingsManager.characterEdgeColor.isSet()&&this.selectItem(this.settingsManager.characterEdgeColor.value)},t}(r.SubtitleSettingSelectBox)},33375:function(e,t,n){"use strict";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(97258),s=n(67650),a=n(2715),l=n(50071),c=n(42212),u=n(48776),p=n(87236),f=n(49465),d=n(50306);t.SettingsPanelItem=function(e){function t(t,n,o){void 0===o&&(o={});var i=e.call(this,o)||this;return i.settingsPanelItemEvents={onActiveChanged:new a.EventDispatcher},i.setting=n,i.config=i.mergeConfig(o,{cssClass:"ui-settings-panel-item",role:"menuitem"},i.config),null!==t&&(t instanceof s.Component?i.label=t:i.label=new l.Label({text:t,for:i.setting.getConfig().id}),i.addComponent(i.label)),i.addComponent(i.setting),i}return i(t,e),t.prototype.configure=function(e,t){var n=this;if(this.setting instanceof c.SelectBox||this.setting instanceof u.ListBox){var o=function(){if(n.setting instanceof c.SelectBox||n.setting instanceof u.ListBox){var e=2;(n.setting instanceof p.VideoQualitySelectBox&&n.setting.hasAutoItem()||n.setting instanceof f.AudioQualitySelectBox)&&(e=3),n.setting.itemCount()<e||n.setting instanceof d.PlaybackSpeedSelectBox&&!t.getConfig().playbackSpeedSelectionEnabled?n.hide():n.show(),n.onActiveChangedEvent(),n.getDomElement().attr("aria-haspopup","true")}};this.setting.onItemAdded.subscribe(o),this.setting.onItemRemoved.subscribe(o),o()}},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)},33386:function(e,t,n){"use strict";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.QuickSeekButton=void 0;var r=n(49171),s=n(87720),a=n(36092);t.QuickSeekButton=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||s.i18n.getLocalizer("quickseek.".concat(o)),n.config.ariaLabel=n.config.ariaLabel||s.i18n.getLocalizer("quickseek.".concat(o)),n.getDomElement().data(n.prefixCss("seek-direction"),o),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 s=function(e,t){e&&!t?r.hide():r.show()},l=new a.PlayerUtils.TimeShiftAvailabilityDetector(t);l.onTimeShiftAvailabilityChanged.subscribe(function(e,t){i=t.timeShiftAvailable,s(o,i)});var c=new a.PlayerUtils.LiveStreamDetector(t,n);c.onLiveChanged.subscribe(function(e,t){s(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=a.PlayerUtils.clampValueToRange(e,t.getMaxTimeShift(),0);t.timeShift(n)}else{var n=a.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(){this.player.off(this.player.exports.PlayerEvent.Seek,this.onSeek),this.player.off(this.player.exports.PlayerEvent.Seeked,this.onSeekedOrTimeShifted),this.player.off(this.player.exports.PlayerEvent.TimeShift,this.onTimeShift),this.player.off(this.player.exports.PlayerEvent.TimeShifted,this.onSeekedOrTimeShifted),this.currentSeekTarget=null,this.player=null},t}(r.Button)},36092:(e,t,n)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerUtils=void 0;var o=n(2715),i=n(73107);!function(e){(t=n=e.PlayerState||(e.PlayerState={}))[t.Idle=0]="Idle",t[t.Prepared=1]="Prepared",t[t.Playing=2]="Playing",t[t.Paused=3]="Paused",t[t.Finished=4]="Finished",e.isTimeShiftAvailable=function(e){return e.isLive()&&0!==e.getMaxTimeShift()},e.getState=function(e){return e.hasEnded()?n.Finished:e.isPlaying()?n.Playing:e.isPaused()?n.Paused:null!=e.getSource()?n.Prepared:n.Idle},e.getCurrentTimeRelativeToSeekableRange=function(t){var n=t.getCurrentTime();return t.isLive()?n:n-e.getSeekableRangeStart(t,0)},e.getSeekableRangeStart=function(e,t){return void 0===t&&(t=0),e.getSeekableRange()&&e.getSeekableRange().start||t},e.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}};var t,n,r=function(){function t(e){var t=this;this.timeShiftAvailabilityChangedEvent=new o.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 t.prototype.detect=function(){if(this.player.isLive()){var t=e.isTimeShiftAvailable(this.player);t!==this.timeShiftAvailable&&(this.timeShiftAvailabilityChangedEvent.dispatch(this.player,{timeShiftAvailable:t}),this.timeShiftAvailable=t)}},Object.defineProperty(t.prototype,"onTimeShiftAvailabilityChanged",{get:function(){return this.timeShiftAvailabilityChangedEvent.getEvent()},enumerable:!1,configurable:!0}),t}();e.TimeShiftAvailabilityDetector=r,e.LiveStreamDetector=function(){function e(e,t){var n=this;this.liveChangedEvent=new o.EventDispatcher,this.player=e,this.uimanager=t,this.live=void 0;var r=function(){n.detect()};this.uimanager.getConfig().events.onUpdated.subscribe(r),e.on(e.exports.PlayerEvent.Play,r),i.BrowserUtils.isAndroid&&i.BrowserUtils.isChrome&&e.on(e.exports.PlayerEvent.TimeChanged,r),e.exports.PlayerEvent.DurationChanged&&e.on(e.exports.PlayerEvent.DurationChanged,r),e.on(e.exports.PlayerEvent.AdBreakStarted,r),e.on(e.exports.PlayerEvent.AdBreakFinished,r)}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}(),e.clampValueToRange=function(e,t,n){return Math.min(Math.max(e,Math.min(t,n)),Math.max(t,n))}}(t.PlayerUtils||(t.PlayerUtils={}))},39491:function(e,t,n){"use strict";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(69491),s=n(87720);t.AirPlayToggleButton=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:s.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)return void this.hide();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)},39816:function(e,t,n){"use strict";var o,i,r,s=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)});
1Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanel=void 0;var a=n(97258),l=n(42212),c=n(84801),u=n(2715),p=n(10639);(o=r||(r={}))[o.Forwards=0]="Forwards",o[o.Backwards=1]="Backwards",t.SettingsPanel=function(e){function t(t){var n=e.call(this,t)||this;return n.navigationStack=[],n.settingsPanelEvents={onSettingsStateChanged:new u.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel",hideDelay:3e3,pageTransitionAnimation:!0},n.config),n.activePage=n.getRootPage(),n}return s(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",function(){o.hideTimeout.clear()}),this.getDomElement().on("mouseleave",function(){o.hideTimeout.reset()}),this.getDomElement().on("focusin",function(){o.hideTimeout.clear()}),this.getDomElement().on("focusout",function(){o.hideTimeout.reset()})),this.onHide.subscribe(function(){i.hideDelay>-1&&o.hideTimeout.clear(),o.activePage.onInactiveEvent()}),this.onShow.subscribe(function(){o.resetNavigation(!0),o.activePage.onActiveEvent(),i.hideDelay>-1&&o.hideTimeout.start()}),this.getRootPage().onSettingsStateChanged.subscribe(function(){o.onSettingsStateChangedEvent()}),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())return void console.warn("Page is already the current one ... skipping navigation");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)return void console.warn("Already on the root page ... skipping navigation");var e=this.navigationStack[this.navigationStack.length-2];e||(e=this.getRootPage()),this.navigateToPage(e,this.activePage,r.Backwards,!this.config.pageTransitionAnimation)},t.prototype.rootPageHasActiveSettings=function(){return this.getRootPage().hasActiveSettings()},t.prototype.getPages=function(){return this.config.components.filter(function(e){return e instanceof p.SettingsPanelPage})},Object.defineProperty(t.prototype,"onSettingsStateChanged",{get:function(){return this.settingsPanelEvents.onSettingsStateChanged.getEvent()},enumerable:!1,configurable:!0}),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),e.prototype.addComponent.call(this,t)},t.prototype.suspendHideTimeout=function(){this.hideTimeout.suspend()},t.prototype.resumeHideTimeout=function(){this.hideTimeout.resume(!0)},t.prototype.updateActivePageClass=function(){var e=this;
1this.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()},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(),e.onActiveEvent(),t.onInactiveEvent()},t.prototype.animateNavigation=function(e,t,n){if(this.config.pageTransitionAnimation){var o=this.getDomElement(),i=this.getDomElement().get(0),r=i.scrollWidth,s=i.scrollHeight;t.getDomElement().css("display","none"),this.getDomElement().css({width:"",height:""});var a=e.getDomElement().get(0),l=a.cloneNode(!0);a.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:s+"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.setting}).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.getRootPage=function(){return this.getPages()[0]},t.prototype.onSettingsStateChangedEvent=function(){this.settingsPanelEvents.onSettingsStateChanged.dispatch(this)},t.CLASS_ACTIVE_PAGE="active",t}(a.Container)},40602:function(e,t,n){"use strict";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(97258),s=n(30821);t.PlaybackToggleOverlay=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.playbackToggleButton=new s.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)},41720:function(e,t,n){"use strict";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.SubtitleSettingsLabel=void 0;var r=n(97258),s=n(4738),a=n(87720);t.SubtitleSettingsLabel=function(e){function t(t){var n=e.call(this,t)||this;return n.opener=t.opener,n.text=t.text,n.for=t.for,n.config=n.mergeConfig(t,{cssClass:"ui-label",components:[n.opener]},n.config),n}return i(t,e),t.prototype.toDomElement=function(){return new s.DOM("label",{id:this.config.id,class:this.getCssClasses(),for:this.for},this).append(new s.DOM("span",{}).html(a.i18n.performLocalization(this.text)),this.opener.getDomElement())},t}(r.Container)},42212:function(e,t,n){"use strict";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.SelectBox=void 0;var r=n(97274),s=n(4738),a=n(87720),l=n(36092),c=n(67650),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}]];t.SelectBox=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 s.DOM("select",{id:this.config.id,class:this.getCssClasses(),"aria-label":a.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)||o.onPlayerStateChange().subscribe(this.onPlayerStateChange)},t.prototype.getSelectElement=function(){var e,t;return null==(t=null==(e=this.selectElement)?void 0:e.get())?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 s.DOM("option",{value:String(o.key)}).html(a.i18n.performLocalization(o.label));o.key===String(e)&&i.attr("selected","selected"),this.selectElement.append(i)}}},t.prototype.onItemAddedEvent=function(t){e.prototype.onItemAddedEvent.call(this,t),this.updateDomItems(this.selectedItem)},t.prototype.onItemRemovedEvent=function(t){e.prototype.onItemRemovedEvent.call(this,t),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 document.addEventListener(t,e.onDropdownClosed,!0)}),p.forEach(function(t){return e.selectElement.on(t,e.onDropdownClosed,!0)}),this.removeDropdownCloseListeners=function(){u.forEach(function(t){return document.removeEventListener(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)},42230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationGroup=void 0;var o=n(62860),i=n(73327),r=n(31729),s=n(3627),a=n(30714);t.NavigationGroup=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 r.NodeEventSubscriber}return e.prototype.getActiveElement=function(){return this.activeElement}
1,e.prototype.focusElement=function(e){this.blurActiveElement(),this.activeElement=e,this.activeElement.focus()},e.prototype.blurActiveElement=function(){var e;null==(e=this.activeElement)||e.blur()},e.prototype.focusFirstElement=function(){var e=(0,i.getHtmlElementsFromComponents)(this.components)[0];e&&this.focusElement(e)},e.prototype.defaultNavigationHandler=function(e){var t=(0,o.getElementInDirection)(this.activeElement,(0,i.getHtmlElementsFromComponents)(this.components),e);t&&this.focusElement(t)},e.prototype.defaultActionHandler=function(e){switch(e){case a.Action.SELECT:this.activeElement.click();break;case a.Action.BACK:this.container.hide()}},e.prototype.handleInput=function(e,t,n){var o=!0;null==n||n(e,this.activeElement,function(){return o=!1}),o&&t.call(this,e)},e.prototype.handleNavigation=function(e){if(!this.activeElement)return void(this.activeElementBeforeDisable?this.focusElement(this.activeElementBeforeDisable):this.focusFirstElement());this.handleInput(e,this.defaultNavigationHandler,this.onNavigation)},e.prototype.handleAction=function(e){this.handleInput(e,this.defaultActionHandler,this.onAction)},e.prototype.disable=function(){this.activeElement&&(this.activeElementBeforeDisable=this.activeElement,this.blurActiveElement(),this.activeElement=void 0)},e.prototype.enable=function(){this.activeElementBeforeDisable&&!(0,s.isSettingsPanel)(this.container)?(this.focusElement(this.activeElementBeforeDisable),this.activeElementBeforeDisable=void 0):this.focusFirstElement(),this.trackElementHover()},e.prototype.trackElementHover=function(){var e=this;this.removeElementHoverEventListeners();var t=(0,i.getHtmlElementsFromComponents)(this.components).map(function(t){var n=e.focusElement.bind(e,t),o=function(){return e.disable()};return e.eventSubscriber.on(t,"mouseenter",n),e.eventSubscriber.on(t,"mouseleave",o),function(){e.eventSubscriber.off(t,"mouseenter",n),e.eventSubscriber.off(t,"mouseleave",o)}});this.removeElementHoverEventListeners=function(){return t.forEach(function(e){return e()})}},e.prototype.release=function(){this.eventSubscriber.release(),this.activeElement=void 0,this.components.splice(0,this.components.length),this.removeElementHoverEventListeners()},e}()},42559:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(93944),i=n(37876);let r=(0,o.A)([(0,i.jsx)("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"},"0"),(0,i.jsx)("circle",{cx:"12",cy:"16",r:"1"},"1"),(0,i.jsx)("path",{d:"M11 7h2v7h-2z"},"2")],"ReportGmailerrorredOutlined")},42880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMinBufferLevel=void 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}},44839:function(e,t,n){"use strict";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.EcoModeToggleButton=void 0;var r=n(69491),s=n(87720);t.EcoModeToggleButton=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,o={text:s.i18n.getLocalizer("ecoMode"),cssClass:"ui-ecomodetogglebutton",onClass:"on",offClass:"off",ariaLabel:s.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")}
1),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)},47969:function(e,t,n){"use strict";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(97258),s=n(50071),a=n(67650),l=n(50272),c=n(11144),u=n(36092);t.SeekBarLabel=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.appliedMarkerCssClasses=[],n.handleSeekPreview=function(e,t){if(n.player.isLive()){var o,i=n.player.getMaxTimeShift(),r=i-i*(t.position/100);n.setTime(r);var s=(o=n.player.getTimeShift(),n.player.getCurrentTime()-o+r);n.setThumbnail(n.player.getThumbnail(s))}else{var a=n.player.getDuration()*(t.position/100);n.setTime(a);var l=u.PlayerUtils.getSeekableRangeStart(n.player,0);n.setThumbnail(n.player.getThumbnail(a+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 s.Label({cssClasses:["seekbar-label-time"]}),n.titleLabel=new s.Label({cssClasses:["seekbar-label-title"]}),n.thumbnail=new a.Component({cssClasses:["seekbar-thumbnail"],role:"img"}),n.thumbnailImageLoader=new c.ImageLoader,n.container=new r.Container({components:[n.thumbnail,new r.Container({components:[n.titleLabel,n.timeLabel],cssClass:"seekbar-label-metadata"})],cssClass:"seekbar-label-inner"}),n.caret=new s.Label({cssClasses:["seekbar-label-caret"]}),n.config=n.mergeConfig(t,{cssClass:"ui-seekbar-label",components:[n.container,n.caret],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),this.player=t,this.uiManager=n,n.onSeekPreview.subscribeRateLimited(this.handleSeekPreview,100);var i=function(){o.timeFormat=Math.abs(t.isLive()?t.getMaxTimeShift():t.getDuration())>=3600?l.StringUtils.FORMAT_HHMMSS:l.StringUtils.FORMAT_MMSS,o.setTitleText(null),o.setThumbnail(null)};n.getConfig().events.onUpdated.subscribe(i),i()},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"),this.caret.getDomElement().css("transform","translateX(".concat(o,"px)"))):this.caret.getDomElement().css("transform",null)},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){void 0===e&&(e=""),this.titleLabel.setText(e)},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:null,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,s=e.y/e.height,a=1/e.width*e.height;return{display:"inherit","background-image":"url(".concat(e.url,")"),"padding-bottom":"".concat(100*a,"%"),"background-size":"".concat(100*o,"% ").concat(100*i,"%"),"background-position":"-".concat(100*r,"% -").concat(100*s,"%")}},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),this.uiManager.onSeekPreview.unsubscribe(this.handleSeekPreview)},t}(r.Container)},48722:function(e,t,n){"use strict";
1var 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(97258),s=n(50071),a=n(73281),l=n(10993),c=n(64582);t.ErrorMessageOverlay=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.errorLabel=new s.Label({cssClass:"ui-errormessage-label"}),n.tvNoiseBackground=new a.TvNoiseCanvas,n.config=n.mergeConfig(t,{cssClass:"ui-errormessage-overlay",components:[n.tvNoiseBackground,n.errorLabel],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);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 s=function(e){var t=l.ErrorUtils.defaultMobileV3ErrorMessageTranslator(e);r(e,t)};t.on(c.MobileV3PlayerEvent.PlayerError,s),t.on(c.MobileV3PlayerEvent.SourceError,s)}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.tvNoiseBackground.stop(),o.hide())})},t.prototype.display=function(e){this.errorLabel.setText(e),this.tvNoiseBackground.start(),this.show()},t.prototype.release=function(){e.prototype.release.call(this),this.tvNoiseBackground.stop()},t}(r.Container)},48776:function(e,t,n){"use strict";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(69491),s=n(97274),a=n(4738),l=n(54276);t.ListBox=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.components=[],n.removeListBoxDomItem=function(e,t){var o=n.getComponentForKey(t);o&&(o.getDomElement().remove(),l.ArrayUtils.remove(n.components,o))},n.addListBoxDomItem=function(e,t){var o=n.getComponentForKey(t),i=n.getItemForKey(t);if(o)o.setText(i.label);else{var r=n.buildListBoxItemButton(i);r.onClick.subscribe(function(){n.handleSelectionChange(r)}),n.components.push(r),n.listBoxElement.append(r.getDomElement())}},n.refreshSelectedItem=function(){for(var e=0,t=n.items;e<t.length;e++){var o=t[e],i=n.getComponentForKey(o.key);i&&(String(i.key)===String(n.selectedItem)?i.on():i.off())}},n.handleSelectionChange=function(e){n.onItemSelectedEvent(e.key)},n.config=n.mergeConfig(t,{cssClass:"ui-listbox"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){this.onItemAdded.subscribe(this.addListBoxDomItem),this.onItemRemoved.subscribe(this.removeListBoxDomItem),this.onItemSelected.subscribe(this.refreshSelectedItem),e.prototype.configure.call(this,t,n)},t.prototype.toDomElement=function(){var e=new a.DOM("div",{id:this.config.id,class:this.getCssClasses()},this);return this.listBoxElement=e,this.createListBoxDomItems(),this.refreshSelectedItem(),e},t.prototype.createListBoxDomItems=function(){this.listBoxElement.empty(),this.components=[];for(var e=0,t=this.items;e<t.length;e++){var n=t[e];this.addListBoxDomItem(this,n.key)}},t.prototype.buildListBoxItemButton=function(e){return new c({key:e.key,text:e.label,ariaLabel:e.ariaLabel})},t.prototype.getComponentForKey=function(e){return this.components.find(function(t){return e===t.key})},t}(s.ListSelector);var c=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-listbox-button",onClass:"selected",offClass:""},n.config),n}return i(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return this.config.key}
1,enumerable:!1,configurable:!0}),t}(r.ToggleButton)},48879:function(e,t,n){"use strict";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(10639),s=n(85372),a=n(384),l=n(76948),c=n(91926),u=n(3952),p=n(4432),f=n(32975),d=n(14807),g=n(77065),h=n(99255),y=n(75817),v=n(11505),m=n(90908),b=n(33375),C=n(87720);t.SubtitleSettingsPanelPage=function(e){function t(t){var n=e.call(this,t)||this;return n.overlay=t.overlay,n.settingsPanel=t.settingsPanel,n.config=n.mergeConfig(t,{components:[new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.font.size"),new s.FontSizeSelectBox({overlay:n.overlay})),new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.font.style"),new a.FontStyleSelectBox({overlay:n.overlay})),new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.font.family"),new l.FontFamilySelectBox({overlay:n.overlay})),new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.font.color"),new c.FontColorSelectBox({overlay:n.overlay})),new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.font.opacity"),new u.FontOpacitySelectBox({overlay:n.overlay})),new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.characterEdge"),new p.CharacterEdgeSelectBox({overlay:n.overlay})),new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.characterEdge.color"),new f.CharacterEdgeColorSelectBox({overlay:n.overlay})),new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.background.color"),new d.BackgroundColorSelectBox({overlay:n.overlay})),new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.background.opacity"),new g.BackgroundOpacitySelectBox({overlay:n.overlay})),new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.window.color"),new h.WindowColorSelectBox({overlay:n.overlay})),new b.SettingsPanelItem(C.i18n.getLocalizer("settings.subtitles.window.opacity"),new y.WindowOpacitySelectBox({overlay:n.overlay})),new b.SettingsPanelItem(new m.SettingsPanelPageBackButton({container:n.settingsPanel,text:C.i18n.getLocalizer("back")}),new v.SubtitleSettingsResetButton({}),{role:"menubar"})]},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()}),this.onInactive.subscribe(function(){o.overlay.removePreviewSubtitleLabel()})},t}(r.SettingsPanelPage)},49005:function(e,t,n){"use strict";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(49171),s=n(87720);t.CloseButton=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-closebutton",text:s.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)},49171:function(e,t,n){"use strict";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.Button=void 0;var r=n(67650),s=n(4738),a=n(2715),l=n(87720);t.Button=function(e){function t(t){var n=e.call(this,t)||this;return n.buttonEvents={onClick:new a.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-button",role:"button",tabIndex:0,acceptsTouchWithUiHidden:!1},n.config),n}return i(t,e),t.prototype.toDomElement=function(){var e=this,t={id:this.config.id,"aria-label":l.i18n.performLocalization(this.config.ariaLabel||this.config.text),class:this.getCssClasses(),type:"button","aria-pressed":"false",tabindex:this.config.tabIndex.toString()};null!=this.config.role&&(t.role=this.config.role);var n=new s.DOM("button",t,this).append(new s.DOM("span",{class:this.prefixCss("label")}).html(l.i18n.performLocalization(this.config.text)));return n.on("click",function(){e.onClickEvent()}),n},t.prototype.setText=function(e){this.getDomElement().find("."+this.prefixCss("label")).html(l.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}(r.Component)},49465:function(e,t,n){"use strict";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(42212),s=n(87720);t.AudioQualitySelectBox=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();o.clearItems(),o.addItem("auto",s.i18n.getLocalizer("auto"));for(var n=0;n<e.length;n++){var r=e[n];o.addItem(r.id,r.label)}i()};this.onItemSelected.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)},50071:function(e,t,n){"use strict";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.Label=void 0;var r=n(67650),s=n(4738),a=n(2715),l=n(87720);t.Label=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.labelEvents={onClick:new a.EventDispatcher,onTextChanged:new a.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-label"},n.config),n.text=n.config.text,n}return i(t,e),t.prototype.toDomElement=function(){var e=this,t=null!=this.config.for?"label":"span",n=new s.DOM(t,{id:this.config.id,for:this.config.for,class:this.getCssClasses()},this).html(l.i18n.performLocalization(this.text));return n.on("click",function(){e.onClickEvent()}),n},t.prototype.setText=function(e){if(e!==this.text){this.text=e;var t=l.i18n.performLocalization(e);this.getDomElement().html(t),this.onTextChangedEvent(t)}},t.prototype.getText=function(){return l.i18n.performLocalization(this.text)},t.prototype.clearText=function(){this.getDomElement().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()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTextChanged",{get:function(){return this.labelEvents.onTextChanged.getEvent()},enumerable:!1,configurable:!0}),t}(r.Component)},50272:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;var o=n(87720);!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),s=Math.floor(t/60)-60*r,a=Math.floor(t)%60;return(i?"-":"")+o.replace("hh",n(r,2)).replace("mm",n(s,2)).replace("ss",n(a,2))}function n(e,t){var n=e+"";return"0000000000".substr(0,t-n.length)+n}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 i=Math.floor(e/3600),r=Math.floor(e/60)-60*i,s=Math.floor(e)%60;return(t?"-":"")+(0!==i?"".concat(n(i,2)," ").concat(o.i18n.performLocalization(o.i18n.getLocalizer("settings.time.hours"))," "):"")+(0!==r?"".concat(n(r,2)," ").concat(o.i18n.performLocalization(o.i18n.getLocalizer("settings.time.minutes"))," "):"")+"".concat(n(s,2)," ").concat(o.i18n.performLocalization(o.i18n.getLocalizer("settings.time.seconds")))},e.replaceAdMessagePlaceholders=function(e,o,i){var r=RegExp("\\{(remainingTime|playedTime|adDuration|adBreakRemainingTime)(}|%((0[1-9]\\d*(\\.\\d+(d|f)|d|f)|\\.\\d+f|d|f)|hh:mm:ss|mm:ss)})","g");return e.replace(r,function(e){var r=0;if(e.indexOf("remainingTime")>-1)r=o?Math.ceil(o-i.getCurrentTime()):i.getDuration()-i.getCurrentTime();else if(e.indexOf("playedTime")>-1)r=i.getCurrentTime();else if(e.indexOf("adDuration")>-1)r=i.getDuration();else if(e.indexOf("adBreakRemainingTime")>-1&&(r=0,i.ads.isLinearAdActive())){var s=i.ads.getActiveAdBreak().ads.findIndex(function(e){return i.ads.getActiveAd().id===e.id});r=i.ads.getActiveAdBreak().ads.slice(s).reduce(function(e,t){return e+(t.isLinear?t.duration:0)},0)-i.getCurrentTime()}return function(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 s=null,a=o.match(/\.\d*(?=f)/);if(a&&!isNaN(parseInt(a[0].substring(1)))&&(s=parseInt(a[0].substring(1)))>20&&(s=20),o.indexOf("f")>-1){var l="";return(l=null!==s?e.toFixed(s):""+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)}(Math.round(r),e)})}}(t.StringUtils||(t.StringUtils={}))},50306:function(e,t,n){"use strict";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(42212),s=n(87720);t.PlaybackSpeedSelectBox=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.onItemSelected.subscribe(function(e,n){t.setPlaybackSpeed(parseFloat(n)),o.selectItem(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),s.i18n.getLocalizer("normal"))})},t.prototype.clearItems=function(){this.items=[],this.selectedItem=null},t}(r.SelectBox)},51531:function(e,t,n){"use strict";
1var 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(42212),s=n(66352);t.AudioTrackSelectBox=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 s.AudioTrackSwitchHandler(t,this,n)},t}(r.SelectBox)},53504:function(e,t,n){"use strict";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,t.SettingsPanelPageNavigatorButton=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{},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}(n(49171).Button)},54276:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0,(t.ArrayUtils||(t.ArrayUtils={})).remove=function(e,t){var n=e.indexOf(t);return n>-1?e.splice(n,1)[0]:null}},55193:function(e,t,n){"use strict";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.AdSkipButton=void 0;var r=n(49171),s=n(50272);t.AdSkipButton=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-button-ad-skip",untilSkippableMessage:"Skip ad in {remainingTime}",skippableMessage:"Skip ad",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=this.getConfig(),r=i.untilSkippableMessage,a=i.skippableMessage,l=-1,c=function(){o.show(),t.getCurrentTime()<l?(o.setText(s.StringUtils.replaceAdMessagePlaceholders(r,l,t)),o.disable()):(o.setText(a),o.enable())},u=function(){t.off(t.exports.PlayerEvent.TimeChanged,c)};t.on(t.exports.PlayerEvent.AdStarted,function(e){var n=e.ad;l=n.skippableAfter,r=n.uiConfig&&n.uiConfig.untilSkippableMessage||i.untilSkippableMessage,a=n.uiConfig&&n.uiConfig.skippableMessage||i.skippableMessage,"number"==typeof l&&l>=0?(c(),t.on(t.exports.PlayerEvent.TimeChanged,c)):o.hide()}),t.on(t.exports.PlayerEvent.AdSkipped,u),t.on(t.exports.PlayerEvent.AdError,u),t.on(t.exports.PlayerEvent.AdFinished,u),this.onClick.subscribe(function(){t.ads.skip()})},t}(r.Button)},56109:function(e,t,n){"use strict";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(69491),s=n(87720);t.VolumeToggleButton=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,o={cssClass:"ui-volumetogglebutton",text:s.i18n.getLocalizer("settings.audio.mute"),onClass:"muted",offClass:"unmuted",ariaLabel:s.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)},56826:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(93944),i=n(37876);let r=(0,o.A)((0,i.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},57200:function(e,t,n){"use strict";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.SubtitleSelectBox=void 0;var r=n(42212),s=n(10511),a=n(87720);t.SubtitleSelectBox=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitleselectbox"],ariaLabel:a.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}(r.SelectBox)},58839:function(e,t,n){"use strict";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(53504),s=n(87720);t.SettingsPanelPageOpenButton=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settingspanelpageopenbutton",text:s.i18n.getLocalizer("open"),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)},60219:function(e,t,n){"use strict";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.AudioTrackListBox=void 0;var r=n(48776),s=n(66352);t.AudioTrackListBox=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new s.AudioTrackSwitchHandler(t,this,n)},t}(r.ListBox)},61714:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0})},61758:function(e,t,n){"use strict";var o,i,r,s=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)}),a=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.ListNavigationGroup=t.ListOrientation=void 0;var l=n(42230),c=n(30714);(o=r=t.ListOrientation||(t.ListOrientation={})).Horizontal="horizontal",o.Vertical="vertical",t.ListNavigationGroup=function(e){function t(t,n){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var s=e.apply(this,a([n],o,!1))||this;switch(t){case r.Vertical:s.listNavigationDirections=[c.Direction.UP,c.Direction.DOWN];break;case r.Horizontal:s.listNavigationDirections=[c.Direction.LEFT,c.Direction.RIGHT]}return s}return s(t,e),t.prototype.handleAction=function(t){e.prototype.handleAction.call(this,t),t===c.Action.SELECT&&this.handleAction(c.Action.BACK)},t.prototype.handleNavigation=function(t){e.prototype.handleNavigation.call(this,t),this.listNavigationDirections.includes(t)||this.handleAction(c.Action.BACK)},t}(l.NavigationGroup)},62860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundingRectFromElement=t.getElementInDirection=void 0;var o=n(30714);function i(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function r(e){var t=s(e);return{x:t.x+t.width/2,y:t.y+t.height/2}}function s(e){var t=e.getBoundingClientRect();return"number"!=typeof t.x&&"number"!=typeof t.y&&(t.x=t.left,t.y=t.top),t}t.getElementInDirection=function(e,t,n){if(e){var s,a=r(e);return null==(s=t.filter(function(t){return t!==e}).map(function(e){var t,s,l,c,u=r(e),p=i({x:u.x-a.x,y:u.y-a.y});return{angle:(t={x:n===o.Direction.LEFT?-1:+(n===o.Direction.RIGHT),y:n===o.Direction.UP?-1:+(n===o.Direction.DOWN)},l=i(s={x:u.x-a.x,y:u.y-a.y}),180*Math.acos((c={x:s.x/l,y:s.y/l},(t.x*c.x+t.y*c.y)/(i(t)*i(c))))/Math.PI),dist:p,element:e}}).filter(function(e){return e.angle<=45}).sort(function(e,t){var n=e.angle,o=e.dist;return n-t.angle+(o-t.dist)}).shift())?void 0:s.element}},t.getBoundingRectFromElement=s},63344:function(e,t,n){"use strict";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(97258),s=n(81360);t.TitleBar=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,components:[new s.MetadataLabel({content:s.MetadataLabelContent.Title}),new s.MetadataLabel({content:s.MetadataLabelContent.Description})],keepHiddenWithoutMetadata:!1},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);for(var i=this.getConfig(),r=!this.isHidden(),a=!0,l=function(){a=!1;for(var e=0,t=o.getComponents();e<t.length;e++){var n=t[e];if(n instanceof s.MetadataLabel&&!n.isEmpty()){a=!0;break}}o.isShown()?i.keepHiddenWithoutMetadata&&!a&&o.hide():r&&o.show()},c=0,u=this.getComponents();c<u.length;c++){var p=u[c];p instanceof s.MetadataLabel&&p.onTextChanged.subscribe(l)}n.onControlsShow.subscribe(function(){r=!0,i.keepHiddenWithoutMetadata&&!a||o.show()}),n.onControlsHide.subscribe(function(){r=!1,o.hide()}),l()},t}(r.Container)},64582:(e,t)=>{"use strict";var n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.isMobileV3PlayerAPI=t.MobileV3PlayerEvent=void 0,function(e){e.SourceError="sourceerror",e.PlayerError="playererror",e.PlaylistTransition="playlisttransition"}(n=t.MobileV3PlayerEvent||(t.MobileV3PlayerEvent={})),t.isMobileV3PlayerAPI=function(e){for(var t in n)if(n.hasOwnProperty(t)&&!e.exports.PlayerEvent.hasOwnProperty(t))return!1;return!0}},64606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FocusVisibilityTracker=void 0;var n="bmpui-focus-visible";function o(e){return e instanceof HTMLElement&&e.classList instanceof DOMTokenList}t.FocusVisibilityTracker=function(){function e(e){var t=this;this.bitmovinUiPrefix=e,this.lastInteractionWasKeyboard=!0,this.onKeyDown=function(e){e.metaKey||e.altKey||e.ctrlKey||(t.lastInteractionWasKeyboard=!0)},this.onMouseOrPointerOrTouch=function(){return t.lastInteractionWasKeyboard=!1},this.onFocus=function(e){var i,r,s=e.target;t.lastInteractionWasKeyboard&&o(s)&&(i=s,r=t.bitmovinUiPrefix,0===i.id.indexOf(r))&&!s.classList.contains(n)&&s.classList.add(n)},this.onBlur=function(e){var t=e.target;o(t)&&t.classList.remove(n)},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)document.addEventListener(e,this.eventHandlerMap[e],!0)},e.prototype.unregisterEventListeners=function(){for(var e in this.eventHandlerMap)document.removeEventListener(e,this.eventHandlerMap[e],!0)},e.prototype.release=function(){this.unregisterEventListeners()},e}()},65249:function(e,t,n){"use strict";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.SubtitleSettingsProperty=t.SubtitleSettingsManager=void 0;var r=n(91288),s=n(67650),a=n(2715);t.SubtitleSettingsManager=function(){function e(){this._properties={fontColor:new c(this),fontOpacity:new c(this),fontFamily:new c(this),fontSize:new c(this),fontStyle:new c(this),characterEdge:new c(this),characterEdgeColor:new c(this),backgroundColor:new c(this),backgroundOpacity:new c(this),windowColor:new c(this),windowOpacity:new c(this)},this.userSettings={},this.localStorageKey=l.instance().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}
1,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(){r.StorageUtils.setObject(this.localStorageKey,this.userSettings)},e.prototype.load=function(){for(var e in this.userSettings=r.StorageUtils.getObject(this.localStorageKey)||{},this.userSettings)this._properties[e].value=this.userSettings[e]},e}();var l=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}(s.Component),c=function(){function e(e){this._manager=e,this._onChanged=new a.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=c},66352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackSwitchHandler=void 0;var o=n(87720);t.AudioTrackSwitchHandler=function(){function e(e,t,n){var i=this;this.addAudioTrack=function(e){var t=e.track;i.listElement.hasItem(t.id)||i.listElement.addItem(t.id,o.i18n.getLocalizer(t.label),!0)},this.removeAudioTrack=function(e){var t=e.track;i.listElement.hasItem(t.id)&&i.listElement.removeItem(t.id)},this.selectCurrentAudioTrack=function(){var e=i.player.getAudio();e&&i.listElement.selectItem(e.id)},this.refreshAudioTracks=function(){var e=i.player.getAvailableAudio();i.listElement.synchronizeItems(e.map(function(e){return{key:e.id,label:e.label}})),i.selectCurrentAudioTrack()},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.onItemSelected.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.onUpdated.subscribe(this.refreshAudioTracks)},e}()},67650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Component=t.ViewMode=void 0;var o,i=n(2971),r=n(4738),s=n(2715),a=n(87720);!function(e){e.Persistent="persistent",e.Temporary="temporary"}(o=t.ViewMode||(t.ViewMode={})),t.Component=function(){function e(e){void 0===e&&(e={}),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},this.config=this.mergeConfig(e,{tag:"div",id:"bmpui-id-"+i.Guid.next(),cssPrefix:"bmpui",cssClass:"ui-component",cssClasses:[],hidden:!1,disabled:!1},{}),this.viewMode=o.Temporary}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)})},e.prototype.release=function(){},e.prototype.toDomElement=function(){return new r.DOM(this.config.tag,{id:this.config.id,class:this.getCssClasse
vendor: 4,436 bytes, line 1
1s(),role:this.config.role},this)},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",a.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})},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}),e.CLASS_HIDDEN="hidden",e.CLASS_DISABLED="disabled",e}()},68524:function(e,t,n){"use strict";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(49171),s=n(87720),a=n(36092);t.ReplayButton=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:s.i18n.getLocalizer("replay"),ariaLabel:s.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 a.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)},69491:function(e,t,n){"use strict";
1var 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(49171),s=n(2715);t.ToggleButton=function(e){function t(t){var n=e.call(this,t)||this;return n.toggleButtonEvents={onToggle:new s.EventDispatcher,onToggleOn:new s.EventDispatcher,onToggleOff:new s.EventDispatcher},t.onAriaLabel&&(t.ariaLabel=t.onAriaLabel),n.config=n.mergeConfig(t,{cssClass:"ui-togglebutton",onClass:"on",offClass:"off"},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.getDomElement().addClass(this.prefixCss(o.offClass))},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.setAriaAttr("pressed","true"),this.config.onAriaLabel&&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.setAriaAttr("pressed","false"),this.config.offAriaLabel&&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()},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)},70066:function(e,t,n){"use strict";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(69491),s=n(87720);t.FullscreenToggleButton=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:s.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()},s=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.ViewModeChanged,r),t.exports.PlayerEvent.ViewModeAvailabilityChanged&&t.on(t.exports.PlayerEvent.ViewModeAvailabilityChanged,s),n.getConfig().events.onUpdated.subscribe(s),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)}),s(),r()},t}(r.ToggleButton)},71325:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.VttUtils=void 0,!function(e){e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right"}(n||(n={})),function(e){e.GrowingRight="lr",e.GrowingLeft="rl"}(o||(o={}));var n,o,i=new Map([[n.Top,n.Bottom],[n.Bottom,n.Top],[n.Left,n.Right],[n.Right,n.Left]]),r=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")},s=function(e,t,n,o){switch(t.lineAlign){case"center":p(e,n,o);break;case"end":f(e,n,o)}},a=function(e,t,n,o){var r=i.get(n);if("auto"===t.line&&t.vertical)return void e.css(r,"0");if("auto"!==t.line||t.vertical){var a=parseFloat(t.line);if(t.snapToLines){var l=Number(t.line);l<0&&(l=21+l),a=100*(o.height/21*l)/o.height}"end"!==t.lineAlign&&e.css(r,"".concat(a,"%")),s(e,t,n,a)}},l=function(e,t,i){switch(t.vertical){case"":e.css("writing-mode","horizontal-tb"),e.css(n.Bottom,"0"),a(e,t,n.Bottom,i);break;case o.GrowingRight:c(e,n.Right,t,i);break;case o.GrowingLeft:c(e,n.Left,t,i)}},c=function(e,t,o,i){var r=t===n.Right?"vertical-lr":"vertical-rl";e.css("writing-mode",r),e.css(n.Top,"0"),a(e,o,t,i)},u=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(i.get(n),"auto"),e.css("justify-content","flex-start");break;case"center":e.css(n,"".concat(t.position-t.size/2,"%")),e.css(i.get(n),"auto"),e.css("justify-content","center");break;case"line-right":e.css(n,"auto"),e.css(i.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")}},p=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%)")}},f=function(e,t,n){e.css(t,"".concat(100-n,"%"))};!function(e){e.setVttCueBoxStyles=function(e,t){var o=e.vtt,i=e.getDomElement();r(i,o),e.getText().split("<br />").length,l(i,o,t);var s="middle"===o.align?"center":o.align;i.css("text-align",s);var a=o.size;""===o.vertical?(i.css("width","".concat(a,"%")),u(i,o,n.Left)):(i.css("height","".concat(a,"%")),u(i,o,n.Top))},e.setVttRegionStyles=function(e,t,o){var i=e.getDomElement(),r=o.width*t.viewportAnchorX/100-o.width*t.width/100*t.regionAnchorX/100,s=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(s,"px")),i.css(n.Bottom,"unset"),i.css("height","".concat(28*t.lines,"px"))}}(t.VttUtils||(t.VttUtils={}))},72458:function(e,t,n){"use strict";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(97274),s=n(4738),a=n(87720);t.ItemSelectionList=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 s.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 s.DOM("li",{type:"li",class:c.prefixCss("ui-selectionlistitem")}).append(new s.DOM("a",{}).html(a.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.onItemAddedEvent=function(t){e.prototype.onItemAddedEvent.call(this,t),this.updateDomItems(this.selectedItem)},t.prototype.onItemRemovedEvent=function(t){e.prototype.onItemRemovedEvent.call(this,t),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)},72746:function(e,t,n){"use strict";
1var 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.CastStatusOverlay=void 0;var r=n(97258),s=n(50071),a=n(87720);t.CastStatusOverlay=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.statusLabel=new s.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(a.i18n.getLocalizer("connectingTo",{castDeviceName:t}))}),t.on(t.exports.PlayerEvent.CastStarted,function(e){o.show();var t=e.deviceName;o.statusLabel.setText(a.i18n.getLocalizer("playingOn",{castDeviceName:t}))}),t.on(t.exports.PlayerEvent.CastStopped,function(e){o.hide()})},t}(r.Container)},73107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserUtils=void 0,t.BrowserUtils=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,"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,"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}()},73162:function(e,t,n){"use strict";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)};Object.defineProperty(t,"__esModule",{value:!0}),t.UIFactory=void 0;var i=n(7033),r=n(10639),s=n(33375),a=n(87236),l=n(50306),c=n(51531),u=n(49465),p=n(39816),f=n(48879),d=n(58839),g=n(41720),h=n(57200),y=n(93305),v=n(97258),m=n(15359),b=n(11552),C=n(47969),P=n(93246),S=n(56109),w=n(96344),E=n(86151),_=n(8458),O=n(39491),k=n(87456),x=n(26527),T=n(91346),M=n(70066),L=n(87448),A=n(85941),I=n(40602),B=n(72746),j=n(63344),D=n(86536),U=n(26963),V=n(48722),R=n(26994),z=n(27185),H=n(55193),F=n(49005),N=n(81360),W=n(36092),G=n(50071),K=n(649),q=n(26967),Q=n(87720),Y=n(94532),X=n(60219),J=n(91809),Z=n(75594),$=n(61758),ee=n(91942);!function(e){function t(e){var t,n=new i.SubtitleOverlay,o=[new s.SettingsPanelItem(Q.i18n.getLocalizer("settings.video.quality"),new a.VideoQualitySelectBox),new s.SettingsPanelItem(Q.i18n.getLocalizer("speed"),new l.PlaybackSpeedSelectBox),new s.SettingsPanelItem(Q.i18n.getLocalizer("settings.audio.track"),new c.AudioTrackSelectBox),new s.SettingsPanelItem(Q.i18n.getLocalizer("settings.audio.quality"),new u.AudioQualitySelectBox)];if(e.ecoMode){var R=new ee.EcoModeContainer;R.setOnToggleCallback(function(){z.getDomElement().css({width:"",height:""})}),o.unshift(R)}t=new r.SettingsPanelPage({components:o});var z=new p.SettingsPanel({components:[t],hidden:!0}),H=new f.SubtitleSettingsPanelPage({settingsPanel:z,overlay:n}),F=new h.SubtitleSelectBox,N=new d.SettingsPanelPageOpenButton({targetPage:H,container:z,ariaLabel:Q.i18n.getLocalizer("settings.subtitles"),text:Q.i18n.getLocalizer("open")});t.addComponent(new s.SettingsPanelItem(new g.SubtitleSettingsLabel({text:Q.i18n.getLocalizer("settings.subtitles"),opener:N}),F,{role:"menubar"})),z.addComponent(H);var G=new y.ControlBar({components:[z,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,cssClasse
1s:["text-right"]})],cssClasses:["controlbar-top"]}),new v.Container({components:[new P.PlaybackToggleButton,new S.VolumeToggleButton,new w.VolumeSlider,new E.Spacer,new _.PictureInPictureToggleButton,new O.AirPlayToggleButton,new k.CastToggleButton,new x.VRToggleButton,new T.SettingsToggleButton({settingsPanel:z}),new M.FullscreenToggleButton],cssClasses:["controlbar-bottom"]})]});return new L.UIContainer({components:[n,new A.BufferingOverlay,new I.PlaybackToggleOverlay,new B.CastStatusOverlay,G,new j.TitleBar,new D.RecommendationOverlay,new U.Watermark,new V.ErrorMessageOverlay],hideDelay:2e3,hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})}function n(){return new L.UIContainer({components:[new A.BufferingOverlay,new R.AdClickOverlay,new I.PlaybackToggleOverlay,new v.Container({components:[new z.AdMessageLabel({text:Q.i18n.getLocalizer("ads.remainingTime")}),new H.AdSkipButton],cssClass:"ui-ads-status"}),new y.ControlBar({components:[new v.Container({components:[new P.PlaybackToggleButton,new S.VolumeToggleButton,new w.VolumeSlider,new E.Spacer,new M.FullscreenToggleButton],cssClasse
1s:["controlbar-bottom"]})]})],cssClasses:["ui-skin-ads"],hideDelay:2e3,hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})}function et(){var e=new i.SubtitleOverlay,t=new r.SettingsPanelPage({components:[new s.SettingsPanelItem(Q.i18n.getLocalizer("settings.video.quality"),new a.VideoQualitySelectBox),new s.SettingsPanelItem(Q.i18n.getLocalizer("speed"),new l.PlaybackSpeedSelectBox),new s.SettingsPanelItem(Q.i18n.getLocalizer("settings.audio.track"),new c.AudioTrackSelectBox),new s.SettingsPanelItem(Q.i18n.getLocalizer("settings.audio.quality"),new u.AudioQualitySelectBox)]}),n=new p.SettingsPanel({components:[t],hidden:!0,pageTransitionAnimation:!1,hideDelay:-1}),o=new f.SubtitleSettingsPanelPage({settingsPanel:n,overlay:e}),P=new d.SettingsPanelPageOpenButton({targetPage:o,container:n,ariaLabel:Q.i18n.getLocalizer("settings.subtitles"),text:Q.i18n.getLocalizer("open")}),w=new h.SubtitleSelectBox;t.addComponent(new s.SettingsPanelItem(new g.SubtitleSettingsLabel({text:Q.i18n.getLocalizer("settings.subtitles"),opener:P}),w,{role:"menubar"})),n.addComponent(o),n.addComponent(new F.CloseButton({target:n})),o.addComponent(new F.CloseButton({target:n}));var E=new y.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"]})]});return new L.UIContainer({components:[e,new A.BufferingOverlay,new B.CastStatusOverlay,new I.PlaybackToggleOverlay,new D.RecommendationOverlay,E,new j.TitleBar({components:[new N.MetadataLabel({content:N.MetadataLabelContent.Title}),new k.CastToggleButton,new x.VRToggleButton,new _.PictureInPictureToggleButton,new O.AirPlayToggleButton,new S.VolumeToggleButton,new T.SettingsToggleButton({settingsPanel:n}),new M.FullscreenToggleButton]}
1),n,new U.Watermark,new V.ErrorMessageOverlay],cssClasses:["ui-skin-smallscreen"],hideDelay:2e3,hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})}function en(){return new L.UIContainer({components:[new A.BufferingOverlay,new R.AdClickOverlay,new I.PlaybackToggleOverlay,new j.TitleBar({components:[new G.Label({cssClass:"label-metadata-title"}),new M.FullscreenToggleButton]}),new v.Container({components:[new z.AdMessageLabel({text:"Ad: {remainingTime} secs"}),new H.AdSkipButton],cssClass:"ui-ads-status"})],cssClasses:["ui-skin-ads","ui-skin-smallscreen"],hideDelay:2e3,hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})}function eo(){var e=new y.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 K.CastUIContainer({components:[new i.SubtitleOverlay,new A.BufferingOverlay,new I.PlaybackToggleOverlay,new U.Watermark,e,new j.TitleBar({keepHiddenWithoutMetadata:!0}
1),new V.ErrorMessageOverlay],cssClasses:["ui-skin-cast-receiver"],hideDelay:2e3,hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})}function ei(){var e=new Y.SubtitleListBox,t=new p.SettingsPanel({components:[new r.SettingsPanelPage({components:[new s.SettingsPanelItem(null,e)]})],hidden:!0}),n=new X.AudioTrackListBox,o=new p.SettingsPanel({components:[new r.SettingsPanelPage({components:[new s.SettingsPanelItem(null,n)]})],hidden:!0}),a=new b.SeekBar({label:new C.SeekBarLabel}),l=new I.PlaybackToggleOverlay,c=new T.SettingsToggleButton({settingsPanel:t,autoHideWhenNoActiveSettings:!0,cssClass:"ui-subtitlesettingstogglebutton",text:Q.i18n.getLocalizer("settings.subtitles")}),u=new T.SettingsToggleButton({settingsPanel:o,autoHideWhenNoActiveSettings:!0,cssClass:"ui-audiotracksettingstogglebutton",ariaLabel:Q.i18n.getLocalizer("settings.audio.track"),text:Q.i18n.getLocalizer("settings.audio.track")}),f=new L.UIContainer({components:[new i.SubtitleOverlay,new A.BufferingOverlay,l,new y.ControlBar({components:[new v.Container({components:[new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),a,new m.PlaybackTimeLabel({timeLabelMode:m.PlaybackTimeLabelMode.RemainingTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]})]}),new j.TitleBar({components:[new v.Container({components:[new N.MetadataLabel({content:N.MetadataLabelContent.Title}),c,u],cssClasses:["ui-titlebar-top"]}),new v.Container({components:[new N.MetadataLabel({content:N.MetadataLabelContent.Description}
1),t,o],cssClasses:["ui-titlebar-bottom"]})]}),new D.RecommendationOverlay,new V.ErrorMessageOverlay],cssClasses:["ui-skin-tv"],hideDelay:2e3,hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]}),d=new J.SpatialNavigation(new Z.RootNavigationGroup(f,l,a,u,c),new $.ListNavigationGroup($.ListOrientation.Vertical,t,e),new $.ListNavigationGroup($.ListOrientation.Vertical,o,n));return{ui:f,spatialNavigation:d}}e.buildDefaultUI=function(t,n){return void 0===n&&(n={}),e.buildModernUI(t,n)},e.buildDefaultSmallScreenUI=function(t,n){return void 0===n&&(n={}),e.buildModernSmallScreenUI(t,n)},e.buildDefaultCastReceiverUI=function(t,n){return void 0===n&&(n={}),e.buildModernCastReceiverUI(t,n)},e.buildDefaultTvUI=function(t,n){return void 0===n&&(n={}),e.buildModernTvUI(t,n)},e.modernUI=t,e.modernAdsUI=n,e.modernSmallScreenUI=et,e.modernSmallScreenAdsUI=en,e.modernCastReceiverUI=eo,e.buildModernUI=function(e,o){return void 0===o&&(o={}),new q.UIManager(e,[{ui:en(),condition:function(e){return e.isMobile&&e.documentWidth<600&&e.isAd&&e.adRequiresUi}},{ui:n(),condition:function(e){return e.isAd&&e.adRequiresUi}},{ui:et(),condition:function(e){return!e.isAd&&!e.adRequiresUi&&e.isMobile&&e.documentWidth<600}},{ui:t(o),condition:function(e){return!e.isAd&&!e.adRequiresUi}}],o)},e.buildModernSmallScreenUI=function(e,t){return void 0===t&&(t={}),new q.UIManager(e,[{ui:en(),condition:function(e){return e.isAd&&e.adRequiresUi}},{ui:et(),condition:function(e){return!e.isAd&&!e.adRequiresUi}}],t)},e.buildModernCastReceiverUI=function(e,t){return void 0===t&&(t={}),new q.UIManager(e,eo(),t)},e.buildModernTvUI=function(e,t){return void 0===t&&(t={}),new q.UIManager(e,[o({},ei())],t)},e.modernTvUI=ei}(t.UIFactory||(t.UIFactory={}))},73281:function(e,t,n){"use strict";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.TvNoiseCanvas=void 0;var r=n(67650),s=n(4738);t.TvNoiseCanvas=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 s.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())return void this.scheduleNextRender();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)},73327:(e,t,n)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.getHtmlElementsFromComponents=void 0;var o=n(97258),i=n(3627);t.getHtmlElementsFromComponents=function(e){var t=[];return e.filter(function(e){return!e.isHidden()}).forEach(function(e){(e instanceof o.Container?function e(t){var n=[];return t.getComponents().forEach(function(t){(0,i.isContainer)(t)?n.push.apply(n,e(t)):(0,i.isComponent)(t)&&n.push(t)}),n}(e):[e]).forEach(function(e){t.push.apply(t,(0,i.isListBox)(e)?[].slice.call(e.getDomElement().get()[0].children):e.getDomElement().get().slice(0,1))})}),t}},73406:function(e,t,n){"use strict";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(97258),s=n(96344),a=n(56109),l=n(84801);t.VolumeControlButton=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.volumeToggleButton=new a.VolumeToggleButton,n.volumeSlider=new s.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 s=!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(),s=!0}),r.getDomElement().on("mouseleave",function(){r.isSeeking()?o.volumeSliderHideTimeout.clear():o.volumeSliderHideTimeout.reset(),s=!1}),r.onSeeked.subscribe(function(){s||o.volumeSliderHideTimeout.reset()})},t.prototype.release=function(){e.prototype.release.call(this),this.volumeSliderHideTimeout.clear()},t.prototype.getVolumeToggleButton=function(){return this.volumeToggleButton},t.prototype.getVolumeSlider=function(){return this.volumeSlider},t}(r.Container)},74852:e=>{"use strict";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","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","settings.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.","settings":"Configuraci\xf3n","fullscreen":"Pantalla Completa","speed":"Velocidad","playPause":"Reproducir/Pausa","play":"Reproducir","pause":"Pausa","open":"Abrir","close"
1:"Cerrar","pictureInPicture":"Imagen en Imagen","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"off","auto":"auto","ecoMode":"ecoMode","ecoMode.title":"Eco Mode","back":"Atr\xe1s","reset":"Reiniciar","replay":"Rebobinar","normal":"normal","default":"predeterminado","live":"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","quickseek.rewind":"Rebobinar"}')},75594:function(e,t,n){"use strict";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 s=n(42230),a=n(30714);t.RootNavigationGroup=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){this.container.showUi(),e.prototype.handleAction.call(this,t)},t.prototype.handleNavigation=function(t){this.container.showUi(),e.prototype.handleNavigation.call(this,t)},t.prototype.defaultActionHandler=function(t){t===a.Action.BACK?this.container.hideUi():e.prototype.defaultActionHandler.call(this,t)},t.prototype.release=function(){e.prototype.release.call(this)},t}(s.NavigationGroup)},75817:function(e,t,n){"use strict";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(86334),s=n(87720);t.WindowOpacitySelectBox=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,s.i18n.getLocalizer("default")),this.addItem("100",s.i18n.getLocalizer("percent",{value:100})),this.addItem("75",s.i18n.getLocalizer("percent",{value:75})),this.addItem("50",s.i18n.getLocalizer("percent",{value:50})),this.addItem("25",s.i18n.getLocalizer("percent",{value:25})),this.addItem("0",s.i18n.getLocalizer("percent",{value:0})),this.onItemSelected.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.settingsManager.windowOpacity.isSet()&&this.selectItem(this.settingsManager.windowOpacity.value)},t}(r.SubtitleSettingSelectBox)},76948:function(e,t,n){"use strict";
1var 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.FontFamilySelectBox=void 0;var r=n(86334),s=n(87720);t.FontFamilySelectBox=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,s.i18n.getLocalizer("default")),this.addItem("monospacedserif",s.i18n.getLocalizer("settings.subtitles.font.family.monospacedserif")),this.addItem("proportionalserif",s.i18n.getLocalizer("settings.subtitles.font.family.proportionalserif")),this.addItem("monospacedsansserif",s.i18n.getLocalizer("settings.subtitles.font.family.monospacedsansserif")),this.addItem("proportionalsansserif",s.i18n.getLocalizer("settings.subtitles.font.family.proportionalsansserif")),this.addItem("casual",s.i18n.getLocalizer("settings.subtitles.font.family.casual")),this.addItem("cursive",s.i18n.getLocalizer("settings.subtitles.font.family.cursive")),this.addItem("smallcapital",s.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.onItemSelected.subscribe(function(e,t){o.settingsManager.fontFamily.value=t}),this.settingsManager.fontFamily.isSet()&&this.selectItem(this.settingsManager.fontFamily.value)},t}(r.SubtitleSettingSelectBox)},77065:function(e,t,n){"use strict";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.BackgroundOpacitySelectBox=void 0;var r=n(86334),s=n(87720);t.BackgroundOpacitySelectBox=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,s.i18n.getLocalizer("default")),this.addItem("100",s.i18n.getLocalizer("percent",{value:100})),this.addItem("75",s.i18n.getLocalizer("percent",{value:75})),this.addItem("50",s.i18n.getLocalizer("percent",{value:50})),this.addItem("25",s.i18n.getLocalizer("percent",{value:25})),this.addItem("0",s.i18n.getLocalizer("percent",{value:0})),this.onItemSelected.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.settingsManager.backgroundOpacity.isSet()&&this.selectItem(this.settingsManager.backgroundOpacity.value)},t}(r.SubtitleSettingSelectBox)},78048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GroupPlaybackSuspensionReason=void 0,(t.GroupPlaybackSuspensionReason||(t.GroupPlaybackSuspensionReason={})).UserIsScrubbing="userIsScrubbing"},79686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarHandler=void 0;var o=n(31729),i=n(30714),r=n(62860);function s(e){return Array.from(e.classList).findIndex(function(e){return/-ui-seekbar$/.test(e)})>-1}function a(e){return e.children.item(0)}t.SeekBarHandler=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){if(s(n)){if(e===i.Direction.UP||e===i.Direction.DOWN)return void t.stopSeeking(a(n));t.initializeOrUpdateCursorPosition(n,e),t.dispatchMouseMoveEvent(a(n)),o()}},this.onAction=function(e,n,o){if(s(n)){var r=a(n);e===i.Action.SELECT&&t.isScrubbing?(t.dispatchMouseClickEvent(r),o()):e===i.Action.BACK&&(t.stopSeeking(r),o())}},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.getBoundingClientRect().width*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){this.cursorPosition.x+=this.getIncrement(e,t)},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}()},79975:function(e,t,n){"use strict";
1var 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,t.ClickOverlay=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(49171).Button)},81360:function(e,t,n){"use strict";var o,i,r,s=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 a=n(50071);(o=r=t.MetadataLabelContent||(t.MetadataLabelContent={}))[o.Title=0]="Title",o[o.Description=1]="Description",t.MetadataLabel=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 s(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),s=n.getConfig(),a=function(){switch(i.content){case r.Title:o.setText(s.metadata.title);break;case r.Description:o.setText(s.metadata.description)}};a(),t.on(t.exports.PlayerEvent.SourceUnloaded,function(){o.setText(null)}),n.getConfig().events.onUpdated.subscribe(a)},t}(a.Label)},84095:e=>{"use strict";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","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.","settings":"Settings","fullscreen":"Fullscreen","speed":"Speed","playPause":"Play/Pause","play":"Play","pause":"Pause","open":"open","close"
1:"Close","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"off","auto":"auto","ecoMode":"ecoMode","ecoMode.title":"Eco Mode","back":"Back","reset":"Reset","replay":"Replay","normal":"normal","default":"default","live":"Live","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","quickseek.rewind":"Rewind"}')},84801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timeout=void 0,t.Timeout=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}()},85372:function(e,t,n){"use strict";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.FontSizeSelectBox=void 0;var r=n(86334),s=n(87720);t.FontSizeSelectBox=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.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("50",s.i18n.getLocalizer("percent",{value:50})),this.addItem("75",s.i18n.getLocalizer("percent",{value:75})),this.addItem("100",s.i18n.getLocalizer("percent",{value:100})),this.addItem("150",s.i18n.getLocalizer("percent",{value:150})),this.addItem("200",s.i18n.getLocalizer("percent",{value:200})),this.addItem("300",s.i18n.getLocalizer("percent",{value:300})),this.addItem("400",s.i18n.getLocalizer("percent",{value:400})),this.settingsManager.fontSize.onChanged.subscribe(function(e,t){t.isSet()?o.toggleOverlayClass("fontsize-"+t.value):o.toggleOverlayClass(null),o.selectItem(t.value)}),this.onItemSelected.subscribe(function(e,t){o.settingsManager.fontSize.value=t}),this.settingsManager.fontSize.isSet()&&this.selectItem(this.settingsManager.fontSize.value)},t}(r.SubtitleSettingSelectBox)},85941:function(e,t,n){"use strict";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(97258),s=n(67650),a=n(84801);
1t.BufferingOverlay=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.indicators=[new s.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"}),new s.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"}),new s.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 a.Timeout(i.showDelayMs,function(){o.show()}),s=function(){r.start()},l=function(){r.clear(),o.hide()};t.on(t.exports.PlayerEvent.StallStarted,s),t.on(t.exports.PlayerEvent.StallEnded,l),t.on(t.exports.PlayerEvent.Play,s),t.on(t.exports.PlayerEvent.Playing,l),t.on(t.exports.PlayerEvent.Paused,l),t.on(t.exports.PlayerEvent.Seek,s),t.on(t.exports.PlayerEvent.Seeked,l),t.on(t.exports.PlayerEvent.TimeShift,s),t.on(t.exports.PlayerEvent.TimeShifted,l),t.on(t.exports.PlayerEvent.SourceUnloaded,l),t.isStalled()&&this.show()},t}(r.Container)},86151:function(e,t,n){"use strict";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,t.Spacer=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(67650).Component)},86334:function(e,t,n){"use strict";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,t.SubtitleSettingSelectBox=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(42212).SelectBox)},86536:function(e,t,n){"use strict";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(97258),s=n(67650),a=n(4738),l=n(50272),c=n(91347);t.RecommendationOverlay=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.replayButton=new c.HugeReplayButton,n.config=n.mergeConfig(t,{cssClass:"ui-recommendation-overlay",hidden:!0,components:[n.replayButton]},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(){for(var e=0,t=o.getComponents().slice();e<t.length;e++){var n=t[e];n instanceof u&&o.removeComponent(n)}o.updateComponents(),o.getDomElement().removeClass(o.prefixCss("recommendations"))},r=function(){i();var e=n.getConfig().recommendations;if(e.length>0){for(var t=1,r=0;r<e.length;r++){var s=e[r];
1o.addComponent(new u({itemConfig:s,cssClasses:["recommendation-item-"+t++]}))}o.updateComponents(),o.getDomElement().addClass(o.prefixCss("recommendations"))}};n.getConfig().events.onUpdated.subscribe(r),t.on(t.exports.PlayerEvent.SourceUnloaded,function(){i(),o.hide()}),t.on(t.exports.PlayerEvent.PlaybackFinished,function(){o.show()}),t.on(t.exports.PlayerEvent.Play,function(){o.hide()}),r()},t}(r.Container);var u=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-recommendation-item",itemConfig:null},n.config),n}return i(t,e),t.prototype.toDomElement=function(){var e=this.config.itemConfig,t=new a.DOM("a",{id:this.config.id,class:this.getCssClasses(),href:e.url},this).css({"background-image":"url(".concat(e.thumbnail,")")}),n=new a.DOM("div",{class:this.prefixCss("background")});t.append(n);var o=new a.DOM("span",{class:this.prefixCss("title")}).append(new a.DOM("span",{class:this.prefixCss("innertitle")}).html(e.title));t.append(o);var i=new a.DOM("span",{class:this.prefixCss("duration")}).append(new a.DOM("span",{class:this.prefixCss("innerduration")}).html(e.duration?l.StringUtils.secondsToTime(e.duration):""));return t.append(i),t},t}(s.Component)},87236:function(e,t,n){"use strict";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.VideoQualitySelectBox=void 0;var r=n(42212),s=n(87720);t.VideoQualitySelectBox=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",s.i18n.getLocalizer("auto"));for(var n=0;n<e.length;n++){var r=e[n];o.addItem(r.id,r.label)}i()};this.onItemSelected.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)},87448:function(e,t,n){"use strict";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(97258),s=n(4738),a=n(84801),l=n(36092),c=n(2715),u=n(87720),p=n(49171);t.UIContainer=function(e){function t(t){var n=e.call(this,t)||this;return n.hideUi=function(){},n.showUi=function(){},n.config=n.mergeConfig(t,{cssClass:"ui-uicontainer",role:"region",ariaLabel:u.i18n.getLocalizer("player"),hideDelay:5e3,hideImmediatelyOnMouseLeave:!1},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 s.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();if(-1===r.hideDelay)return void n.onConfigured.subscribe(function(){return n.onControlsShow.dispatch(i)});var s=!1,l=!1,c=!0;this.hidingPrevented=function(){return r.hidePlayerStateExceptions&&r.hidePlayerStateExceptions.indexOf(o)>-1},this.showUi=function(){s||(n.onControlsShow.dispatch(i),s=!0),l||e.isCasting()||i.hidingPrevented()||i.uiHideTimeout.start()},this.hideUi=function(){if(s&&!e.isCasting()){var t={};
1n.onPreviewControlsHide.dispatch(i,t),t.cancel?i.showUi():(n.onControlsHide.dispatch(i),s=!1)}},this.uiHideTimeout=new a.Timeout(r.hideDelay,this.hideUi),this.userInteractionEvents=[{name:"touchend",handler:function(n){if(!s){if(c&&!e.isPlaying())c=!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:o(e.parentElement)})(n.target))&&r.getConfig().acceptsTouchWithUiHidden||n.preventDefault()}i.showUi()}}},{name:"mouseenter",handler:function(){i.showUi()}},{name:"mousemove",handler:function(){i.showUi()}},{name:"focusin",handler:function(){i.showUi()}},{name:"keydown",handler:function(){i.showUi()}},{name:"mouseleave",handler:function(){l||i.hidingPrevented()||(i.config.hideImmediatelyOnMouseLeave?i.hideUi():i.uiHideTimeout.start())}}],this.userInteractionEvents.forEach(function(e){return i.userInteractionEventSource.on(e.name,e.handler)}),n.onSeek.subscribe(function(){i.uiHideTimeout.clear(),l=!0}),n.onSeeked.subscribe(function(){l=!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 a in l.PlayerUtils.PlayerState)if(isNaN(Number(a))){var c=l.PlayerUtils.PlayerState[l.PlayerUtils.PlayerState[a]];r[l.PlayerUtils.PlayerState[a]]=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 s.DOM(e.getContainer()).width(),new s.DOM(e.getContainer()).height())},t.prototype.release=function(){var t=this;
1this.userInteractionEvents&&this.userInteractionEvents.forEach(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)},87456:function(e,t,n){"use strict";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(69491),s=n(87720);t.CastToggleButton=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:s.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)},87479:e=>{"use strict";e.exports=JSON.parse('{"settings.video.quality":"Videoqualit\xe4t","settings.audio.quality":"Audioqualit\xe4t","settings.audio.track":"Audiospur","speed":"Geschwindigkeit","play":"Abspielen","pause":"Pause","playPause":"Abspielen/Pause","open":"\xf6ffnen","close":"Schlie\xdfen","settings.audio.mute":"Stummschaltung","settings.audio.volume":"Lautst\xe4rke","pictureInPicture":"Bild im Bild","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","settings":"Einstellungen","fullscreen":"Vollbild","off":"aus","settings.subtitles":"Untertitel","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.font.family":"Schriftart","settings.subtitles.font.color":"Farbe","settings.subtitles.font.opacity":"Deckkraft","settings.subtitles.characterEdge":"R\xe4nder","settings.subtitles.characterEdge.color":"Buchstabenrandfarbe","settings.subtitles.background.color":"Hintergrundfarbe","settings.subtitles.background.opacity":"Hintergrunddeckkraft","settings.subtitles.window.color":"Hintergrundfarbe","settings.subtitles.window.opacity":"Hintergrunddeckkraft","settings.time.hours":"Stunden","settings.time.minutes":"Minuten","settings.time.seconds":"Sekunden","back":"Zur\xfcck","reset":"Zur\xfccksetzen","replay":"Wiederholen","ads.remainingTime":"Diese Anzeige endet in {remainingTime} Sekunden","default":"standard","colors.white":"wei\xdf","colors.black":"schwarz","colors.red":"rot","colors.green":"gr\xfcn","colors.blue":"blau","colors.yellow":"gelb","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":"Vor","quickseek.rewind":"Zur\xfcck","ecoMode":"ec
1oMode","ecoMode.title":"Eco Mode"}')},87720:function(e,t,n){"use strict";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)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.i18n=t.I18n=t.defaultVocabularies=void 0;var r=i(n(87479)),s=i(n(84095)),a=i(n(74852)),l=i(n(92170));t.defaultVocabularies={en:s.default,de:r.default,es:a.default,nl:l.default};var c={language:"en",vocabularies:t.defaultVocabularies},u=function(){function e(e){this.setConfig(e)}return e.prototype.setConfig=function(e){var t=o(o({},c),e),n="auto"===t.language,i=this.mergeVocabulariesWithDefaultVocabularies(t.vocabularies);this.initializeLanguage(t.language,n,i),this.initializeVocabulary(i)},e.containsLanguage=function(e,t){return e.hasOwnProperty(t)},e.prototype.mergeVocabulariesWithDefaultVocabularies=function(n){void 0===n&&(n={});var i=o(o({},t.defaultVocabularies),n);return Object.keys(i).reduce(function(r,s){var a,l=i[s];return e.containsLanguage(t.defaultVocabularies,s)&&e.containsLanguage(n,s)&&(l=o(o({},t.defaultVocabularies[s]),n[s])),o(o({},r),((a={})[s]=l,a))},{})},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=u,t.i18n=new u(c)},90908:function(e,t,n){"use strict";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,t.SettingsPanelPageBackButton=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settingspanelpagebackbutton",text:"back"},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}(n(53504).SettingsPanelPageNavigatorButton)},91288:(e,t)=>{"use strict";Object.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}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.setObject=function(e,t){o(e,JSON.stringify(t))},e.getObject=function(e){var t=i(e);return t?JSON.parse(t):null}}
1(t.StorageUtils||(t.StorageUtils={}))},91346:function(e,t,n){"use strict";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(69491),s=n(39816),a=n(54276),l=n(87720);t.SettingsToggleButton=function(e){function t(t){var n=e.call(this,t)||this;if(n.visibleSettingsPanels=[],!t.settingsPanel)throw Error("Required SettingsPanel is missing");return n.config=n.mergeConfig(t,{cssClass:"ui-settingstogglebutton",text:l.i18n.getLocalizer("settings"),settingsPanel:null,autoHideWhenNoActiveSettings:!0,role:"pop-up button"},n.config),n.getDomElement().attr("aria-owns",t.settingsPanel.getActivePage().getConfig().id),n.getDomElement().attr("aria-haspopup","true"),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=i.settingsPanel;if(this.onClick.subscribe(function(){r.isShown()||o.visibleSettingsPanels.slice().forEach(function(e){return e.hide()}),r.toggleHidden()}),r.onShow.subscribe(function(){o.on()}),r.onHide.subscribe(function(){o.off()}),n.onComponentShow.subscribe(function(e){e instanceof s.SettingsPanel&&(o.visibleSettingsPanels.push(e),e.onHide.subscribeOnce(function(){return a.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)},91347:function(e,t,n){"use strict";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(49171),s=n(4738),a=n(87720);t.HugeReplayButton=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.prototype.toDomElement=function(){var t=e.prototype.toDomElement.call(this);return t.append(new s.DOM("div",{class:this.prefixCss("image")})),t},t}(r.Button)},91809:function(e,t,n){"use strict";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(31729),r=n(79686),s=n(23982),a=n(3627);t.SpatialNavigation=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,a.isDirection)(t)&&(n.handleNavigation(t),e.preventDefault(),e.stopPropagation()),(0,a.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,s.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()}))?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}()},91926:function(e,t,n){"use strict";
1var 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(86334),s=n(87720);t.FontColorSelectBox=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,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta"));var i=function(){o.settingsManager.fontColor.isSet()&&o.settingsManager.fontOpacity.isSet()?o.toggleOverlayClass("fontcolor-"+o.settingsManager.fontColor.value+o.settingsManager.fontOpacity.value):o.toggleOverlayClass(null)};this.onItemSelected.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),i()}),this.settingsManager.fontOpacity.onChanged.subscribe(function(){i()}),this.settingsManager.fontColor.isSet()&&this.selectItem(this.settingsManager.fontColor.value)},t}(r.SubtitleSettingSelectBox)},91942:function(e,t,n){"use strict";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(87720),s=n(97258),a=n(44839),l=n(50071),c=n(33375);t.EcoModeContainer=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.savedEmissons=0;var o=new a.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 c.SettingsPanelItem(i,o),n.ecoModeSavedEmissionsItem=new c.SettingsPanelItem("Saved Emissions",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,s=o.bitrate,a=o.frameRate,l=t.getMaxQualityAvailable(e.getAvailableVideoQualities()),c=l.height,u=l.bitrate,p=l.width,f=t.calculateEnergyConsumption(a,i,r,s,n.duration),d=t.calculateEnergyConsumption(a,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}(s.Container)},92170:e=>{"use strict";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","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.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.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.","settings":"Instellingen","fullscreen":"Volledig scherm","speed":"Snelheid","playPause":"Afspelen/Pauzeren","play":"Afspelen","pause":"Pauzeren","open":"Openen","close"
1:"Sluiten","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"uit","auto":"automatisch","ecoMode":"Eco-modus","ecoMode.title":"Eco-modus","back":"Terug","reset":"Reset","replay":"Opnieuw afspelen","normal":"normaal","default":"standaard","live":"Live","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":"Vooruitspoelen","quickseek.rewind":"Terugspoelen"}')},93246:function(e,t,n){"use strict";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(69491),s=n(36092),a=n(87720);t.PlaybackToggleButton=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:a.i18n.getLocalizer("play"),onAriaLabel:a.i18n.getLocalizer("pause"),offAriaLabel:a.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 a=!1,l=!0,c=function(){a||(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()&&!s.PlayerUtils.isTimeShiftAvailable(n)?r.getDomElement().addClass(r.prefixCss(t.CLASS_STOPTOGGLE)):r.getDomElement().removeClass(r.prefixCss(t.CLASS_STOPTOGGLE))},p=new s.PlayerUtils.TimeShiftAvailabilityDetector(n),f=new s.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(){a=!0}),o.onSeeked.subscribe(function(){a=!1}),c()},t.CLASS_STOPTOGGLE="stoptoggle",t}(r.ToggleButton)},93305:function(e,t,n){"use strict";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.ControlBar=void 0;var r=n(97258),s=n(9613),a=n(86151),l=n(87720),c=n(73107),u=n(39816);t.ControlBar=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&&s.UIUtils.traverseTree(this,function(e){e instanceof r.Container||e instanceof a.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()}
1),n.onPreviewControlsHide.subscribe(function(e,t){t.cancel=t.cancel||i>0||l}),n.onControlsHide.subscribe(function(){o.hide()})},t}(r.Container)},93964:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(93944),i=n(37876);let r=(0,o.A)((0,i.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline")},94532:function(e,t,n){"use strict";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.SubtitleListBox=void 0;var r=n(48776),s=n(10511);t.SubtitleListBox=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new s.SubtitleSwitchHandler(t,this,n)},t}(r.ListBox)},96344:function(e,t,n){"use strict";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(11552),s=n(87720);t.VolumeSlider=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,ariaLabel:s.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(s.i18n.performLocalization(s.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.hideIfVolumeControlProhibited&&!this.detectVolumeControlAvailability())return void this.hide();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)},97258:function(e,t,n){"use strict";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.Container=void 0;var r=n(67650),s=n(4738),a=n(54276),l=n(87720);t.Container=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.componentsToAdd=[],n.componentsToRemove=[],n.componentsInPersistentViewMode=0,n}return i(t,e),t.prototype.addComponent=function(e){this.config.components.push(e),this.componentsToAdd.push(e)},t.prototype.removeComponent=function(e){return null!=a.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.componentsToAdd.shift());)this.innerContainerElement.append(e.getDomElement())},t.prototype.toDomElement=function(){var e=new s.DOM(this.config.tag,{id:this.config.id,class:this.getCssClasses(),role:this.config.role,"aria-label":l.i18n.performLocalization(this.config.ariaLabel)},this),t=new s.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.componentsToAdd.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)},97274:function(e,t,n){"use strict";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 s=n(67650),a=n(2715),l=n(54276),c=n(87720);t.ListSelector=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.listSelectorEvents={onItemAdded:new a.EventDispatcher,onItemRemoved:new a.EventDispatcher,onItemSelected:new a.EventDispatcher},n.config=n.mergeConfig(t,{items:[],cssClass:"ui-listselector"},n.config),n.items=n.config.items,n}return i(t,e),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.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=r({key:e,label:c.i18n.performLocalization(t)},o&&{ariaLabel:o});if(!this.config.filter||this.config.filter(i)){if(this.config.translator&&(i.label=this.config.translator(i)),this.removeItem(e),n){var s=this.items.findIndex(function(t){return t.key>e});s<0?this.items.push(i):this.items.splice(s,0,i)}else this.items.push(i);this.onItemAddedEvent(e)}},t.prototype.removeItem=function(e){var t=this.getItemIndex(e);return t>-1&&(l.ArrayUtils.remove(this.items,this.items[t]),this.onItemRemovedEvent(e),!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;e.filter(function(e){return!t.hasItem(e.key)}
1).forEach(function(e){return t.addItem(e.key,e.label,e.sortedInsert,e.ariaLabel)}),this.items.filter(function(t){return 0===e.filter(function(e){return e.key===t.key}).length}).forEach(function(e){return t.removeItem(e.key)})},t.prototype.clearItems=function(){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)}},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.onItemSelectedEvent=function(e){this.listSelectorEvents.onItemSelected.dispatch(this,e)},Object.defineProperty(t.prototype,"onItemAdded",{get:function(){return this.listSelectorEvents.onItemAdded.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemRemoved",{get:function(){return this.listSelectorEvents.onItemRemoved.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemSelected",{get:function(){return this.listSelectorEvents.onItemSelected.getEvent()},enumerable:!1,configurable:!0}),t}(s.Component)},98360:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarController=t.SeekBarType=void 0;var o,i=n(9613);!function(e){e[e.Vod=0]="Vod",e[e.Live=1]="Live",e[e.Volume=2]="Volume"}(o=t.SeekBarType||(t.SeekBarType={}));var r=function(e,t,n){n(e<t.min?t.min:e>t.max?t.max:e)};t.SeekBarController=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 r(i-o.keyStepIncrements.leftRight,t,n)},right:function(){return r(i+o.keyStepIncrements.leftRight,t,n)},up:function(){return r(i+o.keyStepIncrements.upDown,t,n)},down:function(){return r(i-o.keyStepIncrements.upDown,t,n)},home:function(){return r(t.min,t,n)},end:function(){return r(t.max,t,n)}}},e.prototype.seekBarControls=function(e){if(e===o.Live)return this.arrowKeyControls(this.player.getTimeShift(),{min:this.player.getMaxTimeShift(),max:0},this.player.timeShift);if(e===o.Vod)return this.arrowKeyControls(this.player.getCurrentTime(),{min:0,max:this.player.getDuration()},this.player.seek);if(e===o.Volume&&null!=this.volumeController){var t=this.volumeController.startTransition();return this.arrowKeyControls(this.player.getVolume(),{min:0,max:100},t.finish.bind(t))}},e.prototype.setSeekBarControls=function(e,t){var n=this;e.on("keydown",function(e){var o=n.seekBarControls(t());switch(e.keyCode){case i.UIUtils.KeyCode.LeftArrow:o.left(),e.preventDefault();break;case i.UIUtils.KeyCode.RightArrow:o.right(),e.preventDefault();break;case i.UIUtils.KeyCode.UpArrow:o.up(),e.preventDefault();break;case i.UIUtils.KeyCode.DownArrow:o.down(),e.preventDefault();break;case i.UIUtils.KeyCode.Home:o.home(),e.preventDefault();break;case i.UIUtils.KeyCode.End:o.end(),e.preventDefault();break;case i.UIUtils.KeyCode.Space:n.player.isPlaying()?n.player.pause():n.player.play(),e.preventDefault()}})},e}()},99255:function(e,t,n){"use strict";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(86334),s=n(87720);t.WindowColorSelectBox=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,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta"));var i=function(){o.settingsManager.windowColor.isSet()&&o.settingsManager.windowOpacity.isSet()?o.toggleOverlayClass("windowcolor-"+o.settingsManager.windowColor.value+o.settingsManager.windowOpacity.value):o.toggleOverlayClass(null)};this.onItemSelected.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),i()}),this.settingsManager.windowOpacity.onChanged.subscribe(function(){i()}),this.settingsManager.windowColor.isSet()&&this.selectItem(this.settingsManager.windowColor.value)},t}(r.SubtitleSettingSelectBox)}}]);

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.