FV Flowplayer Video Player - Version 7.4.46.727

Version Description

  • 2021/04/09 =

  • DASH.js - allowing it to recover from blocked autoplay on Safari

  • Handle WordPress audio/video - improved the setting to also work with YouTube oEmbed

  • Migration Wizard - improved to handle subtitles too

  • Bugfix - duplicate FV Player DB wp_fv_player_videometa rows being created

  • Bugfix - Lightbox - respect dimensions stored in FV Player DB

  • Bugfix - Position Saving - safer way of restoring position (for HLS.js)

Download this release

Release Info

Developer FolioVision
Plugin Icon 128x128 FV Flowplayer Video Player
Version 7.4.46.727
Comparing to
See all releases

Code changes from version 7.4.45.727 to 7.4.46.727

controller/backend.php CHANGED
@@ -700,23 +700,6 @@ function flowplayer_deactivate() {
700
 
701
 
702
 
703
- add_action( 'admin_notices', 'fv_player_admin_notice_expired_license' );
704
- add_action( 'fv_player_settings_pre', 'fv_player_admin_notice_expired_license' );
705
-
706
- function fv_player_admin_notice_expired_license() {
707
- global $FV_Player_Pro;
708
- $screen = get_current_screen();
709
- if( ( $screen && $screen->id == 'plugins' || did_action('fv_player_settings_pre') ) && isset($FV_Player_Pro) && isset($FV_Player_Pro->version) && version_compare( str_replace( '.beta', '', $FV_Player_Pro->version), '0.8.17') == -1 ) {
710
- $aCheck = get_transient( 'fv-player-pro_license' );
711
- if( !empty($aCheck->expired) || !empty($aCheck->error) ) { ?>
712
- <div class="updated">
713
- <?php echo $aCheck->message; ?>
714
- <?php if( !empty($aCheck->changelog) ) echo $aCheck->changelog; ?>
715
- </div>
716
- <?php }
717
- }
718
- }
719
-
720
 
721
  /*
722
  * DB based player data saving
@@ -810,13 +793,47 @@ function fv_player_rollback_message( $val ) {
810
  add_action( 'admin_notices', 'fv_player_pro_version_check' );
811
 
812
  function fv_player_pro_version_check() {
 
 
813
  global $FV_Player_Pro;
814
- if( isset($FV_Player_Pro) && !empty($FV_Player_Pro->version) && version_compare( str_replace('.beta','',$FV_Player_Pro->version),'7.4.44.727' ) == -1 ) :
 
815
  ?>
816
  <div class="error">
817
- <p><?php _e( 'FV Player: Please upgrade to FV Player Pro version 7.4.44.727 or above!', 'fv-wordpress-flowplayer' ); ?></p>
818
  </div>
819
  <?php
820
  endif;
821
  }
822
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
700
 
701
 
702
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
703
 
704
  /*
705
  * DB based player data saving
793
  add_action( 'admin_notices', 'fv_player_pro_version_check' );
794
 
795
  function fv_player_pro_version_check() {
796
+ $version = '7.4.44.727';
797
+
798
  global $FV_Player_Pro;
799
+
800
+ if( !empty($FV_Player_Pro) && !fv_player_extension_version_is_min($version,'pro') ) :
801
  ?>
802
  <div class="error">
803
+ <p><?php printf( __( 'FV Player: Please upgrade to FV Player Pro version %s or above!', 'fv-wordpress-flowplayer' ), $version ); ?></p>
804
  </div>
805
  <?php
806
  endif;
807
  }
808
 
809
+ /*
810
+ * @param string $min The minimal version to check - like 7.4.44.727
811
+ *
812
+ * @return bool True if the version is at least $min
813
+ */
814
+ function fv_player_extension_version_is_min( $min, $extension = 'pro' ) {
815
+ $version = false;
816
+ if( $extension == 'pro' ) {
817
+ global $FV_Player_Pro;
818
+ if( isset($FV_Player_Pro) && !empty($FV_Player_Pro->version) ) {
819
+ $version = $FV_Player_Pro->version;
820
+ }
821
+
822
+ } else if( $extension == 'vast' ) {
823
+ global $FV_Player_VAST;
824
+ if( isset($FV_Player_VAST) && !empty($FV_Player_VAST->version) ) {
825
+ $version = $FV_Player_VAST->version;
826
+ }
827
+
828
+ } else if( $extension == 'alternative-sources' ) {
829
+ global $FV_Player_Alternative_Sources;
830
+ if( isset($FV_Player_Alternative_Sources) && !empty($FV_Player_Alternative_Sources->version) ) {
831
+ $version = $FV_Player_Alternative_Sources->version;
832
+ }
833
+
834
+ }
835
+
836
+ $version = str_replace('.beta','',$version);
837
+
838
+ return version_compare($version,$min ) != -1;
839
+ }
controller/editor.php CHANGED
@@ -89,27 +89,32 @@ function fv_wp_flowplayer_edit_form_after_editor( ) {
89
  $fv_fp->load_dash = true;
90
  $fv_fp->load_tabs = true;
91
 
92
- global $FV_Player_Pro;
93
- if( isset($FV_Player_Pro) && $FV_Player_Pro ) {
94
- $FV_Player_Pro->bYoutube = true;
95
- // todo: there should be a better way than this
96
- add_action('admin_footer', array( $FV_Player_Pro, 'styles' ) );
97
- add_action('admin_footer', array( $FV_Player_Pro, 'scripts' ) );
 
98
  }
99
 
100
- global $FV_Player_VAST ;
101
- if( isset($FV_Player_VAST ) && $FV_Player_VAST ) {
102
- // todo: there should be a better way than this
103
- add_action('admin_footer', array( $FV_Player_VAST , 'func__wp_enqueue_scripts' ) );
 
104
  }
105
 
106
- global $FV_Player_Alternative_Sources ;
107
- if( isset($FV_Player_Alternative_Sources ) && $FV_Player_Alternative_Sources ) {
108
- // todo: there should be a better way than this
109
- add_action('admin_footer', array( $FV_Player_Alternative_Sources , 'enqueue_scripts' ) );
110
- }
 
111
 
 
112
  do_action('fv_player_extensions_admin_load_assets');
 
113
  add_action('admin_footer','flowplayer_prepare_scripts');
114
  }
115
 
89
  $fv_fp->load_dash = true;
90
  $fv_fp->load_tabs = true;
91
 
92
+ if( !fv_player_extension_version_is_min('7.4.46.727','pro') ) {
93
+ global $FV_Player_Pro;
94
+ if( isset($FV_Player_Pro) && $FV_Player_Pro ) {
95
+ $FV_Player_Pro->bYoutube = true;
96
+ add_action('admin_footer', array( $FV_Player_Pro, 'styles' ) );
97
+ add_action('admin_footer', array( $FV_Player_Pro, 'scripts' ) );
98
+ }
99
  }
100
 
101
+ if( !fv_player_extension_version_is_min('7.4.46.727','vast') ) {
102
+ global $FV_Player_VAST ;
103
+ if( isset($FV_Player_VAST ) && $FV_Player_VAST ) {
104
+ add_action('admin_footer', array( $FV_Player_VAST , 'func__wp_enqueue_scripts' ) );
105
+ }
106
  }
107
 
108
+ if( !fv_player_extension_version_is_min('7.4.46.727','alternative-sources') ) {
109
+ global $FV_Player_Alternative_Sources ;
110
+ if( isset($FV_Player_Alternative_Sources ) && $FV_Player_Alternative_Sources ) {
111
+ add_action('admin_footer', array( $FV_Player_Alternative_Sources , 'enqueue_scripts' ) );
112
+ }
113
+ }
114
 
115
+ // Tell all the (modern) extensions to load frontend+backend assets
116
  do_action('fv_player_extensions_admin_load_assets');
117
+
118
  add_action('admin_footer','flowplayer_prepare_scripts');
119
  }
120
 
controller/frontend.php CHANGED
@@ -321,12 +321,12 @@ function flowplayer_prepare_scripts() {
321
 
322
  if(
323
  isset($GLOBALS['fv_fp_scripts']) ||
324
- $fv_fp->should_load_js() ||
325
  isset($_GET['fv_wp_flowplayer_check_template'])
326
  ){
327
 
328
  $aDependencies = array('jquery');
329
- if( $fv_fp->should_load_js() || $fv_fp->load_tabs ) {
330
  wp_enqueue_script('jquery-ui-tabs', false, array('jquery','jquery-ui-core'), $fv_wp_flowplayer_ver, true);
331
  $aDependencies[] = 'jquery-ui-tabs';
332
  }
@@ -425,12 +425,12 @@ function flowplayer_prepare_scripts() {
425
  if( get_post_meta($post->ID, 'fv_player_mobile_force_fullscreen', true) ) $aConf['mobile_force_fullscreen'] = true;
426
  }
427
 
428
- if( ( $fv_fp->should_load_js() || $fv_fp->load_hlsjs ) && $fv_fp->_get_option('hlsjs') ) {
429
  wp_enqueue_script( 'flowplayer-hlsjs', flowplayer::get_plugin_url().'/flowplayer/hls.min.js', array('flowplayer'), '0.14.17', true );
430
  }
431
  $aConf['script_hls_js'] = flowplayer::get_plugin_url().'/flowplayer/hls.min.js?ver=0.11.0';
432
 
433
- if( $fv_fp->should_load_js() || $fv_fp->load_dash ) {
434
  wp_enqueue_script( 'flowplayer-dash', flowplayer::get_plugin_url().'/flowplayer/flowplayer.dashjs.min.js', array('flowplayer'), $fv_wp_flowplayer_ver, true );
435
  }
436
  $aConf['script_dash_js'] = flowplayer::get_plugin_url().'/flowplayer/flowplayer.dashjs.min.js?ver='.$fv_wp_flowplayer_ver;
321
 
322
  if(
323
  isset($GLOBALS['fv_fp_scripts']) ||
324
+ $fv_fp->should_force_load_js() ||
325
  isset($_GET['fv_wp_flowplayer_check_template'])
326
  ){
327
 
328
  $aDependencies = array('jquery');
329
+ if( $fv_fp->should_force_load_js() || $fv_fp->load_tabs ) {
330
  wp_enqueue_script('jquery-ui-tabs', false, array('jquery','jquery-ui-core'), $fv_wp_flowplayer_ver, true);
331
  $aDependencies[] = 'jquery-ui-tabs';
332
  }
425
  if( get_post_meta($post->ID, 'fv_player_mobile_force_fullscreen', true) ) $aConf['mobile_force_fullscreen'] = true;
426
  }
427
 
428
+ if( ( $fv_fp->should_force_load_js() || $fv_fp->load_hlsjs ) && $fv_fp->_get_option('hlsjs') ) {
429
  wp_enqueue_script( 'flowplayer-hlsjs', flowplayer::get_plugin_url().'/flowplayer/hls.min.js', array('flowplayer'), '0.14.17', true );
430
  }
431
  $aConf['script_hls_js'] = flowplayer::get_plugin_url().'/flowplayer/hls.min.js?ver=0.11.0';
432
 
433
+ if( $fv_fp->should_force_load_js() || $fv_fp->load_dash ) {
434
  wp_enqueue_script( 'flowplayer-dash', flowplayer::get_plugin_url().'/flowplayer/flowplayer.dashjs.min.js', array('flowplayer'), $fv_wp_flowplayer_ver, true );
435
  }
436
  $aConf['script_dash_js'] = flowplayer::get_plugin_url().'/flowplayer/flowplayer.dashjs.min.js?ver='.$fv_wp_flowplayer_ver;
flowplayer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: FV Player
4
  Plugin URI: http://foliovision.com/wordpress/plugins/fv-wordpress-flowplayer
5
  Description: Formerly FV WordPress Flowplayer. Supports MP4, HLS, MPEG-DASH, WebM and OGV. Advanced features such as overlay ads or popups. Uses Flowplayer 7.2.7.
6
- Version: 7.4.45.727
7
  Author URI: http://foliovision.com/
8
  License: GPL-3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
@@ -27,7 +27,7 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.txt
27
  */
28
 
29
  global $fv_wp_flowplayer_ver;
30
- $fv_wp_flowplayer_ver = '7.4.45.727';
31
  $fv_wp_flowplayer_core_ver = '7.2.7';
32
 
33
  include_once( dirname( __FILE__ ) . '/includes/extra-functions.php' );
3
  Plugin Name: FV Player
4
  Plugin URI: http://foliovision.com/wordpress/plugins/fv-wordpress-flowplayer
5
  Description: Formerly FV WordPress Flowplayer. Supports MP4, HLS, MPEG-DASH, WebM and OGV. Advanced features such as overlay ads or popups. Uses Flowplayer 7.2.7.
6
+ Version: 7.4.46.727
7
  Author URI: http://foliovision.com/
8
  License: GPL-3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
27
  */
28
 
29
  global $fv_wp_flowplayer_ver;
30
+ $fv_wp_flowplayer_ver = '7.4.46.727';
31
  $fv_wp_flowplayer_core_ver = '7.2.7';
32
 
33
  include_once( dirname( __FILE__ ) . '/includes/extra-functions.php' );
flowplayer/flowplayer.dashjs.min.js CHANGED
@@ -1,5 +1,5 @@
1
  /*! v3.0.0-b0f46e83, 2019-06-29T00:07:23Z */
2
- !function a(o,s,u){function l(t,e){if(!s[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(f)return f(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[t]={exports:{}};o[t][0].call(i.exports,function(e){return l(o[t][1][e]||e)},i,i.exports,a,o,s,u)}return s[t].exports}for(var f="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(e,t,n){"use strict";var o,u,r,i={encode:function(e){for(var t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):(r<2048?t.push(192|r>>6):(r<65536?t.push(224|r>>12):(t.push(240|r>>18),t.push(128|63&r>>12)),t.push(128|63&r>>6)),t.push(128|63&r))}return t},decode:function(e){for(var t=[],n=0;n<e.length;){var r=e[n++];r<128||(r<224?r=(31&r)<<6:(r<240?r=(15&r)<<12:(r=(7&r)<<18,r|=(63&e[n++])<<12),r|=(63&e[n++])<<6),r|=63&e[n++]),t.push(String.fromCharCode(r))}return t.join("")}},l={};function f(e){for(var t=0,n=[],r=0|e.length/3;0<r--;){var i=(e[t]<<16)+(e[t+1]<<8)+e[t+2];t+=3,n.push(o.charAt(63&i>>18)),n.push(o.charAt(63&i>>12)),n.push(o.charAt(63&i>>6)),n.push(o.charAt(63&i))}if(2==e.length-t){i=(e[t]<<16)+(e[t+1]<<8);n.push(o.charAt(63&i>>18)),n.push(o.charAt(63&i>>12)),n.push(o.charAt(63&i>>6)),n.push("=")}else if(1==e.length-t){i=e[t]<<16;n.push(o.charAt(63&i>>18)),n.push(o.charAt(63&i>>12)),n.push("==")}return n.join("")}function d(e){for(var t=0,n=[],r=0|e.length/4;0<r--;){var i=(u[e.charCodeAt(t)]<<18)+(u[e.charCodeAt(t+1)]<<12)+(u[e.charCodeAt(t+2)]<<6)+u[e.charCodeAt(t+3)];n.push(255&i>>16),n.push(255&i>>8),n.push(255&i),t+=4}return n&&("="==e.charAt(t-2)?(n.pop(),n.pop()):"="==e.charAt(t-1)&&n.pop()),n}o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(){for(var e=[],t=0;t<o.length;++t)e[o.charCodeAt(t)]=t;return e["=".charCodeAt(0)]=0,e}(),r={encode:function(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t},decode:function(e){for(var t=0;t<s.length;++t)a[t]=String.fromCharCode(a[t]);return a.join("")}},l.decodeArray=function(e){var t=d(e);return new Uint8Array(t)},l.encodeASCII=function(e){var t=r.encode(e);return f(t)},l.decodeASCII=function(e){var t=d(e);return r.decode(t)},l.encode=function(e){var t=i.encode(e);return f(t)},l.decode=function(e){var t=d(e);return i.decode(t)},void 0!==n&&(n.decode=l.decode,n.decodeArray=l.decodeArray,n.encode=l.encode,n.encodeASCII=l.encodeASCII)},{}],2:[function(e,t,n){"use strict";!function(e){function s(e){var t=e;return n.hasOwnProperty(e)&&(t=n[e]),String.fromCharCode(t)}function u(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toString(16));return t}function o(e,t,n,r,i){this.foreground=e||"white",this.underline=t||!1,this.italics=n||!1,this.background=r||"black",this.flash=i||!1}var n={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},a={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},l={17:2,18:4,21:6,22:8,23:10,19:13,20:15},f={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},d={25:2,26:4,29:6,30:8,31:10,27:13,28:15},c=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],h={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(e){this.time=e},log:function(e,t){var n=this.verboseFilter[e];this.verboseLevel>=n&&console.log(this.time+" ["+e+"] "+t)}};o.prototype={reset:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:function(e){for(var t=["foreground","underline","italics","background","flash"],n=0;n<t.length;n++){var r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}},isDefault:function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},equals:function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},copy:function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},toString:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};function t(e,t,n,r,i,a){this.uchar=e||" ",this.penState=new o(t,n,r,i,a)}t.prototype={reset:function(){this.uchar=" ",this.penState.reset()},setChar:function(e,t){this.uchar=e,this.penState.copy(t)},setPenState:function(e){this.penState.copy(e)},equals:function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},copy:function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},isEmpty:function(){return" "===this.uchar&&this.penState.isDefault()}};function r(){this.chars=[];for(var e=0;e<32;e++)this.chars.push(new t);this.pos=0,this.currPenState=new o}r.prototype={equals:function(e){for(var t=!0,n=0;n<32;n++)if(!this.chars[n].equals(e.chars[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<32;t++)this.chars[t].copy(e.chars[t])},isEmpty:function(){for(var e=!0,t=0;t<32;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},setCursor:function(e){this.pos!==e&&(this.pos=e),this.pos<0?(h.log("ERROR","Negative cursor position "+this.pos),this.pos=0):32<this.pos&&(h.log("ERROR","Too large cursor position "+this.pos),this.pos=32)},moveCursor:function(e){var t=this.pos+e;if(1<e)for(var n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)},backSpace:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:function(e){144<=e&&this.backSpace();var t=s(e);32<=this.pos?h.log("ERROR","Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))},clearFromPos:function(e){var t;for(t=e;t<32;t++)this.chars[t].reset()},clear:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:function(){this.clearFromPos(this.pos)},getTextString:function(){for(var e=[],t=!0,n=0;n<32;n++){var r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")},setPenStyles:function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}};function i(){this.rows=[];for(var e=0;e<15;e++)this.rows.push(new r);this.currRow=14,this.nrRollUpRows=null,this.reset()}i.prototype={reset:function(){for(var e=0;e<15;e++)this.rows[e].clear();this.currRow=14},equals:function(e){for(var t=!0,n=0;n<15;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<15;t++)this.rows[t].copy(e.rows[t])},isEmpty:function(){for(var e=!0,t=0;t<15;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},backSpace:function(){this.rows[this.currRow].backSpace()},clearToEndOfRow:function(){this.rows[this.currRow].clearToEndOfRow()},insertChar:function(e){this.rows[this.currRow].insertChar(e)},setPen:function(e){this.rows[this.currRow].setPenStyles(e)},moveCursor:function(e){this.rows[this.currRow].moveCursor(e)},setCursor:function(e){h.log("INFO","setCursor: "+e),this.rows[this.currRow].setCursor(e)},setPAC:function(e){h.log("INFO","pacData = "+JSON.stringify(e));var t=e.row-1;this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.currRow=t;var n=this.rows[this.currRow];if(null!==e.indent){var r=e.indent,i=Math.max(r-1,0);n.setCursor(e.indent),e.color=n.chars[i].penState.foreground}var a={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(a)},setBkgData:function(e){h.log("INFO","bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)},setRollUpRows:function(e){this.nrRollUpRows=e},rollUp:function(){if(null!==this.nrRollUpRows){h.log("TEXT",this.getDisplayText());var e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),h.log("INFO","Rolling up")}else h.log("DEBUG","roll_up but nrRollUpRows not set yet")},getDisplayText:function(e){e=e||!1;for(var t=[],n="",r=-1,i=0;i<15;i++){var a=this.rows[i].getTextString();a&&(r=i+1,e?t.push("Row "+r+': "'+a+'"'):t.push(a.trim()))}return 0<t.length&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n},getTextAndFormat:function(){return this.rows}};function p(e,t){this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new i,this.nonDisplayedMemory=new i,this.lastOutputScreen=new i,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}p.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(e){this.outputFilter=e},setPAC:function(e){this.writeScreen.setPAC(e)},setBkgData:function(e){this.writeScreen.setBkgData(e)},setMode:function(e){e!==this.mode&&(this.mode=e,h.log("INFO","MODE="+e),"MODE_POP-ON"==this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},insertChars:function(e){for(var t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";h.log("INFO",n+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(h.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){h.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){h.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){h.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(e){h.log("INFO","RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},cc_FON:function(){h.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){h.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){h.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){h.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){h.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){h.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){h.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(h.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,h.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(e){h.log("INFO","TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},cc_MIDROW:function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=46<=e,t.italics)t.foreground="white";else{var n=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][n]}h.log("INFO","MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},outputDataUpdate:function(){var e=h.time;null!==e&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(e,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}};function g(e,t,n){this.field=e||1,this.outputs=[t,n],this.channels=[new p(1,t),new p(2,n)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}}g.prototype={getHandler:function(e){return this.channels[e].getHandler()},setHandler:function(e,t){this.channels[e].setHandler(t)},addData:function(e,t){var n,r,i,a=!1;this.lastTime=e,h.setTime(e);for(var o=0;o<t.length;o+=2)if(r=127&t[o],i=127&t[o+1],16<=r&&r<=31&&r===this.lastCmdA&&i===this.lastCmdB)this.lastCmdA=null,this.lastCmdB=null,h.log("DEBUG","Repeated command ("+u([r,i])+") is dropped");else if(0!=r||0!=i){if(h.log("DATA","["+u([t[o],t[o+1]])+"] -> ("+u([r,i])+")"),!(n=(n=(n=(n=this.parseCmd(r,i))||this.parseMidrow(r,i))||this.parsePAC(r,i))||this.parseBackgroundAttributes(r,i)))if(a=this.parseChars(r,i))if(this.currChNr&&0<=this.currChNr)this.channels[this.currChNr-1].insertChars(a);else h.log("WARNING","No channel found yet. TEXT-MODE?");n?this.dataCounters.cmd+=2:a?this.dataCounters.char+=2:(this.dataCounters.other+=2,h.log("WARNING","Couldn't parse cleaned data "+u([r,i])+" orig: "+u([t[o],t[o+1]])))}else this.dataCounters.padding+=2},parseCmd:function(e,t){var n=null;if(!((20===e||21===e||28===e||29===e)&&32<=t&&t<=47)&&!((23===e||31===e)&&33<=t&&t<=35))return!1;n=20===e||21===e||23===e?1:2;var r=this.channels[n-1];return 20===e||21===e||28===e||29===e?32===t?r.cc_RCL():33===t?r.cc_BS():34===t?r.cc_AOF():35===t?r.cc_AON():36===t?r.cc_DER():37===t?r.cc_RU(2):38===t?r.cc_RU(3):39===t?r.cc_RU(4):40===t?r.cc_FON():41===t?r.cc_RDC():42===t?r.cc_TR():43===t?r.cc_RTD():44===t?r.cc_EDM():45===t?r.cc_CR():46===t?r.cc_ENM():47===t&&r.cc_EOC():r.cc_TO(t-32),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},parseMidrow:function(e,t){var n=null;if((17===e||25===e)&&32<=t&&t<=47){if((n=17===e?1:2)!==this.currChNr)return h.log("ERROR","Mismatch channel in midrow parsing"),!1;var r=this.channels[n-1];return r.insertChars([32]),r.cc_MIDROW(t),h.log("DEBUG","MIDROW ("+u([e,t])+")"),this.lastCmdA=e,this.lastCmdB=t,!0}return!1},parsePAC:function(e,t){var n,r=null;if(!((17<=e&&e<=23||25<=e&&e<=31)&&64<=t&&t<=127)&&!((16===e||24===e)&&64<=t&&t<=95))return!1;n=e<=23?1:2,r=64<=t&&t<=95?1==n?a[e]:f[e]:1==n?l[e]:d[e];var i=this.interpretPAC(r,t);return this.channels[n-1].setPAC(i),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},interpretPAC:function(e,t){var n=t,r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=95<t?t-96:t-64,r.underline=1==(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r},parseChars:function(e,t){var n=null,r=null,i=null;if(17<=(i=25<=e?(n=2,e-8):(n=1,e))&&i<=19){var a=t;a=17===i?t+80:18===i?t+112:t+144,h.log("INFO","Special char '"+s(a)+"' in channel "+n),r=[a],this.lastCmdA=e,this.lastCmdB=t}else 32<=e&&e<=127&&(r=0===t?[e]:[e,t],this.lastCmdA=null,this.lastCmdB=null);if(r){var o=u(r);h.log("DEBUG","Char codes = "+o.join(","))}return r},parseBackgroundAttributes:function(e,t){var n,r,i;return((16===e||24===e)&&32<=t&&t<=47||(23===e||31===e)&&45<=t&&t<=47)&&(n={},16===e||24===e?(r=Math.floor((t-32)/2),n.background=c[r],t%2==1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0)),i=e<24?1:2,this.channels[i-1].setBkgData(n),this.lastCmdA=e,this.lastCmdB=t,!0)},reset:function(){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].reset();this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:function(e){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].cueSplitAtTime(e)}};e.logger=h,e.PenState=o,e.CaptionScreen=i,e.Cea608Parser=g,e.findCea608Nalus=function(e,t,n){for(var r=0,i=t,a=[],o=function(e,t,n,r){if(4!==e||t<8)return null;var i=n.getUint8(r),a=n.getUint16(r+1),o=n.getUint32(r+3),s=n.getUint8(r+7);return 181==i&&49==a&&1195456820==o&&3==s};i<t+n;){if(r=e.getUint32(i),6===(31&e.getUint8(i+4)))for(var s=i+5,u=-1;s<i+4+r-1;){u=0;for(var l=255;255===l;)u+=l=e.getUint8(s),s++;var f=0;for(l=255;255===l;)f+=l=e.getUint8(s),s++;o(u,f,e,s)&&a.push([s,f]),s+=f}i+=r+4}return a},e.extractCea608DataFromRange=function(e,t){var n=t[0],r=[[],[]];n+=8;var i=31&e.getUint8(n);n+=2;for(var a=0;a<i;a++){var o=e.getUint8(n),s=4&o,u=3&o;n++;var l=e.getUint8(n);n++;var f=e.getUint8(n);n++,s&&(127&l)+(127&f)!=0&&(0==u?(r[0].push(l),r[0].push(f)):1==u&&(r[1].push(l),r[1].push(f)))}return r}}(void 0===n?(void 0).cea608parser={}:n)},{}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(b){b=b||{},function(){void 0===b.escapeMode&&(b.escapeMode=!0);void 0===b.attributePrefix&&(b.attributePrefix="_");b.arrayAccessForm=b.arrayAccessForm||"none",b.emptyNodeForm=b.emptyNodeForm||"text",void 0===b.enableToStringFunc&&(b.enableToStringFunc=!0);b.arrayAccessFormPaths=b.arrayAccessFormPaths||[],void 0===b.skipEmptyTextNodesForObj&&(b.skipEmptyTextNodesForObj=!0);void 0===b.stripWhitespaces&&(b.stripWhitespaces=!0);b.datetimeAccessFormPaths=b.datetimeAccessFormPaths||[],void 0===b.useDoubleQuotes&&(b.useDoubleQuotes=!1);b.xmlElementsFilter=b.xmlElementsFilter||[],b.jsonPropertiesFilter=b.jsonPropertiesFilter||[],void 0===b.keepCData&&(b.keepCData=!1);void 0===b.ignoreRoot&&(b.ignoreRoot=!1)}();var I={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};function S(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function u(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"):e}function R(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];if("string"==typeof a){if(a==r)break}else if(a instanceof RegExp){if(a.test(r))break}else if("function"==typeof a&&a(t,n,r))break}return i!=e.length}function w(e,t,n){switch(b.arrayAccessForm){case"property":e[t]instanceof Array?e[t+"_asArray"]=e[t]:e[t+"_asArray"]=[e[t]]}!(e[t]instanceof Array)&&0<b.arrayAccessFormPaths.length&&R(b.arrayAccessFormPaths,e,t,n)&&(e[t]=[e[t]])}function D(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),r=t[5].split(".");if(n.setHours(t[3],t[4],r[0]),1<r.length&&n.setMilliseconds(r[1]),t[6]&&t[7]){var i=60*t[6]+Number(t[7]);i=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*i:i),n.setMinutes(n.getMinutes()-i-n.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function N(e,t){if(e.nodeType==I.DOCUMENT_NODE){for(var n=new Object,r=e.childNodes,i=0;i<r.length;i++){if((o=r[i]).nodeType==I.ELEMENT_NODE)if(b.ignoreRoot)n=N(o);else(n={})[s=S(o)]=N(o)}return n}if(e.nodeType==I.ELEMENT_NODE){(n=new Object).__cnt=0;var a=[];for(r=e.childNodes,i=0;i<r.length;i++){var o,s=S(o=r[i]);if(o.nodeType!=I.COMMENT_NODE){var u=t+"."+s;if(E=n,T=o.nodeType,y=s,A=u,!(T==I.ELEMENT_NODE&&0<b.xmlElementsFilter.length)||R(b.xmlElementsFilter,E,y,A))if(n.__cnt++,null==n[s]){var l=N(o,u);if("#text"!=s||/[^\s]/.test(l))(f={})[s]=l,a.push(f);n[s]=l,w(n,s,u)}else{null!=n[s]&&(n[s]instanceof Array||(n[s]=[n[s]],w(n,s,u)));var f;l=N(o,u);if("#text"!=s||/[^\s]/.test(l))(f={})[s]=l,a.push(f);n[s][n[s].length]=l}}}n.__children=a;for(var d=S(e),c=0;c<e.attributes.length;c++){var h=e.attributes[c];n.__cnt++;for(var p=h.value,g=0,m=b.matchers.length;g<m;g++){var _=b.matchers[g];_.test(h,d)&&(p=_.converter(h.value))}n[b.attributePrefix+h.name]=p}var v=function(e){return e.prefix}(e);return null!=v&&""!=v&&(n.__cnt++,n.__prefix=v),null!=n["#text"]&&(n.__text=n["#text"],n.__text instanceof Array&&(n.__text=n.__text.join("\n")),b.stripWhitespaces&&(n.__text=n.__text.trim()),delete n["#text"],"property"==b.arrayAccessForm&&delete n["#text_asArray"],n.__text=function(e,t,n){if(0<b.datetimeAccessFormPaths.length){var r=n.split(".#")[0];return R(b.datetimeAccessFormPaths,e,t,r)?D(e):e}return e}(n.__text,s,t+"."+s)),null!=n["#cdata-section"]&&(n.__cdata=n["#cdata-section"],delete n["#cdata-section"],"property"==b.arrayAccessForm&&delete n["#cdata-section_asArray"]),0==n.__cnt&&"text"==b.emptyNodeForm?n="":1==n.__cnt&&null!=n.__text?n=n.__text:1!=n.__cnt||null==n.__cdata||b.keepCData?1<n.__cnt&&null!=n.__text&&b.skipEmptyTextNodesForObj&&(b.stripWhitespaces&&""==n.__text||""==n.__text.trim())&&delete n.__text:n=n.__cdata,delete n.__cnt,!b.enableToStringFunc||null==n.__text&&null==n.__cdata||(n.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),n}if(e.nodeType==I.TEXT_NODE||e.nodeType==I.CDATA_SECTION_NODE)return e.nodeValue;var E,T,y,A}function l(e,t,n,r){var i="<"+(null!=e&&null!=e.__prefix?e.__prefix+":":"")+t;if(null!=n)for(var a=0;a<n.length;a++){var o=n[a],s=e[o];b.escapeMode&&(s=u(s)),i+=" "+o.substr(b.attributePrefix.length)+"=",b.useDoubleQuotes?i+='"'+s+'"':i+="'"+s+"'"}return i+=r?"/>":">"}function f(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function d(e,t){return!!("property"==b.arrayAccessForm&&function(e,t){return-1!==e.indexOf(t,e.length-t.length)}(t.toString(),"_asArray")||0==t.toString().indexOf(b.attributePrefix)||0==t.toString().indexOf("__")||e[t]instanceof Function)}function c(e){var t=0;if(e instanceof Object)for(var n in e)d(e,n)||t++;return t}function h(e){var t=[];if(e instanceof Object)for(var n in e)-1==n.toString().indexOf("__")&&0==n.toString().indexOf(b.attributePrefix)&&t.push(n);return t}function p(e){var t="";return e instanceof Object?t+=function(e){var t="";return null!=e.__cdata&&(t+="<![CDATA["+e.__cdata+"]]>"),null!=e.__text&&(b.escapeMode?t+=u(e.__text):t+=e.__text),t}(e):null!=e&&(b.escapeMode?t+=u(e):t+=e),t}function g(e,t){return""===e?t:e+"."+t}function m(e,t,n,r){var i="";if(0==e.length)i+=l(e,t,n,!0);else for(var a=0;a<e.length;a++)i+=l(e[a],t,h(e[a]),!1),i+=_(e[a],g(r,t)),i+=f(e[a],t);return i}function _(e,t){var n,r,i,a="";if(0<c(e))for(var o in e)if(!d(e,o)&&(""==t||(n=e,i=g(t,r=o),0==b.jsonPropertiesFilter.length||""==i||R(b.jsonPropertiesFilter,n,r,i)))){var s=e[o],u=h(s);if(null==s||null==s)a+=l(s,o,u,!0);else if(s instanceof Object)if(s instanceof Array)a+=m(s,o,u,t);else if(s instanceof Date)a+=l(s,o,u,!1),a+=s.toISOString(),a+=f(s,o);else{0<c(s)||null!=s.__text||null!=s.__cdata?(a+=l(s,o,u,!1),a+=_(s,g(t,o)),a+=f(s,o)):a+=l(s,o,u,!0)}else a+=l(s,o,u,!1),a+=p(s),a+=f(s,o)}return a+=p(e)}this.parseXmlString=function(e){var t;window.ActiveXObject||window;if(void 0===e)return null;if(window.DOMParser){var n=new window.DOMParser;try{0<(t=n.parseFromString(e,"text/xml")).getElementsByTagNameNS("*","parsererror").length&&(t=null)}catch(e){t=null}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e);return t},this.asArray=function(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?D(e):e},this.xml2json=function(e){return N(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null},this.json2xml_str=function(e){return _(e,"")},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return"1.2.0"}},t.exports=n.default},{}],4:[function(u,e,l){(function(e){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(l,"__esModule",{value:!0});var n=t(u(100)),r=t(u(48)),i=t(u(46)),a=u(51),o="undefined"!=typeof window&&window||e,s=o.dashjs;(s=s||(o.dashjs={})).MediaPlayer=n.default,s.FactoryMaker=r.default,s.Debug=i.default,s.Version=(0,a.getVersionString)(),l.default=s,l.MediaPlayer=n.default,l.FactoryMaker=r.default,l.Debug=i.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{100:100,46:46,48:48,51:51}],5:[function(e,t,n){"use strict";n.byteLength=function(e){var t=d(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){for(var t,n=d(e),r=n[0],i=n[1],a=new f(function(e,t,n){return 3*(t+n)/4-n}(0,r,i)),o=0,s=0<i?r-4:r,u=0;u<s;u+=4)t=l[e.charCodeAt(u)]<<18|l[e.charCodeAt(u+1)]<<12|l[e.charCodeAt(u+2)]<<6|l[e.charCodeAt(u+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=255&t;2===i&&(t=l[e.charCodeAt(u)]<<2|l[e.charCodeAt(u+1)]>>4,a[o++]=255&t);1===i&&(t=l[e.charCodeAt(u)]<<10|l[e.charCodeAt(u+1)]<<4|l[e.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=255&t);return a},n.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],a=0,o=n-r;a<o;a+=16383)i.push(u(e,a,o<a+16383?o:a+16383));1==r?(t=e[n-1],i.push(s[t>>2]+s[t<<4&63]+"==")):2==r&&(t=(e[n-2]<<8)+e[n-1],i.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return i.join("")};for(var s=[],l=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i<a;++i)s[i]=r[i],l[r.charCodeAt(i)]=i;function d(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var r,i,a=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(s[(i=r)>>18&63]+s[i>>12&63]+s[i>>6&63]+s[63&i]);return a.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],6:[function(e,t,n){},{}],7:[function(e,t,n){"use strict";var r=e(5),a=e(11);n.Buffer=d,n.SlowBuffer=function(e){+e!=e&&(e=0);return d.alloc(+e)},n.INSPECT_MAX_BYTES=50;var i=2147483647;function o(e){if(i<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=d.prototype,t}function d(e,t,n){if("number"!=typeof e)return s(e,t,n);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}function s(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!d.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=o(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=d.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return d.from(r,t,n);var i=function(e){if(d.isBuffer(e)){var t=0|c(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||U(e.length)?o(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return d.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),o(e<0?0:0|c(e))}function f(e){for(var t=e.length<0?0:0|c(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function c(e){if(i<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=2<arguments.length&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(i)return r?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),U(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=d.from(t,r)),d.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s/=o=2,u/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var f=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===u)return f*o}else-1!==f&&(a-=a-f),f=-1}else for(s<n+u&&(n=s-u),a=n;0<=a;a--){for(var d=!0,c=0;c<u;c++)if(l(e,a+c)!==l(t,c)){d=!1;break}if(d)return a}return-1}function _(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?i<(r=Number(r))&&(r=i):r=i;var a=t.length;a/2<r&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(U(s))return o;e[n+o]=s}return o}function v(e,t,n,r){return x(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,u,l=e[i],f=null,d=239<l?4:223<l?3:191<l?2:1;if(i+d<=n)switch(d){case 1:l<128&&(f=l);break;case 2:128==(192&(a=e[i+1]))&&127<(u=(31&l)<<6|63&a)&&(f=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&2047<(u=(15&l)<<12|(63&a)<<6|63&o)&&(u<55296||57343<u)&&(f=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&65535<(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)&&u<1114112&&(f=u)}null===f?(f=65533,d=1):65535<f&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=d}return function(e){var t=e.length;if(t<=y)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=y));return n}(r)}n.kMaxLength=i,(d.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),d.poolSize=8192,d.from=function(e,t,n){return s(e,t,n)},d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,d.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},d.allocUnsafe=function(e){return l(e)},d.allocUnsafeSlow=function(e){return l(e)},d.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==d.prototype},d.compare=function(e,t){if(F(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(e)||!d.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},d.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var n;if(void 0===t)for(n=t=0;n<e.length;++n)t+=e[n].length;var r=d.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(F(a,Uint8Array)&&(a=d.from(a)),!d.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},d.byteLength=h,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},d.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},d.prototype.toLocaleString=d.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return b(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},d.prototype.compare=function(e,t,n,r,i){if(F(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&n<=t)return 0;if(i<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(u[f]!==l[f]){a=u[f],o=l[f];break}return a<o?-1:o<a?1:0},d.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},d.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},d.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},d.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||i<n)&&(n=i),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var a,o,s,u,l,f,d,c,h,p=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return c=t,h=n,x(P(e,(d=this).length-c),d,c,h);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return v(this,e,t,n);case"base64":return u=this,l=t,f=n,x(L(e),u,l,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=t,s=n,x(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(e,(a=this).length-o),a,o,s);default:if(p)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var y=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function b(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",a=t;a<n;++a)i+=C(e[a]);return i}function S(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,a){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,8),a.write(e,t,n,r,52,8),n+8}d.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=d.prototype,r},d.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},d.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;0<t&&(i*=256);)r+=this[e+--t]*i;return r},d.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return(i*=128)<=r&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=t,i=1,a=this[e+--r];0<r&&(i*=256);)a+=this[e+--r]*i;return(i*=128)<=a&&(a-=Math.pow(2,8*t)),a},d.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||w(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},d.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||w(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;0<=--i&&(a*=256);)this[t+i]=e/a&255;return t+n},d.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;0<=--a&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(!d.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n=n||0,r||0===r||(r=this.length),t>=e.length&&(t=e.length),t=t||0,0<r&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;0<=a;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},d.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(a=t;a<n;++a)this[a]=e;else{var o=d.isBuffer(e)?e:d.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var O=/[^+/0-9A-Za-z-_]/g;function C(e){return e<16?"0"+e.toString(16):e.toString(16)}function P(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if(55295<(n=e.charCodeAt(o))&&n<57344){if(!i){if(56319<n){-1<(t-=3)&&a.push(239,191,189);continue}if(o+1===r){-1<(t-=3)&&a.push(239,191,189);continue}i=n;continue}if(n<56320){-1<(t-=3)&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(t-=3)&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function L(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function x(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function U(e){return e!=e}},{11:11,5:5}],8:[function(e,t,n){var i={parseBuffer:function(e){return new a(e).parse()},addBoxProcessor:function(e,t){"string"==typeof e&&"function"==typeof t&&(o.prototype._boxProcessors[e]=t)},createFile:function(){return new a},createBox:function(e,t,n){var r=o.create(e);return t&&t.append(r,n),r},createFullBox:function(e,t,n){var r=i.createBox(e,t,n);return r.version=0,r.flags=0,r},Utils:{}};i.Utils.dataViewToString=function(e,t){var n=t||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(n).decode(e);var r=[],i=0;if("utf-8"===n)for(;i<e.byteLength;){var a=e.getUint8(i++);a<128||(a<224?a=(31&a)<<6:(a<240?a=(15&a)<<12:(a=(7&a)<<18,a|=(63&e.getUint8(i++))<<12),a|=(63&e.getUint8(i++))<<6),a|=63&e.getUint8(i++)),r.push(String.fromCharCode(a))}else for(;i<e.byteLength;)r.push(String.fromCharCode(e.getUint8(i++)));return r.join("")},i.Utils.utf8ToByteArray=function(e){var t,n;if("undefined"!=typeof TextEncoder)t=(new TextEncoder).encode(e);else for(t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):(r<2048?t.push(192|r>>6):(r<65536?t.push(224|r>>12):(t.push(240|r>>18),t.push(128|63&r>>12)),t.push(128|63&r>>6)),t.push(128|63&r))}return t},i.Utils.appendBox=function(e,t,n){if(t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,-1!==n)if(null!=n){var r,i=-1;if("number"==typeof n)i=n;else{if("string"==typeof n)r=n;else{if("object"!=typeof n||!n.type)return void e.boxes.push(t);r=n.type}for(var a=0;a<e.boxes.length;a++)if(r===e.boxes[a].type){i=a+1;break}}e.boxes.splice(i,0,t)}else e.boxes.push(t)},void 0!==n&&(n.parseBuffer=i.parseBuffer,n.addBoxProcessor=i.addBoxProcessor,n.createFile=i.createFile,n.createBox=i.createBox,n.createFullBox=i.createFullBox,n.Utils=i.Utils),i.Cursor=function(e){this.offset=void 0===e?0:e};var a=function(e){this._cursor=new i.Cursor,this.boxes=[],e&&(this._raw=new DataView(e))};a.prototype.fetch=function(e){var t=this.fetchAll(e,!0);return t.length?t[0]:null},a.prototype.fetchAll=function(e,t){var n=[];return a._sweep.call(this,e,n,t),n},a.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var e=o.parse(this);if(void 0===e.type)break;this.boxes.push(e)}return this},a._sweep=function(e,t,n){for(var r in this.type&&this.type==e&&t.push(this),this.boxes){if(t.length&&n)return;a._sweep.call(this.boxes[r],e,t,n)}},a.prototype.write=function(){var e,t=0;for(e=0;e<this.boxes.length;e++)t+=this.boxes[e].getLength(!1);var n=new Uint8Array(t);for(this._rawo=new DataView(n.buffer),this.bytes=n,e=this._cursor.offset=0;e<this.boxes.length;e++)this.boxes[e].write();return n.buffer},a.prototype.append=function(e,t){i.Utils.appendBox(this,e,t)};var o=function(){this._cursor=new i.Cursor};o.parse=function(e){var t=new o;return t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,t._parseBox(),e._cursor.offset=t._raw.byteOffset+t._raw.byteLength,t},o.create=function(e){var t=new o;return t.type=e,t.boxes=[],t},o.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],o.prototype._boxProcessors={},o.prototype._procField=function(e,t,n){this._parsing?this[e]=this._readField(t,n):this._writeField(t,n,this[e])},o.prototype._procFieldArray=function(e,t,n,r){var i;if(this._parsing)for(this[e]=[],i=0;i<t;i++)this[e][i]=this._readField(n,r);else for(i=0;i<this[e].length;i++)this._writeField(n,r,this[e][i])},o.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},o.prototype._procEntries=function(e,t,n){var r;if(this._parsing)for(this[e]=[],r=0;r<t;r++)this[e].push({}),n.call(this,this[e][r]);else for(r=0;r<t;r++)n.call(this,this[e][r])},o.prototype._procSubEntries=function(e,t,n,r){var i;if(this._parsing)for(e[t]=[],i=0;i<n;i++)e[t].push({}),r.call(this,e[t][i]);else for(i=0;i<n;i++)r.call(this,e[t][i])},o.prototype._procEntryField=function(e,t,n,r){this._parsing?e[t]=this._readField(n,r):this._writeField(n,r,e[t])},o.prototype._procSubBoxes=function(e,t){var n;if(this._parsing)for(this[e]=[],n=0;n<t;n++)this[e].push(o.parse(this));else for(n=0;n<t;n++)this._rawo?this[e][n].write():this.size+=this[e][n].getLength()},o.prototype._readField=function(e,t){switch(e){case"uint":return this._readUint(t);case"int":return this._readInt(t);case"template":return this._readTemplate(t);case"string":return-1===t?this._readTerminatedString():this._readString(t);case"data":return this._readData(t);case"utf8":return this._readUTF8String();default:return-1}},o.prototype._readInt=function(e){var t=null,n=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:t=this._raw.getInt8(n);break;case 16:t=this._raw.getInt16(n);break;case 32:t=this._raw.getInt32(n);break;case 64:var r=this._raw.getInt32(n),i=this._raw.getInt32(4+n);t=r*Math.pow(2,32)+i}return this._cursor.offset+=e>>3,t},o.prototype._readUint=function(e){var t,n,r=null,i=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:r=this._raw.getUint8(i);break;case 16:r=this._raw.getUint16(i);break;case 24:r=((t=this._raw.getUint16(i))<<8)+(n=this._raw.getUint8(2+i));break;case 32:r=this._raw.getUint32(i);break;case 64:t=this._raw.getUint32(i),n=this._raw.getUint32(4+i),r=t*Math.pow(2,32)+n}return this._cursor.offset+=e>>3,r},o.prototype._readString=function(e){for(var t="",n=0;n<e;n++){var r=this._readUint(8);t+=String.fromCharCode(r)}return t},o.prototype._readTemplate=function(e){return this._readUint(e/2)+this._readUint(e/2)/Math.pow(2,e/2)},o.prototype._readTerminatedString=function(){for(var e="";this._cursor.offset-this._offset<this._raw.byteLength;){var t=this._readUint(8);if(0===t)break;e+=String.fromCharCode(t)}return e},o.prototype._readData=function(e){var t=0<e?e:this._raw.byteLength-(this._cursor.offset-this._offset);if(0<t){var n=new Uint8Array(this._raw.buffer,this._cursor.offset,t);return this._cursor.offset+=t,n}return null},o.prototype._readUTF8String=function(){var e=this._raw.byteLength-(this._cursor.offset-this._offset),t=null;return 0<e&&(t=new DataView(this._raw.buffer,this._cursor.offset,e),this._cursor.offset+=e),t?i.Utils.dataViewToString(t):t},o.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset,this._raw.byteLength-this._cursor.offset+8);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type)?this._parseContainerBox():this._data=this._readData())}},o.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},o.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(o.parse(this))},o.prototype.append=function(e,t){i.Utils.appendBox(this,e,t)},o.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var e=0;e<this.boxes.length;e++)this.size+=this.boxes[e].getLength();return this._data&&this._writeData(this._data),this.size},o.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var e=0;e<this.boxes.length;e++)this.boxes[e].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},o.prototype._writeInt=function(e,t){if(this._rawo){var n=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setInt8(n,t);break;case 16:this._rawo.setInt16(n,t);break;case 32:this._rawo.setInt32(n,t);break;case 64:var r=Math.floor(t/Math.pow(2,32)),i=t-r*Math.pow(2,32);this._rawo.setUint32(n,r),this._rawo.setUint32(4+n,i)}this._cursor.offset+=e>>3}else this.size+=e>>3},o.prototype._writeUint=function(e,t){if(this._rawo){var n,r,i=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setUint8(i,t);break;case 16:this._rawo.setUint16(i,t);break;case 24:n=(16776960&t)>>8,r=255&t,this._rawo.setUint16(i,n),this._rawo.setUint8(2+i,r);break;case 32:this._rawo.setUint32(i,t);break;case 64:r=t-(n=Math.floor(t/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(i,n),this._rawo.setUint32(4+i,r)}this._cursor.offset+=e>>3}else this.size+=e>>3},o.prototype._writeString=function(e,t){for(var n=0;n<e;n++)this._writeUint(8,t.charCodeAt(n))},o.prototype._writeTerminatedString=function(e){if(0!==e.length){for(var t=0;t<e.length;t++)this._writeUint(8,e.charCodeAt(t));this._writeUint(8,0)}},o.prototype._writeTemplate=function(e,t){var n=Math.floor(t),r=(t-n)*Math.pow(2,e/2);this._writeUint(e/2,n),this._writeUint(e/2,r)},o.prototype._writeData=function(e){if(e)if(this._rawo){if(e instanceof Array){for(var t=this._cursor.offset-this._rawo.byteOffset,n=0;n<e.length;n++)this._rawo.setInt8(t+n,e[n]);this._cursor.offset+=e.length}e instanceof Uint8Array&&(this._root.bytes.set(e,this._cursor.offset),this._cursor.offset+=e.length)}else this.size+=e.length},o.prototype._writeUTF8String=function(e){var t=i.Utils.utf8ToByteArray(e);if(this._rawo)for(var n=new DataView(this._rawo.buffer,this._cursor.offset,t.length),r=0;r<t.length;r++)n.setUint8(r,t[r]);else this.size+=t.length},o.prototype._writeField=function(e,t,n){switch(e){case"uint":this._writeUint(t,n);break;case"int":this._writeInt(t,n);break;case"template":this._writeTemplate(t,n);break;case"string":-1==t?this._writeTerminatedString(n):this._writeString(t,n);break;case"data":this._writeData(n);break;case"utf8":this._writeUTF8String(n)}},o.prototype._boxProcessors.avc1=o.prototype._boxProcessors.encv=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procField("pre_defined1","uint",16),this._procField("reserved2","uint",16),this._procFieldArray("pre_defined2",3,"uint",32),this._procField("width","uint",16),this._procField("height","uint",16),this._procField("horizresolution","template",32),this._procField("vertresolution","template",32),this._procField("reserved3","uint",32),this._procField("frame_count","uint",16),this._procFieldArray("compressorname",32,"uint",8),this._procField("depth","uint",16),this._procField("pre_defined3","int",16),this._procField("config","data",-1)},o.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},o.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,function(e){this._procEntryField(e,"segment_duration","uint",1===this.version?64:32),this._procEntryField(e,"media_time","int",1===this.version?64:32),this._procEntryField(e,"media_rate_integer","int",16),this._procEntryField(e,"media_rate_fraction","int",16)})},o.prototype._boxProcessors.emsg=function(){this._procFullBox(),1==this.version?(this._procField("timescale","uint",32),this._procField("presentation_time","uint",64),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1)):(this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32)),this._procField("message_data","data",-1)},o.prototype._boxProcessors.free=o.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)},o.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)},o.prototype._boxProcessors.ftyp=o.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);var e=-1;this._parsing&&(e=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",e,"string",4)},o.prototype._boxProcessors.hdlr=function(){this._procFullBox(),this._procField("pre_defined","uint",32),this._procField("handler_type","string",4),this._procFieldArray("reserved",3,"uint",32),this._procField("name","string",-1)},o.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)},o.prototype._boxProcessors.mdhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField("language","uint",16),this._parsing&&(this.language=String.fromCharCode(96+(this.language>>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},o.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},o.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},o.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},o.prototype._boxProcessors.mp4a=o.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},o.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},o.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},o.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},o.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},o.prototype._boxProcessors.sdtp=function(){this._procFullBox();var e=-1;this._parsing&&(e=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",e,"uint",8)},o.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,function(e){this._parsing||(e.reference=(1&e.reference_type)<<31,e.reference|=2147483647&e.referenced_size,e.sap=(1&e.starts_with_SAP)<<31,e.sap|=(3&e.SAP_type)<<28,e.sap|=268435455&e.SAP_delta_time),this._procEntryField(e,"reference","uint",32),this._procEntryField(e,"subsegment_duration","uint",32),this._procEntryField(e,"sap","uint",32),this._parsing&&(e.reference_type=e.reference>>31&1,e.referenced_size=2147483647&e.reference,e.starts_with_SAP=e.sap>>31&1,e.SAP_type=e.sap>>28&7,e.SAP_delta_time=268435455&e.sap)})},o.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},o.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,function(e){this._procEntryField(e,"ranges_count","uint",32),this._procSubEntries(e,"ranges",e.ranges_count,function(e){this._procEntryField(e,"level","uint",8),this._procEntryField(e,"range_size","uint",24)})})},o.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},o.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,function(e){this._procEntryField(e,"sample_delta","uint",32),this._procEntryField(e,"subsample_count","uint",16),this._procSubEntries(e,"subsamples",e.subsample_count,function(e){this._procEntryField(e,"subsample_size","uint",1===this.version?32:16),this._procEntryField(e,"subsample_priority","uint",8),this._procEntryField(e,"discardable","uint",8),this._procEntryField(e,"codec_specific_parameters","uint",32)})})},o.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},o.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},o.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},o.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,function(e){this._procEntryField(e,"time","uint",1===this.version?64:32),this._procEntryField(e,"moof_offset","uint",1===this.version?64:32),this._procEntryField(e,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(e,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(e,"sample_number","uint",8*(this.length_size_of_sample_num+1))})},o.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},o.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},o.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,function(e){256&this.flags&&this._procEntryField(e,"sample_duration","uint",32),512&this.flags&&this._procEntryField(e,"sample_size","uint",32),1024&this.flags&&this._procEntryField(e,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(e,"sample_composition_time_offset",1===this.version?"int":"uint",32)})},o.prototype._boxProcessors["url "]=o.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},o.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},o.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},o.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},o.prototype._boxProcessors.vtte=function(){}},{}],9:[function(e,t,n){var u=Object.create||function(e){function t(){}return t.prototype=e,new t},o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},a=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function r(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=u(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((t.exports=r).EventEmitter=r).prototype._events=void 0,r.prototype._maxListeners=void 0;var i,s=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),i=0===l.x}catch(e){i=!1}function f(e){return void 0===e._maxListeners?r.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,a,o;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]):(a=e._events=u(null),e._eventsCount=0),o){if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),!o.warned&&(i=f(e))&&0<i&&o.length>i){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else o=a[t]=n,++e._eventsCount;return e}function c(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=a.call(c,r);return i.listener=n,r.wrapFn=i}function p(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):m(i,i.length):[]}function g(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}i?Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');s=e}}):r.defaultMaxListeners=s,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},r.prototype.getMaxListeners=function(){return f(this)},r.prototype.emit=function(e,t,n,r){var i,a,o,s,u,l,f="error"===e;if(l=this._events)f=f&&null==l.error;else if(!f)return!1;if(f){if(1<arguments.length&&(i=t),i instanceof Error)throw i;var d=new Error('Unhandled "error" event. ('+i+")");throw d.context=i,d}if(!(a=l[e]))return!1;var c="function"==typeof a;switch(o=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=m(e,r),a=0;a<r;++a)i[a].call(n)}(a,c,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,a=m(e,i),o=0;o<i;++o)a[o].call(n,r)}(a,c,this,t);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var a=e.length,o=m(e,a),s=0;s<a;++s)o[s].call(n,r,i)}(a,c,this,t,n);break;case 4:!function(e,t,n,r,i,a){if(t)e.call(n,r,i,a);else for(var o=e.length,s=m(e,o),u=0;u<o;++u)s[u].call(n,r,i,a)}(a,c,this,t,n,r);break;default:for(s=new Array(o-1),u=1;u<o;u++)s[u-1]=arguments[u];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,a=m(e,i),o=0;o<i;++o)a[o].apply(n,r)}(a,c,this,s)}return!0},r.prototype.on=r.prototype.addListener=function(e,t){return d(this,e,t,!1)},r.prototype.prependListener=function(e,t){return d(this,e,t,!0)},r.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,h(this,e,t)),this},r.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,h(this,e,t)),this},r.prototype.removeListener=function(e,t){var n,r,i,a,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=u(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;0<=a;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),r.removeListener&&this.emit("removeListener",e,o||t)}return this},r.prototype.removeAllListeners=function(e){var t,n,r;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=u(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=u(null):delete n[e]),this;if(0===arguments.length){var i,a=o(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=u(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(r=t.length-1;0<=r;r--)this.removeListener(e,t[r]);return this},r.prototype.listeners=function(e){return p(this,e,!0)},r.prototype.rawListeners=function(e){return p(this,e,!1)},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},r.prototype.listenerCount=g,r.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],10:[function(e,t,n){"use strict";var h=Array.isArray,p=Object.keys,g=Object.prototype.hasOwnProperty;t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,a,o=h(t),s=h(n);if(o&&s){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(o!=s)return!1;var u=t instanceof Date,l=n instanceof Date;if(u!=l)return!1;if(u&&l)return t.getTime()==n.getTime();var f=t instanceof RegExp,d=n instanceof RegExp;if(f!=d)return!1;if(f&&d)return t.toString()==n.toString();var c=p(t);if((i=c.length)!==p(n).length)return!1;for(r=i;0!=r--;)if(!g.call(n,c[r]))return!1;for(r=i;0!=r--;)if(!e(t[a=c[r]],n[a]))return!1;return!0}return t!=t&&n!=n}},{}],11:[function(e,t,n){n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<<s)-1,l=u>>1,f=-7,d=n?i-1:0,c=n?-1:1,h=e[t+d];for(d+=c,a=h&(1<<-f)-1,h>>=-f,f+=s;0<f;a=256*a+e[t+d],d+=c,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=r;0<f;o=256*o+e[t+d],d+=c,f-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=l}return(h?-1:1)*o*Math.pow(2,a-r)},n.write=function(e,t,n,r,i,a){var o,s,u,l=8*a-i-1,f=(1<<l)-1,d=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),2<=(t+=1<=o+d?c/u:c*Math.pow(2,1-d))*u&&(o++,u/=2),f<=o+d?(s=0,o=f):1<=o+d?(s=(t*u-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));8<=i;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;0<l;e[n+h]=255&o,h+=p,o/=256,l-=8);e[n+h-p]|=128*g}},{}],12:[function(e,t,n){function f(e,t,n,r){var i=r&&"seq"===r.timeContainer,a=0;r&&(a=i&&n?n.end:r.begin),t.begin=t.explicit_begin?t.explicit_begin+a:a;var o=t.begin,s=null;for(var u in t.sets)f(e,t.sets[u],s,t),o="seq"===t.timeContainer?t.sets[u].end:Math.max(o,t.sets[u].end),s=t.sets[u];if("contents"in t)for(var l in t.contents)f(e,t.contents[l],s,t),o="seq"===t.timeContainer?t.contents[l].end:Math.max(o,t.contents[l].end),s=t.contents[l];else o=i?t.begin:Number.POSITIVE_INFINITY;null!==t.explicit_end&&null!==t.explicit_dur?t.end=Math.min(t.begin+t.explicit_dur,a+t.explicit_end):null===t.explicit_end&&null!==t.explicit_dur?t.end=t.begin+t.explicit_dur:null!==t.explicit_end&&null===t.explicit_dur?t.end=a+t.explicit_end:t.end=o,delete t.explicit_begin,delete t.explicit_dur,delete t.explicit_end,e._registerEvent(t)}function T(e){this.node=e}function y(){this.events=[],this.head=null,this.body=null}function A(){this.styling=null,this.layout=null}function b(){this.styles={}}function I(){this.id=null,this.styleAttrs=null,this.styleRefs=null}function S(){this.regions={}}function r(e){this.kind=e}function i(e){this.id=e}function a(e){this.regionID=e}function o(e){this.styleAttrs=e}function s(e){this.sets=e}function u(e){this.contents=e}function l(e,t,n){this.explicit_begin=e,this.explicit_end=t,this.explicit_dur=n}function R(){r.call(this,"body")}function w(){r.call(this,"div")}function D(){r.call(this,"p")}function N(){r.call(this,"span")}function d(){r.call(this,"span")}function M(){r.call(this,"br")}function O(){}function C(){}function c(e){return e&&"xml:id"in e.attributes&&e.attributes["xml:id"].value||null}function h(e){return e&&"style"in e.attributes?e.attributes.style.value.split(" "):[]}function p(e,t){var n={};if(null!==e)for(var r in e.attributes){var i=e.attributes[r].uri+" "+e.attributes[r].local,a=G.byQName[i];if(void 0!==a){var o=a.parse(e.attributes[r].value);null!==o?(n[i]=o,a===G.byName.zIndex&&v(t,"zIndex attribute present but not used by IMSC1 since regions do not overlap")):x(t,"Cannot parse styling attribute "+i+" --\x3e "+e.attributes[r].value)}}return n}function g(e,t,n){for(var r in e.attributes)if(e.attributes[r].uri===t&&e.attributes[r].local===n)return e.attributes[r].value;return null}function m(e,t,n){var r,i=null;return null!==(r=/^(\d+(?:\.\d+)?)f$/.exec(n))?null!==t&&(i=parseFloat(r[1])/t):null!==(r=/^(\d+(?:\.\d+)?)t$/.exec(n))?null!==e&&(i=parseFloat(r[1])/e):null!==(r=/^(\d+(?:\.\d+)?)ms$/.exec(n))?i=parseFloat(r[1])/1e3:null!==(r=/^(\d+(?:\.\d+)?)s$/.exec(n))?i=parseFloat(r[1]):null!==(r=/^(\d+(?:\.\d+)?)h$/.exec(n))?i=3600*parseFloat(r[1]):null!==(r=/^(\d+(?:\.\d+)?)m$/.exec(n))?i=60*parseFloat(r[1]):null!==(r=/^(\d{2,}):(\d\d):(\d\d(?:\.\d+)?)$/.exec(n))?i=3600*parseInt(r[1])+60*parseInt(r[2])+parseFloat(r[3]):null!==(r=/^(\d{2,}):(\d\d):(\d\d)\:(\d{2,})$/.exec(n))&&null!==t&&(i=3600*parseInt(r[1])+60*parseInt(r[2])+parseInt(r[3])+(null===r[4]?0:parseInt(r[4])/t)),i}function P(e,t,n){for(;0<t.styleRefs.length;){var r=t.styleRefs.pop();r in e.styles?(P(e,e.styles[r],n),L(e.styles[r].styleAttrs,t.styleAttrs)):x(n,"Non-existant style id referenced")}}function _(e,t,n,r){for(var i=t.length-1;0<=i;i--){var a=t[i];a in e.styles?L(e.styles[a].styleAttrs,n):x(r,"Non-existant style id referenced")}}function L(e,t){for(var n in e)n in t||(t[n]=e[n])}function v(e,t){if(e&&e.warn&&e.warn(t))throw t}function x(e,t){if(e&&e.error&&e.error(t))throw t}function F(e,t){throw e&&e.fatal&&e.fatal(t),t}function E(e,t){for(var n,r=0,i=e.length-1;r<=i;){var a=e[n=Math.floor((r+i)/2)];if(a<t)r=n+1;else{if(!(t<a))return{found:!0,index:n};i=n-1}}return{found:!1,index:r}}var U,B,k,G,j;U=void 0===n?this.imscDoc={}:n,B="undefined"==typeof sax?e(40):sax,k="undefined"==typeof imscNames?e(16):imscNames,G="undefined"==typeof imscStyles?e(17):imscStyles,j="undefined"==typeof imscUtils?e(18):imscUtils,U.fromXML=function(e,h,p){var t=B.parser(!0,{xmlns:!0}),g=[],m=[],_=[],v=0,E=null;t.onclosetag=function(e){if(g[0]instanceof b)for(var t in g[0].styles)P(g[0],g[0].styles[t],h);else if(g[0]instanceof D||g[0]instanceof N){if(1<g[0].contents.length){var n,r=[g[0].contents[0]];for(n=1;n<g[0].contents.length;n++)g[0].contents[n]instanceof d&&r[r.length-1]instanceof d?r[r.length-1].text+=g[0].contents[n].text:r.push(g[0].contents[n]);g[0].contents=r}g[0]instanceof N&&1===g[0].contents.length&&g[0].contents[0]instanceof d&&(g[0].text=g[0].contents[0].text,delete g[0].contents)}else g[0]instanceof T&&(g[0].node.uri===k.ns_tt&&"metadata"===g[0].node.local?v--:0<v&&p&&"onCloseTag"in p&&p.onCloseTag());_.shift(),m.shift(),g.shift()},t.ontext=function(e){if(void 0===g[0]);else if(g[0]instanceof N||g[0]instanceof D){var t=new d;t.initFromText(E,g[0],e,_[0],h),g[0].contents.push(t)}else g[0]instanceof T&&0<v&&p&&"onText"in p&&p.onText(e)},t.onopentag=function(e){var t=e.attributes["xml:space"];t?_.unshift(t.value):0===_.length?_.unshift("default"):_.unshift(_[0]);var n=e.attributes["xml:lang"];if(n?m.unshift(n.value):0===m.length?m.unshift(""):m.unshift(m[0]),e.uri===k.ns_tt)if("tt"===e.local)null!==E&&F(h,"Two <tt> elements at ("+this.line+","+this.column+")"),(E=new y).initFromNode(e,h),g.unshift(E);else if("head"===e.local)g[0]instanceof y||F(h,"Parent of <head> element is not <tt> at ("+this.line+","+this.column+")"),null!==E.head&&F("Second <head> element at ("+this.line+","+this.column+")"),E.head=new A,g.unshift(E.head);else if("styling"===e.local)g[0]instanceof A||F(h,"Parent of <styling> element is not <head> at ("+this.line+","+this.column+")"),null!==E.head.styling&&F("Second <styling> element at ("+this.line+","+this.column+")"),E.head.styling=new b,g.unshift(E.head.styling);else if("style"===e.local){var r;g[0]instanceof b?((r=new I).initFromNode(e,h),r.id?E.head.styling.styles[r.id]=r:x(h,"<style> element missing @id attribute"),g.unshift(r)):g[0]instanceof O?((r=new I).initFromNode(e,h),L(r.styleAttrs,g[0].styleAttrs),g.unshift(r)):F(h,"Parent of <style> element is not <styling> or <region> at ("+this.line+","+this.column+")")}else if("layout"===e.local)g[0]instanceof A||F(h,"Parent of <layout> element is not <head> at "+this.line+","+this.column+")"),null!==E.head.layout&&F(h,"Second <layout> element at "+this.line+","+this.column+")"),E.head.layout=new S,g.unshift(E.head.layout);else if("region"===e.local){g[0]instanceof S||F(h,"Parent of <region> element is not <layout> at "+this.line+","+this.column+")");var i=new O;i.initFromNode(E,e,h),!i.id||i.id in E.head.layout.regions?x(h,"Ignoring <region> with duplicate or missing @id at "+this.line+","+this.column+")"):E.head.layout.regions[i.id]=i,g.unshift(i)}else if("body"===e.local){g[0]instanceof y||F(h,"Parent of <body> element is not <tt> at "+this.line+","+this.column+")"),null!==E.body&&F(h,"Second <body> element at "+this.line+","+this.column+")");var a=new R;a.initFromNode(E,e,h),E.body=a,g.unshift(a)}else if("div"===e.local){g[0]instanceof w||g[0]instanceof R||F(h,"Parent of <div> element is not <body> or <div> at "+this.line+","+this.column+")");var o=new w;o.initFromNode(E,g[0],e,h),g[0].contents.push(o),g.unshift(o)}else if("p"===e.local){g[0]instanceof w||F(h,"Parent of <p> element is not <div> at "+this.line+","+this.column+")");var s=new D;s.initFromNode(E,g[0],e,h),g[0].contents.push(s),g.unshift(s)}else if("span"===e.local){g[0]instanceof N||g[0]instanceof D||F(h,"Parent of <span> element is not <span> or <p> at "+this.line+","+this.column+")");var u=new N;u.initFromNode(E,g[0],e,_[0],h),g[0].contents.push(u),g.unshift(u)}else if("br"===e.local){g[0]instanceof N||g[0]instanceof D||F(h,"Parent of <br> element is not <span> or <p> at "+this.line+","+this.column+")");var l=new M;l.initFromNode(E,g[0],e,h),g[0].contents.push(l),g.unshift(l)}else if("set"===e.local){g[0]instanceof N||g[0]instanceof D||g[0]instanceof w||g[0]instanceof R||g[0]instanceof O||g[0]instanceof M||F(h,"Parent of <set> element is not a content element or a region at "+this.line+","+this.column+")");var f=new C;f.initFromNode(E,g[0],e,h),g[0].sets.push(f),g.unshift(f)}else g.unshift(new T(e));else g.unshift(new T(e));if(g[0]instanceof T)if(e.uri===k.ns_tt&&"metadata"===e.local)v++;else if(0<v&&p&&"onOpenTag"in p){var d=[];for(var c in e.attributes)d[e.attributes[c].uri+" "+e.attributes[c].local]={uri:e.attributes[c].uri,local:e.attributes[c].local,value:e.attributes[c].value};p.onOpenTag(e.uri,e.local,d)}},t.write(e).close(),null!==E.head?delete E.head.styling:E.head=new A,null===E.head.layout&&(E.head.layout=new S);var n=!1;for(var r in E.head.layout.regions){n=!0;break}if(!n){var i=O.prototype.createDefaultRegion();E.head.layout.regions[i.id]=i}for(var a in E.head.layout.regions)f(E,E.head.layout.regions[a],null,null);return E.body&&f(E,E.body,null,null),E},y.prototype.initFromNode=function(e,t){this.cellResolution=function(e,t){var n=g(e,k.ns_ttp,"cellResolution"),r=15,i=32;if(null!==n){var a=/(\d+) (\d+)/.exec(n);null!==a?(i=parseInt(a[1]),r=parseInt(a[2])):v(t,"Malformed cellResolution value (using initial value instead)")}return{w:i,h:r}}(e,t);var n=function(e,t){var n,r=g(e,k.ns_ttp,"frameRate"),i=30;null!==r&&(null!==(n=/(\d+)/.exec(r))?i=parseInt(n[1]):v(t,"Malformed frame rate attribute (using initial value instead)"));var a=g(e,k.ns_ttp,"frameRateMultiplier"),o=1;null!==a&&(null!==(n=/(\d+) (\d+)/.exec(a))?o=parseInt(n[1])/parseInt(n[2]):v(t,"Malformed frame rate multiplier attribute (using initial value instead)"));var s=o*i,u=1,l=g(e,k.ns_ttp,"tickRate");return null===l?null!==r&&(u=s):null!==(n=/(\d+)/.exec(l))?u=parseInt(n[1]):v(t,"Malformed tick rate attribute (using initial value instead)"),{effectiveFrameRate:s,tickRate:u}}(e,t);this.effectiveFrameRate=n.effectiveFrameRate,this.tickRate=n.tickRate,this.aspectRatio=function(e,t){var n=g(e,k.ns_ittp,"aspectRatio"),r=null;if(null!==n){var i=/(\d+) (\d+)/.exec(n);if(null!==i){var a=parseInt(i[1]),o=parseInt(i[2]);0!==a&&0!==o?r=a/o:x(t,"Illegal aspectRatio values (ignoring)")}else x(t,"Malformed aspectRatio attribute (ignoring)")}return r}(e,t);var r=g(e,k.ns_ttp,"timeBase");null!==r&&"media"!==r&&F(t,"Unsupported time base");var i=function(e,t){var n=g(e,k.ns_tts,"extent");if(null===n)return null;var r=n.split(" ");if(2!==r.length)return v(t,"Malformed extent (ignoring)"),null;var i=j.parseLength(r[0]),a=j.parseLength(r[1]);return a&&i?{h:a,w:i}:(v(t,"Malformed extent values (ignoring)"),null)}(e,t);null===i?this.pxDimensions={h:480,w:640}:("px"===i.h.unit&&"px"===i.w.unit||F(t,"Extent on TT must be in px or absent"),this.pxDimensions={h:i.h.value,w:i.w.value})},y.prototype._registerEvent=function(e){if(!(e.end<=e.begin)){var t=E(this.events,e.begin);if(t.found||this.events.splice(t.index,0,e.begin),e.end!==Number.POSITIVE_INFINITY){var n=E(this.events,e.end);n.found||this.events.splice(n.index,0,e.end)}}},y.prototype.getMediaTimeRange=function(){return[this.events[0],this.events[this.events.length-1]]},y.prototype.getMediaTimeEvents=function(){return this.events},I.prototype.initFromNode=function(e,t){this.id=c(e),this.styleAttrs=p(e,t),this.styleRefs=h(e)},i.prototype.initFromNode=function(e,t,n,r){this.id=c(n)},a.prototype.initFromNode=function(e,t,n,r){this.regionID=function(e){return e&&"region"in e.attributes?e.attributes.region.value:""}(n)},o.prototype.initFromNode=function(e,t,n,r){this.styleAttrs=p(n,r),null!==e.head&&null!==e.head.styling&&_(e.head.styling,h(n),this.styleAttrs,r)},s.prototype.initFromNode=function(e,t,n,r){this.sets=[]},u.prototype.initFromNode=function(e,t,n,r){this.contents=[]},l.prototype.initFromNode=function(e,t,n,r){var i=function(e,t,n,r){var i=null;n&&"begin"in n.attributes&&null===(i=m(e.tickRate,e.effectiveFrameRate,n.attributes.begin.value))&&v(r,"Malformed begin value "+n.attributes.begin.value+" (using 0)");var a=null;n&&"dur"in n.attributes&&null===(a=m(e.tickRate,e.effectiveFrameRate,n.attributes.dur.value))&&v(r,"Malformed dur value "+n.attributes.dur.value+" (ignoring)");var o=null;return n&&"end"in n.attributes&&null===(o=m(e.tickRate,e.effectiveFrameRate,n.attributes.end.value))&&v(r,"Malformed end value (ignoring)"),{explicit_begin:i,explicit_end:o,explicit_dur:a}}(e,0,n,r);this.explicit_begin=i.explicit_begin,this.explicit_end=i.explicit_end,this.explicit_dur=i.explicit_dur,this.timeContainer=function(e,t){var n=e&&"timeContainer"in e.attributes?e.attributes.timeContainer.value:null;return n&&"par"!==n?"seq"===n?"seq":(x(t,"Illegal value of timeContainer (assuming 'par')"),"par"):"par"}(n,r)},R.prototype.initFromNode=function(e,t,n){o.prototype.initFromNode.call(this,e,null,t,n),l.prototype.initFromNode.call(this,e,null,t,n),s.prototype.initFromNode.call(this,e,null,t,n),a.prototype.initFromNode.call(this,e,null,t,n),u.prototype.initFromNode.call(this,e,null,t,n)},w.prototype.initFromNode=function(e,t,n,r){o.prototype.initFromNode.call(this,e,t,n,r),l.prototype.initFromNode.call(this,e,t,n,r),s.prototype.initFromNode.call(this,e,t,n,r),a.prototype.initFromNode.call(this,e,t,n,r),u.prototype.initFromNode.call(this,e,t,n,r)},D.prototype.initFromNode=function(e,t,n,r){o.prototype.initFromNode.call(this,e,t,n,r),l.prototype.initFromNode.call(this,e,t,n,r),s.prototype.initFromNode.call(this,e,t,n,r),a.prototype.initFromNode.call(this,e,t,n,r),u.prototype.initFromNode.call(this,e,t,n,r)},N.prototype.initFromNode=function(e,t,n,r,i){o.prototype.initFromNode.call(this,e,t,n,i),l.prototype.initFromNode.call(this,e,t,n,i),s.prototype.initFromNode.call(this,e,t,n,i),a.prototype.initFromNode.call(this,e,t,n,i),u.prototype.initFromNode.call(this,e,t,n,i),this.space=r},d.prototype.initFromText=function(e,t,n,r,i){l.prototype.initFromNode.call(this,e,t,null,i),this.text=n,this.space=r},M.prototype.initFromNode=function(e,t,n,r){a.prototype.initFromNode.call(this,e,t,n,r),l.prototype.initFromNode.call(this,e,t,n,r)},O.prototype.createDefaultRegion=function(){var e=new O;return i.call(e,""),o.call(e,{}),s.call(e,[]),l.call(e,0,Number.POSITIVE_INFINITY,null),e},O.prototype.initFromNode=function(e,t,n){i.prototype.initFromNode.call(this,e,null,t,n),o.prototype.initFromNode.call(this,e,null,t,n),l.prototype.initFromNode.call(this,e,null,t,n),s.prototype.initFromNode.call(this,e,null,t,n),null!==e.head&&null!==e.head.styling&&_(e.head.styling,h(t),this.styleAttrs,n)},C.prototype.initFromNode=function(e,t,n,r){l.prototype.initFromNode.call(this,e,t,n,r);var i=p(n,r);for(var a in this.qname=null,this.value=null,i){if(this.qname){x(r,"More than one style specified on set");break}this.qname=a,this.value=i[a]}}},{16:16,17:17,18:18,40:40}],13:[function(e,t,n){!function(e,t,b){function I(e,t,n){var r;if("region"===n.kind?(r=document.createElement("div")).style.position="absolute":"body"===n.kind?r=document.createElement("div"):"div"===n.kind?r=document.createElement("div"):"p"===n.kind?r=document.createElement("p"):"span"===n.kind?r=document.createElement("span"):"br"===n.kind&&(r=document.createElement("br")),r){for(var i in r.style.margin="0",D){var a=D[i],o=n.styleAttrs[a.qname];void 0!==o&&null!==a.map&&a.map(e,r,n,o)}var s=r;if("region"===n.kind){var u=n.styleAttrs[b.byName.writingMode.qname];"lrtb"===u||"lr"===u?(e.ipd="lr",e.bpd="tb"):"rltb"===u||"rl"===u?(e.ipd="rl",e.bpd="tb"):"tblr"===u?(e.ipd="tb",e.bpd="lr"):"tbrl"!==u&&"tb"!==u||(e.ipd="tb",e.bpd="rl")}var l=n.styleAttrs[b.byName.linePadding.qname];if(l&&0<l){var f=Math.ceil(l*e.h)+"px";"tb"===e.bpd?(s.style.paddingLeft=f,s.style.paddingRight=f):(s.style.paddingTop=f,s.style.paddingBottom=f),e.lp=l}var d=n.styleAttrs[b.byName.multiRowAlign.qname];if(d&&"auto"!==d){var c=document.createElement("span");c.style.display="inline-block",c.style.textAlign=d,r.appendChild(c),s=c,e.mra=d}if(n.styleAttrs[b.byName.fillLineGap.qname]&&(e.flg=!0),"span"===n.kind&&n.text)if(e.lp||e.mra||e.flg)for(var h="",p=0;p<n.text.length;p++){h+=n.text.charAt(p);var g=n.text.charCodeAt(p);if(g<55296||56319<g||p===n.text.length){var m=document.createElement("span");m.textContent=h,r.appendChild(m),h=""}}else r.textContent=n.text;for(var _ in t.appendChild(r),n.contents)I(e,s,n.contents[_]);var v=[];if((e.lp||e.mra||e.flg)&&"p"===n.kind&&(w(e,s,v,null),e.mra&&(function(e){for(var t=0;t<e.length-1;t++){var n=e[t].elements.length;if(0!==n&&!1===e[t].br){var r=document.createElement("br"),i=e[t].elements[n-1].node;i.parentElement.insertBefore(r,i.nextSibling)}}}(v),e.mra=null),e.lp&&(function(e,t,n){for(var r in e){var i=e[r].elements.length,a=e[r].elements[e[r].start_elem],o=e[r].elements[e[r].end_elem],s=Math.ceil(t)+"px",u="-"+Math.ceil(t)+"px";0!==i&&("lr"===n.ipd?(a.node.style.borderLeftColor=a.bgcolor||"#00000000",a.node.style.borderLeftStyle="solid",a.node.style.borderLeftWidth=s,a.node.style.marginLeft=u):"rl"===n.ipd?(a.node.style.borderRightColor=a.bgcolor||"#00000000",a.node.style.borderRightStyle="solid",a.node.style.borderRightWidth=s,a.node.style.marginRight=u):"tb"===n.ipd&&(a.node.style.borderTopColor=a.bgcolor||"#00000000",a.node.style.borderTopStyle="solid",a.node.style.borderTopWidth=s,a.node.style.marginTop=u),"lr"===n.ipd?(o.node.style.borderRightColor=o.bgcolor||"#00000000",o.node.style.borderRightStyle="solid",o.node.style.borderRightWidth=s,o.node.style.marginRight=u):"rl"===n.ipd?(o.node.style.borderLeftColor=o.bgcolor||"#00000000",o.node.style.borderLeftStyle="solid",o.node.style.borderLeftWidth=s,o.node.style.marginLeft=u):"tb"===n.ipd&&(o.node.style.borderBottomColor=o.bgcolor||"#00000000",o.node.style.borderBottomStyle="solid",o.node.style.borderBottomWidth=s,o.node.style.marginBottom=u))}}(v,e.lp*e.h,e),e.lp=null),e.flg)){var E=R(s.getBoundingClientRect(),e);!function(e,t,n,r){for(var i=Math.sign(n-t),a=0;a<=e.length;a++){var o,s,u;if(o=0===a?t:a===e.length?n:(e[a].before+e[a-1].after)/2,0<a)for(var l=0;l<e[a-1].elements.length;l++)null!==e[a-1].elements[l].bgcolor&&(u=e[a-1].elements[l],i*(u.after-o)<0&&(s=Math.ceil(Math.abs(o-u.after))+"px",u.node.style.backgroundColor=u.bgcolor,"lr"===r.bpd?u.node.style.paddingRight=s:"rl"===r.bpd?u.node.style.paddingLeft=s:"tb"===r.bpd&&(u.node.style.paddingBottom=s)));if(a<e.length)for(var f=0;f<e[a].elements.length;f++)null!==(u=e[a].elements[f]).bgcolor&&0<i*(u.before-o)&&(s=Math.ceil(Math.abs(u.before-o))+"px",u.node.style.backgroundColor=u.bgcolor,"lr"===r.bpd?u.node.style.paddingLeft=s:"rl"===r.bpd?u.node.style.paddingRight=s:"tb"===r.bpd&&(u.node.style.paddingTop=s))}}(v,E.before,E.after,e),e.flg=null}if("region"===n.kind&&(w(e,s,v),"tb"===e.bpd&&e.enableRollUp&&0<n.contents.length&&"after"===n.styleAttrs[b.byName.displayAlign.qname])){var T=new S(""===n.id?"_":n.id,v);if(e.currentISDState[T.id]=T,e.previousISDState&&T.id in e.previousISDState&&0<e.previousISDState[T.id].plist.length&&1<T.plist.length&&T.plist[T.plist.length-2].text===e.previousISDState[T.id].plist[e.previousISDState[T.id].plist.length-1].text){var y=r.firstElementChild,A=T.plist[T.plist.length-1].after-T.plist[T.plist.length-1].before;y.style.bottom="-"+A+"px",y.style.transition="transform 0.4s",y.style.position="relative",y.style.transform="translateY(-"+A+"px)"}}}else!function(e,t){if(e&&e.error&&e.error(t))throw t}(e.errorHandler,"Error processing ISD element kind: "+n.kind)}function S(e,t){this.id=e,this.plist=t}function R(e,t){var n={before:null,after:null,start:null,end:null};return"tb"===t.bpd?(n.before=e.top,n.after=e.bottom,"lr"===t.ipd?(n.start=e.left,n.end=e.right):(n.start=e.right,n.end=e.left)):"lr"===t.bpd?(n.before=e.left,n.after=e.right,n.start=e.top,n.end=e.bottom):"rl"===t.bpd&&(n.before=e.right,n.after=e.left,n.start=e.top,n.end=e.bottom),n}function w(e,t,n,r){var i=t.style.backgroundColor||r;if(0===t.childElementCount)if("span"===t.localName){var a=t.getBoundingClientRect();if(0===a.height||0===a.width)return;var o=R(a,e);if(0!==n.length&&function(e,t,n,r){return t<r&&n<e||r<=t&&e<=n}(o.before,o.after,n[n.length-1].before,n[n.length-1].after)){var s=Math.sign(o.after-o.before),u=Math.sign(o.end-o.start);s*(o.before-n[n.length-1].before)<0&&(n[n.length-1].before=o.before),0<s*(o.after-n[n.length-1].after)&&(n[n.length-1].after=o.after),u*(o.start-n[n.length-1].start)<0&&(n[n.length-1].start=o.start,n[n.length-1].start_elem=n[n.length-1].elements.length),0<u*(o.end-n[n.length-1].end)&&(n[n.length-1].end=o.end,n[n.length-1].end_elem=n[n.length-1].elements.length)}else n.push({before:o.before,after:o.after,start:o.start,end:o.end,start_elem:0,end_elem:0,elements:[],text:"",br:!1});n[n.length-1].text+=t.textContent,n[n.length-1].elements.push({node:t,bgcolor:i,before:o.before,after:o.after})}else"br"===t.localName&&0!==n.length&&(n[n.length-1].br=!0);else for(var l=t.firstChild;l;)l.nodeType===Node.ELEMENT_NODE&&w(e,l,n,i),l=l.nextSibling}function n(e,t){this.qname=e,this.map=t}e.render=function(e,t,n,r,i,a,o,s,u){var l=r||t.clientHeight,f=i||t.clientWidth;if(null!==e.aspectRatio){var d=l*e.aspectRatio;f<d?l=Math.round(f/e.aspectRatio):f=d}var c=document.createElement("div");c.style.position="relative",c.style.width=f+"px",c.style.height=l+"px",c.style.margin="auto",c.style.top=0,c.style.bottom=0,c.style.left=0,c.style.right=0,c.style.zIndex=0;var h={h:l,w:f,regionH:null,regionW:null,imgResolver:n,displayForcedOnlyMode:a||!1,isd:e,errorHandler:o,previousISDState:s,enableRollUp:u||!1,currentISDState:{},flg:null,lp:null,mra:null,ipd:null,bpd:null};for(var p in t.appendChild(c),e.contents)I(h,c,e.contents[p]);return h.currentISDState};var D=[new n("http://www.w3.org/ns/ttml#styling backgroundColor",function(e,t,n,r){0!==r[3]&&(t.style.backgroundColor="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")")}),new n("http://www.w3.org/ns/ttml#styling color",function(e,t,n,r){t.style.color="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")"}),new n("http://www.w3.org/ns/ttml#styling direction",function(e,t,n,r){t.style.direction=r}),new n("http://www.w3.org/ns/ttml#styling display",function(e,t,n,r){}),new n("http://www.w3.org/ns/ttml#styling displayAlign",function(e,t,n,r){t.style.display="flex",t.style.flexDirection="column","before"===r?t.style.justifyContent="flex-start":"center"===r?t.style.justifyContent="center":"after"===r&&(t.style.justifyContent="flex-end")}),new n("http://www.w3.org/ns/ttml#styling extent",function(e,t,n,r){e.regionH=r.h*e.h,e.regionW=r.w*e.w;var i=0,a=0,o=n.styleAttrs["http://www.w3.org/ns/ttml#styling padding"];o&&(i=(o[0]+o[2])*e.h,a=(o[1]+o[3])*e.w),t.style.height=e.regionH-i+"px",t.style.width=e.regionW-a+"px"}),new n("http://www.w3.org/ns/ttml#styling fontFamily",function(e,t,n,r){var i=[];for(var a in r)"monospaceSerif"===r[a]?(i.push("Courier New"),i.push('"Liberation Mono"'),i.push("Courier"),i.push("monospace")):"proportionalSansSerif"===r[a]?(i.push("Arial"),i.push("Helvetica"),i.push('"Liberation Sans"'),i.push("sans-serif")):"monospace"===r[a]?i.push("monospace"):"sansSerif"===r[a]?i.push("sans-serif"):"serif"===r[a]?i.push("serif"):"monospaceSansSerif"===r[a]?(i.push("Consolas"),i.push("monospace")):"proportionalSerif"===r[a]?i.push("serif"):i.push(r[a]);t.style.fontFamily=i.join(",")}),new n("http://www.w3.org/ns/ttml#styling fontSize",function(e,t,n,r){t.style.fontSize=r*e.h+"px"}),new n("http://www.w3.org/ns/ttml#styling fontStyle",function(e,t,n,r){t.style.fontStyle=r}),new n("http://www.w3.org/ns/ttml#styling fontWeight",function(e,t,n,r){t.style.fontWeight=r}),new n("http://www.w3.org/ns/ttml#styling lineHeight",function(e,t,n,r){t.style.lineHeight="normal"===r?"normal":r*e.h+"px"}),new n("http://www.w3.org/ns/ttml#styling opacity",function(e,t,n,r){t.style.opacity=r}),new n("http://www.w3.org/ns/ttml#styling origin",function(e,t,n,r){t.style.top=r.h*e.h+"px",t.style.left=r.w*e.w+"px"}),new n("http://www.w3.org/ns/ttml#styling overflow",function(e,t,n,r){t.style.overflow=r}),new n("http://www.w3.org/ns/ttml#styling padding",function(e,t,n,r){var i=[];i[0]=r[0]*e.h+"px",i[1]=r[3]*e.w+"px",i[2]=r[2]*e.h+"px",i[3]=r[1]*e.w+"px",t.style.padding=i.join(" ")}),new n("http://www.w3.org/ns/ttml#styling showBackground",null),new n("http://www.w3.org/ns/ttml#styling textAlign",function(e,t,n,r){var i,a=n.styleAttrs[b.byName.direction.qname];i="start"===r?"rtl"===a?"right":"left":"end"===r?"rtl"===a?"left":"right":r,t.style.textAlign=i}),new n("http://www.w3.org/ns/ttml#styling textDecoration",function(e,t,n,r){t.style.textDecoration=r.join(" ").replace("lineThrough","line-through")}),new n("http://www.w3.org/ns/ttml#styling textOutline",function(e,t,n,r){t.style.textShadow="none"===r?"":"rgba("+r.color[0].toString()+","+r.color[1].toString()+","+r.color[2].toString()+","+(r.color[3]/255).toString()+") 0px 0px "+r.thickness*e.h+"px"}),new n("http://www.w3.org/ns/ttml#styling unicodeBidi",function(e,t,n,r){var i;i="bidiOverride"===r?"bidi-override":r,t.style.unicodeBidi=i}),new n("http://www.w3.org/ns/ttml#styling visibility",function(e,t,n,r){t.style.visibility=r}),new n("http://www.w3.org/ns/ttml#styling wrapOption",function(e,t,n,r){"wrap"===r?"preserve"===n.space?t.style.whiteSpace="pre-wrap":t.style.whiteSpace="normal":"preserve"===n.space?t.style.whiteSpace="pre":t.style.whiteSpace="noWrap"}),new n("http://www.w3.org/ns/ttml#styling writingMode",function(e,t,n,r){"lrtb"===r||"lr"===r?t.style.writingMode="horizontal-tb":"rltb"===r||"rl"===r?t.style.writingMode="horizontal-tb":"tblr"===r?t.style.writingMode="vertical-lr":"tbrl"!==r&&"tb"!==r||(t.style.writingMode="vertical-rl")}),new n("http://www.w3.org/ns/ttml#styling zIndex",function(e,t,n,r){t.style.zIndex=r}),new n("http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt backgroundImage",function(e,t,n,r){if(null!==e.imgResolver&&null!==r){var i=document.createElement("img"),a=e.imgResolver(r,i);a&&(i.src=a),i.height=e.regionH,i.width=e.regionW,t.appendChild(i)}}),new n("http://www.w3.org/ns/ttml/profile/imsc1#styling forcedDisplay",function(e,t,n,r){e.displayForcedOnlyMode&&!1===r&&(t.style.visibility="hidden")})],r={};for(var i in D)r[D[i].qname]=D[i]}(void 0===n?this.imscHTML={}:n,"undefined"==typeof imscNames?e(16):imscNames,"undefined"==typeof imscStyles?e(17):imscStyles)},{16:16,17:17}],14:[function(e,t,n){function L(e,t,n,r,i,a,o,s,u){if(t<o.begin||t>=o.end)return null;var l="regionID"in o&&""!==o.regionID?o.regionID:a;if(null!==i&&l!==n.id&&(!("contents"in o)||"contents"in o&&0===o.contents.length||""!==l))return null;var f=new x(o);for(var d in o.sets)t<o.sets[d].begin||t>=o.sets[d].end||(f.styleAttrs[o.sets[d].qname]=o.sets[d].value);var c,h={};for(var p in f.styleAttrs)if(h[p]=!0,p===U.byName.writingMode.qname&&!(U.byName.direction.qname in f.styleAttrs)){var g=f.styleAttrs[p];"lrtb"===g||"lr"===g?f.styleAttrs[U.byName.direction.qname]="ltr":"rltb"!==g&&"rl"!==g||(f.styleAttrs[U.byName.direction.qname]="rtl")}if(null!==i)for(var m in U.all){var _=U.all[m];if(_.qname===U.byName.textDecoration.qname){var v=i.styleAttrs[_.qname],E=f.styleAttrs[_.qname],T=[];void 0===E?T=v:-1===E.indexOf("none")?((-1===E.indexOf("noUnderline")&&-1!==v.indexOf("underline")||-1!==E.indexOf("underline"))&&T.push("underline"),(-1===E.indexOf("noLineThrough")&&-1!==v.indexOf("lineThrough")||-1!==E.indexOf("lineThrough"))&&T.push("lineThrough"),(-1===E.indexOf("noOverline")&&-1!==v.indexOf("overline")||-1!==E.indexOf("overline"))&&T.push("overline")):T.push("none"),f.styleAttrs[_.qname]=T}else _.inherit&&_.qname in i.styleAttrs&&!(_.qname in f.styleAttrs)&&(f.styleAttrs[_.qname]=i.styleAttrs[_.qname])}for(var y in U.all){var A=U.all[y];A.qname in f.styleAttrs||("region"===f.kind||!1===A.inherit&&null!==A.initial)&&(f.styleAttrs[A.qname]=A.parse(A.initial),h[A.qname]=!0)}for(var b in U.all){var I=U.all[b];if(I.qname in h&&null!==I.compute){var S=I.compute(e,i,f,f.styleAttrs[I.qname],u);null!==S?f.styleAttrs[I.qname]=S:F(s,"Style '"+I.qname+"' on element '"+f.kind+"' cannot be computed")}}if("none"===f.styleAttrs[U.byName.display.qname])return null;for(var R in null===i?c=null===r?[]:[r]:"contents"in o&&(c=o.contents),c){var w=L(e,t,n,r,f,l,c[R],s,u);null!==w&&f.contents.push(w.element)}for(var D in f.styleAttrs){-1===U.byQName[D].applies.indexOf(f.kind)&&delete f.styleAttrs[D]}if("span"===f.kind&&f.text&&"default"===f.space){var N=f.text.replace(/\s+/g," ");f.text=N}if("p"===f.kind){var M=[];!function e(t,n){if("contents"in t)for(var r in t.contents)e(t.contents[r],n);else n.push(t)}(f,M);for(var O=0,C="after_br",P=0;;)if("after_br"===C)O>=M.length||"br"===M[O].kind?(C="before_br",P=O,O--):("preserve"!==M[O].space&&(M[O].text=M[O].text.replace(/^\s+/g,"")),0<M[O].text.length?(C="looking_br",O++):M.splice(O,1));else if("before_br"===C)if(O<0||"br"===M[O].kind){if(C="after_br",(O=P+1)>=M.length)break}else if("preserve"!==M[O].space&&(M[O].text=M[O].text.replace(/\s+$/g,"")),0<M[O].text.length){if(C="after_br",(O=P+1)>=M.length)break}else M.splice(O,1),O--;else O>=M.length||"br"===M[O].kind?(C="before_br",P=O,O--):O++;!function e(t){{if("br"===t.kind)return!1;if("text"in t)return 0===t.text.length;if("contents"in t){for(var n=t.contents.length;n--;)e(t.contents[n])&&t.contents.splice(n,1);return 0===t.contents.length}}}(f)}return"div"===f.kind&&U.byName.backgroundImage.qname in f.styleAttrs||"br"===f.kind||"contents"in f&&0<f.contents.length||"span"===f.kind&&null!==f.text||"region"===f.kind&&"always"===f.styleAttrs[U.byName.showBackground.qname]?{region_id:l,element:f}:null}function s(e){this.contents=[],this.aspectRatio=e.aspectRatio}function x(e){for(var t in this.kind=e.kind||"region",e.id&&(this.id=e.id),this.styleAttrs={},e.styleAttrs)this.styleAttrs[t]=e.styleAttrs[t];"text"in e?this.text=e.text:"br"!==e.kind&&(this.contents=[]),"space"in e&&(this.space=e.space)}function F(e,t){if(e&&e.error&&e.error(t))throw t}var r,U;r=void 0===n?this.imscISD={}:n,"undefined"==typeof imscNames?e(16):imscNames,U="undefined"==typeof imscStyles?e(17):imscStyles,r.generateISD=function(e,t,n){var r=new s(e),i={};for(var a in e.head.layout.regions){var o=L(e,t,e.head.layout.regions[a],e.body,null,"",e.head.layout.regions[a],n,i);null!==o&&r.contents.push(o.element)}return r}},{16:16,17:17}],15:[function(e,t,n){n.generateISD=e(14).generateISD,n.fromXML=e(12).fromXML,n.renderHTML=e(13).render},{12:12,13:13,14:14}],16:[function(e,t,n){var r;(r=void 0===n?this.imscNames={}:n).ns_tt="http://www.w3.org/ns/ttml",r.ns_tts="http://www.w3.org/ns/ttml#styling",r.ns_ttp="http://www.w3.org/ns/ttml#parameter",r.ns_xml="http://www.w3.org/XML/1998/namespace",r.ns_itts="http://www.w3.org/ns/ttml/profile/imsc1#styling",r.ns_ittp="http://www.w3.org/ns/ttml/profile/imsc1#parameter",r.ns_smpte="http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt",r.ns_ebutts="urn:ebu:tt:style"},{}],17:[function(e,t,n){!function(l,e,a){function t(e,t,n,r,i,a,o,s){this.name=t,this.ns=e,this.qname=e+" "+t,this.inherit=i,this.animatable=a,this.initial=n,this.applies=r,this.parse=o,this.compute=s}for(var n in l.all=[new t(e.ns_tts,"backgroundColor","transparent",["body","div","p","region","span"],!1,!0,a.parseColor,null),new t(e.ns_tts,"color","white",["span"],!0,!0,a.parseColor,null),new t(e.ns_tts,"direction","ltr",["p","span"],!0,!0,function(e){return e},null),new t(e.ns_tts,"display","auto",["body","div","p","region","span"],!1,!0,function(e){return e},null),new t(e.ns_tts,"displayAlign","before",["region"],!1,!0,function(e){return e},null),new t(e.ns_tts,"extent","auto",["tt","region"],!1,!0,function(e){if("auto"===e)return e;var t=e.split(" ");if(2!==t.length)return null;var n=a.parseLength(t[0]),r=a.parseLength(t[1]);return r&&n?{h:r,w:n}:null},function(e,t,n,r,i){var a,o;if("auto"===r)a=1;else if("%"===r.h.unit)a=r.h.value/100;else{if("px"!==r.h.unit)return null;a=r.h.value/e.pxDimensions.h}if("auto"===r)o=1;else if("%"===r.w.unit)o=r.w.value/100;else{if("px"!==r.w.unit)return null;o=r.w.value/e.pxDimensions.w}return{h:a,w:o}}),new t(e.ns_tts,"fontFamily","default",["span"],!0,!0,function(e){var t=e.split(","),n=[];for(var r in t)"'"!==t[r].charAt(0)&&'"'!==t[r].charAt(0)&&"default"===t[r]?n.push("monospaceSerif"):n.push(t[r]);return n},null),new t(e.ns_tts,"fontSize","1c",["span"],!0,!0,a.parseLength,function(e,t,n,r,i){var a;if("%"===r.unit)a=null!==t?t.styleAttrs[l.byName.fontSize.qname]*r.value/100:r.value/100/e.cellResolution.h;else if("em"===r.unit)a=null!==t?t.styleAttrs[l.byName.fontSize.qname]*r.value:r.value/e.cellResolution.h;else if("c"===r.unit)a=r.value/e.cellResolution.h;else{if("px"!==r.unit)return null;a=r.value/e.pxDimensions.h}return a}),new t(e.ns_tts,"fontStyle","normal",["span"],!0,!0,function(e){return e},null),new t(e.ns_tts,"fontWeight","normal",["span"],!0,!0,function(e){return e},null),new t(e.ns_tts,"lineHeight","normal",["p"],!0,!0,function(e){return"normal"===e?e:a.parseLength(e)},function(e,t,n,r,i){var a;if("normal"===r)a=r;else if("%"===r.unit)a=n.styleAttrs[l.byName.fontSize.qname]*r.value/100;else if("em"===r.unit)a=n.styleAttrs[l.byName.fontSize.qname]*r.value;else if("c"===r.unit)a=r.value/e.cellResolution.h;else{if("px"!==r.unit)return null;a=r.value/e.pxDimensions.h}return a}),new t(e.ns_tts,"opacity",1,["region"],!1,!0,parseFloat,null),new t(e.ns_tts,"origin","auto",["region"],!1,!0,function(e){if("auto"===e)return e;var t=e.split(" ");if(2!==t.length)return null;var n=a.parseLength(t[0]),r=a.parseLength(t[1]);return r&&n?{h:r,w:n}:null},function(e,t,n,r,i){var a,o;if("auto"===r)a=0;else if("%"===r.h.unit)a=r.h.value/100;else{if("px"!==r.h.unit)return null;a=r.h.value/e.pxDimensions.h}if("auto"===r)o=0;else if("%"===r.w.unit)o=r.w.value/100;else{if("px"!==r.w.unit)return null;o=r.w.value/e.pxDimensions.w}return{h:a,w:o}}),new t(e.ns_tts,"overflow","hidden",["region"],!1,!0,function(e){return e},null),new t(e.ns_tts,"padding","0px",["region"],!1,!0,function(e){var t=e.split(" ");if(4<t.length)return null;var n=[];for(var r in t){var i=a.parseLength(t[r]);if(!i)return null;n.push(i)}return n},function(e,t,n,r,i){var a;if(1===r.length)a=[r[0],r[0],r[0],r[0]];else if(2===r.length)a=[r[0],r[1],r[0],r[1]];else if(3===r.length)a=[r[0],r[1],r[2],r[1]];else{if(4!==r.length)return null;a=[r[0],r[1],r[2],r[3]]}var o=n.styleAttrs[l.byName.writingMode.qname];if("lrtb"===o||"lr"===o)a=[a[0],a[3],a[2],a[1]];else if("rltb"===o||"rl"===o)a=[a[0],a[1],a[2],a[3]];else if("tblr"===o)a=[a[3],a[0],a[1],a[2]];else{if("tbrl"!==o&&"tb"!==o)return null;a=[a[3],a[2],a[1],a[0]]}var s=[];for(var u in a)if(0===a[u].value)s[u]=0;else if("%"===a[u].unit)s[u]="0"===u||"2"===u?n.styleAttrs[l.byName.extent.qname].h*a[u].value/100:n.styleAttrs[l.byName.extent.qname].w*a[u].value/100;else if("em"===a[u].unit)s[u]=n.styleAttrs[l.byName.fontSize.qname]*a[u].value;else if("c"===a[u].unit)s[u]=a[u].value/e.cellResolution.h;else{if("px"!==a[u].unit)return null;s[u]="0"===u||"2"===u?a[u].value/e.pxDimensions.h:a[u].value/e.pxDimensions.w}return s}),new t(e.ns_tts,"showBackground","always",["region"],!1,!0,function(e){return e},null),new t(e.ns_tts,"textAlign","start",["p"],!0,!0,function(e){return e},function(e,t,n,r,i){return"left"===r?"start":"right"===r?"end":r}),new t(e.ns_tts,"textDecoration","none",["span"],!0,!0,function(e){return e.split(" ")},null),new t(e.ns_tts,"textOutline","none",["span"],!0,!0,function(e){if("none"===e)return e;var t={},n=e.split(" ");if(0===n.length||2<n.length)return null;var r=a.parseColor(n[0]);if(null!==(t.color=r)&&n.shift(),1!==n.length)return null;var i=a.parseLength(n[0]);return i?(t.thickness=i,t):null},function(e,t,n,r,i){if("none"===r)return r;var a={};if(null===r.color?a.color=n.styleAttrs[l.byName.color.qname]:a.color=r.color,"%"===r.thickness.unit)a.thickness=n.styleAttrs[l.byName.fontSize.qname]*r.thickness.value/100;else if("em"===r.thickness.unit)a.thickness=n.styleAttrs[l.byName.fontSize.qname]*r.thickness.value;else if("c"===r.thickness.unit)a.thickness=r.thickness.value/e.cellResolution.h;else{if("px"!==r.thickness.unit)return null;a.thickness=r.thickness.value/e.pxDimensions.h}return a}),new t(e.ns_tts,"unicodeBidi","normal",["span","p"],!1,!0,function(e){return e},null),new t(e.ns_tts,"visibility","visible",["body","div","p","region","span"],!0,!0,function(e){return e},null),new t(e.ns_tts,"wrapOption","wrap",["span"],!0,!0,function(e){return e},null),new t(e.ns_tts,"writingMode","lrtb",["region"],!1,!0,function(e){return e},null),new t(e.ns_tts,"zIndex","auto",["region"],!1,!0,function(e){var t;return"auto"===e?t=e:(t=parseInt(e),isNaN(t)&&(t=null)),t},null),new t(e.ns_ebutts,"linePadding","0c",["p"],!0,!1,a.parseLength,function(e,t,n,r,i){return"c"===r.unit?r.value/e.cellResolution.h:null}),new t(e.ns_ebutts,"multiRowAlign","auto",["p"],!0,!1,function(e){return e},null),new t(e.ns_smpte,"backgroundImage",null,["div"],!1,!1,function(e){return e},null),new t(e.ns_itts,"forcedDisplay","false",["body","div","p","region","span"],!0,!0,function(e){return"true"===e},null),new t(e.ns_itts,"fillLineGap","false",["p"],!0,!0,function(e){return"true"===e},null)],l.byQName={},l.all)l.byQName[l.all[n].qname]=l.all[n];for(var r in l.byName={},l.all)l.byName[l.all[r].name]=l.all[r]}(void 0===n?this.imscStyles={}:n,"undefined"==typeof imscNames?e(16):imscNames,"undefined"==typeof imscUtils?e(18):imscUtils)},{16:16,18:18}],18:[function(e,t,n){!function(e){var i=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/,a=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,o=/rgba\(\s*(\d+),\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,s={transparent:[0,0,0,0],black:[0,0,0,255],silver:[192,192,192,255],gray:[128,128,128,255],white:[255,255,255,255],maroon:[128,0,0,255],red:[255,0,0,255],purple:[128,0,128,255],fuchsia:[255,0,255,255],magenta:[255,0,255,255],green:[0,128,0,255],lime:[0,255,0,255],olive:[128,128,0,255],yellow:[255,255,0,255],navy:[0,0,128,255],blue:[0,0,255,255],teal:[0,128,128,255],aqua:[0,255,255,255],cyan:[0,255,255,255]};e.parseColor=function(e){var t,n=null,r=s[e.toLowerCase()];return void 0!==r?n=r:null!==(t=i.exec(e))?n=[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),void 0!==t[4]?parseInt(t[4],16):255]:null!==(t=a.exec(e))?n=[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),255]:null!==(t=o.exec(e))&&(n=[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseInt(t[4])]),n};var r=/^((?:\+|\-)?\d*(?:\.\d+)?)(px|em|c|%)$/;e.parseLength=function(e){var t,n=null;return null!==(t=r.exec(e))&&(n={value:parseFloat(t[1]),unit:t[2]}),n}}(void 0===n?this.imscUtils={}:n)},{}],19:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],20:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],21:[function(e,t,n){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,n)});case 4:return s.nextTick(function(){e.call(null,t,n,r)});default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return s.nextTick(function(){e.apply(null,i)})}}}:t.exports=s}).call(this,e(22))},{22:22}],22:[function(e,t,n){var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,f=[],d=!1,c=-1;function h(){d&&l&&(d=!1,l.length?f=l.concat(f):c=-1,f.length&&p())}function p(){if(!d){var e=u(h);d=!0;for(var t=f.length;t;){for(l=f,f=[];++c<t;)l&&l[c].run();c=-1,t=f.length}l=null,d=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new g(e,t)),1!==f.length||d||u(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],23:[function(e,t,n){t.exports=e(24)},{24:24}],24:[function(e,t,n){"use strict";var r=e(21),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=d;var a=e(32);a.inherits=e(33);var o=e(26),s=e(28);a.inherits(d,o);for(var u=i(s.prototype),l=0;l<u.length;l++){var f=u[l];d.prototype[f]||(d.prototype[f]=s.prototype[f])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{21:21,26:26,28:28,32:32,33:33}],25:[function(e,t,n){"use strict";t.exports=a;var r=e(27),i=e(32);function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=e(33),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},{27:27,32:32,33:33}],26:[function(P,L,e){(function(g,e){"use strict";var m=P(21);L.exports=c;var o,_=P(20);c.ReadableState=a;function v(e,t){return e.listeners(t).length}P(9).EventEmitter;var i=P(31),s=P(39).Buffer,u=e.Uint8Array||function(){};var t=P(32);t.inherits=P(33);var n=P(6),E=void 0;E=n&&n.debuglog?n.debuglog("stream"):function(){};var l,f=P(29),r=P(30);t.inherits(c,i);var d=["error","close","destroy","pause","resume"];function a(e,t){e=e||{};var n=t instanceof(o=o||P(24));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l=l||P(34).StringDecoder,this.decoder=new l(e.encoding),this.encoding=e.encoding)}function c(e){if(o=o||P(24),!(this instanceof c))return new c(e);this._readableState=new a(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function h(e,t,n,r,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,A(e)}(e,o)):(i||(a=function(e,t){var n;(function(e){return s.isBuffer(e)||e instanceof u})(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&0<t.length?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):p(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?p(e,o,t,!1):I(e,o)):p(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function p(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&A(e)),I(e,t)}Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),c.prototype.destroy=r.destroy,c.prototype._undestroy=r.undestroy,c.prototype._destroy=function(e,t){this.push(null),t(e)},c.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),h(this,e,t,!1,n)},c.prototype.unshift=function(e){return h(this,e,null,!0,!1)},c.prototype.isPaused=function(){return!1===this._readableState.flowing},c.prototype.setEncoding=function(e){return l=l||P(34).StringDecoder,this._readableState.decoder=new l(e),this._readableState.encoding=e,this};var T=8388608;function y(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return T<=e?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(E("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?m.nextTick(b,e):b(e))}function b(e){E("emit readable"),e.emit("readable"),D(e)}function I(e,t){t.readingMore||(t.readingMore=!0,m.nextTick(S,e,t))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(E("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function R(e){E("readable nexttick read 0"),e.read(0)}function w(e,t){t.reading||(E("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(E("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=a.slice(o);break}++r}return t.length-=r,i}(e,t):function(e,t){var n=s.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=a.slice(o);break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function M(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,m.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}c.prototype.read=function(e){E("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return E("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):A(this),null;if(0===(e=y(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return E("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&E("length less than watermark",i=!0),t.ended||t.reading?E("reading or ended",i=!1):i&&(E("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=y(n,t))),null===(r=0<e?N(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},c.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},c.prototype.pipe=function(n,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,E("pipe count=%d opts=%j",i.pipesCount,e);var t=(!e||!1!==e.end)&&n!==g.stdout&&n!==g.stderr?o:p;function a(e,t){E("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,E("cleanup"),n.removeListener("close",c),n.removeListener("finish",h),n.removeListener("drain",s),n.removeListener("error",d),n.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",p),r.removeListener("data",f),u=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||s())}function o(){E("onend"),n.end()}i.endEmitted?m.nextTick(t):r.once("end",t),n.on("unpipe",a);var s=function(t){return function(){var e=t._readableState;E("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&v(t,"data")&&(e.flowing=!0,D(t))}}(r);n.on("drain",s);var u=!1;var l=!1;function f(e){E("ondata"),(l=!1)!==n.write(e)||l||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==C(i.pipes,n))&&!u&&(E("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,l=!0),r.pause())}function d(e){E("onerror",e),p(),n.removeListener("error",d),0===v(n,"error")&&n.emit("error",e)}function c(){n.removeListener("finish",h),p()}function h(){E("onfinish"),n.removeListener("close",c),p()}function p(){E("unpipe"),r.unpipe(n)}return r.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?_(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(n,"error",d),n.once("close",c),n.once("finish",h),n.emit("pipe",r),i.flowing||(E("pipe resume"),r.resume()),n},c.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var o=C(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},c.prototype.addListener=c.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&A(this):m.nextTick(R,this))}return n},c.prototype.resume=function(){var e=this._readableState;return e.flowing||(E("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,m.nextTick(w,e,t))}(this,e)),this},c.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this},c.prototype.wrap=function(t){var n=this,r=this._readableState,i=!1;for(var e in t.on("end",function(){if(E("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),t.on("data",function(e){E("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e||(r.objectMode||e&&e.length)&&(n.push(e)||(i=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var a=0;a<d.length;a++)t.on(d[a],this.emit.bind(this,d[a]));return this._read=function(e){E("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(c.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),c._fromList=N}).call(this,P(22),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{20:20,21:21,22:22,24:24,29:29,30:30,31:31,32:32,33:33,34:34,39:39,6:6,9:9}],27:[function(e,t,n){"use strict";t.exports=a;var r=e(24),i=e(32);function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,(n.writecb=null)!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var n=this;"function"==typeof this._flush?this._flush(function(e,t){s(n,e,t)}):s(this,null,null)}function s(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e(33),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},{24:24,32:32,33:33}],28:[function(b,I,e){(function(e,t,n){"use strict";var s=b(21);function d(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}I.exports=m;var u,l=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?n:s.nextTick;m.WritableState=g;var r=b(32);r.inherits=b(33);var i={deprecate:b(45)},a=b(31),f=b(39).Buffer,o=t.Uint8Array||function(){};var c,h=b(30);function p(){}function g(e,t){u=u||b(24),e=e||{};var n=t instanceof u;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=e.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(s.nextTick(i,r),s.nextTick(A,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),A(e,t))}(e,n,r,t,i);else{var a=T(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),r?l(v,e,n,a,i):v(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new d(this)}function m(e){if(u=u||b(24),!(c.call(m,this)||this instanceof u))return new m(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function _(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function v(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),A(e,t)}function E(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var o=0,s=!0;n;)(i[o]=n).isBuf||(s=!1),n=n.next,o+=1;i.allBuffers=s,_(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new d(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(_(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function y(t,n){t._final(function(e){n.pendingcb--,e&&t.emit("error",e),n.prefinished=!0,t.emit("prefinish"),A(t,n)})}function A(e,t){var n=T(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,s.nextTick(y,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}r.inherits(m,a),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===m&&(e&&e._writableState instanceof g)}})):c=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&function(e){return f.isBuffer(e)||e instanceof o}(e);return a&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),t=a?"buffer":t||r.defaultEncoding,"function"!=typeof n&&(n=p),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),s.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),s.nextTick(r,a),i=!1),i}(this,r,e,n))&&(r.pendingcb++,i=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else _(e,t,!1,s,r,i,a);return u}(this,r,a,e,t,n)),i},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||E(this,e))},m.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,t=e=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,A(e,t),n&&(t.finished?s.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,b(22),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b(44).setImmediate)},{21:21,22:22,24:24,30:30,31:31,32:32,33:33,39:39,44:44,45:45}],29:[function(e,t,n){"use strict";var s=e(39).Buffer,r=e(6);function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.head=null,this.tail=null,this.length=0}t.exports=(i.prototype.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},i.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},i.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},i.prototype.concat=function(e){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var t,n,r,i=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,n=i,r=o,t.copy(n,r),o+=a.data.length,a=a.next;return i},i),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},{39:39,6:6}],30:[function(e,t,n){"use strict";var a=e(21);function o(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||a.nextTick(o,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(a.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{21:21}],31:[function(e,t,n){t.exports=e(9).EventEmitter},{9:9}],32:[function(e,t,n){(function(e){function t(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===t(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===t(e)},n.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e.isBuffer}).call(this,{isBuffer:e(19)})},{19:19}],33:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;function n(){}n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],34:[function(e,t,n){"use strict";var r=e(39).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=d,t=3;break;default:return this.write=c,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function f(e,t){var n=(e.length-t)%3;return 0==n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1==n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function c(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}(n.StringDecoder=a).prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(0<=i)return 0<i&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(0<=(i=o(t[r])))return 0<i&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(0<=(i=o(t[r])))return 0<i&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{39:39}],35:[function(e,t,n){t.exports=e(36).PassThrough},{36:36}],36:[function(e,t,n){(((n=t.exports=e(26)).Stream=n).Readable=n).Writable=e(28),n.Duplex=e(24),n.Transform=e(27),n.PassThrough=e(25)},{24:24,25:25,26:26,27:27,28:28}],37:[function(e,t,n){t.exports=e(36).Transform},{36:36}],38:[function(e,t,n){t.exports=e(28)},{28:28}],39:[function(e,t,n){var r=e(7),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(a(r,n),n.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{7:7}],40:[function(V,e,t){(function(H){!function(u){u.parser=function(e,t){return new i(e,t)},u.SAXParser=i,u.SAXStream=o,u.createStream=function(e,t){return new o(e,t)},u.MAX_BUFFER_LENGTH=65536;var r,l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,t){if(!(this instanceof i))return new i(e,t);var n=this;!function(e){for(var t=0,n=l.length;t<n;t++)e[l[t]]=""}(n),n.q=n.c="",n.bufferCheckPosition=u.MAX_BUFFER_LENGTH,n.opt=t||{},n.opt.lowercase=n.opt.lowercase||n.opt.lowercasetags,n.looseCase=n.opt.lowercase?"toLowerCase":"toUpperCase",n.tags=[],n.closed=n.closedRoot=n.sawRoot=!1,n.tag=n.error=null,n.strict=!!e,n.noscript=!(!e&&!n.opt.noscript),n.state=S.BEGIN,n.strictEntities=n.opt.strictEntities,n.ENTITIES=n.strictEntities?Object.create(u.XML_ENTITIES):Object.create(u.ENTITIES),n.attribList=[],n.opt.xmlns&&(n.ns=Object.create(m)),n.trackPosition=!1!==n.opt.position,n.trackPosition&&(n.position=n.line=n.column=0),w(n,"onready")}u.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),i.prototype={end:function(){C(this)},write:function(e){var t=this;if(this.error)throw this.error;if(t.closed)return O(t,"Cannot write after close. Assign an onready handler.");if(null===e)return C(t);"object"==typeof e&&(e=e.toString());var n=0,r="";for(;r=j(e,n++),t.c=r;)switch(t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++),t.state){case S.BEGIN:if(t.state=S.BEGIN_WHITESPACE,"\ufeff"===r)continue;G(t,r);continue;case S.BEGIN_WHITESPACE:G(t,r);continue;case S.TEXT:if(t.sawRoot&&!t.closedRoot){for(var i=n-1;r&&"<"!==r&&"&"!==r;)(r=j(e,n++))&&t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(i,n-1)}"<"!==r||t.sawRoot&&t.closedRoot&&!t.strict?(!A(f,r)||t.sawRoot&&!t.closedRoot||P(t,"Text data outside of root node."),"&"===r?t.state=S.TEXT_ENTITY:t.textNode+=r):(t.state=S.OPEN_WAKA,t.startTagPosition=t.position);continue;case S.SCRIPT:"<"===r?t.state=S.SCRIPT_ENDING:t.script+=r;continue;case S.SCRIPT_ENDING:"/"===r?t.state=S.CLOSE_TAG:(t.script+="<"+r,t.state=S.SCRIPT);continue;case S.OPEN_WAKA:if("!"===r)t.state=S.SGML_DECL,t.sgmlDecl="";else if(y(f,r));else if(y(_,r))t.state=S.OPEN_TAG,t.tagName=r;else if("/"===r)t.state=S.CLOSE_TAG,t.tagName="";else if("?"===r)t.state=S.PROC_INST,t.procInstName=t.procInstBody="";else{if(P(t,"Unencoded <"),t.startTagPosition+1<t.position){var a=t.position-t.startTagPosition;r=new Array(a).join(" ")+r}t.textNode+="<"+r,t.state=S.TEXT}continue;case S.SGML_DECL:(t.sgmlDecl+r).toUpperCase()===h?(D(t,"onopencdata"),t.state=S.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+r==="--"?(t.state=S.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+r).toUpperCase()===p?(t.state=S.DOCTYPE,(t.doctype||t.sawRoot)&&P(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===r?(D(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=S.TEXT):(y(d,r)&&(t.state=S.SGML_DECL_QUOTED),t.sgmlDecl+=r);continue;case S.SGML_DECL_QUOTED:r===t.q&&(t.state=S.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case S.DOCTYPE:">"===r?(t.state=S.TEXT,D(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=S.DOCTYPE_DTD:y(d,r)&&(t.state=S.DOCTYPE_QUOTED,t.q=r));continue;case S.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=S.DOCTYPE:y(d,r)&&(t.state=S.DOCTYPE_DTD_QUOTED,t.q=r);continue;case S.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=S.DOCTYPE_DTD,t.q="");continue;case S.COMMENT:"-"===r?t.state=S.COMMENT_ENDING:t.comment+=r;continue;case S.COMMENT_ENDING:"-"===r?(t.state=S.COMMENT_ENDED,t.comment=M(t.opt,t.comment),t.comment&&D(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=S.COMMENT);continue;case S.COMMENT_ENDED:">"!==r?(P(t,"Malformed comment"),t.comment+="--"+r,t.state=S.COMMENT):t.state=S.TEXT;continue;case S.CDATA:"]"===r?t.state=S.CDATA_ENDING:t.cdata+=r;continue;case S.CDATA_ENDING:"]"===r?t.state=S.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=S.CDATA);continue;case S.CDATA_ENDING_2:">"===r?(t.cdata&&D(t,"oncdata",t.cdata),D(t,"onclosecdata"),t.cdata="",t.state=S.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=S.CDATA);continue;case S.PROC_INST:"?"===r?t.state=S.PROC_INST_ENDING:y(f,r)?t.state=S.PROC_INST_BODY:t.procInstName+=r;continue;case S.PROC_INST_BODY:if(!t.procInstBody&&y(f,r))continue;"?"===r?t.state=S.PROC_INST_ENDING:t.procInstBody+=r;continue;case S.PROC_INST_ENDING:">"===r?(D(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=S.TEXT):(t.procInstBody+="?"+r,t.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:y(v,r)?t.tagName+=r:(L(t),">"===r?U(t):"/"===r?t.state=S.OPEN_TAG_SLASH:(A(f,r)&&P(t,"Invalid character in tag name"),t.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:">"===r?(U(t,!0),B(t)):(P(t,"Forward-slash in opening tag not followed by >"),t.state=S.ATTRIB);continue;case S.ATTRIB:if(y(f,r))continue;">"===r?U(t):"/"===r?t.state=S.OPEN_TAG_SLASH:y(_,r)?(t.attribName=r,t.attribValue="",t.state=S.ATTRIB_NAME):P(t,"Invalid attribute name");continue;case S.ATTRIB_NAME:"="===r?t.state=S.ATTRIB_VALUE:">"===r?(P(t,"Attribute without value"),t.attribValue=t.attribName,F(t),U(t)):y(f,r)?t.state=S.ATTRIB_NAME_SAW_WHITE:y(v,r)?t.attribName+=r:P(t,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=S.ATTRIB_VALUE;else{if(y(f,r))continue;P(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",D(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?U(t):y(_,r)?(t.attribName=r,t.state=S.ATTRIB_NAME):(P(t,"Invalid attribute name"),t.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(y(f,r))continue;y(d,r)?(t.q=r,t.state=S.ATTRIB_VALUE_QUOTED):(P(t,"Unquoted attribute value"),t.state=S.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case S.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=S.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}F(t),t.q="",t.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:y(f,r)?t.state=S.ATTRIB:">"===r?U(t):"/"===r?t.state=S.OPEN_TAG_SLASH:y(_,r)?(P(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=S.ATTRIB_NAME):P(t,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(A(c,r)){"&"===r?t.state=S.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}F(t),">"===r?U(t):t.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(t.tagName)">"===r?B(t):y(v,r)?t.tagName+=r:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=S.SCRIPT):(A(f,r)&&P(t,"Invalid tagname in closing tag"),t.state=S.CLOSE_TAG_SAW_WHITE);else{if(y(f,r))continue;A(_,r)?t.script?(t.script+="</"+r,t.state=S.SCRIPT):P(t,"Invalid tagname in closing tag."):t.tagName=r}continue;case S.CLOSE_TAG_SAW_WHITE:if(y(f,r))continue;">"===r?B(t):P(t,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var o,s;switch(t.state){case S.TEXT_ENTITY:o=S.TEXT,s="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:o=S.ATTRIB_VALUE_QUOTED,s="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:o=S.ATTRIB_VALUE_UNQUOTED,s="attribValue"}";"===r?(t[s]+=k(t),t.entity="",t.state=o):y(t.entity.length?T:E,r)?t.entity+=r:(P(t,"Invalid character in entity name"),t[s]+="&"+t.entity+r,t.entity="",t.state=o);continue;default:throw new Error(t,"Unknown state: "+t.state)}t.position>=t.bufferCheckPosition&&function(e){for(var t=Math.max(u.MAX_BUFFER_LENGTH,10),n=0,r=0,i=l.length;r<i;r++){var a=e[l[r]].length;if(t<a)switch(l[r]){case"textNode":N(e);break;case"cdata":D(e,"oncdata",e.cdata),e.cdata="";break;case"script":D(e,"onscript",e.script),e.script="";break;default:O(e,"Max buffer length exceeded: "+l[r])}n=Math.max(n,a)}var o=u.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=o+e.position}(t);return t},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function(e){N(e),""!==e.cdata&&(D(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(D(e,"onscript",e.script),e.script="")}(this)}};try{r=V(41).Stream}catch(e){r=function(){}}var a=u.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});function o(e,t){if(!(this instanceof o))return new o(e,t);r.apply(this),this._parser=new i(e,t),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(e){n.emit("error",e),n._parser.error=null},this._decoder=null,a.forEach(function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e;n.on(t,e)},enumerable:!0,configurable:!1})})}(o.prototype=Object.create(r.prototype,{constructor:{value:o}})).write=function(e){if("function"==typeof H&&"function"==typeof H.isBuffer&&H.isBuffer(e)){if(!this._decoder){var t=V(43).StringDecoder;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},o.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},o.prototype.on=function(t,e){var n=this;return n._parser["on"+t]||-1===a.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),r.prototype.on.call(n,t,e)};var f="\r\n\t ",e="0124356789",t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",d="'\"",c=f+">",h="[CDATA[",p="DOCTYPE",s="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/2000/xmlns/",m={xml:s,xmlns:g};f=n(f),e=n(e),t=n(t);var _=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,T=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;function n(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}function y(e,t){return function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}(e)?!!t.match(e):e[t]}function A(e,t){return!y(e,t)}d=n(d),c=n(c);var b,I,S=0;for(var R in u.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},u.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},u.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(u.ENTITIES).forEach(function(e){var t=u.ENTITIES[e],n="number"==typeof t?String.fromCharCode(t):t;u.ENTITIES[e]=n}),u.STATE)u.STATE[u.STATE[R]]=R;function w(e,t,n){e[t]&&e[t](n)}function D(e,t,n){e.textNode&&N(e),w(e,t,n)}function N(e){e.textNode=M(e.opt,e.textNode),e.textNode&&w(e,"ontext",e.textNode),e.textNode=""}function M(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function O(e,t){return N(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,w(e,"onerror",t),e}function C(e){return e.sawRoot&&!e.closedRoot&&P(e,"Unclosed root tag"),e.state!==S.BEGIN&&e.state!==S.BEGIN_WHITESPACE&&e.state!==S.TEXT&&O(e,"Unexpected end"),N(e),e.c="",e.closed=!0,w(e,"onend"),i.call(e,e.strict,e.opt),e}function P(e,t){if("object"!=typeof e||!(e instanceof i))throw new Error("bad call to strictFail");e.strict&&O(e,t)}function L(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,D(e,"onopentagstart",n)}function x(e,t){var n=e.indexOf(":")<0?["",e]:e.split(":"),r=n[0],i=n[1];return t&&"xmlns"===e&&(r="xmlns",i=""),{prefix:r,local:i}}function F(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=x(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==s)P(e,"xml: prefix must be bound to "+s+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==g)P(e,"xmlns: prefix must be bound to "+g+"\nActual: "+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,D(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function U(t,e){if(t.opt.xmlns){var n=t.tag,r=x(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(P(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){D(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var a=0,o=t.attribList.length;a<o;a++){var s=t.attribList[a],u=s[0],l=s[1],f=x(u,!0),d=f.prefix,c=f.local,h=""===d?"":n.ns[d]||"",p={name:u,value:l,prefix:d,local:c,uri:h};d&&"xmlns"!==d&&!h&&(P(t,"Unbound namespace prefix: "+JSON.stringify(d)),p.uri=d),t.tag.attributes[u]=p,D(t,"onattribute",p)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),D(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=S.TEXT:t.state=S.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function B(n){if(!n.tagName)return P(n,"Weird empty close tag."),n.textNode+="</>",void(n.state=S.TEXT);if(n.script){if("script"!==n.tagName)return n.script+="</"+n.tagName+">",n.tagName="",void(n.state=S.SCRIPT);D(n,"onscript",n.script),n.script=""}var e=n.tags.length,t=n.tagName;n.strict||(t=t[n.looseCase]());for(var r=t;e--;){if(n.tags[e].name===r)break;P(n,"Unexpected close tag")}if(e<0)return P(n,"Unmatched closing tag: "+n.tagName),n.textNode+="</"+n.tagName+">",void(n.state=S.TEXT);n.tagName=t;for(var i=n.tags.length;i-- >e;){var a=n.tag=n.tags.pop();n.tagName=n.tag.name,D(n,"onclosetag",n.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var u=n.tags[n.tags.length-1]||n;n.opt.xmlns&&a.ns!==u.ns&&Object.keys(a.ns).forEach(function(e){var t=a.ns[e];D(n,"onclosenamespace",{prefix:e,uri:t})})}0===e&&(n.closedRoot=!0),n.tagName=n.attribValue=n.attribName="",n.attribList.length=0,n.state=S.TEXT}function k(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:("#"===(n=r).charAt(0)&&(i="x"===n.charAt(1)?(n=n.slice(2),(t=parseInt(n,16)).toString(16)):(n=n.slice(1),(t=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),i.toLowerCase()!==n?(P(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function G(e,t){"<"===t?(e.state=S.OPEN_WAKA,e.startTagPosition=e.position):A(f,t)&&(P(e,"Non-whitespace before first tag."),e.textNode=t,e.state=S.TEXT)}function j(e,t){var n="";return t<e.length&&(n=e.charAt(t)),n}function q(){var e,t,n=[],r=-1,i=arguments.length;if(!i)return"";for(var a="";++r<i;){var o=Number(arguments[r]);if(!isFinite(o)||o<0||1114111<o||I(o)!==o)throw RangeError("Invalid code point: "+o);o<=65535?n.push(o):(e=55296+((o-=65536)>>10),t=o%1024+56320,n.push(e,t)),(r+1===i||16384<n.length)&&(a+=b.apply(null,n),n.length=0)}return a}S=u.STATE,String.fromCodePoint||(b=String.fromCharCode,I=Math.floor,Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:q,configurable:!0,writable:!0}):String.fromCodePoint=q)}(void 0===t?this.sax={}:t)}).call(this,V(7).Buffer)},{41:41,43:43,7:7}],41:[function(e,t,n){t.exports=r;var f=e(9).EventEmitter;function r(){f.call(this)}e(42)(r,f),r.Readable=e(36),r.Writable=e(38),r.Duplex=e(23),r.Transform=e(37),r.PassThrough=e(35),(r.Stream=r).prototype.pipe=function(t,e){var n=this;function r(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",i),t._isStdio||e&&!1===e.end||(n.on("end",o),n.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function u(e){if(l(),0===f.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",o),n.removeListener("close",s),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),t.removeListener("close",l)}return n.on("error",u),t.on("error",u),n.on("end",l),n.on("close",l),t.on("close",l),t.emit("pipe",n),t}},{23:23,35:35,36:36,37:37,38:38,42:42,9:9}],42:[function(e,t,n){arguments[4][33][0].apply(n,arguments)},{33:33}],43:[function(e,t,n){arguments[4][34][0].apply(n,arguments)},{34:34,39:39}],44:[function(u,e,l){(function(e,t){var r=u(22).nextTick,n=Function.prototype.apply,i=Array.prototype.slice,a={},o=0;function s(e,t){this._id=e,this._clearFn=t}l.setTimeout=function(){return new s(n.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new s(n.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof e?e:function(e){var t=o++,n=!(arguments.length<2)&&i.call(arguments,1);return a[t]=!0,r(function(){a[t]&&(n?e.apply(null,n):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof t?t:function(e){delete a[e]}}).call(this,u(44).setImmediate,u(44).clearImmediate)},{22:22,44:44}],45:[function(e,t,n){(function(n){function r(e){try{if(!n.localStorage)return!1}catch(e){return!1}var t=n.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],46:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(47)),h=r(e(55)),a=r(e(48)),o=r(e(49)),p=1,g=2,m=3,_=4,v=5;function s(){var e,t=this.context,s=(0,i.default)(t).getInstance(),u=(0,o.default)(t).getInstance(),l=[],f=void 0,d=void 0,c=void 0;function n(e){return e&&e.bind?e.bind(window.console):window.console.log.bind(window.console)}function r(e,t){var n="",r=null;f&&(r=(new Date).getTime(),n+="["+(r-c)+"]"),d&&t&&t.getClassName&&(n+="["+t.getClassName()+"]",t.getType&&(n+="["+t.getType()+"]")),0<n.length&&(n+=" ");for(var i=arguments.length,a=Array(2<i?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];Array.apply(null,a).forEach(function(e){n+=e+" "}),l[e]&&u.get().debug.logLevel>=e&&l[e](n),s.trigger(h.default.LOG,{message:n,level:e})}return e={getLogger:function(e){return{fatal:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(void 0,[p,this].concat(t))}.bind(e),error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(void 0,[g,this].concat(t))}.bind(e),warn:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(void 0,[m,this].concat(t))}.bind(e),info:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(void 0,[_,this].concat(t))}.bind(e),debug:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(void 0,[v,this].concat(t))}.bind(e)}},setLogTimestampVisible:function(e){f=e},setCalleeNameVisible:function(e){d=e},setLogLevel:function(e){var t={debug:{logLevel:e}};u.update(t)},getLogLevel:function(){return u.get().debug.logLevel}},d=f=!0,c=(new Date).getTime(),"undefined"!=typeof window&&window.console&&(l[p]=n(window.console.error),l[g]=n(window.console.error),l[m]=n(window.console.warn),l[_]=n(window.console.info),l[v]=n(window.console.debug)),e}s.__dashjs_factory_name="Debug";var u=a.default.getSingletonFactory(s);u.LOG_LEVEL_NONE=0,u.LOG_LEVEL_FATAL=p,u.LOG_LEVEL_ERROR=g,u.LOG_LEVEL_WARNING=m,u.LOG_LEVEL_INFO=_,u.LOG_LEVEL_DEBUG=v,a.default.updateSingletonFactory(s.__dashjs_factory_name,u),n.default=u,t.exports=n.default},{47:47,48:48,49:49,55:55}],47:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){var a={};function o(e,n,r){var i=-1;return a[e]&&a[e].some(function(e,t){if(e&&e.callback===n&&(!r||r===e.scope))return i=t,!0}),i}return{on:function(n,e,t){var r=arguments.length<=3||void 0===arguments[3]?0:arguments[3];if(!n)throw new Error("event type cannot be null or undefined");if(!e||"function"!=typeof e)throw new Error("listener must be a function: "+e);if(!(0<=o(n,e,t))){a[n]=a[n]||[];var i={callback:e,scope:t,priority:r};a[n].some(function(e,t){if(e&&r>e.priority)return a[n].splice(t,0,i),!0})||a[n].push(i)}},off:function(e,t,n){if(e&&t&&a[e]){var r=o(e,t,n);r<0||(a[e][r]=null)}},trigger:function(e,t){if(e&&a[e]){if((t=t||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");t.type=e,a[e]=a[e].filter(function(e){return e}),a[e].forEach(function(e){return e&&e.callback.call(e.scope,t)})}},reset:function(){a={}}}}o.__dashjs_factory_name="EventBus";var s=a.default.getSingletonFactory(o);s.EVENT_PRIORITY_LOW=0,s.EVENT_PRIORITY_HIGH=5e3,a.default.updateSingletonFactory(o.__dashjs_factory_name,s),n.default=s,t.exports=n.default},{48:48}],48:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u,a,r,i,o=(u=void 0,a=[],r={},i={},u={extend:function(e,t,n,r){!r[e]&&t&&(r[e]={instance:t,override:n})},getSingletonInstance:s,setSingletonInstance:function(e,t,n){for(var r in a){var i=a[r];if(i.context===e&&i.name===t)return void(a[r].instance=n)}a.push({name:t,context:e,instance:n})},getSingletonFactory:function(n){var e=l(n.__dashjs_factory_name,r);return e||(e=function(e){var t=void 0;return void 0===e&&(e={}),{getInstance:function(){return(t=t||s(e,n.__dashjs_factory_name))||(t=d(n,e,arguments),a.push({name:n.__dashjs_factory_name,context:e,instance:t})),t}}},r[n.__dashjs_factory_name]=e),e},getSingletonFactoryByName:function(e){return l(e,r)},updateSingletonFactory:function(e,t){f(e,t,r)},getClassFactory:function(t){var e=l(t.__dashjs_factory_name,i);return e||(e=function(e){return void 0===e&&(e={}),{create:function(){return d(t,e,arguments)}}},i[t.__dashjs_factory_name]=e),e},getClassFactoryByName:function(e){return l(e,i)},updateClassFactory:function(e,t){f(e,t,i)}});function s(e,t){for(var n in a){var r=a[n];if(r.context===e&&r.name===t)return r.instance}return null}function l(e,t){return t[e]}function f(e,t,n){e in n&&(n[e]=t)}function d(e,t,n){var r=void 0,i=e.__dashjs_factory_name,a=t[i];if(a){var o=a.instance;if(!a.override)return o.apply({context:t,factory:u},n);for(var s in r=e.apply({context:t},n),o=o.apply({context:t,factory:u,parent:r},n))r.hasOwnProperty(s)&&(r[s]=o[s])}else r=e.apply({context:t},n);return r.getClassName=function(){return i},r}n.default=o,t.exports=n.default},{}],49:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(n,"__esModule",{value:!0});var a=r(e(48)),o=r(e(50)),s=r(e(46)),u=r(e(107)),l=e(189);function f(){var e,t,n={debug:{logLevel:s.default.LOG_LEVEL_WARNING},streaming:{metricsMaxListDepth:1e3,abandonLoadTimeout:1e4,liveDelayFragmentCount:4,liveDelay:null,scheduleWhilePaused:!0,fastSwitchEnabled:!1,bufferPruningInterval:10,bufferToKeep:20,bufferAheadToKeep:80,jumpGaps:!0,smallGapLimit:1.5,stableBufferTime:12,bufferTimeAtTopQuality:30,bufferTimeAtTopQualityLongForm:60,longFormContentDurationThreshold:600,wallclockTimeUpdateInterval:50,lowLatencyEnabled:!1,keepProtectionMediaKeys:!1,useManifestDateHeaderTimeSource:!0,useSuggestedPresentationDelay:!1,manifestUpdateRetryInterval:100,liveCatchUpMinDrift:.02,liveCatchUpMaxDrift:0,liveCatchUpPlaybackRate:.5,lastBitrateCachingInfo:{enabled:!0,ttl:36e4},lastMediaSettingsCachingInfo:{enabled:!0,ttl:36e4},cacheLoadThresholds:{video:50,audio:5},retryIntervals:(e={},i(e,l.HTTPRequest.MPD_TYPE,500),i(e,l.HTTPRequest.XLINK_EXPANSION_TYPE,500),i(e,l.HTTPRequest.MEDIA_SEGMENT_TYPE,1e3),i(e,l.HTTPRequest.INIT_SEGMENT_TYPE,1e3),i(e,l.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,1e3),i(e,l.HTTPRequest.INDEX_SEGMENT_TYPE,1e3),i(e,l.HTTPRequest.OTHER_TYPE,1e3),e),retryAttempts:(t={},i(t,l.HTTPRequest.MPD_TYPE,3),i(t,l.HTTPRequest.XLINK_EXPANSION_TYPE,1),i(t,l.HTTPRequest.MEDIA_SEGMENT_TYPE,3),i(t,l.HTTPRequest.INIT_SEGMENT_TYPE,3),i(t,l.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,3),i(t,l.HTTPRequest.INDEX_SEGMENT_TYPE,3),i(t,l.HTTPRequest.OTHER_TYPE,3),t),abr:{movingAverageMethod:u.default.MOVING_AVERAGE_SLIDING_WINDOW,ABRStrategy:u.default.ABR_STRATEGY_DYNAMIC,bandwidthSafetyFactor:.9,useDefaultABRRules:!0,useBufferOccupancyABR:!1,useDeadTimeLatency:!0,limitBitrateByPortal:!1,usePixelRatioInLimitBitrateByPortal:!1,maxBitrate:{audio:-1,video:-1},minBitrate:{audio:-1,video:-1},maxRepresentationRatio:{audio:1,video:1},initialBitrate:{audio:-1,video:-1},initialRepresentationRatio:{audio:-1,video:-1},autoSwitchBitrate:{audio:!0,video:!0}}}},r=o.default.clone(n);return{get:function(){return r},update:function(e){"object"==typeof e&&!function e(t,n,r){for(var i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&("object"==typeof t[i]?e(t[i],n[i],r.slice()+i+"."):n[i]=o.default.clone(t[i]))}(e,r,"")},reset:function(){r=o.default.clone(n)}}}f.__dashjs_factory_name="Settings";var d=a.default.getSingletonFactory(f);n.default=d,t.exports=n.default},{107:107,189:189,46:46,48:48,50:50}],50:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(o,null,[{key:"mixin",value:function(e,t,n){var r=void 0,i={};if(e)for(var a in t)t.hasOwnProperty(a)&&(r=t[a],a in e&&(e[a]===r||a in i&&i[a]===r)||("object"==typeof e[a]&&null!==e[a]?e[a]=o.mixin(e[a],r,n):e[a]=n(r)));return e}},{key:"clone",value:function(e){if(!e||"object"!=typeof e)return e;var t=void 0;if(e instanceof Array){t=[];for(var n=0,r=e.length;n<r;++n)n in e&&t.push(o.clone(e[n]))}else t={};return o.mixin(t,e,o.clone)}}]),o);function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o)}n.default=i,t.exports=n.default},{}],51:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getVersionString=function(){return r};var r="3.0.0"},{}],52:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(53);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(a.prototype),"constructor",this).call(this),this.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE=10,this.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE=11,this.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE=12,this.SEGMENTS_UPDATE_FAILED_ERROR_CODE=13,this.SEGMENTS_UNAVAILABLE_ERROR_CODE=14,this.SEGMENT_BASE_LOADER_ERROR_CODE=15,this.TIME_SYNC_FAILED_ERROR_CODE=16,this.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE=17,this.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE=18,this.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=19,this.APPEND_ERROR_CODE=20,this.REMOVE_ERROR_CODE=21,this.DATA_UPDATE_FAILED_ERROR_CODE=22,this.CAPABILITY_MEDIASOURCE_ERROR_CODE=23,this.CAPABILITY_MEDIAKEYS_ERROR_CODE=24,this.DOWNLOAD_ERROR_ID_MANIFEST_CODE=25,this.DOWNLOAD_ERROR_ID_SIDX_CODE=26,this.DOWNLOAD_ERROR_ID_CONTENT_CODE=27,this.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE=28,this.DOWNLOAD_ERROR_ID_XLINK_CODE=29,this.MANIFEST_ERROR_ID_CODEC_CODE=30,this.MANIFEST_ERROR_ID_PARSE_CODE=31,this.MANIFEST_ERROR_ID_NOSTREAMS_CODE=32,this.TIMED_TEXT_ERROR_ID_PARSE_CODE=33,this.MANIFEST_ERROR_ID_MULTIPLEXED_CODE=34,this.MEDIASOURCE_TYPE_UNSUPPORTED_CODE=35,this.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE="parsing failed for ",this.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading manifest: ",this.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading Xlink element: ",this.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE="Segments update failed",this.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE="no segments are available yet",this.SEGMENT_BASE_LOADER_ERROR_MESSAGE="error loading segments",this.TIME_SYNC_FAILED_ERROR_MESSAGE="Failed to synchronize time",this.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE="request is null",this.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE="Failed to resolve a valid URL",this.APPEND_ERROR_MESSAGE="chunk is not defined",this.REMOVE_ERROR_MESSAGE="buffer is not defined",this.DATA_UPDATE_FAILED_ERROR_MESSAGE="Data update failed",this.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE="mediasource is not supported",this.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE="mediakeys is not supported",this.TIMED_TEXT_ERROR_MESSAGE_PARSE="parsing error :",this.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE="Error creating source buffer of type : "}var o=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((r=i)&&r.__esModule?r:{default:r}).default),a);n.default=o,t.exports=n.default},{53:53}],53:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var i in e)!e.hasOwnProperty(i)||this[i]&&!n||r&&-1===e[i].indexOf("public_")||(this[i]=e[i])}}}]),a);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}n.default=i,t.exports=n.default},{}],54:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(56),a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,((r=i)&&r.__esModule?r:{default:r}).default),o);function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.BUFFERING_COMPLETED="bufferingCompleted",this.BUFFER_CLEARED="bufferCleared",this.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",this.BYTES_APPENDED="bytesAppended",this.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",this.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",this.CURRENT_TRACK_CHANGED="currentTrackChanged",this.DATA_UPDATE_COMPLETED="dataUpdateCompleted",this.DATA_UPDATE_STARTED="dataUpdateStarted",this.INITIALIZATION_LOADED="initializationLoaded",this.INIT_FRAGMENT_LOADED="initFragmentLoaded",this.INIT_REQUESTED="initRequested",this.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",this.LIVE_EDGE_SEARCH_COMPLETED="liveEdgeSearchCompleted",this.LOADING_COMPLETED="loadingCompleted",this.LOADING_PROGRESS="loadingProgress",this.LOADING_DATA_PROGRESS="loadingDataProgress",this.LOADING_ABANDONED="loadingAborted",this.MANIFEST_UPDATED="manifestUpdated",this.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",this.QUOTA_EXCEEDED="quotaExceeded",this.REPRESENTATION_UPDATED="representationUpdated",this.SEGMENTS_LOADED="segmentsLoaded",this.SERVICE_LOCATION_BLACKLIST_ADD="serviceLocationBlacklistAdd",this.SERVICE_LOCATION_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",this.SOURCEBUFFER_REMOVE_COMPLETED="sourceBufferRemoveCompleted",this.STREAMS_COMPOSED="streamsComposed",this.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",this.STREAM_COMPLETED="streamCompleted",this.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",this.TIMED_TEXT_REQUESTED="timedTextRequested",this.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",this.URL_RESOLUTION_FAILED="urlResolutionFailed",this.VIDEO_CHUNK_RECEIVED="videoChunkReceived",this.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",this.XLINK_ELEMENT_LOADED="xlinkElementLoaded",this.XLINK_READY="xlinkReady"}n.default=a,t.exports=n.default},{56:56}],55:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(54);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(a.prototype),"constructor",this).apply(this,arguments)}var o=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((r=i)&&r.__esModule?r:{default:r}).default),a);n.default=o,t.exports=n.default},{54:54}],56:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var i in e)!e.hasOwnProperty(i)||this[i]&&!n||r&&-1===e[i].indexOf("public_")||(this[i]=e[i])}}}]),a);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}n.default=i,t.exports=n.default},{}],57:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var h=r(e(62)),p=r(e(93)),g=r(e(89)),m=r(e(95)),_=r(e(88)),w=r(e(86)),i=r(e(48)),D=r(e(65));function a(){var e,v=void 0,E=void 0,T=void 0,l=void 0,y=void 0,i=void 0,t=this.context;function a(e){return e&&e.streamInfo&&void 0!==e.streamInfo.id&&T[e.streamInfo.id]?T[e.streamInfo.id][e.index]:null}function s(e,t,n){var r,i=E[0].mpd.manifest,a=v.getAdaptationsForType(i,e,t);if(!a||0===a.length)return null;if(1<a.length&&n){var o=f(n,t);if(l[n.id]&&l[n.id][t])for(var s=0,u=a.length;s<u;s++)if(l[n.id][t].isMediaInfoEqual(o[s]))return a[s];for(s=0,u=a.length;s<u;s++)if(r=a[s],v.getRolesForAdaptation(r).filter(function(e){return e.value===h.default.MAIN})[0])return a[s]}return a[0]}function f(e,t,n){var r,i=E,a=n,o=[],s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,c=void 0;if(a)R(),i=A(a);else{if(!(0<E.length))return o;a=E[0].mpd.manifest}var h=b(e,i);h&&(c=h.id);var p=v.getAdaptationsForType(a,e.index,t!==y.EMBEDDED_TEXT?t:y.VIDEO);if(!p||0===p.length)return o;for(T[c]=T[c]||v.getAdaptationsForPeriod(h),f=0,r=p.length;f<r;f++)if(s=p[f],l=v.getIndexForAdaptation(s,a,e.index),u=I(T[c][l]),t===y.EMBEDDED_TEXT){var g=u.accessibility.length;for(d=0;d<g;d++)if(u){var m=u.accessibility[d];if(0===m.indexOf("cea-608:")){var _=m.substring(8).split(";");if("CC"===_[0].substring(0,2))for(d=0;d<_.length;d++)S(u=u||I.call(this,T[c][l]),_[d].substring(0,3),_[d].substring(4)),o.push(u),u=null;else for(d=0;d<_.length;d++)S(u=u||I.call(this,T[c][l]),"CC"+(d+1),_[d]),o.push(u),u=null}else 0===m.indexOf("cea-608")&&(S(u,y.CC1,"eng"),o.push(u),u=null)}}else t===y.IMAGE?(u.type=y.IMAGE,o.push(u),u=null):u&&o.push(u);return o}function A(e){return n(r(e))}function n(e){var t=e||E[0].mpd;return v.getRegularPeriods(t)}function r(e){var t=e||E[0].mpd.manifest;return v.getMpd(t)}function o(){E=[],T={},l={}}function b(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r];if(e.id===i.id)return i}return null}function I(e){var t,r=new g.default,n=e.period.mpd.manifest.Period_asArray[e.period.index].AdaptationSet_asArray[e.index];return r.id=e.id,r.index=e.index,r.type=e.type,r.streamInfo=u(e.period),r.representationCount=v.getRepresentationCount(n),r.labels=v.getLabelsForAdaptation(n),r.lang=v.getLanguageForAdaptation(n),t=v.getViewpointForAdaptation(n),r.viewpoint=t?t.value:void 0,r.accessibility=v.getAccessibilityForAdaptation(n).map(function(e){var t=e.value,n=t;return e.schemeIdUri&&0<=e.schemeIdUri.search("cea-608")&&void 0!==i&&(n=t?"cea-608:"+t:"cea-608",r.embeddedCaptions=!0),n}),r.audioChannelConfiguration=v.getAudioChannelConfigurationForAdaptation(n).map(function(e){return e.value}),r.roles=v.getRolesForAdaptation(n).map(function(e){return e.value}),r.codec=v.getCodec(n),r.mimeType=v.getMimeType(n),r.contentProtection=v.getContentProtectionData(n),r.bitrateList=v.getBitrateListForAdaptation(n),r.contentProtection&&r.contentProtection.forEach(function(e){e.KID=v.getKID(e)}),r.isText=v.getIsTextTrack(r.mimeType),r}function S(e,t,n){e.id=t,e.index=100+parseInt(t.substring(2,3)),e.type=y.EMBEDDED_TEXT,e.codec="cea-608-in-SEI",e.isText=!0,e.isEmbedded=!0,e.lang=n,e.roles=["caption"]}function u(e){var t=new m.default;return t.id=e.id,t.index=e.index,t.start=e.start,t.duration=e.duration,t.manifestInfo=function(e){var t=new _.default;return t.DVRWindowSize=e.timeShiftBufferDepth,t.loadedTime=e.manifest.loadedTime,t.availableFrom=e.availabilityStartTime,t.minBufferTime=e.manifest.minBufferTime,t.maxFragmentDuration=e.maxSegmentDuration,t.duration=v.getDuration(e.manifest),t.isDynamic=v.getIsDynamic(e.manifest),t}(e.mpd),t.isLast=1===e.mpd.manifest.Period_asArray.length||Math.abs(t.start+t.duration-t.manifestInfo.duration)<1,t}function R(){if(!y)throw new Error("setConfig function has to be called previously")}function d(e){return 0===E.length?null:E[0].mpd.manifest.Period_asArray[e]}function c(e,t,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=void 0;if(e)for(r=e.AdaptationSet_asArray,o=0;o<r.length;o+=1)for(a=r[o].Representation_asArray,s=0;s<a.length;s+=1)if(t===(i=a[s]).id)return n?s:i;return null}return e={getBandwidthForRepresentation:function(e,t){var n;return(n=c(d(t),e))?n.bandwidth:null},getIndexForRepresentation:function(e,t){return function(e,t){var n=c(e,t,!0);return null!==n?n:-1}(d(t),e)},getMaxIndexForBufferType:function(e,t){return function(e,t){var n,r=void 0,i=void 0,a=void 0;if(!e||!t)return-1;for(n=e.AdaptationSet_asArray,a=0;a<n.length;a+=1)if(r=n[a],i=r.Representation_asArray,v.getIsTypeOf(r,t))return i.length;return-1}(d(t),e)},convertDataToRepresentationInfo:function(e){var t=new p.default,n=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index],r=v.getRepresentationFor(e.index,n);return t.id=e.id,t.quality=e.index,t.bandwidth=v.getBandwidth(r),t.DVRWindow=e.segmentAvailabilityRange,t.fragmentDuration=e.segmentDuration||(e.segments&&0<e.segments.length?e.segments[0].duration:NaN),t.MSETimeOffset=e.MSETimeOffset,t.useCalculatedLiveEdgeTime=e.useCalculatedLiveEdgeTime,t.mediaInfo=I(e.adaptation),t},getDataForMedia:a,getStreamsInfo:function(e,t){var n=[],r=E;e&&(R(),r=A(e)),t=t||r.length;for(var i=0;i<t;i++)n.push(u(r[i]));return n},getMediaInfoForType:function(e,t){if(0===E.length)return null;var n=E[0].mpd.manifest,r=s(e.index,t,e);if(!r)return null;var i=b(e,E),a=i.id,o=v.getIndexForAdaptation(r,n,e.index);return T[a]=T[a]||v.getAdaptationsForPeriod(i),I(T[a][o])},getAllMediaInfoForType:f,getAdaptationForType:s,getRealAdaptation:function(e,t){var n,r=void 0,i=b(e,E);return n=t?t.id:null,0<E.length&&(r=n?v.getAdaptationForId(n,E[0].mpd.manifest,i.index):v.getAdaptationForIndex(t.index,E[0].mpd.manifest,i.index)),r},getVoRepresentations:function(e){var t=a(e);return v.getRepresentationsForAdaptation(t)},getEventsFor:function(e,t){var n=[];if(0===E.length)return n;var r=E[0].mpd.manifest;return e instanceof m.default?n=v.getEventsForPeriod(b(e,E)):e instanceof g.default?n=v.getEventStreamForAdaptationSet(r,a(e)):e instanceof p.default&&(n=v.getEventStreamForRepresentation(r,t)),n},getEvent:function(e,t,n){if(!e||!t)return null;var r=new w.default,i=e.scheme_id_uri,a=e.value,o=e.timescale,s=e.presentation_time_delta,u=e.event_duration,l=e.id,f=e.message_data,d=n*o+s;return t[i+"/"+a]?(r.eventStream=t[i+"/"+a],r.eventStream.value=a,r.eventStream.timescale=o,r.duration=u,r.id=l,r.presentationTime=d,r.messageData=f,r.presentationTimeDelta=s,r):null},setConfig:function(e){e&&(e.constants&&(y=e.constants),e.cea608parser&&(i=e.cea608parser),e.errHandler&&v.setConfig({errHandler:e.errHandler}),e.BASE64&&v.setConfig({BASE64:e.BASE64}))},updatePeriods:function(e){if(!e)return null;R(),E=A(e),T={}},setCurrentMediaInfo:function(e,t,n){l[e]=l[e]||{},l[e][t]=l[e][t]||{},l[e][t]=n},getUseCalculatedLiveEdgeTimeForMediaInfo:function(e){var t=a(e);return v.getUseCalculatedLiveEdgeTimeForAdaptation(t)},getIsTextTrack:function(e){return v.getIsTextTrack(e)},getUTCTimingSources:function(){var e=E[0].mpd.manifest;return v.getUTCTimingSources(e)},getSuggestedPresentationDelay:function(){var e=E[0].mpd;return v.getSuggestedPresentationDelay(e)},getAvailabilityStartTime:function(e){var t=e||E[0].mpd;return v.getAvailabilityStartTime(t)},getIsDynamic:function(e){var t=e||E[0].mpd.manifest;return v.getIsDynamic(t)},getDuration:function(e){var t=e||E[0].mpd.manifest;return v.getDuration(t)},getRegularPeriods:n,getMpd:r,getLocation:function(e){return v.getLocation(e)},getManifestUpdatePeriod:function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1];return v.getManifestUpdatePeriod(e,t)},getIsDVB:function(e){return v.hasProfile(e,"urn:dvb:dash:profile:dvb-dash:2014")},getBaseURLsFromElement:function(e){return v.getBaseURLsFromElement(e)},getRepresentationSortFunction:function(){return v.getRepresentationSortFunction()},getCodec:function(e,t,n){return v.getCodec(e,t,n)},reset:o},v=(0,D.default)(t).getInstance(),o(),e}a.__dashjs_factory_name="DashAdapter",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{48:48,62:62,65:65,86:86,88:88,89:89,93:93,95:95}],58:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var R=r(e(62)),w=r(e(175)),D=r(e(173)),N=e(189),M=r(e(55)),O=r(e(47)),C=r(e(52)),i=r(e(48)),P=r(e(46)),L=r(e(168)),x=r(e(92)),F=e(80),U=r(e(64));function a(e){e=e||{};var t=this.context,l=(0,O.default)(t).getInstance(),o=(0,L.default)(t).getInstance(),f=e.timelineConverter,n=e.dashMetrics,s=e.baseURLController,r=void 0,d=void 0,c=void 0,h=void 0,p=void 0,i=void 0,a=void 0,g=void 0;function m(){return a?a.getType():null}function _(){var e=a?a.getStreamInfo():null;return e?e.manifestInfo.isDynamic:null}function v(){return a?a.getMediaInfo():null}function u(){c=-1,h=null}function E(){u(),i=0,g=a=p=null}function T(e,t,n){var r=s.resolve(n.path),i=void 0,a=void 0;return r&&t!==r.url&&o.isRelative(t)?(i=r.url,a=r.serviceLocation,t&&(i=o.resolve(t,i))):i=t,!o.isRelative(i)&&(e.url=i,e.serviceLocation=a,!0)}function y(e){f.setExpectedLiveEdge(e),n.updateManifestUpdateInfo({presentationStartTime:e})}function A(e){if(null==e)return null;var t=new w.default,n=e.representation,r=n.adaptation.period.mpd.manifest.Period_asArray[n.adaptation.period.index].AdaptationSet_asArray[n.adaptation.index].Representation_asArray[n.index].bandwidth,i=e.media;return i=(0,F.replaceTokenForTemplate)(i,"Number",e.replacementNumber),i=(0,F.replaceTokenForTemplate)(i,"Time",e.replacementTime),i=(0,F.replaceTokenForTemplate)(i,"Bandwidth",r),i=(0,F.replaceIDForTemplate)(i,n.id),i=(0,F.unescapeDollarsInTemplate)(i),t.mediaType=m(),t.type=N.HTTPRequest.MEDIA_SEGMENT_TYPE,t.range=e.mediaRange,t.startTime=e.presentationStartTime,t.duration=e.duration,t.timescale=n.timescale,t.availabilityStartTime=e.availabilityStartTime,t.availabilityEndTime=e.availabilityEndTime,t.wallStartTime=e.wallStartTime,t.quality=n.index,t.index=e.availabilityIdx,t.mediaInfo=v(),t.adaptationIndex=n.adaptation.index,t.representationId=n.id,T(t,i,n)?t:void 0}function b(e){var t=!1;if(_()){if(h){var n=parseFloat((h.presentationStartTime-e.adaptation.period.start).toFixed(5)),r=0<h.duration?n+1.5*h.duration:n;t=e.adaptation.period.duration<=r}}else c>=e.availableSegmentsNumber&&(t=!0);return t}function I(e){var t=e.representation;t.segments&&l.trigger(M.default.REPRESENTATION_UPDATED,{sender:this,representation:t})}function S(e){if(!e.error&&m()===e.mediaType){var t=e.segments,n=e.representation,r=[],i=0,a=void 0,o=void 0,s=void 0,u=void 0;for(a=0,o=t.length;a<o;a++)s=t[a],(u=(0,F.getTimeBasedSegment)(f,_(),n,s.startTime,s.duration,s.timescale,s.media,s.mediaRange,i))&&(r.push(u),u=null,i++);if(o=r.length,n.segmentAvailabilityRange={start:r[0].presentationStartTime,end:r[o-1].presentationStartTime},n.availableSegmentsNumber=o,(n.segments=r)&&0<r.length)if(_())y(r[r.length-1].presentationStartTime-8);x.default.hasInitialization(n)&&l.trigger(M.default.REPRESENTATION_UPDATED,{sender:this,representation:n})}}return r={initialize:function(e){a=e,g.initialize(_())},getStreamProcessor:function(){return a},getInitRequest:function(e){return e?function(e,t){var n=new w.default,r=e.adaptation.period,i=r.start,a=_();if(n.mediaType=t,n.type=N.HTTPRequest.INIT_SEGMENT_TYPE,n.range=e.range,n.availabilityStartTime=f.calcAvailabilityStartTimeFromPresentationTime(i,r.mpd,a),n.availabilityEndTime=f.calcAvailabilityEndTimeFromPresentationTime(i+r.duration,r.mpd,a),n.quality=e.index,n.mediaInfo=v(),n.representationId=e.id,T(n,e.initialization,e))return n.url=(0,F.replaceTokenForTemplate)(n.url,"Bandwidth",e.bandwidth),n}(e,m()):null},getSegmentRequestForTime:function(e,t,n){var r=void 0;if(!e||!e.segmentInfoType)return null;var i=m(),a=c,o=!!n&&n.keepIdx,s=!(!n||!n.ignoreIsFinished);p!==t&&(p=t,d.debug("Getting the request for "+i+" time : "+t));var u=g.getSegmentByTime(e,t);return u?(c=u.availabilityIdx,h=u,d.debug("Index for "+i+" time "+t+" is "+c),r=A(u)):!s&&b(e)&&((r=new w.default).action=w.default.ACTION_COMPLETE,r.index=c-1,r.mediaType=i,r.mediaInfo=v(),d.debug("Signal complete in getSegmentRequestForTime -",i)),o&&0<=a&&(c=e.segmentInfoType===R.default.SEGMENT_TIMELINE&&_()?c:a),r},getNextSegmentRequest:function(e){var t=void 0;if(!e||!e.segmentInfoType)return null;var n=h?h.mediaStartTime:-1,r=m();p=null;var i=c+1;d.debug("Getting the next request at index: "+i+", type: "+r);var a=g.getSegmentByIndex(e,i,n);return a||function(e){return!_()||_()&&isFinite(e.adaptation.period.duration)}(e)?(c=a?(t=A(a),a.availabilityIdx):i,a?t=A(h=a):b(e)&&((t=new w.default).action=w.default.ACTION_COMPLETE,t.index=c-1,t.mediaType=r,t.mediaInfo=v(),d.debug("Signal complete -",r)),t):(d.debug("No segment found at index: "+i+". Wait for next loop"),null)},updateRepresentation:function(e,t){var n=x.default.hasInitialization(e),r=x.default.hasSegments(e),i=void 0;if(e.segmentAvailabilityRange=f.calcSegmentAvailabilityRange(e,_()),e.segmentAvailabilityRange.end<e.segmentAvailabilityRange.start&&!e.useCalculatedLiveEdgeTime)return i=new D.default(C.default.SEGMENTS_UNAVAILABLE_ERROR_CODE,C.default.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE,{availabilityDelay:e.segmentAvailabilityRange.start-e.segmentAvailabilityRange.end}),void l.trigger(M.default.REPRESENTATION_UPDATED,{sender:this,representation:e,error:i});_()&&y(e.segmentAvailabilityRange.end),t||u(),g.update(e,m(),n,r),n&&r&&l.trigger(M.default.REPRESENTATION_UPDATED,{sender:this,representation:e})},setCurrentTime:function(e){i=e},getCurrentTime:function(){return i},reset:function(){E(),l.off(M.default.INITIALIZATION_LOADED,I,r),l.off(M.default.SEGMENTS_LOADED,S,r)},resetIndex:u},d=(0,P.default)(t).getInstance().getLogger(r),E(),g=(0,U.default)(t).create(e),l.on(M.default.INITIALIZATION_LOADED,I,r),l.on(M.default.SEGMENTS_LOADED,S,r),r}a.__dashjs_factory_name="DashHandler",n.default=i.default.getClassFactory(a),t.exports=n.default},{168:168,173:173,175:175,189:189,46:46,47:47,48:48,52:52,55:55,62:62,64:64,80:80,92:92}],59:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var c=r(e(107)),h=e(189),i=r(e(48)),p=r(e(108)),g=r(e(78)),m=r(e(126)),_=e(191);function a(e){e=e||{};var t,n=this.context,i=void 0,a=void 0,o=void 0,s=e.metricsModel;function r(e,t,n){return f(s.getMetricsFor(e,t),n)}function u(e,t){var n=s.getMetricsFor(e,t);if(!n)return null;var r=n.HttpList,i=null,a=void 0;if(!r||r.length<=0)return null;for(a=r.length-1;0<=a;){if(r[a].responsecode){i=r[a];break}a--}return i}function l(e){var t=s.getMetricsFor(e,!0);return t&&t.HttpList?t.HttpList:[]}function f(e,t){if(!e)return null;var n=e[t];return!n||n.length<=0?null:n[n.length-1]}function d(e){var t={};if(!e)return t;for(var n=e.trim().split("\r\n"),r=0,i=n.length;r<i;r++){var a=n[r],o=a.indexOf(": ");0<o&&(t[a.substring(0,o)]=a.substring(o+2))}return t}return t={getCurrentRepresentationSwitch:function(e,t){return f(s.getMetricsFor(e,t),p.default.TRACK_SWITCH)},getLatestBufferInfoVO:r,getCurrentBufferLevel:function(e,t){var n=r(e,t,p.default.BUFFER_LEVEL);return n?g.default.round10(n.level/1e3,-3):0},getCurrentHttpRequest:u,getHttpRequests:l,getCurrentDroppedFrames:function(){return f(s.getMetricsFor(c.default.VIDEO,!0),p.default.DROPPED_FRAMES)},getCurrentSchedulingInfo:function(e){return f(s.getMetricsFor(e,!0),p.default.SCHEDULING_INFO)},getCurrentDVRInfo:function(e){return f(e?s.getMetricsFor(e,!0):s.getMetricsFor(c.default.VIDEO,!0)||s.getMetricsFor(c.default.AUDIO,!0),p.default.DVR_INFO)},getCurrentManifestUpdate:function(){return f(s.getMetricsFor(c.default.STREAM),p.default.MANIFEST_UPDATE)},getLatestFragmentRequestHeaderValueByID:function(e,t){var n={},r=u(e,!0);return r&&(n=d(r._responseHeaders)),void 0===n[t]?null:n[t]},getLatestMPDRequestHeaderValueByID:function(e){var t,n={},r=void 0,i=void 0;for(i=(t=l(c.default.STREAM)).length-1;0<=i;i--)if((r=t[i]).type===h.HTTPRequest.MPD_TYPE){n=d(r._responseHeaders);break}return void 0===n[e]?null:n[e]},addRepresentationSwitch:function(e,t,n,r,i){s.addRepresentationSwitch(e,t,n,r,i)},addDVRInfo:function(e,t,n,r){s.addDVRInfo(e,t,n,r)},updateManifestUpdateInfo:function(e){var t=this.getCurrentManifestUpdate();s.updateManifestUpdateInfo(t,e)},addManifestUpdateStreamInfo:function(e){if(e){var t=this.getCurrentManifestUpdate();s.addManifestUpdateStreamInfo(t,e.id,e.index,e.start,e.duration)}},addManifestUpdateRepresentationInfo:function(e,t){if(e){var n=this.getCurrentManifestUpdate();s.addManifestUpdateRepresentationInfo(n,e.id,e.index,e.streamIndex,t,e.presentationTimeOffset,e.startNumber,e.fragmentInfoType)}},addManifestUpdate:function(e){s.addManifestUpdate(c.default.STREAM,e.type,e.requestStartDate,e.requestEndDate)},addHttpRequest:function(e,t,n,r,i){s.addHttpRequest(e.mediaType,null,e.type,e.url,t,e.serviceLocation||null,e.range||null,e.requestStartDate,e.firstByteDate,e.requestEndDate,n,e.duration,r,i)},addSchedulingInfo:function(e,t){s.addSchedulingInfo(e.mediaType,new Date,e.type,e.startTime,e.availabilityStartTime,e.duration,e.quality,e.range,t)},addRequestsQueue:function(e,t,n){s.addRequestsQueue(e,t,n)},addBufferLevel:function(e,t,n){s.addBufferLevel(e,t,n)},addBufferState:function(e,t,n){s.addBufferState(e,t,n)},addDroppedFrames:function(e){s.addDroppedFrames(c.default.VIDEO,e)},addPlayList:function(){o&&(s.addPlayList(o),o=null)},addDVBErrors:function(e){s.addDVBErrors(e)},createPlaylistMetrics:function(e,t){(o=new _.PlayList).start=new Date,o.mstart=e,o.starttype=t},createPlaylistTraceMetrics:function(e,t,n){!0===i&&(i=!1,(a=new _.PlayListTrace).representationid=e,a.start=new Date,a.mstart=t,a.playbackspeed=n)},updatePlayListTraceMetrics:function(e){if(a)for(var t in a)a[t]=e[t]},pushPlayListTraceMetrics:function(e,t){if(!1===i&&o&&a&&a.start){var n=a.start,r=e.getTime()-n.getTime();a.duration=r,a.stopreason=t,o.trace.push(a),i=!0}},clearAllCurrentMetrics:function(){s.clearAllCurrentMetrics()}},s=s||(0,m.default)(n).getInstance({settings:e.settings}),i=!0,o=a=null,t}a.__dashjs_factory_name="DashMetrics",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,108:108,126:126,189:189,191:191,48:48,78:78}],60:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=r(e(165)),y=r(e(94)),l=r(e(173)),f=r(e(55)),d=r(e(47)),c=r(e(155)),i=r(e(48)),h=r(e(46)),p=e(189),A=r(e(175)),b=r(e(130)),I=r(e(52));function a(){var e=this.context,s=(0,d.default)(e).getInstance(),t=void 0,g=void 0,n=void 0,m=void 0,r=void 0,i=void 0,a=void 0,u=void 0,_=void 0;function v(){if(!_||!_.hasOwnProperty("resolve"))throw new Error("setConfig function has to be called previously")}function E(e){if(e.url){var t=new A.default;return t.type=e.init?p.HTTPRequest.INIT_SEGMENT_TYPE:p.HTTPRequest.MEDIA_SEGMENT_TYPE,t.url=e.url,t.range=e.range.start+"-"+e.range.end,t.mediaType=e.mediaType,t}}function T(e,t,n){e?s.trigger(f.default.SEGMENTS_LOADED,{segments:e,representation:t,mediaType:n}):s.trigger(f.default.SEGMENTS_LOADED,{segments:null,representation:t,mediaType:n,error:new l.default(I.default.SEGMENT_BASE_LOADER_ERROR_CODE,I.default.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}return t={setConfig:function(e){e.baseURLController&&(_=e.baseURLController),e.dashMetrics&&(i=e.dashMetrics),e.mediaPlayerModel&&(a=e.mediaPlayerModel),e.errHandler&&(n=e.errHandler)},initialize:function(){m=(0,c.default)(e).getInstance(),r=(0,o.default)(e).getInstance(),u=(0,b.default)(e).create({errHandler:n,dashMetrics:i,mediaPlayerModel:a,requestModifier:r})},loadInitialization:function t(n,e){v();var r=null,i=n?_.resolve(n.path):null,a=e||{init:!0,url:i?i.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500,mediaType:n&&n.adaptation?n.adaptation.type:null};g.debug("Start searching for initialization.");var o=E(a);u.load({request:o,success:function(e){a.bytesLoaded=a.range.end,(r=m.findInitRange(e))?(n.range=r,s.trigger(f.default.INITIALIZATION_LOADED,{representation:n})):(a.range.end=a.bytesLoaded+a.bytesToLoad,t(n,a))},error:function(){s.trigger(f.default.INITIALIZATION_LOADED,{representation:n})}}),g.debug("Perform init search: "+a.url)},loadSegments:function l(f,d,e,t,c){if(v(),e&&(void 0===e.start||void 0===e.end)){var n=e?e.toString().split("-"):null;e=n?{start:parseFloat(n[0]),end:parseFloat(n[1])}:null}c=c||T;var o=null,h=null,r=!!e,i=f?_.resolve(f.path):null,p={init:!1,url:i?i.url:void 0,range:r?e:{start:0,end:1500},searching:!r,bytesLoaded:t?t.bytesLoaded:0,bytesToLoad:1500,mediaType:f&&f.adaptation?f.adaptation.type:null},a=E(p);u.load({request:a,success:function(e){var t=p.bytesToLoad,n=e.byteLength;if(p.bytesLoaded=p.range.end-p.range.start,o=m.parse(e),(h=o.getBox("sidx"))&&h.isComplete){var u=h.references,r=void 0,i=void 0;null!=u&&0<u.length&&(r=1===u[0].reference_type),r?function(){function e(e){e?(a=a.concat(e),n<=++o&&c(a,f,d)):c(null,f,d)}g.debug("Initiate multiple SIDX load."),p.range.end=p.range.start+h.size;var t=void 0,n=void 0,r=void 0,i=void 0,a=[],o=0,s=(h.offset||p.range.start)+h.size;for(t=0,n=u.length;t<n;t++)i=(r=s)+u[t].referenced_size-1,s+=u[t].referenced_size,l(f,null,{start:r,end:i},p,e)}():(g.debug("Parsing segments from SIDX."),i=function(e,t){for(var n=e.references,r=n.length,i=e.timescale,a=e.earliest_presentation_time,o=t.range.start+e.offset+e.first_offset+e.size,s=[],u=void 0,l=void 0,f=void 0,d=void 0,c=0;c<r;c++)f=n[c].subsegment_duration,d=n[c].referenced_size,(u=new y.default).duration=f,u.startTime=a,u.timescale=i,l=o+d-1,u.mediaRange=o+"-"+l,s.push(u),a+=f,o+=d;return s}(h,p),c(i,f,d))}else{if(h)p.range.start=h.offset||p.range.start,p.range.end=p.range.start+(h.size||t);else{if(n<p.bytesLoaded)return void c(null,f,d);var a=o.getLastBox();a&&a.size?(p.range.start=a.offset+a.size,p.range.end=p.range.start+t):p.range.end+=t}l(f,d,p.range,p,c)}},error:function(){c(null,f,d)}}),g.debug("Perform SIDX load: "+p.url)},reset:function(){u.abort(),r=m=n=u=null}},g=(0,h.default)(e).getInstance().getLogger(t),t}a.__dashjs_factory_name="SegmentBaseLoader",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{130:130,155:155,165:165,173:173,175:175,189:189,46:46,47:47,48:48,52:52,55:55,94:94}],61:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var d=r(e(55)),a=r(e(47)),T=r(e(159)),o=r(e(107)),i=r(e(48)),c=r(e(46)),h=r(e(165)),y=r(e(94)),A=e(189),b=r(e(175)),I=r(e(130)),S=r(e(173)),R=r(e(52));function s(){var p=this.context,s=(0,a.default)(p).getInstance(),e=void 0,g=void 0,m=void 0,t=void 0,n=void 0,r=void 0,i=void 0,_=void 0,u=void 0;function v(e,t,n,r){var i,a,o=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0;for(s=[],l=0,a=(i=function(e){var t=[],n=(0,T.default)(p).create({data:e}),r=void 0,i=void 0;for(n.consumeTagAndSize(m.Segment.Cues);n.moreData()&&n.consumeTagAndSize(m.Segment.Cues.CuePoint,!0);){for((r={}).CueTime=n.parseTag(m.Segment.Cues.CuePoint.CueTime),r.CueTracks=[];n.moreData()&&n.consumeTag(m.Segment.Cues.CuePoint.CueTrackPositions,!0);){var a=n.getMatroskaCodedNum(),o=n.getPos();if((i={}).Track=n.parseTag(m.Segment.Cues.CuePoint.CueTrackPositions.CueTrack),0===i.Track)throw new Error("Cue track cannot be 0");i.ClusterPosition=n.parseTag(m.Segment.Cues.CuePoint.CueTrackPositions.CueClusterPosition),r.CueTracks.push(i),n.setPos(o+a)}if(0===r.CueTracks.length)throw new Error("Mandatory cuetrack not found");t.push(r)}if(0===t.length)throw new Error("mandatory cuepoint not found");return t}(e)).length;l<a;l+=1)u=new y.default,o=0,o=l<i.length-1?i[l+1].CueTime-i[l].CueTime:r-i[l].CueTime,u.duration=o,u.startTime=i[l].CueTime,u.timescale=1e3,f=i[l].CueTracks[0].ClusterPosition+t,d=l<i.length-1?i[l+1].CueTracks[0].ClusterPosition+t-1:n-1,u.mediaRange=f+"-"+d,s.push(u);return g.debug("Parsed cues: "+s.length+" cues."),s}function l(){if(!u||!u.hasOwnProperty("resolve"))throw new Error("setConfig function has to be called previously")}function f(e,t,n){e?s.trigger(d.default.SEGMENTS_LOADED,{segments:e,representation:t,mediaType:n}):s.trigger(d.default.SEGMENTS_LOADED,{segments:null,representation:t,mediaType:n,error:new S.default(R.default.SEGMENT_BASE_LOADER_ERROR_CODE,R.default.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}function E(e){var t=new b.default;return t.type=e.init?A.HTTPRequest.INIT_SEGMENT_TYPE:A.HTTPRequest.MEDIA_SEGMENT_TYPE,t.url=e.url,t.range=e.range.start+"-"+e.range.end,t}return e={setConfig:function(e){if(!(e.baseURLController&&e.dashMetrics&&e.mediaPlayerModel&&e.errHandler))throw new Error(o.default.MISSING_CONFIG_ERROR);u=e.baseURLController,r=e.dashMetrics,i=e.mediaPlayerModel,t=e.errHandler},initialize:function(){n=(0,h.default)(p).getInstance(),_=(0,I.default)(p).create({errHandler:t,dashMetrics:r,mediaPlayerModel:i,requestModifier:n})},loadInitialization:function(e,t){l();var n=null,r=e?u.resolve(e.path):null,i=r?r.url:void 0,a=e?e.range.split("-"):null,o=t||{range:{start:a?parseFloat(a[0]):null,end:a?parseFloat(a[1]):null},request:n,url:i,init:!0};g.info("Start loading initialization."),n=E(o),_.load({request:n,success:function(){s.trigger(d.default.INITIALIZATION_LOADED,{representation:e})},error:function(){s.trigger(d.default.INITIALIZATION_LOADED,{representation:e})}}),g.debug("Perform init load: "+o.url)},loadSegments:function(t,n,r,i){l();var e=null,a=t?u.resolve(t.path):null,o=a?a.url:void 0;i=i||f,e=E({bytesLoaded:0,bytesToLoad:8192,range:{start:0,end:8192},request:e,url:o,init:!1}),g.debug("Parsing ebml header"),_.load({request:e,success:function(e){!function(e,t,n,r){if(e&&0!==e.byteLength){var i,a=(0,T.default)(p).create({data:e}),o=void 0,s=void 0,u=void 0,l=n?n.split("-"):null,f=null,d={url:t,range:{start:l?parseFloat(l[0]):null,end:l?parseFloat(l[1]):null},request:f};for(g.debug("Parse EBML header: "+d.url),a.skipOverElement(m.EBML),a.consumeTag(m.Segment),u=a.getMatroskaCodedNum(),u+=a.getPos(),i=a.getPos();a.moreData()&&!a.consumeTagAndSize(m.Segment.Info,!0);)if(!(a.skipOverElement(m.Segment.SeekHead,!0)||a.skipOverElement(m.Segment.Tracks,!0)||a.skipOverElement(m.Segment.Cues,!0)||a.skipOverElement(m.Void,!0)))throw new Error("no valid top level element found");for(;void 0===o;){var c=a.getMatroskaCodedNum(!0),h=a.getMatroskaCodedNum();switch(c){case m.Segment.Info.Duration.tag:o=a[m.Segment.Info.Duration.parse](h);break;default:a.setPos(a.getPos()+h)}}f=E(d);_.load({request:f,success:function(e){s=v(e,i,u,o),r(s)},error:function(){g.error("Download Error: Cues "+d.url),r(null)}}),g.debug("Perform cues load: "+d.url+" bytes="+d.range.start+"-"+d.range.end)}else r(null)}(e,o,r,function(e){i(e,t,n)})},error:function(){i(null,t,n)}})},reset:function(){n=t=null}},g=(0,c.default)(p).getInstance().getLogger(e),m={EBML:{tag:440786851,required:!0},Segment:{tag:408125543,required:!0,SeekHead:{tag:290298740,required:!0},Info:{tag:357149030,required:!0,TimecodeScale:{tag:2807729,required:!0,parse:"getMatroskaUint"},Duration:{tag:17545,required:!0,parse:"getMatroskaFloat"}},Tracks:{tag:374648427,required:!0},Cues:{tag:475249515,required:!0,CuePoint:{tag:187,required:!0,CueTime:{tag:179,required:!0,parse:"getMatroskaUint"},CueTrackPositions:{tag:183,required:!0,CueTrack:{tag:247,required:!0,parse:"getMatroskaUint"},CueClusterPosition:{tag:241,required:!0,parse:"getMatroskaUint"}}}}},Void:{tag:236,required:!0}},e}s.__dashjs_factory_name="WebmSegmentBaseLoader",n.default=i.default.getSingletonFactory(s),t.exports=n.default},{107:107,130:130,159:159,165:165,173:173,175:175,189:189,46:46,47:47,48:48,52:52,55:55,94:94}],62:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.init()}Object.defineProperty(n,"__esModule",{value:!0});var a=new(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(i,[{key:"init",value:function(){this.BASE_URL="BaseURL",this.SEGMENT_BASE="SegmentBase",this.SEGMENT_TEMPLATE="SegmentTemplate",this.SEGMENT_LIST="SegmentList",this.SEGMENT_URL="SegmentURL",this.SEGMENT_TIMELINE="SegmentTimeline",this.SEGMENT_PROFILES="segmentProfiles",this.ADAPTATION_SET="AdaptationSet",this.REPRESENTATION="Representation",this.REPRESENTATION_INDEX="RepresentationIndex",this.SUB_REPRESENTATION="SubRepresentation",this.INITIALIZATION="Initialization",this.INITIALIZATION_MINUS="initialization",this.MPD="MPD",this.PERIOD="Period",this.ASSET_IDENTIFIER="AssetIdentifier",this.EVENT_STREAM="EventStream",this.ID="id",this.PROFILES="profiles",this.SERVICE_LOCATION="serviceLocation",this.RANGE="range",this.INDEX="index",this.MEDIA="media",this.BYTE_RANGE="byteRange",this.INDEX_RANGE="indexRange",this.MEDIA_RANGE="mediaRange",this.VALUE="value",this.CONTENT_TYPE="contentType",this.MIME_TYPE="mimeType",this.BITSTREAM_SWITCHING="BitstreamSwitching",this.BITSTREAM_SWITCHING_MINUS="bitstreamSwitching",this.CODECS="codecs",this.DEPENDENCY_ID="dependencyId",this.MEDIA_STREAM_STRUCTURE_ID="mediaStreamStructureId",this.METRICS="Metrics",this.METRICS_MINUS="metrics",this.REPORTING="Reporting",this.WIDTH="width",this.HEIGHT="height",this.SAR="sar",this.FRAMERATE="frameRate",this.AUDIO_SAMPLING_RATE="audioSamplingRate",this.MAXIMUM_SAP_PERIOD="maximumSAPPeriod",this.START_WITH_SAP="startWithSAP",this.MAX_PLAYOUT_RATE="maxPlayoutRate",this.CODING_DEPENDENCY="codingDependency",this.SCAN_TYPE="scanType",this.FRAME_PACKING="FramePacking",this.AUDIO_CHANNEL_CONFIGURATION="AudioChannelConfiguration",this.CONTENT_PROTECTION="ContentProtection",this.ESSENTIAL_PROPERTY="EssentialProperty",this.SUPPLEMENTAL_PROPERTY="SupplementalProperty",this.INBAND_EVENT_STREAM="InbandEventStream",this.ACCESSIBILITY="Accessibility",this.ROLE="Role",this.RATING="Rating",this.CONTENT_COMPONENT="ContentComponent",this.SUBSET="Subset",this.LANG="lang",this.VIEWPOINT="Viewpoint",this.ROLE_ASARRAY="Role_asArray",this.ACCESSIBILITY_ASARRAY="Accessibility_asArray",this.AUDIOCHANNELCONFIGURATION_ASARRAY="AudioChannelConfiguration_asArray",this.CONTENTPROTECTION_ASARRAY="ContentProtection_asArray",this.MAIN="main",this.DYNAMIC="dynamic",this.MEDIA_PRESENTATION_DURATION="mediaPresentationDuration",this.MINIMUM_UPDATE_PERIOD="minimumUpdatePeriod",this.CODEC_PRIVATE_DATA="codecPrivateData",this.BANDWITH="bandwidth",this.SOURCE_URL="sourceURL",this.TIMESCALE="timescale",this.DURATION="duration",this.START_NUMBER="startNumber",this.PRESENTATION_TIME_OFFSET="presentationTimeOffset",this.AVAILABILITY_START_TIME="availabilityStartTime",this.AVAILABILITY_END_TIME="availabilityEndTime",this.TIMESHIFT_BUFFER_DEPTH="timeShiftBufferDepth",this.MAX_SEGMENT_DURATION="maxSegmentDuration",this.PRESENTATION_TIME="presentationTime",this.MIN_BUFFER_TIME="minBufferTime",this.MAX_SUBSEGMENT_DURATION="maxSubsegmentDuration",this.START="start",this.AVAILABILITY_TIME_OFFSET="availabilityTimeOffset",this.AVAILABILITY_TIME_COMPLETE="availabilityTimeComplete",this.CENC_DEFAULT_KID="cenc:default_KID",this.DVB_PRIORITY="dvb:priority",this.DVB_WEIGHT="dvb:weight",this.SUGGESTED_PRESENTATION_DELAY="suggestedPresentationDelay"}}]),i);n.default=a,t.exports=n.default},{}],63:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var w=r(e(107)),D=r(e(52)),N=r(e(62)),M=r(e(173)),O=r(e(47)),C=r(e(55)),i=r(e(48)),P=r(e(92));function a(){var e=this.context,l=(0,O.default)(e).getInstance(),n=void 0,f=void 0,d=void 0,c=void 0,h=void 0,p=void 0,g=void 0,m=void 0,i=void 0,_=void 0,v=void 0,t=void 0;function E(){if(!(p&&_&&m&&i&&t&&v))throw new Error(w.default.MISSING_CONFIG_ERROR)}function T(){return d}function y(){return h}function r(){d=!(f=null),c=[],_=i=m=p=null}function A(){E();var e=new Date,t=y(),n=1e3*m.getTime();t&&_.addRepresentationSwitch(t.adaptation.type,e,n,t.id)}function b(){E();var e=v.getStreamInfo(),t=e?e.manifestInfo:null,n=t?t.isDynamic:null,r=i.calcSegmentAvailabilityRange(h,n);_.addDVRInfo(v.getType(),m.getTime(),t,r)}function I(e){return null==e||e>=c.length?null:c[e]}function S(e){var t=e;d=!1,l.trigger(C.default.AST_IN_FUTURE,{delay:t}),setTimeout(function(){if(!T()){d=!0,l.trigger(C.default.DATA_UPDATE_STARTED,{sender:n}),c.forEach(function(e){e.segmentAvailabilityRange=null});for(var e=0;e<c.length;e++)g.updateRepresentation(c[e],!0)}},t)}function a(e){if(e.sender.getStreamProcessor()===v&&T())if(e.error)l.trigger(C.default.DATA_UPDATE_COMPLETED,{sender:this,error:e.error});else{var t=e.representation,n=_.getCurrentManifestUpdate(),r=!1,i=0,a=void 0,o=void 0;if(t.adaptation.period.mpd.manifest.type===N.default.DYNAMIC&&!t.adaptation.period.mpd.manifest.ignorePostponeTimePeriod){var s=t.segmentAvailabilityRange.end-t.segmentAvailabilityRange.start;i=1e3*(m.computeLiveDelay(h.segmentDuration,v.getStreamInfo().manifestInfo.DVRWindowSize)-s)}if(0<i)return b(),S(i),o=new M.default(D.default.SEGMENTS_UPDATE_FAILED_ERROR_CODE,D.default.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE),void l.trigger(C.default.DATA_UPDATE_COMPLETED,{sender:this,data:f,currentRepresentation:h,error:o});if(n){for(var u=0;u<n.representationInfo.length;u++)if((a=n.representationInfo[u]).index===t.index&&a.mediaType===v.getType()){r=!0;break}r||_.addManifestUpdateRepresentationInfo(t,v.getType())}!function(){for(var e=0,t=c.length;e<t;e++){var n=c[e].segmentInfoType;if(null===c[e].segmentAvailabilityRange||!P.default.hasInitialization(c[e])||(n===N.default.SEGMENT_BASE||n===N.default.BASE_URL)&&!c[e].segments)return!1}return!0}()||(d=!1,p.setPlaybackQuality(v.getType(),v.getStreamInfo(),function(e){return c.indexOf(e)}(h)),_.updateManifestUpdateInfo({latency:h.segmentAvailabilityRange.end-m.getTime()}),_.getCurrentRepresentationSwitch(y().adaptation.type)||A(),l.trigger(C.default.DATA_UPDATE_COMPLETED,{sender:this,data:f,currentRepresentation:h}))}}function o(e){e.isDynamic&&function(e){var t=void 0;E();for(var n=0,r=c.length;n<r;n++)(t=c[n]).segmentAvailabilityRange=i.calcSegmentAvailabilityRange(t,e)}(e.isDynamic)}function s(e){e.sender.getStreamProcessor()===v&&(t.getValue().doNotUpdateDVRWindowOnBufferUpdated||b())}function u(e){e.mediaType===v.getType()&&v.getStreamInfo().id===e.streamInfo.id&&(h=I(e.newQuality),A())}function R(e){if(e.newDuration){var t=y();if(t&&t.adaptation.period)t.adaptation.period.duration=e.newDuration}}return n={initialize:function(){g=v.getIndexHandler()},setConfig:function(e){e.abrController&&(p=e.abrController),e.dashMetrics&&(_=e.dashMetrics),e.playbackController&&(m=e.playbackController),e.timelineConverter&&(i=e.timelineConverter),e.manifestModel&&(t=e.manifestModel),e.streamProcessor&&(v=e.streamProcessor)},getData:function(){return f},isUpdating:T,updateData:function(e,t,n){E();var r=v.getStreamInfo(),i=p.getTopQualityIndexFor(n,r?r.id:null),a=p.getMinAllowedIndexFor(n),o=void 0,s=null;if(d=!0,l.trigger(C.default.DATA_UPDATE_STARTED,{sender:this}),c=t,o=null!==f&&f.id==e.id||n===w.default.FRAGMENTED_TEXT?p.getQualityFor(n):(s=p.getThroughputHistory().getAverageThroughput(n)||p.getInitialBitrateFor(n,r),p.getQualityForBitrate(v.getMediaInfo(),s)),void 0!==a&&o<a&&(o=a),i<o&&(o=i),h=I(o),f=e,n!==w.default.VIDEO&&n!==w.default.AUDIO&&n!==w.default.FRAGMENTED_TEXT)return d=!1,void l.trigger(C.default.DATA_UPDATE_COMPLETED,{sender:this,data:f,currentRepresentation:h});for(var u=0;u<c.length;u++)g.updateRepresentation(c[u],!0)},getStreamProcessor:function(){return v},getCurrentRepresentation:y,getRepresentationForQuality:I,reset:function(){l.off(C.default.QUALITY_CHANGE_REQUESTED,u,n),l.off(C.default.REPRESENTATION_UPDATED,a,n),l.off(C.default.WALLCLOCK_TIME_UPDATED,o,n),l.off(C.default.BUFFER_LEVEL_UPDATED,s,n),l.off(C.default.MANIFEST_VALIDITY_CHANGED,R,n),r()}},r(),l.on(C.default.QUALITY_CHANGE_REQUESTED,u,n),l.on(C.default.REPRESENTATION_UPDATED,a,n),l.on(C.default.WALLCLOCK_TIME_UPDATED,o,n),l.on(C.default.BUFFER_LEVEL_UPDATED,s,n),l.on(C.default.MANIFEST_VALIDITY_CHANGED,R,n),n}a.__dashjs_factory_name="RepresentationController",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,173:173,47:47,48:48,52:52,55:55,62:62,92:92}],64:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var d=r(e(62)),i=r(e(48)),c=r(e(83)),h=r(e(81)),p=r(e(77)),g=r(e(79)),m=r(e(60)),_=r(e(61));function a(t){t=t||{};var e,n,r=this.context,i=t.dashMetrics,a=t.mediaPlayerModel,o=t.errHandler,s=t.baseURLController,u=void 0,l=void 0;function f(e){return e.segments?u[d.default.SEGMENT_BASE]:u[e.segmentInfoType]}return e={initialize:function(e){l.initialize(),u[d.default.SEGMENT_TIMELINE]=(0,c.default)(r).create(t,e),u[d.default.SEGMENT_TEMPLATE]=(0,h.default)(r).create(t,e),u[d.default.SEGMENT_LIST]=(0,p.default)(r).create(t,e),u[d.default.SEGMENT_BASE]=(0,g.default)(r).create(t,e)},update:function(e,t,n,r){n||function(e){l.loadInitialization(e)}(e),r||function(e,t){l.loadSegments(e,t,e.indexRange)}(e,t)},getSegmentByIndex:function(e,t,n){var r=f(e);return r?r.getSegmentByIndex(e,t,n):null},getSegmentByTime:function(e,t){var n=f(e);return n?n.getSegmentByTime(e,t):null}},u={},(n=t.mimeType,l="webm"===(n?n.split("/")[1]:"").toLowerCase()?(0,_.default)(r).getInstance():(0,m.default)(r).getInstance()).setConfig({baseURLController:s,dashMetrics:i,mediaPlayerModel:a,errHandler:o}),e}a.__dashjs_factory_name="SegmentsController";var o=i.default.getClassFactory(a);n.default=o,t.exports=n.default},{48:48,60:60,61:61,62:62,77:77,79:79,81:81,83:83}],65:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var b=r(e(107)),I=r(e(62)),S=r(e(92)),R=r(e(84)),w=r(e(91)),i=r(e(90)),a=r(e(96)),D=r(e(86)),N=r(e(85)),M=r(e(87)),O=r(e(164)),C=r(e(168)),o=r(e(48)),P=r(e(46)),L=r(e(173)),x=r(e(52)),F=e(153);function s(){var e=void 0,l=void 0,f=void 0,d=void 0,o=this.context,s=(0,C.default)(o).getInstance(),h=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function u(e,t){var n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=!1,l=!1;if(!e)throw new Error("adaptation is not defined");if(!t)throw new Error("type is not defined");if(e.hasOwnProperty("ContentComponent_asArray")&&(a=e.ContentComponent_asArray),o=t!==b.default.TEXT?new RegExp(t):new RegExp("(vtt|ttml)"),e.Representation_asArray&&e.Representation_asArray.length&&0<e.Representation_asArray.length){var f=_(e.Representation_asArray[0]);if(f&&0<f.length&&0<=F.THUMBNAILS_SCHEME_ID_URIS.indexOf(f[0].schemeIdUri))return t===b.default.IMAGE;if(e.Representation_asArray[0].hasOwnProperty(I.default.CODECS)&&(0===(s=e.Representation_asArray[0].codecs).search(b.default.STPP)||0===s.search(b.default.WVTT)))return t===b.default.FRAGMENTED_TEXT}if(a){if(1<a.length)return t===b.default.MUXED;a[0]&&a[0].contentType===t&&(l=u=!0)}if(e.hasOwnProperty(I.default.MIME_TYPE)&&(u=o.test(e.mimeType),l=!0),!l)for(n=0,r=e.Representation_asArray&&e.Representation_asArray.length?e.Representation_asArray.length:0;!l&&n<r;)(i=e.Representation_asArray[n]).hasOwnProperty(I.default.MIME_TYPE)&&(u=o.test(i.mimeType),l=!0),n++;return u}function p(e){return"text/vtt"===e||"application/ttml+xml"===e}function t(){return function(e,t){return e.bandwidth-t.bandwidth}}function c(e){return e&&Array.isArray(e.Representation_asArray)&&e.Representation_asArray.sort(function(e,t){return e.bandwidth-t.bandwidth}),e}function g(e,t){return e&&e.Period_asArray&&h(t)&&e.Period_asArray[t]?e.Period_asArray[t].AdaptationSet_asArray:[]}function m(e){var t=!1;return e&&e.hasOwnProperty("type")&&(t=e.type===I.default.DYNAMIC),t}function _(e){return e&&e.EssentialProperty_asArray&&e.EssentialProperty_asArray.length?e.EssentialProperty_asArray.map(function(e){return{schemeIdUri:e.schemeIdUri,value:e.value}}):null}function v(e){if(e&&e.period&&h(e.period.index)){var t=e.period.mpd.manifest.Period_asArray[e.period.index];if(t&&t.AdaptationSet_asArray&&h(e.index))return c(t.AdaptationSet_asArray[e.index])}}function E(e){var t=e.S_asArray[e.S_asArray.length-1];return!t.hasOwnProperty("r")||0<=t.r}function T(e,t){if(!e)throw new Error("Period cannot be null or undefined");var n=w.default.DEFAULT_ID+"_"+t;return e.hasOwnProperty(I.default.ID)&&0<e.id.length&&"__proto__"!==e.id&&(n=e.id),n}function y(e,t){var n=[],r=void 0;if(!e)return n;for(r=0;r<e.length;r++){var i=new M.default;if(i.timescale=1,i.representation=t,!e[r].hasOwnProperty(b.default.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");i.schemeIdUri=e[r].schemeIdUri,e[r].hasOwnProperty(I.default.TIMESCALE)&&(i.timescale=e[r].timescale),e[r].hasOwnProperty(I.default.VALUE)&&(i.value=e[r].value),n.push(i)}return n}function A(r){var i=[],e=r.BaseURL_asArray||[r.baseUri],a=!1;return e.some(function(e){if(e){var t=new N.default,n=e.__text||e;return s.isRelative(n)&&(a=!0,r.baseUri&&(n=s.resolve(n,r.baseUri))),t.url=n,e.hasOwnProperty(I.default.SERVICE_LOCATION)&&e.serviceLocation.length?t.serviceLocation=e.serviceLocation:t.serviceLocation=n,e.hasOwnProperty(I.default.DVB_PRIORITY)&&(t.dvb_priority=e[I.default.DVB_PRIORITY]),e.hasOwnProperty(I.default.DVB_WEIGHT)&&(t.dvb_weight=e[I.default.DVB_WEIGHT]),e.hasOwnProperty(I.default.AVAILABILITY_TIME_OFFSET)&&(t.availabilityTimeOffset=e[I.default.AVAILABILITY_TIME_OFFSET]),e.hasOwnProperty(I.default.AVAILABILITY_TIME_COMPLETE)&&(t.availabilityTimeComplete="false"!==e[I.default.AVAILABILITY_TIME_COMPLETE]),i.push(t),a}}),i}return e={getIsTypeOf:u,getIsTextTrack:p,getLanguageForAdaptation:function(e){var t="";return e&&e.hasOwnProperty(I.default.LANG)&&(t=e.lang.replace(/[^A-Za-z0-9-]/g,"")),t},getViewpointForAdaptation:function(e){return e&&e.hasOwnProperty(I.default.VIEWPOINT)?e.Viewpoint:null},getRolesForAdaptation:function(e){return e&&e.hasOwnProperty(I.default.ROLE_ASARRAY)?e.Role_asArray:[]},getAccessibilityForAdaptation:function(e){return e&&e.hasOwnProperty(I.default.ACCESSIBILITY_ASARRAY)?e.Accessibility_asArray:[]},getAudioChannelConfigurationForAdaptation:function(e){return e&&e.hasOwnProperty(I.default.AUDIOCHANNELCONFIGURATION_ASARRAY)?e.AudioChannelConfiguration_asArray:[]},getAdaptationForIndex:function(e,t,n){var r=g(t,n);return 0<r.length&&h(e)?r[e]:null},getIndexForAdaptation:function(e,t,n){var r=g(t,n),i=r.length;if(e)for(var a=0;a<i;a++){if((0,O.default)(o).getInstance().areEqual(r[a],e))return a}return-1},getAdaptationForId:function(e,t,n){var r,i=g(t,n),a=void 0;for(a=0,r=i.length;a<r;a++)if(i[a].hasOwnProperty(I.default.ID)&&i[a].id===e)return i[a];return null},getAdaptationsForType:function(e,t,n){var r,i=g(e,t),a=void 0,o=[];for(a=0,r=i.length;a<r;a++)u(i[a],n)&&o.push(c(i[a]));return o},getCodec:function(e,t,n){var r=null;if(e&&e.Representation_asArray&&0<e.Representation_asArray.length){var i=h(t)&&0<=t&&t<e.Representation_asArray.length?e.Representation_asArray[t]:e.Representation_asArray[0];i&&(r=i.mimeType+';codecs="'+i.codecs+'"',n&&void 0!==i.width&&(r+=';width="'+i.width+'";height="'+i.height+'"'))}return r},getMimeType:function(e){return e&&e.Representation_asArray&&0<e.Representation_asArray.length?e.Representation_asArray[0].mimeType:null},getKID:function(e){return e&&e.hasOwnProperty(I.default.CENC_DEFAULT_KID)?e[I.default.CENC_DEFAULT_KID]:null},getLabelsForAdaptation:function(e){if(!e||!Array.isArray(e.Label_asArray))return[];for(var t=[],n=0;n<e.Label_asArray.length;n++)t.push({lang:e.Label_asArray[n].lang,text:e.Label_asArray[n].__text||e.Label_asArray[n]});return t},getContentProtectionData:function(e){return e&&e.hasOwnProperty(I.default.CONTENTPROTECTION_ASARRAY)&&0!==e.ContentProtection_asArray.length?e.ContentProtection_asArray:null},getIsDynamic:m,hasProfile:function(e,t){var n=!1;return e&&e.profiles&&0<e.profiles.length&&(n=-1!==e.profiles.indexOf(t)),n},getDuration:function(e){return e&&e.hasOwnProperty(I.default.MEDIA_PRESENTATION_DURATION)?e.mediaPresentationDuration:e&&"dynamic"==e.type?Number.POSITIVE_INFINITY:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE},getBandwidth:function(e){return e&&e.bandwidth?e.bandwidth:NaN},getManifestUpdatePeriod:function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=NaN;return e&&e.hasOwnProperty(I.default.MINIMUM_UPDATE_PERIOD)&&(n=e.minimumUpdatePeriod),isNaN(n)?n:Math.max(n-t,1)},getRepresentationCount:function(e){return e&&Array.isArray(e.Representation_asArray)?e.Representation_asArray.length:0},getBitrateListForAdaptation:function(e){var t=c(e);return(t&&Array.isArray(t.Representation_asArray)?t.Representation_asArray:[]).map(function(e){return{bandwidth:e.bandwidth,width:e.width||0,height:e.height||0,scanType:e.scanType||null}})},getRepresentationFor:function(e,t){return t&&t.Representation_asArray&&0<t.Representation_asArray.length&&h(e)?t.Representation_asArray[e]:null},getRepresentationsForAdaptation:function(e){var t,n,r=[],i=v(e),a=void 0,o=void 0;if(i&&i.Representation_asArray){if(e&&e.period&&h(e.period.index)){var s=A(e.period.mpd.manifest);s&&(o=s[0])}for(var u=0,l=i.Representation_asArray.length;u<l;++u){var f=i.Representation_asArray[u],d=new S.default;if(d.index=u,d.adaptation=e,f.hasOwnProperty(I.default.ID)&&(d.id=f.id),f.hasOwnProperty(I.default.CODECS)&&(d.codecs=f.codecs),f.hasOwnProperty(I.default.CODEC_PRIVATE_DATA)&&(d.codecPrivateData=f.codecPrivateData),f.hasOwnProperty(I.default.BANDWITH)&&(d.bandwidth=f.bandwidth),f.hasOwnProperty(I.default.WIDTH)&&(d.width=f.width),f.hasOwnProperty(I.default.HEIGHT)&&(d.height=f.height),f.hasOwnProperty(I.default.SCAN_TYPE)&&(d.scanType=f.scanType),f.hasOwnProperty(I.default.MAX_PLAYOUT_RATE)&&(d.maxPlayoutRate=f.maxPlayoutRate),f.hasOwnProperty(I.default.SEGMENT_BASE)?(a=f.SegmentBase,d.segmentInfoType=I.default.SEGMENT_BASE):f.hasOwnProperty(I.default.SEGMENT_LIST)?(a=f.SegmentList).hasOwnProperty(I.default.SEGMENT_TIMELINE)?(d.segmentInfoType=I.default.SEGMENT_TIMELINE,d.useCalculatedLiveEdgeTime=E(a.SegmentTimeline)):(d.segmentInfoType=I.default.SEGMENT_LIST,d.useCalculatedLiveEdgeTime=!0):f.hasOwnProperty(I.default.SEGMENT_TEMPLATE)?((a=f.SegmentTemplate).hasOwnProperty(I.default.SEGMENT_TIMELINE)?(d.segmentInfoType=I.default.SEGMENT_TIMELINE,d.useCalculatedLiveEdgeTime=E(a.SegmentTimeline)):d.segmentInfoType=I.default.SEGMENT_TEMPLATE,a.hasOwnProperty(I.default.INITIALIZATION_MINUS)&&(d.initialization=a.initialization.split("$Bandwidth$").join(f.bandwidth).split("$RepresentationID$").join(f.id))):d.segmentInfoType=I.default.BASE_URL,d.essentialProperties=_(f),a){if(a.hasOwnProperty(I.default.INITIALIZATION)){var c=a.Initialization;c.hasOwnProperty(I.default.SOURCE_URL)&&(d.initialization=c.sourceURL),c.hasOwnProperty(I.default.RANGE)&&(d.range=c.range)}else f.hasOwnProperty(I.default.MIME_TYPE)&&p(f.mimeType)&&(d.range=0);a.hasOwnProperty(I.default.TIMESCALE)&&(d.timescale=a.timescale),a.hasOwnProperty(I.default.DURATION)&&(d.segmentDuration=a.duration/d.timescale),a.hasOwnProperty(I.default.MEDIA)&&(d.media=a.media),a.hasOwnProperty(I.default.START_NUMBER)&&(d.startNumber=a.startNumber),a.hasOwnProperty(I.default.INDEX_RANGE)&&(d.indexRange=a.indexRange),a.hasOwnProperty(I.default.PRESENTATION_TIME_OFFSET)&&(d.presentationTimeOffset=a.presentationTimeOffset/d.timescale),a.hasOwnProperty(I.default.AVAILABILITY_TIME_OFFSET)?d.availabilityTimeOffset=a.availabilityTimeOffset:o&&void 0!==o.availabilityTimeOffset&&(d.availabilityTimeOffset=o.availabilityTimeOffset),a.hasOwnProperty(I.default.AVAILABILITY_TIME_COMPLETE)?d.availabilityTimeComplete="false"!==a.availabilityTimeComplete:o&&void 0!==o.availabilityTimeComplete&&(d.availabilityTimeComplete=o.availabilityTimeComplete)}d.MSETimeOffset=(void 0,n=(t=d).presentationTimeOffset,t.adaptation.period.start-n),d.path=[e.period.index,e.index,u],r.push(d)}}return r},getAdaptationsForPeriod:function(e){var t=e&&h(e.index)?e.mpd.manifest.Period_asArray[e.index]:null,n=[],r=void 0,i=void 0,a=void 0;if(t&&t.AdaptationSet_asArray)for(a=0;a<t.AdaptationSet_asArray.length;a++)i=t.AdaptationSet_asArray[a],r=new R.default,i.hasOwnProperty(I.default.ID)&&(r.id=i.id),r.index=a,r.period=e,u(i,b.default.MUXED)?r.type=b.default.MUXED:u(i,b.default.AUDIO)?r.type=b.default.AUDIO:u(i,b.default.VIDEO)?r.type=b.default.VIDEO:u(i,b.default.FRAGMENTED_TEXT)?r.type=b.default.FRAGMENTED_TEXT:u(i,b.default.IMAGE)?r.type=b.default.IMAGE:r.type=b.default.TEXT,n.push(r);return n},getRegularPeriods:function(e){var t,n=!!e&&m(e.manifest),r=[],i=null,a=null,o=null,s=null,u=void 0;for(u=0,t=e&&e.manifest&&e.manifest.Period_asArray?e.manifest.Period_asArray.length:0;u<t;u++)(a=e.manifest.Period_asArray[u]).hasOwnProperty(I.default.START)?(s=new w.default).start=a.start:null!==i&&i.hasOwnProperty(I.default.DURATION)&&null!==o?(s=new w.default).start=parseFloat((o.start+o.duration).toFixed(5)):0!==u||n||((s=new w.default).start=0),null!==o&&isNaN(o.duration)&&(null!==s?o.duration=parseFloat((s.start-o.start).toFixed(5)):l.warn("First period duration could not be calculated because lack of start and duration period properties. This will cause timing issues during playback")),null!==s&&(s.id=T(a,u),s.index=u,s.mpd=e,a.hasOwnProperty(I.default.DURATION)&&(s.duration=a.duration),r.push(s),i=a,o=s),s=a=null;return 0===r.length||null!==o&&isNaN(o.duration)&&(o.duration=parseFloat((function(e){!function(){if(!f||!f.hasOwnProperty("error"))throw new Error("setConfig function has to be called previously")}();var t=m(e.mpd.manifest),n=void 0;e.mpd.manifest.mediaPresentationDuration?n=e.mpd.manifest.mediaPresentationDuration:e.duration?n=e.duration:t?n=Number.POSITIVE_INFINITY:f.error(new L.default(x.default.MANIFEST_ERROR_ID_PARSE_CODE,"Must have @mediaPresentationDuration on MPD or an explicit @duration on the last period.",e));return n}(o)-o.start).toFixed(5))),r},getMpd:function(e){var t=new i.default;return e&&((t.manifest=e).hasOwnProperty(I.default.AVAILABILITY_START_TIME)?t.availabilityStartTime=new Date(e.availabilityStartTime.getTime()):e.loadedTime&&(t.availabilityStartTime=new Date(e.loadedTime.getTime())),e.hasOwnProperty(I.default.AVAILABILITY_END_TIME)&&(t.availabilityEndTime=new Date(e.availabilityEndTime.getTime())),e.hasOwnProperty(I.default.MINIMUM_UPDATE_PERIOD)&&(t.minimumUpdatePeriod=e.minimumUpdatePeriod),e.hasOwnProperty(I.default.MEDIA_PRESENTATION_DURATION)&&(t.mediaPresentationDuration=e.mediaPresentationDuration),e.hasOwnProperty(b.default.SUGGESTED_PRESENTATION_DELAY)&&(t.suggestedPresentationDelay=e.suggestedPresentationDelay),e.hasOwnProperty(I.default.TIMESHIFT_BUFFER_DEPTH)&&(t.timeShiftBufferDepth=e.timeShiftBufferDepth),e.hasOwnProperty(I.default.MAX_SEGMENT_DURATION)&&(t.maxSegmentDuration=e.maxSegmentDuration)),t},getEventsForPeriod:function(e){var t=e&&e.mpd&&e.mpd.manifest?e.mpd.manifest:null,n=t?t.Period_asArray:null,r=n&&e&&h(e.index)?n[e.index].EventStream_asArray:null,i=[],a=void 0,o=void 0;if(r)for(a=0;a<r.length;a++){var s=new M.default;if(s.period=e,s.timescale=1,!r[a].hasOwnProperty(b.default.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");for(s.schemeIdUri=r[a].schemeIdUri,r[a].hasOwnProperty(I.default.TIMESCALE)&&(s.timescale=r[a].timescale),r[a].hasOwnProperty(I.default.VALUE)&&(s.value=r[a].value),o=0;r[a].Event_asArray&&o<r[a].Event_asArray.length;o++){var u=new D.default;u.presentationTime=0,u.eventStream=s,r[a].Event_asArray[o].hasOwnProperty(I.default.PRESENTATION_TIME)&&(u.presentationTime=r[a].Event_asArray[o].presentationTime),r[a].Event_asArray[o].hasOwnProperty(I.default.DURATION)&&(u.duration=r[a].Event_asArray[o].duration),r[a].Event_asArray[o].hasOwnProperty(I.default.ID)&&(u.id=r[a].Event_asArray[o].id),r[a].Event_asArray[o].Signal&&r[a].Event_asArray[o].Signal.Binary?u.messageData=d.decodeArray(r[a].Event_asArray[o].Signal.Binary):u.messageData=r[a].Event_asArray[o].messageData||r[a].Event_asArray[o].__text,i.push(u)}}return i},getEventStreamForAdaptationSet:function(e,t){var n=void 0,r=void 0,i=void 0;return e&&e.Period_asArray&&t&&t.period&&h(t.period.index)&&(r=e.Period_asArray[t.period.index])&&r.AdaptationSet_asArray&&h(t.index)&&(i=r.AdaptationSet_asArray[t.index])&&(n=i.InbandEventStream_asArray),y(n,null)},getEventStreamForRepresentation:function(e,t){var n=void 0,r=void 0,i=void 0,a=void 0;return e&&e.Period_asArray&&t&&t.adaptation&&t.adaptation.period&&h(t.adaptation.period.index)&&(r=e.Period_asArray[t.adaptation.period.index])&&r.AdaptationSet_asArray&&h(t.adaptation.index)&&(i=r.AdaptationSet_asArray[t.adaptation.index])&&i.Representation_asArray&&h(t.index)&&(a=i.Representation_asArray[t.index])&&(n=a.InbandEventStream_asArray),y(n,t)},getUTCTimingSources:function(e){var t=m(e),n=!!e&&e.hasOwnProperty(I.default.AVAILABILITY_START_TIME),r=e?e.UTCTiming_asArray:null,i=[];return(t||n)&&r&&r.forEach(function(e){var t=new a.default;e.hasOwnProperty(b.default.SCHEME_ID_URI)&&(t.schemeIdUri=e.schemeIdUri,e.hasOwnProperty(I.default.VALUE)&&(t.value=e.value.toString(),i.push(t)))}),i},getBaseURLsFromElement:A,getRepresentationSortFunction:t,getLocation:function(e){if(e&&e.hasOwnProperty(b.default.LOCATION))return e.Location=e.Location_asArray[0],e.Location},getUseCalculatedLiveEdgeTimeForAdaptation:function(e){var t=v(e),n=t&&Array.isArray(t.Representation_asArray)?t.Representation_asArray[0]:null,r=void 0;if(n){if(n.hasOwnProperty(I.default.SEGMENT_LIST))return!(r=n.SegmentList).hasOwnProperty(I.default.SEGMENT_TIMELINE)||E(r.SegmentTimeline);if(n.hasOwnProperty(I.default.SEGMENT_TEMPLATE)&&(r=n.SegmentTemplate).hasOwnProperty(I.default.SEGMENT_TIMELINE))return E(r.SegmentTimeline)}return!1},getSuggestedPresentationDelay:function(e){return e&&e.hasOwnProperty(I.default.SUGGESTED_PRESENTATION_DELAY)?e.suggestedPresentationDelay:null},getAvailabilityStartTime:function(e){return e&&e.hasOwnProperty(I.default.AVAILABILITY_START_TIME)?e.availabilityStartTime.getTime():null},setConfig:function(e){e&&(e.errHandler&&(f=e.errHandler),e.BASE64&&(d=e.BASE64))}},l=(0,P.default)(o).getInstance().getLogger(e),e}s.__dashjs_factory_name="DashManifestModel",n.default=o.default.getSingletonFactory(s),t.exports=n.default},{107:107,153:153,164:164,168:168,173:173,46:46,48:48,52:52,62:62,84:84,85:85,86:86,87:87,90:90,91:91,92:92,96:96}],66:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),u=r(e(46)),l=r(e(76)),f=r(e(3)),d=r(e(75)),c=r(e(73)),h=r(e(72)),p=r(e(74)),g=r(e(69)),m=r(e(70));function a(){var e=this.context,t=void 0,a=void 0,n=void 0,o=void 0,s=void 0;return t={parse:function(e){var t,n=window.performance.now();if(!(t=o.xml_str2json(e)))throw new Error("parsing the manifest failed");var r=window.performance.now();s.run(t);var i=window.performance.now();return a.info("Parsing complete: ( xml2json: "+(r-n).toPrecision(3)+"ms, objectiron: "+(i-r).toPrecision(3)+"ms, total: "+((i-n)/1e3).toPrecision(3)+"s)"),t},getMatchers:function(){return n},getIron:function(){return s}},a=(0,u.default)(e).getInstance().getLogger(t),n=[new c.default,new h.default,new p.default,new d.default],o=new f.default({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:n}),s=(0,l.default)(e).create({adaptationset:new g.default,period:new m.default}),t}a.__dashjs_factory_name="DashParser",n.default=i.default.getClassFactory(a),t.exports=n.default},{3:3,46:46,48:48,69:69,70:70,72:72,73:73,74:74,75:75,76:76}],67:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"name",get:function(){return this._name}},{key:"merge",get:function(){return this._merge}}]),a);function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t;this._name=e,this._merge=(t=e)&&t.length&&t.charAt(0)===t.charAt(0).toUpperCase()}n.default=i,t.exports=n.default},{}],68:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a,o=e(67),s=(a=o)&&a.__esModule?a:{default:a},u=(r(l,[{key:"name",get:function(){return this._name}},{key:"children",get:function(){return this._children}},{key:"properties",get:function(){return this._properties}}]),l);function l(e,t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this._name=e||"",this._properties=[],this._children=n||[],Array.isArray(t)&&t.forEach(function(e){r._properties.push(new s.default(e))})}n.default=u,t.exports=n.default},{67:67}],69:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(e){return e&&e.__esModule?e:{default:e}}var i=r(e(68)),a=r(e(62)),o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,i.default),s);function s(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var e=[a.default.PROFILES,a.default.WIDTH,a.default.HEIGHT,a.default.SAR,a.default.FRAMERATE,a.default.AUDIO_SAMPLING_RATE,a.default.MIME_TYPE,a.default.SEGMENT_PROFILES,a.default.CODECS,a.default.MAXIMUM_SAP_PERIOD,a.default.START_WITH_SAP,a.default.MAX_PLAYOUT_RATE,a.default.CODING_DEPENDENCY,a.default.SCAN_TYPE,a.default.FRAME_PACKING,a.default.AUDIO_CHANNEL_CONFIGURATION,a.default.CONTENT_PROTECTION,a.default.ESSENTIAL_PROPERTY,a.default.SUPPLEMENTAL_PROPERTY,a.default.INBAND_EVENT_STREAM];(function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}})(Object.getPrototypeOf(s.prototype),"constructor",this).call(this,a.default.ADAPTATION_SET,e,[new i.default(a.default.REPRESENTATION,e,[new i.default(a.default.SUB_REPRESENTATION,e)])])}n.default=o,t.exports=n.default},{62:62,68:68}],70:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(e){return e&&e.__esModule?e:{default:e}}var i=r(e(68)),a=r(e(62)),o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,i.default),s);function s(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var e=[a.default.SEGMENT_BASE,a.default.SEGMENT_TEMPLATE,a.default.SEGMENT_LIST];(function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}})(Object.getPrototypeOf(s.prototype),"constructor",this).call(this,a.default.PERIOD,e,[new i.default(a.default.ADAPTATION_SET,e,[new i.default(a.default.REPRESENTATION,e)])])}n.default=o,t.exports=n.default},{62:62,68:68}],71:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"test",get:function(){return this._test}},{key:"converter",get:function(){return this._converter}}]),a);function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this._test=e,this._converter=t}n.default=i,t.exports=n.default},{}],72:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(71),a=(r=i)&&r.__esModule?r:{default:r},o=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})(?::?)([0-9]{2}))?/,s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,a.default),u);function u(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(u.prototype),"constructor",this).call(this,function(e){return o.test(e.value)},function(e){var t=o.exec(e),n=void 0;if(n=Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[4],10),parseInt(t[5],10),t[6]&&parseInt(t[6],10)||0,t[7]&&1e3*parseFloat(t[7])||0),t[9]&&t[10]){var r=60*parseInt(t[9],10)+parseInt(t[10],10);n+=("+"===t[8]?-1:1)*r*60*1e3}return new Date(n)})}n.default=s,t.exports=n.default},{71:71}],73:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(e){return e&&e.__esModule?e:{default:e}}var i=r(e(71)),a=r(e(107)),o=r(e(62)),s=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,i.default),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(l.prototype),"constructor",this).call(this,function(e){for(var t=[o.default.MIN_BUFFER_TIME,o.default.MEDIA_PRESENTATION_DURATION,o.default.MINIMUM_UPDATE_PERIOD,o.default.TIMESHIFT_BUFFER_DEPTH,o.default.MAX_SEGMENT_DURATION,o.default.MAX_SUBSEGMENT_DURATION,a.default.SUGGESTED_PRESENTATION_DELAY,o.default.START,a.default.START_TIME,o.default.DURATION],n=t.length,r=0;r<n;r++)if(e.nodeName===t[r])return s.test(e.value);return!1},function(e){var t=s.exec(e),n=31536e3*parseFloat(t[2]||0)+2592e3*parseFloat(t[4]||0)+86400*parseFloat(t[6]||0)+3600*parseFloat(t[8]||0)+60*parseFloat(t[10]||0)+parseFloat(t[12]||0);return void 0!==t[1]&&(n=-n),n})}n.default=u,t.exports=n.default},{107:107,62:62,71:71}],74:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(71),a=(r=i)&&r.__esModule?r:{default:r},o=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,a.default),u);function u(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(u.prototype),"constructor",this).call(this,function(e){return o.test(e.value)},function(e){return parseFloat(e)})}n.default=s,t.exports=n.default},{71:71}],75:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=r(e(71)),o=r(e(62)),s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u);function u(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(u.prototype),"constructor",this).call(this,function(e,t){var n,r=(a(n={},o.default.MPD,[o.default.ID,o.default.PROFILES]),a(n,o.default.PERIOD,[o.default.ID]),a(n,o.default.BASE_URL,[o.default.SERVICE_LOCATION,o.default.BYTE_RANGE]),a(n,o.default.SEGMENT_BASE,[o.default.INDEX_RANGE]),a(n,o.default.INITIALIZATION,[o.default.RANGE]),a(n,o.default.REPRESENTATION_INDEX,[o.default.RANGE]),a(n,o.default.SEGMENT_LIST,[o.default.INDEX_RANGE]),a(n,o.default.BITSTREAM_SWITCHING,[o.default.RANGE]),a(n,o.default.SEGMENT_URL,[o.default.MEDIA_RANGE,o.default.INDEX_RANGE]),a(n,o.default.SEGMENT_TEMPLATE,[o.default.INDEX_RANGE,o.default.MEDIA,o.default.INDEX,o.default.INITIALIZATION_MINUS,o.default.BITSTREAM_SWITCHING_MINUS]),a(n,o.default.ASSET_IDENTIFIER,[o.default.VALUE,o.default.ID]),a(n,o.default.EVENT_STREAM,[o.default.VALUE]),a(n,o.default.ADAPTATION_SET,[o.default.PROFILES,o.default.MIME_TYPE,o.default.SEGMENT_PROFILES,o.default.CODECS,o.default.CONTENT_TYPE]),a(n,o.default.FRAME_PACKING,[o.default.VALUE,o.default.ID]),a(n,o.default.AUDIO_CHANNEL_CONFIGURATION,[o.default.VALUE,o.default.ID]),a(n,o.default.CONTENT_PROTECTION,[o.default.VALUE,o.default.ID]),a(n,o.default.ESSENTIAL_PROPERTY,[o.default.VALUE,o.default.ID]),a(n,o.default.SUPPLEMENTAL_PROPERTY,[o.default.VALUE,o.default.ID]),a(n,o.default.INBAND_EVENT_STREAM,[o.default.VALUE,o.default.ID]),a(n,o.default.ACCESSIBILITY,[o.default.VALUE,o.default.ID]),a(n,o.default.ROLE,[o.default.VALUE,o.default.ID]),a(n,o.default.RATING,[o.default.VALUE,o.default.ID]),a(n,o.default.VIEWPOINT,[o.default.VALUE,o.default.ID]),a(n,o.default.CONTENT_COMPONENT,[o.default.CONTENT_TYPE]),a(n,o.default.REPRESENTATION,[o.default.ID,o.default.DEPENDENCY_ID,o.default.MEDIA_STREAM_STRUCTURE_ID]),a(n,o.default.SUBSET,[o.default.ID]),a(n,o.default.METRICS,[o.default.METRICS_MINUS]),a(n,o.default.REPORTING,[o.default.VALUE,o.default.ID]),n);if(r.hasOwnProperty(t)){var i=r[t];return void 0!==i&&0<=i.indexOf(e.name)}return!1},function(e){return String(e)})}n.default=s,t.exports=n.default},{62:62,71:71}],76:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(f){function u(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function l(e,t,n){for(var r=0,i=e.length;r<i;++r){var a=e[r];if(t[a.name])if(n[a.name]){if(a.merge){var o=t[a.name],s=n[a.name];"object"==typeof o&&"object"==typeof s?u(o,s):n[a.name]=o+s}}else n[a.name]=t[a.name]}}function d(e,t){for(var n=0,r=e.children.length;n<r;++n){var i=e.children[n],a=t[i.name+"_asArray"];if(a)for(var o=0,s=a.length;o<s;++o){var u=a[o];l(e.properties,t,u),d(i,u)}}}return{run:function(e){if(null===e||"object"!=typeof e)return e;if("period"in f)for(var t=f.period,n=e.Period_asArray,r=0,i=n.length;r<i;++r){var a=n[r];if(d(t,a),"adaptationset"in f){var o=a.AdaptationSet_asArray;if(o)for(var s=f.adaptationset,u=0,l=o.length;u<l;++u)d(s,o[u])}}return e}}}o.__dashjs_factory_name="ObjectIron";var s=a.default.getClassFactory(o);n.default=s,t.exports=n.default},{48:48}],77:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(107)),f=e(80);function o(e,s){var u=(e=e||{}).timelineConverter;function l(){if(!u||!u.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(a.default.MISSING_CONFIG_ERROR)}function i(e,t){if(l(),!e)throw new Error("no representation");var n=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,r=n.SegmentURL_asArray.length,i=e.startNumber,a=null;if(t<r){var o=n.SegmentURL_asArray[t];(a=(0,f.getIndexBasedSegment)(u,s,e,t)).replacementTime=(i+t-1)*e.segmentDuration,a.media=o.media?o.media:"",a.mediaRange=o.mediaRange,a.index=t,a.indexRange=o.indexRange}return e.availableSegmentsNumber=r,a}return{getSegmentByIndex:i,getSegmentByTime:function(e,t){if(l(),!e)throw new Error("no representation");var n=e.segmentDuration;if(isNaN(n))return null;var r=u.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return i(e,Math.floor(r/n))}}}o.__dashjs_factory_name="ListSegmentsGetter";var s=i.default.getClassFactory(o);n.default=s,t.exports=n.default},{107:107,48:48,80:80}],78:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,null,[{key:"round10",value:function(e,t){return function(e,t,n){return void 0!==n&&0!=+n?(n=+n,null===(t=+t)||isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n)))):Math[e](t)}("round",e,t)}}]),a);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}n.default=i,t.exports=n.default},{}],79:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),o=r(e(107));function a(e){var n=(e=e||{}).timelineConverter;function a(){if(!n||!n.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(o.default.MISSING_CONFIG_ERROR)}function r(e,t){if(a(),!e)throw new Error("no representation");var n=e.segments?e.segments.length:0,r=void 0;if(t<n&&(r=e.segments[t])&&r.availabilityIdx===t)return r;for(var i=0;i<n;i++)if((r=e.segments[i])&&r.availabilityIdx===t)return r;return null}return{getSegmentByIndex:r,getSegmentByTime:function(e,t){if(a(),!e)throw new Error("no representation");return r(e,function(e,t){var n=e.segments,r=n?n.length:null,i=-1,a=void 0,o=void 0,s=void 0,u=void 0,l=void 0;if(n&&0<r)for(l=0;l<r;l++)if(o=n[l],s=o.presentationStartTime,u=o.duration,s<=t+(a=u/2)&&t-a<s+u){i=o.availabilityIdx;break}return i}(e,n.calcPeriodRelativeTimeFromMpdRelativeTime(e,t)))}}}a.__dashjs_factory_name="SegmentBaseGetter";var s=i.default.getClassFactory(a);n.default=s,t.exports=n.default},{107:107,48:48}],80:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unescapeDollarsInTemplate=function(e){return e?e.split("$$").join("$"):e},n.replaceIDForTemplate=function(e,t){if(!t||!e||-1===e.indexOf("$RepresentationID$"))return e;var n=t.toString();return e.split("$RepresentationID$").join(n)},n.replaceTokenForTemplate=g,n.getIndexBasedSegment=function(e,t,n,r){var i,a,o=void 0;o=n.segmentDuration,isNaN(o)&&(o=n.adaptation.period.duration);i=parseFloat((n.adaptation.period.start+r*o).toFixed(5)),a=parseFloat((i+o).toFixed(5));var s=m(n,o,i,e.calcMediaTimeFromPresentationTime(i,n),e.calcAvailabilityStartTimeFromPresentationTime(i,n.adaptation.period.mpd,t),e,a,t,r);return _(e,n,s,t)?s:null},n.getTimeBasedSegment=function(e,t,n,r,i,a,o,s,u,l){var f,d,c=r/a,h=Math.min(i/a,n.adaptation.period.mpd.maxSegmentDuration),p=void 0;return f=e.calcPresentationTimeFromMediaTime(c,n),d=f+h,p=m(n,h,f,c,n.adaptation.period.mpd.manifest.loadedTime,e,d,t,u),_(e,n,p,t)?(p.replacementTime=l||r,o=g(o=g(o,"Number",p.replacementNumber),"Time",p.replacementTime),p.media=o,p.mediaRange=s,p):null};var r,i=e(94),f=(r=i)&&r.__esModule?r:{default:r};function d(e,t){for(;e.length<t;)e="0"+e;return e}function g(e,t,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=void 0,l=t.length,f="%0".length;if(!e)return e;for(;;){if((r=e.indexOf("$"+t))<0)return e;if((i=e.indexOf("$",r+l))<0)return e;if(r<(a=e.indexOf("%0",r+l))&&a<i)switch(o=e.charAt(i-1),s=parseInt(e.substring(a+f,i-1),10),o){case"d":case"i":case"u":u=d(n.toString(),s);break;case"x":u=d(n.toString(16),s);break;case"X":u=d(n.toString(16),s).toUpperCase();break;case"o":u=d(n.toString(8),s);break;default:return e}else u=n;e=e.substring(0,r)+u+e.substring(i+1)}}function m(e,t,n,r,i,a,o,s,u){var l=new f.default;return l.representation=e,l.duration=t,l.presentationStartTime=n,l.mediaStartTime=r,l.availabilityStartTime=i,l.availabilityEndTime=a.calcAvailabilityEndTimeFromPresentationTime(o,e.adaptation.period.mpd,s),l.wallStartTime=a.calcWallTimeForSegment(l,s),l.replacementNumber=function(e,t){return e.representation.startNumber+t}(l,u),l.availabilityIdx=u,l}function _(e,t,n,r){var i=e.getPeriodEnd(t,r);return!(e.calcPeriodRelativeTimeFromMpdRelativeTime(t,i)<=e.calcPeriodRelativeTimeFromMpdRelativeTime(t,n.presentationStartTime))}},{94:94}],81:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(107)),f=e(80);function o(e,s){var u=(e=e||{}).timelineConverter;function l(){if(!u||!u.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(a.default.MISSING_CONFIG_ERROR)}function i(e,t){if(l(),!e)throw new Error("no representation");var n=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate;t=Math.max(t,0);var r=(0,f.getIndexBasedSegment)(u,s,e,t);if(r){r.replacementTime=(t-1)*e.segmentDuration;var i=n.media;i=(0,f.replaceTokenForTemplate)(i,"Number",r.replacementNumber),i=(0,f.replaceTokenForTemplate)(i,"Time",r.replacementTime),r.media=i}var a=e.segmentDuration,o=e.segmentAvailabilityRange;return isNaN(a)?e.availableSegmentsNumber=1:e.availableSegmentsNumber=Math.ceil((o.end-o.start)/a),r}return{getSegmentByIndex:i,getSegmentByTime:function(e,t){if(l(),!e)throw new Error("no representation");var n=e.segmentDuration;if(isNaN(n))return null;var r=u.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return i(e,Math.floor(r/n)-1)}}}o.__dashjs_factory_name="TemplateSegmentsGetter";var s=i.default.getClassFactory(o);n.default=s,t.exports=n.default},{107:107,48:48,80:80}],82:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var f=r(e(47)),d=r(e(55)),i=r(e(48));function a(){var e=this.context,t=(0,f.default)(e).getInstance(),i=void 0,u=void 0,n=void 0;function r(e){i=e}function a(e,t,n,r){return r?n&&t.timeShiftBufferDepth!=Number.POSITIVE_INFINITY?new Date(t.availabilityStartTime.getTime()+1e3*(e+t.timeShiftBufferDepth)):t.availabilityEndTime:n?new Date(t.availabilityStartTime.getTime()+1e3*(e-i)):t.availabilityStartTime}function l(e,t){return(e.getTime()-t.mpd.availabilityStartTime.getTime()+1e3*i)/1e3}function o(e){u||void 0!==e.offset&&(r(e.offset/1e3),u=!0)}function s(){i=0,u=!1,n=NaN}return{initialize:function(){s(),t.on(d.default.TIME_SYNCHRONIZATION_COMPLETED,o,this)},isTimeSyncCompleted:function(){return u},setTimeSyncCompleted:function(e){u=e},getClientTimeOffset:function(){return i},setClientTimeOffset:r,getExpectedLiveEdge:function(){return n},setExpectedLiveEdge:function(e){n=e},calcAvailabilityStartTimeFromPresentationTime:function(e,t,n){return a.call(this,e,t,n)},calcAvailabilityEndTimeFromPresentationTime:function(e,t,n){return a.call(this,e,t,n,!0)},calcPresentationTimeFromWallTime:l,calcPresentationTimeFromMediaTime:function(e,t){return e+(t.adaptation.period.start-t.presentationTimeOffset)},calcPeriodRelativeTimeFromMpdRelativeTime:function(e,t){return t-e.adaptation.period.start},calcMediaTimeFromPresentationTime:function(e,t){return e-t.adaptation.period.start+t.presentationTimeOffset},calcSegmentAvailabilityRange:function(e,t){var n=e.adaptation.period,r={start:n.start,end:n.start+n.duration};if(!t)return r;if(!u&&e.segmentAvailabilityRange)return e.segmentAvailabilityRange;var i=e.segmentDuration||(e.segments&&e.segments.length?e.segments[e.segments.length-1].duration:0),a=l(new Date,n),o=n.start+n.duration;r.start=Math.max(a-n.mpd.timeShiftBufferDepth,n.start);var s=void 0!==e.availabilityTimeOffset&&e.availabilityTimeOffset<i?i-e.availabilityTimeOffset:i;return r.end=o<=a&&a-s<o?o:a-s,r},getPeriodEnd:function(e,t){var n=e.adaptation.period;if(!t)return n.start+n.duration;if(!u&&e.segmentAvailabilityRange)return e.segmentAvailabilityRange;var r=e.segmentDuration||(e.segments&&e.segments.length?e.segments[e.segments.length-1].duration:0),i=l(new Date,n),a=n.start+n.duration,o=void 0!==e.availabilityTimeOffset&&e.availabilityTimeOffset<r?r-e.availabilityTimeOffset:r;return Math.min(i-o,a)},calcWallTimeForSegment:function(e,t){var n=void 0,r=void 0,i=void 0;return t&&(n=e.representation.adaptation.period.mpd.suggestedPresentationDelay,r=e.presentationStartTime+n,i=new Date(e.availabilityStartTime.getTime()+1e3*r)),i},reset:function(){t.off(d.default.TIME_SYNCHRONIZATION_COMPLETED,o,this),s()}}}a.__dashjs_factory_name="TimelineConverter",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{47:47,48:48,55:55}],83:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(107)),p=e(80);function o(e,E){var T=(e=e||{}).timelineConverter;function t(){if(!T||!T.hasOwnProperty("calcMediaTimeFromPresentationTime")||!T.hasOwnProperty("calcSegmentAvailabilityRange"))throw new Error(a.default.MISSING_CONFIG_ERROR)}function n(e,t){var n,r,i,a=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,o=a.SegmentTimeline,s=a.SegmentURL_asArray,u=0,l=0,f=-1,d=void 0,c=void 0,h=void 0,p=void 0,g=void 0,m=void 0;i=e.timescale;var _=!1;for(c=0,r=(n=o.S_asArray).length;c<r&&!_;c++){if(p=0,(d=n[c]).hasOwnProperty("r")&&(p=d.r),d.hasOwnProperty("t")&&(l=(u=d.t)/i),p<0){if((m=n[c+1])&&m.hasOwnProperty("t"))g=m.t/i;else{var v=e.segmentAvailabilityRange?e.segmentAvailabilityRange.end:T.calcSegmentAvailabilityRange(e,E).end;g=T.calcMediaTimeFromPresentationTime(v,e),e.segmentDuration=d.d/i}p=Math.ceil((g-l)/(d.d/i))-1}for(h=0;h<=p&&!_;h++)(_=t(u,l,a,s,d,i,++f,c))&&(e.segmentDuration=d.d/i,(h<p-1||c<r-1)&&f++),l=(u+=d.d)/i}e.availableSegmentsNumber=f}return{getSegmentByIndex:function(f,e,d){if(t(),!f)throw new Error("no representation");var c=null,h=!1;return n(f,function(e,t,n,r,i,a,o,s){if(h||d<0){var u=n.media,l=i.mediaRange;return r&&(u=r[s].media||"",l=r[s].mediaRange),c=(0,p.getTimeBasedSegment)(T,E,f,e,i.d,a,u,l,o,i.tManifest),!0}return d-.5<=t&&(h=!0),!1}),c},getSegmentByTime:function(f,e){if(t(),!f)throw new Error("no representation");void 0===e&&(e=null);var d=null,c=T.calcMediaTimeFromPresentationTime(e,f);return n(f,function(e,t,n,r,i,a,o,s){if(t>=c-i.d/a*1.5){var u=n.media,l=i.mediaRange;return r&&(u=r[s].media||"",l=r[s].mediaRange),d=(0,p.getTimeBasedSegment)(T,E,f,e,i.d,a,u,l,o,i.tManifest),!0}return!1}),d}}}o.__dashjs_factory_name="TimelineSegmentsGetter";var s=i.default.getClassFactory(o);n.default=s,t.exports=n.default},{107:107,48:48,80:80}],84:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.period=null,this.index=-1,this.type=null},t.exports=n.default},{}],85:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function i(e,t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.url=e||"",this.serviceLocation=t||e||"",this.dvb_priority=n||1,this.dvb_weight=r||1,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0}i.DEFAULT_DVB_PRIORITY=1,i.DEFAULT_DVB_WEIGHT=1,n.default=i,t.exports=n.default},{}],86:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN},t.exports=n.default},{}],87:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri=""},t.exports=n.default},{}],88:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.DVRWindowSize=NaN,this.loadedTime=null,this.availableFrom=null,this.minBufferTime=NaN,this.duration=NaN,this.isDynamic=!1,this.maxFragmentDuration=null},t.exports=n.default},{}],89:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"isMediaInfoEqual",value:function(e){if(!e)return!1;var t=this.id===e.id,n=this.viewpoint===e.viewpoint,r=this.lang===e.lang,i=this.roles.toString()===e.roles.toString(),a=this.accessibility.toString()===e.accessibility.toString(),o=this.audioChannelConfiguration.toString()===e.audioChannelConfiguration.toString();return t&&n&&r&&i&&a&&o}}]),a);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.id=null,this.index=null,this.type=null,this.streamInfo=null,this.representationCount=0,this.lang=null,this.viewpoint=null,this.accessibility=null,this.audioChannelConfiguration=null,this.roles=null,this.codec=null,this.mimeType=null,this.contentProtection=null,this.isText=!1,this.KID=null,this.bitrateList=null}n.default=i,t.exports=n.default},{}],90:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manifest=null,this.suggestedPresentationDelay=0,this.availabilityStartTime=null,this.availabilityEndTime=Number.POSITIVE_INFINITY,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.minimumUpdatePeriod=NaN,this.mediaPresentationDuration=NaN},t.exports=n.default},{}],91:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null}r.DEFAULT_ID="defaultId",n.default=r,t.exports=n.default},{}],92:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a,o=e(62),s=(a=o)&&a.__esModule?a:{default:a},u=(r(l,null,[{key:"hasInitialization",value:function(e){return null!==e.initialization||null!==e.range}},{key:"hasSegments",value:function(e){return e.segmentInfoType!==s.default.BASE_URL&&e.segmentInfoType!==s.default.SEGMENT_BASE&&!e.indexRange}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.id=null,this.index=-1,this.adaptation=null,this.segmentInfoType=null,this.initialization=null,this.codecs=null,this.codecPrivateData=null,this.segmentDuration=NaN,this.timescale=1,this.startNumber=1,this.indexRange=null,this.range=null,this.presentationTimeOffset=0,this.MSETimeOffset=NaN,this.segmentAvailabilityRange=null,this.availableSegmentsNumber=0,this.bandwidth=NaN,this.width=NaN,this.height=NaN,this.scanType=null,this.maxPlayoutRate=NaN,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0}n.default=u,t.exports=n.default},{62:62}],93:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.quality=null,this.DVRWindow=null,this.fragmentDuration=null,this.mediaInfo=null,this.MSETimeOffset=null},t.exports=n.default},{}],94:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.availabilityIdx=NaN,this.wallStartTime=NaN,this.representation=null},t.exports=n.default},{}],95:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.index=null,this.start=NaN,this.duration=NaN,this.manifestInfo=null,this.isLast=!0},t.exports=n.default},{}],96:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.schemeIdUri="",this.value=""},t.exports=n.default},{}],97:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var s=r(e(130)),u=r(e(176)),l=r(e(173)),f=r(e(47)),d=r(e(155)),c=r(e(55)),h=r(e(52)),i=r(e(48));function a(e){e=e||{};var t,n=this.context,i=(0,f.default)(n).getInstance(),a=void 0,o=void 0;return a={checkForExistence:function(t){function e(e){i.trigger(c.default.CHECK_FOR_EXISTENCE_COMPLETED,{request:t,exists:e})}if(t){var n=new u.default(t.url);o.load({request:n,success:function(){e(!0)},error:function(){e(!1)}})}else e(!1)},load:function(n){function r(e,t){i.trigger(c.default.LOADING_COMPLETED,{request:n,response:e||null,error:t||null,sender:a})}n?o.load({request:n,progress:function(e){i.trigger(c.default.LOADING_PROGRESS,{request:n,stream:e.stream}),e.data&&i.trigger(c.default.LOADING_DATA_PROGRESS,{request:n,response:e.data||null,error:null,sender:a})},success:function(e){r(e)},error:function(e,t,n){r(void 0,new l.default(h.default.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE,n,t))},abort:function(e){e&&i.trigger(c.default.LOADING_ABANDONED,{request:e,mediaType:e.mediaType,sender:a})}}):r(void 0,new l.default(h.default.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE,h.default.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE))},abort:function(){o&&o.abort()},reset:function(){o&&(o.abort(),o=null)}},t=(0,d.default)(n).getInstance(),o=(0,s.default)(n).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,boxParser:t,useFetch:e.settings.get().streaming.lowLatencyEnabled}),a}a.__dashjs_factory_name="FragmentLoader",n.default=i.default.getClassFactory(a),t.exports=n.default},{130:130,155:155,173:173,176:176,47:47,48:48,52:52,55:55}],98:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var p=r(e(107)),a=r(e(121)),o=r(e(130)),g=r(e(168)),m=r(e(180)),_=r(e(173)),v=e(189),E=r(e(47)),T=r(e(55)),y=r(e(52)),i=r(e(48)),A=r(e(66)),b=r(e(46));function s(e){e=e||{};var s=this.context,u=(0,E.default)(s).getInstance(),l=(0,g.default)(s).getInstance(),t=void 0,f=void 0,n=void 0,d=void 0,c=void 0,h=e.mssHandler,r=e.errHandler;function i(e){u.trigger(T.default.INTERNAL_MANIFEST_LOADED,{manifest:e.manifest})}return t={load:function(o){var e=new m.default(o,v.HTTPRequest.MPD_TYPE);n.load({request:e,success:function(e,t,n){if(d){var r=void 0,i=void 0,a=void 0;if(n&&n!==o?(i=l.parseBaseUrl(n),r=n):(l.isRelative(o)&&(o=l.resolve(o,window.location.href)),i=l.parseBaseUrl(o)),null===c&&(c=function(e){var t=null;return-1<e.indexOf("SmoothStreamingMedia")?(h&&(t=h.createMssParser(),h.registerEvents()),t):-1<e.indexOf("MPD")?(0,A.default)(s).create():t}(e)),null!==c){d.setMatchers(c.getMatchers()),d.setIron(c.getIron());try{a=c.parse(e)}catch(e){return void u.trigger(T.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new _.default(y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+""+o)})}a?(a.url=r||o,a.originalUrl||(a.originalUrl=a.url),a.hasOwnProperty(p.default.LOCATION)&&(i=l.parseBaseUrl(a.Location_asArray[0]),f.debug("BaseURI set by Location to: "+i)),a.baseUri=i,a.loadedTime=new Date,d.resolveManifestOnLoad(a)):u.trigger(T.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new _.default(y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+""+o)})}else u.trigger(T.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new _.default(y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+""+o)})}},error:function(e,t,n){u.trigger(T.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new _.default(y.default.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE,y.default.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE+(o+", ")+n)})}})},reset:function(){u.off(T.default.XLINK_READY,i,t),d&&(d.reset(),d=null),n&&(n.abort(),n=null),h&&h.reset()}},f=(0,b.default)(s).getInstance().getLogger(t),u.on(T.default.XLINK_READY,i,t),n=(0,o.default)(s).create({errHandler:r,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier}),d=(0,a.default)(s).create({errHandler:r,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier}),c=null,t}s.__dashjs_factory_name="ManifestLoader";var u=i.default.getClassFactory(s);n.default=u,t.exports=n.default},{107:107,121:121,130:130,168:168,173:173,180:180,189:189,46:46,47:47,48:48,52:52,55:55,66:66}],99:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var b=r(e(47)),I=r(e(55)),i=r(e(48)),S=r(e(46)),R=r(e(52));function a(){var e=this.context,r=(0,b.default)(e).getInstance(),t=void 0,i=void 0,a=void 0,n=void 0,o=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,c=void 0;function h(){a=NaN,o=!(s=!1),p()}function p(){null!==n&&(clearInterval(n),n=null)}function g(e){p(),isNaN(e)&&!isNaN(a)&&(e=1e3*a),isNaN(e)||(i.debug("Refresh manifest in "+e+" milliseconds."),n=setTimeout(v,e))}function m(){s=!0;var e=l.getValue(),t=e.url,n=f.getLocation(e);n&&(t=n),u.load(t)}function _(e){l.setValue(e);var t=new Date,n=(t.getTime()-e.loadedTime.getTime())/1e3;2147483647<1e3*(a=f.getManifestUpdatePeriod(e,n))&&(a=2147483.647),r.trigger(I.default.MANIFEST_UPDATED,{manifest:e}),i.info("Manifest has been refreshed at "+t+"["+t.getTime()/1e3+"] "),o||g()}function v(){o&&!c.get().streaming.scheduleWhilePaused||(s?g(c.get().streaming.manifestUpdateRetryInterval):m())}function E(e){e.error?e.error.code===R.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE&&d.error(e.error):_(e.manifest)}function T(){o=!1,g()}function y(){o=!0,p()}function A(){s=!1}return t={initialize:function(){h(),r.on(I.default.STREAMS_COMPOSED,A,this),r.on(I.default.PLAYBACK_STARTED,T,this),r.on(I.default.PLAYBACK_PAUSED,y,this),r.on(I.default.INTERNAL_MANIFEST_LOADED,E,this)},setManifest:function(e){_(e)},refreshManifest:m,setConfig:function(e){e&&(e.manifestModel&&(l=e.manifestModel),e.adapter&&(f=e.adapter),e.mediaPlayerModel&&e.mediaPlayerModel,e.manifestLoader&&(u=e.manifestLoader),e.errHandler&&(d=e.errHandler),e.settings&&(c=e.settings))},reset:function(){r.off(I.default.PLAYBACK_STARTED,T,this),r.off(I.default.PLAYBACK_PAUSED,y,this),r.off(I.default.STREAMS_COMPOSED,A,this),r.off(I.default.INTERNAL_MANIFEST_LOADED,E,this),h()}},i=(0,S.default)(e).getInstance().getLogger(t),t}a.__dashjs_factory_name="ManifestUpdater",n.default=i.default.getClassFactory(a),t.exports=n.default},{46:46,47:47,48:48,52:52,55:55}],100:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var ee=r(e(2)),te=r(e(107)),ne=r(e(108)),re=r(e(117)),ie=r(e(119)),ae=r(e(115)),oe=r(e(110)),se=r(e(98)),ue=r(e(160)),le=r(e(156)),fe=r(e(151)),de=r(e(165)),ce=r(e(149)),he=r(e(127)),pe=r(e(124)),ge=r(e(125)),me=r(e(109)),_e=r(e(128)),ve=r(e(158)),Ee=r(e(46)),Te=r(e(52)),ye=r(e(47)),Ae=r(e(55)),be=r(e(101)),Ie=r(e(48)),Se=r(e(49)),Re=e(51),we=r(e(57)),De=r(e(59)),Ne=r(e(82)),Me=e(189),Oe=r(e(1)),Ce=r(e(8)),Pe=r(e(173)),Le=e(166);function i(){var i="You must first call initialize() and set a source before calling this method",r="You must first call initialize() and set a valid source and view before calling this method",t="You must first call attachView() to set the video element before calling this method",e="You must first call attachSource() with a valid source before calling this method",n="MediaPlayer not initialized!",a=this.context,o=(0,ye.default)(a).getInstance(),s=(0,Se.default)(a).getInstance(),u=(0,Ee.default)(a).getInstance(),l=void 0,f=void 0,d=void 0,c=void 0,h=void 0,p=void 0,g=void 0,m=void 0,_=void 0,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,w=void 0,D=void 0,N=void 0,M=void 0,O=void 0,C=void 0,P=void 0,L=void 0;function x(){return!!d&&!!O.getElement()}function F(){return(0,Re.getVersionString)()}function U(){if(!g)throw r;return D.isPaused()}function B(e){var t=N.getCurrentDVRInfo();if(!t)return 0;var n=D.getLiveDelay(),r=t.range.start+e;return r>t.range.end-n&&(r=t.range.end-n),r}function k(e){if(!g)throw r;var t=V().currentTime;if(void 0!==e)t=w.getTimeRelativeToStreamId(t,e);else if(D.getIsDynamic()){var n=N.getCurrentDVRInfo();t=null===n?0:G()-(n.range.end-n.time)}return t}function G(){if(!g)throw r;var e=V().duration;if(D.getIsDynamic()){var t,n=N.getCurrentDVRInfo();if(!n)return 0;e=(t=n.range.end-n.range.start)<n.manifestInfo.DVRWindowSize?t:n.manifestInfo.DVRWindowSize}return e}function j(e){(0,Le.checkParameterType)(e,"boolean"),m=e}function q(){I.restoreDefaultUTCTimingSources()}function H(){return N}function V(){if(!O.getElement())throw t;return O.getElement()}function Y(e){if(!h)throw n;O.setElement(e),e&&(Z(),function(){if(y)return;var e=dashjs.MetricsReporting;if("function"==typeof e){var t=e(a).create();y=t.createMetricsReporting({debug:u,eventBus:o,mediaElement:V(),adapter:b,dashMetrics:N,events:Ae.default,constants:te.default,metricsConstants:ne.default})}}(),function(){if(A)return;var e=dashjs.MssHandler;"function"==typeof e&&(Te.default.extend(e.errors),A=e(a).create({eventBus:o,mediaPlayerModel:I,dashMetrics:N,manifestModel:M,playbackController:D,protectionController:T,baseURLController:(0,oe.default)(a).getInstance(),errHandler:S,events:Ae.default,constants:te.default,debug:u,initSegmentType:Me.HTTPRequest.INIT_SEGMENT_TYPE,BASE64:Oe.default,ISOBoxer:Ce.default}))}(),w&&w.switchToVideoElement()),g&&X(),J()}function z(e){if(!p)throw i;var t=w.getActiveStreamInfo();return E.getTracksFor(e,t)}function W(e){if(!h)throw n;"string"==typeof e&&P.initialize(e),d=e,(p||g)&&X(),x()&&J()}function K(){if(!p)throw i;var e=w.getActiveStreamInfo();return e?w.getStreamById(e.id):null}function X(){p=g=!1,b.reset(),w.reset(),D.reset(),_.reset(),E.reset(),C.reset(),T&&(s.get().streaming.keepProtectionMediaKeys?T.stop():(T.reset(),T=null,Z()))}function Q(){return(0,se.default)(a).create({errHandler:S,dashMetrics:N,mediaPlayerModel:I,requestModifier:(0,de.default)(a).getInstance(),mssHandler:A,settings:s})}function Z(){if(T)return T;var e=dashjs.Protection;if("function"!=typeof e)return null;var t=e(a).create();return Ae.default.extend(e.events),be.default.extend(e.events,{publicOnly:!0}),Te.default.extend(e.errors),R=R||(0,le.default)(a).getInstance(),T=t.createProtectionSystem({debug:u,errHandler:S,videoModel:O,capabilities:R,eventBus:o,events:Ae.default,BASE64:Oe.default,constants:te.default})}function $(e){var t=N.getCurrentDVRInfo();return t?e+(t.manifestInfo.availableFrom.getTime()/1e3+t.range.start):0}function J(){!p&&d&&(p=!0,f.info("Streaming Initialized"),function(){var e=Q();w=w||(0,ie.default)(a).getInstance(),E.setConfig({domStorage:L}),w.setConfig({capabilities:R,manifestLoader:e,manifestModel:M,mediaPlayerModel:I,protectionController:T,adapter:b,dashMetrics:N,errHandler:S,timelineConverter:v,videoModel:O,playbackController:D,abrController:_,mediaController:E,textController:C,settings:s}),D.setConfig({streamController:w,dashMetrics:N,mediaPlayerModel:I,adapter:b,videoModel:O,timelineConverter:v,uriFragmentModel:P,settings:s}),_.setConfig({streamController:w,domStorage:L,mediaPlayerModel:I,dashMetrics:N,adapter:b,videoModel:O,settings:s}),_.createAbrRulesCollection(),C.setConfig({errHandler:S,manifestModel:M,adapter:b,mediaController:E,streamController:w,videoModel:O}),w.initialize(m,c)}(),"string"==typeof d?w.load(d):w.loadWithManifest(d)),!g&&x()&&(g=!0,f.info("Playback Initialized"))}return l={initialize:function(e,t,n){R=R||(0,le.default)(a).getInstance(),S=(0,ue.default)(a).getInstance(),R.supportsMediaSource()?h||(h=!0,v=(0,Ne.default)(a).getInstance(),_=_||(0,me.default)(a).getInstance(),D=D||(0,re.default)(a).getInstance(),E=E||(0,ae.default)(a).getInstance(),b=(0,we.default)(a).getInstance(),M=(0,pe.default)(a).getInstance(),N=(0,De.default)(a).getInstance({settings:s}),C=(0,ce.default)(a).getInstance(),L=(0,ve.default)(a).getInstance({settings:s}),b.setConfig({constants:te.default,cea608parser:ee.default,errHandler:S,BASE64:Oe.default}),q(),j(void 0===n||n),e&&Y(e),t&&W(t),f.info("[dash.js "+F()+"] MediaPlayer has been initialized")):S.error(new Pe.default(Te.default.CAPABILITY_MEDIASOURCE_ERROR_CODE,Te.default.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE))},setConfig:function(e){e&&(e.capabilities&&(R=e.capabilities),e.streamController&&(w=e.streamController),e.playbackController&&(D=e.playbackController),e.mediaPlayerModel&&(I=e.mediaPlayerModel),e.abrController&&(_=e.abrController),e.mediaController&&(E=e.mediaController),e.settings&&(s=e.settings))},on:function(e,t,n){o.on(e,t,n)},off:function(e,t,n){o.off(e,t,n)},extend:function(e,t,n){Ie.default.extend(e,t,n,a)},attachView:Y,attachSource:W,isReady:x,preload:function(){if(O.getElement()||p)return!1;if(!d)throw e;J()},play:function(){if(!g)throw r;(!m||U()&&g)&&D.play()},isPaused:U,pause:function(){if(!g)throw r;D.pause()},isSeeking:function(){if(!g)throw r;return D.isSeeking()},isDynamic:function(){if(!g)throw r;return D.getIsDynamic()},seek:function(e){if(!g)throw r;if((0,Le.checkParameterType)(e,"number"),isNaN(e))throw te.default.BAD_ARGUMENT_ERROR;var t=D.getIsDynamic()?B(e):e;D.seek(t)},setPlaybackRate:function(e){V().playbackRate=e},getPlaybackRate:function(){return V().playbackRate},setMute:function(e){(0,Le.checkParameterType)(e,"boolean"),V().muted=e},isMuted:function(){return V().muted},setVolume:function(e){if("number"!=typeof e||isNaN(e)||e<0||1<e)throw te.default.BAD_ARGUMENT_ERROR;V().volume=e},getVolume:function(){return V().volume},time:k,duration:G,timeAsUTC:function(){if(!g)throw r;return k()<0?NaN:$(k())},durationAsUTC:function(){if(!g)throw r;return $(G())},getActiveStream:K,getDVRWindowSize:function(){var e=N.getCurrentDVRInfo();return e?e.manifestInfo.DVRWindowSize:0},getDVRSeekOffset:B,convertToTimeCode:function(e){e=Math.max(e,0);var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60);return(0===t?"":t<10?"0"+t.toString()+":":t.toString()+":")+(n<10?"0"+n.toString():n.toString())+":"+(r<10?"0"+r.toString():r.toString())},formatUTC:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3],i=new Date(1e3*e),a=i.toLocaleDateString(t),o=i.toLocaleTimeString(t,{hour12:n});return r?o+" "+a:o},getVersion:F,getDebug:function(){return u},getBufferLength:function(e){var t,n=[te.default.VIDEO,te.default.AUDIO,te.default.FRAGMENTED_TEXT];return e?-1===n.indexOf(e)?(f.warn("getBufferLength requested for invalid type"),NaN):(t=H().getCurrentBufferLevel(e))||NaN:(t=n.map(function(e){return 0<z(e).length?H().getCurrentBufferLevel(e):Number.MAX_VALUE}).reduce(function(e,t){return Math.min(e,t)}))===Number.MAX_VALUE?NaN:t},getTTMLRenderingDiv:function(){return O?O.getTTMLRenderingDiv():null},getVideoElement:V,getSource:function(){if(!d)throw e;return d},getCurrentLiveLatency:function(){if(!h)throw n;return g?D.getCurrentLiveLatency():NaN},getTopBitrateInfoFor:function(e){if(!p)throw i;return _.getTopBitrateInfoFor(e)},setAutoPlay:j,getAutoPlay:function(){return m},getDashMetrics:H,getQualityFor:function(e){if(!p)throw i;if(e!==te.default.IMAGE)return _.getQualityFor(e);var t=K();if(!t)return-1;var n=t.getThumbnailController();return n?n.getCurrentTrackIndex():-1},setQualityFor:function(e,t){if(!p)throw i;if(e===te.default.IMAGE){var n=K();if(!n)return;var r=n.getThumbnailController();r&&r.setTrackByIndex(t)}_.setPlaybackQuality(e,w.getActiveStreamInfo(),t)},updatePortalSize:function(){_.setElementSize(),_.setWindowResizeEventCalled(!0)},setTextDefaultLanguage:function(e){void 0===C&&(C=(0,ce.default)(a).getInstance()),C.setTextDefaultLanguage(e)},getTextDefaultLanguage:function(){return void 0===C&&(C=(0,ce.default)(a).getInstance()),C.getTextDefaultLanguage()},setTextDefaultEnabled:function(e){void 0===C&&(C=(0,ce.default)(a).getInstance()),C.setTextDefaultEnabled(e)},getTextDefaultEnabled:function(){return void 0===C&&(C=(0,ce.default)(a).getInstance()),C.getTextDefaultEnabled()},enableText:function(e){void 0===C&&(C=(0,ce.default)(a).getInstance()),C.enableText(e)},enableForcedTextStreaming:function(e){void 0===C&&(C=(0,ce.default)(a).getInstance()),C.enableForcedTextStreaming(e)},isTextEnabled:function(){return void 0===C&&(C=(0,ce.default)(a).getInstance()),C.isTextEnabled()},setTextTrack:function(e){if(!g)throw r;void 0===C&&(C=(0,ce.default)(a).getInstance()),C.setTextTrack(e)},getBitrateInfoListFor:function(e){if(!p)throw i;var t=K();return t?t.getBitrateListFor(e):[]},getStreamsFromManifest:function(e){if(!p)throw i;return b.getStreamsInfo(e)},getTracksFor:z,getTracksForTypeFromManifest:function(e,t,n){if(!p)throw i;return(n=n||b.getStreamsInfo(t,1)[0])?b.getAllMediaInfoForType(n,e,t):[]},getCurrentTrackFor:function(e){if(!p)throw i;var t=w.getActiveStreamInfo();return E.getCurrentTrackFor(e,t)},setInitialMediaSettingsFor:function(e,t){if(!h)throw n;E.setInitialSettings(e,t)},getInitialMediaSettingsFor:function(e){if(!h)throw n;return E.getInitialSettings(e)},setCurrentTrack:function(e){if(!p)throw i;E.setTrack(e)},getTrackSwitchModeFor:function(e){if(!h)throw n;return E.getSwitchMode(e)},setTrackSwitchModeFor:function(e,t){if(!h)throw n;E.setSwitchMode(e,t)},setSelectionModeForInitialTrack:function(e){if(!h)throw n;E.setSelectionModeForInitialTrack(e)},getSelectionModeForInitialTrack:function(){if(!h)throw n;return E.getSelectionModeForInitialTrack()},addABRCustomRule:function(e,t,n){I.addABRCustomRule(e,t,n)},removeABRCustomRule:function(e){I.removeABRCustomRule(e)},removeAllABRCustomRule:function(){I.removeABRCustomRule()},getAverageThroughput:function(e){var t=_.getThroughputHistory();return t?t.getAverageThroughput(e):0},retrieveManifest:function(e,n){var r=Q(),i=this;o.on(Ae.default.INTERNAL_MANIFEST_LOADED,function e(t){t.error?n(null,t.error):n(t.manifest),o.off(Ae.default.INTERNAL_MANIFEST_LOADED,e,i),r.reset()},i),P.initialize(e),r.load(e)},addUTCTimingSource:function(e,t){I.addUTCTimingSource(e,t)},removeUTCTimingSource:function(e,t){I.removeUTCTimingSource(e,t)},clearDefaultUTCTimingSources:function(){I.clearDefaultUTCTimingSources()},restoreDefaultUTCTimingSources:q,setXHRWithCredentialsForType:function(e,t){I.setXHRWithCredentialsForType(e,t)},getXHRWithCredentialsForType:function(e){return I.getXHRWithCredentialsForType(e)},getProtectionController:function(){return Z()},attachProtectionController:function(e){T=e},setProtectionData:function(e){c=e,w&&w.setProtectionData(c)},displayCaptionsOnTop:function(e){var t=(0,fe.default)(a).getInstance();t.setConfig({videoModel:O}),t.initialize(),t.setDisplayCConTop(e)},attachTTMLRenderingDiv:function(e){if(!O.getElement())throw t;O.setTTMLRenderingDiv(e)},getCurrentTextTrackIndex:function(){var e=NaN;return C&&(e=C.getCurrentTrackIdx()),e},getThumbnail:function(e,t){if(e<0)return null;var n=D.getIsDynamic()?B(e):e,r=w.getStreamForTime(n);if(null===r)return null;var i=r.getThumbnailController();if(!i)return null;var a=w.getTimeRelativeToStreamId(n,r.getId());return i.get(a,t)},getDashAdapter:function(){return b},getSettings:function(){return s.get()},updateSettings:function(e){s.update(e)},resetSettings:function(){s.reset()},reset:function(){W(null),Y(null),c=null,T&&(T.reset(),T=null),y&&(y.reset(),y=null),s.reset()}},f=u.getLogger(l),m=!(p=g=h=!1),b=c=T=null,Ae.default.extend(be.default),I=(0,ge.default)(a).getInstance(),O=(0,_e.default)(a).getInstance(),P=(0,he.default)(a).getInstance(),l}i.__dashjs_factory_name="MediaPlayer";var a=Ie.default.getClassFactory(i);a.events=be.default,a.errors=Te.default,Ie.default.updateClassFactory(i.__dashjs_factory_name,a),n.default=a,t.exports=n.default},{1:1,101:101,107:107,108:108,109:109,110:110,115:115,117:117,119:119,124:124,125:125,127:127,128:128,149:149,151:151,156:156,158:158,160:160,165:165,166:166,173:173,189:189,2:2,46:46,47:47,48:48,49:49,51:51,52:52,55:55,57:57,59:59,8:8,82:82,98:98}],101:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(56);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(a.prototype),"constructor",this).call(this),this.AST_IN_FUTURE="astInFuture",this.BUFFER_EMPTY="bufferStalled",this.BUFFER_LOADED="bufferLoaded",this.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",this.ERROR="error",this.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",this.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",this.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",this.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",this.LOG="log",this.MANIFEST_LOADED="manifestLoaded",this.METRICS_CHANGED="metricsChanged",this.METRIC_CHANGED="metricChanged",this.METRIC_ADDED="metricAdded",this.METRIC_UPDATED="metricUpdated",this.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",this.PERIOD_SWITCH_STARTED="periodSwitchStarted",this.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",this.QUALITY_CHANGE_RENDERED="qualityChangeRendered",this.TRACK_CHANGE_RENDERED="trackChangeRendered",this.SOURCE_INITIALIZED="sourceInitialized",this.STREAM_INITIALIZED="streamInitialized",this.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",this.TEXT_TRACKS_ADDED="allTextTracksAdded",this.TEXT_TRACK_ADDED="textTrackAdded",this.TTML_PARSED="ttmlParsed",this.TTML_TO_PARSE="ttmlToParse",this.CAPTION_RENDERED="captionRendered",this.CAPTION_CONTAINER_RESIZE="captionContainerResize",this.CAN_PLAY="canPlay",this.PLAYBACK_ENDED="playbackEnded",this.PLAYBACK_ERROR="playbackError",this.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",this.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",this.PLAYBACK_PAUSED="playbackPaused",this.PLAYBACK_PLAYING="playbackPlaying",this.PLAYBACK_PROGRESS="playbackProgress",this.PLAYBACK_RATE_CHANGED="playbackRateChanged",this.PLAYBACK_SEEKED="playbackSeeked",this.PLAYBACK_SEEKING="playbackSeeking",this.PLAYBACK_SEEK_ASKED="playbackSeekAsked",this.PLAYBACK_STALLED="playbackStalled",this.PLAYBACK_STARTED="playbackStarted",this.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",this.PLAYBACK_WAITING="playbackWaiting",this.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged"}var o=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((r=i)&&r.__esModule?r:{default:r}).default),a);n.default=o,t.exports=n.default},{56:56}],102:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var u=r(e(46)),i=r(e(48));function a(e){var t=this.context,n=void 0,r=void 0,i=void 0,a=[],o=e;function s(t,n){a=a.filter(function(e){return!((isNaN(n)||e.start<n)&&(isNaN(t)||e.end>t))})}return n={getAllBufferRanges:function(){for(var t=[],e=0;e<a.length;e++){var n=a[e];0===t.length||n.start>t[t.length-1].end?t.push({start:n.start,end:n.end}):t[t.length-1].end=n.end}var r={start:function(e){return t[e].start},end:function(e){return t[e].end}};return Object.defineProperty(r,"length",{get:function(){return t.length}}),r},append:function(e){i="InitializationSegment"!==e.segmentType?(a.push(e),a.sort(function(e,t){return e.start-t.start}),null):e,r.debug("PreBufferSink appended chunk s: "+e.start+"; e: "+e.end),o&&o({chunk:e})},remove:s,abort:function(){},discharge:function(e,t){var n=function(t,n){return a.filter(function(e){return(isNaN(n)||e.start<n)&&(isNaN(t)||e.end>t)})}(e,t);return i&&(n.push(i),i=null),s(e,t),n},reset:function(){a=[],o=i=null},updateTimestampOffset:function(){},hasDiscontinuitiesAfter:function(){return!1},waitForUpdateEnd:function(e){e()},getBuffer:function(){return this}},r=(0,u.default)(t).getInstance().getLogger(n),n}a.__dashjs_factory_name="PreBufferSink";var o=i.default.getClassFactory(a);n.default=o,t.exports=n.default},{46:46,48:48}],103:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var y=r(e(46)),A=r(e(173)),b=r(e(47)),I=r(e(55)),i=r(e(48)),S=r(e(149)),R=r(e(52));function a(i,r,e,a){var o=this.context,s=(0,b.default)(o).getInstance(),u=void 0,l=void 0,f=void 0,d=void 0,c=void 0,t=[],h=[],p=e;function g(){try{return f.buffered}catch(e){return l.error("getAllBufferRanges exception: "+e.message),null}}function m(e,t,n,r){t&&0<t.length&&t.length<n.length&&function(e,t){for(var n=0;n<e.length;n++){var r=Math.round(e.start(n)),i=Math.round(e.end(n));if(i===t.start||r===t.end||t.start>=r&&t.end<=i)return!0}return!1}(t,r)&&s.trigger(I.default.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:e,from:n.end(n.length-2),to:n.start(n.length-1),unintended:!0})}function n(){if(0<t.length){var e=t.shift();f.updating?T(e):(e(),n())}}function _(){f.updating||n()}function v(){f.updating||n()}function E(){l.error("SourceBufferSink error",r.type)}function T(e){t.push(e),f.updating||n()}return u={getAllBufferRanges:g,getBuffer:function(){return f},append:function(e){e?(h.push(e),d||T(function r(){var i=this;var a=this;0<h.length&&function(){d=!0;var t=h[0];h.splice(0,1);var n=[],e=function(){var e=g();m(a,n,e,t),0<h.length?r.call(this):(d=!1,p&&p({chunk:t}))};try{0===t.bytes.length?e.call(i):(n=g(),f.appendBuffer?f.appendBuffer(t.bytes):f.append(t.bytes,t),T(e.bind(i)))}catch(e){l.fatal('SourceBuffer append failed "'+e+'"'),0<h.length?r():d=!1,p&&p({chunk:t,error:new A.default(e.code,e.message)})}}()}.bind(this))):p({chunk:e,error:new A.default(R.default.APPEND_ERROR_CODE,R.default.APPEND_ERROR_MESSAGE)})},remove:function(t,n,e){var r=this;T(function(){try{0<=t&&t<n&&(e||"ended"!==i.readyState)&&f.remove(t,n),T(function(){s.trigger(I.default.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:r,from:t,to:n,unintended:!1})})}catch(e){s.trigger(I.default.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:r,from:t,to:n,unintended:!1,error:new A.default(e.code,e.message)})}})},abort:function(){try{"open"===i.readyState?f.abort():f.setTextTrack&&"ended"===i.readyState&&f.abort()}catch(e){l.error('SourceBuffer append abort failed: "'+e+'"')}h=[]},reset:function(e){if(f){if("function"==typeof f.removeEventListener&&(f.removeEventListener("updateend",v,!1),f.removeEventListener("error",E,!1),f.removeEventListener("abort",E,!1)),clearInterval(c),!e){try{f.getClassName&&"TextSourceBuffer"===f.getClassName()||i.removeSourceBuffer(f)}catch(e){l.error("Failed to remove source buffer from media source.")}f=null}d=!1}h=[],p=null},updateTimestampOffset:function(e){f.timestampOffset===e||isNaN(e)||T(function(){f.timestampOffset=e})},hasDiscontinuitiesAfter:function(e){try{var t=g();if(t&&1<t.length)for(var n=0,r=t.length;n<r;n++)if(0<n&&e<t.start(n)&&t.start(n)>t.end(n-1)+.1)return!0}catch(e){l.error("hasDiscontinuities exception: "+e.message)}return!1},waitForUpdateEnd:T},function(){l=(0,y.default)(o).getInstance().getLogger(u),d=!1;var t=r.codec;try{if(t.match(/application\/mp4;\s*codecs="(stpp|wvtt).*"/i))throw new Error("not really supported");(f=a||i.addSourceBuffer(t)).changeType&&a&&(l.debug("Doing period transition with changeType"),f.changeType(t));if("function"==typeof f.addEventListener)try{f.addEventListener("updateend",v,!1),f.addEventListener("error",E,!1),f.addEventListener("abort",E,!1)}catch(e){c=setInterval(_,50)}else c=setInterval(_,50)}catch(e){if(!r.isText&&-1===t.indexOf('codecs="stpp')&&-1===t.indexOf('codecs="wvtt'))throw e;var n=(0,S.default)(o).getInstance();f=n.getTextSourceBuffer()}}(),u}a.__dashjs_factory_name="SourceBufferSink";var o=i.default.getClassFactory(a);n.default=o,t.exports=n.default},{149:149,173:173,46:46,47:47,48:48,52:52,55:55}],104:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var re=r(e(107)),ie=r(e(105)),ae=r(e(113)),oe=r(e(114)),se=r(e(152)),ue=r(e(47)),le=r(e(55)),fe=r(e(46)),de=r(e(52)),i=r(e(48)),ce=r(e(173));function a(s){s=s||{};var u=this.context,i=(0,ue.default)(u).getInstance(),l=s.manifestModel,f=s.mediaPlayerModel,a=s.manifestUpdater,d=s.adapter,o=s.capabilities,c=s.errHandler,h=s.timelineConverter,e=s.dashMetrics,p=s.abrController,g=s.playbackController,m=s.mediaController,_=s.textController,v=s.videoModel,E=s.settings,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,r=void 0,R=void 0,w=void 0,t=void 0,D=void 0,N=void 0,n=void 0,M=void 0,O=[{codec:"avc1",compatibleCodecs:["avc3"]},{codec:"avc3",compatibleCodecs:["avc1"]}];function C(e){for(var t=A?A.length:0,n=0;n<t;n++){A[n].getFragmentModel().removeExecutedRequestsBeforeTime(F()+x()),A[n].reset(!1,e)}te(I=b=!(A=[])),i.off(le.default.CURRENT_TRACK_CHANGED,q,T)}function P(){C(),S=null,R=!(r={})}function L(){k(),g&&g.pause(),t&&(t.reset(),t=null),P(),i.off(le.default.DATA_UPDATE_COMPLETED,Q,T),i.off(le.default.BUFFERING_COMPLETED,X,T),w&&(i.off(le.default.KEY_ERROR,G,T),i.off(le.default.SERVER_CERTIFICATE_UPDATED,G,T),i.off(le.default.LICENSE_REQUEST_COMPLETE,G,T),i.off(le.default.KEY_SYSTEM_SELECTED,G,T),i.off(le.default.KEY_SESSION_CREATED,G,T),i.off(le.default.KEY_STATUSES_CHANGED,G,T)),te(!1)}function x(){return S?S.duration:NaN}function F(){return S?S.start:NaN}function U(){return S}function B(){if(!(p&&p.hasOwnProperty("getBitrateList")&&d&&d.hasOwnProperty("getAllMediaInfoForType")&&d.hasOwnProperty("getEventsFor")))throw new Error(re.default.MISSING_CONFIG_ERROR)}function k(){N&&N.stop()}function G(e){e.error&&(c.error(e.error),y.fatal(e.error.message),L())}function j(e){var t,n=e?e.type:null,r=void 0;if(n===re.default.MUXED)return r="Multiplexed representations are intentionally not supported, as they are not compliant with the DASH-AVC/264 guidelines",y.fatal(r),c.error(new ce.default(de.default.MANIFEST_ERROR_ID_MULTIPLEXED_CODE,r,l.getValue())),!1;if(n===re.default.TEXT||n===re.default.FRAGMENTED_TEXT||n===re.default.EMBEDDED_TEXT||n===re.default.IMAGE)return!0;if(t=e.codec,y.debug(n+" codec: "+t),e.contentProtection&&!o.supportsEncryptedMedia())c.error(new ce.default(de.default.CAPABILITY_MEDIAKEYS_ERROR_CODE,de.default.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE));else if(!o.supportsCodec(t))return r=n+"Codec ("+t+") is not supported.",y.error(r),!1;return!0}function q(e){if(e.newMediaInfo.streamInfo.id===S.id){var t=e.newMediaInfo,n=l.getValue();d.setCurrentMediaInfo(S.id,t.type,t);var r=Z(e.newMediaInfo);if(r){var i=g.getTime();y.info("Stream - Process track changed at current time "+i),y.debug("Stream - Update stream controller"),n.refreshManifestOnSwitchTrack?(y.debug("Stream - Refreshing manifest for switch track"),M=e,a.refreshManifest()):(r.selectMediaInfo(t),t.type!==re.default.FRAGMENTED_TEXT?(p.updateTopQualityIndex(t),r.switchTrackAsked(),r.getFragmentModel().abortRequests()):(r.getScheduleController().setSeekTarget(NaN),r.setIndexHandlerTime(i),r.resetIndexHandler()))}}}function H(e,t){var n=d.getAllMediaInfoForType(S,e),r=null,i=void 0;if(n&&0!==n.length){for(var a=0,o=n.length;a<o;a++)if(r=n[a],e===re.default.EMBEDDED_TEXT)_.addEmbeddedTrack(r);else{if(!j(r))continue;m.addTrack(r)}e!==re.default.EMBEDDED_TEXT&&0!==m.getTracksFor(e,S).length&&(e!==re.default.IMAGE?((e!==re.default.FRAGMENTED_TEXT||e===re.default.FRAGMENTED_TEXT&&_.getTextDefaultEnabled())&&(m.checkInitialMediaSettingsForType(e,S),i=m.getCurrentTrackFor(e,S)),e!==re.default.FRAGMENTED_TEXT||_.getTextDefaultEnabled()||(i=m.getTracksFor(e,S)[0]),function(e,t,n,r){var i=(0,ie.default)(u).create({type:e?e.type:null,mimeType:e?e.mimeType:null,timelineConverter:h,adapter:d,manifestModel:l,mediaPlayerModel:f,dashMetrics:s.dashMetrics,baseURLController:s.baseURLController,stream:T,abrController:p,playbackController:g,mediaController:m,streamController:s.streamController,textController:_,errHandler:c,settings:E});if(i.initialize(n),p.updateTopQualityIndex(e),r?(i.setBuffer(r.buffer),i.setIndexHandlerTime(r.currentTime),A[r.replaceIdx]=i):A.push(i),!r||!r.ignoreMediaInfo)if(!e||e.type!==re.default.TEXT&&e.type!==re.default.FRAGMENTED_TEXT)i.addMediaInfo(e,!0);else{for(var a=void 0,o=0;o<t.length;o++)t[o].index===e.index&&(a=o),i.addMediaInfo(t[o]);i.selectMediaInfo(t[a])}}(i,n,t)):D=(0,se.default)(u).create({adapter:d,baseURLController:s.baseURLController,stream:T,timelineConverter:s.timelineConverter}))}else y.info("No "+e+" data.")}function V(){N||((N=(0,ae.default)(u).create()).setConfig({manifestUpdater:a,playbackController:g}),Y())}function Y(){var e=d.getEventsFor(S);N.addInlineEvents(e)}function z(e){var r=d.getAdaptationForType(S.index,e,S);r&&Array.isArray(r.Representation_asArray)&&(r.Representation_asArray=r.Representation_asArray.filter(function(e,t){if(0===t)return!0;var n=d.getCodec(r,t,!0);return!!o.supportsCodec(n)||(y.error("[Stream] codec not supported: "+n),!1)}))}function W(){for(var e=A.length,t=!!r.audio||!!r.video?new ce.default(de.default.DATA_UPDATE_FAILED_ERROR_CODE,de.default.DATA_UPDATE_FAILED_ERROR_MESSAGE):null,n=0;n<e;n++)if(A[n].isUpdating()||R)return;if(I){if(w)for(n=0;n<e&&A[n];n++)A[n].getType()!==re.default.AUDIO&&A[n].getType()!==re.default.VIDEO&&A[n].getType()!==re.default.FRAGMENTED_TEXT||w.initializeForMedia(A[n].getMediaInfo());t?c.error(t):i.trigger(le.default.STREAM_INITIALIZED,{streamInfo:S})}}function K(e){for(var t={},n=0,r=A.length;n<r;n++){var i=A[n].createBuffer(e);i&&(t[A[n].getType()]=i.getBuffer())}return t}function X(e){if(e.streamInfo===S){var t=$(),n=t.length;if(0!==n){for(var r=0;r<n;r++)if(!t[r].isBufferingCompleted()&&(t[r].getType()===re.default.AUDIO||t[r].getType()===re.default.VIDEO))return void y.warn("onBufferingCompleted - One streamProcessor has finished but",t[r].getType(),"one is not buffering completed");y.debug("onBufferingCompleted - trigger STREAM_BUFFERING_COMPLETED"),i.trigger(le.default.STREAM_BUFFERING_COMPLETED,{streamInfo:S})}else y.warn("onBufferingCompleted - can't trigger STREAM_BUFFERING_COMPLETED because no streamProcessor is defined")}}function Q(e){var t=e.sender.getStreamProcessor();t.getStreamInfo()===S&&(r[t.getType()]=e.error,W())}function Z(t){return t?$().filter(function(e){return e.getType()===t.type})[0]:null}function $(){for(var e=A.length,t=[],n=void 0,r=void 0,i=0;i<e;i++)(n=(r=A[i]).getType())!==re.default.AUDIO&&n!==re.default.VIDEO&&n!==re.default.FRAGMENTED_TEXT&&n!==re.default.TEXT||t.push(r);return t}function J(e,t){if(!e)return!1;var n=e.getStreamInfo(),r=U();if(!n||!r)return!1;var i=d.getAdaptationForType(n.index,t,n),a=d.getAdaptationForType(r.index,t,r);return i&&a?!i.ContentProtection&&!a.ContentProtection:!i&&!a}function ee(e,t){if(!e||!e.hasOwnProperty("getStreamInfo"))return!1;var n=e.getStreamInfo(),r=U();if(!n||!r)return!1;var i=d.getAdaptationForType(n.index,t,n),a=d.getAdaptationForType(r.index,t,r);if(!i||!a)return!i&&!a;var o=i&&a&&i.mimeType===a.mimeType,s=a.Representation_asArray.map(function(e){return e.codecs}),u=i.Representation_asArray.map(function(e){return e.codecs}),l=u.some(function(e){return-1<s.indexOf(e)}),f=u.some(function(t){return s.some(function(e){return function(e,t){for(var n=e.split(".")[0],r=0===t.indexOf(n),i=void 0,a=0;a<O.length;a++)if(O[a].codec===n){i=O[a];break}if(i)return r||i.compatibleCodecs.some(function(e){return 0===t.indexOf(e)});return r}(e,t)})});return l||f&&o}function te(e){n=e}function ne(){return n}return T={initialize:function(e,t){S=e,(w=t)&&(i.on(le.default.KEY_ERROR,G,T),i.on(le.default.SERVER_CERTIFICATE_UPDATED,G,T),i.on(le.default.LICENSE_REQUEST_COMPLETE,G,T),i.on(le.default.KEY_SYSTEM_SELECTED,G,T),i.on(le.default.KEY_SESSION_CREATED,G,T),i.on(le.default.KEY_STATUSES_CHANGED,G,T))},activate:function(e,t){if(b)return t;var n=void 0;return i.on(le.default.CURRENT_TRACK_CHANGED,q,T),n=ne()?(function(){if(R=!0,B(),z(re.default.VIDEO),z(re.default.AUDIO),R=!(I=!0),0===A.length){var e="No streams to play.";c.error(new ce.default(de.default.MANIFEST_ERROR_ID_NOSTREAMS_CODE,e,l.getValue())),y.debug(e)}else W()}(),t):function(e,t){B();var n=v.getElement();V(),R=!0,z(re.default.VIDEO),z(re.default.AUDIO),(!n||n&&/^VIDEO$/i.test(n.nodeName))&&H(re.default.VIDEO,e);H(re.default.AUDIO,e),H(re.default.TEXT,e),H(re.default.FRAGMENTED_TEXT,e),H(re.default.EMBEDDED_TEXT,e),H(re.default.MUXED,e),H(re.default.IMAGE,e);var r=K(t);if(R=!(I=!0),0===A.length){var i="No streams to play.";c.error(new ce.default(de.default.MANIFEST_ERROR_ID_NOSTREAMS_CODE,i,l.getValue())),y.fatal(i)}else W();return r}(e,t),b=!0,n},deactivate:C,isActive:function(){return b},getDuration:x,getStartTime:F,getId:function(){return S?S.id:null},getStreamInfo:U,preload:function(e,t){V(),H(re.default.VIDEO,e),H(re.default.AUDIO,e),H(re.default.TEXT,e),H(re.default.FRAGMENTED_TEXT,e),H(re.default.EMBEDDED_TEXT,e),H(re.default.MUXED,e),H(re.default.IMAGE,e),K(t),i.on(le.default.CURRENT_TRACK_CHANGED,q,T);for(var n=0;n<A.length&&A[n];n++)A[n].getScheduleController().start();te(!0)},getFragmentController:function(){return t},getThumbnailController:function(){return D},getBitrateListFor:function(e){if(B(),e===re.default.IMAGE)return D?D.getBitrateList():[];var t=function(e){for(var t=A.length,n=null,r=0;r<t;r++)if((n=A[r]).getType()===e)return n.getMediaInfo();return null}(e);return p.getBitrateList(t)},startEventController:function(){N&&N.start()},stopEventController:k,updateData:function(e){y.info("Manifest updated... updating data system wide."),R=!(b=!1),S=e,N&&Y(),z(re.default.VIDEO),z(re.default.AUDIO);for(var t=0,n=A.length;t<n;t++){var r=A[t],i=d.getMediaInfoForType(S,r.getType());p.updateTopQualityIndex(i),r.addMediaInfo(i,!0)}if(M&&"fragmentedText"!==(i=M.newMediaInfo).type){var a=Z(M.oldMediaInfo);if(!a)return;a.switchTrackAsked(),M=void 0}R=!1,W()},reset:L,getProcessors:$,setMediaSource:function(e){for(var t=0;t<A.length;)j(A[t].getMediaInfo())?(A[t].setMediaSource(e),t++):(A[t].reset(),A.splice(t,1));for(t=0;t<A.length;t++)A[t].dischargePreBuffer();if(0===A.length){var n="No streams to play.";c.error(new ce.default(de.default.MANIFEST_ERROR_ID_NOSTREAMS_CODE,n+"nostreams",l.getValue())),y.fatal(n)}},isMediaCodecCompatible:function(e){return ee(e,re.default.VIDEO)&&ee(e,re.default.AUDIO)},isProtectionCompatible:function(e){return J(e,re.default.VIDEO)&&J(e,re.default.AUDIO)},getPreloaded:ne,addInbandEvents:function(e){N&&N.addInbandEvents(e)}},y=(0,fe.default)(u).getInstance().getLogger(T),P(),t=(0,oe.default)(u).create({mediaPlayerModel:f,dashMetrics:e,errHandler:c,settings:E}),i.on(le.default.BUFFERING_COMPLETED,X,T),i.on(le.default.DATA_UPDATE_COMPLETED,Q,T),T}a.__dashjs_factory_name="Stream",n.default=i.default.getClassFactory(a),t.exports=n.default},{105:105,107:107,113:113,114:114,152:152,173:173,46:46,47:47,48:48,52:52,55:55}],105:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var O=r(e(107)),C=r(e(163)),P=r(e(112)),L=r(e(148)),x=r(e(118)),F=r(e(63)),i=r(e(48)),U=e(166),B=r(e(58));function a(t){t=t||{};var n=this.context,r=t.type,i=t.errHandler,a=t.mimeType,o=t.timelineConverter,s=t.adapter,u=t.manifestModel,l=t.mediaPlayerModel,f=t.stream,d=t.abrController,c=t.playbackController,h=t.streamController,p=t.mediaController,g=t.textController,m=t.dashMetrics,_=t.settings,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,w=void 0;function e(){R=[]}function D(){T=[],E=null,e()}function N(){return f?f.getStreamInfo():null}function M(){return E}return v={initialize:function(e){(w=(0,B.default)(n).create({mimeType:a,timelineConverter:o,dashMetrics:m,mediaPlayerModel:l,baseURLController:t.baseURLController,errHandler:i,settings:_})).initialize(v),d.registerStreamType(r,v),(S=f.getFragmentController().getModel(r)).setStreamProcessor(v),y=function(e){var t=null;t=e===O.default.VIDEO||e===O.default.AUDIO?(0,P.default)(n).create({type:e,dashMetrics:m,mediaPlayerModel:l,manifestModel:u,errHandler:i,streamController:h,mediaController:p,adapter:s,textController:g,abrController:d,playbackController:c,streamProcessor:v,settings:_}):(0,L.default)(n).create({type:e,mimeType:a,dashMetrics:m,mediaPlayerModel:l,manifestModel:u,errHandler:i,streamController:h,mediaController:p,adapter:s,textController:g,abrController:d,playbackController:c,streamProcessor:v,settings:_});return t}(r),A=(0,x.default)(n).create({type:r,mimeType:a,adapter:s,dashMetrics:m,timelineConverter:o,mediaPlayerModel:l,abrController:d,playbackController:c,streamController:h,textController:g,streamProcessor:v,mediaController:p,settings:_}),(I=(0,F.default)(n).create()).setConfig({abrController:d,dashMetrics:m,manifestModel:u,playbackController:c,timelineConverter:o,streamProcessor:v}),y.initialize(e),A.initialize(),I.initialize()},isUpdating:function(){return!!I&&I.isUpdating()},getType:function(){return r},getBufferController:function(){return y},getFragmentModel:function(){return S},getScheduleController:function(){return A},getLiveEdgeFinder:function(){return b},getFragmentController:function(){return f?f.getFragmentController():null},getRepresentationController:function(){return I},getIndexHandler:function(){return w},getRepresentationInfo:function(e){var t=void 0;return(t=void 0!==e?((0,U.checkInteger)(e),I?I.getRepresentationForQuality(e):null):I?I.getCurrentRepresentation():null)?s.convertDataToRepresentationInfo(t):null},getBufferLevel:function(){return y.getBufferLevel()},switchInitData:function(e,t){y&&y.switchInitData(N().id,e,t)},isBufferingCompleted:function(){return!!y&&y.getIsBufferingCompleted()},createBuffer:function(e){return y.getBuffer()||y.createBuffer(E,e)},getStreamInfo:N,selectMediaInfo:function(e){e===E||e&&E&&e.type!==E.type||(E=e);var t=s.getRealAdaptation(N(),E),n=s.getVoRepresentations(E);I&&I.updateData(t,n,r)},addMediaInfo:function(e,t){-1===T.indexOf(e)&&T.push(e),t&&this.selectMediaInfo(e)},switchTrackAsked:function(){A.switchTrackAsked()},getMediaInfoArr:function(){return T},getMediaInfo:M,getMediaSource:function(){return y.getMediaSource()},setMediaSource:function(e){y.setMediaSource(e,M())},dischargePreBuffer:function(){y.dischargePreBuffer()},getBuffer:function(){return y.getBuffer()},setBuffer:function(e){y.setBuffer(e)},registerExternalController:function(e){R.push(e)},unregisterExternalController:function(e){var t=R.indexOf(e);-1!==t&&R.splice(t,1)},getExternalControllers:function(){return R},unregisterAllExternalController:e,addInbandEvents:function(e){f&&f.addInbandEvents(e)},setIndexHandlerTime:function(e){w&&w.setCurrentTime(e)},getIndexHandlerTime:function(){return w?w.getCurrentTime():NaN},resetIndexHandler:function(){w&&w.resetIndex()},getInitRequest:function(e){(0,U.checkInteger)(e);var t=I?I.getRepresentationForQuality(e):null;return w?w.getInitRequest(t):null},getFragmentRequest:function(e,t,n){var r=null,i=I&&e?I.getRepresentationForQuality(e.quality):null;return w&&(r=void 0!==t&&void 0!==n?w.getSegmentRequestForTime(i,t,n):w.getNextSegmentRequest(i)),r},reset:function(e,t){w.reset(),y&&(y.reset(e,t),y=null),A&&(A.reset(),A=null),I&&(I.reset(),I=null),d&&d.unRegisterStreamType(r),R.forEach(function(e){e.reset()}),D(),f=r=null,b&&(b.reset(),b=null)}},c&&c.getIsDynamic()&&(b=(0,C.default)(n).create({timelineConverter:o,streamProcessor:v})),D(),v}a.__dashjs_factory_name="StreamProcessor",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,112:112,118:118,148:148,163:163,166:166,48:48,58:58,63:63}],106:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var u=r(e(173)),i=r(e(130)),l=e(189),f=r(e(180)),d=r(e(47)),c=r(e(55)),a=r(e(48)),h=r(e(52));function o(e){e=e||{};var a="urn:mpeg:dash:resolve-to-zero:2013",t=this.context,o=(0,d.default)(t).getInstance(),s=(0,i.default)(t).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier});return{load:function(n,r,i){function t(e,t){r.resolved=!0,r.resolvedContent=e||null,o.trigger(c.default.XLINK_ELEMENT_LOADED,{element:r,resolveObject:i,error:e||t?null:new u.default(h.default.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE,h.default.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE+n)})}if(n===a)t(null,!0);else{var e=new f.default(n,l.HTTPRequest.XLINK_EXPANSION_TYPE);s.load({request:e,success:function(e){t(e)},error:function(){t(null)}})}},reset:function(){s&&(s.abort(),s=null)}}}o.__dashjs_factory_name="XlinkLoader",n.default=a.default.getClassFactory(o),t.exports=n.default},{130:130,173:173,180:180,189:189,47:47,48:48,52:52,55:55}],107:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.init()}Object.defineProperty(n,"__esModule",{value:!0});var a=new(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(i,[{key:"init",value:function(){this.STREAM="stream",this.VIDEO="video",this.AUDIO="audio",this.TEXT="text",this.FRAGMENTED_TEXT="fragmentedText",this.EMBEDDED_TEXT="embeddedText",this.MUXED="muxed",this.IMAGE="image",this.STPP="stpp",this.TTML="ttml",this.VTT="vtt",this.WVTT="wvtt",this.ABR_STRATEGY_DYNAMIC="abrDynamic",this.ABR_STRATEGY_BOLA="abrBola",this.ABR_STRATEGY_THROUGHPUT="abrThroughput",this.MOVING_AVERAGE_SLIDING_WINDOW="slidingWindow",this.MOVING_AVERAGE_EWMA="ewma",this.BAD_ARGUMENT_ERROR="Invalid Arguments",this.MISSING_CONFIG_ERROR="Missing config parameter(s)",this.LOCATION="Location",this.INITIALIZE="initialize",this.TEXT_SHOWING="showing",this.TEXT_HIDDEN="hidden",this.CC1="CC1",this.CC3="CC3",this.UTF8="utf-8",this.SCHEME_ID_URI="schemeIdUri",this.START_TIME="starttime"}}]),i);n.default=a,t.exports=n.default},{}],108:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.init()}Object.defineProperty(n,"__esModule",{value:!0});var a=new(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(i,[{key:"init",value:function(){this.TCP_CONNECTION="TcpList",this.HTTP_REQUEST="HttpList",this.TRACK_SWITCH="RepSwitchList",this.BUFFER_LEVEL="BufferLevel",this.BUFFER_STATE="BufferState",this.DVR_INFO="DVRInfo",this.DROPPED_FRAMES="DroppedFrames",this.SCHEDULING_INFO="SchedulingInfo",this.REQUESTS_QUEUE="RequestsQueue",this.MANIFEST_UPDATE="ManifestUpdate",this.MANIFEST_UPDATE_STREAM_INFO="ManifestUpdatePeriodInfo",this.MANIFEST_UPDATE_TRACK_INFO="ManifestUpdateRepresentationInfo",this.PLAY_LIST="PlayList",this.DVB_ERRORS="DVBErrors"}}]),i);n.default=a,t.exports=n.default},{}],109:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var H=r(e(137)),V=r(e(107)),Y=r(e(108)),z=r(e(172)),W=r(e(123)),K=r(e(47)),X=r(e(55)),i=r(e(48)),Q=r(e(133)),Z=r(e(134)),$=r(e(135)),J=r(e(132)),ee=r(e(136)),te=r(e(46)),ne=e(189),re=e(166),ie="abandonload",ae="allowload";function a(){var d=this.context,e=(0,te.default)(d).getInstance(),l=(0,K.default)(d).getInstance(),c=void 0,h=void 0,p=void 0,o=void 0,i=void 0,f=void 0,g=void 0,m=void 0,s=void 0,a=void 0,u=void 0,_=void 0,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,w=void 0,D=void 0;function n(){(p=(0,H.default)(d).create({dashMetrics:w,mediaPlayerModel:T,settings:D})).initialize()}function t(){i={},f={},m={},g={},b={},R={},void 0===a&&(a=!1),S=I=A=void 0,clearTimeout(s),s=null}function r(e){e.mediaType===V.default.VIDEO&&(A=e.oldQuality,I.push(A,E.getPlaybackQuality()))}function N(e){e.metric!==Y.default.HTTP_REQUEST||!e.value||e.value.type!==ne.HTTPRequest.MEDIA_SEGMENT_TYPE||e.mediaType!==V.default.AUDIO&&e.mediaType!==V.default.VIDEO||S.push(e.mediaType,e.value,D.get().streaming.abr.useDeadTimeLatency),e.metric!==Y.default.BUFFER_LEVEL||e.mediaType!==V.default.AUDIO&&e.mediaType!==V.default.VIDEO||function(e,t){var n=D.get().streaming.ABRStrategy;{if(n===V.default.ABR_STRATEGY_BOLA)return R[e]=!0;if(n===V.default.ABR_STRATEGY_THROUGHPUT)return R[e]=!1}var r=T.getStableBufferTime(),i=r,a=.5*r,o=R[e],s=(o?a:i)<t;(R[e]=s)!==o&&(s?h.info("AbrController ("+e+") switching from throughput to buffer occupancy ABR rule (buffer: "+t.toFixed(3)+")."):h.info("AbrController ("+e+") switching from buffer occupancy to throughput ABR rule (buffer: "+t.toFixed(3)+")."))}(e.mediaType,.001*e.value.level)}function M(e,t){return i[t]=i[t]||{},i[t].hasOwnProperty(e)||(i[t][e]=0),function(e,t){if(t!==V.default.VIDEO||!D.get().streaming.abr.limitBitrateByPortal||!g[t])return e;a||j();var n=v.getAdaptationForType(0,t).Representation,r=e;if(0<u&&0<_){for(;0<r&&n[r]&&u<n[r].width&&u-n[r-1].width<n[r].width-u;)r-=1;for(;r<n.length-1&&n[r].width===n[r+1].width;)r+=1}return r}(function(e,t,n){var r=function(e){return D.get().streaming.abr.maxRepresentationRatio[e]}(t);if(isNaN(r)||1<=r||r<0)return e;return Math.min(e,Math.round(n*r))}(function(e,t){var n=e;if(!g[t])return n;var r=C(t);void 0!==r&&(n=Math.max(e,r));var i=O(t);void 0!==i&&(n=Math.min(n,i));return n}(i[t][e],e),e,i[t][e]),e)}function O(e){var t=function(e){return D.get().streaming.abr.maxBitrate[e]}(e);return-1<t?U(g[e].getMediaInfo(),t):void 0}function C(e){var t=function(e){return D.get().streaming.abr.minBitrate[e]}(e);if(-1<t){var n=g[e].getMediaInfo(),r=B(n),i=U(n,t);return r[i]&&i<r.length-1&&r[i].bitrate<1e3*t&&i++,i}}function P(e){return!!D.get().streaming.abr.autoSwitchBitrate[e]}function L(e,t,n,r){var i=t.id,a=G(e);(0,re.checkInteger)(n);var o=M(e,i);n!==a&&0<=n&&n<=o&&x(e,a,n,o,r)}function x(e,t,n,r,i){if(e&&g[e]){var a=g[e].getStreamInfo(),o=a?a.id:null;if(D.get().debug.logLevel===te.default.LOG_LEVEL_DEBUG){var s=w.getCurrentBufferLevel(e,!0);h.info("AbrController ("+e+") switch from "+t+" to "+n+"/"+r+" (buffer: "+s+") "+(i?JSON.stringify(i):"."))}!function(e,t,n){f[t]=f[t]||{},f[t][e]=n}(e,o,n),l.trigger(X.default.QUALITY_CHANGE_REQUESTED,{mediaType:e,streamInfo:a,oldQuality:t,newQuality:n,reason:i});var u=S.getAverageThroughput(e);isNaN(u)||y.setSavedBitrateSettings(e,u)}}function F(e,t){m[e].state=t}function U(e,t,n){var r=e&&e.type?g[e.type].getRepresentationInfo():null;if(D.get().streaming.abr.useDeadTimeLatency&&n&&r&&r.fragmentDuration){n/=1e3;var i=r.fragmentDuration;if(i<n)return 0;t*=1-n/i}for(var a=B(e),o=a.length-1;0<=o;o--){if(1e3*t>=a[o].bitrate)return o}return 0}function B(e){var t=[];if(!e||!e.bitrateList)return t;for(var n=e.bitrateList,r=e.type,i=void 0,a=0,o=n.length;a<o;a++)(i=new z.default).mediaType=r,i.qualityIndex=a,i.bitrate=n[a].bandwidth,i.width=n[a].width,i.height=n[a].height,i.scanType=n[a].scanType,t.push(i);return t}function k(e){return R[e]}function G(e){if(e&&g[e]){var t=g[e].getStreamInfo(),n=t?t.id:null;if(n)return f[n]=f[n]||{},f[n].hasOwnProperty(e)||(f[n][e]=0),f[n][e]}return 0}function j(){if(E){var e=D.get().streaming.abr.usePixelRatioInLimitBitrateByPortal&&window.hasOwnProperty("devicePixelRatio")?window.devicePixelRatio:1;u=E.getClientWidth()*e,_=E.getClientHeight()*e}}function q(e){var t=e.request.mediaType;if(P(t)){var n=g[t];if(!n)return;var r=(0,Q.default)(d).create({abrController:c,streamProcessor:n,currentRequest:e.request,useBufferOccupancyABR:k(t)}),i=p.shouldAbandonFragment(r);if(i.quality>Z.default.NO_CHANGE){var a=n.getFragmentModel();a.getRequests({state:W.default.FRAGMENT_MODEL_LOADING,index:e.request.index})[0]&&(a.abortRequests(),F(t,ie),b[t].reset(),b[t].push({oldValue:G(t),newValue:i.quality,confidence:1,reason:i.reason}),L(t,o.getActiveStreamInfo(),i.quality,i.reason),clearTimeout(s),s=setTimeout(function(){F(t,ae),s=null},D.get().streaming.abandonLoadTimeout))}}}return c={isPlayingAtTopQuality:function(e){var t=e?e.id:null,n=G(V.default.AUDIO),r=G(V.default.VIDEO);return n===M(V.default.AUDIO,t)&&r===M(V.default.VIDEO,t)},updateTopQualityIndex:function(e){var t=e.type,n=e.streamInfo.id,r=e.representationCount-1;return function(e,t,n){i[t]=i[t]||{},i[t][e]=n}(t,n,r),r},getThroughputHistory:function(){return S},getBitrateList:B,getQualityForBitrate:U,getTopBitrateInfoFor:function(e){if(e&&g&&g[e]){var t=g[e].getStreamInfo();if(t&&t.id){var n=M(e,t.id),r=B(g[e].getMediaInfo());return r[n]?r[n]:null}}return null},getMaxAllowedIndexFor:O,getMinAllowedIndexFor:C,getInitialBitrateFor:function(e){if(function(){if(!y||!y.hasOwnProperty("getSavedBitrateSettings"))throw new Error(V.default.MISSING_CONFIG_ERROR)}(),e===V.default.TEXT||e===V.default.FRAGMENTED_TEXT)return NaN;var t=y.getSavedBitrateSettings(e),n=D.get().streaming.abr.initialBitrate[e],r=D.get().streaming.abr.initialRepresentationRatio[e];if(-1===n)if(-1<r){var i=v.getAdaptationForType(0,e).Representation;if(Array.isArray(i))n=i[Math.max(Math.round(i.length*r)-1,0)].bandwidth;else n=0}else n=isNaN(t)?e===V.default.VIDEO?1e3:100:t;return n},getQualityFor:G,getAbandonmentStateFor:function(e){return m[e]?m[e].state:null},setPlaybackQuality:L,checkPlaybackQuality:function(e){if(e&&g&&g[e]){var t=g[e].getStreamInfo(),n=t?t.id:null,r=G(e),i=(0,Q.default)(d).create({abrController:c,streamProcessor:g[e],currentValue:r,switchHistory:b[e],droppedFramesHistory:I,useBufferOccupancyABR:k(e)});if(I){var a=E.getPlaybackQuality();a&&I.push(A,a)}if(P(e)){var o=C(e),s=M(e,n),u=p.getMaxQuality(i),l=u.quality;if(void 0!==o&&(l>Z.default.NO_CHANGE?l:r)<o&&(l=o),s<l&&(l=s),b[e].push({oldValue:r,newValue:l}),l>Z.default.NO_CHANGE&&l!=r)(m[e].state===ae||r<l)&&x(e,r,l,s,u.reason);else if(D.get().debug.logLevel===te.default.LOG_LEVEL_DEBUG){var f=w.getCurrentBufferLevel(e,!0);h.debug("AbrController ("+e+") stay on "+r+"/"+s+" (buffer: "+f+")")}}}},getTopQualityIndexFor:M,setElementSize:j,setWindowResizeEventCalled:function(e){a=e},createAbrRulesCollection:n,registerStreamType:function(e,t){b[e]=b[e]||(0,$.default)(d).create(),g[e]=t,m[e]=m[e]||{},m[e].state=ae,R[e]=!1,l.on(X.default.LOADING_PROGRESS,q,this),e==V.default.VIDEO&&(l.on(X.default.QUALITY_CHANGE_RENDERED,r,this),I=I||(0,J.default)(d).create(),j()),l.on(X.default.METRIC_ADDED,N,this),l.on(X.default.PERIOD_SWITCH_COMPLETED,n,this),S=S||(0,ee.default)(d).create({settings:D})},unRegisterStreamType:function(e){delete g[e]},setConfig:function(e){e&&(e.streamController&&(o=e.streamController),e.domStorage&&(y=e.domStorage),e.mediaPlayerModel&&(T=e.mediaPlayerModel),e.dashMetrics&&(w=e.dashMetrics),e.adapter&&(v=e.adapter),e.videoModel&&(E=e.videoModel),e.settings&&(D=e.settings))},reset:function(){t(),l.off(X.default.LOADING_PROGRESS,q,this),l.off(X.default.QUALITY_CHANGE_RENDERED,r,this),l.off(X.default.METRIC_ADDED,N,this),l.off(X.default.PERIOD_SWITCH_COMPLETED,n,this),p&&p.reset()}},h=e.getLogger(c),t(),c}a.__dashjs_factory_name="AbrController";var o=i.default.getSingletonFactory(a);o.ABANDON_LOAD=ie,o.QUALITY_DEFAULT=0,i.default.updateSingletonFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{107:107,108:108,123:123,132:132,133:133,134:134,135:135,136:136,137:137,166:166,172:172,189:189,46:46,47:47,48:48,55:55}],110:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var u=r(e(122)),l=r(e(154)),f=r(e(168)),d=r(e(85)),i=r(e(48)),c=r(e(47)),h=r(e(55));function a(){var e=void 0,t=void 0,n=this.context,r=(0,c.default)(n).getInstance(),i=(0,f.default)(n).getInstance(),a=void 0,o=void 0;function s(e){a.invalidateSelectedIndexes(e.entry)}return e={reset:function(){a.reset(),o.reset()},initialize:function(e){a.setConfig({adapter:t}),function(e){a.update(e),o.chooseSelector(t.getIsDVB(e))}(e)},resolve:function(e){var t=a.getForPath(e).reduce(function(e,t){var n=o.select(t);return n?(i.isRelative(n.url)?e.url=i.resolve(n.url,e.url):(e.url=n.url,e.serviceLocation=n.serviceLocation),e.availabilityTimeOffset=n.availabilityTimeOffset,e.availabilityTimeComplete=n.availabilityTimeComplete,e):new d.default},new d.default);if(!i.isRelative(t.url))return t},setConfig:function(e){e.baseURLTreeModel&&(a=e.baseURLTreeModel),e.baseURLSelector&&(o=e.baseURLSelector),e.adapter&&(t=e.adapter)}},a=(0,u.default)(n).create(),o=(0,l.default)(n).create(),r.on(h.default.SERVICE_LOCATION_BLACKLIST_CHANGED,s,e),e}a.__dashjs_factory_name="BaseURLController",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{122:122,154:154,168:168,47:47,48:48,55:55,85:85}],111:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),s=r(e(47));function a(e){e=e||{};var t=[],n=(0,s.default)(this.context).getInstance(),r=e.updateEventName,i=e.addBlacklistEventName;function a(e){-1===t.indexOf(e)&&(t.push(e),n.trigger(r,{entry:e}))}function o(e){a(e.entry)}return function(){i&&n.on(i,o,this)}(),{add:a,contains:function(e){return!!(t.length&&e&&e.length)&&-1!==t.indexOf(e)},reset:function(){t=[]}}}a.__dashjs_factory_name="BlackListController",n.default=i.default.getClassFactory(a),t.exports=n.default},{47:47,48:48}],112:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var pe=r(e(107)),ge=r(e(123)),me=r(e(103)),_e=r(e(102)),ve=r(e(109)),Ee=r(e(115)),Te=r(e(47)),ye=r(e(55)),Ae=r(e(155)),i=r(e(48)),be=r(e(46)),Ie=r(e(161)),Se=r(e(173)),Re=r(e(52)),we=e(189),De="bufferLoaded",Ne="bufferStalled",Me="BufferController";function a(e){e=e||{};var c=this.context,s=(0,Te.default)(c).getInstance(),t=e.dashMetrics,n=e.errHandler,r=e.streamController,i=e.mediaController,h=e.adapter,a=e.textController,o=e.abrController,d=e.playbackController,l=e.type,p=e.streamProcessor,u=e.settings,f=void 0,g=void 0,m=void 0,_=void 0,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,w=void 0,D=void 0,N=void 0,M=void 0,O=void 0,C=void 0,P=void 0,L=void 0;function x(e,t){if(!N||!e||!p)return null;if(T)try{"function"==typeof(b=t&&t[l]?(0,me.default)(c).create(T,e,G.bind(this),t[l]):(0,me.default)(c).create(T,e,G.bind(this))).getBuffer().initialize&&b.getBuffer().initialize(l,p)}catch(e){g.fatal("Caught error on create SourceBuffer: "+e),n.error(new Se.default(Re.default.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,Re.default.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+l))}else b=(0,_e.default)(c).create(G.bind(this));return ie(p.getRepresentationInfo(m).MSETimeOffset),b}function F(e){e.fragmentModel===p.getFragmentModel()&&(g.info("Init fragment finished loading saving to",l+"'s init cache"),N.save(e.chunk),g.debug("Append Init fragment",l," with representationId:",e.chunk.representationId," and quality:",e.chunk.quality,", data size:",e.chunk.bytes.byteLength),B(e.chunk))}function U(e){if(e.fragmentModel===p.getFragmentModel()){var t=e.chunk,n=t.bytes,r=t.quality,i=p.getRepresentationInfo(r),a=p.getRepresentationController(),o=a&&i?a.getRepresentationForQuality(i.quality):null,s=h.getEventsFor(i.mediaInfo),u=h.getEventsFor(i,o);if(s&&0<s.length||u&&0<u.length){var l=function(e,t,n,r){for(var i=Math.max(!t||isNaN(t.startTime)?0:t.startTime,0),a=[],o=[],s=n.concat(r),u=0,l=s.length;u<l;u++)a[s[u].schemeIdUri+"/"+s[u].value]=s[u];var f=(0,Ae.default)(c).getInstance().parse(e).getBoxes("emsg");for(u=0,l=f.length;u<l;u++){var d=h.getEvent(f[u],a,i);d&&o.push(d)}return o}(n,p.getFragmentModel().getRequests({state:ge.default.FRAGMENT_MODEL_EXECUTED,quality:r,index:t.index})[0],s,u);p.addInbandEvents(l)}if(P){L=t;var f=b&&b.getAllBufferRanges();f&&0<f.length&&.5<d.getTimeToStreamEnd()&&(g.debug("Clearing buffer because track changed - "+(f.end(f.length-1)+.5)),te([{start:0,end:f.end(f.length-1)+.5,force:!0}]))}else B(t)}}function B(e){b.append(e),e.mediaInfo.type===pe.default.VIDEO&&s.trigger(ye.default.VIDEO_CHUNK_RECEIVED,{chunk:e})}function k(e){if(e&&0<e.length)for(var t=0,n=e.length;t<n;t++)g.debug("Buffered Range for type:",l,":",e.start(t)," - ",e.end(t)," currentTime = ",d.getTime())}function G(e){if(e.error){if(22===e.error.code&&(E=.8*de(),g.warn("Quota exceeded for type: "+l+", Critical Buffer: "+E),0<E)){var t=Math.max(.2*E,1),n=E-t,r={streaming:{bufferToKeep:parseFloat(t.toFixed(5)),bufferAheadToKeep:parseFloat(n.toFixed(5))}};u.update(r)}22!==e.error.code&&ce()||(g.warn("Clearing playback buffer to overcome quota exceed situation for type: "+l),s.trigger(ye.default.QUOTA_EXCEEDED,{sender:f,criticalBufferLevel:E}),V())}else{(R=e.chunk)&&!isNaN(R.index)&&(y=Math.max(R.index,y),Z());var i=b.getAllBufferRanges();if(R.segmentType===we.HTTPRequest.MEDIA_SEGMENT_TYPE)k(i),Y();else if(P){var a=d.getTime();g.debug("AppendToBuffer seek target should be "+a),p.getScheduleController().setSeekTarget(a),p.setIndexHandlerTime(a)}var o={sender:f,quality:R.quality,startTime:R.start,index:R.index,bufferedRanges:i};R&&!R.endFragment?s.trigger(ye.default.BYTES_APPENDED,o):R&&s.trigger(ye.default.BYTES_APPENDED_END_FRAGMENT,o)}}function j(e){m!==e.newQuality&&l===e.mediaType&&p.getStreamInfo().id===e.streamInfo.id&&(ie(p.getRepresentationInfo(e.newQuality).MSETimeOffset),m=e.newQuality)}function q(){_&&(_=!(O=!0),A=Number.POSITIVE_INFINITY),l!==pe.default.FRAGMENTED_TEXT?V():Y()}function H(){M=void 0}function V(){b.waitForUpdateEnd(function(){var e=function(){var e=[],t=b.getAllBufferRanges();if(!t||0===t.length)return e;var n=d.getTime(),r=t.end(t.length-1)+.5,i=p.getFragmentModel().getRequests({state:ge.default.FRAGMENT_MODEL_EXECUTED,time:n,threshold:.01})[0];if(i){var a={start:0,end:i.startTime-.5},o=p.getFragmentModel().getRequests({state:ge.default.FRAGMENT_MODEL_EXECUTED,time:i.startTime-i.duration/2,threshold:.01})[0];o&&o.startTime!=i.startTime&&(a.end=o.startTime),a.start<a.end&&a.end>t.start(0)&&e.push(a);var s={start:i.startTime+i.duration+.5,end:r},u=p.getFragmentModel().getRequests({state:ge.default.FRAGMENT_MODEL_EXECUTED,time:i.startTime+i.duration+.5,threshold:.01})[0];u&&u.startTime!==i.startTime&&(s.start=u.startTime+u.duration+.5),s.start<s.end&&s.start<r&&e.push(s)}else g.debug("getAllRangesWithSafetyFactor for",l,"- No request found in current time position, removing full buffer 0 -",r),e.push({start:0,end:r});return e}();e&&0!==e.length||Y(),te(e)})}function Y(){(!P||l===pe.default.FRAGMENTED_TEXT&&a.isTextEnabled())&&(X(),Q())}function z(){$()}function W(){$()}function K(e,t){var n=b.getAllBufferRanges(),r=0,i=0,a=null,o=null,s=0,u=void 0,l=void 0,f=t||.15;if(null!=n){for(l=0,u=n.length;l<u;l++)if(r=n.start(l),i=n.end(l),null===a)s=Math.abs(r-e),r<=e&&e<i?(a=r,o=i):s<=f&&(a=r,o=i);else{if(!((s=r-o)<=f))break;o=i}if(null!==a)return{start:a,end:o}}return null}function X(){d&&(v=function(e,t){var n;return null===(n=K(e,t))?0:n.end-e}(function(){var e=d.getTime();if(M){var t=b.getAllBufferRanges();t&&t.length&&(e=Math.max(t.start(0),M))}return e}()||0),s.trigger(ye.default.BUFFER_LEVEL_UPDATED,{sender:f,bufferLevel:v}),$())}function Q(){p&&r&&p.getStreamInfo()&&(t.addBufferState(l,S,p.getScheduleController().getBufferTarget()),t.addBufferLevel(l,new Date,1e3*v))}function Z(){A-1<=y&&!_&&void 0===b.discharge&&(_=!0,g.debug("checkIfBufferingCompleted trigger BUFFERING_COMPLETED"),s.trigger(ye.default.BUFFERING_COMPLETED,{sender:f,streamInfo:p.getStreamInfo()}))}function $(){"audio"!==l&&"video"!==l||(O&&!_&&d&&d.getTimeToStreamEnd()-v<.5&&(_=!(O=!1),g.debug("checkIfSufficientBuffer trigger BUFFERING_COMPLETED"),s.trigger(ye.default.BUFFERING_COMPLETED,{sender:f,streamInfo:p.getStreamInfo()})),(!u.get().streaming.lowLatencyEnabled&&v<.5||0===v)&&!_?J(Ne):(_||v>=p.getStreamInfo().manifestInfo.minBufferTime)&&J(De))}function J(e){S===e||e===Ne&&0===d.getTime()||l===pe.default.FRAGMENTED_TEXT&&!a.isTextEnabled()||(S=e,Q(),s.trigger(ye.default.BUFFER_LEVEL_STATE_CHANGED,{sender:f,state:e,mediaType:l,streamInfo:p.getStreamInfo()}),s.trigger(e===De?ye.default.BUFFER_LOADED:ye.default.BUFFER_EMPTY,{mediaType:l}),g.debug(e===De?"Got enough buffer to start for "+l:"Waiting for more buffer before starting playback for "+l))}function ee(){b&&l!==pe.default.FRAGMENTED_TEXT&&(_||te(function(){var e=[],t=b.getAllBufferRanges();if(!t||0===t.length)return e;var n=d.getTime(),r={start:Math.max(0,n-u.get().streaming.bufferToKeep),end:n+u.get().streaming.bufferAheadToKeep},i=p.getFragmentModel().getRequests({state:ge.default.FRAGMENT_MODEL_EXECUTED,time:n,threshold:.01})[0];if(i)r.start=Math.min(i.startTime,r.start),r.end=Math.max(i.startTime+i.duration,r.end);else if(0===n&&d.getIsDynamic())return[];if(t.start(0)<=r.start){for(var a={start:0,end:r.start},o=0;o<t.length&&t.end(o)<=r.start;o++)a.end=t.end(o);a.start<a.end&&e.push(a)}if(t.end(t.length-1)>=r.end){var s={start:r.end,end:t.end(t.length-1)+.01};s.start<s.end&&e.push(s)}return e}()))}function te(e){e&&b&&0!==e.length&&(C.push.apply(C,e),D||ne())}function ne(){if(0===C.length||!b)return g.debug("Nothing to prune, halt pruning"),void(D=!(C=[]));var e=b.getBuffer();if(!e||!e.buffered||0===e.buffered.length)return g.debug("SourceBuffer is empty (or does not exist), halt pruning"),void(D=!(C=[]));var t=C.shift();g.debug("Removing",l,"buffer from:",t.start,"to",t.end),D=!0;var n=d.getTime();n<t.end&&(_=!1,y=0,P||(p.getScheduleController().setSeekTarget(n),p.setIndexHandlerTime(n))),b.remove(t.start,t.end,t.force)}function re(e){b===e.buffer&&(g.debug("onRemoved buffer from:",e.from,"to",e.to),k(b.getAllBufferRanges()),0===C.length&&(D=!1),e.unintended&&(g.warn("Detected unintended removal from:",e.from,"to",e.to,"setting index handler time to",e.from),p.setIndexHandlerTime(e.from)),D?ne():(P?(P=!1,L&&B(L)):(g.debug("onRemoved : call updateBufferLevel"),X()),s.trigger(ye.default.BUFFER_CLEARED,{sender:f,from:e.from,to:e.to,unintended:e.unintended,hasEnoughSpaceToAppend:ce()})))}function ie(e){b&&b.updateTimestampOffset&&b.updateTimestampOffset(e)}function ae(e){e.sender.getStreamProcessor()!==p||e.error||ie(e.currentRepresentation.MSETimeOffset)}function oe(e){e.fragmentModel===p.getFragmentModel()&&(A=e.request.index,Z())}function se(e){var t=b&&b.getAllBufferRanges();t&&e.newMediaInfo.type===l&&e.newMediaInfo.streamInfo.id===p.getStreamInfo().id&&(g.info("Track change asked"),i.getSwitchMode(l)===Ee.default.TRACK_SWITCH_MODE_ALWAYS_REPLACE&&t&&0<t.length&&.5<d.getTimeToStreamEnd()&&(_=!1,A=Number.POSITIVE_INFINITY))}function ue(){++w*(u.get().streaming.wallclockTimeUpdateInterval/1e3)>=u.get().streaming.bufferPruningInterval&&(w=0,ee())}function le(){$()}function fe(e,t){T=e,b&&t&&"function"==typeof b.discharge&&(I=b,x(t))}function de(){var e,t=b.getAllBufferRanges(),n=0,r=void 0;if(!t)return n;for(r=0,e=t.length;r<e;r++)n+=t.end(r)-t.start(r);return n}function ce(){return de()<E}function he(e,t){E=Number.POSITIVE_INFINITY,S=void 0,m=ve.default.QUALITY_DEFAULT,A=Number.POSITIVE_INFINITY,R=null,O=D=_=!1,w=v=y=0,C=[],b&&(e||b.abort(),b.reset(t),b=null),P=!1}return f={getBufferControllerType:function(){return Me},initialize:function(e){fe(e),m=o.getQualityFor(l),s.on(ye.default.DATA_UPDATE_COMPLETED,ae,this),s.on(ye.default.INIT_FRAGMENT_LOADED,F,this),s.on(ye.default.MEDIA_FRAGMENT_LOADED,U,this),s.on(ye.default.QUALITY_CHANGE_REQUESTED,j,this),s.on(ye.default.STREAM_COMPLETED,oe,this),s.on(ye.default.PLAYBACK_PLAYING,W,this),s.on(ye.default.PLAYBACK_PROGRESS,Y,this),s.on(ye.default.PLAYBACK_TIME_UPDATED,Y,this),s.on(ye.default.PLAYBACK_RATE_CHANGED,le,this),s.on(ye.default.PLAYBACK_SEEKING,q,this),s.on(ye.default.PLAYBACK_SEEKED,H,this),s.on(ye.default.PLAYBACK_STALLED,z,this),s.on(ye.default.WALLCLOCK_TIME_UPDATED,ue,this),s.on(ye.default.CURRENT_TRACK_CHANGED,se,this,Te.default.EVENT_PRIORITY_HIGH),s.on(ye.default.SOURCEBUFFER_REMOVE_COMPLETED,re,this)},createBuffer:x,dischargePreBuffer:function(){if(b&&I&&"function"==typeof I.discharge){var e=I.getAllBufferRanges();if(0<e.length){for(var t="Beginning "+l+"PreBuffer discharge, adding buffer for:",n=0;n<e.length;n++)t+=" start: "+e.start(n)+", end: "+e.end(n)+";";g.debug(t)}else g.debug("PreBuffer discharge requested, but there were no media segments in the PreBuffer.");for(var r=I.discharge(),i=null,a=0;a<r.length;a++){var o=r[a],s=N.extract(o.streamId,o.representationId);s&&(i!==s&&(b.append(s),i=s),b.append(o))}I.reset(),I=null}},getType:function(){return l},getStreamProcessor:function(){return p},setSeekStartTime:function(e){M=e},getBuffer:function(){return b},setBuffer:function(e){b=e},getBufferLevel:function(){return v},getRangeAt:K,setMediaSource:fe,getMediaSource:function(){return T},getIsBufferingCompleted:function(){return _},switchInitData:function(e,t,n){var r=N.extract(e,t);P=!0===n&&n,r?(g.info("Append Init fragment",l," with representationId:",r.representationId," and quality:",r.quality,", data size:",r.bytes.byteLength),B(r)):s.trigger(ye.default.INIT_REQUESTED,{sender:f})},getIsPruningInProgress:function(){return D},reset:function(e,t){s.off(ye.default.DATA_UPDATE_COMPLETED,ae,this),s.off(ye.default.QUALITY_CHANGE_REQUESTED,j,this),s.off(ye.default.INIT_FRAGMENT_LOADED,F,this),s.off(ye.default.MEDIA_FRAGMENT_LOADED,U,this),s.off(ye.default.STREAM_COMPLETED,oe,this),s.off(ye.default.CURRENT_TRACK_CHANGED,se,this),s.off(ye.default.PLAYBACK_PLAYING,W,this),s.off(ye.default.PLAYBACK_PROGRESS,Y,this),s.off(ye.default.PLAYBACK_TIME_UPDATED,Y,this),s.off(ye.default.PLAYBACK_RATE_CHANGED,le,this),s.off(ye.default.PLAYBACK_SEEKING,q,this),s.off(ye.default.PLAYBACK_SEEKED,H,this),s.off(ye.default.PLAYBACK_STALLED,z,this),s.off(ye.default.WALLCLOCK_TIME_UPDATED,ue,this),s.off(ye.default.SOURCEBUFFER_REMOVE_COMPLETED,re,this),he(e,t)}},g=(0,be.default)(c).getInstance().getLogger(f),N=(0,Ie.default)(c).getInstance(),he(),f}a.__dashjs_factory_name=Me;var o=i.default.getClassFactory(a);o.BUFFER_LOADED=De,o.BUFFER_EMPTY=Ne,i.default.updateClassFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{102:102,103:103,107:107,109:109,115:115,123:123,155:155,161:161,173:173,189:189,46:46,47:47,48:48,52:52,55:55}],113:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),b=r(e(46)),I=r(e(47)),S=r(e(55)),R=r(e(131));function a(){var l="urn:mpeg:dash:event:2012",f=1,d="urn:mpeg:dash:event:callback:2015",c=1,h=this.context,p=(0,I.default)(h).getInstance(),e=void 0,g=void 0,r=void 0,i=void 0,m=void 0,t=void 0,n=void 0,a=void 0,_=void 0,o=void 0,s=void 0;function u(){s=!1,r={},i={},m={},t=null,n=100,a=Date.now()/1e3}function v(){if(!_||!o)throw new Error("setConfig function has to be called previously")}function E(){null!==t&&s&&(clearInterval(t),t=null,s=!1)}function T(e){if(e.eventStream.value==f){var t=e.eventStream.timescale||1,n=e.presentationTime/t,r=void 0;r=4294967295==e.presentationTime?NaN:(e.presentationTime+e.duration)/t,g.info("Manifest validity changed: Valid until: "+n+"; remaining duration: "+r),p.trigger(S.default.MANIFEST_VALIDITY_CHANGED,{id:e.id,validUntil:n,newDuration:r,newManifestValidAfter:NaN})}}function y(){var e=o.getTime(),t=e-a;A(i,t,a=e),A(r,t,e),function(){if(m)for(var e=o.getTime(),t=Object.keys(m),n=0;n<t.length;n++){var r=t[n],i=m[r];null!==i&&(i.duration+i.presentationTime)/i.eventStream.timescale<e&&(g.debug("Remove Event "+r+" at time "+e),i=null,delete m[r])}}()}function A(e,t,n){var r,i;if(e)for(var a=Object.keys(e),o=0;o<a.length;o++){var s=a[o],u=e[s];void 0!==u&&(0==(r=u.presentationTime/u.eventStream.timescale)||r<=n&&n<r+t)&&(g.debug("Start Event "+s+" at "+n),0<u.duration&&(m[s]=u),u.eventStream.schemeIdUri==l&&u.eventStream.value==f?0===u.duration&&0===u.presentationTimeDelta||(v(),_.refreshManifest()):u.eventStream.schemeIdUri==d&&u.eventStream.value==c?(i=u.messageData,(0,R.default)(h).create({}).load({method:"get",url:i,request:{responseType:"arraybuffer"}})):p.trigger(u.eventStream.schemeIdUri,{event:u}),delete e[s])}}return e={addInlineEvents:function(e){if(v(),r={},e)for(var t=0;t<e.length;t++){var n=e[t];r[n.id]=n,g.debug("Add inline event with id "+n.id)}g.debug("Added "+e.length+" inline events")},addInbandEvents:function(e){v();for(var t=0;t<e.length;t++){var n=e[t];n.id in i?g.debug("Repeated event with id "+n.id):(n.eventStream.schemeIdUri===l&&void 0===i[n.id]&&T(n),i[n.id]=n,g.debug("Add inband event with id "+n.id))}},stop:E,start:function(){v(),g.debug("Start Event Controller"),s||isNaN(n)||(s=!0,t=setInterval(y,n))},setConfig:function(e){e&&(e.manifestUpdater&&(_=e.manifestUpdater),e.playbackController&&(o=e.playbackController))},reset:function(){E(),u()}},g=(0,b.default)(h).getInstance().getLogger(e),u(),e}a.__dashjs_factory_name="EventController",n.default=i.default.getClassFactory(a),t.exports=n.default},{131:131,46:46,47:47,48:48,55:55}],114:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var c=r(e(107)),h=e(189),p=r(e(174)),g=r(e(123)),m=r(e(97)),_=r(e(165)),v=r(e(47)),E=r(e(55)),i=r(e(48)),T=r(e(46));function a(n){n=n||{};var r=this.context,o=(0,v.default)(r).getInstance(),i=n.errHandler,a=n.mediaPlayerModel,s=n.dashMetrics,e=void 0,u=void 0,l=void 0;function f(e){return e&&e.type&&e.type===h.HTTPRequest.INIT_SEGMENT_TYPE}function t(){for(var e in l)l[e].reset();l={}}function d(e){if(l[e.request.mediaType]===e.sender){var t=e.request,n=e.response,r=f(t),i=t.mediaInfo.streamInfo;if(e.error&&(e.request.mediaType!==c.default.AUDIO&&e.request.mediaType!==c.default.VIDEO&&e.request.mediaType!==c.default.FRAGMENTED_TEXT||o.trigger(E.default.SERVICE_LOCATION_BLACKLIST_ADD,{entry:e.request.serviceLocation})),n&&i){var a=function(e,t,n,r){var i=new p.default;return i.streamId=n,i.mediaInfo=t.mediaInfo,i.segmentType=t.type,i.start=t.startTime,i.duration=t.duration,i.end=i.start+i.duration,i.bytes=e,i.index=t.index,i.quality=t.quality,i.representationId=t.representationId,i.endFragment=r,i}(n,t,i.id,e.type!==E.default.FRAGMENT_LOADING_PROGRESS);o.trigger(r?E.default.INIT_FRAGMENT_LOADED:E.default.MEDIA_FRAGMENT_LOADED,{chunk:a,fragmentModel:e.sender})}else u.warn("No "+t.mediaType+" bytes to push or stream is inactive.")}}return e={getModel:function(e){var t=l[e];return t||(t=(0,g.default)(r).create({dashMetrics:s,fragmentLoader:(0,m.default)(r).create({dashMetrics:s,mediaPlayerModel:a,errHandler:i,requestModifier:(0,_.default)(r).getInstance(),settings:n.settings})}),l[e]=t),t},isInitializationRequest:f,reset:function(){o.off(E.default.FRAGMENT_LOADING_COMPLETED,d,this),o.off(E.default.FRAGMENT_LOADING_PROGRESS,d,this),t()}},u=(0,T.default)(r).getInstance().getLogger(e),t(),o.on(E.default.FRAGMENT_LOADING_COMPLETED,d,e),o.on(E.default.FRAGMENT_LOADING_PROGRESS,d,e),e}a.__dashjs_factory_name="FragmentController",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,123:123,165:165,174:174,189:189,46:46,47:47,48:48,55:55,97:97}],115:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var A=r(e(107)),b=r(e(55)),I=r(e(47)),i=r(e(48)),S=r(e(46)),R="neverReplace",w="alwaysReplace",D="highestBitrate",N="widestRange",M=D;function a(){var e=this.context,o=(0,I.default)(e).getInstance(),t=void 0,a=void 0,s=void 0,n=void 0,r=void 0,u=void 0,l=void 0,i=[w,R],f=[D,N];function d(e,t){if(!e||!t)return[];var n=t.id;return s[n]&&s[n][e]?s[n][e].list:[]}function c(e,t){return!e||!t||t&&!s[t.id]?null:s[t.id][e].current}function h(e){if(e&&e.streamInfo){var t=e.type,n=e.streamInfo,r=n.id,i=c(t,n);if(s[r]&&s[r][t]&&!v(e,i)){s[r][t].current=e,s[r][t].current&&o.trigger(b.default.CURRENT_TRACK_CHANGED,{oldMediaInfo:i,newMediaInfo:e,switchMode:u[t]});var a=function(e){var t={lang:e.lang,viewpoint:e.viewpoint,roles:e.roles,accessibility:e.accessibility,audioChannelConfiguration:e.audioChannelConfiguration};return t.lang||t.viewpoint||t.role&&0<t.role.length||t.accessibility&&0<t.accessibility.length||t.audioChannelConfiguration&&0<t.audioChannelConfiguration.length?t:null}(e);a&&s[r][t].storeLastSettings&&(a.roles&&(a.role=a.roles[0],delete a.roles),a.accessibility&&(a.accessibility=a.accessibility[0]),a.audioChannelConfiguration&&(a.audioChannelConfiguration=a.audioChannelConfiguration[0]),l.setSavedMediaSettings(t,a))}}}function p(e,t){e&&t&&(n[e]=t)}function g(e){return e?n[e]:null}function m(){return r||M}function _(e){return e===A.default.AUDIO||e===A.default.VIDEO||e===A.default.TEXT||e===A.default.FRAGMENTED_TEXT||e===A.default.IMAGE}function v(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var n=e.id===t.id,r=e.viewpoint===t.viewpoint,i=e.lang===t.lang,a=e.roles.toString()===t.roles.toString(),o=e.accessibility.toString()===t.accessibility.toString(),s=e.audioChannelConfiguration.toString()===t.audioChannelConfiguration.toString();return n&&r&&i&&a&&o&&s}function E(){s={},n={audio:null,video:null},u={audio:w,video:R}}function T(t,e){var n=!t.lang||t.lang===e.lang,r=!t.viewpoint||t.viewpoint===e.viewpoint,i=!t.role||!!e.roles.filter(function(e){return e===t.role})[0],a=!t.accessibility||!!e.accessibility.filter(function(e){return e===t.accessibility})[0],o=!t.audioChannelConfiguration||!!e.audioChannelConfiguration.filter(function(e){return e===t.audioChannelConfiguration})[0];return n&&r&&i&&a&&o}function y(e){function t(e){var t=0,n=[],r=void 0;return e.forEach(function(e){r=Math.max.apply(Math,e.bitrateList.map(function(e){return e.bandwidth})),t<r?(t=r,n=[e]):r===t&&n.push(e)}),n}function n(e){var t=0,n=[],r=void 0;return e.forEach(function(e){r=e.representationCount,t<r?(t=r,n=[e]):r===t&&n.push(e)}),n}var r=m(),i=[];switch(r){case D:1<(i=t(e)).length&&(i=n(i));break;case N:1<(i=n(e)).length&&(i=t(e));break;default:a.warn("Track selection mode is not supported: "+r)}return i[0]}return t={checkInitialMediaSettingsForType:function(e,t){var n=g(e),r=d(e,t),i=[];e!==A.default.FRAGMENTED_TEXT?(n||p(e,n=l.getSavedMediaSettings(e)),r&&0!==r.length&&(n&&r.forEach(function(e){T(n,e)&&i.push(e)}),0===i.length?h(y(r)):1<i.length?h(y(i)):h(i[0]))):h(r[0])},addTrack:function(e){if(e){var t=e.type;if(_(t)){var n=e.streamInfo.id;s[n]||(s[n]={audio:{list:[],storeLastSettings:!0,current:null},video:{list:[],storeLastSettings:!0,current:null},text:{list:[],storeLastSettings:!0,current:null},fragmentedText:{list:[],storeLastSettings:!0,current:null},image:{list:[],storeLastSettings:!0,current:null}});for(var r=s[n][t].list,i=0,a=r.length;i<a;++i)if(v(r[i],e))return;r.push(e);var o=g(t);o&&T(o,e)&&!c(t,e.streamInfo)&&h(e)}}},getTracksFor:d,getCurrentTrackFor:c,isCurrentTrack:function(e){if(!e)return!1;var t=e.type,n=e.streamInfo.id;return s[n]&&s[n][t]&&v(s[n][t].current,e)},setTrack:h,setInitialSettings:p,getInitialSettings:g,setSwitchMode:function(e,t){-1!==i.indexOf(t)?u[e]=t:a.warn("Track switch mode is not supported: "+t)},getSwitchMode:function(e){return u[e]},setSelectionModeForInitialTrack:function(e){-1!==f.indexOf(e)?r=e:a.warn("Track selection mode is not supported: "+e)},getSelectionModeForInitialTrack:m,isMultiTrackSupportedByType:_,isTracksEqual:v,setConfig:function(e){e&&e.domStorage&&(l=e.domStorage)},reset:E},a=(0,S.default)(e).getInstance().getLogger(t),E(),t}a.__dashjs_factory_name="MediaController";var o=i.default.getSingletonFactory(a);o.TRACK_SWITCH_MODE_NEVER_REPLACE=R,o.TRACK_SWITCH_MODE_ALWAYS_REPLACE=w,o.TRACK_SELECTION_MODE_HIGHEST_BITRATE=D,o.TRACK_SELECTION_MODE_WIDEST_RANGE=N,o.DEFAULT_INIT_TRACK_SELECTION_MODE=M,i.default.updateSingletonFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{107:107,46:46,47:47,48:48,55:55}],116:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(46));function o(){var e=void 0,i=void 0,t=this.context;return e={createMediaSource:function(){var e="WebKitMediaSource"in window;return"MediaSource"in window?new MediaSource:e?new WebKitMediaSource:null},attachMediaSource:function(e,t){var n=window.URL.createObjectURL(e);return t.setSource(n),n},detachMediaSource:function(e){e.setSource(null)},setDuration:function(e,t){return e.duration!=t&&(e.duration=t),e.duration},setSeekable:function(e,t,n){e&&"function"==typeof e.setLiveSeekableRange&&"function"==typeof e.clearLiveSeekableRange&&"open"===e.readyState&&0<=t&&t<n&&(e.clearLiveSeekableRange(),e.setLiveSeekableRange(t,n))},signalEndOfStream:function(e){var t=e.sourceBuffers,n=t.length;if("open"===e.readyState){for(var r=0;r<n;r++){if(t[r].updating)return;if(0===t[r].buffered.length)return}i.info("call to mediaSource endOfStream"),e.endOfStream()}}},i=(0,a.default)(t).getInstance().getLogger(e),e}o.__dashjs_factory_name="MediaSourceController",n.default=i.default.getSingletonFactory(o),t.exports=n.default},{46:46,48:48}],117:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var he=r(e(107)),pe=r(e(112)),ge=r(e(47)),me=r(e(55)),i=r(e(48)),_e=r(e(46));function a(){var e=this.context,i=(0,ge.default)(e).getInstance(),t=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,n=void 0,o=void 0,r=void 0,c=void 0,h=void 0,p=void 0,g=void 0,m=void 0,_=void 0,a=void 0,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0;function R(e){!m&&e.fromStreamInfo&&void 0!==c[e.fromStreamInfo.id]&&(delete p[e.fromStreamInfo.id],delete c[e.fromStreamInfo.id])}function w(){return parseFloat((D()-L()).toFixed(5))}function D(){var e=q(!0),t=m&&g?e-g.start:0;return e+(g?g.duration-t:t)}function N(){g&&d&&d.getElement()?d.play():a=!0}function M(){return g&&d?d.isPaused():null}function O(){g&&d&&d.pause()}function C(){return g&&d?d.isSeeking():null}function P(e,t,n){g&&d&&(!0===n?e!==d.getTime()&&(d.removeEventListener("seeking",$),s.info("Requesting seek to time: "+e),d.setCurrentTime(e,t)):(i.trigger(me.default.PLAYBACK_SEEK_ASKED),s.info("Requesting seek to time: "+e),d.setCurrentTime(e,t)))}function L(){return g&&d?d.getTime():null}function x(){var e=L();if(m&&!isNaN(E)){var t=E/1e3;t<e&&(e-=t)}return e}function F(){return g&&d?d.getPlaybackRate():null}function U(){return g&&d?d.getEnded():null}function B(){return m}function k(){if(!m||isNaN(E))return NaN;var e=x();if(isNaN(e)||0===e)return 0;var t=(new Date).getTime()+1e3*n.getClientTimeOffset();return Math.max(((t-E-1e3*e)/1e3).toFixed(3),0)}function G(){o=NaN,a=!1,c={},E=h=0,p={},d&&(i.off(me.default.DATA_UPDATE_COMPLETED,z,this),i.off(me.default.BUFFER_LEVEL_STATE_CHANGED,de,this),i.off(me.default.BYTES_APPENDED_END_FRAGMENT,le,this),i.off(me.default.LOADING_PROGRESS,fe,this),i.off(me.default.PERIOD_SWITCH_STARTED,R,this),i.off(me.default.PLAYBACK_PROGRESS,se,this),i.off(me.default.PLAYBACK_TIME_UPDATED,se,this),i.off(me.default.PLAYBACK_ENDED,ae,this),V(),d.removeEventListener("canplay",W),d.removeEventListener("play",K),d.removeEventListener("waiting",X),d.removeEventListener("playing",Q),d.removeEventListener("pause",Z),d.removeEventListener("error",oe),d.removeEventListener("seeking",$),d.removeEventListener("seeked",J),d.removeEventListener("timeupdate",ee),d.removeEventListener("progress",te),d.removeEventListener("ratechange",ne),d.removeEventListener("loadedmetadata",re),d.removeEventListener("stalled",ce),d.removeEventListener("ended",ie)),m=g=d=r=null}function j(){var e=I.getURIFragmentData(),t=void 0;if(e){t={};var n=parseInt(e.r,10);0<=n&&g&&n<g.manifestInfo.DVRWindowSize&&null===e.t&&(e.t=Math.max(Math.floor(Date.now()/1e3)-g.manifestInfo.DVRWindowSize,g.manifestInfo.availableFrom.getTime()/1e3+g.start)+n),t.fragS=parseFloat(e.s),t.fragT=parseFloat(e.t)}return t}function q(e,t){var n=void 0,r=NaN;if(e)r=g?g.start:r;else{var i=j();r=i?isNaN(i.fragS)?i.fragT:i.fragS:0}if(m)!isNaN(r)&&g&&(n=r-g.manifestInfo.availableFrom.getTime()/1e3,(o<n||n<(isNaN(t)?NaN:t-g.manifestInfo.DVRWindowSize))&&(n=null)),n=n||o;else if(g)if(!isNaN(r)&&r<Math.max(g.manifestInfo.duration,g.duration)&&0<=r)n=r;else{var a=c[g.id];n=void 0!==a?Math.max(void 0!==a.audio?a.audio:0,void 0!==a.video?a.video:0,g.start):g.start}return n}function H(){if(null===r){r=setInterval(function(){i.trigger(me.default.WALLCLOCK_TIME_UPDATED,{isDynamic:m,time:new Date}),B()&&M()&&function(){var e=Date.now();(!v||v+500<e)&&(v=e,ee())}()},S.get().streaming.wallclockTimeUpdateInterval)}}function V(){clearInterval(r),r=null}function Y(){if(!M()&&m&&0!==d.getReadyState()){var e=x(),t=function(e){var t=l.getCurrentDVRInfo(),n=t?t.range:null;return n?e>n.end?Math.max(n.end-2*g.manifestInfo.minBufferTime,n.start):e+.25<n.start&&n.start-e>n.start-31536e4?n.start:e:NaN}(e);!isNaN(t)&&t!==e&&P(t)}}function z(e){if(!e.error){var t=f.convertDataToRepresentationInfo(e.currentRepresentation).mediaInfo.streamInfo;g.id===t.id&&(g=t,Y())}}function W(){i.trigger(me.default.CAN_PLAY)}function K(){s.info("Native video element event: play"),Y(),H(),i.trigger(me.default.PLAYBACK_STARTED,{startTime:L()})}function X(){s.info("Native video element event: waiting"),i.trigger(me.default.PLAYBACK_WAITING,{playingTime:L()})}function Q(){s.info("Native video element event: playing"),i.trigger(me.default.PLAYBACK_PLAYING,{playingTime:L()})}function Z(){s.info("Native video element event: pause"),i.trigger(me.default.PLAYBACK_PAUSED,{ended:U()})}function $(){var e=L();s.info("Seeking to: "+e),H(),i.trigger(me.default.PLAYBACK_SEEKING,{seekTime:e})}function J(){s.info("Native video element event: seeked"),i.trigger(me.default.PLAYBACK_SEEKED),d.addEventListener("seeking",$)}function ee(){g&&i.trigger(me.default.PLAYBACK_TIME_UPDATED,{timeToEnd:w(),time:L()})}function te(){i.trigger(me.default.PLAYBACK_PROGRESS)}function ne(){var e=F();s.info("Native video element event: ratechange: ",e),i.trigger(me.default.PLAYBACK_RATE_CHANGED,{playbackRate:e})}function re(){s.info("Native video element event: loadedmetadata"),i.trigger(me.default.PLAYBACK_METADATA_LOADED),H()}function ie(){s.info("Native video element event: ended"),O(),V(),i.trigger(me.default.PLAYBACK_ENDED,{isLast:u.getActiveStreamInfo().isLast})}function ae(e){r&&e.isLast&&(s.info("onPlaybackEnded -- PLAYBACK_ENDED but native video element didn't fire ended"),d.setCurrentTime(D()),O(),V())}function oe(e){var t=e.target||e.srcElement;i.trigger(me.default.PLAYBACK_ERROR,{error:t.error})}function se(){m&&S.get().streaming.lowLatencyEnabled&&0<S.get().streaming.lowLatencyEnabled&&!M()&&!C()&&(0<S.get().streaming.liveCatchUpPlaybackRate&&0<L()&&Math.abs(k()-_.getLiveDelay())>S.get().streaming.liveCatchUpMinDrift?function(){if(d){var e=S.get().streaming.liveCatchUpPlaybackRate,t=_.getLiveDelay(),n=k()-t,r=5*n,i=2*e/(1+Math.pow(Math.E,-r)),a=1-e+i;if(A){var o=function(){var n=null;return u.getActiveStreamProcessors().forEach(function(e){var t=e.getBufferLevel();n=null===n?t:Math.min(n,t)}),n}();t/2<o?A=!1:0<n&&(a=1)}Math.abs(d.getPlaybackRate()-a)>b&&d.setPlaybackRate(a),0<S.get().streaming.liveCatchUpMaxDrift&&!y&&n>S.get().streaming.liveCatchUpMaxDrift?(s.info("Low Latency catchup mechanism. Latency too high, doing a seek to live point"),y=!0,function(){var e=l.getCurrentDVRInfo();P((e?e.range:null).end-_.getLiveDelay(),!0,!1)}()):y=!1}}():ue())}function ue(){d&&d.setPlaybackRate(1)}function le(e){var t,n=void 0,r=e.bufferedRanges;if(r&&r.length&&(!c[g.id]||!0!==c[g.id].started)){var i=e.sender.getType();void 0===p[g.id]&&(p[g.id]=[]),p[g.id][i]=r,void 0===c[g.id]&&(c[g.id]=[],c[g.id].started=!1),void 0===c[g.id][i]&&(c[g.id][i]=Math.max(r.start(0),g.start));var a=u.isTrackTypePresent(he.default.VIDEO),o=u.isTrackTypePresent(he.default.AUDIO);t=q(!1),o&&a?isNaN(c[g.id].audio)||isNaN(c[g.id].video)||(r=c[g.id].audio<c[g.id].video?(n=c[g.id].video>t?c[g.id].video:t,p[g.id].audio):(n=c[g.id].audio>t?c[g.id].audio:t,p[g.id].video),function(e,t){if(t&&0<t.length)for(var n=0,r=t.length;n<r;n++)if(e>=t.start(n)&&e<t.end(n))return!0;return!1}(n,r)&&(C()||T||0===n||P(n,!0,!0),c[g.id].started=!0)):c[g.id][i]&&(n=c[g.id][i]>t?c[g.id][i]:t,C()||T||P(n,!1,!0),c[g.id].started=!0)}}function fe(e){if(!1===e.stream&&S.get().streaming.lowLatencyEnabled&&!isNaN(e.request.duration)){var t=1.2*e.request.duration;if(t>_.getLiveDelay()){s.warn("Browser does not support fetch API with StreamReader. Increasing live delay to be 20% higher than segment duration:",t.toFixed(2));var n={streaming:{liveDelay:t}};S.update(n)}}}function de(e){e.streamInfo.id===g.id&&(S.get().streaming.lowLatencyEnabled?e.state!==pe.default.BUFFER_EMPTY||C()||A||(A=!0,ue()):d.setStallState(e.mediaType,e.state===pe.default.BUFFER_EMPTY))}function ce(e){i.trigger(me.default.PLAYBACK_STALLED,{e:e})}return t={initialize:function(e,t){g=e,d.addEventListener("canplay",W),d.addEventListener("play",K),d.addEventListener("waiting",X),d.addEventListener("playing",Q),d.addEventListener("pause",Z),d.addEventListener("error",oe),d.addEventListener("seeking",$),d.addEventListener("seeked",J),d.addEventListener("timeupdate",ee),d.addEventListener("progress",te),d.addEventListener("ratechange",ne),d.addEventListener("loadedmetadata",re),d.addEventListener("stalled",ce),d.addEventListener("ended",ie),m=g.manifestInfo.isDynamic,A=y=!1,o=g.start,T=t;var n="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",r=/safari/.test(n)&&!/chrome/.test(n);b=r?.25:.02,i.on(me.default.DATA_UPDATE_COMPLETED,z,this),i.on(me.default.BYTES_APPENDED_END_FRAGMENT,le,this),i.on(me.default.LOADING_PROGRESS,fe,this),i.on(me.default.BUFFER_LEVEL_STATE_CHANGED,de,this),i.on(me.default.PERIOD_SWITCH_STARTED,R,this),i.on(me.default.PLAYBACK_PROGRESS,se,this),i.on(me.default.PLAYBACK_TIME_UPDATED,se,this),i.on(me.default.PLAYBACK_ENDED,ae,this),a&&(a=!1,N())},setConfig:function(e){e&&(e.streamController&&(u=e.streamController),e.dashMetrics&&(l=e.dashMetrics),e.mediaPlayerModel&&(_=e.mediaPlayerModel),e.adapter&&(f=e.adapter),e.videoModel&&(d=e.videoModel),e.timelineConverter&&(n=e.timelineConverter),e.uriFragmentModel&&(I=e.uriFragmentModel),e.settings&&(S=e.settings))},getStartTimeFromUriParameters:j,getStreamStartTime:q,getTimeToStreamEnd:w,getTime:L,getNormalizedTime:x,getPlaybackRate:F,getPlayedRanges:function(){return g&&d?d.getPlayedRanges():null},getEnded:U,getIsDynamic:B,getStreamController:function(){return u},setLiveStartTime:function(e){o=e},getLiveStartTime:function(){return o},computeLiveDelay:function(e,t){var n,r=void 0,i=void 0,a=f.getSuggestedPresentationDelay();if(r=S.get().streaming.useSuggestedPresentationDelay&&null!==a?a:S.get().streaming.lowLatencyEnabled?0:_.getLiveDelay()?_.getLiveDelay():isNaN(e)?2*g.manifestInfo.minBufferTime:e*S.get().streaming.liveDelayFragmentCount,null!==(n=f.getAvailabilityStartTime())&&(E=n),0<t){var o=Math.max(t-10,t/2);i=Math.min(r,o)}else i=r;return h=i},getLiveDelay:function(){return h},getCurrentLiveLatency:k,play:N,isPaused:M,pause:O,isSeeking:C,seek:P,reset:G},s=(0,_e.default)(e).getInstance().getLogger(t),G(),t}a.__dashjs_factory_name="PlaybackController",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,112:112,46:46,47:47,48:48,55:55}],118:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var ce=r(e(107)),he=e(191),pe=r(e(109)),ge=r(e(112)),me=r(e(144)),_e=r(e(145)),ve=r(e(123)),Ee=r(e(47)),Te=r(e(55)),i=r(e(48)),ye=r(e(46)),Ae=r(e(115));function a(e){e=e||{};var t=this.context,n=(0,Ee.default)(t).getInstance(),u=e.adapter,o=e.dashMetrics,s=e.timelineConverter,l=e.mediaPlayerModel,f=e.abrController,d=e.playbackController,i=e.streamController,a=e.textController,c=e.type,h=e.streamProcessor,p=e.mediaController,g=e.settings,r=void 0,m=void 0,_=void 0,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,w=void 0,D=void 0,N=void 0,M=void 0,O=void 0,C=void 0,P=void 0,L=void 0;function x(){v&&!h.isBufferingCompleted()?(m.debug("Schedule Controller starts"),fe(),T=!1,E=E&&!1,B(0)):m.warn("Start denied to Schedule Controller")}function F(){T||(m.debug("Schedule Controller stops"),T=!0,clearTimeout(b))}function U(){var e=h.getBufferController();if(T||y||!e||d.isPaused()&&!g.get().streaming.scheduleWhilePaused||!(c!==ce.default.FRAGMENTED_TEXT&&c!==ce.default.TEXT||a.isTextEnabled()))m.debug("Schedule stop!");else if(e.getIsBufferingCompleted())m.debug("Schedule stop because buffering is completed!");else{!function(){var e=d.getTime(),t=1.5*v.fragmentDuration,n=_.getRequests({state:ve.default.FRAGMENT_MODEL_EXECUTED,time:e+t,threshold:0})[0];if(n&&-1===M.indexOf(n)&&!u.getIsTextTrack(c)){var r=g.get().streaming.fastSwitchEnabled,i=h.getBufferLevel(),a=f.getAbandonmentStateFor(c),o=!p.isCurrentTrack(n.mediaInfo)&&p.getSwitchMode(n.mediaInfo.type)===Ae.default.TRACK_SWITCH_MODE_NEVER_REPLACE,s=n.quality<v.quality;r&&(o||s)&&t<=i&&a!==pe.default.ABANDON_LOAD?(q(n),L=!0,m.debug("Reloading outdated fragment at index: ",n.index)):n.quality>v.quality&&!C&&se(d.getTime()+h.getBufferLevel())}}();var t=0<M.length,r=h.getStreamInfo();if(C||isNaN(N)||O||t||function(e,t){D[t]=D[t]||{};var n=f.getTopQualityIndexFor(e,t);return D[t][e]!=n&&(m.info("Top quality "+e+" index has changed from "+D[t][e]+" to "+n),D[t][e]=n,!0)}(v.mediaInfo.type,r.id)||S.execute(h,i.isTrackTypePresent(ce.default.VIDEO))){G(!0),t||O||f.checkPlaybackQuality(c),function(){var e=h.getFragmentController();if(v.quality===N&&!O||C){var t=M.shift();if(e.isInitializationRequest(t))h.switchInitData(t.representationId);else{var n=void 0;h.getBufferController().getIsPruningInProgress()||(n=R.execute(h,I,t),se(NaN),n&&!t&&(isNaN(n.startTime+n.duration)||h.setIndexHandlerTime(n.startTime+n.duration),n.delayLoadingTime=(new Date).getTime()+A,ue(0)),!n&&r.manifestInfo&&r.manifestInfo.isDynamic&&m.debug("Next fragment seems to be at the bleeding live edge and is not available yet. Rescheduling.")),n?(m.debug("Next fragment request url is "+n.url),_.executeRequest(n)):(G(!1),B(g.get().streaming.lowLatencyEnabled?100:500))}}else m.debug("Quality has changed, get init request for representationid = "+v.id),O?(C=p.getSwitchMode(c)===Ae.default.TRACK_SWITCH_MODE_ALWAYS_REPLACE,m.debug("Switch track has been asked, get init request for "+c+" with representationid = "+v.id+"bufferResetInProgress = "+C),h.switchInitData(v.id,C),O=!1):h.switchInitData(v.id),N=v.quality}()}else B(500)}}function B(e){clearTimeout(b),b=setTimeout(U,e)}function k(e){e.sender&&e.sender.getStreamProcessor()===h&&j(v.quality)}function G(e){y!==e?y=e:m.debug("isFragmentProcessingInProgress is already equal to",e)}function j(e){var t=h.getInitRequest(e);t&&(G(!0),_.executeRequest(t))}function q(e){M.push(e)}function H(e){if(c===e.mediaType&&h.getStreamInfo().id===e.streamInfo.id){if(null==(v=h.getRepresentationInfo(e.newQuality)))throw new Error("Unexpected error! - currentRepresentationInfo is null or undefined");le(new Date,he.PlayListTrace.REPRESENTATION_SWITCH_STOP_REASON),fe()}}function V(e){if(d&&_){var t=_.getRequests({state:ve.default.FRAGMENT_MODEL_EXECUTED,time:d.getTime(),threshold:0})[0];t&&d.getTime()>=t.startTime&&((!w.mediaInfo||t.mediaInfo.type===w.mediaInfo.type&&t.mediaInfo.id!==w.mediaInfo.id)&&e&&n.trigger(Te.default.TRACK_CHANGE_RENDERED,{mediaType:c,oldMediaInfo:w.mediaInfo,newMediaInfo:t.mediaInfo}),t.quality===w.quality&&t.adaptationIndex===w.adaptationIndex||!e||n.trigger(Te.default.QUALITY_CHANGE_RENDERED,{mediaType:c,oldQuality:w.quality,newQuality:t.quality}),w={mediaInfo:t.mediaInfo,quality:t.quality,adaptationIndex:t.adaptationIndex})}}function Y(e){e.error||e.sender.getStreamProcessor()!==h||(v=u.convertDataToRepresentationInfo(e.currentRepresentation))}function z(e){h.getStreamInfo().id===e.streamInfo.id&&(v=h.getRepresentationInfo(),E&&(d.getIsDynamic()?(s.setTimeSyncCompleted(!0),function(){var e=h.getLiveEdgeFinder();if(e){var t=e.getLiveEdge(),n=v.mediaInfo.streamInfo.manifestInfo.DVRWindowSize/2,r=t-d.computeLiveDelay(v.fragmentDuration,n),i=h.getFragmentRequest(v,r,{ignoreIsFinished:!0});if(i)if(g.get().streaming.lowLatencyEnabled){var a=i.duration<l.getLiveDelay()?i.startTime:i.startTime+i.duration-l.getLiveDelay();d.setLiveStartTime(a)}else d.setLiveStartTime(i.startTime);else m.debug("setLiveEdgeSeekTarget : getFragmentRequest returned undefined request object");se(d.getStreamStartTime(!1,t)),h.getBufferController().setSeekStartTime(I),I>v.mediaInfo.streamInfo.start+v.mediaInfo.streamInfo.duration&&d.seek(I),o.updateManifestUpdateInfo({currentTime:I,presentationStartTime:t,latency:t-I,clientTimeOffset:s.getClientTimeOffset()})}}()):(se(d.getStreamStartTime(!1)),h.getBufferController().setSeekStartTime(I))),T&&x())}function W(e){e.fragmentModel===_&&(F(),G(!1),m.info("Stream is complete"))}function K(e){e.sender===_&&(m.info("OnFragmentLoadingCompleted - Url:",e.request?e.request.url:"undefined",", Range:",e.request.range?e.request.range:"undefined"),u.getIsTextTrack(c)&&G(!1),e.error&&e.request.serviceLocation&&!T&&(q(e.request),G(!1),B(0)),C&&(P=e.request))}function X(){V(!0)}function Q(e){if(e.sender.getStreamProcessor()===h)if(C&&!isNaN(e.startTime)&&(C=!1,_.addExecutedRequest(P)),G(!1),L&&!isNaN(e.startTime)){var t=d.getTime(),n=e.startTime+v.fragmentDuration,r=1.5*v.fragmentDuration;B(n<=t+r?0:1e3*(n-(t+r))),L=!1}else B(0)}function Z(e){e.streamProcessor===h&&(m.info("onFragmentLoadingAbandoned for "+c+", request: "+e.request.url+" has been aborted"),d.isSeeking()||O||(m.info("onFragmentLoadingAbandoned for "+c+", request: "+e.request.url+" has to be downloaded again, origin is not seeking process or switch track call"),q(e.request)),G(!1),B(0))}function $(e){e.sender.getStreamProcessor()===h&&F()}function J(e){if(e.sender.getStreamProcessor()===h){var t=h.getStreamInfo();t&&(e.unintended?_.removeExecutedRequestsAfterTime(e.from):_.syncExecutedRequestsWithBufferedRange(h.getBufferController().getBuffer().getAllBufferRanges(),t.duration)),e.hasEnoughSpaceToAppend&&T&&x()}}function ee(e){e.sender.getStreamProcessor()!==h||e.state!==ge.default.BUFFER_EMPTY||d.isSeeking()||(m.info("Buffer is empty! Stalling!"),le(new Date,he.PlayListTrace.REBUFFERING_REASON))}function te(e){e.sender.getStreamProcessor()===h&&(F(),G(!1))}function ne(){_.abortRequests(),F()}function re(e){e.sender.getStreamProcessor()===h&&a.isTextEnabled()&&j(e.index)}function ie(){!T&&g.get().streaming.scheduleWhilePaused||x()}function ae(e){se(e.seekTime),ue(0),T&&x();var t=v.DVRWindow&&d?v.DVRWindow.end-d.getTime():NaN;o.updateManifestUpdateInfo({latency:t}),y?(m.debug("onPlaybackSeeking for "+c+", call fragmentModel.abortRequests in order to seek quicker"),_.abortRequests()):B(0)}function oe(e){o.updatePlayListTraceMetrics({playbackspeed:e.playbackRate.toString()})}function se(e){I=e}function ue(e){A=e}function le(e,t){o.pushPlayListTraceMetrics(e,t)}function fe(){if(v){var e=d.getPlaybackRate();o.createPlaylistTraceMetrics(v.id,1e3*d.getTime(),null!==e?e.toString():null)}}function de(){w={mediaInfo:void(A=0),quality:N=I=NaN,adaptationIndex:NaN},D={},P=null,L=C=O=!(T=E=!(y=!(M=[])))}return r={initialize:function(){_=h.getFragmentModel(),S=(0,me.default)(t).create({abrController:f,dashMetrics:o,mediaPlayerModel:l,textController:a,settings:g}),R=(0,_e.default)(t).create({textController:a,playbackController:d}),u.getIsTextTrack(e.mimeType)&&n.on(Te.default.TIMED_TEXT_REQUESTED,re,this),n.on(Te.default.QUALITY_CHANGE_REQUESTED,H,this),n.on(Te.default.DATA_UPDATE_STARTED,$,this),n.on(Te.default.DATA_UPDATE_COMPLETED,Y,this),n.on(Te.default.FRAGMENT_LOADING_COMPLETED,K,this),n.on(Te.default.STREAM_COMPLETED,W,this),n.on(Te.default.STREAM_INITIALIZED,z,this),n.on(Te.default.BUFFER_LEVEL_STATE_CHANGED,ee,this),n.on(Te.default.BUFFER_CLEARED,J,this),n.on(Te.default.BYTES_APPENDED_END_FRAGMENT,Q,this),n.on(Te.default.INIT_REQUESTED,k,this),n.on(Te.default.QUOTA_EXCEEDED,te,this),n.on(Te.default.PLAYBACK_SEEKING,ae,this),n.on(Te.default.PLAYBACK_STARTED,ie,this),n.on(Te.default.PLAYBACK_RATE_CHANGED,oe,this),n.on(Te.default.PLAYBACK_TIME_UPDATED,X,this),n.on(Te.default.URL_RESOLUTION_FAILED,ne,this),n.on(Te.default.FRAGMENT_LOADING_ABANDONED,Z,this)},getType:function(){return c},setSeekTarget:se,setTimeToLoadDelay:ue,replaceRequest:q,switchTrackAsked:function(){O=!0},isStarted:function(){return!1===T},start:x,stop:F,reset:function(){n.off(Te.default.DATA_UPDATE_STARTED,$,this),n.off(Te.default.DATA_UPDATE_COMPLETED,Y,this),n.off(Te.default.BUFFER_LEVEL_STATE_CHANGED,ee,this),n.off(Te.default.QUALITY_CHANGE_REQUESTED,H,this),n.off(Te.default.FRAGMENT_LOADING_COMPLETED,K,this),n.off(Te.default.STREAM_COMPLETED,W,this),n.off(Te.default.STREAM_INITIALIZED,z,this),n.off(Te.default.QUOTA_EXCEEDED,te,this),n.off(Te.default.BYTES_APPENDED_END_FRAGMENT,Q,this),n.off(Te.default.BUFFER_CLEARED,J,this),n.off(Te.default.INIT_REQUESTED,k,this),n.off(Te.default.PLAYBACK_RATE_CHANGED,oe,this),n.off(Te.default.PLAYBACK_SEEKING,ae,this),n.off(Te.default.PLAYBACK_STARTED,ie,this),n.off(Te.default.PLAYBACK_TIME_UPDATED,X,this),n.off(Te.default.URL_RESOLUTION_FAILED,ne,this),n.off(Te.default.FRAGMENT_LOADING_ABANDONED,Z,this),u.getIsTextTrack(c)&&n.off(Te.default.TIMED_TEXT_REQUESTED,re,this),F(),V(!1),de()},getBufferTarget:function(){return S.getBufferTarget(h,i.isTrackTypePresent(ce.default.VIDEO))},finalisePlayList:function(e,t){le(e,t)}},m=(0,ye.default)(t).getInstance().getLogger(r),de(),r}a.__dashjs_factory_name="ScheduleController",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,109:109,112:112,115:115,123:123,144:144,145:145,191:191,46:46,47:47,48:48,55:55}],119:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var we=r(e(107)),De=r(e(108)),Ne=r(e(104)),Me=r(e(99)),Oe=r(e(47)),Ce=r(e(55)),i=r(e(48)),Pe=e(191),Le=r(e(46)),xe=r(e(161)),Fe=r(e(168)),Ue=r(e(101)),Be=r(e(120)),ke=r(e(110)),Ge=r(e(116)),je=r(e(173)),qe=r(e(52));function a(){var t=40,r=2e3,s=this.context,f=(0,Oe.default)(s).getInstance(),u=void 0,d=void 0,l=void 0,c=void 0,n=void 0,h=void 0,p=void 0,g=void 0,o=void 0,m=void 0,_=void 0,v=void 0,E=void 0,T=void 0,i=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,a=void 0,w=void 0,D=void 0,N=void 0,M=void 0,O=void 0,C=void 0,P=void 0,L=void 0,x=void 0,F=void 0,U=void 0,B=void 0,k=void 0,G=void 0,j=void 0,q=void 0,H=void 0,V=void 0,Y=void 0,z=void 0,W=void 0,K=void 0;function X(){if(me(we.default.VIDEO)){var e=C.getPlaybackQuality();e&&g.addDroppedFrames(e)}}function Q(){if(!(!K.get().streaming.jumpGaps||0===oe()||P.isSeeking()||x||D||N||M)&&t<=++q){var e=P.getTime();z===e?function(e){for(var t=oe(),n=K.get().streaming.smallGapLimit,r=void 0,i=0;i<t.length;i++){var a=t[i].getBuffer().getAllBufferRanges(),o=void 0;if(a&&!(a.length<=1)){for(var s=0;s<a.length;s++)if(e<a.start(s)){o=a.start(s);break}if(0<o){var u=o-e;0<u&&u<=n&&(void 0===r||r<o)&&(r=o)}}}var l=P.getTimeToStreamEnd();void 0===r&&!isNaN(l)&&l<n&&(r=e+l);0<r&&(!isNaN(l)&&e+l<=r?(d.info("Jumping media gap (discontinuity) at time ",e,". Jumping to end of the stream"),f.trigger(Ce.default.PLAYBACK_ENDED,{isLast:ye().isLast})):(d.info("Jumping media gap (discontinuity) at time ",e,". Jumping to time position",r),P.seek(r,!0,!0)))}(e):z=e,q=0}}function Z(e){var t=ae(e.seekTime);G&&(ee(),k=!1),j&&(d.debug("[PreloadTimer] stop period preload timer."),clearTimeout(j),j=void 0),t===S&&Y&&Y.deactivate(!0),t&&(t!==S||Y&&!S.isActive())?(ve(Pe.PlayListTrace.END_OF_PERIOD_STOP_REASON),le(S,t,e.seekTime)):ve(Pe.PlayListTrace.USER_REQUEST_STOP_REASON),Ee(Pe.PlayList.SEEK_START_REASON)}function $(){d.debug("[onPlaybackStarted]"),F?(F=!1,Ee(Pe.PlayList.INITIAL_PLAYOUT_START_REASON)):x&&(x=!1,Ee(Pe.PlayList.RESUME_FROM_PAUSE_START_REASON),te())}function J(e){d.debug("[onPlaybackPaused]"),e.ended||(x=!0,ve(Pe.PlayListTrace.USER_REQUEST_STOP_REASON),te())}function ee(){d.debug("[toggleEndPeriodTimer] stop end period timer."),clearTimeout(G),G=void 0}function te(){if(k)if(G)ee();else{var e=P.getTimeToStreamEnd(),t=0<e?1e3*e:0,n=t<r?t/4:t-r;d.debug("[toggleEndPeriodTimer] Going to fire preload in",n,"milliseconds"),j=setTimeout(ie,n),d.debug("[toggleEndPeriodTimer] start-up of timer to notify PLAYBACK_ENDED event. It will be triggered in",t,"milliseconds"),G=setTimeout(function(){f.trigger(Ce.default.PLAYBACK_ENDED,{isLast:ye().isLast})},t)}}function ne(e){if(e.sender&&(e.sender.getType()===we.default.AUDIO||e.sender.getType()===we.default.VIDEO)){var t=ye().isLast;O&&!t&&void 0===G&&(d.info("[onTrackBufferingCompleted] end of period detected. Track",e.sender.getType(),"has finished"),!(k=!0)===x&&te())}}function re(){var e=ye().isLast;O&&e&&(d.info("[onStreamBufferingCompleted] calls signalEndOfStream of mediaSourceController."),o.signalEndOfStream(O))}function ie(){var t,e=ye().isLast;O&&!e&&(t=ue(),(V=S.isProtectionCompatible(t)&&(W||S.isMediaCodecCompatible(t)))&&(d.info("[onStreamCanLoadNext] Preloading next stream"),S.stopEventController(),S.deactivate(!0),t.preload(O,H),(Y=t).getProcessors().forEach(function(e){e.setIndexHandlerTime(t.getStartTime())})))}function ae(e){var t=0,n=null,r=I.length;0<r&&(t+=I[0].getStartTime());for(var i=0;i<r;i++)if(n=I[i],e<(t=parseFloat((t+n.getDuration()).toFixed(5))))return n;return null}function oe(){return S?S.getProcessors():[]}function se(){var e=ue();e?(U=B=void 0,le(S,e,NaN)):d.debug("StreamController no next stream found"),ve(e?Pe.PlayListTrace.END_OF_PERIOD_STOP_REASON:Pe.PlayListTrace.END_OF_CONTENT_STOP_REASON),G=void 0,k=!1}function ue(){if(S){var e=(t=ye().start,n=ye().duration,{v:I.filter(function(e){return e.getStreamInfo().start===parseFloat((t+n).toFixed(5))})[0]});if("object"==typeof e)return e.v}var t,n}function le(e,t,n){D||!t||e===t&&t.isActive()||(D=!0,f.trigger(Ce.default.PERIOD_SWITCH_STARTED,{fromStreamInfo:e?e.getStreamInfo():null,toStreamInfo:t.getStreamInfo()}),V=!1,e&&(e.stopEventController(),V=S.isProtectionCompatible(t)&&(W||S.isMediaCodecCompatible(t))&&!n||t.getPreloaded(),e.deactivate(V)),S=t,Y=!1,P.initialize(ye(),V),C.getElement()?fe(n,e,!1,V):function(e){de(e,V)}(n))}function fe(e,t,n,r){var i=void 0;function a(){O&&(d.debug("MediaSource is open!"),window.URL.revokeObjectURL(i),O.removeEventListener("sourceopen",a),O.removeEventListener("webkitsourceopen",a),ce(),t||f.trigger(Ce.default.SOURCE_INITIALIZED),n?S.setMediaSource(O):de(e,r))}O?r?(de(e,r),t||f.trigger(Ce.default.SOURCE_INITIALIZED)):(o.detachMediaSource(C),O.addEventListener("sourceopen",a,!1),O.addEventListener("webkitsourceopen",a,!1),i=o.attachMediaSource(O,C),d.debug("MediaSource attached to element. Waiting on open...")):((O=o.createMediaSource()).addEventListener("sourceopen",a,!1),O.addEventListener("webkitsourceopen",a,!1),i=o.attachMediaSource(O,C),d.debug("MediaSource attached to element. Waiting on open..."))}function de(e,t){if(H=S.activate(O,t?H:void 0),B=_e(we.default.AUDIO),U=_e(we.default.VIDEO),H){var n=Object.keys(H);0<n.length&&H[n[0]].changeType&&(d.debug("SourceBuffer changeType method supported. Use it to switch codecs in periods transitions"),W=!0)}var r;F||(isNaN(e)?(r=P.getStreamStartTime(!0),t||oe().forEach(function(e){p.setIndexHandlerTime(e,r)})):P.seek(e)),S.startEventController(),!w&&F||P.play(),D=!1,f.trigger(Ce.default.PERIOD_SWITCH_COMPLETED,{toStreamInfo:ye()})}function ce(e){var t=e||ye().manifestInfo.duration,n=o.setDuration(O,t);d.debug("Duration successfully set to: "+n)}function he(e){for(var t=0,n=I.length;t<n;t++)if(I[t].getId()===e.id)return I[t];return null}function pe(){var e=h.getValue();R&&(f.trigger(Ce.default.PROTECTION_CREATED,{controller:R,manifest:e}),R.setMediaElement(C.getElement()),a&&R.setProtectionData(a)),function(){try{var e=p.getStreamsInfo();if(0===e.length)throw new Error("There are no streams");g.updateManifestUpdateInfo({currentTime:P.getTime(),buffered:C.getBufferRange(),presentationStartTime:e[0].start,clientTimeOffset:b.getClientTimeOffset()});for(var t=0,n=e.length;t<n;t++){var r=e[t],i=he(r);i?i.updateData(r):(i=(0,Ne.default)(s).create({manifestModel:h,mediaPlayerModel:L,dashMetrics:g,manifestUpdater:c,adapter:p,timelineConverter:b,capabilities:l,errHandler:A,baseURLController:_,abrController:v,playbackController:P,mediaController:E,textController:T,videoModel:C,streamController:u,settings:K}),I.push(i),i.initialize(r,R)),g.addManifestUpdateStreamInfo(r)}if(!S){var a=P.getStartTimeFromUriParameters(),o=null;if(a)o=ae(isNaN(a.fragS)?a.fragT:a.fragS);le(null,null!==o?o:I[0],NaN)}f.trigger(Ce.default.STREAMS_COMPOSED)}catch(e){A.error(new je.default(qe.default.MANIFEST_ERROR_ID_NOSTREAMS_CODE,e.message+"nostreamscomposed",h.getValue())),M=!0,Se()}}()}function ge(s){s.error?(M=!0,Se()):function(){var e=s.manifest;p.updatePeriods(e);var t=p.getStreamsInfo(void 0,1)[0],n=p.getMediaInfoForType(t,we.default.VIDEO)||p.getMediaInfoForType(t,we.default.AUDIO),r=void 0;if(n&&(r=p.getUseCalculatedLiveEdgeTimeForMediaInfo(n))){d.debug("SegmentTimeline detected using calculated Live Edge Time");K.update({streaming:{useManifestDateHeaderTimeSource:!1}})}var i=p.getUTCTimingSources(),a=!p.getIsDynamic()||r?i:i.concat(L.getUTCTimingSources()),o=y.isHTTPS(s.manifest.url);a.forEach(function(e){e.value.replace(/.*?:\/\//g,"")===L.getDefaultUtcTimingSource().value.replace(/.*?:\/\//g,"")&&(e.value=e.value.replace(o?new RegExp(/^(http:)?\/\//i):new RegExp(/^(https:)?\/\//i),o?"https://":"http://"),d.debug("Matching default timing source protocol to manifest protocol: ",e.value))}),_.initialize(e),m.setConfig({dashMetrics:g,baseURLController:_}),m.initialize(a,K.get().streaming.useManifestDateHeaderTimeSource)}()}function me(e){var t=void 0;if(!e)return t;switch(e){case we.default.VIDEO:t=U;break;case we.default.AUDIO:t=B}return t}function _e(t){var n=!1;return oe().forEach(function(e){e.getMediaInfo().type===t&&(n=!0)}),n}function ve(n,r){r=r||new Date,oe().forEach(function(e){var t=e.getScheduleController();t&&t.finalisePlayList(r,n)}),g.addPlayList()}function Ee(e){g.createPlaylistMetrics(1e3*P.getTime(),e)}function Te(e){if(e.error){var t="";switch(e.error.code){case 1:t="MEDIA_ERR_ABORTED";break;case 2:t="MEDIA_ERR_NETWORK";break;case 3:t="MEDIA_ERR_DECODE";break;case 4:t="MEDIA_ERR_SRC_NOT_SUPPORTED";break;case 5:t="MEDIA_ERR_ENCRYPTED";break;default:t="UNKNOWN"}N=!0,e.error.message&&(t+=" ("+e.error.message+")"),e.error.msExtendedCode&&(t+=" (0x"+(e.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),d.fatal("Video Element Error: "+t),e.error&&d.fatal(e.error),A.error(new je.default(e.error.code,t)),Se()}}function ye(){return S?S.getStreamInfo():null}function Ae(){if(!(n&&n.hasOwnProperty("load")&&b&&b.hasOwnProperty("initialize")&&b.hasOwnProperty("reset")&&b.hasOwnProperty("getClientTimeOffset")&&h&&A&&g&&P))throw new Error("setConfig function has to be called previously")}function be(e){isNaN(e.newDuration)||ce(e.newDuration)}function Ie(){S=R=null,G=B=U=void 0,k=!(w=!(x=!(F=!(M=N=D=!(I=[]))))),q=0}function Se(){Ae(),m.reset(),ve(N||M?Pe.PlayListTrace.FAILURE_STOP_REASON:Pe.PlayListTrace.USER_REQUEST_STOP_REASON);for(var e=0,t=I?I.length:0;e<t;e++){I[e].reset(N)}!function(){f.off(Ce.default.PLAYBACK_TIME_UPDATED,X,this),f.off(Ce.default.PLAYBACK_SEEKING,Z,this),f.off(Ce.default.PLAYBACK_ERROR,Te,this),f.off(Ce.default.PLAYBACK_STARTED,$,this),f.off(Ce.default.PLAYBACK_PAUSED,J,this),f.off(Ce.default.PLAYBACK_ENDED,se,this),f.off(Ce.default.MANIFEST_UPDATED,ge,this),f.off(Ce.default.BUFFERING_COMPLETED,ne,this),f.off(Ce.default.STREAM_BUFFERING_COMPLETED,re,this),f.off(Ce.default.MANIFEST_VALIDITY_CHANGED,be,this),f.off(Ce.default.TIME_SYNCHRONIZATION_COMPLETED,pe,this),f.off(Ce.default.WALLCLOCK_TIME_UPDATED,Q,this),f.off(Ue.default.METRIC_ADDED,Re,this)}(),_.reset(),c.reset(),g.clearAllCurrentMetrics(),h.setValue(null),n.reset(),b.reset(),i.reset(),O&&(o.detachMediaSource(C),O=null),C=null,R&&(R.setMediaElement(null),a=R=null,h.getValue()&&f.trigger(Ce.default.PROTECTION_DESTROYED,{data:h.getValue().url})),f.trigger(Ce.default.STREAM_TEARDOWN_COMPLETE),Ie()}function Re(e){e.metric===De.default.DVR_INFO&&e.mediaType===we.default.AUDIO&&o.setSeekable(O,e.value.range.start,e.value.range.end)}return u={initialize:function(e,t){Ae(),w=e,a=t,b.initialize(),(c=(0,Me.default)(s).create()).setConfig({manifestModel:h,adapter:p,mediaPlayerModel:L,manifestLoader:n,errHandler:A,settings:K}),c.initialize(),_.setConfig({adapter:p}),function(){f.on(Ce.default.PLAYBACK_TIME_UPDATED,X,this),f.on(Ce.default.PLAYBACK_SEEKING,Z,this),f.on(Ce.default.PLAYBACK_ERROR,Te,this),f.on(Ce.default.PLAYBACK_STARTED,$,this),f.on(Ce.default.PLAYBACK_PAUSED,J,this),f.on(Ce.default.PLAYBACK_ENDED,se,this),f.on(Ce.default.MANIFEST_UPDATED,ge,this),f.on(Ce.default.BUFFERING_COMPLETED,ne,this),f.on(Ce.default.STREAM_BUFFERING_COMPLETED,re,this),f.on(Ce.default.MANIFEST_VALIDITY_CHANGED,be,this),f.on(Ce.default.TIME_SYNCHRONIZATION_COMPLETED,pe,this),f.on(Ce.default.WALLCLOCK_TIME_UPDATED,Q,this),f.on(Ue.default.METRIC_ADDED,Re,this)}()},getActiveStreamInfo:ye,isTrackTypePresent:me,switchToVideoElement:function(e){S&&(P.initialize(ye()),fe(e,null,!0,!1))},getStreamById:function(t){return I.filter(function(e){return e.getId()===t})[0]},getStreamForTime:ae,getTimeRelativeToStreamId:function(e,t){for(var n=null,r=0,i=0,a=null,o=I.length,s=0;s<o;s++){if(i=(n=I[s]).getStartTime(),a=n.getDuration(),Number.isFinite(i)&&(r=i),n.getId()===t)return e-r;Number.isFinite(a)&&(r+=a)}return null},load:function(e){Ae(),n.load(e)},loadWithManifest:function(e){!function(){if(!c||!c.hasOwnProperty("setManifest"))throw new Error("initialize function has to be called previously")}(),c.setManifest(e)},getActiveStreamProcessors:oe,setConfig:function(e){e&&(e.capabilities&&(l=e.capabilities),e.manifestLoader&&(n=e.manifestLoader),e.manifestModel&&(h=e.manifestModel),e.mediaPlayerModel&&(L=e.mediaPlayerModel),e.protectionController&&(R=e.protectionController),e.adapter&&(p=e.adapter),e.dashMetrics&&(g=e.dashMetrics),e.errHandler&&(A=e.errHandler),e.timelineConverter&&(b=e.timelineConverter),e.videoModel&&(C=e.videoModel),e.playbackController&&(P=e.playbackController),e.abrController&&(v=e.abrController),e.mediaController&&(E=e.mediaController),e.textController&&(T=e.textController),e.settings&&(K=e.settings))},setProtectionData:function(e){a=e},reset:Se},d=(0,Le.default)(s).getInstance().getLogger(u),m=(0,Be.default)(s).getInstance(),_=(0,ke.default)(s).getInstance(),o=(0,Ge.default)(s).getInstance(),i=(0,xe.default)(s).getInstance(),y=(0,Fe.default)(s).getInstance(),Ie(),u}a.__dashjs_factory_name="StreamController",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{101:101,104:104,107:107,108:108,110:110,116:116,120:120,161:161,168:168,173:173,191:191,46:46,47:47,48:48,52:52,55:55,99:99}],120:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var A=r(e(173)),b=e(189),I=r(e(47)),S=r(e(55)),R=r(e(52)),i=r(e(48)),w=r(e(46)),D=r(e(168));function a(){var e=this.context,r=(0,I.default)(e).getInstance(),c=(0,D.default)(e).getInstance(),t=void 0,o=void 0,n=void 0,i=void 0,s=void 0,u=void 0,a=void 0,h=void 0;function l(e){i=e}function f(e){n=e}function d(e){var t=Date.parse(e);return isNaN(t)&&(t=function(e){var t=void 0,n=void 0,r=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+\-])([0-9]{2})([0-9]{2}))?/.exec(e);return t=Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10),r[6]&&(parseInt(r[6],10)||0),r[7]&&1e3*parseFloat(r[7])||0),r[9]&&r[10]&&(n=60*parseInt(r[9],10)+parseInt(r[10],10),t+=("+"===r[8]?-1:1)*n*60*1e3),new Date(t).getTime()}(e)),t}function p(e){return Date.parse(e)}function g(e){return Date.parse(e)}function m(e,t,n){n()}function _(e,t,n){var r=d(e);isNaN(r)?n():t(r)}function v(n,e,r,t,i){var a,o,s=!1,u=new XMLHttpRequest,l=i?b.HTTPRequest.HEAD:b.HTTPRequest.GET,f=e.match(/\S+/g);if(e=f.shift(),a=function(){s||(s=!0,f.length?v(n,f.join(" "),r,t,i):t())},o=function(){var e=void 0,t=void 0;200===u.status&&(e=i?u.getResponseHeader("Date"):u.response,t=n(e),isNaN(t)||(r(t),s=!0))},c.isRelative(e)){var d=h.resolve();d&&(e=c.resolve(e,d.url))}u.open(l,e),u.timeout=5e3,u.onload=o,u.onloadend=a,u.send()}function E(e,t,n){v(g,e,t,n,!0)}function T(){var e=a.getLatestMPDRequestHeaderValueByID("Date"),t=null!==e?new Date(e).getTime():Number.NaN;isNaN(t)?y(!0):(f(t-(new Date).getTime()),y(!1,t/1e3,n))}function y(e,t,n){l(!1),r.trigger(S.default.TIME_SYNCHRONIZATION_COMPLETED,{time:t,offset:n,error:e?new A.default(R.default.TIME_SYNC_FAILED_ERROR_CODE,R.default.TIME_SYNC_FAILED_ERROR_MESSAGE):null})}return t={initialize:function(e,t){s=t,n=0,i=!1,u={"urn:mpeg:dash:utc:http-head:2014":E,"urn:mpeg:dash:utc:http-xsdate:2014":v.bind(null,d),"urn:mpeg:dash:utc:http-iso:2014":v.bind(null,p),"urn:mpeg:dash:utc:direct:2014":_,"urn:mpeg:dash:utc:http-head:2012":E,"urn:mpeg:dash:utc:http-xsdate:2012":v.bind(null,d),"urn:mpeg:dash:utc:http-iso:2012":v.bind(null,p),"urn:mpeg:dash:utc:direct:2012":_,"urn:mpeg:dash:utc:http-ntp:2014":m,"urn:mpeg:dash:utc:ntp:2014":m,"urn:mpeg:dash:utc:sntp:2014":m},i||function e(t,n){var r=n||0;var i=t[r];var a=function(e,t){var n=!e||!t;n&&s?T():y(n,e,t)};l(!0);i?u.hasOwnProperty(i.schemeIdUri)?u[i.schemeIdUri](i.value,function(e){var t=(new Date).getTime(),n=e-t;f(n),o.info("Local time: "+new Date(t)),o.info("Server time: "+new Date(e)),o.info("Server Time - Local Time (ms): "+n),a(e,n)},function(){e(t,r+1)}):e(t,r+1):(f(0),a())}(e)},getOffsetToDeviceTimeMs:function(){return n},setConfig:function(e){e&&(e.dashMetrics&&(a=e.dashMetrics),e.baseURLController&&(h=e.baseURLController))},reset:function(){l(!1)}},o=(0,w.default)(e).getInstance().getLogger(t),t}a.__dashjs_factory_name="TimeSyncController";var o=i.default.getSingletonFactory(a);o.HTTP_TIMEOUT_MS=5e3,i.default.updateSingletonFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{168:168,173:173,189:189,46:46,47:47,48:48,52:52,55:55}],121:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var p=r(e(106)),g=r(e(47)),m=r(e(55)),i=r(e(48)),_=r(e(3)),v=r(e(168)),E=r(e(62)),T="onLoad";function a(e){e=e||{};var t=this.context,i=(0,g.default)(t).getInstance(),s=(0,v.default)(t).getInstance(),n=void 0,r=void 0,u=void 0,l=void 0,a=void 0,f=void 0;function o(e,t,n){var r={},i=void 0,a=void 0;r.elements=e,r.type=t,r.resolveType=n,0===r.elements.length&&c(r);for(var o=0;o<r.elements.length;o++)i=r.elements[o],a=s.isHTTPURL(i.url)?i.url:i.originalContent.BaseURL+i.url,f.load(a,i,r)}function d(e){var t,n=void 0,r="";if(n=e.element,t=e.resolveObject,n.resolvedContent){var i=0;0===n.resolvedContent.indexOf("<?xml")&&(i=n.resolvedContent.indexOf("?>")+2),r=n.resolvedContent.substr(0,i)+"<response>"+n.resolvedContent.substr(i)+"</response>",n.resolvedContent=a.xml_str2json(r)}!function(e){var t=void 0;for(t=0;t<e.elements.length;t++)if(!1===e.elements[t].resolved)return!1;return!0}(t)||c(t)}function c(e){var t=[],n=void 0,r=void 0;if(function(e){var t=[],n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0;for(a=e.elements.length-1;0<=a;a--){if(n=e.elements[a],r=n.type+"_asArray",n.resolvedContent){if(n.resolvedContent)for(o=0;o<n.resolvedContent[r].length;o++)i=n.resolvedContent[r][o],t.push(i)}else delete n.originalContent["xlink:actuate"],delete n.originalContent["xlink:href"],t.push(n.originalContent);for(n.parentElement[r].splice(n.index,1),s=0;s<t.length;s++)n.parentElement[r].splice(n.index+s,0,t[s]);t=[]}0<e.elements.length&&u.run(l)}(e),"onActuate"===e.resolveType&&i.trigger(m.default.XLINK_READY,{manifest:l}),e.resolveType===T)switch(e.type){case E.default.PERIOD:for(n=0;n<l[E.default.PERIOD+"_asArray"].length;n++)(r=l[E.default.PERIOD+"_asArray"][n]).hasOwnProperty(E.default.ADAPTATION_SET+"_asArray")&&(t=t.concat(h(r[E.default.ADAPTATION_SET+"_asArray"],r,E.default.ADAPTATION_SET,T))),r.hasOwnProperty(E.default.EVENT_STREAM+"_asArray")&&(t=t.concat(h(r[E.default.EVENT_STREAM+"_asArray"],r,E.default.EVENT_STREAM,T)));o(t,E.default.ADAPTATION_SET,T);break;case E.default.ADAPTATION_SET:i.trigger(m.default.XLINK_READY,{manifest:l})}}function h(e,t,n,r){var i=[],a=void 0,o=void 0,s=void 0;for(o=e.length-1;0<=o;o--)(a=e[o]).hasOwnProperty("xlink:href")&&"urn:mpeg:dash:resolve-to-zero:2013"===a["xlink:href"]&&e.splice(o,1);for(o=0;o<e.length;o++)(a=e[o]).hasOwnProperty("xlink:href")&&a.hasOwnProperty("xlink:actuate")&&a["xlink:actuate"]===r&&(s={url:a["xlink:href"],parentElement:t,type:n,index:o,resolveType:r,originalContent:a,resolvedContent:null,resolved:!1},i.push(s));return i}return n={resolveManifestOnLoad:function(e){a=new _.default({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:r}),o(h((l=e).Period_asArray,l,E.default.PERIOD,T),E.default.PERIOD,T)},setMatchers:function(e){e&&(r=e)},setIron:function(e){e&&(u=e)},reset:function(){i.off(m.default.XLINK_ELEMENT_LOADED,d,n),f&&(f.reset(),f=null)}},i.on(m.default.XLINK_ELEMENT_LOADED,d,n),f=(0,p.default)(t).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier}),n}a.__dashjs_factory_name="XlinkController",n.default=i.default.getClassFactory(a),t.exports=n.default},{106:106,168:168,3:3,47:47,48:48,55:55,62:62}],122:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});function u(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this.data={baseUrls:e||null,selectedIdx:t||NaN},this.children=[]}var l=r(e(164)),i=r(e(48));function a(){var e,i=void 0,a=void 0,t=this.context,o=(0,l.default)(t).getInstance();function s(e,t,n){var r=a.getBaseURLsFromElement(n);e[t]?o.areEqual(r,e[t].data.baseUrls)||(e[t].data.baseUrls=r,e[t].data.selectedIdx=NaN):e[t]=new u(r)}function n(e){!function(){if(!a||!a.hasOwnProperty("getBaseURLsFromElement")||!a.hasOwnProperty("getRepresentationSortFunction"))throw new Error("setConfig function has to be called previously")}();var t=a.getBaseURLsFromElement(e);o.areEqual(t,i.data.baseUrls)||(i.data.baseUrls=t,i.data.selectedIdx=NaN),e&&e.Period_asArray&&e.Period_asArray.forEach(function(e,r){s(i.children,r,e),e.AdaptationSet_asArray&&e.AdaptationSet_asArray.forEach(function(e,n){s(i.children[r].children,n,e),e.Representation_asArray&&e.Representation_asArray.sort(a.getRepresentationSortFunction()).forEach(function(e,t){s(i.children[r].children[n].children,t,e)})})})}function r(){i=new u}return e={reset:r,update:function(e){n(e)},getForPath:function(e){var t=i,n=[t.data];return e&&e.forEach(function(e){(t=t.children[e])&&n.push(t.data)}),n.filter(function(e){return e.baseUrls.length})},invalidateSelectedIndexes:function(t){!function t(n,e){var r=e||i;n(r.data),r.children&&r.children.forEach(function(e){return t(n,e)})}(function(e){isNaN(e.selectedIdx)||t===e.baseUrls[e.selectedIdx].serviceLocation&&(e.selectedIdx=NaN)})},setConfig:function(e){e.adapter&&(a=e.adapter)}},r(),e}a.__dashjs_factory_name="BaseURLTreeModel",n.default=i.default.getClassFactory(a),t.exports=n.default},{164:164,48:48}],123:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var E=r(e(47)),T=r(e(55)),i=r(e(48)),y=r(e(175)),A=r(e(46)),b="loading",I="executed";function a(e){e=e||{};var t=this.context,n=(0,E.default)(t).getInstance(),r=e.dashMetrics,i=e.fragmentLoader,a=void 0,o=void 0,s=void 0,u=void 0,l=void 0;function f(t){var n;return!!t&&(n=!1,u.some(function(e){if(function(e,t){return!isNaN(e.index)&&e.startTime===t.startTime&&e.adaptationIndex===t.adaptationIndex&&e.type===t.type}(t,e)||function(e,t){return isNaN(e.index)&&isNaN(t.index)&&e.quality===t.quality}(t,e)||function(e,t){return e.action===y.default.ACTION_COMPLETE&&e.action===t.action}(t,e))return n=!0}),n)}function d(e){return isNaN(e.duration)?.25:Math.min(e.duration/8,.5)}function c(n){u=u.filter(function(e){var t=d(e);return isNaN(e.startTime)||void 0!==n&&e.startTime>=n-t})}function h(n,r){r<=n+.5||(u=u.filter(function(e){var t=d(e);return isNaN(e.startTime)||e.startTime>=r-t||isNaN(e.duration)||e.startTime+e.duration<=n+t}))}function p(e,t){r.addSchedulingInfo(e,t),r.addRequestsQueue(e.mediaType,l,u)}function g(e){e.sender===i&&(l.splice(l.indexOf(e.request),1),e.response&&!e.error&&u.push(e.request),p(e.request,e.error?"failed":I),n.trigger(T.default.FRAGMENT_LOADING_COMPLETED,{request:e.request,response:e.response,error:e.error,sender:this}))}function m(e){e.sender===i&&n.trigger(T.default.FRAGMENT_LOADING_PROGRESS,{request:e.request,response:e.response,error:e.error,sender:this})}function _(e){e.sender===i&&n.trigger(T.default.FRAGMENT_LOADING_ABANDONED,{streamProcessor:this.getStreamProcessor(),request:e.request,mediaType:e.mediaType})}function v(){u=[],l=[]}return a={setStreamProcessor:function(e){s=e},getStreamProcessor:function(){return s},getRequests:function(n){var e=n?n.state instanceof Array?n.state:[n.state]:[],r=[];return e.forEach(function(e){var t=function(e){var t=void 0;switch(e){case b:t=l;break;case I:t=u;break;default:t=[]}return t}(e);r=r.concat(function(e,n){if(n.hasOwnProperty("time"))return[function(e,t,n){for(var r=e.length-1;0<=r;r--){var i=e[r],a=i.startTime,o=a+i.duration;if(n=isNaN(n)?d(i):n,!isNaN(a)&&!isNaN(o)&&a<=t+n&&t-n<o||isNaN(a)&&isNaN(t))return i}return null}(e,n.time,n.threshold)];return e.filter(function(e){for(var t in n)if("state"!==t&&n.hasOwnProperty(t)&&e[t]!=n[t])return!1;return!0})}(t,n))}),r},isFragmentLoaded:f,isFragmentLoadedOrPending:function(e){var t=!1,n=0,r=void 0;if(!(t=f(e)))for(n=0;n<l.length;n++)r=l[n],e.url===r.url&&e.startTime===r.startTime&&(t=!0);return t},removeExecutedRequestsBeforeTime:c,removeExecutedRequestsAfterTime:function(t){u=u.filter(function(e){return isNaN(e.startTime)||void 0!==t&&e.startTime<t})},syncExecutedRequestsWithBufferedRange:function(e,t){if(e&&0!==e.length){for(var n=0,r=0,i=e.length;r<i;r++)h(n,e.start(r)),n=e.end(r);0<t&&h(n,t)}else c()},abortRequests:function(){i.abort(),l=[]},executeRequest:function(e){switch(e.action){case y.default.ACTION_COMPLETE:u.push(e),p(e,I),o.debug("executeRequest trigger STREAM_COMPLETED"),n.trigger(T.default.STREAM_COMPLETED,{request:e,fragmentModel:this});break;case y.default.ACTION_DOWNLOAD:p(e,b),l.push(e),function(e){n.trigger(T.default.FRAGMENT_LOADING_STARTED,{sender:a,request:e}),i.load(e)}(e);break;default:o.warn("Unknown request action.")}},reset:function(){n.off(T.default.LOADING_COMPLETED,g,this),n.off(T.default.LOADING_DATA_PROGRESS,m,this),n.off(T.default.LOADING_ABANDONED,_,this),i&&i.reset(),v()},addExecutedRequest:function(e){u.push(e)}},o=(0,A.default)(t).getInstance().getLogger(a),v(),n.on(T.default.LOADING_COMPLETED,g,a),n.on(T.default.LOADING_DATA_PROGRESS,m,a),n.on(T.default.LOADING_ABANDONED,_,a),a}a.__dashjs_factory_name="FragmentModel";var o=i.default.getClassFactory(a);o.FRAGMENT_MODEL_LOADING=b,o.FRAGMENT_MODEL_EXECUTED=I,o.FRAGMENT_MODEL_CANCELED="canceled",o.FRAGMENT_MODEL_FAILED="failed",i.default.updateClassFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{175:175,46:46,47:47,48:48,55:55}],124:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(47)),a=r(e(55)),o=r(e(48));function s(){var e=this.context,t=(0,i.default)(e).getInstance(),n=void 0;return{getValue:function(){return n},setValue:function(e){(n=e)&&t.trigger(a.default.MANIFEST_LOADED,{data:e})}}}s.__dashjs_factory_name="ManifestModel",n.default=o.default.getSingletonFactory(s),t.exports=n.default},{47:47,48:48,55:55}],125:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var f=r(e(96)),i=r(e(48)),d=r(e(107)),c=r(e(137)),h=r(e(49)),p=e(166);function a(){var e,i=void 0,r=void 0,a=void 0,t={scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"http://time.akamai.com/?iso&ms"},n=this.context,o=(0,h.default)(n).getInstance();function s(e){var t=void 0;for(t=0;t<a.length;t++)if(a[t].rulename===e)return t;return-1}function u(e,t){l(e,t);var n=new f.default;n.schemeIdUri=e,n.value=t,i.push(n)}function l(n,r){(0,p.checkParameterType)(n,"string"),(0,p.checkParameterType)(r,"string"),i.forEach(function(e,t){e.schemeIdUri===n&&e.value===r&&i.splice(t,1)})}return e={getABRCustomRules:function(){return a},addABRCustomRule:function(e,t,n){if("string"!=typeof e||e!==c.default.ABANDON_FRAGMENT_RULES&&e!==c.default.QUALITY_SWITCH_RULES||"string"!=typeof t)throw d.default.BAD_ARGUMENT_ERROR;var r=s(t);-1===r?a.push({type:e,rulename:t,rule:n}):(a[r].type=e,a[r].rule=n)},removeABRCustomRule:function(e){if(e){var t=s(e);-1!==t&&a.splice(t,1)}else a=[]},getStableBufferTime:function(){if(o.get().streaming.lowLatencyEnabled)return.6*o.get().streaming.liveDelay;var e=o.get().streaming.stableBufferTime;return-1<e?e:o.get().streaming.fastSwitchEnabled?20:12},getRetryAttemptsForType:function(e){return o.get().streaming.lowLatencyEnabled?5*o.get().streaming.retryAttempts[e]:o.get().streaming.retryAttempts[e]},getRetryIntervalsForType:function(e){return o.get().streaming.lowLatencyEnabled?o.get().streaming.retryIntervals[e]/10:o.get().streaming.retryIntervals[e]},getLiveDelay:function(){return o.get().streaming.lowLatencyEnabled?o.get().streaming.liveDelay||3:o.get().streaming.liveDelay},addUTCTimingSource:u,removeUTCTimingSource:l,getUTCTimingSources:function(){return i},clearDefaultUTCTimingSources:function(){i=[]},restoreDefaultUTCTimingSources:function(){u(t.scheme,t.value)},setXHRWithCredentialsForType:function t(e,n){e?r[e]=!!n:Object.keys(r).forEach(function(e){t(e,n)})},getXHRWithCredentialsForType:function(e){var t=r[e];return void 0===t?r.default:t},getDefaultUtcTimingSource:function(){return t},reset:function(){}},r={default:(i=[],!1)},a=[],e}a.__dashjs_factory_name="MediaPlayerModel",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,137:137,166:166,48:48,49:49,96:96}],126:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var h=r(e(107)),_=r(e(108)),f=r(e(179)),v=e(189),p=r(e(192)),g=r(e(185)),E=r(e(186)),T=r(e(187)),y=r(e(188)),A=e(190),b=r(e(194)),I=r(e(47)),S=r(e(193)),R=r(e(55)),i=r(e(48));function a(e){var t,i=(e=e||{}).settings,n=this.context,r=(0,I.default)(n).getInstance(),a=void 0;function o(){r.trigger(R.default.METRICS_CHANGED)}function s(e){r.trigger(R.default.METRIC_CHANGED,{mediaType:e}),o()}function l(e,t,n){r.trigger(R.default.METRIC_UPDATED,{mediaType:e,metric:t,value:n}),s(e)}function d(e,t,n){r.trigger(R.default.METRIC_ADDED,{mediaType:e,metric:t,value:n}),s(e)}function u(e,t){var n=null;return e&&(a.hasOwnProperty(e)?n=a[e]:t||(n=new f.default,a[e]=n)),n}function c(e,t,n){var r=u(e);r[t].push(n),r[t].length>i.get().streaming.metricsMaxListDepth&&r[t].shift()}function m(e,t,n){c(e,t,n),d(e,t,n)}return t={clearCurrentMetricsForType:function(e){delete a[e],s(e)},clearAllCurrentMetrics:function(){a={},o()},getMetricsFor:u,addHttpRequest:function e(t,n,r,i,a,o,s,u,l,f,d,c,h,p){var g=new v.HTTPRequest;a&&a!==i&&(e(t,null,r,i,null,null,s,u,null,null,null,c,null,null),g.actualurl=a),g.tcpid=n,g.type=r,g.url=i,g.range=s,g.trequest=u,g.tresponse=l,g.responsecode=d,g._tfinish=f,g._stream=t,g._mediaduration=c,g._responseHeaders=h,g._serviceLocation=o,p?p.forEach(function(e){!function(e,t,n,r){var i=new v.HTTPRequestTrace;i.s=t,i.d=n,i.b=r,e.trace.push(i),e.interval||(e.interval=0),e.interval+=n}(g,e.s,e.d,e.b)}):(delete g.interval,delete g.trace),m(t,_.default.HTTP_REQUEST,g)},addRepresentationSwitch:function(e,t,n,r,i){var a=new p.default;a.t=t,a.mt=n,a.to=r,i?a.lto=i:delete a.lto,m(e,_.default.TRACK_SWITCH,a)},addBufferLevel:function(e,t,n){var r=new g.default;r.t=t,r.level=n,m(e,_.default.BUFFER_LEVEL,r)},addBufferState:function(e,t,n){var r=new E.default;r.target=n,r.state=t,m(e,_.default.BUFFER_STATE,r)},addDVRInfo:function(e,t,n,r){var i=new T.default;i.time=t,i.range=r,i.manifestInfo=n,m(e,_.default.DVR_INFO,i)},addDroppedFrames:function(e,t){var n=new y.default,r=u(e).DroppedFrames;n.time=t.creationTime,n.droppedFrames=t.droppedVideoFrames,0<r.length&&r[r.length-1]==n||m(e,_.default.DROPPED_FRAMES,n)},addSchedulingInfo:function(e,t,n,r,i,a,o,s,u){var l=new b.default;l.mediaType=e,l.t=t,l.type=n,l.startTime=r,l.availabilityStartTime=i,l.duration=a,l.quality=o,l.range=s,l.state=u,m(e,_.default.SCHEDULING_INFO,l)},addRequestsQueue:function(e,t,n){var r=new S.default;r.loadingRequests=t,r.executedRequests=n,u(e).RequestsQueue=r,d(e,_.default.REQUESTS_QUEUE,r)},addManifestUpdate:function(e,t,n,r,i,a,o,s,u,l){var f=new A.ManifestUpdate;f.mediaType=e,f.type=t,f.requestTime=n,f.fetchTime=r,f.availabilityStartTime=i,f.presentationStartTime=a,f.clientTimeOffset=o,f.currentTime=s,f.buffered=u,f.latency=l,c(h.default.STREAM,_.default.MANIFEST_UPDATE,f),d(e,_.default.MANIFEST_UPDATE,f)},updateManifestUpdateInfo:function(e,t){if(e){for(var n in t)e[n]=t[n];l(e.mediaType,_.default.MANIFEST_UPDATE,e)}},addManifestUpdateStreamInfo:function(e,t,n,r,i){if(e){var a=new A.ManifestUpdateStreamInfo;a.id=t,a.index=n,a.start=r,a.duration=i,e.streamInfo.push(a),l(e.mediaType,_.default.MANIFEST_UPDATE_STREAM_INFO,e)}},addManifestUpdateRepresentationInfo:function(e,t,n,r,i,a,o,s){if(e){var u=new A.ManifestUpdateRepresentationInfo;u.id=t,u.index=n,u.streamIndex=r,u.mediaType=i,u.startNumber=o,u.fragmentInfoType=s,u.presentationTimeOffset=a,e.representationInfo.push(u),l(e.mediaType,_.default.MANIFEST_UPDATE_TRACK_INFO,e)}},addPlayList:function(e){e.trace&&Array.isArray(e.trace)?e.trace.forEach(function(e){e.hasOwnProperty("subreplevel")&&!e.subreplevel&&delete e.subreplevel}):delete e.trace,m(h.default.STREAM,_.default.PLAY_LIST,e)},addDVBErrors:function(e){m(h.default.STREAM,_.default.DVB_ERRORS,e)}},a={},t}a.__dashjs_factory_name="MetricsModel",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,108:108,179:179,185:185,186:186,187:187,188:188,189:189,190:190,192:192,193:193,194:194,47:47,48:48,55:55}],127:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var l=r(e(184)),i=r(e(48));function a(){var u=void 0;return{initialize:function(e){if(u=new l.default,!e)return null;var t=e.indexOf("#");if(-1!==t)for(var n=e.substr(t+1).split("&"),r=0,i=n.length;r<i;++r){var a=n[r],o=a.indexOf("=");if(-1!==o){var s=a.substring(0,o);u.hasOwnProperty(s)&&(u[s]=a.substr(o+1))}}},getURIFragmentData:function(){return u}}}a.__dashjs_factory_name="URIFragmentModel",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{184:184,48:48}],128:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),p=r(e(47)),g=r(e(55)),m=r(e(46));function a(){var e=void 0,t=void 0,o=void 0,n=void 0,r=void 0,i="element is not video or audio DOM type!",a=this.context,s=(0,p.default)(a).getInstance(),u=[];function l(){o&&(o.playbackRate=r||1,o.removeEventListener("canplay",l))}function f(e){o&&(o.readyState<=2&&0<e?o.addEventListener("canplay",l):o.playbackRate=e)}function d(){return 0<u.length}function c(){if(o&&d()&&0===o.playbackRate){var e=document.createEvent("Event");e.initEvent("waiting",!0,!1),o.dispatchEvent(e)}}function h(){return o?o.buffered:null}return e={initialize:function(){s.on(g.default.PLAYBACK_PLAYING,c,this)},setCurrentTime:function(t,e){if(o){if(o.currentTime==t)return;try{t=e?function(e){var t=h(),n=e,r=9999999999;if(t)for(var i=0;i<t.length;i++){var a=t.start(i),o=t.end(i),s=Math.abs(a-e),u=Math.abs(o-e);if(a<=e&&e<=o)return e;s<r&&(r=s,n=a),u<r&&(r=u,n=o)}return n}(t):t,o.currentTime=t}catch(e){0===o.readyState&&e.code===e.INVALID_STATE_ERR&&setTimeout(function(){o.currentTime=t},400)}}},play:function(){if(o){o.autoplay=!0;var e=o.play();e&&e.catch&&"undefined"!=typeof Promise&&e.catch(function(e){"NotAllowedError"===e.name&&s.trigger(g.default.PLAYBACK_NOT_ALLOWED),t.warn("Caught pending play exception - continuing ("+e+")")})}},isPaused:function(){return o?o.paused:null},pause:function(){o&&(o.pause(),o.autoplay=!1)},isSeeking:function(){return o?o.seeking:null},getTime:function(){return o?o.currentTime:null},getPlaybackRate:function(){return o?o.playbackRate:null},setPlaybackRate:f,getPlayedRanges:function(){return o?o.played:null},getEnded:function(){return o?o.ended:null},setStallState:function(e,t){!function(e,t){t?function(e){var t=void 0;if(null===e||o.seeking||-1!==u.indexOf(e))return;u.push(e),o&&1===u.length&&((t=document.createEvent("Event")).initEvent("waiting",!0,!1),r=o.playbackRate,f(0),o.dispatchEvent(t))}(e):function(e){var t=u.indexOf(e),n=void 0;if(null===e)return;-1!==t&&u.splice(t,1);o&&!1===d()&&0===o.playbackRate&&(f(r||1),o.paused||((n=document.createEvent("Event")).initEvent("playing",!0,!1),o.dispatchEvent(n)))}(e)}(e,t)},getElement:function(){return o},setElement:function(e){if(!(null==e||e&&/^(VIDEO|AUDIO)$/i.test(e.nodeName)))throw i;(o=e)&&(o.preload="auto")},setSource:function(e){o&&(e?o.src=e:(o.removeAttribute("src"),o.load()))},getSource:function(){return o?o.src:null},getTTMLRenderingDiv:function(){return n},setTTMLRenderingDiv:function(e){(n=e).style.position="absolute",n.style.display="flex",n.style.overflow="hidden",n.style.pointerEvents="none",n.style.top=0,n.style.left=0},getPlaybackQuality:function(){if(!o)return null;var e="webkitDroppedFrameCount"in o&&"webkitDecodedFrameCount"in o,t=null;return"getVideoPlaybackQuality"in o?t=o.getVideoPlaybackQuality():e&&(t={droppedVideoFrames:o.webkitDroppedFrameCount,totalVideoFrames:o.webkitDroppedFrameCount+o.webkitDecodedFrameCount,creationTime:new Date}),t},addEventListener:function(e,t){o&&o.addEventListener(e,t)},removeEventListener:function(e,t){o&&o.removeEventListener(e,t)},getReadyState:function(){return o?o.readyState:NaN},getBufferRange:h,getClientWidth:function(){return o?o.clientWidth:NaN},getClientHeight:function(){return o?o.clientHeight:NaN},getTextTracks:function(){return o?o.textTracks:[]},getTextTrack:function(e,t,n,r,i){if(o)for(var a=0;a<o.textTracks.length;a++)if(o.textTracks[a].kind===e&&(!t||o.textTracks[a].label==t)&&o.textTracks[a].language===n&&o.textTracks[a].isTTML===r&&o.textTracks[a].isEmbedded===i)return o.textTracks[a];return null},addTextTrack:function(e,t,n){return o?o.addTextTrack(e,t,n):null},appendChild:function(e){o&&(o.appendChild(e),void 0!==e.isTTML&&(o.textTracks[o.textTracks.length-1].isTTML=e.isTTML,o.textTracks[o.textTracks.length-1].isEmbedded=e.isEmbedded))},removeChild:function(e){o&&o.removeChild(e)},getVideoWidth:function(){return o?o.videoWidth:NaN},getVideoHeight:function(){return o?o.videoHeight:NaN},getVideoRelativeOffsetTop:function(){return o&&o.parentNode?o.getBoundingClientRect().top-o.parentNode.getBoundingClientRect().top:NaN},getVideoRelativeOffsetLeft:function(){return o&&o.parentNode?o.getBoundingClientRect().left-o.parentNode.getBoundingClientRect().left:NaN},reset:function(){s.off(g.default.PLAYBACK_PLAYING,c,this)}},t=(0,m.default)(a).getInstance().getLogger(e),e}a.__dashjs_factory_name="VideoModel",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{46:46,47:47,48:48,55:55}],129:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){var a=(e=e||{}).requestModifier,g=e.boxParser;function m(t,e){t.reader.read().then(e).catch(function(e){t.onerror&&200===t.response.status&&t.onerror(e)})}function _(i,t){if(1<(i=i.filter(function(e){return e.bytes>t/4/i.length})).length){var e=(a=0,o=(i[i.length-1].ts-i[0].ts)/i.length,i.forEach(function(e,t){var n=i[t+1];if(n){var r=n.ts-e.ts;a+=r<o?r:0}}),{v:a});if("object"==typeof e)return e.v}var a,o;return null}return{load:function(p){var e=new Date,t=p.request,n=new Headers;t.range&&n.append("Range","bytes="+t.range),t.requestStartDate||(t.requestStartDate=e),a&&a.modifyRequestHeader({setRequestHeader:function(e,t){n.append(e,t)}});var r=void 0;"function"==typeof window.AbortController&&(r=new AbortController,p.abortController=r);var i={method:p.method,headers:n,credentials:p.withCredentials?"include":void 0,signal:r?r.signal:void 0};fetch(p.url,i).then(function(e){p.response||(p.response={}),p.response.status=e.status,p.response.statusText=e.statusText,p.response.responseURL=e.url,e.ok||p.onerror();var t="",n=!0,r=!1,i=void 0;try{for(var a,o=e.headers.keys()[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;t+=s+": "+e.headers.get(s)+"\n"}}catch(e){r=!0,i=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw i}}if(p.response.responseHeaders=t,!e.body)return e.arrayBuffer().then(function(e){var t={loaded:(p.response.response=e).byteLength,total:e.byteLength,stream:!1};p.progress(t),p.onload(),p.onend()});var u=parseInt(e.headers.get("Content-Length"),10),l=0,f=!1,d=new Uint8Array,c=0;p.reader=e.body.getReader();var h=[];m(p,function e(t){var n=t.value;if(t.done)return d&&(p.progress({loaded:l,total:isNaN(u)?l:u,lengthComputable:!0,time:_(h,l),stream:!0}),p.response.response=d.buffer),p.onload(),void p.onend();if(n&&0<n.length){d=function(e,t){if(0===e.length)return t;var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(d,n),l+=n.length,h.push({ts:Date.now(),bytes:n.length});var r=g.findLastTopIsoBoxCompleted(["moov","mdat"],d,c);if(r.found){var i=r.lastCompletedOffset+r.size,a=void 0;d=i===d.length?(a=d,new Uint8Array):(a=new Uint8Array(d.subarray(0,i)),d.subarray(i)),p.progress({data:a.buffer,lengthComputable:!1,noTrace:!0}),c=0}else c=r.lastCompletedOffset,f||(p.progress({lengthComputable:!1,noTrace:!0}),f=!0)}m(p,e)})}).catch(function(e){p.onerror&&p.onerror(e)})},abort:function(e){if(e.abortController)e.abortController.abort();else if(e.reader)try{e.reader.cancel()}catch(e){}},calculateDownloadedTime:_}}o.__dashjs_factory_name="FetchLoader";var s=a.default.getClassFactory(o);n.default=s,t.exports=n.default},{48:48}],130:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(n,"__esModule",{value:!0});var M=r(e(131)),O=r(e(129)),C=e(189),a=r(e(48)),o=r(e(52)),P=r(e(173));function s(e){e=e||{};var t,n,E=this.context,T=e.errHandler,y=e.dashMetrics,A=e.mediaPlayerModel,b=e.requestModifier,I=e.boxParser,S=e.useFetch||!1,R=void 0,w=void 0,D=void 0,N=void 0;return t={load:function(e){e.request?function t(n,r){var i=n.request,a=[],o=!0,s=!0,u=new Date,l=u,f=0,d=void 0;if(!b||!y||!T)throw new Error("config object is not correct or missing");function e(e){s=!1,i.requestStartDate=u,i.requestEndDate=new Date,i.firstByteDate=i.firstByteDate||u,i.checkExistenceOnly||(y.addHttpRequest(i,d.response?d.response.responseURL:null,d.response?d.response.status:null,d.response&&d.response.getAllResponseHeaders?d.response.getAllResponseHeaders():d.response?d.response.responseHeaders:[],e?a:null),i.type===C.HTTPRequest.MPD_TYPE&&y.addManifestUpdate(i.type,i.requestStartDate,i.requestEndDate))}function c(){-1!==R.indexOf(d)&&(R.splice(R.indexOf(d),1),s&&(e(!1),0<r?function(){r--;var e={config:n};D.push(e),e.timeout=setTimeout(function(){-1!==D.indexOf(e)&&(D.splice(D.indexOf(e),1),t(n,r))},A.getRetryIntervalsForType(i.type))}():(T.error(new P.default(N[i.type],i.url+" is not available",{request:i,response:d.response})),n.error&&n.error(i,"error",d.response.statusText),n.complete&&n.complete(i,d.response.statusText))))}var h=void 0;h=S&&window.fetch&&"arraybuffer"===i.responseType&&i.type===C.HTTPRequest.MEDIA_SEGMENT_TYPE?(0,O.default)(E).create({requestModifier:b,boxParser:I}):(0,M.default)(E).create({requestModifier:b});var p=b.modifyRequestURL(i.url),g=i.checkExistenceOnly?C.HTTPRequest.HEAD:C.HTTPRequest.GET,m=A.getXHRWithCredentialsForType(i.type);d={url:p,method:g,withCredentials:m,request:i,onload:function(){200<=d.response.status&&d.response.status<=299&&(e(!0),n.success&&n.success(d.response.response,d.response.statusText,d.response.responseURL),n.complete&&n.complete(i,d.response.statusText))},onend:c,onerror:c,progress:function(e){var t=new Date;o&&(o=!1,(!e.lengthComputable||e.lengthComputable&&e.total!==e.loaded)&&(i.firstByteDate=t)),e.lengthComputable&&(i.bytesLoaded=e.loaded,i.bytesTotal=e.total),e.noTrace||(a.push({s:l,d:e.time?e.time:t.getTime()-l.getTime(),b:[e.loaded?e.loaded-f:0]}),l=t,f=e.loaded),n.progress&&e&&n.progress(e)},onabort:function(){n.abort&&n.abort(i)},loader:h};var _,v=(new Date).getTime();isNaN(i.delayLoadingTime)||v>=i.delayLoadingTime?(R.push(d),h.load(d)):(_={httpRequest:d},w.push(_),_.delayTimeout=setTimeout(function(){if(-1!==w.indexOf(_)){w.splice(w.indexOf(_),1);try{u=new Date,l=u,R.push(_.httpRequest),h.load(_.httpRequest)}catch(e){_.httpRequest.onerror()}}},i.delayLoadingTime-v))}(e,A.getRetryAttemptsForType(e.request.type)):e.error&&e.error(e.request,"error")},abort:function(){D.forEach(function(e){clearTimeout(e.timeout),e.config.request&&e.config.abort&&e.config.abort(e.config.request)}),D=[],w.forEach(function(e){return clearTimeout(e.delayTimeout)}),w=[],R.forEach(function(e){e.onloadend=e.onerror=e.onprogress=void 0,e.loader.abort(e),e.onabort()}),R=[]}},R=[],w=[],D=[],i(n={},C.HTTPRequest.MPD_TYPE,o.default.DOWNLOAD_ERROR_ID_MANIFEST_CODE),i(n,C.HTTPRequest.XLINK_EXPANSION_TYPE,o.default.DOWNLOAD_ERROR_ID_XLINK_CODE),i(n,C.HTTPRequest.INIT_SEGMENT_TYPE,o.default.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE),i(n,C.HTTPRequest.MEDIA_SEGMENT_TYPE,o.default.DOWNLOAD_ERROR_ID_CONTENT_CODE),i(n,C.HTTPRequest.INDEX_SEGMENT_TYPE,o.default.DOWNLOAD_ERROR_ID_CONTENT_CODE),i(n,C.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,o.default.DOWNLOAD_ERROR_ID_CONTENT_CODE),i(n,C.HTTPRequest.OTHER_TYPE,o.default.DOWNLOAD_ERROR_ID_CONTENT_CODE),N=n,t}s.__dashjs_factory_name="HTTPLoader";var u=a.default.getClassFactory(s);n.default=u,t.exports=n.default},{129:129,131:131,173:173,189:189,48:48,52:52}],131:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){var i=(e=e||{}).requestModifier;return{load:function(e){var t=new Date,n=e.request,r=new XMLHttpRequest;r.open(e.method,e.url,!0),n.responseType&&(r.responseType=n.responseType),n.range&&r.setRequestHeader("Range","bytes="+n.range),n.requestStartDate||(n.requestStartDate=t),i&&(r=i.modifyRequestHeader(r)),r.withCredentials=e.withCredentials,r.onload=e.onload,r.onloadend=e.onend,r.onerror=e.onerror,r.onprogress=e.progress,r.onabort=e.onabort,r.send(),e.response=r},abort:function(e){var t=e.response;t.onloadend=t.onerror=t.onprogress=void 0,t.abort()}}}o.__dashjs_factory_name="XHRLoader";var s=a.default.getClassFactory(o);n.default=s,t.exports=n.default},{48:48}],132:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){var o=[],s=0,u=0;return{push:function(e,t){var n=t&&t.droppedVideoFrames?t.droppedVideoFrames:0,r=t&&t.totalVideoFrames?t.totalVideoFrames:0,i=n-s;s=n;var a=r-u;u=r,isNaN(e)||(o[e]?(o[e].droppedVideoFrames+=i,o[e].totalVideoFrames+=a):o[e]={droppedVideoFrames:i,totalVideoFrames:a})},getFrameHistory:function(){return o},reset:function(e){o=[],s=e.droppedVideoFrames,u=e.totalVideoFrames}}}o.__dashjs_factory_name="DroppedFramesHistory";var s=a.default.getClassFactory(o);n.default=s,t.exports=n.default},{48:48}],133:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){var t=(e=e||{}).abrController,n=e.switchHistory,r=e.droppedFramesHistory,i=e.currentRequest,a=e.useBufferOccupancyABR,o=e.streamProcessor?e.streamProcessor.getScheduleController():null,s=e.streamProcessor?e.streamProcessor.getRepresentationInfo():null;function u(){return s?s.mediaInfo:null}return{getMediaType:function(){var e=u();return e?e.type:null},getMediaInfo:u,getDroppedFramesHistory:function(){return r},getCurrentRequest:function(){return i},getSwitchHistory:function(){return n},getStreamInfo:function(){var e=u();return e?e.streamInfo:null},getScheduleController:function(){return o},getAbrController:function(){return t},getRepresentationInfo:function(){return s},useBufferOccupancyABR:function(){return a}}}o.__dashjs_factory_name="RulesContext",n.default=a.default.getClassFactory(o),t.exports=n.default},{48:48}],134:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r},o={DEFAULT:.5,STRONG:1,WEAK:0};function s(e,t,n){var r,i;return(r=n)!==(i=o.DEFAULT)&&r!==o.STRONG&&r!==o.WEAK||(i=r),{quality:void 0===e?-1:e,reason:void 0===t?null:t,priority:i}}s.__dashjs_factory_name="SwitchRequest";var u=a.default.getClassFactory(s);u.NO_CHANGE=-1,u.PRIORITY=o,a.default.updateClassFactory(s.__dashjs_factory_name,u),n.default=u,t.exports=n.default},{48:48}],135:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),u=r(e(134));function a(){var o=[],s=[];return{push:function(e){e.newValue===u.default.NO_CHANGE&&(e.newValue=e.oldValue),o[e.oldValue]||(o[e.oldValue]={noDrops:0,drops:0,dropSize:0});var t=e.newValue-e.oldValue,n=t<0?1:0,r=n?-t:0,i=n?0:1;if(o[e.oldValue].drops+=n,o[e.oldValue].dropSize+=r,o[e.oldValue].noDrops+=i,s.push({idx:e.oldValue,noDrop:i,drop:n,dropSize:r}),8<s.length){var a=s.shift();o[a.idx].drops-=a.drop,o[a.idx].dropSize-=a.dropSize,o[a.idx].noDrops-=a.noDrop}},getSwitchRequests:function(){return o},reset:function(){o=[],s=[]}}}a.__dashjs_factory_name="SwitchRequestHistory";var o=i.default.getClassFactory(a);n.default=o,t.exports=n.default},{134:134,48:48}],136:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var T=r(e(107)),i=r(e(48));function a(e){var s=3,u=4,l=4,f=1.3,d=1.3,c=(e=e||{}).settings,h=void 0,p=void 0,g=void 0,m=void 0,_=void 0;function v(e,t,n,r){var i=Math.pow(.5,n/r.fast);e.fastEstimate=(1-i)*t+i*e.fastEstimate;var a=Math.pow(.5,n/r.slow);e.slowEstimate=(1-a)*t+a*e.slowEstimate,e.totalWeight+=n}function n(e,t,n){return c.get().streaming.abr.movingAverageMethod!==T.default.MOVING_AVERAGE_SLIDING_WINDOW?function(e,t){var n=e?_.throughputHalfLife:_.latencyHalfLife,r=e?g[t]:m[t];if(!r||r.totalWeight<=0)return NaN;var i=r.fastEstimate/(1-Math.pow(.5,r.totalWeight/n.fast)),a=r.slowEstimate/(1-Math.pow(.5,r.totalWeight/n.slow));return e?Math.min(i,a):Math.max(i,a)}(e,t):function(e,t,n){var r=function(e,t,n){var r=void 0,i=void 0;if(i=e?(r=h[t],n?s:u):(r=p[t],l),r){if(i>=r.length)i=r.length;else if(e)for(var a=1;a<i;++a){var o=r[a]/r[a-1];if((d<=o||o<=1/f)&&(i+=1)===r.length)break}}else i=0;return i}(e,t,n),i=(e?h:p)[t];return 0!==r&&i&&0!==i.length?(i=i.slice(-r)).reduce(function(e,t){return e+t})/i.length:NaN}(e,t,n)}function r(e,t){return n(!0,e,t)}function E(e){h[e]=h[e]||[],p[e]=p[e]||[],g[e]=g[e]||{fastEstimate:0,slowEstimate:0,totalWeight:0},m[e]=m[e]||{fastEstimate:0,slowEstimate:0,totalWeight:0}}function t(){h={},p={},g={},m={}}var i={push:function(e,t,n){if(t.trace&&t.trace.length){var r=t.tresponse.getTime()-t.trequest.getTime()||1,i=t._tfinish.getTime()-t.tresponse.getTime()||1,a=t.trace.reduce(function(e,t){return e+t.b[0]},0),o=void 0;o=c.get().streaming.lowLatencyEnabled?t.trace.reduce(function(e,t){return e+t.d},0):n?i:r+i;var s=Math.round(8*a/o);if(E(e),function(e,t,n){return e===T.default.VIDEO?n<c.get().streaming.cacheLoadThresholds[T.default.VIDEO]:e===T.default.AUDIO?n<c.get().streaming.cacheLoadThresholds[T.default.AUDIO]:void 0}(e,0,i)){if(0<h[e].length&&!h[e].hasCachedEntries)return;h[e].hasCachedEntries=!0}else h[e]&&h[e].hasCachedEntries&&function(e){delete h[e],delete p[e],delete g[e],delete m[e],E(e)}(e);h[e].push(s),20<h[e].length&&h[e].shift(),p[e].push(r),20<p[e].length&&p[e].shift(),v(g[e],s,.001*i,_.throughputHalfLife),v(m[e],r,1,_.latencyHalfLife)}},getAverageThroughput:r,getSafeAverageThroughput:function(e,t){var n=r(e,t);return isNaN(n)||(n*=c.get().streaming.abr.bandwidthSafetyFactor),n},getAverageLatency:function(e){return n(!1,e)},reset:t};return _={throughputHalfLife:{fast:3,slow:8},latencyHalfLife:{fast:1,slow:2}},t(),i}a.__dashjs_factory_name="ThroughputHistory",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,48:48}],137:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var l=r(e(143)),f=r(e(141)),d=r(e(138)),c=r(e(140)),h=r(e(142)),p=r(e(139)),i=r(e(48)),g=r(e(134)),m="qualitySwitchRules",_="abandonFragmentRules";function a(e){e=e||{};var s=this.context,t=e.mediaPlayerModel,n=e.dashMetrics,r=e.settings,i=void 0,a=void 0;function o(e){return e.filter(function(e){return e.quality>g.default.NO_CHANGE})}function u(e){var t,n={},r=void 0,i=void 0,a=void 0,o=void 0;if(0!==e.length){for(n[g.default.PRIORITY.STRONG]=g.default.NO_CHANGE,n[g.default.PRIORITY.WEAK]=g.default.NO_CHANGE,n[g.default.PRIORITY.DEFAULT]=g.default.NO_CHANGE,r=0,t=e.length;r<t;r+=1)(i=e[r]).quality!==g.default.NO_CHANGE&&(n[i.priority]=n[i.priority]>g.default.NO_CHANGE?Math.min(n[i.priority],i.quality):i.quality);return n[g.default.PRIORITY.WEAK]!==g.default.NO_CHANGE&&(a=n[g.default.PRIORITY.WEAK]),n[g.default.PRIORITY.DEFAULT]!==g.default.NO_CHANGE&&(a=n[g.default.PRIORITY.DEFAULT]),n[g.default.PRIORITY.STRONG]!==g.default.NO_CHANGE&&(a=n[g.default.PRIORITY.STRONG]),a!==g.default.NO_CHANGE&&(o=a),(0,g.default)(s).create(o)}}return{initialize:function(){i=[],a=[],r.get().streaming.abr.useDefaultABRRules&&(i.push((0,p.default)(s).create({dashMetrics:n,mediaPlayerModel:t,settings:r})),i.push((0,l.default)(s).create({dashMetrics:n})),i.push((0,f.default)(s).create({dashMetrics:n})),i.push((0,h.default)(s).create()),i.push((0,c.default)(s).create()),a.push((0,d.default)(s).create({dashMetrics:n,mediaPlayerModel:t,settings:r}))),t.getABRCustomRules().forEach(function(e){e.type===m&&i.push(e.rule(s).create()),e.type===_&&a.push(e.rule(s).create())})},reset:function(){[i,a].forEach(function(e){e&&e.length&&e.forEach(function(e){return e.reset&&e.reset()})}),i=[],a=[]},getMaxQuality:function(t){return u(o(i.map(function(e){return e.getMaxIndex(t)})))||(0,g.default)(s).create()},shouldAbandonFragment:function(t){return u(o(a.map(function(e){return e.shouldAbandon(t)})))||(0,g.default)(s).create()}}}a.__dashjs_factory_name="ABRRulesCollection";var o=i.default.getClassFactory(a);o.QUALITY_SWITCH_RULES=m,o.ABANDON_FRAGMENT_RULES=_,i.default.updateSingletonFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{134:134,138:138,139:139,140:140,141:141,142:142,143:143,48:48}],138:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var E=r(e(134)),i=r(e(48)),a=r(e(46));function T(e){e=e||{};var d=this.context,c=e.mediaPlayerModel,h=e.dashMetrics,p=e.settings,t=void 0,g=void 0,m=void 0,_=void 0,v=void 0;function n(){m={},_={},v=[]}return t={shouldAbandon:function(e){var t=(0,E.default)(d).create(E.default.NO_CHANGE,{name:T.__dashjs_factory_name});if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getCurrentRequest")&&e.hasOwnProperty("getRepresentationInfo")&&e.hasOwnProperty("getAbrController")))return t;var n=e.getMediaInfo(),r=e.getMediaType(),i=e.getCurrentRequest();if(!isNaN(i.index)){if(function(e,t){m[e]=m[e]||{},m[e][t]=m[e][t]||{}}(r,i.index),c.getStableBufferTime()<h.getCurrentBufferLevel(r,!0))return t;var a=m[r][i.index];if(null===a||null===i.firstByteDate||_.hasOwnProperty(a.id))return t;if(void 0===a.firstByteTime&&(v[r]=[],a.firstByteTime=i.firstByteDate.getTime(),a.segmentDuration=i.duration,a.bytesTotal=i.bytesTotal,a.id=i.index),a.bytesLoaded=i.bytesLoaded,a.elapsedTime=(new Date).getTime()-a.firstByteTime,0<a.bytesLoaded&&0<a.elapsedTime&&function(e,t){v[e]=v[e]||[],v[e].push(t)}(r,Math.round(8*a.bytesLoaded/a.elapsedTime)),5<=v[r].length&&500<a.elapsedTime&&a.bytesLoaded<a.bytesTotal){var o=v[r].reduce(function(e,t){return e+t},0);if(a.measuredBandwidthInKbps=Math.round(o/v[r].length),a.estimatedTimeOfDownload=+(8*a.bytesTotal/a.measuredBandwidthInKbps/1e3).toFixed(2),a.estimatedTimeOfDownload<1.8*a.segmentDuration||0===e.getRepresentationInfo().quality)return t;if(!_.hasOwnProperty(a.id)){var s=e.getAbrController(),u=a.bytesTotal-a.bytesLoaded,l=s.getBitrateList(n),f=s.getQualityForBitrate(n,a.measuredBandwidthInKbps*p.get().streaming.abr.bandwidthSafetyFactor);a.bytesTotal*l[f].bitrate/l[s.getQualityFor(r)].bitrate<u&&(t.quality=f,t.reason.throughput=a.measuredBandwidthInKbps,t.reason.fragmentID=a.id,_[a.id]=a,g.debug("( ",r,"frag id",a.id,") is asking to abandon and switch to quality to ",f," measured bandwidth was",a.measuredBandwidthInKbps),delete m[r][a.id])}}else a.bytesLoaded===a.bytesTotal&&delete m[r][a.id]}return t},reset:n},g=(0,a.default)(d).getInstance().getLogger(t),n(),t}T.__dashjs_factory_name="AbandonRequestsRule",n.default=i.default.getClassFactory(T),t.exports=n.default},{134:134,46:46,48:48}],139:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var p=r(e(108)),D=r(e(134)),i=r(e(48)),g=e(189),m=r(e(47)),_=r(e(55)),v=r(e(46));function a(e){e=e||{};var E=this.context,T=e.dashMetrics,o=e.mediaPlayerModel,t=(0,m.default)(E).getInstance(),n=void 0,y=void 0,A=void 0;function s(e,t,r){var n=r.reduce(function(e,t,n){return t>r[e]?n:e},0);if(0===n)return null;var i=Math.max(e,10+2*t.length),a=(r[n]-1)/(i/10-1);return{gp:a,Vp:10/a}}function b(e){var t={},n=e.getMediaInfo().bitrateList.map(function(e){return e.bandwidth}),r=function(e){return e.map(function(e){return Math.log(e)})}(n);r=r.map(function(e){return e-r[0]+1});var i=o.getStableBufferTime(),a=s(i,n,r);return a?(t.state=1,t.bitrates=n,t.utilities=r,t.stableBufferTime=i,t.Vp=a.Vp,t.gp=a.gp,t.lastQuality=0,I(t)):t.state=0,t}function I(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN}function S(e,t){var n=o.getStableBufferTime();if(e.stableBufferTime!==n){var r=s(n,e.bitrates,e.utilities);if(r.Vp!==e.Vp||r.gp!==e.gp){var i=T.getCurrentBufferLevel(t,!0),a=i+e.placeholderBuffer;a-=10,a*=r.Vp/e.Vp,a+=10,e.stableBufferTime=n,e.Vp=r.Vp,e.gp=r.gp,e.placeholderBuffer=Math.max(0,a-i)}}}function R(e,t){return e.Vp*(e.utilities[t]+e.gp)}function w(e,t){for(var n=e.bitrates[t],r=e.utilities[t],i=0,a=t-1;0<=a;--a)if(e.utilities[a]<e.utilities[t]){var o=e.bitrates[a],s=e.utilities[a],u=e.Vp*(e.gp+(n*s-o*r)/(n-o));i=Math.max(i,u)}return i}function r(){for(var e in A)A.hasOwnProperty(e)&&2===A[e].state&&(A[e].placeholderBuffer=0)}function i(){for(var e in A)if(A.hasOwnProperty(e)){var t=A[e];0!==t.state&&(t.state=1,I(t))}}function a(){}function u(e){if(e&&e.chunk&&e.chunk.mediaInfo){var t=A[e.chunk.mediaInfo.type];if(t&&0!==t.state){var n=e.chunk.start;isNaN(t.mostAdvancedSegmentStart)||n>t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=n,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=n,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,f(t,e.chunk.mediaInfo.type)}}}function l(e){if(e&&e.metric===p.default.HTTP_REQUEST&&e.value&&e.value.type===g.HTTPRequest.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=A[e.mediaType];t&&0!==t.state&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),f(t,e.mediaType))}}function f(e,t){if(!isNaN(e.lastSegmentStart)&&!isNaN(e.lastSegmentRequestTimeMs)&&!isNaN(e.placeholderBuffer)){if(e.placeholderBuffer*=.99,!isNaN(e.lastSegmentFinishTimeMs)){var n=T.getCurrentBufferLevel(t,!0)+.001*(e.lastSegmentFinishTimeMs-e.lastSegmentRequestTimeMs),r=R(e,e.lastQuality),i=Math.max(0,r-n);e.placeholderBuffer=Math.min(i,e.placeholderBuffer)}e.lastSegmentWasReplacement&&!isNaN(e.lastSegmentDurationS)&&(e.placeholderBuffer+=e.lastSegmentDurationS),e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN}}function d(e){if(e){var t=A[e.mediaType];t&&0!==t.state&&(t.abrQuality=e.newQuality)}}function c(e){if(e){var t=A[e.mediaType];if(t&&0!==t.state){var n=T.getCurrentBufferLevel(e.mediaType,!0),r=void 0;r=0<t.abrQuality?w(t,t.abrQuality):10;var i=Math.max(0,r-n);t.placeholderBuffer=Math.min(t.placeholderBuffer,i)}}}function h(){A={}}return n={getMaxIndex:function(e){var t=(0,D.default)(E).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getScheduleController")&&e.hasOwnProperty("getStreamInfo")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("useBufferOccupancyABR")))return t;var n=e.getMediaInfo(),r=e.getMediaType(),i=e.getScheduleController(),a=e.getStreamInfo(),o=e.getAbrController(),s=o.getThroughputHistory(),u=a?a.id:null,l=a&&a.manifestInfo&&a.manifestInfo.isDynamic,f=e.useBufferOccupancyABR();if(t.reason=t.reason||{},!f)return t;i.setTimeToLoadDelay(0);var d=function(e){var t=e.getMediaType(),n=A[t];return n?0!==n.state&&S(n,t):(n=b(e),A[t]=n),n}(e);if(0===d.state)return t;var c=T.getCurrentBufferLevel(r,!0),h=s.getAverageThroughput(r,l),p=s.getSafeAverageThroughput(r,l),g=s.getAverageLatency(r),m=void 0;if(t.reason.state=d.state,t.reason.throughput=h,t.reason.latency=g,isNaN(h))return t;switch(d.state){case 1:m=o.getQualityForBitrate(n,p,g),t.quality=m,t.reason.throughput=p,d.placeholderBuffer=Math.max(0,w(d,m)-c),d.lastQuality=m,!isNaN(d.lastSegmentDurationS)&&c>=d.lastSegmentDurationS&&(d.state=2);break;case 2:!function(e,t){var n=Date.now();if(isNaN(e.lastSegmentFinishTimeMs)){if(!isNaN(e.lastCallTimeMs)){r=.001*(n-e.lastCallTimeMs);e.placeholderBuffer+=Math.max(0,r)}}else{var r=.001*(n-e.lastSegmentFinishTimeMs);e.placeholderBuffer+=Math.max(0,r)}e.lastCallTimeMs=n,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN,S(e,t)}(d,r),m=function(e,t){for(var n=e.bitrates.length,r=NaN,i=NaN,a=0;a<n;++a){var o=(e.Vp*(e.utilities[a]+e.gp)-t)/e.bitrates[a];(isNaN(i)||i<=o)&&(i=o,r=a)}return r}(d,c+d.placeholderBuffer);var _=o.getQualityForBitrate(n,p,g);m>d.lastQuality&&_<m&&(m=Math.max(_,d.lastQuality));var v=Math.max(0,c+d.placeholderBuffer-R(d,m));v<=d.placeholderBuffer?(d.placeholderBuffer-=v,v=0):(v-=d.placeholderBuffer,d.placeholderBuffer=0,m<o.getTopQualityIndexFor(r,u)?i.setTimeToLoadDelay(1e3*v):v=0),t.quality=m,t.reason.throughput=h,t.reason.latency=g,t.reason.bufferLevel=c,t.reason.placeholderBuffer=d.placeholderBuffer,t.reason.delay=v,d.lastQuality=m;break;default:y.debug("BOLA ABR rule invoked in bad state."),t.quality=o.getQualityForBitrate(n,p,g),t.reason.state=d.state,t.reason.throughput=p,t.reason.latency=g,d.state=1,I(d)}return t},reset:function(){h(),t.off(_.default.BUFFER_EMPTY,r,n),t.off(_.default.PLAYBACK_SEEKING,i,n),t.off(_.default.PERIOD_SWITCH_STARTED,a,n),t.off(_.default.MEDIA_FRAGMENT_LOADED,u,n),t.off(_.default.METRIC_ADDED,l,n),t.off(_.default.QUALITY_CHANGE_REQUESTED,d,n),t.off(_.default.FRAGMENT_LOADING_ABANDONED,c,n)}},y=(0,v.default)(E).getInstance().getLogger(n),h(),t.on(_.default.BUFFER_EMPTY,r,n),t.on(_.default.PLAYBACK_SEEKING,i,n),t.on(_.default.PERIOD_SWITCH_STARTED,a,n),t.on(_.default.MEDIA_FRAGMENT_LOADED,u,n),t.on(_.default.METRIC_ADDED,l,n),t.on(_.default.QUALITY_CHANGE_REQUESTED,d,n),t.on(_.default.FRAGMENT_LOADING_ABANDONED,c,n),n}a.__dashjs_factory_name="BolaRule",n.default=i.default.getClassFactory(a),t.exports=n.default},{108:108,134:134,189:189,46:46,47:47,48:48,55:55}],140:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),f=r(e(134)),a=r(e(46));function o(){var u=this.context,e=void 0,l=void 0;return e={getMaxIndex:function(e){var t=(0,f.default)(u).create();if(!e||!e.hasOwnProperty("getDroppedFramesHistory"))return t;var n=e.getDroppedFramesHistory();if(n){for(var r=n.getFrameHistory(),i=0,a=0,o=f.default.NO_CHANGE,s=1;s<r.length;s++)if(r[s]&&(i=r[s].droppedVideoFrames,375<(a=r[s].totalVideoFrames)&&.15<i/a)){o=s-1,l.debug("index: "+o+" Dropped Frames: "+i+" Total Frames: "+a);break}return(0,f.default)(u).create(o,{droppedFrames:i})}return t}},l=(0,a.default)(u).getInstance().getLogger(e),e}o.__dashjs_factory_name="DroppedFramesRule",n.default=i.default.getClassFactory(o),t.exports=n.default},{134:134,46:46,48:48}],141:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var _=r(e(112)),a=r(e(47)),o=r(e(55)),i=r(e(48)),s=r(e(46)),v=r(e(134)),E=r(e(107)),T=r(e(108));function u(e){e=e||{};var c=.5,h=this.context,t=(0,a.default)(h).getInstance(),p=e.dashMetrics,n=void 0,g=void 0,m=void 0;function r(){m={}}function i(){r()}return n={getMaxIndex:function(e){var t=(0,v.default)(h).create();if(!e||!e.hasOwnProperty("getMediaType"))return t;!function(){if(!p||!p.hasOwnProperty("getCurrentBufferLevel")||!p.hasOwnProperty("getLatestBufferInfoVO"))throw new Error(E.default.MISSING_CONFIG_ERROR)}();var n=e.getMediaType(),r=p.getLatestBufferInfoVO(n,!0,T.default.BUFFER_STATE),i=e.getRepresentationInfo().fragmentDuration;if(!r||!function(e,t){m[e]=m[e]||{};var n=!1;m[e].firstBufferLoadedEvent?n=!0:t&&t.state===_.default.BUFFER_LOADED&&(m[e].firstBufferLoadedEvent=!0,n=!0);return n}(n,r)||!i)return t;if(r.state===_.default.BUFFER_EMPTY)g.debug("Switch to index 0; buffer is empty."),t.quality=0,t.reason="InsufficientBufferRule: Buffer is empty";else{var a=e.getMediaInfo(),o=e.getAbrController(),s=o.getThroughputHistory(),u=p.getCurrentBufferLevel(n,!0),l=s.getAverageThroughput(n),f=s.getAverageLatency(n),d=l*(u/i)*c;t.quality=o.getQualityForBitrate(a,d,f),t.reason="InsufficientBufferRule: being conservative to avoid immediate rebuffering"}return t},reset:function(){r(),t.off(o.default.PLAYBACK_SEEKING,i,n)}},g=(0,s.default)(h).getInstance().getLogger(n),r(),t.on(o.default.PLAYBACK_SEEKING,i,n),n}u.__dashjs_factory_name="InsufficientBufferRule",n.default=i.default.getClassFactory(u),t.exports=n.default},{107:107,108:108,112:112,134:134,46:46,47:47,48:48,55:55}],142:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(46)),f=r(e(134));function o(){var u=this.context,e=void 0,l=void 0;return e={getMaxIndex:function(e){for(var t=e?e.getSwitchHistory():null,n=t?t.getSwitchRequests():[],r=0,i=0,a=0,o=(0,f.default)(u).create(),s=0;s<n.length;s++)if(void 0!==n[s]&&(r+=n[s].drops,i+=n[s].noDrops,a+=n[s].dropSize,6<=r+i&&.075<r/i)){o.quality=0<s&&0<n[s].drops?s-1:s,o.reason={index:o.quality,drops:r,noDrops:i,dropSize:a},l.debug("Switch history rule index: "+o.quality+" samples: "+(r+i)+" drops: "+r);break}return o}},l=(0,a.default)(u).getInstance().getLogger(e),e}o.__dashjs_factory_name="SwitchHistoryRule",n.default=i.default.getClassFactory(o),t.exports=n.default},{134:134,46:46,48:48}],143:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var m=r(e(112)),_=r(e(109)),i=r(e(48)),a=r(e(46)),v=r(e(134)),E=r(e(107)),T=r(e(108));function o(e){e=e||{};var h=this.context,p=e.dashMetrics,t=void 0,g=void 0;return t={getMaxIndex:function(e){var t=(0,v.default)(h).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("useBufferOccupancyABR")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("getScheduleController")))return t;!function(){if(!p||!p.hasOwnProperty("getLatestBufferInfoVO"))throw new Error(E.default.MISSING_CONFIG_ERROR)}();var n=e.getMediaInfo(),r=e.getMediaType(),i=p.getLatestBufferInfoVO(r,!0,T.default.BUFFER_STATE),a=e.getScheduleController(),o=e.getAbrController(),s=e.getStreamInfo(),u=s&&s.manifestInfo?s.manifestInfo.isDynamic:null,l=o.getThroughputHistory(),f=l.getSafeAverageThroughput(r,u),d=l.getAverageLatency(r),c=e.useBufferOccupancyABR();return isNaN(f)||!i||c||o.getAbandonmentStateFor(r)!==_.default.ABANDON_LOAD&&(i.state!==m.default.BUFFER_LOADED&&!u||(t.quality=o.getQualityForBitrate(n,f,d),a.setTimeToLoadDelay(0),g.debug("requesting switch to index: ",t.quality,"type: ",r,"Average throughput",Math.round(f),"kbps"),t.reason={throughput:f,latency:d})),t},reset:function(){}},g=(0,a.default)(h).getInstance().getLogger(t),t}o.__dashjs_factory_name="ThroughputRule",n.default=i.default.getClassFactory(o),t.exports=n.default},{107:107,108:108,109:109,112:112,134:134,46:46,48:48}],144:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var c=r(e(107)),i=r(e(48));function a(e){var s=(e=e||{}).dashMetrics,u=e.mediaPlayerModel,l=e.textController,f=e.abrController,d=e.settings;function n(e,t){var n=NaN;if(!e)return n;var r=e.getType(),i=e.getRepresentationInfo();if(r===c.default.FRAGMENTED_TEXT)n=l.isTextEnabled()?i.fragmentDuration:0;else if(r===c.default.AUDIO&&t){var a=s.getCurrentBufferLevel(c.default.VIDEO,!0);n=isNaN(i.fragmentDuration)?a:Math.max(a,i.fragmentDuration)}else{var o=i.mediaInfo.streamInfo;if(f.isPlayingAtTopQuality(o))n=o.manifestInfo.duration>=d.get().streaming.longFormContentDurationThreshold?d.get().streaming.bufferTimeAtTopQualityLongForm:d.get().streaming.bufferTimeAtTopQuality;else n=u.getStableBufferTime()}return n}return{execute:function(e,t){return!e||s.getCurrentBufferLevel(e.getType(),!0)<n(e,t)},getBufferTarget:n}}a.__dashjs_factory_name="BufferLevelRule",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,48:48}],145:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var m=r(e(107)),i=r(e(46)),a=r(e(48)),_=r(e(175));function o(e){e=e||{};var t=this.context,p=e.textController,g=e.playbackController,n=void 0;return n={execute:function(e,t,n){if(!e)return null;var r=e.getRepresentationInfo(),i=e.getType(),a=!isNaN(t),o=e.getBufferController(),s=g.getNormalizedTime(),u=a?t:e.getIndexHandlerTime(),l=!1,f=void 0;if(isNaN(u)||i===m.default.FRAGMENTED_TEXT&&!p.isTextEnabled())return null;if(o){var d=o.getRangeAt(u),c=o.getRangeAt(s),h=o.getBuffer().hasDiscontinuitiesAfter(s);null===d&&null===c||a||(!d||c&&c.start!=d.start&&c.end!=d.end)&&(h&&i!==m.default.FRAGMENTED_TEXT&&(e.getFragmentModel().removeExecutedRequestsAfterTime(c.end),l=!0),d=c)}if(n)u=n.startTime+n.duration/2,f=e.getFragmentRequest(r,u,{timeThreshold:0,ignoreIsFinished:!0});else for(f=e.getFragmentRequest(r,a||l?u:void 0,{keepIdx:!a&&!l});f&&f.action!==_.default.ACTION_COMPLETE&&e.getFragmentModel().isFragmentLoaded(f);)f=e.getFragmentRequest(r);return f}},(0,i.default)(t).getInstance().getLogger(n),n}o.__dashjs_factory_name="NextFragmentRequestRule",n.default=a.default.getClassFactory(o),t.exports=n.default},{107:107,175:175,46:46,48:48}],146:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){var G=0;function j(e){for(var t="",n=0;n<e.length;++n){t+=e[n].uchar}return t.length-t.replace(/^\s+/,"").length}function r(e){return"red"===e?"rgb(255, 0, 0)":"green"===e?"rgb(0, 255, 0)":"blue"===e?"rgb(0, 0, 255)":"cyan"===e?"rgb(0, 255, 255)":"magenta"===e?"rgb(255, 0, 255)":"yellow"===e?"rgb(255, 255, 0)":"white"===e?"rgb(255, 255, 255)":"black"===e?"rgb(0, 0, 0)":e}function q(e,t){var n=e.videoHeight/15;return t?"font-size: "+n+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; color: "+(t.foreground?r(t.foreground):"rgb(255, 255, 255)")+"; font-style: "+(t.italics?"italic":"normal")+"; text-decoration: "+(t.underline?"underline":"none")+"; white-space: pre; background-color: "+(t.background?r(t.background):"transparent")+";":"font-size: "+n+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; justify-content: flex-start; text-align: left; color: rgb(255, 255, 255); font-style: normal; white-space: pre; line-height: normal; font-weight: normal; text-decoration: none; width: 100%; display: flex;"}return{createHTMLCaptionsFromScreen:function(e,t,n,r){var i=null,a=!1,o=-1,s={start:t,end:n,spans:[]},u="style_cea608_white_black",l={},f={},d=[],c=void 0,h=void 0;for(c=0;c<15;++c){var p=r.rows[c],g="",m=null;if(!1===p.isEmpty()){var _=j(p.chars);null===i&&(i={x:_,y1:c,y2:c+1,p:[]}),_!==o&&a&&(i.p.push(s),s={start:t,end:n,spans:[]},i.y2=c,i.name="region_"+i.x+"_"+i.y1+"_"+i.y2,!1===l.hasOwnProperty(i.name)?(d.push(i),l[i.name]=i):l[i.name].p.contat(i.p),i={x:_,y1:c,y2:c+1,p:[]});for(var v=0;v<p.chars.length;++v){var E=p.chars[v],T=E.penState;if(null===m||!T.equals(m)){0<g.trim().length&&(s.spans.push({name:u,line:g,row:c}),g="");var y="style_cea608_"+T.foreground+"_"+T.background;T.underline&&(y+="_underline"),T.italics&&(y+="_italics"),f.hasOwnProperty(y)||(f[y]=JSON.parse(JSON.stringify(T))),m=T,u=y}g+=E.uchar}0<g.trim().length&&s.spans.push({name:u,line:g,row:c}),a=!0,o=_}else a=!1,o=-1,i&&(i.p.push(s),s={start:t,end:n,spans:[]},i.y2=c,i.name="region_"+i.x+"_"+i.y1+"_"+i.y2,!1===l.hasOwnProperty(i.name)?(d.push(i),l[i.name]=i):l[i.name].p.contat(i.p),i=null)}i&&(i.p.push(s),i.y2=c+1,i.name="region_"+i.x+"_"+i.y1+"_"+i.y2,!1===l.hasOwnProperty(i.name)?(d.push(i),l[i.name]=i):l[i.name].p.contat(i.p),i=null);var A,b=[];for(c=0;c<d.length;++c){var I=d[c],S="sub_cea608_"+G++,R=document.createElement("div");R.id=S;var w="left: "+3.125*(A=I).x+"%; top: "+6.66*A.y1+"%; width: "+(100-3.125*A.x)+"%; height: "+6.66*Math.max(A.y2-1-A.y1,1)+"%; align-items: flex-start; overflow: visible; -webkit-writing-mode: horizontal-tb;";R.style.cssText="position: absolute; margin: 0; display: flex; box-sizing: border-box; pointer-events: none;"+w;var D=document.createElement("div");D.className="paragraph bodyStyle",D.style.cssText=q(e);var N=document.createElement("div");N.className="cueUniWrapper",N.style.cssText="unicode-bidi: normal; direction: ltr;";for(var M=0;M<I.p.length;++M){var O=I.p[M],C=0;for(h=0;h<O.spans.length;++h){var P=O.spans[h];if(0<P.line.length){if(0!==h&&C!=P.row){var L=document.createElement("br");L.className="lineBreak",N.appendChild(L)}var x=!1;C===P.row&&(x=!0),C=P.row;var F=f[P.name],U=document.createElement("span");U.className="spanPadding "+P.name+" customSpanColor",U.style.cssText=q(e,F),0!==h&&x?h===O.spans.length-1?U.textContent=P.line.replace(/\s+$/g,""):U.textContent=P.line:1<O.spans.length&&h<O.spans.length-1&&P.row===O.spans[h+1].row?U.textContent=P.line.replace(/^\s+/g,""):U.textContent=P.line.trim(),N.appendChild(U)}}}D.appendChild(N),R.appendChild(D);var B={bodyStyle:["%",90]};for(var k in f)f.hasOwnProperty(k)&&(B[k]=["%",90]);b.push({type:"html",start:t,end:n,cueHTMLElement:R,cueID:S,cellResolution:[32,15],isFromCEA608:!0,fontSize:B,lineHeight:{},linePadding:{}})}return b}}}o.__dashjs_factory_name="EmbeddedTextHtmlRender",n.default=a.default.getSingletonFactory(o),t.exports=n.default},{48:48}],147:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var _=r(e(107)),v=r(e(47)),E=r(e(55)),i=r(e(48)),T=r(e(161)),y=r(e(103)),A=r(e(149)),b=r(e(173)),I=r(e(52)),S="NotFragmentedTextBufferController";function a(e){e=e||{};var n=this.context,r=(0,v.default)(n).getInstance(),i=(0,A.default)(n).getInstance(),a=e.errHandler,o=e.type,s=e.mimeType,u=e.streamProcessor,l=void 0,t=void 0,f=void 0,d=void 0,c=void 0,h=void 0;function p(e){d=e}function g(e){if(e.sender.getStreamProcessor()===u&&!e.error){var t=u.getStreamInfo(),n=e.sender.getCurrentRepresentation();h.extract(t?t.id:null,n?n.id:null)||r.trigger(E.default.TIMED_TEXT_REQUESTED,{index:0,sender:e.sender})}}function m(e){e.fragmentModel===u.getFragmentModel()&&e.chunk.bytes&&(h.save(e.chunk),c.append(e.chunk),r.trigger(E.default.STREAM_COMPLETED,{request:e.request,fragmentModel:e.fragmentModel}))}return l={getBufferControllerType:function(){return S},initialize:function(e){p(e),h=(0,T.default)(n).getInstance()},createBuffer:function(t){try{if(c=(0,y.default)(n).create(d,t),!f){var e=c.getBuffer();e.hasOwnProperty(_.default.INITIALIZE)&&e.initialize(s,u),f=!0}return c}catch(e){if(t&&(t.isText||-1!==t.codec.indexOf('codecs="stpp')||-1!==t.codec.indexOf('codecs="wvtt')))try{c=i.getTextSourceBuffer()}catch(e){a.error(new b.default(I.default.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,I.default.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+o+" : "+e.message))}else a.error(new b.default(I.default.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,I.default.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+o))}},getType:function(){return o},getStreamProcessor:function(){return u},setSeekStartTime:function(){},getBuffer:function(){return c},getBufferLevel:function(){return 0},setMediaSource:p,getMediaSource:function(){return d},getIsBufferingCompleted:function(){return t},getIsPruningInProgress:function(){return!1},dischargePreBuffer:function(){},switchInitData:function(e,t){h.extract(e,t)||r.trigger(E.default.TIMED_TEXT_REQUESTED,{index:0,sender:l})},getRangeAt:function(){return null},reset:function(e){r.off(E.default.DATA_UPDATE_COMPLETED,g,l),r.off(E.default.INIT_FRAGMENT_LOADED,m,l),!e&&c&&(c.abort(),c.reset(),c=null)},updateTimestampOffset:function(e){c.timestampOffset===e||isNaN(e)||(c.timestampOffset=e)}},d=null,t=f=!1,r.on(E.default.DATA_UPDATE_COMPLETED,g,l),r.on(E.default.INIT_FRAGMENT_LOADED,m,l),l}a.__dashjs_factory_name=S,n.default=i.default.getClassFactory(a),t.exports=n.default},{103:103,107:107,149:149,161:161,173:173,47:47,48:48,52:52,55:55}],148:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var a=r(e(107)),i=r(e(48)),o=r(e(112)),s=r(e(147));function u(e){e=e||{};var t,n=this.context,r=void 0;function i(){return r.getBuffer()}return t={getBufferControllerType:function(){return r.getBufferControllerType()},initialize:function(e,t){return r.initialize(e,t)},createBuffer:function(e){return r.createBuffer(e)},getType:function(){return r.getType()},getStreamProcessor:function(){r.getStreamProcessor()},setSeekStartTime:function(e){r.setSeekStartTime(e)},getBuffer:i,setBuffer:function(e){r.setBuffer(e)},getBufferLevel:function(){return r.getBufferLevel()},setMediaSource:function(e){r.setMediaSource(e)},getMediaSource:function(){return r.getMediaSource()},getIsBufferingCompleted:function(){return r.getIsBufferingCompleted()},getIsPruningInProgress:function(){return r.getIsPruningInProgress()},dischargePreBuffer:function(){return r.dischargePreBuffer()},switchInitData:function(e,t){r.switchInitData(e,t)},getRangeAt:function(e){return r.getRangeAt(e)},reset:function(e){r.reset(e)},updateTimestampOffset:function(e){var t=i();t.timestampOffset===e||isNaN(e)||(t.timestampOffset=e)}},r=e.type===a.default.FRAGMENTED_TEXT?(0,o.default)(n).create({type:e.type,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,manifestModel:e.manifestModel,errHandler:e.errHandler,streamController:e.streamController,mediaController:e.mediaController,adapter:e.adapter,textController:e.textController,abrController:e.abrController,playbackController:e.playbackController,streamProcessor:e.streamProcessor,settings:e.settings}):(0,s.default)(n).create({type:e.type,mimeType:e.mimeType,errHandler:e.errHandler,streamProcessor:e.streamProcessor}),t}u.__dashjs_factory_name="TextBufferController",n.default=i.default.getClassFactory(u),t.exports=n.default},{107:107,112:112,147:147,48:48}],149:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var S=r(e(107)),i=r(e(48)),R=r(e(150)),w=r(e(151)),D=r(e(169)),N=r(e(167)),M=r(e(47)),O=r(e(55)),C=e(166);function a(){var e=this.context,t=void 0,h=void 0,n=void 0,r=void 0,i=void 0,p=void 0,a=void 0,g=void 0,m=void 0,o=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,_=void 0,c=void 0,v=void 0;function E(e){void 0===v&&null!==e.fromStreamInfo&&(v=this.getCurrentTrackIdx())}function T(){void 0===v&&(v=this.getCurrentTrackIdx())}function y(){void 0!==v&&(this.setTextTrack(v),v=void 0)}function A(e){var n=this,t=e.tracks,r=e.index;t.some(function(e,t){if(e.lang===l)return n.setTextTrack(t),r=t,!0}),d||this.setTextTrack(-1),f=r,u.trigger(O.default.TEXT_TRACKS_ADDED,{enabled:b(),index:r,tracks:t})}function b(){var e=!0;return _&&!c&&(e=!1),e}function I(){_=!1}return t={setConfig:function(e){e&&(e.errHandler&&(n=e.errHandler),e.adapter&&(r=e.adapter),e.manifestModel&&(i=e.manifestModel),e.mediaController&&(p=e.mediaController),e.videoModel&&(a=e.videoModel),e.streamController&&(g=e.streamController),e.textTracks&&(m=e.textTracks),e.vttParser&&(o=e.vttParser),e.ttmlParser&&(s=e.ttmlParser),h.setConfig({errHandler:n,adapter:r,manifestModel:i,mediaController:p,videoModel:a,streamController:g,textTracks:m,vttParser:o,ttmlParser:s}))},getTextSourceBuffer:function(){return h},getAllTracksAreDisabled:function(){return _},addEmbeddedTrack:function(e){h.addEmbeddedTrack(e)},getTextDefaultLanguage:function(){return l},setTextDefaultLanguage:function(e){(0,C.checkParameterType)(e,"string"),l=e},setTextDefaultEnabled:function(e){(0,C.checkParameterType)(e,"boolean"),(d=e)||this.setTextTrack(-1)},getTextDefaultEnabled:function(){return d},enableText:function(e){(0,C.checkParameterType)(e,"boolean"),b()!==e&&(e&&this.setTextTrack(f),e||(f=this.getCurrentTrackIdx(),this.setTextTrack(-1)))},isTextEnabled:b,setTextTrack:function(e){var t=h.getConfig(),n=t.fragmentModel,r=t.fragmentedTracks,i=t.videoModel,a=void 0,o=void 0;_=-1===e;var s=m.getCurrentTrackIdx();if(s!==e){m.setModeForTrackIdx(s,S.default.TEXT_HIDDEN),m.setCurrentTrackIdx(e),m.setModeForTrackIdx(e,S.default.TEXT_SHOWING);var u=m.getCurrentTrackInfo();if(u&&u.isFragmented&&!u.isEmbedded)for(var l=0;l<r.length;l++){var f=r[l];if(u.lang===f.lang&&u.index===f.index&&(f.id?u.id===f.id:u.id===f.index))if(f!==p.getCurrentTrackFor(S.default.FRAGMENTED_TEXT,g.getActiveStreamInfo()))n.abortRequests(),n.removeExecutedRequestsBeforeTime(),h.remove(),m.deleteCuesFromTrackIdx(s),p.setTrack(f),h.setCurrentFragmentedTrackIdx(l);else if(-1===s){for(var d=g.getActiveStreamProcessors(),c=0;c<d.length;c++)if(d[c].getType()===S.default.FRAGMENTED_TEXT){o=d[c];break}o.setIndexHandlerTime(i.getTime()),o.getScheduleController().start()}}else if(u&&!u.isFragmented){for(d=g.getActiveStreamProcessors(),l=0;l<d.length;l++)if(d[l].getType()===S.default.TEXT){a=(o=d[l]).getMediaInfoArr();break}if(o&&a)for(l=0;l<a.length;l++)if(a[l].index===u.index&&a[l].lang===u.lang){o.selectMediaInfo(a[l]);break}}}},getCurrentTrackIdx:function(){return m.getCurrentTrackIdx()},enableForcedTextStreaming:function(e){(0,C.checkParameterType)(e,"boolean"),c=e},reset:function(){I(),h.resetEmbedded(),h.reset()}},f=-1,c=!(d=!(l="")),m=(0,w.default)(e).getInstance(),o=(0,D.default)(e).getInstance(),s=(0,N.default)(e).getInstance(),h=(0,R.default)(e).getInstance(),u=(0,M.default)(e).getInstance(),m.initialize(),u.on(O.default.TEXT_TRACKS_QUEUE_INITIALIZED,A,t),u.on(O.default.PERIOD_SWITCH_STARTED,E,t),u.on(O.default.STREAM_COMPLETED,T,t),u.on(O.default.PERIOD_SWITCH_COMPLETED,y,t),I(),t}a.__dashjs_factory_name="TextController",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,150:150,151:151,166:166,167:167,169:169,47:47,48:48,55:55}],150:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var ae=r(e(107)),oe=e(189),_=r(e(181)),v=r(e(155)),E=r(e(157)),i=r(e(48)),T=r(e(46)),y=r(e(151)),A=r(e(146)),se=r(e(8)),ue=r(e(2)),b=r(e(47)),I=r(e(55)),le=r(e(173)),fe=r(e(52));function a(){var a=this.context,n=(0,b.default)(a).getInstance(),r=!1,o=void 0,B=void 0,k=void 0,G=void 0,s=void 0,j=void 0,u=void 0,q=void 0,i=void 0,l=void 0,f=void 0,H=void 0,V=void 0,Y=void 0,z=void 0,d=void 0,W=void 0,c=void 0,K=void 0,X=void 0,Q=void 0,Z=void 0,$=void 0,J=void 0,ee=void 0,te=void 0,ne=void 0;function e(){z=NaN,K=V=null,Y=!(d=[])}function t(){e(),f=[],q=null}function h(e){var t=e.chunk;t.mediaInfo.embeddedCaptions&&m(t.bytes,t)}function p(){Q=[],(H=(0,y.default)(a).getInstance()).setConfig({videoModel:W}),H.initialize(),k=(0,v.default)(a).getInstance(),ee=[],J=[],r=!($=X=null),te=(Z=0,A.default)(a).getInstance();var e=c.getActiveStreamProcessors();for(var t in e)if("video"===e[t].getType()){ne=e[t].getRepresentationInfo().MSETimeOffset;break}n.on(I.default.VIDEO_CHUNK_RECEIVED,h,this)}function g(e){X=e}function re(e,t){var n,r,i=new _.default,a={subtitle:"subtitles",caption:"captions"};i.captionData=e,i.lang=t.lang,i.labels=t.labels,i.id=t.id?t.id:t.index,i.index=t.index,i.isTTML=(n=!1,t.codec&&0<=t.codec.search(ae.default.STPP)&&(n=!0),t.mimeType&&0<=t.mimeType.search(ae.default.TTML)&&(n=!0),n),i.defaultTrack=function(e){var t=!1;1<Q.length&&e.isEmbedded?t=e.id&&e.id===ae.default.CC1:1===Q.length?e.id&&"string"==typeof e.id&&"CC"===e.id.substring(0,2)&&(t=!0):0===Q.length&&(t=e.index===f[0].index);return t}(t),i.isFragmented=!s.getIsTextTrack(t.mimeType),i.isEmbedded=!!t.isEmbedded,i.kind=r=(r=0<t.roles.length?a[t.roles[0]]:a.caption)===a.caption||r===a.subtitle?r:a.caption,i.roles=t.roles,i.accessibility=t.accessibility;var o=(f?f.length:0)+Q.length;H.addTextTrack(i,o)}function m(e,t){var n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=void 0,l=t.mediaInfo,f=l.type,d=l.mimeType,c=l.codec||d;if(c){if(f===ae.default.FRAGMENTED_TEXT)if(Y||"InitializationSegment"!==t.segmentType){if(!Y)return;if(r=(s=k.getSamplesInfo(e)).sampleList,null===K&&0<r.length&&(K=r[0].cts-t.start*z),0<=c.search(ae.default.STPP))for(q=null!==q?q:ie(c),i=0;i<r.length;i++){var h=(A=r[i]).cts,p=h-K;this.buffered.add(p/z,(p+A.duration)/z);var g=new DataView(e,A.offset,A.subSizes[0]);u=se.default.Utils.dataViewToString(g,ae.default.UTF8);var m=[],_=A.offset+A.subSizes[0];for(a=1;a<A.subSizes.length;a++){var v=new Uint8Array(e,_,A.subSizes[a]),E=String.fromCharCode.apply(null,v);m.push(E),_+=A.subSizes[a]}try{var T=j.getValue().ttmlTimeIsRelative?h/z:0;n=q.parse(u,T,h/z,(h+A.duration)/z,m),H.addCaptions(X,K/z,n)}catch(e){V.removeExecutedRequestsBeforeTime(),this.remove(),B.error("TTML parser error: "+e.message)}}else{var y=[];for(i=0;i<r.length;i++){var A;(A=r[i]).cts-=K,this.buffered.add(A.cts/z,(A.cts+A.duration)/z);var b=e.slice(A.offset,A.offset+A.size),I=se.default.parseBuffer(b);for(a=0;a<I.boxes.length;a++){var S=I.boxes[a];if(B.debug("VTT box1: "+S.type),"vtte"!==S.type&&"vttc"===S.type)for(B.debug("VTT vttc boxes.length = "+S.boxes.length),o=0;o<S.boxes.length;o++){var R=S.boxes[o];if(B.debug("VTT box2: "+R.type),"payl"===R.type){var w=R.cue_text;B.debug("VTT cue_text = "+w);var D=A.cts/z,N=(A.cts+A.duration)/z;y.push({start:D,end:N,data:w,styles:{}}),B.debug("VTT "+D+"-"+N+" : "+w)}}}}0<y.length&&H.addCaptions(X,0,y)}}else Y=!0,z=k.getMediaTimescaleFromMoov(e);else if(f===ae.default.TEXT){g=new DataView(e,0,e.byteLength);u=se.default.Utils.dataViewToString(g,ae.default.UTF8);try{n=ie(c).parse(u,0),H.addCaptions(H.getCurrentTrackIdx(),0,n)}catch(e){G.error(new le.default(fe.default.TIMED_TEXT_ERROR_ID_PARSE_CODE,fe.default.TIMED_TEXT_ERROR_MESSAGE_PARSE+e.message,u))}}else if(f===ae.default.VIDEO)if(t.segmentType===oe.HTTPRequest.INIT_SEGMENT_TYPE){if(0===Z)for(Z=k.getMediaTimescaleFromMoov(e),i=0;i<Q.length;i++)re(null,Q[i])}else{if(0===Z)return void B.warn("CEA-608: No timescale for embeddedTextTrack yet");var M=function(e,i){return function(e,t,n){var r=null;r=W.getTTMLRenderingDiv()?te.createHTMLCaptionsFromScreen(W.getElement(),e,t,n):[{start:e,end:t,data:n.getDisplayText(),styles:{}}],r&&H.addCaptions(i,0,r)}},O=(s=k.getSamplesInfo(e)).lastSequenceNumber;if(!ee[0]&&!ee[1]){var C=void 0,P=void 0;for(i=0;i<Q.length;i++){if(Q[i].id===ae.default.CC1?(0,P=H.getTrackIdxForId(ae.default.CC1)):Q[i].id===ae.default.CC3&&(1,P=H.getTrackIdxForId(ae.default.CC3)),-1===P)return void B.warn("CEA-608: data before track is ready.");C=M(0,P),ee[i]=new ue.default.Cea608Parser(i+1,{newCue:C},null)}}if(Z&&-1==J.indexOf(O)){if(null!==$&&O!==$+s.numSequences)for(i=0;i<ee.length;i++)ee[i]&&ee[i].reset();for(var L=function(e,t){if(0===t.length)return null;for(var n={splits:[],fields:[[],[]]},r=new DataView(e),i=0;i<t.length;i++)for(var a=t[i],o=ue.default.findCea608Nalus(r,a.offset,a.size),s=null,u=0,l=0;l<o.length;l++)for(var f=ue.default.extractCea608DataFromRange(r,o[l]),d=0;d<2;d++)0<f[d].length&&(a.cts!==s?u=0:u+=1,n.fields[d].push([a.cts+ne*Z,f[d],u]),s=a.cts);return n.fields.forEach(function(e){e.sort(function(e,t){return e[0]===t[0]?e[2]-t[2]:e[0]-t[0]})}),n}(e,s.sampleList),x=0;x<ee.length;x++){var F=L.fields[x],U=ee[x];if(U)for(i=0;i<F.length;i++)U.addData(F[i][0]/Z,F[i][1])}$=O,J.push(O)}}}else B.error("No text type defined")}function ie(e){var t=void 0;return 0<=e.search(ae.default.VTT)?t=i:(0<=e.search(ae.default.TTML)||0<=e.search(ae.default.STPP))&&(t=l),t}return o={initialize:function(e,t){r||p(),H.setConfig({videoModel:W}),H.initialize(),k=k||(0,v.default)(a).getInstance(),function(e,t){var n=!s.getIsTextTrack(e);if(t){if(f=f.concat(t.getMediaInfoArr()),n){V=t.getFragmentModel(),o.buffered=(0,E.default)(a).create(),d=u.getTracksFor(ae.default.FRAGMENTED_TEXT,t.getStreamInfo());for(var r=u.getCurrentTrackFor(ae.default.FRAGMENTED_TEXT,t.getStreamInfo()),i=0;i<d.length;i++)if(d[i]===r){g(i);break}}for(i=0;i<f.length;i++)re(null,f[i])}}(e,t)},append:m,abort:function(){H.deleteAllTextTracks(),e(),k=null,f=[]},addEmbeddedTrack:function(e){if(r||p(),e)if(e.id===ae.default.CC1||e.id===ae.default.CC3){for(var t=0;t<Q.length;t++)if(Q[t].id===e.id)return;Q.push(e)}else B.warn("Embedded track "+e.id+" not supported!")},resetEmbedded:function(){n.off(I.default.VIDEO_CHUNK_RECEIVED,h,this),H&&H.deleteAllTextTracks(),r=!1,Q=[],ee=[null,null],J=[],$=null},setConfig:function(e){e&&(e.errHandler&&(G=e.errHandler),e.adapter&&(s=e.adapter),e.manifestModel&&(j=e.manifestModel),e.mediaController&&(u=e.mediaController),e.videoModel&&(W=e.videoModel),e.streamController&&(c=e.streamController),e.textTracks&&(H=e.textTracks),e.vttParser&&(i=e.vttParser),e.ttmlParser&&(l=e.ttmlParser))},getConfig:function(){return{fragmentModel:V,fragmentedTracks:d,videoModel:W}},setCurrentFragmentedTrackIdx:g,remove:function(e,t){void 0===e&&e===t&&(e=this.buffered.start(0),t=this.buffered.end(this.buffered.length-1)),this.buffered.remove(e,t)},reset:function(){t(),H=W=c=null}},B=(0,T.default)(a).getInstance().getLogger(o),t(),o}a.__dashjs_factory_name="TextSourceBuffer",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,146:146,151:151,155:155,157:157,173:173,181:181,189:189,2:2,46:46,47:47,48:48,52:52,55:55,8:8}],151:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var E=r(e(107)),s=r(e(47)),M=r(e(55)),i=r(e(48)),O=r(e(46)),C=e(15),P=e(166);function a(){var e=this.context,T=(0,s.default)(e).getInstance(),t=void 0,u=void 0,l=void 0,y=void 0,f=void 0,d=void 0,c=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,r=void 0,w=void 0,D=void 0,n=void 0,N=void 0;function h(e){var t=f[e].kind,n=void 0!==f[e].id?f[e].id:f[e].lang,r=f[e].lang,i=f[e].isTTML,a=f[e].isEmbedded,o=y.addTextTrack(t,n,r);return o.isEmbedded=a,o.isTTML=i,o}function i(e,t){var n=y.getClientWidth(),r=y.getClientHeight(),i=y.getVideoWidth(),a=y.getVideoHeight(),o=y.getVideoRelativeOffsetTop(),s=y.getVideoRelativeOffsetLeft(),u=i/a,l=!1;e.isFromCEA608&&(u=3.5/3,l=!0);var f=function(e,t,n,r,i,a){var o=0,s=0;n/r<e/t?o=(s=t)/r*n:s=(o=e)/n*r;var u,l,f=0,d=0;return i<o/s?f=(d=s)*i:d=(f=o)/i,u=(e-f)/2,l=(t-d)/2,a?{x:u+.1*f,y:l+.1*d,w:.8*f,h:.8*d}:{x:u,y:l,w:f,h:d}}.call(this,n,r,i,a,u,l),d=f.w,c=f.h,h=f.x,p=f.y;if(d!=I||c!=S||h!=A||p!=b||t){if(A=h+s,b=p+o,I=d,S=c,R){var g=R.style;g&&(g.left=A+"px",g.top=b+"px",g.width=I+"px",g.height=S+"px",g.zIndex=w&&document[w]||D?N:null,T.trigger(M.default.CAPTION_CONTAINER_RESIZE,{}))}var m=e.activeCues;if(m)for(var _=m.length,v=0;v<_;++v){var E=m[v];E.scaleCue(E)}}}function p(e){var t=I,n=S,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0;if(e.cellResolution){var u=[t/e.cellResolution[0],n/e.cellResolution[1]];if(e.linePadding)for(r in e.linePadding)if(e.linePadding.hasOwnProperty(r)){i=(e.linePadding[r]*u[0]).toString();for(var l=document.getElementsByClassName("spanPadding"),f=0;f<l.length;f++)l[f].style.cssText=l[f].style.cssText.replace(/(padding-left\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+i),l[f].style.cssText=l[f].style.cssText.replace(/(padding-right\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+i)}if(e.fontSize){for(r in e.fontSize)if(e.fontSize.hasOwnProperty(r)){"%"===e.fontSize[r][0]?a=e.fontSize[r][1]/100:"c"===e.fontSize[r][0]&&(a=e.fontSize[r][1]),i=(a*u[1]).toString(),s="defaultFontSize"!==r?document.getElementsByClassName(r):document.getElementsByClassName("paragraph");for(var d=0;d<s.length;d++)s[d].style.cssText=s[d].style.cssText.replace(/(font-size\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+i)}if(e.lineHeight)for(r in e.lineHeight)if(e.lineHeight.hasOwnProperty(r)){"%"===e.lineHeight[r][0]?o=e.lineHeight[r][1]/100:"c"===e.fontSize[r][0]&&(o=e.lineHeight[r][1]),i=(o*u[1]).toString(),s=document.getElementsByClassName(r);for(var c=0;c<s.length;c++)s[c].style.cssText=s[c].style.cssText.replace(/(line-height\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+i)}}}if(e.isd){var h=document.getElementById(e.cueID);h&&R.removeChild(h),g(e)}}function g(a){if(R){var e=document.createElement("div");R.appendChild(e),n=(0,C.renderHTML)(a.isd,e,function(e){var t=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/,n=/^#(.*)$/;if(t.test(e)){var r=t.exec(e),i=parseInt(r[4],10)-1;return"data:image/png;base64,"+btoa(a.images[i])}if(n.test(e)){i=(r=n.exec(e))[1];return"data:image/png;base64,"+a.embeddedImages[i]}return null},R.clientHeight,R.clientWidth,!1,function(e){u.info("renderCaption :",e)},n,!0),e.id=a.cueID,T.trigger(M.default.CAPTION_RENDERED,{captionDiv:e,currentTrackIdx:c})}}function m(e){return 0<=e&&f[e]?y.getTextTrack(f[e].kind,f[e].id,f[e].lang,f[e].isTTML,f[e].isEmbedded):null}function _(e){if(e!==c){var t=m(c=e);(function(e){o.call(this),e&&"html"===e.renderingType?function(){var e=document.getElementById("native-cue-style");if(e)return;(e=document.createElement("style")).id="native-cue-style",document.head.appendChild(e);var t=e.sheet,n=y.getElement();try{n&&(n.id?t.insertRule("#"+n.id+"::cue {background: transparent}",0):0!==n.classList.length?t.insertRule("."+n.className+"::cue {background: transparent}",0):t.insertRule("video::cue {background: transparent}",0))}catch(e){u.info(""+e.message)}}.call(this):a.call(this)}).call(this,t),r&&(clearInterval(r),r=null),t&&"html"===t.renderingType&&(i.call(this,t,!0),r=setInterval(i.bind(this,t),500))}}function v(e){if(e.cues)for(var t=e.cues,n=t.length-1;0<=n;n--)e.removeCue(t[n])}function a(){var e=document.getElementById("native-cue-style");e&&document.head.removeChild(e)}function o(){if(R)for(;R.firstChild;)R.removeChild(R.firstChild)}return t={initialize:function(){"undefined"!=typeof window&&"undefined"!=typeof navigator&&(l=window.VTTCue||window.TextTrackCue,f=[],d=[],D=!(c=-1),N=2147483647,n=r=R=null,void(S=I=b=A=0)!==document.fullscreenElement?w="fullscreenElement":void 0!==document.webkitIsFullScreen?w="webkitIsFullScreen":document.msFullscreenElement?w="msFullscreenElement":document.mozFullScreen&&(w="mozFullScreen"))},setDisplayCConTop:function(e){(0,P.checkParameterType)(e,"boolean"),D=e,R&&!document[w]&&(R.style.zIndex=e?N:null)},addTextTrack:function(e,t){if(f.length!==t){if(f.push(e),f.length===t){f.sort(function(e,t){return e.index-t.index}),R=y.getTTMLRenderingDiv();for(var n=-1,r=0;r<f.length;r++){var i=h.call(this,r);d.push(i),f[r].defaultTrack&&(i.default=!0,n=r);var a=m(r);a&&(a.mode=E.default.TEXT_SHOWING,R&&(f[r].isTTML||f[r].isEmbedded)?a.renderingType="html":a.renderingType="default"),this.addCaptions(r,0,f[r].captionData),T.trigger(M.default.TEXT_TRACK_ADDED)}if(_.call(this,n),0<=n)for(var o=0;o<f.length;o++){var s=m(o);s&&(s.mode=o===n?E.default.TEXT_SHOWING:E.default.TEXT_HIDDEN)}T.trigger(M.default.TEXT_TRACKS_QUEUE_INITIALIZED,{index:c,tracks:f})}}else u.error("Trying to add too many tracks.")},addCaptions:function(e,t,n){var r=m(e),i=this;if(r&&Array.isArray(n)&&0!==n.length)for(var a=0;a<n.length;a++){var o=void 0,s=n[a];r.cellResolution=s.cellResolution,r.isFromCEA608=s.isFromCEA608,"html"===s.type&&R?((o=new l(s.start-t,s.end-t,"")).cueHTMLElement=s.cueHTMLElement,o.isd=s.isd,o.images=s.images,o.embeddedImages=s.embeddedImages,o.cueID=s.cueID,o.scaleCue=p.bind(i),o.cellResolution=s.cellResolution,o.lineHeight=s.lineHeight,o.linePadding=s.linePadding,o.fontSize=s.fontSize,R.style.left=A+"px",R.style.top=b+"px",R.style.width=I+"px",R.style.height=S+"px",o.onenter=function(){r.mode===E.default.TEXT_SHOWING&&(this.isd?(g(this),u.debug("Cue enter id:"+this.cueID)):(R.appendChild(this.cueHTMLElement),p.call(i,this),T.trigger(M.default.CAPTION_RENDERED,{captionDiv:this.cueHTMLElement,currentTrackIdx:c})))},o.onexit=function(){if(R)for(var e=R.childNodes,t=0;t<e.length;++t)e[t].id===this.cueID&&(u.debug("Cue exit id:"+e[t].id),R.removeChild(e[t]),--t)}):s.data&&(o=new l(s.start-t,s.end-t,s.data),s.styles&&(void 0!==s.styles.align&&"align"in o&&(o.align=s.styles.align),void 0!==s.styles.line&&"line"in o&&(o.line=s.styles.line),void 0!==s.styles.position&&"position"in o&&(o.position=s.styles.position),void 0!==s.styles.size&&"size"in o&&(o.size=s.styles.size)),o.onenter=function(){r.mode===E.default.TEXT_SHOWING&&T.trigger(M.default.CAPTION_RENDERED,{currentTrackIdx:c})});try{o?r.addCue(o):u.error("impossible to display subtitles.")}catch(e){throw v(r),r.addCue(o),e}}},getCurrentTrackIdx:function(){return c},setCurrentTrackIdx:_,getTrackIdxForId:function(e){for(var t=-1,n=0;n<f.length;n++)if(f[n].id===e){t=n;break}return t},getCurrentTrackInfo:function(){return f[c]},setModeForTrackIdx:function(e,t){var n=m(e);n&&n.mode!==t&&(n.mode=t)},deleteCuesFromTrackIdx:function(e){var t=m(e);t&&v(t)},deleteAllTextTracks:function(){for(var e=d?d.length:0,t=0;t<e;t++){var n=m(t);n&&(v.call(this,n),n.mode="disabled")}d=[],f=[],r&&(clearInterval(r),r=null),c=-1,o.call(this)},deleteTextTrack:function(e){y.removeChild(d[e]),d.splice(e,1)},setConfig:function(e){e&&e.videoModel&&(y=e.videoModel)}},u=(0,O.default)(e).getInstance().getLogger(t),t}a.__dashjs_factory_name="TextTracks",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,15:15,166:166,46:46,47:47,48:48,55:55}],152:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(107)),u=r(e(182)),o=r(e(153)),l=r(e(172)),f=e(80);function s(e){var t,n=this.context,s=void 0;function r(){s&&s.reset()}return t={get:function(e,t){var n=s.getCurrentTrack();if(!n||n.segmentDuration<=0||null==e)return null;var r=Math.floor(e/n.segmentDuration),i=e%n.segmentDuration,a=Math.floor(i*n.tilesHor*n.tilesVert/n.segmentDuration),o=new u.default;return o.width=Math.floor(n.widthPerTile),o.height=Math.floor(n.heightPerTile),o.x=Math.floor(a%n.tilesHor)*n.widthPerTile,o.y=Math.floor(a/n.tilesHor)*n.heightPerTile,"readThumbnail"in n?n.readThumbnail(e,function(e){o.url=e,t&&t(o)}):(o.url=function(e,t){var n=t+e.startNumber,r=(0,f.replaceTokenForTemplate)(e.templateUrl,"Number",n);return r=(0,f.replaceTokenForTemplate)(r,"Time",(n-1)*e.segmentDuration),r=(0,f.replaceTokenForTemplate)(r,"Bandwidth",e.bandwidth),(0,f.unescapeDollarsInTemplate)(r)}(n,r),t&&t(o),o)},setTrackByIndex:function(e){s.setTrackByIndex(e)},getCurrentTrackIndex:function(){return s.getCurrentTrackIndex()},getBitrateList:function(){var e=s.getTracks(),n=0;return e.map(function(e){var t=new l.default;return t.mediaType=a.default.IMAGE,t.qualityIndex=n++,t.bitrate=e.bitrate,t.width=e.width,t.height=e.height,t})},reset:r},r(),s=(0,o.default)(n).create({adapter:e.adapter,baseURLController:e.baseURLController,stream:e.stream,timelineConverter:e.timelineConverter}),t}s.__dashjs_factory_name="ThumbnailController",n.default=i.default.getClassFactory(s),t.exports=n.default},{107:107,153:153,172:172,182:182,48:48,80:80}],153:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var E=r(e(107)),T=r(e(62)),i=r(e(48)),y=r(e(183)),A=r(e(168)),b=e(80),I=r(e(60)),S=r(e(155)),R=r(e(131)),w=["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"];function a(e){var t,n=this.context,u=e.adapter,s=e.baseURLController,r=e.stream,l=e.timelineConverter,i=e.dashMetrics,a=e.mediaPlayerModel,o=e.errHandler,f=(0,A.default)(n).getInstance(),d=void 0,c=void 0,h=void 0,p=void 0,g=void 0;function m(){v(),h=(0,R.default)(n).create({}),g=(0,S.default)(n).getInstance(),(p=(0,I.default)(n).getInstance()).setConfig({baseURLController:s,dashMetrics:i,mediaPlayerModel:a,errHandler:o}),function(){if(!r||!u)return;var e=r.getStreamInfo();if(!e)return;var t=u.getMediaInfoForType(e,E.default.IMAGE);if(!t)return;var n=u.getVoRepresentations(t);n&&0<n.length&&n.forEach(function(e){e.segmentInfoType===T.default.SEGMENT_TEMPLATE&&0<e.segmentDuration&&e.media&&_(e),e.segmentInfoType===T.default.SEGMENT_BASE&&_(e,!0)});0<d.length&&(d.sort(function(e,t){return e.bitrate-t.bitrate}),c=d.length-1)}()}function _(e,t){var n=new y.default;n.id=e.id,n.bitrate=e.bandwidth,n.width=e.width,n.height=e.height,n.tilesHor=1,n.tilesVert=1,e.essentialProperties&&e.essentialProperties.forEach(function(e){if(0<=w.indexOf(e.schemeIdUri)&&e.value){var t=e.value.split("x");2!==t.length||isNaN(t[0])||isNaN(t[1])||(n.tilesHor=parseInt(t[0],10),n.tilesVert=parseInt(t[1],10))}}),t?p.loadSegments(e,E.default.IMAGE,e.indexRange,{},function(e,r){var o=[];e=function(e,t){var n,r=[],i=0,a=void 0,o=void 0,s=void 0;for(a=0,n=e.length;a<n;a++)o=e[a],(s=(0,b.getTimeBasedSegment)(l,u.getIsDynamic(),t,o.startTime,o.duration,o.timescale,o.media,o.mediaRange,i))&&(r.push(s),s=null,i++);return r}(e,r),n.segmentDuration=e[0].duration,n.readThumbnail=function(t,a){var n=null;o.some(function(e){if(e.start<=t&&e.end>t)return n=e.url,!0}),n?a(n):e.some(function(i){if(i.mediaStartTime<=t&&i.mediaStartTime+i.duration>t){var e=s.resolve(r.path);return h.load({method:"get",url:e.url,request:{range:i.mediaRange,responseType:"arraybuffer"},onload:function(e){var t=g.getSamplesInfo(e.target.response),n=new Blob([e.target.response.slice(t.sampleList[0].offset,t.sampleList[0].offset+t.sampleList[0].size)],{type:"image/jpeg"}),r=window.URL.createObjectURL(n);o.push({start:i.mediaStartTime,end:i.mediaStartTime+i.duration,url:r}),a&&a(r)}}),!0}})}}):(n.startNumber=e.startNumber,n.segmentDuration=e.segmentDuration,n.timescale=e.timescale,n.templateUrl=function(e){var t=f.isRelative(e.media)?f.resolve(e.media,s.resolve(e.path).url):e.media;return t?(0,b.replaceIDForTemplate)(t,e.id):""}(e)),0<n.tilesHor&&0<n.tilesVert&&(n.widthPerTile=n.width/n.tilesHor,n.heightPerTile=n.height/n.tilesVert,d.push(n))}function v(){d=[],c=-1}return t={initialize:m,getTracks:function(){return d},reset:v,setTrackByIndex:function(e){d&&0!==d.length&&(e>=d.length&&(e=d.length-1),c=e)},getCurrentTrack:function(){return c<0?null:d[c]},getCurrentTrackIndex:function(){return c}},m(),t}n.THUMBNAILS_SCHEME_ID_URIS=w,a.__dashjs_factory_name="ThumbnailTracks",n.default=i.default.getClassFactory(a)},{107:107,131:131,155:155,168:168,183:183,48:48,60:60,62:62,80:80}],154:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var u=r(e(52)),l=r(e(47)),f=r(e(55)),d=r(e(111)),c=r(e(171)),h=r(e(170)),i=r(e(48)),p=r(e(173)),g=e(166);function a(){var e,t=this.context,i=(0,l.default)(t).getInstance(),n=void 0,a=void 0,r=void 0,o=void 0;function s(){n.reset()}return e={chooseSelector:function(e){(0,g.checkParameterType)(e,"boolean"),o=e?r:a},select:function(e){if(e){var t=e.baseUrls,n=e.selectedIdx;if(!isNaN(n))return t[n];var r=o.select(t);return r?(e.selectedIdx=t.indexOf(r),r):(i.trigger(f.default.URL_RESOLUTION_FAILED,{error:new p.default(u.default.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE,u.default.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE)}),void(o===a&&s()))}},reset:s,setConfig:function(e){e.selector&&(o=e.selector)}},n=(0,d.default)(t).create({updateEventName:f.default.SERVICE_LOCATION_BLACKLIST_CHANGED,addBlacklistEventName:f.default.SERVICE_LOCATION_BLACKLIST_ADD}),a=(0,h.default)(t).create({blacklistController:n}),r=(0,c.default)(t).create({blacklistController:n}),o=a,e}a.__dashjs_factory_name="BaseURLSelector",n.default=i.default.getClassFactory(a),t.exports=n.default},{111:111,166:166,170:170,171:171,173:173,47:47,48:48,52:52,55:55}],155:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(46)),o=r(e(162)),a=r(e(48)),s=r(e(8)),c=r(e(178));function u(){var a=void 0,e=void 0,r=this.context;function P(e){if(!e)return null;void 0===e.fileStart&&(e.fileStart=0);var t=s.default.parseBuffer(e),n=(0,o.default)(r).create();return n.setData(t),n}return e={parse:P,findLastTopIsoBoxCompleted:function(e,t,n){if(void 0===n&&(n=0),!t||n+8>=t.byteLength)return new c.default(0,!1);for(var r,i,a,o,s=t instanceof ArrayBuffer?new Uint8Array(t):t,u=void 0,l=0;n<s.byteLength;){var f=(a=s)[(o=n)+3]>>>0|a[o+2]<<8>>>0|a[o+1]<<16>>>0|a[o]<<24>>>0,d=(r=s,i=n+4,String.fromCharCode(r[i++])+String.fromCharCode(r[i++])+String.fromCharCode(r[i++])+String.fromCharCode(r[i]));if(0==f)break;n+f<=s.byteLength&&(0<=e.indexOf(d)?u=new c.default(n,!0,f):l=n+f),n+=f}return u||new c.default(l,!1)},getMediaTimescaleFromMoov:function(e){var t=P(e),n=t?t.getBox("mdhd"):void 0;return n?n.timescale:NaN},getSamplesInfo:function(e){if(!e||0===e.byteLength)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};var t,n,r=P(e),i=r.getBoxes("moof"),a=r.getBoxes("mfhd"),o=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,c=void 0,h=void 0,p=void 0,g=void 0,m=void 0,_=void 0,v=void 0,E=void 0;n=r.getBoxes("moof").length,t=a[a.length-1].sequence_number,f=[];var T=-1,y=-1;for(g=s=0;g<i.length;g++){var A=i[g],b=A.getChildBoxes("traf");for(h=0;h<b.length;h++){var I=b[h],S=I.getChildBox("tfhd"),R=I.getChildBox("tfdt");l=R.baseMediaDecodeTime;var w=I.getChildBoxes("trun"),D=I.getChildBoxes("subs");for(p=0;p<w.length;p++){var N=w[p];for(s=N.sample_count,v=(S.base_data_offset||0)+(N.data_offset||0),c=0;c<s;c++){o=void 0!==(d=N.samples[c]).sample_duration?d.sample_duration:S.default_sample_duration,u=void 0!==d.sample_size?d.sample_size:S.default_sample_size;var M={dts:l,cts:l+(void 0!==d.sample_composition_time_offset?d.sample_composition_time_offset:0),duration:o,offset:A.offset+v,size:u,subSizes:[u]};if(D)for(m=0;m<D.length;m++){var O=D[m];if(T<O.entry_count-1&&y<c&&(T++,y+=O.entries[T].sample_delta),c==y){M.subSizes=[];var C=O.entries[T];for(_=0;_<C.subsample_count;_++)M.subSizes.push(C.subsamples[_].subsample_size)}}f.push(M),v+=u,l+=o}}E=l-R.baseMediaDecodeTime}}return{sampleList:f,lastSequenceNumber:t,totalDuration:E,numSequences:n}},findInitRange:function(e){var t=null,n=P(e);if(!n)return t;var r=n.getBox("ftyp"),i=n.getBox("moov");return a.debug("Searching for initialization."),i&&i.isComplete&&(t=(r?r.offset:i.offset)+"-"+(i.offset+i.size-1),a.debug("Found the initialization. Range: "+t)),t}},a=(0,i.default)(r).getInstance().getLogger(e),e}u.__dashjs_factory_name="BoxParser",n.default=a.default.getSingletonFactory(u),t.exports=n.default},{162:162,178:178,46:46,48:48,8:8}],156:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){var e,t=void 0;return t=!(e={supportsMediaSource:function(){var e="WebKitMediaSource"in window,t="MediaSource"in window;return e||t},supportsEncryptedMedia:function(){return t},supportsCodec:function(e){return!!("MediaSource"in window&&MediaSource.isTypeSupported(e))||!!("WebKitMediaSource"in window&&WebKitMediaSource.isTypeSupported(e))},setEncryptedMediaSupported:function(e){t=e}}),e}o.__dashjs_factory_name="Capabilities",n.default=a.default.getSingletonFactory(o),t.exports=n.default},{48:48}],157:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r},o=e(166);function s(){return{customTimeRangeArray:[],length:0,add:function(e,t){var n=0;for(n=0;n<this.customTimeRangeArray.length&&e>this.customTimeRangeArray[n].start;n++);for(this.customTimeRangeArray.splice(n,0,{start:e,end:t}),n=0;n<this.customTimeRangeArray.length-1;n++)this.mergeRanges(n,n+1)&&n--;this.length=this.customTimeRangeArray.length},clear:function(){this.customTimeRangeArray=[],this.length=0},remove:function(e,t){for(var n=0;n<this.customTimeRangeArray.length;n++)if(e<=this.customTimeRangeArray[n].start&&t>=this.customTimeRangeArray[n].end)this.customTimeRangeArray.splice(n,1),n--;else{if(e>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end){this.customTimeRangeArray.splice(n+1,0,{start:t,end:this.customTimeRangeArray[n].end}),this.customTimeRangeArray[n].end=e;break}e>this.customTimeRangeArray[n].start&&e<this.customTimeRangeArray[n].end?this.customTimeRangeArray[n].end=e:t>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end&&(this.customTimeRangeArray[n].start=t)}this.length=this.customTimeRangeArray.length},mergeRanges:function(e,t){var n=this.customTimeRangeArray[e],r=this.customTimeRangeArray[t];return n.start<=r.start&&r.start<=n.end&&n.end<=r.end?(n.end=r.end,this.customTimeRangeArray.splice(t,1),!0):r.start<=n.start&&n.start<=r.end&&r.end<=n.end?(n.start=r.start,this.customTimeRangeArray.splice(t,1),!0):r.start<=n.start&&n.start<=r.end&&n.end<=r.end?(this.customTimeRangeArray.splice(e,1),!0):n.start<=r.start&&r.start<=n.end&&r.end<=n.end&&(this.customTimeRangeArray.splice(t,1),!0)},start:function(e){return(0,o.checkInteger)(e),e>=this.customTimeRangeArray.length||e<0?NaN:this.customTimeRangeArray[e].start},end:function(e){return(0,o.checkInteger)(e),e>=this.customTimeRangeArray.length||e<0?NaN:this.customTimeRangeArray[e].end}}}s.__dashjs_factory_name="CustomTimeRanges",n.default=a.default.getClassFactory(s),t.exports=n.default},{166:166,48:48}],158:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),f=r(e(46)),d=r(e(107)),c=[{oldKey:"dashjs_vbitrate",newKey:"dashjs_video_bitrate"},{oldKey:"dashjs_abitrate",newKey:"dashjs_audio_bitrate"},{oldKey:"dashjs_vsettings",newKey:"dashjs_video_settings"},{oldKey:"dashjs_asettings",newKey:"dashjs_audio_settings"}],h="dashjs_?_bitrate",p="dashjs_?_settings",g="localStorage",m="lastBitrate",_="lastMediaSettings";function a(e){e=e||{};var t=this.context,o=e.settings,n=void 0,s=void 0,r=void 0;function i(e){if(void 0!==r)return r;r=!1;var t=void 0;try{"undefined"!=typeof window&&(t=window[e])}catch(e){return s.warn("DOMStorage access denied: "+e.message),r}if(!t||e!==g&&"sessionStorage"!==e)return r;try{t.setItem("1","1"),t.removeItem("1"),r=!0}catch(e){s.warn("DOMStorage is supported, but cannot be used: "+e.message)}return r}function a(){return 6e5*Math.round((new Date).getTime()/6e5)}function u(e,t){return i(e)&&o.get().streaming[t+"CachingInfo"].enabled}function l(){if(!o)throw new Error(d.default.MISSING_CONFIG_ERROR)}return n={getSavedBitrateSettings:function(e){var t=NaN;if(l(),u(g,m)){var n=h.replace(/\?/,e);try{var r=JSON.parse(localStorage.getItem(n))||{},i=(new Date).getTime()-parseInt(r.timestamp,10)>=o.get().streaming.lastBitrateCachingInfo.ttl||!1,a=parseFloat(r.bitrate);isNaN(a)||i?i&&localStorage.removeItem(n):(t=a,s.debug("Last saved bitrate for "+e+" was "+a))}catch(e){return null}}return t},setSavedBitrateSettings:function(e,t){if(u(g,m)&&t){var n=h.replace(/\?/,e);try{localStorage.setItem(n,JSON.stringify({bitrate:t.toFixed(3),timestamp:a()}))}catch(e){s.error(e.message)}}},getSavedMediaSettings:function(e){var t=null;if(l(),u(g,_)){var n=p.replace(/\?/,e);try{var r=JSON.parse(localStorage.getItem(n))||{},i=(new Date).getTime()-parseInt(r.timestamp,10)>=o.get().streaming.lastMediaSettingsCachingInfo.ttl||!1;t=r.settings,i&&(localStorage.removeItem(n),t=null)}catch(e){return null}}return t},setSavedMediaSettings:function(e,t){if(u(g,_)){var n=p.replace(/\?/,e);try{localStorage.setItem(n,JSON.stringify({settings:t,timestamp:a()}))}catch(e){s.error(e.message)}}}},s=(0,f.default)(t).getInstance().getLogger(n),i(g)&&c.forEach(function(e){var t=localStorage.getItem(e.oldKey);if(t){localStorage.removeItem(e.oldKey);try{localStorage.setItem(e.newKey,t)}catch(e){s.error(e.message)}}}),n}a.__dashjs_factory_name="DOMStorage";var o=i.default.getSingletonFactory(a);n.default=o,t.exports=n.default},{107:107,46:46,48:48}],159:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){e=e||{};var n=void 0,s=new DataView(e.data),u=0;function i(e,t){var n=!0,r=0;if(void 0===t&&(t=!1),r=16777215<e.tag?(s.getUint32(u)!==e.tag&&(n=!1),4):65535<e.tag?(256*s.getUint16(u)+s.getUint8(u+2)!==e.tag&&(n=!1),3):255<e.tag?(s.getUint16(u)!==e.tag&&(n=!1),2):(s.getUint8(u)!==e.tag&&(n=!1),1),!n&&e.required&&!t)throw new Error("required tag not found");return n&&(u+=r),n}function a(e){var t=1,n=128,r=-1,i=0,a=s.getUint8(u),o=0;for(o=0;o<8;o+=1){if((a&n)===n){i=void 0===e?a&~n:a,r=o;break}n>>=1}for(o=0;o<r;o+=1,t+=1)i=i<<8|255&s.getUint8(u+t);return u+=t,i}return n={getPos:function(){return u},setPos:function(e){u=e},consumeTag:i,consumeTagAndSize:function(e,t){var n=i(e,t);return n&&a(),n},parseTag:function(e){var t;return i(e),t=a(),n[e.parse](t)},skipOverElement:function(e,t){var n=i(e,t),r=void 0;return n&&(r=a(),u+=r),n},getMatroskaCodedNum:a,getMatroskaFloat:function(e){var t=void 0;switch(e){case 4:t=s.getFloat32(u),u+=4;break;case 8:t=s.getFloat64(u),u+=8}return t},getMatroskaUint:function(e){for(var t=0,n=0;n<e;n+=1)t<<=8,t|=255&s.getUint8(u+n);return u+=e,t},moreData:function(){return u<s.byteLength}}}o.__dashjs_factory_name="EBMLParser",n.default=a.default.getClassFactory(o),t.exports=n.default},{48:48}],160:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(47)),a=r(e(55)),o=r(e(48));function s(){var e=this.context,t=(0,i.default)(e).getInstance();return{error:function(e){t.trigger(a.default.ERROR,{error:e})}}}s.__dashjs_factory_name="ErrorHandler",n.default=o.default.getSingletonFactory(s),t.exports=n.default},{47:47,48:48,55:55}],161:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){var r={};return{save:function(e){var t=e.streamId,n=e.representationId;r[t]=r[t]||{},r[t][n]=e},extract:function(e,t){return r&&r[e]&&r[e][t]?r[e][t]:null},reset:function(){r={}}}}o.__dashjs_factory_name="InitCache",n.default=a.default.getSingletonFactory(o),t.exports=n.default},{48:48}],162:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(177)),a=r(e(48));function o(){var o=void 0;function t(e){var t=[];if(!e||!o||"function"!=typeof o.fetchAll)return t;for(var n=o.fetchAll(e),r=void 0,i=0,a=n.length;i<a;i++)(r=s(n[i]))&&t.push(r);return t}function s(e){if(!e)return null;var t=new i.default(e);return e.hasOwnProperty("_incomplete")&&(t.isComplete=!e._incomplete),t}return{getBox:function(e){return e&&o&&o.boxes&&0!==o.boxes.length&&"function"==typeof o.fetch?s(o.fetch(e)):null},getBoxes:t,setData:function(e){o=e},getLastBox:function(){if(!o||!o.boxes||!o.boxes.length)return null;var e=t(o.boxes[o.boxes.length-1].type);return 0<e.length?e[e.length-1]:null}}}o.__dashjs_factory_name="IsoFile",n.default=a.default.getClassFactory(o),t.exports=n.default},{177:177,48:48}],163:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(107));function o(e){var r=(e=e||{}).timelineConverter,i=e.streamProcessor;return{getLiveEdge:function(){!function(){if(!(r&&r.hasOwnProperty("getExpectedLiveEdge")&&i&&i.hasOwnProperty("getRepresentationInfo")))throw new Error(a.default.MISSING_CONFIG_ERROR)}();var e=i.getRepresentationInfo(),t=e.DVRWindow?e.DVRWindow.end:0,n=t;return e.useCalculatedLiveEdgeTime&&(n=r.getExpectedLiveEdge(),r.setClientTimeOffset(n-t)),n},reset:function(){i=r=null}}}o.__dashjs_factory_name="LiveEdgeFinder",n.default=i.default.getClassFactory(o),t.exports=n.default},{107:107,48:48}],164:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(10));function o(){return{areEqual:function(e,t){return(0,a.default)(e,t)}}}o.__dashjs_factory_name="ObjectUtils",n.default=i.default.getSingletonFactory(o),t.exports=n.default},{10:10,48:48}],165:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){return{modifyRequestURL:function(e){return e},modifyRequestHeader:function(e){return e}}}o.__dashjs_factory_name="RequestModifier",n.default=a.default.getSingletonFactory(o),t.exports=n.default},{48:48}],166:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkParameterType=function(e,t){if(typeof e!==t)throw a.default.BAD_ARGUMENT_ERROR},n.checkInteger=function(e){if(null===e||isNaN(e)||e%1!=0)throw a.default.BAD_ARGUMENT_ERROR+" : argument is not an integer"},n.checkRange=function(e,t,n){if(e<t||n<e)throw a.default.BAD_ARGUMENT_ERROR+" : argument out of range"},n.checkIsVideoOrAudioType=function(e){if("string"!=typeof e||e!==a.default.AUDIO&&e!==a.default.VIDEO)throw a.default.BAD_ARGUMENT_ERROR};var r,i=e(107),a=(r=i)&&r.__esModule?r:{default:r}},{107:107}],167:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(46)),o=r(e(47)),A=r(e(55)),b=e(15);function s(){var e=this.context,E=(0,o.default)(e).getInstance(),t=void 0,T=void 0,y=0;return t={parse:function(e,t,n,r,i){var a="",o=[],s=void 0,u=void 0,l=void 0,f={},d={},c="",h="",p={onOpenTag:function(e,t,n){if("image"===t&&"http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt"===e){if(!n[" imagetype"]||"PNG"!==n[" imagetype"].value)return void T.warn("smpte-tt imagetype != PNG. Discarded");c=n["http://www.w3.org/XML/1998/namespace id"].value}},onCloseTag:function(){c&&(d[c]=h.trim()),c=h=""},onText:function(e){c&&(h+=e)}};if(!e)throw a="no ttml data to parse",new Error(a);f.data=e,E.trigger(A.default.TTML_TO_PARSE,f);var g=(0,b.fromXML)(f.data,function(e){a=e},p);E.trigger(A.default.TTML_PARSED,{ttmlString:f.data,ttmlDoc:g});var m,_=g.getMediaTimeEvents();for(l=0;l<_.length;l++){var v=(0,b.generateISD)(g,_[l],function(e){a=e});v.contents.some(function(e){return e.contents.length})&&(s=_[l]+t<n?n:_[l]+t)<(u=_[l+1]+t>r?r:_[l+1]+t)&&o.push({start:s,end:u,type:"html",cueID:(void 0,m="cue_TTML_"+y,y++,m),isd:v,images:i,embeddedImages:d})}if(""!==a)throw T.error(a),new Error(a);return o}},T=(0,a.default)(e).getInstance().getLogger(t),t}s.__dashjs_factory_name="TTMLParser",n.default=i.default.getSingletonFactory(s),t.exports=n.default},{15:15,46:46,47:47,48:48,55:55}],168:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){function e(t,e){try{return new window.URL(t,e).toString()}catch(e){return t}}function t(e,t){var n=s;if(!t)return e;if(!f(e))return e;d(e)&&(n=u),c(e)&&(n=l);var r=n(t),i="/"!==r.charAt(r.length-1)&&"/"!==e.charAt(0)?"/":"";return[r,e].join(i)}var n=void 0,r=/^[a-z][a-z0-9+\-.]*:/i,i=/^https?:\/\//i,a=/^https:\/\//i,o=/^([a-z][a-z0-9+\-.]*:\/\/[^\/]+)\/?/i;function s(e){var t=e.indexOf("/"),n=e.lastIndexOf("/");return-1!==t?n===t+1?e:(-1!==e.indexOf("?")&&(e=e.substring(0,e.indexOf("?"))),e.substring(0,n+1)):""}function u(e){var t=e.match(o);return t?t[1]:""}function l(e){var t=e.match(r);return t?t[0]:""}function f(e){return!r.test(e)}function d(e){return f(e)&&"/"===e.charAt(0)}function c(e){return 0===e.indexOf("//")}return function(){try{new window.URL("x","http://y");n=e}catch(e){}finally{n=n||t}}(),{parseBaseUrl:s,parseOrigin:u,parseScheme:l,isRelative:f,isPathAbsolute:d,isSchemeRelative:c,isHTTPURL:function(e){return i.test(e)},isHTTPS:function(e){return a.test(e)},resolve:function(e,t){return n(e,t)}}}o.__dashjs_factory_name="URLUtils",n.default=a.default.getSingletonFactory(o),t.exports=n.default},{48:48}],169:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(46));function o(){var e=this.context,t=void 0,c=void 0,h=void 0,p=void 0,g=void 0,r=void 0;function m(e){var t=e.split(":"),n=t.length-1;return e=60*parseInt(t[n-1],10)+parseFloat(t[n]),2==n&&(e+=3600*parseInt(t[0],10)),e}function _(e){var t=e.split(p),n=t[1].split(r);return n.shift(),t[1]=n[0],n.shift(),{cuePoints:t,styles:function(e){var n={};return e.forEach(function(e){if(1<e.split(/:/).length){var t=e.split(/:/)[1];t&&-1!=t.search(/%/)&&(t=parseInt(t.replace(/%/,""),10)),(e.match(/align/)||e.match(/A/))&&(n.align=t),(e.match(/line/)||e.match(/L/))&&(n.line=t),(e.match(/position/)||e.match(/P/))&&(n.position=t),(e.match(/size/)||e.match(/S/))&&(n.size=t)}}),n}(n)}}function v(e,t){for(var n,r=t,i="",a="";""!==e[r]&&r<e.length;)r++;if(1<(n=r-t))for(var o=0;o<n;o++){if((a=e[t+o]).match(p)){i="";break}i+=a,o!==n-1&&(i+="\n")}else(a=e[t]).match(p)||(i=a);return i}return t={parse:function(e){var t,n=[],r=void 0;if(!e)return n;t=(e=e.split(h)).length,r=-1;for(var i=0;i<t;i++){var a=e[i];if(0<a.length&&"WEBVTT"!==a&&a.match(p)){var o=_(a),s=o.cuePoints,u=o.styles,l=v(e,i+1),f=m(s[0].replace(g,"")),d=m(s[1].replace(g,""));!isNaN(f)&&!isNaN(d)&&r<=f&&f<d?""!==l?(r=f,n.push({start:f,end:d,data:l,styles:u})):c.error("Skipping cue due to empty/malformed cue text"):c.error("Skipping cue due to incorrect cue timing")}}return n}},c=(0,a.default)(e).getInstance().getLogger(t),h=/(?:\r\n|\r|\n)/gm,p=/-->/,g=/(^[\s]+|[\s]+$)/g,r=/\s\b/g,t}o.__dashjs_factory_name="VTTParser",n.default=i.default.getSingletonFactory(o),t.exports=n.default},{46:46,48:48}],170:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){var r=(e=e||{}).blacklistController;return{select:function(e){var n=0,t=void 0;return e&&e.some(function(e,t){return n=t,!r.contains(e.serviceLocation)})&&(t=e[n]),t}}}o.__dashjs_factory_name="BasicSelector",n.default=a.default.getClassFactory(o),t.exports=n.default},{48:48}],171:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){var n=(e=e||{}).blacklistController;return{select:function(e){return e&&function(e){var t=0,n=[],r=0,i=void 0,a=void 0;if((a=e.sort(function(e,t){var n=e.dvb_priority-t.dvb_priority;return isNaN(n)?0:n}).filter(function(e,t,n){return!t||n[0].dvb_priority&&e.dvb_priority&&n[0].dvb_priority===e.dvb_priority})).length)return 1<a.length&&(a.forEach(function(e){t+=e.dvb_weight,n.push(t)}),i=Math.floor(Math.random()*(t-1)),n.every(function(e,t){return r=t,!(i<e)})),a[r]}(function(e){var t=[];return e.filter(function(e){return!n.contains(e.serviceLocation)||(e.dvb_priority&&t.push(e.dvb_priority),!1)}).filter(function(e){return!t.length||!e.dvb_priority||-1===t.indexOf(e.dvb_priority)})}(e))}}}o.__dashjs_factory_name="DVBSelector",n.default=a.default.getClassFactory(o),t.exports=n.default},{48:48}],172:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mediaType=null,this.bitrate=null,this.width=null,this.height=null,this.scanType=null,this.qualityIndex=NaN},t.exports=n.default},{}],173:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=t||null,this.message=n||null,this.data=r||null},t.exports=n.default},{}],174:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.streamId=null,this.mediaInfo=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representationId=null,this.endFragment=null},t.exports=n.default},{}],175:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.action=r.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer",this.representationId=null}r.ACTION_DOWNLOAD="download",r.ACTION_COMPLETE="complete",n.default=r,t.exports=n.default},{}],176:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(175),a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,((r=i)&&r.__esModule?r:{default:r}).default),o);function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.url=e||null,this.checkForExistenceOnly=!0}n.default=a,t.exports=n.default},{175:175}],177:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"getChildBox",value:function(e){for(var t=0;t<this.boxes.length;t++)if(this.boxes[t].type===e)return this.boxes[t]}},{key:"getChildBoxes",value:function(e){for(var t=[],n=0;n<this.boxes.length;n++)this.boxes[n].type===e&&t.push(this.boxes[n]);return t}}]),a);function a(e){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.offset=e._offset,this.type=e.type,this.size=e.size,this.boxes=[],e.boxes)for(var t=0;t<e.boxes.length;t++)this.boxes.push(new a(e.boxes[t]));switch(this.isComplete=!0,e.type){case"sidx":if(this.timescale=e.timescale,this.earliest_presentation_time=e.earliest_presentation_time,this.first_offset=e.first_offset,this.references=e.references,e.references){this.references=[];for(t=0;t<e.references.length;t++){var n={reference_type:e.references[t].reference_type,referenced_size:e.references[t].referenced_size,subsegment_duration:e.references[t].subsegment_duration};this.references.push(n)}}break;case"emsg":this.id=e.id,this.value=e.value,this.timescale=e.timescale,this.scheme_id_uri=e.scheme_id_uri,this.presentation_time_delta=1===e.version?e.presentation_time:e.presentation_time_delta,this.event_duration=e.event_duration,this.message_data=e.message_data;break;case"mdhd":this.timescale=e.timescale;break;case"mfhd":this.sequence_number=e.sequence_number;break;case"subs":this.entry_count=e.entry_count,this.entries=e.entries;break;case"tfhd":this.base_data_offset=e.base_data_offset,this.sample_description_index=e.sample_description_index,this.default_sample_duration=e.default_sample_duration,this.default_sample_size=e.default_sample_size,this.default_sample_flags=e.default_sample_flags,this.flags=e.flags;break;case"tfdt":this.version=e.version,this.baseMediaDecodeTime=e.baseMediaDecodeTime,this.flags=e.flags;break;case"trun":if(this.sample_count=e.sample_count,this.first_sample_flags=e.first_sample_flags,this.data_offset=e.data_offset,this.flags=e.flags,this.samples=e.samples,e.samples){this.samples=[];t=0;for(var r=e.samples.length;t<r;t++){var i={sample_size:e.samples[t].sample_size,sample_duration:e.samples[t].sample_duration,sample_composition_time_offset:e.samples[t].sample_composition_time_offset};this.samples.push(i)}}}}n.default=i,t.exports=n.default},{}],178:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastCompletedOffset=t,this.found=n,this.size=r},t.exports=n.default},{}],179:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TcpList=[],this.HttpList=[],this.RepSwitchList=[],this.BufferLevel=[],this.BufferState=[],this.PlayList=[],this.DroppedFrames=[],this.SchedulingInfo=[],this.DVRInfo=[],this.ManifestUpdate=[],this.RequestsQueue=null,this.DVBErrors=[]},t.exports=n.default},{}],180:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(e){return e&&e.__esModule?e:{default:e}}var i=r(e(107)),a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,r(e(175)).default),o);function o(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.url=e||null,this.type=t||null,this.mediaType=i.default.STREAM,this.responseType=""}n.default=a,t.exports=n.default},{107:107,175:175}],181:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.captionData=null,this.label=null,this.lang=null,this.defaultTrack=!1,this.kind=null,this.isFragmented=!1,this.isEmbedded=!1},t.exports=n.default},{}],182:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=null,this.width=null,this.height=null,this.x=null,this.y=null},t.exports=n.default},{}],183:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.bitrate=0,this.width=0,this.height=0,this.tilesHor=0,this.tilesVert=0,this.widthPerTile=0,this.heightPerTile=0,this.startNumber=0,this.segmentDuration=0,this.timescale=0,this.templateUrl="",this.id=""},t.exports=n.default},{}],184:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null,this.r=null},t.exports=n.default},{}],185:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=null,this.level=null},t.exports=n.default},{}],186:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(112),a=(r=i)&&r.__esModule?r:{default:r};n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.target=null,this.state=a.default.BUFFER_EMPTY},t.exports=n.default},{112:112}],187:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.time=null,this.range=null,this.manifestInfo=null},t.exports=n.default},{}],188:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.time=null,this.droppedFrames=null},t.exports=n.default},{}],189:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});function i(){r(this,i),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this._stream=null,this._tfinish=null,this._mediaduration=null,this._responseHeaders=null,this._serviceLocation=null}i.GET="GET",i.HEAD="HEAD",i.MPD_TYPE="MPD",i.XLINK_EXPANSION_TYPE="XLinkExpansion",i.INIT_SEGMENT_TYPE="InitializationSegment",i.INDEX_SEGMENT_TYPE="IndexSegment",i.MEDIA_SEGMENT_TYPE="MediaSegment",i.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",i.OTHER_TYPE="other",n.HTTPRequest=i,n.HTTPRequestTrace=function e(){r(this,e),this.s=null,this.d=null,this.b=[]}},{}],190:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});n.ManifestUpdate=function e(){r(this,e),this.mediaType=null,this.type=null,this.requestTime=null,this.fetchTime=null,this.availabilityStartTime=null,this.presentationStartTime=0,this.clientTimeOffset=0,this.currentTime=null,this.buffered=null,this.latency=0,this.streamInfo=[],this.representationInfo=[]},n.ManifestUpdateStreamInfo=function e(){r(this,e),this.id=null,this.index=null,this.start=null,this.duration=null},n.ManifestUpdateRepresentationInfo=function e(){r(this,e),this.id=null,this.index=null,this.mediaType=null,this.streamIndex=null,this.presentationTimeOffset=null,this.startNumber=null,this.fragmentInfoType=null}},{}],191:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});function i(){r(this,i),this.start=null,this.mstart=null,this.starttype=null,this.trace=[]}i.INITIAL_PLAYOUT_START_REASON="initial_playout",i.SEEK_START_REASON="seek",i.RESUME_FROM_PAUSE_START_REASON="resume",i.METRICS_COLLECTION_START_REASON="metrics_collection_start";function a(){r(this,a),this.representationid=null,this.subreplevel=null,this.start=null,this.mstart=null,this.duration=null,this.playbackspeed=null,this.stopreason=null}a.REPRESENTATION_SWITCH_STOP_REASON="representation_switch",a.REBUFFERING_REASON="rebuffering",a.USER_REQUEST_STOP_REASON="user_request",a.END_OF_PERIOD_STOP_REASON="end_of_period",a.END_OF_CONTENT_STOP_REASON="end_of_content",a.METRICS_COLLECTION_STOP_REASON="metrics_collection_end",a.FAILURE_STOP_REASON="failure",n.PlayList=i,n.PlayListTrace=a},{}],192:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=null,this.mt=null,this.to=null,this.lto=null},t.exports=n.default},{}],193:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadingRequests=[],this.executedRequests=[]},t.exports=n.default},{}],194:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mediaType=null,this.t=null,this.type=null,this.startTime=null,this.availabilityStartTime=null,this.duration=null,this.quality=null,this.range=null,this.state=null},t.exports=n.default},{}]},{},[4]);
3
 
4
 
5
  /*jslint browser: true, for: true */
@@ -49,6 +49,7 @@
49
  desktopSafari = brwsr.safari && support.dataload, // exclude IEMobile
50
  mediaPlayer,
51
  videoTag,
 
52
  handleError = function (errorCode, src, url) {
53
  var errobj = {code: errorCode};
54
 
@@ -276,9 +277,6 @@
276
  videoTag = common.createElement("video", {
277
  "class": "fp-engine " + engineName + "-engine"
278
  });
279
- if (support.mutedAutoplay && !conf.splash && autoplay) {
280
- videoTag.muted = true;
281
- }
282
 
283
  Object.keys(EVENTS).forEach(function (key) {
284
  var flow = EVENTS[key],
@@ -472,6 +470,8 @@
472
  fperr,
473
  errobj;
474
 
 
 
475
  switch (key) {
476
  case "MANIFEST_LOADED":
477
  if (brwsr.chrome && videoDashConf && videoDashConf.protectionLevel) {
@@ -498,9 +498,19 @@
498
  case "PLAYBACK_NOT_ALLOWED":
499
  if (!conf.mutedAutoplay) throw new Error('Unable to autoplay');
500
  player.debug('Play errored, trying muted', e);
501
- player.mute(true, true);
502
- videoTag.volume = 0;
503
- player.play();
 
 
 
 
 
 
 
 
 
 
504
  break;
505
  case "ERROR":
506
  // TODO: handle different e.error.code values
@@ -522,8 +532,21 @@
522
  // TODO: But when you try to resume the video it still won't work, unless you do it 10 times.
523
  });
524
  }
525
- break;
526
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
527
  }
528
 
529
  if (expose) {
@@ -576,6 +599,21 @@
576
  }
577
  },
578
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
  speed: function (val) {
580
  videoTag.playbackRate = val;
581
  // see ratechange/speed event
1
  /*! v3.0.0-b0f46e83, 2019-06-29T00:07:23Z */
2
+ !function a(o,s,u){function l(t,e){if(!s[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(f)return f(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[t]={exports:{}};o[t][0].call(i.exports,function(e){return l(o[t][1][e]||e)},i,i.exports,a,o,s,u)}return s[t].exports}for(var f="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(e,t,n){"use strict";var o,u,r,i={encode:function(e){for(var t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):(r<2048?t.push(192|r>>6):(r<65536?t.push(224|r>>12):(t.push(240|r>>18),t.push(128|63&r>>12)),t.push(128|63&r>>6)),t.push(128|63&r))}return t},decode:function(e){for(var t=[],n=0;n<e.length;){var r=e[n++];r<128||(r<224?r=(31&r)<<6:(r<240?r=(15&r)<<12:(r=(7&r)<<18,r|=(63&e[n++])<<12),r|=(63&e[n++])<<6),r|=63&e[n++]),t.push(String.fromCharCode(r))}return t.join("")}},l={};function f(e){for(var t=0,n=[],r=0|e.length/3;0<r--;){var i=(e[t]<<16)+(e[t+1]<<8)+e[t+2];t+=3,n.push(o.charAt(63&i>>18)),n.push(o.charAt(63&i>>12)),n.push(o.charAt(63&i>>6)),n.push(o.charAt(63&i))}if(2==e.length-t){i=(e[t]<<16)+(e[t+1]<<8);n.push(o.charAt(63&i>>18)),n.push(o.charAt(63&i>>12)),n.push(o.charAt(63&i>>6)),n.push("=")}else if(1==e.length-t){i=e[t]<<16;n.push(o.charAt(63&i>>18)),n.push(o.charAt(63&i>>12)),n.push("==")}return n.join("")}function d(e){for(var t=0,n=[],r=0|e.length/4;0<r--;){var i=(u[e.charCodeAt(t)]<<18)+(u[e.charCodeAt(t+1)]<<12)+(u[e.charCodeAt(t+2)]<<6)+u[e.charCodeAt(t+3)];n.push(255&i>>16),n.push(255&i>>8),n.push(255&i),t+=4}return n&&("="==e.charAt(t-2)?(n.pop(),n.pop()):"="==e.charAt(t-1)&&n.pop()),n}o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(){for(var e=[],t=0;t<o.length;++t)e[o.charCodeAt(t)]=t;return e["=".charCodeAt(0)]=0,e}(),r={encode:function(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t},decode:function(e){for(var t=0;t<s.length;++t)a[t]=String.fromCharCode(a[t]);return a.join("")}},l.decodeArray=function(e){var t=d(e);return new Uint8Array(t)},l.encodeASCII=function(e){var t=r.encode(e);return f(t)},l.decodeASCII=function(e){var t=d(e);return r.decode(t)},l.encode=function(e){var t=i.encode(e);return f(t)},l.decode=function(e){var t=d(e);return i.decode(t)},void 0!==n&&(n.decode=l.decode,n.decodeArray=l.decodeArray,n.encode=l.encode,n.encodeASCII=l.encodeASCII)},{}],2:[function(e,t,n){"use strict";!function(e){function s(e){var t=e;return n.hasOwnProperty(e)&&(t=n[e]),String.fromCharCode(t)}function u(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toString(16));return t}function o(e,t,n,r,i){this.foreground=e||"white",this.underline=t||!1,this.italics=n||!1,this.background=r||"black",this.flash=i||!1}var n={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},a={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},l={17:2,18:4,21:6,22:8,23:10,19:13,20:15},f={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},d={25:2,26:4,29:6,30:8,31:10,27:13,28:15},c=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],h={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(e){this.time=e},log:function(e,t){var n=this.verboseFilter[e];this.verboseLevel>=n&&console.log(this.time+" ["+e+"] "+t)}};o.prototype={reset:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:function(e){for(var t=["foreground","underline","italics","background","flash"],n=0;n<t.length;n++){var r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}},isDefault:function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},equals:function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},copy:function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},toString:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};function t(e,t,n,r,i,a){this.uchar=e||" ",this.penState=new o(t,n,r,i,a)}t.prototype={reset:function(){this.uchar=" ",this.penState.reset()},setChar:function(e,t){this.uchar=e,this.penState.copy(t)},setPenState:function(e){this.penState.copy(e)},equals:function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},copy:function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},isEmpty:function(){return" "===this.uchar&&this.penState.isDefault()}};function r(){this.chars=[];for(var e=0;e<32;e++)this.chars.push(new t);this.pos=0,this.currPenState=new o}r.prototype={equals:function(e){for(var t=!0,n=0;n<32;n++)if(!this.chars[n].equals(e.chars[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<32;t++)this.chars[t].copy(e.chars[t])},isEmpty:function(){for(var e=!0,t=0;t<32;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},setCursor:function(e){this.pos!==e&&(this.pos=e),this.pos<0?(h.log("ERROR","Negative cursor position "+this.pos),this.pos=0):32<this.pos&&(h.log("ERROR","Too large cursor position "+this.pos),this.pos=32)},moveCursor:function(e){var t=this.pos+e;if(1<e)for(var n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)},backSpace:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:function(e){144<=e&&this.backSpace();var t=s(e);32<=this.pos?h.log("ERROR","Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))},clearFromPos:function(e){var t;for(t=e;t<32;t++)this.chars[t].reset()},clear:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:function(){this.clearFromPos(this.pos)},getTextString:function(){for(var e=[],t=!0,n=0;n<32;n++){var r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")},setPenStyles:function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}};function i(){this.rows=[];for(var e=0;e<15;e++)this.rows.push(new r);this.currRow=14,this.nrRollUpRows=null,this.reset()}i.prototype={reset:function(){for(var e=0;e<15;e++)this.rows[e].clear();this.currRow=14},equals:function(e){for(var t=!0,n=0;n<15;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<15;t++)this.rows[t].copy(e.rows[t])},isEmpty:function(){for(var e=!0,t=0;t<15;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},backSpace:function(){this.rows[this.currRow].backSpace()},clearToEndOfRow:function(){this.rows[this.currRow].clearToEndOfRow()},insertChar:function(e){this.rows[this.currRow].insertChar(e)},setPen:function(e){this.rows[this.currRow].setPenStyles(e)},moveCursor:function(e){this.rows[this.currRow].moveCursor(e)},setCursor:function(e){h.log("INFO","setCursor: "+e),this.rows[this.currRow].setCursor(e)},setPAC:function(e){h.log("INFO","pacData = "+JSON.stringify(e));var t=e.row-1;this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.currRow=t;var n=this.rows[this.currRow];if(null!==e.indent){var r=e.indent,i=Math.max(r-1,0);n.setCursor(e.indent),e.color=n.chars[i].penState.foreground}var a={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(a)},setBkgData:function(e){h.log("INFO","bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)},setRollUpRows:function(e){this.nrRollUpRows=e},rollUp:function(){if(null!==this.nrRollUpRows){h.log("TEXT",this.getDisplayText());var e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),h.log("INFO","Rolling up")}else h.log("DEBUG","roll_up but nrRollUpRows not set yet")},getDisplayText:function(e){e=e||!1;for(var t=[],n="",r=-1,i=0;i<15;i++){var a=this.rows[i].getTextString();a&&(r=i+1,e?t.push("Row "+r+': "'+a+'"'):t.push(a.trim()))}return 0<t.length&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n},getTextAndFormat:function(){return this.rows}};function p(e,t){this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new i,this.nonDisplayedMemory=new i,this.lastOutputScreen=new i,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}p.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(e){this.outputFilter=e},setPAC:function(e){this.writeScreen.setPAC(e)},setBkgData:function(e){this.writeScreen.setBkgData(e)},setMode:function(e){e!==this.mode&&(this.mode=e,h.log("INFO","MODE="+e),"MODE_POP-ON"==this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},insertChars:function(e){for(var t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";h.log("INFO",n+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(h.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){h.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){h.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){h.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(e){h.log("INFO","RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},cc_FON:function(){h.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){h.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){h.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){h.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){h.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){h.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){h.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(h.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,h.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(e){h.log("INFO","TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},cc_MIDROW:function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=46<=e,t.italics)t.foreground="white";else{var n=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][n]}h.log("INFO","MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},outputDataUpdate:function(){var e=h.time;null!==e&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(e,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}};function g(e,t,n){this.field=e||1,this.outputs=[t,n],this.channels=[new p(1,t),new p(2,n)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}}g.prototype={getHandler:function(e){return this.channels[e].getHandler()},setHandler:function(e,t){this.channels[e].setHandler(t)},addData:function(e,t){var n,r,i,a=!1;this.lastTime=e,h.setTime(e);for(var o=0;o<t.length;o+=2)if(r=127&t[o],i=127&t[o+1],16<=r&&r<=31&&r===this.lastCmdA&&i===this.lastCmdB)this.lastCmdA=null,this.lastCmdB=null,h.log("DEBUG","Repeated command ("+u([r,i])+") is dropped");else if(0!=r||0!=i){if(h.log("DATA","["+u([t[o],t[o+1]])+"] -> ("+u([r,i])+")"),!(n=(n=(n=(n=this.parseCmd(r,i))||this.parseMidrow(r,i))||this.parsePAC(r,i))||this.parseBackgroundAttributes(r,i)))if(a=this.parseChars(r,i))if(this.currChNr&&0<=this.currChNr)this.channels[this.currChNr-1].insertChars(a);else h.log("WARNING","No channel found yet. TEXT-MODE?");n?this.dataCounters.cmd+=2:a?this.dataCounters.char+=2:(this.dataCounters.other+=2,h.log("WARNING","Couldn't parse cleaned data "+u([r,i])+" orig: "+u([t[o],t[o+1]])))}else this.dataCounters.padding+=2},parseCmd:function(e,t){var n=null;if(!((20===e||21===e||28===e||29===e)&&32<=t&&t<=47)&&!((23===e||31===e)&&33<=t&&t<=35))return!1;n=20===e||21===e||23===e?1:2;var r=this.channels[n-1];return 20===e||21===e||28===e||29===e?32===t?r.cc_RCL():33===t?r.cc_BS():34===t?r.cc_AOF():35===t?r.cc_AON():36===t?r.cc_DER():37===t?r.cc_RU(2):38===t?r.cc_RU(3):39===t?r.cc_RU(4):40===t?r.cc_FON():41===t?r.cc_RDC():42===t?r.cc_TR():43===t?r.cc_RTD():44===t?r.cc_EDM():45===t?r.cc_CR():46===t?r.cc_ENM():47===t&&r.cc_EOC():r.cc_TO(t-32),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},parseMidrow:function(e,t){var n=null;if((17===e||25===e)&&32<=t&&t<=47){if((n=17===e?1:2)!==this.currChNr)return h.log("ERROR","Mismatch channel in midrow parsing"),!1;var r=this.channels[n-1];return r.insertChars([32]),r.cc_MIDROW(t),h.log("DEBUG","MIDROW ("+u([e,t])+")"),this.lastCmdA=e,this.lastCmdB=t,!0}return!1},parsePAC:function(e,t){var n,r=null;if(!((17<=e&&e<=23||25<=e&&e<=31)&&64<=t&&t<=127)&&!((16===e||24===e)&&64<=t&&t<=95))return!1;n=e<=23?1:2,r=64<=t&&t<=95?1==n?a[e]:f[e]:1==n?l[e]:d[e];var i=this.interpretPAC(r,t);return this.channels[n-1].setPAC(i),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},interpretPAC:function(e,t){var n=t,r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=95<t?t-96:t-64,r.underline=1==(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r},parseChars:function(e,t){var n=null,r=null,i=null;if(17<=(i=25<=e?(n=2,e-8):(n=1,e))&&i<=19){var a=t;a=17===i?t+80:18===i?t+112:t+144,h.log("INFO","Special char '"+s(a)+"' in channel "+n),r=[a],this.lastCmdA=e,this.lastCmdB=t}else 32<=e&&e<=127&&(r=0===t?[e]:[e,t],this.lastCmdA=null,this.lastCmdB=null);if(r){var o=u(r);h.log("DEBUG","Char codes = "+o.join(","))}return r},parseBackgroundAttributes:function(e,t){var n,r,i;return((16===e||24===e)&&32<=t&&t<=47||(23===e||31===e)&&45<=t&&t<=47)&&(n={},16===e||24===e?(r=Math.floor((t-32)/2),n.background=c[r],t%2==1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0)),i=e<24?1:2,this.channels[i-1].setBkgData(n),this.lastCmdA=e,this.lastCmdB=t,!0)},reset:function(){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].reset();this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:function(e){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].cueSplitAtTime(e)}};e.logger=h,e.PenState=o,e.CaptionScreen=i,e.Cea608Parser=g,e.findCea608Nalus=function(e,t,n){for(var r=0,i=t,a=[],o=function(e,t,n,r){if(4!==e||t<8)return null;var i=n.getUint8(r),a=n.getUint16(r+1),o=n.getUint32(r+3),s=n.getUint8(r+7);return 181==i&&49==a&&1195456820==o&&3==s};i<t+n;){if(r=e.getUint32(i),6===(31&e.getUint8(i+4)))for(var s=i+5,u=-1;s<i+4+r-1;){u=0;for(var l=255;255===l;)u+=l=e.getUint8(s),s++;var f=0;for(l=255;255===l;)f+=l=e.getUint8(s),s++;o(u,f,e,s)&&a.push([s,f]),s+=f}i+=r+4}return a},e.extractCea608DataFromRange=function(e,t){var n=t[0],r=[[],[]];n+=8;var i=31&e.getUint8(n);n+=2;for(var a=0;a<i;a++){var o=e.getUint8(n),s=4&o,u=3&o;n++;var l=e.getUint8(n);n++;var f=e.getUint8(n);n++,s&&(127&l)+(127&f)!=0&&(0==u?(r[0].push(l),r[0].push(f)):1==u&&(r[1].push(l),r[1].push(f)))}return r}}(void 0===n?(void 0).cea608parser={}:n)},{}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(b){b=b||{},function(){void 0===b.escapeMode&&(b.escapeMode=!0);void 0===b.attributePrefix&&(b.attributePrefix="_");b.arrayAccessForm=b.arrayAccessForm||"none",b.emptyNodeForm=b.emptyNodeForm||"text",void 0===b.enableToStringFunc&&(b.enableToStringFunc=!0);b.arrayAccessFormPaths=b.arrayAccessFormPaths||[],void 0===b.skipEmptyTextNodesForObj&&(b.skipEmptyTextNodesForObj=!0);void 0===b.stripWhitespaces&&(b.stripWhitespaces=!0);b.datetimeAccessFormPaths=b.datetimeAccessFormPaths||[],void 0===b.useDoubleQuotes&&(b.useDoubleQuotes=!1);b.xmlElementsFilter=b.xmlElementsFilter||[],b.jsonPropertiesFilter=b.jsonPropertiesFilter||[],void 0===b.keepCData&&(b.keepCData=!1);void 0===b.ignoreRoot&&(b.ignoreRoot=!1)}();var I={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};function S(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function u(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"):e}function R(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];if("string"==typeof a){if(a==r)break}else if(a instanceof RegExp){if(a.test(r))break}else if("function"==typeof a&&a(t,n,r))break}return i!=e.length}function w(e,t,n){switch(b.arrayAccessForm){case"property":e[t]instanceof Array?e[t+"_asArray"]=e[t]:e[t+"_asArray"]=[e[t]]}!(e[t]instanceof Array)&&0<b.arrayAccessFormPaths.length&&R(b.arrayAccessFormPaths,e,t,n)&&(e[t]=[e[t]])}function D(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),r=t[5].split(".");if(n.setHours(t[3],t[4],r[0]),1<r.length&&n.setMilliseconds(r[1]),t[6]&&t[7]){var i=60*t[6]+Number(t[7]);i=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*i:i),n.setMinutes(n.getMinutes()-i-n.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function N(e,t){if(e.nodeType==I.DOCUMENT_NODE){for(var n=new Object,r=e.childNodes,i=0;i<r.length;i++){if((o=r[i]).nodeType==I.ELEMENT_NODE)if(b.ignoreRoot)n=N(o);else(n={})[s=S(o)]=N(o)}return n}if(e.nodeType==I.ELEMENT_NODE){(n=new Object).__cnt=0;var a=[];for(r=e.childNodes,i=0;i<r.length;i++){var o,s=S(o=r[i]);if(o.nodeType!=I.COMMENT_NODE){var u=t+"."+s;if(E=n,T=o.nodeType,y=s,A=u,!(T==I.ELEMENT_NODE&&0<b.xmlElementsFilter.length)||R(b.xmlElementsFilter,E,y,A))if(n.__cnt++,null==n[s]){var l=N(o,u);if("#text"!=s||/[^\s]/.test(l))(f={})[s]=l,a.push(f);n[s]=l,w(n,s,u)}else{null!=n[s]&&(n[s]instanceof Array||(n[s]=[n[s]],w(n,s,u)));var f;l=N(o,u);if("#text"!=s||/[^\s]/.test(l))(f={})[s]=l,a.push(f);n[s][n[s].length]=l}}}n.__children=a;for(var d=S(e),c=0;c<e.attributes.length;c++){var h=e.attributes[c];n.__cnt++;for(var p=h.value,g=0,m=b.matchers.length;g<m;g++){var _=b.matchers[g];_.test(h,d)&&(p=_.converter(h.value))}n[b.attributePrefix+h.name]=p}var v=function(e){return e.prefix}(e);return null!=v&&""!=v&&(n.__cnt++,n.__prefix=v),null!=n["#text"]&&(n.__text=n["#text"],n.__text instanceof Array&&(n.__text=n.__text.join("\n")),b.stripWhitespaces&&(n.__text=n.__text.trim()),delete n["#text"],"property"==b.arrayAccessForm&&delete n["#text_asArray"],n.__text=function(e,t,n){if(0<b.datetimeAccessFormPaths.length){var r=n.split(".#")[0];return R(b.datetimeAccessFormPaths,e,t,r)?D(e):e}return e}(n.__text,s,t+"."+s)),null!=n["#cdata-section"]&&(n.__cdata=n["#cdata-section"],delete n["#cdata-section"],"property"==b.arrayAccessForm&&delete n["#cdata-section_asArray"]),0==n.__cnt&&"text"==b.emptyNodeForm?n="":1==n.__cnt&&null!=n.__text?n=n.__text:1!=n.__cnt||null==n.__cdata||b.keepCData?1<n.__cnt&&null!=n.__text&&b.skipEmptyTextNodesForObj&&(b.stripWhitespaces&&""==n.__text||""==n.__text.trim())&&delete n.__text:n=n.__cdata,delete n.__cnt,!b.enableToStringFunc||null==n.__text&&null==n.__cdata||(n.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),n}if(e.nodeType==I.TEXT_NODE||e.nodeType==I.CDATA_SECTION_NODE)return e.nodeValue;var E,T,y,A}function l(e,t,n,r){var i="<"+(null!=e&&null!=e.__prefix?e.__prefix+":":"")+t;if(null!=n)for(var a=0;a<n.length;a++){var o=n[a],s=e[o];b.escapeMode&&(s=u(s)),i+=" "+o.substr(b.attributePrefix.length)+"=",b.useDoubleQuotes?i+='"'+s+'"':i+="'"+s+"'"}return i+=r?"/>":">"}function f(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function d(e,t){return!!("property"==b.arrayAccessForm&&function(e,t){return-1!==e.indexOf(t,e.length-t.length)}(t.toString(),"_asArray")||0==t.toString().indexOf(b.attributePrefix)||0==t.toString().indexOf("__")||e[t]instanceof Function)}function c(e){var t=0;if(e instanceof Object)for(var n in e)d(e,n)||t++;return t}function h(e){var t=[];if(e instanceof Object)for(var n in e)-1==n.toString().indexOf("__")&&0==n.toString().indexOf(b.attributePrefix)&&t.push(n);return t}function p(e){var t="";return e instanceof Object?t+=function(e){var t="";return null!=e.__cdata&&(t+="<![CDATA["+e.__cdata+"]]>"),null!=e.__text&&(b.escapeMode?t+=u(e.__text):t+=e.__text),t}(e):null!=e&&(b.escapeMode?t+=u(e):t+=e),t}function g(e,t){return""===e?t:e+"."+t}function m(e,t,n,r){var i="";if(0==e.length)i+=l(e,t,n,!0);else for(var a=0;a<e.length;a++)i+=l(e[a],t,h(e[a]),!1),i+=_(e[a],g(r,t)),i+=f(e[a],t);return i}function _(e,t){var n,r,i,a="";if(0<c(e))for(var o in e)if(!d(e,o)&&(""==t||(n=e,i=g(t,r=o),0==b.jsonPropertiesFilter.length||""==i||R(b.jsonPropertiesFilter,n,r,i)))){var s=e[o],u=h(s);if(null==s||null==s)a+=l(s,o,u,!0);else if(s instanceof Object)if(s instanceof Array)a+=m(s,o,u,t);else if(s instanceof Date)a+=l(s,o,u,!1),a+=s.toISOString(),a+=f(s,o);else{0<c(s)||null!=s.__text||null!=s.__cdata?(a+=l(s,o,u,!1),a+=_(s,g(t,o)),a+=f(s,o)):a+=l(s,o,u,!0)}else a+=l(s,o,u,!1),a+=p(s),a+=f(s,o)}return a+=p(e)}this.parseXmlString=function(e){var t;window.ActiveXObject||window;if(void 0===e)return null;if(window.DOMParser){var n=new window.DOMParser;try{0<(t=n.parseFromString(e,"text/xml")).getElementsByTagNameNS("*","parsererror").length&&(t=null)}catch(e){t=null}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e);return t},this.asArray=function(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?D(e):e},this.xml2json=function(e){return N(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null},this.json2xml_str=function(e){return _(e,"")},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return"1.2.0"}},t.exports=n.default},{}],4:[function(u,e,l){(function(e){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(l,"__esModule",{value:!0});var n=t(u(100)),r=t(u(48)),i=t(u(46)),a=u(51),o="undefined"!=typeof window&&window||e,s=o.dashjs;(s=s||(o.dashjs={})).MediaPlayer=n.default,s.FactoryMaker=r.default,s.Debug=i.default,s.Version=(0,a.getVersionString)(),l.default=s,l.MediaPlayer=n.default,l.FactoryMaker=r.default,l.Debug=i.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{100:100,46:46,48:48,51:51}],5:[function(e,t,n){"use strict";n.byteLength=function(e){var t=d(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){for(var t,n=d(e),r=n[0],i=n[1],a=new f(function(e,t,n){return 3*(t+n)/4-n}(0,r,i)),o=0,s=0<i?r-4:r,u=0;u<s;u+=4)t=l[e.charCodeAt(u)]<<18|l[e.charCodeAt(u+1)]<<12|l[e.charCodeAt(u+2)]<<6|l[e.charCodeAt(u+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=255&t;2===i&&(t=l[e.charCodeAt(u)]<<2|l[e.charCodeAt(u+1)]>>4,a[o++]=255&t);1===i&&(t=l[e.charCodeAt(u)]<<10|l[e.charCodeAt(u+1)]<<4|l[e.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=255&t);return a},n.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],a=0,o=n-r;a<o;a+=16383)i.push(u(e,a,o<a+16383?o:a+16383));1==r?(t=e[n-1],i.push(s[t>>2]+s[t<<4&63]+"==")):2==r&&(t=(e[n-2]<<8)+e[n-1],i.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return i.join("")};for(var s=[],l=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i<a;++i)s[i]=r[i],l[r.charCodeAt(i)]=i;function d(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var r,i,a=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(s[(i=r)>>18&63]+s[i>>12&63]+s[i>>6&63]+s[63&i]);return a.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],6:[function(e,t,n){},{}],7:[function(e,t,n){"use strict";var r=e(5),a=e(11);n.Buffer=d,n.SlowBuffer=function(e){+e!=e&&(e=0);return d.alloc(+e)},n.INSPECT_MAX_BYTES=50;var i=2147483647;function o(e){if(i<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=d.prototype,t}function d(e,t,n){if("number"!=typeof e)return s(e,t,n);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}function s(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!d.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=o(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=d.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return d.from(r,t,n);var i=function(e){if(d.isBuffer(e)){var t=0|c(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||U(e.length)?o(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return d.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),o(e<0?0:0|c(e))}function f(e){for(var t=e.length<0?0:0|c(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function c(e){if(i<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=2<arguments.length&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(i)return r?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),U(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=d.from(t,r)),d.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s/=o=2,u/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var f=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===u)return f*o}else-1!==f&&(a-=a-f),f=-1}else for(s<n+u&&(n=s-u),a=n;0<=a;a--){for(var d=!0,c=0;c<u;c++)if(l(e,a+c)!==l(t,c)){d=!1;break}if(d)return a}return-1}function _(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?i<(r=Number(r))&&(r=i):r=i;var a=t.length;a/2<r&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(U(s))return o;e[n+o]=s}return o}function v(e,t,n,r){return x(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,u,l=e[i],f=null,d=239<l?4:223<l?3:191<l?2:1;if(i+d<=n)switch(d){case 1:l<128&&(f=l);break;case 2:128==(192&(a=e[i+1]))&&127<(u=(31&l)<<6|63&a)&&(f=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&2047<(u=(15&l)<<12|(63&a)<<6|63&o)&&(u<55296||57343<u)&&(f=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&65535<(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)&&u<1114112&&(f=u)}null===f?(f=65533,d=1):65535<f&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=d}return function(e){var t=e.length;if(t<=y)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=y));return n}(r)}n.kMaxLength=i,(d.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),d.poolSize=8192,d.from=function(e,t,n){return s(e,t,n)},d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,d.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},d.allocUnsafe=function(e){return l(e)},d.allocUnsafeSlow=function(e){return l(e)},d.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==d.prototype},d.compare=function(e,t){if(F(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(e)||!d.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},d.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var n;if(void 0===t)for(n=t=0;n<e.length;++n)t+=e[n].length;var r=d.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(F(a,Uint8Array)&&(a=d.from(a)),!d.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},d.byteLength=h,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},d.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},d.prototype.toLocaleString=d.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return b(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},d.prototype.compare=function(e,t,n,r,i){if(F(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&n<=t)return 0;if(i<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(u[f]!==l[f]){a=u[f],o=l[f];break}return a<o?-1:o<a?1:0},d.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},d.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},d.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},d.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||i<n)&&(n=i),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var a,o,s,u,l,f,d,c,h,p=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return c=t,h=n,x(P(e,(d=this).length-c),d,c,h);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return v(this,e,t,n);case"base64":return u=this,l=t,f=n,x(L(e),u,l,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=t,s=n,x(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(e,(a=this).length-o),a,o,s);default:if(p)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var y=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function b(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",a=t;a<n;++a)i+=C(e[a]);return i}function S(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,a){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,8),a.write(e,t,n,r,52,8),n+8}d.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=d.prototype,r},d.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},d.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;0<t&&(i*=256);)r+=this[e+--t]*i;return r},d.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return(i*=128)<=r&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=t,i=1,a=this[e+--r];0<r&&(i*=256);)a+=this[e+--r]*i;return(i*=128)<=a&&(a-=Math.pow(2,8*t)),a},d.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||w(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},d.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||w(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;0<=--i&&(a*=256);)this[t+i]=e/a&255;return t+n},d.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;0<=--a&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(!d.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n=n||0,r||0===r||(r=this.length),t>=e.length&&(t=e.length),t=t||0,0<r&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;0<=a;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},d.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(a=t;a<n;++a)this[a]=e;else{var o=d.isBuffer(e)?e:d.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var O=/[^+/0-9A-Za-z-_]/g;function C(e){return e<16?"0"+e.toString(16):e.toString(16)}function P(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if(55295<(n=e.charCodeAt(o))&&n<57344){if(!i){if(56319<n){-1<(t-=3)&&a.push(239,191,189);continue}if(o+1===r){-1<(t-=3)&&a.push(239,191,189);continue}i=n;continue}if(n<56320){-1<(t-=3)&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(t-=3)&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function L(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function x(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function U(e){return e!=e}},{11:11,5:5}],8:[function(e,t,n){var i={parseBuffer:function(e){return new a(e).parse()},addBoxProcessor:function(e,t){"string"==typeof e&&"function"==typeof t&&(o.prototype._boxProcessors[e]=t)},createFile:function(){return new a},createBox:function(e,t,n){var r=o.create(e);return t&&t.append(r,n),r},createFullBox:function(e,t,n){var r=i.createBox(e,t,n);return r.version=0,r.flags=0,r},Utils:{}};i.Utils.dataViewToString=function(e,t){var n=t||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(n).decode(e);var r=[],i=0;if("utf-8"===n)for(;i<e.byteLength;){var a=e.getUint8(i++);a<128||(a<224?a=(31&a)<<6:(a<240?a=(15&a)<<12:(a=(7&a)<<18,a|=(63&e.getUint8(i++))<<12),a|=(63&e.getUint8(i++))<<6),a|=63&e.getUint8(i++)),r.push(String.fromCharCode(a))}else for(;i<e.byteLength;)r.push(String.fromCharCode(e.getUint8(i++)));return r.join("")},i.Utils.utf8ToByteArray=function(e){var t,n;if("undefined"!=typeof TextEncoder)t=(new TextEncoder).encode(e);else for(t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):(r<2048?t.push(192|r>>6):(r<65536?t.push(224|r>>12):(t.push(240|r>>18),t.push(128|63&r>>12)),t.push(128|63&r>>6)),t.push(128|63&r))}return t},i.Utils.appendBox=function(e,t,n){if(t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,-1!==n)if(null!=n){var r,i=-1;if("number"==typeof n)i=n;else{if("string"==typeof n)r=n;else{if("object"!=typeof n||!n.type)return void e.boxes.push(t);r=n.type}for(var a=0;a<e.boxes.length;a++)if(r===e.boxes[a].type){i=a+1;break}}e.boxes.splice(i,0,t)}else e.boxes.push(t)},void 0!==n&&(n.parseBuffer=i.parseBuffer,n.addBoxProcessor=i.addBoxProcessor,n.createFile=i.createFile,n.createBox=i.createBox,n.createFullBox=i.createFullBox,n.Utils=i.Utils),i.Cursor=function(e){this.offset=void 0===e?0:e};var a=function(e){this._cursor=new i.Cursor,this.boxes=[],e&&(this._raw=new DataView(e))};a.prototype.fetch=function(e){var t=this.fetchAll(e,!0);return t.length?t[0]:null},a.prototype.fetchAll=function(e,t){var n=[];return a._sweep.call(this,e,n,t),n},a.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var e=o.parse(this);if(void 0===e.type)break;this.boxes.push(e)}return this},a._sweep=function(e,t,n){for(var r in this.type&&this.type==e&&t.push(this),this.boxes){if(t.length&&n)return;a._sweep.call(this.boxes[r],e,t,n)}},a.prototype.write=function(){var e,t=0;for(e=0;e<this.boxes.length;e++)t+=this.boxes[e].getLength(!1);var n=new Uint8Array(t);for(this._rawo=new DataView(n.buffer),this.bytes=n,e=this._cursor.offset=0;e<this.boxes.length;e++)this.boxes[e].write();return n.buffer},a.prototype.append=function(e,t){i.Utils.appendBox(this,e,t)};var o=function(){this._cursor=new i.Cursor};o.parse=function(e){var t=new o;return t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,t._parseBox(),e._cursor.offset=t._raw.byteOffset+t._raw.byteLength,t},o.create=function(e){var t=new o;return t.type=e,t.boxes=[],t},o.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],o.prototype._boxProcessors={},o.prototype._procField=function(e,t,n){this._parsing?this[e]=this._readField(t,n):this._writeField(t,n,this[e])},o.prototype._procFieldArray=function(e,t,n,r){var i;if(this._parsing)for(this[e]=[],i=0;i<t;i++)this[e][i]=this._readField(n,r);else for(i=0;i<this[e].length;i++)this._writeField(n,r,this[e][i])},o.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},o.prototype._procEntries=function(e,t,n){var r;if(this._parsing)for(this[e]=[],r=0;r<t;r++)this[e].push({}),n.call(this,this[e][r]);else for(r=0;r<t;r++)n.call(this,this[e][r])},o.prototype._procSubEntries=function(e,t,n,r){var i;if(this._parsing)for(e[t]=[],i=0;i<n;i++)e[t].push({}),r.call(this,e[t][i]);else for(i=0;i<n;i++)r.call(this,e[t][i])},o.prototype._procEntryField=function(e,t,n,r){this._parsing?e[t]=this._readField(n,r):this._writeField(n,r,e[t])},o.prototype._procSubBoxes=function(e,t){var n;if(this._parsing)for(this[e]=[],n=0;n<t;n++)this[e].push(o.parse(this));else for(n=0;n<t;n++)this._rawo?this[e][n].write():this.size+=this[e][n].getLength()},o.prototype._readField=function(e,t){switch(e){case"uint":return this._readUint(t);case"int":return this._readInt(t);case"template":return this._readTemplate(t);case"string":return-1===t?this._readTerminatedString():this._readString(t);case"data":return this._readData(t);case"utf8":return this._readUTF8String();default:return-1}},o.prototype._readInt=function(e){var t=null,n=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:t=this._raw.getInt8(n);break;case 16:t=this._raw.getInt16(n);break;case 32:t=this._raw.getInt32(n);break;case 64:var r=this._raw.getInt32(n),i=this._raw.getInt32(4+n);t=r*Math.pow(2,32)+i}return this._cursor.offset+=e>>3,t},o.prototype._readUint=function(e){var t,n,r=null,i=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:r=this._raw.getUint8(i);break;case 16:r=this._raw.getUint16(i);break;case 24:r=((t=this._raw.getUint16(i))<<8)+(n=this._raw.getUint8(2+i));break;case 32:r=this._raw.getUint32(i);break;case 64:t=this._raw.getUint32(i),n=this._raw.getUint32(4+i),r=t*Math.pow(2,32)+n}return this._cursor.offset+=e>>3,r},o.prototype._readString=function(e){for(var t="",n=0;n<e;n++){var r=this._readUint(8);t+=String.fromCharCode(r)}return t},o.prototype._readTemplate=function(e){return this._readUint(e/2)+this._readUint(e/2)/Math.pow(2,e/2)},o.prototype._readTerminatedString=function(){for(var e="";this._cursor.offset-this._offset<this._raw.byteLength;){var t=this._readUint(8);if(0===t)break;e+=String.fromCharCode(t)}return e},o.prototype._readData=function(e){var t=0<e?e:this._raw.byteLength-(this._cursor.offset-this._offset);if(0<t){var n=new Uint8Array(this._raw.buffer,this._cursor.offset,t);return this._cursor.offset+=t,n}return null},o.prototype._readUTF8String=function(){var e=this._raw.byteLength-(this._cursor.offset-this._offset),t=null;return 0<e&&(t=new DataView(this._raw.buffer,this._cursor.offset,e),this._cursor.offset+=e),t?i.Utils.dataViewToString(t):t},o.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset,this._raw.byteLength-this._cursor.offset+8);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type)?this._parseContainerBox():this._data=this._readData())}},o.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},o.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(o.parse(this))},o.prototype.append=function(e,t){i.Utils.appendBox(this,e,t)},o.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var e=0;e<this.boxes.length;e++)this.size+=this.boxes[e].getLength();return this._data&&this._writeData(this._data),this.size},o.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var e=0;e<this.boxes.length;e++)this.boxes[e].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},o.prototype._writeInt=function(e,t){if(this._rawo){var n=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setInt8(n,t);break;case 16:this._rawo.setInt16(n,t);break;case 32:this._rawo.setInt32(n,t);break;case 64:var r=Math.floor(t/Math.pow(2,32)),i=t-r*Math.pow(2,32);this._rawo.setUint32(n,r),this._rawo.setUint32(4+n,i)}this._cursor.offset+=e>>3}else this.size+=e>>3},o.prototype._writeUint=function(e,t){if(this._rawo){var n,r,i=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setUint8(i,t);break;case 16:this._rawo.setUint16(i,t);break;case 24:n=(16776960&t)>>8,r=255&t,this._rawo.setUint16(i,n),this._rawo.setUint8(2+i,r);break;case 32:this._rawo.setUint32(i,t);break;case 64:r=t-(n=Math.floor(t/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(i,n),this._rawo.setUint32(4+i,r)}this._cursor.offset+=e>>3}else this.size+=e>>3},o.prototype._writeString=function(e,t){for(var n=0;n<e;n++)this._writeUint(8,t.charCodeAt(n))},o.prototype._writeTerminatedString=function(e){if(0!==e.length){for(var t=0;t<e.length;t++)this._writeUint(8,e.charCodeAt(t));this._writeUint(8,0)}},o.prototype._writeTemplate=function(e,t){var n=Math.floor(t),r=(t-n)*Math.pow(2,e/2);this._writeUint(e/2,n),this._writeUint(e/2,r)},o.prototype._writeData=function(e){if(e)if(this._rawo){if(e instanceof Array){for(var t=this._cursor.offset-this._rawo.byteOffset,n=0;n<e.length;n++)this._rawo.setInt8(t+n,e[n]);this._cursor.offset+=e.length}e instanceof Uint8Array&&(this._root.bytes.set(e,this._cursor.offset),this._cursor.offset+=e.length)}else this.size+=e.length},o.prototype._writeUTF8String=function(e){var t=i.Utils.utf8ToByteArray(e);if(this._rawo)for(var n=new DataView(this._rawo.buffer,this._cursor.offset,t.length),r=0;r<t.length;r++)n.setUint8(r,t[r]);else this.size+=t.length},o.prototype._writeField=function(e,t,n){switch(e){case"uint":this._writeUint(t,n);break;case"int":this._writeInt(t,n);break;case"template":this._writeTemplate(t,n);break;case"string":-1==t?this._writeTerminatedString(n):this._writeString(t,n);break;case"data":this._writeData(n);break;case"utf8":this._writeUTF8String(n)}},o.prototype._boxProcessors.avc1=o.prototype._boxProcessors.encv=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procField("pre_defined1","uint",16),this._procField("reserved2","uint",16),this._procFieldArray("pre_defined2",3,"uint",32),this._procField("width","uint",16),this._procField("height","uint",16),this._procField("horizresolution","template",32),this._procField("vertresolution","template",32),this._procField("reserved3","uint",32),this._procField("frame_count","uint",16),this._procFieldArray("compressorname",32,"uint",8),this._procField("depth","uint",16),this._procField("pre_defined3","int",16),this._procField("config","data",-1)},o.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},o.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,function(e){this._procEntryField(e,"segment_duration","uint",1===this.version?64:32),this._procEntryField(e,"media_time","int",1===this.version?64:32),this._procEntryField(e,"media_rate_integer","int",16),this._procEntryField(e,"media_rate_fraction","int",16)})},o.prototype._boxProcessors.emsg=function(){this._procFullBox(),1==this.version?(this._procField("timescale","uint",32),this._procField("presentation_time","uint",64),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1)):(this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32)),this._procField("message_data","data",-1)},o.prototype._boxProcessors.free=o.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)},o.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)},o.prototype._boxProcessors.ftyp=o.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);var e=-1;this._parsing&&(e=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",e,"string",4)},o.prototype._boxProcessors.hdlr=function(){this._procFullBox(),this._procField("pre_defined","uint",32),this._procField("handler_type","string",4),this._procFieldArray("reserved",3,"uint",32),this._procField("name","string",-1)},o.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)},o.prototype._boxProcessors.mdhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField("language","uint",16),this._parsing&&(this.language=String.fromCharCode(96+(this.language>>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},o.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},o.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},o.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},o.prototype._boxProcessors.mp4a=o.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},o.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},o.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},o.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},o.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},o.prototype._boxProcessors.sdtp=function(){this._procFullBox();var e=-1;this._parsing&&(e=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",e,"uint",8)},o.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,function(e){this._parsing||(e.reference=(1&e.reference_type)<<31,e.reference|=2147483647&e.referenced_size,e.sap=(1&e.starts_with_SAP)<<31,e.sap|=(3&e.SAP_type)<<28,e.sap|=268435455&e.SAP_delta_time),this._procEntryField(e,"reference","uint",32),this._procEntryField(e,"subsegment_duration","uint",32),this._procEntryField(e,"sap","uint",32),this._parsing&&(e.reference_type=e.reference>>31&1,e.referenced_size=2147483647&e.reference,e.starts_with_SAP=e.sap>>31&1,e.SAP_type=e.sap>>28&7,e.SAP_delta_time=268435455&e.sap)})},o.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},o.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,function(e){this._procEntryField(e,"ranges_count","uint",32),this._procSubEntries(e,"ranges",e.ranges_count,function(e){this._procEntryField(e,"level","uint",8),this._procEntryField(e,"range_size","uint",24)})})},o.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},o.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,function(e){this._procEntryField(e,"sample_delta","uint",32),this._procEntryField(e,"subsample_count","uint",16),this._procSubEntries(e,"subsamples",e.subsample_count,function(e){this._procEntryField(e,"subsample_size","uint",1===this.version?32:16),this._procEntryField(e,"subsample_priority","uint",8),this._procEntryField(e,"discardable","uint",8),this._procEntryField(e,"codec_specific_parameters","uint",32)})})},o.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},o.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},o.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},o.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,function(e){this._procEntryField(e,"time","uint",1===this.version?64:32),this._procEntryField(e,"moof_offset","uint",1===this.version?64:32),this._procEntryField(e,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(e,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(e,"sample_number","uint",8*(this.length_size_of_sample_num+1))})},o.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},o.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},o.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,function(e){256&this.flags&&this._procEntryField(e,"sample_duration","uint",32),512&this.flags&&this._procEntryField(e,"sample_size","uint",32),1024&this.flags&&this._procEntryField(e,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(e,"sample_composition_time_offset",1===this.version?"int":"uint",32)})},o.prototype._boxProcessors["url "]=o.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},o.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},o.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},o.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},o.prototype._boxProcessors.vtte=function(){}},{}],9:[function(e,t,n){var u=Object.create||function(e){function t(){}return t.prototype=e,new t},o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},a=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function r(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=u(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((t.exports=r).EventEmitter=r).prototype._events=void 0,r.prototype._maxListeners=void 0;var i,s=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),i=0===l.x}catch(e){i=!1}function f(e){return void 0===e._maxListeners?r.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,a,o;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]):(a=e._events=u(null),e._eventsCount=0),o){if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),!o.warned&&(i=f(e))&&0<i&&o.length>i){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else o=a[t]=n,++e._eventsCount;return e}function c(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=a.call(c,r);return i.listener=n,r.wrapFn=i}function p(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):m(i,i.length):[]}function g(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}i?Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');s=e}}):r.defaultMaxListeners=s,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},r.prototype.getMaxListeners=function(){return f(this)},r.prototype.emit=function(e,t,n,r){var i,a,o,s,u,l,f="error"===e;if(l=this._events)f=f&&null==l.error;else if(!f)return!1;if(f){if(1<arguments.length&&(i=t),i instanceof Error)throw i;var d=new Error('Unhandled "error" event. ('+i+")");throw d.context=i,d}if(!(a=l[e]))return!1;var c="function"==typeof a;switch(o=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=m(e,r),a=0;a<r;++a)i[a].call(n)}(a,c,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,a=m(e,i),o=0;o<i;++o)a[o].call(n,r)}(a,c,this,t);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var a=e.length,o=m(e,a),s=0;s<a;++s)o[s].call(n,r,i)}(a,c,this,t,n);break;case 4:!function(e,t,n,r,i,a){if(t)e.call(n,r,i,a);else for(var o=e.length,s=m(e,o),u=0;u<o;++u)s[u].call(n,r,i,a)}(a,c,this,t,n,r);break;default:for(s=new Array(o-1),u=1;u<o;u++)s[u-1]=arguments[u];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,a=m(e,i),o=0;o<i;++o)a[o].apply(n,r)}(a,c,this,s)}return!0},r.prototype.on=r.prototype.addListener=function(e,t){return d(this,e,t,!1)},r.prototype.prependListener=function(e,t){return d(this,e,t,!0)},r.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,h(this,e,t)),this},r.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,h(this,e,t)),this},r.prototype.removeListener=function(e,t){var n,r,i,a,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=u(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;0<=a;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),r.removeListener&&this.emit("removeListener",e,o||t)}return this},r.prototype.removeAllListeners=function(e){var t,n,r;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=u(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=u(null):delete n[e]),this;if(0===arguments.length){var i,a=o(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=u(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(r=t.length-1;0<=r;r--)this.removeListener(e,t[r]);return this},r.prototype.listeners=function(e){return p(this,e,!0)},r.prototype.rawListeners=function(e){return p(this,e,!1)},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},r.prototype.listenerCount=g,r.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],10:[function(e,t,n){"use strict";var h=Array.isArray,p=Object.keys,g=Object.prototype.hasOwnProperty;t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,a,o=h(t),s=h(n);if(o&&s){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(o!=s)return!1;var u=t instanceof Date,l=n instanceof Date;if(u!=l)return!1;if(u&&l)return t.getTime()==n.getTime();var f=t instanceof RegExp,d=n instanceof RegExp;if(f!=d)return!1;if(f&&d)return t.toString()==n.toString();var c=p(t);if((i=c.length)!==p(n).length)return!1;for(r=i;0!=r--;)if(!g.call(n,c[r]))return!1;for(r=i;0!=r--;)if(!e(t[a=c[r]],n[a]))return!1;return!0}return t!=t&&n!=n}},{}],11:[function(e,t,n){n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<<s)-1,l=u>>1,f=-7,d=n?i-1:0,c=n?-1:1,h=e[t+d];for(d+=c,a=h&(1<<-f)-1,h>>=-f,f+=s;0<f;a=256*a+e[t+d],d+=c,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=r;0<f;o=256*o+e[t+d],d+=c,f-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=l}return(h?-1:1)*o*Math.pow(2,a-r)},n.write=function(e,t,n,r,i,a){var o,s,u,l=8*a-i-1,f=(1<<l)-1,d=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),2<=(t+=1<=o+d?c/u:c*Math.pow(2,1-d))*u&&(o++,u/=2),f<=o+d?(s=0,o=f):1<=o+d?(s=(t*u-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));8<=i;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;0<l;e[n+h]=255&o,h+=p,o/=256,l-=8);e[n+h-p]|=128*g}},{}],12:[function(e,t,n){function f(e,t,n,r){var i=r&&"seq"===r.timeContainer,a=0;r&&(a=i&&n?n.end:r.begin),t.begin=t.explicit_begin?t.explicit_begin+a:a;var o=t.begin,s=null;for(var u in t.sets)f(e,t.sets[u],s,t),o="seq"===t.timeContainer?t.sets[u].end:Math.max(o,t.sets[u].end),s=t.sets[u];if("contents"in t)for(var l in t.contents)f(e,t.contents[l],s,t),o="seq"===t.timeContainer?t.contents[l].end:Math.max(o,t.contents[l].end),s=t.contents[l];else o=i?t.begin:Number.POSITIVE_INFINITY;null!==t.explicit_end&&null!==t.explicit_dur?t.end=Math.min(t.begin+t.explicit_dur,a+t.explicit_end):null===t.explicit_end&&null!==t.explicit_dur?t.end=t.begin+t.explicit_dur:null!==t.explicit_end&&null===t.explicit_dur?t.end=a+t.explicit_end:t.end=o,delete t.explicit_begin,delete t.explicit_dur,delete t.explicit_end,e._registerEvent(t)}function T(e){this.node=e}function y(){this.events=[],this.head=null,this.body=null}function A(){this.styling=null,this.layout=null}function b(){this.styles={}}function I(){this.id=null,this.styleAttrs=null,this.styleRefs=null}function S(){this.regions={}}function r(e){this.kind=e}function i(e){this.id=e}function a(e){this.regionID=e}function o(e){this.styleAttrs=e}function s(e){this.sets=e}function u(e){this.contents=e}function l(e,t,n){this.explicit_begin=e,this.explicit_end=t,this.explicit_dur=n}function R(){r.call(this,"body")}function w(){r.call(this,"div")}function D(){r.call(this,"p")}function N(){r.call(this,"span")}function d(){r.call(this,"span")}function M(){r.call(this,"br")}function O(){}function C(){}function c(e){return e&&"xml:id"in e.attributes&&e.attributes["xml:id"].value||null}function h(e){return e&&"style"in e.attributes?e.attributes.style.value.split(" "):[]}function p(e,t){var n={};if(null!==e)for(var r in e.attributes){var i=e.attributes[r].uri+" "+e.attributes[r].local,a=G.byQName[i];if(void 0!==a){var o=a.parse(e.attributes[r].value);null!==o?(n[i]=o,a===G.byName.zIndex&&v(t,"zIndex attribute present but not used by IMSC1 since regions do not overlap")):x(t,"Cannot parse styling attribute "+i+" --\x3e "+e.attributes[r].value)}}return n}function g(e,t,n){for(var r in e.attributes)if(e.attributes[r].uri===t&&e.attributes[r].local===n)return e.attributes[r].value;return null}function m(e,t,n){var r,i=null;return null!==(r=/^(\d+(?:\.\d+)?)f$/.exec(n))?null!==t&&(i=parseFloat(r[1])/t):null!==(r=/^(\d+(?:\.\d+)?)t$/.exec(n))?null!==e&&(i=parseFloat(r[1])/e):null!==(r=/^(\d+(?:\.\d+)?)ms$/.exec(n))?i=parseFloat(r[1])/1e3:null!==(r=/^(\d+(?:\.\d+)?)s$/.exec(n))?i=parseFloat(r[1]):null!==(r=/^(\d+(?:\.\d+)?)h$/.exec(n))?i=3600*parseFloat(r[1]):null!==(r=/^(\d+(?:\.\d+)?)m$/.exec(n))?i=60*parseFloat(r[1]):null!==(r=/^(\d{2,}):(\d\d):(\d\d(?:\.\d+)?)$/.exec(n))?i=3600*parseInt(r[1])+60*parseInt(r[2])+parseFloat(r[3]):null!==(r=/^(\d{2,}):(\d\d):(\d\d)\:(\d{2,})$/.exec(n))&&null!==t&&(i=3600*parseInt(r[1])+60*parseInt(r[2])+parseInt(r[3])+(null===r[4]?0:parseInt(r[4])/t)),i}function P(e,t,n){for(;0<t.styleRefs.length;){var r=t.styleRefs.pop();r in e.styles?(P(e,e.styles[r],n),L(e.styles[r].styleAttrs,t.styleAttrs)):x(n,"Non-existant style id referenced")}}function _(e,t,n,r){for(var i=t.length-1;0<=i;i--){var a=t[i];a in e.styles?L(e.styles[a].styleAttrs,n):x(r,"Non-existant style id referenced")}}function L(e,t){for(var n in e)n in t||(t[n]=e[n])}function v(e,t){if(e&&e.warn&&e.warn(t))throw t}function x(e,t){if(e&&e.error&&e.error(t))throw t}function F(e,t){throw e&&e.fatal&&e.fatal(t),t}function E(e,t){for(var n,r=0,i=e.length-1;r<=i;){var a=e[n=Math.floor((r+i)/2)];if(a<t)r=n+1;else{if(!(t<a))return{found:!0,index:n};i=n-1}}return{found:!1,index:r}}var U,B,k,G,j;U=void 0===n?this.imscDoc={}:n,B="undefined"==typeof sax?e(40):sax,k="undefined"==typeof imscNames?e(16):imscNames,G="undefined"==typeof imscStyles?e(17):imscStyles,j="undefined"==typeof imscUtils?e(18):imscUtils,U.fromXML=function(e,h,p){var t=B.parser(!0,{xmlns:!0}),g=[],m=[],_=[],v=0,E=null;t.onclosetag=function(e){if(g[0]instanceof b)for(var t in g[0].styles)P(g[0],g[0].styles[t],h);else if(g[0]instanceof D||g[0]instanceof N){if(1<g[0].contents.length){var n,r=[g[0].contents[0]];for(n=1;n<g[0].contents.length;n++)g[0].contents[n]instanceof d&&r[r.length-1]instanceof d?r[r.length-1].text+=g[0].contents[n].text:r.push(g[0].contents[n]);g[0].contents=r}g[0]instanceof N&&1===g[0].contents.length&&g[0].contents[0]instanceof d&&(g[0].text=g[0].contents[0].text,delete g[0].contents)}else g[0]instanceof T&&(g[0].node.uri===k.ns_tt&&"metadata"===g[0].node.local?v--:0<v&&p&&"onCloseTag"in p&&p.onCloseTag());_.shift(),m.shift(),g.shift()},t.ontext=function(e){if(void 0===g[0]);else if(g[0]instanceof N||g[0]instanceof D){var t=new d;t.initFromText(E,g[0],e,_[0],h),g[0].contents.push(t)}else g[0]instanceof T&&0<v&&p&&"onText"in p&&p.onText(e)},t.onopentag=function(e){var t=e.attributes["xml:space"];t?_.unshift(t.value):0===_.length?_.unshift("default"):_.unshift(_[0]);var n=e.attributes["xml:lang"];if(n?m.unshift(n.value):0===m.length?m.unshift(""):m.unshift(m[0]),e.uri===k.ns_tt)if("tt"===e.local)null!==E&&F(h,"Two <tt> elements at ("+this.line+","+this.column+")"),(E=new y).initFromNode(e,h),g.unshift(E);else if("head"===e.local)g[0]instanceof y||F(h,"Parent of <head> element is not <tt> at ("+this.line+","+this.column+")"),null!==E.head&&F("Second <head> element at ("+this.line+","+this.column+")"),E.head=new A,g.unshift(E.head);else if("styling"===e.local)g[0]instanceof A||F(h,"Parent of <styling> element is not <head> at ("+this.line+","+this.column+")"),null!==E.head.styling&&F("Second <styling> element at ("+this.line+","+this.column+")"),E.head.styling=new b,g.unshift(E.head.styling);else if("style"===e.local){var r;g[0]instanceof b?((r=new I).initFromNode(e,h),r.id?E.head.styling.styles[r.id]=r:x(h,"<style> element missing @id attribute"),g.unshift(r)):g[0]instanceof O?((r=new I).initFromNode(e,h),L(r.styleAttrs,g[0].styleAttrs),g.unshift(r)):F(h,"Parent of <style> element is not <styling> or <region> at ("+this.line+","+this.column+")")}else if("layout"===e.local)g[0]instanceof A||F(h,"Parent of <layout> element is not <head> at "+this.line+","+this.column+")"),null!==E.head.layout&&F(h,"Second <layout> element at "+this.line+","+this.column+")"),E.head.layout=new S,g.unshift(E.head.layout);else if("region"===e.local){g[0]instanceof S||F(h,"Parent of <region> element is not <layout> at "+this.line+","+this.column+")");var i=new O;i.initFromNode(E,e,h),!i.id||i.id in E.head.layout.regions?x(h,"Ignoring <region> with duplicate or missing @id at "+this.line+","+this.column+")"):E.head.layout.regions[i.id]=i,g.unshift(i)}else if("body"===e.local){g[0]instanceof y||F(h,"Parent of <body> element is not <tt> at "+this.line+","+this.column+")"),null!==E.body&&F(h,"Second <body> element at "+this.line+","+this.column+")");var a=new R;a.initFromNode(E,e,h),E.body=a,g.unshift(a)}else if("div"===e.local){g[0]instanceof w||g[0]instanceof R||F(h,"Parent of <div> element is not <body> or <div> at "+this.line+","+this.column+")");var o=new w;o.initFromNode(E,g[0],e,h),g[0].contents.push(o),g.unshift(o)}else if("p"===e.local){g[0]instanceof w||F(h,"Parent of <p> element is not <div> at "+this.line+","+this.column+")");var s=new D;s.initFromNode(E,g[0],e,h),g[0].contents.push(s),g.unshift(s)}else if("span"===e.local){g[0]instanceof N||g[0]instanceof D||F(h,"Parent of <span> element is not <span> or <p> at "+this.line+","+this.column+")");var u=new N;u.initFromNode(E,g[0],e,_[0],h),g[0].contents.push(u),g.unshift(u)}else if("br"===e.local){g[0]instanceof N||g[0]instanceof D||F(h,"Parent of <br> element is not <span> or <p> at "+this.line+","+this.column+")");var l=new M;l.initFromNode(E,g[0],e,h),g[0].contents.push(l),g.unshift(l)}else if("set"===e.local){g[0]instanceof N||g[0]instanceof D||g[0]instanceof w||g[0]instanceof R||g[0]instanceof O||g[0]instanceof M||F(h,"Parent of <set> element is not a content element or a region at "+this.line+","+this.column+")");var f=new C;f.initFromNode(E,g[0],e,h),g[0].sets.push(f),g.unshift(f)}else g.unshift(new T(e));else g.unshift(new T(e));if(g[0]instanceof T)if(e.uri===k.ns_tt&&"metadata"===e.local)v++;else if(0<v&&p&&"onOpenTag"in p){var d=[];for(var c in e.attributes)d[e.attributes[c].uri+" "+e.attributes[c].local]={uri:e.attributes[c].uri,local:e.attributes[c].local,value:e.attributes[c].value};p.onOpenTag(e.uri,e.local,d)}},t.write(e).close(),null!==E.head?delete E.head.styling:E.head=new A,null===E.head.layout&&(E.head.layout=new S);var n=!1;for(var r in E.head.layout.regions){n=!0;break}if(!n){var i=O.prototype.createDefaultRegion();E.head.layout.regions[i.id]=i}for(var a in E.head.layout.regions)f(E,E.head.layout.regions[a],null,null);return E.body&&f(E,E.body,null,null),E},y.prototype.initFromNode=function(e,t){this.cellResolution=function(e,t){var n=g(e,k.ns_ttp,"cellResolution"),r=15,i=32;if(null!==n){var a=/(\d+) (\d+)/.exec(n);null!==a?(i=parseInt(a[1]),r=parseInt(a[2])):v(t,"Malformed cellResolution value (using initial value instead)")}return{w:i,h:r}}(e,t);var n=function(e,t){var n,r=g(e,k.ns_ttp,"frameRate"),i=30;null!==r&&(null!==(n=/(\d+)/.exec(r))?i=parseInt(n[1]):v(t,"Malformed frame rate attribute (using initial value instead)"));var a=g(e,k.ns_ttp,"frameRateMultiplier"),o=1;null!==a&&(null!==(n=/(\d+) (\d+)/.exec(a))?o=parseInt(n[1])/parseInt(n[2]):v(t,"Malformed frame rate multiplier attribute (using initial value instead)"));var s=o*i,u=1,l=g(e,k.ns_ttp,"tickRate");return null===l?null!==r&&(u=s):null!==(n=/(\d+)/.exec(l))?u=parseInt(n[1]):v(t,"Malformed tick rate attribute (using initial value instead)"),{effectiveFrameRate:s,tickRate:u}}(e,t);this.effectiveFrameRate=n.effectiveFrameRate,this.tickRate=n.tickRate,this.aspectRatio=function(e,t){var n=g(e,k.ns_ittp,"aspectRatio"),r=null;if(null!==n){var i=/(\d+) (\d+)/.exec(n);if(null!==i){var a=parseInt(i[1]),o=parseInt(i[2]);0!==a&&0!==o?r=a/o:x(t,"Illegal aspectRatio values (ignoring)")}else x(t,"Malformed aspectRatio attribute (ignoring)")}return r}(e,t);var r=g(e,k.ns_ttp,"timeBase");null!==r&&"media"!==r&&F(t,"Unsupported time base");var i=function(e,t){var n=g(e,k.ns_tts,"extent");if(null===n)return null;var r=n.split(" ");if(2!==r.length)return v(t,"Malformed extent (ignoring)"),null;var i=j.parseLength(r[0]),a=j.parseLength(r[1]);return a&&i?{h:a,w:i}:(v(t,"Malformed extent values (ignoring)"),null)}(e,t);null===i?this.pxDimensions={h:480,w:640}:("px"===i.h.unit&&"px"===i.w.unit||F(t,"Extent on TT must be in px or absent"),this.pxDimensions={h:i.h.value,w:i.w.value})},y.prototype._registerEvent=function(e){if(!(e.end<=e.begin)){var t=E(this.events,e.begin);if(t.found||this.events.splice(t.index,0,e.begin),e.end!==Number.POSITIVE_INFINITY){var n=E(this.events,e.end);n.found||this.events.splice(n.index,0,e.end)}}},y.prototype.getMediaTimeRange=function(){return[this.events[0],this.events[this.events.length-1]]},y.prototype.getMediaTimeEvents=function(){return this.events},I.prototype.initFromNode=function(e,t){this.id=c(e),this.styleAttrs=p(e,t),this.styleRefs=h(e)},i.prototype.initFromNode=function(e,t,n,r){this.id=c(n)},a.prototype.initFromNode=function(e,t,n,r){this.regionID=function(e){return e&&"region"in e.attributes?e.attributes.region.value:""}(n)},o.prototype.initFromNode=function(e,t,n,r){this.styleAttrs=p(n,r),null!==e.head&&null!==e.head.styling&&_(e.head.styling,h(n),this.styleAttrs,r)},s.prototype.initFromNode=function(e,t,n,r){this.sets=[]},u.prototype.initFromNode=function(e,t,n,r){this.contents=[]},l.prototype.initFromNode=function(e,t,n,r){var i=function(e,t,n,r){var i=null;n&&"begin"in n.attributes&&null===(i=m(e.tickRate,e.effectiveFrameRate,n.attributes.begin.value))&&v(r,"Malformed begin value "+n.attributes.begin.value+" (using 0)");var a=null;n&&"dur"in n.attributes&&null===(a=m(e.tickRate,e.effectiveFrameRate,n.attributes.dur.value))&&v(r,"Malformed dur value "+n.attributes.dur.value+" (ignoring)");var o=null;return n&&"end"in n.attributes&&null===(o=m(e.tickRate,e.effectiveFrameRate,n.attributes.end.value))&&v(r,"Malformed end value (ignoring)"),{explicit_begin:i,explicit_end:o,explicit_dur:a}}(e,0,n,r);this.explicit_begin=i.explicit_begin,this.explicit_end=i.explicit_end,this.explicit_dur=i.explicit_dur,this.timeContainer=function(e,t){var n=e&&"timeContainer"in e.attributes?e.attributes.timeContainer.value:null;return n&&"par"!==n?"seq"===n?"seq":(x(t,"Illegal value of timeContainer (assuming 'par')"),"par"):"par"}(n,r)},R.prototype.initFromNode=function(e,t,n){o.prototype.initFromNode.call(this,e,null,t,n),l.prototype.initFromNode.call(this,e,null,t,n),s.prototype.initFromNode.call(this,e,null,t,n),a.prototype.initFromNode.call(this,e,null,t,n),u.prototype.initFromNode.call(this,e,null,t,n)},w.prototype.initFromNode=function(e,t,n,r){o.prototype.initFromNode.call(this,e,t,n,r),l.prototype.initFromNode.call(this,e,t,n,r),s.prototype.initFromNode.call(this,e,t,n,r),a.prototype.initFromNode.call(this,e,t,n,r),u.prototype.initFromNode.call(this,e,t,n,r)},D.prototype.initFromNode=function(e,t,n,r){o.prototype.initFromNode.call(this,e,t,n,r),l.prototype.initFromNode.call(this,e,t,n,r),s.prototype.initFromNode.call(this,e,t,n,r),a.prototype.initFromNode.call(this,e,t,n,r),u.prototype.initFromNode.call(this,e,t,n,r)},N.prototype.initFromNode=function(e,t,n,r,i){o.prototype.initFromNode.call(this,e,t,n,i),l.prototype.initFromNode.call(this,e,t,n,i),s.prototype.initFromNode.call(this,e,t,n,i),a.prototype.initFromNode.call(this,e,t,n,i),u.prototype.initFromNode.call(this,e,t,n,i),this.space=r},d.prototype.initFromText=function(e,t,n,r,i){l.prototype.initFromNode.call(this,e,t,null,i),this.text=n,this.space=r},M.prototype.initFromNode=function(e,t,n,r){a.prototype.initFromNode.call(this,e,t,n,r),l.prototype.initFromNode.call(this,e,t,n,r)},O.prototype.createDefaultRegion=function(){var e=new O;return i.call(e,""),o.call(e,{}),s.call(e,[]),l.call(e,0,Number.POSITIVE_INFINITY,null),e},O.prototype.initFromNode=function(e,t,n){i.prototype.initFromNode.call(this,e,null,t,n),o.prototype.initFromNode.call(this,e,null,t,n),l.prototype.initFromNode.call(this,e,null,t,n),s.prototype.initFromNode.call(this,e,null,t,n),null!==e.head&&null!==e.head.styling&&_(e.head.styling,h(t),this.styleAttrs,n)},C.prototype.initFromNode=function(e,t,n,r){l.prototype.initFromNode.call(this,e,t,n,r);var i=p(n,r);for(var a in this.qname=null,this.value=null,i){if(this.qname){x(r,"More than one style specified on set");break}this.qname=a,this.value=i[a]}}},{16:16,17:17,18:18,40:40}],13:[function(e,t,n){!function(e,t,b){function I(e,t,n){var r;if("region"===n.kind?(r=document.createElement("div")).style.position="absolute":"body"===n.kind?r=document.createElement("div"):"div"===n.kind?r=document.createElement("div"):"p"===n.kind?r=document.createElement("p"):"span"===n.kind?r=document.createElement("span"):"br"===n.kind&&(r=document.createElement("br")),r){for(var i in r.style.margin="0",D){var a=D[i],o=n.styleAttrs[a.qname];void 0!==o&&null!==a.map&&a.map(e,r,n,o)}var s=r;if("region"===n.kind){var u=n.styleAttrs[b.byName.writingMode.qname];"lrtb"===u||"lr"===u?(e.ipd="lr",e.bpd="tb"):"rltb"===u||"rl"===u?(e.ipd="rl",e.bpd="tb"):"tblr"===u?(e.ipd="tb",e.bpd="lr"):"tbrl"!==u&&"tb"!==u||(e.ipd="tb",e.bpd="rl")}var l=n.styleAttrs[b.byName.linePadding.qname];if(l&&0<l){var f=Math.ceil(l*e.h)+"px";"tb"===e.bpd?(s.style.paddingLeft=f,s.style.paddingRight=f):(s.style.paddingTop=f,s.style.paddingBottom=f),e.lp=l}var d=n.styleAttrs[b.byName.multiRowAlign.qname];if(d&&"auto"!==d){var c=document.createElement("span");c.style.display="inline-block",c.style.textAlign=d,r.appendChild(c),s=c,e.mra=d}if(n.styleAttrs[b.byName.fillLineGap.qname]&&(e.flg=!0),"span"===n.kind&&n.text)if(e.lp||e.mra||e.flg)for(var h="",p=0;p<n.text.length;p++){h+=n.text.charAt(p);var g=n.text.charCodeAt(p);if(g<55296||56319<g||p===n.text.length){var m=document.createElement("span");m.textContent=h,r.appendChild(m),h=""}}else r.textContent=n.text;for(var _ in t.appendChild(r),n.contents)I(e,s,n.contents[_]);var v=[];if((e.lp||e.mra||e.flg)&&"p"===n.kind&&(w(e,s,v,null),e.mra&&(function(e){for(var t=0;t<e.length-1;t++){var n=e[t].elements.length;if(0!==n&&!1===e[t].br){var r=document.createElement("br"),i=e[t].elements[n-1].node;i.parentElement.insertBefore(r,i.nextSibling)}}}(v),e.mra=null),e.lp&&(function(e,t,n){for(var r in e){var i=e[r].elements.length,a=e[r].elements[e[r].start_elem],o=e[r].elements[e[r].end_elem],s=Math.ceil(t)+"px",u="-"+Math.ceil(t)+"px";0!==i&&("lr"===n.ipd?(a.node.style.borderLeftColor=a.bgcolor||"#00000000",a.node.style.borderLeftStyle="solid",a.node.style.borderLeftWidth=s,a.node.style.marginLeft=u):"rl"===n.ipd?(a.node.style.borderRightColor=a.bgcolor||"#00000000",a.node.style.borderRightStyle="solid",a.node.style.borderRightWidth=s,a.node.style.marginRight=u):"tb"===n.ipd&&(a.node.style.borderTopColor=a.bgcolor||"#00000000",a.node.style.borderTopStyle="solid",a.node.style.borderTopWidth=s,a.node.style.marginTop=u),"lr"===n.ipd?(o.node.style.borderRightColor=o.bgcolor||"#00000000",o.node.style.borderRightStyle="solid",o.node.style.borderRightWidth=s,o.node.style.marginRight=u):"rl"===n.ipd?(o.node.style.borderLeftColor=o.bgcolor||"#00000000",o.node.style.borderLeftStyle="solid",o.node.style.borderLeftWidth=s,o.node.style.marginLeft=u):"tb"===n.ipd&&(o.node.style.borderBottomColor=o.bgcolor||"#00000000",o.node.style.borderBottomStyle="solid",o.node.style.borderBottomWidth=s,o.node.style.marginBottom=u))}}(v,e.lp*e.h,e),e.lp=null),e.flg)){var E=R(s.getBoundingClientRect(),e);!function(e,t,n,r){for(var i=Math.sign(n-t),a=0;a<=e.length;a++){var o,s,u;if(o=0===a?t:a===e.length?n:(e[a].before+e[a-1].after)/2,0<a)for(var l=0;l<e[a-1].elements.length;l++)null!==e[a-1].elements[l].bgcolor&&(u=e[a-1].elements[l],i*(u.after-o)<0&&(s=Math.ceil(Math.abs(o-u.after))+"px",u.node.style.backgroundColor=u.bgcolor,"lr"===r.bpd?u.node.style.paddingRight=s:"rl"===r.bpd?u.node.style.paddingLeft=s:"tb"===r.bpd&&(u.node.style.paddingBottom=s)));if(a<e.length)for(var f=0;f<e[a].elements.length;f++)null!==(u=e[a].elements[f]).bgcolor&&0<i*(u.before-o)&&(s=Math.ceil(Math.abs(u.before-o))+"px",u.node.style.backgroundColor=u.bgcolor,"lr"===r.bpd?u.node.style.paddingLeft=s:"rl"===r.bpd?u.node.style.paddingRight=s:"tb"===r.bpd&&(u.node.style.paddingTop=s))}}(v,E.before,E.after,e),e.flg=null}if("region"===n.kind&&(w(e,s,v),"tb"===e.bpd&&e.enableRollUp&&0<n.contents.length&&"after"===n.styleAttrs[b.byName.displayAlign.qname])){var T=new S(""===n.id?"_":n.id,v);if(e.currentISDState[T.id]=T,e.previousISDState&&T.id in e.previousISDState&&0<e.previousISDState[T.id].plist.length&&1<T.plist.length&&T.plist[T.plist.length-2].text===e.previousISDState[T.id].plist[e.previousISDState[T.id].plist.length-1].text){var y=r.firstElementChild,A=T.plist[T.plist.length-1].after-T.plist[T.plist.length-1].before;y.style.bottom="-"+A+"px",y.style.transition="transform 0.4s",y.style.position="relative",y.style.transform="translateY(-"+A+"px)"}}}else!function(e,t){if(e&&e.error&&e.error(t))throw t}(e.errorHandler,"Error processing ISD element kind: "+n.kind)}function S(e,t){this.id=e,this.plist=t}function R(e,t){var n={before:null,after:null,start:null,end:null};return"tb"===t.bpd?(n.before=e.top,n.after=e.bottom,"lr"===t.ipd?(n.start=e.left,n.end=e.right):(n.start=e.right,n.end=e.left)):"lr"===t.bpd?(n.before=e.left,n.after=e.right,n.start=e.top,n.end=e.bottom):"rl"===t.bpd&&(n.before=e.right,n.after=e.left,n.start=e.top,n.end=e.bottom),n}function w(e,t,n,r){var i=t.style.backgroundColor||r;if(0===t.childElementCount)if("span"===t.localName){var a=t.getBoundingClientRect();if(0===a.height||0===a.width)return;var o=R(a,e);if(0!==n.length&&function(e,t,n,r){return t<r&&n<e||r<=t&&e<=n}(o.before,o.after,n[n.length-1].before,n[n.length-1].after)){var s=Math.sign(o.after-o.before),u=Math.sign(o.end-o.start);s*(o.before-n[n.length-1].before)<0&&(n[n.length-1].before=o.before),0<s*(o.after-n[n.length-1].after)&&(n[n.length-1].after=o.after),u*(o.start-n[n.length-1].start)<0&&(n[n.length-1].start=o.start,n[n.length-1].start_elem=n[n.length-1].elements.length),0<u*(o.end-n[n.length-1].end)&&(n[n.length-1].end=o.end,n[n.length-1].end_elem=n[n.length-1].elements.length)}else n.push({before:o.before,after:o.after,start:o.start,end:o.end,start_elem:0,end_elem:0,elements:[],text:"",br:!1});n[n.length-1].text+=t.textContent,n[n.length-1].elements.push({node:t,bgcolor:i,before:o.before,after:o.after})}else"br"===t.localName&&0!==n.length&&(n[n.length-1].br=!0);else for(var l=t.firstChild;l;)l.nodeType===Node.ELEMENT_NODE&&w(e,l,n,i),l=l.nextSibling}function n(e,t){this.qname=e,this.map=t}e.render=function(e,t,n,r,i,a,o,s,u){var l=r||t.clientHeight,f=i||t.clientWidth;if(null!==e.aspectRatio){var d=l*e.aspectRatio;f<d?l=Math.round(f/e.aspectRatio):f=d}var c=document.createElement("div");c.style.position="relative",c.style.width=f+"px",c.style.height=l+"px",c.style.margin="auto",c.style.top=0,c.style.bottom=0,c.style.left=0,c.style.right=0,c.style.zIndex=0;var h={h:l,w:f,regionH:null,regionW:null,imgResolver:n,displayForcedOnlyMode:a||!1,isd:e,errorHandler:o,previousISDState:s,enableRollUp:u||!1,currentISDState:{},flg:null,lp:null,mra:null,ipd:null,bpd:null};for(var p in t.appendChild(c),e.contents)I(h,c,e.contents[p]);return h.currentISDState};var D=[new n("http://www.w3.org/ns/ttml#styling backgroundColor",function(e,t,n,r){0!==r[3]&&(t.style.backgroundColor="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")")}),new n("http://www.w3.org/ns/ttml#styling color",function(e,t,n,r){t.style.color="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")"}),new n("http://www.w3.org/ns/ttml#styling direction",function(e,t,n,r){t.style.direction=r}),new n("http://www.w3.org/ns/ttml#styling display",function(e,t,n,r){}),new n("http://www.w3.org/ns/ttml#styling displayAlign",function(e,t,n,r){t.style.display="flex",t.style.flexDirection="column","before"===r?t.style.justifyContent="flex-start":"center"===r?t.style.justifyContent="center":"after"===r&&(t.style.justifyContent="flex-end")}),new n("http://www.w3.org/ns/ttml#styling extent",function(e,t,n,r){e.regionH=r.h*e.h,e.regionW=r.w*e.w;var i=0,a=0,o=n.styleAttrs["http://www.w3.org/ns/ttml#styling padding"];o&&(i=(o[0]+o[2])*e.h,a=(o[1]+o[3])*e.w),t.style.height=e.regionH-i+"px",t.style.width=e.regionW-a+"px"}),new n("http://www.w3.org/ns/ttml#styling fontFamily",function(e,t,n,r){var i=[];for(var a in r)"monospaceSerif"===r[a]?(i.push("Courier New"),i.push('"Liberation Mono"'),i.push("Courier"),i.push("monospace")):"proportionalSansSerif"===r[a]?(i.push("Arial"),i.push("Helvetica"),i.push('"Liberation Sans"'),i.push("sans-serif")):"monospace"===r[a]?i.push("monospace"):"sansSerif"===r[a]?i.push("sans-serif"):"serif"===r[a]?i.push("serif"):"monospaceSansSerif"===r[a]?(i.push("Consolas"),i.push("monospace")):"proportionalSerif"===r[a]?i.push("serif"):i.push(r[a]);t.style.fontFamily=i.join(",")}),new n("http://www.w3.org/ns/ttml#styling fontSize",function(e,t,n,r){t.style.fontSize=r*e.h+"px"}),new n("http://www.w3.org/ns/ttml#styling fontStyle",function(e,t,n,r){t.style.fontStyle=r}),new n("http://www.w3.org/ns/ttml#styling fontWeight",function(e,t,n,r){t.style.fontWeight=r}),new n("http://www.w3.org/ns/ttml#styling lineHeight",function(e,t,n,r){t.style.lineHeight="normal"===r?"normal":r*e.h+"px"}),new n("http://www.w3.org/ns/ttml#styling opacity",function(e,t,n,r){t.style.opacity=r}),new n("http://www.w3.org/ns/ttml#styling origin",function(e,t,n,r){t.style.top=r.h*e.h+"px",t.style.left=r.w*e.w+"px"}),new n("http://www.w3.org/ns/ttml#styling overflow",function(e,t,n,r){t.style.overflow=r}),new n("http://www.w3.org/ns/ttml#styling padding",function(e,t,n,r){var i=[];i[0]=r[0]*e.h+"px",i[1]=r[3]*e.w+"px",i[2]=r[2]*e.h+"px",i[3]=r[1]*e.w+"px",t.style.padding=i.join(" ")}),new n("http://www.w3.org/ns/ttml#styling showBackground",null),new n("http://www.w3.org/ns/ttml#styling textAlign",function(e,t,n,r){var i,a=n.styleAttrs[b.byName.direction.qname];i="start"===r?"rtl"===a?"right":"left":"end"===r?"rtl"===a?"left":"right":r,t.style.textAlign=i}),new n("http://www.w3.org/ns/ttml#styling textDecoration",function(e,t,n,r){t.style.textDecoration=r.join(" ").replace("lineThrough","line-through")}),new n("http://www.w3.org/ns/ttml#styling textOutline",function(e,t,n,r){t.style.textShadow="none"===r?"":"rgba("+r.color[0].toString()+","+r.color[1].toString()+","+r.color[2].toString()+","+(r.color[3]/255).toString()+") 0px 0px "+r.thickness*e.h+"px"}),new n("http://www.w3.org/ns/ttml#styling unicodeBidi",function(e,t,n,r){var i;i="bidiOverride"===r?"bidi-override":r,t.style.unicodeBidi=i}),new n("http://www.w3.org/ns/ttml#styling visibility",function(e,t,n,r){t.style.visibility=r}),new n("http://www.w3.org/ns/ttml#styling wrapOption",function(e,t,n,r){"wrap"===r?"preserve"===n.space?t.style.whiteSpace="pre-wrap":t.style.whiteSpace="normal":"preserve"===n.space?t.style.whiteSpace="pre":t.style.whiteSpace="noWrap"}),new n("http://www.w3.org/ns/ttml#styling writingMode",function(e,t,n,r){"lrtb"===r||"lr"===r?t.style.writingMode="horizontal-tb":"rltb"===r||"rl"===r?t.style.writingMode="horizontal-tb":"tblr"===r?t.style.writingMode="vertical-lr":"tbrl"!==r&&"tb"!==r||(t.style.writingMode="vertical-rl")}),new n("http://www.w3.org/ns/ttml#styling zIndex",function(e,t,n,r){t.style.zIndex=r}),new n("http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt backgroundImage",function(e,t,n,r){if(null!==e.imgResolver&&null!==r){var i=document.createElement("img"),a=e.imgResolver(r,i);a&&(i.src=a),i.height=e.regionH,i.width=e.regionW,t.appendChild(i)}}),new n("http://www.w3.org/ns/ttml/profile/imsc1#styling forcedDisplay",function(e,t,n,r){e.displayForcedOnlyMode&&!1===r&&(t.style.visibility="hidden")})],r={};for(var i in D)r[D[i].qname]=D[i]}(void 0===n?this.imscHTML={}:n,"undefined"==typeof imscNames?e(16):imscNames,"undefined"==typeof imscStyles?e(17):imscStyles)},{16:16,17:17}],14:[function(e,t,n){function L(e,t,n,r,i,a,o,s,u){if(t<o.begin||t>=o.end)return null;var l="regionID"in o&&""!==o.regionID?o.regionID:a;if(null!==i&&l!==n.id&&(!("contents"in o)||"contents"in o&&0===o.contents.length||""!==l))return null;var f=new x(o);for(var d in o.sets)t<o.sets[d].begin||t>=o.sets[d].end||(f.styleAttrs[o.sets[d].qname]=o.sets[d].value);var c,h={};for(var p in f.styleAttrs)if(h[p]=!0,p===U.byName.writingMode.qname&&!(U.byName.direction.qname in f.styleAttrs)){var g=f.styleAttrs[p];"lrtb"===g||"lr"===g?f.styleAttrs[U.byName.direction.qname]="ltr":"rltb"!==g&&"rl"!==g||(f.styleAttrs[U.byName.direction.qname]="rtl")}if(null!==i)for(var m in U.all){var _=U.all[m];if(_.qname===U.byName.textDecoration.qname){var v=i.styleAttrs[_.qname],E=f.styleAttrs[_.qname],T=[];void 0===E?T=v:-1===E.indexOf("none")?((-1===E.indexOf("noUnderline")&&-1!==v.indexOf("underline")||-1!==E.indexOf("underline"))&&T.push("underline"),(-1===E.indexOf("noLineThrough")&&-1!==v.indexOf("lineThrough")||-1!==E.indexOf("lineThrough"))&&T.push("lineThrough"),(-1===E.indexOf("noOverline")&&-1!==v.indexOf("overline")||-1!==E.indexOf("overline"))&&T.push("overline")):T.push("none"),f.styleAttrs[_.qname]=T}else _.inherit&&_.qname in i.styleAttrs&&!(_.qname in f.styleAttrs)&&(f.styleAttrs[_.qname]=i.styleAttrs[_.qname])}for(var y in U.all){var A=U.all[y];A.qname in f.styleAttrs||("region"===f.kind||!1===A.inherit&&null!==A.initial)&&(f.styleAttrs[A.qname]=A.parse(A.initial),h[A.qname]=!0)}for(var b in U.all){var I=U.all[b];if(I.qname in h&&null!==I.compute){var S=I.compute(e,i,f,f.styleAttrs[I.qname],u);null!==S?f.styleAttrs[I.qname]=S:F(s,"Style '"+I.qname+"' on element '"+f.kind+"' cannot be computed")}}if("none"===f.styleAttrs[U.byName.display.qname])return null;for(var R in null===i?c=null===r?[]:[r]:"contents"in o&&(c=o.contents),c){var w=L(e,t,n,r,f,l,c[R],s,u);null!==w&&f.contents.push(w.element)}for(var D in f.styleAttrs){-1===U.byQName[D].applies.indexOf(f.kind)&&delete f.styleAttrs[D]}if("span"===f.kind&&f.text&&"default"===f.space){var N=f.text.replace(/\s+/g," ");f.text=N}if("p"===f.kind){var M=[];!function e(t,n){if("contents"in t)for(var r in t.contents)e(t.contents[r],n);else n.push(t)}(f,M);for(var O=0,C="after_br",P=0;;)if("after_br"===C)O>=M.length||"br"===M[O].kind?(C="before_br",P=O,O--):("preserve"!==M[O].space&&(M[O].text=M[O].text.replace(/^\s+/g,"")),0<M[O].text.length?(C="looking_br",O++):M.splice(O,1));else if("before_br"===C)if(O<0||"br"===M[O].kind){if(C="after_br",(O=P+1)>=M.length)break}else if("preserve"!==M[O].space&&(M[O].text=M[O].text.replace(/\s+$/g,"")),0<M[O].text.length){if(C="after_br",(O=P+1)>=M.length)break}else M.splice(O,1),O--;else O>=M.length||"br"===M[O].kind?(C="before_br",P=O,O--):O++;!function e(t){{if("br"===t.kind)return!1;if("text"in t)return 0===t.text.length;if("contents"in t){for(var n=t.contents.length;n--;)e(t.contents[n])&&t.contents.splice(n,1);return 0===t.contents.length}}}(f)}return"div"===f.kind&&U.byName.backgroundImage.qname in f.styleAttrs||"br"===f.kind||"contents"in f&&0<f.contents.length||"span"===f.kind&&null!==f.text||"region"===f.kind&&"always"===f.styleAttrs[U.byName.showBackground.qname]?{region_id:l,element:f}:null}function s(e){this.contents=[],this.aspectRatio=e.aspectRatio}function x(e){for(var t in this.kind=e.kind||"region",e.id&&(this.id=e.id),this.styleAttrs={},e.styleAttrs)this.styleAttrs[t]=e.styleAttrs[t];"text"in e?this.text=e.text:"br"!==e.kind&&(this.contents=[]),"space"in e&&(this.space=e.space)}function F(e,t){if(e&&e.error&&e.error(t))throw t}var r,U;r=void 0===n?this.imscISD={}:n,"undefined"==typeof imscNames?e(16):imscNames,U="undefined"==typeof imscStyles?e(17):imscStyles,r.generateISD=function(e,t,n){var r=new s(e),i={};for(var a in e.head.layout.regions){var o=L(e,t,e.head.layout.regions[a],e.body,null,"",e.head.layout.regions[a],n,i);null!==o&&r.contents.push(o.element)}return r}},{16:16,17:17}],15:[function(e,t,n){n.generateISD=e(14).generateISD,n.fromXML=e(12).fromXML,n.renderHTML=e(13).render},{12:12,13:13,14:14}],16:[function(e,t,n){var r;(r=void 0===n?this.imscNames={}:n).ns_tt="http://www.w3.org/ns/ttml",r.ns_tts="http://www.w3.org/ns/ttml#styling",r.ns_ttp="http://www.w3.org/ns/ttml#parameter",r.ns_xml="http://www.w3.org/XML/1998/namespace",r.ns_itts="http://www.w3.org/ns/ttml/profile/imsc1#styling",r.ns_ittp="http://www.w3.org/ns/ttml/profile/imsc1#parameter",r.ns_smpte="http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt",r.ns_ebutts="urn:ebu:tt:style"},{}],17:[function(e,t,n){!function(l,e,a){function t(e,t,n,r,i,a,o,s){this.name=t,this.ns=e,this.qname=e+" "+t,this.inherit=i,this.animatable=a,this.initial=n,this.applies=r,this.parse=o,this.compute=s}for(var n in l.all=[new t(e.ns_tts,"backgroundColor","transparent",["body","div","p","region","span"],!1,!0,a.parseColor,null),new t(e.ns_tts,"color","white",["span"],!0,!0,a.parseColor,null),new t(e.ns_tts,"direction","ltr",["p","span"],!0,!0,function(e){return e},null),new t(e.ns_tts,"display","auto",["body","div","p","region","span"],!1,!0,function(e){return e},null),new t(e.ns_tts,"displayAlign","before",["region"],!1,!0,function(e){return e},null),new t(e.ns_tts,"extent","auto",["tt","region"],!1,!0,function(e){if("auto"===e)return e;var t=e.split(" ");if(2!==t.length)return null;var n=a.parseLength(t[0]),r=a.parseLength(t[1]);return r&&n?{h:r,w:n}:null},function(e,t,n,r,i){var a,o;if("auto"===r)a=1;else if("%"===r.h.unit)a=r.h.value/100;else{if("px"!==r.h.unit)return null;a=r.h.value/e.pxDimensions.h}if("auto"===r)o=1;else if("%"===r.w.unit)o=r.w.value/100;else{if("px"!==r.w.unit)return null;o=r.w.value/e.pxDimensions.w}return{h:a,w:o}}),new t(e.ns_tts,"fontFamily","default",["span"],!0,!0,function(e){var t=e.split(","),n=[];for(var r in t)"'"!==t[r].charAt(0)&&'"'!==t[r].charAt(0)&&"default"===t[r]?n.push("monospaceSerif"):n.push(t[r]);return n},null),new t(e.ns_tts,"fontSize","1c",["span"],!0,!0,a.parseLength,function(e,t,n,r,i){var a;if("%"===r.unit)a=null!==t?t.styleAttrs[l.byName.fontSize.qname]*r.value/100:r.value/100/e.cellResolution.h;else if("em"===r.unit)a=null!==t?t.styleAttrs[l.byName.fontSize.qname]*r.value:r.value/e.cellResolution.h;else if("c"===r.unit)a=r.value/e.cellResolution.h;else{if("px"!==r.unit)return null;a=r.value/e.pxDimensions.h}return a}),new t(e.ns_tts,"fontStyle","normal",["span"],!0,!0,function(e){return e},null),new t(e.ns_tts,"fontWeight","normal",["span"],!0,!0,function(e){return e},null),new t(e.ns_tts,"lineHeight","normal",["p"],!0,!0,function(e){return"normal"===e?e:a.parseLength(e)},function(e,t,n,r,i){var a;if("normal"===r)a=r;else if("%"===r.unit)a=n.styleAttrs[l.byName.fontSize.qname]*r.value/100;else if("em"===r.unit)a=n.styleAttrs[l.byName.fontSize.qname]*r.value;else if("c"===r.unit)a=r.value/e.cellResolution.h;else{if("px"!==r.unit)return null;a=r.value/e.pxDimensions.h}return a}),new t(e.ns_tts,"opacity",1,["region"],!1,!0,parseFloat,null),new t(e.ns_tts,"origin","auto",["region"],!1,!0,function(e){if("auto"===e)return e;var t=e.split(" ");if(2!==t.length)return null;var n=a.parseLength(t[0]),r=a.parseLength(t[1]);return r&&n?{h:r,w:n}:null},function(e,t,n,r,i){var a,o;if("auto"===r)a=0;else if("%"===r.h.unit)a=r.h.value/100;else{if("px"!==r.h.unit)return null;a=r.h.value/e.pxDimensions.h}if("auto"===r)o=0;else if("%"===r.w.unit)o=r.w.value/100;else{if("px"!==r.w.unit)return null;o=r.w.value/e.pxDimensions.w}return{h:a,w:o}}),new t(e.ns_tts,"overflow","hidden",["region"],!1,!0,function(e){return e},null),new t(e.ns_tts,"padding","0px",["region"],!1,!0,function(e){var t=e.split(" ");if(4<t.length)return null;var n=[];for(var r in t){var i=a.parseLength(t[r]);if(!i)return null;n.push(i)}return n},function(e,t,n,r,i){var a;if(1===r.length)a=[r[0],r[0],r[0],r[0]];else if(2===r.length)a=[r[0],r[1],r[0],r[1]];else if(3===r.length)a=[r[0],r[1],r[2],r[1]];else{if(4!==r.length)return null;a=[r[0],r[1],r[2],r[3]]}var o=n.styleAttrs[l.byName.writingMode.qname];if("lrtb"===o||"lr"===o)a=[a[0],a[3],a[2],a[1]];else if("rltb"===o||"rl"===o)a=[a[0],a[1],a[2],a[3]];else if("tblr"===o)a=[a[3],a[0],a[1],a[2]];else{if("tbrl"!==o&&"tb"!==o)return null;a=[a[3],a[2],a[1],a[0]]}var s=[];for(var u in a)if(0===a[u].value)s[u]=0;else if("%"===a[u].unit)s[u]="0"===u||"2"===u?n.styleAttrs[l.byName.extent.qname].h*a[u].value/100:n.styleAttrs[l.byName.extent.qname].w*a[u].value/100;else if("em"===a[u].unit)s[u]=n.styleAttrs[l.byName.fontSize.qname]*a[u].value;else if("c"===a[u].unit)s[u]=a[u].value/e.cellResolution.h;else{if("px"!==a[u].unit)return null;s[u]="0"===u||"2"===u?a[u].value/e.pxDimensions.h:a[u].value/e.pxDimensions.w}return s}),new t(e.ns_tts,"showBackground","always",["region"],!1,!0,function(e){return e},null),new t(e.ns_tts,"textAlign","start",["p"],!0,!0,function(e){return e},function(e,t,n,r,i){return"left"===r?"start":"right"===r?"end":r}),new t(e.ns_tts,"textDecoration","none",["span"],!0,!0,function(e){return e.split(" ")},null),new t(e.ns_tts,"textOutline","none",["span"],!0,!0,function(e){if("none"===e)return e;var t={},n=e.split(" ");if(0===n.length||2<n.length)return null;var r=a.parseColor(n[0]);if(null!==(t.color=r)&&n.shift(),1!==n.length)return null;var i=a.parseLength(n[0]);return i?(t.thickness=i,t):null},function(e,t,n,r,i){if("none"===r)return r;var a={};if(null===r.color?a.color=n.styleAttrs[l.byName.color.qname]:a.color=r.color,"%"===r.thickness.unit)a.thickness=n.styleAttrs[l.byName.fontSize.qname]*r.thickness.value/100;else if("em"===r.thickness.unit)a.thickness=n.styleAttrs[l.byName.fontSize.qname]*r.thickness.value;else if("c"===r.thickness.unit)a.thickness=r.thickness.value/e.cellResolution.h;else{if("px"!==r.thickness.unit)return null;a.thickness=r.thickness.value/e.pxDimensions.h}return a}),new t(e.ns_tts,"unicodeBidi","normal",["span","p"],!1,!0,function(e){return e},null),new t(e.ns_tts,"visibility","visible",["body","div","p","region","span"],!0,!0,function(e){return e},null),new t(e.ns_tts,"wrapOption","wrap",["span"],!0,!0,function(e){return e},null),new t(e.ns_tts,"writingMode","lrtb",["region"],!1,!0,function(e){return e},null),new t(e.ns_tts,"zIndex","auto",["region"],!1,!0,function(e){var t;return"auto"===e?t=e:(t=parseInt(e),isNaN(t)&&(t=null)),t},null),new t(e.ns_ebutts,"linePadding","0c",["p"],!0,!1,a.parseLength,function(e,t,n,r,i){return"c"===r.unit?r.value/e.cellResolution.h:null}),new t(e.ns_ebutts,"multiRowAlign","auto",["p"],!0,!1,function(e){return e},null),new t(e.ns_smpte,"backgroundImage",null,["div"],!1,!1,function(e){return e},null),new t(e.ns_itts,"forcedDisplay","false",["body","div","p","region","span"],!0,!0,function(e){return"true"===e},null),new t(e.ns_itts,"fillLineGap","false",["p"],!0,!0,function(e){return"true"===e},null)],l.byQName={},l.all)l.byQName[l.all[n].qname]=l.all[n];for(var r in l.byName={},l.all)l.byName[l.all[r].name]=l.all[r]}(void 0===n?this.imscStyles={}:n,"undefined"==typeof imscNames?e(16):imscNames,"undefined"==typeof imscUtils?e(18):imscUtils)},{16:16,18:18}],18:[function(e,t,n){!function(e){var i=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/,a=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,o=/rgba\(\s*(\d+),\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,s={transparent:[0,0,0,0],black:[0,0,0,255],silver:[192,192,192,255],gray:[128,128,128,255],white:[255,255,255,255],maroon:[128,0,0,255],red:[255,0,0,255],purple:[128,0,128,255],fuchsia:[255,0,255,255],magenta:[255,0,255,255],green:[0,128,0,255],lime:[0,255,0,255],olive:[128,128,0,255],yellow:[255,255,0,255],navy:[0,0,128,255],blue:[0,0,255,255],teal:[0,128,128,255],aqua:[0,255,255,255],cyan:[0,255,255,255]};e.parseColor=function(e){var t,n=null,r=s[e.toLowerCase()];return void 0!==r?n=r:null!==(t=i.exec(e))?n=[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),void 0!==t[4]?parseInt(t[4],16):255]:null!==(t=a.exec(e))?n=[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),255]:null!==(t=o.exec(e))&&(n=[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseInt(t[4])]),n};var r=/^((?:\+|\-)?\d*(?:\.\d+)?)(px|em|c|%)$/;e.parseLength=function(e){var t,n=null;return null!==(t=r.exec(e))&&(n={value:parseFloat(t[1]),unit:t[2]}),n}}(void 0===n?this.imscUtils={}:n)},{}],19:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],20:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],21:[function(e,t,n){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,n)});case 4:return s.nextTick(function(){e.call(null,t,n,r)});default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return s.nextTick(function(){e.apply(null,i)})}}}:t.exports=s}).call(this,e(22))},{22:22}],22:[function(e,t,n){var r,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,f=[],d=!1,c=-1;function h(){d&&l&&(d=!1,l.length?f=l.concat(f):c=-1,f.length&&p())}function p(){if(!d){var e=u(h);d=!0;for(var t=f.length;t;){for(l=f,f=[];++c<t;)l&&l[c].run();c=-1,t=f.length}l=null,d=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new g(e,t)),1!==f.length||d||u(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],23:[function(e,t,n){t.exports=e(24)},{24:24}],24:[function(e,t,n){"use strict";var r=e(21),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=d;var a=e(32);a.inherits=e(33);var o=e(26),s=e(28);a.inherits(d,o);for(var u=i(s.prototype),l=0;l<u.length;l++){var f=u[l];d.prototype[f]||(d.prototype[f]=s.prototype[f])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{21:21,26:26,28:28,32:32,33:33}],25:[function(e,t,n){"use strict";t.exports=a;var r=e(27),i=e(32);function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=e(33),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},{27:27,32:32,33:33}],26:[function(P,L,e){(function(g,e){"use strict";var m=P(21);L.exports=c;var o,_=P(20);c.ReadableState=a;function v(e,t){return e.listeners(t).length}P(9).EventEmitter;var i=P(31),s=P(39).Buffer,u=e.Uint8Array||function(){};var t=P(32);t.inherits=P(33);var n=P(6),E=void 0;E=n&&n.debuglog?n.debuglog("stream"):function(){};var l,f=P(29),r=P(30);t.inherits(c,i);var d=["error","close","destroy","pause","resume"];function a(e,t){e=e||{};var n=t instanceof(o=o||P(24));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l=l||P(34).StringDecoder,this.decoder=new l(e.encoding),this.encoding=e.encoding)}function c(e){if(o=o||P(24),!(this instanceof c))return new c(e);this._readableState=new a(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function h(e,t,n,r,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,A(e)}(e,o)):(i||(a=function(e,t){var n;(function(e){return s.isBuffer(e)||e instanceof u})(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&0<t.length?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):p(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?p(e,o,t,!1):I(e,o)):p(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function p(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&A(e)),I(e,t)}Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),c.prototype.destroy=r.destroy,c.prototype._undestroy=r.undestroy,c.prototype._destroy=function(e,t){this.push(null),t(e)},c.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),h(this,e,t,!1,n)},c.prototype.unshift=function(e){return h(this,e,null,!0,!1)},c.prototype.isPaused=function(){return!1===this._readableState.flowing},c.prototype.setEncoding=function(e){return l=l||P(34).StringDecoder,this._readableState.decoder=new l(e),this._readableState.encoding=e,this};var T=8388608;function y(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return T<=e?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(E("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?m.nextTick(b,e):b(e))}function b(e){E("emit readable"),e.emit("readable"),D(e)}function I(e,t){t.readingMore||(t.readingMore=!0,m.nextTick(S,e,t))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(E("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function R(e){E("readable nexttick read 0"),e.read(0)}function w(e,t){t.reading||(E("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(E("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=a.slice(o);break}++r}return t.length-=r,i}(e,t):function(e,t){var n=s.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=a.slice(o);break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function M(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,m.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}c.prototype.read=function(e){E("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return E("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):A(this),null;if(0===(e=y(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return E("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&E("length less than watermark",i=!0),t.ended||t.reading?E("reading or ended",i=!1):i&&(E("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=y(n,t))),null===(r=0<e?N(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},c.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},c.prototype.pipe=function(n,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,E("pipe count=%d opts=%j",i.pipesCount,e);var t=(!e||!1!==e.end)&&n!==g.stdout&&n!==g.stderr?o:p;function a(e,t){E("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,E("cleanup"),n.removeListener("close",c),n.removeListener("finish",h),n.removeListener("drain",s),n.removeListener("error",d),n.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",p),r.removeListener("data",f),u=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||s())}function o(){E("onend"),n.end()}i.endEmitted?m.nextTick(t):r.once("end",t),n.on("unpipe",a);var s=function(t){return function(){var e=t._readableState;E("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&v(t,"data")&&(e.flowing=!0,D(t))}}(r);n.on("drain",s);var u=!1;var l=!1;function f(e){E("ondata"),(l=!1)!==n.write(e)||l||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==C(i.pipes,n))&&!u&&(E("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,l=!0),r.pause())}function d(e){E("onerror",e),p(),n.removeListener("error",d),0===v(n,"error")&&n.emit("error",e)}function c(){n.removeListener("finish",h),p()}function h(){E("onfinish"),n.removeListener("close",c),p()}function p(){E("unpipe"),r.unpipe(n)}return r.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?_(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(n,"error",d),n.once("close",c),n.once("finish",h),n.emit("pipe",r),i.flowing||(E("pipe resume"),r.resume()),n},c.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var o=C(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},c.prototype.addListener=c.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&A(this):m.nextTick(R,this))}return n},c.prototype.resume=function(){var e=this._readableState;return e.flowing||(E("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,m.nextTick(w,e,t))}(this,e)),this},c.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this},c.prototype.wrap=function(t){var n=this,r=this._readableState,i=!1;for(var e in t.on("end",function(){if(E("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),t.on("data",function(e){E("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e||(r.objectMode||e&&e.length)&&(n.push(e)||(i=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var a=0;a<d.length;a++)t.on(d[a],this.emit.bind(this,d[a]));return this._read=function(e){E("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(c.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),c._fromList=N}).call(this,P(22),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{20:20,21:21,22:22,24:24,29:29,30:30,31:31,32:32,33:33,34:34,39:39,6:6,9:9}],27:[function(e,t,n){"use strict";t.exports=a;var r=e(24),i=e(32);function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,(n.writecb=null)!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var n=this;"function"==typeof this._flush?this._flush(function(e,t){s(n,e,t)}):s(this,null,null)}function s(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e(33),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},{24:24,32:32,33:33}],28:[function(b,I,e){(function(e,t,n){"use strict";var s=b(21);function d(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}I.exports=m;var u,l=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?n:s.nextTick;m.WritableState=g;var r=b(32);r.inherits=b(33);var i={deprecate:b(45)},a=b(31),f=b(39).Buffer,o=t.Uint8Array||function(){};var c,h=b(30);function p(){}function g(e,t){u=u||b(24),e=e||{};var n=t instanceof u;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=e.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(s.nextTick(i,r),s.nextTick(A,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),A(e,t))}(e,n,r,t,i);else{var a=T(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),r?l(v,e,n,a,i):v(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new d(this)}function m(e){if(u=u||b(24),!(c.call(m,this)||this instanceof u))return new m(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function _(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function v(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),A(e,t)}function E(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var o=0,s=!0;n;)(i[o]=n).isBuf||(s=!1),n=n.next,o+=1;i.allBuffers=s,_(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new d(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(_(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function y(t,n){t._final(function(e){n.pendingcb--,e&&t.emit("error",e),n.prefinished=!0,t.emit("prefinish"),A(t,n)})}function A(e,t){var n=T(t);return n&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,s.nextTick(y,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}r.inherits(m,a),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===m&&(e&&e._writableState instanceof g)}})):c=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&function(e){return f.isBuffer(e)||e instanceof o}(e);return a&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),t=a?"buffer":t||r.defaultEncoding,"function"!=typeof n&&(n=p),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),s.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),s.nextTick(r,a),i=!1),i}(this,r,e,n))&&(r.pendingcb++,i=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else _(e,t,!1,s,r,i,a);return u}(this,r,a,e,t,n)),i},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||E(this,e))},m.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,t=e=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,A(e,t),n&&(t.finished?s.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,b(22),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b(44).setImmediate)},{21:21,22:22,24:24,30:30,31:31,32:32,33:33,39:39,44:44,45:45}],29:[function(e,t,n){"use strict";var s=e(39).Buffer,r=e(6);function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.head=null,this.tail=null,this.length=0}t.exports=(i.prototype.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},i.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},i.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},i.prototype.concat=function(e){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var t,n,r,i=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,n=i,r=o,t.copy(n,r),o+=a.data.length,a=a.next;return i},i),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},{39:39,6:6}],30:[function(e,t,n){"use strict";var a=e(21);function o(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||a.nextTick(o,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(a.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{21:21}],31:[function(e,t,n){t.exports=e(9).EventEmitter},{9:9}],32:[function(e,t,n){(function(e){function t(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===t(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===t(e)},n.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e.isBuffer}).call(this,{isBuffer:e(19)})},{19:19}],33:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;function n(){}n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],34:[function(e,t,n){"use strict";var r=e(39).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=d,t=3;break;default:return this.write=c,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function f(e,t){var n=(e.length-t)%3;return 0==n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1==n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function c(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}(n.StringDecoder=a).prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(0<=i)return 0<i&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if(0<=(i=o(t[r])))return 0<i&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if(0<=(i=o(t[r])))return 0<i&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{39:39}],35:[function(e,t,n){t.exports=e(36).PassThrough},{36:36}],36:[function(e,t,n){(((n=t.exports=e(26)).Stream=n).Readable=n).Writable=e(28),n.Duplex=e(24),n.Transform=e(27),n.PassThrough=e(25)},{24:24,25:25,26:26,27:27,28:28}],37:[function(e,t,n){t.exports=e(36).Transform},{36:36}],38:[function(e,t,n){t.exports=e(28)},{28:28}],39:[function(e,t,n){var r=e(7),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(a(r,n),n.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{7:7}],40:[function(V,e,t){(function(H){!function(u){u.parser=function(e,t){return new i(e,t)},u.SAXParser=i,u.SAXStream=o,u.createStream=function(e,t){return new o(e,t)},u.MAX_BUFFER_LENGTH=65536;var r,l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,t){if(!(this instanceof i))return new i(e,t);var n=this;!function(e){for(var t=0,n=l.length;t<n;t++)e[l[t]]=""}(n),n.q=n.c="",n.bufferCheckPosition=u.MAX_BUFFER_LENGTH,n.opt=t||{},n.opt.lowercase=n.opt.lowercase||n.opt.lowercasetags,n.looseCase=n.opt.lowercase?"toLowerCase":"toUpperCase",n.tags=[],n.closed=n.closedRoot=n.sawRoot=!1,n.tag=n.error=null,n.strict=!!e,n.noscript=!(!e&&!n.opt.noscript),n.state=S.BEGIN,n.strictEntities=n.opt.strictEntities,n.ENTITIES=n.strictEntities?Object.create(u.XML_ENTITIES):Object.create(u.ENTITIES),n.attribList=[],n.opt.xmlns&&(n.ns=Object.create(m)),n.trackPosition=!1!==n.opt.position,n.trackPosition&&(n.position=n.line=n.column=0),w(n,"onready")}u.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),i.prototype={end:function(){C(this)},write:function(e){var t=this;if(this.error)throw this.error;if(t.closed)return O(t,"Cannot write after close. Assign an onready handler.");if(null===e)return C(t);"object"==typeof e&&(e=e.toString());var n=0,r="";for(;r=j(e,n++),t.c=r;)switch(t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++),t.state){case S.BEGIN:if(t.state=S.BEGIN_WHITESPACE,"\ufeff"===r)continue;G(t,r);continue;case S.BEGIN_WHITESPACE:G(t,r);continue;case S.TEXT:if(t.sawRoot&&!t.closedRoot){for(var i=n-1;r&&"<"!==r&&"&"!==r;)(r=j(e,n++))&&t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(i,n-1)}"<"!==r||t.sawRoot&&t.closedRoot&&!t.strict?(!A(f,r)||t.sawRoot&&!t.closedRoot||P(t,"Text data outside of root node."),"&"===r?t.state=S.TEXT_ENTITY:t.textNode+=r):(t.state=S.OPEN_WAKA,t.startTagPosition=t.position);continue;case S.SCRIPT:"<"===r?t.state=S.SCRIPT_ENDING:t.script+=r;continue;case S.SCRIPT_ENDING:"/"===r?t.state=S.CLOSE_TAG:(t.script+="<"+r,t.state=S.SCRIPT);continue;case S.OPEN_WAKA:if("!"===r)t.state=S.SGML_DECL,t.sgmlDecl="";else if(y(f,r));else if(y(_,r))t.state=S.OPEN_TAG,t.tagName=r;else if("/"===r)t.state=S.CLOSE_TAG,t.tagName="";else if("?"===r)t.state=S.PROC_INST,t.procInstName=t.procInstBody="";else{if(P(t,"Unencoded <"),t.startTagPosition+1<t.position){var a=t.position-t.startTagPosition;r=new Array(a).join(" ")+r}t.textNode+="<"+r,t.state=S.TEXT}continue;case S.SGML_DECL:(t.sgmlDecl+r).toUpperCase()===h?(D(t,"onopencdata"),t.state=S.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+r==="--"?(t.state=S.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+r).toUpperCase()===p?(t.state=S.DOCTYPE,(t.doctype||t.sawRoot)&&P(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===r?(D(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=S.TEXT):(y(d,r)&&(t.state=S.SGML_DECL_QUOTED),t.sgmlDecl+=r);continue;case S.SGML_DECL_QUOTED:r===t.q&&(t.state=S.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case S.DOCTYPE:">"===r?(t.state=S.TEXT,D(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=S.DOCTYPE_DTD:y(d,r)&&(t.state=S.DOCTYPE_QUOTED,t.q=r));continue;case S.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=S.DOCTYPE:y(d,r)&&(t.state=S.DOCTYPE_DTD_QUOTED,t.q=r);continue;case S.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=S.DOCTYPE_DTD,t.q="");continue;case S.COMMENT:"-"===r?t.state=S.COMMENT_ENDING:t.comment+=r;continue;case S.COMMENT_ENDING:"-"===r?(t.state=S.COMMENT_ENDED,t.comment=M(t.opt,t.comment),t.comment&&D(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=S.COMMENT);continue;case S.COMMENT_ENDED:">"!==r?(P(t,"Malformed comment"),t.comment+="--"+r,t.state=S.COMMENT):t.state=S.TEXT;continue;case S.CDATA:"]"===r?t.state=S.CDATA_ENDING:t.cdata+=r;continue;case S.CDATA_ENDING:"]"===r?t.state=S.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=S.CDATA);continue;case S.CDATA_ENDING_2:">"===r?(t.cdata&&D(t,"oncdata",t.cdata),D(t,"onclosecdata"),t.cdata="",t.state=S.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=S.CDATA);continue;case S.PROC_INST:"?"===r?t.state=S.PROC_INST_ENDING:y(f,r)?t.state=S.PROC_INST_BODY:t.procInstName+=r;continue;case S.PROC_INST_BODY:if(!t.procInstBody&&y(f,r))continue;"?"===r?t.state=S.PROC_INST_ENDING:t.procInstBody+=r;continue;case S.PROC_INST_ENDING:">"===r?(D(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=S.TEXT):(t.procInstBody+="?"+r,t.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:y(v,r)?t.tagName+=r:(L(t),">"===r?U(t):"/"===r?t.state=S.OPEN_TAG_SLASH:(A(f,r)&&P(t,"Invalid character in tag name"),t.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:">"===r?(U(t,!0),B(t)):(P(t,"Forward-slash in opening tag not followed by >"),t.state=S.ATTRIB);continue;case S.ATTRIB:if(y(f,r))continue;">"===r?U(t):"/"===r?t.state=S.OPEN_TAG_SLASH:y(_,r)?(t.attribName=r,t.attribValue="",t.state=S.ATTRIB_NAME):P(t,"Invalid attribute name");continue;case S.ATTRIB_NAME:"="===r?t.state=S.ATTRIB_VALUE:">"===r?(P(t,"Attribute without value"),t.attribValue=t.attribName,F(t),U(t)):y(f,r)?t.state=S.ATTRIB_NAME_SAW_WHITE:y(v,r)?t.attribName+=r:P(t,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=S.ATTRIB_VALUE;else{if(y(f,r))continue;P(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",D(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?U(t):y(_,r)?(t.attribName=r,t.state=S.ATTRIB_NAME):(P(t,"Invalid attribute name"),t.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(y(f,r))continue;y(d,r)?(t.q=r,t.state=S.ATTRIB_VALUE_QUOTED):(P(t,"Unquoted attribute value"),t.state=S.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case S.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=S.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}F(t),t.q="",t.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:y(f,r)?t.state=S.ATTRIB:">"===r?U(t):"/"===r?t.state=S.OPEN_TAG_SLASH:y(_,r)?(P(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=S.ATTRIB_NAME):P(t,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(A(c,r)){"&"===r?t.state=S.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}F(t),">"===r?U(t):t.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(t.tagName)">"===r?B(t):y(v,r)?t.tagName+=r:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=S.SCRIPT):(A(f,r)&&P(t,"Invalid tagname in closing tag"),t.state=S.CLOSE_TAG_SAW_WHITE);else{if(y(f,r))continue;A(_,r)?t.script?(t.script+="</"+r,t.state=S.SCRIPT):P(t,"Invalid tagname in closing tag."):t.tagName=r}continue;case S.CLOSE_TAG_SAW_WHITE:if(y(f,r))continue;">"===r?B(t):P(t,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var o,s;switch(t.state){case S.TEXT_ENTITY:o=S.TEXT,s="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:o=S.ATTRIB_VALUE_QUOTED,s="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:o=S.ATTRIB_VALUE_UNQUOTED,s="attribValue"}";"===r?(t[s]+=k(t),t.entity="",t.state=o):y(t.entity.length?T:E,r)?t.entity+=r:(P(t,"Invalid character in entity name"),t[s]+="&"+t.entity+r,t.entity="",t.state=o);continue;default:throw new Error(t,"Unknown state: "+t.state)}t.position>=t.bufferCheckPosition&&function(e){for(var t=Math.max(u.MAX_BUFFER_LENGTH,10),n=0,r=0,i=l.length;r<i;r++){var a=e[l[r]].length;if(t<a)switch(l[r]){case"textNode":N(e);break;case"cdata":D(e,"oncdata",e.cdata),e.cdata="";break;case"script":D(e,"onscript",e.script),e.script="";break;default:O(e,"Max buffer length exceeded: "+l[r])}n=Math.max(n,a)}var o=u.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=o+e.position}(t);return t},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function(e){N(e),""!==e.cdata&&(D(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(D(e,"onscript",e.script),e.script="")}(this)}};try{r=V(41).Stream}catch(e){r=function(){}}var a=u.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});function o(e,t){if(!(this instanceof o))return new o(e,t);r.apply(this),this._parser=new i(e,t),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(e){n.emit("error",e),n._parser.error=null},this._decoder=null,a.forEach(function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e;n.on(t,e)},enumerable:!0,configurable:!1})})}(o.prototype=Object.create(r.prototype,{constructor:{value:o}})).write=function(e){if("function"==typeof H&&"function"==typeof H.isBuffer&&H.isBuffer(e)){if(!this._decoder){var t=V(43).StringDecoder;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},o.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},o.prototype.on=function(t,e){var n=this;return n._parser["on"+t]||-1===a.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),r.prototype.on.call(n,t,e)};var f="\r\n\t ",e="0124356789",t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",d="'\"",c=f+">",h="[CDATA[",p="DOCTYPE",s="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/2000/xmlns/",m={xml:s,xmlns:g};f=n(f),e=n(e),t=n(t);var _=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,T=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;function n(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}function y(e,t){return function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}(e)?!!t.match(e):e[t]}function A(e,t){return!y(e,t)}d=n(d),c=n(c);var b,I,S=0;for(var R in u.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},u.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},u.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(u.ENTITIES).forEach(function(e){var t=u.ENTITIES[e],n="number"==typeof t?String.fromCharCode(t):t;u.ENTITIES[e]=n}),u.STATE)u.STATE[u.STATE[R]]=R;function w(e,t,n){e[t]&&e[t](n)}function D(e,t,n){e.textNode&&N(e),w(e,t,n)}function N(e){e.textNode=M(e.opt,e.textNode),e.textNode&&w(e,"ontext",e.textNode),e.textNode=""}function M(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function O(e,t){return N(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,w(e,"onerror",t),e}function C(e){return e.sawRoot&&!e.closedRoot&&P(e,"Unclosed root tag"),e.state!==S.BEGIN&&e.state!==S.BEGIN_WHITESPACE&&e.state!==S.TEXT&&O(e,"Unexpected end"),N(e),e.c="",e.closed=!0,w(e,"onend"),i.call(e,e.strict,e.opt),e}function P(e,t){if("object"!=typeof e||!(e instanceof i))throw new Error("bad call to strictFail");e.strict&&O(e,t)}function L(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,D(e,"onopentagstart",n)}function x(e,t){var n=e.indexOf(":")<0?["",e]:e.split(":"),r=n[0],i=n[1];return t&&"xmlns"===e&&(r="xmlns",i=""),{prefix:r,local:i}}function F(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=x(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==s)P(e,"xml: prefix must be bound to "+s+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==g)P(e,"xmlns: prefix must be bound to "+g+"\nActual: "+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,D(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function U(t,e){if(t.opt.xmlns){var n=t.tag,r=x(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(P(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){D(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var a=0,o=t.attribList.length;a<o;a++){var s=t.attribList[a],u=s[0],l=s[1],f=x(u,!0),d=f.prefix,c=f.local,h=""===d?"":n.ns[d]||"",p={name:u,value:l,prefix:d,local:c,uri:h};d&&"xmlns"!==d&&!h&&(P(t,"Unbound namespace prefix: "+JSON.stringify(d)),p.uri=d),t.tag.attributes[u]=p,D(t,"onattribute",p)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),D(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=S.TEXT:t.state=S.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function B(n){if(!n.tagName)return P(n,"Weird empty close tag."),n.textNode+="</>",void(n.state=S.TEXT);if(n.script){if("script"!==n.tagName)return n.script+="</"+n.tagName+">",n.tagName="",void(n.state=S.SCRIPT);D(n,"onscript",n.script),n.script=""}var e=n.tags.length,t=n.tagName;n.strict||(t=t[n.looseCase]());for(var r=t;e--;){if(n.tags[e].name===r)break;P(n,"Unexpected close tag")}if(e<0)return P(n,"Unmatched closing tag: "+n.tagName),n.textNode+="</"+n.tagName+">",void(n.state=S.TEXT);n.tagName=t;for(var i=n.tags.length;i-- >e;){var a=n.tag=n.tags.pop();n.tagName=n.tag.name,D(n,"onclosetag",n.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var u=n.tags[n.tags.length-1]||n;n.opt.xmlns&&a.ns!==u.ns&&Object.keys(a.ns).forEach(function(e){var t=a.ns[e];D(n,"onclosenamespace",{prefix:e,uri:t})})}0===e&&(n.closedRoot=!0),n.tagName=n.attribValue=n.attribName="",n.attribList.length=0,n.state=S.TEXT}function k(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:("#"===(n=r).charAt(0)&&(i="x"===n.charAt(1)?(n=n.slice(2),(t=parseInt(n,16)).toString(16)):(n=n.slice(1),(t=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),i.toLowerCase()!==n?(P(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function G(e,t){"<"===t?(e.state=S.OPEN_WAKA,e.startTagPosition=e.position):A(f,t)&&(P(e,"Non-whitespace before first tag."),e.textNode=t,e.state=S.TEXT)}function j(e,t){var n="";return t<e.length&&(n=e.charAt(t)),n}function q(){var e,t,n=[],r=-1,i=arguments.length;if(!i)return"";for(var a="";++r<i;){var o=Number(arguments[r]);if(!isFinite(o)||o<0||1114111<o||I(o)!==o)throw RangeError("Invalid code point: "+o);o<=65535?n.push(o):(e=55296+((o-=65536)>>10),t=o%1024+56320,n.push(e,t)),(r+1===i||16384<n.length)&&(a+=b.apply(null,n),n.length=0)}return a}S=u.STATE,String.fromCodePoint||(b=String.fromCharCode,I=Math.floor,Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:q,configurable:!0,writable:!0}):String.fromCodePoint=q)}(void 0===t?this.sax={}:t)}).call(this,V(7).Buffer)},{41:41,43:43,7:7}],41:[function(e,t,n){t.exports=r;var f=e(9).EventEmitter;function r(){f.call(this)}e(42)(r,f),r.Readable=e(36),r.Writable=e(38),r.Duplex=e(23),r.Transform=e(37),r.PassThrough=e(35),(r.Stream=r).prototype.pipe=function(t,e){var n=this;function r(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",i),t._isStdio||e&&!1===e.end||(n.on("end",o),n.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function u(e){if(l(),0===f.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",o),n.removeListener("close",s),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),t.removeListener("close",l)}return n.on("error",u),t.on("error",u),n.on("end",l),n.on("close",l),t.on("close",l),t.emit("pipe",n),t}},{23:23,35:35,36:36,37:37,38:38,42:42,9:9}],42:[function(e,t,n){arguments[4][33][0].apply(n,arguments)},{33:33}],43:[function(e,t,n){arguments[4][34][0].apply(n,arguments)},{34:34,39:39}],44:[function(u,e,l){(function(e,t){var r=u(22).nextTick,n=Function.prototype.apply,i=Array.prototype.slice,a={},o=0;function s(e,t){this._id=e,this._clearFn=t}l.setTimeout=function(){return new s(n.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new s(n.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof e?e:function(e){var t=o++,n=!(arguments.length<2)&&i.call(arguments,1);return a[t]=!0,r(function(){a[t]&&(n?e.apply(null,n):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof t?t:function(e){delete a[e]}}).call(this,u(44).setImmediate,u(44).clearImmediate)},{22:22,44:44}],45:[function(e,t,n){(function(n){function r(e){try{if(!n.localStorage)return!1}catch(e){return!1}var t=n.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],46:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(47)),h=r(e(55)),a=r(e(48)),o=r(e(49)),p=1,g=2,m=3,_=4,v=5;function s(){var e,t=this.context,s=(0,i.default)(t).getInstance(),u=(0,o.default)(t).getInstance(),l=[],f=void 0,d=void 0,c=void 0;function n(e){return e&&e.bind?e.bind(window.console):window.console.log.bind(window.console)}function r(e,t){var n="",r=null;f&&(r=(new Date).getTime(),n+="["+(r-c)+"]"),d&&t&&t.getClassName&&(n+="["+t.getClassName()+"]",t.getType&&(n+="["+t.getType()+"]")),0<n.length&&(n+=" ");for(var i=arguments.length,a=Array(2<i?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];Array.apply(null,a).forEach(function(e){n+=e+" "}),l[e]&&u.get().debug.logLevel>=e&&l[e](n),s.trigger(h.default.LOG,{message:n,level:e})}return e={getLogger:function(e){return{fatal:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(void 0,[p,this].concat(t))}.bind(e),error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(void 0,[g,this].concat(t))}.bind(e),warn:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(void 0,[m,this].concat(t))}.bind(e),info:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(void 0,[_,this].concat(t))}.bind(e),debug:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(void 0,[v,this].concat(t))}.bind(e)}},setLogTimestampVisible:function(e){f=e},setCalleeNameVisible:function(e){d=e},setLogLevel:function(e){var t={debug:{logLevel:e}};u.update(t)},getLogLevel:function(){return u.get().debug.logLevel}},d=f=!0,c=(new Date).getTime(),"undefined"!=typeof window&&window.console&&(l[p]=n(window.console.error),l[g]=n(window.console.error),l[m]=n(window.console.warn),l[_]=n(window.console.info),l[v]=n(window.console.debug)),e}s.__dashjs_factory_name="Debug";var u=a.default.getSingletonFactory(s);u.LOG_LEVEL_NONE=0,u.LOG_LEVEL_FATAL=p,u.LOG_LEVEL_ERROR=g,u.LOG_LEVEL_WARNING=m,u.LOG_LEVEL_INFO=_,u.LOG_LEVEL_DEBUG=v,a.default.updateSingletonFactory(s.__dashjs_factory_name,u),n.default=u,t.exports=n.default},{47:47,48:48,49:49,55:55}],47:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){var a={};function o(e,n,r){var i=-1;return a[e]&&a[e].some(function(e,t){if(e&&e.callback===n&&(!r||r===e.scope))return i=t,!0}),i}return{on:function(n,e,t){var r=arguments.length<=3||void 0===arguments[3]?0:arguments[3];if(!n)throw new Error("event type cannot be null or undefined");if(!e||"function"!=typeof e)throw new Error("listener must be a function: "+e);if(!(0<=o(n,e,t))){a[n]=a[n]||[];var i={callback:e,scope:t,priority:r};a[n].some(function(e,t){if(e&&r>e.priority)return a[n].splice(t,0,i),!0})||a[n].push(i)}},off:function(e,t,n){if(e&&t&&a[e]){var r=o(e,t,n);r<0||(a[e][r]=null)}},trigger:function(e,t){if(e&&a[e]){if((t=t||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");t.type=e,a[e]=a[e].filter(function(e){return e}),a[e].forEach(function(e){return e&&e.callback.call(e.scope,t)})}},reset:function(){a={}}}}o.__dashjs_factory_name="EventBus";var s=a.default.getSingletonFactory(o);s.EVENT_PRIORITY_LOW=0,s.EVENT_PRIORITY_HIGH=5e3,a.default.updateSingletonFactory(o.__dashjs_factory_name,s),n.default=s,t.exports=n.default},{48:48}],48:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u,a,r,i,o=(u=void 0,a=[],r={},i={},u={extend:function(e,t,n,r){!r[e]&&t&&(r[e]={instance:t,override:n})},getSingletonInstance:s,setSingletonInstance:function(e,t,n){for(var r in a){var i=a[r];if(i.context===e&&i.name===t)return void(a[r].instance=n)}a.push({name:t,context:e,instance:n})},getSingletonFactory:function(n){var e=l(n.__dashjs_factory_name,r);return e||(e=function(e){var t=void 0;return void 0===e&&(e={}),{getInstance:function(){return(t=t||s(e,n.__dashjs_factory_name))||(t=d(n,e,arguments),a.push({name:n.__dashjs_factory_name,context:e,instance:t})),t}}},r[n.__dashjs_factory_name]=e),e},getSingletonFactoryByName:function(e){return l(e,r)},updateSingletonFactory:function(e,t){f(e,t,r)},getClassFactory:function(t){var e=l(t.__dashjs_factory_name,i);return e||(e=function(e){return void 0===e&&(e={}),{create:function(){return d(t,e,arguments)}}},i[t.__dashjs_factory_name]=e),e},getClassFactoryByName:function(e){return l(e,i)},updateClassFactory:function(e,t){f(e,t,i)}});function s(e,t){for(var n in a){var r=a[n];if(r.context===e&&r.name===t)return r.instance}return null}function l(e,t){return t[e]}function f(e,t,n){e in n&&(n[e]=t)}function d(e,t,n){var r=void 0,i=e.__dashjs_factory_name,a=t[i];if(a){var o=a.instance;if(!a.override)return o.apply({context:t,factory:u},n);for(var s in r=e.apply({context:t},n),o=o.apply({context:t,factory:u,parent:r},n))r.hasOwnProperty(s)&&(r[s]=o[s])}else r=e.apply({context:t},n);return r.getClassName=function(){return i},r}n.default=o,t.exports=n.default},{}],49:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(n,"__esModule",{value:!0});var a=r(e(48)),o=r(e(50)),s=r(e(46)),u=r(e(107)),l=e(189);function f(){var e,t,n={debug:{logLevel:s.default.LOG_LEVEL_WARNING},streaming:{metricsMaxListDepth:1e3,abandonLoadTimeout:1e4,liveDelayFragmentCount:4,liveDelay:null,scheduleWhilePaused:!0,fastSwitchEnabled:!1,bufferPruningInterval:10,bufferToKeep:20,bufferAheadToKeep:80,jumpGaps:!0,smallGapLimit:1.5,stableBufferTime:12,bufferTimeAtTopQuality:30,bufferTimeAtTopQualityLongForm:60,longFormContentDurationThreshold:600,wallclockTimeUpdateInterval:50,lowLatencyEnabled:!1,keepProtectionMediaKeys:!1,useManifestDateHeaderTimeSource:!0,useSuggestedPresentationDelay:!1,manifestUpdateRetryInterval:100,liveCatchUpMinDrift:.02,liveCatchUpMaxDrift:0,liveCatchUpPlaybackRate:.5,lastBitrateCachingInfo:{enabled:!0,ttl:36e4},lastMediaSettingsCachingInfo:{enabled:!0,ttl:36e4},cacheLoadThresholds:{video:50,audio:5},retryIntervals:(e={},i(e,l.HTTPRequest.MPD_TYPE,500),i(e,l.HTTPRequest.XLINK_EXPANSION_TYPE,500),i(e,l.HTTPRequest.MEDIA_SEGMENT_TYPE,1e3),i(e,l.HTTPRequest.INIT_SEGMENT_TYPE,1e3),i(e,l.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,1e3),i(e,l.HTTPRequest.INDEX_SEGMENT_TYPE,1e3),i(e,l.HTTPRequest.OTHER_TYPE,1e3),e),retryAttempts:(t={},i(t,l.HTTPRequest.MPD_TYPE,3),i(t,l.HTTPRequest.XLINK_EXPANSION_TYPE,1),i(t,l.HTTPRequest.MEDIA_SEGMENT_TYPE,3),i(t,l.HTTPRequest.INIT_SEGMENT_TYPE,3),i(t,l.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,3),i(t,l.HTTPRequest.INDEX_SEGMENT_TYPE,3),i(t,l.HTTPRequest.OTHER_TYPE,3),t),abr:{movingAverageMethod:u.default.MOVING_AVERAGE_SLIDING_WINDOW,ABRStrategy:u.default.ABR_STRATEGY_DYNAMIC,bandwidthSafetyFactor:.9,useDefaultABRRules:!0,useBufferOccupancyABR:!1,useDeadTimeLatency:!0,limitBitrateByPortal:!1,usePixelRatioInLimitBitrateByPortal:!1,maxBitrate:{audio:-1,video:-1},minBitrate:{audio:-1,video:-1},maxRepresentationRatio:{audio:1,video:1},initialBitrate:{audio:-1,video:-1},initialRepresentationRatio:{audio:-1,video:-1},autoSwitchBitrate:{audio:!0,video:!0}}}},r=o.default.clone(n);return{get:function(){return r},update:function(e){"object"==typeof e&&!function e(t,n,r){for(var i in t)t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&("object"==typeof t[i]?e(t[i],n[i],r.slice()+i+"."):n[i]=o.default.clone(t[i]))}(e,r,"")},reset:function(){r=o.default.clone(n)}}}f.__dashjs_factory_name="Settings";var d=a.default.getSingletonFactory(f);n.default=d,t.exports=n.default},{107:107,189:189,46:46,48:48,50:50}],50:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(o,null,[{key:"mixin",value:function(e,t,n){var r=void 0,i={};if(e)for(var a in t)t.hasOwnProperty(a)&&(r=t[a],a in e&&(e[a]===r||a in i&&i[a]===r)||("object"==typeof e[a]&&null!==e[a]?e[a]=o.mixin(e[a],r,n):e[a]=n(r)));return e}},{key:"clone",value:function(e){if(!e||"object"!=typeof e)return e;var t=void 0;if(e instanceof Array){t=[];for(var n=0,r=e.length;n<r;++n)n in e&&t.push(o.clone(e[n]))}else t={};return o.mixin(t,e,o.clone)}}]),o);function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o)}n.default=i,t.exports=n.default},{}],51:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getVersionString=function(){return r};var r="3.0.0"},{}],52:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(53);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(a.prototype),"constructor",this).call(this),this.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE=10,this.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE=11,this.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE=12,this.SEGMENTS_UPDATE_FAILED_ERROR_CODE=13,this.SEGMENTS_UNAVAILABLE_ERROR_CODE=14,this.SEGMENT_BASE_LOADER_ERROR_CODE=15,this.TIME_SYNC_FAILED_ERROR_CODE=16,this.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE=17,this.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE=18,this.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=19,this.APPEND_ERROR_CODE=20,this.REMOVE_ERROR_CODE=21,this.DATA_UPDATE_FAILED_ERROR_CODE=22,this.CAPABILITY_MEDIASOURCE_ERROR_CODE=23,this.CAPABILITY_MEDIAKEYS_ERROR_CODE=24,this.DOWNLOAD_ERROR_ID_MANIFEST_CODE=25,this.DOWNLOAD_ERROR_ID_SIDX_CODE=26,this.DOWNLOAD_ERROR_ID_CONTENT_CODE=27,this.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE=28,this.DOWNLOAD_ERROR_ID_XLINK_CODE=29,this.MANIFEST_ERROR_ID_CODEC_CODE=30,this.MANIFEST_ERROR_ID_PARSE_CODE=31,this.MANIFEST_ERROR_ID_NOSTREAMS_CODE=32,this.TIMED_TEXT_ERROR_ID_PARSE_CODE=33,this.MANIFEST_ERROR_ID_MULTIPLEXED_CODE=34,this.MEDIASOURCE_TYPE_UNSUPPORTED_CODE=35,this.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE="parsing failed for ",this.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading manifest: ",this.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading Xlink element: ",this.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE="Segments update failed",this.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE="no segments are available yet",this.SEGMENT_BASE_LOADER_ERROR_MESSAGE="error loading segments",this.TIME_SYNC_FAILED_ERROR_MESSAGE="Failed to synchronize time",this.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE="request is null",this.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE="Failed to resolve a valid URL",this.APPEND_ERROR_MESSAGE="chunk is not defined",this.REMOVE_ERROR_MESSAGE="buffer is not defined",this.DATA_UPDATE_FAILED_ERROR_MESSAGE="Data update failed",this.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE="mediasource is not supported",this.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE="mediakeys is not supported",this.TIMED_TEXT_ERROR_MESSAGE_PARSE="parsing error :",this.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE="Error creating source buffer of type : "}var o=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((r=i)&&r.__esModule?r:{default:r}).default),a);n.default=o,t.exports=n.default},{53:53}],53:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var i in e)!e.hasOwnProperty(i)||this[i]&&!n||r&&-1===e[i].indexOf("public_")||(this[i]=e[i])}}}]),a);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}n.default=i,t.exports=n.default},{}],54:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(56),a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,((r=i)&&r.__esModule?r:{default:r}).default),o);function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.BUFFERING_COMPLETED="bufferingCompleted",this.BUFFER_CLEARED="bufferCleared",this.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",this.BYTES_APPENDED="bytesAppended",this.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",this.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",this.CURRENT_TRACK_CHANGED="currentTrackChanged",this.DATA_UPDATE_COMPLETED="dataUpdateCompleted",this.DATA_UPDATE_STARTED="dataUpdateStarted",this.INITIALIZATION_LOADED="initializationLoaded",this.INIT_FRAGMENT_LOADED="initFragmentLoaded",this.INIT_REQUESTED="initRequested",this.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",this.LIVE_EDGE_SEARCH_COMPLETED="liveEdgeSearchCompleted",this.LOADING_COMPLETED="loadingCompleted",this.LOADING_PROGRESS="loadingProgress",this.LOADING_DATA_PROGRESS="loadingDataProgress",this.LOADING_ABANDONED="loadingAborted",this.MANIFEST_UPDATED="manifestUpdated",this.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",this.QUOTA_EXCEEDED="quotaExceeded",this.REPRESENTATION_UPDATED="representationUpdated",this.SEGMENTS_LOADED="segmentsLoaded",this.SERVICE_LOCATION_BLACKLIST_ADD="serviceLocationBlacklistAdd",this.SERVICE_LOCATION_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",this.SOURCEBUFFER_REMOVE_COMPLETED="sourceBufferRemoveCompleted",this.STREAMS_COMPOSED="streamsComposed",this.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",this.STREAM_COMPLETED="streamCompleted",this.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",this.TIMED_TEXT_REQUESTED="timedTextRequested",this.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",this.URL_RESOLUTION_FAILED="urlResolutionFailed",this.VIDEO_CHUNK_RECEIVED="videoChunkReceived",this.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",this.XLINK_ELEMENT_LOADED="xlinkElementLoaded",this.XLINK_READY="xlinkReady"}n.default=a,t.exports=n.default},{56:56}],55:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(54);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(a.prototype),"constructor",this).apply(this,arguments)}var o=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((r=i)&&r.__esModule?r:{default:r}).default),a);n.default=o,t.exports=n.default},{54:54}],56:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var i in e)!e.hasOwnProperty(i)||this[i]&&!n||r&&-1===e[i].indexOf("public_")||(this[i]=e[i])}}}]),a);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}n.default=i,t.exports=n.default},{}],57:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var h=r(e(62)),p=r(e(93)),g=r(e(89)),m=r(e(95)),_=r(e(88)),w=r(e(86)),i=r(e(48)),D=r(e(65));function a(){var e,v=void 0,E=void 0,T=void 0,l=void 0,y=void 0,i=void 0,t=this.context;function a(e){return e&&e.streamInfo&&void 0!==e.streamInfo.id&&T[e.streamInfo.id]?T[e.streamInfo.id][e.index]:null}function s(e,t,n){var r,i=E[0].mpd.manifest,a=v.getAdaptationsForType(i,e,t);if(!a||0===a.length)return null;if(1<a.length&&n){var o=f(n,t);if(l[n.id]&&l[n.id][t])for(var s=0,u=a.length;s<u;s++)if(l[n.id][t].isMediaInfoEqual(o[s]))return a[s];for(s=0,u=a.length;s<u;s++)if(r=a[s],v.getRolesForAdaptation(r).filter(function(e){return e.value===h.default.MAIN})[0])return a[s]}return a[0]}function f(e,t,n){var r,i=E,a=n,o=[],s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,c=void 0;if(a)R(),i=A(a);else{if(!(0<E.length))return o;a=E[0].mpd.manifest}var h=b(e,i);h&&(c=h.id);var p=v.getAdaptationsForType(a,e.index,t!==y.EMBEDDED_TEXT?t:y.VIDEO);if(!p||0===p.length)return o;for(T[c]=T[c]||v.getAdaptationsForPeriod(h),f=0,r=p.length;f<r;f++)if(s=p[f],l=v.getIndexForAdaptation(s,a,e.index),u=I(T[c][l]),t===y.EMBEDDED_TEXT){var g=u.accessibility.length;for(d=0;d<g;d++)if(u){var m=u.accessibility[d];if(0===m.indexOf("cea-608:")){var _=m.substring(8).split(";");if("CC"===_[0].substring(0,2))for(d=0;d<_.length;d++)S(u=u||I.call(this,T[c][l]),_[d].substring(0,3),_[d].substring(4)),o.push(u),u=null;else for(d=0;d<_.length;d++)S(u=u||I.call(this,T[c][l]),"CC"+(d+1),_[d]),o.push(u),u=null}else 0===m.indexOf("cea-608")&&(S(u,y.CC1,"eng"),o.push(u),u=null)}}else t===y.IMAGE?(u.type=y.IMAGE,o.push(u),u=null):u&&o.push(u);return o}function A(e){return n(r(e))}function n(e){var t=e||E[0].mpd;return v.getRegularPeriods(t)}function r(e){var t=e||E[0].mpd.manifest;return v.getMpd(t)}function o(){E=[],T={},l={}}function b(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r];if(e.id===i.id)return i}return null}function I(e){var t,r=new g.default,n=e.period.mpd.manifest.Period_asArray[e.period.index].AdaptationSet_asArray[e.index];return r.id=e.id,r.index=e.index,r.type=e.type,r.streamInfo=u(e.period),r.representationCount=v.getRepresentationCount(n),r.labels=v.getLabelsForAdaptation(n),r.lang=v.getLanguageForAdaptation(n),t=v.getViewpointForAdaptation(n),r.viewpoint=t?t.value:void 0,r.accessibility=v.getAccessibilityForAdaptation(n).map(function(e){var t=e.value,n=t;return e.schemeIdUri&&0<=e.schemeIdUri.search("cea-608")&&void 0!==i&&(n=t?"cea-608:"+t:"cea-608",r.embeddedCaptions=!0),n}),r.audioChannelConfiguration=v.getAudioChannelConfigurationForAdaptation(n).map(function(e){return e.value}),r.roles=v.getRolesForAdaptation(n).map(function(e){return e.value}),r.codec=v.getCodec(n),r.mimeType=v.getMimeType(n),r.contentProtection=v.getContentProtectionData(n),r.bitrateList=v.getBitrateListForAdaptation(n),r.contentProtection&&r.contentProtection.forEach(function(e){e.KID=v.getKID(e)}),r.isText=v.getIsTextTrack(r.mimeType),r}function S(e,t,n){e.id=t,e.index=100+parseInt(t.substring(2,3)),e.type=y.EMBEDDED_TEXT,e.codec="cea-608-in-SEI",e.isText=!0,e.isEmbedded=!0,e.lang=n,e.roles=["caption"]}function u(e){var t=new m.default;return t.id=e.id,t.index=e.index,t.start=e.start,t.duration=e.duration,t.manifestInfo=function(e){var t=new _.default;return t.DVRWindowSize=e.timeShiftBufferDepth,t.loadedTime=e.manifest.loadedTime,t.availableFrom=e.availabilityStartTime,t.minBufferTime=e.manifest.minBufferTime,t.maxFragmentDuration=e.maxSegmentDuration,t.duration=v.getDuration(e.manifest),t.isDynamic=v.getIsDynamic(e.manifest),t}(e.mpd),t.isLast=1===e.mpd.manifest.Period_asArray.length||Math.abs(t.start+t.duration-t.manifestInfo.duration)<1,t}function R(){if(!y)throw new Error("setConfig function has to be called previously")}function d(e){return 0===E.length?null:E[0].mpd.manifest.Period_asArray[e]}function c(e,t,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=void 0;if(e)for(r=e.AdaptationSet_asArray,o=0;o<r.length;o+=1)for(a=r[o].Representation_asArray,s=0;s<a.length;s+=1)if(t===(i=a[s]).id)return n?s:i;return null}return e={getBandwidthForRepresentation:function(e,t){var n;return(n=c(d(t),e))?n.bandwidth:null},getIndexForRepresentation:function(e,t){return function(e,t){var n=c(e,t,!0);return null!==n?n:-1}(d(t),e)},getMaxIndexForBufferType:function(e,t){return function(e,t){var n,r=void 0,i=void 0,a=void 0;if(!e||!t)return-1;for(n=e.AdaptationSet_asArray,a=0;a<n.length;a+=1)if(r=n[a],i=r.Representation_asArray,v.getIsTypeOf(r,t))return i.length;return-1}(d(t),e)},convertDataToRepresentationInfo:function(e){var t=new p.default,n=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index],r=v.getRepresentationFor(e.index,n);return t.id=e.id,t.quality=e.index,t.bandwidth=v.getBandwidth(r),t.DVRWindow=e.segmentAvailabilityRange,t.fragmentDuration=e.segmentDuration||(e.segments&&0<e.segments.length?e.segments[0].duration:NaN),t.MSETimeOffset=e.MSETimeOffset,t.useCalculatedLiveEdgeTime=e.useCalculatedLiveEdgeTime,t.mediaInfo=I(e.adaptation),t},getDataForMedia:a,getStreamsInfo:function(e,t){var n=[],r=E;e&&(R(),r=A(e)),t=t||r.length;for(var i=0;i<t;i++)n.push(u(r[i]));return n},getMediaInfoForType:function(e,t){if(0===E.length)return null;var n=E[0].mpd.manifest,r=s(e.index,t,e);if(!r)return null;var i=b(e,E),a=i.id,o=v.getIndexForAdaptation(r,n,e.index);return T[a]=T[a]||v.getAdaptationsForPeriod(i),I(T[a][o])},getAllMediaInfoForType:f,getAdaptationForType:s,getRealAdaptation:function(e,t){var n,r=void 0,i=b(e,E);return n=t?t.id:null,0<E.length&&(r=n?v.getAdaptationForId(n,E[0].mpd.manifest,i.index):v.getAdaptationForIndex(t.index,E[0].mpd.manifest,i.index)),r},getVoRepresentations:function(e){var t=a(e);return v.getRepresentationsForAdaptation(t)},getEventsFor:function(e,t){var n=[];if(0===E.length)return n;var r=E[0].mpd.manifest;return e instanceof m.default?n=v.getEventsForPeriod(b(e,E)):e instanceof g.default?n=v.getEventStreamForAdaptationSet(r,a(e)):e instanceof p.default&&(n=v.getEventStreamForRepresentation(r,t)),n},getEvent:function(e,t,n){if(!e||!t)return null;var r=new w.default,i=e.scheme_id_uri,a=e.value,o=e.timescale,s=e.presentation_time_delta,u=e.event_duration,l=e.id,f=e.message_data,d=n*o+s;return t[i+"/"+a]?(r.eventStream=t[i+"/"+a],r.eventStream.value=a,r.eventStream.timescale=o,r.duration=u,r.id=l,r.presentationTime=d,r.messageData=f,r.presentationTimeDelta=s,r):null},setConfig:function(e){e&&(e.constants&&(y=e.constants),e.cea608parser&&(i=e.cea608parser),e.errHandler&&v.setConfig({errHandler:e.errHandler}),e.BASE64&&v.setConfig({BASE64:e.BASE64}))},updatePeriods:function(e){if(!e)return null;R(),E=A(e),T={}},setCurrentMediaInfo:function(e,t,n){l[e]=l[e]||{},l[e][t]=l[e][t]||{},l[e][t]=n},getUseCalculatedLiveEdgeTimeForMediaInfo:function(e){var t=a(e);return v.getUseCalculatedLiveEdgeTimeForAdaptation(t)},getIsTextTrack:function(e){return v.getIsTextTrack(e)},getUTCTimingSources:function(){var e=E[0].mpd.manifest;return v.getUTCTimingSources(e)},getSuggestedPresentationDelay:function(){var e=E[0].mpd;return v.getSuggestedPresentationDelay(e)},getAvailabilityStartTime:function(e){var t=e||E[0].mpd;return v.getAvailabilityStartTime(t)},getIsDynamic:function(e){var t=e||E[0].mpd.manifest;return v.getIsDynamic(t)},getDuration:function(e){var t=e||E[0].mpd.manifest;return v.getDuration(t)},getRegularPeriods:n,getMpd:r,getLocation:function(e){return v.getLocation(e)},getManifestUpdatePeriod:function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1];return v.getManifestUpdatePeriod(e,t)},getIsDVB:function(e){return v.hasProfile(e,"urn:dvb:dash:profile:dvb-dash:2014")},getBaseURLsFromElement:function(e){return v.getBaseURLsFromElement(e)},getRepresentationSortFunction:function(){return v.getRepresentationSortFunction()},getCodec:function(e,t,n){return v.getCodec(e,t,n)},reset:o},v=(0,D.default)(t).getInstance(),o(),e}a.__dashjs_factory_name="DashAdapter",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{48:48,62:62,65:65,86:86,88:88,89:89,93:93,95:95}],58:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var R=r(e(62)),w=r(e(175)),D=r(e(173)),N=e(189),M=r(e(55)),O=r(e(47)),C=r(e(52)),i=r(e(48)),P=r(e(46)),L=r(e(168)),x=r(e(92)),F=e(80),U=r(e(64));function a(e){e=e||{};var t=this.context,l=(0,O.default)(t).getInstance(),o=(0,L.default)(t).getInstance(),f=e.timelineConverter,n=e.dashMetrics,s=e.baseURLController,r=void 0,d=void 0,c=void 0,h=void 0,p=void 0,i=void 0,a=void 0,g=void 0;function m(){return a?a.getType():null}function _(){var e=a?a.getStreamInfo():null;return e?e.manifestInfo.isDynamic:null}function v(){return a?a.getMediaInfo():null}function u(){c=-1,h=null}function E(){u(),i=0,g=a=p=null}function T(e,t,n){var r=s.resolve(n.path),i=void 0,a=void 0;return r&&t!==r.url&&o.isRelative(t)?(i=r.url,a=r.serviceLocation,t&&(i=o.resolve(t,i))):i=t,!o.isRelative(i)&&(e.url=i,e.serviceLocation=a,!0)}function y(e){f.setExpectedLiveEdge(e),n.updateManifestUpdateInfo({presentationStartTime:e})}function A(e){if(null==e)return null;var t=new w.default,n=e.representation,r=n.adaptation.period.mpd.manifest.Period_asArray[n.adaptation.period.index].AdaptationSet_asArray[n.adaptation.index].Representation_asArray[n.index].bandwidth,i=e.media;return i=(0,F.replaceTokenForTemplate)(i,"Number",e.replacementNumber),i=(0,F.replaceTokenForTemplate)(i,"Time",e.replacementTime),i=(0,F.replaceTokenForTemplate)(i,"Bandwidth",r),i=(0,F.replaceIDForTemplate)(i,n.id),i=(0,F.unescapeDollarsInTemplate)(i),t.mediaType=m(),t.type=N.HTTPRequest.MEDIA_SEGMENT_TYPE,t.range=e.mediaRange,t.startTime=e.presentationStartTime,t.duration=e.duration,t.timescale=n.timescale,t.availabilityStartTime=e.availabilityStartTime,t.availabilityEndTime=e.availabilityEndTime,t.wallStartTime=e.wallStartTime,t.quality=n.index,t.index=e.availabilityIdx,t.mediaInfo=v(),t.adaptationIndex=n.adaptation.index,t.representationId=n.id,T(t,i,n)?t:void 0}function b(e){var t=!1;if(_()){if(h){var n=parseFloat((h.presentationStartTime-e.adaptation.period.start).toFixed(5)),r=0<h.duration?n+1.5*h.duration:n;t=e.adaptation.period.duration<=r}}else c>=e.availableSegmentsNumber&&(t=!0);return t}function I(e){var t=e.representation;t.segments&&l.trigger(M.default.REPRESENTATION_UPDATED,{sender:this,representation:t})}function S(e){if(!e.error&&m()===e.mediaType){var t=e.segments,n=e.representation,r=[],i=0,a=void 0,o=void 0,s=void 0,u=void 0;for(a=0,o=t.length;a<o;a++)s=t[a],(u=(0,F.getTimeBasedSegment)(f,_(),n,s.startTime,s.duration,s.timescale,s.media,s.mediaRange,i))&&(r.push(u),u=null,i++);if(o=r.length,n.segmentAvailabilityRange={start:r[0].presentationStartTime,end:r[o-1].presentationStartTime},n.availableSegmentsNumber=o,(n.segments=r)&&0<r.length)if(_())y(r[r.length-1].presentationStartTime-8);x.default.hasInitialization(n)&&l.trigger(M.default.REPRESENTATION_UPDATED,{sender:this,representation:n})}}return r={initialize:function(e){a=e,g.initialize(_())},getStreamProcessor:function(){return a},getInitRequest:function(e){return e?function(e,t){var n=new w.default,r=e.adaptation.period,i=r.start,a=_();if(n.mediaType=t,n.type=N.HTTPRequest.INIT_SEGMENT_TYPE,n.range=e.range,n.availabilityStartTime=f.calcAvailabilityStartTimeFromPresentationTime(i,r.mpd,a),n.availabilityEndTime=f.calcAvailabilityEndTimeFromPresentationTime(i+r.duration,r.mpd,a),n.quality=e.index,n.mediaInfo=v(),n.representationId=e.id,T(n,e.initialization,e))return n.url=(0,F.replaceTokenForTemplate)(n.url,"Bandwidth",e.bandwidth),n}(e,m()):null},getSegmentRequestForTime:function(e,t,n){var r=void 0;if(!e||!e.segmentInfoType)return null;var i=m(),a=c,o=!!n&&n.keepIdx,s=!(!n||!n.ignoreIsFinished);p!==t&&(p=t,d.debug("Getting the request for "+i+" time : "+t));var u=g.getSegmentByTime(e,t);return u?(c=u.availabilityIdx,h=u,d.debug("Index for "+i+" time "+t+" is "+c),r=A(u)):!s&&b(e)&&((r=new w.default).action=w.default.ACTION_COMPLETE,r.index=c-1,r.mediaType=i,r.mediaInfo=v(),d.debug("Signal complete in getSegmentRequestForTime -",i)),o&&0<=a&&(c=e.segmentInfoType===R.default.SEGMENT_TIMELINE&&_()?c:a),r},getNextSegmentRequest:function(e){var t=void 0;if(!e||!e.segmentInfoType)return null;var n=h?h.mediaStartTime:-1,r=m();p=null;var i=c+1;d.debug("Getting the next request at index: "+i+", type: "+r);var a=g.getSegmentByIndex(e,i,n);return a||function(e){return!_()||_()&&isFinite(e.adaptation.period.duration)}(e)?(c=a?(t=A(a),a.availabilityIdx):i,a?t=A(h=a):b(e)&&((t=new w.default).action=w.default.ACTION_COMPLETE,t.index=c-1,t.mediaType=r,t.mediaInfo=v(),d.debug("Signal complete -",r)),t):(d.debug("No segment found at index: "+i+". Wait for next loop"),null)},updateRepresentation:function(e,t){var n=x.default.hasInitialization(e),r=x.default.hasSegments(e),i=void 0;if(e.segmentAvailabilityRange=f.calcSegmentAvailabilityRange(e,_()),e.segmentAvailabilityRange.end<e.segmentAvailabilityRange.start&&!e.useCalculatedLiveEdgeTime)return i=new D.default(C.default.SEGMENTS_UNAVAILABLE_ERROR_CODE,C.default.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE,{availabilityDelay:e.segmentAvailabilityRange.start-e.segmentAvailabilityRange.end}),void l.trigger(M.default.REPRESENTATION_UPDATED,{sender:this,representation:e,error:i});_()&&y(e.segmentAvailabilityRange.end),t||u(),g.update(e,m(),n,r),n&&r&&l.trigger(M.default.REPRESENTATION_UPDATED,{sender:this,representation:e})},setCurrentTime:function(e){i=e},getCurrentTime:function(){return i},reset:function(){E(),l.off(M.default.INITIALIZATION_LOADED,I,r),l.off(M.default.SEGMENTS_LOADED,S,r)},resetIndex:u},d=(0,P.default)(t).getInstance().getLogger(r),E(),g=(0,U.default)(t).create(e),l.on(M.default.INITIALIZATION_LOADED,I,r),l.on(M.default.SEGMENTS_LOADED,S,r),r}a.__dashjs_factory_name="DashHandler",n.default=i.default.getClassFactory(a),t.exports=n.default},{168:168,173:173,175:175,189:189,46:46,47:47,48:48,52:52,55:55,62:62,64:64,80:80,92:92}],59:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var c=r(e(107)),h=e(189),i=r(e(48)),p=r(e(108)),g=r(e(78)),m=r(e(126)),_=e(191);function a(e){e=e||{};var t,n=this.context,i=void 0,a=void 0,o=void 0,s=e.metricsModel;function r(e,t,n){return f(s.getMetricsFor(e,t),n)}function u(e,t){var n=s.getMetricsFor(e,t);if(!n)return null;var r=n.HttpList,i=null,a=void 0;if(!r||r.length<=0)return null;for(a=r.length-1;0<=a;){if(r[a].responsecode){i=r[a];break}a--}return i}function l(e){var t=s.getMetricsFor(e,!0);return t&&t.HttpList?t.HttpList:[]}function f(e,t){if(!e)return null;var n=e[t];return!n||n.length<=0?null:n[n.length-1]}function d(e){var t={};if(!e)return t;for(var n=e.trim().split("\r\n"),r=0,i=n.length;r<i;r++){var a=n[r],o=a.indexOf(": ");0<o&&(t[a.substring(0,o)]=a.substring(o+2))}return t}return t={getCurrentRepresentationSwitch:function(e,t){return f(s.getMetricsFor(e,t),p.default.TRACK_SWITCH)},getLatestBufferInfoVO:r,getCurrentBufferLevel:function(e,t){var n=r(e,t,p.default.BUFFER_LEVEL);return n?g.default.round10(n.level/1e3,-3):0},getCurrentHttpRequest:u,getHttpRequests:l,getCurrentDroppedFrames:function(){return f(s.getMetricsFor(c.default.VIDEO,!0),p.default.DROPPED_FRAMES)},getCurrentSchedulingInfo:function(e){return f(s.getMetricsFor(e,!0),p.default.SCHEDULING_INFO)},getCurrentDVRInfo:function(e){return f(e?s.getMetricsFor(e,!0):s.getMetricsFor(c.default.VIDEO,!0)||s.getMetricsFor(c.default.AUDIO,!0),p.default.DVR_INFO)},getCurrentManifestUpdate:function(){return f(s.getMetricsFor(c.default.STREAM),p.default.MANIFEST_UPDATE)},getLatestFragmentRequestHeaderValueByID:function(e,t){var n={},r=u(e,!0);return r&&(n=d(r._responseHeaders)),void 0===n[t]?null:n[t]},getLatestMPDRequestHeaderValueByID:function(e){var t,n={},r=void 0,i=void 0;for(i=(t=l(c.default.STREAM)).length-1;0<=i;i--)if((r=t[i]).type===h.HTTPRequest.MPD_TYPE){n=d(r._responseHeaders);break}return void 0===n[e]?null:n[e]},addRepresentationSwitch:function(e,t,n,r,i){s.addRepresentationSwitch(e,t,n,r,i)},addDVRInfo:function(e,t,n,r){s.addDVRInfo(e,t,n,r)},updateManifestUpdateInfo:function(e){var t=this.getCurrentManifestUpdate();s.updateManifestUpdateInfo(t,e)},addManifestUpdateStreamInfo:function(e){if(e){var t=this.getCurrentManifestUpdate();s.addManifestUpdateStreamInfo(t,e.id,e.index,e.start,e.duration)}},addManifestUpdateRepresentationInfo:function(e,t){if(e){var n=this.getCurrentManifestUpdate();s.addManifestUpdateRepresentationInfo(n,e.id,e.index,e.streamIndex,t,e.presentationTimeOffset,e.startNumber,e.fragmentInfoType)}},addManifestUpdate:function(e){s.addManifestUpdate(c.default.STREAM,e.type,e.requestStartDate,e.requestEndDate)},addHttpRequest:function(e,t,n,r,i){s.addHttpRequest(e.mediaType,null,e.type,e.url,t,e.serviceLocation||null,e.range||null,e.requestStartDate,e.firstByteDate,e.requestEndDate,n,e.duration,r,i)},addSchedulingInfo:function(e,t){s.addSchedulingInfo(e.mediaType,new Date,e.type,e.startTime,e.availabilityStartTime,e.duration,e.quality,e.range,t)},addRequestsQueue:function(e,t,n){s.addRequestsQueue(e,t,n)},addBufferLevel:function(e,t,n){s.addBufferLevel(e,t,n)},addBufferState:function(e,t,n){s.addBufferState(e,t,n)},addDroppedFrames:function(e){s.addDroppedFrames(c.default.VIDEO,e)},addPlayList:function(){o&&(s.addPlayList(o),o=null)},addDVBErrors:function(e){s.addDVBErrors(e)},createPlaylistMetrics:function(e,t){(o=new _.PlayList).start=new Date,o.mstart=e,o.starttype=t},createPlaylistTraceMetrics:function(e,t,n){!0===i&&(i=!1,(a=new _.PlayListTrace).representationid=e,a.start=new Date,a.mstart=t,a.playbackspeed=n)},updatePlayListTraceMetrics:function(e){if(a)for(var t in a)a[t]=e[t]},pushPlayListTraceMetrics:function(e,t){if(!1===i&&o&&a&&a.start){var n=a.start,r=e.getTime()-n.getTime();a.duration=r,a.stopreason=t,o.trace.push(a),i=!0}},clearAllCurrentMetrics:function(){s.clearAllCurrentMetrics()}},s=s||(0,m.default)(n).getInstance({settings:e.settings}),i=!0,o=a=null,t}a.__dashjs_factory_name="DashMetrics",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,108:108,126:126,189:189,191:191,48:48,78:78}],60:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=r(e(165)),y=r(e(94)),l=r(e(173)),f=r(e(55)),d=r(e(47)),c=r(e(155)),i=r(e(48)),h=r(e(46)),p=e(189),A=r(e(175)),b=r(e(130)),I=r(e(52));function a(){var e=this.context,s=(0,d.default)(e).getInstance(),t=void 0,g=void 0,n=void 0,m=void 0,r=void 0,i=void 0,a=void 0,u=void 0,_=void 0;function v(){if(!_||!_.hasOwnProperty("resolve"))throw new Error("setConfig function has to be called previously")}function E(e){if(e.url){var t=new A.default;return t.type=e.init?p.HTTPRequest.INIT_SEGMENT_TYPE:p.HTTPRequest.MEDIA_SEGMENT_TYPE,t.url=e.url,t.range=e.range.start+"-"+e.range.end,t.mediaType=e.mediaType,t}}function T(e,t,n){e?s.trigger(f.default.SEGMENTS_LOADED,{segments:e,representation:t,mediaType:n}):s.trigger(f.default.SEGMENTS_LOADED,{segments:null,representation:t,mediaType:n,error:new l.default(I.default.SEGMENT_BASE_LOADER_ERROR_CODE,I.default.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}return t={setConfig:function(e){e.baseURLController&&(_=e.baseURLController),e.dashMetrics&&(i=e.dashMetrics),e.mediaPlayerModel&&(a=e.mediaPlayerModel),e.errHandler&&(n=e.errHandler)},initialize:function(){m=(0,c.default)(e).getInstance(),r=(0,o.default)(e).getInstance(),u=(0,b.default)(e).create({errHandler:n,dashMetrics:i,mediaPlayerModel:a,requestModifier:r})},loadInitialization:function t(n,e){v();var r=null,i=n?_.resolve(n.path):null,a=e||{init:!0,url:i?i.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500,mediaType:n&&n.adaptation?n.adaptation.type:null};g.debug("Start searching for initialization.");var o=E(a);u.load({request:o,success:function(e){a.bytesLoaded=a.range.end,(r=m.findInitRange(e))?(n.range=r,s.trigger(f.default.INITIALIZATION_LOADED,{representation:n})):(a.range.end=a.bytesLoaded+a.bytesToLoad,t(n,a))},error:function(){s.trigger(f.default.INITIALIZATION_LOADED,{representation:n})}}),g.debug("Perform init search: "+a.url)},loadSegments:function l(f,d,e,t,c){if(v(),e&&(void 0===e.start||void 0===e.end)){var n=e?e.toString().split("-"):null;e=n?{start:parseFloat(n[0]),end:parseFloat(n[1])}:null}c=c||T;var o=null,h=null,r=!!e,i=f?_.resolve(f.path):null,p={init:!1,url:i?i.url:void 0,range:r?e:{start:0,end:1500},searching:!r,bytesLoaded:t?t.bytesLoaded:0,bytesToLoad:1500,mediaType:f&&f.adaptation?f.adaptation.type:null},a=E(p);u.load({request:a,success:function(e){var t=p.bytesToLoad,n=e.byteLength;if(p.bytesLoaded=p.range.end-p.range.start,o=m.parse(e),(h=o.getBox("sidx"))&&h.isComplete){var u=h.references,r=void 0,i=void 0;null!=u&&0<u.length&&(r=1===u[0].reference_type),r?function(){function e(e){e?(a=a.concat(e),n<=++o&&c(a,f,d)):c(null,f,d)}g.debug("Initiate multiple SIDX load."),p.range.end=p.range.start+h.size;var t=void 0,n=void 0,r=void 0,i=void 0,a=[],o=0,s=(h.offset||p.range.start)+h.size;for(t=0,n=u.length;t<n;t++)i=(r=s)+u[t].referenced_size-1,s+=u[t].referenced_size,l(f,null,{start:r,end:i},p,e)}():(g.debug("Parsing segments from SIDX."),i=function(e,t){for(var n=e.references,r=n.length,i=e.timescale,a=e.earliest_presentation_time,o=t.range.start+e.offset+e.first_offset+e.size,s=[],u=void 0,l=void 0,f=void 0,d=void 0,c=0;c<r;c++)f=n[c].subsegment_duration,d=n[c].referenced_size,(u=new y.default).duration=f,u.startTime=a,u.timescale=i,l=o+d-1,u.mediaRange=o+"-"+l,s.push(u),a+=f,o+=d;return s}(h,p),c(i,f,d))}else{if(h)p.range.start=h.offset||p.range.start,p.range.end=p.range.start+(h.size||t);else{if(n<p.bytesLoaded)return void c(null,f,d);var a=o.getLastBox();a&&a.size?(p.range.start=a.offset+a.size,p.range.end=p.range.start+t):p.range.end+=t}l(f,d,p.range,p,c)}},error:function(){c(null,f,d)}}),g.debug("Perform SIDX load: "+p.url)},reset:function(){u.abort(),r=m=n=u=null}},g=(0,h.default)(e).getInstance().getLogger(t),t}a.__dashjs_factory_name="SegmentBaseLoader",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{130:130,155:155,165:165,173:173,175:175,189:189,46:46,47:47,48:48,52:52,55:55,94:94}],61:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var d=r(e(55)),a=r(e(47)),T=r(e(159)),o=r(e(107)),i=r(e(48)),c=r(e(46)),h=r(e(165)),y=r(e(94)),A=e(189),b=r(e(175)),I=r(e(130)),S=r(e(173)),R=r(e(52));function s(){var p=this.context,s=(0,a.default)(p).getInstance(),e=void 0,g=void 0,m=void 0,t=void 0,n=void 0,r=void 0,i=void 0,_=void 0,u=void 0;function v(e,t,n,r){var i,a,o=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0;for(s=[],l=0,a=(i=function(e){var t=[],n=(0,T.default)(p).create({data:e}),r=void 0,i=void 0;for(n.consumeTagAndSize(m.Segment.Cues);n.moreData()&&n.consumeTagAndSize(m.Segment.Cues.CuePoint,!0);){for((r={}).CueTime=n.parseTag(m.Segment.Cues.CuePoint.CueTime),r.CueTracks=[];n.moreData()&&n.consumeTag(m.Segment.Cues.CuePoint.CueTrackPositions,!0);){var a=n.getMatroskaCodedNum(),o=n.getPos();if((i={}).Track=n.parseTag(m.Segment.Cues.CuePoint.CueTrackPositions.CueTrack),0===i.Track)throw new Error("Cue track cannot be 0");i.ClusterPosition=n.parseTag(m.Segment.Cues.CuePoint.CueTrackPositions.CueClusterPosition),r.CueTracks.push(i),n.setPos(o+a)}if(0===r.CueTracks.length)throw new Error("Mandatory cuetrack not found");t.push(r)}if(0===t.length)throw new Error("mandatory cuepoint not found");return t}(e)).length;l<a;l+=1)u=new y.default,o=0,o=l<i.length-1?i[l+1].CueTime-i[l].CueTime:r-i[l].CueTime,u.duration=o,u.startTime=i[l].CueTime,u.timescale=1e3,f=i[l].CueTracks[0].ClusterPosition+t,d=l<i.length-1?i[l+1].CueTracks[0].ClusterPosition+t-1:n-1,u.mediaRange=f+"-"+d,s.push(u);return g.debug("Parsed cues: "+s.length+" cues."),s}function l(){if(!u||!u.hasOwnProperty("resolve"))throw new Error("setConfig function has to be called previously")}function f(e,t,n){e?s.trigger(d.default.SEGMENTS_LOADED,{segments:e,representation:t,mediaType:n}):s.trigger(d.default.SEGMENTS_LOADED,{segments:null,representation:t,mediaType:n,error:new S.default(R.default.SEGMENT_BASE_LOADER_ERROR_CODE,R.default.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}function E(e){var t=new b.default;return t.type=e.init?A.HTTPRequest.INIT_SEGMENT_TYPE:A.HTTPRequest.MEDIA_SEGMENT_TYPE,t.url=e.url,t.range=e.range.start+"-"+e.range.end,t}return e={setConfig:function(e){if(!(e.baseURLController&&e.dashMetrics&&e.mediaPlayerModel&&e.errHandler))throw new Error(o.default.MISSING_CONFIG_ERROR);u=e.baseURLController,r=e.dashMetrics,i=e.mediaPlayerModel,t=e.errHandler},initialize:function(){n=(0,h.default)(p).getInstance(),_=(0,I.default)(p).create({errHandler:t,dashMetrics:r,mediaPlayerModel:i,requestModifier:n})},loadInitialization:function(e,t){l();var n=null,r=e?u.resolve(e.path):null,i=r?r.url:void 0,a=e?e.range.split("-"):null,o=t||{range:{start:a?parseFloat(a[0]):null,end:a?parseFloat(a[1]):null},request:n,url:i,init:!0};g.info("Start loading initialization."),n=E(o),_.load({request:n,success:function(){s.trigger(d.default.INITIALIZATION_LOADED,{representation:e})},error:function(){s.trigger(d.default.INITIALIZATION_LOADED,{representation:e})}}),g.debug("Perform init load: "+o.url)},loadSegments:function(t,n,r,i){l();var e=null,a=t?u.resolve(t.path):null,o=a?a.url:void 0;i=i||f,e=E({bytesLoaded:0,bytesToLoad:8192,range:{start:0,end:8192},request:e,url:o,init:!1}),g.debug("Parsing ebml header"),_.load({request:e,success:function(e){!function(e,t,n,r){if(e&&0!==e.byteLength){var i,a=(0,T.default)(p).create({data:e}),o=void 0,s=void 0,u=void 0,l=n?n.split("-"):null,f=null,d={url:t,range:{start:l?parseFloat(l[0]):null,end:l?parseFloat(l[1]):null},request:f};for(g.debug("Parse EBML header: "+d.url),a.skipOverElement(m.EBML),a.consumeTag(m.Segment),u=a.getMatroskaCodedNum(),u+=a.getPos(),i=a.getPos();a.moreData()&&!a.consumeTagAndSize(m.Segment.Info,!0);)if(!(a.skipOverElement(m.Segment.SeekHead,!0)||a.skipOverElement(m.Segment.Tracks,!0)||a.skipOverElement(m.Segment.Cues,!0)||a.skipOverElement(m.Void,!0)))throw new Error("no valid top level element found");for(;void 0===o;){var c=a.getMatroskaCodedNum(!0),h=a.getMatroskaCodedNum();switch(c){case m.Segment.Info.Duration.tag:o=a[m.Segment.Info.Duration.parse](h);break;default:a.setPos(a.getPos()+h)}}f=E(d);_.load({request:f,success:function(e){s=v(e,i,u,o),r(s)},error:function(){g.error("Download Error: Cues "+d.url),r(null)}}),g.debug("Perform cues load: "+d.url+" bytes="+d.range.start+"-"+d.range.end)}else r(null)}(e,o,r,function(e){i(e,t,n)})},error:function(){i(null,t,n)}})},reset:function(){n=t=null}},g=(0,c.default)(p).getInstance().getLogger(e),m={EBML:{tag:440786851,required:!0},Segment:{tag:408125543,required:!0,SeekHead:{tag:290298740,required:!0},Info:{tag:357149030,required:!0,TimecodeScale:{tag:2807729,required:!0,parse:"getMatroskaUint"},Duration:{tag:17545,required:!0,parse:"getMatroskaFloat"}},Tracks:{tag:374648427,required:!0},Cues:{tag:475249515,required:!0,CuePoint:{tag:187,required:!0,CueTime:{tag:179,required:!0,parse:"getMatroskaUint"},CueTrackPositions:{tag:183,required:!0,CueTrack:{tag:247,required:!0,parse:"getMatroskaUint"},CueClusterPosition:{tag:241,required:!0,parse:"getMatroskaUint"}}}}},Void:{tag:236,required:!0}},e}s.__dashjs_factory_name="WebmSegmentBaseLoader",n.default=i.default.getSingletonFactory(s),t.exports=n.default},{107:107,130:130,159:159,165:165,173:173,175:175,189:189,46:46,47:47,48:48,52:52,55:55,94:94}],62:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.init()}Object.defineProperty(n,"__esModule",{value:!0});var a=new(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(i,[{key:"init",value:function(){this.BASE_URL="BaseURL",this.SEGMENT_BASE="SegmentBase",this.SEGMENT_TEMPLATE="SegmentTemplate",this.SEGMENT_LIST="SegmentList",this.SEGMENT_URL="SegmentURL",this.SEGMENT_TIMELINE="SegmentTimeline",this.SEGMENT_PROFILES="segmentProfiles",this.ADAPTATION_SET="AdaptationSet",this.REPRESENTATION="Representation",this.REPRESENTATION_INDEX="RepresentationIndex",this.SUB_REPRESENTATION="SubRepresentation",this.INITIALIZATION="Initialization",this.INITIALIZATION_MINUS="initialization",this.MPD="MPD",this.PERIOD="Period",this.ASSET_IDENTIFIER="AssetIdentifier",this.EVENT_STREAM="EventStream",this.ID="id",this.PROFILES="profiles",this.SERVICE_LOCATION="serviceLocation",this.RANGE="range",this.INDEX="index",this.MEDIA="media",this.BYTE_RANGE="byteRange",this.INDEX_RANGE="indexRange",this.MEDIA_RANGE="mediaRange",this.VALUE="value",this.CONTENT_TYPE="contentType",this.MIME_TYPE="mimeType",this.BITSTREAM_SWITCHING="BitstreamSwitching",this.BITSTREAM_SWITCHING_MINUS="bitstreamSwitching",this.CODECS="codecs",this.DEPENDENCY_ID="dependencyId",this.MEDIA_STREAM_STRUCTURE_ID="mediaStreamStructureId",this.METRICS="Metrics",this.METRICS_MINUS="metrics",this.REPORTING="Reporting",this.WIDTH="width",this.HEIGHT="height",this.SAR="sar",this.FRAMERATE="frameRate",this.AUDIO_SAMPLING_RATE="audioSamplingRate",this.MAXIMUM_SAP_PERIOD="maximumSAPPeriod",this.START_WITH_SAP="startWithSAP",this.MAX_PLAYOUT_RATE="maxPlayoutRate",this.CODING_DEPENDENCY="codingDependency",this.SCAN_TYPE="scanType",this.FRAME_PACKING="FramePacking",this.AUDIO_CHANNEL_CONFIGURATION="AudioChannelConfiguration",this.CONTENT_PROTECTION="ContentProtection",this.ESSENTIAL_PROPERTY="EssentialProperty",this.SUPPLEMENTAL_PROPERTY="SupplementalProperty",this.INBAND_EVENT_STREAM="InbandEventStream",this.ACCESSIBILITY="Accessibility",this.ROLE="Role",this.RATING="Rating",this.CONTENT_COMPONENT="ContentComponent",this.SUBSET="Subset",this.LANG="lang",this.VIEWPOINT="Viewpoint",this.ROLE_ASARRAY="Role_asArray",this.ACCESSIBILITY_ASARRAY="Accessibility_asArray",this.AUDIOCHANNELCONFIGURATION_ASARRAY="AudioChannelConfiguration_asArray",this.CONTENTPROTECTION_ASARRAY="ContentProtection_asArray",this.MAIN="main",this.DYNAMIC="dynamic",this.MEDIA_PRESENTATION_DURATION="mediaPresentationDuration",this.MINIMUM_UPDATE_PERIOD="minimumUpdatePeriod",this.CODEC_PRIVATE_DATA="codecPrivateData",this.BANDWITH="bandwidth",this.SOURCE_URL="sourceURL",this.TIMESCALE="timescale",this.DURATION="duration",this.START_NUMBER="startNumber",this.PRESENTATION_TIME_OFFSET="presentationTimeOffset",this.AVAILABILITY_START_TIME="availabilityStartTime",this.AVAILABILITY_END_TIME="availabilityEndTime",this.TIMESHIFT_BUFFER_DEPTH="timeShiftBufferDepth",this.MAX_SEGMENT_DURATION="maxSegmentDuration",this.PRESENTATION_TIME="presentationTime",this.MIN_BUFFER_TIME="minBufferTime",this.MAX_SUBSEGMENT_DURATION="maxSubsegmentDuration",this.START="start",this.AVAILABILITY_TIME_OFFSET="availabilityTimeOffset",this.AVAILABILITY_TIME_COMPLETE="availabilityTimeComplete",this.CENC_DEFAULT_KID="cenc:default_KID",this.DVB_PRIORITY="dvb:priority",this.DVB_WEIGHT="dvb:weight",this.SUGGESTED_PRESENTATION_DELAY="suggestedPresentationDelay"}}]),i);n.default=a,t.exports=n.default},{}],63:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var w=r(e(107)),D=r(e(52)),N=r(e(62)),M=r(e(173)),O=r(e(47)),C=r(e(55)),i=r(e(48)),P=r(e(92));function a(){var e=this.context,l=(0,O.default)(e).getInstance(),n=void 0,f=void 0,d=void 0,c=void 0,h=void 0,p=void 0,g=void 0,m=void 0,i=void 0,_=void 0,v=void 0,t=void 0;function E(){if(!(p&&_&&m&&i&&t&&v))throw new Error(w.default.MISSING_CONFIG_ERROR)}function T(){return d}function y(){return h}function r(){d=!(f=null),c=[],_=i=m=p=null}function A(){E();var e=new Date,t=y(),n=1e3*m.getTime();t&&_.addRepresentationSwitch(t.adaptation.type,e,n,t.id)}function b(){E();var e=v.getStreamInfo(),t=e?e.manifestInfo:null,n=t?t.isDynamic:null,r=i.calcSegmentAvailabilityRange(h,n);_.addDVRInfo(v.getType(),m.getTime(),t,r)}function I(e){return null==e||e>=c.length?null:c[e]}function S(e){var t=e;d=!1,l.trigger(C.default.AST_IN_FUTURE,{delay:t}),setTimeout(function(){if(!T()){d=!0,l.trigger(C.default.DATA_UPDATE_STARTED,{sender:n}),c.forEach(function(e){e.segmentAvailabilityRange=null});for(var e=0;e<c.length;e++)g.updateRepresentation(c[e],!0)}},t)}function a(e){if(e.sender.getStreamProcessor()===v&&T())if(e.error)l.trigger(C.default.DATA_UPDATE_COMPLETED,{sender:this,error:e.error});else{var t=e.representation,n=_.getCurrentManifestUpdate(),r=!1,i=0,a=void 0,o=void 0;if(t.adaptation.period.mpd.manifest.type===N.default.DYNAMIC&&!t.adaptation.period.mpd.manifest.ignorePostponeTimePeriod){var s=t.segmentAvailabilityRange.end-t.segmentAvailabilityRange.start;i=1e3*(m.computeLiveDelay(h.segmentDuration,v.getStreamInfo().manifestInfo.DVRWindowSize)-s)}if(0<i)return b(),S(i),o=new M.default(D.default.SEGMENTS_UPDATE_FAILED_ERROR_CODE,D.default.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE),void l.trigger(C.default.DATA_UPDATE_COMPLETED,{sender:this,data:f,currentRepresentation:h,error:o});if(n){for(var u=0;u<n.representationInfo.length;u++)if((a=n.representationInfo[u]).index===t.index&&a.mediaType===v.getType()){r=!0;break}r||_.addManifestUpdateRepresentationInfo(t,v.getType())}!function(){for(var e=0,t=c.length;e<t;e++){var n=c[e].segmentInfoType;if(null===c[e].segmentAvailabilityRange||!P.default.hasInitialization(c[e])||(n===N.default.SEGMENT_BASE||n===N.default.BASE_URL)&&!c[e].segments)return!1}return!0}()||(d=!1,p.setPlaybackQuality(v.getType(),v.getStreamInfo(),function(e){return c.indexOf(e)}(h)),_.updateManifestUpdateInfo({latency:h.segmentAvailabilityRange.end-m.getTime()}),_.getCurrentRepresentationSwitch(y().adaptation.type)||A(),l.trigger(C.default.DATA_UPDATE_COMPLETED,{sender:this,data:f,currentRepresentation:h}))}}function o(e){e.isDynamic&&function(e){var t=void 0;E();for(var n=0,r=c.length;n<r;n++)(t=c[n]).segmentAvailabilityRange=i.calcSegmentAvailabilityRange(t,e)}(e.isDynamic)}function s(e){e.sender.getStreamProcessor()===v&&(t.getValue().doNotUpdateDVRWindowOnBufferUpdated||b())}function u(e){e.mediaType===v.getType()&&v.getStreamInfo().id===e.streamInfo.id&&(h=I(e.newQuality),A())}function R(e){if(e.newDuration){var t=y();if(t&&t.adaptation.period)t.adaptation.period.duration=e.newDuration}}return n={initialize:function(){g=v.getIndexHandler()},setConfig:function(e){e.abrController&&(p=e.abrController),e.dashMetrics&&(_=e.dashMetrics),e.playbackController&&(m=e.playbackController),e.timelineConverter&&(i=e.timelineConverter),e.manifestModel&&(t=e.manifestModel),e.streamProcessor&&(v=e.streamProcessor)},getData:function(){return f},isUpdating:T,updateData:function(e,t,n){E();var r=v.getStreamInfo(),i=p.getTopQualityIndexFor(n,r?r.id:null),a=p.getMinAllowedIndexFor(n),o=void 0,s=null;if(d=!0,l.trigger(C.default.DATA_UPDATE_STARTED,{sender:this}),c=t,o=null!==f&&f.id==e.id||n===w.default.FRAGMENTED_TEXT?p.getQualityFor(n):(s=p.getThroughputHistory().getAverageThroughput(n)||p.getInitialBitrateFor(n,r),p.getQualityForBitrate(v.getMediaInfo(),s)),void 0!==a&&o<a&&(o=a),i<o&&(o=i),h=I(o),f=e,n!==w.default.VIDEO&&n!==w.default.AUDIO&&n!==w.default.FRAGMENTED_TEXT)return d=!1,void l.trigger(C.default.DATA_UPDATE_COMPLETED,{sender:this,data:f,currentRepresentation:h});for(var u=0;u<c.length;u++)g.updateRepresentation(c[u],!0)},getStreamProcessor:function(){return v},getCurrentRepresentation:y,getRepresentationForQuality:I,reset:function(){l.off(C.default.QUALITY_CHANGE_REQUESTED,u,n),l.off(C.default.REPRESENTATION_UPDATED,a,n),l.off(C.default.WALLCLOCK_TIME_UPDATED,o,n),l.off(C.default.BUFFER_LEVEL_UPDATED,s,n),l.off(C.default.MANIFEST_VALIDITY_CHANGED,R,n),r()}},r(),l.on(C.default.QUALITY_CHANGE_REQUESTED,u,n),l.on(C.default.REPRESENTATION_UPDATED,a,n),l.on(C.default.WALLCLOCK_TIME_UPDATED,o,n),l.on(C.default.BUFFER_LEVEL_UPDATED,s,n),l.on(C.default.MANIFEST_VALIDITY_CHANGED,R,n),n}a.__dashjs_factory_name="RepresentationController",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,173:173,47:47,48:48,52:52,55:55,62:62,92:92}],64:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var d=r(e(62)),i=r(e(48)),c=r(e(83)),h=r(e(81)),p=r(e(77)),g=r(e(79)),m=r(e(60)),_=r(e(61));function a(t){t=t||{};var e,n,r=this.context,i=t.dashMetrics,a=t.mediaPlayerModel,o=t.errHandler,s=t.baseURLController,u=void 0,l=void 0;function f(e){return e.segments?u[d.default.SEGMENT_BASE]:u[e.segmentInfoType]}return e={initialize:function(e){l.initialize(),u[d.default.SEGMENT_TIMELINE]=(0,c.default)(r).create(t,e),u[d.default.SEGMENT_TEMPLATE]=(0,h.default)(r).create(t,e),u[d.default.SEGMENT_LIST]=(0,p.default)(r).create(t,e),u[d.default.SEGMENT_BASE]=(0,g.default)(r).create(t,e)},update:function(e,t,n,r){n||function(e){l.loadInitialization(e)}(e),r||function(e,t){l.loadSegments(e,t,e.indexRange)}(e,t)},getSegmentByIndex:function(e,t,n){var r=f(e);return r?r.getSegmentByIndex(e,t,n):null},getSegmentByTime:function(e,t){var n=f(e);return n?n.getSegmentByTime(e,t):null}},u={},(n=t.mimeType,l="webm"===(n?n.split("/")[1]:"").toLowerCase()?(0,_.default)(r).getInstance():(0,m.default)(r).getInstance()).setConfig({baseURLController:s,dashMetrics:i,mediaPlayerModel:a,errHandler:o}),e}a.__dashjs_factory_name="SegmentsController";var o=i.default.getClassFactory(a);n.default=o,t.exports=n.default},{48:48,60:60,61:61,62:62,77:77,79:79,81:81,83:83}],65:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var b=r(e(107)),I=r(e(62)),S=r(e(92)),R=r(e(84)),w=r(e(91)),i=r(e(90)),a=r(e(96)),D=r(e(86)),N=r(e(85)),M=r(e(87)),O=r(e(164)),C=r(e(168)),o=r(e(48)),P=r(e(46)),L=r(e(173)),x=r(e(52)),F=e(153);function s(){var e=void 0,l=void 0,f=void 0,d=void 0,o=this.context,s=(0,C.default)(o).getInstance(),h=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function u(e,t){var n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=!1,l=!1;if(!e)throw new Error("adaptation is not defined");if(!t)throw new Error("type is not defined");if(e.hasOwnProperty("ContentComponent_asArray")&&(a=e.ContentComponent_asArray),o=t!==b.default.TEXT?new RegExp(t):new RegExp("(vtt|ttml)"),e.Representation_asArray&&e.Representation_asArray.length&&0<e.Representation_asArray.length){var f=_(e.Representation_asArray[0]);if(f&&0<f.length&&0<=F.THUMBNAILS_SCHEME_ID_URIS.indexOf(f[0].schemeIdUri))return t===b.default.IMAGE;if(e.Representation_asArray[0].hasOwnProperty(I.default.CODECS)&&(0===(s=e.Representation_asArray[0].codecs).search(b.default.STPP)||0===s.search(b.default.WVTT)))return t===b.default.FRAGMENTED_TEXT}if(a){if(1<a.length)return t===b.default.MUXED;a[0]&&a[0].contentType===t&&(l=u=!0)}if(e.hasOwnProperty(I.default.MIME_TYPE)&&(u=o.test(e.mimeType),l=!0),!l)for(n=0,r=e.Representation_asArray&&e.Representation_asArray.length?e.Representation_asArray.length:0;!l&&n<r;)(i=e.Representation_asArray[n]).hasOwnProperty(I.default.MIME_TYPE)&&(u=o.test(i.mimeType),l=!0),n++;return u}function p(e){return"text/vtt"===e||"application/ttml+xml"===e}function t(){return function(e,t){return e.bandwidth-t.bandwidth}}function c(e){return e&&Array.isArray(e.Representation_asArray)&&e.Representation_asArray.sort(function(e,t){return e.bandwidth-t.bandwidth}),e}function g(e,t){return e&&e.Period_asArray&&h(t)&&e.Period_asArray[t]?e.Period_asArray[t].AdaptationSet_asArray:[]}function m(e){var t=!1;return e&&e.hasOwnProperty("type")&&(t=e.type===I.default.DYNAMIC),t}function _(e){return e&&e.EssentialProperty_asArray&&e.EssentialProperty_asArray.length?e.EssentialProperty_asArray.map(function(e){return{schemeIdUri:e.schemeIdUri,value:e.value}}):null}function v(e){if(e&&e.period&&h(e.period.index)){var t=e.period.mpd.manifest.Period_asArray[e.period.index];if(t&&t.AdaptationSet_asArray&&h(e.index))return c(t.AdaptationSet_asArray[e.index])}}function E(e){var t=e.S_asArray[e.S_asArray.length-1];return!t.hasOwnProperty("r")||0<=t.r}function T(e,t){if(!e)throw new Error("Period cannot be null or undefined");var n=w.default.DEFAULT_ID+"_"+t;return e.hasOwnProperty(I.default.ID)&&0<e.id.length&&"__proto__"!==e.id&&(n=e.id),n}function y(e,t){var n=[],r=void 0;if(!e)return n;for(r=0;r<e.length;r++){var i=new M.default;if(i.timescale=1,i.representation=t,!e[r].hasOwnProperty(b.default.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");i.schemeIdUri=e[r].schemeIdUri,e[r].hasOwnProperty(I.default.TIMESCALE)&&(i.timescale=e[r].timescale),e[r].hasOwnProperty(I.default.VALUE)&&(i.value=e[r].value),n.push(i)}return n}function A(r){var i=[],e=r.BaseURL_asArray||[r.baseUri],a=!1;return e.some(function(e){if(e){var t=new N.default,n=e.__text||e;return s.isRelative(n)&&(a=!0,r.baseUri&&(n=s.resolve(n,r.baseUri))),t.url=n,e.hasOwnProperty(I.default.SERVICE_LOCATION)&&e.serviceLocation.length?t.serviceLocation=e.serviceLocation:t.serviceLocation=n,e.hasOwnProperty(I.default.DVB_PRIORITY)&&(t.dvb_priority=e[I.default.DVB_PRIORITY]),e.hasOwnProperty(I.default.DVB_WEIGHT)&&(t.dvb_weight=e[I.default.DVB_WEIGHT]),e.hasOwnProperty(I.default.AVAILABILITY_TIME_OFFSET)&&(t.availabilityTimeOffset=e[I.default.AVAILABILITY_TIME_OFFSET]),e.hasOwnProperty(I.default.AVAILABILITY_TIME_COMPLETE)&&(t.availabilityTimeComplete="false"!==e[I.default.AVAILABILITY_TIME_COMPLETE]),i.push(t),a}}),i}return e={getIsTypeOf:u,getIsTextTrack:p,getLanguageForAdaptation:function(e){var t="";return e&&e.hasOwnProperty(I.default.LANG)&&(t=e.lang.replace(/[^A-Za-z0-9-]/g,"")),t},getViewpointForAdaptation:function(e){return e&&e.hasOwnProperty(I.default.VIEWPOINT)?e.Viewpoint:null},getRolesForAdaptation:function(e){return e&&e.hasOwnProperty(I.default.ROLE_ASARRAY)?e.Role_asArray:[]},getAccessibilityForAdaptation:function(e){return e&&e.hasOwnProperty(I.default.ACCESSIBILITY_ASARRAY)?e.Accessibility_asArray:[]},getAudioChannelConfigurationForAdaptation:function(e){return e&&e.hasOwnProperty(I.default.AUDIOCHANNELCONFIGURATION_ASARRAY)?e.AudioChannelConfiguration_asArray:[]},getAdaptationForIndex:function(e,t,n){var r=g(t,n);return 0<r.length&&h(e)?r[e]:null},getIndexForAdaptation:function(e,t,n){var r=g(t,n),i=r.length;if(e)for(var a=0;a<i;a++){if((0,O.default)(o).getInstance().areEqual(r[a],e))return a}return-1},getAdaptationForId:function(e,t,n){var r,i=g(t,n),a=void 0;for(a=0,r=i.length;a<r;a++)if(i[a].hasOwnProperty(I.default.ID)&&i[a].id===e)return i[a];return null},getAdaptationsForType:function(e,t,n){var r,i=g(e,t),a=void 0,o=[];for(a=0,r=i.length;a<r;a++)u(i[a],n)&&o.push(c(i[a]));return o},getCodec:function(e,t,n){var r=null;if(e&&e.Representation_asArray&&0<e.Representation_asArray.length){var i=h(t)&&0<=t&&t<e.Representation_asArray.length?e.Representation_asArray[t]:e.Representation_asArray[0];i&&(r=i.mimeType+';codecs="'+i.codecs+'"',n&&void 0!==i.width&&(r+=';width="'+i.width+'";height="'+i.height+'"'))}return r},getMimeType:function(e){return e&&e.Representation_asArray&&0<e.Representation_asArray.length?e.Representation_asArray[0].mimeType:null},getKID:function(e){return e&&e.hasOwnProperty(I.default.CENC_DEFAULT_KID)?e[I.default.CENC_DEFAULT_KID]:null},getLabelsForAdaptation:function(e){if(!e||!Array.isArray(e.Label_asArray))return[];for(var t=[],n=0;n<e.Label_asArray.length;n++)t.push({lang:e.Label_asArray[n].lang,text:e.Label_asArray[n].__text||e.Label_asArray[n]});return t},getContentProtectionData:function(e){return e&&e.hasOwnProperty(I.default.CONTENTPROTECTION_ASARRAY)&&0!==e.ContentProtection_asArray.length?e.ContentProtection_asArray:null},getIsDynamic:m,hasProfile:function(e,t){var n=!1;return e&&e.profiles&&0<e.profiles.length&&(n=-1!==e.profiles.indexOf(t)),n},getDuration:function(e){return e&&e.hasOwnProperty(I.default.MEDIA_PRESENTATION_DURATION)?e.mediaPresentationDuration:e&&"dynamic"==e.type?Number.POSITIVE_INFINITY:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE},getBandwidth:function(e){return e&&e.bandwidth?e.bandwidth:NaN},getManifestUpdatePeriod:function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=NaN;return e&&e.hasOwnProperty(I.default.MINIMUM_UPDATE_PERIOD)&&(n=e.minimumUpdatePeriod),isNaN(n)?n:Math.max(n-t,1)},getRepresentationCount:function(e){return e&&Array.isArray(e.Representation_asArray)?e.Representation_asArray.length:0},getBitrateListForAdaptation:function(e){var t=c(e);return(t&&Array.isArray(t.Representation_asArray)?t.Representation_asArray:[]).map(function(e){return{bandwidth:e.bandwidth,width:e.width||0,height:e.height||0,scanType:e.scanType||null}})},getRepresentationFor:function(e,t){return t&&t.Representation_asArray&&0<t.Representation_asArray.length&&h(e)?t.Representation_asArray[e]:null},getRepresentationsForAdaptation:function(e){var t,n,r=[],i=v(e),a=void 0,o=void 0;if(i&&i.Representation_asArray){if(e&&e.period&&h(e.period.index)){var s=A(e.period.mpd.manifest);s&&(o=s[0])}for(var u=0,l=i.Representation_asArray.length;u<l;++u){var f=i.Representation_asArray[u],d=new S.default;if(d.index=u,d.adaptation=e,f.hasOwnProperty(I.default.ID)&&(d.id=f.id),f.hasOwnProperty(I.default.CODECS)&&(d.codecs=f.codecs),f.hasOwnProperty(I.default.CODEC_PRIVATE_DATA)&&(d.codecPrivateData=f.codecPrivateData),f.hasOwnProperty(I.default.BANDWITH)&&(d.bandwidth=f.bandwidth),f.hasOwnProperty(I.default.WIDTH)&&(d.width=f.width),f.hasOwnProperty(I.default.HEIGHT)&&(d.height=f.height),f.hasOwnProperty(I.default.SCAN_TYPE)&&(d.scanType=f.scanType),f.hasOwnProperty(I.default.MAX_PLAYOUT_RATE)&&(d.maxPlayoutRate=f.maxPlayoutRate),f.hasOwnProperty(I.default.SEGMENT_BASE)?(a=f.SegmentBase,d.segmentInfoType=I.default.SEGMENT_BASE):f.hasOwnProperty(I.default.SEGMENT_LIST)?(a=f.SegmentList).hasOwnProperty(I.default.SEGMENT_TIMELINE)?(d.segmentInfoType=I.default.SEGMENT_TIMELINE,d.useCalculatedLiveEdgeTime=E(a.SegmentTimeline)):(d.segmentInfoType=I.default.SEGMENT_LIST,d.useCalculatedLiveEdgeTime=!0):f.hasOwnProperty(I.default.SEGMENT_TEMPLATE)?((a=f.SegmentTemplate).hasOwnProperty(I.default.SEGMENT_TIMELINE)?(d.segmentInfoType=I.default.SEGMENT_TIMELINE,d.useCalculatedLiveEdgeTime=E(a.SegmentTimeline)):d.segmentInfoType=I.default.SEGMENT_TEMPLATE,a.hasOwnProperty(I.default.INITIALIZATION_MINUS)&&(d.initialization=a.initialization.split("$Bandwidth$").join(f.bandwidth).split("$RepresentationID$").join(f.id))):d.segmentInfoType=I.default.BASE_URL,d.essentialProperties=_(f),a){if(a.hasOwnProperty(I.default.INITIALIZATION)){var c=a.Initialization;c.hasOwnProperty(I.default.SOURCE_URL)&&(d.initialization=c.sourceURL),c.hasOwnProperty(I.default.RANGE)&&(d.range=c.range)}else f.hasOwnProperty(I.default.MIME_TYPE)&&p(f.mimeType)&&(d.range=0);a.hasOwnProperty(I.default.TIMESCALE)&&(d.timescale=a.timescale),a.hasOwnProperty(I.default.DURATION)&&(d.segmentDuration=a.duration/d.timescale),a.hasOwnProperty(I.default.MEDIA)&&(d.media=a.media),a.hasOwnProperty(I.default.START_NUMBER)&&(d.startNumber=a.startNumber),a.hasOwnProperty(I.default.INDEX_RANGE)&&(d.indexRange=a.indexRange),a.hasOwnProperty(I.default.PRESENTATION_TIME_OFFSET)&&(d.presentationTimeOffset=a.presentationTimeOffset/d.timescale),a.hasOwnProperty(I.default.AVAILABILITY_TIME_OFFSET)?d.availabilityTimeOffset=a.availabilityTimeOffset:o&&void 0!==o.availabilityTimeOffset&&(d.availabilityTimeOffset=o.availabilityTimeOffset),a.hasOwnProperty(I.default.AVAILABILITY_TIME_COMPLETE)?d.availabilityTimeComplete="false"!==a.availabilityTimeComplete:o&&void 0!==o.availabilityTimeComplete&&(d.availabilityTimeComplete=o.availabilityTimeComplete)}d.MSETimeOffset=(void 0,n=(t=d).presentationTimeOffset,t.adaptation.period.start-n),d.path=[e.period.index,e.index,u],r.push(d)}}return r},getAdaptationsForPeriod:function(e){var t=e&&h(e.index)?e.mpd.manifest.Period_asArray[e.index]:null,n=[],r=void 0,i=void 0,a=void 0;if(t&&t.AdaptationSet_asArray)for(a=0;a<t.AdaptationSet_asArray.length;a++)i=t.AdaptationSet_asArray[a],r=new R.default,i.hasOwnProperty(I.default.ID)&&(r.id=i.id),r.index=a,r.period=e,u(i,b.default.MUXED)?r.type=b.default.MUXED:u(i,b.default.AUDIO)?r.type=b.default.AUDIO:u(i,b.default.VIDEO)?r.type=b.default.VIDEO:u(i,b.default.FRAGMENTED_TEXT)?r.type=b.default.FRAGMENTED_TEXT:u(i,b.default.IMAGE)?r.type=b.default.IMAGE:r.type=b.default.TEXT,n.push(r);return n},getRegularPeriods:function(e){var t,n=!!e&&m(e.manifest),r=[],i=null,a=null,o=null,s=null,u=void 0;for(u=0,t=e&&e.manifest&&e.manifest.Period_asArray?e.manifest.Period_asArray.length:0;u<t;u++)(a=e.manifest.Period_asArray[u]).hasOwnProperty(I.default.START)?(s=new w.default).start=a.start:null!==i&&i.hasOwnProperty(I.default.DURATION)&&null!==o?(s=new w.default).start=parseFloat((o.start+o.duration).toFixed(5)):0!==u||n||((s=new w.default).start=0),null!==o&&isNaN(o.duration)&&(null!==s?o.duration=parseFloat((s.start-o.start).toFixed(5)):l.warn("First period duration could not be calculated because lack of start and duration period properties. This will cause timing issues during playback")),null!==s&&(s.id=T(a,u),s.index=u,s.mpd=e,a.hasOwnProperty(I.default.DURATION)&&(s.duration=a.duration),r.push(s),i=a,o=s),s=a=null;return 0===r.length||null!==o&&isNaN(o.duration)&&(o.duration=parseFloat((function(e){!function(){if(!f||!f.hasOwnProperty("error"))throw new Error("setConfig function has to be called previously")}();var t=m(e.mpd.manifest),n=void 0;e.mpd.manifest.mediaPresentationDuration?n=e.mpd.manifest.mediaPresentationDuration:e.duration?n=e.duration:t?n=Number.POSITIVE_INFINITY:f.error(new L.default(x.default.MANIFEST_ERROR_ID_PARSE_CODE,"Must have @mediaPresentationDuration on MPD or an explicit @duration on the last period.",e));return n}(o)-o.start).toFixed(5))),r},getMpd:function(e){var t=new i.default;return e&&((t.manifest=e).hasOwnProperty(I.default.AVAILABILITY_START_TIME)?t.availabilityStartTime=new Date(e.availabilityStartTime.getTime()):e.loadedTime&&(t.availabilityStartTime=new Date(e.loadedTime.getTime())),e.hasOwnProperty(I.default.AVAILABILITY_END_TIME)&&(t.availabilityEndTime=new Date(e.availabilityEndTime.getTime())),e.hasOwnProperty(I.default.MINIMUM_UPDATE_PERIOD)&&(t.minimumUpdatePeriod=e.minimumUpdatePeriod),e.hasOwnProperty(I.default.MEDIA_PRESENTATION_DURATION)&&(t.mediaPresentationDuration=e.mediaPresentationDuration),e.hasOwnProperty(b.default.SUGGESTED_PRESENTATION_DELAY)&&(t.suggestedPresentationDelay=e.suggestedPresentationDelay),e.hasOwnProperty(I.default.TIMESHIFT_BUFFER_DEPTH)&&(t.timeShiftBufferDepth=e.timeShiftBufferDepth),e.hasOwnProperty(I.default.MAX_SEGMENT_DURATION)&&(t.maxSegmentDuration=e.maxSegmentDuration)),t},getEventsForPeriod:function(e){var t=e&&e.mpd&&e.mpd.manifest?e.mpd.manifest:null,n=t?t.Period_asArray:null,r=n&&e&&h(e.index)?n[e.index].EventStream_asArray:null,i=[],a=void 0,o=void 0;if(r)for(a=0;a<r.length;a++){var s=new M.default;if(s.period=e,s.timescale=1,!r[a].hasOwnProperty(b.default.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");for(s.schemeIdUri=r[a].schemeIdUri,r[a].hasOwnProperty(I.default.TIMESCALE)&&(s.timescale=r[a].timescale),r[a].hasOwnProperty(I.default.VALUE)&&(s.value=r[a].value),o=0;r[a].Event_asArray&&o<r[a].Event_asArray.length;o++){var u=new D.default;u.presentationTime=0,u.eventStream=s,r[a].Event_asArray[o].hasOwnProperty(I.default.PRESENTATION_TIME)&&(u.presentationTime=r[a].Event_asArray[o].presentationTime),r[a].Event_asArray[o].hasOwnProperty(I.default.DURATION)&&(u.duration=r[a].Event_asArray[o].duration),r[a].Event_asArray[o].hasOwnProperty(I.default.ID)&&(u.id=r[a].Event_asArray[o].id),r[a].Event_asArray[o].Signal&&r[a].Event_asArray[o].Signal.Binary?u.messageData=d.decodeArray(r[a].Event_asArray[o].Signal.Binary):u.messageData=r[a].Event_asArray[o].messageData||r[a].Event_asArray[o].__text,i.push(u)}}return i},getEventStreamForAdaptationSet:function(e,t){var n=void 0,r=void 0,i=void 0;return e&&e.Period_asArray&&t&&t.period&&h(t.period.index)&&(r=e.Period_asArray[t.period.index])&&r.AdaptationSet_asArray&&h(t.index)&&(i=r.AdaptationSet_asArray[t.index])&&(n=i.InbandEventStream_asArray),y(n,null)},getEventStreamForRepresentation:function(e,t){var n=void 0,r=void 0,i=void 0,a=void 0;return e&&e.Period_asArray&&t&&t.adaptation&&t.adaptation.period&&h(t.adaptation.period.index)&&(r=e.Period_asArray[t.adaptation.period.index])&&r.AdaptationSet_asArray&&h(t.adaptation.index)&&(i=r.AdaptationSet_asArray[t.adaptation.index])&&i.Representation_asArray&&h(t.index)&&(a=i.Representation_asArray[t.index])&&(n=a.InbandEventStream_asArray),y(n,t)},getUTCTimingSources:function(e){var t=m(e),n=!!e&&e.hasOwnProperty(I.default.AVAILABILITY_START_TIME),r=e?e.UTCTiming_asArray:null,i=[];return(t||n)&&r&&r.forEach(function(e){var t=new a.default;e.hasOwnProperty(b.default.SCHEME_ID_URI)&&(t.schemeIdUri=e.schemeIdUri,e.hasOwnProperty(I.default.VALUE)&&(t.value=e.value.toString(),i.push(t)))}),i},getBaseURLsFromElement:A,getRepresentationSortFunction:t,getLocation:function(e){if(e&&e.hasOwnProperty(b.default.LOCATION))return e.Location=e.Location_asArray[0],e.Location},getUseCalculatedLiveEdgeTimeForAdaptation:function(e){var t=v(e),n=t&&Array.isArray(t.Representation_asArray)?t.Representation_asArray[0]:null,r=void 0;if(n){if(n.hasOwnProperty(I.default.SEGMENT_LIST))return!(r=n.SegmentList).hasOwnProperty(I.default.SEGMENT_TIMELINE)||E(r.SegmentTimeline);if(n.hasOwnProperty(I.default.SEGMENT_TEMPLATE)&&(r=n.SegmentTemplate).hasOwnProperty(I.default.SEGMENT_TIMELINE))return E(r.SegmentTimeline)}return!1},getSuggestedPresentationDelay:function(e){return e&&e.hasOwnProperty(I.default.SUGGESTED_PRESENTATION_DELAY)?e.suggestedPresentationDelay:null},getAvailabilityStartTime:function(e){return e&&e.hasOwnProperty(I.default.AVAILABILITY_START_TIME)?e.availabilityStartTime.getTime():null},setConfig:function(e){e&&(e.errHandler&&(f=e.errHandler),e.BASE64&&(d=e.BASE64))}},l=(0,P.default)(o).getInstance().getLogger(e),e}s.__dashjs_factory_name="DashManifestModel",n.default=o.default.getSingletonFactory(s),t.exports=n.default},{107:107,153:153,164:164,168:168,173:173,46:46,48:48,52:52,62:62,84:84,85:85,86:86,87:87,90:90,91:91,92:92,96:96}],66:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),u=r(e(46)),l=r(e(76)),f=r(e(3)),d=r(e(75)),c=r(e(73)),h=r(e(72)),p=r(e(74)),g=r(e(69)),m=r(e(70));function a(){var e=this.context,t=void 0,a=void 0,n=void 0,o=void 0,s=void 0;return t={parse:function(e){var t,n=window.performance.now();if(!(t=o.xml_str2json(e)))throw new Error("parsing the manifest failed");var r=window.performance.now();s.run(t);var i=window.performance.now();return a.info("Parsing complete: ( xml2json: "+(r-n).toPrecision(3)+"ms, objectiron: "+(i-r).toPrecision(3)+"ms, total: "+((i-n)/1e3).toPrecision(3)+"s)"),t},getMatchers:function(){return n},getIron:function(){return s}},a=(0,u.default)(e).getInstance().getLogger(t),n=[new c.default,new h.default,new p.default,new d.default],o=new f.default({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:n}),s=(0,l.default)(e).create({adaptationset:new g.default,period:new m.default}),t}a.__dashjs_factory_name="DashParser",n.default=i.default.getClassFactory(a),t.exports=n.default},{3:3,46:46,48:48,69:69,70:70,72:72,73:73,74:74,75:75,76:76}],67:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"name",get:function(){return this._name}},{key:"merge",get:function(){return this._merge}}]),a);function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t;this._name=e,this._merge=(t=e)&&t.length&&t.charAt(0)===t.charAt(0).toUpperCase()}n.default=i,t.exports=n.default},{}],68:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a,o=e(67),s=(a=o)&&a.__esModule?a:{default:a},u=(r(l,[{key:"name",get:function(){return this._name}},{key:"children",get:function(){return this._children}},{key:"properties",get:function(){return this._properties}}]),l);function l(e,t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this._name=e||"",this._properties=[],this._children=n||[],Array.isArray(t)&&t.forEach(function(e){r._properties.push(new s.default(e))})}n.default=u,t.exports=n.default},{67:67}],69:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(e){return e&&e.__esModule?e:{default:e}}var i=r(e(68)),a=r(e(62)),o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,i.default),s);function s(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var e=[a.default.PROFILES,a.default.WIDTH,a.default.HEIGHT,a.default.SAR,a.default.FRAMERATE,a.default.AUDIO_SAMPLING_RATE,a.default.MIME_TYPE,a.default.SEGMENT_PROFILES,a.default.CODECS,a.default.MAXIMUM_SAP_PERIOD,a.default.START_WITH_SAP,a.default.MAX_PLAYOUT_RATE,a.default.CODING_DEPENDENCY,a.default.SCAN_TYPE,a.default.FRAME_PACKING,a.default.AUDIO_CHANNEL_CONFIGURATION,a.default.CONTENT_PROTECTION,a.default.ESSENTIAL_PROPERTY,a.default.SUPPLEMENTAL_PROPERTY,a.default.INBAND_EVENT_STREAM];(function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}})(Object.getPrototypeOf(s.prototype),"constructor",this).call(this,a.default.ADAPTATION_SET,e,[new i.default(a.default.REPRESENTATION,e,[new i.default(a.default.SUB_REPRESENTATION,e)])])}n.default=o,t.exports=n.default},{62:62,68:68}],70:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(e){return e&&e.__esModule?e:{default:e}}var i=r(e(68)),a=r(e(62)),o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,i.default),s);function s(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var e=[a.default.SEGMENT_BASE,a.default.SEGMENT_TEMPLATE,a.default.SEGMENT_LIST];(function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}})(Object.getPrototypeOf(s.prototype),"constructor",this).call(this,a.default.PERIOD,e,[new i.default(a.default.ADAPTATION_SET,e,[new i.default(a.default.REPRESENTATION,e)])])}n.default=o,t.exports=n.default},{62:62,68:68}],71:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"test",get:function(){return this._test}},{key:"converter",get:function(){return this._converter}}]),a);function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this._test=e,this._converter=t}n.default=i,t.exports=n.default},{}],72:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(71),a=(r=i)&&r.__esModule?r:{default:r},o=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})(?::?)([0-9]{2}))?/,s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,a.default),u);function u(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(u.prototype),"constructor",this).call(this,function(e){return o.test(e.value)},function(e){var t=o.exec(e),n=void 0;if(n=Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[4],10),parseInt(t[5],10),t[6]&&parseInt(t[6],10)||0,t[7]&&1e3*parseFloat(t[7])||0),t[9]&&t[10]){var r=60*parseInt(t[9],10)+parseInt(t[10],10);n+=("+"===t[8]?-1:1)*r*60*1e3}return new Date(n)})}n.default=s,t.exports=n.default},{71:71}],73:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(e){return e&&e.__esModule?e:{default:e}}var i=r(e(71)),a=r(e(107)),o=r(e(62)),s=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,i.default),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(l.prototype),"constructor",this).call(this,function(e){for(var t=[o.default.MIN_BUFFER_TIME,o.default.MEDIA_PRESENTATION_DURATION,o.default.MINIMUM_UPDATE_PERIOD,o.default.TIMESHIFT_BUFFER_DEPTH,o.default.MAX_SEGMENT_DURATION,o.default.MAX_SUBSEGMENT_DURATION,a.default.SUGGESTED_PRESENTATION_DELAY,o.default.START,a.default.START_TIME,o.default.DURATION],n=t.length,r=0;r<n;r++)if(e.nodeName===t[r])return s.test(e.value);return!1},function(e){var t=s.exec(e),n=31536e3*parseFloat(t[2]||0)+2592e3*parseFloat(t[4]||0)+86400*parseFloat(t[6]||0)+3600*parseFloat(t[8]||0)+60*parseFloat(t[10]||0)+parseFloat(t[12]||0);return void 0!==t[1]&&(n=-n),n})}n.default=u,t.exports=n.default},{107:107,62:62,71:71}],74:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(71),a=(r=i)&&r.__esModule?r:{default:r},o=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,a.default),u);function u(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(u.prototype),"constructor",this).call(this,function(e){return o.test(e.value)},function(e){return parseFloat(e)})}n.default=s,t.exports=n.default},{71:71}],75:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=r(e(71)),o=r(e(62)),s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u);function u(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(u.prototype),"constructor",this).call(this,function(e,t){var n,r=(a(n={},o.default.MPD,[o.default.ID,o.default.PROFILES]),a(n,o.default.PERIOD,[o.default.ID]),a(n,o.default.BASE_URL,[o.default.SERVICE_LOCATION,o.default.BYTE_RANGE]),a(n,o.default.SEGMENT_BASE,[o.default.INDEX_RANGE]),a(n,o.default.INITIALIZATION,[o.default.RANGE]),a(n,o.default.REPRESENTATION_INDEX,[o.default.RANGE]),a(n,o.default.SEGMENT_LIST,[o.default.INDEX_RANGE]),a(n,o.default.BITSTREAM_SWITCHING,[o.default.RANGE]),a(n,o.default.SEGMENT_URL,[o.default.MEDIA_RANGE,o.default.INDEX_RANGE]),a(n,o.default.SEGMENT_TEMPLATE,[o.default.INDEX_RANGE,o.default.MEDIA,o.default.INDEX,o.default.INITIALIZATION_MINUS,o.default.BITSTREAM_SWITCHING_MINUS]),a(n,o.default.ASSET_IDENTIFIER,[o.default.VALUE,o.default.ID]),a(n,o.default.EVENT_STREAM,[o.default.VALUE]),a(n,o.default.ADAPTATION_SET,[o.default.PROFILES,o.default.MIME_TYPE,o.default.SEGMENT_PROFILES,o.default.CODECS,o.default.CONTENT_TYPE]),a(n,o.default.FRAME_PACKING,[o.default.VALUE,o.default.ID]),a(n,o.default.AUDIO_CHANNEL_CONFIGURATION,[o.default.VALUE,o.default.ID]),a(n,o.default.CONTENT_PROTECTION,[o.default.VALUE,o.default.ID]),a(n,o.default.ESSENTIAL_PROPERTY,[o.default.VALUE,o.default.ID]),a(n,o.default.SUPPLEMENTAL_PROPERTY,[o.default.VALUE,o.default.ID]),a(n,o.default.INBAND_EVENT_STREAM,[o.default.VALUE,o.default.ID]),a(n,o.default.ACCESSIBILITY,[o.default.VALUE,o.default.ID]),a(n,o.default.ROLE,[o.default.VALUE,o.default.ID]),a(n,o.default.RATING,[o.default.VALUE,o.default.ID]),a(n,o.default.VIEWPOINT,[o.default.VALUE,o.default.ID]),a(n,o.default.CONTENT_COMPONENT,[o.default.CONTENT_TYPE]),a(n,o.default.REPRESENTATION,[o.default.ID,o.default.DEPENDENCY_ID,o.default.MEDIA_STREAM_STRUCTURE_ID]),a(n,o.default.SUBSET,[o.default.ID]),a(n,o.default.METRICS,[o.default.METRICS_MINUS]),a(n,o.default.REPORTING,[o.default.VALUE,o.default.ID]),n);if(r.hasOwnProperty(t)){var i=r[t];return void 0!==i&&0<=i.indexOf(e.name)}return!1},function(e){return String(e)})}n.default=s,t.exports=n.default},{62:62,71:71}],76:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(f){function u(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function l(e,t,n){for(var r=0,i=e.length;r<i;++r){var a=e[r];if(t[a.name])if(n[a.name]){if(a.merge){var o=t[a.name],s=n[a.name];"object"==typeof o&&"object"==typeof s?u(o,s):n[a.name]=o+s}}else n[a.name]=t[a.name]}}function d(e,t){for(var n=0,r=e.children.length;n<r;++n){var i=e.children[n],a=t[i.name+"_asArray"];if(a)for(var o=0,s=a.length;o<s;++o){var u=a[o];l(e.properties,t,u),d(i,u)}}}return{run:function(e){if(null===e||"object"!=typeof e)return e;if("period"in f)for(var t=f.period,n=e.Period_asArray,r=0,i=n.length;r<i;++r){var a=n[r];if(d(t,a),"adaptationset"in f){var o=a.AdaptationSet_asArray;if(o)for(var s=f.adaptationset,u=0,l=o.length;u<l;++u)d(s,o[u])}}return e}}}o.__dashjs_factory_name="ObjectIron";var s=a.default.getClassFactory(o);n.default=s,t.exports=n.default},{48:48}],77:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(107)),f=e(80);function o(e,s){var u=(e=e||{}).timelineConverter;function l(){if(!u||!u.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(a.default.MISSING_CONFIG_ERROR)}function i(e,t){if(l(),!e)throw new Error("no representation");var n=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,r=n.SegmentURL_asArray.length,i=e.startNumber,a=null;if(t<r){var o=n.SegmentURL_asArray[t];(a=(0,f.getIndexBasedSegment)(u,s,e,t)).replacementTime=(i+t-1)*e.segmentDuration,a.media=o.media?o.media:"",a.mediaRange=o.mediaRange,a.index=t,a.indexRange=o.indexRange}return e.availableSegmentsNumber=r,a}return{getSegmentByIndex:i,getSegmentByTime:function(e,t){if(l(),!e)throw new Error("no representation");var n=e.segmentDuration;if(isNaN(n))return null;var r=u.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return i(e,Math.floor(r/n))}}}o.__dashjs_factory_name="ListSegmentsGetter";var s=i.default.getClassFactory(o);n.default=s,t.exports=n.default},{107:107,48:48,80:80}],78:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,null,[{key:"round10",value:function(e,t){return function(e,t,n){return void 0!==n&&0!=+n?(n=+n,null===(t=+t)||isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n)))):Math[e](t)}("round",e,t)}}]),a);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}n.default=i,t.exports=n.default},{}],79:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),o=r(e(107));function a(e){var n=(e=e||{}).timelineConverter;function a(){if(!n||!n.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(o.default.MISSING_CONFIG_ERROR)}function r(e,t){if(a(),!e)throw new Error("no representation");var n=e.segments?e.segments.length:0,r=void 0;if(t<n&&(r=e.segments[t])&&r.availabilityIdx===t)return r;for(var i=0;i<n;i++)if((r=e.segments[i])&&r.availabilityIdx===t)return r;return null}return{getSegmentByIndex:r,getSegmentByTime:function(e,t){if(a(),!e)throw new Error("no representation");return r(e,function(e,t){var n=e.segments,r=n?n.length:null,i=-1,a=void 0,o=void 0,s=void 0,u=void 0,l=void 0;if(n&&0<r)for(l=0;l<r;l++)if(o=n[l],s=o.presentationStartTime,u=o.duration,s<=t+(a=u/2)&&t-a<s+u){i=o.availabilityIdx;break}return i}(e,n.calcPeriodRelativeTimeFromMpdRelativeTime(e,t)))}}}a.__dashjs_factory_name="SegmentBaseGetter";var s=i.default.getClassFactory(a);n.default=s,t.exports=n.default},{107:107,48:48}],80:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unescapeDollarsInTemplate=function(e){return e?e.split("$$").join("$"):e},n.replaceIDForTemplate=function(e,t){if(!t||!e||-1===e.indexOf("$RepresentationID$"))return e;var n=t.toString();return e.split("$RepresentationID$").join(n)},n.replaceTokenForTemplate=g,n.getIndexBasedSegment=function(e,t,n,r){var i,a,o=void 0;o=n.segmentDuration,isNaN(o)&&(o=n.adaptation.period.duration);i=parseFloat((n.adaptation.period.start+r*o).toFixed(5)),a=parseFloat((i+o).toFixed(5));var s=m(n,o,i,e.calcMediaTimeFromPresentationTime(i,n),e.calcAvailabilityStartTimeFromPresentationTime(i,n.adaptation.period.mpd,t),e,a,t,r);return _(e,n,s,t)?s:null},n.getTimeBasedSegment=function(e,t,n,r,i,a,o,s,u,l){var f,d,c=r/a,h=Math.min(i/a,n.adaptation.period.mpd.maxSegmentDuration),p=void 0;return f=e.calcPresentationTimeFromMediaTime(c,n),d=f+h,p=m(n,h,f,c,n.adaptation.period.mpd.manifest.loadedTime,e,d,t,u),_(e,n,p,t)?(p.replacementTime=l||r,o=g(o=g(o,"Number",p.replacementNumber),"Time",p.replacementTime),p.media=o,p.mediaRange=s,p):null};var r,i=e(94),f=(r=i)&&r.__esModule?r:{default:r};function d(e,t){for(;e.length<t;)e="0"+e;return e}function g(e,t,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=void 0,l=t.length,f="%0".length;if(!e)return e;for(;;){if((r=e.indexOf("$"+t))<0)return e;if((i=e.indexOf("$",r+l))<0)return e;if(r<(a=e.indexOf("%0",r+l))&&a<i)switch(o=e.charAt(i-1),s=parseInt(e.substring(a+f,i-1),10),o){case"d":case"i":case"u":u=d(n.toString(),s);break;case"x":u=d(n.toString(16),s);break;case"X":u=d(n.toString(16),s).toUpperCase();break;case"o":u=d(n.toString(8),s);break;default:return e}else u=n;e=e.substring(0,r)+u+e.substring(i+1)}}function m(e,t,n,r,i,a,o,s,u){var l=new f.default;return l.representation=e,l.duration=t,l.presentationStartTime=n,l.mediaStartTime=r,l.availabilityStartTime=i,l.availabilityEndTime=a.calcAvailabilityEndTimeFromPresentationTime(o,e.adaptation.period.mpd,s),l.wallStartTime=a.calcWallTimeForSegment(l,s),l.replacementNumber=function(e,t){return e.representation.startNumber+t}(l,u),l.availabilityIdx=u,l}function _(e,t,n,r){var i=e.getPeriodEnd(t,r);return!(e.calcPeriodRelativeTimeFromMpdRelativeTime(t,i)<=e.calcPeriodRelativeTimeFromMpdRelativeTime(t,n.presentationStartTime))}},{94:94}],81:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(107)),f=e(80);function o(e,s){var u=(e=e||{}).timelineConverter;function l(){if(!u||!u.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(a.default.MISSING_CONFIG_ERROR)}function i(e,t){if(l(),!e)throw new Error("no representation");var n=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate;t=Math.max(t,0);var r=(0,f.getIndexBasedSegment)(u,s,e,t);if(r){r.replacementTime=(t-1)*e.segmentDuration;var i=n.media;i=(0,f.replaceTokenForTemplate)(i,"Number",r.replacementNumber),i=(0,f.replaceTokenForTemplate)(i,"Time",r.replacementTime),r.media=i}var a=e.segmentDuration,o=e.segmentAvailabilityRange;return isNaN(a)?e.availableSegmentsNumber=1:e.availableSegmentsNumber=Math.ceil((o.end-o.start)/a),r}return{getSegmentByIndex:i,getSegmentByTime:function(e,t){if(l(),!e)throw new Error("no representation");var n=e.segmentDuration;if(isNaN(n))return null;var r=u.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return i(e,Math.floor(r/n)-1)}}}o.__dashjs_factory_name="TemplateSegmentsGetter";var s=i.default.getClassFactory(o);n.default=s,t.exports=n.default},{107:107,48:48,80:80}],82:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var f=r(e(47)),d=r(e(55)),i=r(e(48));function a(){var e=this.context,t=(0,f.default)(e).getInstance(),i=void 0,u=void 0,n=void 0;function r(e){i=e}function a(e,t,n,r){return r?n&&t.timeShiftBufferDepth!=Number.POSITIVE_INFINITY?new Date(t.availabilityStartTime.getTime()+1e3*(e+t.timeShiftBufferDepth)):t.availabilityEndTime:n?new Date(t.availabilityStartTime.getTime()+1e3*(e-i)):t.availabilityStartTime}function l(e,t){return(e.getTime()-t.mpd.availabilityStartTime.getTime()+1e3*i)/1e3}function o(e){u||void 0!==e.offset&&(r(e.offset/1e3),u=!0)}function s(){i=0,u=!1,n=NaN}return{initialize:function(){s(),t.on(d.default.TIME_SYNCHRONIZATION_COMPLETED,o,this)},isTimeSyncCompleted:function(){return u},setTimeSyncCompleted:function(e){u=e},getClientTimeOffset:function(){return i},setClientTimeOffset:r,getExpectedLiveEdge:function(){return n},setExpectedLiveEdge:function(e){n=e},calcAvailabilityStartTimeFromPresentationTime:function(e,t,n){return a.call(this,e,t,n)},calcAvailabilityEndTimeFromPresentationTime:function(e,t,n){return a.call(this,e,t,n,!0)},calcPresentationTimeFromWallTime:l,calcPresentationTimeFromMediaTime:function(e,t){return e+(t.adaptation.period.start-t.presentationTimeOffset)},calcPeriodRelativeTimeFromMpdRelativeTime:function(e,t){return t-e.adaptation.period.start},calcMediaTimeFromPresentationTime:function(e,t){return e-t.adaptation.period.start+t.presentationTimeOffset},calcSegmentAvailabilityRange:function(e,t){var n=e.adaptation.period,r={start:n.start,end:n.start+n.duration};if(!t)return r;if(!u&&e.segmentAvailabilityRange)return e.segmentAvailabilityRange;var i=e.segmentDuration||(e.segments&&e.segments.length?e.segments[e.segments.length-1].duration:0),a=l(new Date,n),o=n.start+n.duration;r.start=Math.max(a-n.mpd.timeShiftBufferDepth,n.start);var s=void 0!==e.availabilityTimeOffset&&e.availabilityTimeOffset<i?i-e.availabilityTimeOffset:i;return r.end=o<=a&&a-s<o?o:a-s,r},getPeriodEnd:function(e,t){var n=e.adaptation.period;if(!t)return n.start+n.duration;if(!u&&e.segmentAvailabilityRange)return e.segmentAvailabilityRange;var r=e.segmentDuration||(e.segments&&e.segments.length?e.segments[e.segments.length-1].duration:0),i=l(new Date,n),a=n.start+n.duration,o=void 0!==e.availabilityTimeOffset&&e.availabilityTimeOffset<r?r-e.availabilityTimeOffset:r;return Math.min(i-o,a)},calcWallTimeForSegment:function(e,t){var n=void 0,r=void 0,i=void 0;return t&&(n=e.representation.adaptation.period.mpd.suggestedPresentationDelay,r=e.presentationStartTime+n,i=new Date(e.availabilityStartTime.getTime()+1e3*r)),i},reset:function(){t.off(d.default.TIME_SYNCHRONIZATION_COMPLETED,o,this),s()}}}a.__dashjs_factory_name="TimelineConverter",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{47:47,48:48,55:55}],83:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(107)),p=e(80);function o(e,E){var T=(e=e||{}).timelineConverter;function t(){if(!T||!T.hasOwnProperty("calcMediaTimeFromPresentationTime")||!T.hasOwnProperty("calcSegmentAvailabilityRange"))throw new Error(a.default.MISSING_CONFIG_ERROR)}function n(e,t){var n,r,i,a=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,o=a.SegmentTimeline,s=a.SegmentURL_asArray,u=0,l=0,f=-1,d=void 0,c=void 0,h=void 0,p=void 0,g=void 0,m=void 0;i=e.timescale;var _=!1;for(c=0,r=(n=o.S_asArray).length;c<r&&!_;c++){if(p=0,(d=n[c]).hasOwnProperty("r")&&(p=d.r),d.hasOwnProperty("t")&&(l=(u=d.t)/i),p<0){if((m=n[c+1])&&m.hasOwnProperty("t"))g=m.t/i;else{var v=e.segmentAvailabilityRange?e.segmentAvailabilityRange.end:T.calcSegmentAvailabilityRange(e,E).end;g=T.calcMediaTimeFromPresentationTime(v,e),e.segmentDuration=d.d/i}p=Math.ceil((g-l)/(d.d/i))-1}for(h=0;h<=p&&!_;h++)(_=t(u,l,a,s,d,i,++f,c))&&(e.segmentDuration=d.d/i,(h<p-1||c<r-1)&&f++),l=(u+=d.d)/i}e.availableSegmentsNumber=f}return{getSegmentByIndex:function(f,e,d){if(t(),!f)throw new Error("no representation");var c=null,h=!1;return n(f,function(e,t,n,r,i,a,o,s){if(h||d<0){var u=n.media,l=i.mediaRange;return r&&(u=r[s].media||"",l=r[s].mediaRange),c=(0,p.getTimeBasedSegment)(T,E,f,e,i.d,a,u,l,o,i.tManifest),!0}return d-.5<=t&&(h=!0),!1}),c},getSegmentByTime:function(f,e){if(t(),!f)throw new Error("no representation");void 0===e&&(e=null);var d=null,c=T.calcMediaTimeFromPresentationTime(e,f);return n(f,function(e,t,n,r,i,a,o,s){if(t>=c-i.d/a*1.5){var u=n.media,l=i.mediaRange;return r&&(u=r[s].media||"",l=r[s].mediaRange),d=(0,p.getTimeBasedSegment)(T,E,f,e,i.d,a,u,l,o,i.tManifest),!0}return!1}),d}}}o.__dashjs_factory_name="TimelineSegmentsGetter";var s=i.default.getClassFactory(o);n.default=s,t.exports=n.default},{107:107,48:48,80:80}],84:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.period=null,this.index=-1,this.type=null},t.exports=n.default},{}],85:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function i(e,t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.url=e||"",this.serviceLocation=t||e||"",this.dvb_priority=n||1,this.dvb_weight=r||1,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0}i.DEFAULT_DVB_PRIORITY=1,i.DEFAULT_DVB_WEIGHT=1,n.default=i,t.exports=n.default},{}],86:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN},t.exports=n.default},{}],87:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri=""},t.exports=n.default},{}],88:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.DVRWindowSize=NaN,this.loadedTime=null,this.availableFrom=null,this.minBufferTime=NaN,this.duration=NaN,this.isDynamic=!1,this.maxFragmentDuration=null},t.exports=n.default},{}],89:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"isMediaInfoEqual",value:function(e){if(!e)return!1;var t=this.id===e.id,n=this.viewpoint===e.viewpoint,r=this.lang===e.lang,i=this.roles.toString()===e.roles.toString(),a=this.accessibility.toString()===e.accessibility.toString(),o=this.audioChannelConfiguration.toString()===e.audioChannelConfiguration.toString();return t&&n&&r&&i&&a&&o}}]),a);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.id=null,this.index=null,this.type=null,this.streamInfo=null,this.representationCount=0,this.lang=null,this.viewpoint=null,this.accessibility=null,this.audioChannelConfiguration=null,this.roles=null,this.codec=null,this.mimeType=null,this.contentProtection=null,this.isText=!1,this.KID=null,this.bitrateList=null}n.default=i,t.exports=n.default},{}],90:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manifest=null,this.suggestedPresentationDelay=0,this.availabilityStartTime=null,this.availabilityEndTime=Number.POSITIVE_INFINITY,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.minimumUpdatePeriod=NaN,this.mediaPresentationDuration=NaN},t.exports=n.default},{}],91:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null}r.DEFAULT_ID="defaultId",n.default=r,t.exports=n.default},{}],92:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a,o=e(62),s=(a=o)&&a.__esModule?a:{default:a},u=(r(l,null,[{key:"hasInitialization",value:function(e){return null!==e.initialization||null!==e.range}},{key:"hasSegments",value:function(e){return e.segmentInfoType!==s.default.BASE_URL&&e.segmentInfoType!==s.default.SEGMENT_BASE&&!e.indexRange}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.id=null,this.index=-1,this.adaptation=null,this.segmentInfoType=null,this.initialization=null,this.codecs=null,this.codecPrivateData=null,this.segmentDuration=NaN,this.timescale=1,this.startNumber=1,this.indexRange=null,this.range=null,this.presentationTimeOffset=0,this.MSETimeOffset=NaN,this.segmentAvailabilityRange=null,this.availableSegmentsNumber=0,this.bandwidth=NaN,this.width=NaN,this.height=NaN,this.scanType=null,this.maxPlayoutRate=NaN,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0}n.default=u,t.exports=n.default},{62:62}],93:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.quality=null,this.DVRWindow=null,this.fragmentDuration=null,this.mediaInfo=null,this.MSETimeOffset=null},t.exports=n.default},{}],94:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.availabilityIdx=NaN,this.wallStartTime=NaN,this.representation=null},t.exports=n.default},{}],95:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.index=null,this.start=NaN,this.duration=NaN,this.manifestInfo=null,this.isLast=!0},t.exports=n.default},{}],96:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.schemeIdUri="",this.value=""},t.exports=n.default},{}],97:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var s=r(e(130)),u=r(e(176)),l=r(e(173)),f=r(e(47)),d=r(e(155)),c=r(e(55)),h=r(e(52)),i=r(e(48));function a(e){e=e||{};var t,n=this.context,i=(0,f.default)(n).getInstance(),a=void 0,o=void 0;return a={checkForExistence:function(t){function e(e){i.trigger(c.default.CHECK_FOR_EXISTENCE_COMPLETED,{request:t,exists:e})}if(t){var n=new u.default(t.url);o.load({request:n,success:function(){e(!0)},error:function(){e(!1)}})}else e(!1)},load:function(n){function r(e,t){i.trigger(c.default.LOADING_COMPLETED,{request:n,response:e||null,error:t||null,sender:a})}n?o.load({request:n,progress:function(e){i.trigger(c.default.LOADING_PROGRESS,{request:n,stream:e.stream}),e.data&&i.trigger(c.default.LOADING_DATA_PROGRESS,{request:n,response:e.data||null,error:null,sender:a})},success:function(e){r(e)},error:function(e,t,n){r(void 0,new l.default(h.default.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE,n,t))},abort:function(e){e&&i.trigger(c.default.LOADING_ABANDONED,{request:e,mediaType:e.mediaType,sender:a})}}):r(void 0,new l.default(h.default.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE,h.default.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE))},abort:function(){o&&o.abort()},reset:function(){o&&(o.abort(),o=null)}},t=(0,d.default)(n).getInstance(),o=(0,s.default)(n).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,boxParser:t,useFetch:e.settings.get().streaming.lowLatencyEnabled}),a}a.__dashjs_factory_name="FragmentLoader",n.default=i.default.getClassFactory(a),t.exports=n.default},{130:130,155:155,173:173,176:176,47:47,48:48,52:52,55:55}],98:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var p=r(e(107)),a=r(e(121)),o=r(e(130)),g=r(e(168)),m=r(e(180)),_=r(e(173)),v=e(189),E=r(e(47)),T=r(e(55)),y=r(e(52)),i=r(e(48)),A=r(e(66)),b=r(e(46));function s(e){e=e||{};var s=this.context,u=(0,E.default)(s).getInstance(),l=(0,g.default)(s).getInstance(),t=void 0,f=void 0,n=void 0,d=void 0,c=void 0,h=e.mssHandler,r=e.errHandler;function i(e){u.trigger(T.default.INTERNAL_MANIFEST_LOADED,{manifest:e.manifest})}return t={load:function(o){var e=new m.default(o,v.HTTPRequest.MPD_TYPE);n.load({request:e,success:function(e,t,n){if(d){var r=void 0,i=void 0,a=void 0;if(n&&n!==o?(i=l.parseBaseUrl(n),r=n):(l.isRelative(o)&&(o=l.resolve(o,window.location.href)),i=l.parseBaseUrl(o)),null===c&&(c=function(e){var t=null;return-1<e.indexOf("SmoothStreamingMedia")?(h&&(t=h.createMssParser(),h.registerEvents()),t):-1<e.indexOf("MPD")?(0,A.default)(s).create():t}(e)),null!==c){d.setMatchers(c.getMatchers()),d.setIron(c.getIron());try{a=c.parse(e)}catch(e){return void u.trigger(T.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new _.default(y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+""+o)})}a?(a.url=r||o,a.originalUrl||(a.originalUrl=a.url),a.hasOwnProperty(p.default.LOCATION)&&(i=l.parseBaseUrl(a.Location_asArray[0]),f.debug("BaseURI set by Location to: "+i)),a.baseUri=i,a.loadedTime=new Date,d.resolveManifestOnLoad(a)):u.trigger(T.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new _.default(y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+""+o)})}else u.trigger(T.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new _.default(y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,y.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+""+o)})}},error:function(e,t,n){u.trigger(T.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new _.default(y.default.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE,y.default.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE+(o+", ")+n)})}})},reset:function(){u.off(T.default.XLINK_READY,i,t),d&&(d.reset(),d=null),n&&(n.abort(),n=null),h&&h.reset()}},f=(0,b.default)(s).getInstance().getLogger(t),u.on(T.default.XLINK_READY,i,t),n=(0,o.default)(s).create({errHandler:r,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier}),d=(0,a.default)(s).create({errHandler:r,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier}),c=null,t}s.__dashjs_factory_name="ManifestLoader";var u=i.default.getClassFactory(s);n.default=u,t.exports=n.default},{107:107,121:121,130:130,168:168,173:173,180:180,189:189,46:46,47:47,48:48,52:52,55:55,66:66}],99:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var b=r(e(47)),I=r(e(55)),i=r(e(48)),S=r(e(46)),R=r(e(52));function a(){var e=this.context,r=(0,b.default)(e).getInstance(),t=void 0,i=void 0,a=void 0,n=void 0,o=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,c=void 0;function h(){a=NaN,o=!(s=!1),p()}function p(){null!==n&&(clearInterval(n),n=null)}function g(e){p(),isNaN(e)&&!isNaN(a)&&(e=1e3*a),isNaN(e)||(i.debug("Refresh manifest in "+e+" milliseconds."),n=setTimeout(v,e))}function m(){s=!0;var e=l.getValue(),t=e.url,n=f.getLocation(e);n&&(t=n),u.load(t)}function _(e){l.setValue(e);var t=new Date,n=(t.getTime()-e.loadedTime.getTime())/1e3;2147483647<1e3*(a=f.getManifestUpdatePeriod(e,n))&&(a=2147483.647),r.trigger(I.default.MANIFEST_UPDATED,{manifest:e}),i.info("Manifest has been refreshed at "+t+"["+t.getTime()/1e3+"] "),o||g()}function v(){o&&!c.get().streaming.scheduleWhilePaused||(s?g(c.get().streaming.manifestUpdateRetryInterval):m())}function E(e){e.error?e.error.code===R.default.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE&&d.error(e.error):_(e.manifest)}function T(){o=!1,g()}function y(){o=!0,p()}function A(){s=!1}return t={initialize:function(){h(),r.on(I.default.STREAMS_COMPOSED,A,this),r.on(I.default.PLAYBACK_STARTED,T,this),r.on(I.default.PLAYBACK_PAUSED,y,this),r.on(I.default.INTERNAL_MANIFEST_LOADED,E,this)},setManifest:function(e){_(e)},refreshManifest:m,setConfig:function(e){e&&(e.manifestModel&&(l=e.manifestModel),e.adapter&&(f=e.adapter),e.mediaPlayerModel&&e.mediaPlayerModel,e.manifestLoader&&(u=e.manifestLoader),e.errHandler&&(d=e.errHandler),e.settings&&(c=e.settings))},reset:function(){r.off(I.default.PLAYBACK_STARTED,T,this),r.off(I.default.PLAYBACK_PAUSED,y,this),r.off(I.default.STREAMS_COMPOSED,A,this),r.off(I.default.INTERNAL_MANIFEST_LOADED,E,this),h()}},i=(0,S.default)(e).getInstance().getLogger(t),t}a.__dashjs_factory_name="ManifestUpdater",n.default=i.default.getClassFactory(a),t.exports=n.default},{46:46,47:47,48:48,52:52,55:55}],100:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var ee=r(e(2)),te=r(e(107)),ne=r(e(108)),re=r(e(117)),ie=r(e(119)),ae=r(e(115)),oe=r(e(110)),se=r(e(98)),ue=r(e(160)),le=r(e(156)),fe=r(e(151)),de=r(e(165)),ce=r(e(149)),he=r(e(127)),pe=r(e(124)),ge=r(e(125)),me=r(e(109)),_e=r(e(128)),ve=r(e(158)),Ee=r(e(46)),Te=r(e(52)),ye=r(e(47)),Ae=r(e(55)),be=r(e(101)),Ie=r(e(48)),Se=r(e(49)),Re=e(51),we=r(e(57)),De=r(e(59)),Ne=r(e(82)),Me=e(189),Oe=r(e(1)),Ce=r(e(8)),Pe=r(e(173)),Le=e(166);function i(){var i="You must first call initialize() and set a source before calling this method",r="You must first call initialize() and set a valid source and view before calling this method",t="You must first call attachView() to set the video element before calling this method",e="You must first call attachSource() with a valid source before calling this method",n="MediaPlayer not initialized!",a=this.context,o=(0,ye.default)(a).getInstance(),s=(0,Se.default)(a).getInstance(),u=(0,Ee.default)(a).getInstance(),l=void 0,f=void 0,d=void 0,c=void 0,h=void 0,p=void 0,g=void 0,m=void 0,_=void 0,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,w=void 0,D=void 0,N=void 0,M=void 0,O=void 0,C=void 0,P=void 0,L=void 0;function x(){return!!d&&!!O.getElement()}function F(){return(0,Re.getVersionString)()}function U(){if(!g)throw r;return D.isPaused()}function B(e){var t=N.getCurrentDVRInfo();if(!t)return 0;var n=D.getLiveDelay(),r=t.range.start+e;return r>t.range.end-n&&(r=t.range.end-n),r}function k(e){if(!g)throw r;var t=V().currentTime;if(void 0!==e)t=w.getTimeRelativeToStreamId(t,e);else if(D.getIsDynamic()){var n=N.getCurrentDVRInfo();t=null===n?0:G()-(n.range.end-n.time)}return t}function G(){if(!g)throw r;var e=V().duration;if(D.getIsDynamic()){var t,n=N.getCurrentDVRInfo();if(!n)return 0;e=(t=n.range.end-n.range.start)<n.manifestInfo.DVRWindowSize?t:n.manifestInfo.DVRWindowSize}return e}function j(e){(0,Le.checkParameterType)(e,"boolean"),m=e}function q(){I.restoreDefaultUTCTimingSources()}function H(){return N}function V(){if(!O.getElement())throw t;return O.getElement()}function Y(e){if(!h)throw n;O.setElement(e),e&&(Z(),function(){if(y)return;var e=dashjs.MetricsReporting;if("function"==typeof e){var t=e(a).create();y=t.createMetricsReporting({debug:u,eventBus:o,mediaElement:V(),adapter:b,dashMetrics:N,events:Ae.default,constants:te.default,metricsConstants:ne.default})}}(),function(){if(A)return;var e=dashjs.MssHandler;"function"==typeof e&&(Te.default.extend(e.errors),A=e(a).create({eventBus:o,mediaPlayerModel:I,dashMetrics:N,manifestModel:M,playbackController:D,protectionController:T,baseURLController:(0,oe.default)(a).getInstance(),errHandler:S,events:Ae.default,constants:te.default,debug:u,initSegmentType:Me.HTTPRequest.INIT_SEGMENT_TYPE,BASE64:Oe.default,ISOBoxer:Ce.default}))}(),w&&w.switchToVideoElement()),g&&X(),J()}function z(e){if(!p)throw i;var t=w.getActiveStreamInfo();return E.getTracksFor(e,t)}function W(e){if(!h)throw n;"string"==typeof e&&P.initialize(e),d=e,(p||g)&&X(),x()&&J()}function K(){if(!p)throw i;var e=w.getActiveStreamInfo();return e?w.getStreamById(e.id):null}function X(){p=g=!1,b.reset(),w.reset(),D.reset(),_.reset(),E.reset(),C.reset(),T&&(s.get().streaming.keepProtectionMediaKeys?T.stop():(T.reset(),T=null,Z()))}function Q(){return(0,se.default)(a).create({errHandler:S,dashMetrics:N,mediaPlayerModel:I,requestModifier:(0,de.default)(a).getInstance(),mssHandler:A,settings:s})}function Z(){if(T)return T;var e=dashjs.Protection;if("function"!=typeof e)return null;var t=e(a).create();return Ae.default.extend(e.events),be.default.extend(e.events,{publicOnly:!0}),Te.default.extend(e.errors),R=R||(0,le.default)(a).getInstance(),T=t.createProtectionSystem({debug:u,errHandler:S,videoModel:O,capabilities:R,eventBus:o,events:Ae.default,BASE64:Oe.default,constants:te.default})}function $(e){var t=N.getCurrentDVRInfo();return t?e+(t.manifestInfo.availableFrom.getTime()/1e3+t.range.start):0}function J(){!p&&d&&(p=!0,f.info("Streaming Initialized"),function(){var e=Q();w=w||(0,ie.default)(a).getInstance(),E.setConfig({domStorage:L}),w.setConfig({capabilities:R,manifestLoader:e,manifestModel:M,mediaPlayerModel:I,protectionController:T,adapter:b,dashMetrics:N,errHandler:S,timelineConverter:v,videoModel:O,playbackController:D,abrController:_,mediaController:E,textController:C,settings:s}),D.setConfig({streamController:w,dashMetrics:N,mediaPlayerModel:I,adapter:b,videoModel:O,timelineConverter:v,uriFragmentModel:P,settings:s}),_.setConfig({streamController:w,domStorage:L,mediaPlayerModel:I,dashMetrics:N,adapter:b,videoModel:O,settings:s}),_.createAbrRulesCollection(),C.setConfig({errHandler:S,manifestModel:M,adapter:b,mediaController:E,streamController:w,videoModel:O}),w.initialize(m,c)}(),"string"==typeof d?w.load(d):w.loadWithManifest(d)),!g&&x()&&(g=!0,f.info("Playback Initialized"))}return l={initialize:function(e,t,n){R=R||(0,le.default)(a).getInstance(),S=(0,ue.default)(a).getInstance(),R.supportsMediaSource()?h||(h=!0,v=(0,Ne.default)(a).getInstance(),_=_||(0,me.default)(a).getInstance(),D=D||(0,re.default)(a).getInstance(),E=E||(0,ae.default)(a).getInstance(),b=(0,we.default)(a).getInstance(),M=(0,pe.default)(a).getInstance(),N=(0,De.default)(a).getInstance({settings:s}),C=(0,ce.default)(a).getInstance(),L=(0,ve.default)(a).getInstance({settings:s}),b.setConfig({constants:te.default,cea608parser:ee.default,errHandler:S,BASE64:Oe.default}),q(),j(void 0===n||n),e&&Y(e),t&&W(t),f.info("[dash.js "+F()+"] MediaPlayer has been initialized")):S.error(new Pe.default(Te.default.CAPABILITY_MEDIASOURCE_ERROR_CODE,Te.default.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE))},setConfig:function(e){e&&(e.capabilities&&(R=e.capabilities),e.streamController&&(w=e.streamController),e.playbackController&&(D=e.playbackController),e.mediaPlayerModel&&(I=e.mediaPlayerModel),e.abrController&&(_=e.abrController),e.mediaController&&(E=e.mediaController),e.settings&&(s=e.settings))},on:function(e,t,n){o.on(e,t,n)},off:function(e,t,n){o.off(e,t,n)},extend:function(e,t,n){Ie.default.extend(e,t,n,a)},attachView:Y,attachSource:W,isReady:x,preload:function(){if(O.getElement()||p)return!1;if(!d)throw e;J()},play:function(){if(!g)throw r;(!m||U()&&g)&&D.play()},isPaused:U,pause:function(){if(!g)throw r;D.pause()},isSeeking:function(){if(!g)throw r;return D.isSeeking()},isDynamic:function(){if(!g)throw r;return D.getIsDynamic()},seek:function(e){if(!g)throw r;if((0,Le.checkParameterType)(e,"number"),isNaN(e))throw te.default.BAD_ARGUMENT_ERROR;var t=D.getIsDynamic()?B(e):e;D.seek(t)},setPlaybackRate:function(e){V().playbackRate=e},getPlaybackRate:function(){return V().playbackRate},setMute:function(e){(0,Le.checkParameterType)(e,"boolean"),V().muted=e},isMuted:function(){return V().muted},setVolume:function(e){if("number"!=typeof e||isNaN(e)||e<0||1<e)throw te.default.BAD_ARGUMENT_ERROR;V().volume=e},getVolume:function(){return V().volume},time:k,duration:G,timeAsUTC:function(){if(!g)throw r;return k()<0?NaN:$(k())},durationAsUTC:function(){if(!g)throw r;return $(G())},getActiveStream:K,getDVRWindowSize:function(){var e=N.getCurrentDVRInfo();return e?e.manifestInfo.DVRWindowSize:0},getDVRSeekOffset:B,convertToTimeCode:function(e){e=Math.max(e,0);var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60);return(0===t?"":t<10?"0"+t.toString()+":":t.toString()+":")+(n<10?"0"+n.toString():n.toString())+":"+(r<10?"0"+r.toString():r.toString())},formatUTC:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3],i=new Date(1e3*e),a=i.toLocaleDateString(t),o=i.toLocaleTimeString(t,{hour12:n});return r?o+" "+a:o},getVersion:F,getDebug:function(){return u},getBufferLength:function(e){var t,n=[te.default.VIDEO,te.default.AUDIO,te.default.FRAGMENTED_TEXT];return e?-1===n.indexOf(e)?(f.warn("getBufferLength requested for invalid type"),NaN):(t=H().getCurrentBufferLevel(e))||NaN:(t=n.map(function(e){return 0<z(e).length?H().getCurrentBufferLevel(e):Number.MAX_VALUE}).reduce(function(e,t){return Math.min(e,t)}))===Number.MAX_VALUE?NaN:t},getTTMLRenderingDiv:function(){return O?O.getTTMLRenderingDiv():null},getVideoElement:V,getSource:function(){if(!d)throw e;return d},getCurrentLiveLatency:function(){if(!h)throw n;return g?D.getCurrentLiveLatency():NaN},getTopBitrateInfoFor:function(e){if(!p)throw i;return _.getTopBitrateInfoFor(e)},setAutoPlay:j,getAutoPlay:function(){return m},getDashMetrics:H,getQualityFor:function(e){if(!p)throw i;if(e!==te.default.IMAGE)return _.getQualityFor(e);var t=K();if(!t)return-1;var n=t.getThumbnailController();return n?n.getCurrentTrackIndex():-1},setQualityFor:function(e,t){if(!p)throw i;if(e===te.default.IMAGE){var n=K();if(!n)return;var r=n.getThumbnailController();r&&r.setTrackByIndex(t)}_.setPlaybackQuality(e,w.getActiveStreamInfo(),t)},updatePortalSize:function(){_.setElementSize(),_.setWindowResizeEventCalled(!0)},setTextDefaultLanguage:function(e){void 0===C&&(C=(0,ce.default)(a).getInstance()),C.setTextDefaultLanguage(e)},getTextDefaultLanguage:function(){return void 0===C&&(C=(0,ce.default)(a).getInstance()),C.getTextDefaultLanguage()},setTextDefaultEnabled:function(e){void 0===C&&(C=(0,ce.default)(a).getInstance()),C.setTextDefaultEnabled(e)},getTextDefaultEnabled:function(){return void 0===C&&(C=(0,ce.default)(a).getInstance()),C.getTextDefaultEnabled()},enableText:function(e){void 0===C&&(C=(0,ce.default)(a).getInstance()),C.enableText(e)},enableForcedTextStreaming:function(e){void 0===C&&(C=(0,ce.default)(a).getInstance()),C.enableForcedTextStreaming(e)},isTextEnabled:function(){return void 0===C&&(C=(0,ce.default)(a).getInstance()),C.isTextEnabled()},setTextTrack:function(e){if(!g)throw r;void 0===C&&(C=(0,ce.default)(a).getInstance()),C.setTextTrack(e)},getBitrateInfoListFor:function(e){if(!p)throw i;var t=K();return t?t.getBitrateListFor(e):[]},getStreamsFromManifest:function(e){if(!p)throw i;return b.getStreamsInfo(e)},getTracksFor:z,getTracksForTypeFromManifest:function(e,t,n){if(!p)throw i;return(n=n||b.getStreamsInfo(t,1)[0])?b.getAllMediaInfoForType(n,e,t):[]},getCurrentTrackFor:function(e){if(!p)throw i;var t=w.getActiveStreamInfo();return E.getCurrentTrackFor(e,t)},setInitialMediaSettingsFor:function(e,t){if(!h)throw n;E.setInitialSettings(e,t)},getInitialMediaSettingsFor:function(e){if(!h)throw n;return E.getInitialSettings(e)},setCurrentTrack:function(e){if(!p)throw i;E.setTrack(e)},getTrackSwitchModeFor:function(e){if(!h)throw n;return E.getSwitchMode(e)},setTrackSwitchModeFor:function(e,t){if(!h)throw n;E.setSwitchMode(e,t)},setSelectionModeForInitialTrack:function(e){if(!h)throw n;E.setSelectionModeForInitialTrack(e)},getSelectionModeForInitialTrack:function(){if(!h)throw n;return E.getSelectionModeForInitialTrack()},addABRCustomRule:function(e,t,n){I.addABRCustomRule(e,t,n)},removeABRCustomRule:function(e){I.removeABRCustomRule(e)},removeAllABRCustomRule:function(){I.removeABRCustomRule()},getAverageThroughput:function(e){var t=_.getThroughputHistory();return t?t.getAverageThroughput(e):0},retrieveManifest:function(e,n){var r=Q(),i=this;o.on(Ae.default.INTERNAL_MANIFEST_LOADED,function e(t){t.error?n(null,t.error):n(t.manifest),o.off(Ae.default.INTERNAL_MANIFEST_LOADED,e,i),r.reset()},i),P.initialize(e),r.load(e)},addUTCTimingSource:function(e,t){I.addUTCTimingSource(e,t)},removeUTCTimingSource:function(e,t){I.removeUTCTimingSource(e,t)},clearDefaultUTCTimingSources:function(){I.clearDefaultUTCTimingSources()},restoreDefaultUTCTimingSources:q,setXHRWithCredentialsForType:function(e,t){I.setXHRWithCredentialsForType(e,t)},getXHRWithCredentialsForType:function(e){return I.getXHRWithCredentialsForType(e)},getProtectionController:function(){return Z()},attachProtectionController:function(e){T=e},setProtectionData:function(e){c=e,w&&w.setProtectionData(c)},displayCaptionsOnTop:function(e){var t=(0,fe.default)(a).getInstance();t.setConfig({videoModel:O}),t.initialize(),t.setDisplayCConTop(e)},attachTTMLRenderingDiv:function(e){if(!O.getElement())throw t;O.setTTMLRenderingDiv(e)},getCurrentTextTrackIndex:function(){var e=NaN;return C&&(e=C.getCurrentTrackIdx()),e},getThumbnail:function(e,t){if(e<0)return null;var n=D.getIsDynamic()?B(e):e,r=w.getStreamForTime(n);if(null===r)return null;var i=r.getThumbnailController();if(!i)return null;var a=w.getTimeRelativeToStreamId(n,r.getId());return i.get(a,t)},getDashAdapter:function(){return b},getSettings:function(){return s.get()},updateSettings:function(e){s.update(e)},resetSettings:function(){s.reset()},reset:function(){W(null),Y(null),c=null,T&&(T.reset(),T=null),y&&(y.reset(),y=null),s.reset()}},f=u.getLogger(l),m=!(p=g=h=!1),b=c=T=null,Ae.default.extend(be.default),I=(0,ge.default)(a).getInstance(),O=(0,_e.default)(a).getInstance(),P=(0,he.default)(a).getInstance(),l}i.__dashjs_factory_name="MediaPlayer";var a=Ie.default.getClassFactory(i);a.events=be.default,a.errors=Te.default,Ie.default.updateClassFactory(i.__dashjs_factory_name,a),n.default=a,t.exports=n.default},{1:1,101:101,107:107,108:108,109:109,110:110,115:115,117:117,119:119,124:124,125:125,127:127,128:128,149:149,151:151,156:156,158:158,160:160,165:165,166:166,173:173,189:189,2:2,46:46,47:47,48:48,49:49,51:51,52:52,55:55,57:57,59:59,8:8,82:82,98:98}],101:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(56);function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(a.prototype),"constructor",this).call(this),this.AST_IN_FUTURE="astInFuture",this.BUFFER_EMPTY="bufferStalled",this.BUFFER_LOADED="bufferLoaded",this.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",this.ERROR="error",this.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",this.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",this.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",this.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",this.LOG="log",this.MANIFEST_LOADED="manifestLoaded",this.METRICS_CHANGED="metricsChanged",this.METRIC_CHANGED="metricChanged",this.METRIC_ADDED="metricAdded",this.METRIC_UPDATED="metricUpdated",this.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",this.PERIOD_SWITCH_STARTED="periodSwitchStarted",this.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",this.QUALITY_CHANGE_RENDERED="qualityChangeRendered",this.TRACK_CHANGE_RENDERED="trackChangeRendered",this.SOURCE_INITIALIZED="sourceInitialized",this.STREAM_INITIALIZED="streamInitialized",this.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",this.TEXT_TRACKS_ADDED="allTextTracksAdded",this.TEXT_TRACK_ADDED="textTrackAdded",this.TTML_PARSED="ttmlParsed",this.TTML_TO_PARSE="ttmlToParse",this.CAPTION_RENDERED="captionRendered",this.CAPTION_CONTAINER_RESIZE="captionContainerResize",this.CAN_PLAY="canPlay",this.PLAYBACK_ENDED="playbackEnded",this.PLAYBACK_ERROR="playbackError",this.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",this.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",this.PLAYBACK_PAUSED="playbackPaused",this.PLAYBACK_PLAYING="playbackPlaying",this.PLAYBACK_PROGRESS="playbackProgress",this.PLAYBACK_RATE_CHANGED="playbackRateChanged",this.PLAYBACK_SEEKED="playbackSeeked",this.PLAYBACK_SEEKING="playbackSeeking",this.PLAYBACK_SEEK_ASKED="playbackSeekAsked",this.PLAYBACK_STALLED="playbackStalled",this.PLAYBACK_STARTED="playbackStarted",this.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",this.PLAYBACK_WAITING="playbackWaiting",this.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged"}var o=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((r=i)&&r.__esModule?r:{default:r}).default),a);n.default=o,t.exports=n.default},{56:56}],102:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var u=r(e(46)),i=r(e(48));function a(e){var t=this.context,n=void 0,r=void 0,i=void 0,a=[],o=e;function s(t,n){a=a.filter(function(e){return!((isNaN(n)||e.start<n)&&(isNaN(t)||e.end>t))})}return n={getAllBufferRanges:function(){for(var t=[],e=0;e<a.length;e++){var n=a[e];0===t.length||n.start>t[t.length-1].end?t.push({start:n.start,end:n.end}):t[t.length-1].end=n.end}var r={start:function(e){return t[e].start},end:function(e){return t[e].end}};return Object.defineProperty(r,"length",{get:function(){return t.length}}),r},append:function(e){i="InitializationSegment"!==e.segmentType?(a.push(e),a.sort(function(e,t){return e.start-t.start}),null):e,r.debug("PreBufferSink appended chunk s: "+e.start+"; e: "+e.end),o&&o({chunk:e})},remove:s,abort:function(){},discharge:function(e,t){var n=function(t,n){return a.filter(function(e){return(isNaN(n)||e.start<n)&&(isNaN(t)||e.end>t)})}(e,t);return i&&(n.push(i),i=null),s(e,t),n},reset:function(){a=[],o=i=null},updateTimestampOffset:function(){},hasDiscontinuitiesAfter:function(){return!1},waitForUpdateEnd:function(e){e()},getBuffer:function(){return this}},r=(0,u.default)(t).getInstance().getLogger(n),n}a.__dashjs_factory_name="PreBufferSink";var o=i.default.getClassFactory(a);n.default=o,t.exports=n.default},{46:46,48:48}],103:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var y=r(e(46)),A=r(e(173)),b=r(e(47)),I=r(e(55)),i=r(e(48)),S=r(e(149)),R=r(e(52));function a(i,r,e,a){var o=this.context,s=(0,b.default)(o).getInstance(),u=void 0,l=void 0,f=void 0,d=void 0,c=void 0,t=[],h=[],p=e;function g(){try{return f.buffered}catch(e){return l.error("getAllBufferRanges exception: "+e.message),null}}function m(e,t,n,r){t&&0<t.length&&t.length<n.length&&function(e,t){for(var n=0;n<e.length;n++){var r=Math.round(e.start(n)),i=Math.round(e.end(n));if(i===t.start||r===t.end||t.start>=r&&t.end<=i)return!0}return!1}(t,r)&&s.trigger(I.default.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:e,from:n.end(n.length-2),to:n.start(n.length-1),unintended:!0})}function n(){if(0<t.length){var e=t.shift();f.updating?T(e):(e(),n())}}function _(){f.updating||n()}function v(){f.updating||n()}function E(){l.error("SourceBufferSink error",r.type)}function T(e){t.push(e),f.updating||n()}return u={getAllBufferRanges:g,getBuffer:function(){return f},append:function(e){e?(h.push(e),d||T(function r(){var i=this;var a=this;0<h.length&&function(){d=!0;var t=h[0];h.splice(0,1);var n=[],e=function(){var e=g();m(a,n,e,t),0<h.length?r.call(this):(d=!1,p&&p({chunk:t}))};try{0===t.bytes.length?e.call(i):(n=g(),f.appendBuffer?f.appendBuffer(t.bytes):f.append(t.bytes,t),T(e.bind(i)))}catch(e){l.fatal('SourceBuffer append failed "'+e+'"'),0<h.length?r():d=!1,p&&p({chunk:t,error:new A.default(e.code,e.message)})}}()}.bind(this))):p({chunk:e,error:new A.default(R.default.APPEND_ERROR_CODE,R.default.APPEND_ERROR_MESSAGE)})},remove:function(t,n,e){var r=this;T(function(){try{0<=t&&t<n&&(e||"ended"!==i.readyState)&&f.remove(t,n),T(function(){s.trigger(I.default.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:r,from:t,to:n,unintended:!1})})}catch(e){s.trigger(I.default.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:r,from:t,to:n,unintended:!1,error:new A.default(e.code,e.message)})}})},abort:function(){try{"open"===i.readyState?f.abort():f.setTextTrack&&"ended"===i.readyState&&f.abort()}catch(e){l.error('SourceBuffer append abort failed: "'+e+'"')}h=[]},reset:function(e){if(f){if("function"==typeof f.removeEventListener&&(f.removeEventListener("updateend",v,!1),f.removeEventListener("error",E,!1),f.removeEventListener("abort",E,!1)),clearInterval(c),!e){try{f.getClassName&&"TextSourceBuffer"===f.getClassName()||i.removeSourceBuffer(f)}catch(e){l.error("Failed to remove source buffer from media source.")}f=null}d=!1}h=[],p=null},updateTimestampOffset:function(e){f.timestampOffset===e||isNaN(e)||T(function(){f.timestampOffset=e})},hasDiscontinuitiesAfter:function(e){try{var t=g();if(t&&1<t.length)for(var n=0,r=t.length;n<r;n++)if(0<n&&e<t.start(n)&&t.start(n)>t.end(n-1)+.1)return!0}catch(e){l.error("hasDiscontinuities exception: "+e.message)}return!1},waitForUpdateEnd:T},function(){l=(0,y.default)(o).getInstance().getLogger(u),d=!1;var t=r.codec;try{if(t.match(/application\/mp4;\s*codecs="(stpp|wvtt).*"/i))throw new Error("not really supported");(f=a||i.addSourceBuffer(t)).changeType&&a&&(l.debug("Doing period transition with changeType"),f.changeType(t));if("function"==typeof f.addEventListener)try{f.addEventListener("updateend",v,!1),f.addEventListener("error",E,!1),f.addEventListener("abort",E,!1)}catch(e){c=setInterval(_,50)}else c=setInterval(_,50)}catch(e){if(!r.isText&&-1===t.indexOf('codecs="stpp')&&-1===t.indexOf('codecs="wvtt'))throw e;var n=(0,S.default)(o).getInstance();f=n.getTextSourceBuffer()}}(),u}a.__dashjs_factory_name="SourceBufferSink";var o=i.default.getClassFactory(a);n.default=o,t.exports=n.default},{149:149,173:173,46:46,47:47,48:48,52:52,55:55}],104:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var re=r(e(107)),ie=r(e(105)),ae=r(e(113)),oe=r(e(114)),se=r(e(152)),ue=r(e(47)),le=r(e(55)),fe=r(e(46)),de=r(e(52)),i=r(e(48)),ce=r(e(173));function a(s){s=s||{};var u=this.context,i=(0,ue.default)(u).getInstance(),l=s.manifestModel,f=s.mediaPlayerModel,a=s.manifestUpdater,d=s.adapter,o=s.capabilities,c=s.errHandler,h=s.timelineConverter,e=s.dashMetrics,p=s.abrController,g=s.playbackController,m=s.mediaController,_=s.textController,v=s.videoModel,E=s.settings,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,r=void 0,R=void 0,w=void 0,t=void 0,D=void 0,N=void 0,n=void 0,M=void 0,O=[{codec:"avc1",compatibleCodecs:["avc3"]},{codec:"avc3",compatibleCodecs:["avc1"]}];function C(e){for(var t=A?A.length:0,n=0;n<t;n++){A[n].getFragmentModel().removeExecutedRequestsBeforeTime(F()+x()),A[n].reset(!1,e)}te(I=b=!(A=[])),i.off(le.default.CURRENT_TRACK_CHANGED,q,T)}function P(){C(),S=null,R=!(r={})}function L(){k(),g&&g.pause(),t&&(t.reset(),t=null),P(),i.off(le.default.DATA_UPDATE_COMPLETED,Q,T),i.off(le.default.BUFFERING_COMPLETED,X,T),w&&(i.off(le.default.KEY_ERROR,G,T),i.off(le.default.SERVER_CERTIFICATE_UPDATED,G,T),i.off(le.default.LICENSE_REQUEST_COMPLETE,G,T),i.off(le.default.KEY_SYSTEM_SELECTED,G,T),i.off(le.default.KEY_SESSION_CREATED,G,T),i.off(le.default.KEY_STATUSES_CHANGED,G,T)),te(!1)}function x(){return S?S.duration:NaN}function F(){return S?S.start:NaN}function U(){return S}function B(){if(!(p&&p.hasOwnProperty("getBitrateList")&&d&&d.hasOwnProperty("getAllMediaInfoForType")&&d.hasOwnProperty("getEventsFor")))throw new Error(re.default.MISSING_CONFIG_ERROR)}function k(){N&&N.stop()}function G(e){e.error&&(c.error(e.error),y.fatal(e.error.message),L())}function j(e){var t,n=e?e.type:null,r=void 0;if(n===re.default.MUXED)return r="Multiplexed representations are intentionally not supported, as they are not compliant with the DASH-AVC/264 guidelines",y.fatal(r),c.error(new ce.default(de.default.MANIFEST_ERROR_ID_MULTIPLEXED_CODE,r,l.getValue())),!1;if(n===re.default.TEXT||n===re.default.FRAGMENTED_TEXT||n===re.default.EMBEDDED_TEXT||n===re.default.IMAGE)return!0;if(t=e.codec,y.debug(n+" codec: "+t),e.contentProtection&&!o.supportsEncryptedMedia())c.error(new ce.default(de.default.CAPABILITY_MEDIAKEYS_ERROR_CODE,de.default.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE));else if(!o.supportsCodec(t))return r=n+"Codec ("+t+") is not supported.",y.error(r),!1;return!0}function q(e){if(e.newMediaInfo.streamInfo.id===S.id){var t=e.newMediaInfo,n=l.getValue();d.setCurrentMediaInfo(S.id,t.type,t);var r=Z(e.newMediaInfo);if(r){var i=g.getTime();y.info("Stream - Process track changed at current time "+i),y.debug("Stream - Update stream controller"),n.refreshManifestOnSwitchTrack?(y.debug("Stream - Refreshing manifest for switch track"),M=e,a.refreshManifest()):(r.selectMediaInfo(t),t.type!==re.default.FRAGMENTED_TEXT?(p.updateTopQualityIndex(t),r.switchTrackAsked(),r.getFragmentModel().abortRequests()):(r.getScheduleController().setSeekTarget(NaN),r.setIndexHandlerTime(i),r.resetIndexHandler()))}}}function H(e,t){var n=d.getAllMediaInfoForType(S,e),r=null,i=void 0;if(n&&0!==n.length){for(var a=0,o=n.length;a<o;a++)if(r=n[a],e===re.default.EMBEDDED_TEXT)_.addEmbeddedTrack(r);else{if(!j(r))continue;m.addTrack(r)}e!==re.default.EMBEDDED_TEXT&&0!==m.getTracksFor(e,S).length&&(e!==re.default.IMAGE?((e!==re.default.FRAGMENTED_TEXT||e===re.default.FRAGMENTED_TEXT&&_.getTextDefaultEnabled())&&(m.checkInitialMediaSettingsForType(e,S),i=m.getCurrentTrackFor(e,S)),e!==re.default.FRAGMENTED_TEXT||_.getTextDefaultEnabled()||(i=m.getTracksFor(e,S)[0]),function(e,t,n,r){var i=(0,ie.default)(u).create({type:e?e.type:null,mimeType:e?e.mimeType:null,timelineConverter:h,adapter:d,manifestModel:l,mediaPlayerModel:f,dashMetrics:s.dashMetrics,baseURLController:s.baseURLController,stream:T,abrController:p,playbackController:g,mediaController:m,streamController:s.streamController,textController:_,errHandler:c,settings:E});if(i.initialize(n),p.updateTopQualityIndex(e),r?(i.setBuffer(r.buffer),i.setIndexHandlerTime(r.currentTime),A[r.replaceIdx]=i):A.push(i),!r||!r.ignoreMediaInfo)if(!e||e.type!==re.default.TEXT&&e.type!==re.default.FRAGMENTED_TEXT)i.addMediaInfo(e,!0);else{for(var a=void 0,o=0;o<t.length;o++)t[o].index===e.index&&(a=o),i.addMediaInfo(t[o]);i.selectMediaInfo(t[a])}}(i,n,t)):D=(0,se.default)(u).create({adapter:d,baseURLController:s.baseURLController,stream:T,timelineConverter:s.timelineConverter}))}else y.info("No "+e+" data.")}function V(){N||((N=(0,ae.default)(u).create()).setConfig({manifestUpdater:a,playbackController:g}),Y())}function Y(){var e=d.getEventsFor(S);N.addInlineEvents(e)}function z(e){var r=d.getAdaptationForType(S.index,e,S);r&&Array.isArray(r.Representation_asArray)&&(r.Representation_asArray=r.Representation_asArray.filter(function(e,t){if(0===t)return!0;var n=d.getCodec(r,t,!0);return!!o.supportsCodec(n)||(y.error("[Stream] codec not supported: "+n),!1)}))}function W(){for(var e=A.length,t=!!r.audio||!!r.video?new ce.default(de.default.DATA_UPDATE_FAILED_ERROR_CODE,de.default.DATA_UPDATE_FAILED_ERROR_MESSAGE):null,n=0;n<e;n++)if(A[n].isUpdating()||R)return;if(I){if(w)for(n=0;n<e&&A[n];n++)A[n].getType()!==re.default.AUDIO&&A[n].getType()!==re.default.VIDEO&&A[n].getType()!==re.default.FRAGMENTED_TEXT||w.initializeForMedia(A[n].getMediaInfo());t?c.error(t):i.trigger(le.default.STREAM_INITIALIZED,{streamInfo:S})}}function K(e){for(var t={},n=0,r=A.length;n<r;n++){var i=A[n].createBuffer(e);i&&(t[A[n].getType()]=i.getBuffer())}return t}function X(e){if(e.streamInfo===S){var t=$(),n=t.length;if(0!==n){for(var r=0;r<n;r++)if(!t[r].isBufferingCompleted()&&(t[r].getType()===re.default.AUDIO||t[r].getType()===re.default.VIDEO))return void y.warn("onBufferingCompleted - One streamProcessor has finished but",t[r].getType(),"one is not buffering completed");y.debug("onBufferingCompleted - trigger STREAM_BUFFERING_COMPLETED"),i.trigger(le.default.STREAM_BUFFERING_COMPLETED,{streamInfo:S})}else y.warn("onBufferingCompleted - can't trigger STREAM_BUFFERING_COMPLETED because no streamProcessor is defined")}}function Q(e){var t=e.sender.getStreamProcessor();t.getStreamInfo()===S&&(r[t.getType()]=e.error,W())}function Z(t){return t?$().filter(function(e){return e.getType()===t.type})[0]:null}function $(){for(var e=A.length,t=[],n=void 0,r=void 0,i=0;i<e;i++)(n=(r=A[i]).getType())!==re.default.AUDIO&&n!==re.default.VIDEO&&n!==re.default.FRAGMENTED_TEXT&&n!==re.default.TEXT||t.push(r);return t}function J(e,t){if(!e)return!1;var n=e.getStreamInfo(),r=U();if(!n||!r)return!1;var i=d.getAdaptationForType(n.index,t,n),a=d.getAdaptationForType(r.index,t,r);return i&&a?!i.ContentProtection&&!a.ContentProtection:!i&&!a}function ee(e,t){if(!e||!e.hasOwnProperty("getStreamInfo"))return!1;var n=e.getStreamInfo(),r=U();if(!n||!r)return!1;var i=d.getAdaptationForType(n.index,t,n),a=d.getAdaptationForType(r.index,t,r);if(!i||!a)return!i&&!a;var o=i&&a&&i.mimeType===a.mimeType,s=a.Representation_asArray.map(function(e){return e.codecs}),u=i.Representation_asArray.map(function(e){return e.codecs}),l=u.some(function(e){return-1<s.indexOf(e)}),f=u.some(function(t){return s.some(function(e){return function(e,t){for(var n=e.split(".")[0],r=0===t.indexOf(n),i=void 0,a=0;a<O.length;a++)if(O[a].codec===n){i=O[a];break}if(i)return r||i.compatibleCodecs.some(function(e){return 0===t.indexOf(e)});return r}(e,t)})});return l||f&&o}function te(e){n=e}function ne(){return n}return T={initialize:function(e,t){S=e,(w=t)&&(i.on(le.default.KEY_ERROR,G,T),i.on(le.default.SERVER_CERTIFICATE_UPDATED,G,T),i.on(le.default.LICENSE_REQUEST_COMPLETE,G,T),i.on(le.default.KEY_SYSTEM_SELECTED,G,T),i.on(le.default.KEY_SESSION_CREATED,G,T),i.on(le.default.KEY_STATUSES_CHANGED,G,T))},activate:function(e,t){if(b)return t;var n=void 0;return i.on(le.default.CURRENT_TRACK_CHANGED,q,T),n=ne()?(function(){if(R=!0,B(),z(re.default.VIDEO),z(re.default.AUDIO),R=!(I=!0),0===A.length){var e="No streams to play.";c.error(new ce.default(de.default.MANIFEST_ERROR_ID_NOSTREAMS_CODE,e,l.getValue())),y.debug(e)}else W()}(),t):function(e,t){B();var n=v.getElement();V(),R=!0,z(re.default.VIDEO),z(re.default.AUDIO),(!n||n&&/^VIDEO$/i.test(n.nodeName))&&H(re.default.VIDEO,e);H(re.default.AUDIO,e),H(re.default.TEXT,e),H(re.default.FRAGMENTED_TEXT,e),H(re.default.EMBEDDED_TEXT,e),H(re.default.MUXED,e),H(re.default.IMAGE,e);var r=K(t);if(R=!(I=!0),0===A.length){var i="No streams to play.";c.error(new ce.default(de.default.MANIFEST_ERROR_ID_NOSTREAMS_CODE,i,l.getValue())),y.fatal(i)}else W();return r}(e,t),b=!0,n},deactivate:C,isActive:function(){return b},getDuration:x,getStartTime:F,getId:function(){return S?S.id:null},getStreamInfo:U,preload:function(e,t){V(),H(re.default.VIDEO,e),H(re.default.AUDIO,e),H(re.default.TEXT,e),H(re.default.FRAGMENTED_TEXT,e),H(re.default.EMBEDDED_TEXT,e),H(re.default.MUXED,e),H(re.default.IMAGE,e),K(t),i.on(le.default.CURRENT_TRACK_CHANGED,q,T);for(var n=0;n<A.length&&A[n];n++)A[n].getScheduleController().start();te(!0)},getFragmentController:function(){return t},getThumbnailController:function(){return D},getBitrateListFor:function(e){if(B(),e===re.default.IMAGE)return D?D.getBitrateList():[];var t=function(e){for(var t=A.length,n=null,r=0;r<t;r++)if((n=A[r]).getType()===e)return n.getMediaInfo();return null}(e);return p.getBitrateList(t)},startEventController:function(){N&&N.start()},stopEventController:k,updateData:function(e){y.info("Manifest updated... updating data system wide."),R=!(b=!1),S=e,N&&Y(),z(re.default.VIDEO),z(re.default.AUDIO);for(var t=0,n=A.length;t<n;t++){var r=A[t],i=d.getMediaInfoForType(S,r.getType());p.updateTopQualityIndex(i),r.addMediaInfo(i,!0)}if(M&&"fragmentedText"!==(i=M.newMediaInfo).type){var a=Z(M.oldMediaInfo);if(!a)return;a.switchTrackAsked(),M=void 0}R=!1,W()},reset:L,getProcessors:$,setMediaSource:function(e){for(var t=0;t<A.length;)j(A[t].getMediaInfo())?(A[t].setMediaSource(e),t++):(A[t].reset(),A.splice(t,1));for(t=0;t<A.length;t++)A[t].dischargePreBuffer();if(0===A.length){var n="No streams to play.";c.error(new ce.default(de.default.MANIFEST_ERROR_ID_NOSTREAMS_CODE,n+"nostreams",l.getValue())),y.fatal(n)}},isMediaCodecCompatible:function(e){return ee(e,re.default.VIDEO)&&ee(e,re.default.AUDIO)},isProtectionCompatible:function(e){return J(e,re.default.VIDEO)&&J(e,re.default.AUDIO)},getPreloaded:ne,addInbandEvents:function(e){N&&N.addInbandEvents(e)}},y=(0,fe.default)(u).getInstance().getLogger(T),P(),t=(0,oe.default)(u).create({mediaPlayerModel:f,dashMetrics:e,errHandler:c,settings:E}),i.on(le.default.BUFFERING_COMPLETED,X,T),i.on(le.default.DATA_UPDATE_COMPLETED,Q,T),T}a.__dashjs_factory_name="Stream",n.default=i.default.getClassFactory(a),t.exports=n.default},{105:105,107:107,113:113,114:114,152:152,173:173,46:46,47:47,48:48,52:52,55:55}],105:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var O=r(e(107)),C=r(e(163)),P=r(e(112)),L=r(e(148)),x=r(e(118)),F=r(e(63)),i=r(e(48)),U=e(166),B=r(e(58));function a(t){t=t||{};var n=this.context,r=t.type,i=t.errHandler,a=t.mimeType,o=t.timelineConverter,s=t.adapter,u=t.manifestModel,l=t.mediaPlayerModel,f=t.stream,d=t.abrController,c=t.playbackController,h=t.streamController,p=t.mediaController,g=t.textController,m=t.dashMetrics,_=t.settings,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,w=void 0;function e(){R=[]}function D(){T=[],E=null,e()}function N(){return f?f.getStreamInfo():null}function M(){return E}return v={initialize:function(e){(w=(0,B.default)(n).create({mimeType:a,timelineConverter:o,dashMetrics:m,mediaPlayerModel:l,baseURLController:t.baseURLController,errHandler:i,settings:_})).initialize(v),d.registerStreamType(r,v),(S=f.getFragmentController().getModel(r)).setStreamProcessor(v),y=function(e){var t=null;t=e===O.default.VIDEO||e===O.default.AUDIO?(0,P.default)(n).create({type:e,dashMetrics:m,mediaPlayerModel:l,manifestModel:u,errHandler:i,streamController:h,mediaController:p,adapter:s,textController:g,abrController:d,playbackController:c,streamProcessor:v,settings:_}):(0,L.default)(n).create({type:e,mimeType:a,dashMetrics:m,mediaPlayerModel:l,manifestModel:u,errHandler:i,streamController:h,mediaController:p,adapter:s,textController:g,abrController:d,playbackController:c,streamProcessor:v,settings:_});return t}(r),A=(0,x.default)(n).create({type:r,mimeType:a,adapter:s,dashMetrics:m,timelineConverter:o,mediaPlayerModel:l,abrController:d,playbackController:c,streamController:h,textController:g,streamProcessor:v,mediaController:p,settings:_}),(I=(0,F.default)(n).create()).setConfig({abrController:d,dashMetrics:m,manifestModel:u,playbackController:c,timelineConverter:o,streamProcessor:v}),y.initialize(e),A.initialize(),I.initialize()},isUpdating:function(){return!!I&&I.isUpdating()},getType:function(){return r},getBufferController:function(){return y},getFragmentModel:function(){return S},getScheduleController:function(){return A},getLiveEdgeFinder:function(){return b},getFragmentController:function(){return f?f.getFragmentController():null},getRepresentationController:function(){return I},getIndexHandler:function(){return w},getRepresentationInfo:function(e){var t=void 0;return(t=void 0!==e?((0,U.checkInteger)(e),I?I.getRepresentationForQuality(e):null):I?I.getCurrentRepresentation():null)?s.convertDataToRepresentationInfo(t):null},getBufferLevel:function(){return y.getBufferLevel()},switchInitData:function(e,t){y&&y.switchInitData(N().id,e,t)},isBufferingCompleted:function(){return!!y&&y.getIsBufferingCompleted()},createBuffer:function(e){return y.getBuffer()||y.createBuffer(E,e)},getStreamInfo:N,selectMediaInfo:function(e){e===E||e&&E&&e.type!==E.type||(E=e);var t=s.getRealAdaptation(N(),E),n=s.getVoRepresentations(E);I&&I.updateData(t,n,r)},addMediaInfo:function(e,t){-1===T.indexOf(e)&&T.push(e),t&&this.selectMediaInfo(e)},switchTrackAsked:function(){A.switchTrackAsked()},getMediaInfoArr:function(){return T},getMediaInfo:M,getMediaSource:function(){return y.getMediaSource()},setMediaSource:function(e){y.setMediaSource(e,M())},dischargePreBuffer:function(){y.dischargePreBuffer()},getBuffer:function(){return y.getBuffer()},setBuffer:function(e){y.setBuffer(e)},registerExternalController:function(e){R.push(e)},unregisterExternalController:function(e){var t=R.indexOf(e);-1!==t&&R.splice(t,1)},getExternalControllers:function(){return R},unregisterAllExternalController:e,addInbandEvents:function(e){f&&f.addInbandEvents(e)},setIndexHandlerTime:function(e){w&&w.setCurrentTime(e)},getIndexHandlerTime:function(){return w?w.getCurrentTime():NaN},resetIndexHandler:function(){w&&w.resetIndex()},getInitRequest:function(e){(0,U.checkInteger)(e);var t=I?I.getRepresentationForQuality(e):null;return w?w.getInitRequest(t):null},getFragmentRequest:function(e,t,n){var r=null,i=I&&e?I.getRepresentationForQuality(e.quality):null;return w&&(r=void 0!==t&&void 0!==n?w.getSegmentRequestForTime(i,t,n):w.getNextSegmentRequest(i)),r},reset:function(e,t){w.reset(),y&&(y.reset(e,t),y=null),A&&(A.reset(),A=null),I&&(I.reset(),I=null),d&&d.unRegisterStreamType(r),R.forEach(function(e){e.reset()}),D(),f=r=null,b&&(b.reset(),b=null)}},c&&c.getIsDynamic()&&(b=(0,C.default)(n).create({timelineConverter:o,streamProcessor:v})),D(),v}a.__dashjs_factory_name="StreamProcessor",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,112:112,118:118,148:148,163:163,166:166,48:48,58:58,63:63}],106:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var u=r(e(173)),i=r(e(130)),l=e(189),f=r(e(180)),d=r(e(47)),c=r(e(55)),a=r(e(48)),h=r(e(52));function o(e){e=e||{};var a="urn:mpeg:dash:resolve-to-zero:2013",t=this.context,o=(0,d.default)(t).getInstance(),s=(0,i.default)(t).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier});return{load:function(n,r,i){function t(e,t){r.resolved=!0,r.resolvedContent=e||null,o.trigger(c.default.XLINK_ELEMENT_LOADED,{element:r,resolveObject:i,error:e||t?null:new u.default(h.default.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE,h.default.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE+n)})}if(n===a)t(null,!0);else{var e=new f.default(n,l.HTTPRequest.XLINK_EXPANSION_TYPE);s.load({request:e,success:function(e){t(e)},error:function(){t(null)}})}},reset:function(){s&&(s.abort(),s=null)}}}o.__dashjs_factory_name="XlinkLoader",n.default=a.default.getClassFactory(o),t.exports=n.default},{130:130,173:173,180:180,189:189,47:47,48:48,52:52,55:55}],107:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.init()}Object.defineProperty(n,"__esModule",{value:!0});var a=new(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(i,[{key:"init",value:function(){this.STREAM="stream",this.VIDEO="video",this.AUDIO="audio",this.TEXT="text",this.FRAGMENTED_TEXT="fragmentedText",this.EMBEDDED_TEXT="embeddedText",this.MUXED="muxed",this.IMAGE="image",this.STPP="stpp",this.TTML="ttml",this.VTT="vtt",this.WVTT="wvtt",this.ABR_STRATEGY_DYNAMIC="abrDynamic",this.ABR_STRATEGY_BOLA="abrBola",this.ABR_STRATEGY_THROUGHPUT="abrThroughput",this.MOVING_AVERAGE_SLIDING_WINDOW="slidingWindow",this.MOVING_AVERAGE_EWMA="ewma",this.BAD_ARGUMENT_ERROR="Invalid Arguments",this.MISSING_CONFIG_ERROR="Missing config parameter(s)",this.LOCATION="Location",this.INITIALIZE="initialize",this.TEXT_SHOWING="showing",this.TEXT_HIDDEN="hidden",this.CC1="CC1",this.CC3="CC3",this.UTF8="utf-8",this.SCHEME_ID_URI="schemeIdUri",this.START_TIME="starttime"}}]),i);n.default=a,t.exports=n.default},{}],108:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.init()}Object.defineProperty(n,"__esModule",{value:!0});var a=new(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(i,[{key:"init",value:function(){this.TCP_CONNECTION="TcpList",this.HTTP_REQUEST="HttpList",this.TRACK_SWITCH="RepSwitchList",this.BUFFER_LEVEL="BufferLevel",this.BUFFER_STATE="BufferState",this.DVR_INFO="DVRInfo",this.DROPPED_FRAMES="DroppedFrames",this.SCHEDULING_INFO="SchedulingInfo",this.REQUESTS_QUEUE="RequestsQueue",this.MANIFEST_UPDATE="ManifestUpdate",this.MANIFEST_UPDATE_STREAM_INFO="ManifestUpdatePeriodInfo",this.MANIFEST_UPDATE_TRACK_INFO="ManifestUpdateRepresentationInfo",this.PLAY_LIST="PlayList",this.DVB_ERRORS="DVBErrors"}}]),i);n.default=a,t.exports=n.default},{}],109:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var H=r(e(137)),V=r(e(107)),Y=r(e(108)),z=r(e(172)),W=r(e(123)),K=r(e(47)),X=r(e(55)),i=r(e(48)),Q=r(e(133)),Z=r(e(134)),$=r(e(135)),J=r(e(132)),ee=r(e(136)),te=r(e(46)),ne=e(189),re=e(166),ie="abandonload",ae="allowload";function a(){var d=this.context,e=(0,te.default)(d).getInstance(),l=(0,K.default)(d).getInstance(),c=void 0,h=void 0,p=void 0,o=void 0,i=void 0,f=void 0,g=void 0,m=void 0,s=void 0,a=void 0,u=void 0,_=void 0,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,w=void 0,D=void 0;function n(){(p=(0,H.default)(d).create({dashMetrics:w,mediaPlayerModel:T,settings:D})).initialize()}function t(){i={},f={},m={},g={},b={},R={},void 0===a&&(a=!1),S=I=A=void 0,clearTimeout(s),s=null}function r(e){e.mediaType===V.default.VIDEO&&(A=e.oldQuality,I.push(A,E.getPlaybackQuality()))}function N(e){e.metric!==Y.default.HTTP_REQUEST||!e.value||e.value.type!==ne.HTTPRequest.MEDIA_SEGMENT_TYPE||e.mediaType!==V.default.AUDIO&&e.mediaType!==V.default.VIDEO||S.push(e.mediaType,e.value,D.get().streaming.abr.useDeadTimeLatency),e.metric!==Y.default.BUFFER_LEVEL||e.mediaType!==V.default.AUDIO&&e.mediaType!==V.default.VIDEO||function(e,t){var n=D.get().streaming.ABRStrategy;{if(n===V.default.ABR_STRATEGY_BOLA)return R[e]=!0;if(n===V.default.ABR_STRATEGY_THROUGHPUT)return R[e]=!1}var r=T.getStableBufferTime(),i=r,a=.5*r,o=R[e],s=(o?a:i)<t;(R[e]=s)!==o&&(s?h.info("AbrController ("+e+") switching from throughput to buffer occupancy ABR rule (buffer: "+t.toFixed(3)+")."):h.info("AbrController ("+e+") switching from buffer occupancy to throughput ABR rule (buffer: "+t.toFixed(3)+")."))}(e.mediaType,.001*e.value.level)}function M(e,t){return i[t]=i[t]||{},i[t].hasOwnProperty(e)||(i[t][e]=0),function(e,t){if(t!==V.default.VIDEO||!D.get().streaming.abr.limitBitrateByPortal||!g[t])return e;a||j();var n=v.getAdaptationForType(0,t).Representation,r=e;if(0<u&&0<_){for(;0<r&&n[r]&&u<n[r].width&&u-n[r-1].width<n[r].width-u;)r-=1;for(;r<n.length-1&&n[r].width===n[r+1].width;)r+=1}return r}(function(e,t,n){var r=function(e){return D.get().streaming.abr.maxRepresentationRatio[e]}(t);if(isNaN(r)||1<=r||r<0)return e;return Math.min(e,Math.round(n*r))}(function(e,t){var n=e;if(!g[t])return n;var r=C(t);void 0!==r&&(n=Math.max(e,r));var i=O(t);void 0!==i&&(n=Math.min(n,i));return n}(i[t][e],e),e,i[t][e]),e)}function O(e){var t=function(e){return D.get().streaming.abr.maxBitrate[e]}(e);return-1<t?U(g[e].getMediaInfo(),t):void 0}function C(e){var t=function(e){return D.get().streaming.abr.minBitrate[e]}(e);if(-1<t){var n=g[e].getMediaInfo(),r=B(n),i=U(n,t);return r[i]&&i<r.length-1&&r[i].bitrate<1e3*t&&i++,i}}function P(e){return!!D.get().streaming.abr.autoSwitchBitrate[e]}function L(e,t,n,r){var i=t.id,a=G(e);(0,re.checkInteger)(n);var o=M(e,i);n!==a&&0<=n&&n<=o&&x(e,a,n,o,r)}function x(e,t,n,r,i){if(e&&g[e]){var a=g[e].getStreamInfo(),o=a?a.id:null;if(D.get().debug.logLevel===te.default.LOG_LEVEL_DEBUG){var s=w.getCurrentBufferLevel(e,!0);h.info("AbrController ("+e+") switch from "+t+" to "+n+"/"+r+" (buffer: "+s+") "+(i?JSON.stringify(i):"."))}!function(e,t,n){f[t]=f[t]||{},f[t][e]=n}(e,o,n),l.trigger(X.default.QUALITY_CHANGE_REQUESTED,{mediaType:e,streamInfo:a,oldQuality:t,newQuality:n,reason:i});var u=S.getAverageThroughput(e);isNaN(u)||y.setSavedBitrateSettings(e,u)}}function F(e,t){m[e].state=t}function U(e,t,n){var r=e&&e.type?g[e.type].getRepresentationInfo():null;if(D.get().streaming.abr.useDeadTimeLatency&&n&&r&&r.fragmentDuration){n/=1e3;var i=r.fragmentDuration;if(i<n)return 0;t*=1-n/i}for(var a=B(e),o=a.length-1;0<=o;o--){if(1e3*t>=a[o].bitrate)return o}return 0}function B(e){var t=[];if(!e||!e.bitrateList)return t;for(var n=e.bitrateList,r=e.type,i=void 0,a=0,o=n.length;a<o;a++)(i=new z.default).mediaType=r,i.qualityIndex=a,i.bitrate=n[a].bandwidth,i.width=n[a].width,i.height=n[a].height,i.scanType=n[a].scanType,t.push(i);return t}function k(e){return R[e]}function G(e){if(e&&g[e]){var t=g[e].getStreamInfo(),n=t?t.id:null;if(n)return f[n]=f[n]||{},f[n].hasOwnProperty(e)||(f[n][e]=0),f[n][e]}return 0}function j(){if(E){var e=D.get().streaming.abr.usePixelRatioInLimitBitrateByPortal&&window.hasOwnProperty("devicePixelRatio")?window.devicePixelRatio:1;u=E.getClientWidth()*e,_=E.getClientHeight()*e}}function q(e){var t=e.request.mediaType;if(P(t)){var n=g[t];if(!n)return;var r=(0,Q.default)(d).create({abrController:c,streamProcessor:n,currentRequest:e.request,useBufferOccupancyABR:k(t)}),i=p.shouldAbandonFragment(r);if(i.quality>Z.default.NO_CHANGE){var a=n.getFragmentModel();a.getRequests({state:W.default.FRAGMENT_MODEL_LOADING,index:e.request.index})[0]&&(a.abortRequests(),F(t,ie),b[t].reset(),b[t].push({oldValue:G(t),newValue:i.quality,confidence:1,reason:i.reason}),L(t,o.getActiveStreamInfo(),i.quality,i.reason),clearTimeout(s),s=setTimeout(function(){F(t,ae),s=null},D.get().streaming.abandonLoadTimeout))}}}return c={isPlayingAtTopQuality:function(e){var t=e?e.id:null,n=G(V.default.AUDIO),r=G(V.default.VIDEO);return n===M(V.default.AUDIO,t)&&r===M(V.default.VIDEO,t)},updateTopQualityIndex:function(e){var t=e.type,n=e.streamInfo.id,r=e.representationCount-1;return function(e,t,n){i[t]=i[t]||{},i[t][e]=n}(t,n,r),r},getThroughputHistory:function(){return S},getBitrateList:B,getQualityForBitrate:U,getTopBitrateInfoFor:function(e){if(e&&g&&g[e]){var t=g[e].getStreamInfo();if(t&&t.id){var n=M(e,t.id),r=B(g[e].getMediaInfo());return r[n]?r[n]:null}}return null},getMaxAllowedIndexFor:O,getMinAllowedIndexFor:C,getInitialBitrateFor:function(e){if(function(){if(!y||!y.hasOwnProperty("getSavedBitrateSettings"))throw new Error(V.default.MISSING_CONFIG_ERROR)}(),e===V.default.TEXT||e===V.default.FRAGMENTED_TEXT)return NaN;var t=y.getSavedBitrateSettings(e),n=D.get().streaming.abr.initialBitrate[e],r=D.get().streaming.abr.initialRepresentationRatio[e];if(-1===n)if(-1<r){var i=v.getAdaptationForType(0,e).Representation;if(Array.isArray(i))n=i[Math.max(Math.round(i.length*r)-1,0)].bandwidth;else n=0}else n=isNaN(t)?e===V.default.VIDEO?1e3:100:t;return n},getQualityFor:G,getAbandonmentStateFor:function(e){return m[e]?m[e].state:null},setPlaybackQuality:L,checkPlaybackQuality:function(e){if(e&&g&&g[e]){var t=g[e].getStreamInfo(),n=t?t.id:null,r=G(e),i=(0,Q.default)(d).create({abrController:c,streamProcessor:g[e],currentValue:r,switchHistory:b[e],droppedFramesHistory:I,useBufferOccupancyABR:k(e)});if(I){var a=E.getPlaybackQuality();a&&I.push(A,a)}if(P(e)){var o=C(e),s=M(e,n),u=p.getMaxQuality(i),l=u.quality;if(void 0!==o&&(l>Z.default.NO_CHANGE?l:r)<o&&(l=o),s<l&&(l=s),b[e].push({oldValue:r,newValue:l}),l>Z.default.NO_CHANGE&&l!=r)(m[e].state===ae||r<l)&&x(e,r,l,s,u.reason);else if(D.get().debug.logLevel===te.default.LOG_LEVEL_DEBUG){var f=w.getCurrentBufferLevel(e,!0);h.debug("AbrController ("+e+") stay on "+r+"/"+s+" (buffer: "+f+")")}}}},getTopQualityIndexFor:M,setElementSize:j,setWindowResizeEventCalled:function(e){a=e},createAbrRulesCollection:n,registerStreamType:function(e,t){b[e]=b[e]||(0,$.default)(d).create(),g[e]=t,m[e]=m[e]||{},m[e].state=ae,R[e]=!1,l.on(X.default.LOADING_PROGRESS,q,this),e==V.default.VIDEO&&(l.on(X.default.QUALITY_CHANGE_RENDERED,r,this),I=I||(0,J.default)(d).create(),j()),l.on(X.default.METRIC_ADDED,N,this),l.on(X.default.PERIOD_SWITCH_COMPLETED,n,this),S=S||(0,ee.default)(d).create({settings:D})},unRegisterStreamType:function(e){delete g[e]},setConfig:function(e){e&&(e.streamController&&(o=e.streamController),e.domStorage&&(y=e.domStorage),e.mediaPlayerModel&&(T=e.mediaPlayerModel),e.dashMetrics&&(w=e.dashMetrics),e.adapter&&(v=e.adapter),e.videoModel&&(E=e.videoModel),e.settings&&(D=e.settings))},reset:function(){t(),l.off(X.default.LOADING_PROGRESS,q,this),l.off(X.default.QUALITY_CHANGE_RENDERED,r,this),l.off(X.default.METRIC_ADDED,N,this),l.off(X.default.PERIOD_SWITCH_COMPLETED,n,this),p&&p.reset()}},h=e.getLogger(c),t(),c}a.__dashjs_factory_name="AbrController";var o=i.default.getSingletonFactory(a);o.ABANDON_LOAD=ie,o.QUALITY_DEFAULT=0,i.default.updateSingletonFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{107:107,108:108,123:123,132:132,133:133,134:134,135:135,136:136,137:137,166:166,172:172,189:189,46:46,47:47,48:48,55:55}],110:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var u=r(e(122)),l=r(e(154)),f=r(e(168)),d=r(e(85)),i=r(e(48)),c=r(e(47)),h=r(e(55));function a(){var e=void 0,t=void 0,n=this.context,r=(0,c.default)(n).getInstance(),i=(0,f.default)(n).getInstance(),a=void 0,o=void 0;function s(e){a.invalidateSelectedIndexes(e.entry)}return e={reset:function(){a.reset(),o.reset()},initialize:function(e){a.setConfig({adapter:t}),function(e){a.update(e),o.chooseSelector(t.getIsDVB(e))}(e)},resolve:function(e){var t=a.getForPath(e).reduce(function(e,t){var n=o.select(t);return n?(i.isRelative(n.url)?e.url=i.resolve(n.url,e.url):(e.url=n.url,e.serviceLocation=n.serviceLocation),e.availabilityTimeOffset=n.availabilityTimeOffset,e.availabilityTimeComplete=n.availabilityTimeComplete,e):new d.default},new d.default);if(!i.isRelative(t.url))return t},setConfig:function(e){e.baseURLTreeModel&&(a=e.baseURLTreeModel),e.baseURLSelector&&(o=e.baseURLSelector),e.adapter&&(t=e.adapter)}},a=(0,u.default)(n).create(),o=(0,l.default)(n).create(),r.on(h.default.SERVICE_LOCATION_BLACKLIST_CHANGED,s,e),e}a.__dashjs_factory_name="BaseURLController",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{122:122,154:154,168:168,47:47,48:48,55:55,85:85}],111:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),s=r(e(47));function a(e){e=e||{};var t=[],n=(0,s.default)(this.context).getInstance(),r=e.updateEventName,i=e.addBlacklistEventName;function a(e){-1===t.indexOf(e)&&(t.push(e),n.trigger(r,{entry:e}))}function o(e){a(e.entry)}return function(){i&&n.on(i,o,this)}(),{add:a,contains:function(e){return!!(t.length&&e&&e.length)&&-1!==t.indexOf(e)},reset:function(){t=[]}}}a.__dashjs_factory_name="BlackListController",n.default=i.default.getClassFactory(a),t.exports=n.default},{47:47,48:48}],112:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var pe=r(e(107)),ge=r(e(123)),me=r(e(103)),_e=r(e(102)),ve=r(e(109)),Ee=r(e(115)),Te=r(e(47)),ye=r(e(55)),Ae=r(e(155)),i=r(e(48)),be=r(e(46)),Ie=r(e(161)),Se=r(e(173)),Re=r(e(52)),we=e(189),De="bufferLoaded",Ne="bufferStalled",Me="BufferController";function a(e){e=e||{};var c=this.context,s=(0,Te.default)(c).getInstance(),t=e.dashMetrics,n=e.errHandler,r=e.streamController,i=e.mediaController,h=e.adapter,a=e.textController,o=e.abrController,d=e.playbackController,l=e.type,p=e.streamProcessor,u=e.settings,f=void 0,g=void 0,m=void 0,_=void 0,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,w=void 0,D=void 0,N=void 0,M=void 0,O=void 0,C=void 0,P=void 0,L=void 0;function x(e,t){if(!N||!e||!p)return null;if(T)try{"function"==typeof(b=t&&t[l]?(0,me.default)(c).create(T,e,G.bind(this),t[l]):(0,me.default)(c).create(T,e,G.bind(this))).getBuffer().initialize&&b.getBuffer().initialize(l,p)}catch(e){g.fatal("Caught error on create SourceBuffer: "+e),n.error(new Se.default(Re.default.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,Re.default.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+l))}else b=(0,_e.default)(c).create(G.bind(this));return ie(p.getRepresentationInfo(m).MSETimeOffset),b}function F(e){e.fragmentModel===p.getFragmentModel()&&(g.info("Init fragment finished loading saving to",l+"'s init cache"),N.save(e.chunk),g.debug("Append Init fragment",l," with representationId:",e.chunk.representationId," and quality:",e.chunk.quality,", data size:",e.chunk.bytes.byteLength),B(e.chunk))}function U(e){if(e.fragmentModel===p.getFragmentModel()){var t=e.chunk,n=t.bytes,r=t.quality,i=p.getRepresentationInfo(r),a=p.getRepresentationController(),o=a&&i?a.getRepresentationForQuality(i.quality):null,s=h.getEventsFor(i.mediaInfo),u=h.getEventsFor(i,o);if(s&&0<s.length||u&&0<u.length){var l=function(e,t,n,r){for(var i=Math.max(!t||isNaN(t.startTime)?0:t.startTime,0),a=[],o=[],s=n.concat(r),u=0,l=s.length;u<l;u++)a[s[u].schemeIdUri+"/"+s[u].value]=s[u];var f=(0,Ae.default)(c).getInstance().parse(e).getBoxes("emsg");for(u=0,l=f.length;u<l;u++){var d=h.getEvent(f[u],a,i);d&&o.push(d)}return o}(n,p.getFragmentModel().getRequests({state:ge.default.FRAGMENT_MODEL_EXECUTED,quality:r,index:t.index})[0],s,u);p.addInbandEvents(l)}if(P){L=t;var f=b&&b.getAllBufferRanges();f&&0<f.length&&.5<d.getTimeToStreamEnd()&&(g.debug("Clearing buffer because track changed - "+(f.end(f.length-1)+.5)),te([{start:0,end:f.end(f.length-1)+.5,force:!0}]))}else B(t)}}function B(e){b.append(e),e.mediaInfo.type===pe.default.VIDEO&&s.trigger(ye.default.VIDEO_CHUNK_RECEIVED,{chunk:e})}function k(e){if(e&&0<e.length)for(var t=0,n=e.length;t<n;t++)g.debug("Buffered Range for type:",l,":",e.start(t)," - ",e.end(t)," currentTime = ",d.getTime())}function G(e){if(e.error){if(22===e.error.code&&(E=.8*de(),g.warn("Quota exceeded for type: "+l+", Critical Buffer: "+E),0<E)){var t=Math.max(.2*E,1),n=E-t,r={streaming:{bufferToKeep:parseFloat(t.toFixed(5)),bufferAheadToKeep:parseFloat(n.toFixed(5))}};u.update(r)}22!==e.error.code&&ce()||(g.warn("Clearing playback buffer to overcome quota exceed situation for type: "+l),s.trigger(ye.default.QUOTA_EXCEEDED,{sender:f,criticalBufferLevel:E}),V())}else{(R=e.chunk)&&!isNaN(R.index)&&(y=Math.max(R.index,y),Z());var i=b.getAllBufferRanges();if(R.segmentType===we.HTTPRequest.MEDIA_SEGMENT_TYPE)k(i),Y();else if(P){var a=d.getTime();g.debug("AppendToBuffer seek target should be "+a),p.getScheduleController().setSeekTarget(a),p.setIndexHandlerTime(a)}var o={sender:f,quality:R.quality,startTime:R.start,index:R.index,bufferedRanges:i};R&&!R.endFragment?s.trigger(ye.default.BYTES_APPENDED,o):R&&s.trigger(ye.default.BYTES_APPENDED_END_FRAGMENT,o)}}function j(e){m!==e.newQuality&&l===e.mediaType&&p.getStreamInfo().id===e.streamInfo.id&&(ie(p.getRepresentationInfo(e.newQuality).MSETimeOffset),m=e.newQuality)}function q(){_&&(_=!(O=!0),A=Number.POSITIVE_INFINITY),l!==pe.default.FRAGMENTED_TEXT?V():Y()}function H(){M=void 0}function V(){b.waitForUpdateEnd(function(){var e=function(){var e=[],t=b.getAllBufferRanges();if(!t||0===t.length)return e;var n=d.getTime(),r=t.end(t.length-1)+.5,i=p.getFragmentModel().getRequests({state:ge.default.FRAGMENT_MODEL_EXECUTED,time:n,threshold:.01})[0];if(i){var a={start:0,end:i.startTime-.5},o=p.getFragmentModel().getRequests({state:ge.default.FRAGMENT_MODEL_EXECUTED,time:i.startTime-i.duration/2,threshold:.01})[0];o&&o.startTime!=i.startTime&&(a.end=o.startTime),a.start<a.end&&a.end>t.start(0)&&e.push(a);var s={start:i.startTime+i.duration+.5,end:r},u=p.getFragmentModel().getRequests({state:ge.default.FRAGMENT_MODEL_EXECUTED,time:i.startTime+i.duration+.5,threshold:.01})[0];u&&u.startTime!==i.startTime&&(s.start=u.startTime+u.duration+.5),s.start<s.end&&s.start<r&&e.push(s)}else g.debug("getAllRangesWithSafetyFactor for",l,"- No request found in current time position, removing full buffer 0 -",r),e.push({start:0,end:r});return e}();e&&0!==e.length||Y(),te(e)})}function Y(){(!P||l===pe.default.FRAGMENTED_TEXT&&a.isTextEnabled())&&(X(),Q())}function z(){$()}function W(){$()}function K(e,t){var n=b.getAllBufferRanges(),r=0,i=0,a=null,o=null,s=0,u=void 0,l=void 0,f=t||.15;if(null!=n){for(l=0,u=n.length;l<u;l++)if(r=n.start(l),i=n.end(l),null===a)s=Math.abs(r-e),r<=e&&e<i?(a=r,o=i):s<=f&&(a=r,o=i);else{if(!((s=r-o)<=f))break;o=i}if(null!==a)return{start:a,end:o}}return null}function X(){d&&(v=function(e,t){var n;return null===(n=K(e,t))?0:n.end-e}(function(){var e=d.getTime();if(M){var t=b.getAllBufferRanges();t&&t.length&&(e=Math.max(t.start(0),M))}return e}()||0),s.trigger(ye.default.BUFFER_LEVEL_UPDATED,{sender:f,bufferLevel:v}),$())}function Q(){p&&r&&p.getStreamInfo()&&(t.addBufferState(l,S,p.getScheduleController().getBufferTarget()),t.addBufferLevel(l,new Date,1e3*v))}function Z(){A-1<=y&&!_&&void 0===b.discharge&&(_=!0,g.debug("checkIfBufferingCompleted trigger BUFFERING_COMPLETED"),s.trigger(ye.default.BUFFERING_COMPLETED,{sender:f,streamInfo:p.getStreamInfo()}))}function $(){"audio"!==l&&"video"!==l||(O&&!_&&d&&d.getTimeToStreamEnd()-v<.5&&(_=!(O=!1),g.debug("checkIfSufficientBuffer trigger BUFFERING_COMPLETED"),s.trigger(ye.default.BUFFERING_COMPLETED,{sender:f,streamInfo:p.getStreamInfo()})),(!u.get().streaming.lowLatencyEnabled&&v<.5||0===v)&&!_?J(Ne):(_||v>=p.getStreamInfo().manifestInfo.minBufferTime)&&J(De))}function J(e){S===e||e===Ne&&0===d.getTime()||l===pe.default.FRAGMENTED_TEXT&&!a.isTextEnabled()||(S=e,Q(),s.trigger(ye.default.BUFFER_LEVEL_STATE_CHANGED,{sender:f,state:e,mediaType:l,streamInfo:p.getStreamInfo()}),s.trigger(e===De?ye.default.BUFFER_LOADED:ye.default.BUFFER_EMPTY,{mediaType:l}),g.debug(e===De?"Got enough buffer to start for "+l:"Waiting for more buffer before starting playback for "+l))}function ee(){b&&l!==pe.default.FRAGMENTED_TEXT&&(_||te(function(){var e=[],t=b.getAllBufferRanges();if(!t||0===t.length)return e;var n=d.getTime(),r={start:Math.max(0,n-u.get().streaming.bufferToKeep),end:n+u.get().streaming.bufferAheadToKeep},i=p.getFragmentModel().getRequests({state:ge.default.FRAGMENT_MODEL_EXECUTED,time:n,threshold:.01})[0];if(i)r.start=Math.min(i.startTime,r.start),r.end=Math.max(i.startTime+i.duration,r.end);else if(0===n&&d.getIsDynamic())return[];if(t.start(0)<=r.start){for(var a={start:0,end:r.start},o=0;o<t.length&&t.end(o)<=r.start;o++)a.end=t.end(o);a.start<a.end&&e.push(a)}if(t.end(t.length-1)>=r.end){var s={start:r.end,end:t.end(t.length-1)+.01};s.start<s.end&&e.push(s)}return e}()))}function te(e){e&&b&&0!==e.length&&(C.push.apply(C,e),D||ne())}function ne(){if(0===C.length||!b)return g.debug("Nothing to prune, halt pruning"),void(D=!(C=[]));var e=b.getBuffer();if(!e||!e.buffered||0===e.buffered.length)return g.debug("SourceBuffer is empty (or does not exist), halt pruning"),void(D=!(C=[]));var t=C.shift();g.debug("Removing",l,"buffer from:",t.start,"to",t.end),D=!0;var n=d.getTime();n<t.end&&(_=!1,y=0,P||(p.getScheduleController().setSeekTarget(n),p.setIndexHandlerTime(n))),b.remove(t.start,t.end,t.force)}function re(e){b===e.buffer&&(g.debug("onRemoved buffer from:",e.from,"to",e.to),k(b.getAllBufferRanges()),0===C.length&&(D=!1),e.unintended&&(g.warn("Detected unintended removal from:",e.from,"to",e.to,"setting index handler time to",e.from),p.setIndexHandlerTime(e.from)),D?ne():(P?(P=!1,L&&B(L)):(g.debug("onRemoved : call updateBufferLevel"),X()),s.trigger(ye.default.BUFFER_CLEARED,{sender:f,from:e.from,to:e.to,unintended:e.unintended,hasEnoughSpaceToAppend:ce()})))}function ie(e){b&&b.updateTimestampOffset&&b.updateTimestampOffset(e)}function ae(e){e.sender.getStreamProcessor()!==p||e.error||ie(e.currentRepresentation.MSETimeOffset)}function oe(e){e.fragmentModel===p.getFragmentModel()&&(A=e.request.index,Z())}function se(e){var t=b&&b.getAllBufferRanges();t&&e.newMediaInfo.type===l&&e.newMediaInfo.streamInfo.id===p.getStreamInfo().id&&(g.info("Track change asked"),i.getSwitchMode(l)===Ee.default.TRACK_SWITCH_MODE_ALWAYS_REPLACE&&t&&0<t.length&&.5<d.getTimeToStreamEnd()&&(_=!1,A=Number.POSITIVE_INFINITY))}function ue(){++w*(u.get().streaming.wallclockTimeUpdateInterval/1e3)>=u.get().streaming.bufferPruningInterval&&(w=0,ee())}function le(){$()}function fe(e,t){T=e,b&&t&&"function"==typeof b.discharge&&(I=b,x(t))}function de(){var e,t=b.getAllBufferRanges(),n=0,r=void 0;if(!t)return n;for(r=0,e=t.length;r<e;r++)n+=t.end(r)-t.start(r);return n}function ce(){return de()<E}function he(e,t){E=Number.POSITIVE_INFINITY,S=void 0,m=ve.default.QUALITY_DEFAULT,A=Number.POSITIVE_INFINITY,R=null,O=D=_=!1,w=v=y=0,C=[],b&&(e||b.abort(),b.reset(t),b=null),P=!1}return f={getBufferControllerType:function(){return Me},initialize:function(e){fe(e),m=o.getQualityFor(l),s.on(ye.default.DATA_UPDATE_COMPLETED,ae,this),s.on(ye.default.INIT_FRAGMENT_LOADED,F,this),s.on(ye.default.MEDIA_FRAGMENT_LOADED,U,this),s.on(ye.default.QUALITY_CHANGE_REQUESTED,j,this),s.on(ye.default.STREAM_COMPLETED,oe,this),s.on(ye.default.PLAYBACK_PLAYING,W,this),s.on(ye.default.PLAYBACK_PROGRESS,Y,this),s.on(ye.default.PLAYBACK_TIME_UPDATED,Y,this),s.on(ye.default.PLAYBACK_RATE_CHANGED,le,this),s.on(ye.default.PLAYBACK_SEEKING,q,this),s.on(ye.default.PLAYBACK_SEEKED,H,this),s.on(ye.default.PLAYBACK_STALLED,z,this),s.on(ye.default.WALLCLOCK_TIME_UPDATED,ue,this),s.on(ye.default.CURRENT_TRACK_CHANGED,se,this,Te.default.EVENT_PRIORITY_HIGH),s.on(ye.default.SOURCEBUFFER_REMOVE_COMPLETED,re,this)},createBuffer:x,dischargePreBuffer:function(){if(b&&I&&"function"==typeof I.discharge){var e=I.getAllBufferRanges();if(0<e.length){for(var t="Beginning "+l+"PreBuffer discharge, adding buffer for:",n=0;n<e.length;n++)t+=" start: "+e.start(n)+", end: "+e.end(n)+";";g.debug(t)}else g.debug("PreBuffer discharge requested, but there were no media segments in the PreBuffer.");for(var r=I.discharge(),i=null,a=0;a<r.length;a++){var o=r[a],s=N.extract(o.streamId,o.representationId);s&&(i!==s&&(b.append(s),i=s),b.append(o))}I.reset(),I=null}},getType:function(){return l},getStreamProcessor:function(){return p},setSeekStartTime:function(e){M=e},getBuffer:function(){return b},setBuffer:function(e){b=e},getBufferLevel:function(){return v},getRangeAt:K,setMediaSource:fe,getMediaSource:function(){return T},getIsBufferingCompleted:function(){return _},switchInitData:function(e,t,n){var r=N.extract(e,t);P=!0===n&&n,r?(g.info("Append Init fragment",l," with representationId:",r.representationId," and quality:",r.quality,", data size:",r.bytes.byteLength),B(r)):s.trigger(ye.default.INIT_REQUESTED,{sender:f})},getIsPruningInProgress:function(){return D},reset:function(e,t){s.off(ye.default.DATA_UPDATE_COMPLETED,ae,this),s.off(ye.default.QUALITY_CHANGE_REQUESTED,j,this),s.off(ye.default.INIT_FRAGMENT_LOADED,F,this),s.off(ye.default.MEDIA_FRAGMENT_LOADED,U,this),s.off(ye.default.STREAM_COMPLETED,oe,this),s.off(ye.default.CURRENT_TRACK_CHANGED,se,this),s.off(ye.default.PLAYBACK_PLAYING,W,this),s.off(ye.default.PLAYBACK_PROGRESS,Y,this),s.off(ye.default.PLAYBACK_TIME_UPDATED,Y,this),s.off(ye.default.PLAYBACK_RATE_CHANGED,le,this),s.off(ye.default.PLAYBACK_SEEKING,q,this),s.off(ye.default.PLAYBACK_SEEKED,H,this),s.off(ye.default.PLAYBACK_STALLED,z,this),s.off(ye.default.WALLCLOCK_TIME_UPDATED,ue,this),s.off(ye.default.SOURCEBUFFER_REMOVE_COMPLETED,re,this),he(e,t)}},g=(0,be.default)(c).getInstance().getLogger(f),N=(0,Ie.default)(c).getInstance(),he(),f}a.__dashjs_factory_name=Me;var o=i.default.getClassFactory(a);o.BUFFER_LOADED=De,o.BUFFER_EMPTY=Ne,i.default.updateClassFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{102:102,103:103,107:107,109:109,115:115,123:123,155:155,161:161,173:173,189:189,46:46,47:47,48:48,52:52,55:55}],113:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),b=r(e(46)),I=r(e(47)),S=r(e(55)),R=r(e(131));function a(){var l="urn:mpeg:dash:event:2012",f=1,d="urn:mpeg:dash:event:callback:2015",c=1,h=this.context,p=(0,I.default)(h).getInstance(),e=void 0,g=void 0,r=void 0,i=void 0,m=void 0,t=void 0,n=void 0,a=void 0,_=void 0,o=void 0,s=void 0;function u(){s=!1,r={},i={},m={},t=null,n=100,a=Date.now()/1e3}function v(){if(!_||!o)throw new Error("setConfig function has to be called previously")}function E(){null!==t&&s&&(clearInterval(t),t=null,s=!1)}function T(e){if(e.eventStream.value==f){var t=e.eventStream.timescale||1,n=e.presentationTime/t,r=void 0;r=4294967295==e.presentationTime?NaN:(e.presentationTime+e.duration)/t,g.info("Manifest validity changed: Valid until: "+n+"; remaining duration: "+r),p.trigger(S.default.MANIFEST_VALIDITY_CHANGED,{id:e.id,validUntil:n,newDuration:r,newManifestValidAfter:NaN})}}function y(){var e=o.getTime(),t=e-a;A(i,t,a=e),A(r,t,e),function(){if(m)for(var e=o.getTime(),t=Object.keys(m),n=0;n<t.length;n++){var r=t[n],i=m[r];null!==i&&(i.duration+i.presentationTime)/i.eventStream.timescale<e&&(g.debug("Remove Event "+r+" at time "+e),i=null,delete m[r])}}()}function A(e,t,n){var r,i;if(e)for(var a=Object.keys(e),o=0;o<a.length;o++){var s=a[o],u=e[s];void 0!==u&&(0==(r=u.presentationTime/u.eventStream.timescale)||r<=n&&n<r+t)&&(g.debug("Start Event "+s+" at "+n),0<u.duration&&(m[s]=u),u.eventStream.schemeIdUri==l&&u.eventStream.value==f?0===u.duration&&0===u.presentationTimeDelta||(v(),_.refreshManifest()):u.eventStream.schemeIdUri==d&&u.eventStream.value==c?(i=u.messageData,(0,R.default)(h).create({}).load({method:"get",url:i,request:{responseType:"arraybuffer"}})):p.trigger(u.eventStream.schemeIdUri,{event:u}),delete e[s])}}return e={addInlineEvents:function(e){if(v(),r={},e)for(var t=0;t<e.length;t++){var n=e[t];r[n.id]=n,g.debug("Add inline event with id "+n.id)}g.debug("Added "+e.length+" inline events")},addInbandEvents:function(e){v();for(var t=0;t<e.length;t++){var n=e[t];n.id in i?g.debug("Repeated event with id "+n.id):(n.eventStream.schemeIdUri===l&&void 0===i[n.id]&&T(n),i[n.id]=n,g.debug("Add inband event with id "+n.id))}},stop:E,start:function(){v(),g.debug("Start Event Controller"),s||isNaN(n)||(s=!0,t=setInterval(y,n))},setConfig:function(e){e&&(e.manifestUpdater&&(_=e.manifestUpdater),e.playbackController&&(o=e.playbackController))},reset:function(){E(),u()}},g=(0,b.default)(h).getInstance().getLogger(e),u(),e}a.__dashjs_factory_name="EventController",n.default=i.default.getClassFactory(a),t.exports=n.default},{131:131,46:46,47:47,48:48,55:55}],114:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var c=r(e(107)),h=e(189),p=r(e(174)),g=r(e(123)),m=r(e(97)),_=r(e(165)),v=r(e(47)),E=r(e(55)),i=r(e(48)),T=r(e(46));function a(n){n=n||{};var r=this.context,o=(0,v.default)(r).getInstance(),i=n.errHandler,a=n.mediaPlayerModel,s=n.dashMetrics,e=void 0,u=void 0,l=void 0;function f(e){return e&&e.type&&e.type===h.HTTPRequest.INIT_SEGMENT_TYPE}function t(){for(var e in l)l[e].reset();l={}}function d(e){if(l[e.request.mediaType]===e.sender){var t=e.request,n=e.response,r=f(t),i=t.mediaInfo.streamInfo;if(e.error&&(e.request.mediaType!==c.default.AUDIO&&e.request.mediaType!==c.default.VIDEO&&e.request.mediaType!==c.default.FRAGMENTED_TEXT||o.trigger(E.default.SERVICE_LOCATION_BLACKLIST_ADD,{entry:e.request.serviceLocation})),n&&i){var a=function(e,t,n,r){var i=new p.default;return i.streamId=n,i.mediaInfo=t.mediaInfo,i.segmentType=t.type,i.start=t.startTime,i.duration=t.duration,i.end=i.start+i.duration,i.bytes=e,i.index=t.index,i.quality=t.quality,i.representationId=t.representationId,i.endFragment=r,i}(n,t,i.id,e.type!==E.default.FRAGMENT_LOADING_PROGRESS);o.trigger(r?E.default.INIT_FRAGMENT_LOADED:E.default.MEDIA_FRAGMENT_LOADED,{chunk:a,fragmentModel:e.sender})}else u.warn("No "+t.mediaType+" bytes to push or stream is inactive.")}}return e={getModel:function(e){var t=l[e];return t||(t=(0,g.default)(r).create({dashMetrics:s,fragmentLoader:(0,m.default)(r).create({dashMetrics:s,mediaPlayerModel:a,errHandler:i,requestModifier:(0,_.default)(r).getInstance(),settings:n.settings})}),l[e]=t),t},isInitializationRequest:f,reset:function(){o.off(E.default.FRAGMENT_LOADING_COMPLETED,d,this),o.off(E.default.FRAGMENT_LOADING_PROGRESS,d,this),t()}},u=(0,T.default)(r).getInstance().getLogger(e),t(),o.on(E.default.FRAGMENT_LOADING_COMPLETED,d,e),o.on(E.default.FRAGMENT_LOADING_PROGRESS,d,e),e}a.__dashjs_factory_name="FragmentController",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,123:123,165:165,174:174,189:189,46:46,47:47,48:48,55:55,97:97}],115:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var A=r(e(107)),b=r(e(55)),I=r(e(47)),i=r(e(48)),S=r(e(46)),R="neverReplace",w="alwaysReplace",D="highestBitrate",N="widestRange",M=D;function a(){var e=this.context,o=(0,I.default)(e).getInstance(),t=void 0,a=void 0,s=void 0,n=void 0,r=void 0,u=void 0,l=void 0,i=[w,R],f=[D,N];function d(e,t){if(!e||!t)return[];var n=t.id;return s[n]&&s[n][e]?s[n][e].list:[]}function c(e,t){return!e||!t||t&&!s[t.id]?null:s[t.id][e].current}function h(e){if(e&&e.streamInfo){var t=e.type,n=e.streamInfo,r=n.id,i=c(t,n);if(s[r]&&s[r][t]&&!v(e,i)){s[r][t].current=e,s[r][t].current&&o.trigger(b.default.CURRENT_TRACK_CHANGED,{oldMediaInfo:i,newMediaInfo:e,switchMode:u[t]});var a=function(e){var t={lang:e.lang,viewpoint:e.viewpoint,roles:e.roles,accessibility:e.accessibility,audioChannelConfiguration:e.audioChannelConfiguration};return t.lang||t.viewpoint||t.role&&0<t.role.length||t.accessibility&&0<t.accessibility.length||t.audioChannelConfiguration&&0<t.audioChannelConfiguration.length?t:null}(e);a&&s[r][t].storeLastSettings&&(a.roles&&(a.role=a.roles[0],delete a.roles),a.accessibility&&(a.accessibility=a.accessibility[0]),a.audioChannelConfiguration&&(a.audioChannelConfiguration=a.audioChannelConfiguration[0]),l.setSavedMediaSettings(t,a))}}}function p(e,t){e&&t&&(n[e]=t)}function g(e){return e?n[e]:null}function m(){return r||M}function _(e){return e===A.default.AUDIO||e===A.default.VIDEO||e===A.default.TEXT||e===A.default.FRAGMENTED_TEXT||e===A.default.IMAGE}function v(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var n=e.id===t.id,r=e.viewpoint===t.viewpoint,i=e.lang===t.lang,a=e.roles.toString()===t.roles.toString(),o=e.accessibility.toString()===t.accessibility.toString(),s=e.audioChannelConfiguration.toString()===t.audioChannelConfiguration.toString();return n&&r&&i&&a&&o&&s}function E(){s={},n={audio:null,video:null},u={audio:w,video:R}}function T(t,e){var n=!t.lang||t.lang===e.lang,r=!t.viewpoint||t.viewpoint===e.viewpoint,i=!t.role||!!e.roles.filter(function(e){return e===t.role})[0],a=!t.accessibility||!!e.accessibility.filter(function(e){return e===t.accessibility})[0],o=!t.audioChannelConfiguration||!!e.audioChannelConfiguration.filter(function(e){return e===t.audioChannelConfiguration})[0];return n&&r&&i&&a&&o}function y(e){function t(e){var t=0,n=[],r=void 0;return e.forEach(function(e){r=Math.max.apply(Math,e.bitrateList.map(function(e){return e.bandwidth})),t<r?(t=r,n=[e]):r===t&&n.push(e)}),n}function n(e){var t=0,n=[],r=void 0;return e.forEach(function(e){r=e.representationCount,t<r?(t=r,n=[e]):r===t&&n.push(e)}),n}var r=m(),i=[];switch(r){case D:1<(i=t(e)).length&&(i=n(i));break;case N:1<(i=n(e)).length&&(i=t(e));break;default:a.warn("Track selection mode is not supported: "+r)}return i[0]}return t={checkInitialMediaSettingsForType:function(e,t){var n=g(e),r=d(e,t),i=[];e!==A.default.FRAGMENTED_TEXT?(n||p(e,n=l.getSavedMediaSettings(e)),r&&0!==r.length&&(n&&r.forEach(function(e){T(n,e)&&i.push(e)}),0===i.length?h(y(r)):1<i.length?h(y(i)):h(i[0]))):h(r[0])},addTrack:function(e){if(e){var t=e.type;if(_(t)){var n=e.streamInfo.id;s[n]||(s[n]={audio:{list:[],storeLastSettings:!0,current:null},video:{list:[],storeLastSettings:!0,current:null},text:{list:[],storeLastSettings:!0,current:null},fragmentedText:{list:[],storeLastSettings:!0,current:null},image:{list:[],storeLastSettings:!0,current:null}});for(var r=s[n][t].list,i=0,a=r.length;i<a;++i)if(v(r[i],e))return;r.push(e);var o=g(t);o&&T(o,e)&&!c(t,e.streamInfo)&&h(e)}}},getTracksFor:d,getCurrentTrackFor:c,isCurrentTrack:function(e){if(!e)return!1;var t=e.type,n=e.streamInfo.id;return s[n]&&s[n][t]&&v(s[n][t].current,e)},setTrack:h,setInitialSettings:p,getInitialSettings:g,setSwitchMode:function(e,t){-1!==i.indexOf(t)?u[e]=t:a.warn("Track switch mode is not supported: "+t)},getSwitchMode:function(e){return u[e]},setSelectionModeForInitialTrack:function(e){-1!==f.indexOf(e)?r=e:a.warn("Track selection mode is not supported: "+e)},getSelectionModeForInitialTrack:m,isMultiTrackSupportedByType:_,isTracksEqual:v,setConfig:function(e){e&&e.domStorage&&(l=e.domStorage)},reset:E},a=(0,S.default)(e).getInstance().getLogger(t),E(),t}a.__dashjs_factory_name="MediaController";var o=i.default.getSingletonFactory(a);o.TRACK_SWITCH_MODE_NEVER_REPLACE=R,o.TRACK_SWITCH_MODE_ALWAYS_REPLACE=w,o.TRACK_SELECTION_MODE_HIGHEST_BITRATE=D,o.TRACK_SELECTION_MODE_WIDEST_RANGE=N,o.DEFAULT_INIT_TRACK_SELECTION_MODE=M,i.default.updateSingletonFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{107:107,46:46,47:47,48:48,55:55}],116:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(46));function o(){var e=void 0,i=void 0,t=this.context;return e={createMediaSource:function(){var e="WebKitMediaSource"in window;return"MediaSource"in window?new MediaSource:e?new WebKitMediaSource:null},attachMediaSource:function(e,t){var n=window.URL.createObjectURL(e);return t.setSource(n),n},detachMediaSource:function(e){e.setSource(null)},setDuration:function(e,t){return e.duration!=t&&(e.duration=t),e.duration},setSeekable:function(e,t,n){e&&"function"==typeof e.setLiveSeekableRange&&"function"==typeof e.clearLiveSeekableRange&&"open"===e.readyState&&0<=t&&t<n&&(e.clearLiveSeekableRange(),e.setLiveSeekableRange(t,n))},signalEndOfStream:function(e){var t=e.sourceBuffers,n=t.length;if("open"===e.readyState){for(var r=0;r<n;r++){if(t[r].updating)return;if(0===t[r].buffered.length)return}i.info("call to mediaSource endOfStream"),e.endOfStream()}}},i=(0,a.default)(t).getInstance().getLogger(e),e}o.__dashjs_factory_name="MediaSourceController",n.default=i.default.getSingletonFactory(o),t.exports=n.default},{46:46,48:48}],117:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var he=r(e(107)),pe=r(e(112)),ge=r(e(47)),me=r(e(55)),i=r(e(48)),_e=r(e(46));function a(){var e=this.context,i=(0,ge.default)(e).getInstance(),t=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,n=void 0,o=void 0,r=void 0,c=void 0,h=void 0,p=void 0,g=void 0,m=void 0,_=void 0,a=void 0,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0;function R(e){!m&&e.fromStreamInfo&&void 0!==c[e.fromStreamInfo.id]&&(delete p[e.fromStreamInfo.id],delete c[e.fromStreamInfo.id])}function w(){return parseFloat((D()-L()).toFixed(5))}function D(){var e=q(!0),t=m&&g?e-g.start:0;return e+(g?g.duration-t:t)}function N(){g&&d&&d.getElement()?d.play():a=!0}function M(){return g&&d?d.isPaused():null}function O(){g&&d&&d.pause()}function C(){return g&&d?d.isSeeking():null}function P(e,t,n){g&&d&&(!0===n?e!==d.getTime()&&(d.removeEventListener("seeking",$),s.info("Requesting seek to time: "+e),d.setCurrentTime(e,t)):(i.trigger(me.default.PLAYBACK_SEEK_ASKED),s.info("Requesting seek to time: "+e),d.setCurrentTime(e,t)))}function L(){return g&&d?d.getTime():null}function x(){var e=L();if(m&&!isNaN(E)){var t=E/1e3;t<e&&(e-=t)}return e}function F(){return g&&d?d.getPlaybackRate():null}function U(){return g&&d?d.getEnded():null}function B(){return m}function k(){if(!m||isNaN(E))return NaN;var e=x();if(isNaN(e)||0===e)return 0;var t=(new Date).getTime()+1e3*n.getClientTimeOffset();return Math.max(((t-E-1e3*e)/1e3).toFixed(3),0)}function G(){o=NaN,a=!1,c={},E=h=0,p={},d&&(i.off(me.default.DATA_UPDATE_COMPLETED,z,this),i.off(me.default.BUFFER_LEVEL_STATE_CHANGED,de,this),i.off(me.default.BYTES_APPENDED_END_FRAGMENT,le,this),i.off(me.default.LOADING_PROGRESS,fe,this),i.off(me.default.PERIOD_SWITCH_STARTED,R,this),i.off(me.default.PLAYBACK_PROGRESS,se,this),i.off(me.default.PLAYBACK_TIME_UPDATED,se,this),i.off(me.default.PLAYBACK_ENDED,ae,this),V(),d.removeEventListener("canplay",W),d.removeEventListener("play",K),d.removeEventListener("waiting",X),d.removeEventListener("playing",Q),d.removeEventListener("pause",Z),d.removeEventListener("error",oe),d.removeEventListener("seeking",$),d.removeEventListener("seeked",J),d.removeEventListener("timeupdate",ee),d.removeEventListener("progress",te),d.removeEventListener("ratechange",ne),d.removeEventListener("loadedmetadata",re),d.removeEventListener("stalled",ce),d.removeEventListener("ended",ie)),m=g=d=r=null}function j(){var e=I.getURIFragmentData(),t=void 0;if(e){t={};var n=parseInt(e.r,10);0<=n&&g&&n<g.manifestInfo.DVRWindowSize&&null===e.t&&(e.t=Math.max(Math.floor(Date.now()/1e3)-g.manifestInfo.DVRWindowSize,g.manifestInfo.availableFrom.getTime()/1e3+g.start)+n),t.fragS=parseFloat(e.s),t.fragT=parseFloat(e.t)}return t}function q(e,t){var n=void 0,r=NaN;if(e)r=g?g.start:r;else{var i=j();r=i?isNaN(i.fragS)?i.fragT:i.fragS:0}if(m)!isNaN(r)&&g&&(n=r-g.manifestInfo.availableFrom.getTime()/1e3,(o<n||n<(isNaN(t)?NaN:t-g.manifestInfo.DVRWindowSize))&&(n=null)),n=n||o;else if(g)if(!isNaN(r)&&r<Math.max(g.manifestInfo.duration,g.duration)&&0<=r)n=r;else{var a=c[g.id];n=void 0!==a?Math.max(void 0!==a.audio?a.audio:0,void 0!==a.video?a.video:0,g.start):g.start}return n}function H(){if(null===r){r=setInterval(function(){i.trigger(me.default.WALLCLOCK_TIME_UPDATED,{isDynamic:m,time:new Date}),B()&&M()&&function(){var e=Date.now();(!v||v+500<e)&&(v=e,ee())}()},S.get().streaming.wallclockTimeUpdateInterval)}}function V(){clearInterval(r),r=null}function Y(){if(!M()&&m&&0!==d.getReadyState()){var e=x(),t=function(e){var t=l.getCurrentDVRInfo(),n=t?t.range:null;return n?e>n.end?Math.max(n.end-2*g.manifestInfo.minBufferTime,n.start):e+.25<n.start&&n.start-e>n.start-31536e4?n.start:e:NaN}(e);!isNaN(t)&&t!==e&&P(t)}}function z(e){if(!e.error){var t=f.convertDataToRepresentationInfo(e.currentRepresentation).mediaInfo.streamInfo;g.id===t.id&&(g=t,Y())}}function W(){i.trigger(me.default.CAN_PLAY)}function K(){s.info("Native video element event: play"),Y(),H(),i.trigger(me.default.PLAYBACK_STARTED,{startTime:L()})}function X(){s.info("Native video element event: waiting"),i.trigger(me.default.PLAYBACK_WAITING,{playingTime:L()})}function Q(){s.info("Native video element event: playing"),i.trigger(me.default.PLAYBACK_PLAYING,{playingTime:L()})}function Z(){s.info("Native video element event: pause"),i.trigger(me.default.PLAYBACK_PAUSED,{ended:U()})}function $(){var e=L();s.info("Seeking to: "+e),H(),i.trigger(me.default.PLAYBACK_SEEKING,{seekTime:e})}function J(){s.info("Native video element event: seeked"),i.trigger(me.default.PLAYBACK_SEEKED),d.addEventListener("seeking",$)}function ee(){g&&i.trigger(me.default.PLAYBACK_TIME_UPDATED,{timeToEnd:w(),time:L()})}function te(){i.trigger(me.default.PLAYBACK_PROGRESS)}function ne(){var e=F();s.info("Native video element event: ratechange: ",e),i.trigger(me.default.PLAYBACK_RATE_CHANGED,{playbackRate:e})}function re(){s.info("Native video element event: loadedmetadata"),i.trigger(me.default.PLAYBACK_METADATA_LOADED),H()}function ie(){s.info("Native video element event: ended"),O(),V(),i.trigger(me.default.PLAYBACK_ENDED,{isLast:u.getActiveStreamInfo().isLast})}function ae(e){r&&e.isLast&&(s.info("onPlaybackEnded -- PLAYBACK_ENDED but native video element didn't fire ended"),d.setCurrentTime(D()),O(),V())}function oe(e){var t=e.target||e.srcElement;i.trigger(me.default.PLAYBACK_ERROR,{error:t.error})}function se(){m&&S.get().streaming.lowLatencyEnabled&&0<S.get().streaming.lowLatencyEnabled&&!M()&&!C()&&(0<S.get().streaming.liveCatchUpPlaybackRate&&0<L()&&Math.abs(k()-_.getLiveDelay())>S.get().streaming.liveCatchUpMinDrift?function(){if(d){var e=S.get().streaming.liveCatchUpPlaybackRate,t=_.getLiveDelay(),n=k()-t,r=5*n,i=2*e/(1+Math.pow(Math.E,-r)),a=1-e+i;if(A){var o=function(){var n=null;return u.getActiveStreamProcessors().forEach(function(e){var t=e.getBufferLevel();n=null===n?t:Math.min(n,t)}),n}();t/2<o?A=!1:0<n&&(a=1)}Math.abs(d.getPlaybackRate()-a)>b&&d.setPlaybackRate(a),0<S.get().streaming.liveCatchUpMaxDrift&&!y&&n>S.get().streaming.liveCatchUpMaxDrift?(s.info("Low Latency catchup mechanism. Latency too high, doing a seek to live point"),y=!0,function(){var e=l.getCurrentDVRInfo();P((e?e.range:null).end-_.getLiveDelay(),!0,!1)}()):y=!1}}():ue())}function ue(){d&&d.setPlaybackRate(1)}function le(e){var t,n=void 0,r=e.bufferedRanges;if(r&&r.length&&(!c[g.id]||!0!==c[g.id].started)){var i=e.sender.getType();void 0===p[g.id]&&(p[g.id]=[]),p[g.id][i]=r,void 0===c[g.id]&&(c[g.id]=[],c[g.id].started=!1),void 0===c[g.id][i]&&(c[g.id][i]=Math.max(r.start(0),g.start));var a=u.isTrackTypePresent(he.default.VIDEO),o=u.isTrackTypePresent(he.default.AUDIO);t=q(!1),o&&a?isNaN(c[g.id].audio)||isNaN(c[g.id].video)||(r=c[g.id].audio<c[g.id].video?(n=c[g.id].video>t?c[g.id].video:t,p[g.id].audio):(n=c[g.id].audio>t?c[g.id].audio:t,p[g.id].video),function(e,t){if(t&&0<t.length)for(var n=0,r=t.length;n<r;n++)if(e>=t.start(n)&&e<t.end(n))return!0;return!1}(n,r)&&(C()||T||0===n||P(n,!0,!0),c[g.id].started=!0)):c[g.id][i]&&(n=c[g.id][i]>t?c[g.id][i]:t,C()||T||P(n,!1,!0),c[g.id].started=!0)}}function fe(e){if(!1===e.stream&&S.get().streaming.lowLatencyEnabled&&!isNaN(e.request.duration)){var t=1.2*e.request.duration;if(t>_.getLiveDelay()){s.warn("Browser does not support fetch API with StreamReader. Increasing live delay to be 20% higher than segment duration:",t.toFixed(2));var n={streaming:{liveDelay:t}};S.update(n)}}}function de(e){e.streamInfo.id===g.id&&(S.get().streaming.lowLatencyEnabled?e.state!==pe.default.BUFFER_EMPTY||C()||A||(A=!0,ue()):d.setStallState(e.mediaType,e.state===pe.default.BUFFER_EMPTY))}function ce(e){i.trigger(me.default.PLAYBACK_STALLED,{e:e})}return t={initialize:function(e,t){g=e,d.addEventListener("canplay",W),d.addEventListener("play",K),d.addEventListener("waiting",X),d.addEventListener("playing",Q),d.addEventListener("pause",Z),d.addEventListener("error",oe),d.addEventListener("seeking",$),d.addEventListener("seeked",J),d.addEventListener("timeupdate",ee),d.addEventListener("progress",te),d.addEventListener("ratechange",ne),d.addEventListener("loadedmetadata",re),d.addEventListener("stalled",ce),d.addEventListener("ended",ie),m=g.manifestInfo.isDynamic,A=y=!1,o=g.start,T=t;var n="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",r=/safari/.test(n)&&!/chrome/.test(n);b=r?.25:.02,i.on(me.default.DATA_UPDATE_COMPLETED,z,this),i.on(me.default.BYTES_APPENDED_END_FRAGMENT,le,this),i.on(me.default.LOADING_PROGRESS,fe,this),i.on(me.default.BUFFER_LEVEL_STATE_CHANGED,de,this),i.on(me.default.PERIOD_SWITCH_STARTED,R,this),i.on(me.default.PLAYBACK_PROGRESS,se,this),i.on(me.default.PLAYBACK_TIME_UPDATED,se,this),i.on(me.default.PLAYBACK_ENDED,ae,this),a&&(a=!1,N())},setConfig:function(e){e&&(e.streamController&&(u=e.streamController),e.dashMetrics&&(l=e.dashMetrics),e.mediaPlayerModel&&(_=e.mediaPlayerModel),e.adapter&&(f=e.adapter),e.videoModel&&(d=e.videoModel),e.timelineConverter&&(n=e.timelineConverter),e.uriFragmentModel&&(I=e.uriFragmentModel),e.settings&&(S=e.settings))},getStartTimeFromUriParameters:j,getStreamStartTime:q,getTimeToStreamEnd:w,getTime:L,getNormalizedTime:x,getPlaybackRate:F,getPlayedRanges:function(){return g&&d?d.getPlayedRanges():null},getEnded:U,getIsDynamic:B,getStreamController:function(){return u},setLiveStartTime:function(e){o=e},getLiveStartTime:function(){return o},computeLiveDelay:function(e,t){var n,r=void 0,i=void 0,a=f.getSuggestedPresentationDelay();if(r=S.get().streaming.useSuggestedPresentationDelay&&null!==a?a:S.get().streaming.lowLatencyEnabled?0:_.getLiveDelay()?_.getLiveDelay():isNaN(e)?2*g.manifestInfo.minBufferTime:e*S.get().streaming.liveDelayFragmentCount,null!==(n=f.getAvailabilityStartTime())&&(E=n),0<t){var o=Math.max(t-10,t/2);i=Math.min(r,o)}else i=r;return h=i},getLiveDelay:function(){return h},getCurrentLiveLatency:k,play:N,isPaused:M,pause:O,isSeeking:C,seek:P,reset:G},s=(0,_e.default)(e).getInstance().getLogger(t),G(),t}a.__dashjs_factory_name="PlaybackController",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,112:112,46:46,47:47,48:48,55:55}],118:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var ce=r(e(107)),he=e(191),pe=r(e(109)),ge=r(e(112)),me=r(e(144)),_e=r(e(145)),ve=r(e(123)),Ee=r(e(47)),Te=r(e(55)),i=r(e(48)),ye=r(e(46)),Ae=r(e(115));function a(e){e=e||{};var t=this.context,n=(0,Ee.default)(t).getInstance(),u=e.adapter,o=e.dashMetrics,s=e.timelineConverter,l=e.mediaPlayerModel,f=e.abrController,d=e.playbackController,i=e.streamController,a=e.textController,c=e.type,h=e.streamProcessor,p=e.mediaController,g=e.settings,r=void 0,m=void 0,_=void 0,v=void 0,E=void 0,T=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,w=void 0,D=void 0,N=void 0,M=void 0,O=void 0,C=void 0,P=void 0,L=void 0;function x(){v&&!h.isBufferingCompleted()?(m.debug("Schedule Controller starts"),fe(),T=!1,E=E&&!1,B(0)):m.warn("Start denied to Schedule Controller")}function F(){T||(m.debug("Schedule Controller stops"),T=!0,clearTimeout(b))}function U(){var e=h.getBufferController();if(T||y||!e||d.isPaused()&&!g.get().streaming.scheduleWhilePaused||!(c!==ce.default.FRAGMENTED_TEXT&&c!==ce.default.TEXT||a.isTextEnabled()))m.debug("Schedule stop!");else if(e.getIsBufferingCompleted())m.debug("Schedule stop because buffering is completed!");else{!function(){var e=d.getTime(),t=1.5*v.fragmentDuration,n=_.getRequests({state:ve.default.FRAGMENT_MODEL_EXECUTED,time:e+t,threshold:0})[0];if(n&&-1===M.indexOf(n)&&!u.getIsTextTrack(c)){var r=g.get().streaming.fastSwitchEnabled,i=h.getBufferLevel(),a=f.getAbandonmentStateFor(c),o=!p.isCurrentTrack(n.mediaInfo)&&p.getSwitchMode(n.mediaInfo.type)===Ae.default.TRACK_SWITCH_MODE_NEVER_REPLACE,s=n.quality<v.quality;r&&(o||s)&&t<=i&&a!==pe.default.ABANDON_LOAD?(q(n),L=!0,m.debug("Reloading outdated fragment at index: ",n.index)):n.quality>v.quality&&!C&&se(d.getTime()+h.getBufferLevel())}}();var t=0<M.length,r=h.getStreamInfo();if(C||isNaN(N)||O||t||function(e,t){D[t]=D[t]||{};var n=f.getTopQualityIndexFor(e,t);return D[t][e]!=n&&(m.info("Top quality "+e+" index has changed from "+D[t][e]+" to "+n),D[t][e]=n,!0)}(v.mediaInfo.type,r.id)||S.execute(h,i.isTrackTypePresent(ce.default.VIDEO))){G(!0),t||O||f.checkPlaybackQuality(c),function(){var e=h.getFragmentController();if(v.quality===N&&!O||C){var t=M.shift();if(e.isInitializationRequest(t))h.switchInitData(t.representationId);else{var n=void 0;h.getBufferController().getIsPruningInProgress()||(n=R.execute(h,I,t),se(NaN),n&&!t&&(isNaN(n.startTime+n.duration)||h.setIndexHandlerTime(n.startTime+n.duration),n.delayLoadingTime=(new Date).getTime()+A,ue(0)),!n&&r.manifestInfo&&r.manifestInfo.isDynamic&&m.debug("Next fragment seems to be at the bleeding live edge and is not available yet. Rescheduling.")),n?(m.debug("Next fragment request url is "+n.url),_.executeRequest(n)):(G(!1),B(g.get().streaming.lowLatencyEnabled?100:500))}}else m.debug("Quality has changed, get init request for representationid = "+v.id),O?(C=p.getSwitchMode(c)===Ae.default.TRACK_SWITCH_MODE_ALWAYS_REPLACE,m.debug("Switch track has been asked, get init request for "+c+" with representationid = "+v.id+"bufferResetInProgress = "+C),h.switchInitData(v.id,C),O=!1):h.switchInitData(v.id),N=v.quality}()}else B(500)}}function B(e){clearTimeout(b),b=setTimeout(U,e)}function k(e){e.sender&&e.sender.getStreamProcessor()===h&&j(v.quality)}function G(e){y!==e?y=e:m.debug("isFragmentProcessingInProgress is already equal to",e)}function j(e){var t=h.getInitRequest(e);t&&(G(!0),_.executeRequest(t))}function q(e){M.push(e)}function H(e){if(c===e.mediaType&&h.getStreamInfo().id===e.streamInfo.id){if(null==(v=h.getRepresentationInfo(e.newQuality)))throw new Error("Unexpected error! - currentRepresentationInfo is null or undefined");le(new Date,he.PlayListTrace.REPRESENTATION_SWITCH_STOP_REASON),fe()}}function V(e){if(d&&_){var t=_.getRequests({state:ve.default.FRAGMENT_MODEL_EXECUTED,time:d.getTime(),threshold:0})[0];t&&d.getTime()>=t.startTime&&((!w.mediaInfo||t.mediaInfo.type===w.mediaInfo.type&&t.mediaInfo.id!==w.mediaInfo.id)&&e&&n.trigger(Te.default.TRACK_CHANGE_RENDERED,{mediaType:c,oldMediaInfo:w.mediaInfo,newMediaInfo:t.mediaInfo}),t.quality===w.quality&&t.adaptationIndex===w.adaptationIndex||!e||n.trigger(Te.default.QUALITY_CHANGE_RENDERED,{mediaType:c,oldQuality:w.quality,newQuality:t.quality}),w={mediaInfo:t.mediaInfo,quality:t.quality,adaptationIndex:t.adaptationIndex})}}function Y(e){e.error||e.sender.getStreamProcessor()!==h||(v=u.convertDataToRepresentationInfo(e.currentRepresentation))}function z(e){h.getStreamInfo().id===e.streamInfo.id&&(v=h.getRepresentationInfo(),E&&(d.getIsDynamic()?(s.setTimeSyncCompleted(!0),function(){var e=h.getLiveEdgeFinder();if(e){var t=e.getLiveEdge(),n=v.mediaInfo.streamInfo.manifestInfo.DVRWindowSize/2,r=t-d.computeLiveDelay(v.fragmentDuration,n),i=h.getFragmentRequest(v,r,{ignoreIsFinished:!0});if(i)if(g.get().streaming.lowLatencyEnabled){var a=i.duration<l.getLiveDelay()?i.startTime:i.startTime+i.duration-l.getLiveDelay();d.setLiveStartTime(a)}else d.setLiveStartTime(i.startTime);else m.debug("setLiveEdgeSeekTarget : getFragmentRequest returned undefined request object");se(d.getStreamStartTime(!1,t)),h.getBufferController().setSeekStartTime(I),I>v.mediaInfo.streamInfo.start+v.mediaInfo.streamInfo.duration&&d.seek(I),o.updateManifestUpdateInfo({currentTime:I,presentationStartTime:t,latency:t-I,clientTimeOffset:s.getClientTimeOffset()})}}()):(se(d.getStreamStartTime(!1)),h.getBufferController().setSeekStartTime(I))),T&&x())}function W(e){e.fragmentModel===_&&(F(),G(!1),m.info("Stream is complete"))}function K(e){e.sender===_&&(m.info("OnFragmentLoadingCompleted - Url:",e.request?e.request.url:"undefined",", Range:",e.request.range?e.request.range:"undefined"),u.getIsTextTrack(c)&&G(!1),e.error&&e.request.serviceLocation&&!T&&(q(e.request),G(!1),B(0)),C&&(P=e.request))}function X(){V(!0)}function Q(e){if(e.sender.getStreamProcessor()===h)if(C&&!isNaN(e.startTime)&&(C=!1,_.addExecutedRequest(P)),G(!1),L&&!isNaN(e.startTime)){var t=d.getTime(),n=e.startTime+v.fragmentDuration,r=1.5*v.fragmentDuration;B(n<=t+r?0:1e3*(n-(t+r))),L=!1}else B(0)}function Z(e){e.streamProcessor===h&&(m.info("onFragmentLoadingAbandoned for "+c+", request: "+e.request.url+" has been aborted"),d.isSeeking()||O||(m.info("onFragmentLoadingAbandoned for "+c+", request: "+e.request.url+" has to be downloaded again, origin is not seeking process or switch track call"),q(e.request)),G(!1),B(0))}function $(e){e.sender.getStreamProcessor()===h&&F()}function J(e){if(e.sender.getStreamProcessor()===h){var t=h.getStreamInfo();t&&(e.unintended?_.removeExecutedRequestsAfterTime(e.from):_.syncExecutedRequestsWithBufferedRange(h.getBufferController().getBuffer().getAllBufferRanges(),t.duration)),e.hasEnoughSpaceToAppend&&T&&x()}}function ee(e){e.sender.getStreamProcessor()!==h||e.state!==ge.default.BUFFER_EMPTY||d.isSeeking()||(m.info("Buffer is empty! Stalling!"),le(new Date,he.PlayListTrace.REBUFFERING_REASON))}function te(e){e.sender.getStreamProcessor()===h&&(F(),G(!1))}function ne(){_.abortRequests(),F()}function re(e){e.sender.getStreamProcessor()===h&&a.isTextEnabled()&&j(e.index)}function ie(){!T&&g.get().streaming.scheduleWhilePaused||x()}function ae(e){se(e.seekTime),ue(0),T&&x();var t=v.DVRWindow&&d?v.DVRWindow.end-d.getTime():NaN;o.updateManifestUpdateInfo({latency:t}),y?(m.debug("onPlaybackSeeking for "+c+", call fragmentModel.abortRequests in order to seek quicker"),_.abortRequests()):B(0)}function oe(e){o.updatePlayListTraceMetrics({playbackspeed:e.playbackRate.toString()})}function se(e){I=e}function ue(e){A=e}function le(e,t){o.pushPlayListTraceMetrics(e,t)}function fe(){if(v){var e=d.getPlaybackRate();o.createPlaylistTraceMetrics(v.id,1e3*d.getTime(),null!==e?e.toString():null)}}function de(){w={mediaInfo:void(A=0),quality:N=I=NaN,adaptationIndex:NaN},D={},P=null,L=C=O=!(T=E=!(y=!(M=[])))}return r={initialize:function(){_=h.getFragmentModel(),S=(0,me.default)(t).create({abrController:f,dashMetrics:o,mediaPlayerModel:l,textController:a,settings:g}),R=(0,_e.default)(t).create({textController:a,playbackController:d}),u.getIsTextTrack(e.mimeType)&&n.on(Te.default.TIMED_TEXT_REQUESTED,re,this),n.on(Te.default.QUALITY_CHANGE_REQUESTED,H,this),n.on(Te.default.DATA_UPDATE_STARTED,$,this),n.on(Te.default.DATA_UPDATE_COMPLETED,Y,this),n.on(Te.default.FRAGMENT_LOADING_COMPLETED,K,this),n.on(Te.default.STREAM_COMPLETED,W,this),n.on(Te.default.STREAM_INITIALIZED,z,this),n.on(Te.default.BUFFER_LEVEL_STATE_CHANGED,ee,this),n.on(Te.default.BUFFER_CLEARED,J,this),n.on(Te.default.BYTES_APPENDED_END_FRAGMENT,Q,this),n.on(Te.default.INIT_REQUESTED,k,this),n.on(Te.default.QUOTA_EXCEEDED,te,this),n.on(Te.default.PLAYBACK_SEEKING,ae,this),n.on(Te.default.PLAYBACK_STARTED,ie,this),n.on(Te.default.PLAYBACK_RATE_CHANGED,oe,this),n.on(Te.default.PLAYBACK_TIME_UPDATED,X,this),n.on(Te.default.URL_RESOLUTION_FAILED,ne,this),n.on(Te.default.FRAGMENT_LOADING_ABANDONED,Z,this)},getType:function(){return c},setSeekTarget:se,setTimeToLoadDelay:ue,replaceRequest:q,switchTrackAsked:function(){O=!0},isStarted:function(){return!1===T},start:x,stop:F,reset:function(){n.off(Te.default.DATA_UPDATE_STARTED,$,this),n.off(Te.default.DATA_UPDATE_COMPLETED,Y,this),n.off(Te.default.BUFFER_LEVEL_STATE_CHANGED,ee,this),n.off(Te.default.QUALITY_CHANGE_REQUESTED,H,this),n.off(Te.default.FRAGMENT_LOADING_COMPLETED,K,this),n.off(Te.default.STREAM_COMPLETED,W,this),n.off(Te.default.STREAM_INITIALIZED,z,this),n.off(Te.default.QUOTA_EXCEEDED,te,this),n.off(Te.default.BYTES_APPENDED_END_FRAGMENT,Q,this),n.off(Te.default.BUFFER_CLEARED,J,this),n.off(Te.default.INIT_REQUESTED,k,this),n.off(Te.default.PLAYBACK_RATE_CHANGED,oe,this),n.off(Te.default.PLAYBACK_SEEKING,ae,this),n.off(Te.default.PLAYBACK_STARTED,ie,this),n.off(Te.default.PLAYBACK_TIME_UPDATED,X,this),n.off(Te.default.URL_RESOLUTION_FAILED,ne,this),n.off(Te.default.FRAGMENT_LOADING_ABANDONED,Z,this),u.getIsTextTrack(c)&&n.off(Te.default.TIMED_TEXT_REQUESTED,re,this),F(),V(!1),de()},getBufferTarget:function(){return S.getBufferTarget(h,i.isTrackTypePresent(ce.default.VIDEO))},finalisePlayList:function(e,t){le(e,t)}},m=(0,ye.default)(t).getInstance().getLogger(r),de(),r}a.__dashjs_factory_name="ScheduleController",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,109:109,112:112,115:115,123:123,144:144,145:145,191:191,46:46,47:47,48:48,55:55}],119:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var we=r(e(107)),De=r(e(108)),Ne=r(e(104)),Me=r(e(99)),Oe=r(e(47)),Ce=r(e(55)),i=r(e(48)),Pe=e(191),Le=r(e(46)),xe=r(e(161)),Fe=r(e(168)),Ue=r(e(101)),Be=r(e(120)),ke=r(e(110)),Ge=r(e(116)),je=r(e(173)),qe=r(e(52));function a(){var t=40,r=2e3,s=this.context,f=(0,Oe.default)(s).getInstance(),u=void 0,d=void 0,l=void 0,c=void 0,n=void 0,h=void 0,p=void 0,g=void 0,o=void 0,m=void 0,_=void 0,v=void 0,E=void 0,T=void 0,i=void 0,y=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,a=void 0,w=void 0,D=void 0,N=void 0,M=void 0,O=void 0,C=void 0,P=void 0,L=void 0,x=void 0,F=void 0,U=void 0,B=void 0,k=void 0,G=void 0,j=void 0,q=void 0,H=void 0,V=void 0,Y=void 0,z=void 0,W=void 0,K=void 0;function X(){if(me(we.default.VIDEO)){var e=C.getPlaybackQuality();e&&g.addDroppedFrames(e)}}function Q(){if(!(!K.get().streaming.jumpGaps||0===oe()||P.isSeeking()||x||D||N||M)&&t<=++q){var e=P.getTime();z===e?function(e){for(var t=oe(),n=K.get().streaming.smallGapLimit,r=void 0,i=0;i<t.length;i++){var a=t[i].getBuffer().getAllBufferRanges(),o=void 0;if(a&&!(a.length<=1)){for(var s=0;s<a.length;s++)if(e<a.start(s)){o=a.start(s);break}if(0<o){var u=o-e;0<u&&u<=n&&(void 0===r||r<o)&&(r=o)}}}var l=P.getTimeToStreamEnd();void 0===r&&!isNaN(l)&&l<n&&(r=e+l);0<r&&(!isNaN(l)&&e+l<=r?(d.info("Jumping media gap (discontinuity) at time ",e,". Jumping to end of the stream"),f.trigger(Ce.default.PLAYBACK_ENDED,{isLast:ye().isLast})):(d.info("Jumping media gap (discontinuity) at time ",e,". Jumping to time position",r),P.seek(r,!0,!0)))}(e):z=e,q=0}}function Z(e){var t=ae(e.seekTime);G&&(ee(),k=!1),j&&(d.debug("[PreloadTimer] stop period preload timer."),clearTimeout(j),j=void 0),t===S&&Y&&Y.deactivate(!0),t&&(t!==S||Y&&!S.isActive())?(ve(Pe.PlayListTrace.END_OF_PERIOD_STOP_REASON),le(S,t,e.seekTime)):ve(Pe.PlayListTrace.USER_REQUEST_STOP_REASON),Ee(Pe.PlayList.SEEK_START_REASON)}function $(){d.debug("[onPlaybackStarted]"),F?(F=!1,Ee(Pe.PlayList.INITIAL_PLAYOUT_START_REASON)):x&&(x=!1,Ee(Pe.PlayList.RESUME_FROM_PAUSE_START_REASON),te())}function J(e){d.debug("[onPlaybackPaused]"),e.ended||(x=!0,ve(Pe.PlayListTrace.USER_REQUEST_STOP_REASON),te())}function ee(){d.debug("[toggleEndPeriodTimer] stop end period timer."),clearTimeout(G),G=void 0}function te(){if(k)if(G)ee();else{var e=P.getTimeToStreamEnd(),t=0<e?1e3*e:0,n=t<r?t/4:t-r;d.debug("[toggleEndPeriodTimer] Going to fire preload in",n,"milliseconds"),j=setTimeout(ie,n),d.debug("[toggleEndPeriodTimer] start-up of timer to notify PLAYBACK_ENDED event. It will be triggered in",t,"milliseconds"),G=setTimeout(function(){f.trigger(Ce.default.PLAYBACK_ENDED,{isLast:ye().isLast})},t)}}function ne(e){if(e.sender&&(e.sender.getType()===we.default.AUDIO||e.sender.getType()===we.default.VIDEO)){var t=ye().isLast;O&&!t&&void 0===G&&(d.info("[onTrackBufferingCompleted] end of period detected. Track",e.sender.getType(),"has finished"),!(k=!0)===x&&te())}}function re(){var e=ye().isLast;O&&e&&(d.info("[onStreamBufferingCompleted] calls signalEndOfStream of mediaSourceController."),o.signalEndOfStream(O))}function ie(){var t,e=ye().isLast;O&&!e&&(t=ue(),(V=S.isProtectionCompatible(t)&&(W||S.isMediaCodecCompatible(t)))&&(d.info("[onStreamCanLoadNext] Preloading next stream"),S.stopEventController(),S.deactivate(!0),t.preload(O,H),(Y=t).getProcessors().forEach(function(e){e.setIndexHandlerTime(t.getStartTime())})))}function ae(e){var t=0,n=null,r=I.length;0<r&&(t+=I[0].getStartTime());for(var i=0;i<r;i++)if(n=I[i],e<(t=parseFloat((t+n.getDuration()).toFixed(5))))return n;return null}function oe(){return S?S.getProcessors():[]}function se(){var e=ue();e?(U=B=void 0,le(S,e,NaN)):d.debug("StreamController no next stream found"),ve(e?Pe.PlayListTrace.END_OF_PERIOD_STOP_REASON:Pe.PlayListTrace.END_OF_CONTENT_STOP_REASON),G=void 0,k=!1}function ue(){if(S){var e=(t=ye().start,n=ye().duration,{v:I.filter(function(e){return e.getStreamInfo().start===parseFloat((t+n).toFixed(5))})[0]});if("object"==typeof e)return e.v}var t,n}function le(e,t,n){D||!t||e===t&&t.isActive()||(D=!0,f.trigger(Ce.default.PERIOD_SWITCH_STARTED,{fromStreamInfo:e?e.getStreamInfo():null,toStreamInfo:t.getStreamInfo()}),V=!1,e&&(e.stopEventController(),V=S.isProtectionCompatible(t)&&(W||S.isMediaCodecCompatible(t))&&!n||t.getPreloaded(),e.deactivate(V)),S=t,Y=!1,P.initialize(ye(),V),C.getElement()?fe(n,e,!1,V):function(e){de(e,V)}(n))}function fe(e,t,n,r){var i=void 0;function a(){O&&(d.debug("MediaSource is open!"),window.URL.revokeObjectURL(i),O.removeEventListener("sourceopen",a),O.removeEventListener("webkitsourceopen",a),ce(),t||f.trigger(Ce.default.SOURCE_INITIALIZED),n?S.setMediaSource(O):de(e,r))}O?r?(de(e,r),t||f.trigger(Ce.default.SOURCE_INITIALIZED)):(o.detachMediaSource(C),O.addEventListener("sourceopen",a,!1),O.addEventListener("webkitsourceopen",a,!1),i=o.attachMediaSource(O,C),d.debug("MediaSource attached to element. Waiting on open...")):((O=o.createMediaSource()).addEventListener("sourceopen",a,!1),O.addEventListener("webkitsourceopen",a,!1),i=o.attachMediaSource(O,C),d.debug("MediaSource attached to element. Waiting on open..."))}function de(e,t){if(H=S.activate(O,t?H:void 0),B=_e(we.default.AUDIO),U=_e(we.default.VIDEO),H){var n=Object.keys(H);0<n.length&&H[n[0]].changeType&&(d.debug("SourceBuffer changeType method supported. Use it to switch codecs in periods transitions"),W=!0)}var r;F||(isNaN(e)?(r=P.getStreamStartTime(!0),t||oe().forEach(function(e){p.setIndexHandlerTime(e,r)})):P.seek(e)),S.startEventController(),!w&&F||P.play(),D=!1,f.trigger(Ce.default.PERIOD_SWITCH_COMPLETED,{toStreamInfo:ye()})}function ce(e){var t=e||ye().manifestInfo.duration,n=o.setDuration(O,t);d.debug("Duration successfully set to: "+n)}function he(e){for(var t=0,n=I.length;t<n;t++)if(I[t].getId()===e.id)return I[t];return null}function pe(){var e=h.getValue();R&&(f.trigger(Ce.default.PROTECTION_CREATED,{controller:R,manifest:e}),R.setMediaElement(C.getElement()),a&&R.setProtectionData(a)),function(){try{var e=p.getStreamsInfo();if(0===e.length)throw new Error("There are no streams");g.updateManifestUpdateInfo({currentTime:P.getTime(),buffered:C.getBufferRange(),presentationStartTime:e[0].start,clientTimeOffset:b.getClientTimeOffset()});for(var t=0,n=e.length;t<n;t++){var r=e[t],i=he(r);i?i.updateData(r):(i=(0,Ne.default)(s).create({manifestModel:h,mediaPlayerModel:L,dashMetrics:g,manifestUpdater:c,adapter:p,timelineConverter:b,capabilities:l,errHandler:A,baseURLController:_,abrController:v,playbackController:P,mediaController:E,textController:T,videoModel:C,streamController:u,settings:K}),I.push(i),i.initialize(r,R)),g.addManifestUpdateStreamInfo(r)}if(!S){var a=P.getStartTimeFromUriParameters(),o=null;if(a)o=ae(isNaN(a.fragS)?a.fragT:a.fragS);le(null,null!==o?o:I[0],NaN)}f.trigger(Ce.default.STREAMS_COMPOSED)}catch(e){A.error(new je.default(qe.default.MANIFEST_ERROR_ID_NOSTREAMS_CODE,e.message+"nostreamscomposed",h.getValue())),M=!0,Se()}}()}function ge(s){s.error?(M=!0,Se()):function(){var e=s.manifest;p.updatePeriods(e);var t=p.getStreamsInfo(void 0,1)[0],n=p.getMediaInfoForType(t,we.default.VIDEO)||p.getMediaInfoForType(t,we.default.AUDIO),r=void 0;if(n&&(r=p.getUseCalculatedLiveEdgeTimeForMediaInfo(n))){d.debug("SegmentTimeline detected using calculated Live Edge Time");K.update({streaming:{useManifestDateHeaderTimeSource:!1}})}var i=p.getUTCTimingSources(),a=!p.getIsDynamic()||r?i:i.concat(L.getUTCTimingSources()),o=y.isHTTPS(s.manifest.url);a.forEach(function(e){e.value.replace(/.*?:\/\//g,"")===L.getDefaultUtcTimingSource().value.replace(/.*?:\/\//g,"")&&(e.value=e.value.replace(o?new RegExp(/^(http:)?\/\//i):new RegExp(/^(https:)?\/\//i),o?"https://":"http://"),d.debug("Matching default timing source protocol to manifest protocol: ",e.value))}),_.initialize(e),m.setConfig({dashMetrics:g,baseURLController:_}),m.initialize(a,K.get().streaming.useManifestDateHeaderTimeSource)}()}function me(e){var t=void 0;if(!e)return t;switch(e){case we.default.VIDEO:t=U;break;case we.default.AUDIO:t=B}return t}function _e(t){var n=!1;return oe().forEach(function(e){e.getMediaInfo().type===t&&(n=!0)}),n}function ve(n,r){r=r||new Date,oe().forEach(function(e){var t=e.getScheduleController();t&&t.finalisePlayList(r,n)}),g.addPlayList()}function Ee(e){g.createPlaylistMetrics(1e3*P.getTime(),e)}function Te(e){if(e.error){var t="";switch(e.error.code){case 1:t="MEDIA_ERR_ABORTED";break;case 2:t="MEDIA_ERR_NETWORK";break;case 3:t="MEDIA_ERR_DECODE";break;case 4:t="MEDIA_ERR_SRC_NOT_SUPPORTED";break;case 5:t="MEDIA_ERR_ENCRYPTED";break;default:t="UNKNOWN"}N=!0,e.error.message&&(t+=" ("+e.error.message+")"),e.error.msExtendedCode&&(t+=" (0x"+(e.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),d.fatal("Video Element Error: "+t),e.error&&d.fatal(e.error),A.error(new je.default(e.error.code,t)),Se()}}function ye(){return S?S.getStreamInfo():null}function Ae(){if(!(n&&n.hasOwnProperty("load")&&b&&b.hasOwnProperty("initialize")&&b.hasOwnProperty("reset")&&b.hasOwnProperty("getClientTimeOffset")&&h&&A&&g&&P))throw new Error("setConfig function has to be called previously")}function be(e){isNaN(e.newDuration)||ce(e.newDuration)}function Ie(){S=R=null,G=B=U=void 0,k=!(w=!(x=!(F=!(M=N=D=!(I=[]))))),q=0}function Se(){Ae(),m.reset(),ve(N||M?Pe.PlayListTrace.FAILURE_STOP_REASON:Pe.PlayListTrace.USER_REQUEST_STOP_REASON);for(var e=0,t=I?I.length:0;e<t;e++){I[e].reset(N)}!function(){f.off(Ce.default.PLAYBACK_TIME_UPDATED,X,this),f.off(Ce.default.PLAYBACK_SEEKING,Z,this),f.off(Ce.default.PLAYBACK_ERROR,Te,this),f.off(Ce.default.PLAYBACK_STARTED,$,this),f.off(Ce.default.PLAYBACK_PAUSED,J,this),f.off(Ce.default.PLAYBACK_ENDED,se,this),f.off(Ce.default.MANIFEST_UPDATED,ge,this),f.off(Ce.default.BUFFERING_COMPLETED,ne,this),f.off(Ce.default.STREAM_BUFFERING_COMPLETED,re,this),f.off(Ce.default.MANIFEST_VALIDITY_CHANGED,be,this),f.off(Ce.default.TIME_SYNCHRONIZATION_COMPLETED,pe,this),f.off(Ce.default.WALLCLOCK_TIME_UPDATED,Q,this),f.off(Ue.default.METRIC_ADDED,Re,this)}(),_.reset(),c.reset(),g.clearAllCurrentMetrics(),h.setValue(null),n.reset(),b.reset(),i.reset(),O&&(o.detachMediaSource(C),O=null),C=null,R&&(R.setMediaElement(null),a=R=null,h.getValue()&&f.trigger(Ce.default.PROTECTION_DESTROYED,{data:h.getValue().url})),f.trigger(Ce.default.STREAM_TEARDOWN_COMPLETE),Ie()}function Re(e){e.metric===De.default.DVR_INFO&&e.mediaType===we.default.AUDIO&&o.setSeekable(O,e.value.range.start,e.value.range.end)}return u={initialize:function(e,t){Ae(),w=e,a=t,b.initialize(),(c=(0,Me.default)(s).create()).setConfig({manifestModel:h,adapter:p,mediaPlayerModel:L,manifestLoader:n,errHandler:A,settings:K}),c.initialize(),_.setConfig({adapter:p}),function(){f.on(Ce.default.PLAYBACK_TIME_UPDATED,X,this),f.on(Ce.default.PLAYBACK_SEEKING,Z,this),f.on(Ce.default.PLAYBACK_ERROR,Te,this),f.on(Ce.default.PLAYBACK_STARTED,$,this),f.on(Ce.default.PLAYBACK_PAUSED,J,this),f.on(Ce.default.PLAYBACK_ENDED,se,this),f.on(Ce.default.MANIFEST_UPDATED,ge,this),f.on(Ce.default.BUFFERING_COMPLETED,ne,this),f.on(Ce.default.STREAM_BUFFERING_COMPLETED,re,this),f.on(Ce.default.MANIFEST_VALIDITY_CHANGED,be,this),f.on(Ce.default.TIME_SYNCHRONIZATION_COMPLETED,pe,this),f.on(Ce.default.WALLCLOCK_TIME_UPDATED,Q,this),f.on(Ue.default.METRIC_ADDED,Re,this)}()},getActiveStreamInfo:ye,isTrackTypePresent:me,switchToVideoElement:function(e){S&&(P.initialize(ye()),fe(e,null,!0,!1))},getStreamById:function(t){return I.filter(function(e){return e.getId()===t})[0]},getStreamForTime:ae,getTimeRelativeToStreamId:function(e,t){for(var n=null,r=0,i=0,a=null,o=I.length,s=0;s<o;s++){if(i=(n=I[s]).getStartTime(),a=n.getDuration(),Number.isFinite(i)&&(r=i),n.getId()===t)return e-r;Number.isFinite(a)&&(r+=a)}return null},load:function(e){Ae(),n.load(e)},loadWithManifest:function(e){!function(){if(!c||!c.hasOwnProperty("setManifest"))throw new Error("initialize function has to be called previously")}(),c.setManifest(e)},getActiveStreamProcessors:oe,setConfig:function(e){e&&(e.capabilities&&(l=e.capabilities),e.manifestLoader&&(n=e.manifestLoader),e.manifestModel&&(h=e.manifestModel),e.mediaPlayerModel&&(L=e.mediaPlayerModel),e.protectionController&&(R=e.protectionController),e.adapter&&(p=e.adapter),e.dashMetrics&&(g=e.dashMetrics),e.errHandler&&(A=e.errHandler),e.timelineConverter&&(b=e.timelineConverter),e.videoModel&&(C=e.videoModel),e.playbackController&&(P=e.playbackController),e.abrController&&(v=e.abrController),e.mediaController&&(E=e.mediaController),e.textController&&(T=e.textController),e.settings&&(K=e.settings))},setProtectionData:function(e){a=e},reset:Se},d=(0,Le.default)(s).getInstance().getLogger(u),m=(0,Be.default)(s).getInstance(),_=(0,ke.default)(s).getInstance(),o=(0,Ge.default)(s).getInstance(),i=(0,xe.default)(s).getInstance(),y=(0,Fe.default)(s).getInstance(),Ie(),u}a.__dashjs_factory_name="StreamController",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{101:101,104:104,107:107,108:108,110:110,116:116,120:120,161:161,168:168,173:173,191:191,46:46,47:47,48:48,52:52,55:55,99:99}],120:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var A=r(e(173)),b=e(189),I=r(e(47)),S=r(e(55)),R=r(e(52)),i=r(e(48)),w=r(e(46)),D=r(e(168));function a(){var e=this.context,r=(0,I.default)(e).getInstance(),c=(0,D.default)(e).getInstance(),t=void 0,o=void 0,n=void 0,i=void 0,s=void 0,u=void 0,a=void 0,h=void 0;function l(e){i=e}function f(e){n=e}function d(e){var t=Date.parse(e);return isNaN(t)&&(t=function(e){var t=void 0,n=void 0,r=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+\-])([0-9]{2})([0-9]{2}))?/.exec(e);return t=Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10),r[6]&&(parseInt(r[6],10)||0),r[7]&&1e3*parseFloat(r[7])||0),r[9]&&r[10]&&(n=60*parseInt(r[9],10)+parseInt(r[10],10),t+=("+"===r[8]?-1:1)*n*60*1e3),new Date(t).getTime()}(e)),t}function p(e){return Date.parse(e)}function g(e){return Date.parse(e)}function m(e,t,n){n()}function _(e,t,n){var r=d(e);isNaN(r)?n():t(r)}function v(n,e,r,t,i){var a,o,s=!1,u=new XMLHttpRequest,l=i?b.HTTPRequest.HEAD:b.HTTPRequest.GET,f=e.match(/\S+/g);if(e=f.shift(),a=function(){s||(s=!0,f.length?v(n,f.join(" "),r,t,i):t())},o=function(){var e=void 0,t=void 0;200===u.status&&(e=i?u.getResponseHeader("Date"):u.response,t=n(e),isNaN(t)||(r(t),s=!0))},c.isRelative(e)){var d=h.resolve();d&&(e=c.resolve(e,d.url))}u.open(l,e),u.timeout=5e3,u.onload=o,u.onloadend=a,u.send()}function E(e,t,n){v(g,e,t,n,!0)}function T(){var e=a.getLatestMPDRequestHeaderValueByID("Date"),t=null!==e?new Date(e).getTime():Number.NaN;isNaN(t)?y(!0):(f(t-(new Date).getTime()),y(!1,t/1e3,n))}function y(e,t,n){l(!1),r.trigger(S.default.TIME_SYNCHRONIZATION_COMPLETED,{time:t,offset:n,error:e?new A.default(R.default.TIME_SYNC_FAILED_ERROR_CODE,R.default.TIME_SYNC_FAILED_ERROR_MESSAGE):null})}return t={initialize:function(e,t){s=t,n=0,i=!1,u={"urn:mpeg:dash:utc:http-head:2014":E,"urn:mpeg:dash:utc:http-xsdate:2014":v.bind(null,d),"urn:mpeg:dash:utc:http-iso:2014":v.bind(null,p),"urn:mpeg:dash:utc:direct:2014":_,"urn:mpeg:dash:utc:http-head:2012":E,"urn:mpeg:dash:utc:http-xsdate:2012":v.bind(null,d),"urn:mpeg:dash:utc:http-iso:2012":v.bind(null,p),"urn:mpeg:dash:utc:direct:2012":_,"urn:mpeg:dash:utc:http-ntp:2014":m,"urn:mpeg:dash:utc:ntp:2014":m,"urn:mpeg:dash:utc:sntp:2014":m},i||function e(t,n){var r=n||0;var i=t[r];var a=function(e,t){var n=!e||!t;n&&s?T():y(n,e,t)};l(!0);i?u.hasOwnProperty(i.schemeIdUri)?u[i.schemeIdUri](i.value,function(e){var t=(new Date).getTime(),n=e-t;f(n),o.info("Local time: "+new Date(t)),o.info("Server time: "+new Date(e)),o.info("Server Time - Local Time (ms): "+n),a(e,n)},function(){e(t,r+1)}):e(t,r+1):(f(0),a())}(e)},getOffsetToDeviceTimeMs:function(){return n},setConfig:function(e){e&&(e.dashMetrics&&(a=e.dashMetrics),e.baseURLController&&(h=e.baseURLController))},reset:function(){l(!1)}},o=(0,w.default)(e).getInstance().getLogger(t),t}a.__dashjs_factory_name="TimeSyncController";var o=i.default.getSingletonFactory(a);o.HTTP_TIMEOUT_MS=5e3,i.default.updateSingletonFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{168:168,173:173,189:189,46:46,47:47,48:48,52:52,55:55}],121:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var p=r(e(106)),g=r(e(47)),m=r(e(55)),i=r(e(48)),_=r(e(3)),v=r(e(168)),E=r(e(62)),T="onLoad";function a(e){e=e||{};var t=this.context,i=(0,g.default)(t).getInstance(),s=(0,v.default)(t).getInstance(),n=void 0,r=void 0,u=void 0,l=void 0,a=void 0,f=void 0;function o(e,t,n){var r={},i=void 0,a=void 0;r.elements=e,r.type=t,r.resolveType=n,0===r.elements.length&&c(r);for(var o=0;o<r.elements.length;o++)i=r.elements[o],a=s.isHTTPURL(i.url)?i.url:i.originalContent.BaseURL+i.url,f.load(a,i,r)}function d(e){var t,n=void 0,r="";if(n=e.element,t=e.resolveObject,n.resolvedContent){var i=0;0===n.resolvedContent.indexOf("<?xml")&&(i=n.resolvedContent.indexOf("?>")+2),r=n.resolvedContent.substr(0,i)+"<response>"+n.resolvedContent.substr(i)+"</response>",n.resolvedContent=a.xml_str2json(r)}!function(e){var t=void 0;for(t=0;t<e.elements.length;t++)if(!1===e.elements[t].resolved)return!1;return!0}(t)||c(t)}function c(e){var t=[],n=void 0,r=void 0;if(function(e){var t=[],n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0;for(a=e.elements.length-1;0<=a;a--){if(n=e.elements[a],r=n.type+"_asArray",n.resolvedContent){if(n.resolvedContent)for(o=0;o<n.resolvedContent[r].length;o++)i=n.resolvedContent[r][o],t.push(i)}else delete n.originalContent["xlink:actuate"],delete n.originalContent["xlink:href"],t.push(n.originalContent);for(n.parentElement[r].splice(n.index,1),s=0;s<t.length;s++)n.parentElement[r].splice(n.index+s,0,t[s]);t=[]}0<e.elements.length&&u.run(l)}(e),"onActuate"===e.resolveType&&i.trigger(m.default.XLINK_READY,{manifest:l}),e.resolveType===T)switch(e.type){case E.default.PERIOD:for(n=0;n<l[E.default.PERIOD+"_asArray"].length;n++)(r=l[E.default.PERIOD+"_asArray"][n]).hasOwnProperty(E.default.ADAPTATION_SET+"_asArray")&&(t=t.concat(h(r[E.default.ADAPTATION_SET+"_asArray"],r,E.default.ADAPTATION_SET,T))),r.hasOwnProperty(E.default.EVENT_STREAM+"_asArray")&&(t=t.concat(h(r[E.default.EVENT_STREAM+"_asArray"],r,E.default.EVENT_STREAM,T)));o(t,E.default.ADAPTATION_SET,T);break;case E.default.ADAPTATION_SET:i.trigger(m.default.XLINK_READY,{manifest:l})}}function h(e,t,n,r){var i=[],a=void 0,o=void 0,s=void 0;for(o=e.length-1;0<=o;o--)(a=e[o]).hasOwnProperty("xlink:href")&&"urn:mpeg:dash:resolve-to-zero:2013"===a["xlink:href"]&&e.splice(o,1);for(o=0;o<e.length;o++)(a=e[o]).hasOwnProperty("xlink:href")&&a.hasOwnProperty("xlink:actuate")&&a["xlink:actuate"]===r&&(s={url:a["xlink:href"],parentElement:t,type:n,index:o,resolveType:r,originalContent:a,resolvedContent:null,resolved:!1},i.push(s));return i}return n={resolveManifestOnLoad:function(e){a=new _.default({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:r}),o(h((l=e).Period_asArray,l,E.default.PERIOD,T),E.default.PERIOD,T)},setMatchers:function(e){e&&(r=e)},setIron:function(e){e&&(u=e)},reset:function(){i.off(m.default.XLINK_ELEMENT_LOADED,d,n),f&&(f.reset(),f=null)}},i.on(m.default.XLINK_ELEMENT_LOADED,d,n),f=(0,p.default)(t).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier}),n}a.__dashjs_factory_name="XlinkController",n.default=i.default.getClassFactory(a),t.exports=n.default},{106:106,168:168,3:3,47:47,48:48,55:55,62:62}],122:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});function u(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this.data={baseUrls:e||null,selectedIdx:t||NaN},this.children=[]}var l=r(e(164)),i=r(e(48));function a(){var e,i=void 0,a=void 0,t=this.context,o=(0,l.default)(t).getInstance();function s(e,t,n){var r=a.getBaseURLsFromElement(n);e[t]?o.areEqual(r,e[t].data.baseUrls)||(e[t].data.baseUrls=r,e[t].data.selectedIdx=NaN):e[t]=new u(r)}function n(e){!function(){if(!a||!a.hasOwnProperty("getBaseURLsFromElement")||!a.hasOwnProperty("getRepresentationSortFunction"))throw new Error("setConfig function has to be called previously")}();var t=a.getBaseURLsFromElement(e);o.areEqual(t,i.data.baseUrls)||(i.data.baseUrls=t,i.data.selectedIdx=NaN),e&&e.Period_asArray&&e.Period_asArray.forEach(function(e,r){s(i.children,r,e),e.AdaptationSet_asArray&&e.AdaptationSet_asArray.forEach(function(e,n){s(i.children[r].children,n,e),e.Representation_asArray&&e.Representation_asArray.sort(a.getRepresentationSortFunction()).forEach(function(e,t){s(i.children[r].children[n].children,t,e)})})})}function r(){i=new u}return e={reset:r,update:function(e){n(e)},getForPath:function(e){var t=i,n=[t.data];return e&&e.forEach(function(e){(t=t.children[e])&&n.push(t.data)}),n.filter(function(e){return e.baseUrls.length})},invalidateSelectedIndexes:function(t){!function t(n,e){var r=e||i;n(r.data),r.children&&r.children.forEach(function(e){return t(n,e)})}(function(e){isNaN(e.selectedIdx)||t===e.baseUrls[e.selectedIdx].serviceLocation&&(e.selectedIdx=NaN)})},setConfig:function(e){e.adapter&&(a=e.adapter)}},r(),e}a.__dashjs_factory_name="BaseURLTreeModel",n.default=i.default.getClassFactory(a),t.exports=n.default},{164:164,48:48}],123:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var E=r(e(47)),T=r(e(55)),i=r(e(48)),y=r(e(175)),A=r(e(46)),b="loading",I="executed";function a(e){e=e||{};var t=this.context,n=(0,E.default)(t).getInstance(),r=e.dashMetrics,i=e.fragmentLoader,a=void 0,o=void 0,s=void 0,u=void 0,l=void 0;function f(t){var n;return!!t&&(n=!1,u.some(function(e){if(function(e,t){return!isNaN(e.index)&&e.startTime===t.startTime&&e.adaptationIndex===t.adaptationIndex&&e.type===t.type}(t,e)||function(e,t){return isNaN(e.index)&&isNaN(t.index)&&e.quality===t.quality}(t,e)||function(e,t){return e.action===y.default.ACTION_COMPLETE&&e.action===t.action}(t,e))return n=!0}),n)}function d(e){return isNaN(e.duration)?.25:Math.min(e.duration/8,.5)}function c(n){u=u.filter(function(e){var t=d(e);return isNaN(e.startTime)||void 0!==n&&e.startTime>=n-t})}function h(n,r){r<=n+.5||(u=u.filter(function(e){var t=d(e);return isNaN(e.startTime)||e.startTime>=r-t||isNaN(e.duration)||e.startTime+e.duration<=n+t}))}function p(e,t){r.addSchedulingInfo(e,t),r.addRequestsQueue(e.mediaType,l,u)}function g(e){e.sender===i&&(l.splice(l.indexOf(e.request),1),e.response&&!e.error&&u.push(e.request),p(e.request,e.error?"failed":I),n.trigger(T.default.FRAGMENT_LOADING_COMPLETED,{request:e.request,response:e.response,error:e.error,sender:this}))}function m(e){e.sender===i&&n.trigger(T.default.FRAGMENT_LOADING_PROGRESS,{request:e.request,response:e.response,error:e.error,sender:this})}function _(e){e.sender===i&&n.trigger(T.default.FRAGMENT_LOADING_ABANDONED,{streamProcessor:this.getStreamProcessor(),request:e.request,mediaType:e.mediaType})}function v(){u=[],l=[]}return a={setStreamProcessor:function(e){s=e},getStreamProcessor:function(){return s},getRequests:function(n){var e=n?n.state instanceof Array?n.state:[n.state]:[],r=[];return e.forEach(function(e){var t=function(e){var t=void 0;switch(e){case b:t=l;break;case I:t=u;break;default:t=[]}return t}(e);r=r.concat(function(e,n){if(n.hasOwnProperty("time"))return[function(e,t,n){for(var r=e.length-1;0<=r;r--){var i=e[r],a=i.startTime,o=a+i.duration;if(n=isNaN(n)?d(i):n,!isNaN(a)&&!isNaN(o)&&a<=t+n&&t-n<o||isNaN(a)&&isNaN(t))return i}return null}(e,n.time,n.threshold)];return e.filter(function(e){for(var t in n)if("state"!==t&&n.hasOwnProperty(t)&&e[t]!=n[t])return!1;return!0})}(t,n))}),r},isFragmentLoaded:f,isFragmentLoadedOrPending:function(e){var t=!1,n=0,r=void 0;if(!(t=f(e)))for(n=0;n<l.length;n++)r=l[n],e.url===r.url&&e.startTime===r.startTime&&(t=!0);return t},removeExecutedRequestsBeforeTime:c,removeExecutedRequestsAfterTime:function(t){u=u.filter(function(e){return isNaN(e.startTime)||void 0!==t&&e.startTime<t})},syncExecutedRequestsWithBufferedRange:function(e,t){if(e&&0!==e.length){for(var n=0,r=0,i=e.length;r<i;r++)h(n,e.start(r)),n=e.end(r);0<t&&h(n,t)}else c()},abortRequests:function(){i.abort(),l=[]},executeRequest:function(e){switch(e.action){case y.default.ACTION_COMPLETE:u.push(e),p(e,I),o.debug("executeRequest trigger STREAM_COMPLETED"),n.trigger(T.default.STREAM_COMPLETED,{request:e,fragmentModel:this});break;case y.default.ACTION_DOWNLOAD:p(e,b),l.push(e),function(e){n.trigger(T.default.FRAGMENT_LOADING_STARTED,{sender:a,request:e}),i.load(e)}(e);break;default:o.warn("Unknown request action.")}},reset:function(){n.off(T.default.LOADING_COMPLETED,g,this),n.off(T.default.LOADING_DATA_PROGRESS,m,this),n.off(T.default.LOADING_ABANDONED,_,this),i&&i.reset(),v()},addExecutedRequest:function(e){u.push(e)}},o=(0,A.default)(t).getInstance().getLogger(a),v(),n.on(T.default.LOADING_COMPLETED,g,a),n.on(T.default.LOADING_DATA_PROGRESS,m,a),n.on(T.default.LOADING_ABANDONED,_,a),a}a.__dashjs_factory_name="FragmentModel";var o=i.default.getClassFactory(a);o.FRAGMENT_MODEL_LOADING=b,o.FRAGMENT_MODEL_EXECUTED=I,o.FRAGMENT_MODEL_CANCELED="canceled",o.FRAGMENT_MODEL_FAILED="failed",i.default.updateClassFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{175:175,46:46,47:47,48:48,55:55}],124:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(47)),a=r(e(55)),o=r(e(48));function s(){var e=this.context,t=(0,i.default)(e).getInstance(),n=void 0;return{getValue:function(){return n},setValue:function(e){(n=e)&&t.trigger(a.default.MANIFEST_LOADED,{data:e})}}}s.__dashjs_factory_name="ManifestModel",n.default=o.default.getSingletonFactory(s),t.exports=n.default},{47:47,48:48,55:55}],125:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var f=r(e(96)),i=r(e(48)),d=r(e(107)),c=r(e(137)),h=r(e(49)),p=e(166);function a(){var e,i=void 0,r=void 0,a=void 0,t={scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"http://time.akamai.com/?iso&ms"},n=this.context,o=(0,h.default)(n).getInstance();function s(e){var t=void 0;for(t=0;t<a.length;t++)if(a[t].rulename===e)return t;return-1}function u(e,t){l(e,t);var n=new f.default;n.schemeIdUri=e,n.value=t,i.push(n)}function l(n,r){(0,p.checkParameterType)(n,"string"),(0,p.checkParameterType)(r,"string"),i.forEach(function(e,t){e.schemeIdUri===n&&e.value===r&&i.splice(t,1)})}return e={getABRCustomRules:function(){return a},addABRCustomRule:function(e,t,n){if("string"!=typeof e||e!==c.default.ABANDON_FRAGMENT_RULES&&e!==c.default.QUALITY_SWITCH_RULES||"string"!=typeof t)throw d.default.BAD_ARGUMENT_ERROR;var r=s(t);-1===r?a.push({type:e,rulename:t,rule:n}):(a[r].type=e,a[r].rule=n)},removeABRCustomRule:function(e){if(e){var t=s(e);-1!==t&&a.splice(t,1)}else a=[]},getStableBufferTime:function(){if(o.get().streaming.lowLatencyEnabled)return.6*o.get().streaming.liveDelay;var e=o.get().streaming.stableBufferTime;return-1<e?e:o.get().streaming.fastSwitchEnabled?20:12},getRetryAttemptsForType:function(e){return o.get().streaming.lowLatencyEnabled?5*o.get().streaming.retryAttempts[e]:o.get().streaming.retryAttempts[e]},getRetryIntervalsForType:function(e){return o.get().streaming.lowLatencyEnabled?o.get().streaming.retryIntervals[e]/10:o.get().streaming.retryIntervals[e]},getLiveDelay:function(){return o.get().streaming.lowLatencyEnabled?o.get().streaming.liveDelay||3:o.get().streaming.liveDelay},addUTCTimingSource:u,removeUTCTimingSource:l,getUTCTimingSources:function(){return i},clearDefaultUTCTimingSources:function(){i=[]},restoreDefaultUTCTimingSources:function(){u(t.scheme,t.value)},setXHRWithCredentialsForType:function t(e,n){e?r[e]=!!n:Object.keys(r).forEach(function(e){t(e,n)})},getXHRWithCredentialsForType:function(e){var t=r[e];return void 0===t?r.default:t},getDefaultUtcTimingSource:function(){return t},reset:function(){}},r={default:(i=[],!1)},a=[],e}a.__dashjs_factory_name="MediaPlayerModel",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,137:137,166:166,48:48,49:49,96:96}],126:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var h=r(e(107)),_=r(e(108)),f=r(e(179)),v=e(189),p=r(e(192)),g=r(e(185)),E=r(e(186)),T=r(e(187)),y=r(e(188)),A=e(190),b=r(e(194)),I=r(e(47)),S=r(e(193)),R=r(e(55)),i=r(e(48));function a(e){var t,i=(e=e||{}).settings,n=this.context,r=(0,I.default)(n).getInstance(),a=void 0;function o(){r.trigger(R.default.METRICS_CHANGED)}function s(e){r.trigger(R.default.METRIC_CHANGED,{mediaType:e}),o()}function l(e,t,n){r.trigger(R.default.METRIC_UPDATED,{mediaType:e,metric:t,value:n}),s(e)}function d(e,t,n){r.trigger(R.default.METRIC_ADDED,{mediaType:e,metric:t,value:n}),s(e)}function u(e,t){var n=null;return e&&(a.hasOwnProperty(e)?n=a[e]:t||(n=new f.default,a[e]=n)),n}function c(e,t,n){var r=u(e);r[t].push(n),r[t].length>i.get().streaming.metricsMaxListDepth&&r[t].shift()}function m(e,t,n){c(e,t,n),d(e,t,n)}return t={clearCurrentMetricsForType:function(e){delete a[e],s(e)},clearAllCurrentMetrics:function(){a={},o()},getMetricsFor:u,addHttpRequest:function e(t,n,r,i,a,o,s,u,l,f,d,c,h,p){var g=new v.HTTPRequest;a&&a!==i&&(e(t,null,r,i,null,null,s,u,null,null,null,c,null,null),g.actualurl=a),g.tcpid=n,g.type=r,g.url=i,g.range=s,g.trequest=u,g.tresponse=l,g.responsecode=d,g._tfinish=f,g._stream=t,g._mediaduration=c,g._responseHeaders=h,g._serviceLocation=o,p?p.forEach(function(e){!function(e,t,n,r){var i=new v.HTTPRequestTrace;i.s=t,i.d=n,i.b=r,e.trace.push(i),e.interval||(e.interval=0),e.interval+=n}(g,e.s,e.d,e.b)}):(delete g.interval,delete g.trace),m(t,_.default.HTTP_REQUEST,g)},addRepresentationSwitch:function(e,t,n,r,i){var a=new p.default;a.t=t,a.mt=n,a.to=r,i?a.lto=i:delete a.lto,m(e,_.default.TRACK_SWITCH,a)},addBufferLevel:function(e,t,n){var r=new g.default;r.t=t,r.level=n,m(e,_.default.BUFFER_LEVEL,r)},addBufferState:function(e,t,n){var r=new E.default;r.target=n,r.state=t,m(e,_.default.BUFFER_STATE,r)},addDVRInfo:function(e,t,n,r){var i=new T.default;i.time=t,i.range=r,i.manifestInfo=n,m(e,_.default.DVR_INFO,i)},addDroppedFrames:function(e,t){var n=new y.default,r=u(e).DroppedFrames;n.time=t.creationTime,n.droppedFrames=t.droppedVideoFrames,0<r.length&&r[r.length-1]==n||m(e,_.default.DROPPED_FRAMES,n)},addSchedulingInfo:function(e,t,n,r,i,a,o,s,u){var l=new b.default;l.mediaType=e,l.t=t,l.type=n,l.startTime=r,l.availabilityStartTime=i,l.duration=a,l.quality=o,l.range=s,l.state=u,m(e,_.default.SCHEDULING_INFO,l)},addRequestsQueue:function(e,t,n){var r=new S.default;r.loadingRequests=t,r.executedRequests=n,u(e).RequestsQueue=r,d(e,_.default.REQUESTS_QUEUE,r)},addManifestUpdate:function(e,t,n,r,i,a,o,s,u,l){var f=new A.ManifestUpdate;f.mediaType=e,f.type=t,f.requestTime=n,f.fetchTime=r,f.availabilityStartTime=i,f.presentationStartTime=a,f.clientTimeOffset=o,f.currentTime=s,f.buffered=u,f.latency=l,c(h.default.STREAM,_.default.MANIFEST_UPDATE,f),d(e,_.default.MANIFEST_UPDATE,f)},updateManifestUpdateInfo:function(e,t){if(e){for(var n in t)e[n]=t[n];l(e.mediaType,_.default.MANIFEST_UPDATE,e)}},addManifestUpdateStreamInfo:function(e,t,n,r,i){if(e){var a=new A.ManifestUpdateStreamInfo;a.id=t,a.index=n,a.start=r,a.duration=i,e.streamInfo.push(a),l(e.mediaType,_.default.MANIFEST_UPDATE_STREAM_INFO,e)}},addManifestUpdateRepresentationInfo:function(e,t,n,r,i,a,o,s){if(e){var u=new A.ManifestUpdateRepresentationInfo;u.id=t,u.index=n,u.streamIndex=r,u.mediaType=i,u.startNumber=o,u.fragmentInfoType=s,u.presentationTimeOffset=a,e.representationInfo.push(u),l(e.mediaType,_.default.MANIFEST_UPDATE_TRACK_INFO,e)}},addPlayList:function(e){e.trace&&Array.isArray(e.trace)?e.trace.forEach(function(e){e.hasOwnProperty("subreplevel")&&!e.subreplevel&&delete e.subreplevel}):delete e.trace,m(h.default.STREAM,_.default.PLAY_LIST,e)},addDVBErrors:function(e){m(h.default.STREAM,_.default.DVB_ERRORS,e)}},a={},t}a.__dashjs_factory_name="MetricsModel",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,108:108,179:179,185:185,186:186,187:187,188:188,189:189,190:190,192:192,193:193,194:194,47:47,48:48,55:55}],127:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var l=r(e(184)),i=r(e(48));function a(){var u=void 0;return{initialize:function(e){if(u=new l.default,!e)return null;var t=e.indexOf("#");if(-1!==t)for(var n=e.substr(t+1).split("&"),r=0,i=n.length;r<i;++r){var a=n[r],o=a.indexOf("=");if(-1!==o){var s=a.substring(0,o);u.hasOwnProperty(s)&&(u[s]=a.substr(o+1))}}},getURIFragmentData:function(){return u}}}a.__dashjs_factory_name="URIFragmentModel",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{184:184,48:48}],128:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),p=r(e(47)),g=r(e(55)),m=r(e(46));function a(){var e=void 0,t=void 0,o=void 0,n=void 0,r=void 0,i="element is not video or audio DOM type!",a=this.context,s=(0,p.default)(a).getInstance(),u=[];function l(){o&&(o.playbackRate=r||1,o.removeEventListener("canplay",l))}function f(e){o&&(o.readyState<=2&&0<e?o.addEventListener("canplay",l):o.playbackRate=e)}function d(){return 0<u.length}function c(){if(o&&d()&&0===o.playbackRate){var e=document.createEvent("Event");e.initEvent("waiting",!0,!1),o.dispatchEvent(e)}}function h(){return o?o.buffered:null}return e={initialize:function(){s.on(g.default.PLAYBACK_PLAYING,c,this)},setCurrentTime:function(t,e){if(o){if(o.currentTime==t)return;try{t=e?function(e){var t=h(),n=e,r=9999999999;if(t)for(var i=0;i<t.length;i++){var a=t.start(i),o=t.end(i),s=Math.abs(a-e),u=Math.abs(o-e);if(a<=e&&e<=o)return e;s<r&&(r=s,n=a),u<r&&(r=u,n=o)}return n}(t):t,o.currentTime=t}catch(e){0===o.readyState&&e.code===e.INVALID_STATE_ERR&&setTimeout(function(){o.currentTime=t},400)}}},play:function(){if(o){o.autoplay=!0;var e=o.play();e&&e.catch&&"undefined"!=typeof Promise&&e.catch(function(e){ ( "AbortError"===e.name /* occurs when Vimeo autoplays in Safari */ || "NotAllowedError"===e.name ) &&s.trigger(g.default.PLAYBACK_NOT_ALLOWED),t.warn("Caught pending play exception - continuing ("+e+")")})}},isPaused:function(){return o?o.paused:null},pause:function(){o&&(o.pause(),o.autoplay=!1)},isSeeking:function(){return o?o.seeking:null},getTime:function(){return o?o.currentTime:null},getPlaybackRate:function(){return o?o.playbackRate:null},setPlaybackRate:f,getPlayedRanges:function(){return o?o.played:null},getEnded:function(){return o?o.ended:null},setStallState:function(e,t){!function(e,t){t?function(e){var t=void 0;if(null===e||o.seeking||-1!==u.indexOf(e))return;u.push(e),o&&1===u.length&&((t=document.createEvent("Event")).initEvent("waiting",!0,!1),r=o.playbackRate,f(0),o.dispatchEvent(t))}(e):function(e){var t=u.indexOf(e),n=void 0;if(null===e)return;-1!==t&&u.splice(t,1);o&&!1===d()&&0===o.playbackRate&&(f(r||1),o.paused||((n=document.createEvent("Event")).initEvent("playing",!0,!1),o.dispatchEvent(n)))}(e)}(e,t)},getElement:function(){return o},setElement:function(e){if(!(null==e||e&&/^(VIDEO|AUDIO)$/i.test(e.nodeName)))throw i;(o=e)&&(o.preload="auto")},setSource:function(e){o&&(e?o.src=e:(o.removeAttribute("src"),o.load()))},getSource:function(){return o?o.src:null},getTTMLRenderingDiv:function(){return n},setTTMLRenderingDiv:function(e){(n=e).style.position="absolute",n.style.display="flex",n.style.overflow="hidden",n.style.pointerEvents="none",n.style.top=0,n.style.left=0},getPlaybackQuality:function(){if(!o)return null;var e="webkitDroppedFrameCount"in o&&"webkitDecodedFrameCount"in o,t=null;return"getVideoPlaybackQuality"in o?t=o.getVideoPlaybackQuality():e&&(t={droppedVideoFrames:o.webkitDroppedFrameCount,totalVideoFrames:o.webkitDroppedFrameCount+o.webkitDecodedFrameCount,creationTime:new Date}),t},addEventListener:function(e,t){o&&o.addEventListener(e,t)},removeEventListener:function(e,t){o&&o.removeEventListener(e,t)},getReadyState:function(){return o?o.readyState:NaN},getBufferRange:h,getClientWidth:function(){return o?o.clientWidth:NaN},getClientHeight:function(){return o?o.clientHeight:NaN},getTextTracks:function(){return o?o.textTracks:[]},getTextTrack:function(e,t,n,r,i){if(o)for(var a=0;a<o.textTracks.length;a++)if(o.textTracks[a].kind===e&&(!t||o.textTracks[a].label==t)&&o.textTracks[a].language===n&&o.textTracks[a].isTTML===r&&o.textTracks[a].isEmbedded===i)return o.textTracks[a];return null},addTextTrack:function(e,t,n){return o?o.addTextTrack(e,t,n):null},appendChild:function(e){o&&(o.appendChild(e),void 0!==e.isTTML&&(o.textTracks[o.textTracks.length-1].isTTML=e.isTTML,o.textTracks[o.textTracks.length-1].isEmbedded=e.isEmbedded))},removeChild:function(e){o&&o.removeChild(e)},getVideoWidth:function(){return o?o.videoWidth:NaN},getVideoHeight:function(){return o?o.videoHeight:NaN},getVideoRelativeOffsetTop:function(){return o&&o.parentNode?o.getBoundingClientRect().top-o.parentNode.getBoundingClientRect().top:NaN},getVideoRelativeOffsetLeft:function(){return o&&o.parentNode?o.getBoundingClientRect().left-o.parentNode.getBoundingClientRect().left:NaN},reset:function(){s.off(g.default.PLAYBACK_PLAYING,c,this)}},t=(0,m.default)(a).getInstance().getLogger(e),e}a.__dashjs_factory_name="VideoModel",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{46:46,47:47,48:48,55:55}],129:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){var a=(e=e||{}).requestModifier,g=e.boxParser;function m(t,e){t.reader.read().then(e).catch(function(e){t.onerror&&200===t.response.status&&t.onerror(e)})}function _(i,t){if(1<(i=i.filter(function(e){return e.bytes>t/4/i.length})).length){var e=(a=0,o=(i[i.length-1].ts-i[0].ts)/i.length,i.forEach(function(e,t){var n=i[t+1];if(n){var r=n.ts-e.ts;a+=r<o?r:0}}),{v:a});if("object"==typeof e)return e.v}var a,o;return null}return{load:function(p){var e=new Date,t=p.request,n=new Headers;t.range&&n.append("Range","bytes="+t.range),t.requestStartDate||(t.requestStartDate=e),a&&a.modifyRequestHeader({setRequestHeader:function(e,t){n.append(e,t)}});var r=void 0;"function"==typeof window.AbortController&&(r=new AbortController,p.abortController=r);var i={method:p.method,headers:n,credentials:p.withCredentials?"include":void 0,signal:r?r.signal:void 0};fetch(p.url,i).then(function(e){p.response||(p.response={}),p.response.status=e.status,p.response.statusText=e.statusText,p.response.responseURL=e.url,e.ok||p.onerror();var t="",n=!0,r=!1,i=void 0;try{for(var a,o=e.headers.keys()[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;t+=s+": "+e.headers.get(s)+"\n"}}catch(e){r=!0,i=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw i}}if(p.response.responseHeaders=t,!e.body)return e.arrayBuffer().then(function(e){var t={loaded:(p.response.response=e).byteLength,total:e.byteLength,stream:!1};p.progress(t),p.onload(),p.onend()});var u=parseInt(e.headers.get("Content-Length"),10),l=0,f=!1,d=new Uint8Array,c=0;p.reader=e.body.getReader();var h=[];m(p,function e(t){var n=t.value;if(t.done)return d&&(p.progress({loaded:l,total:isNaN(u)?l:u,lengthComputable:!0,time:_(h,l),stream:!0}),p.response.response=d.buffer),p.onload(),void p.onend();if(n&&0<n.length){d=function(e,t){if(0===e.length)return t;var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(d,n),l+=n.length,h.push({ts:Date.now(),bytes:n.length});var r=g.findLastTopIsoBoxCompleted(["moov","mdat"],d,c);if(r.found){var i=r.lastCompletedOffset+r.size,a=void 0;d=i===d.length?(a=d,new Uint8Array):(a=new Uint8Array(d.subarray(0,i)),d.subarray(i)),p.progress({data:a.buffer,lengthComputable:!1,noTrace:!0}),c=0}else c=r.lastCompletedOffset,f||(p.progress({lengthComputable:!1,noTrace:!0}),f=!0)}m(p,e)})}).catch(function(e){p.onerror&&p.onerror(e)})},abort:function(e){if(e.abortController)e.abortController.abort();else if(e.reader)try{e.reader.cancel()}catch(e){}},calculateDownloadedTime:_}}o.__dashjs_factory_name="FetchLoader";var s=a.default.getClassFactory(o);n.default=s,t.exports=n.default},{48:48}],130:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(n,"__esModule",{value:!0});var M=r(e(131)),O=r(e(129)),C=e(189),a=r(e(48)),o=r(e(52)),P=r(e(173));function s(e){e=e||{};var t,n,E=this.context,T=e.errHandler,y=e.dashMetrics,A=e.mediaPlayerModel,b=e.requestModifier,I=e.boxParser,S=e.useFetch||!1,R=void 0,w=void 0,D=void 0,N=void 0;return t={load:function(e){e.request?function t(n,r){var i=n.request,a=[],o=!0,s=!0,u=new Date,l=u,f=0,d=void 0;if(!b||!y||!T)throw new Error("config object is not correct or missing");function e(e){s=!1,i.requestStartDate=u,i.requestEndDate=new Date,i.firstByteDate=i.firstByteDate||u,i.checkExistenceOnly||(y.addHttpRequest(i,d.response?d.response.responseURL:null,d.response?d.response.status:null,d.response&&d.response.getAllResponseHeaders?d.response.getAllResponseHeaders():d.response?d.response.responseHeaders:[],e?a:null),i.type===C.HTTPRequest.MPD_TYPE&&y.addManifestUpdate(i.type,i.requestStartDate,i.requestEndDate))}function c(){-1!==R.indexOf(d)&&(R.splice(R.indexOf(d),1),s&&(e(!1),0<r?function(){r--;var e={config:n};D.push(e),e.timeout=setTimeout(function(){-1!==D.indexOf(e)&&(D.splice(D.indexOf(e),1),t(n,r))},A.getRetryIntervalsForType(i.type))}():(T.error(new P.default(N[i.type],i.url+" is not available",{request:i,response:d.response})),n.error&&n.error(i,"error",d.response.statusText),n.complete&&n.complete(i,d.response.statusText))))}var h=void 0;h=S&&window.fetch&&"arraybuffer"===i.responseType&&i.type===C.HTTPRequest.MEDIA_SEGMENT_TYPE?(0,O.default)(E).create({requestModifier:b,boxParser:I}):(0,M.default)(E).create({requestModifier:b});var p=b.modifyRequestURL(i.url),g=i.checkExistenceOnly?C.HTTPRequest.HEAD:C.HTTPRequest.GET,m=A.getXHRWithCredentialsForType(i.type);d={url:p,method:g,withCredentials:m,request:i,onload:function(){200<=d.response.status&&d.response.status<=299&&(e(!0),n.success&&n.success(d.response.response,d.response.statusText,d.response.responseURL),n.complete&&n.complete(i,d.response.statusText))},onend:c,onerror:c,progress:function(e){var t=new Date;o&&(o=!1,(!e.lengthComputable||e.lengthComputable&&e.total!==e.loaded)&&(i.firstByteDate=t)),e.lengthComputable&&(i.bytesLoaded=e.loaded,i.bytesTotal=e.total),e.noTrace||(a.push({s:l,d:e.time?e.time:t.getTime()-l.getTime(),b:[e.loaded?e.loaded-f:0]}),l=t,f=e.loaded),n.progress&&e&&n.progress(e)},onabort:function(){n.abort&&n.abort(i)},loader:h};var _,v=(new Date).getTime();isNaN(i.delayLoadingTime)||v>=i.delayLoadingTime?(R.push(d),h.load(d)):(_={httpRequest:d},w.push(_),_.delayTimeout=setTimeout(function(){if(-1!==w.indexOf(_)){w.splice(w.indexOf(_),1);try{u=new Date,l=u,R.push(_.httpRequest),h.load(_.httpRequest)}catch(e){_.httpRequest.onerror()}}},i.delayLoadingTime-v))}(e,A.getRetryAttemptsForType(e.request.type)):e.error&&e.error(e.request,"error")},abort:function(){D.forEach(function(e){clearTimeout(e.timeout),e.config.request&&e.config.abort&&e.config.abort(e.config.request)}),D=[],w.forEach(function(e){return clearTimeout(e.delayTimeout)}),w=[],R.forEach(function(e){e.onloadend=e.onerror=e.onprogress=void 0,e.loader.abort(e),e.onabort()}),R=[]}},R=[],w=[],D=[],i(n={},C.HTTPRequest.MPD_TYPE,o.default.DOWNLOAD_ERROR_ID_MANIFEST_CODE),i(n,C.HTTPRequest.XLINK_EXPANSION_TYPE,o.default.DOWNLOAD_ERROR_ID_XLINK_CODE),i(n,C.HTTPRequest.INIT_SEGMENT_TYPE,o.default.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE),i(n,C.HTTPRequest.MEDIA_SEGMENT_TYPE,o.default.DOWNLOAD_ERROR_ID_CONTENT_CODE),i(n,C.HTTPRequest.INDEX_SEGMENT_TYPE,o.default.DOWNLOAD_ERROR_ID_CONTENT_CODE),i(n,C.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,o.default.DOWNLOAD_ERROR_ID_CONTENT_CODE),i(n,C.HTTPRequest.OTHER_TYPE,o.default.DOWNLOAD_ERROR_ID_CONTENT_CODE),N=n,t}s.__dashjs_factory_name="HTTPLoader";var u=a.default.getClassFactory(s);n.default=u,t.exports=n.default},{129:129,131:131,173:173,189:189,48:48,52:52}],131:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){var i=(e=e||{}).requestModifier;return{load:function(e){var t=new Date,n=e.request,r=new XMLHttpRequest;r.open(e.method,e.url,!0),n.responseType&&(r.responseType=n.responseType),n.range&&r.setRequestHeader("Range","bytes="+n.range),n.requestStartDate||(n.requestStartDate=t),i&&(r=i.modifyRequestHeader(r)),r.withCredentials=e.withCredentials,r.onload=e.onload,r.onloadend=e.onend,r.onerror=e.onerror,r.onprogress=e.progress,r.onabort=e.onabort,r.send(),e.response=r},abort:function(e){var t=e.response;t.onloadend=t.onerror=t.onprogress=void 0,t.abort()}}}o.__dashjs_factory_name="XHRLoader";var s=a.default.getClassFactory(o);n.default=s,t.exports=n.default},{48:48}],132:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){var o=[],s=0,u=0;return{push:function(e,t){var n=t&&t.droppedVideoFrames?t.droppedVideoFrames:0,r=t&&t.totalVideoFrames?t.totalVideoFrames:0,i=n-s;s=n;var a=r-u;u=r,isNaN(e)||(o[e]?(o[e].droppedVideoFrames+=i,o[e].totalVideoFrames+=a):o[e]={droppedVideoFrames:i,totalVideoFrames:a})},getFrameHistory:function(){return o},reset:function(e){o=[],s=e.droppedVideoFrames,u=e.totalVideoFrames}}}o.__dashjs_factory_name="DroppedFramesHistory";var s=a.default.getClassFactory(o);n.default=s,t.exports=n.default},{48:48}],133:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){var t=(e=e||{}).abrController,n=e.switchHistory,r=e.droppedFramesHistory,i=e.currentRequest,a=e.useBufferOccupancyABR,o=e.streamProcessor?e.streamProcessor.getScheduleController():null,s=e.streamProcessor?e.streamProcessor.getRepresentationInfo():null;function u(){return s?s.mediaInfo:null}return{getMediaType:function(){var e=u();return e?e.type:null},getMediaInfo:u,getDroppedFramesHistory:function(){return r},getCurrentRequest:function(){return i},getSwitchHistory:function(){return n},getStreamInfo:function(){var e=u();return e?e.streamInfo:null},getScheduleController:function(){return o},getAbrController:function(){return t},getRepresentationInfo:function(){return s},useBufferOccupancyABR:function(){return a}}}o.__dashjs_factory_name="RulesContext",n.default=a.default.getClassFactory(o),t.exports=n.default},{48:48}],134:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r},o={DEFAULT:.5,STRONG:1,WEAK:0};function s(e,t,n){var r,i;return(r=n)!==(i=o.DEFAULT)&&r!==o.STRONG&&r!==o.WEAK||(i=r),{quality:void 0===e?-1:e,reason:void 0===t?null:t,priority:i}}s.__dashjs_factory_name="SwitchRequest";var u=a.default.getClassFactory(s);u.NO_CHANGE=-1,u.PRIORITY=o,a.default.updateClassFactory(s.__dashjs_factory_name,u),n.default=u,t.exports=n.default},{48:48}],135:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),u=r(e(134));function a(){var o=[],s=[];return{push:function(e){e.newValue===u.default.NO_CHANGE&&(e.newValue=e.oldValue),o[e.oldValue]||(o[e.oldValue]={noDrops:0,drops:0,dropSize:0});var t=e.newValue-e.oldValue,n=t<0?1:0,r=n?-t:0,i=n?0:1;if(o[e.oldValue].drops+=n,o[e.oldValue].dropSize+=r,o[e.oldValue].noDrops+=i,s.push({idx:e.oldValue,noDrop:i,drop:n,dropSize:r}),8<s.length){var a=s.shift();o[a.idx].drops-=a.drop,o[a.idx].dropSize-=a.dropSize,o[a.idx].noDrops-=a.noDrop}},getSwitchRequests:function(){return o},reset:function(){o=[],s=[]}}}a.__dashjs_factory_name="SwitchRequestHistory";var o=i.default.getClassFactory(a);n.default=o,t.exports=n.default},{134:134,48:48}],136:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var T=r(e(107)),i=r(e(48));function a(e){var s=3,u=4,l=4,f=1.3,d=1.3,c=(e=e||{}).settings,h=void 0,p=void 0,g=void 0,m=void 0,_=void 0;function v(e,t,n,r){var i=Math.pow(.5,n/r.fast);e.fastEstimate=(1-i)*t+i*e.fastEstimate;var a=Math.pow(.5,n/r.slow);e.slowEstimate=(1-a)*t+a*e.slowEstimate,e.totalWeight+=n}function n(e,t,n){return c.get().streaming.abr.movingAverageMethod!==T.default.MOVING_AVERAGE_SLIDING_WINDOW?function(e,t){var n=e?_.throughputHalfLife:_.latencyHalfLife,r=e?g[t]:m[t];if(!r||r.totalWeight<=0)return NaN;var i=r.fastEstimate/(1-Math.pow(.5,r.totalWeight/n.fast)),a=r.slowEstimate/(1-Math.pow(.5,r.totalWeight/n.slow));return e?Math.min(i,a):Math.max(i,a)}(e,t):function(e,t,n){var r=function(e,t,n){var r=void 0,i=void 0;if(i=e?(r=h[t],n?s:u):(r=p[t],l),r){if(i>=r.length)i=r.length;else if(e)for(var a=1;a<i;++a){var o=r[a]/r[a-1];if((d<=o||o<=1/f)&&(i+=1)===r.length)break}}else i=0;return i}(e,t,n),i=(e?h:p)[t];return 0!==r&&i&&0!==i.length?(i=i.slice(-r)).reduce(function(e,t){return e+t})/i.length:NaN}(e,t,n)}function r(e,t){return n(!0,e,t)}function E(e){h[e]=h[e]||[],p[e]=p[e]||[],g[e]=g[e]||{fastEstimate:0,slowEstimate:0,totalWeight:0},m[e]=m[e]||{fastEstimate:0,slowEstimate:0,totalWeight:0}}function t(){h={},p={},g={},m={}}var i={push:function(e,t,n){if(t.trace&&t.trace.length){var r=t.tresponse.getTime()-t.trequest.getTime()||1,i=t._tfinish.getTime()-t.tresponse.getTime()||1,a=t.trace.reduce(function(e,t){return e+t.b[0]},0),o=void 0;o=c.get().streaming.lowLatencyEnabled?t.trace.reduce(function(e,t){return e+t.d},0):n?i:r+i;var s=Math.round(8*a/o);if(E(e),function(e,t,n){return e===T.default.VIDEO?n<c.get().streaming.cacheLoadThresholds[T.default.VIDEO]:e===T.default.AUDIO?n<c.get().streaming.cacheLoadThresholds[T.default.AUDIO]:void 0}(e,0,i)){if(0<h[e].length&&!h[e].hasCachedEntries)return;h[e].hasCachedEntries=!0}else h[e]&&h[e].hasCachedEntries&&function(e){delete h[e],delete p[e],delete g[e],delete m[e],E(e)}(e);h[e].push(s),20<h[e].length&&h[e].shift(),p[e].push(r),20<p[e].length&&p[e].shift(),v(g[e],s,.001*i,_.throughputHalfLife),v(m[e],r,1,_.latencyHalfLife)}},getAverageThroughput:r,getSafeAverageThroughput:function(e,t){var n=r(e,t);return isNaN(n)||(n*=c.get().streaming.abr.bandwidthSafetyFactor),n},getAverageLatency:function(e){return n(!1,e)},reset:t};return _={throughputHalfLife:{fast:3,slow:8},latencyHalfLife:{fast:1,slow:2}},t(),i}a.__dashjs_factory_name="ThroughputHistory",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,48:48}],137:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var l=r(e(143)),f=r(e(141)),d=r(e(138)),c=r(e(140)),h=r(e(142)),p=r(e(139)),i=r(e(48)),g=r(e(134)),m="qualitySwitchRules",_="abandonFragmentRules";function a(e){e=e||{};var s=this.context,t=e.mediaPlayerModel,n=e.dashMetrics,r=e.settings,i=void 0,a=void 0;function o(e){return e.filter(function(e){return e.quality>g.default.NO_CHANGE})}function u(e){var t,n={},r=void 0,i=void 0,a=void 0,o=void 0;if(0!==e.length){for(n[g.default.PRIORITY.STRONG]=g.default.NO_CHANGE,n[g.default.PRIORITY.WEAK]=g.default.NO_CHANGE,n[g.default.PRIORITY.DEFAULT]=g.default.NO_CHANGE,r=0,t=e.length;r<t;r+=1)(i=e[r]).quality!==g.default.NO_CHANGE&&(n[i.priority]=n[i.priority]>g.default.NO_CHANGE?Math.min(n[i.priority],i.quality):i.quality);return n[g.default.PRIORITY.WEAK]!==g.default.NO_CHANGE&&(a=n[g.default.PRIORITY.WEAK]),n[g.default.PRIORITY.DEFAULT]!==g.default.NO_CHANGE&&(a=n[g.default.PRIORITY.DEFAULT]),n[g.default.PRIORITY.STRONG]!==g.default.NO_CHANGE&&(a=n[g.default.PRIORITY.STRONG]),a!==g.default.NO_CHANGE&&(o=a),(0,g.default)(s).create(o)}}return{initialize:function(){i=[],a=[],r.get().streaming.abr.useDefaultABRRules&&(i.push((0,p.default)(s).create({dashMetrics:n,mediaPlayerModel:t,settings:r})),i.push((0,l.default)(s).create({dashMetrics:n})),i.push((0,f.default)(s).create({dashMetrics:n})),i.push((0,h.default)(s).create()),i.push((0,c.default)(s).create()),a.push((0,d.default)(s).create({dashMetrics:n,mediaPlayerModel:t,settings:r}))),t.getABRCustomRules().forEach(function(e){e.type===m&&i.push(e.rule(s).create()),e.type===_&&a.push(e.rule(s).create())})},reset:function(){[i,a].forEach(function(e){e&&e.length&&e.forEach(function(e){return e.reset&&e.reset()})}),i=[],a=[]},getMaxQuality:function(t){return u(o(i.map(function(e){return e.getMaxIndex(t)})))||(0,g.default)(s).create()},shouldAbandonFragment:function(t){return u(o(a.map(function(e){return e.shouldAbandon(t)})))||(0,g.default)(s).create()}}}a.__dashjs_factory_name="ABRRulesCollection";var o=i.default.getClassFactory(a);o.QUALITY_SWITCH_RULES=m,o.ABANDON_FRAGMENT_RULES=_,i.default.updateSingletonFactory(a.__dashjs_factory_name,o),n.default=o,t.exports=n.default},{134:134,138:138,139:139,140:140,141:141,142:142,143:143,48:48}],138:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var E=r(e(134)),i=r(e(48)),a=r(e(46));function T(e){e=e||{};var d=this.context,c=e.mediaPlayerModel,h=e.dashMetrics,p=e.settings,t=void 0,g=void 0,m=void 0,_=void 0,v=void 0;function n(){m={},_={},v=[]}return t={shouldAbandon:function(e){var t=(0,E.default)(d).create(E.default.NO_CHANGE,{name:T.__dashjs_factory_name});if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getCurrentRequest")&&e.hasOwnProperty("getRepresentationInfo")&&e.hasOwnProperty("getAbrController")))return t;var n=e.getMediaInfo(),r=e.getMediaType(),i=e.getCurrentRequest();if(!isNaN(i.index)){if(function(e,t){m[e]=m[e]||{},m[e][t]=m[e][t]||{}}(r,i.index),c.getStableBufferTime()<h.getCurrentBufferLevel(r,!0))return t;var a=m[r][i.index];if(null===a||null===i.firstByteDate||_.hasOwnProperty(a.id))return t;if(void 0===a.firstByteTime&&(v[r]=[],a.firstByteTime=i.firstByteDate.getTime(),a.segmentDuration=i.duration,a.bytesTotal=i.bytesTotal,a.id=i.index),a.bytesLoaded=i.bytesLoaded,a.elapsedTime=(new Date).getTime()-a.firstByteTime,0<a.bytesLoaded&&0<a.elapsedTime&&function(e,t){v[e]=v[e]||[],v[e].push(t)}(r,Math.round(8*a.bytesLoaded/a.elapsedTime)),5<=v[r].length&&500<a.elapsedTime&&a.bytesLoaded<a.bytesTotal){var o=v[r].reduce(function(e,t){return e+t},0);if(a.measuredBandwidthInKbps=Math.round(o/v[r].length),a.estimatedTimeOfDownload=+(8*a.bytesTotal/a.measuredBandwidthInKbps/1e3).toFixed(2),a.estimatedTimeOfDownload<1.8*a.segmentDuration||0===e.getRepresentationInfo().quality)return t;if(!_.hasOwnProperty(a.id)){var s=e.getAbrController(),u=a.bytesTotal-a.bytesLoaded,l=s.getBitrateList(n),f=s.getQualityForBitrate(n,a.measuredBandwidthInKbps*p.get().streaming.abr.bandwidthSafetyFactor);a.bytesTotal*l[f].bitrate/l[s.getQualityFor(r)].bitrate<u&&(t.quality=f,t.reason.throughput=a.measuredBandwidthInKbps,t.reason.fragmentID=a.id,_[a.id]=a,g.debug("( ",r,"frag id",a.id,") is asking to abandon and switch to quality to ",f," measured bandwidth was",a.measuredBandwidthInKbps),delete m[r][a.id])}}else a.bytesLoaded===a.bytesTotal&&delete m[r][a.id]}return t},reset:n},g=(0,a.default)(d).getInstance().getLogger(t),n(),t}T.__dashjs_factory_name="AbandonRequestsRule",n.default=i.default.getClassFactory(T),t.exports=n.default},{134:134,46:46,48:48}],139:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var p=r(e(108)),D=r(e(134)),i=r(e(48)),g=e(189),m=r(e(47)),_=r(e(55)),v=r(e(46));function a(e){e=e||{};var E=this.context,T=e.dashMetrics,o=e.mediaPlayerModel,t=(0,m.default)(E).getInstance(),n=void 0,y=void 0,A=void 0;function s(e,t,r){var n=r.reduce(function(e,t,n){return t>r[e]?n:e},0);if(0===n)return null;var i=Math.max(e,10+2*t.length),a=(r[n]-1)/(i/10-1);return{gp:a,Vp:10/a}}function b(e){var t={},n=e.getMediaInfo().bitrateList.map(function(e){return e.bandwidth}),r=function(e){return e.map(function(e){return Math.log(e)})}(n);r=r.map(function(e){return e-r[0]+1});var i=o.getStableBufferTime(),a=s(i,n,r);return a?(t.state=1,t.bitrates=n,t.utilities=r,t.stableBufferTime=i,t.Vp=a.Vp,t.gp=a.gp,t.lastQuality=0,I(t)):t.state=0,t}function I(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN}function S(e,t){var n=o.getStableBufferTime();if(e.stableBufferTime!==n){var r=s(n,e.bitrates,e.utilities);if(r.Vp!==e.Vp||r.gp!==e.gp){var i=T.getCurrentBufferLevel(t,!0),a=i+e.placeholderBuffer;a-=10,a*=r.Vp/e.Vp,a+=10,e.stableBufferTime=n,e.Vp=r.Vp,e.gp=r.gp,e.placeholderBuffer=Math.max(0,a-i)}}}function R(e,t){return e.Vp*(e.utilities[t]+e.gp)}function w(e,t){for(var n=e.bitrates[t],r=e.utilities[t],i=0,a=t-1;0<=a;--a)if(e.utilities[a]<e.utilities[t]){var o=e.bitrates[a],s=e.utilities[a],u=e.Vp*(e.gp+(n*s-o*r)/(n-o));i=Math.max(i,u)}return i}function r(){for(var e in A)A.hasOwnProperty(e)&&2===A[e].state&&(A[e].placeholderBuffer=0)}function i(){for(var e in A)if(A.hasOwnProperty(e)){var t=A[e];0!==t.state&&(t.state=1,I(t))}}function a(){}function u(e){if(e&&e.chunk&&e.chunk.mediaInfo){var t=A[e.chunk.mediaInfo.type];if(t&&0!==t.state){var n=e.chunk.start;isNaN(t.mostAdvancedSegmentStart)||n>t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=n,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=n,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,f(t,e.chunk.mediaInfo.type)}}}function l(e){if(e&&e.metric===p.default.HTTP_REQUEST&&e.value&&e.value.type===g.HTTPRequest.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=A[e.mediaType];t&&0!==t.state&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),f(t,e.mediaType))}}function f(e,t){if(!isNaN(e.lastSegmentStart)&&!isNaN(e.lastSegmentRequestTimeMs)&&!isNaN(e.placeholderBuffer)){if(e.placeholderBuffer*=.99,!isNaN(e.lastSegmentFinishTimeMs)){var n=T.getCurrentBufferLevel(t,!0)+.001*(e.lastSegmentFinishTimeMs-e.lastSegmentRequestTimeMs),r=R(e,e.lastQuality),i=Math.max(0,r-n);e.placeholderBuffer=Math.min(i,e.placeholderBuffer)}e.lastSegmentWasReplacement&&!isNaN(e.lastSegmentDurationS)&&(e.placeholderBuffer+=e.lastSegmentDurationS),e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN}}function d(e){if(e){var t=A[e.mediaType];t&&0!==t.state&&(t.abrQuality=e.newQuality)}}function c(e){if(e){var t=A[e.mediaType];if(t&&0!==t.state){var n=T.getCurrentBufferLevel(e.mediaType,!0),r=void 0;r=0<t.abrQuality?w(t,t.abrQuality):10;var i=Math.max(0,r-n);t.placeholderBuffer=Math.min(t.placeholderBuffer,i)}}}function h(){A={}}return n={getMaxIndex:function(e){var t=(0,D.default)(E).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getScheduleController")&&e.hasOwnProperty("getStreamInfo")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("useBufferOccupancyABR")))return t;var n=e.getMediaInfo(),r=e.getMediaType(),i=e.getScheduleController(),a=e.getStreamInfo(),o=e.getAbrController(),s=o.getThroughputHistory(),u=a?a.id:null,l=a&&a.manifestInfo&&a.manifestInfo.isDynamic,f=e.useBufferOccupancyABR();if(t.reason=t.reason||{},!f)return t;i.setTimeToLoadDelay(0);var d=function(e){var t=e.getMediaType(),n=A[t];return n?0!==n.state&&S(n,t):(n=b(e),A[t]=n),n}(e);if(0===d.state)return t;var c=T.getCurrentBufferLevel(r,!0),h=s.getAverageThroughput(r,l),p=s.getSafeAverageThroughput(r,l),g=s.getAverageLatency(r),m=void 0;if(t.reason.state=d.state,t.reason.throughput=h,t.reason.latency=g,isNaN(h))return t;switch(d.state){case 1:m=o.getQualityForBitrate(n,p,g),t.quality=m,t.reason.throughput=p,d.placeholderBuffer=Math.max(0,w(d,m)-c),d.lastQuality=m,!isNaN(d.lastSegmentDurationS)&&c>=d.lastSegmentDurationS&&(d.state=2);break;case 2:!function(e,t){var n=Date.now();if(isNaN(e.lastSegmentFinishTimeMs)){if(!isNaN(e.lastCallTimeMs)){r=.001*(n-e.lastCallTimeMs);e.placeholderBuffer+=Math.max(0,r)}}else{var r=.001*(n-e.lastSegmentFinishTimeMs);e.placeholderBuffer+=Math.max(0,r)}e.lastCallTimeMs=n,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN,S(e,t)}(d,r),m=function(e,t){for(var n=e.bitrates.length,r=NaN,i=NaN,a=0;a<n;++a){var o=(e.Vp*(e.utilities[a]+e.gp)-t)/e.bitrates[a];(isNaN(i)||i<=o)&&(i=o,r=a)}return r}(d,c+d.placeholderBuffer);var _=o.getQualityForBitrate(n,p,g);m>d.lastQuality&&_<m&&(m=Math.max(_,d.lastQuality));var v=Math.max(0,c+d.placeholderBuffer-R(d,m));v<=d.placeholderBuffer?(d.placeholderBuffer-=v,v=0):(v-=d.placeholderBuffer,d.placeholderBuffer=0,m<o.getTopQualityIndexFor(r,u)?i.setTimeToLoadDelay(1e3*v):v=0),t.quality=m,t.reason.throughput=h,t.reason.latency=g,t.reason.bufferLevel=c,t.reason.placeholderBuffer=d.placeholderBuffer,t.reason.delay=v,d.lastQuality=m;break;default:y.debug("BOLA ABR rule invoked in bad state."),t.quality=o.getQualityForBitrate(n,p,g),t.reason.state=d.state,t.reason.throughput=p,t.reason.latency=g,d.state=1,I(d)}return t},reset:function(){h(),t.off(_.default.BUFFER_EMPTY,r,n),t.off(_.default.PLAYBACK_SEEKING,i,n),t.off(_.default.PERIOD_SWITCH_STARTED,a,n),t.off(_.default.MEDIA_FRAGMENT_LOADED,u,n),t.off(_.default.METRIC_ADDED,l,n),t.off(_.default.QUALITY_CHANGE_REQUESTED,d,n),t.off(_.default.FRAGMENT_LOADING_ABANDONED,c,n)}},y=(0,v.default)(E).getInstance().getLogger(n),h(),t.on(_.default.BUFFER_EMPTY,r,n),t.on(_.default.PLAYBACK_SEEKING,i,n),t.on(_.default.PERIOD_SWITCH_STARTED,a,n),t.on(_.default.MEDIA_FRAGMENT_LOADED,u,n),t.on(_.default.METRIC_ADDED,l,n),t.on(_.default.QUALITY_CHANGE_REQUESTED,d,n),t.on(_.default.FRAGMENT_LOADING_ABANDONED,c,n),n}a.__dashjs_factory_name="BolaRule",n.default=i.default.getClassFactory(a),t.exports=n.default},{108:108,134:134,189:189,46:46,47:47,48:48,55:55}],140:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),f=r(e(134)),a=r(e(46));function o(){var u=this.context,e=void 0,l=void 0;return e={getMaxIndex:function(e){var t=(0,f.default)(u).create();if(!e||!e.hasOwnProperty("getDroppedFramesHistory"))return t;var n=e.getDroppedFramesHistory();if(n){for(var r=n.getFrameHistory(),i=0,a=0,o=f.default.NO_CHANGE,s=1;s<r.length;s++)if(r[s]&&(i=r[s].droppedVideoFrames,375<(a=r[s].totalVideoFrames)&&.15<i/a)){o=s-1,l.debug("index: "+o+" Dropped Frames: "+i+" Total Frames: "+a);break}return(0,f.default)(u).create(o,{droppedFrames:i})}return t}},l=(0,a.default)(u).getInstance().getLogger(e),e}o.__dashjs_factory_name="DroppedFramesRule",n.default=i.default.getClassFactory(o),t.exports=n.default},{134:134,46:46,48:48}],141:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var _=r(e(112)),a=r(e(47)),o=r(e(55)),i=r(e(48)),s=r(e(46)),v=r(e(134)),E=r(e(107)),T=r(e(108));function u(e){e=e||{};var c=.5,h=this.context,t=(0,a.default)(h).getInstance(),p=e.dashMetrics,n=void 0,g=void 0,m=void 0;function r(){m={}}function i(){r()}return n={getMaxIndex:function(e){var t=(0,v.default)(h).create();if(!e||!e.hasOwnProperty("getMediaType"))return t;!function(){if(!p||!p.hasOwnProperty("getCurrentBufferLevel")||!p.hasOwnProperty("getLatestBufferInfoVO"))throw new Error(E.default.MISSING_CONFIG_ERROR)}();var n=e.getMediaType(),r=p.getLatestBufferInfoVO(n,!0,T.default.BUFFER_STATE),i=e.getRepresentationInfo().fragmentDuration;if(!r||!function(e,t){m[e]=m[e]||{};var n=!1;m[e].firstBufferLoadedEvent?n=!0:t&&t.state===_.default.BUFFER_LOADED&&(m[e].firstBufferLoadedEvent=!0,n=!0);return n}(n,r)||!i)return t;if(r.state===_.default.BUFFER_EMPTY)g.debug("Switch to index 0; buffer is empty."),t.quality=0,t.reason="InsufficientBufferRule: Buffer is empty";else{var a=e.getMediaInfo(),o=e.getAbrController(),s=o.getThroughputHistory(),u=p.getCurrentBufferLevel(n,!0),l=s.getAverageThroughput(n),f=s.getAverageLatency(n),d=l*(u/i)*c;t.quality=o.getQualityForBitrate(a,d,f),t.reason="InsufficientBufferRule: being conservative to avoid immediate rebuffering"}return t},reset:function(){r(),t.off(o.default.PLAYBACK_SEEKING,i,n)}},g=(0,s.default)(h).getInstance().getLogger(n),r(),t.on(o.default.PLAYBACK_SEEKING,i,n),n}u.__dashjs_factory_name="InsufficientBufferRule",n.default=i.default.getClassFactory(u),t.exports=n.default},{107:107,108:108,112:112,134:134,46:46,47:47,48:48,55:55}],142:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(46)),f=r(e(134));function o(){var u=this.context,e=void 0,l=void 0;return e={getMaxIndex:function(e){for(var t=e?e.getSwitchHistory():null,n=t?t.getSwitchRequests():[],r=0,i=0,a=0,o=(0,f.default)(u).create(),s=0;s<n.length;s++)if(void 0!==n[s]&&(r+=n[s].drops,i+=n[s].noDrops,a+=n[s].dropSize,6<=r+i&&.075<r/i)){o.quality=0<s&&0<n[s].drops?s-1:s,o.reason={index:o.quality,drops:r,noDrops:i,dropSize:a},l.debug("Switch history rule index: "+o.quality+" samples: "+(r+i)+" drops: "+r);break}return o}},l=(0,a.default)(u).getInstance().getLogger(e),e}o.__dashjs_factory_name="SwitchHistoryRule",n.default=i.default.getClassFactory(o),t.exports=n.default},{134:134,46:46,48:48}],143:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var m=r(e(112)),_=r(e(109)),i=r(e(48)),a=r(e(46)),v=r(e(134)),E=r(e(107)),T=r(e(108));function o(e){e=e||{};var h=this.context,p=e.dashMetrics,t=void 0,g=void 0;return t={getMaxIndex:function(e){var t=(0,v.default)(h).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("useBufferOccupancyABR")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("getScheduleController")))return t;!function(){if(!p||!p.hasOwnProperty("getLatestBufferInfoVO"))throw new Error(E.default.MISSING_CONFIG_ERROR)}();var n=e.getMediaInfo(),r=e.getMediaType(),i=p.getLatestBufferInfoVO(r,!0,T.default.BUFFER_STATE),a=e.getScheduleController(),o=e.getAbrController(),s=e.getStreamInfo(),u=s&&s.manifestInfo?s.manifestInfo.isDynamic:null,l=o.getThroughputHistory(),f=l.getSafeAverageThroughput(r,u),d=l.getAverageLatency(r),c=e.useBufferOccupancyABR();return isNaN(f)||!i||c||o.getAbandonmentStateFor(r)!==_.default.ABANDON_LOAD&&(i.state!==m.default.BUFFER_LOADED&&!u||(t.quality=o.getQualityForBitrate(n,f,d),a.setTimeToLoadDelay(0),g.debug("requesting switch to index: ",t.quality,"type: ",r,"Average throughput",Math.round(f),"kbps"),t.reason={throughput:f,latency:d})),t},reset:function(){}},g=(0,a.default)(h).getInstance().getLogger(t),t}o.__dashjs_factory_name="ThroughputRule",n.default=i.default.getClassFactory(o),t.exports=n.default},{107:107,108:108,109:109,112:112,134:134,46:46,48:48}],144:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var c=r(e(107)),i=r(e(48));function a(e){var s=(e=e||{}).dashMetrics,u=e.mediaPlayerModel,l=e.textController,f=e.abrController,d=e.settings;function n(e,t){var n=NaN;if(!e)return n;var r=e.getType(),i=e.getRepresentationInfo();if(r===c.default.FRAGMENTED_TEXT)n=l.isTextEnabled()?i.fragmentDuration:0;else if(r===c.default.AUDIO&&t){var a=s.getCurrentBufferLevel(c.default.VIDEO,!0);n=isNaN(i.fragmentDuration)?a:Math.max(a,i.fragmentDuration)}else{var o=i.mediaInfo.streamInfo;if(f.isPlayingAtTopQuality(o))n=o.manifestInfo.duration>=d.get().streaming.longFormContentDurationThreshold?d.get().streaming.bufferTimeAtTopQualityLongForm:d.get().streaming.bufferTimeAtTopQuality;else n=u.getStableBufferTime()}return n}return{execute:function(e,t){return!e||s.getCurrentBufferLevel(e.getType(),!0)<n(e,t)},getBufferTarget:n}}a.__dashjs_factory_name="BufferLevelRule",n.default=i.default.getClassFactory(a),t.exports=n.default},{107:107,48:48}],145:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var m=r(e(107)),i=r(e(46)),a=r(e(48)),_=r(e(175));function o(e){e=e||{};var t=this.context,p=e.textController,g=e.playbackController,n=void 0;return n={execute:function(e,t,n){if(!e)return null;var r=e.getRepresentationInfo(),i=e.getType(),a=!isNaN(t),o=e.getBufferController(),s=g.getNormalizedTime(),u=a?t:e.getIndexHandlerTime(),l=!1,f=void 0;if(isNaN(u)||i===m.default.FRAGMENTED_TEXT&&!p.isTextEnabled())return null;if(o){var d=o.getRangeAt(u),c=o.getRangeAt(s),h=o.getBuffer().hasDiscontinuitiesAfter(s);null===d&&null===c||a||(!d||c&&c.start!=d.start&&c.end!=d.end)&&(h&&i!==m.default.FRAGMENTED_TEXT&&(e.getFragmentModel().removeExecutedRequestsAfterTime(c.end),l=!0),d=c)}if(n)u=n.startTime+n.duration/2,f=e.getFragmentRequest(r,u,{timeThreshold:0,ignoreIsFinished:!0});else for(f=e.getFragmentRequest(r,a||l?u:void 0,{keepIdx:!a&&!l});f&&f.action!==_.default.ACTION_COMPLETE&&e.getFragmentModel().isFragmentLoaded(f);)f=e.getFragmentRequest(r);return f}},(0,i.default)(t).getInstance().getLogger(n),n}o.__dashjs_factory_name="NextFragmentRequestRule",n.default=a.default.getClassFactory(o),t.exports=n.default},{107:107,175:175,46:46,48:48}],146:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){var G=0;function j(e){for(var t="",n=0;n<e.length;++n){t+=e[n].uchar}return t.length-t.replace(/^\s+/,"").length}function r(e){return"red"===e?"rgb(255, 0, 0)":"green"===e?"rgb(0, 255, 0)":"blue"===e?"rgb(0, 0, 255)":"cyan"===e?"rgb(0, 255, 255)":"magenta"===e?"rgb(255, 0, 255)":"yellow"===e?"rgb(255, 255, 0)":"white"===e?"rgb(255, 255, 255)":"black"===e?"rgb(0, 0, 0)":e}function q(e,t){var n=e.videoHeight/15;return t?"font-size: "+n+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; color: "+(t.foreground?r(t.foreground):"rgb(255, 255, 255)")+"; font-style: "+(t.italics?"italic":"normal")+"; text-decoration: "+(t.underline?"underline":"none")+"; white-space: pre; background-color: "+(t.background?r(t.background):"transparent")+";":"font-size: "+n+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; justify-content: flex-start; text-align: left; color: rgb(255, 255, 255); font-style: normal; white-space: pre; line-height: normal; font-weight: normal; text-decoration: none; width: 100%; display: flex;"}return{createHTMLCaptionsFromScreen:function(e,t,n,r){var i=null,a=!1,o=-1,s={start:t,end:n,spans:[]},u="style_cea608_white_black",l={},f={},d=[],c=void 0,h=void 0;for(c=0;c<15;++c){var p=r.rows[c],g="",m=null;if(!1===p.isEmpty()){var _=j(p.chars);null===i&&(i={x:_,y1:c,y2:c+1,p:[]}),_!==o&&a&&(i.p.push(s),s={start:t,end:n,spans:[]},i.y2=c,i.name="region_"+i.x+"_"+i.y1+"_"+i.y2,!1===l.hasOwnProperty(i.name)?(d.push(i),l[i.name]=i):l[i.name].p.contat(i.p),i={x:_,y1:c,y2:c+1,p:[]});for(var v=0;v<p.chars.length;++v){var E=p.chars[v],T=E.penState;if(null===m||!T.equals(m)){0<g.trim().length&&(s.spans.push({name:u,line:g,row:c}),g="");var y="style_cea608_"+T.foreground+"_"+T.background;T.underline&&(y+="_underline"),T.italics&&(y+="_italics"),f.hasOwnProperty(y)||(f[y]=JSON.parse(JSON.stringify(T))),m=T,u=y}g+=E.uchar}0<g.trim().length&&s.spans.push({name:u,line:g,row:c}),a=!0,o=_}else a=!1,o=-1,i&&(i.p.push(s),s={start:t,end:n,spans:[]},i.y2=c,i.name="region_"+i.x+"_"+i.y1+"_"+i.y2,!1===l.hasOwnProperty(i.name)?(d.push(i),l[i.name]=i):l[i.name].p.contat(i.p),i=null)}i&&(i.p.push(s),i.y2=c+1,i.name="region_"+i.x+"_"+i.y1+"_"+i.y2,!1===l.hasOwnProperty(i.name)?(d.push(i),l[i.name]=i):l[i.name].p.contat(i.p),i=null);var A,b=[];for(c=0;c<d.length;++c){var I=d[c],S="sub_cea608_"+G++,R=document.createElement("div");R.id=S;var w="left: "+3.125*(A=I).x+"%; top: "+6.66*A.y1+"%; width: "+(100-3.125*A.x)+"%; height: "+6.66*Math.max(A.y2-1-A.y1,1)+"%; align-items: flex-start; overflow: visible; -webkit-writing-mode: horizontal-tb;";R.style.cssText="position: absolute; margin: 0; display: flex; box-sizing: border-box; pointer-events: none;"+w;var D=document.createElement("div");D.className="paragraph bodyStyle",D.style.cssText=q(e);var N=document.createElement("div");N.className="cueUniWrapper",N.style.cssText="unicode-bidi: normal; direction: ltr;";for(var M=0;M<I.p.length;++M){var O=I.p[M],C=0;for(h=0;h<O.spans.length;++h){var P=O.spans[h];if(0<P.line.length){if(0!==h&&C!=P.row){var L=document.createElement("br");L.className="lineBreak",N.appendChild(L)}var x=!1;C===P.row&&(x=!0),C=P.row;var F=f[P.name],U=document.createElement("span");U.className="spanPadding "+P.name+" customSpanColor",U.style.cssText=q(e,F),0!==h&&x?h===O.spans.length-1?U.textContent=P.line.replace(/\s+$/g,""):U.textContent=P.line:1<O.spans.length&&h<O.spans.length-1&&P.row===O.spans[h+1].row?U.textContent=P.line.replace(/^\s+/g,""):U.textContent=P.line.trim(),N.appendChild(U)}}}D.appendChild(N),R.appendChild(D);var B={bodyStyle:["%",90]};for(var k in f)f.hasOwnProperty(k)&&(B[k]=["%",90]);b.push({type:"html",start:t,end:n,cueHTMLElement:R,cueID:S,cellResolution:[32,15],isFromCEA608:!0,fontSize:B,lineHeight:{},linePadding:{}})}return b}}}o.__dashjs_factory_name="EmbeddedTextHtmlRender",n.default=a.default.getSingletonFactory(o),t.exports=n.default},{48:48}],147:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var _=r(e(107)),v=r(e(47)),E=r(e(55)),i=r(e(48)),T=r(e(161)),y=r(e(103)),A=r(e(149)),b=r(e(173)),I=r(e(52)),S="NotFragmentedTextBufferController";function a(e){e=e||{};var n=this.context,r=(0,v.default)(n).getInstance(),i=(0,A.default)(n).getInstance(),a=e.errHandler,o=e.type,s=e.mimeType,u=e.streamProcessor,l=void 0,t=void 0,f=void 0,d=void 0,c=void 0,h=void 0;function p(e){d=e}function g(e){if(e.sender.getStreamProcessor()===u&&!e.error){var t=u.getStreamInfo(),n=e.sender.getCurrentRepresentation();h.extract(t?t.id:null,n?n.id:null)||r.trigger(E.default.TIMED_TEXT_REQUESTED,{index:0,sender:e.sender})}}function m(e){e.fragmentModel===u.getFragmentModel()&&e.chunk.bytes&&(h.save(e.chunk),c.append(e.chunk),r.trigger(E.default.STREAM_COMPLETED,{request:e.request,fragmentModel:e.fragmentModel}))}return l={getBufferControllerType:function(){return S},initialize:function(e){p(e),h=(0,T.default)(n).getInstance()},createBuffer:function(t){try{if(c=(0,y.default)(n).create(d,t),!f){var e=c.getBuffer();e.hasOwnProperty(_.default.INITIALIZE)&&e.initialize(s,u),f=!0}return c}catch(e){if(t&&(t.isText||-1!==t.codec.indexOf('codecs="stpp')||-1!==t.codec.indexOf('codecs="wvtt')))try{c=i.getTextSourceBuffer()}catch(e){a.error(new b.default(I.default.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,I.default.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+o+" : "+e.message))}else a.error(new b.default(I.default.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,I.default.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+o))}},getType:function(){return o},getStreamProcessor:function(){return u},setSeekStartTime:function(){},getBuffer:function(){return c},getBufferLevel:function(){return 0},setMediaSource:p,getMediaSource:function(){return d},getIsBufferingCompleted:function(){return t},getIsPruningInProgress:function(){return!1},dischargePreBuffer:function(){},switchInitData:function(e,t){h.extract(e,t)||r.trigger(E.default.TIMED_TEXT_REQUESTED,{index:0,sender:l})},getRangeAt:function(){return null},reset:function(e){r.off(E.default.DATA_UPDATE_COMPLETED,g,l),r.off(E.default.INIT_FRAGMENT_LOADED,m,l),!e&&c&&(c.abort(),c.reset(),c=null)},updateTimestampOffset:function(e){c.timestampOffset===e||isNaN(e)||(c.timestampOffset=e)}},d=null,t=f=!1,r.on(E.default.DATA_UPDATE_COMPLETED,g,l),r.on(E.default.INIT_FRAGMENT_LOADED,m,l),l}a.__dashjs_factory_name=S,n.default=i.default.getClassFactory(a),t.exports=n.default},{103:103,107:107,149:149,161:161,173:173,47:47,48:48,52:52,55:55}],148:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var a=r(e(107)),i=r(e(48)),o=r(e(112)),s=r(e(147));function u(e){e=e||{};var t,n=this.context,r=void 0;function i(){return r.getBuffer()}return t={getBufferControllerType:function(){return r.getBufferControllerType()},initialize:function(e,t){return r.initialize(e,t)},createBuffer:function(e){return r.createBuffer(e)},getType:function(){return r.getType()},getStreamProcessor:function(){r.getStreamProcessor()},setSeekStartTime:function(e){r.setSeekStartTime(e)},getBuffer:i,setBuffer:function(e){r.setBuffer(e)},getBufferLevel:function(){return r.getBufferLevel()},setMediaSource:function(e){r.setMediaSource(e)},getMediaSource:function(){return r.getMediaSource()},getIsBufferingCompleted:function(){return r.getIsBufferingCompleted()},getIsPruningInProgress:function(){return r.getIsPruningInProgress()},dischargePreBuffer:function(){return r.dischargePreBuffer()},switchInitData:function(e,t){r.switchInitData(e,t)},getRangeAt:function(e){return r.getRangeAt(e)},reset:function(e){r.reset(e)},updateTimestampOffset:function(e){var t=i();t.timestampOffset===e||isNaN(e)||(t.timestampOffset=e)}},r=e.type===a.default.FRAGMENTED_TEXT?(0,o.default)(n).create({type:e.type,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,manifestModel:e.manifestModel,errHandler:e.errHandler,streamController:e.streamController,mediaController:e.mediaController,adapter:e.adapter,textController:e.textController,abrController:e.abrController,playbackController:e.playbackController,streamProcessor:e.streamProcessor,settings:e.settings}):(0,s.default)(n).create({type:e.type,mimeType:e.mimeType,errHandler:e.errHandler,streamProcessor:e.streamProcessor}),t}u.__dashjs_factory_name="TextBufferController",n.default=i.default.getClassFactory(u),t.exports=n.default},{107:107,112:112,147:147,48:48}],149:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var S=r(e(107)),i=r(e(48)),R=r(e(150)),w=r(e(151)),D=r(e(169)),N=r(e(167)),M=r(e(47)),O=r(e(55)),C=e(166);function a(){var e=this.context,t=void 0,h=void 0,n=void 0,r=void 0,i=void 0,p=void 0,a=void 0,g=void 0,m=void 0,o=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,_=void 0,c=void 0,v=void 0;function E(e){void 0===v&&null!==e.fromStreamInfo&&(v=this.getCurrentTrackIdx())}function T(){void 0===v&&(v=this.getCurrentTrackIdx())}function y(){void 0!==v&&(this.setTextTrack(v),v=void 0)}function A(e){var n=this,t=e.tracks,r=e.index;t.some(function(e,t){if(e.lang===l)return n.setTextTrack(t),r=t,!0}),d||this.setTextTrack(-1),f=r,u.trigger(O.default.TEXT_TRACKS_ADDED,{enabled:b(),index:r,tracks:t})}function b(){var e=!0;return _&&!c&&(e=!1),e}function I(){_=!1}return t={setConfig:function(e){e&&(e.errHandler&&(n=e.errHandler),e.adapter&&(r=e.adapter),e.manifestModel&&(i=e.manifestModel),e.mediaController&&(p=e.mediaController),e.videoModel&&(a=e.videoModel),e.streamController&&(g=e.streamController),e.textTracks&&(m=e.textTracks),e.vttParser&&(o=e.vttParser),e.ttmlParser&&(s=e.ttmlParser),h.setConfig({errHandler:n,adapter:r,manifestModel:i,mediaController:p,videoModel:a,streamController:g,textTracks:m,vttParser:o,ttmlParser:s}))},getTextSourceBuffer:function(){return h},getAllTracksAreDisabled:function(){return _},addEmbeddedTrack:function(e){h.addEmbeddedTrack(e)},getTextDefaultLanguage:function(){return l},setTextDefaultLanguage:function(e){(0,C.checkParameterType)(e,"string"),l=e},setTextDefaultEnabled:function(e){(0,C.checkParameterType)(e,"boolean"),(d=e)||this.setTextTrack(-1)},getTextDefaultEnabled:function(){return d},enableText:function(e){(0,C.checkParameterType)(e,"boolean"),b()!==e&&(e&&this.setTextTrack(f),e||(f=this.getCurrentTrackIdx(),this.setTextTrack(-1)))},isTextEnabled:b,setTextTrack:function(e){var t=h.getConfig(),n=t.fragmentModel,r=t.fragmentedTracks,i=t.videoModel,a=void 0,o=void 0;_=-1===e;var s=m.getCurrentTrackIdx();if(s!==e){m.setModeForTrackIdx(s,S.default.TEXT_HIDDEN),m.setCurrentTrackIdx(e),m.setModeForTrackIdx(e,S.default.TEXT_SHOWING);var u=m.getCurrentTrackInfo();if(u&&u.isFragmented&&!u.isEmbedded)for(var l=0;l<r.length;l++){var f=r[l];if(u.lang===f.lang&&u.index===f.index&&(f.id?u.id===f.id:u.id===f.index))if(f!==p.getCurrentTrackFor(S.default.FRAGMENTED_TEXT,g.getActiveStreamInfo()))n.abortRequests(),n.removeExecutedRequestsBeforeTime(),h.remove(),m.deleteCuesFromTrackIdx(s),p.setTrack(f),h.setCurrentFragmentedTrackIdx(l);else if(-1===s){for(var d=g.getActiveStreamProcessors(),c=0;c<d.length;c++)if(d[c].getType()===S.default.FRAGMENTED_TEXT){o=d[c];break}o.setIndexHandlerTime(i.getTime()),o.getScheduleController().start()}}else if(u&&!u.isFragmented){for(d=g.getActiveStreamProcessors(),l=0;l<d.length;l++)if(d[l].getType()===S.default.TEXT){a=(o=d[l]).getMediaInfoArr();break}if(o&&a)for(l=0;l<a.length;l++)if(a[l].index===u.index&&a[l].lang===u.lang){o.selectMediaInfo(a[l]);break}}}},getCurrentTrackIdx:function(){return m.getCurrentTrackIdx()},enableForcedTextStreaming:function(e){(0,C.checkParameterType)(e,"boolean"),c=e},reset:function(){I(),h.resetEmbedded(),h.reset()}},f=-1,c=!(d=!(l="")),m=(0,w.default)(e).getInstance(),o=(0,D.default)(e).getInstance(),s=(0,N.default)(e).getInstance(),h=(0,R.default)(e).getInstance(),u=(0,M.default)(e).getInstance(),m.initialize(),u.on(O.default.TEXT_TRACKS_QUEUE_INITIALIZED,A,t),u.on(O.default.PERIOD_SWITCH_STARTED,E,t),u.on(O.default.STREAM_COMPLETED,T,t),u.on(O.default.PERIOD_SWITCH_COMPLETED,y,t),I(),t}a.__dashjs_factory_name="TextController",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,150:150,151:151,166:166,167:167,169:169,47:47,48:48,55:55}],150:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var ae=r(e(107)),oe=e(189),_=r(e(181)),v=r(e(155)),E=r(e(157)),i=r(e(48)),T=r(e(46)),y=r(e(151)),A=r(e(146)),se=r(e(8)),ue=r(e(2)),b=r(e(47)),I=r(e(55)),le=r(e(173)),fe=r(e(52));function a(){var a=this.context,n=(0,b.default)(a).getInstance(),r=!1,o=void 0,B=void 0,k=void 0,G=void 0,s=void 0,j=void 0,u=void 0,q=void 0,i=void 0,l=void 0,f=void 0,H=void 0,V=void 0,Y=void 0,z=void 0,d=void 0,W=void 0,c=void 0,K=void 0,X=void 0,Q=void 0,Z=void 0,$=void 0,J=void 0,ee=void 0,te=void 0,ne=void 0;function e(){z=NaN,K=V=null,Y=!(d=[])}function t(){e(),f=[],q=null}function h(e){var t=e.chunk;t.mediaInfo.embeddedCaptions&&m(t.bytes,t)}function p(){Q=[],(H=(0,y.default)(a).getInstance()).setConfig({videoModel:W}),H.initialize(),k=(0,v.default)(a).getInstance(),ee=[],J=[],r=!($=X=null),te=(Z=0,A.default)(a).getInstance();var e=c.getActiveStreamProcessors();for(var t in e)if("video"===e[t].getType()){ne=e[t].getRepresentationInfo().MSETimeOffset;break}n.on(I.default.VIDEO_CHUNK_RECEIVED,h,this)}function g(e){X=e}function re(e,t){var n,r,i=new _.default,a={subtitle:"subtitles",caption:"captions"};i.captionData=e,i.lang=t.lang,i.labels=t.labels,i.id=t.id?t.id:t.index,i.index=t.index,i.isTTML=(n=!1,t.codec&&0<=t.codec.search(ae.default.STPP)&&(n=!0),t.mimeType&&0<=t.mimeType.search(ae.default.TTML)&&(n=!0),n),i.defaultTrack=function(e){var t=!1;1<Q.length&&e.isEmbedded?t=e.id&&e.id===ae.default.CC1:1===Q.length?e.id&&"string"==typeof e.id&&"CC"===e.id.substring(0,2)&&(t=!0):0===Q.length&&(t=e.index===f[0].index);return t}(t),i.isFragmented=!s.getIsTextTrack(t.mimeType),i.isEmbedded=!!t.isEmbedded,i.kind=r=(r=0<t.roles.length?a[t.roles[0]]:a.caption)===a.caption||r===a.subtitle?r:a.caption,i.roles=t.roles,i.accessibility=t.accessibility;var o=(f?f.length:0)+Q.length;H.addTextTrack(i,o)}function m(e,t){var n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=void 0,l=t.mediaInfo,f=l.type,d=l.mimeType,c=l.codec||d;if(c){if(f===ae.default.FRAGMENTED_TEXT)if(Y||"InitializationSegment"!==t.segmentType){if(!Y)return;if(r=(s=k.getSamplesInfo(e)).sampleList,null===K&&0<r.length&&(K=r[0].cts-t.start*z),0<=c.search(ae.default.STPP))for(q=null!==q?q:ie(c),i=0;i<r.length;i++){var h=(A=r[i]).cts,p=h-K;this.buffered.add(p/z,(p+A.duration)/z);var g=new DataView(e,A.offset,A.subSizes[0]);u=se.default.Utils.dataViewToString(g,ae.default.UTF8);var m=[],_=A.offset+A.subSizes[0];for(a=1;a<A.subSizes.length;a++){var v=new Uint8Array(e,_,A.subSizes[a]),E=String.fromCharCode.apply(null,v);m.push(E),_+=A.subSizes[a]}try{var T=j.getValue().ttmlTimeIsRelative?h/z:0;n=q.parse(u,T,h/z,(h+A.duration)/z,m),H.addCaptions(X,K/z,n)}catch(e){V.removeExecutedRequestsBeforeTime(),this.remove(),B.error("TTML parser error: "+e.message)}}else{var y=[];for(i=0;i<r.length;i++){var A;(A=r[i]).cts-=K,this.buffered.add(A.cts/z,(A.cts+A.duration)/z);var b=e.slice(A.offset,A.offset+A.size),I=se.default.parseBuffer(b);for(a=0;a<I.boxes.length;a++){var S=I.boxes[a];if(B.debug("VTT box1: "+S.type),"vtte"!==S.type&&"vttc"===S.type)for(B.debug("VTT vttc boxes.length = "+S.boxes.length),o=0;o<S.boxes.length;o++){var R=S.boxes[o];if(B.debug("VTT box2: "+R.type),"payl"===R.type){var w=R.cue_text;B.debug("VTT cue_text = "+w);var D=A.cts/z,N=(A.cts+A.duration)/z;y.push({start:D,end:N,data:w,styles:{}}),B.debug("VTT "+D+"-"+N+" : "+w)}}}}0<y.length&&H.addCaptions(X,0,y)}}else Y=!0,z=k.getMediaTimescaleFromMoov(e);else if(f===ae.default.TEXT){g=new DataView(e,0,e.byteLength);u=se.default.Utils.dataViewToString(g,ae.default.UTF8);try{n=ie(c).parse(u,0),H.addCaptions(H.getCurrentTrackIdx(),0,n)}catch(e){G.error(new le.default(fe.default.TIMED_TEXT_ERROR_ID_PARSE_CODE,fe.default.TIMED_TEXT_ERROR_MESSAGE_PARSE+e.message,u))}}else if(f===ae.default.VIDEO)if(t.segmentType===oe.HTTPRequest.INIT_SEGMENT_TYPE){if(0===Z)for(Z=k.getMediaTimescaleFromMoov(e),i=0;i<Q.length;i++)re(null,Q[i])}else{if(0===Z)return void B.warn("CEA-608: No timescale for embeddedTextTrack yet");var M=function(e,i){return function(e,t,n){var r=null;r=W.getTTMLRenderingDiv()?te.createHTMLCaptionsFromScreen(W.getElement(),e,t,n):[{start:e,end:t,data:n.getDisplayText(),styles:{}}],r&&H.addCaptions(i,0,r)}},O=(s=k.getSamplesInfo(e)).lastSequenceNumber;if(!ee[0]&&!ee[1]){var C=void 0,P=void 0;for(i=0;i<Q.length;i++){if(Q[i].id===ae.default.CC1?(0,P=H.getTrackIdxForId(ae.default.CC1)):Q[i].id===ae.default.CC3&&(1,P=H.getTrackIdxForId(ae.default.CC3)),-1===P)return void B.warn("CEA-608: data before track is ready.");C=M(0,P),ee[i]=new ue.default.Cea608Parser(i+1,{newCue:C},null)}}if(Z&&-1==J.indexOf(O)){if(null!==$&&O!==$+s.numSequences)for(i=0;i<ee.length;i++)ee[i]&&ee[i].reset();for(var L=function(e,t){if(0===t.length)return null;for(var n={splits:[],fields:[[],[]]},r=new DataView(e),i=0;i<t.length;i++)for(var a=t[i],o=ue.default.findCea608Nalus(r,a.offset,a.size),s=null,u=0,l=0;l<o.length;l++)for(var f=ue.default.extractCea608DataFromRange(r,o[l]),d=0;d<2;d++)0<f[d].length&&(a.cts!==s?u=0:u+=1,n.fields[d].push([a.cts+ne*Z,f[d],u]),s=a.cts);return n.fields.forEach(function(e){e.sort(function(e,t){return e[0]===t[0]?e[2]-t[2]:e[0]-t[0]})}),n}(e,s.sampleList),x=0;x<ee.length;x++){var F=L.fields[x],U=ee[x];if(U)for(i=0;i<F.length;i++)U.addData(F[i][0]/Z,F[i][1])}$=O,J.push(O)}}}else B.error("No text type defined")}function ie(e){var t=void 0;return 0<=e.search(ae.default.VTT)?t=i:(0<=e.search(ae.default.TTML)||0<=e.search(ae.default.STPP))&&(t=l),t}return o={initialize:function(e,t){r||p(),H.setConfig({videoModel:W}),H.initialize(),k=k||(0,v.default)(a).getInstance(),function(e,t){var n=!s.getIsTextTrack(e);if(t){if(f=f.concat(t.getMediaInfoArr()),n){V=t.getFragmentModel(),o.buffered=(0,E.default)(a).create(),d=u.getTracksFor(ae.default.FRAGMENTED_TEXT,t.getStreamInfo());for(var r=u.getCurrentTrackFor(ae.default.FRAGMENTED_TEXT,t.getStreamInfo()),i=0;i<d.length;i++)if(d[i]===r){g(i);break}}for(i=0;i<f.length;i++)re(null,f[i])}}(e,t)},append:m,abort:function(){H.deleteAllTextTracks(),e(),k=null,f=[]},addEmbeddedTrack:function(e){if(r||p(),e)if(e.id===ae.default.CC1||e.id===ae.default.CC3){for(var t=0;t<Q.length;t++)if(Q[t].id===e.id)return;Q.push(e)}else B.warn("Embedded track "+e.id+" not supported!")},resetEmbedded:function(){n.off(I.default.VIDEO_CHUNK_RECEIVED,h,this),H&&H.deleteAllTextTracks(),r=!1,Q=[],ee=[null,null],J=[],$=null},setConfig:function(e){e&&(e.errHandler&&(G=e.errHandler),e.adapter&&(s=e.adapter),e.manifestModel&&(j=e.manifestModel),e.mediaController&&(u=e.mediaController),e.videoModel&&(W=e.videoModel),e.streamController&&(c=e.streamController),e.textTracks&&(H=e.textTracks),e.vttParser&&(i=e.vttParser),e.ttmlParser&&(l=e.ttmlParser))},getConfig:function(){return{fragmentModel:V,fragmentedTracks:d,videoModel:W}},setCurrentFragmentedTrackIdx:g,remove:function(e,t){void 0===e&&e===t&&(e=this.buffered.start(0),t=this.buffered.end(this.buffered.length-1)),this.buffered.remove(e,t)},reset:function(){t(),H=W=c=null}},B=(0,T.default)(a).getInstance().getLogger(o),t(),o}a.__dashjs_factory_name="TextSourceBuffer",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,146:146,151:151,155:155,157:157,173:173,181:181,189:189,2:2,46:46,47:47,48:48,52:52,55:55,8:8}],151:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var E=r(e(107)),s=r(e(47)),M=r(e(55)),i=r(e(48)),O=r(e(46)),C=e(15),P=e(166);function a(){var e=this.context,T=(0,s.default)(e).getInstance(),t=void 0,u=void 0,l=void 0,y=void 0,f=void 0,d=void 0,c=void 0,A=void 0,b=void 0,I=void 0,S=void 0,R=void 0,r=void 0,w=void 0,D=void 0,n=void 0,N=void 0;function h(e){var t=f[e].kind,n=void 0!==f[e].id?f[e].id:f[e].lang,r=f[e].lang,i=f[e].isTTML,a=f[e].isEmbedded,o=y.addTextTrack(t,n,r);return o.isEmbedded=a,o.isTTML=i,o}function i(e,t){var n=y.getClientWidth(),r=y.getClientHeight(),i=y.getVideoWidth(),a=y.getVideoHeight(),o=y.getVideoRelativeOffsetTop(),s=y.getVideoRelativeOffsetLeft(),u=i/a,l=!1;e.isFromCEA608&&(u=3.5/3,l=!0);var f=function(e,t,n,r,i,a){var o=0,s=0;n/r<e/t?o=(s=t)/r*n:s=(o=e)/n*r;var u,l,f=0,d=0;return i<o/s?f=(d=s)*i:d=(f=o)/i,u=(e-f)/2,l=(t-d)/2,a?{x:u+.1*f,y:l+.1*d,w:.8*f,h:.8*d}:{x:u,y:l,w:f,h:d}}.call(this,n,r,i,a,u,l),d=f.w,c=f.h,h=f.x,p=f.y;if(d!=I||c!=S||h!=A||p!=b||t){if(A=h+s,b=p+o,I=d,S=c,R){var g=R.style;g&&(g.left=A+"px",g.top=b+"px",g.width=I+"px",g.height=S+"px",g.zIndex=w&&document[w]||D?N:null,T.trigger(M.default.CAPTION_CONTAINER_RESIZE,{}))}var m=e.activeCues;if(m)for(var _=m.length,v=0;v<_;++v){var E=m[v];E.scaleCue(E)}}}function p(e){var t=I,n=S,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0;if(e.cellResolution){var u=[t/e.cellResolution[0],n/e.cellResolution[1]];if(e.linePadding)for(r in e.linePadding)if(e.linePadding.hasOwnProperty(r)){i=(e.linePadding[r]*u[0]).toString();for(var l=document.getElementsByClassName("spanPadding"),f=0;f<l.length;f++)l[f].style.cssText=l[f].style.cssText.replace(/(padding-left\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+i),l[f].style.cssText=l[f].style.cssText.replace(/(padding-right\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+i)}if(e.fontSize){for(r in e.fontSize)if(e.fontSize.hasOwnProperty(r)){"%"===e.fontSize[r][0]?a=e.fontSize[r][1]/100:"c"===e.fontSize[r][0]&&(a=e.fontSize[r][1]),i=(a*u[1]).toString(),s="defaultFontSize"!==r?document.getElementsByClassName(r):document.getElementsByClassName("paragraph");for(var d=0;d<s.length;d++)s[d].style.cssText=s[d].style.cssText.replace(/(font-size\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+i)}if(e.lineHeight)for(r in e.lineHeight)if(e.lineHeight.hasOwnProperty(r)){"%"===e.lineHeight[r][0]?o=e.lineHeight[r][1]/100:"c"===e.fontSize[r][0]&&(o=e.lineHeight[r][1]),i=(o*u[1]).toString(),s=document.getElementsByClassName(r);for(var c=0;c<s.length;c++)s[c].style.cssText=s[c].style.cssText.replace(/(line-height\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+i)}}}if(e.isd){var h=document.getElementById(e.cueID);h&&R.removeChild(h),g(e)}}function g(a){if(R){var e=document.createElement("div");R.appendChild(e),n=(0,C.renderHTML)(a.isd,e,function(e){var t=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/,n=/^#(.*)$/;if(t.test(e)){var r=t.exec(e),i=parseInt(r[4],10)-1;return"data:image/png;base64,"+btoa(a.images[i])}if(n.test(e)){i=(r=n.exec(e))[1];return"data:image/png;base64,"+a.embeddedImages[i]}return null},R.clientHeight,R.clientWidth,!1,function(e){u.info("renderCaption :",e)},n,!0),e.id=a.cueID,T.trigger(M.default.CAPTION_RENDERED,{captionDiv:e,currentTrackIdx:c})}}function m(e){return 0<=e&&f[e]?y.getTextTrack(f[e].kind,f[e].id,f[e].lang,f[e].isTTML,f[e].isEmbedded):null}function _(e){if(e!==c){var t=m(c=e);(function(e){o.call(this),e&&"html"===e.renderingType?function(){var e=document.getElementById("native-cue-style");if(e)return;(e=document.createElement("style")).id="native-cue-style",document.head.appendChild(e);var t=e.sheet,n=y.getElement();try{n&&(n.id?t.insertRule("#"+n.id+"::cue {background: transparent}",0):0!==n.classList.length?t.insertRule("."+n.className+"::cue {background: transparent}",0):t.insertRule("video::cue {background: transparent}",0))}catch(e){u.info(""+e.message)}}.call(this):a.call(this)}).call(this,t),r&&(clearInterval(r),r=null),t&&"html"===t.renderingType&&(i.call(this,t,!0),r=setInterval(i.bind(this,t),500))}}function v(e){if(e.cues)for(var t=e.cues,n=t.length-1;0<=n;n--)e.removeCue(t[n])}function a(){var e=document.getElementById("native-cue-style");e&&document.head.removeChild(e)}function o(){if(R)for(;R.firstChild;)R.removeChild(R.firstChild)}return t={initialize:function(){"undefined"!=typeof window&&"undefined"!=typeof navigator&&(l=window.VTTCue||window.TextTrackCue,f=[],d=[],D=!(c=-1),N=2147483647,n=r=R=null,void(S=I=b=A=0)!==document.fullscreenElement?w="fullscreenElement":void 0!==document.webkitIsFullScreen?w="webkitIsFullScreen":document.msFullscreenElement?w="msFullscreenElement":document.mozFullScreen&&(w="mozFullScreen"))},setDisplayCConTop:function(e){(0,P.checkParameterType)(e,"boolean"),D=e,R&&!document[w]&&(R.style.zIndex=e?N:null)},addTextTrack:function(e,t){if(f.length!==t){if(f.push(e),f.length===t){f.sort(function(e,t){return e.index-t.index}),R=y.getTTMLRenderingDiv();for(var n=-1,r=0;r<f.length;r++){var i=h.call(this,r);d.push(i),f[r].defaultTrack&&(i.default=!0,n=r);var a=m(r);a&&(a.mode=E.default.TEXT_SHOWING,R&&(f[r].isTTML||f[r].isEmbedded)?a.renderingType="html":a.renderingType="default"),this.addCaptions(r,0,f[r].captionData),T.trigger(M.default.TEXT_TRACK_ADDED)}if(_.call(this,n),0<=n)for(var o=0;o<f.length;o++){var s=m(o);s&&(s.mode=o===n?E.default.TEXT_SHOWING:E.default.TEXT_HIDDEN)}T.trigger(M.default.TEXT_TRACKS_QUEUE_INITIALIZED,{index:c,tracks:f})}}else u.error("Trying to add too many tracks.")},addCaptions:function(e,t,n){var r=m(e),i=this;if(r&&Array.isArray(n)&&0!==n.length)for(var a=0;a<n.length;a++){var o=void 0,s=n[a];r.cellResolution=s.cellResolution,r.isFromCEA608=s.isFromCEA608,"html"===s.type&&R?((o=new l(s.start-t,s.end-t,"")).cueHTMLElement=s.cueHTMLElement,o.isd=s.isd,o.images=s.images,o.embeddedImages=s.embeddedImages,o.cueID=s.cueID,o.scaleCue=p.bind(i),o.cellResolution=s.cellResolution,o.lineHeight=s.lineHeight,o.linePadding=s.linePadding,o.fontSize=s.fontSize,R.style.left=A+"px",R.style.top=b+"px",R.style.width=I+"px",R.style.height=S+"px",o.onenter=function(){r.mode===E.default.TEXT_SHOWING&&(this.isd?(g(this),u.debug("Cue enter id:"+this.cueID)):(R.appendChild(this.cueHTMLElement),p.call(i,this),T.trigger(M.default.CAPTION_RENDERED,{captionDiv:this.cueHTMLElement,currentTrackIdx:c})))},o.onexit=function(){if(R)for(var e=R.childNodes,t=0;t<e.length;++t)e[t].id===this.cueID&&(u.debug("Cue exit id:"+e[t].id),R.removeChild(e[t]),--t)}):s.data&&(o=new l(s.start-t,s.end-t,s.data),s.styles&&(void 0!==s.styles.align&&"align"in o&&(o.align=s.styles.align),void 0!==s.styles.line&&"line"in o&&(o.line=s.styles.line),void 0!==s.styles.position&&"position"in o&&(o.position=s.styles.position),void 0!==s.styles.size&&"size"in o&&(o.size=s.styles.size)),o.onenter=function(){r.mode===E.default.TEXT_SHOWING&&T.trigger(M.default.CAPTION_RENDERED,{currentTrackIdx:c})});try{o?r.addCue(o):u.error("impossible to display subtitles.")}catch(e){throw v(r),r.addCue(o),e}}},getCurrentTrackIdx:function(){return c},setCurrentTrackIdx:_,getTrackIdxForId:function(e){for(var t=-1,n=0;n<f.length;n++)if(f[n].id===e){t=n;break}return t},getCurrentTrackInfo:function(){return f[c]},setModeForTrackIdx:function(e,t){var n=m(e);n&&n.mode!==t&&(n.mode=t)},deleteCuesFromTrackIdx:function(e){var t=m(e);t&&v(t)},deleteAllTextTracks:function(){for(var e=d?d.length:0,t=0;t<e;t++){var n=m(t);n&&(v.call(this,n),n.mode="disabled")}d=[],f=[],r&&(clearInterval(r),r=null),c=-1,o.call(this)},deleteTextTrack:function(e){y.removeChild(d[e]),d.splice(e,1)},setConfig:function(e){e&&e.videoModel&&(y=e.videoModel)}},u=(0,O.default)(e).getInstance().getLogger(t),t}a.__dashjs_factory_name="TextTracks",n.default=i.default.getSingletonFactory(a),t.exports=n.default},{107:107,15:15,166:166,46:46,47:47,48:48,55:55}],152:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(107)),u=r(e(182)),o=r(e(153)),l=r(e(172)),f=e(80);function s(e){var t,n=this.context,s=void 0;function r(){s&&s.reset()}return t={get:function(e,t){var n=s.getCurrentTrack();if(!n||n.segmentDuration<=0||null==e)return null;var r=Math.floor(e/n.segmentDuration),i=e%n.segmentDuration,a=Math.floor(i*n.tilesHor*n.tilesVert/n.segmentDuration),o=new u.default;return o.width=Math.floor(n.widthPerTile),o.height=Math.floor(n.heightPerTile),o.x=Math.floor(a%n.tilesHor)*n.widthPerTile,o.y=Math.floor(a/n.tilesHor)*n.heightPerTile,"readThumbnail"in n?n.readThumbnail(e,function(e){o.url=e,t&&t(o)}):(o.url=function(e,t){var n=t+e.startNumber,r=(0,f.replaceTokenForTemplate)(e.templateUrl,"Number",n);return r=(0,f.replaceTokenForTemplate)(r,"Time",(n-1)*e.segmentDuration),r=(0,f.replaceTokenForTemplate)(r,"Bandwidth",e.bandwidth),(0,f.unescapeDollarsInTemplate)(r)}(n,r),t&&t(o),o)},setTrackByIndex:function(e){s.setTrackByIndex(e)},getCurrentTrackIndex:function(){return s.getCurrentTrackIndex()},getBitrateList:function(){var e=s.getTracks(),n=0;return e.map(function(e){var t=new l.default;return t.mediaType=a.default.IMAGE,t.qualityIndex=n++,t.bitrate=e.bitrate,t.width=e.width,t.height=e.height,t})},reset:r},r(),s=(0,o.default)(n).create({adapter:e.adapter,baseURLController:e.baseURLController,stream:e.stream,timelineConverter:e.timelineConverter}),t}s.__dashjs_factory_name="ThumbnailController",n.default=i.default.getClassFactory(s),t.exports=n.default},{107:107,153:153,172:172,182:182,48:48,80:80}],153:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var E=r(e(107)),T=r(e(62)),i=r(e(48)),y=r(e(183)),A=r(e(168)),b=e(80),I=r(e(60)),S=r(e(155)),R=r(e(131)),w=["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"];function a(e){var t,n=this.context,u=e.adapter,s=e.baseURLController,r=e.stream,l=e.timelineConverter,i=e.dashMetrics,a=e.mediaPlayerModel,o=e.errHandler,f=(0,A.default)(n).getInstance(),d=void 0,c=void 0,h=void 0,p=void 0,g=void 0;function m(){v(),h=(0,R.default)(n).create({}),g=(0,S.default)(n).getInstance(),(p=(0,I.default)(n).getInstance()).setConfig({baseURLController:s,dashMetrics:i,mediaPlayerModel:a,errHandler:o}),function(){if(!r||!u)return;var e=r.getStreamInfo();if(!e)return;var t=u.getMediaInfoForType(e,E.default.IMAGE);if(!t)return;var n=u.getVoRepresentations(t);n&&0<n.length&&n.forEach(function(e){e.segmentInfoType===T.default.SEGMENT_TEMPLATE&&0<e.segmentDuration&&e.media&&_(e),e.segmentInfoType===T.default.SEGMENT_BASE&&_(e,!0)});0<d.length&&(d.sort(function(e,t){return e.bitrate-t.bitrate}),c=d.length-1)}()}function _(e,t){var n=new y.default;n.id=e.id,n.bitrate=e.bandwidth,n.width=e.width,n.height=e.height,n.tilesHor=1,n.tilesVert=1,e.essentialProperties&&e.essentialProperties.forEach(function(e){if(0<=w.indexOf(e.schemeIdUri)&&e.value){var t=e.value.split("x");2!==t.length||isNaN(t[0])||isNaN(t[1])||(n.tilesHor=parseInt(t[0],10),n.tilesVert=parseInt(t[1],10))}}),t?p.loadSegments(e,E.default.IMAGE,e.indexRange,{},function(e,r){var o=[];e=function(e,t){var n,r=[],i=0,a=void 0,o=void 0,s=void 0;for(a=0,n=e.length;a<n;a++)o=e[a],(s=(0,b.getTimeBasedSegment)(l,u.getIsDynamic(),t,o.startTime,o.duration,o.timescale,o.media,o.mediaRange,i))&&(r.push(s),s=null,i++);return r}(e,r),n.segmentDuration=e[0].duration,n.readThumbnail=function(t,a){var n=null;o.some(function(e){if(e.start<=t&&e.end>t)return n=e.url,!0}),n?a(n):e.some(function(i){if(i.mediaStartTime<=t&&i.mediaStartTime+i.duration>t){var e=s.resolve(r.path);return h.load({method:"get",url:e.url,request:{range:i.mediaRange,responseType:"arraybuffer"},onload:function(e){var t=g.getSamplesInfo(e.target.response),n=new Blob([e.target.response.slice(t.sampleList[0].offset,t.sampleList[0].offset+t.sampleList[0].size)],{type:"image/jpeg"}),r=window.URL.createObjectURL(n);o.push({start:i.mediaStartTime,end:i.mediaStartTime+i.duration,url:r}),a&&a(r)}}),!0}})}}):(n.startNumber=e.startNumber,n.segmentDuration=e.segmentDuration,n.timescale=e.timescale,n.templateUrl=function(e){var t=f.isRelative(e.media)?f.resolve(e.media,s.resolve(e.path).url):e.media;return t?(0,b.replaceIDForTemplate)(t,e.id):""}(e)),0<n.tilesHor&&0<n.tilesVert&&(n.widthPerTile=n.width/n.tilesHor,n.heightPerTile=n.height/n.tilesVert,d.push(n))}function v(){d=[],c=-1}return t={initialize:m,getTracks:function(){return d},reset:v,setTrackByIndex:function(e){d&&0!==d.length&&(e>=d.length&&(e=d.length-1),c=e)},getCurrentTrack:function(){return c<0?null:d[c]},getCurrentTrackIndex:function(){return c}},m(),t}n.THUMBNAILS_SCHEME_ID_URIS=w,a.__dashjs_factory_name="ThumbnailTracks",n.default=i.default.getClassFactory(a)},{107:107,131:131,155:155,168:168,183:183,48:48,60:60,62:62,80:80}],154:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var u=r(e(52)),l=r(e(47)),f=r(e(55)),d=r(e(111)),c=r(e(171)),h=r(e(170)),i=r(e(48)),p=r(e(173)),g=e(166);function a(){var e,t=this.context,i=(0,l.default)(t).getInstance(),n=void 0,a=void 0,r=void 0,o=void 0;function s(){n.reset()}return e={chooseSelector:function(e){(0,g.checkParameterType)(e,"boolean"),o=e?r:a},select:function(e){if(e){var t=e.baseUrls,n=e.selectedIdx;if(!isNaN(n))return t[n];var r=o.select(t);return r?(e.selectedIdx=t.indexOf(r),r):(i.trigger(f.default.URL_RESOLUTION_FAILED,{error:new p.default(u.default.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE,u.default.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE)}),void(o===a&&s()))}},reset:s,setConfig:function(e){e.selector&&(o=e.selector)}},n=(0,d.default)(t).create({updateEventName:f.default.SERVICE_LOCATION_BLACKLIST_CHANGED,addBlacklistEventName:f.default.SERVICE_LOCATION_BLACKLIST_ADD}),a=(0,h.default)(t).create({blacklistController:n}),r=(0,c.default)(t).create({blacklistController:n}),o=a,e}a.__dashjs_factory_name="BaseURLSelector",n.default=i.default.getClassFactory(a),t.exports=n.default},{111:111,166:166,170:170,171:171,173:173,47:47,48:48,52:52,55:55}],155:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(46)),o=r(e(162)),a=r(e(48)),s=r(e(8)),c=r(e(178));function u(){var a=void 0,e=void 0,r=this.context;function P(e){if(!e)return null;void 0===e.fileStart&&(e.fileStart=0);var t=s.default.parseBuffer(e),n=(0,o.default)(r).create();return n.setData(t),n}return e={parse:P,findLastTopIsoBoxCompleted:function(e,t,n){if(void 0===n&&(n=0),!t||n+8>=t.byteLength)return new c.default(0,!1);for(var r,i,a,o,s=t instanceof ArrayBuffer?new Uint8Array(t):t,u=void 0,l=0;n<s.byteLength;){var f=(a=s)[(o=n)+3]>>>0|a[o+2]<<8>>>0|a[o+1]<<16>>>0|a[o]<<24>>>0,d=(r=s,i=n+4,String.fromCharCode(r[i++])+String.fromCharCode(r[i++])+String.fromCharCode(r[i++])+String.fromCharCode(r[i]));if(0==f)break;n+f<=s.byteLength&&(0<=e.indexOf(d)?u=new c.default(n,!0,f):l=n+f),n+=f}return u||new c.default(l,!1)},getMediaTimescaleFromMoov:function(e){var t=P(e),n=t?t.getBox("mdhd"):void 0;return n?n.timescale:NaN},getSamplesInfo:function(e){if(!e||0===e.byteLength)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};var t,n,r=P(e),i=r.getBoxes("moof"),a=r.getBoxes("mfhd"),o=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,c=void 0,h=void 0,p=void 0,g=void 0,m=void 0,_=void 0,v=void 0,E=void 0;n=r.getBoxes("moof").length,t=a[a.length-1].sequence_number,f=[];var T=-1,y=-1;for(g=s=0;g<i.length;g++){var A=i[g],b=A.getChildBoxes("traf");for(h=0;h<b.length;h++){var I=b[h],S=I.getChildBox("tfhd"),R=I.getChildBox("tfdt");l=R.baseMediaDecodeTime;var w=I.getChildBoxes("trun"),D=I.getChildBoxes("subs");for(p=0;p<w.length;p++){var N=w[p];for(s=N.sample_count,v=(S.base_data_offset||0)+(N.data_offset||0),c=0;c<s;c++){o=void 0!==(d=N.samples[c]).sample_duration?d.sample_duration:S.default_sample_duration,u=void 0!==d.sample_size?d.sample_size:S.default_sample_size;var M={dts:l,cts:l+(void 0!==d.sample_composition_time_offset?d.sample_composition_time_offset:0),duration:o,offset:A.offset+v,size:u,subSizes:[u]};if(D)for(m=0;m<D.length;m++){var O=D[m];if(T<O.entry_count-1&&y<c&&(T++,y+=O.entries[T].sample_delta),c==y){M.subSizes=[];var C=O.entries[T];for(_=0;_<C.subsample_count;_++)M.subSizes.push(C.subsamples[_].subsample_size)}}f.push(M),v+=u,l+=o}}E=l-R.baseMediaDecodeTime}}return{sampleList:f,lastSequenceNumber:t,totalDuration:E,numSequences:n}},findInitRange:function(e){var t=null,n=P(e);if(!n)return t;var r=n.getBox("ftyp"),i=n.getBox("moov");return a.debug("Searching for initialization."),i&&i.isComplete&&(t=(r?r.offset:i.offset)+"-"+(i.offset+i.size-1),a.debug("Found the initialization. Range: "+t)),t}},a=(0,i.default)(r).getInstance().getLogger(e),e}u.__dashjs_factory_name="BoxParser",n.default=a.default.getSingletonFactory(u),t.exports=n.default},{162:162,178:178,46:46,48:48,8:8}],156:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){var e,t=void 0;return t=!(e={supportsMediaSource:function(){var e="WebKitMediaSource"in window,t="MediaSource"in window;return e||t},supportsEncryptedMedia:function(){return t},supportsCodec:function(e){return!!("MediaSource"in window&&MediaSource.isTypeSupported(e))||!!("WebKitMediaSource"in window&&WebKitMediaSource.isTypeSupported(e))},setEncryptedMediaSupported:function(e){t=e}}),e}o.__dashjs_factory_name="Capabilities",n.default=a.default.getSingletonFactory(o),t.exports=n.default},{48:48}],157:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r},o=e(166);function s(){return{customTimeRangeArray:[],length:0,add:function(e,t){var n=0;for(n=0;n<this.customTimeRangeArray.length&&e>this.customTimeRangeArray[n].start;n++);for(this.customTimeRangeArray.splice(n,0,{start:e,end:t}),n=0;n<this.customTimeRangeArray.length-1;n++)this.mergeRanges(n,n+1)&&n--;this.length=this.customTimeRangeArray.length},clear:function(){this.customTimeRangeArray=[],this.length=0},remove:function(e,t){for(var n=0;n<this.customTimeRangeArray.length;n++)if(e<=this.customTimeRangeArray[n].start&&t>=this.customTimeRangeArray[n].end)this.customTimeRangeArray.splice(n,1),n--;else{if(e>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end){this.customTimeRangeArray.splice(n+1,0,{start:t,end:this.customTimeRangeArray[n].end}),this.customTimeRangeArray[n].end=e;break}e>this.customTimeRangeArray[n].start&&e<this.customTimeRangeArray[n].end?this.customTimeRangeArray[n].end=e:t>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end&&(this.customTimeRangeArray[n].start=t)}this.length=this.customTimeRangeArray.length},mergeRanges:function(e,t){var n=this.customTimeRangeArray[e],r=this.customTimeRangeArray[t];return n.start<=r.start&&r.start<=n.end&&n.end<=r.end?(n.end=r.end,this.customTimeRangeArray.splice(t,1),!0):r.start<=n.start&&n.start<=r.end&&r.end<=n.end?(n.start=r.start,this.customTimeRangeArray.splice(t,1),!0):r.start<=n.start&&n.start<=r.end&&n.end<=r.end?(this.customTimeRangeArray.splice(e,1),!0):n.start<=r.start&&r.start<=n.end&&r.end<=n.end&&(this.customTimeRangeArray.splice(t,1),!0)},start:function(e){return(0,o.checkInteger)(e),e>=this.customTimeRangeArray.length||e<0?NaN:this.customTimeRangeArray[e].start},end:function(e){return(0,o.checkInteger)(e),e>=this.customTimeRangeArray.length||e<0?NaN:this.customTimeRangeArray[e].end}}}s.__dashjs_factory_name="CustomTimeRanges",n.default=a.default.getClassFactory(s),t.exports=n.default},{166:166,48:48}],158:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),f=r(e(46)),d=r(e(107)),c=[{oldKey:"dashjs_vbitrate",newKey:"dashjs_video_bitrate"},{oldKey:"dashjs_abitrate",newKey:"dashjs_audio_bitrate"},{oldKey:"dashjs_vsettings",newKey:"dashjs_video_settings"},{oldKey:"dashjs_asettings",newKey:"dashjs_audio_settings"}],h="dashjs_?_bitrate",p="dashjs_?_settings",g="localStorage",m="lastBitrate",_="lastMediaSettings";function a(e){e=e||{};var t=this.context,o=e.settings,n=void 0,s=void 0,r=void 0;function i(e){if(void 0!==r)return r;r=!1;var t=void 0;try{"undefined"!=typeof window&&(t=window[e])}catch(e){return s.warn("DOMStorage access denied: "+e.message),r}if(!t||e!==g&&"sessionStorage"!==e)return r;try{t.setItem("1","1"),t.removeItem("1"),r=!0}catch(e){s.warn("DOMStorage is supported, but cannot be used: "+e.message)}return r}function a(){return 6e5*Math.round((new Date).getTime()/6e5)}function u(e,t){return i(e)&&o.get().streaming[t+"CachingInfo"].enabled}function l(){if(!o)throw new Error(d.default.MISSING_CONFIG_ERROR)}return n={getSavedBitrateSettings:function(e){var t=NaN;if(l(),u(g,m)){var n=h.replace(/\?/,e);try{var r=JSON.parse(localStorage.getItem(n))||{},i=(new Date).getTime()-parseInt(r.timestamp,10)>=o.get().streaming.lastBitrateCachingInfo.ttl||!1,a=parseFloat(r.bitrate);isNaN(a)||i?i&&localStorage.removeItem(n):(t=a,s.debug("Last saved bitrate for "+e+" was "+a))}catch(e){return null}}return t},setSavedBitrateSettings:function(e,t){if(u(g,m)&&t){var n=h.replace(/\?/,e);try{localStorage.setItem(n,JSON.stringify({bitrate:t.toFixed(3),timestamp:a()}))}catch(e){s.error(e.message)}}},getSavedMediaSettings:function(e){var t=null;if(l(),u(g,_)){var n=p.replace(/\?/,e);try{var r=JSON.parse(localStorage.getItem(n))||{},i=(new Date).getTime()-parseInt(r.timestamp,10)>=o.get().streaming.lastMediaSettingsCachingInfo.ttl||!1;t=r.settings,i&&(localStorage.removeItem(n),t=null)}catch(e){return null}}return t},setSavedMediaSettings:function(e,t){if(u(g,_)){var n=p.replace(/\?/,e);try{localStorage.setItem(n,JSON.stringify({settings:t,timestamp:a()}))}catch(e){s.error(e.message)}}}},s=(0,f.default)(t).getInstance().getLogger(n),i(g)&&c.forEach(function(e){var t=localStorage.getItem(e.oldKey);if(t){localStorage.removeItem(e.oldKey);try{localStorage.setItem(e.newKey,t)}catch(e){s.error(e.message)}}}),n}a.__dashjs_factory_name="DOMStorage";var o=i.default.getSingletonFactory(a);n.default=o,t.exports=n.default},{107:107,46:46,48:48}],159:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){e=e||{};var n=void 0,s=new DataView(e.data),u=0;function i(e,t){var n=!0,r=0;if(void 0===t&&(t=!1),r=16777215<e.tag?(s.getUint32(u)!==e.tag&&(n=!1),4):65535<e.tag?(256*s.getUint16(u)+s.getUint8(u+2)!==e.tag&&(n=!1),3):255<e.tag?(s.getUint16(u)!==e.tag&&(n=!1),2):(s.getUint8(u)!==e.tag&&(n=!1),1),!n&&e.required&&!t)throw new Error("required tag not found");return n&&(u+=r),n}function a(e){var t=1,n=128,r=-1,i=0,a=s.getUint8(u),o=0;for(o=0;o<8;o+=1){if((a&n)===n){i=void 0===e?a&~n:a,r=o;break}n>>=1}for(o=0;o<r;o+=1,t+=1)i=i<<8|255&s.getUint8(u+t);return u+=t,i}return n={getPos:function(){return u},setPos:function(e){u=e},consumeTag:i,consumeTagAndSize:function(e,t){var n=i(e,t);return n&&a(),n},parseTag:function(e){var t;return i(e),t=a(),n[e.parse](t)},skipOverElement:function(e,t){var n=i(e,t),r=void 0;return n&&(r=a(),u+=r),n},getMatroskaCodedNum:a,getMatroskaFloat:function(e){var t=void 0;switch(e){case 4:t=s.getFloat32(u),u+=4;break;case 8:t=s.getFloat64(u),u+=8}return t},getMatroskaUint:function(e){for(var t=0,n=0;n<e;n+=1)t<<=8,t|=255&s.getUint8(u+n);return u+=e,t},moreData:function(){return u<s.byteLength}}}o.__dashjs_factory_name="EBMLParser",n.default=a.default.getClassFactory(o),t.exports=n.default},{48:48}],160:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(47)),a=r(e(55)),o=r(e(48));function s(){var e=this.context,t=(0,i.default)(e).getInstance();return{error:function(e){t.trigger(a.default.ERROR,{error:e})}}}s.__dashjs_factory_name="ErrorHandler",n.default=o.default.getSingletonFactory(s),t.exports=n.default},{47:47,48:48,55:55}],161:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){var r={};return{save:function(e){var t=e.streamId,n=e.representationId;r[t]=r[t]||{},r[t][n]=e},extract:function(e,t){return r&&r[e]&&r[e][t]?r[e][t]:null},reset:function(){r={}}}}o.__dashjs_factory_name="InitCache",n.default=a.default.getSingletonFactory(o),t.exports=n.default},{48:48}],162:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(177)),a=r(e(48));function o(){var o=void 0;function t(e){var t=[];if(!e||!o||"function"!=typeof o.fetchAll)return t;for(var n=o.fetchAll(e),r=void 0,i=0,a=n.length;i<a;i++)(r=s(n[i]))&&t.push(r);return t}function s(e){if(!e)return null;var t=new i.default(e);return e.hasOwnProperty("_incomplete")&&(t.isComplete=!e._incomplete),t}return{getBox:function(e){return e&&o&&o.boxes&&0!==o.boxes.length&&"function"==typeof o.fetch?s(o.fetch(e)):null},getBoxes:t,setData:function(e){o=e},getLastBox:function(){if(!o||!o.boxes||!o.boxes.length)return null;var e=t(o.boxes[o.boxes.length-1].type);return 0<e.length?e[e.length-1]:null}}}o.__dashjs_factory_name="IsoFile",n.default=a.default.getClassFactory(o),t.exports=n.default},{177:177,48:48}],163:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(107));function o(e){var r=(e=e||{}).timelineConverter,i=e.streamProcessor;return{getLiveEdge:function(){!function(){if(!(r&&r.hasOwnProperty("getExpectedLiveEdge")&&i&&i.hasOwnProperty("getRepresentationInfo")))throw new Error(a.default.MISSING_CONFIG_ERROR)}();var e=i.getRepresentationInfo(),t=e.DVRWindow?e.DVRWindow.end:0,n=t;return e.useCalculatedLiveEdgeTime&&(n=r.getExpectedLiveEdge(),r.setClientTimeOffset(n-t)),n},reset:function(){i=r=null}}}o.__dashjs_factory_name="LiveEdgeFinder",n.default=i.default.getClassFactory(o),t.exports=n.default},{107:107,48:48}],164:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(10));function o(){return{areEqual:function(e,t){return(0,a.default)(e,t)}}}o.__dashjs_factory_name="ObjectUtils",n.default=i.default.getSingletonFactory(o),t.exports=n.default},{10:10,48:48}],165:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){return{modifyRequestURL:function(e){return e},modifyRequestHeader:function(e){return e}}}o.__dashjs_factory_name="RequestModifier",n.default=a.default.getSingletonFactory(o),t.exports=n.default},{48:48}],166:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkParameterType=function(e,t){if(typeof e!==t)throw a.default.BAD_ARGUMENT_ERROR},n.checkInteger=function(e){if(null===e||isNaN(e)||e%1!=0)throw a.default.BAD_ARGUMENT_ERROR+" : argument is not an integer"},n.checkRange=function(e,t,n){if(e<t||n<e)throw a.default.BAD_ARGUMENT_ERROR+" : argument out of range"},n.checkIsVideoOrAudioType=function(e){if("string"!=typeof e||e!==a.default.AUDIO&&e!==a.default.VIDEO)throw a.default.BAD_ARGUMENT_ERROR};var r,i=e(107),a=(r=i)&&r.__esModule?r:{default:r}},{107:107}],167:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(46)),o=r(e(47)),A=r(e(55)),b=e(15);function s(){var e=this.context,E=(0,o.default)(e).getInstance(),t=void 0,T=void 0,y=0;return t={parse:function(e,t,n,r,i){var a="",o=[],s=void 0,u=void 0,l=void 0,f={},d={},c="",h="",p={onOpenTag:function(e,t,n){if("image"===t&&"http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt"===e){if(!n[" imagetype"]||"PNG"!==n[" imagetype"].value)return void T.warn("smpte-tt imagetype != PNG. Discarded");c=n["http://www.w3.org/XML/1998/namespace id"].value}},onCloseTag:function(){c&&(d[c]=h.trim()),c=h=""},onText:function(e){c&&(h+=e)}};if(!e)throw a="no ttml data to parse",new Error(a);f.data=e,E.trigger(A.default.TTML_TO_PARSE,f);var g=(0,b.fromXML)(f.data,function(e){a=e},p);E.trigger(A.default.TTML_PARSED,{ttmlString:f.data,ttmlDoc:g});var m,_=g.getMediaTimeEvents();for(l=0;l<_.length;l++){var v=(0,b.generateISD)(g,_[l],function(e){a=e});v.contents.some(function(e){return e.contents.length})&&(s=_[l]+t<n?n:_[l]+t)<(u=_[l+1]+t>r?r:_[l+1]+t)&&o.push({start:s,end:u,type:"html",cueID:(void 0,m="cue_TTML_"+y,y++,m),isd:v,images:i,embeddedImages:d})}if(""!==a)throw T.error(a),new Error(a);return o}},T=(0,a.default)(e).getInstance().getLogger(t),t}s.__dashjs_factory_name="TTMLParser",n.default=i.default.getSingletonFactory(s),t.exports=n.default},{15:15,46:46,47:47,48:48,55:55}],168:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(){function e(t,e){try{return new window.URL(t,e).toString()}catch(e){return t}}function t(e,t){var n=s;if(!t)return e;if(!f(e))return e;d(e)&&(n=u),c(e)&&(n=l);var r=n(t),i="/"!==r.charAt(r.length-1)&&"/"!==e.charAt(0)?"/":"";return[r,e].join(i)}var n=void 0,r=/^[a-z][a-z0-9+\-.]*:/i,i=/^https?:\/\//i,a=/^https:\/\//i,o=/^([a-z][a-z0-9+\-.]*:\/\/[^\/]+)\/?/i;function s(e){var t=e.indexOf("/"),n=e.lastIndexOf("/");return-1!==t?n===t+1?e:(-1!==e.indexOf("?")&&(e=e.substring(0,e.indexOf("?"))),e.substring(0,n+1)):""}function u(e){var t=e.match(o);return t?t[1]:""}function l(e){var t=e.match(r);return t?t[0]:""}function f(e){return!r.test(e)}function d(e){return f(e)&&"/"===e.charAt(0)}function c(e){return 0===e.indexOf("//")}return function(){try{new window.URL("x","http://y");n=e}catch(e){}finally{n=n||t}}(),{parseBaseUrl:s,parseOrigin:u,parseScheme:l,isRelative:f,isPathAbsolute:d,isSchemeRelative:c,isHTTPURL:function(e){return i.test(e)},isHTTPS:function(e){return a.test(e)},resolve:function(e,t){return n(e,t)}}}o.__dashjs_factory_name="URLUtils",n.default=a.default.getSingletonFactory(o),t.exports=n.default},{48:48}],169:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(48)),a=r(e(46));function o(){var e=this.context,t=void 0,c=void 0,h=void 0,p=void 0,g=void 0,r=void 0;function m(e){var t=e.split(":"),n=t.length-1;return e=60*parseInt(t[n-1],10)+parseFloat(t[n]),2==n&&(e+=3600*parseInt(t[0],10)),e}function _(e){var t=e.split(p),n=t[1].split(r);return n.shift(),t[1]=n[0],n.shift(),{cuePoints:t,styles:function(e){var n={};return e.forEach(function(e){if(1<e.split(/:/).length){var t=e.split(/:/)[1];t&&-1!=t.search(/%/)&&(t=parseInt(t.replace(/%/,""),10)),(e.match(/align/)||e.match(/A/))&&(n.align=t),(e.match(/line/)||e.match(/L/))&&(n.line=t),(e.match(/position/)||e.match(/P/))&&(n.position=t),(e.match(/size/)||e.match(/S/))&&(n.size=t)}}),n}(n)}}function v(e,t){for(var n,r=t,i="",a="";""!==e[r]&&r<e.length;)r++;if(1<(n=r-t))for(var o=0;o<n;o++){if((a=e[t+o]).match(p)){i="";break}i+=a,o!==n-1&&(i+="\n")}else(a=e[t]).match(p)||(i=a);return i}return t={parse:function(e){var t,n=[],r=void 0;if(!e)return n;t=(e=e.split(h)).length,r=-1;for(var i=0;i<t;i++){var a=e[i];if(0<a.length&&"WEBVTT"!==a&&a.match(p)){var o=_(a),s=o.cuePoints,u=o.styles,l=v(e,i+1),f=m(s[0].replace(g,"")),d=m(s[1].replace(g,""));!isNaN(f)&&!isNaN(d)&&r<=f&&f<d?""!==l?(r=f,n.push({start:f,end:d,data:l,styles:u})):c.error("Skipping cue due to empty/malformed cue text"):c.error("Skipping cue due to incorrect cue timing")}}return n}},c=(0,a.default)(e).getInstance().getLogger(t),h=/(?:\r\n|\r|\n)/gm,p=/-->/,g=/(^[\s]+|[\s]+$)/g,r=/\s\b/g,t}o.__dashjs_factory_name="VTTParser",n.default=i.default.getSingletonFactory(o),t.exports=n.default},{46:46,48:48}],170:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){var r=(e=e||{}).blacklistController;return{select:function(e){var n=0,t=void 0;return e&&e.some(function(e,t){return n=t,!r.contains(e.serviceLocation)})&&(t=e[n]),t}}}o.__dashjs_factory_name="BasicSelector",n.default=a.default.getClassFactory(o),t.exports=n.default},{48:48}],171:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(48),a=(r=i)&&r.__esModule?r:{default:r};function o(e){var n=(e=e||{}).blacklistController;return{select:function(e){return e&&function(e){var t=0,n=[],r=0,i=void 0,a=void 0;if((a=e.sort(function(e,t){var n=e.dvb_priority-t.dvb_priority;return isNaN(n)?0:n}).filter(function(e,t,n){return!t||n[0].dvb_priority&&e.dvb_priority&&n[0].dvb_priority===e.dvb_priority})).length)return 1<a.length&&(a.forEach(function(e){t+=e.dvb_weight,n.push(t)}),i=Math.floor(Math.random()*(t-1)),n.every(function(e,t){return r=t,!(i<e)})),a[r]}(function(e){var t=[];return e.filter(function(e){return!n.contains(e.serviceLocation)||(e.dvb_priority&&t.push(e.dvb_priority),!1)}).filter(function(e){return!t.length||!e.dvb_priority||-1===t.indexOf(e.dvb_priority)})}(e))}}}o.__dashjs_factory_name="DVBSelector",n.default=a.default.getClassFactory(o),t.exports=n.default},{48:48}],172:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mediaType=null,this.bitrate=null,this.width=null,this.height=null,this.scanType=null,this.qualityIndex=NaN},t.exports=n.default},{}],173:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=t||null,this.message=n||null,this.data=r||null},t.exports=n.default},{}],174:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.streamId=null,this.mediaInfo=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representationId=null,this.endFragment=null},t.exports=n.default},{}],175:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.action=r.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer",this.representationId=null}r.ACTION_DOWNLOAD="download",r.ACTION_COMPLETE="complete",n.default=r,t.exports=n.default},{}],176:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(175),a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,((r=i)&&r.__esModule?r:{default:r}).default),o);function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.url=e||null,this.checkForExistenceOnly=!0}n.default=a,t.exports=n.default},{175:175}],177:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0});var i=(function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}(a,[{key:"getChildBox",value:function(e){for(var t=0;t<this.boxes.length;t++)if(this.boxes[t].type===e)return this.boxes[t]}},{key:"getChildBoxes",value:function(e){for(var t=[],n=0;n<this.boxes.length;n++)this.boxes[n].type===e&&t.push(this.boxes[n]);return t}}]),a);function a(e){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.offset=e._offset,this.type=e.type,this.size=e.size,this.boxes=[],e.boxes)for(var t=0;t<e.boxes.length;t++)this.boxes.push(new a(e.boxes[t]));switch(this.isComplete=!0,e.type){case"sidx":if(this.timescale=e.timescale,this.earliest_presentation_time=e.earliest_presentation_time,this.first_offset=e.first_offset,this.references=e.references,e.references){this.references=[];for(t=0;t<e.references.length;t++){var n={reference_type:e.references[t].reference_type,referenced_size:e.references[t].referenced_size,subsegment_duration:e.references[t].subsegment_duration};this.references.push(n)}}break;case"emsg":this.id=e.id,this.value=e.value,this.timescale=e.timescale,this.scheme_id_uri=e.scheme_id_uri,this.presentation_time_delta=1===e.version?e.presentation_time:e.presentation_time_delta,this.event_duration=e.event_duration,this.message_data=e.message_data;break;case"mdhd":this.timescale=e.timescale;break;case"mfhd":this.sequence_number=e.sequence_number;break;case"subs":this.entry_count=e.entry_count,this.entries=e.entries;break;case"tfhd":this.base_data_offset=e.base_data_offset,this.sample_description_index=e.sample_description_index,this.default_sample_duration=e.default_sample_duration,this.default_sample_size=e.default_sample_size,this.default_sample_flags=e.default_sample_flags,this.flags=e.flags;break;case"tfdt":this.version=e.version,this.baseMediaDecodeTime=e.baseMediaDecodeTime,this.flags=e.flags;break;case"trun":if(this.sample_count=e.sample_count,this.first_sample_flags=e.first_sample_flags,this.data_offset=e.data_offset,this.flags=e.flags,this.samples=e.samples,e.samples){this.samples=[];t=0;for(var r=e.samples.length;t<r;t++){var i={sample_size:e.samples[t].sample_size,sample_duration:e.samples[t].sample_duration,sample_composition_time_offset:e.samples[t].sample_composition_time_offset};this.samples.push(i)}}}}n.default=i,t.exports=n.default},{}],178:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastCompletedOffset=t,this.found=n,this.size=r},t.exports=n.default},{}],179:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TcpList=[],this.HttpList=[],this.RepSwitchList=[],this.BufferLevel=[],this.BufferState=[],this.PlayList=[],this.DroppedFrames=[],this.SchedulingInfo=[],this.DVRInfo=[],this.ManifestUpdate=[],this.RequestsQueue=null,this.DVBErrors=[]},t.exports=n.default},{}],180:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function r(e){return e&&e.__esModule?e:{default:e}}var i=r(e(107)),a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,r(e(175)).default),o);function o(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}}(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.url=e||null,this.type=t||null,this.mediaType=i.default.STREAM,this.responseType=""}n.default=a,t.exports=n.default},{107:107,175:175}],181:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.captionData=null,this.label=null,this.lang=null,this.defaultTrack=!1,this.kind=null,this.isFragmented=!1,this.isEmbedded=!1},t.exports=n.default},{}],182:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=null,this.width=null,this.height=null,this.x=null,this.y=null},t.exports=n.default},{}],183:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.bitrate=0,this.width=0,this.height=0,this.tilesHor=0,this.tilesVert=0,this.widthPerTile=0,this.heightPerTile=0,this.startNumber=0,this.segmentDuration=0,this.timescale=0,this.templateUrl="",this.id=""},t.exports=n.default},{}],184:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null,this.r=null},t.exports=n.default},{}],185:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=null,this.level=null},t.exports=n.default},{}],186:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(112),a=(r=i)&&r.__esModule?r:{default:r};n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.target=null,this.state=a.default.BUFFER_EMPTY},t.exports=n.default},{112:112}],187:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.time=null,this.range=null,this.manifestInfo=null},t.exports=n.default},{}],188:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.time=null,this.droppedFrames=null},t.exports=n.default},{}],189:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});function i(){r(this,i),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this._stream=null,this._tfinish=null,this._mediaduration=null,this._responseHeaders=null,this._serviceLocation=null}i.GET="GET",i.HEAD="HEAD",i.MPD_TYPE="MPD",i.XLINK_EXPANSION_TYPE="XLinkExpansion",i.INIT_SEGMENT_TYPE="InitializationSegment",i.INDEX_SEGMENT_TYPE="IndexSegment",i.MEDIA_SEGMENT_TYPE="MediaSegment",i.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",i.OTHER_TYPE="other",n.HTTPRequest=i,n.HTTPRequestTrace=function e(){r(this,e),this.s=null,this.d=null,this.b=[]}},{}],190:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});n.ManifestUpdate=function e(){r(this,e),this.mediaType=null,this.type=null,this.requestTime=null,this.fetchTime=null,this.availabilityStartTime=null,this.presentationStartTime=0,this.clientTimeOffset=0,this.currentTime=null,this.buffered=null,this.latency=0,this.streamInfo=[],this.representationInfo=[]},n.ManifestUpdateStreamInfo=function e(){r(this,e),this.id=null,this.index=null,this.start=null,this.duration=null},n.ManifestUpdateRepresentationInfo=function e(){r(this,e),this.id=null,this.index=null,this.mediaType=null,this.streamIndex=null,this.presentationTimeOffset=null,this.startNumber=null,this.fragmentInfoType=null}},{}],191:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});function i(){r(this,i),this.start=null,this.mstart=null,this.starttype=null,this.trace=[]}i.INITIAL_PLAYOUT_START_REASON="initial_playout",i.SEEK_START_REASON="seek",i.RESUME_FROM_PAUSE_START_REASON="resume",i.METRICS_COLLECTION_START_REASON="metrics_collection_start";function a(){r(this,a),this.representationid=null,this.subreplevel=null,this.start=null,this.mstart=null,this.duration=null,this.playbackspeed=null,this.stopreason=null}a.REPRESENTATION_SWITCH_STOP_REASON="representation_switch",a.REBUFFERING_REASON="rebuffering",a.USER_REQUEST_STOP_REASON="user_request",a.END_OF_PERIOD_STOP_REASON="end_of_period",a.END_OF_CONTENT_STOP_REASON="end_of_content",a.METRICS_COLLECTION_STOP_REASON="metrics_collection_end",a.FAILURE_STOP_REASON="failure",n.PlayList=i,n.PlayListTrace=a},{}],192:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=null,this.mt=null,this.to=null,this.lto=null},t.exports=n.default},{}],193:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadingRequests=[],this.executedRequests=[]},t.exports=n.default},{}],194:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mediaType=null,this.t=null,this.type=null,this.startTime=null,this.availabilityStartTime=null,this.duration=null,this.quality=null,this.range=null,this.state=null},t.exports=n.default},{}]},{},[4]);
3
 
4
 
5
  /*jslint browser: true, for: true */
49
  desktopSafari = brwsr.safari && support.dataload, // exclude IEMobile
50
  mediaPlayer,
51
  videoTag,
52
+ safariAutoplayFix = false,
53
  handleError = function (errorCode, src, url) {
54
  var errobj = {code: errorCode};
55
 
277
  videoTag = common.createElement("video", {
278
  "class": "fp-engine " + engineName + "-engine"
279
  });
 
 
 
280
 
281
  Object.keys(EVENTS).forEach(function (key) {
282
  var flow = EVENTS[key],
470
  fperr,
471
  errobj;
472
 
473
+ //if( !key.match(/^(FRAGMENT|LOG|METRIC)/) ) console.log(key);
474
+
475
  switch (key) {
476
  case "MANIFEST_LOADED":
477
  if (brwsr.chrome && videoDashConf && videoDashConf.protectionLevel) {
498
  case "PLAYBACK_NOT_ALLOWED":
499
  if (!conf.mutedAutoplay) throw new Error('Unable to autoplay');
500
  player.debug('Play errored, trying muted', e);
501
+
502
+ // In macOS Safari 13/14 we have to wait a bit
503
+ if( desktopSafari ) {
504
+ console.log('FV Player: Safari autoplay of Dash video blocked, retrying...');
505
+
506
+ // So we use this special flag
507
+ safariAutoplayFix = true;
508
+
509
+ } else {
510
+ player.mute(true, true);
511
+ videoTag.volume = 0;
512
+ player.play();
513
+ }
514
  break;
515
  case "ERROR":
516
  // TODO: handle different e.error.code values
532
  // TODO: But when you try to resume the video it still won't work, unless you do it 10 times.
533
  });
534
  }
 
535
  }
536
+ break;
537
+ // When the autoplay is not allowed on macOS Safari 13/14
538
+ // This event takes 4 seconds to arrive, but calling what's below too soon won't play the video
539
+ case "PLAYBACK_STALLED":
540
+ if( safariAutoplayFix ) {
541
+ safariAutoplayFix = false;
542
+
543
+ console.log('FV Player: Safari autoplay of Dash video recovery');
544
+ player.mute(true, true);
545
+ videoTag.autoplay = true;
546
+ player.play();
547
+
548
+ }
549
+ break;
550
  }
551
 
552
  if (expose) {
599
  }
600
  },
601
 
602
+ mute: function (flag) {
603
+ if (videoTag) {
604
+ // this is why we need this whole mute() function - to let it unmute the video tag properly when using with Safari 13/14
605
+ videoTag.muted = !!flag;
606
+
607
+ // it's not fair, but somehow we have to work this hard to be able to unmute the video
608
+ // not sure why it's not needed in core FP engines
609
+ if( !!flag ) videoTag.volume = 0;
610
+ else if( localStorage.volume ) videoTag.volume = localStorage.volume;
611
+ player.trigger('volume', [player, videoTag.volume]);
612
+ player.trigger('mute', [player, flag]);
613
+
614
+ }
615
+ },
616
+
617
  speed: function (val) {
618
  videoTag.playbackRate = val;
619
  // see ratechange/speed event
flowplayer/fv-flowplayer.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(e,t,n,r){for(var o,a=n.slice(),s=i(t,e),l=0,u=a.length;u>l&&(handler=a[l],"object"==typeof handler&&"function"==typeof handler.handleEvent?handler.handleEvent(s):handler.call(e,s),!s.stoppedImmediatePropagation);l++);return o=!s.stoppedPropagation,r&&o&&e.parentNode?e.parentNode.dispatchEvent(s):!s.defaultPrevented}function n(e,t){return{configurable:!0,get:e,set:t}}function r(e,t,r){var i=y(t||e,r);m(e,"textContent",n(function(){return i.get.call(this)},function(e){i.set.call(this,e)}))}function i(e,t){return e.currentTarget=t,e.eventPhase=e.target===e.currentTarget?2:3,e}function o(e,t){for(var n=e.length;n--&&e[n]!==t;);return n}function a(){if("BR"===this.tagName)return"\n";for(var e=this.firstChild,t=[];e;)8!==e.nodeType&&7!==e.nodeType&&t.push(e.textContent),e=e.nextSibling;return t.join("")}function s(e){!f&&C.test(document.readyState)&&(f=!f,document.detachEvent(d,s),e=document.createEvent("Event"),e.initEvent(p,!0,!0),document.dispatchEvent(e))}function l(e){for(var t;t=this.lastChild;)this.removeChild(t);null!=e&&this.appendChild(document.createTextNode(e))}function u(t,n){return n||(n=e.event),n.target||(n.target=n.srcElement||n.fromElement||document),n.timeStamp||(n.timeStamp=(new Date).getTime()),n}if(!document.createEvent){var c=!0,f=!1,d="onreadystatechange",p="DOMContentLoaded",h="__IE8__"+Math.random(),g=e.Object,m=g.defineProperty||function(e,t,n){e[t]=n.value},v=g.defineProperties||function(t,n){for(var r in n)if(w.call(n,r))try{m(t,r,n[r])}catch(i){e.console&&console.log(r+" failed on object:",t,i.message)}},y=g.getOwnPropertyDescriptor,w=g.prototype.hasOwnProperty,b=e.Element.prototype,I=e.Text.prototype,M=/^[a-z]+$/,C=/loaded|complete/,A={},S=document.createElement("div");r(e.HTMLCommentElement.prototype,b,"nodeValue"),r(e.HTMLScriptElement.prototype,null,"text"),r(I,null,"nodeValue"),r(e.HTMLTitleElement.prototype,null,"text"),m(e.HTMLStyleElement.prototype,"textContent",function(e){return n(function(){return e.get.call(this.styleSheet)},function(t){e.set.call(this.styleSheet,t)})}(y(e.CSSStyleSheet.prototype,"cssText"))),v(b,{textContent:{get:a,set:l},firstElementChild:{get:function(){for(var e=this.childNodes||[],t=0,n=e.length;n>t;t++)if(1==e[t].nodeType)return e[t]}},lastElementChild:{get:function(){for(var e=this.childNodes||[],t=e.length;t--;)if(1==e[t].nodeType)return e[t]}},previousElementSibling:{get:function(){for(var e=this.previousSibling;e&&1!=e.nodeType;)e=e.previousSibling;return e}},nextElementSibling:{get:function(){for(var e=this.nextSibling;e&&1!=e.nodeType;)e=e.nextSibling;return e}},childElementCount:{get:function(){for(var e=0,t=this.childNodes||[],n=t.length;n--;e+=1==t[n].nodeType);return e}},addEventListener:{value:function(e,n,r){var i,a=this,s="on"+e,l=a[h]||m(a,h,{value:{}})[h],c=l[s]||(l[s]={}),f=c.h||(c.h=[]);if(!w.call(c,"w")){if(c.w=function(e){return e[h]||t(a,u(a,e),f,!1)},!w.call(A,s))if(M.test(e))try{i=document.createEventObject(),i[h]=!0,9!=a.nodeType&&null==a.parentNode&&S.appendChild(a),a.fireEvent(s,i),A[s]=!0}catch(i){for(A[s]=!1;S.hasChildNodes();)S.removeChild(S.firstChild)}else A[s]=!1;(c.n=A[s])&&a.attachEvent(s,c.w)}o(f,n)<0&&f[r?"unshift":"push"](n)}},dispatchEvent:{value:function(e){var n,r=this,i="on"+e.type,o=r[h],a=o&&o[i],s=!!a;return e.target||(e.target=r),s?a.n?r.fireEvent(i,e):t(r,e,a.h,!0):(n=r.parentNode)?n.dispatchEvent(e):!0,!e.defaultPrevented}},removeEventListener:{value:function(e,t,n){var r=this,i="on"+e,a=r[h],s=a&&a[i],l=s&&s.h,u=l?o(l,t):-1;u>-1&&l.splice(u,1)}}}),v(I,{addEventListener:{value:b.addEventListener},dispatchEvent:{value:b.dispatchEvent},removeEventListener:{value:b.removeEventListener}}),v(e.XMLHttpRequest.prototype,{addEventListener:{value:function(e,t,n){var r=this,i="on"+e,a=r[h]||m(r,h,{value:{}})[h],s=a[i]||(a[i]={}),l=s.h||(s.h=[]);o(l,t)<0&&(r[i]||(r[i]=function(){var t=document.createEvent("Event");t.initEvent(e,!0,!0),r.dispatchEvent(t)}),l[n?"unshift":"push"](t))}},dispatchEvent:{value:function(e){var n=this,r="on"+e.type,i=n[h],o=i&&i[r],a=!!o;return a&&(o.n?n.fireEvent(r,e):t(n,e,o.h,!0))}},removeEventListener:{value:b.removeEventListener}}),v(e.Event.prototype,{bubbles:{value:!0,writable:!0},cancelable:{value:!0,writable:!0},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0,this.returnValue=!1)}},stopPropagation:{value:function(){this.stoppedPropagation=!0,this.cancelBubble=!0}},stopImmediatePropagation:{value:function(){this.stoppedImmediatePropagation=!0,this.stopPropagation()}},initEvent:{value:function(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n,this.bubbles||this.stopPropagation()}}}),v(e.HTMLDocument.prototype,{textContent:{get:function(){return 11===this.nodeType?a.call(this):null},set:function(e){11===this.nodeType&&l.call(this,e)}},addEventListener:{value:function(t,n,r){var i=this;b.addEventListener.call(i,t,n,r),c&&t===p&&!C.test(i.readyState)&&(c=!1,i.attachEvent(d,s),e==top&&function o(e){try{i.documentElement.doScroll("left"),s()}catch(t){setTimeout(o,50)}}())}},dispatchEvent:{value:b.dispatchEvent},removeEventListener:{value:b.removeEventListener},createEvent:{value:function(e){var t;if("Event"!==e)throw new Error("unsupported "+e);return t=document.createEventObject(),t.timeStamp=(new Date).getTime(),t}}}),v(e.Window.prototype,{getComputedStyle:{value:function(){function e(e){this._=e}function t(){}var n=/^(?:[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/,r=/^(top|right|bottom|left)$/,i=/\-([a-z])/g,o=function(e,t){return t.toUpperCase()};return e.prototype.getPropertyValue=function(e){var t,a,s,l=this._,u=l.style,c=l.currentStyle,f=l.runtimeStyle;return e=("float"===e?"style-float":e).replace(i,o),t=c?c[e]:u[e],n.test(t)&&!r.test(e)&&(a=u.left,s=f&&f.left,s&&(f.left=c.left),u.left="fontSize"===e?"1em":t,t=u.pixelLeft+"px",u.left=a,s&&(f.left=s)),null==t?t:t+""||"auto"},t.prototype.getPropertyValue=function(){return null},function(n,r){return r?new t(n):new e(n)}}()},addEventListener:{value:function(n,r,i){var a,s=e,l="on"+n;s[l]||(s[l]=function(e){return t(s,u(s,e),a,!1)}),a=s[l][h]||(s[l][h]=[]),o(a,r)<0&&a[i?"unshift":"push"](r)}},dispatchEvent:{value:function(t){var n=e["on"+t.type];return n?n.call(e,t)!==!1&&!t.defaultPrevented:!0}},removeEventListener:{value:function(t,n,r){var i="on"+t,a=(e[i]||g)[h],s=a?o(a,n):-1;s>-1&&a.splice(s,1)}}})}}(this),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.flowplayer=e()}}(function(){var e;return function(){function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}return e}()({1:[function(e,t,n){"use strict";var r=t.exports={},i=e("class-list"),o=window.jQuery,a=e("punycode"),s=e("computed-style");r.noop=function(){},r.identity=function(e){return e},r.removeNode=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},r.find=function(e,t){return o?o(e,t).toArray():(t=t||document,Array.prototype.map.call(t.querySelectorAll(e),function(e){return e}))},r.text=function(e,t){e["innerText"in e?"innerText":"textContent"]=t},r.findDirect=function(e,t){return r.find(e,t).filter(function(e){return e.parentNode===t})},r.hasClass=function(e,t){return"string"!=typeof e.className?!1:i(e).contains(t)},r.isSameDomain=function(e){var t=window.location,n=r.createElement("a",{href:e});return t.hostname===n.hostname&&t.protocol===n.protocol&&t.port===n.port},r.css=function(e,t,n){return"object"==typeof t?Object.keys(t).forEach(function(n){r.css(e,n,t[n])}):"undefined"!=typeof n?""===n?e?e.style.removeProperty(t):void 0:e?e.style.setProperty(t,n):void 0:e?s(e,t):void 0},r.createElement=function(e,t,n){try{var i=document.createElement(e);for(var a in t)t.hasOwnProperty(a)&&("css"===a?r.css(i,t[a]):r.attr(i,a,t[a]));return n&&(i.innerHTML=n),i}catch(s){if(!o)throw s;return o("<"+e+">"+n+"</"+e+">").attr(t)[0]}},r.toggleClass=function(e,t,n){if(e){var r=i(e);"undefined"==typeof n?r.toggle(t):n?r.add(t):n||r.remove(t)}},r.addClass=function(e,t){return r.toggleClass(e,t,!0)},r.removeClass=function(e,t){return r.toggleClass(e,t,!1)},r.append=function(e,t){return e.appendChild(t),e},r.appendTo=function(e,t){return r.append(t,e),e},r.prepend=function(e,t){e.insertBefore(t,e.firstChild)},r.insertAfter=function(e,t,n){t==r.lastChild(e)&&e.appendChild(n);var i=Array.prototype.indexOf.call(e.children,t);e.insertBefore(n,e.children[i+1])},r.html=function(e,t){e=e.length?e:[e],e.forEach(function(e){e.innerHTML=t})},r.attr=function(e,t,n){if("class"===t&&(t="className"),r.hasOwnOrPrototypeProperty(e,t))try{e[t]=n}catch(i){if(!o)throw i;o(e).attr(t,n)}else n===!1?e.removeAttribute(t):e.setAttribute(t,n);return e},r.prop=function(e,t,n){return"undefined"==typeof n?e&&e[t]:void(e[t]=n)},r.offset=function(e){var t=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight&&(t={left:100*t.left,right:100*t.right,top:100*t.top,bottom:100*t.bottom,width:100*t.width,height:100*t.height}),t},r.width=function(e,t){if(t)return e.style.width=(""+t).replace(/px$/,"")+"px";var n=r.offset(e).width;return"undefined"==typeof n?e.offsetWidth:n},r.height=function(e,t){if(t)return e.style.height=(""+t).replace(/px$/,"")+"px";var n=r.offset(e).height;return"undefined"==typeof n?e.offsetHeight:n},r.lastChild=function(e){return e.children[e.children.length-1]},r.hasParent=function(e,t){for(var n=e.parentElement;n;){if("string"!=typeof t){if(n===t)return!0}else if(r.matches(n,t))return!0;n=n.parentElement}return!1},r.createAbsoluteUrl=function(e){return r.createElement("a",{href:e}).href},r.xhrGet=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){return 4===this.readyState?this.status>=400?n():void t(this.responseText):void 0},r.open("get",e,!0),r.send()},r.pick=function(e,t){var n={};return t.forEach(function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n},r.hostname=function(e){return a.toUnicode(e||window.location.hostname)},r.browser={webkit:"WebkitAppearance"in document.documentElement.style},r.getPrototype=function(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__},r.hasOwnOrPrototypeProperty=function(e,t){for(var n=e;n;){if(Object.prototype.hasOwnProperty.call(n,t))return!0;n=r.getPrototype(n)}return!1},r.matches=function(e,t){var n=Element.prototype,r=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),r=0;n[r]&&n[r]!==t;)r++;return n[r]?!0:!1};return r.call(e,t)},function(e){function t(e){return e.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})}"undefined"!=typeof e.setAttribute&&(e.setProperty=function(e,n){return this.setAttribute(t(e),String(n))},e.getPropertyValue=function(e){return this.getAttribute(t(e))||null},e.removeProperty=function(e){var n=this.getPropertyValue(e);return this.removeAttribute(t(e)),n})}(window.CSSStyleDeclaration.prototype)},{"class-list":36,"computed-style":37,punycode:44}],2:[function(e,t,n){"use strict";var r=e("../common");t.exports=function(e,t,n,i){n=n||"opaque";var o="obj"+(""+Math.random()).slice(2,15),a='<object class="fp-engine" id="'+o+'" name="'+o+'" ',s=navigator.userAgent.indexOf("MSIE")>-1;a+=s?'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">':' data="'+e+'" type="application/x-shockwave-flash">';var l={width:"100%",height:"100%",allowscriptaccess:"always",wmode:n,quality:"high",flashvars:"",movie:e+(s?"?"+o:""),name:o};"transparent"!==n&&(l.bgcolor=i||"#333333"),Object.keys(t).forEach(function(e){l.flashvars+=e+"="+t[e]+"&"}),Object.keys(l).forEach(function(e){a+='<param name="'+e+'" value="'+l[e]+'"/>'}),a+="</object>";var u=r.createElement("div",{},a);return r.find("object",u)},window.attachEvent&&window.attachEvent("onbeforeunload",function(){window.__flash_savedUnloadHandler=window.__flash_unloadHandler=function(){}})},{"../common":1}],3:[function(e,t,n){"use strict";function r(e){return/^https?:/.test(e)}var i,o=e("../flowplayer"),a=e("../common"),s=e("./embed"),l=e("extend-object"),u=e("bean");i=function(e,t){function n(e){function t(e){return("0"+parseInt(e).toString(16)).slice(-2)}return(e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))?"#"+t(e[1])+t(e[2])+t(e[3]):void 0}function c(e){if(7===e.length)return e;var t=e.split("").slice(1);return"#"+t.map(function(e){return e+e}).join("")}function f(e){return/application\/x-mpegurl/i.test(e.type)}var d,p,h,g,m=e.conf,v=[],y={engineName:i.engineName,pick:function(t){var n=l({},function(){if(o.support.flashVideo){for(var n,r,i=0;i<t.length;i++)if(r=t[i],/mp4|flv|flash/i.test(r.type)&&(n=r),e.conf.swfHls&&/mpegurl/i.test(r.type)&&(n=r),n&&!/mp4/i.test(n.type))return n;return n}}());if(n)return!n.src||r(n.src)||e.conf.rtmp||n.rtmp||(n.src=a.createAbsoluteUrl(n.src)),n},suspendEngine:function(){g=!0},resumeEngine:function(){g=!1},load:function(i){function w(e){return e.replace(/&amp;/g,"%26").replace(/&/g,"%26").replace(/=/g,"%3D")}d=i,v.forEach(function(e){clearTimeout(e)});var b=a.findDirect("video",t)[0]||a.find(".fp-player > video",t)[0],I=i.src,M=r(I),C=function(){a.removeNode(b)},A=function(e){return e.some(function(e){return!!b.canPlayType(e.type)})};o.support.video&&a.prop(b,"autoplay")&&A(i.sources)?u.one(b,"timeupdate",C):C();var S=i.rtmp||m.rtmp;if(M||S||(I=a.createAbsoluteUrl(I)),h&&f(i)&&h.data!==a.createAbsoluteUrl(m.swfHls)&&y.unload(),h){["live","preload","loop"].forEach(function(e){i.hasOwnProperty(e)&&h.__set(e,i[e])}),Object.keys(i.flashls||{}).forEach(function(e){h.__set("hls_"+e,i.flashls[e])});var E=!1;if(!M&&S)h.__set("rtmp",S.url||S);else{var j=h.__get("rtmp");E=!!j,h.__set("rtmp",null)}h.__play(I,E||i.rtmp&&i.rtmp!==m.rtmp)}else{p="fpCallback"+(""+Math.random()).slice(3,15),I=w(I);var D={hostname:m.embedded?a.hostname(m.hostname):a.hostname(location.hostname),url:I,callback:p};t.getAttribute("data-origin")&&(D.origin=t.getAttribute("data-origin")),["proxy","key","autoplay","preload","subscribe","live","loop","debug","splash","poster","rtmpt"].forEach(function(e){m.hasOwnProperty(e)&&(D[e]=m[e]),i.hasOwnProperty(e)&&(D[e]=i[e]),(m.rtmp||{}).hasOwnProperty(e)&&(D[e]=(m.rtmp||{})[e]),(i.rtmp||{}).hasOwnProperty(e)&&(D[e]=(i.rtmp||{})[e])}),m.splash&&(D.autoplay=!0),m.rtmp&&(D.rtmp=m.rtmp.url||m.rtmp),i.rtmp&&(D.rtmp=i.rtmp.url||i.rtmp),Object.keys(i.flashls||{}).forEach(function(e){var t=i.flashls[e];D["hls_"+e]=t});var N="undefined"!=typeof i.hlsQualities?i.hlsQualities:m.hlsQualities;"undefined"!=typeof N&&(D.hlsQualities=N?encodeURIComponent(JSON.stringify(N)):N),void 0!==m.bufferTime&&(D.bufferTime=m.bufferTime),void 0!==m.bufferTimeMax&&(D.bufferTimeMax=m.bufferTimeMax),M&&delete D.rtmp,D.rtmp&&(D.rtmp=w(D.rtmp));var x,L=m.bgcolor||a.css(t,"background-color")||"";0===L.indexOf("rgb")?x=n(L):0===L.indexOf("#")&&(x=c(L)),D.initialVolume=e.volumeLevel;var T=f(i)?m.swfHls:m.swf;h=s(T,D,m.wmode,x)[0];var Z=a.find(".fp-player",t)[0];a.prepend(Z,h),e.off("quality.flashengine").on("quality.flashengine",function(t,n,r){var i="undefined"!=typeof e.video.hlsQualities?e.video.hlsQualities:e.conf.hlsQualities;if(i)try{h.__quality(r)}catch(o){e.debug("Error changing quality in flash engine",o)}}),setTimeout(function(){try{if(!h.PercentLoaded())return e.trigger("error",[e,{code:7,url:m.swf}])}catch(t){}},5e3),v.push(setTimeout(function(){"undefined"==typeof h.PercentLoaded&&e.trigger("flashdisabled",[e])},15e3)),v.push(setTimeout(function(){"undefined"==typeof h.PercentLoaded&&e.trigger("flashdisabled",[e,!1])},500)),e.off("resume.flashhack").on("resume.flashhack",function(){var t=setTimeout(function(){var t=h.__status().time,n=setTimeout(function(){e.playing&&!e.loading&&h.__status().time===t&&e.trigger("flashdisabled",[e])},400);v.push(n),e.one("seek.flashhack pause.flashhack load.flashack",function(){clearTimeout(n)})},800);v.push(t),e.one("progress",function(){clearTimeout(t)})}),h.pollInterval=setInterval(function(){if(h&&!g){var t=h.__status?h.__status():null;t&&((e.conf.live||e.live||i.live)&&(i.seekOffset=t.seekOffset,i.duration=t.duration+t.seekOffset),e.playing&&t.time&&t.time!==e.video.time&&e.trigger("progress",[e,t.time]),i.buffer=t.buffer/i.bytes*i.duration,e.trigger("buffer",[e,i.buffer]),!i.buffered&&t.time>0&&(i.buffered=!0,e.trigger("buffered",[e])))}},250),window[p]=function(n,r){var i=d;m.debug&&(0===n.indexOf("debug")&&r&&r.length?console.log.apply(console,["-- "+n].concat(r)):console.log("--",n,r));var o={type:n};switch(n){case"ready":r=l(i,r);break;case"click":o.flash=!0;break;case"keydown":o.which=r;break;case"seek":i.time=r;break;case"status":e.trigger("progress",[e,r.time]),r.buffer<i.bytes&&!i.buffered?(i.buffer=r.buffer/i.bytes*i.duration,e.trigger("buffer",i.buffer)):i.buffered||(i.buffered=!0,e.trigger("buffered"));break;case"metadata":var a=atob(r);r={key:a.substr(10,4),data:a.substr(21)}}"click"===n||"keydown"===n?(o.target=t,u.fire(t,n,[o])):"buffered"!=n&&"unload"!==n?setTimeout(function(){e.trigger(o,[e,r])},1):"unload"===n&&e.trigger(o,[e,r])}}},speed:a.noop,unload:function(){h&&h.__unload&&h.__unload();try{p&&window[p]&&delete window[p]}catch(n){}a.find("object",t).forEach(a.removeNode),h=0,e.off(".flashengine"),e.off(".flashhack"),clearInterval(h.pollInterval),v.forEach(function(e){clearTimeout(e)})}};return["pause","resume","seek","volume"].forEach(function(t){y[t]=function(n){try{e.ready&&(void 0===n?h["__"+t]():h["__"+t](n))}catch(r){if("undefined"==typeof h["__"+t])return e.trigger("flashdisabled",[e]);throw r}}}),y},i.engineName="flash",i.canPlay=function(e,t){return o.support.flashVideo&&/video\/(mp4|flash|flv)/i.test(e)||o.support.flashVideo&&t.swfHls&&/mpegurl/i.test(e)},o.engines.push(i)},{"../common":1,"../flowplayer":31,"./embed":2,bean:34,"extend-object":39}],4:[function(e,t,n){"use strict";function r(e){return"undefined"==typeof window.Hls?!1:/mpegurl/.test(e)&&window.Hls.isSupported()}var i,o=e("../flowplayer"),a=o.support,s=o.common,l=o.bean,u=e("./html5-factory");i=function(e,t){function n(n,r,u){var d=o.extend({recoverMediaError:!0},e.conf.hlsjs,n.hlsjs);e.engine.hls&&e.engine.hls.destroy();var p=e.engine.hls=new f(d);i.extensions.forEach(function(n){n({hls:p,player:e,root:t,videoTag:r})}),p.loadSource(n.src),u.resume=function(){e.live&&!e.dvr&&(r.currentTime=p.liveSyncPosition||0),r.play()},u.seek=function(t){try{e.live||e.dvr?r.currentTime=Math.min(t,p.liveSyncPosition||r.duration-d.livePositionOffset):r.currentTime=t}catch(n){e.debug("Failed to seek to ",t,n)}},d.bufferWhilePaused===!1&&e.on("pause",function(){p.stopLoad(),e.one("resume",function(){p.startLoad()})}),e.on("quality",function(e,t,n){p.nextLevel=a=n});var h,g,m=function(n){if(e.debug("hlsjs - recovery"),s.removeClass(t,"is-paused"),s.addClass(t,"is-seeking"),l.one(r,"seeked",function(){r.paused&&(s.removeClass(t,"is-poster"),e.poster=!1,r.play()),s.removeClass(t,"is-seeking")}),n)return p.startLoad();var i=performance.now();!h||i-h>3e3?(h=performance.now(),p.recoverMediaError()):(!g||i-g>3e3)&&(g=performance.now(),p.swapAudioCodec(),p.recoverMediaError())};return p.on(f.Events.MANIFEST_PARSED,function(t,i){var o,l=n.hlsQualities||e.conf.hlsQualities,u={},f=i.levels;if(l===!1)return p.attachMedia(r);if("drive"===l)switch(f.length){case 4:o=[1,2,3];break;case 5:o=[1,2,3,4];break;case 6:o=[1,3,4,5];break;case 7:o=[1,3,5,6];break;case 8:o=[1,3,6,7];break;default:o=f.length<3||f[0].height&&f[2].height&&f[0].height===f[2].height?[]:[1,2]}if(n.qualities=[{value:-1,label:"Auto"}],Array.isArray(l)){var d=l.find(function(e){return-1===e||e.level&&-1===e.level});d?n.qualities[0].label="number"!=typeof d?d.label:n.qualities[0].label:n.qualities=[],o=l.map(function(e){return"undefined"!=typeof e.level&&(u[e.level]=e.label),"undefined"!=typeof e.level?e.level:e})}var h=-2;n.qualities=n.qualities.concat(f.map(function(e,t){if(o&&-1===o.indexOf(t))return!1;var n=u[t]||Math.min(e.width,e.height)+"p";return u[t]||"drive"===l||(n+=" ("+Math.round(e.bitrate/1e3)+"k)"),t===a&&(h=t),{value:t,label:n}})).filter(s.identity);var g=n.quality=-2===h?n.qualities[0].value||-1:h;g!==p.currentLevel&&(p.currentLevel=g),p.attachMedia(r),c&&n.src!==c&&r.play(),c=n.src}),p.on(f.Events.ERROR,function(t,n){if(n.fatal)if(d.recoverNetworkError&&n.type===f.ErrorTypes.NETWORK_ERROR)m(!0);else if(d.recoverMediaError&&n.type===f.ErrorTypes.MEDIA_ERROR)m(!1);else{var r=5;n.type===f.ErrorTypes.NETWORK_ERROR&&(r=2),n.type===f.ErrorTypes.MEDIA_ERROR&&(r=3),p.destroy(),e.trigger("error",[e,{code:r}])}}),e.one("unload",function(){p.destroy()}),{handlers:{error:function(e,t){var n=t.error&&t.error.code;return d.recoverMediaError&&3===n||!n?(e.preventDefault(),m(!1),!0):d.recoverNetworkError&&2===n?(e.preventDefault(),m(!0),!0):void 0}}}}var a,c,f=window.Hls;return u("hlsjs-lite",e,t,r,n)},i.canPlay=function(e,t){return t.hlsjs===!1||t.clip&&t.clip.hlsjs===!1?!1:a.browser.safari&&!(t.clip&&t.clip.hlsjs||t.hlsjs||{}).safari?!1:o.support.video&&r(e)},i.engineName="hlsjs-lite",i.plugin=function(e){i.extensions.push(e)},i.extensions=[],o.engines.push(i)},{"../flowplayer":31,"./html5-factory":5}],5:[function(e,t,n){function r(e,t,n,r,a){function f(e,o,a,f){var p=n.getAttribute("data-flowplayer-instance-id");if(e.listeners&&e.listeners.hasOwnProperty(p))return void(e.listeners[p]=a);(e.listeners||(e.listeners={}))[p]=a,u.on(o,"error",function(n){try{r(n.target.getAttribute("type"))&&t.trigger("error",[t,{code:4,video:c(a,{src:e.src,url:e.src})}])}catch(i){}}),t.on("shutdown",function(){u.off(o),u.off(e,".dvrhack"),t.off(".loophack")});var h={},g=function(e){"metadata"===e.kind&&(e.mode="hidden",e.addEventListener("cuechange",function(){e.activeCues.length&&t.trigger("metadata",[t,e.activeCues[0].value])},!1))};return e&&e.textTracks&&e.textTracks.length&&Array.prototype.forEach.call(e.textTracks,g),e&&e.textTracks&&"function"==typeof e.textTracks.addEventListener&&e.textTracks.addEventListener("addtrack",function(e){g(e.track)},!1),(t.conf.dvr||t.dvr||a.dvr)&&u.on(e,"progress.dvrhack",function(){e.seekable.length&&(t.video.duration=e.seekable.end(null),t.video.seekOffset=e.seekable.start(null),t.trigger("dvrwindow",[t,{start:e.seekable.start(null),end:e.seekable.end(null)}]),e.currentTime>=e.seekable.start(null)||(e.currentTime=e.seekable.start(null)))}),Object.keys(d).forEach(function(r){var o=d[r];if("webkitendfullscreen"===r&&t.conf.disableInline&&(o="unload"),o){var u=function(u){if(a=e.listeners[p],u.target&&s.hasClass(u.target,"fp-engine")){/progress/.test(o)||t.debug(r,"->",o,u);var d=function(e){t.trigger(e||o,[t,h])};if(!t.ready&&!/ready|error/.test(o)||!o||!s.find("video",n).length)return void("resume"===o&&t.one("ready",function(){setTimeout(function(){d()})}));var h;if("unload"===o)return void t.unload();switch(o){case"ready":if(t.ready)return t.debug("Player already ready, not sending duplicate ready event");if(!(e.duration&&e.duration!==1/0||t.live))return t.debug("No duration and VOD setup, not sending ready event");if(h=c(a,{duration:e.duration<Number.MAX_VALUE?e.duration:0,width:e.videoWidth,height:e.videoHeight,url:e.currentSrc}),h.seekable=h.duration,t.debug("Ready: ",h),!t.live&&!h.duration&&!l.hlsDuration&&"loadeddata"===r){var g=function(){h.duration=e.duration;try{h.seekable=e.seekable&&e.seekable.end(null)}catch(t){}d(),e.removeEventListener("durationchange",g),s.toggleClass(n,"is-live",!1)};e.addEventListener("durationchange",g);var m=function(){t.ready||e.duration||(h.duration=0,s.addClass(n,"is-live"),d()),e.removeEventListener("timeupdate",m)};return void e.addEventListener("timeupdate",m)}break;case"progress":case"seek":if(e.currentTime>0||t.live)h=Math.max(e.currentTime,0);else if("seek"===o&&0===e.currentTime)h=0;else if("progress"==o)return;break;case"buffer":h=[];for(var v=0;v<e.buffered.length;v++)h.push({start:e.buffered.start(v),end:e.buffered.end(v)});e.buffered.length&&e.buffered.end(null)===e.duration&&d("buffered");break;case"speed":h=i(e.playbackRate);break;case"volume":h=i(e.muted?0:e.volume);break;case"error":try{if(f&&f.handlers&&f.handlers.error){var y=f.handlers.error(u,e);if(y)return}h=(u.srcElement||u.originalTarget).error,h.video=c(a,{src:e.src,url:e.src})}catch(w){return}}d()}};n.addEventListener(r,u,!0),h[r]||(h[r]=[]),h[r].push(u)}}),h}var p,h,g,m=s.findDirect("video",n)[0]||s.find(".fp-player > video",n)[0],v=t.conf;return g={engineName:e,pick:function(e){var t=l.video&&e.filter(function(e){return r(e.type)})[0];if(t)return"string"==typeof t.src&&(t.src=s.createAbsoluteUrl(t.src)),t},load:function(e){var r=s.find(".fp-player",n)[0],i=!1;if(m||(m=document.createElement("video"),s.prepend(r,m),m.autoplay=!!v.splash,i=!0),s.addClass(m,"fp-engine"),s.find("track",m).forEach(s.removeNode),m.preload="none",v.nativesubtitles||s.attr(m,"crossorigin",!1),v.disableInline||(m.setAttribute("webkit-playsinline","true"),m.setAttribute("playsinline","true")),l.inlineVideo||s.css(m,{position:"absolute",top:"-9999em"}),l.subtitles&&v.nativesubtitles&&e.subtitles&&e.subtitles.length){s.addClass(m,"native-subtitles");var c=e.subtitles,d=function(e){var t=m.textTracks;t.length&&(t[0].mode=e)};c.some(function(e){return!s.isSameDomain(e.src)})&&s.attr(m,"crossorigin","anonymous"),"function"==typeof m.textTracks.addEventListener&&m.textTracks.addEventListener("addtrack",function(){d("disabled"),d("showing")}),c.forEach(function(e){m.appendChild(s.createElement("track",{kind:"subtitles",srclang:e.srclang||"en",label:e.label||"en",src:e.src,default:e["default"]}))})}u.off(m,"timeupdate",s.noop),u.on(m,"timeupdate",s.noop),s.prop(m,"loop",!1),t.off(".loophack"),(e.loop||v.loop)&&t.on("finish.loophack",function(){t.resume()}),"undefined"!=typeof h&&(m.volume=h);var p=a(e,m,g);if(v.autoplay||v.splash||e.autoplay){t.debug("Autoplay / Splash setup, try to start video"),m.load();var y=function(){try{var e=m.play();if(e&&e["catch"]){var n=function(e){if("AbortError"===e.name&&20===e.code)return i?void 0:m.play()["catch"](n);if(!v.mutedAutoplay)throw new Error("Unable to autoplay");return t.debug("Play errored, trying muted",e),t.mute(!0,!0),m.play()};e["catch"](n)["catch"](function(){v.autoplay=!1,t.mute(!1,!0),t.trigger("stop",[t])})}}catch(r){t.debug("play() error thrown",r)}};m.readyState>0?y():u.one(m,"canplay",y)}if(g._listeners=f(m,s.find("source",m).concat(m),e,p)||g._listeners,!(v.autoplay||v.splash||e.autoplay)){var w=function(){o(n)&&(t.debug("player is in viewport, preload"),l.preloadMetadata?m.preload="metadata":m.load(),u.off(document,"scroll.preloadviewport"))};u.off(document,"scroll.preloadviewport"),u.on(document,"scroll.preloadviewport",function(){window.requestAnimationFrame(w)}),w()}},mute:function(e){m.muted=!!e,t.trigger("mute",[t,e]),t.trigger("volume",[t,e?0:m.volume])},pause:function(){m.pause()},resume:function(){m.play()},speed:function(e){m.playbackRate=e},seek:function(e){var n=m.paused||t.finished;try{m.currentTime=e,n&&u.one(m,"seeked",function(){m.pause()})}catch(r){}},volume:function(e){h=e,m&&(m.volume=e,e&&g.mute(!1))},unload:function(){u.off(document,"scroll.preloadviewport"),s.find("video.fp-engine",n).forEach(function(e){"MediaSource"in window?e.src=URL.createObjectURL(new MediaSource):e.src="",s.removeNode(e)}),p=clearInterval(p);var e=n.getAttribute("data-flowplayer-instance-id");delete m.listeners[e],m=0,g._listeners&&Object.keys(g._listeners).forEach(function(e){g._listeners[e].forEach(function(t){n.removeEventListener(e,t,!0)})})}}}function i(e,t){return t=t||100,Math.round(e*t)/t}function o(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t.height&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+t.width}var a=e("../flowplayer"),s=a.common,l=a.support,u=a.bean,c=a.extend,f=l.browser.safari&&!l.iOS,d={ended:"finish",pause:"pause",play:"resume",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeked:"seek",loadedmetadata:f?0:"ready",canplaythrough:f?"ready":0,durationchange:"ready",error:"error",dataunavailable:"error",webkitendfullscreen:!a.support.inlineVideo&&"unload",progress:"buffer"};t.exports=r},{"../flowplayer":31}],6:[function(e,t,n){"use strict";function r(e){return/mpegurl/i.test(e)?"application/x-mpegurl":e}function i(e){return/^(video|application)/i.test(e)||(e=r(e)),!!u.canPlayType(e).replace("no","")}var o,a=e("../flowplayer"),s=a.common,l=e("./html5-factory"),u=document.createElement("video");o=function(e,t){return l("html5",e,t,i,function(e,t){t.currentSrc!==e.src?(s.find("source",t).forEach(s.removeNode),t.src=e.src,t.type=e.type):e.autoplay&&t.load()})},o.canPlay=function(e){return a.support.video&&i(e)},o.engineName="html5",a.engines.push(o)},{"../flowplayer":31,"./html5-factory":5}],7:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){e.on("ready",function(){var e=i.find("video.fp-engine",t)[0];e&&(e.setAttribute("x-webkit-airplay","allow"),window.WebKitPlaybackTargetAvailabilityEvent&&(e.addEventListener("webkitplaybacktargetavailabilitychanged",function(e){if("available"===e.availability){var n=i.find(".fp-header",t)[0];i.find(".fp-airplay",n).forEach(i.removeNode);var r=i.createElement("a",{class:"fp-airplay fp-icon",title:"Play on AirPlay device"});n.appendChild(r)}}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(){var n=i.find(".fp-airplay",t)[0];n&&i.toggleClass(n,"fp-active",e.webkitCurrentPlaybackTargetIsWireless)})))}),o.on(t,"click",".fp-airplay",function(e){e.preventDefault();var n=i.find("video.fp-engine",t)[0];n.webkitShowPlaybackTargetPicker()})})},{"../common":1,"../flowplayer":31,bean:34}],8:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("./resolve").TYPE_RE,o=e("scriptjs"),a=e("bean");r(function(e,t){var n,r=e.conf.analytics,s=0,l=0;if(r){"undefined"==typeof _gat&&o("//google-analytics.com/ga.js");var u=function(){var e=_gat._getTracker(r);return e._setAllowLinker(!0),e},c=function(r,o,a){if(a=a||e.video,s&&"undefined"!=typeof _gat){var l=u();l._trackEvent("Video / Seconds played",e.engine.engineName+"/"+a.type,a.title||t.getAttribute("title")||a.src.split("/").slice(-1)[0].replace(i,""),Math.round(s/1e3)),s=0,n&&(clearTimeout(n),n=null)}};e.bind("load unload",c).bind("progress",function(){e.seeking||(s+=l?+new Date-l:0,l=+new Date),n||(n=setTimeout(function(){n=null;var e=u();e._trackEvent("Flowplayer heartbeat","Heartbeat","",0,!0)},6e5))}).bind("pause",function(){l=0}),e.bind("shutdown",function(){a.off(window,"unload",c)}),a.on(window,"unload",c)}})},{"../flowplayer":31,"./resolve":21,bean:34,scriptjs:45}],9:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean"),a=e("scriptjs");r(function(e,t){function n(){var e,t,n;e=g.applicationId||chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,t=new chrome.cast.SessionRequest(e),n=new chrome.cast.ApiConfig(t,r,s),chrome.cast.initialize(n,l,u)}function r(){console.log("sessionListener")}function s(e){e===chrome.cast.ReceiverAvailability.AVAILABLE&&c()}function l(){}function u(){console.log("onError")}function c(){var e=i.find(".fp-header",t)[0];if(e){i.find(".fp-chromecast",e).forEach(i.removeNode),i.find(".fp-chromecast-engine",t).forEach(i.removeNode),h=i.createElement("a",{class:"fp-chromecast fp-icon",title:"Play on Cast device"}),e.insertBefore(h,i.find(".fp-fullscreen",e)[0]);var n=i.createElement("div",{class:"fp-chromecast-engine"}),r=i.createElement("p",{class:"fp-chromecast-engine-status"}),o=i.createElement("p",{class:"fp-chromecast-engine-icon"});n.appendChild(o),n.appendChild(r);var a=i.find(".fp-engine",t)[0];a?a.parentNode.insertBefore(n,a):i.prepend(i.find(".fp-player",t)[0]||t,n)}}function f(){clearInterval(p),p=null,e.release(),i.toggleClass(t,"is-chromecast",!1),i.toggleClass(h,"fp-active",!1)}if(e.conf.chromecast!==!1){a("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"),window.__onGCastApiAvailable=function(e){e&&n()};var d,p,h,g=e.conf.chromecast||{};o.on(t,"click",".fp-chromecast",function(n){return n.preventDefault(),d?(e.trigger("pause",[e]),d.stop(),d=null,void f()):(e.playing&&e.pause(),void chrome.cast.requestSession(function(n){function r(n){n.addUpdateListener(function(r){if(d){p=p||setInterval(function(){e.trigger("progress",[e,n.getEstimatedTime()])},500),r?(i.toggleClass(t,"is-chromecast",!0),i.toggleClass(h,"fp-active",!0),e.hijack({pause:function(){n.pause()},resume:function(){n.play()},seek:function(e){var t=new chrome.cast.media.SeekRequest;t.currentTime=e,n.seek(t)}})):(f(),e.trigger("finish",[e]));var o=n.playerState;e.paused&&o===chrome.cast.media.PlayerState.PLAYING&&e.trigger("resume",[e]),e.playing&&o===chrome.cast.media.PlayerState.PAUSED&&e.trigger("pause",[e]),i.toggleClass(t,"is-loading",o===chrome.cast.media.PlayerState.BUFFERING)}})}d=n;var o=d.receiver.friendlyName;i.html(i.find(".fp-chromecast-engine-status")[0],"Playing on device "+o);var a=new chrome.cast.media.MediaInfo(e.video.src),s=new chrome.cast.media.LoadRequest(a);d.loadMedia(s,r,function(){})},function(e){console.error("requestSession error",e)}))})}})},{"../common":1,"../flowplayer":31,bean:34,scriptjs:45}],10:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){function n(e){t.className=t.className.replace(a," "),e>=0&&i.addClass(t,"cue"+e)}function r(t){var n=t&&!isNaN(t.time)?t.time:t;return 0>n&&(n=e.video.duration+n),.125*Math.round(n/.125)}var a=/ ?cue\d+ ?/,s=!1,l={},u=-.125,c=function(t){n(t.index),e.trigger("cuepoint",[e,t])};e.on("progress",function(e,t,n){if(!s)for(var i=r(n);i>u;)u+=.125,l[u]&&l[u].forEach(c)}).on("unload",n).on("beforeseek",function(e){setTimeout(function(){e.defaultPrevented||(s=!0)})}).on("seek",function(e,t,i){n(),u=r(i||0)-.125,s=!1,!i&&l[0]&&l[0].forEach(c)}).on("ready",function(t,n,r){u=-.125;var i=r.cuepoints||e.conf.cuepoints||[];e.setCuepoints(i)}).on("finish",function(){for(var t=r(e.video.duration);t>u;)u+=.125,l[u]&&l[u].forEach(c);u=-.125}),e.conf.generate_cuepoints&&e.bind("load",function(){i.find(".fp-cuepoint",t).forEach(i.removeNode)}),e.setCuepoints=function(t){return e.cuepoints=[],l={},t.forEach(e.addCuepoint),e},e.addCuepoint=function(n){e.cuepoints||(e.cuepoints=[]),"number"==typeof n&&(n={time:n}),n.index=0;var a=r(n);if(l[a]||(l[a]=[]),l[a].push(n),e.cuepoints.length&&(n.index=Math.max.apply(null,e.cuepoints.map(function(e){return e.index}))+1),e.cuepoints.push(n),e.conf.generate_cuepoints&&n.visible!==!1){var s=e.video.duration,u=i.find(".fp-timeline",t)[0];i.css(u,"overflow","visible");var c=n.time||n;0>c&&(c=s+c);var f=i.createElement("a",{className:"fp-cuepoint fp-cuepoint"+n.index});i.css(f,"left",c/s*100+"%"),u.appendChild(f),o.on(f,"mousedown",function(t){t.preventDefault(),t.stopPropagation(),e.seek(c)})}return e},e.removeCuepoint=function(n){"number"==typeof n&&(n=e.cuepoints.filter(function(e){return e.index===n})[0]);var o=e.cuepoints.indexOf(n),a=r(n);if(-1!==o){e.cuepoints=e.cuepoints.slice(0,o).concat(e.cuepoints.slice(o+1));var s=i.find(".fp-timeline",t)[0];i.find(".fp-cuepoint"+n.index,s).forEach(i.removeNode);var u=l[a].indexOf(n);if(-1!==u)return l[a]=l[a].slice(0,u).concat(l[a].slice(u+1)),e}}})},{"../common":1,"../flowplayer":31,bean:34}],11:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("bean"),o=e("../common"),a=e("./util/clipboard");r(function(e,t){if(e.conf.embed!==!1&&e.conf.share!==!1){var n=o.find(".fp-share-menu",t)[0],r=o.createElement("a",{class:"fp-icon fp-embed",title:"Copy to your site"},"Embed");o.append(n,r),e.embedCode=function(){var n=e.conf.embed||{},r=e.video,i=n.width||r.width||o.width(t),a=n.height||r.height||o.height(t),s=e.conf.ratio,l='<iframe src="'+e.shareUrl(!0)+'" allowfullscreen style="border:none;';return n.width||n.height?(isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),l+"width:"+i+";height:"+a+';"></iframe>'):((!s||e.conf.adaptiveRatio)&&(s=a/i),'<div style="position:relative;width:100%;display:inline-block;">'+l+'position:absolute;top:0;left:0;width:100%;height:100%;"></iframe><div style="padding-top:'+100*s+'%;"></div></div>')},i.on(t,"click",".fp-embed",function(){a(e.embedCode(),function(){e.message("The embed code is now on your clipboard",2e3)},function(){e.textarea(e.embedCode(),"Copy the code below to embed your video")})})}})},{"../common":1,"../flowplayer":31,"./util/clipboard":30,bean:34}],12:[function(e,t,n){"use strict";t.exports=function(e,t){t||(t=document.createElement("div"));var n={},r={},i=function(e,i,o){var a=e.split(".")[0],s=function(l){o&&(t.removeEventListener(a,s),n[e].splice(n[e].indexOf(s),1));var u=[l].concat(r[l.timeStamp+l.type]||[]);i&&i.apply(void 0,u)};t.addEventListener(a,s),n[e]||(n[e]=[]),n[e].push(s)};e.on=e.bind=function(t,n){var r=t.split(" ");return r.forEach(function(e){i(e,n)}),e},e.one=function(t,n){var r=t.split(" ");return r.forEach(function(e){i(e,n,!0)}),e};var o=function(e,t){return 0===t.filter(function(t){return-1===e.indexOf(t)}).length};e.off=e.unbind=function(r){var i=r.split(" ");return i.forEach(function(e){var r=e.split(".").slice(1),i=e.split(".")[0];Object.keys(n).filter(function(e){var t=e.split(".").slice(1);return(!i||0===e.indexOf(i))&&o(t,r)}).forEach(function(e){var r=n[e],i=e.split(".")[0];n[e]=r.filter(function(e){return t.removeEventListener(i,e),!1})})}),e},e.trigger=function(n,i,o){if(n){i=(i||[]).length?i||[]:[i];var a,s=document.createEvent("Event");return a=n.type||n,s.initEvent(a,!1,!0),Object.defineProperty&&(s.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}),r[s.timeStamp+s.type]=i,t.dispatchEvent(s),o?s:e}}},t.exports.EVENTS=["beforeseek","disable","error","finish","fullscreen","fullscreen-exit","load","mute","pause","progress","ready","resume","seek","speed","stop","unload","volume","boot","shutdown"]},{}],13:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){var n=e.conf;if(n.share!==!1&&n.facebook){e.facebook=function(){var e,t,r=550,i=420,o=screen.height,a=screen.width,s="scrollbars=yes,resizable=yes,toolbar=no,location=yes",l="string"==typeof n.facebook?n.facebook:window.location.toString();e=Math.round(a/2-r/2),t=0,o>i&&(t=Math.round(o/2-i/2)),window.open("https://www.facebook.com/sharer.php?s=100&p[url]="+encodeURIComponent(l),"sharer",s+",width="+r+",height="+i+",left="+e+",top="+t)};var r=i.find(".fp-share-menu",t)[0],a=i.createElement("a",{class:"fp-icon fp-facebook"},"Facebook");i.append(r,a),o.on(t,"click",".fp-facebook",function(){e.facebook()})}})},{"../common":1,"../flowplayer":31,bean:34}],14:[function(e,t,n){"use strict";var r,i=e("../flowplayer"),o=e("bean"),a=e("../common"),s="fullscreen",l="fullscreen-exit",u=i.support.fullscreen;o.on(document,"fullscreenchange.ffscr webkitfullscreenchange.ffscr mozfullscreenchange.ffscr MSFullscreenChange.ffscr",function(e){var t=document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.fullscreenElement||document.msFullscreenElement;if(r||t.parentNode&&t.parentNode.getAttribute("data-flowplayer-instance-id")){var n=r||i(t.parentNode);t?r=n.trigger(s,[n]):(r.trigger(l,[r]),r=null)}}),i(function(e,t){var n=a.createElement("div",{className:"fp-player"});if(Array.prototype.map.call(t.children,a.identity).forEach(function(e){a.matches(e,".fp-ratio,script")||n.appendChild(e)}),t.appendChild(n),e.conf.fullscreen){var i,o,c=window;e.isFullscreen=!1,e.fullscreen=function(t){return e.disabled?void 0:(void 0===t&&(t=!e.isFullscreen),t&&(i=c.scrollY,o=c.scrollX),u?t?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof n[e]&&(n[e](Element.ALLOW_KEYBOARD_INPUT),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||n[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):e.trigger(t?s:l,[e]),e)};var f;e.on("mousedown.fs",function(){+new Date-f<150&&e.ready&&e.fullscreen(),f=+new Date}),e.on(s,function(){a.addClass(t,"is-fullscreen"),a.toggleClass(t,"fp-minimal-fullscreen",a.hasClass(t,"fp-minimal")),a.removeClass(t,"fp-minimal"),u||a.css(t,"position","fixed"),e.isFullscreen=!0}).on(l,function(){var n;a.toggleClass(t,"fp-minimal",a.hasClass(t,"fp-minimal-fullscreen")),a.removeClass(t,"fp-minimal-fullscreen"),u||"html5"!==e.engine||(n=t.css("opacity")||"",a.css(t,"opacity",0)),u||a.css(t,"position",""),a.removeClass(t,"is-fullscreen"),u||"html5"!==e.engine||setTimeout(function(){t.css("opacity",n)}),e.isFullscreen=!1,c.scrollTo(o,i)}).on("unload",function(){e.isFullscreen&&e.fullscreen()}),e.on("shutdown",function(){r=null,a.removeNode(n)})}})},{"../common":1,"../flowplayer":31,bean:34}],15:[function(e,t,n){"use strict";var r,i,o=e("../flowplayer"),a=e("bean"),s=e("../common");a.on(document,"keydown.fp",function(e){var t=r,n=e.ctrlKey||e.metaKey||e.altKey,i=e.which,o=t&&t.conf;if(t&&o.keyboard&&!t.disabled&&!n&&t.ready){if(e.shiftKey)return 39==i?t.speed(!0):37==i&&t.speed(!1),e.preventDefault();if(58>i&&i>47)return e.preventDefault(),t.seekTo(i-48);var a=function(){switch(i){case 38:case 75:return t.volume(t.volumeLevel+.15),!0;case 40:case 74:return t.volume(t.volumeLevel-.15),!0;case 39:case 76:return t.seeking=!0,t.seek(!0),!0;case 37:case 72:return t.seeking=!0,t.seek(!1),!0;case 190:return t.seekTo(),!0;case 32:return t.toggle(),!0;case 70:return o.fullscreen&&t.fullscreen(),!0;case 77:return t.mute(),!0;case 81:return t.unload(),!0}}();a&&e.preventDefault()}}),o(function(e,t){e.conf.keyboard&&(a.on(document,"click",function(n){if(s.hasParent(n.target,t))r=e.disabled?0:e;else{if(r!==e)return;r=0}r&&(i=t)}),e.bind("shutdown",function(){i==t&&(i=null)}))})},{"../common":1,"../flowplayer":31,bean:34}],16:[function(e,t,n){var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){e.showMenu=function(n,r){var a=i.find(".fp-ui",t)[0];i.toggleClass(n,"fp-active",!0),setTimeout(function(){o.one(document,"click",function(){e.hideMenu(n)})});var s=r;if(r&&r.tagName&&(s={left:i.offset(r).left,rightFallbackOffset:i.width(r),top:i.offset(r).top+i.height(r)}),!s)return i.css(n,"top","auto");s.rightFallbackOffset=s.rightFallbackOffset||0;var l=s.top-i.offset(a).top,u=s.left-i.offset(a).left;i.width(n)+u>i.width(a)&&(u=u-i.width(n)+s.rightFallbackOffset),i.height(n)+l>i.height(a)&&(l-=i.height(n)),i.css(n,{top:l+"px",left:u+"px",right:"auto"})},e.hideMenu=function(e){i.toggleClass(e,"fp-active",!1),i.css(e,{top:"-9999em"})}})},{"../common":1,"../flowplayer":31,bean:34}],17:[function(e,t,n){var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){function n(e){var t=i.createElement("div",{className:"fp-message"},e);return s.insertBefore(t,a),setTimeout(function(){i.toggleClass(t,"fp-shown")}),t}function r(e){i.removeNode(e)}var a=i.find(".fp-header",t)[0],s=i.find(".fp-ui",t)[0];e.message=function(e,t){var o=n(e),a=function(){i.toggleClass(o,"fp-shown"),setTimeout(function(){r(o)},500)};return t&&setTimeout(a,t),a},e.textarea=function(e){var t=document.createElement("textarea");t.value=e,t.className="fp-textarea",s.appendChild(t),o.on(document,"click.fptextarea",function(e){return e.target===t?t.select():(e.stopPropagation(),e.preventDefault(),i.removeNode(t),void o.off(document,"click.fptextarea"))})}})},{"../common":1,"../flowplayer":31,bean:34}],18:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=/IEMobile/.test(window.navigator.userAgent),o=e("../common"),a=e("bean"),s=e("./ui").format,l=r.support,u=window.navigator.userAgent;(l.touch||i)&&r(function(e,t){var n=l.android,r=n&&!n.firefox,c=/Silk/.test(u),f=n.version||0;if(r&&!i){if(!/Chrome/.test(u)&&4>f||n.samsung&&5>f){var d=e.load;e.load=function(){var n=d.apply(e,arguments);return o.find("video.fp-engine",t)[0].load(),e.trigger("ready",[e,e.video]),n}}var p,h=0,g=function(e){p=setInterval(function(){e.video.time=++h,e.trigger("progress",[e,h])},1e3)};e.on("ready pause unload",function(){p&&(clearInterval(p),p=null)}),e.on("ready",function(){h=0}),e.on("resume",function(t,n){return n.live?h?g(n):void e.one("progress",function(e,t,n){0===n&&g(t)}):void 0})}l.volume||(o.removeClass(t,"fp-mute"),o.addClass(t,"no-volume")),l.iOS&&o.addClass(t,"fp-mute"),o.addClass(t,"is-touch"),e.sliders&&e.sliders.timeline&&e.sliders.timeline.disableAnimation();var m=!1;a.on(t,"touchmove",function(){m=!0});var v=!0;if(a.on(t,"touchend click",function(n){if(m)return void(m=!1);var r=o.find("video.fp-engine",t)[0];return v&&e.conf.clickToUnMute&&r&&r.muted&&e.conf.autoplay&&(r.muted=!1),v=!1,e.playing&&!o.hasClass(t,"is-mouseover")?(o.addClass(t,"is-mouseover"),o.removeClass(t,"is-mouseout"),n.preventDefault(),void n.stopPropagation()):void(e.playing||e.splash||!o.hasClass(t,"is-mouseout")||o.hasClass(t,"is-mouseover")||setTimeout(function(){e.disabled||e.playing||e.splash||o.find("video.fp-engine",t)[0].play()},400))}),!l.fullscreen&&e.conf.native_fullscreen&&"function"==typeof o.createElement("video").webkitEnterFullScreen){var y=e.fullscreen;e.fullscreen=function(){var n=o.find("video.fp-engine",t)[0];return n?(e.trigger("fullscreen",[e]),a.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===n&&(a.off(document,".nativefullscreen"),a.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(a.off(document,".nativefullscreen"),e.trigger("fullscreen-exit",[e]))}))}),n.webkitEnterFullScreen(),void a.one(n,"webkitendfullscreen",function(){a.off(document,"fullscreenchange.nativefullscreen"),e.trigger("fullscreen-exit",[e]),o.prop(n,"controls",!0),o.prop(n,"controls",!1)})):y.apply(e)}}(r||c)&&e.bind("ready",function(){var n=o.find("video.fp-engine",t)[0];e.conf.splash&&n&&n.paused&&"hlsjs-lite"!==e.engine.engineName&&(a.one(n,"canplay",function(){n.play()}),n.load()),e.bind("progress.dur",function(){if(!e.live&&!e.conf.live&&n){var r=n.duration;1!==r&&(e.video.duration=r,o.find(".fp-duration",t)[0].innerHTML=s(r),e.unbind("progress.dur"))}})})})},{"../common":1,"../flowplayer":31,"./ui":27,bean:34}],19:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("extend-object"),o=e("bean"),a=e("../common"),s=e("./resolve"),l=new s,u=window.jQuery,c=/^#/;r(function(e,t){function n(){return a.find(h.query,r())}function r(){return c.test(h.query)?void 0:t}function f(){return a.find(h.query+"."+g,r())}function d(){var n=a.find(".fp-playlist",t)[0];if(!n){n=a.createElement("div",{className:"fp-playlist"});var r=a.find(".fp-next,.fp-prev",t);r.length?r[0].parentElement.insertBefore(n,r[0]):a.insertAfter(t,a.find("video",t)[0],n)}n.innerHTML="",e.conf.playlist[0].length&&(e.conf.playlist=e.conf.playlist.map(function(e){if("string"==typeof e){var t=e.split(s.TYPE_RE)[1];return{sources:[{type:"m3u8"===t.toLowerCase()?"application/x-mpegurl":"video/"+t,src:e}]}}return{sources:e.map(function(e){var t={};return Object.keys(e).forEach(function(n){t.type=/mpegurl/i.test(n)?"application/x-mpegurl":"video/"+n,t.src=e[n]}),t})}})),e.conf.playlist.forEach(function(t,r){var i=t.sources[0].src;n.appendChild(a.createElement("a",{href:i,className:e.video.index===r?g:void 0,"data-index":r}))})}function p(t){return"undefined"!=typeof t.index?t.index:"undefined"!=typeof e.video.index?e.video.index:e.conf.startIndex||0}var h=i({active:"is-active",advance:!0,query:".fp-playlist a"},e.conf),g=h.active,m=a.find(".fp-ui",t)[0],v=a.hasClass(t,"fp-custom-playlist")||!!h.customPlaylist;a.toggleClass(t,"fp-custom-playlist",v),a.toggleClass(t,"fp-default-playlist",!v),e.play=function(t){if(void 0===t)return e.resume();if("number"==typeof t&&!e.conf.playlist[t])return e;if("number"!=typeof t)return e.load.apply(null,arguments);var n=i({index:t},e.conf.playlist[t]);return e.off("beforeresume.fromfirst"),"number"==typeof t&&t===e.video.index?e.seek(0,function(){e.resume()}):(e.load(n,function(){e.video.index=t}),e)},e.next=function(t){t&&t.preventDefault();var n=e.video.index;return-1!=n&&(n=n===e.conf.playlist.length-1?0:n+1,e.play(n)),e},e.prev=function(t){t&&t.preventDefault();var n=e.video.index;return-1!=n&&(n=0===n?e.conf.playlist.length-1:n-1,e.play(n)),e},e.setPlaylist=function(t,n){return e.conf.playlist=t,n||delete e.video.index,d(),e},e.addPlaylistItem=function(t){return delete e.video.is_last,e.setPlaylist(e.conf.playlist.concat([t]),!0)},e.removePlaylistItem=function(t){var n=e.conf.playlist;return e.setPlaylist(n.slice(0,t).concat(n.slice(t+1)))},o.on(t,"click",".fp-next",e.next),o.on(t,"click",".fp-prev",e.prev),e.off("finish.pl").on("finish.pl",function(e,n){var r="undefined"==typeof n.conf.advance?!0:n.conf.advance;if(r){if(n.video.loop)return n.seek(0,function(){n.resume()});var i=n.video.index>=0?n.video.index+1:void 0;i<n.conf.playlist.length||h.loop?(i=i===n.conf.playlist.length?0:i,a.removeClass(t,"is-finished"),setTimeout(function(){n.play(i)})):n.conf.playlist.length>1&&(n.one("beforeresume.fromfirst",function(e){e.preventDefault(),n.play(0)}),n.one("seek",function(){n.off("beforeresume.fromfirst")}))}});var y=!1;e.conf.playlist.length&&(y=!0,d(),e.conf.clip&&e.conf.clip.sources.length||(e.conf.clip=e.conf.playlist[e.conf.startIndex||0])),n().length&&!y&&(e.conf.playlist=[],delete e.conf.startIndex,n().forEach(function(t){var n=t.href;t.setAttribute("data-index",e.conf.playlist.length);var r=l.resolve(n,e.conf.clip.sources);u&&i(r,u(t).data()),e.conf.playlist.push(r)})),a.find(".fp-prev,.fp-next,.fp-playlist",t).forEach(function(e){m.appendChild(e)}),o.on(c.test(h.query)?document:t,"click",h.query,function(t){t.preventDefault();var n=t.currentTarget,r=Number(n.getAttribute("data-index"));-1!=r&&e.play(r)}),e.on("load",function(n,i,o){if(e.conf.playlist.length){var s=f()[0],l=s&&s.getAttribute("data-index"),u=o.index=p(o),c=a.find(h.query+'[data-index="'+u+'"]',r())[0],d=u==e.conf.playlist.length-1;s&&a.removeClass(s,g),c&&a.addClass(c,g),a.removeClass(t,"video"+l),a.addClass(t,"video"+u),a.toggleClass(t,"last-video",d),o.index=i.video.index=u,o.is_last=i.video.is_last=d}}).on("unload.pl",function(){e.conf.playlist.length&&(f().forEach(function(e){a.toggleClass(e,g)}),e.conf.playlist.forEach(function(e,n){a.removeClass(t,"video"+n)}),delete e.video.index)}),e.conf.playlist.length&&(e.conf.loop=!1)})},{"../common":1,"../flowplayer":31,"./resolve":21,bean:34,"extend-object":39}],20:[function(e,t,n){var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){function n(){i.find(".fp-qsel-menu",t).forEach(i.removeNode),i.find(".fp-qsel",t).forEach(i.removeNode)}function r(e){l.appendChild(i.createElement("strong",{className:"fp-qsel"},"HD"));var t=i.createElement("div",{className:"fp-menu fp-qsel-menu"},"<strong>Quality</strong>");e.forEach(function(e){var n=document.createElement("a"),r="undefined"!=typeof e.value?e.value:e;n.setAttribute("data-quality",r),n.innerHTML=e.label||e,t.appendChild(n)}),s.appendChild(t)}function a(e){i.find(".fp-qsel-menu a",t).forEach(function(t){i.toggleClass(t,"fp-selected",t.getAttribute("data-quality")==e),i.toggleClass(t,"fp-color",t.getAttribute("data-quality")==e)})}var s=i.find(".fp-ui",t)[0],l=i.find(".fp-controls",s)[0];o.on(t,"click",".fp-qsel",function(){var n=i.find(".fp-qsel-menu",t)[0];i.hasClass(n,"fp-active")?e.hideMenu():e.showMenu(n)}),o.on(t,"click",".fp-qsel-menu a",function(t){var n=t.target.getAttribute("data-quality");e.quality(n)}),e.quality=function(t){t=isNaN(Number(t))?t:Number(t),e.trigger("quality",[e,t])},e.on("quality",function(e,t,n){a(n,t.video.qualities)}),e.on("ready",function(e,t,i){n(),!i.qualities||i.qualities.filter(function(e){return"undefined"!=typeof e.value?e.value>-1:!0}).length<2||(r(i.qualities,i.quality),a(i.quality,i.qualities))})})},{"../common":1,"../flowplayer":31,bean:34}],21:[function(e,t,n){"use strict";function r(e){var t=e.attr("src"),n=e.attr("type")||"",r=t.split(o)[1];return n=n.toLowerCase(),a(e.data(),{src:t,suffix:r||n,type:n||r})}function i(e){return/mpegurl/i.test(e)?"application/x-mpegurl":"video/"+e}var o=/\.(\w{3,4})(\?.*)?$/i,a=e("extend-object");t.exports=function(){var e=this;e.sourcesFromVideoTag=function(e,t){var n=[];return t("source",e).each(function(){n.push(r(t(this)))}),!n.length&&e.length&&n.push(r(e)),n},e.resolve=function(e,t){return e?("string"==typeof e&&(e={src:e,sources:[]},e.sources=(t||[]).map(function(t){var n=t.src.split(o)[1];return{type:t.type,src:e.src.replace(o,"."+n+"$2")}})),e instanceof Array&&(e={sources:e.map(function(e){return e.type&&e.src?e:Object.keys(e).reduce(function(t,n){return a(t,{type:i(n),src:e[n]})},{})})}),e):{sources:t}}},t.exports.TYPE_RE=o},{"extend-object":39}],22:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("extend-object"),a=e("bean");r(function(e,t){var n=e.conf;if(n.share===!1)return void i.find(".fp-share",t).forEach(i.removeNode);e.shareUrl=function(t){if(t&&n.embed&&n.embed.iframe)return n.embed.iframe;if("string"==typeof e.conf.share)return e.conf.share;var r=encodeURIComponent(e.video.title||(i.find("title")[0]||{}).innerHTML||"Flowplayer Unlimited video"),a=encodeURIComponent(btoa(JSON.stringify(o({},e.conf,e.extensions)).replace(/[\u007F-\uFFFF]/g,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).substr(-4)}))),s=encodeURIComponent(window.location.toString()),l=t?"https://flowplayer.com/e/":"https://flowplayer.com/s/";return l+"?t="+r+"&c="+a+"&r="+s};var r=i.createElement("div",{className:"fp-menu fp-share-menu"},"<strong>Share</strong>"),s=i.find(".fp-ui",t)[0];s.appendChild(r);var l=i.find(".fp-share",t)[0];a.on(t,"click",".fp-share",function(t){t.preventDefault(),i.hasClass(r,"fp-active")?e.hideMenu():e.showMenu(r,l)})})},{"../common":1,"../flowplayer":31,bean:34,"extend-object":39}],23:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean"),a=e("./subtitles/parser");r.defaults.subtitleParser=a,r(function(e,t){var n,a,s,l,u;(!r.support.inlineVideo||!r.support.fullscreen&&e.conf.native_fullscreen)&&(e.conf.nativesubtitles=!0),e.ui||(e.ui={}),e.ui.createSubtitleControl=function(e,n){return u=n,s=s||i.createElement("strong",{className:"fp-cc"},"CC"),l=l||i.createElement("div",{className:"fp-menu fp-subtitle-menu"},"<strong>Closed Captions</strong>"),i.find("a",l).forEach(i.removeNode),l.appendChild(i.createElement("a",{"data-subtitle-index":-1},"No subtitles")),(e||[]).forEach(function(e,t){var n=e.srclang||"en",r=e.label||"Default ("+n+")",o=i.createElement("a",{"data-subtitle-index":t},r);l.appendChild(o)}),i.find(".fp-ui",t)[0].appendChild(l),i.find(".fp-controls",t)[0].appendChild(s),i.toggleClass(s,"fp-hidden",!e||!e.length),s},e.ui.setActiveSubtitleItem=function(e){f(e)},o.on(t,"click",".fp-cc",function(){i.hasClass(l,"fp-active")?e.hideMenu():e.showMenu(l)}),o.on(t,"click",".fp-subtitle-menu [data-subtitle-index]",function(t){t.preventDefault();var n=t.target.getAttribute("data-subtitle-index");return u?u(n):"-1"===n?e.disableSubtitles():void e.loadSubtitles(n)});var c=function(){a=i.find(".fp-captions",t)[0],a=a||i.appendTo(i.createElement("div",{class:"fp-captions"}),i.find(".fp-player",t)[0]),Array.prototype.forEach.call(a.children,i.removeNode),e.ui.createSubtitleControl(e.video.subtitles)};e.on("ready",function(n,r,o){if(r.subtitles=[],c(),i.removeClass(t,"has-menu"),e.disableSubtitles(),o.subtitles&&o.subtitles.length){var a=o.subtitles.filter(function(e){return e["default"]})[0];a&&r.loadSubtitles(o.subtitles.indexOf(a))}}),e.showSubtitle=function(e){i.html(a,e),i.addClass(a,"fp-shown")},e.hideSubtitle=function(){i.removeClass(a,"fp-shown")},e.bind("cuepoint",function(t,r,i){i.subtitle?(n=i.index,e.showSubtitle(i.subtitle.text)):i.subtitleEnd&&(e.hideSubtitle(),n=i.index)}),e.bind("seek",function(t,r,o){n&&e.cuepoints[n]&&e.cuepoints[n].time>o&&(i.removeClass(a,"fp-shown"),n=null),(e.cuepoints||[]).forEach(function(t,r){var i=t.subtitle;i&&n!=r?o>=t.time&&(!i.endTime||o<=i.endTime)&&e.trigger("cuepoint",[e,t]):t.subtitleEnd&&o>=t.time&&r==n+1&&e.trigger("cuepoint",[e,t])})}),e.on("unload",function(){i.find(".fp-captions",t).forEach(i.removeNode)});var f=function(e){i.toggleClass(i.find("a.fp-selected",l)[0],"fp-selected"),i.toggleClass(i.find('a[data-subtitle-index="'+e+'"]',l)[0],"fp-selected")},d=function(e,n){var r=i.find("video.fp-engine",t)[0].textTracks;r.length&&(null===e?[].forEach.call(r,function(e){e.mode=n}):r[e].mode=n)};e.disableSubtitles=function(){return e.subtitles=[],(e.cuepoints||[]).forEach(function(t){(t.subtitle||t.subtitleEnd)&&e.removeCuepoint(t)}),a&&Array.prototype.forEach.call(a.children,i.removeNode),f(-1),r.support.subtitles&&e.conf.nativesubtitles&&"html5"==e.engine.engineName&&d(null,"disabled"),e},e.loadSubtitles=function(t){e.disableSubtitles();var n=e.video.subtitles[t],o=n.src;return o?(f(t),r.support.subtitles&&e.conf.nativesubtitles&&"html5"==e.engine.engineName?void d(t,"showing"):(i.xhrGet(o,function(t){var n=e.conf.subtitleParser(t);n.forEach(function(t,n){t.title||(t.title="subtitle"+n);var i={time:t.startTime,subtitle:t,visible:!1};e.subtitles.push(t),e.addCuepoint(i),e.addCuepoint({time:t.endTime,subtitleEnd:t.title,visible:!1}),0!==t.startTime||e.video.time||e.splash||e.trigger("cuepoint",[e,r.extend({},i,{index:0})]),e.splash&&e.one("ready",function(){e.trigger("cuepoint",[e,i])})})},function(){return e.trigger("error-subtitles",{code:8,url:o}),!1}),e)):void 0}})},{"../common":1,"../flowplayer":31,"./subtitles/parser":24,bean:34}],24:[function(e,t,n){t.exports=function(e){function t(e){var t=e.split(":");return 2==t.length&&t.unshift(0),60*t[0]*60+60*t[1]+parseFloat(t[2].replace(",","."))}for(var n,r,i,o=/^(([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3}) --\> (([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3})(.*)/,a=[],s=0,l=e.split("\n"),u=l.length,c={};u>s;s++)if(r=o.exec(l[s])){for(n=l[s-1],i="<p>"+l[++s]+"</p><br/>";"string"==typeof l[++s]&&l[s].trim()&&s<l.length;)i+="<p>"+l[s]+"</p><br/>";c={title:n,startTime:t(r[1]),endTime:t(r[3]),text:i},a.push(c)}return a}},{}],25:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("extend-object");!function(){var e=function(e){var t=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return t&&t.length>1?parseFloat(t[t.length-1].replace("_","."),10):0},t=function(){var e=document.createElement("video");return e.loop=!0,e.autoplay=!0,e.preload=!0,e},n={},o=document.documentElement.style,a=navigator.userAgent.toLowerCase(),s=/(chrome)[ \/]([\w.]+)/.exec(a)||/(safari)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];s[1]&&(n[s[1]]=!0,n.version=s[2]||"0"),n.safari&&(n.version=(/version\/([\w.]+)/.exec(a)||[])[1]);var l=t(),u=navigator.userAgent,c=n.msie||/Trident\/7/.test(u),f=/iPad|MeeGo/.test(u)&&!/CriOS/.test(u),d=/iPad/.test(u)&&/CriOS/.test(u),p=/iP(hone|od)/i.test(u)&&!/iPad/.test(u)&&!/IEMobile/i.test(u),h=/Android/.test(u),g=h&&/Firefox/.test(u),m=h&&/SAMSUNG/.test(u),v=/Silk/.test(u),y=/IEMobile/.test(u),w=y?parseFloat(/Windows\ Phone\ (\d+\.\d+)/.exec(u)[1],10):0,b=y?parseFloat(/IEMobile\/(\d+\.\d+)/.exec(u)[1],10):0,I=f||p?e(u):0,M=h?parseFloat(/Android\ (\d+(\.\d+)?)/.exec(u)[1],10):0,C=(p||f||d)&&{iPhone:p,iPad:f||d,version:I,chrome:d},A=i(r.support,{browser:n,iOS:C,android:h?{firefox:g,opera:/Opera/.test(u),samsung:m,version:M}:!1,subtitles:!!l.addTextTrack,fullscreen:"boolean"==typeof document.webkitFullscreenEnabled?document.webkitFullscreenEnabled:"function"==typeof document.webkitCancelFullScreen&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(u)||document.mozFullScreenEnabled||"function"==typeof document.exitFullscreen||"function"==typeof document.msExitFullscreen,inlineBlock:!(c&&n.version<8),touch:"ontouchstart"in window,dataload:!f&&!p&&!y,flex:"flexWrap"in o||"WebkitFlexWrap"in o||"msFlexWrap"in o,svg:!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,zeropreload:!c&&!h,volume:!(f||p||v||d),cachedVideoTag:!(f||p||d||y),firstframe:!(v||y||g||m||I&&10>I||h&&4.4>M),inlineVideo:(!p||I>=10)&&(!y||w>=8.1&&b>=11)&&(!h||M>=3),hlsDuration:!h&&(!n.safari||f||p||d),seekable:!f&&!d,preloadMetadata:!C&&!n.safari});A.autoplay=A.firstframe,y&&(A.browser.safari=!1);try{var S=navigator.plugins["Shockwave Flash"],E=c?new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version"):S.description;c||S[0].enabledPlugin?(E=E.split(/\D+/),E.length&&!E[0]&&(E=E.slice(1)),A.flashVideo=E[0]>9||9==E[0]&&E[3]>=115):A.flashVideo=!1}catch(j){}try{A.video=!!l.canPlayType,A.video&&l.canPlayType("video/mp4")}catch(D){A.video=!1}A.animation=function(){for(var e=["","Webkit","Moz","O","ms","Khtml"],t=document.createElement("p"),n=0;n<e.length;n++)if("undefined"!=typeof t.style[e[n]+"AnimationName"])return!0}()}()},{"../flowplayer":31,"extend-object":39}],26:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){var n=e.conf;if(n.share!==!1&&n.twitter!==!1){e.tweet=function(){var t,r,i=550,o=420,a=screen.height,s=screen.width,l="scrollbars=yes,resizable=yes,toolbar=no,location=yes",u="string"==typeof n.twitter?n.twitter:e.shareUrl();t=Math.round(s/2-i/2),r=0,a>o&&(r=Math.round(a/2-o/2)),window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(u),"intent",l+",width="+i+",height="+o+",left="+t+",top="+r)};var r=i.find(".fp-share-menu",t)[0],a=i.createElement("a",{class:"fp-icon fp-twitter"},"Twitter");i.append(r,a),o.on(t,"click",".fp-twitter",function(){e.tweet()})}})},{"../common":1,"../flowplayer":31,bean:34}],27:[function(e,t,n){(function(n){"use strict";function r(e){return e=parseInt(e,10),e>=10?e:"0"+e}function i(e,t){e=Math.max(e||0,0),e=t?Math.ceil(e):Math.floor(e);var n=Math.floor(e/3600),i=Math.floor(e/60);return e-=60*i,n>=1?(i-=60*n,n+":"+r(i)+":"+r(e)):r(i)+":"+r(e)}var o=e("../flowplayer"),a=e("../common"),s=e("bean"),l=e("./ui/slider"),u=e("./ui/bar-slider"),c=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLW91dGxpbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDk5Ljg0NCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz4KPHRpdGxlPnBsYXktcm91bmRlZC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNNDEuMDM1OSw3MS4xOWE1LjA0OTIsNS4wNDkyLDAsMCwxLTIuNTU3NS0uNjY3M2MtMS44MDMxLTEuMDQxLTIuNzk1OC0zLjEyNDgtMi43OTU4LTUuODY2NFYzNS4xODg3YzAtMi43NDI5Ljk5MzMtNC44MjcyLDIuNzk3LTUuODY3NiwxLjgwMjUtMS4wNDIyLDQuMTAzNC0uODYsNi40OC41MTQzTDcwLjQ3ODIsNDQuNTY3MmMyLjM3NTEsMS4zNzExLDMuNjgyNiwzLjI3MjUsMy42ODMyLDUuMzU0NXMtMS4zMDc2LDMuOTg0NS0zLjY4MzIsNS4zNTYyTDQ0Ljk1OTIsNzAuMDExNEE3LjkzODQsNy45Mzg0LDAsMCwxLDQxLjAzNTksNzEuMTlabS4wMDY1LTQwLjEyM2EyLjY3OTQsMi42Nzk0LDAsMCwwLTEuMzU4Mi4zNDEzYy0xLjAyNjMuNTkyNi0xLjU5MTIsMS45MzQ5LTEuNTkxMiwzLjc4VjY0LjY1NjNjMCwxLjg0NDkuNTY0OSwzLjE4NjYsMS41OTA2LDMuNzc5MSwxLjAyODEuNTkzMiwyLjQ3MzMuNDEwOCw0LjA3LS41MTJMNjkuMjczLDUzLjE5MDZjMS41OTgzLS45MjI3LDIuNDc4LTIuMDgzOCwyLjQ3OC0zLjI2ODlzLS44OC0yLjM0NDUtMi40NzgtMy4yNjY2TDQzLjc1NCwzMS45MjI3QTUuNTY4NSw1LjU2ODUsMCwwLDAsNDEuMDQyMywzMS4wNjcxWiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),f=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLWZpbGwiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiPgogIDxkZWZzPjxzdHlsZT4uYXtmaWxsOiMwMDA7b3BhY2l0eTowLjY1O30uYntmaWxsOiNmZmY7b3BhY2l0eToxLjA7fTwvc3R5bGU+CiAgPC9kZWZzPjx0aXRsZT5wbGF5LXJvdW5kZWQtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cGF0aCBjbGFzcz0iYiIgZD0iTTM1Ljk0MiwzNS4yMzIzYzAtNC43Mjg5LDMuMzUwNi02LjY2MzcsNy40NDYtNC4yOTcxTDY4LjgzLDQ1LjYyMzVjNC4wOTU2LDIuMzY0LDQuMDk1Niw2LjIzMTksMCw4LjU5NzdMNDMuMzg4LDY4LjkxYy00LjA5NTQsMi4zNjQtNy40NDYuNDMtNy40NDYtNC4yOTc5WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPgogIDwvc3ZnPgogIAo=","base64"),d=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj4KICA8ZGVmcz4KICAgIDxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5jb250cm9sYnV0dG9ue2ZpbGw6I2ZmZjt9PC9zdHlsZT4KICA8L2RlZnM+CiAgPHRpdGxlPnBsYXktc2hhcnAtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cG9seWdvbiBjbGFzcz0iY29udHJvbGJ1dHRvbiIgcG9pbnRzPSI3My42MDEgNTAgMzcuOTY4IDcwLjU3MyAzNy45NjggMjkuNDI3IDczLjYwMSA1MCIgZmlsdGVyPSJ1cmwoI2YxKSIvPgo8L3N2Zz4K","base64"),p=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDQgOTkuODQzNCI+PGRlZnM+PHN0eWxlPi5jb250cm9sYnV0dG9uYmd7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGxheS1zaGFycC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNMzYuOTQ0Myw3Mi4yNDczVjI3LjI5MTZMNzUuODc3Niw0OS43N1ptMi4yLTQxLjE0NTVWNjguNDM3MUw3MS40Nzc2LDQ5Ljc3WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),h=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDM0IDk5Ljg0MzQiPjxkZWZzPjxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5yZWN0e2ZpbGw6I2ZmZjt9PC9zdHlsZT4KPC9kZWZzPjx0aXRsZT5wYXVzZS1yb3VuZGVkLW91dGxpbmU8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxMi0uMDc4M2E1MCw1MCwwLDEsMCw1MC4wMDA2LDUwQTUwLjA1NjIsNTAuMDU2MiwwLDAsMCw0OS45MjEyLS4wNzgzWiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIj48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTM5LjAwMzYsNzEuOTcyNmE3LjU2NSw3LjU2NSwwLDAsMS03LjU1Ny03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NDgsNy41NjQ4LDAsMCwxLDM5LjAwMzYsNzEuOTcyNlptMC00MS45MDRhNS4zNjQ3LDUuMzY0NywwLDAsMC01LjM1OTMsNS4zNTgydjI4Ljk5YTUuMzU4Nyw1LjM1ODcsMCwwLDAsMTAuNzE3NCwwdi0yOC45OUE1LjM2NDUsNS4zNjQ1LDAsMCwwLDM5LjAwMzYsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTYwLjg0LDcxLjk3MjZhNy41NjQ4LDcuNTY0OCwwLDAsMS03LjU1Ni03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NSw3LjU2NSwwLDAsMSw2MC44NCw3MS45NzI2Wm0wLTQxLjkwNGE1LjM2NDUsNS4zNjQ1LDAsMCwwLTUuMzU4Miw1LjM1ODJ2MjguOTlhNS4zNTg3LDUuMzU4NywwLDAsMCwxMC43MTc0LDB2LTI4Ljk5QTUuMzY0Nyw1LjM2NDcsMCwwLDAsNjAuODQsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48L2c+PC9zdmc+Cg==","base64"),g=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utcm91bmRlZC1maWxsPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIiBmaWx0ZXI9InVybCgjZjEpIj48cmVjdCBjbGFzcz0icmVjdCIgeD0iMzEuODQ0IiB5PSIyOC4xMjMxIiB3aWR0aD0iMTMuNDM2MiIgaGVpZ2h0PSI0My41OTczIiByeD0iNi43MTgxIiByeT0iNi43MTgxIi8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjU2MzgiIHk9IjI4LjEyMzEiIHdpZHRoPSIxMy40MzYyIiBoZWlnaHQ9IjQzLjU5NzMiIHJ4PSI2LjcxODEiIHJ5PSI2LjcxODEiLz48L2c+PC9zdmc+Cg==","base64"),m=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtZmlsbCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PGRlZnM+PHN0eWxlPi5mcC1jb2xvci1wbGF5e29wYWNpdHk6MC42NTt9LnJlY3R7ZmlsbDojZmZmO308L3N0eWxlPgo8L2RlZnM+PHRpdGxlPnBhdXNlLXNoYXJwLWZpbGw8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxNy0uMDc4YTUwLDUwLDAsMSwwLDUwLDUwQTUwLjA1NjQsNTAuMDU2NCwwLDAsMCw0OS45MjE3LS4wNzhaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxyZWN0IGNsYXNzPSJyZWN0IiB4PSIzMy41IiB5PSIzMC4xMDQyIiB3aWR0aD0iMTIuMjYzNCIgaGVpZ2h0PSIzOS43OTE3Ii8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjIzNjYiIHk9IjMwLjEwNDIiIHdpZHRoPSIxMi4yNjM0IiBoZWlnaHQ9IjM5Ljc5MTciLz48L2c+PC9zdmc+Cg==","base64"),v=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtb3V0bGluZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgOTkuODQzNCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utc2hhcnAtb3V0bGluZTwvdGl0bGU+PHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjEyLS4wNzgzYTUwLDUwLDAsMSwwLDUwLjAwMDYsNTBBNTAuMDU2Miw1MC4wNTYyLDAsMCwwLDQ5LjkyMTItLjA3ODNaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNDYuODcwOSw2OS45NTMxSDMzLjEzODVWMjkuODlINDYuODcwOVpNMzUuMTQxNiw2Ny45NWg5LjcyNjJWMzEuODkzNUgzNS4xNDE2WiIvPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNjYuNzA0Nyw2OS45NTMxSDUyLjk3MjJWMjkuODlINjYuNzA0N1pNNTQuOTc1NCw2Ny45NWg5LjcyNjJWMzEuODkzNUg1NC45NzU0WiIvPjwvZz48L3N2Zz4K","base64"),y=n("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLW91dGxpbmUiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDUwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgo8L3N2Zz4K","base64"),w=n("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLWZpbGwiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC4wcyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuNHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCA1MCkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMS4ycyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvY