shaka-player 4.16.41 → 4.16.42

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
@@ -920,53 +920,53 @@ shaka.ui.Locales.addTo = function(localization) {
920
920
  * @const
921
921
  */
922
922
  shaka.ui.Locales.Ids = {
923
- AD_DURATION: 'AD_DURATION',
924
- REPLAY: 'REPLAY',
925
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
926
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
927
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
928
- SKIP_NEXT: 'SKIP_NEXT',
923
+ AD_STATISTICS: 'AD_STATISTICS',
929
924
  LANGUAGE: 'LANGUAGE',
930
- CHAPTERS: 'CHAPTERS',
931
- UNMUTE: 'UNMUTE',
932
- AUTO_QUALITY: 'AUTO_QUALITY',
933
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
934
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
935
- PLAY: 'PLAY',
936
- AD_TIME: 'AD_TIME',
937
- RESOLUTION: 'RESOLUTION',
938
- LIVE: 'LIVE',
939
- TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
940
- STATISTICS: 'STATISTICS',
941
- SKIP_PREVIOUS: 'SKIP_PREVIOUS',
942
- AD_PROGRESS: 'AD_PROGRESS',
943
925
  BACK: 'BACK',
944
- REWIND: 'REWIND',
945
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
946
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
947
- PAUSE: 'PAUSE',
948
- RECENTER_VR: 'RECENTER_VR',
949
- AIRPLAY: 'AIRPLAY',
926
+ AD_PROGRESS: 'AD_PROGRESS',
927
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
928
+ CAST: 'CAST',
950
929
  ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
951
- MORE_SETTINGS: 'MORE_SETTINGS',
952
- FAST_FORWARD: 'FAST_FORWARD',
953
- DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
954
930
  EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
955
- LOOP: 'LOOP',
931
+ FAST_FORWARD: 'FAST_FORWARD',
956
932
  SKIP_AD: 'SKIP_AD',
957
933
  MUTE: 'MUTE',
958
- QUALITY: 'QUALITY',
959
- PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
960
- FULL_SCREEN: 'FULL_SCREEN',
961
- CAPTIONS: 'CAPTIONS',
962
- NOT_APPLICABLE: 'NOT_APPLICABLE',
963
934
  OFF: 'OFF',
964
- AD_STATISTICS: 'AD_STATISTICS',
935
+ PAUSE: 'PAUSE',
936
+ SEEK: 'SEEK',
937
+ CHAPTERS: 'CHAPTERS',
938
+ UNMUTE: 'UNMUTE',
939
+ TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
940
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
941
+ SKIP_NEXT: 'SKIP_NEXT',
942
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
943
+ DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
944
+ SKIP_PREVIOUS: 'SKIP_PREVIOUS',
965
945
  ON: 'ON',
966
- CAST: 'CAST',
967
- SUBTITLE_FORCED: 'SUBTITLE_FORCED',
968
- PLAYBACK_RATE: 'PLAYBACK_RATE',
969
946
  VOLUME: 'VOLUME',
947
+ AIRPLAY: 'AIRPLAY',
948
+ RESOLUTION: 'RESOLUTION',
949
+ LOOP: 'LOOP',
950
+ SUBTITLE_FORCED: 'SUBTITLE_FORCED',
951
+ REPLAY: 'REPLAY',
952
+ MORE_SETTINGS: 'MORE_SETTINGS',
953
+ AD_TIME: 'AD_TIME',
954
+ RECENTER_VR: 'RECENTER_VR',
955
+ PLAY: 'PLAY',
956
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
957
+ AD_DURATION: 'AD_DURATION',
958
+ STATISTICS: 'STATISTICS',
959
+ AUTO_QUALITY: 'AUTO_QUALITY',
970
960
  SURROUND: 'SURROUND',
971
- SEEK: 'SEEK',
961
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
962
+ PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
963
+ FULL_SCREEN: 'FULL_SCREEN',
964
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
965
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
966
+ LIVE: 'LIVE',
967
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
968
+ QUALITY: 'QUALITY',
969
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
970
+ REWIND: 'REWIND',
971
+ CAPTIONS: 'CAPTIONS',
972
972
  };
@@ -1280,7 +1280,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
1280
1280
  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);
1281
1281
  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);
1282
1282
  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);
1283
- 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.16.41-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={};
1283
+ 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.16.42-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={};
1284
1284
  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_,
1285
1285
  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()>=
1286
1286
  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,
@@ -778,7 +778,7 @@ R.prototype.isAudioOnly=R.prototype.ii;R.prototype.isInProgress=R.prototype.vc;R
778
778
  R.prototype.getNonDefaultConfiguration=R.prototype.Bg;R.prototype.getConfigurationForLowLatency=R.prototype.Eh;R.prototype.getConfiguration=R.prototype.getConfiguration;R.prototype.configurationForLowLatency=R.prototype.rh;R.prototype.configure=R.prototype.configure;R.prototype.releaseAllMutexes=R.prototype.Mi;R.prototype.destroyAllPreloads=R.prototype.Ye;R.prototype.preload=R.prototype.preload;R.prototype.detachAndSavePreload=R.prototype.sg;R.prototype.unloadAndSavePreload=R.prototype.bh;
779
779
  R.prototype.load=R.prototype.load;R.prototype.updateStartTime=R.prototype.gj;R.prototype.unload=R.prototype.cc;R.prototype.detach=R.prototype.detach;R.prototype.attachCanvas=R.prototype.ih;R.prototype.attach=R.prototype.Db;R.probeSupport=async function(a=!0){let b={};a&&(b=await Jg());a=jc();const c=Aj(),d=await Fa().u(),e={manifest:a,media:c,drm:b,hardwareResolution:d};Hp.forEach((f,g)=>{e[g]=f()});return e};
780
780
  R.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;Fa();return kc()?!0:lc("application/x-mpegurl")};R.setQueueManagerFactory=function(a){nr=a};R.setAdManagerFactory=function(a){mr=a};R.registerSupportPlugin=Gp;R.prototype.destroy=R.prototype.destroy;var Mq=0,lr=1,Op=2,nq=3;
781
- R.LoadMode={DESTROYED:Mq,NOT_LOADED:lr,MEDIA_SOURCE:Op,SRC_EQUALS:nq};R.version="v4.16.41";var Na;const or=["4","16"];Na=new Ja(Number(or[0]),Number(or[1]));Sa=new Qa;var Hp=new Map,mr=null,nr=null;function pr(a){return a.g.length?a.g.reduce((b,c)=>b+c,0)/a.g.length:0}var qr=class{constructor(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}};var S=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 Aa;this.l.D(this.h,google.ima.AdEvent.Type.PAUSED,()=>{this.i=!0});this.l.D(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()>=
781
+ R.LoadMode={DESTROYED:Mq,NOT_LOADED:lr,MEDIA_SOURCE:Op,SRC_EQUALS:nq};R.version="v4.16.42";var Na;const or=["4","16"];Na=new Ja(Number(or[0]),Number(or[1]));Sa=new Qa;var Hp=new Map,mr=null,nr=null;function pr(a){return a.g.length?a.g.reduce((b,c)=>b+c,0)/a.g.length:0}var qr=class{constructor(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}};var S=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 Aa;this.l.D(this.h,google.ima.AdEvent.Type.PAUSED,()=>{this.i=!0});this.l.D(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()>=
782
782
  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)):
783
783
  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=
784
784
  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}};v("shaka.ads.ClientSideAd",S);S.prototype.release=S.prototype.release;S.prototype.getPodIndex=S.prototype.getPodIndex;S.prototype.getTimeOffset=S.prototype.getTimeOffset;S.prototype.getMediaUrl=S.prototype.getMediaUrl;S.prototype.getAdvertiserName=S.prototype.getAdvertiserName;S.prototype.getCreativeAdId=S.prototype.getCreativeAdId;
@@ -802,7 +802,7 @@ a.h.D(a.g,google.ima.AdEvent.Type.COMPLETE,c=>{b(c,"ad-complete")});a.h.D(a.g,go
802
802
  c=>{b(c,"ad-duration-changed")});a.h.D(a.g,google.ima.AdEvent.Type.USER_CLOSE,c=>{b(c,"ad-closed")});a.h.D(a.g,google.ima.AdEvent.Type.LOADED,c=>{b(c,"ad-loaded")});a.h.D(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,c=>{b(c,"ad-linear-changed")});a.h.D(a.g,google.ima.AdEvent.Type.AD_METADATA,c=>{b(c,"ad-metadata")});a.h.D(a.g,google.ima.AdEvent.Type.LOG,c=>{b(c,"ad-recoverable-error")});a.h.D(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,c=>{b(c,"ad-break-ready")});a.h.D(a.g,google.ima.AdEvent.Type.INTERACTION,
803
803
  c=>{b(c,"ad-interaction")})}
804
804
  function zr(a,b){const c=b.getAd();c?(a.j=new S(c,a.g,a.i),b.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.o.supportsMultipleMediaElements||a.l(new L("ad-content-pause-requested")),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new L("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!")}
805
- var Ar=class{constructor(a,b,c,d,e){this.u=a;this.i=b;this.F=!1;this.A=this.o=null;this.G=NaN;this.l=e;this.j=null;this.h=new Aa;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.16.41");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.D(this.m,
805
+ var Ar=class{constructor(a,b,c,d,e){this.u=a;this.i=b;this.F=!1;this.A=this.o=null;this.G=NaN;this.l=e;this.j=null;this.h=new Aa;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.16.42");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.D(this.m,
806
806
  google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,f=>{vr(this,f)});this.h.D(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,f=>{yr(this,f)});this.h.D(this.i,"ended",()=>{this.m.contentComplete()});this.h.za(this.i,"play",()=>{this.F=!0})}configure(a){this.o=a}stop(){this.g&&this.g.stop();this.u&&Mi(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 T=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 this.h.clickThroughUrl!=null}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)?
807
807
  -1:a-this.g.currentTime}isPaused(){return this.g.paused}isSkippable(){return this.i&&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=
808
808
  a}isMuted(){return this.g.muted}isLinear(){return this.B==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:
@@ -890,8 +890,8 @@ var X=class extends Vf{constructor(){super();this.h=this.i=this.j=this.g=null;th
890
890
  this.j=new Ar(a,b,this.o,c,d=>ls(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 L("ad-stopped"));this.dispatchEvent(new L("ad-content-attach-requested"));this.m=new qr}requestClientSideAds(a){if(!this.j)throw new F(1,
891
891
  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 F(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 is(a,b,c,d=>ls(this,d))}requestMediaTailorStream(a,b,c=""){if(!this.i)throw new F(1,10,10005);var d=this.i;d.o?a=Promise.reject(new F(1,10,10004)):(d.o=new Lf,Yr(d,a,b),d.H=c||"",d.O=Date.now()/1E3,a=d.o);
892
892
  return a}addMediaTailorTrackingUrl(a){if(!this.i)throw new F(1,10,10005);var b=this.i;b.G=a;b.i(new L("ads-loaded",(new Map).set("loadTime",0)))}initServerSide(a,b){if(!window.google||!google.ima||!google.ima.dai)throw new F(2,10,10002);this.h&&this.h.release();this.h=new ks(a,b,this.o,c=>ls(this,c));this.h.configure(this.l)}requestServerSideStream(a,b=""){if(!this.h)throw new F(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.');
893
- a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.16.41";c=this.h;c.j?a=Promise.reject(new F(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&(c.G=!0),c.j=new Lf,c.g.requestStream(a),c.B=b||"",c.F=Date.now()/1E3,a=c.j);return a}replaceServerSideAdTagParameters(a){if(!this.h)throw new F(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.');
894
- a.mpt="Shaka Player";a.mpv="v4.16.41";this.h.g.replaceAdTagParameters(a)}getServerSideCuePoints(){Ra("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:pr(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&&
893
+ a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.16.42";c=this.h;c.j?a=Promise.reject(new F(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&(c.G=!0),c.j=new Lf,c.g.requestStream(a),c.B=b||"",c.F=Date.now()/1E3,a=c.j);return a}replaceServerSideAdTagParameters(a){if(!this.h)throw new F(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.');
894
+ a.mpt="Shaka Player";a.mpv="v4.16.42";this.h.g.replaceAdTagParameters(a)}getServerSideCuePoints(){Ra("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:pr(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&&
895
895
  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&&Ur(this.g,c))}onDASHInterstitialMetadata(a,b,c){if(!this.l||!this.l.disableDASHInterstitial){var d=c.schemeIdUri;
896
896
  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"||
897
897
  g.tagName=="ReplacePresentation")if(h=g.attributes.uri||g.attributes.url){k=Kb(h);(h=H(g,"maxDuration",fd))&&(e=h/c.timescale);(g=H(g,"returnOffset",fd))&&(f=g/c.timescale);l&&f&&(d=b+f);break}k&&Tr(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,clickThroughUrl:null}])}}}else(d==
@@ -1826,7 +1826,7 @@ goog.exportProperty(shaka.Player.prototype,"getNonDefaultConfiguration",shaka.Pl
1826
1826
  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);
1827
1827
  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);
1828
1828
  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);
1829
- 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.16.41-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
1829
+ 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.16.42-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
1830
1830
  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_++};
1831
1831
  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};
1832
1832
  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};
@@ -929,7 +929,7 @@ V.prototype.getNetworkingEngine=V.prototype.Sb;V.prototype.getMediaElement=V.pro
929
929
  V.prototype.configure=V.prototype.configure;V.prototype.releaseAllMutexes=V.prototype.Ok;V.prototype.destroyAllPreloads=V.prototype.mg;V.prototype.preload=V.prototype.preload;V.prototype.detachAndSavePreload=V.prototype.Xh;V.prototype.unloadAndSavePreload=V.prototype.hj;V.prototype.load=V.prototype.load;V.prototype.updateStartTime=V.prototype.ql;V.prototype.unload=V.prototype.yc;V.prototype.detach=V.prototype.detach;V.prototype.attachCanvas=V.prototype.oj;V.prototype.attach=V.prototype.Pb;
930
930
  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(si(),3);case 3:b=k.i;case 2:return c=Xc(),d=Sk(),e=pb(),k.g(e.hc(),4);case 4:return f=k.i,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=mr,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
931
931
  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;pb();return Yc()?!0:Zc().canPlayType("application/x-mpegurl")!=""};V.setQueueManagerFactory=function(a){er=a};V.setAdManagerFactory=function(a){dr=a};V.registerSupportPlugin=lr;V.prototype.destroy=V.prototype.destroy;var kr=0,ar=1,Xr=2,Qr=3;
932
- V.LoadMode={DESTROYED:kr,NOT_LOADED:ar,MEDIA_SOURCE:Xr,SRC_EQUALS:Qr};V.version="v4.16.41";var Is=["4","16"];wb=new function(a){this.g=a;this.i=xb;this.h=yb}(new ub(Number(Is[0]),Number(Is[1])));var mr=new Map,dr=null,er=null;function Js(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function Ks(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function Ls(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 ib;this.l.F(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.F(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=Ls.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()};
932
+ V.LoadMode={DESTROYED:kr,NOT_LOADED:ar,MEDIA_SOURCE:Xr,SRC_EQUALS:Qr};V.version="v4.16.42";var Is=["4","16"];wb=new function(a){this.g=a;this.i=xb;this.h=yb}(new ub(Number(Is[0]),Number(Is[1])));var mr=new Map,dr=null,er=null;function Js(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function Ks(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function Ls(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 ib;this.l.F(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.F(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=Ls.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()};
933
933
  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()};
934
934
  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()};
935
935
  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()};
@@ -945,7 +945,7 @@ function Os(a,b,c){var d=0;b!=null&&(d=b);var e=null;c.attributes.skipoffset&&(e
945
945
  !c.attributes.apiFramework){var h=Jd(c);if(h){a.push({id:null,groupId:null,startTime:d,endTime:null,uri:h,mimeType:c.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,clickThroughUrl:g});break}}}}
946
946
  function Ps(a){var b=[];a=u(Hd(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=ud(e),(d=Md(d,"vmap:AdSource"))&&(d=Md(d,"vmap:AdTagURI"))&&(d=Id(d))&&b.push({time:c,uri:d}))}return b}O("shaka.ads.Utils",Ms);Ms.ADS_LOADED="ads-loaded";Ms.AD_STARTED="ad-started";Ms.AD_FIRST_QUARTILE="ad-first-quartile";Ms.AD_MIDPOINT="ad-midpoint";Ms.AD_THIRD_QUARTILE="ad-third-quartile";Ms.AD_COMPLETE="ad-complete";
947
947
  Ms.AD_STOPPED="ad-stopped";Ms.AD_SKIPPED="ad-skipped";Ms.AD_VOLUME_CHANGED="ad-volume-changed";Ms.AD_MUTED="ad-muted";Ms.AD_PAUSED="ad-paused";Ms.AD_RESUMED="ad-resumed";Ms.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Ms.CUEPOINTS_CHANGED="ad-cue-points-changed";Ms.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Ms.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Ms.AD_CLICKED="ad-clicked";Ms.AD_PROGRESS="ad-progress";Ms.AD_BUFFERING="ad-buffering";Ms.AD_IMPRESSION="ad-impression";
948
- Ms.AD_DURATION_CHANGED="ad-duration-changed";Ms.AD_CLOSED="ad-closed";Ms.AD_LOADED="ad-loaded";Ms.ALL_ADS_COMPLETED="all-ads-completed";Ms.AD_LINEAR_CHANGED="ad-linear-changed";Ms.AD_METADATA="ad-metadata";Ms.AD_RECOVERABLE_ERROR="ad-recoverable-error";Ms.AD_ERROR="ad-error";Ms.AD_BREAK_READY="ad-break-ready";Ms.AD_INTERACTION="ad-interaction";Ms.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Ms.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Ms.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function Qs(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.G=!1;this.B=this.o=null;this.H=NaN;this.l=e;this.j=null;this.h=new ib;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.16.41");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.F(this.m,
948
+ Ms.AD_DURATION_CHANGED="ad-duration-changed";Ms.AD_CLOSED="ad-closed";Ms.AD_LOADED="ad-loaded";Ms.ALL_ADS_COMPLETED="all-ads-completed";Ms.AD_LINEAR_CHANGED="ad-linear-changed";Ms.AD_METADATA="ad-metadata";Ms.AD_RECOVERABLE_ERROR="ad-recoverable-error";Ms.AD_ERROR="ad-error";Ms.AD_BREAK_READY="ad-break-ready";Ms.AD_INTERACTION="ad-interaction";Ms.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Ms.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Ms.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function Qs(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.G=!1;this.B=this.o=null;this.H=NaN;this.l=e;this.j=null;this.h=new ib;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.16.42");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.F(this.m,
949
949
  google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){Rs(f,g)});this.h.F(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Ss(f,g)});this.h.F(this.i,"ended",function(){f.m.contentComplete()});this.h.Ba(this.i,"play",function(){f.G=!0})}Qs.prototype.configure=function(a){this.o=a};Qs.prototype.stop=function(){this.g&&this.g.stop();this.u&&Rj(this.u)};
950
950
  Qs.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 Ss(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new T("ad-error",b));Ts(a,null);a.l(new T("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
951
951
  function Rs(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.F(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.F(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",
@@ -1061,8 +1061,8 @@ p.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!goo
1061
1061
  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 Js};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)};
1062
1062
  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 vt(a,b,c,function(e){return Jt(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 Hg,yt(d,a,b),d.I=c||"",d.R=Date.now()/1E3,a=d.l);return a};
1063
1063
  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 Ht(a,b,this.o,function(d){return Jt(c,d)});this.h.configure(this.l)};
1064
- 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.16.41";c=this.h;c.j?a=Promise.reject(new S(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
1065
- (c.H=!0),c.j=new Hg,c.g.requestStream(a),c.C=b||"",c.G=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.16.41";this.h.g.replaceAdTagParameters(a)};
1064
+ 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.16.42";c=this.h;c.j?a=Promise.reject(new S(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
1065
+ (c.H=!0),c.j=new Hg,c.g.requestStream(a),c.C=b||"",c.G=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.16.42";this.h.g.replaceAdTagParameters(a)};
1066
1066
  p.getServerSideCuePoints=function(){vb("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:Ks(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)};
1067
1067
  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&&kt(this.g,c))};
1068
1068
  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=u(c.eventNode.children),m=l.next();!m.done;m=
@@ -1626,7 +1626,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
1626
1626
  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);
1627
1627
  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);
1628
1628
  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);
1629
- 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.16.41-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);
1629
+ 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.16.42-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);
1630
1630
  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&&
1631
1631
  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:",
1632
1632
  "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:",
@@ -938,7 +938,7 @@ Z.prototype.getActiveSessionsMetadata=Z.prototype.Sd;Z.prototype.getExpiration=Z
938
938
  Z.prototype.getAdManager=Z.prototype.Zf;Z.prototype.getAssetUri=Z.prototype.gd;Z.prototype.getNetworkingEngine=Z.prototype.sg;Z.prototype.getMediaElement=Z.prototype.Wd;Z.prototype.getManifestType=Z.prototype.Te;Z.prototype.getLoadMode=Z.prototype.Ud;Z.prototype.resetConfiguration=Z.prototype.rh;Z.prototype.getBufferFullness=Z.prototype.Qe;Z.prototype.getNonDefaultConfiguration=Z.prototype.ug;Z.prototype.getConfigurationForLowLatency=Z.prototype.hg;Z.prototype.getConfiguration=Z.prototype.getConfiguration;
939
939
  Z.prototype.configurationForLowLatency=Z.prototype.Wf;Z.prototype.configure=Z.prototype.configure;Z.prototype.releaseAllMutexes=Z.prototype.ph;Z.prototype.destroyAllPreloads=Z.prototype.Le;Z.prototype.preload=Z.prototype.preload;Z.prototype.detachAndSavePreload=Z.prototype.Me;Z.prototype.unloadAndSavePreload=Z.prototype.Fh;Z.prototype.load=Z.prototype.load;Z.prototype.updateStartTime=Z.prototype.Jh;Z.prototype.unload=Z.prototype.Rc;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.Sf;
940
940
  Z.prototype.attach=Z.prototype.pb;Z.probeSupport=async function(a=!0){let b={};a&&(b=await Wl());a=Yb();const c=pn(),d=await C().u(),e={manifest:a,media:c,drm:b,hardwareResolution:d};ju.forEach((f,g)=>{e[g]=f()});return e};Z.isBrowserSupported=function(){window.Promise||w("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;C();return Zb()?!0:ac("application/x-mpegurl")};
941
- Z.setQueueManagerFactory=function(a){iu=a};Z.setAdManagerFactory=function(a){hu=a};Z.registerSupportPlugin=function(a,b){ju.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var Ht=0,gu=1,Js=2,it=3;Z.LoadMode={DESTROYED:Ht,NOT_LOADED:gu,MEDIA_SOURCE:Js,SRC_EQUALS:it};Z.version="v4.16.41";var Ja;const ku=["4","16"];Ja=new Fa(Number(ku[0]),Number(ku[1]));La=new Ka;var ju=new Map,hu=null,iu=null;function lu(a,b){a={priority:b||0,callback:a};for(b=0;b<mu.length;b++)if(mu[b].priority<a.priority){mu.splice(b,0,a);return}mu.push(a)}var nu=class{};v("shaka.polyfill",nu);nu.register=lu;nu.installAll=function(){for(const a of mu)try{a.callback()}catch(b){w("Error installing polyfill!",b)}};var mu=[];var ou=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 pu(a){if(pb(a))return"cbcs";if(nb(a)||ob(a)||mb(a)||a==="com.huawei.wiseplay")return"cenc";w("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function qu(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 ru(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&C().A()?!0:!1};function su(){C().N()&&!tu&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(tu=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=uu,navigator.emeEncryptionSchemePolyfilled=!0)}async function uu(a,b){const c=await tu.call(this,a,b);if(qu(c))return navigator.requestMediaKeySystemAccess=tu,c;navigator.requestMediaKeySystemAccess=vu;return vu.call(this,a,b)}
941
+ Z.setQueueManagerFactory=function(a){iu=a};Z.setAdManagerFactory=function(a){hu=a};Z.registerSupportPlugin=function(a,b){ju.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var Ht=0,gu=1,Js=2,it=3;Z.LoadMode={DESTROYED:Ht,NOT_LOADED:gu,MEDIA_SOURCE:Js,SRC_EQUALS:it};Z.version="v4.16.42";var Ja;const ku=["4","16"];Ja=new Fa(Number(ku[0]),Number(ku[1]));La=new Ka;var ju=new Map,hu=null,iu=null;function lu(a,b){a={priority:b||0,callback:a};for(b=0;b<mu.length;b++)if(mu[b].priority<a.priority){mu.splice(b,0,a);return}mu.push(a)}var nu=class{};v("shaka.polyfill",nu);nu.register=lu;nu.installAll=function(){for(const a of mu)try{a.callback()}catch(b){w("Error installing polyfill!",b)}};var mu=[];var ou=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 pu(a){if(pb(a))return"cbcs";if(nb(a)||ob(a)||mb(a)||a==="com.huawei.wiseplay")return"cenc";w("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function qu(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 ru(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&C().A()?!0:!1};function su(){C().N()&&!tu&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(tu=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=uu,navigator.emeEncryptionSchemePolyfilled=!0)}async function uu(a,b){const c=await tu.call(this,a,b);if(qu(c))return navigator.requestMediaKeySystemAccess=tu,c;navigator.requestMediaKeySystemAccess=vu;return vu.call(this,a,b)}
942
942
  async function vu(a,b){var c=pu(a),d=[];for(var e of b){b=wu(e.videoCapabilities,c);const f=wu(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 tu.call(this,a,d);
943
943
  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 ou(a,c,e)}function wu(a,b){return a?a.filter(c=>ru(c.encryptionScheme,b)):a}var xu=class{},tu;nu.EmeEncryptionScheme=xu;xu.install=su;lu(su);function yu(){C().N()&&!zu&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(zu=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=Au,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
944
944
  async function Au(a){const b=await zu.call(this,a);if(!b.supported||!a.keySystemConfiguration)return b;const c=b.keySystemAccess;if(qu(c))return navigator.mediaCapabilities.decodingInfo=zu,b;navigator.mediaCapabilities.decodingInfo=Bu;return c?Bu.call(this,a):(b.keySystemAccess=await Cu(a),b)}
@@ -2338,7 +2338,7 @@ goog.exportProperty(shaka.Player.prototype,"getNonDefaultConfiguration",shaka.Pl
2338
2338
  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);
2339
2339
  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);
2340
2340
  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);
2341
- 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.16.41-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
2341
+ 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.16.42-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
2342
2342
  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)};
2343
2343
  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};
2344
2344
  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};
@@ -1119,7 +1119,7 @@ Z.prototype.getNetworkingEngine=Z.prototype.Yh;Z.prototype.getMediaElement=Z.pro
1119
1119
  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.jj;Z.prototype.load=Z.prototype.load;Z.prototype.updateStartTime=Z.prototype.nj;Z.prototype.unload=Z.prototype.td;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.xh;Z.prototype.attach=Z.prototype.Eb;
1120
1120
  Z.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return D(function(k){switch(k.h){case 1:b={};if(!a){k.A(2);break}return k.g(Fn(),3);case 3:b=k.i;case 2:return c=Nc(),d=Co(),e=P(),k.g(e.Gb(),4);case 4:return f=k.i,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=ov,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
1121
1121
  Z.isBrowserSupported=function(){window.Promise||Qa("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;P();return Oc()?!0:Pc().canPlayType("application/x-mpegurl")!=""};Z.setQueueManagerFactory=function(a){Ht=a};Z.setAdManagerFactory=function(a){Gt=a};Z.registerSupportPlugin=function(a,b){ov.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var Nt=0,Dt=1,Du=2,wu=3;
1122
- Z.LoadMode={DESTROYED:Nt,NOT_LOADED:Dt,MEDIA_SOURCE:Du,SRC_EQUALS:wu};Z.version="v4.16.41";var pv=["4","16"];pb=new function(a){this.g=a;this.i=qb;this.h=rb}(new ob(Number(pv[0]),Number(pv[1])));var ov=new Map,Gt=null,Ht=null;function qv(){}function rv(a,b){a={priority:b||0,callback:a};for(b=0;b<sv.length;b++)if(sv[b].priority<a.priority){sv.splice(b,0,a);return}sv.push(a)}E("shaka.polyfill",qv);qv.register=rv;qv.installAll=function(){for(var a=t(sv),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Qa("Error installing polyfill!",c)}}};var sv=[];function tv(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}tv.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};tv.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function uv(a){if(Zb(a))return"cbcs";if(Xb(a)||Yb(a)||Wb(a)||a==="com.huawei.wiseplay")return"cenc";Qa("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function vv(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 wv(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&P().tc()?!0:!1};function xv(){}var yv;function zv(){P().qe()&&!yv&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(yv=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Av,navigator.emeEncryptionSchemePolyfilled=!0)}
1122
+ Z.LoadMode={DESTROYED:Nt,NOT_LOADED:Dt,MEDIA_SOURCE:Du,SRC_EQUALS:wu};Z.version="v4.16.42";var pv=["4","16"];pb=new function(a){this.g=a;this.i=qb;this.h=rb}(new ob(Number(pv[0]),Number(pv[1])));var ov=new Map,Gt=null,Ht=null;function qv(){}function rv(a,b){a={priority:b||0,callback:a};for(b=0;b<sv.length;b++)if(sv[b].priority<a.priority){sv.splice(b,0,a);return}sv.push(a)}E("shaka.polyfill",qv);qv.register=rv;qv.installAll=function(){for(var a=t(sv),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Qa("Error installing polyfill!",c)}}};var sv=[];function tv(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}tv.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};tv.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function uv(a){if(Zb(a))return"cbcs";if(Xb(a)||Yb(a)||Wb(a)||a==="com.huawei.wiseplay")return"cenc";Qa("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function vv(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 wv(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&P().tc()?!0:!1};function xv(){}var yv;function zv(){P().qe()&&!yv&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(yv=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Av,navigator.emeEncryptionSchemePolyfilled=!0)}
1123
1123
  function Av(a,b){var c=this,d,e;return D(function(f){if(f.h==1)return f.g(yv.call(c,a,b),2);d=f.i;if(e=vv(d))return navigator.requestMediaKeySystemAccess=yv,f.return(d);navigator.requestMediaKeySystemAccess=Bv;return f.return(Bv.call(c,a,b))})}
1124
1124
  function Bv(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,r,u;return D(function(v){if(v.h==1){d=uv(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=Cv(h.videoCapabilities,d),l=Cv(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",
1125
1125
  n.code=DOMException.NOT_SUPPORTED_ERR,n;return v.g(yv.call(c,a,e),2)}q=v.i;u=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(u=e[0].audioCapabilities[0].encryptionScheme));return v.return(new tv(q,r,u))})}function Cv(a,b){return a?a.filter(function(c){return wv(c.encryptionScheme,b)}):a}qv.EmeEncryptionScheme=xv;xv.install=zv;rv(zv);function Dv(){}var Ev;function Fv(){P().qe()&&!Ev&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(Ev=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=Gv,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
@@ -1546,7 +1546,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
1546
1546
  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);
1547
1547
  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);
1548
1548
  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);
1549
- 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.16.41-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);
1549
+ 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.16.42-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);
1550
1550
  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&&
1551
1551
  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:",
1552
1552
  "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:",
@@ -923,7 +923,7 @@ Z.prototype.getActiveSessionsMetadata=Z.prototype.ie;Z.prototype.getExpiration=Z
923
923
  Z.prototype.getAdManager=Z.prototype.ag;Z.prototype.getAssetUri=Z.prototype.fd;Z.prototype.getNetworkingEngine=Z.prototype.vg;Z.prototype.getMediaElement=Z.prototype.me;Z.prototype.getManifestType=Z.prototype.df;Z.prototype.getLoadMode=Z.prototype.ke;Z.prototype.resetConfiguration=Z.prototype.qh;Z.prototype.getBufferFullness=Z.prototype.bf;Z.prototype.getNonDefaultConfiguration=Z.prototype.wg;Z.prototype.getConfigurationForLowLatency=Z.prototype.jg;Z.prototype.getConfiguration=Z.prototype.getConfiguration;
924
924
  Z.prototype.configurationForLowLatency=Z.prototype.Yf;Z.prototype.configure=Z.prototype.configure;Z.prototype.releaseAllMutexes=Z.prototype.ph;Z.prototype.destroyAllPreloads=Z.prototype.Ze;Z.prototype.preload=Z.prototype.preload;Z.prototype.detachAndSavePreload=Z.prototype.$e;Z.prototype.unloadAndSavePreload=Z.prototype.Hh;Z.prototype.load=Z.prototype.load;Z.prototype.updateStartTime=Z.prototype.Kh;Z.prototype.unload=Z.prototype.Kc;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.Sf;
925
925
  Z.prototype.attach=Z.prototype.xb;Z.probeSupport=async function(a=!0){let b={};a&&(b=await vi());a=dc();const c=Zm(),d=await y().u(),e={manifest:a,media:c,drm:b,hardwareResolution:d};lu.forEach((f,g)=>{e[g]=f()});return e};Z.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;y();return ec()?!0:fc("application/x-mpegurl")};
926
- Z.setQueueManagerFactory=function(a){ku=a};Z.setAdManagerFactory=function(a){ju=a};Z.registerSupportPlugin=function(a,b){lu.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var Jt=0,iu=1,Ls=2,kt=3;Z.LoadMode={DESTROYED:Jt,NOT_LOADED:iu,MEDIA_SOURCE:Ls,SRC_EQUALS:kt};Z.version="v4.16.41";var Ka;const mu=["4","16"];Ka=new Ga(Number(mu[0]),Number(mu[1]));Ma=new La;var lu=new Map,ju=null,ku=null;function nu(a,b){a={priority:b||0,callback:a};for(b=0;b<ou.length;b++)if(ou[b].priority<a.priority){ou.splice(b,0,a);return}ou.push(a)}var pu=class{};w("shaka.polyfill",pu);pu.register=nu;pu.installAll=function(){for(const a of ou)try{a.callback()}catch(b){ja("Error installing polyfill!",b)}};var ou=[];var qu=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 ru(a){if(sb(a))return"cbcs";if(qb(a)||rb(a)||pb(a)||a==="com.huawei.wiseplay")return"cenc";ja("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function su(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 tu(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&y().A()?!0:!1};function uu(){y().O()&&!vu&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(vu=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=wu,navigator.emeEncryptionSchemePolyfilled=!0)}async function wu(a,b){const c=await vu.call(this,a,b);if(su(c))return navigator.requestMediaKeySystemAccess=vu,c;navigator.requestMediaKeySystemAccess=xu;return xu.call(this,a,b)}
926
+ Z.setQueueManagerFactory=function(a){ku=a};Z.setAdManagerFactory=function(a){ju=a};Z.registerSupportPlugin=function(a,b){lu.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var Jt=0,iu=1,Ls=2,kt=3;Z.LoadMode={DESTROYED:Jt,NOT_LOADED:iu,MEDIA_SOURCE:Ls,SRC_EQUALS:kt};Z.version="v4.16.42";var Ka;const mu=["4","16"];Ka=new Ga(Number(mu[0]),Number(mu[1]));Ma=new La;var lu=new Map,ju=null,ku=null;function nu(a,b){a={priority:b||0,callback:a};for(b=0;b<ou.length;b++)if(ou[b].priority<a.priority){ou.splice(b,0,a);return}ou.push(a)}var pu=class{};w("shaka.polyfill",pu);pu.register=nu;pu.installAll=function(){for(const a of ou)try{a.callback()}catch(b){ja("Error installing polyfill!",b)}};var ou=[];var qu=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 ru(a){if(sb(a))return"cbcs";if(qb(a)||rb(a)||pb(a)||a==="com.huawei.wiseplay")return"cenc";ja("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function su(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 tu(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&y().A()?!0:!1};function uu(){y().O()&&!vu&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(vu=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=wu,navigator.emeEncryptionSchemePolyfilled=!0)}async function wu(a,b){const c=await vu.call(this,a,b);if(su(c))return navigator.requestMediaKeySystemAccess=vu,c;navigator.requestMediaKeySystemAccess=xu;return xu.call(this,a,b)}
927
927
  async function xu(a,b){var c=ru(a),d=[];for(var e of b){b=yu(e.videoCapabilities,c);const f=yu(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 vu.call(this,a,d);
928
928
  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 qu(a,c,e)}function yu(a,b){return a?a.filter(c=>tu(c.encryptionScheme,b)):a}var zu=class{},vu;pu.EmeEncryptionScheme=zu;zu.install=uu;nu(uu);function Au(){y().O()&&!Bu&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(Bu=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=Cu,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
929
929
  async function Cu(a){const b=await Bu.call(this,a);if(!b.supported||!a.keySystemConfiguration)return b;const c=b.keySystemAccess;if(su(c))return navigator.mediaCapabilities.decodingInfo=Bu,b;navigator.mediaCapabilities.decodingInfo=Du;return c?Du.call(this,a):(b.keySystemAccess=await Eu(a),b)}
@@ -2219,7 +2219,7 @@ goog.exportProperty(shaka.Player.prototype,"getNonDefaultConfiguration",shaka.Pl
2219
2219
  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);
2220
2220
  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);
2221
2221
  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);
2222
- 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.16.41-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
2222
+ 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.16.42-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
2223
2223
  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)};
2224
2224
  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};
2225
2225
  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};
@@ -1106,7 +1106,7 @@ Z.prototype.getNetworkingEngine=Z.prototype.ai;Z.prototype.getMediaElement=Z.pro
1106
1106
  Z.prototype.configure=Z.prototype.configure;Z.prototype.releaseAllMutexes=Z.prototype.Yi;Z.prototype.destroyAllPreloads=Z.prototype.jg;Z.prototype.preload=Z.prototype.preload;Z.prototype.detachAndSavePreload=Z.prototype.kg;Z.prototype.unloadAndSavePreload=Z.prototype.mj;Z.prototype.load=Z.prototype.load;Z.prototype.updateStartTime=Z.prototype.pj;Z.prototype.unload=Z.prototype.od;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.yh;Z.prototype.attach=Z.prototype.Kb;
1107
1107
  Z.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return I(function(k){switch(k.h){case 1:b={};if(!a){k.u(2);break}return k.g(gk(),3);case 3:b=k.i;case 2:return c=Sc(),d=Jo(),e=qb(),k.g(e.Mb(),4);case 4:return f=k.i,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=Vv,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
1108
1108
  Z.isBrowserSupported=function(){window.Promise||Ya("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;qb();return Tc()?!0:Uc().canPlayType("application/x-mpegurl")!=""};Z.setQueueManagerFactory=function(a){tu=a};Z.setAdManagerFactory=function(a){su=a};Z.registerSupportPlugin=function(a,b){Vv.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var zu=0,pu=1,jv=2,cv=3;
1109
- Z.LoadMode={DESTROYED:zu,NOT_LOADED:pu,MEDIA_SOURCE:jv,SRC_EQUALS:cv};Z.version="v4.16.41";var Wv=["4","16"];wb=new function(a){this.g=a;this.i=xb;this.h=yb}(new ub(Number(Wv[0]),Number(Wv[1])));var Vv=new Map,su=null,tu=null;function Xv(){}function Yv(a,b){a={priority:b||0,callback:a};for(b=0;b<Zv.length;b++)if(Zv[b].priority<a.priority){Zv.splice(b,0,a);return}Zv.push(a)}K("shaka.polyfill",Xv);Xv.register=Yv;Xv.installAll=function(){for(var a=r(Zv),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Ya("Error installing polyfill!",c)}}};var Zv=[];function $v(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}$v.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};$v.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function aw(a){if(cc(a))return"cbcs";if(ac(a)||bc(a)||Zb(a)||a==="com.huawei.wiseplay")return"cenc";Ya("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function bw(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 cw(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&qb().uc()?!0:!1};function dw(){}var ew;function fw(){qb().ve()&&!ew&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(ew=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=gw,navigator.emeEncryptionSchemePolyfilled=!0)}
1109
+ Z.LoadMode={DESTROYED:zu,NOT_LOADED:pu,MEDIA_SOURCE:jv,SRC_EQUALS:cv};Z.version="v4.16.42";var Wv=["4","16"];wb=new function(a){this.g=a;this.i=xb;this.h=yb}(new ub(Number(Wv[0]),Number(Wv[1])));var Vv=new Map,su=null,tu=null;function Xv(){}function Yv(a,b){a={priority:b||0,callback:a};for(b=0;b<Zv.length;b++)if(Zv[b].priority<a.priority){Zv.splice(b,0,a);return}Zv.push(a)}K("shaka.polyfill",Xv);Xv.register=Yv;Xv.installAll=function(){for(var a=r(Zv),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Ya("Error installing polyfill!",c)}}};var Zv=[];function $v(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}$v.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};$v.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function aw(a){if(cc(a))return"cbcs";if(ac(a)||bc(a)||Zb(a)||a==="com.huawei.wiseplay")return"cenc";Ya("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function bw(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 cw(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&qb().uc()?!0:!1};function dw(){}var ew;function fw(){qb().ve()&&!ew&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(ew=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=gw,navigator.emeEncryptionSchemePolyfilled=!0)}
1110
1110
  function gw(a,b){var c=this,d,e;return I(function(f){if(f.h==1)return f.g(ew.call(c,a,b),2);d=f.i;if(e=bw(d))return navigator.requestMediaKeySystemAccess=ew,f.return(d);navigator.requestMediaKeySystemAccess=hw;return f.return(hw.call(c,a,b))})}
1111
1111
  function hw(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,u,t;return I(function(v){if(v.h==1){d=aw(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=iw(h.videoCapabilities,d),l=iw(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",
1112
1112
  n.code=DOMException.NOT_SUPPORTED_ERR,n;return v.g(ew.call(c,a,e),2)}q=v.i;t=u=null;e[0]&&(e[0].videoCapabilities&&(u=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(t=e[0].audioCapabilities[0].encryptionScheme));return v.return(new $v(q,u,t))})}function iw(a,b){return a?a.filter(function(c){return cw(c.encryptionScheme,b)}):a}Xv.EmeEncryptionScheme=dw;dw.install=fw;Yv(fw);function jw(){}var kw;function lw(){qb().ve()&&!kw&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(kw=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=mw,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
@@ -249,9 +249,9 @@ a.insert("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_
249
249
  ["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"],
250
250
  ["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",
251
251
  "\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"]]))};
252
- shaka.ui.Locales.Ids={TOGGLE_STEREOSCOPIC:"TOGGLE_STEREOSCOPIC",REPLAY:"REPLAY",AD_PROGRESS:"AD_PROGRESS",EXIT_LOOP_MODE:"EXIT_LOOP_MODE",VOLUME:"VOLUME",PAUSE:"PAUSE",CAST:"CAST",AIRPLAY:"AIRPLAY",FAST_FORWARD:"FAST_FORWARD",AD_STATISTICS:"AD_STATISTICS",LOOP:"LOOP",SKIP_PREVIOUS:"SKIP_PREVIOUS",BACK:"BACK",MORE_SETTINGS:"MORE_SETTINGS",AUTO_QUALITY:"AUTO_QUALITY",AD_TIME:"AD_TIME",SKIP_NEXT:"SKIP_NEXT",STATISTICS:"STATISTICS",UNDETERMINED_LANGUAGE:"UNDETERMINED_LANGUAGE",MUTE:"MUTE",FULL_SCREEN:"FULL_SCREEN",
253
- PLAYBACK_RATE:"PLAYBACK_RATE",UNMUTE:"UNMUTE",RECENTER_VR:"RECENTER_VR",CHAPTERS:"CHAPTERS",LIVE:"LIVE",SKIP_TO_LIVE:"SKIP_TO_LIVE",SUBTITLE_FORCED:"SUBTITLE_FORCED",SURROUND:"SURROUND",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",NOT_APPLICABLE:"NOT_APPLICABLE",SEEK:"SEEK",QUALITY:"QUALITY",UNRECOGNIZED_LANGUAGE:"UNRECOGNIZED_LANGUAGE",CAPTIONS:"CAPTIONS",ON:"ON",REWIND:"REWIND",EXIT_PICTURE_IN_PICTURE:"EXIT_PICTURE_IN_PICTURE",SKIP_AD:"SKIP_AD",EXIT_FULL_SCREEN:"EXIT_FULL_SCREEN",MULTIPLE_LANGUAGES:"MULTIPLE_LANGUAGES",
254
- OFF:"OFF",RESOLUTION:"RESOLUTION",ENTER_PICTURE_IN_PICTURE:"ENTER_PICTURE_IN_PICTURE",PLAY:"PLAY",AD_DURATION:"AD_DURATION",ENTER_LOOP_MODE:"ENTER_LOOP_MODE",LANGUAGE:"LANGUAGE",DOWNLOAD_VIDEO_FRAME:"DOWNLOAD_VIDEO_FRAME"};shaka.abr={};
252
+ shaka.ui.Locales.Ids={REWIND:"REWIND",UNRECOGNIZED_LANGUAGE:"UNRECOGNIZED_LANGUAGE",REPLAY:"REPLAY",PLAY:"PLAY",ENTER_LOOP_MODE:"ENTER_LOOP_MODE",CHAPTERS:"CHAPTERS",FULL_SCREEN:"FULL_SCREEN",RECENTER_VR:"RECENTER_VR",RESOLUTION:"RESOLUTION",ENTER_PICTURE_IN_PICTURE:"ENTER_PICTURE_IN_PICTURE",LIVE:"LIVE",EXIT_PICTURE_IN_PICTURE:"EXIT_PICTURE_IN_PICTURE",SKIP_TO_LIVE:"SKIP_TO_LIVE",VOLUME:"VOLUME",EXIT_LOOP_MODE:"EXIT_LOOP_MODE",SUBTITLE_FORCED:"SUBTITLE_FORCED",AUTO_QUALITY:"AUTO_QUALITY",CAPTIONS:"CAPTIONS",
253
+ CAST:"CAST",AD_PROGRESS:"AD_PROGRESS",EXIT_FULL_SCREEN:"EXIT_FULL_SCREEN",SKIP_AD:"SKIP_AD",MULTIPLE_LANGUAGES:"MULTIPLE_LANGUAGES",AIRPLAY:"AIRPLAY",FAST_FORWARD:"FAST_FORWARD",LANGUAGE:"LANGUAGE",SKIP_NEXT:"SKIP_NEXT",TOGGLE_STEREOSCOPIC:"TOGGLE_STEREOSCOPIC",SURROUND:"SURROUND",LOOP:"LOOP",ON:"ON",STATISTICS:"STATISTICS",OFF:"OFF",AD_DURATION:"AD_DURATION",BACK:"BACK",AD_TIME:"AD_TIME",SKIP_PREVIOUS:"SKIP_PREVIOUS",MORE_SETTINGS:"MORE_SETTINGS",UNDETERMINED_LANGUAGE:"UNDETERMINED_LANGUAGE",QUALITY:"QUALITY",
254
+ PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",UNMUTE:"UNMUTE",AD_STATISTICS:"AD_STATISTICS",DOWNLOAD_VIDEO_FRAME:"DOWNLOAD_VIDEO_FRAME",SEEK:"SEEK",PLAYBACK_RATE:"PLAYBACK_RATE",PAUSE:"PAUSE",MUTE:"MUTE",NOT_APPLICABLE:"NOT_APPLICABLE"};shaka.abr={};
255
255
  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_<
256
256
  this.minTotalBytes_?a:Math.min(this.fast_.getEstimate(),this.slow_.getEstimate())}hasGoodEstimate(){return this.bytesSampled_>=this.minTotalBytes_}};shaka.util.ArrayUtils=class{static defaultEquals(a,b){return typeof a==="number"&&typeof b==="number"&&isNaN(a)&&isNaN(b)?!0:a===b}static remove(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)}static count(a,b){let c=0;for(const d of a)c+=b(d)?1:0;return c}static hasSameElements(a,b,c){c||(c=shaka.util.ArrayUtils.defaultEquals);if(a.length!=b.length)return!1;b=b.slice();for(const d of a){a=b.findIndex(e=>c(d,e));if(a==-1)return!1;b[a]=b[b.length-1];b.pop()}return b.length==0}static partition(a,b){const c=
257
257
  [],d=[];for(const e of a)b(e)?c.push(e):d.push(e);return[c,d]}static binarySearch(a,b){let c=0,d=a.length;for(;c<d;){const e=c+d>>>1;b(a[e])?c=e+1:d=e}return c}static equal(a,b,c){if(a===b)return!0;if(!a||!b)return a==b;c||(c=shaka.util.ArrayUtils.defaultEquals);if(a.length!=b.length)return!1;for(let d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0}};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=
@@ -1376,7 +1376,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
1376
1376
  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);
1377
1377
  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);
1378
1378
  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);
1379
- 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.16.41-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={};
1379
+ 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.16.42-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={};
1380
1380
  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_,
1381
1381
  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()>=
1382
1382
  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,
@@ -2310,9 +2310,9 @@ shaka.polyfill.MediaSource.stubAbort_()):shaka.log.info("Using native MSE as-is.
2310
2310
  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)!=
2311
2311
  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)!=
2312
2312
  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);
2313
- 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===
2314
- 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",
2315
- ()=>{b();a.dispatchChangeEvent()})}};goog.exportProperty(shaka.polyfill,"Orientation",shaka.polyfill.Orientation);goog.exportProperty(shaka.polyfill.Orientation,"install",shaka.polyfill.Orientation.install);
2313
+ 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");
2314
+ 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();
2315
+ window.addEventListener("orientationchange",()=>{b();a.dispatchChangeEvent()})}};goog.exportProperty(shaka.polyfill,"Orientation",shaka.polyfill.Orientation);goog.exportProperty(shaka.polyfill.Orientation,"install",shaka.polyfill.Orientation.install);
2316
2316
  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");
2317
2317
  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,
2318
2318
  "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,