shaka-player 4.15.53 → 4.15.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/locales.js CHANGED
@@ -916,52 +916,52 @@ shaka.ui.Locales.addTo = function(localization) {
916
916
  * @const
917
917
  */
918
918
  shaka.ui.Locales.Ids = {
919
- STATISTICS: 'STATISTICS',
920
- SUBTITLE_FORCED: 'SUBTITLE_FORCED',
921
- FAST_FORWARD: 'FAST_FORWARD',
922
- RECENTER_VR: 'RECENTER_VR',
919
+ BACK: 'BACK',
923
920
  NOT_APPLICABLE: 'NOT_APPLICABLE',
924
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
925
- LIVE: 'LIVE',
926
- CAST: 'CAST',
921
+ QUALITY: 'QUALITY',
922
+ SEEK: 'SEEK',
923
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
924
+ AUTO_QUALITY: 'AUTO_QUALITY',
925
+ SKIP_NEXT: 'SKIP_NEXT',
927
926
  PLAY: 'PLAY',
927
+ CAST: 'CAST',
928
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
928
929
  UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
929
- AIRPLAY: 'AIRPLAY',
930
- SURROUND: 'SURROUND',
930
+ REWIND: 'REWIND',
931
931
  RESOLUTION: 'RESOLUTION',
932
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
933
- TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
934
- ON: 'ON',
935
- BACK: 'BACK',
936
- PAUSE: 'PAUSE',
937
- SKIP_AD: 'SKIP_AD',
938
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
932
+ FULL_SCREEN: 'FULL_SCREEN',
933
+ MUTE: 'MUTE',
939
934
  OFF: 'OFF',
940
- DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
935
+ SKIP_AD: 'SKIP_AD',
936
+ STATISTICS: 'STATISTICS',
937
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
938
+ PAUSE: 'PAUSE',
939
+ SURROUND: 'SURROUND',
940
+ AIRPLAY: 'AIRPLAY',
941
941
  CHAPTERS: 'CHAPTERS',
942
+ REPLAY: 'REPLAY',
942
943
  AD_STATISTICS: 'AD_STATISTICS',
943
- AD_PROGRESS: 'AD_PROGRESS',
944
- CAPTIONS: 'CAPTIONS',
945
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
946
- QUALITY: 'QUALITY',
944
+ AD_DURATION: 'AD_DURATION',
945
+ ON: 'ON',
947
946
  LANGUAGE: 'LANGUAGE',
948
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
949
947
  MORE_SETTINGS: 'MORE_SETTINGS',
950
- PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
951
948
  PLAYBACK_RATE: 'PLAYBACK_RATE',
952
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
953
- REWIND: 'REWIND',
949
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
950
+ TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
951
+ FAST_FORWARD: 'FAST_FORWARD',
954
952
  VOLUME: 'VOLUME',
955
- AD_TIME: 'AD_TIME',
953
+ UNMUTE: 'UNMUTE',
954
+ DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
955
+ AD_PROGRESS: 'AD_PROGRESS',
956
956
  EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
957
- SKIP_NEXT: 'SKIP_NEXT',
958
- AD_DURATION: 'AD_DURATION',
959
- MUTE: 'MUTE',
960
- SEEK: 'SEEK',
961
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
957
+ CAPTIONS: 'CAPTIONS',
958
+ SUBTITLE_FORCED: 'SUBTITLE_FORCED',
959
+ PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
960
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
961
+ LIVE: 'LIVE',
962
+ AD_TIME: 'AD_TIME',
963
+ RECENTER_VR: 'RECENTER_VR',
964
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
962
965
  LOOP: 'LOOP',
963
- REPLAY: 'REPLAY',
964
- AUTO_QUALITY: 'AUTO_QUALITY',
965
- UNMUTE: 'UNMUTE',
966
- FULL_SCREEN: 'FULL_SCREEN',
966
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
967
967
  };
@@ -1251,7 +1251,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
1251
1251
  goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);goog.exportProperty(shaka.Player.prototype,"destroyAllPreloads",shaka.Player.prototype.destroyAllPreloads);goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);
1252
1252
  goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);
1253
1253
  goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setQueueManagerFactory",shaka.Player.setQueueManagerFactory);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);
1254
- shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.53-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.ads={};
1254
+ shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.54-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.ads={};
1255
1255
  shaka.ads.AdsStats=class{constructor(){this.loadTimes_=[];this.errors_=this.skipped_=this.playedCompletely_=this.overlayAds_=this.started_=0}addLoadTime(a){this.loadTimes_.push(a)}incrementStarted(){this.started_++}incrementOverlayAds(){this.overlayAds_++}incrementPlayedCompletely(){this.playedCompletely_++}incrementSkipped(){this.skipped_++}incrementErrors(){this.errors_++}getAverageLoadTime_(){return this.loadTimes_.length?this.loadTimes_.reduce((a,b)=>a+b,0)/this.loadTimes_.length:0}getBlob(){return{loadTimes:this.loadTimes_,
1256
1256
  averageLoadTime:this.getAverageLoadTime_(),started:this.started_,overlayAds:this.overlayAds_,playedCompletely:this.playedCompletely_,skipped:this.skipped_,errors:this.errors_}}};shaka.ads.ClientSideAd=class{constructor(a,b,c){this.ad_=a;this.manager_=b;this.video_=c;this.isPaused_=!1;this.volume_=this.manager_.getVolume();this.eventManager_=new shaka.util.EventManager;this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.PAUSED,()=>{this.isPaused_=!0});this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.RESUMED,()=>{this.isPaused_=!1})}needsSkipUI(){return!1}isClientRendering(){return!0}hasCustomClick(){return!0}isUsingAnotherMediaElement(){return!0}getDuration(){return this.ad_.getDuration()}getMinSuggestedDuration(){return this.ad_.getMinSuggestedDuration()}getRemainingTime(){return this.manager_.getRemainingTime()}isPaused(){return this.isPaused_}isSkippable(){return this.ad_.getSkipTimeOffset()>=
1257
1257
  0}getTimeUntilSkippable(){var a=this.ad_.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)}canSkipNow(){return this.manager_.getAdSkippableState()}skip(){return this.manager_.skip()}setPaused(a){this.isPaused_=a}pause(){return this.manager_.pause()}play(){return this.manager_.resume()}getVolume(){return this.manager_.getVolume()}setVolume(a){this.video_.volume=a;return this.manager_.setVolume(a)}isMuted(){return this.manager_.getVolume()==0}isLinear(){return this.ad_.isLinear()}resize(a,
@@ -752,7 +752,7 @@ Q.prototype.seekRange=Q.prototype.Ha;Q.prototype.isVideoOnly=Q.prototype.ri;Q.pr
752
752
  Q.prototype.resetConfiguration=Q.prototype.Og;Q.prototype.getBufferFullness=Q.prototype.yg;Q.prototype.getNonDefaultConfiguration=Q.prototype.Cg;Q.prototype.getConfigurationForLowLatency=Q.prototype.Fh;Q.prototype.getConfiguration=Q.prototype.getConfiguration;Q.prototype.configurationForLowLatency=Q.prototype.sh;Q.prototype.configure=Q.prototype.configure;Q.prototype.releaseAllMutexes=Q.prototype.Oi;Q.prototype.destroyAllPreloads=Q.prototype.cf;Q.prototype.preload=Q.prototype.preload;
753
753
  Q.prototype.detachAndSavePreload=Q.prototype.ug;Q.prototype.unloadAndSavePreload=Q.prototype.ej;Q.prototype.load=Q.prototype.load;Q.prototype.updateStartTime=Q.prototype.ij;Q.prototype.unload=Q.prototype.bc;Q.prototype.detach=Q.prototype.detach;Q.prototype.attachCanvas=Q.prototype.jh;Q.prototype.attach=Q.prototype.Eb;Q.probeSupport=async function(a=!0){let b={};a&&(b=await Ig());a=Tb();const c=zj(),d=await Aa().o(),e={manifest:a,media:c,drm:b,hardwareResolution:d};bp.forEach((f,g)=>{e[g]=f()});return e};
754
754
  Q.isBrowserSupported=function(){window.Promise||ja("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;Aa();return Ub()?!0:Vb("application/x-mpegurl")};Q.setQueueManagerFactory=function(a){Jq=a};Q.setAdManagerFactory=function(a){Iq=a};Q.registerSupportPlugin=ap;Q.prototype.destroy=Q.prototype.destroy;var hq=0,Hq=1,jp=2,Jp=3;
755
- Q.LoadMode={DESTROYED:hq,NOT_LOADED:Hq,MEDIA_SOURCE:jp,SRC_EQUALS:Jp};Q.version="v4.15.53";var Ha;const Kq=["4","15"];Ha=new Ea(Number(Kq[0]),Number(Kq[1]));La=new Ia;var bp=new Map,Iq=null,Jq=null;function Lq(a){return a.g.length?a.g.reduce((b,c)=>b+c,0)/a.g.length:0}var Mq=class{constructor(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}};var R=class{constructor(a,b,c){this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new sa;this.l.F(this.h,google.ima.AdEvent.Type.PAUSED,()=>{this.i=!0});this.l.F(this.h,google.ima.AdEvent.Type.RESUMED,()=>{this.i=!1})}needsSkipUI(){return!1}isClientRendering(){return!0}hasCustomClick(){return!0}isUsingAnotherMediaElement(){return!0}getDuration(){return this.g.getDuration()}getMinSuggestedDuration(){return this.g.getMinSuggestedDuration()}getRemainingTime(){return this.h.getRemainingTime()}isPaused(){return this.i}isSkippable(){return this.g.getSkipTimeOffset()>=
755
+ Q.LoadMode={DESTROYED:hq,NOT_LOADED:Hq,MEDIA_SOURCE:jp,SRC_EQUALS:Jp};Q.version="v4.15.54";var Ha;const Kq=["4","15"];Ha=new Ea(Number(Kq[0]),Number(Kq[1]));La=new Ia;var bp=new Map,Iq=null,Jq=null;function Lq(a){return a.g.length?a.g.reduce((b,c)=>b+c,0)/a.g.length:0}var Mq=class{constructor(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}};var R=class{constructor(a,b,c){this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new sa;this.l.F(this.h,google.ima.AdEvent.Type.PAUSED,()=>{this.i=!0});this.l.F(this.h,google.ima.AdEvent.Type.RESUMED,()=>{this.i=!1})}needsSkipUI(){return!1}isClientRendering(){return!0}hasCustomClick(){return!0}isUsingAnotherMediaElement(){return!0}getDuration(){return this.g.getDuration()}getMinSuggestedDuration(){return this.g.getMinSuggestedDuration()}getRemainingTime(){return this.h.getRemainingTime()}isPaused(){return this.i}isSkippable(){return this.g.getSkipTimeOffset()>=
756
756
  0}getTimeUntilSkippable(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)}canSkipNow(){return this.h.getAdSkippableState()}skip(){return this.h.skip()}pause(){return this.h.pause()}play(){return this.h.resume()}getVolume(){return this.h.getVolume()}setVolume(a){this.m.volume=a;return this.h.setVolume(a)}isMuted(){return this.h.getVolume()==0}isLinear(){return this.g.isLinear()}resize(a,b){this.h.resize(a,b)}setMuted(a){(this.m.muted=a)?(this.j=this.getVolume(),this.h.setVolume(0)):
757
757
  this.h.setVolume(this.j)}getSequenceLength(){const a=this.g.getAdPodInfo();return a==null?1:a.getTotalAds()}getPositionInSequence(){const a=this.g.getAdPodInfo();return a==null?1:a.getAdPosition()}getTitle(){return this.g.getTitle()}getDescription(){return this.g.getDescription()}getVastMediaBitrate(){return this.g.getVastMediaBitrate()}getVastMediaHeight(){return this.g.getVastMediaHeight()}getVastMediaWidth(){return this.g.getVastMediaWidth()}getVastAdId(){return""}getAdId(){return this.g.getAdId()}getCreativeAdId(){return this.g.getCreativeAdId()}getAdvertiserName(){return this.g.getAdvertiserName()}getMediaUrl(){return this.g.getMediaUrl()}getTimeOffset(){const a=
758
758
  this.g.getAdPodInfo();return a==null?0:a.getTimeOffset()}getPodIndex(){const a=this.g.getAdPodInfo();return a==null?0:a.getPodIndex()}release(){this.h=this.g=null}};x("shaka.ads.ClientSideAd",R);R.prototype.release=R.prototype.release;R.prototype.getPodIndex=R.prototype.getPodIndex;R.prototype.getTimeOffset=R.prototype.getTimeOffset;R.prototype.getMediaUrl=R.prototype.getMediaUrl;R.prototype.getAdvertiserName=R.prototype.getAdvertiserName;R.prototype.getCreativeAdId=R.prototype.getCreativeAdId;
@@ -775,7 +775,7 @@ a.h.F(a.g,google.ima.AdEvent.Type.COMPLETE,c=>{b(c,"ad-complete")});a.h.F(a.g,go
775
775
  c=>{b(c,"ad-duration-changed")});a.h.F(a.g,google.ima.AdEvent.Type.USER_CLOSE,c=>{b(c,"ad-closed")});a.h.F(a.g,google.ima.AdEvent.Type.LOADED,c=>{b(c,"ad-loaded")});a.h.F(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,c=>{b(c,"ad-linear-changed")});a.h.F(a.g,google.ima.AdEvent.Type.AD_METADATA,c=>{b(c,"ad-metadata")});a.h.F(a.g,google.ima.AdEvent.Type.LOG,c=>{b(c,"ad-recoverable-error")});a.h.F(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,c=>{b(c,"ad-break-ready")});a.h.F(a.g,google.ima.AdEvent.Type.INTERACTION,
776
776
  c=>{b(c,"ad-interaction")})}
777
777
  function Vq(a,b){const c=b.getAd();c?(a.j=new R(c,a.g,a.i),b.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.o.supportsMultipleMediaElements||a.l(new I("ad-content-pause-requested")),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new I("ad-started",b)),a.j.isLinear()&&(a.u.setAttribute("ad-active","true"),a.o.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):ja("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
778
- var Wq=class{constructor(a,b,c,d,e){this.u=a;this.i=b;this.D=!1;this.A=this.o=null;this.G=NaN;this.l=e;this.j=null;this.h=new sa;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.C=new google.ima.AdDisplayContainer(this.u,this.i);this.C.initialize();this.m=new google.ima.AdsLoader(this.C);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.53");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.F(this.m,
778
+ var Wq=class{constructor(a,b,c,d,e){this.u=a;this.i=b;this.D=!1;this.A=this.o=null;this.G=NaN;this.l=e;this.j=null;this.h=new sa;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.C=new google.ima.AdDisplayContainer(this.u,this.i);this.C.initialize();this.m=new google.ima.AdsLoader(this.C);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.54");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.F(this.m,
779
779
  google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,f=>{Rq(this,f)});this.h.F(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,f=>{Uq(this,f)});this.h.F(this.i,"ended",()=>{this.m.contentComplete()});this.h.ya(this.i,"play",()=>{this.D=!0})}configure(a){this.o=a}stop(){this.g&&this.g.stop();this.u&&Li(this.u)}release(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.C.destroy()}};var S=class{constructor(a,b,c,d,e,f){this.g=a;this.h=b;this.j=(this.i=b.isSkippable)?b.skipOffset||0:b.skipOffset;this.l=b.skipFor;this.A=c;this.o=d;this.m=e;this.u=f;this.B=b.overlay}needsSkipUI(){return!0}isClientRendering(){return!0}hasCustomClick(){return!1}isUsingAnotherMediaElement(){return this.u}getDuration(){const a=this.g.duration;return isNaN(a)?-1:a}getMinSuggestedDuration(){return this.getDuration()}getRemainingTime(){const a=this.g.duration;return isNaN(a)?-1:a-this.g.currentTime}isPaused(){return this.g.paused}isSkippable(){return this.i&&
780
780
  this.l!=null?this.getDuration()-this.getRemainingTime()<this.j+this.l:this.i}getTimeUntilSkippable(){if(this.isSkippable()){const a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0)}return Math.max(this.getRemainingTime(),0)}canSkipNow(){return this.i&&this.getTimeUntilSkippable()==0}skip(){this.canSkipNow()&&this.A()}pause(){return this.g.pause()}play(){return this.g.play()}getVolume(){return this.g.volume}setVolume(a){this.g.volume=a}isMuted(){return this.g.muted}isLinear(){return this.B==
781
781
  null}resize(){}setMuted(a){this.g.muted=a}getSequenceLength(){return this.o}getPositionInSequence(){return this.m}getTitle(){return""}getDescription(){return""}getVastMediaBitrate(){return 0}getVastMediaHeight(){return 0}getVastMediaWidth(){return 0}getVastAdId(){return""}getAdId(){return this.h.id||""}getCreativeAdId(){return""}getAdvertiserName(){return""}getMediaUrl(){return this.h.uri}getTimeOffset(){return this.h.pre?0:this.h.post?-1:this.h.startTime}getPodIndex(){return 0}release(){this.g=null}};
@@ -859,8 +859,8 @@ var W=class extends Uf{constructor(){super();this.h=this.i=this.j=this.g=null;th
859
859
  this.j=new Wq(a,b,this.o,c,d=>Fr(this,d));this.j.configure(this.l)}release(){this.g&&(this.g.release(),this.g=null);this.j&&(this.j.release(),this.j=null);this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);super.release()}onAssetUnload(){this.g&&this.g.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.h&&this.h.stop();this.dispatchEvent(new I("ad-stopped"));this.dispatchEvent(new I("ad-content-attach-requested"));this.m=new Mq}requestClientSideAds(a){if(!this.j)throw new D(1,
860
860
  10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.G=Date.now()/1E3;b.m.requestAds(a)}updateClientSideAdsRenderingSettings(a){if(!this.j)throw new D(1,10,10001);var b=this.j;b.B=a;b.g&&b.g.updateAdsRenderingSettings(b.B)}initMediaTailor(a,b,c){this.i&&this.i.release();this.i=new Cr(a,b,c,d=>Fr(this,d))}requestMediaTailorStream(a,b,c=""){if(!this.i)throw new D(1,10,10005);var d=this.i;d.o?a=Promise.reject(new D(1,10,10004)):(d.o=new Kf,rr(d,a,b),d.H=c||"",d.O=Date.now()/1E3,a=d.o);
861
861
  return a}addMediaTailorTrackingUrl(a){if(!this.i)throw new D(1,10,10005);var b=this.i;b.G=a;b.i(new I("ads-loaded",(new Map).set("loadTime",0)))}initServerSide(a,b){if(!window.google||!google.ima||!google.ima.dai)throw new D(2,10,10002);this.h&&this.h.release();this.h=new Er(a,b,this.o,c=>Fr(this,c));this.h.configure(this.l)}requestServerSideStream(a,b=""){if(!this.h)throw new D(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&ja('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');
862
- a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.15.53";c=this.h;c.j?a=Promise.reject(new D(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&(c.G=!0),c.j=new Kf,c.g.requestStream(a),c.B=b||"",c.D=Date.now()/1E3,a=c.j);return a}replaceServerSideAdTagParameters(a){if(!this.h)throw new D(1,10,10003);(a.mpt||a.mpv)&&ja('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');
863
- a.mpt="Shaka Player";a.mpv="v4.15.53";this.h.g.replaceAdTagParameters(a)}getServerSideCuePoints(){Ka("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()}getCuePoints(){let a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a}getStats(){var a=this.m;return{loadTimes:a.g,averageLoadTime:Lq(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i}}onManifestUpdated(a){if(this.i)this.i.onManifestUpdated(a)}onDashTimedMetadata(a){this.h&&
862
+ a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.15.54";c=this.h;c.j?a=Promise.reject(new D(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&(c.G=!0),c.j=new Kf,c.g.requestStream(a),c.B=b||"",c.D=Date.now()/1E3,a=c.j);return a}replaceServerSideAdTagParameters(a){if(!this.h)throw new D(1,10,10003);(a.mpt||a.mpv)&&ja('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');
863
+ a.mpt="Shaka Player";a.mpv="v4.15.54";this.h.g.replaceAdTagParameters(a)}getServerSideCuePoints(){Ka("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()}getCuePoints(){let a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a}getStats(){var a=this.m;return{loadTimes:a.g,averageLoadTime:Lq(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i}}onManifestUpdated(a){if(this.i)this.i.onManifestUpdated(a)}onDashTimedMetadata(a){this.h&&
864
864
  a.schemeIdUri=="urn:google:dai:2018"&&this.h.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)}onHlsTimedMetadata(a,b){this.h&&this.h.g.processMetadata("ID3",a.data,b)}onCueMetadataChange(a){if(this.h)this.h.onCueMetadataChange(a)}onHLSInterstitialMetadata(a,b,c){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,a,b),this.g&&nr(this.g,c))}onDASHInterstitialMetadata(a,b,c){if(!this.l||!this.l.disableDASHInterstitial){var d=c.schemeIdUri;
865
865
  if(d=="urn:mpeg:dash:event:alternativeMPD:insert:2025"||d=="urn:mpeg:dash:event:alternativeMPD:replace:2025"){if(this.g||this.initInterstitial(null,a,b),this.g){a=this.g;const l=c.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:replace:2025",m=c.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:insert:2025";if(l||m){b=c.startTime;d=c.endTime;var e=null,f=0;for(var g of c.eventNode.children)if(g.tagName=="AlternativeMPD"){var h=g.attributes.uri;if(h){var k=h;break}}else if(g.tagName=="InsertPresentation"||
866
866
  g.tagName=="ReplacePresentation")if(h=g.attributes.url){k=rb(h);(h=G(g,"maxDuration",Vc))&&(e=h/c.timescale);(g=G(g,"returnOffset",Vc))&&(f=g/c.timescale);l&&f&&(d=b+f);break}k&&mr(a,[{id:c.id,groupId:null,startTime:b,endTime:d,uri:k,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:m?f:null,playoutLimit:e,once:!1,pre:!1,post:!1,timelineRange:l&&!m,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}])}}}else(d=="urn:mpeg:dash:event:2012"||
@@ -1795,7 +1795,7 @@ goog.exportProperty(shaka.Player.prototype,"getNonDefaultConfiguration",shaka.Pl
1795
1795
  goog.exportProperty(shaka.Player.prototype,"configure",shaka.Player.prototype.configure);goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);goog.exportProperty(shaka.Player.prototype,"destroyAllPreloads",shaka.Player.prototype.destroyAllPreloads);goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);
1796
1796
  goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);
1797
1797
  goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setQueueManagerFactory",shaka.Player.setQueueManagerFactory);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);
1798
- goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.53-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
1798
+ goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.54-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
1799
1799
  shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.ads={};shaka.ads.AdsStats=function(){this.loadTimes_=[];this.errors_=this.skipped_=this.playedCompletely_=this.overlayAds_=this.started_=0};shaka.ads.AdsStats.prototype.addLoadTime=function(a){this.loadTimes_.push(a)};shaka.ads.AdsStats.prototype.incrementStarted=function(){this.started_++};shaka.ads.AdsStats.prototype.incrementOverlayAds=function(){this.overlayAds_++};shaka.ads.AdsStats.prototype.incrementPlayedCompletely=function(){this.playedCompletely_++};
1800
1800
  shaka.ads.AdsStats.prototype.incrementSkipped=function(){this.skipped_++};shaka.ads.AdsStats.prototype.incrementErrors=function(){this.errors_++};shaka.ads.AdsStats.prototype.getAverageLoadTime_=function(){return this.loadTimes_.length?this.loadTimes_.reduce(function(a,b){return a+b},0)/this.loadTimes_.length:0};
1801
1801
  shaka.ads.AdsStats.prototype.getBlob=function(){return{loadTimes:this.loadTimes_,averageLoadTime:this.getAverageLoadTime_(),started:this.started_,overlayAds:this.overlayAds_,playedCompletely:this.playedCompletely_,skipped:this.skipped_,errors:this.errors_}};shaka.ads.ClientSideAd=function(a,b,c){var d=this;this.ad_=a;this.manager_=b;this.video_=c;this.isPaused_=!1;this.volume_=this.manager_.getVolume();this.eventManager_=new shaka.util.EventManager;this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.PAUSED,function(){d.isPaused_=!0});this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.RESUMED,function(){d.isPaused_=!1})};shaka.ads.ClientSideAd.prototype.needsSkipUI=function(){return!1};
@@ -906,7 +906,7 @@ V.prototype.getNetworkingEngine=V.prototype.Jb;V.prototype.getMediaElement=V.pro
906
906
  V.prototype.configure=V.prototype.configure;V.prototype.releaseAllMutexes=V.prototype.Nk;V.prototype.destroyAllPreloads=V.prototype.og;V.prototype.preload=V.prototype.preload;V.prototype.detachAndSavePreload=V.prototype.Wh;V.prototype.unloadAndSavePreload=V.prototype.il;V.prototype.load=V.prototype.load;V.prototype.updateStartTime=V.prototype.ol;V.prototype.unload=V.prototype.vc;V.prototype.detach=V.prototype.detach;V.prototype.attachCanvas=V.prototype.mj;V.prototype.attach=V.prototype.Pb;
907
907
  V.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return G(function(k){switch(k.h){case 1:b={};if(!a){k.A(2);break}return k.g(ui(),3);case 3:b=k.i;case 2:return c=Ic(),d=Uk(),e=ib(),k.g(e.fc(),4);case 4:return f=k.i,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=Gq,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
908
908
  V.isBrowserSupported=function(){window.Promise||Va("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;ib();return Jc()?!0:Kc().canPlayType("application/x-mpegurl")!=""};V.setQueueManagerFactory=function(a){yq=a};V.setAdManagerFactory=function(a){xq=a};V.registerSupportPlugin=Fq;V.prototype.destroy=V.prototype.destroy;var Eq=0,tq=1,qr=2,jr=3;
909
- V.LoadMode={DESTROYED:Eq,NOT_LOADED:tq,MEDIA_SOURCE:qr,SRC_EQUALS:jr};V.version="v4.15.53";var as=["4","15"];qb=new function(a){this.g=a;this.i=rb;this.h=sb}(new ob(Number(as[0]),Number(as[1])));var Gq=new Map,xq=null,yq=null;function bs(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function cs(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function ds(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new bb;this.l.G(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.G(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=ds.prototype;p.needsSkipUI=function(){return!1};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!0};p.getDuration=function(){return this.g.getDuration()};
909
+ V.LoadMode={DESTROYED:Eq,NOT_LOADED:tq,MEDIA_SOURCE:qr,SRC_EQUALS:jr};V.version="v4.15.54";var as=["4","15"];qb=new function(a){this.g=a;this.i=rb;this.h=sb}(new ob(Number(as[0]),Number(as[1])));var Gq=new Map,xq=null,yq=null;function bs(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function cs(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function ds(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new bb;this.l.G(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.G(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=ds.prototype;p.needsSkipUI=function(){return!1};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!0};p.getDuration=function(){return this.g.getDuration()};
910
910
  p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.h.getRemainingTime()};p.isPaused=function(){return this.i};p.isSkippable=function(){return this.g.getSkipTimeOffset()>=0};p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.h.getAdSkippableState()};p.skip=function(){return this.h.skip()};p.pause=function(){return this.h.pause()};
911
911
  p.play=function(){return this.h.resume()};p.getVolume=function(){return this.h.getVolume()};p.setVolume=function(a){this.m.volume=a;return this.h.setVolume(a)};p.isMuted=function(){return this.h.getVolume()==0};p.isLinear=function(){return this.g.isLinear()};p.resize=function(a,b){this.h.resize(a,b)};p.setMuted=function(a){(this.m.muted=a)?(this.j=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.j)};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return a==null?1:a.getTotalAds()};
912
912
  p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return a==null?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()};
@@ -922,7 +922,7 @@ function gs(a,b,c){var d=0;b!=null&&(d=b);var e=null;c.attributes.skipoffset&&(e
922
922
  startTime:d,endTime:null,uri:g,mimeType:f.attributes.type||null,isSkippable:e!=null,skipOffset:e,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:b==null,post:b==Infinity,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});break}}}}
923
923
  function hs(a){var b=[];a=t(Ad(a,"vmap:AdBreak"));for(var c=a.next();!c.done;c=a.next()){var d=c.value,e=d.attributes.timeOffset;e&&(c=null,e=="start"?c=null:e=="end"?c=Infinity:c=nd(e),(d=Ed(d,"vmap:AdSource"))&&(d=Ed(d,"vmap:AdTagURI"))&&(d=Bd(d))&&b.push({time:c,uri:d}))}return b}N("shaka.ads.Utils",es);es.ADS_LOADED="ads-loaded";es.AD_STARTED="ad-started";es.AD_FIRST_QUARTILE="ad-first-quartile";es.AD_MIDPOINT="ad-midpoint";es.AD_THIRD_QUARTILE="ad-third-quartile";es.AD_COMPLETE="ad-complete";
924
924
  es.AD_STOPPED="ad-stopped";es.AD_SKIPPED="ad-skipped";es.AD_VOLUME_CHANGED="ad-volume-changed";es.AD_MUTED="ad-muted";es.AD_PAUSED="ad-paused";es.AD_RESUMED="ad-resumed";es.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";es.CUEPOINTS_CHANGED="ad-cue-points-changed";es.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";es.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";es.AD_CLICKED="ad-clicked";es.AD_PROGRESS="ad-progress";es.AD_BUFFERING="ad-buffering";es.AD_IMPRESSION="ad-impression";
925
- es.AD_DURATION_CHANGED="ad-duration-changed";es.AD_CLOSED="ad-closed";es.AD_LOADED="ad-loaded";es.ALL_ADS_COMPLETED="all-ads-completed";es.AD_LINEAR_CHANGED="ad-linear-changed";es.AD_METADATA="ad-metadata";es.AD_RECOVERABLE_ERROR="ad-recoverable-error";es.AD_ERROR="ad-error";es.AD_BREAK_READY="ad-break-ready";es.AD_INTERACTION="ad-interaction";es.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";es.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";es.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function is(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.F=!1;this.B=this.o=null;this.H=NaN;this.l=e;this.j=null;this.h=new bb;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.D=new google.ima.AdDisplayContainer(this.u,this.i);this.D.initialize();this.m=new google.ima.AdsLoader(this.D);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.53");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.G(this.m,
925
+ es.AD_DURATION_CHANGED="ad-duration-changed";es.AD_CLOSED="ad-closed";es.AD_LOADED="ad-loaded";es.ALL_ADS_COMPLETED="all-ads-completed";es.AD_LINEAR_CHANGED="ad-linear-changed";es.AD_METADATA="ad-metadata";es.AD_RECOVERABLE_ERROR="ad-recoverable-error";es.AD_ERROR="ad-error";es.AD_BREAK_READY="ad-break-ready";es.AD_INTERACTION="ad-interaction";es.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";es.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";es.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function is(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.F=!1;this.B=this.o=null;this.H=NaN;this.l=e;this.j=null;this.h=new bb;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.D=new google.ima.AdDisplayContainer(this.u,this.i);this.D.initialize();this.m=new google.ima.AdsLoader(this.D);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.54");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.G(this.m,
926
926
  google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){js(f,g)});this.h.G(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){ks(f,g)});this.h.G(this.i,"ended",function(){f.m.contentComplete()});this.h.Aa(this.i,"play",function(){f.F=!0})}is.prototype.configure=function(a){this.o=a};is.prototype.stop=function(){this.g&&this.g.stop();this.u&&Wj(this.u)};
927
927
  is.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.D.destroy()};function ks(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new T("ad-error",b));ls(a,null);a.l(new T("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
928
928
  function js(a,b){a.l(new T("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.H)));if(a.o.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.G(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.G(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.C);a.l(new T("ima-ad-manager-loaded",(new Map).set("imaAdManager",
@@ -1030,8 +1030,8 @@ p.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!goo
1030
1030
  p.onAssetUnload=function(){this.g&&this.g.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.h&&this.h.stop();this.dispatchEvent(new T("ad-stopped"));this.dispatchEvent(new T("ad-content-attach-requested"));this.m=new bs};p.requestClientSideAds=function(a){if(!this.j)throw new S(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.H=Date.now()/1E3;b.m.requestAds(a)};
1031
1031
  p.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new S(1,10,10001);var b=this.j;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};p.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Ms(a,b,c,function(e){return $s(d,e)})};p.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new S(1,10,10005);var d=this.i;c=c===void 0?"":c;d.l?a=Promise.reject(new S(1,10,10004)):(d.l=new Jg,Ps(d,a,b),d.I=c||"",d.P=Date.now()/1E3,a=d.l);return a};
1032
1032
  p.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new S(1,10,10005);var b=this.i;b.H=a;b.i(new T("ads-loaded",(new Map).set("loadTime",0)))};p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new S(2,10,10002);this.h&&this.h.release();this.h=new Ys(a,b,this.o,function(d){return $s(c,d)});this.h.configure(this.l)};
1033
- p.requestServerSideStream=function(a,b){b=b===void 0?"":b;if(!this.h)throw new S(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Va('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.15.53";c=this.h;c.j?a=Promise.reject(new S(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
1034
- (c.H=!0),c.j=new Jg,c.g.requestStream(a),c.C=b||"",c.F=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.h)throw new S(1,10,10003);(a.mpt||a.mpv)&&Va('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.mpt="Shaka Player";a.mpv="v4.15.53";this.h.g.replaceAdTagParameters(a)};
1033
+ p.requestServerSideStream=function(a,b){b=b===void 0?"":b;if(!this.h)throw new S(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Va('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.15.54";c=this.h;c.j?a=Promise.reject(new S(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
1034
+ (c.H=!0),c.j=new Jg,c.g.requestStream(a),c.C=b||"",c.F=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.h)throw new S(1,10,10003);(a.mpt||a.mpv)&&Va('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.mpt="Shaka Player";a.mpv="v4.15.54";this.h.g.replaceAdTagParameters(a)};
1035
1035
  p.getServerSideCuePoints=function(){pb("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};p.getCuePoints=function(){var a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};p.getStats=function(){var a=this.m;return{loadTimes:a.g,averageLoadTime:cs(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i}};p.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
1036
1036
  p.onDashTimedMetadata=function(a){this.h&&a.schemeIdUri=="urn:google:dai:2018"&&this.h.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};p.onHlsTimedMetadata=function(a,b){this.h&&this.h.g.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.h)this.h.onCueMetadataChange(a)};p.onHLSInterstitialMetadata=function(a,b,c){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,a,b),this.g&&Ds(this.g,c))};
1037
1037
  p.onDASHInterstitialMetadata=function(a,b,c){if(!this.l||!this.l.disableDASHInterstitial){var d=c.schemeIdUri;if(d=="urn:mpeg:dash:event:alternativeMPD:insert:2025"||d=="urn:mpeg:dash:event:alternativeMPD:replace:2025"){if(this.g||this.initInterstitial(null,a,b),this.g&&(a=this.g,b=c.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:replace:2025",d=c.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:insert:2025",b||d)){for(var e=c.startTime,f=c.endTime,g=null,h=0,k,l=t(c.eventNode.children),m=l.next();!m.done;m=
@@ -1598,7 +1598,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
1598
1598
  goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);goog.exportProperty(shaka.Player.prototype,"destroyAllPreloads",shaka.Player.prototype.destroyAllPreloads);goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);
1599
1599
  goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);
1600
1600
  goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setQueueManagerFactory",shaka.Player.setQueueManagerFactory);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);
1601
- shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.53-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.polyfill=class{static installAll(){for(const a of shaka.polyfill.polyfills_)try{a.callback()}catch(b){shaka.log.alwaysWarn("Error installing polyfill!",b)}}static register(a,b){a={priority:b||0,callback:a};for(b=0;b<shaka.polyfill.polyfills_.length;b++)if(shaka.polyfill.polyfills_[b].priority<a.priority){shaka.polyfill.polyfills_.splice(b,0,a);return}shaka.polyfill.polyfills_.push(a)}};goog.exportSymbol("shaka.polyfill",shaka.polyfill);goog.exportProperty(shaka.polyfill,"register",shaka.polyfill.register);
1601
+ shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.54-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.polyfill=class{static installAll(){for(const a of shaka.polyfill.polyfills_)try{a.callback()}catch(b){shaka.log.alwaysWarn("Error installing polyfill!",b)}}static register(a,b){a={priority:b||0,callback:a};for(b=0;b<shaka.polyfill.polyfills_.length;b++)if(shaka.polyfill.polyfills_[b].priority<a.priority){shaka.polyfill.polyfills_.splice(b,0,a);return}shaka.polyfill.polyfills_.push(a)}};goog.exportSymbol("shaka.polyfill",shaka.polyfill);goog.exportProperty(shaka.polyfill,"register",shaka.polyfill.register);
1602
1602
  goog.exportProperty(shaka.polyfill,"installAll",shaka.polyfill.installAll);shaka.polyfill.polyfills_=[];shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess=class{constructor(a,b,c){this.mksa_=a;this.videoScheme_=b||null;this.audioScheme_=c||null;this.keySystem=a.keySystem}getConfiguration(){const a=this.mksa_.getConfiguration();if(a.videoCapabilities)for(const b of a.videoCapabilities)b.encryptionScheme=this.videoScheme_;if(a.audioCapabilities)for(const b of a.audioCapabilities)b.encryptionScheme=this.audioScheme_;return a}createMediaKeys(){return this.mksa_.createMediaKeys()}};shaka.polyfill.EncryptionSchemeUtils=class{static guessSupportedScheme(a){const b=shaka.drm.DrmUtils;if(b.isFairPlayKeySystem(a))return"cbcs";if(b.isWidevineKeySystem(a)||b.isPlayReadyKeySystem(a)||b.isClearKeySystem(a)||b.isWisePlayKeySystem(a))return"cenc";shaka.log.alwaysWarn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}static hasEncryptionScheme(a){if(!a)return!1;a=a.getConfiguration();const b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&
1603
1603
  a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}static checkSupportedScheme(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&shaka.device.DeviceFactory.getDevice().supportsCbcsWithoutEncryptionSchemeSupport()?!0:!1}};shaka.polyfill.EmeEncryptionScheme=class{static install(){shaka.device.DeviceFactory.getDevice().supportsEncryptionSchemePolyfill()&&(shaka.polyfill.EmeEncryptionScheme.originalRMKSA_||navigator.emeEncryptionSchemePolyfilled?shaka.log.debug("EmeEncryptionSchemePolyfill:","Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(shaka.polyfill.EmeEncryptionScheme.originalRMKSA_=navigator.requestMediaKeySystemAccess,shaka.log.debug("EmeEncryptionSchemePolyfill:",
1604
1604
  "Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=shaka.polyfill.EmeEncryptionScheme.probeRMKSA_,navigator.emeEncryptionSchemePolyfilled=!0):shaka.log.debug("EmeEncryptionSchemePolyfill:","EME not found"))}static async probeRMKSA_(a,b){goog.asserts.assert(this==navigator,'bad "this" for requestMediaKeySystemAccess');const c=await shaka.polyfill.EmeEncryptionScheme.originalRMKSA_.call(this,a,b);if(shaka.polyfill.EncryptionSchemeUtils.hasEncryptionScheme(c))return shaka.log.debug("EmeEncryptionSchemePolyfill:",
@@ -912,7 +912,7 @@ Z.prototype.seekRange=Z.prototype.Ha;Z.prototype.isVideoOnly=Z.prototype.Vg;Z.pr
912
912
  Z.prototype.resetConfiguration=Z.prototype.wh;Z.prototype.getBufferFullness=Z.prototype.Se;Z.prototype.getNonDefaultConfiguration=Z.prototype.wg;Z.prototype.getConfigurationForLowLatency=Z.prototype.kg;Z.prototype.getConfiguration=Z.prototype.getConfiguration;Z.prototype.configurationForLowLatency=Z.prototype.Zf;Z.prototype.configure=Z.prototype.configure;Z.prototype.releaseAllMutexes=Z.prototype.sh;Z.prototype.destroyAllPreloads=Z.prototype.Ne;Z.prototype.preload=Z.prototype.preload;
913
913
  Z.prototype.detachAndSavePreload=Z.prototype.Oe;Z.prototype.unloadAndSavePreload=Z.prototype.Hh;Z.prototype.load=Z.prototype.load;Z.prototype.updateStartTime=Z.prototype.Lh;Z.prototype.unload=Z.prototype.Oc;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.Vf;Z.prototype.attach=Z.prototype.ob;Z.probeSupport=async function(a=!0){let b={};a&&(b=await Vl());a=Lb();const c=on(),d=await D().o(),e={manifest:a,media:c,drm:b,hardwareResolution:d};Jt.forEach((f,g)=>{e[g]=f()});return e};
914
914
  Z.isBrowserSupported=function(){window.Promise||x("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;D();return Mb()?!0:Nb("application/x-mpegurl")};Z.setQueueManagerFactory=function(a){It=a};Z.setAdManagerFactory=function(a){Ht=a};Z.registerSupportPlugin=function(a,b){Jt.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var gt=0,Gt=1,is=2,Is=3;
915
- Z.LoadMode={DESTROYED:gt,NOT_LOADED:Gt,MEDIA_SOURCE:is,SRC_EQUALS:Is};Z.version="v4.15.53";var Ca;const Kt=["4","15"];Ca=new za(Number(Kt[0]),Number(Kt[1]));Ea=new Da;var Jt=new Map,Ht=null,It=null;function Lt(a,b){a={priority:b||0,callback:a};for(b=0;b<Mt.length;b++)if(Mt[b].priority<a.priority){Mt.splice(b,0,a);return}Mt.push(a)}var Nt=class{};v("shaka.polyfill",Nt);Nt.register=Lt;Nt.installAll=function(){for(const a of Mt)try{a.callback()}catch(b){x("Error installing polyfill!",b)}};var Mt=[];var Ot=class{constructor(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}getConfiguration(){const a=this.g.getConfiguration();if(a.videoCapabilities)for(const b of a.videoCapabilities)b.encryptionScheme=this.i;if(a.audioCapabilities)for(const b of a.audioCapabilities)b.encryptionScheme=this.h;return a}createMediaKeys(){return this.g.createMediaKeys()}};function Pt(a){if(eh(a))return"cbcs";if(ch(a)||dh(a)||bh(a)||a==="com.huawei.wiseplay")return"cenc";x("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Qt(a){if(!a)return!1;a=a.getConfiguration();const b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function Rt(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&D().u()?!0:!1};function St(){D().L()&&!Tt&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(Tt=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Ut,navigator.emeEncryptionSchemePolyfilled=!0)}async function Ut(a,b){const c=await Tt.call(this,a,b);if(Qt(c))return navigator.requestMediaKeySystemAccess=Tt,c;navigator.requestMediaKeySystemAccess=Vt;return Vt.call(this,a,b)}
915
+ Z.LoadMode={DESTROYED:gt,NOT_LOADED:Gt,MEDIA_SOURCE:is,SRC_EQUALS:Is};Z.version="v4.15.54";var Ca;const Kt=["4","15"];Ca=new za(Number(Kt[0]),Number(Kt[1]));Ea=new Da;var Jt=new Map,Ht=null,It=null;function Lt(a,b){a={priority:b||0,callback:a};for(b=0;b<Mt.length;b++)if(Mt[b].priority<a.priority){Mt.splice(b,0,a);return}Mt.push(a)}var Nt=class{};v("shaka.polyfill",Nt);Nt.register=Lt;Nt.installAll=function(){for(const a of Mt)try{a.callback()}catch(b){x("Error installing polyfill!",b)}};var Mt=[];var Ot=class{constructor(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}getConfiguration(){const a=this.g.getConfiguration();if(a.videoCapabilities)for(const b of a.videoCapabilities)b.encryptionScheme=this.i;if(a.audioCapabilities)for(const b of a.audioCapabilities)b.encryptionScheme=this.h;return a}createMediaKeys(){return this.g.createMediaKeys()}};function Pt(a){if(eh(a))return"cbcs";if(ch(a)||dh(a)||bh(a)||a==="com.huawei.wiseplay")return"cenc";x("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Qt(a){if(!a)return!1;a=a.getConfiguration();const b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function Rt(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&D().u()?!0:!1};function St(){D().L()&&!Tt&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(Tt=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Ut,navigator.emeEncryptionSchemePolyfilled=!0)}async function Ut(a,b){const c=await Tt.call(this,a,b);if(Qt(c))return navigator.requestMediaKeySystemAccess=Tt,c;navigator.requestMediaKeySystemAccess=Vt;return Vt.call(this,a,b)}
916
916
  async function Vt(a,b){var c=Pt(a),d=[];for(var e of b){b=Wt(e.videoCapabilities,c);const f=Wt(e.audioCapabilities,c);if(!e.videoCapabilities||!e.videoCapabilities.length||b.length)if(!e.audioCapabilities||!e.audioCapabilities.length||f.length){const g=Object.assign({},e);g.videoCapabilities=b;g.audioCapabilities=f;d.push(g)}}if(!d.length)throw d=Error("Unsupported keySystem or supportedConfigurations."),d.name="NotSupportedError",d.code=DOMException.NOT_SUPPORTED_ERR,d;a=await Tt.call(this,a,d);
917
917
  e=c=null;d[0]&&(d[0].videoCapabilities&&(c=d[0].videoCapabilities[0].encryptionScheme),d[0].audioCapabilities&&(e=d[0].audioCapabilities[0].encryptionScheme));return new Ot(a,c,e)}function Wt(a,b){return a?a.filter(c=>Rt(c.encryptionScheme,b)):a}var Xt=class{},Tt;Nt.EmeEncryptionScheme=Xt;Xt.install=St;Lt(St);function Yt(){D().L()&&!Zt&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(Zt=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=$t,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
918
918
  async function $t(a){const b=await Zt.call(this,a);if(!b.supported||!a.keySystemConfiguration)return b;const c=b.keySystemAccess;if(Qt(c))return navigator.mediaCapabilities.decodingInfo=Zt,b;navigator.mediaCapabilities.decodingInfo=au;return c?au.call(this,a):(b.keySystemAccess=await bu(a),b)}
@@ -2306,7 +2306,7 @@ goog.exportProperty(shaka.Player.prototype,"getNonDefaultConfiguration",shaka.Pl
2306
2306
  goog.exportProperty(shaka.Player.prototype,"configure",shaka.Player.prototype.configure);goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);goog.exportProperty(shaka.Player.prototype,"destroyAllPreloads",shaka.Player.prototype.destroyAllPreloads);goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);
2307
2307
  goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);
2308
2308
  goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setQueueManagerFactory",shaka.Player.setQueueManagerFactory);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);
2309
- goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.53-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
2309
+ goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.54-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
2310
2310
  shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.polyfill=function(){};shaka.polyfill.installAll=function(){for(var a=(0,$jscomp.makeIterator)(shaka.polyfill.polyfills_),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){shaka.log.alwaysWarn("Error installing polyfill!",c)}}};shaka.polyfill.register=function(a,b){a={priority:b||0,callback:a};for(b=0;b<shaka.polyfill.polyfills_.length;b++)if(shaka.polyfill.polyfills_[b].priority<a.priority){shaka.polyfill.polyfills_.splice(b,0,a);return}shaka.polyfill.polyfills_.push(a)};
2311
2311
  goog.exportSymbol("shaka.polyfill",shaka.polyfill);goog.exportProperty(shaka.polyfill,"register",shaka.polyfill.register);goog.exportProperty(shaka.polyfill,"installAll",shaka.polyfill.installAll);shaka.polyfill.polyfills_=[];shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess=function(a,b,c){this.mksa_=a;this.videoScheme_=b||null;this.audioScheme_=c||null;this.keySystem=a.keySystem};
2312
2312
  shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess.prototype.getConfiguration=function(){var a=this.mksa_.getConfiguration();if(a.videoCapabilities)for(var b=(0,$jscomp.makeIterator)(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.videoScheme_;if(a.audioCapabilities)for(b=(0,$jscomp.makeIterator)(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.audioScheme_;return a};
@@ -1095,7 +1095,7 @@ Z.prototype.getNetworkingEngine=Z.prototype.Te;Z.prototype.getMediaElement=Z.pro
1095
1095
  Z.prototype.configure=Z.prototype.configure;Z.prototype.releaseAllMutexes=Z.prototype.Xi;Z.prototype.destroyAllPreloads=Z.prototype.Vf;Z.prototype.preload=Z.prototype.preload;Z.prototype.detachAndSavePreload=Z.prototype.Wf;Z.prototype.unloadAndSavePreload=Z.prototype.ij;Z.prototype.load=Z.prototype.load;Z.prototype.updateStartTime=Z.prototype.mj;Z.prototype.unload=Z.prototype.qd;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.xh;Z.prototype.attach=Z.prototype.Cb;
1096
1096
  Z.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return B(function(k){switch(k.h){case 1:b={};if(!a){k.A(2);break}return k.g(En(),3);case 3:b=k.i;case 2:return c=Cc(),d=Bo(),e=D(),k.g(e.Eb(),4);case 4:return f=k.i,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=Mu,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
1097
1097
  Z.isBrowserSupported=function(){window.Promise||Ta("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;D();return Dc()?!0:Ec().canPlayType("application/x-mpegurl")!=""};Z.setQueueManagerFactory=function(a){ft=a};Z.setAdManagerFactory=function(a){et=a};Z.registerSupportPlugin=function(a,b){Mu.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var lt=0,at=1,bu=2,Vt=3;
1098
- Z.LoadMode={DESTROYED:lt,NOT_LOADED:at,MEDIA_SOURCE:bu,SRC_EQUALS:Vt};Z.version="v4.15.53";var Nu=["4","15"];lb=new function(a){this.g=a;this.i=mb;this.h=nb}(new jb(Number(Nu[0]),Number(Nu[1])));var Mu=new Map,et=null,ft=null;function Ou(){}function Pu(a,b){a={priority:b||0,callback:a};for(b=0;b<Qu.length;b++)if(Qu[b].priority<a.priority){Qu.splice(b,0,a);return}Qu.push(a)}C("shaka.polyfill",Ou);Ou.register=Pu;Ou.installAll=function(){for(var a=t(Qu),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Ta("Error installing polyfill!",c)}}};var Qu=[];function Ru(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}Ru.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};Ru.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function Su(a){if($h(a))return"cbcs";if(Yh(a)||Zh(a)||Xh(a)||a==="com.huawei.wiseplay")return"cenc";Ta("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Tu(a){if(!a)return!1;a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function Uu(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&D().sc()?!0:!1};function Vu(){}var Wu;function Xu(){D().pe()&&!Wu&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(Wu=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Yu,navigator.emeEncryptionSchemePolyfilled=!0)}
1098
+ Z.LoadMode={DESTROYED:lt,NOT_LOADED:at,MEDIA_SOURCE:bu,SRC_EQUALS:Vt};Z.version="v4.15.54";var Nu=["4","15"];lb=new function(a){this.g=a;this.i=mb;this.h=nb}(new jb(Number(Nu[0]),Number(Nu[1])));var Mu=new Map,et=null,ft=null;function Ou(){}function Pu(a,b){a={priority:b||0,callback:a};for(b=0;b<Qu.length;b++)if(Qu[b].priority<a.priority){Qu.splice(b,0,a);return}Qu.push(a)}C("shaka.polyfill",Ou);Ou.register=Pu;Ou.installAll=function(){for(var a=t(Qu),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Ta("Error installing polyfill!",c)}}};var Qu=[];function Ru(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}Ru.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};Ru.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function Su(a){if($h(a))return"cbcs";if(Yh(a)||Zh(a)||Xh(a)||a==="com.huawei.wiseplay")return"cenc";Ta("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Tu(a){if(!a)return!1;a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function Uu(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&D().sc()?!0:!1};function Vu(){}var Wu;function Xu(){D().pe()&&!Wu&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(Wu=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Yu,navigator.emeEncryptionSchemePolyfilled=!0)}
1099
1099
  function Yu(a,b){var c=this,d,e;return B(function(f){if(f.h==1)return f.g(Wu.call(c,a,b),2);d=f.i;if(e=Tu(d))return navigator.requestMediaKeySystemAccess=Wu,f.return(d);navigator.requestMediaKeySystemAccess=Zu;return f.return(Zu.call(c,a,b))})}
1100
1100
  function Zu(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,r,v;return B(function(u){if(u.h==1){d=Su(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=$u(h.videoCapabilities,d),l=$u(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),n.name="NotSupportedError",
1101
1101
  n.code=DOMException.NOT_SUPPORTED_ERR,n;return u.g(Wu.call(c,a,e),2)}q=u.i;v=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(v=e[0].audioCapabilities[0].encryptionScheme));return u.return(new Ru(q,r,v))})}function $u(a,b){return a?a.filter(function(c){return Uu(c.encryptionScheme,b)}):a}Ou.EmeEncryptionScheme=Vu;Vu.install=Xu;Pu(Xu);function av(){}var bv;function cv(){D().pe()&&!bv&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(bv=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=dv,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
@@ -1517,7 +1517,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
1517
1517
  goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);goog.exportProperty(shaka.Player.prototype,"destroyAllPreloads",shaka.Player.prototype.destroyAllPreloads);goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);
1518
1518
  goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);
1519
1519
  goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setQueueManagerFactory",shaka.Player.setQueueManagerFactory);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);
1520
- shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.53-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.polyfill=class{static installAll(){for(const a of shaka.polyfill.polyfills_)try{a.callback()}catch(b){shaka.log.alwaysWarn("Error installing polyfill!",b)}}static register(a,b){a={priority:b||0,callback:a};for(b=0;b<shaka.polyfill.polyfills_.length;b++)if(shaka.polyfill.polyfills_[b].priority<a.priority){shaka.polyfill.polyfills_.splice(b,0,a);return}shaka.polyfill.polyfills_.push(a)}};goog.exportSymbol("shaka.polyfill",shaka.polyfill);goog.exportProperty(shaka.polyfill,"register",shaka.polyfill.register);
1520
+ shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.54-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.polyfill=class{static installAll(){for(const a of shaka.polyfill.polyfills_)try{a.callback()}catch(b){shaka.log.alwaysWarn("Error installing polyfill!",b)}}static register(a,b){a={priority:b||0,callback:a};for(b=0;b<shaka.polyfill.polyfills_.length;b++)if(shaka.polyfill.polyfills_[b].priority<a.priority){shaka.polyfill.polyfills_.splice(b,0,a);return}shaka.polyfill.polyfills_.push(a)}};goog.exportSymbol("shaka.polyfill",shaka.polyfill);goog.exportProperty(shaka.polyfill,"register",shaka.polyfill.register);
1521
1521
  goog.exportProperty(shaka.polyfill,"installAll",shaka.polyfill.installAll);shaka.polyfill.polyfills_=[];shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess=class{constructor(a,b,c){this.mksa_=a;this.videoScheme_=b||null;this.audioScheme_=c||null;this.keySystem=a.keySystem}getConfiguration(){const a=this.mksa_.getConfiguration();if(a.videoCapabilities)for(const b of a.videoCapabilities)b.encryptionScheme=this.videoScheme_;if(a.audioCapabilities)for(const b of a.audioCapabilities)b.encryptionScheme=this.audioScheme_;return a}createMediaKeys(){return this.mksa_.createMediaKeys()}};shaka.polyfill.EncryptionSchemeUtils=class{static guessSupportedScheme(a){const b=shaka.drm.DrmUtils;if(b.isFairPlayKeySystem(a))return"cbcs";if(b.isWidevineKeySystem(a)||b.isPlayReadyKeySystem(a)||b.isClearKeySystem(a)||b.isWisePlayKeySystem(a))return"cenc";shaka.log.alwaysWarn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}static hasEncryptionScheme(a){if(!a)return!1;a=a.getConfiguration();const b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&
1522
1522
  a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}static checkSupportedScheme(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&shaka.device.DeviceFactory.getDevice().supportsCbcsWithoutEncryptionSchemeSupport()?!0:!1}};shaka.polyfill.EmeEncryptionScheme=class{static install(){shaka.device.DeviceFactory.getDevice().supportsEncryptionSchemePolyfill()&&(shaka.polyfill.EmeEncryptionScheme.originalRMKSA_||navigator.emeEncryptionSchemePolyfilled?shaka.log.debug("EmeEncryptionSchemePolyfill:","Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(shaka.polyfill.EmeEncryptionScheme.originalRMKSA_=navigator.requestMediaKeySystemAccess,shaka.log.debug("EmeEncryptionSchemePolyfill:",
1523
1523
  "Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=shaka.polyfill.EmeEncryptionScheme.probeRMKSA_,navigator.emeEncryptionSchemePolyfilled=!0):shaka.log.debug("EmeEncryptionSchemePolyfill:","EME not found"))}static async probeRMKSA_(a,b){goog.asserts.assert(this==navigator,'bad "this" for requestMediaKeySystemAccess');const c=await shaka.polyfill.EmeEncryptionScheme.originalRMKSA_.call(this,a,b);if(shaka.polyfill.EncryptionSchemeUtils.hasEncryptionScheme(c))return shaka.log.debug("EmeEncryptionSchemePolyfill:",
@@ -895,7 +895,7 @@ Z.prototype.seekRange=Z.prototype.Ma;Z.prototype.isVideoOnly=Z.prototype.Wg;Z.pr
895
895
  Z.prototype.resetConfiguration=Z.prototype.rh;Z.prototype.getBufferFullness=Z.prototype.cf;Z.prototype.getNonDefaultConfiguration=Z.prototype.wg;Z.prototype.getConfigurationForLowLatency=Z.prototype.kg;Z.prototype.getConfiguration=Z.prototype.getConfiguration;Z.prototype.configurationForLowLatency=Z.prototype.Zf;Z.prototype.configure=Z.prototype.configure;Z.prototype.releaseAllMutexes=Z.prototype.qh;Z.prototype.destroyAllPreloads=Z.prototype.$e;Z.prototype.preload=Z.prototype.preload;
896
896
  Z.prototype.detachAndSavePreload=Z.prototype.bf;Z.prototype.unloadAndSavePreload=Z.prototype.Ih;Z.prototype.load=Z.prototype.load;Z.prototype.updateStartTime=Z.prototype.Lh;Z.prototype.unload=Z.prototype.Hc;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.Tf;Z.prototype.attach=Z.prototype.xb;Z.probeSupport=async function(a=!0){let b={};a&&(b=await ui());a=Ob();const c=Um(),d=await A().o(),e={manifest:a,media:c,drm:b,hardwareResolution:d};Gt.forEach((f,g)=>{e[g]=f()});return e};
897
897
  Z.isBrowserSupported=function(){window.Promise||ka("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;A();return Pb()?!0:Qb("application/x-mpegurl")};Z.setQueueManagerFactory=function(a){Ft=a};Z.setAdManagerFactory=function(a){Et=a};Z.registerSupportPlugin=function(a,b){Gt.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var dt=0,Dt=1,fs=2,Fs=3;
898
- Z.LoadMode={DESTROYED:dt,NOT_LOADED:Dt,MEDIA_SOURCE:fs,SRC_EQUALS:Fs};Z.version="v4.15.53";var Ea;const Ht=["4","15"];Ea=new Ba(Number(Ht[0]),Number(Ht[1]));Ia=new Fa;var Gt=new Map,Et=null,Ft=null;function It(a,b){a={priority:b||0,callback:a};for(b=0;b<Jt.length;b++)if(Jt[b].priority<a.priority){Jt.splice(b,0,a);return}Jt.push(a)}var Kt=class{};x("shaka.polyfill",Kt);Kt.register=It;Kt.installAll=function(){for(const a of Jt)try{a.callback()}catch(b){ka("Error installing polyfill!",b)}};var Jt=[];var Lt=class{constructor(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}getConfiguration(){const a=this.g.getConfiguration();if(a.videoCapabilities)for(const b of a.videoCapabilities)b.encryptionScheme=this.i;if(a.audioCapabilities)for(const b of a.audioCapabilities)b.encryptionScheme=this.h;return a}createMediaKeys(){return this.g.createMediaKeys()}};function Mt(a){if(vh(a))return"cbcs";if(th(a)||uh(a)||sh(a)||a==="com.huawei.wiseplay")return"cenc";ka("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Nt(a){if(!a)return!1;a=a.getConfiguration();const b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function Ot(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&A().u()?!0:!1};function Pt(){A().L()&&!Qt&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(Qt=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Rt,navigator.emeEncryptionSchemePolyfilled=!0)}async function Rt(a,b){const c=await Qt.call(this,a,b);if(Nt(c))return navigator.requestMediaKeySystemAccess=Qt,c;navigator.requestMediaKeySystemAccess=St;return St.call(this,a,b)}
898
+ Z.LoadMode={DESTROYED:dt,NOT_LOADED:Dt,MEDIA_SOURCE:fs,SRC_EQUALS:Fs};Z.version="v4.15.54";var Ea;const Ht=["4","15"];Ea=new Ba(Number(Ht[0]),Number(Ht[1]));Ia=new Fa;var Gt=new Map,Et=null,Ft=null;function It(a,b){a={priority:b||0,callback:a};for(b=0;b<Jt.length;b++)if(Jt[b].priority<a.priority){Jt.splice(b,0,a);return}Jt.push(a)}var Kt=class{};x("shaka.polyfill",Kt);Kt.register=It;Kt.installAll=function(){for(const a of Jt)try{a.callback()}catch(b){ka("Error installing polyfill!",b)}};var Jt=[];var Lt=class{constructor(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}getConfiguration(){const a=this.g.getConfiguration();if(a.videoCapabilities)for(const b of a.videoCapabilities)b.encryptionScheme=this.i;if(a.audioCapabilities)for(const b of a.audioCapabilities)b.encryptionScheme=this.h;return a}createMediaKeys(){return this.g.createMediaKeys()}};function Mt(a){if(vh(a))return"cbcs";if(th(a)||uh(a)||sh(a)||a==="com.huawei.wiseplay")return"cenc";ka("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Nt(a){if(!a)return!1;a=a.getConfiguration();const b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function Ot(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&A().u()?!0:!1};function Pt(){A().L()&&!Qt&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(Qt=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Rt,navigator.emeEncryptionSchemePolyfilled=!0)}async function Rt(a,b){const c=await Qt.call(this,a,b);if(Nt(c))return navigator.requestMediaKeySystemAccess=Qt,c;navigator.requestMediaKeySystemAccess=St;return St.call(this,a,b)}
899
899
  async function St(a,b){var c=Mt(a),d=[];for(var e of b){b=Tt(e.videoCapabilities,c);const f=Tt(e.audioCapabilities,c);if(!e.videoCapabilities||!e.videoCapabilities.length||b.length)if(!e.audioCapabilities||!e.audioCapabilities.length||f.length){const g=Object.assign({},e);g.videoCapabilities=b;g.audioCapabilities=f;d.push(g)}}if(!d.length)throw d=Error("Unsupported keySystem or supportedConfigurations."),d.name="NotSupportedError",d.code=DOMException.NOT_SUPPORTED_ERR,d;a=await Qt.call(this,a,d);
900
900
  e=c=null;d[0]&&(d[0].videoCapabilities&&(c=d[0].videoCapabilities[0].encryptionScheme),d[0].audioCapabilities&&(e=d[0].audioCapabilities[0].encryptionScheme));return new Lt(a,c,e)}function Tt(a,b){return a?a.filter(c=>Ot(c.encryptionScheme,b)):a}var Ut=class{},Qt;Kt.EmeEncryptionScheme=Ut;Ut.install=Pt;It(Pt);function Vt(){A().L()&&!Wt&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(Wt=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=Xt,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
901
901
  async function Xt(a){const b=await Wt.call(this,a);if(!b.supported||!a.keySystemConfiguration)return b;const c=b.keySystemAccess;if(Nt(c))return navigator.mediaCapabilities.decodingInfo=Wt,b;navigator.mediaCapabilities.decodingInfo=Yt;return c?Yt.call(this,a):(b.keySystemAccess=await Zt(a),b)}
@@ -2186,7 +2186,7 @@ goog.exportProperty(shaka.Player.prototype,"getNonDefaultConfiguration",shaka.Pl
2186
2186
  goog.exportProperty(shaka.Player.prototype,"configure",shaka.Player.prototype.configure);goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);goog.exportProperty(shaka.Player.prototype,"destroyAllPreloads",shaka.Player.prototype.destroyAllPreloads);goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);
2187
2187
  goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);
2188
2188
  goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setQueueManagerFactory",shaka.Player.setQueueManagerFactory);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);
2189
- goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.53-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
2189
+ goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.54-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
2190
2190
  shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.polyfill=function(){};shaka.polyfill.installAll=function(){for(var a=(0,$jscomp.makeIterator)(shaka.polyfill.polyfills_),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){shaka.log.alwaysWarn("Error installing polyfill!",c)}}};shaka.polyfill.register=function(a,b){a={priority:b||0,callback:a};for(b=0;b<shaka.polyfill.polyfills_.length;b++)if(shaka.polyfill.polyfills_[b].priority<a.priority){shaka.polyfill.polyfills_.splice(b,0,a);return}shaka.polyfill.polyfills_.push(a)};
2191
2191
  goog.exportSymbol("shaka.polyfill",shaka.polyfill);goog.exportProperty(shaka.polyfill,"register",shaka.polyfill.register);goog.exportProperty(shaka.polyfill,"installAll",shaka.polyfill.installAll);shaka.polyfill.polyfills_=[];shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess=function(a,b,c){this.mksa_=a;this.videoScheme_=b||null;this.audioScheme_=c||null;this.keySystem=a.keySystem};
2192
2192
  shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess.prototype.getConfiguration=function(){var a=this.mksa_.getConfiguration();if(a.videoCapabilities)for(var b=(0,$jscomp.makeIterator)(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.videoScheme_;if(a.audioCapabilities)for(b=(0,$jscomp.makeIterator)(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.audioScheme_;return a};
@@ -1077,7 +1077,7 @@ Z.prototype.getNetworkingEngine=Z.prototype.lf;Z.prototype.getMediaElement=Z.pro
1077
1077
  Z.prototype.configure=Z.prototype.configure;Z.prototype.releaseAllMutexes=Z.prototype.Wi;Z.prototype.destroyAllPreloads=Z.prototype.ig;Z.prototype.preload=Z.prototype.preload;Z.prototype.detachAndSavePreload=Z.prototype.jg;Z.prototype.unloadAndSavePreload=Z.prototype.kj;Z.prototype.load=Z.prototype.load;Z.prototype.updateStartTime=Z.prototype.nj;Z.prototype.unload=Z.prototype.kd;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.wh;Z.prototype.attach=Z.prototype.Jb;
1078
1078
  Z.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return H(function(k){switch(k.h){case 1:b={};if(!a){k.u(2);break}return k.g(dk(),3);case 3:b=k.i;case 2:return c=Gc(),d=Co(),e=kb(),k.g(e.Lb(),4);case 4:return f=k.i,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=mv,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
1079
1079
  Z.isBrowserSupported=function(){window.Promise||Xa("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;kb();return Hc()?!0:Ic().canPlayType("application/x-mpegurl")!=""};Z.setQueueManagerFactory=function(a){Mt=a};Z.setAdManagerFactory=function(a){Lt=a};Z.registerSupportPlugin=function(a,b){mv.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var St=0,Ht=1,Cu=2,vu=3;
1080
- Z.LoadMode={DESTROYED:St,NOT_LOADED:Ht,MEDIA_SOURCE:Cu,SRC_EQUALS:vu};Z.version="v4.15.53";var nv=["4","15"];rb=new function(a){this.g=a;this.i=sb;this.h=tb}(new pb(Number(nv[0]),Number(nv[1])));var mv=new Map,Lt=null,Mt=null;function ov(){}function pv(a,b){a={priority:b||0,callback:a};for(b=0;b<qv.length;b++)if(qv[b].priority<a.priority){qv.splice(b,0,a);return}qv.push(a)}J("shaka.polyfill",ov);ov.register=pv;ov.installAll=function(){for(var a=r(qv),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Xa("Error installing polyfill!",c)}}};var qv=[];function rv(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}rv.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};rv.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function sv(a){if(Bi(a))return"cbcs";if(zi(a)||Ai(a)||yi(a)||a==="com.huawei.wiseplay")return"cenc";Xa("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function tv(a){if(!a)return!1;a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function uv(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&kb().sc()?!0:!1};function vv(){}var wv;function xv(){kb().ue()&&!wv&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(wv=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=yv,navigator.emeEncryptionSchemePolyfilled=!0)}
1080
+ Z.LoadMode={DESTROYED:St,NOT_LOADED:Ht,MEDIA_SOURCE:Cu,SRC_EQUALS:vu};Z.version="v4.15.54";var nv=["4","15"];rb=new function(a){this.g=a;this.i=sb;this.h=tb}(new pb(Number(nv[0]),Number(nv[1])));var mv=new Map,Lt=null,Mt=null;function ov(){}function pv(a,b){a={priority:b||0,callback:a};for(b=0;b<qv.length;b++)if(qv[b].priority<a.priority){qv.splice(b,0,a);return}qv.push(a)}J("shaka.polyfill",ov);ov.register=pv;ov.installAll=function(){for(var a=r(qv),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Xa("Error installing polyfill!",c)}}};var qv=[];function rv(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}rv.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};rv.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function sv(a){if(Bi(a))return"cbcs";if(zi(a)||Ai(a)||yi(a)||a==="com.huawei.wiseplay")return"cenc";Xa("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function tv(a){if(!a)return!1;a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function uv(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&kb().sc()?!0:!1};function vv(){}var wv;function xv(){kb().ue()&&!wv&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(wv=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=yv,navigator.emeEncryptionSchemePolyfilled=!0)}
1081
1081
  function yv(a,b){var c=this,d,e;return H(function(f){if(f.h==1)return f.g(wv.call(c,a,b),2);d=f.i;if(e=tv(d))return navigator.requestMediaKeySystemAccess=wv,f.return(d);navigator.requestMediaKeySystemAccess=zv;return f.return(zv.call(c,a,b))})}
1082
1082
  function zv(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,t,u;return H(function(v){if(v.h==1){d=sv(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=Av(h.videoCapabilities,d),l=Av(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),n.name="NotSupportedError",
1083
1083
  n.code=DOMException.NOT_SUPPORTED_ERR,n;return v.g(wv.call(c,a,e),2)}q=v.i;u=t=null;e[0]&&(e[0].videoCapabilities&&(t=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(u=e[0].audioCapabilities[0].encryptionScheme));return v.return(new rv(q,t,u))})}function Av(a,b){return a?a.filter(function(c){return uv(c.encryptionScheme,b)}):a}ov.EmeEncryptionScheme=vv;vv.install=xv;pv(xv);function Bv(){}var Cv;function Dv(){kb().ue()&&!Cv&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(Cv=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=Ev,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
@@ -242,9 +242,9 @@ a.insert("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_
242
242
  ["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],
243
243
  ["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["QUALITY","\u97f3\u8cea"],["RECENTER_VR","\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u64ad"],["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND",
244
244
  "\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7d71\u8a08\u8cc7\u6599"],["SUBTITLE_FORCED","\u5f37\u5236\u986f\u793a"],["SURROUND","\u74b0\u5834\u97f3\u6548"],["TOGGLE_STEREOSCOPIC","\u5207\u63db\u7acb\u9ad4\u5f71\u50cf"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]))};
245
- shaka.ui.Locales.Ids={PLAY:"PLAY",REPLAY:"REPLAY",SKIP_NEXT:"SKIP_NEXT",SKIP_TO_LIVE:"SKIP_TO_LIVE",PAUSE:"PAUSE",LANGUAGE:"LANGUAGE",EXIT_PICTURE_IN_PICTURE:"EXIT_PICTURE_IN_PICTURE",RESOLUTION:"RESOLUTION",AIRPLAY:"AIRPLAY",CHAPTERS:"CHAPTERS",SKIP_AD:"SKIP_AD",SURROUND:"SURROUND",MULTIPLE_LANGUAGES:"MULTIPLE_LANGUAGES",STATISTICS:"STATISTICS",AD_STATISTICS:"AD_STATISTICS",LIVE:"LIVE",MUTE:"MUTE",TOGGLE_STEREOSCOPIC:"TOGGLE_STEREOSCOPIC",ENTER_LOOP_MODE:"ENTER_LOOP_MODE",FAST_FORWARD:"FAST_FORWARD",
246
- MORE_SETTINGS:"MORE_SETTINGS",EXIT_FULL_SCREEN:"EXIT_FULL_SCREEN",RECENTER_VR:"RECENTER_VR",OFF:"OFF",BACK:"BACK",AD_TIME:"AD_TIME",LOOP:"LOOP",ON:"ON",SUBTITLE_FORCED:"SUBTITLE_FORCED",UNRECOGNIZED_LANGUAGE:"UNRECOGNIZED_LANGUAGE",SEEK:"SEEK",VOLUME:"VOLUME",AUTO_QUALITY:"AUTO_QUALITY",ENTER_PICTURE_IN_PICTURE:"ENTER_PICTURE_IN_PICTURE",NOT_APPLICABLE:"NOT_APPLICABLE",REWIND:"REWIND",AD_DURATION:"AD_DURATION",CAST:"CAST",DOWNLOAD_VIDEO_FRAME:"DOWNLOAD_VIDEO_FRAME",AD_PROGRESS:"AD_PROGRESS",QUALITY:"QUALITY",
247
- UNMUTE:"UNMUTE",UNDETERMINED_LANGUAGE:"UNDETERMINED_LANGUAGE",EXIT_LOOP_MODE:"EXIT_LOOP_MODE",FULL_SCREEN:"FULL_SCREEN",PLAYBACK_RATE:"PLAYBACK_RATE",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",CAPTIONS:"CAPTIONS"};shaka.abr={};
245
+ shaka.ui.Locales.Ids={LANGUAGE:"LANGUAGE",SEEK:"SEEK",TOGGLE_STEREOSCOPIC:"TOGGLE_STEREOSCOPIC",NOT_APPLICABLE:"NOT_APPLICABLE",SUBTITLE_FORCED:"SUBTITLE_FORCED",SKIP_TO_LIVE:"SKIP_TO_LIVE",UNDETERMINED_LANGUAGE:"UNDETERMINED_LANGUAGE",PAUSE:"PAUSE",AIRPLAY:"AIRPLAY",FAST_FORWARD:"FAST_FORWARD",AD_TIME:"AD_TIME",MULTIPLE_LANGUAGES:"MULTIPLE_LANGUAGES",AD_DURATION:"AD_DURATION",MUTE:"MUTE",LOOP:"LOOP",CAST:"CAST",ON:"ON",AUTO_QUALITY:"AUTO_QUALITY",DOWNLOAD_VIDEO_FRAME:"DOWNLOAD_VIDEO_FRAME",CAPTIONS:"CAPTIONS",
246
+ EXIT_PICTURE_IN_PICTURE:"EXIT_PICTURE_IN_PICTURE",AD_PROGRESS:"AD_PROGRESS",OFF:"OFF",STATISTICS:"STATISTICS",BACK:"BACK",FULL_SCREEN:"FULL_SCREEN",UNMUTE:"UNMUTE",ENTER_PICTURE_IN_PICTURE:"ENTER_PICTURE_IN_PICTURE",RECENTER_VR:"RECENTER_VR",RESOLUTION:"RESOLUTION",MORE_SETTINGS:"MORE_SETTINGS",EXIT_FULL_SCREEN:"EXIT_FULL_SCREEN",PLAY:"PLAY",SKIP_AD:"SKIP_AD",PLAYBACK_RATE:"PLAYBACK_RATE",UNRECOGNIZED_LANGUAGE:"UNRECOGNIZED_LANGUAGE",ENTER_LOOP_MODE:"ENTER_LOOP_MODE",QUALITY:"QUALITY",LIVE:"LIVE",
247
+ REPLAY:"REPLAY",SKIP_NEXT:"SKIP_NEXT",EXIT_LOOP_MODE:"EXIT_LOOP_MODE",CHAPTERS:"CHAPTERS",VOLUME:"VOLUME",AD_STATISTICS:"AD_STATISTICS",REWIND:"REWIND",SURROUND:"SURROUND",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE"};shaka.abr={};
248
248
  shaka.abr.Ewma=class{constructor(a){goog.asserts.assert(a>0,"expected halfLife to be positive");this.logHalf_=Math.log(.5);this.alpha_=Math.exp(this.logHalf_/a);this.totalWeight_=this.estimate_=0}updateAlpha(a){goog.asserts.assert(a>0,"expected halfLife to be positive");this.alpha_=Math.exp(this.logHalf_/a)}sample(a,b){const c=Math.pow(this.alpha_,a);b=b*(1-c)+c*this.estimate_;isNaN(b)||(this.estimate_=b,this.totalWeight_+=a)}getEstimate(){return this.estimate_/(1-Math.pow(this.alpha_,this.totalWeight_))}};shaka.abr.EwmaBandwidthEstimator=class{constructor(){this.fast_=new shaka.abr.Ewma(2);this.slow_=new shaka.abr.Ewma(5);this.bytesSampled_=0;this.minTotalBytes_=128E3;this.minBytes_=16E3}configure(a){this.minTotalBytes_=a.minTotalBytes;this.minBytes_=a.minBytes;this.fast_.updateAlpha(a.fastHalfLife);this.slow_.updateAlpha(a.slowHalfLife)}sample(a,b){if(!(b<this.minBytes_)){var c=8E3*b/a;a/=1E3;this.bytesSampled_+=b;this.fast_.sample(a,c);this.slow_.sample(a,c)}}getBandwidthEstimate(a){return this.bytesSampled_<
249
249
  this.minTotalBytes_?a:Math.min(this.fast_.getEstimate(),this.slow_.getEstimate())}hasGoodEstimate(){return this.bytesSampled_>=this.minTotalBytes_}};shaka.util.EventManager=class{constructor(){this.bindingMap_=new shaka.util.MultiMap}release(){this.removeAll();this.bindingMap_=null}listen(a,b,c,d){this.bindingMap_&&(a=new shaka.util.EventManager.Binding_(a,b,c,d),this.bindingMap_.push(b,a))}listenOnce(a,b,c,d){const e=f=>{this.unlisten(a,b,e);c(f)};this.listen(a,b,e,d)}unlisten(a,b,c){if(this.bindingMap_){var d=this.bindingMap_.get(b)||[];for(const e of d)e.target!=a||c!=e.listener&&c||(e.unlisten(),this.bindingMap_.remove(b,e))}}removeAll(){if(this.bindingMap_){var a=
250
250
  this.bindingMap_.getAll();for(const b of a)b.unlisten();this.bindingMap_.clear()}}};goog.exportSymbol("shaka.util.EventManager",shaka.util.EventManager);goog.exportProperty(shaka.util.EventManager.prototype,"removeAll",shaka.util.EventManager.prototype.removeAll);goog.exportProperty(shaka.util.EventManager.prototype,"unlisten",shaka.util.EventManager.prototype.unlisten);goog.exportProperty(shaka.util.EventManager.prototype,"listenOnce",shaka.util.EventManager.prototype.listenOnce);
@@ -1348,7 +1348,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
1348
1348
  goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);goog.exportProperty(shaka.Player.prototype,"destroyAllPreloads",shaka.Player.prototype.destroyAllPreloads);goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);
1349
1349
  goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);
1350
1350
  goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setQueueManagerFactory",shaka.Player.setQueueManagerFactory);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);
1351
- shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.53-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.ads={};
1351
+ shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.15.54-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.ads={};
1352
1352
  shaka.ads.AdsStats=class{constructor(){this.loadTimes_=[];this.errors_=this.skipped_=this.playedCompletely_=this.overlayAds_=this.started_=0}addLoadTime(a){this.loadTimes_.push(a)}incrementStarted(){this.started_++}incrementOverlayAds(){this.overlayAds_++}incrementPlayedCompletely(){this.playedCompletely_++}incrementSkipped(){this.skipped_++}incrementErrors(){this.errors_++}getAverageLoadTime_(){return this.loadTimes_.length?this.loadTimes_.reduce((a,b)=>a+b,0)/this.loadTimes_.length:0}getBlob(){return{loadTimes:this.loadTimes_,
1353
1353
  averageLoadTime:this.getAverageLoadTime_(),started:this.started_,overlayAds:this.overlayAds_,playedCompletely:this.playedCompletely_,skipped:this.skipped_,errors:this.errors_}}};shaka.ads.ClientSideAd=class{constructor(a,b,c){this.ad_=a;this.manager_=b;this.video_=c;this.isPaused_=!1;this.volume_=this.manager_.getVolume();this.eventManager_=new shaka.util.EventManager;this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.PAUSED,()=>{this.isPaused_=!0});this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.RESUMED,()=>{this.isPaused_=!1})}needsSkipUI(){return!1}isClientRendering(){return!0}hasCustomClick(){return!0}isUsingAnotherMediaElement(){return!0}getDuration(){return this.ad_.getDuration()}getMinSuggestedDuration(){return this.ad_.getMinSuggestedDuration()}getRemainingTime(){return this.manager_.getRemainingTime()}isPaused(){return this.isPaused_}isSkippable(){return this.ad_.getSkipTimeOffset()>=
1354
1354
  0}getTimeUntilSkippable(){var a=this.ad_.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)}canSkipNow(){return this.manager_.getAdSkippableState()}skip(){return this.manager_.skip()}setPaused(a){this.isPaused_=a}pause(){return this.manager_.pause()}play(){return this.manager_.resume()}getVolume(){return this.manager_.getVolume()}setVolume(a){this.video_.volume=a;return this.manager_.setVolume(a)}isMuted(){return this.manager_.getVolume()==0}isLinear(){return this.ad_.isLinear()}resize(a,
@@ -2278,9 +2278,9 @@ shaka.polyfill.MediaSource.stubAbort_()):shaka.log.info("Using native MSE as-is.
2278
2278
  shaka.polyfill.MediaSource.patchVp09_())}static stubAbort_(){const a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(...b){b=a.apply(this,b);b.abort=function(){};return b}}static patchRemovalRange_(){const a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}static rejectContainer_(a){if(window.MediaSource){const b=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=c=>shaka.util.MimeUtils.getContainerType(c)!=
2279
2279
  a&&b(c)}if(window.ManagedMediaSource){const b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=c=>shaka.util.MimeUtils.getContainerType(c)!=a&&b(c)}}static rejectCodec_(a){const b=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=c=>shaka.util.MimeUtils.getCodecBase(c)!=a&&b(c);if(window.ManagedMediaSource){const c=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=d=>shaka.util.MimeUtils.getCodecBase(d)!=
2280
2280
  a&&c(d)}}static patchVp09_(){const a=MediaSource.isTypeSupported;shaka.device.DeviceFactory.getDevice().supportStandardVP9Checking()&&(MediaSource.isTypeSupported=b=>{const c=b.split(/ *; */),d=c.findIndex(g=>g.startsWith("codecs="));if(d<0)return a(b);const e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(g=>g.startsWith("vp09"));f>=0&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}};goog.exportProperty(shaka.polyfill,"MediaSource",shaka.polyfill.MediaSource);
2281
- goog.exportProperty(shaka.polyfill.MediaSource,"install",shaka.polyfill.MediaSource.install);shaka.polyfill.register(shaka.polyfill.MediaSource.install);shaka.polyfill.Orientation=class{static install(){screen.orientation&&screen.orientation.unlock?shaka.log.info("Using native screen.orientation"):screen.orientation!=void 0?shaka.polyfill.Orientation.installBasedOnScreenMethods_():window.orientation!=void 0&&shaka.polyfill.Orientation.installBasedOnWindowMethods_()}static installBasedOnScreenMethods_(){screen.orientation.lock===void 0&&(screen.orientation.lock=a=>{shaka.log.info("screen.orientation.lock is a no-op");return Promise.resolve()});screen.orientation.unlock===
2282
- void 0&&(screen.orientation.unlock=()=>{shaka.log.info("screen.orientation.unlock is a no-op")})}static installBasedOnWindowMethods_(){const a=new shaka.polyfill.Orientation.FakeOrientation;screen.orientation=a;const b=()=>{switch(window.orientation){case -90:a.type="landscape-secondary";a.angle=270;break;case 0:a.type="portrait-primary";a.angle=0;break;case 90:a.type="landscape-primary";a.angle=90;break;case 180:a.type="portrait-secondary",a.angle=180}};b();window.addEventListener("orientationchange",
2283
- ()=>{b();a.dispatchChangeEvent()})}};goog.exportProperty(shaka.polyfill,"Orientation",shaka.polyfill.Orientation);goog.exportProperty(shaka.polyfill.Orientation,"install",shaka.polyfill.Orientation.install);
2281
+ goog.exportProperty(shaka.polyfill.MediaSource,"install",shaka.polyfill.MediaSource.install);shaka.polyfill.register(shaka.polyfill.MediaSource.install);shaka.polyfill.Orientation=class{static install(){screen.orientation&&screen.orientation.unlock?shaka.log.info("Using native screen.orientation"):screen.orientation!=void 0?shaka.polyfill.Orientation.installBasedOnScreenMethods_():window.orientation!=void 0&&shaka.polyfill.Orientation.installBasedOnWindowMethods_()}static installBasedOnScreenMethods_(){const a=Object.getPrototypeOf(screen.orientation);screen.orientation.lock===void 0&&(a.lock=b=>{shaka.log.info("screen.orientation.lock is a no-op");
2282
+ return Promise.resolve()});screen.orientation.unlock===void 0&&(a.unlock=()=>{shaka.log.info("screen.orientation.unlock is a no-op")})}static installBasedOnWindowMethods_(){const a=new shaka.polyfill.Orientation.FakeOrientation;screen.orientation=a;const b=()=>{switch(window.orientation){case -90:a.type="landscape-secondary";a.angle=270;break;case 0:a.type="portrait-primary";a.angle=0;break;case 90:a.type="landscape-primary";a.angle=90;break;case 180:a.type="portrait-secondary",a.angle=180}};b();
2283
+ window.addEventListener("orientationchange",()=>{b();a.dispatchChangeEvent()})}};goog.exportProperty(shaka.polyfill,"Orientation",shaka.polyfill.Orientation);goog.exportProperty(shaka.polyfill.Orientation,"install",shaka.polyfill.Orientation.install);
2284
2284
  shaka.polyfill.Orientation.FakeOrientation=class extends shaka.util.FakeEventTarget{constructor(){super();this.type="";this.angle=0}dispatchChangeEvent(){const a=new shaka.util.FakeEvent("change");this.dispatchEvent(a)}lock(a){const b=d=>screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):!1;let c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");
2285
2285
  a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)}unlock(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation&&screen.mozUnlockOrientation()}};shaka.polyfill.register(shaka.polyfill.Orientation.install);shaka.polyfill.PatchedMediaKeysApple=class{static defaultInstall(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||shaka.polyfill.PatchedMediaKeysApple.install())}static install(a=!1){const b=shaka.polyfill.PatchedMediaKeysApple;window.HTMLVideoElement&&window.WebKitMediaKeys&&window.shakaMediaKeysPolyfill!=b.apiName_&&(a&&(b.enableUninstall=!0,b.originalHTMLMediaElementPrototypeMediaKeys=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,
2286
2286
  "mediaKeys"),b.originalHTMLMediaElementPrototypeSetMediaKeys=HTMLMediaElement.prototype.setMediaKeys,b.originalWindowMediaKeys=window.MediaKeys,b.originalWindowMediaKeySystemAccess=window.MediaKeySystemAccess,b.originalNavigatorRequestMediaKeySystemAccess=navigator.requestMediaKeySystemAccess),shaka.log.info("Using Apple-prefixed EME"),delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=b.setMediaKeys,window.MediaKeys=b.MediaKeys,