PageSourceSearch

https://www.dobby.be/_next/static/chunks/22-7b0c5a6dc9949b78.js

js dobby.be collected 2026-09-24 13:09:56 UTC 439,104 bytes, 2,425 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[22],{2754:function(b){/*!
2 * mux-embed
3 * @version 4.30.0
4 * @copyright 2023 Mux, Inc
5 */b.exports=function(){var b={80:function(b,A,B){b.exports=B(728).default},728:function(b,A,B){"use strict";B.d(A,{default:function(){return tu}});var G=B(48),W=B.n(G),i=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var A=16*Math.random()|0;return("x"===b?A:3&A|8).toString(16)})},o=function(){return("000000"+(2176782336*Math.random()<<0).toString(36)).slice(-6)},s=function(b){var A,B;if(b&&void 0!==b.nodeName)return b.muxId||(b.muxId=o()),b.muxId;try{B=document.querySelector(b)}catch(b){}return B&&!B.muxId&&(B.muxId=b),(null===(A=B)||void 0===A?void 0:A.muxId)||b},u=function(b){b&&void 0!==b.nodeName?b=s(A=b):A=document.querySelector(b);var A,B=A&&A.nodeName?A.nodeName.toLowerCase():"";return[A,b,B]},K=B(640),et=B.n(K),ei=et().methodFactory;et().methodFactory=function(b,A,B){var G=ei(b,A,B);return function(){for(var b=["[mux]"],A=0;A<arguments.length;A++)b.push(arguments[A]);G.apply(void 0,b)}},et().setLevel(et().getLevel());var ea=et();function p(){return"1"===(W().doNotTrack||W().navigator&&W().navigator.doNotTrack)}var er={now:function(){var b=W().performance,A=b&&b.timing,B=A&&A.navigationStart;return Math.round("number"==typeof B&&"function"==typeof b.now?B+b.now():Date.now())}},h=function(b){return v(b)[0]},v=function(b){if("string"!=typeof b||""===b)return["localhost"];var A,B=(b.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/)||[])[4];return B&&(A=(B.match(/[^\.]+\.[^\.]+$/)||[])[0]),[B,A]},en={exists:function(){var b=W().performance;return void 0!==(b&&b.timing)},domContentLoadedEventEnd:function(){var b=W().performance,A=b&&b.timing;return A&&A.domContentLoadedEventEnd},navigationStart:function(){var b=W().performance,A=b&&b.timing;return A&&A.navigationStart}};function y(b,A,B){B=void 0===B?1:B,b[A]=b[A]||0,b[A]+=B}var eo=["x-request-id","cf-ray","x-amz-cf-id","x-akamai-request-id"],es=["x-cdn","content-type"].concat(eo);function w(b){var A={};return(b=b||"").trim().split(/[\r\n]+/).forEach(function(b){if(b){var B=b.split(": "),G=B.shift();G&&(es.indexOf(G.toLowerCase())>=0||0===G.toLowerCase().indexOf("x-litix-"))&&(A[G]=B.join(": "))}}),A}function T(b){if(b){var A=eo.find(function(A){return void 0!==b[A]});return A?b[A]:void 0}}var k=function(b){var A={};for(var B in b){var G=b[B];-1!==G["DATA-ID"].search("io.litix.data.")&&(A[G["DATA-ID"].replace("io.litix.data.","")]=G.VALUE)}return A};function E(b,A){var B=Object.keys(b);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(b);A&&(G=G.filter(function(A){return Object.getOwnPropertyDescriptor(b,A).enumerable})),B.push.apply(B,G)}return B}function O(b){for(var A=1;A<arguments.length;A++){var B=null!=arguments[A]?arguments[A]:{};A%2?E(Object(B),!0).forEach(function(A){var G;G=B[A],A in b?Object.defineProperty(b,A,{value:G,enumerable:!0,configurable:!0,writable:!0}):b[A]=G}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(B)):E(Object(B)).forEach(function(A){Object.defineProperty(b,A,Object.getOwnPropertyDescriptor(B,A))})}return b}var x=function(b){if(!b)return{};var A=en.navigationStart(),B=b.loading,G=B?B.start:b.trequest,W=B?B.first:b.tfirst,K=B?B.end:b.tload;return{bytesLoaded:b.total,requestStart:Math.round(A+G),responseStart:Math.round(A+W),responseEnd:Math.round(A+K)}},P=function(b){if(b&&"function"==typeof b.getAllResponseHeaders)return w(b.getAllResponseHeaders())};function q(b,A){var B=Object.keys(b);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(b);A&&(G=G.filter(function(A){return Object.getOwnPropertyDescriptor(b,A).enumerable})),B.push.apply(B,G)}return B}function S(b){for(var A=1;A<arguments.length;A++){var B=null!=arguments[A]?arguments[A]:{};A%2?q(Object(B),!0).forEach(function(A){var G;G=B[A],A in b?Object.defineProperty(b,A,{value:G,enumerable:!0,configurable:!0,writable:!0}):b[A]=G}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(B)):q(Object(B)).forEac
5h(function(A){Object.defineProperty(b,A,Object.getOwnPropertyDescriptor(B,A))})}return b}var R=function(b,A){if(!b||!b.requestEndDate)return{};var B,G=h(b.url),W=b.url,K=b.bytesLoaded,et=new Date(b.requestStartDate).getTime(),ei=new Date(b.firstByteDate).getTime(),ea=new Date(b.requestEndDate).getTime(),er=isNaN(b.duration)?0:b.duration,en="function"==typeof A.getMetricsFor?A.getMetricsFor(b.mediaType).HttpList:A.getDashMetrics().getHttpRequests(b.mediaType);return en.length>0&&(B=w(en[en.length-1]._responseHeaders||"")),{requestStart:et,requestResponseStart:ei,requestResponseEnd:ea,requestBytesLoaded:K,requestResponseHeaders:B,requestMediaDuration:er,requestHostname:G,requestUrl:W,requestId:B?T(B):void 0}},I=function(b,A){var B=A.getQualityFor(b),G=A.getCurrentTrackFor(b).bitrateList;return G?{currentLevel:B,renditionWidth:G[B].width||null,renditionHeight:G[B].height||null,renditionBitrate:G[B].bandwidth}:{}},L=function(b){var A;return null===(A=b.match(/.*codecs\*?="(.*)"/))||void 0===A?void 0:A[1]},j=function(b){try{var A,B;return null===(A=b.getVersion)||void 0===A||null===(B=A.call(b))||void 0===B?void 0:B.split(".").map(function(b){return parseInt(b)})[0]}catch(b){return!1}};function C(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var el=0,ed=function(){var b,A;function e(){!function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")}(this,e)}return b=[{key:"on",value:function(b,A,B){return A._eventEmitterGuid=A._eventEmitterGuid||++el,this._listeners=this._listeners||{},this._listeners[b]=this._listeners[b]||[],B&&(A=A.bind(B)),this._listeners[b].push(A),A}},{key:"off",value:function(b,A){var B=this._listeners&&this._listeners[b];B&&B.forEach(function(b,G){b._eventEmitterGuid===A._eventEmitterGuid&&B.splice(G,1)})}},{key:"one",value:function(b,A,B){var G=this;A._eventEmitterGuid=A._eventEmitterGuid||++el;var n=function n(){G.off(b,n),A.apply(B||this,arguments)};n._eventEmitterGuid=A._eventEmitterGuid,this.on(b,n)}},{key:"emit",value:function(b,A){var B=this;if(this._listeners){A=A||{};var G=this._listeners["before*"]||[],W=this._listeners[b]||[],K=this._listeners["after"+b]||[],o=function(A,G){(A=A.slice()).forEach(function(A){A.call(B,{type:b},G)})};o(G,A),o(W,A),o(K,A)}}}],C(e.prototype,b),A&&C(e,A),Object.defineProperty(e,"prototype",{writable:!1}),e}();function U(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var eu=function(){var b;function e(b){var A=this;(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),this.pm=b,this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,b.on("playing",function(){A._playheadShouldBeProgressing=!0}),b.on("play",this._startPlaybackHeartbeatInterval.bind(this)),b.on("playing",this._startPlaybackHeartbeatInterval.bind(this)),b.on("adbreakstart",this._startPlaybackHeartbeatInterval.bind(this)),b.on("adplay",this._startPlaybackHeartbeatInterval.bind(this)),b.on("adplaying",this._startPlaybackHeartbeatInterval.bind(this)),b.on("seeking",this._startPlaybackHeartbeatInterval.bind(this)),b.on("devicewake",this._startPlaybackHeartbeatInterval.bind(this)),b.on("viewstart",this._startPlaybackHeartbeatInterval.bind(this)),b.on("rebufferstart",this._startPlaybackHeartbeatInterval.bind(this)),b.on("pause",this._stopPlaybackHeartbeatInterval.bind(this)),b.on("ended",this._stopPlaybackHeartbeatInterval.bind(this)),b.on("viewend",this._stopPlaybackHeartbeatInterval.bind(this)),b.on("error",this._stopPlaybackHeartbeatInterval.bind(this)),b.on("aderror",this._stopPlaybackHeartbeatInterval.bind(this)),b.on("adpause",this._stopPlaybackHeartbeatInterval.bind(this)),b.on("adended",this._stopPlaybackHeartbeatInterval.bind(this)),b.on("adbreakend",this._stopPlaybackHeartbeatInterval.bind(this)),b.on("seeked",function(){b.data.player_is_paused?A._stopPlaybackHeartbeatInterval():A._startPlaybackHeartbeatInterval()}),b.on("timeupdate",function(){null!==A._playbackHeartbeatInterval&&b.emit("playbackheartbeat")}),b.on("devicesleep",function(B,G){null!==A._playbackHeartbeatInterval&&(W().clearInterval(A._playbackHeartbeatInterval),b.emit("playbackheartbeatend",{viewer_time:G.viewer_time}),A._playbackHeartbeatInterval=null)})}return U(e.prototype,[{key:"_startPlaybackHeartbeatInterval",value:function(){var b=this;null===this._playbackHeartbeatInterval&&(this.pm.emit("playbackheartbeat"),this._playbackHeartbeatInterval=W().setInterval(function(){b.pm.emit("playbackheartbeat")},this.pm.playbackHeartbeatTime))}},{key:"_stopPlaybackHeartbeatInterval",value:function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(W().clearInterval(this._playbackHeartbeatInterval),this.pm.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)}}]),b&&U(e,b),Object.defineProperty(e,"prototype",{writable:!1}),e}();function F(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var ec=(eq=function e(b){var A=this;(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),b.on("viewinit",function(){A.viewErrored=!1}),b.on("error",function(B,G){try{var W=b.errorTranslator({player_error_code:G.player_error_code,player_error_message:G.player_error_message,player_error_context:G.player_error_context});W?(b.data.player_error_code=W.player_error_code||G.player_error_code,b.data.player_error_message=W.player_error_message||G.player_error_message,b.data.player_error_context=W.player_error_context||G.player_error_context,A.viewErrored=!0):(delete b.data.player_error_code,delete b.data.player_error_message,delete b.data.player_error_context)}catch(B){b.mux.log.warn("Exception in error translator callback.",B),A.viewErrored=!0}})},eF&&F(eq.prototype,eF),ej&&F(eq,ej),Object.defineProperty(eq,"prototype",{writable:!1}),eq);function Q(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var em=function(){var b,A;function e(b){(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),this.pm=b,this._watchTimeTrackerLastCheckedTime=null,b.on("playbackheartbeat",this._updateWatchTime.bind(this)),b.on("playbackheartbeatend",this._clearWatchTimeState.bind(this))}return b=[{key:"_updateWatchTime",value:function(b,A){var B=A.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=B),y(this.pm.data,"view_watch_time",B-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=B}},{key:"_clearWatchTimeState",value:function(b,A){this._updateWatchTime(b,A),this._watchTimeTrackerLastCheckedTime=null}}],Q(e.prototype,b),A&&Q(e,A),Object.defineProperty(e,"prototype",{writable:!1}),e}();function J(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var eh=function(){var b,A;function e(b){var A=this;(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),this.pm=b,this._playbackTimeTrackerLastPlayheadPosition=-1,this._lastTime=er.now(),this._isAdPlaying=!1,this._callbackUpdatePlaybackTime=null;var B=this._startPlaybackTimeTracking.bind(this);b.on("playing",B),b.on("adplaying",B),b.on("seeked",B);var G=this._stopPlaybackTimeTracking.bind(this);b.on("playbackheartbeatend",G),b.on("seeking",G),b.on("adplaying",function(){A._isAdPlaying=!0}),b.on("adended",function(){A._isAdPlaying=!1}),b.on("adpause",function(){A._isAdPlaying=!1}),b.on("adbreakstart",function(){A._isAdPlaying=!1}),b.on("adbreakend",function(){A._isAdPlaying=!1}),b.on("adplay",function(){A._isAdPlaying=!1}),b.on("viewinit",function(){A._playbackTimeTrackerLastPlayheadPosition=-1,A._lastTime=er.now(),A._isAdPlaying=!1,A._callbackUpdatePlaybackTime=null})}return b=[{key:"_startPlaybackTimeTracking",value:function(){null===this._callbackUpdatePlaybackTime&&(this._callbackUpdatePlaybackTime=this._updatePlaybackTime.bind(this),this._playbackTimeTrackerLastPlayheadPosition=this.pm.data.player_playhead_time,this.pm.on("playbackheartbeat",this._callbackUpdatePlaybackTime))}},{key:"_stopPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime&&(this._updatePlaybackTime(),this.pm.off("playbackheartbeat",this._callbackUpdatePlaybackTime),this._callbackUpdatePlaybackTime=null,this._playbackTimeTrackerLastPlayheadPosition=-1)}},{key:"_updatePlaybackTime",value:function(){var b=this.pm.data.player_playhead_time,A=er.now(),B=-1;this._playbackTimeTrackerLastPlayheadPosition>=0&&b>this._playbackTimeTrackerLastPlayheadPosition?B=b-this._playbackTimeTrackerLastPlayheadPosition:this._isAdPlaying&&(B=A-this._lastTime),B>0&&B<=1e3&&y(this.pm.data,"view_content_playback_time",B),this._playbackTimeTrackerLastPlayheadPosition=b,this._lastTime=A}}],J(e.prototype,b),A&&J(e,A),Object.defineProperty(e,"prototype",{writable:!1}),e}();function z(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var ep=function(){var b,A;function e(b){(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),this.pm=b;var A=this._updatePlayheadTime.bind(this);b.on("playbackheartbeat",A),b.on("playbackheartbeatend",A),b.on("timeupdate",A),b.on("destroy",function(){b.off("timeupdate",A)})}return b=[{key:"_updateMaxPlayheadPosition",value:function(){this.pm.data.view_max_playhead_position=void 0===this.pm.data.view_max_playhead_position?this.pm.data.player_playhead_time:Math.max(this.pm.data.view_max_playhead_position,this.pm.data.player_playhead_time)}},{key:"_updatePlayheadTime",value:function(b,A){var B=this,a=function(){B.pm.currentFragmentPDT&&B.pm.currentFragmentStart&&(B.pm.data.player_program_time=B.pm.currentFragmentPDT+B.pm.data.player_playhead_time-B.pm.currentFragmentStart)};if(A&&A.player_playhead_time)this.pm.data.player_playhead_time=A.player_playhead_time,a(),this._updateMaxPlayheadPosition();else if(this.pm.getPlayheadTime){var G=this.pm.getPlayheadTime();void 0!==G&&(this.pm.data.player_playhead_time=G,a(),this._updateMaxPlayheadPosition())}}}],z(e.prototype,b),A&&z(e,A),Object.defineProperty(e,"prototype",{writable:!1}),e}();function X(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var e_=(e$=function e(b){if(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")}(this,e),!b.disableRebufferTracking){var A,a=function(b,B){n(B),A=void 0},n=function(B){if(A){var G=B.viewer_time-A;y(b.data,"view_rebuffer_duration",G),A=B.viewer_time,b.data.view_rebuffer_duration>3e5&&(b.emit("viewend"),b.send("viewend"),b.mux.log.warn("Ending view after rebuffering for longer than ".concat(3e5,"ms, future events will be ignored unless a programchange or videochange occurs.")))}b.data.view_watch_time>=0&&b.data.view_rebuffer_count>0&&(b.data.view_rebuffer_frequency=b.data.view_rebuffer_count/b.data.view_watch_time,b.data.view_rebuffer_percentage=b.data.view_rebuffer_duration/b.data.view_watch_time)};b.on("playbackheartbeat",function(b,A){return n(A)}),b.on("rebufferstart",function(B,G){A||(y(b.data,"view_rebuffer_count",1),A=G.viewer_time,b.one("rebufferend",a))}),b.on("viewinit",function(){A=void 0,b.off("rebufferend",a)})}},eK&&X(e$.prototype,eK),eY&&X(e$,eY),Object.defineProperty(e$,"prototype",{writable:!1}),e$);function te(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var ev=function(){var b,A;function e(b){var A=this;(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),this.pm=b,b.disableRebufferTracking||b.disablePlayheadRebufferTracking||(this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,b.on("playbackheartbeat",this._checkIfRebuffering.bind(this)),b.on("playbackheartbeatend",this._cleanupRebufferTracker.bind(this)),b.on("seeking",function(){A._cleanupRebufferTracker(null,{viewer_time:er.now()})}))}return b=[{key:"_checkIfRebuffering",value:function(b,A){if(this.pm.seekingTracker.isSeeking||this.pm.adTracker.isAdBreak||!this.pm.playbackHeartbeat._playheadShouldBeProgressing)this._cleanupRebufferTracker(b,A);else if(null!==this._lastCheckedTime){if(this._lastPlayheadTime===this.pm.data.player_playhead_time){var B=A.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.sustainedRebufferThreshold&&B>=this.pm.sustainedRebufferThreshold&&(this._rebuffering||(this._rebuffering=!0,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}))),this._lastCheckedTime=A.viewer_time}else this._cleanupRebufferTracker(b,A,!0)}else this._prepareRebufferTrackerState(A.viewer_time)}},{key:"_clearRebufferTrackerState",value:function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null}},{key:"_prepareRebufferTrackerState",value:function(b){this._lastCheckedTime=b,this._lastPlayheadTime=this.pm.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=b}},{key:"_cleanupRebufferTracker",value:function(b,A){var B=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._rebuffering)this._rebuffering=!1,this.pm.emit("rebufferend",{viewer_time:A.viewer_time});else{if(null===this._lastCheckedTime)return;var G=this.pm.data.player_playhead_time-this._lastPlayheadTime,W=A.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.minimumRebufferDuration&&G>0&&W-G>this.pm.minimumRebufferDuration&&(this._lastCheckedTime=null,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.pm.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+W-G}))}B?this._prepareRebufferTrackerState(A.viewer_time):this._clearRebufferTrackerState()}}],te(e.prototype,b),A&&te(e,A),Object.defineProperty(e,"prototype",{writable:!1}),e}();function ne(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var eb=function(){var b;function e(b){var A=this;(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),this.pm=b,b.on("viewinit",function(){var B=b.data,G=B.view_id;if(!B.view_program_changed){var n=function(B,W){var K=W.viewer_time;"playing"===B.type&&void 0===b.data.view_time_to_first_frame?A.calculateTimeToFirstFrame(K||er.now(),G):"adplaying"===B.type&&(void 0===b.data.view_time_to_first_frame||A._inPrerollPosition())&&A.calculateTimeToFirstFrame(K||er.now(),G)};b.one("playing",n),b.one("adplaying",n),b.one("viewend",function(){b.off("playing",n),b.off("adplaying",n)})}})}return ne(e.prototype,[{key:"_inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"calculateTimeToFirstFrame",value:function(b,A){A===this.pm.data.view_id&&(this.pm.watchTimeTracker._updateWatchTime(null,{viewer_time:b}),this.pm.data.view_time_to_first_frame=this.pm.data.view_watch_time,(this.pm.data.player_autoplay_on||this.pm.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.pm.data.view_aggregate_startup_time=this.pm.data.view_start+this.pm.data.view_watch_time-this.NAVIGATION_START))}}]),b&&ne(e,b),Object.defineProperty(e,"prototype",{writable:!1}),e}();function oe(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var eg=(eQ=function e(b){var A=this;(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),b.on("viewinit",function(){A._lastPlayheadPosition=-1}),["pause","rebufferstart","seeking","error","adbreakstart","hb"].forEach(function(B){b.on(B,function(){if(A._lastPlayheadPosition>=0&&b.data.player_playhead_time>=0&&A._lastPlayerWidth
5>=0&&A._lastSourceWidth>0&&A._lastPlayerHeight>=0&&A._lastSourceHeight>0){var B=b.data.player_playhead_time-A._lastPlayheadPosition;if(B<0)return void(A._lastPlayheadPosition=-1);var G=Math.min(A._lastPlayerWidth/A._lastSourceWidth,A._lastPlayerHeight/A._lastSourceHeight),W=Math.max(0,G-1),K=Math.max(0,1-G);b.data.view_max_upscale_percentage=Math.max(b.data.view_max_upscale_percentage||0,W),b.data.view_max_downscale_percentage=Math.max(b.data.view_max_downscale_percentage||0,K),y(b.data,"view_total_content_playback_time",B),y(b.data,"view_total_upscaling",W*B),y(b.data,"view_total_downscaling",K*B)}A._lastPlayheadPosition=-1})}),["playing","hb"].forEach(function(B){b.on(B,function(){A._lastPlayheadPosition=b.data.player_playhead_time,A._lastPlayerWidth=b.data.player_width,A._lastPlayerHeight=b.data.player_height,A._lastSourceWidth=b.data.video_source_width,A._lastSourceHeight=b.data.video_source_height})})},eZ&&oe(eQ.prototype,eZ),ez&&oe(eQ,ez),Object.defineProperty(eQ,"prototype",{writable:!1}),eQ);function le(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var eE=(eX=function e(b){var A=this;(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),this.isSeeking=!1;var B=-1,n=function(){var G=er.now(),W=(b.data.viewer_time||G)-(B||G);y(b.data,"view_seek_duration",W),b.data.view_max_seek_time=Math.max(b.data.view_max_seek_time||0,W),A.isSeeking=!1,B=-1};b.on("seeking",function(G,W){Object.assign(b.data,W),A.isSeeking&&W.viewer_time-B<=2e3?B=W.viewer_time:(A.isSeeking&&n(),A.isSeeking=!0,B=W.viewer_time,y(b.data,"view_seek_count",1),b.send("seeking"))}),b.on("seeked",function(){n()}),b.on("viewend",function(){A.isSeeking&&(n(),b.send("seeked")),A.isSeeking=!1,B=-1})},eJ&&le(eX.prototype,eJ),e0&&le(eX,e0),Object.defineProperty(eX,"prototype",{writable:!1}),eX);function fe(b,A){return function(b){if(Array.isArray(b))return b}(b)||function(b,A){var B=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=B){var G,W,K=[],et=!0,ei=!1;try{for(B=B.call(b);!(et=(G=B.next()).done)&&(K.push(G.value),!A||K.length!==A);et=!0);}catch(b){ei=!0,W=b}finally{try{et||null==B.return||B.return()}finally{if(ei)throw W}}return K}}(b,A)||function(b,A){if(b){if("string"==typeof b)return pe(b,A);var B=Object.prototype.toString.call(b).slice(8,-1);return"Object"===B&&b.constructor&&(B=b.constructor.name),"Map"===B||"Set"===B?Array.from(b):"Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?pe(b,A):void 0}}(b,A)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(b,A){(null==A||A>b.length)&&(A=b.length);for(var B=0,G=Array(A);B<A;B++)G[B]=b[B];return G}function _e(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var he=function(b,A){b.push(A),b.sort(function(b,A){return b.viewer_time-A.viewer_time})},ef=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror","adclicked","adskipped"],ey=function(){var b,A;function e(b){var A=this;(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),this.pm=b,b.on("viewinit",function(){A.isAdBreak=!1,A._currentAdRequestNumber=0,A._currentAdResponseNumber=0,A._adRequests=[],A._adResponses=[],A._adHasPlayed=!1,A._wouldBeNewAdPlay=!0,A._prerollPlayTime=void 0}),ef.forEach(function(B){return b.on(B,A._updateAdData.bind(A))});var a=function(){A.isAdBreak=!1};b.on("adbreakstart",function(){A.isAdBreak=!0}),b.on("play",a),b.on("playing",a),b.on("viewend",a),b.on("adrequest",function(B,G){G=Object.assign({ad_request_id:"generatedAdRequestId"+A._currentAdRequestNumber++},G),he(A._adRequests,G),y(b.data,"view_ad_request_count"),A.inPrerollPosition()&&(b.data.view_preroll_requested=!0,A._adHasPlayed||y(b.data,"view_preroll_request_count"))}),b.on("adresponse",function(B,G){G=Object.assign({ad_request_id:"generatedAdRequestId"+A._currentAdResponseNumber++},G),he(A._adResponses,G);var W=A.findAdRequest(G.ad_request_id);W&&y(b.data,"view_ad_request_time",Math.max(0,G.viewer_time-W.viewer_time))}),b.on("adplay",function(B,G){A._adHasPlayed=!0,A._wouldBeNewAdPlay&&(A._wouldBeNewAdPlay=!1,y(b.data,"view_ad_played_count")),A.inPrerollPosition()&&
5!b.data.view_preroll_played&&(b.data.view_preroll_played=!0,A._adRequests.length>0&&(b.data.view_preroll_request_time=Math.max(0,G.viewer_time-A._adRequests[0].viewer_time)),b.data.view_start&&(b.data.view_startup_preroll_request_time=Math.max(0,G.viewer_time-b.data.view_start)),A._prerollPlayTime=G.viewer_time)}),b.on("adplaying",function(B,G){A.inPrerollPosition()&&void 0===b.data.view_preroll_load_time&&void 0!==A._prerollPlayTime&&(b.data.view_preroll_load_time=G.viewer_time-A._prerollPlayTime,b.data.view_startup_preroll_load_time=G.viewer_time-A._prerollPlayTime)}),b.on("adclicked",function(B,G){A._wouldBeNewAdPlay||y(b.data,"view_ad_clicked_count")}),b.on("adskipped",function(B,G){A._wouldBeNewAdPlay||y(b.data,"view_ad_skipped_count")}),b.on("adended",function(){A._wouldBeNewAdPlay=!0}),b.on("aderror",function(){A._wouldBeNewAdPlay=!0})}return b=[{key:"inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"findAdRequest",value:function(b){for(var A=0;A<this._adRequests.length;A++)if(this._adRequests[A].ad_request_id===b)return this._adRequests[A]}},{key:"_updateAdData",value:function(b,A){if(this.inPrerollPosition()){if(!this.pm.data.view_preroll_ad_tag_hostname&&A.ad_tag_url){var B=fe(v(A.ad_tag_url),2),G=B[0],W=B[1];this.pm.data.view_preroll_ad_tag_domain=W,this.pm.data.view_preroll_ad_tag_hostname=G}if(!this.pm.data.view_preroll_ad_asset_hostname&&A.ad_asset_url){var K=fe(v(A.ad_asset_url),2),et=K[0],ei=K[1];this.pm.data.view_preroll_ad_asset_domain=ei,this.pm.data.view_preroll_ad_asset_hostname=et}}this.pm.data.ad_asset_url=null==A?void 0:A.ad_asset_url,this.pm.data.ad_tag_url=null==A?void 0:A.ad_tag_url,this.pm.data.ad_creative_id=null==A?void 0:A.ad_creative_id,this.pm.data.ad_id=null==A?void 0:A.ad_id,this.pm.data.ad_universal_id=null==A?void 0:A.ad_universal_id}}],_e(e.prototype,b),A&&_e(e,A),Object.defineProperty(e,"prototype",{writable:!1}),e}();function ye(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var eA=(e1=function e(b){!function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")}(this,e);var A,B,i=function(){b.disableRebufferTracking||A&&(y(b.data,"view_waiting_rebuffer_duration",er.now()-A),A=!1,W().clearInterval(B))},G=!1,s=function(){G=!1,i()};b.on("waiting",function(){G&&(b.disableRebufferTracking||(y(b.data,"view_waiting_rebuffer_count",1),A=er.now(),B=W().setInterval(function(){if(A){var B=er.now();y(b.data,"view_waiting_rebuffer_duration",B-A),A=B}},250)))}),b.on("playing",function(){i(),G=!0}),b.on("pause",s),b.on("seeking",s)},e2&&ye(e1.prototype,e2),e3&&ye(e1,e3),Object.defineProperty(e1,"prototype",{writable:!1}),e1);function we(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var ek=(e9=function e(b){var A=this;!function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")}(this,e);var a=function(){A.lastWallClockTime=er.now(),b.on("before*",n)},n=function(B){var G=er.now(),W=A.lastWallClockTime;A.lastWallClockTime=G,G-W>3e4&&(b.emit("devicesleep",{viewer_time:W}),Object.assign(b.data,{viewer_time:W}),b.send("devicesleep"),b.emit("devicewake",{viewer_time:G}),Object.assign(b.data,{viewer_time:G}),b.send("devicewake"))};b.one("playbackheartbeat",a),b.on("playbackheartbeatend",function(){b.off("before*",n),b.one("playbackheartbeat",a)})},e5&&we(e9.prototype,e5),e4&&we(e9,e4),Object.defineProperty(e9,"prototype",{writable:!1}),e9),eT=B(375),ew=B(655),eS=B.n(ew),eI="muxData",Pe=function(){var b;try{b=eT.parse(eS().get(eI)||"")}catch(A){b={}}return b},qe=function(b){try{eS().set(eI,eT.stringify(b),{expires:365})}catch(b){}},Se=function(){var b=Pe();return b.mux_viewer_id=b.mux_viewer_id||i(),b.msn=b.msn||Math.random(),qe(b),{mux_viewer_id:b.mux_viewer_id,mux_sample_number:b.msn}},Re=function(){var b;switch(Ie()){case"cellular":b="cellular";break;case"ethernet":b="wired";break;case"wifi":b="wifi";break;case void 0:break;default:b="other"}return b},Ie=function(){var b=W().navigator,A=b&&(b.connection||b.mozConnection||b.webkitConnection);return A&&A.type};Re.getConnectionFromAPI=Ie;var eC=Ne({a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",i:"internal",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"}),eR=Ne({ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",br:"break",bw:"browser",by:"bytes",ca:"cached",cb:"cancel",cc:"codec",cd:"code",cg:"category",ch:"changed",ck:"clicked",cl:"canceled",cn:"config",co:"count",ce:"counter",cp:"complete",cr:"creative",ct:"content",cu:"current",cx:"c
5onnection",cz:"context",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",dr:"drm",dp:"dropped",du:"duration",dv:"device",ec:"encoding",ed:"edge",en:"end",eg:"engine",em:"embed",er:"error",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",ep:"experiments",fa:"failed",fi:"first",fm:"family",ft:"format",fp:"fps",fq:"frequency",fr:"frame",fs:"fullscreen",ha:"has",hb:"holdback",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pr:"preload",ps:"position",pt:"part",py:"property",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",sd:"skipped",se:"session",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",st:"start",su:"startup",sv:"server",sw:"software",ta:"tag",tc:"tech",te:"text",tg:"target",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",un:"universal",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"});function Ne(b){var A={};for(var B in b)b.hasOwnProperty(B)&&(A[b[B]]=B);return A}function He(b){var A={},B={};return Object.keys(b).forEach(function(G){var W=!1;if(b.hasOwnProperty(G)&&void 0!==b[G]){var K=G.split("_"),et=K[0],ei=eC[et];ei||(ea.info("Data key word `"+K[0]+"` not expected in "+G),ei=et+"_"),K.splice(1).forEach(function(b){"url"===b&&(W=!0),eR[b]?ei+=eR[b]:Number(b)&&Math.floor(Number(b))===Number(b)?ei+=b:(ea.info("Data key word `"+b+"` not expected in "+G),ei+="_"+b+"_")}),W?B[ei]=b[G]:A[ei]=b[G]}}),Object.assign(A,B)}var eL={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:1e4,maxPayloadKBSize:500},eM=["hb","requestcompleted","requestfailed","requestcanceled"],Fe=function(b){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._beaconUrl=b||"https://img.litix.io",this._eventQueue=[],this._postInFlight=!1,this._failureCount=0,this._sendTimeout=!1,this._options=Object.assign({},eL,A)};Fe.prototype.queueEvent=function(b,A){var B=Object.assign({},A);return(this._eventQueue.length<=this._options.maxQueueLength||"eventrateexceeded"===b)&&(this._eventQueue.push(B),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength)},Fe.prototype.flushEvents=function(){var b=arguments.length>0&&void 0!==arguments[0]&&arguments[0];b&&1===this._eventQueue.length?this._eventQueue.pop():(this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending())},Fe.prototype.destroy=function(){var b=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,b?this._clearBeaconQueue():this.flushEvents(),W().clearTimeout(this._sendTimeout)},Fe.prototype._clearBeaconQueue=function(){var b=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,A=this._eventQueue.slice(b);b>0&&Object.assign(A[A.length-1],He({mux_view_message:"event queue truncated"}));var B=this._createPayload(A);We(this._beaconUrl,B,!0,function(){})},Fe.prototype._sendBeaconQueue=function(){var b=this;if(!this._postInFlight){var A=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0;var B=this._createPayload(A),G=er.now();We(this._beaconUrl,B,!1,function(B,W){W?(b._eventQueue=A.concat(b._eventQueue),b._failureCount+=1,ea.info("Error sending beacon: "+W)):b._failureCount=0,b._roundTripTime=er.now()-G,b._postInFlight=!1})}},Fe.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var b=Math.pow(2,this._failureCount-1);return(1+(b*=Math.random()))*this._options.baseTimeBetweenBeacons},Fe.prototype._startBeaconSending=function(){var b=this;W().clearTimeout(this._sendTimeout),this.destroyed||(this._sendTimeout=W().setTimeout(function(){b._eventQueue.length&&b._sendBeaconQueue(),b._startBeaconSending()},this._getNextBeaconTime()))},Fe.prototype._createPayload=function(b){var A,B,G,W=this,K={transmission_timestamp:Math.round(er.now())};this._roundTripTime&&(K.rtt_ms=Math.round(this._roundTripTime));var o=function(){G=(A=JSON.stringify({metadata:K,events:B||b})).length/1024},s=function(){return G<=W._options.maxPayloadKBSize};return o(),s()||(ea.info("Payload size is too big ("+G+" kb). Removing unnecessary events."),B=b.filter(function(b){return -1===eM.indexOf(b.e)}),o()),s()||(ea.info("Payload size still too big ("+G+" kb). Cropping fields.."),B.forEach(function(b){for(var A in b){var B=b[A];"string"==typeof B&&B.length>51200&&(b[A]=B.substring(0,51200))}}),o()),A};var We=function(b,A,B,G){if(B&&navigator&&navigator.sendBeacon&&navigator.sendBeacon(b,A))G();
5else if(W().fetch)W().fetch(b,{method:"POST",body:A,headers:{"Content-Type":"text/plain"},keepalive:A.length<=57344}).then(function(b){return G(null,b.ok?null:"Error")}).catch(function(b){return G(null,b)});else{if(W().XMLHttpRequest){var K=new(W()).XMLHttpRequest;return K.onreadystatechange=function(){if(4===K.readyState)return G(null,200!==K.status?"error":void 0)},K.open("POST",b),K.setRequestHeader("Content-Type","text/plain"),void K.send(A)}G()}};function Je(b,A){(null==A||A>b.length)&&(A=b.length);for(var B=0,G=Array(A);B<A;B++)G[B]=b[B];return G}function Ke(b,A){var B=Object.keys(b);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(b);A&&(G=G.filter(function(A){return Object.getOwnPropertyDescriptor(b,A).enumerable})),B.push.apply(B,G)}return B}function ze(b){for(var A=1;A<arguments.length;A++){var B=null!=arguments[A]?arguments[A]:{};A%2?Ke(Object(B),!0).forEach(function(A){Ze(b,A,B[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(B)):Ke(Object(B)).forEach(function(A){Object.defineProperty(b,A,Object.getOwnPropertyDescriptor(B,A))})}return b}function Ye(b){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(b)}function $e(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}function Ze(b,A,B){return A in b?Object.defineProperty(b,A,{value:B,enumerable:!0,configurable:!0,writable:!0}):b[A]=B,b}var ex=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id"],eD=["adplay","adplaying","adpause","adfirstquartile","admidpoint","adthirdquartile","adended","adresponse","adrequest"],eO=["ad_id","ad_creative_id","ad_universal_id"],eN=["viewstart","error","ended","viewend"],eP=function(){var b,A;function e(b,A){var B,G,K,et,ei,ea,er,en,eo,es,el,ed,eu,ec,em,eh,ep,e_,ev,eb=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),Ze(this,"previousBeaconData",null),Ze(this,"lastEventTime",0),Ze(this,"rateLimited",!1),this.mux=b,this.envKey=A,this.options=eb,this.eventQueue=new Fe((B=this.envKey,K=(G=this.options).beaconCollectionDomain,et=G.beaconDomain,K?"https://"+K:(B=B||"inferred").match(/^[a-z0-9]+$/)?"https://"+B+"."+(et||"litix.io"):"https://img.litix.io/a.gif")),this.sampleRate=null!==(ei=this.options.sampleRate)&&void 0!==ei?ei:1,this.disableCookies=null!==(ea=this.options.disableCookies)&&void 0!==ea&&ea,this.respectDoNotTrack=null!==(er=this.options.respectDoNotTrack)&&void 0!==er&&er,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:null===(en=this.options.platform)||void 0===en?void 0:en.name,viewer_application_version:null===(eo=this.options.platform)||void 0===eo?void 0:eo.version,viewer_application_engine:null===(es=this.options.platform)||void 0===es?void 0:es.layout,viewer_device_name:null===(el=this.options.platform)||void 0===el?void 0:el.product,viewer_device_category:"",viewer_device_manufacturer:null===(ed=this.options.platform)||void 0===ed?void 0:ed.manufacturer,viewer_os_family:null===(eu=this.options.platform)||void 0===eu||null===(ec=eu.os)||void 0===ec?void 0:ec.family,viewer_os_architecture:null===(em=this.options.platform)||void 0===em||null===(eh=em.os)||void 0===eh?void 0:eh.architecture,viewer_os_version:null===(ep=this.options.platform)||void 0===ep||null===(e_=ep.os)||void 0===e_?void 0:e_.version,viewer_connection_type:Re(),page_url:null===W()||void 0===W()||null===(ev=W().location)||void 0===ev?void 0:ev.href},this.viewerData=this.disableCookies?{}:Se()}return b=[{key:"send",value:function(b,A){var B;if(b&&null!=A&&A.view_id){if(this.respectDoNotTrack&&p())return ea.info("Not sending `"+b+"` because Do Not Track is enabled");if(!A||"object"!==Ye(A))return ea.error("A data object was expected in send() but was not provided");var G,W,K=this.disableCookies?{}:(G=Pe(),W=er.now(),G.session_start&&(G.sst=G.session_start,delete G.session_start),G.session_id&&(G.sid=G.session_id,delete G.session_id),G.session_expires&&(G.sex=G.session_expires,delete G.session_expires),(!G.sex||G.sex<W)&&(G.sid=i(),G.sst=W),G.sex=W+15e5,qe(G),{session_id:G.sid,session_start:G.sst,session_expires:G.sex}),et=ze(ze(ze(ze(ze({},this.pageLevelData),A),K),this.viewerData),{},{event:b,env_key:this.envKey});et.user_id&&(et.viewer_user_id=et.user_id,delete et.user_id);var ei=(null!==(B=et.mux_sample_number)&&void 0!==B?B:0)>=this.sampleRate,en=He(this._deduplicateBeaconData(b,et));if(this.lastEventTime=this.mux.utils.now(),ei)return ea.info("Not sending event due to sample rate restriction",b,et,en);if(this.envKey||ea.info("Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL",b,et,en),!this.rateLimited){if(ea.info("Sending event",b,et,en),this.rateLimited=!this.eventQueue.queueEvent(b,en),this.mux.WINDOW_UNLOADING&&"viewend"===b)this.eventQueue.destroy(!0);else if(this.mux.WINDOW_HIDDEN&&"hb"===b?this.eventQueue.flushEvents(!0):eN.indexOf(b)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return et.event="eventrateexceeded",en=He(et),this.eventQueue.queueEvent(et.event,en),ea.error("Beaconing disabled due to rate limit.")}}}},{key:"destroy",value:function(){this.eventQueue.destroy(!1)}},{key:"_deduplicateBeaconData",value:function(b,A){var B=this,G={},W=A.view_id;if("-1"===W||"viewstart"===b||"viewend"===b||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)G=ze({},A),W&&(this.previousBeaconData=G),W&&"viewend"===b&&(this.previousBeaconData=null);else{var K=0===b.indexOf("request");Object.entries(A).forEach(function(A){var W=function(b){if(Array.isArray(b))return b}(A)||function(b,A){var B=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=B){var G,W,K=[],et=!0,ei=!1;try{for(B=B.call(b);!(et=(G=B.next()).done)&&(K.push(G.value),!A||K.length!==A);et=!0);}catch(b){ei=!0,W=b}finally{try{et||null==B.return||B.return()}finally{if(ei)throw W}}return K}}(A,2)||function(b,A){if(b){if("string"==typeof b)return Je(b,A);var B=Object.prototype.toString.call(b).slice(8,-1);return"Object"===B&&b.constructor&&(B=b.constructor.name),"Map"===B||"Set"===B?Array.from(b):"Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B
5)?Je(b,A):void 0}}(A,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),et=W[0],ei=W[1];B.previousBeaconData&&(ei!==B.previousBeaconData[et]||ex.indexOf(et)>-1||B.objectHasChanged(K,et,ei,B.previousBeaconData[et])||B.eventRequiresKey(b,et))&&(G[et]=ei,B.previousBeaconData[et]=ei)})}return G}},{key:"objectHasChanged",value:function(b,A,B,G){return!(!b||0!==A.indexOf("request_")||"request_response_headers"!==A&&"object"===Ye(B)&&"object"===Ye(G)&&Object.keys(B||{}).length===Object.keys(G||{}).length)}},{key:"eventRequiresKey",value:function(b,A){return"renditionchange"===b&&0===A.indexOf("video_source_")||!(!eO.includes(A)||!eD.includes(b))}}],$e(e.prototype,b),A&&$e(e,A),Object.defineProperty(e,"prototype",{writable:!1}),e}();function it(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var eU=(e8=function e(b){!function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")}(this,e);var A=0,B=0,G=0,W=0,K=0,et=0,ei=0;b.on("requestcompleted",function(et,ei){var ea,er,en=ei.request_start,eo=ei.request_response_start,es=ei.request_response_end,el=ei.request_bytes_loaded;if(W++,eo?(ea=eo-(null!=en?en:0),er=(null!=es?es:0)-eo):er=(null!=es?es:0)-(null!=en?en:0),er>0&&el&&el>0){var ed=el/er*8e3;K++,B+=el,G+=er,b.data.view_min_request_throughput=Math.min(b.data.view_min_request_throughput||1/0,ed),b.data.view_average_request_throughput=B/G*8e3,b.data.view_request_count=W,ea>0&&(A+=ea,b.data.view_max_request_latency=Math.max(b.data.view_max_request_latency||0,ea),b.data.view_average_request_latency=A/K)}}),b.on("requestfailed",function(A,B){W++,et++,b.data.view_request_count=W,b.data.view_request_failed_count=et}),b.on("requestcanceled",function(A,B){W++,ei++,b.data.view_request_count=W,b.data.view_request_canceled_count=ei})},e6&&it(e8.prototype,e6),e7&&it(e8,e7),Object.defineProperty(e8,"prototype",{writable:!1}),e8);function ut(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}var eB=(tt=function e(b){var A=this;(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,e),b.on("before*",function(B,G){var W=G.viewer_time,K=er.now(),et=A._lastEventTime;if(A._lastEventTime=K,et&&K-et>36e5){var ei=Object.keys(b.data).reduce(function(A,B){var G,W;return 0===B.indexOf("video_")?Object.assign(A,(G={},W=b.data[B],B in G?Object.defineProperty(G,B,{value:W,enumerable:!0,configurable:!0,writable:!0}):G[B]=W,G)):A},{});b.mux.log.info("Received event after at least an hour inactivity, creating a new view"),b.emit("viewinit",Object.assign({viewer_time:W},ei)),b.playbackHeartbeat._playheadShouldBeProgressing&&"play"!==B.type&&"adbreakstart"!==B.type&&(b.emit("play",{viewer_time:W}),"playing"!==B.type&&b.emit("playing",{viewer_time:W}))}})},ti&&ut(tt.prototype,ti),ta&&ut(tt,ta),Object.defineProperty(tt,"prototype",{writable:!1}),tt);function ct(b){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(b)}function pt(b,A){(null==A||A>b.length)&&(A=b.length);for(var B=0,G=Array(A);B<A;B++)G[B]=b[B];return G}function _t(b,A){for(var B=0;B<A.length;B++){var G=A[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(b,G.key,G)}}function ht(b,A){return(ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,A){return b.__proto__=A,b})(b,A)}function yt(b){if(void 0===b)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function bt(b){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(b)}var eG=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange"],eW=function(b){!function(b,A){if("function"!=typeof A&&null!==A)throw TypeError("Super expression must either be null or a function");b.prototype=Object.create(A&&A.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),A&&ht(b,A)}(o,b);var A,B,G,W=(A=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(b){return!1}}(),function(){var b,B=bt(o);if(A){var G=bt(this).constructor;b=Reflect.construct(B,arguments,G)}else b=B.apply(this,arguments);return function(b,A){if(A&&("object"===ct(A)||"function"==typeof A))return A;if(void 0!==A)throw TypeError("Derived constructors may only return object or undefined");return yt(b)}(this,b)});function o(b,A,B){(function(b,A){if(!(b instanceof A))throw TypeError("Cannot call a class as a function")})(this,o),(K=W.call(this)).DOM_CONTENT_LOADED_EVENT_END=en.domContentLoadedEventEnd(),K.NAVIGATION_START=en.navigationStart(),K.mux=b,K.id=A,null!==(G=B)&&void 0!==G&&G.beaconDomain&&K.mux.log.warn("The `beaconDomain` setting has been deprecated 
5in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`."),(B=Object.assign({debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,disablePlayheadRebufferTracking:!1,errorTranslator:function(b){return b}},B)).data=B.data||{},B.data.property_key&&(B.data.env_key=B.data.property_key,delete B.data.property_key),ea.setLevel(B.debug?"debug":"warn"),K.getPlayheadTime=B.getPlayheadTime,K.getStateData=B.getStateData||function(){return{}},K.getAdData=B.getAdData||function(){},K.minimumRebufferDuration=B.minimumRebufferDuration,K.sustainedRebufferThreshold=B.sustainedRebufferThreshold,K.playbackHeartbeatTime=B.playbackHeartbeatTime,K.disableRebufferTracking=B.disableRebufferTracking,K.disableRebufferTracking&&K.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),K.disablePlayheadRebufferTracking=B.disablePlayheadRebufferTracking,K.errorTranslator=B.errorTranslator,K.playbackEventDispatcher=new eP(b,B.data.env_key,B),K.data={player_instance_id:i(),mux_sample_rate:B.sampleRate,beacon_domain:B.beaconCollectionDomain||B.beaconDomain},K.data.view_sequence_number=1,K.data.player_sequence_number=1,K.oldEmit=K.emit,K.emit=function(b,A){A=Object.assign({viewer_time:this.mux.utils.now()},A),this.oldEmit(b,A)};var G,K,et=(function(){void 0===this.data.view_start&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"))}).bind(yt(K));K.on("viewinit",function(b,A){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),Object.assign(this.data,A),this._initializeViewData(),this.one("play",et),this.one("adbreakstart",et)});var ei=(function(b){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",b)}).bind(yt(K));if(K.on("videochange",function(b,A){ei(A)}),K.on("programchange",function(b,A){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),ei(Object.assign(A,{view_program_changed:!0})),et(),this.emit("play"),this.emit("playing")}),K.on("fragmentchange",function(b,A){this.currentFragmentPDT=A.currentFragmentPDT,this.currentFragmentStart=A.currentFragmentStart}),K.on("destroy",K.destroy),"undefined"!=typeof window&&"function"==typeof window.addEventListener&&"function"==typeof window.removeEventListener){var d=function(){var b=void 0!==K.data.view_start;K.mux.WINDOW_HIDDEN="hidden"===document.visibilityState,b&&K.mux.WINDOW_HIDDEN&&(K.data.player_is_paused||K.emit("hb"))};window.addEventListener("visibilitychange",d,!1);var c=function(b){b.persisted||K.destroy()};window.addEventListener("pagehide",c,!1),K.on("destroy",function(){window.removeEventListener("visibilitychange",d),window.removeEventListener("pagehide",c)})}return K.on("playerready",function(b,A){Object.assign(this.data,A)}),eG.forEach(function(b){K.on(b,function(A,B){0!==b.indexOf("ad")&&this._updateStateData(),Object.assign(this.data,B),this._sanitizeData()}),K.on("after"+b,function(){("error"!==b||this.errorTracker.viewErrored)&&this.send(b)})}),K.on("viewend",function(b,A){Object.assign(K.data,A)}),K.one("playerready",function(b){var A=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=A-this.data.player_init_time),!this.mux.PLAYER_TRACKED&&this.NAVIGATION_START&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.DOM_CONTENT_LOADED_EVENT_END)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.DOM_CONTENT_LOADED_EVENT_END||1/0)-this.NAVIGATION_START)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time}),K.longResumeTracker=new eB(yt(K)),K.errorTracker=new ec(yt(K)),new ek(yt(K)),K.seekingTracker=new eE(yt(K)),K.playheadTime=new ep(yt(K)),K.playbackHeartbeat=new eu(yt(K)),new eg(yt(K)),K.watchTimeTracker=new em(yt(K)),new eh(yt(K)),K.adTracker=new ey(yt(K)),new ev(yt(K)),new e_(yt(K)),new eb(yt(K)),new eA(yt(K)),new eU(yt(K)),B.hlsjs&&K.addHLSJS(B),B.dashjs&&K.addDashJS(B),K.emit("viewinit",B.data),K}return B=[{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,void 0!==this.data.view_start&&(this.emit
5("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),window.clearTimeout(this._heartBeatTimeout))}},{key:"send",value:function(b){if(this.data.view_id){var A=Object.assign({},this.data);if(void 0===A.video_source_is_live&&(A.player_source_duration===1/0||A.video_source_duration===1/0?A.video_source_is_live=!0:(A.player_source_duration>0||A.video_source_duration>0)&&(A.video_source_is_live=!1)),A.video_source_is_live||["player_program_time","player_manifest_newest_program_time","player_live_edge_program_time","player_program_time","video_holdback","video_part_holdback","video_target_duration","video_part_target_duration"].forEach(function(b){A[b]=void 0}),A.video_source_url=A.video_source_url||A.player_source_url,A.video_source_url){var B,G=function(b){if(Array.isArray(b))return b}(B=v(A.video_source_url))||function(b,A){var B=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=B){var G,W,K=[],et=!0,ei=!1;try{for(B=B.call(b);!(et=(G=B.next()).done)&&(K.push(G.value),!A||K.length!==A);et=!0);}catch(b){ei=!0,W=b}finally{try{et||null==B.return||B.return()}finally{if(ei)throw W}}return K}}(B,2)||function(b,A){if(b){if("string"==typeof b)return pt(b,A);var B=Object.prototype.toString.call(b).slice(8,-1);return"Object"===B&&b.constructor&&(B=b.constructor.name),"Map"===B||"Set"===B?Array.from(b):"Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?pt(b,A):void 0}}(B,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),W=G[0],K=G[1];A.video_source_domain=K,A.video_source_hostname=W}delete A.ad_request_id,this.playbackEventDispatcher.send(b,A),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat(),"viewend"===b&&delete this.data.view_id}}},{key:"_updateStateData",value:function(){Object.assign(this.data,this.getStateData()),this.playheadTime._updatePlayheadTime(),this._sanitizeData()}},{key:"_sanitizeData",value:function(){var b=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach(function(A){var B=parseInt(b.data[A],10);b.data[A]=isNaN(B)?void 0:B}),["player_source_url","video_source_url"].forEach(function(A){if(b.data[A]){var B=b.data[A].toLowerCase();0!==B.indexOf("data:")&&0!==B.indexOf("blob:")||(b.data[A]="MSE style URL")}})}},{key:"_resetVideoData",value:function(b,A){var B=this;Object.keys(this.data).forEach(function(b){0===b.indexOf("video_")&&delete B.data[b]})}},{key:"_resetViewData",value:function(){var b=this;Object.keys(this.data).forEach(function(A){0===A.indexOf("view_")&&delete b.data[A]}),this.data.view_sequence_number=1}},{key:"_resetErrorData",value:function(b,A){delete this.data.player_error_code,delete this.data.player_error_message}},{key:"_initializeViewData",value:function(){var b=this,A=this.data.view_id=i(),r=function(){A===b.data.view_id&&y(b.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",r):r()}},{key:"_restartHeartBeat",value:function(){var b=this;window.clearTimeout(this._heartBeatTimeout),this.errorTracker.viewErrored||(this._heartBeatTimeout=window.setTimeout(function(){b.data.player_is_paused||b.emit("hb")},1e4))}},{key:"addHLSJS",value:function(b){b.hlsjs?this.hlsjs?this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=b.hlsjs,function(b,A,B){var G=arguments.length>4?arguments[4]:void 0,W=b.log,K=b.utils.secondsToMs,o=function(b){var A,B=parseInt(G.version);return 1===B&&null!==b.programDateTime&&(A=b.programDateTime),0===B&&null!==b.pdt&&(A=b.pdt),A};if(en.exists()){var s=function(B,G){return b.emit(A,B,G)},u=function(b,A){var B=A.levels,G=A.audioTracks,W=A.url,K=A.stats,et=A.networkDetails,ei=A.sessionData,ea={},er={};B.forEach(function(b,A){ea[A]={width:b.width,height:b.height,bitrate:b.bitrate,attrs:b.attrs}}),G.forEach(function(b,A){er[A]={name:b.name,language:b.lang,bitrate:b.bitrate}});var en=x(K),eo=en.bytesLoaded,es=en.requestStart,el=en.responseStart,ed=en.responseEnd;s("requestcompleted",O(O({},k(ei)),{},{request_event_type:b,request_bytes_loaded:eo,request_start:es,request_response_start:el,request_response_end:ed,request_type:"manifest",request_hostname:h(W),request_response_headers:P(et),request_rendition_lists:{media:ea,audio:er,video:{}}}))};B.on(G.Events.MANIFEST_LOADED,u);
vendor: 6,180 bytes, line 5
5var l=function(b,A){var B=A.details,G=A.level,W=A.networkDetails,et=x(A.stats),ei=et.bytesLoaded,ea=et.requestStart,er=et.responseStart,en=et.responseEnd,eo=B.fragments[B.fragments.length-1],es=o(eo)+K(eo.duration);s("requestcompleted",{request_event_type:b,request_bytes_loaded:ei,request_start:ea,request_response_start:er,request_response_end:en,request_current_level:G,request_type:"manifest",request_hostname:h(B.url),request_response_headers:P(W),video_holdback:B.holdBack&&K(B.holdBack),video_part_holdback:B.partHoldBack&&K(B.partHoldBack),video_part_target_duration:B.partTarget&&K(B.partTarget),video_target_duration:B.targetduration&&K(B.targetduration),video_source_is_live:B.live,player_manifest_newest_program_time:isNaN(es)?void 0:es})};B.on(G.Events.LEVEL_LOADED,l);var d=function(b,A){var B=A.details,G=A.networkDetails,W=x(A.stats);s("requestcompleted",{request_event_type:b,request_bytes_loaded:W.bytesLoaded,request_start:W.requestStart,request_response_start:W.responseStart,request_response_end:W.responseEnd,request_type:"manifest",request_hostname:h(B.url),request_response_headers:P(G)})};B.on(G.Events.AUDIO_TRACK_LOADED,d);var c=function(b,A){var G=A.stats,W=A.networkDetails,K=A.frag,et=x(G=G||K.stats),ei=et.bytesLoaded,ea=et.requestStart,er=et.responseStart,en=et.responseEnd,eo=W?P(W):void 0,es={request_event_type:b,request_bytes_loaded:ei,request_start:ea,request_response_start:er,request_response_end:en,request_hostname:W?h(W.responseURL):void 0,request_id:eo?T(eo):void 0,request_response_headers:eo,request_media_duration:K.duration,request_url:null==W?void 0:W.responseURL};"main"===K.type?(es.request_type="media",es.request_current_level=K.level,es.request_video_width=(B.levels[K.level]||{}).width,es.request_video_height=(B.levels[K.level]||{}).height,es.request_labeled_bitrate=(B.levels[K.level]||{}).bitrate):es.request_type=K.type,s("requestcompleted",es)};B.on(G.Events.FRAG_LOADED,c);var f=function(b,A){var B=A.frag,G=B.start;s("fragmentchange",{currentFragmentPDT:o(B),currentFragmentStart:K(G)})};B.on(G.Events.FRAG_CHANGED,f);var p=function(b,A){var B,W=A.type,K=A.details,et=A.response,ei=A.fatal,ea=A.frag,er=A.networkDetails,en=(null==ea?void 0:ea.url)||A.url||"",eo=er?P(er):void 0;K!==G.ErrorDetails.MANIFEST_LOAD_ERROR&&K!==G.ErrorDetails.MANIFEST_LOAD_TIMEOUT&&K!==G.ErrorDetails.FRAG_LOAD_ERROR&&K!==G.ErrorDetails.FRAG_LOAD_TIMEOUT&&K!==G.ErrorDetails.LEVEL_LOAD_ERROR&&K!==G.ErrorDetails.LEVEL_LOAD_TIMEOUT&&K!==G.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&K!==G.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT&&K!==G.ErrorDetails.SUBTITLE_LOAD_ERROR&&K!==G.ErrorDetails.SUBTITLE_LOAD_TIMEOUT&&K!==G.ErrorDetails.KEY_LOAD_ERROR&&K!==G.ErrorDetails.KEY_LOAD_TIMEOUT||s("requestfailed",{request_error:K,request_url:en,request_hostname:h(en),request_id:eo?T(eo):void 0,request_type:K===G.ErrorDetails.FRAG_LOAD_ERROR||K===G.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":K===G.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||K===G.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":K===G.ErrorDetails.SUBTITLE_LOAD_ERROR||K===G.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":K===G.ErrorDetails.KEY_LOAD_ERROR||K===G.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:null==et?void 0:et.code,request_error_text:null==et?void 0:et.text}),ei&&s("error",{player_error_code:W,player_error_message:K,player_error_context:"".concat(en?"url: ".concat(en,"\n"):"")+"".concat(et&&(et.code||et.text)?"response: ".concat(et.code,", ").concat(et.text,"\n"):"")+"".concat(A.reason?"failure reason: ".concat(A.reason,"\n"):"")+"".concat(A.level?"level: ".concat(A.level,"\n"):"")+"".concat(A.parent?"parent stream controller: ".concat(A.parent,"\n"):"")+"".concat(A.buffer?"buffer length: ".concat(A.buffer,"\n"):"")+"".concat(A.error?"error: ".concat(A.error,"\n"):"")+"".concat(A.event?"event: ".concat(A.event,"\n"):"")+"".concat(A.err?"error message: ".concat(null===(B=A.err)||void 0===B?void 0:B.message,"\n"):"")})};B.on(G.Events.ERROR,p);var _=function(b,A){var B=A.frag,G=B&&B._url||"";s("requestcanceled",{request_event_type:b,request_url:G,request_type:"media",request_hostname:h(G)})};B.on(G.Events.FRAG_LOAD_EMERGENCY_ABORTED,_);var v=function(b,A){var G=A.level,K=B.levels[G];if(K&&K.attrs&&K.attrs.BANDWIDTH){var et,ei=K.attrs.BANDWIDTH,ea=parseFloat(K.attrs["FRAME-RATE"]);isNaN(ea)||(et=ea),ei?s("renditionchange",{video_source_fps:et,video_source_bitrate:ei,video_source_width:K.width,video_source_height:K.height,video_source_rendition_name:K.name,video_source_codec:null==K?void 0:K.videoCodec}):W.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};B.on(G.Events.LEVEL_SWITCHED,v),B._stopMuxMonitor=function(){B.off(G.Events.MANIFEST_LOADED,u),B.off(G.Events.LEVEL_LOADED,l),B.off(G.Events.AUDIO_TRACK_LOADED,d),B.off(G.Events.FRAG_LOADED,c),B.off(G.Events.FRAG_CHANGED,f),B.off(G.Events.ERROR,p),B.off(G.Events.FRAG_LOAD_EMERGENCY_ABORTED,_),B.off(G.Events.LEVEL_SWITCHED,v),B.off(G.Events.DESTROYING,B._stopMuxMonitor),delete B._stopMuxMonitor},B.on(G.Events.DESTROYING,B._stopMuxMonitor)}else W.warn("performance timing not supported. Not tracking HLS.js.")}(this.mux,this.id,b.hlsjs,{},b.Hls||window.Hls)):this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")}},{key:"removeHLSJS",value:function(){var b;this.hlsjs&&((b=this.hlsjs)&&"function"==typeof b._stopMuxMonitor&&b._stopMuxMonitor(),this.hlsjs=void 0)}},{key:"addDashJS",value:function(b){b.dashjs?this.dashjs?this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=b.dashjs,function(b,A,B){var G=b.log;if(B&&B.on){var W=j(B),i=function(B,G){return b.emit(A,B,G)},o=function(b){var A=b.type,B=(b.data||{}).url;i("requestcompleted",{request_event_type:A,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:h(B),request_url:B})};B.on("manifestLoaded",o);var K={},u=function(b){if("function"!=typeof b.getRequests)return null;var A=b.getRequests({state:"executed"});return 0===A.length?null:A[A.length-1]},d=function(b){var A=b.type,G=b.chunk,W=b.request,et=(G||{}).mediaInfo||{},ei=et.type,ea=et.bitrateList,er={};
5(ea=ea||[]).forEach(function(b,A){er[A]={},er[A].width=b.width,er[A].height=b.height,er[A].bitrate=b.bandwidth,er[A].attrs={}}),"video"===ei?K.video=er:"audio"===ei?K.audio=er:K.media=er;var en=R(W,B),eo=en.requestStart,es=en.requestResponseStart,el=en.requestResponseEnd,ed=en.requestResponseHeaders,eu=en.requestMediaDuration,ec=en.requestHostname,em=en.requestUrl;i("requestcompleted",{request_event_type:A,request_start:eo,request_response_start:es,request_response_end:el,request_bytes_loaded:-1,request_type:ei+"_init",request_response_headers:ed,request_hostname:ec,request_id:en.requestId,request_url:em,request_media_duration:eu,request_rendition_lists:K})};W>=4?B.on("initFragmentLoaded",d):B.on("initFragmentLoaded",function(b){var A=b.type,B=b.fragmentModel,G=b.chunk;d({type:A,request:u(B),chunk:G})});var f=function(b){var A=b.type,G=b.chunk,W=b.request,K=G||{},et=K.mediaInfo,ei=K.start,ea=(et||{}).type,er=R(W,B),en=er.requestStart,eo=er.requestResponseStart,es=er.requestResponseEnd,el=er.requestBytesLoaded,ed=er.requestResponseHeaders,eu=er.requestMediaDuration,ec=er.requestHostname,em=er.requestUrl,eh=er.requestId,ep=I(ea,B),e_=ep.currentLevel,ev=ep.renditionWidth,eb=ep.renditionHeight;i("requestcompleted",{request_event_type:A,request_start:en,request_response_start:eo,request_response_end:es,request_bytes_loaded:el,request_type:ea,request_response_headers:ed,request_hostname:ec,request_id:eh,request_url:em,request_media_start_time:ei,request_media_duration:eu,request_current_level:e_,request_labeled_bitrate:ep.renditionBitrate,request_video_width:ev,request_video_height:eb})};W>=4?B.on("mediaFragmentLoaded",f):B.on("mediaFragmentLoaded",function(b){var A=b.type,B=b.fragmentModel,G=b.chunk;f({type:A,request:u(B),chunk:G})});var et={video:void 0,audio:void 0,totalBitrate:void 0},_=function(){if(et.video&&"number"==typeof et.video.bitrate){if(et.video.width&&et.video.height){var b=et.video.bitrate;return et.audio&&"number"==typeof et.audio.bitrate&&(b+=et.audio.bitrate),b!==et.totalBitrate?(et.totalBitrate=b,{video_source_bitrate:b,video_source_height:et.video.height,video_source_width:et.video.width,video_source_codec:L(et.video.codec)}):void 0}G.warn("have bitrate info for video but missing width/height")}},v=function(b,A,W){if("number"==typeof b.newQuality){var K=b.mediaType;if("audio"===K||"video"===K){var ei=B.getBitrateInfoListFor(K).find(function(A){return A.qualityIndex===b.newQuality});if(ei&&"number"==typeof ei.bitrate){et[K]=S(S({},ei),{},{codec:B.getCurrentTrackFor(K).codec});var ea=_();ea&&i("renditionchange",ea)}else G.warn("missing bitrate info for ".concat(K))}}else G.warn("missing evt.newQuality in qualityChangeRendered event",b)};B.on("qualityChangeRendered",v);var m=function(b){var A=b.request,B=b.mediaType;i("requestcanceled",{request_event_type:(A=A||{}).type+"_"+A.action,request_url:A.url,request_type:B,request_hostname:h(A.url)})};B.on("fragmentLoadingAbandoned",m);var y=function(b){var A,B,G=b.error,W=(null==G||null===(A=G.data)||void 0===A?void 0:A.request)||{},K=(null==G||null===(B=G.data)||void 0===B?void 0:B.response)||{};27===(null==G?void 0:G.code)&&i("requestfailed",{request_error:W.type+"_"+W.action,request_url:W.url,request_hostname:h(W.url),request_type:W.mediaType,request_error_code:K.status,request_error_text:K.statusText});var et="".concat(null!=W&&W.url?"url: ".concat(W.url,"\n"):"")+"".concat(null!=K&&K.status||null!=K&&K.statusText?"response: ".concat(null==K?void 0:K.status,", ").concat(null==K?void 0:K.statusText,"\n"):"");i("error",{player_error_code:null==G?void 0:G.code,player_error_message:null==G?void 0:G.message,player_error_context:et})};B.on("error",y),B._stopMuxMonitor=function(){B.off("manifestLoaded",o),B.off("initFragmentLoaded",d),B.off("mediaFragmentLoaded",f),B.off("qualityChangeRendered",v),B.off("error",y),B.off("fragmentLoadingAbandoned",m),delete B._stopMuxMonitor}}else G.warn("Invalid dash.js player reference. Monitoring blocked.")}(this.mux,this.id,b.dashjs)):this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")}},{key:"removeDashJS",value:function(){var b;this.dashjs&&((b=this.dashjs)&&"function"==typeof b._stopMuxMonitor&&b._stopMuxMonitor(),this.dashjs=void 0)}}],_t(o.prototype,B),G&&_t(o,G),Object.defineProperty(o,"prototype",{writable:!1}),o}(ed),eV=B(153),eH=B.n(eV);function Ot(b){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(b)}function Dt(b,A){return function(b){if(Array.isArray(b))return b}(b)||function(b,A){var B=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=B){var G,W,K=[],et=!0,ei=!1;try{for(B=B.call(b);!(et=(G=B.next()).done)&&(K.push(G.value),!A||K.length!==A);et=!0);}catch(b){ei=!0,W=b}finally{try{et||null==B.return||B.return()}finally{if(ei)throw W}}return K}}(b,A)||function(b,A){if(b){if("string"==typeof b)return xt(b,A);var B=Object.prototype.toString.call(b).slice(8,-1);return"Object"===B&&b.constructor&&(B=b.constructor.name),"Map"===B||"Set"===B?Array.from(b):"Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B
5)?xt(b,A):void 0}}(b,A)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(b,A){(null==A||A>b.length)&&(A=b.length);for(var B=0,G=Array(A);B<A;B++)G[B]=b[B];return G}var eq,eF,ej,e$,eK,eY,eQ,eZ,ez,eX,eJ,e0,e1,e2,e3,e9,e5,e4,e8,e6,e7,tt,ti,ta,tr,tn=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],to={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"};W()&&W().WeakMap&&(tr=new WeakMap);var Ht=function(b){return this.buffer="",this.manifest={segments:[],serverControl:{},sessionData:{}},this.currentUri={},this.process(b),this.manifest};Ht.prototype.process=function(b){var A;for(this.buffer+=b,A=this.buffer.indexOf("\n");A>-1;A=this.buffer.indexOf("\n"))this.processLine(this.buffer.substring(0,A)),this.buffer=this.buffer.substring(A+1)},Ht.prototype.processLine=function(b){var A=b.indexOf(":"),B=Qt(b,A),G=B[0],W=2===B.length?Bt(B[1]):void 0;if("#"!==G[0])this.currentUri.uri=G,this.manifest.segments.push(this.currentUri),!this.manifest.targetDuration||"duration"in this.currentUri||(this.currentUri.duration=this.manifest.targetDuration),this.currentUri={};else switch(G){case"#EXT-X-TARGETDURATION":if(!isFinite(W)||W<0)return;this.manifest.targetDuration=W,this.setHoldBack();break;case"#EXT-X-PART-INF":Mt(this.manifest,B),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),this.setHoldBack();break;case"#EXT-X-SERVER-CONTROL":Mt(this.manifest,B),this.setHoldBack();break;case"#EXTINF":0===W?this.currentUri.duration=.01:W>0&&(this.currentUri.duration=W);break;case"#EXT-X-PROGRAM-DATE-TIME":var K=new Date(W);this.manifest.dateTimeString||(this.manifest.dateTimeString=W,this.manifest.dateTimeObject=K),this.currentUri.dateTimeString=W,this.currentUri.dateTimeObject=K;break;case"#EXT-X-VERSION":Mt(this.manifest,B);break;case"#EXT-X-SESSION-DATA":var et=k(Vt(B[1]));Object.assign(this.manifest.sessionData,et)}},Ht.prototype.setHoldBack=function(){var b=this.manifest,A=b.serverControl,B=b.targetDuration,G=b.partTargetDuration;if(A){var W="holdBack",K="partHoldBack",et=B&&3*B,ei=G&&2*G;B&&!A.hasOwnProperty(W)&&(A[W]=et),et&&A[W]<et&&(A[W]=et),G&&!A.hasOwnProperty(K)&&(A[K]=3*G),G&&A[K]<ei&&(A[K]=ei)}};var Mt=function(b,A){var B,G=Ut(A[0].replace("#EXT-X-",""));Wt(A[1])?(B={},B=Object.assign(Gt(A[1]),B)):B=Bt(A[1]),b[G]=B},Ut=function(b){return b.toLowerCase().replace(/-(\w)/g,function(b){return b[1].toUpperCase()})},Bt=function(b){if("yes"===b.toLowerCase()||"no"===b.toLowerCase())return"yes"===b.toLowerCase();var A=-1!==b.indexOf(":")?b:parseFloat(b);return isNaN(A)?b:A},Ft=function(b){var A={},B=b.split("=");return B.length>1&&(A[Ut(B[0])]=Bt(B[1])),A},Gt=function(b){for(var A=b.split(","),B={},G=0;A.length>G;G++)B=Object.assign(Ft(A[G]),B);return B},Wt=function(b){return b.indexOf("=")>-1},Qt=function(b,A){return -1===A?[b]:[b.substring(0,A),b.substring(A+1)]},Vt=function(b){var A={};if(b){var B=b.search(",");
5return[b.slice(0,B),b.slice(B+1)].forEach(function(b,B){for(var G=b.replace(/['"]+/g,"").split("="),W=0;W<G.length;W++)"DATA-ID"===G[W]&&(A["DATA-ID"]=G[1-W]),"VALUE"===G[W]&&(A.VALUE=G[1-W])}),{data:A}}},ts={safeCall:function(b,A,B,G){var W=G;if(b&&"function"==typeof b[A])try{W=b[A].apply(b,B)}catch(b){ea.info("safeCall error",b)}return W},safeIncrement:y,getComputedStyle:function(b,A){var B;if(b&&A&&W()&&"function"==typeof W().getComputedStyle)return tr&&tr.has(b)&&(B=tr.get(b)),B||(B=W().getComputedStyle(b,null),tr&&tr.set(b,B)),B.getPropertyValue(A)},secondsToMs:function(b){return Math.floor(1e3*b)},assign:Object.assign,headersStringToObject:w,cdnHeadersToRequestId:T,extractHostnameAndDomain:v,extractHostname:h,manifestParser:Ht,generateShortID:o,generateUUID:i,now:er.now};function Xt(b,A){(null==A||A>b.length)&&(A=b.length);for(var B=0,G=Array(A);B<A;B++)G[B]=b[B];return G}var tl={},Zt=function e(b){var A=arguments;"string"==typeof b?e.hasOwnProperty(b)?W().setTimeout(function(){A=Array.prototype.splice.call(A,1),e[b].apply(null,A)},0):ea.warn("`"+b+"` is an unknown task"):"function"==typeof b?W().setTimeout(function(){b(e)},0):ea.warn("`"+b+"` is invalid.")},td={loaded:er.now(),NAME:"mux-embed",VERSION:"4.30.0",API_VERSION:"2.1",PLAYER_TRACKED:!1,monitor:function(b,A){return function(b,A,B){var G=Dt(u(A),3),W=G[0],K=G[1],et=G[2],ei=b.log,ea=b.utils.getComputedStyle,er=b.utils.secondsToMs;if(!W)return ei.error("No element was found with the `"+K+"` query selector.");if("video"!==et&&"audio"!==et)return ei.error("The element of `"+K+"` was not a media element.");W.mux&&(W.mux.destroy(),delete W.mux,ei.warn("Already monitoring this video element, replacing existing event listeners")),(B=Object.assign({automaticErrorTracking:!0},B)).data=Object.assign({player_software:"HTML5 Video Element",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:b.VERSION},B.data),B.getPlayheadTime=function(){return er(W.currentTime)},B.getStateData=function(){var b,A,G=this.hlsjs&&this.hlsjs.url,K=this.dashjs&&Ot("function"===this.dashjs.getSource)&&this.dashjs.getSource(),et={player_is_paused:W.paused,player_playhead_time:er(W.currentTime),player_width:parseInt(ea(W,"width")),player_height:parseInt(ea(W,"height")),player_autoplay_on:W.autoplay,player_preload_on:W.preload,player_language_code:W.lang,player_is_fullscreen:eH()&&!!(eH().fullscreenElement||eH().webkitFullscreenElement||eH().mozFullScreenElement||eH().msFullscreenElement),video_poster_url:W.poster,video_source_url:G||K||W.currentSrc,video_source_duration:er(W.duration),video_source_height:W.videoHeight,video_source_width:W.videoWidth,view_dropped_frame_count:null===(b=W)||void 0===b||null===(A=b.getVideoPlaybackQuality)||void 0===A?void 0:A.call(b).droppedVideoFrames},ei=B.getPlayheadTime();if(W.getStartDate&&ei>0){var en=W.getStartDate();if(en&&"function"==typeof en.getTime&&en.getTime()){var eo=en.getTime();if(et.player_program_time=eo+ei,W.seekable.length>0){var es=eo+W.seekable.end(W.seekable.length-1);et.player_live_edge_program_time=es}}}return et},W.mux=W.mux||{},W.mux.deleted=!1,W.mux.emit=function(A,B){b.emit(K,A,B)};var c=function(){ei.error("The monitor for this video element has already been destroyed.")};W.mux.destroy=function(){Object.keys(W.mux.listeners).forEach(function(b){W.removeEventListener(b,W.mux.listeners[b],!1)}),delete W.mux.listeners,W.mux.destroy=c,W.mux.swapElement=c,W.mux.emit=c,W.mux.addHLSJS=c,W.mux.addDashJS=c,W.mux.removeHLSJS=c,W.mux.removeDashJS=c,W.mux.deleted=!0,b.emit(K,"destroy")},W.mux.swapElement=function(A){var B=Dt(u(A),3),G=B[0],K=B[1],et=B[2];return G?"video"!==et&&"audio"!==et?b.log.error("The element of `"+K+"` was not a media element."):(G.muxId=W.muxId,delete W.muxId,G.mux=G.mux||{},G.mux.listeners=Object.assign({},W.mux.listeners),delete W.mux.listeners,Object.keys(G.mux.listeners).forEach(function(b){W.removeEventListener(b,G.mux.listeners[b],!1),G.addEventListener(b,G.mux.listeners[b],!1)}),G.mux.swapElement=W.mux.swapElement,G.mux.destroy=W.mux.destroy,delete W.mux,void(W=G)):b.log.error("No element was found with the `"+K+"` query selector.")},W.mux.addHLSJS=function(A){b.addHLSJS(K,A)}
5,W.mux.addDashJS=function(A){b.addDashJS(K,A)},W.mux.removeHLSJS=function(){b.removeHLSJS(K)},W.mux.removeDashJS=function(){b.removeDashJS(K)},b.init(K,B),b.emit(K,"playerready"),W.paused||(b.emit(K,"play"),W.readyState>2&&b.emit(K,"playing")),W.mux.listeners={},tn.forEach(function(A){("error"!==A||B.automaticErrorTracking)&&(W.mux.listeners[A]=function(){var B={};if("error"===A){if(!W.error||1===W.error.code)return;B.player_error_code=W.error.code,B.player_error_message=to[W.error.code]||W.error.message}b.emit(K,A,B)},W.addEventListener(A,W.mux.listeners[A],!1))})}(Zt,b,A)},destroyMonitor:function(b){var A,B=(function(b){if(Array.isArray(b))return b}(A=u(b))||function(b,A){var B=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=B){var G,W,K=[],et=!0,ei=!1;try{for(B=B.call(b);!(et=(G=B.next()).done)&&(K.push(G.value),!A||K.length!==A);et=!0);}catch(b){ei=!0,W=b}finally{try{et||null==B.return||B.return()}finally{if(ei)throw W}}return K}}(A,1)||function(b,A){if(b){if("string"==typeof b)return Xt(b,A);var B=Object.prototype.toString.call(b).slice(8,-1);return"Object"===B&&b.constructor&&(B=b.constructor.name),"Map"===B||"Set"===B?Array.from(b):"Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?Xt(b,A):void 0}}(A,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];B&&B.mux&&"function"==typeof B.mux.destroy?B.mux.destroy():ea.error("A video element monitor for `"+b+"` has not been initialized via `mux.monitor`.")},addHLSJS:function(b,A){var B=s(b);tl[B]?tl[B].addHLSJS(A):ea.error("A monitor for `"+B+"` has not been initialized.")},addDashJS:function(b,A){var B=s(b);tl[B]?tl[B].addDashJS(A):ea.error("A monitor for `"+B+"` has not been initialized.")},removeHLSJS:function(b){var A=s(b);tl[A]?tl[A].removeHLSJS():ea.error("A monitor for `"+A+"` has not been initialized.")},removeDashJS:function(b){var A=s(b);tl[A]?tl[A].removeDashJS():ea.error("A monitor for `"+A+"` has not been initialized.")},init:function(b,A){p()&&A&&A.respectDoNotTrack&&ea.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var B=s(b);tl[B]=new eW(Zt,B,A)},emit:function(b,A,B){var G=s(b);tl[G]?(tl[G].emit(A,B),"destroy"===A&&delete tl[G]):ea.error("A monitor for `"+G+"` has not been initialized.")},checkDoNotTrack:p,log:ea,utils:ts,events:{PLAYER_READY:"playerready",VIEW_INIT:"viewinit",VIDEO_CHANGE:"videochange",PLAY:"play",PAUSE:"pause",PLAYING:"playing",TIME_UPDATE:"timeupdate",SEEKING:"seeking",SEEKED:"seeked",REBUFFER_START:"rebufferstart",REBUFFER_END:"rebufferend",ERROR:"error",ENDED:"ended",RENDITION_CHANGE:"renditionchange",ORIENTATION_CHANGE:"orientationchange",AD_REQUEST:"adrequest",AD_RESPONSE:"adresponse",AD_BREAK_START:"adbreakstart",AD_PLAY:"adplay",AD_PLAYING:"adplaying",AD_PAUSE:"adpause",AD_FIRST_QUARTILE:"adfirstquartile",AD_MID_POINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",AD_ENDED:"adended",AD_BREAK_END:"adbreakend",AD_ERROR:"aderror",REQUEST_COMPLETED:"requestcompleted",REQUEST_FAILED:"requestfailed",REQUEST_CANCELLED:"requestcanceled"},WINDOW_HIDDEN:!1,WINDOW_UNLOADING:!1};Object.assign(Zt,td),void 0!==W()&&"function"==typeof W().addEventListener&&W().addEventListener("pagehide",function(b){b.persisted||(Zt.WINDOW_UNLOADING=!0)},!1);var tu=Zt},655:function(b,A,B){var G,W;function i(b){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(b);/*!
6 * JavaScript Cookie v2.1.3
7 * https://github.com/js-cookie/js-cookie
8 *
9 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
10 * Released under the MIT license
11 */}!function(K){var et=!1;if(void 0===(W="function"==typeof(G=K)?G.call(A,B,A,b):G)||(b.exports=W),et=!0,"object"===i(A)&&(b.exports=K(),et=!0),!et){var ei=window.Cookies,ea=window.Cookies=K();ea.noConflict=function(){return window.Cookies=ei,ea}}}(function(){var e=function(){for(var b=0,A={};b<arguments.length;b++){var B=arguments[b];for(var G in B)A[G]=B[G]}return A};return function t(b){function a(A,B,G){var W;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(G=e({path:"/"},a.defaults,G)).expires){var K=new Date;K.setMilliseconds(K.getMilliseconds()+864e5*G.expires),G.expires=K}try{W=JSON.stringify(B),/^[\{\[]/.test(W)&&(B=W)}catch(b){}return B=b.write?b.write(B,A):encodeURIComponent(String(B)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decode
11URIComponent),A=(A=(A=encodeURIComponent(String(A))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[A,"=",B,G.expires?"; expires="+G.expires.toUTCString():"",G.path?"; path="+G.path:"",G.domain?"; domain="+G.domain:"",G.secure?"; secure":""].join("")}A||(W={});for(var et=document.cookie?document.cookie.split("; "):[],ei=/(%[0-9A-Z]{2})+/g,ea=0;ea<et.length;ea++){var er=et[ea].split("="),en=er.slice(1).join("=");'"'===en.charAt(0)&&(en=en.slice(1,-1));try{var eo=er[0].replace(ei,decodeURIComponent);if(en=b.read?b.read(en,eo):b(en,eo)||en.replace(ei,decodeURIComponent),this.json)try{en=JSON.parse(en)}catch(b){}if(A===eo){W=en;break}A||(W[eo]=en)}catch(b){}}return W}}return a.set=a,a.get=function(b){return a.call(a,b)},a.getJSON=function(){return a.apply({json:!0},[].slice.call(arguments))},a.defaults={},a.remove=function(b,A){a(b,"",e(A,{expires:-1}))},a.withConverter=t,a}(function(){})})},153:function(b,A,B){var G,W=void 0!==B.g?B.g:"undefined"!=typeof window?window:{},K=B(558);"undefined"!=typeof document?G=document:(G=W["__GLOBAL_DOCUMENT_CACHE@4"])||(G=W["__GLOBAL_DOCUMENT_CACHE@4"]=K),b.exports=G},48:function(b,A,B){var G;G="undefined"!=typeof window?window:void 0!==B.g?B.g:"undefined"!=typeof self?self:{},b.exports=G},640:function(b,A,B){var G,W;void 0===(W="function"==typeof(G=function(){var e=function(){},b="undefined",A=typeof window!==b&&typeof window.navigator!==b&&/Trident\/|MSIE /.test(window.navigator.userAgent),B=["trace","debug","info","warn","error"];function n(b,A){var B=b[A];if("function"==typeof B.bind)return B.bind(b);try{return Function.prototype.bind.call(B,b)}catch(A){return function(){return Function.prototype.apply.apply(B,[b,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(b,A){for(var G=0;G<B.length;G++){var W=B[G];this[W]=G<b?e:this.methodFactory(W,b,A)}this.log=this.debug}function u(A,B,G){return function(){typeof console!==b&&(s.call(this,B,G),this[A].apply(this,arguments))}}function l(B,G,W){var K;return"debug"===(K=B)&&(K="log"),typeof console!==b&&("trace"===K&&A?i:void 0!==console[K]?n(console,K):void 0!==console.log?n(console,"log"):e)||u.apply(this,arguments)}function d(A,G,W){var K,et=this;G=null==G?"WARN":G;var ei="loglevel";function c(){var A;if(typeof window!==b&&ei){try{A=window.localStorage[ei]}catch(b){}if(typeof A===b)try{var B=window.document.cookie,G=B.indexOf(encodeURIComponent(ei)+"=");-1!==G&&(A=/^([^;]+)/.exec(B.slice(G))[1])}catch(b){}return void 0===et.levels[A]&&(A=void 0),A}}"string"==typeof A?ei+=":"+A:"symbol"==typeof A&&(ei=void 0),et.name=A,et.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},et.methodFactory=W||l,et.getLevel=function(){return K},et.setLevel=function(G,W){if("string"==typeof G&&void 0!==et.levels[G.toUpperCase()]&&(G=et.levels[G.toUpperCase()]),!("number"==typeof G&&G>=0&&G<=et.levels.SILENT))throw"log.setLevel() called with invalid level: "+G;if(K=G,!1!==W&&function(A){var G=(B[A]||"silent").toUpperCase();if(typeof window!==b&&ei){try{return void(window.localStorage[ei]=G)}catch(b){}try{window.document.cookie=encodeURIComponent(ei)+"="+G+";"}catch(b){}}}(G),s.call(et,G,A),typeof console===b&&G<et.levels.SILENT)return"No console available for logging"},et.setDefaultLevel=function(b){G=b,c()||et.setLevel(b,!1)},et.resetLevel=function(){et.setLevel(G,!1),function(){if(typeof window!==b&&ei){try{return void window.localStorage.removeItem(ei)}catch(b){}try{window.document.cookie=encodeURIComponent(ei)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(b){}}}()},et.enableAll=function(b){et.setLevel(et.levels.TRACE,b)},et.disableAll=function(b){et.setLevel(et.levels.SILENT,b)};var ea=c();null==ea&&(ea=G),et.setLevel(ea,!1)}var G=new d,W={};G.getLogger=function(b){if("symbol"!=typeof b&&"string"!=typeof b||""===b)throw TypeError("You must supply a name when creating a logger.");var A=W[b];return A||(A=W[b]=new d(b,G.getLevel(),G.methodFactory)),A};var K=typeof window!==b?window.log:void 0;return G.noConflict=function(){return typeof window!==b&&window.log===G&&(window.log=K),G},G.getLoggers=function(){return W},G.default=G,G})?G.call(A,B,A,b):G)||(b.exports=W)},375:function(b,A){"use strict";var B=Object.prototype.hasOwnProperty;function a(b){try{return decodeURIComponent(b.replace(/\+/g," "))}catch(b){return null}}function n(b){try{return encodeURIComponent(b)}catch(b){return null}}A.stringify=function(b,A){var G,W,K=[];for(W in"string"!=typeof(A=A||"")&&(A="?"),b)if(B.call(b,W)){if((G=b[W])||null!=G&&!isNaN(G)||(G=""),W=n(W),G=n(G),null===W||null===G)continue;K.push(W+"="+G)}
11return K.length?A+K.join("&"):""},A.parse=function(b){for(var A,B=/([^=?#&]+)=?([^&]*)/g,G={};A=B.exec(b);){var W=a(A[1]),K=a(A[2]);null===W||null===K||W in G||(G[W]=K)}return G}},558:function(){}},A={};function r(B){var G=A[B];if(void 0!==G)return G.exports;var W=A[B]={exports:{}};return b[B].call(W.exports,W,W.exports,r),W.exports}return r.n=function(b){var A=b&&b.__esModule?function(){return b.default}:function(){return b};return r.d(A,{a:A}),A},r.d=function(b,A){for(var B in A)r.o(A,B)&&!r.o(b,B)&&Object.defineProperty(b,B,{enumerable:!0,get:A[B]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(b){if("object"==typeof window)return window}}(),r.o=function(b,A){return Object.prototype.hasOwnProperty.call(b,A)},r(80)}()},1861:function(b,A,B){"use strict";B.d(A,{Z:function(){return esm_browser_v4}});for(var G,W={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},K=new Uint8Array(16),et=[],ei=0;ei<256;++ei)et.push((ei+256).toString(16).slice(1));var esm_browser_v4=function(b,A,B){if(W.randomUUID&&!A&&!b)return W.randomUUID();var ei=(b=b||{}).random||(b.rng||function(){if(!G&&!(G="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return G(K)})();if(ei[6]=15&ei[6]|64,ei[8]=63&ei[8]|128,A){B=B||0;for(var ea=0;ea<16;++ea)A[B+ea]=ei[ea];return A}return function(b,A=0){return(et[b[A+0]]+et[b[A+1]]+et[b[A+2]]+et[b[A+3]]+"-"+et[b[A+4]]+et[b[A+5]]+"-"+et[b[A+6]]+et[b[A+7]]+"-"+et[b[A+8]]+et[b[A+9]]+"-"+et[b[A+10]]+et[b[A+11]]+et[b[A+12]]+et[b[A+13]]+et[b[A+14]]+et[b[A+15]]).toLowerCase()}(ei)}},8057:function(b,A,B){"use strict";let G,W;B.d(A,{ZP:function(){return sF}});var K=B(1248),et=B(2754),ei=B(2312).Z,ea=class M extends Error{constructor(b,A=M.MEDIA_ERR_CUSTOM,B,G){var W;super(b),this.name="MediaError",this.code=A,this.context=G,this.fatal=null!=B?B:A>=M.MEDIA_ERR_NETWORK&&A<=M.MEDIA_ERR_ENCRYPTED,this.message||(this.message=null!=(W=M.defaultMessages[this.code])?W:"")}};ea.MEDIA_ERR_ABORTED=1,ea.MEDIA_ERR_NETWORK=2,ea.MEDIA_ERR_DECODE=3,ea.MEDIA_ERR_SRC_NOT_SUPPORTED=4,ea.MEDIA_ERR_ENCRYPTED=5,ea.MEDIA_ERR_CUSTOM=100,ea.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail.",3:"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.",4:"An unsupported error occurred. The server or network failed, or your browser does not support this format.",5:"The media is encrypted and there are no keys to decrypt it."};var Te=b=>null==b,D=(b,A)=>!Te(A)&&b in A,er={ANY:"any",MUTED:"muted"},en={ON_DEMAND:"on-demand",LIVE:"live",UNKNOWN:"unknown"},eo={MSE:"mse",NATIVE:"native"},es={HEADER:"header",QUERY:"query",NONE:"none"},el=Object.values(es),ed={M3U8:"application/vnd.apple.mpegurl",MP4:"video/mp4"},eu={HLS:ed.M3U8};Object.keys(eu),[...Object.values(ed)];var g=(b,A,B,G,W=b)=>{W.addEventListener(A,B,G),b.addEventListener("teardown",()=>{W.removeEventListener(A,B)},{once:!0})},Y=b=>{let A=b.indexOf("?");return A<0?[b]:[b.slice(0,A),b.slice(A)]},k=b=>{let A=b.type;if(A){let b=A.toUpperCase();return D(b,eu)?eu[b]:A}let{src:B}=b;return B?ye(B):""},w=b=>"VOD"===b?en.ON_DEMAND:en.LIVE,H=b=>"EVENT"===b?Number.POSITIVE_INFINITY:"VOD"===b?Number.NaN:0,ye=b=>{let A="";try{A=new URL(b).pathname}catch{console.error("invalid url")}let B=A.lastIndexOf(".");if(B<0)return"";let G=A.slice(B+1).toUpperCase();return D(G,ed)?ed[G]:""},ec=Object.values(er),q=b=>"boolean"==typeof b||"string"==typeof b&&ec.includes(b),$=({autoplay:b},A,B)=>{let G=!1,W=!1,K=q(b)?b:!!b,i=()=>{G||g(A,"playing",()=>{G=!0},{once:!0})};if(i(),g(A,"loadstart",()=>{G=!1,i(),N(A,K)},{once:!0}),g(A,"loadstart",()=>{B||(W=!Number.isFinite(A.duration)),N(A,K)},{once:!0}),B&&B.once(ei.Events.LEVEL_LOADED,(b,A)=>{var B;W=null!=(B=A.details.live)&&B}),!K){let d=()=>{W&&(null!=B&&B.liveSyncPosition?A.currentTime=B.liveSyncPosition:Number.isFinite(A.seekable.end(0))&&(A.currentTime=A.seekable.end(0)))};B&&g(A,"play",()=>{"metadata"===A.preload?B.once(ei.Events.LEVEL_UPDATED,d):d()},{once:!0})}return b=>{G||N(A,K=q(b)?b:!!b)}},N=(b,A)=>{if(!A)return;let B=b.muted,r=()=>b.muted=B;switch(A){case er.ANY:b.play().catch(()=>{b.muted=!0,b.play().catch(r)});break;case er.MUTED:b.muted=!0,b.play().catch(r);break;default:b.play().catch(()=>{})}},z=({preload:b,src:A},B,G)=>{let o=b=>{null!=b&&["","none","metadata","auto"].includes(b)?B.setAttribute("preload",b):B.removeAttribute("preload")};if(!G)return o(b),o;let W=!1,K=!1,et=G.config.maxBufferLength,ei=G.config.maxBufferSize,c=b=>{o(b);let A=null!=b?b:B.preload;K||"none"===A||("metadata"===A?(G.config.maxBufferLength=1,G.config.maxBufferSize=1):(G.config.maxBufferLength=et,G.config.maxBufferSize=ei),p())},p=()=>{!W&&A&&(W=!0,G.loadSource(A))};return g(B,"play",()=>{K=!0,G.config.maxBufferLength=et,G.config.maxBufferSize=ei,p()},{once:!0}),c(b),c};function _(b,A,B,G,W){let K=document.createElement("track");return K.kind=A,K.label=B,G&&(K.srclang=G),W&&(K.id=W),K.track.mode=["subtitles","captions"].includes(A)?"disabled":"hidden",K.setAttribute("data-removeondestroy",""),b.append(K),K.track}var em="cuepoints",eh=Object.freeze({label:em}),S=(b,{label:A=em}=eh)=>{var B;return null==(B=Array.from(b.querySelectorAll("track")).find(b=>b.track.label===A&&"metadata"===b.track.kind))?void 0:B.track};async function j(b,A,B=eh){let G=S(b,B);if(!G){let{label:A=em}=B;(G=_(b,"metadata",A)).mode="hidden",await new Promise(b=>setTimeout(()=>b(void 0),0))}return"hidden"!==G.mode&&(G.mode="hidden"),[...A].sort(({time:b},{time:A})=>A-b).forEach(({time:A,value:B})=>{var W,K;let et=Array.prototype.findIndex.call(null==G?void 0:G.cues,b=>b.startTime>=A),ei=null==(W=null==G?void 0:G.cues)?void 0:W[et],ea=ei?ei.startTime:Number.isFinite(b.duration)?b.duration:Number.MAX_SAFE_INTEGER,er=null==(K=null==G?void 0:G.cues)?void 0:K[et-1];er&&(er.endTime=A);let en=new VTTCue(A,ea,JSON.stringify(null!=B?B:null));G.addCue(en)}),G}var Q=b=>({time:b.startTime,value:JSON.parse(b.text)});function J(b,A={label:em}){var B,G;let W=S(b,A);if(!(null!=(B=null==W?void 0:W.activeCues)&&B.length))return;let{currentTime:K}=b;return Q(Array.prototype.find.call(null!=(G=W.activeCues)?G:[],({startTime:b,endTime:A})=>b<=K&&A>K))}async function Z(b,A=eh){return new Promise(B=>{g(b,"loadstart",async()=>{let G=await j(b,[],A);g(b,"cuechange",()=>{let A=J(b);if(A){let B=new CustomEvent("cuepointchange",{composed:!0,bubbles:!0,detail:A});b.dispatchEvent(B)}},{},G),B(G)})})}var ep,e_,ev,xe=async b=>fetch(b).then(b=>b.text()).then(b=>{let A=b.split(`
12`).find((b,A,B)=>A&&B[A-1].startsWith("#EXT-X-STREAM-INF"));return fetch(A).then(b=>b.text()).then(b=>b.split(`
13`))}),Pe=b=>{var A,B,G;let W=null==(B=(null!=(A=b.find(b=>b.startsWith("#EXT-X-PLAYLIST-TYPE")))?A:"").split(":")[1])?void 0:B.trim(),K=w(W),et=H(W),ei;if(K===en.LIVE){let A=b.find(b=>b.startsWith("#EXT-X-PART-INF"));if(A)ei=2*+A.split(":")[1].split("=")[1];else{let A=b.find(b=>b.startsWith("#EXT-X-TARGETDURATION")),B=null==(G=null==A?void 0:A.split(":"))?void 0:G[1];ei=3*+(null!=B?B:6)}}return{streamType:K,targetLiveWindow:et,liveEdgeStartOffset:ei}},Ee=async(b,A)=>A===ed.MP4?{streamType:en.ON_DEMAND,targetLiveWindow:Number.NaN,liveEdgeStartOffset:void 0}:A===ed.M3U8?Pe(await xe(b)):(console.error(`Media type ${A} is an unrecognized or unsupported type for src ${b}.`),{streamType:void 0,targetLiveWindow:void 0,liveEdgeStartOffset:void 0}),ee=async(b,A,B=k({src:b}))=>{var G,W,K;let{streamType:et,targetLiveWindow:ei,liveEdgeStartOffset:ea}=await Ee(b,B);(null!=(G=eg.get(A))?G:{}).liveEdgeStartOffset=ea,(null!=(W=eg.get(A))?W:{}).targetLiveWindow=ei,A.dispatchEvent(new CustomEvent("targetlivewindowch
13ange",{composed:!0,bubbles:!0})),(null!=(K=eg.get(A))?K:{}).streamType=et,A.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))},Le=b=>{var A;let B=b.type,G=w(B),W=H(B),K,et=!!(null!=(A=b.partList)&&A.length);return G===en.LIVE&&(K=et?2*b.partTarget:3*b.targetduration),{streamType:G,targetLiveWindow:W,liveEdgeStartOffset:K,lowLatency:et}},ke=(b,A,B)=>{var G,W,K,et,ei,ea,er,eo;let{streamType:es,targetLiveWindow:el,liveEdgeStartOffset:ed,lowLatency:eu}=Le(b);if(es===en.LIVE){eu?(B.config.backBufferLength=null!=(G=B.userConfig.backBufferLength)?G:4,B.config.maxFragLookUpTolerance=null!=(W=B.userConfig.maxFragLookUpTolerance)?W:.001,B.config.abrBandWidthUpFactor=null!=(K=B.userConfig.abrBandWidthUpFactor)?K:B.config.abrBandWidthFactor):B.config.backBufferLength=null!=(et=B.userConfig.backBufferLength)?et:8;let b=Object.freeze({get length(){return A.seekable.length},start:b=>A.seekable.start(b),end(b){var G;return b>this.length?A.seekable.end(b):null!=(G=B.liveSyncPosition)?G:A.seekable.end(b)}});(null!=(ei=eg.get(A))?ei:{}).seekable=b}(null!=(ea=eg.get(A))?ea:{}).liveEdgeStartOffset=ed,(null!=(er=eg.get(A))?er:{}).targetLiveWindow=el,A.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0})),(null!=(eo=eg.get(A))?eo:{}).streamType=es,A.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))},eb=-1!==(null!=(e_=null==(ep=null==globalThis?void 0:globalThis.navigator)?void 0:ep.userAgent)?e_:"").toLowerCase().indexOf("android"),eg=new WeakMap,eE="mux.com",ef=null==(ev=ei.isSupported)?void 0:ev.call(ei),At=()=>et.utils.now(),ey=et.utils.generateUUID,St=({playbackId:b,customDomain:A=eE,maxResolution:B,minResolution:G,renditionOrder:W,tokens:{playback:K}={},extraSourceParams:et={}}={})=>{if(!b)return;let[ei,ea=""]=Y(b),er=new URL(`https://stream.${A}/${ei}.m3u8${ea}`);return K||er.searchParams.has("token")?(er.searchParams.forEach((b,A)=>{"token"!=A&&er.searchParams.delete(A)}),K&&er.searchParams.set("token",K)):(B&&er.searchParams.set("max_resolution",B),G&&(er.searchParams.set("min_resolution",G),B&&+B.slice(0,-1)<+G.slice(0,-1)&&console.error("minResolution must be <= maxResolution","minResolution",G,"maxResolution",B)),W&&er.searchParams.set("rendition_order",W),Object.entries(et).forEach(([b,A])=>{null!=A&&er.searchParams.set(b,A)})),er.toString()},Re=b=>{if(!b)return;let[A]=b.split("?");return A||void 0},De=b=>{if(!b||!b.startsWith("https://stream."))return;let[A]=new URL(b).pathname.slice(1).split(".m3u8");return A||void 0},Ie=b=>{var A,B,G;return null!=(A=null==b?void 0:b.metadata)&&A.video_id?b.metadata.video_id:ue(b)&&null!=(G=null!=(B=Re(b.playbackId))?B:De(b.src))?G:b.src},Rt=b=>{var A;return null==(A=eg.get(b))?void 0:A.error},Dt=b=>{var A,B;return null!=(B=null==(A=eg.get(b))?void 0:A.streamType)?B:en.UNKNOWN},It=b=>{var A,B;return null!=(B=null==(A=eg.get(b))?void 0:A.targetLiveWindow)?B:Number.NaN},we=b=>{var A,B;return null!=(B=null==(A=eg.get(b))?void 0:A.seekable)?B:b.seekable},wt=b=>{var A;let B=null==(A=eg.get(b))?void 0:A.liveEdgeStartOffset;if("number"!=typeof B)return Number.NaN;let G=we(b);return G.length?G.end(G.length-1)-B:Number.NaN},He=(b,A,B=.001)=>Math.abs(b-A)<=B,ie=(b,A,B=.001)=>b>A||He(b,A,B),Ne=b=>b.paused&&ie(b.currentTime,b.duration),_e=(b,A)=>b.loop||A?b.ended:b.ended||Ne(b),Ht=(b,A,B)=>{Oe(A,B);let{metadata:G={}}=b,{view_session_id:W=ey()}=G,K=Ie(b);G.view_session_id=W,G.video_id=K,b.metadata=G,eg.set(A,{});let et=Ve(b,A);Fe(b,A,et),We(b,A,et),Z(A);let ei=$(b,A,et),ea=z(b,A,et);return{engine:et,setAutoplay:ei,setPreload:ea}},Oe=(b,A)=>{let B=null==A?void 0:A.engine;B&&(B.detachMedia(),B.destroy()),null!=b&&b.mux&&!b.mux.deleted&&(b.mux.destroy(),delete b.mux),b&&(b.removeAttribute("src"),b.load(),b.removeEventListener("error",pe),b.removeEventListener("error",V),b.removeEventListener("durationchange",de),eg.delete(b),b.dispatchEvent(new Event("teardown")))};function ce(b,A){var B;let G=k(b);if(G!==ed.M3U8)return!0;let W=!G||null==(B=A.canPlayType(G))||B,{preferPlayback:K}=b,et=K===eo.MSE,ei=K===eo.NATIVE;return W&&(ei||!(ef&&(et||eb)))}var Ve=(b,A)=>{let{debug:B,streamType:G,startTime:W=-1,metadata:K,preferCmcd:et,_hlsConfig:ea={}}=b,er=k(b)===ed.M3U8,en=ce(b,A);if(er&&!en&&ef){let b=Ue(G),A=et!==es.NONE?{useHeaders:et===es.HEADER,sessionId:null==K?void 0:K.view_session_id,contentId:null==K?void 0:K.video_id}:void 0;return new ei({debug:B,startPosition:W,cmcd:A,xhrSetup:(b,A)=>{var B,G;if(et&&et!==es.QUERY)return;let W=new URL(A);if(!W.searchParams.has("CMCD"))return;let K=(null!=(G=null==(B=W.searchParams.get("CMCD"))?void 0:B.split(","))?G
13:[]).filter(b=>b.startsWith("sid")||b.startsWith("cid")).join(",");W.searchParams.set("CMCD",K),b.open("GET",W)},backBufferLength:30,renderTextTracksNatively:!1,liveDurationInfinity:!0,capLevelToPlayerSize:!0,capLevelOnFPSDrop:!0,...b,...ea})}},Ue=b=>b===en.LIVE?{backBufferLength:8}:{},ue=({playbackId:b,src:A,customDomain:B})=>{if(b)return!0;if("string"!=typeof A)return!1;let G=null==window?void 0:window.location.href,W=new URL(A,G).hostname.toLocaleLowerCase();return W.includes(eE)||!!B&&W.includes(B.toLocaleLowerCase())},Fe=(b,A,B)=>{var G;let{envKey:W}=b,K=ue(b);if(W||K){let{playerInitTime:K,playerSoftwareName:ea,playerSoftwareVersion:er,beaconCollectionDomain:en,debug:eo,disableCookies:es}=b,el={...b.metadata,video_title:(null==(G=null==b?void 0:b.metadata)?void 0:G.video_title)||void 0};et.monitor(A,{debug:eo,beaconCollectionDomain:en,hlsjs:B,Hls:B?ei:void 0,automaticErrorTracking:!1,errorTranslator:A=>"string"!=typeof A.player_error_code&&("function"==typeof b.errorTranslator?b.errorTranslator(A):A),disableCookies:es,data:{...W?{env_key:W}:{},player_software_name:ea,player_software:ea,player_software_version:er,player_init_time:K,...el}})}},We=(b,A,B)=>{var G;let W=ce(b,A),{src:K}=b;if(A&&W){let B=k(b);"string"==typeof K?("none"===A.preload?g(A,"loadstart",()=>ee(K,A,B)):ee(K,A,B),A.setAttribute("src",K),b.startTime&&((null!=(G=eg.get(A))?G:{}).startTime=b.startTime,A.addEventListener("durationchange",de,{once:!0}))):A.removeAttribute("src"),A.addEventListener("error",pe),A.addEventListener("error",V),A.addEventListener("emptied",()=>{A.querySelectorAll("track[data-removeondestroy]").forEach(b=>{b.remove()})},{once:!0});let s=()=>{A.ended||_e(A)&&A.dispatchEvent(new Event("ended"))};g(A,"pause",s),g(A,"seeked",s),g(A,"play",()=>{A.ended||ie(A.currentTime,A.duration)&&(A.currentTime=A.seekable.start(0))})}else B&&K?(B.once(ei.Events.LEVEL_LOADED,(b,G)=>{ke(G.details,A,B)}),B.on(ei.Events.ERROR,(b,B)=>{let G={[ei.ErrorTypes.NETWORK_ERROR]:ea.MEDIA_ERR_NETWORK,[ei.ErrorTypes.MEDIA_ERROR]:ea.MEDIA_ERR_DECODE},W=new ea("",G[B.type]);W.fatal=B.fatal,W.data=B,A.dispatchEvent(new CustomEvent("error",{detail:W}))}),A.addEventListener("error",V),function(b,A){var B;if(!("videoTracks"in b))return;let G=new WeakMap;A.on(ei.Events.MANIFEST_PARSED,function(A,B){s();let W=b.addVideoTrack("main");for(let[b,A]of(W.selected=!0,B.levels.entries())){let B=W.addRendition(A.url[0],A.width,A.height,A.videoCodec,A.bitrate);G.set(A,`${b}`),B.id=`${b}`}}),A.on(ei.Events.AUDIO_TRACKS_UPDATED,function(A,B){for(let A of(i(),B.audioTracks)){let B=A.default?"main":"alternative",G=b.addAudioTrack(B,A.name,A.lang);G.id=`${A.id}`,A.default&&(G.enabled=!0)}}),b.audioTracks.addEventListener("change",()=>{var B;let G=+(null==(B=[...b.audioTracks].find(b=>b.enabled))?void 0:B.id),W=A.audioTracks.map(b=>b.id);G!=A.audioTrack&&W.includes(G)&&(A.audioTrack=G)}),A.on(ei.Events.LEVELS_UPDATED,function(A,B){var W;let K=b.videoTracks[null!=(W=b.videoTracks.selectedIndex)?W:0];if(!K)return;let et=B.levels.map(b=>G.get(b));for(let A of b.videoRenditions)A.id&&!et.includes(A.id)&&K.removeRendition(A)});let o=B=>{let G=b.currentTime,W=!1,l=(b,A)=>{W||(W=!Number.isFinite(A.endOffset))};A.on(ei.Events.BUFFER_FLUSHING,l),A.nextLevel=B,A.off(ei.Events.BUFFER_FLUSHING,l),W||A.trigger(ei.Events.BUFFER_FLUSHING,{startOffset:G+10,endOffset:1/0,type:"video"})};null==(B=b.videoRenditions)||B.addEventListener("change",b=>{let B=b.target.selectedIndex;B!=A.nextLevel&&o(B)});let a=()=>{for(let A of b.videoTracks)b.removeVideoTrack(A)},i=()=>{for(let A of b.audioTracks)b.removeAudioTrack(A)},s=()=>{a(),i()};A.once(ei.Events.DESTROYING,s)}(b,B),function(b,A){A.on(ei.Events.NON_NATIVE_TEXT_TRACKS_FOUND,(B,{tracks:G})=>{G.forEach(B=>{var G;let W=null!=(G=B.subtitleTrack)?G:B.closedCaptions,K=A.subtitleTracks.findIndex(({lang:b,name:A,type:G})=>b==(null==W?void 0:W.lang)&&A===B.label&&G.toLowerCase()===B.kind);_(b,B.kind,B.label,null==W?void 0:W.lang,`${B.kind}${K}`)})});let n=()=>{var B;if(!A.subtitleTracks.length)return;let G=Array.from(b.textTracks).find(b=>b.id&&"showing"===b.mode&&["subtitles","captions"].includes(b.kind)),W=`${null==(B=A.subtitleTracks[A.subtitleTrack])?void 0:B.type.toLowerCase()}${A.subtitleTrack}`;if(G&&(A.subtitleTrack<0||(null==G?void 0:G.id)!==W)){let b=A.subtitleTracks.findIndex(({lang:b,name:A,type:B})=>b==G.language&&A===G.label&&B.toLowerCase()===G.kind);A.subtitleTrack=b}
13G&&(null==G?void 0:G.id)===W&&G.cues&&Array.from(G.cues).forEach(b=>{G.addCue(b)})};b.textTracks.addEventListener("change",n),A.on(ei.Events.CUES_PARSED,(A,{track:B,cues:G})=>{let W=b.textTracks.getTrackById(B);if(!W)return;let K="disabled"===W.mode;K&&(W.mode="hidden"),G.forEach(b=>{var A;null!=(A=W.cues)&&A.getCueById(b.id)||W.addCue(b)}),K&&(W.mode="disabled")}),A.once(ei.Events.DESTROYING,()=>{b.textTracks.removeEventListener("change",n),b.querySelectorAll("track[data-removeondestroy]").forEach(b=>{b.remove()})});let r=()=>{Array.from(b.textTracks).forEach(A=>{var B,G;if(!["subtitles","caption"].includes(A.kind)&&"thumbnails"===A.label){if(!(null!=(B=A.cues)&&B.length)){let A=b.querySelector('track[label="thumbnails"]'),B=null!=(G=null==A?void 0:A.getAttribute("src"))?G:"";null==A||A.removeAttribute("src"),setTimeout(()=>{null==A||A.setAttribute("src",B)},0)}"hidden"!==A.mode&&(A.mode="hidden")}})};A.once(ei.Events.MANIFEST_LOADED,r),A.once(ei.Events.MEDIA_ATTACHED,r)}(A,B),B.attachMedia(A)):console.error("It looks like the video you're trying to play will not work on this system! If possible, try upgrading to the newest versions of your browser or software.")};function de(b){var A;let B=b.target,G=null==(A=eg.get(B))?void 0:A.startTime;if(G&&function(b,A,B){A&&B>A&&(B=A);for(let A=0;A<b.length;A++)if(b.start(A)<=B&&b.end(A)>=B)return!0;return!1}(B.seekable,B.duration,G)){let b="auto"===B.preload;b&&(B.preload="none"),B.currentTime=G,b&&(B.preload="auto")}}async function pe(b){if(!b.isTrusted)return;b.stopImmediatePropagation();let A=b.target;if(!(null!=A&&A.error))return;let{message:B,code:G}=A.error,W=new ea(B,G);if(A.src&&(G!==ea.MEDIA_ERR_DECODE||void 0!==G))try{let{status:b}=await fetch(A.src);W.data={response:{code:b}}}catch{}A.dispatchEvent(new CustomEvent("error",{detail:W}))}function V(b){var A,B;if(!(b instanceof CustomEvent)||!(b.detail instanceof ea))return;let G=b.target,W=b.detail;W&&W.fatal&&((null!=(A=eg.get(G))?A:{}).error=W,null==(B=G.mux)||B.emit("error",{player_error_code:W.code,player_error_message:W.message,player_error_context:W.context}))}let eA={MEDIA_PLAY_REQUEST:"mediaplayrequest",MEDIA_PAUSE_REQUEST:"mediapauserequest",MEDIA_MUTE_REQUEST:"mediamuterequest",MEDIA_UNMUTE_REQUEST:"mediaunmuterequest",MEDIA_VOLUME_REQUEST:"mediavolumerequest",MEDIA_SEEK_REQUEST:"mediaseekrequest",MEDIA_AIRPLAY_REQUEST:"mediaairplayrequest",MEDIA_ENTER_FULLSCREEN_REQUEST:"mediaenterfullscreenrequest",MEDIA_EXIT_FULLSCREEN_REQUEST:"mediaexitfullscreenrequest",MEDIA_PREVIEW_REQUEST:"mediapreviewrequest",MEDIA_ENTER_PIP_REQUEST:"mediaenterpiprequest",MEDIA_EXIT_PIP_REQUEST:"mediaexitpiprequest",MEDIA_ENTER_CAST_REQUEST:"mediaentercastrequest",MEDIA_EXIT_CAST_REQUEST:"mediaexitcastrequest",MEDIA_SHOW_TEXT_TRACKS_REQUEST:"mediashowtexttracksrequest",MEDIA_HIDE_TEXT_TRACKS_REQUEST:"mediahidetexttracksrequest",MEDIA_SHOW_SUBTITLES_REQUEST:"mediashowsubtitlesrequest",MEDIA_DISABLE_SUBTITLES_REQUEST:"mediadisablesubtitlesrequest",MEDIA_TOGGLE_SUBTITLES_REQUEST:"mediatogglesubtitlesrequest",MEDIA_PLAYBACK_RATE_REQUEST:"mediaplaybackraterequest",MEDIA_RENDITION_REQUEST:"mediarenditionrequest",MEDIA_AUDIO_TRACK_REQUEST:"mediaaudiotrackrequest",MEDIA_SEEK_TO_LIVE_REQUEST:"mediaseektoliverequest",REGISTER_MEDIA_STATE_RECEIVER:"registermediastatereceiver",UNREGISTER_MEDIA_STATE_RECEIVER:"unregistermediastatereceiver"},ek={MEDIA_CHROME_ATTRIBUTES:"mediachromeattributes",MEDIA_CONTROLLER:"mediacontroller"},eT={MEDIA_AIRPLAY_UNAVAILABLE:"mediaAirplayUnavailable",MEDIA_FULLSCREEN_UNAVAILABLE:"mediaFullscreenUnavailable",MEDIA_PIP_UNAVAILABLE:"mediaPipUnavailable",MEDIA_CAST_UNAVAILABLE:"mediaCastUnavailable",MEDIA_RENDITION_UNAVAILABLE:"mediaRenditionUnavailable",MEDIA_AUDIO_TRACK_UNAVAILABLE:"mediaAudioTrackUnavailable",MEDIA_PAUSED:"mediaPaused",MEDIA_HAS_P
13LAYED:"mediaHasPlayed",MEDIA_ENDED:"mediaEnded",MEDIA_MUTED:"mediaMuted",MEDIA_VOLUME_LEVEL:"mediaVolumeLevel",MEDIA_VOLUME:"mediaVolume",MEDIA_VOLUME_UNAVAILABLE:"mediaVolumeUnavailable",MEDIA_IS_PIP:"mediaIsPip",MEDIA_IS_CASTING:"mediaIsCasting",MEDIA_IS_AIRPLAYING:"mediaIsAirplaying",MEDIA_SUBTITLES_LIST:"mediaSubtitlesList",MEDIA_SUBTITLES_SHOWING:"mediaSubtitlesShowing",MEDIA_IS_FULLSCREEN:"mediaIsFullscreen",MEDIA_PLAYBACK_RATE:"mediaPlaybackRate",MEDIA_CURRENT_TIME:"mediaCurrentTime",MEDIA_DURATION:"mediaDuration",MEDIA_SEEKABLE:"mediaSeekable",MEDIA_PREVIEW_TIME:"mediaPreviewTime",MEDIA_PREVIEW_IMAGE:"mediaPreviewImage",MEDIA_PREVIEW_COORDS:"mediaPreviewCoords",MEDIA_LOADING:"mediaLoading",MEDIA_BUFFERED:"mediaBuffered",MEDIA_STREAM_TYPE:"mediaStreamType",MEDIA_TARGET_LIVE_WINDOW:"mediaTargetLiveWindow",MEDIA_TIME_IS_LIVE:"mediaTimeIsLive",MEDIA_RENDITION_LIST:"mediaRenditionList",MEDIA_RENDITION_SELECTED:"mediaRenditionSelected",MEDIA_AUDIO_TRACK_LIST:"mediaAudioTrackList",MEDIA_AUDIO_TRACK_ENABLED:"mediaAudioTrackEnabled"},ew=Object.entries(eT),eS=ew.reduce((b,[A,B])=>(b[A]=`${B.toLowerCase()}`,b),{}),eI=ew.reduce((b,[A,B])=>(b[A]=`${B.toLowerCase()}`,b),{USER_INACTIVE:"userinactivechange",BREAKPOINTS_CHANGE:"breakpointchange",BREAKPOINTS_COMPUTED:"breakpointscomputed"});Object.entries(eI).reduce((b,[A,B])=>{let G=eS[A];return G&&(b[B]=G),b},{userinactivechange:"userinactive"});let eC=Object.entries(eS).reduce((b,[A,B])=>{let G=eI[A];return G&&(b[B]=G),b},{userinactive:"userinactivechange"}),eR={SUBTITLES:"subtitles",CAPTIONS:"captions",METADATA:"metadata"},eL={DISABLED:"disabled",SHOWING:"showing"},eM={MOUSE:"mouse",TOUCH:"touch"},ex={UNAVAILABLE:"unavailable",UNSUPPORTED:"unsupported"},eD={LIVE:"live",ON_DEMAND:"on-demand",UNKNOWN:"unknown"},eO={AUDIO_PLAYER:()=>"audio player",VIDEO_PLAYER:()=>"video player",VOLUME:()=>"volume",SEEK:()=>"seek",CLOSED_CAPTIONS:()=>"closed captions",PLAYBACK_RATE:({playbackRate:b=1}={})=>`current playback rate ${b}`,PLAYBACK_TIME:()=>"playback time",MEDIA_LOADING:()=>"media loading"},eN={PLAY:()=>"play",PAUSE:()=>"pause",MUTE:()=>"mute",UNMUTE:()=>"unmute",ENTER_AIRPLAY:()=>"start airplay",EXIT_AIRPLAY:()=>"stop airplay",ENTER_CAST:()=>"start casting",EXIT_CAST:()=>"stop casting",ENTER_FULLSCREEN:()=>"enter fullscreen mode",EXIT_FULLSCREEN:()=>"exit fullscreen mode",ENTER_PIP:()=>"enter picture in picture mode",EXIT_PIP:()=>"exit picture in picture mode",SEEK_FORWARD_N_SECS:({seekOffset:b=30}={})=>`seek forward ${b} seconds`,SEEK_BACK_N_SECS:({seekOffset:b=30}={})=>`seek back ${b} seconds`,SEEK_LIVE:()=>"seek to live",PLAYING_LIVE:()=>"playing live"};function stringifyRendition(b){if(b){let{id:A,width:B,height:G}=b;return[A,B,G].filter(b=>null!=b).join(":")}}function parseRendition(b){if(b){let[A,B,G]=b.split(":");return{id:A,width:B,height:G}}}function stringifyAudioTrack(b){if(b){let{id:A,kind:B,language:G,label:W}=b;return[A,B,G,W].filter(b=>null!=b).join(":")}}function parseAudioTrack(b){if(b){let[A,B,G,W]=b.split(":");return{id:A,kind:B,language:G,label:W}}}function constToCamel(b,A=!1){return b.split("_").map(function(b,B){return(B||A?b[0].toUpperCase():b[0].toLowerCase())+b.slice(1).toLowerCase()}).join("")}function isNumericString(b){return"string"==typeof b&&!isNaN(b)&&!isNaN(parseFloat(b))}({...eO,...eN});let delay=b=>new Promise(A=>setTimeout(A,b)),eP=[{singular:"hour",plural:"hours"},{singular:"minute",plural:"minutes"},{singular:"second",plural:"seconds"}],toTimeUnitPhrase=(b,A)=>{let B=1===b?eP[A].singular:eP[A].plural;return`${b} ${B}`},formatAsTimePhrase=b=>{if(!("number"==typeof b&&!Number.isNaN(b)&&Number.isFinite(b)))return"";let A=Math.abs(b),B=new Date(0,0,0,0,0,A,0),G=[B.getHours(),B.getMinutes(),B.getSeconds()],W=G.map((b,A)=>b&&toTimeUnitPhrase(b,A)).filter(b=>b).join(", ");return`${W}${A!==b?" remaining":""}`};function formatTime(b,A){let B=!1;b<0&&(B=!0,b=0-b);let G=Math.floor((b=b<0?0:b)%60),W=Math.floor(b/60%60),K=Math.floor(b/3600);return(isNaN(b)||b===1/0)&&(K=W=G="0"),W=(((K=K>0||Math.floor(A/3600)>0?K+":":"")||Math.floor(A/60%60)>=10)&&W<10?"0"+W:W)+":",(B?"-":"")+K+W+(G=G<10?"0"+G:G)}Object.freeze({length:0,start(b){let A=b>>>0;if(A>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${A}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(b){let A=b>>>0;if(A>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${A}) is greater than or equal to the maximum bound (${this.length}).`);return 0}});let updateIconText=(b,A,B=".value")=>{let G=b.querySelector(B);G&&(G.textContent=A)},getAllSlotted=(b,A)=>{let B=`slot[name="${A}"]`,G=b.shadowRoot.querySelector(B);return G?G.children:[]},getSlotted=(b,A)=>getAllSlotted(b,A)[0],containsComposedNode=(b,A)=>!!b&&!!A&&(!!b.contains(A)||containsComposedNode(b,A.getRootNode().host)),closestComposedNode=(b,A)=>{if(!b)return null;let B=b.closest(A);return B||closestComposedNode(b.getRootNode().host,A)};function distance(b,A){return Math.sqrt(Math.pow(A.x-b.x,2)+Math.pow(A.y-b.y,2))}function getOrInsertCSSRule(b,A){var B;let G;for(G of b.querySelectorAll("style")){let b;try{b=null==(B=G.sheet)?void 0:B.cssRules}catch{continue}for(let B of null!=b?b:[])if(B.selectorText===A)return B}return(null==G?void 0:G.sheet)?(G.sheet.insertRule(`${A}{}`,G.sheet.cssRules.length),G.sheet.cssRules[G.sheet.cssRules.length-1]):{style:{setProperty:()=>{},removeProperty:()=>{},getPropertyValue:()=>""}}}function getNumericAttr(b,A,B=Number.NaN){let G=b.getAttribute(A);return null!=G?+G:B}function setNumericAttr(b,A,B){let G=+B;if(null==B||Number.isNaN(G)){b.hasAttribute(A)&&b.removeAttribute(A);return}getNumericAttr(b,A,void 0)!==G&&b.setAttribute(A,`${G}`)}function getBooleanAttr(b,A){return b.hasAttribute(A)}function setBooleanAttr(b,A,B){if(null==B){b.hasAttribute(A)&&b.removeAttribute(A);return}getBooleanAttr(b,A)!=B&&b.toggleAttribute(A,B)}function getStringAttr(b,A,B=null){var G;return null!=(G=b.getAttribute(A))?G:B}function setStringAttr(b,A,B){if(null==B){b.hasAttribute(A)&&b.removeAttribute(A);return}let G=`${B}`;getStringAttr(b,A,void 0)!==G&&b.setAttribute(A,G)}let server_safe_globals_EventTarget=class server_safe_globals_EventTarget{addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}};let eU={createElement:function(){return new eB.HTMLElement},addEventListener(){},removeEventListener(){}},eB={ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},document:eU,HTMLElement:class extends server_safe_globals_EventTarget{},DocumentFragment:class extends server_safe_globals_EventTarget{},customElements:{get:function(){},define:function(){},whenDefined:function(){}},CustomEvent:function(){},getComputedStyle:function(){},navigator:{languages:[]}},eG="undefined"==typeof window||void 0===window.customElements,eW=Object.keys(eB).every(b=>b in globalThis),eV=eG&&!eW?eB:globalThis,eH=eG&&!eW?eU:globalThis.document;var eq=Object.defineProperty,__defNormalProp=(b,A,B)=>A in b?eq(b,A,{enumerable:!0,configurable:!0,writable:!0,value:B}):b[A]=B,__publicField=(b,A,B)=>(__defNormalProp(b,"symbol"!=typeof A?A+"":A,B),B),__accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},__privateGet=(b,A,B)=>(__accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),__privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},__privateSet=(b,A,B,G)=>(__accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);let eF=eH.createElement("template");eF.innerHTML=`
14<style>
15  :host {
16    font: var(--media-font,
17      var(--media-font-weight, bold)
18      var(--media-font-size, 14px) /
19      var(--media-text-content-height, var(--media-control-height, 24px))
20      var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
21    color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
22    background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
23    padding: var(--media-button-padding, var(--media-control-padding, 10px));
24    justify-content: var(--media-button-justify-content, center);
25    display: inline-flex;
26    align-items: center;
27    vertical-align: middle;
28    box-sizing: border-box;
29    transition: background .15s linear;
30    pointer-events: auto;
31    cursor: pointer;
32    -webkit-tap-highlight-color: transparent;
33  }
34
35  
36  :host(:focus-visible) {
37    box-shadow: inset 0 0 0 2px rgb(27 127 204 / .9);
38    outline: 0;
39  }
40  
41  :host(:where(:focus)) {
42    box-shadow: none;
43    outline: 0;
44  }
45
46  :host(:hover) {
47    background: var(--media-control-hover-background, rgba(50 50 70 / .7));
48  }
49
50  svg, img, ::slotted(svg), ::slotted(img) {
51    width: var(--media-button-icon-width);
52    height: var(--media-button-icon-height, var(--media-control-height, 24px));
53    transform: var(--media-button-icon-transform);
54    transition: var(--media-button-icon-transition);
55    fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
56    vertical-align: middle;
57    max-width: 100%;
58    max-height: 100%;
59    min-width: 100%;
60  }
61</style>
62`;let MediaChromeButton=class MediaChromeButton extends eV.HTMLElement{constructor(b={}){if(super(),__privateAdd(this,ii,void 0),__publicField(this,"preventClick",!1),__privateAdd(this,ia,b=>{this.preventClick||this.handleClick(b)}),__privateAdd(this,ir,b=>{let{key:A}=b;if(!this.keysUsed.includes(A)){this.removeEventListener("keyup",__privateGet(this,ir));return}this.preventClick||this.handleClick(b)}),__privateAdd(this,io,b=>{let{metaKey:A,altKey:B,key:G}=b;if(A||B||!this.keysUsed.includes(G)){this.removeEventListener("keyup",__privateGet(this,ir));return}this.addEventListener("keyup",__privateGet(this,ir),{once:!0})}),!this.shadowRoot){this.attachShadow({mode:"open"});let A=eF.content.cloneNode(!0);this.nativeEl=A;let B=b.slotTemplate;B||((B=eH.createElement("template")).innerHTML=`<slot>${b.defaultContent||""}</slot>`),this.nativeEl.appendChild(B.content.cloneNode(!0)),this.shadowRoot.appendChild(A)}let{style:A}=getOrInsertCSSRule(this.shadowRoot,":host");A.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`)}static get observedAttributes(){return["disabled",ek.MEDIA_CONTROLLER]}enable(){this.addEventListener("click",__privateGet(this,ia)),this.addEventListener("keydown",__privateGet(this,io)),this.tabIndex=0}disable(){this.removeEventListener("click",__privateGet(this,ia)),this.removeEventListener("keydown",__privateGet(this,io)),this.removeEventListener("keyup",__privateGet(this,ir)),this.tabIndex=-1}attributeChangedCallback(b,A,B){var G,W,K,et,ei;b===ek.MEDIA_CONTROLLER?(A&&(null==(W=null==(G=__privateGet(this,ii))?void 0:G.unassociateElement)||W.call(G,this),__privateSet(this,ii,null)),B&&this.isConnected&&(__privateSet(this,ii,null==(K=this.getRootNode())?void 0:K.getElementById(B)),null==(ei=null==(et=__privateGet(this,ii))?void 0:et.associateElement)||ei.call(et,this))):"disabled"===b&&B!==A&&(null==B?this.enable():this.disable())}connectedCallback(){var b,A,B;this.hasAttribute("disabled")||this.enable(),this.setAttribute("role","button");let G=this.getAttribute(ek.MEDIA_CONTROLLER);G&&(__privateSet(this,ii,null==(b=this.getRootNode())?void 0:b.getElementById(G)),null==(B=null==(A=__privateGet(this,ii))?void 0:A.associateElement)||B.call(A,this))}disconnectedCallback(){var b,A;this.disable(),null==(A=null==(b=__privateGet(this,ii))?void 0:b.unassociateElement)||A.call(b,this),__privateSet(this,ii,null)}get keysUsed(){return["Enter"," "]}handleClick(b){}};ii=new WeakMap,ia=new WeakMap,ir=new WeakMap,io=new WeakMap,eV.customElements.get("media-chrome-button")||eV.customElements.define("media-chrome-button",MediaChromeButton);let ej=`<svg aria-hidden="true" viewBox="0 0 26 24">
63  <path d="M22.13 3H3.87a.87.87 0 0 0-.87.87v13.26a.87.87 0 0 0 .87.87h3.4L9 16H5V5h16v11h-4l1.72 2h3.4a.87.87 0 0 0 .87-.87V3.87a.87.87 0 0 0-.86-.87Zm-8.75 11.44a.5.5 0 0 0-.76 0l-4.91 5.73a.5.5 0 0 0 .38.83h9.82a.501.501 0 0 0 .38-.83l-4.91-5.73Z"/>
64</svg>
65`,e$=eH.createElement("template");e$.innerHTML=`
66  <style>
67  :host([${eS.MEDIA_IS_AIRPLAYING}]) slot:not([name=exit]):not([name=icon]) {
68    display: none !important;
69  }
70
71  
72  :host(:not([${eS.MEDIA_IS_AIRPLAYING}])) slot:not([name=enter]):not([name=icon]) {
73    display: none !important;
74  }
75  </style>
76
77  <slot name="icon">
78    <slot name="enter">${ej}</slot>
79    <slot name="exit">${ej}</slot>
80  </slot>
81`;let updateAriaLabel=b=>
81{let A=b.mediaIsAirplaying?eN.EXIT_AIRPLAY():eN.ENTER_AIRPLAY();b.setAttribute("aria-label",A)};eV.customElements.get("media-airplay-button")||eV.customElements.define("media-airplay-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_IS_AIRPLAYING,eS.MEDIA_AIRPLAY_UNAVAILABLE]}constructor(b={}){super({slotTemplate:e$,...b})}connectedCallback(){super.connectedCallback(),updateAriaLabel(this)}attributeChangedCallback(b,A,B){super.attributeChangedCallback(b,A,B),b===eS.MEDIA_IS_AIRPLAYING&&updateAriaLabel(this)}get mediaIsAirplaying(){return getBooleanAttr(this,eS.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(b){setBooleanAttr(this,eS.MEDIA_IS_AIRPLAYING,b)}get mediaAirplayUnavailable(){return getStringAttr(this,eS.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(b){setStringAttr(this,eS.MEDIA_AIRPLAY_UNAVAILABLE,b)}handleClick(){let b=new eV.CustomEvent(eA.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(b)}});let eK=eH.createElement("template");eK.innerHTML=`
82  <style>
83  :host([${eS.MEDIA_IS_CASTING}]) slot:not([name=exit]):not([name=icon]) {
84    display: none !important;
85  }
86
87  
88  :host(:not([${eS.MEDIA_IS_CASTING}])) slot:not([name=enter]):not([name=icon]) {
89    display: none !important;
90  }
91  </style>
92
93  <slot name="icon">
94    <slot name="enter"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/></g></svg></slot>
95    <slot name="exit"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/><path class="cast_caf_icon_boxfill" d="M5,7 L5,8.63 C8,8.6 13.37,14 13.37,17 L19,17 L19,7 Z"/></g></svg></slot>
96  </slot>
97`;let media_cast_button_updateAriaLabel=b=>{let A=b.mediaIsCasting?eN.EXIT_CAST():eN.ENTER_CAST();b.setAttribute("aria-label",A)};eV.customElements.get("media-cast-button")||eV.customElements.define("media-cast-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_IS_CASTING,eS.MEDIA_CAST_UNAVAILABLE]}constructor(b={}){super({slotTemplate:eK,...b})}connectedCallback(){super.connectedCallback(),media_cast_button_updateAriaLabel(this)}attributeChangedCallback(b,A,B){super.attributeChangedCallback(b,A,B),b===eS.MEDIA_IS_CASTING&&media_cast_button_updateAriaLabel(this)}get mediaIsCasting(){return getBooleanAttr(this,eS.MEDIA_IS_CASTING)}set mediaIsCasting(b){setBooleanAttr(this,eS.MEDIA_IS_CASTING,b)}get mediaCastUnavailable(){return getStringAttr(this,eS.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(b){setStringAttr(this,eS.MEDIA_CAST_UNAVAILABLE,b)}handleClick(){let b=this.mediaIsCasting?eA.MEDIA_EXIT_CAST_REQUEST:eA.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new eV.CustomEvent(b,{composed:!0,bubbles:!0}))}});var media_gesture_receiver_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_gesture_receiver_privateGet=(b,A,B)=>(media_gesture_receiver_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_gesture_receiver_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_gesture_receiver_privateSet=(b,A,B,G)=>(media_gesture_receiver_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);let eY=eH.createElement("template");eY.innerHTML=`
98<style>
99  :host {
100    display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block));
101    box-sizing: border-box;
102  }
103</style>
104`;let MediaGestureReceiver=class MediaGestureReceiver extends eV.HTMLElement{constructor(b={}){if(super(),media_gesture_receiver_privateAdd(this,is,void 0),!this.shadowRoot){let A=this.attachShadow({mode:"open"}),B=eY.content.cloneNode(!0);this.nativeEl=B;let G=b.slotTemplate;G||((G=eH.createElement("template")).innerHTML=`<slot>${b.defaultContent||""}</slot>
104`),this.nativeEl.appendChild(G.content.cloneNode(!0)),A.appendChild(B)}}static get observedAttributes(){return[ek.MEDIA_CONTROLLER,eS.MEDIA_PAUSED]}attributeChangedCallback(b,A,B){var G,W,K,et,ei;b===ek.MEDIA_CONTROLLER&&(A&&(null==(W=null==(G=media_gesture_receiver_privateGet(this,is))?void 0:G.unassociateElement)||W.call(G,this),media_gesture_receiver_privateSet(this,is,null)),B&&this.isConnected&&(media_gesture_receiver_privateSet(this,is,null==(K=this.getRootNode())?void 0:K.getElementById(B)),null==(ei=null==(et=media_gesture_receiver_privateGet(this,is))?void 0:et.associateElement)||ei.call(et,this)))}connectedCallback(){var b,A,B,G;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),media_gesture_receiver_privateSet(this,is,function(b){var A;let B=b.getAttribute(ek.MEDIA_CONTROLLER);return B?null==(A=b.getRootNode())?void 0:A.getElementById(B):closestComposedNode(b,"media-controller")}(this)),this.getAttribute(ek.MEDIA_CONTROLLER)&&(null==(A=null==(b=media_gesture_receiver_privateGet(this,is))?void 0:b.associateElement)||A.call(b,this)),null==(B=media_gesture_receiver_privateGet(this,is))||B.addEventListener("pointerdown",this),null==(G=media_gesture_receiver_privateGet(this,is))||G.addEventListener("click",this)}disconnectedCallback(){var b,A,B,G;this.getAttribute(ek.MEDIA_CONTROLLER)&&(null==(A=null==(b=media_gesture_receiver_privateGet(this,is))?void 0:b.unassociateElement)||A.call(b,this)),null==(B=media_gesture_receiver_privateGet(this,is))||B.removeEventListener("pointerdown",this),null==(G=media_gesture_receiver_privateGet(this,is))||G.removeEventListener("click",this),media_gesture_receiver_privateSet(this,is,null)}handleEvent(b){var A;let B=null==(A=b.composedPath())?void 0:A[0];if(["video","media-controller"].includes(null==B?void 0:B.localName)){if("pointerdown"===b.type)this._pointerType=b.pointerType;else if("click"===b.type){let{clientX:A,clientY:B}=b,{left:G,top:W,width:K,height:et}=this.getBoundingClientRect(),ei=A-G,ea=B-W;if(ei<0||ea<0||ei>K||ea>et||0===K&&0===et)return;let{pointerType:er=this._pointerType}=b;if(this._pointerType=void 0,er===eM.TOUCH){this.handleTap(b);return}if(er===eM.MOUSE){this.handleMouseClick(b);return}}}}get mediaPaused(){return getBooleanAttr(this,eS.MEDIA_PAUSED)}set mediaPaused(b){setBooleanAttr(this,eS.MEDIA_PAUSED,b)}handleTap(b){}handleMouseClick(b){let A=this.mediaPaused?eA.MEDIA_PLAY_REQUEST:eA.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new eV.CustomEvent(A,{composed:!0,bubbles:!0}))}};is=new WeakMap,eV.customElements.get("media-gesture-receiver")||eV.customElements.define("media-gesture-receiver",MediaGestureReceiver);let eQ=new WeakMap,getCallbacks=b=>{let A=eQ.get(b);return A||eQ.set(b,A=new Set),A},eZ=new eV.ResizeObserver(b=>{for(let A of b)for(let b of getCallbacks(A.target))b(A)});function observeResize(b,A){getCallbacks(b).add(A),eZ.observe(b)}function unobserveResize(b,A){let B=getCallbacks(b);B.delete(A),B.size||eZ.unobserve(b)}var ez=Object.defineProperty,media_container_defNormalProp=(b,A,B)=>A in b?ez(b,A,{enumerable:!0,configurable:!0,writable:!0,value:B}):b[A]=B,media_container_publicField=(b,A,B)=>(media_container_defNormalProp(b,"symbol"!=typeof A?A+"":A,B),B),media_container_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_container_privateGet=(b,A,B)=>(media_container_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_container_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_container_privateSet=(b,A,B,G)=>(media_container_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),__privateMethod=(b,A,B)=>(media_container_accessCheck(b,A,"access private method"),B);let eX={AUDIO:"audio",AUTOHIDE:"autohide",BREAKPOINTS:"breakpoints",GESTURES_DISABLED:"gesturesdisabled",KEYBOARD_CONTROL:"keyboardcontrol",NO_AUTOHIDE:"noautohide",USER_INACTIVE:"userinactive"},eJ=eH.createElement("template");eJ.innerHTML=`
105  <style>
106    
107    :host([${eS.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) {
108      outline: none;
109    }
110
111    :host {
112      box-sizing: border-box;
113      position: relative;
114      display: inline-block;
115      line-height: 0;
116      background-color: var(--media-background-color, #000);
117    }
118
119    :host(:not([${eX.AUDIO}])) [part~=layer]:not([part~=media-layer]) {
120      position: absolute;
121      top: 0;
122      left: 0;
123      bottom: 0;
124      right: 0;
125      display: flex;
126      flex-flow: column nowrap;
127      align-items: start;
128      pointer-events: none;
129      background: none;
130    }
131
132    slot[name=media] {
133      display: var(--media-slot-display, contents);
134    }
135
136    
137    :host([${eX.AUDIO}]) slot[name=media] {
138      display: var(--media-slot-display, none);
139    }
140
141    
142    :host([${eX.AUDIO}]) [part~=layer][part~=gesture-layer] {
143      height: 0;
144      display: block;
145    }
146
147    
148    :host(:not([${eX.AUDIO}])[${eX.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]),
149    :host(:not([${eX.AUDIO}])[${eX.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] {
150      display: none;
151    }
152
153    
154    ::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator)) {
155      pointer-events: auto;
156    }
157
158    :host(:not([${eX.AUDIO}])) *[part~=layer][part~=centered-layer] {
159      align-items: center;
160      justify-content: center;
161    }
162
163    :host(:not([${eX.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),
164    :host(:not([${eX.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] {
165      align-self: stretch;
166      flex-grow: 1;
167    }
168
169    slot[name=middle-chrome] {
170      display: inline;
171      flex-grow: 1;
172      pointer-events: none;
173      background: none;
174    }
175
176    
177    ::slotted([slot=media]),
178    ::slotted([slot=poster]) {
179      width: 100%;
180      height: 100%;
181    }
182
183    
184    :host(:not([${eX.AUDIO}])) .spacer {
185      flex-grow: 1;
186    }
187
188    
189    :host(:-webkit-full-screen) {
190      
191      width: 100% !important;
192      height: 100% !important;
193    }
194
195    
196    ::slotted(:not([slot=media]):not([${eX.NO_AUTOHIDE}]):not([hidden])) {
197      opacity: 1;
198      transition: opacity 0.25s;
199    }
200
201    
202    :host([${eX.USER_INACTIVE}]:not([${eS.MEDIA_PAUSED}]):not([${eS.MEDIA_IS_AIRPLAYING}
202]):not([${eS.MEDIA_IS_CASTING}]):not([${eX.AUDIO}])) ::slotted(:not([slot=media]):not([${eX.NO_AUTOHIDE}])) {
203      opacity: 0;
204      transition: opacity 1s;
205    }
206
207    :host([${eX.USER_INACTIVE}]:not([${eS.MEDIA_PAUSED}]):not([${eS.MEDIA_IS_CASTING}]):not([${eX.AUDIO}])) ::slotted([slot=media]) {
208      cursor: none;
209    }
210
211    ::slotted(media-control-bar)  {
212      align-self: stretch;
213    }
214
215    
216    :host(:not([${eX.AUDIO}])[${eS.MEDIA_HAS_PLAYED}]) slot[name=poster] {
217      display: none;
218    }
219
220    ::slotted([role=menu]) {
221      align-self: end;
222    }
223  </style>
224
225  <slot name="media" part="layer media-layer"></slot>
226  <slot name="poster" part="layer poster-layer"></slot>
227  <slot name="gestures-chrome" part="layer gesture-layer">
228    <media-gesture-receiver slot="gestures-chrome"></media-gesture-receiver>
229  </slot>
230  <span part="layer vertical-layer">
231    <slot name="top-chrome" part="top chrome"></slot>
232    <slot name="middle-chrome" part="middle chrome"></slot>
233    <slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot>
234    
235    <slot part="bottom chrome"></slot>
236  </span>
237`;let e0=Object.values(eS);let MediaContainer=class MediaContainer extends eV.HTMLElement{constructor(){super(),media_container_privateAdd(this,iu),media_container_privateAdd(this,im),media_container_privateAdd(this,ip),media_container_privateAdd(this,iv),media_container_privateAdd(this,ig),media_container_privateAdd(this,il,0),media_container_privateAdd(this,id,void 0),media_container_publicField(this,"breakpointsComputed",!1),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(eJ.content.cloneNode(!0)));let b=new MutationObserver(b=>{let A=this.media;for(let B of b)"childList"===B.type&&(B.removedNodes.forEach(b=>{if("media"==b.slot&&B.target==this){let G=B.previousSibling&&B.previousSibling.previousElementSibling;if(G&&A){let A="media"!==G.slot;for(;null!==(G=G.previousSibling);)"media"==G.slot&&(A=!1);A&&this.mediaUnsetCallback(b)}else this.mediaUnsetCallback(b)}}),A&&B.addedNodes.forEach(b=>{b===A&&A!==media_container_privateGet(this,id)&&this.handleMediaUpdated(A).then(b=>this.mediaSetCallback(b))}))});b.observe(this,{childList:!0,subtree:!0});let A=!1;observeResize(this,b=>{A||(setTimeout(()=>{(function(b,A){var B;if(!b.isConnected)return;let G=null!=(B=b.getAttribute(eX.BREAKPOINTS))?B:"sm:384 md:576 lg:768 xl:960",W=function(b){let A=b.split(/\s+/);return Object.fromEntries(A.map(b=>b.split(":")))}(G),K=Object.keys(W).filter(b=>A>=W[b]),et=!1;
237if(Object.keys(W).forEach(A=>{if(K.includes(A)){b.hasAttribute(`breakpoint${A}`)||(b.setAttribute(`breakpoint${A}`,""),et=!0);return}b.hasAttribute(`breakpoint${A}`)&&(b.removeAttribute(`breakpoint${A}`),et=!0)}),et){let A=new CustomEvent(eI.BREAKPOINTS_CHANGE,{detail:K});b.dispatchEvent(A)}})(b.target,b.contentRect.width),A=!1,this.breakpointsComputed||(this.breakpointsComputed=!0,this.dispatchEvent(new CustomEvent(eI.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))},0),A=!0)});let B=this.querySelector(":scope > slot[slot=media]");B&&B.addEventListener("slotchange",()=>{let b=B.assignedElements({flatten:!0});if(!b.length){media_container_privateGet(this,id)&&this.mediaUnsetCallback(media_container_privateGet(this,id));return}this.media&&this.media!==media_container_privateGet(this,id)&&this.handleMediaUpdated(this.media).then(b=>this.mediaSetCallback(b))})}static get observedAttributes(){return[eX.AUTOHIDE,eX.GESTURES_DISABLED].concat(e0).filter(b=>![eS.MEDIA_RENDITION_LIST,eS.MEDIA_AUDIO_TRACK_LIST].includes(b))}attributeChangedCallback(b,A,B){b.toLowerCase()==eX.AUTOHIDE&&(this.autohide=B)}get media(){let b=this.querySelector(":scope > [slot=media]");return(null==b?void 0:b.nodeName)=="SLOT"&&(b=b.assignedElements({flatten:!0})[0]),b}async handleMediaUpdated(b){return(media_container_privateSet(this,id,b),b)?(b.localName.includes("-")&&await eV.customElements.whenDefined(b.localName),b):(media_container_privateSet(this,id,null),console.error('Media Chrome: Media element set with slot="media" does not appear to be compatible.',b),Promise.reject(b))}connectedCallback(){var b;let A=null!=this.getAttribute(eX.AUDIO),B=A?eO.AUDIO_PLAYER():eO.VIDEO_PLAYER();this.setAttribute("role","region"),this.setAttribute("aria-label",B),this.media&&this.media!==media_container_privateGet(this,id)&&this.handleMediaUpdated(this.media).then(b=>this.mediaSetCallback(b)),this.setAttribute(eX.USER_INACTIVE,""),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),null==(b=eV.window)||b.addEventListener("mouseup",this)}disconnectedCallback(){var b;this.media&&this.mediaUnsetCallback(this.media),null==(b=eV.window)||b.removeEventListener("mouseup",this)}mediaSetCallback(b){}mediaUnsetCallback(b){}handleEvent(b){switch(b.type){case"pointerdown":media_container_privateSet(this,il,b.timeStamp);break;case"pointermove":__privateMethod(this,iu,ic).call(this,b);break;case"pointerup":__privateMethod(this,im,ih).call(this,b);break;case"mouseleave":__privateMethod(this,ip,i_).call(this);break;case"mouseup":this.removeAttribute(eX.KEYBOARD_CONTROL);break;case"keyup":__privateMethod(this,ig,iE).call(this),this.setAttribute(eX.KEYBOARD_CONTROL,"")}}set autohide(b){b=Number(b),this._autohide=isNaN(b)?0:b}get autohide(){return void 0===this._autohide?2:this._autohide}};il=new WeakMap,id=new WeakMap,iu=new WeakSet,ic=function(b){!("mouse"!==b.pointerType&&b.timeStamp-media_container_privateGet(this,il)<250)&&(__privateMethod(this,iv,ib).call(this),clearTimeout(this._inactiveTimeout),[this,this.media].includes(b.target)&&__privateMethod(this,ig,iE).call(this))},im=new WeakSet,ih=function(b){if("touch"===b.pointerType){let A=!this.hasAttribute(eX.USER_INACTIVE);[this,this.media].includes(b.target)&&A?__privateMethod(this,ip,i_).call(this):__privateMethod(this,ig,iE).call(this)}else b.composedPath().some(b=>["media-play-button","media-fullscreen-button"].includes(null==b?void 0:b.localName))&&__privateMethod(this,ig,iE).call(this)},ip=new WeakSet,i_=function(){if(this.autohide<0||this.hasAttribute(eX.USER_INACTIVE))return;this.setAttribute(eX.USER_INACTIVE,"");let b=new eV.CustomEvent(eI.USER_INACTIVE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(b)},iv=new WeakSet,ib=function(){if(!this.hasAttribute(eX.USER_INACTIVE))return;this.removeAttribute(eX.USER_INACTIVE);let b=new eV.CustomEvent(eI.USER_INACTIVE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(b)},ig=new WeakSet,iE=function(){__privateMethod(this,iv,ib).call(this),clearTimeout(this._inactiveTimeout),this.autohide<0||(this._inactiveTimeout=setTimeout(()=>{__privateMethod(this,ip,i_).call(this)},1e3*this.autohide))};var attribute_token_list_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},attribute_token_list_privateGet=(b,A,B)=>(attribute_token_list_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),attribute_token_list_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},attribute_token_list_privateSet=(b,A,B,G)=>(attribute_token_list_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);let AttributeTokenList=class AttributeTokenList{constructor(b,A,{defaultValue:B}={defaultValue:void 0}){attribute_token_list_privateAdd(this,iw),attribute_token_list_privateAdd(this,iy,void 0),attribute_token_list_privateAdd(this,iA,void 0),attribute_token_list_privateAdd(this,ik,void 0),attribute_token_list_privateAdd(this,iT,new Set),attribute_token_list_privateSet(this,iy,b),attribute_token_list_privateSet(this,iA,A),attribute_token_list_privateSet(this,ik,new Set(B))}[Symbol.iterator](){return attribute_token_list_privateGet(this,iw,iS).values()}get length(){return attribute_token_list_privateGet(this,iw,iS).size}get value(){var b;return null!=(b=[...attribute_token_list_privateGet(this,iw,iS)].join(" "))?b:""}set value(b){var A;
237b!==this.value&&(attribute_token_list_privateSet(this,iT,new Set),this.add(...null!=(A=null==b?void 0:b.split(" "))?A:[]))}toString(){return this.value}item(b){return[...attribute_token_list_privateGet(this,iw,iS)][b]}values(){return attribute_token_list_privateGet(this,iw,iS).values()}forEach(b){attribute_token_list_privateGet(this,iw,iS).forEach(b)}add(...b){var A,B;b.forEach(b=>attribute_token_list_privateGet(this,iT).add(b)),(""!==this.value||(null==(A=attribute_token_list_privateGet(this,iy))?void 0:A.hasAttribute(`${attribute_token_list_privateGet(this,iA)}`)))&&(null==(B=attribute_token_list_privateGet(this,iy))||B.setAttribute(`${attribute_token_list_privateGet(this,iA)}`,`${this.value}`))}remove(...b){var A;b.forEach(b=>attribute_token_list_privateGet(this,iT).delete(b)),null==(A=attribute_token_list_privateGet(this,iy))||A.setAttribute(`${attribute_token_list_privateGet(this,iA)}`,`${this.value}`)}contains(b){return attribute_token_list_privateGet(this,iw,iS).has(b)}toggle(b,A){return void 0!==A?A?(this.add(b),!0):(this.remove(b),!1):this.contains(b)?(this.remove(b),!1):(this.add(b),!0)}replace(b,A){return this.remove(b),this.add(A),b===A}};iy=new WeakMap,iA=new WeakMap,ik=new WeakMap,iT=new WeakMap,iw=new WeakSet,iS=function(){return attribute_token_list_privateGet(this,iT).size?attribute_token_list_privateGet(this,iT):attribute_token_list_privateGet(this,ik)};let splitTextTracksStr=(b="")=>b.split(/\s+/),parseTextTrackStr=(b="")=>{let[A,B,G]=b.split(":"),W=G?decodeURIComponent(G):void 0;return{kind:A="cc"===A?"captions":"subtitles",language:B,label:W}},parseTextTracksStr=(b="",A={})=>splitTextTracksStr(b).map(b=>{let B=parseTextTrackStr(b);return{...A,...B}}),parseTracks=b=>Array.isArray(b)?b.map(b=>"string"==typeof b?parseTextTrackStr(b):b):"string"==typeof b?parseTextTracksStr(b):[b],formatTextTrackObj=({kind:b,label:A,language:B}={kind:"subtitles"})=>A?`${"captions"===b?"cc":"sb"}:${B}:${encodeURIComponent(A)}`:B,stringifyTextTrackList=(b=[])=>Array.prototype.map.call(b,formatTextTrackObj).join(" "),isMatchingPropOf=(b,A)=>B=>B[b]===A,textTrackObjAsPred=b=>{let A=Object.entries(b).map(([b,A])=>isMatchingPropOf(b,A));return b=>A.every(A=>A(b))},updateTracksModeTo=(b,A=[],B=[])=>{let G=parseTracks(B).map(textTrackObjAsPred);Array.from(A).filter(b=>G.some(A=>A(b))).forEach(A=>{A.mode=b})},getTextTracksList=(b,A=()=>!0)=>{if(!(null==b?void 0:b.textTracks))return[];let B="function"==typeof A?A:textTrackObjAsPred(A);return Array.from(b.textTracks).filter(B)},areSubsOn=b=>{let A=!!b.getAttribute(eS.MEDIA_SUBTITLES_SHOWING);return A},e1={enter:"requestFullscreen",exit:"exitFullscreen",rootEvents:["fullscreenchange"],mediaEvents:[],element:"fullscreenElement",error:"fullscreenerror",enabled:"fullscreenEnabled"};void 0===eH.fullscreenElement&&(e1.enter="webkitRequestFullScreen",e1.exit=null!=eH.webkitExitFullscreen?"webkitExitFullscreen":"webkitCancelFullScreen",e1.rootEvents=["webkitfullscreenchange"],e1.mediaEvents=["webkitbeginfullscreen","webkitendfullscreen"],e1.element="webkitFullscreenElement",e1.error="webkitfullscreenerror",e1.enabled="webkitFullscreenEnabled");let getTestMediaEl=()=>{var b;return G||(G=null==(b=null==eH?void 0:eH.createElement)?void 0:b.call(eH,"video"))},hasVolumeSupportAsync=async(b=getTestMediaEl())=>{if(!b)return!1;let A=b.volume;return b.volume=A/2+.1,await delay(0),b.volume!==A},e2=((b=getTestMediaEl())=>{let A=eH[e1.enabled];return!A&&b&&(A="webkitSupportsFullscreen"in b),A})(),e3=((b=getTestMediaEl())=>"function"==typeof(null==b?void 0:b.requestPictureInPicture))(),e9=!!eV.WebKitPlaybackTargetAvailabilityEvent,e5=!!eV.chrome,e4=hasVolumeSupportAsync().then(b=>W=b),e8=Object.values(eD),getSubtitleTracks=b=>getTextTracksList(b.media,b=>[eR.SUBTITLES,eR.CAPTIONS].includes(b.kind)).sort((b,A)=>b.kind>=A.kind?1:-1),getShowingSubtitleTracks=b=>getTextTracksList(b.media,b=>b.mode===eL.SHOWING&&[eR.SUBTITLES,eR.CAPTIONS].includes(b.kind)),e6={MEDIA_PAUSED:{get:function(b){let{media:A}=b;return!A||A.paused},mediaEvents:["play","playing","pause","emptied"]},MEDIA_HAS_PLAYED:{get:function(b){let{media:A}=b;return!!A&&!A.paused},mediaEvents:["playing","emptied"]},MEDIA_ENDED:{get:function(b){let{media:A}=b;return!!A&&A.ended},mediaEvents:["seeked","ended","emptied"]},MEDIA_PLAYBACK_RATE:{get:function(b){let{media:A}=b;return A&&void 0!==A.playbackRate?A.playbackRate:1},mediaEvents:["ratechange","loadstart"]},MEDIA_MUTED:{get:function(b){let{media:A}=b;return!!A&&void 0!==A.muted&&A.muted},mediaEvents:["volumechange"]},MEDIA_VOLUME:{get:function(b){let{media:A}=b;return A&&void 0!==A.volume?Number(A.volume):1},mediaEvents:["volumechange"]},MEDIA_VOLUME_LEVEL:{get:function(b){let{media:A}=b,B="high";if(!A||void 0===A.volume)return B;let{muted:G,volume:W}=A;return 0===W||G?B="off":W<.5?B="low":W<.75&&(B="medium"),B},mediaEvents:["volumechange"]},MEDIA_CURRENT_TIME:{get:function(b){let{media:A}=b;return A&&void 0!==A.currentTime?A.currentTime:0},mediaEvents:["playing","pause","timeupdate","loadedmetadata"]},MEDIA_DURATION:{get:function(b){let{media:A}=b;return b.hasAttribute("defaultduration")&&(!A||!A.duration||Number.isNaN(A.duration)||!Number.isFinite(A.duration))?+b.getAttribute("defaultduration"):A&&Number.isFinite(A.duration)?A.duration:Number.NaN},mediaEvents:["durationchange","loadedmetadata","emptied"]},MEDIA_SEEKABLE:{get:function(b){var A;let{media:B}=b;if(!(null==(A=null==B?void 0:B.seekable)?void 0:A.length))return;let G=B.seekable.start(0),W=B.seekable.end(B.seekable.length-1);if(G||W)return[Number(G.toFixed(3)),Number(W.toFixed(3))]},mediaEvents:["loadedmetadata","emptied","progress"]},MEDIA_LOADING:{get:function(b){var A;return(null==(A=b.media)?void 0:A.readyState)<3},mediaEvents:["waiting","playing","emptied"]},MEDIA_BUFFERED:{get:function(b){var A,B,G;let W=null==(A=b.media)?void 0:A.buffered;return Array.from(null!=(G=null==(B=b.media)?void 0:B.buffered)?G:[]).map((b,A)=>[Number(W.start(A)).toFixed(3),Number(W.end(A)).toFixed(3)])},mediaEvents:["progress","emptied"]},MEDIA_STREAM_TYPE:{get:function(b){let{media:A}=b;if(!A)return;let{streamType:B}=A;if(e8.includes(B)){if(B===eD.UNKNOWN){let A=b.getAttribute("defaultstreamtype");return[eD.LIVE,eD.ON_DEMAND].includes(A)?A:void 0}return B}let G=A.duration;if(G===1/0)return eD.LIVE;if(Number.isFinite(G))return eD.ON_DEMAND;{let A=b.getAttribute("defaultstreamtype");if([eD.LIVE,eD.ON_DEMAND].includes(A))return A}}
237,mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange"]},MEDIA_TARGET_LIVE_WINDOW:{get:function(b){let{media:A}=b;if(!A)return Number.NaN;let{targetLiveWindow:B}=A,G=e6.MEDIA_STREAM_TYPE.get(b);return(null==B||Number.isNaN(B))&&G===eD.LIVE?0:B},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange","targetlivewindowchange"]},MEDIA_TIME_IS_LIVE:{get:function(b){let{media:A}=b;if(!A)return!1;if("number"==typeof A.liveEdgeStart)return!Number.isNaN(A.liveEdgeStart)&&A.currentTime>=A.liveEdgeStart;let B="live"===e6.MEDIA_STREAM_TYPE.get(b);if(!B)return!1;let G=A.seekable;if(!G)return!0;if(!G.length)return!1;let W=b.hasAttribute("liveedgeoffset")?Number(b.getAttribute("liveedgeoffset")):10,K=G.end(G.length-1)-W;return A.currentTime>=K},mediaEvents:["playing","timeupdate","progress","waiting","emptied"]},MEDIA_IS_FULLSCREEN:{get:function(b,A){var B,G;let W;let K=b.media;if(K&&void 0===eH[e1.element]&&"webkitDisplayingFullscreen"in K)return K.webkitDisplayingFullscreen&&"fullscreen"===K.webkitPresentationMode;if(A){let b=eH[e1.element];W=b?A.target:null}else W=null!=(G=null==(B=function(b){var A;let B=null==(A=null==b?void 0:b.getRootNode)?void 0:A.call(b);return B instanceof ShadowRoot||B instanceof Document?B:null}(b))?void 0:B.fullscreenElement)?G:eH[e1.element];return containsComposedNode(b.fullscreenElement,W)},rootEvents:e1.rootEvents,mediaEvents:e1.mediaEvents},MEDIA_IS_PIP:{get:function(b,A){var B;let G=b.media;if(!G)return!1;if(A)return"enterpictureinpicture"==A.type;{let A=null!=(B=b.getRootNode().pictureInPictureElement)?B:eH.pictureInPictureElement;return containsComposedNode(G,A)}},mediaEvents:["enterpictureinpicture","leavepictureinpicture"]},MEDIA_IS_AIRPLAYING:{get:function(b){var A;let{media:B}=b;return null!=B&&!!B.remote&&(null==(A=B.remote)?void 0:A.state)!=="disconnected"&&B.remote.state},remoteEvents:["playing","connect","connecting","disconnect"]},MEDIA_IS_CASTING:{get:function(b){var A;let{media:B}=b;return null!=B&&!!B.remote&&(null==(A=B.remote)?void 0:A.state)!=="disconnected"&&B.remote.state},remoteEvents:["connect","connecting","disconnect"]},MEDIA_AIRPLAY_UNAVAILABLE:{get:function(b,{availability:A=!1}={}){return e9?null!=A&&!0!==A?ex.UNAVAILABLE:void 0:ex.UNSUPPORTED},mediaSetCallback(b,A){var B;null==(B=b.remote)||B.watchAvailability(b=>A({availability:b}))},mediaUnsetCallback(b){var A;null==(A=b.remote)||A.cancelWatchAvailability()}},MEDIA_CAST_UNAVAILABLE:{get:function(b,{availability:A=!1}={}){var B;let{media:G}=b;return e5&&(null==(B=null==G?void 0:G.remote)?void 0:B.state)?null!=A&&!0!==A?ex.UNAVAILABLE:void 0:ex.UNSUPPORTED},mediaSetCallback(b,A){var B;null==(B=b.remote)||B.watchAvailability(b=>A({availability:b}))},mediaUnsetCallback(b){var A;null==(A=b.remote)||A.cancelWatchAvailability()}},MEDIA_FULLSCREEN_UNAVAILABLE:{get:function(){return e2?void 0:ex.UNAVAILABLE}},MEDIA_PIP_UNAVAILABLE:{get:function(){return e3?void 0:ex.UNSUPPORTED}},MEDIA_RENDITION_UNAVAILABLE:{get:function(b){var A;let{media:B}=b;return(null==B?void 0:B.videoRenditions)?(null==(A=B.videoRenditions)?void 0:A.length)?void 0:ex.UNAVAILABLE:ex.UNSUPPORTED},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},MEDIA_AUDIO_TRACK_UNAVAILABLE:{get:function(b){var A,B;let{media:G}=b;return(null==G?void 0:G.audioTracks)?(null!=(B=null==(A=G.audioTracks)?void 0:A.length)?B:0)<=1?ex.UNAVAILABLE:void 0:ex.UNSUPPORTED},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},MEDIA_VOLUME_UNAVAILABLE:{get:function(b){if(void 0!==W&&!W)return ex.UNSUPPORTED;let{media:A}=b;if(A&&void 0===A.volume)return ex.UNAVAILABLE},mediaEvents:["loadstart"]},MEDIA_SUBTITLES_LIST:{get:function(b){return getSubtitleTracks(b).map(({kind:b,label:A,language:B})=>({kind:b,label:A,language:B}))},mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack"]},MEDIA_SUBTITLES_SHOWING:{get:function(b,A){var B;return b.hasAttribute("defaultsubtitles")&&["addtrack","removetrack"].includes(null==A?void 0:A.type)&&[eR.CAPTIONS,eR.SUBTITLES].includes(null==(B=null==A?void 0:A.track)?void 0:B.kind)&&e7.MEDIA_TOGGLE_SUBTITLES_REQUEST(void 0,{detail:!0},b),getShowingSubtitleTracks(b).map(({kind:b,label:A,language:B})=>({kind:b,label:A,language:B}))},mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack","change"]},MEDIA_RENDITION_LIST:{get:function(b){var A;let{media:B}=b;return[...null!=(A=null==B?void 0:B.videoRenditions)?A:[]]},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},MEDIA_RENDITION_SELECTED:{get:function(b){var A,B,G;let{media:W}=b;return null==(G=null==(B=null==W?void 0:W.videoRenditions)?void 0:B[null==(A=W.videoRenditions)?void 0:A.selectedIndex])?void 0:G.id},mediaEvents:["emptied"],videoRenditionsEvents:["addrendition","removerendition","change"]},MEDIA_AUDIO_TRACK_LIST:{get:function(b){var A;let{media:B}=b;return[...null!=(A=null==B?void 0:B.audioTracks)?A:[]]},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},MEDIA_AUDIO_TRACK_ENABLED:{get:function(b){var A,B;let{media:G}=b;return null==(B=[...null!=(A=null==G?void 0:G.audioTracks)?A:[]].find(b=>b.enabled))?void 0:B.id},mediaEvents:["emptied"],audioTracksEvents:["addtrack","removetrack","change"]}},e7={MEDIA_PLAY_REQUEST:(b,A,B)=>{var G;let W=e6.MEDIA_STREAM_TYPE.get(B),K=null===B.getAttribute("noautoseektolive");W==eD.LIVE&&K&&e7.MEDIA_SEEK_TO_LIVE_REQUEST(b),null==(G=b.play())||G.catch(()=>{})},MEDIA_PAUSE_REQUEST:b=>b.pause(),MEDIA_MUTE_REQUEST:b=>b.muted=!0,MEDIA_UNMUTE_REQUEST:b=>{b.muted=!1,0===b.volume&&(b.volume=.25)},MEDIA_VOLUME_REQUEST:(b,A,B)=>{let G=A.detail;if(b.volume=G,G>
2370&&b.muted&&(b.muted=!1),!B.hasAttribute("novolumepref"))try{eV.localStorage.setItem("media-chrome-pref-volume",G.toString())}catch(b){}},MEDIA_ENTER_FULLSCREEN_REQUEST:(b,A,B)=>{if(!e2){console.warn("MediaChrome: Fullscreen support is unavailable; not entering fullscreen");return}eH.pictureInPictureElement&&eH.exitPictureInPicture(),B[e1.enter]?B.fullscreenElement[e1.enter]():b.webkitEnterFullscreen?b.webkitEnterFullscreen():b.requestFullscreen?b.requestFullscreen():console.warn("MediaChrome: Fullscreen not supported")},MEDIA_EXIT_FULLSCREEN_REQUEST:()=>{eH[e1.exit]()},MEDIA_ENTER_PIP_REQUEST:b=>{if(!eH.pictureInPictureEnabled){console.warn("MediaChrome: Picture-in-picture is not enabled");return}if(!b.requestPictureInPicture){console.warn("MediaChrome: The current media does not support picture-in-picture");return}eH[e1.element]&&eH[e1.exit]();let warnNotReady=()=>{console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a readyState > 0.")};b.requestPictureInPicture().catch(A=>{if(11===A.code){if(0===b.readyState&&"none"===b.preload){let cleanup=()=>{b.removeEventListener("loadedmetadata",tryPip),b.preload="none"},tryPip=()=>{b.requestPictureInPicture().catch(warnNotReady),cleanup()};b.addEventListener("loadedmetadata",tryPip),b.preload="metadata",setTimeout(()=>{0===b.readyState&&warnNotReady(),cleanup()},1e3)}else throw A}else throw A})},MEDIA_EXIT_PIP_REQUEST:()=>{eH.pictureInPictureElement&&eH.exitPictureInPicture()},MEDIA_ENTER_CAST_REQUEST:async b=>{var A;if((null==(A=b.remote)?void 0:A.state)==="disconnected"){if(eH[e1.element]&&eH[e1.exit](),!b.remote.prompt){console.warn("MediaChrome: Casting is not supported in this environment");return}try{await b.remote.prompt()}catch{}}},MEDIA_EXIT_CAST_REQUEST:b=>{var A;(null==(A=b.remote)?void 0:A.state)==="connected"&&b.remote.prompt()},MEDIA_SEEK_REQUEST:(b,A)=>{let B=A.detail;(b.readyState>0||void 0===b.readyState)&&(b.currentTime=B)},MEDIA_PLAYBACK_RATE_REQUEST:(b,A)=>{b.playbackRate=A.detail},MEDIA_PREVIEW_REQUEST:(b,A,B)=>{var G;if(!b)return;let W=A.detail;null===W&&B.propagateMediaState(eS.MEDIA_PREVIEW_TIME,void 0),B.propagateMediaState(eS.MEDIA_PREVIEW_TIME,W);let[K]=getTextTracksList(b,{kind:eR.METADATA,label:"thumbnails"});if(!(K&&K.cues))return;if(null===W){B.propagateMediaState(eS.MEDIA_PREVIEW_IMAGE,void 0),B.propagateMediaState(eS.MEDIA_PREVIEW_COORDS,void 0);return}let et=Array.prototype.find.call(K.cues,b=>b.startTime>=W);if(!et)return;let ei=/'^(?:[a-z]+:)?\/\//i.test(et.text)?void 0:null==(G=b.querySelector('track[label="thumbnails"]'))?void 0:G.src,ea=new URL(et.text,ei),er=new URLSearchParams(ea.hash).get("#xywh");B.propagateMediaState(eS.MEDIA_PREVIEW_IMAGE,ea.href),B.propagateMediaState(eS.MEDIA_PREVIEW_COORDS,er.split(","))},MEDIA_SHOW_SUBTITLES_REQUEST:(b,A,B)=>{var G;let W=getSubtitleTracks(B),{detail:K=[]}=A,et=parseTracks(K),ei=null==(G=et[0])?void 0:G.language;!ei||(null==B?void 0:B.hasAttribute("nosubtitleslangpref"))||eV.localStorage.setItem("media-chrome-pref-subtitles-lang",ei),updateTracksModeTo(eL.SHOWING,W,et)},MEDIA_DISABLE_SUBTITLES_REQUEST:(b,A,B)=>{let G=getSubtitleTracks(B),{detail:W=[]}=A;updateTracksModeTo(eL.DISABLED,G,W)},MEDIA_TOGGLE_SUBTITLES_REQUEST:(b,A,B)=>{let{detail:G}=null!=A?A:{},W=getSubtitleTracks(B),K=getShowingSubtitleTracks(B),et=!!K.length;if(W.length){if(!1===G||et&&!0!==G)updateTracksModeTo(eL.DISABLED,W,K);else if(!0===G||!et&&!1!==G){let b=W[0];if(!(null==B?void 0:B.hasAttribute("nosubtitleslangpref"))){let A=eV.localStorage.getItem("media-chrome-pref-subtitles-lang"),B=A?[A,...eV.navigator.languages]:eV.navigator.languages,G=W.filter(b=>B.some(A=>b.language.toLowerCase().startsWith(A.split("-")[0]))).sort((b,A)=>{let G=B.findIndex(A=>b.language.toLowerCase().startsWith(A.split("-")[0])),W=B.findIndex(b=>A.language.toLowerCase().startsWith(b.split("-")[0]));return G-W});G[0]&&(b=G[0])}let{language:A,label:G,kind:et}=b;updateTracksModeTo(eL.DISABLED,W,K),updateTracksModeTo(eL.SHOWING,W,[{language:A,label:G,kind:et}])}}},MEDIA_AIRPLAY_REQUEST:async b=>{if(null==b?void 0:b.remote){if(!b.remote.prompt){console.warn("MediaChrome: AirPlay is not supported in this environment");return}try{await b.remote.prompt()}catch{}}},MEDIA_SEEK_TO_LIVE_REQUEST:b=>{let A=b.seekable;if(!A){console.warn("MediaChrome: Media element does not support seeking to live.");return}if(!A.length){console.warn("MediaChrome: Media is unable to seek to live.");return}b.currentTime=A.end(A.length-1)},MEDIA_RENDITION_REQUEST:(b,A)=>{if(!(null==b?void 0:b.videoRenditions)){console.warn("MediaChrome: Rendition selection not supported by this media.");return}let B=A.detail,G=[...b.videoRenditions].findIndex(b=>b.id==B);b.videoRenditions.selectedIndex!=G&&(b.videoRenditions.selectedIndex=G)},MEDIA_AUDIO_TRACK_REQUEST:(b,A)=>{if(!(null==b?void 0:b.audioTracks)){console.warn("MediaChrome: Audio track selection not supported by this media.");return}let B=A.detail;for(let A of b.audioTracks)A.enabled=B==A.id}};var media_controller_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_controller_privateGet=(b,A,B)=>(media_controller_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_controller_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_controller_privateSet=(b,A,B,G)=>(media_controller_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),media_controller_privateMethod=(b,A,B)=>(media_controller_accessCheck(b,A,"access private method"),B);let tt=["ArrowLeft","ArrowRight","Enter"," ","f","m","k","c"],ti={DEFAULT_SUBTITLES:"defaultsubt
237itles",DEFAULT_STREAM_TYPE:"defaultstreamtype",DEFAULT_DURATION:"defaultduration",FULLSCREEN_ELEMENT:"fullscreenelement",HOTKEYS:"hotkeys",KEYS_USED:"keysused",NO_HOTKEYS:"nohotkeys"};let MediaController=class MediaController extends MediaContainer{constructor(){super(),media_controller_privateAdd(this,iL),media_controller_privateAdd(this,ix),media_controller_privateAdd(this,iI,new AttributeTokenList(this,ti.HOTKEYS)),media_controller_privateAdd(this,iC,void 0),media_controller_privateAdd(this,iR,void 0),void 0===e6.MEDIA_VOLUME_UNAVAILABLE.get(this)&&e4.then(()=>{this.propagateMediaState(eS.MEDIA_VOLUME_UNAVAILABLE,e6.MEDIA_VOLUME_UNAVAILABLE.get(this))}),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,this.associateElement(this),Object.keys(e7).forEach(b=>{let A=`_handle${constToCamel(b,!0)}`;this[A]=A=>{if(A.stopPropagation(),!this.media){console.warn("MediaController: No media available.");return}e7[b](this.media,A,this)},this.addEventListener(eA[b],this[A])}),this._mediaStatePropagators={},Object.keys(e6).forEach(b=>{this._mediaStatePropagators[b]=A=>{this.propagateMediaState(eT[b],e6[b].get(this,A))}})}static get observedAttributes(){return super.observedAttributes.concat(ti.NO_HOTKEYS,ti.HOTKEYS,ti.DEFAULT_STREAM_TYPE,ti.DEFAULT_SUBTITLES,ti.DEFAULT_DURATION)}get fullscreenElement(){var b;return null!=(b=media_controller_privateGet(this,iC))?b:this}set fullscreenElement(b){this.hasAttribute(ti.FULLSCREEN_ELEMENT)&&this.removeAttribute(ti.FULLSCREEN_ELEMENT),media_controller_privateSet(this,iC,b)}attributeChangedCallback(b,A,B){var G;if(super.attributeChangedCallback(b,A,B),b===ti.NO_HOTKEYS)B!==A&&""===B?(this.hasAttribute(ti.HOTKEYS)&&console.warn("Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):B!==A&&null===B&&this.enableHotkeys();else if(b===ti.HOTKEYS)media_controller_privateGet(this,iI).value=B;else if(b===ti.DEFAULT_SUBTITLES&&B!==A&&""===B)this.dispatchEvent(new eV.CustomEvent(eA.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:!0}));else if(b===ti.DEFAULT_STREAM_TYPE)this.propagateMediaState(eT.MEDIA_STREAM_TYPE);else if(b===ti.FULLSCREEN_ELEMENT){let b=B?null==(G=media_controller_privateGet(this,iR))?void 0:G.getElementById(B):void 0;media_controller_privateSet(this,iC,b)}}connectedCallback(){super.connectedCallback(),media_controller_privateSet(this,iR,this.getRootNode()),this.enableHotkeys()}disconnectedCallback(){super.disconnectedCallback(),this.disableHotkeys(),this.dispatchEvent(new eV.CustomEvent(eA.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:!1}))}mediaSetCallback(b){if(super.mediaSetCallback(b),b.hasAttribute("tabindex")||(b.tabIndex=-1),Object.keys(e6).forEach(A=>{let{mediaSetCallback:B,mediaEvents:G,rootEvents:W,textTracksEvents:K,videoRenditionsEvents:et,audioTracksEvents:ei,remoteEvents:ea}=e6[A],er=this._mediaStatePropagators[A];B&&(B(b,er),er()),null==G||G.forEach(A=>{b.addEventListener(A,er),er()}),null==W||W.forEach(b=>{var A;null==(A=media_controller_privateGet(this,iR))||A.addEventListener(b,er),er()}),null==K||K.forEach(A=>{var B;null==(B=b.textTracks)||B.addEventListener(A,er),er()}),null==et||et.forEach(A=>{var B;null==(B=b.videoRenditions)||B.addEventListener(A,er),er()}
237),null==ei||ei.forEach(A=>{var B;null==(B=b.audioTracks)||B.addEventListener(A,er),er()}),null==ea||ea.forEach(A=>{var B;null==(B=b.remote)||B.addEventListener(A,er),er()})}),!this.hasAttribute("novolumepref"))try{let A=eV.localStorage.getItem("media-chrome-pref-volume");null!==A&&(b.volume=A)}catch(b){console.debug("Error getting volume pref",b)}}mediaUnsetCallback(b){super.mediaUnsetCallback(b),Object.keys(e6).forEach(A=>{let{mediaUnsetCallback:B,mediaEvents:G,rootEvents:W,textTracksEvents:K,videoRenditionsEvents:et,audioTracksEvents:ei,remoteEvents:ea}=e6[A],er=this._mediaStatePropagators[A];null==G||G.forEach(A=>{b.removeEventListener(A,er)}),null==W||W.forEach(b=>{var A;null==(A=media_controller_privateGet(this,iR))||A.removeEventListener(b,er)}),null==K||K.forEach(A=>{var B;null==(B=b.textTracks)||B.removeEventListener(A,er)}),null==et||et.forEach(A=>{var B;null==(B=b.videoRenditions)||B.removeEventListener(A,er),er()}),null==ei||ei.forEach(A=>{var B;null==(B=b.audioTracks)||B.removeEventListener(A,er),er()}),null==ea||ea.forEach(A=>{var B;null==(B=b.remote)||B.removeEventListener(A,er),er()}),B&&(B(b,er),er())}
237),this.propagateMediaState(eT.MEDIA_PAUSED,!0)}propagateMediaState(b,A){let B=getStateValue(this.mediaStateReceivers,b);if(propagateMediaState(this.mediaStateReceivers,b,A),B===getStateValue(this.mediaStateReceivers,b))return;let G=b.toLowerCase(),W=new eV.CustomEvent(eC[G],{composed:!0,bubbles:!0,detail:A});this.dispatchEvent(W)}associateElement(b){if(!b)return;let{associatedElementSubscriptions:A}=this;if(A.has(b))return;let B=this.registerMediaStateReceiver.bind(this),G=this.unregisterMediaStateReceiver.bind(this),W=monitorForMediaStateReceivers(b,B,G);Object.keys(eA).forEach(A=>{b.addEventListener(eA[A],this[`_handle${constToCamel(A,!0)}`])}),A.set(b,W)}unassociateElement(b){if(!b)return;let{associatedElementSubscriptions:A}=this;if(!A.has(b))return;let B=A.get(b);B(),A.delete(b),Object.keys(eA).forEach(A=>{b.removeEventListener(eA[A],this[`_handle${constToCamel(A,!0)}`])})}registerMediaStateReceiver(b){if(!b)return;let A=this.mediaStateReceivers,B=A.indexOf(b);B>-1||(A.push(b),Object.keys(e6).forEach(A=>{let B=e6[A];propagateMediaState([b],eT[A],B.get(this))}))}unregisterMediaStateReceiver(b){let A=this.mediaStateReceivers,B=A.indexOf(b);B<0||A.splice(B,1)}enableHotkeys(){this.addEventListener("keydown",media_controller_privateMethod(this,ix,iD))}disableHotkeys(){this.removeEventListener("keydown",media_controller_privateMethod(this,ix,iD)),this.removeEventListener("keyup",media_controller_privateMethod(this,iL,iM))}get hotkeys(){return media_controller_privateGet(this,iI)}keyboardShortcutHandler(b){var A,B,G,W;let K,et,ei,ea;let er=(null!=(W=null!=(G=null==(A=b.target.getAttribute(ti.KEYS_USED))?void 0:A.split(" "))?G:null==(B=b.target)?void 0:B.keysUsed)?W:[]).map(b=>"Space"===b?" ":b).filter(Boolean);if(!er.includes(b.key)&&!media_controller_privateGet(this,iI).contains(`no${b.key.toLowerCase()}`)&&!(" "===b.key&&media_controller_privateGet(this,iI).contains("nospace")))switch(b.key){case" ":case"k":K=null!=this.getAttribute(eS.MEDIA_PAUSED)?eA.MEDIA_PLAY_REQUEST:eA.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new eV.CustomEvent(K,{composed:!0,bubbles:!0}));break;case"m":K="off"===this.getAttribute(eS.MEDIA_VOLUME_LEVEL)?eA.MEDIA_UNMUTE_REQUEST:eA.MEDIA_MUTE_REQUEST,this.dispatchEvent(new eV.CustomEvent(K,{composed:!0,bubbles:!0}));break;case"f":K=null!=this.getAttribute(eS.MEDIA_IS_FULLSCREEN)?eA.MEDIA_EXIT_FULLSCREEN_REQUEST:eA.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new eV.CustomEvent(K,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new eV.CustomEvent(eA.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":ei=Math.max(((et=this.getAttribute(eS.MEDIA_CURRENT_TIME))&&!Number.isNaN(+et)?+et:0)-10,0),ea=new eV.CustomEvent(eA.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:ei}),this.dispatchEvent(ea);break;case"ArrowRight":ei=Math.max(((et=this.getAttribute(eS.MEDIA_CURRENT_TIME))&&!Number.isNaN(+et)?+et:0)+10,0),ea=new eV.CustomEvent(eA.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:ei}),this.dispatchEvent(ea)}}};iI=new WeakMap,iC=new WeakMap,iR=new WeakMap,iL=new WeakSet,iM=function(b){let{key:A}=b;if(!tt.includes(A)){this.removeEventListener("keyup",media_controller_privateMethod(this,iL,iM));return}this.keyboardShortcutHandler(b)},ix=new WeakSet,iD=function(b){let{metaKey:A,altKey:B,key:G}=b;if(A||B||!tt.includes(G)){this.removeEventListener("keyup",media_controller_privateMethod(this,iL,iM));return}[" ","ArrowLeft","ArrowRight"].includes(G)&&!(media_controller_privateGet(this,iI).contains(`no${G.toLowerCase()}`)||" "===G&&media_controller_privateGet(this,iI).contains("nospace"))&&b.preventDefault(),this.addEventListener("keyup",media_controller_privateMethod(this,iL,iM),{once:!0})};let ta=Object.values(eS),tr=Object.values(eT),getMediaUIAttributesFrom=b=>{var A,B,G,W;let{observedAttributes:K}=b.constructor;!K&&(null==(A=b.nodeName)?void 0:A.includes("-"))&&(eV.customElements.upgrade(b),{observedAttributes:K}=b.constructor);let et=null==(W=null==(G=null==(B=null==b?void 0:b.getAttribute)?void 0:B.call(b,ek.MEDIA_CHROME_ATTRIBUTES))?void 0:G.split)?void 0:W.call(G,/\s+/);return Array.isArray(K||et)?(K||et).filter(b=>ta.includes(b)):[]},hasMediaUIProps=b=>{var A,B;return(null==(A=b.nodeName)?void 0:A.includes("-"))&&eV.customElements.get(null==(B=b.nodeName)?void 0:B.toLowerCase())&&!(b instanceof eV.customElements.get(b.no
237deName.toLowerCase()))&&eV.customElements.upgrade(b),tr.some(A=>A in b)},isMediaStateReceiver=b=>hasMediaUIProps(b)||!!getMediaUIAttributesFrom(b).length,serializeTuple=b=>{var A;return null==(A=null==b?void 0:b.join)?void 0:A.call(b,":")},tn={[eS.MEDIA_SUBTITLES_LIST]:stringifyTextTrackList,[eS.MEDIA_SUBTITLES_SHOWING]:stringifyTextTrackList,[eS.MEDIA_SEEKABLE]:serializeTuple,[eS.MEDIA_BUFFERED]:b=>null==b?void 0:b.map(serializeTuple).join(" "),[eS.MEDIA_PREVIEW_COORDS]:b=>null==b?void 0:b.join(" "),[eS.MEDIA_RENDITION_LIST]:function(b){return null==b?void 0:b.map(stringifyRendition).join(" ")},[eS.MEDIA_AUDIO_TRACK_LIST]:function(b){return null==b?void 0:b.map(stringifyAudioTrack).join(" ")}},setAttr=async(b,A,B)=>{var G,W;if(b.isConnected||await delay(0),"boolean"==typeof B||null==B)return setBooleanAttr(b,A,B);if("number"==typeof B)return setNumericAttr(b,A,B);if("string"==typeof B)return setStringAttr(b,A,B);if(Array.isArray(B)&&!B.length)return b.removeAttribute(A);let K=null!=(W=null==(G=tn[A])?void 0:G.call(tn,B))?W:B;return b.setAttribute(A,K)},isMediaSlotElementDescendant=b=>{var A;return!!(null==(A=b.closest)?void 0:A.call(b,'*[slot="media"]'))},traverseForMediaStateReceivers=(b,A)=>{if(isMediaSlotElementDescendant(b))return;let traverseForMediaStateReceiversSync=(b,A)=>{var B,G;isMediaStateReceiver(b)&&A(b);let{children:W=[]}=null!=b?b:{},K=null!=(G=null==(B=null==b?void 0:b.shadowRoot)?void 0:B.children)?G:[],et=[...W,...K];et.forEach(b=>traverseForMediaStateReceivers(b,A))},B=null==b?void 0:b.nodeName.toLowerCase();if(B.includes("-")&&!isMediaStateReceiver(b)){eV.customElements.whenDefined(B).then(()=>{traverseForMediaStateReceiversSync(b,A)});return}traverseForMediaStateReceiversSync(b,A)},propagateMediaState=(b,A,B)=>{b.forEach(b=>{if(A in b){b[A]=B;return}let G=getMediaUIAttributesFrom(b),W=A.toLowerCase();G.includes(W)&&setAttr(b,W,B)})},getStateValue=(b,A)=>{for(let B of b){if(A in B)return B[A];let b=getMediaUIAttributesFrom(B),G=A.toLowerCase();if(b.includes(G))return B.getAttribute(G)}},monitorForMediaStateReceivers=(b,A,B)=>{traverseForMediaStateReceivers(b,A);let registerMediaStateReceiverHandler=b=>{var B;let G=null!=(B=null==b?void 0:b.composedPath()[0])?B:b.target;A(G)},unregisterMediaStateReceiverHandler=b=>{var A;let G=null!=(A=null==b?void 0:b.composedPath()[0])?A:b.target;B(G)};b.addEventListener(eA.REGISTER_MEDIA_STATE_RECEIVER,registerMediaStateReceiverHandler),b.addEventListener(eA.UNREGISTER_MEDIA_STATE_RECEIVER,unregisterMediaStateReceiverHandler);let G=[],slotChangeHandler=b=>{let W=b.target;"media"!==W.name&&(G.forEach(b=>traverseForMediaStateReceivers(b,B)),(G=[...W.assignedElements({flatten:!0})]).forEach(b=>traverseForMediaStateReceivers(b,A)))};b.addEventListener("slotchange",slotChangeHandler);let W=new MutationObserver(b=>{b.forEach(b=>{let{addedNodes:G=[],removedNodes:W=[],type:K,target:et,attributeName:ei}=b;"childList"===K?(Array.prototype.forEach.call(G,b=>traverseForMediaStateReceivers(b,A)),Array.prototype.forEach.call(W,b=>traverseForMediaStateReceivers(b,B))):"attributes"===K&&ei===ek.MEDIA_CHROME_ATTRIBUTES&&(isMediaStateReceiver(et)?A(et):B(et))})});return W.observe(b,{childList:!0,attributes:!0,subtree:!0}),()=>{traverseForMediaStateReceivers(b,B),b.removeEventListener("slotchange",slotChangeHandler),W.disconnect(),b.removeEventListener(eA.REGISTER_MEDIA_STATE_RECEIVER,registerMediaStateReceiverHandler),b.removeEventListener(eA.UNREGISTER_MEDIA_STATE_RECEIVER,unregisterMediaStateReceiverHandler)}};eV.customElements.get("media-controller")||eV.customElements.define("media-controller",MediaController);var media_chrome_range_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_chrome_range_privateGet=(b,A,B)=>(media_chrome_range_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_chrome_range_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_chrome_range_privateSet=(b,A,B,G)=>(media_chrome_range_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),media_chrome_range_privateMethod=(b,A,B)=>(media_chrome_range_accessCheck(b,A,"access private method"),B);let to=eH.createElement("template");to.innerHTML=`
238  <style>
239    :host {
240      --_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
241      --_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px));
242
243      box-shadow: var(--_focus-visible-box-shadow, none);
244      background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
245      height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding));
246      display: inline-flex;
247      align-items: center;
248      
249      vertical-align: middle;
250      box-sizing: border-box;
251      position: relative;
252      width: 100px;
253      transition: background .15s linear;
254      cursor: pointer;
255      pointer-events: auto;
256      touch-action: none; 
257      z-index: 1; 
258    }
259
260    
261    input[type=range]:focus {
262      outline: 0;
263    }
264    input[type=range]:focus::-webkit-slider-runnable-track {
265      outline: 0;
266    }
267
268    :host(:hover) {
269      background: var(--media-control-hover-background, rgb(50 50 70 / .7));
270    }
271
272    #leftgap {
273      padding-left: var(--media-range-padding-left, var(--_media-range-padding));
274    }
275
276    #rightgap {
277      padding-right: var(--media-range-padding-right, var(--_media-range-padding));
278    }
279
280    #startpoint,
281    #endpoint {
282      position: absolute;
283    }
284
285    #endpoint {
286      right: 0;
287    }
288
289    #container {
290      
291      width: var(--media-range-track-width, 100%);
292      transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px));
293      position: relative;
294      height: 100%;
295      display: flex;
296      align-items: center;
297      min-width: 40px;
298    }
299
300    #range {
301      
302      display: var(--media-time-range-hover-display, block);
303      bottom: var(--media-time-range-hover-bottom, -7px);
304      height: var(--media-time-range-hover-height, max(100% + 7px, 25px));
305      width: 100%;
306      position: absolute;
307      cursor: pointer;
308
309      -webkit-appearance: none; 
310      -webkit-tap-highlight-color: transparent;
311      background: transparent; 
312      margin: 0;
313      z-index: 1;
314    }
315
316    @media (hover: hover) {
317      #range {
318        bottom: var(--media-time-range-hover-bottom, -5px);
319        height: var(--media-time-range-hover-height, max(100% + 5px, 20px));
320      }
321    }
322
323    
324    
325    #range::-webkit-slider-thumb {
326      -webkit-appearance: none;
327      background: transparent;
328      width: .1px;
329      height: .1px;
330    }
331
332    
333    #range::-moz-range-thumb {
334      background: transparent;
335      border: transparent;
336      width: .1px;
337      height: .1px;
338    }
339
340    #appearance {
341      height: var(--media-range-track-height, 4px);
342      display: flex;
343      flex-direction: column;
344      justify-content: center;
345      width: 100%;
346      position: absolute;
347    }
348
349    #background,
350    #track {
351      border-radius: var(--media-range-track-border-radius, 1px);
352      position: absolute;
353      width: 100%;
354      height: 100%;
355    }
356
357    #background {
358      background: var(--media-range-track-background, rgb(255 255 255 / .2));
359      backdrop-filter: var(--media-range-track-background-backdrop-filter);
360      -webkit-backdrop-filter: var(--media-range-track-background-backdrop-filter);
361    }
362
363    #track {
364      border: var(--media-range-track-border, none);
365      outline: var(--media-range-track-outline);
366      outline-offset: var(--media-range-track-outline-offset);
367      backdrop-filter: var(--media-range-track-backdrop-filter);
368      -webkit-backdrop-filter: var(--media-range-track-backdrop-filter);
369      box-shadow: var(--media-range-track-box-shadow, none);
370      overflow: hidden;
371    }
372
373    #progress {
374      background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238)));
375      border-radius: var(--media-range-track-border-radius, 1px);
376      transition: var(--media-range-track-transition);
377      position: absolute;
378      height: 100%;
379    }
380
381    #highlight {
382      border-radius: var(--media-range-track-border-radius, 1px);
383      position: absolute;
384      height: 100%;
385    }
386
387    #pointer {
388      background: var(--media-range-track-pointer-background);
389      border-right: var(--media-range-track-pointer-border-right);
390      border-radius: var(--media-range-track-border-radius, 1px);
391      transition: visibility .25s, opacity .25s;
392      visibility: hidden;
393      opacity: 0;
394      position: absolute;
395      height: 100%;
396    }
397
398    :host(:hover) #pointer {
399      transition: visibility .5s, opacity .5s;
400      visibility: visible;
401      opacity: 1;
402    }
403
404    #thumb {
405      width: var(--media-range-thumb-width, 10
405px);
406      height: var(--media-range-thumb-height, 10px);
407      margin-left: calc(var(--media-range-thumb-width, 10px) / -2);
408      border: var(--media-range-thumb-border, none);
409      border-radius: var(--media-range-thumb-border-radius, 10px);
410      background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238)));
411      box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent);
412      transition: var(--media-range-thumb-transition);
413      transform: var(--media-range-thumb-transform, none);
414      opacity: var(--media-range-thumb-opacity, 1);
415      position: absolute;
416      left: 0;
417      cursor: pointer;
418    }
419
420    :host([disabled]) #thumb {
421      background-color: #777;
422    }
423  </style>
424  <div id="leftgap"></div>
425  <div id="container">
426    <div id="startpoint"></div>
427    <div id="endpoint"></div>
428    <div id="appearance">
429      <div id="background"></div>
430      <div id="track">
431        <div id="highlight"></div>
432        <div id="pointer"></div>
433        <div id="progress"></div>
434      </div>
435      <div id="thumb"></div>
436    </div>
437    <input id="range" type="range" min="0" max="1" step="any" value="0">
438  </div>
439  <div id="rightgap"></div>
440`;let MediaChromeRange=class MediaChromeRange extends eV.HTMLElement{constructor(){super(),media_chrome_range_privateAdd(this,iW),media_chrome_range_privateAdd(this,iH),media_chrome_range_privateAdd(this,iF),media_chrome_range_privateAdd(this,i$),media_chrome_range_privateAdd(this,iY),media_chrome_range_privateAdd(this,iZ),media_chrome_range_privateAdd(this,iX),media_chrome_range_privateAdd(this,iO,void 0),media_chrome_range_privateAdd(this,iN,void 0),media_chrome_range_privateAdd(this,iP,void 0),media_chrome_range_privateAdd(this,iU,void 0),media_chrome_range_privateAdd(this,iB,()=>{if(this.range.matches(":focus-visible")){let{style:b}=getOrInsertCSSRule(this.shadowRoot,":host");b.setProperty("--_focus-visible-box-shadow","var(--_focus-box-shadow)")}}),media_chrome_range_privateAdd(this,iG,()=>{let{style:b}=getOrInsertCSSRule(this.shadowRoot,":host");b.removeProperty("--_focus-visible-box-shadow")}),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(to.content.cloneNode(!0)));let{style:b}=getOrInsertCSSRule(this.shadowRoot,":host");b.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),this.container=this.shadowRoot.querySelector("#container"),media_chrome_range_privateSet(this,iP,this.shadowRoot.querySelector("#startpoint")),media_chrome_range_privateSet(this,iU,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range")}static get observedAttributes(){return["disabled","aria-disabled",ek.MEDIA_CONTROLLER]}attributeChangedCallback(b,A,B){var G,W,K,et,ei;b===ek.MEDIA_CONTROLLER?(A&&(null==(W=null==(G=media_chrome_range_privateGet(this,iO))?void 0:G.unassociateElement)||W.call(G,this),media_chrome_range_privateSet(this,iO,null)),B&&this.isConnected&&(media_chrome_range_privateSet(this,iO,null==(K=this.getRootNode())?void 0:K.getElementById(B)),null==(ei=null==(et=media_chrome_range_privateGet(this,iO))?void 0:et.associateElement)||ei.call(et,this))):("disabled"===b||"aria-disabled"===b&&A!==B)&&(null==B?(this.range.removeAttribute(b),media_chrome_range_privateMethod(this,iW,iV).call(this)):(this.range.setAttribute(b,B),media_chrome_range_privateMethod(this,iH,iq).call(this)))}connectedCallback(){var b,A,B;let G=this.getAttribute(ek.MEDIA_CONTROLLER);G&&(media_chrome_range_privateSet(this,iO,null==(b=this.getRootNode())?void 0:b.getElementById(G)),null==(B=null==(A=media_chrome_range_privateGet(this,iO))?void 0:A.associateElement)||B.call(A,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",media_chrome_range_privateGet(this,iB)),this.shadowRoot.addEventListener("focusout",media_chrome_range_privateGet(this,iG)),media_chrome_range_privateMethod(this,iW,iV).call(this)}disconnectedCallback(){var b,A;media_chrome_range_privateMethod(this,iH,iq).call(this),null==(A=null==(b=media_chrome_range_privateGet(this,iO))?void 0:b.unassociateElement)||A.call(b,this),media_chrome_range_privateSet(this,iO,null),this.shadowRoot.removeEventListener("focusin",media_chrome_range_privateGet(this,iB)),this.shadowRoot.removeEventListener("focusout",media_chrome_range_privateGet(this,iG))}updatePointerBar(b){let A=this.range.getBoundingClientRect(),B=(b.clientX-A.left)/A.width;B=100*Math.max(0,Math.min(1,B));let{style:G}=getOrInsertCSSRule(this.shadowRoot,"#pointer");G.setProperty("width",`${B}%`)}updateBar(){let b=100*this.range.valueAsNumber,A=getOrInsertCSSRule(this.shadowRoot,"#progress"),B=getOrInsertCSSRule(this.shadowRoot,"#thumb");A.style.setProperty("width",`${b}%`),B.style.setProperty("left",`${b}%`)}get dragging(){return this.hasAttribute("dragging")}handleEvent(b){switch(b.type){case"input":this.updateBar();break;case"pointerenter":media_chrome_range_privateMethod(this,i$,iK).call(this,b);break;case"pointerdown":media_chrome_range_privateMethod(this,iF,ij).call(this,b);break;case"pointermove":media_chrome_range_privateMethod(this,iX,iJ).call(this,b);break;case"pointerup":media_chrome_range_privateMethod(this,iY,iQ).call(this);break;case"pointerleave":media_chrome_range_privateMethod(this,iZ,iz).call(this)}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}};
440iO=new WeakMap,iN=new WeakMap,iP=new WeakMap,iU=new WeakMap,iB=new WeakMap,iG=new WeakMap,iW=new WeakSet,iV=function(){this.hasAttribute("disabled")||(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))},iH=new WeakSet,iq=function(){var b,A;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),null==(b=eV.window)||b.removeEventListener("pointerup",this),null==(A=eV.window)||A.removeEventListener("pointermove",this)},iF=new WeakSet,ij=function(b){var A;media_chrome_range_privateSet(this,iN,b.composedPath().includes(this.range)),null==(A=eV.window)||A.addEventListener("pointerup",this)},i$=new WeakSet,iK=function(b){var A;"mouse"!==b.pointerType&&media_chrome_range_privateMethod(this,iF,ij).call(this,b),this.addEventListener("pointerleave",this),null==(A=eV.window)||A.addEventListener("pointermove",this)},iY=new WeakSet,iQ=function(){var b;null==(b=eV.window)||b.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")},iZ=new WeakSet,iz=function(){var b;this.removeEventListener("pointerleave",this),null==(b=eV.window)||b.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")},iX=new WeakSet,iJ=function(b){if(this.toggleAttribute("dragging",1===b.buttons||"mouse"!==b.pointerType),this.updatePointerBar(b),this.dragging&&("mouse"!==b.pointerType||!media_chrome_range_privateGet(this,iN))){this.range.disabled=!0;let A=function(b,A,B,G){let W=distance(B,G),K=distance(B,{x:b,y:A}),et=distance(G,{x:b,y:A});return K>W||et>W?K>et?1:0:K/W}(b.clientX,b.clientY,media_chrome_range_privateGet(this,iP).getBoundingClientRect(),media_chrome_range_privateGet(this,iU).getBoundingClientRect());A=Math.max(0,Math.min(1,A)),this.range.valueAsNumber=A,this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}},eV.customElements.get("media-chrome-range")||eV.customElements.define("media-chrome-range",MediaChromeRange);var media_control_bar_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_control_bar_privateGet=(b,A,B)=>(media_control_bar_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_control_bar_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_control_bar_privateSet=(b,A,B,G)=>(media_control_bar_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);let ts=eH.createElement("template");ts.innerHTML=`
441  <style>
442    :host {
443      
444      box-sizing: border-box;
445      display: var(--media-control-display, var(--media-control-bar-display, inline-flex));
446      color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
447      --media-loading-indicator-icon-height: 44px;
448    }
449
450    ::slotted(media-time-range),
451    ::slotted(media-volume-range) {
452      min-height: 100%;
453    }
454
455    ::slotted(media-time-range),
456    ::slotted(media-clip-selector) {
457      flex-grow: 1;
458    }
459  </style>
460
461  <slot></slot>
462`;let MediaControlBar=class MediaControlBar extends eV.HTMLElement{constructor(){super(),media_control_bar_privateAdd(this,i0,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(ts.content.cloneNode(!0)))}static get observedAttributes(){return[ek.MEDIA_CONTROLLER]}attributeChangedCallback(b,A,B){var G,W,K,et,ei;b===ek.MEDIA_CONTROLLER&&(A&&(null==(W=null==(G=media_control_bar_privateGet(this,i0))?void 0:G.unassociateElement)||W.call(G,this),media_control_bar_privateSet(this,i0,null)),B&&this.isConnected&&(media_control_bar_privateSet(this,i0,null==(K=this.getRootNode())?void 0:K.getElementById(B)),null==(ei=null==(et=media_control_bar_privateGet(this,i0))?void 0:et.associateElement)||ei.call(et,this)))}connectedCallback(){var b,A,B;let G=this.getAttribute(ek.MEDIA_CONTROLLER);G&&(media_control_bar_privateSet(this,i0,null==(b=this.getRootNode())?void 0:b.getElementById(G)),null==(B=null==(A=media_control_bar_privateGet(this,i0))?void 0:A.associateElement)||B.call(A,this))}disconnectedCallback(){var b,A;null==(A=null==(b=media_control_bar_privateGet(this,i0))?void 0:b.unassociateElement)||A.call(b,this),media_control_bar_privateSet(this,i0,null)}};i0=new WeakMap,eV.customElements.get("media-control-bar")||eV.customElements.define("media-control-bar",MediaControlBar);var media_text_display_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_text_display_privateGet=(b,A,B)=>(media_text_display_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_text_display_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_text_display_privateSet=(b,A,B,G)=>(media_text_display_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);let tl=eH.createElement("template");tl.innerHTML=`
463  <style>
464    :host {
465      font: var(--media-font,
466        var(--media-font-weight, normal)
467        var(--media-font-size, 14px) /
468        var(--media-text-content-height, var(--media-control-height, 24px))
469        var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
470      color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
471      background: var(--media-text-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))));
472      padding: var(--media-control-padding, 10px);
473      display: inline-flex;
474      justify-content: center;
475      align-items: center;
476      vertical-align: middle;
477      box-sizing: border-box;
478      text-align: center;
479      pointer-events: auto;
480    }
481
482    
483    :host(:focus-visible) {
484      box-shadow: inset 0 0 0 2px rgb(27 127 204 / .9);
485      outline: 0;
486    }
487
488    
489    :host(:where(:focus)) {
490      box-shadow: none;
491      outline: 0;
492    }
493  </style>
494  <slot></slot>
495`;let MediaTextDisplay=class MediaTextDisplay extends eV.HTMLElement{constructor(){super(),media_text_display_privateAdd(this,i1,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(tl.content.cloneNode(!0)));let{style:b}=getOrInsertCSSRule(this.shadowRoot,":host");b.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`)}static get observedAttributes(){return[ek.MEDIA_CONTROLLER]}attributeChangedCallback(b,A,B){var G,W,K,et,ei;b===ek.MEDIA_CONTROLLER&&(A&&(null==(W=null==(G=media_text_display_privateGet(this,i1))?void 0:G.unassociateElement)||W.call(G,this),media_text_display_privateSet(this,i1,null)),B&&this.isConnected&&(media_text_display_privateSet(this,i1,null==(K=this.getRootNode())?void 0:K.getElementById(B)),null==(ei=null==(et=media_text_display_privateGet(this,i1))?void 0:et.associateElement)||ei.call(et,this)))}connectedCallback(){var b,A,B;let G=this.getAttribute(ek.MEDIA_CONTROLLER);G&&(media_text_display_privateSet(this,i1,null==(b=this.getRootNode())?void 0:b.getElementById(G)),null==(B=null==(A=media_text_display_privateGet(this,i1))?void 0:A.associateElement)||B.call(A,this))}disconnectedCallback(){var b,A;null==(A=null==(b=media_text_display_privateGet(this,i1))?void 0:b.unassociateElement)||A.call(b,this),media_text_display_privateSet(this,i1,null)}};i1=new WeakMap,eV.customElements.get("media-text-display")||eV.customElements.define("media-text-display",MediaTextDisplay);var media_duration_display_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_duration_display_privateGet=(b,A,B)=>(media_duration_display_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_duration_display_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_duration_display_privateSet=(b,A,B,G)=>(media_duration_display_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);i2=new WeakMap,eV.customElements.get("media-duration-display")||eV.customElements.define("media-duration-display",class extends MediaTextDisplay{constructor(){super(),media_duration_display_privateAdd(this,i2,void 0),media_duration_display_privateSet(this,i2,this.shadowRoot.querySelector("slot")),media_duration_display_privateGet(this,i2).textContent=formatTime(0)}static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_DURATION]}attributeChangedCallback(b,A,B){b===eS.MEDIA_DURATION&&(media_duration_display_privateGet(this,i2).textContent=formatTime(B)),super.attributeChangedCallback(b,A,B)}get mediaDuration(){return getNumericAttr(this,eS.MEDIA_DURATION)}set mediaDuration(b){setNumericAttr(this,eS.MEDIA_DURATION,b)}});var media_time_display_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_time_display_privateGet=(b,A,B)=>(media_time_display_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_time_display_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_time_display_privateSet=(b,A,B,G)=>(media_time_display_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);let td={REMAINING:"remaining",SHOW_DURATION:"showduration",NO_TOGGLE:"notoggle"},tu=[...Object.values(td),eS.MEDIA_CURRENT_TIME,eS.MEDIA_DURATION,eS.MEDIA_SEEKABLE],tc=["Enter"," "],tm="&nbsp;/&nbsp;",formatTimesLabel=(b,{timesSep:A=tm}={})=>{var B,G,W,K;let et=b.hasAttribute(td.REMAINING),ei=b.hasAttribute(td.SHOW_DURATION),ea=null!=(B=b.mediaCurrentTime)?B:0,[,er]=null!=(G=b.mediaSeekable)?G:[],en=null!=(K=null!=(W=b.mediaDuration)?W:er)?K:0,eo=et?formatTime(0-(en-ea)):formatTime(ea);return ei?`${eo}${A}${formatTime(en)}`:eo},updateAriaValueText=b=>{var A;let B=b.mediaCurrentTime,[,G]=null!=(A=b.mediaSeekable)?A:[],W=b.mediaDuration||G;if(null==B||null==W){b.setAttribute("aria-valuetext","video not loaded, unknown time.");return}let K=b.hasAttribute(td.REMAINING),et=b.hasAttribute(td.SHOW_DURATION),ei=K?formatAsTimePhrase(0-(W-B)):formatAsTimePhrase(B);if(!et){b.setAttribute("aria-valuetext",ei);return}let ea=formatAsTimePhrase(W),er=`${ei} of ${ea}`;b.setAttribute("aria-valuetext",er)};i3=new WeakMap,eV.customElements.get("media-time-display")||eV.customElements.define("media-time-display",class extends MediaTextDisplay{constructor(){super(),media_time_display_privateAdd(this,i3,void 0),media_time_display_privateSet(this,i3,this.shadowRoot.querySelector("slot")),media_time_display_privateGet(this,i3).innerHTML=`${formatTimesLabel(this)}`;let{style:b}=getOrInsertCSSRule(this.shadowRoot,":host(:hover:not([notoggle]))");b.setProperty("cursor","pointer"),b.setProperty("background","var(--media-control-hover-background, rgba(50 50 70 / .7))")}static get observedAttributes(){return[...super.observedAttributes,...tu,"disabled"]}connectedCallback(){this.hasAttribute("disabled")||this.enable(),this.setAttribute("role","progressbar"),this.setAttribute("aria-label",eO.PLAYBACK_TIME());let keyUpHandler=b=>{let{key:A}=b;if(!tc.includes(A)){this.removeEventListener("keyup",keyUpHandler);return}this.toggleTimeDisplay()};this.addEventListener("keydown",b=>{let{metaKey:A,altKey:B,key:G}=b;if(A||B||!tc.includes(G)){this.removeEventListener("keyup",keyUpHandler);return}this.addEventListener("keyup",keyUpHandler)}),this.addEventListener("click",this.toggleTimeDisplay),super.connectedCallback()}toggleTimeDisplay(){this.noToggle||(this.hasAttribute("remaining")?this.removeAttribute("remaining"):this.setAttribute("remaining",""))}disconnectedCallback(){this.disable(),super.disconnectedCallback()}attributeChangedCallback(b,A,B){tu.includes(b)?this.update():"disabled"===b&&B!==A&&(null==B?this.enable():this.disable()),super.attributeChangedCallback(b,A,B)}enable(){this.tabIndex=0}disable(){this.tabIndex=-1}get remaining(){return getBooleanAttr(this,td.REMAINING)}set remaining(b){setBooleanAttr(this,td.REMAINING,b)}get showDuration(){return getBooleanAttr(this,td.SHOW_DURATION)}set showDuration(b){setBooleanAttr(this,td.SHOW_DURATION,b)}get noToggle(){return getBooleanAttr(this,td.NO_TOGGLE)}set noToggle(b){setBooleanAttr(this,td.NO_TOGGLE,b)}get mediaDuration(){return getNumericAttr(this,eS.MEDIA_DURATION)}set mediaDuration(b){setNumericAttr(this,eS.MEDIA_DURATION,b)}get mediaCurrentTime(){return getNumericAttr(this,eS.MEDIA_CURRENT_TIME)}set mediaCurrentTime(b){setNumericAttr(this,eS.MEDIA_CURRENT_TIME,b)}get mediaSeekable(){let b=this.getAttribute(eS.MEDIA_SEEKABLE);if(b)return b.split(":").map(b=>+b)}set mediaSeekable(b){if(null==b){this.removeAttribute(eS.MEDIA_SEEKABLE);return}this.setAttribute(eS.MEDIA_SEEKABLE,b.join(":"))}update(){let b=formatTimesLabel(this);updateAriaValueText(this),b!==media_time_display_privateGet(this,i3).innerHTML&&(media_time_display_privateGet(this,i3).innerHTML=b)}});let th=`<svg aria-hidden="true" viewBox="0 0 26 24">
496  <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 
4960 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
497</svg>`,tp=`<svg aria-hidden="true" viewBox="0 0 26 24">
498  <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
499</svg>`,t_=eH.createElement("template");t_.innerHTML=`
500  <style>
501    :host([aria-checked="true"]) slot[name=off] {
502      display: none !important;
503    }
504
505    
506    :host(:not([aria-checked="true"])) slot[name=on] {
507      display: none !important;
508    }
509  </style>
510
511  <slot name="icon">
512    <slot name="on">${th}</slot>
513    <slot name="off">${tp}</slot>
514  </slot>
515`;let updateAriaChecked=b=>{b.setAttribute("aria-checked",areSubsOn(b))},getSubtitlesListAttr=(b,A)=>{let B=b.getAttribute(A);return B?parseTextTracksStr(B):[]},setSubtitlesListAttr=(b,A,B)=>{if(!(null==B?void 0:B.length)){b.removeAttribute(A);return}let G=stringifyTextTrackList(B),W=b.getAttribute(A);W!==G&&b.setAttribute(A,G)};eV.customElements.get("media-captions-button")||eV.customElements.define("media-captions-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_SUBTITLES_LIST,eS.MEDIA_SUBTITLES_SHOWING]}constructor(b={}){super({slotTemplate:t_,...b}),this._captionsReady=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","switch"),this.setAttribute("aria-label",eO.CLOSED_CAPTIONS()),updateAriaChecked(this)}attributeChangedCallback(b,A,B){super.attributeChangedCallback(b,A,B),b===eS.MEDIA_SUBTITLES_SHOWING&&updateAriaChecked(this)}get mediaSubtitlesList(){return getSubtitlesListAttr(this,eS.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(b){setSubtitlesListAttr(this,eS.MEDIA_SUBTITLES_LIST,b)}get mediaSubtitlesShowing(){return getSubtitlesListAttr(this,eS.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(b){setSubtitlesListAttr(this,eS.MEDIA_SUBTITLES_SHOWING,b)}handleClick(){this.dispatchEvent(new eV.CustomEvent(eA.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}});let tv={SEEK_OFFSET:"seekoffset"},tb=eH.createElement("template");tb.innerHTML=`
516  <slot name="icon"><svg aria-hidden="true" viewBox="0 0 20 24"><defs><style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style></defs><text class="text value" transform="translate(8.9 19.87)">30</text><path d="M10 6V3l5.61 4L10 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 10 6Z"/></svg></slot>
517`,eV.customElements.get("media-seek-forward-button")||eV.customElements.define("media-seek-forward-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_CURRENT_TIME,tv.SEEK_OFFSET]}constructor(b={}){super({slotTemplate:tb,...b})}
517connectedCallback(){this.seekOffset=getNumericAttr(this,tv.SEEK_OFFSET,30),super.connectedCallback()}attributeChangedCallback(b,A,B){b===tv.SEEK_OFFSET&&(this.seekOffset=getNumericAttr(this,tv.SEEK_OFFSET,30)),super.attributeChangedCallback(b,A,B)}get seekOffset(){return getNumericAttr(this,tv.SEEK_OFFSET,30)}set seekOffset(b){setNumericAttr(this,tv.SEEK_OFFSET,b),this.setAttribute("aria-label",eN.SEEK_FORWARD_N_SECS({seekOffset:this.seekOffset})),updateIconText(getSlotted(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return getNumericAttr(this,eS.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(b){setNumericAttr(this,eS.MEDIA_CURRENT_TIME,b)}handleClick(){let b=this.mediaCurrentTime+this.seekOffset,A=new eV.CustomEvent(eA.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:b});this.dispatchEvent(A)}});let tg=`<svg aria-hidden="true" viewBox="0 0 26 24">
518  <path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/>
519</svg>`,tE=`<svg aria-hidden="true" viewBox="0 0 26 24">
520  <path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/>
521</svg>`,tf=eH.createElement("template");tf.innerHTML=`
522  <style>
523  :host([${eS.MEDIA_IS_FULLSCREEN}]) slot:not([name=exit]):not([name=icon]) {
524    display: none !important;
525  }
526
527  
528  :host(:not([${eS.MEDIA_IS_FULLSCREEN}])) slot:not([name=enter]):not([name=icon]) {
529    display: none !important;
530  }
531  </style>
532
533  <slot name="icon">
534    <slot name="enter">${tg}</slot>
535    <slot name="exit">${tE}</slot>
536  </slot>
537`;let media_fullscreen_button_updateAriaLabel=b=>{let A=b.mediaIsFullscreen?eN.EXIT_FULLSCREEN():eN.ENTER_FULLSCREEN();b.setAttribute("aria-label",A)};eV.customElements.get("media-fullscreen-button")||eV.customElements.define("media-fullscreen-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_IS_FULLSCREEN,eS.MEDIA_FULLSCREEN_UNAVAILABLE]}constructor(b={}){super({slotTemplate:tf,...b})}connectedCallback(){media_fullscreen_button_updateAriaLabel(this),super.connectedCallback()}attributeChangedCallback(b,A,B){b===eS.MEDIA_IS_FULLSCREEN&&media_fullscreen_button_updateAriaLabel(this),super.attributeChangedCallback(b,A,B)}get mediaFullscreenUnavailable(){return getStringAttr(this,eS.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(b){setStringAttr(this,eS.MEDIA_FULLSCREEN_UNAVAILABLE,b)}get mediaIsFullscreen(){return getBooleanAttr(this,eS.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(b){setBooleanAttr(this,eS.MEDIA_IS_FULLSCREEN,b)}handleClick(){let b=this.mediaIsFullscreen?eA.MEDIA_EXIT_FULLSCREEN_REQUEST:eA.MEDIA_ENTER_FULLSCREEN_REQUEST;this.dispatchEvent(new eV.CustomEvent(b,{composed:!0,bubbles:!0}))}});let{MEDIA_TIME_IS_LIVE:ty,MEDIA_PAUSED:tA}=eS,{MEDIA_SEEK_TO_LIVE_REQUEST:tk,MEDIA_PLAY_REQUEST:tT}=eA,tw=eH.createElement("template");tw.innerHTML=`
538  <style>
539
540  slot[name=indicator] > *,
541  :host ::slotted([slot=indicator]) {
542    
543    min-width: auto;
544    fill: var(--media-live-button-icon-color, rgb(140, 140, 140));
545    color: var(--media-live-button-icon-color, rgb(140, 140, 140));
546  }
547
548  :host([${ty}]:not([${tA}])) slot[name=indicator] > *,
549  :host([${ty}]:not([${tA}])) ::slotted([slot=indicator]) {
550    fill: var(--media-live-button-indicator-color, rgb(255, 0, 0));
551    color: var(--media-live-button-indicator-color, rgb(255, 0, 0));
552  }
553
554  :host([${ty}]:not([${tA}])) {
555    cursor: not-allowed;
556  }
557
558  </style>
559
560  <slot name="indicator"><svg viewBox="0 0 6 12"><circle cx="3" cy="6" r="2"></circle></svg></slot>
561  
562  <slot name="spacer">&nbsp;</slot><slot name="text">LIVE</slot>
563`;let updateAriaAttributes=b=>{let A=b.mediaPaused||!b.mediaTimeIsLive,B=A?eN.SEEK_LIVE():eN.PLAYING_LIVE();b.setAttribute("aria-label",B),A?b.removeAttribute("aria-disabled"):b.setAttribute("aria-disabled","true")};eV.customElements.get("media-live-button")||eV.customElements.define("media-live-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,tA,ty]}constructor(b={}){super({slotTemplate:tw,...b})}connectedCallback(){updateAriaAttributes(this),super.connectedCallback()}attributeChangedCallback(b,A,B){super.attributeChangedCallback(b,A,B),updateAriaAttributes(this)}get mediaPaused(){return getBooleanAttr(this,eS.MEDIA_PAUSED)}set mediaPaused(b){setBooleanAttr(this,eS.MEDIA_PAUSED,b)}get mediaTimeIsLive(){return getBooleanAttr(this,eS.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(b){setBooleanAttr(this,eS.MEDIA_TIME_IS_LIVE,b)}handleClick(){(this.mediaPaused||!this.mediaTimeIsLive)&&(this.dispatchEvent(new eV.CustomEvent(tk,{composed:!0,bubbles:!0})),this.hasAttribute(tA)&&this.dispatchEvent(new eV.CustomEvent(tT,{composed:!0,bubbles:!0})))}});let{MEDIA_VOLUME_LEVEL:tS}=eS,tI=`<svg aria-hidden="true" viewBox="0 0 24 24">
564  <path d="M16.5 12A4.5 4.5 0 0 0 14 8v2.18l2.45 2.45a4.22 4.22 0 0 0 .05-.63Zm2.5 0a6.84 6.84 0 0 1-.54 2.64L20 16.15A8.8 8.8 0 0 0 21 12a9 9 0 0 0-7-8.77v2.06A7 7 0 0 1 19 12ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25A6.92 6.92 0 0 1 14 18.7v2.06A9 9 0 0 0 17.69 19l2 2.05L21 19.73l-9-9L4.27 3ZM12 4 9.91 6.09 12 8.18V4Z"/>
565</svg>`,tC=`<svg aria-hidden="true" viewBox="0 0 24 24">
566  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4Z"/>
567</svg>`,tR=`<svg aria-hidden="true" viewBox="0 0 24 24">
568  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4ZM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54Z"/>
569</svg>`,tL=eH.createElement("template");tL.innerHTML=`
570  <style>
571  
572  :host(:not([${tS}
572])) slot:not([name=high]):not([name=icon]), 
573  :host([${tS}=high]) slot:not([name=high]):not([name=icon]) {
574    display: none !important;
575  }
576
577  :host([${tS}=off]) slot:not([name=off]):not([name=icon]) {
578    display: none !important;
579  }
580
581  :host([${tS}=low]) slot:not([name=low]):not([name=icon]) {
582    display: none !important;
583  }
584
585  :host([${tS}=medium]) slot:not([name=medium]):not([name=icon]) {
586    display: none !important;
587  }
588  </style>
589
590  <slot name="icon">
591    <slot name="off">${tI}</slot>
592    <slot name="low">${tC}</slot>
593    <slot name="medium">${tC}</slot>
594    <slot name="high">${tR}</slot>
595  </slot>
596`;let media_mute_button_updateAriaLabel=b=>{let A="off"===b.mediaVolumeLevel,B=A?eN.UNMUTE():eN.MUTE();b.setAttribute("aria-label",B)};eV.customElements.get("media-mute-button")||eV.customElements.define("media-mute-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_VOLUME_LEVEL]}constructor(b={}){super({slotTemplate:tL,...b})}connectedCallback(){media_mute_button_updateAriaLabel(this),super.connectedCallback()}attributeChangedCallback(b,A,B){b===eS.MEDIA_VOLUME_LEVEL&&media_mute_button_updateAriaLabel(this),super.attributeChangedCallback(b,A,B)}get mediaVolumeLevel(){return getStringAttr(this,eS.MEDIA_VOLUME_LEVEL)}set mediaVolumeLevel(b){setStringAttr(this,eS.MEDIA_VOLUME_LEVEL,b)}handleClick(){let b="off"===this.mediaVolumeLevel?eA.MEDIA_UNMUTE_REQUEST:eA.MEDIA_MUTE_REQUEST;this.dispatchEvent(new eV.CustomEvent(b,{composed:!0,bubbles:!0}))}});let tM=`<svg aria-hidden="true" viewBox="0 0 28 24">
597  <path d="M24 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Zm-1 16H5V5h18v14Zm-3-8h-7v5h7v-5Z"/>
598</svg>`,tx=eH.createElement("template");tx.innerHTML=`
599  <style>
600  :host([${eS.MEDIA_IS_PIP}]) slot:not([name=exit]):not([name=icon]) {
601    display: none !important;
602  }
603
604  
605  :host(:not([${eS.MEDIA_IS_PIP}])) slot:not([name=enter]):not([name=icon]) {
606    display: none !important;
607  }
608  </style>
609
610  <slot name="icon">
611    <slot name="enter">${tM}</slot>
612    <slot name="exit">${tM}</slot>
613  </slot>
614`;let media_pip_button_updateAriaLabel=b=>{let A=b.mediaIsPip?eN.EXIT_PIP():eN.ENTER_PIP();b.setAttribute("aria-label",A)};eV.customElements.get("media-pip-button")||eV.customElements.define("media-pip-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_IS_PIP,eS.MEDIA_PIP_UNAVAILABLE]}constructor(b={}){super({slotTemplate:tx,...b})}connectedCallback(){media_pip_button_updateAriaLabel(this),super.connectedCallback()}attributeChangedCallback(b,A,B){b===eS.MEDIA_IS_PIP&&media_pip_button_updateAriaLabel(this),super.attributeChangedCallback(b,A,B)}get mediaPipUnavailable(){return getStringAttr(this,eS.MEDIA_PIP_UNAVAILABLE)}set mediaPipUnavailable(b){setStringAttr(this,eS.MEDIA_PIP_UNAVAILABLE,b)}get mediaIsPip(){return getBooleanAttr(this,eS.MEDIA_IS_PIP)}set mediaIsPip(b){setBooleanAttr(this,eS.MEDIA_IS_PIP,b)}handleClick(){let b=this.mediaIsPip?eA.MEDIA_EXIT_PIP_REQUEST:eA.MEDIA_ENTER_PIP_REQUEST;this.dispatchEvent(new eV.CustomEvent(b,{composed:!0,bubbles:!0}))}});let tD=`<svg aria-hidden="true" viewBox="0 0 24 24">
615  <path d="m6 21 15-9L6 3v18Z"/>
616</svg>`,tO=`<svg aria-hidden="true" viewBox="0 0 24 24">
617  <path d="M6 20h4V4H6v16Zm8-16v16h4V4h-4Z"/>
618</svg>`,tN=eH.createElement("template");tN.innerHTML=`
619  <style>
620  :host([${eS.MEDIA_PAUSED}]) slot[name=pause] {
621    display: none !important;
622  }
623
624  :host(:not([${eS.MEDIA_PAUSED}])) slot[name=play] {
625    display: none !important;
626  }
627  </style>
628
629  <slot name="icon">
630    <slot name="play">${tD}</slot>
631    <slot name="pause">${tO}</slot>
632  </slot>
633`;let media_play_button_updateAriaLabel=b=>{let A=b.mediaPaused?eN.PLAY():eN.PAUSE();b.setAttribute("aria-label",A)};eV.customElements.get("media-play-button")||eV.customElements.define("media-play-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_PAUSED,eS.MEDIA_ENDED]}constructor(b={}){super({slotTemplate:tN,...b})}connectedCallback(){media_play_button_updateAriaLabel(this),super.connectedCallback()}attributeChangedCallback(b,A,B){b===eS.MEDIA_PAUSED&&media_play_button_updateAriaLabel(this),super.attributeChangedCallback(b,A,B)}get mediaPaused(){return getBooleanAttr(this,eS.MEDIA_PAUSED)}set mediaPaused(b){setBooleanAttr(this,eS.MEDIA_PAUSED,b)}handleClick(){let b=this.mediaPaused?eA.MEDIA_PLAY_REQUEST:eA.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new eV.CustomEvent(b,{composed:!0,bubbles:!0}))}});var media_playback_rate_button_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_playback_rate_button_privateGet=(b,A,B)=>(media_playback_rate_button_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_playback_rate_button_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)};let tP={RATES:"rates"},tU=[1,1.2,1.5,1.7,2],tB=eH.createElement("template");tB.innerHTML=`
634  <style>
635    :host {
636      min-width: 5ch;
637      padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
638    }
639  </style>
640  <slot name="icon"></slot>
641`,i9=new WeakMap,eV.customElements.get("media-playback-rate-button")||eV.customElements.define("media-playback-rate-button",class extends MediaChromeButton{constructor(b={}){super({slotTemplate:tB,...b}),media_playback_rate_button_privateAdd(this,i9,new AttributeTokenList(this,tP.RATES,{defaultValue:tU})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML="1x"}static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_PLAYBACK_RATE,tP.RATES]}attributeChangedCallback(b,A,B){if(super.attributeChangedCallback(b,A,B),b===tP.RATES&&(media_playback_rate_button_privateGet(this,i9).value=B),b===eS.MEDIA_PLAYBACK_RATE){let b=B?+B:Number.NaN,A=Number.isNaN(b)?1:b;this.container.innerHTML=`${A}x`,this.setAttribute("aria-label",eO.PLAYBACK_RATE({playbackRate:A}))}}get rates(){return media_playback_rate_button_privateGet(this,i9)}set rates(b){b?Array.isArray(b)&&(media_playback_rate_button_privateGet(this,i9).value=b.join(" ")):media_playback_rate_button_privateGet(this,i9).value=""}get mediaPlaybackRate(){return getNumericAttr(this,eS.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(b){setNumericAttr(this,eS.MEDIA_PLAYBACK_RATE,b)}handleClick(){var b,A;let B=Array.from(this.rates.values(),b=>+b).sort((b,A)=>b-A),G=null!=(A=null!=(b=B.find(b=>b>this.mediaPlaybackRate))?b:B[0])?A:1,W=new eV.CustomEvent(eA.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:G});this.dispatchEvent(W)}});let tG={PLACEHOLDER_SRC:"placeholdersrc",SRC:"src"},tW=eH.createElement("template");tW.innerHTML=`
642  <style>
643    :host {
644      pointer-events: none;
645      display: var(--media-poster-image-display, inline-block);
646      box-sizing: border-box;
647    }
648
649    img {
650      max-width: 100%;
651      max-height: 100%;
652      min-width: 100%;
653      min-height: 100%;
654      background-repeat: no-repeat;
655      background-position: var(--media-poster-image-background-position, var(--media-object-position, center));
656      background-size: var(--media-poster-image-background-size, var(--media-object-fit, contain));
657      object-fit: var(--media-object-fit, contain);
658      object-position: var(--media-object-position, center);
659    }
660  </style>
661
662  <img part="poster img" aria-hidden="true" id="image"/>
663`;
663let unsetBackgroundImage=b=>{b.style.removeProperty("background-image")},setBackgroundImage=(b,A)=>{b.style["background-image"]=`url('${A}')`};let MediaPosterImage=class MediaPosterImage extends eV.HTMLElement{static get observedAttributes(){return[tG.PLACEHOLDER_SRC,tG.SRC]}constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(tW.content.cloneNode(!0))),this.image=this.shadowRoot.querySelector("#image")}attributeChangedCallback(b,A,B){b===tG.SRC&&(null==B?this.image.removeAttribute(tG.SRC):this.image.setAttribute(tG.SRC,B)),b===tG.PLACEHOLDER_SRC&&(null==B?unsetBackgroundImage(this.image):setBackgroundImage(this.image,B))}get placeholderSrc(){return getStringAttr(this,tG.PLACEHOLDER_SRC)}set placeholderSrc(b){setStringAttr(this,tG.SRC,b)}get src(){return getStringAttr(this,tG.SRC)}set src(b){setStringAttr(this,tG.SRC,b)}};eV.customElements.get("media-poster-image")||eV.customElements.define("media-poster-image",MediaPosterImage);let tV={SEEK_OFFSET:"seekoffset"},tH=eH.createElement("template");tH.innerHTML=`
664  <slot name="icon"><svg aria-hidden="true" viewBox="0 0 20 24"><defs><style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style></defs><text class="text value" transform="translate(2.18 19.87)">30</text><path d="M10 6V3L4.37 7 10 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 10 6Z"/></svg></slot>
665`,eV.customElements.get("media-seek-backward-button")||eV.customElements.define("media-seek-backward-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_CURRENT_TIME,tV.SEEK_OFFSET]}constructor(b={}){super({slotTemplate:tH,...b})}connectedCallback(){this.seekOffset=getNumericAttr(this,tV.SEEK_OFFSET,30),super.connectedCallback()}attributeChangedCallback(b,A,B){b===tV.SEEK_OFFSET&&(this.seekOffset=getNumericAttr(this,tV.SEEK_OFFSET,30)),super.attributeChangedCallback(b,A,B)}get seekOffset(){return getNumericAttr(this,tV.SEEK_OFFSET,30)}set seekOffset(b){setNumericAttr(this,tV.SEEK_OFFSET,b),this.setAttribute("aria-label",eN.SEEK_BACK_N_SECS({seekOffset:this.seekOffset})),updateIconText(getSlotted(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return getNumericAttr(this,eS.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(b){setNumericAttr(this,eS.MEDIA_CURRENT_TIME,b)}handleClick(){let b=Math.max(this.mediaCurrentTime-this.seekOffset,0),A=new eV.CustomEvent(eA.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:b});this.dispatchEvent(A)}});var media_preview_time_display_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_preview_time_display_privateGet=(b,A,B)=>(media_preview_time_display_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_preview_time_display_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_preview_time_display_privateSet=(b,A,B,G)=>(media_preview_time_display_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);i5=new WeakMap,eV.customElements.get("media-preview-time-display")||eV.customElements.define("media-preview-time-display",class extends MediaTextDisplay{constructor(){super(),media_preview_time_display_privateAdd(this,i5,void 0),media_preview_time_display_privateSet(this,i5,this.shadowRoot.querySelector("slot")),media_preview_time_display_privateGet(this,i5).textContent=formatTime(0)}static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_PREVIEW_TIME]}attributeChangedCallback(b,A,B){b===eS.MEDIA_PREVIEW_TIME&&null!=B&&(media_preview_time_display_privateGet(this,i5).textContent=formatTime(B)),super.attributeChangedCallback(b,A,B)}get mediaPreviewTime(){return getNumericAttr(this,eS.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(b){setNumericAttr(this,eS.MEDIA_PREVIEW_TIME,b)}});var media_preview_thumbnail_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_preview_thumbnail_privateGet=(b,A,B)=>(media_preview_thumbnail_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_preview_thumbnail_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_preview_thumbnail_privateSet=(b,A,B,G)=>(media_preview_thumbnail_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);let tq=eH.createElement("template");tq.innerHTML=`
666  <style>
667    :host {
668      box-sizing: border-box;
669      display: var(--media-control-display, var(--media-preview-thumbn
669ail-display, inline-block));
670      overflow: hidden;
671    }
672
673    img {
674      display: none;
675      position: relative;
676    }
677  </style>
678  <img crossorigin loading="eager" decoding="async">
679`;let MediaPreviewThumbnail=class MediaPreviewThumbnail extends eV.HTMLElement{constructor(){super(),media_preview_thumbnail_privateAdd(this,i4,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(tq.content.cloneNode(!0)))}static get observedAttributes(){return[ek.MEDIA_CONTROLLER,eS.MEDIA_PREVIEW_IMAGE,eS.MEDIA_PREVIEW_COORDS]}connectedCallback(){var b,A,B;let G=this.getAttribute(ek.MEDIA_CONTROLLER);G&&(media_preview_thumbnail_privateSet(this,i4,null==(b=this.getRootNode())?void 0:b.getElementById(G)),null==(B=null==(A=media_preview_thumbnail_privateGet(this,i4))?void 0:A.associateElement)||B.call(A,this))}disconnectedCallback(){var b,A;null==(A=null==(b=media_preview_thumbnail_privateGet(this,i4))?void 0:b.unassociateElement)||A.call(b,this),media_preview_thumbnail_privateSet(this,i4,null)}attributeChangedCallback(b,A,B){var G,W,K,et,ei;[eS.MEDIA_PREVIEW_IMAGE,eS.MEDIA_PREVIEW_COORDS].includes(b)&&this.update(),b===ek.MEDIA_CONTROLLER&&(A&&(null==(W=null==(G=media_preview_thumbnail_privateGet(this,i4))?void 0:G.unassociateElement)||W.call(G,this),media_preview_thumbnail_privateSet(this,i4,null)),B&&this.isConnected&&(media_preview_thumbnail_privateSet(this,i4,null==(K=this.getRootNode())?void 0:K.getElementById(B)),null==(ei=null==(et=media_preview_thumbnail_privateGet(this,i4))?void 0:et.associateElement)||ei.call(et,this)))}get mediaPreviewImage(){return getStringAttr(this,eS.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(b){setStringAttr(this,eS.MEDIA_PREVIEW_IMAGE,b)}get mediaPreviewCoords(){let b=this.getAttribute(eS.MEDIA_PREVIEW_COORDS);if(b)return b.split(/\s+/).map(b=>+b)}set mediaPreviewCoords(b){if(!b){this.removeAttribute(eS.MEDIA_PREVIEW_COORDS);return}this.setAttribute(eS.MEDIA_PREVIEW_COORDS,b.join(" "))}update(){let b=this.mediaPreviewCoords,A=this.mediaPreviewImage;if(!(b&&A))return;let[B,G,W,K]=b,et=A.split("#")[0],ei=getComputedStyle(this),{maxWidth:ea,maxHeight:er,minWidth:en,minHeight:eo}=ei,es=Math.min(parseInt(ea)/W,parseInt(er)/K),el=Math.max(parseInt(en)/W,parseInt(eo)/K),ed=es<1,eu=ed?es:el>1?el:1,{style:ec}=getOrInsertCSSRule(this.shadowRoot,":host"),em=getOrInsertCSSRule(this.shadowRoot,"img").style,eh=this.shadowRoot.querySelector("img"),ep=ed?"min":"max";ec.setProperty(`${ep}-width`,"initial","important"),ec.setProperty(`${ep}-height`,"initial","important"),ec.width=`${W*eu}px`,ec.height=`${K*eu}px`;let resize=()=>{em.width=`${this.imgWidth*eu}px`,em.height=`${this.imgHeight*eu}px`,em.display="block"};eh.src!==et&&(eh.onload=()=>{this.imgWidth=eh.naturalWidth,this.imgHeight=eh.naturalHeight,resize()},eh.src=et,resize()),resize(),em.transform=`translate(-${B*eu}px, -${G*eu}px)`}};i4=new WeakMap,eV.customElements.get("media-preview-thumbnail")||eV.customElements.define("media-preview-thumbnail",MediaPreviewThumbnail);var range_animation_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},range_animation_privateGet=(b,A,B)=>(range_animation_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),range_animation_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},range_animation_privateSet=(b,A,B,G)=>(range_animation_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),__privateWrapper=(b,A,B,G)=>({set _(value){range_animation_privateSet(b,A,value,B)},get _(){return range_animation_privateGet(b,A,G)}});let RangeAnimation=class RangeAnimation{constructor(b,A,B){range_animation_privateAdd(this,i8,void 0),range_animation_privateAdd(this,i6,void 0),range_animation_privateAdd(this,i7,void 0),range_animation_privateAdd(this,ae,void 0),range_animation_privateAdd(this,at,void 0),range_animation_privateAdd(this,aa,void 0),range_animation_privateAdd(this,ar,void 0),range_animation_privateAdd(this,an,void 0),range_animation_privateAdd(this,ao,0),range_animation_privateAdd(this,as,(b=performance.now())=>{range_animation_privateSet(this,ao,requestAnimationFrame(range_animation_privateGet(this,as))),range_animation_privateSet(this,ae,performance.now()-range_animation_privateGet(this,i7));let A=1e3/this.fps;if(range_animation_privateGet(this,ae)>A){range_animation_privateSet(this,i7,b-range_animation_privateGet(this,ae)%A);let B=1e3/((b-range_animation_privateGet(this,i6))/++__privateWrapper(this,at)._),G=(b-range_animation_privateGet(this,aa))/1e3/this.duration,W=range_animation_privateGet(this,ar)+G*this.playbackRate,K=W-range_animation_privateGet(this,i8).valueAsNumber;K>0?range_animation_privateSet(this,an,this.playbackRate/this.duration/B):(range_animation_privateSet(this,an,.995*range_animation_privateGet(this,an)),W=range_animation_privateGet(this,i8).valueAsNumber+range_animation_privateGet(this,an)),this.callback(W)}}),range_animation_privateSet(this,i8,b),this.callback=A,this.fps=B}start(){0===range_animation_privateGet(this,ao)&&(range_animation_privateSet(this,i7,performance.now()),range_animation_privateSet(this,i6,range_animation_privateGet(this,i7)),range_animation_privateSet(this,at,0),range_animation_privateGet(this,as).call(this))}stop(){0!==range_animation_privateGet(this,ao)&&(cancelAnimationFrame(range_animation_privateGet(this,ao)),range_animation_privateSet(this,ao,0))}
679update({start:b,duration:A,playbackRate:B}){let G=b-range_animation_privateGet(this,i8).valueAsNumber;(G>0||G<-.03)&&this.callback(b),range_animation_privateSet(this,ar,b),range_animation_privateSet(this,aa,performance.now()),this.duration=A,this.playbackRate=B}};i8=new WeakMap,i6=new WeakMap,i7=new WeakMap,ae=new WeakMap,at=new WeakMap,aa=new WeakMap,ar=new WeakMap,an=new WeakMap,ao=new WeakMap,as=new WeakMap;var media_time_range_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_time_range_privateGet=(b,A,B)=>(media_time_range_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_time_range_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_time_range_privateSet=(b,A,B,G)=>(media_time_range_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),media_time_range_privateMethod=(b,A,B)=>(media_time_range_accessCheck(b,A,"access private method"),B);let media_time_range_updateAriaValueText=b=>{let A=b.range,B=formatAsTimePhrase(+calcTimeFromRangeValue(b)),G=formatAsTimePhrase(+b.mediaSeekableEnd),W=B&&G?`${B} of ${G}`:"video not loaded, unknown time.";A.setAttribute("aria-valuetext",W)},tF=eH.createElement("template");tF.innerHTML=`
680  <style>
681    :host {
682      --media-preview-border-radius: 3px;
683      --media-box-padding-left: 10px;
684      --media-box-padding-right: 10px;
685    }
686
687    #highlight {
688      background: var(--media-time-range-buffered-color, rgb(255 255 255 / .4));
689    }
690
691    #preview-rail,
692    #current-rail {
693      
694      width: 1%;
695      position: absolute;
696      left: 0;
697      bottom: 100%;
698      pointer-events: none;
699    }
700
701    [part~="box"] {
702      
703      position: absolute;
704      bottom: 100%;
705      display: flex;
706      flex-direction: column;
707      align-items: center;
708      transform: translateX(-50%);
709    }
710
711    [part~="preview-box"] {
712      transition-property: var(--media-preview-transition-property, visibility, opacity);
713      transition-duration: var(--media-preview-transition-duration-out, .25s);
714      transition-delay: var(--media-preview-transition-delay-out, 0s);
715      visibility: hidden;
716      opacity: 0;
717    }
718
719    :host(:is([${eS.MEDIA_PREVIEW_IMAGE}], [${eS.MEDIA_PREVIEW_TIME}])[dragging]) [part~="preview-box"] {
720      transition-duration: var(--media-preview-transition-duration-in, .5s);
721      transition-delay: var(--media-preview-transition-delay-in, .25s);
722      visibility: visible;
723      opacity: 1;
724    }
725
726    @media (hover: hover) {
727      :host(:is([${eS.MEDIA_PREVIEW_IMAGE}], [${eS.MEDIA_PREVIEW_TIME}]):hover) [part~="preview-box"] {
728        transition-duration: var(--media-preview-transition-duration-in, .5s);
729        transition-delay: var(--media-preview-transition-delay-in, .25s);
730        visibility: visible;
731        opacity: 1;
732      }
733    }
734
735    media-preview-thumbnail,
736    ::slotted(media-preview-thumbnail) {
737      visibility: hidden;
738      
739      transition: visibility 0s .25s;
740      transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
741      background: var(--media-preview-thumbnail-background, var(--media-preview-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)))));
742      box-shadow: var(--media-preview-thumbnail-box-shadow, 0 0 4px rgb(0 0 0 / .2));
743      max-width: var(--media-preview-thumbnail-max-width, 180px);
744      max-height: var(--media-preview-thumbnail-max-height, 160px);
745      min-width: var(--media-preview-thumbnail-min-width, 120px);
746      min-height: var(--media-preview-thumbnail-min-height, 80px);
747      border: var(--media-preview-thumbnail-border);
748      border-radius: var(--media-preview-thumbnail-border-radius,
749        var(--media-preview-border-radius) var(--media-preview-border-radius) 0 0);
750    }
751
752    :host([${eS.MEDIA_PREVIEW_IMAGE}][dragging]) media-preview-thumbnail,
753    :host([${eS.MEDIA_PREVIEW_IMAGE}][dragging]) ::slotted(media-preview-thumbnail) {
754      transition-delay: var(--media-preview-transition-delay-in, .25s);
755      visibility: visible;
756    }
757
758    @media (hover: hover) {
759      :host([${eS.MEDIA_PREVIEW_IMAGE}
759]:hover) media-preview-thumbnail,
760      :host([${eS.MEDIA_PREVIEW_IMAGE}]:hover) ::slotted(media-preview-thumbnail) {
761        transition-delay: var(--media-preview-transition-delay-in, .25s);
762        visibility: visible;
763      }
764
765      :host([${eS.MEDIA_PREVIEW_TIME}]:hover) {
766        --media-time-range-hover-display: block;
767      }
768    }
769
770    media-preview-time-display,
771    ::slotted(media-preview-time-display) {
772      min-width: 0;
773      
774      transition: min-width 0s, border-radius 0s;
775      transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
776      background: var(--media-preview-time-background, var(--media-preview-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)))));
777      border-radius: var(--media-preview-time-border-radius,
778        var(--media-preview-border-radius) var(--media-preview-border-radius)
779        var(--media-preview-border-radius) var(--media-preview-border-radius));
780      padding: var(--media-preview-time-padding, 1px 10px 0);
781      margin: var(--media-preview-time-margin, 0 0 10px);
782      text-shadow: var(--media-preview-time-text-shadow, 0 0 4px rgb(0 0 0 / .75));
783    }
784
785    :host([${eS.MEDIA_PREVIEW_IMAGE}]) media-preview-time-display,
786    :host([${eS.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-time-display) {
787      transition-delay: var(--media-preview-transition-delay-in, .25s);
788      min-width: 100%;
789      border-radius: var(--media-preview-time-border-radius,
790        0 0 var(--media-preview-border-radius) var(--media-preview-border-radius));
791    }
792  </style>
793  <div id="preview-rail">
794    <slot name="preview" part="box preview-box">
795      <media-preview-thumbnail></media-preview-thumbnail>
796      <media-preview-time-display></media-preview-time-display>
797    </slot>
798  </div>
799  <div id="current-rail">
800    <slot name="current" part="box current-box">
801      
802    </slot>
803  </div>
804`;let calcRangeValueFromTime=(b,A=b.mediaCurrentTime)=>{if(Number.isNaN(b.mediaSeekableEnd))return 0;let B=(A-b.mediaSeekableStart)/(b.mediaSeekableEnd-b.mediaSeekableStart);return Math.max(0,Math.min(B,1))},calcTimeFromRangeValue=(b,A=b.range.valueAsNumber)=>Number.isNaN(b.mediaSeekableEnd)?0:A*(b.mediaSeekableEnd-b.mediaSeekableStart)+b.mediaSeekableStart;al=new WeakMap,ad=new WeakMap,au=new WeakMap,ac=new WeakMap,am=new WeakMap,ah=new WeakMap,ap=new WeakMap,a_=new WeakSet,av=function(){media_time_range_privateMethod(this,ab,ag).call(this)?media_time_range_privateGet(this,ad).start():media_time_range_privateGet(this,ad).stop()},ab=new WeakSet,ag=function(){return this.isConnected&&function(b,A=3){if(b.checkVisibility)return b.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});let B=b;for(;B&&A>0;){let b=getComputedStyle(B);if("0"===b.opacity||"hidden"===b.visibility||"none"===b.display)return!1;B=B.parentElement,A--}return!0}(this)&&!this.mediaPaused&&!this.mediaLoading&&!this.mediaEnded},aE=new WeakMap,af=new WeakSet,ay=function(b,A){var B;let G=`${1e4*A}%`,W=b.offsetWidth;if(!W)return G;let K=null!=(B=this.getAttribute("bounds")?closestComposedNode(this,`#${this.getAttribute("bounds")}`):this.parentElement)?B:this,et=this.range.getBoundingClientRect(),ei=K.getBoundingClientRect(),ea=(media_time_range_privateGet(this,ah)-(et.left-ei.left-W/2))/et.width*100,er=(ei.right-et.left-W/2-media_time_range_privateGet(this,ap))/et.width*100;return Number.isNaN(ea)||(G=`max(${100*ea}%, ${G})`),Number.isNaN(er)||(G=`min(${G}, ${100*er}%)`),G},aA=new WeakSet,ak=function(b){let A=[...media_time_range_privateGet(this,au)].some(A=>b.composedPath().includes(A));if(!this.dragging&&(A||!b.composedPath().includes(this))){media_time_range_privateMethod(this,aT,aw).call(this,null);return}let B=this.mediaDuration;if(!B)return;let G=this.range.getBoundingClientRect(),W=(b.clientX-G.left)/G.width;W=Math.max(0,Math.min(1,W));let K=media_time_range_privateMethod(this,af,ay).call(this,media_time_range_privateGet(this,ac),W),{style:et}=getOrInsertCSSRule(this.shadowRoot,"#preview-rail");et.transform=`translateX(${K})`,media_time_range_privateMethod(this,aT,aw).call(this,W*B)},aT=new WeakSet,aw=function(b){this.dispatchEvent(new eV.CustomEvent(eA.MEDIA_PREVIEW_REQUEST,{composed:!0,bubbles:!0,detail:b}))},aS=new WeakSet,aI=function(){media_time_range_privateGet(this,ad).stop();let b=calcTimeFromRangeValue(this);this.dispatchEvent(new eV.CustomEvent(eA.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:b}))},eV.customElements.get("media-time-range")||eV.customElements.define("media-time-range",class extends MediaChromeRange{constructor(){super(),media_time_range_privateAdd(this,a_),media_time_range_privateAdd(this,ab),media_time_range_privateAdd(this,af),media_time_range_privateAdd(this,aA),media_time_range_privateAdd(this,aT),media_time_range_privateAdd(this,aS),media_time_range_privateAdd(this,al,void 0),media_time_range_privateAdd(this,ad,void 0),media_time_range_privateAdd(this,au,void 0),media_time_range_privateAdd(this,ac,void 0),media_time_range_privateAdd(this,am,void 0),media_time_range_privateAdd(this,ah,void 0),media_time_range_privateAdd(this,ap,void 0),media_time_range_privateAdd(this,aE,b=>{this.dragging||(this.range.valueAsNumber=b,this.updateBar())}),this.container.appendChild(tF.content.cloneNode(!0)),media_time_range_privateSet(this,au,this.shadowRoot.querySelectorAll('[part~="box"]')),media_time_range_privateSet(this,ac,this.shadowRoot.querySelector('[part~="preview-box"]')),media_time_range_privateSet(this,am,this.shadowRoot.querySelector('[part~="current-box"]'));let b=getComputedStyle(this);media_time_range_privateSet(this,ah,parseInt(b.getPropertyValue("--media-box-padding-left"))),media_time_range_privateSet(this,ap,parseInt(b.getPropertyValue("--media-box-padding-right"))),media_time_range_privateSet(this,ad,new RangeAnimation(this.range,media_time_range_privateGet(this,aE),60))}static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_PAUSED,eS.MEDIA_DURATION,eS.MEDIA_SEEKABLE,eS.MEDIA_CURRENT_TIME,eS.MEDIA_PREVIEW_IMAGE,eS.MEDIA_PREVIEW_TIME,eS.MEDIA_BUFFERED,eS.MEDIA_PLAYBACK_RATE,eS.MEDIA_LOADING,eS.MEDIA_ENDED]}connectedCallback(){var b;super.connectedCallback(),this.range.setAttribute("aria-label",eO.SEEK()),media_time_range_privateMethod(this,a_,av).call(this),media_time_range_privateSet(this,al,this.getRootNode()),null==(b=media_time_range_privateGet(this,al))||b.addEventListener("transitionstart",this)}disconnectedCallback(){var b;super.disconnectedCallback(),media_time_range_privateMethod(this,a_,av).call(this),null==(b=media_time_range_privateGet(this,al))||b.removeEventListener("transitionstart",this),media_time_range_privateSet(this,al,null)}attributeChangedCallback(b,A,B){super.attributeChangedCallback(b,A,B),A!=B&&(b===eS.MEDIA_CURRENT_TIME||b===eS.MEDIA_PAUSED||b===eS.MEDIA_ENDED||b===eS.MEDIA_LOADING||b===eS.MEDIA_DURATION||b===eS.MEDIA_SEEKABLE?(media_time_range_privateGet(this,ad).update({start:calcRangeValueFromTime(this),duration:this.mediaSeekableEnd-this.mediaSeekableStart,playbackRate:this.mediaPlaybackRate}),media_time_range_privateMethod(this,a_,av).call(this),media_time_range_updateAriaValueText(this)):b===eS.MEDIA_BUFFERED&&this.updateBufferedBar())}get mediaPaused(){return getBooleanAttr(this,eS.MEDIA_PAUSED)}set mediaPaused(b){setBooleanAttr(this,eS.MEDIA_PAUSED,b)}get mediaLoading(){return getBooleanAttr(this,eS.MEDIA_LOADING)}set mediaLoading(b){setBooleanAttr(this,eS.MEDIA_LOADING,b)}get mediaDuration(){return getNumericAttr(this,eS.MEDIA_DURATION)}set mediaDuration(b){setNumericAttr(this,eS.MEDIA_DURATION,b)}get mediaCurrentTime(){return getNumericAttr(this,eS.MEDIA_CURRENT_TIME)}set mediaCurrentTime(b){setNumericAttr(this,eS.MEDIA_CURRENT_TIME,b)}get mediaPlaybackRate(){return getNumericAttr(this,eS.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(b){setNumericAttr(this,eS.MEDIA_PLAYBACK_RATE,b)}get mediaBuffered(){let b=this.getAttribute(eS.MEDIA_BUFFERED);return b?b.split(" ").map(b=>b.split(":").map(b=>+b)):[]}set mediaBuffered(b){if(!b){this.removeAttribute(eS.MEDIA_BUFFERED);return}let A=b.map(b=>b.join(":")).join(" ");this.setAttribute(eS.MEDIA_BUFFERED,A)}get mediaSeekable(){let b=this.getAttribute(eS.MEDIA_SEEKABLE);if(b)return b.split(":").map(b=>+b)}set mediaSeekable(b){if(null==b){this.removeAttribute(eS.MEDIA_SEEKABLE);return}this.setAttribute(eS.MEDIA_SEEKABLE,b.join(":"))}get mediaSeekableEnd(){var b;let[,A=this.mediaDuration]=null!=(b=this.mediaSeekable)?b:[];return A}get mediaSeekableStart(){var b;let[A=0]=null!=(b=this.mediaSeekable)?b:[];return A}get mediaPreviewImage(){return getStringAttr(this,eS.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(b){setStringAttr(this,eS.MEDIA_PREVIEW_IMAGE,b)}get mediaPreviewTime(){return getNumericAttr(this,eS.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(b){setNumericAttr(this,eS.MEDIA_PREVIEW_TIME,b)}get mediaEnded(){return getBooleanAttr(this,eS.MEDIA_ENDED)}set mediaEnded(b){setBooleanAttr(this,eS.MEDIA_ENDED,b)}updateBar(){super.updateBar(),this.updateBufferedBar(),this.updateCurrentBox()}updateBufferedBar(){var b;let A;let B=this.mediaBuffered;if(!B.length)return;if(this.mediaEnded)A=1;else{let G=this.mediaCurrentTime,[,W=this.mediaSeekableStart]=null!=(b=B.find(([b,A])=>b<=G&&G<=A))?b:[];A=calcRangeValueFromTime(this,W)}let{style:G}=getOrInsertCSSRule(this.shadowRoot,"#highlight");G.setProperty("width",`${100*A}%`)}updateCurrentBox(){if(!media_time_range_privateGet(this,am).assignedElements().length)return;let b=media_time_range_privateMethod(this,af,ay).call(this,media_time_range_privateGet(this,am),this.range.valueAsNumber),{style:A}=getOrInsertCSSRule(this.shadowRoot,"#current-rail");A.transform=`translateX(${b})`}handleEvent(b){switch(super.handleEvent(b),b.type){case"input":media_time_range_privateMethod(this,aS,aI).call(this);break;case"pointermove":media_time_range_privateMethod(this,aA,ak).call(this,b);break;case"pointerup":case"pointerleave":media_time_range_privateMethod(this,aT,aw).call(this,null);break;case"transitionstart":containsComposedNode(b.target,this)&&setTimeout(()=>
804media_time_range_privateMethod(this,a_,av).call(this),0)}}});var media_loading_indicator_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_loading_indicator_privateGet=(b,A,B)=>(media_loading_indicator_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_loading_indicator_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_loading_indicator_privateSet=(b,A,B,G)=>(media_loading_indicator_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);let tj={LOADING_DELAY:"loadingdelay"},t$=eH.createElement("template"),tK=`
805<svg aria-hidden="true" viewBox="0 0 100 100">
806  <path d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
807    <animateTransform
808       attributeName="transform"
809       attributeType="XML"
810       type="rotate"
811       dur="1s"
812       from="0 50 50"
813       to="360 50 50"
814       repeatCount="indefinite" />
815  </path>
816</svg>
817`;t$.innerHTML=`
818<style>
819:host {
820  display: var(--media-control-display, var(--media-loading-indicator-display, inline-block));
821  vertical-align: middle;
822  box-sizing: border-box;
823  --_loading-indicator-delay: var(--media-loading-indicator-transition-delay, 500ms);
824}
825
826#status {
827  color: rgba(0,0,0,0);
828  width: 0px;
829  height: 0px;
830}
831
832:host slot[name=icon] > *,
833:host ::slotted([slot=icon]) {
834  opacity: var(--media-loading-indicator-opacity, 0);
835  transition: opacity 0.15s;
836}
837
838:host([${eS.MEDIA_LOADING}]:not([${eS.MEDIA_PAUSED}])) slot[name=icon] > *,
839:host([${eS.MEDIA_LOADING}]:not([${eS.MEDIA_PAUSED}])) ::slotted([slot=icon]) {
840  opacity: var(--media-loading-indicator-opacity, 1);
841  transition: opacity 0.15s var(--_loading-indicator-delay);
842}
843
844:host #status {
845  visibility: var(--media-loading-indicator-opacity, hidden);
846  transition: visibility 0.15s;
847}
848
849:host([${eS.MEDIA_LOADING}]:not([${eS.MEDIA_PAUSED}])) #status {
850  visibility: var(--media-loading-indicator-opacity, visible);
851  transition: visibility 0.15s var(--_loading-indicator-delay);
852}
853
854svg, img, ::slotted(svg), ::slotted(img) {
855  width: var(--media-loading-indicator-icon-width);
856  height: var(--media-loading-indicator-icon-height, 100px);
857  fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
858  vertical-align: middle;
859}
860</style>
861
862<slot name="icon">${tK}</slot>
863<div id="status" role="status" aria-live="polite">${eO.MEDIA_LOADING()}</div>
864`;let MediaLoadingIndicator=class MediaLoadingIndicator extends eV.HTMLElement{constructor(){if(super(),media_loading_indicator_privateAdd(this,aC,void 0),media_loading_indicator_privateAdd(this,aR,500),media_loading_indicator_privateAdd(this,aL,void 0),!this.shadowRoot){let b=this.attachShadow({mode:"open"}),A=t$.content.cloneNode(!0);b.appendChild(A)}let{style:b}=getOrInsertCSSRule(this.shadowRoot,":host");media_loading_indicator_privateSet(this,aL,b)}static get observedAttributes(){return[ek.MEDIA_CONTROLLER,eS.MEDIA_PAUSED,eS.MEDIA_LOADING,tj.LOADING_DELAY]}attributeChangedCallback(b,A,B){var G,W,K,et,ei;b===tj.LOADING_DELAY&&A!==B?this.loadingDelay=Number(B):b===ek.MEDIA_CONTROLLER&&(A&&(null==(W=null==(G=media_loading_indicator_privateGet(this,aC))?void 0:G.unassociateElement)||W.call(G,this),media_loading_indicator_privateSet(this,aC,null)),B&&this.isConnected&&(media_loading_indicator_privateSet(this,aC,null==(K=this.getRootNode())?void 0:K.getElementById(B)),null==(ei=null==(et=media_loading_indicator_privateGet(this,aC))?void 0:et.associateElement)||ei.call(et,this)))}connectedCallback(){var b,A,B;let G=this.getAttribute(ek.MEDIA_CONTROLLER);G&&(media_loading_indicator_privateSet(this,aC,null==(b=this.getRootNode())?void 0:b.getElementById(G)),null==(B=null==(A=media_loading_indicator_privateGet(this,aC))?void 0:A.associateElement)||B.call(A,this))}disconnectedCallback(){var b,A;null==(A=null==(b=media_loading_indicator_privateGet(this,aC))?void 0:b.unassociateElement)||A.call(b,this),media_loading_indicator_privateSet(this,aC,null)}get loadingDelay(){return media_loading_indicator_privateGet(this,aR)}set loadingDelay(b){media_loading_indicator_privateSet(this,aR,b),media_loading_indicator_privateGet(this,aL).setProperty("--_loading-indicator-delay",`var(--media-loading-indicator-transition-delay, ${b}ms)`)}get mediaPaused(){return getBooleanAttr(this,eS.MEDIA_PAUSED)}set mediaPaused(b){setBooleanAttr(this,eS.MEDIA_PAUSED,b)}get mediaLoading(){return getBooleanAttr(this,eS.MEDIA_LOADING)}set mediaLoading(b){setBooleanAttr(this,eS.MEDIA_LOADING,b)}};aC=new WeakMap,aR=new WeakMap,aL=new WeakMap,eV.customElements.get("media-loading-indicator")||eV.customElements.define("media-loading-indicator",MediaLoadingIndicator);let toVolume=b=>
864b.mediaMuted?0:b.mediaVolume,formatAsPercentString=({value:b})=>`${Math.round(100*b)}%`;eV.customElements.get("media-volume-range")||eV.customElements.define("media-volume-range",class extends MediaChromeRange{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_VOLUME,eS.MEDIA_MUTED,eS.MEDIA_VOLUME_UNAVAILABLE]}constructor(){super(),this.range.addEventListener("input",()=>{let b=this.range.value,A=new eV.CustomEvent(eA.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:b});this.dispatchEvent(A)})}connectedCallback(){super.connectedCallback(),this.range.setAttribute("aria-label",eO.VOLUME())}attributeChangedCallback(b,A,B){super.attributeChangedCallback(b,A,B),(b===eS.MEDIA_VOLUME||b===eS.MEDIA_MUTED)&&(this.range.valueAsNumber=toVolume(this),this.range.setAttribute("aria-valuetext",formatAsPercentString(this.range)),this.updateBar())}get mediaVolume(){return getNumericAttr(this,eS.MEDIA_VOLUME,1)}set mediaVolume(b){setNumericAttr(this,eS.MEDIA_VOLUME,b)}get mediaMuted(){return getBooleanAttr(this,eS.MEDIA_MUTED)}set mediaMuted(b){setBooleanAttr(this,eS.MEDIA_MUTED,b)}get mediaVolumeUnavailable(){return getStringAttr(this,eS.MEDIA_VOLUME_UNAVAILABLE)}set mediaVolumeUnavailable(b){setStringAttr(this,eS.MEDIA_VOLUME_UNAVAILABLE,b)}});var media_chrome_listbox_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_chrome_listbox_privateGet=(b,A,B)=>(media_chrome_listbox_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_chrome_listbox_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_chrome_listbox_privateSet=(b,A,B,G)=>(media_chrome_listbox_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),media_chrome_listbox_privateMethod=(b,A,B)=>(media_chrome_listbox_accessCheck(b,A,"access private method"),B);let tY=`
865<svg aria-hidden="true" viewBox="0 1 24 24" part="select-indicator indicator">
866  <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>
867</svg>`;function createOption(b,A,B){let G=eH.createElement("media-chrome-option");G.part.add("option"),G.value=A,G.selected=B;let W=eH.createElement("span");return W.textContent=b,G.append(W),G}function createIndicator(b,A){let B=b.querySelector(`:scope > [slot="${A}"]`);return((null==B?void 0:B.nodeName)=="SLOT"&&(B=B.assignedElements({flatten:!0})[0]),B)?((B=B.cloneNode(!0)).removeAttribute("slot"),B):b.shadowRoot.querySelector(`[name="${A}"] > svg`).cloneNode(!0)}let tQ=eH.createElement("template");tQ.innerHTML=`
868<style>
869  :host {
870    font: var(--media-font,
871      var(--media-font-weight, normal)
872      var(--media-font-size, 15px) /
873      var(--media-text-content-height, var(--media-control-height, 24px))
874      var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
875    color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
876    background: var(--media-listbox-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .8))));
877    border-radius: var(--media-listbox-border-radius);
878    display: inline-flex;
879    flex-direction: column;
880    position: relative;
881    box-sizing: border-box;
882  }
883
884  ::slotted([slot="header"]) {
885    padding: .4em 1.4em;
886    border-bottom: 1px solid rgb(255 255 255 / .25);
887  }
888
889  #container {
890    gap: var(--media-listbox-gap);
891    display: flex;
892    flex-direction: var(--media-listbox-flex-direction, column);
893    overflow: hidden auto;
894    padding-block: .5em;
895  }
896
897  media-chrome-option {
898    padding-inline: .7em 1.4em;
899  }
900
901  media-chrome-option > span {
902    margin-inline: .5ch;
903  }
904
905  [part~="indicator"] {
906    fill: var(--media-option-indicator-fill, var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))));
907    height: var(--media-option-indicator-height, 1.25em);
908    vertical-align: var(--media-option-indicator-vertical-align, text-top);
909  }
910
911  [part~="select-indicator"] {
912    display: var(--media-option-select-indicator-display);
913    visibility: hidden;
914  }
915
916  [aria-selected="true"] > [part~="select-indicator"] {
917    visibility: visible;
918  }
919</style>
920<style id="layout-row" media="width:0">
921
922  ::slotted([slot="header"]) {
923    padding: .4em .5em;
924  }
925
926  #container {
927    gap: var(--media-listbox-gap, .25em);
928    flex-direction: var(--media-listbox-flex-direction, row);
929    padding-inline: .5em;
930  }
931
932  media-chrome-option {
933    padding: .3em .24em;
934  }
935
936  media-chrome-option[aria-selected="true"] {
937    background: var(--media-option-selected-background, rgb(255 255 255 / .2));
938  }
939
940  [part~="select-indicator"] {
941    display: var(--media-option-select-indicator-display, none);
942  }
943</style>
944<slot name="header"></slot>
945<slot id="container"></slot>
946<slot name="select-indicator" hidden>${tY}</slot>
947`;let MediaChromeListbox=class MediaChromeListbox extends eV.HTMLElement{constructor(b={}){super(),media_chrome_listbox_privateAdd(this,aP),media_chrome_listbox_privateAdd(this,aW),media_chrome_listbox_privateAdd(this,aH),media_chrome_listbox_privateAdd(this,aF),media_chrome_listbox_privateAdd(this,a$),media_chrome_listbox_privateAdd(this,aY),media_chrome_listbox_privateAdd(this,aM,void 0),media_chrome_listbox_privateAdd(this,ax,""),media_chrome_listbox_privateAdd(this,aD,null),media_chrome_listbox_privateAdd(this,aO,!1),media_chrome_listbox_privateAdd(this,aN,b=>{this.handleClick(b)}),media_chrome_listbox_privateAdd(this,aB,b=>{let{key:A}=b;if("Escape"===A){this.removeEventListener("keyup",media_chrome_listbox_privateGet(this,aB));return}if("Meta"===A){media_chrome_listbox_privateSet(this,aO,!1);return}media_chrome_listbox_privateMethod(this,aP,aU).call(this,b)}),media_chrome_listbox_privateAdd(this,aG,b=>{let{key:A,altKey:B}=b;if(B){this.removeEventListener("keyup",media_chrome_listbox_privateGet(this,aB));return}if("Meta"===A){media_chrome_listbox_privateSet(this,aO,!0);return}if(this.keysUsed.includes(A)&&b.preventDefault(),media_chrome_listbox_privateGet(this,aO)&&this.keysUsed.includes(A)){media_chrome_listbox_privateMethod(this,aP,aU).call(this,b);return}this.addEventListener("keyup",media_chrome_listbox_privateGet(this,aB),{once:!0})}),this.shadowRoot||(this.attachShadow({mode:"open"}),this.nativeEl=tQ.content.cloneNode(!0),b.slotTemplate&&this.nativeEl.append(b.slotTemplate.content.cloneNode(!0)),this.shadowRoot.append(this.nativeEl)),this.container=this.shadowRoot.querySelector("#container"),this.container.addEventListener("slotchange",b=>{for(let A of b.target.assignedNodes({flatten:!0}))3===A.nodeType&&""===A.textContent.trim()&&A.remove()})}static get observedAttributes(){return["disabled","style",ek.MEDIA_CONTROLLER]}static formatOptionText(b){return b}formatOptionText(b,A){return this.constructor.formatOptionText(b,A)}get options(){var b;let A=this.querySelectorAll("media-chrome-option");return A.length||(A=null==(b=this.container)?void 0:b.querySelectorAll("media-chrome-option")),Array.from(A)}get selectedOptions(){return this.options.filter(b=>b.selected)}get value(){var b,A;return null!=(A=null==(b=this.selectedOptions[0])?void 0:b.value)?A:""}set value(b){let A=this.options.find(A=>A.value===b);A&&media_chrome_listbox_privateMethod(this,aF,aj).call(this,A)}focus(){var b;null==(b=this.selectedOptions[0])||b.focus()}enable(){this.addEventListener("click",media_chrome_listbox_privateGet(this,aN)),this.addEventListener("keydown",media_chrome_listbox_privateGet(this,aG))}disable(){this.removeEventListener("click",media_chrome_listbox_privateGet(this,aN)),this.removeEventListener("keyup",media_chrome_listbox_privateGet(this,aB))}attributeChangedCallback(b,A,B){var G,W,K,et,ei;"style"===b&&B!==A?media_chrome_listbox_privateMethod(this,aW,aV).call(this):b===ek.MEDIA_CONTROLLER?(A&&(null==(W=null==(G=media_chrome_listbox_privateGet(this,aM))?void 0:G.unassociateElement)||W.call(G,this),media_chrome_listbox_privateSet(this,aM,null)),B&&this.isConnected&&(media_chrome_listbox_privateSet(this,aM,null==(K=this.getRootNode())?void 0:K.getElementById(B)),null==(ei=null==(et=media_chrome_listbox_privateGet(this,aM))?void 0:et.associateElement)||ei.call(et,this))):"disabled"===b&&B!==A&&(null==B?this.enable():this.disable())}connectedCallback(){var b,A,B;media_chrome_listbox_privateMethod(this,aW,aV).call(this),this.hasAttribute("disabled")||this.enable(),this.hasAttribute("role")||this.setAttribute("role","listbox");let G=this.getAttribute(ek.MEDIA_CONTROLLER);G&&(media_chrome_listbox_privateSet(this,aM,null==(b=this.getRootNode())?void 0:b.getElementById(G)),null==(B=null==(A=media_chrome_listbox_privateGet(this,aM))?void 0:A.associateElement)||B.call(A,this))}disconnectedCallback(){var b,A;this.disable(),null==(A=null==(b=media_chrome_listbox_privateGet(this,aM))?void 0:b.unassociateElement)||A.call(b,this),media_chrome_listbox_privateSet(this,aM,null)}get keysUsed(){return["Enter"," ","ArrowDown","ArrowUp","Home","End"]}handleSelection(b,A){let B=media_chrome_listbox_privateMethod(this,aH,aq).call(this,b);B&&media_chrome_listbox_privateMethod(this,aF,aj).call(this,B,A)}handleMovement(b){let A;let{key:B}=b,G=this.options,W=media_chrome_listbox_privateMethod(this,aH,aq).call(this,b);switch(W||(W=G.filter(b=>"0"===b.getAttribute("tabindex"))[0]),B){case"ArrowDown":(null==(A=W.nextElementSibling)?void 0:A.hasAttribute("disabled"))&&(A=A.nextElementSibling);break;case"ArrowUp":(null==(A=W.previousElementSibling)?void 0:A.hasAttribute("disabled"))&&(A=A.previousElementSibling);break;case"Home":A=G[0];break;case"End":A=G[G.length-1];break;default:A=media_chrome_listbox_privateMethod(this,a$,aK).call(this,B)}A&&(G.forEach(b=>b.setAttribute("tabindex","-1")),A.setAttribute("tabindex","0"),A.focus())}handleClick(b){let A=media_chrome_listbox_privateMethod(this,aH,aq).call(this,b);!A||A.hasAttribute("disabled")||(this.options.forEach(b=>b.setAttribute("tabindex","-1")),A.setAttribute("tabindex","0"),this.handleSelection(b,this.hasAttribute("aria-multiselectable")&&"true"===this.getAttribute("aria-multiselectable")))}};aM=new WeakMap,ax=new WeakMap,aD=new WeakMap,aO=new WeakMap,aN=new WeakMap,aP=new WeakSet,aU=function(b){let{key:A}=b;"Enter"===A||" "===A?this.handleSelection(b,this.hasAttribute("aria-multiselectable")&&"true"===this.getAttribute("aria-multiselectable")):this.handleMovement(b)},aB=new WeakMap,aG=new WeakMap,aW=new WeakSet,aV=function(){var b;let A=this.shadowRoot.querySelector("#layout-row"),B=(null==(b=getComputedStyle(this).getPropertyValue("--media-listbox-layout"))?void 0:b.trim())==="row";A.setAttribute("media",B?"":"width:0")},aH=new WeakSet,aq=function(b){let A=b.composedPath(),B=A.findIndex(b=>"MEDIA-CHROME-OPTION"===b.nodeName);return A[B]},aF=new WeakSet,aj=function(b,A){let B=[...this.selectedOptions];this.hasAttribute("aria-multiselectable")&&"true"===this.getAttribute("aria-multiselectable")||this.options.forEach(b=>b.selected=!1),A?b.selected=!b.selected:b.selected=!0,this.selectedOptions.some((b,A)=>b!=B[A])&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},a$=new WeakSet,aK=function(b){media_chrome_listbox_privateMethod(this,aY,aQ).call(this);let A=this.options,B=A.findIndex(b=>"0"===b.getAttribute("tabindex"));media_chrome_listbox_privateSet(this,ax,media_chrome_listbox_privateGet(this,ax)+b);let G=media_chrome_listbox_privateGet(this,ax).split("").every(A=>A===b),W=A.slice(B+(G?1:0)).filter(b=>b.textContent.toLowerCase().startsWith(media_chrome_listbox_privateGet(this,ax))),K=A.slice(0,B-(G?1:0)).filter(b=>b.textContent.toLowerCase().startsWith(media_chrome_listbox_privateGet(this,ax))),et=[],ei=[];G&&(et=A.slice(B+(G?1:0)).filter(A=>A.textContent.startsWith(b)),ei=A.slice(0,B-(G?1:0)).filter(A=>A.textContent.startsWith(b)));let ea=[...W,...K,...et,...ei];return ea[0]},aY=new WeakSet,aQ=function(){clearTimeout(media_chrome_listbox_privateGet(this,aD)),media_chrome_listbox_privateSet(this,aD,null),media_chrome_listbox_privateSet(this,aD,setTimeout(()=>{media_chrome_listbox_privateSet(this,ax,""),media_chrome_listbox_privateSet(this,aD,null)},500))},eV.customElements.get("media-chrome-listbox")||eV.customElements.define("media-chrome-listbox",MediaChromeListbox);var media_chrome_option_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_chrome_option_privateGet=(b,A,B)=>(media_chrome_option_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_chrome_option_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_chrome_option_privateSet=(b,A,B,G)=>(media_chrome_option_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),media_chrome_option_privateMethod=(b,A,B)=>(media_chrome_option_accessCheck(b,A,"access private method"),B);let tZ=eH.createElement("template");tZ.innerHTML=`
948<style>
949  :host {
950    cursor: pointer;
951    display: block;
952    line-height: revert;
953    white-space: nowrap;
954    white-space-collapse: collapse;
955    text-wrap: nowrap;
956    padding: .4em .5em;
957    transition: var(--media-option-transition);
958    outline: var(--media-option-outline, 0);
959    outline-offset: var(--media-option-outline-offset, -1px);
960  }
961
962  :host(:focus-visible) {
963    box-shadow: var(--media-option-focus-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
964    outline: var(--media-option-hover-outline, 0);
965    outline-offset: var(--media-option-hover-outline-offset,  var(--media-option-outline-offset, -1px));
966  }
967
968  :host(:hover) {
969    cursor: pointer;
970    background: var(--media-option-hover-background, rgb(82 82 122 / .8));
971    outline: var(--media-option-hover-outline);
972    outline-offset: var(--media-option-hover-outline-offset,  var(--media-option-outline-offset, -1px));
973  }
974
975  :host([aria-selected="true"]) {
976    background: var(--media-option-selected-background);
977  }
978
979  :host([disabled]) {
980    pointer-events: none;
981    color: rgba(255, 255, 255, .3);
982  }
983</style>
984<slot></slot>
985`;let tz={VALUE:"value",SELECTED:"selected",DISABLED:"disabled"};let MediaChromeOption=class MediaChromeOption extends eV.HTMLElement{constructor(){super(),media_chrome_option_privateAdd(this,aX),media_chrome_option_privateAdd(this,aZ,!1),media_chrome_option_privateAdd(this,az,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(tZ.content.cloneNode(!0)))}static get observedAttributes(){return[tz.DISABLED,tz.SELECTED,tz.VALUE]}get value(){var b;return null!=(b=this.getAttribute(tz.VALUE))?b:this.text}set value(b){this.setAttribute(tz.VALUE,b)}get text(){var b;return(null!=(b=this.textContent)?b:"").trim()}get selected(){return"true"===this.getAttribute("aria-selected")}set selected(b){media_chrome_option_privateSet(this,aZ,!0),this.setAttribute("aria-selected",b?"true":"false"),b?this.part.add("option-selected"):this.part.remove("option-selected")}enable(){this.hasAttribute("tabindex")||this.setAttribute("tabindex",-1),this.hasAttribute("aria-selected")||this.setAttribute("aria-selected","false")}disable(){this.removeAttribute("tabindex")}attributeChangedCallback(b,A,B){b!==tz.SELECTED||media_chrome_option_privateGet(this,aZ)?b===tz.DISABLED&&B!==A&&(null==B?this.enable():this.disable()):this.setAttribute("aria-selected",null!=B?"true":"false")}connectedCallback(){this.hasAttribute(tz.DISABLED)||this.enable(),this.setAttribute("role","option"),media_chrome_option_privateSet(this,az,function closestOptionsContainer(b,A){if(!b)return null;let{host:B}=b.getRootNode();return!A&&B?closestOptionsContainer(b,B):(null==A?void 0:A.options)?A:closestOptionsContainer(A,null==A?void 0:A.parentNode)}(this,this.parentNode)),media_chrome_option_privateMethod(this,aX,aJ).call(this)}disconnectedCallback(){this.disable(),media_chrome_option_privateMethod(this,aX,aJ).call(this),media_chrome_option_privateSet(this,az,null)}handleClick(){}};aZ=new WeakMap,az=new WeakMap,aX=new WeakSet,aJ=function(){var b;let A=null==(b=media_chrome_option_privateGet(this,az))?void 0:b.options;if(!A)return;let B=A.filter(b=>"true"===b.getAttribute("aria-selected")).pop();B||(B=A[0]),"true"!==media_chrome_option_privateGet(this,az).getAttribute("aria-multiselectable")&&A.forEach(b=>{b.setAttribute("tabindex","-1"),b.setAttribute("aria-selected","false")}),null==B||B.setAttribute("tabindex","0"),null==B||B.setAttribute("aria-selected","true")},eV.customElements.get("media-chrome-o
985ption")||eV.customElements.define("media-chrome-option",MediaChromeOption);var media_chrome_selectmenu_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_chrome_selectmenu_privateGet=(b,A,B)=>(media_chrome_selectmenu_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_chrome_selectmenu_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_chrome_selectmenu_privateSet=(b,A,B,G)=>(media_chrome_selectmenu_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),media_chrome_selectmenu_privateMethod=(b,A,B)=>(media_chrome_selectmenu_accessCheck(b,A,"access private method"),B);let tX=eH.createElement("template");tX.innerHTML=`
986  <style>
987  :host {
988    font: var(--media-font,
989      var(--media-font-weight, normal)
990      var(--media-font-size, 15px) /
991      var(--media-text-content-height, var(--media-control-height, 24px))
992      var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
993    color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
994    display: inline-flex;
995    position: relative;
996    flex-shrink: .5;
997  }
998
999  [name=listbox]::slotted(*),
1000  [part=listbox] {
1001    position: absolute;
1002    bottom: 100%;
1003    max-height: 300px;
1004    transition: var(--media-selectmenu-transition-in,
1005      visibility 0s, transform .15s ease-out, opacity .15s ease-out);
1006    transform: var(--media-listbox-transform-in, translateY(0) scale(1));
1007    visibility: visible;
1008    opacity: 1;
1009  }
1010
1011  [name=listbox][hidden]::slotted(*),
1012  [hidden] [part=listbox] {
1013    transition: var(--media-selectmenu-transition-out,
1014      visibility .15s ease-out, transform .15s ease-out, opacity .15s ease-out);
1015    transform: var(--media-listbox-transform-out, translateY(2px) scale(.99));
1016    visibility: hidden;
1017    opacity: 0;
1018    pointer-events: none;
1019  }
1020
1021  slot[name=listbox][hidden] {
1022    display: block;
1023  }
1024  </style>
1025
1026  <slot name="button">
1027    <media-chrome-button aria-haspopup="listbox" part="button">
1028      <slot name="button-content"></slot>
1029    </media-chrome-button>
1030  </slot>
1031  <slot name="listbox" hidden>
1032    <media-chrome-listbox id="listbox" part="listbox">
1033      <slot></slot>
1034    </media-chrome-listbox>
1035  </slot>
1036`;let MediaChromeSelectMenu=class MediaChromeSelectMenu extends eV.HTMLElement{constructor(){var b;super(),media_chrome_selectmenu_privateAdd(this,re),media_chrome_selectmenu_privateAdd(this,ri),media_chrome_selectmenu_privateAdd(this,rr),media_chrome_selectmenu_privateAdd(this,a0,void 0),media_chrome_selectmenu_privateAdd(this,a1,void 0),media_chrome_selectmenu_privateAdd(this,a2,void 0),media_chrome_selectmenu_privateAdd(this,a3,void 0),media_chrome_selectmenu_privateAdd(this,a9,void 0),media_chrome_selectmenu_privateAdd(this,a5,b=>{let{key:A}=b;if(!this.keysUsed.includes(A)){this.removeEventListener("keyup",media_chrome_selectmenu_privateGet(this,a5));return}let B=b.composedPath().includes(media_chrome_selectmenu_privateGet(this,a1));B&&("Enter"===A||" "===A)?media_chrome_selectmenu_privateMethod(this,re,rt).call(this):"Escape"===A&&media_chrome_selectmenu_privateMethod(this,rr,rn).call(this)}),media_chrome_selectmenu_privateAdd(this,a4,b=>{let{metaKey:A,altKey:B,key:G}=b;if(A||B||!this.keysUsed.includes(G)){this.removeEventListener("keyup",media_chrome_selectmenu_privateGet(this,a5));return}b.preventDefault(),this.addEventListener("keyup",media_chrome_selectmenu_privateGet(this,a5),{once:!0})}),media_chrome_selectmenu_privateAdd(this,a8,b=>{b.composedPath().includes(this)||media_chrome_selectmenu_privateMethod(this,rr,rn).call(this)}),media_chrome_selectmenu_privateAdd(this,a6,b=>{b.composedPath().includes(media_chrome_selectmenu_privateGet(this,a1))&&media_chrome_selectmenu_privateMethod(this,re,rt).call(this)}),media_chrome_selectmenu_privateAdd(this,a7,()=>{media_chrome_selectmenu_privateMethod(this,rr,rn).call(this)}),media_chrome_selectmenu_privateAdd(this,ro,()=>{if(0===media_chrome_selectmenu_privateGet(this,a3).offsetWidth)return;let b=media_chrome_selectmenu_privateGet(this,a3).offsetWidth,A=media_chrome_selectmenu_privateGet(this,a1).getBoundingClientRect();if(this.hasAttribute("mediacontroller")||media_chrome_selectmenu_privateGet(this,a1).hasAttribute("mediacontroller")||media_chrome_selectmenu_privateGet(this,a3).hasAttribute("mediacontroller")){media_chrome_selectmenu_privateGet(this,a3).style.zIndex="1",media_chrome_selectmenu_privateGet(this,a3).style.bottom="unset",media_chrome_selectmenu_privateGet(this,a3).style.right=null,media_chrome_selectmenu_privateGet(this,a3).style.left="0",media_chrome_selectmenu_privateGet(this,a3).style.top=`${A.height}px`;return}let B=getBoundsElement(this),G=B.getBoundingClientRect(),W=A.x+b,K=Math.max(A.right-W,A.right-G.right);media_chrome_selectmenu_privateGet(this,a3).style.left=null,media_chrome_selectmenu_privateGet(this,a3).style.right=`${K}px`,media_chrome_selectmenu_privateGet(this,a3).style.maxHeight=`${G.height-A.height}px`}),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(tX.content.cloneNode(!0)));let{style:A}=getOrInsertCSSRule(this.shadowRoot,":host");A.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),null==(b=this.init)||b.call(this),media_chrome_selectmenu_privateSet(this,a1,this.shadowRoot.querySelector("[part=button]")),media_chrome_selectmenu_privateSet(this,a3,this.shadowRoot.querySelector("[part=listbox]")),media_chrome_selectmenu_privateSet(this,a2,this.shadowRoot.querySelector("slot[name=button]")),media_chrome_selectmenu_privateGet(this,a2).addEventListener("slotchange",()=>{let b=media_chrome_selectmenu_privateGet(this,a2).assignedElements()[0];if(!b)return;media_chrome_selectmenu_privateSet(this,a1,b),media_chrome_selectmenu_privateGet(this,a1).preventClick=!0;let A=this.hasAttribute("disabled")||media_chrome_selectmenu_privateGet(this,a1).hasAttribute("disabled");A?this.disable():(this.enable(),media_chrome_selectmenu_privateGet(this,a1).setAttribute("aria-haspopup","listbox"))}),media_chrome_selectmenu_privateSet(this,a9,this.shadowRoot.querySelector("slot[name=listbox]")),media_chrome_selectmenu_privateGet(this,a9).addEventListener("slotchange",()=>{media_chrome_selectmenu_privateSet(this,a3,media_chrome_selectmenu_privateGet(this,a9).assignedElements()[0]||media_chrome_selectmenu_privateGet(this,a3))})}static get observedAttributes(){return["disabled",ek.MEDIA_CONTROLLER]}enable(){media_chrome_selectmenu_privateGet(this,a1).toggleAttribute("disabled",!1),this.addEventListener("change",media_chrome_selectmenu_privateGet(this,a7)),this.addEventListener("keydown",media_chrome_selectmenu_privateGet(this,a4)),this.addEventListener("click",media_chrome_selectmenu_privateGet(this,a6)),eH.addEventListener("click",media_chrome_selectmenu_privateGet(this,a8))}disable(){media_chrome_selectmenu_privateGet(this,a1).toggleAttribute("disabled",!0),this.removeEventListener("change",media_chrome_selectmenu_privateGet(this,a7)),this.removeEventListener("keydown",media_chrome_selectmenu_privateGet(this,a4)),this.removeEventListener("keyup",media_chrome_selectmenu_privateGet(this,a5)),this.removeEventListener("click",media_chrome_selectmenu_privateGet(this,a6)),eH.removeEventListener("click",media_chrome_selectmenu_privateGet(this,a8))}attributeChangedCallback(b,A,B){var G,W,K,et,ei;b===ek.MEDIA_CONTROLLER?(A&&(null==(W=null==(G=media_chrome_selectmenu_privateGet(this,a0))?void 0:G.unassociateElement)||W.call(G,this),media_chrome_selectmenu_privateSet(this,a0,null),media_chrome_selectmenu_privateGet(this,a3).removeAttribute(ek.MEDIA_CONTROLLER)),B&&this.isConnected&&(media_chrome_selectmenu_privateSet(this,a0,null==(K=this.getRootNode())?void 0:K.getElementById(B)),null==(ei=null==(et=media_chrome_selectmenu_privateGet(this,a0))?void 0:et.associateElement)||ei.call(et,this),media_chrome_selectmenu_privateGet(this,a3).setAttribute(ek.MEDIA_CONTROLLER,B))):"disabled"===b&&B!==A&&(null==B?this.enable():this.disable())}connectedCallback(){var b,A,B;let G=this.getAttribute(ek.MEDIA_CONTROLLER);G&&(media_chrome_selectmenu_privateSet(this,a0,null==(b=this.getRootNode())?void 0:b.getElementById(G)),null==(B=null==(A=media_chrome_selectmenu_privateGet(this,a0))?void 0:A.associateElement)||B.call(A,this),media_chrome_selectmenu_privateGet(this,a3).setAttribute(ek.MEDIA_CONTROLLER,G)),this.hasAttribute("disabled")||this.enable(),media_chrome_selectmenu_privateGet(this,a9).hidden||observeResize(getBoundsElement(this),media_chrome_selectmenu_privateGet(this,ro))}disconnectedCallback(){var b,A;unobserveResize(getBoundsElement(this),media_chrome_selectmenu_privateGet(this,ro)),this.disable(),null==(A=null==(b=media_chrome_selectmenu_privateGet(this,a0))?void 0:b.unassociateElement)||A.call(b,this),media_chrome_selectmenu_privateSet(this,a0,null),media_chrome_selectmenu_privateGet(this,a3).removeAttribute(ek.MEDIA_CONTROLLER)}get keysUsed(){return["Enter","Escape"," ","ArrowUp","ArrowDown","f","c","k","m"]}};function getBoundsElement(b){var A;return null!=(A=b.getAttribute("bounds")?closestComposedNode(b,`#${b.getAttribute("bounds")}`):function(b){var A;let B=b.getAttribute(ek.MEDIA_CONTROLLER);return B?null==(A=b.getRootNode())?void 0:A.getElementById(B):closestComposedNode(b,"media-controller")}(b)||b.parentElement)?A:b}a0=new WeakMap,a1=new WeakMap,a2=new WeakMap,a3=new WeakMap,a9=new WeakMap,a5=new WeakMap,a4=new WeakMap,a8=new WeakMap,a6=new WeakMap,a7=new WeakMap,re=new WeakSet,rt=function(){media_chrome_selectmenu_privateGet(this,a9).hidden?media_chrome_selectmenu_privateMethod(this,ri,ra).call(this):media_chrome_selectmenu_privateMethod(this,rr,rn).call(this)},ri=new WeakSet,ra=function(){media_chrome_selectmenu_privateGet(this,a9).hidden&&(media_chrome_selectmenu_privateGet(this,a9).hidden=!1,media_chrome_selectmenu_privateGet(this,a1).setAttribute("aria-expanded","true"),media_chrome_selectmenu_privateGet(this,ro).call(this),media_chrome_selectmenu_privateGet(this,a3).focus(),observeResize(getBoundsElement(this),media_chrome_selectmenu_privateGet(this,ro)))},rr=new WeakSet,rn=function(){if(media_chrome_selectmenu_privateGet(this,a9).hidden)return;unobserveResize(getBoundsElement(this),media_chrome_selectmenu_privateGet(this,ro));let b=function getActiveElement(b=document){var A;let B=null==b?void 0:b.activeElement;return B?null!=(A=getActiveElement(B.shadowRoot))?A:B:null}();media_chrome_selectmenu_privateGet(this,a9).hidden=!0,media_chrome_selectmenu_privateGet(this,a1).setAttribute("aria-expanded","fal
1036se"),containsComposedNode(media_chrome_selectmenu_privateGet(this,a3),b)&&media_chrome_selectmenu_privateGet(this,a1).focus()},ro=new WeakMap,eV.customElements.get("media-chrome-selectmenu")||eV.customElements.define("media-chrome-selectmenu",MediaChromeSelectMenu);var media_captions_listbox_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_captions_listbox_privateGet=(b,A,B)=>(media_captions_listbox_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_captions_listbox_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_captions_listbox_privateSet=(b,A,B,G)=>(media_captions_listbox_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),media_captions_listbox_privateMethod=(b,A,B)=>(media_captions_listbox_accessCheck(b,A,"access private method"),B);let tJ=`
1037<svg aria-hidden="true" viewBox="0 0 26 24" part="captions-indicator indicator">
1038  <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
1039</svg>`,t0=eH.createElement("template");t0.innerHTML=`
1040  <slot name="captions-indicator" hidden>${tJ}</slot>
1041`,rs=new WeakMap,rl=new WeakSet,rd=function(){var b;if(media_captions_listbox_privateGet(this,rs)===JSON.stringify(this.mediaSubtitlesList))return;media_captions_listbox_privateSet(this,rs,JSON.stringify(this.mediaSubtitlesList));let A=this.shadowRoot.querySelector("#container");A.textContent="";let B=!this.value,G=createOption(this.formatOptionText("Off"),"off",B);G.prepend(createIndicator(this,"select-indicator")),A.append(G);let W=this.mediaSubtitlesList;for(let B of W){let G=createOption(this.formatOptionText(B.label,B),formatTextTrackObj(B),this.value==formatTextTrackObj(B));G.prepend(createIndicator(this,"select-indicator"));let W=null!=(b=B.kind)?b:"subs";"captions"===W&&G.append(createIndicator(this,"captions-indicator")),A.append(G)}},ru=new WeakSet,rc=function(){let b=this.mediaSubtitlesShowing,A=this.getAttribute(eS.MEDIA_SUBTITLES_SHOWING),B=this.value!==A;if((null==b?void 0:b.length)&&B&&this.dispatchEvent(new eV.CustomEvent(eA.MEDIA_DISABLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:b})),!this.value||!B)return;let G=new eV.CustomEvent(eA.MEDIA_SHOW_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(G)};let media_captions_listbox_getSubtitlesListAttr=(b,A)=>{let B=b.getAttribute(A);return B?parseTextTracksStr(B):[]},media_captions_listbox_setSubtitlesListAttr=(b,A,B)=>{if(!(null==B?void 0:B.length)){b.removeAttribute(A);return}let G=stringifyTextTrackList(B),W=b.getAttribute(A);W!==G&&b.setAttribute(A,G)};eV.customElements.get("media-captions-listbox")||eV.customElements.define("media-captions-listbox",class extends MediaChromeListbox{constructor(){super({slotTemplate:t0}),media_captions_listbox_privateAdd(this,rl),media_captions_listbox_privateAdd(this,ru),media_captions_listbox_privateAdd(this,rs,void 0)}static get observedAttributes(){return[...super.observedAttributes,"aria-multiselectable",eS.MEDIA_SUBTITLES_LIST,eS.MEDIA_SUBTITLES_SHOWING]}attributeChangedCallback(b,A,B){super.attributeChangedCallback(b,A,B),b===eS.MEDIA_SUBTITLES_LIST&&A!==B?media_captions_listbox_privateMethod(this,rl,rd).call(this):b===eS.MEDIA_SUBTITLES_SHOWING&&A!==B?this.value=B:"aria-multiselectable"===b&&(this.removeAttribute("aria-multiselectable"),console.warn("Captions List doesn't currently support multiple selections. You can enable multiple items via the media.textTracks API."))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",media_captions_listbox_privateMethod(this,ru,rc))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",media_captions_listbox_privateMethod(this,ru,rc))}get mediaSubtitlesList(){return media_captions_listbox_getSubtitlesListAttr(this,eS.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(b){media_captions_listbox_setSubtitlesListAttr(this,eS.MEDIA_SUBTITLES_LIST,b)}get mediaSubtitlesShowing(){return media_captions_listbox_getSubtitlesListAttr(this,eS.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(b){media_captions_listbox_setSubtitlesListAttr(this,eS.MEDIA_SUBTITLES_SHOWING,b)}}),eV.customElements.get("media-captions-selectmenu")||eV.customElements.define("media-captions-selectmenu",class extends MediaChromeSelectMenu{init(){let b=eH.createElement("media-captions-button");b.part.add("button"),b.preventClick=!0;let A=eH.createElement("media-captions-listbox");A.part.add("listbox"),A.setAttribute("exportparts","option, option-selected, indicator");let B=this.shadowRoot.querySelector("slot[name=button]"),G=this.shadowRoot.querySelector("slot[name=listbox]");B.textContent="",G.textContent="",B.append(b),G.append(A)}});var media_playback_rate_listbox_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_playback_rate_listbox_privateGet=(b,A,B)=>(media_playback_rate_listbox_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_playback_rate_listbox_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_playback_rate_listbox_privateMethod=(b,A,B)=>(media_playback_rate_listbox_accessCheck(b,A,"access private method"),B);let t1={RATES:"rates"};rm=new WeakMap,rh=new WeakSet,rp=function(){let b=this.shadowRoot.querySelector("#container");for(let A of(b.textContent="",this.rates)){let B=createOption(this.formatOptionText(`${A}x`,A),A,this.mediaPlaybackRate==A);B.prepend(createIndicator(this,"select-indicator")),b.append(B)}},r_=new WeakSet,rv=function(){if(!this.value)return;let b=new eV.CustomEvent(eA.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(b)},eV.customElements.get("media-playback-rate-listbox")||eV.customElements.define("media-playback-rate-listbox",class extends MediaChromeListbox{constructor(){super(),media_playback_rate_listbox_privateAdd(this,rh),media_playback_rate_listbox_privateAdd(this,r_),media_playback_rate_listbox_privateAdd(this,rm,new AttributeTokenList(this,t1.RATES,{defaultValue:tU})),media_playback_rate_listbox_privateMethod(this,rh,rp).call(this)}static get observedAttributes(){return[...super.observedAttributes,"aria-multiselectable",eS.MEDIA_PLAYBACK_RATE,t1.RATES]}attributeChangedCallback(b,A,B){super.attributeChangedCallback(b,A,B),b===eS.MEDIA_PLAYBACK_RATE&&A!=B?this.value=B:b===t1.RATES&&A!=B&&(media_playback_rate_listbox_privateGet(this,rm).value=B,media_playback_rate_listbox_privateMethod(this,rh,rp).call(this))}get rates(){return media_playback_rate_listbox_privateGet(this,rm)}set rates(b){b?Array.isArray(b)&&(media_playback_rate_listbox_privateGet(this,rm).value=b.join(" ")):media_playback_rate_listbox_privateGet(this,rm).value="",media_playback_rate_listbox_privateMethod(this,rh,rp).call(this)}get mediaPlaybackRate(){return getNumericAttr(this,eS.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(b){setNumericAttr(this,eS.MEDIA_PLAYBACK_RATE,b)}connectedCallback(){super.connectedCallback(),this.addEventListener("change",media_playback_rate_listbox_privateMethod(this,r_,rv))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",media_playback_rate_listbox_privateMethod(this,r_,rv))}}),eV.customElements.get("media-playback-rate-selectmenu")||eV.customElements.define("media-playback-rate-selectmenu",class extends MediaChromeSelectMenu{init(){let b=eH.createElement("media-playback-rate-button");b.part.add("button"),b.preventClick=!0;let A=eH.createElement("media-playback-rate-listbox");A.part.add("listbox"),A.setAttribute("exportparts","option, option-selected, indicator");let B=this.shadowRoot.querySelector("slot[name=button]"),G=this.shadowRoot.querySelector("slot[name=listbox]");B.textContent="",G.textContent="",B.append(b),G.append(A)}});var media_rendition_listbox_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_rendition_listbox_privateGet=(b,A,B)=>(media_rendition_listbox_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_rendition_listbox_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_rendition_listbox_privateSet=(b,A,B,G)=>(media_rendition_listbox_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),media_rendition_listbox_privateMethod=(b,A,B)=>(media_rendition_listbox_accessCheck(b,A,"access private method"),B);rb=new WeakMap,rg=new WeakMap,rE=new WeakSet,rf=function(){if(media_rendition_listbox_privateGet(this,rg)===JSON.stringify(this.mediaRenditionList))return;media_rendition_listbox_privateSet(this,rg,JSON.stringify(this.mediaRenditionList));let b=this.mediaRenditionList.sort((b,A)=>A.height-b.height),A=this.shadowRoot.querySelector("#container");A.textContent="";let B=!this.mediaRenditionSelected;for(let G of b){let b=this.formatOptionText(`${Math.min(G.width,G.height)}p`,G),W=createOption(b,`${G.id}`,G.selected&&!B);W.prepend(createIndicator(this,"select-indicator")),A.append(W)}let G=createOption(this.formatOptionText("Auto"),"auto",B);G.prepend(createIndicator(this,"select-indicator")),A.append(G)},ry=new WeakSet,rA=function(){if(null==this.value)return;let b=new eV.CustomEvent(eA.MEDIA_RENDITION_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(b)},eV.customElements.get("media-rendition-listbox")||eV.customElements.define("media-rendition-listbox",class extends MediaChromeListbox{constructor(){super(...arguments),media_rendition_listbox_privateAdd(this,rE),media_rendition_listbox_privateAdd(this,ry),media_rendition_listbox_privateAdd(this,rb,[]),media_rendition_listbox_privateAdd(this,rg,void 0)}static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_RENDITION_LIST,eS.MEDIA_RENDITION_SELECTED]}attributeChangedCallback(b,A,B){(super.attributeChangedCallback(b,A,B),b===eS.MEDIA_RENDITION_SELECTED&&A!==B)?this.value=null!=B?B:"auto":b===eS.MEDIA_RENDITION_LIST&&A!==B&&(media_rendition_listbox_privateSet(this,rb,null==B?void 0:B.split(/\s+/).map(parseRendition)),media_rendition_listbox_privateMethod(this,rE,rf).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",media_rendition_listbox_privateMethod(this,ry,rA))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",media_rendition_listbox_privateMethod(this,ry,rA))}get mediaRenditionList(){return media_rendition_listbox_privateGet(this,rb)}set mediaRenditionList(b){media_rendition_listbox_privateSet(this,rb,b),media_rendition_listbox_privateMethod(this,rE,rf).call(this)}get mediaRenditionSelected(){return getStringAttr(this,eS.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(b){setStringAttr(this,eS.MEDIA_RENDITION_SELECTED,b)}});let t2=`<svg aria-hidden="true" viewBox="0 0 24 24">
1042  <path d="M13.5 2.5h2v6h-2v-2h-11v-2h11v-2Zm4 2h4v2h-4v-2Zm-12 4h2v6h-2v-2h-3v-2h3v-2Zm4 2h12v2h-12v-2Zm1 4h2v6h-2v-2h-8v-2h8v-2Zm4 2h7v2h-7v-2Z" />
1043</svg>`,t3=eH.createElement("template");t3.innerHTML=`
1044  <slot name="icon">${t2}</slot>
1045`,eV.customElements.get("media-rendition-button")||eV.customElements.define("media-rendition-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_RENDITION_SELECTED,eS.MEDIA_RENDITION_UNAVAILABLE]}constructor(){super({slotTemplate:t3})}get mediaRenditionSelected(){return getStringAttr(this,eS.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(b){setStringAttr(this,eS.MEDIA_RENDITION_SELECTED,b)}}),eV.customElements.get("media-rendition-selectmenu")||eV.customElements.define("media-rendition-selectmenu",class extends MediaChromeSelectMenu{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_RENDITION_SELECTED,eS.MEDIA_RENDITION_UNAVAILABLE]}init(){let b=eH.createElement("media-rendition-button");b.part.add("button"),b.preventClick=!0;let A=eH.createElement("media-rendition-listbox");A.part.add("listbox"),A.setAttribute("exportparts","option, option-selected, indicator");let B=this.shadowRoot.querySelector("slot[name=button]"),G=this.shadowRoot.querySelector("slot[name=listbox]");B.textContent="",G.textContent="",B.append(b),G.append(A)}});var media_audio_track_listbox_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_audio_track_listbox_privateGet=(b,A,B)=>(media_audio_track_listbox_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_audio_track_listbox_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_audio_track_listbox_privateSet=(b,A,B,G)=>(media_audio_track_listbox_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),media_audio_track_listbox_privateMethod=(b,A,B)=>(media_audio_track_listbox_accessCheck(b,A,"access private method"),B);rk=new WeakMap,rT=new WeakMap,rw=new WeakSet,rS=function(){if(media_audio_track_listbox_privateGet(this,rT)===JSON.stringify(this.mediaAudioTrackList))return;media_audio_track_listbox_privateSet(this,rT,JSON.stringify(this.mediaAudioTrackList));let b=this.mediaAudioTrackList,A=this.shadowRoot.querySelector("#container");for(let B of(A.textContent="",b)){let b=this.formatOptionText(B.label,B),G=createOption(b,`${B.id}`,B.enabled);G.prepend(createIndicator(this,"select-indicator")),A.append(G)}},rI=new WeakSet,rC=function(){if(null==this.value)return;let b=new eV.CustomEvent(eA.MEDIA_AUDIO_TRACK_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(b)},eV.customElements.get("media-audio-track-listbox")||eV.customElements.define("media-audio-track-listbox",class extends MediaChromeListbox{constructor(){super(...arguments),media_audio_track_listbox_privateAdd(this,rw),media_audio_track_listbox_privateAdd(this,rI),media_audio_track_listbox_privateAdd(this,rk,[]),media_audio_track_listbox_privateAdd(this,rT,void 0)}static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_AUDIO_TRACK_LIST,eS.MEDIA_AUDIO_TRACK_ENABLED]}attributeChangedCallback(b,A,B){(super.attributeChangedCallback(b,A,B),b===eS.MEDIA_AUDIO_TRACK_ENABLED&&A!==B)?this.value=B:b===eS.MEDIA_AUDIO_TRACK_LIST&&A!==B&&(media_audio_track_listbox_privateSet(this,rk,null==B?void 0:B.split(/\s+/).map(parseAudioTrack)),media_audio_track_listbox_privateMethod(this,rw,rS).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",media_audio_track_listbox_privateMethod(this,rI,rC))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",media_audio_track_listbox_privateMethod(this,rI,rC))}get mediaAudioTrackList(){return media_audio_track_listbox_privateGet(this,rk)}set mediaAudioTrackList(b){media_audio_track_listbox_privateSet(this,rk,b),media_audio_track_listbox_privateMethod(this,rw,rS).call(this)}get mediaAudioTrackEnabled(){return getStringAttr(this,eS.MEDIA_AUDIO_TRACK_ENABLED)}set mediaAudioTrackEnabled(b){setStringAttr(this,eS.MEDIA_AUDIO_TRACK_ENABLED,b)}});let t9=`<svg aria-hidden="true" viewBox="0 0 24 24">
1046  <path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/>
1047  <path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z"/>
1048</svg>`,t5=eH.createElement("template");t5.innerHTML=`
1049  <slot name="icon">${t9}</slot>
1050`,eV.customEleme
1050nts.get("media-audio-track-button")||eV.customElements.define("media-audio-track-button",class extends MediaChromeButton{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_AUDIO_TRACK_ENABLED,eS.MEDIA_AUDIO_TRACK_UNAVAILABLE]}constructor(){super({slotTemplate:t5})}get mediaAudioTrackEnabled(){return getStringAttr(this,eS.MEDIA_AUDIO_TRACK_ENABLED)}set mediaAudioTrackEnabled(b){setStringAttr(this,eS.MEDIA_AUDIO_TRACK_ENABLED,b)}}),eV.customElements.get("media-audio-track-selectmenu")||eV.customElements.define("media-audio-track-selectmenu",class extends MediaChromeSelectMenu{static get observedAttributes(){return[...super.observedAttributes,eS.MEDIA_AUDIO_TRACK_ENABLED,eS.MEDIA_AUDIO_TRACK_UNAVAILABLE]}init(){let b=eH.createElement("media-audio-track-button");b.part.add("button"),b.preventClick=!0;let A=eH.createElement("media-audio-track-listbox");A.part.add("listbox"),A.setAttribute("exportparts","option, option-selected, indicator");let B=this.shadowRoot.querySelector("slot[name=button]"),G=this.shadowRoot.querySelector("slot[name=listbox]");B.textContent="",G.textContent="",B.append(b),G.append(A)}});var t4=Object.defineProperty,t8=Object.getPrototypeOf,t6=Reflect.get,li=(b,A,B)=>A in b?t4(b,A,{enumerable:!0,configurable:!0,writable:!0,value:B}):b[A]=B,E=(b,A,B)=>(li(b,"symbol"!=typeof A?A+"":A,B),B),pt=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},i=(b,A,B)=>(pt(b,A,"read from private field"),B?B.call(b):A.get(b)),c=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},u=(b,A,B,G)=>(pt(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),T=(b,A,B)=>(pt(b,A,"access private method"),B),dist_$e=(b,A,B)=>t6(t8(b),B,A),t7=class{addEventListener(){}removeEventListener(){}dispatchEvent(b){return!0}};"undefined"==typeof DocumentFragment&&(globalThis.DocumentFragment=class extends t7{});var ii,ia,ir,io,is,il,id,iu,ic,im,ih,ip,i_,iv,ib,ig,iE,iy,iA,ik,iT,iw,iS,iI,iC,iR,iL,iM,ix,iD,iO,iN,iP,iU,iB,iG,iW,iV,iH,iq,iF,ij,i$,iK,iY,iQ,iZ,iz,iX,iJ,i0,i1,i2,i3,i9,i5,i4,i8,i6,i7,ae,at,aa,ar,an,ao,as,al,ad,au,ac,am,ah,ap,a_,av,ab,ag,aE,af,ay,aA,ak,aT,aw,aS,aI,aC,aR,aL,aM,ax,aD,aO,aN,aP,aU,aB,aG,aW,aV,aH,aq,aF,aj,a$,aK,aY,aQ,aZ,az,aX,aJ,a0,a1,a2,a3,a9,a5,a4,a8,a6,a7,re,rt,ri,ra,rr,rn,ro,rs,rl,rd,ru,rc,rm,rh,rp,r_,rv,rb,rg,rE,rf,ry,rA,rk,rT,rw,rS,rI,rC,rR,rL=class extends t7{},rM=class{constructor(b,A={}){c(this,rR,void 0),u(this,rR,null==A?void 0:A.detail)}get detail(){return i(this,rR)}initCustomEvent(){}};rR=new WeakMap;var rx={document:{createElement:function(b,A){return new rL}},DocumentFragment,customElements:{get(b){},define(b,A,B){},upgrade(b){},whenDefined:b=>Promise.resolve(rL)},CustomEvent:rM,EventTarget:t7,HTMLElement:rL,HTMLVideoElement:class extends t7{}},rD="undefined"==typeof window||void 0===globalThis.customElements,rO=rD?rx:globalThis;rD&&rx.document;var rN,rP=(()=>{try{return"0.17.2"}catch{}return"UNKNOWN"})(),rU=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],rB=null==(rN=globalThis.document)?void 0:rN.createElement("template");rB&&(rB.innerHTML=`
1051    <style>
1052      :host {
1053        display: inline-flex;
1054        line-height: 0;
1055        flex-direction: column;
1056        justify-content: end;
1057      }
1058
1059      audio {
1060        width: 100%;
1061      }
1062    </style>
1063    <slot name="media"></slot>
1064    <slot></slot>
1065  `);var rG,rW=null==(rG=globalThis.document)?void 0:rG.createElement("template");rW&&(rW.innerHTML=`
1066    <style>
1067      :host {
1068        display: inline-block;
1069        line-height: 0;
1070      }
1071
1072      video {
1073        max-width: 100%;
1074        max-height: 100%;
1075        min-width: 100%;
1076        min-height: 100%;
1077        object-fit: var(--media-object-fit, contain);
1078        object-position: var(--media-object-position, 50% 50%);
1079      }
1080
1081      video::-webkit-media-text-track-container {
1082        transform: var(--media-webkit-text-track-transform);
1083        transition: var(--media-webkit-text-track-transition);
1084      }
1085    </style>
1086    <slot name="media"></slot>
1087    <slot></slot>
1088  `);var xt=(b,{tag:A,is:B})=>{var G,W,K,et,ei,ea,er,en,eo,es,el,ed,eu,ec,em,eh;let ep=null==(G=globalThis.document)?void 0:G.createElement(A,{is:B}),e_=ep?function(b){let A=[];for(let B=Object.getPrototypeOf(b);B&&B!==HTMLElement.prototype;
1088B=Object.getPrototypeOf(B))A.push(...Object.getOwnPropertyNames(B));return A}(ep):[];return W=class extends b{constructor(){super(),c(this,eo),c(this,el),c(this,eu),c(this,em),c(this,ea,void 0),c(this,er,void 0),c(this,en,new Map),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0)))}static get observedAttributes(){var b,A;return T(W,et,ei).call(W),[...null!=(A=null==(b=null==ep?void 0:ep.constructor)?void 0:b.observedAttributes)?A:[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}get nativeEl(){var b,B,G;return null!=(G=null!=(B=null!=(b=i(this,er))?b:this.shadowRoot.querySelector(A))?B:this.querySelector(":scope > [slot=media]"))?G:this.querySelector(A)}set nativeEl(b){u(this,er,b)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(b){this.toggleAttribute("muted",!!b)}get src(){return this.getAttribute("src")}set src(b){this.setAttribute("src",`${b}`)}get preload(){var b,A;return null!=(A=this.getAttribute("preload"))?A:null==(b=this.nativeEl)?void 0:b.preload}set preload(b){this.setAttribute("preload",`${b}`)}init(){var b,G;if(!this.nativeEl){let b=document.createElement(A,{is:B});b.part=A,this.shadowRoot.querySelector('slot[name="media"]').append(b)}for(let b of(this.nativeEl.muted=this.hasAttribute("muted"),e_))T(this,eu,ec).call(this,b);for(let A of(this.shadowRoot.addEventListener("slotchange",this),this.constructor.Events))null==(G=(b=this.shadowRoot).addEventListener)||G.call(b,A,this,!0)}handleEvent(b){if("slotchange"===b.type){T(this,el,ed).call(this);return}b.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(b.type,{detail:b.detail}))}attributeChangedCallback(b,A,B){T(this,eo,es).call(this),T(this,em,eh).call(this,b,A,B)}connectedCallback(){T(this,eo,es).call(this)}},K=new WeakMap,et=new WeakSet,ei=function(){if(i(this,K))return;u(this,K,!0);let b=new Set(this.observedAttributes);for(let A of(b.delete("muted"),e_))if(!(A in this.prototype)){if("function"==typeof ep[A])this.prototype[A]=function(...b){return T(this,eo,es).call(this),this.call?this.call(A,...b):this.nativeEl[A].apply(this.nativeEl,b)};else{let B={get(){var B,G,W;T(this,eo,es).call(this);let K=A.toLowerCase();if(b.has(K)){let b=this.getAttribute(K);return null!==b&&(""===b||b)}return null!=(W=null==(B=this.get)?void 0:B.call(this,A))?W:null==(G=this.nativeEl)?void 0:G[A]}};A!==A.toUpperCase()&&(B.set=function(B){T(this,eo,es).call(this);let G=A.toLowerCase();if(b.has(G)){!0===B||!1===B||null==B?this.toggleAttribute(G,!!B):this.setAttribute(G,B);return}if(this.set){this.set(A,B);return}this.nativeEl[A]=B}),Object.defineProperty(this.prototype,A,B)}}},ea=new WeakMap,er=new WeakMap,en=new WeakMap,eo=new WeakSet,es=function(){i(this,ea)||(u(this,ea,!0),this.init())},el=new WeakSet,ed=function(){let b=new Map(i(this,en));this.shadowRoot.querySelector("slot:not([name])").assignedElements().filter(b=>["track","source"].includes(b.localName)).forEach(A=>{var B,G;b.delete(A);let W=i(this,en).get(A);W||(W=A.cloneNode(),i(this,en).set(A,W)),null==(G=(B=this.nativeEl).append)||G.call(B,W)}),b.forEach(b=>b.remove())},eu=new WeakSet,ec=function(b){if(Object.prototype.hasOwnProperty.call(this,b)){let A=this[b];delete this[b],this[b]=A}},em=new WeakSet,eh=function(b,A,B){var G,K,et,ei,ea,er;["id","class"].includes(b)||!W.observedAttributes.includes(b)&&this.constructor.observedAttributes.includes(b)||(null===B?null==(K=(G=this.nativeEl).removeAttribute)||K.call(G,b):(null==(ei=(et=this.nativeEl).getAttribute)?void 0:ei.call(et,b))!=B&&(null==(er=(ea=this.nativeEl).setAttribute)||er.call(ea,b,B)))},c(W,et),E(W,"Events",rU),E(W,"template",A.endsWith("audio")?rB:rW),c(W,K,void 0),W},rV=globalThis.document?xt(HTMLElement,{tag:"video"}):class{};globalThis.document&&xt(HTMLElement,{tag:"audio"});var rH=new WeakMap,rq=class extends Error{},rF=class extends Error{};function bt(){return"undefined"!=typeof chrome&&chrome.cast&&chrome.cast.isAvailable}function Bt(){return"undefined"!=typeof cast&&cast.framework}function dist_G(){if(Bt())return cast.framework.CastContext.getInstance()}function dist_Me(){var b;return null==(b=dist_G())?void 0:b.getCurrentSession()}function Qe(){var b;return null==(b=dist_Me())?void 0:b.getSessionObj().media[0]}function Tt(b){return dist_G().setOptions({...dist_At(),...b})}function dist_At(){return{receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0}}var rj,r$=new(globalThis.WeakRef?class extends Set{add(b){super.add(new WeakRef(b))}forEach(b){super.forEach(A=>{let B=A.deref();B&&b(B)})}}:Set),rK=new WeakSet;rY=b=>{b&&!rj&&(rj=cast.framework,dist_G().addEventListener(rj.CastContextEventType.CAST_STATE_CHANGED,b=>{r$.forEach(A=>{var B,G;return null==(G=(B=rH.get(A)).onCastStateChanged)?void 0:G.call(B,b)})}),dist_G().addEventListener(rj.CastContextEventType.SESSION_STATE_CHANGED,b=>{r$.forEach(A=>{var B,G;return null==(G=(B=rH.get(A)).onSessionStateChanged)?void 0:G.call(B,b)})}),r$.forEach(b=>{var A,B;return null==(B=(A=rH.get(b)).init)?void 0:B.call(A)}))},bt()?Bt()?rY(chrome.cast.isAvailable):customElements.whenDefined("google-cast-button").then(()=>rY(chrome.cast.isAvailable)):globalThis.__onGCastApiAvailable=()=>{customElements.whenDefined("google-cast-button").then(()=>rY(chrome.cast.isAvailable))};var rY,rQ,rZ,rz,rX,rJ,r0,r1,r2,r3,r9,r5,r4,r8,r6,r7,nt,ni,na,nr,nn,no,ns,nl=0,nd=class extends 
1088EventTarget{constructor(b){super(),c(this,r3),c(this,r5),c(this,r8),c(this,r7),c(this,ni),c(this,nr),c(this,no),c(this,rQ,void 0),c(this,rZ,void 0),c(this,rz,void 0),c(this,rX,void 0),c(this,rJ,"disconnected"),c(this,r0,!1),c(this,r1,new Set),c(this,r2,new WeakMap),u(this,rQ,b),r$.add(this),rH.set(this,{init:()=>T(this,ni,na).call(this),onCastStateChanged:()=>T(this,r8,r6).call(this),onSessionStateChanged:()=>T(this,r7,nt).call(this),getCastPlayer:()=>i(this,r3,r9)}),T(this,ni,na).call(this)}get state(){return i(this,rJ)}async watchAvailability(b){if(i(this,rQ).disableRemotePlayback)throw new rq("disableRemotePlayback attribute is present.");return i(this,r2).set(b,++nl),i(this,r1).add(b),nl}async cancelWatchAvailability(b){if(i(this,rQ).disableRemotePlayback)throw new rq("disableRemotePlayback attribute is present.");b?i(this,r1).delete(b):i(this,r1).clear()}async prompt(){var b,A;if(i(this,rQ).disableRemotePlayback)throw new rq("disableRemotePlayback attribute is present.");if(!bt())throw new rF("The RemotePlayback API is disabled on this platform.");let B=rK.has(i(this,rQ));rK.add(i(this,rQ)),Tt(i(this,rQ).castOptions),Object.entries(i(this,rX)).forEach(([b,A])=>{i(this,rz).controller.addEventListener(b,A)});try{await dist_G().requestSession()}catch(b){if("cancel"===b){B||rK.delete(i(this,rQ));return}throw Error(b)}null==(A=null==(b=rH.get(i(this,rQ)))?void 0:b.loadOnPrompt)||A.call(b)}};rQ=new WeakMap,rZ=new WeakMap,rz=new WeakMap,rX=new WeakMap,rJ=new WeakMap,r0=new WeakMap,r1=new WeakMap,r2=new WeakMap,r3=new WeakSet,r9=function(){if(rK.has(i(this,rQ)))return i(this,rz)},r5=new WeakSet,r4=function(){rK.has(i(this,rQ))&&(Object.entries(i(this,rX)).forEach(([b,A])=>{i(this,rz).controller.removeEventListener(b,A)}),rK.delete(i(this,rQ)),i(this,rQ).muted=i(this,rz).isMuted,i(this,rQ).currentTime=i(this,rz).savedPlayerState.currentTime,!1===i(this,rz).savedPlayerState.isPau
1088sed&&i(this,rQ).play())},r8=new WeakSet,r6=function(){let b=dist_G().getCastState();if(rK.has(i(this,rQ))&&"CONNECTING"===b&&(u(this,rJ,"connecting"),this.dispatchEvent(new Event("connecting"))),!i(this,r0)&&null!=b&&b.includes("CONNECT"))for(let b of(u(this,r0,!0),i(this,r1)))b(!0);else if(i(this,r0)&&(!b||"NO_DEVICES_AVAILABLE"===b))for(let b of(u(this,r0,!1),i(this,r1)))b(!1)},r7=new WeakSet,nt=async function(){var b,A;let{SESSION_RESUMED:B}=rj.SessionState;if(dist_G().getSessionState()===B&&i(this,rQ).castSrc===(null==(b=Qe())?void 0:b.media.contentId)){rK.add(i(this,rQ)),Object.entries(i(this,rX)).forEach(([b,A])=>{i(this,rz).controller.addEventListener(b,A)});try{await (A=new chrome.cast.media.GetStatusRequest,new Promise((b,B)=>{Qe().getStatus(A,b,B)}))}catch(b){console.error(b)}i(this,rX)[rj.RemotePlayerEventType.IS_PAUSED_CHANGED](),i(this,rX)[rj.RemotePlayerEventType.PLAYER_STATE_CHANGED]()}},ni=new WeakSet,na=function(){!rj||i(this,rZ)||(u(this,rZ,!0),Tt(i(this,rQ).castOptions),i(this,rQ).textTracks.addEventListener("change",()=>T(this,no,ns).call(this)),T(this,r8,r6).call(this),u(this,rz,new rj.RemotePlayer),new rj.RemotePlayerController(i(this,rz)),u(this,rX,{[rj.RemotePlayerEventType.IS_CONNECTED_CHANGED]:({value:b})=>{!0===b?(u(this,rJ,"connected"),this.dispatchEvent(new Event("connect"))):(T(this,r5,r4).call(this),u(this,rJ,"disconnected"),this.dispatchEvent(new Event("disconnect")))},[rj.RemotePlayerEventType.DURATION_CHANGED]:()=>{i(this,rQ).dispatchEvent(new Event("durationchange"))},[rj.RemotePlayerEventType.VOLUME_LEVEL_CHANGED]:()=>{i(this,rQ).dispatchEvent(new Event("volumechange"))},[rj.RemotePlayerEventType.IS_MUTED_CHANGED]:()=>{i(this,rQ).dispatchEvent(new Event("volumechange"))},[rj.RemotePlayerEventType.CURRENT_TIME_CHANGED]:()=>{var b;null!=(b=i(this,r3,r9))&&b.isMediaLoaded&&i(this,rQ).dispatchEvent(new Event("timeupdate"))},[rj.RemotePlayerEventType.VIDEO_INFO_CHANGED]:()=>{i(this,rQ).dispatchEvent(new Event("resize"))},[rj.RemotePlayerEventType.IS_PAUSED_CHANGED]:()=>{i(this,rQ).dispatchEvent(new Event(this.paused?"pause":"play"))},[rj.RemotePlayerEventType.PLAYER_STATE_CHANGED]:()=>{var b,A;(null==(b=i(this,r3,r9))?void 0:b.playerState)!==chrome.cast.media.PlayerState.PAUSED&&i(this,rQ).dispatchEvent(new Event({[chrome.cast.media.PlayerState.PLAYING]:"playing",[chrome.cast.media.PlayerState.BUFFERING]:"waiting",[chrome.cast.media.PlayerState.IDLE]:"emptied"}[null==(A=i(this,r3,r9))?void 0:A.playerState]))},[rj.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED]:async()=>{var b;null!=(b=i(this,r3,r9))&&b.isMediaLoaded&&(await Promise.resolve(),T(this,nr,nn).call(this))}}))},nr=new WeakSet,nn=function(){T(this,no,ns).call(this)},no=new WeakSet,ns=async function(){var b,A,B,G,W,K;if(!i(this,r3,r9))return;let et=(null!=(A=null==(b=i(this,rz).mediaInfo)?void 0:b.tracks)?A:[]).filter(({type:b})=>b===chrome.cast.media.TrackType.TEXT),ei=[...i(this,rQ).textTracks].filter(({kind:b})=>"subtitles"===b||"captions"===b),ea=et.map(({language:b,name:A,trackId:B})=>{var G;let{mode:W}=null!=(G=ei.find(B=>B.language===b&&B.label===A))?G:{};return!!W&&{mode:W,trackId:B}}).filter(Boolean),er=ea.filter(({mode:b})=>"showing"!==b).map(({trackId:b})=>b),en=ea.find(({mode:b})=>"showing"===b),eo=null!=(W=null==(G=null==(B=dist_Me())?void 0:B.getSessionObj().media[0])?void 0:G.activeTrackIds)?W:[],es=eo;if(eo.length&&(es=es.filter(b=>!er.includes(b))),null!=en&&en.trackId&&(es=[...es,en.trackId]),K=es=[...new Set(es)],!(eo.length===K.length&&eo.every(b=>K.includes(b))))try{let b=new chrome.cast.media.EditTracksInfoRequest(es);await new Promise((A,B)=>{Qe().editTracksInfo(b,A,B)})}catch(b){console.error(b)}};var zt=b=>{var A,B,G,W,K,et,ei,ea,er;return B=class extends b{constructor(){super(...arguments),c(this,et),c(this,ea),c(this,G,{paused:!1}),c(this,W,dist_At()),c(this,K,void 0)}get remote(){return i(this,K)?i(this,K):globalThis.chrome?(function(){let b="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";if(globalThis.chrome.cast||document.querySelector(`script[src="${b}"]`))return;let A=document.createElement("script");A.src=b,document.head.append(A)}(),rH.set(this,{loadOnPrompt:()=>T(this,ea,er).call(this)}),u(this,K,new nd(this))):super.remote}attributeChangedCallback(b,A,B){if(super.attributeChangedCallback(b,A,B),"cast-receiver"===b&&B){i(this,W).receiverApplicationId=B;return}if(i(this,et,ei))switch(b){case"cast-stream-type":case"cast-src":this.load()}}async load(){var b,A;if(!i(this,et,ei))return super.load();let B=new chrome.cast.media.MediaInfo(this.castSrc,this.castContentType),W=[...this.querySelectorAll("track")].filter(({kind:b,src:A})=>A&&("subtitles"===b||"captions"===b)),K=[],ea=0;W.length&&(B.tracks=W.map(b=>{let A=++ea;0===K.length&&"showing"===b.track.mode&&K.push(A);let B=new chrome.cast.media.Track(A,chrome.cast.media.TrackType.TEXT);return B.trackContentId=b.src,B.trackContentType="text/vtt",B.subtype="captions"===b.kind?chrome.cast.media.TextTrackType.CAPTIONS:chrome.cast.media.TextTrackType.SUBTITLES,B.name=b.label,B.language=b.srclang,B})),"live"===this.castStreamType?B.streamType=chrome.cast.media.StreamType.LIVE:B.streamType=chrome.cast.media.StreamType.BUFFERED,B.metadata=new chrome.cast.media.GenericMediaMetadata,B.metadata.title=this.title,B.metadata.images=[{url:this.poster}];let er=new chrome.cast.media.LoadRequest(B);er.currentTime=null!=(b=super.currentTime)?b:0,er.autoplay=!i(this,G).paused,er.activeTrackIds=K,await (null==(A=dist_Me())?void 0:A.loadMedia(er)),this.dispatchEvent(new Event("volumechange"))}play(){var b;if(i(this,et,ei)){i(this,et,ei).isPaused&&(null==(b=i(this,et,ei).controller)||b.playOrPause());return}return super.play()}pause(){var b;if(i(this,et,ei)){i(this,et,ei).isPaused||null==(b=i(this,et,ei).controller)||b.playOrPause();return}super.pause()}get castOptions(){return i(this,W)}get castReceiver(){var b;return null!=(b=this.getAttribute("cast-receiver"))?b:void 0}set castReceiver(b){this.castReceiver!=b&&this.setAttribute("cast-receiver",`${b}`)}get castSrc(){var b,A,B;return null!=(B=null!=(A=this.getAttribute("cast-src"))?A:null==(b=this.querySelector("source"))?void 0:b.src)?B:this.currentSrc}set castSrc(b){this.castSrc!=b&&this.setAttribute("cast-src",`${b}`)}get castContentType(){var b;return null!=(b=this.getAttribute("cast-content-type"))?b:void 0}set castContentType(b){this.setAttribute("cast-content-type",`${b}`)}get castStreamType(){var b,A;return null!=(A=null!=(b=this.getAttribute("cast-stream-type"))?b:this.streamType)?A:void 0}set castStreamType(b){this.setAttribute("cast-stream-type",`${b}`)}get readyState(){if(i(this,et,ei))switch(i(this,et,ei).playerState){case chrome.cast.media.PlayerState.IDLE:return 0;case chrome.cast.media.PlayerState.BUFFERING:return 2;default:return 3}return super.readyState}get paused(){return i(this,et,ei)?i(this,et,ei).isPaused:super.paused}get muted(){var b;return i(this,et,ei)?null==(b=i(this,et,ei))?void 0:b.isMuted:super.muted}set muted(b){var A;if(i(this,et,ei)){(b&&!i(this,et,ei).isMuted||!b&&i(this,et,ei).isMuted)&&(null==(A=i(this,et,ei).controller)||A.muteOr
1088Unmute());return}super.muted=b}get volume(){var b,A;return i(this,et,ei)?null!=(A=null==(b=i(this,et,ei))?void 0:b.volumeLevel)?A:1:super.volume}set volume(b){var A;if(i(this,et,ei)){i(this,et,ei).volumeLevel=+b,null==(A=i(this,et,ei).controller)||A.setVolumeLevel();return}super.volume=b}get duration(){var b,A,B;return i(this,et,ei)&&null!=(b=i(this,et,ei))&&b.isMediaLoaded?null!=(B=null==(A=i(this,et,ei))?void 0:A.duration)?B:NaN:super.duration}get currentTime(){var b,A,B;return i(this,et,ei)&&null!=(b=i(this,et,ei))&&b.isMediaLoaded?null!=(B=null==(A=i(this,et,ei))?void 0:A.currentTime)?B:0:super.currentTime}set currentTime(b){var A;if(i(this,et,ei)){i(this,et,ei).currentTime=b,null==(A=i(this,et,ei).controller)||A.seek();return}super.currentTime=b}},G=new WeakMap,W=new WeakMap,K=new WeakMap,et=new WeakSet,ei=function(){var b,A;return null==(A=null==(b=rH.get(this.remote))?void 0:b.getCastPlayer)?void 0:A.call(b)},ea=new WeakSet,er=async function(){i(this,G).paused=dist_$e(B.prototype,this,"paused"),dist_$e(B.prototype,this,"pause").call(this),this.muted=dist_$e(B.prototype,this,"muted");try{await this.load()}catch(b){console.error(b)}},E(B,"observedAttributes",[...null!=(A=b.observedAttributes)?A:[],"cast-src","cast-content-type","cast-stream-type","cast-receiver"]),B},nu=class extends Event{constructor(b,A){super(b),E(this,"track"),this.track=A.track}},nc=new WeakMap;function a(b){var A;let B;return null!=(A=nc.get(b))?A:((B=nc.get(b))||nc.set(b,B={}),Object.assign(B,{}))}function st(b,A){let B=b.videoTracks;a(A).media=b,a(A).renditionSet||(a(A).renditionSet=new Set);let G=a(B).trackSet;G.add(A);let W=G.size-1;W in nb.prototype||Object.defineProperty(nb.prototype,W,{get(){return[...a(this).trackSet][W]}}),queueMicrotask(()=>{B.dispatchEvent(new nu("addtrack",{track:A}))})}function ot(b){var A;let B=null==(A=a(b).media)?void 0:A.videoTracks;B&&(a(B).trackSet.delete(b),queueMicrotask(()=>{B.dispatchEvent(new nu("removetrack",{track:b}))}))}var nm,nh,np,n_,nv,nb=class extends EventTarget{constructor(){super(),c(this,n_),c(this,nm,void 0),c(this,nh,void 0),c(this,np,void 0),a(this).trackSet=new Set}[Symbol.iterator](){return i(this,n_,nv).values()}get length(){return i(this,n_,nv).size}getTrackById(b){var A;return null!=(A=[...i(this,n_,nv)].find(A=>A.id===b))?A:null}get selectedIndex(){return[...i(this,n_,nv)].findIndex(b=>b.selected)}get onaddtrack(){return i(this,nm)}set onaddtrack(b){i(this,nm)&&(this.removeEventListener("addtrack",i(this,nm)),u(this,nm,void 0)),"function"==typeof b&&(u(this,nm,b),this.addEventListener("addtrack",b))}get onremovetrack(){return i(this,nh)}set onremovetrack(b){i(this,nh)&&(this.removeEventListener("removetrack",i(this,nh)),u(this,nh,void 0)),"function"==typeof b&&(u(this,nh,b),this.addEventListener("removetrack",b))}get onchange(){return i(this,np)}set onchange(b){i(this,np)&&(this.removeEventListener("change",i(this,np)),u(this,np,void 0)),"function"==typeof b&&(u(this,np,b),this.addEventListener("change",b))}};nm=new WeakMap,nh=new WeakMap,np=new WeakMap,n_=new WeakSet,nv=function(){return a(this).trackSet};var ng=class extends Event{constructor(b,A){super(b),E(this,"rendition"),this.rendition=A.rendition}};function dist_ve(b){return[...a(b).media.videoTracks].filter(b=>b.selected).flatMap(b=>[...a(b).renditionSet])}var nE,nf,ny,nA=class extends EventTarget{constructor(){super(...arguments),c(this,nE,void 0),c(this,nf,void 0),c(this,ny,void 0)}[Symbol.iterator](){return dist_ve(this).values()}get length(){return dist_ve(this).length}getRenditionById(b){var A;return null!=(A=dist_ve(this).find(A=>`${A.id}`==`${b}`))?A:null}get selectedIndex(){return dist_ve(this).findIndex(b=>b.selected)}set selectedIndex(b){for(let[A,B]of dist_ve(this).entries())B.selected=A===b}get onaddrendition(){return i(this,nE)}set onaddrendition(b){i(this,nE)&&(this.removeEventListener("addrendition",i(this,nE)),u(this,nE,void 0)),"function"==typeof b&&(u(this,nE,b),this.addEventListener("addrendition",b))}get onremoverendition(){return i(this,nf)}set onremoverendition(b){i(this,nf)&&(this.removeEventListener("removerendition",i(this,nf)),u(this,nf,void 0)),"function"==typeof b&&(u(this,nf,b),this.addEventListener("removerendition",b))}get onchange(){return i(this,ny)}set onchange(b){i(this,ny)&&(this.removeEventListener("change",i(this,ny)),u(this,ny,void 0)),"function"==typeof b&&(u(this,ny,b),this.addEventListener("change",b))}};nE=new WeakMap,nf=new WeakMap,ny=new WeakMap;var nk,nT=class{constructor(){E(this,"src"),E(this,"id"),E(this,"width"),E(this,"height"),E(this,"bitrate"),E(this,"frameRate"),E(this,"codec"),c(this,nk,!1)}get selected(){return i(this,nk)}set selected(b){var A;let B;i(this,nk)!==b&&(u(this,nk,b),A=this,(B=a(A).media.videoRenditions)&&!a(B).changeRequested&&(a(B).changeRequested=!0,queueMicrotask(()=>{delete a(B).changeRequested,a(A).track.selected&&B.dispatchEvent(new Event("change"))})))}};nk=new WeakMap;var nw,nS=class{constructor(){E(this,"id"),E(this,"kind"),E(this,"label",""),E(this,"language",""),E(this,"sourceBuffer"),c(this,nw,!1)}addRendition(b,A,B,G,W,K){var et;let ei,ea,er,en=new nT;return en.src=b,en.width=A,en.height=B,en.frameRate=K,en.bitrate=W,en.codec=G,et=this,ei=a(et).media.videoRenditions,a(en).media=a(et).media,a(en).track=et,(ea=a(et).renditionSet).add(en),(er=ea.size-1)in nA.prototype||Ob
1088ject.defineProperty(nA.prototype,er,{get(){return dist_ve(this)[er]}}),queueMicrotask(()=>{et.selected&&ei.dispatchEvent(new ng("addrendition",{rendition:en}))}),en}removeRendition(b){let A,B;A=a(b).media.videoRenditions,B=a(b).track,a(B).renditionSet.delete(b),queueMicrotask(()=>{a(b).track.selected&&A.dispatchEvent(new ng("removerendition",{rendition:b}))})}get selected(){return i(this,nw)}set selected(b){i(this,nw)!==b&&(u(this,nw,b),!0===b&&function(b){var A;let B=null!=(A=a(b).media.videoTracks)?A:[],G=!1;for(let A of B)A!==b&&(A.selected=!1,G=!0);if(G){if(a(B).changeRequested)return;a(B).changeRequested=!0,queueMicrotask(()=>{delete a(B).changeRequested,B.dispatchEvent(new Event("change"))})}}(this))}};function dist_Ae(b){return[...a(b).media.audioTracks].filter(b=>b.enabled).flatMap(b=>[...a(b).renditionSet])}nw=new WeakMap;var nI,nC,nR,nL=class extends EventTarget{constructor(){super(...arguments),c(this,nI,void 0),c(this,nC,void 0),c(this,nR,void 0)}[Symbol.iterator](){return dist_Ae(this).values()}get length(){return dist_Ae(this).length}getRenditionById(b){var A;return null!=(A=dist_Ae(this).find(A=>`${A.id}`==`${b}`))?A:null}get selectedIndex(){return dist_Ae(this).findIndex(b=>b.selected)}set selectedIndex(b){for(let[A,B]of dist_Ae(this).entries())B.selected=A===b}get onaddrendition(){return i(this,nI)}set onaddrendition(b){i(this,nI)&&(this.removeEventListener("addrendition",i(this,nI)),u(this,nI,void 0)),"function"==typeof b&&(u(this,nI,b),this.addEventListener("addrendition",b))}get onremoverendition(){return i(this,nC)}set onremoverendition(b){i(this,nC)&&(this.removeEventListener("removerendition",i(this,nC)),u(this,nC,void 0)),"function"==typeof b&&(u(this,nC,b),this.addEventListener("removerendition",b))}get onchange(){return i(this,nR)}set onchange(b){i(this,nR)&&(this.removeEventListener("change",i(this,nR)),u(this,nR,void 0)),"function"==typeof b&&(u(this,nR,b),this.addEventListener("change",b))}};nI=new WeakMap,nC=new WeakMap,nR=new WeakMap;var nM,nx=class{constructor(){E(this,"src"),E(this,"id"),E(this,"bitrate"),E(this,"codec"),c(this,nM,!1)}get selected(){return i(this,nM)}set selected(b){var A;let B;i(this,nM)!==b&&(u(this,nM,b),A=this,(B=a(A).media.audioRenditions)&&!a(B).changeRequested&&(a(B).changeRequested=!0,queueMicrotask(()=>{delete a(B).changeRequested,a(A).track.enabled&&B.dispatchEvent(new Event("change"))})))}};function dt(b,A){let B=b.audioTracks;a(A).media=b,a(A).renditionSet||(a(A).renditionSet=new Set);let G=a(B).trackSet;G.add(A);let W=G.size-1;W in nB.prototype||Object.defineProperty(nB.prototype,W,{get(){return[...a(this).trackSet][W]}}),queueMicrotask(()=>{B.dispatchEvent(new nu("addtrack",{track:A}))})}function ct(b){var A;let B=null==(A=a(b).media)?void 0:A.audioTracks;B&&(a(B).trackSet.delete(b),queueMicrotask(()=>{B.dispatchEvent(new nu("removetrack",{track:b}))}))}nM=new WeakMap;var nD,nO,nN,nP,nU,nB=class extends EventTarget{constructor(){super(),c(this,nP),c(this,nD,void 0),c(this,nO,void 0),c(this,nN,void 0),a(this).trackSet=new Set}[Symbol.iterator](){return i(this,nP,nU).values()}get length(){return i(this,nP,nU).size}getTrackById(b){var A;return null!=(A=[...i(this,nP,nU)].find(A=>A.id===b))?A:null}get onaddtrack(){return i(this,nD)}set onaddtrack(b){i(this,nD)&&(this.removeEventListener("addtrack",i(this,nD)),u(this,nD,void 0)),"function"==typeof b&&(u(this,nD,b),this.addEventListener("addtrack",b))}get onremovetrack(){return i(this,nO)}set onremovetrack(b){i(this,nO)&&(this.removeEventListener("removetrack",i(this,nO)),u(this,nO,void 0)),"function"==typeof b&&(u(this,nO,b),this.addEventListener("removetrack",b))}get onchange(){return i(this,nN)}set onchange(b){i(this,nN)&&(this.removeEventListener("change",i(this,nN)),u(this,nN,void 0)),"function"==typeof b&&(u(this,nN,b),this.addEventListener("change",b))}};nD=new WeakMap,nO=new WeakMap,nN=new WeakMap,nP=new WeakSet,nU=function(){return a(this).trackSet};var nG,nW=class{constructor(){E(this,"id"),E(this,"kind"),E(this,"label",""),E(this,"language",""),E(this,"sourceBuffer"),c(this,nG,!1)}addRendition(b,A,B){var G;let W,K,et,ei=new nx;return ei.src=b,ei.codec=A,ei.bitrate=B,G=this,W=a(G).media.audioRenditions,a(ei).media=a(G).media,a(ei).track=G,(K=a(G).renditionSet).add(ei),(et=K.size-1)in nL.prototype||Ob
1088ject.defineProperty(nL.prototype,et,{get(){return dist_Ae(this)[et]}}),queueMicrotask(()=>{G.enabled&&W.dispatchEvent(new ng("addrendition",{rendition:ei}))}),ei}removeRendition(b){let A,B;A=a(b).media.audioRenditions,B=a(b).track,a(B).renditionSet.delete(b),queueMicrotask(()=>{a(b).track.enabled&&A.dispatchEvent(new ng("removerendition",{rendition:b}))})}get enabled(){return i(this,nG)}set enabled(b){let A;i(this,nG)!==b&&(u(this,nG,b),(A=a(this).media.audioTracks)&&!a(A).changeRequested&&(a(A).changeRequested=!0,queueMicrotask(()=>{delete a(A).changeRequested,A.dispatchEvent(new Event("change"))})))}};nG=new WeakMap;var nV=ut(globalThis.HTMLMediaElement,"video"),nH=ut(globalThis.HTMLMediaElement,"audio");function ai(b){if(!(null!=b&&b.prototype))return b;let A=ut(b,"video");(!A||`${A}`.includes("[native code]"))&&Object.defineProperty(b.prototype,"videoTracks",{get(){return function(b){var A;let B=a(b).videoTracks;if(!B&&(B=new nb,a(b).videoTracks=B,nV)){let G=nV.call(null!=(A=b.nativeEl)?A:b);for(let A of G)st(b,A);G.addEventListener("change",()=>{B.dispatchEvent(new Event("change"))}),G.addEventListener("addtrack",A=>{if([...B].some(b=>b instanceof nS)){for(let b of G)ot(b);return}st(b,A.track)}),G.addEventListener("removetrack",b=>{ot(b.track)})}return B}(this)}});let B=ut(b,"audio");(!B||`${B}`.includes("[native code]"))&&Object.defineProperty(b.prototype,"audioTracks",{get(){return function(b){var A;let B=a(b).audioTracks;
1088if(!B&&(B=new nB,a(b).audioTracks=B,nH)){let G=nH.call(null!=(A=b.nativeEl)?A:b);for(let A of G)dt(b,A);G.addEventListener("change",()=>{B.dispatchEvent(new Event("change"))}),G.addEventListener("addtrack",A=>{if([...B].some(b=>b instanceof nW)){for(let b of G)ct(b);return}dt(b,A.track)}),G.addEventListener("removetrack",b=>{ct(b.track)})}return B}(this)}}),"addVideoTrack"in b.prototype||(b.prototype.addVideoTrack=function(b,A="",B=""){let G=new nS;return G.kind=b,G.label=A,G.language=B,st(this,G),G}),"removeVideoTrack"in b.prototype||(b.prototype.removeVideoTrack=ot),"addAudioTrack"in b.prototype||(b.prototype.addAudioTrack=function(b,A="",B=""){let G=new nW;return G.kind=b,G.label=A,G.language=B,dt(this,G),G}),"removeAudioTrack"in b.prototype||(b.prototype.removeAudioTrack=ct),"videoRenditions"in b.prototype||Object.defineProperty(b.prototype,"videoRenditions",{get(){return n(this)}});let n=b=>{let A=a(b).videoRenditions;return A||(a(A=new nA).media=b,a(b).videoRenditions=A),A};"audioRenditions"in b.prototype||Object.defineProperty(b.prototype,"audioRenditions",{get(){return s(this)}});let s=b=>{let A=a(b).audioRenditions;return A||(a(A=new nL).media=b,a(b).audioRenditions=A),A};return b}function ut(b,A){var B;if(null!=b&&b.prototype)return null==(B=Object.getOwnPropertyDescriptor(b.prototype,`${A}Tracks`))?void 0:B.get}rU.push("castchange","entercast","leavecast");var nq,nF,nj,n$,nK,nY,nQ,nZ,nz,nX,nJ={BEACON_COLLECTION_DOMAIN:"beacon-collection-domain",CUSTOM_DOMAIN:"custom-domain",DEBUG:"debug",DISABLE_COOKIES:"disable-cookies",ENV_KEY:"env-key",MAX_RESOLUTION:"max-resolution",MIN_RESOLUTION:"min-resolution",RENDITION_ORDER:"rendition-order",METADATA_URL:"metadata-url",PLAYBACK_ID:"playback-id",PLAYER_SOFTWARE_NAME:"player-software-name",PLAYER_SOFTWARE_VERSION:"player-software-version",PREFER_CMCD:"prefer-cmcd",PREFER_PLAYBACK:"prefer-playback",START_TIME:"start-time",STREAM_TYPE:"stream-type",TARGET_LIVE_WINDOW:"target-live-window",LIVE_EDGE_OFFSET:"live-edge-offset",TYPE:"type"},n0=Object.values(nJ),n1=class extends rV{constructor(){super(),c(this,nz),c(this,nq,void 0),c(this,nF,void 0),c(this,nj,void 0),c(this,n$,{}),c(this,nK,void 0),c(this,nY,void 0),c(this,nQ,void 0),c(this,nZ,void 0),u(this,nj,At())}static get observedAttributes(){var b;return[...n0,...null!=(b=rV.observedAttributes)?b:[]]}get preferCmcd(){var b;return null!=(b=this.getAttribute(nJ.PREFER_CMCD))?b:void 0}set preferCmcd(b){b!==this.preferCmcd&&(b?el.includes(b)?this.setAttribute(nJ.PREFER_CMCD,b):console.warn(`Invalid value for preferCmcd. Must be one of ${el.join()}`):this.removeAttribute(nJ.PREFER_CMCD))}get playerInitTime(){return i(this,nj)}get playerSoftwareName(){var b;return null!=(b=i(this,nQ))?b:"mux-video"}set playerSoftwareName(b){u(this,nQ,b)}get playerSoftwareVersion(){var b;return null!=(b=i(this,nY))?b:rP}set playerSoftwareVersion(b){u(this,nY,b)}get _hls(){var b;return null==(b=i(this,nq))?void 0:b.engine}get mux(){var b;return null==(b=this.nativeEl)?void 0:b.mux}get error(){var b;return null!=(b=Rt(this.nativeEl))?b:null}get errorTranslator(){return i(this,nZ)}set errorTranslator(b){u(this,nZ,b)}get src(){return this.getAttribute("src")}set src(b){b!==this.src&&(null==b?this.removeAttribute("src"):this.setAttribute("src",b))}get type(){var b;return null!=(b=this.getAttribute(nJ.TYPE))?b:void 0}set type(b){b!==this.type&&(b?this.setAttribute(nJ.TYPE,b):this.removeAttribute(nJ.TYPE))}get autoplay(){let b=this.getAttribute("autoplay");return null!==b&&(""===b||b)}set autoplay(b){b!==this.autoplay&&(b?this.setAttribute("autoplay","string"==typeof b?b:""):this.removeAttribute("autoplay"))}get preload(){let b=this.getAttribute("preload");return""===b?"auto":["none","metadata","auto"].includes(b)?b:super.preload}set preload(b){b!=this.getAttribute("preload")&&(["","none","metadata","auto"].includes(b)?this.setAttribute("preload",b):this.removeAttribute("preload"))}get debug(){return null!=this.getAttribute(nJ.DEBUG)}set debug(b){b!==this.debug&&(b?this.setAttribute(nJ.DEBUG,""):this.removeAttribute(nJ.DEBUG))}get disableCookies(){return this.hasAttribute(nJ.DISABLE_COOKIES)}set disableCookies(b){b!==this.disableCookies&&(b?this.setAttribute(nJ.DISABLE_COOKIES,""):this.removeAttribute(nJ.DISABLE_COOKIES))}get startTime(){let b=this.getAttribute(nJ.START_TIME);if(null==b)return;let A=+b;return Number.isNaN(A)?void 0:A}set startTime(b){b!==this.startTime&&(null==b?this.removeAttribute(nJ.START_TIME):this.setAttribute(nJ.START_TIME,`${b}`))}get playbackId(){var b;return null!=(b=this.getAttribute(nJ.PLAYBACK_ID))?b:void 0}set playbackId(b){b!==this.playbackId&&(b?this.setAttribute(nJ.PLAYBACK_ID,b):this.removeAttribute(nJ.PLAYBACK_ID))}get maxResolution(){var b;return null!=(b=this.getAttribute(nJ.MAX_RESOLUTION))?b:void 0}set maxResolution(b){b!==this.maxResolution&&(b?this.setAttribute(nJ.MAX_RESOLUTION,b):this.removeAttribute(nJ.MAX_RESOLUTION))}get minResolution(){var b;return null!=(b=this.getAttribute(nJ.MIN_RESOLUTION))?b:void 0}set minResolution(b){b!==this.minResolution&&(b?this.setAttribute(nJ.MIN_RESOLUTION,b):this.removeAttribute(nJ.MIN_RESOLUTION))}get renditionOrder(){var b;return null!=(b=this.getAttribute(nJ.RENDITION_ORDER))?b:void 0}set renditionOrder(b){b!==this.renditionOrder&&(b?this.setAttribute(nJ.RENDITION_ORDER,b):this.removeAttribute(nJ.RENDITION_ORDER))}get customDomain(){var b;return null!=(b=this.getAttribute(nJ.CUSTOM_DOMAIN))?b:void 0}set customDomain(b){b!==this.customDomain&&(b?this.setAttribute(nJ.CUSTOM_DOMAIN,b):this.removeAttribute(nJ.CUSTOM_DOMAIN))}get ended(){return _e(this.nativeEl,this._hls)}get envKey(){var b;return null!=(b=this.getAttribute(nJ.ENV_KEY))?b:void 0}set envKey(b){b!==this.envKey&&(b?this.setAttribute(nJ.ENV_KEY,b):this.removeAttribute(nJ.ENV_KEY))}get beaconCollectionDomain(){var b;return null!=(b=this.getAttribute(nJ.BEACON_COLLECTION_DOMAIN))?b:void 0}set beaconCollectionDomain(b){b!==this.beaconCollectionDomain&&(b?this.setAttribute(nJ.BEACON_COLLECTION_DOMAIN,b):this.removeAttribute(nJ.BEACON_COLLECTION_DOMAIN))}get streamType(){var b;return null!=(b=this.getAttribute(nJ.STREAM_TYPE))?b:Dt(this.nativeEl)}set streamType(b){b!==this.streamType&&(b?this.setAttribute(nJ.STREAM_TYPE,b):this.removeAttribute(nJ.STREAM_TYPE))}get targetLiveWindow(){return this.hasAttribute(nJ.TARGET_LIVE_WINDOW)?+this.getAttribute(nJ.TARGET_LIVE_WINDOW):It(this.nativeEl)}set targetLiveWindow(b){b!=this.targetLiveWindow&&(null==b?this.removeAttribute(nJ.TARGET_LIVE_WINDOW):this.setAttribute(nJ.TARGET_LIVE_WINDOW,`${+b}`))}get liveEdgeStart(){var b,A;if(this.hasAttribute(nJ.LIVE_EDGE_OFFSET)){let{liveEdgeOffset:B}=this,G=null!=(b=this.nativeEl.seekable.end(0))?b:0;return Math.max(null!=(A=this.nativeEl.seekable.start(0))?A:0,G-B)}return wt(this.nativeEl)}get liveEdgeOffset(){if(this.hasAttribute(nJ.LIVE_EDGE_OFFSET))return+this.getAttribute(nJ.LIVE_EDGE_OFFSET)}set liveEdgeOffset(b){b!=this.targetLiveWindow&&(null==b?this.removeAttribute(nJ.LIVE_EDGE_OFFSET):this.setAttribute(nJ.LIVE_EDGE_OFFSET,`${+b}`))}get seekable(){return we(this.nativeEl)}async addCuePoints(b){return j(this.nativeEl,b)}get activeCuePoint(){return J(this.nativeEl)}get cuePoints(){return function(b,A={label:em}){let B=S(b,A);return null!=B&&B.cues?Array.from(B.cues,b=>Q(b)):[]}(this.nativeEl)}getStartDate(){return function(b,A){if(A){let B=A.playingDate;if(null!=B)return new Date(B.getTime()-1e3*b.currentTime)}return"function"==typeof b.getStartDate?b.getStartDate():new Date(NaN)}(this.nativeEl,this._hls)}get currentPdt(){return function(b,A){if(A&&A.playingDate)return A.playingDate;if("function"==typeof b.getStartDate){let A=b.getStartDate();return new Date(A.getTime()+1e3*b.currentTime)}return new Date(NaN)}(this.nativeEl,this._hls)}get preferPlayback(){let b=this.getAttribute(nJ.PREFER_PLAYBACK);if(b===eo.MSE||b===eo.NATIVE)return b}set preferPlayback(b){b!==this.preferPlayback&&(b===eo.MSE||b===eo.NATIVE?this.setAttribute(nJ.PREFER_PLAYBACK,b):this.removeAttribute(nJ.PREFER_PLAYBACK))}get metadata(){return{...this.getAttributeNames().filter(b=>b.startsWith("metadata-")&&![nJ.METADATA_URL].includes(b)).reduce((b,A)=>{let B=this.getAttribute(A);
1088return null!=B&&(b[A.replace(/^metadata-/,"").replace(/-/g,"_")]=B),b},{}),...i(this,n$)}}set metadata(b){u(this,n$,null!=b?b:{}),this.mux&&this.mux.emit("hb",i(this,n$))}get _hlsConfig(){return i(this,nK)}set _hlsConfig(b){u(this,nK,b)}load(){u(this,nq,Ht(this,this.nativeEl,i(this,nq)))}unload(){Oe(this.nativeEl,i(this,nq)),u(this,nq,void 0)}attributeChangedCallback(b,A,B){var G,W;switch(rV.observedAttributes.includes(b)&&!["src","autoplay","preload"].includes(b)&&super.attributeChangedCallback(b,A,B),b){case nJ.PLAYER_SOFTWARE_NAME:this.playerSoftwareName=null!=B?B:void 0;break;case nJ.PLAYER_SOFTWARE_VERSION:this.playerSoftwareVersion=null!=B?B:void 0;break;case"src":{let b=!!A,G=!!B;!b&&G?T(this,nz,nX).call(this):b&&!G?this.unload():b&&G&&(this.unload(),T(this,nz,nX).call(this));break}case"autoplay":if(B===A)break;null==(G=i(this,nq))||G.setAutoplay(this.autoplay);break;case"preload":if(B===A)break;null==(W=i(this,nq))||W.setPreload(B);break;case nJ.PLAYBACK_ID:this.src=St(this);break;case nJ.DEBUG:{let b=this.debug;this.mux&&console.info("Cannot toggle debug mode of mux data after initialization. Make sure you set all metadata to override before setting the src."),this._hls&&(this._hls.config.debug=b);break}case nJ.METADATA_URL:B&&fetch(B).then(b=>b.json()).then(b=>this.metadata=b).catch(()=>console.error(`Unable to load or parse metadata JSON from metadata-url ${B}!`));break;case nJ.STREAM_TYPE:(null==B||B!==A)&&this.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}));break;case nJ.TARGET_LIVE_WINDOW:(null==B||B!==A)&&this.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0,detail:this.targetLiveWindow}))}}connectedCallback(){var b;null==(b=super.connectedCallback)||b.call(this),this.nativeEl&&this.src&&!i(this,nq)&&T(this,nz,nX).call(this)}disconnectedCallback(){this.unload()}};nq=new WeakMap,nF=new WeakMap,nj=new WeakMap,n$=new WeakMap,nK=new WeakMap,nY=new WeakMap,nQ=new WeakMap,nZ=new WeakMap,nz=new WeakSet,nX=async function(){i(this,nF)||(await u(this,nF,Promise.resolve()),u(this,nF,null),this.load())};var n2=class extends zt(ai(n1)){};rO.customElements.get("mux-video")||(rO.customElements.define("mux-video",n2),rO.MuxVideoElement=n2);var n3=Object.defineProperty,template_parts_defNormalProp=(b,A,B)=>A in b?n3(b,A,{enumerable:!0,configurable:!0,writable:!0,value:B}):b[A]=B,template_parts_publicField=(b,A,B)=>(template_parts_defNormalProp(b,"symbol"!=typeof A?A+"":A,B),B),template_parts_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},template_parts_privateGet=(b,A,B)=>(template_parts_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),template_parts_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},template_parts_privateSet=(b,A,B,G)=>(template_parts_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B);let n9={processCallback(b,A,B){if(B){for(let[b,G]of A)if(b in B){let A=B[b];"boolean"==typeof A&&G instanceof AttrPart&&"boolean"==typeof G.element[G.attributeName]?G.booleanValue=A:"function"==typeof A&&G instanceof AttrPart?G.element[G.attributeName]=A:G.value=A}}}};let TemplateInstance=class TemplateInstance extends eV.DocumentFragment{constructor(b,A,B=n9){var G;super(),template_parts_privateAdd(this,ou,void 0),template_parts_privateAdd(this,oc,void 0),this.append(b.content.cloneNode(!0)),template_parts_privateSet(this,ou,parse(this)),template_parts_privateSet(this,oc,B),null==(G=B.createCallback)||G.call(B,this,template_parts_privateGet(this,ou),A),B.processCallback(this,template_parts_privateGet(this,ou),A)}update(b){template_parts_privateGet(this,oc).processCallback(this,template_parts_privateGet(this,ou),b)}};ou=new WeakMap,oc=new WeakMap;let parse=(b,A=[])=>{let B,G;for(let W of b.attributes||[])if(W.value.includes("{{")){let K=new AttrPartList;for([B,G]of tokenize(W.value))if(B){let B=new AttrPart(b,W.name,W.namespaceURI);K.append(B),A.push([G,B])}else K.append(G);W.value=K.toString()}for(let W of b.childNodes)if(1!==W.nodeType||W instanceof HTMLTemplateElement){if(1===W.nodeType||W.data.includes("{{")){let K=[];if(W.data)for([B,G]of tokenize(W.data))if(B){let B=new ChildNodePart(b);K.push(B),A.push([G,B])}else K.push(new Text(G));else if(W instanceof HTMLTemplateElement){let B=new InnerTemplatePart(b,W);K.push(B),A.push([B.expression,B])}W.replaceWith(...K.flatMap(b=>b.replacementNodes||[b]))}}else parse(W,A);return A},n5={},tokenize=b=>{let A="",B=0,G=n5[b],W=0,K;if(G)return G;for(G=[];K=b[W];W++)"{"===K&&"{"===b[W+1]&&"\\"!==b[W-1]&&b[W+2]&&1==++B?(A&&G.push([0,A]),A="",W++):"}"!==K||"}"!==b[W+1]||"\\"===b[W-1]||--B?A+=K||"":(G.push([1,A.trim()]),A="",W++);return A&&G.push([0,(B>0?"{{":"")+A]),n5[b]=G};let Part=class Part{get value(){return""}set value(b){}toString(){return this.value}};let n4=new WeakMap;let AttrPartList=class AttrPartList{constructor(){template_parts_privateAdd(this,om,[])}[Symbol.iterator](){return template_parts_privateGet(this,om).values()}get length(){return template_parts_privateGet(this,om).length}item(b){return template_parts_privateGet(this,om)[b]}append(...b){for(let A of b)A instanceof AttrPart&&n4.set(A,this),template_parts_privateGet(this,om).push(A)}toString(){return template_parts_privateGet(this,om).join("")}};om=new WeakMap;let AttrPart=class AttrPart extends Part{constructor(b,A,B){super(),template_parts_privateAdd(this,ob),template_parts_privateAdd(this,oh,""),template_parts_privateAdd(this,op,void 0),template_parts_privateAdd(this,o_,void 0),template_parts_privateAdd(this,ov,void 0),template_parts_privateSet(this,op,b),template_parts_privateSet(this,o_,A),template_parts_privateSet(this,ov,B)}get attributeName(){return template_parts_privateGet(this,o_)}get attributeNamespace(){return template_parts_privateGet(this,ov)}
1088get element(){return template_parts_privateGet(this,op)}get value(){return template_parts_privateGet(this,oh)}set value(b){template_parts_privateGet(this,oh)!==b&&(template_parts_privateSet(this,oh,b),template_parts_privateGet(this,ob,og)&&1!==template_parts_privateGet(this,ob,og).length?template_parts_privateGet(this,op).setAttributeNS(template_parts_privateGet(this,ov),template_parts_privateGet(this,o_),template_parts_privateGet(this,ob,og)):null==b?template_parts_privateGet(this,op).removeAttributeNS(template_parts_privateGet(this,ov),template_parts_privateGet(this,o_)):template_parts_privateGet(this,op).setAttributeNS(template_parts_privateGet(this,ov),template_parts_privateGet(this,o_),b))}get booleanValue(){return template_parts_privateGet(this,op).hasAttributeNS(template_parts_privateGet(this,ov),template_parts_privateGet(this,o_))}set booleanValue(b){if(template_parts_privateGet(this,ob,og)&&1!==template_parts_privateGet(this,ob,og).length)throw new DOMException("Value is not fully templatized");this.value=b?"":null}};oh=new WeakMap,op=new WeakMap,o_=new WeakMap,ov=new WeakMap,ob=new WeakSet,og=function(){return n4.get(this)};let ChildNodePart=class ChildNodePart extends Part{constructor(b,A){super(),template_parts_privateAdd(this,oE,void 0),template_parts_privateAdd(this,of,void 0),template_parts_privateSet(this,oE,b),template_parts_privateSet(this,of,A?[...A]:[new Text])}get replacementNodes(){return template_parts_privateGet(this,of)}get parentNode(){return template_parts_privateGet(this,oE)}get nextSibling(){return template_parts_privateGet(this,of)[template_parts_privateGet(this,of).length-1].nextSibling}get previousSibling(){return template_parts_privateGet(this,of)[0].previousSibling}get value(){return template_parts_privateGet(this,of).map(b=>b.textContent).join("")}set value(b){this.replace(b)}replace(...b){let A=b.flat().flatMap(b=>null==b?[new Text]:b.forEach?[...b]:11===b.nodeType?[...b.childNodes]:b.nodeType?[b]:[new Text(b)]);A.length||A.push(new Text),template_parts_privateSet(this,of,function(b,A,B,G=null){let W=0,K,et,ei,ea=B.length,er=A.length;for(;W<ea&&W<er&&A[W]==B[W];)W++;for(;W<ea&&W<er&&B[ea-1]==A[er-1];)G=B[--er,--ea];if(W==er)for(;W<ea;)b.insertBefore(B[W++],G);if(W==ea)for(;W<er;)b.removeChild(A[W++]);else{for(K=A[W];W<ea;)ei=B[W++],et=K?K.nextSibling:G,K==ei?K=et:W<ea&&B[W]==et?(b.replaceChild(ei,K),K=et):b.insertBefore(ei,K);for(;K!=G;)et=K.nextSibling,b.removeChild(K),K=et}return B}(template_parts_privateGet(this,of)[0].parentNode,template_parts_privateGet(this,of),A,this.nextSibling))}};oE=new WeakMap,of=new WeakMap;let InnerTemplatePart=class InnerTemplatePart extends ChildNodePart{constructor(b,A){let B=A.getAttribute("directive")||A.getAttribute("type"),G=A.getAttribute("expression")||A.getAttribute(B)||"";G.startsWith("{{")&&(G=G.trim().slice(2,-2).trim()),super(b),template_parts_publicField(this,"directive"),this.expression=G,this.template=A,this.directive=B}};let n8={string:b=>String(b)};let PartialTemplate=class PartialTemplate{constructor(b){this.template=b,this.state=void 0}};let n6=new WeakMap,n7=new WeakMap,oi={partial:(b,A)=>{A[b.expression]=new PartialTemplate(b.template)},if:(b,A)=>{var B;if(evaluateExpression(b.expression,A)){if(n6.get(b)!==b.template){n6.set(b,b.template);let B=new TemplateInstance(b.template,A,or);b.replace(B),n7.set(b,B)}else null==(B=n7.get(b))||B.update(A)}else b.replace(""),n6.delete(b),n7.delete(b)}},oa=Object.keys(oi),or={processCallback(b,A,B){var G,W;if(B)for(let[b,K]of A){if(K instanceof InnerTemplatePart){if(!K.directive){let b=oa.find(b=>K.template.hasAttribute(b));b&&(K.directive=b,K.expression=K.template.getAttribute(b))}null==(G=oi[K.directive])||G.call(oi,K,B);continue}let A=evaluateExpression(b,B);if(A instanceof PartialTemplate){n6.get(K)!==A.template?(n6.set(K,A.template),A=new TemplateInstance(A.template,A.state,or),K.value=A,n7.set(K,A)):null==(W=n7.get(K))||W.update(A.state);continue}A?(K instanceof AttrPart&&K.attributeName.startsWith("aria-")&&(A=String(A)),K instanceof AttrPart?"boolean"==typeof A?K.booleanValue=A:"function"==typeof A?K.element[K.attributeName]=A:K.value=A:(K.value=A,n6.delete(K),n7.delete(K))):K instanceof AttrPart?K.value=void 0:(K.value=void 0,n6.delete(K),n7.delete(K))}}},on={"!":b=>!b,"!!":b=>!!b,"==":(b,A)=>b==A,"!=":(b,A)=>b!=A,">":(b,A)=>b>A,">=":(b,A)=>b>=A,"<":(b,A)=>b<A,"<=":(b,A)=>b<=A,"??":(b,A)=>null!=b?b:A,"|":(b,A)=>{var B;return null==(B=n8[A])?void 0:B.call(n8,b)}};function evaluateExpression(b,A={}){var B,G,W,K,et,ei,ea;let er=(function(b,A){let B,G,W,K=[];for(;b;){for(let K in W=null,B=b.length,A)(G=A[K].exec(b))&&G.index<B&&(W={token:G[0],type:K,matches:G.slice(1)},B=G.index);B&&K.push({token:b.substr(0,B),type:void 0}),W&&K.push(W),b=b.substr(B+(W?W.token.length:0))}return K})(b,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:b})=>"ws"!==b);if(0===er.length||er.some(({type:b})=>!b))return invalidExpression(b);if((null==(B=er[0])?void 0:B.token)===">"){let B=A[null==(G=er[1])?void 0:G.token];if(!B)return invalidExpression(b);let ei={...A};B.state=ei;let ea=er.slice(2);for(let b=0;b<ea.length;b+=3){let B=null==(W=ea[b])?void 0:W.token,G=null==(K=ea[b+1])?void 0:K.token,er=null==(et=ea[b+2])?void 0:et.token;B&&"="===G&&(ei[B]=getParamValue(er,A))}return B}if(1===er.length)return isValidParam(er[0])?getParamValue(er[0].token,A):invalidExpression(b);if(2===er.length){let B=null==(ei=er[0])?void 0:ei.token,G=on[B];if(!G||!isValidParam(er[1]))return invalidExpression(b);let W=getParamValue(er[1].token,A);return G(W)}if(3===er.length){let B=null==(ea=er[1])?void 0:ea.token,G=on[B];if(!G||!isValidParam(er[0])||!isValidParam(er[2]))return invalidExpression(b);let W=getParamValue(er[0].token,A);if("|"===B)return G(W,er[2].token);let K=getParamValue(er[2].token,A);return G(W,K)}}
1088function invalidExpression(b){return console.warn(`Warning: invalid expression \`${b}\``),!1}function isValidParam({type:b}){return["number","boolean","string","param"].includes(b)}function getParamValue(b,A){let B=b[0],G=b.slice(-1);return"true"===b||"false"===b?"true"===b:B===G&&["'",'"'].includes(B)?b.slice(1,-1):isNumericString(b)?parseFloat(b):A[b]}var oo=Object.defineProperty,media_theme_element_defNormalProp=(b,A,B)=>A in b?oo(b,A,{enumerable:!0,configurable:!0,writable:!0,value:B}):b[A]=B,media_theme_element_publicField=(b,A,B)=>(media_theme_element_defNormalProp(b,"symbol"!=typeof A?A+"":A,B),B),media_theme_element_accessCheck=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},media_theme_element_privateGet=(b,A,B)=>(media_theme_element_accessCheck(b,A,"read from private field"),B?B.call(b):A.get(b)),media_theme_element_privateAdd=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},media_theme_element_privateSet=(b,A,B,G)=>(media_theme_element_accessCheck(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),media_theme_element_privateMethod=(b,A,B)=>(media_theme_element_accessCheck(b,A,"access private method"),B);let os={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},ol=eH.createElement("template");ol.innerHTML=`
1089  <style>
1090    :host {
1091      display: inline-block;
1092      line-height: 0;
1093    }
1094
1095    media-controller {
1096      width: 100%;
1097      height: 100%;
1098    }
1099
1100    media-controller:not([mediasubtitleslist]) media-captions-selectmenu,
1101    media-captions-button:not([mediasubtitleslist]),
1102    media-rendition-selectmenu[mediarenditionunavailable],
1103    media-audio-track-selectmenu[mediaaudiotrackunavailable],
1104    media-volume-range[mediavolumeunavailable],
1105    media-airplay-button[mediaairplayunavailable],
1106    media-fullscreen-button[mediafullscreenunavailable],
1107    media-cast-button[mediacastunavailable],
1108    media-pip-button[mediapipunavailable] {
1109      display: none;
1110    }
1111  </style>
1112`;let MediaThemeElement=class MediaThemeElement extends eV.HTMLElement{constructor(){super(),media_theme_element_privateAdd(this,oT),media_theme_element_privateAdd(this,oS),media_theme_element_publicField(this,"renderRoot"),media_theme_element_publicField(this,"renderer"),media_theme_element_privateAdd(this,oy,void 0),media_theme_element_privateAdd(this,oA,void 0),media_theme_element_privateAdd(this,ok,void 0),this.shadowRoot?this.renderRoot=this.shadowRoot:(this.renderRoot=this.attachShadow({mode:"open"}),this.createRenderer());let b=new MutationObserver(b=>{var A;(!this.mediaController||(null==(A=this.mediaController)?void 0:A.breakpointsComputed))&&b.some(b=>{let A=b.target;return A===this||"media-controller"===A.localName&&!!(os[b.attributeName]||b.attributeName.startsWith("breakpoint"))})&&this.render()});b.observe(this,{attributes:!0}),b.observe(this.renderRoot,{attributes:!0,subtree:!0}),this.addEventListener(eI.BREAKPOINTS_COMPUTED,this.render),media_theme_element_privateMethod(this,oT,ow).call(this,"template")}get mediaController(){return this.renderRoot.querySelector("media-controller")}get template(){var b;return null!=(b=media_theme_element_privateGet(this,oy))?b:this.constructor.template}set template(b){media_theme_element_privateSet(this,ok,null),media_theme_element_privateSet(this,oy,b),this.createRenderer()}get props(){var b,A,B;let G=[...Array.from(null!=(A=null==(b=this.mediaController)?void 0:b.attributes)?A:[]).filter(({name:b})=>os[b]||b.startsWith("breakpoint")),...Array.from(this.attributes)],W={};for(let b of G){let A=null!=(B=os[b.name])?B:b.name.replace(/[-_]([a-z])/g,(b,A)=>A.toUpperCase()),{value:G}=b;null!=G?(isNumericString(G)&&(G=parseFloat(G)),W[A]=""===G||G):W[A]=!1}return W}attributeChangedCallback(b,A,B){"template"===b&&A!=B&&media_theme_element_privateMethod(this,oS,oI).call(this)}connectedCallback(){media_theme_element_privateMethod(this,oS,oI).call(this)}createRenderer(){this.template&&this.template!==media_theme_element_privateGet(this,oA)&&(media_theme_element_privateSet(this,oA,this.template),this.renderer=new TemplateInstance(this.template,this.props,this.constructor.processor),this.renderRoot.textContent="",this.renderRoot.append(ol.content.cloneNode(!0),this.renderer))}render(){var b;null==(b=this.renderer)||b.update(this.props)}};async function request(b){let A=await fetch(b);
1112if(200!==A.status)throw Error(`Failed to load resource: the server responded with a status of ${A.status}`);return A.text()}oy=new WeakMap,oA=new WeakMap,ok=new WeakMap,oT=new WeakSet,ow=function(b){if(Object.prototype.hasOwnProperty.call(this,b)){let A=this[b];delete this[b],this[b]=A}},oS=new WeakSet,oI=function(){var b;let A=this.getAttribute("template");if(!A||A===media_theme_element_privateGet(this,ok))return;let B=this.getRootNode(),G=null==(b=null==B?void 0:B.getElementById)?void 0:b.call(B,A);if(G){media_theme_element_privateSet(this,ok,A),media_theme_element_privateSet(this,oy,G),this.createRenderer();return}(function(b){if(!/^(\/|\.\/|https?:\/\/)/.test(b))return!1;let A=/^https?:\/\//.test(b)?void 0:location.origin;try{new URL(b,A)}catch(b){return!1}return!0})(A)&&(media_theme_element_privateSet(this,ok,A),request(A).then(b=>{let A=eH.createElement("template");A.innerHTML=b,media_theme_element_privateSet(this,oy,A),this.createRenderer()}).catch(console.error))},media_theme_element_publicField(MediaThemeElement,"template"),media_theme_element_publicField(MediaThemeElement,"observedAttributes",["template"]),media_theme_element_publicField(MediaThemeElement,"processor",or),eV.customElements.get("media-theme")||eV.customElements.define("media-theme",MediaThemeElement);var mux_player_dist_Ce=(b,A,B)=>{if(!A.has(b))throw TypeError("Cannot "+B)},dist_u=(b,A,B)=>(mux_player_dist_Ce(b,A,"read from private field"),B?B.call(b):A.get(b)),mux_player_dist_h=(b,A,B)=>{if(A.has(b))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(b):A.set(b,B)},dist_C=(b,A,B,G)=>(mux_player_dist_Ce(b,A,"write to private field"),G?G.call(b,B):A.set(b,B),B),dist_g=(b,A,B)=>(mux_player_dist_Ce(b,A,"access private method"),B),od=class{addEventListener(){}removeEventListener(){}dispatchEvent(b){return!0}};"undefined"==typeof DocumentFragment&&(globalThis.DocumentFragment=class extends od{});var ou,oc,om,oh,op,o_,ov,ob,og,oE,of,oy,oA,ok,oT,ow,oS,oI,oC,oR=class extends od{},oL=class{constructor(b,A={}){mux_player_dist_h(this,oC,void 0),dist_C(this,oC,null==A?void 0:A.detail)}get detail(){return dist_u(this,oC)}initCustomEvent(){}};oC=new WeakMap;var oM={document:{createElement:function(b,A){return new oR}},DocumentFragment,customElements:{get(b){},define(b,A,B){},upgrade(b){},whenDefined:b=>Promise.resolve(oR)},CustomEvent:oL,EventTarget:od,HTMLElement:oR,HTMLVideoElement:class extends od{}},ox="undefined"==typeof window||void 0===globalThis.customElements,oD=ox?oM:globalThis,oO=ox?oM.document:globalThis.document,oN={code:"en"};function l(b,A=!0){var B;let G=A&&null!=(B=null==oN?void 0:oN[b])?B:b,W=A?oN.code:"en";return new oP(G,W)}var oP=class{constructor(b,A=null!=(oU=oN.code)?oU:"en"){this.message=b,this.locale=A}format(b){return this.message.replace(/\{(\w+)\}/g,(A,B)=>{var G;return null!=(G=b[B])?G:""})}toString(){return this.message}};function dist_se(b){return b.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function mux_player_dist_de(b){return b.replace(/[-_]([a-z])/g,(b,A)=>A.toUpperCase())}function dist_R(b){if(null==b)return;let A=+b;return Number.isNaN(A)?void 0:A}function mux_player_dist_we(b){let A=(function(b){let A={};for(let B in b)null!=b[B]&&(A[B]=b[B]);return new URLSearchParams(A)})(b).toString();return A?"?"+A:""}function P(b){let A=(null!=b?b:"").split(".")[1];return A?JSON.parse(decodeURIComponent(atob(A.replace(/-/g,"+").replace(/_/g,"/")).split("").map(function(b){return"%"+("00"+b.charCodeAt(0).toString(16)).slice(-2)}).join(""))):{}}var oU,oB,oG,oW,mux_player_dist_Oe=(b,A)=>!!b&&!!A&&(!!b.contains(A)||mux_player_dist_Oe(b,A.getRootNode().host)),oV="mux.com",oH=(()=>{try{return"2.3.2"}catch{}return"UNKNOWN"})(),dist_lt=(b,{token:A,customDomain:B=oV,thumbnailTime:G}={})=>{let W=null==A?G:void 0,{aud:K}=P(A);if(!(A&&"t"!==K))return`https://image.${B}/${b}/thumbnail.webp${mux_player_dist_we({token:A,time:W})}`},dist_mt=(b,{token:A,customDomain:B=oV}={})=>{let{aud:G}=P(A);if(!(A&&"s"!==G))return`https://image.${B}/${b}/storyboard.vtt${mux_player_dist_we({token:A,format:"webp"})}`},mux_player_dist_J=b=>
1112{if(b){if([en.LIVE,en.ON_DEMAND].includes(b))return b;if(null!=b&&b.includes("live"))return en.LIVE}},oq={crossorigin:"crossOrigin",playsinline:"playsInline"},oF=class{constructor(b,A){mux_player_dist_h(this,oB,void 0),mux_player_dist_h(this,oG,void 0),mux_player_dist_h(this,oW,[]),dist_C(this,oB,b),dist_C(this,oG,A)}[Symbol.iterator](){return dist_u(this,oW).values()}get length(){return dist_u(this,oW).length}get value(){var b;return null!=(b=dist_u(this,oW).join(" "))?b:""}set value(b){var A;b!==this.value&&(dist_C(this,oW,[]),this.add(...null!=(A=null==b?void 0:b.split(" "))?A:[]))}toString(){return this.value}item(b){return dist_u(this,oW)[b]}values(){return dist_u(this,oW).values()}keys(){return dist_u(this,oW).keys()}forEach(b){dist_u(this,oW).forEach(b)}add(...b){var A,B;b.forEach(b=>{this.contains(b)||dist_u(this,oW).push(b)}),(""!==this.value||null!=(A=dist_u(this,oB))&&A.hasAttribute(`${dist_u(this,oG)}`))&&null!=(B=dist_u(this,oB))&&B.setAttribute(`${dist_u(this,oG)}`,`${this.value}`)}remove(...b){var A;b.forEach(b=>{dist_u(this,oW).splice(dist_u(this,oW).indexOf(b),1)}),null==(A=dist_u(this,oB))||A.setAttribute(`${dist_u(this,oG)}`,`${this.value}`)}contains(b){return dist_u(this,oW).includes(b)}toggle(b,A){return void 0!==A?A?(this.add(b),!0):(this.remove(b),!1):this.contains(b)?(this.remove(b),!1):(this.add(b),!0)}replace(b,A){this.remove(b),this.add(A)}};oB=new WeakMap,oG=new WeakMap,oW=new WeakMap;var oj=`[mux-player ${oH}]`;function mux_player_dist_N(...b){console.warn(oj,...b)}function dist_x(...b){console.error(oj,...b)}function mux_player_dist_Se(b){var A;let B=null!=(A=b.message)?A:"";b.context&&(B+=` ${b.context}`),b.file&&(B+=` ${l("Read more: ")}
1113https://github.com/muxinc/elements/blob/main/errors/${b.file}`),mux_player_dist_N(B)}var o$={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},oK={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},oY=Object.freeze({length:0,start(b){let A=b>>>0;if(A>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${A}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(b){let A=b>>>0;if(A>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${A}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),oQ=rU.filter(b=>"error"!==b),oZ=Object.values(o$).filter(b=>![o$.PLAYSINLINE].includes(b)),oz=Object.values(oK);function mux_player_dist_Q(b,A){return b.media?b.media.getAttribute(A):b.getAttribute(A)}var oX=class extends oD.HTMLElement{static get observedAttributes(){return[...oZ,...oz]}constructor(){super(),this.querySelectorAll(":scope > track").forEach(b=>{var A;null==(A=this.media)||A.append(b.cloneNode())}),new MutationObserver(b=>{for(let A of b)"childList"===A.type&&(A.removedNodes.forEach(b=>{var A,B;let G=null==(A=this.media)?void 0:A.querySelector(`track[src="${b.src}"]`);G&&(null==(B=this.media)||B.removeChild(G))}),A.addedNodes.forEach(b=>{var A;null==(A=this.media)||A.append(b.cloneNode())}))}).observe(this,{childList:!0,subtree:!0})}attributeChangedCallback(b,A,B){var G,W;switch(b){case oK.MUTED:this.media&&(this.media.muted=null!=B,this.media.defaultMuted=null!=B);return;case oK.VOLUME:{let b=null!=(G=dist_R(B))?G:1;this.media&&(this.media.volume=b);return}case oK.PLAYBACKRATE:{let b=null!=(W=dist_R(B))?W:1;this.media&&(this.media.playbackRate=b,this.media.defaultPlaybackRate=b);return}}}play(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.play())?A:Promise.reject()}pause(){var b;null==(b=this.media)||b.pause()}requestCast(b){var A;return null==(A=this.media)?void 0:A.requestCast(b)}get media(){var b;return null==(b=this.shadowRoot)?void 0:b.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var b,A;return null==(A=null==(b=this.media)?void 0:b.paused)||A}get duration(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.duration)?A:NaN}get ended(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.ended)&&A}get buffered(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.buffered)?A:oY}get seekable(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.seekable)?A:oY}get readyState(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.readyState)?A:0}get videoWidth(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.videoWidth)?A:0}get videoHeight(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.videoHeight)?A:0}get currentTime(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.currentTime)?A:0}set currentTime(b){this.media&&(this.media.currentTime=Number(b))}get volume(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.volume)?A:1}set volume(b){this.media&&(this.media.volume=Number(b))}get playbackRate(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.playbackRate)?A:1}set playbackRate(b){this.media&&(this.media.playbackRate=Number(b))}get defaultPlaybackRate(){var b;return null!=(b=dist_R(this.getAttribute(oK.PLAYBACKRATE)))?b:1}set defaultPlaybackRate(b){null!=b?this.setAttribute(oK.PLAYBACKRATE,`${b}`):this.removeAttribute(oK.PLAYBACKRATE)}get crossOrigin(){return mux_player_dist_Q(this,o$.CROSSORIGIN)}set crossOrigin(b){this.setAttribute(o$.CROSSORIGIN,`${b}`)}get autoplay(){return null!=mux_player_dist_Q(this,o$.AUTOPLAY)}set autoplay(b){b?this.setAttribute(o$.AUTOPLAY,"string"==typeof b?b:""):this.removeAttribute(o$.AUTOPLAY)}get loop(){return null!=mux_player_dist_Q(this,o$.LOOP)}set loop(b){b?this.setAttribute(o$.LOOP,""):this.removeAttribute(o$.LOOP)}get muted(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.muted)&&A}set muted(b){this.media&&(this.media.muted=!!b)}get defaultMuted(){return null!=mux_player_dist_Q(this,o$.MUTED)}set defaultMuted(b){b?this.setAttribute(o$.MUTED,""):this.removeAttribute(o$.MUTED)}
1113get playsInline(){return null!=mux_player_dist_Q(this,o$.PLAYSINLINE)}set playsInline(b){dist_x("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(b){["","none","metadata","auto"].includes(b)?this.setAttribute(o$.PRELOAD,b):this.removeAttribute(o$.PRELOAD)}},oJ=`:host {
1114  --media-control-display: var(--controls);
1115  --media-loading-indicator-display: var(--loading-indicator);
1116  --media-dialog-display: var(--dialog);
1117  --media-play-button-display: var(--play-button);
1118  --media-live-button-display: var(--live-button);
1119  --media-seek-backward-button-display: var(--seek-backward-button);
1120  --media-seek-forward-button-display: var(--seek-forward-button);
1121  --media-mute-button-display: var(--mute-button);
1122  --media-captions-button-display: var(--captions-button);
1123  --media-captions-selectmenu-display: var(--captions-selectmenu, var(--media-captions-button-display));
1124  --media-rendition-selectmenu-display: var(--rendition-selectmenu);
1125  --media-audio-track-selectmenu-display: var(--audio-track-selectmenu);
1126  --media-airplay-button-display: var(--airplay-button);
1127  --media-pip-button-display: var(--pip-button);
1128  --media-fullscreen-button-display: var(--fullscreen-button);
1129  --media-cast-button-display: var(--cast-button);
1130  --media-playback-rate-button-display: var(--playback-rate-button);
1131  --media-playback-rate-selectmenu-display: var(--playback-rate-selectmenu);
1132  --media-volume-range-display: var(--volume-range);
1133  --media-time-range-display: var(--time-range);
1134  --media-time-display-display: var(--time-display);
1135  --media-duration-display-display: var(--duration-display);
1136  --media-title-display-display: var(--title-display);
1137
1138  display: inline-block;
1139  width: 100%;
1140  line-height: 0;
1141}
1142
1143/* Hide custom elements that are not defined yet */
1144:not(:defined) {
1145  display: none;
1146}
1147
1148a {
1149  color: #fff;
1150  font-size: 0.9em;
1151  text-decoration: underline;
1152}
1153
1154media-theme {
1155  width: 100%;
1156  height: 100%;
1157  direction: ltr;
1158}
1159
1160media-poster-image {
1161  width: 100%;
1162  height: 100%;
1163}
1164
1165media-poster-image:not([src]):not([placeholdersrc]) {
1166  display: none;
1167}
1168
1169::part(top),
1170[part~='top'] {
1171  --media-control-display: var(--controls, var(--top-controls));
1172  --media-play-button-display: var(--play-button, var(--top-play-button));
1173  --media-live-button-display: var(--live-button, var(--top-live-button));
1174  --media-seek-backward-button-display: var(--seek-backward-button, var(--top-seek-backward-button));
1175  --media-seek-forward-button-display: var(--seek-forward-button, var(--top-seek-forward-button));
1176  --media-mute-button-display: var(--mute-button, var(--top-mute-button));
1177  --media-captions-button-display: var(--captions-button, var(--top-captions-button));
1178  --media-captions-selectmenu-display: var(
1179    --captions-selectmenu,
1180    var(--media-captions-button-display, var(--top-captions-selectmenu))
1181  );
1182  --media-rendition-selectmenu-display: var(--rendition-selectmenu, var(--top-rendition-selectmenu));
1183  --media-audio-track-selectmenu-display: var(--audio-track-selectmenu, var(--top-audio-track-selectmenu));
1184  --media-airplay-button-display: var(--airplay-button, var(--top-airplay-button));
1185  --media-pip-button-display: var(--pip-button, var(--top-pip-button));
1186  --media-fullscreen-button-display: var(--fullscreen-button, var(--top-fullscreen-button));
1187  --media-cast-button-display: var(--cast-button, var(--top-cast-button));
1188  --media-playback-rate-button-display: var(--playback-rate-button, var(--top-playback-rate-button));
1189  --media-playback-rate-selectmenu-display: var(
1190    --captions-selectmenu,
1191    var(--media-playback-rate-button-display, var(--top-playback-rate-selectmenu))
1192  );
1193  --media-volume-range-display: var(--volume-range, var(--top-volume-range));
1194  --media-time-range-display: var(--time-range, var(--top-time-range));
1195  --media-time-display-display: var(--time-display, var(--top-time-display));
1196  --media-duration-display-display: var(--duration-display, var(--top-duration-display));
1197  --media-title-display-display: var(--title-display, var(--top-title-display));
1198}
1199
1200::part(center),
1201[part~='center'] {
1202  --media-control-display: var(--controls, var(--center-controls));
1203  --media-play-button-display: var(--play-button, var(--center-play-button));
1204  --media-live-button-display: var(--live-button, var(--center-live-button));
1205  --media-seek-backward-button-display: var(--seek-backward-button, var(--center-seek-backward-button));
1206  --media-seek-forward-button-display: var(--seek-forward-button, var(--center-seek-forward-button));
1207  --media-mute-button-display: var(--mute-button, var(--center-mute-button));
1208  --media-captions-button-display: var(--captions-button, var(--center-captions-button));
1209  --media-captions-selectmenu-display: var(
1210    --captions-selectmenu,
1211    var(--media-captions-button-display, var(--center-captions-selectmenu))
1212  );
1213  --media-rendition-selectmenu-display: var(--rendition-selectmenu, var(--center-rendition-selectmenu));
1214  --media-audio-track-selectmenu-display: var(--audio-track-selectmenu, var(--center-audio-track-selectmenu));
1215  --media-airplay-button-display: var(--airplay-button, var(--center-airplay-button));
1216  --media-pip-button-display: var(--pip-button, var(--center-pip-button));
1217  --media-fullscreen-button-display: var(--fullscreen-button, var(--center-fullscreen-button));
1218  --media-cast-button-display: var(--cast-button, var(--center-cast-button));
1219  --media-playback-rate-button-display: var(--playback-rate-button, var(--center-playback-rate-button));
1220  --media-playback-rate-selectmenu-display: var(
1221    --playback-rate-selectmenu,
1222    var(--media-playback-rate-button-display, var(--center-playback-rate-selectmenu))
1223  );
1224  --media-volume-range-display: var(--volume-range, var(--center-volume-range));
1225  --media-time-range-display: var(--time-range, var(--center-time-range));
1226  --media-time-display-display: var(--time-display, var(--center-time-display));
1227  --media-duration-display-display: var(--duration-display, var(--center-duration-display));
1228}
1229
1230::part(bottom),
1231[part~='bottom'] {
1232  --media-control-display: var(--controls, var(--bottom-controls));
1233  --media-play-button-display: var(--play-button, var(--bottom-play-button));
1234  --media-live-button-display: var(--live-button, var(--bottom-live-button));
1235  --media-seek-backward-button-display: var(--seek-backward-button, var(--bottom-seek-backward-button));
1236  --media-seek-forward-button-display: var(--seek-forward-button, var(--bottom-seek-forward-button));
1237  --media-mute-button-display: var(--mute-button, var(--bottom-mute-button));
1238  --media-captions-button-display: var(--captions-button, var(--bottom-captions-button));
1239  --media-captions-selectmenu-display: var(
1240    --captions-selectmenu,
1241    var(--media-captions-button-display, var(--bottom-captions-selectmenu))
1242  );
1243  --media-rendition-selectmenu-display: var(--rendition-selectmenu, var(--bottom-rendition-selectmenu));
1244  --media-audio-track-selectmenu-display: var(--audio-track-selectmenu, var(--bottom-audio-track-selectmenu));
1245  --media-airplay-button-display: var(--airplay-button, var(--bottom-airplay-button));
1246  --media-pip-button-display: var(--pip-button, var(--bottom-pip-button));
1247  --media-fullscreen-button-display: var(--fullscreen-button, var(--bottom-fullscreen-button));
1248  --media-cast-button-display: var(--cast-button, var(--bottom-cast-button));
1249  --media-playback-rate-button-display: var(--playback-rate-button, var(--bottom-playback-rate-button));
1250  --media-playback-rate-selectmenu-display: var(
1251    --playback-rate-selectmenu,
1252    var(--media-playback-rate-button-display, var(--bottom-playback-rate-selectmenu))
1253  );
1254  --media-volume-range-display: var(--volume-range, var(--bottom-volume-range));
1255  --media-time-range-display: var(--time-range, var(--bottom-time-range));
1256  --media-time-display-display: var(--time-display, var(--bottom-time-display));
1257  --media-duration-display-display: var(--duration-display, var(--bottom-duration-display));
1258  --media-title-display-display: var(--title-display, var(--bottom-title-display));
1259}
1260`,o0=`
1261  :host {
1262    z-index: 100;
1263    display: var(--media-dialog-display, flex);
1264    justify-content: center;
1265    align-items: center;
1266    width: 100%;
1267    height: 100%;
1268    position: absolute;
1269    top: 0;
1270    left: 0;
1271    box-sizing: border-box;
1272    color: #fff;
1273    line-height: 18px;
1274    font-family: Arial, sans-serif;
1275    padding: var(--media-dialog-backdrop-padding, 0);
1276    background: var(--media-dialog-backdrop-background,
1277      linear-gradient(to bottom, rgba(20, 20, 30, 0.7) 50%, rgba(20, 20, 30, 0.9))
1278    );
1279    /* Needs to use !important to prevent overwrite of media-chrome */
1280    transition: var(--media-dialog-transition-open, visibility .2s, opacity .2s) !important;
1281    transform: var(--media-dialog-transform-open, none) !important;
1282    visibility: visible !important;
1283    opacity: 1 !important;
1284    pointer-events: auto !important;
1285  }
1286
1287  :host(:not([open])) {
1288    /* Needs to use !important to prevent overwrite of media-chrome */
1289    transition: var(--media-dialog-transition-close, visibility .1s, opacity .1s) !important;
1290    transform: var(--media-dialog-transform-close, none) !important;
1291    visibility: hidden !important;
1292    opacity: 0 !important;
1293    pointer-events: none !important;
1294  }
1295
1296  :focus-visible {
1297    box-shadow: 0 0 0 2px rgba(27, 127, 204, 0.9);
1298  }
1299
1300  .dialog {
1301    position: relative;
1302    box-sizing: border-box;
1303    background: var(--media-dialog-background, none);
1304    padding: var(--media-dialog-padding, 10px);
1305    width: min(320px, 100%);
1306    word-wrap: break-word;
1307    max-height: 100%;
1308    overflow: auto;
1309    text-align: center;
1310    line-height: 1.4;
1311  }
1312`,o1=oO.createElement("template");o1.innerHTML=`
1313  <style>
1314    ${o0}
1315  </style>
1316
1317  <div class="dialog">
1318    <slot></slot>
1319  </div>
1320`;var o2=class extends oD.HTMLElement{constructor(){var b;super(),this.attachShadow({mode:"open"}),null==(b=this.shadowRoot)||b.appendChild(this.constructor.template.content.cloneNode(!0))}show(){this.setAttribute("open",""),this.dispatchEvent(new CustomEvent("open",{composed:!0,bubbles:!0})),ft(this)}close(){this.hasAttribute("open")&&(this.removeAttribute("open"),this.dispatchEvent(new CustomEvent("close",{composed:!0,bubbles:!0})),this._previouslyFocusedElement instanceof HTMLElement&&this._previouslyFocusedElement.focus())}attributeChangedCallback(b,A,B){"open"===b&&A!==B&&(null!=B?this.show():this.close())}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","dialog"),this.hasAttribute("open")&&ft(this)}};function ft(b){let A=new CustomEvent("initfocus",{composed:!0,bubbles:!0,cancelable:!0});if(b.dispatchEvent(A),A.defaultPrevented)return;let B=b.querySelector("[autofocus]:not([disabled])");!B&&b.tabIndex>=0&&(B=b),B||(B=function dist_Et(b){let A=["button","input","keygen","select","textarea"].map(function(b){return b+":not([disabled])"});A.push('[tabindex]:not([disabled]):not([tabindex=""])');let B=null==b?void 0:b.querySelector(A.join(", "));if(!B&&"attachShadow"in Element.prototype){let A=(null==b?void 0:b.querySelectorAll("*"))||[];for(let b=0;b<A.length&&!(A[b].tagName&&A[b].shadowRoot&&(B=dist_Et(A[b].shadowRoot)));b++);}return B}(b.shadowRoot)),b._previouslyFocusedElement=oO.activeElement,oO.activeElement instanceof HTMLElement&&oO.activeElement.blur(),b.addEventListener("transitionend",()=>{B instanceof HTMLElement&&B.focus({preventScroll:!0})},{once:!0})}o2.styles=o0,o2.template=o1,o2.observedAttributes=["open"],oD.customElements.get("media-dialog")||(oD.customElements.define("media-dialog",o2),oD.MediaDialog=o2);var o3=o2,o9=oO.createElement("template");o9.innerHTML=`
1321  <style>
1322    ${o3.styles}
1323
1324    .close {
1325      background: none;
1326      color: inherit;
1327      border: none;
1328      padding: 0;
1329      font: inherit;
1330      cursor: pointer;
1331      outline: inherit;
1332      width: 28px;
1333      height: 28px;
1334      position: absolute;
1335      top: 1rem;
1336      right: 1rem;
1337    }
1338  </style>
1339
1340  <div class="dialog">
1341    <slot></slot>
1342  </div>
1343
1344  <slot name="close">
1345    <button class="close" tabindex="0">
1346      <svg fill="none" viewBox="0 0 24 24" stroke="currentColor">
1347        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
1348      </svg>
1349    </button>
1350  </slot>
1351`;var o5=class extends o3{constructor(){var b,A;super(),null==(A=null==(b=this.shadowRoot)?void 0:b.querySelector(".close"))||A.addEventListener("click",()=>{this.close()})}};o5.template=o9,oD.customElements.get("mxp-dialog")||(oD.customElements.define("mxp-dialog",o5),oD.MxpDialog=o5);var o4=new WeakMap,o8=class t{constructor(b,A){this.element=b,this.type=A,this.element.addEventListener(this.type,this);let B=o4.get(this.element);B&&B.set(this.type,this)}set(b){if("function"==typeof b)this.handleEvent=b.bind(this.element);else if("object"==typeof b&&"function"==typeof b.handleEvent)this.handleEvent=b.handleEvent.bind(b);else{this.element.removeEventListener(this.type,this);let b=o4.get(this.element);
1351b&&b.delete(this.type)}}static for(b){o4.has(b.element)||o4.set(b.element,new Map);let A=b.attributeName.slice(2),B=o4.get(b.element);return B&&B.has(A)?B.get(A):new t(b.element,A)}},o6=new Map,o7=new WeakMap,se=new WeakMap,si=class{constructor(b,A,B){this.strings=b,this.values=A,this.processor=B,this.stringsKey=this.strings.join("\x01")}get template(){if(o6.has(this.stringsKey))return o6.get(this.stringsKey);{let b=oO.createElement("template"),A=this.strings.length-1;return b.innerHTML=this.strings.reduce((b,B,G)=>b+B+(G<A?`{{ ${G} }}`:""),""),o6.set(this.stringsKey,b),b}}renderInto(b){var A;let B=this.template;if(o7.get(b)!==B){o7.set(b,B);let A=new TemplateInstance(B,this.values,this.processor);se.set(b,A),b instanceof ChildNodePart?b.replace(...A.children):b.appendChild(A);return}let G=se.get(b);null==(A=null==G?void 0:G.update)||A.call(G,this.values)}},sa={processCallback(b,A,B){var G,W,K;if(B)for(let[b,et]of A){b in B&&(function(b,A){if(b instanceof AttrPart&&A instanceof Element){let B=b.element;return B[b.attributeName]!==A&&(b.element.removeAttributeNS(b.attributeNamespace,b.attributeName),B[b.attributeName]=A),!0}return!1}(W=et,K=null!=(G=B[b])?G:"")||function(b,A){if("boolean"==typeof A&&b instanceof AttrPart){let B=b.attributeNamespace;return A!==b.element.hasAttributeNS(B,b.attributeName)&&(b.booleanValue=A),!0}return!1}(W,K)||W instanceof AttrPart&&W.attributeName.startsWith("on")&&(o8.for(W).set(K),W.element.removeAttributeNS(W.attributeNamespace,W.attributeName),1)||!1===K&&W instanceof ChildNodePart&&(W.replace(""),1)||K instanceof si&&W instanceof ChildNodePart&&(K.renderInto(W),1)||K instanceof DocumentFragment&&W instanceof ChildNodePart&&(K.childNodes.length&&W.replace(...K.childNodes),1)||function(b,A){if(b instanceof AttrPart){let B=b.attributeNamespace,G=b.element.getAttributeNS(B,b.attributeName);return String(A)!==G&&(b.value=String(A))}b.value=String(A)}(W,K))}}};function dist_O(b,...A){return new si(b,A,sa)}var dist_Lt=b=>dist_O`
1352  <style>
1353    ${oJ}
1354  </style>
1355  ${ca(b)}
1356`,la=b=>{let A=b.hotKeys?`${b.hotKeys}`:"";return"live"===mux_player_dist_J(b.streamType)&&(A+=" noarrowleft noarrowright"),A},sr=Object.values({TOP:"top",CENTER:"center",BOTTOM:"bottom",LAYER:"layer",MEDIA_LAYER:"media-layer",POSTER_LAYER:"poster-layer",VERTICAL_LAYER:"vertical-layer",CENTERED_LAYER:"centered-layer",GESTURE_LAYER:"gesture-layer",CONTROLLER_LAYER:"controller",BUTTON:"button",RANGE:"range",DISPLAY:"display",CONTROL_BAR:"control-bar",SELECTMENU:"selectmenu",LISTBOX:"listbox",OPTION:"option",POSTER:"poster",LIVE:"live",PLAY:"play",PRE_PLAY:"pre-play",SEEK_BACKWARD:"seek-backward",SEEK_FORWARD:"seek-forward",MUTE:"mute",CAPTIONS:"captions",AIRPLAY:"airplay",PIP:"pip",FULLSCREEN:"fullscreen",CAST:"cast",PLAYBACK_RATE:"playback-rate",VOLUME:"volume",TIME:"time",TITLE:"title",AUDIO_TRACK:"audio-track",RENDITION:"rendition"}).join(", "),ca=b=>{var A,B,G,W,K,et,ei,ea,er,eo,es,el,ed,eu,ec,em,eh,ep,e_,ev,eb,eg,eE,ef,ey,eA,ek,eT,ew,eS,eI,eC,eR,eL,eM,ex;let eD;return dist_O`
1357  <media-theme
1358    template="${b.themeTemplate||!1}"
1359    defaultstreamtype="${null!=(A=b.defaultStreamType)&&A}"
1360    hotkeys="${la(b)||!1}"
1361    nohotkeys="${b.noHotKeys||!b.hasSrc||b.isDialogOpen||!1}"
1362    noautoseektolive="${!!(null!=(B=b.streamType)&&B.includes(en.LIVE))&&0!==b.targetLiveWindow}"
1363    novolumepref="${b.novolumepref||!1}"
1364    disabled="${!b.hasSrc||b.isDialogOpen}"
1365    audio="${null!=(G=b.audio)&&G}"
1366    style="${null!=(ex={"--media-primary-color":b.primaryColor,"--media-secondary-color":b.secondaryColor,"--media-accent-color":b.accentColor},eD="",Object.entries(ex).forEach(([b,A])=>{null!=A&&(eD+=`${dist_se(b)}: ${A}; `)}),W=eD?eD.trim():void 0)&&W}"
1367    defaultsubtitles="${!b.defaultHiddenCaptions}"
1368    forwardseekoffset="${null!=(K=b.forwardSeekOffset)&&K}"
1369    backwardseekoffset="${null!=(et=b.backwardSeekOffset)&&et}"
1370    playbackrates="${null!=(ei=b.playbackRates)&&ei}"
1371    defaultshowremainingtime="${null!=(ea=b.defaultShowRemainingTime)&&ea}"
1372    defaultduration="${null!=(er=b.defaultDuration)&&er}"
1373    hideduration="${null!=(eo=b.hideDuration)&&eo}"
1374    title="${null!=(es=b.title)&&es}"
1375    exportparts="${sr}"
1376  >
1377    <mux-video
1378      slot="media"
1379      target-live-window="${null!=(el=b.targetLiveWindow)&&el}"
1380      stream-type="${null!=(ed=mux_player_dist_J(b.streamType))&&ed}"
1381      crossorigin="${null!=(eu=b.crossOrigin)?eu:""}"
1382      playsinline
1383      autoplay="${null!=(ec=b.autoplay)&&ec}"
1384      muted="${null!=(em=b.muted)&&em}"
1385      loop="${null!=(eh=b.loop)&&eh}"
1386      preload="${null!=(ep=b.preload)&&ep}"
1387      debug="${null!=(e_=b.debug)&&e_}"
1388      prefer-cmcd="${null!=(ev=b.preferCmcd)&&ev}"
1389      disable-cookies="${null!=(eb=b.disableCookies)&&eb}"
1390      prefer-playback="${null!=(eg=b.preferPlayback)&&eg}"
1391      start-time="${null!=b.startTime&&b.startTime}"
1392      beacon-collection-domain="${null!=(eE=b.beaconCollectionDomain)&&eE}"
1393      player-software-name="${null!=(ef=b.playerSoftwareName)&&ef}"
1394      player-software-version="${null!=(ey=b.playerSoftwareVersion)&&ey}"
1395      env-key="${null!=(eA=b.envKey)&&eA}"
1396      custom-domain="${null!=(ek=b.customDomain)&&ek}"
1397      src="${b.src?b.src:!!b.playbackId&&St(b)}"
1398      cast-src="${b.src?b.src:!!b.playbackId&&St(b)}"
1399      exportparts="video"
1400    >
1401      ${b.storyboard?dist_O`<track label="thumbnails" default kind="metadata" src="${b.storyboard}" />`:dist_O``}
1402    </mux-video>
1403    <slot name="poster" slot="poster">
1404      <media-poster-image
1405        part="poster"
1406        exportparts="poster, img"
1407        src="${""!==b.poster&&null!=(eT=b.poster)&&eT}"
1408        placeholdersrc="${null!=(ew=b.placeholder)&&ew}"
1409      ></media-poster-image>
1410    </slot>
1411    <mxp-dialog
1412      no-auto-hide
1413      open="${null!=(eS=b.isDialogOpen)&&eS}"
1414      onclose="${b.onCloseErrorDialog}"
1415      oninitfocus="${b.onInitFocusDialog}"
1416    >
1417      ${null!=(eI=b.dialog)&&eI.title?dist_O`<h3>${b.dialog.title}</h3>`:dist_O``}
1418      <p>
1419        ${null==(eC=b.dialog)?void 0:eC.message}
1420        ${null!=(eR=b.dialog)&&eR.linkUrl?dist_O`<a
1421              href="${b.dialog.linkUrl}"
1422              target="_blank"
1423              rel="external noopener"
1424              aria-label="${null!=(eL=b.dialog.linkText)?eL:""} ${l("(opens in a new window)")}"
1425              >${null!=(eM=b.dialog.linkText)?eM:b.dialog.linkUrl}</a
1426            >`:dist_O``}
1427      </p>
1428    </mxp-dialog>
1429  </media-theme>
1430`};function mux_player_dist_he(b,A,B,G,W){var K,et,ei;let er={},en={};switch(b.code){case ea.MEDIA_ERR_NETWORK:switch(er.title=l("Network Error",W),er.message=b.message,null==(K=b.data)?void 0:K.response.code){case 412:er.title=l("Video is not currently available",W),er.message=l("The live stream or video file are not yet ready.",W),en.message=l("This playback-id may belong to a live stream that is not currently active or an asset that is not ready.",W),en.file="412-not-playable.md";break;case 404:er.title=l("Video does not exist",W),er.message="",en.message=l("This playback-id does not exist. You may have used an Asset ID or an ID from a different resource.",W),en.file="404-not-found.md";break;case 403:{if(er.title=l("Invalid playback URL",W),er.message=l("The video URL or playback-token are formatted with incorrect or incomplete information.",W),en.message=l("403 error trying to access this playback URL. If this is a signed URL, you might need to provide a playback-token.",W),en.file="missing-signed-tokens.md",!G)break;let{exp:b,aud:A,sub:K}=P(G),et=Date.now()>1e3*b,ei=K!==B,ea="v"!==A,eo={timeStyle:"medium",dateStyle:"medium"};if(et){er.title=l("Video URL has expired",W),er.message=l("The video’s secured playback-token has expired.",W),en.message=l("The video’s secured playback-token has expired.",W),en.context=l("Expired at: {expiredDate}. Current time: {currentDate}.",W).format({expiredDate:new Intl.DateTimeFormat(oN.code,eo).format(1e3*b),currentDate:new Intl.DateTimeFormat(oN.code,eo).format(Date.now())}),en.file="403-expired-token.md";break}if(ei){er.title=l("Video URL is formatted incorrectly",W),er.message=l("The video’s playback ID does not match the one encoded in the playback-token.",W),en.message=l("The video’s playback ID does not match the one encoded in the playback-token.",W),en.context=l("Specified playback ID: {playbackId} and the playback ID encoded in the playback-token: {tokenPlaybackId}",W).format({playbackId:B,tokenPlaybackId:K}),en.file="403-playback-id-mismatch.md";break}if(ea){er.title=l("Video URL is formatted incorrectly",W),er.message=l("The playback-token is formatted with incorrect information.",W),en.message=l("The playback-token is formatted with incorrect information.",W),en.context=l("The playback-token has an incorrect aud value: {tokenType}. aud value should be v.",W).format({tokenType:A}),en.file="403-incorrect-aud-value.md";break}en.message=l("403 error trying to access this playback URL. If this is a signed playback ID, the token might not have been generated correctly.",W),en.file="403-malformatted-token.md"}}break;case ea.MEDIA_ERR_DECODE:{let{message:A}=b;er={title:l("Media Error",W),message:A},en.file="media-decode-error.md";break}case ea.MEDIA_ERR_SRC_NOT_SUPPORTED:{let K=null==(ei=null==(et=b.data)?void 0:et.response)?void 0:ei.code;if(K>=400&&K<500){b.code=ea.MEDIA_ERR_NETWORK,b.data={response:{code:K}},{dialog:er,devlog:en}=mux_player_dist_he(b,A,B,G);break}er={title:l("Source Not Supported",W),message:b.message},en.file="media-src-not-supported.md";break}default:er={title:l("Error",W),message:b.message}}return A&&(er={title:l("Your device appears to be offline",W),message:l("Check your internet connection and try reloading this video.",W)}),{dialog:er,devlog:en}}var sn=`<template id="media-theme-gerwig">
1431  <style>
1432    @keyframes pre-play-hide {
1433      0% {
1434        transform: scale(1);
1435        opacity: 1;
1436      }
1437
1438      30% {
1439        transform: scale(0.7);
1440      }
1441
1442      100% {
1443        transform: scale(1.5);
1444        opacity: 0;
1445      }
1446    }
1447
1448    :host {
1449      --_primary-color: var(--media-primary-color, #fff);
1450      --_secondary-color: var(--media-secondary-color, transparent);
1451      --_accent-color: var(--media-accent-color, #fa50b5);
1452      --_text-color: var(--media-text-color, #000);
1453
1454      --media-icon-color: var(--_primary-color);
1455      --media-control-background: var(--_secondary-color);
1456      --media-control-hover-background: var(--_accent-color);
1457      --media-time-buffered-color: rgba(255, 255, 255, 0.4);
1458      --media-preview-thumbnail-border: 0;
1459      --media-preview-thumbnail-border-radius: 2px 2px 0 0;
1460      --media-preview-time-border-radius: 0 0 2px 2px;
1461      --media-preview-time-margin: 0 0 8px;
1462      --media-preview-time-text-shadow: none;
1463      --media-control-height: 14px;
1464      --media-control-padding: 6px;
1465
1466      color: var(--_primary-color);
1467      display: inline-block;
1468      width: 100%;
1469      height: 100%;
1470    }
1471
1472    :host([audio]) {
1473      --_secondary-color: var(--media-secondary-color, black);
1474      --media-preview-time-border-radius: 3px;
1475      --media-preview-time-margin: 0 0 5px;
1476      --media-preview-time-text-shadow: none;
1477    }
1478
1479    :host([audio]) ::slotted([slot='media']) {
1480      height: 0px;
1481    }
1482
1483    :host([audio]) media-loading-indicator {
1484      display: none;
1485    }
1486
1487    :host([audio]) media-controller {
1488      background: transparent;
1489    }
1490
1491    :host([audio]) media-controller::part(vertical-layer) {
1492      background: transparent;
1493    }
1494
1495    :host([audio]) media-control-bar {
1496      width: 100%;
1497      background-color: var(--media-control-background);
1498    }
1499
1500    /*
1501     * 0.433s is the transition duration for VTT Regions.
1502     * Borrowed here, so the captions don't move too fast.
1503     */
1504    media-controller ::slotted([slot='media']) {
1505      --media-webkit-text-track-transform: translateY(0) scale(0.98);
1506      --media-webkit-text-track-transition: transform 0.433s ease-out 0.3s;
1507    }
1508    media-controller:is([mediapaused], :not([userinactive])) ::slotted([slot='media']) {
1509      --media-webkit-text-track-transform: translateY(-50px) scale(0.98);
1510      --media-webkit-text-track-transition: transform 0.15s ease;
1511    }
1512
1513    media-time-range {
1514      --media-range-bar-color: var(--_accent-color);
1515      --media-time-range-buffered-color: var(--_primary-color);
1516      --media-range-track-color: transparent;
1517      --media-range-track-background: rgba(255, 255, 255, 0.4);
1518      --media-range-thumb-background: radial-gradient(
1519        circle,
1520        #000 0%,
1521        #000 25%,
1522        var(--_accent-color) 25%,
1523        var(--_accent-color)
1524      );
1525      --media-range-thumb-width: 12px;
1526      --media-range-thumb-height: 12px;
1527      --media-range-thumb-transform: scale(0);
1528      --media-range-thumb-transition: transform 0.3s;
1529      --media-range-thumb-opacity: 1;
1530      --media-preview-thumbnail-background: var(--_primary-color);
1531      --media-preview-thumbnail-border: 5px solid var(--_primary-color);
1532      --media-preview-thumbnail-border-radius: 5px 5px 0 0;
1533      --media-preview-time-background: var(--_primary-color);
1534      --media-preview-time-border-radius: 0 0 5px 5px;
1535      --media-preview-time-margin: 0 0 10px;
1536      --media-preview-time-padding: 2px 0 6px;
1537      --media-text-color: var(--_text-color);
1538      --media-preview-thumbnail-max-width: 150px;
1539      --media-range-track-pointer-border-right: 2px solid #000;
1540      --media-control-hover-background: transparent;
1541      color: var(--_accent-color);
1542      padding: 0 6px;
1543    }
1544
1545    :host([audio]) media-time-range {
1546      --media-preview-time-border-radius: 5px;
1547      --media-preview-time-padding: 5px;
1548    }
1549
1550    media-time-range:hover {
1551      --media-range-thumb-transform: scale(1);
1552    }
1553
1554    media-time-range::part(preview-box)::after {
1555      position: absolute;
1556      content: '';
1557      width: 0;
1558      height: 0;
1559      border-style: solid;
1560      border-width: 10px 8.5px 0 8.5px;
1561      border-color: var(--_primary-color) transparent transparent transparent;
1562      top: 100%;
1563      left: 50%;
1564      transform: translate(-50%, -10px);
1565    }
1566
1567    [part~='listbox'] {
1568      border-radius: 2px;
1569      border: 1px solid rgba(0, 0, 0, 0.1);
1570      bottom: calc(100% + 16px);
1571      padding: 2.5px 10px;
1572    }
1573
1574    [part~='listbox']::part(indicator) {
1575      fill: var(--_accent-color);
1576    }
1577
1578    [part~='listbox']::part(option) {
1579      box-sizing: border-box;
1580      display: flex;
1581      align-items: center;
1582      padding: 6px 10px;
1583      min-height: 34px;
1584    }
1585
1586    [part~='listbox']::part(option-selected) {
1587      font-weight: 700;
1588    }
1589
1590    media-captions-selectmenu,
1591    media-rendition-selectmenu,
1592    media-audio-track-selectmenu,
1593    media-playback-rate-listbox[part~='listbox'] {
1594      --media-listbox-background: var(--_primary-color);
1595      --media-option-selected-background: transparent;
1596      --media-option-hover-background: transparent;
1597      --media-option-hover-outline: var(--_accent-color) solid 1px;
1598      --media-text-color: var(--_text-color);
1599    }
1600
1601    /* The icon is a circle so make it 16px high instead of 14px for more balance. */
1602    media-audio-track-selectmenu {
1603      --media-control-padding: 5px;
1604      --media-control-height: 16px;
1605    }
1606
1607    media-playback-rate-button {
1608      --media-control-padding: 6px 3px;
1609      min-width: 4.4ch;
1610    }
1611
1612    media-playback-rate-listbox[part~='listbox'] {
1613      --media-listbox-layout: row;
1614      --media-option-selected-background: var(--_accent-color);
1615      margin-right: 6px;
1616      padding: 0;
1617    }
1618
1619    media-playback-rate-listbox[part~='listbox']::part(option) {
1620      padding: 6px 4px;
1621    }
1622
1623    media-playback-rate-listbox[part~='listbox']::part(option-selected) {
1624      color: #fff;
1625    }
1626
1627    :host(:not([audio])) media-time-range {
1628      /* Adding px is required here for calc() */
1629      --media-range-padding: 0px;
1630      background: transparent;
1631      z-index: 10;
1632      height: 10px;
1633      bottom: -3px;
1634      width: 100%;
1635    }
1636
1637    media-control-bar :is([role='button'], [role='switch'], button) {
1638      line-height: 0;
1639    }
1640
1641    media-control-bar :is([part*='button'], [part*='range'], [part*='display']) {
1642      border-radius: 3px;
1643    }
1644
1645    .spacer {
1646      flex-grow: 1;
1647      background-color: var(--media-control-background, rgba(20, 20, 30, 0.7));
1648    }
1649
1650    media-control-bar[slot~='top-chrome'] {
1651      min-height: 42px;
1652      pointer-events: none;
1653    }
1654
1655    :host([title]:not([audio])) media-control-bar[slot='top-chrome']::before {
1656      content: '';
1657      position: absolute;
1658      width: 100%;
1659      padding-bottom: min(100px, 25%);
1660      background: linear-gradient(#000, transparent);
1661      opacity: 0.8;
1662      pointer-events: none;
1663    }
1664
1665    :host(:not([audio])) media-control-bar[part~='bottom']::before {
1666      content: '';
1667      position: absolute;
1668      width: 100%;
1669      bottom: 0;
1670      left: 0;
1671      padding-bottom: min(100px, 25%);
1672      background: linear-gradient(transparent, #000);
1673      opacity: 0.8;
1674      z-index: 1;
1675      pointer-events: none;
1676    }
1677
1678    media-control-bar[part~='bottom'] > * {
1679      z-index: 2;
1680    }
1681
1682    media-control-bar[part~='bottom'] {
1683      padding: 6px 6px;
1684    }
1685
1686    media-control-bar[slot~='top-chrome'] > * {
1687      --media-control-background: transparent;
1688      --media-control-hover-background: transparent;
1689      position: relative;
1690    }
1691
1692    media-controller::part(vertical-layer) {
1693      transition: background-color 1s;
1694    }
1695
1696    media-controller:is([mediapaused], :not([userinactive]))::part(vertical-layer) {
1697      background-color: var(--controls-backdrop-color, var(--controls, transparent));
1698      transition: background-color 0.25s;
1699    }
1700
1701    .center-controls {
1702      --media-button-icon-width: 100%;
1703      --media-button-icon-height: auto;
1704      pointer-events: none;
1705      width: 100%;
1706      display: flex;
1707      flex-flow: row;
1708      align-items: center;
1709      justify-content: center;
1710      filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.25)) drop-shadow(0 0 6px rgb(0 0 0 / 0.25));
1711      paint-order: stroke;
1712      stroke: rgba(102, 102, 102, 1);
1713      stroke-width: 0.3px;
1714      text-shadow: 0 0 2px rgb(0 0 0 / 0.25), 0 0 6px rgb(0 0 0 / 0.25);
1715    }
1716
1717    .center-controls media-play-button {
1718      --media-control-background: transparent;
1719      --media-control-hover-background: transparent;
1720      --media-control-padding: 0;
1721      width: 40px;
1722    }
1723
1724    [breakpointsm] .center-controls media-play-button {
1725      width: 90px;
1726      height: 90px;
1727      border-radius: 50%;
1728      transition: background 0.4s;
1729      padding: 24px;
1730      --media-control-background: #000;
1731      --media-control-hover-background: var(--_accent-color);
1732    }
1733
1734    .center-controls media-seek-backward-button,
1735    .center-controls media-seek-forward-button {
1736      --media-control-background: transparent;
1737      --media-control-hover-background: transparent;
1738      padding: 0;
1739      margin: 0 20px;
1740      width: max(33px, min(8%, 40px));
1741    }
1742
1743    [breakpointsm]:not([audio]) .center-controls.pre-playback {
1744      display: grid;
1745      align-items: initial;
1746      justify-content: initial;
1747      height: 100%;
1748      overflow: hidden;
1749    }
1750
1751    [breakpointsm]:not([audio]) .center-controls.pre-playback media-play-button {
1752      place-self: var(--_pre-playback-place, center);
1753      grid-area: 1 / 1;
1754      margin: 16px;
1755    }
1756
1757    /* Show and hide controls or pre-playback state */
1758
1759    [breakpointsm]:is([mediahasplayed], :not([mediapaused])):not([audio])
1760      .center-controls.pre-playback
1761      media-play-button {
1762      animation: 0.3s linear forwards pre-play-hide;
1763    }
1764
1765    .autoplay-unmute {
1766      --media-control-hover-background: transparent;
1767      width: 100%;
1768      display: flex;
1769      align-items: center;
1770      justify-content: center;
1771      filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.25)) drop-shadow(0 0 6px rgb(0 0 0 / 0.25));
1772    }
1773
1774    .autoplay-unmute-btn {
1775      --media-control-height: 16px;
1776      border-radius: 8px;
1777      background: #000;
1778      color: var(--_primary-color);
1779      display: flex;
1780      align-items: center;
1781      padding: 8px 16px;
1782      font-size: 18px;
1783      font-weight: 500;
1784      cursor: pointer;
1785    }
1786
1787    .autoplay-unmute-btn:hover {
1788      background: var(--_accent-color);
1789    }
1790
1791    [breakpointsm] .autoplay-unmute-btn {
1792      --media-control-height: 30px;
1793      padding: 14px 24px;
1794      font-size: 26px;
1795    }
1796
1797    .autoplay-unmute-btn svg {
1798      margin: 0 6px 0 0;
1799    }
1800
1801    [breakpointsm] .autoplay-unmute-btn svg {
1802      margin: 0 10px 0 0;
1803    }
1804
1805    media-controller:not([audio]):not([mediahasplayed]) *:is(media-control-bar, media-time-range) {
1806      display: none;
1807    }
1808
1809    media-loading-indicator {
1810      --media-loading-icon-width: 100%;
1811      --media-button-icon-height: auto;
1812      display: var(--media-control-display, var(--media-loading-indicator-display, flex));
1813      pointer-events: none;
1814      position: absolute;
1815      width: min(15%, 150px);
1816      flex-flow: row;
1817      align-items: center;
1818      justify-content: center;
1819    }
1820
1821    /* Intentionally don't target the div for transition but the children
1822		 of the div. Prevents messing with media-chrome's autohide feature. */
1823    media-loading-indicator + div * {
1824      transition: opacity 0.15s;
1825      opacity: 1;
1826    }
1827
1828    media-loading-indicator[medialoading]:not([mediapaused]) ~ div > * {
1829      opacity: 0;
1830      transition-delay: 400ms;
1831    }
1832
1833    media-volume-range {
1834      width: min(100%, 100px);
1835      --media-range-padding-left: 10px;
1836      --media-range-padding-right: 10px;
1837      --media-range-thumb-width: 12px;
1838      --media-range-thumb-height: 12px;
1839      --media-range-thumb-background: radial-gradient(
1840        circle,
1841        #000 0%,
1842        #000 25%,
1843        var(--_primary-color) 25%,
1844        var(--_primary-color)
1845      );
1846      --media-control-hover-background: none;
1847    }
1848
1849    media-time-display {
1850      white-space: nowrap;
1851    }
1852
1853    /* Generic style for explicitly disabled controls */
1854    media-control-bar[part~='bottom'] [disabled],
1855    media-control-bar[part~='bottom'] [aria-disabled='true'] {
1856      opacity: 60%;
1857      cursor: not-allowed;
1858    }
1859
1860    media-text-display {
1861      --media-font-size: 16px;
1862      --media-control-padding: 14px;
1863      font-weight: 500;
1864    }
1865
1866    media-play-button.animated *:is(g, path) {
1867      transition: all 0.3s;
1868    }
1869
1870    media-play-button.animated[mediapaused] .pause-icon-pt1 {
1871      opacity: 0;
1872    }
1873
1874    media-play-button.animated[mediapaused] .pause-icon-pt2 {
1875      transform-origin: center center;
1876      transform: scaleY(0);
1877    }
1878
1879    media-play-button.animated[mediapaused] .play-icon {
1880      clip-path: inset(0 0 0 0);
1881    }
1882
1883    media-play-button.animated:not([mediapaused]) .play-icon {
1884      clip-path: inset(0 0 0 100%);
1885    }
1886
1887    media-seek-forward-button,
1888    media-seek-backward-button {
1889      --media-font-weight: 400;
1890    }
1891
1892    .mute-icon {
1893      display: inline-block;
1894    }
1895
1896    .mute-icon :is(path, g) {
1897      transition: opacity 0.5s;
1898    }
1899
1900    .muted {
1901      opacity: 0;
1902    }
1903
1904    media-mute-button[mediavolumelevel='low'] :is(.volume-medium, .volume-high),
1905    media-mute-button[mediavolumelevel='medium'] :is(.volume-high) {
1906      opacity: 0;
1907    }
1908
1909    media-mute-button[mediavolumelevel='off'] .unmuted {
1910      opacity: 0;
1911    }
1912
1913    media-mute-button[mediavolumelevel='off'] .muted {
1914      opacity: 1;
1915    }
1916
1917    /**
1918     * Our defaults for these buttons are to hide them at small sizes
1919     * users can override this with CSS
1920     */
1921    media-controller:not([breakpointsm]):not([audio]) {
1922      --bottom-play-button: none;
1923      --bottom-seek-backward-button: none;
1924      --bottom-seek-forward-button: none;
1925      --bottom-time-display: none;
1926      --bottom-playback-rate-selectmenu: none;
1927      --bottom-pip-button: none;
1928    }
1929  </style>
1930
1931  <template partial="TitleDisplay">
1932    <template if="title">
1933      <media-text-display part="top title display" class="title-display">{{title}}</media-text-display>
1934    </template>
1935  </template>
1936
1937  <template partial="PlayButton">
1938    <media-play-button
1939      part="{{section ?? 'bottom'}} play button"
1940      disabled="{{disabled}}"
1941      aria-disabled="{{disabled}}"
1942      class="animated"
1943    >
1944      <svg aria-hidden="true" viewBox="0 0 18 14" slot="icon">
1945        <g class="play-icon">
1946          <path
1947            d="M15.5987 6.2911L3.45577 0.110898C2.83667 -0.204202 2.06287 0.189698 2.06287 0.819798V13.1802C2.06287 13.8103 2.83667 14.2042 3.45577 13.8891L15.5987 7.7089C16.2178 7.3938 16.2178 6.6061 15.5987 6.2911Z"
1948          />
1949        </g>
1950        <g class="pause-icon">
1951          <path
1952            class="pause-icon-pt1"
1953            d="M5.90709 0H2.96889C2.46857 0 2.06299 0.405585 2.06299 0.9059V13.0941C2.06299 13.5944 2.46857 14 2.96889 14H5.90709C6.4074 14 6.81299 13.5944 6.81299 13.0941V0.9059C6.81299 0.405585 6.4074 0 5.90709 0Z"
1954          />
1955          <path
1956            class="pause-icon-pt2"
1957            d="M15.1571 0H12.2189C11.7186 0 11.313 0.405585 11.313 0.9059V13.0941C11.313 13.5944 11.7186 14 12.2189 14H15.1571C15.6574 14 16.063 13.5944 16.063 13.0941V0.9059C16.063 0.405585 15.6574 0 15.1571 0Z"
1958          />
1959        </g>
1960      </svg>
1961    </media-play-button>
1962  </template>
1963
1964  <template partial="PrePlayButton">
1965    <media-play-button
1966      part="{{section ?? 'center'}} play button pre-play"
1967      disabled="{{disabled}}"
1968      aria-disabled="{{disabled}}"
1969    >
1970      <svg aria-hidden="true" viewBox="0 0 18 14" slot="icon" style="transform: translate(3px, 0)">
1971        <path
1972          d="M15.5987 6.2911L3.45577 0.110898C2.83667 -0.204202 2.06287 0.189698 2.06287 0.819798V13.1802C2.06287 13.8103 2.83667 14.2042 3.45577 13.8891L15.5987 7.7089C16.2178 7.3938 16.2178 6.6061 15.5987 6.2911Z"
1973        />
1974      </svg>
1975    </media-play-button>
1976  </template>
1977
1978  <template partial="SeekBackwardButton">
1979    <media-seek-backward-button
1980      seekoffset="{{backwardseekoffset}}"
1981      part="{{section ?? 'bottom'}} seek-backward button"
1982      disabled="{{disabled}}"
1983      aria-disabled="{{disabled}}"
1984    >
1985      <svg viewBox="0 0 22 14" aria-hidden="true" slot="icon">
1986        <path
1987          d="M3.65 2.07888L0.0864 6.7279C-0.0288 6.87812 -0.0288 7.12188 0.0864 7.2721L3.65 11.9211C3.7792 12.0896 4 11.9703 4 11.7321V2.26787C4 2.02968 3.7792 1.9104 3.65 2.07888Z"
1988        />
1989        <text transform="translate(6 12)" style="font-size: 14px; font-family: 'ArialMT', 'Arial'">
1990          {{backwardseekoffset}}
1991        </text>
1992      </svg>
1993    </media-seek-backward-button>
1994  </template>
1995
1996  <template partial="SeekForwardButton">
1997    <media-seek-forward-button
1998      seekoffset="{{forwardseekoffset}}"
1999      part="{{section ?? 'bottom'}} seek-forward button"
2000      disabled="{{disabled}}"
2001      aria-disabled="{{disabled}}"
2002    >
2003      <svg viewBox="0 0 22 14" aria-hidden="true" slot="icon">
2004        <g>
2005          <text transform="translate(-1 12)" style="font-size: 14px; font-family: 'ArialMT', 'Arial'">
2006            {{forwardseekoffset}}
2007          </text>
2008          <path
2009            d="M18.35 11.9211L21.9136 7.2721C22.0288 7.12188 22.0288 6.87812 21.9136 6.7279L18.35 2.07888C18.2208 
20091.91041 18 2.02968 18 2.26787V11.7321C18 11.9703 18.2208 12.0896 18.35 11.9211Z"
2010          />
2011        </g>
2012      </svg>
2013    </media-seek-forward-button>
2014  </template>
2015
2016  <template partial="MuteButton">
2017    <media-mute-button part="bottom mute button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2018      <svg viewBox="0 0 18 14" slot="icon" class="mute-icon" aria-hidden="true">
2019        <g class="unmuted">
2020          <path
2021            d="M6.76786 1.21233L3.98606 3.98924H1.19937C0.593146 3.98924 0.101743 4.51375 0.101743 5.1607V6.96412L0 6.99998L0.101743 7.03583V8.83926C0.101743 9.48633 0.593146 10.0108 1.19937 10.0108H3.98606L6.76773 12.7877C7.23561 13.2547 8 12.9007 8 12.2171V1.78301C8 1.09925 7.23574 0.745258 6.76786 1.21233Z"
2022          />
2023          <path
2024            class="volume-low"
2025            d="M10 3.54781C10.7452 4.55141 11.1393 5.74511 11.1393 6.99991C11.1393 8.25471 10.7453 9.44791 10 10.4515L10.7988 11.0496C11.6734 9.87201 12.1356 8.47161 12.1356 6.99991C12.1356 5.52821 11.6735 4.12731 10.7988 2.94971L10 3.54781Z"
2026          />
2027          <path
2028            class="volume-medium"
2029            d="M12.3778 2.40086C13.2709 3.76756 13.7428 5.35806 13.7428 7.00026C13.7428 8.64246 13.2709 10.233 12.3778 11.5992L13.2106 12.1484C14.2107 10.6185 14.739 8.83796 14.739 7.00016C14.739 5.16236 14.2107 3.38236 13.2106 1.85156L12.3778 2.40086Z"
2030          />
2031          <path
2032            class="volume-high"
2033            d="M15.5981 0.75L14.7478 1.2719C15.7937 2.9919 16.3468 4.9723 16.3468 7C16.3468 9.0277 15.7937 11.0082 14.7478 12.7281L15.5981 13.25C16.7398 11.3722 17.343 9.211 17.343 7C17.343 4.789 16.7398 2.6268 15.5981 0.75Z"
2034          />
2035        </g>
2036        <g class="muted">
2037          <path
2038            fill-rule="evenodd"
2039            clip-rule="evenodd"
2040            d="M4.39976 4.98924H1.19937C1.19429 4.98924 1.17777 4.98961 1.15296 5.01609C1.1271 5.04369 1.10174 5.09245 1.10174 5.1607V8.83926C1.10174 8.90761 1.12714 8.95641 1.15299 8.984C1.17779 9.01047 1.1943 9.01084 1.19937 9.01084H4.39977L7 11.6066V2.39357L4.39976 4.98924ZM7.47434 1.92006C7.4743 1.9201 7.47439 1.92002 7.47434 1.92006V1.92006ZM6.76773 12.7877L3.98606 10.0108H1.19937C0.593146 10.0108 0.101743 9.48633 0.101743 8.83926V7.03583L0 6.99998L0.101743 6.96412V5.1607C0.101743 4.51375 0.593146 3.98924 1.19937 3.98924H3.98606L6.76786 1.21233C7.23574 0.745258 8 1.09925 8 1.78301V12.2171C8 12.9007 7.23561 13.2547 6.76773 12.7877Z"
2041          />
2042          <path
2043            fill-rule="evenodd"
2044            clip-rule="evenodd"
2045            d="M15.2677 9.30323C15.463 9.49849 15.7796 9.49849 15.9749 9.30323C16.1701 9.10796 16.1701 8.79138 15.9749 8.59612L14.2071 6.82841L15.9749 5.06066C16.1702 4.8654 16.1702 4.54882 15.9749 4.35355C15.7796 4.15829 15.4631 4.15829 15.2678 4.35355L13.5 6.1213L11.7322 4.35348C11.537 4.15822 11.2204 4.15822 11.0251 4.35348C10.8298 4.54874 10.8298 4.86532 11.0251 5.06058L12.7929 6.82841L11.0251 8.59619C10.8299 8.79146 10.8299 9.10804 11.0251 9.3033C11.2204 9.49856 11.537 9.49856 11.7323 9.3033L13.5 7.53552L15.2677 9.30323Z"
2046          />
2047        </g>
2048      </svg>
2049    </media-mute-button>
2050  </template>
2051
2052  <template partial="PipButton">
2053    <media-pip-button part="bottom pip button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2054      <svg viewBox="0 0 18 14" aria-hidden="true" slot="icon">
2055        <path
2056          d="M15.9891 0H2.011C0.9004 0 0 0.9003 0 2.0109V11.989C0 13.0996 0.9004 14 2.011 14H15.9891C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.9891 0ZM17 11.9891C17 12.5465 16.5465 13 15.9891 13H2.011C1.4536 13 1.0001 12.5465 1.0001 11.9891V2.0109C1.0001 1.4535 1.4536 0.9999 2.011 0.9999H15.9891C16.5465 0.9999 17 1.4535 17 2.0109V11.9891Z"
2057        />
2058        <path
2059          d="M15.356 5.67822H8.19523C8.03253 5.67822 7.90063 5.81012 7.90063 5.97282V11.3836C7.90063 11.5463 8.03253 11.6782 8.19523 11.6782H15.356C15.5187 11.6782 15.6506 11.5463 15.6506 11.3836V5.97282C15.6506 5.81012 15.5187 5.67822 15.356 5.67822Z"
2060        />
2061      </svg>
2062    </media-pip-button>
2063  </template>
2064
2065  <template partial="CaptionsMenuButton">
2066    <media-captions-selectmenu part="bottom captions selectmenu" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2067      <media-captions-button
2068        slot="button"
2069        part="bottom captions button"
2070        disabled="{{disabled}}"
2071        aria-disabled="{{disabled}}"
2072      >
2073        <svg aria-hidden="true" viewBox="0 0 18 14" slot="on">
2074          <path
2075            d="M15.989 0H2.011C0.9004 0 0 0.9003 0 2.0109V11.9891C0 13.0997 0.9004 14 2.011 14H15.989C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.989 0ZM4.2292 8.7639C4.5954 9.1902 5.0935 9.4031 5.7233 9.4031C6.1852 9.4031 6.5544 9.301 6.8302 9.0969C7.1061 8.8933 7.2863 8.614 7.3702 8.26H8.4322C8.3062 8.884 8.0093 9.3733 7.5411 9.7273C7.0733 10.0813 6.4703 10.2581 5.732 10.2581C5.108 10.2581 4.5699 10.1219 4.1168 9.8489C3.6637 9.5759 3.3141 9.1946 3.0685 8.7058C2.8224 8.2165 2.6994 7.6511 2.6994 7.009C2.6994 6.3611 2.8224 5.7927 3.0685 5.3034C3.3141 4.8146 3.6637 4.4323 4.1168 4.1559C4.5699 3.88 5.108 3.7418 5.732 3.7418C6.4703 3.7418 7.0733 3.922 7.5411 4.2818C8.0094 4.6422 8.3062 5.1461 8.4322 5.794H7.3702C7.2862 5.4283 7.106 5.1368 6.8302 4.921C6.5544 4.7052 6.1852 4.5968 5.7233 4.5968C5.0934 4.5968 4.5954 4.8116 4.2292 5.2404C3.8635 5.6696 3.6804 6.259 3.6804 7.
2075009C3.6804 7.7531 3.8635 8.3381 4.2292 8.7639ZM11.0974 8.7639C11.4636 9.1902 11.9617 9.4031 12.5915 9.4031C13.0534 9.4031 13.4226 9.301 13.6984 9.0969C13.9743 8.8933 14.1545 8.614 14.2384 8.26H15.3004C15.1744 8.884 14.8775 9.3733 14.4093 9.7273C13.9415 10.0813 13.3385 10.2581 12.6002 10.2581C11.9762 10.2581 11.4381 10.1219 10.985 9.8489C10.5319 9.5759 10.1823 9.1946 9.9367 8.7058C9.6906 8.2165 9.5676 7.6511 9.5676 7.009C9.5676 6.3611 9.6906 5.7927 9.9367 5.3034C10.1823 4.8146 10.5319 4.4323 10.985 4.1559C11.4381 3.88 11.9762 3.7418 12.6002 3.7418C13.3385 3.7418 13.9415 3.922 14.4093 4.2818C14.8776 4.6422 15.1744 5.1461 15.3004 5.794H14.2384C14.1544 5.4283 13.9742 5.1368 13.6984 4.921C13.4226 4.7052 13.0534 4.5968 12.5915 4.5968C11.9616 4.5968 11.4636 4.8116 11.0974 5.2404C10.7317 5.6696 10.5486 6.259 10.5486 7.009C10.5486 7.7531 10.7317 8.3381 11.0974 8.7639Z"
2076          />
2077        </svg>
2078        <svg aria-hidden="true" viewBox="0 0 18 14" slot="off">
2079          <path
2080            d="M5.73219 10.258C5.10819 10.258 4.57009 10.1218 4.11699 9.8488C3.66389 9.5758 3.31429 9.1945 3.06869 8.7057C2.82259 8.2164 2.69958 7.651 2.69958 7.0089C2.69958 6.361 2.82259 5.7926 3.06869 5.3033C3.31429 4.8145 3.66389 4.4322 4.11699 4.1558C4.57009 3.8799 5.10819 3.7417 5.73219 3.7417C6.47049 3.7417 7.07348 3.9219 7.54128 4.2817C8.00958 4.6421 8.30638 5.146 8.43238 5.7939H7.37039C7.28639 5.4282 7.10618 5.1367 6.83039 4.9209C6.55459 4.7051 6.18538 4.5967 5.72348 4.5967C5.09358 4.5967 4.59559 4.8115 4.22939 5.2403C3.86369 5.6695 3.68058 6.2589 3.68058 7.0089C3.68058 7.753 3.86369 8.338 4.22939 8.7638C4.59559 9.1901 5.09368 9.403 5.72348 9.403C6.18538 9.403 6.55459 9.3009 6.83039 9.0968C7.10629 8.8932 7.28649 8.6139 7.37039 8.2599H8.43238C8.30638 8.8839 8.00948 9.3732 7.54128 9.7272C7.07348 10.0812 6.47049 10.258 5.73219 10.258Z"
2081          />
2082          <path
2083            d="M12.6003 10.258C11.9763 10.258 11.4382 10.1218 10.9851 9.8488C10.532 9.5758 10.1824 9.1945 9.93685 8.7057C9.69075 8.2164 9.56775 7.651 9.56775 7.0089C9.56775 6.361 9.69075 5.7926 9.93685 5.3033C10.1824 4.8145 10.532 4.4322 10.9851 4.1558C11.4382 3.8799 11.9763 3.7417 12.6003 3.7417C13.3386 3.7417 13.9416 3.9219 14.4094 4.2817C14.8777 4.6421 15.1745 5.146 15.3005 5.7939H14.2385C14.1545 5.4282 13.9743 5.1367 13.6985 4.9209C13.4227 4.7051 13.0535 4.5967 12.5916 4.5967C11.9617 4.5967 11.4637 4.8115 11.0975 5.2403C10.7318 5.6695 10.5487 6.2589 10.5487 7.0089C10.5487 7.753 10.7318 8.338 11.0975 8.7638C11.4637 9.1901 11.9618 9.403 12.5916 9.403C13.0535 9.403 13.4227 9.3009 13.6985 9.0968C13.9744 8.8932 14.1546 8.6139 14.2385 8.2599H15.3005C15.1745 8.8839 14.8776 9.3732 14.4094 9.7272C13.9416 10.0812 13.3386 10.258 12.6003 10.258Z"
2084          />
2085          <path
2086            d="M15.9891 1C16.5465 1 17 1.4535 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H2.0109C1.4535 13 1 12.5465 1 11.9891V2.0109C1 1.4535 1.4535 0.9999 2.0109 0.9999L15.9891 1ZM15.9891 0H2.0109C0.9003 0 0 0.9003 0 2.0109V11.9891C0 13.0997 0.9003 14 2.0109 14H15.9891C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.9891 0Z"
2087          />
2088        </svg>
2089      </media-captions-button>
2090      <media-captions-listbox slot="listbox" exportparts="option" part="bottom captions listbox">
2091        <div slot="select-indicator">
2092          <style>
2093            .listbox-indicator {
2094              position: relative;
2095              top: 1px;
2096              width: 0.9em;
2097              height: auto;
2098              fill: var(--_accent-color);
2099            }
2100
2101            [aria-selected='false'] .listbox-indicator {
2102              display: none;
2103            }
2104          </style>
2105          <svg viewBox="0 0 14 18" class="listbox-indicator">
2106            <path
2107              d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"
2108              fill-rule="evenodd"
2109            />
2110          </svg>
2111        </div>
2112      </media-captions-listbox>
2113    </media-captions-select
vendor: 5,520 bytes, lines 2113-2184
2113menu>
2114  </template>
2115
2116  <template partial="AirplayButton">
2117    <media-airplay-button part="bottom airplay button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2118      <svg viewBox="0 0 18 14" aria-hidden="true" slot="icon">
2119        <path
2120          d="M16.1383 0H1.8618C0.8335 0 0 0.8335 0 1.8617V10.1382C0 11.1664 0.8335 12 1.8618 12H3.076C3.1204 11.9433 3.1503 11.8785 3.2012 11.826L4.004 11H1.8618C1.3866 11 1 10.6134 1 10.1382V1.8617C1 1.3865 1.3866 0.9999 1.8618 0.9999H16.1383C16.6135 0.9999 17.0001 1.3865 17.0001 1.8617V10.1382C17.0001 10.6134 16.6135 11 16.1383 11H13.9961L14.7989 11.826C14.8499 11.8785 14.8798 11.9432 14.9241 12H16.1383C17.1665 12 18.0001 11.1664 18.0001 10.1382V1.8617C18 0.8335 17.1665 0 16.1383 0Z"
2121        />
2122        <path
2123          d="M9.55061 8.21903C9.39981 8.06383 9.20001 7.98633 9.00011 7.98633C8.80021 7.98633 8.60031 8.06383 8.44951 8.21903L4.09771 12.697C3.62471 13.1838 3.96961 13.9998 4.64831 13.9998H13.3518C14.0304 13.9998 14.3754 13.1838 13.9023 12.697L9.55061 8.21903Z"
2124        />
2125      </svg>
2126    </media-airplay-button>
2127  </template>
2128
2129  <template partial="FullscreenButton">
2130    <media-fullscreen-button part="bottom fullscreen button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2131      <svg viewBox="0 0 18 14" aria-hidden="true" slot="enter">
2132        <path
2133          d="M1.00745 4.39539L1.01445 1.98789C1.01605 1.43049 1.47085 0.978289 2.02835 0.979989L6.39375 0.992589L6.39665 -0.007411L2.03125 -0.020011C0.920646 -0.023211 0.0176463 0.874489 0.0144463 1.98509L0.00744629 4.39539H1.00745Z"
2134        />
2135        <path
2136          d="M17.0144 2.03431L17.0076 4.39541H18.0076L18.0144 2.03721C18.0176 0.926712 17.1199 0.0237125 16.0093 0.0205125L11.6439 0.0078125L11.641 1.00781L16.0064 1.02041C16.5638 1.02201 17.016 1.47681 17.0144 2.03431Z"
2137        />
2138        <path
2139          d="M16.9925 9.60498L16.9855 12.0124C16.9839 12.5698 16.5291 13.022 15.9717 13.0204L11.6063 13.0078L11.6034 14.0078L15.9688 14.0204C17.0794 14.0236 17.9823 13.1259 17.9855 12.0153L17.9925 9.60498H16.9925Z"
2140        />
2141        <path
2142          d="M0.985626 11.9661L0.992426 9.60498H-0.0074737L-0.0142737 11.9632C-0.0174737 13.0738 0.880226 13.9767 1.99083 13.98L6.35623 13.9926L6.35913 12.9926L1.99373 12.98C1.43633 12.9784 0.983926 12.5236 0.985626 11.9661Z"
2143        />
2144      </svg>
2145      <svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">
2146        <path
2147          d="M5.39655 -0.0200195L5.38955 2.38748C5.38795 2.94488 4.93315 3.39708 4.37565 3.39538L0.0103463 3.38278L0.00744629 4.38278L4.37285 4.39538C5.48345 4.39858 6.38635 3.50088 6.38965 2.39028L6.39665 -0.0200195H5.39655Z"
2148        />
2149        <path
2150          d="M12.6411 2.36891L12.6479 0.0078125H11.6479L11.6411 2.36601C11.6379 3.47651 12.5356 4.37951 13.6462 4.38271L18.0116 4.39531L18.0145 3.39531L13.6491 3.38271C13.0917 3.38111 12.6395 2.92641 12.6411 2.36891Z"
2151        />
2152        <path
2153          d="M12.6034 14.0204L12.6104 11.613C12.612 11.0556 13.0668 10.6034 13.6242 10.605L17.9896 10.6176L17.9925 9.61759L13.6271 9.60499C12.5165 9.60179 11.6136 10.4995 11.6104 11.6101L11.6034 14.0204H12.6034Z"
2154        />
2155        <path
2156          d="M5.359 11.6315L5.3522 13.9926H6.3522L6.359 11.6344C6.3622 10.5238 5.4645 9.62088 4.3539 9.61758L-0.0115043 9.60498L-0.0144043 10.605L4.351 10.6176C4.9084 10.6192 5.3607 11.074 5.359 11.6315Z"
2157        />
2158      </svg>
2159    </media-fullscreen-button>
2160  </template>
2161
2162  <template partial="CastButton">
2163    <media-cast-button part="bottom cast button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2164      <svg viewBox="0 0 18 14" aria-hidden="true" slot="enter">
2165        <path
2166          d="M16.0072 0H2.0291C0.9185 0 0.0181 0.9003 0.0181 2.011V5.5009C0.357 5.5016 0.6895 5.5275 1.0181 5.5669V2.011C1.0181 1.4536 1.4716 1 2.029 1H16.0072C16.5646 1 17.0181 1.4536 17.0181 2.011V11.9891C17.0181 12.5465 16.5646 13 16.0072 13H8.4358C8.4746 13.3286 8.4999 13.6611 8.4999 13.9999H16.0071C17.1177 13.9999 18.018 13.0996 18.018 11.989V2.011C18.0181 0.9003 17.1178 0 16.0072 0ZM0 6.4999V7.4999C3.584 7.4999 6.5 10.4159 6.5 13.9999H7.5C7.5 9.8642 4.1357 6.4999 0 6.4999ZM0 8.7499V9.7499C2.3433 9.7499 4.25 11.6566 4.25 13.9999H5.25C5.25 11.1049 2.895 8.7499 0 8.7499ZM0.0181 11V14H3.0181C3.0181 12.3431 1.675 11 0.0181 11Z"
2167        />
2168      </svg>
2169      <svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">
2170        <path
2171          d="M15.9891 0H2.01103C0.900434 0 3.35947e-05 0.9003 3.35947e-05 2.011V5.5009C0.338934 5.5016 0.671434 5.5275 1.00003 5.5669V2.011C1.00003 1.4536 1.45353 1 2.01093 1H15.9891C16.5465 1 17 1.4536 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H8.41773C8.45653 13.3286 8.48183 13.6611 8.48183 13.9999H15.989C17.0996 13.9999 17.9999 13.0996 17.9999 11.989V2.011C18 0.9003 17.0997 0 15.9891 0ZM-0.0180664 6.4999V7.4999C3.56593 7.4999 6.48193 10.4159 6.48193 13.9999H7.48193C7.48193 9.8642 4.11763 6.4999 -0.0180664 6.4999ZM-0.0180664 8.7499V9.7499C2.32523 9.7499 4.23193 11.6566 4.23193 13.9999H5.23193C5.23193 11.1049 2.87693 8.7499 -0.0180664 8.7499ZM3.35947e-05 11V14H3.00003C3.00003 12.3431 1.65693 11 3.35947e-05 11Z"
2172        />
2173        <path d="M2.15002 5.634C5.18352 6.4207 7.57252 8.8151 8.35282 11.8499H15.8501V2.1499H2.15002V5.634Z" />
2174      </svg>
2175    </media-cast-button>
2176  </template>
2177
2178  <template partial="LiveButton">
2179    <media-live-button part="{{section ?? 'top'}} live button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2180      <span slot="text">Live</span>
2181    </media-live-button>
2182  </template>
2183
2184  <template partial="PlaybackRate
2184Select">
2185    <media-playback-rate-selectmenu
2186      part="bottom playback-rate selectmenu"
2187      disabled="{{disabled}}"
2188      aria-disabled="{{disabled}}"
2189    >
2190      <media-playback-rate-button slot="button" part="bottom playback-rate button"></media-playback-rate-button>
2191      <media-playback-rate-listbox
2192        slot="listbox"
2193        rates="{{playbackrates}}"
2194        exportparts="option"
2195        part="bottom playback-rate listbox"
2196      ></media-playback-rate-listbox>
2197    </media-playback-rate-selectmenu>
2198  </template>
2199
2200  <template partial="VolumeRange">
2201    <media-volume-range
2202      part="bottom volume range"
2203      disabled="{{disabled}}"
2204      aria-disabled="{{disabled}}"
2205    ></media-volume-range>
2206  </template>
2207
2208  <template partial="TimeDisplay">
2209    <media-time-display
2210      remaining="{{defaultshowremainingtime}}"
2211      showduration="{{!hideduration}}"
2212      part="bottom time display"
2213      disabled="{{disabled}}"
2214      aria-disabled="{{disabled}}"
2215    ></media-time-display>
2216  </template>
2217
2218  <template partial="TimeRange">
2219    <media-time-range part="bottom time range" disabled="{{disabled}}" aria-disabled="{{disabled}}"></media-time-range>
2220  </template>
2221
2222  <template partial="AudioTrackSelect">
2223    <media-audio-track-selectmenu
2224      part="bottom audio-track selectmenu"
2225      disabled="{{disabled}}"
2226      aria-disabled="{{disabled}}"
2227    >
2228      <media-audio-track-button slot="button" part="bottom audio-track button">
2229        <svg aria-hidden="true" slot="icon" viewBox="0 0 18 16">
2230          <path d="M9 15A7 7 0 1 1 9 1a7 7 0 0 1 0 14Zm0 1A8 8 0 1 0 9 0a8 8 0 0 0 0 16Z" />
2231          <path
2232            d="M5.2 6.3a.5.5 0 0 1 .5.5v2.4a.5.5 0 1 1-1 0V6.8a.5.5 0 0 1 .5-.5Zm2.4-2.4a.5.5 0 0 1 .5.5v7.2a.5.5 0 0 1-1 0V4.4a.5.5 0 0 1 .5-.5ZM10 5.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.4-.8a.5.5 0 0 1 .5.5v5.6a.5.5 0 0 1-1 0V5.2a.5.5 0 0 1 .5-.5Z"
2233          />
2234        </svg>
2235      </media-audio-track-button>
2236      <media-audio-track-listbox slot="listbox" exportparts="option" part="bottom audio-track listbox">
2237        <div slot="select-indicator">
2238          <style>
2239            .listbox-indicator {
2240              position: relative;
2241              top: 1px;
2242              width: 0.9em;
2243              height: auto;
2244              fill: var(--_accent-color);
2245            }
2246
2247            [aria-selected='false'] .listbox-indicator {
2248              display: none;
2249            }
2250          </style>
2251          <svg viewBox="0 0 14 18" class="listbox-indicator">
2252            <path
2253              d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"
2254              fill-rule="evenodd"
2255            />
2256          </svg>
2257        </div>
2258      </media-audio-track-listbox>
2259    </media-audio-track-selectmenu>
2260  </template>
2261
2262  <template partial="RenditionSelect">
2263    <media-rendition-selectmenu part="bottom rendition selectmenu" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2264      <media-rendition-button slot="button" part="bottom rendition button">
2265        <svg aria-hidden="true" slot="icon" viewBox="0 0 18 14">
2266          <path
2267            d="M2.25 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM9 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
2268          />
2269        </svg>
2270      </media-rendition-button>
2271      <media-rendition-listbox slot="listbox" exportparts="option" part="bottom rendition listbox">
2272        <div slot="select-indicator">
2273          <style>
2274            .listbox-indicator {
2275              position: relative;
2276              top: 1px;
2277              width: 0.9em;
2278              height: auto;
2279              fill: var(--_accent-color);
2280            }
2281
2282            [aria-selected='false'] .listbox-indicator {
2283              display: none;
2284            }
2285          </style>
2286          <svg viewBox="0 0 14 18" class="listbox-indicator">
2287            <path
2288              d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"
2289              fill-rule="evenodd"
2290            />
2291          </svg>
2292        </div>
2293      </media-rendition-listbox>
2294    </media-rendition-selectmenu>
2295  </template>
2296
2297  <media-controller
2298    part="controller"
2299    defaultstreamtype="{{defaultstreamtype ?? 'on-demand'}}"
2300    breakpoints="sm:470"
2301    gesturesdisabled="{{disabled}}"
2302    hotkeys="{{hotkeys}}"
2303    nohotkeys="{{nohotkeys}}"
2304    novolumepref="{{novolumepref}}"
2305    audio="{{audio}}"
2306    noautoseektolive="{{noautoseektolive}}"
2307    defaultsubtitles="{{defaultsubtitles}}"
2308    defaultduration="{{defaultduration ?? false}}"
2309    exportparts="layer, media-layer, poster-layer, vertical-layer, centered-layer, gesture-layer"
2310    style="--_pre-playback-place:{{preplaybackplace ?? 'center'}}"
2311  >
2312    <slot name="media" slot="media"></slot>
2313    <slot name="poster" slot="poster"></slot>
2314
2315    <media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>
2316
2317    <template if="!audio">
2318      <!-- Pre-playback UI -->
2319      <div slot="centered-chrome" class="center-controls pre-playback">
2320        <template if="streamtype == 'on-demand'">
2321          <template if="!breakpointsm"> {{>SeekBackwardButton section="center"}} </template>
2322          <template if="!breakpointsm"> {{>PlayButton section="center"}} </template>
2323          <template if="breakpointsm"> {{>PrePlayButton section="center"}} </template>
2324          <template if="!breakpointsm"> {{>SeekForwardButton section="center"}} </template>
2325        </template>
2326
2327        <template if="streamtype == 'live'">
2328          <template if="!breakpointsm">
2329            <template if="targetlivewindow > 0"> {{>SeekBackwardButton section="center"}} </template>
2330          </template>
2331          <template if="!breakpointsm"> {{>PlayButton section="center"}} </template>
2332          <template if="breakpointsm"> {{>PrePlayButton section="center"}} </template>
2333          <template if="!breakpointsm">
2334            <template if="targetlivewindow > 0"> {{>SeekForwardButton section="center"}} </template>
2335          </template>
2336        </template>
2337      </div>
2338
2339      <!-- Auotplay centered unmute button -->
2340      <!--
2341        todo: figure out how show this with available state variables
2342        needs to show when:
2343        - autoplay is enabled
2344        - playback has been successful
2345        - audio is muted
2346        - in place / instead of the pre-plaback play button
2347        - not to show again after user has interacted with this button
2348          - OR user has interacted with the mute button in the control bar
2349      -->
2350      <!--
2351        There should be a >MuteButton to the left of the "Unmute" text, but a templating bug
2352        makes it appear even if commented out in the markup, add it back when code is un-commented
2353      -->
2354      <!-- <div slot="centered-chrome" class="autoplay-unmute">
2355        <div role="button" class="autoplay-unmute-btn">Unmute</div>
2356      </div> -->
2357
2358      <template if="streamtype == 'on-demand'">
2359        <template if="breakpointsm">
2360          <media-control-bar part="control-bar top" slot="top-chrome">{{>TitleDisplay}} </media-control-bar>
2361        </template>
2362        {{>TimeRange}}
2363        <media-control-bar part="control-bar bottom">
2364          {{>PlayButton}} {{>SeekBackwardButton}} {{>SeekForwardButton}} {{>TimeDisplay}} {{>MuteButton}}
2365          {{>VolumeRange}}
2366          <div class="spacer"></div>
2367          {{>RenditionSelect}} {{>PlaybackRateSelect}} {{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}}
2368          {{>CastButton}} {{>PipButton}} {{>FullscreenButton}}
2369        </media-control-bar>
2370      </template>
2371
2372      <template if="streamtype == 'live'">
2373        <media-control-bar part="control-bar top" slot="top-chrome">
2374          {{>LiveButton}}
2375          <template if="breakpointsm"> {{>TitleDisplay}} </template>
2376        </media-control-bar>
2377        <template if="targetlivewindow > 0">{{>TimeRange}}</template>
2378        <media-control-bar part="control-bar bottom">
2379          {{>PlayButton}}
2380          <template if="targetlivewindow > 0">{{>SeekBackwardButton}} {{>SeekForwardButton}}</template>
2381          {{>MuteButton}} {{>VolumeRange}}
2382          <div class="spacer"></div>
2383          {{>RenditionSelect}} {{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}} {{>CastButton}}
2384          {{>PipButton}} {{>FullscreenButton}}
2385        </media-control-bar>
2386      </template>
2387    </template>
2388
2389    <template if="audio">
2390      <template if="streamtype == 'on-demand'">
2391        <template if="title">
2392          <media-control-bar part="control-bar top">{{>TitleDisplay}}</media-control-bar>
2393        </template>
2394        <media-control-bar part="control-bar bottom">
2395          {{>PlayButton}}
2396          <template if="breakpointsm"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
2397          {{>MuteButton}}
2398          <template if="breakpointsm">{{>VolumeRange}}</template>
2399          {{>TimeDisplay}} {{>TimeRange}}
2400          <template if="breakpointsm">{{>PlaybackRateSelect}}</template>
2401          {{>AirplayButton}} {{>CastButton}}
2402        </media-control-bar>
2403      </template>
2404
2405      <template if="streamtype == 'live'">
2406        <template if="title">
2407          <media-control-bar part="control-bar top">{{>TitleDisplay}}</media-control-bar>
2408        </template>
2409        <media-control-bar part="control-bar bottom">
2410          <template if="breakpointsm">
2411            {{>PlayButton}} {{>LiveButton section="bottom"}} {{>MuteButton}} {{>VolumeRange}}
2412            <template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
2413          </template>
2414          <template if="targetlivewindow > 0"> {{>TimeDisplay}} {{>TimeRange}} </template>
2415          <template if="!targetlivewindow"><div class="spacer"></div></template>
2416          {{>AirplayButton}} {{>CastButton}}
2417        </media-control-bar>
2418      </template>
2419    </template>
2420
2421    <slot></slot>
2422  </media-controller>
2423</template>
2424`,so=oO.createElement("template");"innerHTML"in so&&(so.innerHTML=sn);var ss,sl,sd=class extends MediaThemeElement{};sd.template=null==(sl=null==(ss=so.content)?void 0:ss.children)?void 0:sl[0],oD.customElements.get("media-theme-gerwig")||oD.customElements.define("media-theme-gerwig",sd);var su={SRC:"src",POSTER:"poster"},sc={STYLE:"style",DEFAULT_HIDDEN_CAPTIONS:"default-hidden-captions",PRIMARY_COLOR:"primary-color",SECONDARY_COLOR:"secondary-color",ACCENT_COLOR:"accent-color",FORWARD_SEEK_OFFSET:"forward-seek-offset",BACKWARD_SEEK_OFFSET:"backward-seek-offset",P
2424LAYBACK_TOKEN:"playback-token",THUMBNAIL_TOKEN:"thumbnail-token",STORYBOARD_TOKEN:"storyboard-token",STORYBOARD_SRC:"storyboard-src",THUMBNAIL_TIME:"thumbnail-time",AUDIO:"audio",NOHOTKEYS:"nohotkeys",HOTKEYS:"hotkeys",PLAYBACK_RATES:"playbackrates",DEFAULT_SHOW_REMAINING_TIME:"default-show-remaining-time",DEFAULT_DURATION:"default-duration",TITLE:"title",PLACEHOLDER:"placeholder",THEME:"theme",DEFAULT_STREAM_TYPE:"default-stream-type",TARGET_LIVE_WINDOW:"target-live-window",EXTRA_SOURCE_PARAMS:"extra-source-params",NO_VOLUME_PREF:"no-volume-pref"},sm=["audio","backwardseekoffset","defaultduration","defaultshowremainingtime","defaultsubtitles","noautoseektolive","disabled","exportparts","forwardseekoffset","hideduration","hotkeys","nohotkeys","playbackrates","defaultstreamtype","streamtype","style","targetlivewindow","template","title","novolumepref"];function dist_t(b){let A=b.hasAttribute(sc.TITLE)?{video_title:b.getAttribute(sc.TITLE)}:{};return b.getAttributeNames().filter(b=>b.startsWith("metadata-")).reduce((A,B)=>{let G=b.getAttribute(B);return null!==G&&(A[B.replace(/^metadata-/,"").replace(/-/g,"_")]=G),A},A)}var sh,sp,s_,sv,sb,sg,sE,sf,sy,sA,sk,sT,sw,sS,sI,sC,sR,sL,sM,sx,sD,sO=Object.values(nJ),sN=Object.values(su),sP=Object.values(sc),sU={dialog:void 0,isDialogOpen:!1},sB={redundant_streams:!0},sG=class extends oX{constructor(){super(),mux_player_dist_h(this,sg),mux_player_dist_h(this,sf),mux_player_dist_h(this,sA),mux_player_dist_h(this,sT),mux_player_dist_h(this,sS),mux_player_dist_h(this,sC),mux_player_dist_h(this,sL),mux_player_dist_h(this,sx),mux_player_dist_h(this,sh,!1),mux_player_dist_h(this,sp,{}),mux_player_dist_h(this,s_,!0),mux_player_dist_h(this,sv,new oF(this,"hotkeys")),mux_player_dist_h(this,sb,{...sU,onCloseErrorDialog:()=>dist_g(this,sA,sk).call(this,{dialog:void 0,isDialogOpen:!1}),onInitFocusDialog:b=>{mux_player_dist_Oe(this,oO.activeElement)||b.preventDefault()}}),this.attachShadow({mode:"open"}),dist_g(this,sf,sy).call(this),this.isConnected&&dist_g(this,sg,sE).call(this)}static get observedAttributes(){var b;return[...null!=(b=oX.observedAttributes)?b:[],...sN,...sO,...sP]}get mediaTheme(){var b;return null==(b=this.shadowRoot)?void 0:b.querySelector("media-theme")}get mediaController(){var b,A;return null==(A=null==(b=this.mediaTheme)?void 0:b.shadowRoot)?void 0:A.querySelector("media-controller")}connectedCallback(){var b;let A=null==(b=this.shadowRoot)?void 0:b.querySelector("mux-video");A&&(A.metadata=dist_t(this))}attributeChangedCallback(b,A,B){var G;switch(dist_g(this,sg,sE).call(this),super.attributeChangedCallback(b,A,B),b){case sc.HOTKEYS:dist_u(this,sv).value=B;break;case sc.THUMBNAIL_TIME:null!=B&&this.tokens.thumbnail&&mux_player_dist_N(l("Use of thumbnail-time with thumbnail-token is currently unsupported. Ignore thumbnail-time.").format({}));break;case sc.THUMBNAIL_TOKEN:{let{aud:b}=P(B);B&&"t"!==b&&mux_player_dist_N(l("The provided thumbnail-token should have audience value 't' instead of '{aud}'.").format({aud:b}));break}case sc.STORYBOARD_TOKEN:{let{aud:b}=P(B);B&&"s"!==b&&mux_player_dist_N(l("The provided storyboard-token should have audience value 's' instead of '{aud}'.").format({aud:b}));break}case nJ.PLAYBACK_ID:null!=B&&B.includes("?token")&&dist_x(l("The specificed playback ID {playbackId} contains a token which must be provided via the playback-token attribute.").format({playbackId:B}));break;case nJ.STREAM_TYPE:B&&![en.LIVE,en.ON_DEMAND,en.UNKNOWN].includes(B)?["ll-live","live:dvr","ll-live:dvr"].includes(this.streamType)?this.targetLiveWindow=B.includes("dvr")?Number.POSITIVE_INFINITY:0:mux_player_dist_Se({file:"invalid-stream-type.md",message:l("Invalid stream-type value supplied: `{streamType}`. Please provide stream-type as either: `on-demand` or `live`").format({streamType:this.streamType})}):B===en.LIVE?null==this.getAttribute(sc.TARGET_LIVE_WINDOW)&&(this.targetLiveWindow=0):this.targetLiveWindow=Number.NaN}[nJ.PLAYBACK_ID,su.SRC,sc.PLAYBACK_TOKEN].includes(b)&&A!==B&&dist_C(this,sb,{...dist_u(this,sb),...sU}),dist_g(this,sT,sw).call(this,{[null!=(G=oq[b])?G:mux_player_dist_de(b)]:B})}get preferCmcd(){var b;return null!=(b=this.getAttribute(nJ.PREFER_CMCD))?b:void 0}set preferCmcd(b){b!==this.preferCmcd&&(b?el.includes(b)?this.setAttribute(nJ.PREFER_CMCD,b):mux_player_dist_N(`Invalid value for preferCmcd. Must be one of ${el.join()}`):this.removeAttribute(nJ.PREFER_CMCD))}get hasPlayed(){var b,A;return null!=(A=null==(b=this.mediaController)?void 0:b.hasAttribute(eS.MEDIA_HAS_P
2424LAYED))&&A}get inLiveWindow(){var b;return null==(b=this.mediaController)?void 0:b.hasAttribute(eS.MEDIA_TIME_IS_LIVE)}get _hls(){var b;return null==(b=this.media)?void 0:b._hls}get mux(){var b;return null==(b=this.media)?void 0:b.mux}get theme(){var b;return null!=(b=this.getAttribute(sc.THEME))?b:"gerwig"}set theme(b){this.setAttribute(sc.THEME,`${b}`)}get themeProps(){let b=this.mediaTheme;if(!b)return;let A={};for(let B of b.getAttributeNames()){if(sm.includes(B))continue;let G=b.getAttribute(B);A[mux_player_dist_de(B)]=""===G||G}return A}set themeProps(b){var A,B;dist_g(this,sg,sE).call(this);let G={...this.themeProps,...b};for(let W in G){if(sm.includes(W))continue;let G=null==b?void 0:b[W];"boolean"==typeof G||null==G?null==(A=this.mediaTheme)||A.toggleAttribute(dist_se(W),!!G):null==(B=this.mediaTheme)||B.setAttribute(dist_se(W),G)}}get playbackId(){var b;return null!=(b=this.getAttribute(nJ.PLAYBACK_ID))?b:void 0}set playbackId(b){b?this.setAttribute(nJ.PLAYBACK_ID,b):this.removeAttribute(nJ.PLAYBACK_ID)}get src(){var b,A;return this.playbackId?null!=(b=mux_player_dist_Z(this,su.SRC))?b:void 0:null!=(A=this.getAttribute(su.SRC))?A:void 0}set src(b){b?this.setAttribute(su.SRC,b):this.removeAttribute(su.SRC)}get poster(){var b;let A=this.getAttribute(su.POSTER);return null!=A?A:this.playbackId&&!this.audio?dist_lt(this.playbackId,{customDomain:this.customDomain,thumbnailTime:null!=(b=this.thumbnailTime)?b:this.startTime,token:this.tokens.thumbnail}):void 0}set poster(b){b||""===b?this.setAttribute(su.POSTER,b):this.removeAttribute(su.POSTER)}get storyboardSrc(){var b;return null!=(b=this.getAttribute(sc.STORYBOARD_SRC))?b:void 0}set storyboardSrc(b){b?this.setAttribute(sc.STORYBOARD_SRC,b):this.removeAttribute(sc.STORYBOARD_SRC)}get storyboard(){return this.storyboardSrc&&!this.tokens.storyboard?this.storyboardSrc:this.audio||!this.playbackId||!this.streamType||[en.LIVE,en.UNKNOWN].includes(this.streamType)?void 0:dist_mt(this.playbackId,{customDomain:this.customDomain,token:this.tokens.storyboard})}get audio(){return this.hasAttribute(sc.AUDIO)}set audio(b){if(!b){this.removeAttribute(sc.AUDIO);return}this.setAttribute(sc.AUDIO,"")}get hotkeys(){return dist_u(this,sv)}get nohotkeys(){return this.hasAttribute(sc.NOHOTKEYS)}set nohotkeys(b){if(!b){this.removeAttribute(sc.NOHOTKEYS);return}this.setAttribute(sc.NOHOTKEYS,"")}get thumbnailTime(){return dist_R(this.getAttribute(sc.THUMBNAIL_TIME))}set thumbnailTime(b){this.setAttribute(sc.THUMBNAIL_TIME,`${b}`)}get title(){var b;return null!=(b=this.getAttribute(sc.TITLE))?b:""}set title(b){b!==this.title&&(b?this.setAttribute(sc.TITLE,b):this.removeAttribute("title"),super.title=b)}get placeholder(){var b;return null!=(b=mux_player_dist_Z(this,sc.PLACEHOLDER))?b:""}set placeholder(b){this.setAttribute(sc.PLACEHOLDER,`${b}`)}get primaryColor(){var b,A;let B=this.getAttribute(sc.PRIMARY_COLOR);if(null!=B||this.mediaTheme&&(B=null==(A=null==(b=oD.getComputedStyle(this.mediaTheme))?void 0:b.getPropertyValue("--_primary-color"))?void 0:A.trim()))return B}set primaryColor(b){this.setAttribute(sc.PRIMARY_COLOR,`${b}`)}get secondaryColor(){var b,A;let B=this.getAttribute(sc.SECONDARY_COLOR);if(null!=B||this.mediaTheme&&(B=null==(A=null==(b=oD.getComputedStyle(this.mediaTheme))?void 0:b.getPropertyValue("--_secondary-color"))?void 0:A.trim()))return B}set secondaryColor(b){this.setAttribute(sc.SECONDARY_COLOR,`${b}`)}get accentColor(){var b,A;let B=this.getAttribute(sc.ACCENT_COLOR);if(null!=B||this.mediaTheme&&(B=null==(A=null==(b=oD.getComputedStyle(this.mediaTheme))?void 0:b.getPropertyValue("--_accent-color"))?void 0:A.trim()))return B}set accentColor(b){this.setAttribute(sc.ACCENT_COLOR,`${b}`)}get defaultShowRemainingTime(){return this.hasAttribute(sc.DEFAULT_SHOW_REMAINING_TIME)}set defaultShowRemainingTime(b){b?this.setAttribute(sc.DEFAULT_SHOW_REMAINING_TIME,""):this.removeAttribute(sc.DEFAULT_SHOW_REMAINING_TIME)}get playbackRates(){if(this.hasAttribute(sc.PLAYBACK_RATES))return this.getAttribute(sc.PLAYBACK_RATES).trim().split(/\s*,?\s+/).map(b=>Number(b)).filter(b=>!Number.isNaN(b)).sort((b,A)=>b-A)}set playbackRates(b){if(!b){this.removeAttribute(sc.PLAYBACK_RATES);return}this.setAttribute(sc.PLAYBACK_RATES,b.join(" "))}get forwardSeekOffset(){var b;return null!=(b=dist_R(this.getAttribute(sc.FORWARD_SEEK_OFFSET)))?b:10}set forwardSeekOffset(b){this.setAttribute(sc.FORWARD_SEEK_OFFSET,`${b}`)}get backwardSeekOffset(){var b;return null!=(b=dist_R(this.getAttribute(sc.BACKWARD_SEEK_OFFSET)))?b:10}set backwardSeekOffset(b){this.setAttribute(sc.BACKWARD_SEEK_OFFSET,`${b}`)}get defaultHiddenCaptions(){return this.hasAttribute(sc.DEFAULT_HIDDEN_CAPTIONS)}set defaultHiddenCaptions(b){b?this.setAttribute(sc.DEFAULT_HIDDEN_CAPTIONS,""):this.removeAttribute(sc.DEFAULT_HIDDEN_CAPTIONS)}get defaultDuration(){return dist_R(this.getAttribute(sc.DEFAULT_DURATION))}set defaultDuration(b){null==b?this.removeAttribute(sc.DEFAULT_DURATION):this.setAttribute(sc.DEFAULT_DURATION,`${b}`)}get playerSoftwareName(){var b;return null!=(b=this.getAttribute(nJ.PLAYER_SOFTWARE_NAME))?b:"mux-player"}get playerSoftwareVersion(){var b;return null!=(b=this.getAttribute(nJ.PLAYER_SOFTWARE_VERSION))?b:oH}get beaconCollectionDomain(){var b;return null!=(b=this.getAttribute(nJ.BEACON_COLLECTION_DOMAIN))?b:void 0}set beaconCollectionDomain(b){b!==this.beaconCollectionDomain&&(b?this.setAttribute(nJ.BEACON_COLLECTION_DOMAIN,b):this.removeAttribute(nJ.BEACON_COLLECTION_DOMAIN))}get maxResolution(){var b;return null!=(b=this.getAttribute(nJ.MAX_RESOLUTION))?b:void 0}set maxResolution(b){b!==this.maxResolution&&(b?this.setAttribute(nJ.MAX_RESOLUTION,b):this.removeAttribute(nJ.MAX_RESOLUTION))}get minResolution(){var b;return null!=(b=this.getAttribute(nJ.MIN_RESOLUTION))?b:void 0}set minResolution(b){b!==this.minResolution&&(b?this.setAttribute(nJ.MIN_RESOLUTION,b):this.removeAttribute(nJ.MIN_RESOLUTION))}get renditionOrder(){var b;return null!=(b=this.getAttribute(nJ.RENDITION_ORDER))?b:void 0}set renditionOrder(b){b!==this.renditionOrder&&(b?this.setAttribute(nJ.RENDITION_ORDER,b):this.removeAttribute(nJ.RENDITION_ORDER))}get extraSourceParams(){return this.hasAttribute(sc.EXTRA_SOURCE_PARAMS)?[...new URLSearchParams(this.getAttribute(sc.EXTRA_SOURCE_PARAMS)).entries()].reduce((b,[A,B])=>(b[A]=B,b),{}):sB}set extraSourceParams(b){null==b?this.removeAttribute(sc.EXTRA_SOURCE_PARAMS):this.setAttribute(sc.EXTRA_SOURCE_PARAMS,new URLSearchParams(b).toString())}get customDomain(){var b;return null!=(b=this.getAttribute(nJ.CUSTOM_DOMAIN))?b:void 0}set customDomain(b){b!==this.customDomain&&(b?this.setAttribute(nJ.CUSTOM_DOMAIN,b):this.removeAttribute(nJ.CUSTOM_DOMAIN))}get envKey(){var b;return null!=(b=mux_player_dist_Z(this,nJ.ENV_KEY))?b:void 0}set envKey(b){this.setAttribute(nJ.ENV_KEY,`${b}`)}get noVolumePref(){return this.hasAttribute(sc.NO_VOLUME_PREF)}set noVolumePref(b){b?this.setAttribute(sc.NO_VOLUME_PREF,""):this.removeAttribute(sc.NO_VOLUME_PREF)}get debug(){return null!=mux_player_dist_Z(this,nJ.DEBUG)}set debug(b){b?this.setAttribute(nJ.DEBUG,""):this.removeAttribute(nJ.DEBUG)}get disableCookies(){return null!=mux_player_dist_Z(this,nJ.DISABLE_COOKIES)}set disableCookies(b){b?this.setAttribute(nJ.DISABLE_COOKIES,""):this.removeAttribute(nJ.DISABLE_COOKIES)}get streamType(){var b,A,B;return null!=(B=null!=(A=this.getAttribute(nJ.STREAM_TYPE))?A:null==(b=this.media)?void 0:b.streamType)?B:en.UNKNOWN}set streamType(b){this.setAttribute(nJ.STREAM_TYPE,`${b}`)}get defaultStreamType(){var b,A,B;return null!=(B=null!=(A=this.getAttribute(sc.DEFAULT_STREAM_TYPE))?A:null==(b=this.mediaController)?void 0:b.getAttribute(sc.DEFAULT_STREAM_TYPE))?B:en.ON_DEMAND}set defaultStreamType(b){b?this.setAttribute(sc.DEFAULT_STREAM_TYPE,b):this.removeAttribute(sc.DEFAULT_STREAM_TYPE)}get targetLiveWindow(){var b,A;return this.hasAttribute(sc.TARGET_LIVE_WINDOW)?+this.getAttribute(sc.TARGET_LIVE_WINDOW):null!=(A=null==(b=this.media)?void 0:b.targetLiveWindow)?A:Number.NaN}set targetLiveWindow(b){b==this.targetLiveWindow||Number.isNaN(b)&&Number.isNaN(this.targetLiveWindow)||(null==b?this.removeAttribute(sc.TARGET_LIVE_WINDOW):this.setAttribute(sc.TARGET_LIVE_WINDOW,`${+b}`))}get liveEdgeStart(){var b;return null==(b=this.media)?void 0:b.liveEdgeStart}get startTime(){return dist_R(mux_player_dist_Z(this,nJ.START_TIME))}set startTime(b){this.setAttribute(nJ.START_TIME,`${b}`)}get preferPlayback(){let b=this.getAttribute(nJ.PREFER_PLAYBACK);if(b===eo.MSE||b===eo.NATIVE)return b}set preferPlayback(b){b!==this.preferPlayback&&(b===eo.MSE||b===eo.NATIVE?this.setAttribute(nJ.PREFER_PLAYBACK,b):this.removeAttribute(nJ.PREFER_PLAYBACK))}get metadata(){var b;return null==(b=this.media)?void 0:b.metadata}set metadata(b){if(dist_g(this,sg,sE).call(this),!this.media){dist_x("underlying media element missing when trying to set metadata. metadata will not be set.");return}this.media.metadata={...dist_t(this),...b}}
2424get _hlsConfig(){var b;return null==(b=this.media)?void 0:b._hlsConfig}set _hlsConfig(b){if(dist_g(this,sg,sE).call(this),!this.media){dist_x("underlying media element missing when trying to set _hlsConfig. _hlsConfig will not be set.");return}this.media._hlsConfig=b}async addCuePoints(b){var A;if(dist_g(this,sg,sE).call(this),!this.media){dist_x("underlying media element missing when trying to addCuePoints. cuePoints will not be added.");return}return null==(A=this.media)?void 0:A.addCuePoints(b)}get activeCuePoint(){var b;return null==(b=this.media)?void 0:b.activeCuePoint}get cuePoints(){var b,A;return null!=(A=null==(b=this.media)?void 0:b.cuePoints)?A:[]}getStartDate(){var b;return null==(b=this.media)?void 0:b.getStartDate()}get currentPdt(){var b;return null==(b=this.media)?void 0:b.currentPdt}get tokens(){let b=this.getAttribute(sc.PLAYBACK_TOKEN),A=this.getAttribute(sc.THUMBNAIL_TOKEN),B=this.getAttribute(sc.STORYBOARD_TOKEN);return{...dist_u(this,sp),...null!=b?{playback:b}:{},...null!=A?{thumbnail:A}:{},...null!=B?{storyboard:B}:{}}}set tokens(b){dist_C(this,sp,null!=b?b:{})}get playbackToken(){var b;return null!=(b=this.getAttribute(sc.PLAYBACK_TOKEN))?b:void 0}set playbackToken(b){this.setAttribute(sc.PLAYBACK_TOKEN,`${b}`)}get thumbnailToken(){var b;return null!=(b=this.getAttribute(sc.THUMBNAIL_TOKEN))?b:void 0}set thumbnailToken(b){this.setAttribute(sc.THUMBNAIL_TOKEN,`${b}`)}get storyboardToken(){var b;return null!=(b=this.getAttribute(sc.STORYBOARD_TOKEN))?b:void 0}set storyboardToken(b){this.setAttribute(sc.STORYBOARD_TOKEN,`${b}`)}addTextTrack(b,A,B,G){var W;let K=null==(W=this.media)?void 0:W.nativeEl;if(K)return _(K,b,A,B,G)}removeTextTrack(b){var A;let B=null==(A=this.media)?void 0:A.nativeEl;if(B){let A;return void(null==(A=Array.prototype.find.call(B.querySelectorAll("track"),A=>A.track===b))||A.remove())}}get textTracks(){var b;return null==(b=this.media)?void 0:b.textTracks}};function mux_player_dist_Z(b,A){return b.media?b.media.getAttribute(A):b.getAttribute(A)}sh=new WeakMap,sp=new WeakMap,s_=new WeakMap,sv=new WeakMap,sb=new WeakMap,sg=new WeakSet,sE=function(){var b,A,B,G;if(!dist_u(this,sh)){dist_C(this,sh,!0),dist_g(this,sT,sw).call(this);try{if(customElements.upgrade(this.mediaTheme),!(this.mediaTheme instanceof oD.HTMLElement))throw""}catch{dist_x("<media-theme> failed to upgrade!")}try{if(customElements.upgrade(this.media),!(this.media instanceof n2))throw""}catch{dist_x("<mux-video> failed to upgrade!")}try{if(customElements.upgrade(this.mediaController),!(this.mediaController instanceof MediaController))throw""}catch{dist_x("<media-controller> failed to upgrade!")}G=this,G.querySelectorAll(":scope > track").forEach(b=>{var A;null==(A=G.media)||A.append(b.cloneNode())}),oQ.forEach(b=>{var A;null==(A=G.media)||A.addEventListener(b,b=>{G.dispatchEvent(new Event(b.type))})}),dist_g(this,sS,sI).call(this),dist_g(this,sC,sR).call(this),dist_g(this,sL,sM).call(this),dist_C(this,s_,null==(A=null==(b=this.mediaController)?void 0:b.hasAttribute(eX.USER_INACTIVE))||A),dist_g(this,sx,sD).call(this),null==(B=this.media)||B.addEventListener("streamtypechange",()=>{dist_g(this,sT,sw).call(this)})}},sf=new WeakSet,sy=function(){var b,A;try{null==(b=null==window?void 0:window.CSS)||b.registerProperty({name:"--media-primary-color",syntax:"<color>",inherits:!0}),null==(A=null==window?void 0:window.CSS)||A.registerProperty({name:"--media-secondary-color",syntax:"<color>",inherits:!0})}catch{}},sA=new WeakSet,sk=function(b){Object.assign(dist_u(this,sb),b),dist_g(this,sT,sw).call(this)},sT=new WeakSet,sw=function(b={}){var A,B,G;let W;(function(b,A){b.renderInto(A)})(dist_Lt((A={...dist_u(this,sb),...b},{src:!this.playbackId&&this.src,playbackId:this.playbackId,hasSrc:!!this.playbackId||!!this.src,poster:this.poster,storyboard:this.storyboard,storyboardSrc:this.getAttribute(sc.STORYBOARD_SRC),placeholder:this.getAttribute("placeholder"),themeTemplate:function(b){var A,B;let G=b.theme;if(G){let W=null==(B=null==(A=b.getRootNode())?void 0:A.getElementById)?void 0:B.call(A,G);if(W&&W instanceof HTMLTemplateElement)return W;G.startsWith("media-theme-")||(G=`media-theme-${G}`);let K=oD.customElements.get(G);if(null!=K&&K.template)return K.template}}(this),thumbnailTime:!this.tokens.thumbnail&&this.thumbnailTime,autoplay:this.autoplay,crossOrigin:this.crossOrigin,loop:this.loop,noHotKeys:this.hasAttribute(sc.NOHOTKEYS),hotKeys:this.getAttribute(sc.HOTKEYS),muted:this.muted,paused:this.paused,preload:this.preload,envKey:this.envKey,preferCmcd:this.preferCmcd,debug:this.debug,disableCookies:this.disableCookies,tokens:this.tokens,beaconCollectionDomain:this.beaconCollectionDomain,maxResolution:this.maxResolution,minResolution:this.minResolution,renditionOrder:this.renditionOrder,metadata:this.metadata,playerSoftwareName:this.playerSoftwareName,playerSoftwareVersion:this.playerSoftwareVersion,startTime:this.startTime,preferPlayback:this.preferPlayback,audio:this.audio,defaultStreamType:this.defaultStreamType,targetLiveWindow:this.getAttribute(nJ.TARGET_LIVE_WINDOW),streamType:mux_player_dist_J(this.getAttribute(nJ.STREAM_TYPE)),primaryColor:this.getAttribute(sc.PRIMARY_COLOR),secondaryColor:this.getAttribute(sc.SECONDARY_COLOR),accentColor:this.getAttribute(sc.ACCENT_COLOR),forwardSeekOffset:this.forwardSeekOffset,backwardSeekOffset:this.backwardSeekOffset,defaultHiddenCaptions:this.defaultHiddenCaptions,defaultDuration:this.defaultDuration,defaultShowRemainingTime:this.defaultShowRemainingTime,hideDuration:(W=null==(G=this.mediaController)?void 0:G.querySelector("media-time-display"))&&"none"===getComputedStyle(W).getPropertyValue("--media-duration-display-display").trim(),playbackRates:this.getAttribute(sc.PLAYBACK_RATES),customDomain:null!=(B=this.getAttribute(nJ.CUSTOM_DOMAIN))?B:void 0,title:this.getAttribute(sc.TITLE),novolumepref:this.hasAttribute(sc.NO_VOLUME_PREF),...A,extraSourceParams:this.extraSourceParams})),this.shadowRoot)},sS=new WeakSet,sI=function(){let e=b=>{var A,B;if(!(null!=b&&b.startsWith("theme-")))return;let G=b.replace(/^theme-/,"");if(sm.includes(G))return;let W=this.getAttribute(b);null!=W?null==(A=this.mediaTheme)||A.setAttribute(G,W):null==(B=this.mediaTheme)||B.removeAttribute(G)};new MutationObserver(b=>{for(let{attributeName:A}of b)e(A)}).observe(this,{attributes:!0}
2424),this.getAttributeNames().forEach(e)},sC=new WeakSet,sR=function(){var b;this.addEventListener("error",b=>{let{detail:A}=b;if(A instanceof ea||(A=new ea(A.message,A.code,A.fatal)),!(null!=A&&A.fatal)){mux_player_dist_N(A),A.data&&mux_player_dist_N(`${A.name} data:`,A.data);return}let{dialog:B,devlog:G}=mux_player_dist_he(A,!window.navigator.onLine,this.playbackId,this.playbackToken);G.message&&mux_player_dist_Se(G),dist_x(A),A.data&&dist_x(`${A.name} data:`,A.data),dist_g(this,sA,sk).call(this,{isDialogOpen:!0,dialog:B})}),this.media&&(this.media.errorTranslator=(b={})=>{var A,B,G;if(!((null==(A=this.media)?void 0:A.error)instanceof ea))return b;let{devlog:W}=mux_player_dist_he(null==(B=this.media)?void 0:B.error,!window.navigator.onLine,this.playbackId,this.playbackToken,!1);return{player_error_code:null==(G=this.media)?void 0:G.error.code,player_error_message:W.message?String(W.message):b.player_error_message,player_error_context:W.context?String(W.context):b.player_error_context}}),null==(b=this.media)||b.addEventListener("error",b=>{var A,B;let{detail:G}=b;if(!G){let{message:b,code:W}=null!=(B=null==(A=this.media)?void 0:A.error)?B:{};G=new ea(b,W)}null!=G&&G.fatal&&this.dispatchEvent(new CustomEvent("error",{detail:G}))})},sL=new WeakSet,sM=function(){var b,A,B,G;let e=()=>dist_g(this,sT,sw).call(this);null==(A=null==(b=this.media)?void 0:b.textTracks)||A.addEventListener("addtrack",e),null==(G=null==(B=this.media)?void 0:B.textTracks)||G.addEventListener("removetrack",e)},sx=new WeakSet,sD=function(){var b,A;if(!/Firefox/i.test(navigator.userAgent))return;let B,G=new WeakMap,o=()=>this.streamType===en.LIVE&&!this.secondaryColor&&this.offsetWidth>=800,s=(b,A,B=!1)=>{o()||Array.from(b&&b.activeCues||[]).forEach(b=>{if(!(!b.snapToLines||b.line<-5||b.line>=0&&b.line<10)){if(!A||this.paused){let A=b.text.split(`
2425`).length,W=-3;this.streamType===en.LIVE&&(W=-2);let K=W-A;(b.line!==K||B)&&(G.has(b)||G.set(b,b.line),b.line=K)}else setTimeout(()=>{b.line=G.get(b)||"auto"},500)}})},m=()=>{var b,A;s(B,null!=(A=null==(b=this.mediaController)?void 0:b.hasAttribute(eX.USER_INACTIVE))&&A)},p=()=>{var b,A;let G=Array.from((null==(A=null==(b=this.mediaController)?void 0:b.media)?void 0:A.textTracks)||[]).filter(b=>["subtitles","captions"].includes(b.kind)&&"showing"===b.mode)[0];G!==B&&(null==B||B.removeEventListener("cuechange",m)),null==(B=G)||B.addEventListener("cuechange",m),s(B,dist_u(this,s_))};p(),null==(b=this.textTracks)||b.addEventListener("change",p),null==(A=this.textTracks)||A.addEventListener("addtrack",p),this.addEventListener("userinactivechange",()=>{var b,A;let G=null==(A=null==(b=this.mediaController)?void 0:b.hasAttribute(eX.USER_INACTIVE))||A;dist_u(this,s_)!==G&&(dist_C(this,s_,G),s(B,dist_u(this,s_)))})},oD.customElements.get("mux-player")||(oD.customElements.define("mux-player",sG),oD.MuxPlayerElement=sG);var sW={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay",playbackRate:"playbackrate"},mux_player_react_dist_J=b=>null==b,mux_player_react_dist_Y=(b,A)=>!mux_player_react_dist_J(A)&&b in A,mux_player_react_dist_$=b=>b.replace(/[A-Z]/g,b=>`-${b.toLowerCase()}`),mux_player_react_dist_Q=(b,A)=>{if(!("boolean"==typeof A&&!A))return mux_player_react_dist_Y(b,sW)?sW[b]:/[A-Z]/.test(b)?mux_player_react_dist_$(b):b},mux_player_react_dist_X=(b,A)=>"boolean"==typeof b?"":b,p=(b={})=>Object.entries(b).reduce((b,[A,B])=>{let G=mux_player_react_dist_Q(A,B);if(!G)return b;let W=mux_player_react_dist_X(B,A);return b[G]=W,b},{}),dist_m=(...b)=>{let A=(0,K.useRef)(null);return(0,K.useEffect)(()=>{b.forEach(b=>{b&&("function"==typeof b?b(A.current):b.current=A.current)})},[b]),A},sV=Object.prototype.hasOwnProperty,mux_player_react_dist_re=(b,A)=>{if(Object.is(b,A))return!0;if("object"!=typeof b||null===b||"object"!=typeof A||null===A)return!1;if(Array.isArray(b))return!!Array.isArray(A)&&b.length===A.length&&b.some((b,B)=>A[B]===b);let B=Object.keys(b),G=Object.keys(A);if(B.length!==G.length)return!1;for(let G=0;G<B.length;G++)if(!sV.call(A,B[G])||!Object.is(b[B[G]],A[B[G]]))return!1;return!0},d=(b,A,B)=>!mux_player_react_dist_re(A,b[B]),mux_player_react_dist_ae=(b,A,B)=>{b[B]=A},dist_i=(b,A,B,G=mux_player_react_dist_ae,W=d)=>(0,K.useEffect)(()=>{let K=null==B?void 0:B.current;K&&W(K,A,b)&&G(K,A,b)},[null==B?void 0:B.current,A]),sH=(()=>{try{return"2.3.2"}catch{}return"UNKNOWN"})(),sq=K.forwardRef(({children:b,...A},B)=>K.createElement("mux-player",p({...A,ref:B}),b)),r=(b,A,B)=>(0,K.useEffect)(()=>{let G=null==A?void 0:A.current;if(!(!G||!B))return G.addEventListener(b,B),()=>{G.removeEventListener(b,B)}},[null==A?void 0:A.current,B]),mux_player_react_dist_de=(b,A)=>{let{onAbort:B,onCanPlay:G,onCanPlayThrough:W,onEmptied:K,onLoadStart:et,onLoadedData:ei,onLoadedMetadata:ea,onProgress:er,onDurationChange:en,onVolumeChange:eo,onRateChange:es,onResize:el,onWaiting:ed,onPlay:eu,onPlaying:ec,onTimeUpdate:em,onPause:eh,onSeeking:ep,onSeeked:e_,onStalled:ev,onSuspend:eb,onEnded:eg,onError:eE,onCuePointChange:ef,onCuePointsChange:e
2425y,metadata:eA,tokens:ek,paused:eT,playbackId:ew,playbackRates:eS,currentTime:eI,themeProps:eC,extraSourceParams:eR,_hlsConfig:eL,...eM}=A;return dist_i("playbackRates",eS,b),dist_i("metadata",eA,b),dist_i("extraSourceParams",eR,b),dist_i("_hlsConfig",eL,b),dist_i("themeProps",eC,b),dist_i("tokens",ek,b),dist_i("playbackId",ew,b),dist_i("paused",eT,b,(b,A)=>{null!=A&&(A?b.pause():b.play())},(b,A,B)=>(!b.hasAttribute("autoplay")||!!b.hasPlayed)&&d(b,A,B)),dist_i("currentTime",eI,b,(b,A)=>{null!=A&&(b.currentTime=A)}),r("abort",b,B),r("canplay",b,G),r("canplaythrough",b,W),r("emptied",b,K),r("loadstart",b,et),r("loadeddata",b,ei),r("loadedmetadata",b,ea),r("progress",b,er),r("durationchange",b,en),r("volumechange",b,eo),r("ratechange",b,es),r("resize",b,el),r("waiting",b,ed),r("play",b,eu),r("playing",b,ec),r("timeupdate",b,em),r("pause",b,eh),r("seeking",b,ep),r("seeked",b,e_),r("stalled",b,ev),r("suspend",b,eb),r("ended",b,eg),r("error",b,eE),r("cuepointchange",b,ef),r("cuepointschange",b,ey),[eM]},sF=K.forwardRef((b,A)=>{let B=(0,K.useRef)(null),G=dist_m(B,A),[W]=mux_player_react_dist_de(B,b);return K.createElement(sq,{ref:G,playerSoftwareName:"mux-player-react",playerSoftwareVersion:sH,...W})})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.