From c321f6321e1dfacca87348fd2a7a1c252543e948 Mon Sep 17 00:00:00 2001 From: Filipinos Date: Fri, 27 Jun 2025 11:02:59 +0200 Subject: [PATCH] fix editor, update libs shaka-player --- editor_handler.js | 28 +- libs/controls.css | 28 +- libs/shaka-player.compiled.js | 2916 +++++++++++++-------------- libs/shaka-player.ui.js | 3459 +++++++++++++++++---------------- 4 files changed, 3216 insertions(+), 3215 deletions(-) diff --git a/editor_handler.js b/editor_handler.js index e91b309..8e32dbd 100644 --- a/editor_handler.js +++ b/editor_handler.js @@ -434,6 +434,9 @@ const editorHandler = (() => { forceFallback: true, ghostClass: 'sortable-ghost', fallbackClass: 'sortable-fallback', + scroll: true, + scrollSensitivity: 100, + scrollSpeed: 15, onStart: () => { document.body.classList.add('editor-is-dragging'); }, @@ -446,22 +449,31 @@ const editorHandler = (() => { if (item.classList.contains('group-header-row')) { const [movedGroup] = groupOrder.splice(oldIndex, 1); groupOrder.splice(newIndex, 0, movedGroup); + renderTable(); // Re-render for group order changes } else if (item.classList.contains('channel-row') && currentGroupFilter !== '') { - const allVisibleIdsInOrder = Array.from(dom.tableBody.querySelectorAll('.channel-row')).map(row => row.dataset.editorId); + const movedItemId = item.dataset.editorId; + const fromIndex = editorChannels.findIndex(ch => ch.editorId === movedItemId); + const [movedItem] = editorChannels.splice(fromIndex, 1); - const channelsInCurrentGroup = editorChannels.filter(ch => (ch['group-title'] || '') === currentGroupFilter); - const channelsInOtherGroups = editorChannels.filter(ch => (ch['group-title'] || '') !== currentGroupFilter); + const allVisibleIdsInOrder = Array.from(dom.tableBody.querySelectorAll('.channel-row')).map(row => row.dataset.editorId); + const toVisibleIndex = allVisibleIdsInOrder.indexOf(movedItemId); - const channelMap = new Map(channelsInCurrentGroup.map(ch => [ch.editorId, ch])); + let targetIndexInFullArray = -1; + if (toVisibleIndex === 0) { + const firstVisibleChannelId = allVisibleIdsInOrder[1]; + targetIndexInFullArray = editorChannels.findIndex(ch => ch.editorId === firstVisibleChannelId); + } else { + const previousVisibleChannelId = allVisibleIdsInOrder[toVisibleIndex -1]; + targetIndexInFullArray = editorChannels.findIndex(ch => ch.editorId === previousVisibleChannelId) + 1; + } - const reorderedGroup = allVisibleIdsInOrder.map(id => channelMap.get(id)); - - editorChannels = [...channelsInOtherGroups, ...reorderedGroup]; + editorChannels.splice(targetIndexInFullArray, 0, movedItem); + + // No re-render, just move the element in DOM which Sortable does automatically } currentSort.column = null; - renderTable(); } }); } diff --git a/libs/controls.css b/libs/controls.css index 9202501..4c1da1d 100644 --- a/libs/controls.css +++ b/libs/controls.css @@ -3,31 +3,7 @@ * Copyright 2016 Google LLC * SPDX-License-Identifier: Apache-2.0 */ -.shaka-hidden{display:none!important}.shaka-video-container{position:relative;top:0;left:0;display:flex}.shaka-video-container .material-icons-round{font-family:"Material Icons Round";font-size:24px}.shaka-video-container *{font-family:Roboto-Regular,Roboto,sans-serif,TengwarTelcontar;-webkit-font-smoothing:antialiased}.shaka-video-container:fullscreen{width:100%;height:100%;background-color:#000}.shaka-video-container:fullscreen .shaka-text-container{font-size:4.4vmin}.shaka-video-container:-webkit-full-screen{width:100%;height:100%;background-color:#000}.shaka-video-container:-webkit-full-screen .shaka-text-container{font-size:4.4vmin}.shaka-video-container:-moz-full-screen{width:100%;height:100%;background-color:#000}.shaka-video-container:-moz-full-screen .shaka-text-container{font-size:4.4vmin}.shaka-video-container:-ms-fullscreen{width:100%;height:100%;background-color:#000}.shaka-video-container:-ms-fullscreen .shaka-text-container{font-size:4.4vmin}.shaka-controls-container{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:0;width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;z-index:1}.shaka-video-container:not([shaka-controls=true]) .shaka-controls-container{display:none}.shaka-controls-container *{flex-shrink:0}.shaka-controls-container[casting=true] .shaka-fullscreen-button{display:none}.shaka-canvas-container{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:0;width:100%;height:100%;pointer-events:none}.shaka-bottom-controls{width:96%;padding:0;padding-bottom:2.5%;z-index:1}.shaka-controls-button-panel{padding:0;margin:0;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;overflow:hidden;min-width:48px;font-size:12px;font-weight:400;font-style:normal;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s}.shaka-controls-container[casting=true] .shaka-controls-button-panel,.shaka-controls-container[shown=true] .shaka-controls-button-panel{opacity:1}.shaka-controls-button-panel>*{color:#fff;height:32px;line-height:.5;margin:1px;padding:0 5px;background:0 0;border:0;cursor:pointer}.shaka-controls-button-panel .shaka-overflow-menu-only{display:none}.shaka-play-button-container{margin:0;width:100%;height:100%;flex-shrink:1;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.shaka-statistics-container{overflow-x:hidden;overflow-y:auto;min-width:300px;color:#fff;background-color:rgba(35 35 35 / 90%);font-size:14px;padding:5px 10px;border-radius:2px;position:absolute;z-index:2;left:15px;top:15px;opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s}.shaka-controls-container[casting=true] .shaka-statistics-container,.shaka-controls-container[shown=true] .shaka-statistics-container{opacity:1}.shaka-statistics-container div{display:flex;justify-content:space-between}.shaka-statistics-container span{color:#969696}.shaka-context-menu{background-color:rgba(35 35 35 / 90%);border-radius:2px;position:absolute;z-index:3}.shaka-context-menu button{padding:5px 10px;width:100%;display:flex;align-items:center;color:#fff;background:0 0;border:0;cursor:pointer}.shaka-context-menu button:hover{background-color:rgba(50 50 50 / 90%)}.shaka-context-menu label{padding:0 20px;align-items:flex-start;color:#fff;cursor:pointer}.shaka-context-menu .shaka-current-selection-span{align-items:flex-start;color:#fff;cursor:pointer}.shaka-scrim-container{margin:0;width:100%;height:100%;flex-shrink:1;position:absolute;left:0;right:0;top:0;bottom:0;opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s;background:linear-gradient(to top,#000 0,transparent 15%)}.shaka-controls-container[casting=true] .shaka-scrim-container,.shaka-controls-container[shown=true] .shaka-scrim-container{opacity:1}.shaka-text-container{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none;bottom:0;width:100%;min-width:48px;transition:bottom cubic-bezier(.4, 0, .6, 1) .1s;transition-delay:0.5s;font-size:20px;line-height:1.4;color:#fff}.shaka-text-container span.shaka-text-wrapper{display:inline;background:0 0}.shaka-controls-container[shown=true]~.shaka-text-container{bottom:15%;transition-delay:0s}.shaka-spinner-container{position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;flex-shrink:1;display:flex;justify-content:center;align-items:center}.shaka-video-container:not([shaka-controls=true]) .shaka-spinner-container{display:none}.shaka-spinner{position:relative;top:0;left:0;margin:0;box-sizing:border-box;padding:calc(15.6% / 2);width:0;height:0;filter:drop-shadow(0 0 2px rgba(255 255 255 / 50%))}.shaka-hidden-fast-forward-container,.shaka-hidden-rewind-container{height:100%;width:40%;flex-shrink:1}.shaka-hidden-fast-forward-container{position:absolute;left:0;right:0;top:0;bottom:0;left:60%}.shaka-hidden-rewind-container{position:absolute;left:0;right:0;top:0;bottom:0}.shaka-play-button{box-sizing:border-box;padding:calc(15% / 2);width:0;height:0;margin:0;border-radius:50%;box-shadow:rgba(0 0 0 / 10%) 0 0 20px 0;border:none;background-size:50%;background-repeat:no-repeat;background-position:center center;background-color:rgba(255 255 255 / 90%);opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s}.shaka-controls-container[casting=true] .shaka-play-button,.shaka-controls-container[shown=true] .shaka-play-button{opacity:1}.shaka-play-button[icon=play]{background-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22%23000000%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M8%205v14l11-7z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%0A%3C%2Fsvg%3E")}.shaka-play-button[icon=pause]{background-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22%23000000%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M6%2019h4V5H6v14zm8-14v14h4V5h-4z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%0A%3C%2Fsvg%3E")}.shaka-current-time{font-size:14px;color:#fff;cursor:pointer}.shaka-current-time[disabled]{background-color:transparent;color:#fff;cursor:default}.shaka-controls-container button:focus,.shaka-controls-container input:focus{outline:1px solid Highlight}.shaka-controls-container button:-moz-focus-inner,.shaka-controls-container input:-moz-focus-outer{outline:0;border:0}.shaka-controls-container:not(.shaka-keyboard-navigation) button:focus,.shaka-controls-container:not(.shaka-keyboard-navigation) input:focus{outline:0}.shaka-fast-foward-container,.shaka-rewind-container{height:100%;width:100%;flex-shrink:1;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center;margin:0;border:none;color:#fff;background-color:rgba(0,0,0,.5);cursor:default;font-size:20px;opacity:0;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.shaka-fast-foward-container{border-radius:40% 0 0 40%}.shaka-rewind-container{border-radius:0 40% 40% 0}.shaka-forward-rewind-container-icon{font-family:"Material Icons Round";font-size:34px}.shaka-range-container{position:relative;top:0;left:0;margin:calc((12px - 4px)/ 2) 6px;height:4px;border-radius:4px;background:#fff}.shaka-volume-bar-container{width:100px;padding:0}.shaka-range-element{-webkit-appearance:none;background:0 0;position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:0;width:100%;height:100%;height:12px;top:calc((4px - 12px)/ 2);z-index:1}.shaka-range-element::-webkit-slider-runnable-track{width:100%;cursor:pointer;height:12px;background:0 0;color:transparent;border:none}.shaka-range-element::-webkit-slider-thumb{-webkit-appearance:none;border:none;border-radius:12px;height:12px;width:12px;background:#fff}.shaka-range-element::-moz-range-track{width:100%;cursor:pointer;height:12px;background:0 0;color:transparent;border:none}.shaka-range-element::-moz-range-thumb{-webkit-appearance:none;border:none;border-radius:12px;height:12px;width:12px;background:#fff}.shaka-seek-bar-container{opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s}.shaka-controls-container[casting=true] .shaka-seek-bar-container,.shaka-controls-container[shown=true] .shaka-seek-bar-container{opacity:1}.shaka-ad-markers{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:0;width:100%;height:100%}/*! - * @license - * The SVG/CSS buffering spinner is based on http://codepen.io/jczimm/pen/vEBpoL - * Some local modifications have been made. - * - * Copyright (c) 2016 by jczimm - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */.shaka-spinner-svg{position:absolute;top:0;left:0;right:0;bottom:0;animation:rotate 2s linear infinite;transform-origin:center center;width:100%;height:100%;margin:0;padding:0}.shaka-spinner-path{stroke:#202124;stroke-dasharray:20,200;stroke-dashoffset:0;animation:dash 1s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.shaka-spacer{cursor:default;flex-shrink:1;flex-grow:1;margin:0}.shaka-overflow-menu,.shaka-settings-menu{overflow-x:hidden;overflow-y:auto;white-space:nowrap;background:#fff;box-shadow:0 1px 9px 0 rgba(0 0 0 / 40%);border-radius:2px;max-height:250px;min-width:180px;opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s;display:flex;flex-direction:column;position:absolute;z-index:2;right:15px;bottom:30px}.shaka-controls-container[casting=true] .shaka-overflow-menu,.shaka-controls-container[casting=true] .shaka-settings-menu,.shaka-controls-container[shown=true] .shaka-overflow-menu,.shaka-controls-container[shown=true] .shaka-settings-menu{opacity:1}.shaka-overflow-menu button,.shaka-settings-menu button{font-size:14px;background:0 0;color:#000;border:none;min-height:30px;padding:3.5px 6px;display:flex;align-items:center;cursor:pointer}.shaka-overflow-menu button:hover,.shaka-settings-menu button:hover{background:#e0e0e0}.shaka-overflow-menu button label,.shaka-settings-menu button label{cursor:pointer}.shaka-keyboard-navigation .shaka-overflow-menu button:focus,.shaka-keyboard-navigation .shaka-settings-menu button:focus{background:#e0e0e0}.shaka-overflow-menu i,.shaka-settings-menu i{padding-left:10px;padding-right:10px}.shaka-overflow-menu.shaka-low-position,.shaka-settings-menu.shaka-low-position{bottom:15px}.shaka-overflow-menu span{text-align:left}.shaka-overflow-button-label{position:relative;display:flex;flex-direction:column}.shaka-current-selection-span{color:rgba(0 0 0 / 54%)}.shaka-settings-menu span{margin-left:54px}.shaka-back-to-overflow-button span{margin-left:0}.shaka-back-to-overflow-button i{padding-right:20px}.shaka-auto-span{left:17px}.shaka-controls-container[ad-active=true]{pointer-events:none}.shaka-controls-container[ad-active=true] .shaka-bottom-controls{pointer-events:auto}.shaka-client-side-ad-container,.shaka-server-side-ad-container{position:absolute;left:0;right:0;top:0;bottom:0}.shaka-video-container[shaka-controls=true] .shaka-client-side-ad-container iframe,.shaka-video-container[shaka-controls=true] .shaka-server-side-ad-container iframe{height:90%}.shaka-server-side-ad-container{width:100%;height:100%;flex-shrink:1}.shaka-server-side-ad-container:not([ad-active=true]){pointer-events:none}.shaka-ad-controls{display:flex;flex-direction:row;z-index:1;padding-bottom:1%}.shaka-video-container:not([shaka-controls=true]) .shaka-ad-controls{display:none}.shaka-ad-controls button,.shaka-ad-controls div{color:#fff;font-size:initial}.shaka-ad-controls div:not(.shaka-skip-ad-counter){margin:1px}.shaka-ad-counter,.shaka-ad-position{display:flex;justify-content:flex-end;flex-direction:column;text-shadow:1px 1px 4px #000}.shaka-ad-controls .shaka-ad-position:not(.shaka-hidden)+.shaka-ad-counter{margin-left:.75em}.shaka-skip-ad-container{position:relative;right:calc((100% - 96%)/ 2 * -1);display:flex;flex-direction:row;margin:0}.shaka-skip-ad-button{padding:5px 15px;background:rgba(0 0 0 / 70%);border:none;cursor:pointer}.shaka-skip-ad-button:disabled{background:rgba(0 0 0 / 30%)}.shaka-skip-ad-counter{padding:5px;background:rgba(0 0 0 / 70%);margin:0}/*! +.shaka-hidden{display:none!important}.shaka-video-container{position:relative;top:0;left:0;display:flex;font-family:Roboto,sans-serif,TengwarTelcontar;font-weight:400;-webkit-font-smoothing:antialiased}.shaka-video-container .material-icons-round{font-family:"Material Icons Round";font-size:24px}.shaka-video-container:fullscreen{width:100%;height:100%;background-color:#000}.shaka-video-container:fullscreen .shaka-text-container{font-size:4.4vmin}.shaka-video-container:-webkit-full-screen{width:100%;height:100%;background-color:#000}.shaka-video-container:-webkit-full-screen .shaka-text-container{font-size:4.4vmin}.shaka-video-container:-moz-full-screen{width:100%;height:100%;background-color:#000}.shaka-video-container:-moz-full-screen .shaka-text-container{font-size:4.4vmin}.shaka-video-container:-ms-fullscreen{width:100%;height:100%;background-color:#000}.shaka-video-container:-ms-fullscreen .shaka-text-container{font-size:4.4vmin}.shaka-controls-container{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:0;width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;z-index:1}.shaka-video-container:not([shaka-controls=true]) .shaka-controls-container{display:none}.shaka-controls-container *{flex-shrink:0}.shaka-controls-container[casting=true] .shaka-fullscreen-button{display:none}.shaka-canvas-container{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:0;width:100%;height:100%;pointer-events:none}.shaka-vr-canvas-container{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:0;width:100%;height:100%;pointer-events:none}.shaka-bottom-controls{width:98%;padding:0;z-index:1}.shaka-controls-button-panel{padding:0;margin:0;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;overflow:hidden;min-width:48px;font-size:12px;font-weight:400;font-style:normal;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s}.shaka-controls-container[casting=true] .shaka-controls-button-panel,.shaka-controls-container[shown=true] .shaka-controls-button-panel{opacity:1}.shaka-controls-button-panel>*{color:#fff;height:48px;width:48px;line-height:.5;padding:0 2px;background:0 0;border:0;cursor:pointer;opacity:.9;transition:opacity cubic-bezier(.4, 0, .6, 1) .1s;text-shadow:0 0 2px rgba(0,0,0,.5)}.shaka-controls-button-panel>.material-icons-round{font-size:34px}.shaka-controls-button-panel>.shaka-mute-button{font-size:28px}.shaka-controls-button-panel>.shaka-overflow-menu-button{font-size:24px!important;position:relative}.shaka-controls-button-panel>:hover{opacity:1}.shaka-controls-button-panel .shaka-overflow-menu-only{display:none}.shaka-play-button-container{margin:0;width:100%;height:100%;flex-shrink:1;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.shaka-statistics-container{overflow-x:hidden;overflow-y:auto;scrollbar-color:white rgba(0,0,0,0.5);scrollbar-width:thin;min-width:300px;color:#fff;background-color:rgba(35,35,35,.9);font-size:14px;padding:5px 10px;border-radius:2px;position:absolute;z-index:2;left:15px;top:15px;max-height:calc(100% - 115px);opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s}.shaka-controls-container[casting=true] .shaka-statistics-container,.shaka-controls-container[shown=true] .shaka-statistics-container{opacity:1}.shaka-statistics-container div{display:flex;justify-content:space-between}.shaka-statistics-container span{color:#969696}.shaka-ad-statistics-container{overflow-x:hidden;overflow-y:auto;scrollbar-color:white rgba(0,0,0,0.5);scrollbar-width:thin;min-width:150px;color:#fff;background-color:rgba(35,35,35,.9);font-size:14px;padding:5px 10px;border-radius:2px;position:absolute;z-index:2;right:15px;top:15px;max-height:calc(100% - 115px);opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s}.shaka-controls-container[casting=true] .shaka-ad-statistics-container,.shaka-controls-container[shown=true] .shaka-ad-statistics-container{opacity:1}.shaka-ad-statistics-container div{display:flex;justify-content:space-between}.shaka-ad-statistics-container span{color:#969696}.shaka-context-menu{overflow-x:hidden;overflow-y:auto;white-space:nowrap;background:rgba(28,28,28,.9);border-radius:2px;min-width:190px;opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s;display:flex;flex-direction:column;align-items:stretch;position:absolute;z-index:3}.shaka-controls-container[casting=true] .shaka-context-menu,.shaka-controls-container[shown=true] .shaka-context-menu{opacity:1}.shaka-context-menu button{font-size:14px;background:0 0;color:#fff;border:none;min-height:30px;padding:10px;display:flex;align-items:center;cursor:pointer}.shaka-context-menu button:hover{background:rgba(255,255,255,.1)}.shaka-context-menu button label{cursor:pointer;margin-left:5px}.shaka-keyboard-navigation .shaka-context-menu button:focus{background:rgba(255,255,255,.1)}.shaka-context-menu button .shaka-current-selection-span{display:none}.shaka-scrim-container{margin:0;width:100%;position:absolute;left:0;right:0;bottom:0;flex-shrink:1;opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s;height:61px;background:linear-gradient(rgba(0,0,0,0) 0,rgba(0,0,0,.5) 100%)}.shaka-controls-container[casting=true] .shaka-scrim-container,.shaka-controls-container[shown=true] .shaka-scrim-container{opacity:1}.shaka-text-container{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none;bottom:0;width:100%;min-width:48px;transition:bottom cubic-bezier(.4, 0, .6, 1) .1s;transition-delay:0.5s;font-size:20px;line-height:1.4;color:#fff}.shaka-text-container span.shaka-text-wrapper{display:inline;background:0 0}.shaka-controls-container[shown=true]~.shaka-text-container{transition-delay:0s}.shaka-spinner-container{position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;flex-shrink:1;display:flex;justify-content:center;align-items:center}.shaka-video-container:not([shaka-controls=true]) .shaka-spinner-container{display:none}.shaka-hidden-fast-forward-container,.shaka-hidden-rewind-container{height:100%;width:40%;flex-shrink:1}.shaka-hidden-fast-forward-container{position:absolute;left:0;right:0;top:0;bottom:0;left:60%}.shaka-hidden-rewind-container{position:absolute;left:0;right:0;top:0;bottom:0}.shaka-video-container.no-cursor{cursor:none!important}.shaka-video-container.no-cursor *{cursor:none!important}.shaka-play-button{box-sizing:border-box;padding:calc(15% / 2);width:0;height:0;margin:0;border-radius:50%;box-shadow:rgba(0,0,0,.1) 0 0 20px 0;border:none;background-size:50%;background-repeat:no-repeat;background-position:center center;background-color:rgba(255,255,255,.9);opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s}.shaka-controls-container[casting=true] .shaka-play-button,.shaka-controls-container[shown=true] .shaka-play-button{opacity:1}.shaka-play-button[icon=play]{background-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22%23000000%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M8%205v14l11-7z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%0A%3C%2Fsvg%3E")}.shaka-play-button[icon=pause]{background-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22%23000000%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M6%2019h4V5H6v14zm8-14v14h4V5h-4z%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%0A%3C%2Fsvg%3E")}.shaka-play-button[icon=replay]{background-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22%231f1f1f%22%20height%3D%2224px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2224px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20d%3D%22M480-80q-75%200-140.5-28.5t-114-77q-48.5-48.5-77-114T120-440h80q0%20117%2081.5%20198.5T480-160q117%200%20198.5-81.5T760-440q0-117-81.5-198.5T480-720h-6l62%2062-56%2058-160-160%20160-160%2056%2058-62%2062h6q75%200%20140.5%2028.5t114%2077q48.5%2048.5%2077%20114T840-440q0%2075-28.5%20140.5t-77%20114q-48.5%2048.5-114%2077T480-80Z%22%2F%3E%0A%3C%2Fsvg%3E")}.shaka-current-time{font-size:14px;color:#fff;cursor:pointer;width:auto;padding:0 5px}.shaka-current-time[disabled]{background-color:transparent;color:#fff;cursor:default}.shaka-controls-container button:focus,.shaka-controls-container input:focus{outline:1px solid Highlight}.shaka-controls-container button:-moz-focus-inner,.shaka-controls-container input:-moz-focus-outer{outline:0;border:0}.shaka-controls-container:not(.shaka-keyboard-navigation) button:focus,.shaka-controls-container:not(.shaka-keyboard-navigation) input:focus{outline:0}.shaka-fast-forward-container,.shaka-rewind-container{height:100%;width:100%;flex-shrink:1;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center;margin:0;border:none;color:#fff;background-color:rgba(0,0,0,.5);cursor:default;font-size:20px;opacity:0;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.shaka-fast-forward-container{border-radius:40% 0 0 40%}.shaka-rewind-container{border-radius:0 40% 40% 0}.shaka-forward-rewind-container-icon{font-family:"Material Icons Round";font-size:34px}.shaka-range-container{position:relative;top:0;left:0;margin:calc((12px - 4px)/ 2) 6px;height:4px;border-radius:4px;background:#fff}.shaka-volume-bar-container{width:100px;padding:0;transition-property:opacity,width;transition-duration:250ms;transition-timing-function:cubic-bezier(0.4,0,0.6,1)}.shaka-volume-bar-container:hover{width:100px!important;opacity:1!important}@media (max-width:474px){.shaka-volume-bar-container{width:50px}.shaka-volume-bar-container:hover{width:50px!important}.shaka-mute-button:hover+.shaka-volume-bar-container{width:50px;opacity:1}}.shaka-mute-button+.shaka-volume-bar-container{width:0;opacity:0}@media (min-width:475px){.shaka-mute-button:hover+.shaka-volume-bar-container{width:100px;opacity:1}}.shaka-range-element{-webkit-appearance:none;background:0 0;cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:0;width:100%;height:100%;height:12px;top:calc((4px - 12px)/ 2);z-index:1}.shaka-range-element::-webkit-slider-runnable-track{width:100%;cursor:pointer;height:12px;background:0 0;color:transparent;border:none}.shaka-range-element::-webkit-slider-thumb{-webkit-appearance:none;border:none;border-radius:12px;height:12px;width:12px;background:#fff}.shaka-range-element::-moz-range-track{width:100%;cursor:pointer;height:12px;background:0 0;color:transparent;border:none}.shaka-range-element::-moz-range-thumb{-webkit-appearance:none;border:none;border-radius:12px;height:12px;width:12px;background:#fff}.shaka-seek-bar-container{opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s;top:5px;height:5px;margin-bottom:0;background-clip:padding-box!important;border-top:4px solid transparent;border-bottom:4px solid transparent}.shaka-controls-container[casting=true] .shaka-seek-bar-container,.shaka-controls-container[shown=true] .shaka-seek-bar-container{opacity:1}.shaka-seek-bar-container .shaka-seek-bar{transition:opacity cubic-bezier(.4, 0, .6, 1) 250ms;opacity:0}.shaka-seek-bar-container:hover .shaka-seek-bar{opacity:1}.shaka-ad-markers{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:0;width:100%;height:100%}.shaka-spacer{cursor:default;flex-shrink:1;flex-grow:1;margin:0}.shaka-overflow-menu,.shaka-settings-menu{overflow-x:hidden;overflow-y:auto;scrollbar-color:white rgba(0,0,0,0.5);scrollbar-width:thin;white-space:nowrap;background:rgba(28,28,28,.9);border-radius:15px;max-height:250px;min-width:190px;padding:5px 0;opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s;display:flex;flex-direction:column;align-items:stretch;position:absolute;z-index:2;right:15px;bottom:62px}.shaka-controls-container[casting=true] .shaka-overflow-menu,.shaka-controls-container[casting=true] .shaka-settings-menu,.shaka-controls-container[shown=true] .shaka-overflow-menu,.shaka-controls-container[shown=true] .shaka-settings-menu{opacity:1}.shaka-overflow-menu button,.shaka-settings-menu button{font-size:14px;background:0 0;color:#fff;border:none;min-height:30px;padding:10px;display:flex;align-items:center;cursor:pointer}.shaka-overflow-menu button:hover,.shaka-settings-menu button:hover{background:rgba(255,255,255,.1)}.shaka-overflow-menu button label,.shaka-settings-menu button label{cursor:pointer}.shaka-keyboard-navigation .shaka-overflow-menu button:focus,.shaka-keyboard-navigation .shaka-settings-menu button:focus{background:rgba(255,255,255,.1)}.shaka-overflow-menu i,.shaka-settings-menu i{padding-left:0;padding-right:10px}.shaka-overflow-menu i.shaka-chosen-item,.shaka-settings-menu i.shaka-chosen-item{order:-1;line-height:17px;font-size:18px}.shaka-overflow-menu.shaka-low-position,.shaka-settings-menu.shaka-low-position{bottom:48px}.shaka-overflow-menu span{text-align:left}.shaka-overflow-button-label{position:relative;display:flex;flex-direction:column}.shaka-overflow-button-label-inline{box-sizing:border-box;flex-direction:row;justify-content:space-between;width:calc(100% - 34px);padding-right:28px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjRweCIgZmlsbD0iI2VlZWVlZSI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTguNTkgMTYuNTlMMTMuMTcgMTIgOC41OSA3LjQxIDEwIDZsNiA2LTYgNi0xLjQxLTEuNDF6Ii8+PC9zdmc+");background-repeat:no-repeat;background-position:right 5px center;background-size:24px 24px}.shaka-simple-overflow-button-label-inline{box-sizing:border-box;flex-direction:row;justify-content:space-between;width:calc(100% - 50px)}.shaka-current-selection-span{font-size:12px;padding-left:10px}.shaka-current-auto-quality{margin-left:5px;font-size:11px;color:#ccc}.shaka-current-quality-mark,.shaka-quality-mark{color:red;margin-left:2px!important;font-size:10px;height:17px}.shaka-quality-mark{line-height:6px}.shaka-overflow-playback-rate-mark,.shaka-overflow-quality-mark{background:red;color:#fff;border-radius:2px;font-family:Roboto,sans-serif,TengwarTelcontar;font-size:10px;font-weight:700;line-height:10px;text-shadow:none;padding:1px;position:absolute;right:4px;top:10px}.shaka-settings-menu span{margin-left:28px}.shaka-settings-menu span.shaka-chosen-item{margin-left:0}.shaka-settings-menu .shaka-chapter{margin-left:10px}.shaka-back-to-overflow-button{border-bottom:1px solid rgba(255,255,255,.2)!important}.shaka-back-to-overflow-button span{margin-left:0}.shaka-back-to-overflow-button i{padding-right:10px;font-size:18px!important}.shaka-back-to-overflow-button:hover{background:0 0!important}.shaka-controls-container[ad-active=true]{pointer-events:none}.shaka-controls-container[ad-active=true] .shaka-bottom-controls{pointer-events:auto}.shaka-client-side-ad-container,.shaka-server-side-ad-container{position:absolute;left:0;right:0;top:0;bottom:0}.shaka-video-container[shaka-controls=true] .shaka-client-side-ad-container iframe,.shaka-video-container[shaka-controls=true] .shaka-server-side-ad-container iframe{height:90%}.shaka-server-side-ad-container{width:100%;height:100%;flex-shrink:1}.shaka-server-side-ad-container:not([ad-active=true]){pointer-events:none}.shaka-ad-controls{display:flex;flex-direction:row;z-index:1;padding-bottom:1%}.shaka-video-container:not([shaka-controls=true]) .shaka-ad-controls{display:none}.shaka-ad-controls button,.shaka-ad-controls div{color:#fff;font-size:initial}.shaka-ad-info{font-size:14px;color:#fff;width:auto;padding:0 5px}.shaka-ad-info[disabled]{background-color:transparent;color:#fff;cursor:default;padding:0}.shaka-skip-ad-container{position:relative;right:calc((100% - 98%)/ 2 * -1);display:flex;flex-direction:row;margin:0;margin-left:auto}.shaka-skip-ad-button{padding:5px 15px;background:rgba(0,0,0,.7);border:none;cursor:pointer}.shaka-skip-ad-button:disabled{background:rgba(0,0,0,.3)}.shaka-skip-ad-counter{padding:5px;background:rgba(0,0,0,.7);margin:0}/*! * @license * The tooltip is based on https://github.com/felipefialho/css-components/ * Local modifications have been performed. @@ -51,4 +27,4 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - */.shaka-tooltips-on{overflow:visible}.shaka-tooltips-on>[class*=shaka-tooltip]{position:relative}.shaka-tooltips-on>[class*=shaka-tooltip]:active:after,.shaka-tooltips-on>[class*=shaka-tooltip]:focus-visible:after,.shaka-tooltips-on>[class*=shaka-tooltip]:hover:after{content:attr(aria-label);font-family:Roboto-Regular,Roboto,sans-serif;line-height:calc(32px / 2);white-space:nowrap;font-size:13px;background:rgba(35 35 35 / 90%);color:#fff;border-radius:3px;padding:5px 10px;position:absolute;bottom:calc(32px + 5px);left:calc(32px / 2);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}.shaka-tooltips-on>.shaka-tooltip-status:active:after,.shaka-tooltips-on>.shaka-tooltip-status:focus-visible:after,.shaka-tooltips-on>.shaka-tooltip-status:hover:after{content:attr(aria-label) " (" attr(shaka-status) ")"}.shaka-tooltips-on button:first-child:active:after,.shaka-tooltips-on button:first-child:focus-visible:after,.shaka-tooltips-on button:first-child:hover:after{left:0;-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);-o-transform:translateX(0);transform:translateX(0)}.shaka-tooltips-on button:last-child:active:after,.shaka-tooltips-on button:last-child:focus-visible:after,.shaka-tooltips-on button:last-child:hover:after{left:32px;-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);-o-transform:translateX(-100%);transform:translateX(-100%)}#shaka-player-ui-thumbnail-container{background-color:#000;border:1px solid #000;box-shadow:0 8px 8px 0 rgba(0,0,0,.5);min-width:150px;overflow:hidden;position:absolute;visibility:hidden;width:15%;z-index:1}#shaka-player-ui-thumbnail-container #shaka-player-ui-thumbnail-image{position:absolute}#shaka-player-ui-thumbnail-container #shaka-player-ui-thumbnail-time{background-color:rgba(0,0,0,.5);bottom:0;color:#fff;font-size:16px;left:0;position:absolute;right:0;text-align:center}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxP.ttf) format('truetype')}@font-face{font-family:'Material Icons Round';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialiconsround/v108/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmM.otf) format('opentype')}.material-icons-round{font-family:'Material Icons Round';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}/*# sourceMappingURL=controls.css.map */ \ No newline at end of file + */.shaka-tooltips-on{overflow:visible}.shaka-tooltips-on>.shaka-tooltip,.shaka-tooltips-on>.shaka-tooltip-status{position:relative}.shaka-tooltips-on>.shaka-tooltip-status:active:after,.shaka-tooltips-on>.shaka-tooltip-status:focus-visible:after,.shaka-tooltips-on>.shaka-tooltip-status:hover:after,.shaka-tooltips-on>.shaka-tooltip:active:after,.shaka-tooltips-on>.shaka-tooltip:focus-visible:after,.shaka-tooltips-on>.shaka-tooltip:hover:after{content:attr(aria-label);font-family:Roboto,sans-serif,TengwarTelcontar;line-height:20px;white-space:nowrap;font-size:14px;background:rgba(0,0,0,.5);color:#fff;border-radius:2px;padding:2px 10px;position:absolute;bottom:62px;left:calc(48px / 2);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}.shaka-tooltips-on.shaka-tooltips-low-position>.shaka-tooltip:active:after,.shaka-tooltips-on.shaka-tooltips-low-position>.shaka-tooltip:focus-visible:after,.shaka-tooltips-on.shaka-tooltips-low-position>.shaka-tooltip:hover:after{bottom:48px}.shaka-tooltips-on>.shaka-tooltip-status:active:after,.shaka-tooltips-on>.shaka-tooltip-status:focus-visible:after,.shaka-tooltips-on>.shaka-tooltip-status:hover:after{content:attr(aria-label) " (" attr(shaka-status) ")"}.shaka-tooltips-on button:first-child:active:after,.shaka-tooltips-on button:first-child:focus-visible:after,.shaka-tooltips-on button:first-child:hover:after{left:0;-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);-o-transform:translateX(0);transform:translateX(0)}.shaka-tooltips-on button:last-child:active:after,.shaka-tooltips-on button:last-child:focus-visible:after,.shaka-tooltips-on button:last-child:hover:after{left:48px;-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);-o-transform:translateX(-100%);transform:translateX(-100%)}#shaka-player-ui-thumbnail-container{background-color:#000;border:1px solid #000;box-shadow:0 8px 8px 0 rgba(0,0,0,.5);min-width:150px;overflow:hidden;position:absolute;visibility:hidden;width:15%;z-index:1;pointer-events:none}#shaka-player-ui-thumbnail-container #shaka-player-ui-thumbnail-image{position:absolute}#shaka-player-ui-thumbnail-container #shaka-player-ui-thumbnail-time-container{bottom:0;left:0;position:absolute;right:0;display:flex;justify-content:center}#shaka-player-ui-thumbnail-container #shaka-player-ui-thumbnail-time-container #shaka-player-ui-thumbnail-time{background-color:rgba(0,0,0,.5);border-radius:14px;color:#fff;font-size:14px;padding:0 5px}#shaka-player-ui-thumbnail-container.portrait-thumbnail{min-width:75px;width:7.5%}#shaka-player-ui-time-container{background-color:rgba(0,0,0,.5);border-radius:5px;color:#fff;display:flex;font-size:14px;justify-content:center;overflow:hidden;padding:0 3px;position:absolute;visibility:hidden;z-index:1}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-stretch:normal;src:url(https://fonts.gstatic.com/s/roboto/v48/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbVmUiA8.ttf) format('truetype')}@font-face{font-family:'Material Icons Round';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmM.otf) format('opentype')}.material-icons-round{font-family:'Material Icons Round';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}/*# sourceMappingURL=controls.css.map */ \ No newline at end of file diff --git a/libs/shaka-player.compiled.js b/libs/shaka-player.compiled.js index 9e84ace..0557478 100644 --- a/libs/shaka-player.compiled.js +++ b/libs/shaka-player.compiled.js @@ -15,26 +15,26 @@ ha("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError(" ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;cc&&(c=Math.max(c+e,0));ce||1114111=e?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}}); -function Sa(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e=f}});ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Pa(b,d)&&c.push([d,b[d]]);return c}}); var Ta="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;cb)throw Error("Bad port number "+b);a.rd=b}else a.rd=null} +function Bb(a){var b;a instanceof Bb?(Cb(this,a.ac),this.bd=a.bd,Db(this,a.Cb),Eb(this,a.sd),this.mb=a.mb,Fb(this,a.g.clone()),this.Mc=a.Mc):a&&(b=String(a).match(Ab))?(Cb(this,b[1]||"",!0),this.bd=Gb(b[2]||""),Db(this,b[3]||"",!0),Eb(this,b[4]),this.mb=Gb(b[5]||"",!0),Fb(this,b[6]||"",!0),this.Mc=Gb(b[7]||"")):this.g=new Hb(null)}p=Bb.prototype;p.ac="";p.bd="";p.Cb="";p.sd=null;p.mb="";p.Mc=""; +p.toString=function(){var a=[],b=this.ac;b&&a.push(Ib(b,Jb,!0),":");if(b=this.Cb){a.push("//");var c=this.bd;c&&a.push(Ib(c,Jb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.sd;null!=b&&a.push(":",String(b))}if(b=this.mb)this.Cb&&"/"!=b.charAt(0)&&a.push("/"),a.push(Ib(b,"/"==b.charAt(0)?Kb:Lb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Mc)&&a.push("#",Ib(b,Mb));return a.join("")}; +p.resolve=function(a){var b=this.clone();"data"===b.ac&&(b=new Bb);var c=!!a.ac;c?Cb(b,a.ac):c=!!a.bd;c?b.bd=a.bd:c=!!a.Cb;c?Db(b,a.Cb):c=null!=a.sd;var d=a.mb;if(c)Eb(b,a.sd);else if(c=!!a.mb){if("/"!=d.charAt(0))if(this.Cb&&!this.mb)d="/"+d;else{var e=b.mb.lastIndexOf("/");-1!=e&&(d=b.mb.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;gb)throw Error("Bad port number "+b);a.sd=b}else a.sd=null} function Fb(a,b,c){b instanceof Hb?a.g=b:(c||(b=Ib(b,Nb)),a.g=new Hb(b))}function Gb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function Ib(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Ob),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Ob(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Jb=/[#\/\?@]/g,Lb=/[#\?:]/g,Kb=/[#\?]/g,Nb=/[#\?@]/g,Mb=/#/g;function Hb(a){this.g=a||null} -function Pb(a){if(!a.fb&&(a.fb=new Map,a.Hd=0,a.g))for(var b=a.g.split("&"),c=0;c=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&& +function ac(a){if(!a)return"";a=Tb(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!rb().kh())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&ab('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&& 128==(a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b} function bc(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new U(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Yb(a);for(var e=0;e=c[d]}if(!a)return"";var c=Tb(a);if(239==c[0]&&187==c[1]&&191==c[2])return ac(c);if(254==c[0]&&255==c[1])return bc(c.subarray(2),!1);if(255==c[0]&&254==c[1])return bc(c.subarray(2),!0);if(0==c[0]&&0==c[2])return bc(a,!1);if(0==c[1]&&0==c[3])return bc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return ac(a);throw new U(2,2,2003);} -function ec(a){if(window.TextEncoder&&!qb().jh()){var b=new TextEncoder;return Ub(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c",""":'"',"'":"'"," ":"\u00a0","‎":"\u200e","‏":"\u200f"},c=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return"#"==e[1]?(e="x"==e[2]||"X"==e[2]?parseInt(e.substring(3),16):parseInt(e.substring(2),10),0<=e&&1114111>=e?String.fromCodePoint(e):""):b[e]||"'"}):a||""}T("shaka.util.StringUtils",$b);$b.resetFromCharCode=function(){gc.g=void 0}; -$b.toUTF16=fc;$b.toUTF8=ec;$b.fromBytesAutoDetect=dc;$b.fromUTF16=bc;$b.fromUTF8=ac;var gc=new pb(function(){function a(c){try{var d=new Uint8Array(c);return 0",""":'"',"'":"'"," ":"\u00a0","‎":"\u200e","‏":"\u200f"},c=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return"#"==e[1]?(e="x"==e[2]||"X"==e[2]?parseInt(e.substring(3),16):parseInt(e.substring(2),10),0<=e&&1114111>=e?String.fromCodePoint(e):""):b[e]||"'"}):a||""}T("shaka.util.StringUtils",$b);$b.resetFromCharCode=function(){hc.g=void 0}; +$b.toUTF16=fc;$b.toUTF8=ec;$b.fromBytesAutoDetect=dc;$b.fromUTF16=bc;$b.fromUTF8=ac;var hc=new pb(function(){function a(c){try{var d=new Uint8Array(c);return 0",e);g=a.substring(g,e);var k=g.indexOf(f);if(-1==k){var l=f.indexOf(".");0",e);g=a.substring(g,e);var k=g.indexOf(f);if(-1==k){var l=f.indexOf(".");0",e+1);-1===e&&(e=a.length)}else if(91===a.charCodeAt(e+2)&&91===a.charCodeAt(e+8)&&"cdata"===a.substr(e+3,5).toLowerCase()){k=a.indexOf("]]\x3e",e);-1==k?(h.push(a.substr(e+9)),e=a.length):(h.push(a.substring(e+9,k)),e=k+3);continue}e++;continue}a:{l=g;e++;var m=d(),n={};for(k=[];62!==a.charCodeAt(e)&&a[e];){var q=a.charCodeAt(e);if(64q||96q){q=d();for(var r=a.charCodeAt(e);r&&39!==r&&34!==r&&!(64r||96 -r)&&62!==r;)e++,r=a.charCodeAt(e);var u=e+1;e=a.indexOf(a[e],u);u=a.slice(u,e);if(39===r||34===r){if(-1===e){l={tagName:m,attributes:n,children:k,parent:null};if(b)for(m=0;m/= ".indexOf(a[e])&&a[e];)e++;return a.slice(f,e)}var e=0;return c("")} -function od(a){return"string"===typeof a}function pd(a){var b=[];if(!a.children)return[];a=t(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"!==typeof c&&b.push(c);return b}function qd(a,b){var c=[];if(!a.children)return[];a=t(a.children);for(var d=a.next();!d.done;d=a.next())d=d.value,d.tagName===b&&c.push(d);return c}function rd(a){if("string"===typeof a)return hc(a);a=a.children.reduce(function(b,c){return"string"===typeof c?b+c:b},"");return""===a?null:hc(a)} -function sd(a){if(!Array.from(a.children).every(function(b){return"string"===typeof b}))return null;(a=rd(a))&&(a=a.trim());return a}function td(a,b,c){c=void 0===c?[]:c;a.tagName===b&&c.push(a);if(a.children){a=t(a.children);for(var d=a.next();!d.done;d=a.next())td(d.value,b,c)}return c}function ud(a,b){a=qd(a,b);return 1!=a.length?null:a[0]}function vd(a,b,c){a=wd(a,b,c);return 1!=a.length?null:a[0]} -function xd(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.attributes[b];null!=a&&(e=c(a));return null==e?d:e}function yd(a,b,c){b=ld(b);return a.attributes[b+":"+c]||null}function wd(a,b,c){var d=ld(b);b=[];if(a.children)for(c=d?d+":"+c:c,a=t(a.children),d=a.next();!d.done;d=a.next())(d=d.value)&&d.tagName===c&&b.push(d);return b}function zd(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=yd(a,d.value,c))return d;return null} -function Ad(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}function Bd(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$","i").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null} -function Cd(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function Dd(a){a=Number(a);return 0===a%1?a:null}function Ed(a){a=Number(a);return 0===a%1&&0Math.abs(a.startTime-b.startTime)&&.001>Math.abs(a.endTime-b.endTime)))return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!Wc(a.nestedCues,b.nestedCues,ce))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!Wc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0} -function fe(a,b){b=void 0===b?new Map:b;var c=a.payload;if(c.includes("<")){0===b.size&&ge(b);var d=c;c=[];for(var e=-1,f=0;f"===d[f]&&0",'
'),d+="
";a:{f=d;e=[];var g=-1;c="";d=!1;for(var h=0;h",h);if(-1===k){c=f;break a}if((k=f.substring(h+1,k))&&"v"==k){d=!0;var l=null;e.length&& -(l=e[e.length-1]);if(l){if(l===k)c+="/"+k+">";else{if(!l.startsWith("v")){c+=f[h];continue}c+="/"+l+">"}h+=k.length+1}else c+=f[h]}else c+=f[h]}else"<"===f[h]?(g=h+1,"v"!=f[g]&&(g=-1)):">"===f[h]&&0","<"+g+">"),c=c.replace("",""),d||(c+="")}c=ie(c);a.payload="";try{var m=jd(""+c+"","span")}catch(n){}if(m)if(m=m.children,1!= -m.length||m[0].tagName)for(m=t(m),c=m.next();!c.done;c=m.next())je(c.value,a,b);else a.payload=hc(c);else a.payload=hc(c)}else a.payload=hc(c)}function ge(a){for(var b=t(Object.entries(ke)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new Qd(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(le));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new Qd(0,0,""),e.backgroundColor=d,a.set("."+c,e)} -function ie(a){var b={"< ":""," >":" >"},c=/(< +>|<\s|\s>)/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||""}):a||""} -function je(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Qc;d.position=null;d.size=0;d.textAlign=Sd;if(a.tagName)for(var e=t(a.tagName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(h=d,g=c.get(g))&&(h.backgroundColor=me(g.backgroundColor,h.backgroundColor),h.color=me(g.color,h.color),h.fontFamily=me(g.fontFamily,h.fontFamily), -h.fontSize=me(g.fontSize,h.fontSize),h.textShadow=me(g.textShadow,h.textShadow),h.fontWeight=g.fontWeight,h.fontStyle=g.fontStyle,h.opacity=g.opacity,h.rubyTag=g.rubyTag,h.textCombineUpright=g.textCombineUpright,h.wrapLine=g.wrapLine);switch(f){case "br":d=ae(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=ne;break;case "i":d.fontStyle=oe;break;case "u":d.textDecoration.push(pe);break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;if(!f)break; -if(f=dd(f))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(od(a)||1==e.length&&od(e[0]))for(c=rd(a).split("\n"),a=!0,c=t(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=ae(d.startTime,d.endTime),b.nestedCues.push(a)),0"===d[f]&&0",'
'),d+="
";a:{f=d;e=[];var g=-1;c="";d=!1;for(var h=0;h",h);if(-1===k){c=f;break a}if((k=f.substring(h+1,k))&&"v"==k){d=!0;var l=null;e.length&& +(l=e[e.length-1]);if(l){if(l===k)c+="/"+k+">";else{if(!l.startsWith("v")){c+=f[h];continue}c+="/"+l+">"}h+=k.length+1}else c+=f[h]}else c+=f[h]}else"<"===f[h]?(g=h+1,"v"!=f[g]&&(g=-1)):">"===f[h]&&0","<"+g+">"),c=c.replace("",""),d||(c+="")}c=je(c);a.payload="";try{var m=kd(""+c+"","span")}catch(n){}if(m)if(m=m.children,1!= +m.length||m[0].tagName)for(m=t(m),c=m.next();!c.done;c=m.next())ke(c.value,a,b);else a.payload=ic(c);else a.payload=ic(c)}else a.payload=ic(c)}function he(a){for(var b=t(Object.entries(le)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new Rd(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(me));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new Rd(0,0,""),e.backgroundColor=d,a.set("."+c,e)} +function je(a){var b={"< ":""," >":" >"},c=/(< +>|<\s|\s>)/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||""}):a||""} +function ke(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Qc;d.position=null;d.size=0;d.textAlign=Ud;if(a.tagName)for(var e=t(a.tagName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(h=d,g=c.get(g))&&(h.backgroundColor=ne(g.backgroundColor,h.backgroundColor),h.color=ne(g.color,h.color),h.fontFamily=ne(g.fontFamily,h.fontFamily), +h.fontSize=ne(g.fontSize,h.fontSize),h.textShadow=ne(g.textShadow,h.textShadow),h.fontWeight=g.fontWeight,h.fontStyle=g.fontStyle,h.opacity=g.opacity,h.rubyTag=g.rubyTag,h.textCombineUpright=g.textCombineUpright,h.wrapLine=g.wrapLine);switch(f){case "br":d=be(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=oe;break;case "i":d.fontStyle=pe;break;case "u":d.textDecoration.push(qe);break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;if(!f)break; +if(f=dd(f))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(pd(a)||1==e.length&&pd(e[0]))for(c=sd(a).split("\n"),a=!0,c=t(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=be(d.startTime,d.endTime),b.nestedCues.push(a)),0=a.l&&r.startTime=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&bc.g&&b>=c.h&&(c.h=a));G(d)})};function Ve(a,b,c){a.l=b;a.m=c}function We(a,b,c){a.C=b;if(b=a.o.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)} -function Xe(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Xe(a,d.value,c)} -function Ye(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);Xe(a,k,e);k.startTime>=a.l&&k.startTime=a.l&&r.startTime=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&bc.g&&b>=c.h&&(c.h=a));G(d)})};function We(a,b,c){a.l=b;a.m=c}function Xe(a,b,c){a.C=b;if(b=a.o.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)} +function Ye(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Ye(a,d.value,c)} +function Ze(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);Ye(a,k,e);k.startTime>=a.l&&k.startTimey?(y=B,A=[E.Lf]):B==y&&A.push(E.Lf);m.push.apply(m,x(A))});h=m}c=new Set;b=new Set;h=t(h);for(e=h.next();!e.done;e=h.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);h=Array.from(c).sort(function(y,z){return y.bandwidth-z.bandwidth});var n=[];c=new Map;h=t(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=g(e);l=c.get(k)||[];if(l.length){var q=l[l.length-1],r=Ie(q.codecs),u=Ie(e.codecs);r!=u||e.bandwidth&&q.bandwidth&&!(e.bandwidth>q.bandwidth)||(l.push(e),n.push(e.id))}else l.push(e), -n.push(e.id);c.set(k,l)}var w={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};h=Array.from(b).sort(function(y,z){if(!y.bandwidth||!z.bandwidth||y.bandwidth==z.bandwidth){if(y.codecs&&z.codecs&&y.codecs!=z.codecs&&y.width==z.width){var A=Ie(y.codecs),B=Ie(z.codecs);if(A!=B)return(w[A]||1)-(w[B]||1)}return y.width-z.width}return y.bandwidth-z.bandwidth});b=Gc();var v=[];c=new Map;h=t(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=f(e); -l=c.get(k)||[];if(l.length){q=l[l.length-1];if(!b&&(r=Ie(q.codecs),u=Ie(e.codecs),r!==u))continue;r=Ie(q.codecs);u=Ie(e.codecs);r!=u||e.bandwidth&&q.bandwidth&&!(e.bandwidth>q.bandwidth)||(l.push(e),v.push(e.id))}else l.push(e),v.push(e.id);c.set(k,l)}a.variants=a.variants.filter(function(y){var z=y.audio;y=y.video;return z&&!n.includes(z.id)||y&&!v.includes(y.id)?!1:!0})} -function rf(a,b,c){b=t(b);for(var d=b.next(),e={};!d.done;e={videoCodec:void 0},d=b.next())if(e.videoCodec=d.value,d=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.videoCodec)}}(e)),d.length){a=d;break}c=t(c);b=c.next();for(d={};!b.done;d={audioCodec:void 0},b=c.next())if(d.audioCodec=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.audioCodec)}}(d)),b.length){a=b;break}return a} -function sf(a,b,c){a.variants=a.variants.filter(function(d){return tf(d,b,c)})} -function tf(a,b,c){function d(h,k,l){return h>=k&&h<=l}var e=a.video;if(e&&e.width&&e.height){var f=e.width,g=e.height;g>f&&(g=t([g,f]),f=g.next().value,g=g.next().value);if(!d(f,b.minWidth,Math.min(b.maxWidth,c.width))||!d(g,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))return!1}return a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||a&&a.audio&&a.audio.channelsCount&&!d(a.audio.channelsCount,b.minChannelsCount,b.maxChannelsCount)|| -!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}function uf(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?{}:d;return Q(function(e){if(1==e.g)return F(e,vf(a,b,0y?(y=C,A=[E.Mf]):C==y&&A.push(E.Mf);m.push.apply(m,x(A))});h=m}c=new Set;b=new Set;h=t(h);for(e=h.next();!e.done;e=h.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);h=Array.from(c).sort(function(y,z){return y.bandwidth-z.bandwidth});var n=[];c=new Map;h=t(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=g(e);l=c.get(k)||[];if(l.length){var q=l[l.length-1],r=Je(q.codecs),u=Je(e.codecs);r!=u||e.bandwidth&&q.bandwidth&&!(e.bandwidth>q.bandwidth)||(l.push(e),n.push(e.id))}else l.push(e), +n.push(e.id);c.set(k,l)}var w={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};h=Array.from(b).sort(function(y,z){if(!y.bandwidth||!z.bandwidth||y.bandwidth==z.bandwidth){if(y.codecs&&z.codecs&&y.codecs!=z.codecs&&y.width==z.width){var A=Je(y.codecs),C=Je(z.codecs);if(A!=C)return(w[A]||1)-(w[C]||1)}return y.width-z.width}return y.bandwidth-z.bandwidth});b=Gc();var v=[];c=new Map;h=t(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=f(e); +l=c.get(k)||[];if(l.length){q=l[l.length-1];if(!b&&(r=Je(q.codecs),u=Je(e.codecs),r!==u))continue;r=Je(q.codecs);u=Je(e.codecs);r!=u||e.bandwidth&&q.bandwidth&&!(e.bandwidth>q.bandwidth)||(l.push(e),v.push(e.id))}else l.push(e),v.push(e.id);c.set(k,l)}a.variants=a.variants.filter(function(y){var z=y.audio;y=y.video;return z&&!n.includes(z.id)||y&&!v.includes(y.id)?!1:!0})} +function sf(a,b,c){b=t(b);for(var d=b.next(),e={};!d.done;e={videoCodec:void 0},d=b.next())if(e.videoCodec=d.value,d=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.videoCodec)}}(e)),d.length){a=d;break}c=t(c);b=c.next();for(d={};!b.done;d={audioCodec:void 0},b=c.next())if(d.audioCodec=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.audioCodec)}}(d)),b.length){a=b;break}return a} +function tf(a,b,c){a.variants=a.variants.filter(function(d){return uf(d,b,c)})} +function uf(a,b,c){function d(h,k,l){return h>=k&&h<=l}var e=a.video;if(e&&e.width&&e.height){var f=e.width,g=e.height;g>f&&(g=t([g,f]),f=g.next().value,g=g.next().value);if(!d(f,b.minWidth,Math.min(b.maxWidth,c.width))||!d(g,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))return!1}return a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||a&&a.audio&&a.audio.channelsCount&&!d(a.audio.channelsCount,b.minChannelsCount,b.maxChannelsCount)|| +!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}function vf(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?{}:d;return Q(function(e){if(1==e.g)return F(e,wf(a,b,0=a&&e.width>=b){a=e.height;b=e.width;break}c=fg(this,this.g.restrictions,d,a,b)}a=this.getBandwidthEstimate();d.length&& -!c.length&&(c=fg(this,null,d,Infinity,Infinity),c=[c[0]]);b=c[0]||null;for(d=0;d=g&&a<=f&&(b.bandwidth!=e.bandwidth||b.bandwidth==e.bandwidth&&b.video&&e.video&&(b.video.width=a&&e.width>=b){a=e.height;b=e.width;break}c=gg(this,this.g.restrictions,d,a,b)}a=this.getBandwidthEstimate();d.length&& +!c.length&&(c=gg(this,null,d,Infinity,Infinity),c=[c[0]]);b=c[0]||null;for(d=0;d=g&&a<=f&&(b.bandwidth!=e.bandwidth||b.bandwidth==e.bandwidth&&b.video&&e.video&&(b.video.width=b.i))return;a.I=!0;a.s-=1E3*(a.g.switchInterval-a.g.minTimeToSwitch)}Date.now()-a.s<1E3*a.g.switchInterval||(b=a.chooseVariant(),a.getBandwidthEstimate(),b&&a.G(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch))} -function fg(a,b,c,d,e){if(a.C){var f=a.C.Uh();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return tf(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function gg(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}T("shaka.abr.SimpleAbrManager",eg);eg.prototype.configure=eg.prototype.configure; -eg.prototype.setCmsdManager=eg.prototype.setCmsdManager;eg.prototype.setMediaElement=eg.prototype.setMediaElement;eg.prototype.playbackRateChanged=eg.prototype.playbackRateChanged;eg.prototype.setVariants=eg.prototype.setVariants;eg.prototype.getBandwidthEstimate=eg.prototype.getBandwidthEstimate;eg.prototype.trySuggestStreams=eg.prototype.trySuggestStreams;eg.prototype.segmentDownloaded=eg.prototype.segmentDownloaded;eg.prototype.disable=eg.prototype.disable;eg.prototype.enable=eg.prototype.enable; -eg.prototype.chooseVariant=eg.prototype.chooseVariant;eg.prototype.init=eg.prototype.init;eg.prototype.release=eg.prototype.release;eg.prototype.stop=eg.prototype.stop;var ig=1;T("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function jg(a,b){if(a===b||!a.length||!b.length)return!0;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(kg(c))return!0;for(var d=t(b),e=d.next();!e.done;e=d.next())if(e=e.value,c.keySystem===e.keySystem||kg(e))return!0}return!1} -function lg(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(x(d.keyIds),x(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri|| -f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}else kg(d)?c.push(d):kg(f)&&c.push(f)}return c} -function mg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function ng(a){return a?!!a.match(/^com\.apple\.fps/):!1}function kg(a){return(a=a.licenseServerUri)?a.startsWith("data:application/json;base64,"):!1}var og=new pb(function(){return Ub(new Uint8Array([0]))}),pg=new Map;function qg(a,b){var c=rg();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.o=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1} -function sg(a){var b,c;return Q(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new U(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.o);return F(d,new Promise(function(e){(new $e(e)).ha(c/1E3)}),2)}a.h*=a.m;G(d)})}function rg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function tg(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}tg.prototype.resolve=function(){};tg.prototype.reject=function(){};function ug(a,b){this.promise=a;this.i=b;this.g=null}function vg(a){return new ug(Promise.reject(a),function(){return Promise.resolve()})}function wg(){var a=Promise.reject(new U(2,7,7001));a.catch(function(){});return new ug(a,function(){return Promise.resolve()})}function xg(a){return new ug(Promise.resolve(a),function(){return Promise.resolve()})}function yg(a){return new ug(a,function(){return a.catch(function(){})})}ug.prototype.abort=function(){this.g||(this.g=this.i());return this.g}; -function zg(a){return new ug(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}ug.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this}; -ug.prototype.Va=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Ag(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new tg;f.catch(function(){});var g=new U(2,7,7001);this.promise.then(c(!0),c(!1));return new ug(f,function(){return d()})}; -function Ag(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}fa.Object.defineProperties(ug.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return null!==this.g}}});T("shaka.util.AbortableOperation",ug);ug.prototype.chain=ug.prototype.Va;ug.prototype["finally"]=ug.prototype.finally; -ug.all=zg;ug.prototype.abort=ug.prototype.abort;ug.notAbortable=yg;ug.completed=xg;ug.aborted=wg;ug.failed=vg;function V(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1} -function Bg(a){var b=new V(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}V.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};V.prototype.stopImmediatePropagation=function(){this.g=!0};V.prototype.stopPropagation=function(){};T("shaka.util.FakeEvent",V); -var Cg={fl:"abrstatuschanged",hl:"adaptation",il:"audiotrackchanged",jl:"audiotrackschanged",kl:"boundarycrossed",ll:"buffering",ol:"canupdatestarttime",ql:"complete",rl:"currentitemchanged",ul:"downloadcompleted",vl:"downloadfailed",wl:"downloadheadersreceived",xl:"drmsessionupdate",zl:"emsg",Fl:"itemsinserted",Gl:"itemsremoved",Wl:"prft",Error:"error",Al:"expirationupdated",Bl:"firstquartile",Cl:"gapjumped",Hl:"keystatuschanged",Ll:"loaded",Ml:"loading",Ol:"manifestparsed",Pl:"manifestupdated", -Ql:"mediaqualitychanged",Rl:"mediasourcerecovered",Sl:"metadataadded",Metadata:"metadata",Tl:"midpoint",Ul:"nospatialvideoinfo",Vl:"onstatechange",Xl:"ratechange",$l:"segmentappended",am:"sessiondata",bm:"spatialvideoinfo",cm:"stalldetected",dm:"started",em:"statechanged",fm:"streaming",gm:"textchanged",hm:"texttrackvisibility",im:"thirdquartile",jm:"timelineregionadded",lm:"timelineregionenter",mm:"timelineregionexit",nm:"trackschanged",pm:"unloading",rm:"variantchanged"};function Dg(){this.Ya=new ib;this.xe=this}Dg.prototype.addEventListener=function(a,b){this.Ya&&this.Ya.push(a,b)};Dg.prototype.removeEventListener=function(a,b){this.Ya&&this.Ya.remove(a,b)};Dg.prototype.dispatchEvent=function(a){if(!this.Ya)return!0;var b=this.Ya.get(a.type)||[],c=this.Ya.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.xe;a.currentTarget=this.xe;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented}; -Dg.prototype.release=function(){this.Ya=null};function Eg(){this.g=[]}function Fg(a,b){a.g.push(b.finally(function(){Uc(a.g,b)}))}Eg.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function Gg(a,b,c,d,e,f,g){Dg.call(this);this.i=null;this.j=!1;this.s=new Eg;this.g=new Set;this.h=new Set;this.o=a||null;this.m=b||null;this.A=c||null;this.B=d||null;this.C=e||null;this.G=f||null;this.F=g||null;this.l=new Map}pa(Gg,Dg);p=Gg.prototype;p.configure=function(a){this.i=a};function Hg(a,b,c,d){d=void 0===d?!1:d;c=c||Ig;var e=Jg.get(a);(!e||c>=e.priority)&&Jg.set(a,{priority:c,tf:b,xk:d})} -function Kg(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(c=a.next();!c.done;c=a.next())b.h.add(c.value)}p.Ak=function(a){this.g.add(a)};p.Wk=function(a){this.g.delete(a)};p.hj=function(){this.g.clear()};p.Bk=function(a){this.h.add(a)};p.Xk=function(a){this.h.delete(a)};p.ij=function(){this.h.clear()};p.Ih=function(){this.l.clear()}; -function Lg(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}p.destroy=function(){this.j=!0;this.g.clear();this.h.clear();this.l.clear();Dg.prototype.release.call(this);return this.s.destroy()}; -p.request=function(a,b,c){var d=this,e=new Mg;if(this.j){var f=Promise.reject(new U(2,7,7001));f.catch(function(){});return new Ng(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?ed(b.retryParameters):rg();b.uris=ed(b.uris);f=Og(this,a,b,c);var g=f.Va(function(){return Pg(d,a,b,c,new qg(b.retryParameters,!1),0,null,e)}),h=g.Va(function(q){return Qg(d,a,q,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){}); -var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.Va(function(q){var r=Date.now()-m,u=q.response;u.timeMs+=l;u.timeMs+=r;q.Xj||!d.o||u.fromCache||"HEAD"==b.method||a!=Rg||d.o(u.timeMs,u.data.byteLength,Sg(c),b,c);d.F&&d.F(a,u,c);return u},function(q){q&&(q.severity=2);throw q;});f=new Ng(n.promise,function(){return n.abort()},e);Fg(this.s,f);return f}; -function Og(a,b,c,d){function e(h){f=f.Va(function(){c.body&&(c.body=Ub(c.body));return h(b,c,d)})}var f=xg(void 0);a.C&&e(a.C);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.Va(void 0,function(h){if(h instanceof U&&7001==h.code)throw h;throw new U(2,1,1006,h);})} -function Pg(a,b,c,d,e,f,g,h){a.i.forceHTTP&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.i.forceHTTPS&&(c.uris[f]=c.uris[f].replace("http://","https://"));0this.h.byteLength)throw ah();var b=Tb(this.h,this.g,a);this.g+=a;return b}; -p.skip=function(a){if(this.g+a>this.h.byteLength)throw ah();this.g+=a};p.Bi=function(a){if(this.ga||a>this.h.byteLength)throw ah();this.g=a};p.Sc=function(){for(var a=this.g;this.Fa()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Tb(this.h,a,this.g-a);this.g+=1;return ac(a)};function ah(){return new U(2,3,3E3)}T("shaka.util.DataViewReader",Zg);Zg.prototype.readTerminatedString=Zg.prototype.Sc;Zg.prototype.seek=Zg.prototype.seek;Zg.prototype.rewind=Zg.prototype.Bi; -Zg.prototype.skip=Zg.prototype.skip;Zg.prototype.readBytes=Zg.prototype.Sb;Zg.prototype.readUint64=Zg.prototype.ud;Zg.prototype.readInt32=Zg.prototype.Sg;Zg.prototype.readUint32=Zg.prototype.T;Zg.prototype.readUint16=Zg.prototype.Aa;Zg.prototype.readUint8=Zg.prototype.X;Zg.prototype.getLength=Zg.prototype.getLength;Zg.prototype.getPosition=Zg.prototype.Ma;Zg.prototype.hasMoreData=Zg.prototype.Fa;var $g=1;Zg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:$g};function bh(){this.i=new Map;this.h=new Map;this.g=!1}p=bh.prototype;p.box=function(a,b){a=ch(a);this.i.set(a,dh);this.h.set(a,b);return this};p.R=function(a,b){a=ch(a);this.i.set(a,eh);this.h.set(a,b);return this};p.stop=function(){this.g=!0};p.parse=function(a,b,c){a=new Zg(a,0);for(this.g=!1;a.Fa()&&!this.g;)this.pd(0,a,b,c)}; -p.pd=function(a,b,c,d){var e=b.Ma();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.T(),g=b.T(),h=fh(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Ma()+8>b.getLength()){this.g=!0;return}f=b.ud();k=!0}var l=this.h.get(g);if(l){var m=null,n=null;if(this.i.get(g)==eh){if(d&&b.Ma()+4>b.getLength()){this.g=!0;return}n=b.T();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.Ma(),b=0>24&255,a>>16&255,a>>8&255,a&255)} -function hh(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}T("shaka.util.Mp4Parser",bh);bh.headerSize=hh;bh.typeToString=fh;bh.allData=lh;bh.audioSampleEntry=kh;bh.visualSampleEntry=jh;bh.sampleDescription=ih;bh.children=gh;bh.prototype.parseNext=bh.prototype.pd;bh.prototype.parse=bh.prototype.parse;bh.prototype.stop=bh.prototype.stop;bh.prototype.fullBox=bh.prototype.R;bh.prototype.box=bh.prototype.box;var dh=0,eh=1;function mh(a){var b=this;this.g=[];this.h=[];this.data=[];(new bh).box("moov",gh).box("moof",gh).R("pssh",function(c){if(!(1d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0=b.i))return;a.I=!0;a.s-=1E3*(a.g.switchInterval-a.g.minTimeToSwitch)}Date.now()-a.s<1E3*a.g.switchInterval||(b=a.chooseVariant(),a.getBandwidthEstimate(),b&&a.G(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch))} +function gg(a,b,c,d,e){if(a.C){var f=a.C.Vh();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return uf(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function hg(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}T("shaka.abr.SimpleAbrManager",fg);fg.prototype.configure=fg.prototype.configure; +fg.prototype.setCmsdManager=fg.prototype.setCmsdManager;fg.prototype.setMediaElement=fg.prototype.setMediaElement;fg.prototype.playbackRateChanged=fg.prototype.playbackRateChanged;fg.prototype.setVariants=fg.prototype.setVariants;fg.prototype.getBandwidthEstimate=fg.prototype.getBandwidthEstimate;fg.prototype.trySuggestStreams=fg.prototype.trySuggestStreams;fg.prototype.segmentDownloaded=fg.prototype.segmentDownloaded;fg.prototype.disable=fg.prototype.disable;fg.prototype.enable=fg.prototype.enable; +fg.prototype.chooseVariant=fg.prototype.chooseVariant;fg.prototype.init=fg.prototype.init;fg.prototype.release=fg.prototype.release;fg.prototype.stop=fg.prototype.stop;var jg=1;T("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function kg(a,b){if(a===b||!a.length||!b.length)return!0;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(lg(c))return!0;for(var d=t(b),e=d.next();!e.done;e=d.next())if(e=e.value,c.keySystem===e.keySystem||lg(e))return!0}return!1} +function mg(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(x(d.keyIds),x(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri|| +f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}else lg(d)?c.push(d):lg(f)&&c.push(f)}return c} +function ng(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function og(a){return a?!!a.match(/^com\.apple\.fps/):!1}function lg(a){return(a=a.licenseServerUri)?a.startsWith("data:application/json;base64,"):!1}var pg=new pb(function(){return Ub(new Uint8Array([0]))}),qg=new Map;function rg(a,b){var c=sg();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.o=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1} +function tg(a){var b,c;return Q(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new U(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.o);return F(d,new Promise(function(e){(new af(e)).ha(c/1E3)}),2)}a.h*=a.m;G(d)})}function sg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function ug(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}ug.prototype.resolve=function(){};ug.prototype.reject=function(){};function vg(a,b){this.promise=a;this.i=b;this.g=null}function wg(a){return new vg(Promise.reject(a),function(){return Promise.resolve()})}function xg(){var a=Promise.reject(new U(2,7,7001));a.catch(function(){});return new vg(a,function(){return Promise.resolve()})}function yg(a){return new vg(Promise.resolve(a),function(){return Promise.resolve()})}function zg(a){return new vg(a,function(){return a.catch(function(){})})}vg.prototype.abort=function(){this.g||(this.g=this.i());return this.g}; +function Ag(a){return new vg(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}vg.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this}; +vg.prototype.Ua=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Bg(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new ug;f.catch(function(){});var g=new U(2,7,7001);this.promise.then(c(!0),c(!1));return new vg(f,function(){return d()})}; +function Bg(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}fa.Object.defineProperties(vg.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return null!==this.g}}});T("shaka.util.AbortableOperation",vg);vg.prototype.chain=vg.prototype.Ua;vg.prototype["finally"]=vg.prototype.finally; +vg.all=Ag;vg.prototype.abort=vg.prototype.abort;vg.notAbortable=zg;vg.completed=yg;vg.aborted=xg;vg.failed=wg;function V(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1} +function Cg(a){var b=new V(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}V.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};V.prototype.stopImmediatePropagation=function(){this.g=!0};V.prototype.stopPropagation=function(){};T("shaka.util.FakeEvent",V); +var Dg={hl:"abrstatuschanged",il:"adaptation",jl:"audiotrackchanged",kl:"audiotrackschanged",ll:"boundarycrossed",ol:"buffering",ql:"canupdatestarttime",rl:"complete",ul:"currentitemchanged",vl:"downloadcompleted",wl:"downloadfailed",xl:"downloadheadersreceived",yl:"drmsessionupdate",Al:"emsg",Gl:"itemsinserted",Hl:"itemsremoved",Xl:"prft",Error:"error",Bl:"expirationupdated",Cl:"firstquartile",Dl:"gapjumped",Il:"keystatuschanged",Ml:"loaded",Nl:"loading",Pl:"manifestparsed",Ql:"manifestupdated", +Rl:"mediaqualitychanged",Sl:"mediasourcerecovered",Tl:"metadataadded",Metadata:"metadata",Ul:"midpoint",Vl:"nospatialvideoinfo",Wl:"onstatechange",Yl:"ratechange",am:"segmentappended",bm:"sessiondata",cm:"spatialvideoinfo",dm:"stalldetected",em:"started",fm:"statechanged",gm:"streaming",hm:"textchanged",im:"texttrackvisibility",jm:"thirdquartile",lm:"timelineregionadded",mm:"timelineregionenter",nm:"timelineregionexit",om:"trackschanged",qm:"unloading",sm:"variantchanged"};function Eg(){this.Xa=new hb;this.xe=this}Eg.prototype.addEventListener=function(a,b){this.Xa&&this.Xa.push(a,b)};Eg.prototype.removeEventListener=function(a,b){this.Xa&&this.Xa.remove(a,b)};Eg.prototype.dispatchEvent=function(a){if(!this.Xa)return!0;var b=this.Xa.get(a.type)||[],c=this.Xa.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.xe;a.currentTarget=this.xe;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented}; +Eg.prototype.release=function(){this.Xa=null};function Fg(){this.g=[]}function Gg(a,b){a.g.push(b.finally(function(){Uc(a.g,b)}))}Fg.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function Hg(a,b,c,d,e,f,g){Eg.call(this);this.i=null;this.j=!1;this.s=new Fg;this.g=new Set;this.h=new Set;this.o=a||null;this.m=b||null;this.A=c||null;this.B=d||null;this.C=e||null;this.G=f||null;this.F=g||null;this.l=new Map}pa(Hg,Eg);p=Hg.prototype;p.configure=function(a){this.i=a};function Ig(a,b,c,d){d=void 0===d?!1:d;c=c||Jg;var e=Kg.get(a);(!e||c>=e.priority)&&Kg.set(a,{priority:c,tf:b,yk:d})} +function Lg(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(c=a.next();!c.done;c=a.next())b.h.add(c.value)}p.Bk=function(a){this.g.add(a)};p.Xk=function(a){this.g.delete(a)};p.ij=function(){this.g.clear()};p.Ck=function(a){this.h.add(a)};p.Yk=function(a){this.h.delete(a)};p.jj=function(){this.h.clear()};p.Jh=function(){this.l.clear()}; +function Mg(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}p.destroy=function(){this.j=!0;this.g.clear();this.h.clear();this.l.clear();Eg.prototype.release.call(this);return this.s.destroy()}; +p.request=function(a,b,c){var d=this,e=new Ng;if(this.j){var f=Promise.reject(new U(2,7,7001));f.catch(function(){});return new Og(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?fd(b.retryParameters):sg();b.uris=fd(b.uris);f=Pg(this,a,b,c);var g=f.Ua(function(){return Qg(d,a,b,c,new rg(b.retryParameters,!1),0,null,e)}),h=g.Ua(function(q){return Rg(d,a,q,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){}); +var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.Ua(function(q){var r=Date.now()-m,u=q.response;u.timeMs+=l;u.timeMs+=r;q.Yj||!d.o||u.fromCache||"HEAD"==b.method||a!=Sg||d.o(u.timeMs,u.data.byteLength,Tg(c),b,c);d.F&&d.F(a,u,c);return u},function(q){q&&(q.severity=2);throw q;});f=new Og(n.promise,function(){return n.abort()},e);Gg(this.s,f);return f}; +function Pg(a,b,c,d){function e(h){f=f.Ua(function(){c.body&&(c.body=Ub(c.body));return h(b,c,d)})}var f=yg(void 0);a.C&&e(a.C);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.Ua(void 0,function(h){if(h instanceof U&&7001==h.code)throw h;throw new U(2,1,1006,h);})} +function Qg(a,b,c,d,e,f,g,h){a.i.forceHTTP&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.i.forceHTTPS&&(c.uris[f]=c.uris[f].replace("http://","https://"));0this.h.byteLength)throw bh();var b=Tb(this.h,this.g,a);this.g+=a;return b}; +p.skip=function(a){if(this.g+a>this.h.byteLength)throw bh();this.g+=a};p.Ci=function(a){if(this.ga||a>this.h.byteLength)throw bh();this.g=a};p.Uc=function(){for(var a=this.g;this.Fa()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Tb(this.h,a,this.g-a);this.g+=1;return ac(a)};function bh(){return new U(2,3,3E3)}T("shaka.util.DataViewReader",$g);$g.prototype.readTerminatedString=$g.prototype.Uc;$g.prototype.seek=$g.prototype.seek;$g.prototype.rewind=$g.prototype.Ci; +$g.prototype.skip=$g.prototype.skip;$g.prototype.readBytes=$g.prototype.Sb;$g.prototype.readUint64=$g.prototype.vd;$g.prototype.readInt32=$g.prototype.Tg;$g.prototype.readUint32=$g.prototype.T;$g.prototype.readUint16=$g.prototype.Aa;$g.prototype.readUint8=$g.prototype.X;$g.prototype.getLength=$g.prototype.getLength;$g.prototype.getPosition=$g.prototype.Ma;$g.prototype.hasMoreData=$g.prototype.Fa;var ah=1;$g.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:ah};function ch(){this.i=new Map;this.h=new Map;this.g=!1}p=ch.prototype;p.box=function(a,b){a=dh(a);this.i.set(a,eh);this.h.set(a,b);return this};p.R=function(a,b){a=dh(a);this.i.set(a,fh);this.h.set(a,b);return this};p.stop=function(){this.g=!0};p.parse=function(a,b,c){a=new $g(a,0);for(this.g=!1;a.Fa()&&!this.g;)this.qd(0,a,b,c)}; +p.qd=function(a,b,c,d){var e=b.Ma();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.T(),g=b.T(),h=gh(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Ma()+8>b.getLength()){this.g=!0;return}f=b.vd();k=!0}var l=this.h.get(g);if(l){var m=null,n=null;if(this.i.get(g)==fh){if(d&&b.Ma()+4>b.getLength()){this.g=!0;return}n=b.T();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(g-=b.Ma(),b=0>24&255,a>>16&255,a>>8&255,a&255)}function ih(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}T("shaka.util.Mp4Parser",ch);ch.headerSize=ih;ch.typeToString=gh;ch.allData=mh;ch.audioSampleEntry=lh;ch.visualSampleEntry=kh;ch.sampleDescription=jh;ch.children=hh;ch.prototype.parseNext=ch.prototype.qd;ch.prototype.parse=ch.prototype.parse; +ch.prototype.stop=ch.prototype.stop;ch.prototype.fullBox=ch.prototype.R;ch.prototype.box=ch.prototype.box;var eh=0,fh=1;function nh(a){var b=this;this.g=[];this.h=[];this.data=[];(new ch).box("moov",hh).box("moof",hh).R("pssh",function(c){if(!(1d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.s(new U(2,6,6006,f.message,f,h))}})}function Zh(a){return Q(function(b){return 1==b.g?a.K?F(b,a.m,3):b.u(0):F(b,Promise.all(a.S.map(function(c){return c.promise})),0)})} -function Ih(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w;Q(function(v){switch(v.g){case 1:c=b.target;a.g.logLicenseExchange&&lc(b.message);d=a.i.get(c);e=a.h.licenseServerUri;f=a.g.advanced[a.h.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=Lg([e],a.g.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.h;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(f&&f.headers)for(h in f.headers)g.headers[h]= -f.headers[h];if("org.w3.clearkey"===a.h.keySystem){var y=g,z=a.h;try{var A=dc(y.body);if(A){var B=JSON.parse(A);B.type||(B.type=z.sessionType,y.body=ec(JSON.stringify(B)))}}catch(E){}}if(mg(a.h.keySystem))if(y=bc(g.body,!0,!0),y.includes("PlayReadyKeyMessage")){y=jd(y,"PlayReadyKeyMessage");z=td(y,"HttpHeader");z=t(z);for(A=z.next();!A.done;A=z.next())B=A.value,A=td(B,"name")[0],B=td(B,"value")[0],g.headers[rd(A)]=rd(B);y=td(y,"Challenge")[0];g.body=mc(rd(y))}else g.headers["Content-Type"]="text/xml; charset=utf-8"; -k=Date.now();wa(v,2);m=a.C.lc.request(2,g,{isPreload:a.P()});a.S.push(m);return F(v,m.promise,4);case 4:l=v.h;Uc(a.S,m);za(v,3);break;case 2:n=Aa(v);if(a.l.g)return v.return();q=new U(2,6,6007,n);1==a.i.size?(a.s(q),d&&d.Ib&&d.Ib.reject(q)):(d&&d.Ib&&d.Ib.reject(q),a.i.delete(c),Oh(a)&&(a.m.resolve(),a.L.ha(.1)));return v.return();case 3:if(a.l.g)return v.return();a.H+=(Date.now()-k)/1E3;a.g.logLicenseExchange&&lc(l.data);wa(v,5);return F(v,c.update(l.data),7);case 7:za(v,6);break;case 5:return r= -Aa(v),u=new U(2,6,6008,r.message),a.s(u),d&&d.Ib&&d.Ib.reject(u),v.return();case 6:if(a.l.g)return v.return();w=new V("drmsessionupdate");a.C.onEvent(w);d&&(d.Ib&&d.Ib.resolve(),Wh(a,d));G(v)}})} -function Yh(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}h=qb();if(mg(a.h.keySystem)&&16==g.byteLength&&h.Zg()){h=Yb(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=oc(g).slice(0,32);a.W.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Ib&&(a.i.delete(b),$h(b));Oh(a)&&(a.m.resolve(), -a.L.ha(ai))}function ph(a){var b=a.W,c=a.ka;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.s(new U(2,6,6014));a.C.nf(Yg(c))} -function bi(){var a,b,c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,E,H,C,D,I,L,K,J,M,O,N,P,R,S;return Q(function(aa){if(1==aa.g){a="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" ");if(!(window.MediaKeys&&window.navigator&& +function Uh(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y;return Q(function(z){switch(z.g){case 1:if(1==b.size&&b.has(""))throw new U(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){z.u(4);break}k=h.value;if(!b.has(k)){z.u(3);break}l=b.get(k);wa(z,6);return F(z,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c= +z.h,z.return(c);case 6:Aa(z);case 7:Vg(a.l);case 3:h=g.next();z.u(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.u(11);break}q=n.value;r=t(b.keys());u=r.next();case 12:if(u.done){n=m.next();z.u(9);break}w=u.value;v=b.get(w);y=v.drmInfos.some(function(A){return!!A.licenseServerUri});if(y!=q){z.u(13);break}wa(z,15);return F(z,navigator.requestMediaKeySystemAccess(w,[v]),17);case 17:return c=z.h,z.return(c);case 15:Aa(z);case 16:Vg(a.l);case 13:u=r.next();z.u(12);break;case 11:return z.return(c)}})} +function Wh(a){Ph(a)&&a.m.resolve()}function Xh(a,b){(new af(function(){b.loaded=!0;Wh(a)})).ha(Yh)} +function Nh(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:try{d=a.A.createSession("persistent-license")}catch(n){return e=new U(2,6,6005,n.message),a.s(e),m.return(Promise.reject(e))}a.o.D(d,"message",function(n){a.j&&a.h.delayLicenseRequestUntilPlayed&&a.j.paused&&!a.U?a.M.push(n):Jh(a,n)});a.o.D(d,"keystatuseschange",function(n){return Zh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Og:Infinity,Ib:null,type:"persistent-license"};a.i.set(d,f);wa(m,2);return F(m, +d.load(b),4);case 4:return g=m.h,Vg(a.l),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.s(new U(h,6,6013)),f.loaded=!0),Xh(a,f),Wh(a),m.return(d);case 2:k=Aa(m),Vg(a.l,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.s(new U(l,6,6005,k.message)),f.loaded=!0,Wh(a);case 3:return m.return(Promise.resolve())}})} +function Qh(a,b,c,d){try{var e=a.A.createSession(d)}catch(f){a.s(new U(2,6,6005,f.message));return}a.o.D(e,"message",function(f){a.j&&a.h.delayLicenseRequestUntilPlayed&&a.j.paused&&!a.U?a.M.push(f):Jh(a,f)});a.o.D(e,"keystatuseschange",function(f){return Zh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Og:Infinity,Ib:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof U||(b=new U(2,6,6016,f));a.s(b);return}a.h.logLicenseExchange&&lc(c);e.generateRequest(b,c).catch(function(f){if(!a.l.g){a.i.delete(e); +var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.s(new U(2,6,6006,f.message,f,h))}})}function $h(a){return Q(function(b){return 1==b.g?a.K?F(b,a.m,3):b.u(0):F(b,Promise.all(a.S.map(function(c){return c.promise})),0)})} +function Jh(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w;Q(function(v){switch(v.g){case 1:c=b.target;a.h.logLicenseExchange&&lc(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=Mg([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(f&&f.headers)for(h in f.headers)g.headers[h]= +f.headers[h];if("org.w3.clearkey"===a.g.keySystem){var y=g,z=a.g;try{var A=dc(y.body);if(A){var C=JSON.parse(A);C.type||(C.type=z.sessionType,y.body=ec(JSON.stringify(C)))}}catch(E){}}if(ng(a.g.keySystem))if(y=bc(g.body,!0,!0),y.includes("PlayReadyKeyMessage")){y=kd(y,"PlayReadyKeyMessage");z=ud(y,"HttpHeader");z=t(z);for(A=z.next();!A.done;A=z.next())C=A.value,A=ud(C,"name")[0],C=ud(C,"value")[0],g.headers[sd(A)]=sd(C);y=ud(y,"Challenge")[0];g.body=mc(sd(y))}else g.headers["Content-Type"]="text/xml; charset=utf-8"; +k=Date.now();wa(v,2);m=a.C.pc.request(2,g,{isPreload:a.P()});a.S.push(m);return F(v,m.promise,4);case 4:l=v.h;Uc(a.S,m);za(v,3);break;case 2:n=Aa(v);if(a.l.g)return v.return();q=new U(2,6,6007,n);1==a.i.size?(a.s(q),d&&d.Ib&&d.Ib.reject(q)):(d&&d.Ib&&d.Ib.reject(q),a.i.delete(c),Ph(a)&&(a.m.resolve(),a.L.ha(.1)));return v.return();case 3:if(a.l.g)return v.return();a.H+=(Date.now()-k)/1E3;a.h.logLicenseExchange&&lc(l.data);wa(v,5);return F(v,c.update(l.data),7);case 7:za(v,6);break;case 5:return r= +Aa(v),u=new U(2,6,6008,r.message),a.s(u),d&&d.Ib&&d.Ib.reject(u),v.return();case 6:if(a.l.g)return v.return();w=new V("drmsessionupdate");a.C.onEvent(w);d&&(d.Ib&&d.Ib.resolve(),Xh(a,d));G(v)}})} +function Zh(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}h=rb();if(ng(a.g.keySystem)&&16==g.byteLength&&h.$g()){h=Yb(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=oc(g).slice(0,32);a.W.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Ib&&(a.i.delete(b),ai(b));Ph(a)&&(a.m.resolve(), +a.L.ha(bi))}function qh(a){var b=a.W,c=a.ka;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.s(new U(2,6,6014));a.C.nf(Zg(c))} +function ci(){var a,b,c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,C,E,H,B,D,I,K,J,L,N,O,M,P,R,S;return Q(function(aa){if(1==aa.g){a="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" ");if(!(window.MediaKeys&&window.navigator&& window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)){b={};c=t(a);for(d=c.next();!d.done;d=c.next())e=d.value,b[e]=null;return aa.return(b)}f="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" ");g=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"];h=["150","2000","3000"];k={"com.widevine.alpha":g,"com.widevine.alpha.experiment":g,"com.microsoft.playready.recommendation":h};l=[{contentType:'video/mp4; codecs="avc1.42E01E"'}, -{contentType:'video/webm; codecs="vp8"'}];m=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}];n={videoCapabilities:l,audioCapabilities:m,initDataTypes:["cenc","sinf","skd","keyids"]};q=[null,"cenc","cbcs","cbcs-1-9"];r=new Map;u=qb();w=function(W,Fa){var Ga,xa,qa,Da,Ja,ra,da,sa,Za,$a,hb,rb,mb;return Q(function(Ma){switch(Ma.g){case 1:return wa(Ma,2),F(Ma,Fa.createMediaKeys(),5);case 5:Ga=Ma.h;case 4:za(Ma,3);break;case 2:return Aa(Ma),Ma.return();case 3:qa= -(xa=Fa.getConfiguration().sessionTypes)?xa.includes("persistent-license"):!1;u.ji()&&(qa=!1);Da=Fa.getConfiguration().videoCapabilities;Ja=Fa.getConfiguration().audioCapabilities;ra={persistentState:qa,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]};r.has(W)&&r.get(W)?ra=r.get(W):r.set(W,ra);(da=Da[0].encryptionScheme)&&!ra.encryptionSchemes.includes(da)&&ra.encryptionSchemes.push(da);(sa=Da[0].robustness)&&!ra.videoRobustnessLevels.includes(sa)&&ra.videoRobustnessLevels.push(sa); -(Za=Ja[0].robustness)&&!ra.audioRobustnessLevels.includes(Za)&&ra.audioRobustnessLevels.push(Za);if("getStatusForPolicy"in Ga){$a=[];hb=t(f);rb=hb.next();for(mb={};!rb.done;mb={Qd:void 0},rb=hb.next())mb.Qd=rb.value,ra.minHdcpVersions.includes(mb.Qd)||$a.push(Ga.getStatusForPolicy({minHdcpVersion:mb.Qd}).then(function(Td){return function(ic){"usable"!=ic||ra.minHdcpVersions.includes(Td.Qd)||ra.minHdcpVersions.push(Td.Qd)}}(mb)));return F(Ma,Promise.all($a),0)}Ma.u(0)}})};v=function(W,Fa,Ga,xa){var qa, -Da,Ja,ra,da,sa,Za,$a,hb,rb,mb;return Q(function(Ma){switch(Ma.g){case 1:wa(Ma,2);qa=ed(n);Da=t(qa.videoCapabilities);for(Ja=Da.next();!Ja.done;Ja=Da.next())ra=Ja.value,ra.encryptionScheme=Fa,ra.robustness=Ga;da=t(qa.audioCapabilities);for(sa=da.next();!sa.done;sa=da.next())Za=sa.value,Za.encryptionScheme=Fa,Za.robustness=xa;$a=ed(qa);$a.persistentState="required";$a.sessionTypes=["persistent-license"];hb=[$a,qa];mb=qb();return"MOBILE"==mb.La()?F(Ma,df(5,navigator.requestMediaKeySystemAccess(W,hb)), -7):F(Ma,navigator.requestMediaKeySystemAccess(W,hb),6);case 6:rb=Ma.h;Ma.u(5);break;case 7:rb=Ma.h;case 5:return F(Ma,w(W,rb),8);case 8:za(Ma,0);break;case 2:Aa(Ma),G(Ma)}})};y=function(W,Fa,Ga,xa){var qa,Da,Ja,ra;return Q(function(da){switch(da.g){case 1:return wa(da,2),qa={type:"media-source",video:{contentType:l[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:m[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:W,video:{encryptionScheme:Fa, -robustness:Ga},audio:{encryptionScheme:Fa,robustness:xa}}},Ja=qb(),"MOBILE"==Ja.La()?F(da,df(5,navigator.mediaCapabilities.decodingInfo(qa)),7):F(da,navigator.mediaCapabilities.decodingInfo(qa),6);case 6:Da=da.h;da.u(5);break;case 7:Da=da.h;case 5:return ra=Da.keySystemAccess,F(da,w(W,ra),8);case 8:za(da,0);break;case 2:Aa(da),G(da)}})};z=t(a);for(A=z.next();!A.done;A=z.next())B=A.value,r.set(B,null);E=function(W){return"WEBKIT"===qb().Ea()&&"org.w3.clearkey"===W?!1:!0};H=[];C=t(q);for(D=C.next();!D.done;D= -C.next())for(I=D.value,L=t(a),K=L.next();!K.done;K=L.next())J=K.value,E(J)&&(H.push(v(J,I,"","")),H.push(y(J,I,"","")));M=t(a);for(O=M.next();!O.done;O=M.next())for(N=O.value,P=t(k[N]||[]),R=P.next();!R.done;R=P.next())S=R.value,E(N)&&(H.push(v(N,null,S,"")),H.push(v(N,null,"",S)),H.push(y(N,null,S,"")),H.push(y(N,null,"",S)));return F(aa,Promise.all(H),2)}return aa.return(Yg(r))})} -function $h(a){return Q(function(b){if(1==b.g)return wa(b,2),F(b,df(ci,Promise.all([a.close().catch(function(){}),a.closed])),4);if(2!=b.g)return za(b,0);Aa(b);G(b)})} -function vh(a){var b;return Q(function(c){b=Array.from(a.i.entries());a.i.clear();return F(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return Q(function(g){if(1==g.g)return wa(g,2),a.oa||a.B.has(e.sessionId)||"persistent-license"!==f.type||a.g.persistentSessionOnlinePlayback?F(g,$h(e),5):F(g,e.remove(),5);if(2!=g.g)return za(g,0);Aa(g);G(g)})})),0)})}function Dh(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])} -function qh(a){a.i.forEach(function(b,c){var d=b.Ng,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Ng=e)})}function Oh(a){a=a.i.values();return Wg(a,function(b){return b.loaded})}function Nh(a){for(var b=t(a.h&&a.h.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.W.get(c.value))return!1;return!0} -function Ch(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)} -function Uh(a,b,c,d,e,f,g,h){var k=[];a=t(a);for(var l=a.next(),m={};!l.done;m={Ha:void 0},l=a.next()){m.Ha=l.value;b.includes(m.Ha.encryptionScheme)||b.push(m.Ha.encryptionScheme);"org.w3.clearkey"==m.Ha.keySystem&&m.Ha.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(m.Ha.licenseServerUri)||k.push(m.Ha.licenseServerUri):c.includes(m.Ha.licenseServerUri)||c.push(m.Ha.licenseServerUri);e.includes(m.Ha.serverCertificateUri)||e.push(m.Ha.serverCertificateUri);m.Ha.serverCertificate&& -(d.some(function(r){return function(u){return Sb(u,r.Ha.serverCertificate)}}(m))||d.push(m.Ha.serverCertificate));if(m.Ha.initData){l=t(m.Ha.initData);for(var n=l.next(),q={};!n.done;q={Eg:void 0},n=l.next())q.Eg=n.value,f.some(function(r){return function(u){var w=r.Eg;return u.keyId&&u.keyId==w.keyId?!0:u.initDataType==w.initDataType&&Sb(u.initData,w.initData)}}(q))||f.push(q.Eg)}if(m.Ha.keyIds)for(l=t(m.Ha.keyIds),n=l.next();!n.done;n=l.next())g.add(n.value);if(m.Ha.keySystemUris&&h)for(m=t(m.Ha.keySystemUris), +{contentType:'video/webm; codecs="vp8"'}];m=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}];n={videoCapabilities:l,audioCapabilities:m,initDataTypes:["cenc","sinf","skd","keyids"]};q=[null,"cenc","cbcs","cbcs-1-9"];r=new Map;u=rb();w=function(W,Fa){var Ga,ya,qa,Ca,Ja,ra,da,sa,Za,$a,ib,qb,mb;return Q(function(Na){switch(Na.g){case 1:return wa(Na,2),F(Na,Fa.createMediaKeys(),5);case 5:Ga=Na.h;case 4:za(Na,3);break;case 2:return Aa(Na),Na.return();case 3:qa= +(ya=Fa.getConfiguration().sessionTypes)?ya.includes("persistent-license"):!1;u.ki()&&(qa=!1);Ca=Fa.getConfiguration().videoCapabilities;Ja=Fa.getConfiguration().audioCapabilities;ra={persistentState:qa,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]};r.has(W)&&r.get(W)?ra=r.get(W):r.set(W,ra);(da=Ca[0].encryptionScheme)&&!ra.encryptionSchemes.includes(da)&&ra.encryptionSchemes.push(da);(sa=Ca[0].robustness)&&!ra.videoRobustnessLevels.includes(sa)&&ra.videoRobustnessLevels.push(sa); +(Za=Ja[0].robustness)&&!ra.audioRobustnessLevels.includes(Za)&&ra.audioRobustnessLevels.push(Za);if("getStatusForPolicy"in Ga){$a=[];ib=t(f);qb=ib.next();for(mb={};!qb.done;mb={Rd:void 0},qb=ib.next())mb.Rd=qb.value,ra.minHdcpVersions.includes(mb.Rd)||$a.push(Ga.getStatusForPolicy({minHdcpVersion:mb.Rd}).then(function(Td){return function(gc){"usable"!=gc||ra.minHdcpVersions.includes(Td.Rd)||ra.minHdcpVersions.push(Td.Rd)}}(mb)));return F(Na,Promise.all($a),0)}Na.u(0)}})};v=function(W,Fa,Ga,ya){var qa, +Ca,Ja,ra,da,sa,Za,$a,ib,qb,mb;return Q(function(Na){switch(Na.g){case 1:wa(Na,2);qa=fd(n);Ca=t(qa.videoCapabilities);for(Ja=Ca.next();!Ja.done;Ja=Ca.next())ra=Ja.value,ra.encryptionScheme=Fa,ra.robustness=Ga;da=t(qa.audioCapabilities);for(sa=da.next();!sa.done;sa=da.next())Za=sa.value,Za.encryptionScheme=Fa,Za.robustness=ya;$a=fd(qa);$a.persistentState="required";$a.sessionTypes=["persistent-license"];ib=[$a,qa];mb=rb();return"MOBILE"==mb.La()?F(Na,ef(5,navigator.requestMediaKeySystemAccess(W,ib)), +7):F(Na,navigator.requestMediaKeySystemAccess(W,ib),6);case 6:qb=Na.h;Na.u(5);break;case 7:qb=Na.h;case 5:return F(Na,w(W,qb),8);case 8:za(Na,0);break;case 2:Aa(Na),G(Na)}})};y=function(W,Fa,Ga,ya){var qa,Ca,Ja,ra;return Q(function(da){switch(da.g){case 1:return wa(da,2),qa={type:"media-source",video:{contentType:l[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:m[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:W,video:{encryptionScheme:Fa, +robustness:Ga},audio:{encryptionScheme:Fa,robustness:ya}}},Ja=rb(),"MOBILE"==Ja.La()?F(da,ef(5,navigator.mediaCapabilities.decodingInfo(qa)),7):F(da,navigator.mediaCapabilities.decodingInfo(qa),6);case 6:Ca=da.h;da.u(5);break;case 7:Ca=da.h;case 5:return ra=Ca.keySystemAccess,F(da,w(W,ra),8);case 8:za(da,0);break;case 2:Aa(da),G(da)}})};z=t(a);for(A=z.next();!A.done;A=z.next())C=A.value,r.set(C,null);E=function(W){return"WEBKIT"===rb().Da()&&"org.w3.clearkey"===W?!1:!0};H=[];B=t(q);for(D=B.next();!D.done;D= +B.next())for(I=D.value,K=t(a),J=K.next();!J.done;J=K.next())L=J.value,E(L)&&(H.push(v(L,I,"","")),H.push(y(L,I,"","")));N=t(a);for(O=N.next();!O.done;O=N.next())for(M=O.value,P=t(k[M]||[]),R=P.next();!R.done;R=P.next())S=R.value,E(M)&&(H.push(v(M,null,S,"")),H.push(v(M,null,"",S)),H.push(y(M,null,S,"")),H.push(y(M,null,"",S)));return F(aa,Promise.all(H),2)}return aa.return(Zg(r))})} +function ai(a){return Q(function(b){if(1==b.g)return wa(b,2),F(b,ef(di,Promise.all([a.close().catch(function(){}),a.closed])),4);if(2!=b.g)return za(b,0);Aa(b);G(b)})} +function wh(a){var b;return Q(function(c){b=Array.from(a.i.entries());a.i.clear();return F(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return Q(function(g){if(1==g.g)return wa(g,2),a.oa||a.B.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?F(g,ai(e),5):F(g,e.remove(),5);if(2!=g.g)return za(g,0);Aa(g);G(g)})})),0)})}function Eh(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])} +function uh(a){a.i.forEach(function(b,c){var d=b.Og,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Og=e)})}function Ph(a){a=a.i.values();return Xg(a,function(b){return b.loaded})}function Oh(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.W.get(c.value))return!1;return!0} +function Dh(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)} +function Vh(a,b,c,d,e,f,g,h){var k=[];a=t(a);for(var l=a.next(),m={};!l.done;m={Ha:void 0},l=a.next()){m.Ha=l.value;b.includes(m.Ha.encryptionScheme)||b.push(m.Ha.encryptionScheme);"org.w3.clearkey"==m.Ha.keySystem&&m.Ha.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(m.Ha.licenseServerUri)||k.push(m.Ha.licenseServerUri):c.includes(m.Ha.licenseServerUri)||c.push(m.Ha.licenseServerUri);e.includes(m.Ha.serverCertificateUri)||e.push(m.Ha.serverCertificateUri);m.Ha.serverCertificate&& +(d.some(function(r){return function(u){return Sb(u,r.Ha.serverCertificate)}}(m))||d.push(m.Ha.serverCertificate));if(m.Ha.initData){l=t(m.Ha.initData);for(var n=l.next(),q={};!n.done;q={Fg:void 0},n=l.next())q.Fg=n.value,f.some(function(r){return function(u){var w=r.Fg;return u.keyId&&u.keyId==w.keyId?!0:u.initDataType==w.initDataType&&Sb(u.initData,w.initData)}}(q))||f.push(q.Fg)}if(m.Ha.keyIds)for(l=t(m.Ha.keyIds),n=l.next();!n.done;n=l.next())g.add(n.value);if(m.Ha.keySystemUris&&h)for(m=t(m.Ha.keySystemUris), l=m.next();!l.done;l=m.next())h.add(l.value)}if(1==k.length)c.push(k[0]);else if(0>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}} -function Bi(a,b,c){var d=a.T(),e=[],f=null;c&1&&(f=a.Sg());c&4&&a.skip(4);for(var g=0;ga?"0":"")+a};function Hi(a){if(!Ii){Ii=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Ji=Ki("ftyp",b,d,b,c);b=Ki("dref",Li);Mi=Ki("dinf",b)}this.g=a} -function Ni(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Ki;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Oi+1));m=Math.floor(m%(Oi+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Pi(h,4)),[0,0,0,0],x(Pi(n,4)),x(Pi(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],x(Pi(k,2)),[0,0],x(Pi(l, -2)),[0,0]));h=Ki("tkhd",h);k=Ki;n=g.duration*g.timescale;l=Math.floor(n/(Oi+1));n=Math.floor(n%(Oi+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Pi(g.timescale,4)),x(Pi(l,4)),x(Pi(n,4)),x(Pi(m,2)),[0,0]));l=Ki("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Qi;break;case "audio":m=Ri}n=Ki("hdlr",m);a:{switch(g.type){case "video":g=Ki("minf",Ki("vmhd",Si),Mi,Ti(g));break a; -case "audio":g=Ki("minf",Ki("smhd",Ui),Mi,Ti(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=pc.apply(jc,x(b));f=a.g[0];c=Ki;d=f.duration*f.timescale;e=Math.floor(d/(Oi+1));d=Math.floor(d%(Oi+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Pi(f.timescale,4)),x(Pi(e,4)),x(Pi(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255, -255]));e=Ki("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(x(Pi(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),k=Ki("trex",k),h.call(g,k);a=pc.apply(jc,x(d));a=Ki("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=pc.apply(jc,x(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Ji.byteLength+ -a.byteLength);b.set(Ji);b.set(a,Ji.byteLength);return b} -function Ti(a){var b=Ki,c="aac";a.codecs.includes("mp3")?c="mp3":a.codecs.includes("ac-3")?c=qb().ae()?"ec-3":"ac-3":a.codecs.includes("ec-3")?c="ec-3":a.codecs.includes("opus")&&(c="opus");var d=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;d=a.stream.height||0;if(0>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(x(Pi(c,2)),x(Pi(d,2)),[0,72,0,0,0,72, -0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=Wi(a);g=new Uint8Array([]);a.encrypted&&(g=Xi(0,a.stream,a.codecs),d="encv");d=Ki(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=Xi(0,a.stream,a.codecs),d="enca");a=Ki(d,Yi(a),c,e)}d=a}a=Ki("stsd",Zi,d);return b("stbl",a,Ki("stts",$i),Ki("stsc",aj),Ki("stsz",bj),Ki("stco",cj))}function Wi(a){if(!a.Wa&&!a.Xa)return new Uint8Array([]);var b=a.Xa;a=new Uint8Array([].concat(x(Pi(a.Wa,4)),x(Pi(b,4))));return Ki("pasp",a)} -function Yi(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(x(Pi(a.stream.audioSamplingRate||44100,2)),[0,0]))} -function Xi(a,b,c){a=Ki;c=new Uint8Array([].concat(x(Pi(dj(c.split(".")[0]),4))));c=Ki("frma",c);var d="cenc";var e=b.drmInfos[0];e&&e.encryptionScheme&&(d=e.encryptionScheme);d=new Uint8Array([0,0,0,0].concat(x(Pi(dj(d),4)),[0,1,0,0]));d=Ki("schm",d);e=Ki;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);b=t(b.drmInfos);for(var g=b.next();!g.done;g=b.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=Vi(h.value)}b=new Uint8Array([0,0,0,0,0, -0,1,8]);b=Ki("tenc",b,f);return a("sinf",c,d,e("schi",b))} -function ej(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Ki;var g=new Uint8Array([0,0,0,0].concat(x(Pi(c.data?c.data.Tb:0,4))));g=Ki("mfhd",g);var h;var k=c.data?c.data.xb:[];var l=new Uint8Array(4+k.length);for(h=0;h>8*b&255);return c}function Vi(a){for(var b=new Uint8Array(a.length/2),c=0;c>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c>8*m&255);a.set(new Uint8Array(l),h);a.set(k,h+4);h=t(g);for(k=h.next();!k.done;k=h.next())k=k.value,mj(a,k.start,k.size+4)}}return a} -function jj(a,b,c,d,e,f){var g=Xi(new Hi([]),a,d.name),h=b.subarray(d.start,d.start+d.size);a=new Uint8Array(d.size+g.byteLength);a.set(h,0);Yb(a).setUint32(4,f);a.set(g,d.size);mj(a,0,a.byteLength);f=new Uint8Array(b.byteLength+a.byteLength);d=qb().Ze()?d.start:d.start+d.size;g=b.subarray(d);f.set(b.subarray(0,d));f.set(a,d);f.set(g,d+a.byteLength);b=t(e);for(e=b.next();!e.done;e=b.next())e=e.value,mj(f,e.start,e.size+a.byteLength);a=Yb(f,c.start);c=hh(c);b=a.getUint32(c);a.setUint32(c,b+1);return f} -function mj(a,b,c){a=Yb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))} -function nj(a){function b(e){d.push({start:e.start,size:e.size});gh(e)}var c=Tb(a),d=[];(new bh).box("moov",b).box("trak",b).box("mdia",b).box("minf",b).box("stbl",b).box("stsd",function(e){d.push({start:e.start,size:e.size});for(var f=Yb(c,e.start),g=0;ga.end(0)-a.start(0)}function vj(a){return!a||uj(a)?null:a.length?a.end(a.length-1):null}function wj(a,b){return!a||!a.length||uj(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function xj(a,b){if(!a||!a.length||uj(a))return 0;var c=0;a=t(yj(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c} -function zj(a,b,c){if(!a||!a.length||uj(a))return null;a=yj(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function yj(a){if(!a)return[];for(var b=[],c=0;c>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}} +function Ci(a,b,c){var d=a.T(),e=[],f=null;c&1&&(f=a.Tg());c&4&&a.skip(4);for(var g=0;ga?"0":"")+a};function Ii(a){if(!Ji){Ji=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Ki=Li("ftyp",b,d,b,c);b=Li("dref",Mi);Ni=Li("dinf",b)}this.g=a} +function Oi(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Li;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Pi+1));m=Math.floor(m%(Pi+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Qi(h,4)),[0,0,0,0],x(Qi(n,4)),x(Qi(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],x(Qi(k,2)),[0,0],x(Qi(l, +2)),[0,0]));h=Li("tkhd",h);k=Li;n=g.duration*g.timescale;l=Math.floor(n/(Pi+1));n=Math.floor(n%(Pi+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Qi(g.timescale,4)),x(Qi(l,4)),x(Qi(n,4)),x(Qi(m,2)),[0,0]));l=Li("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Ri;break;case "audio":m=Si}n=Li("hdlr",m);a:{switch(g.type){case "video":g=Li("minf",Li("vmhd",Ti),Ni,Ui(g));break a; +case "audio":g=Li("minf",Li("smhd",Vi),Ni,Ui(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=pc.apply(jc,x(b));f=a.g[0];c=Li;d=f.duration*f.timescale;e=Math.floor(d/(Pi+1));d=Math.floor(d%(Pi+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Qi(f.timescale,4)),x(Qi(e,4)),x(Qi(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255, +255]));e=Li("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(x(Qi(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),k=Li("trex",k),h.call(g,k);a=pc.apply(jc,x(d));a=Li("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=pc.apply(jc,x(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Ki.byteLength+ +a.byteLength);b.set(Ki);b.set(a,Ki.byteLength);return b} +function Ui(a){var b=Li,c="aac";a.codecs.includes("mp3")?c="mp3":a.codecs.includes("ac-3")?c=rb().be()?"ec-3":"ac-3":a.codecs.includes("ec-3")?c="ec-3":a.codecs.includes("opus")&&(c="opus");var d=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;d=a.stream.height||0;if(0>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(x(Qi(c,2)),x(Qi(d,2)),[0,72,0,0,0,72, +0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=Xi(a);g=new Uint8Array([]);a.encrypted&&(g=Yi(0,a.stream,a.codecs),d="encv");d=Li(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=Yi(0,a.stream,a.codecs),d="enca");a=Li(d,Zi(a),c,e)}d=a}a=Li("stsd",$i,d);return b("stbl",a,Li("stts",aj),Li("stsc",bj),Li("stsz",cj),Li("stco",dj))}function Xi(a){if(!a.Va&&!a.Wa)return new Uint8Array([]);var b=a.Wa;a=new Uint8Array([].concat(x(Qi(a.Va,4)),x(Qi(b,4))));return Li("pasp",a)} +function Zi(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(x(Qi(a.stream.audioSamplingRate||44100,2)),[0,0]))} +function Yi(a,b,c){a=Li;c=new Uint8Array([].concat(x(Qi(ej(c.split(".")[0]),4))));c=Li("frma",c);var d="cenc";var e=b.drmInfos[0];e&&e.encryptionScheme&&(d=e.encryptionScheme);d=new Uint8Array([0,0,0,0].concat(x(Qi(ej(d),4)),[0,1,0,0]));d=Li("schm",d);e=Li;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);b=t(b.drmInfos);for(var g=b.next();!g.done;g=b.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=Wi(h.value)}b=new Uint8Array([0,0,0,0,0, +0,1,8]);b=Li("tenc",b,f);return a("sinf",c,d,e("schi",b))} +function fj(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Li;var g=new Uint8Array([0,0,0,0].concat(x(Qi(c.data?c.data.Tb:0,4))));g=Li("mfhd",g);var h;var k=c.data?c.data.yb:[];var l=new Uint8Array(4+k.length);for(h=0;h>8*b&255);return c}function Wi(a){for(var b=new Uint8Array(a.length/2),c=0;c>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c>8*m&255);a.set(new Uint8Array(l),h);a.set(k,h+4);h=t(g);for(k=h.next();!k.done;k=h.next())k=k.value,nj(a,k.start,k.size+4)}}return a} +function kj(a,b,c,d,e,f){var g=Yi(new Ii([]),a,d.name),h=b.subarray(d.start,d.start+d.size);a=new Uint8Array(d.size+g.byteLength);a.set(h,0);Yb(a).setUint32(4,f);a.set(g,d.size);nj(a,0,a.byteLength);f=new Uint8Array(b.byteLength+a.byteLength);d=rb().Ye()?d.start:d.start+d.size;g=b.subarray(d);f.set(b.subarray(0,d));f.set(a,d);f.set(g,d+a.byteLength);b=t(e);for(e=b.next();!e.done;e=b.next())e=e.value,nj(f,e.start,e.size+a.byteLength);a=Yb(f,c.start);c=ih(c);b=a.getUint32(c);a.setUint32(c,b+1);return f} +function nj(a,b,c){a=Yb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))} +function oj(a){function b(e){d.push({start:e.start,size:e.size});hh(e)}var c=Tb(a),d=[];(new ch).box("moov",b).box("trak",b).box("mdia",b).box("minf",b).box("stbl",b).box("stsd",function(e){d.push({start:e.start,size:e.size});for(var f=Yb(c,e.start),g=0;ga.end(0)-a.start(0)}function wj(a){return!a||vj(a)?null:a.length?a.end(a.length-1):null}function xj(a,b){return!a||!a.length||vj(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function yj(a,b){if(!a||!a.length||vj(a))return 0;var c=0;a=t(zj(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c} +function Aj(a,b,c){if(!a||!a.length||vj(a))return null;a=zj(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function zj(a){if(!a)return[];for(var b=[],c=0;ca[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Jj(a,b){return b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Kj(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127} -function Lj(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=ac(Tb(a.data,1,c)),e=a.data[2+c],f=a.data.subarray(3+c).indexOf(0);if(-1===f)return null;var g=ac(Tb(a.data,3+c,f)),h;"--\x3e"===d?h=ac(Tb(a.data,4+c+f)):h=Ub(a.data.subarray(4+c+f));b.mimeType=d;b.pictureType=e;b.description=g;b.data=h;return b}if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null; +function Ij(){}function Jj(a,b){return b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Kj(a,b){return b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Lj(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127} +function Mj(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=ac(Tb(a.data,1,c)),e=a.data[2+c],f=a.data.subarray(3+c).indexOf(0);if(-1===f)return null;var g=ac(Tb(a.data,3+c,f)),h;"--\x3e"===d?h=ac(Tb(a.data,4+c+f)):h=Ub(a.data.subarray(4+c+f));b.mimeType=d;b.pictureType=e;b.description=g;b.data=h;return b}if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null; d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=ac(Tb(a.data,1,d));a=ac(Tb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=ac(Tb(a.data,1,d));a=ac(Tb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=ac(Tb(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"== c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=Ub(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=ac(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=ac(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Ub(a.data),b):null} -function Mj(a){for(var b=0,c=[];Ij(a,b);){var d=Kj(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10>6&1&&(d+=10),d+=10,d+=Kj(a,b+6),Jj(a,b+10)&&(d+=10),b+=d;return 0>6&1&&(b+=10);b+=10;for(d=b+d;b+10>6&1&&(d+=10),d+=10,d+=Lj(a,b+6),Kj(a,b+10)&&(d+=10),b+=d;return 0>>32-c;a.g-=c;0>>b))return a.h<<=b,a.g-=b,b;Qj(a);return b+Tj(a)}function Uj(a){Rj(a,1+Tj(a))}function X(a){var b=Tj(a);return Sj(a,b+1)-1}function Vj(a){a=X(a);return 1&a?1+a>>>1:-1*(a>>>1)}function Wj(a){return 1===Sj(a,1)}function Xj(a){return Sj(a,8)} -function Yj(a,b){for(var c=8,d=8,e=0;ea.length)return this;for(var b=Math.max(0,bk(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.G=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.G:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Xe:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h< +function Qj(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d>>32-c;a.g-=c;0>>b))return a.h<<=b,a.g-=b,b;Rj(a);return b+Uj(a)}function Vj(a){Sj(a,1+Uj(a))}function X(a){var b=Uj(a);return Tj(a,b+1)-1}function Wj(a){a=X(a);return 1&a?1+a>>>1:-1*(a>>>1)}function Xj(a){return 1===Tj(a,1)}function Yj(a){return Tj(a,8)} +function Zj(a,b){for(var c=8,d=8,e=0;ea.length)return this;for(var b=Math.max(0,ck(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.G=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.G:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,We:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h< k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0b.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.s&&(a.s=e);c.pts=dk(e,a.s);a.s=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.o&&(a.o=d),c.dts=dk(d, -a.o));a.o=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}p.wk=function(a){wb("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Pg(a,{Wd:null,state:null})}; -p.Pg=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;"hvc"==this.m&&(e=2);var f=b.state||0,g=f,h=0,k=[],l=-1,m=0;-1==f&&(l=0,m="hvc"==this.m?a[0]>>1&63:a[0]&31,f=0,h=1);for(;h>1&63:a[h]&31,l=h,f=0):f=-1}else f=0;else f=3;else f=n?0:1}0<=l&&0<=f&&k.push({data:a.subarray(l+e,d),fullData:a.subarray(l,d),type:m,time:c,state:f});!k.length&&b.Wd&&(c=k.length?k[k.length-1]:b.Wd)&&(c.data=pc(c.data,a),c.fullData=pc(c.fullData,a));b.state=f;return k}; -p.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=pc.apply(jc,x(c.value)),(c=ck(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Mj(c.data),dts:c.dts,pts:c.pts});return a}; -p.rb=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){var d=pc.apply(jc,x(c.value)),e=ck(this,d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=pc(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h}; -p.Mc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=pc.apply(jc,x(d.value)),f=ck(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=pc(d.data,e),this.g.push(d))}if(a){c={Wd:null,state:null};d=[];e=t(this.g);for(f=e.next();!f.done;f=e.next())f=f.value, -f.nalus=this.Pg(f,c),f.nalus.length&&(d.push(f),c.Wd=f.nalus[f.nalus.length-1]);this.g=d}b&&(this.g=this.g.sort(function(g,h){var k=(g.pts||0)-(h.pts||0);return(g.dts||0)-(h.dts||0)||k}))}return a?this.g:(a=this.g,this.g=[],a)};p.getStartTime=function(a){if("audio"==a){a=null;var b=this.rb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Mc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};p.Ld=function(){return{audio:this.A,video:this.m}}; -p.We=function(){for(var a=[],b=t(this.Mc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};p.Vj=function(){wb("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.Cg();return{height:a.height,width:a.width}};p.Cg=function(){return"hvc"==this.m?mk(this):nk(this)};function ok(a){var b=a.Mc();return 1h?Yj(c,16):Yj(c,64))}}Uj(c);g=X(c);if(0===g)X(c);else if(1===g)for(Rj(c,1),Uj(c),Uj(c),g=X(c),h=0;hy;y++)Sj(d,2);for(y=0;yC;C++)H|=(E>>C&1)<<31-C;return H>>>0}(k);g=1==g?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+u;r&&(f+="."+r.toString(16).toUpperCase());q&&(f+="."+q.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase()); -c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=ok(a);return b}function dk(a,b){var c=1;for(a>b&&(c=-1);4294967296bk(a)?!1:!0}function bk(a){for(var b=Math.min(1E3,a.length-564),c=0;ca.start(0)?0:a.length?a.start(0):null):a=null;return a}function Gk(a,b){return a.l.size?b==wc?a.h.h:vj(Fk(a,b)):null}function Hk(a,b,c){if(b==wc)return a=a.h,null==a.h||a.hb.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.s&&(a.s=e);c.pts=ek(e,a.s);a.s=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.o&&(a.o=d),c.dts=c.pts!= +e?ek(d,a.o):d);a.o=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}p.xk=function(a){wb("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Qg(a,{Xd:null,state:null})}; +p.Qg=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;"hvc"==this.m&&(e=2);var f=b.state||0,g=f,h=0,k=[],l=-1,m=0;-1==f&&(l=0,m="hvc"==this.m?a[0]>>1&63:a[0]&31,f=0,h=1);for(;h>1&63:a[h]&31,l=h,f=0):f=-1}else f=0;else f=3;else f=n?0:1}0<=l&&0<=f&&k.push({data:a.subarray(l+e,d),fullData:a.subarray(l,d),type:m,time:c,state:f});!k.length&&b.Xd&&(c=k.length?k[k.length-1]:b.Xd)&&(c.data=pc(c.data,a),c.fullData=pc(c.fullData,a));b.state=f;return k}; +p.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=pc.apply(jc,x(c.value)),(c=dk(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Nj(c.data),dts:c.dts,pts:c.pts});return a}; +p.rb=function(){if(this.i.length&&!this.h.length)for(var a=t(this.i),b=a.next();!b.done;b=a.next()){var c=pc.apply(jc,x(b.value)),d=dk(this,c);b=this.h.length?this.h[this.h.length-1]:null;d&&null!=d.pts&&null!=d.dts&&(!b||b.pts!=d.pts&&b.dts!=d.dts)?this.h.push(d):this.h.length&&(c=d?d.data:c)&&(b=this.h.pop(),b.data=pc(b.data,c),this.h.push(b))}return this.h}; +p.Qc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=t(this.j),c=b.next();!c.done;c=b.next()){var d=pc.apply(jc,x(c.value)),e=dk(this,d);c=this.g.length?this.g[this.g.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?this.g.push(e):this.g.length&&(d=e?e.data:d)&&(c=this.g.pop(),c.data=pc(c.data,d),this.g.push(c))}if(a){b={Xd:null,state:null};c=[];d=t(this.g);for(e=d.next();!e.done;e=d.next())e=e.value,e.nalus=this.Qg(e,b),e.nalus.length&&(c.push(e), +b.Xd=e.nalus[e.nalus.length-1]);this.g=c}}return a?this.g:(a=this.g,this.g=[],a)};p.getStartTime=function(a){if("audio"==a){a=null;var b=this.rb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Qc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};p.Md=function(){return{audio:this.A,video:this.m}};p.Ve=function(){for(var a=[],b=t(this.Qc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a}; +p.Wj=function(){wb("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.Dg();return{height:a.height,width:a.width}};p.Dg=function(){return"hvc"==this.m?fk(this):ok(this)};function pk(a){var b=a.Qc();return 1h?Zj(c,16):Zj(c,64))}}Vj(c);g=X(c);if(0===g)X(c);else if(1===g)for(Sj(c,1),Vj(c),Vj(c),g=X(c),h=0;hy;y++)Tj(d,2);for(y=0;yB;B++)H|=(E>>B&1)<<31-B;return H>>>0}(k);g=1==g?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+u;r&&(f+="."+r.toString(16).toUpperCase());q&&(f+="."+q.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase()); +c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=pk(a);return b}function ek(a,b){var c=1;for(a>b&&(c=-1);4294967296ck(a)?!1:!0}function ck(a){for(var b=Math.min(1E3,a.length-564),c=0;ca.start(0)?0:a.length?a.start(0):null):a=null;return a}function Hk(a,b){return a.l.size?b==wc?a.h.h:wj(Gk(a,b)):null}function Ik(a,b,c){if(b==wc)return a=a.h,null==a.h||a.hb?F(g,Kk(e,a,function(){return Qk(e,a,b,c)},null),5):g.u(0)):e.m?F(g,Kk(e,f.Y,function(){return Qk(e,f.Y,b,c)},null),0):g.u(0)})}; -function Rk(a,b){var c;return Q(function(d){return 1==d.g?(c=yc,b==c.Oa?a.h?F(d,a.h.remove(0,Infinity),0):d.return():F(d,Kk(a,b,function(){return Qk(a,b,0,a.i.duration)},null),4)):a.m?F(d,Kk(a,c.Y,function(){return Qk(a,c.Y,0,a.i.duration)},null),0):d.u(0)})}p.flush=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=yc,a==c.Oa?d.return():F(d,Kk(b,a,function(){b.g.currentTime-=.001;Ck(b,a)},null),2)):b.m?F(d,Kk(b,c.Y,function(){var e=c.Y;b.g.currentTime-=.001;Ck(b,e)},null),0):d.u(0)})}; -function Sk(a,b,c,d,e,f,g,h,k){var l,m,n;return Q(function(q){if(1==q.g){l=yc;if(b==l.Oa)return f||(a.h.s=c),Ve(a.h,d,e),q.return();m=[];return F(q,Tk(a,b,g,h,k),2)}n=q.h;n||(m.push(Kk(a,b,function(){return Lk(a,b)},null)),a.m&&m.push(Kk(a,l.Y,function(){return Lk(a,l.Y)},null)));f||(m.push(Kk(a,b,function(){return Mk(a,b,c)},null)),a.m&&m.push(Kk(a,l.Y,function(){return Mk(a,l.Y,c)},null)));if(0!=d||Infinity!=e)m.push(Kk(a,b,function(){var r=a.l.get(b);r.appendWindowStart=0;r.appendWindowEnd=e;r.appendWindowStart= -d;Ck(a,b)},null)),a.m&&m.push(Kk(a,l.Y,function(){var r=l.Y,u=a.l.get(r);u.appendWindowStart=0;u.appendWindowEnd=e;u.appendWindowStart=d;Ck(a,r)},null));return m.length?F(q,Promise.all(m),0):q.u(0)})} -function Uk(a,b,c){var d,e;return Q(function(f){if(1==f.g){d=yc;if(b==d.Oa)return f.return();b==d.wa&&(a.Ua=new tg);if(!a.F||(e=Gk(a,b))&&.1>Math.abs(e-c))return f.return();Kk(a,b,function(){return Lk(a,b)},null);a.m&&Kk(a,d.Y,function(){return Lk(a,d.Y)},null);return F(f,Kk(a,b,function(){return Mk(a,b,c)},null),2)}return a.m?F(f,Kk(a,d.Y,function(){return Mk(a,d.Y,c)},null),0):f.u(0)})} -p.endOfStream=function(a){var b=this;return Q(function(c){return F(c,Vk(b,function(){xk(b)||yk(b)||(a?b.i.endOfStream(a):b.i.endOfStream())}),0)})};p.ob=function(a){var b=this;return Q(function(c){return F(c,Vk(b,function(){if(b.s.durationReductionEmitsUpdateEnd&&ac&&(c+=.001);var d=!0;"HLS"==a.S&&(d=Gk(a,b),d=!d||.15=b.o&&d&&!b.i)b.j&&b.j(b.g,e),b.i=!0,b.g=c.g.currentTime;b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=zj(c,b,a.h.gapDetectionThreshold),null==d||0==d&&!a.A||(e=c.start(d), -(f=a.h.gapPadding)&&(e=Math.ceil(100*(e+f))/100),e>=a.B.Db()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.j&&(a.j=e),a.C++,a.s(new V("gapjumped")))))}}} -function gl(a){if(!a.h.stallEnabled)return null;var b=a.h.stallThreshold,c=a.h.stallSkip;return new jl(new kl(a.g),b,function(){var d;return Q(function(e){if(1==e.g)return d=yj(a.g.buffered),d.length?c?(a.g.currentTime+=c,e.u(2)):F(e,a.g.play(),3):e.return();if(2!=e.g){if(!a.g)return e.return();a.g.pause();a.g.play()}a.G++;a.s(new V("stalldetected"));G(e)})})}function jl(a,b,c){this.h=a;this.m=il(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.i=!1;this.o=b;this.j=c} -jl.prototype.release=function(){this.h&&this.h.release();this.j=this.h=null};function kl(a){var b=this;this.g=a;this.h=new jb;this.i=!1;this.h.D(this.g,"audiofocuspaused",function(){b.i=!0});this.h.D(this.g,"audiofocusgranted",function(){b.i=!1});this.h.D(this.g,"audiofocuslost",function(){b.i=!0})} -function il(a){if(a.g.paused||0==a.g.playbackRate||a.i||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(yj(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(bc.end-.5)){b=!0;break a}b=!1}return b}kl.prototype.release=function(){this.h&&this.h.release();this.h=null};function ll(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=ml.value().get(b),c.za(a,b,d))}var ml=new pb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function nl(a,b,c,d){var e=this;this.g=a;this.m=b;this.s=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new jb;this.i=new ol(a);ll(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){pl(e,e.j())})}nl.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function ql(a){return a.o?a.g.currentTime:a.j()} -function rl(a,b){0Math.abs(a.g.currentTime-b)?tl(a):(a.h.za(a.g,"seeking",function(){tl(a)}),sl(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function tl(a){a.o=!0;a.h.D(a.g,"seeking",function(){return a.m()});a.s(a.g.currentTime)} -function ol(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new $e(function(){0>=b.i?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--)})}ol.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};function sl(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.Ga(.1)};function ul(a){this.g=a;this.i=!1;this.h=null;this.j=new jb}p=ul.prototype;p.ready=function(){function a(){if(null==b.h||0==b.h&&Infinity!=b.g.duration)b.i=!0;else{var c=b.g.currentTime,d=null;if("number"===typeof b.h)d=b.h;else if(b.h instanceof Date){var e=vl(b);null!==e&&(d=b.h.getTime()/1E3-e,d=wl(b,d))}null==d?b.i=!0:(0>d&&(d=Math.max(0,c+d)),c!=d?(b.j.za(b.g,"seeking",function(){b.i=!0}),b.g.currentTime=d):b.i=!0)}}var b=this;ll(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){a()})}; -p.release=function(){this.j&&(this.j.release(),this.j=null);this.g=null};p.Pf=function(a){this.h=this.i?this.h:a};p.Be=function(){var a=this.i?this.g.currentTime:this.h;a instanceof Date&&(a=a.getTime()/1E3-(vl(this)||0),a=wl(this,a));return a||0};p.Bh=function(){return 0};p.Ah=function(){return 0};p.mi=function(){};p.Zh=function(){var a=vj(this.g.buffered);return null!=a&&a>=this.g.duration-1};function vl(a){return a.g.getStartDate&&(a=a.g.getStartDate().getTime(),!isNaN(a))?a/1E3:null} -function wl(a,b){a=a.g.seekable;0l-k&&(k=l-3);ha.g.getDuration()?a.g.Vb():a.g.Db():b instanceof Date?b=b.getTime()/1E3-(a.g.m||a.g.i):0>b&&(b=a.g.Db()+b);return Bl(a,Al(a,b))}p.mi=function(){this.j.pf()};p.Zh=function(){if(this.g.V()){var a=this.g.vc(),b=vj(this.h.buffered);if(null!=b&&b>=a)return!0}return!1}; -function Bl(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function yl(a,b){var c=a.l.rebufferingGoal,d=a.l.safeSeekOffset,e=a.g.Vb(),f=a.g.Db(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Nd(c),k=a.g.Nd(d);c=a.g.Nd(c+d);return b>=g?Bl(a,b):b>f?f-a.l.safeSeekEndOffset:b=h||wj(a.h.buffered,b)?b:c}function Al(a,b){var c=a.g.Vb();if(ba?a:b};function Cl(a){this.g=a;this.m=null;this.i=0;this.o=!1}p=Cl.prototype;p.getNumReferences=function(){return this.g.length};p.getNumEvicted=function(){return this.i};p.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};p.nk=function(){this.o=!0};p.Cb=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};function Qf(a){return a.g[0]||null} +function Kk(a,b,c,d,e,f,g,h,k,l,m){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var n,q,r,u,w,v,y,z,A,C,E,H,B,D,I,K,J,L;return Q(function(N){switch(N.g){case 1:n=yc;if(b!=n.Ya){N.u(2);break}if("HLS"!=a.S){N.u(3);break}return F(N,a.Ta,4);case 4:q=N.h,a.h.s=q;case 3:return F(N,Ve(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.O()[0]:null),5);case 5:return N.return();case 2:if(l||!a.m){N.u(6);break}return F(N,Kk(a,n.ea,c,d,e,f,g,h,k,!0),7);case 7:return F(N,Kk(a,n.xa,c,d,e, +f,g,h,k,!0),8);case 8:return N.return();case 6:if(!a.l.has(b))return N.return();r=a.l.get(b).timestampOffset;u=a.C.get(b);a.j.has(b)&&(u=a.j.get(b).getOriginalMimeType());if(d&&(w=Jk(a,b,c,d,e,u),v=w.timestamp,y=w.metadata,null!=v&&(null==a.W&&b==n.xa&&(a.W=v,a.va=d.startTime,null!=a.U&&(z=0,a.va==a.oa&&(z=a.W-a.U),a.ka.resolve(z))),null==a.U&&b==n.ea&&(a.U=v,a.oa=d.startTime,null!=a.W&&(A=0,a.va==a.oa&&(A=a.W-a.U),a.ka.resolve(A))),C=v,E=Fe,!a.G&&E.includes(a.C.get(b))&&(C=0),H=d.startTime-C,B=Math.abs(r- +H),(.001<=B||g||h)&&(!k||0b?F(g,Lk(e,a,function(){return Rk(e,a,b,c)},null),5):g.u(0)):e.m?F(g,Lk(e,f.ea,function(){return Rk(e,f.ea,b,c)},null),0):g.u(0)})}; +function Sk(a,b){var c;return Q(function(d){return 1==d.g?(c=yc,b==c.Ya?a.h?F(d,a.h.remove(0,Infinity),0):d.return():F(d,Lk(a,b,function(){return Rk(a,b,0,a.i.duration)},null),4)):a.m?F(d,Lk(a,c.ea,function(){return Rk(a,c.ea,0,a.i.duration)},null),0):d.u(0)})}p.flush=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=yc,a==c.Ya?d.return():F(d,Lk(b,a,function(){b.g.currentTime-=.001;Dk(b,a)},null),2)):b.m?F(d,Lk(b,c.ea,function(){var e=c.ea;b.g.currentTime-=.001;Dk(b,e)},null),0):d.u(0)})}; +function Tk(a,b,c,d,e,f,g,h,k){var l,m,n;return Q(function(q){if(1==q.g){l=yc;if(b==l.Ya)return f||(a.h.s=c),We(a.h,d,e),q.return();m=[];return F(q,Uk(a,b,g,h,k),2)}n=q.h;n||(m.push(Lk(a,b,function(){return Mk(a,b)},null)),a.m&&m.push(Lk(a,l.ea,function(){return Mk(a,l.ea)},null)));f||(m.push(Lk(a,b,function(){return Nk(a,b,c)},null)),a.m&&m.push(Lk(a,l.ea,function(){return Nk(a,l.ea,c)},null)));if(0!=d||Infinity!=e)m.push(Lk(a,b,function(){return Vk(a,b,d,e)},null)),a.m&&m.push(Lk(a,l.ea,function(){return Vk(a, +l.ea,d,e)},null));return m.length?F(q,Promise.all(m),0):q.u(0)})}function Wk(a,b,c){var d,e;return Q(function(f){if(1==f.g){d=yc;if(b==d.Ya)return f.return();b==d.xa&&(a.Ta=new ug);if(!a.G||(e=Hk(a,b))&&.1>Math.abs(e-c))return f.return();Lk(a,b,function(){return Mk(a,b)},null);a.m&&Lk(a,d.ea,function(){return Mk(a,d.ea)},null);return F(f,Lk(a,b,function(){return Nk(a,b,c)},null),2)}return a.m?F(f,Lk(a,d.ea,function(){return Nk(a,d.ea,c)},null),0):f.u(0)})} +p.endOfStream=function(a){var b=this;return Q(function(c){return F(c,Xk(b,function(){yk(b)||zk(b)||(a?b.i.endOfStream(a):b.i.endOfStream())}),0)})};p.ob=function(a){var b=this;return Q(function(c){return F(c,Xk(b,function(){if(b.A.durationReductionEmitsUpdateEnd&&ac&&(c+=.001);var d=!0;"HLS"==a.S&&(d=Hk(a,b),d=!d||.15=b.o&&d&&!b.i)b.j&&b.j(b.g,e),b.i=!0,b.g=c.g.currentTime;b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Aj(c,b,a.h.gapDetectionThreshold),null==d||0==d&&!a.A||(e=c.start(d), +(f=a.h.gapPadding)&&(e=Math.ceil(100*(e+f))/100),e>=a.B.Eb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.j&&(a.j=e),a.C++,a.s(new V("gapjumped")))))}}} +function nl(a){if(!a.h.stallEnabled)return null;var b=a.h.stallThreshold,c=a.h.stallSkip;return new ql(new rl(a.g),b,function(){var d;return Q(function(e){if(1==e.g)return d=zj(a.g.buffered),d.length?c?(a.g.currentTime+=c,e.u(2)):F(e,a.g.play(),3):e.return();if(2!=e.g){if(!a.g)return e.return();a.g.pause();a.g.play()}a.G++;a.s(new V("stalldetected"));G(e)})})}function ql(a,b,c){this.h=a;this.m=pl(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.i=!1;this.o=b;this.j=c} +ql.prototype.release=function(){this.h&&this.h.release();this.j=this.h=null};function rl(a){var b=this;this.g=a;this.h=new jb;this.i=!1;this.h.D(this.g,"audiofocuspaused",function(){b.i=!0});this.h.D(this.g,"audiofocusgranted",function(){b.i=!1});this.h.D(this.g,"audiofocuslost",function(){b.i=!0})} +function pl(a){if(a.g.paused||0==a.g.playbackRate||a.i||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(zj(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(bc.end-.5)){b=!0;break a}b=!1}return b}rl.prototype.release=function(){this.h&&this.h.release();this.h=null};function sl(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=tl.value().get(b),c.za(a,b,d))}var tl=new pb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function ul(a,b,c,d){var e=this;this.g=a;this.m=b;this.s=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new jb;this.i=new vl(a);sl(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){wl(e,e.j())})}ul.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function xl(a){return a.o?a.g.currentTime:a.j()} +function yl(a,b){0Math.abs(a.g.currentTime-b)?Al(a):(a.h.za(a.g,"seeking",function(){Al(a)}),zl(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Al(a){a.o=!0;a.h.D(a.g,"seeking",function(){return a.m()});a.s(a.g.currentTime)} +function vl(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new af(function(){0>=b.i?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--)})}vl.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};function zl(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.Ga(.1)};function Bl(a){this.g=a;this.i=!1;this.h=null;this.j=new jb}p=Bl.prototype;p.ready=function(){function a(){if(null==b.h||0==b.h&&Infinity!=b.g.duration)b.i=!0;else{var c=b.g.currentTime,d=null;if("number"===typeof b.h)d=b.h;else if(b.h instanceof Date){var e=Cl(b);null!==e&&(d=b.h.getTime()/1E3-e,d=Dl(b,d))}null==d?b.i=!0:(0>d&&(d=Math.max(0,c+d)),c!=d?(b.j.za(b.g,"seeking",function(){b.i=!0}),b.g.currentTime=d):b.i=!0)}}var b=this;sl(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){a()})}; +p.release=function(){this.j&&(this.j.release(),this.j=null);this.g=null};p.Qf=function(a){this.h=this.i?this.h:a};p.Be=function(){var a=this.i?this.g.currentTime:this.h;a instanceof Date&&(a=a.getTime()/1E3-(Cl(this)||0),a=Dl(this,a));return a||0};p.Bh=function(){return 0};p.Ah=function(){return 0};p.ni=function(){};p.$h=function(){var a=wj(this.g.buffered);return null!=a&&a>=this.g.duration-1};function Cl(a){return a.g.getStartDate&&(a=a.g.getStartDate().getTime(),!isNaN(a))?a/1E3:null} +function Dl(a,b){a=a.g.seekable;0l-k&&(k=l-3);ha.g.getDuration()?a.g.Vb():a.g.Eb():b instanceof Date?b=b.getTime()/1E3-(a.g.m||a.g.i):0>b&&(b=a.g.Eb()+b);return Il(a,Hl(a,b))}p.ni=function(){this.j.pf()};p.$h=function(){if(this.g.V()){var a=this.g.zc(),b=wj(this.h.buffered);if(null!=b&&b>=a)return!0}return!1}; +function Il(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function Fl(a,b){var c=a.l.rebufferingGoal,d=a.l.safeSeekOffset,e=a.g.Vb(),f=a.g.Eb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Od(c),k=a.g.Od(d);c=a.g.Od(c+d);return b>=g?Il(a,b):b>f?f-a.l.safeSeekEndOffset:b=h||xj(a.h.buffered,b)?b:c}function Hl(a,b){var c=a.g.Vb();if(ba?a:b};function Jl(a){this.g=a;this.m=null;this.i=0;this.o=!1}p=Jl.prototype;p.getNumReferences=function(){return this.g.length};p.getNumEvicted=function(){return this.i};p.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};p.pk=function(){this.o=!0};p.Db=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};function Rf(a){return a.g[0]||null} p.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c=d.startTime&&aa||a>=this.g.length?null:this.g[a]};p.offset=function(a){if(!this.o)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)}; -p.hf=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.hf(a);this.$a(b)};p.$a=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}}; -p.gd=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new qj(a.startTime,b,a.C,a.startByte,a.endByte,a.Z,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.B,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b)}}; -p.Ff=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new $e(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.Ga(a))};Cl.prototype[Symbol.iterator]=function(){return this.Ub(0)}; -Cl.prototype.Ub=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&0=h.startTime&&a=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0=this.g);)this.g--,b=a.g[this.g]}; -T("shaka.media.SegmentIterator",Dl);Dl.prototype.resetToLastIndependent=Dl.prototype.Xg;Dl.prototype.next=Dl.prototype.next;Dl.prototype.current=Dl.prototype.current;Dl.prototype.currentPosition=Dl.prototype.lj;Dl.prototype.setReverse=Dl.prototype.yd;function Fl(){Cl.call(this,[]);this.h=[]}pa(Fl,Cl);p=Fl.prototype;p.clone=function(){var a=new Fl;a.h=this.h.slice();a.i=this.i;return a};p.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]}; -p.Cb=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Cb(a)};function Gl(a,b){a=t(a.h);for(var c=a.next();!c.done;c=a.next())b(c.value)}p.find=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};function Hl(a,b){a=t(a.h);for(var c=a.next();!c.done;c=a.next())if(c=c.value,null!=c.find(b))return c.Oe();return-1} -p.get=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};p.offset=function(){};p.hf=function(){};p.$a=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.$a(a);for(;1=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)} -Ml.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.fg;a:{var e=c.$d;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.nd;break a}}e=null}f=e&&!(d===e||d&&e&&d.bandwidth==e.bandwidth&&d.audioSamplingRate==e.audioSamplingRate&&d.codecs==e.codecs&&d.contentType==e.contentType&&d.frameRate==e.frameRate&&d.height==e.height&&d.mimeType==e.mimeType&&d.channelsCount==e.channelsCount&&d.pixelAspectRatio==e.pixelAspectRatio&&d.width==e.width); -g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&d.language!==e.language;d=e&&d&&e.roles&&d.roles&&!Wc(d.roles,e.roles);(g||h||d)&&Ql(this,a,e.contentType)&&(c.fg=e,d=new V("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&Ql(this,a,e.contentType)&&(c.fg=e,JSON.stringify(e),c=new V("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}}; -function Ql(a,b,c){return(a=a.h()[c])&&0=a[0].start&&b=d?!1:!0})}else b.$d=[]} -function Rl(a){var b={bandwidth:a.bandwidth||0,audioSamplingRate:null,codecs:a.codecs,contentType:a.type,frameRate:null,height:null,mimeType:a.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:a.roles,language:null};"video"==a.type&&(b.frameRate=a.frameRate||null,b.height=a.height||null,b.pixelAspectRatio=a.pixelAspectRatio||null,b.width=a.width||null);"audio"==a.type&&(b.audioSamplingRate=a.audioSamplingRate,b.channelsCount=a.channelsCount,b.label=a.label||null,b.language= -a.language);return b};function Sl(a){Dg.call(this);this.h=new Map;this.i=a;this.g=null}pa(Sl,Dg);Sl.prototype.release=function(){this.h.clear();this.g&&(this.g.stop(),this.g=null);Dg.prototype.release.call(this)};function Tl(a,b){var c=b.schemeIdUri+"_"+b.id+"_"+(b.startTime.toFixed(1)+"_"+b.endTime.toFixed(1));a.h.has(c)||(a.h.set(c,b),b=new V("regionadd",new Map([["region",b]])),a.dispatchEvent(b),Ul(a))} -function Ul(a){a.g||(a.g=(new $e(function(){for(var b=a.i(),c=t(a.h),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;e.endTimed.endTime&&cm(this,d);b&&am(this)}; -Vl.prototype.yd=function(a){this.o=a;this.g&&this.g.yd(a)};function am(a){for(var b=Array.from(a.h.keys()),c=t(a.j.keys()),d=c.next(),e={};!d.done;e={Fg:void 0},d=c.next())e.Fg=d.value,b.some(function(f){return function(g){return pj(g.Z,f.Fg)}}(e))||cm(a,e.Fg)}function em(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&cm(a,d)}am(a)}function fm(a,b){b&&b!==a.i&&(dm(a),a.i=b)}function cm(a,b){var c=a.h;b instanceof oj&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()} -function Zl(a){this.g=a;this.Yd=this.mh=null}function $l(a,b,c){var d=new Uint8Array(0);a.Yd=a.g(b,c,function(e){return Q(function(f){if(1==f.g)return 0>3,31===L&&C.Fa()&&(L=32+((I&7)<<3)+((C.X()&224)>>5)),D+="."+L));g.push(D);k=!0}).box("ac-3",e).box("ec-3",e).box("ac-4",e).box("Opus",e).box("fLaC",e).box("avc1",d).box("avc3",d).box("hev1",d).box("hvc1",d).box("dva1",d).box("dvav",d).box("dvh1",d).box("dvhe",d).box("vp09", -d).box("av01",d).box("avcC",function(C){var D=y||"";switch(y){case "dvav":D="avc3";break;case "dva1":D="avc1"}C=C.reader;C.skip(1);C=D+"."+Fi(C.X())+Fi(C.X())+Fi(C.X());h.push(C);l=!0}).box("hvcC",function(C){var D=y||"";switch(y){case "dvh1":D="hvc1";break;case "dvhe":D="hev1"}var I=C.reader;I.skip(1);C=I.X();var L=["","A","B","C"][C>>6],K=C&31,J=I.T(),M=(C&32)>>5?"H":"L";C=[I.X(),I.X(),I.X(),I.X(),I.X(),I.X()];I=I.X();for(var O=0,N=0;32>N;N++){O|=J&1;if(31==N)break;O<<=1;J>>=1}D=D+("."+L+K)+("."+ -Fi(O,!0));D+="."+M+I;L="";for(K=C.length;K--;)if((M=C[K])||L)L="."+M.toString(16).toUpperCase()+L;D+=L;h.push(D);l=!0}).box("dvcC",function(C){var D=y||"";switch(y){case "hvc1":D="dvh1";break;case "hev1":D="dvhe";break;case "avc1":D="dva1";break;case "avc3":D="dvav";break;case "av01":D="dav1"}var I=C.reader;I.skip(2);C=I.X();I=I.X();h.push(D+"."+Gi(C>>1&127)+"."+Gi(C<<5&32|I>>3&31));l=!0}).box("dvvC",function(C){var D=y||"";switch(y){case "hvc1":D="dvh1";break;case "hev1":D="dvhe";break;case "avc1":D= -"dva1";break;case "avc3":D="dvav";break;case "av01":D="dav1"}var I=C.reader;I.skip(2);C=I.X();I=I.X();h.push(D+"."+Gi(C>>1&127)+"."+Gi(C<<5&32|I>>3&31));l=!0}).R("vpcC",function(C){var D=y||"",I=C.reader;C=I.X();var L=I.X();I=I.X()>>4&15;h.push(D+"."+Gi(C)+"."+Gi(L)+"."+Gi(I));l=!0}).box("av1C",function(C){var D=y||"";switch(y){case "dav1":D="av01"}var I=C.reader;I.skip(1);C=I.X();I=I.X();var L=C>>>5,K=(I&64)>>6;h.push(D+"."+L+"."+Gi(C&31)+(I>>>7?"H":"M")+"."+Gi(2===L&&K?(I&32)>>5?12:10:K?10:8)+"."+ -((I&16)>>4)+"."+((I&8)>>3)+((I&4)>>2)+(I&3)+"."+Gi(1)+"."+Gi(1)+"."+Gi(1)+".0");l=!0}).box("enca",kh).box("encv",jh).box("sinf",gh).box("frma",function(C){C=Di(C.reader).codec;f(C)}).box("colr",function(C){h=h.map(function(L){if(L.startsWith("av01.")){var K=C.reader,J=K.Ma(),M=K.Sb(4);var O=String.fromCharCode(M[0]);O+=String.fromCharCode(M[1]);O+=String.fromCharCode(M[2]);O+=String.fromCharCode(M[3]);if("nclx"===O){M=K.Aa();O=K.Aa();var N=K.Aa(),P=K.X()>>7,R=L.split(".");10==R.length&&(R[6]=Gi(M), -R[7]=Gi(O),R[8]=Gi(N),R[9]=String(P),L=R.join("."))}K.seek(J)}return L});var D=Ei(C.reader),I=D.colorGamut;w=D.le;v=I}).parse(a||b,!0);if(!g.length&&!h.length)return null;var z=k&&!l,A=new Map;if(l&&!c){c=new Lc("video/mp4");a&&c.init(a);try{c.rf(b);for(var B=t(c.Of()),E=B.next();!E.done;E=B.next()){var H=E.value;A.set(H,H)}}catch(C){}c.Bd()}return{type:z?"audio":"video",mimeType:z?"audio/mp4":"video/mp4",codecs:im(g.concat(h)).join(", "),language:m,height:n,width:q,channelCount:r,sampleRate:u,closedCaptions:A, -le:w,colorGamut:v,frameRate:null}}function im(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Ke(d);b.has(e)||(c.push(d),b.add(e))}b=xc("audio",c);d=xc("video",c);a=xc(wc,c);d=jm(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b} -function jm(a){if(1>=a.length)return a;var b=a.find(function(c){return c.startsWith("dvav.")||c.startsWith("dva1.")||c.startsWith("dvh1.")||c.startsWith("dvhe.")||c.startsWith("dav1.")||c.startsWith("dvc1.")||c.startsWith("dvi1.")});return b?Ec('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a} -function km(a){var b=null;(new bh).box("moov",gh).box("trak",gh).box("mdia",gh).box("minf",gh).box("stbl",gh).R("stsd",ih).box("encv",jh).box("enca",kh).box("sinf",gh).box("schi",gh).R("tenc",function(c){c=c.reader;c.X();c.X();c.X();c.X();b=oc(c.Sb(16))}).parse(a,!0);return b} -function lm(a,b,c){var d,e,f,g,h;return Q(function(k){if(1==k.g)return d=b,d.cryptoKey?k.u(2):F(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Tb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})};function mm(a,b,c,d,e){a=Lg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function nm(a,b){var c=this;this.g=b;this.j=a;this.h=null;this.K=new Map;this.C=1;this.A=this.l=null;this.P=0;this.i=new Map;this.I=!1;this.S=null;this.B=!1;this.m=new Tg(function(){return om(c)});this.M=Date.now()/1E3;this.o=new Map;this.N={projection:null,hfov:null};this.W=0;this.U=Infinity;this.F=null;this.L=[];this.s=new $e(function(){if(c.j&&c.g)if(c.j.presentationTimeline.V()){var d=c.j.presentationTimeline.Vb(),e=c.j.presentationTimeline.Db();1a.g.sb(),d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.sa&&e.sa.yd(c),e.ba&&e.ba.yd(c);d=t(a.o.values());for(e=d.next();!e.done;e=d.next())e.value.yd(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Bc&&(Am(a,b,!1,0,!1),c.Bc=d);else if(b=c.Bc)c.Bc=null,Am(a,b,!0,0,!1)} -function Bm(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.l=b;a.I&&(b.video&&Am(a,b.video,c,d,e,f),b.audio&&Am(a,b.audio,c,d,e,f))}function Cm(a,b){Q(function(c){if(1==c.g)return a.F=null,a.A=b,a.I?b.segmentIndex?c.u(2):F(c,b.createSegmentIndex(),2):c.return();Am(a,b,!0,0,!1);G(c)})}function Dm(a,b){for(var c=t(a.K.entries()),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;d.includes(b.type)&&(e(),a.K.delete(d))}} -function Am(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=wc?g&&(g.Bc&&(b.trickModeVideo?(g.Bc=b,b=b.trickModeVideo):g.Bc=null),g.stream!=b||e)&&(a.o.has(b)?g.ba=a.o.get(b):g.ba&&fm(g.ba,b),b.type==wc&&(e=De(b.mimeType,b.codecs),Ak(a.g.aa,e,a.j.sequenceMode,b.external)),!a.o.has(g.stream)&&g.stream.closeSegmentIndex&&(g.Qa?(e="("+g.type+":"+g.stream.id+")",a.K.has(e)||a.K.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),e=g.stream.isAudioMuxedInVideo!=b.isAudioMuxedInVideo,g.stream= -b,g.sa=null,g.Vf=!!f,b.dependencyStream?g.Kd=wm(a,b.dependencyStream):g.Kd=null,e?Em(a,!0,!1):(c?g.Fc?g.Mf=!0:g.Qa?(g.Ec=!0,g.Ne=d,g.Mf=!0):(pm(g),Fm(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.Qa||g.yb||xm(a,g,0),Gm(a,g).catch(function(h){if(a.g)a.g.onError(h)}))):vm(a,b)} -function Gm(a,b){var c,d;return Q(function(e){if(1==e.g){if(!b.Gb)return e.return();c=b.stream;d=b.Gb;return c.segmentIndex?e.u(2):F(e,c.createSegmentIndex(),2)}if(b.Gb!=d||b.stream!=c)return e.return();var f=a.g.Lc();var g=Gk(a.g.aa,b.type),h=b.stream.segmentIndex.find(b.Ia?b.Ia.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.endByte?k.endByte-k.startByte:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.Z)&&(h+=(k.endByte?k.endByte-k.startByte:null)|| -0),k=a.g.getBandwidthEstimate(),f=8*h/k<(g||0)-f-a.h.rebufferingGoal||b.Gb.h.g>h?!0:!1):f=!1;f&&b.Gb.abort();G(e)})} -p.Vc=function(){if(this.g){for(var a=this.g.Lc(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=this.g.aa;d==wc?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&aa.g.sb()):null} -function sm(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d=t(a.j.variants),e=d.next(),f={};!e.done;f={Kb:void 0},e=d.next())if(f.Kb=e.value,f.Kb.audio)if(a.o.has(f.Kb.audio)){if(e=a.o.get(f.Kb.audio),em(e,b),!(0=b||!c.some(function(h){return function(k){return ff(h.Kb.audio.language,k)}}(f))||!(e=rm(a,f.Kb.audio))|| -(f.Kb.audio.segmentIndex||f.Kb.audio.createSegmentIndex(),a.o.set(f.Kb.audio,e))}p.updateDuration=function(){var a=Hc(),b=this.j.presentationTimeline.getDuration();Infinity>b?(a&&(this.s&&this.s.stop(),Xk(this.g.aa)),this.g.aa.ob(b)):a?(this.s&&this.s.Ga(.5),this.g.aa.ob(Infinity)):this.g.aa.ob(Math.pow(2,32))}; -function Km(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:Ug(a.m);if(b.Qa||null==b.yb||b.Fc)return k.return();b.yb=null;if(!b.Ec){k.u(2);break}return F(k,Fm(a,b,b.Mf,b.Ne),3);case 3:return k.return();case 2:Dm(a,b);if(b.stream.segmentIndex){k.u(4);break}c=b.stream;wa(k,5);return F(k,b.stream.createSegmentIndex(),7);case 7:za(k,6);break;case 5:return d=Aa(k),F(k,Lm(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Qa||b.yb|| -xm(a,b,0),k.return();case 4:wa(k,9);e=Mm(a,b);null!=e&&(xm(a,b,e),b.Pd=!1);za(k,10);break;case 9:return f=Aa(k),F(k,Lm(a,b,f),11);case 11:return k.return();case 10:g=Array.from(a.i.values());if(!a.I||!g.every(function(l){return l.endOfStream})){k.u(0);break}return F(k,a.g.aa.endOfStream(),13);case 13:Ug(a.m),h=a.g.aa.getDuration(),0!=h&&hh&&k)return b.endOfStream=!0,"video"==b.type&&(a=a.i.get(wc))&&Nm(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(g>=f)return c/2;h=!b.sa;k=Om(a,b,d,k);if(!k)return c;g=!1;h&&b.Vf&&(g=!0,b.Vf=!1);h=Infinity;var l=Array.from(a.i.values());l=t(l);for(var m=l.next();!m.done;m=l.next())m=m.value,Nm(m)||m.sa&&!m.sa.current()||(h=Math.min(h,m.Ia?m.Ia.endTime:d));if(e>=h+a.j.presentationTimeline.h)return c;if("keep"!==a.h.crossBoundaryStrategy&&Pm(a,b,k))return null;b.ba&&b.sa&& -!a.o.has(b.stream)&&(b.ba.$a(k.startTime+.001),Xl(b.ba,k.startTime).catch(function(){}));Qm(a,b,d,k,g).catch(function(){});b.Kd&&Rm(a,b.Kd,d,f);return null} -function Om(a,b,c,d){if(b.sa)return(c=b.sa.current())&&b.Ia&&.001>Math.abs(b.Ia.startTime-c.startTime)&&(c=b.sa.next().value),c;if(b.Ia||d)return c=b.Ia?b.Ia.endTime:d,a=0>a.g.sb(),b.stream.segmentIndex&&(b.sa=b.stream.segmentIndex.Ub(c,!1,a)),b.sa&&b.sa.next().value;d=a.j.sequenceMode?0:a.h.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.sb();var f=null;d&&(b.stream.segmentIndex&&(b.sa=b.stream.segmentIndex.Ub(e,!1,a)),f=b.sa&&b.sa.next().value);f||(b.stream.segmentIndex&&(b.sa=b.stream.segmentIndex.Ub(c, +p.gf=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.gf(a);this.$a(b)};p.$a=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}}; +p.hd=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new rj(a.startTime,b,a.C,a.startByte,a.endByte,a.Y,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.B,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b)}}; +p.Gf=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new af(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.Ga(a))};Jl.prototype[Symbol.iterator]=function(){return this.Ub(0)}; +Jl.prototype.Ub=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&0=h.startTime&&a=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0=this.g);)this.g--,b=a.g[this.g]}; +T("shaka.media.SegmentIterator",Kl);Kl.prototype.resetToLastIndependent=Kl.prototype.Yg;Kl.prototype.next=Kl.prototype.next;Kl.prototype.current=Kl.prototype.current;Kl.prototype.currentPosition=Kl.prototype.mj;Kl.prototype.setReverse=Kl.prototype.zd;function Ml(){Jl.call(this,[]);this.h=[]}pa(Ml,Jl);p=Ml.prototype;p.clone=function(){var a=new Ml;a.h=this.h.slice();a.i=this.i;return a};p.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]}; +p.Db=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Db(a)};function Nl(a,b){a=t(a.h);for(var c=a.next();!c.done;c=a.next())b(c.value)}p.find=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};function Ol(a,b){a=t(a.h);for(var c=a.next();!c.done;c=a.next())if(c=c.value,null!=c.find(b))return c.Ne();return-1} +p.get=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};p.offset=function(){};p.gf=function(){};p.$a=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.$a(a);for(;1=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)} +Tl.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.gg;a:{var e=c.ae;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.od;break a}}e=null}f=e&&!(d===e||d&&e&&d.bandwidth==e.bandwidth&&d.audioSamplingRate==e.audioSamplingRate&&d.codecs==e.codecs&&d.contentType==e.contentType&&d.frameRate==e.frameRate&&d.height==e.height&&d.mimeType==e.mimeType&&d.channelsCount==e.channelsCount&&d.pixelAspectRatio==e.pixelAspectRatio&&d.width==e.width); +g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&d.language!==e.language;d=e&&d&&e.roles&&d.roles&&!Wc(d.roles,e.roles);(g||h||d)&&Xl(this,a,e.contentType)&&(c.gg=e,d=new V("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&Xl(this,a,e.contentType)&&(c.gg=e,JSON.stringify(e),c=new V("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}}; +function Xl(a,b,c){return(a=a.h()[c])&&0=a[0].start&&b=d?!1:!0})}else b.ae=[]} +function Yl(a){var b={bandwidth:a.bandwidth||0,audioSamplingRate:null,codecs:a.codecs,contentType:a.type,frameRate:null,height:null,mimeType:a.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:a.roles,language:null};"video"==a.type&&(b.frameRate=a.frameRate||null,b.height=a.height||null,b.pixelAspectRatio=a.pixelAspectRatio||null,b.width=a.width||null);"audio"==a.type&&(b.audioSamplingRate=a.audioSamplingRate,b.channelsCount=a.channelsCount,b.label=a.label||null,b.language= +a.language);return b};function Zl(a){Eg.call(this);this.h=new Map;this.i=a;this.g=null}pa(Zl,Eg);Zl.prototype.release=function(){this.h.clear();this.g&&(this.g.stop(),this.g=null);Eg.prototype.release.call(this)};function $l(a,b){var c=b.schemeIdUri+"_"+b.id+"_"+(b.startTime.toFixed(1)+"_"+b.endTime.toFixed(1));a.h.has(c)||(a.h.set(c,b),b=new V("regionadd",new Map([["region",b]])),a.dispatchEvent(b),am(a))} +function am(a){a.g||(a.g=(new af(function(){for(var b=a.i(),c=t(a.h),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;e.endTimed.endTime&&jm(this,d);b&&hm(this)}; +bm.prototype.zd=function(a){this.o=a;this.g&&this.g.zd(a)};function hm(a){for(var b=Array.from(a.h.keys()),c=t(a.j.keys()),d=c.next(),e={};!d.done;e={Gg:void 0},d=c.next())e.Gg=d.value,b.some(function(f){return function(g){return qj(g.Y,f.Gg)}}(e))||jm(a,e.Gg)}function lm(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&jm(a,d)}hm(a)}function mm(a,b){b&&b!==a.i&&(km(a),a.i=b)}function jm(a,b){var c=a.h;b instanceof pj&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()} +function fm(a){this.g=a;this.Zd=this.nh=null}function gm(a,b,c){var d=new Uint8Array(0);a.Zd=a.g(b,c,function(e){return Q(function(f){if(1==f.g)return 0>3,31===K&&B.Fa()&&(K=32+((I&7)<<3)+((B.X()&224)>>5)),D+="."+K));g.push(D);k=!0}).box("ac-3",e).box("ec-3",e).box("ac-4",e).box("Opus",e).box("fLaC",e).box("apac",e).box("avc1",d).box("avc3",d).box("hev1",d).box("hvc1",d).box("dva1",d).box("dvav", +d).box("dvh1",d).box("dvhe",d).box("vp09",d).box("av01",d).box("avcC",function(B){var D=y||"";switch(y){case "dvav":D="avc3";break;case "dva1":D="avc1"}B=B.reader;B.skip(1);B=D+"."+Gi(B.X())+Gi(B.X())+Gi(B.X());h.push(B);l=!0}).box("hvcC",function(B){var D=y||"";switch(y){case "dvh1":D="hvc1";break;case "dvhe":D="hev1"}var I=B.reader;I.skip(1);B=I.X();var K=["","A","B","C"][B>>6],J=B&31,L=I.T(),N=(B&32)>>5?"H":"L";B=[I.X(),I.X(),I.X(),I.X(),I.X(),I.X()];I=I.X();for(var O=0,M=0;32>M;M++){O|=L&1;if(31== +M)break;O<<=1;L>>=1}D=D+("."+K+J)+("."+Gi(O,!0));D+="."+N+I;K="";for(J=B.length;J--;)if((N=B[J])||K)K="."+N.toString(16).toUpperCase()+K;D+=K;h.push(D);l=!0}).box("dvcC",function(B){var D=y||"";switch(y){case "hvc1":D="dvh1";break;case "hev1":D="dvhe";break;case "avc1":D="dva1";break;case "avc3":D="dvav";break;case "av01":D="dav1"}var I=B.reader;I.skip(2);B=I.X();I=I.X();h.push(D+"."+Hi(B>>1&127)+"."+Hi(B<<5&32|I>>3&31));l=!0}).box("dvvC",function(B){var D=y||"";switch(y){case "hvc1":D="dvh1";break; +case "hev1":D="dvhe";break;case "avc1":D="dva1";break;case "avc3":D="dvav";break;case "av01":D="dav1"}var I=B.reader;I.skip(2);B=I.X();I=I.X();h.push(D+"."+Hi(B>>1&127)+"."+Hi(B<<5&32|I>>3&31));l=!0}).R("vpcC",function(B){var D=y||"",I=B.reader;B=I.X();var K=I.X();I=I.X()>>4&15;h.push(D+"."+Hi(B)+"."+Hi(K)+"."+Hi(I));l=!0}).box("av1C",function(B){var D=y||"";switch(y){case "dav1":D="av01"}var I=B.reader;I.skip(1);B=I.X();I=I.X();var K=B>>>5,J=(I&64)>>6;h.push(D+"."+K+"."+Hi(B&31)+(I>>>7?"H":"M")+ +"."+Hi(2===K&&J?(I&32)>>5?12:10:J?10:8)+"."+((I&16)>>4)+"."+((I&8)>>3)+((I&4)>>2)+(I&3)+"."+Hi(1)+"."+Hi(1)+"."+Hi(1)+".0");l=!0}).box("enca",lh).box("encv",kh).box("sinf",hh).box("frma",function(B){B=Ei(B.reader).codec;f(B)}).box("colr",function(B){h=h.map(function(K){if(K.startsWith("av01.")){var J=B.reader,L=J.Ma(),N=J.Sb(4);var O=String.fromCharCode(N[0]);O+=String.fromCharCode(N[1]);O+=String.fromCharCode(N[2]);O+=String.fromCharCode(N[3]);if("nclx"===O){N=J.Aa();O=J.Aa();var M=J.Aa(),P=J.X()>> +7,R=K.split(".");10==R.length&&(R[6]=Hi(N),R[7]=Hi(O),R[8]=Hi(M),R[9]=String(P),K=R.join("."))}J.seek(L)}return K});var D=Fi(B.reader),I=D.colorGamut;w=D.le;v=I}).parse(a||b,!0,!0);if(!g.length&&!h.length)return null;var z=k&&!l,A=new Map;if(l&&!c){c=new Lc("video/mp4");a&&c.init(a);try{c.rf(b);for(var C=t(c.Pf()),E=C.next();!E.done;E=C.next()){var H=E.value;A.set(H,H)}}catch(B){}c.Cd()}return{type:z?"audio":"video",mimeType:z?"audio/mp4":"video/mp4",codecs:pm(g.concat(h)).join(", "),language:m,height:n, +width:q,channelCount:r,sampleRate:u,closedCaptions:A,le:w,colorGamut:v,frameRate:null}}function pm(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Le(d);b.has(e)||(c.push(d),b.add(e))}b=xc("audio",c);d=xc("video",c);a=xc(wc,c);d=qm(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b} +function qm(a){if(1>=a.length)return a;var b=a.find(function(c){return c.startsWith("dvav.")||c.startsWith("dva1.")||c.startsWith("dvh1.")||c.startsWith("dvhe.")||c.startsWith("dav1.")||c.startsWith("dvc1.")||c.startsWith("dvi1.")});return b?Ec('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a} +function rm(a){var b=null;(new ch).box("moov",hh).box("trak",hh).box("mdia",hh).box("minf",hh).box("stbl",hh).R("stsd",jh).box("encv",kh).box("enca",lh).box("sinf",hh).box("schi",hh).R("tenc",function(c){c=c.reader;c.X();c.X();c.X();c.X();b=oc(c.Sb(16))}).parse(a,!0);return b} +function sm(a,b,c){var d,e,f,g,h;return Q(function(k){if(1==k.g)return d=b,d.cryptoKey?k.u(2):F(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Tb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})};function tm(a,b,c,d,e){a=Mg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function um(a,b){var c=this;this.g=b;this.j=a;this.i=null;this.K=new Map;this.C=1;this.A=this.o=null;this.P=0;this.h=new Map;this.I=!1;this.S=null;this.B=!1;this.l=new Ug(function(){return vm(c)});this.M=Date.now()/1E3;this.m=new Map;this.N={projection:null,hfov:null};this.W=0;this.U=Infinity;this.F=null;this.L=[];this.s=new af(function(){if(c.j&&c.g)if(c.j.presentationTimeline.V()){var d=c.j.presentationTimeline.Vb(),e=c.j.presentationTimeline.Eb();1a.g.sb(),d=t(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.sa&&e.sa.zd(c),e.aa&&e.aa.zd(c);d=t(a.m.values());for(e=d.next();!e.done;e=d.next())e.value.zd(c);if(c=a.h.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Ec&&(Hm(a,b,!1,0,!1),c.Ec=d);else if(b=c.Ec)c.Ec=null,Hm(a,b,!0,0,!1)} +function Im(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.o=b;a.I&&(b.video&&Hm(a,b.video,c,d,e,f),b.audio&&Hm(a,b.audio,c,d,e,f))}function Jm(a,b){Q(function(c){if(1==c.g)return a.F=null,a.A=b,a.I?b.segmentIndex?c.u(2):F(c,b.createSegmentIndex(),2):c.return();Hm(a,b,!0,0,!1);G(c)})}function Km(a){var b=a.h.get(wc);b&&Hm(a,b.stream,!0,0,!0)} +function Lm(a,b){for(var c=t(a.K.entries()),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;d.includes(b.type)&&(e(),a.K.delete(d))}} +function Hm(a,b,c,d,e,f){var g=a.h.get(b.type);g||b.type!=wc?g&&(g.Ec&&(b.trickModeVideo?(g.Ec=b,b=b.trickModeVideo):g.Ec=null),g.stream!=b||e)&&(a.m.has(b)?g.aa=a.m.get(b):g.aa&&mm(g.aa,b),b.type==wc&&(e=Ee(b.mimeType,b.codecs),Bk(a.g.Z,e,a.j.sequenceMode,b.external)),!a.m.has(g.stream)&&g.stream.closeSegmentIndex&&(g.Pa?(e="("+g.type+":"+g.stream.id+")",a.K.has(e)||a.K.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),e=g.stream.isAudioMuxedInVideo!=b.isAudioMuxedInVideo,g.stream= +b,g.sa=null,g.Wf=!!f,b.dependencyStream?g.Ld=Dm(a,b.dependencyStream):g.Ld=null,e&&(g.xb=null,g.kc=null,g.jc=null,b.isAudioMuxedInVideo&&(b=null,"video"===g.type?b=a.h.get("audio"):"audio"===g.type&&(b=a.h.get("video")),b&&(xm(b).catch(function(){}),b.xb=null,b.kc=null,b.jc=null,Mm(a,b),Nm(a,b).catch(function(h){if(a.g)a.g.onError(h)})))),c?g.Jc?g.Nf=!0:g.Pa?(g.Hc=!0,g.Me=d,g.Nf=!0):(wm(g),Om(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.Pa||g.zb||Em(a,g,0),Nm(a,g).catch(function(h){if(a.g)a.g.onError(h)})): +Cm(a,b)} +function Nm(a,b){var c,d;return Q(function(e){if(1==e.g){if(!b.Gb)return e.return();c=b.stream;d=b.Gb;return c.segmentIndex?e.u(2):F(e,c.createSegmentIndex(),2)}if(b.Gb!=d||b.stream!=c)return e.return();var f=a.g.Pc();var g=Hk(a.g.Z,b.type),h=b.stream.segmentIndex.find(b.Ia?b.Ia.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.endByte?k.endByte-k.startByte:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.Y)&&(h+=(k.endByte?k.endByte-k.startByte:null)|| +0),k=a.g.getBandwidthEstimate(),f=8*h/k<(g||0)-f-a.i.rebufferingGoal||b.Gb.h.g>h?!0:!1):f=!1;f&&b.Gb.abort();G(e)})} +p.Xc=function(){if(this.g){for(var a=this.g.Pc(),b=t(this.h.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.h.get(d);var e=this.g.Z;d==wc?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&aa.g.sb()):null} +function zm(a){for(var b=a.i.segmentPrefetchLimit,c=a.i.prefetchAudioLanguages,d=t(a.j.variants),e=d.next(),f={};!e.done;f={Kb:void 0},e=d.next())if(f.Kb=e.value,f.Kb.audio)if(a.m.has(f.Kb.audio)){if(e=a.m.get(f.Kb.audio),lm(e,b),!(0=b||!c.some(function(h){return function(k){return gf(h.Kb.audio.language,k)}}(f))||!(e=ym(a,f.Kb.audio))|| +(f.Kb.audio.segmentIndex||f.Kb.audio.createSegmentIndex(),a.m.set(f.Kb.audio,e))}p.updateDuration=function(){var a=Hc(),b=this.j.presentationTimeline.getDuration();Infinity>b?(a&&(this.s&&this.s.stop(),Zk(this.g.Z)),this.g.Z.ob(b)):a?(this.s&&this.s.Ga(.5),this.g.Z.ob(Infinity)):this.g.Z.ob(Math.pow(2,32))}; +function Sm(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:Vg(a.l);if(b.Pa||null==b.zb||b.Jc)return k.return();b.zb=null;if(!b.Hc){k.u(2);break}return F(k,Om(a,b,b.Nf,b.Me),3);case 3:return k.return();case 2:Lm(a,b);if(b.stream.segmentIndex){k.u(4);break}c=b.stream;wa(k,5);return F(k,b.stream.createSegmentIndex(),7);case 7:za(k,6);break;case 5:return d=Aa(k),F(k,Tm(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Pa||b.zb|| +Em(a,b,0),k.return();case 4:wa(k,9);e=Um(a,b);null!=e&&(Em(a,b,e),b.Qd=!1);za(k,10);break;case 9:return f=Aa(k),F(k,Tm(a,b,f),11);case 11:return k.return();case 10:g=Array.from(a.h.values());if(!a.I||!g.every(function(l){return l.endOfStream})){k.u(0);break}return F(k,a.g.Z.endOfStream(),13);case 13:Vg(a.l),h=a.g.Z.getDuration(),0!=h&&hh&&k)return b.endOfStream=!0,"video"==b.type&&(a=a.h.get(wc))&&Vm(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(g>=f)return c/2;h=!b.sa;k=Wm(a,b,d,k);if(!k)return c;g=!1;h&&b.Wf&&(g=!0,b.Wf=!1);h=Infinity;var l=Array.from(a.h.values());l=t(l);for(var m=l.next();!m.done;m=l.next())m=m.value,Vm(m)||m.sa&&!m.sa.current()||(h=Math.min(h,m.Ia?m.Ia.endTime:d));if(e>=h+a.j.presentationTimeline.h)return c;if("keep"!==a.i.crossBoundaryStrategy&&Xm(a,b,k))return null;b.aa&&b.sa&& +!a.m.has(b.stream)&&(b.aa.$a(k.startTime+.001),dm(b.aa,k.startTime).catch(function(){}));Ym(a,b,d,k,g).catch(function(){});b.Ld&&Zm(a,b.Ld,d,f);return null} +function Wm(a,b,c,d){if(b.sa)return(c=b.sa.current())&&b.Ia&&.001>Math.abs(b.Ia.startTime-c.startTime)&&(c=b.sa.next().value),c;if(b.Ia||d)return c=b.Ia?b.Ia.endTime:d,a=0>a.g.sb(),b.stream.segmentIndex&&(b.sa=b.stream.segmentIndex.Ub(c,!1,a)),b.sa&&b.sa.next().value;d=a.j.sequenceMode?0:a.i.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.sb();var f=null;d&&(b.stream.segmentIndex&&(b.sa=b.stream.segmentIndex.Ub(e,!1,a)),f=b.sa&&b.sa.next().value);f||(b.stream.segmentIndex&&(b.sa=b.stream.segmentIndex.Ub(c, !1,a)),f=b.sa&&b.sa.next().value);return f} -function Qm(a,b,c,d,e){var f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,E,H;return Q(function(C){switch(C.g){case 1:f=yc;g=b.stream;h=b.sa;b.Qa=!0;wa(C,2);if(2==d.xc())throw new U(1,1,1011);return F(C,Sm(a,b,d,e),4);case 4:Ug(a.m);if(a.B)return C.return();k="video/mp4"==g.mimeType||"audio/mp4"==g.mimeType;l=window.ReadableStream;if((m=a.h.lowLatencyMode&&a.j.isLowLatency)&&l&&k&&("HLS"!=a.j.type||d.m))return r=new Uint8Array(0),w=u=!1,y=function(D){var I,L,K,J;return Q(function(M){switch(M.g){case 1:if(u)return M.return();w= -!0;Ug(a.m);if(a.B)return M.return();wa(M,2);r=Tm(r,D);I=!1;L=0;(new bh).box("mdat",function(O){L=O.size+O.start;I=!0}).parse(r,!1,!0);if(!I){M.u(4);break}K=r.subarray(0,L);r=r.subarray(L);return F(M,Um(a,b,c,g,d,K,!0,e),5);case 5:b.ba&&b.sa&&Xl(b.ba,d.startTime,!0);case 4:za(M,0);break;case 2:v=J=Aa(M),G(M)}})},F(C,Vm(a,b,d,y),9);n=Vm(a,b,d);return F(C,n,7);case 7:q=C.h;Ug(a.m);if(a.B)return C.return();Ug(a.m);return b.Ec?(b.Qa=!1,xm(a,b,0),C.return()):F(C,Um(a,b,c,g,d,q,!1,e),6);case 9:z=C.h;if(v)throw v; -if(w){C.u(10);break}u=!0;Ug(a.m);return a.B?C.return():b.Ec?(b.Qa=!1,xm(a,b,0),C.return()):F(C,Um(a,b,c,g,d,z,!1,e),10);case 10:b.ba&&b.sa&&Xl(b.ba,d.startTime,!0);case 6:Ug(a.m);if(a.B)return C.return();b.Ia=d;h.next();b.Qa=!1;b.Ug=!1;A=a.g.aa.Lb();B=A[b.type];fb(JSON.stringify(B));b.Ec||(E=null,b.type===f.wa?E=a.i.get(f.Y):b.type===f.Y&&(E=a.i.get(f.wa)),E&&E.type==f.Y?a.g.pf(d,b.stream,E.stream.isAudioMuxedInVideo):a.g.pf(d,b.stream,b.stream.codecs.includes(",")));xm(a,b,0);za(C,0);break;case 2:H= -Aa(C);Ug(a.m,H);if(a.B)return C.return();b.Qa=!1;if(7001==H.code)b.Qa=!1,pm(b),xm(a,b,0),C.u(0);else if(b.type==f.Oa&&a.h.ignoreTextStreamFailures)a.i.delete(f.Oa),C.u(0);else{if(3017==H.code)return F(C,Wm(a,b,H),0);b.Pd=!0;1==H.category&&b.ba&&cm(b.ba,d);H.severity=2;return F(C,Lm(a,b,H),0)}}})} -function Rm(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u;return Q(function(w){switch(w.g){case 1:e=b.stream;for(h=(g=(f=e.segmentIndex)&&f.Ub(c))&&g.next().value;h&&a.L.includes(h.startTime);)h=g&&g.next().value;if(!h){w.u(0);break}k=h.Z;if(!k||pj(k,b.Ob)){w.u(3);break}b.Ob=k;wa(w,4);return F(w,Vm(a,b,k),6);case 6:l=w.h;var v=a.g.aa;v.M&&Bc(v.M,l,0,e);a.L=[];za(w,3);break;case 4:throw m=Aa(w),b.Ob=null,m;case 3:if(b.Ia&&b.Ia==h){w.u(0);break}b.Ia=h;wa(w,8);return F(w,Vm(a,b,h),10);case 10:n=w.h;v=a.g.aa;v.M&& -Bc(v.M,n,0,e);a.L.push(h.startTime);za(w,9);break;case 8:throw q=Aa(w),b.Ia=null,q;case 9:r=Math.max.apply(Math,[0].concat(x(a.L)));u=a.g.Lc();if(u+d>r)return F(w,Rm(a,b,h.startTime,d),0);w.u(0)}})}function Tm(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c} -function Wm(a,b,c){var d,e,f,g,h,k;return Q(function(l){if(1==l.g){d=Array.from(a.i.values());if(e=d.some(function(m){return m!=b&&m.Ug}))return l.u(2);f=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;if(g=a.g.disableStream(b.stream,f))return l.return();if(a.h.avoidEvictionOnQuotaExceededError)return xm(a,b,4),l.return();h=Math.round(100*a.C);if(20r)return F(w,Zm(a,b,h.startTime,d),0);w.u(0)}})} +function cn(a,b,c){var d,e,f,g,h,k;return Q(function(l){if(1==l.g){d=Array.from(a.h.values());if(e=d.some(function(m){return m!=b&&m.Vg}))return l.u(2);f=0===a.i.maxDisabledTime&&1011==c.code?1:a.i.maxDisabledTime;if(g=a.g.disableStream(b.stream,f))return l.return();if(a.i.avoidEvictionOnQuotaExceededError)return Em(a,b,4),l.return();h=Math.round(100*a.C);if(20k&&(n=Math.max(h-f,l-k-g));return n<=k?q.return():F(q,a.g.aa.remove(b.type,g,g+n,e), -2)}if(4!=q.g)return Ug(a.m),a.F?F(q,Xm(a,a.F,c),4):q.u(0);Ug(a.m);G(q)})}function Nm(a){return a&&a.type==wc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)} -function Vm(a,b,c,d){var e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(e=c.Wb())return l.return(e);f=null;if(b.ba){var m=b.ba,n=m.h;c instanceof oj&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.mh=d),f=m.Yd):f=null}f||(f=Jm(c,b.stream,d||null,a.h.retryParameters,a.g.lc));g=0;b.sa&&(g=b.sa.h);b.Gb=f;return F(l,f.promise,2);case 2:h=l.h;b.Gb=null;k=h.data;if(!c.aesKey){l.u(3);break}return F(l,lm(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})} -function Jm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a instanceof qj?a:void 0,h=g?1:0;a=mm(a.O(),a.startByte,a.endByte,d,c);a.contentType=b.type;return e.request(Rg,a,{type:h,stream:b,segment:g,isPreload:f})} -function Fm(a,b,c,d){var e,f;return Q(function(g){if(1==g.g)return b.Ec=!1,b.Mf=!1,b.Ne=0,b.Fc=!0,b.Ia=null,b.sa=null,b.ba&&!a.o.has(b.stream)&&dm(b.ba),d?(e=a.g.Lc(),f=a.g.aa.getDuration(),F(g,a.g.aa.remove(b.type,e+d,f),3)):F(g,Rk(a.g.aa,b.type),4);if(3!=g.g)return Ug(a.m),c?F(g,a.g.aa.flush(b.type),3):g.u(3);Ug(a.m);b.Fc=!1;b.endOfStream=!1;b.Qa||b.yb||xm(a,b,0);G(g)})} -function xm(a,b,c){var d=b.type;if(d!=wc||a.i.has(d))b.yb=(new Ze(function(){var e;return Q(function(f){if(1==f.g)return wa(f,2),F(f,Km(a,b),4);if(2!=f.g)return za(f,0);e=Aa(f);if(a.g)a.g.onError(e);G(f)})})).ha(c)}function pm(a){null!=a.yb&&(a.yb.stop(),a.yb=null)}function qm(a){return Q(function(b){return a.Gb?F(b,a.Gb.abort(),0):b.u(0)})} -function Lm(a,b,c){var d;return Q(function(e){if(1==e.g)return 3024==c.code?(b.Qa=!1,pm(b),xm(a,b,0),e.return()):F(e,sg(a.S),2);Ug(a.m);if(1===c.category&&1003!=c.code){if(b.Bc)return zm(a,!1),e.return();d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;c.handled=a.g.disableStream(b.stream,d);c.handled&&(c.severity=1)}if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.h.failureCallback(c);G(e)})} -function Em(a,b,c){b=void 0===b?!1:b;c=void 0===c?!0:c;var d,e,f,g,h,k;return Q(function(l){if(1==l.g){d=Date.now()/1E3;e=a.h.minTimeBetweenRecoveries;if(!b){if(!a.h.allowMediaSourceRecoveries||d-a.Mb||1e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function cn(a,b){return a&&b} -function dn(a,b){function c(f){for(var g=t(Object.keys(f)),h=g.next();!h.done;h=g.next())if(h=h.value,!(f[h]instanceof HTMLElement))if(e(f[h])&&0===Object.keys(f[h]).length)delete f[h];else{var k=f[h];Array.isArray(k)&&0===k.length?delete f[h]:"function"==typeof f[h]?delete f[h]:e(f[h])&&(c(f[h]),0===Object.keys(f[h]).length&&delete f[h])}}function d(f,g){return Object.keys(f).reduce(function(h,k){var l=f[k];if(g.hasOwnProperty(k))if(l instanceof HTMLElement&&g[k]instanceof HTMLElement)l.isEqualNode(g[k])|| -(h[k]=l);else if(e(l)&&e(g[k])){if(l=d(l,g[k]),0"===c.substr(0,5)&&""===c.substr(-6)&&(c=c.slice(5,-6),a=!0);if(!a)try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Ub(mc(c)))}};en.muxFairPlayRequest=function(a,b){jn(a,b)}; -en.expressplayFairPlayRequest=function(a,b){if(2===a){var c=b.drmInfo;c&&ng(c.keySystem)&&jn(a,b)}};en.conaxFairPlayRequest=function(a,b){jn(a,b)};en.ezdrmFairPlayRequest=function(a,b){jn(a,b)};en.verimatrixFairPlayRequest=function(a,b){2===a&&(a=b.drmInfo)&&ng(a.keySystem)&&(a=Tb(b.body),a=lc(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=ec("spc="+a))};en.muxInitDataTransform=function(a,b,c){return hn(a,b,c)}; -en.expressplayInitDataTransform=function(a,b,c){return hn(a,b,c)};en.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=dc(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=Xb(d);for(var e=0,f=c.length;eb?!1:!0}).sort(function(c,d){return c.audio||d.audio?c.audio?d.audio?(d.audio.channelsCount||0)-(c.audio.channelsCount||0):1:-1:0})}function on(a,b){if("AUTO"==b){var c=a.some(function(d){return d.video&&d.video.hdr&&"HLG"==d.video.hdr?!0:!1});b=un(c)}return a.filter(function(d){return d.video&&d.video.hdr&&d.video.hdr!=b?!1:!0})} -function nn(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function sn(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})}function tn(a,b){return a.filter(function(c){return c.audio&&c.audio.codecs!=b?!1:!0})};function vn(){} -function wn(){var a=Infinity,b=qb();navigator.connection&&navigator.connection.saveData&&(a=360);var c={retryParameters:rg(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(h,k,l){"apple"===window.shakaMediaKeysPolyfill&&"skd"==k&&(k=l.serverCertificate,l=fn(h),h=gn(h,l,k));return h},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1, -minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},d="reload",e=!1;Gc()&&b.Yc()&&(d="smooth",e=!0);e={retryParameters:rg(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1, +function $m(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A;return Q(function(C){switch(C.g){case 1:e=yc;f=null==b.Ia;g=[];h=Math.max(0,Math.max(c.appendWindowStart,a.W)-.1);k=Math.min(c.appendWindowEnd,a.U)+.1;l=c.codecs||b.stream.codecs;m=Le(l);n=Me(c.mimeType||b.stream.mimeType);q=c.timestampOffset;if(q==b.cf&&h==b.kc&&k==b.jc&&m==b.$e&&n==b.bf){C.u(2);break}r=b.$e&&b.bf&&kl(a.g.Z,b.type,n,l,Qm(a));if(!r){C.u(3);break}u=null;b.type===e.xa?u=a.h.get(e.ea):b.type===e.ea&&(u=a.h.get(e.xa));if(!u){C.u(3);break}return F(C, +xm(u).catch(function(){}),5);case 5:u.xb=null,u.kc=null,u.jc=null,Mm(a,u);case 3:return F(C,en(a,b,q,h,k,c,m,n),2);case 2:return qj(c.Y,b.xb)||(b.xb=c.Y,c.l&&c.Y&&(w=bn(a,b,c.Y),v=function(){var E,H,B,D,I,K,J,L,N;return Q(function(O){switch(O.g){case 1:return wa(O,2),F(O,w,4);case 4:return E=O.h,Vg(a.l),H=null,B=new Map,D={projection:null,hfov:null},I=new ch,I.box("moov",hh).box("trak",hh).box("mdia",hh).R("mdhd",function(M){H=Bi(M.reader,M.version).timescale}).box("hdlr",function(M){M=M.reader;M.skip(8); +switch(M.Uc()){case "soun":B.set(e.ea,H);break;case "vide":B.set(e.xa,H)}H=null}),b.type===e.xa&&I.box("minf",hh).box("stbl",hh).R("stsd",jh).box("encv",kh).box("avc1",kh).box("avc3",kh).box("hev1",kh).box("hvc1",kh).box("dvav",kh).box("dva1",kh).box("dvh1",kh).box("dvhe",kh).box("dvc1",kh).box("dvi1",kh).box("vexu",hh).box("proj",hh).R("prji",function(M){M=M.reader.Uc();D.projection=M}).box("hfov",function(M){M=M.reader.T()/1E3;D.hfov=M}),I.parse(E,!0,!0),b.type===e.xa&&fn(a,D),B.has(b.type)?c.Y.timescale= +B.get(b.type):null!=H&&(c.Y.timescale=H),K=b.stream.segmentIndex,K instanceof Ml&&(J=Ol(K,c.startTime)),L=b.stream.closedCaptions&&0k&&(n=Math.max(h-f,l-k-g));return n<=k?q.return():F(q,a.g.Z.remove(b.type,g,g+n,e),2)}if(4!= +q.g)return Vg(a.l),a.F?F(q,dn(a,a.F,c),4):q.u(0);Vg(a.l);G(q)})}function Vm(a){return a&&a.type==wc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)} +function bn(a,b,c,d){var e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(e=c.Wb())return l.return(e);f=null;if(b.aa){var m=b.aa,n=m.h;c instanceof pj&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.nh=d),f=m.Zd):f=null}f||(f=Rm(c,b.stream,d||null,a.i.retryParameters,a.g.pc));g=0;b.sa&&(g=b.sa.h);b.Gb=f;return F(l,f.promise,2);case 2:h=l.h;b.Gb=null;k=h.data;if(!c.aesKey){l.u(3);break}return F(l,sm(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})} +function Rm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a instanceof rj?a:void 0,h=g?1:0;a=tm(a.O(),a.startByte,a.endByte,d,c);a.contentType=b.type;return e.request(Sg,a,{type:h,stream:b,segment:g,isPreload:f})} +function Om(a,b,c,d){var e,f;return Q(function(g){if(1==g.g)return b.Hc=!1,b.Nf=!1,b.Me=0,b.Jc=!0,b.Ia=null,b.sa=null,b.aa&&!a.m.has(b.stream)&&km(b.aa),d?(e=a.g.Pc(),f=a.g.Z.getDuration(),F(g,a.g.Z.remove(b.type,e+d,f),3)):F(g,Sk(a.g.Z,b.type),4);if(3!=g.g)return Vg(a.l),c?F(g,a.g.Z.flush(b.type),3):g.u(3);Vg(a.l);b.Jc=!1;b.endOfStream=!1;b.Pa||b.zb||Em(a,b,0);G(g)})} +function Em(a,b,c){var d=b.type;if(d!=wc||a.h.has(d))b.zb=(new $e(function(){var e;return Q(function(f){if(1==f.g)return wa(f,2),F(f,Sm(a,b),4);if(2!=f.g)return za(f,0);e=Aa(f);if(a.g)a.g.onError(e);G(f)})})).ha(c)}function wm(a){null!=a.zb&&(a.zb.stop(),a.zb=null)}function xm(a){return Q(function(b){return a.Gb?F(b,a.Gb.abort(),0):b.u(0)})} +function Tm(a,b,c){var d;return Q(function(e){if(1==e.g)return 3024==c.code?(b.Pa=!1,wm(b),Em(a,b,0),e.return()):F(e,tg(a.S),2);Vg(a.l);if(1===c.category&&1003!=c.code){if(b.Ec)return Gm(a,!1),e.return();d=0===a.i.maxDisabledTime&&1011==c.code?1:a.i.maxDisabledTime;c.handled=a.g.disableStream(b.stream,d);c.handled&&(c.severity=1)}if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.i.failureCallback(c);G(e)})} +function gn(a,b){b=void 0===b?!1:b;var c=void 0===c?!0:c;var d,e,f,g,h;return Q(function(k){if(1==k.g){d=Date.now()/1E3;e=a.i.minTimeBetweenRecoveries;if(!b){if(!a.i.allowMediaSourceRecoveries||d-a.Mb||1e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function ln(a,b){return a&&b} +function mn(a,b){function c(f){for(var g=t(Object.keys(f)),h=g.next();!h.done;h=g.next())if(h=h.value,!(f[h]instanceof HTMLElement))if(e(f[h])&&0===Object.keys(f[h]).length)delete f[h];else{var k=f[h];Array.isArray(k)&&0===k.length?delete f[h]:"function"==typeof f[h]?delete f[h]:e(f[h])&&(c(f[h]),0===Object.keys(f[h]).length&&delete f[h])}}function d(f,g){return Object.keys(f).reduce(function(h,k){var l=f[k];if(g.hasOwnProperty(k))if(l instanceof HTMLElement&&g[k]instanceof HTMLElement)l.isEqualNode(g[k])|| +(h[k]=l);else if(e(l)&&e(g[k])){if(l=d(l,g[k]),0"===c.substr(0,5)&&""===c.substr(-6)&&(c=c.slice(5,-6),a=!0);if(!a)try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Ub(mc(c)))}};nn.muxFairPlayRequest=function(a,b){rn(a,b)}; +nn.expressplayFairPlayRequest=function(a,b){if(2===a){var c=b.drmInfo;c&&og(c.keySystem)&&rn(a,b)}};nn.conaxFairPlayRequest=function(a,b){rn(a,b)};nn.ezdrmFairPlayRequest=function(a,b){rn(a,b)};nn.verimatrixFairPlayRequest=function(a,b){2===a&&(a=b.drmInfo)&&og(a.keySystem)&&(a=Tb(b.body),a=lc(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=ec("spc="+a))};nn.muxInitDataTransform=function(a,b,c){return qn(a,b,c)}; +nn.expressplayInitDataTransform=function(a,b,c){return qn(a,b,c)};nn.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=dc(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=Xb(d);for(var e=0,f=c.length;eb?!1:!0}).sort(function(c,d){return c.audio||d.audio?c.audio?d.audio?(d.audio.channelsCount||0)-(c.audio.channelsCount||0):1:-1:0})}function wn(a,b){if("AUTO"==b){var c=a.some(function(d){return d.video&&d.video.hdr&&"HLG"==d.video.hdr?!0:!1});b=Cn(c)}return a.filter(function(d){return d.video&&d.video.hdr&&d.video.hdr!=b?!1:!0})} +function vn(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function An(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})}function Bn(a,b){return a.filter(function(c){return c.audio&&c.audio.codecs!=b?!1:!0})};function Dn(){} +function En(){var a=Infinity,b=rb();navigator.connection&&navigator.connection.saveData&&(a=360);var c={retryParameters:sg(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(h,k,l){"apple"===window.shakaMediaKeysPolyfill&&"skd"==k&&(k=l.serverCertificate,l=on(h),h=pn(h,l,k));return h},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1, +minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},d="reload",e=!1;Gc()&&b.$c()&&(d="smooth",e=!0);e={retryParameters:sg(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1, updatePeriod:-1,ignoreDrmInfo:!1,dash:{clockSyncUri:"",disableXlinkProcessing:!0,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready", -"urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:xn,manifestPreprocessorTXml:yn,sequenceMode:!1,multiTypeVariantsAllowed:e,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1, -ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:b.Xc(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:xn,manifestPreprocessorTXml:yn,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}}; -var f={trackSelectionCallback:function(h){return Q(function(k){return k.return(h)})},downloadSizeCallback:function(h){var k;return Q(function(l){if(1==l.g)return navigator.storage&&navigator.storage.estimate?F(l,navigator.storage.estimate(),3):l.return(!0);k=l.h;return l.return(k.usage+h<.95*k.quota)})},progressCallback:function(h,k){return cn([h,k])},usePersistentLicense:!0,numberOfParallelDownloads:5},g={drm:c,manifest:e,streaming:{retryParameters:rg(),failureCallback:function(h){return cn([h])}, +"urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:Fn,manifestPreprocessorTXml:Gn,sequenceMode:!1,multiTypeVariantsAllowed:e,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1, +ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:b.Zc(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:Fn,manifestPreprocessorTXml:Gn,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}}; +var f={trackSelectionCallback:function(h){return Q(function(k){return k.return(h)})},downloadSizeCallback:function(h){var k;return Q(function(l){if(1==l.g)return navigator.storage&&navigator.storage.estimate?F(l,navigator.storage.estimate(),3):l.return(!0);k=l.h;return l.return(k.usage+h<.95*k.quota)})},progressCallback:function(h,k){return ln([h,k])},usePersistentLicense:!0,numberOfParallelDownloads:5},g={drm:c,manifest:e,streaming:{retryParameters:sg(),failureCallback:function(h){return ln([h])}, rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:0,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,safeSeekEndOffset:0,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,preferNativeDash:!1,preferNativeHls:!1,updateIntervalSeconds:1,observeQualityChanges:!1,maxDisabledTime:30,segmentPrefetchLimit:1, prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:{enabled:!1,targetLatency:.5,targetLatencyTolerance:.5,maxPlaybackRate:1.1,minPlaybackRate:.95,panicMode:!1,panicThreshold:60,dynamicTargetLatency:{enabled:!1,stabilityThreshold:60,rebufferIncrement:.5,maxAttempts:10,maxLatency:4,minLatency:1}},allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5, -preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:!1,dontChooseCodecs:!1,shouldFixTimestampOffset:!1,avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep",returnToEndOfLiveWindowWhenOutside:!1},networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16E3},mediaSource:{codecSwitchingStrategy:d,addExtraFeaturesToSourceBuffer:function(h){return cn([h],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(h,k){return cn([h,k])},dispatchAllEmsgBoxes:!1, -useSourceElements:!0,durationReductionEmitsUpdateEnd:!0},offline:f,abrFactory:function(){return new eg},adaptationSetCriteriaFactory:function(){return new (Function.prototype.bind.apply(kn,[null].concat(x(Oa.apply(0,arguments)))))},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity, +preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:!1,dontChooseCodecs:!1,shouldFixTimestampOffset:!1,avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep",returnToEndOfLiveWindowWhenOutside:!1},networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16E3},mediaSource:{codecSwitchingStrategy:d,addExtraFeaturesToSourceBuffer:function(h){return ln([h],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(h,k){return ln([h,k])},dispatchAllEmsgBoxes:!1, +useSourceElements:!0,durationReductionEmitsUpdateEnd:!0},offline:f,abrFactory:function(){return new fg},adaptationSetCriteriaFactory:function(){return new (Function.prototype.bind.apply(sn,[null].concat(x(Oa.apply(0,arguments)))))},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity, minBandwidth:0,maxBandwidth:Infinity,minChannelsCount:0,maxChannelsCount:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:20,minTimeToSwitch:0,preferNetworkInformationBandwidth:!1,removeLatencyFromFirstPacketTime:!0},autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"", preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferredTextFormats:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity,minChannelsCount:0,maxChannelsCount:Infinity},playRangeStart:0,playRangeEnd:Infinity, textDisplayer:{captionsUpdatePeriod:.25,fontScaleFactor:1},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[],version:1},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1,poster:!0},ads:{customPlayheadTracker:!1,skipPlayDetection:!1,supportsMultipleMediaElements:!0,disableHLSInterstitial:!1,disableDASHInterstitial:!1, -allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0},ignoreHardwareResolution:!1,queue:{preloadNextUrlWindow:30,repeatMode:0}};f.trackSelectionCallback=function(h){return Q(function(k){return k.return(zn(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};return b.Ta(g)} -function An(){return{streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}}} -function Bn(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioRobustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return an(a,b,c||wn(),d,"")} -function zn(a,b,c){var d=c;"AUTO"==d&&(c=a.some(function(h){return h.hdr&&"HLG"==h.hdr?!0:!1}),d=un(c));var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=of(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return gf(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height- -h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=wc&&"image"!=c.type||b.push(c);return b}function xn(a){return cn([a],a)}function yn(a){return cn([a],a)}T("shaka.util.PlayerConfiguration",vn);vn.mergeConfigObjects=Bn;vn.createDefaultForLL=An;vn.createDefault=wn;function Cn(){this.g=null;this.h=[]}function Dn(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function En(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Fn(){this.i=this.h=null;this.g=[]}function Gn(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Hn(){this.B=this.W=NaN;this.l="";this.j=this.ci=this.s=this.A=this.K=this.C=this.o=this.m=this.I=this.F=this.i=this.S=this.U=this.M=this.N=this.P=NaN;this.L=0;this.G=this.H=NaN;this.g=new Cn;this.h=new Fn}function In(a,b,c){a.P=b;a.N=c}function Jn(a,b,c){a.W=b;a.B=c}function Kn(a,b){a.i=isNaN(a.i)?b:Math.max(a.i,b)}function Ln(a,b){a.j=isNaN(a.j)?b:a.j+b} -function Mn(a){var b=a.W,c=a.B,d=a.l,e=a.A,f=a.N,g=a.P,h=a.M,k=a.U,l=a.S,m=a.s,n=a.i,q=a.F,r=a.I,u=a.m,w=Dn(a.g,"playing"),v=Dn(a.g,"paused"),y=Dn(a.g,"buffering"),z=a.o,A=a.C,B=a.K,E=a.ci,H=a.j,C=a.L,D=a.H,I=a.G,L=En(a.g),K=[];a=t(a.h.g);for(var J=a.next();!J.done;J=a.next())J=J.value,K.push({timestamp:J.timestamp,id:J.id,type:J.type,fromAdaptation:J.fromAdaptation,bandwidth:J.bandwidth});return{width:b,height:c,currentCodecs:d,streamBandwidth:e,decodedFrames:f,droppedFrames:g,corruptedFrames:h, -stallsDetected:k,gapsJumped:l,estimatedBandwidth:m,completionPercent:n,loadLatency:q,manifestTimeSeconds:r,drmTimeSeconds:u,playTime:w,pauseTime:v,bufferingTime:y,licenseTime:z,liveLatency:A,maxSegmentDuration:B,manifestSizeBytes:E,bytesDownloaded:H,nonFatalErrorCount:C,manifestPeriodCount:D,manifestGapCount:I,stateHistory:L,switchHistory:K}};function Nn(a,b,c,d){Dg.call(this);this.N=a;this.W=b;this.Pa=d.networkingEngine;this.m=c;this.A=null;this.Ka=0;this.ab=d.dd;this.F=d.jk;this.eb=d.kk;this.g=d.config;this.l=this.G=this.h=null;this.va=!1;this.H=d.zk;this.xa=!1;this.i=null;this.oa=!1;this.j=this.C=null;this.ia=!1;this.M=new Map;this.Ba=!1;this.Ua=d.yk;this.$=new Hn;this.ua=new tg;this.s=new tg;this.P=null;this.o=!1;this.ka=d.bj;this.U=this.K=null;this.Za=d.aj;this.S=!1;this.L=[];this.I=[];this.B=!0}pa(Nn,Dg); -function On(a,b,c){(a=b?a.I:a.L)?a.push(c):c()}function Pn(a){if(a.I)for(var b=t(a.I),c=b.next();!c.done;c=b.next())c=c.value,c();a.I=null}function Qn(a,b){a.P=b;a.S=!0;if(a.L){b=t(a.L);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.L=null}p=Nn.prototype;p.getStartTime=function(){return this.m};p.jd=function(){return this.N};p.zg=function(){return this.h};function Rn(a){a.ia=!0;return a.j}function Sn(a){a.xa=!0;return a.H}p.getStats=function(){return this.$}; -function Tn(a){a.oa=!0;return a.i}p.Jj=function(){return this.K?Lf(this.K):null};p.Ij=function(){return this.U?Of(this.U):null};function Un(a){a.Ba=!0;return a.M} -p.start=function(){var a=this;(function(){var b;return Q(function(c){switch(c.g){case 1:return F(c,Promise.resolve(),2);case 2:return wa(c,3),F(c,Vn(a),5);case 5:Wn(a);if("webkit"===window.shakaMediaKeysPolyfill){c.u(6);break}return F(c,Xn(a),7);case 7:Wn(a);case 6:return F(c,Yn(a),8);case 8:Wn(a);if(!a.ka||!a.i){c.u(9);break}return F(c,Zh(a.i),10);case 10:Wn(a);case 9:a.s.resolve();za(c,0);break;case 3:b=Aa(c),b instanceof U&&(7001==b.code||7003==b.code)||a.s.reject(b),G(c)}})})()}; -p.dispatchEvent=function(a){return this.P?this.P.dispatchEvent(a):Dg.prototype.dispatchEvent.call(this,a)};p.onError=function(a){2===a.severity&&(this.s.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new V("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function Wn(a){if(a.o)throw new U(2,7,7003);}function no(a,b){a.dispatchEvent(new V("onstatechange",(new Map).set("state",b)))} -function Vn(a){var b,c,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:no(a,"manifest-parser");a.l||(a.G=xi(a.N,a.W),a.l=a.G(),a.l.configure(a.g.manifest,function(){return a.B}));b=Date.now()/1E3;no(a,"manifest");if(a.h){m.u(2);break}return F(m,a.l.start(a.N,a.eb),3);case 3:a.h=m.h;if(1!=a.h.variants.length){m.u(2);break}c=[];d=a.h.variants[0];e=t([d.video,d.audio]);for(f=e.next();!f.done;f=e.next())(g=f.value)&&!g.segmentIndex&&c.push(g.createSegmentIndex());if(!(0d.endTime?uo:ro;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.bd==e&&h.$c==f&&h.Nc(d,b)}}};function so(a,b,c,d){b=new V(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var to=1,ro=2,uo=3;function vo(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:var n=(new Bb(a)).mb.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=wo.get(d))return m.return(e);f=0;g=Lg([a],c);wa(m,2);g.method="HEAD";return F(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];za(m,3);break;case 2:k=Aa(m);if(!k||1002!=k.code&&1001!=k.code){m.u(3);break}g.method="GET";return F(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e? +allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0},ignoreHardwareResolution:!1,queue:{preloadNextUrlWindow:30,repeatMode:0}};f.trackSelectionCallback=function(h){return Q(function(k){return k.return(Hn(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};return b.Sa(g)} +function In(){return{streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}}} +function Jn(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioRobustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return jn(a,b,c||En(),d,"")} +function Hn(a,b,c){var d=c;"AUTO"==d&&(c=a.some(function(h){return h.hdr&&"HLG"==h.hdr?!0:!1}),d=Cn(c));var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=pf(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return hf(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height- +h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=wc&&"image"!=c.type||b.push(c);return b}function Fn(a){return ln([a],a)}function Gn(a){return ln([a],a)}T("shaka.util.PlayerConfiguration",Dn);Dn.mergeConfigObjects=Jn;Dn.createDefaultForLL=In;Dn.createDefault=En;function Kn(){this.g=null;this.h=[]}function Ln(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Mn(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Nn(){this.i=this.h=null;this.g=[]}function On(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Pn(){this.B=this.W=NaN;this.l="";this.j=this.di=this.s=this.A=this.K=this.C=this.o=this.m=this.I=this.F=this.i=this.S=this.U=this.M=this.N=this.P=NaN;this.L=0;this.G=this.H=NaN;this.g=new Kn;this.h=new Nn}function Qn(a,b,c){a.P=b;a.N=c}function Rn(a,b,c){a.W=b;a.B=c}function Sn(a,b){a.i=isNaN(a.i)?b:Math.max(a.i,b)}function Tn(a,b){a.j=isNaN(a.j)?b:a.j+b} +function Un(a){var b=a.W,c=a.B,d=a.l,e=a.A,f=a.N,g=a.P,h=a.M,k=a.U,l=a.S,m=a.s,n=a.i,q=a.F,r=a.I,u=a.m,w=Ln(a.g,"playing"),v=Ln(a.g,"paused"),y=Ln(a.g,"buffering"),z=a.o,A=a.C,C=a.K,E=a.di,H=a.j,B=a.L,D=a.H,I=a.G,K=Mn(a.g),J=[];a=t(a.h.g);for(var L=a.next();!L.done;L=a.next())L=L.value,J.push({timestamp:L.timestamp,id:L.id,type:L.type,fromAdaptation:L.fromAdaptation,bandwidth:L.bandwidth});return{width:b,height:c,currentCodecs:d,streamBandwidth:e,decodedFrames:f,droppedFrames:g,corruptedFrames:h, +stallsDetected:k,gapsJumped:l,estimatedBandwidth:m,completionPercent:n,loadLatency:q,manifestTimeSeconds:r,drmTimeSeconds:u,playTime:w,pauseTime:v,bufferingTime:y,licenseTime:z,liveLatency:A,maxSegmentDuration:C,manifestSizeBytes:E,bytesDownloaded:H,nonFatalErrorCount:B,manifestPeriodCount:D,manifestGapCount:I,stateHistory:K,switchHistory:J}};function Vn(a,b,c,d){Eg.call(this);this.N=a;this.W=b;this.Oa=d.networkingEngine;this.m=c;this.A=null;this.Ka=0;this.ab=d.ed;this.F=d.kk;this.eb=d.lk;this.g=d.config;this.l=this.G=this.h=null;this.wa=!1;this.H=d.Ak;this.ya=!1;this.i=null;this.oa=!1;this.j=this.C=null;this.ia=!1;this.M=new Map;this.Ba=!1;this.Ta=d.zk;this.$=new Pn;this.va=new ug;this.s=new ug;this.P=null;this.o=!1;this.ka=d.cj;this.U=this.K=null;this.Za=d.bj;this.S=!1;this.L=[];this.I=[];this.B=!0}pa(Vn,Eg); +function Wn(a,b,c){(a=b?a.I:a.L)?a.push(c):c()}function Xn(a){if(a.I)for(var b=t(a.I),c=b.next();!c.done;c=b.next())c=c.value,c();a.I=null}function Yn(a,b){a.P=b;a.S=!0;if(a.L){b=t(a.L);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.L=null}p=Vn.prototype;p.getStartTime=function(){return this.m};p.kd=function(){return this.N};p.Ag=function(){return this.h};function Zn(a){a.ia=!0;return a.j}function $n(a){a.ya=!0;return a.H}p.getStats=function(){return this.$}; +function ao(a){a.oa=!0;return a.i}p.Kj=function(){return this.K?Of(this.K):null};p.Jj=function(){return this.U?Pf(this.U):null};function bo(a){a.Ba=!0;return a.M} +p.start=function(){var a=this;(function(){var b;return Q(function(c){switch(c.g){case 1:return F(c,Promise.resolve(),2);case 2:return wa(c,3),F(c,co(a),5);case 5:eo(a);if("webkit"===window.shakaMediaKeysPolyfill){c.u(6);break}return F(c,to(a),7);case 7:eo(a);case 6:return F(c,uo(a),8);case 8:eo(a);if(!a.ka||!a.i){c.u(9);break}return F(c,$h(a.i),10);case 10:eo(a);case 9:a.s.resolve();za(c,0);break;case 3:b=Aa(c),b instanceof U&&(7001==b.code||7003==b.code)||a.s.reject(b),G(c)}})})()}; +p.dispatchEvent=function(a){return this.P?this.P.dispatchEvent(a):Eg.prototype.dispatchEvent.call(this,a)};p.onError=function(a){2===a.severity&&(this.s.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new V("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function eo(a){if(a.o)throw new U(2,7,7003);}function vo(a,b){a.dispatchEvent(new V("onstatechange",(new Map).set("state",b)))} +function co(a){var b,c,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:vo(a,"manifest-parser");a.l||(a.G=yi(a.N,a.W),a.l=a.G(),a.l.configure(a.g.manifest,function(){return a.B}));b=Date.now()/1E3;vo(a,"manifest");if(a.h){m.u(2);break}return F(m,a.l.start(a.N,a.eb),3);case 3:a.h=m.h;if(1!=a.h.variants.length){m.u(2);break}c=[];d=a.h.variants[0];e=t([d.video,d.audio]);for(f=e.next();!f.done;f=e.next())(g=f.value)&&!g.segmentIndex&&c.push(g.createSegmentIndex());if(!(0d.endTime?Co:zo;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.dd==e&&h.cd==f&&h.Rc(d,b)}}};function Ao(a,b,c,d){b=new V(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Bo=1,zo=2,Co=3;function Do(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:var n=(new Bb(a)).mb.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Eo.get(d))return m.return(e);f=0;g=Mg([a],c);wa(m,2);g.method="HEAD";return F(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];za(m,3);break;case 2:k=Aa(m);if(!k||1002!=k.code&&1001!=k.code){m.u(3);break}g.method="GET";return F(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e? e.toLowerCase().split(";").shift():"")}})} -var wo=(new Map).set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv", +var Eo=(new Map).set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv", "text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");/* @license Copyright 2013 Ali Al Dallal @@ -649,7 +652,7 @@ var wo=(new Map).set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -for(var xo={ach:"Lwo",ady:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"T\u0255\u0265i",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-AR":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-MA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-SA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)","ay-BO":"Aymar aru",az:"Az\u0259rbaycan dili","az-AZ":"Az\u0259rbaycan dili", +for(var Fo={ach:"Lwo",ady:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"T\u0255\u0265i",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-AR":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-MA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-SA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)","ay-BO":"Aymar aru",az:"Az\u0259rbaycan dili","az-AZ":"Az\u0259rbaycan dili", "be-BY":"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",bg:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438","bg-BG":"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",bn:"\u09ac\u09be\u0982\u09b2\u09be","bn-IN":"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)","bn-BD":"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)","bs-BA":"Bosanski",ca:"Catal\u00e0","ca-ES":"Catal\u00e0",cak:"Maya Kaqchikel","ck-US":"\u13e3\u13b3\u13a9 (tsalagi)", cs:"\u010ce\u0161tina","cs-CZ":"\u010ce\u0161tina",cy:"Cymraeg","cy-GB":"Cymraeg",da:"Dansk","da-DK":"Dansk",de:"Deutsch","de-AT":"Deutsch (\u00d6sterreich)","de-DE":"Deutsch (Deutschland)","de-CH":"Deutsch (Schweiz)",dsb:"Dolnoserb\u0161\u0107ina",el:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac","el-GR":"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",en:"English","en-GB":"English (UK)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-IN":"English (India)", "en-PI":"English (Pirate)","en-UD":"English (Upside Down)","en-US":"English (US)","en-ZA":"English (South Africa)","en@pirate":"English (Pirate)",eo:"Esperanto","eo-EO":"Esperanto",es:"Espa\u00f1ol","es-AR":"Espa\u00f1ol (Argentine)","es-419":"Espa\u00f1ol (Latinoam\u00e9rica)","es-CL":"Espa\u00f1ol (Chile)","es-CO":"Espa\u00f1ol (Colombia)","es-EC":"Espa\u00f1ol (Ecuador)","es-ES":"Espa\u00f1ol (Espa\u00f1a)","es-LA":"Espa\u00f1ol (Latinoam\u00e9rica)","es-NI":"Espa\u00f1ol (Nicaragua)","es-MX":"Espa\u00f1ol (M\u00e9xico)", @@ -662,139 +665,139 @@ ml:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02","ml-IN":"\u0d2e\u0d32\u0d2f\u0d3e\u0d3 "ru-RU":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","sa-IN":"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d","se-NO":"Davvis\u00e1megiella","si-LK":"\u0db4\u0dc5\u0dcf\u0dad",sk:"Sloven\u010dina","sk-SK":"Sloven\u010dina (Slovakia)",sl:"Sloven\u0161\u010dina","sl-SI":"Sloven\u0161\u010dina","so-SO":"Soomaaliga",sq:"Shqip","sq-AL":"Shqip",sr:"\u0421\u0440\u043f\u0441\u043a\u0438","sr-RS":"\u0421\u0440\u043f\u0441\u043a\u0438 (Serbia)",su:"Basa Sunda",sv:"Svenska","sv-SE":"Svenska",sw:"Kiswahili", "sw-KE":"Kiswahili",ta:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd","ta-IN":"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",te:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41","te-IN":"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",tg:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301","tg-TJ":"\u0442\u043e\u04b7\u0438\u043a\u04e3",th:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22","th-TH":"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",tl:"Filipino","tl-PH":"Filipino", tlh:"tlhIngan-Hol",tr:"T\u00fcrk\u00e7e","tr-TR":"T\u00fcrk\u00e7e","tt-RU":"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",uk:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430","uk-UA":"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",ur:"\u0627\u0631\u062f\u0648","ur-PK":"\u0627\u0631\u062f\u0648",uz:"O'zbek","uz-UZ":"O'zbek",vi:"Ti\u1ebfng Vi\u1ec7t","vi-VN":"Ti\u1ebfng Vi\u1ec7t","xh-ZA":"isiXhosa",yi:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9","yi-DE":"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)", -zh:"\u4e2d\u6587","zh-HANS":"\u4e2d\u6587\u7b80\u4f53","zh-HANT":"\u4e2d\u6587\u7e41\u9ad4","zh-CN":"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09","zh-HK":"\u4e2d\u6587\uff08\u9999\u6e2f\uff09","zh-SG":"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09","zh-TW":"\u4e2d\u6587\uff08\u53f0\u7063\uff09","zu-ZA":"isiZulu"},yo=t(Object.keys(xo)),zo=yo.next();!zo.done;zo=yo.next()){var Ao=zo.value;xo[Ao.toLowerCase()]=xo[Ao]};function Bo(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Bo(g,a)}).join("");if(!a.payload)return a.payload;var c=[],d=a.fontWeight>=ne,e=a.fontStyle==oe,f=a.textDecoration.includes(pe);d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=Co(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Co(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value; +zh:"\u4e2d\u6587","zh-HANS":"\u4e2d\u6587\u7b80\u4f53","zh-HANT":"\u4e2d\u6587\u7e41\u9ad4","zh-CN":"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09","zh-HK":"\u4e2d\u6587\uff08\u9999\u6e2f\uff09","zh-SG":"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09","zh-TW":"\u4e2d\u6587\uff08\u53f0\u7063\uff09","zu-ZA":"isiZulu"},Go=t(Object.keys(Fo)),Ho=Go.next();!Ho.done;Ho=Go.next()){var Io=Ho.value;Fo[Io.toLowerCase()]=Fo[Io]};function Jo(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Jo(g,a)}).join("");if(!a.payload)return a.payload;var c=[],d=a.fontWeight>=oe,e=a.fontStyle==pe,f=a.textDecoration.includes(qe);d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=Ko(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Ko(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value; k=k.next().value;return"<"+h+(void 0===k?"":k)+">"+g+""},a.payload)} -function Co(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7>>0).toString()}if(a.startTime>=a.endTime)return null;var c=new VTTCue(a.startTime,a.endTime,a.payload);c.id=b(a.startTime.toString())+b(a.endTime.toString())+b(a.payload);c.lineAlign=a.lineAlign;c.positionAlign=a.positionAlign;a.size&&(c.size=a.size);try{c.align=a.textAlign}catch(d){}"center"==a.textAlign&&"center"!=c.align&&(c.align="middle");"vertical-lr"==a.writingMode?c.vertical="lr":"vertical-rl"==a.writingMode&& +function Ko(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7>>0).toString()}if(a.startTime>=a.endTime)return null;var c=new VTTCue(a.startTime,a.endTime,a.payload);c.id=b(a.startTime.toString())+b(a.endTime.toString())+b(a.payload);c.lineAlign=a.lineAlign;c.positionAlign=a.positionAlign;a.size&&(c.size=a.size);try{c.align=a.textAlign}catch(d){}"center"==a.textAlign&&"center"!=c.align&&(c.align="middle");"vertical-lr"==a.writingMode?c.vertical="lr":"vertical-rl"==a.writingMode&& (c.vertical="rl");1==a.lineInterpretation&&(c.snapToLines=!1);null!=a.line&&(c.line=a.line);null!=a.position&&(c.position=a.position);return c} -function Go(a,b){var c=Do(b),d=[];b=a.cues?Array.from(a.cues):[];c=t(c);for(var e=c.next(),f={};!e.done;f={ld:void 0},e=c.next())f.ld=e.value,!b.some(function(g){return function(h){return h.startTime==g.ld.startTime&&h.endTime==g.ld.endTime&&h.text==g.ld.payload?!0:!1}}(f))&&f.ld.payload&&(e=Fo(f.ld))&&d.push(e);b=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-d.indexOf(g):d.indexOf(g)- -d.indexOf(h)});b=t(b);for(c=b.next();!c.done;c=b.next())a.addCue(c.value)}function Ho(a,b){var c=!1;"disabled"===a.mode&&(c=!0,a.mode="hidden");for(var d=0;dd&&"hidden"=== -g.track.mode&&(d=f)}e=t(b.i);for(f=e.next();!f.done;f=e.next())g=t(f.value),f=g.next().value,g=g.next().value,f!==d&&"disabled"!==g.track.mode&&(g.track.mode="disabled");b.g!==d&&(b.g=d,-1this.g)return!1;Ho(this.i.get(this.g).track,function(c){return c.startTimea});return!0};p.append=function(a){!this.j||0>this.g||Go(this.i.get(this.g).track,a)};p.destroy=function(){this.h&&(this.j&&this.B(),this.h=null);this.l&&(this.l.release(),this.l=null);return Promise.resolve()};p.isTextVisible=function(){return this.s}; -p.setTextVisibility=function(a){this.s=a;if(-1a});return!0}; -p.append=function(a){this.g&&Go(this.g,a)};p.destroy=function(){this.g&&(Ho(this.g,function(){return!0}),this.g.mode="disabled");this.g=this.h=null;return Promise.resolve()};p.isTextVisible=function(){return this.g?"showing"==this.g.mode:!1};p.setTextVisibility=function(a){a&&!this.g&&Lo(this);this.g&&(this.g.mode=a?"showing":"hidden")};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){Lo(this)};function Lo(a){a.h&&!a.g&&(a.g=a.h.addTextTrack("subtitles",a.i),a.g.mode="hidden")} -T("shaka.text.SimpleTextDisplayer",Ko);Ko.prototype.enableTextDisplayer=Ko.prototype.enableTextDisplayer;Ko.prototype.setTextLanguage=Ko.prototype.setTextLanguage;Ko.prototype.setTextVisibility=Ko.prototype.setTextVisibility;Ko.prototype.isTextVisible=Ko.prototype.isTextVisible;Ko.prototype.destroy=Ko.prototype.destroy;Ko.prototype.append=Ko.prototype.append;Ko.prototype.remove=Ko.prototype.remove;Ko.prototype.configure=Ko.prototype.configure;function Mo(){}p=Mo.prototype;p.configure=function(){};p.remove=function(){};p.append=function(){};p.destroy=function(){};p.isTextVisible=function(){return!1};p.setTextVisibility=function(){};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){};T("shaka.text.StubTextDisplayer",Mo);Mo.prototype.enableTextDisplayer=Mo.prototype.enableTextDisplayer;Mo.prototype.setTextLanguage=Mo.prototype.setTextLanguage;Mo.prototype.setTextVisibility=Mo.prototype.setTextVisibility; -Mo.prototype.isTextVisible=Mo.prototype.isTextVisible;Mo.prototype.destroy=Mo.prototype.destroy;Mo.prototype.append=Mo.prototype.append;Mo.prototype.remove=Mo.prototype.remove;Mo.prototype.configure=Mo.prototype.configure;function No(a,b){var c=this;this.m=!1;this.h=[];this.j=a;this.o=b;this.B=this.s=null;this.g=document.createElement("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.A=new $e(function(){c.j.paused||Oo(c)});Po(this);this.l=new Map;this.i=new jb;this.i.D(document,"fullscreenchange",function(){Oo(c,!0)});this.i.D(this.j,"seeking", -function(){Oo(c,!0)});this.i.D(this.j,"ratechange",function(){Po(c)});this.i.D(this.j,"resize",function(){var d=c.j,e=d.videoWidth;d=d.videoHeight;e&&d?c.s=e/d:c.s=null});this.C=null;"ResizeObserver"in window&&(this.C=new ResizeObserver(function(){Oo(c,!0)}),this.C.observe(this.g));this.F=new Map}p=No.prototype;p.configure=function(a){this.B=a;Po(this);Oo(this,!0)}; -p.append=function(a){var b=[].concat(x(this.h));a=t(Eo(a));for(var c=a.next(),d={};!c.done;d={dg:void 0},c=a.next())d.dg=c.value,b.some(function(e){return function(f){return ce(f,e.dg)}}(d))||this.h.push(d.dg);this.h.length&&Po(this);Oo(this)}; -p.destroy=function(){if(!this.g)return Promise.resolve();this.g.parentElement&&this.o.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.A&&(this.A.stop(),this.A=null);this.l.clear();this.i&&(this.i.release(),this.i=null);this.C&&(this.C.disconnect(),this.C=null);return Promise.resolve()};p.remove=function(a,b){if(!this.g)return!1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime=b});Oo(this,c>this.h.length);this.h.length||Po(this);return!0}; -p.isTextVisible=function(){return this.m};p.setTextVisibility=function(a){(this.m=a)?(this.g.parentElement||this.o.appendChild(this.g),Oo(this,!0)):this.g.parentElement&&this.o.removeChild(this.g)};p.setTextLanguage=function(a){a&&"und"!=a?this.g.setAttribute("lang",a):this.g.setAttribute("lang","")};p.enableTextDisplayer=function(){};function Po(a){a.A&&(a.h.length?a.A.Ga((a.B?a.B.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(a.j.playbackRate))):a.A.stop())} -function Qo(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1} -function Ro(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.l.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Yi:null;l&&(g.push(l.eg),l.Uc&&g.push(l.Uc),m||(f=!0,a.l.delete(k),l=null));m&&(h.push(k),l?Qo(a,n)||(f=!0):(So(a,k,e),l=a.l.get(k),n=l.Yi,f=!0));0 +d&&"hidden"===g.track.mode&&(d=f)}e=t(b.h);for(f=e.next();!f.done;f=e.next())g=t(f.value),f=g.next().value,g=g.next().value,f!==d&&"disabled"!==g.track.mode&&(g.track.mode="disabled");b.g!==d&&(b.g=d,-1a});else return!1;return!0};p.append=function(a){this.h.has(this.g)&&Oo(this.h.get(this.g).track,a)};p.destroy=function(){this.i&&(this.j&&this.B(),this.i=null);this.l&&(this.l.release(),this.l=null);return Promise.resolve()};p.isTextVisible=function(){return this.s}; +p.setTextVisibility=function(a){this.s=a;if(this.h.has(this.g)){var b=this.h.get(this.g).track;"disabled"!==b.mode&&(a=a?"showing":"hidden",b.mode!==a&&(b.mode=a))}else if(this.i&&3===this.i.m)if(b=Array.from(this.i.h.textTracks).filter(function(d){return["captions","subtitles","forced"].includes(d.kind)}),a){a=null;b=t(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"showing"===c.mode){a=null;break}else a||"hidden"!==c.mode||(a=c);a&&(a.mode="showing")}else for(a=t(b),b=a.next();!b.done;b= +a.next())b=b.value,"showing"===b.mode&&(b.mode="hidden")};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){!this.j&&this.i&&2===this.i.m&&(this.j=this.i.h,this.l.za(this.i,"unloading",this.B),this.l.D(this.i,"textchanged",this.m),this.l.D(this.j.textTracks,"change",this.A),this.m())}; +function Ro(a){var b=rb();return a.forced&&"WEBKIT"===b.Da()?"forced":"caption"===a.kind||a.roles&&a.roles.some(function(c){return c.includes("transcribes-spoken-dialog")})&&a.roles.some(function(c){return c.includes("describes-music-and-sound")})?"captions":"subtitles"}T("shaka.text.NativeTextDisplayer",Qo);Qo.prototype.enableTextDisplayer=Qo.prototype.enableTextDisplayer;Qo.prototype.setTextLanguage=Qo.prototype.setTextLanguage;Qo.prototype.setTextVisibility=Qo.prototype.setTextVisibility; +Qo.prototype.isTextVisible=Qo.prototype.isTextVisible;Qo.prototype.destroy=Qo.prototype.destroy;Qo.prototype.append=Qo.prototype.append;Qo.prototype.remove=Qo.prototype.remove;Qo.prototype.configure=Qo.prototype.configure;function So(a,b){wb("SimpleTextDisplayer","Please migrate to NativeTextDisplayer");this.h=a;this.i=b;this.g=null;a=t(Array.from(this.h.textTracks));for(b=a.next();!b.done;b=a.next())b=b.value,"metadata"!==b.kind&&"chapters"!==b.kind&&(b.mode="disabled",b.label==this.i&&(this.g=b));this.g&&(this.g.mode="hidden")}p=So.prototype;p.configure=function(){};p.remove=function(a,b){if(!this.g)return!1;Po(this.g,function(c){return c.startTimea});return!0}; +p.append=function(a){this.g&&Oo(this.g,a)};p.destroy=function(){this.g&&(Po(this.g,function(){return!0}),this.g.mode="disabled");this.g=this.h=null;return Promise.resolve()};p.isTextVisible=function(){return this.g?"showing"==this.g.mode:!1};p.setTextVisibility=function(a){a&&!this.g&&To(this);this.g&&(this.g.mode=a?"showing":"hidden")};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){To(this)};function To(a){a.h&&!a.g&&(a.g=a.h.addTextTrack("subtitles",a.i),a.g.mode="hidden")} +T("shaka.text.SimpleTextDisplayer",So);So.prototype.enableTextDisplayer=So.prototype.enableTextDisplayer;So.prototype.setTextLanguage=So.prototype.setTextLanguage;So.prototype.setTextVisibility=So.prototype.setTextVisibility;So.prototype.isTextVisible=So.prototype.isTextVisible;So.prototype.destroy=So.prototype.destroy;So.prototype.append=So.prototype.append;So.prototype.remove=So.prototype.remove;So.prototype.configure=So.prototype.configure;function Uo(){}p=Uo.prototype;p.configure=function(){};p.remove=function(){};p.append=function(){};p.destroy=function(){};p.isTextVisible=function(){return!1};p.setTextVisibility=function(){};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){};T("shaka.text.StubTextDisplayer",Uo);Uo.prototype.enableTextDisplayer=Uo.prototype.enableTextDisplayer;Uo.prototype.setTextLanguage=Uo.prototype.setTextLanguage;Uo.prototype.setTextVisibility=Uo.prototype.setTextVisibility; +Uo.prototype.isTextVisible=Uo.prototype.isTextVisible;Uo.prototype.destroy=Uo.prototype.destroy;Uo.prototype.append=Uo.prototype.append;Uo.prototype.remove=Uo.prototype.remove;Uo.prototype.configure=Uo.prototype.configure;function Vo(a,b){var c=this;this.m=!1;this.h=[];this.j=a;this.o=b;this.B=this.s=null;this.g=document.createElement("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.A=new af(function(){c.j.paused||Wo(c)});Xo(this);this.l=new Map;this.i=new jb;this.i.D(document,"fullscreenchange",function(){Wo(c,!0)});this.i.D(this.j,"seeking", +function(){Wo(c,!0)});this.i.D(this.j,"ratechange",function(){Xo(c)});this.i.D(this.j,"resize",function(){var d=c.j,e=d.videoWidth;d=d.videoHeight;e&&d?c.s=e/d:c.s=null});this.C=null;"ResizeObserver"in window&&(this.C=new ResizeObserver(function(){Wo(c,!0)}),this.C.observe(this.g));this.F=new Map}p=Vo.prototype;p.configure=function(a){this.B=a;Xo(this);Wo(this,!0)}; +p.append=function(a){var b=[].concat(x(this.h));a=t(Mo(a));for(var c=a.next(),d={};!c.done;d={eg:void 0},c=a.next())d.eg=c.value,b.some(function(e){return function(f){return ce(f,e.eg)}}(d))||this.h.push(d.eg);this.h.length&&Xo(this);Wo(this)}; +p.destroy=function(){if(!this.g)return Promise.resolve();this.g.parentElement&&this.o.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.A&&(this.A.stop(),this.A=null);this.l.clear();this.i&&(this.i.release(),this.i=null);this.C&&(this.C.disconnect(),this.C=null);return Promise.resolve()};p.remove=function(a,b){if(!this.g)return!1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime=b});Wo(this,c>this.h.length);this.h.length||Xo(this);return!0}; +p.isTextVisible=function(){return this.m};p.setTextVisibility=function(a){(this.m=a)?(this.g.parentElement||this.o.appendChild(this.g),Wo(this,!0)):this.g.parentElement&&this.o.removeChild(this.g)};p.setTextLanguage=function(a){a&&"und"!=a?this.g.setAttribute("lang",a):this.g.setAttribute("lang","")};p.enableTextDisplayer=function(){};function Xo(a){a.A&&(a.h.length?a.A.Ga((a.B?a.B.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(a.j.playbackRate))):a.A.stop())} +function Yo(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1} +function Zo(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.l.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Zi:null;l&&(g.push(l.fg),l.Wc&&g.push(l.Wc),m||(f=!0,a.l.delete(k),l=null));m&&(h.push(k),l?Yo(a,n)||(f=!0):($o(a,k,e),l=a.l.get(k),n=l.Zi,f=!0));0a.s&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",c.writingMode==Vd?(f.width="100%",c.lineAlign==Xd?f.top=d+"%":"end"==c.lineAlign&&(f.bottom=100-d+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==Xd?f.left=d+"%":"end"==c.lineAlign&&(f.right=100-d+"%")):(f.height="100%",c.lineAlign==Xd?f.right=d+"%":"end"==c.lineAlign&&(f.left= -100-d+"%"))));f.lineHeight=c.lineHeight;a=Uo(c);"line-left"==a?(f.cssFloat="left",null!==c.position&&(f.position="absolute",c.writingMode==Vd?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%")):"line-right"==a?(f.cssFloat="right",null!==c.position&&(f.position="absolute",c.writingMode==Vd?(f.right=100-c.position+"%",f.width="auto"):f.bottom=c.position+"%")):null!==c.position&&50!=c.position&&(f.position="absolute",c.writingMode==Vd?(f.left=c.position+"%",f.width="auto"):f.top=c.position+ -"%");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==Vd?f.width=c.size+"%":f.height=c.size+"%")} -function Vo(a,b,c,d){d=void 0===d?1:d;var e=(e=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(e[1]),unit:e[2]}:null;if(!e)return a;a=e.unit;d*=e.value;switch(a){case "%":return d/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*d/b.cellResolution.rows+"px";default:return d+a}}function Wo(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}T("shaka.text.UITextDisplayer",No);No.prototype.enableTextDisplayer=No.prototype.enableTextDisplayer; -No.prototype.setTextLanguage=No.prototype.setTextLanguage;No.prototype.setTextVisibility=No.prototype.setTextVisibility;No.prototype.isTextVisible=No.prototype.isTextVisible;No.prototype.remove=No.prototype.remove;No.prototype.destroy=No.prototype.destroy;No.prototype.append=No.prototype.append;No.prototype.configure=No.prototype.configure;function Xo(a,b){function c(f){for(var g=f,h=t(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.startf?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=Do(a);a="WEBVTT\n\n";d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left"); -break;case "right":g.push("align:right");break;case Sd:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}T("shaka.text.WebVttGenerator",function(){});function Yo(a,b){this.h=a;this.g=b;this.i=void 0;this.s=!1;this.F=!0;this.l=this.B=!1;this.o=this.m=void 0;this.A=0;this.G=!1;this.C=new jb;this.j=null}Yo.prototype.setMediaElement=function(a){this.j=a;Zo(this)};Yo.prototype.configure=function(a){this.g=a};function $o(a){a.s=!1;a.F=!0;a.B=!1;a.l=!1;a.m=0;a.o=0;a.A=0;a.G=!1;a.j=null;a.C.Ra()}function ap(a,b){a.l=b;a.l?a.i==bp?a.i=cp:a.i==dp&&(a.i=ep):a.i==cp?a.i=bp:a.i==ep&&(a.i=dp)} -function fp(a,b){if(a.g&&a.g.enabled&&a.g.version==gp&&a.j&&a.j.autoplay){var c=a.j.play();c&&c.then(function(){a.A=b}).catch(function(){a.A=0})}} -function hp(a,b,c){try{if(!a.g.enabled)return b;var d=ip(a);a:{switch(c.toLowerCase()){case "audio/mp4":case "audio/webm":case "audio/ogg":case "audio/mpeg":case "audio/aac":case "audio/flac":case "audio/wav":var e=jp;break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e=kp;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":case "application/vnd.ms-sstr+xml":e=lp;break a}e=void 0}d.ot=e;d.su= -!0;var f=mp(d);return np(b,f)}catch(g){return cb("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function Zo(a){a.C.za(a.j,"play",function(){a.m||(a.m=Date.now())});a.C.za(a.j,"playing",function(){a.o||(a.o=Date.now())})}function ip(a){a.g.sessionId||(a.g.sessionId=window.crypto.randomUUID());return{v:a.g.version,sf:a.i,sid:a.g.sessionId,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}} -function op(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled)if(a=pp(a,c),d)d=qp(a),Object.keys(d).length&&Object.assign(b.headers,d);else{var e=mp(a);e&&(b.uris=b.uris.map(function(f){return np(f,e)}))}}function rp(a,b){var c=a.g.includeKeys;return c.length?Object.keys(b).reduce(function(d,e){c.includes(e)&&(d[e]=b[e]);return d},{}):b} -function sp(a){if(0===a.type)return tp;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?kp:up;if("audio"==b)return jp;if("text"==b)return"application/mp4"===a.mimeType?vp:wp}}function xp(a,b){b=a.h.Lb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN} -function yp(a,b){b=a.h.Lb()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function zp(a,b){var c=a.h.Fb();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case up:return a.videoBandwidth||NaN;case jp:return a.audioBandwidth||NaN;default:return a.bandwidth}} -function pp(a,b){b=void 0===b?{}:b;Object.assign(b,ip(a));b.pr=a.h.sb();var c=b.ot===up||b.ot===kp;a.B&&c&&(b.bs=!0,b.su=!0,a.B=!1);null==b.su&&(b.su=a.F);b.v===gp&&(a.h.V()&&(b.ltc=a.h.Te()),c=!a.G&&a.o&&a.m?a.o-(a.A||a.m):void 0,void 0!=c&&(b.msd=c,a.G=!0));return rp(a,b)} -function mp(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"=== -l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function qp(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a=c?a*(1-c)+b*c:a};function Fp(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}T("shaka.util.CmsdManager",Ap);Ap.prototype.getBandwidthEstimate=Ap.prototype.getBandwidthEstimate;Ap.prototype.getRoundTripTime=Ap.prototype.Mj;Ap.prototype.getResponseDelay=Ap.prototype.Lj;Ap.prototype.getEstimatedThroughput=Ap.prototype.Sh; -Ap.prototype.getMaxBitrate=Ap.prototype.Uh;var Cp="etp",Bp="mb",Dp="rd",Ep="rtt";function Gp(){this.g=null;this.h=[]}function Hp(a,b){return Q(function(c){if(1==c.g)return a.g?F(c,new Promise(function(d){return a.h.push(d)}),2):c.u(2);a.g=b;G(c)})}Gp.prototype.release=function(){0B.end&&(B.end=E.end)}return B};d.va=new Sl(q);d.va.addEventListener("regionadd", -function(A){dq(d,A.region,"metadataadded")});if(m)return F(z,k(function(){return Q(function(A){return F(A,eq(d,c),0)})},"initializeSrcEqualsDrmInner_"),23);d.Za=new Sl(q);return F(z,k(function(){return Q(function(A){if(1==A.g)return F(A,Promise.race([e.ua,e.s]),2);d.mc=e.G;var B=e;B.va=!0;d.G=B.l;d.i=e.zg();G(A)})},"waitForFinish"),15);case 15:if(d.I){z.u(16);break}return F(z,k(function(){return Q(function(A){return F(A,$p(d),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return d.i&&d.i.textStreams.length&& -(d.o.enableTextDisplayer?d.o.enableTextDisplayer():wb("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),F(z,k(function(){return Q(function(A){return F(A,e.s,0)})},"waitForFinish"),18);case 18:d.g=e.getConfiguration();d.re=e.F;d.G&&d.G.setMediaElement&&d.h&&d.G.setMediaElement(d.h);d.ke=Sn(e);d.je=e.Ua;if(r=e.A)d.N=r;l&&d.h&&"AUDIO"===d.h.nodeName&&(fq(d),d.configure("manifest.disableVideo",!0));if(e.i){z.u(19);break}return F(z,k(function(){return Q(function(A){return F(A, -Xn(e,d.h),0)})},"drmEngine_.init"),19);case 19:return d.C=Tn(e),F(z,k(function(){return Q(function(A){return F(A,d.C.cc(d.h),0)})},"drmEngine_.attach"),21);case 21:return!(u=e.C)||d.Ua&&d.Ua==u||(d.s=Rn(e),d.Ua=e.C,"function"!=typeof d.s.setMediaElement&&(wb("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.s.setMediaElement=function(){}),"function"!=typeof d.s.setCmsdManager&&(wb("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."), -d.s.setCmsdManager=function(){}),"function"!=typeof d.s.trySuggestStreams&&(wb("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.s.trySuggestStreams=function(){})),w=Un(e),v=e.K,F(z,k(function(){return Q(function(A){return F(A,gq(d,n,v,w),0)})},"loadInner_"),22);case 22:Pn(e);d.kc&&qb().Ti()&&Ne(d.kc)&&vk(d.I,d.W,d.kc);z.u(14);break;case 23:return F(z,k(function(){return Q(function(A){return F(A,hq(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(Sp("loaded")); -case 6:Ba(z);if(!e){z.u(25);break}return F(z,e.destroy(),25);case 25:d.Pa=null;Ca(z,0);break;case 5:y=Aa(z);if(!y||7E3==y.code){z.u(27);break}return F(z,d.rc(!1),27);case 27:throw y;}})};function fq(a){for(var b=t(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio})} -p.Vk=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,iq(c),2):3!=e.g?(d=e.h,F(e,c.rc(a,b),3)):e.return(d)})};p.Mh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,iq(c,b),2):3!=e.g?(d=e.h,F(e,c.detach(a),3)):e.return(d)})}; -function iq(a,b){b=void 0===b?!1:b;var c,d;return Q(function(e){if(1==e.g){c=null;if(!(a.i&&a.G&&a.mc&&a.W&&a.g))return e.u(2);d=a.h.currentTime;a.V()&&!b&&(d=null);return F(e,jq(a,a.W,d,a.kc,a.g,!0,!1,!1),3)}if(2!=e.g){c=e.h;a.we.push(c);a.G&&a.G.setMediaElement&&a.G.setMediaElement(null);var f=c,g=a.G,h=a.mc;f.h=a.i;f.l=g;f.G=h;f=c;g=a.Ua;f.j=a.s;f.C=g;c.A=a.N;c.start();a.i=null;a.G=null;a.mc=null;a.s=null;a.Ua=null}return e.return(c)})} -p.preload=function(a,b,c,d){b=void 0===b?null:b;var e=this,f,g;return Q(function(h){if(1==h.g)return f=Jp(e),Bn(f,d||e.g,Jp(e)),F(h,cq(e,a,b,c,!1,f),2);(g=h.h)?g.start():Zp(e,new U(2,7,7005));return h.return(g)})};p.hg=function(){var a=this,b,c,d,e;return Q(function(f){b=[];c=t(a.we);for(d=c.next();!d.done;d=c.next())e=d.value,e.o||b.push(e.destroy());a.we=[];return F(f,Promise.all(b),0)})}; -function cq(a,b,c,d,e,f){e=void 0===e?!1:e;var g,h,k,l,m;return Q(function(n){if(1==n.g)return d?n.u(2):F(n,bq(a,b),3);2!=n.g&&(d=n.h);if(g=kq(a,d))return n.return(null);h=f||a.g;k=!1;l=!0;e&&(a.s&&a.Ua==h.abrFactory&&(l=!1),a.h&&"AUDIO"===a.h.nodeName&&(k=!0));m=jq(a,b,c,d||null,h,!e,k,l);m=e?m.then(function(q){q.B=!1;return q}):m.then(function(q){a.we.push(q);return q});return n.return(m)})} -function jq(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,q,r,u,w,v,y,z,A,B,E,H;return Q(function(C){if(1==C.g){k=null;l=ed(e);g&&(l.manifest.disableVideo=!0);m=function(){return k.S&&k.o?null:k};n=function(){return m()?m().getConfiguration():a.g};if(Infinity!=a.ua.width||Infinity!=a.ua.height||a.g.ignoreHardwareResolution)return C.u(2);q=qb();return F(C,q.ec(),3)}2!=C.g&&(r=C.h,a.ua.width=r.width,a.ua.height=r.height);u=new ki(l,a.ua,null);w={networkingEngine:a.H, -filter:function(D){var I,L;return Q(function(K){if(1==K.g)return F(K,li(u,D),2);if(4!=K.g){I=K.h;if(!I)return K.u(0);L=Sp("trackschanged");return F(K,Promise.resolve(),4)}k.dispatchEvent(L);G(K)})},makeTextStreamsForClosedCaptions:function(D){return lq(a,D)},onTimelineRegionAdded:function(D){Tl(k.H,D)},onEvent:function(D){return k.dispatchEvent(D)},onError:function(D){return k.onError(D)},isLowLatencyMode:function(){return n().streaming.lowLatencyMode},updateDuration:function(){a.l&&k.S&&a.l.updateDuration()}, -newDrmInfo:function(D){var I=k.i,L=I?I.h:null;L&&I.A&&oi(u,L.keySystem,D)},onManifestUpdated:function(){var D=(new Map).set("isLive",a.V());k.dispatchEvent(Sp("manifestupdated",D));On(k,!1,function(){if(a.B)a.B.onManifestUpdated(a.V())})},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},onMetadata:function(D,I,L,K){var J=D;if("com.apple.hls.interstitial"==D&&(J="com.apple.quicktime.HLS",D={startTime:I,endTime:L,values:K},a.B))a.B.onHLSInterstitialMetadata(a,a.h,D);K=t(K);D=K.next(); -for(var M={};!D.done;M={Rg:void 0},D=K.next())M.Rg=D.value,"ID"!=M.Rg.name&&On(k,!1,function(O){return function(){mq(a,I,L,J,O.Rg)}}(M))},disableStream:function(D){return a.disableStream(D,a.g.streaming.maxDisabledTime)},addFont:function(D,I){return a.addFont(D,I)}};v=new Sl(function(){return a.Sa()});v.addEventListener("regionadd",function(D){var I=D.region;nq(a,"timelineregionadded",I,k);On(k,!1,function(){a.B&&(a.B.onDashTimedMetadata(I),a.B.onDASHInterstitialMetadata(a,a.h,I))})});y=null;l.streaming.observeQualityChanges&& -(y=new Ml(function(){return a.Lb()}),y.addEventListener("qualitychange",function(D){oq(a,D.quality,D.position)}),y.addEventListener("audiotrackchange",function(D){oq(a,D.quality,D.position,!0)}));z=!0;A={lc:a.H,onError:function(D){return k.onError(D)},nf:function(D){On(k,!0,function(){if(a.C)a:{var I=D,L=Sp("keystatuschanged");a.dispatchEvent(L);var K=Object.keys(I);1==K.length&&""==K[0]&&(K=["00"],I={"00":I[""]});L=1==K.length&&"00"==K[0];var J=!1;if(K.length){K=a.keySystem();for(var M=Xg(a.g.drm.clearKeys), -O=t(a.i.variants),N=O.next();!N.done;N=O.next()){N=N.value;var P=[];N.audio&&P.push(N.audio);N.video&&P.push(N.video);P=t(P);for(var R=P.next();!R.done;R=P.next()){var S=R.value;R=N.allowedByKeySystem;if(S.keyIds.size)if(S.drmInfos.length&&!M.size){S=t(S.drmInfos);for(var aa=S.next();!aa.done;aa=S.next())if(aa=aa.value,aa.keyIds.size&&aa.keySystem==K){N.allowedByKeySystem=!0;aa=t(aa.keyIds);for(var W=aa.next();!W.done;W=aa.next())if(W=W.value,(W=I[L?"00":W])||a.C.F)N.allowedByKeySystem=N.allowedByKeySystem&& -!!W&&!qi.includes(W)}}else for(N.allowedByKeySystem=!0,S=t(S.keyIds),aa=S.next();!aa.done;aa=S.next())if(aa=aa.value,(aa=I[L?"00":aa])||a.C.F)N.allowedByKeySystem=N.allowedByKeySystem&&!!aa&&!qi.includes(aa);R!=N.allowedByKeySystem&&(J=!0)}}}if(J&&(pq(a),!qq(a)))break a;(I=a.l.l)&&!I.allowedByKeySystem&&Pp(a)}})},onExpirationUpdated:function(D,I){var L=Sp("expirationupdated");k.dispatchEvent(L);if((L=k.l)&&L.onExpirationUpdated)L.onExpirationUpdated(D,I)},onEvent:function(D){k.dispatchEvent(D);"drmsessionupdate"== -D.type&&z&&(z=!1,D=Date.now()/1E3-k.Ka,(a.A||k.getStats()).m=D,a.S&&Cc(a.S))}};B=Lp(a,m);Kg(a.H,B);E=function(){return a.dd(A)};H={config:l,kk:w,zk:v,yk:y,dd:E,jk:u,networkingEngine:B,bj:f,aj:h};k=new Nn(b,d,c,H);return C.return(k)})}function bq(a,b){var c,d,e;return Q(function(f){if(1==f.g)return c=a.g.manifest.retryParameters,F(f,vo(b,a.H,c),2);d=f.h;"application/x-mpegurl"==d&&(e=qb(),"WEBKIT"===e.Ea()&&(d="application/vnd.apple.mpegurl"));return f.return(d)})} -function kq(a,b){if(!vi(qb()))return!0;if(b){if(""==(a.h||wi()).canPlayType(b))return!1;if(!vi(qb())||!ti.has(b))return!0;if(Ne(b))return"WEBKIT"===qb().Ea()&&(a.g.drm.servers["com.apple.fps"]||a.g.drm.servers["com.apple.fps.1_0"])?a.g.streaming.useNativeHlsForFairPlay:a.g.streaming.preferNativeHls;if("application/dash+xml"===b||"video/vnd.mpeg.dash.mpd"===b)return a.g.streaming.preferNativeDash}return!1} -function rq(a){var b=a.g.textDisplayFactory;b!==a.Ae&&(a.o=b(),a.o.configure?a.o.configure(a.g.textDisplayer):wb("Text displayer w/ configure",'Text displayer should have a "configure" method!'),a.Ae=b,a.o.setTextVisibility(a.oa))} -function $p(a){var b,c,d;return Q(function(e){if(1==e.g)return qb(),Wp(a,"media-source"),a.g.mediaSource.useSourceElements&&Cj(a.h),rq(a),b=sq(a.h,a.o,{Bj:function(){return a.keySystem()},onMetadata:function(f,g,h){f=t(f);for(var k=f.next();!k.done;k=f.next())if(k=k.value,k.data&&"number"==typeof k.cueTime&&k.frames){var l=k.cueTime+g,m=h;m&&l>m&&(m=l);for(var n=t(k.frames),q=n.next();!q.done;q=n.next())mq(a,l,m,"org.id3",q.value);if(a.B)a.B.onHlsTimedMetadata(k,l)}},rk:function(f){a.Za&&Tl(a.Za, -{schemeIdUri:f.schemeIdUri,startTime:f.startTime,endTime:f.endTime,id:String(f.id),emsg:f})},onEvent:function(f){return a.dispatchEvent(f)},vk:function(){a.G&&a.G.update&&a.G.update()}},a.S,a.g.mediaSource),c=a.g.manifest,d=c.segmentRelativeVttTiming,b.Ka=d,F(e,b.K,2);a.I=b;G(e)})} -function tq(a,b,c){function d(){return uq(a)}a.j.D(b,"playing",d);a.j.D(b,"pause",d);a.j.D(b,"ended",d);a.j.D(b,"ratechange",function(){var f=a.h.playbackRate;0!=f&&(a.K&&(a.K.set(f),a.m==vq&&a.s.playbackRateChanged(f),wq(a,f)),f=Sp("ratechange"),a.dispatchEvent(f))});b.remote&&(a.j.D(b.remote,"connect",function(){a.l&&"connected"==b.remote.state&&xq(a);pq(a)}),a.j.D(b.remote,"connecting",function(){return pq(a)}),a.j.D(b.remote,"disconnect",function(){return Q(function(f){if(1==f.g)return a.l&&"disconnected"== -b.remote.state?F(f,Em(a.l),3):f.u(2);2!=f.g&&xq(a);pq(a);G(f)})}));b.audioTracks&&(a.j.D(b.audioTracks,"addtrack",function(){return pq(a)}),a.j.D(b.audioTracks,"removetrack",function(){return pq(a)}),a.j.D(b.audioTracks,"change",function(){return pq(a)}));b.videoTracks&&(a.j.D(b.videoTracks,"addtrack",function(){return pq(a)}),a.j.D(b.videoTracks,"removetrack",function(){return pq(a)}),a.j.D(b.videoTracks,"change",function(){return pq(a)}));if(b.textTracks){var e=function(){a.m===yq&&a.o instanceof -Io&&xq(a);pq(a)};a.j.D(b.textTracks,"addtrack",function(f){if(f.track)switch(f=f.track,f.kind){case "metadata":zq(a,f);break;case "chapters":Aq(a,f);break;default:e()}});a.j.D(b.textTracks,"removetrack",e);a.j.D(b.textTracks,"change",e);"keep"!==a.g.streaming.crossBoundaryStrategy&&(a.j.D(b,"waiting",function(){a.l&&Im(a.l)}),a.j.D(b,"timeupdate",function(){a.l&&Im(a.l)}))}"none"!=b.preload&&a.j.za(b,"loadedmetadata",function(){a.A.F=Date.now()/1E3-c})} -function gq(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,E,H,C,D,I,L,K,J,M,O,N;return Q(function(P){switch(P.g){case 1:Wp(a,"load");e=a.h;a.K=new Il({Ue:function(){return e.playbackRate},Kc:function(){return e.defaultPlaybackRate},hh:function(R){e.playbackRate=R},ki:function(R){e.currentTime+=R}});tq(a,e,b);"onchange"in window.screen&&a.j.D(window.screen,"change",function(){if(a.N.getConfiguration){var R=a.N.getConfiguration();"AUTO"==R.zc?qq(a):"AUTO"==a.g.preferredVideoHdrLevel&&a.g.abr.enabled&& -(R.zc="AUTO",a.N.configure(R),qq(a))}});f=!1;g=t(a.i.variants);for(h=g.next();!h.done;h=g.next())k=h.value,(l=k.video&&k.video.dependencyStream)&&(f=Dc(l));Rp(a,a.g,f);a.td=a.g.preferredTextLanguage;a.qe=a.g.preferredTextRole;a.pe=a.g.preferForcedSubs;Bq(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.s.init(function(R,S,aa){a.i&&a.l&&R!=a.l.l&&Cq(a,R,!0,void 0===S?!1:S,void 0===aa?0:aa)});a.s.setMediaElement(e);a.s.setCmsdManager(a.ka);a.l=Dq(a);a.l.configure(a.g.streaming);a.m=vq; -a.dispatchEvent(Sp("streaming"));m=c;case 2:(q=a.l.l)||m||(m=qq(a)?a.s.chooseVariant():null);r=[];n=q||m;u=t([n.video,n.audio]);for(w=u.next();!w.done;w=u.next())(v=w.value)&&!v.segmentIndex&&(r.push(v.createSegmentIndex()),v.dependencyStream&&r.push(v.dependencyStream.createSegmentIndex()));if(!(0D&&(B=D);return F(P,Hq(m,B),9);case 9:I=P.h,y(I);case 8:Cq(a,m,!0,!1,0);case 7:return a.F.ready(),L=a.yc().find(function(R){return R.active}), -L||((K=ag(a.i.textStreams,a.td,a.qe,a.pe)[0]||null)&&Gn(a.A.h,K,!0),m&&(K?(dg(m.audio,K,a.g)&&(a.oa=!0),a.oa&&a.o.setTextVisibility(!0)):(a.oa=!1,a.o.setTextVisibility(!1)),Iq(a)),K&&(a.g.streaming.alwaysStreamText||a.Hg())&&(Cm(a.l,K),Jq(a))),F(P,a.l.start(d),10);case 10:a.g.abr.enabled&&(a.s.enable(),Kq(a));pq(a);qq(a);a.i.variants.some(function(R){return R.primary});if((J=a.V())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)|| -a.g.streaming.vodDynamicPlaybackRate)M=function(){return Lq(a)},a.j.D(e,"timeupdate",M);J||(O=function(){return Mq(a)},a.j.D(e,"timeupdate",O),Mq(a),a.i.nextUrl&&(0, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'), -l.resolve()),a.j.za(d,"error",function(){l.reject(Yp(a))}),F(w,df(a.g.streaming.loadTimeout,l),4);case 4:if((n=a.V())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)q=function(){return Lq(a)},a.j.D(d,"timeupdate",q);n||(r=function(){return Mq(a)},a.j.D(d,"timeupdate",r),Mq(a));a.B&&(a.B.onManifestUpdated(n),n&&(u=a.Sa().end,a.j.D(d,"progress",function(){var v=a.Sa().end;u!=v&&(a.B.onManifestUpdated(a.V()),u=v)}))); -a.Ka=!0;G(w)}})}function Qq(a){var b=a.g.preferredAudioLanguage;""!=b&&a.Ei(b,a.g.preferredVariantRole)}function Sq(a){var b=a.g.preferredTextLanguage;""!=b&&a.bh(b,a.g.preferredTextRole,a.g.preferForcedSubs)} -function zq(a,b){if("metadata"==b.kind){b.mode="hidden";a.j.D(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,mq(a,e.startTime,e.endTime,e.type,e.value),a.B)a.B.onCueMetadataChange(e.value);if(b.cues){d=[];e=t(b.cues);for(var f=e.next(),g={};!f.done;g={tc:void 0},f=e.next())g.tc=f.value,"com.apple.quicktime.HLS"==g.tc.type&&null!=g.tc.startTime&&(f=d.find(function(h){return function(k){return k.startTime==h.tc.startTime&&k.endTime==h.tc.endTime}}(g)), -f||(f={startTime:g.tc.startTime,endTime:g.tc.endTime,values:[]},d.push(f)),f.values.push(g.tc.value));d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,e.values.some(function(h){return"X-ASSET-URI"==h.key||"X-ASSET-LIST"==h.key})&&a.B&&(e.values.push({key:"CUE",description:"",data:0!=e.startTime||a.V()?"ONCE":"ONCE,PRE",mimeType:null,pictureType:null}),a.B.onHLSInterstitialMetadata(a,a.h,e))}});var c=(new $e(function(){var d=Tq(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Hb().ha(.5); -a.oe.push(function(){c.stop()})}}function dq(a,b,c){b=(new Map).set("startTime",b.startTime).set("endTime",b.endTime).set("metadataType",b.schemeIdUri).set("payload",b.payload);a.dispatchEvent(Sp(c,b))}function mq(a,b,c,d,e){a.va&&(b={schemeIdUri:d,startTime:b,endTime:c||Infinity,id:"",payload:e},b.id=JSON.stringify(b),Tl(a.va,b))}function Aq(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new $e(function(){b.mode="hidden"})).Hb().ha(.5);a.oe.push(function(){c.stop()})}} -p.Dk=function(){for(var a=this.$;a.g;)a.release()};p.dd=function(a){return new oh(a)}; -function Lp(a,b){function c(f){b()?b().dispatchEvent(f):a.dispatchEvent(f)}function d(f){b()?On(b(),!0,f):f()}b||(b=function(){return null});var e=new Gg(function(f,g,h,k,l){var m=b()?b().j:a.s;m&&m.segmentDownloaded(f,g,h,k,l)},function(f,g,h){g=(new Map).set("headers",f).set("request",g).set("requestType",h);c(Sp("downloadheadersreceived",g));d(function(){if(a.ka){var k=a.ka;if(k.h.enabled){var l=f["cmsd-static"];if(l)try{var m=new Map,n=l.split(",");for(l=0;lv);if(z){var A=z.next().value;if(A&&A!=q){if(n&&!Wc(q.O(),A.O())){var B=A.O()[0],E=new URL(B),H=new URL(n);if(E.origin!==H.origin)var C=B;else{for(var D=E.pathname.split("/").slice(1),I=H.pathname.split("/").slice(1,-1);D[0]===I[0];)D.shift(),I.shift();for(;I.length;)I.shift(),D.unshift("..");C=D.join("/")}r.nor=C}if((A.startByte|| -A.endByte)&&(q.startByte!=A.startByte||q.endByte!=A.endByte)){var L=A.startByte+"-";A.endByte&&(L+=A.endByte);r.nrr=L}}}var K=k.h.sb()||1,J=yp(k,w.type)||500,M=w.bandwidth;var O=M?M*(q.endTime-q.startTime)/1E3/(J/K/1E3)*k.g.rtpSafetyFactor:NaN;isNaN(O)||(r.rtp=O)}}u&&r.ot!==vp&&(r.tb=zp(k,r.ot)/1E3);op(k,g,r)}}catch(N){cb("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",N)}break;case 2:case 5:case 6:op(k,g,{ot:"k"});break;case 4:op(k,g,{ot:"o"})}})},function(f,g,h,k){(f=b()?b().l:a.G)&& -f.banLocation&&f.banLocation(k)},function(f,g){if(g.data){g=g.data.byteLength;var h=b()?b().getStats():a.A;h&&(Ln(h,g),0===f&&(h.ci=g))}});e.configure(a.g.networking);return e}function Eq(a,b){return new xl(a.h,a.i,a.g.streaming,b,function(){a.eb&&Ll(a.eb,!0);a.l&&a.l.Vc();a.P&&Uq(a)},function(c){return a.dispatchEvent(c)})} -function Fq(a,b){var c=a.V()||"number"===typeof b&&0=e&&0a.s&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",c.writingMode==Wd?(f.width="100%",c.lineAlign==Yd?f.top=d+"%":"end"==c.lineAlign&&(f.bottom=100-d+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==Yd?f.left=d+"%":"end"==c.lineAlign&&(f.right=100-d+"%")):(f.height="100%",c.lineAlign==Yd?f.right=d+"%":"end"==c.lineAlign&&(f.left= +100-d+"%"))));f.lineHeight=c.lineHeight;a=bp(c);"line-left"==a?(f.cssFloat="left",null!==c.position&&(f.position="absolute",c.writingMode==Wd?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%")):"line-right"==a?(f.cssFloat="right",null!==c.position&&(f.position="absolute",c.writingMode==Wd?(f.right=100-c.position+"%",f.width="auto"):f.bottom=c.position+"%")):null!==c.position&&50!=c.position&&(f.position="absolute",c.writingMode==Wd?(f.left=c.position+"%",f.width="auto"):f.top=c.position+ +"%");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==Wd?f.width=c.size+"%":f.height=c.size+"%")} +function cp(a,b,c,d){d=void 0===d?1:d;var e=(e=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(e[1]),unit:e[2]}:null;if(!e)return a;a=e.unit;d*=e.value;switch(a){case "%":return d/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*d/b.cellResolution.rows+"px";default:return d+a}}function dp(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}T("shaka.text.UITextDisplayer",Vo);Vo.prototype.enableTextDisplayer=Vo.prototype.enableTextDisplayer; +Vo.prototype.setTextLanguage=Vo.prototype.setTextLanguage;Vo.prototype.setTextVisibility=Vo.prototype.setTextVisibility;Vo.prototype.isTextVisible=Vo.prototype.isTextVisible;Vo.prototype.remove=Vo.prototype.remove;Vo.prototype.destroy=Vo.prototype.destroy;Vo.prototype.append=Vo.prototype.append;Vo.prototype.configure=Vo.prototype.configure;function ep(a,b){function c(f){for(var g=f,h=t(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.startf?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=Lo(a);a="WEBVTT\n\n";d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left"); +break;case "right":g.push("align:right");break;case Ud:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}T("shaka.text.WebVttGenerator",function(){});function fp(a,b){this.h=a;this.g=b;this.i=void 0;this.s=!1;this.F=!0;this.l=this.B=!1;this.o=this.m=void 0;this.A=0;this.G=!1;this.C=new jb;this.j=null}fp.prototype.setMediaElement=function(a){this.j=a;gp(this)};fp.prototype.configure=function(a){this.g=a};function hp(a){a.s=!1;a.F=!0;a.B=!1;a.l=!1;a.m=0;a.o=0;a.A=0;a.G=!1;a.j=null;a.C.Qa()}function ip(a,b){a.l=b;a.l?a.i==jp?a.i=kp:a.i==lp&&(a.i=mp):a.i==kp?a.i=jp:a.i==mp&&(a.i=lp)} +function np(a,b){if(a.g&&a.g.enabled&&a.g.version==op&&a.j&&a.j.autoplay){var c=a.j.play();c&&c.then(function(){a.A=b}).catch(function(){a.A=0})}} +function pp(a,b,c){try{if(!a.g.enabled)return b;var d=qp(a);a:{switch(c.toLowerCase()){case "audio/mp4":case "audio/webm":case "audio/ogg":case "audio/mpeg":case "audio/aac":case "audio/flac":case "audio/wav":var e=rp;break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e=sp;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":case "application/vnd.ms-sstr+xml":e=tp;break a}e=void 0}d.ot=e;d.su= +!0;var f=up(d);return vp(b,f)}catch(g){return cb("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function gp(a){a.C.za(a.j,"play",function(){a.m||(a.m=Date.now())});a.C.za(a.j,"playing",function(){a.o||(a.o=Date.now())})}function qp(a){a.g.sessionId||(a.g.sessionId=window.crypto.randomUUID());return{v:a.g.version,sf:a.i,sid:a.g.sessionId,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}} +function wp(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled)if(a=xp(a,c),d)d=yp(a),Object.keys(d).length&&Object.assign(b.headers,d);else{var e=up(a);e&&(b.uris=b.uris.map(function(f){return vp(f,e)}))}}function zp(a,b){var c=a.g.includeKeys;return c.length?Object.keys(b).reduce(function(d,e){c.includes(e)&&(d[e]=b[e]);return d},{}):b} +function Ap(a){if(0===a.type)return Bp;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?sp:Cp;if("audio"==b)return rp;if("text"==b)return"application/mp4"===a.mimeType?Dp:Ep}}function Fp(a,b){b=a.h.Lb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN} +function Gp(a,b){b=a.h.Lb()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function Hp(a,b){var c=a.h.Ob();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case Cp:return a.videoBandwidth||NaN;case rp:return a.audioBandwidth||NaN;default:return a.bandwidth}} +function xp(a,b){b=void 0===b?{}:b;Object.assign(b,qp(a));b.pr=a.h.sb();var c=b.ot===Cp||b.ot===sp;a.B&&c&&(b.bs=!0,b.su=!0,a.B=!1);null==b.su&&(b.su=a.F);b.v===op&&(a.h.V()&&(b.ltc=a.h.Se()),c=!a.G&&a.o&&a.m?a.o-(a.A||a.m):void 0,void 0!=c&&(b.msd=c,a.G=!0));return zp(a,b)} +function up(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"=== +l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function yp(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a=c?a*(1-c)+b*c:a};function Np(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}T("shaka.util.CmsdManager",Ip);Ip.prototype.getBandwidthEstimate=Ip.prototype.getBandwidthEstimate;Ip.prototype.getRoundTripTime=Ip.prototype.Nj;Ip.prototype.getResponseDelay=Ip.prototype.Mj;Ip.prototype.getEstimatedThroughput=Ip.prototype.Th; +Ip.prototype.getMaxBitrate=Ip.prototype.Vh;var Kp="etp",Jp="mb",Lp="rd",Mp="rtt";function Op(){this.g=null;this.h=[]}function Pp(a,b){return Q(function(c){if(1==c.g)return a.g?F(c,new Promise(function(d){return a.h.push(d)}),2):c.u(2);a.g=b;G(c)})}Op.prototype.release=function(){0C.end&&(C.end=E.end)}return C};d.wa=new Zl(q);d.wa.addEventListener("regionadd", +function(A){lq(d,A.region,"metadataadded")});if(m)return F(z,k(function(){return Q(function(A){return F(A,mq(d,c),0)})},"initializeSrcEqualsDrmInner_"),23);d.Za=new Zl(q);return F(z,k(function(){return Q(function(A){if(1==A.g)return F(A,Promise.race([e.va,e.s]),2);d.qc=e.G;var C=e;C.wa=!0;d.G=C.l;d.i=e.Ag();G(A)})},"waitForFinish"),15);case 15:if(d.I){z.u(16);break}return F(z,k(function(){return Q(function(A){return F(A,hq(d),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return d.i&&d.i.textStreams.length&& +(d.o.enableTextDisplayer?d.o.enableTextDisplayer():wb("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),F(z,k(function(){return Q(function(A){return F(A,e.s,0)})},"waitForFinish"),18);case 18:d.g=e.getConfiguration();d.re=e.F;d.G&&d.G.setMediaElement&&d.h&&d.G.setMediaElement(d.h);d.ke=$n(e);d.je=e.Ta;if(r=e.A)d.M=r;l&&d.h&&"AUDIO"===d.h.nodeName&&(nq(d),d.configure("manifest.disableVideo",!0));if(e.i){z.u(19);break}return F(z,k(function(){return Q(function(A){return F(A, +to(e,d.h),0)})},"drmEngine_.init"),19);case 19:return d.C=ao(e),F(z,k(function(){return Q(function(A){return F(A,d.C.dc(d.h),0)})},"drmEngine_.attach"),21);case 21:return!(u=e.C)||d.Ta&&d.Ta==u||(d.s=Zn(e),d.Ta=e.C,"function"!=typeof d.s.setMediaElement&&(wb("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.s.setMediaElement=function(){}),"function"!=typeof d.s.setCmsdManager&&(wb("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."), +d.s.setCmsdManager=function(){}),"function"!=typeof d.s.trySuggestStreams&&(wb("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.s.trySuggestStreams=function(){})),w=bo(e),v=e.K,F(z,k(function(){return Q(function(A){return F(A,oq(d,n,v,w),0)})},"loadInner_"),22);case 22:Xn(e);d.nc&&rb().Ui()&&Pe(d.nc)&&wk(d.I,d.W,d.nc);z.u(14);break;case 23:return F(z,k(function(){return Q(function(A){return F(A,pq(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent($p("loaded")); +case 6:Ba(z);if(!e){z.u(25);break}return F(z,e.destroy(),25);case 25:d.Oa=null;Da(z,0);break;case 5:y=Aa(z);if(!y||7E3==y.code){z.u(27);break}return F(z,d.vc(!1),27);case 27:throw y;}})};function nq(a){for(var b=t(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio})} +p.Wk=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,qq(c),2):3!=e.g?(d=e.h,F(e,c.vc(a,b),3)):e.return(d)})};p.Nh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,qq(c,b),2):3!=e.g?(d=e.h,F(e,c.detach(a),3)):e.return(d)})}; +function qq(a,b){b=void 0===b?!1:b;var c,d;return Q(function(e){if(1==e.g){c=null;if(!(a.i&&a.G&&a.qc&&a.W&&a.g))return e.u(2);d=a.h.currentTime;a.V()&&!b&&(d=null);return F(e,rq(a,a.W,d,a.nc,a.g,!0,!1,!1),3)}if(2!=e.g){c=e.h;a.we.push(c);a.G&&a.G.setMediaElement&&a.G.setMediaElement(null);var f=c,g=a.G,h=a.qc;f.h=a.i;f.l=g;f.G=h;f=c;g=a.Ta;f.j=a.s;f.C=g;c.A=a.M;c.start();a.i=null;a.G=null;a.qc=null;a.s=null;a.Ta=null}return e.return(c)})} +p.preload=function(a,b,c,d){b=void 0===b?null:b;var e=this,f,g;return Q(function(h){if(1==h.g)return f=Rp(e),Jn(f,d||e.g,Rp(e)),F(h,kq(e,a,b,c,!1,f),2);(g=h.h)?g.start():gq(e,new U(2,7,7005));return h.return(g)})};p.ig=function(){var a=this,b,c,d,e;return Q(function(f){b=[];c=t(a.we);for(d=c.next();!d.done;d=c.next())e=d.value,e.o||b.push(e.destroy());a.we=[];return F(f,Promise.all(b),0)})}; +function kq(a,b,c,d,e,f){e=void 0===e?!1:e;var g,h,k,l,m;return Q(function(n){if(1==n.g)return d?n.u(2):F(n,jq(a,b),3);2!=n.g&&(d=n.h);if(g=sq(a,d))return n.return(null);h=f||a.g;k=!1;l=!0;e&&(a.s&&a.Ta==h.abrFactory&&(l=!1),a.h&&"AUDIO"===a.h.nodeName&&(k=!0));m=rq(a,b,c,d||null,h,!e,k,l);m=e?m.then(function(q){q.B=!1;return q}):m.then(function(q){a.we.push(q);return q});return n.return(m)})} +function rq(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,q,r,u,w,v,y,z,A,C,E,H;return Q(function(B){if(1==B.g){k=null;l=fd(e);g&&(l.manifest.disableVideo=!0);m=function(){return k.S&&k.o?null:k};n=function(){return m()?m().getConfiguration():a.g};if(Infinity!=a.va.width||Infinity!=a.va.height||a.g.ignoreHardwareResolution)return B.u(2);q=rb();return F(B,q.fc(),3)}2!=B.g&&(r=B.h,a.va.width=r.width,a.va.height=r.height);u=new li(l,a.va,null);w={networkingEngine:a.H, +filter:function(D){var I,K;return Q(function(J){if(1==J.g)return F(J,mi(u,D),2);if(4!=J.g){I=J.h;if(!I)return J.u(0);K=$p("trackschanged");return F(J,Promise.resolve(),4)}k.dispatchEvent(K);G(J)})},makeTextStreamsForClosedCaptions:function(D){return tq(a,D)},onTimelineRegionAdded:function(D){$l(k.H,D)},onEvent:function(D){return k.dispatchEvent(D)},onError:function(D){return k.onError(D)},isLowLatencyMode:function(){return n().streaming.lowLatencyMode},updateDuration:function(){a.l&&k.S&&a.l.updateDuration()}, +newDrmInfo:function(D){var I=k.i,K=I?I.g:null;K&&I.A&&pi(u,K.keySystem,D)},onManifestUpdated:function(){var D=(new Map).set("isLive",a.V());k.dispatchEvent($p("manifestupdated",D));Wn(k,!1,function(){if(a.B)a.B.onManifestUpdated(a.V())})},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},onMetadata:function(D,I,K,J){var L=D;if("com.apple.hls.interstitial"==D&&(L="com.apple.quicktime.HLS",D={startTime:I,endTime:K,values:J},a.B))a.B.onHLSInterstitialMetadata(a,a.h,D);J=t(J);D=J.next(); +for(var N={};!D.done;N={Sg:void 0},D=J.next())N.Sg=D.value,"ID"!=N.Sg.name&&Wn(k,!1,function(O){return function(){uq(a,I,K,L,O.Sg)}}(N))},disableStream:function(D){return a.disableStream(D,a.g.streaming.maxDisabledTime)},addFont:function(D,I){return a.addFont(D,I)}};v=new Zl(function(){return a.Ra()});v.addEventListener("regionadd",function(D){var I=D.region;vq(a,"timelineregionadded",I,k);Wn(k,!1,function(){a.B&&(a.B.onDashTimedMetadata(I),a.B.onDASHInterstitialMetadata(a,a.h,I))})});y=null;l.streaming.observeQualityChanges&& +(y=new Tl(function(){return a.Lb()}),y.addEventListener("qualitychange",function(D){wq(a,D.quality,D.position)}),y.addEventListener("audiotrackchange",function(D){wq(a,D.quality,D.position,!0)}));z=!0;A={pc:a.H,onError:function(D){return k.onError(D)},nf:function(D){Wn(k,!0,function(){if(a.C)a:{var I=D,K=$p("keystatuschanged");a.dispatchEvent(K);var J=Object.keys(I);1==J.length&&""==J[0]&&(J=["00"],I={"00":I[""]});K=1==J.length&&"00"==J[0];var L=!1;if(J.length){J=a.keySystem();for(var N=Yg(a.g.drm.clearKeys), +O=t(a.i.variants),M=O.next();!M.done;M=O.next()){M=M.value;var P=[];M.audio&&P.push(M.audio);M.video&&P.push(M.video);P=t(P);for(var R=P.next();!R.done;R=P.next()){var S=R.value;R=M.allowedByKeySystem;if(S.keyIds.size)if(S.drmInfos.length&&!N.size){S=t(S.drmInfos);for(var aa=S.next();!aa.done;aa=S.next())if(aa=aa.value,aa.keyIds.size&&aa.keySystem==J){M.allowedByKeySystem=!0;aa=t(aa.keyIds);for(var W=aa.next();!W.done;W=aa.next())if(W=W.value,(W=I[K?"00":W])||a.C.F)M.allowedByKeySystem=M.allowedByKeySystem&& +!!W&&!ri.includes(W)}}else for(M.allowedByKeySystem=!0,S=t(S.keyIds),aa=S.next();!aa.done;aa=S.next())if(aa=aa.value,(aa=I[K?"00":aa])||a.C.F)M.allowedByKeySystem=M.allowedByKeySystem&&!!aa&&!ri.includes(aa);R!=M.allowedByKeySystem&&(L=!0)}}}if(L&&(xq(a),!yq(a)))break a;(I=a.l.o)&&!I.allowedByKeySystem&&Xp(a)}})},onExpirationUpdated:function(D,I){var K=$p("expirationupdated");k.dispatchEvent(K);if((K=k.l)&&K.onExpirationUpdated)K.onExpirationUpdated(D,I)},onEvent:function(D){k.dispatchEvent(D);"drmsessionupdate"== +D.type&&z&&(z=!1,D=Date.now()/1E3-k.Ka,(a.A||k.getStats()).m=D,a.S&&Cc(a.S))}};C=Tp(a,m);Lg(a.H,C);E=function(){return a.ed(A)};H={config:l,lk:w,Ak:v,zk:y,ed:E,kk:u,networkingEngine:C,cj:f,bj:h};k=new Vn(b,d,c,H);return B.return(k)})}function jq(a,b){var c,d,e;return Q(function(f){if(1==f.g)return c=a.g.manifest.retryParameters,F(f,Do(b,a.H,c),2);d=f.h;"application/x-mpegurl"==d&&(e=rb(),"WEBKIT"===e.Da()&&(d="application/vnd.apple.mpegurl"));return f.return(d)})} +function sq(a,b){if(!wi(rb()))return!0;if(b){if(""==(a.h||xi()).canPlayType(b))return!1;if(!wi(rb())||!ui.has(b))return!0;if(Pe(b))return"WEBKIT"===rb().Da()&&(a.g.drm.servers["com.apple.fps"]||a.g.drm.servers["com.apple.fps.1_0"])?a.g.streaming.useNativeHlsForFairPlay:a.g.streaming.preferNativeHls;if("application/dash+xml"===b||"video/vnd.mpeg.dash.mpd"===b)return a.g.streaming.preferNativeDash}return!1} +function zq(a){var b=a.g.textDisplayFactory;if(a.Ch!==b){var c=a.o;a.o=b();a.o.configure?a.o.configure(a.g.textDisplayer):wb("Text displayer w/ configure",'Text displayer should have a "configure" method!');a.o.setTextLanguage||wb("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!');c?(a.o.setTextVisibility(c.isTextVisible()),c.destroy().catch(function(){})):a.o.setTextVisibility(a.$);a.I&&bl(a.I,a.o);a.Ch=b;a.l&&Km(a.l)}else a.o&&a.o.configure&&a.o.configure(a.g.textDisplayer)} +function hq(a){var b,c,d;return Q(function(e){if(1==e.g)return rb(),dq(a,"media-source"),a.g.mediaSource.useSourceElements&&Dj(a.h),zq(a),b=Aq(a.h,a.o,{Cj:function(){return a.keySystem()},onMetadata:function(f,g,h){f=t(f);for(var k=f.next();!k.done;k=f.next())if(k=k.value,k.data&&"number"==typeof k.cueTime&&k.frames){var l=k.cueTime+g,m=h;m&&l>m&&(m=l);for(var n=t(k.frames),q=n.next();!q.done;q=n.next())uq(a,l,m,"org.id3",q.value);if(a.B)a.B.onHlsTimedMetadata(k,l)}},tk:function(f){a.Za&&$l(a.Za, +{schemeIdUri:f.schemeIdUri,startTime:f.startTime,endTime:f.endTime,id:String(f.id),emsg:f})},onEvent:function(f){return a.dispatchEvent(f)},wk:function(){a.G&&a.G.update&&a.G.update()}},a.S,a.g.mediaSource),c=a.g.manifest,d=c.segmentRelativeVttTiming,b.Ka=d,F(e,b.K,2);a.I=b;G(e)})} +function Bq(a,b,c){function d(){return Cq(a)}a.j.D(b,"playing",d);a.j.D(b,"pause",d);a.j.D(b,"ended",d);a.j.D(b,"ratechange",function(){var f=a.h.playbackRate;0!=f&&(a.K&&(a.K.set(f),a.m==Dq&&a.s.playbackRateChanged(f),Eq(a,f)),f=$p("ratechange"),a.dispatchEvent(f))});b.remote&&(a.j.D(b.remote,"connect",function(){a.l&&"connected"==b.remote.state&&Fq(a);xq(a)}),a.j.D(b.remote,"connecting",function(){return xq(a)}),a.j.D(b.remote,"disconnect",function(){return Q(function(f){if(1==f.g)return a.l&&"disconnected"== +b.remote.state?F(f,gn(a.l),3):f.u(2);2!=f.g&&Fq(a);xq(a);G(f)})}));b.audioTracks&&(a.j.D(b.audioTracks,"addtrack",function(){return xq(a)}),a.j.D(b.audioTracks,"removetrack",function(){return xq(a)}),a.j.D(b.audioTracks,"change",function(){return xq(a)}));b.videoTracks&&(a.j.D(b.videoTracks,"addtrack",function(){return xq(a)}),a.j.D(b.videoTracks,"removetrack",function(){return xq(a)}),a.j.D(b.videoTracks,"change",function(){return xq(a)}));if(b.textTracks){var e=function(){a.m===Gq&&a.o instanceof +Qo&&Fq(a);xq(a)};a.j.D(b.textTracks,"addtrack",function(f){if(f.track)switch(f=f.track,f.kind){case "metadata":Hq(a,f);break;case "chapters":Iq(a,f);break;default:e()}});a.j.D(b.textTracks,"removetrack",e);a.j.D(b.textTracks,"change",e);"keep"!==a.g.streaming.crossBoundaryStrategy&&(a.j.D(b,"waiting",function(){a.l&&Pm(a.l)}),a.j.D(b,"timeupdate",function(){a.l&&Pm(a.l)}))}"none"!=b.preload&&a.j.za(b,"loadedmetadata",function(){a.A.F=Date.now()/1E3-c})} +function oq(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,C,E,H,B,D,I,K,J,L,N,O,M;return Q(function(P){switch(P.g){case 1:dq(a,"load");e=a.h;a.K=new Pl({Te:function(){return e.playbackRate},Oc:function(){return e.defaultPlaybackRate},ih:function(R){e.playbackRate=R},li:function(R){e.currentTime+=R}});Bq(a,e,b);"onchange"in window.screen&&a.j.D(window.screen,"change",function(){if(a.M.getConfiguration){var R=a.M.getConfiguration();"AUTO"==R.Dc?yq(a):"AUTO"==a.g.preferredVideoHdrLevel&&a.g.abr.enabled&& +(R.Dc="AUTO",a.M.configure(R),yq(a))}});f=!1;g=t(a.i.variants);for(h=g.next();!h.done;h=g.next())k=h.value,(l=k.video&&k.video.dependencyStream)&&(f=Dc(l));Zp(a,a.g,f);a.ud=a.g.preferredTextLanguage;a.qe=a.g.preferredTextRole;a.pe=a.g.preferForcedSubs;Jq(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.s.init(function(R,S,aa){a.i&&a.l&&R!=a.l.o&&Kq(a,R,!0,void 0===S?!1:S,void 0===aa?0:aa)});a.s.setMediaElement(e);a.s.setCmsdManager(a.oa);a.l=Lq(a);a.l.configure(a.g.streaming);a.m=Dq; +a.dispatchEvent($p("streaming"));m=c;case 2:(q=a.l.o)||m||(m=yq(a)?a.s.chooseVariant():null);r=[];n=q||m;u=t([n.video,n.audio]);for(w=u.next();!w.done;w=u.next())(v=w.value)&&!v.segmentIndex&&(r.push(v.createSegmentIndex()),v.dependencyStream&&r.push(v.dependencyStream.createSegmentIndex()));if(!(0D&&(C=D);return F(P,Pq(m,C),9);case 9:I=P.h,y(I);case 8:Kq(a,m,!0,!1,0);case 7:return a.F.ready(),K=a.Cc().find(function(R){return R.active}), +K||((J=bg(a.i.textStreams,a.ud,a.qe,a.pe)[0]||null)&&On(a.A.h,J,!0),m&&(J?(eg(m.audio,J,a.g)&&(a.$=!0),a.$&&a.o.setTextVisibility(!0)):(a.$=!1,a.o.setTextVisibility(!1)),Qq(a)),J&&(a.g.streaming.alwaysStreamText||a.Ig())&&(Jm(a.l,J),Rq(a))),F(P,a.l.start(d),10);case 10:a.g.abr.enabled&&(a.s.enable(),Sq(a));xq(a);yq(a);a.i.variants.some(function(R){return R.primary});if((L=a.V())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)N= +function(){return Tq(a)},a.j.D(e,"timeupdate",N);L||(O=function(){return Uq(a)},a.j.D(e,"timeupdate",O),Uq(a),a.i.nextUrl&&(0, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'), +l.resolve()),a.j.za(d,"error",function(){l.reject(fq(a))}),F(w,ef(a.g.streaming.loadTimeout,l),4);case 4:if((n=a.V())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)q=function(){return Tq(a)},a.j.D(d,"timeupdate",q);n||(r=function(){return Uq(a)},a.j.D(d,"timeupdate",r),Uq(a));a.B&&(a.B.onManifestUpdated(n),n&&(u=a.Ra().end,a.j.D(d,"progress",function(){var v=a.Ra().end;u!=v&&(a.B.onManifestUpdated(a.V()),u=v)}))); +a.Ka=!0;G(w)}})}function Yq(a){var b=a.g.preferredAudioLanguage;""!=b&&a.Fi(b,a.g.preferredVariantRole)}function $q(a){var b=a.g.preferredTextLanguage;""!=b&&a.dh(b,a.g.preferredTextRole,a.g.preferForcedSubs)} +function Hq(a,b){if("metadata"==b.kind){b.mode="hidden";a.j.D(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,uq(a,e.startTime,e.endTime,e.type,e.value),a.B)a.B.onCueMetadataChange(e.value);if(b.cues){d=[];e=t(b.cues);for(var f=e.next(),g={};!f.done;g={xc:void 0},f=e.next())g.xc=f.value,"com.apple.quicktime.HLS"==g.xc.type&&null!=g.xc.startTime&&(f=d.find(function(h){return function(k){return k.startTime==h.xc.startTime&&k.endTime==h.xc.endTime}}(g)), +f||(f={startTime:g.xc.startTime,endTime:g.xc.endTime,values:[]},d.push(f)),f.values.push(g.xc.value));d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,e.values.some(function(h){return"X-ASSET-URI"==h.key||"X-ASSET-LIST"==h.key})&&a.B&&(e.values.push({key:"CUE",description:"",data:0!=e.startTime||a.V()?"ONCE":"ONCE,PRE",mimeType:null,pictureType:null}),a.B.onHLSInterstitialMetadata(a,a.h,e))}});var c=(new af(function(){var d=ar(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Hb().ha(.5); +a.oe.push(function(){c.stop()})}}function lq(a,b,c){b=(new Map).set("startTime",b.startTime).set("endTime",b.endTime).set("metadataType",b.schemeIdUri).set("payload",b.payload);a.dispatchEvent($p(c,b))}function uq(a,b,c,d,e){a.wa&&(b={schemeIdUri:d,startTime:b,endTime:c||Infinity,id:"",payload:e},b.id=JSON.stringify(b),$l(a.wa,b))}function Iq(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new af(function(){b.mode="hidden"})).Hb().ha(.5);a.oe.push(function(){c.stop()})}} +p.Ek=function(){for(var a=this.ia;a.g;)a.release()};p.ed=function(a){return new ph(a)}; +function Tp(a,b){function c(f){b()?b().dispatchEvent(f):a.dispatchEvent(f)}function d(f){b()?Wn(b(),!0,f):f()}b||(b=function(){return null});var e=new Hg(function(f,g,h,k,l){var m=b()?b().j:a.s;m&&m.segmentDownloaded(f,g,h,k,l)},function(f,g,h){g=(new Map).set("headers",f).set("request",g).set("requestType",h);c($p("downloadheadersreceived",g));d(function(){if(a.oa){var k=a.oa;if(k.h.enabled){var l=f["cmsd-static"];if(l)try{var m=new Map,n=l.split(",");for(l=0;lv);if(z){var A=z.next().value;if(A&&A!=q){if(n&&!Wc(q.O(),A.O())){var C=A.O()[0],E=new URL(C),H=new URL(n);if(E.origin!==H.origin)var B=C;else{for(var D=E.pathname.split("/").slice(1),I=H.pathname.split("/").slice(1,-1);D[0]===I[0];)D.shift(),I.shift();for(;I.length;)I.shift(),D.unshift("..");B=D.join("/")}r.nor=B}if((A.startByte|| +A.endByte)&&(q.startByte!=A.startByte||q.endByte!=A.endByte)){var K=A.startByte+"-";A.endByte&&(K+=A.endByte);r.nrr=K}}}var J=k.h.sb()||1,L=Gp(k,w.type)||500,N=w.bandwidth;var O=N?N*(q.endTime-q.startTime)/1E3/(L/J/1E3)*k.g.rtpSafetyFactor:NaN;isNaN(O)||(r.rtp=O)}}u&&r.ot!==Dp&&(r.tb=Hp(k,r.ot)/1E3);wp(k,g,r)}}catch(M){cb("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",M)}break;case 2:case 5:case 6:wp(k,g,{ot:"k"});break;case 4:wp(k,g,{ot:"o"})}})},function(f,g,h,k){(f=b()?b().l:a.G)&& +f.banLocation&&f.banLocation(k)},function(f,g){if(g.data){g=g.data.byteLength;var h=b()?b().getStats():a.A;h&&(Tn(h,g),0===f&&(h.di=g))}});e.configure(a.g.networking);return e}function Mq(a,b){return new El(a.h,a.i,a.g.streaming,b,function(){a.eb&&Sl(a.eb,!0);a.l&&a.l.Xc();a.P&&br(a)},function(c){return a.dispatchEvent(c)})} +function Nq(a,b){var c=a.V()||"number"===typeof b&&0=e&&0=b)return 1;if(!(a<=this.h.currentTime)&&a=b)return 1;if(!(a<=this.h.currentTime)&&al(r,m))&&(q=r);q!=m&&(q?(m=Lf(q),k.ce(m,!0,d||0)):Pp(k))}var k=this;c=void 0===c?0:c;d=void 0===d?0:d;e=void 0===e?"":e;f=void 0===f?!1:f;g=void 0===g?"":g;if(this.i&&this.F&&(h(),!this.ya()))return;(function(){if(k.h&&k.h.audioTracks){var l= -ag(k.Fb(),a,b||"",!1)[0];l&&k.ce(l)}})()};p.bh=function(a,b,c){function d(){e.td=a;e.qe=b||"";e.pe=c||!1;var f=ag(e.i.textStreams,e.td,e.qe,e.pe)[0]||null;f&&f!=e.l.A&&(Gn(e.A.h,f,!1),e.g.streaming.alwaysStreamText||e.Hg())&&(Cm(e.l,f),xq(e),Jq(e))}var e=this;c=void 0===c?!1:c;if(this.i&&this.F&&(d(),!this.ya()))return;(function(){var f=ag(e.yc(),a,b||"",c||!1)[0];f&&e.dh(f)})()}; -p.Mk=function(a,b,c){function d(){for(var f=null,g=t(e.i.variants),h=g.next();!h.done;h=g.next())if(h=h.value,h.audio.label==a){f=h;break}null!=f&&(e.N=e.g.adaptationSetCriteriaFactory(),e.N.configure({language:f.language,role:"",channelCount:0,zc:"",spatialAudio:!1,videoLayout:"",zd:"",cd:a,codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,audioCodec:"",Cd:"",Ee:0,preferredAudioCodecs:e.g.preferredAudioCodecs,preferredAudioChannelCount:e.g.preferredAudioChannelCount}),Pp(e,b,c))}var e= -this;b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.F&&(d(),!this.ya()))return;(function(){if(e.h&&e.h.audioTracks){var f=Array.from(e.h.audioTracks),g=null;f=t(f);for(var h=f.next();!h.done;h=f.next())h=h.value,h.label==a&&(g=h);g&&ar(e,g)}})()};p.Hg=function(){var a=this.oa;return this.o?this.o.isTextVisible():a};p.tj=function(){return this.ab.map(function(a){return Of(a)})}; -p.rj=function(a){wb("getChapters","Please use an getChaptersAsync.");if(!this.ab.length)return[];var b=gf(a);a=this.ab.filter(function(f){return gf(f.language)==b});if(!a.length)return[];var c=[],d=new Set;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,e.segmentIndex&&e.segmentIndex.Cb(function(f){var g=f.O()[0],h=f.startTime+"-"+f.endTime+"-"+g;f={id:h,title:g,startTime:f.startTime,endTime:f.endTime};d.has(h)||(c.push(f),d.add(h))});return c}; -p.sj=function(a){var b=this,c,d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(!b.ab.length)return l.return([]);c=gf(a);d=b.ab.filter(function(m){return gf(m.language)==c});if(!d.length)return l.return([]);e=[];f=new Set;g=t(d);h=g.next();case 2:if(h.done){l.u(4);break}k=h.value;if(k.segmentIndex){l.u(5);break}return F(l,k.createSegmentIndex(),5);case 5:k.segmentIndex.Cb(function(m){var n=m.O()[0],q=m.startTime+"-"+m.endTime+"-"+n;m={id:q,title:n,startTime:m.startTime,endTime:m.endTime};f.has(q)|| -(e.push(m),f.add(q))});h=g.next();l.u(2);break;case 4:return l.return(e)}})};function Oq(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Pq(a){return Array.from(a.h.textTracks).find(function(b){return"Shaka Player TextTrack"==b.label})}function Tq(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"==b.kind})} -p.ih=function(a){a=!!a;this.oa!=a&&(this.oa=a,this.m==vq?(this.o.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.l.A||(a=ag(this.i.textStreams,this.td,this.qe,this.pe),0l(r,m))&&(q=r);q!=m&&(q?(m=Of(q),k.Bf(m,!0,d||0)):Xp(k))}var k=this;c=void 0===c?0:c;d=void 0===d?0:d;e=void 0===e?"":e;f=void 0===f?!1:f;g=void 0===g?"":g;if(this.i&&this.F&&(h(),!this.ua()))return;(function(){if(k.h&&k.h.audioTracks){var l= +bg(k.Ob(),a,b||"",!1)[0];l&&k.Bf(l)}})()};p.dh=function(a,b,c){function d(){e.ud=a;e.qe=b||"";e.pe=c||!1;var f=bg(e.i.textStreams,e.ud,e.qe,e.pe)[0]||null;f&&f!=e.l.A&&(On(e.A.h,f,!1),e.g.streaming.alwaysStreamText||e.Ig())&&(Jm(e.l,f),Fq(e),Rq(e))}var e=this;c=void 0===c?!1:c;if(this.i&&this.F&&(d(),!this.ua()))return;(function(){var f=bg(e.Cc(),a,b||"",c||!1)[0];f&&e.eh(f)})()}; +p.Nk=function(a,b,c){function d(){for(var f=null,g=t(e.i.variants),h=g.next();!h.done;h=g.next())if(h=h.value,h.audio.label==a){f=h;break}null!=f&&(e.M=e.g.adaptationSetCriteriaFactory(),e.M.configure({language:f.language,role:"",channelCount:0,Dc:"",spatialAudio:!1,videoLayout:"",Bd:"",Ic:a,codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,audioCodec:"",Dd:"",De:0,preferredAudioCodecs:e.g.preferredAudioCodecs,preferredAudioChannelCount:e.g.preferredAudioChannelCount}),Xp(e,b,c))}var e= +this;b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.F&&(d(),!this.ua()))return;(function(){if(e.h&&e.h.audioTracks){var f=Array.from(e.h.audioTracks),g=null;f=t(f);for(var h=f.next();!h.done;h=f.next())h=h.value,h.label==a&&(g=h);g&&ir(e,g)}})()};p.Ig=function(){var a=this.$;return this.o?this.o.isTextVisible():a};p.uj=function(){return this.ab.map(function(a){return Pf(a)})}; +p.sj=function(a){wb("getChapters","Please use an getChaptersAsync.");if(!this.ab.length)return[];var b=hf(a);a=this.ab.filter(function(f){return hf(f.language)==b});if(!a.length)return[];var c=[],d=new Set;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,e.segmentIndex&&e.segmentIndex.Db(function(f){var g=f.O()[0],h=f.startTime+"-"+f.endTime+"-"+g;f={id:h,title:g,startTime:f.startTime,endTime:f.endTime};d.has(h)||(c.push(f),d.add(h))});return c}; +p.tj=function(a){var b=this,c,d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(!b.ab.length)return l.return([]);c=hf(a);d=b.ab.filter(function(m){return hf(m.language)==c});if(!d.length)return l.return([]);e=[];f=new Set;g=t(d);h=g.next();case 2:if(h.done){l.u(4);break}k=h.value;if(k.segmentIndex){l.u(5);break}return F(l,k.createSegmentIndex(),5);case 5:k.segmentIndex.Db(function(m){var n=m.O()[0],q=m.startTime+"-"+m.endTime+"-"+n;m={id:q,title:n,startTime:m.startTime,endTime:m.endTime};f.has(q)|| +(e.push(m),f.add(q))});h=g.next();l.u(2);break;case 4:return l.return(e)}})};function Wq(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Xq(a){return Array.from(a.h.textTracks).find(function(b){return"Shaka Player TextTrack"==b.label})}function ar(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"==b.kind})} +p.jh=function(a){a=!!a;this.$!=a&&(this.$=a,this.m==Dq?(this.o.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.l.A||(a=bg(this.i.textStreams,this.ud,this.qe,this.pe),0=Math.floor(d.end)&&a.Ed():Math.floor(c)<=Math.floor(d.start+e)&&a.Ed()})} -function uq(a){if(a.A&&a.P){var b=a.A.g,c="playing";a.P.g==ji?c="buffering":a.Td()?c="ended":a.h.paused&&(c="paused");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(Sp("statechanged",c)))}} -function Lq(a){var b=a.h.playbackRate,c=a.V();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Rh();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.ie(d,!1):1==e&&b!==a.K.Kc()&&a.Ed()}if(c&&(c=a.Sa(),Number.isFinite(c.end)&&!(a.h.currentTime=Math.floor(d.end)&&a.Fd():Math.floor(c)<=Math.floor(d.start+f)&&a.Fd()})} +function Cq(a){if(a.A&&a.P){var b=a.A.g,c="playing";a.P.g==ki?c="buffering":a.Ud()?c="ended":a.h.paused&&(c="paused");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent($p("statechanged",c)))}} +function Tq(a){var b=a.h.playbackRate,c=a.V();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Sh();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.ie(d,!1):1==e&&b!==a.K.Oc()&&a.Fd()}if(c&&(c=a.Ra(),Number.isFinite(c.end)&&!(a.h.currentTime1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency, -a.U=Math.max(a.U-(g-f)/2,f+d),a.Xb=Date.now());e&&null!==a.U&&(h=a.U+d,k=a.U-d);g=c.end-a.h.currentTime;d=0;a.m==yq&&(e=a.h.buffered,0h?(b!=l&&a.ie(l,!1),a.Xb=null):void 0!=k&&m&&g-de)&&a.Qfb&&(b+=Math.pow(2,32)),b=b.toString(16);return new U(2,3,3016,c,b,a.h.error.message)}function Bq(a,b,c){0=this.Sa().end};T("shaka.Player",Y);Y.prototype.isEnded=Y.prototype.Td;Y.prototype.isRemotePlayback=Y.prototype.ya;Y.prototype.addFont=Y.prototype.addFont;Y.prototype.setVideoContainer=Y.prototype.Li;Y.prototype.getFetchedPlaybackInfo=Y.prototype.xj;Y.prototype.getManifestParserFactory=Y.prototype.Dj; -Y.prototype.getManifest=Y.prototype.zg;Y.prototype.retryStreaming=Y.prototype.Yg;Y.prototype.setMaxHardwareResolution=Y.prototype.Sk;Y.prototype.addChaptersTrack=Y.prototype.Fe;Y.prototype.addThumbnailsTrack=Y.prototype.Ge;Y.prototype.addTextTrackAsync=Y.prototype.Dd;Y.prototype.getStats=Y.prototype.getStats;Y.prototype.getBufferedInfo=Y.prototype.Lb;Y.prototype.getSegmentAvailabilityDuration=Y.prototype.Ve;Y.prototype.getPresentationStartTimeAsDate=Y.prototype.Ag; -Y.prototype.getPlayheadTimeAsDate=Y.prototype.Hj;Y.prototype.setTextTrackVisibility=Y.prototype.ih;Y.prototype.getChaptersAsync=Y.prototype.sj;Y.prototype.getChapters=Y.prototype.rj;Y.prototype.getChaptersTracks=Y.prototype.tj;Y.prototype.isTextTrackVisible=Y.prototype.Hg;Y.prototype.selectVariantsByLabel=Y.prototype.Mk;Y.prototype.selectTextLanguage=Y.prototype.bh;Y.prototype.selectAudioLanguage=Y.prototype.Ei;Y.prototype.getTextLanguages=Y.prototype.Nj;Y.prototype.getAudioLanguages=Y.prototype.oj; -Y.prototype.getTextLanguagesAndRoles=Y.prototype.Oj;Y.prototype.getAudioLanguagesAndRoles=Y.prototype.pj;Y.prototype.getVideoTracks=Y.prototype.getVideoTracks;Y.prototype.selectVideoTrack=Y.prototype.Nk;Y.prototype.getAudioTracks=Y.prototype.getAudioTracks;Y.prototype.selectAudioTrack=Y.prototype.Lk;Y.prototype.selectVariantTrack=Y.prototype.ce;Y.prototype.selectTextTrack=Y.prototype.dh;Y.prototype.getThumbnails=Y.prototype.Qj;Y.prototype.getAllThumbnails=Y.prototype.nj; -Y.prototype.getImageTracks=Y.prototype.zj;Y.prototype.getTextTracks=Y.prototype.yc;Y.prototype.getVariantTracks=Y.prototype.Fb;Y.prototype.cancelTrickPlay=Y.prototype.Ed;Y.prototype.trickPlay=Y.prototype.ie;Y.prototype.useTrickPlayTrackIfAvailable=Y.prototype.yh;Y.prototype.getPlaybackRate=Y.prototype.sb;Y.prototype.isBuffering=Y.prototype.Gg;Y.prototype.getKeyStatuses=Y.prototype.Se;Y.prototype.getActiveSessionsMetadata=Y.prototype.yg;Y.prototype.getExpiration=Y.prototype.Md; -Y.prototype.drmInfo=Y.prototype.drmInfo;Y.prototype.keySystem=Y.prototype.keySystem;Y.prototype.isFullyLoaded=Y.prototype.$j;Y.prototype.goToLive=Y.prototype.Wj;Y.prototype.seekRange=Y.prototype.Sa;Y.prototype.isVideoOnly=Y.prototype.gk;Y.prototype.isAudioOnly=Y.prototype.Zj;Y.prototype.isInProgress=Y.prototype.Oc;Y.prototype.isLive=Y.prototype.V;Y.prototype.getQueueManager=Y.prototype.Wh;Y.prototype.getAdManager=Y.prototype.Qh;Y.prototype.getAssetUri=Y.prototype.jd; -Y.prototype.getNetworkingEngine=Y.prototype.Nb;Y.prototype.getMediaElement=Y.prototype.Gj;Y.prototype.getManifestType=Y.prototype.Th;Y.prototype.getLoadMode=Y.prototype.Cj;Y.prototype.resetConfiguration=Y.prototype.zi;Y.prototype.getBufferFullness=Y.prototype.Rh;Y.prototype.getNonDefaultConfiguration=Y.prototype.Vh;Y.prototype.getConfigurationForLowLatency=Y.prototype.uj;Y.prototype.getConfiguration=Y.prototype.getConfiguration;Y.prototype.configurationForLowLatency=Y.prototype.kj; -Y.prototype.configure=Y.prototype.configure;Y.prototype.releaseAllMutexes=Y.prototype.Dk;Y.prototype.destroyAllPreloads=Y.prototype.hg;Y.prototype.preload=Y.prototype.preload;Y.prototype.detachAndSavePreload=Y.prototype.Mh;Y.prototype.unloadAndSavePreload=Y.prototype.Vk;Y.prototype.load=Y.prototype.load;Y.prototype.updateStartTime=Y.prototype.Zk;Y.prototype.unload=Y.prototype.rc;Y.prototype.detach=Y.prototype.detach;Y.prototype.attachCanvas=Y.prototype.cj;Y.prototype.attach=Y.prototype.cc; -Y.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:b={};if(!a){k.u(2);break}return F(k,bi(),3);case 3:b=k.h;case 2:return c=ui(),d=wk(),e=qb(),F(k,e.ec(),4);case 4:return f=k.h,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=Vp,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})}; -Y.isBrowserSupported=function(){window.Promise||bb("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;qb();return vi()?!0:""!=wi().canPlayType("application/x-mpegurl")};Y.setQueueManagerFactory=function(a){Np=a};Y.setAdManagerFactory=function(a){Mp=a};Y.registerSupportPlugin=Up;Y.prototype.destroy=Y.prototype.destroy;var Tp=0,Ip=1,vq=2,yq=3; -Y.LoadMode={DESTROYED:Tp,NOT_LOADED:Ip,MEDIA_SOURCE:vq,SRC_EQUALS:yq};Y.version="v4.15.0";var lr=["4","15"];xb=new function(a){this.g=a;this.i=yb;this.h=zb}(new vb(Number(lr[0]),Number(lr[1])));var Vp=new Map,Mp=null,Np=null;function mr(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function nr(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function or(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new jb;this.l.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=or.prototype;p.needsSkipUI=function(){return!1};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!0};p.getDuration=function(){return this.g.getDuration()}; +k=Math.max(0,a.i.serviceDescription.targetLatency-d):null!=a.i.serviceDescription.minLatency&&(k=a.i.serviceDescription.minLatency),l=a.i.serviceDescription.maxPlaybackRate||a.g.streaming.liveSync.maxPlaybackRate,m=a.i.serviceDescription.minPlaybackRate||a.g.streaming.liveSync.minPlaybackRate);a.U||"number"!==typeof g||(a.U=g);var n=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.Xb&&null!==a.U&&"number"===typeof g&&a.Ce1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency, +a.U=Math.max(a.U-(g-f)/2,f+d),a.Xb=Date.now());e&&null!==a.U&&(h=a.U+d,k=a.U-d);g=c.end-a.h.currentTime;d=0;a.m==Gq&&(e=a.h.buffered,0h?(b!=l&&a.ie(l,!1),a.Xb=null):void 0!=k&&m&&g-de)&&a.Rfb&&(b+=Math.pow(2,32)),b=b.toString(16);return new U(2,3,3016,c,b,a.h.error.message)}function Jq(a,b,c){0=this.Ra().end};T("shaka.Player",Y);Y.prototype.isEnded=Y.prototype.Ud;Y.prototype.isRemotePlayback=Y.prototype.ua;Y.prototype.addFont=Y.prototype.addFont;Y.prototype.setVideoContainer=Y.prototype.Mi;Y.prototype.getFetchedPlaybackInfo=Y.prototype.yj;Y.prototype.getManifestParserFactory=Y.prototype.Ej; +Y.prototype.getManifest=Y.prototype.Ag;Y.prototype.retryStreaming=Y.prototype.Zg;Y.prototype.setMaxHardwareResolution=Y.prototype.Tk;Y.prototype.addChaptersTrack=Y.prototype.Ee;Y.prototype.addThumbnailsTrack=Y.prototype.Fe;Y.prototype.addTextTrackAsync=Y.prototype.Ed;Y.prototype.getStats=Y.prototype.getStats;Y.prototype.getBufferedInfo=Y.prototype.Lb;Y.prototype.getSegmentAvailabilityDuration=Y.prototype.Ue;Y.prototype.getPresentationStartTimeAsDate=Y.prototype.Bg; +Y.prototype.getPlayheadTimeAsDate=Y.prototype.Ij;Y.prototype.setTextTrackVisibility=Y.prototype.jh;Y.prototype.getChaptersAsync=Y.prototype.tj;Y.prototype.getChapters=Y.prototype.sj;Y.prototype.getChaptersTracks=Y.prototype.uj;Y.prototype.isTextTrackVisible=Y.prototype.Ig;Y.prototype.selectVariantsByLabel=Y.prototype.Nk;Y.prototype.selectTextLanguage=Y.prototype.dh;Y.prototype.selectAudioLanguage=Y.prototype.Fi;Y.prototype.getTextLanguages=Y.prototype.Oj;Y.prototype.getAudioLanguages=Y.prototype.pj; +Y.prototype.getTextLanguagesAndRoles=Y.prototype.Pj;Y.prototype.getAudioLanguagesAndRoles=Y.prototype.qj;Y.prototype.getVideoTracks=Y.prototype.getVideoTracks;Y.prototype.selectVideoTrack=Y.prototype.Ok;Y.prototype.getAudioTracks=Y.prototype.getAudioTracks;Y.prototype.selectAudioTrack=Y.prototype.Mk;Y.prototype.selectVariantTrack=Y.prototype.Bf;Y.prototype.selectTextTrack=Y.prototype.eh;Y.prototype.getThumbnails=Y.prototype.Rj;Y.prototype.getAllThumbnails=Y.prototype.oj; +Y.prototype.getImageTracks=Y.prototype.Aj;Y.prototype.getTextTracks=Y.prototype.Cc;Y.prototype.getVariantTracks=Y.prototype.Ob;Y.prototype.cancelTrickPlay=Y.prototype.Fd;Y.prototype.trickPlay=Y.prototype.ie;Y.prototype.useTrickPlayTrackIfAvailable=Y.prototype.yh;Y.prototype.getPlaybackRate=Y.prototype.sb;Y.prototype.isBuffering=Y.prototype.Hg;Y.prototype.getKeyStatuses=Y.prototype.Re;Y.prototype.getActiveSessionsMetadata=Y.prototype.zg;Y.prototype.getExpiration=Y.prototype.Nd; +Y.prototype.drmInfo=Y.prototype.drmInfo;Y.prototype.keySystem=Y.prototype.keySystem;Y.prototype.isFullyLoaded=Y.prototype.bk;Y.prototype.goToLive=Y.prototype.Xj;Y.prototype.seekRange=Y.prototype.Ra;Y.prototype.isVideoOnly=Y.prototype.hk;Y.prototype.isAudioOnly=Y.prototype.$j;Y.prototype.isInProgress=Y.prototype.Sc;Y.prototype.isLive=Y.prototype.V;Y.prototype.getQueueManager=Y.prototype.Xh;Y.prototype.getAdManager=Y.prototype.Rh;Y.prototype.getAssetUri=Y.prototype.kd; +Y.prototype.getNetworkingEngine=Y.prototype.Nb;Y.prototype.getMediaElement=Y.prototype.Hj;Y.prototype.getManifestType=Y.prototype.Uh;Y.prototype.getLoadMode=Y.prototype.Dj;Y.prototype.resetConfiguration=Y.prototype.Ai;Y.prototype.getBufferFullness=Y.prototype.Sh;Y.prototype.getNonDefaultConfiguration=Y.prototype.Wh;Y.prototype.getConfigurationForLowLatency=Y.prototype.vj;Y.prototype.getConfiguration=Y.prototype.getConfiguration;Y.prototype.configurationForLowLatency=Y.prototype.lj; +Y.prototype.configure=Y.prototype.configure;Y.prototype.releaseAllMutexes=Y.prototype.Ek;Y.prototype.destroyAllPreloads=Y.prototype.ig;Y.prototype.preload=Y.prototype.preload;Y.prototype.detachAndSavePreload=Y.prototype.Nh;Y.prototype.unloadAndSavePreload=Y.prototype.Wk;Y.prototype.load=Y.prototype.load;Y.prototype.updateStartTime=Y.prototype.$k;Y.prototype.unload=Y.prototype.vc;Y.prototype.detach=Y.prototype.detach;Y.prototype.attachCanvas=Y.prototype.dj;Y.prototype.attach=Y.prototype.dc; +Y.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:b={};if(!a){k.u(2);break}return F(k,ci(),3);case 3:b=k.h;case 2:return c=vi(),d=xk(),e=rb(),F(k,e.fc(),4);case 4:return f=k.h,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=cq,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})}; +Y.isBrowserSupported=function(){window.Promise||bb("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;rb();return wi()?!0:""!=xi().canPlayType("application/x-mpegurl")};Y.setQueueManagerFactory=function(a){Vp=a};Y.setAdManagerFactory=function(a){Up=a};Y.registerSupportPlugin=bq;Y.prototype.destroy=Y.prototype.destroy;var aq=0,Qp=1,Dq=2,Gq=3; +Y.LoadMode={DESTROYED:aq,NOT_LOADED:Qp,MEDIA_SOURCE:Dq,SRC_EQUALS:Gq};Y.version="v4.15.4";var tr=["4","15"];xb=new function(a){this.g=a;this.i=yb;this.h=zb}(new vb(Number(tr[0]),Number(tr[1])));var cq=new Map,Up=null,Vp=null;function ur(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function vr(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function wr(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new jb;this.l.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=wr.prototype;p.needsSkipUI=function(){return!1};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!0};p.getDuration=function(){return this.g.getDuration()}; p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.h.getRemainingTime()};p.isPaused=function(){return this.i};p.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.h.getAdSkippableState()};p.skip=function(){return this.h.skip()};p.pause=function(){return this.h.pause()}; p.play=function(){return this.h.resume()};p.getVolume=function(){return this.h.getVolume()};p.setVolume=function(a){this.m.volume=a;return this.h.setVolume(a)};p.isMuted=function(){return 0==this.h.getVolume()};p.isLinear=function(){return this.g.isLinear()};p.resize=function(a,b){this.h.resize(a,b)};p.setMuted=function(a){(this.m.muted=a)?(this.j=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.j)};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()}; p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()}; -p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return this.g.getMediaUrl()};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.g=null};T("shaka.ads.ClientSideAd",or);or.prototype.release=or.prototype.release;or.prototype.getPodIndex=or.prototype.getPodIndex; -or.prototype.getTimeOffset=or.prototype.getTimeOffset;or.prototype.getMediaUrl=or.prototype.getMediaUrl;or.prototype.getAdvertiserName=or.prototype.getAdvertiserName;or.prototype.getCreativeAdId=or.prototype.getCreativeAdId;or.prototype.getAdId=or.prototype.getAdId;or.prototype.getVastAdId=or.prototype.getVastAdId;or.prototype.getVastMediaWidth=or.prototype.getVastMediaWidth;or.prototype.getVastMediaHeight=or.prototype.getVastMediaHeight;or.prototype.getVastMediaBitrate=or.prototype.getVastMediaBitrate; -or.prototype.getDescription=or.prototype.getDescription;or.prototype.getTitle=or.prototype.getTitle;or.prototype.getPositionInSequence=or.prototype.getPositionInSequence;or.prototype.getSequenceLength=or.prototype.getSequenceLength;or.prototype.setMuted=or.prototype.setMuted;or.prototype.resize=or.prototype.resize;or.prototype.isLinear=or.prototype.isLinear;or.prototype.isMuted=or.prototype.isMuted;or.prototype.setVolume=or.prototype.setVolume;or.prototype.getVolume=or.prototype.getVolume; -or.prototype.play=or.prototype.play;or.prototype.pause=or.prototype.pause;or.prototype.skip=or.prototype.skip;or.prototype.canSkipNow=or.prototype.canSkipNow;or.prototype.getTimeUntilSkippable=or.prototype.getTimeUntilSkippable;or.prototype.isSkippable=or.prototype.isSkippable;or.prototype.isPaused=or.prototype.isPaused;or.prototype.getRemainingTime=or.prototype.getRemainingTime;or.prototype.getMinSuggestedDuration=or.prototype.getMinSuggestedDuration;or.prototype.getDuration=or.prototype.getDuration; -or.prototype.isUsingAnotherMediaElement=or.prototype.isUsingAnotherMediaElement;or.prototype.hasCustomClick=or.prototype.hasCustomClick;or.prototype.isClientRendering=or.prototype.isClientRendering;or.prototype.needsSkipUI=or.prototype.needsSkipUI;function pr(){} -function qr(a,b){var c=[];a=t(qd(a,"Ad"));for(var d=a.next();!d.done;d=a.next())if(d=ud(d.value,"InLine"))if(d=ud(d,"Creatives")){d=t(qd(d,"Creative"));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=ud(e,"Linear");f&&rr(c,b,f);if(e=ud(e,"NonLinearAds")){e=qd(e,"NonLinear");e=t(e);for(var g=e.next();!g.done;g=e.next())a:{f=c;var h=b,k=g.value,l=ud(k,"StaticResource");if(l)g=l.attributes.creativeType;else{l=ud(k,"HTMLResource");if(!l)break a;g="text/html"}if(l=sd(l)){"text/html"===g&&(l="data:text/html;charset=UTF-8,"+ -encodeURIComponent(l));var m=xd(k,"width",Dd)||xd(k,"expandedWidth",Dd),n=xd(k,"height",Dd)||xd(k,"expandedHeight",Dd);if(m||n){var q=null;(k=k.attributes.minSuggestedDuration)&&(q=dd(k));k=0;null!=h&&(k=h);f.push({id:null,groupId:null,startTime:k,endTime:null,uri:l,mimeType:g,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:q,once:!0,pre:null==h,post:Infinity==h,timelineRange:!1,loop:!1,overlay:{viewport:{x:0,y:0},topLeft:{x:0,y:0},size:{x:m||0,y:n||0}},displayOnBackground:!1, +p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return this.g.getMediaUrl()};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.g=null};T("shaka.ads.ClientSideAd",wr);wr.prototype.release=wr.prototype.release;wr.prototype.getPodIndex=wr.prototype.getPodIndex; +wr.prototype.getTimeOffset=wr.prototype.getTimeOffset;wr.prototype.getMediaUrl=wr.prototype.getMediaUrl;wr.prototype.getAdvertiserName=wr.prototype.getAdvertiserName;wr.prototype.getCreativeAdId=wr.prototype.getCreativeAdId;wr.prototype.getAdId=wr.prototype.getAdId;wr.prototype.getVastAdId=wr.prototype.getVastAdId;wr.prototype.getVastMediaWidth=wr.prototype.getVastMediaWidth;wr.prototype.getVastMediaHeight=wr.prototype.getVastMediaHeight;wr.prototype.getVastMediaBitrate=wr.prototype.getVastMediaBitrate; +wr.prototype.getDescription=wr.prototype.getDescription;wr.prototype.getTitle=wr.prototype.getTitle;wr.prototype.getPositionInSequence=wr.prototype.getPositionInSequence;wr.prototype.getSequenceLength=wr.prototype.getSequenceLength;wr.prototype.setMuted=wr.prototype.setMuted;wr.prototype.resize=wr.prototype.resize;wr.prototype.isLinear=wr.prototype.isLinear;wr.prototype.isMuted=wr.prototype.isMuted;wr.prototype.setVolume=wr.prototype.setVolume;wr.prototype.getVolume=wr.prototype.getVolume; +wr.prototype.play=wr.prototype.play;wr.prototype.pause=wr.prototype.pause;wr.prototype.skip=wr.prototype.skip;wr.prototype.canSkipNow=wr.prototype.canSkipNow;wr.prototype.getTimeUntilSkippable=wr.prototype.getTimeUntilSkippable;wr.prototype.isSkippable=wr.prototype.isSkippable;wr.prototype.isPaused=wr.prototype.isPaused;wr.prototype.getRemainingTime=wr.prototype.getRemainingTime;wr.prototype.getMinSuggestedDuration=wr.prototype.getMinSuggestedDuration;wr.prototype.getDuration=wr.prototype.getDuration; +wr.prototype.isUsingAnotherMediaElement=wr.prototype.isUsingAnotherMediaElement;wr.prototype.hasCustomClick=wr.prototype.hasCustomClick;wr.prototype.isClientRendering=wr.prototype.isClientRendering;wr.prototype.needsSkipUI=wr.prototype.needsSkipUI;function xr(){} +function yr(a,b){var c=[];a=t(rd(a,"Ad"));for(var d=a.next();!d.done;d=a.next())if(d=vd(d.value,"InLine"))if(d=vd(d,"Creatives")){d=t(rd(d,"Creative"));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=vd(e,"Linear");f&&zr(c,b,f);if(e=vd(e,"NonLinearAds")){e=rd(e,"NonLinear");e=t(e);for(var g=e.next();!g.done;g=e.next())a:{f=c;var h=b,k=g.value,l=vd(k,"StaticResource");if(l)g=l.attributes.creativeType;else{l=vd(k,"HTMLResource");if(!l)break a;g="text/html"}if(l=td(l)){"text/html"===g&&(l="data:text/html;charset=UTF-8,"+ +encodeURIComponent(l));var m=yd(k,"width",Ed)||yd(k,"expandedWidth",Ed),n=yd(k,"height",Ed)||yd(k,"expandedHeight",Ed);if(m||n){var q=null;(k=k.attributes.minSuggestedDuration)&&(q=dd(k));k=0;null!=h&&(k=h);f.push({id:null,groupId:null,startTime:k,endTime:null,uri:l,mimeType:g,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:q,once:!0,pre:null==h,post:Infinity==h,timelineRange:!1,loop:!1,overlay:{viewport:{x:0,y:0},topLeft:{x:0,y:0},size:{x:m||0,y:n||0}},displayOnBackground:!1, currentVideo:null,background:null})}}}}}}return c} -function rr(a,b,c){var d=0;null!=b&&(d=b);var e=null;c.attributes.skipoffset&&(e=dd(c.attributes.skipoffset),isNaN(e)&&(e=null));if(c=ud(c,"MediaFiles")){var f=qd(c,"MediaFile");c=f;f=f.filter(function(h){return"streaming"==h.attributes.delivery});f.length&&(c=f);c=c.sort(function(h,k){return(parseInt(k.attributes.height,10)||0)-(parseInt(h.attributes.height,10)||0)});c=t(c);for(f=c.next();!f.done;f=c.next())if(f=f.value,!f.attributes.apiFramework){var g=sd(f);if(g){a.push({id:null,groupId:null,startTime:d, -endTime:null,uri:g,mimeType:f.attributes.type||null,isSkippable:null!=e,skipOffset:e,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==b,post:Infinity==b,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});break}}}}T("shaka.ads.Utils",pr);pr.ADS_LOADED="ads-loaded";pr.AD_STARTED="ad-started";pr.AD_FIRST_QUARTILE="ad-first-quartile";pr.AD_MIDPOINT="ad-midpoint";pr.AD_THIRD_QUARTILE="ad-third-quartile";pr.AD_COMPLETE="ad-complete"; -pr.AD_STOPPED="ad-stopped";pr.AD_SKIPPED="ad-skipped";pr.AD_VOLUME_CHANGED="ad-volume-changed";pr.AD_MUTED="ad-muted";pr.AD_PAUSED="ad-paused";pr.AD_RESUMED="ad-resumed";pr.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";pr.CUEPOINTS_CHANGED="ad-cue-points-changed";pr.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";pr.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";pr.AD_CLICKED="ad-clicked";pr.AD_PROGRESS="ad-progress";pr.AD_BUFFERING="ad-buffering";pr.AD_IMPRESSION="ad-impression"; -pr.AD_DURATION_CHANGED="ad-duration-changed";pr.AD_CLOSED="ad-closed";pr.AD_LOADED="ad-loaded";pr.ALL_ADS_COMPLETED="all-ads-completed";pr.AD_LINEAR_CHANGED="ad-linear-changed";pr.AD_METADATA="ad-metadata";pr.AD_RECOVERABLE_ERROR="ad-recoverable-error";pr.AD_ERROR="ad-error";pr.AD_BREAK_READY="ad-break-ready";pr.AD_INTERACTION="ad-interaction";pr.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";pr.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";pr.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function sr(a,b,c,d,e){var f=this;this.s=a;this.i=b;this.F=!1;this.A=this.o=null;this.G=NaN;this.l=e;this.j=null;this.h=new jb;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.C=new google.ima.AdDisplayContainer(this.s,this.i);this.C.initialize();this.m=new google.ima.AdsLoader(this.C);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.0");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.D(this.m, -google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){tr(f,g)});this.h.D(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){ur(f,g)});this.h.D(this.i,"ended",function(){f.m.contentComplete()});this.h.za(this.i,"play",function(){f.F=!0})}sr.prototype.configure=function(a){this.o=a};sr.prototype.stop=function(){this.g&&this.g.stop();this.s&&Dj(this.s)}; -sr.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.C.destroy()};function ur(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new V("ad-error",b));vr(a,null);a.l(new V("ad-cue-points-changed",(new Map).set("cuepoints",[])))} -function tr(a,b){a.l(new V("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));if(a.o.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.B);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.D(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.D(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.B);a.l(new V("ima-ad-manager-loaded",(new Map).set("imaAdManager", -a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=t(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.l(new V("ad-cue-points-changed",(new Map).set("cuepoints",b)))}wr(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight),a.h.D(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),"ResizeObserver"in window?(a.A=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),a.A.observe(a.i)):a.h.D(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth, -a.i.offsetHeight)}),a.F||a.o.skipPlayDetection?a.g.start():a.h.za(a.i,"play",function(){a.F=!0;a.g.start()})}catch(f){vr(a,null)}} -function wr(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new V(d,c))}a.h.D(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){ur(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){xr(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.STARTED,function(c){xr(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.D(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE, -function(c){b(c,"ad-third-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){vr(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){vr(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.D(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.D(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")}); +function zr(a,b,c){var d=0;null!=b&&(d=b);var e=null;c.attributes.skipoffset&&(e=dd(c.attributes.skipoffset),isNaN(e)&&(e=null));if(c=vd(c,"MediaFiles")){var f=rd(c,"MediaFile");c=f;f=f.filter(function(h){return"streaming"==h.attributes.delivery});f.length&&(c=f);c=c.sort(function(h,k){return(parseInt(k.attributes.height,10)||0)-(parseInt(h.attributes.height,10)||0)});c=t(c);for(f=c.next();!f.done;f=c.next())if(f=f.value,!f.attributes.apiFramework){var g=td(f);if(g){a.push({id:null,groupId:null,startTime:d, +endTime:null,uri:g,mimeType:f.attributes.type||null,isSkippable:null!=e,skipOffset:e,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==b,post:Infinity==b,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});break}}}}T("shaka.ads.Utils",xr);xr.ADS_LOADED="ads-loaded";xr.AD_STARTED="ad-started";xr.AD_FIRST_QUARTILE="ad-first-quartile";xr.AD_MIDPOINT="ad-midpoint";xr.AD_THIRD_QUARTILE="ad-third-quartile";xr.AD_COMPLETE="ad-complete"; +xr.AD_STOPPED="ad-stopped";xr.AD_SKIPPED="ad-skipped";xr.AD_VOLUME_CHANGED="ad-volume-changed";xr.AD_MUTED="ad-muted";xr.AD_PAUSED="ad-paused";xr.AD_RESUMED="ad-resumed";xr.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";xr.CUEPOINTS_CHANGED="ad-cue-points-changed";xr.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";xr.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";xr.AD_CLICKED="ad-clicked";xr.AD_PROGRESS="ad-progress";xr.AD_BUFFERING="ad-buffering";xr.AD_IMPRESSION="ad-impression"; +xr.AD_DURATION_CHANGED="ad-duration-changed";xr.AD_CLOSED="ad-closed";xr.AD_LOADED="ad-loaded";xr.ALL_ADS_COMPLETED="all-ads-completed";xr.AD_LINEAR_CHANGED="ad-linear-changed";xr.AD_METADATA="ad-metadata";xr.AD_RECOVERABLE_ERROR="ad-recoverable-error";xr.AD_ERROR="ad-error";xr.AD_BREAK_READY="ad-break-ready";xr.AD_INTERACTION="ad-interaction";xr.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";xr.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";xr.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function Ar(a,b,c,d,e){var f=this;this.s=a;this.i=b;this.F=!1;this.A=this.o=null;this.G=NaN;this.l=e;this.j=null;this.h=new jb;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.C=new google.ima.AdDisplayContainer(this.s,this.i);this.C.initialize();this.m=new google.ima.AdsLoader(this.C);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.4");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.D(this.m, +google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){Br(f,g)});this.h.D(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Cr(f,g)});this.h.D(this.i,"ended",function(){f.m.contentComplete()});this.h.za(this.i,"play",function(){f.F=!0})}Ar.prototype.configure=function(a){this.o=a};Ar.prototype.stop=function(){this.g&&this.g.stop();this.s&&Ej(this.s)}; +Ar.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.C.destroy()};function Cr(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new V("ad-error",b));Dr(a,null);a.l(new V("ad-cue-points-changed",(new Map).set("cuepoints",[])))} +function Br(a,b){a.l(new V("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));if(a.o.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.B);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.D(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.D(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.B);a.l(new V("ima-ad-manager-loaded",(new Map).set("imaAdManager", +a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=t(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.l(new V("ad-cue-points-changed",(new Map).set("cuepoints",b)))}Er(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight),a.h.D(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),"ResizeObserver"in window?(a.A=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),a.A.observe(a.i)):a.h.D(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth, +a.i.offsetHeight)}),a.F||a.o.skipPlayDetection?a.g.start():a.h.za(a.i,"play",function(){a.F=!0;a.g.start()})}catch(f){Dr(a,null)}} +function Er(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new V(d,c))}a.h.D(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Cr(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Fr(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.STARTED,function(c){Fr(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.D(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE, +function(c){b(c,"ad-third-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Dr(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Dr(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.D(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.D(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")}); a.h.D(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.D(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.D(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.D(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.D(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.D(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")}); a.h.D(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.D(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.D(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.D(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.D(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.D(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.D(a.g, google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.D(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.D(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.D(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})} -function xr(a,b){var c=b.getAd();c?(a.j=new or(c,a.g,a.i),b.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.o.supportsMultipleMediaElements||a.l(new V("ad-content-pause-requested")),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new V("ad-started",b)),a.j.isLinear()&&(a.s.setAttribute("ad-active","true"),a.o.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):bb("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")} -function vr(a,b){b&&b.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!a.o.supportsMultipleMediaElements&&a.l(new V("ad-content-resume-requested"));a.l(new V("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.s.removeAttribute("ad-active"),a.o.customPlayheadTracker||a.i.ended||a.i.play())};function yr(a,b,c,d,e,f){this.g=a;this.i=b;this.j=(this.h=b.isSkippable)?b.skipOffset||0:b.skipOffset;this.l=b.skipFor;this.A=c;this.o=d;this.m=e;this.s=f;this.B=b.overlay}p=yr.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!1};p.isUsingAnotherMediaElement=function(){return this.s};p.getDuration=function(){var a=this.g.duration;return isNaN(a)?-1:a};p.getMinSuggestedDuration=function(){return this.getDuration()}; +function Fr(a,b){var c=b.getAd();c?(a.j=new wr(c,a.g,a.i),b.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.o.supportsMultipleMediaElements||a.l(new V("ad-content-pause-requested")),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new V("ad-started",b)),a.j.isLinear()&&(a.s.setAttribute("ad-active","true"),a.o.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):bb("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")} +function Dr(a,b){b&&b.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!a.o.supportsMultipleMediaElements&&a.l(new V("ad-content-resume-requested"));a.l(new V("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.s.removeAttribute("ad-active"),a.o.customPlayheadTracker||a.i.ended||a.i.play())};function Gr(a,b,c,d,e,f){this.g=a;this.i=b;this.j=(this.h=b.isSkippable)?b.skipOffset||0:b.skipOffset;this.l=b.skipFor;this.A=c;this.o=d;this.m=e;this.s=f;this.B=b.overlay}p=Gr.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!1};p.isUsingAnotherMediaElement=function(){return this.s};p.getDuration=function(){var a=this.g.duration;return isNaN(a)?-1:a};p.getMinSuggestedDuration=function(){return this.getDuration()}; p.getRemainingTime=function(){var a=this.g.duration;return isNaN(a)?-1:a-this.g.currentTime};p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return this.h&&null!=this.l?this.getDuration()-this.getRemainingTime()=r&&(!e.C.has(n)&&Er(n)&&e.C.set(n,e.j.preload(n.uri,null,n.mimeType||void 0)),Fr(e,n));v.u(4);break}if(!e.C.has(n)){v.u(7);break}return F(v,e.C.get(n),8);case 8:(u=v.h)&&u.destroy(),e.C.delete(n);case 7:Gr(e,n),w=JSON.stringify(n),e.U.has(w)&&e.U.delete(w),e.H.delete(n),Hr(e),n.overlay||(g=!0);case 4:m=l.next();v.u(3);break;case 5:g&&Ir(e),G(v)}})})}p=Ar.prototype;p.configure=function(a){this.M=a;Jr(this)}; -function Kr(a){if(!a.ka&&a.H.size){a.I.D(a.g,"playing",a.W);a.I.D(a.g,"timeupdate",a.W);a.I.D(a.g,"seeked",a.oa);a.I.D(a.g,"ended",a.$);if("requestVideoFrameCallback"in a.g&&!Lr()){var b=a.g,c=function(){-1!=a.P&&(a.$(),-1!=a.P&&(a.P=b.requestVideoFrameCallback(c)))};a.P=b.requestVideoFrameCallback(c)}else a.S.Ga(.025);a.N&&a.N.Ga(1);a.ka=!0}} -function Hr(a){a.ka&&!a.H.size&&(a.I.Ja(a.g,"playing",a.W),a.I.Ja(a.g,"timeupdate",a.W),a.I.Ja(a.g,"seeked",a.oa),a.I.Ja(a.g,"ended",a.$),-1!=a.P&&(a.g.cancelVideoFrameCallback(a.P),a.P=-1),a.S&&a.S.stop(),a.N&&a.N.stop(),a.ka=!1)} -function Jr(a){if(a.A&&a.M&&!a.K){var b=a.M.supportsMultipleMediaElements,c=a.g;c.webkitSupportsFullscreen&&c.webkitDisplayingFullscreen&&(b=!1);a.B==b&&(a.B=!b,a.B?(a.h=a.g,a.F&&(a.F.parentElement&&a.A.removeChild(a.F),a.F=null)):(a.F||(b=document.createElement(a.g.tagName),b.autoplay=!0,b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",b.style.height="100%",b.style.display="none",b.setAttribute("playsinline",""),a.F=b),a.h=a.F))}} -p.stop=function(){this.l&&this.l.Ra();this.U.clear();this.H.clear();this.j.hg();if(this.C.size){var a=Array.from(this.C.values());a=t(a);for(var b=a.next();!b.done;b=a.next())(b=b.value)&&b.then(function(c){c&&c.destroy()})}this.C.clear();if(this.L.size)for(a=Array.from(this.L.keys()),a=t(a),b=a.next();!b.done;b=a.next())Gr(this,b.value);this.L.clear();this.j.detach();this.K=!1;this.s=this.m=null;this.B=!0;this.h=this.g;this.F=null;Mr(this);Hr(this);this.A&&Dj(this.A);this.o&&(this.o.stop(),this.o= -null)};p.release=function(){this.stop();this.I&&this.I.release();this.l&&this.l.release();this.S&&(this.S.stop(),this.S=null);this.N&&(this.N.stop(),this.N=null);this.j.destroy()};p.kd=function(){return this.j};function Nr(a,b){var c;Q(function(d){if(1==d.g)return Br(a),F(d,Or(a,b),2);c=d.h;c.length?Pr(a,c):bb("Unsupported HLS interstitial",b);G(d)})} -function Qr(a,b){var c=ud(b.eventNode,"OverlayEvent"),d=c.attributes.uri,e=c.attributes.mimeType,f="true"==c.attributes.loop,g=xd(c,"z",Dd);if(d&&0!=g){var h=null,k=ud(c,"Background");if(k){var l=k.attributes.uri;l?h="center / contain no-repeat url('"+l+"')":h=sd(k)}k=1920;l=1080;var m=ud(c,"Viewport");if(m){k=xd(m,"x",Dd);if(null==k)return;l=xd(m,"y",Dd);if(null==l)return}var n={viewport:{x:k,y:l},topLeft:{x:0,y:0},size:{x:k,y:l}},q=ud(c,"Overlay");if(m&&q){var r=ud(q,"TopLeft"),u=ud(q,"Size");if(r&& -u){q=xd(r,"x",Dd);if(null==q)return;r=xd(r,"y",Dd);if(null==r)return;var w=xd(u,"x",Dd);if(null==w)return;u=xd(u,"y",Dd);if(null==u)return;n.topLeft.x=q;n.topLeft.y=r;n.size.x=w;n.size.y=u}}q=null;c=ud(c,"Squeeze");if(m&&c&&(u=ud(c,"TopLeft"),c=ud(c,"Size"),u&&c)){m=xd(u,"x",Dd);if(null==m)return;q=xd(u,"y",Dd);if(null==q)return;u=xd(c,"x",Dd);if(null==u)return;c=xd(c,"y",Dd);if(null==c)return;q={viewport:{x:k,y:l},topLeft:{x:m,y:q},size:{x:u,y:c}}}Pr(a,[{id:b.id,groupId:null,startTime:b.startTime, +p.getVastMediaWidth=function(){return 0};p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.id||""};p.getCreativeAdId=function(){return""};p.getAdvertiserName=function(){return""};p.getMediaUrl=function(){return this.g.uri};p.getTimeOffset=function(){return 0};p.getPodIndex=function(){return 0};p.release=function(){};T("shaka.ads.InterstitialStaticAd",Hr);Hr.prototype.release=Hr.prototype.release;Hr.prototype.getPodIndex=Hr.prototype.getPodIndex;Hr.prototype.getTimeOffset=Hr.prototype.getTimeOffset; +Hr.prototype.getMediaUrl=Hr.prototype.getMediaUrl;Hr.prototype.getAdvertiserName=Hr.prototype.getAdvertiserName;Hr.prototype.getCreativeAdId=Hr.prototype.getCreativeAdId;Hr.prototype.getAdId=Hr.prototype.getAdId;Hr.prototype.getVastAdId=Hr.prototype.getVastAdId;Hr.prototype.getVastMediaWidth=Hr.prototype.getVastMediaWidth;Hr.prototype.getVastMediaHeight=Hr.prototype.getVastMediaHeight;Hr.prototype.getVastMediaBitrate=Hr.prototype.getVastMediaBitrate;Hr.prototype.getDescription=Hr.prototype.getDescription; +Hr.prototype.getTitle=Hr.prototype.getTitle;Hr.prototype.getPositionInSequence=Hr.prototype.getPositionInSequence;Hr.prototype.getSequenceLength=Hr.prototype.getSequenceLength;Hr.prototype.setMuted=Hr.prototype.setMuted;Hr.prototype.resize=Hr.prototype.resize;Hr.prototype.isLinear=Hr.prototype.isLinear;Hr.prototype.isMuted=Hr.prototype.isMuted;Hr.prototype.setVolume=Hr.prototype.setVolume;Hr.prototype.getVolume=Hr.prototype.getVolume;Hr.prototype.play=Hr.prototype.play;Hr.prototype.pause=Hr.prototype.pause; +Hr.prototype.skip=Hr.prototype.skip;Hr.prototype.canSkipNow=Hr.prototype.canSkipNow;Hr.prototype.getTimeUntilSkippable=Hr.prototype.getTimeUntilSkippable;Hr.prototype.isSkippable=Hr.prototype.isSkippable;Hr.prototype.isPaused=Hr.prototype.isPaused;Hr.prototype.getRemainingTime=Hr.prototype.getRemainingTime;Hr.prototype.getMinSuggestedDuration=Hr.prototype.getMinSuggestedDuration;Hr.prototype.getDuration=Hr.prototype.getDuration;Hr.prototype.isUsingAnotherMediaElement=Hr.prototype.isUsingAnotherMediaElement; +Hr.prototype.hasCustomClick=Hr.prototype.hasCustomClick;Hr.prototype.isClientRendering=Hr.prototype.isClientRendering;Hr.prototype.needsSkipUI=Hr.prototype.needsSkipUI;function Ir(a,b,c,d){var e=this;this.M=null;this.B=a;this.C=b;this.g=c;this.G=null;this.A=!0;this.h=this.g;this.i=d;this.U=new Set;this.H=new Set;this.F=new Map;this.L=new Map;this.j=new Y;Jr(this);this.I=new jb;this.l=new jb;this.K=!1;this.ia=this.o=this.s=this.m=null;this.ka=!1;this.P=-1;this.$=function(){if(!e.K&&e.m&&!e.C.ua()){e.m=e.g.currentTime;var f=Kr(e);f&&Lr(e,f,1,1,Date.now())}};this.W=function(){if(!(e.K||e.m||e.C.ua())){e.m=e.g.currentTime;var f=Kr(e,!0);f&&Lr(e,f,1,1,Date.now())}}; +this.oa=function(){if(!e.K&&e.m&&!e.C.ua()){var f=e.g.currentTime;e.s&&!e.s.pre&&!e.s.post&&f<(e.s.endTime||e.s.startTime)&&(e.s=null)}};this.S=new af(this.$);this.N=new af(function(){var f,g,h,k,l,m,n,q,r,u,w;return Q(function(v){switch(v.g){case 1:if(!e.H.size||null==e.m){v.u(0);break}f=e.C.m;if(f==aq||f==Qp)return v.return();g=!1;h=Array.from(e.H);k=e.C.Ra();l=t(h);m=l.next();case 3:if(m.done){v.u(5);break}n=m.value;if(n==e.s){v.u(4);break}q=n.endTime||n.startTime;if(!(1<=k.start-q)){r=n.startTime- +e.m;0=r&&(!e.F.has(n)&&Mr(n)&&e.F.set(n,e.j.preload(n.uri,null,n.mimeType||void 0)),Nr(e,n));v.u(4);break}if(!e.F.has(n)){v.u(7);break}return F(v,e.F.get(n),8);case 8:(u=v.h)&&u.destroy(),e.F.delete(n);case 7:Or(e,n),w=JSON.stringify(n),e.U.has(w)&&e.U.delete(w),e.H.delete(n),Pr(e),n.overlay||(g=!0);case 4:m=l.next();v.u(3);break;case 5:g&&Qr(e),G(v)}})});this.configure(this.C.getConfiguration().ads)}p=Ir.prototype;p.configure=function(a){this.M=a;Rr(this)}; +function Sr(a){if(!a.ka&&a.H.size){a.I.D(a.g,"playing",a.W);a.I.D(a.g,"timeupdate",a.W);a.I.D(a.g,"seeked",a.oa);a.I.D(a.g,"ended",a.$);if("requestVideoFrameCallback"in a.g&&!Tr()){var b=a.g,c=function(){-1!=a.P&&(a.$(),-1!=a.P&&(a.P=b.requestVideoFrameCallback(c)))};a.P=b.requestVideoFrameCallback(c)}else a.S.Ga(.025);a.N&&a.N.Ga(1);a.ka=!0}} +function Pr(a){a.ka&&!a.H.size&&(a.I.Ja(a.g,"playing",a.W),a.I.Ja(a.g,"timeupdate",a.W),a.I.Ja(a.g,"seeked",a.oa),a.I.Ja(a.g,"ended",a.$),-1!=a.P&&(a.g.cancelVideoFrameCallback(a.P),a.P=-1),a.S&&a.S.stop(),a.N&&a.N.stop(),a.ka=!1)} +function Rr(a){if(a.B&&a.M&&!a.K){var b=a.M.supportsMultipleMediaElements,c=a.g;c.webkitSupportsFullscreen&&c.webkitDisplayingFullscreen&&(b=!1);a.A==b&&(a.A=!b,a.A?(a.h=a.g,a.G&&(a.G.parentElement&&a.B.removeChild(a.G),a.G=null)):(a.G||(b=document.createElement(a.g.tagName),b.autoplay=!0,b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",b.style.height="100%",b.style.display="none",b.setAttribute("playsinline",""),a.G=b),a.h=a.G))}else a.A=!0} +p.stop=function(){this.l&&this.l.Qa();this.U.clear();this.H.clear();this.j.ig();if(this.F.size){var a=Array.from(this.F.values());a=t(a);for(var b=a.next();!b.done;b=a.next())(b=b.value)&&b.then(function(c){c&&c.destroy()})}this.F.clear();if(this.L.size)for(a=Array.from(this.L.keys()),a=t(a),b=a.next();!b.done;b=a.next())Or(this,b.value);this.L.clear();this.j.detach();this.K=!1;this.s=this.m=null;this.A=!0;this.h=this.g;this.G=null;Ur(this);Pr(this);this.B&&Ej(this.B);this.o&&(this.o.stop(),this.o= +null)};p.release=function(){this.stop();this.I&&this.I.release();this.l&&this.l.release();this.S&&(this.S.stop(),this.S=null);this.N&&(this.N.stop(),this.N=null);this.j.destroy()};p.ld=function(){return this.j};function Vr(a,b){var c;Q(function(d){if(1==d.g)return Jr(a),F(d,Wr(a,b),2);c=d.h;c.length?Xr(a,c):bb("Unsupported HLS interstitial",b);G(d)})} +function Yr(a,b){var c=vd(b.eventNode,"OverlayEvent"),d=c.attributes.uri,e=c.attributes.mimeType,f="true"==c.attributes.loop,g=yd(c,"z",Ed);if(d&&0!=g){var h=null,k=vd(c,"Background");if(k){var l=k.attributes.uri;l?h="center / contain no-repeat url('"+l+"')":h=td(k)}k=1920;l=1080;var m=vd(c,"Viewport");if(m){k=yd(m,"x",Ed);if(null==k)return;l=yd(m,"y",Ed);if(null==l)return}var n={viewport:{x:k,y:l},topLeft:{x:0,y:0},size:{x:k,y:l}},q=vd(c,"Overlay");if(m&&q){var r=vd(q,"TopLeft"),u=vd(q,"Size");if(r&& +u){q=yd(r,"x",Ed);if(null==q)return;r=yd(r,"y",Ed);if(null==r)return;var w=yd(u,"x",Ed);if(null==w)return;u=yd(u,"y",Ed);if(null==u)return;n.topLeft.x=q;n.topLeft.y=r;n.size.x=w;n.size.y=u}}q=null;c=vd(c,"Squeeze");if(m&&c&&(u=vd(c,"TopLeft"),c=vd(c,"Size"),u&&c)){m=yd(u,"x",Ed);if(null==m)return;q=yd(u,"y",Ed);if(null==q)return;u=yd(c,"x",Ed);if(null==u)return;c=yd(c,"y",Ed);if(null==c)return;q={viewport:{x:k,y:l},topLeft:{x:m,y:q},size:{x:u,y:c}}}Xr(a,[{id:b.id,groupId:null,startTime:b.startTime, endTime:b.endTime,uri:d,mimeType:e,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:null,playoutLimit:null,once:!1,pre:!1,post:!1,timelineRange:!0,loop:f,overlay:n,displayOnBackground:-1==g,currentVideo:q,background:h}])}} -p.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return c={type:12},F(n,Rr(b,a,c),2);case 2:d=n.h;e=hd(d,"VAST,vmap:VMAP");if(!e)throw new U(2,10,10007);f=[];if("VAST"==e.tagName){f=qr(e,b.m);n.u(3);break}if("vmap:VMAP"!=e.tagName){n.u(3);break}for(var q=[],r=t(qd(e,"vmap:AdBreak")),u=r.next();!u.done;u=r.next()){var w=u.value,v=w.attributes.timeOffset;v&&(u=null,"start"==v?u=0:"end"==v?u=Infinity:u=dd(v),(w=ud(w,"vmap:AdSource"))&&(w=ud(w,"vmap:AdTagURI"))&& -(w=rd(w))&&q.push({time:u,uri:w}))}g=t(q);h=g.next();case 5:if(h.done){n.u(3);break}k=h.value;return F(n,Rr(b,k.uri,c),8);case 8:l=n.h;m=hd(l,"VAST");if(!m)throw new U(2,10,10007);f.push.apply(f,x(qr(m,k.time)));h=g.next();n.u(5);break;case 3:Pr(b,f),G(n)}})}; -function Pr(a,b){var c,d,e,f,g,h,k,l;Q(function(m){switch(m.g){case 1:c=!1,d=t(b),e=d.next();case 2:if(e.done){m.u(4);break}f=e.value;if(!f.uri){bb("Missing URL in interstitial",f);m.u(3);break}if(f.mimeType){m.u(5);break}wa(m,6);g=a.j.Nb();return F(m,vo(f.uri,g,a.G.getConfiguration().streaming.retryParameters),8);case 8:f.mimeType=m.h;za(m,5);break;case 6:Aa(m);case 5:h=f.id||JSON.stringify(f);if(a.U.has(h)){m.u(3);break}f.loop&&!f.overlay&&bb("Loop is only supported in overlay interstitials",f); -f.overlay||(c=!0);a.U.add(h);a.H.add(f);k=!1;f.pre&&null==a.m?k=!0:0!=f.startTime||f.canJump?null!=a.m&&(l=f.startTime-a.m,0=l&&(k=!0)):k=!0;k&&(!a.C.has(f)&&Er(f)&&a.C.set(f,a.j.preload(f.uri,null,f.mimeType||void 0)),Fr(a,f));case 3:e=d.next();m.u(2);break;case 4:c&&Ir(a),Kr(a),G(m)}})} -function Cr(a,b,c){b=void 0===b?!1:b;c=void 0===c?null:c;var d=0,e=null;if(a.H.size&&null!=a.m){var f=a.g.ended,g=Array.from(a.H).sort(function(n,q){return q.startTime-n.startTime}),h=g;h=b?g.filter(function(n){return n.pre}):f?g.filter(function(n){return n.post}):g.filter(function(n){return!n.pre&&!n.post});g=t(h);for(h=g.next();!h.done;h=g.next()){h=h.value;var k=!1;if(b)k=h.pre;else if(f)k=h.post;else if(!h.pre&&!h.post){var l=a.m-Math.round(1E3*h.startTime)/1E3,m=1;a.M.allowStartInMiddleOfInterstitial&& +p.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return c={type:12},F(n,Zr(b,a,c),2);case 2:d=n.h;e=jd(d,"VAST,vmap:VMAP");if(!e)throw new U(2,10,10007);f=[];if("VAST"==e.tagName){f=yr(e,b.m);n.u(3);break}if("vmap:VMAP"!=e.tagName){n.u(3);break}for(var q=[],r=t(rd(e,"vmap:AdBreak")),u=r.next();!u.done;u=r.next()){var w=u.value,v=w.attributes.timeOffset;v&&(u=null,"start"==v?u=0:"end"==v?u=Infinity:u=dd(v),(w=vd(w,"vmap:AdSource"))&&(w=vd(w,"vmap:AdTagURI"))&& +(w=sd(w))&&q.push({time:u,uri:w}))}g=t(q);h=g.next();case 5:if(h.done){n.u(3);break}k=h.value;return F(n,Zr(b,k.uri,c),8);case 8:l=n.h;m=jd(l,"VAST");if(!m)throw new U(2,10,10007);f.push.apply(f,x(yr(m,k.time)));h=g.next();n.u(5);break;case 3:Xr(b,f),G(n)}})}; +function Xr(a,b){var c,d,e,f,g,h,k,l;Q(function(m){switch(m.g){case 1:c=!1,d=t(b),e=d.next();case 2:if(e.done){m.u(4);break}f=e.value;if(!f.uri){bb("Missing URL in interstitial",f);m.u(3);break}if(f.mimeType){m.u(5);break}wa(m,6);g=a.j.Nb();return F(m,Do(f.uri,g,a.C.getConfiguration().streaming.retryParameters),8);case 8:f.mimeType=m.h;za(m,5);break;case 6:Aa(m);case 5:h=f.id||JSON.stringify(f);if(a.U.has(h)){m.u(3);break}f.loop&&!f.overlay&&bb("Loop is only supported in overlay interstitials",f); +f.overlay||(c=!0);a.U.add(h);a.H.add(f);k=!1;f.pre&&null==a.m?k=!0:0!=f.startTime||f.canJump?null!=a.m&&(l=f.startTime-a.m,0=l&&(k=!0)):k=!0;k&&(!a.F.has(f)&&Mr(f)&&a.F.set(f,a.j.preload(f.uri,null,f.mimeType||void 0)),Nr(a,f));case 3:e=d.next();m.u(2);break;case 4:c&&Qr(a),Sr(a),G(m)}})} +function Kr(a,b,c){b=void 0===b?!1:b;c=void 0===c?null:c;var d=0,e=null;if(a.H.size&&null!=a.m){var f=a.g.ended,g=Array.from(a.H).sort(function(n,q){return q.startTime-n.startTime}),h=g;h=b?g.filter(function(n){return n.pre}):f?g.filter(function(n){return n.post}):g.filter(function(n){return!n.pre&&!n.post});g=t(h);for(h=g.next();!h.done;h=g.next()){h=h.value;var k=!1;if(b)k=h.pre;else if(f)k=h.post;else if(!h.pre&&!h.post){var l=a.m-Math.round(1E3*h.startTime)/1E3,m=1;a.M.allowStartInMiddleOfInterstitial&& h.endTime&&Infinity!=h.endTime&&(m=h.endTime-h.startTime);0=h.startTime?!1:!0)}k&&(!a.s||h.startTime>=a.s.startTime)&&(d==(c||0)?e=h:e&&!h.canJump&&.001Math.abs(g.startTime-b.startTime)}).length);b.once&&(f++,a.H.delete(b),Hr(a),b.overlay||Ir(a));b.mimeType&&(b.mimeType.startsWith("image/")||"text/html"===b.mimeType)?b.overlay?Sr(a,b,c,d,f):bb("Unsupported interstitial",b):a.B&&b.overlay?bb("Unsupported interstitial",b):Tr(a,b,c,d,e,f)} -function Sr(a,b,c,d,e){function f(){a.o&&(a.o.stop(),a.o=null);a.A.removeChild(k);Mr(a,b);a.i(new V("ad-stopped"));a.l.Ra();var q=Cr(a,b.pre,d-e);q?Dr(a,q,c,++d,Date.now(),e):a.K=!1}a.K=!0;var g=b.overlay,h="text/html"==b.mimeType?"iframe":"img",k=document.createElement(h);k.style.objectFit="contain";k.style.position="absolute";k.style.border="none";Ur(a,b);a.i(new V("ad-started",(new Map).set("ad",new zr(b,c,d))));"iframe"==h?k.src=b.uri:(k.src=b.uri,k.onerror=function(q){a.i(new V("ad-error",(new Map).set("originalEvent", -q)));f()});var l=g.viewport,m=g.topLeft;g=g.size;0==l.x&&0==l.y?(k.width=b.overlay.size.x,k.height=b.overlay.size.y,k.style.bottom="10%",k.style.left="0",k.style.right="0",k.style.width="100%",b.overlay.size.y||"iframe"!=h||(k.style.height="auto")):(k.style.height=g.y/l.y*100+"%",k.style.left=m.x/l.x*100+"%",k.style.top=m.y/l.y*100+"%",k.style.width=g.x/l.x*100+"%");a.A.appendChild(k);var n=Date.now();a.o&&a.o.stop();a.o=new $e(function(){b.playoutLimit&&(Date.now()-n)/1E3>b.playoutLimit?(a.i(new V("ad-complete")), +function Lr(a,b,c,d,e,f){f=void 0===f?0:f;a.s=b;Rr(a);a.A||!a.B||a.h.parentElement||a.B.appendChild(a.h);1==d&&1==c&&(c=Array.from(a.H).filter(function(g){return b.pre?g.pre==b.pre:b.post?g.post==b.post:.001>Math.abs(g.startTime-b.startTime)}).length);b.once&&(f++,a.H.delete(b),Pr(a),b.overlay||Qr(a));b.mimeType&&(b.mimeType.startsWith("image/")||"text/html"===b.mimeType)?b.overlay?$r(a,b,c,d,f):bb("Unsupported interstitial",b):a.A&&b.overlay?bb("Unsupported interstitial",b):as(a,b,c,d,e,f)} +function $r(a,b,c,d,e){function f(){a.o&&(a.o.stop(),a.o=null);a.B.removeChild(k);Ur(a,b);a.i(new V("ad-stopped"));a.l.Qa();var q=Kr(a,b.pre,d-e);q?Lr(a,q,c,++d,Date.now(),e):a.K=!1}a.K=!0;var g=b.overlay,h="text/html"==b.mimeType?"iframe":"img",k=document.createElement(h);k.style.objectFit="contain";k.style.position="absolute";k.style.border="none";bs(a,b);a.i(new V("ad-started",(new Map).set("ad",new Hr(b,c,d))));"iframe"==h?k.src=b.uri:(k.src=b.uri,k.onerror=function(q){a.i(new V("ad-error",(new Map).set("originalEvent", +q)));f()});var l=g.viewport,m=g.topLeft;g=g.size;0==l.x&&0==l.y?(k.width=b.overlay.size.x,k.height=b.overlay.size.y,k.style.bottom="10%",k.style.left="0",k.style.right="0",k.style.width="100%",b.overlay.size.y||"iframe"!=h||(k.style.height="auto")):(k.style.height=g.y/l.y*100+"%",k.style.left=m.x/l.x*100+"%",k.style.top=m.y/l.y*100+"%",k.style.width=g.x/l.x*100+"%");a.B.appendChild(k);var n=Date.now();a.o&&a.o.stop();a.o=new af(function(){b.playoutLimit&&(Date.now()-n)/1E3>b.playoutLimit?(a.i(new V("ad-complete")), f()):b.endTime&&a.g.currentTime>b.endTime?(a.i(new V("ad-complete")),f()):a.g.currentTimeb.endTime)a.o&&a.o.stop(),a.i(new V("ad-skipped")),f()})} -function Tr(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,E,H,C,D,I;Q(function(L){switch(L.g){case 1:g=Date.now();a.K=!0;if(!a.B||1!=d){L.u(2);break}a.i(new V("ad-content-pause-requested",(new Map).set("saveLivePosition",!0)));h=new tg;k=function(K){return Q(function(J){if(1==J.g)return"detach"!=K.state?J.u(0):Lr()?F(J,new Promise(function(M){return(new $e(M)).ha(.1)}),3):J.u(3);h.resolve();a.l.Ja(a.G,"onstatechange",k);G(J)})};a.l.D(a.G,"onstatechange",k);return F(L,h,2);case 2:return Ur(a,b),a.B|| -(a.h.style.display="",b.overlay?(a.h.loop=b.loop,l=b.overlay.viewport,m=b.overlay.topLeft,n=b.overlay.size,a.h.style.height=n.y/l.y*100+"%",a.h.style.left=m.x/l.x*100+"%",a.h.style.top=m.y/l.y*100+"%",a.h.style.width=n.x/l.x*100+"%"):(a.g.pause(),null!=b.resumeOffset&&0!=b.resumeOffset&&(a.g.currentTime+=b.resumeOffset),a.h.loop=!1,a.h.style.height="100%",a.h.style.left="0",a.h.style.top="0",a.h.style.width="100%")),q=!1,r=function(){if(!a.B&&!b.overlay&&null==b.resumeOffset)if(b.timelineRange&&b.endTime&& -Infinity!=b.endTime)a.g.currentTime!=b.endTime&&(a.g.currentTime=b.endTime);else{var K=Date.now();a.g.currentTime+=(K-e)/1E3;e=K}},u=function(K){var J,M;return Q(function(O){if(1==O.g){r();J=Cr(a,b.pre,d-f);if(K&&b.groupId)for(;J&&J.groupId==b.groupId;)d++,J=Cr(a,b.pre,d-f);a.o&&(!b.groupId||J&&J.groupId!=b.groupId)&&(a.o.stop(),a.o=null);Mr(a,b);if(J&&!J.overlay)return O.u(2);b.post&&(a.m=null,a.s=null);return a.B?F(O,a.j.detach(),4):F(O,a.j.rc(),4)}2!=O.g&&(a.B&&(M=b.resumeOffset,null==M&&(M=b.timelineRange&& -b.endTime&&Infinity!=b.endTime?b.endTime-(a.m||0):(Date.now()-e)/1E3),a.i(new V("ad-content-resume-requested",(new Map).set("offset",M)))),a.i(new V("ad-stopped")),a.l.Ra(),a.K=!1,a.B?Ir(a):(a.h.style.display="none",r(),a.g.ended||a.g.play()));Jr(a);J&&(a.i(new V("ad-stopped")),a.l.Ra(),Dr(a,J,c,++d,e,f));G(O)})},w=function(K){return Q(function(J){if(q)return J.return();q=!0;a.i(new V("ad-error",(new Map).set("originalEvent",K)));return F(J,u(!1),0)})},v=function(){return Q(function(K){if(1==K.g){if(q)return K.return(); -q=!0;return F(K,u(!1),2)}a.i(new V("ad-complete"));G(K)})},a.ia=function(){return Q(function(K){if(q)return K.return();q=!0;a.i(new V("ad-skipped"));return F(K,u(!0),0)})},y=new yr(a.h,b,a.ia,c,d,!a.B),a.B||(y.setMuted(a.g.muted),y.setVolume(a.g.volume)),a.i(new V("ad-started",(new Map).set("ad",y))),(z=y.canSkipNow())&&a.i(new V("ad-skip-state-changed")),a.l.za(a.j,"error",w),a.l.D(a.h,"timeupdate",function(){if(a.h.duration){var K=y.canSkipNow();z!=K&&0=K.playRangeEnd?v():a.i(new V("ad-paused"))}),a.l.D(a.h,"volumechange",function(){a.h.muted? -a.i(new V("ad-muted")):a.i(new V("ad-volume-changed"))}),wa(L,4),Br(a),b.startTime&&b.endTime&&Infinity!=b.endTime&&b.startTime!=b.endTime&&(A=b.endTime-b.startTime,0b.endTime)&&a.ia()}));za(L,0); -break;case 4:I=Aa(L);if(!a.K)return L.return();w(I);G(L)}})} -function Ur(a,b){b.displayOnBackground&&(a.g.style.zIndex="1");if(null!=b.currentVideo){var c=b.currentVideo;a.g.style.transformOrigin="top left";var d=!0,e=[],f=c.topLeft.x/c.viewport.x*100;0=f&&(e.push("translateX("+f+"%)"),d=!1);f=c.topLeft.y/c.viewport.y*100;0=f&&(e.push("translateY("+f+"%)"),d=!1);f=c.size.x/c.viewport.x;1>f&&e.push("scaleX("+f+")");c=c.size.y/c.viewport.y;1>f&&e.push("scaleY("+c+")");e.length&&(a.g.style.transform=e.join(" "));d&&(a.g.style.transition="transform 250ms")}a.A&& -(a.A.style.pointerEvents="none",b.background&&(a.A.style.background=b.background));a.F&&(a.F.style.background=b.overlay?"":"rgb(0, 0, 0)")}function Mr(a,b){if(!b||b.displayOnBackground)a.g.style.zIndex="";b&&null==b.currentVideo||(a.g.style.transformOrigin="",a.g.style.transition="",a.g.style.transform="");a.A&&(a.A.style.pointerEvents="",!b||b.background)&&(a.A.style.background="");a.F&&(a.F.style.background="")} -function Or(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,E,H,C,D,I,L,K,J,M,O,N,P,R,S,aa,W,Fa,Ga,xa,qa,Da,Ja,ra;return Q(function(da){switch(da.g){case 1:c=[];if(!b)return da.return(c);d=b.values.find(function(sa){return"X-ASSET-URI"==sa.key});e=b.values.find(function(sa){return"X-ASSET-LIST"==sa.key});if(!d&&!e)return da.return(c);f=null;if(g=b.values.find(function(sa){return"ID"==sa.key}))f=g.data;h=null==f?Math.floor(10*b.startTime)/10:b.startTime;(k=b.endTime)&&Infinity!=b.endTime&&"number"== -typeof b.endTime&&(k=null==f?Math.floor(10*b.endTime)/10:b.endTime);l=b.values.find(function(sa){return"X-RESTRICT"==sa.key});n=m=!0;l&&l.data&&(q=l.data,m=!q.includes("SKIP"),n=!q.includes("JUMP"));r=m?0:null;if(u=b.values.find(function(sa){return"X-ENABLE-SKIP-AFTER"==sa.key}))w=u.data,r=parseFloat(w),isNaN(r)&&(r=m?0:null);v=null;if(y=b.values.find(function(sa){return"X-ENABLE-SKIP-FOR"==sa.key}))z=y.data,v=parseFloat(z),isNaN(r)&&(v=null);A=null;if(B=b.values.find(function(sa){return"X-RESUME-OFFSET"== -sa.key}))E=B.data,A=parseFloat(E),isNaN(A)&&(A=null);H=null;if(C=b.values.find(function(sa){return"X-PLAYOUT-LIMIT"==sa.key}))D=C.data,H=parseFloat(D),isNaN(H)&&(H=null);K=L=I=!1;if(J=b.values.find(function(sa){return"CUE"==sa.key}))M=J.data,I=M.includes("ONCE"),L=M.includes("PRE"),K=M.includes("POST");O=!1;(N=b.values.find(function(sa){return"X-TIMELINE-OCCUPIES"==sa.key}))?(P=N.data,O=P.includes("RANGE")):!B&&a.G.V()&&(O=!L&&!K);if(d){R=d.data;if(!R)return da.return(c);c.push({id:f,groupId:null, -startTime:h,endTime:k,uri:R,mimeType:null,isSkippable:m,skipOffset:r,skipFor:v,canJump:n,resumeOffset:A,playoutLimit:H,once:I,pre:L,post:K,timelineRange:O,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});da.u(2);break}if(!e){da.u(2);break}S=e.data;if(!S)return da.return(c);wa(da,4);aa={type:11};return F(da,Rr(a,S,aa),6);case 6:W=da.h;Fa=ac(W);Ga=JSON.parse(Fa);if(xa=Ga["SKIP-CONTROL"])qa=xa["ENABLE-SKIP-AFTER"],"number"==typeof qa&&(r=parseFloat(qa),isNaN(qa)&&(r=m? -0:null)),Da=xa["ENABLE-SKIP-FOR"],"number"==typeof Da&&(v=parseFloat(Da),isNaN(Da)&&(v=null));for(Ja=0;Ja=J.playRangeEnd?v():a.i(new V("ad-paused"))}),a.l.D(a.h,"volumechange",function(){a.h.muted? +a.i(new V("ad-muted")):a.i(new V("ad-volume-changed"))}),wa(K,4),Jr(a),b.startTime&&b.endTime&&Infinity!=b.endTime&&b.startTime!=b.endTime&&(A=b.endTime-b.startTime,0b.endTime)&&a.ia()}));za(K,0); +break;case 4:I=Aa(K);if(!a.K)return K.return();w(I);G(K)}})} +function bs(a,b){b.displayOnBackground&&(a.g.style.zIndex="1");if(null!=b.currentVideo){var c=b.currentVideo;a.g.style.transformOrigin="top left";var d=!0,e=[],f=c.topLeft.x/c.viewport.x*100;0=f&&(e.push("translateX("+f+"%)"),d=!1);f=c.topLeft.y/c.viewport.y*100;0=f&&(e.push("translateY("+f+"%)"),d=!1);f=c.size.x/c.viewport.x;1>f&&e.push("scaleX("+f+")");c=c.size.y/c.viewport.y;1>f&&e.push("scaleY("+c+")");e.length&&(a.g.style.transform=e.join(" "));d&&(a.g.style.transition="transform 250ms")}a.B&& +(a.B.style.pointerEvents="none",b.background&&(a.B.style.background=b.background));a.G&&(a.G.style.background=b.overlay?"":"rgb(0, 0, 0)")}function Ur(a,b){if(!b||b.displayOnBackground)a.g.style.zIndex="";b&&null==b.currentVideo||(a.g.style.transformOrigin="",a.g.style.transition="",a.g.style.transform="");a.B&&(a.B.style.pointerEvents="",!b||b.background)&&(a.B.style.background="");a.G&&(a.G.style.background="")} +function Wr(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,C,E,H,B,D,I,K,J,L,N,O,M,P,R,S,aa,W,Fa,Ga,ya,qa,Ca,Ja,ra;return Q(function(da){switch(da.g){case 1:c=[];if(!b)return da.return(c);d=b.values.find(function(sa){return"X-ASSET-URI"==sa.key});e=b.values.find(function(sa){return"X-ASSET-LIST"==sa.key});if(!d&&!e)return da.return(c);f=null;if(g=b.values.find(function(sa){return"ID"==sa.key}))f=g.data;h=null==f?Math.floor(10*b.startTime)/10:b.startTime;(k=b.endTime)&&Infinity!=b.endTime&&"number"== +typeof b.endTime&&(k=null==f?Math.floor(10*b.endTime)/10:b.endTime);l=b.values.find(function(sa){return"X-RESTRICT"==sa.key});n=m=!0;l&&l.data&&(q=l.data,m=!q.includes("SKIP"),n=!q.includes("JUMP"));r=m?0:null;if(u=b.values.find(function(sa){return"X-ENABLE-SKIP-AFTER"==sa.key}))w=u.data,r=parseFloat(w),isNaN(r)&&(r=m?0:null);v=null;if(y=b.values.find(function(sa){return"X-ENABLE-SKIP-FOR"==sa.key}))z=y.data,v=parseFloat(z),isNaN(r)&&(v=null);A=null;if(C=b.values.find(function(sa){return"X-RESUME-OFFSET"== +sa.key}))E=C.data,A=parseFloat(E),isNaN(A)&&(A=null);H=null;if(B=b.values.find(function(sa){return"X-PLAYOUT-LIMIT"==sa.key}))D=B.data,H=parseFloat(D),isNaN(H)&&(H=null);J=K=I=!1;if(L=b.values.find(function(sa){return"CUE"==sa.key}))N=L.data,I=N.includes("ONCE"),K=N.includes("PRE"),J=N.includes("POST");O=!1;(M=b.values.find(function(sa){return"X-TIMELINE-OCCUPIES"==sa.key}))?(P=M.data,O=P.includes("RANGE")):!C&&a.C.V()&&(O=!K&&!J);if(d){R=d.data;if(!R)return da.return(c);c.push({id:f,groupId:null, +startTime:h,endTime:k,uri:R,mimeType:null,isSkippable:m,skipOffset:r,skipFor:v,canJump:n,resumeOffset:A,playoutLimit:H,once:I,pre:K,post:J,timelineRange:O,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});da.u(2);break}if(!e){da.u(2);break}S=e.data;if(!S)return da.return(c);wa(da,4);aa={type:11};return F(da,Zr(a,S,aa),6);case 6:W=da.h;Fa=ac(W);Ga=JSON.parse(Fa);if(ya=Ga["SKIP-CONTROL"])qa=ya["ENABLE-SKIP-AFTER"],"number"==typeof qa&&(r=parseFloat(qa),isNaN(qa)&&(r=m? +0:null)),Ca=ya["ENABLE-SKIP-FOR"],"number"==typeof Ca&&(v=parseFloat(Ca),isNaN(Ca)&&(v=null));for(Ja=0;Jad.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break}}c&&d&&!a.M.includes(d.adId)&&(a.A=b,a.h.currentTime=c.startTimeInSeconds)}} -function cs(a){if(a.h.duration&&(a.g||a.j.length)){var b=a.h.currentTime,c=!1;if(a.g){c=!0;var d=a.C,e=d.startTimeInSeconds+.5*d.durationInSeconds,f=d.startTimeInSeconds+.75*d.durationInSeconds;b>=d.startTimeInSeconds+.25*d.durationInSeconds&&!a.s.includes("firstQuartile")?(a.s.push("firstQuartile"),es(a,"firstQuartile")):b>=e&&!a.s.includes("midpoint")?(a.s.push("midpoint"),es(a,"midpoint")):b>=f&&!a.s.includes("thirdQuartile")&&(a.s.push("thirdQuartile"),es(a,"thirdQuartile"));d=a.g.getRemainingTime(); -e=a.g.getDuration();a.g.canSkipNow()&&0=d||d>e)&&Xr(a)}if(!a.g||!a.g.isLinear()){a:for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g&&a.g.isLinear())break;for(f=0;fb){if(a.M.includes(g.adId)){if(a.h.ended)continue;a.h.currentTime=h;break a}Xr(a);a.L=e;a.g=new Vr(g,f+1,e.ads.length,!0,a.h);a.C=g;0===f&&es(a,"breakStart");fs(a);break}}}if(!a.g)for(d= -t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g)break;for(f=0;fb&&(a.h.currentTime=a.A),a.A=null)}}} -function Xr(a){if(a.g){for(;a.B.lastChild;)a.B.removeChild(a.B.firstChild);a.I||a.M.push(a.C.adId);var b=a.g.m;(void 0===b?0:b)?es(a,"skip"):es(a,"complete");b=t(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.o.Ja(c.target,c.type,c.listener);a.m=[];a.s=[];b=a.g.getPositionInSequence();c=a.g.getSequenceLength();b===c&&es(a,"breakEnd");a.g=null;a.C=null;a.L=null}} -function fs(a){var b=!1;a.h.paused?b=!0:(es(a,"impression"),es(a,"start"));a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted&&es(a,"mute")}});a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted||es(a,"unmute")}});a.m.push({target:a.h,type:"play",listener:function(){b?(es(a,"impression"),es(a,"start"),b=!1):es(a,"resume")}});a.m.push({target:a.h,type:"pause",listener:function(){es(a,"pause")}});for(var c=t(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.o.D(d.target, +function fs(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z;Q(function(A){if(1==A.g)return d={type:8},e=Mg([b],sg()),f=a.K.request(7,e,d),wa(A,2),F(A,f.promise,4);if(2!=A.g){g=A.h;h=[];k=ac(g.data);l=JSON.parse(k);if(0d.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break}}c&&d&&!a.M.includes(d.adId)&&(a.A=b,a.h.currentTime=c.startTimeInSeconds)}} +function ks(a){if(a.h.duration&&(a.g||a.j.length)){var b=a.h.currentTime,c=!1;if(a.g){c=!0;var d=a.C,e=d.startTimeInSeconds+.5*d.durationInSeconds,f=d.startTimeInSeconds+.75*d.durationInSeconds;b>=d.startTimeInSeconds+.25*d.durationInSeconds&&!a.s.includes("firstQuartile")?(a.s.push("firstQuartile"),ms(a,"firstQuartile")):b>=e&&!a.s.includes("midpoint")?(a.s.push("midpoint"),ms(a,"midpoint")):b>=f&&!a.s.includes("thirdQuartile")&&(a.s.push("thirdQuartile"),ms(a,"thirdQuartile"));d=a.g.getRemainingTime(); +e=a.g.getDuration();a.g.canSkipNow()&&0=d||d>e)&&es(a)}if(!a.g||!a.g.isLinear()){a:for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g&&a.g.isLinear())break;for(f=0;fb){if(a.M.includes(g.adId)){if(a.h.ended)continue;a.h.currentTime=h;break a}es(a);a.L=e;a.g=new cs(g,f+1,e.ads.length,!0,a.h);a.C=g;0===f&&ms(a,"breakStart");ns(a);break}}}if(!a.g)for(d= +t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g)break;for(f=0;fb&&(a.h.currentTime=a.A),a.A=null)}}} +function es(a){if(a.g){for(;a.B.lastChild;)a.B.removeChild(a.B.firstChild);a.I||a.M.push(a.C.adId);var b=a.g.m;(void 0===b?0:b)?ms(a,"skip"):ms(a,"complete");b=t(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.o.Ja(c.target,c.type,c.listener);a.m=[];a.s=[];b=a.g.getPositionInSequence();c=a.g.getSequenceLength();b===c&&ms(a,"breakEnd");a.g=null;a.C=null;a.L=null}} +function ns(a){var b=!1;a.h.paused?b=!0:(ms(a,"impression"),ms(a,"start"));a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted&&ms(a,"mute")}});a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted||ms(a,"unmute")}});a.m.push({target:a.h,type:"play",listener:function(){b?(ms(a,"impression"),ms(a,"start"),b=!1):ms(a,"resume")}});a.m.push({target:a.h,type:"pause",listener:function(){ms(a,"pause")}});for(var c=t(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.o.D(d.target, d.type,d.listener)} -function es(a,b){var c=a.C.trackingEvents.find(function(f){return f.eventType==b});c||(c=a.L.adBreakTrackingEvents.find(function(f){return f.eventType==b}));if(c){var d={type:10};c=t(c.beaconUrls);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&""!=e&&(e=Lg([e],rg()),e.method="POST",a.K.request(7,e,d))}switch(b){case "impression":a.i(new V("ad-impression"));break;case "start":a.i(new V("ad-started",(new Map).set("ad",a.g)));break;case "mute":a.i(new V("ad-muted"));break;case "unmute":a.i(new V("ad-volume-changed"));break; +function ms(a,b){var c=a.C.trackingEvents.find(function(f){return f.eventType==b});c||(c=a.L.adBreakTrackingEvents.find(function(f){return f.eventType==b}));if(c){var d={type:10};c=t(c.beaconUrls);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&""!=e&&(e=Mg([e],sg()),e.method="POST",a.K.request(7,e,d))}switch(b){case "impression":a.i(new V("ad-impression"));break;case "start":a.i(new V("ad-started",(new Map).set("ad",a.g)));break;case "mute":a.i(new V("ad-muted"));break;case "unmute":a.i(new V("ad-volume-changed"));break; case "resume":a.i(new V("ad-resumed"));break;case "pause":a.i(new V("ad-paused"));break;case "firstQuartile":a.i(new V("ad-first-quartile"));break;case "midpoint":a.i(new V("ad-midpoint"));break;case "thirdQuartile":a.i(new V("ad-third-quartile"));break;case "complete":a.i(new V("ad-complete"));a.i(new V("ad-stopped"));break;case "skip":a.i(new V("ad-skipped"));a.i(new V("ad-stopped"));break;case "breakStart":a.B.setAttribute("ad-active","true");break;case "breakEnd":a.B.removeAttribute("ad-active"); -break;case "skipStateChanged":a.i(new V("ad-skip-state-changed"))}};function gs(a,b){this.g=a;this.i=null;this.h=b}p=gs.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!1};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!1};p.getDuration=function(){return this.i?this.i.duration:-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1};p.isPaused=function(){return this.h.paused};p.isSkippable=function(){return this.g.isSkippable()}; +break;case "skipStateChanged":a.i(new V("ad-skip-state-changed"))}};function os(a,b){this.g=a;this.i=null;this.h=b}p=os.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!1};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!1};p.getDuration=function(){return this.i?this.i.duration:-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1};p.isPaused=function(){return this.h.paused};p.isSkippable=function(){return this.g.isSkippable()}; p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};p.skip=function(){this.h.currentTime+=this.getRemainingTime()};p.pause=function(){return this.h.pause()};p.play=function(){return this.h.play()};p.getVolume=function(){return this.h.volume};p.setVolume=function(a){this.h.volume=a};p.isMuted=function(){return this.h.muted};p.isLinear=function(){return!0};p.resize=function(){}; p.setMuted=function(a){this.h.muted=a};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()}; -p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()};p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return null};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.i=this.g=null};T("shaka.ads.ServerSideAd",gs); -gs.prototype.release=gs.prototype.release;gs.prototype.getPodIndex=gs.prototype.getPodIndex;gs.prototype.getTimeOffset=gs.prototype.getTimeOffset;gs.prototype.getMediaUrl=gs.prototype.getMediaUrl;gs.prototype.getAdvertiserName=gs.prototype.getAdvertiserName;gs.prototype.getCreativeAdId=gs.prototype.getCreativeAdId;gs.prototype.getAdId=gs.prototype.getAdId;gs.prototype.getVastAdId=gs.prototype.getVastAdId;gs.prototype.getVastMediaWidth=gs.prototype.getVastMediaWidth; -gs.prototype.getVastMediaHeight=gs.prototype.getVastMediaHeight;gs.prototype.getVastMediaBitrate=gs.prototype.getVastMediaBitrate;gs.prototype.getDescription=gs.prototype.getDescription;gs.prototype.getTitle=gs.prototype.getTitle;gs.prototype.getPositionInSequence=gs.prototype.getPositionInSequence;gs.prototype.getSequenceLength=gs.prototype.getSequenceLength;gs.prototype.setMuted=gs.prototype.setMuted;gs.prototype.resize=gs.prototype.resize;gs.prototype.isLinear=gs.prototype.isLinear; -gs.prototype.isMuted=gs.prototype.isMuted;gs.prototype.setVolume=gs.prototype.setVolume;gs.prototype.getVolume=gs.prototype.getVolume;gs.prototype.play=gs.prototype.play;gs.prototype.pause=gs.prototype.pause;gs.prototype.skip=gs.prototype.skip;gs.prototype.canSkipNow=gs.prototype.canSkipNow;gs.prototype.getTimeUntilSkippable=gs.prototype.getTimeUntilSkippable;gs.prototype.isSkippable=gs.prototype.isSkippable;gs.prototype.isPaused=gs.prototype.isPaused;gs.prototype.getRemainingTime=gs.prototype.getRemainingTime; -gs.prototype.getMinSuggestedDuration=gs.prototype.getMinSuggestedDuration;gs.prototype.getDuration=gs.prototype.getDuration;gs.prototype.isUsingAnotherMediaElement=gs.prototype.isUsingAnotherMediaElement;gs.prototype.hasCustomClick=gs.prototype.hasCustomClick;gs.prototype.isClientRendering=gs.prototype.isClientRendering;gs.prototype.needsSkipUI=gs.prototype.needsSkipUI;function hs(a,b,c,d){var e=this;this.s=a;this.l=b;this.j=null;this.F=NaN;this.i=d;this.G=!1;this.A=this.m=this.o=null;this.B="";this.C=[];this.h=new jb;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.s,a);this.i(new V("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){is(e,f)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.B.length? -e.j.resolve(e.B):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new gs(f,e.l);e.A&&(e.m.i=e.A);e.i(new V("ad-started",(new Map).set("ad",e.m)));e.s.setAttribute("ad-active","true")});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.s.removeAttribute("ad-active"); +p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()};p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return null};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.i=this.g=null};T("shaka.ads.ServerSideAd",os); +os.prototype.release=os.prototype.release;os.prototype.getPodIndex=os.prototype.getPodIndex;os.prototype.getTimeOffset=os.prototype.getTimeOffset;os.prototype.getMediaUrl=os.prototype.getMediaUrl;os.prototype.getAdvertiserName=os.prototype.getAdvertiserName;os.prototype.getCreativeAdId=os.prototype.getCreativeAdId;os.prototype.getAdId=os.prototype.getAdId;os.prototype.getVastAdId=os.prototype.getVastAdId;os.prototype.getVastMediaWidth=os.prototype.getVastMediaWidth; +os.prototype.getVastMediaHeight=os.prototype.getVastMediaHeight;os.prototype.getVastMediaBitrate=os.prototype.getVastMediaBitrate;os.prototype.getDescription=os.prototype.getDescription;os.prototype.getTitle=os.prototype.getTitle;os.prototype.getPositionInSequence=os.prototype.getPositionInSequence;os.prototype.getSequenceLength=os.prototype.getSequenceLength;os.prototype.setMuted=os.prototype.setMuted;os.prototype.resize=os.prototype.resize;os.prototype.isLinear=os.prototype.isLinear; +os.prototype.isMuted=os.prototype.isMuted;os.prototype.setVolume=os.prototype.setVolume;os.prototype.getVolume=os.prototype.getVolume;os.prototype.play=os.prototype.play;os.prototype.pause=os.prototype.pause;os.prototype.skip=os.prototype.skip;os.prototype.canSkipNow=os.prototype.canSkipNow;os.prototype.getTimeUntilSkippable=os.prototype.getTimeUntilSkippable;os.prototype.isSkippable=os.prototype.isSkippable;os.prototype.isPaused=os.prototype.isPaused;os.prototype.getRemainingTime=os.prototype.getRemainingTime; +os.prototype.getMinSuggestedDuration=os.prototype.getMinSuggestedDuration;os.prototype.getDuration=os.prototype.getDuration;os.prototype.isUsingAnotherMediaElement=os.prototype.isUsingAnotherMediaElement;os.prototype.hasCustomClick=os.prototype.hasCustomClick;os.prototype.isClientRendering=os.prototype.isClientRendering;os.prototype.needsSkipUI=os.prototype.needsSkipUI;function ps(a,b,c,d){var e=this;this.s=a;this.l=b;this.j=null;this.F=NaN;this.i=d;this.G=!1;this.A=this.m=this.o=null;this.B="";this.C=[];this.h=new jb;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.s,a);this.i(new V("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){qs(e,f)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.B.length? +e.j.resolve(e.B):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new os(f,e.l);e.A&&(e.m.i=e.A);e.i(new V("ad-started",(new Map).set("ad",e.m)));e.s.setAttribute("ad-active","true")});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.s.removeAttribute("ad-active"); var f=e.l.currentTime;e.o&&e.o>f&&(e.l.currentTime=e.o,e.o=null)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.A=f.getStreamData().adProgressData;e.m&&(e.m.i=e.A)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new V("ad-first-quartile"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new V("ad-midpoint"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new V("ad-third-quartile"))}); this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new V("ad-complete"));e.i(new V("ad-stopped"));e.s.removeAttribute("ad-active");e.m=null});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new V("ad-skipped"));e.i(new V("ad-stopped"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=t(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.C= -f;e.i(new V("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}p=hs.prototype;p.configure=function(){};p.stop=function(){this.B="";this.o=null;this.C=[]};p.release=function(){this.stop();this.h&&this.h.release()};p.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};p.getCuePoints=function(){return this.C}; -function is(a,b){a.i(new V("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.G||a.h.D(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.o=c,a.l.currentTime=d.start)}})};function Z(){Dg.call(this);this.h=this.i=this.j=this.g=null;this.m=new mr;this.o=navigator.language;this.l=null}pa(Z,Dg);p=Z.prototype;p.setLocale=function(a){this.o=a};p.configure=function(a){this.l=a;this.g&&this.g.configure(this.l);this.j&&this.j.configure(this.l);this.h&&this.h.configure(this.l)};p.initInterstitial=function(a,b,c){var d=this;this.g&&this.g.release();this.g=new Ar(a,b,c,function(e){return js(d,e)});this.g.configure(this.l)}; -p.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new U(2,10,1E4);this.j&&this.j.release();this.j=new sr(a,b,this.o,c,function(e){return js(d,e)});this.j.configure(this.l)};p.release=function(){this.g&&(this.g.release(),this.g=null);this.j&&(this.j.release(),this.j=null);this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);Dg.prototype.release.call(this)}; -p.onAssetUnload=function(){this.g&&this.g.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.h&&this.h.stop();this.dispatchEvent(new V("ad-stopped"));this.dispatchEvent(new V("ad-content-attach-requested"));this.m=new mr};p.requestClientSideAds=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.G=Date.now()/1E3;b.m.requestAds(a)}; -p.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.B=a;b.g&&b.g.updateAdsRenderingSettings(b.B)};p.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Wr(a,b,c,function(e){return js(d,e)})};p.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new U(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new U(1,10,10004)):(d.l=new tg,Zr(d,a,b),d.H=c||"",d.P=Date.now()/1E3,a=d.l);return a}; -p.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new U(1,10,10005);var b=this.i;b.G=a;b.i(new V("ads-loaded",(new Map).set("loadTime",0)))};p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new U(2,10,10002);this.h&&this.h.release();this.h=new hs(a,b,this.o,function(d){return js(c,d)});this.h.configure(this.l)}; -p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.h)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&bb('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.15.0";c=this.h;c.j?a=Promise.reject(new U(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&& -(c.G=!0),c.j=new tg,c.g.requestStream(a),c.B=b||"",c.F=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.h)throw new U(1,10,10003);(a.mpt||a.mpv)&&bb('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.mpt="Shaka Player";a.mpv="v4.15.0";this.h.g.replaceAdTagParameters(a)}; -p.getServerSideCuePoints=function(){wb("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};p.getCuePoints=function(){var a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};p.getStats=function(){var a=this.m;return{loadTimes:a.g,averageLoadTime:nr(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i}};p.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)}; -p.onDashTimedMetadata=function(a){this.h&&"urn:google:dai:2018"==a.schemeIdUri&&this.h.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};p.onHlsTimedMetadata=function(a,b){this.h&&this.h.g.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.h)this.h.onCueMetadataChange(a)};p.onHLSInterstitialMetadata=function(a,b,c){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,a,b),this.g&&Nr(this.g,c))}; +f;e.i(new V("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}p=ps.prototype;p.configure=function(){};p.stop=function(){this.B="";this.o=null;this.C=[]};p.release=function(){this.stop();this.h&&this.h.release()};p.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};p.getCuePoints=function(){return this.C}; +function qs(a,b){a.i(new V("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.G||a.h.D(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.o=c,a.l.currentTime=d.start)}})};function Z(){Eg.call(this);this.h=this.i=this.j=this.g=null;this.m=new ur;this.o=navigator.language;this.l=null}pa(Z,Eg);p=Z.prototype;p.setLocale=function(a){this.o=a};p.configure=function(a){this.l=a;this.g&&this.g.configure(this.l);this.j&&this.j.configure(this.l);this.h&&this.h.configure(this.l)};p.initInterstitial=function(a,b,c){var d=this;this.g&&this.g.release();this.g=new Ir(a,b,c,function(e){return rs(d,e)});this.g.configure(this.l)}; +p.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new U(2,10,1E4);this.j&&this.j.release();this.j=new Ar(a,b,this.o,c,function(e){return rs(d,e)});this.j.configure(this.l)};p.release=function(){this.g&&(this.g.release(),this.g=null);this.j&&(this.j.release(),this.j=null);this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);Eg.prototype.release.call(this)}; +p.onAssetUnload=function(){this.g&&this.g.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.h&&this.h.stop();this.dispatchEvent(new V("ad-stopped"));this.dispatchEvent(new V("ad-content-attach-requested"));this.m=new ur};p.requestClientSideAds=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.G=Date.now()/1E3;b.m.requestAds(a)}; +p.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.B=a;b.g&&b.g.updateAdsRenderingSettings(b.B)};p.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new ds(a,b,c,function(e){return rs(d,e)})};p.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new U(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new U(1,10,10004)):(d.l=new ug,gs(d,a,b),d.H=c||"",d.P=Date.now()/1E3,a=d.l);return a}; +p.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new U(1,10,10005);var b=this.i;b.G=a;b.i(new V("ads-loaded",(new Map).set("loadTime",0)))};p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new U(2,10,10002);this.h&&this.h.release();this.h=new ps(a,b,this.o,function(d){return rs(c,d)});this.h.configure(this.l)}; +p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.h)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&bb('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.15.4";c=this.h;c.j?a=Promise.reject(new U(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&& +(c.G=!0),c.j=new ug,c.g.requestStream(a),c.B=b||"",c.F=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.h)throw new U(1,10,10003);(a.mpt||a.mpv)&&bb('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.mpt="Shaka Player";a.mpv="v4.15.4";this.h.g.replaceAdTagParameters(a)}; +p.getServerSideCuePoints=function(){wb("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};p.getCuePoints=function(){var a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};p.getStats=function(){var a=this.m;return{loadTimes:a.g,averageLoadTime:vr(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i}};p.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)}; +p.onDashTimedMetadata=function(a){this.h&&"urn:google:dai:2018"==a.schemeIdUri&&this.h.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};p.onHlsTimedMetadata=function(a,b){this.h&&this.h.g.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.h)this.h.onCueMetadataChange(a)};p.onHLSInterstitialMetadata=function(a,b,c){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,a,b),this.g&&Vr(this.g,c))}; p.onDASHInterstitialMetadata=function(a,b,c){if(!this.l||!this.l.disableDASHInterstitial){var d=c.schemeIdUri;if("urn:mpeg:dash:event:alternativeMPD:insert:2025"==d||"urn:mpeg:dash:event:alternativeMPD:replace:2025"==d){if(this.g||this.initInterstitial(null,a,b),this.g&&(a=this.g,b="urn:mpeg:dash:event:alternativeMPD:replace:2025"==c.schemeIdUri,d="urn:mpeg:dash:event:alternativeMPD:insert:2025"==c.schemeIdUri,b||d)){for(var e=c.startTime,f=c.endTime,g=null,h=0,k,l=t(c.eventNode.children),m=l.next();!m.done;m= -l.next())if(m=m.value,"AlternativeMPD"==m.tagName){if(m=m.attributes.uri){k=m;break}}else if("InsertPresentation"==m.tagName||"ReplacePresentation"==m.tagName){var n=m.attributes.url;if(n){k=n;(l=xd(m,"maxDuration",Dd))&&(g=l/c.timescale);(l=xd(m,"returnOffset",Dd))&&(h=l/c.timescale);b&&h&&(f=e+h);break}}k&&Pr(a,[{id:c.id,groupId:null,startTime:e,endTime:f,uri:k,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:d?h:null,playoutLimit:g,once:!1,pre:!1,post:!1,timelineRange:b&& -!d,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}])}}else("urn:mpeg:dash:event:2012"==d||"urn:scte:dash:scte214-events"==d)&&c.eventNode&&ud(c.eventNode,"OverlayEvent")&&(this.g||this.initInterstitial(null,a,b),this.g&&Qr(this.g,c))}};p.addCustomInterstitial=function(a){if(!this.g)throw new U(1,10,10006);Pr(this.g,[a])};p.addAdUrlInterstitial=function(a){if(!this.g)throw new U(1,10,10006);return this.g.addAdUrlInterstitial(a)}; -p.getInterstitialPlayer=function(){if(!this.g)throw new U(1,10,10006);return this.g.kd()};function js(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.m.g.push(b.loadTime);break;case "ad-started":a.m.h++;var c=b.ad;c&&!c.isLinear()&&a.m.j++;break;case "ad-complete":a.m.l++;break;case "ad-skipped":a.m.m++;break;case "ad-error":a.m.i++}a.dispatchEvent(b)}T("shaka.ads.AdManager",Z);Z.prototype.getInterstitialPlayer=Z.prototype.getInterstitialPlayer;Z.prototype.addAdUrlInterstitial=Z.prototype.addAdUrlInterstitial; +l.next())if(m=m.value,"AlternativeMPD"==m.tagName){if(m=m.attributes.uri){k=m;break}}else if("InsertPresentation"==m.tagName||"ReplacePresentation"==m.tagName){var n=m.attributes.url;if(n){k=n;(l=yd(m,"maxDuration",Ed))&&(g=l/c.timescale);(l=yd(m,"returnOffset",Ed))&&(h=l/c.timescale);b&&h&&(f=e+h);break}}k&&Xr(a,[{id:c.id,groupId:null,startTime:e,endTime:f,uri:k,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:d?h:null,playoutLimit:g,once:!1,pre:!1,post:!1,timelineRange:b&& +!d,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}])}}else("urn:mpeg:dash:event:2012"==d||"urn:scte:dash:scte214-events"==d)&&c.eventNode&&vd(c.eventNode,"OverlayEvent")&&(this.g||this.initInterstitial(null,a,b),this.g&&Yr(this.g,c))}};p.addCustomInterstitial=function(a){if(!this.g)throw new U(1,10,10006);Xr(this.g,[a])};p.addAdUrlInterstitial=function(a){if(!this.g)throw new U(1,10,10006);return this.g.addAdUrlInterstitial(a)}; +p.getInterstitialPlayer=function(){if(!this.g)throw new U(1,10,10006);return this.g.ld()};function rs(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.m.g.push(b.loadTime);break;case "ad-started":a.m.h++;var c=b.ad;c&&!c.isLinear()&&a.m.j++;break;case "ad-complete":a.m.l++;break;case "ad-skipped":a.m.m++;break;case "ad-error":a.m.i++}a.dispatchEvent(b)}T("shaka.ads.AdManager",Z);Z.prototype.getInterstitialPlayer=Z.prototype.getInterstitialPlayer;Z.prototype.addAdUrlInterstitial=Z.prototype.addAdUrlInterstitial; Z.prototype.addCustomInterstitial=Z.prototype.addCustomInterstitial;Z.prototype.onDASHInterstitialMetadata=Z.prototype.onDASHInterstitialMetadata;Z.prototype.onHLSInterstitialMetadata=Z.prototype.onHLSInterstitialMetadata;Z.prototype.onCueMetadataChange=Z.prototype.onCueMetadataChange;Z.prototype.onHlsTimedMetadata=Z.prototype.onHlsTimedMetadata;Z.prototype.onDashTimedMetadata=Z.prototype.onDashTimedMetadata;Z.prototype.onManifestUpdated=Z.prototype.onManifestUpdated;Z.prototype.getStats=Z.prototype.getStats; Z.prototype.getCuePoints=Z.prototype.getCuePoints;Z.prototype.getServerSideCuePoints=Z.prototype.getServerSideCuePoints;Z.prototype.replaceServerSideAdTagParameters=Z.prototype.replaceServerSideAdTagParameters;Z.prototype.requestServerSideStream=Z.prototype.requestServerSideStream;Z.prototype.initServerSide=Z.prototype.initServerSide;Z.prototype.addMediaTailorTrackingUrl=Z.prototype.addMediaTailorTrackingUrl;Z.prototype.requestMediaTailorStream=Z.prototype.requestMediaTailorStream; Z.prototype.initMediaTailor=Z.prototype.initMediaTailor;Z.prototype.updateClientSideAdsRenderingSettings=Z.prototype.updateClientSideAdsRenderingSettings;Z.prototype.requestClientSideAds=Z.prototype.requestClientSideAds;Z.prototype.onAssetUnload=Z.prototype.onAssetUnload;Z.prototype.release=Z.prototype.release;Z.prototype.initClientSide=Z.prototype.initClientSide;Z.prototype.initInterstitial=Z.prototype.initInterstitial;Z.prototype.configure=Z.prototype.configure;Z.prototype.setLocale=Z.prototype.setLocale; Z.ADS_LOADED="ads-loaded";Z.AD_STARTED="ad-started";Z.AD_FIRST_QUARTILE="ad-first-quartile";Z.AD_MIDPOINT="ad-midpoint";Z.AD_THIRD_QUARTILE="ad-third-quartile";Z.AD_COMPLETE="ad-complete";Z.AD_STOPPED="ad-stopped";Z.AD_SKIPPED="ad-skipped";Z.AD_VOLUME_CHANGED="ad-volume-changed";Z.AD_MUTED="ad-muted";Z.AD_PAUSED="ad-paused";Z.AD_RESUMED="ad-resumed";Z.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Z.CUEPOINTS_CHANGED="ad-cue-points-changed";Z.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded"; Z.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Z.AD_CLICKED="ad-clicked";Z.AD_PROGRESS="ad-progress";Z.AD_BUFFERING="ad-buffering";Z.AD_IMPRESSION="ad-impression";Z.AD_DURATION_CHANGED="ad-duration-changed";Z.AD_CLOSED="ad-closed";Z.AD_LOADED="ad-loaded";Z.ALL_ADS_COMPLETED="all-ads-completed";Z.AD_LINEAR_CHANGED="ad-linear-changed";Z.AD_METADATA="ad-metadata";Z.AD_RECOVERABLE_ERROR="ad-recoverable-error";Z.AD_ERROR="ad-error";Z.AD_BREAK_READY="ad-break-ready";Z.AD_INTERACTION="ad-interaction"; -Z.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Z.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Z.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";Mp=function(){return new Z};function ks(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof V){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);d=t(Object.getOwnPropertyNames(c));for(b=d.next();!b.done;b=d.next())e.add(b.value);d={};e=t(e);for(b=e.next();!b.done;b=e.next())b=b.value,d[b]=c[b];c={__type__:"Error",contents:d}}else if(c instanceof -TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=t(yj(c));for(d=c.next();!d.done;d=c.next())d=d.value,b=d.end,e.start.push(d.start),e.end.push(b);c=e}else c=ArrayBuffer.isView(c)&&1===c.BYTES_PER_ELEMENT?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return c}})} -function ls(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=ms(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c;return d})} -function ms(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}} -var ns="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),os="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),ps=["loop","playbackRate"],qs=["pause","play"],rs=(new Map).set("getAssetUri",2).set("getAudioLanguages",4).set("getAudioLanguagesAndRoles",4).set("getBufferFullness",1).set("getBufferedInfo",2).set("getExpiration",2).set("getKeyStatuses",2).set("getPlaybackRate",2).set("getTextLanguages", -4).set("getTextLanguagesAndRoles",4).set("isAudioOnly",10).set("isBuffering",1).set("isInProgress",1).set("isLive",10).set("isTextTrackVisible",1).set("isVideoOnly",10).set("keySystem",10).set("seekRange",1).set("getLoadMode",10).set("getManifestType",10).set("isFullyLoaded",1).set("isEnded",1),ss=(new Map).set("getConfiguration",4).set("getConfigurationForLowLatency",4).set("getStats",5).set("getAudioTracks",2).set("getChaptersTracks",2).set("getImageTracks",2).set("getVideoTracks",2).set("getTextTracks", -2).set("getVariantTracks",2),ts=(new Map).set("getPlayheadTimeAsDate",1).set("getPresentationStartTimeAsDate",20).set("getSegmentAvailabilityDuration",20),us=[["getConfiguration","configure","getConfigurationForLowLatency","configurationForLowLatency"]],vs=[["isTextTrackVisible","setTextTrackVisibility"]],ws="cancelTrickPlay configure configurationForLowLatency getChapters resetConfiguration retryStreaming selectAudioLanguage selectAudioTrack selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel selectVideoTrack setTextTrackVisibility trickPlay updateStartTime goToLive useTrickPlayTrackIfAvailable".split(" "), -xs="addChaptersTrack addTextTrackAsync addThumbnailsTrack getAllThumbnails getChaptersAsync getThumbnails attach attachCanvas detach load unload".split(" ");function ys(a,b,c,d,e,f,g){var h=this;this.G=a;this.K=g;this.l=new $e(b);this.L=c;this.s=!1;this.A=d;this.F=e;this.M=f;this.i=this.m=!1;this.I="";this.o=null;this.B=function(){return zs(h)};this.C=function(k,l){k=ls(l);switch(k.type){case "event":var m=k.targetName,n=Bg(k.event);h.A(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var q in m[n])k[q]=m[n][q]}h.s&&(h.L(),h.s=!1);break;case "asyncComplete":if(q=k.id,n=k.error,l=k.res,k=h.h.get(q),h.h.delete(q),k)if(n){q=new U(n.severity, -n.category,n.code);for(m in n)q[m]=n[m];k.reject(q)}else k.resolve(l)}};this.g={video:{},player:{}};this.H=0;this.h=new Map;this.j=null;As.add(this)}p=ys.prototype;p.destroy=function(){As.delete(this);Bs(this);Cs&&Ds(this);this.l&&(this.l.stop(),this.l=null);this.F=this.A=null;this.i=this.m=!1;this.C=this.B=this.j=this.h=this.g=this.o=null;return Promise.resolve()};p.ub=function(){return this.i};p.Tg=function(){return this.I}; -p.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Hb();var a=new chrome.cast.SessionRequest(this.G,[],null,this.K,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(As),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new tg;d.s=!0;Es(d,e)}},function(b){for(var c=t(As),d=c.next();!d.done;d=c.next())d=d.value,Fs="available"==b,d.l.Hb()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Fs&&this.l.ha(Gs);(a=Cs)&& -a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new tg,this.s=!0,Es(this,a)):Cs=null}else window.__onGCastApiAvailable!==Hs&&(Is=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Hs)};p.eh=function(a){this.o=a;this.i&&Js(this,{type:"appData",appData:this.o})}; -p.cast=function(){var a=this;return Q(function(b){if(!a.m)throw new U(1,8,8E3);if(!Fs)throw new U(1,8,8001);if(a.i)throw new U(1,8,8002);a.j=new tg;chrome.cast.requestSession(function(c){return Es(a,c)},function(c){return Ks(a,c)});return F(b,a.j,0)})};function Ls(a){a.i&&chrome.cast.requestSession(function(b){return Es(a,b)},function(b){return Ks(a,b)})}p.hd=function(){if(this.i){Bs(this);if(Cs){Ds(this);try{Cs.stop(function(){},function(){})}catch(a){}Cs=null}zs(this)}}; -p.get=function(a,b){var c=this;if("video"==a){if(qs.includes(b))return function(){return c.ui.apply(c,[a,b].concat(x(Oa.apply(0,arguments))))}}else if("player"==a){if(ts.has(b)&&!this.get("player","isLive")())return function(){};if(ws.includes(b))return function(){return c.ui.apply(c,[a,b].concat(x(Oa.apply(0,arguments))))};if(xs.includes(b))return function(){return c.Ek.apply(c,[a,b].concat(x(Oa.apply(0,arguments))))};if(rs.has(b)||ss.has(b))return function(){return c.g[a][b]}}return this.g[a][b]}; -p.set=function(a,b,c){this.g[a][b]=c;Js(this,{type:"set",targetName:a,property:b,value:c})};function Es(a,b){var c=a.M();Cs=b;b.addUpdateListener(a.B);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.C);zs(a);Js(a,{type:"init",initState:c,appData:a.o});a.j.resolve()}function Ks(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new U(2,8,c,b))} -p.ui=function(a,b){Js(this,{type:"call",targetName:a,methodName:b,args:Oa.apply(2,arguments)})};p.Ek=function(a,b){var c=Oa.apply(2,arguments),d=new tg,e=this.H.toString();this.H++;this.h.set(e,d);try{Js(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Ds(a){var b=Cs;b.removeUpdateListener(a.B);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.C)} -function zs(a){var b=Cs?"connected"==Cs.status:!1;if(a.i&&!b){a.F();for(var c in a.g)a.g[c]={};Bs(a)}a.i=b;a.I=b?Cs.receiver.friendlyName:"";a.l.Hb()}function Bs(a){if(a.h)for(var b=t(a.h.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.h.get(c);a.h.delete(c);d.reject(new U(1,7,7E3))}} -function Js(a,b){b=ks(b);var c=Cs;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},eb)}catch(d){throw b=new U(2,8,8005,d),c=new V("error",(new Map).set("detail",b)),a.A("player",c),a.hd(),b;}}var Gs=.02,Fs=!1,Cs=null,Is=null,As=new Set;function Hs(a){Is?window.__onGCastApiAvailable=Is:delete window.__onGCastApiAvailable;Is=null;if(a)for(var b=t(As),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function Ms(a,b,c,d){d=void 0===d?!1:d;Dg.call(this);var e=this;this.i=a;this.h=b;this.l=this.o=this.m=this.s=this.j=null;this.H=c;this.G=d;this.C=[];this.B=[];this.A=[];this.F=new Map;this.g=null;window.chrome?(this.g=new ys(c,function(){return Ns(e)},function(){return Os(e)},function(f,g){return Ps(e,f,g)},function(){return Qs(e)},function(){return Rs(e)},d),Ss(this)):(this.j=this.i,this.s=this.h)}pa(Ms,Dg);p=Ms.prototype; -p.destroy=function(a){this.g&&(void 0===a?0:a)&&this.g.hd();this.l&&(this.l.release(),this.l=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.s=this.j=this.i=null;Dg.prototype.release.call(this);return Promise.all(a)};p.Uj=function(){return this.j};p.kd=function(){return this.s};p.ej=function(){return this.g?this.g.m&&Fs:!1};p.ub=function(){return this.g?this.g.ub():!1};p.Tg=function(){return this.g?this.g.Tg():""}; -p.cast=function(){var a=this;return Q(function(b){return 1==b.g?a.g?F(b,a.g.cast(),2):b.return():a.h?F(b,a.h.rc(),0):b.return()})};p.eh=function(a){this.g&&this.g.eh(a)};p.Tk=function(){this.g&&Ls(this.g)};p.hd=function(){this.g&&this.g.hd()}; -p.fj=function(a,b){b=void 0===b?!1:b;var c=this;return Q(function(d){if(1==d.g){if(a==c.H&&b==c.G)return d.return();c.H=a;c.G=b;if(!c.g)return d.return();c.g.hd();return F(d,c.g.destroy(),2)}c.g=null;c.g=new ys(a,function(){return Ns(c)},function(){return Os(c)},function(e,f){return Ps(c,e,f)},function(){return Qs(c)},function(){return Rs(c)},b);c.g.init();G(d)})}; -function Ss(a){a.g.init();a.l=new jb;for(var b=t(ns),c=b.next();!c.done;c=b.next())a.l.D(a.i,c.value,function(f){a.g.ub()||(f=Bg(f),a.m.dispatchEvent(f))});for(var d in Cg)a.l.D(a.h,Cg[d],function(f){a.g.ub()||a.o.dispatchEvent(f)});a.j={};b={};for(var e in a.i)b={Ud:b.Ud},b.Ud=e,Object.defineProperty(a.j,b.Ud,{configurable:!1,enumerable:!0,get:function(f){return function(){return Ts(a,f.Ud)}}(b),set:function(f){return function(g){var h=f.Ud;a.g.ub()?a.g.set("video",h,g):a.i[h]=g}}(b)});a.s={};Us(a, -function(f){Object.defineProperty(a.s,f,{configurable:!1,enumerable:!0,get:function(){return Vs(a,f)}})});Ws(a);a.m=new Dg;a.m.xe=a.j;a.o=new Dg;a.o.xe=a.s;a.l.D(a.h,"unloading",function(){a.g&&a.g.ub()||Xs(a)})}function Ws(a){var b=new Map;Us(a,function(c,d){b.has(d)?(d=b.get(d),c.length=e)return null;for(var f=-1,g=-1,h=0;hc||127c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;eb;b++)a.i.push(Ot())}function Ot(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Pt(a,b){Qt(a)&&(a.i[a.h][a.g]=new ut(b,a.C,a.A,a.s,a.B),a.g++)}function Qt(a){var b=a.gc;c++,b++)a.i[b]=a.i[c];for(c=0;1>c;c++,b++)a.i[b]=Ot()} -function St(a,b,c){var d=new Qd(a.j,b,"");d.textAlign=0===a.F?"left":1===a.F?"right":Sd;var e=d.region;a.I&&(e.id+="svc"+a.I);e.id+="win"+a.M;e.height=a.o;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.H;e.viewportAnchorY=a.L;e.viewportAnchorUnits=a.K?Rc:2;switch(a.G){case 0:e.regionAnchorX=0;e.regionAnchorY=0;break;case 1:e.regionAnchorX=50;e.regionAnchorY=0;break;case 2:e.regionAnchorX=100;e.regionAnchorY=0;break;case 3:e.regionAnchorX=0;e.regionAnchorY=50;break;case 4:e.regionAnchorX= -50;e.regionAnchorY=50;break;case 5:e.regionAnchorX=100;e.regionAnchorY=50;break;case 6:e.regionAnchorX=0;e.regionAnchorY=100;break;case 7:e.regionAnchorX=50;e.regionAnchorY=100;break;case 8:e.regionAnchorX=100,e.regionAnchorY=100}if(c=rt(d,"svc"+c,a.i,a.j,b))a.j=b;return c}Mt.prototype.display=function(){this.l=!0};function Tt(){this.i=[];this.h=null;this.g=0}function Ut(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0this.h.length)throw new U(2,2,3E3);this.g+=a}; -Vt.prototype.Bi=function(a){if(0>this.g-a)throw new U(2,2,3E3);this.g-=a};function Xt(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null} -function Yt(a,b,c,d){if(!a.g)return[];if(24==c)return c=Wt(b).value,d=Wt(b).value,c=function(f){return f.map(function(g){return("0"+(g&255).toString(16)).slice(-2)}).join("")}([c,d]),Pt(a.g,String.fromCharCode(parseInt(c,16))),[];b=a.g;var e=null;switch(c){case 8:!Qt(b)||0>=b.g&&0>=b.h||(0>=b.g?(b.g=b.m-1,b.h--):b.g--,b.i[b.h][b.g]=null);break;case 13:b.isVisible()&&(e=St(b,d,a.i));b.h+1>=b.o?Rt(b):b.h++;b.g=0;break;case 14:b.isVisible()&&(e=St(b,d,a.i));b.i[b.h]=Ot();b.g=0;break;case 12:b.isVisible()&& -(e=St(b,d,a.i)),Nt(b),b.h=0,b.g=0}return e?[e]:[]} -function Zt(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=Wt(b).value;b=[];c=t($t(a,c));for(var e=c.next();!e.done;e=c.next()){e=a.h[e.value];if(e.isVisible()){var f=St(e,d,a.i);f&&b.push(f)}Nt(e)}return b}if(137===c)for(b=Wt(b).value,b=t($t(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.display();else{if(138===c){c=Wt(b).value;b=null;c=t($t(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=St(e,d,a.i)),e.l=!1;return b? -[b]:[]}if(139===c){c=Wt(b).value;b=null;c=t($t(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=St(e,d,a.i):e.j=d,e.l=!e.l;return b?[b]:[]}if(140===c)return b=Wt(b).value,au(a,b,d);if(143===c)return d=au(a,255,d),bu(a),d;if(144===c)b.skip(1),d=Wt(b).value,a.g&&(a.g.A=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=Wt(b).value,c=Wt(b).value,b.skip(1),a.g&&(b=cu((c&48)>>4,(c&12)>>2,c&3),a.g.B=cu((d&48)>>4,(d&12)>>2,d&3),a.g.s=b);else if(146===c)d=Wt(b).value,b=Wt(b).value,a.g&&(a= -a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),b.skip(1),d=Wt(b).value,b.skip(1),a.g&&(a.g.F=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];e||(f=new Mt(c,a.i),f.j=d,a.h[c]=f);d=Wt(b).value;f=Wt(b).value;var g=Wt(b).value,h=Wt(b).value,k=Wt(b).value;b=Wt(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.A=!1,b.B="white",b.s="black");b=a.h[c];b.l=0<(d&32);b.L=f&127;b.H=g;b.G=(h&240)>>4;b.K=0<(f&128);b.o=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return[]} -function $t(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}function au(a,b,c){var d=[];b=t($t(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(f=St(f,c,a.i))&&d.push(f);a.h[e]=null}return d}function bu(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function cu(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return du[a<<2|b<<1|c]} -var eu=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),du="black blue green cyan red magenta yellow white".split(" ");function fu(){this.h=[];this.g=[];this.i=new Tt;this.l=0;this.m=new Map([["CC1",new Gt(0,0)],["CC2",new Gt(0,1)],["CC3",new Gt(1,0)],["CC4",new Gt(1,1)]]);this.s=this.o=0;this.j=new Map;this.B=!0;this.A=new Set;gu(this)}fu.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;gu(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())bu(b.value)}; -function gu(a){a.o=0;a.s=0;for(var b=t(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=0,c.g=c.j,c.m=null,wt(c.i),wt(c.j),wt(c.o);a.B=!0} -fu.prototype.extract=function(a,b){if(this.B){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.B=!1}a=new Zg(a,0);if(!(8>a.getLength())&&181===a.X()&&49===a.Aa()&&1195456820===a.T()&&3===a.X()&&(c=a.X(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d>2,g=a.X(),h=a.X();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Ab:g,dc:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}}; -fu.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=t(this.h),d=c.next();!d.done;d=c.next())(d=hu(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())Ut(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=iu(this,d.value),b.push.apply(b,x(d));this.i.i=[];this.h=[];this.g=[];return b}; -function hu(a,b){var c=b.type;if(16===(b.Ab&112)){var d=b.Ab>>3&1;0===c?a.o=d:a.s=d}d="CC"+((c<<1|(c?a.s:a.o))+1);c=a.m.get(d);if(255===b.Ab&&255===b.dc||!b.Ab&&!b.dc||!ju(b.Ab)||!ju(b.dc))return 45<=++a.l&&gu(a),null;a.l=0;b.Ab&=127;b.dc&=127;var e=b.Ab;if(1<=e&&15>=e||!b.Ab&&!b.dc)return null;e=null;if(16===(b.Ab&112))a:{a.A.add(d),d=b.Ab;a=b.dc;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];d="white";e=!1;var f= -null;var g=95=g?d=Lt[Math.floor(g/2)]:15>=g?e=!0:f=Math.floor((g-16)/2);a=1===(a&1);4!==c.h&&(g=c.g,3===c.h&&b!==g.g&&(c=1+b-g.h,Ft(g,c,1+g.g-g.h,g.h),zt(g,0,c-1),zt(g,b+1,15-b)),g.g=b,g.m=a,g.j=e,g.l=d,g.s=f,g.o="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",At(c.g,0,32),d=!1,b=Lt[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Kt[(a& -14)>>1]),c.g.o=b;else if(17===(d&247)&&48===(a&240))At(c.g,1,a);else if(18===(d&246)&&32===(a&224))At(c.g,d&1?3:2,a);else{if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.dc){case 32:It(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Ht(c,2,a);break;case 38:d=Ht(c,3,a);break;case 39:d=Ht(c,4,a);break;case 40:At(c.g,0,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:wt(c.o);Jt(c);break;case 43:Jt(c);break;case 44:b=c.i;d=null;4!==c.h&&(d=xt(b,c.l,a));zt(b,0,15);break;case 45:b= -c.g;3!==c.h?d=null:(d=xt(b,c.l,a),e=b.g-b.h+1,Ft(b,e-1,e,b.h),zt(b,0,e-1),zt(b,b.g,15-b.g),c.l=a);break;case 46:zt(c.j,0,15);break;case 47:b=null,4!==c.h&&(b=xt(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,It(c),c.l=a,d=b}e=d;break a}(23==d||31==d)&&33<=a&&35>=a&&(c.g.A=a-32)}e=null}else a=b.dc,At(c.g,0,b.Ab),At(c.g,0,a);return e} -function iu(a,b){var c=[];try{for(;b.Fa();){var d=Wt(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Wt(b).value&63);if(0!=e){a.A.add("svc"+e);a.j.has(e)||a.j.set(e,new Xt(e));for(var g=a.j.get(e),h=b.Ma();b.Ma()-h=m)var r=Yt(e,k,m,n);else if(128<=m&&159>=m)r=Zt(e,k,m,n);else{if(4096<=m&&4127>=m)e=k,k=m&255,8<=k&&15>=k?e.skip(1):16<=k&&23>=k?e.skip(2):24<=k&&31>=k&&e.skip(3);else if(4224<=m&&4255>=m)e=k,k=m& -255,128<=k&&135>=k?e.skip(4):136<=k&&143>=k&&e.skip(5);else if(32<=m&&127>=m)k=m,e.g&&(127===k?Pt(e.g,"\u266a"):Pt(e.g,String.fromCharCode(k)));else if(160<=m&&255>=m)e.g&&Pt(e.g,String.fromCharCode(m));else if(4128<=m&&4223>=m){if(k=m&255,e.g)if(eu.has(k)){var u=eu.get(k);Pt(e.g,u)}else Pt(e.g,"_")}else 4256<=m&&4351>=m&&e.g&&(160!=(m&255)?Pt(e.g,"_"):Pt(e.g,"[CC]"));r=[]}c.push.apply(c,x(r))}}}}catch(w){if(w instanceof U&&3E3===w.code)cb("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data."); -else throw w;}return c}function ju(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}fu.prototype.getStreams=function(){return Array.from(this.A)};T("shaka.cea.CeaDecoder",fu);Nc=function(){return new fu};function ku(a){for(var b=[],c=a,d=a=0;dc?"-Infinity":"Infinity":c;return c}})} +function ts(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=us(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c;return d})} +function us(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}} +var vs="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),ws="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),xs=["loop","playbackRate"],ys=["pause","play"],zs=(new Map).set("getAssetUri",2).set("getAudioLanguages",4).set("getAudioLanguagesAndRoles",4).set("getBufferFullness",1).set("getBufferedInfo",2).set("getExpiration",2).set("getKeyStatuses",2).set("getPlaybackRate",2).set("getTextLanguages", +4).set("getTextLanguagesAndRoles",4).set("isAudioOnly",10).set("isBuffering",1).set("isInProgress",1).set("isLive",10).set("isTextTrackVisible",1).set("isVideoOnly",10).set("keySystem",10).set("seekRange",1).set("getLoadMode",10).set("getManifestType",10).set("isFullyLoaded",1).set("isEnded",1),As=(new Map).set("getConfiguration",4).set("getConfigurationForLowLatency",4).set("getStats",5).set("getAudioTracks",2).set("getChaptersTracks",2).set("getImageTracks",2).set("getVideoTracks",2).set("getTextTracks", +2).set("getVariantTracks",2),Bs=(new Map).set("getPlayheadTimeAsDate",1).set("getPresentationStartTimeAsDate",20).set("getSegmentAvailabilityDuration",20),Cs=[["getConfiguration","configure","getConfigurationForLowLatency","configurationForLowLatency"]],Ds=[["isTextTrackVisible","setTextTrackVisibility"]],Es="cancelTrickPlay configure configurationForLowLatency getChapters resetConfiguration retryStreaming selectAudioLanguage selectAudioTrack selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel selectVideoTrack setTextTrackVisibility trickPlay updateStartTime goToLive useTrickPlayTrackIfAvailable".split(" "), +Fs="addChaptersTrack addTextTrackAsync addThumbnailsTrack getAllThumbnails getChaptersAsync getThumbnails attach attachCanvas detach load unload".split(" ");function Gs(a,b,c,d,e,f,g){var h=this;this.G=a;this.K=g;this.l=new af(b);this.L=c;this.s=!1;this.A=d;this.F=e;this.M=f;this.i=this.m=!1;this.I="";this.o=null;this.B=function(){return Hs(h)};this.C=function(k,l){k=ts(l);switch(k.type){case "event":var m=k.targetName,n=Cg(k.event);h.A(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var q in m[n])k[q]=m[n][q]}h.s&&(h.L(),h.s=!1);break;case "asyncComplete":if(q=k.id,n=k.error,l=k.res,k=h.h.get(q),h.h.delete(q),k)if(n){q=new U(n.severity, +n.category,n.code);for(m in n)q[m]=n[m];k.reject(q)}else k.resolve(l)}};this.g={video:{},player:{}};this.H=0;this.h=new Map;this.j=null;Is.add(this)}p=Gs.prototype;p.destroy=function(){Is.delete(this);Js(this);Ks&&Ls(this);this.l&&(this.l.stop(),this.l=null);this.F=this.A=null;this.i=this.m=!1;this.C=this.B=this.j=this.h=this.g=this.o=null;return Promise.resolve()};p.ub=function(){return this.i};p.Ug=function(){return this.I}; +p.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Hb();var a=new chrome.cast.SessionRequest(this.G,[],null,this.K,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Is),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new ug;d.s=!0;Ms(d,e)}},function(b){for(var c=t(Is),d=c.next();!d.done;d=c.next())d=d.value,Ns="available"==b,d.l.Hb()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Ns&&this.l.ha(Os);(a=Ks)&& +a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new ug,this.s=!0,Ms(this,a)):Ks=null}else window.__onGCastApiAvailable!==Ps&&(Qs=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Ps)};p.fh=function(a){this.o=a;this.i&&Rs(this,{type:"appData",appData:this.o})}; +p.cast=function(){var a=this;return Q(function(b){if(!a.m)throw new U(1,8,8E3);if(!Ns)throw new U(1,8,8001);if(a.i)throw new U(1,8,8002);a.j=new ug;chrome.cast.requestSession(function(c){return Ms(a,c)},function(c){return Ss(a,c)});return F(b,a.j,0)})};function Ts(a){a.i&&chrome.cast.requestSession(function(b){return Ms(a,b)},function(b){return Ss(a,b)})}p.jd=function(){if(this.i){Js(this);if(Ks){Ls(this);try{Ks.stop(function(){},function(){})}catch(a){}Ks=null}Hs(this)}}; +p.get=function(a,b){var c=this;if("video"==a){if(ys.includes(b))return function(){return c.wi.apply(c,[a,b].concat(x(Oa.apply(0,arguments))))}}else if("player"==a){if(Bs.has(b)&&!this.get("player","isLive")())return function(){};if(Es.includes(b))return function(){return c.wi.apply(c,[a,b].concat(x(Oa.apply(0,arguments))))};if(Fs.includes(b))return function(){return c.Fk.apply(c,[a,b].concat(x(Oa.apply(0,arguments))))};if(zs.has(b)||As.has(b))return function(){return c.g[a][b]}}return this.g[a][b]}; +p.set=function(a,b,c){this.g[a][b]=c;Rs(this,{type:"set",targetName:a,property:b,value:c})};function Ms(a,b){var c=a.M();Ks=b;b.addUpdateListener(a.B);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.C);Hs(a);Rs(a,{type:"init",initState:c,appData:a.o});a.j.resolve()}function Ss(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new U(2,8,c,b))} +p.wi=function(a,b){Rs(this,{type:"call",targetName:a,methodName:b,args:Oa.apply(2,arguments)})};p.Fk=function(a,b){var c=Oa.apply(2,arguments),d=new ug,e=this.H.toString();this.H++;this.h.set(e,d);try{Rs(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Ls(a){var b=Ks;b.removeUpdateListener(a.B);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.C)} +function Hs(a){var b=Ks?"connected"==Ks.status:!1;if(a.i&&!b){a.F();for(var c in a.g)a.g[c]={};Js(a)}a.i=b;a.I=b?Ks.receiver.friendlyName:"";a.l.Hb()}function Js(a){if(a.h)for(var b=t(a.h.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.h.get(c);a.h.delete(c);d.reject(new U(1,7,7E3))}} +function Rs(a,b){b=ss(b);var c=Ks;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},eb)}catch(d){throw b=new U(2,8,8005,d),c=new V("error",(new Map).set("detail",b)),a.A("player",c),a.jd(),b;}}var Os=.02,Ns=!1,Ks=null,Qs=null,Is=new Set;function Ps(a){Qs?window.__onGCastApiAvailable=Qs:delete window.__onGCastApiAvailable;Qs=null;if(a)for(var b=t(Is),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function Us(a,b,c,d){d=void 0===d?!1:d;Eg.call(this);var e=this;this.i=a;this.h=b;this.l=this.o=this.m=this.s=this.j=null;this.H=c;this.G=d;this.C=[];this.B=[];this.A=[];this.F=new Map;this.g=null;window.chrome?(this.g=new Gs(c,function(){return Vs(e)},function(){return Ws(e)},function(f,g){return Xs(e,f,g)},function(){return Ys(e)},function(){return Zs(e)},d),$s(this)):(this.j=this.i,this.s=this.h)}pa(Us,Eg);p=Us.prototype; +p.destroy=function(a){this.g&&(void 0===a?0:a)&&this.g.jd();this.l&&(this.l.release(),this.l=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.s=this.j=this.i=null;Eg.prototype.release.call(this);return Promise.all(a)};p.Vj=function(){return this.j};p.ld=function(){return this.s};p.fj=function(){return this.g?this.g.m&&Ns:!1};p.ub=function(){return this.g?this.g.ub():!1};p.Ug=function(){return this.g?this.g.Ug():""}; +p.cast=function(){var a=this;return Q(function(b){return 1==b.g?a.g?F(b,a.g.cast(),2):b.return():a.h?F(b,a.h.vc(),0):b.return()})};p.fh=function(a){this.g&&this.g.fh(a)};p.Uk=function(){this.g&&Ts(this.g)};p.jd=function(){this.g&&this.g.jd()}; +p.gj=function(a,b){b=void 0===b?!1:b;var c=this;return Q(function(d){if(1==d.g){if(a==c.H&&b==c.G)return d.return();c.H=a;c.G=b;if(!c.g)return d.return();c.g.jd();return F(d,c.g.destroy(),2)}c.g=null;c.g=new Gs(a,function(){return Vs(c)},function(){return Ws(c)},function(e,f){return Xs(c,e,f)},function(){return Ys(c)},function(){return Zs(c)},b);c.g.init();G(d)})}; +function $s(a){a.g.init();a.l=new jb;for(var b=t(vs),c=b.next();!c.done;c=b.next())a.l.D(a.i,c.value,function(f){a.g.ub()||(f=Cg(f),a.m.dispatchEvent(f))});for(var d in Dg)a.l.D(a.h,Dg[d],function(f){a.g.ub()||a.o.dispatchEvent(f)});a.j={};b={};for(var e in a.i)b={Vd:b.Vd},b.Vd=e,Object.defineProperty(a.j,b.Vd,{configurable:!1,enumerable:!0,get:function(f){return function(){return at(a,f.Vd)}}(b),set:function(f){return function(g){var h=f.Vd;a.g.ub()?a.g.set("video",h,g):a.i[h]=g}}(b)});a.s={};bt(a, +function(f){Object.defineProperty(a.s,f,{configurable:!1,enumerable:!0,get:function(){return ct(a,f)}})});dt(a);a.m=new Eg;a.m.xe=a.j;a.o=new Eg;a.o.xe=a.s;a.l.D(a.h,"unloading",function(){a.g&&a.g.ub()||et(a)})}function dt(a){var b=new Map;bt(a,function(c,d){b.has(d)?(d=b.get(d),c.length=e)return null;for(var f=-1,g=-1,h=0;hc||127c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;eb;b++)a.i.push(Wt())}function Wt(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Xt(a,b){Yt(a)&&(a.i[a.h][a.g]=new Ct(b,a.C,a.A,a.s,a.B),a.g++)}function Yt(a){var b=a.gc;c++,b++)a.i[b]=a.i[c];for(c=0;1>c;c++,b++)a.i[b]=Wt()} +function $t(a,b,c){var d=new Rd(a.j,b,"");d.textAlign=0===a.F?"left":1===a.F?"right":Ud;var e=d.region;a.I&&(e.id+="svc"+a.I);e.id+="win"+a.M;e.height=a.o;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.H;e.viewportAnchorY=a.L;e.viewportAnchorUnits=a.K?Rc:2;switch(a.G){case 0:e.regionAnchorX=0;e.regionAnchorY=0;break;case 1:e.regionAnchorX=50;e.regionAnchorY=0;break;case 2:e.regionAnchorX=100;e.regionAnchorY=0;break;case 3:e.regionAnchorX=0;e.regionAnchorY=50;break;case 4:e.regionAnchorX= +50;e.regionAnchorY=50;break;case 5:e.regionAnchorX=100;e.regionAnchorY=50;break;case 6:e.regionAnchorX=0;e.regionAnchorY=100;break;case 7:e.regionAnchorX=50;e.regionAnchorY=100;break;case 8:e.regionAnchorX=100,e.regionAnchorY=100}if(c=zt(d,"svc"+c,a.i,a.j,b))a.j=b;return c}Ut.prototype.display=function(){this.l=!0};function au(){this.i=[];this.h=null;this.g=0}function bu(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0this.h.length)throw new U(2,2,3E3);this.g+=a}; +cu.prototype.Ci=function(a){if(0>this.g-a)throw new U(2,2,3E3);this.g-=a};function eu(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null} +function fu(a,b,c,d){if(!a.g)return[];if(24==c)return c=du(b).value,d=du(b).value,c=function(f){return f.map(function(g){return("0"+(g&255).toString(16)).slice(-2)}).join("")}([c,d]),Xt(a.g,String.fromCharCode(parseInt(c,16))),[];b=a.g;var e=null;switch(c){case 8:!Yt(b)||0>=b.g&&0>=b.h||(0>=b.g?(b.g=b.m-1,b.h--):b.g--,b.i[b.h][b.g]=null);break;case 13:b.isVisible()&&(e=$t(b,d,a.i));b.h+1>=b.o?Zt(b):b.h++;b.g=0;break;case 14:b.isVisible()&&(e=$t(b,d,a.i));b.i[b.h]=Wt();b.g=0;break;case 12:b.isVisible()&& +(e=$t(b,d,a.i)),Vt(b),b.h=0,b.g=0}return e?[e]:[]} +function gu(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=du(b).value;b=[];c=t(hu(a,c));for(var e=c.next();!e.done;e=c.next()){e=a.h[e.value];if(e.isVisible()){var f=$t(e,d,a.i);f&&b.push(f)}Vt(e)}return b}if(137===c)for(b=du(b).value,b=t(hu(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.display();else{if(138===c){c=du(b).value;b=null;c=t(hu(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=$t(e,d,a.i)),e.l=!1;return b? +[b]:[]}if(139===c){c=du(b).value;b=null;c=t(hu(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=$t(e,d,a.i):e.j=d,e.l=!e.l;return b?[b]:[]}if(140===c)return b=du(b).value,iu(a,b,d);if(143===c)return d=iu(a,255,d),ju(a),d;if(144===c)b.skip(1),d=du(b).value,a.g&&(a.g.A=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=du(b).value,c=du(b).value,b.skip(1),a.g&&(b=ku((c&48)>>4,(c&12)>>2,c&3),a.g.B=ku((d&48)>>4,(d&12)>>2,d&3),a.g.s=b);else if(146===c)d=du(b).value,b=du(b).value,a.g&&(a= +a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),b.skip(1),d=du(b).value,b.skip(1),a.g&&(a.g.F=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];e||(f=new Ut(c,a.i),f.j=d,a.h[c]=f);d=du(b).value;f=du(b).value;var g=du(b).value,h=du(b).value,k=du(b).value;b=du(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.A=!1,b.B="white",b.s="black");b=a.h[c];b.l=0<(d&32);b.L=f&127;b.H=g;b.G=(h&240)>>4;b.K=0<(f&128);b.o=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return[]} +function hu(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}function iu(a,b,c){var d=[];b=t(hu(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(f=$t(f,c,a.i))&&d.push(f);a.h[e]=null}return d}function ju(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function ku(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return lu[a<<2|b<<1|c]} +var mu=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),lu="black blue green cyan red magenta yellow white".split(" ");function nu(){this.h=[];this.g=[];this.i=new au;this.l=0;this.m=new Map([["CC1",new Ot(0,0)],["CC2",new Ot(0,1)],["CC3",new Ot(1,0)],["CC4",new Ot(1,1)]]);this.s=this.o=0;this.j=new Map;this.B=!0;this.A=new Set;ou(this)}nu.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;ou(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())ju(b.value)}; +function ou(a){a.o=0;a.s=0;for(var b=t(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=0,c.g=c.j,c.m=null,Et(c.i),Et(c.j),Et(c.o);a.B=!0} +nu.prototype.extract=function(a,b){if(this.B){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.B=!1}a=new $g(a,0);if(!(8>a.getLength())&&181===a.X()&&49===a.Aa()&&1195456820===a.T()&&3===a.X()&&(c=a.X(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d>2,g=a.X(),h=a.X();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Bb:g,ec:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}}; +nu.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=t(this.h),d=c.next();!d.done;d=c.next())(d=pu(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())bu(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=qu(this,d.value),b.push.apply(b,x(d));this.i.i=[];this.h=[];this.g=[];return b}; +function pu(a,b){var c=b.type;if(16===(b.Bb&112)){var d=b.Bb>>3&1;0===c?a.o=d:a.s=d}d="CC"+((c<<1|(c?a.s:a.o))+1);c=a.m.get(d);if(255===b.Bb&&255===b.ec||!b.Bb&&!b.ec||!ru(b.Bb)||!ru(b.ec))return 45<=++a.l&&ou(a),null;a.l=0;b.Bb&=127;b.ec&=127;var e=b.Bb;if(1<=e&&15>=e||!b.Bb&&!b.ec)return null;e=null;if(16===(b.Bb&112))a:{a.A.add(d),d=b.Bb;a=b.ec;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];d="white";e=!1;var f= +null;var g=95=g?d=Tt[Math.floor(g/2)]:15>=g?e=!0:f=Math.floor((g-16)/2);a=1===(a&1);4!==c.h&&(g=c.g,3===c.h&&b!==g.g&&(c=1+b-g.h,Nt(g,c,1+g.g-g.h,g.h),Ht(g,0,c-1),Ht(g,b+1,15-b)),g.g=b,g.m=a,g.j=e,g.l=d,g.s=f,g.o="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",It(c.g,0,32),d=!1,b=Tt[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=St[(a& +14)>>1]),c.g.o=b;else if(17===(d&247)&&48===(a&240))It(c.g,1,a);else if(18===(d&246)&&32===(a&224))It(c.g,d&1?3:2,a);else{if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.ec){case 32:Qt(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Pt(c,2,a);break;case 38:d=Pt(c,3,a);break;case 39:d=Pt(c,4,a);break;case 40:It(c.g,0,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:Et(c.o);Rt(c);break;case 43:Rt(c);break;case 44:b=c.i;d=null;4!==c.h&&(d=Ft(b,c.l,a));Ht(b,0,15);break;case 45:b= +c.g;3!==c.h?d=null:(d=Ft(b,c.l,a),e=b.g-b.h+1,Nt(b,e-1,e,b.h),Ht(b,0,e-1),Ht(b,b.g,15-b.g),c.l=a);break;case 46:Ht(c.j,0,15);break;case 47:b=null,4!==c.h&&(b=Ft(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Qt(c),c.l=a,d=b}e=d;break a}(23==d||31==d)&&33<=a&&35>=a&&(c.g.A=a-32)}e=null}else a=b.ec,It(c.g,0,b.Bb),It(c.g,0,a);return e} +function qu(a,b){var c=[];try{for(;b.Fa();){var d=du(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=du(b).value&63);if(0!=e){a.A.add("svc"+e);a.j.has(e)||a.j.set(e,new eu(e));for(var g=a.j.get(e),h=b.Ma();b.Ma()-h=m)var r=fu(e,k,m,n);else if(128<=m&&159>=m)r=gu(e,k,m,n);else{if(4096<=m&&4127>=m)e=k,k=m&255,8<=k&&15>=k?e.skip(1):16<=k&&23>=k?e.skip(2):24<=k&&31>=k&&e.skip(3);else if(4224<=m&&4255>=m)e=k,k=m& +255,128<=k&&135>=k?e.skip(4):136<=k&&143>=k&&e.skip(5);else if(32<=m&&127>=m)k=m,e.g&&(127===k?Xt(e.g,"\u266a"):Xt(e.g,String.fromCharCode(k)));else if(160<=m&&255>=m)e.g&&Xt(e.g,String.fromCharCode(m));else if(4128<=m&&4223>=m){if(k=m&255,e.g)if(mu.has(k)){var u=mu.get(k);Xt(e.g,u)}else Xt(e.g,"_")}else 4256<=m&&4351>=m&&e.g&&(160!=(m&255)?Xt(e.g,"_"):Xt(e.g,"[CC]"));r=[]}c.push.apply(c,x(r))}}}}catch(w){if(w instanceof U&&3E3===w.code)cb("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data."); +else throw w;}return c}function ru(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}nu.prototype.getStreams=function(){return Array.from(this.A)};T("shaka.cea.CeaDecoder",nu);Nc=function(){return new nu};function su(a){for(var b=[],c=a,d=a=0;d>1&63;r=39==r||40==r;break;case ru:h=2;b.skip(1);r=q>>1&63;r=23==r||24==r;break;default:return}if(r)for(q=0,lc.byteLength){c=[];break a}var f=Tb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function uu(a){a=mc(rd(a));a=tu(a).filter(function(b){return b.type===vu})[0];if(!a)return null;a=bc(a.value,!0);return(a=jd(a,"WRMHEADER"))?a:null} -function wu(a){try{var b=uu(a);if(b)a:{for(var c=t(td(b,"DATA")),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.children)for(var f=t(e.children),g=f.next();!g.done;g=f.next()){var h=g.value;if("LA_URL"==h.tagName){var k=rd(h);break a}}}k=""}else k="";return k}catch(l){return""}}var vu=1;function xu(a,b,c){var d=yu(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1"+a+"");return wu(a)}return""} -function Au(a,b,c,d,e){var f=[];c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.wd];if(h){var k;if((k=vd(g.node,"urn:microsoft:playready","pro"))&&rd(k)){k=rd(k);k=mc(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:nh(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===g.wd){l=g;var m=e;if(0==m.size)l=null;else{var n=new Uint8Array([16,119,239,236,192,178,77,2, -172,227,60,30,82,226,251,75]),q=new Uint8Array([]);l=[{initData:nh(q,n,m,1),initDataType:"cenc",keyId:l.keyId}]}}k=rc(h,b,g.init||a||k||l);if(h=Du.get(h))k.licenseServerUri=h(g);f.push(k)}}return f}function yu(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=Eu(c.value))&&b.push(c);return b} -function Eu(a){var b=a.attributes.schemeIdUri,c=yd(a,"urn:mpeg:cenc:2013","default_KID"),d=wd(a,"urn:mpeg:cenc:2013","pssh").map(sd),e=a.attributes.value;if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new U(2,4,4009);var f=[];try{f=d.map(function(g){return{initDataType:"cenc",initData:mc(g),keyId:null}})}catch(g){throw new U(2,4,4007);}return{node:a,wd:b,keyId:c,init:0>1&63;r=39==r||40==r;break;case zu:h=2;b.skip(1);r=q>>1&63;r=23==r||24==r;break;default:return}if(r)for(q=0,lc.byteLength){c=[];break a}var f=Tb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function Cu(a){a=mc(sd(a));a=Bu(a).filter(function(b){return b.type===Du})[0];if(!a)return null;a=bc(a.value,!0);return(a=kd(a,"WRMHEADER"))?a:null} +function Eu(a){try{var b=Cu(a);if(b)a:{for(var c=t(ud(b,"DATA")),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.children)for(var f=t(e.children),g=f.next();!g.done;g=f.next()){var h=g.value;if("LA_URL"==h.tagName){var k=sd(h);break a}}}k=""}else k="";return k}catch(l){return""}}var Du=1;function Fu(a,b,c){var d=Gu(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1"+a+"");return Eu(a)}return""} +function Iu(a,b,c,d,e){var f=[];c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.xd];if(h){var k;if((k=wd(g.node,"urn:microsoft:playready","pro"))&&sd(k)){k=sd(k);k=mc(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:oh(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===g.xd){l=g;var m=e;if(0==m.size)l=null;else{var n=new Uint8Array([16,119,239,236,192,178,77,2, +172,227,60,30,82,226,251,75]),q=new Uint8Array([]);l=[{initData:oh(q,n,m,1),initDataType:"cenc",keyId:l.keyId}]}}k=rc(h,b,g.init||a||k||l);if(h=Lu.get(h))k.licenseServerUri=h(g);f.push(k)}}return f}function Gu(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=Mu(c.value))&&b.push(c);return b} +function Mu(a){var b=a.attributes.schemeIdUri,c=zd(a,"urn:mpeg:cenc:2013","default_KID"),d=xd(a,"urn:mpeg:cenc:2013","pssh").map(td),e=a.attributes.value;if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new U(2,4,4009);var f=[];try{f=d.map(function(g){return{initDataType:"cenc",initData:mc(g),keyId:null}})}catch(g){throw new U(2,4,4007);}return{node:a,xd:b,keyId:c,init:0v)if(r){r=xd(r,"t",Fd);if(null== -r)break;else if(u>=r)break;v=Math.ceil((r-u)/w)-1}else{if(Infinity==a)break;else if(u/f>=a)break;v=Math.ceil((a*f-u)/w)-1}0>>31;q&=2147483647;var u=g.reader.T();g.reader.skip(4);if(1==r)throw new U(2,3,3006);h.push(new qj(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();return h};function Ou(a){this.h=Yb(a);this.g=new Zg(this.h,0)}Ou.prototype.Fa=function(){return this.g.Fa()}; -function Pu(a){var b=Qu(a);if(7=c&&(c=v.timeline+1)}-1==k&&(k=c);r=new pv(n,a.J.originalId,a.bandwidth,a.J.cb,a.Jb,u,w,m,g,a.J.Af,k)}n.timeline&&"image"!==a.ma.contentType&&"text"!==a.ma.contentType&&a.presentationTimeline.oi(r.h?r.h.timeline:[],u);d&&a.hc&&(d.segmentIndex=r);d=(d=(d=n.timeline)&&d[d.length-1])?d.end+n.$b:-1;l=-1;r instanceof pv&&(l=r.Oe());return{endTime:d,timeline:l,Jc:function(){r instanceof pv&&0==r.getNumReferences()&&ov(r,n,u,w,m);return Promise.resolve(r)}, -timescale:n.timescale}}function jv(a){return a.Cc}function lv(a){var b=Gu(a,jv),c=Hu(a,jv,"media"),d=Hu(a,jv,"index"),e=Hu(a,jv,"k"),f=0;e&&(f=parseInt(e,10));return{Ef:b.Ef,gb:b.gb,timescale:b.timescale,fe:b.fe,$b:b.$b,wh:b.wh,timeline:b.timeline,Ac:c&&hc(c),Sd:d,mimeType:a.J.mimeType,codecs:a.J.codecs,bandwidth:a.bandwidth,qk:f}} -function mv(a){var b=a.Sd?1:0;b+=a.timeline?1:0;b+=a.gb?1:0;if(0==b)throw new U(2,4,4002);1!=b&&(a.Sd&&(a.timeline=null),a.Ef=null,a.gb=null);if(!a.Sd&&!a.Ac)throw new U(2,4,4002);} -function nv(a,b,c,d,e,f,g,h){function k(J){var M=J-v,O=M*w,N=b.Ef,P=M*N;"BigInt"in window&&P>Number.MAX_SAFE_INTEGER&&(P=BigInt(M)*BigInt(N));O+=q;M=O+w;N=Math.min(M,m());var R=[],S=b.qk;if(S)for(var aa=(N-O)/S,W={},Fa=0;Fam()&&!O.length?null:O})}return Promise.resolve(L)} -function kv(a,b){var c=a.J.Ye;c||(c=Hu(a,jv,"initialization"));if(!c)return null;c=hc(c);var d=a.J.originalId,e=a.bandwidth||null,f=a.J.cb,g=a.Jb;b=new oj(function(){var h=Fu(c,d,null,null,e,null);return qc(f(),[h],g())},0,null,Xu(a),null,null,b,a.ma.encrypted);b.codecs=a.J.codecs;b.mimeType=a.J.mimeType;a.na&&(b.g=a.na.start+a.na.duration);return b} -function pv(a,b,c,d,e,f,g,h,k,l,m){Cl.call(this,[]);this.h=a;this.F=b;this.B=c;this.C=d;this.H=e;this.j=f;this.l=g;this.s=h;this.A=k;this.G=l;this.I=m;qv(this)}pa(pv,Cl);p=pv.prototype;p.getNumReferences=function(){return this.h?this.h.timeline.length:0};p.release=function(){Cl.prototype.release.call(this);this.h=null}; +function Ou(a,b){var c=Pu(a,b,"timescale"),d=1;c&&(d=Fd(c)||1);c=Pu(a,b,"duration");var e=(c=Fd(c||""))?c/d:null,f=Pu(a,b,"startNumber"),g=Number(Pu(a,b,"presentationTimeOffset"))||0,h=Gd(f||"");if(null==f||null==h)h=1;f=null;if(b=Qu(a,b,"SegmentTimeline")){b=rd(b,"S");f=d;a=a.na.duration||Infinity;for(var k=h,l=[],m=-g,n=0;nv)if(r){r=yd(r,"t",Gd);if(null== +r)break;else if(u>=r)break;v=Math.ceil((r-u)/w)-1}else{if(Infinity==a)break;else if(u/f>=a)break;v=Math.ceil((a*f-u)/w)-1}0>>31;q&=2147483647;var u=g.reader.T();g.reader.skip(4);if(1==r)throw new U(2,3,3006);h.push(new rj(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();return h};function Wu(a){this.h=Yb(a);this.g=new $g(this.h,0)}Wu.prototype.Fa=function(){return this.g.Fa()}; +function Xu(a){var b=Yu(a);if(7=c&&(c=v.timeline+1)}-1==k&&(k=c);r=new xv(n,a.J.originalId,a.bandwidth,a.J.cb,a.Jb,u,w,m,g,a.J.Af,k)}n.timeline&&"image"!==a.ma.contentType&&"text"!==a.ma.contentType&&a.presentationTimeline.pi(r.h?r.h.timeline:[],u);d&&a.ic&&(d.segmentIndex=r);d=(d=(d=n.timeline)&&d[d.length-1])?d.end+n.$b:-1;l=-1;r instanceof xv&&(l=r.Ne());return{endTime:d,timeline:l,Nc:function(){r instanceof xv&&0==r.getNumReferences()&&wv(r,n,u,w,m);return Promise.resolve(r)}, +timescale:n.timescale}}function rv(a){return a.Fc}function tv(a){var b=Ou(a,rv),c=Pu(a,rv,"media"),d=Pu(a,rv,"index"),e=Pu(a,rv,"k"),f=0;e&&(f=parseInt(e,10));return{Ff:b.Ff,gb:b.gb,timescale:b.timescale,fe:b.fe,$b:b.$b,wh:b.wh,timeline:b.timeline,Zb:c&&ic(c),Td:d,mimeType:a.J.mimeType,codecs:a.J.codecs,bandwidth:a.bandwidth,rk:f}} +function uv(a){var b=a.Td?1:0;b+=a.timeline?1:0;b+=a.gb?1:0;if(0==b)throw new U(2,4,4002);1!=b&&(a.Td&&(a.timeline=null),a.Ff=null,a.gb=null);if(!a.Td&&!a.Zb)throw new U(2,4,4002);} +function vv(a,b,c,d,e,f,g,h){function k(L){var N=L-v,O=N*w,M=b.Ff,P=N*M;"BigInt"in window&&P>Number.MAX_SAFE_INTEGER&&(P=BigInt(N)*BigInt(M));O+=q;N=O+w;M=Math.min(N,m());var R=[],S=b.rk;if(S)for(var aa=(M-O)/S,W={},Fa=0;Fam()&&!O.length?null:O})}return Promise.resolve(K)} +function sv(a,b){var c=a.J.Xe;c||(c=Pu(a,rv,"initialization"));if(!c)return null;c=ic(c);var d=a.J.originalId,e=a.bandwidth||null,f=a.J.cb,g=a.Jb;b=new pj(function(){var h=Nu(c,d,null,null,e,null);return qc(f(),[h],g())},0,null,ev(a),null,null,b,a.ma.encrypted);b.codecs=a.J.codecs;b.mimeType=a.J.mimeType;a.na&&(b.g=a.na.start+a.na.duration);return b} +function xv(a,b,c,d,e,f,g,h,k,l,m){Jl.call(this,[]);this.h=a;this.F=b;this.B=c;this.C=d;this.H=e;this.j=f;this.l=g;this.s=h;this.A=k;this.G=l;this.I=m;yv(this)}pa(xv,Jl);p=xv.prototype;p.getNumReferences=function(){return this.h?this.h.timeline.length:0};p.release=function(){Jl.prototype.release.call(this);this.h=null}; p.$a=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d=b&&(this.g=this.g.slice(b)),this.i+=b,0===this.getNumReferences()&&this.release())}}; -function ov(a,b,c,d,e){rv(a,e);if(a.h){c=a.h.timeline;a.h.Ac!==b.Ac&&(a.h.Ac=b.Ac);if(c.length){var f=c[c.length-1];b=b.timeline.filter(function(g){return g.end>f.end})}else b=b.timeline.slice();0=a.l||0>=d.end||b.push(d);a.h.timeline=b;a.$a(a.j)}} +function wv(a,b,c,d,e){zv(a,e);if(a.h){c=a.h.timeline;a.h.Zb!==b.Zb&&(a.h.Zb=b.Zb);if(c.length){var f=c[c.length-1];b=b.timeline.filter(function(g){return g.end>f.end})}else b=b.timeline.slice();0=a.l||0>=d.end||b.push(d);a.h.timeline=b;a.$a(a.j)}} p.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a=this.l)return null;for(var c=b.length-1,d=0;d=f&&aa||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.timeline[a],e=d.Kk,f=d.xh+this.h.wh;c=this.j-this.h.$b;var g=this.j+d.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=.1h&&a.j.delete(f);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new Bb(k.location)).Bb))return!1;return!0});d.length&&(a.B=d[0].Qg);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.B=a.h,d.push(g);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:qc(a.i,d)};function zv(){this.l=[];this.h=[];this.g=[];this.j=[];this.i=[];this.s=this.o=!1;this.m=new Set}p=zv.prototype;p.release=function(){for(var a=t(this.h.concat(this.g,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.j=[];this.i=[];this.l=[];this.s=this.o=!1;this.m.clear()};p.Tj=function(){return this.l};p.Bg=function(){return this.j.slice()};p.yj=function(){return this.i}; -p.Lh=function(a,b){if(a){if("audio"==a.type)for(var c=t(this.h),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("video"==a.type)for(c=t(this.g),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a}),d.trickModeVideo&&(d.trickModeVideo.matchedStreams=d.trickModeVideo.matchedStreams.filter(function(e){return e!==a})),d.dependencyStream&&(d.dependencyStream.matchedStreams=d.dependencyStream.matchedStreams.filter(function(e){return e!== +p.get=function(a){var b=this;a-=this.i;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){c=this.h.timeline[a];var d=c.Lk,e=c.xh+this.h.wh,f=this.j-this.h.$b,g=this.j+c.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=.1h&&a.j.delete(f);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new Bb(k.location)).Cb))return!1;return!0});d.length&&(a.B=d[0].Rg);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.B=a.h,d.push(g);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:qc(a.i,d)};function Hv(){this.l=[];this.h=[];this.g=[];this.j=[];this.i=[];this.s=this.o=!1;this.m=new Set}p=Hv.prototype;p.release=function(){for(var a=t(this.h.concat(this.g,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.j=[];this.i=[];this.l=[];this.s=this.o=!1;this.m.clear()};p.Uj=function(){return this.l};p.Cg=function(){return this.j.slice()};p.zj=function(){return this.i}; +p.Mh=function(a,b){if(a){if("audio"==a.type)for(var c=t(this.h),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("video"==a.type)for(c=t(this.g),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a}),d.trickModeVideo&&(d.trickModeVideo.matchedStreams=d.trickModeVideo.matchedStreams.filter(function(e){return e!==a})),d.dependencyStream&&(d.dependencyStream.matchedStreams=d.dependencyStream.matchedStreams.filter(function(e){return e!== a}));else if(a.type==wc)for(c=t(this.j),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("image"==a.type)for(c=t(this.i),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});a.segmentIndex&&a.closeSegmentIndex();this.m.delete(b)}}; -function Av(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[Bv(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[Cv(n),n]})),l=new Map(h.textStreams.map(function(n){return[Dv(n),n]}));h=new Map(h.imageStreams.map(function(n){return[Ev(n),n]}));if(b){var m=Fv(wc);l.set(Dv(m),m);m=Fv("image");h.set(Ev(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{Eh:c,Xi:d,Ui:e,Yh:f}} -p.$f=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,E,H,C,D,I,L,K,J,M,O,N,P,R,S,aa;return Q(function(W){if(1==W.g){e=yc;if(!b&&1==a.length)return f=Av(a,!1),g=f.Eh,h=f.Xi,k=f.Ui,l=f.Yh,d.h=Array.from(g[0].values()),d.g=Array.from(h[0].values()),d.j=Array.from(k[0].values()),d.i=Array.from(l[0].values()),W.u(2);m=c?d.m.size:0;n=-1;for(q=0;q=d?h.push(new Set(c[k].values())):h.push(new Set);l=t(b);m=l.next();case 2:if(m.done){K.u(4);break}n=m.value;return F(K,Nv(a,n,c,d,f,h,g),5);case 5:q=K.h;if(!q)throw new U(2,4,4037);m=l.next();K.u(2);break;case 4:r=t(h);for(u=r.next();!u.done;u=r.next())for(w=u.value,v=t(w),y=v.next();!y.done;y=v.next())z=y.value,(A=Ov(a,z,c,e,f,h))&&b.push(A);B=t(h);for(E=B.next();!E.done;E= -B.next())for(H=E.value,C=t(H),D=C.next(),I={};!D.done;I={kh:void 0},D=C.next())if(I.kh=D.value,!Pv(I.kh)&&(L=b.some(function(J){return function(M){return Qv(a,J.kh,M)}}(I))))throw new U(2,4,4037);return K.return(b)}})}function Nv(a,b,c,d,e,f,g){return Q(function(h){if(1==h.g)return Rv(a,c,b,0d)return!0;if(ed.length)return!0;if(e.lengthd)return!0;if(ed.length)return!0;if(e.lengtha){if(c<=a||c-ab-a)return uw}else{if(c>a)return uw;if(a-ca-b)return uw}return ww}function vw(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a=d?h.push(new Set(c[k].values())):h.push(new Set);l=t(b);m=l.next();case 2:if(m.done){J.u(4);break}n=m.value;return F(J,Vv(a,n,c,d,f,h,g),5);case 5:q=J.h;if(!q)throw new U(2,4,4037);m=l.next();J.u(2);break;case 4:r=t(h);for(u=r.next();!u.done;u=r.next())for(w=u.value,v=t(w),y=v.next();!y.done;y=v.next())z=y.value,(A=Wv(a,z,c,e,f,h))&&b.push(A);C=t(h);for(E=C.next();!E.done;E= +C.next())for(H=E.value,B=t(H),D=B.next(),I={};!D.done;I={lh:void 0},D=B.next())if(I.lh=D.value,!Xv(I.lh)&&(K=b.some(function(L){return function(N){return Yv(a,L.lh,N)}}(I))))throw new U(2,4,4037);return J.return(b)}})}function Vv(a,b,c,d,e,f,g){return Q(function(h){if(1==h.g)return Zv(a,c,b,0d)return!0;if(ed.length)return!0;if(e.lengthd)return!0;if(ed.length)return!0;if(e.lengtha){if(c<=a||c-ab-a)return Cw}else{if(c>a)return Cw;if(a-ca-b)return Cw}return Ew}function Dw(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return av&&w>u&&a.M++;null==w&&(w=u);if(!(null!==a.N&&null!==r&&null!==q&&q< -a.N)||a.F.includes(r)||l+1==d.length){null!==q&&(null===a.N||q>a.N)&&(a.N=q);k=Ww(a,b,c,{start:q,duration:w,node:m,ai:null==w||!n});h.push(k);b.ra.id&&w&&a.va.set(b.ra.id,w);if(null==w){k=null;break}k=q+w}}if(e)for(b=t(h),c=b.next();!c.done;c=b.next())c=c.value.id,a.F.includes(c)||a.F.push(c);else a.F=h.map(function(y){return y.id});return null!=f?{periods:h,duration:f+g,Nh:!1}:{periods:h,duration:k,Nh:!0}} -function Pw(a){var b=Array.from(a.C.keys()).filter(function(h){return!a.F.includes(h)});b=t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=!0,e=t(a.C.get(c)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.o.get(f);g&&(g.segmentIndex&&0!=g.segmentIndex.getNumReferences()?d=!1:(a.m&&a.m.Lh(g,c),a.o.delete(f)))}d&&a.C.delete(c)}}function Qw(a,b){b=new Set(b.map(function(e){return e.id}));for(var c=t(a.B.keys()),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)||a.B.delete(d)} -function Ww(a,b,c,d){b.ra=Xw(a,d.node,null,c);b.na=d;b.ra.pb=b.pb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=qd(d.node,"EventStream");c=b.presentationTimeline.Eb();e=t(e);for(var f=e.next();!f.done;f=e.next())Yw(a,d.start,d.duration,f.value,c);c=qd(d.node,"SupplementalProperty");c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,"urn:mpeg:dash:urlparam:2014"==e.attributes.schemeIdUri&&(e=Zw(a,e)))b.Jb=e;c=qd(d.node,"AdaptationSet").map(function(r,u){return $w(a,b,u,r)}).filter(cf);if(b.hc){e= -[];f=t(c);for(var g=f.next();!g.done;g=f.next()){g=t(g.value.Gk);for(var h=g.next();!h.done;h=g.next())e.push(h.value)}if(e.length!=(new Set(e)).size)throw new U(2,4,4018);}e=new Map;f=t(c);for(g=f.next();!g.done;g=f.next())for(g=t(g.value.mj),h=g.next();!h.done;h=g.next()){var k=t(h.value);h=k.next().value;k=k.next().value;e.set(h,k)}if(e.size)for(f=null,g=t(c),h=g.next();!h.done;h=g.next()){h=h.value;k=[];for(var l=t(h.streams),m=l.next(),n={};!m.done;n={lh:void 0},m=l.next())if(n.lh=m.value,e.has(n.lh.originalId)){f|| -(f=qd(d.node,"AdaptationSet").map(function(r,u){return $w(a,b,u,r)}).filter(cf));m=t(f);for(var q=m.next();!q.done;q=m.next())if(q=q.value.streams.find(function(r){return function(u){return u.originalId==r.lh.originalId}}(n)))q.dependencyStream=e.get(q.originalId),q.originalId+=q.dependencyStream.originalId,k.push(q)}k.length&&h.streams.push.apply(h.streams,x(k))}d=c.filter(function(r){return!r.vh});c=c.filter(function(r){return r.vh});if(!a.g.disableIFrames)for(c=t(c),e=c.next();!e.done;e=c.next())for(e= -e.value,f=e.vh.split(" "),g=t(d),h=g.next();!h.done;h=g.next())if(h=h.value,f.includes(h.id))for(h=t(h.streams),k=h.next();!k.done;k=h.next())cg(k.value,e.streams);c=ax(a.g.disableAudio,d,"audio");e=ax(a.g.disableVideo,d,"video");f=ax(a.g.disableText,d,wc);d=ax(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new U(2,4,4004);return{id:b.ra.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}} -function ax(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,x(e.streams));return d},[])} -function $w(a,b,c,d){function e(J){var M=J.attributes["dvb:fontFamily"];J=J.attributes["dvb:url"];M&&J&&(J=qc(b.ma.cb(),[J],b.Jb()),a.j.addFont(M,J[0]))}function f(J){switch(J){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function g(J){switch(J){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.ma=Xw(a,d,b.ra,null);b.ma.position=c;var h=!1;c=qd(d,"Role");var k=c.map(function(J){return J.attributes.value}).filter(cf), -l=void 0,m=b.ma.contentType==wc;m&&(l="subtitle");c=t(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;var q=n.attributes.schemeIdUri;if(null==q||"urn:mpeg:dash:role:2011"==q)switch(n=n.attributes.value,n){case "main":h=!0;break;case "caption":case "subtitle":l=n}}var r=qd(d,"EssentialProperty");c=null;var u=!1;n=null;q=!1;r=t(r);for(var w=r.next();!w.done;w=r.next()){w=w.value;var v=w.attributes.schemeIdUri;if("http://dashif.org/guidelines/trickmode"==v)c=w.attributes.value;else if("urn:mpeg:mpegB:cicp:TransferCharacteristics"== -v)var y=g(parseInt(w.attributes.value,10));else if("urn:mpeg:mpegB:cicp:ColourPrimaries"==v)var z=f(parseInt(w.attributes.value,10));else"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=v&&("urn:mpeg:dash:ssr:2023"==v&&a.g.dash.enableFastSwitching?u=!0:"urn:dvb:dash:fontdownload:2014"==v?e(w):"urn:mpeg:dash:urlparam:2014"==v?(n=Zw(a,w))||(q=!0):q=!0)}if(q)return null;var A=null;q=qd(d,"SupplementalProperty");q=t(q);for(r=q.next();!r.done;r=q.next())r=r.value,w=r.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"== -w?A=parseInt(r.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==w?y=g(parseInt(r.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==w?z=f(parseInt(r.attributes.value,10)):"urn:dvb:dash:fontdownload:2014"==w?e(r):"urn:mpeg:dash:urlparam:2014"==w&&(n=Zw(a,r));n&&(b.Jb=n);n=qd(d,"Accessibility");var B=new Map,E;n=t(n);for(q=n.next();!q.done;q=n.next())if(r=q.value,q=r.attributes.schemeIdUri,r=r.attributes.value,"urn:scte:dash:cc:cea-608:2015"!=q||a.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!= -q||a.g.disableText)"urn:mpeg:dash:role:2011"==q?null!=r&&(k.push(r),"captions"==r&&(l="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==q&&("1"==r?E="visually impaired":"2"==r?E="hard of hearing":"9"==r&&(E="spoken subtitles"));else if(q=1,null!=r)for(r=t(r.split(";")),w=r.next();!w.done;w=r.next()){v=w.value;var H=w=void 0;v.includes("=")?(v=v.split("="),w="svc"+v[0],H=v[1].split(",")[0].split(":").pop()):(w="svc"+q,q++,H=v);B.set(w,gf(H))}else B.set("svc1","und");else if(q=1,null!=r)for(r= -r.split(";"),w=t(r),v=w.next();!v.done;v=w.next()){H=v.value;var C=v=void 0;H.includes("=")?(H=H.split("="),v=H[0].startsWith("CC")?H[0]:"CC"+H[0],C=H[1]||"und"):(v="CC"+q,2==r.length?q+=2:q++,C=H);B.set(v,gf(C))}else B.set("CC1","und");n=qd(d,"ContentProtection");var D=xu(n,a.g.ignoreDrmInfo,a.g.dash.keySystemsByURI);b.ma.encrypted=0v&&w>u&&a.M++;null==w&&(w=u);if(!(null!==a.N&&null!==r&&null!==q&&q< +a.N)||a.F.includes(r)||l+1==d.length){null!==q&&(null===a.N||q>a.N)&&(a.N=q);k=dx(a,b,c,{start:q,duration:w,node:m,bi:null==w||!n});h.push(k);b.ra.id&&w&&a.wa.set(b.ra.id,w);if(null==w){k=null;break}k=q+w}}if(e)for(b=t(h),c=b.next();!c.done;c=b.next())c=c.value.id,a.F.includes(c)||a.F.push(c);else a.F=h.map(function(y){return y.id});return null!=f?{periods:h,duration:f+g,Oh:!1}:{periods:h,duration:k,Oh:!0}} +function Xw(a){var b=Array.from(a.C.keys()).filter(function(h){return!a.F.includes(h)});b=t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=!0,e=t(a.C.get(c)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.o.get(f);g&&(g.segmentIndex&&0!=g.segmentIndex.getNumReferences()?d=!1:(a.m&&a.m.Mh(g,c),a.o.delete(f)))}d&&a.C.delete(c)}}function Yw(a,b){b=new Set(b.map(function(e){return e.id}));for(var c=t(a.B.keys()),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)||a.B.delete(d)} +function dx(a,b,c,d){b.ra=ex(a,d.node,null,c);b.na=d;b.ra.pb=b.pb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=rd(d.node,"EventStream");c=b.presentationTimeline.Fb();e=t(e);for(var f=e.next();!f.done;f=e.next())fx(a,d.start,d.duration,f.value,c);c=rd(d.node,"SupplementalProperty");c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,"urn:mpeg:dash:urlparam:2014"==e.attributes.schemeIdUri&&(e=gx(a,e)))b.Jb=e;c=rd(d.node,"AdaptationSet").map(function(r,u){return hx(a,b,u,r)}).filter(df);if(b.ic){e= +[];f=t(c);for(var g=f.next();!g.done;g=f.next()){g=t(g.value.Hk);for(var h=g.next();!h.done;h=g.next())e.push(h.value)}if(e.length!=(new Set(e)).size)throw new U(2,4,4018);}e=new Map;f=t(c);for(g=f.next();!g.done;g=f.next())for(g=t(g.value.nj),h=g.next();!h.done;h=g.next()){var k=t(h.value);h=k.next().value;k=k.next().value;e.set(h,k)}if(e.size)for(f=null,g=t(c),h=g.next();!h.done;h=g.next()){h=h.value;k=[];for(var l=t(h.streams),m=l.next(),n={};!m.done;n={mh:void 0},m=l.next())if(n.mh=m.value,e.has(n.mh.originalId)){f|| +(f=rd(d.node,"AdaptationSet").map(function(r,u){return hx(a,b,u,r)}).filter(df));m=t(f);for(var q=m.next();!q.done;q=m.next())if(q=q.value.streams.find(function(r){return function(u){return u.originalId==r.mh.originalId}}(n)))q.dependencyStream=e.get(q.originalId),q.originalId+=q.dependencyStream.originalId,k.push(q)}k.length&&h.streams.push.apply(h.streams,x(k))}d=c.filter(function(r){return!r.vh});c=c.filter(function(r){return r.vh});if(!a.g.disableIFrames)for(c=t(c),e=c.next();!e.done;e=c.next())for(e= +e.value,f=e.vh.split(" "),g=t(d),h=g.next();!h.done;h=g.next())if(h=h.value,f.includes(h.id))for(h=t(h.streams),k=h.next();!k.done;k=h.next())dg(k.value,e.streams);c=ix(a.g.disableAudio,d,"audio");e=ix(a.g.disableVideo,d,"video");f=ix(a.g.disableText,d,wc);d=ix(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new U(2,4,4004);return{id:b.ra.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}} +function ix(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,x(e.streams));return d},[])} +function hx(a,b,c,d){function e(L){var N=L.attributes["dvb:fontFamily"];L=L.attributes["dvb:url"];N&&L&&(L=qc(b.ma.cb(),[L],b.Jb()),a.j.addFont(N,L[0]))}function f(L){switch(L){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function g(L){switch(L){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.ma=ex(a,d,b.ra,null);b.ma.position=c;var h=!1;c=rd(d,"Role");var k=c.map(function(L){return L.attributes.value}).filter(df), +l=void 0,m=b.ma.contentType==wc;m&&(l="subtitle");c=t(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;var q=n.attributes.schemeIdUri;if(null==q||"urn:mpeg:dash:role:2011"==q)switch(n=n.attributes.value,n){case "main":h=!0;break;case "caption":case "subtitle":l=n}}var r=rd(d,"EssentialProperty");c=null;var u=!1;n=null;q=!1;r=t(r);for(var w=r.next();!w.done;w=r.next()){w=w.value;var v=w.attributes.schemeIdUri;if("http://dashif.org/guidelines/trickmode"==v)c=w.attributes.value;else if("urn:mpeg:mpegB:cicp:TransferCharacteristics"== +v)var y=g(parseInt(w.attributes.value,10));else if("urn:mpeg:mpegB:cicp:ColourPrimaries"==v)var z=f(parseInt(w.attributes.value,10));else"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=v&&("urn:mpeg:dash:ssr:2023"==v&&a.g.dash.enableFastSwitching?u=!0:"urn:dvb:dash:fontdownload:2014"==v?e(w):"urn:mpeg:dash:urlparam:2014"==v?(n=gx(a,w))||(q=!0):q=!0)}if(q)return null;var A=null;q=rd(d,"SupplementalProperty");q=t(q);for(r=q.next();!r.done;r=q.next())r=r.value,w=r.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"== +w?A=parseInt(r.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==w?y=g(parseInt(r.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==w?z=f(parseInt(r.attributes.value,10)):"urn:dvb:dash:fontdownload:2014"==w?e(r):"urn:mpeg:dash:urlparam:2014"==w&&(n=gx(a,r));n&&(b.Jb=n);n=rd(d,"Accessibility");var C=new Map,E;n=t(n);for(q=n.next();!q.done;q=n.next())if(r=q.value,q=r.attributes.schemeIdUri,r=r.attributes.value,"urn:scte:dash:cc:cea-608:2015"!=q||a.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!= +q||a.g.disableText)"urn:mpeg:dash:role:2011"==q?null!=r&&(k.push(r),"captions"==r&&(l="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==q&&("1"==r?E="visually impaired":"2"==r?E="hard of hearing":"9"==r&&(E="spoken subtitles"));else if(q=1,null!=r)for(r=t(r.split(";")),w=r.next();!w.done;w=r.next()){v=w.value;var H=w=void 0;v.includes("=")?(v=v.split("="),w="svc"+v[0],H=v[1].split(",")[0].split(":").pop()):(w="svc"+q,q++,H=v);C.set(w,hf(H))}else C.set("svc1","und");else if(q=1,null!=r)for(r= +r.split(";"),w=t(r),v=w.next();!v.done;v=w.next()){H=v.value;var B=v=void 0;H.includes("=")?(H=H.split("="),v=H[0].startsWith("CC")?H[0]:"CC"+H[0],B=H[1]||"und"):(v="CC"+q,2==r.length?q+=2:q++,B=H);C.set(v,hf(B))}else C.set("CC1","und");n=rd(d,"ContentProtection");var D=Fu(n,a.g.ignoreDrmInfo,a.g.dash.keySystemsByURI);b.ma.encrypted=0a.K)){var c=a.K;0<=a.g.updatePeriod&&(c=a.g.updatePeriod);a.L.ha(Math.max(c-b,Wa(a.xa)))}} -function Xw(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,mf:null,audioSamplingRate:null,pb:0,Af:0,encrypted:!1};d=d||c.cb;var e=b.attributes.id,f=b.attributes.supplementalId,g=qd(b,"BaseURL"),h,k=!1;if(a.h)for(var l=t(g),m=l.next();!m.done;m=l.next()){var n=m.value;m=n.attributes.serviceLocation;n=sd(n);m&&n&&(xv(a.h,e,m,n),k=!0)}k&&a.h||(h=g.map(sd));l=b.attributes.contentType||c.contentType;m=b.attributes.mimeType||c.mimeType;n= -im([b.attributes.codecs||c.codecs]).join(",");var q=xd(b,"frameRate",Id)||c.frameRate,r=b.attributes.sar||c.pixelAspectRatio,u=gx(qd(b,"InbandEventStream"),c.emsgSchemeIdUris),w=qd(b,"AudioChannelConfiguration");w=hx(w)||c.mf;var v=xd(b,"audioSamplingRate",Fd)||c.audioSamplingRate;l||(l=cx(m,n));var y=ud(b,"SegmentBase"),z=ud(b,"SegmentTemplate"),A=y?xd(y,"availabilityTimeOffset",Gd)||0:0,B=z?xd(z,"availabilityTimeOffset",Gd)||0:0,E=g&&g.length?xd(g[0],"availabilityTimeOffset",Gd)||0:0;A=c.pb+E+A+ -B;B=null;(E=ud(b,"SegmentSequenceProperties"))&&(E=ud(E,"SAP"))&&(B=xd(E,"cadence",Dd));E=b.attributes.label;var H=qd(b,"Label");H&&H.length&&(H=H[0],rd(H)&&(E=rd(H)));return{cb:function(){return qc(d(),g.length?a.h&&k?yv(a.h,e):h?h:[]:[])},xd:y||c.xd,pc:ud(b,"SegmentList")||c.pc,Cc:z||c.Cc,vf:ud(b,"ProducerReferenceTime")||c.vf,width:xd(b,"width",Fd)||c.width,height:xd(b,"height",Fd)||c.height,contentType:l,mimeType:m,codecs:n,frameRate:q,pixelAspectRatio:r,emsgSchemeIdUris:u,id:f||e,originalId:e, -language:b.attributes.lang,mf:w,audioSamplingRate:v,pb:A,Ye:null,Af:B||c.Af,label:E||null,encrypted:!1}}function gx(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b} -function hx(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.attributes.schemeIdUri;if(c&&(b=b.attributes.value))switch(c){case "urn:mpeg:dash:outputChannelPositionList:2012":return b.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(b,10);if(!b)continue;return b;case "tag:dolby.com,2015:dash:audio_channel_configuration:2015":c=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2];b=parseInt(b, +type:b.ma.contentType,primary:g,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:b.J.emsgSchemeIdUris,roles:h,forced:u,channelsCount:b.J.mf,audioSamplingRate:b.J.audioSamplingRate,spatialAudio:v,closedCaptions:k,hdr:N,colorGamut:void 0,videoLayout:void 0,tilesLayout:L,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([Ee(b.J.mimeType,b.J.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null};O.createSegmentIndex=function(){var M;return Q(function(P){if(1==P.g){if(O.segmentIndex)return P.u(0); +M=O;return F(P,B.Nc(),3)}M.segmentIndex=P.h;G(P)})};w&&b.ic&&!a.o.has(w)&&(b=b.ra.id||"",a.C.has(b)||a.C.set(b,[]),a.o.set(w,O),a.C.get(b).push(w));return O} +function nx(a,b,c,d){if(!a.ka.has(b)){a.ka.add(b);var e=yd(b,"presentationTime",Gd)||0,f=vd(b,"UTCTiming"),g;if(g=f&&f.attributes.schemeIdUri)f=f.attributes.schemeIdUri,g=!("urn:mpeg:dash:utc:http-ntp:2014"===f||"urn:mpeg:dash:utc:ntp:2014"===f||"urn:mpeg:dash:utc:sntp:2014"===f);g?b=1E3*(yd(b,"wallClockTime",Bd)||0):(b=yd(b,"wallClockTime",Gd)||0,b=Pj(b));c=new Date(b-e/c.timescale*1E3);e=c.getTime()/1E3;isNaN(e)||(d.o||d.hh(e),d=(new Map).set("detail",{wallClockTime:b,programStartDate:c}),d=new V("prft", +d),a.j.onEvent(d))}}function mx(a){function b(c){if(!c)return null;c=gd(c);c.yd=null;c.tc=null;c.Fc=Qd(c.Fc);c.vf=null;return c}a=gd(a);a.ra=b(a.ra);a.ma=b(a.ma);a.J=b(a.J);a.na&&(a.na=gd(a.na),a.na.node=null);return a} +function Kw(a){var b,c;return Q(function(d){switch(d.g){case 1:return b=0,wa(d,2),F(d,Lw(a),4);case 4:b=d.h;za(d,3);break;case 2:if(c=Aa(d),a.j){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.j.onError(c),d.return();c.severity=1;a.j.onError(c)}case 3:if(!a.j)return d.return();a.j.onManifestUpdated();Mw(a,b);G(d)}})}function Mw(a,b){if(!(0>a.K)){var c=a.K;0<=a.g.updatePeriod&&(c=a.g.updatePeriod);a.L.ha(Math.max(c-b,Wa(a.ya)))}} +function ex(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,mf:null,audioSamplingRate:null,pb:0,Af:0,encrypted:!1};d=d||c.cb;var e=b.attributes.id,f=b.attributes.supplementalId,g=rd(b,"BaseURL"),h,k=!1;if(a.h)for(var l=t(g),m=l.next();!m.done;m=l.next()){var n=m.value;m=n.attributes.serviceLocation;n=td(n);m&&n&&(Fv(a.h,e,m,n),k=!0)}k&&a.h||(h=g.map(td));l=b.attributes.contentType||c.contentType;m=b.attributes.mimeType||c.mimeType;n= +pm([b.attributes.codecs||c.codecs]).join(",");var q=yd(b,"frameRate",Kd)||c.frameRate,r=b.attributes.sar||c.pixelAspectRatio,u=ox(rd(b,"InbandEventStream"),c.emsgSchemeIdUris),w=rd(b,"AudioChannelConfiguration");w=px(w)||c.mf;var v=yd(b,"audioSamplingRate",Gd)||c.audioSamplingRate;l||(l=kx(m,n));var y=vd(b,"SegmentBase"),z=vd(b,"SegmentTemplate"),A=y?yd(y,"availabilityTimeOffset",Hd)||0:0,C=z?yd(z,"availabilityTimeOffset",Hd)||0:0,E=g&&g.length?yd(g[0],"availabilityTimeOffset",Hd)||0:0;A=c.pb+E+A+ +C;C=null;(E=vd(b,"SegmentSequenceProperties"))&&(E=vd(E,"SAP"))&&(C=yd(E,"cadence",Ed));E=b.attributes.label;var H=rd(b,"Label");H&&H.length&&(H=H[0],sd(H)&&(E=sd(H)));return{cb:function(){return qc(d(),g.length?a.h&&k?Gv(a.h,e):h?h:[]:[])},yd:y||c.yd,tc:vd(b,"SegmentList")||c.tc,Fc:z||c.Fc,vf:vd(b,"ProducerReferenceTime")||c.vf,width:yd(b,"width",Gd)||c.width,height:yd(b,"height",Gd)||c.height,contentType:l,mimeType:m,codecs:n,frameRate:q,pixelAspectRatio:r,emsgSchemeIdUris:u,id:f||e,originalId:e, +language:b.attributes.lang,mf:w,audioSamplingRate:v,pb:A,Xe:null,Af:C||c.Af,label:E||null,encrypted:!1}}function ox(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b} +function px(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.attributes.schemeIdUri;if(c&&(b=b.attributes.value))switch(c){case "urn:mpeg:dash:outputChannelPositionList:2012":return b.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(b,10);if(!b)continue;return b;case "tag:dolby.com,2015:dash:audio_channel_configuration:2015":c=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2];b=parseInt(b, 16);if(!b)continue;for(var d=0,e=0;ec}).map(sd).filter(cf);return d.length?qc(a.A,d):[]}T("shaka.dash.DashParser",Bw);si("application/dash+xml",function(){return new Bw});si("video/vnd.mpeg.dash.mpd",function(){return new Bw});function jx(){}T("shaka.dependencies",jx);jx.has=function(a){return kx.has(a)};jx.add=function(a,b){if(!lx[a])throw Error(a+" is not supported");a==mx?wb("mux.js","mux.js is no longer used in Shaka Player."):kx.set(a,function(){return b})};var mx="muxjs",lx={um:mx,ISOBoxer:"ISOBoxer"};jx.Allowed=lx;var kx=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function nx(){this.j=new pb(function(){return navigator.userAgent.match(/Smart( ?|_)TV/i)||navigator.userAgent.match(/Android ?TV/i)?"TV":navigator.userAgentData?navigator.userAgentData.mobile?"MOBILE":"DESKTOP":/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)?"MOBILE":navigator.userAgentData&&navigator.userAgentData.platform?"android"==navigator.userAgentData.platform.toLowerCase()?"MOBILE":"DESKTOP":navigator.userAgent.includes("Android")?"MOBILE":"DESKTOP"});this.l=new pb(function(){return navigator.vendor.includes("Apple")&& -(navigator.userAgent.includes("Version/")||navigator.userAgent.includes("OS/"))?"WEBKIT":navigator.userAgent.includes("Edge/")?"EDGE":navigator.userAgent.includes("Chrome/")?"CHROMIUM":navigator.userAgent.includes("Firefox/")?"GECKO":"UNKNOWN"})}function vi(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}p=nx.prototype;p.bc=function(){return!!navigator.mediaCapabilities};p.La=function(){return this.j.value()};p.Ea=function(){return this.l.value()};p.be=function(){return!1}; -p.wi=function(){return!1};p.Ze=function(){return!1};p.xi=function(){return!1};p.ae=function(){return!1};p.Xc=function(){return!0};p.Yc=function(){return!0};p.ge=function(){return!0};p.Di=function(){return 0};p.ec=function(){return Promise.resolve({width:Infinity,height:Infinity})};p.Mi=function(){return!1};p.jh=function(){return!1}; -p.Ta=function(a){var b=this.La();if("TV"===b||"CONSOLE"===b||"CAST"===b)a.ads.customPlayheadTracker=!0,a.ads.skipPlayDetection=!0,a.ads.supportsMultipleMediaElements=!1;return a};p.oh=function(){return!!window.indexedDB};p.ti=function(){return[]};function un(a){qb();return void 0!==window.matchMedia&&window.matchMedia("(color-gamut: p3)").matches?a?"HLG":"PQ":"SDR"}p.Ti=function(){return!1};p.ii=function(){return!1};p.Zg=function(){return!1};p.nh=function(){return!0};p.ji=function(){return!1}; -p.Si=function(){return!0};p.toString=function(){return"Device: "+this.Mb()+" v"+this.Ca()+"; Type: "+this.La()};function ox(){nx.call(this);this.g=new pb(function(){var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null});this.h=new pb(function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1this.g&&a.push("opus");return a};p.ii=function(){return!0};p.ji=function(){return 3===this.Ca()};navigator.userAgent.includes("Tizen")&&(tb=function(){return new xx});function yx(){nx.apply(this,arguments)}pa(yx,nx);yx.prototype.Ca=function(){return null};yx.prototype.Mb=function(){return"Vizio"};yx.prototype.La=function(){return"TV"};yx.prototype.bc=function(){return!1};navigator.userAgent.includes("VIZIO SmartCast")&&(tb=function(){return new yx});function zx(){nx.call(this);this.h=new pb(function(){return navigator.userAgent.includes("DT_STB_BCM")});this.g=new pb(function(){if(navigator.userAgent.includes("DT_STB_BCM"))return 11;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null})}pa(zx,nx);p=zx.prototype;p.Ca=function(){return this.g.value()};p.Mb=function(){return"WebKit STB"};p.La=function(){return"TV"};p.Ea=function(){return"WEBKIT"}; -p.bc=function(){return!1};p.Xc=function(){var a=this.g.value();return null!==a?15<=a:!0};p.ec=function(){return Promise.resolve({width:window.screen.width*window.devicePixelRatio,height:window.screen.height*window.devicePixelRatio})};p.nh=function(){return!this.h.value()}; -if(navigator.userAgent.includes("DT_STB_BCM")||navigator.userAgent.includes("DT_STB_BCM")||!(!(navigator.vendor||"").includes("Apple")||/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1b.length||"data"!=b[0])throw new U(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new U(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1",lc(b),""].join("\n")))d.licenseServerUri=wu(b);d=Promise.resolve(d)}else d=Promise.resolve(null);return d}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(b){var c=Jx(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";"SAMPLE-AES"==c&&(d="cbcs");c=Jx(b,"URI");c=$x(c.split("?")[0]);c=Tb(c.data);d=rc("com.huawei.wiseplay",d,[{initDataType:"cenc",initData:c}]);(b=Ix(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2)); -b=Promise.resolve(d)}else b=Promise.resolve(null);return b});this.ab=new Set;this.i=new Map;this.l=null;this.C="";this.Pa=new Tx;this.K=-1;this.ia=Infinity;this.$=this.mc=this.Za=!1;this.B=new $e(function(){if(a.U&&!a.g.continueLoadingWhenPaused&&(a.S.Ja(a.U,"timeupdate"),a.U.paused)){a.S.za(a.U,"timeupdate",function(){return cy(a)});return}cy(a)});this.Ba=dy;this.m=null;this.Ua=0;this.o=Infinity;this.Ya=this.Ka=this.P=0;this.W=new Eg;this.G=new Map;this.H=new Map;this.xa=new Map;this.oa=new Map; -this.L=new Map;this.ua=new Map;this.va=new Map;this.kc=this.ka=!1;this.eb=new Va(5);this.j=null;this.N=!0;this.S=new jb;this.s=this.U=null;this.Xb=function(){return!1}}p=ay.prototype;p.configure=function(a,b){var c=this.h&&a.updatePeriod!=this.g.updatePeriod&&0<=a.updatePeriod;this.g=a;b&&(this.Xb=b);this.j&&this.j.configure(this.g);c&&this.m&&this.m.presentationTimeline.V()&&this.B.Hb()}; -p.start=function(a,b){var c=this,d;return Q(function(e){return 1==e.g?(c.h=b,c.ka=b.isLowLatencyMode(),F(e,ey(c,[a]).promise,2)):3!=e.g?(d=e.h,c.C=d.uri,F(e,fy(c,d.data),3)):e.return(c.m)})}; -p.stop=function(){this.B&&(this.B.stop(),this.B=null);var a=[];this.W&&(a.push(this.W.destroy()),this.W=null);this.g=this.h=null;this.ab.clear();this.m=null;this.i.clear();this.I.clear();this.H.clear();this.A.clear();this.xa.clear();this.oa.clear();this.L.clear();this.ua.clear();this.va.clear();this.j&&this.j.destroy();this.S&&(this.S.release(),this.S=null);return Promise.all(a)}; -p.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,q;return Q(function(r){if(1==r.g){if(!gy(a))return r.return();b=[];c=Array.from(a.i.values());a.o=Infinity;a.m.gapCount=0;d=c.filter(function(u){return u.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(hy(a,g));return F(r,Promise.all(b),2)}iy(a,d.map(function(u){return u.stream}));h=d.some(function(u){return 0==u.Od});d.length&&!h&&(k=jy,ky(a,k.$i),l=d.map(function(u){return u.ic}),a.l.ob(Math.min.apply(Math,x(l))), -a.h.updateDuration());h&&ly(a);m=t(d);for(n=m.next();!n.done;n=m.next())q=n.value,q.stream.isAudioMuxedInVideo||!q.stream.segmentIndex||Qf(q.stream.segmentIndex)||a.h.disableStream(q.stream);G(r)})};function my(a,b){return gy(a)?a.M.get(b.type):b.gf} -function hy(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,E,H,C,D,I,L,K,J,M,O,N,P,R,S,aa,W,Fa,Ga;return Q(function(xa){switch(xa.g){case 1:if(b.stream.isAudioMuxedInVideo)return xa.return();c=[];d=t(b.O());for(e=d.next();!e.done;e=d.next())f=e.value,g=new Bb(f),h=g.g,b.Le&&(0<=b.Qb&&h.add("_HLS_msn",String(b.Qb)),0<=b.Rb&&h.add("_HLS_part",String(b.Rb))),b.Me&&h.add("_HLS_skip","YES"),Qb(h)&&Fb(g,Gb(h.toString())),c.push(g.toString());wa(xa,2);return F(xa,ey(a,c,!0).promise,4);case 4:k=xa.h;za(xa, -3);break;case 2:throw l=Aa(xa),a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return xa.return();m=Ux(a.Pa,k.data);if(1!=m.type)throw new U(2,4,4017);n=k.uri;n==k.originalUri||b.O().includes(n)||b.wf.push(n);q=Mx(m.ea,"EXT-X-DEFINE");r=ny(a,q,n);u=b.stream;w=my(a,b);return F(xa,oy(a,m,u.mimeType,b.O,r),5);case 5:v=xa.h;y=v.keyIds;z=v.drmInfos;A=v.encrypted;B=v.Dh;u.encrypted||!A||B||(u.encrypted=!0);E=function(qa,Da){return qa.size===Da.size&&[].concat(x(qa)).every(function(Ja){return Da.has(Ja)})}; -E(u.keyIds,y)||(u.keyIds=y,u.drmInfos=z,a.h.newDrmInfo(u));H=py(a,m,w,r,b.O,b.type);C=H.segments;if(D=H.bandwidth)u.bandwidth=D;I=Rl(u);L=t(C);for(K=L.next();!K.done;K=L.next())J=K.value,J.Z&&(J.Z.nd=I);u.segmentIndex.Vd(C,a.l.Eb());C.length&&(M=Px(m.ea,"EXT-X-MEDIA-SEQUENCE",0),N=(O=Ox(m.ea,"EXT-X-SKIP"))?Number(Ix(O,"SKIPPED-SEGMENTS")):0,P=qy(M,C),R=P.Qb,S=P.Rb,b.Qb=R+N,b.Rb=S,aa=w.get(M),u.segmentIndex.$a(aa));if(W=Qf(u.segmentIndex))b.Rc=W.startTime,Fa=C[C.length-1],b.ic=Fa.endTime;if(Ga=Ox(m.ea, -"EXT-X-ENDLIST"))b.Od=!0;ry(a,m);sy(a,m.ea,u.type,r,b.O);G(xa)}})}p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(a){this.j&&this.j.banLocation(a)};p.setMediaElement=function(a){this.U=a}; -function ty(a,b,c){c=void 0===c?!1:c;for(var d=-1==a.K,e=t(b),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.stream.segmentIndex,h=my(a,f);if(g=Qf(g)){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=t(k.value);var l=k.next().value;if(k.next().value==g.startTime){d&&(a.K=Math.max(a.K,l));f.ig=l;break}}}}if(!(0>a.K))for(b=t(b),d=b.next();!d.done;d=b.next())if(d=d.value,uy(a,d.type)||c)if(e=d.stream.segmentIndex)if(f=a.K-d.ig,0Math.abs(c))){b.Rc+=c;b.ic+=c;a=my(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.O()}} -function fy(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,E,H,C,D,I,L,K,J,M,O,N,P,R,S,aa,W,Fa,Ga,xa,qa,Da,Ja,ra,da;return Q(function(sa){switch(sa.g){case 1:c=yc;d=Ux(a.Pa,b);e=Mx(d.ea,"EXT-X-DEFINE");f=[];g=[];h=[];a.l=new el(null,0);a.l.Wc(!0);k=function(){return[a.C]};l=null;m=new Map;if(1==d.type)return a.N=!1,R=Mx(d.ea,"EXT-X-DEFINE"),m=ny(a,R,a.C),l=c.wa,S="",aa=new Map,F(sa,xy(a,a.F++,m,d,k,"",l,S,!0,"Media Playlist",null,aa,null,!1,null,!1),7);yy(a,e);n=Mx(d.ea,"EXT-X-MEDIA");q=Mx(d.ea,"EXT-X-STREAM-INF"); -r=Mx(d.ea,"EXT-X-IMAGE-STREAM-INF");u=Mx(d.ea,"EXT-X-I-FRAME-STREAM-INF");w=Mx(d.ea,"EXT-X-SESSION-KEY");v=Mx(d.ea,"EXT-X-SESSION-DATA");y=Mx(d.ea,"EXT-X-CONTENT-STEERING");zy(a,v);return F(sa,Ay(a,y),4);case 4:if(!a.g.ignoreSupplementalCodecs){z=[];A=t(q);B=A.next();for(E={};!B.done;E={Qi:void 0},B=A.next())if(H=B.value,C=Ix(H,"SUPPLEMENTAL-CODECS"))E.Qi=C.split(/\s*,\s*/).map(function(Za){return Za.split("/")[0]}),D=H.attributes.map(function(Za){return function($a){var hb=$a.name,rb=$a.value;"CODECS"== -hb&&(rb=Za.Qi.join(","),$a=$a.value.split(","),1<$a.length&&($a=uc("audio",$a))&&(rb+=","+$a));return new Lx(hb,rb)}}(E)),z.push(new Fx(H.id,H.name,D,null));q.push.apply(q,x(z));I=[];L=t(u);K=L.next();for(J={};!K.done;J={Ri:void 0},K=L.next())if(M=K.value,O=Ix(M,"SUPPLEMENTAL-CODECS"))J.Ri=O.split(/\s*,\s*/).map(function(Za){return Za.split("/")[0]}),N=M.attributes.map(function(Za){return function($a){var hb=$a.name;$a=$a.value;"CODECS"==hb&&($a=Za.Ri.join(","));return new Lx(hb,$a)}}(J)),I.push(new Fx(M.id, -M.name,N,null));u.push.apply(u,x(I))}By(a,q);Cy(a,n);P=Dy(a,u);return F(sa,Ey(a,q,w,n,k,a.A,P),5);case 5:return f=sa.h,g=Fy(a,n),F(sa,Gy(a,r,u),6);case 6:h=sa.h;sa.u(3);break;case 7:W=sa.h,a.i.set(a.C,W),W.stream&&(Fa=Rl(W.stream),W.stream.segmentIndex.Cb(function(Za){Za.Z&&(Za.Z.nd=Fa)})),l=W.stream.type,Ga=!0,a.g.disableAudio&&"audio"==W.type?Ga=!1:a.g.disableVideo&&"video"==W.type&&!W.stream.codecs.includes(",")&&(Ga=!1),Ga&&f.push({id:0,language:gf(S||"und"),disabledUntilTime:0,primary:!0,audio:"audio"== -W.type?W.stream:null,video:"video"==W.type?W.stream:null,bandwidth:W.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new U(2,7,7001);Hy(a,d);1==d.type&&(gy(a)&&(Iy(a,d),xa=a.o,a.B.ha(xa)),qa=Array.from(a.i.values()),Jy(a,qa),ly(a),sy(a,d.ea,l,m,k));a.m={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode, -type:"HLS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:a.s};if(a.$||!a.g.hls.disableCodecGuessing){sa.u(8);break}Da=[];Ja=t(a.m.variants);for(ra=Ja.next();!ra.done;ra=Ja.next())da=ra.value,da.audio&&""===da.audio.codecs&&Da.push(da.audio.createSegmentIndex()),da.video&&""===da.video.codecs&&Da.push(da.video.createSegmentIndex());return F(sa,Promise.all(Da),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.m),G(sa)}})} -function Ky(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A;return Q(function(B){if(1==B.g){c=gm(a.g.hls.mediaPlaylistFullMimeType);if(!b.length)return B.return(c);d=Ly(a,b);e=d.segment;f=d.segmentIndex;g=e.O();h=g[0];k=new Bb(h);l=k.mb.split(".").pop();return(m=My.get(l))?B.return(gm(m)):F(B,Promise.all([Ny(a,e.Z,0),Ny(a,e,f)]),2)}n=B.h;q=n[1].mimeType;r=n[0].data;u=n[1].data;w="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" ");v=["audio/mp4","video/mp4","video/iso.segment"];y=e.Z||v.includes(q); -if(!y&&qk(Tb(u))){var E=u,H=a.g.disableAudio,C=a.g.disableVideo,D=a.g.disableText;var I=Tb(E);var L=(new ak).parse(I),K=L.Ld();I=L.Cg();var J=[],M=!1,O=!1;if(!H)switch(K.audio){case "aac":case "aac-loas":L.rb().length&&(J.push("mp4a.40.2"),M=!0);break;case "mp3":L.rb().length&&(J.push("mp4a.40.34"),M=!0);break;case "ac3":L.rb().length&&(J.push("ac-3"),M=!0);break;case "ec3":L.rb().length&&(J.push("ec-3"),M=!0);break;case "opus":L.rb().length&&(J.push("opus"),M=!0)}if(!C)switch(K.video){case "avc":I.codec? -J.push(I.codec):J.push("avc1.42E01E");O=!0;break;case "hvc":I.codec?J.push(I.codec):J.push("hvc1.1.6.L93.90");O=!0;break;case "av1":J.push("av01.0.01M.08"),O=!0}if(J.length){H=M&&!O;C=new Map;if(O&&!D){D=new Lc("video/mp2t");D.rf(E);E=t(D.Of());for(O=E.next();!O.done;O=E.next())O=O.value,C.set(O,O);D.Bd()}I={type:H?"audio":"video",mimeType:"video/mp2t",codecs:J.join(", "),language:null,height:I.height,width:I.width,channelCount:null,sampleRate:null,closedCaptions:C,le:null,colorGamut:null,frameRate:I.frameRate}}else I= -null;if(z=I)return B.return(z)}else if(y||w.includes(l))if(A=hm(r,u,a.g.disableText))return B.return(A);return q?B.return(gm(q)):B.return(c)})} -function Ny(a,b,c){var d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(!b)return l.return({mimeType:null,data:null});d=Rg;e=mm(b.O(),b.wc(),b.uc(),a.g.retryParameters);f=b instanceof qj?1:0;return F(l,Oy(a,e,d,{type:f}).promise,2);case 2:g=l.h;h=g.data;if(!b.aesKey){l.u(3);break}return F(l,lm(h,b.aesKey,c),4);case 4:h=l.h;case 3:return b instanceof qj?b.ee(h,!0):b.ee(h),(k=g.headers["content-type"])&&(k=k.split(";")[0].toLowerCase()),l.return({mimeType:k,data:h})}})} -function ly(a){if(gy(a)){if(a.Ba==Py){for(var b=Infinity,c=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&!e.stream.isAudioMuxedInVideo&&(b=Math.min(b,e.ic),c=Math.min(c,e.Rc));b=b-c||0;isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.Bf(b)}}else a.l.ob(Qy(a));if(!a.l.o)for(b=t(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=Qf(c.stream.segmentIndex))&& -c.h&&a.l.gh(c.h);a.l.ef()}function yy(a,b){var c=(new Bb(a.C)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Ix(e,"NAME");var f=Ix(e,"VALUE");e=Ix(e,"QUERYPARAM");d&&f&&(a.A.has(d)||a.A.set(d,f));e&&(d=c.get(e)[0])&&!a.A.has(d)&&a.A.set(e,d)}} -function ny(a,b,c){c=(new Bb(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=Ix(f,"NAME"),h=Ix(f,"VALUE");e=Ix(f,"QUERYPARAM");f=Ix(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.A.get(f))&&d.set(f,e)}return d} -function By(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Ix(d,"AUDIO");c=Ix(d,"VIDEO");var f=Ix(d,"SUBTITLES");d=Ry(a,d);if(f){var g=uc(wc,d);a.H.set(f,g);Uc(d,g)}e&&(f=uc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.H.set(e,f));c&&(e=uc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.H.set(c,e))}} -function zy(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Ix(d,"DATA-ID");c=Ix(d,"URI");var f=Ix(d,"LANGUAGE");d=Ix(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",Qx([a.C],c,a.A)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new V("sessiondata",e);if(a.h)a.h.onEvent(c)}} -function Ay(a,b){var c,d,e,f,g,h;return Q(function(k){if(!a.h||!a.g)return k.return();d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=Ix(f,"PATHWAY-ID"),h=Ix(f,"SERVER-URI"),g&&h){a.j=new tv(a.h);a.j.configure(a.g);a.j.i=[a.C];a.j.setManifestType("HLS");a.j.h=g;c=uv(a.j,h);break}return F(k,c,0)})} -function Fy(a,b){var c=Nx(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Sy(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=Jx(d.value,"GROUP-ID");if(d=a.H.get(e))if(e=a.I.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Ty(wc,d)||Uy(wc),Vy(f.stream)}}return b.filter(function(g){return g})} -function Vy(a){var b=new Set([De(a.mimeType,a.codecs)]);a.segmentIndex&&a.segmentIndex.Cb(function(c){c.mimeType&&b.add(De(c.mimeType,a.codecs))});a.fullMimeTypes=b} -function Gy(a,b,c){var d,e;return Q(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return Q(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);wa(m,2);return F(m,Wy(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=Aa(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=Xy(a,g);return"image"!==h.stream.type?null:h.stream}catch(k){if(a.g.hls.ignoreImageStreamFailures)return null; -throw k;}})),F(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}function Yy(a,b,c){b=b.filter(function(h){var k=Ix(h,"URI")||"";h=Ix(h,"TYPE");return"SUBTITLES"!=h&&(""!=k||"AUDIO"==h)});var d={};b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=Gx(e,!a.j);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)Sy(a,d[g],c,!1)}function Dy(a,b){return b.map(function(c){c=Xy(a,c);return"video"!==c.stream.type?null:c.stream}).filter(function(c){return c})} -function Ey(a,b,c,d,e,f,g){var h,k,l,m,n,q,r,u,w,v,y,z,A,B,E,H,C,D,I,L,K,J,M,O,N,P,R,S,aa,W,Fa,Ga,xa,qa,Da,Ja;return Q(function(ra){switch(ra.g){case 1:h=[];k=new Set;if(a.g.ignoreDrmInfo||!(0c}).map(td).filter(df);return d.length?qc(a.A,d):[]}T("shaka.dash.DashParser",Jw);ti("application/dash+xml",function(){return new Jw});ti("video/vnd.mpeg.dash.mpd",function(){return new Jw});function rx(){}T("shaka.dependencies",rx);rx.has=function(a){return sx.has(a)};rx.add=function(a,b){if(!tx[a])throw Error(a+" is not supported");a==ux?wb("mux.js","mux.js is no longer used in Shaka Player."):sx.set(a,function(){return b})};var ux="muxjs",tx={vm:ux,ISOBoxer:"ISOBoxer"};rx.Allowed=tx;var sx=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function vx(){this.j=new pb(function(){return navigator.userAgent.match(/Smart( ?|_)TV/i)||navigator.userAgent.match(/Android ?TV/i)?"TV":navigator.userAgentData?navigator.userAgentData.mobile?"MOBILE":"DESKTOP":/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)?"MOBILE":navigator.userAgentData&&navigator.userAgentData.platform?"android"==navigator.userAgentData.platform.toLowerCase()?"MOBILE":"DESKTOP":navigator.userAgent.includes("Android")?"MOBILE":"DESKTOP"});this.l=new pb(function(){return navigator.vendor.includes("Apple")&& +(navigator.userAgent.includes("Version/")||navigator.userAgent.includes("OS/"))?"WEBKIT":navigator.userAgent.includes("Edge/")?"EDGE":navigator.userAgent.includes("Chrome/")?"CHROMIUM":navigator.userAgent.includes("Firefox/")?"GECKO":"UNKNOWN"})}function wi(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}p=vx.prototype;p.bc=function(){return!!navigator.mediaCapabilities};p.La=function(){return this.j.value()};p.Da=function(){return this.l.value()};p.ce=function(){return!1}; +p.xi=function(){return!1};p.Ye=function(){return!1};p.zi=function(){return!1};p.be=function(){return!1};p.Zc=function(){return!0};p.$c=function(){return!0};p.ge=function(){return!0};p.Ei=function(){return 0};p.fc=function(){return Promise.resolve({width:Infinity,height:Infinity})};p.Ni=function(){return!1};p.kh=function(){return!1}; +p.Sa=function(a){var b=this.La();if("TV"===b||"CONSOLE"===b||"CAST"===b)a.ads.customPlayheadTracker=!0,a.ads.skipPlayDetection=!0,a.ads.supportsMultipleMediaElements=!1;return a};p.ph=function(){return!!window.indexedDB};p.ui=function(){return[]};function Cn(a){rb();return void 0!==window.matchMedia&&window.matchMedia("(color-gamut: p3)").matches?a?"HLG":"PQ":"SDR"}p.Ui=function(){return!1};p.ji=function(){return!1};p.$g=function(){return!1};p.oh=function(){return!0};p.ki=function(){return!1}; +p.Ti=function(){return!0};p.toString=function(){return"Device: "+this.Mb()+" v"+this.Ca()+"; Type: "+this.La()};function wx(){vx.call(this);this.g=new pb(function(){var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null});this.h=new pb(function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1this.g&&a.push("opus");return a};p.ji=function(){return!0};p.ki=function(){return 3===this.Ca()}; +navigator.userAgent.includes("Tizen")&&(tb=function(){return new Fx});function Gx(){vx.apply(this,arguments)}pa(Gx,vx);Gx.prototype.Ca=function(){return null};Gx.prototype.Mb=function(){return"Vizio"};Gx.prototype.La=function(){return"TV"};Gx.prototype.bc=function(){return!1};navigator.userAgent.includes("VIZIO SmartCast")&&(tb=function(){return new Gx});function Hx(){vx.call(this);this.h=new pb(function(){return navigator.userAgent.includes("DT_STB_BCM")});this.g=new pb(function(){if(navigator.userAgent.includes("DT_STB_BCM"))return 11;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null})}pa(Hx,vx);p=Hx.prototype;p.Ca=function(){return this.g.value()};p.Mb=function(){return"WebKit STB"};p.La=function(){return"TV"};p.Da=function(){return"WEBKIT"}; +p.bc=function(){return!1};p.Zc=function(){var a=this.g.value();return null!==a?15<=a:!0};p.fc=function(){return Promise.resolve({width:window.screen.width*window.devicePixelRatio,height:window.screen.height*window.devicePixelRatio})};p.oh=function(){return!this.h.value()}; +if(navigator.userAgent.includes("DT_STB_BCM")||navigator.userAgent.includes("DT_STB_BCM")||!(!(navigator.vendor||"").includes("Apple")||/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1b.length||"data"!=b[0])throw new U(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new U(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1",lc(b),""].join("\n")))d.licenseServerUri=Eu(b);d=Promise.resolve(d)}else d=Promise.resolve(null);return d}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(b){var c=Rx(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";"SAMPLE-AES"==c&&(d="cbcs");c=Rx(b,"URI");c=hy(c.split("?")[0]);c=Tb(c.data);d=rc("com.huawei.wiseplay",d,[{initDataType:"cenc",initData:c}]);(b=Qx(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2)); +b=Promise.resolve(d)}else b=Promise.resolve(null);return b});this.ab=new Set;this.i=new Map;this.l=null;this.F="";this.Oa=new ay;this.L=-1;this.ia=Infinity;this.$=this.qc=this.Za=!1;this.C=new af(function(){if(a.U&&!a.g.continueLoadingWhenPaused&&(a.S.Ja(a.U,"timeupdate"),a.U.paused)){a.S.za(a.U,"timeupdate",function(){return ky(a)});return}ky(a)});this.Ba=ly;this.m=null;this.Ta=0;this.o=Infinity;this.Xa=this.Ka=this.P=0;this.W=new Fg;this.H=new Map;this.I=new Map;this.ya=new Map;this.oa=new Map; +this.M=new Map;this.va=new Map;this.wa=new Map;this.nc=this.ka=!1;this.eb=new Va(5);this.j=null;this.N=!0;this.S=new jb;this.s=this.U=null;this.Xb=function(){return!1}}p=iy.prototype;p.configure=function(a,b){var c=this.h&&a.updatePeriod!=this.g.updatePeriod&&0<=a.updatePeriod;this.g=a;b&&(this.Xb=b);this.j&&this.j.configure(this.g);c&&this.m&&this.m.presentationTimeline.V()&&this.C.Hb()}; +p.start=function(a,b){var c=this,d;return Q(function(e){return 1==e.g?(c.h=b,c.ka=b.isLowLatencyMode(),F(e,my(c,[a]).promise,2)):3!=e.g?(d=e.h,c.F=d.uri,F(e,ny(c,d.data),3)):e.return(c.m)})}; +p.stop=function(){this.C&&(this.C.stop(),this.C=null);var a=[];this.W&&(a.push(this.W.destroy()),this.W=null);this.g=this.h=null;this.ab.clear();this.m=null;this.i.clear();this.K.clear();this.I.clear();this.A.clear();this.ya.clear();this.oa.clear();this.M.clear();this.va.clear();this.wa.clear();this.j&&this.j.destroy();this.S&&(this.S.release(),this.S=null);return Promise.all(a)}; +p.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,q;return Q(function(r){if(1==r.g){if(!oy(a))return r.return();b=[];c=Array.from(a.i.values());a.o=Infinity;a.m.gapCount=0;d=c.filter(function(u){return u.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(py(a,g));return F(r,Promise.all(b),2)}qy(a,d.map(function(u){return u.stream}));h=d.some(function(u){return 0==u.Pd});d.length&&!h&&(k=ry,sy(a,k.aj),l=d.map(function(u){return u.lc}),a.l.ob(Math.min.apply(Math,x(l))), +a.h.updateDuration());h&&ty(a);m=t(d);for(n=m.next();!n.done;n=m.next())q=n.value,q.stream.isAudioMuxedInVideo||!q.stream.segmentIndex||Rf(q.stream.segmentIndex)||a.h.disableStream(q.stream);G(r)})};function uy(a,b){return oy(a)?a.B.get(b.type):b.ef} +function py(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,C,E,H,B,D,I,K,J,L,N,O,M,P,R,S,aa,W,Fa,Ga;return Q(function(ya){switch(ya.g){case 1:if(b.stream.isAudioMuxedInVideo)return ya.return();c=[];d=t(b.O());for(e=d.next();!e.done;e=d.next())f=e.value,g=new Bb(f),h=g.g,b.Ke&&(0<=b.Qb&&h.add("_HLS_msn",String(b.Qb)),0<=b.Rb&&h.add("_HLS_part",String(b.Rb))),b.Le&&h.add("_HLS_skip","YES"),Qb(h)&&Fb(g,Gb(h.toString())),c.push(g.toString());wa(ya,2);return F(ya,my(a,c,!0).promise,4);case 4:k=ya.h;za(ya, +3);break;case 2:throw l=Aa(ya),a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return ya.return();m=by(a.Oa,k.data);if(1!=m.type)throw new U(2,4,4017);n=k.uri;n==k.originalUri||b.O().includes(n)||b.wf.push(n);q=Ux(m.ba,"EXT-X-DEFINE");r=vy(a,q,n);u=b.stream;w=uy(a,b);return F(ya,wy(a,m,u.mimeType,b.O,r),5);case 5:v=ya.h;y=v.keyIds;z=v.drmInfos;A=v.encrypted;C=v.Eh;u.encrypted||!A||C||(u.encrypted=!0);E=function(qa,Ca){return qa.size===Ca.size&&[].concat(x(qa)).every(function(Ja){return Ca.has(Ja)})}; +E(u.keyIds,y)||(u.keyIds=y,u.drmInfos=z,a.h.newDrmInfo(u));H=xy(a,m,w,r,b.O,b.type);B=H.segments;if(D=H.bandwidth)u.bandwidth=D;I=Yl(u);K=t(B);for(J=K.next();!J.done;J=K.next())L=J.value,L.Y&&(L.Y.od=I);u.segmentIndex.Wd(B,a.l.Fb());B.length&&(N=Xx(m.ba,"EXT-X-MEDIA-SEQUENCE",0),M=(O=Wx(m.ba,"EXT-X-SKIP"))?Number(Qx(O,"SKIPPED-SEGMENTS")):0,P=yy(N,B),R=P.Qb,S=P.Rb,b.Qb=R+M,b.Rb=S,aa=w.get(N),u.segmentIndex.$a(aa));if(W=Rf(u.segmentIndex))b.Tc=W.startTime,Fa=B[B.length-1],b.lc=Fa.endTime;if(Ga=Wx(m.ba, +"EXT-X-ENDLIST"))b.Pd=!0;zy(a,m);Ay(a,m.ba,u.type,r,b.O);G(ya)}})}p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(a){this.j&&this.j.banLocation(a)};p.setMediaElement=function(a){this.U=a}; +function By(a,b,c){c=void 0===c?!1:c;for(var d=-1==a.L,e=t(b),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.stream.segmentIndex,h=uy(a,f);if(g=Rf(g)){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=t(k.value);var l=k.next().value;if(k.next().value==g.startTime){d&&(a.L=Math.max(a.L,l));f.jg=l;break}}}}if(!(0>a.L))for(b=t(b),d=b.next();!d.done;d=b.next())if(d=d.value,Cy(a,d.type)||c)if(e=d.stream.segmentIndex)if(f=a.L-d.jg,0Math.abs(c))){b.Tc+=c;b.lc+=c;a=uy(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.O()}} +function ny(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,C,E,H,B,D,I,K,J,L,N,O,M,P,R,S,aa,W,Fa,Ga,ya,qa,Ca,Ja,ra,da;return Q(function(sa){switch(sa.g){case 1:c=yc;d=by(a.Oa,b);e=Ux(d.ba,"EXT-X-DEFINE");f=[];g=[];h=[];a.l=new ll(null,0);a.l.Yc(!0);k=function(){return[a.F]};l=null;m=new Map;if(1==d.type)return a.N=!1,R=Ux(d.ba,"EXT-X-DEFINE"),m=vy(a,R,a.F),l=c.xa,S="",aa=new Map,F(sa,Fy(a,a.G++,m,d,k,"",l,S,!0,"Media Playlist",null,aa,null,!1,null,!1),7);Gy(a,e);n=Ux(d.ba,"EXT-X-MEDIA");q=Ux(d.ba,"EXT-X-STREAM-INF"); +r=Ux(d.ba,"EXT-X-IMAGE-STREAM-INF");u=Ux(d.ba,"EXT-X-I-FRAME-STREAM-INF");w=Ux(d.ba,"EXT-X-SESSION-KEY");v=Ux(d.ba,"EXT-X-SESSION-DATA");y=Ux(d.ba,"EXT-X-CONTENT-STEERING");Hy(a,v);return F(sa,Iy(a,y),4);case 4:if(!a.g.ignoreSupplementalCodecs){z=[];A=t(q);C=A.next();for(E={};!C.done;E={Ri:void 0},C=A.next())if(H=C.value,B=Qx(H,"SUPPLEMENTAL-CODECS"))E.Ri=B.split(/\s*,\s*/).map(function(Za){return Za.split("/")[0]}),D=H.attributes.map(function(Za){return function($a){var ib=$a.name,qb=$a.value;"CODECS"== +ib&&(qb=Za.Ri.join(","),$a=$a.value.split(","),1<$a.length&&($a=uc("audio",$a))&&(qb+=","+$a));return new Tx(ib,qb)}}(E)),z.push(new Nx(H.id,H.name,D,null));q.push.apply(q,x(z));I=[];K=t(u);J=K.next();for(L={};!J.done;L={Si:void 0},J=K.next())if(N=J.value,O=Qx(N,"SUPPLEMENTAL-CODECS"))L.Si=O.split(/\s*,\s*/).map(function(Za){return Za.split("/")[0]}),M=N.attributes.map(function(Za){return function($a){var ib=$a.name;$a=$a.value;"CODECS"==ib&&($a=Za.Si.join(","));return new Tx(ib,$a)}}(L)),I.push(new Nx(N.id, +N.name,M,null));u.push.apply(u,x(I))}Jy(a,q);Ky(a,n);P=Ly(a,u);return F(sa,My(a,q,w,n,k,a.A,P),5);case 5:return f=sa.h,g=Ny(a,n),F(sa,Oy(a,r,u),6);case 6:h=sa.h;sa.u(3);break;case 7:W=sa.h,a.i.set(a.F,W),W.stream&&(Fa=Yl(W.stream),W.stream.segmentIndex.Db(function(Za){Za.Y&&(Za.Y.od=Fa)})),l=W.stream.type,Ga=!0,a.g.disableAudio&&"audio"==W.type?Ga=!1:a.g.disableVideo&&"video"==W.type&&!W.stream.codecs.includes(",")&&(Ga=!1),Ga&&f.push({id:0,language:hf(S||"und"),disabledUntilTime:0,primary:!0,audio:"audio"== +W.type?W.stream:null,video:"video"==W.type?W.stream:null,bandwidth:W.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new U(2,7,7001);Py(a,d);1==d.type&&(oy(a)&&(Qy(a,d),ya=a.o,a.C.ha(ya)),qa=Array.from(a.i.values()),Ry(a,qa),ty(a),Ay(a,d.ba,l,m,k));a.m={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode, +type:"HLS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:a.s};if(a.$||!a.g.hls.disableCodecGuessing){sa.u(8);break}Ca=[];Ja=t(a.m.variants);for(ra=Ja.next();!ra.done;ra=Ja.next())da=ra.value,da.audio&&""===da.audio.codecs&&Ca.push(da.audio.createSegmentIndex()),da.video&&""===da.video.codecs&&Ca.push(da.video.createSegmentIndex());return F(sa,Promise.all(Ca),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.m),G(sa)}})} +function Sy(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A;return Q(function(C){if(1==C.g){c=nm(a.g.hls.mediaPlaylistFullMimeType);if(!b.length)return C.return(c);d=Ty(a,b);e=d.segment;f=d.segmentIndex;g=e.O();h=g[0];k=new Bb(h);l=k.mb.split(".").pop();return(m=Uy.get(l))?C.return(nm(m)):F(C,Promise.all([Vy(a,e.Y,0),Vy(a,e,f)]),2)}n=C.h;q=n[1].mimeType;r=n[0].data;u=n[1].data;w="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" ");v=["audio/mp4","video/mp4","video/iso.segment"];y=e.Y||v.includes(q); +if(!y&&rk(Tb(u))){var E=u,H=a.g.disableAudio,B=a.g.disableVideo,D=a.g.disableText;var I=Tb(E);var K=(new bk).parse(I),J=K.Md();I=K.Dg();var L=[],N=!1,O=!1;if(!H)switch(J.audio){case "aac":case "aac-loas":K.rb().length&&(L.push("mp4a.40.2"),N=!0);break;case "mp3":K.rb().length&&(L.push("mp4a.40.34"),N=!0);break;case "ac3":K.rb().length&&(L.push("ac-3"),N=!0);break;case "ec3":K.rb().length&&(L.push("ec-3"),N=!0);break;case "opus":K.rb().length&&(L.push("opus"),N=!0)}if(!B)switch(J.video){case "avc":I.codec? +L.push(I.codec):L.push("avc1.42E01E");O=!0;break;case "hvc":I.codec?L.push(I.codec):L.push("hvc1.1.6.L93.90");O=!0;break;case "av1":L.push("av01.0.01M.08"),O=!0}if(L.length){H=N&&!O;B=new Map;if(O&&!D){D=new Lc("video/mp2t");D.rf(E);E=t(D.Pf());for(O=E.next();!O.done;O=E.next())O=O.value,B.set(O,O);D.Cd()}I={type:H?"audio":"video",mimeType:"video/mp2t",codecs:L.join(", "),language:null,height:I.height,width:I.width,channelCount:null,sampleRate:null,closedCaptions:B,le:null,colorGamut:null,frameRate:I.frameRate}}else I= +null;if(z=I)return C.return(z)}else if(y||w.includes(l))if(A=om(r,u,a.g.disableText))return C.return(A);return q?C.return(nm(q)):C.return(c)})} +function Vy(a,b,c){var d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(!b)return l.return({mimeType:null,data:null});d=Sg;e=tm(b.O(),b.Ac(),b.yc(),a.g.retryParameters);f=b instanceof rj?1:0;return F(l,Wy(a,e,d,{type:f}).promise,2);case 2:g=l.h;h=g.data;if(!b.aesKey){l.u(3);break}return F(l,sm(h,b.aesKey,c),4);case 4:h=l.h;case 3:return b instanceof rj?b.ee(h,!0):b.ee(h),(k=g.headers["content-type"])&&(k=k.split(";")[0].toLowerCase()),l.return({mimeType:k,data:h})}})} +function ty(a){if(oy(a)){if(a.Ba==Xy){for(var b=Infinity,c=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&!e.stream.isAudioMuxedInVideo&&(b=Math.min(b,e.lc),c=Math.min(c,e.Tc));b=b-c||0;isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.Cf(b)}}else a.l.ob(Yy(a));if(!a.l.o)for(b=t(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=Rf(c.stream.segmentIndex))&& +c.h&&a.l.hh(c.h);a.l.df()}function Gy(a,b){var c=(new Bb(a.F)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Qx(e,"NAME");var f=Qx(e,"VALUE");e=Qx(e,"QUERYPARAM");d&&f&&(a.A.has(d)||a.A.set(d,f));e&&(d=c.get(e)[0])&&!a.A.has(d)&&a.A.set(e,d)}} +function vy(a,b,c){c=(new Bb(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=Qx(f,"NAME"),h=Qx(f,"VALUE");e=Qx(f,"QUERYPARAM");f=Qx(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.A.get(f))&&d.set(f,e)}return d} +function Jy(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Qx(d,"AUDIO");c=Qx(d,"VIDEO");var f=Qx(d,"SUBTITLES");d=Zy(a,d);if(f){var g=uc(wc,d);a.I.set(f,g);Uc(d,g)}e&&(f=uc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.I.set(e,f));c&&(e=uc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.I.set(c,e))}} +function Hy(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Qx(d,"DATA-ID");c=Qx(d,"URI");var f=Qx(d,"LANGUAGE");d=Qx(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",Yx([a.F],c,a.A)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new V("sessiondata",e);if(a.h)a.h.onEvent(c)}} +function Iy(a,b){var c,d,e,f,g,h;return Q(function(k){if(!a.h||!a.g)return k.return();d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=Qx(f,"PATHWAY-ID"),h=Qx(f,"SERVER-URI"),g&&h){a.j=new Bv(a.h);a.j.configure(a.g);a.j.i=[a.F];a.j.setManifestType("HLS");a.j.h=g;c=Cv(a.j,h);break}return F(k,c,0)})} +function Ny(a,b){var c=Vx(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return $y(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=Rx(d.value,"GROUP-ID");if(d=a.I.get(e))if(e=a.K.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=az(wc,d)||bz(wc),cz(f.stream)}}return b.filter(function(g){return g})} +function cz(a){var b=new Set([Ee(a.mimeType,a.codecs)]);a.segmentIndex&&a.segmentIndex.Db(function(c){c.mimeType&&b.add(Ee(c.mimeType,a.codecs))});a.fullMimeTypes=b} +function Oy(a,b,c){var d,e;return Q(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return Q(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);wa(m,2);return F(m,dz(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=Aa(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=ez(a,g);return"image"!==h.stream.type?null:h.stream}catch(k){if(a.g.hls.ignoreImageStreamFailures)return null; +throw k;}})),F(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}function fz(a,b,c){b=b.filter(function(h){var k=Qx(h,"URI")||"";h=Qx(h,"TYPE");return"SUBTITLES"!=h&&(""!=k||"AUDIO"==h)});var d={};b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=Ox(e,!a.j);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)$y(a,d[g],c,!1)}function Ly(a,b){return b.map(function(c){c=ez(a,c);return"video"!==c.stream.type?null:c.stream}).filter(function(c){return c})} +function My(a,b,c,d,e,f,g){var h,k,l,m,n,q,r,u,w,v,y,z,A,C,E,H,B,D,I,K,J,L,N,O,M,P,R,S,aa,W,Fa,Ga,ya,qa,Ca,Ja;return Q(function(ra){switch(ra.g){case 1:h=[];k=new Set;if(a.g.ignoreDrmInfo||!(0d-2&&(e=Math.max(1,d-2));for(e=d-e;ea.s&&(c=Math.min(-a.s,c),a.s+=c);a.l.Ii(0);a.l.fh(c);a.l.Wc(!1)} -function jz(a,b,c,d,e){var f=Ox(c,"EXT-X-MAP");if(!f)return null;var g=Jx(f,"URI"),h=Qx(d(),g,e);g=[h.toString(),Ix(f,"BYTERANGE","")].join("-");if(!a.xa.has(g)){var k=void 0,l=null,m=!1;c=t(c);for(var n=c.next();!n.done;n=c.next())n=n.value,"EXT-X-KEY"==n.name?(m=Jx(n,"METHOD"),Zy(m)&&n.idK?1:0}),c=0;cm))continue}if(null==m){var r=Ix(g,"DURATION")||Ix(g,"PLANNED-DURATION");if(r){var u= -parseFloat(r);isNaN(u)||(m=l+u);if(0>k-f+u)continue}}var w=Ix(g,"CLASS")||"com.apple.quicktime.HLS",v="YES"==Ix(g,"END-ON-NEXT");if(null==m&&v){for(var y=c+1;yk){m=Math.max(0,B-f);break}}}if(null==m)continue}y=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var E=[],H=t(g.attributes),C=H.next();!C.done;C=H.next()){var D=C.value;if(!y.includes(D.name)){var I= -Sx(D.value,d);if("X-ASSET-URI"==D.name||"X-ASSET-LIST"==D.name)I=Qx(e(),D.value,d)[0];E.push({key:D.name,description:"",data:I,mimeType:null,pictureType:null})}}if(1C)if(D){D=xd(D,"t",Fd);if(null==D)break;else if(I>=D)break;C=Math.ceil((D-I)/L)-1}else{if(Infinity==z)break;else if(I/v>=z)break;C=Math.ceil((z*v-I)/L)-1}for(D=0;D<=C;++D)E=I+L,B.push({start:I/v,end:E/v,xh:I}),I=E}v=B;y=t(y);for(z=y.next();!z.done;z=y.next())(z=Bz(a,w,z.value,v,u,l))&&("audio"!=z.type||a.g.disableAudio?"video"!=z.type||a.g.disableVideo?z.type!=wc||a.g.disableText||m.push(z):n.push(z):r.push(z))}q=[];r=t(0>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|b<<3; -b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function Fz(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function Gz(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""} -function Hz(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];e=t(e);for(var g=e.next(),h={};!g.done;h={Df:void 0},g=e.next())h.Df=g.value,d.push(new qj(h.Df.start,h.Df.end,function(k){return function(){return qc(a.l,[f.replace("{start time}",String(k.Df.xh))])}}(h),0,null,b,0,0,c.mssPrivateData.duration));return d}T("shaka.mss.MssParser",yz); -var Dz="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),Cz=(new Map).set("CAPT","main").set("SUBT","alternate").set("DESC","main");si("application/vnd.ms-sstr+xml",function(){return new yz});function Iz(a,b,c,d,e,f,g){if(200<=c&&299>=c&&202!=c||304==c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"],originalRequest:f};f=null;try{f=dc(b)}catch(h){}throw new U(401==c||403==c?2:1,1,1001,d,c,f,a,g,e||d);};function Jz(){} -function Kz(a,b,c,d,e,f){var g=new Lz;Xg(b.headers).forEach(function(m,n){g.append(n,m)});var h=new Mz,k={Hh:!1,Vi:!1};a=Nz(a,b,c,{body:b.body||void 0,headers:g,method:b.method,signal:h.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},k,d,e,b.streamDataCallback,f.minBytesForProgressEvents||0);a=new ug(a,function(){k.Hh=!0;h.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var l=new $e(function(){k.Vi=!0;h.abort()});l.ha(b/1E3);a.finally(function(){l.stop()})}return a} -function Nz(a,b,c,d,e,f,g,h,k){var l,m,n,q,r,u,w,v,y,z,A,B,E,H,C;return Q(function(D){switch(D.g){case 1:return l=Oz,m=Pz,q=new ArrayBuffer(0),u=r=0,w={},v=Date.now(),wa(D,2),F(D,l(a,d),4);case 4:n=D.h;w=Qz(n.headers);g(w);if("HEAD"==d.method){D.u(5);break}z=(y=n.headers.get("Content-Length"))?parseInt(y,10):0;if(!n.body)return F(D,n.arrayBuffer(),9);A=n.clone().body.getReader();B=function(I){function L(){var K,J,M,O;return Q(function(N){switch(N.g){case 1:return wa(N,2),F(N,A.read(),4);case 4:K= -N.h;za(N,3);break;case 2:return Aa(N),N.return();case 3:if(K.done){N.u(5);break}r+=K.value.byteLength;if(!h){N.u(5);break}return F(N,h(K.value),5);case 5:J=Date.now();M=r-u;if(100=k||K.done)O=K.done?0:z-r,f(J-v,M,O),u=r,v=J;K.done?I.close():(I.enqueue(K.value),L());G(N)}})}L()};new m({start:B});return F(D,n.arrayBuffer(),8);case 8:q=D.h;D.u(5);break;case 9:q=D.h,E=Date.now(),f(E-v,q.byteLength,0);case 5:b.headers.Range&&(H=b.headers.Range.replace("bytes=","").split("-").filter(function(I){return I}).map(function(I){return parseInt(I, -10)}),2==H.length&&q.byteLength!=H[1]-H[0]+1&&bb("Payload length does not match range requested bytes",b,n));za(D,3);break;case 2:C=Aa(D);if(e.Hh)throw new U(1,1,7001,a,c);if(e.Vi)throw new U(1,1,1003,a,c);throw new U(1,1,1002,a,C,c);case 3:return D.return(Iz(w,q,n.status,a,n.url,b,c))}})}function Qz(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b} -function Rz(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||"polyfill"in window.fetch||!window.AbortController)}T("shaka.net.HttpFetchPlugin",Jz);Jz.isSupported=Rz;Jz.parse=Kz;var Oz=window.fetch,Mz=window.AbortController,Pz=window.ReadableStream,Lz=window.Headers;Rz()&&(Hg("http",Kz,2,!0),Hg("https",Kz,2,!0),Hg("blob",Kz,2,!0));function Sz(){} -function Tz(a,b,c,d,e,f){var g=new Uz,h=Date.now(),k=0,l=new Promise(function(m,n){g.open(b.method,a,!0);g.responseType="arraybuffer";g.timeout=b.retryParameters.timeout;g.withCredentials=b.allowCrossSiteCredentials;g.onabort=function(){n(new U(1,1,7001,a,c))};var q=!1;g.onreadystatechange=function(){if(2==g.readyState&&!q){var u=Vz(g);e(u);q=!0}};g.onload=function(u){var w=Vz(g),v=g.response;try{d(Date.now()-h,u.loaded-k,0);var y=Iz(w,v,g.status,a,g.responseURL,b,c);m(y)}catch(z){n(z)}};g.onerror= -function(u){n(new U(1,1,1002,a,u,c))};g.ontimeout=function(){n(new U(1,1,1003,a,c))};g.onprogress=function(u){var w=Date.now(),v=f.minBytesForProgressEvents||0,y=u.loaded-k;if(100=v||u.lengthComputable&&u.loaded==u.total)d(w-h,y,4==g.readyState?0:u.total-u.loaded),k=u.loaded,h=w};for(var r in b.headers)g.setRequestHeader(r.toLowerCase(),b.headers[r]);g.send(b.body)});return new ug(l,function(){g.abort();return Promise.resolve()})} -function Vz(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}T("shaka.net.HttpXHRPlugin",Sz);Sz.parse=Tz;var Uz=window.XMLHttpRequest;Hg("http",Tz,1,!0);Hg("https",Tz,1,!0);Hg("blob",Tz,1,!0);function Wz(a,b,c,d,e){this.g=a;this.i=b;this.groupId=c;this.h=d;this.j=e}function Xz(a){var b=a.Wb(!1);return b?lc(b):a.O().map(function(c){return"{"+encodeURI(c.split("#xywh=")[0])+"}"}).join("")+":"+a.startByte+":"+a.endByte}function Yz(a,b){return mm(a.g.O(),a.g.startByte,a.g.endByte,b.streaming.retryParameters)};function Zz(){this.g=this.j=this.i=0;this.h=new Map;this.l=0}function $z(a,b){a.i+=b;var c=a.l;a.l++;a.h.set(c,b);return c}Zz.prototype.close=function(a,b){if(this.h.has(a)){var c=this.h.get(a);this.h.delete(a);this.j+=c;this.g+=b}};function aA(a){return 0==a.i?0:a.j/a.i};function bA(a){var b=this;this.s=a;this.i=new Map;this.h=new Tg(function(){return cA(b).catch(function(){})});this.j=[];this.o=function(){};this.m=function(){};this.g=new Zz;this.l=!1}bA.prototype.destroy=function(){return this.h.destroy()};function dA(a,b,c){a.o=b;a.m=c}function cA(a){a.l=!0;var b=a.j.map(function(c){return c()});a.j=[];return Promise.all(b)} -bA.prototype.queue=function(a,b,c,d,e){var f=this;Ug(this.h);var g=(this.i.get(a)||Promise.resolve()).then(function(){var h,k,l,m,n,q,r;return Q(function(u){if(1==u.g)return F(u,eA(f,b),2);h=u.h;if(f.h.g)throw new U(2,9,7001);if(d)for(m in k=Tb(h),l=new mh(k),l.data)n=Number(m),q=l.data[n],r=l.g[n],f.m(q,r);f.g.close(c,h.byteLength);f.o(aA(f.g),f.g.g);return u.return(e(h))})});this.i.set(a,g);return g}; -function fA(a,b,c,d,e,f){Ug(a.h);var g=(a.i.get(b)||Promise.resolve()).then(function(){if(a.h.g)throw new U(2,9,7001);if(e){var h=Tb(c);h=new mh(h);for(var k in h.data){var l=Number(k);a.m(h.data[l],h.g[l])}}a.g.close(d,c.byteLength);a.o(aA(a.g),a.g.g);return f(c)});a.i.set(b,g)}function gA(a){return Q(function(b){return 1==b.g?F(b,Promise.all(a.i.values()),2):b.return(a.g.g)})} -function eA(a,b){var c,d,e,f;return Q(function(g){if(1==g.g)return c=Rg,d=a.s.request(c,b),e=function(){return d.abort()},a.j.push(e),F(g,d.promise,2);f=g.h;Uc(a.j,e);return g.return(f.data)})};function hA(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new tg;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}hA.prototype.abort=function(){var a=this;return Q(function(b){if(1==b.g){try{a.i.abort()}catch(c){}wa(b,2);return F(b,a.g,4)}if(2!=b.g)return za(b,0);Aa(b);G(b)})}; -function iA(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return Q(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return F(g,b(f.key,f.value,f),2)}f.continue();G(g)})}})}hA.prototype.store=function(){return this.h};hA.prototype.promise=function(){return this.g};function jA(a){this.h=a;this.g=[]}jA.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function kA(a,b){return lA(a,b,"readwrite")}function lA(a,b,c){c=a.h.transaction([b],c);var d=new hA(c,b);a.g.push(d);d.promise().then(function(){Uc(a.g,d)},function(){Uc(a.g,d)});return d};function mA(a,b,c){this.h=new jA(a);this.i=b;this.g=c}p=mA.prototype;p.destroy=function(){return this.h.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return nA(this.i)};p.removeSegments=function(a,b){return oA(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,pA(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Jh(e)}))})};p.addManifests=function(){return nA(this.g)}; -p.updateManifest=function(){return Promise.reject(new U(2,9,9016,"Cannot modify values in "+this.g))};function qA(a,b,c){a=kA(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}p.updateManifestExpiration=function(a,b){var c=kA(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};p.removeManifests=function(a,b){return oA(this,this.g,a,b)}; -p.getManifests=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,pA(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Gd(e)})))})};p.getAllManifests=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=lA(a.h,a.g,"readonly"),c=new Map,F(d,iA(b,function(e,f){var g;return Q(function(h){if(1==h.g)return F(h,a.Gd(f),2);g=h.h;c.set(e,g);G(h)})}),2)):3!=d.g?F(d,b.promise(),3):d.return(c)})};p.Jh=function(a){return a};p.Gd=function(a){return Promise.resolve(a)}; -function nA(a){return Promise.reject(new U(2,9,9011,"Cannot add new value to "+a))}p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=kA(c.h,a);e=d.store();f=[];g=t(b);h=g.next();for(k={};!h.done;k={Wg:void 0},h=g.next())l=h.value,k.Wg=e.add(l),k.Wg.onsuccess=function(n){return function(){f.push(n.Wg.result)}}(k);return F(m,d.promise(),2)}return m.return(f)})}; -function oA(a,b,c,d){a=kA(a.h,b);b=a.store();c=t(c);for(var e=c.next(),f={};!e.done;f={Ig:void 0},e=c.next())f.Ig=e.value,b.delete(f.Ig).onsuccess=function(g){return function(){return d(g.Ig)}}(f);return a.promise()} -function pA(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=lA(a.h,b,"readonly");e=d.store();f={};g=[];h=t(c);k=h.next();for(l={};!k.done;l={xf:void 0,$e:void 0},k=h.next())l.$e=k.value,l.xf=e.get(l.$e),l.xf.onsuccess=function(n){return function(){void 0==n.xf.result&&g.push(n.$e);f[n.$e]=n.xf.result}}(l);return F(m,d.promise(),2)}if(g.length)throw new U(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function rA(a){this.g=new jA(a)}rA.prototype.destroy=function(){return this.g.destroy()};rA.prototype.getAll=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=lA(a.g,"session-ids","readonly"),c=[],F(d,iA(b,function(e,f){c.push(f)}),2)):3!=d.g?F(d,b.promise(),3):d.return(c)})};rA.prototype.add=function(a){var b=kA(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()}; -rA.prototype.remove=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=kA(b.g,"session-ids"),F(d,iA(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):F(d,c.promise(),0)})};function sA(){this.g=new Map}sA.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};sA.prototype.init=function(){var a=this;tA.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)}; -function uA(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Pb:d,bb:f},bb:e})})});if(b)return b;throw new U(2,9,9013,"Could not find a cell that supports add-operations");}function vA(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Pb:d,bb:f},e)})})} -function wA(a,b,c){a=a.g.get(b);if(!a)throw new U(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new U(2,9,9013,"Could not find cell with name "+c);return b}function xA(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function yA(a){var b=Array.from(a.g.keys());if(!b.length)throw new U(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()} -function zA(a){var b,c,d;return Q(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0d-2&&(e=Math.max(1,d-2));for(e=d-e;ea.s&&(c=Math.min(-a.s,c),a.s+=c);a.l.Ji(0);a.l.gh(c);a.l.Yc(!1)} +function rz(a,b,c,d,e){var f=Wx(c,"EXT-X-MAP");if(!f)return null;var g=Rx(f,"URI"),h=Yx(d(),g,e);g=[h.toString(),Qx(f,"BYTERANGE","")].join("-");if(!a.ya.has(g)){var k=void 0,l=null,m=!1;c=t(c);for(var n=c.next();!n.done;n=c.next())n=n.value,"EXT-X-KEY"==n.name?(m=Rx(n,"METHOD"),gz(m)&&n.idJ?1:0}),c=0;cm))continue}if(null==m){var r=Qx(g,"DURATION")||Qx(g,"PLANNED-DURATION");if(r){var u= +parseFloat(r);isNaN(u)||(m=l+u);if(0>k-f+u)continue}}var w=Qx(g,"CLASS")||"com.apple.quicktime.HLS",v="YES"==Qx(g,"END-ON-NEXT");if(null==m&&v){for(var y=c+1;yk){m=Math.max(0,C-f);break}}}if(null==m)continue}y=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var E=[],H=t(g.attributes),B=H.next();!B.done;B=H.next()){var D=B.value;if(!y.includes(D.name)){var I= +$x(D.value,d);if("X-ASSET-URI"==D.name||"X-ASSET-LIST"==D.name)I=Yx(e(),D.value,d)[0];E.push({key:D.name,description:"",data:I,mimeType:null,pictureType:null})}}if(1B)if(D){D=yd(D,"t",Gd);if(null==D)break;else if(I>=D)break;B=Math.ceil((D-I)/K)-1}else{if(Infinity==z)break;else if(I/v>=z)break;B=Math.ceil((z*v-I)/K)-1}for(D=0;D<=B;++D)E=I+K,C.push({start:I/v,end:E/v,xh:I}),I=E}v=C;y=t(y);for(z=y.next();!z.done;z=y.next())(z=Jz(a,w,z.value,v,u,l))&&("audio"!=z.type||a.g.disableAudio?"video"!=z.type||a.g.disableVideo?z.type!=wc||a.g.disableText||m.push(z):n.push(z):r.push(z))}q=[];r=t(0>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|b<<3; +b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function Nz(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function Oz(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""} +function Pz(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];e=t(e);for(var g=e.next(),h={};!g.done;h={Ef:void 0},g=e.next())h.Ef=g.value,d.push(new rj(h.Ef.start,h.Ef.end,function(k){return function(){return qc(a.l,[f.replace("{start time}",String(k.Ef.xh))])}}(h),0,null,b,0,0,c.mssPrivateData.duration));return d}T("shaka.mss.MssParser",Gz); +var Lz="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),Kz=(new Map).set("CAPT","main").set("SUBT","alternate").set("DESC","main");ti("application/vnd.ms-sstr+xml",function(){return new Gz});function Qz(a,b,c,d,e,f,g){if(200<=c&&299>=c&&202!=c||304==c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"],originalRequest:f};f=null;try{f=dc(b)}catch(h){}throw new U(401==c||403==c?2:1,1,1001,d,c,f,a,g,e||d);};function Rz(){} +function Sz(a,b,c,d,e,f){var g=new Tz;Yg(b.headers).forEach(function(m,n){g.append(n,m)});var h=new Uz,k={Ih:!1,Wi:!1};a=Vz(a,b,c,{body:b.body||void 0,headers:g,method:b.method,signal:h.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},k,d,e,b.streamDataCallback,f.minBytesForProgressEvents||0);a=new vg(a,function(){k.Ih=!0;h.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var l=new af(function(){k.Wi=!0;h.abort()});l.ha(b/1E3);a.finally(function(){l.stop()})}return a} +function Vz(a,b,c,d,e,f,g,h,k){var l,m,n,q,r,u,w,v,y,z,A,C,E,H,B;return Q(function(D){switch(D.g){case 1:return l=Wz,m=Xz,q=new ArrayBuffer(0),u=r=0,w={},v=Date.now(),wa(D,2),F(D,l(a,d),4);case 4:n=D.h;w=Yz(n.headers);g(w);if("HEAD"==d.method){D.u(5);break}z=(y=n.headers.get("Content-Length"))?parseInt(y,10):0;if(!n.body)return F(D,n.arrayBuffer(),9);A=n.clone().body.getReader();C=function(I){function K(){var J,L,N,O;return Q(function(M){switch(M.g){case 1:return wa(M,2),F(M,A.read(),4);case 4:J= +M.h;za(M,3);break;case 2:return Aa(M),M.return();case 3:if(J.done){M.u(5);break}r+=J.value.byteLength;if(!h){M.u(5);break}return F(M,h(J.value),5);case 5:L=Date.now();N=r-u;if(100=k||J.done)O=J.done?0:z-r,f(L-v,N,O),u=r,v=L;J.done?I.close():(I.enqueue(J.value),K());G(M)}})}K()};new m({start:C});return F(D,n.arrayBuffer(),8);case 8:q=D.h;D.u(5);break;case 9:q=D.h,E=Date.now(),f(E-v,q.byteLength,0);case 5:b.headers.Range&&(H=b.headers.Range.replace("bytes=","").split("-").filter(function(I){return I}).map(function(I){return parseInt(I, +10)}),2==H.length&&q.byteLength!=H[1]-H[0]+1&&bb("Payload length does not match range requested bytes",b,n));za(D,3);break;case 2:B=Aa(D);if(e.Ih)throw new U(1,1,7001,a,c);if(e.Wi)throw new U(1,1,1003,a,c);throw new U(1,1,1002,a,B,c);case 3:return D.return(Qz(w,q,n.status,a,n.url,b,c))}})}function Yz(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b} +function Zz(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||"polyfill"in window.fetch||!window.AbortController)}T("shaka.net.HttpFetchPlugin",Rz);Rz.isSupported=Zz;Rz.parse=Sz;var Wz=window.fetch,Uz=window.AbortController,Xz=window.ReadableStream,Tz=window.Headers;Zz()&&(Ig("http",Sz,2,!0),Ig("https",Sz,2,!0),Ig("blob",Sz,2,!0));function $z(){} +function aA(a,b,c,d,e,f){var g=new bA,h=Date.now(),k=0,l=new Promise(function(m,n){g.open(b.method,a,!0);g.responseType="arraybuffer";g.timeout=b.retryParameters.timeout;g.withCredentials=b.allowCrossSiteCredentials;var q={};g.onabort=function(){n(new U(1,1,7001,a,c))};g.onreadystatechange=function(){if(g.readyState===XMLHttpRequest.HEADERS_RECEIVED){var u=g.getAllResponseHeaders().trim().split("\r\n"),w={};u=t(u);for(var v=u.next();!v.done;v=u.next())v=v.value.split(": "),w[v[0].toLowerCase()]=v.slice(1).join(": "); +q=w;e(q)}};g.onload=function(u){var w=g.response;try{d(Date.now()-h,u.loaded-k,0);var v=Qz(q,w,g.status,a,g.responseURL,b,c);m(v)}catch(y){n(y)}};g.onerror=function(u){n(new U(1,1,1002,a,u,c))};g.ontimeout=function(){n(new U(1,1,1003,a,c))};g.onprogress=function(u){var w=Date.now(),v=f.minBytesForProgressEvents||0,y=u.loaded-k;if(100=v||u.lengthComputable&&u.loaded==u.total)d(w-h,y,4==g.readyState?0:u.total-u.loaded),k=u.loaded,h=w};for(var r in b.headers)g.setRequestHeader(r.toLowerCase(), +b.headers[r]);g.send(b.body)});return new vg(l,function(){g.abort();return Promise.resolve()})}T("shaka.net.HttpXHRPlugin",$z);$z.parse=aA;var bA=window.XMLHttpRequest;Ig("http",aA,1,!0);Ig("https",aA,1,!0);Ig("blob",aA,1,!0);function cA(a,b,c,d,e){this.g=a;this.i=b;this.groupId=c;this.h=d;this.j=e}function dA(a){var b=a.Wb(!1);return b?lc(b):a.O().map(function(c){return"{"+encodeURI(c.split("#xywh=")[0])+"}"}).join("")+":"+a.startByte+":"+a.endByte}function eA(a,b){return tm(a.g.O(),a.g.startByte,a.g.endByte,b.streaming.retryParameters)};function fA(){this.g=this.j=this.i=0;this.h=new Map;this.l=0}function gA(a,b){a.i+=b;var c=a.l;a.l++;a.h.set(c,b);return c}fA.prototype.close=function(a,b){if(this.h.has(a)){var c=this.h.get(a);this.h.delete(a);this.j+=c;this.g+=b}};function hA(a){return 0==a.i?0:a.j/a.i};function iA(a){var b=this;this.s=a;this.i=new Map;this.h=new Ug(function(){return jA(b).catch(function(){})});this.j=[];this.o=function(){};this.m=function(){};this.g=new fA;this.l=!1}iA.prototype.destroy=function(){return this.h.destroy()};function kA(a,b,c){a.o=b;a.m=c}function jA(a){a.l=!0;var b=a.j.map(function(c){return c()});a.j=[];return Promise.all(b)} +iA.prototype.queue=function(a,b,c,d,e){var f=this;Vg(this.h);var g=(this.i.get(a)||Promise.resolve()).then(function(){var h,k,l,m,n,q,r;return Q(function(u){if(1==u.g)return F(u,lA(f,b),2);h=u.h;if(f.h.g)throw new U(2,9,7001);if(d)for(m in k=Tb(h),l=new nh(k),l.data)n=Number(m),q=l.data[n],r=l.g[n],f.m(q,r);f.g.close(c,h.byteLength);f.o(hA(f.g),f.g.g);return u.return(e(h))})});this.i.set(a,g);return g}; +function mA(a,b,c,d,e,f){Vg(a.h);var g=(a.i.get(b)||Promise.resolve()).then(function(){if(a.h.g)throw new U(2,9,7001);if(e){var h=Tb(c);h=new nh(h);for(var k in h.data){var l=Number(k);a.m(h.data[l],h.g[l])}}a.g.close(d,c.byteLength);a.o(hA(a.g),a.g.g);return f(c)});a.i.set(b,g)}function nA(a){return Q(function(b){return 1==b.g?F(b,Promise.all(a.i.values()),2):b.return(a.g.g)})} +function lA(a,b){var c,d,e,f;return Q(function(g){if(1==g.g)return c=Sg,d=a.s.request(c,b),e=function(){return d.abort()},a.j.push(e),F(g,d.promise,2);f=g.h;Uc(a.j,e);return g.return(f.data)})};function oA(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new ug;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}oA.prototype.abort=function(){var a=this;return Q(function(b){if(1==b.g){try{a.i.abort()}catch(c){}wa(b,2);return F(b,a.g,4)}if(2!=b.g)return za(b,0);Aa(b);G(b)})}; +function pA(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return Q(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return F(g,b(f.key,f.value,f),2)}f.continue();G(g)})}})}oA.prototype.store=function(){return this.h};oA.prototype.promise=function(){return this.g};function qA(a){this.h=a;this.g=[]}qA.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function rA(a,b){return sA(a,b,"readwrite")}function sA(a,b,c){c=a.h.transaction([b],c);var d=new oA(c,b);a.g.push(d);d.promise().then(function(){Uc(a.g,d)},function(){Uc(a.g,d)});return d};function tA(a,b,c){this.h=new qA(a);this.i=b;this.g=c}p=tA.prototype;p.destroy=function(){return this.h.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return uA(this.i)};p.removeSegments=function(a,b){return vA(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,wA(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Kh(e)}))})};p.addManifests=function(){return uA(this.g)}; +p.updateManifest=function(){return Promise.reject(new U(2,9,9016,"Cannot modify values in "+this.g))};function xA(a,b,c){a=rA(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}p.updateManifestExpiration=function(a,b){var c=rA(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};p.removeManifests=function(a,b){return vA(this,this.g,a,b)}; +p.getManifests=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,wA(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Hd(e)})))})};p.getAllManifests=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=sA(a.h,a.g,"readonly"),c=new Map,F(d,pA(b,function(e,f){var g;return Q(function(h){if(1==h.g)return F(h,a.Hd(f),2);g=h.h;c.set(e,g);G(h)})}),2)):3!=d.g?F(d,b.promise(),3):d.return(c)})};p.Kh=function(a){return a};p.Hd=function(a){return Promise.resolve(a)}; +function uA(a){return Promise.reject(new U(2,9,9011,"Cannot add new value to "+a))}p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=rA(c.h,a);e=d.store();f=[];g=t(b);h=g.next();for(k={};!h.done;k={Xg:void 0},h=g.next())l=h.value,k.Xg=e.add(l),k.Xg.onsuccess=function(n){return function(){f.push(n.Xg.result)}}(k);return F(m,d.promise(),2)}return m.return(f)})}; +function vA(a,b,c,d){a=rA(a.h,b);b=a.store();c=t(c);for(var e=c.next(),f={};!e.done;f={Jg:void 0},e=c.next())f.Jg=e.value,b.delete(f.Jg).onsuccess=function(g){return function(){return d(g.Jg)}}(f);return a.promise()} +function wA(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=sA(a.h,b,"readonly");e=d.store();f={};g=[];h=t(c);k=h.next();for(l={};!k.done;l={xf:void 0,Ze:void 0},k=h.next())l.Ze=k.value,l.xf=e.get(l.Ze),l.xf.onsuccess=function(n){return function(){void 0==n.xf.result&&g.push(n.Ze);f[n.Ze]=n.xf.result}}(l);return F(m,d.promise(),2)}if(g.length)throw new U(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function yA(a){this.g=new qA(a)}yA.prototype.destroy=function(){return this.g.destroy()};yA.prototype.getAll=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=sA(a.g,"session-ids","readonly"),c=[],F(d,pA(b,function(e,f){c.push(f)}),2)):3!=d.g?F(d,b.promise(),3):d.return(c)})};yA.prototype.add=function(a){var b=rA(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()}; +yA.prototype.remove=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=rA(b.g,"session-ids"),F(d,pA(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):F(d,c.promise(),0)})};function zA(){this.g=new Map}zA.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};zA.prototype.init=function(){var a=this;AA.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)}; +function BA(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Pb:d,bb:f},bb:e})})});if(b)return b;throw new U(2,9,9013,"Could not find a cell that supports add-operations");}function CA(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Pb:d,bb:f},e)})})} +function DA(a,b,c){a=a.g.get(b);if(!a)throw new U(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new U(2,9,9013,"Could not find cell with name "+c);return b}function EA(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function FA(a){var b=Array.from(a.g.keys());if(!b.length)throw new U(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()} +function GA(a){var b,c,d;return Q(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0b;if(!k||!l){m.u(3);break}return F(m,f.updateManifestExpiration(d.key(),b),3);case 3:return Ba(m),F(m,e.destroy(),10);case 10:Ca(m,0);break;case 2:Aa(m),m.u(3)}})}; -p.onInitialVariantChosen=function(){};p.banLocation=function(){};p.setMediaElement=function(){};si("application/x-offline-manifest",function(){return new UA});function VA(){}function WA(a,b){var c=NA(a);c&&"manifest"==c.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"},originalRequest:b},a=xg(a)):a=c&&"segment"==c.g?XA(c.key(),c,b):vg(new U(2,1,9004,a));return a} -function XA(a,b,c){var d=new sA;return xg(void 0).Va(function(){return d.init()}).Va(function(){return wA(d,b.Pb(),b.bb())}).Va(function(e){return e.getSegments([b.key()])}).Va(function(e){return{uri:b,data:e[0].data,headers:{},originalRequest:c}}).finally(function(){return d.destroy()})}T("shaka.offline.OfflineScheme",VA);VA.plugin=WA;Hg("offline",WA);function YA(a,b,c){var d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var r=!1,u=t(m),w=u.next();!w.done;w=u.next())if(w=w.value,ZA(w.info,q)){w.sessionIds.push(q.sessionId);r=!0;break}r||m.push({info:q,sessionIds:[q.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.u(4);break}g=f.value;h=$A(a,b,g);return F(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.u(2);break;case 4:return l.return(d)}})} -function $A(a,b,c){var d,e;return Q(function(f){switch(f.g){case 1:return d=new oh({lc:b,onError:function(){},nf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),wa(f,2),d.configure(a),F(f,zh(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:za(f,3);break;case 2:return Aa(f),F(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],F(f,Promise.all(c.sessionIds.map(function(g){return Q(function(h){if(1== -h.g)return wa(h,2),F(h,Lh(d,g),4);if(2!=h.g)return e.push(g),za(h,0);Aa(h);G(h)})})),6);case 6:return F(f,d.destroy(),7);case 7:return f.return(e)}})}function ZA(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Vc(a.audioCapabilities,b.audioCapabilities,c)&&Vc(a.videoCapabilities,b.videoCapabilities,c)};function aB(a,b,c){var d=b.presentationTimeline.getDuration();b=bB(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function cB(a,b){var c=PA(new OA(a.Pb(),a.bb()),b),d=b.appMetadata||{};c=bB(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}} -function bB(a){var b=[],c=$f(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(Lf(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Of(c.value));return b};function dB(){this.g=new Map}function eB(a,b){var c=b.audio,d=b.video;c&&!d&&a.g.set(c.id,c.bandwidth||b.bandwidth);!c&&d&&a.g.set(d.id,d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g.set(c.id,e);a.g.set(d.id,f)}}function fB(a,b){a.g.set(b.id,b.bandwidth||2048)}function gB(a,b){a=a.g.get(b);null==a&&(a=0);return a};function hB(a){var b=this;if(a&&a.constructor!=Y)throw new U(2,9,9008);this.g=this.h=null;a?(this.h=a.g,this.g=a.Nb()):(this.h=wn(),this.g=new Gg,this.g.configure(this.h.networking));this.i=[];this.l=[];var c=!a;this.j=new Tg(function(){var d,e,f,g,h;return Q(function(k){switch(k.g){case 1:return F(k,Promise.all(b.l.map(function(l){return cA(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return F(k,Promise.all(e),3);case 3:if(!c){k.u(4); -break}return F(k,b.g.destroy(),4);case 4:b.h=null,b.g=null,G(k)}})});this.m=1E9}function iB(){if(vi(qb()))a:{var a=t(tA.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}p=hB.prototype;p.destroy=function(){return this.j.destroy()};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=bn(a,b));return Bn(this.h,a)};p.getConfiguration=function(){var a=wn();Bn(a,this.h,wn());return a};p.Nb=function(){return this.g}; -p.store=function(a,b,c,d,e){var f=this,g=this.getConfiguration(),h=new bA(this.g);this.l.push(h);b=jB(this,a,b||{},d||[],e||[],function(){var k;return Q(function(l){if(1==l.g)return c?l.u(2):F(l,vo(a,f.g,g.manifest.retryParameters),3);2!=l.g&&(c=l.h);k=xi(a,c||null);return l.return(k())})},g,h);b=new ug(b,function(){return cA(h)});b.finally(function(){Uc(f.l,h)});return kB(this,b)}; -function jB(a,b,c,d,e,f,g,h){var k,l,m,n,q,r,u,w,v,y,z,A,B,E,H,C,D,I,L,K,J,M,O,N;return Q(function(P){switch(P.g){case 1:return lB(),l=k=null,m=new sA,r=q=n=null,wa(P,2,3),F(P,f(),5);case 5:return k=P.h,F(P,mB(a,b,k,g),6);case 6:u=P.h;nB(a);w=!u.presentationTimeline.V()&&!u.presentationTimeline.Oc();if(!w)throw new U(2,9,9005,b);v=t(d);y=v.next();case 7:if(y.done){P.u(9);break}z=y.value;return F(P,oB(a,z,u),10);case 10:A=P.h;u.imageStreams.push(A);nB(a);y=v.next();P.u(7);break;case 9:B=t(e),E=B.next(); -case 11:if(E.done)return Bh(g.drm.clearKeys,u.variants),D=u.variants.some(function(R){if(R.audio)for(var S=t(R.audio.drmInfos),aa=S.next();!aa.done;aa=S.next())if(aa.value.licenseServerUri.startsWith("data:"))return!0;if(R.video)for(R=t(R.video.drmInfos),S=R.next();!S.done;S=R.next())if(S.value.licenseServerUri.startsWith("data:"))return!0;return!1}),I=g.offline.usePersistentLicense,D&&(I=!1),F(P,a.dd(u,function(R){r=r||R},g,I),15);H=E.value;return F(P,pB(a,u,H.uri,H.language,H.kind,H.mime,H.codecs), -14);case 14:C=P.h;u.textStreams.push(C);nB(a);E=B.next();P.u(11);break;case 15:l=P.h;nB(a);if(r)throw r;return F(P,qB(u,l,g,I),16);case 16:return F(P,m.init(),17);case 17:return nB(a),F(P,uA(m),18);case 18:return n=P.h,nB(a),L=rB(l,u,b,c,g,h,I),K=L.ik,J=L.sh,F(P,n.bb.addManifests([K]),19);case 19:M=P.h;nB(a);q=M[0];nB(a);if(r)throw r;return F(P,sB(a,J,q,K,h,g,n.bb,u,l,I),20);case 20:return nB(a),tB(u,K,l,I),F(P,n.bb.updateManifest(q,K),21);case 21:return nB(a),O=new MA("manifest",n.path.Pb,n.path.bb, -q),P.return(cB(O,K));case 3:return Ba(P),F(P,m.destroy(),22);case 22:if(!k){P.u(23);break}return F(P,k.stop(),23);case 23:if(!l){P.u(25);break}return F(P,l.destroy(),25);case 25:Ca(P,0);break;case 2:N=Aa(P);if(null==q){P.u(27);break}return F(P,uB(q),27);case 27:throw r||N;}})} -function sB(a,b,c,d,e,f,g,h,k,l){var m,n,q,r,u,w,v,y,z,A,B;return Q(function(E){switch(E.g){case 1:m={};n=0;q=function(){if(a.j.g||e.l)throw new U(2,9,7001);};r=function(H,C){var D,I,L,K,J,M,O,N,P;return Q(function(R){if(1==R.g){D=t(H);I=D.next();for(L={};!I.done;L={fc:void 0},I=D.next())L.fc=I.value,q(),K=Yz(L.fc,f),J=L.fc.i,M=L.fc.h,O=function(S){return function(aa){var W,Fa,Ga,xa;return Q(function(qa){switch(qa.g){case 1:W=S.fc.g;Fa=W.Wb(!1);if(!W.aesKey||Fa){qa.u(2);break}return F(qa,lm(aa,W.aesKey, -S.fc.j),3);case 3:aa=qa.h;case 2:return Ga=Xz(W),F(qa,g.addSegments([{data:aa}]),4);case 4:xa=qa.h,q(),m[Ga]=xa[0],n+=aa.byteLength,G(qa)}})}}(L),N=L.fc.g,(P=N.Wb(!1))?fA(e,L.fc.groupId,P,J,M,O):e.queue(L.fc.groupId,K,J,M,O);return F(R,gA(e),2)}q();if(!C||e.l)return R.u(0);tB(h,d,k,l);return F(R,g.updateManifest(c,d),0)})};u=!1;wa(E,2);if(!vB(h)||!u||wB(h)){E.u(4);break}return F(E,r(b.filter(function(H){return H.h}),!0),5);case 5:return q(),b=b.filter(function(H){return!H.h}),w=m,v=n,m={},n=0,F(E, -xB(g,c,d,w,v,function(){return nB(a)}),6);case 6:q();case 4:if(u){E.u(7);break}return F(E,r(b,!1),8);case 8:return q(),y=m,z=n,m={},n=0,F(E,xB(g,c,d,y,z,function(){return q()}),9);case 9:q();case 7:za(E,0);break;case 2:return A=Aa(E),B=Object.values(m),F(E,g.removeSegments(B,function(){}),10);case 10:throw A;}})} -function uB(a){var b,c,d,e;return Q(function(f){switch(f.g){case 1:return b=new sA,F(f,b.init(),2);case 2:return F(f,uA(b),3);case 3:return c=f.h,d=new MA("manifest",c.path.Pb,c.path.bb,a),F(f,b.destroy(),4);case 4:return e=new hB,F(f,e.remove(d.toString()),0)}})} -function xB(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,u,w,v;return Q(function(y){switch(y.g){case 1:g=!1;wa(y,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),q=n.next();!q.done;q=n.next())r=q.value,u=r.pendingSegmentRefId?d[r.pendingSegmentRefId]:null,null!=u&&(r.dataKey=u,r.pendingSegmentRefId=void 0),u=r.pendingInitSegmentRefId?d[r.pendingInitSegmentRefId]:null,null!=u&&(r.initSegmentKey=u,r.pendingInitSegmentRefId=void 0),r.pendingSegmentRefId&&(h=!1),r.pendingInitSegmentRefId&& -(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return F(y,a.updateManifest(b,c),4);case 4:g=!0;f();za(y,0);break;case 2:return w=Aa(y),F(y,uB(b),5);case 5:if(g){y.u(6);break}v=Object.values(d);return F(y,a.removeSegments(v,function(){}),6);case 6:throw w;}})} -function qB(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,E,H,C,D,I,L,K,J,M,O,N,P,R;return Q(function(S){switch(S.g){case 1:return e={width:Infinity,height:Infinity},sf(a,c.restrictions,e),F(S,vf(b,a,d,c.drm.preferredKeySystems,c.drm.keySystemsMapping),2);case 2:f=[];g=c.preferredDecodingAttributes;h=c.preferredVideoCodecs;k=c.preferredAudioCodecs;l=c.preferredTextFormats;qf(a,h,k,g,l);m=t(a.variants);for(n=m.next();!n.done;n=m.next())q=n.value,f.push(Lf(q));r=t(a.textStreams);for(u=r.next();!u.done;u= -r.next())w=u.value,f.push(Of(w));v=t(a.imageStreams);for(y=v.next();!y.done;y=v.next())z=y.value,f.push(Pf(z));return F(S,c.offline.trackSelectionCallback(f),3);case 3:A=S.h;B=a.presentationTimeline.getDuration();E=0;H=t(A);for(C=H.next();!C.done;C=H.next())D=C.value,I=D.bandwidth*B/8,E+=I;wa(S,4);return F(S,c.offline.downloadSizeCallback(E),6);case 6:L=S.h;if(!L)throw new U(2,9,9014);za(S,5);break;case 4:K=Aa(S);if(K instanceof U)throw K;throw new U(2,9,9015);case 5:J=new Set;M=new Set;O=new Set; -N=t(A);for(P=N.next();!P.done;P=N.next())R=P.value,"variant"==R.type&&J.add(R.id),"text"==R.type&&M.add(R.id),"image"==R.type&&O.add(R.id);a.variants=a.variants.filter(function(aa){return J.has(aa.id)});a.textStreams=a.textStreams.filter(function(aa){return M.has(aa.id)});a.imageStreams=a.imageStreams.filter(function(aa){return O.has(aa.id)});yB(a);G(S)}})} -function rB(a,b,c,d,e,f,g){var h=aB(c,b,d),k=e.offline.progressCallback;dA(f,function(u,w){h.size=w;k(h,u)},function(u,w){l&&g&&m==w&&Hh(a,"cenc",u)});var l=vB(b)&&!wB(b),m=null;l&&(m=zB.get(a.h.keySystem));for(var n=new dB,q=t(b.textStreams),r=q.next();!r.done;r=q.next())n.g.set(r.value.id,52);q=t(b.imageStreams);for(r=q.next();!r.done;r=q.next())fB(n,r.value);q=t(b.variants);for(r=q.next();!r.done;r=q.next())eB(n,r.value);f=AB(f,n,b,e);e=f.streams;f=f.sh;(n=a.h)&&g&&(n.initData=[]);return{ik:{creationTime:Date.now(), -originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Md(),streams:e,sessionIds:g?Qh(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},sh:f}}function vB(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})} -function wB(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function tB(a,b,c,d){b.expiration=c.Md();c=Qh(c);b.sessionIds=d?c:[];if(vB(a)&&d&&!c.length)throw new U(2,9,9007);}p.remove=function(a){return BB(this,CB(this,a))}; -function CB(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:lB();c=NA(b);if(null==c||"manifest"!=c.g)throw new U(2,9,9004,b);d=c;e=new sA;ya(k,2);return F(k,e.init(),4);case 4:return F(k,wA(e,d.Pb(),d.bb()),5);case 5:return f=k.h,F(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],F(k,Promise.all([DB(a,h,e),EB(f,d,h)]),2);case 2:return Ba(k),F(k,e.destroy(),8);case 8:Ca(k,0)}})} -function FB(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:De(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:De(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function DB(a,b,c){return Q(function(d){return F(d,GB(a.g,a.h.drm,c,b),0)})} -function EB(a,b,c){function d(){}var e=HB(c);cB(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.Fk=function(){return BB(this,IB(this))}; -function IB(a){var b,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return lB(),b=a.g,c=a.h.drm,d=new sA,e=!1,ya(n,2),F(n,d.init(),4);case 4:f=[],xA(d,function(q){return f.push(q)}),g=t(f),h=g.next();case 5:if(h.done){n.u(2);break}k=h.value;return F(n,k.getAll(),8);case 8:return l=n.h,F(n,YA(c,b,l),9);case 9:return m=n.h,F(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.u(5);break;case 2:return Ba(n),F(n,d.destroy(),11);case 11:Ca(n,3);break;case 3:return n.return(!e)}})} -p.list=function(){return BB(this,JB())};function JB(){var a,b,c;return Q(function(d){switch(d.g){case 1:return lB(),a=[],b=new sA,ya(d,2),F(d,b.init(),4);case 4:return c=Promise.resolve(),vA(b,function(e,f){c=c.then(function(){var g;return Q(function(h){if(1==h.g)return F(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=cB(new MA("manifest",e.Pb,e.bb,l),k);a.push(k)});G(h)})})}),F(d,c,2);case 2:return Ba(d),F(d,b.destroy(),6);case 6:Ca(d,3);break;case 3:return d.return(a)}})} -function mB(a,b,c,d){var e,f,g,h,k;return Q(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate},onMetadata:function(){},disableStream:function(){}, -addFont:function(){}},c.configure(d.manifest),nB(a),F(l,c.start(b,g),2);if(3!=l.g)return h=l.h,nB(a),k=KB(h),F(l,Promise.all(Vg(k,function(m){return m.createSegmentIndex()})),3);nB(a);if(e)throw e;return l.return(h)})} -function oB(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y;return Q(function(z){switch(z.g){case 1:return F(z,LB(a,b),2);case 2:d=z.h;if("text/vtt"!=d)throw new U(1,2,2017,b);return F(z,MB(b,a.g,a.h.streaming.retryParameters),3);case 3:e=z.h;f=Se(d);if(!f)throw new U(2,2,2014,d);g=f();h={periodStart:0,segmentStart:0,segmentEnd:c.presentationTimeline.getDuration(),vttOffset:0};k=Tb(e);l=g.parseMedia(k,h,b,[]);m=[];n=t(l);q=n.next();for(r={};!q.done;r={Jf:void 0,fd:void 0},q=n.next())r.fd=q.value,r.Jf=null, -u=function(A){return function(){null==A.Jf&&(A.Jf=qc([b],[A.fd.payload]));return A.Jf||[]}}(r),w=new qj(r.fd.startTime,r.fd.endTime,u,0,null,null,0,0,Infinity),r.fd.payload.includes("#xywh")&&(v=r.fd.payload.split("#xywh=")[1].split(","),4===v.length&&w.Cf({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)})),m.push(w);y=d;if(!m.length){z.u(4);break}return F(z,vo(m[0].O()[0],a.g,a.h.manifest.retryParameters),5);case 5:y=z.h;case 4:return z.return({id:a.m++, -originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Cl(m),mimeType:y||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"image",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([De(y|| +p.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:return d=c.g,e=new zA,wa(m,2,3),F(m,e.init(),5);case 5:return F(m,DA(e,d.Pb(),d.bb()),6);case 6:return f=m.h,F(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.u(3);break}return F(m,f.updateManifestExpiration(d.key(),b),3);case 3:return Ba(m),F(m,e.destroy(),10);case 10:Da(m,0);break;case 2:Aa(m),m.u(3)}})}; +p.onInitialVariantChosen=function(){};p.banLocation=function(){};p.setMediaElement=function(){};ti("application/x-offline-manifest",function(){return new aB});function bB(){}function cB(a,b){var c=UA(a);c&&"manifest"==c.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"},originalRequest:b},a=yg(a)):a=c&&"segment"==c.g?dB(c.key(),c,b):wg(new U(2,1,9004,a));return a} +function dB(a,b,c){var d=new zA;return yg(void 0).Ua(function(){return d.init()}).Ua(function(){return DA(d,b.Pb(),b.bb())}).Ua(function(e){return e.getSegments([b.key()])}).Ua(function(e){return{uri:b,data:e[0].data,headers:{},originalRequest:c}}).finally(function(){return d.destroy()})}T("shaka.offline.OfflineScheme",bB);bB.plugin=cB;Ig("offline",cB);function eB(a,b,c){var d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var r=!1,u=t(m),w=u.next();!w.done;w=u.next())if(w=w.value,fB(w.info,q)){w.sessionIds.push(q.sessionId);r=!0;break}r||m.push({info:q,sessionIds:[q.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.u(4);break}g=f.value;h=gB(a,b,g);return F(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.u(2);break;case 4:return l.return(d)}})} +function gB(a,b,c){var d,e;return Q(function(f){switch(f.g){case 1:return d=new ph({pc:b,onError:function(){},nf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),wa(f,2),d.configure(a),F(f,Ah(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:za(f,3);break;case 2:return Aa(f),F(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],F(f,Promise.all(c.sessionIds.map(function(g){return Q(function(h){if(1== +h.g)return wa(h,2),F(h,Mh(d,g),4);if(2!=h.g)return e.push(g),za(h,0);Aa(h);G(h)})})),6);case 6:return F(f,d.destroy(),7);case 7:return f.return(e)}})}function fB(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Vc(a.audioCapabilities,b.audioCapabilities,c)&&Vc(a.videoCapabilities,b.videoCapabilities,c)};function hB(a,b,c){var d=b.presentationTimeline.getDuration();b=iB(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function jB(a,b){var c=WA(new VA(a.Pb(),a.bb()),b),d=b.appMetadata||{};c=iB(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}} +function iB(a){var b=[],c=ag(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(Of(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Pf(c.value));return b};function kB(){this.g=new Map}function lB(a,b){var c=b.audio,d=b.video;c&&!d&&a.g.set(c.id,c.bandwidth||b.bandwidth);!c&&d&&a.g.set(d.id,d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g.set(c.id,e);a.g.set(d.id,f)}}function mB(a,b){a.g.set(b.id,b.bandwidth||2048)}function nB(a,b){a=a.g.get(b);null==a&&(a=0);return a};function oB(a){var b=this;if(a&&a.constructor!=Y)throw new U(2,9,9008);this.g=this.h=null;a?(this.h=a.g,this.g=a.Nb()):(this.h=En(),this.g=new Hg,this.g.configure(this.h.networking));this.i=[];this.l=[];var c=!a;this.j=new Ug(function(){var d,e,f,g,h;return Q(function(k){switch(k.g){case 1:return F(k,Promise.all(b.l.map(function(l){return jA(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return F(k,Promise.all(e),3);case 3:if(!c){k.u(4); +break}return F(k,b.g.destroy(),4);case 4:b.h=null,b.g=null,G(k)}})});this.m=1E9}function pB(){if(wi(rb()))a:{var a=t(AA.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}p=oB.prototype;p.destroy=function(){return this.j.destroy()};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=kn(a,b));return Jn(this.h,a)};p.getConfiguration=function(){var a=En();Jn(a,this.h,En());return a};p.Nb=function(){return this.g}; +p.store=function(a,b,c,d,e){var f=this,g=this.getConfiguration(),h=new iA(this.g);this.l.push(h);b=qB(this,a,b||{},d||[],e||[],function(){var k;return Q(function(l){if(1==l.g)return c?l.u(2):F(l,Do(a,f.g,g.manifest.retryParameters),3);2!=l.g&&(c=l.h);k=yi(a,c||null);return l.return(k())})},g,h);b=new vg(b,function(){return jA(h)});b.finally(function(){Uc(f.l,h)});return rB(this,b)}; +function qB(a,b,c,d,e,f,g,h){var k,l,m,n,q,r,u,w,v,y,z,A,C,E,H,B,D,I,K,J,L,N,O,M;return Q(function(P){switch(P.g){case 1:return sB(),l=k=null,m=new zA,r=q=n=null,wa(P,2,3),F(P,f(),5);case 5:return k=P.h,F(P,tB(a,b,k,g),6);case 6:u=P.h;uB(a);w=!u.presentationTimeline.V()&&!u.presentationTimeline.Sc();if(!w)throw new U(2,9,9005,b);v=t(d);y=v.next();case 7:if(y.done){P.u(9);break}z=y.value;return F(P,vB(a,z,u),10);case 10:A=P.h;u.imageStreams.push(A);uB(a);y=v.next();P.u(7);break;case 9:C=t(e),E=C.next(); +case 11:if(E.done)return Ch(g.drm.clearKeys,u.variants),D=u.variants.some(function(R){if(R.audio)for(var S=t(R.audio.drmInfos),aa=S.next();!aa.done;aa=S.next())if(aa.value.licenseServerUri.startsWith("data:"))return!0;if(R.video)for(R=t(R.video.drmInfos),S=R.next();!S.done;S=R.next())if(S.value.licenseServerUri.startsWith("data:"))return!0;return!1}),I=g.offline.usePersistentLicense,D&&(I=!1),F(P,a.ed(u,function(R){r=r||R},g,I),15);H=E.value;return F(P,wB(a,u,H.uri,H.language,H.kind,H.mime,H.codecs), +14);case 14:B=P.h;u.textStreams.push(B);uB(a);E=C.next();P.u(11);break;case 15:l=P.h;uB(a);if(r)throw r;return F(P,xB(u,l,g,I),16);case 16:return F(P,m.init(),17);case 17:return uB(a),F(P,BA(m),18);case 18:return n=P.h,uB(a),K=yB(l,u,b,c,g,h,I),J=K.jk,L=K.uh,F(P,n.bb.addManifests([J]),19);case 19:N=P.h;uB(a);q=N[0];uB(a);if(r)throw r;return F(P,zB(a,L,q,J,h,g,n.bb,u,l,I),20);case 20:return uB(a),AB(u,J,l,I),F(P,n.bb.updateManifest(q,J),21);case 21:return uB(a),O=new TA("manifest",n.path.Pb,n.path.bb, +q),P.return(jB(O,J));case 3:return Ba(P),F(P,m.destroy(),22);case 22:if(!k){P.u(23);break}return F(P,k.stop(),23);case 23:if(!l){P.u(25);break}return F(P,l.destroy(),25);case 25:Da(P,0);break;case 2:M=Aa(P);if(null==q){P.u(27);break}return F(P,BB(q),27);case 27:throw r||M;}})} +function zB(a,b,c,d,e,f,g,h,k,l){var m,n,q,r,u,w,v,y,z,A,C;return Q(function(E){switch(E.g){case 1:m={};n=0;q=function(){if(a.j.g||e.l)throw new U(2,9,7001);};r=function(H,B){var D,I,K,J,L,N,O,M,P;return Q(function(R){if(1==R.g){D=t(H);I=D.next();for(K={};!I.done;K={hc:void 0},I=D.next())K.hc=I.value,q(),J=eA(K.hc,f),L=K.hc.i,N=K.hc.h,O=function(S){return function(aa){var W,Fa,Ga,ya;return Q(function(qa){switch(qa.g){case 1:W=S.hc.g;Fa=W.Wb(!1);if(!W.aesKey||Fa){qa.u(2);break}return F(qa,sm(aa,W.aesKey, +S.hc.j),3);case 3:aa=qa.h;case 2:return Ga=dA(W),F(qa,g.addSegments([{data:aa}]),4);case 4:ya=qa.h,q(),m[Ga]=ya[0],n+=aa.byteLength,G(qa)}})}}(K),M=K.hc.g,(P=M.Wb(!1))?mA(e,K.hc.groupId,P,L,N,O):e.queue(K.hc.groupId,J,L,N,O);return F(R,nA(e),2)}q();if(!B||e.l)return R.u(0);AB(h,d,k,l);return F(R,g.updateManifest(c,d),0)})};u=!1;wa(E,2);if(!CB(h)||!u||DB(h)){E.u(4);break}return F(E,r(b.filter(function(H){return H.h}),!0),5);case 5:return q(),b=b.filter(function(H){return!H.h}),w=m,v=n,m={},n=0,F(E, +EB(g,c,d,w,v,function(){return uB(a)}),6);case 6:q();case 4:if(u){E.u(7);break}return F(E,r(b,!1),8);case 8:return q(),y=m,z=n,m={},n=0,F(E,EB(g,c,d,y,z,function(){return q()}),9);case 9:q();case 7:za(E,0);break;case 2:return A=Aa(E),C=Object.values(m),F(E,g.removeSegments(C,function(){}),10);case 10:throw A;}})} +function BB(a){var b,c,d,e;return Q(function(f){switch(f.g){case 1:return b=new zA,F(f,b.init(),2);case 2:return F(f,BA(b),3);case 3:return c=f.h,d=new TA("manifest",c.path.Pb,c.path.bb,a),F(f,b.destroy(),4);case 4:return e=new oB,F(f,e.remove(d.toString()),0)}})} +function EB(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,u,w,v;return Q(function(y){switch(y.g){case 1:g=!1;wa(y,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),q=n.next();!q.done;q=n.next())r=q.value,u=r.pendingSegmentRefId?d[r.pendingSegmentRefId]:null,null!=u&&(r.dataKey=u,r.pendingSegmentRefId=void 0),u=r.pendingInitSegmentRefId?d[r.pendingInitSegmentRefId]:null,null!=u&&(r.initSegmentKey=u,r.pendingInitSegmentRefId=void 0),r.pendingSegmentRefId&&(h=!1),r.pendingInitSegmentRefId&& +(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return F(y,a.updateManifest(b,c),4);case 4:g=!0;f();za(y,0);break;case 2:return w=Aa(y),F(y,BB(b),5);case 5:if(g){y.u(6);break}v=Object.values(d);return F(y,a.removeSegments(v,function(){}),6);case 6:throw w;}})} +function xB(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,C,E,H,B,D,I,K,J,L,N,O,M,P,R;return Q(function(S){switch(S.g){case 1:return e={width:Infinity,height:Infinity},tf(a,c.restrictions,e),F(S,wf(b,a,d,c.drm.preferredKeySystems,c.drm.keySystemsMapping),2);case 2:f=[];g=c.preferredDecodingAttributes;h=c.preferredVideoCodecs;k=c.preferredAudioCodecs;l=c.preferredTextFormats;rf(a,h,k,g,l);m=t(a.variants);for(n=m.next();!n.done;n=m.next())q=n.value,f.push(Of(q));r=t(a.textStreams);for(u=r.next();!u.done;u= +r.next())w=u.value,f.push(Pf(w));v=t(a.imageStreams);for(y=v.next();!y.done;y=v.next())z=y.value,f.push(Qf(z));return F(S,c.offline.trackSelectionCallback(f),3);case 3:A=S.h;C=a.presentationTimeline.getDuration();E=0;H=t(A);for(B=H.next();!B.done;B=H.next())D=B.value,I=D.bandwidth*C/8,E+=I;wa(S,4);return F(S,c.offline.downloadSizeCallback(E),6);case 6:K=S.h;if(!K)throw new U(2,9,9014);za(S,5);break;case 4:J=Aa(S);if(J instanceof U)throw J;throw new U(2,9,9015);case 5:L=new Set;N=new Set;O=new Set; +M=t(A);for(P=M.next();!P.done;P=M.next())R=P.value,"variant"==R.type&&L.add(R.id),"text"==R.type&&N.add(R.id),"image"==R.type&&O.add(R.id);a.variants=a.variants.filter(function(aa){return L.has(aa.id)});a.textStreams=a.textStreams.filter(function(aa){return N.has(aa.id)});a.imageStreams=a.imageStreams.filter(function(aa){return O.has(aa.id)});FB(a);G(S)}})} +function yB(a,b,c,d,e,f,g){var h=hB(c,b,d),k=e.offline.progressCallback;kA(f,function(u,w){h.size=w;k(h,u)},function(u,w){l&&g&&m==w&&Ih(a,"cenc",u)});var l=CB(b)&&!DB(b),m=null;l&&(m=GB.get(a.g.keySystem));for(var n=new kB,q=t(b.textStreams),r=q.next();!r.done;r=q.next())n.g.set(r.value.id,52);q=t(b.imageStreams);for(r=q.next();!r.done;r=q.next())mB(n,r.value);q=t(b.variants);for(r=q.next();!r.done;r=q.next())lB(n,r.value);f=HB(f,n,b,e);e=f.streams;f=f.uh;(n=a.g)&&g&&(n.initData=[]);return{jk:{creationTime:Date.now(), +originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Nd(),streams:e,sessionIds:g?Rh(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},uh:f}}function CB(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})} +function DB(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function AB(a,b,c,d){b.expiration=c.Nd();c=Rh(c);b.sessionIds=d?c:[];if(CB(a)&&d&&!c.length)throw new U(2,9,9007);}p.remove=function(a){return IB(this,JB(this,a))}; +function JB(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:sB();c=UA(b);if(null==c||"manifest"!=c.g)throw new U(2,9,9004,b);d=c;e=new zA;xa(k,2);return F(k,e.init(),4);case 4:return F(k,DA(e,d.Pb(),d.bb()),5);case 5:return f=k.h,F(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],F(k,Promise.all([KB(a,h,e),LB(f,d,h)]),2);case 2:return Ba(k),F(k,e.destroy(),8);case 8:Da(k,0)}})} +function MB(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:Ee(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:Ee(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function KB(a,b,c){return Q(function(d){return F(d,NB(a.g,a.h.drm,c,b),0)})} +function LB(a,b,c){function d(){}var e=OB(c);jB(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.Gk=function(){return IB(this,PB(this))}; +function PB(a){var b,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return sB(),b=a.g,c=a.h.drm,d=new zA,e=!1,xa(n,2),F(n,d.init(),4);case 4:f=[],EA(d,function(q){return f.push(q)}),g=t(f),h=g.next();case 5:if(h.done){n.u(2);break}k=h.value;return F(n,k.getAll(),8);case 8:return l=n.h,F(n,eB(c,b,l),9);case 9:return m=n.h,F(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.u(5);break;case 2:return Ba(n),F(n,d.destroy(),11);case 11:Da(n,3);break;case 3:return n.return(!e)}})} +p.list=function(){return IB(this,QB())};function QB(){var a,b,c;return Q(function(d){switch(d.g){case 1:return sB(),a=[],b=new zA,xa(d,2),F(d,b.init(),4);case 4:return c=Promise.resolve(),CA(b,function(e,f){c=c.then(function(){var g;return Q(function(h){if(1==h.g)return F(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=jB(new TA("manifest",e.Pb,e.bb,l),k);a.push(k)});G(h)})})}),F(d,c,2);case 2:return Ba(d),F(d,b.destroy(),6);case 6:Da(d,3);break;case 3:return d.return(a)}})} +function tB(a,b,c,d){var e,f,g,h,k;return Q(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate},onMetadata:function(){},disableStream:function(){}, +addFont:function(){}},c.configure(d.manifest),uB(a),F(l,c.start(b,g),2);if(3!=l.g)return h=l.h,uB(a),k=RB(h),F(l,Promise.all(Wg(k,function(m){return m.createSegmentIndex()})),3);uB(a);if(e)throw e;return l.return(h)})} +function vB(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y;return Q(function(z){switch(z.g){case 1:return F(z,SB(a,b),2);case 2:d=z.h;if("text/vtt"!=d)throw new U(1,2,2017,b);return F(z,TB(b,a.g,a.h.streaming.retryParameters),3);case 3:e=z.h;f=Te(d);if(!f)throw new U(2,2,2014,d);g=f();h={periodStart:0,segmentStart:0,segmentEnd:c.presentationTimeline.getDuration(),vttOffset:0};k=Tb(e);l=g.parseMedia(k,h,b,[]);m=[];n=t(l);q=n.next();for(r={};!q.done;r={Kf:void 0,gd:void 0},q=n.next())r.gd=q.value,r.Kf=null, +u=function(A){return function(){null==A.Kf&&(A.Kf=qc([b],[A.gd.payload]));return A.Kf||[]}}(r),w=new rj(r.gd.startTime,r.gd.endTime,u,0,null,null,0,0,Infinity),r.gd.payload.includes("#xywh")&&(v=r.gd.payload.split("#xywh=")[1].split(","),4===v.length&&w.Df({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)})),m.push(w);y=d;if(!m.length){z.u(4);break}return F(z,Do(m[0].O()[0],a.g,a.h.manifest.retryParameters),5);case 5:y=z.h;case 4:return z.return({id:a.m++, +originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Jl(m),mimeType:y||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"image",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Ee(y|| "","")]),isAudioMuxedInVideo:!1,baseOriginalId:null})}})} -function pB(a,b,c,d,e,f,g){var h,k,l;return Q(function(m){if(1==m.g)return f?m.u(2):F(m,LB(a,c),3);2!=m.g&&(f=m.h);h={id:a.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:El(0,b.presentationTimeline.getDuration(),[c]),mimeType:f||"",codecs:g||"",kind:e,encrypted:!1,drmInfos:[],keyIds:new Set,language:d,originalLanguage:d,label:null,type:wc,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null, -audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([De(f||"",g||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};k=De(h.mimeType,h.codecs);l=Te(k);if(!l)throw new U(2,2,2014,f);return m.return(h)})} -function LB(a,b){var c;return Q(function(d){switch(d.g){case 1:return wa(d,2),F(d,vo(b,a.g,a.h.streaming.retryParameters),4);case 4:c=d.h;za(d,3);break;case 2:Aa(d);case 3:if(c)return d.return(c);throw new U(1,2,2011,b);}})}function MB(a,b,c){var d,e,f;return Q(function(g){if(1==g.g)return d=Rg,e=Lg([a],c),e.method="GET",F(g,b.request(d,e).promise,2);f=g.h;return g.return(f.data)})} -p.dd=function(a,b,c,d){var e=this,f;return Q(function(g){return 1==g.g?(f=new oh({lc:e.g,onError:b,nf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),f.configure(c.drm),F(g,wh(f,a.variants,d),2)):3!=g.g?F(g,Jh(f),3):g.return(f)})}; -function AB(a,b,c,d){var e=new Map,f=KB(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=NB(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),sh:Array.from(e.values())}} -function NB(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,colorGamut:d.colorGamut,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount, -audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,mssPrivateData:d.mssPrivateData,external:d.external,fastSwitching:d.fastSwitching,isAudioMuxedInVideo:d.isAudioMuxedInVideo},h=e.offline.numberOfParallelDownloads,k=0===h?d.id:0;OB(d,c.presentationTimeline.Eb(),function(l,m){var n=Xz(l),q=void 0;if(!f.has(n)){var r=l.endTime-l.startTime;r=gB(b,d.id)*r;r=$z(a.g,r);f.set(n,new Wz(l,r,k,!1,m))}l.Z&&(q=Xz(l.Z),f.has(q)||(r=.5*gB(b, -d.id),r=$z(a.g,r),f.set(q,new Wz(l.Z,r,k,!0,m))));g.segments.push({pendingInitSegmentRefId:q,initSegmentKey:q?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:n,dataKey:0,mimeType:l.mimeType,codecs:l.codecs,thumbnailSprite:l.thumbnailSprite});0!==h&&(k=(k+1)%h)});return g} -function OB(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d,b),d=a.segmentIndex.get(++b)}function nB(a){if(a.j.g)throw new U(2,9,7001);}function lB(){if(!iB())throw new U(2,9,9E3);}function BB(a,b){return Q(function(c){if(1==c.g)return a.i.push(b),ya(c,2),F(c,b,4);if(2!=c.g)return c.return(c.h);Ba(c);Uc(a.i,b);return Ca(c,0)})}function kB(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){Uc(a.i,c)})} -function HB(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)} -function GB(a,b,c,d){var e,f,g;return Q(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=yA(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:FB(d,!1),videoCapabilities:FB(d,!0)}});return F(h,YA(b,a,f),2)}return 3!=h.g?(g=h.h,F(h,e.remove(g),3)):F(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})} -function KB(a){for(var b=new Set,c=t(a.variants),d=c.next();!d.done;d=c.next())d=d.value,d.audio&&b.add(d.audio),d.video&&b.add(d.video);c=t(a.textStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.imageStreams);for(c=a.next();!c.done;c=a.next())b.add(c.value);return b} -function yB(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}T("shaka.offline.Storage",hB);hB.deleteAll=function(){var a;return Q(function(b){return 1==b.g?(a=new sA,ya(b,2),F(b,zA(a),2)):5!=b.g?(Ba(b),F(b,a.destroy(),5)):Ca(b,0)})}; -hB.prototype.list=hB.prototype.list;hB.prototype.removeEmeSessions=hB.prototype.Fk;hB.prototype.remove=hB.prototype.remove;hB.prototype.store=hB.prototype.store;hB.prototype.getNetworkingEngine=hB.prototype.Nb;hB.prototype.getConfiguration=hB.prototype.getConfiguration;hB.prototype.configure=hB.prototype.configure;hB.prototype.destroy=hB.prototype.destroy;hB.support=iB; -var zB=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.huawei.wiseplay","3d5e6d359b9a41e8b843dd3c6e72c42c"); -Up("offline",iB);function PB(){}function QB(a,b){a={priority:b||0,callback:a};for(b=0;b=b?(jC(),kC()):15>=b&&jC());a=t(a.ti());for(b=a.next();!b.done;b=a.next())lC(b.value);(window.MediaSource||window.ManagedMediaSource)&&mC();window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&nC()} -function jC(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Oa.apply(0,arguments));b.abort=function(){};return b}}function kC(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}} -function mC(){if(window.MediaSource){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"mp2t"!=He(c)&&a(c)}}if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"mp2t"!=He(c)&&b(c)}}} -function lC(a){var b=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(d){return Ke(d)!=a&&b(d)};if(window.ManagedMediaSource){var c=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(d){return Ke(d)!=a&&c(d)}}} -function nC(){var a=MediaSource.isTypeSupported;qb().Si()&&(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}PB.MediaSource=hC;hC.install=iC;QB(iC);function oC(){}function pC(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?qC():void 0!=window.orientation&&rC())}function qC(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})} -function rC(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new sC;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new V("change");b.dispatchEvent(c)})}PB.Orientation=oC;oC.install=pC;function sC(){Dg.call(this);this.type="";this.angle=0}pa(sC,Dg); -sC.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)}; -sC.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};QB(pC);function tC(){}var uC,vC,wC,xC,yC,zC; -function AC(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys&&window.shakaMediaKeysPolyfill!=BC){if(void 0===a?0:a)uC=!0,vC=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),wC=HTMLMediaElement.prototype.setMediaKeys,xC=window.MediaKeys,yC=window.MediaKeySystemAccess,zC=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=CC;window.MediaKeys=DC;window.MediaKeySystemAccess= -EC;navigator.requestMediaKeySystemAccess=FC;window.shakaMediaKeysPolyfill=BC;Df.clear();pg.clear()}}function FC(a,b){try{var c=new EC(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function CC(a){var b=this.mediaKeys;b&&b!=a&&GC(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?GC(a,this):Promise.resolve()} -function HC(a){a=Tb(a.initData);if(Yb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=bc(a.subarray(4),!0);a=ec(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Ub(a);this.dispatchEvent(b)}PB.PatchedMediaKeysApple=tC; -tC.uninstall=function(){window.shakaMediaKeysPolyfill==BC&&uC&&(uC=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",vC),HTMLMediaElement.prototype.setMediaKeys=wC,window.MediaKeys=xC,window.MediaKeySystemAccess=yC,navigator.requestMediaKeySystemAccess=zC,vC=zC=wC=yC=xC=null,window.shakaMediaKeysPolyfill="",Df.clear(),pg.clear())};tC.install=AC; -function EC(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem, +function mC(a){var b,c,d,e,f;return Q(function(g){if(1==g.g){if(!(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType))return g.return(Ec(a.contentType));b=a.contentType;a.width&&a.height&&1280=b?(qC(),rC()):15>=b&&qC());a=t(a.ui());for(b=a.next();!b.done;b=a.next())sC(b.value);(window.MediaSource||window.ManagedMediaSource)&&tC();window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&uC()} +function qC(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Oa.apply(0,arguments));b.abort=function(){};return b}}function rC(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}} +function tC(){if(window.MediaSource){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"mp2t"!=Ie(c)&&a(c)}}if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"mp2t"!=Ie(c)&&b(c)}}} +function sC(a){var b=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(d){return Le(d)!=a&&b(d)};if(window.ManagedMediaSource){var c=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(d){return Le(d)!=a&&c(d)}}} +function uC(){var a=MediaSource.isTypeSupported;rb().Ti()&&(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}WB.MediaSource=oC;oC.install=pC;XB(pC);function vC(){}function wC(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?xC():void 0!=window.orientation&&yC())}function xC(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})} +function yC(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new zC;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new V("change");b.dispatchEvent(c)})}WB.Orientation=vC;vC.install=wC;function zC(){Eg.call(this);this.type="";this.angle=0}pa(zC,Eg); +zC.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)}; +zC.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};XB(wC);function AC(){}var BC,CC,DC,EC,FC,GC; +function HC(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys&&window.shakaMediaKeysPolyfill!=IC){if(void 0===a?0:a)BC=!0,CC=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),DC=HTMLMediaElement.prototype.setMediaKeys,EC=window.MediaKeys,FC=window.MediaKeySystemAccess,GC=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=JC;window.MediaKeys=KC;window.MediaKeySystemAccess= +LC;navigator.requestMediaKeySystemAccess=MC;window.shakaMediaKeysPolyfill=IC;Ef.clear();qg.clear()}}function MC(a,b){try{var c=new LC(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function JC(a){var b=this.mediaKeys;b&&b!=a&&NC(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?NC(a,this):Promise.resolve()} +function OC(a){a=Tb(a.initData);if(Yb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=bc(a.subarray(4),!0);a=ec(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Ub(a);this.dispatchEvent(b)}WB.PatchedMediaKeysApple=AC; +AC.uninstall=function(){window.shakaMediaKeysPolyfill==IC&&BC&&(BC=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",CC),HTMLMediaElement.prototype.setMediaKeys=DC,window.MediaKeys=EC,window.MediaKeySystemAccess=FC,navigator.requestMediaKeySystemAccess=GC,CC=GC=DC=FC=EC=null,window.shakaMediaKeysPolyfill="",Ef.clear(),qg.clear())};AC.install=HC; +function LC(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem, g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(c.videoCapabilities),f=c.next();!f.done;f=c.next())f=f.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;} -EC.prototype.createMediaKeys=function(){var a=new DC(this.keySystem);return Promise.resolve(a)};EC.prototype.getConfiguration=function(){return this.g};function DC(a){this.h=new WebKitMediaKeys(a);this.g=new jb}DC.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new IC(this.h,a)};DC.prototype.setServerCertificate=function(){return Promise.resolve(!1)}; -function GC(a,b){a.g.Ra();if(!b)return Promise.resolve();a.g.D(b,"webkitneedkey",HC);try{return ll(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}DC.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function IC(a){Dg.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new jb;this.sessionId="";this.expiration=NaN;this.closed=new tg;this.keyStatuses=new JC}pa(IC,Dg);p=IC.prototype; -p.generateRequest=function(a,b){var c=this;this.h=new tg;try{var d=this.l.createSession("video/mp4",Tb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.D(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.xc()?"license-request":"license-renewal").set("message",Ub(e.message));e=new V("message",e);c.dispatchEvent(e)});this.j.D(d,"webkitkeyadded",function(){c.g&&(KC(c,"usable"),c.g.resolve(),c.g=null)});this.j.D(d,"webkitkeyerror", -function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:KC(c,"output-not-allowed");break;default:KC(c,"internal-error")}});KC(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))}; -p.update=function(a){this.g=new tg;try{this.i.update(Tb(a))}catch(b){this.g.reject(b)}return this.g};p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Ra()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function KC(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new V("keystatuseschange");a.dispatchEvent(b)} -function JC(){this.size=0;this.g=void 0}p=JC.prototype;p.xc=function(){return this.g};p.forEach=function(a){this.g&&a(this.g,og.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=og.value();return this.g&&Sb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var BC="apple";QB(function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||AC())});function LC(){}function MC(){if(window.MediaKeys){var a=qb();MediaKeys.prototype.setServerCertificate&&a.ge()||(MediaKeys.prototype.setServerCertificate=NC)}}function NC(){return Promise.resolve(!1)}PB.PatchedMediaKeysCert=LC;LC.install=MC;QB(MC);function OC(){} -function PC(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)QC="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=RC;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=SC;window.MediaKeys=TC;window.MediaKeySystemAccess=UC;window.shakaMediaKeysPolyfill=VC}} -function WC(a){var b=QC;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function RC(a,b){try{var c=new UC(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function SC(a){var b=this.mediaKeys;b&&b!=a&&XC(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&XC(a,this);return Promise.resolve()}PB.PatchedMediaKeysWebkit=OC;OC.install=PC; -function UC(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities), +LC.prototype.createMediaKeys=function(){var a=new KC(this.keySystem);return Promise.resolve(a)};LC.prototype.getConfiguration=function(){return this.g};function KC(a){this.h=new WebKitMediaKeys(a);this.g=new jb}KC.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new PC(this.h,a)};KC.prototype.setServerCertificate=function(){return Promise.resolve(!1)}; +function NC(a,b){a.g.Qa();if(!b)return Promise.resolve();a.g.D(b,"webkitneedkey",OC);try{return sl(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}KC.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function PC(a){Eg.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new jb;this.sessionId="";this.expiration=NaN;this.closed=new ug;this.keyStatuses=new QC}pa(PC,Eg);p=PC.prototype; +p.generateRequest=function(a,b){var c=this;this.h=new ug;try{var d=this.l.createSession("video/mp4",Tb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.D(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.Bc()?"license-request":"license-renewal").set("message",Ub(e.message));e=new V("message",e);c.dispatchEvent(e)});this.j.D(d,"webkitkeyadded",function(){c.g&&(RC(c,"usable"),c.g.resolve(),c.g=null)});this.j.D(d,"webkitkeyerror", +function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:RC(c,"output-not-allowed");break;default:RC(c,"internal-error")}});RC(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))}; +p.update=function(a){this.g=new ug;try{this.i.update(Tb(a))}catch(b){this.g.reject(b)}return this.g};p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Qa()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function RC(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new V("keystatuseschange");a.dispatchEvent(b)} +function QC(){this.size=0;this.g=void 0}p=QC.prototype;p.Bc=function(){return this.g};p.forEach=function(a){this.g&&a(this.g,pg.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=pg.value();return this.g&&Sb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var IC="apple";XB(function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||HC())});function SC(){}function TC(){if(window.MediaKeys){var a=rb();MediaKeys.prototype.setServerCertificate&&a.ge()||(MediaKeys.prototype.setServerCertificate=UC)}}function UC(){return Promise.resolve(!1)}WB.PatchedMediaKeysCert=SC;SC.install=TC;XB(TC);function VC(){} +function WC(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)XC="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=YC;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=ZC;window.MediaKeys=$C;window.MediaKeySystemAccess=aD;window.shakaMediaKeysPolyfill=bD}} +function cD(a){var b=XC;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function YC(a,b){try{var c=new aD(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function ZC(a){var b=this.mediaKeys;b&&b!=a&&dD(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&dD(a,this);return Promise.resolve()}WB.PatchedMediaKeysWebkit=VC;VC.install=WC; +function aD(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities), l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=t(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]): -d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}UC.prototype.createMediaKeys=function(){var a=new TC(this.g);return Promise.resolve(a)};UC.prototype.getConfiguration=function(){return this.h};function TC(a){this.l=a;this.h=null;this.g=new jb;this.i=[];this.j=new Map} -function XC(a,b){a.h=b;a.g.Ra();var c=QC;b&&(a.g.D(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Ub(d.initData);a.h.dispatchEvent(e)}),a.g.D(b,c+"keymessage",function(d){var e=YC(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.xc()?"licenserequest":"licenserenewal").set("message",d.message),d=new V("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.D(b,c+"keyadded",function(d){(d=YC(a,d.sessionId))&&d.ready()}), -a.g.D(b,c+"keyerror",function(d){var e=YC(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?ZC(e,"output-restricted"):1==f?ZC(e,"expired"):ZC(e,"internal-error"))}}))} -TC.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new $C(b,this.l,a);this.i.push(a);return a};TC.prototype.setServerCertificate=function(){return Promise.resolve(!1)};TC.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")}; -function YC(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function $C(a,b,c){Dg.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new tg;this.keyStatuses=new aD}pa($C,Dg);p=$C.prototype;p.ready=function(){ZC(this,"usable");this.g&&this.g.resolve();this.g=null}; -function bD(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Tb(ec("LOAD_SESSION|"+c));else{var e=ec("PERSISTENT|");d=pc(e,b)}else d=Tb(b)}catch(g){return Promise.reject(g)}a.h=new tg;var f=WC("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new $e(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).ha(.01)}return a.h} -function cD(a,b,c){if(a.g)a.g.then(function(){return cD(a,b,c)}).catch(function(){return cD(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=ac(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=mc(e.keys[0].k);e=mc(e.keys[0].kid)}else d=Tb(c),e=null;var f=WC("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}} -function ZC(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new V("keystatuseschange");a.dispatchEvent(b)}p.generateRequest=function(a,b){return bD(this,b,null)};p.load=function(a){return"persistent-license"==this.l?bD(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new tg;cD(this,b,a);return b}; -p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=WC("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function aD(){this.size=0;this.g=void 0}p=aD.prototype;p.xc=function(){return this.g}; -p.forEach=function(a){this.g&&a(this.g,og.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=og.value();return this.g&&Sb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var QC="",VC="webkit";QB(PC);function dD(){}function eD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=fD,Object.defineProperty(a,"disablePictureInPicture",{get:gD,set:hD,enumerable:!0,configurable:!0}),document.exitPictureInPicture=iD,document.addEventListener("webkitpresentationmodechanged",jD,!0))}} -function jD(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)} -function fD(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function iD(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))} -function gD(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function hD(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}PB.PiPWebkit=dD;dD.install=eD;QB(eD);function kD(){}function lD(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=mD))}function mD(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}PB.RandomUUID=kD;kD.install=lD;QB(lD);function nD(){}function oD(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:pD})}function pD(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}PB.Symbol=nD;nD.install=oD;QB(oD);function qD(){}function rD(){for(var a=t([Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array]),b=a.next();!b.done;b=a.next())b=b.value,b.prototype.indexOf||(b.prototype.indexOf=sD),b.prototype.lastIndexOf||(b.prototype.lastIndexOf=tD),b.prototype.includes||(b.prototype.includes=uD)}function sD(a,b){return Array.prototype.indexOf.call(this,a,b)}function tD(a,b){return Array.prototype.lastIndexOf.call(this,a,b)} -function uD(a,b){return-1!==this.indexOf(a,b)}PB.TypedArray=qD;qD.install=rD;QB(rD);function vD(){}function wD(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}PB.VideoPlayPromise=vD;vD.install=wD;QB(wD);function xD(){}function yD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||"number"===typeof wi().webkitDroppedFrameCount)&&(a.getVideoPlaybackQuality=zD)}}function zD(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}PB.VideoPlaybackQuality=xD;xD.install=yD;QB(yD);function AD(){}function BD(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=CD;else if(6==b)a=DD;else{try{var c=!!CD(1,2,"")}catch(d){c=!1}c&&(a=CD)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function CD(a,b,c){return new window.TextTrackCue(a,b,c)}function DD(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}PB.VTTCue=AD;AD.install=BD;QB(BD);function ED(a){Dg.call(this);this.h=a;this.l=null;this.g=[];this.i=-1;this.j=null;this.m=new jb}pa(ED,Dg);p=ED.prototype;p.destroy=function(){var a=this;return Q(function(b){if(1==b.g)return F(b,a.removeAllItems(),2);a.h=null;a.m&&(a.m.release(),a.m=null);Dg.prototype.release.call(a);G(b)})};p.configure=function(a){this.l=a};p.getConfiguration=function(){return this.l};p.getCurrentItem=function(){return this.g.length&&0<=this.i&&this.i=b.g.length)throw new U(2,7,7007);c=b.g[a];b.i!=a&&(b.i=a,b.dispatchEvent(new V("currentitemchanged")));d=b.h.h;e=b.l?b.l.preloadNextUrlWindow:0;0=b.g.length||f||b.h.V()||!d.duration)return E.return();y=b.h.Sa().end-d.currentTime;if(isNaN(y)){E.u(0);break}if(!(y<=e)){E.u(0);break}z= -b.l&&b.l.repeatMode;A=null;b.i+1 can only be inside
in TTML");q=t(qd(e,"div"));for(r=q.next();!r.done;r=q.next())if(qd(r.value,"span").length)throw new U(2,2,2001," can only be inside

in TTML");if(b=OD(e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor="transparent"), +d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}aD.prototype.createMediaKeys=function(){var a=new $C(this.g);return Promise.resolve(a)};aD.prototype.getConfiguration=function(){return this.h};function $C(a){this.l=a;this.h=null;this.g=new jb;this.i=[];this.j=new Map} +function dD(a,b){a.h=b;a.g.Qa();var c=XC;b&&(a.g.D(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Ub(d.initData);a.h.dispatchEvent(e)}),a.g.D(b,c+"keymessage",function(d){var e=eD(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Bc()?"licenserequest":"licenserenewal").set("message",d.message),d=new V("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.D(b,c+"keyadded",function(d){(d=eD(a,d.sessionId))&&d.ready()}), +a.g.D(b,c+"keyerror",function(d){var e=eD(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?fD(e,"output-restricted"):1==f?fD(e,"expired"):fD(e,"internal-error"))}}))} +$C.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new gD(b,this.l,a);this.i.push(a);return a};$C.prototype.setServerCertificate=function(){return Promise.resolve(!1)};$C.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")}; +function eD(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function gD(a,b,c){Eg.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new ug;this.keyStatuses=new hD}pa(gD,Eg);p=gD.prototype;p.ready=function(){fD(this,"usable");this.g&&this.g.resolve();this.g=null}; +function iD(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Tb(ec("LOAD_SESSION|"+c));else{var e=ec("PERSISTENT|");d=pc(e,b)}else d=Tb(b)}catch(g){return Promise.reject(g)}a.h=new ug;var f=cD("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new af(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).ha(.01)}return a.h} +function jD(a,b,c){if(a.g)a.g.then(function(){return jD(a,b,c)}).catch(function(){return jD(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=ac(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=mc(e.keys[0].k);e=mc(e.keys[0].kid)}else d=Tb(c),e=null;var f=cD("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}} +function fD(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new V("keystatuseschange");a.dispatchEvent(b)}p.generateRequest=function(a,b){return iD(this,b,null)};p.load=function(a){return"persistent-license"==this.l?iD(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new ug;jD(this,b,a);return b}; +p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=cD("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function hD(){this.size=0;this.g=void 0}p=hD.prototype;p.Bc=function(){return this.g}; +p.forEach=function(a){this.g&&a(this.g,pg.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=pg.value();return this.g&&Sb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var XC="",bD="webkit";XB(WC);function kD(){}function lD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=mD,Object.defineProperty(a,"disablePictureInPicture",{get:nD,set:oD,enumerable:!0,configurable:!0}),document.exitPictureInPicture=pD,document.addEventListener("webkitpresentationmodechanged",qD,!0))}} +function qD(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)} +function mD(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function pD(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))} +function nD(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function oD(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}WB.PiPWebkit=kD;kD.install=lD;XB(lD);function rD(){}function sD(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=tD))}function tD(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}WB.RandomUUID=rD;rD.install=sD;XB(sD);function uD(){}function vD(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:wD})}function wD(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}WB.Symbol=uD;uD.install=vD;XB(vD);function xD(){}function yD(){for(var a=t([Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array]),b=a.next();!b.done;b=a.next())b=b.value,b.prototype.indexOf||(b.prototype.indexOf=zD),b.prototype.lastIndexOf||(b.prototype.lastIndexOf=AD),b.prototype.includes||(b.prototype.includes=BD)}function zD(a,b){return Array.prototype.indexOf.call(this,a,b)}function AD(a,b){return Array.prototype.lastIndexOf.call(this,a,b)} +function BD(a,b){return-1!==this.indexOf(a,b)}WB.TypedArray=xD;xD.install=yD;XB(yD);function CD(){}function DD(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}WB.VideoPlayPromise=CD;CD.install=DD;XB(DD);function ED(){}function FD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||"number"===typeof xi().webkitDroppedFrameCount)&&(a.getVideoPlaybackQuality=GD)}}function GD(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}WB.VideoPlaybackQuality=ED;ED.install=FD;XB(FD);function HD(){}function ID(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=JD;else if(6==b)a=KD;else{try{var c=!!JD(1,2,"")}catch(d){c=!1}c&&(a=JD)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function JD(a,b,c){return new window.TextTrackCue(a,b,c)}function KD(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}WB.VTTCue=HD;HD.install=ID;XB(ID);function LD(a){Eg.call(this);this.h=a;this.l=null;this.g=[];this.i=-1;this.j=null;this.m=new jb}pa(LD,Eg);p=LD.prototype;p.destroy=function(){var a=this;return Q(function(b){if(1==b.g)return F(b,a.removeAllItems(),2);a.h=null;a.m&&(a.m.release(),a.m=null);Eg.prototype.release.call(a);G(b)})};p.configure=function(a){this.l=a};p.getConfiguration=function(){return this.l};p.getCurrentItem=function(){return this.g.length&&0<=this.i&&this.i=b.g.length)throw new U(2,7,7007);c=b.g[a];b.i!=a&&(b.i=a,b.dispatchEvent(new V("currentitemchanged")));d=b.h.h;e=b.l?b.l.preloadNextUrlWindow:0;0=b.g.length||f||b.h.V()||!d.duration)return E.return();y=b.h.Ra().end-d.currentTime;if(isNaN(y)){E.u(0);break}if(!(y<=e)){E.u(0);break}z= +b.l&&b.l.repeatMode;A=null;b.i+1 can only be inside

in TTML");q=t(rd(e,"div"));for(r=q.next();!r.done;r=q.next())if(rd(r.value,"span").length)throw new U(2,2,2001," can only be inside

in TTML");if(b=VD(e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor="transparent"), a.push(b);return a}; -function OD(a,b,c,d,e,f,g,h,k,l,m,n,q){var r=l;if(od(a)){if(!m)return null;var u={tagName:"span",children:[rd(a)],attributes:{},parent:null}}else u=a;for(var w=null,v=t(PD),y=v.next();!y.done&&!(w=QD(u,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=null;y=zd(u,PD,"backgroundImage");var z=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(y&&z.test(y)){v=parseInt(y.split(":").pop(),10)-1;if(v>=q.length)return null;v=q[v]}else n&&y&&!y.startsWith("#")&&(z=new Bb(n),y=new Bb(y),(y=z.resolve(y).toString())&& -(v=y));if("p"==a.tagName||w||v)m=!0;a=m;y="default"==(u.attributes["xml:space"]||(h?"default":"preserve"));z=u.children.every(od);h=[];if(!z)for(var A=t(u.children),B=A.next();!B.done;B=A.next())(B=OD(B.value,b,c,d,e,f,g,y,k,u,m,n,q))&&h.push(B);d=null!=l;n=rd(u);n=u.children.length&&n&&/\S/.test(n);A=u.attributes.begin||u.attributes.end||u.attributes.dur;if(!(A||n||"br"==u.tagName||0!=h.length||d&&!y))return null;q=RD(u,c);n=q.start;for(q=q.end;r&&r.tagName&&"tt"!=r.tagName;)q=SD(r,c,n,q),n=q.start, -q=q.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;q=null==q?Infinity:q+b.periodStart;n=Math.max(n,b.segmentStart);q=Math.min(q,b.segmentEnd);if(!A&&0c.length)return f;var g=a;for(a=null;!a&&!(a=e?yd(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f} -function SD(a,b,c,d){a=RD(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}function RD(a,b){var c=fE(a.attributes.begin,b),d=fE(a.attributes.end,b);a=fE(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}} -function fE(a,b){var c=null;if(gE.test(a)){a=gE.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(hE.test(a))c=iE(hE,a);else if(jE.test(a))c=iE(jE,a);else if(kE.test(a))a=kE.exec(a),c=Number(a[1])/b.frameRate;else if(lE.test(a))a=lE.exec(a),c=Number(a[1])/b.g;else if(mE.test(a))c=iE(mE,a);else if(a)throw new U(2,2,2001,"Could not parse cue time range in TTML");return c} -function iE(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}function MD(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Gc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}T("shaka.text.TtmlTextParser",ID);ID.prototype.parseMedia=ID.prototype.parseMedia;ID.prototype.setManifestType=ID.prototype.setManifestType;ID.prototype.setSequenceMode=ID.prototype.setSequenceMode;ID.prototype.parseInit=ID.prototype.parseInit; -function LD(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))} -var UD=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,bE=/^(\d{1,4}(?:\.\d+)?|100)%$/,aE=/^(\d+px|\d+em|\d*\.?\d+c)$/,VD=/^(\d+)px (\d+)px$/,gE=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,hE=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,jE=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,kE=/^(\d*(?:\.\d*)?)f$/,lE=/^(\d*(?:\.\d*)?)t$/,mE=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),$D=(new Map).set("left",Xd).set("center","center").set("right", -"end").set("start",Xd).set("end","end"),ZD=(new Map).set("left","line-left").set("center","center").set("right","line-right"),JD=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],KD=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],PD=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Qe("application/ttml+xml",function(){return new ID});function nE(){this.g=new ID}nE.prototype.parseInit=function(a){var b=!1;(new bh).box("moov",gh).box("trak",gh).box("mdia",gh).box("minf",gh).box("stbl",gh).R("stsd",ih).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new U(2,2,2007);};nE.prototype.setSequenceMode=function(){};nE.prototype.setManifestType=function(){}; -nE.prototype.parseMedia=function(a,b,c){var d=[],e=null,f=[],g=new Map,h=[];(new bh).box("moof",gh).box("traf",gh).R("tfhd",function(y){e=yi(y.reader,y.flags).Jd}).R("trun",function(y){y=Bi(y.reader,y.version,y.flags);y=t(y.$g);for(var z=y.next();!z.done;z=y.next())h.push(z.value.sampleSize||e||0)}).R("subs",function(y){for(var z=y.reader,A=z.T(),B=-1,E=0;E=q.length)return null;v=q[v]}else n&&y&&!y.startsWith("#")&&(z=new Bb(n),y=new Bb(y),(y=z.resolve(y).toString())&& +(v=y));if("p"==a.tagName||w||v)m=!0;a=m;y="default"==(u.attributes["xml:space"]||(h?"default":"preserve"));z=u.children.every(pd);h=[];if(!z)for(var A=t(u.children),C=A.next();!C.done;C=A.next())(C=VD(C.value,b,c,d,e,f,g,y,k,u,m,n,q))&&h.push(C);d=null!=l;n=sd(u);n=u.children.length&&n&&/\S/.test(n);A=u.attributes.begin||u.attributes.end||u.attributes.dur;if(!(A||n||"br"==u.tagName||0!=h.length||d&&!y))return null;q=YD(u,c);n=q.start;for(q=q.end;r&&r.tagName&&"tt"!=r.tagName;)q=ZD(r,c,n,q),n=q.start, +q=q.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;q=null==q?Infinity:q+b.periodStart;n=Math.max(n,b.segmentStart);q=Math.min(q,b.segmentEnd);if(!A&&0c.length)return f;var g=a;for(a=null;!a&&!(a=e?zd(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f} +function ZD(a,b,c,d){a=YD(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}function YD(a,b){var c=mE(a.attributes.begin,b),d=mE(a.attributes.end,b);a=mE(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}} +function mE(a,b){var c=null;if(nE.test(a)){a=nE.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(oE.test(a))c=pE(oE,a);else if(qE.test(a))c=pE(qE,a);else if(rE.test(a))a=rE.exec(a),c=Number(a[1])/b.frameRate;else if(sE.test(a))a=sE.exec(a),c=Number(a[1])/b.g;else if(tE.test(a))c=pE(tE,a);else if(a)throw new U(2,2,2001,"Could not parse cue time range in TTML");return c} +function pE(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}function TD(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Kc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}T("shaka.text.TtmlTextParser",PD);PD.prototype.parseMedia=PD.prototype.parseMedia;PD.prototype.setManifestType=PD.prototype.setManifestType;PD.prototype.setSequenceMode=PD.prototype.setSequenceMode;PD.prototype.parseInit=PD.prototype.parseInit; +function SD(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))} +var aE=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,iE=/^(\d{1,4}(?:\.\d+)?|100)%$/,hE=/^(\d+px|\d+em|\d*\.?\d+c)$/,bE=/^(\d+)px (\d+)px$/,nE=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,oE=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,qE=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,rE=/^(\d*(?:\.\d*)?)f$/,sE=/^(\d*(?:\.\d*)?)t$/,tE=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),gE=(new Map).set("left",Yd).set("center","center").set("right", +"end").set("start",Yd).set("end","end"),fE=(new Map).set("left","line-left").set("center","center").set("right","line-right"),QD=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],RD=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],WD=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Re("application/ttml+xml",function(){return new PD});function uE(){this.g=new PD}uE.prototype.parseInit=function(a){var b=!1;(new ch).box("moov",hh).box("trak",hh).box("mdia",hh).box("minf",hh).box("stbl",hh).R("stsd",jh).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new U(2,2,2007);};uE.prototype.setSequenceMode=function(){};uE.prototype.setManifestType=function(){}; +uE.prototype.parseMedia=function(a,b,c){var d=[],e=null,f=[],g=new Map,h=[];(new ch).box("moof",hh).box("traf",hh).R("tfhd",function(y){e=zi(y.reader,y.flags).Kd}).R("trun",function(y){y=Ci(y.reader,y.version,y.flags);y=t(y.ah);for(var z=y.next();!z.done;z=y.next())h.push(z.value.sampleSize||e||0)}).R("subs",function(y){for(var z=y.reader,A=z.T(),C=-1,E=0;E").replace(/{\/b}/g,"").replace(/{i}/g,"").replace(/{\/i}/g,"").replace(/{u}/g,"").replace(/{\/u}/g,"")+"\n\n";return b}T("shaka.text.SrtTextParser",vE);vE.srt2webvtt=wE;vE.prototype.parseMedia=vE.prototype.parseMedia; -vE.prototype.setManifestType=vE.prototype.setManifestType;vE.prototype.setSequenceMode=vE.prototype.setSequenceMode;vE.prototype.parseInit=vE.prototype.parseInit;Qe("text/srt",function(){return new vE});function xE(){}xE.prototype.parseInit=function(){};xE.prototype.setSequenceMode=function(){};xE.prototype.setManifestType=function(){}; -xE.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=ac(a).split(/\r?\n\s*\r?\n/);a=t(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=yE.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e)}d=[];e=null;b=t(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=zE.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.split(AE);else if("Style"==a){a=f.split(AE);f={};for(var g=0;g>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null} -function BE(a){a=EE.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}T("shaka.text.SsaTextParser",xE);xE.prototype.parseMedia=xE.prototype.parseMedia;xE.prototype.setManifestType=xE.prototype.setManifestType;xE.prototype.setSequenceMode=xE.prototype.setSequenceMode;xE.prototype.parseInit=xE.prototype.parseInit;var yE=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,zE=/^\s*([^:]+):\s*(.*)/,AE=/\s*,\s*/,EE=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/; -Qe("text/x-ssa",function(){return new xE});function FE(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,codec:"mp4a.40."+e}} -function HE(a,b){if(b+1=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344, -1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,Da:a,qa:e}} -function LE(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0>>24+h<>h;c=c?c<c)return!0}return!1};function ME(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=ME.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?Ec(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?qb().ae()?'audio/mp4; codecs="ec-3"':'audio/mp4; codecs="ac-3"':b};p.getOriginalMimeType=function(){return this.j}; -p.transmux=function(a,b,c,d){a=Tb(a);for(var e=Nj(a),f=e.length;fa.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new Pj(a.subarray(b+2));Rj(c,2);Rj(c,3);var d=Sj(c,11)+1<<1,e=Sj(c,2);if(3==e){e=Sj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=Sj(c,2);var g=Sj(c,3),h=Sj(c,1);c=Sj(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,Da:a,qa:d}};function OE(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=OE.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?Ec(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};p.getOriginalMimeType=function(){return this.j}; -p.transmux=function(a,b,c,d){a=Tb(a);for(var e=Nj(a),f=e.length;fe?Yj(c,16):Yj(c,64))}Uj(c);d=X(c);if(0===d)X(c);else if(1===d)for(Rj(c,1),Uj(c),Uj(c),d=X(c),e=0;e=q?(d=r[q-1],e=u[q-1]):255===q&&(d=Sj(c,16),e=Sj(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,x(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,x(a));a=new Uint8Array([1,k[3],k[4], -k[5],255,225].concat(k,[1],b));return{height:c,width:f,Na:a,Wa:d,Xa:e}} -function RE(a){function b(u){e={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:u.pts,dts:u.dts,nalus:[]}}function c(){if(e&&e.nalus.length&&e.frame){for(var u=[],w=t(e.nalus),v=w.next();!v.done;v=w.next()){v=v.value;var y=v.fullData.byteLength,z=new Uint8Array(4);z[0]=y>>24&255;z[1]=y>>16&255;z[2]=y>>8&255;z[3]=y&255;u.push(z);u.push(v.fullData)}e.data=pc.apply(jc,x(u));d.push(e)}}for(var d=[],e=null,f=!1,g=0;gH;H++)Sj(a,2);for(H=0;HL;L++)for(var K=0;K<(3===L?2:6);K++)if(Wj(a)){var J=Math.min(64,1<<4+(L<<1));1=J?(I=M[J-1],L=O[J-1]):255===J&&(I=Sj(a,16),L=Sj(a,16)));Wj(a)&&Wj(a);Wj(a)&&(Sj(a,3),Wj(a),Wj(a)&&(Xj(a),Xj(a),Xj(a)));Wj(a)&&(X(a),X(a));Wj(a);Wj(a);Wj(a);if(J=Wj(a))X(a),X(a),X(a),X(a);if(Wj(a)&&(Sj(a,32),Sj(a,32),Wj(a)&&X(a),Wj(a))){O=!1;J=Wj(a);M=Wj(a);if(J||M){if(O=Wj(a))Xj(a),Sj(a,5),Wj(a),Sj(a,5);Sj(a,4);Sj(a,4);O&& -Sj(a,4);Sj(a,5);Sj(a,5);Sj(a,5)}for(N=0;N<=f;N++){var R=!0;P=1;Wj(a)||(R=Wj(a));var S=!1;R?X(a):S=Wj(a);S||(P=X(a)+1);if(J){for(R=0;R>8;e[14]=d.jf&255;e[15]=252|d.Og&3;e[16]=252|d.Zf&3;e[17]=248|d.Yf&7;e[18]=248|d.Xf&7;e[19]=0;e[20]=0;e[21]=(d.ag&3)<<6|(d.Mg&7)<<3|(d.qh?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength& -255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function XE(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*YE[14*(3===c?3-d:3===d?3:4)+e-1];f=ZE[3*(3===c?0:2===c?1:2)+f];c=$E[c][d];var h=aF[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,qa:k,Hk:8*c*h}}return null} -function bF(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function cF(a,b){if(b+1").replace(/{\/b}/g,"").replace(/{i}/g,"").replace(/{\/i}/g,"").replace(/{u}/g,"").replace(/{\/u}/g,"")+"\n\n";return b}T("shaka.text.SrtTextParser",CE);CE.srt2webvtt=DE;CE.prototype.parseMedia=CE.prototype.parseMedia; +CE.prototype.setManifestType=CE.prototype.setManifestType;CE.prototype.setSequenceMode=CE.prototype.setSequenceMode;CE.prototype.parseInit=CE.prototype.parseInit;Re("text/srt",function(){return new CE});function EE(){}EE.prototype.parseInit=function(){};EE.prototype.setSequenceMode=function(){};EE.prototype.setManifestType=function(){}; +EE.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=ac(a).split(/\r?\n\s*\r?\n/);a=t(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=FE.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e)}d=[];e=null;b=t(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=GE.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.split(HE);else if("Style"==a){a=f.split(HE);f={};for(var g=0;g>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null} +function IE(a){a=LE.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}T("shaka.text.SsaTextParser",EE);EE.prototype.parseMedia=EE.prototype.parseMedia;EE.prototype.setManifestType=EE.prototype.setManifestType;EE.prototype.setSequenceMode=EE.prototype.setSequenceMode;EE.prototype.parseInit=EE.prototype.parseInit;var FE=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,GE=/^\s*([^:]+):\s*(.*)/,HE=/\s*,\s*/,LE=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/; +Re("text/x-ssa",function(){return new EE});function ME(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,codec:"mp4a.40."+e}} +function OE(a,b){if(b+1=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344, +1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,Ea:a,qa:e}} +function SE(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0>>24+h<>h;c=c?c<c)return!0}return!1};function TE(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=TE.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?Ec(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?rb().be()?'audio/mp4; codecs="ec-3"':'audio/mp4; codecs="ac-3"':b};p.getOriginalMimeType=function(){return this.j}; +p.transmux=function(a,b,c,d){a=Tb(a);for(var e=Oj(a),f=e.length;fa.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new Qj(a.subarray(b+2));Sj(c,2);Sj(c,3);var d=Tj(c,11)+1<<1,e=Tj(c,2);if(3==e){e=Tj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=Tj(c,2);var g=Tj(c,3),h=Tj(c,1);c=Tj(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,Ea:a,qa:d}};function VE(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=VE.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?Ec(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};p.getOriginalMimeType=function(){return this.j}; +p.transmux=function(a,b,c,d){a=Tb(a);for(var e=Oj(a),f=e.length;fe?Zj(c,16):Zj(c,64))}Vj(c);d=X(c);if(0===d)X(c);else if(1===d)for(Sj(c,1),Vj(c),Vj(c),d=X(c),e=0;e=q?(d=r[q-1],e=u[q-1]):255===q&&(d=Tj(c,16),e=Tj(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,x(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,x(a));a=new Uint8Array([1,k[3],k[4], +k[5],255,225].concat(k,[1],b));return{height:c,width:f,Na:a,Va:d,Wa:e}} +function YE(a){function b(u){e={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:u.pts,dts:u.dts,nalus:[]}}function c(){if(e&&e.nalus.length&&e.frame){for(var u=[],w=t(e.nalus),v=w.next();!v.done;v=w.next()){v=v.value;var y=v.fullData.byteLength,z=new Uint8Array(4);z[0]=y>>24&255;z[1]=y>>16&255;z[2]=y>>8&255;z[3]=y&255;u.push(z);u.push(v.fullData)}e.data=pc.apply(jc,x(u));d.push(e)}}for(var d=[],e=null,f=!1,g=0;gH;H++)Tj(a,2);for(H=0;HK;K++)for(var J=0;J<(3===K?2:6);J++)if(Xj(a)){var L=Math.min(64,1<<4+(K<<1));1=L?(I=N[L-1],K=O[L-1]):255===L&&(I=Tj(a,16),K=Tj(a,16)));Xj(a)&&Xj(a);Xj(a)&&(Tj(a,3),Xj(a),Xj(a)&&(Yj(a),Yj(a),Yj(a)));Xj(a)&&(X(a),X(a));Xj(a);Xj(a);Xj(a);if(L=Xj(a))X(a),X(a),X(a),X(a);if(Xj(a)&&(Tj(a,32),Tj(a,32),Xj(a)&&X(a),Xj(a))){O=!1;L=Xj(a);N=Xj(a);if(L||N){if(O=Xj(a))Yj(a),Tj(a,5),Xj(a),Tj(a,5);Tj(a,4);Tj(a,4);O&& +Tj(a,4);Tj(a,5);Tj(a,5);Tj(a,5)}for(M=0;M<=f;M++){var R=!0;P=1;Xj(a)||(R=Xj(a));var S=!1;R?X(a):S=Xj(a);S||(P=X(a)+1);if(L){for(R=0;R>8;e[14]=d.hf&255;e[15]=252|d.Pg&3;e[16]=252|d.$f&3;e[17]=248|d.Zf&7;e[18]=248|d.Yf&7;e[19]=0;e[20]=0;e[21]=(d.cg&3)<<6|(d.Ng&7)<<3|(d.rh?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength& +255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function dF(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*eF[14*(3===c?3-d:3===d?3:4)+e-1];f=fF[3*(3===c?0:2===c?1:2)+f];c=gF[c][d];var h=hF[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,qa:k,Ik:8*c*h}}return null} +function iF(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function jF(a,b){if(b+1d;d++)this.usertype[d]!==hF[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}p=fF.prototype;p.destroy=function(){}; +"uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==oF[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}p=mF.prototype;p.destroy=function(){}; p.isSupported=function(a,b){var c=a.startsWith("mss/");if(!this.g||!c)return!1;if(b)return Ec(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return Ec(b)||Ec(a)};p.convertCodecs=function(a,b){return b.replace("mss/","")};p.getOriginalMimeType=function(){return this.h}; p.transmux=function(a,b,c){if(!c)return Promise.resolve(Tb(a));if(!b.mssPrivateData)return Promise.reject(new U(2,3,3020,c?c.O()[0]:null));try{var d,e=this.g.parseBuffer(a),f=e.fetch("tfhd");f.track_ID=b.id+1;var g=e.fetch("tfdt"),h=e.fetch("traf");null===g&&(g=this.g.createFullBox("tfdt",h,f),g.version=1,g.flags=0,g.baseMediaDecodeTime=Math.floor(c.startTime*b.mssPrivateData.timescale));var k=e.fetch("trun"),l=e.fetch("tfxd");l&&l._parent.boxes.splice(l._parent.boxes.indexOf(l),1);var m=e.fetch("tfrf"); m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var n=e.fetch("sepiff");if(null!==n){n.type="senc";n.usertype=void 0;var q=e.fetch("saio");if(null===q){q=this.g.createFullBox("saio",h);q.version=0;q.flags=0;q.entry_count=1;q.offset=[0];var r=this.g.createFullBox("saiz",h);r.version=0;r.flags=0;r.sample_count=n.sample_count;r.default_sample_info_size=0;r.sample_info_size=[];if(n.flags&2)for(d=0;d>24&255;Ga[1]=Fa>>16&255;Ga[2]=Fa>>8&255;Ga[3]=Fa&255;N.push(Ga);N.push(aa.fullData)}}var xa=N.length?{data:pc.apply(jc,x(N)),isKeyframe:O}:null;if(xa){null==D&&null!=J.dts&&(D=J.dts);var qa=void 0;qa=K+ -1>24&255;Ga[1]=Fa>>16&255;Ga[2]=Fa>>8&255;Ga[3]=Fa&255;M.push(Ga);M.push(aa.fullData)}}var ya=M.length?{data:pc.apply(jc,x(M)),isKeyframe:O}:null;if(ya){null==D&&null!=L.dts&&(D=L.dts);var qa=void 0;qa=J+ +1>>24&255,id.sampleRate>>>17&255,id.sampleRate>>>8&255,id.sampleRate>>>0&255,0,0].concat(x(Wb)));for(var nw=id.sampleRate,ow=t(k.rb()),jo=ow.next();!jo.done;jo=ow.next()){var ko=jo.value,Wf=ko.data;null==kk&&null!==ko.pts&&(kk=ko.pts);for(var sh=0;sh>>24&255,id.sampleRate>>>17&255,id.sampleRate>>>8&255,id.sampleRate>>>0&255,0,0].concat(x(Wb)));for(var vw=id.sampleRate,ww=t(k.rb()),po=ww.next();!po.done;po=ww.next()){var qo=po.value,Wf=qo.data;null==mk&&null!==qo.pts&&(mk=qo.pts);for(var sh=0;sh>>0)+"_",e=0;return b}); fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;cc&&(c=Math.max(c+e,0));ce||1114111=e?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}}); -function Ra(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e=f}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)La(b,d)&&c.push([d,b[d]]);return c}}); var Sa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;cb||1342177279>>=1)c+=c;return d}});fa("Number.EPSILON",function(){return Math.pow(2,-52)}); @@ -56,13 +56,13 @@ function S(a,b){a=a.split(".");var c=Wa;a[0]in c||"undefined"==typeof c.execScri Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */ -function U(a,b){if(b)if(b instanceof Map)for(var c=u(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1} +function U(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1} function Xa(a){var b=new U(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}U.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};U.prototype.stopImmediatePropagation=function(){this.g=!0};U.prototype.stopPropagation=function(){};S("shaka.util.FakeEvent",U); -var Ya={vm:"abrstatuschanged",wm:"adaptation",xm:"audiotrackchanged",ym:"audiotrackschanged",zm:"boundarycrossed",Am:"buffering",Bm:"canupdatestarttime",Cm:"complete",Dm:"currentitemchanged",Em:"downloadcompleted",Fm:"downloadfailed",Gm:"downloadheadersreceived",Hm:"drmsessionupdate",Jm:"emsg",Pm:"itemsinserted",Qm:"itemsremoved",hn:"prft",Error:"error",Km:"expirationupdated",Lm:"firstquartile",Mm:"gapjumped",Rm:"keystatuschanged",Vm:"loaded",Wm:"loading",Ym:"manifestparsed",Zm:"manifestupdated", -$m:"mediaqualitychanged",an:"mediasourcerecovered",cn:"metadataadded",Metadata:"metadata",dn:"midpoint",fn:"nospatialvideoinfo",gn:"onstatechange",jn:"ratechange",nn:"segmentappended",on:"sessiondata",pn:"spatialvideoinfo",qn:"stalldetected",rn:"started",sn:"statechanged",tn:"streaming",un:"textchanged",vn:"texttrackvisibility",wn:"thirdquartile",xn:"timelineregionadded",yn:"timelineregionenter",zn:"timelineregionexit",An:"trackschanged",Cn:"unloading",En:"variantchanged"};function Za(){}function $a(){}function ab(){}function bb(a){var b=Ja.apply(1,arguments);cb.has(a)||(cb.add(a),ab.apply(Za,x(b)))}function db(){}function gb(){}function hb(){}var cb=new Set; -window.console&&((new Map).set(1,function(){return console.error.apply(console,x(Ja.apply(0,arguments)))}).set(2,function(){return console.warn.apply(console,x(Ja.apply(0,arguments)))}).set(3,function(){return console.info.apply(console,x(Ja.apply(0,arguments)))}).set(4,function(){return console.log.apply(console,x(Ja.apply(0,arguments)))}).set(5,function(){return console.debug.apply(console,x(Ja.apply(0,arguments)))}).set(6,function(){return console.debug.apply(console,x(Ja.apply(0,arguments)))}), -ab=function(){return console.warn.apply(console,x(Ja.apply(0,arguments)))},$a=function(){console.error.apply(console,x(Ja.apply(0,arguments)))});function ib(){this.g=new Map}p=ib.prototype;p.push=function(a,b){this.g.has(a)?this.g.get(a).push(b):this.g.set(a,[b])};p.get=function(a){return this.g.has(a)?this.g.get(a).slice():null};p.remove=function(a,b){if(this.g.has(a)){var c=this.g.get(a).filter(function(d){return d!=b});this.g.set(a,c);c.length||this.g.delete(a)}};p.forEach=function(a){this.g.forEach(function(b,c){a(c,b)})};p.size=function(){return this.g.size};p.keys=function(){return Array.from(this.g.keys())};function jb(){this.gb=new ib;this.Pe=this}jb.prototype.addEventListener=function(a,b){this.gb&&this.gb.push(a,b)};jb.prototype.removeEventListener=function(a,b){this.gb&&this.gb.remove(a,b)};jb.prototype.dispatchEvent=function(a){if(!this.gb)return!0;var b=this.gb.get(a.type)||[],c=this.gb.get("All");c&&(b=b.concat(c));b=u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Pe;a.currentTarget=this.Pe;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented}; -jb.prototype.release=function(){this.gb=null};function kb(a,b){var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function lb(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function nb(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function ob(a,b){var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/* +var Ya={wm:"abrstatuschanged",xm:"adaptation",ym:"audiotrackchanged",zm:"audiotrackschanged",Am:"boundarycrossed",Bm:"buffering",Cm:"canupdatestarttime",Dm:"complete",Em:"currentitemchanged",Fm:"downloadcompleted",Gm:"downloadfailed",Hm:"downloadheadersreceived",Im:"drmsessionupdate",Km:"emsg",Qm:"itemsinserted",Rm:"itemsremoved",jn:"prft",Error:"error",Lm:"expirationupdated",Mm:"firstquartile",Nm:"gapjumped",Sm:"keystatuschanged",Wm:"loaded",Xm:"loading",Zm:"manifestparsed",$m:"manifestupdated", +an:"mediaqualitychanged",cn:"mediasourcerecovered",dn:"metadataadded",Metadata:"metadata",fn:"midpoint",gn:"nospatialvideoinfo",hn:"onstatechange",ln:"ratechange",on:"segmentappended",pn:"sessiondata",qn:"spatialvideoinfo",rn:"stalldetected",sn:"started",tn:"statechanged",un:"streaming",vn:"textchanged",wn:"texttrackvisibility",xn:"thirdquartile",yn:"timelineregionadded",zn:"timelineregionenter",An:"timelineregionexit",Bn:"trackschanged",Dn:"unloading",Fn:"variantchanged"};function Za(){}function $a(){}function ab(){}function bb(a){var b=Ka.apply(1,arguments);cb.has(a)||(cb.add(a),ab.apply(Za,x(b)))}function db(){}function gb(){}function hb(){}var cb=new Set; +window.console&&((new Map).set(1,function(){return console.error.apply(console,x(Ka.apply(0,arguments)))}).set(2,function(){return console.warn.apply(console,x(Ka.apply(0,arguments)))}).set(3,function(){return console.info.apply(console,x(Ka.apply(0,arguments)))}).set(4,function(){return console.log.apply(console,x(Ka.apply(0,arguments)))}).set(5,function(){return console.debug.apply(console,x(Ka.apply(0,arguments)))}).set(6,function(){return console.debug.apply(console,x(Ka.apply(0,arguments)))}), +ab=function(){return console.warn.apply(console,x(Ka.apply(0,arguments)))},$a=function(){console.error.apply(console,x(Ka.apply(0,arguments)))});function ib(){this.g=new Map}p=ib.prototype;p.push=function(a,b){this.g.has(a)?this.g.get(a).push(b):this.g.set(a,[b])};p.get=function(a){return this.g.has(a)?this.g.get(a).slice():null};p.remove=function(a,b){if(this.g.has(a)){var c=this.g.get(a).filter(function(d){return d!=b});this.g.set(a,c);c.length||this.g.delete(a)}};p.forEach=function(a){this.g.forEach(function(b,c){a(c,b)})};p.size=function(){return this.g.size};p.keys=function(){return Array.from(this.g.keys())};function jb(){this.fb=new ib;this.Qe=this}jb.prototype.addEventListener=function(a,b){this.fb&&this.fb.push(a,b)};jb.prototype.removeEventListener=function(a,b){this.fb&&this.fb.remove(a,b)};jb.prototype.dispatchEvent=function(a){if(!this.fb)return!0;var b=this.fb.get(a.type)||[],c=this.fb.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Qe;a.currentTarget=this.Qe;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented}; +jb.prototype.release=function(){this.fb=null};function kb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function lb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function mb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function ob(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 @@ -72,16 +72,16 @@ var pb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?= Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */ -function qb(a){var b;a instanceof qb?(rb(this,a.hc),this.nd=a.nd,tb(this,a.Fb),ub(this,a.Gd),this.ub=a.ub,vb(this,a.g.clone()),this.Sc=a.Sc):a&&(b=String(a).match(pb))?(rb(this,b[1]||"",!0),this.nd=wb(b[2]||""),tb(this,b[3]||"",!0),ub(this,b[4]),this.ub=wb(b[5]||"",!0),vb(this,b[6]||"",!0),this.Sc=wb(b[7]||"")):this.g=new yb(null)}p=qb.prototype;p.hc="";p.nd="";p.Fb="";p.Gd=null;p.ub="";p.Sc=""; -p.toString=function(){var a=[],b=this.hc;b&&a.push(zb(b,Ab,!0),":");if(b=this.Fb){a.push("//");var c=this.nd;c&&a.push(zb(c,Ab,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Gd;null!=b&&a.push(":",String(b))}if(b=this.ub)this.Fb&&"/"!=b.charAt(0)&&a.push("/"),a.push(zb(b,"/"==b.charAt(0)?Bb:Cb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Sc)&&a.push("#",zb(b,Db));return a.join("")}; -p.resolve=function(a){var b=this.clone();"data"===b.hc&&(b=new qb);var c=!!a.hc;c?rb(b,a.hc):c=!!a.nd;c?b.nd=a.nd:c=!!a.Fb;c?tb(b,a.Fb):c=null!=a.Gd;var d=a.ub;if(c)ub(b,a.Gd);else if(c=!!a.ub){if("/"!=d.charAt(0))if(this.Fb&&!this.ub)d="/"+d;else{var e=b.ub.lastIndexOf("/");-1!=e&&(d=b.ub.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;gb)throw Error("Bad port number "+b);a.Gd=b}else a.Gd=null} -function vb(a,b,c){b instanceof yb?a.g=b:(c||(b=zb(b,Eb)),a.g=new yb(b))}function wb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function zb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Fb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Fb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ab=/[#\/\?@]/g,Cb=/[#\?:]/g,Bb=/[#\?]/g,Eb=/[#\?@]/g,Db=/#/g;function yb(a){this.g=a||null} -function Gb(a){if(!a.mb&&(a.mb=new Map,a.Xd=0,a.g))for(var b=a.g.split("&"),c=0;cb)throw Error("Bad port number "+b);a.Id=b}else a.Id=null} +function vb(a,b,c){b instanceof yb?a.g=b:(c||(b=zb(b,Eb)),a.g=new yb(b))}function xb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function zb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Fb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Fb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ab=/[#\/\?@]/g,Cb=/[#\?:]/g,Bb=/[#\?]/g,Eb=/[#\?@]/g,Db=/#/g;function yb(a){this.g=a||null} +function Gb(a){if(!a.kb&&(a.kb=new Map,a.Xd=0,a.g))for(var b=a.g.split("&"),c=0;c=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&& +function Wb(a){if(!a)return"";a=Kb(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Rb().$h())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&$a('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&& 128==(a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b} function Xb(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new V(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Ob(a);for(var e=0;e=c[d]}if(!a)return"";var c=Kb(a);if(239==c[0]&&187==c[1]&&191==c[2])return Wb(c);if(254==c[0]&&255==c[1])return Xb(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Xb(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Xb(a,!1);if(0==c[1]&&0==c[3])return Xb(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Wb(a);throw new V(2,2,2003);} -function $b(a){if(window.TextEncoder&&!Rb().Zh()){var b=new TextEncoder;return Lb(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c",""":'"',"'":"'"," ":"\u00a0","‎":"\u200e","‏":"\u200f"},c=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return"#"==e[1]?(e="x"==e[2]||"X"==e[2]?parseInt(e.substring(3),16):parseInt(e.substring(2),10),0<=e&&1114111>=e?String.fromCodePoint(e):""):b[e]||"'"}):a||""}S("shaka.util.StringUtils",Vb);Vb.resetFromCharCode=function(){bc.g=void 0}; -Vb.toUTF16=ac;Vb.toUTF8=$b;Vb.fromBytesAutoDetect=Zb;Vb.fromUTF16=Xb;Vb.fromUTF8=Wb;var bc=new Qb(function(){function a(c){try{var d=new Uint8Array(c);return 0",e);g=a.substring(g,e);var k=g.indexOf(f);if(-1==k){var l=f.indexOf(".");0",e);g=a.substring(g,e);var k=g.indexOf(f);if(-1==k){var l=f.indexOf(".");0",e+1);-1===e&&(e=a.length)}else if(91===a.charCodeAt(e+2)&&91===a.charCodeAt(e+8)&&"cdata"===a.substr(e+3,5).toLowerCase()){k=a.indexOf("]]\x3e",e);-1==k?(h.push(a.substr(e+9)),e=a.length):(h.push(a.substring(e+9,k)),e=k+3);continue}e++;continue}a:{l=g;e++;var m=d(),n={};for(k=[];62!==a.charCodeAt(e)&&a[e];){var q=a.charCodeAt(e);if(64q||96q){q=d();for(var r=a.charCodeAt(e);r&&39!==r&&34!==r&&!(64r||96 -r)&&62!==r;)e++,r=a.charCodeAt(e);var t=e+1;e=a.indexOf(a[e],t);t=a.slice(t,e);if(39===r||34===r){if(-1===e){l={tagName:m,attributes:n,children:k,parent:null};if(b)for(m=0;m/= ".indexOf(a[e])&&a[e];)e++;return a.slice(f,e)}var e=0;return c("")} -function Md(a){return"string"===typeof a}function Nd(a){var b=[];if(!a.children)return[];a=u(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"!==typeof c&&b.push(c);return b}function Od(a,b){var c=[];if(!a.children)return[];a=u(a.children);for(var d=a.next();!d.done;d=a.next())d=d.value,d.tagName===b&&c.push(d);return c}function Pd(a){if("string"===typeof a)return cc(a);a=a.children.reduce(function(b,c){return"string"===typeof c?b+c:b},"");return""===a?null:cc(a)} -function Qd(a){if(!Array.from(a.children).every(function(b){return"string"===typeof b}))return null;(a=Pd(a))&&(a=a.trim());return a}function Rd(a,b,c){c=void 0===c?[]:c;a.tagName===b&&c.push(a);if(a.children){a=u(a.children);for(var d=a.next();!d.done;d=a.next())Rd(d.value,b,c)}return c}function Sd(a,b){a=Od(a,b);return 1!=a.length?null:a[0]}function Td(a,b,c){a=Ud(a,b,c);return 1!=a.length?null:a[0]} -function Vd(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.attributes[b];null!=a&&(e=c(a));return null==e?d:e}function Wd(a,b,c){b=Jd(b);return a.attributes[b+":"+c]||null}function Ud(a,b,c){var d=Jd(b);b=[];if(a.children)for(c=d?d+":"+c:c,a=u(a.children),d=a.next();!d.done;d=a.next())(d=d.value)&&d.tagName===c&&b.push(d);return b}function Xd(a,b,c){b=u(b);for(var d=b.next();!d.done;d=b.next())if(d=Wd(a,d.value,c))return d;return null} -function Yd(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}function Zd(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$","i").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null} -function $d(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function ae(a){a=Number(a);return 0===a%1?a:null}function be(a){a=Number(a);return 0===a%1&&0Math.abs(a.startTime-b.startTime)&&.001>Math.abs(a.endTime-b.endTime)))return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!ud(a.nestedCues,b.nestedCues,Ae))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!ud(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0} -function De(a,b){b=void 0===b?new Map:b;var c=a.payload;if(c.includes("<")){0===b.size&&Ee(b);var d=c;c=[];for(var e=-1,f=0;f"===d[f]&&0",'

'),d+="
";a:{f=d;e=[];var g=-1;c="";d=!1;for(var h=0;h",h);if(-1===k){c=f;break a}if((k=f.substring(h+1,k))&&"v"==k){d=!0;var l=null;e.length&& -(l=e[e.length-1]);if(l){if(l===k)c+="/"+k+">";else{if(!l.startsWith("v")){c+=f[h];continue}c+="/"+l+">"}h+=k.length+1}else c+=f[h]}else c+=f[h]}else"<"===f[h]?(g=h+1,"v"!=f[g]&&(g=-1)):">"===f[h]&&0","<"+g+">"),c=c.replace("",""),d||(c+="")}c=Ge(c);a.payload="";try{var m=Hd(""+c+"","span")}catch(n){}if(m)if(m=m.children,1!= -m.length||m[0].tagName)for(m=u(m),c=m.next();!c.done;c=m.next())He(c.value,a,b);else a.payload=cc(c);else a.payload=cc(c)}else a.payload=cc(c)}function Ee(a){for(var b=u(Object.entries(Ie)),c=b.next();!c.done;c=b.next()){var d=u(c.value);c=d.next().value;d=d.next().value;var e=new ne(0,0,"");e.color=d;a.set("."+c,e)}b=u(Object.entries(Je));for(c=b.next();!c.done;c=b.next())d=u(c.value),c=d.next().value,d=d.next().value,e=new ne(0,0,""),e.backgroundColor=d,a.set("."+c,e)} -function Ge(a){var b={"< ":""," >":" >"},c=/(< +>|<\s|\s>)/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||""}):a||""} -function He(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new od;d.position=null;d.size=0;d.textAlign=pe;if(a.tagName)for(var e=u(a.tagName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(h=d,g=c.get(g))&&(h.backgroundColor=Ke(g.backgroundColor,h.backgroundColor),h.color=Ke(g.color,h.color),h.fontFamily=Ke(g.fontFamily,h.fontFamily), -h.fontSize=Ke(g.fontSize,h.fontSize),h.textShadow=Ke(g.textShadow,h.textShadow),h.fontWeight=g.fontWeight,h.fontStyle=g.fontStyle,h.opacity=g.opacity,h.rubyTag=g.rubyTag,h.textCombineUpright=g.textCombineUpright,h.wrapLine=g.wrapLine);switch(f){case "br":d=ye(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=Le;break;case "i":d.fontStyle=Me;break;case "u":d.textDecoration.push(Ne);break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;if(!f)break; -if(f=Cd(f))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(Md(a)||1==e.length&&Md(e[0]))for(c=Pd(a).split("\n"),a=!0,c=u(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=ye(d.startTime,d.endTime),b.nestedCues.push(a)),0"===d[f]&&0",'
'),d+="
";a:{f=d;e=[];var g=-1;c="";d=!1;for(var h=0;h",h);if(-1===k){c=f;break a}if((k=f.substring(h+1,k))&&"v"==k){d=!0;var l=null;e.length&& +(l=e[e.length-1]);if(l){if(l===k)c+="/"+k+">";else{if(!l.startsWith("v")){c+=f[h];continue}c+="/"+l+">"}h+=k.length+1}else c+=f[h]}else c+=f[h]}else"<"===f[h]?(g=h+1,"v"!=f[g]&&(g=-1)):">"===f[h]&&0","<"+g+">"),c=c.replace("",""),d||(c+="")}c=He(c);a.payload="";try{var m=Id(""+c+"","span")}catch(n){}if(m)if(m=m.children,1!= +m.length||m[0].tagName)for(m=t(m),c=m.next();!c.done;c=m.next())Ie(c.value,a,b);else a.payload=cc(c);else a.payload=cc(c)}else a.payload=cc(c)}function De(a){for(var b=t(Object.entries(Je)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new oe(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(Ke));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new oe(0,0,""),e.backgroundColor=d,a.set("."+c,e)} +function He(a){var b={"< ":""," >":" >"},c=/(< +>|<\s|\s>)/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||""}):a||""} +function Ie(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new od;d.position=null;d.size=0;d.textAlign=qe;if(a.tagName)for(var e=t(a.tagName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(h=d,g=c.get(g))&&(h.backgroundColor=Le(g.backgroundColor,h.backgroundColor),h.color=Le(g.color,h.color),h.fontFamily=Le(g.fontFamily,h.fontFamily), +h.fontSize=Le(g.fontSize,h.fontSize),h.textShadow=Le(g.textShadow,h.textShadow),h.fontWeight=g.fontWeight,h.fontStyle=g.fontStyle,h.opacity=g.opacity,h.rubyTag=g.rubyTag,h.textCombineUpright=g.textCombineUpright,h.wrapLine=g.wrapLine);switch(f){case "br":d=ze(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=Me;break;case "i":d.fontStyle=Ne;break;case "u":d.textDecoration.push(Oe);break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;if(!f)break; +if(f=Cd(f))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(Nd(a)||1==e.length&&Nd(e[0]))for(c=Qd(a).split("\n"),a=!0,c=t(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=ze(d.startTime,d.endTime),b.nestedCues.push(a)),0=a.l&&r.startTime=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&bc.g&&b>=c.h&&(c.h=a));H(d)})};function tf(a,b,c){a.l=b;a.m=c}function uf(a,b,c){a.D=b;if(b=a.s.get(b))for(var d=u(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)} -function vf(a,b,c){b.startTime+=c;b.endTime+=c;b=u(b.nestedCues);for(var d=b.next();!d.done;d=b.next())vf(a,d.value,c)} -function wf(a,b,c,d,e){var f=c+" "+d,g=new Map;b=u(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);vf(a,k,e);k.startTime>=a.l&&k.startTimey?(y=B,A=[D.ng]):B==y&&A.push(D.ng);m.push.apply(m,x(A))});h=m}c=new Set;b=new Set;h=u(h);for(e=h.next();!e.done;e=h.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);h=Array.from(c).sort(function(y,z){return y.bandwidth-z.bandwidth});var n=[];c=new Map;h=u(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=g(e);l=c.get(k)||[];if(l.length){var q=l[l.length-1],r=ff(q.codecs),t=ff(e.codecs);r!=t||e.bandwidth&&q.bandwidth&&!(e.bandwidth>q.bandwidth)||(l.push(e),n.push(e.id))}else l.push(e), -n.push(e.id);c.set(k,l)}var w={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};h=Array.from(b).sort(function(y,z){if(!y.bandwidth||!z.bandwidth||y.bandwidth==z.bandwidth){if(y.codecs&&z.codecs&&y.codecs!=z.codecs&&y.width==z.width){var A=ff(y.codecs),B=ff(z.codecs);if(A!=B)return(w[A]||1)-(w[B]||1)}return y.width-z.width}return y.bandwidth-z.bandwidth});b=dd();var v=[];c=new Map;h=u(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=f(e); -l=c.get(k)||[];if(l.length){q=l[l.length-1];if(!b&&(r=ff(q.codecs),t=ff(e.codecs),r!==t))continue;r=ff(q.codecs);t=ff(e.codecs);r!=t||e.bandwidth&&q.bandwidth&&!(e.bandwidth>q.bandwidth)||(l.push(e),v.push(e.id))}else l.push(e),v.push(e.id);c.set(k,l)}a.variants=a.variants.filter(function(y){var z=y.audio;y=y.video;return z&&!n.includes(z.id)||y&&!v.includes(y.id)?!1:!0})} -function Ff(a,b,c){b=u(b);for(var d=b.next(),e={};!d.done;e={videoCodec:void 0},d=b.next())if(e.videoCodec=d.value,d=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.videoCodec)}}(e)),d.length){a=d;break}c=u(c);b=c.next();for(d={};!b.done;d={audioCodec:void 0},b=c.next())if(d.audioCodec=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.audioCodec)}}(d)),b.length){a=b;break}return a} -function Gf(a,b,c){a.variants=a.variants.filter(function(d){return Hf(d,b,c)})} -function Hf(a,b,c){function d(h,k,l){return h>=k&&h<=l}var e=a.video;if(e&&e.width&&e.height){var f=e.width,g=e.height;g>f&&(g=u([g,f]),f=g.next().value,g=g.next().value);if(!d(f,b.minWidth,Math.min(b.maxWidth,c.width))||!d(g,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))return!1}return a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||a&&a.audio&&a.audio.channelsCount&&!d(a.audio.channelsCount,b.minChannelsCount,b.maxChannelsCount)|| -!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}function If(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?{}:d;return Q(function(e){if(1==e.g)return F(e,Jf(a,b,0=a.l&&r.startTime=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&bc.g&&b>=c.h&&(c.h=a));I(d)})};function uf(a,b,c){a.l=b;a.m=c}function vf(a,b,c){a.D=b;if(b=a.s.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)} +function wf(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())wf(a,d.value,c)} +function xf(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);wf(a,k,e);k.startTime>=a.l&&k.startTimey?(y=B,A=[D.og]):B==y&&A.push(D.og);m.push.apply(m,x(A))});h=m}c=new Set;b=new Set;h=t(h);for(e=h.next();!e.done;e=h.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);h=Array.from(c).sort(function(y,z){return y.bandwidth-z.bandwidth});var n=[];c=new Map;h=t(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=g(e);l=c.get(k)||[];if(l.length){var q=l[l.length-1],r=gf(q.codecs),u=gf(e.codecs);r!=u||e.bandwidth&&q.bandwidth&&!(e.bandwidth>q.bandwidth)||(l.push(e),n.push(e.id))}else l.push(e), +n.push(e.id);c.set(k,l)}var w={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};h=Array.from(b).sort(function(y,z){if(!y.bandwidth||!z.bandwidth||y.bandwidth==z.bandwidth){if(y.codecs&&z.codecs&&y.codecs!=z.codecs&&y.width==z.width){var A=gf(y.codecs),B=gf(z.codecs);if(A!=B)return(w[A]||1)-(w[B]||1)}return y.width-z.width}return y.bandwidth-z.bandwidth});b=dd();var v=[];c=new Map;h=t(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=f(e); +l=c.get(k)||[];if(l.length){q=l[l.length-1];if(!b&&(r=gf(q.codecs),u=gf(e.codecs),r!==u))continue;r=gf(q.codecs);u=gf(e.codecs);r!=u||e.bandwidth&&q.bandwidth&&!(e.bandwidth>q.bandwidth)||(l.push(e),v.push(e.id))}else l.push(e),v.push(e.id);c.set(k,l)}a.variants=a.variants.filter(function(y){var z=y.audio;y=y.video;return z&&!n.includes(z.id)||y&&!v.includes(y.id)?!1:!0})} +function Gf(a,b,c){b=t(b);for(var d=b.next(),e={};!d.done;e={videoCodec:void 0},d=b.next())if(e.videoCodec=d.value,d=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.videoCodec)}}(e)),d.length){a=d;break}c=t(c);b=c.next();for(d={};!b.done;d={audioCodec:void 0},b=c.next())if(d.audioCodec=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.audioCodec)}}(d)),b.length){a=b;break}return a} +function Hf(a,b,c){a.variants=a.variants.filter(function(d){return If(d,b,c)})} +function If(a,b,c){function d(h,k,l){return h>=k&&h<=l}var e=a.video;if(e&&e.width&&e.height){var f=e.width,g=e.height;g>f&&(g=t([g,f]),f=g.next().value,g=g.next().value);if(!d(f,b.minWidth,Math.min(b.maxWidth,c.width))||!d(g,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))return!1}return a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||a&&a.audio&&a.audio.channelsCount&&!d(a.audio.channelsCount,b.minChannelsCount,b.maxChannelsCount)|| +!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}function Jf(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?{}:d;return Q(function(e){if(1==e.g)return F(e,Kf(a,b,0=a&&e.width>=b){a=e.height;b=e.width;break}c=ng(this,this.g.restrictions,d,a,b)}a=this.getBandwidthEstimate();d.length&& -!c.length&&(c=ng(this,null,d,Infinity,Infinity),c=[c[0]]);b=c[0]||null;for(d=0;d=g&&a<=f&&(b.bandwidth!=e.bandwidth||b.bandwidth==e.bandwidth&&b.video&&e.video&&(b.video.width=a&&e.width>=b){a=e.height;b=e.width;break}c=og(this,this.g.restrictions,d,a,b)}a=this.getBandwidthEstimate();d.length&& +!c.length&&(c=og(this,null,d,Infinity,Infinity),c=[c[0]]);b=c[0]||null;for(d=0;d=g&&a<=f&&(b.bandwidth!=e.bandwidth||b.bandwidth==e.bandwidth&&b.video&&e.video&&(b.video.width=b.i))return;a.I=!0;a.u-=1E3*(a.g.switchInterval-a.g.minTimeToSwitch)}Date.now()-a.u<1E3*a.g.switchInterval||(b=a.chooseVariant(),a.getBandwidthEstimate(),b&&a.G(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch))} -function ng(a,b,c,d,e){if(a.D){var f=a.D.Pi();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return Hf(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function og(a){var b=[];a=u(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}S("shaka.abr.SimpleAbrManager",mg);mg.prototype.configure=mg.prototype.configure; -mg.prototype.setCmsdManager=mg.prototype.setCmsdManager;mg.prototype.setMediaElement=mg.prototype.setMediaElement;mg.prototype.playbackRateChanged=mg.prototype.playbackRateChanged;mg.prototype.setVariants=mg.prototype.setVariants;mg.prototype.getBandwidthEstimate=mg.prototype.getBandwidthEstimate;mg.prototype.trySuggestStreams=mg.prototype.trySuggestStreams;mg.prototype.segmentDownloaded=mg.prototype.segmentDownloaded;mg.prototype.disable=mg.prototype.disable;mg.prototype.enable=mg.prototype.enable; -mg.prototype.chooseVariant=mg.prototype.chooseVariant;mg.prototype.init=mg.prototype.init;mg.prototype.release=mg.prototype.release;mg.prototype.stop=mg.prototype.stop;var qg=1;S("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function rg(a,b){if(a===b||!a.length||!b.length)return!0;a=u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(sg(c))return!0;for(var d=u(b),e=d.next();!e.done;e=d.next())if(e=e.value,c.keySystem===e.keySystem||sg(e))return!0}return!1} -function vg(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=u(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=u((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(x(d.keyIds),x(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri|| -f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}else sg(d)?c.push(d):sg(f)&&c.push(f)}return c} -function wg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function xg(a){return a?!!a.match(/^com\.apple\.fps/):!1}function sg(a){return(a=a.licenseServerUri)?a.startsWith("data:application/json;base64,"):!1}var yg=new Qb(function(){return Lb(new Uint8Array([0]))}),zg=new Map;function Eg(a,b){var c=Fg();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.s=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1} -function Gg(a){var b,c;return Q(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new V(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.s);return F(d,new Promise(function(e){(new yf(e)).X(c/1E3)}),2)}a.h*=a.m;H(d)})}function Fg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Hg(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Hg.prototype.resolve=function(){};Hg.prototype.reject=function(){};function Ig(a,b){this.promise=a;this.i=b;this.g=null}function Jg(a){return new Ig(Promise.reject(a),function(){return Promise.resolve()})}function Kg(){var a=Promise.reject(new V(2,7,7001));a.catch(function(){});return new Ig(a,function(){return Promise.resolve()})}function Lg(a){return new Ig(Promise.resolve(a),function(){return Promise.resolve()})}function Mg(a){return new Ig(a,function(){return a.catch(function(){})})}Ig.prototype.abort=function(){this.g||(this.g=this.i());return this.g}; -function Ng(a){return new Ig(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Ig.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this}; -Ig.prototype.bb=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Og(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Hg;f.catch(function(){});var g=new V(2,7,7001);this.promise.then(c(!0),c(!1));return new Ig(f,function(){return d()})}; -function Og(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}ea.Object.defineProperties(Ig.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return null!==this.g}}});S("shaka.util.AbortableOperation",Ig);Ig.prototype.chain=Ig.prototype.bb;Ig.prototype["finally"]=Ig.prototype.finally; -Ig.all=Ng;Ig.prototype.abort=Ig.prototype.abort;Ig.notAbortable=Mg;Ig.completed=Lg;Ig.aborted=Kg;Ig.failed=Jg;function Pg(){this.g=[]}function Qg(a,b){a.g.push(b.finally(function(){sd(a.g,b)}))}Pg.prototype.destroy=function(){for(var a=[],b=u(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function Rg(a,b,c,d,e,f,g){jb.call(this);this.i=null;this.j=!1;this.u=new Pg;this.g=new Set;this.h=new Set;this.s=a||null;this.m=b||null;this.B=c||null;this.C=d||null;this.D=e||null;this.G=f||null;this.F=g||null;this.l=new Map}pa(Rg,jb);p=Rg.prototype;p.configure=function(a){this.i=a};function Sg(a,b,c,d){d=void 0===d?!1:d;c=c||Tg;var e=Ug.get(a);(!e||c>=e.priority)&&Ug.set(a,{priority:c,Of:b,Ol:d})} -function Vg(a,b){for(var c=u(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=u(a.h);for(c=a.next();!c.done;c=a.next())b.h.add(c.value)}p.Rl=function(a){this.g.add(a)};p.om=function(a){this.g.delete(a)};p.gk=function(){this.g.clear()};p.Sl=function(a){this.h.add(a)};p.pm=function(a){this.h.delete(a)};p.hk=function(){this.h.clear()};p.Ei=function(){this.l.clear()}; -function Wg(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}p.destroy=function(){this.j=!0;this.g.clear();this.h.clear();this.l.clear();jb.prototype.release.call(this);return this.u.destroy()}; -p.request=function(a,b,c){var d=this,e=new Xg;if(this.j){var f=Promise.reject(new V(2,7,7001));f.catch(function(){});return new Yg(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Dd(b.retryParameters):Fg();b.uris=Dd(b.uris);f=Zg(this,a,b,c);var g=f.bb(function(){return $g(d,a,b,c,new Eg(b.retryParameters,!1),0,null,e)}),h=g.bb(function(q){return ah(d,a,q,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){}); -var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.bb(function(q){var r=Date.now()-m,t=q.response;t.timeMs+=l;t.timeMs+=r;q.ol||!d.s||t.fromCache||"HEAD"==b.method||a!=bh||d.s(t.timeMs,t.data.byteLength,ch(c),b,c);d.F&&d.F(a,t,c);return t},function(q){q&&(q.severity=2);throw q;});f=new Yg(n.promise,function(){return n.abort()},e);Qg(this.u,f);return f}; -function Zg(a,b,c,d){function e(h){f=f.bb(function(){c.body&&(c.body=Lb(c.body));return h(b,c,d)})}var f=Lg(void 0);a.D&&e(a.D);a=u(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.bb(void 0,function(h){if(h instanceof V&&7001==h.code)throw h;throw new V(2,1,1006,h);})} -function $g(a,b,c,d,e,f,g,h){a.i.forceHTTP&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.i.forceHTTPS&&(c.uris[f]=c.uris[f].replace("http://","https://"));0this.h.byteLength)throw jh();var b=Kb(this.h,this.g,a);this.g+=a;return b}; -p.skip=function(a){if(this.g+a>this.h.byteLength)throw jh();this.g+=a};p.uj=function(a){if(this.ga||a>this.h.byteLength)throw jh();this.g=a};p.ed=function(){for(var a=this.g;this.Oa()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Kb(this.h,a,this.g-a);this.g+=1;return Wb(a)};function jh(){return new V(2,3,3E3)}S("shaka.util.DataViewReader",hh);hh.prototype.readTerminatedString=hh.prototype.ed;hh.prototype.seek=hh.prototype.seek;hh.prototype.rewind=hh.prototype.uj; -hh.prototype.skip=hh.prototype.skip;hh.prototype.readBytes=hh.prototype.Xb;hh.prototype.readUint64=hh.prototype.Jd;hh.prototype.readInt32=hh.prototype.Ih;hh.prototype.readUint32=hh.prototype.W;hh.prototype.readUint16=hh.prototype.Fa;hh.prototype.readUint8=hh.prototype.aa;hh.prototype.getLength=hh.prototype.getLength;hh.prototype.getPosition=hh.prototype.Ua;hh.prototype.hasMoreData=hh.prototype.Oa;var ih=1;hh.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:ih};function kh(){this.i=new Map;this.h=new Map;this.g=!1}p=kh.prototype;p.box=function(a,b){a=lh(a);this.i.set(a,mh);this.h.set(a,b);return this};p.V=function(a,b){a=lh(a);this.i.set(a,nh);this.h.set(a,b);return this};p.stop=function(){this.g=!0};p.parse=function(a,b,c){a=new hh(a,0);for(this.g=!1;a.Oa()&&!this.g;)this.Ed(0,a,b,c)}; -p.Ed=function(a,b,c,d){var e=b.Ua();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.W(),g=b.W(),h=oh(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Ua()+8>b.getLength()){this.g=!0;return}f=b.Jd();k=!0}var l=this.h.get(g);if(l){var m=null,n=null;if(this.i.get(g)==nh){if(d&&b.Ua()+4>b.getLength()){this.g=!0;return}n=b.W();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.Ua(),b=0>24&255,a>>16&255,a>>8&255,a&255)} -function qh(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}S("shaka.util.Mp4Parser",kh);kh.headerSize=qh;kh.typeToString=oh;kh.allData=uh;kh.audioSampleEntry=th;kh.visualSampleEntry=sh;kh.sampleDescription=rh;kh.children=ph;kh.prototype.parseNext=kh.prototype.Ed;kh.prototype.parse=kh.prototype.parse;kh.prototype.stop=kh.prototype.stop;kh.prototype.fullBox=kh.prototype.V;kh.prototype.box=kh.prototype.box;var mh=0,nh=1;function vh(a){var b=this;this.g=[];this.h=[];this.data=[];(new kh).box("moov",ph).box("moof",ph).V("pssh",function(c){if(!(1d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0=b.i))return;a.I=!0;a.u-=1E3*(a.g.switchInterval-a.g.minTimeToSwitch)}Date.now()-a.u<1E3*a.g.switchInterval||(b=a.chooseVariant(),a.getBandwidthEstimate(),b&&a.G(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch))} +function og(a,b,c,d,e){if(a.D){var f=a.D.Qi();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return If(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function pg(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}S("shaka.abr.SimpleAbrManager",ng);ng.prototype.configure=ng.prototype.configure; +ng.prototype.setCmsdManager=ng.prototype.setCmsdManager;ng.prototype.setMediaElement=ng.prototype.setMediaElement;ng.prototype.playbackRateChanged=ng.prototype.playbackRateChanged;ng.prototype.setVariants=ng.prototype.setVariants;ng.prototype.getBandwidthEstimate=ng.prototype.getBandwidthEstimate;ng.prototype.trySuggestStreams=ng.prototype.trySuggestStreams;ng.prototype.segmentDownloaded=ng.prototype.segmentDownloaded;ng.prototype.disable=ng.prototype.disable;ng.prototype.enable=ng.prototype.enable; +ng.prototype.chooseVariant=ng.prototype.chooseVariant;ng.prototype.init=ng.prototype.init;ng.prototype.release=ng.prototype.release;ng.prototype.stop=ng.prototype.stop;var rg=1;S("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function sg(a,b){if(a===b||!a.length||!b.length)return!0;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(tg(c))return!0;for(var d=t(b),e=d.next();!e.done;e=d.next())if(e=e.value,c.keySystem===e.keySystem||tg(e))return!0}return!1} +function wg(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(x(d.keyIds),x(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri|| +f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}else tg(d)?c.push(d):tg(f)&&c.push(f)}return c} +function xg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function yg(a){return a?!!a.match(/^com\.apple\.fps/):!1}function tg(a){return(a=a.licenseServerUri)?a.startsWith("data:application/json;base64,"):!1}var zg=new Qb(function(){return Lb(new Uint8Array([0]))}),Ag=new Map;function Fg(a,b){var c=Gg();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.s=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1} +function Hg(a){var b,c;return Q(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new V(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.s);return F(d,new Promise(function(e){(new zf(e)).X(c/1E3)}),2)}a.h*=a.m;I(d)})}function Gg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Ig(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Ig.prototype.resolve=function(){};Ig.prototype.reject=function(){};function Jg(a,b){this.promise=a;this.i=b;this.g=null}function Kg(a){return new Jg(Promise.reject(a),function(){return Promise.resolve()})}function Lg(){var a=Promise.reject(new V(2,7,7001));a.catch(function(){});return new Jg(a,function(){return Promise.resolve()})}function Mg(a){return new Jg(Promise.resolve(a),function(){return Promise.resolve()})}function Ng(a){return new Jg(a,function(){return a.catch(function(){})})}Jg.prototype.abort=function(){this.g||(this.g=this.i());return this.g}; +function Og(a){return new Jg(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Jg.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this}; +Jg.prototype.ab=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Pg(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Ig;f.catch(function(){});var g=new V(2,7,7001);this.promise.then(c(!0),c(!1));return new Jg(f,function(){return d()})}; +function Pg(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}ea.Object.defineProperties(Jg.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return null!==this.g}}});S("shaka.util.AbortableOperation",Jg);Jg.prototype.chain=Jg.prototype.ab;Jg.prototype["finally"]=Jg.prototype.finally; +Jg.all=Og;Jg.prototype.abort=Jg.prototype.abort;Jg.notAbortable=Ng;Jg.completed=Mg;Jg.aborted=Lg;Jg.failed=Kg;function Qg(){this.g=[]}function Rg(a,b){a.g.push(b.finally(function(){sd(a.g,b)}))}Qg.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function Sg(a,b,c,d,e,f,g){jb.call(this);this.i=null;this.j=!1;this.u=new Qg;this.g=new Set;this.h=new Set;this.s=a||null;this.m=b||null;this.B=c||null;this.C=d||null;this.D=e||null;this.G=f||null;this.F=g||null;this.l=new Map}pa(Sg,jb);p=Sg.prototype;p.configure=function(a){this.i=a};function Tg(a,b,c,d){d=void 0===d?!1:d;c=c||Ug;var e=Vg.get(a);(!e||c>=e.priority)&&Vg.set(a,{priority:c,Pf:b,Pl:d})} +function Wg(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(c=a.next();!c.done;c=a.next())b.h.add(c.value)}p.Sl=function(a){this.g.add(a)};p.pm=function(a){this.g.delete(a)};p.hk=function(){this.g.clear()};p.Tl=function(a){this.h.add(a)};p.qm=function(a){this.h.delete(a)};p.ik=function(){this.h.clear()};p.Fi=function(){this.l.clear()}; +function Xg(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}p.destroy=function(){this.j=!0;this.g.clear();this.h.clear();this.l.clear();jb.prototype.release.call(this);return this.u.destroy()}; +p.request=function(a,b,c){var d=this,e=new Yg;if(this.j){var f=Promise.reject(new V(2,7,7001));f.catch(function(){});return new Zg(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Ed(b.retryParameters):Gg();b.uris=Ed(b.uris);f=$g(this,a,b,c);var g=f.ab(function(){return ah(d,a,b,c,new Fg(b.retryParameters,!1),0,null,e)}),h=g.ab(function(q){return bh(d,a,q,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){}); +var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.ab(function(q){var r=Date.now()-m,u=q.response;u.timeMs+=l;u.timeMs+=r;q.ql||!d.s||u.fromCache||"HEAD"==b.method||a!=ch||d.s(u.timeMs,u.data.byteLength,dh(c),b,c);d.F&&d.F(a,u,c);return u},function(q){q&&(q.severity=2);throw q;});f=new Zg(n.promise,function(){return n.abort()},e);Rg(this.u,f);return f}; +function $g(a,b,c,d){function e(h){f=f.ab(function(){c.body&&(c.body=Lb(c.body));return h(b,c,d)})}var f=Mg(void 0);a.D&&e(a.D);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.ab(void 0,function(h){if(h instanceof V&&7001==h.code)throw h;throw new V(2,1,1006,h);})} +function ah(a,b,c,d,e,f,g,h){a.i.forceHTTP&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.i.forceHTTPS&&(c.uris[f]=c.uris[f].replace("http://","https://"));0this.h.byteLength)throw kh();var b=Kb(this.h,this.g,a);this.g+=a;return b}; +p.skip=function(a){if(this.g+a>this.h.byteLength)throw kh();this.g+=a};p.vj=function(a){if(this.ga||a>this.h.byteLength)throw kh();this.g=a};p.jd=function(){for(var a=this.g;this.Oa()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Kb(this.h,a,this.g-a);this.g+=1;return Wb(a)};function kh(){return new V(2,3,3E3)}S("shaka.util.DataViewReader",ih);ih.prototype.readTerminatedString=ih.prototype.jd;ih.prototype.seek=ih.prototype.seek;ih.prototype.rewind=ih.prototype.vj; +ih.prototype.skip=ih.prototype.skip;ih.prototype.readBytes=ih.prototype.Xb;ih.prototype.readUint64=ih.prototype.Ld;ih.prototype.readInt32=ih.prototype.Jh;ih.prototype.readUint32=ih.prototype.W;ih.prototype.readUint16=ih.prototype.Fa;ih.prototype.readUint8=ih.prototype.aa;ih.prototype.getLength=ih.prototype.getLength;ih.prototype.getPosition=ih.prototype.Ua;ih.prototype.hasMoreData=ih.prototype.Oa;var jh=1;ih.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:jh};function lh(){this.i=new Map;this.h=new Map;this.g=!1}p=lh.prototype;p.box=function(a,b){a=mh(a);this.i.set(a,nh);this.h.set(a,b);return this};p.V=function(a,b){a=mh(a);this.i.set(a,oh);this.h.set(a,b);return this};p.stop=function(){this.g=!0};p.parse=function(a,b,c){a=new ih(a,0);for(this.g=!1;a.Oa()&&!this.g;)this.Gd(0,a,b,c)}; +p.Gd=function(a,b,c,d){var e=b.Ua();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.W(),g=b.W(),h=ph(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Ua()+8>b.getLength()){this.g=!0;return}f=b.Ld();k=!0}var l=this.h.get(g);if(l){var m=null,n=null;if(this.i.get(g)==oh){if(d&&b.Ua()+4>b.getLength()){this.g=!0;return}n=b.W();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(g-=b.Ua(),b=0>24&255,a>>16&255,a>>8&255,a&255)}function rh(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}S("shaka.util.Mp4Parser",lh);lh.headerSize=rh;lh.typeToString=ph;lh.allData=vh;lh.audioSampleEntry=uh;lh.visualSampleEntry=th;lh.sampleDescription=sh;lh.children=qh;lh.prototype.parseNext=lh.prototype.Gd;lh.prototype.parse=lh.prototype.parse; +lh.prototype.stop=lh.prototype.stop;lh.prototype.fullBox=lh.prototype.V;lh.prototype.box=lh.prototype.box;var nh=0,oh=1;function wh(a){var b=this;this.g=[];this.h=[];this.data=[];(new lh).box("moov",qh).box("moof",qh).V("pssh",function(c){if(!(1d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.u(new V(2,6,6006,f.message,f,h))}})}function ei(a){return Q(function(b){return 1==b.g?a.J?F(b,a.m,3):b.A(0):F(b,Promise.all(a.P.map(function(c){return c.promise})),0)})} -function Oh(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,w;Q(function(v){switch(v.g){case 1:c=b.target;a.g.logLicenseExchange&&gc(b.message);d=a.i.get(c);e=a.h.licenseServerUri;f=a.g.advanced[a.h.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=Wg([e],a.g.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.h;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(f&&f.headers)for(h in f.headers)g.headers[h]= -f.headers[h];if("org.w3.clearkey"===a.h.keySystem){var y=g,z=a.h;try{var A=Zb(y.body);if(A){var B=JSON.parse(A);B.type||(B.type=z.sessionType,y.body=$b(JSON.stringify(B)))}}catch(D){}}if(wg(a.h.keySystem))if(y=Xb(g.body,!0,!0),y.includes("PlayReadyKeyMessage")){y=Hd(y,"PlayReadyKeyMessage");z=Rd(y,"HttpHeader");z=u(z);for(A=z.next();!A.done;A=z.next())B=A.value,A=Rd(B,"name")[0],B=Rd(B,"value")[0],g.headers[Pd(A)]=Pd(B);y=Rd(y,"Challenge")[0];g.body=hc(Pd(y))}else g.headers["Content-Type"]="text/xml; charset=utf-8"; -k=Date.now();ta(v,2);m=a.D.uc.request(2,g,{isPreload:a.O()});a.P.push(m);return F(v,m.promise,4);case 4:l=v.h;sd(a.P,m);wa(v,3);break;case 2:n=xa(v);if(a.l.g)return v.return();q=new V(2,6,6007,n);1==a.i.size?(a.u(q),d&&d.Mb&&d.Mb.reject(q)):(d&&d.Mb&&d.Mb.reject(q),a.i.delete(c),Uh(a)&&(a.m.resolve(),a.K.X(.1)));return v.return();case 3:if(a.l.g)return v.return();a.H+=(Date.now()-k)/1E3;a.g.logLicenseExchange&&gc(l.data);ta(v,5);return F(v,c.update(l.data),7);case 7:wa(v,6);break;case 5:return r= -xa(v),t=new V(2,6,6008,r.message),a.u(t),d&&d.Mb&&d.Mb.reject(t),v.return();case 6:if(a.l.g)return v.return();w=new U("drmsessionupdate");a.D.onEvent(w);d&&(d.Mb&&d.Mb.resolve(),bi(a,d));H(v)}})} -function di(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}h=Rb();if(wg(a.h.keySystem)&&16==g.byteLength&&h.Oh()){h=Ob(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=jc(g).slice(0,32);a.U.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Mb&&(a.i.delete(b),fi(b));Uh(a)&&(a.m.resolve(), -a.K.X(ji))}function yh(a){var b=a.U,c=a.$;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.u(new V(2,6,6014));a.D.Kf(gh(c))} -function ki(){var a,b,c,d,e,f,g,h,k,l,m,n,q,r,t,w,v,y,z,A,B,D,G,C,E,I,K,J,L,M,O,N,P,R,T;return Q(function(ca){if(1==ca.g){a="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" ");if(!(window.MediaKeys&&window.navigator&& -window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)){b={};c=u(a);for(d=c.next();!d.done;d=c.next())e=d.value,b[e]=null;return ca.return(b)}f="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" ");g=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"];h=["150","2000","3000"];k={"com.widevine.alpha":g,"com.widevine.alpha.experiment":g,"com.microsoft.playready.recommendation":h};l=[{contentType:'video/mp4; codecs="avc1.42E01E"'}, -{contentType:'video/webm; codecs="vp8"'}];m=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}];n={videoCapabilities:l,audioCapabilities:m,initDataTypes:["cenc","sinf","skd","keyids"]};q=[null,"cenc","cbcs","cbcs-1-9"];r=new Map;t=Rb();w=function(Y,Ma){var Na,Ea,va,Ka,Pa,za,ia,Aa,eb,fb,mb,xb,sb;return Q(function(Ua){switch(Ua.g){case 1:return ta(Ua,2),F(Ua,Ma.createMediaKeys(),5);case 5:Na=Ua.h;case 4:wa(Ua,3);break;case 2:return xa(Ua),Ua.return();case 3:va= -(Ea=Ma.getConfiguration().sessionTypes)?Ea.includes("persistent-license"):!1;t.fj()&&(va=!1);Ka=Ma.getConfiguration().videoCapabilities;Pa=Ma.getConfiguration().audioCapabilities;za={persistentState:va,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]};r.has(Y)&&r.get(Y)?za=r.get(Y):r.set(Y,za);(ia=Ka[0].encryptionScheme)&&!za.encryptionSchemes.includes(ia)&&za.encryptionSchemes.push(ia);(Aa=Ka[0].robustness)&&!za.videoRobustnessLevels.includes(Aa)&&za.videoRobustnessLevels.push(Aa); -(eb=Pa[0].robustness)&&!za.audioRobustnessLevels.includes(eb)&&za.audioRobustnessLevels.push(eb);if("getStatusForPolicy"in Na){fb=[];mb=u(f);xb=mb.next();for(sb={};!xb.done;sb={ge:void 0},xb=mb.next())sb.ge=xb.value,za.minHdcpVersions.includes(sb.ge)||fb.push(Na.getStatusForPolicy({minHdcpVersion:sb.ge}).then(function(re){return function(tc){"usable"!=tc||za.minHdcpVersions.includes(re.ge)||za.minHdcpVersions.push(re.ge)}}(sb)));return F(Ua,Promise.all(fb),0)}Ua.A(0)}})};v=function(Y,Ma,Na,Ea){var va, -Ka,Pa,za,ia,Aa,eb,fb,mb,xb,sb;return Q(function(Ua){switch(Ua.g){case 1:ta(Ua,2);va=Dd(n);Ka=u(va.videoCapabilities);for(Pa=Ka.next();!Pa.done;Pa=Ka.next())za=Pa.value,za.encryptionScheme=Ma,za.robustness=Na;ia=u(va.audioCapabilities);for(Aa=ia.next();!Aa.done;Aa=ia.next())eb=Aa.value,eb.encryptionScheme=Ma,eb.robustness=Ea;fb=Dd(va);fb.persistentState="required";fb.sessionTypes=["persistent-license"];mb=[fb,va];sb=Rb();return"MOBILE"==sb.Ia()?F(Ua,Cf(5,navigator.requestMediaKeySystemAccess(Y,mb)), -7):F(Ua,navigator.requestMediaKeySystemAccess(Y,mb),6);case 6:xb=Ua.h;Ua.A(5);break;case 7:xb=Ua.h;case 5:return F(Ua,w(Y,xb),8);case 8:wa(Ua,0);break;case 2:xa(Ua),H(Ua)}})};y=function(Y,Ma,Na,Ea){var va,Ka,Pa,za;return Q(function(ia){switch(ia.g){case 1:return ta(ia,2),va={type:"media-source",video:{contentType:l[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:m[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:Y,video:{encryptionScheme:Ma, -robustness:Na},audio:{encryptionScheme:Ma,robustness:Ea}}},Pa=Rb(),"MOBILE"==Pa.Ia()?F(ia,Cf(5,navigator.mediaCapabilities.decodingInfo(va)),7):F(ia,navigator.mediaCapabilities.decodingInfo(va),6);case 6:Ka=ia.h;ia.A(5);break;case 7:Ka=ia.h;case 5:return za=Ka.keySystemAccess,F(ia,w(Y,za),8);case 8:wa(ia,0);break;case 2:xa(ia),H(ia)}})};z=u(a);for(A=z.next();!A.done;A=z.next())B=A.value,r.set(B,null);D=function(Y){return"WEBKIT"===Rb().Na()&&"org.w3.clearkey"===Y?!1:!0};G=[];C=u(q);for(E=C.next();!E.done;E= -C.next())for(I=E.value,K=u(a),J=K.next();!J.done;J=K.next())L=J.value,D(L)&&(G.push(v(L,I,"","")),G.push(y(L,I,"","")));M=u(a);for(O=M.next();!O.done;O=M.next())for(N=O.value,P=u(k[N]||[]),R=P.next();!R.done;R=P.next())T=R.value,D(N)&&(G.push(v(N,null,T,"")),G.push(v(N,null,"",T)),G.push(y(N,null,T,"")),G.push(y(N,null,"",T)));return F(ca,Promise.all(G),2)}return ca.return(gh(r))})} -function fi(a){return Q(function(b){if(1==b.g)return ta(b,2),F(b,Cf(li,Promise.all([a.close().catch(function(){}),a.closed])),4);if(2!=b.g)return wa(b,0);xa(b);H(b)})} -function Bh(a){var b;return Q(function(c){b=Array.from(a.i.entries());a.i.clear();return F(c,Promise.all(b.map(function(d){d=u(d);var e=d.next().value,f=d.next().value;return Q(function(g){if(1==g.g)return ta(g,2),a.ea||a.C.has(e.sessionId)||"persistent-license"!==f.type||a.g.persistentSessionOnlinePlayback?F(g,fi(e),5):F(g,e.remove(),5);if(2!=g.g)return wa(g,0);xa(g);H(g)})})),0)})}function Jh(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])} -function zh(a){a.i.forEach(function(b,c){var d=b.Dh,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.D.onExpirationUpdated(c.sessionId,e),b.Dh=e)})}function Uh(a){a=a.i.values();return lb(a,function(b){return b.loaded})}function Th(a){for(var b=u(a.h&&a.h.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.U.get(c.value))return!1;return!0} -function Ih(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=u(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)} -function $h(a,b,c,d,e,f,g,h){var k=[];a=u(a);for(var l=a.next(),m={};!l.done;m={Qa:void 0},l=a.next()){m.Qa=l.value;b.includes(m.Qa.encryptionScheme)||b.push(m.Qa.encryptionScheme);"org.w3.clearkey"==m.Qa.keySystem&&m.Qa.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(m.Qa.licenseServerUri)||k.push(m.Qa.licenseServerUri):c.includes(m.Qa.licenseServerUri)||c.push(m.Qa.licenseServerUri);e.includes(m.Qa.serverCertificateUri)||e.push(m.Qa.serverCertificateUri);m.Qa.serverCertificate&& -(d.some(function(r){return function(t){return Jb(t,r.Qa.serverCertificate)}}(m))||d.push(m.Qa.serverCertificate));if(m.Qa.initData){l=u(m.Qa.initData);for(var n=l.next(),q={};!n.done;q={rh:void 0},n=l.next())q.rh=n.value,f.some(function(r){return function(t){var w=r.rh;return t.keyId&&t.keyId==w.keyId?!0:t.initDataType==w.initDataType&&Jb(t.initData,w.initData)}}(q))||f.push(q.rh)}if(m.Qa.keyIds)for(l=u(m.Qa.keyIds),n=l.next();!n.done;n=l.next())g.add(n.value);if(m.Qa.keySystemUris&&h)for(m=u(m.Qa.keySystemUris), -l=m.next();!l.done;l=m.next())h.add(l.value)}if(1==k.length)c.push(k[0]);else if(0h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.u(new V(2,6,6006,f.message,f,h))}})}function fi(a){return Q(function(b){return 1==b.g?a.J?F(b,a.m,3):b.A(0):F(b,Promise.all(a.P.map(function(c){return c.promise})),0)})} +function Ph(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w;Q(function(v){switch(v.g){case 1:c=b.target;a.h.logLicenseExchange&&gc(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=Xg([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(f&&f.headers)for(h in f.headers)g.headers[h]= +f.headers[h];if("org.w3.clearkey"===a.g.keySystem){var y=g,z=a.g;try{var A=Zb(y.body);if(A){var B=JSON.parse(A);B.type||(B.type=z.sessionType,y.body=$b(JSON.stringify(B)))}}catch(D){}}if(xg(a.g.keySystem))if(y=Xb(g.body,!0,!0),y.includes("PlayReadyKeyMessage")){y=Id(y,"PlayReadyKeyMessage");z=Sd(y,"HttpHeader");z=t(z);for(A=z.next();!A.done;A=z.next())B=A.value,A=Sd(B,"name")[0],B=Sd(B,"value")[0],g.headers[Qd(A)]=Qd(B);y=Sd(y,"Challenge")[0];g.body=hc(Qd(y))}else g.headers["Content-Type"]="text/xml; charset=utf-8"; +k=Date.now();ta(v,2);m=a.D.xc.request(2,g,{isPreload:a.O()});a.P.push(m);return F(v,m.promise,4);case 4:l=v.h;sd(a.P,m);wa(v,3);break;case 2:n=xa(v);if(a.l.g)return v.return();q=new V(2,6,6007,n);1==a.i.size?(a.u(q),d&&d.Nb&&d.Nb.reject(q)):(d&&d.Nb&&d.Nb.reject(q),a.i.delete(c),Vh(a)&&(a.m.resolve(),a.K.X(.1)));return v.return();case 3:if(a.l.g)return v.return();a.H+=(Date.now()-k)/1E3;a.h.logLicenseExchange&&gc(l.data);ta(v,5);return F(v,c.update(l.data),7);case 7:wa(v,6);break;case 5:return r= +xa(v),u=new V(2,6,6008,r.message),a.u(u),d&&d.Nb&&d.Nb.reject(u),v.return();case 6:if(a.l.g)return v.return();w=new U("drmsessionupdate");a.D.onEvent(w);d&&(d.Nb&&d.Nb.resolve(),ci(a,d));I(v)}})} +function ei(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}h=Rb();if(xg(a.g.keySystem)&&16==g.byteLength&&h.Ph()){h=Ob(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=jc(g).slice(0,32);a.U.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Nb&&(a.i.delete(b),gi(b));Vh(a)&&(a.m.resolve(), +a.K.X(ki))}function zh(a){var b=a.U,c=a.$;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.u(new V(2,6,6014));a.D.Lf(hh(c))} +function li(){var a,b,c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T;return Q(function(ca){if(1==ca.g){a="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" ");if(!(window.MediaKeys&&window.navigator&& +window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)){b={};c=t(a);for(d=c.next();!d.done;d=c.next())e=d.value,b[e]=null;return ca.return(b)}f="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" ");g=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"];h=["150","2000","3000"];k={"com.widevine.alpha":g,"com.widevine.alpha.experiment":g,"com.microsoft.playready.recommendation":h};l=[{contentType:'video/mp4; codecs="avc1.42E01E"'}, +{contentType:'video/webm; codecs="vp8"'}];m=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}];n={videoCapabilities:l,audioCapabilities:m,initDataTypes:["cenc","sinf","skd","keyids"]};q=[null,"cenc","cbcs","cbcs-1-9"];r=new Map;u=Rb();w=function(Y,Ma){var Na,Ea,va,Ja,Pa,za,ja,Aa,eb,fb,nb,wb,rb;return Q(function(Ua){switch(Ua.g){case 1:return ta(Ua,2),F(Ua,Ma.createMediaKeys(),5);case 5:Na=Ua.h;case 4:wa(Ua,3);break;case 2:return xa(Ua),Ua.return();case 3:va= +(Ea=Ma.getConfiguration().sessionTypes)?Ea.includes("persistent-license"):!1;u.gj()&&(va=!1);Ja=Ma.getConfiguration().videoCapabilities;Pa=Ma.getConfiguration().audioCapabilities;za={persistentState:va,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]};r.has(Y)&&r.get(Y)?za=r.get(Y):r.set(Y,za);(ja=Ja[0].encryptionScheme)&&!za.encryptionSchemes.includes(ja)&&za.encryptionSchemes.push(ja);(Aa=Ja[0].robustness)&&!za.videoRobustnessLevels.includes(Aa)&&za.videoRobustnessLevels.push(Aa); +(eb=Pa[0].robustness)&&!za.audioRobustnessLevels.includes(eb)&&za.audioRobustnessLevels.push(eb);if("getStatusForPolicy"in Na){fb=[];nb=t(f);wb=nb.next();for(rb={};!wb.done;rb={ge:void 0},wb=nb.next())rb.ge=wb.value,za.minHdcpVersions.includes(rb.ge)||fb.push(Na.getStatusForPolicy({minHdcpVersion:rb.ge}).then(function(se){return function(rc){"usable"!=rc||za.minHdcpVersions.includes(se.ge)||za.minHdcpVersions.push(se.ge)}}(rb)));return F(Ua,Promise.all(fb),0)}Ua.A(0)}})};v=function(Y,Ma,Na,Ea){var va, +Ja,Pa,za,ja,Aa,eb,fb,nb,wb,rb;return Q(function(Ua){switch(Ua.g){case 1:ta(Ua,2);va=Ed(n);Ja=t(va.videoCapabilities);for(Pa=Ja.next();!Pa.done;Pa=Ja.next())za=Pa.value,za.encryptionScheme=Ma,za.robustness=Na;ja=t(va.audioCapabilities);for(Aa=ja.next();!Aa.done;Aa=ja.next())eb=Aa.value,eb.encryptionScheme=Ma,eb.robustness=Ea;fb=Ed(va);fb.persistentState="required";fb.sessionTypes=["persistent-license"];nb=[fb,va];rb=Rb();return"MOBILE"==rb.Ja()?F(Ua,Df(5,navigator.requestMediaKeySystemAccess(Y,nb)), +7):F(Ua,navigator.requestMediaKeySystemAccess(Y,nb),6);case 6:wb=Ua.h;Ua.A(5);break;case 7:wb=Ua.h;case 5:return F(Ua,w(Y,wb),8);case 8:wa(Ua,0);break;case 2:xa(Ua),I(Ua)}})};y=function(Y,Ma,Na,Ea){var va,Ja,Pa,za;return Q(function(ja){switch(ja.g){case 1:return ta(ja,2),va={type:"media-source",video:{contentType:l[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:m[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:Y,video:{encryptionScheme:Ma, +robustness:Na},audio:{encryptionScheme:Ma,robustness:Ea}}},Pa=Rb(),"MOBILE"==Pa.Ja()?F(ja,Df(5,navigator.mediaCapabilities.decodingInfo(va)),7):F(ja,navigator.mediaCapabilities.decodingInfo(va),6);case 6:Ja=ja.h;ja.A(5);break;case 7:Ja=ja.h;case 5:return za=Ja.keySystemAccess,F(ja,w(Y,za),8);case 8:wa(ja,0);break;case 2:xa(ja),I(ja)}})};z=t(a);for(A=z.next();!A.done;A=z.next())B=A.value,r.set(B,null);D=function(Y){return"WEBKIT"===Rb().Ga()&&"org.w3.clearkey"===Y?!1:!0};G=[];C=t(q);for(E=C.next();!E.done;E= +C.next())for(H=E.value,K=t(a),J=K.next();!J.done;J=K.next())L=J.value,D(L)&&(G.push(v(L,H,"","")),G.push(y(L,H,"","")));N=t(a);for(O=N.next();!O.done;O=N.next())for(M=O.value,P=t(k[M]||[]),R=P.next();!R.done;R=P.next())T=R.value,D(M)&&(G.push(v(M,null,T,"")),G.push(v(M,null,"",T)),G.push(y(M,null,T,"")),G.push(y(M,null,"",T)));return F(ca,Promise.all(G),2)}return ca.return(hh(r))})} +function gi(a){return Q(function(b){if(1==b.g)return ta(b,2),F(b,Df(mi,Promise.all([a.close().catch(function(){}),a.closed])),4);if(2!=b.g)return wa(b,0);xa(b);I(b)})} +function Ch(a){var b;return Q(function(c){b=Array.from(a.i.entries());a.i.clear();return F(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return Q(function(g){if(1==g.g)return ta(g,2),a.ba||a.C.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?F(g,gi(e),5):F(g,e.remove(),5);if(2!=g.g)return wa(g,0);xa(g);I(g)})})),0)})}function Kh(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])} +function Ah(a){a.i.forEach(function(b,c){var d=b.Eh,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.D.onExpirationUpdated(c.sessionId,e),b.Eh=e)})}function Vh(a){a=a.i.values();return lb(a,function(b){return b.loaded})}function Uh(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.U.get(c.value))return!1;return!0} +function Jh(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)} +function ai(a,b,c,d,e,f,g,h){var k=[];a=t(a);for(var l=a.next(),m={};!l.done;m={Qa:void 0},l=a.next()){m.Qa=l.value;b.includes(m.Qa.encryptionScheme)||b.push(m.Qa.encryptionScheme);"org.w3.clearkey"==m.Qa.keySystem&&m.Qa.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(m.Qa.licenseServerUri)||k.push(m.Qa.licenseServerUri):c.includes(m.Qa.licenseServerUri)||c.push(m.Qa.licenseServerUri);e.includes(m.Qa.serverCertificateUri)||e.push(m.Qa.serverCertificateUri);m.Qa.serverCertificate&& +(d.some(function(r){return function(u){return Jb(u,r.Qa.serverCertificate)}}(m))||d.push(m.Qa.serverCertificate));if(m.Qa.initData){l=t(m.Qa.initData);for(var n=l.next(),q={};!n.done;q={sh:void 0},n=l.next())q.sh=n.value,f.some(function(r){return function(u){var w=r.sh;return u.keyId&&u.keyId==w.keyId?!0:u.initDataType==w.initDataType&&Jb(u.initData,w.initData)}}(q))||f.push(q.sh)}if(m.Qa.keyIds)for(l=t(m.Qa.keyIds),n=l.next();!n.done;n=l.next())g.add(n.value);if(m.Qa.keySystemUris&&h)for(m=t(m.Qa.keySystemUris), +l=m.next();!l.done;l=m.next())h.add(l.value)}if(1==k.length)c.push(k[0]);else if(0>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}} -function Ki(a,b,c){var d=a.W(),e=[],f=null;c&1&&(f=a.Ih());c&4&&a.skip(4);for(var g=0;ga?"0":"")+a};function Qi(a){if(!Ri){Ri=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Si=Ti("ftyp",b,d,b,c);b=Ti("dref",Ui);Vi=Ti("dinf",b)}this.g=a} -function Wi(a){for(var b=[],c=u(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Ti;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Xi+1));m=Math.floor(m%(Xi+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Yi(h,4)),[0,0,0,0],x(Yi(n,4)),x(Yi(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],x(Yi(k,2)),[0,0],x(Yi(l, -2)),[0,0]));h=Ti("tkhd",h);k=Ti;n=g.duration*g.timescale;l=Math.floor(n/(Xi+1));n=Math.floor(n%(Xi+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Yi(g.timescale,4)),x(Yi(l,4)),x(Yi(n,4)),x(Yi(m,2)),[0,0]));l=Ti("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Zi;break;case "audio":m=$i}n=Ti("hdlr",m);a:{switch(g.type){case "video":g=Ti("minf",Ti("vmhd",aj),Vi,bj(g));break a; -case "audio":g=Ti("minf",Ti("smhd",cj),Vi,bj(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=kc.apply(dc,x(b));f=a.g[0];c=Ti;d=f.duration*f.timescale;e=Math.floor(d/(Xi+1));d=Math.floor(d%(Xi+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Yi(f.timescale,4)),x(Yi(e,4)),x(Yi(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255, -255]));e=Ti("mvhd",e);d=[];a=u(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(x(Yi(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),k=Ti("trex",k),h.call(g,k);a=kc.apply(dc,x(d));a=Ti("mvex",a);d=[];if(f.encrypted){f=u(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=u(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=kc.apply(dc,x(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Si.byteLength+ -a.byteLength);b.set(Si);b.set(a,Si.byteLength);return b} -function bj(a){var b=Ti,c="aac";a.codecs.includes("mp3")?c="mp3":a.codecs.includes("ac-3")?c=Rb().we()?"ec-3":"ac-3":a.codecs.includes("ec-3")?c="ec-3":a.codecs.includes("opus")&&(c="opus");var d=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;d=a.stream.height||0;if(0>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(x(Yi(c,2)),x(Yi(d,2)),[0,72,0,0,0,72, -0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=ej(a);g=new Uint8Array([]);a.encrypted&&(g=fj(0,a.stream,a.codecs),d="encv");d=Ti(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=fj(0,a.stream,a.codecs),d="enca");a=Ti(d,gj(a),c,e)}d=a}a=Ti("stsd",hj,d);return b("stbl",a,Ti("stts",ij),Ti("stsc",jj),Ti("stsz",kj),Ti("stco",lj))}function ej(a){if(!a.cb&&!a.fb)return new Uint8Array([]);var b=a.fb;a=new Uint8Array([].concat(x(Yi(a.cb,4)),x(Yi(b,4))));return Ti("pasp",a)} -function gj(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(x(Yi(a.stream.audioSamplingRate||44100,2)),[0,0]))} -function fj(a,b,c){a=Ti;c=new Uint8Array([].concat(x(Yi(mj(c.split(".")[0]),4))));c=Ti("frma",c);var d="cenc";var e=b.drmInfos[0];e&&e.encryptionScheme&&(d=e.encryptionScheme);d=new Uint8Array([0,0,0,0].concat(x(Yi(mj(d),4)),[0,1,0,0]));d=Ti("schm",d);e=Ti;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);b=u(b.drmInfos);for(var g=b.next();!g.done;g=b.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=u(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=dj(h.value)}b=new Uint8Array([0,0,0,0,0, -0,1,8]);b=Ti("tenc",b,f);return a("sinf",c,d,e("schi",b))} -function nj(a){var b=[];a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Ti;var g=new Uint8Array([0,0,0,0].concat(x(Yi(c.data?c.data.Yb:0,4))));g=Ti("mfhd",g);var h;var k=c.data?c.data.Bb:[];var l=new Uint8Array(4+k.length);for(h=0;h>8*b&255);return c}function dj(a){for(var b=new Uint8Array(a.length/2),c=0;c>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c>8*m&255);a.set(new Uint8Array(l),h);a.set(k,h+4);h=u(g);for(k=h.next();!k.done;k=h.next())k=k.value,vj(a,k.start,k.size+4)}}return a} -function sj(a,b,c,d,e,f){var g=fj(new Qi([]),a,d.name),h=b.subarray(d.start,d.start+d.size);a=new Uint8Array(d.size+g.byteLength);a.set(h,0);Ob(a).setUint32(4,f);a.set(g,d.size);vj(a,0,a.byteLength);f=new Uint8Array(b.byteLength+a.byteLength);d=Rb().wf()?d.start:d.start+d.size;g=b.subarray(d);f.set(b.subarray(0,d));f.set(a,d);f.set(g,d+a.byteLength);b=u(e);for(e=b.next();!e.done;e=b.next())e=e.value,vj(f,e.start,e.size+a.byteLength);a=Ob(f,c.start);c=qh(c);b=a.getUint32(c);a.setUint32(c,b+1);return f} -function vj(a,b,c){a=Ob(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))} -function wj(a){function b(e){d.push({start:e.start,size:e.size});ph(e)}var c=Kb(a),d=[];(new kh).box("moov",b).box("trak",b).box("mdia",b).box("minf",b).box("stbl",b).box("stsd",function(e){d.push({start:e.start,size:e.size});for(var f=Ob(c,e.start),g=0;ga.end(0)-a.start(0)}function Ej(a){return!a||Dj(a)?null:a.length?a.end(a.length-1):null}function Fj(a,b){return!a||!a.length||Dj(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Gj(a,b){if(!a||!a.length||Dj(a))return 0;var c=0;a=u(Hj(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c} -function Ij(a,b,c){if(!a||!a.length||Dj(a))return null;a=Hj(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Hj(a){if(!a)return[];for(var b=[],c=0;c>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}} +function Li(a,b,c){var d=a.W(),e=[],f=null;c&1&&(f=a.Jh());c&4&&a.skip(4);for(var g=0;ga?"0":"")+a};function Ri(a){if(!Si){Si=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Ti=Ui("ftyp",b,d,b,c);b=Ui("dref",Vi);Wi=Ui("dinf",b)}this.g=a} +function Xi(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Ui;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Yi+1));m=Math.floor(m%(Yi+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Zi(h,4)),[0,0,0,0],x(Zi(n,4)),x(Zi(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],x(Zi(k,2)),[0,0],x(Zi(l, +2)),[0,0]));h=Ui("tkhd",h);k=Ui;n=g.duration*g.timescale;l=Math.floor(n/(Yi+1));n=Math.floor(n%(Yi+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Zi(g.timescale,4)),x(Zi(l,4)),x(Zi(n,4)),x(Zi(m,2)),[0,0]));l=Ui("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=$i;break;case "audio":m=aj}n=Ui("hdlr",m);a:{switch(g.type){case "video":g=Ui("minf",Ui("vmhd",bj),Wi,cj(g));break a; +case "audio":g=Ui("minf",Ui("smhd",dj),Wi,cj(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=kc.apply(dc,x(b));f=a.g[0];c=Ui;d=f.duration*f.timescale;e=Math.floor(d/(Yi+1));d=Math.floor(d%(Yi+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Zi(f.timescale,4)),x(Zi(e,4)),x(Zi(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255, +255]));e=Ui("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(x(Zi(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),k=Ui("trex",k),h.call(g,k);a=kc.apply(dc,x(d));a=Ui("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=kc.apply(dc,x(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Ti.byteLength+ +a.byteLength);b.set(Ti);b.set(a,Ti.byteLength);return b} +function cj(a){var b=Ui,c="aac";a.codecs.includes("mp3")?c="mp3":a.codecs.includes("ac-3")?c=Rb().we()?"ec-3":"ac-3":a.codecs.includes("ec-3")?c="ec-3":a.codecs.includes("opus")&&(c="opus");var d=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;d=a.stream.height||0;if(0>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(x(Zi(c,2)),x(Zi(d,2)),[0,72,0,0,0,72, +0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=fj(a);g=new Uint8Array([]);a.encrypted&&(g=gj(0,a.stream,a.codecs),d="encv");d=Ui(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=gj(0,a.stream,a.codecs),d="enca");a=Ui(d,hj(a),c,e)}d=a}a=Ui("stsd",ij,d);return b("stbl",a,Ui("stts",jj),Ui("stsc",kj),Ui("stsz",lj),Ui("stco",mj))}function fj(a){if(!a.bb&&!a.eb)return new Uint8Array([]);var b=a.eb;a=new Uint8Array([].concat(x(Zi(a.bb,4)),x(Zi(b,4))));return Ui("pasp",a)} +function hj(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(x(Zi(a.stream.audioSamplingRate||44100,2)),[0,0]))} +function gj(a,b,c){a=Ui;c=new Uint8Array([].concat(x(Zi(nj(c.split(".")[0]),4))));c=Ui("frma",c);var d="cenc";var e=b.drmInfos[0];e&&e.encryptionScheme&&(d=e.encryptionScheme);d=new Uint8Array([0,0,0,0].concat(x(Zi(nj(d),4)),[0,1,0,0]));d=Ui("schm",d);e=Ui;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);b=t(b.drmInfos);for(var g=b.next();!g.done;g=b.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=ej(h.value)}b=new Uint8Array([0,0,0,0,0, +0,1,8]);b=Ui("tenc",b,f);return a("sinf",c,d,e("schi",b))} +function oj(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Ui;var g=new Uint8Array([0,0,0,0].concat(x(Zi(c.data?c.data.Yb:0,4))));g=Ui("mfhd",g);var h;var k=c.data?c.data.Cb:[];var l=new Uint8Array(4+k.length);for(h=0;h>8*b&255);return c}function ej(a){for(var b=new Uint8Array(a.length/2),c=0;c>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c>8*m&255);a.set(new Uint8Array(l),h);a.set(k,h+4);h=t(g);for(k=h.next();!k.done;k=h.next())k=k.value,wj(a,k.start,k.size+4)}}return a} +function tj(a,b,c,d,e,f){var g=gj(new Ri([]),a,d.name),h=b.subarray(d.start,d.start+d.size);a=new Uint8Array(d.size+g.byteLength);a.set(h,0);Ob(a).setUint32(4,f);a.set(g,d.size);wj(a,0,a.byteLength);f=new Uint8Array(b.byteLength+a.byteLength);d=Rb().wf()?d.start:d.start+d.size;g=b.subarray(d);f.set(b.subarray(0,d));f.set(a,d);f.set(g,d+a.byteLength);b=t(e);for(e=b.next();!e.done;e=b.next())e=e.value,wj(f,e.start,e.size+a.byteLength);a=Ob(f,c.start);c=rh(c);b=a.getUint32(c);a.setUint32(c,b+1);return f} +function wj(a,b,c){a=Ob(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))} +function xj(a){function b(e){d.push({start:e.start,size:e.size});qh(e)}var c=Kb(a),d=[];(new lh).box("moov",b).box("trak",b).box("mdia",b).box("minf",b).box("stbl",b).box("stsd",function(e){d.push({start:e.start,size:e.size});for(var f=Ob(c,e.start),g=0;ga.end(0)-a.start(0)}function Fj(a){return!a||Ej(a)?null:a.length?a.end(a.length-1):null}function Gj(a,b){return!a||!a.length||Ej(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Hj(a,b){if(!a||!a.length||Ej(a))return 0;var c=0;a=t(Ij(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c} +function Jj(a,b,c){if(!a||!a.length||Ej(a))return null;a=Ij(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Ij(a){if(!a)return[];for(var b=[],c=0;ca[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Uj(a,b){return b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Vj(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127} -function Wj(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=Wb(Kb(a.data,1,c)),e=a.data[2+c],f=a.data.subarray(3+c).indexOf(0);if(-1===f)return null;var g=Wb(Kb(a.data,3+c,f)),h;"--\x3e"===d?h=Wb(Kb(a.data,4+c+f)):h=Lb(a.data.subarray(4+c+f));b.mimeType=d;b.pictureType=e;b.description=g;b.data=h;return b}if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null; +function Tj(){}function Uj(a,b){return b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Vj(a,b){return b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Wj(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127} +function Xj(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=Wb(Kb(a.data,1,c)),e=a.data[2+c],f=a.data.subarray(3+c).indexOf(0);if(-1===f)return null;var g=Wb(Kb(a.data,3+c,f)),h;"--\x3e"===d?h=Wb(Kb(a.data,4+c+f)):h=Lb(a.data.subarray(4+c+f));b.mimeType=d;b.pictureType=e;b.description=g;b.data=h;return b}if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null; d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Wb(Kb(a.data,1,d));a=Wb(Kb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Wb(Kb(a.data,1,d));a=Wb(Kb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=Wb(Kb(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"== c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=Lb(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=Wb(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=Wb(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Lb(a.data),b):null} -function Xj(a){for(var b=0,c=[];Tj(a,b);){var d=Vj(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10>6&1&&(d+=10),d+=10,d+=Vj(a,b+6),Uj(a,b+10)&&(d+=10),b+=d;return 0>6&1&&(b+=10);b+=10;for(d=b+d;b+10>6&1&&(d+=10),d+=10,d+=Wj(a,b+6),Vj(a,b+10)&&(d+=10),b+=d;return 0>>32-c;a.g-=c;0>>b))return a.h<<=b,a.g-=b,b;bk(a);return b+ek(a)}function fk(a){ck(a,1+ek(a))}function gk(a){var b=ek(a);return dk(a,b+1)-1}function hk(a){a=gk(a);return 1&a?1+a>>>1:-1*(a>>>1)}function ik(a){return 1===dk(a,1)}function jk(a){return dk(a,8)} -function kk(a,b){for(var c=8,d=8,e=0;ea.length)return this;for(var b=Math.max(0,nk(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.G=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.G:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,uf:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h< -k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0>>32-c;a.g-=c;0>>b))return a.h<<=b,a.g-=b,b;ck(a);return b+fk(a)}function gk(a){dk(a,1+fk(a))}function hk(a){var b=fk(a);return ek(a,b+1)-1}function ik(a){a=hk(a);return 1&a?1+a>>>1:-1*(a>>>1)}function jk(a){return 1===ek(a,1)}function kk(a){return ek(a,8)} +function lk(a,b){for(var c=8,d=8,e=0;ea.length)return this;for(var b=Math.max(0,ok(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.G=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.G:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,uf:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h< +k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0b.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.u&&(a.u=e);c.pts=pk(e,a.u);a.u=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.s&&(a.s=d),c.dts=pk(d, -a.s));a.s=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}p.Nl=function(a){Uc("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Fh(a,{qe:null,state:null})}; -p.Fh=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;"hvc"==this.m&&(e=2);var f=b.state||0,g=f,h=0,k=[],l=-1,m=0;-1==f&&(l=0,m="hvc"==this.m?a[0]>>1&63:a[0]&31,f=0,h=1);for(;hb.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.u&&(a.u=e);c.pts=qk(e,a.u);a.u=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.s&&(a.s=d),c.dts=c.pts!= +e?qk(d,a.s):d);a.s=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}p.Ol=function(a){Uc("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Gh(a,{qe:null,state:null})}; +p.Gh=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;"hvc"==this.m&&(e=2);var f=b.state||0,g=f,h=0,k=[],l=-1,m=0;-1==f&&(l=0,m="hvc"==this.m?a[0]>>1&63:a[0]&31,f=0,h=1);for(;h>1&63:a[h]&31,l=h,f=0):f=-1}else f=0;else f=3;else f=n?0:1}0<=l&&0<=f&&k.push({data:a.subarray(l+e,d),fullData:a.subarray(l,d),type:m,time:c,state:f});!k.length&&b.qe&&(c=k.length?k[k.length-1]:b.qe)&&(c.data=kc(c.data,a),c.fullData=kc(c.fullData,a));b.state=f;return k}; -p.getMetadata=function(){for(var a=[],b=u(this.l),c=b.next();!c.done;c=b.next())c=kc.apply(dc,x(c.value)),(c=ok(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Xj(c.data),dts:c.dts,pts:c.pts});return a}; -p.yb=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=u(this.i),c=b.next();!c.done;c=b.next()){var d=kc.apply(dc,x(c.value)),e=ok(this,d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=kc(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h}; -p.Wc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=u(this.j),d=c.next();!d.done;d=c.next()){var e=kc.apply(dc,x(d.value)),f=ok(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=kc(d.data,e),this.g.push(d))}if(a){c={qe:null,state:null};d=[];e=u(this.g);for(f=e.next();!f.done;f=e.next())f=f.value, -f.nalus=this.Fh(f,c),f.nalus.length&&(d.push(f),c.qe=f.nalus[f.nalus.length-1]);this.g=d}b&&(this.g=this.g.sort(function(g,h){var k=(g.pts||0)-(h.pts||0);return(g.dts||0)-(h.dts||0)||k}))}return a?this.g:(a=this.g,this.g=[],a)};p.getStartTime=function(a){if("audio"==a){a=null;var b=this.yb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Wc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};p.ae=function(){return{audio:this.B,video:this.m}}; -p.tf=function(){for(var a=[],b=u(this.Wc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};p.kl=function(){Uc("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.mh();return{height:a.height,width:a.width}};p.mh=function(){return"hvc"==this.m?qk(this):rk(this)};function sk(a){var b=a.Wc();return 1h?kk(c,16):kk(c,64))}}fk(c);g=gk(c);if(0===g)gk(c);else if(1===g)for(ck(c,1),fk(c),fk(c),g=gk(c),h=0;hy;y++)dk(d,2);for(y=0;yC;C++)G|=(D>>C&1)<<31-C;return G>>>0}(k);g=1==g?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+t;r&&(f+="."+r.toString(16).toUpperCase());q&&(f+="."+q.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase()); -c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=sk(a);return b}function pk(a,b){var c=1;for(a>b&&(c=-1);4294967296nk(a)?!1:!0}function nk(a){for(var b=Math.min(1E3,a.length-564),c=0;ca.start(0)?0:a.length?a.start(0):null):a=null;return a}function Kk(a,b){return a.l.size?b==rc?a.h.h:Ej(Jk(a,b)):null}function Lk(a,b,c){if(b==rc)return a=a.h,null==a.h||a.hh?lk(c,16):lk(c,64))}}gk(c);g=hk(c);if(0===g)hk(c);else if(1===g)for(dk(c,1),gk(c),gk(c),g=hk(c),h=0;hy;y++)ek(d,2);for(y=0;yC;C++)G|=(D>>C&1)<<31-C;return G>>>0}(k);g=1==g?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+u;r&&(f+="."+r.toString(16).toUpperCase());q&&(f+="."+q.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase()); +c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=tk(a);return b}function qk(a,b){var c=1;for(a>b&&(c=-1);4294967296ok(a)?!1:!0}function ok(a){for(var b=Math.min(1E3,a.length-564),c=0;ca.start(0)?0:a.length?a.start(0):null):a=null;return a}function Lk(a,b){return a.l.size?b==sc?a.h.h:Fj(Kk(a,b)):null}function Mk(a,b,c){if(b==sc)return a=a.h,null==a.h||a.hb?F(g,Ok(e,a,function(){return Uk(e,a,b,c)},null),5):g.A(0)):e.m?F(g,Ok(e,f.ba,function(){return Uk(e,f.ba,b,c)},null),0):g.A(0)})}; -function Vk(a,b){var c;return Q(function(d){return 1==d.g?(c=uc,b==c.Xa?a.h?F(d,a.h.remove(0,Infinity),0):d.return():F(d,Ok(a,b,function(){return Uk(a,b,0,a.i.duration)},null),4)):a.m?F(d,Ok(a,c.ba,function(){return Uk(a,c.ba,0,a.i.duration)},null),0):d.A(0)})}p.flush=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=uc,a==c.Xa?d.return():F(d,Ok(b,a,function(){b.g.currentTime-=.001;Gk(b,a)},null),2)):b.m?F(d,Ok(b,c.ba,function(){var e=c.ba;b.g.currentTime-=.001;Gk(b,e)},null),0):d.A(0)})}; -function Wk(a,b,c,d,e,f,g,h,k){var l,m,n;return Q(function(q){if(1==q.g){l=uc;if(b==l.Xa)return f||(a.h.u=c),tf(a.h,d,e),q.return();m=[];return F(q,Xk(a,b,g,h,k),2)}n=q.h;n||(m.push(Ok(a,b,function(){return Pk(a,b)},null)),a.m&&m.push(Ok(a,l.ba,function(){return Pk(a,l.ba)},null)));f||(m.push(Ok(a,b,function(){return Qk(a,b,c)},null)),a.m&&m.push(Ok(a,l.ba,function(){return Qk(a,l.ba,c)},null)));if(0!=d||Infinity!=e)m.push(Ok(a,b,function(){var r=a.l.get(b);r.appendWindowStart=0;r.appendWindowEnd= -e;r.appendWindowStart=d;Gk(a,b)},null)),a.m&&m.push(Ok(a,l.ba,function(){var r=l.ba,t=a.l.get(r);t.appendWindowStart=0;t.appendWindowEnd=e;t.appendWindowStart=d;Gk(a,r)},null));return m.length?F(q,Promise.all(m),0):q.A(0)})} -function Yk(a,b,c){var d,e;return Q(function(f){if(1==f.g){d=uc;if(b==d.Xa)return f.return();b==d.Ea&&(a.Ma=new Hg);if(!a.F||(e=Kk(a,b))&&.1>Math.abs(e-c))return f.return();Ok(a,b,function(){return Pk(a,b)},null);a.m&&Ok(a,d.ba,function(){return Pk(a,d.ba)},null);return F(f,Ok(a,b,function(){return Qk(a,b,c)},null),2)}return a.m?F(f,Ok(a,d.ba,function(){return Qk(a,d.ba,c)},null),0):f.A(0)})} -p.endOfStream=function(a){var b=this;return Q(function(c){return F(c,Zk(b,function(){Bk(b)||Ck(b)||(a?b.i.endOfStream(a):b.i.endOfStream())}),0)})};p.vb=function(a){var b=this;return Q(function(c){return F(c,Zk(b,function(){if(b.u.durationReductionEmitsUpdateEnd&&ac&&(c+=.001);var d=!0;"HLS"==a.P&&(d=Kk(a,b),d=!d||.15=b.s&&d&&!b.i)b.j&&b.j(b.g,e),b.i=!0,b.g=c.g.currentTime;b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Ij(c,b,a.h.gapDetectionThreshold),null==d||0==d&&!a.B||(e=c.start(d), -(f=a.h.gapPadding)&&(e=Math.ceil(100*(e+f))/100),e>=a.C.Ib()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.j&&(a.j=e),a.D++,a.u(new U("gapjumped")))))}}} -function sl(a){if(!a.h.stallEnabled)return null;var b=a.h.stallThreshold,c=a.h.stallSkip;return new vl(new wl(a.g),b,function(){var d;return Q(function(e){if(1==e.g)return d=Hj(a.g.buffered),d.length?c?(a.g.currentTime+=c,e.A(2)):F(e,a.g.play(),3):e.return();if(2!=e.g){if(!a.g)return e.return();a.g.pause();a.g.play()}a.G++;a.u(new U("stalldetected"));H(e)})})}function vl(a,b,c){this.h=a;this.m=ul(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.i=!1;this.s=b;this.j=c} -vl.prototype.release=function(){this.h&&this.h.release();this.j=this.h=null};function wl(a){var b=this;this.g=a;this.h=new Oc;this.i=!1;this.h.o(this.g,"audiofocuspaused",function(){b.i=!0});this.h.o(this.g,"audiofocusgranted",function(){b.i=!1});this.h.o(this.g,"audiofocuslost",function(){b.i=!0})} -function ul(a){if(a.g.paused||0==a.g.playbackRate||a.i||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=u(Hj(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(bc.end-.5)){b=!0;break a}b=!1}return b}wl.prototype.release=function(){this.h&&this.h.release();this.h=null};function xl(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=yl.value().get(b),c.qa(a,b,d))}var yl=new Qb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function zl(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.s=!1;this.h=new Oc;this.i=new Al(a);xl(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Bl(e,e.j())})}zl.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function Cl(a){return a.s?a.g.currentTime:a.j()} -function Dl(a,b){0Math.abs(a.g.currentTime-b)?Fl(a):(a.h.qa(a.g,"seeking",function(){Fl(a)}),El(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Fl(a){a.s=!0;a.h.o(a.g,"seeking",function(){return a.m()});a.u(a.g.currentTime)} -function Al(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new yf(function(){0>=b.i?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--)})}Al.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};function El(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.ya(.1)};function Gl(a){this.g=a;this.i=!1;this.h=null;this.j=new Oc}p=Gl.prototype;p.ready=function(){function a(){if(null==b.h||0==b.h&&Infinity!=b.g.duration)b.i=!0;else{var c=b.g.currentTime,d=null;if("number"===typeof b.h)d=b.h;else if(b.h instanceof Date){var e=Hl(b);null!==e&&(d=b.h.getTime()/1E3-e,d=Il(b,d))}null==d?b.i=!0:(0>d&&(d=Math.max(0,c+d)),c!=d?(b.j.qa(b.g,"seeking",function(){b.i=!0}),b.g.currentTime=d):b.i=!0)}}var b=this;xl(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){a()})}; -p.release=function(){this.j&&(this.j.release(),this.j=null);this.g=null};p.rg=function(a){this.h=this.i?this.h:a};p.Te=function(){var a=this.i?this.g.currentTime:this.h;a instanceof Date&&(a=a.getTime()/1E3-(Hl(this)||0),a=Il(this,a));return a||0};p.ri=function(){return 0};p.pi=function(){return 0};p.ij=function(){};p.Wi=function(){var a=Ej(this.g.buffered);return null!=a&&a>=this.g.duration-1};function Hl(a){return a.g.getStartDate&&(a=a.g.getStartDate().getTime(),!isNaN(a))?a/1E3:null} -function Il(a,b){a=a.g.seekable;0l-k&&(k=l-3);ha.g.getDuration()?a.g.bc():a.g.Ib():b instanceof Date?b=b.getTime()/1E3-(a.g.m||a.g.i):0>b&&(b=a.g.Ib()+b);return Nl(a,Ml(a,b))}p.ij=function(){this.j.Lf()};p.Wi=function(){if(this.g.T()){var a=this.g.Cc(),b=Ej(this.h.buffered);if(null!=b&&b>=a)return!0}return!1}; -function Nl(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function Kl(a,b){var c=a.l.rebufferingGoal,d=a.l.safeSeekOffset,e=a.g.bc(),f=a.g.Ib(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.ce(c),k=a.g.ce(d);c=a.g.ce(c+d);return b>=g?Nl(a,b):b>f?f-a.l.safeSeekEndOffset:b=h||Fj(a.h.buffered,b)?b:c}function Ml(a,b){var c=a.g.bc();if(ba?a:b};function Ol(a){this.g=a;this.m=null;this.i=0;this.s=!1}p=Ol.prototype;p.getNumReferences=function(){return this.g.length};p.getNumEvicted=function(){return this.i};p.release=function(){this.s||(this.g=[],this.m&&this.m.stop(),this.m=null)};p.Hl=function(){this.s=!0};p.Gb=function(a){for(var b=u(this.g),c=b.next();!c.done;c=b.next())a(c.value)};function bg(a){return a.g[0]||null} -p.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c=d.startTime&&aa||a>=this.g.length?null:this.g[a]};p.offset=function(a){if(!this.s)for(var b=u(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)}; +function Ok(a,b,c,d,e,f,g,h,k,l,m){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L;return Q(function(N){switch(N.g){case 1:n=uc;if(b!=n.gb){N.A(2);break}if("HLS"!=a.P){N.A(3);break}return F(N,a.Na,4);case 4:q=N.h,a.h.u=q;case 3:return F(N,tf(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.S()[0]:null),5);case 5:return N.return();case 2:if(l||!a.m){N.A(6);break}return F(N,Ok(a,n.ma,c,d,e,f,g,h,k,!0),7);case 7:return F(N,Ok(a,n.Ea,c,d,e, +f,g,h,k,!0),8);case 8:return N.return();case 6:if(!a.l.has(b))return N.return();r=a.l.get(b).timestampOffset;u=a.D.get(b);a.j.has(b)&&(u=a.j.get(b).getOriginalMimeType());if(d&&(w=Nk(a,b,c,d,e,u),v=w.timestamp,y=w.metadata,null!=v&&(null==a.U&&b==n.Ea&&(a.U=v,a.na=d.startTime,null!=a.R&&(z=0,a.na==a.ba&&(z=a.U-a.R),a.$.resolve(z))),null==a.R&&b==n.ma&&(a.R=v,a.ba=d.startTime,null!=a.U&&(A=0,a.na==a.ba&&(A=a.U-a.R),a.$.resolve(A))),B=v,D=cf,!a.G&&D.includes(a.D.get(b))&&(B=0),G=d.startTime-B,C=Math.abs(r- +G),(.001<=C||g||h)&&(!k||0b?F(g,Pk(e,a,function(){return Vk(e,a,b,c)},null),5):g.A(0)):e.m?F(g,Pk(e,f.ma,function(){return Vk(e,f.ma,b,c)},null),0):g.A(0)})}; +function Wk(a,b){var c;return Q(function(d){return 1==d.g?(c=uc,b==c.gb?a.h?F(d,a.h.remove(0,Infinity),0):d.return():F(d,Pk(a,b,function(){return Vk(a,b,0,a.i.duration)},null),4)):a.m?F(d,Pk(a,c.ma,function(){return Vk(a,c.ma,0,a.i.duration)},null),0):d.A(0)})}p.flush=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=uc,a==c.gb?d.return():F(d,Pk(b,a,function(){b.g.currentTime-=.001;Hk(b,a)},null),2)):b.m?F(d,Pk(b,c.ma,function(){var e=c.ma;b.g.currentTime-=.001;Hk(b,e)},null),0):d.A(0)})}; +function Xk(a,b,c,d,e,f,g,h,k){var l,m,n;return Q(function(q){if(1==q.g){l=uc;if(b==l.gb)return f||(a.h.u=c),uf(a.h,d,e),q.return();m=[];return F(q,Yk(a,b,g,h,k),2)}n=q.h;n||(m.push(Pk(a,b,function(){return Qk(a,b)},null)),a.m&&m.push(Pk(a,l.ma,function(){return Qk(a,l.ma)},null)));f||(m.push(Pk(a,b,function(){return Rk(a,b,c)},null)),a.m&&m.push(Pk(a,l.ma,function(){return Rk(a,l.ma,c)},null)));if(0!=d||Infinity!=e)m.push(Pk(a,b,function(){return Zk(a,b,d,e)},null)),a.m&&m.push(Pk(a,l.ma,function(){return Zk(a, +l.ma,d,e)},null));return m.length?F(q,Promise.all(m),0):q.A(0)})}function $k(a,b,c){var d,e;return Q(function(f){if(1==f.g){d=uc;if(b==d.gb)return f.return();b==d.Ea&&(a.Na=new Ig);if(!a.G||(e=Lk(a,b))&&.1>Math.abs(e-c))return f.return();Pk(a,b,function(){return Qk(a,b)},null);a.m&&Pk(a,d.ma,function(){return Qk(a,d.ma)},null);return F(f,Pk(a,b,function(){return Rk(a,b,c)},null),2)}return a.m?F(f,Pk(a,d.ma,function(){return Rk(a,d.ma,c)},null),0):f.A(0)})} +p.endOfStream=function(a){var b=this;return Q(function(c){return F(c,al(b,function(){Ck(b)||Dk(b)||(a?b.i.endOfStream(a):b.i.endOfStream())}),0)})};p.vb=function(a){var b=this;return Q(function(c){return F(c,al(b,function(){if(b.B.durationReductionEmitsUpdateEnd&&ac&&(c+=.001);var d=!0;"HLS"==a.P&&(d=Lk(a,b),d=!d||.15=b.s&&d&&!b.i)b.j&&b.j(b.g,e),b.i=!0,b.g=c.g.currentTime;b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Jj(c,b,a.h.gapDetectionThreshold),null==d||0==d&&!a.B||(e=c.start(d), +(f=a.h.gapPadding)&&(e=Math.ceil(100*(e+f))/100),e>=a.C.Jb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.j&&(a.j=e),a.D++,a.u(new U("gapjumped")))))}}} +function zl(a){if(!a.h.stallEnabled)return null;var b=a.h.stallThreshold,c=a.h.stallSkip;return new Cl(new Dl(a.g),b,function(){var d;return Q(function(e){if(1==e.g)return d=Ij(a.g.buffered),d.length?c?(a.g.currentTime+=c,e.A(2)):F(e,a.g.play(),3):e.return();if(2!=e.g){if(!a.g)return e.return();a.g.pause();a.g.play()}a.G++;a.u(new U("stalldetected"));I(e)})})}function Cl(a,b,c){this.h=a;this.m=Bl(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.i=!1;this.s=b;this.j=c} +Cl.prototype.release=function(){this.h&&this.h.release();this.j=this.h=null};function Dl(a){var b=this;this.g=a;this.h=new Oc;this.i=!1;this.h.o(this.g,"audiofocuspaused",function(){b.i=!0});this.h.o(this.g,"audiofocusgranted",function(){b.i=!1});this.h.o(this.g,"audiofocuslost",function(){b.i=!0})} +function Bl(a){if(a.g.paused||0==a.g.playbackRate||a.i||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Ij(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(bc.end-.5)){b=!0;break a}b=!1}return b}Dl.prototype.release=function(){this.h&&this.h.release();this.h=null};function El(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Fl.value().get(b),c.qa(a,b,d))}var Fl=new Qb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Gl(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.s=!1;this.h=new Oc;this.i=new Hl(a);El(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Il(e,e.j())})}Gl.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function Jl(a){return a.s?a.g.currentTime:a.j()} +function Kl(a,b){0Math.abs(a.g.currentTime-b)?Ml(a):(a.h.qa(a.g,"seeking",function(){Ml(a)}),Ll(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Ml(a){a.s=!0;a.h.o(a.g,"seeking",function(){return a.m()});a.u(a.g.currentTime)} +function Hl(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new zf(function(){0>=b.i?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--)})}Hl.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};function Ll(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.ya(.1)};function Nl(a){this.g=a;this.i=!1;this.h=null;this.j=new Oc}p=Nl.prototype;p.ready=function(){function a(){if(null==b.h||0==b.h&&Infinity!=b.g.duration)b.i=!0;else{var c=b.g.currentTime,d=null;if("number"===typeof b.h)d=b.h;else if(b.h instanceof Date){var e=Ol(b);null!==e&&(d=b.h.getTime()/1E3-e,d=Pl(b,d))}null==d?b.i=!0:(0>d&&(d=Math.max(0,c+d)),c!=d?(b.j.qa(b.g,"seeking",function(){b.i=!0}),b.g.currentTime=d):b.i=!0)}}var b=this;El(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){a()})}; +p.release=function(){this.j&&(this.j.release(),this.j=null);this.g=null};p.sg=function(a){this.h=this.i?this.h:a};p.Ue=function(){var a=this.i?this.g.currentTime:this.h;a instanceof Date&&(a=a.getTime()/1E3-(Ol(this)||0),a=Pl(this,a));return a||0};p.ri=function(){return 0};p.pi=function(){return 0};p.jj=function(){};p.Xi=function(){var a=Fj(this.g.buffered);return null!=a&&a>=this.g.duration-1};function Ol(a){return a.g.getStartDate&&(a=a.g.getStartDate().getTime(),!isNaN(a))?a/1E3:null} +function Pl(a,b){a=a.g.seekable;0l-k&&(k=l-3);ha.g.getDuration()?a.g.bc():a.g.Jb():b instanceof Date?b=b.getTime()/1E3-(a.g.m||a.g.i):0>b&&(b=a.g.Jb()+b);return Ul(a,Tl(a,b))}p.jj=function(){this.j.Mf()};p.Xi=function(){if(this.g.T()){var a=this.g.Hc(),b=Fj(this.h.buffered);if(null!=b&&b>=a)return!0}return!1}; +function Ul(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function Rl(a,b){var c=a.l.rebufferingGoal,d=a.l.safeSeekOffset,e=a.g.bc(),f=a.g.Jb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.ce(c),k=a.g.ce(d);c=a.g.ce(c+d);return b>=g?Ul(a,b):b>f?f-a.l.safeSeekEndOffset:b=h||Gj(a.h.buffered,b)?b:c}function Tl(a,b){var c=a.g.bc();if(ba?a:b};function Vl(a){this.g=a;this.m=null;this.i=0;this.s=!1}p=Vl.prototype;p.getNumReferences=function(){return this.g.length};p.getNumEvicted=function(){return this.i};p.release=function(){this.s||(this.g=[],this.m&&this.m.stop(),this.m=null)};p.Il=function(){this.s=!0};p.Hb=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};function cg(a){return a.g[0]||null} +p.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c=d.startTime&&aa||a>=this.g.length?null:this.g[a]};p.offset=function(a){if(!this.s)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)}; p.Ff=function(a){if(!this.s&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Ff(a);this.hb(b)};p.hb=function(a){if(!this.s){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}}; -p.vd=function(a,b,c){c=void 0===c?!1:c;if(!this.s){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new zj(a.startTime,b,a.D,a.startByte,a.endByte,a.ha,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.C,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b)}}; -p.hg=function(a,b){var c=this;this.s||(this.m&&this.m.stop(),this.m=new yf(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.ya(a))};Ol.prototype[Symbol.iterator]=function(){return this.ac(0)}; -Ol.prototype.ac=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&0=h.startTime&&a=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0=this.g);)this.g--,b=a.g[this.g]}; -S("shaka.media.SegmentIterator",Pl);Pl.prototype.resetToLastIndependent=Pl.prototype.Mh;Pl.prototype.next=Pl.prototype.next;Pl.prototype.current=Pl.prototype.current;Pl.prototype.currentPosition=Pl.prototype.kk;Pl.prototype.setReverse=Pl.prototype.Od;function Rl(){Ol.call(this,[]);this.h=[]}pa(Rl,Ol);p=Rl.prototype;p.clone=function(){var a=new Rl;a.h=this.h.slice();a.i=this.i;return a};p.release=function(){for(var a=u(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]}; -p.Gb=function(a){for(var b=u(this.h),c=b.next();!c.done;c=b.next())c.value.Gb(a)};function Sl(a,b){a=u(a.h);for(var c=a.next();!c.done;c=a.next())b(c.value)}p.find=function(a){for(var b=this.i,c=u(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};function Tl(a,b){a=u(a.h);for(var c=a.next();!c.done;c=a.next())if(c=c.value,null!=c.find(b))return c.hf();return-1} -p.get=function(a){for(var b=this.i,c=u(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};p.offset=function(){};p.Ff=function(){};p.hb=function(a){for(var b=u(this.h),c=b.next();!c.done;c=b.next())c.value.hb(a);for(;1=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)} -Yl.prototype.j=function(a){for(var b=u(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.Lg;a:{var e=c.ve;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.Cd;break a}}e=null}f=e&&!(d===e||d&&e&&d.bandwidth==e.bandwidth&&d.audioSamplingRate==e.audioSamplingRate&&d.codecs==e.codecs&&d.contentType==e.contentType&&d.frameRate==e.frameRate&&d.height==e.height&&d.mimeType==e.mimeType&&d.channelsCount==e.channelsCount&&d.pixelAspectRatio==e.pixelAspectRatio&&d.width==e.width); -g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&d.language!==e.language;d=e&&d&&e.roles&&d.roles&&!ud(d.roles,e.roles);(g||h||d)&&bm(this,a,e.contentType)&&(c.Lg=e,d=new U("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&bm(this,a,e.contentType)&&(c.Lg=e,JSON.stringify(e),c=new U("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}}; -function bm(a,b,c){return(a=a.h()[c])&&0=a[0].start&&b=d?!1:!0})}else b.ve=[]} -function cm(a){var b={bandwidth:a.bandwidth||0,audioSamplingRate:null,codecs:a.codecs,contentType:a.type,frameRate:null,height:null,mimeType:a.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:a.roles,language:null};"video"==a.type&&(b.frameRate=a.frameRate||null,b.height=a.height||null,b.pixelAspectRatio=a.pixelAspectRatio||null,b.width=a.width||null);"audio"==a.type&&(b.audioSamplingRate=a.audioSamplingRate,b.channelsCount=a.channelsCount,b.label=a.label||null,b.language= -a.language);return b};function dm(a){jb.call(this);this.h=new Map;this.i=a;this.g=null}pa(dm,jb);dm.prototype.release=function(){this.h.clear();this.g&&(this.g.stop(),this.g=null);jb.prototype.release.call(this)};function em(a,b){var c=b.schemeIdUri+"_"+b.id+"_"+(b.startTime.toFixed(1)+"_"+b.endTime.toFixed(1));a.h.has(c)||(a.h.set(c,b),b=new U("regionadd",new Map([["region",b]])),a.dispatchEvent(b),fm(a))} -function fm(a){a.g||(a.g=(new yf(function(){for(var b=a.i(),c=u(a.h),d=c.next();!d.done;d=c.next()){var e=u(d.value);d=e.next().value;e=e.next().value;e.endTimed.endTime&&om(this,d);b&&mm(this)}; -gm.prototype.Od=function(a){this.s=a;this.g&&this.g.Od(a)};function mm(a){for(var b=Array.from(a.h.keys()),c=u(a.j.keys()),d=c.next(),e={};!d.done;e={sh:void 0},d=c.next())e.sh=d.value,b.some(function(f){return function(g){return yj(g.ha,f.sh)}}(e))||om(a,e.sh)}function qm(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&om(a,d)}mm(a)}function rm(a,b){b&&b!==a.i&&(pm(a),a.i=b)}function om(a,b){var c=a.h;b instanceof xj&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()} -function km(a){this.g=a;this.se=this.bi=null}function lm(a,b,c){var d=new Uint8Array(0);a.se=a.g(b,c,function(e){return Q(function(f){if(1==f.g)return 0>3,31===K&&C.Oa()&&(K=32+((I&7)<<3)+((C.aa()&224)>>5)),E+="."+K));g.push(E);k=!0}).box("ac-3",e).box("ec-3",e).box("ac-4",e).box("Opus",e).box("fLaC",e).box("avc1",d).box("avc3",d).box("hev1",d).box("hvc1",d).box("dva1",d).box("dvav",d).box("dvh1",d).box("dvhe",d).box("vp09", -d).box("av01",d).box("avcC",function(C){var E=y||"";switch(y){case "dvav":E="avc3";break;case "dva1":E="avc1"}C=C.reader;C.skip(1);C=E+"."+Oi(C.aa())+Oi(C.aa())+Oi(C.aa());h.push(C);l=!0}).box("hvcC",function(C){var E=y||"";switch(y){case "dvh1":E="hvc1";break;case "dvhe":E="hev1"}var I=C.reader;I.skip(1);C=I.aa();var K=["","A","B","C"][C>>6],J=C&31,L=I.W(),M=(C&32)>>5?"H":"L";C=[I.aa(),I.aa(),I.aa(),I.aa(),I.aa(),I.aa()];I=I.aa();for(var O=0,N=0;32>N;N++){O|=L&1;if(31==N)break;O<<=1;L>>=1}E=E+("."+ -K+J)+("."+Oi(O,!0));E+="."+M+I;K="";for(J=C.length;J--;)if((M=C[J])||K)K="."+M.toString(16).toUpperCase()+K;E+=K;h.push(E);l=!0}).box("dvcC",function(C){var E=y||"";switch(y){case "hvc1":E="dvh1";break;case "hev1":E="dvhe";break;case "avc1":E="dva1";break;case "avc3":E="dvav";break;case "av01":E="dav1"}var I=C.reader;I.skip(2);C=I.aa();I=I.aa();h.push(E+"."+Pi(C>>1&127)+"."+Pi(C<<5&32|I>>3&31));l=!0}).box("dvvC",function(C){var E=y||"";switch(y){case "hvc1":E="dvh1";break;case "hev1":E="dvhe";break; -case "avc1":E="dva1";break;case "avc3":E="dvav";break;case "av01":E="dav1"}var I=C.reader;I.skip(2);C=I.aa();I=I.aa();h.push(E+"."+Pi(C>>1&127)+"."+Pi(C<<5&32|I>>3&31));l=!0}).V("vpcC",function(C){var E=y||"",I=C.reader;C=I.aa();var K=I.aa();I=I.aa()>>4&15;h.push(E+"."+Pi(C)+"."+Pi(K)+"."+Pi(I));l=!0}).box("av1C",function(C){var E=y||"";switch(y){case "dav1":E="av01"}var I=C.reader;I.skip(1);C=I.aa();I=I.aa();var K=C>>>5,J=(I&64)>>6;h.push(E+"."+K+"."+Pi(C&31)+(I>>>7?"H":"M")+"."+Pi(2===K&&J?(I&32)>> -5?12:10:J?10:8)+"."+((I&16)>>4)+"."+((I&8)>>3)+((I&4)>>2)+(I&3)+"."+Pi(1)+"."+Pi(1)+"."+Pi(1)+".0");l=!0}).box("enca",th).box("encv",sh).box("sinf",ph).box("frma",function(C){C=Mi(C.reader).codec;f(C)}).box("colr",function(C){h=h.map(function(K){if(K.startsWith("av01.")){var J=C.reader,L=J.Ua(),M=J.Xb(4);var O=String.fromCharCode(M[0]);O+=String.fromCharCode(M[1]);O+=String.fromCharCode(M[2]);O+=String.fromCharCode(M[3]);if("nclx"===O){M=J.Fa();O=J.Fa();var N=J.Fa(),P=J.aa()>>7,R=K.split(".");10== -R.length&&(R[6]=Pi(M),R[7]=Pi(O),R[8]=Pi(N),R[9]=String(P),K=R.join("."))}J.seek(L)}return K});var E=Ni(C.reader),I=E.colorGamut;w=E.Fe;v=I}).parse(a||b,!0);if(!g.length&&!h.length)return null;var z=k&&!l,A=new Map;if(l&&!c){c=new id("video/mp4");a&&c.init(a);try{c.Nf(b);for(var B=u(c.qg()),D=B.next();!D.done;D=B.next()){var G=D.value;A.set(G,G)}}catch(C){}c.Rd()}return{type:z?"audio":"video",mimeType:z?"audio/mp4":"video/mp4",codecs:um(g.concat(h)).join(", "),language:m,height:n,width:q,channelCount:r, -sampleRate:t,closedCaptions:A,Fe:w,colorGamut:v,frameRate:null}}function um(a){var b=new Set,c=[];a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=hf(d);b.has(e)||(c.push(d),b.add(e))}b=sc("audio",c);d=sc("video",c);a=sc(rc,c);d=vm(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b} -function vm(a){if(1>=a.length)return a;var b=a.find(function(c){return c.startsWith("dvav.")||c.startsWith("dva1.")||c.startsWith("dvh1.")||c.startsWith("dvhe.")||c.startsWith("dav1.")||c.startsWith("dvc1.")||c.startsWith("dvi1.")});return b?bd('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a} -function wm(a){var b=null;(new kh).box("moov",ph).box("trak",ph).box("mdia",ph).box("minf",ph).box("stbl",ph).V("stsd",rh).box("encv",sh).box("enca",th).box("sinf",ph).box("schi",ph).V("tenc",function(c){c=c.reader;c.aa();c.aa();c.aa();c.aa();b=jc(c.Xb(16))}).parse(a,!0);return b} -function xm(a,b,c){var d,e,f,g,h;return Q(function(k){if(1==k.g)return d=b,d.cryptoKey?k.A(2):F(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Kb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})};function ym(a,b,c,d,e){a=Wg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function zm(a,b){var c=this;this.g=b;this.j=a;this.h=null;this.J=new Map;this.D=1;this.B=this.l=null;this.O=0;this.i=new Map;this.I=!1;this.P=null;this.C=!1;this.m=new dh(function(){return Am(c)});this.L=Date.now()/1E3;this.s=new Map;this.N={projection:null,hfov:null};this.U=0;this.R=Infinity;this.F=null;this.K=[];this.u=new yf(function(){if(c.j&&c.g)if(c.j.presentationTimeline.T()){var d=c.j.presentationTimeline.bc(),e=c.j.presentationTimeline.Ib();1a.g.Ya(),d=u(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.Aa&&e.Aa.Od(c),e.ka&&e.ka.Od(c);d=u(a.s.values());for(e=d.next();!e.done;e=d.next())e.value.Od(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Jc&&(Mm(a,b,!1,0,!1),c.Jc=d);else if(b=c.Jc)c.Jc=null,Mm(a,b,!0,0,!1)} -function Nm(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.l=b;a.I&&(b.video&&Mm(a,b.video,c,d,e,f),b.audio&&Mm(a,b.audio,c,d,e,f))}function Om(a,b){Q(function(c){if(1==c.g)return a.F=null,a.B=b,a.I?b.segmentIndex?c.A(2):F(c,b.createSegmentIndex(),2):c.return();Mm(a,b,!0,0,!1);H(c)})}function Pm(a,b){for(var c=u(a.J.entries()),d=c.next();!d.done;d=c.next()){var e=u(d.value);d=e.next().value;e=e.next().value;d.includes(b.type)&&(e(),a.J.delete(d))}} -function Mm(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=rc?g&&(g.Jc&&(b.trickModeVideo?(g.Jc=b,b=b.trickModeVideo):g.Jc=null),g.stream!=b||e)&&(a.s.has(b)?g.ka=a.s.get(b):g.ka&&rm(g.ka,b),b.type==rc&&(e=af(b.mimeType,b.codecs),Ek(a.g.ia,e,a.j.sequenceMode,b.external)),!a.s.has(g.stream)&&g.stream.closeSegmentIndex&&(g.$a?(e="("+g.type+":"+g.stream.id+")",a.J.has(e)||a.J.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),e=g.stream.isAudioMuxedInVideo!=b.isAudioMuxedInVideo,g.stream= -b,g.Aa=null,g.yg=!!f,b.dependencyStream?g.$d=Im(a,b.dependencyStream):g.$d=null,e?Qm(a,!0,!1):(c?g.Pc?g.og=!0:g.$a?(g.Oc=!0,g.gf=d,g.og=!0):(Bm(g),Rm(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.$a||g.Cb||Jm(a,g,0),Sm(a,g).catch(function(h){if(a.g)a.g.onError(h)}))):Hm(a,b)} -function Sm(a,b){var c,d;return Q(function(e){if(1==e.g){if(!b.Lb)return e.return();c=b.stream;d=b.Lb;return c.segmentIndex?e.A(2):F(e,c.createSegmentIndex(),2)}if(b.Lb!=d||b.stream!=c)return e.return();var f=a.g.Vc();var g=Kk(a.g.ia,b.type),h=b.stream.segmentIndex.find(b.Ra?b.Ra.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.endByte?k.endByte-k.startByte:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ha)&&(h+=(k.endByte?k.endByte-k.startByte:null)|| -0),k=a.g.getBandwidthEstimate(),f=8*h/k<(g||0)-f-a.h.rebufferingGoal||b.Lb.h.g>h?!0:!1):f=!1;f&&b.Lb.abort();H(e)})} -p.hd=function(){if(this.g){for(var a=this.g.Vc(),b=u(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=this.g.ia;d==rc?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&aa.g.Ya()):null} -function Em(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d=u(a.j.variants),e=d.next(),f={};!e.done;f={Ob:void 0},e=d.next())if(f.Ob=e.value,f.Ob.audio)if(a.s.has(f.Ob.audio)){if(e=a.s.get(f.Ob.audio),qm(e,b),!(0=b||!c.some(function(h){return function(k){return xc(h.Ob.audio.language,k)}}(f))||!(e=Dm(a,f.Ob.audio))|| -(f.Ob.audio.segmentIndex||f.Ob.audio.createSegmentIndex(),a.s.set(f.Ob.audio,e))}p.updateDuration=function(){var a=ed(),b=this.j.presentationTimeline.getDuration();Infinity>b?(a&&(this.u&&this.u.stop(),al(this.g.ia)),this.g.ia.vb(b)):a?(this.u&&this.u.ya(.5),this.g.ia.vb(Infinity)):this.g.ia.vb(Math.pow(2,32))}; -function Wm(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:eh(a.m);if(b.$a||null==b.Cb||b.Pc)return k.return();b.Cb=null;if(!b.Oc){k.A(2);break}return F(k,Rm(a,b,b.og,b.gf),3);case 3:return k.return();case 2:Pm(a,b);if(b.stream.segmentIndex){k.A(4);break}c=b.stream;ta(k,5);return F(k,b.stream.createSegmentIndex(),7);case 7:wa(k,6);break;case 5:return d=xa(k),F(k,Xm(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.$a||b.Cb|| -Jm(a,b,0),k.return();case 4:ta(k,9);e=Ym(a,b);null!=e&&(Jm(a,b,e),b.fe=!1);wa(k,10);break;case 9:return f=xa(k),F(k,Xm(a,b,f),11);case 11:return k.return();case 10:g=Array.from(a.i.values());if(!a.I||!g.every(function(l){return l.endOfStream})){k.A(0);break}return F(k,a.g.ia.endOfStream(),13);case 13:eh(a.m),h=a.g.ia.getDuration(),0!=h&&hh&&k)return b.endOfStream=!0,"video"==b.type&&(a=a.i.get(rc))&&Zm(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(g>=f)return c/2;h=!b.Aa;k=$m(a,b,d,k);if(!k)return c;g=!1;h&&b.yg&&(g=!0,b.yg=!1);h=Infinity;var l=Array.from(a.i.values());l=u(l);for(var m=l.next();!m.done;m=l.next())m=m.value,Zm(m)||m.Aa&&!m.Aa.current()||(h=Math.min(h,m.Ra?m.Ra.endTime:d));if(e>=h+a.j.presentationTimeline.h)return c;if("keep"!==a.h.crossBoundaryStrategy&&an(a,b,k))return null;b.ka&&b.Aa&& -!a.s.has(b.stream)&&(b.ka.hb(k.startTime+.001),im(b.ka,k.startTime).catch(function(){}));bn(a,b,d,k,g).catch(function(){});b.$d&&cn(a,b.$d,d,f);return null} -function $m(a,b,c,d){if(b.Aa)return(c=b.Aa.current())&&b.Ra&&.001>Math.abs(b.Ra.startTime-c.startTime)&&(c=b.Aa.next().value),c;if(b.Ra||d)return c=b.Ra?b.Ra.endTime:d,a=0>a.g.Ya(),b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(c,!1,a)),b.Aa&&b.Aa.next().value;d=a.j.sequenceMode?0:a.h.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.Ya();var f=null;d&&(b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(e,!1,a)),f=b.Aa&&b.Aa.next().value);f||(b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(c, +p.yd=function(a,b,c){c=void 0===c?!1:c;if(!this.s){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new Aj(a.startTime,b,a.D,a.startByte,a.endByte,a.ea,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.C,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b)}}; +p.ig=function(a,b){var c=this;this.s||(this.m&&this.m.stop(),this.m=new zf(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.ya(a))};Vl.prototype[Symbol.iterator]=function(){return this.ac(0)}; +Vl.prototype.ac=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&0=h.startTime&&a=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0=this.g);)this.g--,b=a.g[this.g]}; +S("shaka.media.SegmentIterator",Wl);Wl.prototype.resetToLastIndependent=Wl.prototype.Nh;Wl.prototype.next=Wl.prototype.next;Wl.prototype.current=Wl.prototype.current;Wl.prototype.currentPosition=Wl.prototype.lk;Wl.prototype.setReverse=Wl.prototype.Pd;function Yl(){Vl.call(this,[]);this.h=[]}pa(Yl,Vl);p=Yl.prototype;p.clone=function(){var a=new Yl;a.h=this.h.slice();a.i=this.i;return a};p.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]}; +p.Hb=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Hb(a)};function Zl(a,b){a=t(a.h);for(var c=a.next();!c.done;c=a.next())b(c.value)}p.find=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};function $l(a,b){a=t(a.h);for(var c=a.next();!c.done;c=a.next())if(c=c.value,null!=c.find(b))return c.hf();return-1} +p.get=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};p.offset=function(){};p.Ff=function(){};p.hb=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.hb(a);for(;1=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)} +em.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.Mg;a:{var e=c.ve;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.Ed;break a}}e=null}f=e&&!(d===e||d&&e&&d.bandwidth==e.bandwidth&&d.audioSamplingRate==e.audioSamplingRate&&d.codecs==e.codecs&&d.contentType==e.contentType&&d.frameRate==e.frameRate&&d.height==e.height&&d.mimeType==e.mimeType&&d.channelsCount==e.channelsCount&&d.pixelAspectRatio==e.pixelAspectRatio&&d.width==e.width); +g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&d.language!==e.language;d=e&&d&&e.roles&&d.roles&&!ud(d.roles,e.roles);(g||h||d)&&im(this,a,e.contentType)&&(c.Mg=e,d=new U("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&im(this,a,e.contentType)&&(c.Mg=e,JSON.stringify(e),c=new U("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}}; +function im(a,b,c){return(a=a.h()[c])&&0=a[0].start&&b=d?!1:!0})}else b.ve=[]} +function jm(a){var b={bandwidth:a.bandwidth||0,audioSamplingRate:null,codecs:a.codecs,contentType:a.type,frameRate:null,height:null,mimeType:a.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:a.roles,language:null};"video"==a.type&&(b.frameRate=a.frameRate||null,b.height=a.height||null,b.pixelAspectRatio=a.pixelAspectRatio||null,b.width=a.width||null);"audio"==a.type&&(b.audioSamplingRate=a.audioSamplingRate,b.channelsCount=a.channelsCount,b.label=a.label||null,b.language= +a.language);return b};function km(a){jb.call(this);this.h=new Map;this.i=a;this.g=null}pa(km,jb);km.prototype.release=function(){this.h.clear();this.g&&(this.g.stop(),this.g=null);jb.prototype.release.call(this)};function lm(a,b){var c=b.schemeIdUri+"_"+b.id+"_"+(b.startTime.toFixed(1)+"_"+b.endTime.toFixed(1));a.h.has(c)||(a.h.set(c,b),b=new U("regionadd",new Map([["region",b]])),a.dispatchEvent(b),mm(a))} +function mm(a){a.g||(a.g=(new zf(function(){for(var b=a.i(),c=t(a.h),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;e.endTimed.endTime&&vm(this,d);b&&tm(this)}; +nm.prototype.Pd=function(a){this.s=a;this.g&&this.g.Pd(a)};function tm(a){for(var b=Array.from(a.h.keys()),c=t(a.j.keys()),d=c.next(),e={};!d.done;e={uh:void 0},d=c.next())e.uh=d.value,b.some(function(f){return function(g){return zj(g.ea,f.uh)}}(e))||vm(a,e.uh)}function xm(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&vm(a,d)}tm(a)}function ym(a,b){b&&b!==a.i&&(wm(a),a.i=b)}function vm(a,b){var c=a.h;b instanceof yj&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()} +function rm(a){this.g=a;this.se=this.ci=null}function sm(a,b,c){var d=new Uint8Array(0);a.se=a.g(b,c,function(e){return Q(function(f){if(1==f.g)return 0>3,31===K&&C.Oa()&&(K=32+((H&7)<<3)+((C.aa()&224)>>5)),E+="."+K));g.push(E);k=!0}).box("ac-3",e).box("ec-3",e).box("ac-4",e).box("Opus",e).box("fLaC",e).box("apac",e).box("avc1",d).box("avc3",d).box("hev1",d).box("hvc1",d).box("dva1", +d).box("dvav",d).box("dvh1",d).box("dvhe",d).box("vp09",d).box("av01",d).box("avcC",function(C){var E=y||"";switch(y){case "dvav":E="avc3";break;case "dva1":E="avc1"}C=C.reader;C.skip(1);C=E+"."+Pi(C.aa())+Pi(C.aa())+Pi(C.aa());h.push(C);l=!0}).box("hvcC",function(C){var E=y||"";switch(y){case "dvh1":E="hvc1";break;case "dvhe":E="hev1"}var H=C.reader;H.skip(1);C=H.aa();var K=["","A","B","C"][C>>6],J=C&31,L=H.W(),N=(C&32)>>5?"H":"L";C=[H.aa(),H.aa(),H.aa(),H.aa(),H.aa(),H.aa()];H=H.aa();for(var O= +0,M=0;32>M;M++){O|=L&1;if(31==M)break;O<<=1;L>>=1}E=E+("."+K+J)+("."+Pi(O,!0));E+="."+N+H;K="";for(J=C.length;J--;)if((N=C[J])||K)K="."+N.toString(16).toUpperCase()+K;E+=K;h.push(E);l=!0}).box("dvcC",function(C){var E=y||"";switch(y){case "hvc1":E="dvh1";break;case "hev1":E="dvhe";break;case "avc1":E="dva1";break;case "avc3":E="dvav";break;case "av01":E="dav1"}var H=C.reader;H.skip(2);C=H.aa();H=H.aa();h.push(E+"."+Qi(C>>1&127)+"."+Qi(C<<5&32|H>>3&31));l=!0}).box("dvvC",function(C){var E=y||"";switch(y){case "hvc1":E= +"dvh1";break;case "hev1":E="dvhe";break;case "avc1":E="dva1";break;case "avc3":E="dvav";break;case "av01":E="dav1"}var H=C.reader;H.skip(2);C=H.aa();H=H.aa();h.push(E+"."+Qi(C>>1&127)+"."+Qi(C<<5&32|H>>3&31));l=!0}).V("vpcC",function(C){var E=y||"",H=C.reader;C=H.aa();var K=H.aa();H=H.aa()>>4&15;h.push(E+"."+Qi(C)+"."+Qi(K)+"."+Qi(H));l=!0}).box("av1C",function(C){var E=y||"";switch(y){case "dav1":E="av01"}var H=C.reader;H.skip(1);C=H.aa();H=H.aa();var K=C>>>5,J=(H&64)>>6;h.push(E+"."+K+"."+Qi(C& +31)+(H>>>7?"H":"M")+"."+Qi(2===K&&J?(H&32)>>5?12:10:J?10:8)+"."+((H&16)>>4)+"."+((H&8)>>3)+((H&4)>>2)+(H&3)+"."+Qi(1)+"."+Qi(1)+"."+Qi(1)+".0");l=!0}).box("enca",uh).box("encv",th).box("sinf",qh).box("frma",function(C){C=Ni(C.reader).codec;f(C)}).box("colr",function(C){h=h.map(function(K){if(K.startsWith("av01.")){var J=C.reader,L=J.Ua(),N=J.Xb(4);var O=String.fromCharCode(N[0]);O+=String.fromCharCode(N[1]);O+=String.fromCharCode(N[2]);O+=String.fromCharCode(N[3]);if("nclx"===O){N=J.Fa();O=J.Fa(); +var M=J.Fa(),P=J.aa()>>7,R=K.split(".");10==R.length&&(R[6]=Qi(N),R[7]=Qi(O),R[8]=Qi(M),R[9]=String(P),K=R.join("."))}J.seek(L)}return K});var E=Oi(C.reader),H=E.colorGamut;w=E.Ge;v=H}).parse(a||b,!0,!0);if(!g.length&&!h.length)return null;var z=k&&!l,A=new Map;if(l&&!c){c=new id("video/mp4");a&&c.init(a);try{c.Of(b);for(var B=t(c.rg()),D=B.next();!D.done;D=B.next()){var G=D.value;A.set(G,G)}}catch(C){}c.Sd()}return{type:z?"audio":"video",mimeType:z?"audio/mp4":"video/mp4",codecs:Bm(g.concat(h)).join(", "), +language:m,height:n,width:q,channelCount:r,sampleRate:u,closedCaptions:A,Ge:w,colorGamut:v,frameRate:null}}function Bm(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=jf(d);b.has(e)||(c.push(d),b.add(e))}b=tc("audio",c);d=tc("video",c);a=tc(sc,c);d=Cm(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b} +function Cm(a){if(1>=a.length)return a;var b=a.find(function(c){return c.startsWith("dvav.")||c.startsWith("dva1.")||c.startsWith("dvh1.")||c.startsWith("dvhe.")||c.startsWith("dav1.")||c.startsWith("dvc1.")||c.startsWith("dvi1.")});return b?bd('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a} +function Dm(a){var b=null;(new lh).box("moov",qh).box("trak",qh).box("mdia",qh).box("minf",qh).box("stbl",qh).V("stsd",sh).box("encv",th).box("enca",uh).box("sinf",qh).box("schi",qh).V("tenc",function(c){c=c.reader;c.aa();c.aa();c.aa();c.aa();b=jc(c.Xb(16))}).parse(a,!0);return b} +function Em(a,b,c){var d,e,f,g,h;return Q(function(k){if(1==k.g)return d=b,d.cryptoKey?k.A(2):F(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Kb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})};function Fm(a,b,c,d,e){a=Xg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function Gm(a,b){var c=this;this.g=b;this.j=a;this.i=null;this.J=new Map;this.D=1;this.B=this.s=null;this.O=0;this.h=new Map;this.I=!1;this.P=null;this.C=!1;this.l=new eh(function(){return Hm(c)});this.L=Date.now()/1E3;this.m=new Map;this.N={projection:null,hfov:null};this.U=0;this.R=Infinity;this.F=null;this.K=[];this.u=new zf(function(){if(c.j&&c.g)if(c.j.presentationTimeline.T()){var d=c.j.presentationTimeline.bc(),e=c.j.presentationTimeline.Jb();1a.g.Xa(),d=t(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.Aa&&e.Aa.Pd(c),e.ia&&e.ia.Pd(c);d=t(a.m.values());for(e=d.next();!e.done;e=d.next())e.value.Pd(c);if(c=a.h.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Oc&&(Tm(a,b,!1,0,!1),c.Oc=d);else if(b=c.Oc)c.Oc=null,Tm(a,b,!0,0,!1)} +function Um(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.s=b;a.I&&(b.video&&Tm(a,b.video,c,d,e,f),b.audio&&Tm(a,b.audio,c,d,e,f))}function Vm(a,b){Q(function(c){if(1==c.g)return a.F=null,a.B=b,a.I?b.segmentIndex?c.A(2):F(c,b.createSegmentIndex(),2):c.return();Tm(a,b,!0,0,!1);I(c)})}function Wm(a){var b=a.h.get(sc);b&&Tm(a,b.stream,!0,0,!0)} +function Xm(a,b){for(var c=t(a.J.entries()),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;d.includes(b.type)&&(e(),a.J.delete(d))}} +function Tm(a,b,c,d,e,f){var g=a.h.get(b.type);g||b.type!=sc?g&&(g.Oc&&(b.trickModeVideo?(g.Oc=b,b=b.trickModeVideo):g.Oc=null),g.stream!=b||e)&&(a.m.has(b)?g.ia=a.m.get(b):g.ia&&ym(g.ia,b),b.type==sc&&(e=bf(b.mimeType,b.codecs),Fk(a.g.ha,e,a.j.sequenceMode,b.external)),!a.m.has(g.stream)&&g.stream.closeSegmentIndex&&(g.Za?(e="("+g.type+":"+g.stream.id+")",a.J.has(e)||a.J.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),e=g.stream.isAudioMuxedInVideo!=b.isAudioMuxedInVideo,g.stream= +b,g.Aa=null,g.zg=!!f,b.dependencyStream?g.$d=Pm(a,b.dependencyStream):g.$d=null,e&&(g.Bb=null,g.tc=null,g.sc=null,b.isAudioMuxedInVideo&&(b=null,"video"===g.type?b=a.h.get("audio"):"audio"===g.type&&(b=a.h.get("video")),b&&(Jm(b).catch(function(){}),b.Bb=null,b.tc=null,b.sc=null,Ym(a,b),Zm(a,b).catch(function(h){if(a.g)a.g.onError(h)})))),c?g.Vc?g.pg=!0:g.Za?(g.Tc=!0,g.gf=d,g.pg=!0):(Im(g),$m(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.Za||g.Db||Qm(a,g,0),Zm(a,g).catch(function(h){if(a.g)a.g.onError(h)})): +Om(a,b)} +function Zm(a,b){var c,d;return Q(function(e){if(1==e.g){if(!b.Mb)return e.return();c=b.stream;d=b.Mb;return c.segmentIndex?e.A(2):F(e,c.createSegmentIndex(),2)}if(b.Mb!=d||b.stream!=c)return e.return();var f=a.g.cd();var g=Lk(a.g.ha,b.type),h=b.stream.segmentIndex.find(b.Ra?b.Ra.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.endByte?k.endByte-k.startByte:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ea)&&(h+=(k.endByte?k.endByte-k.startByte:null)|| +0),k=a.g.getBandwidthEstimate(),f=8*h/k<(g||0)-f-a.i.rebufferingGoal||b.Mb.h.g>h?!0:!1):f=!1;f&&b.Mb.abort();I(e)})} +p.md=function(){if(this.g){for(var a=this.g.cd(),b=t(this.h.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.h.get(d);var e=this.g.ha;d==sc?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&aa.g.Xa()):null} +function Lm(a){for(var b=a.i.segmentPrefetchLimit,c=a.i.prefetchAudioLanguages,d=t(a.j.variants),e=d.next(),f={};!e.done;f={Pb:void 0},e=d.next())if(f.Pb=e.value,f.Pb.audio)if(a.m.has(f.Pb.audio)){if(e=a.m.get(f.Pb.audio),xm(e,b),!(0=b||!c.some(function(h){return function(k){return xc(h.Pb.audio.language,k)}}(f))||!(e=Km(a,f.Pb.audio))|| +(f.Pb.audio.segmentIndex||f.Pb.audio.createSegmentIndex(),a.m.set(f.Pb.audio,e))}p.updateDuration=function(){var a=ed(),b=this.j.presentationTimeline.getDuration();Infinity>b?(a&&(this.u&&this.u.stop(),cl(this.g.ha)),this.g.ha.vb(b)):a?(this.u&&this.u.ya(.5),this.g.ha.vb(Infinity)):this.g.ha.vb(Math.pow(2,32))}; +function dn(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:fh(a.l);if(b.Za||null==b.Db||b.Vc)return k.return();b.Db=null;if(!b.Tc){k.A(2);break}return F(k,$m(a,b,b.pg,b.gf),3);case 3:return k.return();case 2:Xm(a,b);if(b.stream.segmentIndex){k.A(4);break}c=b.stream;ta(k,5);return F(k,b.stream.createSegmentIndex(),7);case 7:wa(k,6);break;case 5:return d=xa(k),F(k,en(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Za||b.Db|| +Qm(a,b,0),k.return();case 4:ta(k,9);e=fn(a,b);null!=e&&(Qm(a,b,e),b.fe=!1);wa(k,10);break;case 9:return f=xa(k),F(k,en(a,b,f),11);case 11:return k.return();case 10:g=Array.from(a.h.values());if(!a.I||!g.every(function(l){return l.endOfStream})){k.A(0);break}return F(k,a.g.ha.endOfStream(),13);case 13:fh(a.l),h=a.g.ha.getDuration(),0!=h&&hh&&k)return b.endOfStream=!0,"video"==b.type&&(a=a.h.get(sc))&&gn(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(g>=f)return c/2;h=!b.Aa;k=hn(a,b,d,k);if(!k)return c;g=!1;h&&b.zg&&(g=!0,b.zg=!1);h=Infinity;var l=Array.from(a.h.values());l=t(l);for(var m=l.next();!m.done;m=l.next())m=m.value,gn(m)||m.Aa&&!m.Aa.current()||(h=Math.min(h,m.Ra?m.Ra.endTime:d));if(e>=h+a.j.presentationTimeline.h)return c;if("keep"!==a.i.crossBoundaryStrategy&&jn(a,b,k))return null;b.ia&&b.Aa&& +!a.m.has(b.stream)&&(b.ia.hb(k.startTime+.001),pm(b.ia,k.startTime).catch(function(){}));kn(a,b,d,k,g).catch(function(){});b.$d&&ln(a,b.$d,d,f);return null} +function hn(a,b,c,d){if(b.Aa)return(c=b.Aa.current())&&b.Ra&&.001>Math.abs(b.Ra.startTime-c.startTime)&&(c=b.Aa.next().value),c;if(b.Ra||d)return c=b.Ra?b.Ra.endTime:d,a=0>a.g.Xa(),b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(c,!1,a)),b.Aa&&b.Aa.next().value;d=a.j.sequenceMode?0:a.i.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.Xa();var f=null;d&&(b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(e,!1,a)),f=b.Aa&&b.Aa.next().value);f||(b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(c, !1,a)),f=b.Aa&&b.Aa.next().value);return f} -function bn(a,b,c,d,e){var f,g,h,k,l,m,n,q,r,t,w,v,y,z,A,B,D,G;return Q(function(C){switch(C.g){case 1:f=uc;g=b.stream;h=b.Aa;b.$a=!0;ta(C,2);if(2==d.Ec())throw new V(1,1,1011);return F(C,dn(a,b,d,e),4);case 4:eh(a.m);if(a.C)return C.return();k="video/mp4"==g.mimeType||"audio/mp4"==g.mimeType;l=window.ReadableStream;if((m=a.h.lowLatencyMode&&a.j.isLowLatency)&&l&&k&&("HLS"!=a.j.type||d.m))return r=new Uint8Array(0),w=t=!1,y=function(E){var I,K,J,L;return Q(function(M){switch(M.g){case 1:if(t)return M.return();w= -!0;eh(a.m);if(a.C)return M.return();ta(M,2);r=en(r,E);I=!1;K=0;(new kh).box("mdat",function(O){K=O.size+O.start;I=!0}).parse(r,!1,!0);if(!I){M.A(4);break}J=r.subarray(0,K);r=r.subarray(K);return F(M,fn(a,b,c,g,d,J,!0,e),5);case 5:b.ka&&b.Aa&&im(b.ka,d.startTime,!0);case 4:wa(M,0);break;case 2:v=L=xa(M),H(M)}})},F(C,gn(a,b,d,y),9);n=gn(a,b,d);return F(C,n,7);case 7:q=C.h;eh(a.m);if(a.C)return C.return();eh(a.m);return b.Oc?(b.$a=!1,Jm(a,b,0),C.return()):F(C,fn(a,b,c,g,d,q,!1,e),6);case 9:z=C.h;if(v)throw v; -if(w){C.A(10);break}t=!0;eh(a.m);return a.C?C.return():b.Oc?(b.$a=!1,Jm(a,b,0),C.return()):F(C,fn(a,b,c,g,d,z,!1,e),10);case 10:b.ka&&b.Aa&&im(b.ka,d.startTime,!0);case 6:eh(a.m);if(a.C)return C.return();b.Ra=d;h.next();b.$a=!1;b.Jh=!1;A=a.g.ia.Pb();B=A[b.type];gb(JSON.stringify(B));b.Oc||(D=null,b.type===f.Ea?D=a.i.get(f.ba):b.type===f.ba&&(D=a.i.get(f.Ea)),D&&D.type==f.ba?a.g.Lf(d,b.stream,D.stream.isAudioMuxedInVideo):a.g.Lf(d,b.stream,b.stream.codecs.includes(",")));Jm(a,b,0);wa(C,0);break;case 2:G= -xa(C);eh(a.m,G);if(a.C)return C.return();b.$a=!1;if(7001==G.code)b.$a=!1,Bm(b),Jm(a,b,0),C.A(0);else if(b.type==f.Xa&&a.h.ignoreTextStreamFailures)a.i.delete(f.Xa),C.A(0);else{if(3017==G.code)return F(C,hn(a,b,G),0);b.fe=!0;1==G.category&&b.ka&&om(b.ka,d);G.severity=2;return F(C,Xm(a,b,G),0)}}})} -function cn(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,t;return Q(function(w){switch(w.g){case 1:e=b.stream;for(h=(g=(f=e.segmentIndex)&&f.ac(c))&&g.next().value;h&&a.K.includes(h.startTime);)h=g&&g.next().value;if(!h){w.A(0);break}k=h.ha;if(!k||yj(k,b.Tb)){w.A(3);break}b.Tb=k;ta(w,4);return F(w,gn(a,b,k),6);case 6:l=w.h;var v=a.g.ia;v.L&&Zc(v.L,l,0,e);a.K=[];wa(w,3);break;case 4:throw m=xa(w),b.Tb=null,m;case 3:if(b.Ra&&b.Ra==h){w.A(0);break}b.Ra=h;ta(w,8);return F(w,gn(a,b,h),10);case 10:n=w.h;v=a.g.ia;v.L&& -Zc(v.L,n,0,e);a.K.push(h.startTime);wa(w,9);break;case 8:throw q=xa(w),b.Ra=null,q;case 9:r=Math.max.apply(Math,[0].concat(x(a.K)));t=a.g.Vc();if(t+d>r)return F(w,cn(a,b,h.startTime,d),0);w.A(0)}})}function en(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c} -function hn(a,b,c){var d,e,f,g,h,k;return Q(function(l){if(1==l.g){d=Array.from(a.i.values());if(e=d.some(function(m){return m!=b&&m.Jh}))return l.A(2);f=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;if(g=a.g.disableStream(b.stream,f))return l.return();if(a.h.avoidEvictionOnQuotaExceededError)return Jm(a,b,4),l.return();h=Math.round(100*a.D);if(20k&&(n=Math.max(h-f,l-k-g));return n<=k?q.return():F(q,a.g.ia.remove(b.type,g,g+n,e), -2)}if(4!=q.g)return eh(a.m),a.F?F(q,jn(a,a.F,c),4):q.A(0);eh(a.m);H(q)})}function Zm(a){return a&&a.type==rc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)} -function gn(a,b,c,d){var e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(e=c.cc())return l.return(e);f=null;if(b.ka){var m=b.ka,n=m.h;c instanceof xj&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.bi=d),f=m.se):f=null}f||(f=Vm(c,b.stream,d||null,a.h.retryParameters,a.g.uc));g=0;b.Aa&&(g=b.Aa.h);b.Lb=f;return F(l,f.promise,2);case 2:h=l.h;b.Lb=null;k=h.data;if(!c.aesKey){l.A(3);break}return F(l,xm(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})} -function Vm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a instanceof zj?a:void 0,h=g?1:0;a=ym(a.S(),a.startByte,a.endByte,d,c);a.contentType=b.type;return e.request(bh,a,{type:h,stream:b,segment:g,isPreload:f})} -function Rm(a,b,c,d){var e,f;return Q(function(g){if(1==g.g)return b.Oc=!1,b.og=!1,b.gf=0,b.Pc=!0,b.Ra=null,b.Aa=null,b.ka&&!a.s.has(b.stream)&&pm(b.ka),d?(e=a.g.Vc(),f=a.g.ia.getDuration(),F(g,a.g.ia.remove(b.type,e+d,f),3)):F(g,Vk(a.g.ia,b.type),4);if(3!=g.g)return eh(a.m),c?F(g,a.g.ia.flush(b.type),3):g.A(3);eh(a.m);b.Pc=!1;b.endOfStream=!1;b.$a||b.Cb||Jm(a,b,0);H(g)})} -function Jm(a,b,c){var d=b.type;if(d!=rc||a.i.has(d))b.Cb=(new xf(function(){var e;return Q(function(f){if(1==f.g)return ta(f,2),F(f,Wm(a,b),4);if(2!=f.g)return wa(f,0);e=xa(f);if(a.g)a.g.onError(e);H(f)})})).X(c)}function Bm(a){null!=a.Cb&&(a.Cb.stop(),a.Cb=null)}function Cm(a){return Q(function(b){return a.Lb?F(b,a.Lb.abort(),0):b.A(0)})} -function Xm(a,b,c){var d;return Q(function(e){if(1==e.g)return 3024==c.code?(b.$a=!1,Bm(b),Jm(a,b,0),e.return()):F(e,Gg(a.P),2);eh(a.m);if(1===c.category&&1003!=c.code){if(b.Jc)return Lm(a,!1),e.return();d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;c.handled=a.g.disableStream(b.stream,d);c.handled&&(c.severity=1)}if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.h.failureCallback(c);H(e)})} -function Qm(a,b,c){b=void 0===b?!1:b;c=void 0===c?!0:c;var d,e,f,g,h,k;return Q(function(l){if(1==l.g){d=Date.now()/1E3;e=a.h.minTimeBetweenRecoveries;if(!b){if(!a.h.allowMediaSourceRecoveries||d-a.Lb||1e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function pn(a,b){return a&&b} -function qn(a,b){function c(f){for(var g=u(Object.keys(f)),h=g.next();!h.done;h=g.next())if(h=h.value,!(f[h]instanceof HTMLElement))if(e(f[h])&&0===Object.keys(f[h]).length)delete f[h];else{var k=f[h];Array.isArray(k)&&0===k.length?delete f[h]:"function"==typeof f[h]?delete f[h]:e(f[h])&&(c(f[h]),0===Object.keys(f[h]).length&&delete f[h])}}function d(f,g){return Object.keys(f).reduce(function(h,k){var l=f[k];if(g.hasOwnProperty(k))if(l instanceof HTMLElement&&g[k]instanceof HTMLElement)l.isEqualNode(g[k])|| -(h[k]=l);else if(e(l)&&e(g[k])){if(l=d(l,g[k]),0"===c.substr(0,5)&&""===c.substr(-6)&&(c=c.slice(5,-6),a=!0);if(!a)try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Lb(hc(c)))}};rn.muxFairPlayRequest=function(a,b){vn(a,b)}; -rn.expressplayFairPlayRequest=function(a,b){if(2===a){var c=b.drmInfo;c&&xg(c.keySystem)&&vn(a,b)}};rn.conaxFairPlayRequest=function(a,b){vn(a,b)};rn.ezdrmFairPlayRequest=function(a,b){vn(a,b)};rn.verimatrixFairPlayRequest=function(a,b){2===a&&(a=b.drmInfo)&&xg(a.keySystem)&&(a=Kb(b.body),a=gc(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=$b("spc="+a))};rn.muxInitDataTransform=function(a,b,c){return un(a,b,c)}; -rn.expressplayInitDataTransform=function(a,b,c){return un(a,b,c)};rn.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Zb(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=Nb(d);for(var e=0,f=c.length;eb?!1:!0}).sort(function(c,d){return c.audio||d.audio?c.audio?d.audio?(d.audio.channelsCount||0)-(c.audio.channelsCount||0):1:-1:0})}function An(a,b){if("AUTO"==b){var c=a.some(function(d){return d.video&&d.video.hdr&&"HLG"==d.video.hdr?!0:!1});b=Gn(c)}return a.filter(function(d){return d.video&&d.video.hdr&&d.video.hdr!=b?!1:!0})} -function zn(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function En(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})}function Fn(a,b){return a.filter(function(c){return c.audio&&c.audio.codecs!=b?!1:!0})};function Hn(){} -function In(){var a=Infinity,b=Rb();navigator.connection&&navigator.connection.saveData&&(a=360);var c={retryParameters:Fg(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(h,k,l){"apple"===window.shakaMediaKeysPolyfill&&"skd"==k&&(k=l.serverCertificate,l=sn(h),h=tn(h,l,k));return h},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1, -minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},d="reload",e=!1;dd()&&b.ld()&&(d="smooth",e=!0);e={retryParameters:Fg(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1, +function kn(a,b,c,d,e){var f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G;return Q(function(C){switch(C.g){case 1:f=uc;g=b.stream;h=b.Aa;b.Za=!0;ta(C,2);if(2==d.Jc())throw new V(1,1,1011);return F(C,mn(a,b,d,e),4);case 4:fh(a.l);if(a.C)return C.return();k="video/mp4"==g.mimeType||"audio/mp4"==g.mimeType;l=window.ReadableStream;if((m=a.i.lowLatencyMode&&a.j.isLowLatency)&&l&&k&&("HLS"!=a.j.type||d.m))return r=new Uint8Array(0),w=u=!1,y=function(E){var H,K,J,L;return Q(function(N){switch(N.g){case 1:if(u)return N.return();w= +!0;fh(a.l);if(a.C)return N.return();ta(N,2);r=kc(r,E);H=!1;K=0;(new lh).box("mdat",function(O){K=O.size+O.start;H=!0}).parse(r,!1,!0);if(!H){N.A(4);break}J=r.subarray(0,K);r=r.subarray(K);return F(N,nn(a,b,c,g,d,J,!0,e),5);case 5:b.ia&&b.Aa&&pm(b.ia,d.startTime,!0);case 4:wa(N,0);break;case 2:v=L=xa(N),I(N)}})},F(C,on(a,b,d,y),9);n=on(a,b,d);return F(C,n,7);case 7:q=C.h;fh(a.l);if(a.C)return C.return();fh(a.l);return b.Tc?(b.Za=!1,Qm(a,b,0),C.return()):F(C,nn(a,b,c,g,d,q,!1,e),6);case 9:z=C.h;if(v)throw v; +if(w){C.A(10);break}u=!0;fh(a.l);return a.C?C.return():b.Tc?(b.Za=!1,Qm(a,b,0),C.return()):F(C,nn(a,b,c,g,d,z,!1,e),10);case 10:b.ia&&b.Aa&&pm(b.ia,d.startTime,!0);case 6:fh(a.l);if(a.C)return C.return();b.Ra=d;h.next();b.Za=!1;b.Kh=!1;A=a.g.ha.Qb();B=A[b.type];gb(JSON.stringify(B));b.Tc||(D=null,b.type===f.Ea?D=a.h.get(f.ma):b.type===f.ma&&(D=a.h.get(f.Ea)),D&&D.type==f.ma?a.g.Mf(d,b.stream,D.stream.isAudioMuxedInVideo):a.g.Mf(d,b.stream,b.stream.codecs.includes(",")));Qm(a,b,0);wa(C,0);break;case 2:G= +xa(C);fh(a.l,G);if(a.C)return C.return();b.Za=!1;if(7001==G.code)b.Za=!1,Im(b),Qm(a,b,0),C.A(0);else if(b.type==f.gb&&a.i.ignoreTextStreamFailures)a.h.delete(f.gb),C.A(0);else{if(3017==G.code)return F(C,pn(a,b,G),0);b.fe=!0;1==G.category&&b.ia&&vm(b.ia,d);G.severity=2;return F(C,en(a,b,G),0)}}})} +function ln(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u;return Q(function(w){switch(w.g){case 1:e=b.stream;for(h=(g=(f=e.segmentIndex)&&f.ac(c))&&g.next().value;h&&a.K.includes(h.startTime);)h=g&&g.next().value;if(!h){w.A(0);break}k=h.ea;if(!k||zj(k,b.Bb)){w.A(3);break}b.Bb=k;ta(w,4);return F(w,on(a,b,k),6);case 6:l=w.h;var v=a.g.ha;v.L&&Zc(v.L,l,0,e);a.K=[];wa(w,3);break;case 4:throw m=xa(w),b.Bb=null,m;case 3:if(b.Ra&&b.Ra==h){w.A(0);break}b.Ra=h;ta(w,8);return F(w,on(a,b,h),10);case 10:n=w.h;v=a.g.ha;v.L&& +Zc(v.L,n,0,e);a.K.push(h.startTime);wa(w,9);break;case 8:throw q=xa(w),b.Ra=null,q;case 9:r=Math.max.apply(Math,[0].concat(x(a.K)));u=a.g.cd();if(u+d>r)return F(w,ln(a,b,h.startTime,d),0);w.A(0)}})} +function pn(a,b,c){var d,e,f,g,h,k;return Q(function(l){if(1==l.g){d=Array.from(a.h.values());if(e=d.some(function(m){return m!=b&&m.Kh}))return l.A(2);f=0===a.i.maxDisabledTime&&1011==c.code?1:a.i.maxDisabledTime;if(g=a.g.disableStream(b.stream,f))return l.return();if(a.i.avoidEvictionOnQuotaExceededError)return Qm(a,b,4),l.return();h=Math.round(100*a.D);if(20k&&(n=Math.max(h-f,l-k-g));return n<=k?q.return():F(q,a.g.ha.remove(b.type,g,g+n,e), +2)}if(4!=q.g)return fh(a.l),a.F?F(q,qn(a,a.F,c),4):q.A(0);fh(a.l);I(q)})}function gn(a){return a&&a.type==sc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)} +function on(a,b,c,d){var e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(e=c.cc())return l.return(e);f=null;if(b.ia){var m=b.ia,n=m.h;c instanceof yj&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.ci=d),f=m.se):f=null}f||(f=cn(c,b.stream,d||null,a.i.retryParameters,a.g.xc));g=0;b.Aa&&(g=b.Aa.h);b.Mb=f;return F(l,f.promise,2);case 2:h=l.h;b.Mb=null;k=h.data;if(!c.aesKey){l.A(3);break}return F(l,Em(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})} +function cn(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a instanceof Aj?a:void 0,h=g?1:0;a=Fm(a.S(),a.startByte,a.endByte,d,c);a.contentType=b.type;return e.request(ch,a,{type:h,stream:b,segment:g,isPreload:f})} +function $m(a,b,c,d){var e,f;return Q(function(g){if(1==g.g)return b.Tc=!1,b.pg=!1,b.gf=0,b.Vc=!0,b.Ra=null,b.Aa=null,b.ia&&!a.m.has(b.stream)&&wm(b.ia),d?(e=a.g.cd(),f=a.g.ha.getDuration(),F(g,a.g.ha.remove(b.type,e+d,f),3)):F(g,Wk(a.g.ha,b.type),4);if(3!=g.g)return fh(a.l),c?F(g,a.g.ha.flush(b.type),3):g.A(3);fh(a.l);b.Vc=!1;b.endOfStream=!1;b.Za||b.Db||Qm(a,b,0);I(g)})} +function Qm(a,b,c){var d=b.type;if(d!=sc||a.h.has(d))b.Db=(new yf(function(){var e;return Q(function(f){if(1==f.g)return ta(f,2),F(f,dn(a,b),4);if(2!=f.g)return wa(f,0);e=xa(f);if(a.g)a.g.onError(e);I(f)})})).X(c)}function Im(a){null!=a.Db&&(a.Db.stop(),a.Db=null)}function Jm(a){return Q(function(b){return a.Mb?F(b,a.Mb.abort(),0):b.A(0)})} +function en(a,b,c){var d;return Q(function(e){if(1==e.g)return 3024==c.code?(b.Za=!1,Im(b),Qm(a,b,0),e.return()):F(e,Hg(a.P),2);fh(a.l);if(1===c.category&&1003!=c.code){if(b.Oc)return Sm(a,!1),e.return();d=0===a.i.maxDisabledTime&&1011==c.code?1:a.i.maxDisabledTime;c.handled=a.g.disableStream(b.stream,d);c.handled&&(c.severity=1)}if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.i.failureCallback(c);I(e)})} +function tn(a,b){b=void 0===b?!1:b;var c=void 0===c?!0:c;var d,e,f,g,h;return Q(function(k){if(1==k.g){d=Date.now()/1E3;e=a.i.minTimeBetweenRecoveries;if(!b){if(!a.i.allowMediaSourceRecoveries||d-a.Lb||1e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function xn(a,b){return a&&b} +function yn(a,b){function c(f){for(var g=t(Object.keys(f)),h=g.next();!h.done;h=g.next())if(h=h.value,!(f[h]instanceof HTMLElement))if(e(f[h])&&0===Object.keys(f[h]).length)delete f[h];else{var k=f[h];Array.isArray(k)&&0===k.length?delete f[h]:"function"==typeof f[h]?delete f[h]:e(f[h])&&(c(f[h]),0===Object.keys(f[h]).length&&delete f[h])}}function d(f,g){return Object.keys(f).reduce(function(h,k){var l=f[k];if(g.hasOwnProperty(k))if(l instanceof HTMLElement&&g[k]instanceof HTMLElement)l.isEqualNode(g[k])|| +(h[k]=l);else if(e(l)&&e(g[k])){if(l=d(l,g[k]),0"===c.substr(0,5)&&""===c.substr(-6)&&(c=c.slice(5,-6),a=!0);if(!a)try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Lb(hc(c)))}};zn.muxFairPlayRequest=function(a,b){Dn(a,b)}; +zn.expressplayFairPlayRequest=function(a,b){if(2===a){var c=b.drmInfo;c&&yg(c.keySystem)&&Dn(a,b)}};zn.conaxFairPlayRequest=function(a,b){Dn(a,b)};zn.ezdrmFairPlayRequest=function(a,b){Dn(a,b)};zn.verimatrixFairPlayRequest=function(a,b){2===a&&(a=b.drmInfo)&&yg(a.keySystem)&&(a=Kb(b.body),a=gc(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=$b("spc="+a))};zn.muxInitDataTransform=function(a,b,c){return Cn(a,b,c)}; +zn.expressplayInitDataTransform=function(a,b,c){return Cn(a,b,c)};zn.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Zb(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=Nb(d);for(var e=0,f=c.length;eb?!1:!0}).sort(function(c,d){return c.audio||d.audio?c.audio?d.audio?(d.audio.channelsCount||0)-(c.audio.channelsCount||0):1:-1:0})}function In(a,b){if("AUTO"==b){var c=a.some(function(d){return d.video&&d.video.hdr&&"HLG"==d.video.hdr?!0:!1});b=On(c)}return a.filter(function(d){return d.video&&d.video.hdr&&d.video.hdr!=b?!1:!0})} +function Hn(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function Mn(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})}function Nn(a,b){return a.filter(function(c){return c.audio&&c.audio.codecs!=b?!1:!0})};function Pn(){} +function Qn(){var a=Infinity,b=Rb();navigator.connection&&navigator.connection.saveData&&(a=360);var c={retryParameters:Gg(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(h,k,l){"apple"===window.shakaMediaKeysPolyfill&&"skd"==k&&(k=l.serverCertificate,l=An(h),h=Bn(h,l,k));return h},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1, +minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},d="reload",e=!1;dd()&&b.pd()&&(d="smooth",e=!0);e={retryParameters:Gg(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1, updatePeriod:-1,ignoreDrmInfo:!1,dash:{clockSyncUri:"",disableXlinkProcessing:!0,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready", -"urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:Jn,manifestPreprocessorTXml:Kn,sequenceMode:!1,multiTypeVariantsAllowed:e,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1, -ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:b.kd(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:Jn,manifestPreprocessorTXml:Kn,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}}; -var f={trackSelectionCallback:function(h){return Q(function(k){return k.return(h)})},downloadSizeCallback:function(h){var k;return Q(function(l){if(1==l.g)return navigator.storage&&navigator.storage.estimate?F(l,navigator.storage.estimate(),3):l.return(!0);k=l.h;return l.return(k.usage+h<.95*k.quota)})},progressCallback:function(h,k){return pn([h,k])},usePersistentLicense:!0,numberOfParallelDownloads:5},g={drm:c,manifest:e,streaming:{retryParameters:Fg(),failureCallback:function(h){return pn([h])}, +"urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:Rn,manifestPreprocessorTXml:Sn,sequenceMode:!1,multiTypeVariantsAllowed:e,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1, +ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:b.od(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:Rn,manifestPreprocessorTXml:Sn,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}}; +var f={trackSelectionCallback:function(h){return Q(function(k){return k.return(h)})},downloadSizeCallback:function(h){var k;return Q(function(l){if(1==l.g)return navigator.storage&&navigator.storage.estimate?F(l,navigator.storage.estimate(),3):l.return(!0);k=l.h;return l.return(k.usage+h<.95*k.quota)})},progressCallback:function(h,k){return xn([h,k])},usePersistentLicense:!0,numberOfParallelDownloads:5},g={drm:c,manifest:e,streaming:{retryParameters:Gg(),failureCallback:function(h){return xn([h])}, rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:0,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,safeSeekEndOffset:0,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,preferNativeDash:!1,preferNativeHls:!1,updateIntervalSeconds:1,observeQualityChanges:!1,maxDisabledTime:30,segmentPrefetchLimit:1, prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:{enabled:!1,targetLatency:.5,targetLatencyTolerance:.5,maxPlaybackRate:1.1,minPlaybackRate:.95,panicMode:!1,panicThreshold:60,dynamicTargetLatency:{enabled:!1,stabilityThreshold:60,rebufferIncrement:.5,maxAttempts:10,maxLatency:4,minLatency:1}},allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5, -preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:!1,dontChooseCodecs:!1,shouldFixTimestampOffset:!1,avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep",returnToEndOfLiveWindowWhenOutside:!1},networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16E3},mediaSource:{codecSwitchingStrategy:d,addExtraFeaturesToSourceBuffer:function(h){return pn([h],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(h,k){return pn([h,k])},dispatchAllEmsgBoxes:!1, -useSourceElements:!0,durationReductionEmitsUpdateEnd:!0},offline:f,abrFactory:function(){return new mg},adaptationSetCriteriaFactory:function(){return new (Function.prototype.bind.apply(wn,[null].concat(x(Ja.apply(0,arguments)))))},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity, +preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:!1,dontChooseCodecs:!1,shouldFixTimestampOffset:!1,avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep",returnToEndOfLiveWindowWhenOutside:!1},networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16E3},mediaSource:{codecSwitchingStrategy:d,addExtraFeaturesToSourceBuffer:function(h){return xn([h],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(h,k){return xn([h,k])},dispatchAllEmsgBoxes:!1, +useSourceElements:!0,durationReductionEmitsUpdateEnd:!0},offline:f,abrFactory:function(){return new ng},adaptationSetCriteriaFactory:function(){return new (Function.prototype.bind.apply(En,[null].concat(x(Ka.apply(0,arguments)))))},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity, minBandwidth:0,maxBandwidth:Infinity,minChannelsCount:0,maxChannelsCount:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:20,minTimeToSwitch:0,preferNetworkInformationBandwidth:!1,removeLatencyFromFirstPacketTime:!0},autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"", preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferredTextFormats:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity,minChannelsCount:0,maxChannelsCount:Infinity},playRangeStart:0,playRangeEnd:Infinity, textDisplayer:{captionsUpdatePeriod:.25,fontScaleFactor:1},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[],version:1},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1,poster:!0},ads:{customPlayheadTracker:!1,skipPlayDetection:!1,supportsMultipleMediaElements:!0,disableHLSInterstitial:!1,disableDASHInterstitial:!1, -allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0},ignoreHardwareResolution:!1,queue:{preloadNextUrlWindow:30,repeatMode:0}};f.trackSelectionCallback=function(h){return Q(function(k){return k.return(Ln(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};return b.ab(g)} -function Mn(){return{streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}}} -function Nn(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioRobustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return nn(a,b,c||In(),d,"")} -function Ln(a,b,c){var d=c;"AUTO"==d&&(c=a.some(function(h){return h.hdr&&"HLG"==h.hdr?!0:!1}),d=Gn(c));var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=Gc(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return yc(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height- -h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=u(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=rc&&"image"!=c.type||b.push(c);return b}function Jn(a){return pn([a],a)}function Kn(a){return pn([a],a)}S("shaka.util.PlayerConfiguration",Hn);Hn.mergeConfigObjects=Nn;Hn.createDefaultForLL=Mn;Hn.createDefault=In;function On(){this.g=null;this.h=[]}function Pn(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=u(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Qn(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=u(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Rn(){this.i=this.h=null;this.g=[]}function Sn(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Tn(){this.C=this.U=NaN;this.l="";this.j=this.aj=this.u=this.B=this.J=this.D=this.s=this.m=this.I=this.F=this.i=this.P=this.R=this.L=this.N=this.O=NaN;this.K=0;this.G=this.H=NaN;this.g=new On;this.h=new Rn}function Un(a,b,c){a.O=b;a.N=c}function Vn(a,b,c){a.U=b;a.C=c}function Wn(a,b){a.i=isNaN(a.i)?b:Math.max(a.i,b)}function Xn(a,b){a.j=isNaN(a.j)?b:a.j+b} -function Yn(a){var b=a.U,c=a.C,d=a.l,e=a.B,f=a.N,g=a.O,h=a.L,k=a.R,l=a.P,m=a.u,n=a.i,q=a.F,r=a.I,t=a.m,w=Pn(a.g,"playing"),v=Pn(a.g,"paused"),y=Pn(a.g,"buffering"),z=a.s,A=a.D,B=a.J,D=a.aj,G=a.j,C=a.K,E=a.H,I=a.G,K=Qn(a.g),J=[];a=u(a.h.g);for(var L=a.next();!L.done;L=a.next())L=L.value,J.push({timestamp:L.timestamp,id:L.id,type:L.type,fromAdaptation:L.fromAdaptation,bandwidth:L.bandwidth});return{width:b,height:c,currentCodecs:d,streamBandwidth:e,decodedFrames:f,droppedFrames:g,corruptedFrames:h, -stallsDetected:k,gapsJumped:l,estimatedBandwidth:m,completionPercent:n,loadLatency:q,manifestTimeSeconds:r,drmTimeSeconds:t,playTime:w,pauseTime:v,bufferingTime:y,licenseTime:z,liveLatency:A,maxSegmentDuration:B,manifestSizeBytes:D,bytesDownloaded:G,nonFatalErrorCount:C,manifestPeriodCount:E,manifestGapCount:I,stateHistory:K,switchHistory:J}};function Zn(a,b,c,d){jb.call(this);this.N=a;this.U=b;this.Ka=d.networkingEngine;this.m=c;this.B=null;this.Ha=0;this.Za=d.sd;this.F=d.El;this.eb=d.Fl;this.g=d.config;this.l=this.G=this.h=null;this.oa=!1;this.H=d.Ql;this.ra=!1;this.i=null;this.ea=!1;this.j=this.D=null;this.Z=!1;this.L=new Map;this.sa=!1;this.Ma=d.Pl;this.Y=new Tn;this.na=new Hg;this.u=new Hg;this.O=null;this.s=!1;this.$=d.dk;this.R=this.J=null;this.Ta=d.ck;this.P=!1;this.K=[];this.I=[];this.C=!0}pa(Zn,jb); -function $n(a,b,c){(a=b?a.I:a.K)?a.push(c):c()}function ao(a){if(a.I)for(var b=u(a.I),c=b.next();!c.done;c=b.next())c=c.value,c();a.I=null}function bo(a,b){a.O=b;a.P=!0;if(a.K){b=u(a.K);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.K=null}p=Zn.prototype;p.getStartTime=function(){return this.m};p.xd=function(){return this.N};p.hh=function(){return this.h};function co(a){a.Z=!0;return a.j}function eo(a){a.ra=!0;return a.H}p.getStats=function(){return this.Y}; -function fo(a){a.ea=!0;return a.i}p.Tk=function(){return this.J?Zf(this.J):null};p.Sk=function(){return this.R?$f(this.R):null};function go(a){a.sa=!0;return a.L} -p.start=function(){var a=this;(function(){var b;return Q(function(c){switch(c.g){case 1:return F(c,Promise.resolve(),2);case 2:return ta(c,3),F(c,ho(a),5);case 5:io(a);if("webkit"===window.shakaMediaKeysPolyfill){c.A(6);break}return F(c,jo(a),7);case 7:io(a);case 6:return F(c,ko(a),8);case 8:io(a);if(!a.$||!a.i){c.A(9);break}return F(c,ei(a.i),10);case 10:io(a);case 9:a.u.resolve();wa(c,0);break;case 3:b=xa(c),b instanceof V&&(7001==b.code||7003==b.code)||a.u.reject(b),H(c)}})})()}; -p.dispatchEvent=function(a){return this.O?this.O.dispatchEvent(a):jb.prototype.dispatchEvent.call(this,a)};p.onError=function(a){2===a.severity&&(this.u.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new U("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function io(a){if(a.s)throw new V(2,7,7003);}function lo(a,b){a.dispatchEvent(new U("onstatechange",(new Map).set("state",b)))} -function ho(a){var b,c,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:lo(a,"manifest-parser");a.l||(a.G=Gi(a.N,a.U),a.l=a.G(),a.l.configure(a.g.manifest,function(){return a.C}));b=Date.now()/1E3;lo(a,"manifest");if(a.h){m.A(2);break}return F(m,a.l.start(a.N,a.eb),3);case 3:a.h=m.h;if(1!=a.h.variants.length){m.A(2);break}c=[];d=a.h.variants[0];e=u([d.video,d.audio]);for(f=e.next();!f.done;f=e.next())(g=f.value)&&!g.segmentIndex&&c.push(g.createSegmentIndex());if(!(0d.endTime?so:po;this.g.set(d,f);for(var g=u(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.pd==e&&h.od==f&&h.Yc(d,b)}}};function qo(a,b,c,d){b=new U(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var ro=1,po=2,so=3;function to(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:var n=(new qb(a)).ub.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=uo.get(d))return m.return(e);f=0;g=Wg([a],c);ta(m,2);g.method="HEAD";return F(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];wa(m,3);break;case 2:k=xa(m);if(!k||1002!=k.code&&1001!=k.code){m.A(3);break}g.method="GET";return F(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e? +allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0},ignoreHardwareResolution:!1,queue:{preloadNextUrlWindow:30,repeatMode:0}};f.trackSelectionCallback=function(h){return Q(function(k){return k.return(Tn(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};return b.$a(g)} +function Un(){return{streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}}} +function Vn(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioRobustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return vn(a,b,c||Qn(),d,"")} +function Tn(a,b,c){var d=c;"AUTO"==d&&(c=a.some(function(h){return h.hdr&&"HLG"==h.hdr?!0:!1}),d=On(c));var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=Gc(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return yc(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height- +h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=sc&&"image"!=c.type||b.push(c);return b}function Rn(a){return xn([a],a)}function Sn(a){return xn([a],a)}S("shaka.util.PlayerConfiguration",Pn);Pn.mergeConfigObjects=Vn;Pn.createDefaultForLL=Un;Pn.createDefault=Qn;function Wn(){this.g=null;this.h=[]}function Xn(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Yn(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Zn(){this.i=this.h=null;this.g=[]}function $n(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function ao(){this.C=this.U=NaN;this.l="";this.j=this.bj=this.u=this.B=this.J=this.D=this.s=this.m=this.I=this.F=this.i=this.P=this.R=this.L=this.N=this.O=NaN;this.K=0;this.G=this.H=NaN;this.g=new Wn;this.h=new Zn}function bo(a,b,c){a.O=b;a.N=c}function co(a,b,c){a.U=b;a.C=c}function eo(a,b){a.i=isNaN(a.i)?b:Math.max(a.i,b)}function fo(a,b){a.j=isNaN(a.j)?b:a.j+b} +function go(a){var b=a.U,c=a.C,d=a.l,e=a.B,f=a.N,g=a.O,h=a.L,k=a.R,l=a.P,m=a.u,n=a.i,q=a.F,r=a.I,u=a.m,w=Xn(a.g,"playing"),v=Xn(a.g,"paused"),y=Xn(a.g,"buffering"),z=a.s,A=a.D,B=a.J,D=a.bj,G=a.j,C=a.K,E=a.H,H=a.G,K=Yn(a.g),J=[];a=t(a.h.g);for(var L=a.next();!L.done;L=a.next())L=L.value,J.push({timestamp:L.timestamp,id:L.id,type:L.type,fromAdaptation:L.fromAdaptation,bandwidth:L.bandwidth});return{width:b,height:c,currentCodecs:d,streamBandwidth:e,decodedFrames:f,droppedFrames:g,corruptedFrames:h, +stallsDetected:k,gapsJumped:l,estimatedBandwidth:m,completionPercent:n,loadLatency:q,manifestTimeSeconds:r,drmTimeSeconds:u,playTime:w,pauseTime:v,bufferingTime:y,licenseTime:z,liveLatency:A,maxSegmentDuration:B,manifestSizeBytes:D,bytesDownloaded:G,nonFatalErrorCount:C,manifestPeriodCount:E,manifestGapCount:H,stateHistory:K,switchHistory:J}};function ho(a,b,c,d){jb.call(this);this.N=a;this.U=b;this.La=d.networkingEngine;this.m=c;this.B=null;this.Ia=0;this.Ya=d.vd;this.F=d.Fl;this.cb=d.Gl;this.g=d.config;this.l=this.G=this.h=null;this.oa=!1;this.H=d.Rl;this.ra=!1;this.i=null;this.ba=!1;this.j=this.D=null;this.Z=!1;this.L=new Map;this.sa=!1;this.Na=d.Ql;this.Y=new ao;this.na=new Ig;this.u=new Ig;this.O=null;this.s=!1;this.$=d.ek;this.R=this.J=null;this.Ta=d.dk;this.P=!1;this.K=[];this.I=[];this.C=!0}pa(ho,jb); +function io(a,b,c){(a=b?a.I:a.K)?a.push(c):c()}function jo(a){if(a.I)for(var b=t(a.I),c=b.next();!c.done;c=b.next())c=c.value,c();a.I=null}function ko(a,b){a.O=b;a.P=!0;if(a.K){b=t(a.K);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.K=null}p=ho.prototype;p.getStartTime=function(){return this.m};p.$c=function(){return this.N};p.ih=function(){return this.h};function lo(a){a.Z=!0;return a.j}function mo(a){a.ra=!0;return a.H}p.getStats=function(){return this.Y}; +function no(a){a.ba=!0;return a.i}p.Uk=function(){return this.J?$f(this.J):null};p.Tk=function(){return this.R?ag(this.R):null};function oo(a){a.sa=!0;return a.L} +p.start=function(){var a=this;(function(){var b;return Q(function(c){switch(c.g){case 1:return F(c,Promise.resolve(),2);case 2:return ta(c,3),F(c,po(a),5);case 5:qo(a);if("webkit"===window.shakaMediaKeysPolyfill){c.A(6);break}return F(c,ro(a),7);case 7:qo(a);case 6:return F(c,so(a),8);case 8:qo(a);if(!a.$||!a.i){c.A(9);break}return F(c,fi(a.i),10);case 10:qo(a);case 9:a.u.resolve();wa(c,0);break;case 3:b=xa(c),b instanceof V&&(7001==b.code||7003==b.code)||a.u.reject(b),I(c)}})})()}; +p.dispatchEvent=function(a){return this.O?this.O.dispatchEvent(a):jb.prototype.dispatchEvent.call(this,a)};p.onError=function(a){2===a.severity&&(this.u.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new U("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function qo(a){if(a.s)throw new V(2,7,7003);}function to(a,b){a.dispatchEvent(new U("onstatechange",(new Map).set("state",b)))} +function po(a){var b,c,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:to(a,"manifest-parser");a.l||(a.G=Hi(a.N,a.U),a.l=a.G(),a.l.configure(a.g.manifest,function(){return a.C}));b=Date.now()/1E3;to(a,"manifest");if(a.h){m.A(2);break}return F(m,a.l.start(a.N,a.cb),3);case 3:a.h=m.h;if(1!=a.h.variants.length){m.A(2);break}c=[];d=a.h.variants[0];e=t([d.video,d.audio]);for(f=e.next();!f.done;f=e.next())(g=f.value)&&!g.segmentIndex&&c.push(g.createSegmentIndex());if(!(0d.endTime?Ao:xo;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.td==e&&h.sd==f&&h.ed(d,b)}}};function yo(a,b,c,d){b=new U(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var zo=1,xo=2,Ao=3;function Bo(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:var n=(new qb(a)).ub.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Co.get(d))return m.return(e);f=0;g=Xg([a],c);ta(m,2);g.method="HEAD";return F(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];wa(m,3);break;case 2:k=xa(m);if(!k||1002!=k.code&&1001!=k.code){m.A(3);break}g.method="GET";return F(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e? e.toLowerCase().split(";").shift():"")}})} -var uo=(new Map).set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv", +var Co=(new Map).set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv", "text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");/* @license Copyright 2013 Ali Al Dallal @@ -655,7 +658,7 @@ var uo=(new Map).set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -for(var vo={ach:"Lwo",ady:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"T\u0255\u0265i",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-AR":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-MA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-SA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)","ay-BO":"Aymar aru",az:"Az\u0259rbaycan dili","az-AZ":"Az\u0259rbaycan dili", +for(var Do={ach:"Lwo",ady:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"T\u0255\u0265i",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-AR":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-MA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-SA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)","ay-BO":"Aymar aru",az:"Az\u0259rbaycan dili","az-AZ":"Az\u0259rbaycan dili", "be-BY":"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",bg:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438","bg-BG":"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",bn:"\u09ac\u09be\u0982\u09b2\u09be","bn-IN":"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)","bn-BD":"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)","bs-BA":"Bosanski",ca:"Catal\u00e0","ca-ES":"Catal\u00e0",cak:"Maya Kaqchikel","ck-US":"\u13e3\u13b3\u13a9 (tsalagi)", cs:"\u010ce\u0161tina","cs-CZ":"\u010ce\u0161tina",cy:"Cymraeg","cy-GB":"Cymraeg",da:"Dansk","da-DK":"Dansk",de:"Deutsch","de-AT":"Deutsch (\u00d6sterreich)","de-DE":"Deutsch (Deutschland)","de-CH":"Deutsch (Schweiz)",dsb:"Dolnoserb\u0161\u0107ina",el:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac","el-GR":"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",en:"English","en-GB":"English (UK)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-IN":"English (India)", "en-PI":"English (Pirate)","en-UD":"English (Upside Down)","en-US":"English (US)","en-ZA":"English (South Africa)","en@pirate":"English (Pirate)",eo:"Esperanto","eo-EO":"Esperanto",es:"Espa\u00f1ol","es-AR":"Espa\u00f1ol (Argentine)","es-419":"Espa\u00f1ol (Latinoam\u00e9rica)","es-CL":"Espa\u00f1ol (Chile)","es-CO":"Espa\u00f1ol (Colombia)","es-EC":"Espa\u00f1ol (Ecuador)","es-ES":"Espa\u00f1ol (Espa\u00f1a)","es-LA":"Espa\u00f1ol (Latinoam\u00e9rica)","es-NI":"Espa\u00f1ol (Nicaragua)","es-MX":"Espa\u00f1ol (M\u00e9xico)", @@ -668,138 +671,138 @@ ml:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02","ml-IN":"\u0d2e\u0d32\u0d2f\u0d3e\u0d3 "ru-RU":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","sa-IN":"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d","se-NO":"Davvis\u00e1megiella","si-LK":"\u0db4\u0dc5\u0dcf\u0dad",sk:"Sloven\u010dina","sk-SK":"Sloven\u010dina (Slovakia)",sl:"Sloven\u0161\u010dina","sl-SI":"Sloven\u0161\u010dina","so-SO":"Soomaaliga",sq:"Shqip","sq-AL":"Shqip",sr:"\u0421\u0440\u043f\u0441\u043a\u0438","sr-RS":"\u0421\u0440\u043f\u0441\u043a\u0438 (Serbia)",su:"Basa Sunda",sv:"Svenska","sv-SE":"Svenska",sw:"Kiswahili", "sw-KE":"Kiswahili",ta:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd","ta-IN":"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",te:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41","te-IN":"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",tg:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301","tg-TJ":"\u0442\u043e\u04b7\u0438\u043a\u04e3",th:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22","th-TH":"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",tl:"Filipino","tl-PH":"Filipino", tlh:"tlhIngan-Hol",tr:"T\u00fcrk\u00e7e","tr-TR":"T\u00fcrk\u00e7e","tt-RU":"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",uk:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430","uk-UA":"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",ur:"\u0627\u0631\u062f\u0648","ur-PK":"\u0627\u0631\u062f\u0648",uz:"O'zbek","uz-UZ":"O'zbek",vi:"Ti\u1ebfng Vi\u1ec7t","vi-VN":"Ti\u1ebfng Vi\u1ec7t","xh-ZA":"isiXhosa",yi:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9","yi-DE":"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)", -zh:"\u4e2d\u6587","zh-HANS":"\u4e2d\u6587\u7b80\u4f53","zh-HANT":"\u4e2d\u6587\u7e41\u9ad4","zh-CN":"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09","zh-HK":"\u4e2d\u6587\uff08\u9999\u6e2f\uff09","zh-SG":"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09","zh-TW":"\u4e2d\u6587\uff08\u53f0\u7063\uff09","zu-ZA":"isiZulu"},wo=u(Object.keys(vo)),xo=wo.next();!xo.done;xo=wo.next()){var yo=xo.value;vo[yo.toLowerCase()]=vo[yo]};function zo(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return zo(g,a)}).join("");if(!a.payload)return a.payload;var c=[],d=a.fontWeight>=Le,e=a.fontStyle==Me,f=a.textDecoration.includes(Ne);d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=Ao(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Ao(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=u(h);h=k.next().value; +zh:"\u4e2d\u6587","zh-HANS":"\u4e2d\u6587\u7b80\u4f53","zh-HANT":"\u4e2d\u6587\u7e41\u9ad4","zh-CN":"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09","zh-HK":"\u4e2d\u6587\uff08\u9999\u6e2f\uff09","zh-SG":"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09","zh-TW":"\u4e2d\u6587\uff08\u53f0\u7063\uff09","zu-ZA":"isiZulu"},Eo=t(Object.keys(Do)),Fo=Eo.next();!Fo.done;Fo=Eo.next()){var Go=Fo.value;Do[Go.toLowerCase()]=Do[Go]};function Ho(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Ho(g,a)}).join("");if(!a.payload)return a.payload;var c=[],d=a.fontWeight>=Me,e=a.fontStyle==Ne,f=a.textDecoration.includes(Oe);d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=Io(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Io(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value; k=k.next().value;return"<"+h+(void 0===k?"":k)+">"+g+""},a.payload)} -function Ao(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7>>0).toString()}if(a.startTime>=a.endTime)return null;var c=new VTTCue(a.startTime,a.endTime,a.payload);c.id=b(a.startTime.toString())+b(a.endTime.toString())+b(a.payload);c.lineAlign=a.lineAlign;c.positionAlign=a.positionAlign;a.size&&(c.size=a.size);try{c.align=a.textAlign}catch(d){}"center"==a.textAlign&&"center"!=c.align&&(c.align="middle");"vertical-lr"==a.writingMode?c.vertical="lr":"vertical-rl"==a.writingMode&& +function Io(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7>>0).toString()}if(a.startTime>=a.endTime)return null;var c=new VTTCue(a.startTime,a.endTime,a.payload);c.id=b(a.startTime.toString())+b(a.endTime.toString())+b(a.payload);c.lineAlign=a.lineAlign;c.positionAlign=a.positionAlign;a.size&&(c.size=a.size);try{c.align=a.textAlign}catch(d){}"center"==a.textAlign&&"center"!=c.align&&(c.align="middle");"vertical-lr"==a.writingMode?c.vertical="lr":"vertical-rl"==a.writingMode&& (c.vertical="rl");1==a.lineInterpretation&&(c.snapToLines=!1);null!=a.line&&(c.line=a.line);null!=a.position&&(c.position=a.position);return c} -function Eo(a,b){var c=Bo(b),d=[];b=a.cues?Array.from(a.cues):[];c=u(c);for(var e=c.next(),f={};!e.done;f={yd:void 0},e=c.next())f.yd=e.value,!b.some(function(g){return function(h){return h.startTime==g.yd.startTime&&h.endTime==g.yd.endTime&&h.text==g.yd.payload?!0:!1}}(f))&&f.yd.payload&&(e=Do(f.yd))&&d.push(e);b=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-d.indexOf(g):d.indexOf(g)- -d.indexOf(h)});b=u(b);for(c=b.next();!c.done;c=b.next())a.addCue(c.value)}function Fo(a,b){var c=!1;"disabled"===a.mode&&(c=!0,a.mode="hidden");for(var d=0;dd&&"hidden"=== -g.track.mode&&(d=f)}e=u(b.i);for(f=e.next();!f.done;f=e.next())g=u(f.value),f=g.next().value,g=g.next().value,f!==d&&"disabled"!==g.track.mode&&(g.track.mode="disabled");b.g!==d&&(b.g=d,-1this.g)return!1;Fo(this.i.get(this.g).track,function(c){return c.startTimea});return!0}; -p.append=function(a){!this.j||0>this.g||Eo(this.i.get(this.g).track,a)};p.destroy=function(){this.h&&(this.j&&this.C(),this.h=null);this.l&&(this.l.release(),this.l=null);return Promise.resolve()};p.isTextVisible=function(){return this.u}; -p.setTextVisibility=function(a){this.u=a;if(-1a});return!0}; -p.append=function(a){this.g&&Eo(this.g,a)};p.destroy=function(){this.g&&(Fo(this.g,function(){return!0}),this.g.mode="disabled");this.g=this.h=null;return Promise.resolve()};p.isTextVisible=function(){return this.g?"showing"==this.g.mode:!1};p.setTextVisibility=function(a){a&&!this.g&&Jo(this);this.g&&(this.g.mode=a?"showing":"hidden")};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){Jo(this)};function Jo(a){a.h&&!a.g&&(a.g=a.h.addTextTrack("subtitles",a.i),a.g.mode="hidden")} -S("shaka.text.SimpleTextDisplayer",Io);Io.prototype.enableTextDisplayer=Io.prototype.enableTextDisplayer;Io.prototype.setTextLanguage=Io.prototype.setTextLanguage;Io.prototype.setTextVisibility=Io.prototype.setTextVisibility;Io.prototype.isTextVisible=Io.prototype.isTextVisible;Io.prototype.destroy=Io.prototype.destroy;Io.prototype.append=Io.prototype.append;Io.prototype.remove=Io.prototype.remove;Io.prototype.configure=Io.prototype.configure;function Ko(){}p=Ko.prototype;p.configure=function(){};p.remove=function(){};p.append=function(){};p.destroy=function(){};p.isTextVisible=function(){return!1};p.setTextVisibility=function(){};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){};S("shaka.text.StubTextDisplayer",Ko);Ko.prototype.enableTextDisplayer=Ko.prototype.enableTextDisplayer;Ko.prototype.setTextLanguage=Ko.prototype.setTextLanguage;Ko.prototype.setTextVisibility=Ko.prototype.setTextVisibility; -Ko.prototype.isTextVisible=Ko.prototype.isTextVisible;Ko.prototype.destroy=Ko.prototype.destroy;Ko.prototype.append=Ko.prototype.append;Ko.prototype.remove=Ko.prototype.remove;Ko.prototype.configure=Ko.prototype.configure;function Lo(a,b){var c=this;this.m=!1;this.h=[];this.j=a;this.s=b;this.C=this.u=null;this.g=W("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.B=new yf(function(){c.j.paused||Mo(c)});No(this);this.l=new Map;this.i=new Oc;this.i.o(document,"fullscreenchange",function(){Mo(c,!0)});this.i.o(this.j,"seeking",function(){Mo(c,!0)}); -this.i.o(this.j,"ratechange",function(){No(c)});this.i.o(this.j,"resize",function(){var d=c.j,e=d.videoWidth;d=d.videoHeight;e&&d?c.u=e/d:c.u=null});this.D=null;"ResizeObserver"in window&&(this.D=new ResizeObserver(function(){Mo(c,!0)}),this.D.observe(this.g));this.F=new Map}p=Lo.prototype;p.configure=function(a){this.C=a;No(this);Mo(this,!0)}; -p.append=function(a){var b=[].concat(x(this.h));a=u(Co(a));for(var c=a.next(),d={};!c.done;d={Jg:void 0},c=a.next())d.Jg=c.value,b.some(function(e){return function(f){return Ae(f,e.Jg)}}(d))||this.h.push(d.Jg);this.h.length&&No(this);Mo(this)}; -p.destroy=function(){if(!this.g)return Promise.resolve();this.g.parentElement&&this.s.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.B&&(this.B.stop(),this.B=null);this.l.clear();this.i&&(this.i.release(),this.i=null);this.D&&(this.D.disconnect(),this.D=null);return Promise.resolve()};p.remove=function(a,b){if(!this.g)return!1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime=b});Mo(this,c>this.h.length);this.h.length||No(this);return!0}; -p.isTextVisible=function(){return this.m};p.setTextVisibility=function(a){(this.m=a)?(this.g.parentElement||this.s.appendChild(this.g),Mo(this,!0)):this.g.parentElement&&this.s.removeChild(this.g)};p.setTextLanguage=function(a){a&&"und"!=a?this.g.setAttribute("lang",a):this.g.setAttribute("lang","")};p.enableTextDisplayer=function(){};function No(a){a.B&&(a.h.length?a.B.ya((a.C?a.C.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(a.j.playbackRate))):a.B.stop())} -function Oo(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1} -function Po(a,b,c,d,e){var f=!1,g=[],h=[];b=u(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.l.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Yj:null;l&&(g.push(l.Kg),l.gd&&g.push(l.gd),m||(f=!0,a.l.delete(k),l=null));m&&(h.push(k),l?Oo(a,n)||(f=!0):(Qo(a,k,e),l=a.l.get(k),n=l.Yj,f=!0));0 +d&&"hidden"===g.track.mode&&(d=f)}e=t(b.h);for(f=e.next();!f.done;f=e.next())g=t(f.value),f=g.next().value,g=g.next().value,f!==d&&"disabled"!==g.track.mode&&(g.track.mode="disabled");b.g!==d&&(b.g=d,-1a});else return!1;return!0};p.append=function(a){this.h.has(this.g)&&Mo(this.h.get(this.g).track,a)};p.destroy=function(){this.i&&(this.j&&this.C(),this.i=null);this.l&&(this.l.release(),this.l=null);return Promise.resolve()};p.isTextVisible=function(){return this.u}; +p.setTextVisibility=function(a){this.u=a;if(this.h.has(this.g)){var b=this.h.get(this.g).track;"disabled"!==b.mode&&(a=a?"showing":"hidden",b.mode!==a&&(b.mode=a))}else if(this.i&&3===this.i.m)if(b=Array.from(this.i.h.textTracks).filter(function(d){return["captions","subtitles","forced"].includes(d.kind)}),a){a=null;b=t(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"showing"===c.mode){a=null;break}else a||"hidden"!==c.mode||(a=c);a&&(a.mode="showing")}else for(a=t(b),b=a.next();!b.done;b= +a.next())b=b.value,"showing"===b.mode&&(b.mode="hidden")};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){!this.j&&this.i&&2===this.i.m&&(this.j=this.i.h,this.l.qa(this.i,"unloading",this.C),this.l.o(this.i,"textchanged",this.m),this.l.o(this.j.textTracks,"change",this.B),this.m())}; +function Po(a){var b=Rb();return a.forced&&"WEBKIT"===b.Ga()?"forced":"caption"===a.kind||a.roles&&a.roles.some(function(c){return c.includes("transcribes-spoken-dialog")})&&a.roles.some(function(c){return c.includes("describes-music-and-sound")})?"captions":"subtitles"}S("shaka.text.NativeTextDisplayer",Oo);Oo.prototype.enableTextDisplayer=Oo.prototype.enableTextDisplayer;Oo.prototype.setTextLanguage=Oo.prototype.setTextLanguage;Oo.prototype.setTextVisibility=Oo.prototype.setTextVisibility; +Oo.prototype.isTextVisible=Oo.prototype.isTextVisible;Oo.prototype.destroy=Oo.prototype.destroy;Oo.prototype.append=Oo.prototype.append;Oo.prototype.remove=Oo.prototype.remove;Oo.prototype.configure=Oo.prototype.configure;function Qo(a,b){Uc("SimpleTextDisplayer","Please migrate to NativeTextDisplayer");this.h=a;this.i=b;this.g=null;a=t(Array.from(this.h.textTracks));for(b=a.next();!b.done;b=a.next())b=b.value,"metadata"!==b.kind&&"chapters"!==b.kind&&(b.mode="disabled",b.label==this.i&&(this.g=b));this.g&&(this.g.mode="hidden")}p=Qo.prototype;p.configure=function(){};p.remove=function(a,b){if(!this.g)return!1;No(this.g,function(c){return c.startTimea});return!0}; +p.append=function(a){this.g&&Mo(this.g,a)};p.destroy=function(){this.g&&(No(this.g,function(){return!0}),this.g.mode="disabled");this.g=this.h=null;return Promise.resolve()};p.isTextVisible=function(){return this.g?"showing"==this.g.mode:!1};p.setTextVisibility=function(a){a&&!this.g&&Ro(this);this.g&&(this.g.mode=a?"showing":"hidden")};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){Ro(this)};function Ro(a){a.h&&!a.g&&(a.g=a.h.addTextTrack("subtitles",a.i),a.g.mode="hidden")} +S("shaka.text.SimpleTextDisplayer",Qo);Qo.prototype.enableTextDisplayer=Qo.prototype.enableTextDisplayer;Qo.prototype.setTextLanguage=Qo.prototype.setTextLanguage;Qo.prototype.setTextVisibility=Qo.prototype.setTextVisibility;Qo.prototype.isTextVisible=Qo.prototype.isTextVisible;Qo.prototype.destroy=Qo.prototype.destroy;Qo.prototype.append=Qo.prototype.append;Qo.prototype.remove=Qo.prototype.remove;Qo.prototype.configure=Qo.prototype.configure;function So(){}p=So.prototype;p.configure=function(){};p.remove=function(){};p.append=function(){};p.destroy=function(){};p.isTextVisible=function(){return!1};p.setTextVisibility=function(){};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){};S("shaka.text.StubTextDisplayer",So);So.prototype.enableTextDisplayer=So.prototype.enableTextDisplayer;So.prototype.setTextLanguage=So.prototype.setTextLanguage;So.prototype.setTextVisibility=So.prototype.setTextVisibility; +So.prototype.isTextVisible=So.prototype.isTextVisible;So.prototype.destroy=So.prototype.destroy;So.prototype.append=So.prototype.append;So.prototype.remove=So.prototype.remove;So.prototype.configure=So.prototype.configure;function To(a,b){var c=this;this.m=!1;this.h=[];this.j=a;this.s=b;this.C=this.u=null;this.g=W("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.B=new zf(function(){c.j.paused||Uo(c)});Vo(this);this.l=new Map;this.i=new Oc;this.i.o(document,"fullscreenchange",function(){Uo(c,!0)});this.i.o(this.j,"seeking",function(){Uo(c,!0)}); +this.i.o(this.j,"ratechange",function(){Vo(c)});this.i.o(this.j,"resize",function(){var d=c.j,e=d.videoWidth;d=d.videoHeight;e&&d?c.u=e/d:c.u=null});this.D=null;"ResizeObserver"in window&&(this.D=new ResizeObserver(function(){Uo(c,!0)}),this.D.observe(this.g));this.F=new Map}p=To.prototype;p.configure=function(a){this.C=a;Vo(this);Uo(this,!0)}; +p.append=function(a){var b=[].concat(x(this.h));a=t(Ko(a));for(var c=a.next(),d={};!c.done;d={Kg:void 0},c=a.next())d.Kg=c.value,b.some(function(e){return function(f){return Ae(f,e.Kg)}}(d))||this.h.push(d.Kg);this.h.length&&Vo(this);Uo(this)}; +p.destroy=function(){if(!this.g)return Promise.resolve();this.g.parentElement&&this.s.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.B&&(this.B.stop(),this.B=null);this.l.clear();this.i&&(this.i.release(),this.i=null);this.D&&(this.D.disconnect(),this.D=null);return Promise.resolve()};p.remove=function(a,b){if(!this.g)return!1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime=b});Uo(this,c>this.h.length);this.h.length||Vo(this);return!0}; +p.isTextVisible=function(){return this.m};p.setTextVisibility=function(a){(this.m=a)?(this.g.parentElement||this.s.appendChild(this.g),Uo(this,!0)):this.g.parentElement&&this.s.removeChild(this.g)};p.setTextLanguage=function(a){a&&"und"!=a?this.g.setAttribute("lang",a):this.g.setAttribute("lang","")};p.enableTextDisplayer=function(){};function Vo(a){a.B&&(a.h.length?a.B.ya((a.C?a.C.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(a.j.playbackRate))):a.B.stop())} +function Wo(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1} +function Xo(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.l.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Zj:null;l&&(g.push(l.Lg),l.ld&&g.push(l.ld),m||(f=!0,a.l.delete(k),l=null));m&&(h.push(k),l?Wo(a,n)||(f=!0):(Yo(a,k,e),l=a.l.get(k),n=l.Zj,f=!0));0a.u&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",c.writingMode==se?(f.width="100%",c.lineAlign==ue?f.top=d+"%":"end"==c.lineAlign&&(f.bottom=100-d+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==ue?f.left=d+"%":"end"==c.lineAlign&&(f.right=100-d+"%")):(f.height="100%",c.lineAlign==ue?f.right=d+"%":"end"==c.lineAlign&&(f.left=100-d+"%")))); -f.lineHeight=c.lineHeight;a=So(c);"line-left"==a?(f.cssFloat="left",null!==c.position&&(f.position="absolute",c.writingMode==se?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%")):"line-right"==a?(f.cssFloat="right",null!==c.position&&(f.position="absolute",c.writingMode==se?(f.right=100-c.position+"%",f.width="auto"):f.bottom=c.position+"%")):null!==c.position&&50!=c.position&&(f.position="absolute",c.writingMode==se?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%");f.textAlign= -c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==se?f.width=c.size+"%":f.height=c.size+"%")} -function To(a,b,c,d){d=void 0===d?1:d;var e=(e=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(e[1]),unit:e[2]}:null;if(!e)return a;a=e.unit;d*=e.value;switch(a){case "%":return d/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*d/b.cellResolution.rows+"px";default:return d+a}}function Uo(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}S("shaka.text.UITextDisplayer",Lo);Lo.prototype.enableTextDisplayer=Lo.prototype.enableTextDisplayer; -Lo.prototype.setTextLanguage=Lo.prototype.setTextLanguage;Lo.prototype.setTextVisibility=Lo.prototype.setTextVisibility;Lo.prototype.isTextVisible=Lo.prototype.isTextVisible;Lo.prototype.remove=Lo.prototype.remove;Lo.prototype.destroy=Lo.prototype.destroy;Lo.prototype.append=Lo.prototype.append;Lo.prototype.configure=Lo.prototype.configure;function Vo(a,b){function c(f){for(var g=f,h=u(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.startf?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=Bo(a);a="WEBVTT\n\n";d=u(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left"); -break;case "right":g.push("align:right");break;case pe:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}S("shaka.text.WebVttGenerator",function(){});function Wo(a,b){this.h=a;this.g=b;this.i=void 0;this.u=!1;this.F=!0;this.l=this.C=!1;this.s=this.m=void 0;this.B=0;this.G=!1;this.D=new Oc;this.j=null}Wo.prototype.setMediaElement=function(a){this.j=a;Xo(this)};Wo.prototype.configure=function(a){this.g=a};function Yo(a){a.u=!1;a.F=!0;a.C=!1;a.l=!1;a.m=0;a.s=0;a.B=0;a.G=!1;a.j=null;a.D.Sa()}function Zo(a,b){a.l=b;a.l?a.i==$o?a.i=ap:a.i==bp&&(a.i=cp):a.i==ap?a.i=$o:a.i==cp&&(a.i=bp)} -function dp(a,b){if(a.g&&a.g.enabled&&a.g.version==ep&&a.j&&a.j.autoplay){var c=a.j.play();c&&c.then(function(){a.B=b}).catch(function(){a.B=0})}} -function fp(a,b,c){try{if(!a.g.enabled)return b;var d=gp(a);a:{switch(c.toLowerCase()){case "audio/mp4":case "audio/webm":case "audio/ogg":case "audio/mpeg":case "audio/aac":case "audio/flac":case "audio/wav":var e=hp;break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e=ip;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":case "application/vnd.ms-sstr+xml":e=jp;break a}e=void 0}d.ot=e;d.su= -!0;var f=kp(d);return lp(b,f)}catch(g){return bb("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function Xo(a){a.D.qa(a.j,"play",function(){a.m||(a.m=Date.now())});a.D.qa(a.j,"playing",function(){a.s||(a.s=Date.now())})}function gp(a){a.g.sessionId||(a.g.sessionId=window.crypto.randomUUID());return{v:a.g.version,sf:a.i,sid:a.g.sessionId,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}} -function mp(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled)if(a=np(a,c),d)d=op(a),Object.keys(d).length&&Object.assign(b.headers,d);else{var e=kp(a);e&&(b.uris=b.uris.map(function(f){return lp(f,e)}))}}function pp(a,b){var c=a.g.includeKeys;return c.length?Object.keys(b).reduce(function(d,e){c.includes(e)&&(d[e]=b[e]);return d},{}):b} -function qp(a){if(0===a.type)return rp;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?ip:sp;if("audio"==b)return hp;if("text"==b)return"application/mp4"===a.mimeType?tp:up}}function vp(a,b){b=a.h.Pb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN} -function wp(a,b){b=a.h.Pb()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function xp(a,b){var c=a.h.kb();if(!c.length)return NaN;a=c[0];c=u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case sp:return a.videoBandwidth||NaN;case hp:return a.audioBandwidth||NaN;default:return a.bandwidth}} -function np(a,b){b=void 0===b?{}:b;Object.assign(b,gp(a));b.pr=a.h.Ya();var c=b.ot===sp||b.ot===ip;a.C&&c&&(b.bs=!0,b.su=!0,a.C=!1);null==b.su&&(b.su=a.F);b.v===ep&&(a.h.T()&&(b.ltc=a.h.pf()),c=!a.G&&a.s&&a.m?a.s-(a.B||a.m):void 0,void 0!=c&&(b.msd=c,a.G=!0));return pp(a,b)} -function kp(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=u(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"=== -l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function op(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};b=u(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a=c?a*(1-c)+b*c:a};function Rp(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}S("shaka.util.CmsdManager",yp);yp.prototype.getBandwidthEstimate=yp.prototype.getBandwidthEstimate;yp.prototype.getRoundTripTime=yp.prototype.Wk;yp.prototype.getResponseDelay=yp.prototype.Vk;yp.prototype.getEstimatedThroughput=yp.prototype.Oi; -yp.prototype.getMaxBitrate=yp.prototype.Pi;var Ap="etp",zp="mb",Bp="rd",Qp="rtt";function Sp(){this.g=null;this.h=[]}function Tp(a,b){return Q(function(c){if(1==c.g)return a.g?F(c,new Promise(function(d){return a.h.push(d)}),2):c.A(2);a.g=b;H(c)})}Sp.prototype.release=function(){0B.end&&(B.end=D.end)}return B};d.sa=new dm(q);d.sa.addEventListener("regionadd", -function(A){qq(d,A.region,"metadataadded")});if(m)return F(z,k(function(){return Q(function(A){return F(A,rq(d,c),0)})},"initializeSrcEqualsDrmInner_"),23);d.Ta=new dm(q);return F(z,k(function(){return Q(function(A){if(1==A.g)return F(A,Promise.race([e.na,e.u]),2);d.vc=e.G;var B=e;B.oa=!0;d.G=B.l;d.i=e.hh();H(A)})},"waitForFinish"),15);case 15:if(d.I){z.A(16);break}return F(z,k(function(){return Q(function(A){return F(A,mq(d),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return d.i&&d.i.textStreams.length&& -(d.s.enableTextDisplayer?d.s.enableTextDisplayer():Uc("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),F(z,k(function(){return Q(function(A){return F(A,e.u,0)})},"waitForFinish"),18);case 18:d.g=e.getConfiguration();d.Ke=e.F;d.G&&d.G.setMediaElement&&d.h&&d.G.setMediaElement(d.h);d.Ee=eo(e);d.De=e.Ma;if(r=e.B)d.N=r;l&&d.h&&"AUDIO"===d.h.nodeName&&(sq(d),d.configure("manifest.disableVideo",!0));if(e.i){z.A(19);break}return F(z,k(function(){return Q(function(A){return F(A, -jo(e,d.h),0)})},"drmEngine_.init"),19);case 19:return d.D=fo(e),F(z,k(function(){return Q(function(A){return F(A,d.D.$b(d.h),0)})},"drmEngine_.attach"),21);case 21:return!(t=e.D)||d.Ma&&d.Ma==t||(d.u=co(e),d.Ma=e.D,"function"!=typeof d.u.setMediaElement&&(Uc("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.u.setMediaElement=function(){}),"function"!=typeof d.u.setCmsdManager&&(Uc("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."), -d.u.setCmsdManager=function(){}),"function"!=typeof d.u.trySuggestStreams&&(Uc("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.u.trySuggestStreams=function(){})),w=go(e),v=e.J,F(z,k(function(){return Q(function(A){return F(A,tq(d,n,v,w),0)})},"loadInner_"),22);case 22:ao(e);d.tc&&Rb().dg()&&lf(d.tc)&&zk(d.I,d.U,d.tc);z.A(14);break;case 23:return F(z,k(function(){return Q(function(A){return F(A,uq(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(dq("loaded")); -case 6:ya(z);if(!e){z.A(25);break}return F(z,e.destroy(),25);case 25:d.Ka=null;Ba(z,0);break;case 5:y=xa(z);if(!y||7E3==y.code){z.A(27);break}return F(z,d.kc(!1),27);case 27:throw y;}})};function sq(a){for(var b=u(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio})} -p.nm=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,vq(c),2):3!=e.g?(d=e.h,F(e,c.kc(a,b),3)):e.return(d)})};p.Ji=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,vq(c,b),2):3!=e.g?(d=e.h,F(e,c.detach(a),3)):e.return(d)})}; -function vq(a,b){b=void 0===b?!1:b;var c,d;return Q(function(e){if(1==e.g){c=null;if(!(a.i&&a.G&&a.vc&&a.U&&a.g))return e.A(2);d=a.h.currentTime;a.T()&&!b&&(d=null);return F(e,wq(a,a.U,d,a.tc,a.g,!0,!1,!1),3)}if(2!=e.g){c=e.h;a.Oe.push(c);a.G&&a.G.setMediaElement&&a.G.setMediaElement(null);var f=c,g=a.G,h=a.vc;f.h=a.i;f.l=g;f.G=h;f=c;g=a.Ma;f.j=a.u;f.D=g;c.B=a.N;c.start();a.i=null;a.G=null;a.vc=null;a.u=null;a.Ma=null}return e.return(c)})} -p.preload=function(a,b,c,d){b=void 0===b?null:b;var e=this,f,g;return Q(function(h){if(1==h.g)return f=Vp(e),Nn(f,d||e.g,Vp(e)),F(h,pq(e,a,b,c,!1,f),2);(g=h.h)?g.start():lq(e,new V(2,7,7005));return h.return(g)})};p.Ng=function(){var a=this,b,c,d,e;return Q(function(f){b=[];c=u(a.Oe);for(d=c.next();!d.done;d=c.next())e=d.value,e.s||b.push(e.destroy());a.Oe=[];return F(f,Promise.all(b),0)})}; -function pq(a,b,c,d,e,f){e=void 0===e?!1:e;var g,h,k,l,m;return Q(function(n){if(1==n.g)return d?n.A(2):F(n,oq(a,b),3);2!=n.g&&(d=n.h);if(g=xq(a,d))return n.return(null);h=f||a.g;k=!1;l=!0;e&&(a.u&&a.Ma==h.abrFactory&&(l=!1),a.h&&"AUDIO"===a.h.nodeName&&(k=!0));m=wq(a,b,c,d||null,h,!e,k,l);m=e?m.then(function(q){q.C=!1;return q}):m.then(function(q){a.Oe.push(q);return q});return n.return(m)})} -function wq(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,q,r,t,w,v,y,z,A,B,D,G;return Q(function(C){if(1==C.g){k=null;l=Dd(e);g&&(l.manifest.disableVideo=!0);m=function(){return k.P&&k.s?null:k};n=function(){return m()?m().getConfiguration():a.g};if(Infinity!=a.oa.width||Infinity!=a.oa.height||a.g.ignoreHardwareResolution)return C.A(2);q=Rb();return F(C,q.mc(),3)}2!=C.g&&(r=C.h,a.oa.width=r.width,a.oa.height=r.height);t=new ti(l,a.oa,null);w={networkingEngine:a.H, -filter:function(E){var I,K;return Q(function(J){if(1==J.g)return F(J,ui(t,E),2);if(4!=J.g){I=J.h;if(!I)return J.A(0);K=dq("trackschanged");return F(J,Promise.resolve(),4)}k.dispatchEvent(K);H(J)})},makeTextStreamsForClosedCaptions:function(E){return yq(a,E)},onTimelineRegionAdded:function(E){em(k.H,E)},onEvent:function(E){return k.dispatchEvent(E)},onError:function(E){return k.onError(E)},isLowLatencyMode:function(){return n().streaming.lowLatencyMode},updateDuration:function(){a.l&&k.P&&a.l.updateDuration()}, -newDrmInfo:function(E){var I=k.i,K=I?I.h:null;K&&I.B&&xi(t,K.keySystem,E)},onManifestUpdated:function(){var E=(new Map).set("isLive",a.T());k.dispatchEvent(dq("manifestupdated",E));$n(k,!1,function(){if(a.C)a.C.onManifestUpdated(a.T())})},getBandwidthEstimate:function(){return a.u.getBandwidthEstimate()},onMetadata:function(E,I,K,J){var L=E;if("com.apple.hls.interstitial"==E&&(L="com.apple.quicktime.HLS",E={startTime:I,endTime:K,values:J},a.C))a.C.onHLSInterstitialMetadata(a,a.h,E);J=u(J);E=J.next(); -for(var M={};!E.done;M={Hh:void 0},E=J.next())M.Hh=E.value,"ID"!=M.Hh.name&&$n(k,!1,function(O){return function(){zq(a,I,K,L,O.Hh)}}(M))},disableStream:function(E){return a.disableStream(E,a.g.streaming.maxDisabledTime)},addFont:function(E,I){return a.addFont(E,I)}};v=new dm(function(){return a.xa()});v.addEventListener("regionadd",function(E){var I=E.region;Aq(a,"timelineregionadded",I,k);$n(k,!1,function(){a.C&&(a.C.onDashTimedMetadata(I),a.C.onDASHInterstitialMetadata(a,a.h,I))})});y=null;l.streaming.observeQualityChanges&& -(y=new Yl(function(){return a.Pb()}),y.addEventListener("qualitychange",function(E){Bq(a,E.quality,E.position)}),y.addEventListener("audiotrackchange",function(E){Bq(a,E.quality,E.position,!0)}));z=!0;A={uc:a.H,onError:function(E){return k.onError(E)},Kf:function(E){$n(k,!0,function(){if(a.D)a:{var I=E,K=dq("keystatuschanged");a.dispatchEvent(K);var J=Object.keys(I);1==J.length&&""==J[0]&&(J=["00"],I={"00":I[""]});K=1==J.length&&"00"==J[0];var L=!1;if(J.length){J=a.keySystem();for(var M=fh(a.g.drm.clearKeys), -O=u(a.i.variants),N=O.next();!N.done;N=O.next()){N=N.value;var P=[];N.audio&&P.push(N.audio);N.video&&P.push(N.video);P=u(P);for(var R=P.next();!R.done;R=P.next()){var T=R.value;R=N.allowedByKeySystem;if(T.keyIds.size)if(T.drmInfos.length&&!M.size){T=u(T.drmInfos);for(var ca=T.next();!ca.done;ca=T.next())if(ca=ca.value,ca.keyIds.size&&ca.keySystem==J){N.allowedByKeySystem=!0;ca=u(ca.keyIds);for(var Y=ca.next();!Y.done;Y=ca.next())if(Y=Y.value,(Y=I[K?"00":Y])||a.D.F)N.allowedByKeySystem=N.allowedByKeySystem&& -!!Y&&!zi.includes(Y)}}else for(N.allowedByKeySystem=!0,T=u(T.keyIds),ca=T.next();!ca.done;ca=T.next())if(ca=ca.value,(ca=I[K?"00":ca])||a.D.F)N.allowedByKeySystem=N.allowedByKeySystem&&!!ca&&!zi.includes(ca);R!=N.allowedByKeySystem&&(L=!0)}}}if(L&&(Cq(a),!Dq(a)))break a;(I=a.l.l)&&!I.allowedByKeySystem&&aq(a)}})},onExpirationUpdated:function(E,I){var K=dq("expirationupdated");k.dispatchEvent(K);if((K=k.l)&&K.onExpirationUpdated)K.onExpirationUpdated(E,I)},onEvent:function(E){k.dispatchEvent(E);"drmsessionupdate"== -E.type&&z&&(z=!1,E=Date.now()/1E3-k.Ha,(a.B||k.getStats()).m=E,a.P&&$c(a.P))}};B=Xp(a,m);Vg(a.H,B);D=function(){return a.sd(A)};G={config:l,Fl:w,Ql:v,Pl:y,sd:D,El:t,networkingEngine:B,dk:f,ck:h};k=new Zn(b,d,c,G);return C.return(k)})}function oq(a,b){var c,d,e;return Q(function(f){if(1==f.g)return c=a.g.manifest.retryParameters,F(f,to(b,a.H,c),2);d=f.h;"application/x-mpegurl"==d&&(e=Rb(),"WEBKIT"===e.Na()&&(d="application/vnd.apple.mpegurl"));return f.return(d)})} -function xq(a,b){if(!Ei(Rb()))return!0;if(b){if(""==(a.h||Fi()).canPlayType(b))return!1;if(!Ei(Rb())||!Ci.has(b))return!0;if(lf(b))return"WEBKIT"===Rb().Na()&&(a.g.drm.servers["com.apple.fps"]||a.g.drm.servers["com.apple.fps.1_0"])?a.g.streaming.useNativeHlsForFairPlay:a.g.streaming.preferNativeHls;if("application/dash+xml"===b||"video/vnd.mpeg.dash.mpd"===b)return a.g.streaming.preferNativeDash}return!1} -function Eq(a){var b=a.g.textDisplayFactory;b!==a.Se&&(a.s=b(),a.s.configure?a.s.configure(a.g.textDisplayer):Uc("Text displayer w/ configure",'Text displayer should have a "configure" method!'),a.Se=b,a.s.setTextVisibility(a.na))} -function mq(a){var b,c,d;return Q(function(e){if(1==e.g)return Rb(),iq(a,"media-source"),a.g.mediaSource.useSourceElements&&Mj(a.h),Eq(a),b=Fq(a.h,a.s,{Ik:function(){return a.keySystem()},onMetadata:function(f,g,h){f=u(f);for(var k=f.next();!k.done;k=f.next())if(k=k.value,k.data&&"number"==typeof k.cueTime&&k.frames){var l=k.cueTime+g,m=h;m&&l>m&&(m=l);for(var n=u(k.frames),q=n.next();!q.done;q=n.next())zq(a,l,m,"org.id3",q.value);if(a.C)a.C.onHlsTimedMetadata(k,l)}},Kl:function(f){a.Ta&&em(a.Ta, -{schemeIdUri:f.schemeIdUri,startTime:f.startTime,endTime:f.endTime,id:String(f.id),emsg:f})},onEvent:function(f){return a.dispatchEvent(f)},Ml:function(){a.G&&a.G.update&&a.G.update()}},a.P,a.g.mediaSource),c=a.g.manifest,d=c.segmentRelativeVttTiming,b.Ha=d,F(e,b.J,2);a.I=b;H(e)})} -function Gq(a,b,c){function d(){return Hq(a)}a.j.o(b,"playing",d);a.j.o(b,"pause",d);a.j.o(b,"ended",d);a.j.o(b,"ratechange",function(){var f=a.h.playbackRate;0!=f&&(a.J&&(a.J.set(f),a.m==Iq&&a.u.playbackRateChanged(f),Jq(a,f)),f=dq("ratechange"),a.dispatchEvent(f))});b.remote&&(a.j.o(b.remote,"connect",function(){a.l&&"connected"==b.remote.state&&Kq(a);Cq(a)}),a.j.o(b.remote,"connecting",function(){return Cq(a)}),a.j.o(b.remote,"disconnect",function(){return Q(function(f){if(1==f.g)return a.l&&"disconnected"== -b.remote.state?F(f,Qm(a.l),3):f.A(2);2!=f.g&&Kq(a);Cq(a);H(f)})}));b.audioTracks&&(a.j.o(b.audioTracks,"addtrack",function(){return Cq(a)}),a.j.o(b.audioTracks,"removetrack",function(){return Cq(a)}),a.j.o(b.audioTracks,"change",function(){return Cq(a)}));b.videoTracks&&(a.j.o(b.videoTracks,"addtrack",function(){return Cq(a)}),a.j.o(b.videoTracks,"removetrack",function(){return Cq(a)}),a.j.o(b.videoTracks,"change",function(){return Cq(a)}));if(b.textTracks){var e=function(){a.m===Lq&&a.s instanceof -Go&&Kq(a);Cq(a)};a.j.o(b.textTracks,"addtrack",function(f){if(f.track)switch(f=f.track,f.kind){case "metadata":Mq(a,f);break;case "chapters":Nq(a,f);break;default:e()}});a.j.o(b.textTracks,"removetrack",e);a.j.o(b.textTracks,"change",e);"keep"!==a.g.streaming.crossBoundaryStrategy&&(a.j.o(b,"waiting",function(){a.l&&Um(a.l)}),a.j.o(b,"timeupdate",function(){a.l&&Um(a.l)}))}"none"!=b.preload&&a.j.qa(b,"loadedmetadata",function(){a.B.F=Date.now()/1E3-c})} -function tq(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,t,w,v,y,z,A,B,D,G,C,E,I,K,J,L,M,O,N;return Q(function(P){switch(P.g){case 1:iq(a,"load");e=a.h;a.J=new Ul({qf:function(){return e.playbackRate},Uc:function(){return e.defaultPlaybackRate},Wh:function(R){e.playbackRate=R},gj:function(R){e.currentTime+=R}});Gq(a,e,b);"onchange"in window.screen&&a.j.o(window.screen,"change",function(){if(a.N.getConfiguration){var R=a.N.getConfiguration();"AUTO"==R.Gc?Dq(a):"AUTO"==a.g.preferredVideoHdrLevel&&a.g.abr.enabled&& -(R.Gc="AUTO",a.N.configure(R),Dq(a))}});f=!1;g=u(a.i.variants);for(h=g.next();!h.done;h=g.next())k=h.value,(l=k.video&&k.video.dependencyStream)&&(f=ad(l));cq(a,a.g,f);a.Id=a.g.preferredTextLanguage;a.Je=a.g.preferredTextRole;a.Ie=a.g.preferForcedSubs;Oq(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.u.init(function(R,T,ca){a.i&&a.l&&R!=a.l.l&&Pq(a,R,!0,void 0===T?!1:T,void 0===ca?0:ca)});a.u.setMediaElement(e);a.u.setCmsdManager(a.ea);a.l=Qq(a);a.l.configure(a.g.streaming);a.m=Iq; -a.dispatchEvent(dq("streaming"));m=c;case 2:(q=a.l.l)||m||(m=Dq(a)?a.u.chooseVariant():null);r=[];n=q||m;t=u([n.video,n.audio]);for(w=t.next();!w.done;w=t.next())(v=w.value)&&!v.segmentIndex&&(r.push(v.createSegmentIndex()),v.dependencyStream&&r.push(v.dependencyStream.createSegmentIndex()));if(!(0E&&(B=E);return F(P,Uq(m,B),9);case 9:I=P.h,y(I);case 8:Pq(a,m,!0,!1,0);case 7:return a.F.ready(),K=a.qc().find(function(R){return R.active}), -K||((J=ig(a.i.textStreams,a.Id,a.Je,a.Ie)[0]||null)&&Sn(a.B.h,J,!0),m&&(J?(lg(m.audio,J,a.g)&&(a.na=!0),a.na&&a.s.setTextVisibility(!0)):(a.na=!1,a.s.setTextVisibility(!1)),Vq(a)),J&&(a.g.streaming.alwaysStreamText||a.$c())&&(Om(a.l,J),Wq(a))),F(P,a.l.start(d),10);case 10:a.g.abr.enabled&&(a.u.enable(),Xq(a));Cq(a);Dq(a);a.i.variants.some(function(R){return R.primary});if((L=a.T())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)|| -a.g.streaming.vodDynamicPlaybackRate)M=function(){return Yq(a)},a.j.o(e,"timeupdate",M);L||(O=function(){return Zq(a)},a.j.o(e,"timeupdate",O),Zq(a),a.i.nextUrl&&(0, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'), -l.resolve()),a.j.qa(d,"error",function(){l.reject(kq(a))}),F(w,Cf(a.g.streaming.loadTimeout,l),4);case 4:if((n=a.T())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)q=function(){return Yq(a)},a.j.o(d,"timeupdate",q);n||(r=function(){return Zq(a)},a.j.o(d,"timeupdate",r),Zq(a));a.C&&(a.C.onManifestUpdated(n),n&&(t=a.xa().end,a.j.o(d,"progress",function(){var v=a.xa().end;t!=v&&(a.C.onManifestUpdated(a.T()),t=v)}))); -a.Y=!0;H(w)}})}function cr(a){var b=a.g.preferredAudioLanguage;""!=b&&a.xj(b,a.g.preferredVariantRole)}function er(a){var b=a.g.preferredTextLanguage;""!=b&&a.Rh(b,a.g.preferredTextRole,a.g.preferForcedSubs)} -function Mq(a,b){if("metadata"==b.kind){b.mode="hidden";a.j.o(b,"cuechange",function(){if(b.activeCues)for(var d=u(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,zq(a,e.startTime,e.endTime,e.type,e.value),a.C)a.C.onCueMetadataChange(e.value);if(b.cues){d=[];e=u(b.cues);for(var f=e.next(),g={};!f.done;g={Ac:void 0},f=e.next())g.Ac=f.value,"com.apple.quicktime.HLS"==g.Ac.type&&null!=g.Ac.startTime&&(f=d.find(function(h){return function(k){return k.startTime==h.Ac.startTime&&k.endTime==h.Ac.endTime}}(g)), -f||(f={startTime:g.Ac.startTime,endTime:g.Ac.endTime,values:[]},d.push(f)),f.values.push(g.Ac.value));d=u(d);for(e=d.next();!e.done;e=d.next())e=e.value,e.values.some(function(h){return"X-ASSET-URI"==h.key||"X-ASSET-LIST"==h.key})&&a.C&&(e.values.push({key:"CUE",description:"",data:0!=e.startTime||a.T()?"ONCE":"ONCE,PRE",mimeType:null,pictureType:null}),a.C.onHLSInterstitialMetadata(a,a.h,e))}});var c=(new yf(function(){var d=fr(a);d=u(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Ja().X(.5); -a.He.push(function(){c.stop()})}}function qq(a,b,c){b=(new Map).set("startTime",b.startTime).set("endTime",b.endTime).set("metadataType",b.schemeIdUri).set("payload",b.payload);a.dispatchEvent(dq(c,b))}function zq(a,b,c,d,e){a.sa&&(b={schemeIdUri:d,startTime:b,endTime:c||Infinity,id:"",payload:e},b.id=JSON.stringify(b),em(a.sa,b))}function Nq(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new yf(function(){b.mode="hidden"})).Ja().X(.5);a.He.push(function(){c.stop()})}} -p.Ul=function(){for(var a=this.Z;a.g;)a.release()};p.sd=function(a){return new xh(a)}; -function Xp(a,b){function c(f){b()?b().dispatchEvent(f):a.dispatchEvent(f)}function d(f){b()?$n(b(),!0,f):f()}b||(b=function(){return null});var e=new Rg(function(f,g,h,k,l){var m=b()?b().j:a.u;m&&m.segmentDownloaded(f,g,h,k,l)},function(f,g,h){g=(new Map).set("headers",f).set("request",g).set("requestType",h);c(dq("downloadheadersreceived",g));d(function(){if(a.ea){var k=a.ea;if(k.h.enabled){var l=f["cmsd-static"];if(l)try{var m=new Map,n=l.split(",");for(l=0;lv);if(z){var A=z.next().value;if(A&&A!=q){if(n&&!ud(q.S(),A.S())){var B=A.S()[0],D=new URL(B),G=new URL(n);if(D.origin!==G.origin)var C=B;else{for(var E=D.pathname.split("/").slice(1),I=G.pathname.split("/").slice(1,-1);E[0]===I[0];)E.shift(),I.shift();for(;I.length;)I.shift(),E.unshift("..");C=E.join("/")}r.nor=C}if((A.startByte|| -A.endByte)&&(q.startByte!=A.startByte||q.endByte!=A.endByte)){var K=A.startByte+"-";A.endByte&&(K+=A.endByte);r.nrr=K}}}var J=k.h.Ya()||1,L=wp(k,w.type)||500,M=w.bandwidth;var O=M?M*(q.endTime-q.startTime)/1E3/(L/J/1E3)*k.g.rtpSafetyFactor:NaN;isNaN(O)||(r.rtp=O)}}t&&r.ot!==tp&&(r.tb=xp(k,r.ot)/1E3);mp(k,g,r)}}catch(N){bb("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",N)}break;case 2:case 5:case 6:mp(k,g,{ot:"k"});break;case 4:mp(k,g,{ot:"o"})}})},function(f,g,h,k){(f=b()?b().l:a.G)&& -f.banLocation&&f.banLocation(k)},function(f,g){if(g.data){g=g.data.byteLength;var h=b()?b().getStats():a.B;h&&(Xn(h,g),0===f&&(h.aj=g))}});e.configure(a.g.networking);return e}function Rq(a,b){return new Jl(a.h,a.i,a.g.streaming,b,function(){a.eb&&Xl(a.eb,!0);a.l&&a.l.hd();a.O&&gr(a)},function(c){return a.dispatchEvent(c)})} -function Sq(a,b){var c=a.T()||"number"===typeof b&&0=e&&0a.u&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",c.writingMode==te?(f.width="100%",c.lineAlign==ve?f.top=d+"%":"end"==c.lineAlign&&(f.bottom=100-d+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==ve?f.left=d+"%":"end"==c.lineAlign&&(f.right=100-d+"%")):(f.height="100%",c.lineAlign==ve?f.right=d+"%":"end"==c.lineAlign&&(f.left=100-d+"%")))); +f.lineHeight=c.lineHeight;a=$o(c);"line-left"==a?(f.cssFloat="left",null!==c.position&&(f.position="absolute",c.writingMode==te?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%")):"line-right"==a?(f.cssFloat="right",null!==c.position&&(f.position="absolute",c.writingMode==te?(f.right=100-c.position+"%",f.width="auto"):f.bottom=c.position+"%")):null!==c.position&&50!=c.position&&(f.position="absolute",c.writingMode==te?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%");f.textAlign= +c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==te?f.width=c.size+"%":f.height=c.size+"%")} +function ap(a,b,c,d){d=void 0===d?1:d;var e=(e=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(e[1]),unit:e[2]}:null;if(!e)return a;a=e.unit;d*=e.value;switch(a){case "%":return d/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*d/b.cellResolution.rows+"px";default:return d+a}}function bp(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}S("shaka.text.UITextDisplayer",To);To.prototype.enableTextDisplayer=To.prototype.enableTextDisplayer; +To.prototype.setTextLanguage=To.prototype.setTextLanguage;To.prototype.setTextVisibility=To.prototype.setTextVisibility;To.prototype.isTextVisible=To.prototype.isTextVisible;To.prototype.remove=To.prototype.remove;To.prototype.destroy=To.prototype.destroy;To.prototype.append=To.prototype.append;To.prototype.configure=To.prototype.configure;function cp(a,b){function c(f){for(var g=f,h=t(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.startf?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=Jo(a);a="WEBVTT\n\n";d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left"); +break;case "right":g.push("align:right");break;case qe:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}S("shaka.text.WebVttGenerator",function(){});function dp(a,b){this.h=a;this.g=b;this.i=void 0;this.u=!1;this.F=!0;this.l=this.C=!1;this.s=this.m=void 0;this.B=0;this.G=!1;this.D=new Oc;this.j=null}dp.prototype.setMediaElement=function(a){this.j=a;ep(this)};dp.prototype.configure=function(a){this.g=a};function fp(a){a.u=!1;a.F=!0;a.C=!1;a.l=!1;a.m=0;a.s=0;a.B=0;a.G=!1;a.j=null;a.D.Sa()}function gp(a,b){a.l=b;a.l?a.i==hp?a.i=ip:a.i==jp&&(a.i=kp):a.i==ip?a.i=hp:a.i==kp&&(a.i=jp)} +function lp(a,b){if(a.g&&a.g.enabled&&a.g.version==mp&&a.j&&a.j.autoplay){var c=a.j.play();c&&c.then(function(){a.B=b}).catch(function(){a.B=0})}} +function np(a,b,c){try{if(!a.g.enabled)return b;var d=op(a);a:{switch(c.toLowerCase()){case "audio/mp4":case "audio/webm":case "audio/ogg":case "audio/mpeg":case "audio/aac":case "audio/flac":case "audio/wav":var e=pp;break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e=qp;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":case "application/vnd.ms-sstr+xml":e=rp;break a}e=void 0}d.ot=e;d.su= +!0;var f=sp(d);return tp(b,f)}catch(g){return bb("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function ep(a){a.D.qa(a.j,"play",function(){a.m||(a.m=Date.now())});a.D.qa(a.j,"playing",function(){a.s||(a.s=Date.now())})}function op(a){a.g.sessionId||(a.g.sessionId=window.crypto.randomUUID());return{v:a.g.version,sf:a.i,sid:a.g.sessionId,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}} +function up(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled)if(a=vp(a,c),d)d=wp(a),Object.keys(d).length&&Object.assign(b.headers,d);else{var e=sp(a);e&&(b.uris=b.uris.map(function(f){return tp(f,e)}))}}function xp(a,b){var c=a.g.includeKeys;return c.length?Object.keys(b).reduce(function(d,e){c.includes(e)&&(d[e]=b[e]);return d},{}):b} +function yp(a){if(0===a.type)return zp;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?qp:Ap;if("audio"==b)return pp;if("text"==b)return"application/mp4"===a.mimeType?Bp:Cp}}function Dp(a,b){b=a.h.Qb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN} +function Ep(a,b){b=a.h.Qb()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function Fp(a,b){var c=a.h.qb();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case Ap:return a.videoBandwidth||NaN;case pp:return a.audioBandwidth||NaN;default:return a.bandwidth}} +function vp(a,b){b=void 0===b?{}:b;Object.assign(b,op(a));b.pr=a.h.Xa();var c=b.ot===Ap||b.ot===qp;a.C&&c&&(b.bs=!0,b.su=!0,a.C=!1);null==b.su&&(b.su=a.F);b.v===mp&&(a.h.T()&&(b.ltc=a.h.pf()),c=!a.G&&a.s&&a.m?a.s-(a.B||a.m):void 0,void 0!=c&&(b.msd=c,a.G=!0));return xp(a,b)} +function sp(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"=== +l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function wp(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a=c?a*(1-c)+b*c:a};function Zp(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}S("shaka.util.CmsdManager",Gp);Gp.prototype.getBandwidthEstimate=Gp.prototype.getBandwidthEstimate;Gp.prototype.getRoundTripTime=Gp.prototype.Xk;Gp.prototype.getResponseDelay=Gp.prototype.Wk;Gp.prototype.getEstimatedThroughput=Gp.prototype.Pi; +Gp.prototype.getMaxBitrate=Gp.prototype.Qi;var Ip="etp",Hp="mb",Xp="rd",Yp="rtt";function $p(){this.g=null;this.h=[]}function aq(a,b){return Q(function(c){if(1==c.g)return a.g?F(c,new Promise(function(d){return a.h.push(d)}),2):c.A(2);a.g=b;I(c)})}$p.prototype.release=function(){0B.end&&(B.end=D.end)}return B};d.sa=new km(q);d.sa.addEventListener("regionadd", +function(A){yq(d,A.region,"metadataadded")});if(m)return F(z,k(function(){return Q(function(A){return F(A,zq(d,c),0)})},"initializeSrcEqualsDrmInner_"),23);d.Ta=new km(q);return F(z,k(function(){return Q(function(A){if(1==A.g)return F(A,Promise.race([e.na,e.u]),2);d.yc=e.G;var B=e;B.oa=!0;d.G=B.l;d.i=e.ih();I(A)})},"waitForFinish"),15);case 15:if(d.I){z.A(16);break}return F(z,k(function(){return Q(function(A){return F(A,uq(d),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return d.i&&d.i.textStreams.length&& +(d.s.enableTextDisplayer?d.s.enableTextDisplayer():Uc("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),F(z,k(function(){return Q(function(A){return F(A,e.u,0)})},"waitForFinish"),18);case 18:d.g=e.getConfiguration();d.Le=e.F;d.G&&d.G.setMediaElement&&d.h&&d.G.setMediaElement(d.h);d.Fe=mo(e);d.Ee=e.Na;if(r=e.B)d.L=r;l&&d.h&&"AUDIO"===d.h.nodeName&&(Aq(d),d.configure("manifest.disableVideo",!0));if(e.i){z.A(19);break}return F(z,k(function(){return Q(function(A){return F(A, +ro(e,d.h),0)})},"drmEngine_.init"),19);case 19:return d.D=no(e),F(z,k(function(){return Q(function(A){return F(A,d.D.$b(d.h),0)})},"drmEngine_.attach"),21);case 21:return!(u=e.D)||d.Na&&d.Na==u||(d.u=lo(e),d.Na=e.D,"function"!=typeof d.u.setMediaElement&&(Uc("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.u.setMediaElement=function(){}),"function"!=typeof d.u.setCmsdManager&&(Uc("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."), +d.u.setCmsdManager=function(){}),"function"!=typeof d.u.trySuggestStreams&&(Uc("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.u.trySuggestStreams=function(){})),w=oo(e),v=e.J,F(z,k(function(){return Q(function(A){return F(A,Bq(d,n,v,w),0)})},"loadInner_"),22);case 22:jo(e);d.wc&&Rb().eg()&&mf(d.wc)&&Ak(d.I,d.U,d.wc);z.A(14);break;case 23:return F(z,k(function(){return Q(function(A){return F(A,Cq(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(lq("loaded")); +case 6:ya(z);if(!e){z.A(25);break}return F(z,e.destroy(),25);case 25:d.La=null;Ba(z,0);break;case 5:y=xa(z);if(!y||7E3==y.code){z.A(27);break}return F(z,d.lc(!1),27);case 27:throw y;}})};function Aq(a){for(var b=t(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio})} +p.om=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,Dq(c),2):3!=e.g?(d=e.h,F(e,c.lc(a,b),3)):e.return(d)})};p.Ki=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,Dq(c,b),2):3!=e.g?(d=e.h,F(e,c.detach(a),3)):e.return(d)})}; +function Dq(a,b){b=void 0===b?!1:b;var c,d;return Q(function(e){if(1==e.g){c=null;if(!(a.i&&a.G&&a.yc&&a.U&&a.g))return e.A(2);d=a.h.currentTime;a.T()&&!b&&(d=null);return F(e,Eq(a,a.U,d,a.wc,a.g,!0,!1,!1),3)}if(2!=e.g){c=e.h;a.Pe.push(c);a.G&&a.G.setMediaElement&&a.G.setMediaElement(null);var f=c,g=a.G,h=a.yc;f.h=a.i;f.l=g;f.G=h;f=c;g=a.Na;f.j=a.u;f.D=g;c.B=a.L;c.start();a.i=null;a.G=null;a.yc=null;a.u=null;a.Na=null}return e.return(c)})} +p.preload=function(a,b,c,d){b=void 0===b?null:b;var e=this,f,g;return Q(function(h){if(1==h.g)return f=cq(e),Vn(f,d||e.g,cq(e)),F(h,xq(e,a,b,c,!1,f),2);(g=h.h)?g.start():tq(e,new V(2,7,7005));return h.return(g)})};p.Og=function(){var a=this,b,c,d,e;return Q(function(f){b=[];c=t(a.Pe);for(d=c.next();!d.done;d=c.next())e=d.value,e.s||b.push(e.destroy());a.Pe=[];return F(f,Promise.all(b),0)})}; +function xq(a,b,c,d,e,f){e=void 0===e?!1:e;var g,h,k,l,m;return Q(function(n){if(1==n.g)return d?n.A(2):F(n,wq(a,b),3);2!=n.g&&(d=n.h);if(g=Fq(a,d))return n.return(null);h=f||a.g;k=!1;l=!0;e&&(a.u&&a.Na==h.abrFactory&&(l=!1),a.h&&"AUDIO"===a.h.nodeName&&(k=!0));m=Eq(a,b,c,d||null,h,!e,k,l);m=e?m.then(function(q){q.C=!1;return q}):m.then(function(q){a.Pe.push(q);return q});return n.return(m)})} +function Eq(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,q,r,u,w,v,y,z,A,B,D,G;return Q(function(C){if(1==C.g){k=null;l=Ed(e);g&&(l.manifest.disableVideo=!0);m=function(){return k.P&&k.s?null:k};n=function(){return m()?m().getConfiguration():a.g};if(Infinity!=a.oa.width||Infinity!=a.oa.height||a.g.ignoreHardwareResolution)return C.A(2);q=Rb();return F(C,q.nc(),3)}2!=C.g&&(r=C.h,a.oa.width=r.width,a.oa.height=r.height);u=new ui(l,a.oa,null);w={networkingEngine:a.H, +filter:function(E){var H,K;return Q(function(J){if(1==J.g)return F(J,vi(u,E),2);if(4!=J.g){H=J.h;if(!H)return J.A(0);K=lq("trackschanged");return F(J,Promise.resolve(),4)}k.dispatchEvent(K);I(J)})},makeTextStreamsForClosedCaptions:function(E){return Gq(a,E)},onTimelineRegionAdded:function(E){lm(k.H,E)},onEvent:function(E){return k.dispatchEvent(E)},onError:function(E){return k.onError(E)},isLowLatencyMode:function(){return n().streaming.lowLatencyMode},updateDuration:function(){a.l&&k.P&&a.l.updateDuration()}, +newDrmInfo:function(E){var H=k.i,K=H?H.g:null;K&&H.B&&yi(u,K.keySystem,E)},onManifestUpdated:function(){var E=(new Map).set("isLive",a.T());k.dispatchEvent(lq("manifestupdated",E));io(k,!1,function(){if(a.C)a.C.onManifestUpdated(a.T())})},getBandwidthEstimate:function(){return a.u.getBandwidthEstimate()},onMetadata:function(E,H,K,J){var L=E;if("com.apple.hls.interstitial"==E&&(L="com.apple.quicktime.HLS",E={startTime:H,endTime:K,values:J},a.C))a.C.onHLSInterstitialMetadata(a,a.h,E);J=t(J);E=J.next(); +for(var N={};!E.done;N={Ih:void 0},E=J.next())N.Ih=E.value,"ID"!=N.Ih.name&&io(k,!1,function(O){return function(){Hq(a,H,K,L,O.Ih)}}(N))},disableStream:function(E){return a.disableStream(E,a.g.streaming.maxDisabledTime)},addFont:function(E,H){return a.addFont(E,H)}};v=new km(function(){return a.xa()});v.addEventListener("regionadd",function(E){var H=E.region;Iq(a,"timelineregionadded",H,k);io(k,!1,function(){a.C&&(a.C.onDashTimedMetadata(H),a.C.onDASHInterstitialMetadata(a,a.h,H))})});y=null;l.streaming.observeQualityChanges&& +(y=new em(function(){return a.Qb()}),y.addEventListener("qualitychange",function(E){Jq(a,E.quality,E.position)}),y.addEventListener("audiotrackchange",function(E){Jq(a,E.quality,E.position,!0)}));z=!0;A={xc:a.H,onError:function(E){return k.onError(E)},Lf:function(E){io(k,!0,function(){if(a.D)a:{var H=E,K=lq("keystatuschanged");a.dispatchEvent(K);var J=Object.keys(H);1==J.length&&""==J[0]&&(J=["00"],H={"00":H[""]});K=1==J.length&&"00"==J[0];var L=!1;if(J.length){J=a.keySystem();for(var N=gh(a.g.drm.clearKeys), +O=t(a.i.variants),M=O.next();!M.done;M=O.next()){M=M.value;var P=[];M.audio&&P.push(M.audio);M.video&&P.push(M.video);P=t(P);for(var R=P.next();!R.done;R=P.next()){var T=R.value;R=M.allowedByKeySystem;if(T.keyIds.size)if(T.drmInfos.length&&!N.size){T=t(T.drmInfos);for(var ca=T.next();!ca.done;ca=T.next())if(ca=ca.value,ca.keyIds.size&&ca.keySystem==J){M.allowedByKeySystem=!0;ca=t(ca.keyIds);for(var Y=ca.next();!Y.done;Y=ca.next())if(Y=Y.value,(Y=H[K?"00":Y])||a.D.F)M.allowedByKeySystem=M.allowedByKeySystem&& +!!Y&&!Ai.includes(Y)}}else for(M.allowedByKeySystem=!0,T=t(T.keyIds),ca=T.next();!ca.done;ca=T.next())if(ca=ca.value,(ca=H[K?"00":ca])||a.D.F)M.allowedByKeySystem=M.allowedByKeySystem&&!!ca&&!Ai.includes(ca);R!=M.allowedByKeySystem&&(L=!0)}}}if(L&&(Kq(a),!Lq(a)))break a;(H=a.l.s)&&!H.allowedByKeySystem&&iq(a)}})},onExpirationUpdated:function(E,H){var K=lq("expirationupdated");k.dispatchEvent(K);if((K=k.l)&&K.onExpirationUpdated)K.onExpirationUpdated(E,H)},onEvent:function(E){k.dispatchEvent(E);"drmsessionupdate"== +E.type&&z&&(z=!1,E=Date.now()/1E3-k.Ia,(a.B||k.getStats()).m=E,a.P&&$c(a.P))}};B=eq(a,m);Wg(a.H,B);D=function(){return a.vd(A)};G={config:l,Gl:w,Rl:v,Ql:y,vd:D,Fl:u,networkingEngine:B,ek:f,dk:h};k=new ho(b,d,c,G);return C.return(k)})}function wq(a,b){var c,d,e;return Q(function(f){if(1==f.g)return c=a.g.manifest.retryParameters,F(f,Bo(b,a.H,c),2);d=f.h;"application/x-mpegurl"==d&&(e=Rb(),"WEBKIT"===e.Ga()&&(d="application/vnd.apple.mpegurl"));return f.return(d)})} +function Fq(a,b){if(!Fi(Rb()))return!0;if(b){if(""==(a.h||Gi()).canPlayType(b))return!1;if(!Fi(Rb())||!Di.has(b))return!0;if(mf(b))return"WEBKIT"===Rb().Ga()&&(a.g.drm.servers["com.apple.fps"]||a.g.drm.servers["com.apple.fps.1_0"])?a.g.streaming.useNativeHlsForFairPlay:a.g.streaming.preferNativeHls;if("application/dash+xml"===b||"video/vnd.mpeg.dash.mpd"===b)return a.g.streaming.preferNativeDash}return!1} +function Mq(a){var b=a.g.textDisplayFactory;if(a.si!==b){var c=a.s;a.s=b();a.s.configure?a.s.configure(a.g.textDisplayer):Uc("Text displayer w/ configure",'Text displayer should have a "configure" method!');a.s.setTextLanguage||Uc("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!');c?(a.s.setTextVisibility(c.isTextVisible()),c.destroy().catch(function(){})):a.s.setTextVisibility(a.Y);a.I&&nl(a.I,a.s);a.si=b;a.l&&Wm(a.l)}else a.s&&a.s.configure&&a.s.configure(a.g.textDisplayer)} +function uq(a){var b,c,d;return Q(function(e){if(1==e.g)return Rb(),qq(a,"media-source"),a.g.mediaSource.useSourceElements&&Nj(a.h),Mq(a),b=Nq(a.h,a.s,{Jk:function(){return a.keySystem()},onMetadata:function(f,g,h){f=t(f);for(var k=f.next();!k.done;k=f.next())if(k=k.value,k.data&&"number"==typeof k.cueTime&&k.frames){var l=k.cueTime+g,m=h;m&&l>m&&(m=l);for(var n=t(k.frames),q=n.next();!q.done;q=n.next())Hq(a,l,m,"org.id3",q.value);if(a.C)a.C.onHlsTimedMetadata(k,l)}},Ll:function(f){a.Ta&&lm(a.Ta, +{schemeIdUri:f.schemeIdUri,startTime:f.startTime,endTime:f.endTime,id:String(f.id),emsg:f})},onEvent:function(f){return a.dispatchEvent(f)},Nl:function(){a.G&&a.G.update&&a.G.update()}},a.P,a.g.mediaSource),c=a.g.manifest,d=c.segmentRelativeVttTiming,b.Ia=d,F(e,b.J,2);a.I=b;I(e)})} +function Oq(a,b,c){function d(){return Pq(a)}a.j.o(b,"playing",d);a.j.o(b,"pause",d);a.j.o(b,"ended",d);a.j.o(b,"ratechange",function(){var f=a.h.playbackRate;0!=f&&(a.J&&(a.J.set(f),a.m==Qq&&a.u.playbackRateChanged(f),Rq(a,f)),f=lq("ratechange"),a.dispatchEvent(f))});b.remote&&(a.j.o(b.remote,"connect",function(){a.l&&"connected"==b.remote.state&&Sq(a);Kq(a)}),a.j.o(b.remote,"connecting",function(){return Kq(a)}),a.j.o(b.remote,"disconnect",function(){return Q(function(f){if(1==f.g)return a.l&&"disconnected"== +b.remote.state?F(f,tn(a.l),3):f.A(2);2!=f.g&&Sq(a);Kq(a);I(f)})}));b.audioTracks&&(a.j.o(b.audioTracks,"addtrack",function(){return Kq(a)}),a.j.o(b.audioTracks,"removetrack",function(){return Kq(a)}),a.j.o(b.audioTracks,"change",function(){return Kq(a)}));b.videoTracks&&(a.j.o(b.videoTracks,"addtrack",function(){return Kq(a)}),a.j.o(b.videoTracks,"removetrack",function(){return Kq(a)}),a.j.o(b.videoTracks,"change",function(){return Kq(a)}));if(b.textTracks){var e=function(){a.m===Tq&&a.s instanceof +Oo&&Sq(a);Kq(a)};a.j.o(b.textTracks,"addtrack",function(f){if(f.track)switch(f=f.track,f.kind){case "metadata":Uq(a,f);break;case "chapters":Vq(a,f);break;default:e()}});a.j.o(b.textTracks,"removetrack",e);a.j.o(b.textTracks,"change",e);"keep"!==a.g.streaming.crossBoundaryStrategy&&(a.j.o(b,"waiting",function(){a.l&&an(a.l)}),a.j.o(b,"timeupdate",function(){a.l&&an(a.l)}))}"none"!=b.preload&&a.j.qa(b,"loadedmetadata",function(){a.B.F=Date.now()/1E3-c})} +function Bq(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M;return Q(function(P){switch(P.g){case 1:qq(a,"load");e=a.h;a.J=new am({qf:function(){return e.playbackRate},bd:function(){return e.defaultPlaybackRate},Xh:function(R){e.playbackRate=R},hj:function(R){e.currentTime+=R}});Oq(a,e,b);"onchange"in window.screen&&a.j.o(window.screen,"change",function(){if(a.L.getConfiguration){var R=a.L.getConfiguration();"AUTO"==R.Lc?Lq(a):"AUTO"==a.g.preferredVideoHdrLevel&&a.g.abr.enabled&& +(R.Lc="AUTO",a.L.configure(R),Lq(a))}});f=!1;g=t(a.i.variants);for(h=g.next();!h.done;h=g.next())k=h.value,(l=k.video&&k.video.dependencyStream)&&(f=ad(l));kq(a,a.g,f);a.Kd=a.g.preferredTextLanguage;a.Ke=a.g.preferredTextRole;a.Je=a.g.preferForcedSubs;Wq(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.u.init(function(R,T,ca){a.i&&a.l&&R!=a.l.s&&Xq(a,R,!0,void 0===T?!1:T,void 0===ca?0:ca)});a.u.setMediaElement(e);a.u.setCmsdManager(a.na);a.l=Yq(a);a.l.configure(a.g.streaming);a.m=Qq; +a.dispatchEvent(lq("streaming"));m=c;case 2:(q=a.l.s)||m||(m=Lq(a)?a.u.chooseVariant():null);r=[];n=q||m;u=t([n.video,n.audio]);for(w=u.next();!w.done;w=u.next())(v=w.value)&&!v.segmentIndex&&(r.push(v.createSegmentIndex()),v.dependencyStream&&r.push(v.dependencyStream.createSegmentIndex()));if(!(0E&&(B=E);return F(P,br(m,B),9);case 9:H=P.h,y(H);case 8:Xq(a,m,!0,!1,0);case 7:return a.F.ready(),K=a.rc().find(function(R){return R.active}), +K||((J=jg(a.i.textStreams,a.Kd,a.Ke,a.Je)[0]||null)&&$n(a.B.h,J,!0),m&&(J?(mg(m.audio,J,a.g)&&(a.Y=!0),a.Y&&a.s.setTextVisibility(!0)):(a.Y=!1,a.s.setTextVisibility(!1)),cr(a)),J&&(a.g.streaming.alwaysStreamText||a.gd())&&(Vm(a.l,J),dr(a))),F(P,a.l.start(d),10);case 10:a.g.abr.enabled&&(a.u.enable(),er(a));Kq(a);Lq(a);a.i.variants.some(function(R){return R.primary});if((L=a.T())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)N= +function(){return fr(a)},a.j.o(e,"timeupdate",N);L||(O=function(){return gr(a)},a.j.o(e,"timeupdate",O),gr(a),a.i.nextUrl&&(0, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'), +l.resolve()),a.j.qa(d,"error",function(){l.reject(sq(a))}),F(w,Df(a.g.streaming.loadTimeout,l),4);case 4:if((n=a.T())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)q=function(){return fr(a)},a.j.o(d,"timeupdate",q);n||(r=function(){return gr(a)},a.j.o(d,"timeupdate",r),gr(a));a.C&&(a.C.onManifestUpdated(n),n&&(u=a.xa().end,a.j.o(d,"progress",function(){var v=a.xa().end;u!=v&&(a.C.onManifestUpdated(a.T()),u=v)}))); +a.Z=!0;I(w)}})}function kr(a){var b=a.g.preferredAudioLanguage;""!=b&&a.yj(b,a.g.preferredVariantRole)}function mr(a){var b=a.g.preferredTextLanguage;""!=b&&a.Sh(b,a.g.preferredTextRole,a.g.preferForcedSubs)} +function Uq(a,b){if("metadata"==b.kind){b.mode="hidden";a.j.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,Hq(a,e.startTime,e.endTime,e.type,e.value),a.C)a.C.onCueMetadataChange(e.value);if(b.cues){d=[];e=t(b.cues);for(var f=e.next(),g={};!f.done;g={Fc:void 0},f=e.next())g.Fc=f.value,"com.apple.quicktime.HLS"==g.Fc.type&&null!=g.Fc.startTime&&(f=d.find(function(h){return function(k){return k.startTime==h.Fc.startTime&&k.endTime==h.Fc.endTime}}(g)), +f||(f={startTime:g.Fc.startTime,endTime:g.Fc.endTime,values:[]},d.push(f)),f.values.push(g.Fc.value));d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,e.values.some(function(h){return"X-ASSET-URI"==h.key||"X-ASSET-LIST"==h.key})&&a.C&&(e.values.push({key:"CUE",description:"",data:0!=e.startTime||a.T()?"ONCE":"ONCE,PRE",mimeType:null,pictureType:null}),a.C.onHLSInterstitialMetadata(a,a.h,e))}});var c=(new zf(function(){var d=nr(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Ka().X(.5); +a.Ie.push(function(){c.stop()})}}function yq(a,b,c){b=(new Map).set("startTime",b.startTime).set("endTime",b.endTime).set("metadataType",b.schemeIdUri).set("payload",b.payload);a.dispatchEvent(lq(c,b))}function Hq(a,b,c,d,e){a.sa&&(b={schemeIdUri:d,startTime:b,endTime:c||Infinity,id:"",payload:e},b.id=JSON.stringify(b),lm(a.sa,b))}function Vq(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new zf(function(){b.mode="hidden"})).Ka().X(.5);a.Ie.push(function(){c.stop()})}} +p.Vl=function(){for(var a=this.$;a.g;)a.release()};p.vd=function(a){return new yh(a)}; +function eq(a,b){function c(f){b()?b().dispatchEvent(f):a.dispatchEvent(f)}function d(f){b()?io(b(),!0,f):f()}b||(b=function(){return null});var e=new Sg(function(f,g,h,k,l){var m=b()?b().j:a.u;m&&m.segmentDownloaded(f,g,h,k,l)},function(f,g,h){g=(new Map).set("headers",f).set("request",g).set("requestType",h);c(lq("downloadheadersreceived",g));d(function(){if(a.na){var k=a.na;if(k.h.enabled){var l=f["cmsd-static"];if(l)try{var m=new Map,n=l.split(",");for(l=0;lv);if(z){var A=z.next().value;if(A&&A!=q){if(n&&!ud(q.S(),A.S())){var B=A.S()[0],D=new URL(B),G=new URL(n);if(D.origin!==G.origin)var C=B;else{for(var E=D.pathname.split("/").slice(1),H=G.pathname.split("/").slice(1,-1);E[0]===H[0];)E.shift(),H.shift();for(;H.length;)H.shift(),E.unshift("..");C=E.join("/")}r.nor=C}if((A.startByte|| +A.endByte)&&(q.startByte!=A.startByte||q.endByte!=A.endByte)){var K=A.startByte+"-";A.endByte&&(K+=A.endByte);r.nrr=K}}}var J=k.h.Xa()||1,L=Ep(k,w.type)||500,N=w.bandwidth;var O=N?N*(q.endTime-q.startTime)/1E3/(L/J/1E3)*k.g.rtpSafetyFactor:NaN;isNaN(O)||(r.rtp=O)}}u&&r.ot!==Bp&&(r.tb=Fp(k,r.ot)/1E3);up(k,g,r)}}catch(M){bb("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",M)}break;case 2:case 5:case 6:up(k,g,{ot:"k"});break;case 4:up(k,g,{ot:"o"})}})},function(f,g,h,k){(f=b()?b().l:a.G)&& +f.banLocation&&f.banLocation(k)},function(f,g){if(g.data){g=g.data.byteLength;var h=b()?b().getStats():a.B;h&&(fo(h,g),0===f&&(h.bj=g))}});e.configure(a.g.networking);return e}function Zq(a,b){return new Ql(a.h,a.i,a.g.streaming,b,function(){a.cb&&dm(a.cb,!0);a.l&&a.l.md();a.O&&or(a)},function(c){return a.dispatchEvent(c)})} +function $q(a,b){var c=a.T()||"number"===typeof b&&0=e&&0=b)return 1;if(!(a<=this.h.currentTime)&&a=b)return 1;if(!(a<=this.h.currentTime)&&al(r,m))&&(q=r);q!=m&&(q?(m=Zf(q),k.Nd(m,!0,d||0)):aq(k))}var k=this;c=void 0===c?0:c;d=void 0===d?0:d;e=void 0===e?"":e;f=void 0===f?!1:f;g=void 0===g?"":g;if(this.i&&this.F&&(h(),!this.Da()))return;(function(){if(k.h&&k.h.audioTracks){var l= -ig(k.kb(),a,b||"",!1)[0];l&&k.Nd(l)}})()};p.Rh=function(a,b,c){function d(){e.Id=a;e.Je=b||"";e.Ie=c||!1;var f=ig(e.i.textStreams,e.Id,e.Je,e.Ie)[0]||null;f&&f!=e.l.B&&(Sn(e.B.h,f,!1),e.g.streaming.alwaysStreamText||e.$c())&&(Om(e.l,f),Kq(e),Wq(e))}var e=this;c=void 0===c?!1:c;if(this.i&&this.F&&(d(),!this.Da()))return;(function(){var f=ig(e.qc(),a,b||"",c||!1)[0];f&&e.Zf(f)})()}; -p.cm=function(a,b,c){function d(){for(var f=null,g=u(e.i.variants),h=g.next();!h.done;h=g.next())if(h=h.value,h.audio.label==a){f=h;break}null!=f&&(e.N=e.g.adaptationSetCriteriaFactory(),e.N.configure({language:f.language,role:"",channelCount:0,Gc:"",spatialAudio:!1,videoLayout:"",Qd:"",qd:a,codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,audioCodec:"",Sd:"",We:0,preferredAudioCodecs:e.g.preferredAudioCodecs,preferredAudioChannelCount:e.g.preferredAudioChannelCount}),aq(e,b,c))}var e= -this;b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.F&&(d(),!this.Da()))return;(function(){if(e.h&&e.h.audioTracks){var f=Array.from(e.h.audioTracks),g=null;f=u(f);for(var h=f.next();!h.done;h=f.next())h=h.value,h.label==a&&(g=h);g&&nr(e,g)}})()};p.$c=function(){var a=this.na;return this.s?this.s.isTextVisible():a};p.wk=function(){return this.Za.map(function(a){return $f(a)})}; -p.vk=function(a){Uc("getChapters","Please use an getChaptersAsync.");if(!this.Za.length)return[];var b=yc(a);a=this.Za.filter(function(f){return yc(f.language)==b});if(!a.length)return[];var c=[],d=new Set;a=u(a);for(var e=a.next();!e.done;e=a.next())e=e.value,e.segmentIndex&&e.segmentIndex.Gb(function(f){var g=f.S()[0],h=f.startTime+"-"+f.endTime+"-"+g;f={id:h,title:g,startTime:f.startTime,endTime:f.endTime};d.has(h)||(c.push(f),d.add(h))});return c}; -p.eh=function(a){var b=this,c,d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(!b.Za.length)return l.return([]);c=yc(a);d=b.Za.filter(function(m){return yc(m.language)==c});if(!d.length)return l.return([]);e=[];f=new Set;g=u(d);h=g.next();case 2:if(h.done){l.A(4);break}k=h.value;if(k.segmentIndex){l.A(5);break}return F(l,k.createSegmentIndex(),5);case 5:k.segmentIndex.Gb(function(m){var n=m.S()[0],q=m.startTime+"-"+m.endTime+"-"+n;m={id:q,title:n,startTime:m.startTime,endTime:m.endTime};f.has(q)|| -(e.push(m),f.add(q))});h=g.next();l.A(2);break;case 4:return l.return(e)}})};function ar(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function br(a){return Array.from(a.h.textTracks).find(function(b){return"Shaka Player TextTrack"==b.label})}function fr(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"==b.kind})} -p.ze=function(a){a=!!a;this.na!=a&&(this.na=a,this.m==Iq?(this.s.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.l.B||(a=ig(this.i.textStreams,this.Id,this.Je,this.Ie),0l(r,m))&&(q=r);q!=m&&(q?(m=$f(q),k.ye(m,!0,d||0)):iq(k))}var k=this;c=void 0===c?0:c;d=void 0===d?0:d;e=void 0===e?"":e;f=void 0===f?!1:f;g=void 0===g?"":g;if(this.i&&this.F&&(h(),!this.Ca()))return;(function(){if(k.h&&k.h.audioTracks){var l= +jg(k.qb(),a,b||"",!1)[0];l&&k.ye(l)}})()};p.Sh=function(a,b,c){function d(){e.Kd=a;e.Ke=b||"";e.Je=c||!1;var f=jg(e.i.textStreams,e.Kd,e.Ke,e.Je)[0]||null;f&&f!=e.l.B&&($n(e.B.h,f,!1),e.g.streaming.alwaysStreamText||e.gd())&&(Vm(e.l,f),Sq(e),dr(e))}var e=this;c=void 0===c?!1:c;if(this.i&&this.F&&(d(),!this.Ca()))return;(function(){var f=jg(e.rc(),a,b||"",c||!1)[0];f&&e.$f(f)})()}; +p.dm=function(a,b,c){function d(){for(var f=null,g=t(e.i.variants),h=g.next();!h.done;h=g.next())if(h=h.value,h.audio.label==a){f=h;break}null!=f&&(e.L=e.g.adaptationSetCriteriaFactory(),e.L.configure({language:f.language,role:"",channelCount:0,Lc:"",spatialAudio:!1,videoLayout:"",Rd:"",Uc:a,codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,audioCodec:"",Td:"",We:0,preferredAudioCodecs:e.g.preferredAudioCodecs,preferredAudioChannelCount:e.g.preferredAudioChannelCount}),iq(e,b,c))}var e= +this;b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.F&&(d(),!this.Ca()))return;(function(){if(e.h&&e.h.audioTracks){var f=Array.from(e.h.audioTracks),g=null;f=t(f);for(var h=f.next();!h.done;h=f.next())h=h.value,h.label==a&&(g=h);g&&vr(e,g)}})()};p.gd=function(){var a=this.Y;return this.s?this.s.isTextVisible():a};p.xk=function(){return this.Ya.map(function(a){return ag(a)})}; +p.wk=function(a){Uc("getChapters","Please use an getChaptersAsync.");if(!this.Ya.length)return[];var b=yc(a);a=this.Ya.filter(function(f){return yc(f.language)==b});if(!a.length)return[];var c=[],d=new Set;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,e.segmentIndex&&e.segmentIndex.Hb(function(f){var g=f.S()[0],h=f.startTime+"-"+f.endTime+"-"+g;f={id:h,title:g,startTime:f.startTime,endTime:f.endTime};d.has(h)||(c.push(f),d.add(h))});return c}; +p.fh=function(a){var b=this,c,d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(!b.Ya.length)return l.return([]);c=yc(a);d=b.Ya.filter(function(m){return yc(m.language)==c});if(!d.length)return l.return([]);e=[];f=new Set;g=t(d);h=g.next();case 2:if(h.done){l.A(4);break}k=h.value;if(k.segmentIndex){l.A(5);break}return F(l,k.createSegmentIndex(),5);case 5:k.segmentIndex.Hb(function(m){var n=m.S()[0],q=m.startTime+"-"+m.endTime+"-"+n;m={id:q,title:n,startTime:m.startTime,endTime:m.endTime};f.has(q)|| +(e.push(m),f.add(q))});h=g.next();l.A(2);break;case 4:return l.return(e)}})};function ir(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function jr(a){return Array.from(a.h.textTracks).find(function(b){return"Shaka Player TextTrack"==b.label})}function nr(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"==b.kind})} +p.Ae=function(a){a=!!a;this.Y!=a&&(this.Y=a,this.m==Qq?(this.s.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.l.B||(a=jg(this.i.textStreams,this.Kd,this.Ke,this.Je),0=Math.floor(d.end)&&a.rd():Math.floor(c)<=Math.floor(d.start+e)&&a.rd()})} -function Hq(a){if(a.B&&a.O){var b=a.B.g,c="playing";a.O.g==si?c="buffering":a.isEnded()?c="ended":a.h.paused&&(c="paused");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(dq("statechanged",c)))}} -function Yq(a){var b=a.h.playbackRate,c=a.T();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Ni();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Nc(d,!1):1==e&&b!==a.J.Uc()&&a.rd()}if(c&&(c=a.xa(),Number.isFinite(c.end)&&!(a.h.currentTime=Math.floor(d.end)&&a.ud():Math.floor(c)<=Math.floor(d.start+f)&&a.ud()})} +function Pq(a){if(a.B&&a.O){var b=a.B.g,c="playing";a.O.g==ti?c="buffering":a.isEnded()?c="ended":a.h.paused&&(c="paused");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(lq("statechanged",c)))}} +function fr(a){var b=a.h.playbackRate,c=a.T();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Oi();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Sc(d,!1):1==e&&b!==a.J.bd()&&a.ud()}if(c&&(c=a.xa(),Number.isFinite(c.end)&&!(a.h.currentTime1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency, -a.R=Math.max(a.R-(g-f)/2,f+d),a.Kb=Date.now());e&&null!==a.R&&(h=a.R+d,k=a.R-d);g=c.end-a.h.currentTime;d=0;a.m==Lq&&(e=a.h.buffered,0h?(b!=l&&a.Nc(l,!1),a.Kb=null):void 0!=k&&m&&g-de)&&a.sgb&&(b+=Math.pow(2,32)),b=b.toString(16);return new V(2,3,3016,c,b,a.h.error.message)}function Oq(a,b,c){0=this.xa().end};S("shaka.Player",X);X.prototype.isEnded=X.prototype.isEnded;X.prototype.isRemotePlayback=X.prototype.Da;X.prototype.addFont=X.prototype.addFont;X.prototype.setVideoContainer=X.prototype.Yh;X.prototype.getFetchedPlaybackInfo=X.prototype.Fk;X.prototype.getManifestParserFactory=X.prototype.Nk; -X.prototype.getManifest=X.prototype.hh;X.prototype.retryStreaming=X.prototype.Nh;X.prototype.setMaxHardwareResolution=X.prototype.im;X.prototype.addChaptersTrack=X.prototype.Xe;X.prototype.addThumbnailsTrack=X.prototype.Ye;X.prototype.addTextTrackAsync=X.prototype.Td;X.prototype.getStats=X.prototype.getStats;X.prototype.getBufferedInfo=X.prototype.Pb;X.prototype.getSegmentAvailabilityDuration=X.prototype.rf;X.prototype.getPresentationStartTimeAsDate=X.prototype.jh; -X.prototype.getPlayheadTimeAsDate=X.prototype.Rk;X.prototype.setTextTrackVisibility=X.prototype.ze;X.prototype.getChaptersAsync=X.prototype.eh;X.prototype.getChapters=X.prototype.vk;X.prototype.getChaptersTracks=X.prototype.wk;X.prototype.isTextTrackVisible=X.prototype.$c;X.prototype.selectVariantsByLabel=X.prototype.cm;X.prototype.selectTextLanguage=X.prototype.Rh;X.prototype.selectAudioLanguage=X.prototype.xj;X.prototype.getTextLanguages=X.prototype.Yk;X.prototype.getAudioLanguages=X.prototype.pk; -X.prototype.getTextLanguagesAndRoles=X.prototype.Zk;X.prototype.getAudioLanguagesAndRoles=X.prototype.qk;X.prototype.getVideoTracks=X.prototype.getVideoTracks;X.prototype.selectVideoTrack=X.prototype.zj;X.prototype.getAudioTracks=X.prototype.getAudioTracks;X.prototype.selectAudioTrack=X.prototype.yj;X.prototype.selectVariantTrack=X.prototype.Nd;X.prototype.selectTextTrack=X.prototype.Zf;X.prototype.getThumbnails=X.prototype.Ri;X.prototype.getAllThumbnails=X.prototype.nk; -X.prototype.getImageTracks=X.prototype.gh;X.prototype.getTextTracks=X.prototype.qc;X.prototype.getVariantTracks=X.prototype.kb;X.prototype.cancelTrickPlay=X.prototype.rd;X.prototype.trickPlay=X.prototype.Nc;X.prototype.useTrickPlayTrackIfAvailable=X.prototype.oi;X.prototype.getPlaybackRate=X.prototype.Ya;X.prototype.isBuffering=X.prototype.xf;X.prototype.getKeyStatuses=X.prototype.nf;X.prototype.getActiveSessionsMetadata=X.prototype.dh;X.prototype.getExpiration=X.prototype.be; -X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.isFullyLoaded=X.prototype.ul;X.prototype.goToLive=X.prototype.ll;X.prototype.seekRange=X.prototype.xa;X.prototype.isVideoOnly=X.prototype.wh;X.prototype.isAudioOnly=X.prototype.zd;X.prototype.isInProgress=X.prototype.Zc;X.prototype.isLive=X.prototype.T;X.prototype.getQueueManager=X.prototype.kh;X.prototype.getAdManager=X.prototype.mf;X.prototype.getAssetUri=X.prototype.xd; -X.prototype.getNetworkingEngine=X.prototype.Hb;X.prototype.getMediaElement=X.prototype.Qk;X.prototype.getManifestType=X.prototype.ih;X.prototype.getLoadMode=X.prototype.Jk;X.prototype.resetConfiguration=X.prototype.sj;X.prototype.getBufferFullness=X.prototype.Ni;X.prototype.getNonDefaultConfiguration=X.prototype.Qi;X.prototype.getConfigurationForLowLatency=X.prototype.zk;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.configurationForLowLatency=X.prototype.jk; -X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prototype.Ul;X.prototype.destroyAllPreloads=X.prototype.Ng;X.prototype.preload=X.prototype.preload;X.prototype.detachAndSavePreload=X.prototype.Ji;X.prototype.unloadAndSavePreload=X.prototype.nm;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.rm;X.prototype.unload=X.prototype.kc;X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.wi;X.prototype.attach=X.prototype.$b; -X.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:b={};if(!a){k.A(2);break}return F(k,ki(),3);case 3:b=k.h;case 2:return c=Di(),d=Ak(),e=Rb(),F(k,e.mc(),4);case 4:return f=k.h,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=gq,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};X.isBrowserSupported=hq;X.setQueueManagerFactory=function(a){Zp=a};X.setAdManagerFactory=function(a){Yp=a};X.registerSupportPlugin=fq;X.prototype.destroy=X.prototype.destroy; -var eq=0,Up=1,Iq=2,Lq=3;X.LoadMode={DESTROYED:eq,NOT_LOADED:Up,MEDIA_SOURCE:Iq,SRC_EQUALS:Lq};X.version="v4.15.0";var yr=["4","15"];Vc=new function(a){this.g=a;this.i=Wc;this.h=Xc}(new Tc(Number(yr[0]),Number(yr[1])));var gq=new Map,Yp=null,Zp=null;function zr(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function Ar(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function Br(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new Oc;this.l.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=Br.prototype;p.needsSkipUI=function(){return!1};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!0};p.getDuration=function(){return this.g.getDuration()}; +k=Math.max(0,a.i.serviceDescription.targetLatency-d):null!=a.i.serviceDescription.minLatency&&(k=a.i.serviceDescription.minLatency),l=a.i.serviceDescription.maxPlaybackRate||a.g.streaming.liveSync.maxPlaybackRate,m=a.i.serviceDescription.minPlaybackRate||a.g.streaming.liveSync.minPlaybackRate);a.R||"number"!==typeof g||(a.R=g);var n=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.Lb&&null!==a.R&&"number"===typeof g&&a.Ve1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency, +a.R=Math.max(a.R-(g-f)/2,f+d),a.Lb=Date.now());e&&null!==a.R&&(h=a.R+d,k=a.R-d);g=c.end-a.h.currentTime;d=0;a.m==Tq&&(e=a.h.buffered,0h?(b!=l&&a.Sc(l,!1),a.Lb=null):void 0!=k&&m&&g-de)&&a.ugb&&(b+=Math.pow(2,32)),b=b.toString(16);return new V(2,3,3016,c,b,a.h.error.message)}function Wq(a,b,c){0=this.xa().end};S("shaka.Player",X);X.prototype.isEnded=X.prototype.isEnded;X.prototype.isRemotePlayback=X.prototype.Ca;X.prototype.addFont=X.prototype.addFont;X.prototype.setVideoContainer=X.prototype.Zh;X.prototype.getFetchedPlaybackInfo=X.prototype.Gk;X.prototype.getManifestParserFactory=X.prototype.Ok; +X.prototype.getManifest=X.prototype.ih;X.prototype.retryStreaming=X.prototype.Oh;X.prototype.setMaxHardwareResolution=X.prototype.jm;X.prototype.addChaptersTrack=X.prototype.Xe;X.prototype.addThumbnailsTrack=X.prototype.Ye;X.prototype.addTextTrackAsync=X.prototype.Ud;X.prototype.getStats=X.prototype.getStats;X.prototype.getBufferedInfo=X.prototype.Qb;X.prototype.getSegmentAvailabilityDuration=X.prototype.rf;X.prototype.getPresentationStartTimeAsDate=X.prototype.kh; +X.prototype.getPlayheadTimeAsDate=X.prototype.Sk;X.prototype.setTextTrackVisibility=X.prototype.Ae;X.prototype.getChaptersAsync=X.prototype.fh;X.prototype.getChapters=X.prototype.wk;X.prototype.getChaptersTracks=X.prototype.xk;X.prototype.isTextTrackVisible=X.prototype.gd;X.prototype.selectVariantsByLabel=X.prototype.dm;X.prototype.selectTextLanguage=X.prototype.Sh;X.prototype.selectAudioLanguage=X.prototype.yj;X.prototype.getTextLanguages=X.prototype.Zk;X.prototype.getAudioLanguages=X.prototype.qk; +X.prototype.getTextLanguagesAndRoles=X.prototype.$k;X.prototype.getAudioLanguagesAndRoles=X.prototype.rk;X.prototype.getVideoTracks=X.prototype.getVideoTracks;X.prototype.selectVideoTrack=X.prototype.Aj;X.prototype.getAudioTracks=X.prototype.getAudioTracks;X.prototype.selectAudioTrack=X.prototype.zj;X.prototype.selectVariantTrack=X.prototype.ye;X.prototype.selectTextTrack=X.prototype.$f;X.prototype.getThumbnails=X.prototype.Si;X.prototype.getAllThumbnails=X.prototype.pk; +X.prototype.getImageTracks=X.prototype.hh;X.prototype.getTextTracks=X.prototype.rc;X.prototype.getVariantTracks=X.prototype.qb;X.prototype.cancelTrickPlay=X.prototype.ud;X.prototype.trickPlay=X.prototype.Sc;X.prototype.useTrickPlayTrackIfAvailable=X.prototype.oi;X.prototype.getPlaybackRate=X.prototype.Xa;X.prototype.isBuffering=X.prototype.xf;X.prototype.getKeyStatuses=X.prototype.nf;X.prototype.getActiveSessionsMetadata=X.prototype.eh;X.prototype.getExpiration=X.prototype.be; +X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.isFullyLoaded=X.prototype.vl;X.prototype.goToLive=X.prototype.ol;X.prototype.seekRange=X.prototype.xa;X.prototype.isVideoOnly=X.prototype.xh;X.prototype.isAudioOnly=X.prototype.Cd;X.prototype.isInProgress=X.prototype.fd;X.prototype.isLive=X.prototype.T;X.prototype.getQueueManager=X.prototype.lh;X.prototype.getAdManager=X.prototype.mf;X.prototype.getAssetUri=X.prototype.$c; +X.prototype.getNetworkingEngine=X.prototype.Ib;X.prototype.getMediaElement=X.prototype.Rk;X.prototype.getManifestType=X.prototype.jh;X.prototype.getLoadMode=X.prototype.Kk;X.prototype.resetConfiguration=X.prototype.tj;X.prototype.getBufferFullness=X.prototype.Oi;X.prototype.getNonDefaultConfiguration=X.prototype.Ri;X.prototype.getConfigurationForLowLatency=X.prototype.Ak;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.configurationForLowLatency=X.prototype.kk; +X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prototype.Vl;X.prototype.destroyAllPreloads=X.prototype.Og;X.prototype.preload=X.prototype.preload;X.prototype.detachAndSavePreload=X.prototype.Ki;X.prototype.unloadAndSavePreload=X.prototype.om;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.sm;X.prototype.unload=X.prototype.lc;X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.xi;X.prototype.attach=X.prototype.$b; +X.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:b={};if(!a){k.A(2);break}return F(k,li(),3);case 3:b=k.h;case 2:return c=Ei(),d=Bk(),e=Rb(),F(k,e.nc(),4);case 4:return f=k.h,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=oq,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};X.isBrowserSupported=pq;X.setQueueManagerFactory=function(a){gq=a};X.setAdManagerFactory=function(a){fq=a};X.registerSupportPlugin=nq;X.prototype.destroy=X.prototype.destroy; +var mq=0,bq=1,Qq=2,Tq=3;X.LoadMode={DESTROYED:mq,NOT_LOADED:bq,MEDIA_SOURCE:Qq,SRC_EQUALS:Tq};X.version="v4.15.4";var Gr=["4","15"];Vc=new function(a){this.g=a;this.i=Wc;this.h=Xc}(new Tc(Number(Gr[0]),Number(Gr[1])));var oq=new Map,fq=null,gq=null;function Hr(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function Ir(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function Jr(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new Oc;this.l.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=Jr.prototype;p.needsSkipUI=function(){return!1};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!0};p.getDuration=function(){return this.g.getDuration()}; p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.h.getRemainingTime()};p.isPaused=function(){return this.i};p.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.h.getAdSkippableState()};p.skip=function(){return this.h.skip()};p.pause=function(){return this.h.pause()}; p.play=function(){return this.h.resume()};p.getVolume=function(){return this.h.getVolume()};p.setVolume=function(a){this.m.volume=a;return this.h.setVolume(a)};p.isMuted=function(){return 0==this.h.getVolume()};p.isLinear=function(){return this.g.isLinear()};p.resize=function(a,b){this.h.resize(a,b)};p.setMuted=function(a){(this.m.muted=a)?(this.j=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.j)};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()}; p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()}; -p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return this.g.getMediaUrl()};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.g=null};S("shaka.ads.ClientSideAd",Br);Br.prototype.release=Br.prototype.release;Br.prototype.getPodIndex=Br.prototype.getPodIndex; -Br.prototype.getTimeOffset=Br.prototype.getTimeOffset;Br.prototype.getMediaUrl=Br.prototype.getMediaUrl;Br.prototype.getAdvertiserName=Br.prototype.getAdvertiserName;Br.prototype.getCreativeAdId=Br.prototype.getCreativeAdId;Br.prototype.getAdId=Br.prototype.getAdId;Br.prototype.getVastAdId=Br.prototype.getVastAdId;Br.prototype.getVastMediaWidth=Br.prototype.getVastMediaWidth;Br.prototype.getVastMediaHeight=Br.prototype.getVastMediaHeight;Br.prototype.getVastMediaBitrate=Br.prototype.getVastMediaBitrate; -Br.prototype.getDescription=Br.prototype.getDescription;Br.prototype.getTitle=Br.prototype.getTitle;Br.prototype.getPositionInSequence=Br.prototype.getPositionInSequence;Br.prototype.getSequenceLength=Br.prototype.getSequenceLength;Br.prototype.setMuted=Br.prototype.setMuted;Br.prototype.resize=Br.prototype.resize;Br.prototype.isLinear=Br.prototype.isLinear;Br.prototype.isMuted=Br.prototype.isMuted;Br.prototype.setVolume=Br.prototype.setVolume;Br.prototype.getVolume=Br.prototype.getVolume; -Br.prototype.play=Br.prototype.play;Br.prototype.pause=Br.prototype.pause;Br.prototype.skip=Br.prototype.skip;Br.prototype.canSkipNow=Br.prototype.canSkipNow;Br.prototype.getTimeUntilSkippable=Br.prototype.getTimeUntilSkippable;Br.prototype.isSkippable=Br.prototype.isSkippable;Br.prototype.isPaused=Br.prototype.isPaused;Br.prototype.getRemainingTime=Br.prototype.getRemainingTime;Br.prototype.getMinSuggestedDuration=Br.prototype.getMinSuggestedDuration;Br.prototype.getDuration=Br.prototype.getDuration; -Br.prototype.isUsingAnotherMediaElement=Br.prototype.isUsingAnotherMediaElement;Br.prototype.hasCustomClick=Br.prototype.hasCustomClick;Br.prototype.isClientRendering=Br.prototype.isClientRendering;Br.prototype.needsSkipUI=Br.prototype.needsSkipUI;function Cr(){} -function Dr(a,b){var c=[];a=u(Od(a,"Ad"));for(var d=a.next();!d.done;d=a.next())if(d=Sd(d.value,"InLine"))if(d=Sd(d,"Creatives")){d=u(Od(d,"Creative"));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=Sd(e,"Linear");f&&Er(c,b,f);if(e=Sd(e,"NonLinearAds")){e=Od(e,"NonLinear");e=u(e);for(var g=e.next();!g.done;g=e.next())a:{f=c;var h=b,k=g.value,l=Sd(k,"StaticResource");if(l)g=l.attributes.creativeType;else{l=Sd(k,"HTMLResource");if(!l)break a;g="text/html"}if(l=Qd(l)){"text/html"===g&&(l="data:text/html;charset=UTF-8,"+ -encodeURIComponent(l));var m=Vd(k,"width",ae)||Vd(k,"expandedWidth",ae),n=Vd(k,"height",ae)||Vd(k,"expandedHeight",ae);if(m||n){var q=null;(k=k.attributes.minSuggestedDuration)&&(q=Cd(k));k=0;null!=h&&(k=h);f.push({id:null,groupId:null,startTime:k,endTime:null,uri:l,mimeType:g,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:q,once:!0,pre:null==h,post:Infinity==h,timelineRange:!1,loop:!1,overlay:{viewport:{x:0,y:0},topLeft:{x:0,y:0},size:{x:m||0,y:n||0}},displayOnBackground:!1, +p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return this.g.getMediaUrl()};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.g=null};S("shaka.ads.ClientSideAd",Jr);Jr.prototype.release=Jr.prototype.release;Jr.prototype.getPodIndex=Jr.prototype.getPodIndex; +Jr.prototype.getTimeOffset=Jr.prototype.getTimeOffset;Jr.prototype.getMediaUrl=Jr.prototype.getMediaUrl;Jr.prototype.getAdvertiserName=Jr.prototype.getAdvertiserName;Jr.prototype.getCreativeAdId=Jr.prototype.getCreativeAdId;Jr.prototype.getAdId=Jr.prototype.getAdId;Jr.prototype.getVastAdId=Jr.prototype.getVastAdId;Jr.prototype.getVastMediaWidth=Jr.prototype.getVastMediaWidth;Jr.prototype.getVastMediaHeight=Jr.prototype.getVastMediaHeight;Jr.prototype.getVastMediaBitrate=Jr.prototype.getVastMediaBitrate; +Jr.prototype.getDescription=Jr.prototype.getDescription;Jr.prototype.getTitle=Jr.prototype.getTitle;Jr.prototype.getPositionInSequence=Jr.prototype.getPositionInSequence;Jr.prototype.getSequenceLength=Jr.prototype.getSequenceLength;Jr.prototype.setMuted=Jr.prototype.setMuted;Jr.prototype.resize=Jr.prototype.resize;Jr.prototype.isLinear=Jr.prototype.isLinear;Jr.prototype.isMuted=Jr.prototype.isMuted;Jr.prototype.setVolume=Jr.prototype.setVolume;Jr.prototype.getVolume=Jr.prototype.getVolume; +Jr.prototype.play=Jr.prototype.play;Jr.prototype.pause=Jr.prototype.pause;Jr.prototype.skip=Jr.prototype.skip;Jr.prototype.canSkipNow=Jr.prototype.canSkipNow;Jr.prototype.getTimeUntilSkippable=Jr.prototype.getTimeUntilSkippable;Jr.prototype.isSkippable=Jr.prototype.isSkippable;Jr.prototype.isPaused=Jr.prototype.isPaused;Jr.prototype.getRemainingTime=Jr.prototype.getRemainingTime;Jr.prototype.getMinSuggestedDuration=Jr.prototype.getMinSuggestedDuration;Jr.prototype.getDuration=Jr.prototype.getDuration; +Jr.prototype.isUsingAnotherMediaElement=Jr.prototype.isUsingAnotherMediaElement;Jr.prototype.hasCustomClick=Jr.prototype.hasCustomClick;Jr.prototype.isClientRendering=Jr.prototype.isClientRendering;Jr.prototype.needsSkipUI=Jr.prototype.needsSkipUI;function Kr(){} +function Lr(a,b){var c=[];a=t(Pd(a,"Ad"));for(var d=a.next();!d.done;d=a.next())if(d=Td(d.value,"InLine"))if(d=Td(d,"Creatives")){d=t(Pd(d,"Creative"));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=Td(e,"Linear");f&&Mr(c,b,f);if(e=Td(e,"NonLinearAds")){e=Pd(e,"NonLinear");e=t(e);for(var g=e.next();!g.done;g=e.next())a:{f=c;var h=b,k=g.value,l=Td(k,"StaticResource");if(l)g=l.attributes.creativeType;else{l=Td(k,"HTMLResource");if(!l)break a;g="text/html"}if(l=Rd(l)){"text/html"===g&&(l="data:text/html;charset=UTF-8,"+ +encodeURIComponent(l));var m=Wd(k,"width",be)||Wd(k,"expandedWidth",be),n=Wd(k,"height",be)||Wd(k,"expandedHeight",be);if(m||n){var q=null;(k=k.attributes.minSuggestedDuration)&&(q=Cd(k));k=0;null!=h&&(k=h);f.push({id:null,groupId:null,startTime:k,endTime:null,uri:l,mimeType:g,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:q,once:!0,pre:null==h,post:Infinity==h,timelineRange:!1,loop:!1,overlay:{viewport:{x:0,y:0},topLeft:{x:0,y:0},size:{x:m||0,y:n||0}},displayOnBackground:!1, currentVideo:null,background:null})}}}}}}return c} -function Er(a,b,c){var d=0;null!=b&&(d=b);var e=null;c.attributes.skipoffset&&(e=Cd(c.attributes.skipoffset),isNaN(e)&&(e=null));if(c=Sd(c,"MediaFiles")){var f=Od(c,"MediaFile");c=f;f=f.filter(function(h){return"streaming"==h.attributes.delivery});f.length&&(c=f);c=c.sort(function(h,k){return(parseInt(k.attributes.height,10)||0)-(parseInt(h.attributes.height,10)||0)});c=u(c);for(f=c.next();!f.done;f=c.next())if(f=f.value,!f.attributes.apiFramework){var g=Qd(f);if(g){a.push({id:null,groupId:null,startTime:d, -endTime:null,uri:g,mimeType:f.attributes.type||null,isSkippable:null!=e,skipOffset:e,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==b,post:Infinity==b,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});break}}}}S("shaka.ads.Utils",Cr);Cr.ADS_LOADED="ads-loaded";Cr.AD_STARTED="ad-started";Cr.AD_FIRST_QUARTILE="ad-first-quartile";Cr.AD_MIDPOINT="ad-midpoint";Cr.AD_THIRD_QUARTILE="ad-third-quartile";Cr.AD_COMPLETE="ad-complete"; -Cr.AD_STOPPED="ad-stopped";Cr.AD_SKIPPED="ad-skipped";Cr.AD_VOLUME_CHANGED="ad-volume-changed";Cr.AD_MUTED="ad-muted";Cr.AD_PAUSED="ad-paused";Cr.AD_RESUMED="ad-resumed";Cr.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Cr.CUEPOINTS_CHANGED="ad-cue-points-changed";Cr.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Cr.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Cr.AD_CLICKED="ad-clicked";Cr.AD_PROGRESS="ad-progress";Cr.AD_BUFFERING="ad-buffering";Cr.AD_IMPRESSION="ad-impression"; -Cr.AD_DURATION_CHANGED="ad-duration-changed";Cr.AD_CLOSED="ad-closed";Cr.AD_LOADED="ad-loaded";Cr.ALL_ADS_COMPLETED="all-ads-completed";Cr.AD_LINEAR_CHANGED="ad-linear-changed";Cr.AD_METADATA="ad-metadata";Cr.AD_RECOVERABLE_ERROR="ad-recoverable-error";Cr.AD_ERROR="ad-error";Cr.AD_BREAK_READY="ad-break-ready";Cr.AD_INTERACTION="ad-interaction";Cr.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Cr.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Cr.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function Fr(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.F=!1;this.B=this.s=null;this.G=NaN;this.l=e;this.j=null;this.h=new Oc;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.D=new google.ima.AdDisplayContainer(this.u,this.i);this.D.initialize();this.m=new google.ima.AdsLoader(this.D);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.0");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.m, -google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){Gr(f,g)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Hr(f,g)});this.h.o(this.i,"ended",function(){f.m.contentComplete()});this.h.qa(this.i,"play",function(){f.F=!0})}Fr.prototype.configure=function(a){this.s=a};Fr.prototype.stop=function(){this.g&&this.g.stop();this.u&&Oj(this.u)}; -Fr.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.D.destroy()};function Hr(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new U("ad-error",b));Ir(a,null);a.l(new U("ad-cue-points-changed",(new Map).set("cuepoints",[])))} -function Gr(a,b){a.l(new U("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));if(a.s.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.o(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.o(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.C);a.l(new U("ima-ad-manager-loaded",(new Map).set("imaAdManager", -a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=u(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.l(new U("ad-cue-points-changed",(new Map).set("cuepoints",b)))}Jr(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight),a.h.o(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth, -a.i.offsetHeight)}),a.F||a.s.skipPlayDetection?a.g.start():a.h.qa(a.i,"play",function(){a.F=!0;a.g.start()})}catch(f){Ir(a,null)}} -function Jr(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new U(d,c))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Hr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Kr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Kr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE, -function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Ir(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Ir(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")}); +function Mr(a,b,c){var d=0;null!=b&&(d=b);var e=null;c.attributes.skipoffset&&(e=Cd(c.attributes.skipoffset),isNaN(e)&&(e=null));if(c=Td(c,"MediaFiles")){var f=Pd(c,"MediaFile");c=f;f=f.filter(function(h){return"streaming"==h.attributes.delivery});f.length&&(c=f);c=c.sort(function(h,k){return(parseInt(k.attributes.height,10)||0)-(parseInt(h.attributes.height,10)||0)});c=t(c);for(f=c.next();!f.done;f=c.next())if(f=f.value,!f.attributes.apiFramework){var g=Rd(f);if(g){a.push({id:null,groupId:null,startTime:d, +endTime:null,uri:g,mimeType:f.attributes.type||null,isSkippable:null!=e,skipOffset:e,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==b,post:Infinity==b,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});break}}}}S("shaka.ads.Utils",Kr);Kr.ADS_LOADED="ads-loaded";Kr.AD_STARTED="ad-started";Kr.AD_FIRST_QUARTILE="ad-first-quartile";Kr.AD_MIDPOINT="ad-midpoint";Kr.AD_THIRD_QUARTILE="ad-third-quartile";Kr.AD_COMPLETE="ad-complete"; +Kr.AD_STOPPED="ad-stopped";Kr.AD_SKIPPED="ad-skipped";Kr.AD_VOLUME_CHANGED="ad-volume-changed";Kr.AD_MUTED="ad-muted";Kr.AD_PAUSED="ad-paused";Kr.AD_RESUMED="ad-resumed";Kr.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Kr.CUEPOINTS_CHANGED="ad-cue-points-changed";Kr.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Kr.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Kr.AD_CLICKED="ad-clicked";Kr.AD_PROGRESS="ad-progress";Kr.AD_BUFFERING="ad-buffering";Kr.AD_IMPRESSION="ad-impression"; +Kr.AD_DURATION_CHANGED="ad-duration-changed";Kr.AD_CLOSED="ad-closed";Kr.AD_LOADED="ad-loaded";Kr.ALL_ADS_COMPLETED="all-ads-completed";Kr.AD_LINEAR_CHANGED="ad-linear-changed";Kr.AD_METADATA="ad-metadata";Kr.AD_RECOVERABLE_ERROR="ad-recoverable-error";Kr.AD_ERROR="ad-error";Kr.AD_BREAK_READY="ad-break-ready";Kr.AD_INTERACTION="ad-interaction";Kr.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Kr.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Kr.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function Nr(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.F=!1;this.B=this.s=null;this.G=NaN;this.l=e;this.j=null;this.h=new Oc;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.D=new google.ima.AdDisplayContainer(this.u,this.i);this.D.initialize();this.m=new google.ima.AdsLoader(this.D);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.4");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.m, +google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){Or(f,g)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Pr(f,g)});this.h.o(this.i,"ended",function(){f.m.contentComplete()});this.h.qa(this.i,"play",function(){f.F=!0})}Nr.prototype.configure=function(a){this.s=a};Nr.prototype.stop=function(){this.g&&this.g.stop();this.u&&Pj(this.u)}; +Nr.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.D.destroy()};function Pr(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new U("ad-error",b));Qr(a,null);a.l(new U("ad-cue-points-changed",(new Map).set("cuepoints",[])))} +function Or(a,b){a.l(new U("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));if(a.s.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.o(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.o(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.C);a.l(new U("ima-ad-manager-loaded",(new Map).set("imaAdManager", +a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=t(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.l(new U("ad-cue-points-changed",(new Map).set("cuepoints",b)))}Rr(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight),a.h.o(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth, +a.i.offsetHeight)}),a.F||a.s.skipPlayDetection?a.g.start():a.h.qa(a.i,"play",function(){a.F=!0;a.g.start()})}catch(f){Qr(a,null)}} +function Rr(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new U(d,c))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Pr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Sr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Sr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE, +function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Qr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Qr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")}); a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.o(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.o(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")}); a.h.o(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.o(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.o(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.o(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.o(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.o(a.g, google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})} -function Kr(a,b){var c=b.getAd();c?(a.j=new Br(c,a.g,a.i),b.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.s.supportsMultipleMediaElements||a.l(new U("ad-content-pause-requested")),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new U("ad-started",b)),a.j.isLinear()&&(a.u.setAttribute("ad-active","true"),a.s.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):ab("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")} -function Ir(a,b){b&&b.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!a.s.supportsMultipleMediaElements&&a.l(new U("ad-content-resume-requested"));a.l(new U("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.u.removeAttribute("ad-active"),a.s.customPlayheadTracker||a.i.ended||a.i.play())};function Lr(a,b,c,d,e,f){this.g=a;this.i=b;this.j=(this.h=b.isSkippable)?b.skipOffset||0:b.skipOffset;this.l=b.skipFor;this.B=c;this.s=d;this.m=e;this.u=f;this.C=b.overlay}p=Lr.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!1};p.isUsingAnotherMediaElement=function(){return this.u};p.getDuration=function(){var a=this.g.duration;return isNaN(a)?-1:a};p.getMinSuggestedDuration=function(){return this.getDuration()}; +function Sr(a,b){var c=b.getAd();c?(a.j=new Jr(c,a.g,a.i),b.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.s.supportsMultipleMediaElements||a.l(new U("ad-content-pause-requested")),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new U("ad-started",b)),a.j.isLinear()&&(a.u.setAttribute("ad-active","true"),a.s.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):ab("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")} +function Qr(a,b){b&&b.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!a.s.supportsMultipleMediaElements&&a.l(new U("ad-content-resume-requested"));a.l(new U("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.u.removeAttribute("ad-active"),a.s.customPlayheadTracker||a.i.ended||a.i.play())};function Tr(a,b,c,d,e,f){this.g=a;this.i=b;this.j=(this.h=b.isSkippable)?b.skipOffset||0:b.skipOffset;this.l=b.skipFor;this.B=c;this.s=d;this.m=e;this.u=f;this.C=b.overlay}p=Tr.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!1};p.isUsingAnotherMediaElement=function(){return this.u};p.getDuration=function(){var a=this.g.duration;return isNaN(a)?-1:a};p.getMinSuggestedDuration=function(){return this.getDuration()}; p.getRemainingTime=function(){var a=this.g.duration;return isNaN(a)?-1:a-this.g.currentTime};p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return this.h&&null!=this.l?this.getDuration()-this.getRemainingTime()=r&&(!e.D.has(n)&&Rr(n)&&e.D.set(n,e.j.preload(n.uri,null,n.mimeType||void 0)),Sr(e,n));v.A(4);break}if(!e.D.has(n)){v.A(7);break}return F(v,e.D.get(n),8);case 8:(t=v.h)&&t.destroy(),e.D.delete(n);case 7:Tr(e,n),w=JSON.stringify(n),e.R.has(w)&&e.R.delete(w),e.H.delete(n),Ur(e),n.overlay||(g=!0);case 4:m=l.next();v.A(3);break;case 5:g&&Vr(e),H(v)}})})}p=Nr.prototype;p.configure=function(a){this.L=a;Wr(this)}; -function Xr(a){if(!a.$&&a.H.size){a.I.o(a.g,"playing",a.U);a.I.o(a.g,"timeupdate",a.U);a.I.o(a.g,"seeked",a.ea);a.I.o(a.g,"ended",a.Y);if("requestVideoFrameCallback"in a.g&&!Yr()){var b=a.g,c=function(){-1!=a.O&&(a.Y(),-1!=a.O&&(a.O=b.requestVideoFrameCallback(c)))};a.O=b.requestVideoFrameCallback(c)}else a.P.ya(.025);a.N&&a.N.ya(1);a.$=!0}} -function Ur(a){a.$&&!a.H.size&&(a.I.Ca(a.g,"playing",a.U),a.I.Ca(a.g,"timeupdate",a.U),a.I.Ca(a.g,"seeked",a.ea),a.I.Ca(a.g,"ended",a.Y),-1!=a.O&&(a.g.cancelVideoFrameCallback(a.O),a.O=-1),a.P&&a.P.stop(),a.N&&a.N.stop(),a.$=!1)} -function Wr(a){if(a.B&&a.L&&!a.J){var b=a.L.supportsMultipleMediaElements,c=a.g;c.webkitSupportsFullscreen&&c.webkitDisplayingFullscreen&&(b=!1);a.C==b&&(a.C=!b,a.C?(a.h=a.g,a.F&&(a.F.parentElement&&a.B.removeChild(a.F),a.F=null)):(a.F||(b=document.createElement(a.g.tagName),b.autoplay=!0,b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",b.style.height="100%",b.style.display="none",b.setAttribute("playsinline",""),a.F=b),a.h=a.F))}} -p.stop=function(){this.l&&this.l.Sa();this.R.clear();this.H.clear();this.j.Ng();if(this.D.size){var a=Array.from(this.D.values());a=u(a);for(var b=a.next();!b.done;b=a.next())(b=b.value)&&b.then(function(c){c&&c.destroy()})}this.D.clear();if(this.K.size)for(a=Array.from(this.K.keys()),a=u(a),b=a.next();!b.done;b=a.next())Tr(this,b.value);this.K.clear();this.j.detach();this.J=!1;this.u=this.m=null;this.C=!0;this.h=this.g;this.F=null;Zr(this);Ur(this);this.B&&Oj(this.B);this.s&&(this.s.stop(),this.s= -null)};p.release=function(){this.stop();this.I&&this.I.release();this.l&&this.l.release();this.P&&(this.P.stop(),this.P=null);this.N&&(this.N.stop(),this.N=null);this.j.destroy()};p.Rb=function(){return this.j};function $r(a,b){var c;Q(function(d){if(1==d.g)return Or(a),F(d,as(a,b),2);c=d.h;c.length?bs(a,c):ab("Unsupported HLS interstitial",b);H(d)})} -function cs(a,b){var c=Sd(b.eventNode,"OverlayEvent"),d=c.attributes.uri,e=c.attributes.mimeType,f="true"==c.attributes.loop,g=Vd(c,"z",ae);if(d&&0!=g){var h=null,k=Sd(c,"Background");if(k){var l=k.attributes.uri;l?h="center / contain no-repeat url('"+l+"')":h=Qd(k)}k=1920;l=1080;var m=Sd(c,"Viewport");if(m){k=Vd(m,"x",ae);if(null==k)return;l=Vd(m,"y",ae);if(null==l)return}var n={viewport:{x:k,y:l},topLeft:{x:0,y:0},size:{x:k,y:l}},q=Sd(c,"Overlay");if(m&&q){var r=Sd(q,"TopLeft"),t=Sd(q,"Size");if(r&& -t){q=Vd(r,"x",ae);if(null==q)return;r=Vd(r,"y",ae);if(null==r)return;var w=Vd(t,"x",ae);if(null==w)return;t=Vd(t,"y",ae);if(null==t)return;n.topLeft.x=q;n.topLeft.y=r;n.size.x=w;n.size.y=t}}q=null;c=Sd(c,"Squeeze");if(m&&c&&(t=Sd(c,"TopLeft"),c=Sd(c,"Size"),t&&c)){m=Vd(t,"x",ae);if(null==m)return;q=Vd(t,"y",ae);if(null==q)return;t=Vd(c,"x",ae);if(null==t)return;c=Vd(c,"y",ae);if(null==c)return;q={viewport:{x:k,y:l},topLeft:{x:m,y:q},size:{x:t,y:c}}}bs(a,[{id:b.id,groupId:null,startTime:b.startTime, +p.getVastMediaWidth=function(){return 0};p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.id||""};p.getCreativeAdId=function(){return""};p.getAdvertiserName=function(){return""};p.getMediaUrl=function(){return this.g.uri};p.getTimeOffset=function(){return 0};p.getPodIndex=function(){return 0};p.release=function(){};S("shaka.ads.InterstitialStaticAd",Ur);Ur.prototype.release=Ur.prototype.release;Ur.prototype.getPodIndex=Ur.prototype.getPodIndex;Ur.prototype.getTimeOffset=Ur.prototype.getTimeOffset; +Ur.prototype.getMediaUrl=Ur.prototype.getMediaUrl;Ur.prototype.getAdvertiserName=Ur.prototype.getAdvertiserName;Ur.prototype.getCreativeAdId=Ur.prototype.getCreativeAdId;Ur.prototype.getAdId=Ur.prototype.getAdId;Ur.prototype.getVastAdId=Ur.prototype.getVastAdId;Ur.prototype.getVastMediaWidth=Ur.prototype.getVastMediaWidth;Ur.prototype.getVastMediaHeight=Ur.prototype.getVastMediaHeight;Ur.prototype.getVastMediaBitrate=Ur.prototype.getVastMediaBitrate;Ur.prototype.getDescription=Ur.prototype.getDescription; +Ur.prototype.getTitle=Ur.prototype.getTitle;Ur.prototype.getPositionInSequence=Ur.prototype.getPositionInSequence;Ur.prototype.getSequenceLength=Ur.prototype.getSequenceLength;Ur.prototype.setMuted=Ur.prototype.setMuted;Ur.prototype.resize=Ur.prototype.resize;Ur.prototype.isLinear=Ur.prototype.isLinear;Ur.prototype.isMuted=Ur.prototype.isMuted;Ur.prototype.setVolume=Ur.prototype.setVolume;Ur.prototype.getVolume=Ur.prototype.getVolume;Ur.prototype.play=Ur.prototype.play;Ur.prototype.pause=Ur.prototype.pause; +Ur.prototype.skip=Ur.prototype.skip;Ur.prototype.canSkipNow=Ur.prototype.canSkipNow;Ur.prototype.getTimeUntilSkippable=Ur.prototype.getTimeUntilSkippable;Ur.prototype.isSkippable=Ur.prototype.isSkippable;Ur.prototype.isPaused=Ur.prototype.isPaused;Ur.prototype.getRemainingTime=Ur.prototype.getRemainingTime;Ur.prototype.getMinSuggestedDuration=Ur.prototype.getMinSuggestedDuration;Ur.prototype.getDuration=Ur.prototype.getDuration;Ur.prototype.isUsingAnotherMediaElement=Ur.prototype.isUsingAnotherMediaElement; +Ur.prototype.hasCustomClick=Ur.prototype.hasCustomClick;Ur.prototype.isClientRendering=Ur.prototype.isClientRendering;Ur.prototype.needsSkipUI=Ur.prototype.needsSkipUI;function Vr(a,b,c,d){var e=this;this.L=null;this.C=a;this.D=b;this.g=c;this.G=null;this.B=!0;this.h=this.g;this.i=d;this.R=new Set;this.H=new Set;this.F=new Map;this.K=new Map;this.j=new X;Wr(this);this.I=new Oc;this.l=new Oc;this.J=!1;this.Z=this.s=this.u=this.m=null;this.$=!1;this.O=-1;this.Y=function(){if(!e.J&&e.m&&!e.D.Ca()){e.m=e.g.currentTime;var f=Xr(e);f&&Yr(e,f,1,1,Date.now())}};this.U=function(){if(!(e.J||e.m||e.D.Ca())){e.m=e.g.currentTime;var f=Xr(e,!0);f&&Yr(e,f,1,1,Date.now())}};this.ba= +function(){if(!e.J&&e.m&&!e.D.Ca()){var f=e.g.currentTime;e.u&&!e.u.pre&&!e.u.post&&f<(e.u.endTime||e.u.startTime)&&(e.u=null)}};this.P=new zf(this.Y);this.N=new zf(function(){var f,g,h,k,l,m,n,q,r,u,w;return Q(function(v){switch(v.g){case 1:if(!e.H.size||null==e.m){v.A(0);break}f=e.D.m;if(f==mq||f==bq)return v.return();g=!1;h=Array.from(e.H);k=e.D.xa();l=t(h);m=l.next();case 3:if(m.done){v.A(5);break}n=m.value;if(n==e.u){v.A(4);break}q=n.endTime||n.startTime;if(!(1<=k.start-q)){r=n.startTime-e.m; +0=r&&(!e.F.has(n)&&Zr(n)&&e.F.set(n,e.j.preload(n.uri,null,n.mimeType||void 0)),$r(e,n));v.A(4);break}if(!e.F.has(n)){v.A(7);break}return F(v,e.F.get(n),8);case 8:(u=v.h)&&u.destroy(),e.F.delete(n);case 7:as(e,n),w=JSON.stringify(n),e.R.has(w)&&e.R.delete(w),e.H.delete(n),bs(e),n.overlay||(g=!0);case 4:m=l.next();v.A(3);break;case 5:g&&cs(e),I(v)}})});this.configure(this.D.getConfiguration().ads)}p=Vr.prototype;p.configure=function(a){this.L=a;ds(this)}; +function es(a){if(!a.$&&a.H.size){a.I.o(a.g,"playing",a.U);a.I.o(a.g,"timeupdate",a.U);a.I.o(a.g,"seeked",a.ba);a.I.o(a.g,"ended",a.Y);if("requestVideoFrameCallback"in a.g&&!fs()){var b=a.g,c=function(){-1!=a.O&&(a.Y(),-1!=a.O&&(a.O=b.requestVideoFrameCallback(c)))};a.O=b.requestVideoFrameCallback(c)}else a.P.ya(.025);a.N&&a.N.ya(1);a.$=!0}} +function bs(a){a.$&&!a.H.size&&(a.I.Da(a.g,"playing",a.U),a.I.Da(a.g,"timeupdate",a.U),a.I.Da(a.g,"seeked",a.ba),a.I.Da(a.g,"ended",a.Y),-1!=a.O&&(a.g.cancelVideoFrameCallback(a.O),a.O=-1),a.P&&a.P.stop(),a.N&&a.N.stop(),a.$=!1)} +function ds(a){if(a.C&&a.L&&!a.J){var b=a.L.supportsMultipleMediaElements,c=a.g;c.webkitSupportsFullscreen&&c.webkitDisplayingFullscreen&&(b=!1);a.B==b&&(a.B=!b,a.B?(a.h=a.g,a.G&&(a.G.parentElement&&a.C.removeChild(a.G),a.G=null)):(a.G||(b=document.createElement(a.g.tagName),b.autoplay=!0,b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",b.style.height="100%",b.style.display="none",b.setAttribute("playsinline",""),a.G=b),a.h=a.G))}else a.B=!0} +p.stop=function(){this.l&&this.l.Sa();this.R.clear();this.H.clear();this.j.Og();if(this.F.size){var a=Array.from(this.F.values());a=t(a);for(var b=a.next();!b.done;b=a.next())(b=b.value)&&b.then(function(c){c&&c.destroy()})}this.F.clear();if(this.K.size)for(a=Array.from(this.K.keys()),a=t(a),b=a.next();!b.done;b=a.next())as(this,b.value);this.K.clear();this.j.detach();this.J=!1;this.u=this.m=null;this.B=!0;this.h=this.g;this.G=null;gs(this);bs(this);this.C&&Pj(this.C);this.s&&(this.s.stop(),this.s= +null)};p.release=function(){this.stop();this.I&&this.I.release();this.l&&this.l.release();this.P&&(this.P.stop(),this.P=null);this.N&&(this.N.stop(),this.N=null);this.j.destroy()};p.Sb=function(){return this.j};function hs(a,b){var c;Q(function(d){if(1==d.g)return Wr(a),F(d,is(a,b),2);c=d.h;c.length?js(a,c):ab("Unsupported HLS interstitial",b);I(d)})} +function ks(a,b){var c=Td(b.eventNode,"OverlayEvent"),d=c.attributes.uri,e=c.attributes.mimeType,f="true"==c.attributes.loop,g=Wd(c,"z",be);if(d&&0!=g){var h=null,k=Td(c,"Background");if(k){var l=k.attributes.uri;l?h="center / contain no-repeat url('"+l+"')":h=Rd(k)}k=1920;l=1080;var m=Td(c,"Viewport");if(m){k=Wd(m,"x",be);if(null==k)return;l=Wd(m,"y",be);if(null==l)return}var n={viewport:{x:k,y:l},topLeft:{x:0,y:0},size:{x:k,y:l}},q=Td(c,"Overlay");if(m&&q){var r=Td(q,"TopLeft"),u=Td(q,"Size");if(r&& +u){q=Wd(r,"x",be);if(null==q)return;r=Wd(r,"y",be);if(null==r)return;var w=Wd(u,"x",be);if(null==w)return;u=Wd(u,"y",be);if(null==u)return;n.topLeft.x=q;n.topLeft.y=r;n.size.x=w;n.size.y=u}}q=null;c=Td(c,"Squeeze");if(m&&c&&(u=Td(c,"TopLeft"),c=Td(c,"Size"),u&&c)){m=Wd(u,"x",be);if(null==m)return;q=Wd(u,"y",be);if(null==q)return;u=Wd(c,"x",be);if(null==u)return;c=Wd(c,"y",be);if(null==c)return;q={viewport:{x:k,y:l},topLeft:{x:m,y:q},size:{x:u,y:c}}}js(a,[{id:b.id,groupId:null,startTime:b.startTime, endTime:b.endTime,uri:d,mimeType:e,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:null,playoutLimit:null,once:!1,pre:!1,post:!1,timelineRange:!0,loop:f,overlay:n,displayOnBackground:-1==g,currentVideo:q,background:h}])}} -p.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return c={type:12},F(n,ds(b,a,c),2);case 2:d=n.h;e=Gd(d,"VAST,vmap:VMAP");if(!e)throw new V(2,10,10007);f=[];if("VAST"==e.tagName){f=Dr(e,b.m);n.A(3);break}if("vmap:VMAP"!=e.tagName){n.A(3);break}for(var q=[],r=u(Od(e,"vmap:AdBreak")),t=r.next();!t.done;t=r.next()){var w=t.value,v=w.attributes.timeOffset;v&&(t=null,"start"==v?t=0:"end"==v?t=Infinity:t=Cd(v),(w=Sd(w,"vmap:AdSource"))&&(w=Sd(w,"vmap:AdTagURI"))&& -(w=Pd(w))&&q.push({time:t,uri:w}))}g=u(q);h=g.next();case 5:if(h.done){n.A(3);break}k=h.value;return F(n,ds(b,k.uri,c),8);case 8:l=n.h;m=Gd(l,"VAST");if(!m)throw new V(2,10,10007);f.push.apply(f,x(Dr(m,k.time)));h=g.next();n.A(5);break;case 3:bs(b,f),H(n)}})}; -function bs(a,b){var c,d,e,f,g,h,k,l;Q(function(m){switch(m.g){case 1:c=!1,d=u(b),e=d.next();case 2:if(e.done){m.A(4);break}f=e.value;if(!f.uri){ab("Missing URL in interstitial",f);m.A(3);break}if(f.mimeType){m.A(5);break}ta(m,6);g=a.j.Hb();return F(m,to(f.uri,g,a.G.getConfiguration().streaming.retryParameters),8);case 8:f.mimeType=m.h;wa(m,5);break;case 6:xa(m);case 5:h=f.id||JSON.stringify(f);if(a.R.has(h)){m.A(3);break}f.loop&&!f.overlay&&ab("Loop is only supported in overlay interstitials",f); -f.overlay||(c=!0);a.R.add(h);a.H.add(f);k=!1;f.pre&&null==a.m?k=!0:0!=f.startTime||f.canJump?null!=a.m&&(l=f.startTime-a.m,0=l&&(k=!0)):k=!0;k&&(!a.D.has(f)&&Rr(f)&&a.D.set(f,a.j.preload(f.uri,null,f.mimeType||void 0)),Sr(a,f));case 3:e=d.next();m.A(2);break;case 4:c&&Vr(a),Xr(a),H(m)}})} -function Pr(a,b,c){b=void 0===b?!1:b;c=void 0===c?null:c;var d=0,e=null;if(a.H.size&&null!=a.m){var f=a.g.ended,g=Array.from(a.H).sort(function(n,q){return q.startTime-n.startTime}),h=g;h=b?g.filter(function(n){return n.pre}):f?g.filter(function(n){return n.post}):g.filter(function(n){return!n.pre&&!n.post});g=u(h);for(h=g.next();!h.done;h=g.next()){h=h.value;var k=!1;if(b)k=h.pre;else if(f)k=h.post;else if(!h.pre&&!h.post){var l=a.m-Math.round(1E3*h.startTime)/1E3,m=1;a.L.allowStartInMiddleOfInterstitial&& +p.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return c={type:12},F(n,ls(b,a,c),2);case 2:d=n.h;e=Hd(d,"VAST,vmap:VMAP");if(!e)throw new V(2,10,10007);f=[];if("VAST"==e.tagName){f=Lr(e,b.m);n.A(3);break}if("vmap:VMAP"!=e.tagName){n.A(3);break}for(var q=[],r=t(Pd(e,"vmap:AdBreak")),u=r.next();!u.done;u=r.next()){var w=u.value,v=w.attributes.timeOffset;v&&(u=null,"start"==v?u=0:"end"==v?u=Infinity:u=Cd(v),(w=Td(w,"vmap:AdSource"))&&(w=Td(w,"vmap:AdTagURI"))&& +(w=Qd(w))&&q.push({time:u,uri:w}))}g=t(q);h=g.next();case 5:if(h.done){n.A(3);break}k=h.value;return F(n,ls(b,k.uri,c),8);case 8:l=n.h;m=Hd(l,"VAST");if(!m)throw new V(2,10,10007);f.push.apply(f,x(Lr(m,k.time)));h=g.next();n.A(5);break;case 3:js(b,f),I(n)}})}; +function js(a,b){var c,d,e,f,g,h,k,l;Q(function(m){switch(m.g){case 1:c=!1,d=t(b),e=d.next();case 2:if(e.done){m.A(4);break}f=e.value;if(!f.uri){ab("Missing URL in interstitial",f);m.A(3);break}if(f.mimeType){m.A(5);break}ta(m,6);g=a.j.Ib();return F(m,Bo(f.uri,g,a.D.getConfiguration().streaming.retryParameters),8);case 8:f.mimeType=m.h;wa(m,5);break;case 6:xa(m);case 5:h=f.id||JSON.stringify(f);if(a.R.has(h)){m.A(3);break}f.loop&&!f.overlay&&ab("Loop is only supported in overlay interstitials",f); +f.overlay||(c=!0);a.R.add(h);a.H.add(f);k=!1;f.pre&&null==a.m?k=!0:0!=f.startTime||f.canJump?null!=a.m&&(l=f.startTime-a.m,0=l&&(k=!0)):k=!0;k&&(!a.F.has(f)&&Zr(f)&&a.F.set(f,a.j.preload(f.uri,null,f.mimeType||void 0)),$r(a,f));case 3:e=d.next();m.A(2);break;case 4:c&&cs(a),es(a),I(m)}})} +function Xr(a,b,c){b=void 0===b?!1:b;c=void 0===c?null:c;var d=0,e=null;if(a.H.size&&null!=a.m){var f=a.g.ended,g=Array.from(a.H).sort(function(n,q){return q.startTime-n.startTime}),h=g;h=b?g.filter(function(n){return n.pre}):f?g.filter(function(n){return n.post}):g.filter(function(n){return!n.pre&&!n.post});g=t(h);for(h=g.next();!h.done;h=g.next()){h=h.value;var k=!1;if(b)k=h.pre;else if(f)k=h.post;else if(!h.pre&&!h.post){var l=a.m-Math.round(1E3*h.startTime)/1E3,m=1;a.L.allowStartInMiddleOfInterstitial&& h.endTime&&Infinity!=h.endTime&&(m=h.endTime-h.startTime);0=h.startTime?!1:!0)}k&&(!a.u||h.startTime>=a.u.startTime)&&(d==(c||0)?e=h:e&&!h.canJump&&.001Math.abs(g.startTime-b.startTime)}).length);b.once&&(f++,a.H.delete(b),Ur(a),b.overlay||Vr(a));b.mimeType&&(b.mimeType.startsWith("image/")||"text/html"===b.mimeType)?b.overlay?es(a,b,c,d,f):ab("Unsupported interstitial",b):a.C&&b.overlay?ab("Unsupported interstitial",b):fs(a,b,c,d,e,f)} -function es(a,b,c,d,e){function f(){a.s&&(a.s.stop(),a.s=null);a.B.removeChild(k);Zr(a,b);a.i(new U("ad-stopped"));a.l.Sa();var q=Pr(a,b.pre,d-e);q?Qr(a,q,c,++d,Date.now(),e):a.J=!1}a.J=!0;var g=b.overlay,h="text/html"==b.mimeType?"iframe":"img",k=document.createElement(h);k.style.objectFit="contain";k.style.position="absolute";k.style.border="none";gs(a,b);a.i(new U("ad-started",(new Map).set("ad",new Mr(b,c,d))));"iframe"==h?k.src=b.uri:(k.src=b.uri,k.onerror=function(q){a.i(new U("ad-error",(new Map).set("originalEvent", -q)));f()});var l=g.viewport,m=g.topLeft;g=g.size;0==l.x&&0==l.y?(k.width=b.overlay.size.x,k.height=b.overlay.size.y,k.style.bottom="10%",k.style.left="0",k.style.right="0",k.style.width="100%",b.overlay.size.y||"iframe"!=h||(k.style.height="auto")):(k.style.height=g.y/l.y*100+"%",k.style.left=m.x/l.x*100+"%",k.style.top=m.y/l.y*100+"%",k.style.width=g.x/l.x*100+"%");a.B.appendChild(k);var n=Date.now();a.s&&a.s.stop();a.s=new yf(function(){b.playoutLimit&&(Date.now()-n)/1E3>b.playoutLimit?(a.i(new U("ad-complete")), +function Yr(a,b,c,d,e,f){f=void 0===f?0:f;a.u=b;ds(a);a.B||!a.C||a.h.parentElement||a.C.appendChild(a.h);1==d&&1==c&&(c=Array.from(a.H).filter(function(g){return b.pre?g.pre==b.pre:b.post?g.post==b.post:.001>Math.abs(g.startTime-b.startTime)}).length);b.once&&(f++,a.H.delete(b),bs(a),b.overlay||cs(a));b.mimeType&&(b.mimeType.startsWith("image/")||"text/html"===b.mimeType)?b.overlay?ms(a,b,c,d,f):ab("Unsupported interstitial",b):a.B&&b.overlay?ab("Unsupported interstitial",b):ns(a,b,c,d,e,f)} +function ms(a,b,c,d,e){function f(){a.s&&(a.s.stop(),a.s=null);a.C.removeChild(k);gs(a,b);a.i(new U("ad-stopped"));a.l.Sa();var q=Xr(a,b.pre,d-e);q?Yr(a,q,c,++d,Date.now(),e):a.J=!1}a.J=!0;var g=b.overlay,h="text/html"==b.mimeType?"iframe":"img",k=document.createElement(h);k.style.objectFit="contain";k.style.position="absolute";k.style.border="none";os(a,b);a.i(new U("ad-started",(new Map).set("ad",new Ur(b,c,d))));"iframe"==h?k.src=b.uri:(k.src=b.uri,k.onerror=function(q){a.i(new U("ad-error",(new Map).set("originalEvent", +q)));f()});var l=g.viewport,m=g.topLeft;g=g.size;0==l.x&&0==l.y?(k.width=b.overlay.size.x,k.height=b.overlay.size.y,k.style.bottom="10%",k.style.left="0",k.style.right="0",k.style.width="100%",b.overlay.size.y||"iframe"!=h||(k.style.height="auto")):(k.style.height=g.y/l.y*100+"%",k.style.left=m.x/l.x*100+"%",k.style.top=m.y/l.y*100+"%",k.style.width=g.x/l.x*100+"%");a.C.appendChild(k);var n=Date.now();a.s&&a.s.stop();a.s=new zf(function(){b.playoutLimit&&(Date.now()-n)/1E3>b.playoutLimit?(a.i(new U("ad-complete")), f()):b.endTime&&a.g.currentTime>b.endTime?(a.i(new U("ad-complete")),f()):a.g.currentTimeb.endTime)a.s&&a.s.stop(),a.i(new U("ad-skipped")),f()})} -function fs(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,t,w,v,y,z,A,B,D,G,C,E,I;Q(function(K){switch(K.g){case 1:g=Date.now();a.J=!0;if(!a.C||1!=d){K.A(2);break}a.i(new U("ad-content-pause-requested",(new Map).set("saveLivePosition",!0)));h=new Hg;k=function(J){return Q(function(L){if(1==L.g)return"detach"!=J.state?L.A(0):Yr()?F(L,new Promise(function(M){return(new yf(M)).X(.1)}),3):L.A(3);h.resolve();a.l.Ca(a.G,"onstatechange",k);H(L)})};a.l.o(a.G,"onstatechange",k);return F(K,h,2);case 2:return gs(a,b),a.C|| -(a.h.style.display="",b.overlay?(a.h.loop=b.loop,l=b.overlay.viewport,m=b.overlay.topLeft,n=b.overlay.size,a.h.style.height=n.y/l.y*100+"%",a.h.style.left=m.x/l.x*100+"%",a.h.style.top=m.y/l.y*100+"%",a.h.style.width=n.x/l.x*100+"%"):(a.g.pause(),null!=b.resumeOffset&&0!=b.resumeOffset&&(a.g.currentTime+=b.resumeOffset),a.h.loop=!1,a.h.style.height="100%",a.h.style.left="0",a.h.style.top="0",a.h.style.width="100%")),q=!1,r=function(){if(!a.C&&!b.overlay&&null==b.resumeOffset)if(b.timelineRange&&b.endTime&& -Infinity!=b.endTime)a.g.currentTime!=b.endTime&&(a.g.currentTime=b.endTime);else{var J=Date.now();a.g.currentTime+=(J-e)/1E3;e=J}},t=function(J){var L,M;return Q(function(O){if(1==O.g){r();L=Pr(a,b.pre,d-f);if(J&&b.groupId)for(;L&&L.groupId==b.groupId;)d++,L=Pr(a,b.pre,d-f);a.s&&(!b.groupId||L&&L.groupId!=b.groupId)&&(a.s.stop(),a.s=null);Zr(a,b);if(L&&!L.overlay)return O.A(2);b.post&&(a.m=null,a.u=null);return a.C?F(O,a.j.detach(),4):F(O,a.j.kc(),4)}2!=O.g&&(a.C&&(M=b.resumeOffset,null==M&&(M=b.timelineRange&& -b.endTime&&Infinity!=b.endTime?b.endTime-(a.m||0):(Date.now()-e)/1E3),a.i(new U("ad-content-resume-requested",(new Map).set("offset",M)))),a.i(new U("ad-stopped")),a.l.Sa(),a.J=!1,a.C?Vr(a):(a.h.style.display="none",r(),a.g.ended||a.g.play()));Wr(a);L&&(a.i(new U("ad-stopped")),a.l.Sa(),Qr(a,L,c,++d,e,f));H(O)})},w=function(J){return Q(function(L){if(q)return L.return();q=!0;a.i(new U("ad-error",(new Map).set("originalEvent",J)));return F(L,t(!1),0)})},v=function(){return Q(function(J){if(1==J.g){if(q)return J.return(); -q=!0;return F(J,t(!1),2)}a.i(new U("ad-complete"));H(J)})},a.Z=function(){return Q(function(J){if(q)return J.return();q=!0;a.i(new U("ad-skipped"));return F(J,t(!0),0)})},y=new Lr(a.h,b,a.Z,c,d,!a.C),a.C||(y.setMuted(a.g.muted),y.setVolume(a.g.volume)),a.i(new U("ad-started",(new Map).set("ad",y))),(z=y.canSkipNow())&&a.i(new U("ad-skip-state-changed")),a.l.qa(a.j,"error",w),a.l.o(a.h,"timeupdate",function(){if(a.h.duration){var J=y.canSkipNow();z!=J&&0=J.playRangeEnd?v():a.i(new U("ad-paused"))}),a.l.o(a.h,"volumechange",function(){a.h.muted?a.i(new U("ad-muted")):a.i(new U("ad-volume-changed"))}), -ta(K,4),Or(a),b.startTime&&b.endTime&&Infinity!=b.endTime&&b.startTime!=b.endTime&&(A=b.endTime-b.startTime,0b.endTime)&&a.Z()}));wa(K,0);break;case 4:I=xa(K);if(!a.J)return K.return();w(I);H(K)}})} -function gs(a,b){b.displayOnBackground&&(a.g.style.zIndex="1");if(null!=b.currentVideo){var c=b.currentVideo;a.g.style.transformOrigin="top left";var d=!0,e=[],f=c.topLeft.x/c.viewport.x*100;0=f&&(e.push("translateX("+f+"%)"),d=!1);f=c.topLeft.y/c.viewport.y*100;0=f&&(e.push("translateY("+f+"%)"),d=!1);f=c.size.x/c.viewport.x;1>f&&e.push("scaleX("+f+")");c=c.size.y/c.viewport.y;1>f&&e.push("scaleY("+c+")");e.length&&(a.g.style.transform=e.join(" "));d&&(a.g.style.transition="transform 250ms")}a.B&& -(a.B.style.pointerEvents="none",b.background&&(a.B.style.background=b.background));a.F&&(a.F.style.background=b.overlay?"":"rgb(0, 0, 0)")}function Zr(a,b){if(!b||b.displayOnBackground)a.g.style.zIndex="";b&&null==b.currentVideo||(a.g.style.transformOrigin="",a.g.style.transition="",a.g.style.transform="");a.B&&(a.B.style.pointerEvents="",!b||b.background)&&(a.B.style.background="");a.F&&(a.F.style.background="")} -function as(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,w,v,y,z,A,B,D,G,C,E,I,K,J,L,M,O,N,P,R,T,ca,Y,Ma,Na,Ea,va,Ka,Pa,za;return Q(function(ia){switch(ia.g){case 1:c=[];if(!b)return ia.return(c);d=b.values.find(function(Aa){return"X-ASSET-URI"==Aa.key});e=b.values.find(function(Aa){return"X-ASSET-LIST"==Aa.key});if(!d&&!e)return ia.return(c);f=null;if(g=b.values.find(function(Aa){return"ID"==Aa.key}))f=g.data;h=null==f?Math.floor(10*b.startTime)/10:b.startTime;(k=b.endTime)&&Infinity!=b.endTime&&"number"== -typeof b.endTime&&(k=null==f?Math.floor(10*b.endTime)/10:b.endTime);l=b.values.find(function(Aa){return"X-RESTRICT"==Aa.key});n=m=!0;l&&l.data&&(q=l.data,m=!q.includes("SKIP"),n=!q.includes("JUMP"));r=m?0:null;if(t=b.values.find(function(Aa){return"X-ENABLE-SKIP-AFTER"==Aa.key}))w=t.data,r=parseFloat(w),isNaN(r)&&(r=m?0:null);v=null;if(y=b.values.find(function(Aa){return"X-ENABLE-SKIP-FOR"==Aa.key}))z=y.data,v=parseFloat(z),isNaN(r)&&(v=null);A=null;if(B=b.values.find(function(Aa){return"X-RESUME-OFFSET"== -Aa.key}))D=B.data,A=parseFloat(D),isNaN(A)&&(A=null);G=null;if(C=b.values.find(function(Aa){return"X-PLAYOUT-LIMIT"==Aa.key}))E=C.data,G=parseFloat(E),isNaN(G)&&(G=null);J=K=I=!1;if(L=b.values.find(function(Aa){return"CUE"==Aa.key}))M=L.data,I=M.includes("ONCE"),K=M.includes("PRE"),J=M.includes("POST");O=!1;(N=b.values.find(function(Aa){return"X-TIMELINE-OCCUPIES"==Aa.key}))?(P=N.data,O=P.includes("RANGE")):!B&&a.G.T()&&(O=!K&&!J);if(d){R=d.data;if(!R)return ia.return(c);c.push({id:f,groupId:null, -startTime:h,endTime:k,uri:R,mimeType:null,isSkippable:m,skipOffset:r,skipFor:v,canJump:n,resumeOffset:A,playoutLimit:G,once:I,pre:K,post:J,timelineRange:O,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});ia.A(2);break}if(!e){ia.A(2);break}T=e.data;if(!T)return ia.return(c);ta(ia,4);ca={type:11};return F(ia,ds(a,T,ca),6);case 6:Y=ia.h;Ma=Wb(Y);Na=JSON.parse(Ma);if(Ea=Na["SKIP-CONTROL"])va=Ea["ENABLE-SKIP-AFTER"],"number"==typeof va&&(r=parseFloat(va),isNaN(va)&&(r=m? -0:null)),Ka=Ea["ENABLE-SKIP-FOR"],"number"==typeof Ka&&(v=parseFloat(Ka),isNaN(Ka)&&(v=null));for(Pa=0;Pab.endTime)&&a.Z()}));wa(K,0);break;case 4:H=xa(K);if(!a.J)return K.return();w(H);I(K)}})} +function os(a,b){b.displayOnBackground&&(a.g.style.zIndex="1");if(null!=b.currentVideo){var c=b.currentVideo;a.g.style.transformOrigin="top left";var d=!0,e=[],f=c.topLeft.x/c.viewport.x*100;0=f&&(e.push("translateX("+f+"%)"),d=!1);f=c.topLeft.y/c.viewport.y*100;0=f&&(e.push("translateY("+f+"%)"),d=!1);f=c.size.x/c.viewport.x;1>f&&e.push("scaleX("+f+")");c=c.size.y/c.viewport.y;1>f&&e.push("scaleY("+c+")");e.length&&(a.g.style.transform=e.join(" "));d&&(a.g.style.transition="transform 250ms")}a.C&& +(a.C.style.pointerEvents="none",b.background&&(a.C.style.background=b.background));a.G&&(a.G.style.background=b.overlay?"":"rgb(0, 0, 0)")}function gs(a,b){if(!b||b.displayOnBackground)a.g.style.zIndex="";b&&null==b.currentVideo||(a.g.style.transformOrigin="",a.g.style.transition="",a.g.style.transform="");a.C&&(a.C.style.pointerEvents="",!b||b.background)&&(a.C.style.background="");a.G&&(a.G.style.background="")} +function is(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca,Y,Ma,Na,Ea,va,Ja,Pa,za;return Q(function(ja){switch(ja.g){case 1:c=[];if(!b)return ja.return(c);d=b.values.find(function(Aa){return"X-ASSET-URI"==Aa.key});e=b.values.find(function(Aa){return"X-ASSET-LIST"==Aa.key});if(!d&&!e)return ja.return(c);f=null;if(g=b.values.find(function(Aa){return"ID"==Aa.key}))f=g.data;h=null==f?Math.floor(10*b.startTime)/10:b.startTime;(k=b.endTime)&&Infinity!=b.endTime&&"number"== +typeof b.endTime&&(k=null==f?Math.floor(10*b.endTime)/10:b.endTime);l=b.values.find(function(Aa){return"X-RESTRICT"==Aa.key});n=m=!0;l&&l.data&&(q=l.data,m=!q.includes("SKIP"),n=!q.includes("JUMP"));r=m?0:null;if(u=b.values.find(function(Aa){return"X-ENABLE-SKIP-AFTER"==Aa.key}))w=u.data,r=parseFloat(w),isNaN(r)&&(r=m?0:null);v=null;if(y=b.values.find(function(Aa){return"X-ENABLE-SKIP-FOR"==Aa.key}))z=y.data,v=parseFloat(z),isNaN(r)&&(v=null);A=null;if(B=b.values.find(function(Aa){return"X-RESUME-OFFSET"== +Aa.key}))D=B.data,A=parseFloat(D),isNaN(A)&&(A=null);G=null;if(C=b.values.find(function(Aa){return"X-PLAYOUT-LIMIT"==Aa.key}))E=C.data,G=parseFloat(E),isNaN(G)&&(G=null);J=K=H=!1;if(L=b.values.find(function(Aa){return"CUE"==Aa.key}))N=L.data,H=N.includes("ONCE"),K=N.includes("PRE"),J=N.includes("POST");O=!1;(M=b.values.find(function(Aa){return"X-TIMELINE-OCCUPIES"==Aa.key}))?(P=M.data,O=P.includes("RANGE")):!B&&a.D.T()&&(O=!K&&!J);if(d){R=d.data;if(!R)return ja.return(c);c.push({id:f,groupId:null, +startTime:h,endTime:k,uri:R,mimeType:null,isSkippable:m,skipOffset:r,skipFor:v,canJump:n,resumeOffset:A,playoutLimit:G,once:H,pre:K,post:J,timelineRange:O,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});ja.A(2);break}if(!e){ja.A(2);break}T=e.data;if(!T)return ja.return(c);ta(ja,4);ca={type:11};return F(ja,ls(a,T,ca),6);case 6:Y=ja.h;Ma=Wb(Y);Na=JSON.parse(Ma);if(Ea=Na["SKIP-CONTROL"])va=Ea["ENABLE-SKIP-AFTER"],"number"==typeof va&&(r=parseFloat(va),isNaN(va)&&(r=m? +0:null)),Ja=Ea["ENABLE-SKIP-FOR"],"number"==typeof Ja&&(v=parseFloat(Ja),isNaN(Ja)&&(v=null));for(Pa=0;Pad.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break}}c&&d&&!a.L.includes(d.adId)&&(a.B=b,a.h.currentTime=c.startTimeInSeconds)}} -function ps(a){if(a.h.duration&&(a.g||a.j.length)){var b=a.h.currentTime,c=!1;if(a.g){c=!0;var d=a.D,e=d.startTimeInSeconds+.5*d.durationInSeconds,f=d.startTimeInSeconds+.75*d.durationInSeconds;b>=d.startTimeInSeconds+.25*d.durationInSeconds&&!a.u.includes("firstQuartile")?(a.u.push("firstQuartile"),rs(a,"firstQuartile")):b>=e&&!a.u.includes("midpoint")?(a.u.push("midpoint"),rs(a,"midpoint")):b>=f&&!a.u.includes("thirdQuartile")&&(a.u.push("thirdQuartile"),rs(a,"thirdQuartile"));d=a.g.getRemainingTime(); -e=a.g.getDuration();a.g.canSkipNow()&&0=d||d>e)&&js(a)}if(!a.g||!a.g.isLinear()){a:for(d=u(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g&&a.g.isLinear())break;for(f=0;fb){if(a.L.includes(g.adId)){if(a.h.ended)continue;a.h.currentTime=h;break a}js(a);a.K=e;a.g=new hs(g,f+1,e.ads.length,!0,a.h);a.D=g;0===f&&rs(a,"breakStart");ss(a);break}}}if(!a.g)for(d= -u(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g)break;for(f=0;fb&&(a.h.currentTime=a.B),a.B=null)}}} -function js(a){if(a.g){for(;a.C.lastChild;)a.C.removeChild(a.C.firstChild);a.I||a.L.push(a.D.adId);var b=a.g.m;(void 0===b?0:b)?rs(a,"skip"):rs(a,"complete");b=u(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.s.Ca(c.target,c.type,c.listener);a.m=[];a.u=[];b=a.g.getPositionInSequence();c=a.g.getSequenceLength();b===c&&rs(a,"breakEnd");a.g=null;a.D=null;a.K=null}} -function ss(a){var b=!1;a.h.paused?b=!0:(rs(a,"impression"),rs(a,"start"));a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted&&rs(a,"mute")}});a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted||rs(a,"unmute")}});a.m.push({target:a.h,type:"play",listener:function(){b?(rs(a,"impression"),rs(a,"start"),b=!1):rs(a,"resume")}});a.m.push({target:a.h,type:"pause",listener:function(){rs(a,"pause")}});for(var c=u(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.s.o(d.target, +p.getVastMediaWidth=function(){return 0};p.getVastAdId=function(){return this.h.vastAdId||""};p.getAdId=function(){return this.h.adId};p.getCreativeAdId=function(){return this.h.creativeId};p.getAdvertiserName=function(){return""};p.getMediaUrl=function(){return null};p.getTimeOffset=function(){return 0};p.getPodIndex=function(){return 0};p.release=function(){this.l=this.i=this.g=this.h=null};S("shaka.ads.MediaTailorAd",ps);ps.prototype.release=ps.prototype.release;ps.prototype.getPodIndex=ps.prototype.getPodIndex; +ps.prototype.getTimeOffset=ps.prototype.getTimeOffset;ps.prototype.getMediaUrl=ps.prototype.getMediaUrl;ps.prototype.getAdvertiserName=ps.prototype.getAdvertiserName;ps.prototype.getCreativeAdId=ps.prototype.getCreativeAdId;ps.prototype.getAdId=ps.prototype.getAdId;ps.prototype.getVastAdId=ps.prototype.getVastAdId;ps.prototype.getVastMediaWidth=ps.prototype.getVastMediaWidth;ps.prototype.getVastMediaHeight=ps.prototype.getVastMediaHeight;ps.prototype.getVastMediaBitrate=ps.prototype.getVastMediaBitrate; +ps.prototype.getDescription=ps.prototype.getDescription;ps.prototype.getTitle=ps.prototype.getTitle;ps.prototype.getPositionInSequence=ps.prototype.getPositionInSequence;ps.prototype.getSequenceLength=ps.prototype.getSequenceLength;ps.prototype.setMuted=ps.prototype.setMuted;ps.prototype.resize=ps.prototype.resize;ps.prototype.isLinear=ps.prototype.isLinear;ps.prototype.isMuted=ps.prototype.isMuted;ps.prototype.setVolume=ps.prototype.setVolume;ps.prototype.getVolume=ps.prototype.getVolume; +ps.prototype.play=ps.prototype.play;ps.prototype.pause=ps.prototype.pause;ps.prototype.skip=ps.prototype.skip;ps.prototype.canSkipNow=ps.prototype.canSkipNow;ps.prototype.getTimeUntilSkippable=ps.prototype.getTimeUntilSkippable;ps.prototype.isSkippable=ps.prototype.isSkippable;ps.prototype.isPaused=ps.prototype.isPaused;ps.prototype.getRemainingTime=ps.prototype.getRemainingTime;ps.prototype.getMinSuggestedDuration=ps.prototype.getMinSuggestedDuration;ps.prototype.getDuration=ps.prototype.getDuration; +ps.prototype.isUsingAnotherMediaElement=ps.prototype.isUsingAnotherMediaElement;ps.prototype.hasCustomClick=ps.prototype.hasCustomClick;ps.prototype.isClientRendering=ps.prototype.isClientRendering;ps.prototype.needsSkipUI=ps.prototype.needsSkipUI;function qs(a,b,c,d){this.C=a;this.J=b;this.h=c;this.l=null;this.O=NaN;this.i=d;this.I=!1;this.B=null;this.j=[];this.L=[];this.K=this.D=this.g=null;this.F=new Map;this.m=[];this.u=[];this.G="";this.N=!0;this.H="";this.s=new Oc}qs.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.s.Da(b.target,b.type,b.listener);rs(this);this.m=[];this.u=[];this.G="";this.N=!0;this.H="";this.B=null;this.j=[];this.L=[];this.F.clear()}; +qs.prototype.release=function(){this.stop();this.s&&this.s.release()};qs.prototype.onManifestUpdated=function(a){this.I=a;""!=this.G&&(ss(this,this.G,this.N),this.N=!1)};qs.prototype.getCuePoints=function(){for(var a=[],b=t(this.j),c=b.next();!c.done;c=b.next()){c=t(c.value.ads);for(var d=c.next();!d.done;d=c.next())d=d.value,a.push({start:d.startTimeInSeconds,end:d.startTimeInSeconds+d.durationInSeconds})}return a}; +function ts(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u;Q(function(w){if(1==w.g)return d={type:7},e=Xg([b],Gg()),e.method="POST",c&&(f=JSON.stringify(c),e.body=$b(f)),g=a.J.request(7,e,d),ta(w,2),F(w,g.promise,4);if(2!=w.g){h=w.h;k=Wb(h.data);l=JSON.parse(k);if(l.manifestUrl&&l.trackingUrl)m=new qb(b),n=new qb(l.trackingUrl),a.G=m.resolve(n).toString(),q=Date.now()/1E3,r=q-a.O,a.i(new U("ads-loaded",(new Map).set("loadTime",r))),u=new qb(l.manifestUrl),a.l.resolve(m.resolve(u).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor."); +return wa(w,0)}xa(w);if(!a.H.length)return a.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),a.l=null,w.return();a.l.resolve(a.H);a.l=null;I(w)})} +function ss(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z;Q(function(A){if(1==A.g)return d={type:8},e=Xg([b],Gg()),f=a.J.request(7,e,d),ta(A,2),F(A,f.promise,4);if(2!=A.g){g=A.h;h=[];k=Wb(g.data);l=JSON.parse(k);if(0d.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break}}c&&d&&!a.L.includes(d.adId)&&(a.B=b,a.h.currentTime=c.startTimeInSeconds)}} +function xs(a){if(a.h.duration&&(a.g||a.j.length)){var b=a.h.currentTime,c=!1;if(a.g){c=!0;var d=a.D,e=d.startTimeInSeconds+.5*d.durationInSeconds,f=d.startTimeInSeconds+.75*d.durationInSeconds;b>=d.startTimeInSeconds+.25*d.durationInSeconds&&!a.u.includes("firstQuartile")?(a.u.push("firstQuartile"),zs(a,"firstQuartile")):b>=e&&!a.u.includes("midpoint")?(a.u.push("midpoint"),zs(a,"midpoint")):b>=f&&!a.u.includes("thirdQuartile")&&(a.u.push("thirdQuartile"),zs(a,"thirdQuartile"));d=a.g.getRemainingTime(); +e=a.g.getDuration();a.g.canSkipNow()&&0=d||d>e)&&rs(a)}if(!a.g||!a.g.isLinear()){a:for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g&&a.g.isLinear())break;for(f=0;fb){if(a.L.includes(g.adId)){if(a.h.ended)continue;a.h.currentTime=h;break a}rs(a);a.K=e;a.g=new ps(g,f+1,e.ads.length,!0,a.h);a.D=g;0===f&&zs(a,"breakStart");As(a);break}}}if(!a.g)for(d= +t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g)break;for(f=0;fb&&(a.h.currentTime=a.B),a.B=null)}}} +function rs(a){if(a.g){for(;a.C.lastChild;)a.C.removeChild(a.C.firstChild);a.I||a.L.push(a.D.adId);var b=a.g.m;(void 0===b?0:b)?zs(a,"skip"):zs(a,"complete");b=t(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.s.Da(c.target,c.type,c.listener);a.m=[];a.u=[];b=a.g.getPositionInSequence();c=a.g.getSequenceLength();b===c&&zs(a,"breakEnd");a.g=null;a.D=null;a.K=null}} +function As(a){var b=!1;a.h.paused?b=!0:(zs(a,"impression"),zs(a,"start"));a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted&&zs(a,"mute")}});a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted||zs(a,"unmute")}});a.m.push({target:a.h,type:"play",listener:function(){b?(zs(a,"impression"),zs(a,"start"),b=!1):zs(a,"resume")}});a.m.push({target:a.h,type:"pause",listener:function(){zs(a,"pause")}});for(var c=t(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.s.o(d.target, d.type,d.listener)} -function rs(a,b){var c=a.D.trackingEvents.find(function(f){return f.eventType==b});c||(c=a.K.adBreakTrackingEvents.find(function(f){return f.eventType==b}));if(c){var d={type:10};c=u(c.beaconUrls);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&""!=e&&(e=Wg([e],Fg()),e.method="POST",a.J.request(7,e,d))}switch(b){case "impression":a.i(new U("ad-impression"));break;case "start":a.i(new U("ad-started",(new Map).set("ad",a.g)));break;case "mute":a.i(new U("ad-muted"));break;case "unmute":a.i(new U("ad-volume-changed"));break; +function zs(a,b){var c=a.D.trackingEvents.find(function(f){return f.eventType==b});c||(c=a.K.adBreakTrackingEvents.find(function(f){return f.eventType==b}));if(c){var d={type:10};c=t(c.beaconUrls);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&""!=e&&(e=Xg([e],Gg()),e.method="POST",a.J.request(7,e,d))}switch(b){case "impression":a.i(new U("ad-impression"));break;case "start":a.i(new U("ad-started",(new Map).set("ad",a.g)));break;case "mute":a.i(new U("ad-muted"));break;case "unmute":a.i(new U("ad-volume-changed"));break; case "resume":a.i(new U("ad-resumed"));break;case "pause":a.i(new U("ad-paused"));break;case "firstQuartile":a.i(new U("ad-first-quartile"));break;case "midpoint":a.i(new U("ad-midpoint"));break;case "thirdQuartile":a.i(new U("ad-third-quartile"));break;case "complete":a.i(new U("ad-complete"));a.i(new U("ad-stopped"));break;case "skip":a.i(new U("ad-skipped"));a.i(new U("ad-stopped"));break;case "breakStart":a.C.setAttribute("ad-active","true");break;case "breakEnd":a.C.removeAttribute("ad-active"); -break;case "skipStateChanged":a.i(new U("ad-skip-state-changed"))}};function ts(a,b){this.g=a;this.i=null;this.h=b}p=ts.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!1};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!1};p.getDuration=function(){return this.i?this.i.duration:-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1};p.isPaused=function(){return this.h.paused};p.isSkippable=function(){return this.g.isSkippable()}; +break;case "skipStateChanged":a.i(new U("ad-skip-state-changed"))}};function Bs(a,b){this.g=a;this.i=null;this.h=b}p=Bs.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!1};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!1};p.getDuration=function(){return this.i?this.i.duration:-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1};p.isPaused=function(){return this.h.paused};p.isSkippable=function(){return this.g.isSkippable()}; p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};p.skip=function(){this.h.currentTime+=this.getRemainingTime()};p.pause=function(){return this.h.pause()};p.play=function(){return this.h.play()};p.getVolume=function(){return this.h.volume};p.setVolume=function(a){this.h.volume=a};p.isMuted=function(){return this.h.muted};p.isLinear=function(){return!0};p.resize=function(){}; p.setMuted=function(a){this.h.muted=a};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()}; -p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()};p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return null};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.i=this.g=null};S("shaka.ads.ServerSideAd",ts); -ts.prototype.release=ts.prototype.release;ts.prototype.getPodIndex=ts.prototype.getPodIndex;ts.prototype.getTimeOffset=ts.prototype.getTimeOffset;ts.prototype.getMediaUrl=ts.prototype.getMediaUrl;ts.prototype.getAdvertiserName=ts.prototype.getAdvertiserName;ts.prototype.getCreativeAdId=ts.prototype.getCreativeAdId;ts.prototype.getAdId=ts.prototype.getAdId;ts.prototype.getVastAdId=ts.prototype.getVastAdId;ts.prototype.getVastMediaWidth=ts.prototype.getVastMediaWidth; -ts.prototype.getVastMediaHeight=ts.prototype.getVastMediaHeight;ts.prototype.getVastMediaBitrate=ts.prototype.getVastMediaBitrate;ts.prototype.getDescription=ts.prototype.getDescription;ts.prototype.getTitle=ts.prototype.getTitle;ts.prototype.getPositionInSequence=ts.prototype.getPositionInSequence;ts.prototype.getSequenceLength=ts.prototype.getSequenceLength;ts.prototype.setMuted=ts.prototype.setMuted;ts.prototype.resize=ts.prototype.resize;ts.prototype.isLinear=ts.prototype.isLinear; -ts.prototype.isMuted=ts.prototype.isMuted;ts.prototype.setVolume=ts.prototype.setVolume;ts.prototype.getVolume=ts.prototype.getVolume;ts.prototype.play=ts.prototype.play;ts.prototype.pause=ts.prototype.pause;ts.prototype.skip=ts.prototype.skip;ts.prototype.canSkipNow=ts.prototype.canSkipNow;ts.prototype.getTimeUntilSkippable=ts.prototype.getTimeUntilSkippable;ts.prototype.isSkippable=ts.prototype.isSkippable;ts.prototype.isPaused=ts.prototype.isPaused;ts.prototype.getRemainingTime=ts.prototype.getRemainingTime; -ts.prototype.getMinSuggestedDuration=ts.prototype.getMinSuggestedDuration;ts.prototype.getDuration=ts.prototype.getDuration;ts.prototype.isUsingAnotherMediaElement=ts.prototype.isUsingAnotherMediaElement;ts.prototype.hasCustomClick=ts.prototype.hasCustomClick;ts.prototype.isClientRendering=ts.prototype.isClientRendering;ts.prototype.needsSkipUI=ts.prototype.needsSkipUI;function us(a,b,c,d){var e=this;this.u=a;this.l=b;this.j=null;this.F=NaN;this.i=d;this.G=!1;this.B=this.m=this.s=null;this.C="";this.D=[];this.h=new Oc;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.u,a);this.i(new U("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){vs(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.C.length? -e.j.resolve(e.C):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new ts(f,e.l);e.B&&(e.m.i=e.B);e.i(new U("ad-started",(new Map).set("ad",e.m)));e.u.setAttribute("ad-active","true")});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.u.removeAttribute("ad-active"); +p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()};p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return null};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.i=this.g=null};S("shaka.ads.ServerSideAd",Bs); +Bs.prototype.release=Bs.prototype.release;Bs.prototype.getPodIndex=Bs.prototype.getPodIndex;Bs.prototype.getTimeOffset=Bs.prototype.getTimeOffset;Bs.prototype.getMediaUrl=Bs.prototype.getMediaUrl;Bs.prototype.getAdvertiserName=Bs.prototype.getAdvertiserName;Bs.prototype.getCreativeAdId=Bs.prototype.getCreativeAdId;Bs.prototype.getAdId=Bs.prototype.getAdId;Bs.prototype.getVastAdId=Bs.prototype.getVastAdId;Bs.prototype.getVastMediaWidth=Bs.prototype.getVastMediaWidth; +Bs.prototype.getVastMediaHeight=Bs.prototype.getVastMediaHeight;Bs.prototype.getVastMediaBitrate=Bs.prototype.getVastMediaBitrate;Bs.prototype.getDescription=Bs.prototype.getDescription;Bs.prototype.getTitle=Bs.prototype.getTitle;Bs.prototype.getPositionInSequence=Bs.prototype.getPositionInSequence;Bs.prototype.getSequenceLength=Bs.prototype.getSequenceLength;Bs.prototype.setMuted=Bs.prototype.setMuted;Bs.prototype.resize=Bs.prototype.resize;Bs.prototype.isLinear=Bs.prototype.isLinear; +Bs.prototype.isMuted=Bs.prototype.isMuted;Bs.prototype.setVolume=Bs.prototype.setVolume;Bs.prototype.getVolume=Bs.prototype.getVolume;Bs.prototype.play=Bs.prototype.play;Bs.prototype.pause=Bs.prototype.pause;Bs.prototype.skip=Bs.prototype.skip;Bs.prototype.canSkipNow=Bs.prototype.canSkipNow;Bs.prototype.getTimeUntilSkippable=Bs.prototype.getTimeUntilSkippable;Bs.prototype.isSkippable=Bs.prototype.isSkippable;Bs.prototype.isPaused=Bs.prototype.isPaused;Bs.prototype.getRemainingTime=Bs.prototype.getRemainingTime; +Bs.prototype.getMinSuggestedDuration=Bs.prototype.getMinSuggestedDuration;Bs.prototype.getDuration=Bs.prototype.getDuration;Bs.prototype.isUsingAnotherMediaElement=Bs.prototype.isUsingAnotherMediaElement;Bs.prototype.hasCustomClick=Bs.prototype.hasCustomClick;Bs.prototype.isClientRendering=Bs.prototype.isClientRendering;Bs.prototype.needsSkipUI=Bs.prototype.needsSkipUI;function Cs(a,b,c,d){var e=this;this.u=a;this.l=b;this.j=null;this.F=NaN;this.i=d;this.G=!1;this.B=this.m=this.s=null;this.C="";this.D=[];this.h=new Oc;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.u,a);this.i(new U("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Ds(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.C.length? +e.j.resolve(e.C):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new Bs(f,e.l);e.B&&(e.m.i=e.B);e.i(new U("ad-started",(new Map).set("ad",e.m)));e.u.setAttribute("ad-active","true")});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.u.removeAttribute("ad-active"); var f=e.l.currentTime;e.s&&e.s>f&&(e.l.currentTime=e.s,e.s=null)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.B=f.getStreamData().adProgressData;e.m&&(e.m.i=e.B)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new U("ad-first-quartile"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new U("ad-midpoint"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new U("ad-third-quartile"))}); -this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new U("ad-complete"));e.i(new U("ad-stopped"));e.u.removeAttribute("ad-active");e.m=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new U("ad-skipped"));e.i(new U("ad-stopped"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=u(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.D= -f;e.i(new U("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}p=us.prototype;p.configure=function(){};p.stop=function(){this.C="";this.s=null;this.D=[]};p.release=function(){this.stop();this.h&&this.h.release()};p.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};p.getCuePoints=function(){return this.D}; -function vs(a,b){a.i(new U("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.G||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.s=c,a.l.currentTime=d.start)}})};function ws(){jb.call(this);this.h=this.i=this.j=this.g=null;this.m=new zr;this.s=navigator.language;this.l=null}pa(ws,jb);p=ws.prototype;p.setLocale=function(a){this.s=a};p.configure=function(a){this.l=a;this.g&&this.g.configure(this.l);this.j&&this.j.configure(this.l);this.h&&this.h.configure(this.l)};p.initInterstitial=function(a,b,c){var d=this;this.g&&this.g.release();this.g=new Nr(a,b,c,function(e){return xs(d,e)});this.g.configure(this.l)}; -p.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new V(2,10,1E4);this.j&&this.j.release();this.j=new Fr(a,b,this.s,c,function(e){return xs(d,e)});this.j.configure(this.l)};p.release=function(){this.g&&(this.g.release(),this.g=null);this.j&&(this.j.release(),this.j=null);this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);jb.prototype.release.call(this)}; -p.onAssetUnload=function(){this.g&&this.g.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.h&&this.h.stop();this.dispatchEvent(new U("ad-stopped"));this.dispatchEvent(new U("ad-content-attach-requested"));this.m=new zr};p.requestClientSideAds=function(a){if(!this.j)throw new V(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.G=Date.now()/1E3;b.m.requestAds(a)}; -p.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new V(1,10,10001);var b=this.j;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};p.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new is(a,b,c,function(e){return xs(d,e)})};p.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new V(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new V(1,10,10004)):(d.l=new Hg,ls(d,a,b),d.H=c||"",d.O=Date.now()/1E3,a=d.l);return a}; -p.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new V(1,10,10005);var b=this.i;b.G=a;b.i(new U("ads-loaded",(new Map).set("loadTime",0)))};p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new V(2,10,10002);this.h&&this.h.release();this.h=new us(a,b,this.s,function(d){return xs(c,d)});this.h.configure(this.l)}; -p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.h)throw new V(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&ab('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.15.0";c=this.h;c.j?a=Promise.reject(new V(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&& -(c.G=!0),c.j=new Hg,c.g.requestStream(a),c.C=b||"",c.F=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.h)throw new V(1,10,10003);(a.mpt||a.mpv)&&ab('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.mpt="Shaka Player";a.mpv="v4.15.0";this.h.g.replaceAdTagParameters(a)}; -p.getServerSideCuePoints=function(){Uc("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};p.getCuePoints=function(){var a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};p.getStats=function(){var a=this.m;return{loadTimes:a.g,averageLoadTime:Ar(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i}};p.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)}; -p.onDashTimedMetadata=function(a){this.h&&"urn:google:dai:2018"==a.schemeIdUri&&this.h.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};p.onHlsTimedMetadata=function(a,b){this.h&&this.h.g.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.h)this.h.onCueMetadataChange(a)};p.onHLSInterstitialMetadata=function(a,b,c){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,a,b),this.g&&$r(this.g,c))}; -p.onDASHInterstitialMetadata=function(a,b,c){if(!this.l||!this.l.disableDASHInterstitial){var d=c.schemeIdUri;if("urn:mpeg:dash:event:alternativeMPD:insert:2025"==d||"urn:mpeg:dash:event:alternativeMPD:replace:2025"==d){if(this.g||this.initInterstitial(null,a,b),this.g&&(a=this.g,b="urn:mpeg:dash:event:alternativeMPD:replace:2025"==c.schemeIdUri,d="urn:mpeg:dash:event:alternativeMPD:insert:2025"==c.schemeIdUri,b||d)){for(var e=c.startTime,f=c.endTime,g=null,h=0,k,l=u(c.eventNode.children),m=l.next();!m.done;m= -l.next())if(m=m.value,"AlternativeMPD"==m.tagName){if(m=m.attributes.uri){k=m;break}}else if("InsertPresentation"==m.tagName||"ReplacePresentation"==m.tagName){var n=m.attributes.url;if(n){k=n;(l=Vd(m,"maxDuration",ae))&&(g=l/c.timescale);(l=Vd(m,"returnOffset",ae))&&(h=l/c.timescale);b&&h&&(f=e+h);break}}k&&bs(a,[{id:c.id,groupId:null,startTime:e,endTime:f,uri:k,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:d?h:null,playoutLimit:g,once:!1,pre:!1,post:!1,timelineRange:b&& -!d,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}])}}else("urn:mpeg:dash:event:2012"==d||"urn:scte:dash:scte214-events"==d)&&c.eventNode&&Sd(c.eventNode,"OverlayEvent")&&(this.g||this.initInterstitial(null,a,b),this.g&&cs(this.g,c))}};p.addCustomInterstitial=function(a){if(!this.g)throw new V(1,10,10006);bs(this.g,[a])};p.addAdUrlInterstitial=function(a){if(!this.g)throw new V(1,10,10006);return this.g.addAdUrlInterstitial(a)}; -p.getInterstitialPlayer=function(){if(!this.g)throw new V(1,10,10006);return this.g.Rb()};function xs(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.m.g.push(b.loadTime);break;case "ad-started":a.m.h++;var c=b.ad;c&&!c.isLinear()&&a.m.j++;break;case "ad-complete":a.m.l++;break;case "ad-skipped":a.m.m++;break;case "ad-error":a.m.i++}a.dispatchEvent(b)}S("shaka.ads.AdManager",ws);ws.prototype.getInterstitialPlayer=ws.prototype.getInterstitialPlayer;ws.prototype.addAdUrlInterstitial=ws.prototype.addAdUrlInterstitial; -ws.prototype.addCustomInterstitial=ws.prototype.addCustomInterstitial;ws.prototype.onDASHInterstitialMetadata=ws.prototype.onDASHInterstitialMetadata;ws.prototype.onHLSInterstitialMetadata=ws.prototype.onHLSInterstitialMetadata;ws.prototype.onCueMetadataChange=ws.prototype.onCueMetadataChange;ws.prototype.onHlsTimedMetadata=ws.prototype.onHlsTimedMetadata;ws.prototype.onDashTimedMetadata=ws.prototype.onDashTimedMetadata;ws.prototype.onManifestUpdated=ws.prototype.onManifestUpdated; -ws.prototype.getStats=ws.prototype.getStats;ws.prototype.getCuePoints=ws.prototype.getCuePoints;ws.prototype.getServerSideCuePoints=ws.prototype.getServerSideCuePoints;ws.prototype.replaceServerSideAdTagParameters=ws.prototype.replaceServerSideAdTagParameters;ws.prototype.requestServerSideStream=ws.prototype.requestServerSideStream;ws.prototype.initServerSide=ws.prototype.initServerSide;ws.prototype.addMediaTailorTrackingUrl=ws.prototype.addMediaTailorTrackingUrl; -ws.prototype.requestMediaTailorStream=ws.prototype.requestMediaTailorStream;ws.prototype.initMediaTailor=ws.prototype.initMediaTailor;ws.prototype.updateClientSideAdsRenderingSettings=ws.prototype.updateClientSideAdsRenderingSettings;ws.prototype.requestClientSideAds=ws.prototype.requestClientSideAds;ws.prototype.onAssetUnload=ws.prototype.onAssetUnload;ws.prototype.release=ws.prototype.release;ws.prototype.initClientSide=ws.prototype.initClientSide;ws.prototype.initInterstitial=ws.prototype.initInterstitial; -ws.prototype.configure=ws.prototype.configure;ws.prototype.setLocale=ws.prototype.setLocale;ws.ADS_LOADED="ads-loaded";ws.AD_STARTED="ad-started";ws.AD_FIRST_QUARTILE="ad-first-quartile";ws.AD_MIDPOINT="ad-midpoint";ws.AD_THIRD_QUARTILE="ad-third-quartile";ws.AD_COMPLETE="ad-complete";ws.AD_STOPPED="ad-stopped";ws.AD_SKIPPED="ad-skipped";ws.AD_VOLUME_CHANGED="ad-volume-changed";ws.AD_MUTED="ad-muted";ws.AD_PAUSED="ad-paused";ws.AD_RESUMED="ad-resumed";ws.AD_SKIP_STATE_CHANGED="ad-skip-state-changed"; -ws.CUEPOINTS_CHANGED="ad-cue-points-changed";ws.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";ws.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";ws.AD_CLICKED="ad-clicked";ws.AD_PROGRESS="ad-progress";ws.AD_BUFFERING="ad-buffering";ws.AD_IMPRESSION="ad-impression";ws.AD_DURATION_CHANGED="ad-duration-changed";ws.AD_CLOSED="ad-closed";ws.AD_LOADED="ad-loaded";ws.ALL_ADS_COMPLETED="all-ads-completed";ws.AD_LINEAR_CHANGED="ad-linear-changed";ws.AD_METADATA="ad-metadata"; -ws.AD_RECOVERABLE_ERROR="ad-recoverable-error";ws.AD_ERROR="ad-error";ws.AD_BREAK_READY="ad-break-ready";ws.AD_INTERACTION="ad-interaction";ws.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";ws.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";ws.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";Yp=function(){return new ws};function ys(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof U){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);d=u(Object.getOwnPropertyNames(c));for(b=d.next();!b.done;b=d.next())e.add(b.value);d={};e=u(e);for(b=e.next();!b.done;b=e.next())b=b.value,d[b]=c[b];c={__type__:"Error",contents:d}}else if(c instanceof -TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=u(Hj(c));for(d=c.next();!d.done;d=c.next())d=d.value,b=d.end,e.start.push(d.start),e.end.push(b);c=e}else c=ArrayBuffer.isView(c)&&1===c.BYTES_PER_ELEMENT?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return c}})} -function zs(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=As(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c;return d})} -function As(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}} -var Bs="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Cs="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Ds=["loop","playbackRate"],Es=["pause","play"],Fs=(new Map).set("getAssetUri",2).set("getAudioLanguages",4).set("getAudioLanguagesAndRoles",4).set("getBufferFullness",1).set("getBufferedInfo",2).set("getExpiration",2).set("getKeyStatuses",2).set("getPlaybackRate",2).set("getTextLanguages", -4).set("getTextLanguagesAndRoles",4).set("isAudioOnly",10).set("isBuffering",1).set("isInProgress",1).set("isLive",10).set("isTextTrackVisible",1).set("isVideoOnly",10).set("keySystem",10).set("seekRange",1).set("getLoadMode",10).set("getManifestType",10).set("isFullyLoaded",1).set("isEnded",1),Gs=(new Map).set("getConfiguration",4).set("getConfigurationForLowLatency",4).set("getStats",5).set("getAudioTracks",2).set("getChaptersTracks",2).set("getImageTracks",2).set("getVideoTracks",2).set("getTextTracks", -2).set("getVariantTracks",2),Hs=(new Map).set("getPlayheadTimeAsDate",1).set("getPresentationStartTimeAsDate",20).set("getSegmentAvailabilityDuration",20),Is=[["getConfiguration","configure","getConfigurationForLowLatency","configurationForLowLatency"]],Js=[["isTextTrackVisible","setTextTrackVisibility"]],Ks="cancelTrickPlay configure configurationForLowLatency getChapters resetConfiguration retryStreaming selectAudioLanguage selectAudioTrack selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel selectVideoTrack setTextTrackVisibility trickPlay updateStartTime goToLive useTrickPlayTrackIfAvailable".split(" "), -Ls="addChaptersTrack addTextTrackAsync addThumbnailsTrack getAllThumbnails getChaptersAsync getThumbnails attach attachCanvas detach load unload".split(" ");function Ms(a,b,c,d,e,f,g){var h=this;this.G=a;this.J=g;this.l=new yf(b);this.K=c;this.u=!1;this.B=d;this.F=e;this.L=f;this.i=this.m=!1;this.I="";this.s=null;this.C=function(){return Ns(h)};this.D=function(k,l){k=zs(l);switch(k.type){case "event":var m=k.targetName,n=Xa(k.event);h.B(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var q in m[n])k[q]=m[n][q]}h.u&&(h.K(),h.u=!1);break;case "asyncComplete":if(q=k.id,n=k.error,l=k.res,k=h.h.get(q),h.h.delete(q),k)if(n){q=new V(n.severity, -n.category,n.code);for(m in n)q[m]=n[m];k.reject(q)}else k.resolve(l)}};this.g={video:{},player:{}};this.H=0;this.h=new Map;this.j=null;Os.add(this)}p=Ms.prototype;p.destroy=function(){Os.delete(this);Ps(this);Qs&&Rs(this);this.l&&(this.l.stop(),this.l=null);this.F=this.B=null;this.i=this.m=!1;this.D=this.C=this.j=this.h=this.g=this.s=null;return Promise.resolve()};p.Pa=function(){return this.i};p.Sf=function(){return this.I}; -p.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Ja();var a=new chrome.cast.SessionRequest(this.G,[],null,this.J,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=u(Os),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new Hg;d.u=!0;Ss(d,e)}},function(b){for(var c=u(Os),d=c.next();!d.done;d=c.next())d=d.value,Ts="available"==b,d.l.Ja()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Ts&&this.l.X(Us);(a=Qs)&& -a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Hg,this.u=!0,Ss(this,a)):Qs=null}else window.__onGCastApiAvailable!==Vs&&(Ws=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Vs)};p.Sh=function(a){this.s=a;this.i&&Xs(this,{type:"appData",appData:this.s})}; -p.cast=function(){var a=this;return Q(function(b){if(!a.m)throw new V(1,8,8E3);if(!Ts)throw new V(1,8,8001);if(a.i)throw new V(1,8,8002);a.j=new Hg;chrome.cast.requestSession(function(c){return Ss(a,c)},function(c){return Ys(a,c)});return F(b,a.j,0)})};function Zs(a){a.i&&chrome.cast.requestSession(function(b){return Ss(a,b)},function(b){return Ys(a,b)})}p.wd=function(){if(this.i){Ps(this);if(Qs){Rs(this);try{Qs.stop(function(){},function(){})}catch(a){}Qs=null}Ns(this)}}; -p.get=function(a,b){var c=this;if("video"==a){if(Es.includes(b))return function(){return c.pj.apply(c,[a,b].concat(x(Ja.apply(0,arguments))))}}else if("player"==a){if(Hs.has(b)&&!this.get("player","isLive")())return function(){};if(Ks.includes(b))return function(){return c.pj.apply(c,[a,b].concat(x(Ja.apply(0,arguments))))};if(Ls.includes(b))return function(){return c.Vl.apply(c,[a,b].concat(x(Ja.apply(0,arguments))))};if(Fs.has(b)||Gs.has(b))return function(){return c.g[a][b]}}return this.g[a][b]}; -p.set=function(a,b,c){this.g[a][b]=c;Xs(this,{type:"set",targetName:a,property:b,value:c})};function Ss(a,b){var c=a.L();Qs=b;b.addUpdateListener(a.C);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.D);Ns(a);Xs(a,{type:"init",initState:c,appData:a.s});a.j.resolve()}function Ys(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new V(2,8,c,b))} -p.pj=function(a,b){Xs(this,{type:"call",targetName:a,methodName:b,args:Ja.apply(2,arguments)})};p.Vl=function(a,b){var c=Ja.apply(2,arguments),d=new Hg,e=this.H.toString();this.H++;this.h.set(e,d);try{Xs(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Rs(a){var b=Qs;b.removeUpdateListener(a.C);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.D)} -function Ns(a){var b=Qs?"connected"==Qs.status:!1;if(a.i&&!b){a.F();for(var c in a.g)a.g[c]={};Ps(a)}a.i=b;a.I=b?Qs.receiver.friendlyName:"";a.l.Ja()}function Ps(a){if(a.h)for(var b=u(a.h.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.h.get(c);a.h.delete(c);d.reject(new V(1,7,7E3))}} -function Xs(a,b){b=ys(b);var c=Qs;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},db)}catch(d){throw b=new V(2,8,8005,d),c=new U("error",(new Map).set("detail",b)),a.B("player",c),a.wd(),b;}}var Us=.02,Ts=!1,Qs=null,Ws=null,Os=new Set;function Vs(a){Ws?window.__onGCastApiAvailable=Ws:delete window.__onGCastApiAvailable;Ws=null;if(a)for(var b=u(Os),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function $s(a,b,c,d){d=void 0===d?!1:d;jb.call(this);var e=this;this.i=a;this.h=b;this.l=this.s=this.m=this.u=this.j=null;this.H=c;this.G=d;this.D=[];this.C=[];this.B=[];this.F=new Map;this.g=null;window.chrome?(this.g=new Ms(c,function(){return at(e)},function(){return bt(e)},function(f,g){return ct(e,f,g)},function(){return dt(e)},function(){return et(e)},d),ft(this)):(this.j=this.i,this.u=this.h)}pa($s,jb);p=$s.prototype; -p.destroy=function(a){this.g&&(void 0===a?0:a)&&this.g.wd();this.l&&(this.l.release(),this.l=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.u=this.j=this.i=null;jb.prototype.release.call(this);return Promise.all(a)};p.Fc=function(){return this.j};p.Rb=function(){return this.u};p.Cg=function(){return this.g?this.g.m&&Ts:!1};p.Pa=function(){return this.g?this.g.Pa():!1};p.Sf=function(){return this.g?this.g.Sf():""}; -p.cast=function(){var a=this;return Q(function(b){return 1==b.g?a.g?F(b,a.g.cast(),2):b.return():a.h?F(b,a.h.kc(),0):b.return()})};p.Sh=function(a){this.g&&this.g.Sh(a)};p.Nj=function(){this.g&&Zs(this.g)};p.wd=function(){this.g&&this.g.wd()}; -p.Di=function(a,b){b=void 0===b?!1:b;var c=this;return Q(function(d){if(1==d.g){if(a==c.H&&b==c.G)return d.return();c.H=a;c.G=b;if(!c.g)return d.return();c.g.wd();return F(d,c.g.destroy(),2)}c.g=null;c.g=new Ms(a,function(){return at(c)},function(){return bt(c)},function(e,f){return ct(c,e,f)},function(){return dt(c)},function(){return et(c)},b);c.g.init();H(d)})}; -function ft(a){a.g.init();a.l=new Oc;for(var b=u(Bs),c=b.next();!c.done;c=b.next())a.l.o(a.i,c.value,function(f){a.g.Pa()||(f=Xa(f),a.m.dispatchEvent(f))});for(var d in Ya)a.l.o(a.h,Ya[d],function(f){a.g.Pa()||a.s.dispatchEvent(f)});a.j={};b={};for(var e in a.i)b={me:b.me},b.me=e,Object.defineProperty(a.j,b.me,{configurable:!1,enumerable:!0,get:function(f){return function(){return gt(a,f.me)}}(b),set:function(f){return function(g){var h=f.me;a.g.Pa()?a.g.set("video",h,g):a.i[h]=g}}(b)});a.u={};ht(a, -function(f){Object.defineProperty(a.u,f,{configurable:!1,enumerable:!0,get:function(){return it(a,f)}})});jt(a);a.m=new jb;a.m.Pe=a.j;a.s=new jb;a.s.Pe=a.u;a.l.o(a.h,"unloading",function(){a.g&&a.g.Pa()||kt(a)})}function jt(a){var b=new Map;ht(a,function(c,d){b.has(d)?(d=b.get(d),c.length=e)return null;for(var f=-1,g=-1,h=0;hc||127c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;eb;b++)a.i.push(bu())}function bu(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function cu(a,b){du(a)&&(a.i[a.h][a.g]=new It(b,a.D,a.B,a.u,a.C),a.g++)}function du(a){var b=a.gc;c++,b++)a.i[b]=a.i[c];for(c=0;1>c;c++,b++)a.i[b]=bu()} -function fu(a,b,c){var d=new ne(a.j,b,"");d.textAlign=0===a.F?"left":1===a.F?"right":pe;var e=d.region;a.I&&(e.id+="svc"+a.I);e.id+="win"+a.L;e.height=a.s;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.H;e.viewportAnchorY=a.K;e.viewportAnchorUnits=a.J?pd:2;switch(a.G){case 0:e.regionAnchorX=0;e.regionAnchorY=0;break;case 1:e.regionAnchorX=50;e.regionAnchorY=0;break;case 2:e.regionAnchorX=100;e.regionAnchorY=0;break;case 3:e.regionAnchorX=0;e.regionAnchorY=50;break;case 4:e.regionAnchorX= -50;e.regionAnchorY=50;break;case 5:e.regionAnchorX=100;e.regionAnchorY=50;break;case 6:e.regionAnchorX=0;e.regionAnchorY=100;break;case 7:e.regionAnchorX=50;e.regionAnchorY=100;break;case 8:e.regionAnchorX=100,e.regionAnchorY=100}if(c=Ft(d,"svc"+c,a.i,a.j,b))a.j=b;return c}$t.prototype.display=function(){this.l=!0};function gu(){this.i=[];this.h=null;this.g=0}function hu(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0this.h.length)throw new V(2,2,3E3);this.g+=a}; -iu.prototype.uj=function(a){if(0>this.g-a)throw new V(2,2,3E3);this.g-=a};function ku(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null} -function lu(a,b,c,d){if(!a.g)return[];if(24==c)return c=ju(b).value,d=ju(b).value,c=function(f){return f.map(function(g){return("0"+(g&255).toString(16)).slice(-2)}).join("")}([c,d]),cu(a.g,String.fromCharCode(parseInt(c,16))),[];b=a.g;var e=null;switch(c){case 8:!du(b)||0>=b.g&&0>=b.h||(0>=b.g?(b.g=b.m-1,b.h--):b.g--,b.i[b.h][b.g]=null);break;case 13:b.isVisible()&&(e=fu(b,d,a.i));b.h+1>=b.s?eu(b):b.h++;b.g=0;break;case 14:b.isVisible()&&(e=fu(b,d,a.i));b.i[b.h]=bu();b.g=0;break;case 12:b.isVisible()&& -(e=fu(b,d,a.i)),au(b),b.h=0,b.g=0}return e?[e]:[]} -function mu(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=ju(b).value;b=[];c=u(nu(a,c));for(var e=c.next();!e.done;e=c.next()){e=a.h[e.value];if(e.isVisible()){var f=fu(e,d,a.i);f&&b.push(f)}au(e)}return b}if(137===c)for(b=ju(b).value,b=u(nu(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.display();else{if(138===c){c=ju(b).value;b=null;c=u(nu(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=fu(e,d,a.i)),e.l=!1;return b? -[b]:[]}if(139===c){c=ju(b).value;b=null;c=u(nu(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=fu(e,d,a.i):e.j=d,e.l=!e.l;return b?[b]:[]}if(140===c)return b=ju(b).value,ou(a,b,d);if(143===c)return d=ou(a,255,d),pu(a),d;if(144===c)b.skip(1),d=ju(b).value,a.g&&(a.g.B=0<(d&128),a.g.D=0<(d&64));else if(145===c)d=ju(b).value,c=ju(b).value,b.skip(1),a.g&&(b=qu((c&48)>>4,(c&12)>>2,c&3),a.g.C=qu((d&48)>>4,(d&12)>>2,d&3),a.g.u=b);else if(146===c)d=ju(b).value,b=ju(b).value,a.g&&(a= -a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),b.skip(1),d=ju(b).value,b.skip(1),a.g&&(a.g.F=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];e||(f=new $t(c,a.i),f.j=d,a.h[c]=f);d=ju(b).value;f=ju(b).value;var g=ju(b).value,h=ju(b).value,k=ju(b).value;b=ju(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.D=!1,b.B=!1,b.C="white",b.u="black");b=a.h[c];b.l=0<(d&32);b.K=f&127;b.H=g;b.G=(h&240)>>4;b.J=0<(f&128);b.s=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return[]} -function nu(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}function ou(a,b,c){var d=[];b=u(nu(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(f=fu(f,c,a.i))&&d.push(f);a.h[e]=null}return d}function pu(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function qu(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return ru[a<<2|b<<1|c]} -var su=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),ru="black blue green cyan red magenta yellow white".split(" ");function tu(){this.h=[];this.g=[];this.i=new gu;this.l=0;this.m=new Map([["CC1",new Ut(0,0)],["CC2",new Ut(0,1)],["CC3",new Ut(1,0)],["CC4",new Ut(1,1)]]);this.u=this.s=0;this.j=new Map;this.C=!0;this.B=new Set;uu(this)}tu.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;uu(this);a=u(this.j.values());for(var b=a.next();!b.done;b=a.next())pu(b.value)}; -function uu(a){a.s=0;a.u=0;for(var b=u(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=0,c.g=c.j,c.m=null,Kt(c.i),Kt(c.j),Kt(c.s);a.C=!0} -tu.prototype.extract=function(a,b){if(this.C){for(var c=u(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.C=!1}a=new hh(a,0);if(!(8>a.getLength())&&181===a.aa()&&49===a.Fa()&&1195456820===a.W()&&3===a.aa()&&(c=a.aa(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d>2,g=a.aa(),h=a.aa();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Eb:g,lc:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}}; -tu.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=u(this.h),d=c.next();!d.done;d=c.next())(d=vu(this,d.value))&&b.push(d);c=u(this.g);for(d=c.next();!d.done;d=c.next())hu(this.i,d.value);c=u(this.i.i);for(d=c.next();!d.done;d=c.next())d=wu(this,d.value),b.push.apply(b,x(d));this.i.i=[];this.h=[];this.g=[];return b}; -function vu(a,b){var c=b.type;if(16===(b.Eb&112)){var d=b.Eb>>3&1;0===c?a.s=d:a.u=d}d="CC"+((c<<1|(c?a.u:a.s))+1);c=a.m.get(d);if(255===b.Eb&&255===b.lc||!b.Eb&&!b.lc||!xu(b.Eb)||!xu(b.lc))return 45<=++a.l&&uu(a),null;a.l=0;b.Eb&=127;b.lc&=127;var e=b.Eb;if(1<=e&&15>=e||!b.Eb&&!b.lc)return null;e=null;if(16===(b.Eb&112))a:{a.B.add(d),d=b.Eb;a=b.lc;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];d="white";e=!1;var f= -null;var g=95=g?d=Zt[Math.floor(g/2)]:15>=g?e=!0:f=Math.floor((g-16)/2);a=1===(a&1);4!==c.h&&(g=c.g,3===c.h&&b!==g.g&&(c=1+b-g.h,Tt(g,c,1+g.g-g.h,g.h),Nt(g,0,c-1),Nt(g,b+1,15-b)),g.g=b,g.m=a,g.j=e,g.l=d,g.u=f,g.s="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Ot(c.g,0,32),d=!1,b=Zt[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Yt[(a& -14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))Ot(c.g,1,a);else if(18===(d&246)&&32===(a&224))Ot(c.g,d&1?3:2,a);else{if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.lc){case 32:Wt(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Vt(c,2,a);break;case 38:d=Vt(c,3,a);break;case 39:d=Vt(c,4,a);break;case 40:Ot(c.g,0,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:Kt(c.s);Xt(c);break;case 43:Xt(c);break;case 44:b=c.i;d=null;4!==c.h&&(d=Lt(b,c.l,a));Nt(b,0,15);break;case 45:b= -c.g;3!==c.h?d=null:(d=Lt(b,c.l,a),e=b.g-b.h+1,Tt(b,e-1,e,b.h),Nt(b,0,e-1),Nt(b,b.g,15-b.g),c.l=a);break;case 46:Nt(c.j,0,15);break;case 47:b=null,4!==c.h&&(b=Lt(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Wt(c),c.l=a,d=b}e=d;break a}(23==d||31==d)&&33<=a&&35>=a&&(c.g.B=a-32)}e=null}else a=b.lc,Ot(c.g,0,b.Eb),Ot(c.g,0,a);return e} -function wu(a,b){var c=[];try{for(;b.Oa();){var d=ju(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=ju(b).value&63);if(0!=e){a.B.add("svc"+e);a.j.has(e)||a.j.set(e,new ku(e));for(var g=a.j.get(e),h=b.Ua();b.Ua()-h=m)var r=lu(e,k,m,n);else if(128<=m&&159>=m)r=mu(e,k,m,n);else{if(4096<=m&&4127>=m)e=k,k=m&255,8<=k&&15>=k?e.skip(1):16<=k&&23>=k?e.skip(2):24<=k&&31>=k&&e.skip(3);else if(4224<=m&&4255>=m)e=k,k=m& -255,128<=k&&135>=k?e.skip(4):136<=k&&143>=k&&e.skip(5);else if(32<=m&&127>=m)k=m,e.g&&(127===k?cu(e.g,"\u266a"):cu(e.g,String.fromCharCode(k)));else if(160<=m&&255>=m)e.g&&cu(e.g,String.fromCharCode(m));else if(4128<=m&&4223>=m){if(k=m&255,e.g)if(su.has(k)){var t=su.get(k);cu(e.g,t)}else cu(e.g,"_")}else 4256<=m&&4351>=m&&e.g&&(160!=(m&255)?cu(e.g,"_"):cu(e.g,"[CC]"));r=[]}c.push.apply(c,x(r))}}}}catch(w){if(w instanceof V&&3E3===w.code)bb("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data."); -else throw w;}return c}function xu(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}tu.prototype.getStreams=function(){return Array.from(this.B)};S("shaka.cea.CeaDecoder",tu);kd=function(){return new tu};function yu(a){for(var b=[],c=a,d=a=0;dc?"-Infinity":"Infinity":c;return c}})} +function Hs(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=Is(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c;return d})} +function Is(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}} +var Js="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Ks="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Ls=["loop","playbackRate"],Ms=["pause","play"],Ns=(new Map).set("getAssetUri",2).set("getAudioLanguages",4).set("getAudioLanguagesAndRoles",4).set("getBufferFullness",1).set("getBufferedInfo",2).set("getExpiration",2).set("getKeyStatuses",2).set("getPlaybackRate",2).set("getTextLanguages", +4).set("getTextLanguagesAndRoles",4).set("isAudioOnly",10).set("isBuffering",1).set("isInProgress",1).set("isLive",10).set("isTextTrackVisible",1).set("isVideoOnly",10).set("keySystem",10).set("seekRange",1).set("getLoadMode",10).set("getManifestType",10).set("isFullyLoaded",1).set("isEnded",1),Os=(new Map).set("getConfiguration",4).set("getConfigurationForLowLatency",4).set("getStats",5).set("getAudioTracks",2).set("getChaptersTracks",2).set("getImageTracks",2).set("getVideoTracks",2).set("getTextTracks", +2).set("getVariantTracks",2),Ps=(new Map).set("getPlayheadTimeAsDate",1).set("getPresentationStartTimeAsDate",20).set("getSegmentAvailabilityDuration",20),Qs=[["getConfiguration","configure","getConfigurationForLowLatency","configurationForLowLatency"]],Rs=[["isTextTrackVisible","setTextTrackVisibility"]],Ss="cancelTrickPlay configure configurationForLowLatency getChapters resetConfiguration retryStreaming selectAudioLanguage selectAudioTrack selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel selectVideoTrack setTextTrackVisibility trickPlay updateStartTime goToLive useTrickPlayTrackIfAvailable".split(" "), +Ts="addChaptersTrack addTextTrackAsync addThumbnailsTrack getAllThumbnails getChaptersAsync getThumbnails attach attachCanvas detach load unload".split(" ");function Us(a,b,c,d,e,f,g){var h=this;this.G=a;this.J=g;this.l=new zf(b);this.K=c;this.u=!1;this.B=d;this.F=e;this.L=f;this.i=this.m=!1;this.I="";this.s=null;this.C=function(){return Vs(h)};this.D=function(k,l){k=Hs(l);switch(k.type){case "event":var m=k.targetName,n=Xa(k.event);h.B(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var q in m[n])k[q]=m[n][q]}h.u&&(h.K(),h.u=!1);break;case "asyncComplete":if(q=k.id,n=k.error,l=k.res,k=h.h.get(q),h.h.delete(q),k)if(n){q=new V(n.severity, +n.category,n.code);for(m in n)q[m]=n[m];k.reject(q)}else k.resolve(l)}};this.g={video:{},player:{}};this.H=0;this.h=new Map;this.j=null;Ws.add(this)}p=Us.prototype;p.destroy=function(){Ws.delete(this);Xs(this);Ys&&Zs(this);this.l&&(this.l.stop(),this.l=null);this.F=this.B=null;this.i=this.m=!1;this.D=this.C=this.j=this.h=this.g=this.s=null;return Promise.resolve()};p.Pa=function(){return this.i};p.Tf=function(){return this.I}; +p.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Ka();var a=new chrome.cast.SessionRequest(this.G,[],null,this.J,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Ws),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new Ig;d.u=!0;$s(d,e)}},function(b){for(var c=t(Ws),d=c.next();!d.done;d=c.next())d=d.value,at="available"==b,d.l.Ka()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});at&&this.l.X(bt);(a=Ys)&& +a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Ig,this.u=!0,$s(this,a)):Ys=null}else window.__onGCastApiAvailable!==ct&&(dt=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=ct)};p.Th=function(a){this.s=a;this.i&&et(this,{type:"appData",appData:this.s})}; +p.cast=function(){var a=this;return Q(function(b){if(!a.m)throw new V(1,8,8E3);if(!at)throw new V(1,8,8001);if(a.i)throw new V(1,8,8002);a.j=new Ig;chrome.cast.requestSession(function(c){return $s(a,c)},function(c){return ft(a,c)});return F(b,a.j,0)})};function gt(a){a.i&&chrome.cast.requestSession(function(b){return $s(a,b)},function(b){return ft(a,b)})}p.zd=function(){if(this.i){Xs(this);if(Ys){Zs(this);try{Ys.stop(function(){},function(){})}catch(a){}Ys=null}Vs(this)}}; +p.get=function(a,b){var c=this;if("video"==a){if(Ms.includes(b))return function(){return c.qj.apply(c,[a,b].concat(x(Ka.apply(0,arguments))))}}else if("player"==a){if(Ps.has(b)&&!this.get("player","isLive")())return function(){};if(Ss.includes(b))return function(){return c.qj.apply(c,[a,b].concat(x(Ka.apply(0,arguments))))};if(Ts.includes(b))return function(){return c.Wl.apply(c,[a,b].concat(x(Ka.apply(0,arguments))))};if(Ns.has(b)||Os.has(b))return function(){return c.g[a][b]}}return this.g[a][b]}; +p.set=function(a,b,c){this.g[a][b]=c;et(this,{type:"set",targetName:a,property:b,value:c})};function $s(a,b){var c=a.L();Ys=b;b.addUpdateListener(a.C);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.D);Vs(a);et(a,{type:"init",initState:c,appData:a.s});a.j.resolve()}function ft(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new V(2,8,c,b))} +p.qj=function(a,b){et(this,{type:"call",targetName:a,methodName:b,args:Ka.apply(2,arguments)})};p.Wl=function(a,b){var c=Ka.apply(2,arguments),d=new Ig,e=this.H.toString();this.H++;this.h.set(e,d);try{et(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Zs(a){var b=Ys;b.removeUpdateListener(a.C);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.D)} +function Vs(a){var b=Ys?"connected"==Ys.status:!1;if(a.i&&!b){a.F();for(var c in a.g)a.g[c]={};Xs(a)}a.i=b;a.I=b?Ys.receiver.friendlyName:"";a.l.Ka()}function Xs(a){if(a.h)for(var b=t(a.h.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.h.get(c);a.h.delete(c);d.reject(new V(1,7,7E3))}} +function et(a,b){b=Gs(b);var c=Ys;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},db)}catch(d){throw b=new V(2,8,8005,d),c=new U("error",(new Map).set("detail",b)),a.B("player",c),a.zd(),b;}}var bt=.02,at=!1,Ys=null,dt=null,Ws=new Set;function ct(a){dt?window.__onGCastApiAvailable=dt:delete window.__onGCastApiAvailable;dt=null;if(a)for(var b=t(Ws),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function ht(a,b,c,d){d=void 0===d?!1:d;jb.call(this);var e=this;this.i=a;this.h=b;this.l=this.s=this.m=this.u=this.j=null;this.H=c;this.G=d;this.D=[];this.C=[];this.B=[];this.F=new Map;this.g=null;window.chrome?(this.g=new Us(c,function(){return it(e)},function(){return jt(e)},function(f,g){return kt(e,f,g)},function(){return lt(e)},function(){return mt(e)},d),nt(this)):(this.j=this.i,this.u=this.h)}pa(ht,jb);p=ht.prototype; +p.destroy=function(a){this.g&&(void 0===a?0:a)&&this.g.zd();this.l&&(this.l.release(),this.l=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.u=this.j=this.i=null;jb.prototype.release.call(this);return Promise.all(a)};p.Kc=function(){return this.j};p.Sb=function(){return this.u};p.Dg=function(){return this.g?this.g.m&&at:!1};p.Pa=function(){return this.g?this.g.Pa():!1};p.Tf=function(){return this.g?this.g.Tf():""}; +p.cast=function(){var a=this;return Q(function(b){return 1==b.g?a.g?F(b,a.g.cast(),2):b.return():a.h?F(b,a.h.lc(),0):b.return()})};p.Th=function(a){this.g&&this.g.Th(a)};p.Oj=function(){this.g&>(this.g)};p.zd=function(){this.g&&this.g.zd()}; +p.Ei=function(a,b){b=void 0===b?!1:b;var c=this;return Q(function(d){if(1==d.g){if(a==c.H&&b==c.G)return d.return();c.H=a;c.G=b;if(!c.g)return d.return();c.g.zd();return F(d,c.g.destroy(),2)}c.g=null;c.g=new Us(a,function(){return it(c)},function(){return jt(c)},function(e,f){return kt(c,e,f)},function(){return lt(c)},function(){return mt(c)},b);c.g.init();I(d)})}; +function nt(a){a.g.init();a.l=new Oc;for(var b=t(Js),c=b.next();!c.done;c=b.next())a.l.o(a.i,c.value,function(f){a.g.Pa()||(f=Xa(f),a.m.dispatchEvent(f))});for(var d in Ya)a.l.o(a.h,Ya[d],function(f){a.g.Pa()||a.s.dispatchEvent(f)});a.j={};b={};for(var e in a.i)b={me:b.me},b.me=e,Object.defineProperty(a.j,b.me,{configurable:!1,enumerable:!0,get:function(f){return function(){return ot(a,f.me)}}(b),set:function(f){return function(g){var h=f.me;a.g.Pa()?a.g.set("video",h,g):a.i[h]=g}}(b)});a.u={};pt(a, +function(f){Object.defineProperty(a.u,f,{configurable:!1,enumerable:!0,get:function(){return qt(a,f)}})});rt(a);a.m=new jb;a.m.Qe=a.j;a.s=new jb;a.s.Qe=a.u;a.l.o(a.h,"unloading",function(){a.g&&a.g.Pa()||st(a)})}function rt(a){var b=new Map;pt(a,function(c,d){b.has(d)?(d=b.get(d),c.length=e)return null;for(var f=-1,g=-1,h=0;hc||127c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;eb;b++)a.i.push(ju())}function ju(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function ku(a,b){lu(a)&&(a.i[a.h][a.g]=new Qt(b,a.D,a.B,a.u,a.C),a.g++)}function lu(a){var b=a.gc;c++,b++)a.i[b]=a.i[c];for(c=0;1>c;c++,b++)a.i[b]=ju()} +function nu(a,b,c){var d=new oe(a.j,b,"");d.textAlign=0===a.F?"left":1===a.F?"right":qe;var e=d.region;a.I&&(e.id+="svc"+a.I);e.id+="win"+a.L;e.height=a.s;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.H;e.viewportAnchorY=a.K;e.viewportAnchorUnits=a.J?pd:2;switch(a.G){case 0:e.regionAnchorX=0;e.regionAnchorY=0;break;case 1:e.regionAnchorX=50;e.regionAnchorY=0;break;case 2:e.regionAnchorX=100;e.regionAnchorY=0;break;case 3:e.regionAnchorX=0;e.regionAnchorY=50;break;case 4:e.regionAnchorX= +50;e.regionAnchorY=50;break;case 5:e.regionAnchorX=100;e.regionAnchorY=50;break;case 6:e.regionAnchorX=0;e.regionAnchorY=100;break;case 7:e.regionAnchorX=50;e.regionAnchorY=100;break;case 8:e.regionAnchorX=100,e.regionAnchorY=100}if(c=Nt(d,"svc"+c,a.i,a.j,b))a.j=b;return c}hu.prototype.display=function(){this.l=!0};function ou(){this.i=[];this.h=null;this.g=0}function pu(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0this.h.length)throw new V(2,2,3E3);this.g+=a}; +qu.prototype.vj=function(a){if(0>this.g-a)throw new V(2,2,3E3);this.g-=a};function su(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null} +function tu(a,b,c,d){if(!a.g)return[];if(24==c)return c=ru(b).value,d=ru(b).value,c=function(f){return f.map(function(g){return("0"+(g&255).toString(16)).slice(-2)}).join("")}([c,d]),ku(a.g,String.fromCharCode(parseInt(c,16))),[];b=a.g;var e=null;switch(c){case 8:!lu(b)||0>=b.g&&0>=b.h||(0>=b.g?(b.g=b.m-1,b.h--):b.g--,b.i[b.h][b.g]=null);break;case 13:b.isVisible()&&(e=nu(b,d,a.i));b.h+1>=b.s?mu(b):b.h++;b.g=0;break;case 14:b.isVisible()&&(e=nu(b,d,a.i));b.i[b.h]=ju();b.g=0;break;case 12:b.isVisible()&& +(e=nu(b,d,a.i)),iu(b),b.h=0,b.g=0}return e?[e]:[]} +function uu(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=ru(b).value;b=[];c=t(vu(a,c));for(var e=c.next();!e.done;e=c.next()){e=a.h[e.value];if(e.isVisible()){var f=nu(e,d,a.i);f&&b.push(f)}iu(e)}return b}if(137===c)for(b=ru(b).value,b=t(vu(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.display();else{if(138===c){c=ru(b).value;b=null;c=t(vu(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=nu(e,d,a.i)),e.l=!1;return b? +[b]:[]}if(139===c){c=ru(b).value;b=null;c=t(vu(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=nu(e,d,a.i):e.j=d,e.l=!e.l;return b?[b]:[]}if(140===c)return b=ru(b).value,wu(a,b,d);if(143===c)return d=wu(a,255,d),xu(a),d;if(144===c)b.skip(1),d=ru(b).value,a.g&&(a.g.B=0<(d&128),a.g.D=0<(d&64));else if(145===c)d=ru(b).value,c=ru(b).value,b.skip(1),a.g&&(b=yu((c&48)>>4,(c&12)>>2,c&3),a.g.C=yu((d&48)>>4,(d&12)>>2,d&3),a.g.u=b);else if(146===c)d=ru(b).value,b=ru(b).value,a.g&&(a= +a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),b.skip(1),d=ru(b).value,b.skip(1),a.g&&(a.g.F=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];e||(f=new hu(c,a.i),f.j=d,a.h[c]=f);d=ru(b).value;f=ru(b).value;var g=ru(b).value,h=ru(b).value,k=ru(b).value;b=ru(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.D=!1,b.B=!1,b.C="white",b.u="black");b=a.h[c];b.l=0<(d&32);b.K=f&127;b.H=g;b.G=(h&240)>>4;b.J=0<(f&128);b.s=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return[]} +function vu(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}function wu(a,b,c){var d=[];b=t(vu(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(f=nu(f,c,a.i))&&d.push(f);a.h[e]=null}return d}function xu(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function yu(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return zu[a<<2|b<<1|c]} +var Au=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),zu="black blue green cyan red magenta yellow white".split(" ");function Bu(){this.h=[];this.g=[];this.i=new ou;this.l=0;this.m=new Map([["CC1",new bu(0,0)],["CC2",new bu(0,1)],["CC3",new bu(1,0)],["CC4",new bu(1,1)]]);this.u=this.s=0;this.j=new Map;this.C=!0;this.B=new Set;Cu(this)}Bu.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;Cu(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())xu(b.value)}; +function Cu(a){a.s=0;a.u=0;for(var b=t(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=0,c.g=c.j,c.m=null,St(c.i),St(c.j),St(c.s);a.C=!0} +Bu.prototype.extract=function(a,b){if(this.C){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.C=!1}a=new ih(a,0);if(!(8>a.getLength())&&181===a.aa()&&49===a.Fa()&&1195456820===a.W()&&3===a.aa()&&(c=a.aa(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d>2,g=a.aa(),h=a.aa();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Fb:g,mc:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}}; +Bu.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=t(this.h),d=c.next();!d.done;d=c.next())(d=Du(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())pu(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=Eu(this,d.value),b.push.apply(b,x(d));this.i.i=[];this.h=[];this.g=[];return b}; +function Du(a,b){var c=b.type;if(16===(b.Fb&112)){var d=b.Fb>>3&1;0===c?a.s=d:a.u=d}d="CC"+((c<<1|(c?a.u:a.s))+1);c=a.m.get(d);if(255===b.Fb&&255===b.mc||!b.Fb&&!b.mc||!Fu(b.Fb)||!Fu(b.mc))return 45<=++a.l&&Cu(a),null;a.l=0;b.Fb&=127;b.mc&=127;var e=b.Fb;if(1<=e&&15>=e||!b.Fb&&!b.mc)return null;e=null;if(16===(b.Fb&112))a:{a.B.add(d),d=b.Fb;a=b.mc;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];d="white";e=!1;var f= +null;var g=95=g?d=gu[Math.floor(g/2)]:15>=g?e=!0:f=Math.floor((g-16)/2);a=1===(a&1);4!==c.h&&(g=c.g,3===c.h&&b!==g.g&&(c=1+b-g.h,au(g,c,1+g.g-g.h,g.h),Vt(g,0,c-1),Vt(g,b+1,15-b)),g.g=b,g.m=a,g.j=e,g.l=d,g.u=f,g.s="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Wt(c.g,0,32),d=!1,b=gu[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=fu[(a& +14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))Wt(c.g,1,a);else if(18===(d&246)&&32===(a&224))Wt(c.g,d&1?3:2,a);else{if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.mc){case 32:du(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=cu(c,2,a);break;case 38:d=cu(c,3,a);break;case 39:d=cu(c,4,a);break;case 40:Wt(c.g,0,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:St(c.s);eu(c);break;case 43:eu(c);break;case 44:b=c.i;d=null;4!==c.h&&(d=Tt(b,c.l,a));Vt(b,0,15);break;case 45:b= +c.g;3!==c.h?d=null:(d=Tt(b,c.l,a),e=b.g-b.h+1,au(b,e-1,e,b.h),Vt(b,0,e-1),Vt(b,b.g,15-b.g),c.l=a);break;case 46:Vt(c.j,0,15);break;case 47:b=null,4!==c.h&&(b=Tt(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,du(c),c.l=a,d=b}e=d;break a}(23==d||31==d)&&33<=a&&35>=a&&(c.g.B=a-32)}e=null}else a=b.mc,Wt(c.g,0,b.Fb),Wt(c.g,0,a);return e} +function Eu(a,b){var c=[];try{for(;b.Oa();){var d=ru(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=ru(b).value&63);if(0!=e){a.B.add("svc"+e);a.j.has(e)||a.j.set(e,new su(e));for(var g=a.j.get(e),h=b.Ua();b.Ua()-h=m)var r=tu(e,k,m,n);else if(128<=m&&159>=m)r=uu(e,k,m,n);else{if(4096<=m&&4127>=m)e=k,k=m&255,8<=k&&15>=k?e.skip(1):16<=k&&23>=k?e.skip(2):24<=k&&31>=k&&e.skip(3);else if(4224<=m&&4255>=m)e=k,k=m& +255,128<=k&&135>=k?e.skip(4):136<=k&&143>=k&&e.skip(5);else if(32<=m&&127>=m)k=m,e.g&&(127===k?ku(e.g,"\u266a"):ku(e.g,String.fromCharCode(k)));else if(160<=m&&255>=m)e.g&&ku(e.g,String.fromCharCode(m));else if(4128<=m&&4223>=m){if(k=m&255,e.g)if(Au.has(k)){var u=Au.get(k);ku(e.g,u)}else ku(e.g,"_")}else 4256<=m&&4351>=m&&e.g&&(160!=(m&255)?ku(e.g,"_"):ku(e.g,"[CC]"));r=[]}c.push.apply(c,x(r))}}}}catch(w){if(w instanceof V&&3E3===w.code)bb("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data."); +else throw w;}return c}function Fu(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}Bu.prototype.getStreams=function(){return Array.from(this.B)};S("shaka.cea.CeaDecoder",Bu);kd=function(){return new Bu};function Gu(a){for(var b=[],c=a,d=a=0;d>1&63;r=39==r||40==r;break;case Fu:h=2;b.skip(1);r=q>>1&63;r=23==r||24==r;break;default:return}if(r)for(q=0,lc.byteLength){c=[];break a}var f=Kb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function Iu(a){a=hc(Pd(a));a=Hu(a).filter(function(b){return b.type===Ju})[0];if(!a)return null;a=Xb(a.value,!0);return(a=Hd(a,"WRMHEADER"))?a:null} -function Ku(a){try{var b=Iu(a);if(b)a:{for(var c=u(Rd(b,"DATA")),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.children)for(var f=u(e.children),g=f.next();!g.done;g=f.next()){var h=g.value;if("LA_URL"==h.tagName){var k=Pd(h);break a}}}k=""}else k="";return k}catch(l){return""}}var Ju=1;function Lu(a,b,c){var d=Mu(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1"+a+"");return Ku(a)}return""} -function Ou(a,b,c,d,e){var f=[];c=u(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.Ld];if(h){var k;if((k=Td(g.node,"urn:microsoft:playready","pro"))&&Pd(k)){k=Pd(k);k=hc(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:wh(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===g.Ld){l=g;var m=e;if(0==m.size)l=null;else{var n=new Uint8Array([16,119,239,236,192,178,77,2, -172,227,60,30,82,226,251,75]),q=new Uint8Array([]);l=[{initData:wh(q,n,m,1),initDataType:"cenc",keyId:l.keyId}]}}k=mc(h,b,g.init||a||k||l);if(h=Ru.get(h))k.licenseServerUri=h(g);f.push(k)}}return f}function Mu(a){var b=[];a=u(a);for(var c=a.next();!c.done;c=a.next())(c=Su(c.value))&&b.push(c);return b} -function Su(a){var b=a.attributes.schemeIdUri,c=Wd(a,"urn:mpeg:cenc:2013","default_KID"),d=Ud(a,"urn:mpeg:cenc:2013","pssh").map(Qd),e=a.attributes.value;if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new V(2,4,4009);var f=[];try{f=d.map(function(g){return{initDataType:"cenc",initData:hc(g),keyId:null}})}catch(g){throw new V(2,4,4007);}return{node:a,Ld:b,keyId:c,init:0>1&63;r=39==r||40==r;break;case Nu:h=2;b.skip(1);r=q>>1&63;r=23==r||24==r;break;default:return}if(r)for(q=0,lc.byteLength){c=[];break a}var f=Kb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function Qu(a){a=hc(Qd(a));a=Pu(a).filter(function(b){return b.type===Ru})[0];if(!a)return null;a=Xb(a.value,!0);return(a=Id(a,"WRMHEADER"))?a:null} +function Su(a){try{var b=Qu(a);if(b)a:{for(var c=t(Sd(b,"DATA")),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.children)for(var f=t(e.children),g=f.next();!g.done;g=f.next()){var h=g.value;if("LA_URL"==h.tagName){var k=Qd(h);break a}}}k=""}else k="";return k}catch(l){return""}}var Ru=1;function Tu(a,b,c){var d=Uu(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1"+a+"");return Su(a)}return""} +function Wu(a,b,c,d,e){var f=[];c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.Nd];if(h){var k;if((k=Ud(g.node,"urn:microsoft:playready","pro"))&&Qd(k)){k=Qd(k);k=hc(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:xh(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===g.Nd){l=g;var m=e;if(0==m.size)l=null;else{var n=new Uint8Array([16,119,239,236,192,178,77,2, +172,227,60,30,82,226,251,75]),q=new Uint8Array([]);l=[{initData:xh(q,n,m,1),initDataType:"cenc",keyId:l.keyId}]}}k=mc(h,b,g.init||a||k||l);if(h=Zu.get(h))k.licenseServerUri=h(g);f.push(k)}}return f}function Uu(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=$u(c.value))&&b.push(c);return b} +function $u(a){var b=a.attributes.schemeIdUri,c=Xd(a,"urn:mpeg:cenc:2013","default_KID"),d=Vd(a,"urn:mpeg:cenc:2013","pssh").map(Rd),e=a.attributes.value;if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new V(2,4,4009);var f=[];try{f=d.map(function(g){return{initDataType:"cenc",initData:hc(g),keyId:null}})}catch(g){throw new V(2,4,4007);}return{node:a,Nd:b,keyId:c,init:0v)if(r){r=Vd(r,"t",ce);if(null== -r)break;else if(t>=r)break;v=Math.ceil((r-t)/w)-1}else{if(Infinity==a)break;else if(t/f>=a)break;v=Math.ceil((a*f-t)/w)-1}0>>31;q&=2147483647;var t=g.reader.W();g.reader.skip(4);if(1==r)throw new V(2,3,3006);h.push(new zj(l/k+c,(l+t)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=t;a+=q}g.parser.stop();return h};function bv(a){this.h=Ob(a);this.g=new hh(this.h,0)}bv.prototype.Oa=function(){return this.g.Oa()}; -function cv(a){var b=dv(a);if(7=c&&(c=v.timeline+1)}-1==k&&(k=c);r=new Dv(n,a.M.originalId,a.bandwidth,a.M.jb,a.Nb,t,w,m,g,a.M.Yf,k)}n.timeline&&"image"!==a.ua.contentType&&"text"!==a.ua.contentType&&a.presentationTimeline.kj(r.h?r.h.timeline:[],t);d&&a.pc&&(d.segmentIndex=r);d=(d=(d=n.timeline)&&d[d.length-1])?d.end+n.fc:-1;l=-1;r instanceof Dv&&(l=r.hf());return{endTime:d,timeline:l,Tc:function(){r instanceof Dv&&0==r.getNumReferences()&&Cv(r,n,t,w,m);return Promise.resolve(r)}, -timescale:n.timescale}}function xv(a){return a.Kc}function zv(a){var b=Uu(a,xv),c=Vu(a,xv,"media"),d=Vu(a,xv,"index"),e=Vu(a,xv,"k"),f=0;e&&(f=parseInt(e,10));return{gg:b.gg,ob:b.ob,timescale:b.timescale,Ae:b.Ae,fc:b.fc,mi:b.mi,timeline:b.timeline,Ic:c&&cc(c),je:d,mimeType:a.M.mimeType,codecs:a.M.codecs,bandwidth:a.bandwidth,Jl:f}} -function Av(a){var b=a.je?1:0;b+=a.timeline?1:0;b+=a.ob?1:0;if(0==b)throw new V(2,4,4002);1!=b&&(a.je&&(a.timeline=null),a.gg=null,a.ob=null);if(!a.je&&!a.Ic)throw new V(2,4,4002);} -function Bv(a,b,c,d,e,f,g,h){function k(L){var M=L-v,O=M*w,N=b.gg,P=M*N;"BigInt"in window&&P>Number.MAX_SAFE_INTEGER&&(P=BigInt(M)*BigInt(N));O+=q;M=O+w;N=Math.min(M,m());var R=[],T=b.Jl;if(T)for(var ca=(N-O)/T,Y={},Ma=0;Mam()&&!O.length?null:O})}return Promise.resolve(K)} -function yv(a,b){var c=a.M.vf;c||(c=Vu(a,xv,"initialization"));if(!c)return null;c=cc(c);var d=a.M.originalId,e=a.bandwidth||null,f=a.M.jb,g=a.Nb;b=new xj(function(){var h=Tu(c,d,null,null,e,null);return lc(f(),[h],g())},0,null,kv(a),null,null,b,a.ua.encrypted);b.codecs=a.M.codecs;b.mimeType=a.M.mimeType;a.va&&(b.g=a.va.start+a.va.duration);return b} -function Dv(a,b,c,d,e,f,g,h,k,l,m){Ol.call(this,[]);this.h=a;this.F=b;this.C=c;this.D=d;this.H=e;this.j=f;this.l=g;this.u=h;this.B=k;this.G=l;this.I=m;Ev(this)}pa(Dv,Ol);p=Dv.prototype;p.getNumReferences=function(){return this.h?this.h.timeline.length:0};p.release=function(){Ol.prototype.release.call(this);this.h=null}; +function bv(a,b){var c=cv(a,b,"timescale"),d=1;c&&(d=ce(c)||1);c=cv(a,b,"duration");var e=(c=ce(c||""))?c/d:null,f=cv(a,b,"startNumber"),g=Number(cv(a,b,"presentationTimeOffset"))||0,h=ee(f||"");if(null==f||null==h)h=1;f=null;if(b=dv(a,b,"SegmentTimeline")){b=Pd(b,"S");f=d;a=a.va.duration||Infinity;for(var k=h,l=[],m=-g,n=0;nv)if(r){r=Wd(r,"t",ee);if(null== +r)break;else if(u>=r)break;v=Math.ceil((r-u)/w)-1}else{if(Infinity==a)break;else if(u/f>=a)break;v=Math.ceil((a*f-u)/w)-1}0>>31;q&=2147483647;var u=g.reader.W();g.reader.skip(4);if(1==r)throw new V(2,3,3006);h.push(new Aj(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();return h};function jv(a){this.h=Ob(a);this.g=new ih(this.h,0)}jv.prototype.Oa=function(){return this.g.Oa()}; +function kv(a){var b=lv(a);if(7=c&&(c=v.timeline+1)}-1==k&&(k=c);r=new Lv(n,a.M.originalId,a.bandwidth,a.M.jb,a.Ob,u,w,m,g,a.M.Zf,k)}n.timeline&&"image"!==a.ua.contentType&&"text"!==a.ua.contentType&&a.presentationTimeline.lj(r.h?r.h.timeline:[],u);d&&a.qc&&(d.segmentIndex=r);d=(d=(d=n.timeline)&&d[d.length-1])?d.end+n.fc:-1;l=-1;r instanceof Lv&&(l=r.hf());return{endTime:d,timeline:l,Zc:function(){r instanceof Lv&&0==r.getNumReferences()&&Kv(r,n,u,w,m);return Promise.resolve(r)}, +timescale:n.timescale}}function Fv(a){return a.Pc}function Hv(a){var b=bv(a,Fv),c=cv(a,Fv,"media"),d=cv(a,Fv,"index"),e=cv(a,Fv,"k"),f=0;e&&(f=parseInt(e,10));return{hg:b.hg,mb:b.mb,timescale:b.timescale,Be:b.Be,fc:b.fc,mi:b.mi,timeline:b.timeline,ec:c&&cc(c),je:d,mimeType:a.M.mimeType,codecs:a.M.codecs,bandwidth:a.bandwidth,Kl:f}} +function Iv(a){var b=a.je?1:0;b+=a.timeline?1:0;b+=a.mb?1:0;if(0==b)throw new V(2,4,4002);1!=b&&(a.je&&(a.timeline=null),a.hg=null,a.mb=null);if(!a.je&&!a.ec)throw new V(2,4,4002);} +function Jv(a,b,c,d,e,f,g,h){function k(L){var N=L-v,O=N*w,M=b.hg,P=N*M;"BigInt"in window&&P>Number.MAX_SAFE_INTEGER&&(P=BigInt(N)*BigInt(M));O+=q;N=O+w;M=Math.min(N,m());var R=[],T=b.Kl;if(T)for(var ca=(M-O)/T,Y={},Ma=0;Mam()&&!O.length?null:O})}return Promise.resolve(K)} +function Gv(a,b){var c=a.M.vf;c||(c=cv(a,Fv,"initialization"));if(!c)return null;c=cc(c);var d=a.M.originalId,e=a.bandwidth||null,f=a.M.jb,g=a.Ob;b=new yj(function(){var h=av(c,d,null,null,e,null);return lc(f(),[h],g())},0,null,sv(a),null,null,b,a.ua.encrypted);b.codecs=a.M.codecs;b.mimeType=a.M.mimeType;a.va&&(b.g=a.va.start+a.va.duration);return b} +function Lv(a,b,c,d,e,f,g,h,k,l,m){Vl.call(this,[]);this.h=a;this.F=b;this.C=c;this.D=d;this.H=e;this.j=f;this.l=g;this.u=h;this.B=k;this.G=l;this.I=m;Mv(this)}pa(Lv,Vl);p=Lv.prototype;p.getNumReferences=function(){return this.h?this.h.timeline.length:0};p.release=function(){Vl.prototype.release.call(this);this.h=null}; p.hb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d=b&&(this.g=this.g.slice(b)),this.i+=b,0===this.getNumReferences()&&this.release())}}; -function Cv(a,b,c,d,e){Fv(a,e);if(a.h){c=a.h.timeline;a.h.Ic!==b.Ic&&(a.h.Ic=b.Ic);if(c.length){var f=c[c.length-1];b=b.timeline.filter(function(g){return g.end>f.end})}else b=b.timeline.slice();0=a.l||0>=d.end||b.push(d);a.h.timeline=b;a.hb(a.j)}} +function Kv(a,b,c,d,e){Nv(a,e);if(a.h){c=a.h.timeline;a.h.ec!==b.ec&&(a.h.ec=b.ec);if(c.length){var f=c[c.length-1];b=b.timeline.filter(function(g){return g.end>f.end})}else b=b.timeline.slice();0=a.l||0>=d.end||b.push(d);a.h.timeline=b;a.hb(a.j)}} p.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a=this.l)return null;for(var c=b.length-1,d=0;d=f&&aa||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.timeline[a],e=d.bm,f=d.ni+this.h.mi;c=this.j-this.h.fc;var g=this.j+d.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=.1h&&a.j.delete(f);d=d.filter(function(k){for(var l=u(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new qb(k.location)).Fb))return!1;return!0});d.length&&(a.C=d[0].Gh);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=u(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.C=a.h,d.push(g);if(!d.length)for(b=u(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:lc(a.i,d)};function Nv(){this.l=[];this.h=[];this.g=[];this.j=[];this.i=[];this.u=this.s=!1;this.m=new Set}p=Nv.prototype;p.release=function(){for(var a=u(this.h.concat(this.g,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.j=[];this.i=[];this.l=[];this.u=this.s=!1;this.m.clear()};p.il=function(){return this.l};p.lh=function(){return this.j.slice()};p.Gk=function(){return this.i}; -p.Ii=function(a,b){if(a){if("audio"==a.type)for(var c=u(this.h),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("video"==a.type)for(c=u(this.g),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a}),d.trickModeVideo&&(d.trickModeVideo.matchedStreams=d.trickModeVideo.matchedStreams.filter(function(e){return e!==a})),d.dependencyStream&&(d.dependencyStream.matchedStreams=d.dependencyStream.matchedStreams.filter(function(e){return e!== -a}));else if(a.type==rc)for(c=u(this.j),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("image"==a.type)for(c=u(this.i),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});a.segmentIndex&&a.closeSegmentIndex();this.m.delete(b)}}; -function Ov(a,b){var c=[],d=[],e=[],f=[];a=u(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[Pv(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[Qv(n),n]})),l=new Map(h.textStreams.map(function(n){return[Rv(n),n]}));h=new Map(h.imageStreams.map(function(n){return[Sv(n),n]}));if(b){var m=Tv(rc);l.set(Rv(m),m);m=Tv("image");h.set(Sv(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{xi:c,Wj:d,Rj:e,Vi:f}} -p.Gg=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,q,r,t,w,v,y,z,A,B,D,G,C,E,I,K,J,L,M,O,N,P,R,T,ca;return Q(function(Y){if(1==Y.g){e=uc;if(!b&&1==a.length)return f=Ov(a,!1),g=f.xi,h=f.Wj,k=f.Rj,l=f.Vi,d.h=Array.from(g[0].values()),d.g=Array.from(h[0].values()),d.j=Array.from(k[0].values()),d.i=Array.from(l[0].values()),Y.A(2);m=c?d.m.size:0;n=-1;for(q=0;q=d?h.push(new Set(c[k].values())):h.push(new Set);l=u(b);m=l.next();case 2:if(m.done){J.A(4);break}n=m.value;return F(J,aw(a,n,c,d,f,h,g),5);case 5:q=J.h;if(!q)throw new V(2,4,4037);m=l.next();J.A(2);break;case 4:r=u(h);for(t=r.next();!t.done;t=r.next())for(w=t.value,v=u(w),y=v.next();!y.done;y=v.next())z=y.value,(A=bw(a,z,c,e,f,h))&&b.push(A);B=u(h);for(D=B.next();!D.done;D= -B.next())for(G=D.value,C=u(G),E=C.next(),I={};!E.done;I={$h:void 0},E=C.next())if(I.$h=E.value,!cw(I.$h)&&(K=b.some(function(L){return function(M){return dw(a,L.$h,M)}}(I))))throw new V(2,4,4037);return J.return(b)}})}function aw(a,b,c,d,e,f,g){return Q(function(h){if(1==h.g)return ew(a,c,b,0d)return!0;if(ed.length)return!0;if(e.lengthd)return!0;if(ed.length)return!0;if(e.lengtha){if(c<=a||c-ab-a)return sw}else{if(c>a)return sw;if(a-ca-b)return sw}return uw}function tw(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return aa||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){c=this.h.timeline[a];var d=c.cm,e=c.ni+this.h.mi,f=this.j-this.h.fc,g=this.j+c.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=.1h&&a.j.delete(f);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new qb(k.location)).Gb))return!1;return!0});d.length&&(a.C=d[0].Hh);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.C=a.h,d.push(g);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:lc(a.i,d)};function Vv(){this.l=[];this.h=[];this.g=[];this.j=[];this.i=[];this.u=this.s=!1;this.m=new Set}p=Vv.prototype;p.release=function(){for(var a=t(this.h.concat(this.g,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.j=[];this.i=[];this.l=[];this.u=this.s=!1;this.m.clear()};p.jl=function(){return this.l};p.mh=function(){return this.j.slice()};p.Hk=function(){return this.i}; +p.Ji=function(a,b){if(a){if("audio"==a.type)for(var c=t(this.h),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("video"==a.type)for(c=t(this.g),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a}),d.trickModeVideo&&(d.trickModeVideo.matchedStreams=d.trickModeVideo.matchedStreams.filter(function(e){return e!==a})),d.dependencyStream&&(d.dependencyStream.matchedStreams=d.dependencyStream.matchedStreams.filter(function(e){return e!== +a}));else if(a.type==sc)for(c=t(this.j),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("image"==a.type)for(c=t(this.i),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});a.segmentIndex&&a.closeSegmentIndex();this.m.delete(b)}}; +function Wv(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[Xv(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[Yv(n),n]})),l=new Map(h.textStreams.map(function(n){return[Zv(n),n]}));h=new Map(h.imageStreams.map(function(n){return[$v(n),n]}));if(b){var m=aw(sc);l.set(Zv(m),m);m=aw("image");h.set($v(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{zi:c,Xj:d,Sj:e,Wi:f}} +p.Hg=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca;return Q(function(Y){if(1==Y.g){e=uc;if(!b&&1==a.length)return f=Wv(a,!1),g=f.zi,h=f.Xj,k=f.Sj,l=f.Wi,d.h=Array.from(g[0].values()),d.g=Array.from(h[0].values()),d.j=Array.from(k[0].values()),d.i=Array.from(l[0].values()),Y.A(2);m=c?d.m.size:0;n=-1;for(q=0;q=d?h.push(new Set(c[k].values())):h.push(new Set);l=t(b);m=l.next();case 2:if(m.done){J.A(4);break}n=m.value;return F(J,iw(a,n,c,d,f,h,g),5);case 5:q=J.h;if(!q)throw new V(2,4,4037);m=l.next();J.A(2);break;case 4:r=t(h);for(u=r.next();!u.done;u=r.next())for(w=u.value,v=t(w),y=v.next();!y.done;y=v.next())z=y.value,(A=jw(a,z,c,e,f,h))&&b.push(A);B=t(h);for(D=B.next();!D.done;D= +B.next())for(G=D.value,C=t(G),E=C.next(),H={};!E.done;H={ai:void 0},E=C.next())if(H.ai=E.value,!kw(H.ai)&&(K=b.some(function(L){return function(N){return lw(a,L.ai,N)}}(H))))throw new V(2,4,4037);return J.return(b)}})}function iw(a,b,c,d,e,f,g){return Q(function(h){if(1==h.g)return mw(a,c,b,0d)return!0;if(ed.length)return!0;if(e.lengthd)return!0;if(ed.length)return!0;if(e.lengtha){if(c<=a||c-ab-a)return Aw}else{if(c>a)return Aw;if(a-ca-b)return Aw}return Cw}function Bw(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return av&&w>t&&a.L++;null==w&&(w=t);if(!(null!==a.N&&null!==r&&null!==q&&q< -a.N)||a.F.includes(r)||l+1==d.length){null!==q&&(null===a.N||q>a.N)&&(a.N=q);k=Uw(a,b,c,{start:q,duration:w,node:m,Yi:null==w||!n});h.push(k);b.za.id&&w&&a.oa.set(b.za.id,w);if(null==w){k=null;break}k=q+w}}if(e)for(b=u(h),c=b.next();!c.done;c=b.next())c=c.value.id,a.F.includes(c)||a.F.push(c);else a.F=h.map(function(y){return y.id});return null!=f?{periods:h,duration:f+g,Ki:!1}:{periods:h,duration:k,Ki:!0}} -function Nw(a){var b=Array.from(a.D.keys()).filter(function(h){return!a.F.includes(h)});b=u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=!0,e=u(a.D.get(c)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.s.get(f);g&&(g.segmentIndex&&0!=g.segmentIndex.getNumReferences()?d=!1:(a.m&&a.m.Ii(g,c),a.s.delete(f)))}d&&a.D.delete(c)}}function Ow(a,b){b=new Set(b.map(function(e){return e.id}));for(var c=u(a.C.keys()),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)||a.C.delete(d)} -function Uw(a,b,c,d){b.za=Vw(a,d.node,null,c);b.va=d;b.za.wb=b.wb;b.za.id||(b.za.id="__shaka_period_"+d.start);var e=Od(d.node,"EventStream");c=b.presentationTimeline.Jb();e=u(e);for(var f=e.next();!f.done;f=e.next())Ww(a,d.start,d.duration,f.value,c);c=Od(d.node,"SupplementalProperty");c=u(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,"urn:mpeg:dash:urlparam:2014"==e.attributes.schemeIdUri&&(e=Xw(a,e)))b.Nb=e;c=Od(d.node,"AdaptationSet").map(function(r,t){return Yw(a,b,t,r)}).filter(Bf);if(b.pc){e= -[];f=u(c);for(var g=f.next();!g.done;g=f.next()){g=u(g.value.Xl);for(var h=g.next();!h.done;h=g.next())e.push(h.value)}if(e.length!=(new Set(e)).size)throw new V(2,4,4018);}e=new Map;f=u(c);for(g=f.next();!g.done;g=f.next())for(g=u(g.value.lk),h=g.next();!h.done;h=g.next()){var k=u(h.value);h=k.next().value;k=k.next().value;e.set(h,k)}if(e.size)for(f=null,g=u(c),h=g.next();!h.done;h=g.next()){h=h.value;k=[];for(var l=u(h.streams),m=l.next(),n={};!m.done;n={ai:void 0},m=l.next())if(n.ai=m.value,e.has(n.ai.originalId)){f|| -(f=Od(d.node,"AdaptationSet").map(function(r,t){return Yw(a,b,t,r)}).filter(Bf));m=u(f);for(var q=m.next();!q.done;q=m.next())if(q=q.value.streams.find(function(r){return function(t){return t.originalId==r.ai.originalId}}(n)))q.dependencyStream=e.get(q.originalId),q.originalId+=q.dependencyStream.originalId,k.push(q)}k.length&&h.streams.push.apply(h.streams,x(k))}d=c.filter(function(r){return!r.li});c=c.filter(function(r){return r.li});if(!a.g.disableIFrames)for(c=u(c),e=c.next();!e.done;e=c.next())for(e= -e.value,f=e.li.split(" "),g=u(d),h=g.next();!h.done;h=g.next())if(h=h.value,f.includes(h.id))for(h=u(h.streams),k=h.next();!k.done;k=h.next())kg(k.value,e.streams);c=Zw(a.g.disableAudio,d,"audio");e=Zw(a.g.disableVideo,d,"video");f=Zw(a.g.disableText,d,rc);d=Zw(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new V(2,4,4004);return{id:b.za.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}} -function Zw(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,x(e.streams));return d},[])} -function Yw(a,b,c,d){function e(L){var M=L.attributes["dvb:fontFamily"];L=L.attributes["dvb:url"];M&&L&&(L=lc(b.ua.jb(),[L],b.Nb()),a.j.addFont(M,L[0]))}function f(L){switch(L){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function g(L){switch(L){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.ua=Vw(a,d,b.za,null);b.ua.position=c;var h=!1;c=Od(d,"Role");var k=c.map(function(L){return L.attributes.value}).filter(Bf), -l=void 0,m=b.ua.contentType==rc;m&&(l="subtitle");c=u(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;var q=n.attributes.schemeIdUri;if(null==q||"urn:mpeg:dash:role:2011"==q)switch(n=n.attributes.value,n){case "main":h=!0;break;case "caption":case "subtitle":l=n}}var r=Od(d,"EssentialProperty");c=null;var t=!1;n=null;q=!1;r=u(r);for(var w=r.next();!w.done;w=r.next()){w=w.value;var v=w.attributes.schemeIdUri;if("http://dashif.org/guidelines/trickmode"==v)c=w.attributes.value;else if("urn:mpeg:mpegB:cicp:TransferCharacteristics"== -v)var y=g(parseInt(w.attributes.value,10));else if("urn:mpeg:mpegB:cicp:ColourPrimaries"==v)var z=f(parseInt(w.attributes.value,10));else"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=v&&("urn:mpeg:dash:ssr:2023"==v&&a.g.dash.enableFastSwitching?t=!0:"urn:dvb:dash:fontdownload:2014"==v?e(w):"urn:mpeg:dash:urlparam:2014"==v?(n=Xw(a,w))||(q=!0):q=!0)}if(q)return null;var A=null;q=Od(d,"SupplementalProperty");q=u(q);for(r=q.next();!r.done;r=q.next())r=r.value,w=r.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"== -w?A=parseInt(r.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==w?y=g(parseInt(r.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==w?z=f(parseInt(r.attributes.value,10)):"urn:dvb:dash:fontdownload:2014"==w?e(r):"urn:mpeg:dash:urlparam:2014"==w&&(n=Xw(a,r));n&&(b.Nb=n);n=Od(d,"Accessibility");var B=new Map,D;n=u(n);for(q=n.next();!q.done;q=n.next())if(r=q.value,q=r.attributes.schemeIdUri,r=r.attributes.value,"urn:scte:dash:cc:cea-608:2015"!=q||a.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!= -q||a.g.disableText)"urn:mpeg:dash:role:2011"==q?null!=r&&(k.push(r),"captions"==r&&(l="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==q&&("1"==r?D="visually impaired":"2"==r?D="hard of hearing":"9"==r&&(D="spoken subtitles"));else if(q=1,null!=r)for(r=u(r.split(";")),w=r.next();!w.done;w=r.next()){v=w.value;var G=w=void 0;v.includes("=")?(v=v.split("="),w="svc"+v[0],G=v[1].split(",")[0].split(":").pop()):(w="svc"+q,q++,G=v);B.set(w,yc(G))}else B.set("svc1","und");else if(q=1,null!=r)for(r= -r.split(";"),w=u(r),v=w.next();!v.done;v=w.next()){G=v.value;var C=v=void 0;G.includes("=")?(G=G.split("="),v=G[0].startsWith("CC")?G[0]:"CC"+G[0],C=G[1]||"und"):(v="CC"+q,2==r.length?q+=2:q++,C=G);B.set(v,yc(C))}else B.set("CC1","und");n=Od(d,"ContentProtection");var E=Lu(n,a.g.ignoreDrmInfo,a.g.dash.keySystemsByURI);b.ua.encrypted=0v&&w>u&&a.L++;null==w&&(w=u);if(!(null!==a.N&&null!==r&&null!==q&&q< +a.N)||a.F.includes(r)||l+1==d.length){null!==q&&(null===a.N||q>a.N)&&(a.N=q);k=bx(a,b,c,{start:q,duration:w,node:m,Zi:null==w||!n});h.push(k);b.za.id&&w&&a.oa.set(b.za.id,w);if(null==w){k=null;break}k=q+w}}if(e)for(b=t(h),c=b.next();!c.done;c=b.next())c=c.value.id,a.F.includes(c)||a.F.push(c);else a.F=h.map(function(y){return y.id});return null!=f?{periods:h,duration:f+g,Li:!1}:{periods:h,duration:k,Li:!0}} +function Vw(a){var b=Array.from(a.D.keys()).filter(function(h){return!a.F.includes(h)});b=t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=!0,e=t(a.D.get(c)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.s.get(f);g&&(g.segmentIndex&&0!=g.segmentIndex.getNumReferences()?d=!1:(a.m&&a.m.Ji(g,c),a.s.delete(f)))}d&&a.D.delete(c)}}function Ww(a,b){b=new Set(b.map(function(e){return e.id}));for(var c=t(a.C.keys()),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)||a.C.delete(d)} +function bx(a,b,c,d){b.za=cx(a,d.node,null,c);b.va=d;b.za.wb=b.wb;b.za.id||(b.za.id="__shaka_period_"+d.start);var e=Pd(d.node,"EventStream");c=b.presentationTimeline.Kb();e=t(e);for(var f=e.next();!f.done;f=e.next())dx(a,d.start,d.duration,f.value,c);c=Pd(d.node,"SupplementalProperty");c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,"urn:mpeg:dash:urlparam:2014"==e.attributes.schemeIdUri&&(e=ex(a,e)))b.Ob=e;c=Pd(d.node,"AdaptationSet").map(function(r,u){return fx(a,b,u,r)}).filter(Cf);if(b.qc){e= +[];f=t(c);for(var g=f.next();!g.done;g=f.next()){g=t(g.value.Yl);for(var h=g.next();!h.done;h=g.next())e.push(h.value)}if(e.length!=(new Set(e)).size)throw new V(2,4,4018);}e=new Map;f=t(c);for(g=f.next();!g.done;g=f.next())for(g=t(g.value.nk),h=g.next();!h.done;h=g.next()){var k=t(h.value);h=k.next().value;k=k.next().value;e.set(h,k)}if(e.size)for(f=null,g=t(c),h=g.next();!h.done;h=g.next()){h=h.value;k=[];for(var l=t(h.streams),m=l.next(),n={};!m.done;n={bi:void 0},m=l.next())if(n.bi=m.value,e.has(n.bi.originalId)){f|| +(f=Pd(d.node,"AdaptationSet").map(function(r,u){return fx(a,b,u,r)}).filter(Cf));m=t(f);for(var q=m.next();!q.done;q=m.next())if(q=q.value.streams.find(function(r){return function(u){return u.originalId==r.bi.originalId}}(n)))q.dependencyStream=e.get(q.originalId),q.originalId+=q.dependencyStream.originalId,k.push(q)}k.length&&h.streams.push.apply(h.streams,x(k))}d=c.filter(function(r){return!r.li});c=c.filter(function(r){return r.li});if(!a.g.disableIFrames)for(c=t(c),e=c.next();!e.done;e=c.next())for(e= +e.value,f=e.li.split(" "),g=t(d),h=g.next();!h.done;h=g.next())if(h=h.value,f.includes(h.id))for(h=t(h.streams),k=h.next();!k.done;k=h.next())lg(k.value,e.streams);c=gx(a.g.disableAudio,d,"audio");e=gx(a.g.disableVideo,d,"video");f=gx(a.g.disableText,d,sc);d=gx(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new V(2,4,4004);return{id:b.za.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}} +function gx(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,x(e.streams));return d},[])} +function fx(a,b,c,d){function e(L){var N=L.attributes["dvb:fontFamily"];L=L.attributes["dvb:url"];N&&L&&(L=lc(b.ua.jb(),[L],b.Ob()),a.j.addFont(N,L[0]))}function f(L){switch(L){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function g(L){switch(L){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.ua=cx(a,d,b.za,null);b.ua.position=c;var h=!1;c=Pd(d,"Role");var k=c.map(function(L){return L.attributes.value}).filter(Cf), +l=void 0,m=b.ua.contentType==sc;m&&(l="subtitle");c=t(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;var q=n.attributes.schemeIdUri;if(null==q||"urn:mpeg:dash:role:2011"==q)switch(n=n.attributes.value,n){case "main":h=!0;break;case "caption":case "subtitle":l=n}}var r=Pd(d,"EssentialProperty");c=null;var u=!1;n=null;q=!1;r=t(r);for(var w=r.next();!w.done;w=r.next()){w=w.value;var v=w.attributes.schemeIdUri;if("http://dashif.org/guidelines/trickmode"==v)c=w.attributes.value;else if("urn:mpeg:mpegB:cicp:TransferCharacteristics"== +v)var y=g(parseInt(w.attributes.value,10));else if("urn:mpeg:mpegB:cicp:ColourPrimaries"==v)var z=f(parseInt(w.attributes.value,10));else"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=v&&("urn:mpeg:dash:ssr:2023"==v&&a.g.dash.enableFastSwitching?u=!0:"urn:dvb:dash:fontdownload:2014"==v?e(w):"urn:mpeg:dash:urlparam:2014"==v?(n=ex(a,w))||(q=!0):q=!0)}if(q)return null;var A=null;q=Pd(d,"SupplementalProperty");q=t(q);for(r=q.next();!r.done;r=q.next())r=r.value,w=r.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"== +w?A=parseInt(r.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==w?y=g(parseInt(r.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==w?z=f(parseInt(r.attributes.value,10)):"urn:dvb:dash:fontdownload:2014"==w?e(r):"urn:mpeg:dash:urlparam:2014"==w&&(n=ex(a,r));n&&(b.Ob=n);n=Pd(d,"Accessibility");var B=new Map,D;n=t(n);for(q=n.next();!q.done;q=n.next())if(r=q.value,q=r.attributes.schemeIdUri,r=r.attributes.value,"urn:scte:dash:cc:cea-608:2015"!=q||a.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!= +q||a.g.disableText)"urn:mpeg:dash:role:2011"==q?null!=r&&(k.push(r),"captions"==r&&(l="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==q&&("1"==r?D="visually impaired":"2"==r?D="hard of hearing":"9"==r&&(D="spoken subtitles"));else if(q=1,null!=r)for(r=t(r.split(";")),w=r.next();!w.done;w=r.next()){v=w.value;var G=w=void 0;v.includes("=")?(v=v.split("="),w="svc"+v[0],G=v[1].split(",")[0].split(":").pop()):(w="svc"+q,q++,G=v);B.set(w,yc(G))}else B.set("svc1","und");else if(q=1,null!=r)for(r= +r.split(";"),w=t(r),v=w.next();!v.done;v=w.next()){G=v.value;var C=v=void 0;G.includes("=")?(G=G.split("="),v=G[0].startsWith("CC")?G[0]:"CC"+G[0],C=G[1]||"und"):(v="CC"+q,2==r.length?q+=2:q++,C=G);B.set(v,yc(C))}else B.set("CC1","und");n=Pd(d,"ContentProtection");var E=Tu(n,a.g.ignoreDrmInfo,a.g.dash.keySystemsByURI);b.ua.encrypted=0a.J)){var c=a.J;0<=a.g.updatePeriod&&(c=a.g.updatePeriod);a.K.X(Math.max(c-b,Mc(a.ra)))}} -function Vw(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Jf:null,audioSamplingRate:null,wb:0,Yf:0,encrypted:!1};d=d||c.jb;var e=b.attributes.id,f=b.attributes.supplementalId,g=Od(b,"BaseURL"),h,k=!1;if(a.h)for(var l=u(g),m=l.next();!m.done;m=l.next()){var n=m.value;m=n.attributes.serviceLocation;n=Qd(n);m&&n&&(Lv(a.h,e,m,n),k=!0)}k&&a.h||(h=g.map(Qd));l=b.attributes.contentType||c.contentType;m=b.attributes.mimeType||c.mimeType;n= -um([b.attributes.codecs||c.codecs]).join(",");var q=Vd(b,"frameRate",ge)||c.frameRate,r=b.attributes.sar||c.pixelAspectRatio,t=ex(Od(b,"InbandEventStream"),c.emsgSchemeIdUris),w=Od(b,"AudioChannelConfiguration");w=fx(w)||c.Jf;var v=Vd(b,"audioSamplingRate",ce)||c.audioSamplingRate;l||(l=ax(m,n));var y=Sd(b,"SegmentBase"),z=Sd(b,"SegmentTemplate"),A=y?Vd(y,"availabilityTimeOffset",ee)||0:0,B=z?Vd(z,"availabilityTimeOffset",ee)||0:0,D=g&&g.length?Vd(g[0],"availabilityTimeOffset",ee)||0:0;A=c.wb+D+A+ -B;B=null;(D=Sd(b,"SegmentSequenceProperties"))&&(D=Sd(D,"SAP"))&&(B=Vd(D,"cadence",ae));D=b.attributes.label;var G=Od(b,"Label");G&&G.length&&(G=G[0],Pd(G)&&(D=Pd(G)));return{jb:function(){return lc(d(),g.length?a.h&&k?Mv(a.h,e):h?h:[]:[])},Md:y||c.Md,xc:Sd(b,"SegmentList")||c.xc,Kc:z||c.Kc,Qf:Sd(b,"ProducerReferenceTime")||c.Qf,width:Vd(b,"width",ce)||c.width,height:Vd(b,"height",ce)||c.height,contentType:l,mimeType:m,codecs:n,frameRate:q,pixelAspectRatio:r,emsgSchemeIdUris:t,id:f||e,originalId:e, -language:b.attributes.lang,Jf:w,audioSamplingRate:v,wb:A,vf:null,Yf:B||c.Yf,label:D||null,encrypted:!1}}function ex(a,b){b=b.slice();a=u(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b} -function fx(a){a=u(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.attributes.schemeIdUri;if(c&&(b=b.attributes.value))switch(c){case "urn:mpeg:dash:outputChannelPositionList:2012":return b.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(b,10);if(!b)continue;return b;case "tag:dolby.com,2015:dash:audio_channel_configuration:2015":c=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2];b=parseInt(b, +type:b.ua.contentType,primary:g,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:u,channelsCount:b.M.Kf,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:v,closedCaptions:k,hdr:N,colorGamut:void 0,videoLayout:void 0,tilesLayout:L,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([bf(b.M.mimeType,b.M.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null};O.createSegmentIndex=function(){var M;return Q(function(P){if(1==P.g){if(O.segmentIndex)return P.A(0); +M=O;return F(P,C.Zc(),3)}M.segmentIndex=P.h;I(P)})};w&&b.qc&&!a.s.has(w)&&(b=b.za.id||"",a.D.has(b)||a.D.set(b,[]),a.s.set(w,O),a.D.get(b).push(w));return O} +function lx(a,b,c,d){if(!a.$.has(b)){a.$.add(b);var e=Wd(b,"presentationTime",ee)||0,f=Td(b,"UTCTiming"),g;if(g=f&&f.attributes.schemeIdUri)f=f.attributes.schemeIdUri,g=!("urn:mpeg:dash:utc:http-ntp:2014"===f||"urn:mpeg:dash:utc:ntp:2014"===f||"urn:mpeg:dash:utc:sntp:2014"===f);g?b=1E3*(Wd(b,"wallClockTime",Zd)||0):(b=Wd(b,"wallClockTime",ee)||0,b=ak(b));c=new Date(b-e/c.timescale*1E3);e=c.getTime()/1E3;isNaN(e)||(d.s||d.Wh(e),d=(new Map).set("detail",{wallClockTime:b,programStartDate:c}),d=new U("prft", +d),a.j.onEvent(d))}}function kx(a){function b(c){if(!c)return null;c=Fd(c);c.Od=null;c.Bc=null;c.Pc=ne(c.Pc);c.Rf=null;return c}a=Fd(a);a.za=b(a.za);a.ua=b(a.ua);a.M=b(a.M);a.va&&(a.va=Fd(a.va),a.va.node=null);return a} +function Iw(a){var b,c;return Q(function(d){switch(d.g){case 1:return b=0,ta(d,2),F(d,Jw(a),4);case 4:b=d.h;wa(d,3);break;case 2:if(c=xa(d),a.j){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.j.onError(c),d.return();c.severity=1;a.j.onError(c)}case 3:if(!a.j)return d.return();a.j.onManifestUpdated();Kw(a,b);I(d)}})}function Kw(a,b){if(!(0>a.J)){var c=a.J;0<=a.g.updatePeriod&&(c=a.g.updatePeriod);a.K.X(Math.max(c-b,Mc(a.ra)))}} +function cx(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Kf:null,audioSamplingRate:null,wb:0,Zf:0,encrypted:!1};d=d||c.jb;var e=b.attributes.id,f=b.attributes.supplementalId,g=Pd(b,"BaseURL"),h,k=!1;if(a.h)for(var l=t(g),m=l.next();!m.done;m=l.next()){var n=m.value;m=n.attributes.serviceLocation;n=Rd(n);m&&n&&(Tv(a.h,e,m,n),k=!0)}k&&a.h||(h=g.map(Rd));l=b.attributes.contentType||c.contentType;m=b.attributes.mimeType||c.mimeType;n= +Bm([b.attributes.codecs||c.codecs]).join(",");var q=Wd(b,"frameRate",he)||c.frameRate,r=b.attributes.sar||c.pixelAspectRatio,u=mx(Pd(b,"InbandEventStream"),c.emsgSchemeIdUris),w=Pd(b,"AudioChannelConfiguration");w=nx(w)||c.Kf;var v=Wd(b,"audioSamplingRate",ee)||c.audioSamplingRate;l||(l=ix(m,n));var y=Td(b,"SegmentBase"),z=Td(b,"SegmentTemplate"),A=y?Wd(y,"availabilityTimeOffset",fe)||0:0,B=z?Wd(z,"availabilityTimeOffset",fe)||0:0,D=g&&g.length?Wd(g[0],"availabilityTimeOffset",fe)||0:0;A=c.wb+D+A+ +B;B=null;(D=Td(b,"SegmentSequenceProperties"))&&(D=Td(D,"SAP"))&&(B=Wd(D,"cadence",be));D=b.attributes.label;var G=Pd(b,"Label");G&&G.length&&(G=G[0],Qd(G)&&(D=Qd(G)));return{jb:function(){return lc(d(),g.length?a.h&&k?Uv(a.h,e):h?h:[]:[])},Od:y||c.Od,Bc:Td(b,"SegmentList")||c.Bc,Pc:z||c.Pc,Rf:Td(b,"ProducerReferenceTime")||c.Rf,width:Wd(b,"width",ee)||c.width,height:Wd(b,"height",ee)||c.height,contentType:l,mimeType:m,codecs:n,frameRate:q,pixelAspectRatio:r,emsgSchemeIdUris:u,id:f||e,originalId:e, +language:b.attributes.lang,Kf:w,audioSamplingRate:v,wb:A,vf:null,Zf:B||c.Zf,label:D||null,encrypted:!1}}function mx(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b} +function nx(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.attributes.schemeIdUri;if(c&&(b=b.attributes.value))switch(c){case "urn:mpeg:dash:outputChannelPositionList:2012":return b.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(b,10);if(!b)continue;return b;case "tag:dolby.com,2015:dash:audio_channel_configuration:2015":c=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2];b=parseInt(b, 16);if(!b)continue;for(var d=0,e=0;ec}).map(Qd).filter(Bf);return d.length?lc(a.B,d):[]}S("shaka.dash.DashParser",zw);Bi("application/dash+xml",function(){return new zw});Bi("video/vnd.mpeg.dash.mpd",function(){return new zw});function hx(){}S("shaka.dependencies",hx);hx.has=function(a){return ix.has(a)};hx.add=function(a,b){if(!jx[a])throw Error(a+" is not supported");a==kx?Uc("mux.js","mux.js is no longer used in Shaka Player."):ix.set(a,function(){return b})};var kx="muxjs",jx={Hn:kx,ISOBoxer:"ISOBoxer"};hx.Allowed=jx;var ix=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function lx(){this.j=new Qb(function(){return navigator.userAgent.match(/Smart( ?|_)TV/i)||navigator.userAgent.match(/Android ?TV/i)?"TV":navigator.userAgentData?navigator.userAgentData.mobile?"MOBILE":"DESKTOP":/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)?"MOBILE":navigator.userAgentData&&navigator.userAgentData.platform?"android"==navigator.userAgentData.platform.toLowerCase()?"MOBILE":"DESKTOP":navigator.userAgent.includes("Android")?"MOBILE":"DESKTOP"});this.l=new Qb(function(){return navigator.vendor.includes("Apple")&& -(navigator.userAgent.includes("Version/")||navigator.userAgent.includes("OS/"))?"WEBKIT":navigator.userAgent.includes("Edge/")?"EDGE":navigator.userAgent.includes("Chrome/")?"CHROMIUM":navigator.userAgent.includes("Firefox/")?"GECKO":"UNKNOWN"})}function Ei(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}p=lx.prototype;p.ic=function(){return!!navigator.mediaCapabilities};p.Ia=function(){return this.j.value()};p.Na=function(){return this.l.value()};p.xe=function(){return!1}; -p.qj=function(){return!1};p.wf=function(){return!1};p.rj=function(){return!1};p.we=function(){return!1};p.kd=function(){return!0};p.ld=function(){return!0};p.Be=function(){return!0};p.wj=function(){return 0};p.mc=function(){return Promise.resolve({width:Infinity,height:Infinity})};p.Ij=function(){return!1};p.Zh=function(){return!1}; -p.ab=function(a){var b=this.Ia();if("TV"===b||"CONSOLE"===b||"CAST"===b)a.ads.customPlayheadTracker=!0,a.ads.skipPlayDetection=!0,a.ads.supportsMultipleMediaElements=!1;return a};p.di=function(){return!!window.indexedDB};p.oj=function(){return[]};function Gn(a){Rb();return void 0!==window.matchMedia&&window.matchMedia("(color-gamut: p3)").matches?a?"HLG":"PQ":"SDR"}p.dg=function(){return!1};p.ej=function(){return!1};p.Oh=function(){return!1};p.ci=function(){return!0};p.fj=function(){return!1}; -p.Qj=function(){return!0};p.toString=function(){return"Device: "+this.Qb()+" v"+this.Ga()+"; Type: "+this.Ia()};function mx(){lx.call(this);this.g=new Qb(function(){var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null});this.h=new Qb(function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1this.g&&a.push("opus");return a};p.ej=function(){return!0};p.fj=function(){return 3===this.Ga()};navigator.userAgent.includes("Tizen")&&(Tb=function(){return new vx});function wx(){lx.apply(this,arguments)}pa(wx,lx);wx.prototype.Ga=function(){return null};wx.prototype.Qb=function(){return"Vizio"};wx.prototype.Ia=function(){return"TV"};wx.prototype.ic=function(){return!1};navigator.userAgent.includes("VIZIO SmartCast")&&(Tb=function(){return new wx});function xx(){lx.call(this);this.h=new Qb(function(){return navigator.userAgent.includes("DT_STB_BCM")});this.g=new Qb(function(){if(navigator.userAgent.includes("DT_STB_BCM"))return 11;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null})}pa(xx,lx);p=xx.prototype;p.Ga=function(){return this.g.value()};p.Qb=function(){return"WebKit STB"};p.Ia=function(){return"TV"};p.Na=function(){return"WEBKIT"}; -p.ic=function(){return!1};p.kd=function(){var a=this.g.value();return null!==a?15<=a:!0};p.mc=function(){return Promise.resolve({width:window.screen.width*window.devicePixelRatio,height:window.screen.height*window.devicePixelRatio})};p.ci=function(){return!this.h.value()}; -if(navigator.userAgent.includes("DT_STB_BCM")||navigator.userAgent.includes("DT_STB_BCM")||!(!(navigator.vendor||"").includes("Apple")||/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1b.length||"data"!=b[0])throw new V(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new V(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1",gc(b),""].join("\n")))d.licenseServerUri=Ku(b);d=Promise.resolve(d)}else d=Promise.resolve(null);return d}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(b){var c=Hx(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";"SAMPLE-AES"==c&&(d="cbcs");c=Hx(b,"URI");c=Yx(c.split("?")[0]);c=Kb(c.data);d=mc("com.huawei.wiseplay",d,[{initDataType:"cenc",initData:c}]);(b=Gx(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2)); -b=Promise.resolve(d)}else b=Promise.resolve(null);return b});this.Za=new Set;this.i=new Map;this.l=null;this.D="";this.Ka=new Rx;this.J=-1;this.Z=Infinity;this.Y=this.vc=this.Ta=!1;this.C=new yf(function(){if(a.R&&!a.g.continueLoadingWhenPaused&&(a.P.Ca(a.R,"timeupdate"),a.R.paused)){a.P.qa(a.R,"timeupdate",function(){return ay(a)});return}ay(a)});this.sa=by;this.m=null;this.Ma=0;this.s=Infinity;this.gb=this.Ha=this.O=0;this.U=new Pg;this.G=new Map;this.H=new Map;this.ra=new Map;this.ea=new Map;this.K= -new Map;this.na=new Map;this.oa=new Map;this.tc=this.$=!1;this.eb=new Lc(5);this.j=null;this.N=!0;this.P=new Oc;this.u=this.R=null;this.Kb=function(){return!1}}p=Zx.prototype;p.configure=function(a,b){var c=this.h&&a.updatePeriod!=this.g.updatePeriod&&0<=a.updatePeriod;this.g=a;b&&(this.Kb=b);this.j&&this.j.configure(this.g);c&&this.m&&this.m.presentationTimeline.T()&&this.C.Ja()}; -p.start=function(a,b){var c=this,d;return Q(function(e){return 1==e.g?(c.h=b,c.$=b.isLowLatencyMode(),F(e,cy(c,[a]).promise,2)):3!=e.g?(d=e.h,c.D=d.uri,F(e,dy(c,d.data),3)):e.return(c.m)})}; -p.stop=function(){this.C&&(this.C.stop(),this.C=null);var a=[];this.U&&(a.push(this.U.destroy()),this.U=null);this.g=this.h=null;this.Za.clear();this.m=null;this.i.clear();this.I.clear();this.H.clear();this.B.clear();this.ra.clear();this.ea.clear();this.K.clear();this.na.clear();this.oa.clear();this.j&&this.j.destroy();this.P&&(this.P.release(),this.P=null);return Promise.all(a)}; -p.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,q;return Q(function(r){if(1==r.g){if(!ey(a))return r.return();b=[];c=Array.from(a.i.values());a.s=Infinity;a.m.gapCount=0;d=c.filter(function(t){return t.stream.segmentIndex});e=u(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(fy(a,g));return F(r,Promise.all(b),2)}gy(a,d.map(function(t){return t.stream}));h=d.some(function(t){return 0==t.ee});d.length&&!h&&(k=hy,iy(a,k.$j),l=d.map(function(t){return t.rc}),a.l.vb(Math.min.apply(Math,x(l))), -a.h.updateDuration());h&&jy(a);m=u(d);for(n=m.next();!n.done;n=m.next())q=n.value,q.stream.isAudioMuxedInVideo||!q.stream.segmentIndex||bg(q.stream.segmentIndex)||a.h.disableStream(q.stream);H(r)})};function ky(a,b){return ey(a)?a.L.get(b.type):b.Ef} -function fy(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,w,v,y,z,A,B,D,G,C,E,I,K,J,L,M,O,N,P,R,T,ca,Y,Ma,Na;return Q(function(Ea){switch(Ea.g){case 1:if(b.stream.isAudioMuxedInVideo)return Ea.return();c=[];d=u(b.S());for(e=d.next();!e.done;e=d.next())f=e.value,g=new qb(f),h=g.g,b.df&&(0<=b.Vb&&h.add("_HLS_msn",String(b.Vb)),0<=b.Wb&&h.add("_HLS_part",String(b.Wb))),b.ef&&h.add("_HLS_skip","YES"),Hb(h)&&vb(g,wb(h.toString())),c.push(g.toString());ta(Ea,2);return F(Ea,cy(a,c,!0).promise,4);case 4:k=Ea.h;wa(Ea, -3);break;case 2:throw l=xa(Ea),a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return Ea.return();m=Sx(a.Ka,k.data);if(1!=m.type)throw new V(2,4,4017);n=k.uri;n==k.originalUri||b.S().includes(n)||b.Tf.push(n);q=Kx(m.ma,"EXT-X-DEFINE");r=ly(a,q,n);t=b.stream;w=ky(a,b);return F(Ea,my(a,m,t.mimeType,b.S,r),5);case 5:v=Ea.h;y=v.keyIds;z=v.drmInfos;A=v.encrypted;B=v.ti;t.encrypted||!A||B||(t.encrypted=!0);D=function(va,Ka){return va.size===Ka.size&&[].concat(x(va)).every(function(Pa){return Ka.has(Pa)})}; -D(t.keyIds,y)||(t.keyIds=y,t.drmInfos=z,a.h.newDrmInfo(t));G=ny(a,m,w,r,b.S,b.type);C=G.segments;if(E=G.bandwidth)t.bandwidth=E;I=cm(t);K=u(C);for(J=K.next();!J.done;J=K.next())L=J.value,L.ha&&(L.ha.Cd=I);t.segmentIndex.pe(C,a.l.Jb());C.length&&(M=Nx(m.ma,"EXT-X-MEDIA-SEQUENCE",0),N=(O=Mx(m.ma,"EXT-X-SKIP"))?Number(Gx(O,"SKIPPED-SEGMENTS")):0,P=oy(M,C),R=P.Vb,T=P.Wb,b.Vb=R+N,b.Wb=T,ca=w.get(M),t.segmentIndex.hb(ca));if(Y=bg(t.segmentIndex))b.dd=Y.startTime,Ma=C[C.length-1],b.rc=Ma.endTime;if(Na=Mx(m.ma, -"EXT-X-ENDLIST"))b.ee=!0;py(a,m);qy(a,m.ma,t.type,r,b.S);H(Ea)}})}p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(a){this.j&&this.j.banLocation(a)};p.setMediaElement=function(a){this.R=a}; -function ry(a,b,c){c=void 0===c?!1:c;for(var d=-1==a.J,e=u(b),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.stream.segmentIndex,h=ky(a,f);if(g=bg(g)){h=u(h);for(var k=h.next();!k.done;k=h.next()){k=u(k.value);var l=k.next().value;if(k.next().value==g.startTime){d&&(a.J=Math.max(a.J,l));f.Og=l;break}}}}if(!(0>a.J))for(b=u(b),d=b.next();!d.done;d=b.next())if(d=d.value,sy(a,d.type)||c)if(e=d.stream.segmentIndex)if(f=a.J-d.Og,0Math.abs(c))){b.dd+=c;b.rc+=c;a=ky(a,b);for(var d=u(a),e=d.next();!e.done;e=d.next()){var f=u(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.S()}} -function dy(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,w,v,y,z,A,B,D,G,C,E,I,K,J,L,M,O,N,P,R,T,ca,Y,Ma,Na,Ea,va,Ka,Pa,za,ia;return Q(function(Aa){switch(Aa.g){case 1:c=uc;d=Sx(a.Ka,b);e=Kx(d.ma,"EXT-X-DEFINE");f=[];g=[];h=[];a.l=new ql(null,0);a.l.jd(!0);k=function(){return[a.D]};l=null;m=new Map;if(1==d.type)return a.N=!1,R=Kx(d.ma,"EXT-X-DEFINE"),m=ly(a,R,a.D),l=c.Ea,T="",ca=new Map,F(Aa,vy(a,a.F++,m,d,k,"",l,T,!0,"Media Playlist",null,ca,null,!1,null,!1),7);wy(a,e);n=Kx(d.ma,"EXT-X-MEDIA");q=Kx(d.ma,"EXT-X-STREAM-INF"); -r=Kx(d.ma,"EXT-X-IMAGE-STREAM-INF");t=Kx(d.ma,"EXT-X-I-FRAME-STREAM-INF");w=Kx(d.ma,"EXT-X-SESSION-KEY");v=Kx(d.ma,"EXT-X-SESSION-DATA");y=Kx(d.ma,"EXT-X-CONTENT-STEERING");xy(a,v);return F(Aa,yy(a,y),4);case 4:if(!a.g.ignoreSupplementalCodecs){z=[];A=u(q);B=A.next();for(D={};!B.done;D={Oj:void 0},B=A.next())if(G=B.value,C=Gx(G,"SUPPLEMENTAL-CODECS"))D.Oj=C.split(/\s*,\s*/).map(function(eb){return eb.split("/")[0]}),E=G.attributes.map(function(eb){return function(fb){var mb=fb.name,xb=fb.value;"CODECS"== -mb&&(xb=eb.Oj.join(","),fb=fb.value.split(","),1c}).map(Rd).filter(Cf);return d.length?lc(a.B,d):[]}S("shaka.dash.DashParser",Hw);Ci("application/dash+xml",function(){return new Hw});Ci("video/vnd.mpeg.dash.mpd",function(){return new Hw});function px(){}S("shaka.dependencies",px);px.has=function(a){return qx.has(a)};px.add=function(a,b){if(!rx[a])throw Error(a+" is not supported");a==sx?Uc("mux.js","mux.js is no longer used in Shaka Player."):qx.set(a,function(){return b})};var sx="muxjs",rx={In:sx,ISOBoxer:"ISOBoxer"};px.Allowed=rx;var qx=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function tx(){this.j=new Qb(function(){return navigator.userAgent.match(/Smart( ?|_)TV/i)||navigator.userAgent.match(/Android ?TV/i)?"TV":navigator.userAgentData?navigator.userAgentData.mobile?"MOBILE":"DESKTOP":/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)?"MOBILE":navigator.userAgentData&&navigator.userAgentData.platform?"android"==navigator.userAgentData.platform.toLowerCase()?"MOBILE":"DESKTOP":navigator.userAgent.includes("Android")?"MOBILE":"DESKTOP"});this.l=new Qb(function(){return navigator.vendor.includes("Apple")&& +(navigator.userAgent.includes("Version/")||navigator.userAgent.includes("OS/"))?"WEBKIT":navigator.userAgent.includes("Edge/")?"EDGE":navigator.userAgent.includes("Chrome/")?"CHROMIUM":navigator.userAgent.includes("Firefox/")?"GECKO":"UNKNOWN"})}function Fi(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}p=tx.prototype;p.ic=function(){return!!navigator.mediaCapabilities};p.Ja=function(){return this.j.value()};p.Ga=function(){return this.l.value()};p.xe=function(){return!1}; +p.rj=function(){return!1};p.wf=function(){return!1};p.sj=function(){return!1};p.we=function(){return!1};p.od=function(){return!0};p.pd=function(){return!0};p.Ce=function(){return!0};p.xj=function(){return 0};p.nc=function(){return Promise.resolve({width:Infinity,height:Infinity})};p.Jj=function(){return!1};p.$h=function(){return!1}; +p.$a=function(a){var b=this.Ja();if("TV"===b||"CONSOLE"===b||"CAST"===b)a.ads.customPlayheadTracker=!0,a.ads.skipPlayDetection=!0,a.ads.supportsMultipleMediaElements=!1;return a};p.ei=function(){return!!window.indexedDB};p.pj=function(){return[]};function On(a){Rb();return void 0!==window.matchMedia&&window.matchMedia("(color-gamut: p3)").matches?a?"HLG":"PQ":"SDR"}p.eg=function(){return!1};p.fj=function(){return!1};p.Ph=function(){return!1};p.di=function(){return!0};p.gj=function(){return!1}; +p.Rj=function(){return!0};p.toString=function(){return"Device: "+this.Rb()+" v"+this.Ha()+"; Type: "+this.Ja()};function ux(){tx.call(this);this.g=new Qb(function(){var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null});this.h=new Qb(function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1this.g&&a.push("opus");return a};p.fj=function(){return!0};p.gj=function(){return 3===this.Ha()}; +navigator.userAgent.includes("Tizen")&&(Tb=function(){return new Dx});function Ex(){tx.apply(this,arguments)}pa(Ex,tx);Ex.prototype.Ha=function(){return null};Ex.prototype.Rb=function(){return"Vizio"};Ex.prototype.Ja=function(){return"TV"};Ex.prototype.ic=function(){return!1};navigator.userAgent.includes("VIZIO SmartCast")&&(Tb=function(){return new Ex});function Fx(){tx.call(this);this.h=new Qb(function(){return navigator.userAgent.includes("DT_STB_BCM")});this.g=new Qb(function(){if(navigator.userAgent.includes("DT_STB_BCM"))return 11;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null})}pa(Fx,tx);p=Fx.prototype;p.Ha=function(){return this.g.value()};p.Rb=function(){return"WebKit STB"};p.Ja=function(){return"TV"};p.Ga=function(){return"WEBKIT"}; +p.ic=function(){return!1};p.od=function(){var a=this.g.value();return null!==a?15<=a:!0};p.nc=function(){return Promise.resolve({width:window.screen.width*window.devicePixelRatio,height:window.screen.height*window.devicePixelRatio})};p.di=function(){return!this.h.value()}; +if(navigator.userAgent.includes("DT_STB_BCM")||navigator.userAgent.includes("DT_STB_BCM")||!(!(navigator.vendor||"").includes("Apple")||/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1b.length||"data"!=b[0])throw new V(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new V(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1",gc(b),""].join("\n")))d.licenseServerUri=Su(b);d=Promise.resolve(d)}else d=Promise.resolve(null);return d}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(b){var c=Px(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";"SAMPLE-AES"==c&&(d="cbcs");c=Px(b,"URI");c=fy(c.split("?")[0]);c=Kb(c.data);d=mc("com.huawei.wiseplay",d,[{initDataType:"cenc",initData:c}]);(b=Ox(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2)); +b=Promise.resolve(d)}else b=Promise.resolve(null);return b});this.Ya=new Set;this.i=new Map;this.l=null;this.F="";this.La=new Zx;this.K=-1;this.Z=Infinity;this.Y=this.yc=this.Ta=!1;this.D=new zf(function(){if(a.R&&!a.g.continueLoadingWhenPaused&&(a.P.Da(a.R,"timeupdate"),a.R.paused)){a.P.qa(a.R,"timeupdate",function(){return iy(a)});return}iy(a)});this.sa=jy;this.m=null;this.Na=0;this.s=Infinity;this.fb=this.Ia=this.O=0;this.U=new Qg;this.H=new Map;this.I=new Map;this.ra=new Map;this.ba=new Map;this.L= +new Map;this.na=new Map;this.oa=new Map;this.wc=this.$=!1;this.cb=new Lc(5);this.j=null;this.N=!0;this.P=new Oc;this.u=this.R=null;this.Lb=function(){return!1}}p=gy.prototype;p.configure=function(a,b){var c=this.h&&a.updatePeriod!=this.g.updatePeriod&&0<=a.updatePeriod;this.g=a;b&&(this.Lb=b);this.j&&this.j.configure(this.g);c&&this.m&&this.m.presentationTimeline.T()&&this.D.Ka()}; +p.start=function(a,b){var c=this,d;return Q(function(e){return 1==e.g?(c.h=b,c.$=b.isLowLatencyMode(),F(e,ky(c,[a]).promise,2)):3!=e.g?(d=e.h,c.F=d.uri,F(e,ly(c,d.data),3)):e.return(c.m)})}; +p.stop=function(){this.D&&(this.D.stop(),this.D=null);var a=[];this.U&&(a.push(this.U.destroy()),this.U=null);this.g=this.h=null;this.Ya.clear();this.m=null;this.i.clear();this.J.clear();this.I.clear();this.B.clear();this.ra.clear();this.ba.clear();this.L.clear();this.na.clear();this.oa.clear();this.j&&this.j.destroy();this.P&&(this.P.release(),this.P=null);return Promise.all(a)}; +p.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,q;return Q(function(r){if(1==r.g){if(!my(a))return r.return();b=[];c=Array.from(a.i.values());a.s=Infinity;a.m.gapCount=0;d=c.filter(function(u){return u.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(ny(a,g));return F(r,Promise.all(b),2)}oy(a,d.map(function(u){return u.stream}));h=d.some(function(u){return 0==u.ee});d.length&&!h&&(k=py,qy(a,k.bk),l=d.map(function(u){return u.uc}),a.l.vb(Math.min.apply(Math,x(l))), +a.h.updateDuration());h&&ry(a);m=t(d);for(n=m.next();!n.done;n=m.next())q=n.value,q.stream.isAudioMuxedInVideo||!q.stream.segmentIndex||cg(q.stream.segmentIndex)||a.h.disableStream(q.stream);I(r)})};function sy(a,b){return my(a)?a.C.get(b.type):b.Ef} +function ny(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca,Y,Ma,Na;return Q(function(Ea){switch(Ea.g){case 1:if(b.stream.isAudioMuxedInVideo)return Ea.return();c=[];d=t(b.S());for(e=d.next();!e.done;e=d.next())f=e.value,g=new qb(f),h=g.g,b.df&&(0<=b.Vb&&h.add("_HLS_msn",String(b.Vb)),0<=b.Wb&&h.add("_HLS_part",String(b.Wb))),b.ef&&h.add("_HLS_skip","YES"),Hb(h)&&vb(g,xb(h.toString())),c.push(g.toString());ta(Ea,2);return F(Ea,ky(a,c,!0).promise,4);case 4:k=Ea.h;wa(Ea, +3);break;case 2:throw l=xa(Ea),a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return Ea.return();m=$x(a.La,k.data);if(1!=m.type)throw new V(2,4,4017);n=k.uri;n==k.originalUri||b.S().includes(n)||b.Uf.push(n);q=Sx(m.ka,"EXT-X-DEFINE");r=ty(a,q,n);u=b.stream;w=sy(a,b);return F(Ea,uy(a,m,u.mimeType,b.S,r),5);case 5:v=Ea.h;y=v.keyIds;z=v.drmInfos;A=v.encrypted;B=v.wi;u.encrypted||!A||B||(u.encrypted=!0);D=function(va,Ja){return va.size===Ja.size&&[].concat(x(va)).every(function(Pa){return Ja.has(Pa)})}; +D(u.keyIds,y)||(u.keyIds=y,u.drmInfos=z,a.h.newDrmInfo(u));G=vy(a,m,w,r,b.S,b.type);C=G.segments;if(E=G.bandwidth)u.bandwidth=E;H=jm(u);K=t(C);for(J=K.next();!J.done;J=K.next())L=J.value,L.ea&&(L.ea.Ed=H);u.segmentIndex.pe(C,a.l.Kb());C.length&&(N=Vx(m.ka,"EXT-X-MEDIA-SEQUENCE",0),M=(O=Ux(m.ka,"EXT-X-SKIP"))?Number(Ox(O,"SKIPPED-SEGMENTS")):0,P=wy(N,C),R=P.Vb,T=P.Wb,b.Vb=R+M,b.Wb=T,ca=w.get(N),u.segmentIndex.hb(ca));if(Y=cg(u.segmentIndex))b.hd=Y.startTime,Ma=C[C.length-1],b.uc=Ma.endTime;if(Na=Ux(m.ka, +"EXT-X-ENDLIST"))b.ee=!0;xy(a,m);yy(a,m.ka,u.type,r,b.S);I(Ea)}})}p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(a){this.j&&this.j.banLocation(a)};p.setMediaElement=function(a){this.R=a}; +function zy(a,b,c){c=void 0===c?!1:c;for(var d=-1==a.K,e=t(b),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.stream.segmentIndex,h=sy(a,f);if(g=cg(g)){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=t(k.value);var l=k.next().value;if(k.next().value==g.startTime){d&&(a.K=Math.max(a.K,l));f.Pg=l;break}}}}if(!(0>a.K))for(b=t(b),d=b.next();!d.done;d=b.next())if(d=d.value,Ay(a,d.type)||c)if(e=d.stream.segmentIndex)if(f=a.K-d.Pg,0Math.abs(c))){b.hd+=c;b.uc+=c;a=sy(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.S()}} +function ly(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca,Y,Ma,Na,Ea,va,Ja,Pa,za,ja;return Q(function(Aa){switch(Aa.g){case 1:c=uc;d=$x(a.La,b);e=Sx(d.ka,"EXT-X-DEFINE");f=[];g=[];h=[];a.l=new xl(null,0);a.l.nd(!0);k=function(){return[a.F]};l=null;m=new Map;if(1==d.type)return a.N=!1,R=Sx(d.ka,"EXT-X-DEFINE"),m=ty(a,R,a.F),l=c.Ea,T="",ca=new Map,F(Aa,Dy(a,a.G++,m,d,k,"",l,T,!0,"Media Playlist",null,ca,null,!1,null,!1),7);Ey(a,e);n=Sx(d.ka,"EXT-X-MEDIA");q=Sx(d.ka,"EXT-X-STREAM-INF"); +r=Sx(d.ka,"EXT-X-IMAGE-STREAM-INF");u=Sx(d.ka,"EXT-X-I-FRAME-STREAM-INF");w=Sx(d.ka,"EXT-X-SESSION-KEY");v=Sx(d.ka,"EXT-X-SESSION-DATA");y=Sx(d.ka,"EXT-X-CONTENT-STEERING");Fy(a,v);return F(Aa,Gy(a,y),4);case 4:if(!a.g.ignoreSupplementalCodecs){z=[];A=t(q);B=A.next();for(D={};!B.done;D={Pj:void 0},B=A.next())if(G=B.value,C=Ox(G,"SUPPLEMENTAL-CODECS"))D.Pj=C.split(/\s*,\s*/).map(function(eb){return eb.split("/")[0]}),E=G.attributes.map(function(eb){return function(fb){var nb=fb.name,wb=fb.value;"CODECS"== +nb&&(wb=eb.Pj.join(","),fb=fb.value.split(","),1d-2&&(e=Math.max(1,d-2));for(e=d-e;ea.u&&(c=Math.min(-a.u,c),a.u+=c);a.l.Fj(0);a.l.Th(c);a.l.jd(!1)} -function xz(a,b,c,d,e){var f=Mx(c,"EXT-X-MAP");if(!f)return null;var g=Hx(f,"URI"),h=Ox(d(),g,e);g=[h.toString(),Gx(f,"BYTERANGE","")].join("-");if(!a.ra.has(g)){var k=void 0,l=null,m=!1;c=u(c);for(var n=c.next();!n.done;n=c.next())n=n.value,"EXT-X-KEY"==n.name?(m=Hx(n,"METHOD"),Xy(m)&&n.idJ?1:0}),c=0;cm))continue}if(null==m){var r=Gx(g,"DURATION")||Gx(g,"PLANNED-DURATION");if(r){var t= -parseFloat(r);isNaN(t)||(m=l+t);if(0>k-f+t)continue}}var w=Gx(g,"CLASS")||"com.apple.quicktime.HLS",v="YES"==Gx(g,"END-ON-NEXT");if(null==m&&v){for(var y=c+1;yk){m=Math.max(0,B-f);break}}}if(null==m)continue}y=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var D=[],G=u(g.attributes),C=G.next();!C.done;C=G.next()){var E=C.value;if(!y.includes(E.name)){var I= -Qx(E.value,d);if("X-ASSET-URI"==E.name||"X-ASSET-LIST"==E.name)I=Ox(e(),E.value,d)[0];D.push({key:E.name,description:"",data:I,mimeType:null,pictureType:null})}}if(1C)if(E){E=Vd(E,"t",ce);if(null==E)break;else if(I>=E)break;C=Math.ceil((E-I)/K)-1}else{if(Infinity==z)break;else if(I/v>=z)break;C=Math.ceil((z*v-I)/K)-1}for(E=0;E<=C;++E)D=I+K,B.push({start:I/v,end:D/v,ni:I}),I=D}v=B;y=u(y);for(z=y.next();!z.done;z=y.next())(z=Pz(a,w,z.value,v,t,l))&&("audio"!=z.type||a.g.disableAudio?"video"!=z.type||a.g.disableVideo?z.type!=rc||a.g.disableText||m.push(z):n.push(z):r.push(z))}q=[];r=u(0d-2&&(e=Math.max(1,d-2));for(e=d-e;ea.u&&(c=Math.min(-a.u,c),a.u+=c);a.l.Gj(0);a.l.Uh(c);a.l.nd(!1)} +function Fz(a,b,c,d,e){var f=Ux(c,"EXT-X-MAP");if(!f)return null;var g=Px(f,"URI"),h=Wx(d(),g,e);g=[h.toString(),Ox(f,"BYTERANGE","")].join("-");if(!a.ra.has(g)){var k=void 0,l=null,m=!1;c=t(c);for(var n=c.next();!n.done;n=c.next())n=n.value,"EXT-X-KEY"==n.name?(m=Px(n,"METHOD"),ez(m)&&n.idJ?1:0}),c=0;cm))continue}if(null==m){var r=Ox(g,"DURATION")||Ox(g,"PLANNED-DURATION");if(r){var u= +parseFloat(r);isNaN(u)||(m=l+u);if(0>k-f+u)continue}}var w=Ox(g,"CLASS")||"com.apple.quicktime.HLS",v="YES"==Ox(g,"END-ON-NEXT");if(null==m&&v){for(var y=c+1;yk){m=Math.max(0,B-f);break}}}if(null==m)continue}y=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var D=[],G=t(g.attributes),C=G.next();!C.done;C=G.next()){var E=C.value;if(!y.includes(E.name)){var H= +Yx(E.value,d);if("X-ASSET-URI"==E.name||"X-ASSET-LIST"==E.name)H=Wx(e(),E.value,d)[0];D.push({key:E.name,description:"",data:H,mimeType:null,pictureType:null})}}if(1C)if(E){E=Wd(E,"t",ee);if(null==E)break;else if(H>=E)break;C=Math.ceil((E-H)/K)-1}else{if(Infinity==z)break;else if(H/v>=z)break;C=Math.ceil((z*v-H)/K)-1}for(E=0;E<=C;++E)D=H+K,B.push({start:H/v,end:D/v,ni:H}),H=D}v=B;y=t(y);for(z=y.next();!z.done;z=y.next())(z=Xz(a,w,z.value,v,u,l))&&("audio"!=z.type||a.g.disableAudio?"video"!=z.type||a.g.disableVideo?z.type!=sc||a.g.disableText||m.push(z):n.push(z):r.push(z))}q=[];r=t(0>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|b<<3; -b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function Tz(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function Uz(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""} -function Vz(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];e=u(e);for(var g=e.next(),h={};!g.done;h={eg:void 0},g=e.next())h.eg=g.value,d.push(new zj(h.eg.start,h.eg.end,function(k){return function(){return lc(a.l,[f.replace("{start time}",String(k.eg.ni))])}}(h),0,null,b,0,0,c.mssPrivateData.duration));return d}S("shaka.mss.MssParser",Mz); -var Rz="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),Qz=(new Map).set("CAPT","main").set("SUBT","alternate").set("DESC","main");Bi("application/vnd.ms-sstr+xml",function(){return new Mz});function Wz(a,b,c,d,e,f,g){if(200<=c&&299>=c&&202!=c||304==c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"],originalRequest:f};f=null;try{f=Zb(b)}catch(h){}throw new V(401==c||403==c?2:1,1,1001,d,c,f,a,g,e||d);};function Xz(){} -function Yz(a,b,c,d,e,f){var g=new Zz;fh(b.headers).forEach(function(m,n){g.append(n,m)});var h=new $z,k={Bi:!1,Tj:!1};a=aA(a,b,c,{body:b.body||void 0,headers:g,method:b.method,signal:h.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},k,d,e,b.streamDataCallback,f.minBytesForProgressEvents||0);a=new Ig(a,function(){k.Bi=!0;h.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var l=new yf(function(){k.Tj=!0;h.abort()});l.X(b/1E3);a.finally(function(){l.stop()})}return a} -function aA(a,b,c,d,e,f,g,h,k){var l,m,n,q,r,t,w,v,y,z,A,B,D,G,C;return Q(function(E){switch(E.g){case 1:return l=bA,m=cA,q=new ArrayBuffer(0),t=r=0,w={},v=Date.now(),ta(E,2),F(E,l(a,d),4);case 4:n=E.h;w=dA(n.headers);g(w);if("HEAD"==d.method){E.A(5);break}z=(y=n.headers.get("Content-Length"))?parseInt(y,10):0;if(!n.body)return F(E,n.arrayBuffer(),9);A=n.clone().body.getReader();B=function(I){function K(){var J,L,M,O;return Q(function(N){switch(N.g){case 1:return ta(N,2),F(N,A.read(),4);case 4:J= -N.h;wa(N,3);break;case 2:return xa(N),N.return();case 3:if(J.done){N.A(5);break}r+=J.value.byteLength;if(!h){N.A(5);break}return F(N,h(J.value),5);case 5:L=Date.now();M=r-t;if(100=k||J.done)O=J.done?0:z-r,f(L-v,M,O),t=r,v=L;J.done?I.close():(I.enqueue(J.value),K());H(N)}})}K()};new m({start:B});return F(E,n.arrayBuffer(),8);case 8:q=E.h;E.A(5);break;case 9:q=E.h,D=Date.now(),f(D-v,q.byteLength,0);case 5:b.headers.Range&&(G=b.headers.Range.replace("bytes=","").split("-").filter(function(I){return I}).map(function(I){return parseInt(I, -10)}),2==G.length&&q.byteLength!=G[1]-G[0]+1&&ab("Payload length does not match range requested bytes",b,n));wa(E,3);break;case 2:C=xa(E);if(e.Bi)throw new V(1,1,7001,a,c);if(e.Tj)throw new V(1,1,1003,a,c);throw new V(1,1,1002,a,C,c);case 3:return E.return(Wz(w,q,n.status,a,n.url,b,c))}})}function dA(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b} -function eA(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||"polyfill"in window.fetch||!window.AbortController)}S("shaka.net.HttpFetchPlugin",Xz);Xz.isSupported=eA;Xz.parse=Yz;var bA=window.fetch,$z=window.AbortController,cA=window.ReadableStream,Zz=window.Headers;eA()&&(Sg("http",Yz,2,!0),Sg("https",Yz,2,!0),Sg("blob",Yz,2,!0));function fA(){} -function gA(a,b,c,d,e,f){var g=new hA,h=Date.now(),k=0,l=new Promise(function(m,n){g.open(b.method,a,!0);g.responseType="arraybuffer";g.timeout=b.retryParameters.timeout;g.withCredentials=b.allowCrossSiteCredentials;g.onabort=function(){n(new V(1,1,7001,a,c))};var q=!1;g.onreadystatechange=function(){if(2==g.readyState&&!q){var t=iA(g);e(t);q=!0}};g.onload=function(t){var w=iA(g),v=g.response;try{d(Date.now()-h,t.loaded-k,0);var y=Wz(w,v,g.status,a,g.responseURL,b,c);m(y)}catch(z){n(z)}};g.onerror= -function(t){n(new V(1,1,1002,a,t,c))};g.ontimeout=function(){n(new V(1,1,1003,a,c))};g.onprogress=function(t){var w=Date.now(),v=f.minBytesForProgressEvents||0,y=t.loaded-k;if(100=v||t.lengthComputable&&t.loaded==t.total)d(w-h,y,4==g.readyState?0:t.total-t.loaded),k=t.loaded,h=w};for(var r in b.headers)g.setRequestHeader(r.toLowerCase(),b.headers[r]);g.send(b.body)});return new Ig(l,function(){g.abort();return Promise.resolve()})} -function iA(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}S("shaka.net.HttpXHRPlugin",fA);fA.parse=gA;var hA=window.XMLHttpRequest;Sg("http",gA,1,!0);Sg("https",gA,1,!0);Sg("blob",gA,1,!0);function jA(a,b,c,d,e){this.g=a;this.i=b;this.groupId=c;this.h=d;this.j=e}function kA(a){var b=a.cc(!1);return b?gc(b):a.S().map(function(c){return"{"+encodeURI(c.split("#xywh=")[0])+"}"}).join("")+":"+a.startByte+":"+a.endByte}function lA(a,b){return ym(a.g.S(),a.g.startByte,a.g.endByte,b.streaming.retryParameters)};function mA(){this.g=this.j=this.i=0;this.h=new Map;this.l=0}function nA(a,b){a.i+=b;var c=a.l;a.l++;a.h.set(c,b);return c}mA.prototype.close=function(a,b){if(this.h.has(a)){var c=this.h.get(a);this.h.delete(a);this.j+=c;this.g+=b}};function oA(a){return 0==a.i?0:a.j/a.i};function pA(a){var b=this;this.u=a;this.i=new Map;this.h=new dh(function(){return qA(b).catch(function(){})});this.j=[];this.s=function(){};this.m=function(){};this.g=new mA;this.l=!1}pA.prototype.destroy=function(){return this.h.destroy()};function rA(a,b,c){a.s=b;a.m=c}function qA(a){a.l=!0;var b=a.j.map(function(c){return c()});a.j=[];return Promise.all(b)} -pA.prototype.queue=function(a,b,c,d,e){var f=this;eh(this.h);var g=(this.i.get(a)||Promise.resolve()).then(function(){var h,k,l,m,n,q,r;return Q(function(t){if(1==t.g)return F(t,sA(f,b),2);h=t.h;if(f.h.g)throw new V(2,9,7001);if(d)for(m in k=Kb(h),l=new vh(k),l.data)n=Number(m),q=l.data[n],r=l.g[n],f.m(q,r);f.g.close(c,h.byteLength);f.s(oA(f.g),f.g.g);return t.return(e(h))})});this.i.set(a,g);return g}; -function tA(a,b,c,d,e,f){eh(a.h);var g=(a.i.get(b)||Promise.resolve()).then(function(){if(a.h.g)throw new V(2,9,7001);if(e){var h=Kb(c);h=new vh(h);for(var k in h.data){var l=Number(k);a.m(h.data[l],h.g[l])}}a.g.close(d,c.byteLength);a.s(oA(a.g),a.g.g);return f(c)});a.i.set(b,g)}function uA(a){return Q(function(b){return 1==b.g?F(b,Promise.all(a.i.values()),2):b.return(a.g.g)})} -function sA(a,b){var c,d,e,f;return Q(function(g){if(1==g.g)return c=bh,d=a.u.request(c,b),e=function(){return d.abort()},a.j.push(e),F(g,d.promise,2);f=g.h;sd(a.j,e);return g.return(f.data)})};function vA(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Hg;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}vA.prototype.abort=function(){var a=this;return Q(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ta(b,2);return F(b,a.g,4)}if(2!=b.g)return wa(b,0);xa(b);H(b)})}; -function wA(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return Q(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return F(g,b(f.key,f.value,f),2)}f.continue();H(g)})}})}vA.prototype.store=function(){return this.h};vA.prototype.promise=function(){return this.g};function xA(a){this.h=a;this.g=[]}xA.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function yA(a,b){return zA(a,b,"readwrite")}function zA(a,b,c){c=a.h.transaction([b],c);var d=new vA(c,b);a.g.push(d);d.promise().then(function(){sd(a.g,d)},function(){sd(a.g,d)});return d};function AA(a,b,c){this.h=new xA(a);this.i=b;this.g=c}p=AA.prototype;p.destroy=function(){return this.h.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return BA(this.i)};p.removeSegments=function(a,b){return CA(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,DA(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Gi(e)}))})};p.addManifests=function(){return BA(this.g)}; -p.updateManifest=function(){return Promise.reject(new V(2,9,9016,"Cannot modify values in "+this.g))};function EA(a,b,c){a=yA(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}p.updateManifestExpiration=function(a,b){var c=yA(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};p.removeManifests=function(a,b){return CA(this,this.g,a,b)}; -p.getManifests=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,DA(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Wd(e)})))})};p.getAllManifests=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=zA(a.h,a.g,"readonly"),c=new Map,F(d,wA(b,function(e,f){var g;return Q(function(h){if(1==h.g)return F(h,a.Wd(f),2);g=h.h;c.set(e,g);H(h)})}),2)):3!=d.g?F(d,b.promise(),3):d.return(c)})};p.Gi=function(a){return a};p.Wd=function(a){return Promise.resolve(a)}; -function BA(a){return Promise.reject(new V(2,9,9011,"Cannot add new value to "+a))}p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=yA(c.h,a);e=d.store();f=[];g=u(b);h=g.next();for(k={};!h.done;k={Lh:void 0},h=g.next())l=h.value,k.Lh=e.add(l),k.Lh.onsuccess=function(n){return function(){f.push(n.Lh.result)}}(k);return F(m,d.promise(),2)}return m.return(f)})}; -function CA(a,b,c,d){a=yA(a.h,b);b=a.store();c=u(c);for(var e=c.next(),f={};!e.done;f={xh:void 0},e=c.next())f.xh=e.value,b.delete(f.xh).onsuccess=function(g){return function(){return d(g.xh)}}(f);return a.promise()} -function DA(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=zA(a.h,b,"readonly");e=d.store();f={};g=[];h=u(c);k=h.next();for(l={};!k.done;l={Vf:void 0,zf:void 0},k=h.next())l.zf=k.value,l.Vf=e.get(l.zf),l.Vf.onsuccess=function(n){return function(){void 0==n.Vf.result&&g.push(n.zf);f[n.zf]=n.Vf.result}}(l);return F(m,d.promise(),2)}if(g.length)throw new V(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function FA(a){this.g=new xA(a)}FA.prototype.destroy=function(){return this.g.destroy()};FA.prototype.getAll=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=zA(a.g,"session-ids","readonly"),c=[],F(d,wA(b,function(e,f){c.push(f)}),2)):3!=d.g?F(d,b.promise(),3):d.return(c)})};FA.prototype.add=function(a){var b=yA(this.g,"session-ids"),c=b.store();a=u(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()}; -FA.prototype.remove=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=yA(b.g,"session-ids"),F(d,wA(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):F(d,c.promise(),0)})};function GA(){this.g=new Map}GA.prototype.destroy=function(){for(var a=[],b=u(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};GA.prototype.init=function(){var a=this;HA.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=u(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)}; -function IA(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ub:d,ib:f},ib:e})})});if(b)return b;throw new V(2,9,9013,"Could not find a cell that supports add-operations");}function JA(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ub:d,ib:f},e)})})} -function KA(a,b,c){a=a.g.get(b);if(!a)throw new V(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new V(2,9,9013,"Could not find cell with name "+c);return b}function LA(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function MA(a){var b=Array.from(a.g.keys());if(!b.length)throw new V(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()} -function NA(a){var b,c,d;return Q(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|b<<3; +b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function aA(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function bA(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""} +function cA(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];e=t(e);for(var g=e.next(),h={};!g.done;h={fg:void 0},g=e.next())h.fg=g.value,d.push(new Aj(h.fg.start,h.fg.end,function(k){return function(){return lc(a.l,[f.replace("{start time}",String(k.fg.ni))])}}(h),0,null,b,0,0,c.mssPrivateData.duration));return d}S("shaka.mss.MssParser",Uz); +var Zz="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),Yz=(new Map).set("CAPT","main").set("SUBT","alternate").set("DESC","main");Ci("application/vnd.ms-sstr+xml",function(){return new Uz});function dA(a,b,c,d,e,f,g){if(200<=c&&299>=c&&202!=c||304==c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"],originalRequest:f};f=null;try{f=Zb(b)}catch(h){}throw new V(401==c||403==c?2:1,1,1001,d,c,f,a,g,e||d);};function eA(){} +function fA(a,b,c,d,e,f){var g=new gA;gh(b.headers).forEach(function(m,n){g.append(n,m)});var h=new hA,k={Ci:!1,Uj:!1};a=iA(a,b,c,{body:b.body||void 0,headers:g,method:b.method,signal:h.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},k,d,e,b.streamDataCallback,f.minBytesForProgressEvents||0);a=new Jg(a,function(){k.Ci=!0;h.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var l=new zf(function(){k.Uj=!0;h.abort()});l.X(b/1E3);a.finally(function(){l.stop()})}return a} +function iA(a,b,c,d,e,f,g,h,k){var l,m,n,q,r,u,w,v,y,z,A,B,D,G,C;return Q(function(E){switch(E.g){case 1:return l=jA,m=kA,q=new ArrayBuffer(0),u=r=0,w={},v=Date.now(),ta(E,2),F(E,l(a,d),4);case 4:n=E.h;w=lA(n.headers);g(w);if("HEAD"==d.method){E.A(5);break}z=(y=n.headers.get("Content-Length"))?parseInt(y,10):0;if(!n.body)return F(E,n.arrayBuffer(),9);A=n.clone().body.getReader();B=function(H){function K(){var J,L,N,O;return Q(function(M){switch(M.g){case 1:return ta(M,2),F(M,A.read(),4);case 4:J= +M.h;wa(M,3);break;case 2:return xa(M),M.return();case 3:if(J.done){M.A(5);break}r+=J.value.byteLength;if(!h){M.A(5);break}return F(M,h(J.value),5);case 5:L=Date.now();N=r-u;if(100=k||J.done)O=J.done?0:z-r,f(L-v,N,O),u=r,v=L;J.done?H.close():(H.enqueue(J.value),K());I(M)}})}K()};new m({start:B});return F(E,n.arrayBuffer(),8);case 8:q=E.h;E.A(5);break;case 9:q=E.h,D=Date.now(),f(D-v,q.byteLength,0);case 5:b.headers.Range&&(G=b.headers.Range.replace("bytes=","").split("-").filter(function(H){return H}).map(function(H){return parseInt(H, +10)}),2==G.length&&q.byteLength!=G[1]-G[0]+1&&ab("Payload length does not match range requested bytes",b,n));wa(E,3);break;case 2:C=xa(E);if(e.Ci)throw new V(1,1,7001,a,c);if(e.Uj)throw new V(1,1,1003,a,c);throw new V(1,1,1002,a,C,c);case 3:return E.return(dA(w,q,n.status,a,n.url,b,c))}})}function lA(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b} +function mA(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||"polyfill"in window.fetch||!window.AbortController)}S("shaka.net.HttpFetchPlugin",eA);eA.isSupported=mA;eA.parse=fA;var jA=window.fetch,hA=window.AbortController,kA=window.ReadableStream,gA=window.Headers;mA()&&(Tg("http",fA,2,!0),Tg("https",fA,2,!0),Tg("blob",fA,2,!0));function nA(){} +function oA(a,b,c,d,e,f){var g=new pA,h=Date.now(),k=0,l=new Promise(function(m,n){g.open(b.method,a,!0);g.responseType="arraybuffer";g.timeout=b.retryParameters.timeout;g.withCredentials=b.allowCrossSiteCredentials;var q={};g.onabort=function(){n(new V(1,1,7001,a,c))};g.onreadystatechange=function(){if(g.readyState===XMLHttpRequest.HEADERS_RECEIVED){var u=g.getAllResponseHeaders().trim().split("\r\n"),w={};u=t(u);for(var v=u.next();!v.done;v=u.next())v=v.value.split(": "),w[v[0].toLowerCase()]=v.slice(1).join(": "); +q=w;e(q)}};g.onload=function(u){var w=g.response;try{d(Date.now()-h,u.loaded-k,0);var v=dA(q,w,g.status,a,g.responseURL,b,c);m(v)}catch(y){n(y)}};g.onerror=function(u){n(new V(1,1,1002,a,u,c))};g.ontimeout=function(){n(new V(1,1,1003,a,c))};g.onprogress=function(u){var w=Date.now(),v=f.minBytesForProgressEvents||0,y=u.loaded-k;if(100=v||u.lengthComputable&&u.loaded==u.total)d(w-h,y,4==g.readyState?0:u.total-u.loaded),k=u.loaded,h=w};for(var r in b.headers)g.setRequestHeader(r.toLowerCase(), +b.headers[r]);g.send(b.body)});return new Jg(l,function(){g.abort();return Promise.resolve()})}S("shaka.net.HttpXHRPlugin",nA);nA.parse=oA;var pA=window.XMLHttpRequest;Tg("http",oA,1,!0);Tg("https",oA,1,!0);Tg("blob",oA,1,!0);function qA(a,b,c,d,e){this.g=a;this.i=b;this.groupId=c;this.h=d;this.j=e}function rA(a){var b=a.cc(!1);return b?gc(b):a.S().map(function(c){return"{"+encodeURI(c.split("#xywh=")[0])+"}"}).join("")+":"+a.startByte+":"+a.endByte}function sA(a,b){return Fm(a.g.S(),a.g.startByte,a.g.endByte,b.streaming.retryParameters)};function tA(){this.g=this.j=this.i=0;this.h=new Map;this.l=0}function uA(a,b){a.i+=b;var c=a.l;a.l++;a.h.set(c,b);return c}tA.prototype.close=function(a,b){if(this.h.has(a)){var c=this.h.get(a);this.h.delete(a);this.j+=c;this.g+=b}};function vA(a){return 0==a.i?0:a.j/a.i};function wA(a){var b=this;this.u=a;this.i=new Map;this.h=new eh(function(){return xA(b).catch(function(){})});this.j=[];this.s=function(){};this.m=function(){};this.g=new tA;this.l=!1}wA.prototype.destroy=function(){return this.h.destroy()};function yA(a,b,c){a.s=b;a.m=c}function xA(a){a.l=!0;var b=a.j.map(function(c){return c()});a.j=[];return Promise.all(b)} +wA.prototype.queue=function(a,b,c,d,e){var f=this;fh(this.h);var g=(this.i.get(a)||Promise.resolve()).then(function(){var h,k,l,m,n,q,r;return Q(function(u){if(1==u.g)return F(u,zA(f,b),2);h=u.h;if(f.h.g)throw new V(2,9,7001);if(d)for(m in k=Kb(h),l=new wh(k),l.data)n=Number(m),q=l.data[n],r=l.g[n],f.m(q,r);f.g.close(c,h.byteLength);f.s(vA(f.g),f.g.g);return u.return(e(h))})});this.i.set(a,g);return g}; +function AA(a,b,c,d,e,f){fh(a.h);var g=(a.i.get(b)||Promise.resolve()).then(function(){if(a.h.g)throw new V(2,9,7001);if(e){var h=Kb(c);h=new wh(h);for(var k in h.data){var l=Number(k);a.m(h.data[l],h.g[l])}}a.g.close(d,c.byteLength);a.s(vA(a.g),a.g.g);return f(c)});a.i.set(b,g)}function BA(a){return Q(function(b){return 1==b.g?F(b,Promise.all(a.i.values()),2):b.return(a.g.g)})} +function zA(a,b){var c,d,e,f;return Q(function(g){if(1==g.g)return c=ch,d=a.u.request(c,b),e=function(){return d.abort()},a.j.push(e),F(g,d.promise,2);f=g.h;sd(a.j,e);return g.return(f.data)})};function CA(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Ig;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}CA.prototype.abort=function(){var a=this;return Q(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ta(b,2);return F(b,a.g,4)}if(2!=b.g)return wa(b,0);xa(b);I(b)})}; +function DA(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return Q(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return F(g,b(f.key,f.value,f),2)}f.continue();I(g)})}})}CA.prototype.store=function(){return this.h};CA.prototype.promise=function(){return this.g};function EA(a){this.h=a;this.g=[]}EA.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function FA(a,b){return GA(a,b,"readwrite")}function GA(a,b,c){c=a.h.transaction([b],c);var d=new CA(c,b);a.g.push(d);d.promise().then(function(){sd(a.g,d)},function(){sd(a.g,d)});return d};function HA(a,b,c){this.h=new EA(a);this.i=b;this.g=c}p=HA.prototype;p.destroy=function(){return this.h.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return IA(this.i)};p.removeSegments=function(a,b){return JA(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,KA(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Hi(e)}))})};p.addManifests=function(){return IA(this.g)}; +p.updateManifest=function(){return Promise.reject(new V(2,9,9016,"Cannot modify values in "+this.g))};function LA(a,b,c){a=FA(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}p.updateManifestExpiration=function(a,b){var c=FA(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};p.removeManifests=function(a,b){return JA(this,this.g,a,b)}; +p.getManifests=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,KA(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Wd(e)})))})};p.getAllManifests=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=GA(a.h,a.g,"readonly"),c=new Map,F(d,DA(b,function(e,f){var g;return Q(function(h){if(1==h.g)return F(h,a.Wd(f),2);g=h.h;c.set(e,g);I(h)})}),2)):3!=d.g?F(d,b.promise(),3):d.return(c)})};p.Hi=function(a){return a};p.Wd=function(a){return Promise.resolve(a)}; +function IA(a){return Promise.reject(new V(2,9,9011,"Cannot add new value to "+a))}p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=FA(c.h,a);e=d.store();f=[];g=t(b);h=g.next();for(k={};!h.done;k={Mh:void 0},h=g.next())l=h.value,k.Mh=e.add(l),k.Mh.onsuccess=function(n){return function(){f.push(n.Mh.result)}}(k);return F(m,d.promise(),2)}return m.return(f)})}; +function JA(a,b,c,d){a=FA(a.h,b);b=a.store();c=t(c);for(var e=c.next(),f={};!e.done;f={yh:void 0},e=c.next())f.yh=e.value,b.delete(f.yh).onsuccess=function(g){return function(){return d(g.yh)}}(f);return a.promise()} +function KA(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=GA(a.h,b,"readonly");e=d.store();f={};g=[];h=t(c);k=h.next();for(l={};!k.done;l={Wf:void 0,zf:void 0},k=h.next())l.zf=k.value,l.Wf=e.get(l.zf),l.Wf.onsuccess=function(n){return function(){void 0==n.Wf.result&&g.push(n.zf);f[n.zf]=n.Wf.result}}(l);return F(m,d.promise(),2)}if(g.length)throw new V(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function MA(a){this.g=new EA(a)}MA.prototype.destroy=function(){return this.g.destroy()};MA.prototype.getAll=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=GA(a.g,"session-ids","readonly"),c=[],F(d,DA(b,function(e,f){c.push(f)}),2)):3!=d.g?F(d,b.promise(),3):d.return(c)})};MA.prototype.add=function(a){var b=FA(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()}; +MA.prototype.remove=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=FA(b.g,"session-ids"),F(d,DA(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):F(d,c.promise(),0)})};function NA(){this.g=new Map}NA.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};NA.prototype.init=function(){var a=this;OA.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)}; +function PA(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ub:d,ib:f},ib:e})})});if(b)return b;throw new V(2,9,9013,"Could not find a cell that supports add-operations");}function QA(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ub:d,ib:f},e)})})} +function RA(a,b,c){a=a.g.get(b);if(!a)throw new V(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new V(2,9,9013,"Could not find cell with name "+c);return b}function SA(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function TA(a){var b=Array.from(a.g.keys());if(!b.length)throw new V(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()} +function UA(a){var b,c,d;return Q(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0b;if(!k||!l){m.A(3);break}return F(m,f.updateManifestExpiration(d.key(),b),3);case 3:return ya(m),F(m,e.destroy(),10);case 10:Ba(m,0);break;case 2:xa(m),m.A(3)}})}; -p.onInitialVariantChosen=function(){};p.banLocation=function(){};p.setMediaElement=function(){};Bi("application/x-offline-manifest",function(){return new hB});function iB(){}function jB(a,b){var c=aB(a);c&&"manifest"==c.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"},originalRequest:b},a=Lg(a)):a=c&&"segment"==c.g?kB(c.key(),c,b):Jg(new V(2,1,9004,a));return a} -function kB(a,b,c){var d=new GA;return Lg(void 0).bb(function(){return d.init()}).bb(function(){return KA(d,b.Ub(),b.ib())}).bb(function(e){return e.getSegments([b.key()])}).bb(function(e){return{uri:b,data:e[0].data,headers:{},originalRequest:c}}).finally(function(){return d.destroy()})}S("shaka.offline.OfflineScheme",iB);iB.plugin=jB;Sg("offline",jB);function lB(a,b,c){var d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:d=[];for(var m=[],n=u(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var r=!1,t=u(m),w=t.next();!w.done;w=t.next())if(w=w.value,mB(w.info,q)){w.sessionIds.push(q.sessionId);r=!0;break}r||m.push({info:q,sessionIds:[q.sessionId]})}e=u(m);f=e.next();case 2:if(f.done){l.A(4);break}g=f.value;h=nB(a,b,g);return F(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.A(2);break;case 4:return l.return(d)}})} -function nB(a,b,c){var d,e;return Q(function(f){switch(f.g){case 1:return d=new xh({uc:b,onError:function(){},Kf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ta(f,2),d.configure(a),F(f,Fh(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:wa(f,3);break;case 2:return xa(f),F(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],F(f,Promise.all(c.sessionIds.map(function(g){return Q(function(h){if(1== -h.g)return ta(h,2),F(h,Rh(d,g),4);if(2!=h.g)return e.push(g),wa(h,0);xa(h);H(h)})})),6);case 6:return F(f,d.destroy(),7);case 7:return f.return(e)}})}function mB(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&td(a.audioCapabilities,b.audioCapabilities,c)&&td(a.videoCapabilities,b.videoCapabilities,c)};function oB(a,b,c){var d=b.presentationTimeline.getDuration();b=pB(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function qB(a,b){var c=cB(new bB(a.Ub(),a.ib()),b),d=b.appMetadata||{};c=pB(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}} -function pB(a){var b=[],c=hg(a.variants);c=u(c);for(var d=c.next();!d.done;d=c.next())b.push(Zf(d.value));a=u(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push($f(c.value));return b};function rB(){this.g=new Map}function sB(a,b){var c=b.audio,d=b.video;c&&!d&&a.g.set(c.id,c.bandwidth||b.bandwidth);!c&&d&&a.g.set(d.id,d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g.set(c.id,e);a.g.set(d.id,f)}}function tB(a,b){a.g.set(b.id,b.bandwidth||2048)}function uB(a,b){a=a.g.get(b);null==a&&(a=0);return a};function vB(a){var b=this;if(a&&a.constructor!=X)throw new V(2,9,9008);this.g=this.h=null;a?(this.h=a.g,this.g=a.Hb()):(this.h=In(),this.g=new Rg,this.g.configure(this.h.networking));this.i=[];this.l=[];var c=!a;this.j=new dh(function(){var d,e,f,g,h;return Q(function(k){switch(k.g){case 1:return F(k,Promise.all(b.l.map(function(l){return qA(l)})),2);case 2:d=function(){};e=[];f=u(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return F(k,Promise.all(e),3);case 3:if(!c){k.A(4); -break}return F(k,b.g.destroy(),4);case 4:b.h=null,b.g=null,H(k)}})});this.m=1E9}function wB(){if(Ei(Rb()))a:{var a=u(HA.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}p=vB.prototype;p.destroy=function(){return this.j.destroy()};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=on(a,b));return Nn(this.h,a)};p.getConfiguration=function(){var a=In();Nn(a,this.h,In());return a};p.Hb=function(){return this.g}; -p.store=function(a,b,c,d,e){var f=this,g=this.getConfiguration(),h=new pA(this.g);this.l.push(h);b=xB(this,a,b||{},d||[],e||[],function(){var k;return Q(function(l){if(1==l.g)return c?l.A(2):F(l,to(a,f.g,g.manifest.retryParameters),3);2!=l.g&&(c=l.h);k=Gi(a,c||null);return l.return(k())})},g,h);b=new Ig(b,function(){return qA(h)});b.finally(function(){sd(f.l,h)});return yB(this,b)}; -function xB(a,b,c,d,e,f,g,h){var k,l,m,n,q,r,t,w,v,y,z,A,B,D,G,C,E,I,K,J,L,M,O,N;return Q(function(P){switch(P.g){case 1:return zB(),l=k=null,m=new GA,r=q=n=null,ta(P,2,3),F(P,f(),5);case 5:return k=P.h,F(P,AB(a,b,k,g),6);case 6:t=P.h;BB(a);w=!t.presentationTimeline.T()&&!t.presentationTimeline.Zc();if(!w)throw new V(2,9,9005,b);v=u(d);y=v.next();case 7:if(y.done){P.A(9);break}z=y.value;return F(P,CB(a,z,t),10);case 10:A=P.h;t.imageStreams.push(A);BB(a);y=v.next();P.A(7);break;case 9:B=u(e),D=B.next(); -case 11:if(D.done)return Hh(g.drm.clearKeys,t.variants),E=t.variants.some(function(R){if(R.audio)for(var T=u(R.audio.drmInfos),ca=T.next();!ca.done;ca=T.next())if(ca.value.licenseServerUri.startsWith("data:"))return!0;if(R.video)for(R=u(R.video.drmInfos),T=R.next();!T.done;T=R.next())if(T.value.licenseServerUri.startsWith("data:"))return!0;return!1}),I=g.offline.usePersistentLicense,E&&(I=!1),F(P,a.sd(t,function(R){r=r||R},g,I),15);G=D.value;return F(P,DB(a,t,G.uri,G.language,G.kind,G.mime,G.codecs), -14);case 14:C=P.h;t.textStreams.push(C);BB(a);D=B.next();P.A(11);break;case 15:l=P.h;BB(a);if(r)throw r;return F(P,EB(t,l,g,I),16);case 16:return F(P,m.init(),17);case 17:return BB(a),F(P,IA(m),18);case 18:return n=P.h,BB(a),K=FB(l,t,b,c,g,h,I),J=K.Dl,L=K.ji,F(P,n.ib.addManifests([J]),19);case 19:M=P.h;BB(a);q=M[0];BB(a);if(r)throw r;return F(P,GB(a,L,q,J,h,g,n.ib,t,l,I),20);case 20:return BB(a),HB(t,J,l,I),F(P,n.ib.updateManifest(q,J),21);case 21:return BB(a),O=new $A("manifest",n.path.Ub,n.path.ib, -q),P.return(qB(O,J));case 3:return ya(P),F(P,m.destroy(),22);case 22:if(!k){P.A(23);break}return F(P,k.stop(),23);case 23:if(!l){P.A(25);break}return F(P,l.destroy(),25);case 25:Ba(P,0);break;case 2:N=xa(P);if(null==q){P.A(27);break}return F(P,IB(q),27);case 27:throw r||N;}})} -function GB(a,b,c,d,e,f,g,h,k,l){var m,n,q,r,t,w,v,y,z,A,B;return Q(function(D){switch(D.g){case 1:m={};n=0;q=function(){if(a.j.g||e.l)throw new V(2,9,7001);};r=function(G,C){var E,I,K,J,L,M,O,N,P;return Q(function(R){if(1==R.g){E=u(G);I=E.next();for(K={};!I.done;K={nc:void 0},I=E.next())K.nc=I.value,q(),J=lA(K.nc,f),L=K.nc.i,M=K.nc.h,O=function(T){return function(ca){var Y,Ma,Na,Ea;return Q(function(va){switch(va.g){case 1:Y=T.nc.g;Ma=Y.cc(!1);if(!Y.aesKey||Ma){va.A(2);break}return F(va,xm(ca,Y.aesKey, -T.nc.j),3);case 3:ca=va.h;case 2:return Na=kA(Y),F(va,g.addSegments([{data:ca}]),4);case 4:Ea=va.h,q(),m[Na]=Ea[0],n+=ca.byteLength,H(va)}})}}(K),N=K.nc.g,(P=N.cc(!1))?tA(e,K.nc.groupId,P,L,M,O):e.queue(K.nc.groupId,J,L,M,O);return F(R,uA(e),2)}q();if(!C||e.l)return R.A(0);HB(h,d,k,l);return F(R,g.updateManifest(c,d),0)})};t=!1;ta(D,2);if(!JB(h)||!t||KB(h)){D.A(4);break}return F(D,r(b.filter(function(G){return G.h}),!0),5);case 5:return q(),b=b.filter(function(G){return!G.h}),w=m,v=n,m={},n=0,F(D, -LB(g,c,d,w,v,function(){return BB(a)}),6);case 6:q();case 4:if(t){D.A(7);break}return F(D,r(b,!1),8);case 8:return q(),y=m,z=n,m={},n=0,F(D,LB(g,c,d,y,z,function(){return q()}),9);case 9:q();case 7:wa(D,0);break;case 2:return A=xa(D),B=Object.values(m),F(D,g.removeSegments(B,function(){}),10);case 10:throw A;}})} -function IB(a){var b,c,d,e;return Q(function(f){switch(f.g){case 1:return b=new GA,F(f,b.init(),2);case 2:return F(f,IA(b),3);case 3:return c=f.h,d=new $A("manifest",c.path.Ub,c.path.ib,a),F(f,b.destroy(),4);case 4:return e=new vB,F(f,e.remove(d.toString()),0)}})} -function LB(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,t,w,v;return Q(function(y){switch(y.g){case 1:g=!1;ta(y,2);h=!0;k=u(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=u(m.segments),q=n.next();!q.done;q=n.next())r=q.value,t=r.pendingSegmentRefId?d[r.pendingSegmentRefId]:null,null!=t&&(r.dataKey=t,r.pendingSegmentRefId=void 0),t=r.pendingInitSegmentRefId?d[r.pendingInitSegmentRefId]:null,null!=t&&(r.initSegmentKey=t,r.pendingInitSegmentRefId=void 0),r.pendingSegmentRefId&&(h=!1),r.pendingInitSegmentRefId&& -(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return F(y,a.updateManifest(b,c),4);case 4:g=!0;f();wa(y,0);break;case 2:return w=xa(y),F(y,IB(b),5);case 5:if(g){y.A(6);break}v=Object.values(d);return F(y,a.removeSegments(v,function(){}),6);case 6:throw w;}})} -function EB(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,t,w,v,y,z,A,B,D,G,C,E,I,K,J,L,M,O,N,P,R;return Q(function(T){switch(T.g){case 1:return e={width:Infinity,height:Infinity},Gf(a,c.restrictions,e),F(T,Jf(b,a,d,c.drm.preferredKeySystems,c.drm.keySystemsMapping),2);case 2:f=[];g=c.preferredDecodingAttributes;h=c.preferredVideoCodecs;k=c.preferredAudioCodecs;l=c.preferredTextFormats;Ef(a,h,k,g,l);m=u(a.variants);for(n=m.next();!n.done;n=m.next())q=n.value,f.push(Zf(q));r=u(a.textStreams);for(t=r.next();!t.done;t= -r.next())w=t.value,f.push($f(w));v=u(a.imageStreams);for(y=v.next();!y.done;y=v.next())z=y.value,f.push(ag(z));return F(T,c.offline.trackSelectionCallback(f),3);case 3:A=T.h;B=a.presentationTimeline.getDuration();D=0;G=u(A);for(C=G.next();!C.done;C=G.next())E=C.value,I=E.bandwidth*B/8,D+=I;ta(T,4);return F(T,c.offline.downloadSizeCallback(D),6);case 6:K=T.h;if(!K)throw new V(2,9,9014);wa(T,5);break;case 4:J=xa(T);if(J instanceof V)throw J;throw new V(2,9,9015);case 5:L=new Set;M=new Set;O=new Set; -N=u(A);for(P=N.next();!P.done;P=N.next())R=P.value,"variant"==R.type&&L.add(R.id),"text"==R.type&&M.add(R.id),"image"==R.type&&O.add(R.id);a.variants=a.variants.filter(function(ca){return L.has(ca.id)});a.textStreams=a.textStreams.filter(function(ca){return M.has(ca.id)});a.imageStreams=a.imageStreams.filter(function(ca){return O.has(ca.id)});MB(a);H(T)}})} -function FB(a,b,c,d,e,f,g){var h=oB(c,b,d),k=e.offline.progressCallback;rA(f,function(t,w){h.size=w;k(h,t)},function(t,w){l&&g&&m==w&&Nh(a,"cenc",t)});var l=JB(b)&&!KB(b),m=null;l&&(m=NB.get(a.h.keySystem));for(var n=new rB,q=u(b.textStreams),r=q.next();!r.done;r=q.next())n.g.set(r.value.id,52);q=u(b.imageStreams);for(r=q.next();!r.done;r=q.next())tB(n,r.value);q=u(b.variants);for(r=q.next();!r.done;r=q.next())sB(n,r.value);f=OB(f,n,b,e);e=f.streams;f=f.ji;(n=a.h)&&g&&(n.initData=[]);return{Dl:{creationTime:Date.now(), -originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.be(),streams:e,sessionIds:g?Wh(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},ji:f}}function JB(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})} -function KB(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function HB(a,b,c,d){b.expiration=c.be();c=Wh(c);b.sessionIds=d?c:[];if(JB(a)&&d&&!c.length)throw new V(2,9,9007);}p.remove=function(a){return PB(this,QB(this,a))}; -function QB(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:zB();c=aB(b);if(null==c||"manifest"!=c.g)throw new V(2,9,9004,b);d=c;e=new GA;ua(k,2);return F(k,e.init(),4);case 4:return F(k,KA(e,d.Ub(),d.ib()),5);case 5:return f=k.h,F(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],F(k,Promise.all([RB(a,h,e),SB(f,d,h)]),2);case 2:return ya(k),F(k,e.destroy(),8);case 8:Ba(k,0)}})} -function TB(a,b){for(var c=[],d=u(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:af(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:af(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function RB(a,b,c){return Q(function(d){return F(d,UB(a.g,a.h.drm,c,b),0)})} -function SB(a,b,c){function d(){}var e=VB(c);qB(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.Wl=function(){return PB(this,WB(this))}; -function WB(a){var b,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return zB(),b=a.g,c=a.h.drm,d=new GA,e=!1,ua(n,2),F(n,d.init(),4);case 4:f=[],LA(d,function(q){return f.push(q)}),g=u(f),h=g.next();case 5:if(h.done){n.A(2);break}k=h.value;return F(n,k.getAll(),8);case 8:return l=n.h,F(n,lB(c,b,l),9);case 9:return m=n.h,F(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.A(5);break;case 2:return ya(n),F(n,d.destroy(),11);case 11:Ba(n,3);break;case 3:return n.return(!e)}})} -p.list=function(){return PB(this,XB())};function XB(){var a,b,c;return Q(function(d){switch(d.g){case 1:return zB(),a=[],b=new GA,ua(d,2),F(d,b.init(),4);case 4:return c=Promise.resolve(),JA(b,function(e,f){c=c.then(function(){var g;return Q(function(h){if(1==h.g)return F(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=qB(new $A("manifest",e.Ub,e.ib,l),k);a.push(k)});H(h)})})}),F(d,c,2);case 2:return ya(d),F(d,b.destroy(),6);case 6:Ba(d,3);break;case 3:return d.return(a)}})} -function AB(a,b,c,d){var e,f,g,h,k;return Q(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate},onMetadata:function(){},disableStream:function(){}, -addFont:function(){}},c.configure(d.manifest),BB(a),F(l,c.start(b,g),2);if(3!=l.g)return h=l.h,BB(a),k=YB(h),F(l,Promise.all(kb(k,function(m){return m.createSegmentIndex()})),3);BB(a);if(e)throw e;return l.return(h)})} -function CB(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t,w,v,y;return Q(function(z){switch(z.g){case 1:return F(z,ZB(a,b),2);case 2:d=z.h;if("text/vtt"!=d)throw new V(1,2,2017,b);return F(z,$B(b,a.g,a.h.streaming.retryParameters),3);case 3:e=z.h;f=pf(d);if(!f)throw new V(2,2,2014,d);g=f();h={periodStart:0,segmentStart:0,segmentEnd:c.presentationTimeline.getDuration(),vttOffset:0};k=Kb(e);l=g.parseMedia(k,h,b,[]);m=[];n=u(l);q=n.next();for(r={};!q.done;r={lg:void 0,ud:void 0},q=n.next())r.ud=q.value,r.lg=null, -t=function(A){return function(){null==A.lg&&(A.lg=lc([b],[A.ud.payload]));return A.lg||[]}}(r),w=new zj(r.ud.startTime,r.ud.endTime,t,0,null,null,0,0,Infinity),r.ud.payload.includes("#xywh")&&(v=r.ud.payload.split("#xywh=")[1].split(","),4===v.length&&w.cg({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)})),m.push(w);y=d;if(!m.length){z.A(4);break}return F(z,to(m[0].S()[0],a.g,a.h.manifest.retryParameters),5);case 5:y=z.h;case 4:return z.return({id:a.m++, -originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Ol(m),mimeType:y||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"image",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([af(y|| +p.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:return d=c.g,e=new NA,ta(m,2,3),F(m,e.init(),5);case 5:return F(m,RA(e,d.Ub(),d.ib()),6);case 6:return f=m.h,F(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.A(3);break}return F(m,f.updateManifestExpiration(d.key(),b),3);case 3:return ya(m),F(m,e.destroy(),10);case 10:Ba(m,0);break;case 2:xa(m),m.A(3)}})}; +p.onInitialVariantChosen=function(){};p.banLocation=function(){};p.setMediaElement=function(){};Ci("application/x-offline-manifest",function(){return new oB});function pB(){}function qB(a,b){var c=hB(a);c&&"manifest"==c.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"},originalRequest:b},a=Mg(a)):a=c&&"segment"==c.g?rB(c.key(),c,b):Kg(new V(2,1,9004,a));return a} +function rB(a,b,c){var d=new NA;return Mg(void 0).ab(function(){return d.init()}).ab(function(){return RA(d,b.Ub(),b.ib())}).ab(function(e){return e.getSegments([b.key()])}).ab(function(e){return{uri:b,data:e[0].data,headers:{},originalRequest:c}}).finally(function(){return d.destroy()})}S("shaka.offline.OfflineScheme",pB);pB.plugin=qB;Tg("offline",qB);function sB(a,b,c){var d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var r=!1,u=t(m),w=u.next();!w.done;w=u.next())if(w=w.value,tB(w.info,q)){w.sessionIds.push(q.sessionId);r=!0;break}r||m.push({info:q,sessionIds:[q.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.A(4);break}g=f.value;h=uB(a,b,g);return F(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.A(2);break;case 4:return l.return(d)}})} +function uB(a,b,c){var d,e;return Q(function(f){switch(f.g){case 1:return d=new yh({xc:b,onError:function(){},Lf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ta(f,2),d.configure(a),F(f,Gh(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:wa(f,3);break;case 2:return xa(f),F(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],F(f,Promise.all(c.sessionIds.map(function(g){return Q(function(h){if(1== +h.g)return ta(h,2),F(h,Sh(d,g),4);if(2!=h.g)return e.push(g),wa(h,0);xa(h);I(h)})})),6);case 6:return F(f,d.destroy(),7);case 7:return f.return(e)}})}function tB(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&td(a.audioCapabilities,b.audioCapabilities,c)&&td(a.videoCapabilities,b.videoCapabilities,c)};function vB(a,b,c){var d=b.presentationTimeline.getDuration();b=wB(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function xB(a,b){var c=jB(new iB(a.Ub(),a.ib()),b),d=b.appMetadata||{};c=wB(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}} +function wB(a){var b=[],c=ig(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push($f(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(ag(c.value));return b};function yB(){this.g=new Map}function zB(a,b){var c=b.audio,d=b.video;c&&!d&&a.g.set(c.id,c.bandwidth||b.bandwidth);!c&&d&&a.g.set(d.id,d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g.set(c.id,e);a.g.set(d.id,f)}}function AB(a,b){a.g.set(b.id,b.bandwidth||2048)}function BB(a,b){a=a.g.get(b);null==a&&(a=0);return a};function CB(a){var b=this;if(a&&a.constructor!=X)throw new V(2,9,9008);this.g=this.h=null;a?(this.h=a.g,this.g=a.Ib()):(this.h=Qn(),this.g=new Sg,this.g.configure(this.h.networking));this.i=[];this.l=[];var c=!a;this.j=new eh(function(){var d,e,f,g,h;return Q(function(k){switch(k.g){case 1:return F(k,Promise.all(b.l.map(function(l){return xA(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return F(k,Promise.all(e),3);case 3:if(!c){k.A(4); +break}return F(k,b.g.destroy(),4);case 4:b.h=null,b.g=null,I(k)}})});this.m=1E9}function DB(){if(Fi(Rb()))a:{var a=t(OA.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}p=CB.prototype;p.destroy=function(){return this.j.destroy()};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=wn(a,b));return Vn(this.h,a)};p.getConfiguration=function(){var a=Qn();Vn(a,this.h,Qn());return a};p.Ib=function(){return this.g}; +p.store=function(a,b,c,d,e){var f=this,g=this.getConfiguration(),h=new wA(this.g);this.l.push(h);b=EB(this,a,b||{},d||[],e||[],function(){var k;return Q(function(l){if(1==l.g)return c?l.A(2):F(l,Bo(a,f.g,g.manifest.retryParameters),3);2!=l.g&&(c=l.h);k=Hi(a,c||null);return l.return(k())})},g,h);b=new Jg(b,function(){return xA(h)});b.finally(function(){sd(f.l,h)});return FB(this,b)}; +function EB(a,b,c,d,e,f,g,h){var k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M;return Q(function(P){switch(P.g){case 1:return GB(),l=k=null,m=new NA,r=q=n=null,ta(P,2,3),F(P,f(),5);case 5:return k=P.h,F(P,HB(a,b,k,g),6);case 6:u=P.h;IB(a);w=!u.presentationTimeline.T()&&!u.presentationTimeline.fd();if(!w)throw new V(2,9,9005,b);v=t(d);y=v.next();case 7:if(y.done){P.A(9);break}z=y.value;return F(P,JB(a,z,u),10);case 10:A=P.h;u.imageStreams.push(A);IB(a);y=v.next();P.A(7);break;case 9:B=t(e),D=B.next(); +case 11:if(D.done)return Ih(g.drm.clearKeys,u.variants),E=u.variants.some(function(R){if(R.audio)for(var T=t(R.audio.drmInfos),ca=T.next();!ca.done;ca=T.next())if(ca.value.licenseServerUri.startsWith("data:"))return!0;if(R.video)for(R=t(R.video.drmInfos),T=R.next();!T.done;T=R.next())if(T.value.licenseServerUri.startsWith("data:"))return!0;return!1}),H=g.offline.usePersistentLicense,E&&(H=!1),F(P,a.vd(u,function(R){r=r||R},g,H),15);G=D.value;return F(P,KB(a,u,G.uri,G.language,G.kind,G.mime,G.codecs), +14);case 14:C=P.h;u.textStreams.push(C);IB(a);D=B.next();P.A(11);break;case 15:l=P.h;IB(a);if(r)throw r;return F(P,LB(u,l,g,H),16);case 16:return F(P,m.init(),17);case 17:return IB(a),F(P,PA(m),18);case 18:return n=P.h,IB(a),K=MB(l,u,b,c,g,h,H),J=K.El,L=K.ki,F(P,n.ib.addManifests([J]),19);case 19:N=P.h;IB(a);q=N[0];IB(a);if(r)throw r;return F(P,NB(a,L,q,J,h,g,n.ib,u,l,H),20);case 20:return IB(a),OB(u,J,l,H),F(P,n.ib.updateManifest(q,J),21);case 21:return IB(a),O=new gB("manifest",n.path.Ub,n.path.ib, +q),P.return(xB(O,J));case 3:return ya(P),F(P,m.destroy(),22);case 22:if(!k){P.A(23);break}return F(P,k.stop(),23);case 23:if(!l){P.A(25);break}return F(P,l.destroy(),25);case 25:Ba(P,0);break;case 2:M=xa(P);if(null==q){P.A(27);break}return F(P,PB(q),27);case 27:throw r||M;}})} +function NB(a,b,c,d,e,f,g,h,k,l){var m,n,q,r,u,w,v,y,z,A,B;return Q(function(D){switch(D.g){case 1:m={};n=0;q=function(){if(a.j.g||e.l)throw new V(2,9,7001);};r=function(G,C){var E,H,K,J,L,N,O,M,P;return Q(function(R){if(1==R.g){E=t(G);H=E.next();for(K={};!H.done;K={pc:void 0},H=E.next())K.pc=H.value,q(),J=sA(K.pc,f),L=K.pc.i,N=K.pc.h,O=function(T){return function(ca){var Y,Ma,Na,Ea;return Q(function(va){switch(va.g){case 1:Y=T.pc.g;Ma=Y.cc(!1);if(!Y.aesKey||Ma){va.A(2);break}return F(va,Em(ca,Y.aesKey, +T.pc.j),3);case 3:ca=va.h;case 2:return Na=rA(Y),F(va,g.addSegments([{data:ca}]),4);case 4:Ea=va.h,q(),m[Na]=Ea[0],n+=ca.byteLength,I(va)}})}}(K),M=K.pc.g,(P=M.cc(!1))?AA(e,K.pc.groupId,P,L,N,O):e.queue(K.pc.groupId,J,L,N,O);return F(R,BA(e),2)}q();if(!C||e.l)return R.A(0);OB(h,d,k,l);return F(R,g.updateManifest(c,d),0)})};u=!1;ta(D,2);if(!QB(h)||!u||RB(h)){D.A(4);break}return F(D,r(b.filter(function(G){return G.h}),!0),5);case 5:return q(),b=b.filter(function(G){return!G.h}),w=m,v=n,m={},n=0,F(D, +SB(g,c,d,w,v,function(){return IB(a)}),6);case 6:q();case 4:if(u){D.A(7);break}return F(D,r(b,!1),8);case 8:return q(),y=m,z=n,m={},n=0,F(D,SB(g,c,d,y,z,function(){return q()}),9);case 9:q();case 7:wa(D,0);break;case 2:return A=xa(D),B=Object.values(m),F(D,g.removeSegments(B,function(){}),10);case 10:throw A;}})} +function PB(a){var b,c,d,e;return Q(function(f){switch(f.g){case 1:return b=new NA,F(f,b.init(),2);case 2:return F(f,PA(b),3);case 3:return c=f.h,d=new gB("manifest",c.path.Ub,c.path.ib,a),F(f,b.destroy(),4);case 4:return e=new CB,F(f,e.remove(d.toString()),0)}})} +function SB(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,u,w,v;return Q(function(y){switch(y.g){case 1:g=!1;ta(y,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),q=n.next();!q.done;q=n.next())r=q.value,u=r.pendingSegmentRefId?d[r.pendingSegmentRefId]:null,null!=u&&(r.dataKey=u,r.pendingSegmentRefId=void 0),u=r.pendingInitSegmentRefId?d[r.pendingInitSegmentRefId]:null,null!=u&&(r.initSegmentKey=u,r.pendingInitSegmentRefId=void 0),r.pendingSegmentRefId&&(h=!1),r.pendingInitSegmentRefId&& +(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return F(y,a.updateManifest(b,c),4);case 4:g=!0;f();wa(y,0);break;case 2:return w=xa(y),F(y,PB(b),5);case 5:if(g){y.A(6);break}v=Object.values(d);return F(y,a.removeSegments(v,function(){}),6);case 6:throw w;}})} +function LB(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R;return Q(function(T){switch(T.g){case 1:return e={width:Infinity,height:Infinity},Hf(a,c.restrictions,e),F(T,Kf(b,a,d,c.drm.preferredKeySystems,c.drm.keySystemsMapping),2);case 2:f=[];g=c.preferredDecodingAttributes;h=c.preferredVideoCodecs;k=c.preferredAudioCodecs;l=c.preferredTextFormats;Ff(a,h,k,g,l);m=t(a.variants);for(n=m.next();!n.done;n=m.next())q=n.value,f.push($f(q));r=t(a.textStreams);for(u=r.next();!u.done;u= +r.next())w=u.value,f.push(ag(w));v=t(a.imageStreams);for(y=v.next();!y.done;y=v.next())z=y.value,f.push(bg(z));return F(T,c.offline.trackSelectionCallback(f),3);case 3:A=T.h;B=a.presentationTimeline.getDuration();D=0;G=t(A);for(C=G.next();!C.done;C=G.next())E=C.value,H=E.bandwidth*B/8,D+=H;ta(T,4);return F(T,c.offline.downloadSizeCallback(D),6);case 6:K=T.h;if(!K)throw new V(2,9,9014);wa(T,5);break;case 4:J=xa(T);if(J instanceof V)throw J;throw new V(2,9,9015);case 5:L=new Set;N=new Set;O=new Set; +M=t(A);for(P=M.next();!P.done;P=M.next())R=P.value,"variant"==R.type&&L.add(R.id),"text"==R.type&&N.add(R.id),"image"==R.type&&O.add(R.id);a.variants=a.variants.filter(function(ca){return L.has(ca.id)});a.textStreams=a.textStreams.filter(function(ca){return N.has(ca.id)});a.imageStreams=a.imageStreams.filter(function(ca){return O.has(ca.id)});TB(a);I(T)}})} +function MB(a,b,c,d,e,f,g){var h=vB(c,b,d),k=e.offline.progressCallback;yA(f,function(u,w){h.size=w;k(h,u)},function(u,w){l&&g&&m==w&&Oh(a,"cenc",u)});var l=QB(b)&&!RB(b),m=null;l&&(m=UB.get(a.g.keySystem));for(var n=new yB,q=t(b.textStreams),r=q.next();!r.done;r=q.next())n.g.set(r.value.id,52);q=t(b.imageStreams);for(r=q.next();!r.done;r=q.next())AB(n,r.value);q=t(b.variants);for(r=q.next();!r.done;r=q.next())zB(n,r.value);f=VB(f,n,b,e);e=f.streams;f=f.ki;(n=a.g)&&g&&(n.initData=[]);return{El:{creationTime:Date.now(), +originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.be(),streams:e,sessionIds:g?Xh(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},ki:f}}function QB(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})} +function RB(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function OB(a,b,c,d){b.expiration=c.be();c=Xh(c);b.sessionIds=d?c:[];if(QB(a)&&d&&!c.length)throw new V(2,9,9007);}p.remove=function(a){return WB(this,XB(this,a))}; +function XB(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:GB();c=hB(b);if(null==c||"manifest"!=c.g)throw new V(2,9,9004,b);d=c;e=new NA;ua(k,2);return F(k,e.init(),4);case 4:return F(k,RA(e,d.Ub(),d.ib()),5);case 5:return f=k.h,F(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],F(k,Promise.all([YB(a,h,e),ZB(f,d,h)]),2);case 2:return ya(k),F(k,e.destroy(),8);case 8:Ba(k,0)}})} +function $B(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:bf(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:bf(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function YB(a,b,c){return Q(function(d){return F(d,aC(a.g,a.h.drm,c,b),0)})} +function ZB(a,b,c){function d(){}var e=bC(c);xB(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.Xl=function(){return WB(this,cC(this))}; +function cC(a){var b,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return GB(),b=a.g,c=a.h.drm,d=new NA,e=!1,ua(n,2),F(n,d.init(),4);case 4:f=[],SA(d,function(q){return f.push(q)}),g=t(f),h=g.next();case 5:if(h.done){n.A(2);break}k=h.value;return F(n,k.getAll(),8);case 8:return l=n.h,F(n,sB(c,b,l),9);case 9:return m=n.h,F(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.A(5);break;case 2:return ya(n),F(n,d.destroy(),11);case 11:Ba(n,3);break;case 3:return n.return(!e)}})} +p.list=function(){return WB(this,dC())};function dC(){var a,b,c;return Q(function(d){switch(d.g){case 1:return GB(),a=[],b=new NA,ua(d,2),F(d,b.init(),4);case 4:return c=Promise.resolve(),QA(b,function(e,f){c=c.then(function(){var g;return Q(function(h){if(1==h.g)return F(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=xB(new gB("manifest",e.Ub,e.ib,l),k);a.push(k)});I(h)})})}),F(d,c,2);case 2:return ya(d),F(d,b.destroy(),6);case 6:Ba(d,3);break;case 3:return d.return(a)}})} +function HB(a,b,c,d){var e,f,g,h,k;return Q(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate},onMetadata:function(){},disableStream:function(){}, +addFont:function(){}},c.configure(d.manifest),IB(a),F(l,c.start(b,g),2);if(3!=l.g)return h=l.h,IB(a),k=eC(h),F(l,Promise.all(kb(k,function(m){return m.createSegmentIndex()})),3);IB(a);if(e)throw e;return l.return(h)})} +function JB(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y;return Q(function(z){switch(z.g){case 1:return F(z,fC(a,b),2);case 2:d=z.h;if("text/vtt"!=d)throw new V(1,2,2017,b);return F(z,gC(b,a.g,a.h.streaming.retryParameters),3);case 3:e=z.h;f=qf(d);if(!f)throw new V(2,2,2014,d);g=f();h={periodStart:0,segmentStart:0,segmentEnd:c.presentationTimeline.getDuration(),vttOffset:0};k=Kb(e);l=g.parseMedia(k,h,b,[]);m=[];n=t(l);q=n.next();for(r={};!q.done;r={mg:void 0,xd:void 0},q=n.next())r.xd=q.value,r.mg=null, +u=function(A){return function(){null==A.mg&&(A.mg=lc([b],[A.xd.payload]));return A.mg||[]}}(r),w=new Aj(r.xd.startTime,r.xd.endTime,u,0,null,null,0,0,Infinity),r.xd.payload.includes("#xywh")&&(v=r.xd.payload.split("#xywh=")[1].split(","),4===v.length&&w.dg({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)})),m.push(w);y=d;if(!m.length){z.A(4);break}return F(z,Bo(m[0].S()[0],a.g,a.h.manifest.retryParameters),5);case 5:y=z.h;case 4:return z.return({id:a.m++, +originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vl(m),mimeType:y||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"image",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([bf(y|| "","")]),isAudioMuxedInVideo:!1,baseOriginalId:null})}})} -function DB(a,b,c,d,e,f,g){var h,k,l;return Q(function(m){if(1==m.g)return f?m.A(2):F(m,ZB(a,c),3);2!=m.g&&(f=m.h);h={id:a.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ql(0,b.presentationTimeline.getDuration(),[c]),mimeType:f||"",codecs:g||"",kind:e,encrypted:!1,drmInfos:[],keyIds:new Set,language:d,originalLanguage:d,label:null,type:rc,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null, -audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([af(f||"",g||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};k=af(h.mimeType,h.codecs);l=qf(k);if(!l)throw new V(2,2,2014,f);return m.return(h)})} -function ZB(a,b){var c;return Q(function(d){switch(d.g){case 1:return ta(d,2),F(d,to(b,a.g,a.h.streaming.retryParameters),4);case 4:c=d.h;wa(d,3);break;case 2:xa(d);case 3:if(c)return d.return(c);throw new V(1,2,2011,b);}})}function $B(a,b,c){var d,e,f;return Q(function(g){if(1==g.g)return d=bh,e=Wg([a],c),e.method="GET",F(g,b.request(d,e).promise,2);f=g.h;return g.return(f.data)})} -p.sd=function(a,b,c,d){var e=this,f;return Q(function(g){return 1==g.g?(f=new xh({uc:e.g,onError:b,Kf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),f.configure(c.drm),F(g,Ch(f,a.variants,d),2)):3!=g.g?F(g,Ph(f),3):g.return(f)})}; -function OB(a,b,c,d){var e=new Map,f=YB(c),g=new Map;f=u(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=aC(a,b,c,h,d,e);g.set(h.id,k)}a=u(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),ji:Array.from(e.values())}} -function aC(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,colorGamut:d.colorGamut,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount, -audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,mssPrivateData:d.mssPrivateData,external:d.external,fastSwitching:d.fastSwitching,isAudioMuxedInVideo:d.isAudioMuxedInVideo},h=e.offline.numberOfParallelDownloads,k=0===h?d.id:0;bC(d,c.presentationTimeline.Jb(),function(l,m){var n=kA(l),q=void 0;if(!f.has(n)){var r=l.endTime-l.startTime;r=uB(b,d.id)*r;r=nA(a.g,r);f.set(n,new jA(l,r,k,!1,m))}l.ha&&(q=kA(l.ha),f.has(q)||(r=.5* -uB(b,d.id),r=nA(a.g,r),f.set(q,new jA(l.ha,r,k,!0,m))));g.segments.push({pendingInitSegmentRefId:q,initSegmentKey:q?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:n,dataKey:0,mimeType:l.mimeType,codecs:l.codecs,thumbnailSprite:l.thumbnailSprite});0!==h&&(k=(k+1)%h)});return g} -function bC(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d,b),d=a.segmentIndex.get(++b)}function BB(a){if(a.j.g)throw new V(2,9,7001);}function zB(){if(!wB())throw new V(2,9,9E3);}function PB(a,b){return Q(function(c){if(1==c.g)return a.i.push(b),ua(c,2),F(c,b,4);if(2!=c.g)return c.return(c.h);ya(c);sd(a.i,b);return Ba(c,0)})}function yB(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){sd(a.i,c)})} -function VB(a){var b=new Set;a=u(a.streams);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)} -function UB(a,b,c,d){var e,f,g;return Q(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=MA(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:TB(d,!1),videoCapabilities:TB(d,!0)}});return F(h,lB(b,a,f),2)}return 3!=h.g?(g=h.h,F(h,e.remove(g),3)):F(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})} -function YB(a){for(var b=new Set,c=u(a.variants),d=c.next();!d.done;d=c.next())d=d.value,d.audio&&b.add(d.audio),d.video&&b.add(d.video);c=u(a.textStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=u(a.imageStreams);for(c=a.next();!c.done;c=a.next())b.add(c.value);return b} -function MB(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=u(b),d=c.next();!d.done;d=c.next()){d=u(b);for(var e=d.next();!e.done;e=d.next());}b=u(a);for(c=b.next();!c.done;c=b.next())for(c=u(a),d=c.next();!d.done;d=c.next());}S("shaka.offline.Storage",vB);vB.deleteAll=function(){var a;return Q(function(b){return 1==b.g?(a=new GA,ua(b,2),F(b,NA(a),2)):5!=b.g?(ya(b),F(b,a.destroy(),5)):Ba(b,0)})}; -vB.prototype.list=vB.prototype.list;vB.prototype.removeEmeSessions=vB.prototype.Wl;vB.prototype.remove=vB.prototype.remove;vB.prototype.store=vB.prototype.store;vB.prototype.getNetworkingEngine=vB.prototype.Hb;vB.prototype.getConfiguration=vB.prototype.getConfiguration;vB.prototype.configure=vB.prototype.configure;vB.prototype.destroy=vB.prototype.destroy;vB.support=wB; -var NB=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.huawei.wiseplay","3d5e6d359b9a41e8b843dd3c6e72c42c"); -fq("offline",wB);function cC(){}function dC(){for(var a=u(eC),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){ab("Error installing polyfill!",c)}}}function fC(a,b){a={priority:b||0,callback:a};for(b=0;b=b?(yC(),zC()):15>=b&&yC());a=u(a.oj());for(b=a.next();!b.done;b=a.next())AC(b.value);(window.MediaSource||window.ManagedMediaSource)&&BC();window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&CC()} -function yC(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ja.apply(0,arguments));b.abort=function(){};return b}}function zC(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}} -function BC(){if(window.MediaSource){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"mp2t"!=ef(c)&&a(c)}}if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"mp2t"!=ef(c)&&b(c)}}} -function AC(a){var b=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(d){return hf(d)!=a&&b(d)};if(window.ManagedMediaSource){var c=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(d){return hf(d)!=a&&c(d)}}} -function CC(){var a=MediaSource.isTypeSupported;Rb().Qj()&&(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}cC.MediaSource=wC;wC.install=xC;fC(xC);function DC(){}function EC(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?FC():void 0!=window.orientation&&GC())}function FC(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})} -function GC(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new HC;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new U("change");b.dispatchEvent(c)})}cC.Orientation=DC;DC.install=EC;function HC(){jb.call(this);this.type="";this.angle=0}pa(HC,jb); -HC.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)}; -HC.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};fC(EC);function IC(){}var JC,KC,LC,MC,NC,OC; -function PC(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys&&window.shakaMediaKeysPolyfill!=QC){if(void 0===a?0:a)JC=!0,KC=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),LC=HTMLMediaElement.prototype.setMediaKeys,MC=window.MediaKeys,NC=window.MediaKeySystemAccess,OC=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=RC;window.MediaKeys=SC;window.MediaKeySystemAccess= -TC;navigator.requestMediaKeySystemAccess=UC;window.shakaMediaKeysPolyfill=QC;Rf.clear();zg.clear()}}function UC(a,b){try{var c=new TC(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function RC(a){var b=this.mediaKeys;b&&b!=a&&VC(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?VC(a,this):Promise.resolve()} -function WC(a){a=Kb(a.initData);if(Ob(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Xb(a.subarray(4),!0);a=$b(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Lb(a);this.dispatchEvent(b)}cC.PatchedMediaKeysApple=IC; -IC.uninstall=function(){window.shakaMediaKeysPolyfill==QC&&JC&&(JC=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",KC),HTMLMediaElement.prototype.setMediaKeys=LC,window.MediaKeys=MC,window.MediaKeySystemAccess=NC,navigator.requestMediaKeySystemAccess=OC,KC=OC=LC=NC=MC=null,window.shakaMediaKeysPolyfill="",Rf.clear(),zg.clear())};IC.install=PC; -function TC(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=u(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=u(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem, -g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=u(c.videoCapabilities),f=c.next();!f.done;f=c.next())f=f.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;} -TC.prototype.createMediaKeys=function(){var a=new SC(this.keySystem);return Promise.resolve(a)};TC.prototype.getConfiguration=function(){return this.g};function SC(a){this.h=new WebKitMediaKeys(a);this.g=new Oc}SC.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new XC(this.h,a)};SC.prototype.setServerCertificate=function(){return Promise.resolve(!1)}; -function VC(a,b){a.g.Sa();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",WC);try{return xl(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}SC.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function XC(a){jb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Oc;this.sessionId="";this.expiration=NaN;this.closed=new Hg;this.keyStatuses=new YC}pa(XC,jb);p=XC.prototype; -p.generateRequest=function(a,b){var c=this;this.h=new Hg;try{var d=this.l.createSession("video/mp4",Kb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.Ec()?"license-request":"license-renewal").set("message",Lb(e.message));e=new U("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(ZC(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror", -function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:ZC(c,"output-not-allowed");break;default:ZC(c,"internal-error")}});ZC(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))}; -p.update=function(a){this.g=new Hg;try{this.i.update(Kb(a))}catch(b){this.g.reject(b)}return this.g};p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Sa()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function ZC(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new U("keystatuseschange");a.dispatchEvent(b)} -function YC(){this.size=0;this.g=void 0}p=YC.prototype;p.Ec=function(){return this.g};p.forEach=function(a){this.g&&a(this.g,yg.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=yg.value();return this.g&&Jb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var QC="apple";fC(function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||PC())});function $C(){}function aD(){if(window.MediaKeys){var a=Rb();MediaKeys.prototype.setServerCertificate&&a.Be()||(MediaKeys.prototype.setServerCertificate=bD)}}function bD(){return Promise.resolve(!1)}cC.PatchedMediaKeysCert=$C;$C.install=aD;fC(aD);function cD(){} -function dD(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)eD="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=fD;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=gD;window.MediaKeys=hD;window.MediaKeySystemAccess=iD;window.shakaMediaKeysPolyfill=jD}} -function kD(a){var b=eD;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function fD(a,b){try{var c=new iD(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function gD(a){var b=this.mediaKeys;b&&b!=a&&lD(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&lD(a,this);return Promise.resolve()}cC.PatchedMediaKeysWebkit=cD;cD.install=dD; -function iD(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=u(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=u(f.audioCapabilities), -l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=u(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]): -d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}iD.prototype.createMediaKeys=function(){var a=new hD(this.g);return Promise.resolve(a)};iD.prototype.getConfiguration=function(){return this.h};function hD(a){this.l=a;this.h=null;this.g=new Oc;this.i=[];this.j=new Map} -function lD(a,b){a.h=b;a.g.Sa();var c=eD;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Lb(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=mD(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Ec()?"licenserequest":"licenserenewal").set("message",d.message),d=new U("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){(d=mD(a,d.sessionId))&&d.ready()}), -a.g.o(b,c+"keyerror",function(d){var e=mD(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?nD(e,"output-restricted"):1==f?nD(e,"expired"):nD(e,"internal-error"))}}))} -hD.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new oD(b,this.l,a);this.i.push(a);return a};hD.prototype.setServerCertificate=function(){return Promise.resolve(!1)};hD.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")}; -function mD(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function oD(a,b,c){jb.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Hg;this.keyStatuses=new pD}pa(oD,jb);p=oD.prototype;p.ready=function(){nD(this,"usable");this.g&&this.g.resolve();this.g=null}; -function qD(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Kb($b("LOAD_SESSION|"+c));else{var e=$b("PERSISTENT|");d=kc(e,b)}else d=Kb(b)}catch(g){return Promise.reject(g)}a.h=new Hg;var f=kD("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new yf(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).X(.01)}return a.h} -function rD(a,b,c){if(a.g)a.g.then(function(){return rD(a,b,c)}).catch(function(){return rD(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Wb(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=hc(e.keys[0].k);e=hc(e.keys[0].kid)}else d=Kb(c),e=null;var f=kD("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}} -function nD(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new U("keystatuseschange");a.dispatchEvent(b)}p.generateRequest=function(a,b){return qD(this,b,null)};p.load=function(a){return"persistent-license"==this.l?qD(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new Hg;rD(this,b,a);return b}; -p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=kD("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function pD(){this.size=0;this.g=void 0}p=pD.prototype;p.Ec=function(){return this.g}; -p.forEach=function(a){this.g&&a(this.g,yg.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=yg.value();return this.g&&Jb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var eD="",jD="webkit";fC(dD);function sD(){}function tD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=uD,Object.defineProperty(a,"disablePictureInPicture",{get:vD,set:wD,enumerable:!0,configurable:!0}),document.exitPictureInPicture=xD,document.addEventListener("webkitpresentationmodechanged",yD,!0))}} -function yD(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)} -function uD(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function xD(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))} -function vD(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function wD(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}cC.PiPWebkit=sD;sD.install=tD;fC(tD);function zD(){}function AD(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=BD))}function BD(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}cC.RandomUUID=zD;zD.install=AD;fC(AD);function CD(){}function DD(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:ED})}function ED(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}cC.Symbol=CD;CD.install=DD;fC(DD);function FD(){}function GD(){for(var a=u([Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array]),b=a.next();!b.done;b=a.next())b=b.value,b.prototype.indexOf||(b.prototype.indexOf=HD),b.prototype.lastIndexOf||(b.prototype.lastIndexOf=ID),b.prototype.includes||(b.prototype.includes=JD)}function HD(a,b){return Array.prototype.indexOf.call(this,a,b)}function ID(a,b){return Array.prototype.lastIndexOf.call(this,a,b)} -function JD(a,b){return-1!==this.indexOf(a,b)}cC.TypedArray=FD;FD.install=GD;fC(GD);function KD(){}function LD(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}cC.VideoPlayPromise=KD;KD.install=LD;fC(LD);function MD(){}function ND(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||"number"===typeof Fi().webkitDroppedFrameCount)&&(a.getVideoPlaybackQuality=OD)}}function OD(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}cC.VideoPlaybackQuality=MD;MD.install=ND;fC(ND);function PD(){}function QD(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=RD;else if(6==b)a=SD;else{try{var c=!!RD(1,2,"")}catch(d){c=!1}c&&(a=RD)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function RD(a,b,c){return new window.TextTrackCue(a,b,c)}function SD(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}cC.VTTCue=PD;PD.install=QD;fC(QD);function TD(a){jb.call(this);this.h=a;this.l=null;this.g=[];this.i=-1;this.j=null;this.m=new Oc}pa(TD,jb);p=TD.prototype;p.destroy=function(){var a=this;return Q(function(b){if(1==b.g)return F(b,a.removeAllItems(),2);a.h=null;a.m&&(a.m.release(),a.m=null);jb.prototype.release.call(a);H(b)})};p.configure=function(a){this.l=a};p.getConfiguration=function(){return this.l};p.getCurrentItem=function(){return this.g.length&&0<=this.i&&this.i=b.g.length)throw new V(2,7,7007);c=b.g[a];b.i!=a&&(b.i=a,b.dispatchEvent(new U("currentitemchanged")));d=b.h.h;e=b.l?b.l.preloadNextUrlWindow:0;0=b.g.length||f||b.h.T()||!d.duration)return D.return();y=b.h.xa().end-d.currentTime;if(isNaN(y)){D.A(0);break}if(!(y<=e)){D.A(0);break}z= -b.l&&b.l.repeatMode;A=null;b.i+1 can only be inside
in TTML");q=u(Od(e,"div"));for(r=q.next();!r.done;r=q.next())if(Od(r.value,"span").length)throw new V(2,2,2001," can only be inside

in TTML");if(b=cE(e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor="transparent"), +function KB(a,b,c,d,e,f,g){var h,k,l;return Q(function(m){if(1==m.g)return f?m.A(2):F(m,fC(a,c),3);2!=m.g&&(f=m.h);h={id:a.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Xl(0,b.presentationTimeline.getDuration(),[c]),mimeType:f||"",codecs:g||"",kind:e,encrypted:!1,drmInfos:[],keyIds:new Set,language:d,originalLanguage:d,label:null,type:sc,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null, +audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([bf(f||"",g||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};k=bf(h.mimeType,h.codecs);l=sf(k);if(!l)throw new V(2,2,2014,f);return m.return(h)})} +function fC(a,b){var c;return Q(function(d){switch(d.g){case 1:return ta(d,2),F(d,Bo(b,a.g,a.h.streaming.retryParameters),4);case 4:c=d.h;wa(d,3);break;case 2:xa(d);case 3:if(c)return d.return(c);throw new V(1,2,2011,b);}})}function gC(a,b,c){var d,e,f;return Q(function(g){if(1==g.g)return d=ch,e=Xg([a],c),e.method="GET",F(g,b.request(d,e).promise,2);f=g.h;return g.return(f.data)})} +p.vd=function(a,b,c,d){var e=this,f;return Q(function(g){return 1==g.g?(f=new yh({xc:e.g,onError:b,Lf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),f.configure(c.drm),F(g,Dh(f,a.variants,d),2)):3!=g.g?F(g,Qh(f),3):g.return(f)})}; +function VB(a,b,c,d){var e=new Map,f=eC(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=hC(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),ki:Array.from(e.values())}} +function hC(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,colorGamut:d.colorGamut,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount, +audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,mssPrivateData:d.mssPrivateData,external:d.external,fastSwitching:d.fastSwitching,isAudioMuxedInVideo:d.isAudioMuxedInVideo},h=e.offline.numberOfParallelDownloads,k=0===h?d.id:0;iC(d,c.presentationTimeline.Kb(),function(l,m){var n=rA(l),q=void 0;if(!f.has(n)){var r=l.endTime-l.startTime;r=BB(b,d.id)*r;r=uA(a.g,r);f.set(n,new qA(l,r,k,!1,m))}l.ea&&(q=rA(l.ea),f.has(q)||(r=.5* +BB(b,d.id),r=uA(a.g,r),f.set(q,new qA(l.ea,r,k,!0,m))));g.segments.push({pendingInitSegmentRefId:q,initSegmentKey:q?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:n,dataKey:0,mimeType:l.mimeType,codecs:l.codecs,thumbnailSprite:l.thumbnailSprite});0!==h&&(k=(k+1)%h)});return g} +function iC(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d,b),d=a.segmentIndex.get(++b)}function IB(a){if(a.j.g)throw new V(2,9,7001);}function GB(){if(!DB())throw new V(2,9,9E3);}function WB(a,b){return Q(function(c){if(1==c.g)return a.i.push(b),ua(c,2),F(c,b,4);if(2!=c.g)return c.return(c.h);ya(c);sd(a.i,b);return Ba(c,0)})}function FB(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){sd(a.i,c)})} +function bC(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)} +function aC(a,b,c,d){var e,f,g;return Q(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=TA(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:$B(d,!1),videoCapabilities:$B(d,!0)}});return F(h,sB(b,a,f),2)}return 3!=h.g?(g=h.h,F(h,e.remove(g),3)):F(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})} +function eC(a){for(var b=new Set,c=t(a.variants),d=c.next();!d.done;d=c.next())d=d.value,d.audio&&b.add(d.audio),d.video&&b.add(d.video);c=t(a.textStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.imageStreams);for(c=a.next();!c.done;c=a.next())b.add(c.value);return b} +function TB(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}S("shaka.offline.Storage",CB);CB.deleteAll=function(){var a;return Q(function(b){return 1==b.g?(a=new NA,ua(b,2),F(b,UA(a),2)):5!=b.g?(ya(b),F(b,a.destroy(),5)):Ba(b,0)})}; +CB.prototype.list=CB.prototype.list;CB.prototype.removeEmeSessions=CB.prototype.Xl;CB.prototype.remove=CB.prototype.remove;CB.prototype.store=CB.prototype.store;CB.prototype.getNetworkingEngine=CB.prototype.Ib;CB.prototype.getConfiguration=CB.prototype.getConfiguration;CB.prototype.configure=CB.prototype.configure;CB.prototype.destroy=CB.prototype.destroy;CB.support=DB; +var UB=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.huawei.wiseplay","3d5e6d359b9a41e8b843dd3c6e72c42c"); +nq("offline",DB);function jC(){}function kC(){for(var a=t(lC),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){ab("Error installing polyfill!",c)}}}function mC(a,b){a={priority:b||0,callback:a};for(b=0;b=b?(FC(),GC()):15>=b&&FC());a=t(a.pj());for(b=a.next();!b.done;b=a.next())HC(b.value);(window.MediaSource||window.ManagedMediaSource)&&IC();window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&JC()} +function FC(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ka.apply(0,arguments));b.abort=function(){};return b}}function GC(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}} +function IC(){if(window.MediaSource){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"mp2t"!=ff(c)&&a(c)}}if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"mp2t"!=ff(c)&&b(c)}}} +function HC(a){var b=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(d){return jf(d)!=a&&b(d)};if(window.ManagedMediaSource){var c=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(d){return jf(d)!=a&&c(d)}}} +function JC(){var a=MediaSource.isTypeSupported;Rb().Rj()&&(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}jC.MediaSource=DC;DC.install=EC;mC(EC);function KC(){}function LC(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?MC():void 0!=window.orientation&&NC())}function MC(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})} +function NC(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new OC;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new U("change");b.dispatchEvent(c)})}jC.Orientation=KC;KC.install=LC;function OC(){jb.call(this);this.type="";this.angle=0}pa(OC,jb); +OC.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)}; +OC.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};mC(LC);function PC(){}var QC,RC,SC,TC,UC,VC; +function WC(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys&&window.shakaMediaKeysPolyfill!=XC){if(void 0===a?0:a)QC=!0,RC=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),SC=HTMLMediaElement.prototype.setMediaKeys,TC=window.MediaKeys,UC=window.MediaKeySystemAccess,VC=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=YC;window.MediaKeys=ZC;window.MediaKeySystemAccess= +$C;navigator.requestMediaKeySystemAccess=aD;window.shakaMediaKeysPolyfill=XC;Sf.clear();Ag.clear()}}function aD(a,b){try{var c=new $C(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function YC(a){var b=this.mediaKeys;b&&b!=a&&bD(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?bD(a,this):Promise.resolve()} +function cD(a){a=Kb(a.initData);if(Ob(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Xb(a.subarray(4),!0);a=$b(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Lb(a);this.dispatchEvent(b)}jC.PatchedMediaKeysApple=PC; +PC.uninstall=function(){window.shakaMediaKeysPolyfill==XC&&QC&&(QC=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",RC),HTMLMediaElement.prototype.setMediaKeys=SC,window.MediaKeys=TC,window.MediaKeySystemAccess=UC,navigator.requestMediaKeySystemAccess=VC,RC=VC=SC=UC=TC=null,window.shakaMediaKeysPolyfill="",Sf.clear(),Ag.clear())};PC.install=WC; +function $C(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem, +g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(c.videoCapabilities),f=c.next();!f.done;f=c.next())f=f.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;} +$C.prototype.createMediaKeys=function(){var a=new ZC(this.keySystem);return Promise.resolve(a)};$C.prototype.getConfiguration=function(){return this.g};function ZC(a){this.h=new WebKitMediaKeys(a);this.g=new Oc}ZC.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new dD(this.h,a)};ZC.prototype.setServerCertificate=function(){return Promise.resolve(!1)}; +function bD(a,b){a.g.Sa();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",cD);try{return El(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}ZC.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function dD(a){jb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Oc;this.sessionId="";this.expiration=NaN;this.closed=new Ig;this.keyStatuses=new eD}pa(dD,jb);p=dD.prototype; +p.generateRequest=function(a,b){var c=this;this.h=new Ig;try{var d=this.l.createSession("video/mp4",Kb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.Jc()?"license-request":"license-renewal").set("message",Lb(e.message));e=new U("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(fD(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror", +function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:fD(c,"output-not-allowed");break;default:fD(c,"internal-error")}});fD(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))}; +p.update=function(a){this.g=new Ig;try{this.i.update(Kb(a))}catch(b){this.g.reject(b)}return this.g};p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Sa()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function fD(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new U("keystatuseschange");a.dispatchEvent(b)} +function eD(){this.size=0;this.g=void 0}p=eD.prototype;p.Jc=function(){return this.g};p.forEach=function(a){this.g&&a(this.g,zg.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=zg.value();return this.g&&Jb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var XC="apple";mC(function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||WC())});function gD(){}function hD(){if(window.MediaKeys){var a=Rb();MediaKeys.prototype.setServerCertificate&&a.Ce()||(MediaKeys.prototype.setServerCertificate=iD)}}function iD(){return Promise.resolve(!1)}jC.PatchedMediaKeysCert=gD;gD.install=hD;mC(hD);function jD(){} +function kD(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)lD="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=mD;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=nD;window.MediaKeys=oD;window.MediaKeySystemAccess=pD;window.shakaMediaKeysPolyfill=qD}} +function rD(a){var b=lD;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function mD(a,b){try{var c=new pD(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function nD(a){var b=this.mediaKeys;b&&b!=a&&sD(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&sD(a,this);return Promise.resolve()}jC.PatchedMediaKeysWebkit=jD;jD.install=kD; +function pD(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities), +l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=t(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]): +d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}pD.prototype.createMediaKeys=function(){var a=new oD(this.g);return Promise.resolve(a)};pD.prototype.getConfiguration=function(){return this.h};function oD(a){this.l=a;this.h=null;this.g=new Oc;this.i=[];this.j=new Map} +function sD(a,b){a.h=b;a.g.Sa();var c=lD;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Lb(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=tD(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Jc()?"licenserequest":"licenserenewal").set("message",d.message),d=new U("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){(d=tD(a,d.sessionId))&&d.ready()}), +a.g.o(b,c+"keyerror",function(d){var e=tD(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?uD(e,"output-restricted"):1==f?uD(e,"expired"):uD(e,"internal-error"))}}))} +oD.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new vD(b,this.l,a);this.i.push(a);return a};oD.prototype.setServerCertificate=function(){return Promise.resolve(!1)};oD.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")}; +function tD(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function vD(a,b,c){jb.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Ig;this.keyStatuses=new wD}pa(vD,jb);p=vD.prototype;p.ready=function(){uD(this,"usable");this.g&&this.g.resolve();this.g=null}; +function xD(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Kb($b("LOAD_SESSION|"+c));else{var e=$b("PERSISTENT|");d=kc(e,b)}else d=Kb(b)}catch(g){return Promise.reject(g)}a.h=new Ig;var f=rD("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new zf(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).X(.01)}return a.h} +function yD(a,b,c){if(a.g)a.g.then(function(){return yD(a,b,c)}).catch(function(){return yD(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Wb(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=hc(e.keys[0].k);e=hc(e.keys[0].kid)}else d=Kb(c),e=null;var f=rD("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}} +function uD(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new U("keystatuseschange");a.dispatchEvent(b)}p.generateRequest=function(a,b){return xD(this,b,null)};p.load=function(a){return"persistent-license"==this.l?xD(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new Ig;yD(this,b,a);return b}; +p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=rD("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function wD(){this.size=0;this.g=void 0}p=wD.prototype;p.Jc=function(){return this.g}; +p.forEach=function(a){this.g&&a(this.g,zg.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=zg.value();return this.g&&Jb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var lD="",qD="webkit";mC(kD);function zD(){}function AD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=BD,Object.defineProperty(a,"disablePictureInPicture",{get:CD,set:DD,enumerable:!0,configurable:!0}),document.exitPictureInPicture=ED,document.addEventListener("webkitpresentationmodechanged",FD,!0))}} +function FD(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)} +function BD(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function ED(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))} +function CD(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function DD(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}jC.PiPWebkit=zD;zD.install=AD;mC(AD);function GD(){}function HD(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=ID))}function ID(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}jC.RandomUUID=GD;GD.install=HD;mC(HD);function JD(){}function KD(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:LD})}function LD(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}jC.Symbol=JD;JD.install=KD;mC(KD);function MD(){}function ND(){for(var a=t([Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array]),b=a.next();!b.done;b=a.next())b=b.value,b.prototype.indexOf||(b.prototype.indexOf=OD),b.prototype.lastIndexOf||(b.prototype.lastIndexOf=PD),b.prototype.includes||(b.prototype.includes=QD)}function OD(a,b){return Array.prototype.indexOf.call(this,a,b)}function PD(a,b){return Array.prototype.lastIndexOf.call(this,a,b)} +function QD(a,b){return-1!==this.indexOf(a,b)}jC.TypedArray=MD;MD.install=ND;mC(ND);function RD(){}function SD(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}jC.VideoPlayPromise=RD;RD.install=SD;mC(SD);function TD(){}function UD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||"number"===typeof Gi().webkitDroppedFrameCount)&&(a.getVideoPlaybackQuality=VD)}}function VD(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}jC.VideoPlaybackQuality=TD;TD.install=UD;mC(UD);function WD(){}function XD(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=YD;else if(6==b)a=ZD;else{try{var c=!!YD(1,2,"")}catch(d){c=!1}c&&(a=YD)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function YD(a,b,c){return new window.TextTrackCue(a,b,c)}function ZD(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}jC.VTTCue=WD;WD.install=XD;mC(XD);function $D(a){jb.call(this);this.h=a;this.l=null;this.g=[];this.i=-1;this.j=null;this.m=new Oc}pa($D,jb);p=$D.prototype;p.destroy=function(){var a=this;return Q(function(b){if(1==b.g)return F(b,a.removeAllItems(),2);a.h=null;a.m&&(a.m.release(),a.m=null);jb.prototype.release.call(a);I(b)})};p.configure=function(a){this.l=a};p.getConfiguration=function(){return this.l};p.getCurrentItem=function(){return this.g.length&&0<=this.i&&this.i=b.g.length)throw new V(2,7,7007);c=b.g[a];b.i!=a&&(b.i=a,b.dispatchEvent(new U("currentitemchanged")));d=b.h.h;e=b.l?b.l.preloadNextUrlWindow:0;0=b.g.length||f||b.h.T()||!d.duration)return D.return();y=b.h.xa().end-d.currentTime;if(isNaN(y)){D.A(0);break}if(!(y<=e)){D.A(0);break}z= +b.l&&b.l.repeatMode;A=null;b.i+1 can only be inside

in TTML");q=t(Pd(e,"div"));for(r=q.next();!r.done;r=q.next())if(Pd(r.value,"span").length)throw new V(2,2,2001," can only be inside

in TTML");if(b=jE(e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor="transparent"), a.push(b);return a}; -function cE(a,b,c,d,e,f,g,h,k,l,m,n,q){var r=l;if(Md(a)){if(!m)return null;var t={tagName:"span",children:[Pd(a)],attributes:{},parent:null}}else t=a;for(var w=null,v=u(dE),y=v.next();!y.done&&!(w=eE(t,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=null;y=Xd(t,dE,"backgroundImage");var z=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(y&&z.test(y)){v=parseInt(y.split(":").pop(),10)-1;if(v>=q.length)return null;v=q[v]}else n&&y&&!y.startsWith("#")&&(z=new qb(n),y=new qb(y),(y=z.resolve(y).toString())&& -(v=y));if("p"==a.tagName||w||v)m=!0;a=m;y="default"==(t.attributes["xml:space"]||(h?"default":"preserve"));z=t.children.every(Md);h=[];if(!z)for(var A=u(t.children),B=A.next();!B.done;B=A.next())(B=cE(B.value,b,c,d,e,f,g,y,k,t,m,n,q))&&h.push(B);d=null!=l;n=Pd(t);n=t.children.length&&n&&/\S/.test(n);A=t.attributes.begin||t.attributes.end||t.attributes.dur;if(!(A||n||"br"==t.tagName||0!=h.length||d&&!y))return null;q=fE(t,c);n=q.start;for(q=q.end;r&&r.tagName&&"tt"!=r.tagName;)q=gE(r,c,n,q),n=q.start, -q=q.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;q=null==q?Infinity:q+b.periodStart;n=Math.max(n,b.segmentStart);q=Math.min(q,b.segmentEnd);if(!A&&0c.length)return f;var g=a;for(a=null;!a&&!(a=e?Wd(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=u(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=u(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f} -function gE(a,b,c,d){a=fE(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}function fE(a,b){var c=uE(a.attributes.begin,b),d=uE(a.attributes.end,b);a=uE(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}} -function uE(a,b){var c=null;if(vE.test(a)){a=vE.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(wE.test(a))c=xE(wE,a);else if(yE.test(a))c=xE(yE,a);else if(zE.test(a))a=zE.exec(a),c=Number(a[1])/b.frameRate;else if(AE.test(a))a=AE.exec(a),c=Number(a[1])/b.g;else if(BE.test(a))c=xE(BE,a);else if(a)throw new V(2,2,2001,"Could not parse cue time range in TTML");return c} -function xE(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}function aE(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Qc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}S("shaka.text.TtmlTextParser",XD);XD.prototype.parseMedia=XD.prototype.parseMedia;XD.prototype.setManifestType=XD.prototype.setManifestType;XD.prototype.setSequenceMode=XD.prototype.setSequenceMode;XD.prototype.parseInit=XD.prototype.parseInit; -function $D(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))} -var iE=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,qE=/^(\d{1,4}(?:\.\d+)?|100)%$/,pE=/^(\d+px|\d+em|\d*\.?\d+c)$/,jE=/^(\d+)px (\d+)px$/,vE=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,wE=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,yE=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,zE=/^(\d*(?:\.\d*)?)f$/,AE=/^(\d*(?:\.\d*)?)t$/,BE=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),oE=(new Map).set("left",ue).set("center","center").set("right", -"end").set("start",ue).set("end","end"),nE=(new Map).set("left","line-left").set("center","center").set("right","line-right"),YD=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],ZD=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],dE=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];nf("application/ttml+xml",function(){return new XD});function CE(){this.g=new XD}CE.prototype.parseInit=function(a){var b=!1;(new kh).box("moov",ph).box("trak",ph).box("mdia",ph).box("minf",ph).box("stbl",ph).V("stsd",rh).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new V(2,2,2007);};CE.prototype.setSequenceMode=function(){};CE.prototype.setManifestType=function(){}; -CE.prototype.parseMedia=function(a,b,c){var d=[],e=null,f=[],g=new Map,h=[];(new kh).box("moof",ph).box("traf",ph).V("tfhd",function(y){e=Hi(y.reader,y.flags).Zd}).V("trun",function(y){y=Ki(y.reader,y.version,y.flags);y=u(y.Ph);for(var z=y.next();!z.done;z=y.next())h.push(z.value.sampleSize||e||0)}).V("subs",function(y){for(var z=y.reader,A=z.W(),B=-1,D=0;D").replace(/{\/b}/g,"").replace(/{i}/g,"").replace(/{\/i}/g,"").replace(/{u}/g,"").replace(/{\/u}/g,"")+"\n\n";return b}S("shaka.text.SrtTextParser",KE);KE.srt2webvtt=LE;KE.prototype.parseMedia=KE.prototype.parseMedia; -KE.prototype.setManifestType=KE.prototype.setManifestType;KE.prototype.setSequenceMode=KE.prototype.setSequenceMode;KE.prototype.parseInit=KE.prototype.parseInit;nf("text/srt",function(){return new KE});function ME(){}ME.prototype.parseInit=function(){};ME.prototype.setSequenceMode=function(){};ME.prototype.setManifestType=function(){}; -ME.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=Wb(a).split(/\r?\n\s*\r?\n/);a=u(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=NE.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e)}d=[];e=null;b=u(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=OE.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.split(PE);else if("Style"==a){a=f.split(PE);f={};for(var g=0;g>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null} -function QE(a){a=TE.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}S("shaka.text.SsaTextParser",ME);ME.prototype.parseMedia=ME.prototype.parseMedia;ME.prototype.setManifestType=ME.prototype.setManifestType;ME.prototype.setSequenceMode=ME.prototype.setSequenceMode;ME.prototype.parseInit=ME.prototype.parseInit;var NE=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,OE=/^\s*([^:]+):\s*(.*)/,PE=/\s*,\s*/,TE=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/; -nf("text/x-ssa",function(){return new ME});function UE(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,codec:"mp4a.40."+e}} -function WE(a,b){if(b+1=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344, -1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,La:a,wa:e}} -function $E(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0>>24+h<>h;c=c?c<c)return!0}return!1};function aF(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=aF.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?bd(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?Rb().we()?'audio/mp4; codecs="ec-3"':'audio/mp4; codecs="ac-3"':b};p.getOriginalMimeType=function(){return this.j}; -p.transmux=function(a,b,c,d){a=Kb(a);for(var e=Yj(a),f=e.length;fa.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new ak(a.subarray(b+2));ck(c,2);ck(c,3);var d=dk(c,11)+1<<1,e=dk(c,2);if(3==e){e=dk(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=dk(c,2);var g=dk(c,3),h=dk(c,1);c=dk(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,La:a,wa:d}};function cF(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=cF.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?bd(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};p.getOriginalMimeType=function(){return this.j}; -p.transmux=function(a,b,c,d){a=Kb(a);for(var e=Yj(a),f=e.length;fe?kk(c,16):kk(c,64))}fk(c);d=gk(c);if(0===d)gk(c);else if(1===d)for(ck(c,1),fk(c),fk(c),d=gk(c),e=0;e=q?(d=r[q-1],e=t[q-1]):255===q&&(d=dk(c,16),e=dk(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,x(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,x(a));a=new Uint8Array([1, -k[3],k[4],k[5],255,225].concat(k,[1],b));return{height:c,width:f,Wa:a,cb:d,fb:e}} -function fF(a){function b(t){e={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:t.pts,dts:t.dts,nalus:[]}}function c(){if(e&&e.nalus.length&&e.frame){for(var t=[],w=u(e.nalus),v=w.next();!v.done;v=w.next()){v=v.value;var y=v.fullData.byteLength,z=new Uint8Array(4);z[0]=y>>24&255;z[1]=y>>16&255;z[2]=y>>8&255;z[3]=y&255;t.push(z);t.push(v.fullData)}e.data=kc.apply(dc,x(t));d.push(e)}}for(var d=[],e=null,f=!1,g=0;gG;G++)dk(a,2);for(G=0;GK;K++)for(var J=0;J<(3===K?2:6);J++)if(ik(a)){var L=Math.min(64,1<<4+(K<<1));1=L?(I=M[L-1],K=O[L-1]):255===L&&(I=dk(a,16),K=dk(a,16)));ik(a)&&ik(a);ik(a)&&(dk(a,3),ik(a),ik(a)&&(jk(a),jk(a),jk(a)));ik(a)&&(gk(a),gk(a));ik(a);ik(a);ik(a);if(L=ik(a))gk(a),gk(a),gk(a),gk(a);if(ik(a)&&(dk(a,32),dk(a,32),ik(a)&&gk(a),ik(a))){O=!1;L=ik(a);M=ik(a);if(L||M){if(O=ik(a))jk(a),dk(a, -5),ik(a),dk(a,5);dk(a,4);dk(a,4);O&&dk(a,4);dk(a,5);dk(a,5);dk(a,5)}for(N=0;N<=f;N++){var R=!0;P=1;ik(a)||(R=ik(a));var T=!1;R?gk(a):T=ik(a);T||(P=gk(a)+1);if(L){for(R=0;R>8;e[14]=d.Gf&255;e[15]=252|d.Eh&3;e[16]=252|d.Fg&3;e[17]=248|d.Bg&7;e[18]=248|d.Ag&7;e[19]=0;e[20]=0;e[21]=(d.Hg&3)<<6|(d.Ch&7)<<3|(d.gi?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength& -255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function lF(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*mF[14*(3===c?3-d:3===d?3:4)+e-1];f=nF[3*(3===c?0:2===c?1:2)+f];c=oF[c][d];var h=pF[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,wa:k,Zl:8*c*h}}return null} -function qF(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function rF(a,b){if(b+1=q.length)return null;v=q[v]}else n&&y&&!y.startsWith("#")&&(z=new qb(n),y=new qb(y),(y=z.resolve(y).toString())&& +(v=y));if("p"==a.tagName||w||v)m=!0;a=m;y="default"==(u.attributes["xml:space"]||(h?"default":"preserve"));z=u.children.every(Nd);h=[];if(!z)for(var A=t(u.children),B=A.next();!B.done;B=A.next())(B=jE(B.value,b,c,d,e,f,g,y,k,u,m,n,q))&&h.push(B);d=null!=l;n=Qd(u);n=u.children.length&&n&&/\S/.test(n);A=u.attributes.begin||u.attributes.end||u.attributes.dur;if(!(A||n||"br"==u.tagName||0!=h.length||d&&!y))return null;q=mE(u,c);n=q.start;for(q=q.end;r&&r.tagName&&"tt"!=r.tagName;)q=nE(r,c,n,q),n=q.start, +q=q.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;q=null==q?Infinity:q+b.periodStart;n=Math.max(n,b.segmentStart);q=Math.min(q,b.segmentEnd);if(!A&&0c.length)return f;var g=a;for(a=null;!a&&!(a=e?Xd(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f} +function nE(a,b,c,d){a=mE(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}function mE(a,b){var c=BE(a.attributes.begin,b),d=BE(a.attributes.end,b);a=BE(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}} +function BE(a,b){var c=null;if(CE.test(a)){a=CE.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(DE.test(a))c=EE(DE,a);else if(FE.test(a))c=EE(FE,a);else if(GE.test(a))a=GE.exec(a),c=Number(a[1])/b.frameRate;else if(HE.test(a))a=HE.exec(a),c=Number(a[1])/b.g;else if(IE.test(a))c=EE(IE,a);else if(a)throw new V(2,2,2001,"Could not parse cue time range in TTML");return c} +function EE(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}function hE(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Wc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}S("shaka.text.TtmlTextParser",dE);dE.prototype.parseMedia=dE.prototype.parseMedia;dE.prototype.setManifestType=dE.prototype.setManifestType;dE.prototype.setSequenceMode=dE.prototype.setSequenceMode;dE.prototype.parseInit=dE.prototype.parseInit; +function gE(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))} +var pE=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,xE=/^(\d{1,4}(?:\.\d+)?|100)%$/,wE=/^(\d+px|\d+em|\d*\.?\d+c)$/,qE=/^(\d+)px (\d+)px$/,CE=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,DE=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,FE=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,GE=/^(\d*(?:\.\d*)?)f$/,HE=/^(\d*(?:\.\d*)?)t$/,IE=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),vE=(new Map).set("left",ve).set("center","center").set("right", +"end").set("start",ve).set("end","end"),uE=(new Map).set("left","line-left").set("center","center").set("right","line-right"),eE=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],fE=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],kE=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];of("application/ttml+xml",function(){return new dE});function JE(){this.g=new dE}JE.prototype.parseInit=function(a){var b=!1;(new lh).box("moov",qh).box("trak",qh).box("mdia",qh).box("minf",qh).box("stbl",qh).V("stsd",sh).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new V(2,2,2007);};JE.prototype.setSequenceMode=function(){};JE.prototype.setManifestType=function(){}; +JE.prototype.parseMedia=function(a,b,c){var d=[],e=null,f=[],g=new Map,h=[];(new lh).box("moof",qh).box("traf",qh).V("tfhd",function(y){e=Ii(y.reader,y.flags).Zd}).V("trun",function(y){y=Li(y.reader,y.version,y.flags);y=t(y.Qh);for(var z=y.next();!z.done;z=y.next())h.push(z.value.sampleSize||e||0)}).V("subs",function(y){for(var z=y.reader,A=z.W(),B=-1,D=0;D").replace(/{\/b}/g,"").replace(/{i}/g,"").replace(/{\/i}/g,"").replace(/{u}/g,"").replace(/{\/u}/g,"")+"\n\n";return b}S("shaka.text.SrtTextParser",RE);RE.srt2webvtt=SE;RE.prototype.parseMedia=RE.prototype.parseMedia; +RE.prototype.setManifestType=RE.prototype.setManifestType;RE.prototype.setSequenceMode=RE.prototype.setSequenceMode;RE.prototype.parseInit=RE.prototype.parseInit;of("text/srt",function(){return new RE});function TE(){}TE.prototype.parseInit=function(){};TE.prototype.setSequenceMode=function(){};TE.prototype.setManifestType=function(){}; +TE.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=Wb(a).split(/\r?\n\s*\r?\n/);a=t(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=UE.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e)}d=[];e=null;b=t(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=VE.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.split(WE);else if("Style"==a){a=f.split(WE);f={};for(var g=0;g>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null} +function XE(a){a=$E.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}S("shaka.text.SsaTextParser",TE);TE.prototype.parseMedia=TE.prototype.parseMedia;TE.prototype.setManifestType=TE.prototype.setManifestType;TE.prototype.setSequenceMode=TE.prototype.setSequenceMode;TE.prototype.parseInit=TE.prototype.parseInit;var UE=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,VE=/^\s*([^:]+):\s*(.*)/,WE=/\s*,\s*/,$E=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/; +of("text/x-ssa",function(){return new TE});function aF(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,codec:"mp4a.40."+e}} +function cF(a,b){if(b+1=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344, +1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,Ma:a,wa:e}} +function gF(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0>>24+h<>h;c=c?c<c)return!0}return!1};function hF(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=hF.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?bd(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?Rb().we()?'audio/mp4; codecs="ec-3"':'audio/mp4; codecs="ac-3"':b};p.getOriginalMimeType=function(){return this.j}; +p.transmux=function(a,b,c,d){a=Kb(a);for(var e=Zj(a),f=e.length;fa.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new bk(a.subarray(b+2));dk(c,2);dk(c,3);var d=ek(c,11)+1<<1,e=ek(c,2);if(3==e){e=ek(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=ek(c,2);var g=ek(c,3),h=ek(c,1);c=ek(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,Ma:a,wa:d}};function jF(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=jF.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?bd(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};p.getOriginalMimeType=function(){return this.j}; +p.transmux=function(a,b,c,d){a=Kb(a);for(var e=Zj(a),f=e.length;fe?lk(c,16):lk(c,64))}gk(c);d=hk(c);if(0===d)hk(c);else if(1===d)for(dk(c,1),gk(c),gk(c),d=hk(c),e=0;e=q?(d=r[q-1],e=u[q-1]):255===q&&(d=ek(c,16),e=ek(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,x(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,x(a));a=new Uint8Array([1, +k[3],k[4],k[5],255,225].concat(k,[1],b));return{height:c,width:f,Wa:a,bb:d,eb:e}} +function mF(a){function b(u){e={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:u.pts,dts:u.dts,nalus:[]}}function c(){if(e&&e.nalus.length&&e.frame){for(var u=[],w=t(e.nalus),v=w.next();!v.done;v=w.next()){v=v.value;var y=v.fullData.byteLength,z=new Uint8Array(4);z[0]=y>>24&255;z[1]=y>>16&255;z[2]=y>>8&255;z[3]=y&255;u.push(z);u.push(v.fullData)}e.data=kc.apply(dc,x(u));d.push(e)}}for(var d=[],e=null,f=!1,g=0;gG;G++)ek(a,2);for(G=0;GK;K++)for(var J=0;J<(3===K?2:6);J++)if(jk(a)){var L=Math.min(64,1<<4+(K<<1));1=L?(H=N[L-1],K=O[L-1]):255===L&&(H=ek(a,16),K=ek(a,16)));jk(a)&&jk(a);jk(a)&&(ek(a,3),jk(a),jk(a)&&(kk(a),kk(a),kk(a)));jk(a)&&(hk(a),hk(a));jk(a);jk(a);jk(a);if(L=jk(a))hk(a),hk(a),hk(a),hk(a);if(jk(a)&&(ek(a,32),ek(a,32),jk(a)&&hk(a),jk(a))){O=!1;L=jk(a);N=jk(a);if(L||N){if(O=jk(a))kk(a),ek(a, +5),jk(a),ek(a,5);ek(a,4);ek(a,4);O&&ek(a,4);ek(a,5);ek(a,5);ek(a,5)}for(M=0;M<=f;M++){var R=!0;P=1;jk(a)||(R=jk(a));var T=!1;R?hk(a):T=jk(a);T||(P=hk(a)+1);if(L){for(R=0;R>8;e[14]=d.Gf&255;e[15]=252|d.Fh&3;e[16]=252|d.Gg&3;e[17]=248|d.Cg&7;e[18]=248|d.Bg&7;e[19]=0;e[20]=0;e[21]=(d.Ig&3)<<6|(d.Dh&7)<<3|(d.ii?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength& +255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function sF(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*tF[14*(3===c?3-d:3===d?3:4)+e-1];f=uF[3*(3===c?0:2===c?1:2)+f];c=vF[c][d];var h=wF[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,wa:k,$l:8*c*h}}return null} +function xF(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function yF(a,b){if(b+1d;d++)this.usertype[d]!==wF[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}p=uF.prototype;p.destroy=function(){}; +"uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==DF[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}p=BF.prototype;p.destroy=function(){}; p.isSupported=function(a,b){var c=a.startsWith("mss/");if(!this.g||!c)return!1;if(b)return bd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return bd(b)||bd(a)};p.convertCodecs=function(a,b){return b.replace("mss/","")};p.getOriginalMimeType=function(){return this.h}; p.transmux=function(a,b,c){if(!c)return Promise.resolve(Kb(a));if(!b.mssPrivateData)return Promise.reject(new V(2,3,3020,c?c.S()[0]:null));try{var d,e=this.g.parseBuffer(a),f=e.fetch("tfhd");f.track_ID=b.id+1;var g=e.fetch("tfdt"),h=e.fetch("traf");null===g&&(g=this.g.createFullBox("tfdt",h,f),g.version=1,g.flags=0,g.baseMediaDecodeTime=Math.floor(c.startTime*b.mssPrivateData.timescale));var k=e.fetch("trun"),l=e.fetch("tfxd");l&&l._parent.boxes.splice(l._parent.boxes.indexOf(l),1);var m=e.fetch("tfrf"); m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var n=e.fetch("sepiff");if(null!==n){n.type="senc";n.usertype=void 0;var q=e.fetch("saio");if(null===q){q=this.g.createFullBox("saio",h);q.version=0;q.flags=0;q.entry_count=1;q.offset=[0];var r=this.g.createFullBox("saiz",h);r.version=0;r.flags=0;r.sample_count=n.sample_count;r.default_sample_info_size=0;r.sample_info_size=[];if(n.flags&2)for(d=0;d>24&255;Na[1]=Ma>>16&255;Na[2]=Ma>>8&255;Na[3]=Ma&255;N.push(Na);N.push(ca.fullData)}}var Ea=N.length?{data:kc.apply(dc,x(N)),isKeyframe:O}:null;if(Ea){null==E&&null!=L.dts&&(E=L.dts);var va=void 0;va=J+ -1>24&255;Na[1]=Ma>>16&255;Na[2]=Ma>>8&255;Na[3]=Ma&255;M.push(Na);M.push(ca.fullData)}}var Ea=M.length?{data:kc.apply(dc,x(M)),isKeyframe:O}:null;if(Ea){null==E&&null!=L.dts&&(E=L.dts);var va=void 0;va=J+ +1>>24&255,xd.sampleRate>>>17&255,xd.sampleRate>>>8&255,xd.sampleRate>>>0&255,0,0].concat(x(fc)));for(var oz=xd.sampleRate,pz=u(k.yb()),Mp=pz.next();!Mp.done;Mp=pz.next()){var Np=Mp.value,Dg=Np.data;null==il&&null!==Np.pts&&(il=Np.pts);for(var hi=0;hi>>24&255,yd.sampleRate>>>17&255,yd.sampleRate>>>8&255,yd.sampleRate>>>0&255,0,0].concat(x(fc)));for(var xz=yd.sampleRate,yz=t(k.yb()),Tp=yz.next();!Tp.done;Tp=yz.next()){var Up=Tp.value,Eg=Up.data;null==kl&&null!==Up.pts&&(kl=Up.pts);for(var ii=0;iia&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function fG(a,b){ZF.call(this,a,b);var c=this;this.g=Kj();this.g.classList.add("shaka-ad-info");this.g.disabled=!0;this.parent.appendChild(this.g);this.h=new yf(function(){if(c.ad.isLinear()){var d="",e=c.ad.getSequenceLength();1Date.now()){c.l.stop();c.s=Date.now();var e=parseInt(c.h.textContent,10);e=c.m?e-d:e+d;c.h.textContent=e.toString()+"s";c.g.style.opacity="1";c.l.X(.5)}})}pa(oG,ZF);S("shaka.ui.HiddenSeekButton",oG);function qG(a,b){oG.call(this,a,b);this.g.classList.add("shaka-fast-forward-container");this.i.textContent="fast_forward";this.m=!1}pa(qG,oG);S("shaka.ui.HiddenFastForwardButton",qG);function rG(a,b){oG.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.m=!0}pa(rG,oG);S("shaka.ui.HiddenRewindButton",rG);function sG(a,b,c,d){ZF.call(this,a,b);var e=this;this.container=W("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,x(c));this.i=!1;this.bar=document.createElement("input");this.F=new yf(function(){e.onChangeEnd();e.i=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,x(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.bar.disabled= -!this.controls.Ba();this.container.appendChild(this.bar);this.parent.appendChild(this.container);this.K=new yf(function(){e.bar.disabled=!1});this.eventManager.o(this.controls,"showingui",function(){e.K.X(0)});this.eventManager.o(this.controls,"hidingui",function(){e.K.stop();e.bar.disabled=!0});this.eventManager.o(this.bar,"mousedown",function(f){e.bar.disabled||(e.i=!0,e.onChangeStart(),f.stopPropagation())});this.eventManager.o(this.bar,"touchstart",function(f){e.bar.disabled||(e.i=!0,tG(e,f), -e.onChangeStart(),f.stopPropagation())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.i&&(tG(e,f),e.onChange(),f.stopPropagation())});this.eventManager.o(this.bar,"touchend",function(f){e.i&&(e.i=!1,tG(e,f),e.onChangeEnd(),f.stopPropagation())});this.eventManager.o(this.bar,"touchcancel",function(f){e.i&&(e.i=!1,tG(e,f),e.onChangeEnd(),f.stopPropagation())});this.eventManager.o(this.bar,"mouseup",function(f){e.i&&(e.i=!1,e.onChangeEnd(), -f.stopPropagation())});this.eventManager.o(this.bar,"blur",function(){e.i&&(e.i=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}pa(sG,ZF);p=sG.prototype;p.release=function(){this.F&&(this.F.stop(),this.F=null);ZF.prototype.release.call(this)};p.setRange=function(a,b){this.bar.min=a;this.bar.max=b};p.onChangeStart=function(){};p.onChange=function(){};p.onChangeEnd=function(){}; +function OF(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,r,u;return Q(function(w){if(1==w.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=PF(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=QF(h.videoCapabilities,d),l=QF(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."), +n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return F(w,KF.call(c,a,e),2)}q=w.h;u=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(u=e[0].audioCapabilities[0].encryptionScheme));return w.return(new RF(q,r,u))})}function QF(a,b){return a?a.filter(function(c){return SF(c.encryptionScheme,b)}):a}S("EmeEncryptionSchemePolyfill",JF);JF.install=LF;function TF(){}var UF; +function VF(){UF||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(UF=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=WF,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")} +function WF(a){var b=this,c,d;return Q(function(e){switch(e.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),F(e,UF.call(b,a),2);case 2:c=e.h;if(!c.supported||!a.keySystemConfiguration)return e.return(c);if((d=c.keySystemAccess)&&NF(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=UF,e.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."); +navigator.mediaCapabilities.decodingInfo=XF;if(d){e.A(3);break}return F(e,YF(a),4);case 4:return c.keySystemAccess=e.h,e.return(c);case 3:return e.return(XF.call(b,a))}})} +function XF(a){var b=this,c,d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),d=c=null,!a.keySystemConfiguration||(e=a.keySystemConfiguration,f=e.keySystem,d=e.audio&&e.audio.encryptionScheme,c=e.video&&e.video.encryptionScheme,g=PF(f),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},SF(d,g)&&SF(c,g))?F(l,UF.call(b,a),2):l.return(h);case 2:k=l.h;if(k.keySystemAccess){k.keySystemAccess= +new RF(k.keySystemAccess,c,d);l.A(3);break}if(!a.keySystemConfiguration){l.A(3);break}return F(l,YF(a),5);case 5:k.keySystemAccess=l.h;case 3:return l.return(k)}})} +function YF(a){var b,c;return Q(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType,encryptionScheme:e.audio.encryptionScheme});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType,encryptionScheme:e.video.encryptionScheme});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes}; +f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return F(d,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}S("McEncryptionSchemePolyfill",TF);TF.install=VF;function RF(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem} +RF.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};RF.prototype.createMediaKeys=function(){return this.g.createMediaKeys()}; +function PF(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs";if(a.startsWith("com.huawei"))return"cenc";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null} +function NF(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}function SF(a,b){if(!a||a==b)return!0;if("cbcs"==a||"cbcs-1-9"==a)if(ZF||$F||aG)return!0;return!1}function bG(){}function sC(){LF();VF()}S("EncryptionSchemePolyfills",bG);bG.install=sC;var aG=navigator.userAgent.includes("CrKey"),ZF=100<=parseInt(navigator.userAgent.split("Firefox/").pop(),10),cG; +var dG=navigator.userAgent||"";if(dG.includes("Web0S")){var eG=dG.match(/Chrome\/(\d+)/);cG=eG?79<=parseInt(eG[1],10):!1}else cG=!1;var $F=cG;"undefined"!==typeof module&&module.exports&&(module.exports=bG);function fG(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Oc;this.localization=this.controls.ra;this.player=this.controls.Sb();this.video=this.controls.Kc();this.adManager=this.player.mf();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})} +fG.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};S("shaka.ui.Element",fG);fG.prototype.release=fG.prototype.release;function gG(a){return hG(a,"shaka-back-to-overflow-button")}function hG(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function iG(a){a&&(a=hG(a,"shaka-chosen-item"))&&a.parentElement.focus()}function jG(){var a=W("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function kG(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))} +function lG(a,b){var c=Math.floor(a/86400),d=Math.floor(a%86400/3600),e=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=e+":"+a;b&&(10>e&&(a="0"+a),a=d+":"+a,0d&&(a="0"+a),a=c+":"+a));return a};function mG(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("shaka-ad-info");this.g.disabled=!0;this.parent.appendChild(this.g);this.h=new zf(function(){if(c.ad.isLinear()){var d="",e=c.ad.getSequenceLength();1Date.now()){c.l.stop();c.s=Date.now();var e=parseInt(c.h.textContent,10);e=c.m?e-d:e+d;c.h.textContent=e.toString()+"s";c.g.style.opacity="1";c.l.X(.5)}})}pa(vG,fG);S("shaka.ui.HiddenSeekButton",vG);function xG(a,b){vG.call(this,a,b);this.g.classList.add("shaka-fast-forward-container");this.i.textContent="fast_forward";this.m=!1}pa(xG,vG);S("shaka.ui.HiddenFastForwardButton",xG);function yG(a,b){vG.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.m=!0}pa(yG,vG);S("shaka.ui.HiddenRewindButton",yG);function zG(a,b,c,d){fG.call(this,a,b);var e=this;this.container=W("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,x(c));this.i=!1;this.bar=document.createElement("input");this.F=new zf(function(){e.onChangeEnd();e.i=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,x(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.bar.disabled= +!this.controls.Ba();this.container.appendChild(this.bar);this.parent.appendChild(this.container);this.K=new zf(function(){e.bar.disabled=!1});this.eventManager.o(this.controls,"showingui",function(){e.K.X(0)});this.eventManager.o(this.controls,"hidingui",function(){e.K.stop();e.bar.disabled=!0});this.eventManager.o(this.bar,"mousedown",function(f){e.bar.disabled||(e.i=!0,e.onChangeStart(),f.stopPropagation())});this.eventManager.o(this.bar,"touchstart",function(f){e.bar.disabled||(e.i=!0,AG(e,f), +e.onChangeStart(),f.stopPropagation())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.i&&(AG(e,f),e.onChange(),f.stopPropagation())});this.eventManager.o(this.bar,"touchend",function(f){e.i&&(e.i=!1,AG(e,f),e.onChangeEnd(),f.stopPropagation())});this.eventManager.o(this.bar,"touchcancel",function(f){e.i&&(e.i=!1,AG(e,f),e.onChangeEnd(),f.stopPropagation())});this.eventManager.o(this.bar,"mouseup",function(f){e.i&&(e.i=!1,e.onChangeEnd(), +f.stopPropagation())});this.eventManager.o(this.bar,"blur",function(){e.i&&(e.i=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}pa(zG,fG);p=zG.prototype;p.release=function(){this.F&&(this.F.stop(),this.F=null);fG.prototype.release.call(this)};p.setRange=function(a,b){this.bar.min=a;this.bar.max=b};p.onChangeStart=function(){};p.onChange=function(){};p.onChangeEnd=function(){}; p.changeTo=function(a){this.i||(this.i=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:ae&&(c=e);a.bar.value=c}S("shaka.ui.RangeElement",sG);sG.prototype.setValue=sG.prototype.setValue;sG.prototype.getValue=sG.prototype.getValue;sG.prototype.changeTo=sG.prototype.changeTo;sG.prototype.onChangeEnd=sG.prototype.onChangeEnd;sG.prototype.onChange=sG.prototype.onChange;sG.prototype.onChangeStart=sG.prototype.onChangeStart; -sG.prototype.setRange=sG.prototype.setRange;function uG(a,b){sG.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.D=W("div");this.D.classList.add("shaka-ad-markers");this.container.insertBefore(this.D,this.container.childNodes[0]);this.H=this.controls.g;this.u=new yf(function(){var d=c.getValue();c.player.T()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.B=new yf(function(){vG(c)});this.L=!1;this.h=W("div");this.h.id="shaka-player-ui-thumbnail-container"; -this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.J=W("div");this.J.id="shaka-player-ui-thumbnail-time-container";this.G=W("div");this.G.id="shaka-player-ui-thumbnail-time";this.J.appendChild(this.G);this.h.appendChild(this.g);this.h.appendChild(this.J);this.container.appendChild(this.h);this.j=W("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.m=null;this.I=!1;this.s=new yf(function(){wG(c)});this.C=[];this.eventManager.o(this.localization, -"locale-updated",function(){return xG(c)});this.eventManager.o(this.localization,"locale-changed",function(){return xG(c)});this.eventManager.o(this.adManager,"ad-started",function(){yG(c)||dG(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){yG(c)&&dG(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.C=d.cuepoints;zG(c)});this.eventManager.o(this.player,"unloading",function(){c.C=[];zG(c);c.l&&(c.l.abort(),c.l=null);c.m=null;wG(c); -AG(c)});this.eventManager.o(this.bar,"mousemove",function(d){var e=c.bar.getBoundingClientRect(),f=parseFloat(c.bar.min),g=parseFloat(c.bar.max);d=Math.max(0,d.clientX-e.left);e=Math.min(g,Math.round(f+(g-f)/e.width*d));c.player.gh().length?(AG(c),BG(c,d,e)):(wG(c),CG(c,d,e))});this.eventManager.o(this.container,"mouseleave",function(){AG(c);c.s.stop();c.s.X(.25)});this.setValue(this.video.currentTime);this.update();xG(this);this.ad&&dG(this.container,!1)}pa(uG,sG);p=uG.prototype; -p.release=function(){this.u&&(this.u.stop(),this.u=null,this.B.stop(),this.B=null);sG.prototype.release.call(this)};p.onChangeStart=function(){this.L=!this.video.paused;this.controls.Xh(!0);this.video.pause();this.s.stop();this.I=!0};p.onChange=function(){if(this.video.duration)if(this.update(),this.u.X(.125),this.player.gh().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());BG(this,(d-a)/((b-a)/c.width),d)}else wG(this)}; -p.onChangeEnd=function(){this.u.Ja();this.controls.Xh(!1);this.L&&this.video.play();this.I&&(this.I=!1,this.s.stop(),this.s.X(.25))};p.isShowing=function(){return!this.container.classList.contains("shaka-hidden")}; -p.update=function(){var a=this.H.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0;c=this.player.xa();var f=c.end-c.start;this.setRange(c.start,c.end);yG(this)?(dG(this.container,!0),d=(Math.max(d,c.start)-c.start)/f||0,e=(Math.min(e,c.end)-c.start)/f||0,b=(Math.min(Math.max(b,c.start),c.end)-c.start)/f||0,this.container.style.background="linear-gradient("+["to right",(this.H.showUnbufferedStart?a.base:a.played)+" "+ -100*d+"%",a.played+" "+100*d+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")"):dG(this.container,!1)}; -function vG(a){if(a.C.length){for(var b=a.player.xa(),c=b.end-b.start,d=["to right"],e=[],f=a.H.seekBarColors.adBreaks,g=!1,h=u(a.C),k=h.next();!k.done;k=h.next())if(k=k.value,-1==k.start&&!k.end)g=!0;else if(!k.end&&k.start>=b.start||"number"==typeof k.end&&k.end>b.start){var l=(Math.max(k.start,b.start)-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}e=e.sort(function(n,q){return n.start-q.start});b=u(e);for(c=b.next();!c.done;c=b.next())c=c.value,d.push("transparent "+ -100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.D.style.background="linear-gradient("+d.join(",")+")"}else a.D.style.background="transparent",a.B.stop()}function zG(a){function b(){vG(a);var c=a.player.xa();c=c.end-c.start;a.player.T()&&5b||!isFinite(b))?!1:null==a.ad||!a.ad.isLinear()}function xG(a){a.bar.ariaLabel=a.localization.resolve("SEEK")} -function CG(a,b,c){var d=a.j.clientWidth;a.j.style.width="auto";a.j.style.height="20px";a.j.style.top="-30px";a.j.style.left=Math.min(a.bar.offsetWidth-d,Math.max(0,b-d/2))+"px";a.j.style.right="";a.j.style.visibility="visible";b=a.player.xa();a.player.T()?(c=b.end-c,1>c?(a.j.textContent=a.localization.resolve("LIVE"),a.j.style.left="",a.j.style.right="0px"):a.j.textContent="-"+DG(c)):a.j.textContent=DG(c-b.start)} -function BG(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t,w,v,y,z,A;Q(function(B){switch(B.g){case 1:return 0>c&&(c=0),d=a.player.xa(),e=Math.max(Math.ceil(d.start),Math.min(Math.floor(d.end),c)),a.player.T()?(f=d.end-c,a.G.textContent=1>f?a.localization.resolve("LIVE"):"-"+DG(f)):a.G.textContent=DG(c),F(B,a.player.Ri(null,e),2);case 2:g=B.h;if(!g||!g.uris||!g.uris.length)return wG(a),CG(a,b,c),B.return();g.width';ta(B, -5);q=bh;r=ym(g.uris,g.startByte,g.endByte,a.player.getConfiguration().streaming.retryParameters);a.l=a.player.Hb().request(q,r,{type:1});return F(B,a.l.promise,7);case 7:t=B.h;a.l=null;"mjpg"==g.codecs?(w=(new kh).box("mdat",uh(function(D){n=URL.createObjectURL(new Blob([D],{type:"image/jpeg"}))})),w.parse(t.data,!1)):(v=g.mimeType||"image/jpeg",y=new Blob([t.data],{type:v}),n=URL.createObjectURL(y));wa(B,4);break;case 5:z=xa(B);if(7001==z.code)return B.return();throw z;case 4:try{a.h.removeChild(a.g)}catch(D){}a.g= +function BG(a,b){var c=a.bar.getBoundingClientRect(),d=parseFloat(a.bar.min),e=parseFloat(a.bar.max);a=parseFloat(a.bar.step)||1;var f=c.left+6;c=c.right-6;b=d+(Math.max(f,Math.min(c,b))-f)/(c-f)*(e-d);b=Math.round((b-d)/a)*a+d;return b=Math.min(e,Math.max(d,b))}function AG(a,b){b.preventDefault();a.bar.value=BG(a,b.changedTouches[0].clientX)}S("shaka.ui.RangeElement",zG);zG.prototype.setValue=zG.prototype.setValue;zG.prototype.getValue=zG.prototype.getValue;zG.prototype.changeTo=zG.prototype.changeTo; +zG.prototype.onChangeEnd=zG.prototype.onChangeEnd;zG.prototype.onChange=zG.prototype.onChange;zG.prototype.onChangeStart=zG.prototype.onChangeStart;zG.prototype.setRange=zG.prototype.setRange;function CG(a,b){zG.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.D=W("div");this.D.classList.add("shaka-ad-markers");this.container.insertBefore(this.D,this.container.childNodes[0]);this.H=this.controls.g;this.u=new zf(function(){var d=c.getValue();c.player.T()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.B=new zf(function(){DG(c)});this.L=!1;this.h=W("div");this.h.id="shaka-player-ui-thumbnail-container"; +this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.J=W("div");this.J.id="shaka-player-ui-thumbnail-time-container";this.G=W("div");this.G.id="shaka-player-ui-thumbnail-time";this.J.appendChild(this.G);this.h.appendChild(this.g);this.h.appendChild(this.J);this.container.appendChild(this.h);this.j=W("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.m=null;this.I=!1;this.s=new zf(function(){EG(c)});this.C=[];this.eventManager.o(this.bar, +"input",function(){c.controls.Mc()});this.eventManager.o(this.localization,"locale-updated",function(){return FG(c)});this.eventManager.o(this.localization,"locale-changed",function(){return FG(c)});this.eventManager.o(this.adManager,"ad-started",function(){GG(c)||kG(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){GG(c)&&kG(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.C=d.cuepoints;HG(c)});this.eventManager.o(this.player,"unloading", +function(){c.C=[];HG(c);c.l&&(c.l.abort(),c.l=null);c.m=null;EG(c);IG(c)});this.eventManager.o(this.bar,"mousemove",function(d){if(c.controls.Dc())IG(c),EG(c);else{var e=BG(c,d.clientX),f=c.bar.getBoundingClientRect();d=Math.max(0,d.clientX-f.left);c.player.hh().length?(IG(c),JG(c,d,e)):(EG(c),KG(c,d,e))}});this.eventManager.o(this.container,"mouseleave",function(){IG(c);c.s.stop();c.s.X(.25)});this.setValue(this.video.currentTime);this.update();FG(this);this.ad&&kG(this.container,!1)}pa(CG,zG); +p=CG.prototype;p.release=function(){this.u&&(this.u.stop(),this.u=null,this.B.stop(),this.B=null);zG.prototype.release.call(this)};p.onChangeStart=function(){this.L=!this.video.paused;this.controls.Yh(!0);this.video.pause();this.s.stop();this.I=!0}; +p.onChange=function(){if(this.video.duration)if(this.update(),this.u.X(.125),this.player.hh().length&&!this.controls.Dc()){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());JG(this,(d-a)/((b-a)/c.width),d)}else EG(this)};p.onChangeEnd=function(){this.u.Ka();this.controls.Yh(!1);this.L&&this.video.play();this.I&&(this.I=!1,this.s.stop(),this.s.X(.25))};p.isShowing=function(){return!this.container.classList.contains("shaka-hidden")}; +p.update=function(){var a=this.H.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0;c=this.player.xa();var f=c.end-c.start;this.setRange(c.start,c.end);GG(this)?(kG(this.container,!0),d=(Math.max(d,c.start)-c.start)/f||0,e=(Math.min(e,c.end)-c.start)/f||0,b=(Math.min(Math.max(b,c.start),c.end)-c.start)/f||0,this.container.style.background="linear-gradient("+["to right",(this.H.showUnbufferedStart?a.base:a.played)+" "+ +100*d+"%",a.played+" "+100*d+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")"):kG(this.container,!1)}; +function DG(a){if(a.C.length){for(var b=a.player.xa(),c=b.end-b.start,d=["to right"],e=[],f=a.H.seekBarColors.adBreaks,g=!1,h=t(a.C),k=h.next();!k.done;k=h.next())if(k=k.value,-1==k.start&&!k.end)g=!0;else if(!k.end&&k.start>=b.start||"number"==typeof k.end&&k.end>b.start){var l=(Math.max(k.start,b.start)-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}e=e.sort(function(n,q){return n.start-q.start});b=t(e);for(c=b.next();!c.done;c=b.next())c=c.value,d.push("transparent "+ +100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.D.style.background="linear-gradient("+d.join(",")+")"}else a.D.style.background="transparent",a.B.stop()}function HG(a){function b(){DG(a);var c=a.player.xa();c=c.end-c.start;a.player.T()&&5b||!isFinite(b))?!1:null==a.ad||!a.ad.isLinear()}function FG(a){a.bar.ariaLabel=a.localization.resolve("SEEK")} +function KG(a,b,c){var d=a.j.clientWidth;a.j.style.width="auto";a.j.style.height="20px";a.j.style.top="-30px";a.j.style.left=Math.min(a.bar.offsetWidth-d,Math.max(0,b-d/2))+"px";a.j.style.right="";a.j.style.visibility="visible";b=a.player.xa();a.player.T()?(c=b.end-c,1>c?(a.j.textContent=a.localization.resolve("LIVE"),a.j.style.left="",a.j.style.right="0px"):a.j.textContent="-"+lG(c,3600<=c)):(c-=b.start,a.j.textContent=lG(c,3600<=c))} +function JG(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A;Q(function(B){switch(B.g){case 1:return 0>c&&(c=0),d=a.player.xa(),e=Math.max(Math.ceil(d.start),Math.min(Math.floor(d.end),c)),a.player.T()?(f=d.end-c,a.G.textContent=1>f?a.localization.resolve("LIVE"):"-"+lG(f,3600<=f)):a.G.textContent=lG(c,3600<=c),F(B,a.player.Si(null,e),2);case 2:g=B.h;if(!g||!g.uris||!g.uris.length)return EG(a),KG(a,b,c),B.return();g.width'; +ta(B,5);q=ch;r=Fm(g.uris,g.startByte,g.endByte,a.player.getConfiguration().streaming.retryParameters);a.l=a.player.Ib().request(q,r,{type:1});return F(B,a.l.promise,7);case 7:u=B.h;a.l=null;"mjpg"==g.codecs?(w=(new lh).box("mdat",vh(function(D){n=URL.createObjectURL(new Blob([D],{type:"image/jpeg"}))})),w.parse(u.data,!1)):(v=g.mimeType||"image/jpeg",y=new Blob([u.data],{type:v}),n=URL.createObjectURL(y));wa(B,4);break;case 5:z=xa(B);if(7001==z.code)return B.return();throw z;case 4:try{a.h.removeChild(a.g)}catch(D){}a.g= W("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=n;a.g.onload=function(){n.startsWith("blob:")&&URL.revokeObjectURL(n)};a.h.insertBefore(a.g,a.h.firstChild);case 3:A=k/g.width,g.imageHeight?a.g.height=g.imageHeight:g.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),g.imageWidth?a.g.width=g.imageWidth:g.sprite||(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+A*g.positionX+"px",a.g.style.top="-"+A*g.positionY+"px",a.g.style.transform= -"scale("+A+")",a.g.style.transformOrigin="left top",l=Math.floor(k*g.height/g.width),a.h.style.height=l+"px",a.h.style.top=-(l-h)+"px",H(B)}})}function wG(a){a.h.style.visibility="hidden"}function AG(a){a.j.style.visibility="hidden"}function DG(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}S("shaka.ui.SeekBar",uG);function EG(){}EG.prototype.create=function(a,b){return new uG(a,b)}; -uG.Factory=EG;function FG(a,b){ZF.call(this,a,b);var c=this;this.j=W("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=W("div");this.h.classList.add("shaka-skip-ad-counter");dG(this.h,!1);this.j.appendChild(this.h);this.g=Kj();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;dG(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);GG(this);this.i=new yf(function(){if(c.ad.isSkippable()){var d=Math.round(c.ad.getTimeUntilSkippable()); -0h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k- -d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function NG(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function OG(){var a=new Float32Array(4);a[3]=1;return a}function PG(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0=f;f++){var g=f*e/100,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=2*k*a/100;b.push(Math.sin(l)*h,g,Math.cos(l)*h);c.push(k/100,f/100)}}for(e=0;100>e;e++)for(a=0;100>a;a++)f=101*e+a,h=f+101,d.push(f,h,f+1),d.push(h,h+1,f+1);return{Vj:b,Sj:c,indices:d}};function RG(a,b,c,d,e){this.i=a;this.oa=b;this.s=c;this.g=d;this.u=new Oc;this.L=OG();this.h=OG();this.ea=this.na=this.$=this.l=null;this.D=JG();this.I=JG();this.N=JG();this.Y=JG();this.C=null;this.O=!1;this.J=this.B=null;this.ra=this.sa=0;this.Z=this.P=this.R=this.K=null;this.H=this.G=0;this.j=75;this.U=0;this.m=e;this.F=-1;SG(this)} -RG.prototype.release=function(){-1!=this.F&&(this.i.cancelVideoFrameCallback(this.F),this.F=-1);this.u&&(this.u.release(),this.u=null);this.B&&(this.B.stop(),this.B=null);this.J&&(this.J.stop(),this.J=null)};RG.prototype.Pd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.s.width,this.s.height);TG(this,!1)}; -function SG(a){UG(a);VG(a);WG(a);XG(a);YG(a);xl(a.i,HTMLMediaElement.HAVE_CURRENT_DATA,a.u,function(){a.i.readyState>=HTMLMediaElement.HAVE_ENOUGH_DATA&&TG(a);if("requestVideoFrameCallback"in a.i){var b=function(){-1!=a.F&&(TG(a),-1!=a.F&&(a.F=a.i.requestVideoFrameCallback(b)))};a.F=a.i.requestVideoFrameCallback(b)}else{var c;a.u.o(a.i,"canplaythrough",function(){TG(a)});a.u.o(a.i,"playing",function(){a.B&&a.B.stop();if(!c){var d=a.oa.kb();d=u(d);for(var e=d.next();!e.done;e=d.next())(e=e.value.frameRate)&& -(!c||cMath.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var q=1/Math.sqrt(d*d+e*e+m*m);d*=q;e*=q;m*=q;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(q=Math.sqrt(n*n+l*l+h*h))?(q=1/q,n*=q,l*=q,h*=q):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var t=d*l-e*n;(q=Math.sqrt(k*k+r*r+t*t))?(q=1/q,k*=q,r*=q,t*=q):t=r=k=0;b[0]=n;b[1]=k;b[2]= -d;b[3]=0;b[4]=l;b[5]=r;b[6]=e;b[7]=0;b[8]=h;b[9]=t;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+t*c);b[14]=-(d*f+e*g+m*c);b[15]=1}MG(a.L,a.D);a=b=a.Y;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15]} -function VG(a){ZG(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT)} -function WG(a){var b=$G(a,a.g.VERTEX_SHADER),c=$G(a,a.g.FRAGMENT_SHADER);a.l=a.g.createProgram();a.g.attachShader(a.l,b);a.g.attachShader(a.l,c);a.g.linkProgram(a.l);"cubemap"==a.m?(a.R=a.g.getAttribLocation(a.l,"aVertexPosition"),a.P=a.g.getAttribLocation(a.l,"aTextureCoord")):(a.R=a.g.getAttribLocation(a.l,"a_vPosition"),a.g.enableVertexAttribArray(a.R),a.P=a.g.getAttribLocation(a.l,"a_TexCoordinate"),a.g.enableVertexAttribArray(a.P))} -function $G(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.m?"attribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvarying highp vec2 vTextureCoord;\nvarying highp vec3 vLighting;\nvoid main(void) {\n gl_Position = uProjectionMatrix * uModelViewMatrix * aVertexPosition;\n vTextureCoord = aTextureCoord;\n}":"attribute vec4 a_vPosition;\n// Per-vertex texture coordinate info\nattribute vec2 a_TexCoordinate;\nuniform mat4 u_VPMatrix;\n// Passed into the fragment shader.\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nvoid main()\n{\n gl_Position = u_VPMatrix * a_vPosition;\n // Pass through texture coord\n v_TexCoordinate = a_TexCoordinate;\n pass_position = a_vPosition.xyz;\n}"; +function QG(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}function RG(a,b,c){b=1/Math.tan(b/2);a[0]=b/c;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[11]=-1;a[12]=0;a[13]=0;a[15]=0;c=1/-99.9;a[10]=100.1*c;a[14]=20*c} +function SG(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],q=b[9],r=b[10],u=b[11],w=b[12],v=b[13],y=b[14];b=b[15];var z=c[0],A=c[1],B=c[2],D=c[3];a[0]=z*d+A*h+B*n+D*w;a[1]=z*e+A*k+B*q+D*v;a[2]=z*f+A*l+B*r+D*y;a[3]=z*g+A*m+B*u+D*b;z=c[4];A=c[5];B=c[6];D=c[7];a[4]=z*d+A*h+B*n+D*w;a[5]=z*e+A*k+B*q+D*v;a[6]=z*f+A*l+B*r+D*y;a[7]=z*g+A*m+B*u+D*b;z=c[8];A=c[9];B=c[10];D=c[11];a[8]=z*d+A*h+B*n+D*w;a[9]=z*e+A*k+B*q+D*v;a[10]=z*f+A*l+B*r+D*y;a[11]=z*g+A*m+B*u+D*b;z=c[12];A=c[13]; +B=c[14];D=c[15];a[12]=z*d+A*h+B*n+D*w;a[13]=z*e+A*k+B*q+D*v;a[14]=z*f+A*l+B*r+D*y;a[15]=z*g+A*m+B*u+D*b} +function TG(a,b){var c=new Float32Array(3),d=b[0],e=b[1],f=b[2],g=b[4],h=b[5],k=b[6],l=b[8],m=b[9],n=b[10];c[0]=Math.sqrt(d*d+e*e+f*f);c[1]=Math.sqrt(g*g+h*h+k*k);c[2]=Math.sqrt(l*l+m*m+n*n);k=1/c[0];l=1/c[1];m=1/c[2];g=b[0]*k;c=b[1]*l;d=b[2]*m;e=b[4]*k;h=b[5]*l;f=b[6]*m;k*=b[8];l*=b[9];b=b[10]*m;m=g+h+b;0h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k- +d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function UG(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function VG(){var a=new Float32Array(4);a[3]=1;return a}function WG(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0=f;f++){var g=f*e/100,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=2*k*a/100;b.push(Math.sin(l)*h,g,Math.cos(l)*h);c.push(k/100,f/100)}}for(e=0;100>e;e++)for(a=0;100>a;a++)f=101*e+a,h=f+101,d.push(f,h,f+1),d.push(h,h+1,f+1);return{Wj:b,Tj:c,indices:d}};function YG(a,b,c,d,e){this.i=a;this.oa=b;this.s=c;this.g=d;this.u=new Oc;this.L=VG();this.h=VG();this.ba=this.na=this.$=this.l=null;this.D=QG();this.I=QG();this.N=QG();this.Y=QG();this.C=null;this.O=!1;this.J=this.B=null;this.ra=this.sa=0;this.Z=this.P=this.R=this.K=null;this.H=this.G=0;this.j=75;this.U=0;this.m=e;this.F=-1;ZG(this)} +YG.prototype.release=function(){-1!=this.F&&(this.i.cancelVideoFrameCallback(this.F),this.F=-1);this.u&&(this.u.release(),this.u=null);this.B&&(this.B.stop(),this.B=null);this.J&&(this.J.stop(),this.J=null)};YG.prototype.Qd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.s.width,this.s.height);$G(this,!1)}; +function ZG(a){aH(a);bH(a);cH(a);dH(a);eH(a);El(a.i,HTMLMediaElement.HAVE_CURRENT_DATA,a.u,function(){a.i.readyState>=HTMLMediaElement.HAVE_ENOUGH_DATA&&$G(a);if("requestVideoFrameCallback"in a.i){var b=function(){-1!=a.F&&($G(a),-1!=a.F&&(a.F=a.i.requestVideoFrameCallback(b)))};a.F=a.i.requestVideoFrameCallback(b)}else{var c;a.u.o(a.i,"canplaythrough",function(){$G(a)});a.u.o(a.i,"playing",function(){a.B&&a.B.stop();if(!c){var d=a.oa.qb();d=t(d);for(var e=d.next();!e.done;e=d.next())(e=e.value.frameRate)&& +(!c||cMath.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var q=1/Math.sqrt(d*d+e*e+m*m);d*=q;e*=q;m*=q;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(q=Math.sqrt(n*n+l*l+h*h))?(q=1/q,n*=q,l*=q,h*=q):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var u=d*l-e*n;(q=Math.sqrt(k*k+r*r+u*u))?(q=1/q,k*=q,r*=q,u*=q):u=r=k=0;b[0]=n;b[1]=k;b[2]= +d;b[3]=0;b[4]=l;b[5]=r;b[6]=e;b[7]=0;b[8]=h;b[9]=u;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+u*c);b[14]=-(d*f+e*g+m*c);b[15]=1}TG(a.L,a.D);a=b=a.Y;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15]} +function bH(a){fH(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT)} +function cH(a){var b=gH(a,a.g.VERTEX_SHADER),c=gH(a,a.g.FRAGMENT_SHADER);a.l=a.g.createProgram();a.g.attachShader(a.l,b);a.g.attachShader(a.l,c);a.g.linkProgram(a.l);"cubemap"==a.m?(a.R=a.g.getAttribLocation(a.l,"aVertexPosition"),a.P=a.g.getAttribLocation(a.l,"aTextureCoord")):(a.R=a.g.getAttribLocation(a.l,"a_vPosition"),a.g.enableVertexAttribArray(a.R),a.P=a.g.getAttribLocation(a.l,"a_TexCoordinate"),a.g.enableVertexAttribArray(a.P))} +function gH(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.m?"attribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvarying highp vec2 vTextureCoord;\nvarying highp vec3 vLighting;\nvoid main(void) {\n gl_Position = uProjectionMatrix * uModelViewMatrix * aVertexPosition;\n vTextureCoord = aTextureCoord;\n}":"attribute vec4 a_vPosition;\n// Per-vertex texture coordinate info\nattribute vec2 a_TexCoordinate;\nuniform mat4 u_VPMatrix;\n// Passed into the fragment shader.\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nvoid main()\n{\n gl_Position = u_VPMatrix * a_vPosition;\n // Pass through texture coord\n v_TexCoordinate = a_TexCoordinate;\n pass_position = a_vPosition.xyz;\n}"; break;case a.g.FRAGMENT_SHADER:c="cubemap"==a.m?"varying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;\nvoid main(void) {\n highp vec4 texelColor = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(texelColor.rgb , texelColor.a);\n}":"precision highp float;\n#define PI 3.141592653589793238462643383279\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\nhighp float xValue =\n (PI + atan(pass_position.z, pass_position.x)) / (2.0 * PI);\n vec2 tc = vec2(xValue, v_TexCoordinate.t);\n tc = vec2(tc.x , tc.y);\nhighp vec4 texelColor =\n texture2D(uSampler, tc);\n gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n}"; break;default:return null}b=a.g.createShader(b);a.g.shaderSource(b,c);a.g.compileShader(b);return b} -function XG(a){a.K="cubemap"==a.m?{Vj:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],Sj:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]}:"halfequirectangular"==a.m?QG(!0): -QG();a.$=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.$);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Vj),a.g.STATIC_DRAW);a.na=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.na);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Sj),a.g.STATIC_DRAW);a.ea=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ea);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.K.indices),a.g.STATIC_DRAW)} -function YG(a){a.Z=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.Z);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST)} -function TG(a,b){b=void 0===b?!0:b;var c=a.oa.m==Iq;if(!(!a.i||2>a.i.readyState||!c&&0==a.i.playbackRate)){KG(a.I,a.j*Math.PI/180,1.5625);"cubemap"==a.m?KG(a.I,a.j*Math.PI/180,2.5):KG(a.I,a.j*Math.PI/180,1.5625);a.g.useProgram(a.l);a.g.clear(a.g.COLOR_BUFFER_BIT);ZG(a);b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.Z),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.i));if("equirectangular"==a.m||"halfequirectangular"== -a.m)LG(a.N,a.D,a.Y),LG(a.N,a.I,a.N);a.g.bindBuffer(a.g.ARRAY_BUFFER,a.$);a.g.vertexAttribPointer(a.R,3,a.g.FLOAT,!1,0,0);a.g.enableVertexAttribArray(a.R);a.g.bindBuffer(a.g.ARRAY_BUFFER,a.na);a.g.vertexAttribPointer(a.P,2,a.g.FLOAT,!1,0,0);a.g.enableVertexAttribArray(a.P);a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ea);"cubemap"==a.m?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"uModelViewMatrix"),!1,a.N)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l, +function dH(a){a.K="cubemap"==a.m?{Wj:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],Tj:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]}:"halfequirectangular"==a.m?XG(!0): +XG();a.$=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.$);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Wj),a.g.STATIC_DRAW);a.na=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.na);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Tj),a.g.STATIC_DRAW);a.ba=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ba);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.K.indices),a.g.STATIC_DRAW)} +function eH(a){a.Z=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.Z);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST)} +function $G(a,b){b=void 0===b?!0:b;var c=a.oa.m==Qq;if(!(!a.i||2>a.i.readyState||!c&&0==a.i.playbackRate)){RG(a.I,a.j*Math.PI/180,1.5625);"cubemap"==a.m?RG(a.I,a.j*Math.PI/180,2.5):RG(a.I,a.j*Math.PI/180,1.5625);a.g.useProgram(a.l);a.g.clear(a.g.COLOR_BUFFER_BIT);fH(a);b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.Z),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.i));if("equirectangular"==a.m||"halfequirectangular"== +a.m)SG(a.N,a.D,a.Y),SG(a.N,a.I,a.N);a.g.bindBuffer(a.g.ARRAY_BUFFER,a.$);a.g.vertexAttribPointer(a.R,3,a.g.FLOAT,!1,0,0);a.g.enableVertexAttribArray(a.R);a.g.bindBuffer(a.g.ARRAY_BUFFER,a.na);a.g.vertexAttribPointer(a.P,2,a.g.FLOAT,!1,0,0);a.g.enableVertexAttribArray(a.P);a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ba);"cubemap"==a.m?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"uModelViewMatrix"),!1,a.N)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l, "u_VPMatrix"),!1,a.N);a.g.uniform1i(a.g.getUniformLocation(a.l,"uSampler"),0);a.O&&a.g.viewport(0,0,a.s.width/2,a.s.height);a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0);a.O&&(a.g.viewport(a.s.width/2,0,a.s.width/2,a.s.height),a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0))}} -function ZG(a){var b=a.i.videoWidth;b||(b=a.s.scrollWidth);var c=a.i.videoHeight;c||(c=a.s.scrollHeight);if(a.sa!==b||a.ra!==c){a.s.width=b;a.s.height=c;a.sa=b;a.ra=c;var d=b/c,e=a.I,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.I=e;a.g.viewport(0,0,b,c)}} -function aH(a,b,c,d){var e=Infinity,f=90*Math.PI/180;"halfequirectangular"==a.m&&(e=90*Math.PI/180,f/=2);var g="cubemap"==a.m?a.N:a.D;a.G+=b;a.H+=c;if(a.G-e){e=Math.sin(b);b=Math.cos(b);var h=g[0],k=g[1],l=g[2],m=g[3],n=g[8],q=g[9],r=g[10],t=g[11];g!==g&&(g[4]=g[4],g[5]=g[5],g[6]=g[6],g[7]=g[7],g[12]=g[12],g[13]=g[13],g[14]=g[14],g[15]=g[15]);g[0]=h*b-n*e;g[1]=k*b-q*e;g[2]=l*b-r*e;g[3]=m*b-t*e;g[8]=h*e+n*b;g[9]=k*e+q*b;g[10]=l*e+r*b;g[11]=m*e+t*b}else a.G-=b;a.H-f?(f=JG(),e=JG(),b= --1*c,c=Math.sin(b),b=Math.cos(b),h=e[4],k=e[5],l=e[6],m=e[7],n=e[8],q=e[9],r=e[10],t=e[11],e!==f&&(f[0]=e[0],f[1]=e[1],f[2]=e[2],f[3]=e[3],f[12]=e[12],f[13]=e[13],f[14]=e[14],f[15]=e[15]),f[4]=h*b+n*c,f[5]=k*b+q*c,f[6]=l*b+r*c,f[7]=m*b+t*c,f[8]=n*b-h*c,f[9]=q*b-k*c,f[10]=r*b-l*c,f[11]=t*b-m*c,LG(g,f,g)):a.H-=c;c=JG();f=JG();e=Math.sin(d);d=Math.cos(d);b=f[0];h=f[1];k=f[2];l=f[3];m=f[4];n=f[5];q=f[6];r=f[7];f!==c&&(c[8]=f[8],c[9]=f[9],c[10]=f[10],c[11]=f[11],c[12]=f[12],c[13]=f[13],c[14]=f[14],c[15]= -f[15]);c[0]=b*d+m*e;c[1]=h*d+n*e;c[2]=k*d+q*e;c[3]=l*d+r*e;c[4]=m*d-b*e;c[5]=n*d-h*e;c[6]=q*d-k*e;c[7]=r*d-l*e;LG(g,c,g);TG(a,!1)} -function bH(a,b){if(void 0===b||b)MG(a.h,a.D),a.U=0,a.C=OG(),a.C[0]=(a.h[0]-a.L[0])/20,a.C[1]=(a.h[1]-a.L[1])/20,a.C[2]=(a.h[2]-a.L[2])/20,a.C[3]=(a.h[3]-a.L[3])/20;a.h[0]-=a.C[0];a.h[1]-=a.C[1];a.h[2]-=a.C[2];a.h[3]-=a.C[3];b=JG();PG(a.h,a.h);NG(b,a.h);a.D=b;a.J&&(a.J.stop(),a.J=null);20>a.U?a.J=(new yf(function(){bH(a,!1);a.G=0;a.H=0;a.U++;TG(a,!1)})).X(.025):(NG(b,a.L),a.D=b)};function cH(a,b,c,d,e){jb.call(this);var f=this;this.i=a;this.j=b;this.F=c;this.J=d;this.u=e;this.s=new Oc;this.h=new Oc;this.B=dH(this.j);this.g=null;this.l=!1;this.I=this.H=this.G=this.D=this.C=0;this.m=null;this.s.o(d,"loading",function(){f.g&&bH(f.g);eH(f)});this.s.o(d,"spatialvideoinfo",function(g){g=g.detail;switch(g.projection){case "hequ":switch(g.hfov){case 360:f.m="equirectangular";break;case 180:f.m="halfequirectangular"}break;case "fish":f.m="equirectangular";break;default:f.m=null}eH(f)}); -this.s.o(d,"nospatialvideoinfo",function(){f.m=null;eH(f)});this.s.o(d,"unloading",function(){f.m=null;eH(f)});eH(this)}pa(cH,jb);p=cH.prototype;p.release=function(){this.s&&(this.s.release(),this.s=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);jb.prototype.release.call(this)};p.configure=function(a){this.u=a;eH(this)};p.Dg=function(){return this.j?!!this.B:!!dH(document.createElement("canvas"))};p.Sb=function(){return!!this.g}; -p.Pd=function(){this.g?this.g.Pd():ab("Not playing VR content")};p.ph=function(a){this.g?aH(this.g,a*fH,0,0):ab("Not playing VR content")};p.nh=function(a){this.g?aH(this.g,0,a*fH,0):ab("Not playing VR content")};p.oh=function(a){this.g?aH(this.g,0,0,a*fH):ab("Not playing VR content")}; -function eH(a){if(a.u.displayInVrMode||a.m){a.j||(a.j=document.createElement("canvas"),a.j.classList.add("shaka-vr-canvas-container"),a.F.parentElement.insertBefore(a.j,a.F.nextElementSibling),a.B=dH(a.j));var b=a.m||a.u.defaultVrProjectionMode;a.g?a.g.m!=b&&(a.h.Sa(),a.g.release(),gH(a,b)):(a.j.style.display="",gH(a,b),a.dispatchEvent(new U("vrstatuschanged",(new Map).set("newStatus",a.Sb()))))}else!a.u.displayInVrMode&&!a.m&&a.j&&a.g&&(a.j.style.display="none",a.h.Sa(),a.g.release(),a.g=null,a.dispatchEvent(new U("vrstatuschanged", -(new Map).set("newStatus",a.Sb()))))}function gH(a,b){a.B&&a.j&&(a.g=new RG(a.F,a.J,a.j,a.B,b),hH(a))}function dH(a){if(!a)return null;var b=Rb().Ia();if("TV"==b||"CONSOLE"==b||"CAST"==b)return null;b=u(["webgl2","webgl"]);for(var c=b.next();!c.done;c=b.next())if(c=a.getContext(c.value))return c;return null} -function hH(a){a.h.o(a.i,"mousedown",function(d){if(!a.l){var e=d.clientX;d=d.clientY;a.l=!0;a.C=e;a.D=d}});0=e.j&&(e.j+=f);20>e.j?e.j=20:100\n \n \n \n \n \n \n \n ')} -function BH(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.Za=new qG(b,a);a.H.push(a.Za)}function CH(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.eb=new rG(b,a);a.H.push(a.eb)} -function DH(a){a.L=W("div");a.L.classList.add("shaka-bottom-controls");a.L.classList.add("shaka-no-propagation");a.h.appendChild(a.L);a.i.o(a.L,"click",function(e){e.target.closest(".shaka-overflow-button")||a.Xc()});LH(a);MH(a);a.G=W("div");a.G.classList.add("shaka-controls-button-panel");a.G.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.G.classList.add("shaka-tooltips-on");a.L.appendChild(a.G);for(var b=u(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())if(c=c.value, -vH.get(c)){var d=vH.get(c).create(a.G,a);a.H.push(d);"time_and_duration"==c&&(c=new fG(a.G,a),a.H.push(c))}else ab("Unrecognized control panel element requested:",c)}function MH(a){if(a.g.addSeekBar)a.s=NH.create(a.L,a),a.H.push(a.s);else{for(var b=u(a.I),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a=a.G;a.classList.contains("shaka-tooltips-on")&&a.classList.add("shaka-tooltips-low-position")}} -function xH(a){a.F=W("div");a.F.classList.add("shaka-client-side-ad-container");dG(a.F,!1);a.i.o(a.F,"click",function(){pG(a)});a.l.appendChild(a.F)} -function pH(a){a.i.o(a.u,"buffering",function(){OH(a)});OH(a);a.i.o(window,"keydown",function(b){PH(a,b)});a.i.o(window,"click",function(){return a.Xc()});a.i.o(a,"submenuopen",function(){a.Xc()});a.i.o(a.B,"play",function(){kH(a)});a.i.o(a.B,"pause",function(){kH(a)});a.i.o(a.l,"mousemove",function(b){KH(a,b)});a.i.o(a.l,"touchmove",function(b){KH(a,b)},{passive:!0});a.i.o(a.l,"touchend",function(b){KH(a,b)},{passive:!0});a.i.o(a.l,"mouseleave",function(){a.O||a.J.Ja()});a.i.o(a.l,"wheel",function(b){KH(a, -b)},{passive:!0});a.i.o(a.D,"caststatuschanged",function(){rH(a)});a.i.o(a.C,"vrstatuschanged",function(){a.dispatchEvent(new U("vrstatuschanged"))});a.i.o(a.l,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&KH(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.s&&e&&!d&&0< -c&&(b.preventDefault(),QH(a,a.s.getValue()-c));break;case "ArrowRight":a.s&&e&&!d&&0Math.abs(g-f)&&(g=Infinity);try{navigator.mediaSession.setPositionState({duration:Math.max(0,g),playbackRate:a.B.playbackRate,position:Math.max(0,f)})}catch(h){}}},d=function(){try{navigator.mediaSession.setPositionState()}catch(f){}}, -e=function(f){var g=a.g.keyboardSeekDistance;switch(f.action){case "pause":mG(a);break;case "play":mG(a);break;case "seekbackward":if(f.seekOffset&&!isFinite(f.seekOffset))break;a.j&&a.j.isLinear()||QH(a,a.s.getValue()-(f.seekOffset||g));break;case "seekforward":if(f.seekOffset&&!isFinite(f.seekOffset))break;a.j&&a.j.isLinear()||QH(a,a.s.getValue()+(f.seekOffset||g));break;case "seekto":if(f.seekTime&&!isFinite(f.seekTime))break;a.j&&a.j.isLinear()||QH(a,a.u.xa().start+f.seekTime);break;case "stop":a.u.kc(); -break;case "enterpictureinpicture":a.j&&a.j.isLinear()||a.md()}};b("pause",e);b("play",e);b("seekbackward",e);b("seekforward",e);b("seekto",e);b("stop",e);("documentPictureInPicture"in window||document.pictureInPictureEnabled)&&b("enterpictureinpicture",e);b=function(){a.u.T()||0!=a.u.xa().start?(c(),a.i.o(a.B,"timeupdate",c)):d()};a.u.Y&&b();a.i.o(a.u,"loaded",b);a.i.o(a.u,"unloading",function(){a.i.Ca(a.B,"timeupdate",c)});a.i.o(a.u,"metadata",function(f){if(f=f.payload){var g;"TIT2"==f.key&&f.data&& +function fH(a){var b=a.i.videoWidth;b||(b=a.s.scrollWidth);var c=a.i.videoHeight;c||(c=a.s.scrollHeight);if(a.sa!==b||a.ra!==c){a.s.width=b;a.s.height=c;a.sa=b;a.ra=c;var d=b/c,e=a.I,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.I=e;a.g.viewport(0,0,b,c)}} +function hH(a,b,c,d){var e=Infinity,f=90*Math.PI/180;"halfequirectangular"==a.m&&(e=90*Math.PI/180,f/=2);var g="cubemap"==a.m?a.N:a.D;a.G+=b;a.H+=c;if(a.G-e){e=Math.sin(b);b=Math.cos(b);var h=g[0],k=g[1],l=g[2],m=g[3],n=g[8],q=g[9],r=g[10],u=g[11];g!==g&&(g[4]=g[4],g[5]=g[5],g[6]=g[6],g[7]=g[7],g[12]=g[12],g[13]=g[13],g[14]=g[14],g[15]=g[15]);g[0]=h*b-n*e;g[1]=k*b-q*e;g[2]=l*b-r*e;g[3]=m*b-u*e;g[8]=h*e+n*b;g[9]=k*e+q*b;g[10]=l*e+r*b;g[11]=m*e+u*b}else a.G-=b;a.H-f?(f=QG(),e=QG(),b= +-1*c,c=Math.sin(b),b=Math.cos(b),h=e[4],k=e[5],l=e[6],m=e[7],n=e[8],q=e[9],r=e[10],u=e[11],e!==f&&(f[0]=e[0],f[1]=e[1],f[2]=e[2],f[3]=e[3],f[12]=e[12],f[13]=e[13],f[14]=e[14],f[15]=e[15]),f[4]=h*b+n*c,f[5]=k*b+q*c,f[6]=l*b+r*c,f[7]=m*b+u*c,f[8]=n*b-h*c,f[9]=q*b-k*c,f[10]=r*b-l*c,f[11]=u*b-m*c,SG(g,f,g)):a.H-=c;c=QG();f=QG();e=Math.sin(d);d=Math.cos(d);b=f[0];h=f[1];k=f[2];l=f[3];m=f[4];n=f[5];q=f[6];r=f[7];f!==c&&(c[8]=f[8],c[9]=f[9],c[10]=f[10],c[11]=f[11],c[12]=f[12],c[13]=f[13],c[14]=f[14],c[15]= +f[15]);c[0]=b*d+m*e;c[1]=h*d+n*e;c[2]=k*d+q*e;c[3]=l*d+r*e;c[4]=m*d-b*e;c[5]=n*d-h*e;c[6]=q*d-k*e;c[7]=r*d-l*e;SG(g,c,g);$G(a,!1)} +function iH(a,b){if(void 0===b||b)TG(a.h,a.D),a.U=0,a.C=VG(),a.C[0]=(a.h[0]-a.L[0])/20,a.C[1]=(a.h[1]-a.L[1])/20,a.C[2]=(a.h[2]-a.L[2])/20,a.C[3]=(a.h[3]-a.L[3])/20;a.h[0]-=a.C[0];a.h[1]-=a.C[1];a.h[2]-=a.C[2];a.h[3]-=a.C[3];b=QG();WG(a.h,a.h);UG(b,a.h);a.D=b;a.J&&(a.J.stop(),a.J=null);20>a.U?a.J=(new zf(function(){iH(a,!1);a.G=0;a.H=0;a.U++;$G(a,!1)})).X(.025):(UG(b,a.L),a.D=b)};function jH(a,b,c,d,e){jb.call(this);var f=this;this.i=a;this.l=b;this.F=c;this.J=d;this.u=e;this.s=new Oc;this.h=new Oc;this.B=kH(this.l);this.g=null;this.m=!1;this.I=this.H=this.G=this.D=this.C=0;this.j=null;this.s.o(d,"loading",function(){f.g&&iH(f.g);lH(f)});this.s.o(d,"spatialvideoinfo",function(g){g=g.detail;switch(g.projection){case "rect":f.j=null;break;case "equi":f.j="equirectangular";break;case "hequ":switch(g.hfov){case 360:f.j="equirectangular";break;case 180:f.j="halfequirectangular"; +break;default:null==g.hfov?f.j="halfequirectangular":f.j=null}break;case "fish":f.j="halfequirectangular";break;default:f.j=null}lH(f)});this.s.o(d,"nospatialvideoinfo",function(){f.j=null;lH(f)});this.s.o(d,"unloading",function(){f.j=null;lH(f)});lH(this)}pa(jH,jb);p=jH.prototype;p.release=function(){this.s&&(this.s.release(),this.s=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);jb.prototype.release.call(this)};p.configure=function(a){this.u=a;lH(this)}; +p.Eg=function(){return this.l?!!this.B:!!kH(document.createElement("canvas"))};p.Tb=function(){return!!this.g};p.Qd=function(){this.g?this.g.Qd():ab("Not playing VR content")};p.qh=function(a){this.g?hH(this.g,a*mH,0,0):ab("Not playing VR content")};p.oh=function(a){this.g?hH(this.g,0,a*mH,0):ab("Not playing VR content")};p.ph=function(a){this.g?hH(this.g,0,0,a*mH):ab("Not playing VR content")}; +function lH(a){if(a.u.displayInVrMode||a.j){a.l||(a.l=document.createElement("canvas"),a.l.classList.add("shaka-vr-canvas-container"),a.F.parentElement.insertBefore(a.l,a.F.nextElementSibling),a.B=kH(a.l));var b=a.j||a.u.defaultVrProjectionMode;a.g?a.g.m!=b&&(a.h.Sa(),a.g.release(),nH(a,b)):(a.l.style.display="",nH(a,b),a.dispatchEvent(new U("vrstatuschanged",(new Map).set("newStatus",a.Tb()))))}else!a.u.displayInVrMode&&!a.j&&a.l&&a.g&&(a.l.style.display="none",a.h.Sa(),a.g.release(),a.g=null,a.dispatchEvent(new U("vrstatuschanged", +(new Map).set("newStatus",a.Tb()))))}function nH(a,b){a.B&&a.l&&(a.g=new YG(a.F,a.J,a.l,a.B,b),oH(a))}function kH(a){if(!a)return null;var b=Rb().Ja();if("TV"==b||"CONSOLE"==b||"CAST"==b)return null;b=t(["webgl2","webgl"]);for(var c=b.next();!c.done;c=b.next())if(c=a.getContext(c.value))return c;return null} +function oH(a){a.h.o(a.i,"mousedown",function(d){if(!a.m){var e=d.clientX;d=d.clientY;a.m=!0;a.C=e;a.D=d}});0=e.j&&(e.j+=f);20>e.j?e.j=20:100\n \n \n \n \n \n \n \n ')} +function IH(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.Ya=new xG(b,a);a.H.push(a.Ya)}function JH(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.cb=new yG(b,a);a.H.push(a.cb)} +function KH(a){a.L=W("div");a.L.classList.add("shaka-bottom-controls");a.L.classList.add("shaka-no-propagation");a.h.appendChild(a.L);a.i.o(a.L,"click",function(e){e.target.closest(".shaka-overflow-button")||a.Mc()});SH(a);TH(a);a.F=W("div");a.F.classList.add("shaka-controls-button-panel");a.F.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.F.classList.add("shaka-tooltips-on");a.L.appendChild(a.F);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())if(c=c.value, +CH.get(c)){var d=CH.get(c).create(a.F,a);a.H.push(d);"time_and_duration"==c&&(c=new mG(a.F,a),a.H.push(c))}else ab("Unrecognized control panel element requested:",c)}function TH(a){if(a.g.addSeekBar)a.u=UH.create(a.L,a),a.H.push(a.u);else{for(var b=t(a.I),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a=a.F;a.classList.contains("shaka-tooltips-on")&&a.classList.add("shaka-tooltips-low-position")}} +function EH(a){a.G=W("div");a.G.classList.add("shaka-client-side-ad-container");kG(a.G,!1);a.i.o(a.G,"click",function(){wG(a)});a.l.appendChild(a.G)} +function wH(a){a.i.o(a.s,"buffering",function(){VH(a)});VH(a);a.i.o(window,"keydown",function(b){WH(a,b)});a.i.o(window,"click",function(){return a.Mc()});a.i.o(a,"submenuopen",function(){a.Mc()});a.i.o(a.B,"play",function(){rH(a)});a.i.o(a.B,"pause",function(){rH(a)});a.i.o(a.l,"mousemove",function(b){RH(a,b)});a.i.o(a.l,"touchmove",function(b){RH(a,b)},{passive:!0});a.i.o(a.l,"touchend",function(b){RH(a,b)},{passive:!0});a.i.o(a.l,"mouseleave",function(){a.O||a.J.Ka()});a.i.o(a.l,"wheel",function(b){RH(a, +b)},{passive:!0});a.i.o(a.D,"caststatuschanged",function(){yH(a)});a.i.o(a.C,"vrstatuschanged",function(){a.dispatchEvent(new U("vrstatuschanged"))});a.i.o(a.l,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&RH(a,b);if(a.g.enableKeyboardPlaybackControls&&a.s.$c()){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.u&& +e&&!d&&0Math.abs(g-f)&&(g=Infinity);try{navigator.mediaSession.setPositionState({duration:Math.max(0,g),playbackRate:a.B.playbackRate,position:Math.max(0,f)})}catch(h){}}},d=function(){try{navigator.mediaSession.setPositionState()}catch(f){}}, +e=function(f){var g=a.g.keyboardSeekDistance;switch(f.action){case "pause":tG(a);break;case "play":tG(a);break;case "seekbackward":if(f.seekOffset&&!isFinite(f.seekOffset))break;a.j&&a.j.isLinear()||XH(a,a.u.getValue()-(f.seekOffset||g));break;case "seekforward":if(f.seekOffset&&!isFinite(f.seekOffset))break;a.j&&a.j.isLinear()||XH(a,a.u.getValue()+(f.seekOffset||g));break;case "seekto":if(f.seekTime&&!isFinite(f.seekTime))break;a.j&&a.j.isLinear()||XH(a,a.s.xa().start+f.seekTime);break;case "stop":a.s.lc(); +break;case "enterpictureinpicture":a.j&&a.j.isLinear()||a.qd()}};b("pause",e);b("play",e);b("seekbackward",e);b("seekforward",e);b("seekto",e);b("stop",e);("documentPictureInPicture"in window||document.pictureInPictureEnabled)&&b("enterpictureinpicture",e);b=function(){a.s.T()||0!=a.s.xa().start?(c(),a.i.o(a.B,"timeupdate",c)):d()};a.s.Z&&b();a.i.o(a.s,"loaded",b);a.i.o(a.s,"unloading",function(){a.i.Da(a.B,"timeupdate",c)});a.i.o(a.s,"metadata",function(f){if(f=f.payload){var g;"TIT2"==f.key&&f.data&& (g=f.data);var h;"APIC"==f.key&&"--\x3e"==f.mimeType&&(h=f.data);g&&(f={title:g,artwork:[]},navigator.mediaSession.metadata&&(f=navigator.mediaSession.metadata,f.title=g),navigator.mediaSession.metadata=new MediaMetadata(f));h&&(g=a.m,h!=g.poster&&(g.poster=h),g={title:"",artwork:[{src:h}]},navigator.mediaSession.metadata&&(g=navigator.mediaSession.metadata,g.artwork=[{src:h}]),navigator.mediaSession.metadata=new MediaMetadata(g))}})}} -function tH(a){if(a.g.setupMediaSession&&navigator.mediaSession){try{navigator.mediaSession.setPositionState()}catch(b){}a=function(b){try{navigator.mediaSession.setActionHandler(b,null)}catch(c){}};a("pause");a("play");a("seekbackward");a("seekforward");a("seekto");a("stop");a("enterpictureinpicture")}} -function RH(a){return Q(function(b){return a.B&&0!=a.B.readyState&&!a.D.Pa()&&a.g.enableFullscreenOnRotation&&a.ke()?screen.orientation.type.includes("landscape")&&!a.Hc()?F(b,GH(a),0):screen.orientation.type.includes("portrait")&&a.Hc()?F(b,HH(a),0):b.A(0):b.return()})} -function KH(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),kH(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.O=Date.now():a.O+1E3.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI}else ab("Not playing VR content"),a=null;return a};p.fl=function(){var a=this.C;a.g?a=a.g.j:(ab("Not playing VR content"),a=null);return a}; -p.jm=function(a){var b=this.C;b.g?(0>a?(ab("Field of view should be greater than 0"),a=0):100.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI}else ab("Not playing VR content"),a=null;return a};p.hl=function(){var a=this.C;a.g?a=a.g.j:(ab("Not playing VR content"),a=null);return a}; +p.lm=function(a){var b=this.C;b.g?(0>a?(ab("Field of view should be greater than 0"),a=0):100=b.alpha&&(h="display");break;case "display":0>=--k&&(h="fadeOut");break;case "fadeOut":g=Math.max(0,g-l),0>=g&&(h="transition",f=d(),k=Math.round(60*b.displayDuration),h="fadeIn")}0=b.alpha&&(h="display");break;case "display":0>=--k&&(h="fadeOut");break;case "fadeOut":g=Math.max(0,g-l),0>=g&&(h="transition",f=d(),k=Math.round(60*b.displayDuration),h="fadeIn")}0b&&(c=u([c,b]),b=c.next().value,c=c.next().value);b/c>16/9&&(c=Math.round(9*b/16));a=a.controls.g.qualityMarks;return 8640<=c?c+"p":4320<=c?a["4320"]:2160<=c?a["2160"]:1440<=c?a["1440"]:1080<=c?a["1080"]:720<=c?a["720"]:""} -function RJ(a){var b=$F(a.menu);Oj(a.menu);a.menu.appendChild(b);b=0;b=a.player.zd()?WJ(a):XJ(a);var c=Kj();c.classList.add("shaka-enable-abr-button");a.eventManager.o(c,"click",function(){a.player.configure({abr:{enabled:!0}});RJ(a)});a.j=W("span");a.j.textContent=a.localization.resolve("AUTO_QUALITY");c.appendChild(a.j);a.player.getConfiguration().abr.enabled&&(c.ariaSelected="true",c.appendChild(cG()),a.j.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY")); -a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(c);bG(a.menu);a.controls.dispatchEvent(new U("resolutionselectionupdated"));QJ(a);dG(a.button,0f&&(e=u([e,f]),f=e.next().value,e=e.next().value);var g=e;f/e>16/9&&(g=Math.round(9*f/16));f=g+"p";e=new Set;g=u(c);for(var h=g.next();!h.done;h=g.next())h=h.value,h.frameRate&&e.add(Math.round(h.frameRate));1=e)&&(f+=Math.round(b.frameRate));if("PQ"==b.hdr||"HLG"==b.hdr)f+=" HDR";"CH-STEREO"== -b.videoLayout&&(f+=" 3D");if(c.some(function(l){return d(b,l)})&&(c.some(function(l){return d(b,l)&&l.bandwidth==b.bandwidth})||(f+=" ("+Math.round(b.bandwidth/1E3)+" kbits/s)"),a.controls.g.showVideoCodec)){var k=function(l){var m="";l&&(l=ff(l),m=l.startsWith("dovi-")?"Dolby Vision":l.toUpperCase());return m?" "+m:m};c.some(function(l){return d(b,l)&&k(l.codecs)!=k(b.codecs)})&&(f+=k(b.codecs))}return f} -function TJ(a,b,c){var d=Math.round(b.bandwidth/1E3)+" kbits/s";if(a.controls.g.showAudioCodec){var e=function(f){var g="";f&&(g=ff(f).toUpperCase());return g?" "+g:g};c.some(function(f){return e(f.codecs)!=e(b.codecs)})&&(d+=e(b.codecs))}return d} -function QJ(a){var b=a.player.zd()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.j.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}S("shaka.ui.ResolutionSelection",PJ);function YJ(){} -YJ.prototype.create=function(a,b){return new PJ(a,b)};ZH("quality",new YJ);uH("quality",new YJ);function ZJ(a,b){ZF.call(this,a,b);var c=this;this.g=Kj();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);$J(this);this.h=this.controls.g.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){$J(c)});this.eventManager.o(this.localization,"locale-changed",function(){$J(c)}); -this.eventManager.o(this.g,"click",function(){if(c.controls.Ba()&&c.video.duration){var d=c.h.indexOf(c.player.Ya())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.video.paused&&c.video.play();c.player.Nc(d);c.g.setAttribute("shaka-status",d+"x")}});this.eventManager.o(this.player,"ratechange",function(){c.g.setAttribute("shaka-status",c.player.Ya()+"x")})}pa(ZJ,ZF);function $J(a){a.g.ariaLabel=a.localization.resolve("REWIND")}S("shaka.ui.RewindButton",ZJ);function aK(){} -aK.prototype.create=function(a,b){return new ZJ(a,b)};uH("rewind",new aK);function bK(a,b){ZF.call(this,a,b);var c=this;this.l=this.controls.D;this.g=Kj();this.g.classList.add("shaka-save.video-frame-button");this.g.classList.add("shaka-tooltip");this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="download";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=W("span");this.i.textContent=this.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.appendChild(this.i); -this.j=W("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);this.g.appendChild(a);cK(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){cK(c)});this.eventManager.o(this.localization,"locale-changed",function(){cK(c)});this.eventManager.o(this.g,"click",function(){var d=document.createElement("canvas"),e=d.getContext("2d"),f=c.controls.m;d.width=f.videoWidth;d.height=f.videoHeight;e.drawImage(f,0,0,d.width,d.height); -d=d.toDataURL("image/png");e=document.createElement("a");e.href=d;e.download="videoframe_"+f.currentTime.toFixed(3)+".png";e.click()});this.eventManager.o(this.controls.C,"vrstatuschanged",function(){dK(c)});this.eventManager.o(this.adManager,"ad-started",function(){dK(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){dK(c)});this.eventManager.o(this.player,"unloading",function(){dK(c)});this.eventManager.o(this.player,"loaded",function(){dK(c)});this.eventManager.o(this.video,"play", -function(){dK(c)});this.eventManager.o(this.video,"pause",function(){dK(c)});this.eventManager.o(this.video,"seeking",function(){dK(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){dK(c)});dK(this)}pa(bK,ZF);function dK(a){var b=!0;a.controls.Sb()&&(b=!1);b&&a.l.Pa()&&(b=!1);b&&(a.player.drmInfo()||a.player.zd())&&(b=!1);b&&a.ad&&(b=!1);b&&a.video.remote&&"disconnected"!=a.video.remote.state&&(b=!1);dG(a.g,b)} -function cK(a){a.g.ariaLabel=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.i.textContent=a.localization.resolve("DOWNLOAD_VIDEO_FRAME")}S("shaka.ui.SaveVideoFrameButton",bK);function eK(){}eK.prototype.create=function(a,b){return new bK(a,b)};ZH("save_video_frame",new eK);iG("save_video_frame",new eK);function fK(a,b){ZF.call(this,a,b);var c=this;if(this.h=this.player.kh())this.g=Kj(),this.g.classList.add("shaka-skip-next-button"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),this.g.textContent="skip_next",this.parent.appendChild(this.g),gK(this),hK(this),this.eventManager.o(this.localization,"locale-updated",function(){gK(c)}),this.eventManager.o(this.localization,"locale-changed",function(){gK(c)}),this.eventManager.o(this.g,"click",function(){c.controls.Ba()&& -c.h.playItem(c.h.getCurrentItemIndex()+1)}),this.eventManager.o(this.h,"currentitemchanged",function(){hK(c)}),this.eventManager.o(this.h,"itemsinserted",function(){hK(c)}),this.eventManager.o(this.h,"itemsremoved",function(){hK(c)}),this.eventManager.o(this.player,"loading",function(){hK(c)})}pa(fK,ZF);function gK(a){a.g.ariaLabel=a.localization.resolve("SKIP_NEXT")}function hK(a){var b=a.h.getItems().length;b=1b&&(c=t([c,b]),b=c.next().value,c=c.next().value);b/c>16/9&&(c=Math.round(9*b/16));a=a.controls.g.qualityMarks;return 8640<=c?c+"p":4320<=c?a["4320"]:2160<=c?a["2160"]:1440<=c?a["1440"]:1080<=c?a["1080"]:720<=c?a["720"]:""} +function ZJ(a){var b=gG(a.menu);Pj(a.menu);a.menu.appendChild(b);b=0;b=a.player.Cd()?dK(a):eK(a);var c=Lj();c.classList.add("shaka-enable-abr-button");a.eventManager.o(c,"click",function(){a.player.configure({abr:{enabled:!0}});ZJ(a)});a.l=W("span");a.l.textContent=a.localization.resolve("AUTO_QUALITY");c.appendChild(a.l);a.player.getConfiguration().abr.enabled&&(c.ariaSelected="true",c.appendChild(jG()),a.l.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY")); +a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(c);iG(a.menu);a.controls.dispatchEvent(new U("resolutionselectionupdated"));YJ(a);kG(a.button,0f&&(e=t([e,f]),f=e.next().value,e=e.next().value);var g=e;f/e>16/9&&(g=Math.round(9*f/16));f=g+"p";e=new Set;g=t(c);for(var h=g.next();!h.done;h=g.next())h=h.value,h.frameRate&&e.add(Math.round(h.frameRate));1=e)&&(f+=Math.round(b.frameRate));if("PQ"==b.hdr||"HLG"==b.hdr)f+=" HDR";(b.videoLayout|| +"").includes("CH-STEREO")&&(f+=" 3D");if(c.some(function(l){return d(b,l)})&&(c.some(function(l){return d(b,l)&&l.bandwidth==b.bandwidth})||(f+=" ("+Math.round(b.bandwidth/1E3)+" kbits/s)"),a.controls.g.showVideoCodec)){var k=function(l){var m="";l&&(l=gf(l),m=l.startsWith("dovi-")?"Dolby Vision":l.toUpperCase());return m?" "+m:m};c.some(function(l){return d(b,l)&&k(l.codecs)!=k(b.codecs)})&&(f+=k(b.codecs))}return f} +function aK(a,b,c){var d=Math.round(b.bandwidth/1E3)+" kbits/s";if(a.controls.g.showAudioCodec){var e=function(f){var g="";f&&(g=gf(f).toUpperCase());return g?" "+g:g};c.some(function(f){return e(f.codecs)!=e(b.codecs)})&&(d+=e(b.codecs))}return d} +function YJ(a){var b=a.player.Cd()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.l.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}S("shaka.ui.ResolutionSelection",XJ);function fK(){} +fK.prototype.create=function(a,b){return new XJ(a,b)};gI("quality",new fK);BH("quality",new fK);function gK(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);hK(this);this.h=this.controls.g.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){hK(c)});this.eventManager.o(this.localization,"locale-changed",function(){hK(c)}); +this.eventManager.o(this.g,"click",function(){if(c.controls.Ba()&&c.video.duration){var d=c.h.indexOf(c.player.Xa())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.video.paused&&c.video.play();c.player.Sc(d);c.g.setAttribute("shaka-status",d+"x")}});this.eventManager.o(this.player,"ratechange",function(){c.g.setAttribute("shaka-status",c.player.Xa()+"x")})}pa(gK,fG);function hK(a){a.g.ariaLabel=a.localization.resolve("REWIND")}S("shaka.ui.RewindButton",gK);function iK(){} +iK.prototype.create=function(a,b){return new gK(a,b)};BH("rewind",new iK);function jK(a,b){fG.call(this,a,b);var c=this;this.l=this.controls.D;this.g=Lj();this.g.classList.add("shaka-save.video-frame-button");this.g.classList.add("shaka-tooltip");this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="download";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=W("span");this.i.textContent=this.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.appendChild(this.i); +this.j=W("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);this.g.appendChild(a);kK(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){kK(c)});this.eventManager.o(this.localization,"locale-changed",function(){kK(c)});this.eventManager.o(this.g,"click",function(){var d=document.createElement("canvas"),e=d.getContext("2d"),f=c.controls.m;d.width=f.videoWidth;d.height=f.videoHeight;e.drawImage(f,0,0,d.width,d.height); +d=d.toDataURL("image/png");e=document.createElement("a");e.href=d;e.download="videoframe_"+f.currentTime.toFixed(3)+".png";e.click()});this.eventManager.o(this.controls.C,"vrstatuschanged",function(){lK(c)});this.eventManager.o(this.adManager,"ad-started",function(){lK(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){lK(c)});this.eventManager.o(this.player,"unloading",function(){lK(c)});this.eventManager.o(this.player,"loaded",function(){lK(c)});this.eventManager.o(this.video,"play", +function(){lK(c)});this.eventManager.o(this.video,"pause",function(){lK(c)});this.eventManager.o(this.video,"seeking",function(){lK(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){lK(c)});lK(this)}pa(jK,fG);function lK(a){var b=!0;a.controls.Tb()&&(b=!1);b&&a.l.Pa()&&(b=!1);b&&(a.player.drmInfo()||a.player.Cd())&&(b=!1);b&&a.ad&&(b=!1);b&&a.video.remote&&"disconnected"!=a.video.remote.state&&(b=!1);kG(a.g,b)} +function kK(a){a.g.ariaLabel=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.i.textContent=a.localization.resolve("DOWNLOAD_VIDEO_FRAME")}S("shaka.ui.SaveVideoFrameButton",jK);function mK(){}mK.prototype.create=function(a,b){return new jK(a,b)};gI("save_video_frame",new mK);pG("save_video_frame",new mK);function nK(a,b){fG.call(this,a,b);var c=this;if(this.h=this.player.lh())this.g=Lj(),this.g.classList.add("shaka-skip-next-button"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),this.g.textContent="skip_next",this.parent.appendChild(this.g),oK(this),pK(this),this.eventManager.o(this.localization,"locale-updated",function(){oK(c)}),this.eventManager.o(this.localization,"locale-changed",function(){oK(c)}),this.eventManager.o(this.g,"click",function(){c.controls.Ba()&& +c.h.playItem(c.h.getCurrentItemIndex()+1)}),this.eventManager.o(this.h,"currentitemchanged",function(){pK(c)}),this.eventManager.o(this.h,"itemsinserted",function(){pK(c)}),this.eventManager.o(this.h,"itemsremoved",function(){pK(c)}),this.eventManager.o(this.player,"loading",function(){pK(c)})}pa(nK,fG);function oK(a){a.g.ariaLabel=a.localization.resolve("SKIP_NEXT")}function pK(a){var b=a.h.getItems().length;b=1