(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var f,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ba=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}},ca="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},h;
if("function"==typeof Object.setPrototypeOf)h=Object.setPrototypeOf;else{var k;a:{var da={Wb:!0},ea={};try{ea.__proto__=da;k=ea.Wb;break a}catch(a){}k=!1}h=k?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var fa=h,m=function(a,b){a.prototype=ca(b.prototype);a.prototype.constructor=a;if(fa)fa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c]},p=this||self,ha=function(){},q=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==
typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},r=function(a){var b=q(a);return"array"==b||"object"==b&&"number"==typeof a.length},v="closure_uid_"+(1E9*Math.random()>>>
0),ia=0,ja=function(a,b,c){return a.call.apply(a.bind,arguments)},ka=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},w=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w=ja:w=ka;return w.apply(null,arguments)},x=Date.now||function(){return+new Date},
y=function(a,b){a=a.split(".");var c=p;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b},z=function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};var mojo={};chrome.cast.VERSION=[1,2];y("chrome.cast.VERSION",chrome.cast.VERSION);chrome.cast.Kc=!0;y("chrome.cast.usingPresentationApi",chrome.cast.Kc);chrome.cast.eb=function(a,b){this.credentials=a;this.credentialsType=void 0===b?"web":b};y("chrome.cast.CredentialsData",chrome.cast.eb);chrome.cast.Error=function(a,b,c){this.code=a;this.description=b||null;this.details=c||null};y("chrome.cast.Error",chrome.cast.Error);chrome.cast.Fb=function(a){this.platform=a;this.packageId=this.url=null};
y("chrome.cast.SenderApplication",chrome.cast.Fb);chrome.cast.Image=function(a){this.url=a;this.width=this.height=null};y("chrome.cast.Image",chrome.cast.Image);chrome.cast.Volume=function(a,b){this.level=void 0!==a?a:null;this.muted=void 0!==b?b:null};y("chrome.cast.Volume",chrome.cast.Volume);chrome.cast.ma={CUSTOM_CONTROLLER_SCOPED:"custom_controller_scoped",TAB_AND_ORIGIN_SCOPED:"tab_and_origin_scoped",ORIGIN_SCOPED:"origin_scoped",PAGE_SCOPED:"page_scoped"};y("chrome.cast.AutoJoinPolicy",chrome.cast.ma);chrome.cast.oa={CREATE_SESSION:"create_session",CAST_THIS_TAB:"cast_this_tab"};y("chrome.cast.DefaultActionPolicy",chrome.cast.oa);chrome.cast.V={VIDEO_OUT:"video_out",AUDIO_OUT:"audio_out",VIDEO_IN:"video_in",AUDIO_IN:"audio_in",MULTIZONE_GROUP:"multizone_group"};
y("chrome.cast.Capability",chrome.cast.V);chrome.cast.m={CANCEL:"cancel",TIMEOUT:"timeout",API_NOT_INITIALIZED:"api_not_initialized",INVALID_PARAMETER:"invalid_parameter",EXTENSION_NOT_COMPATIBLE:"extension_not_compatible",EXTENSION_MISSING:"extension_missing",RECEIVER_UNAVAILABLE:"receiver_unavailable",SESSION_ERROR:"session_error",CHANNEL_ERROR:"channel_error",LOAD_MEDIA_FAILED:"load_media_failed"};y("chrome.cast.ErrorCode",chrome.cast.m);chrome.cast.P={AVAILABLE:"available",UNAVAILABLE:"unavailable"};
y("chrome.cast.ReceiverAvailability",chrome.cast.P);chrome.cast.Gb={CHROME:"chrome",IOS:"ios",ANDROID:"android"};y("chrome.cast.SenderPlatform",chrome.cast.Gb);chrome.cast.Ca={CAST:"cast",DIAL:"dial",HANGOUT:"hangout",CUSTOM:"custom"};y("chrome.cast.ReceiverType",chrome.cast.Ca);chrome.cast.hb={RUNNING:"running",STOPPED:"stopped",ERROR:"error"};y("chrome.cast.DialAppState",chrome.cast.hb);chrome.cast.Bb={CAST:"cast",STOP:"stop"};y("chrome.cast.ReceiverAction",chrome.cast.Bb);
chrome.cast.J={CONNECTED:"connected",DISCONNECTED:"disconnected",STOPPED:"stopped"};y("chrome.cast.SessionStatus",chrome.cast.J);chrome.cast.Ub={ATTENUATION:"attenuation",FIXED:"fixed",MASTER:"master"};y("chrome.cast.VolumeControlType",chrome.cast.Ub);var A=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,A);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};z(A,Error);A.prototype.name="CustomError";var B=function(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");A.call(this,c+a[d])};z(B,A);B.prototype.name="AssertionError";var la=function(a,b){throw new B("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var ma=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},na=function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return e;return-1};var oa=/&/g,pa=/</g,qa=/>/g,ra=/"/g,sa=/'/g,ta=/\x00/g,ua=/[\x00&<>"']/;var C;a:{var va=p.navigator;if(va){var wa=va.userAgent;if(wa){C=wa;break a}}C=""}var D=function(a){return-1!=C.indexOf(a)};var E=function(){this.b="";this.f=xa};E.prototype.toString=function(){return"SafeHtml{"+this.b+"}"};var ya=function(a){if(a instanceof E&&a.constructor===E&&a.f===xa)return a.b;la("expected object of type SafeHtml, got '"+a+"' of type "+q(a));return"type_error:SafeHtml"},xa={},za=new E;za.b=p.trustedTypes&&p.trustedTypes.emptyHTML?p.trustedTypes.emptyHTML:"";var Aa={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Ba=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if("undefined"===typeof document)return!1;var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);if(!a.firstChild)return!1;b=a.firstChild.firstChild;a.innerHTML=ya(za);return!b.parentElement});var Da=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=p.document.createElement("div");return a.replace(Ca,function(d,e){var g=b[d];if(g)return g;"#"==e.charAt(0)&&(e=Number("0"+e.substr(1)),isNaN(e)||(g=String.fromCharCode(e)));if(!g){g=new E;g.b=d+" ";if(Aa[c.tagName.toUpperCase()])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+c.tagName+".");if(Ba())for(;c.lastChild;)c.removeChild(c.lastChild);c.innerHTML=ya(g);g=c.firstChild.nodeValue.slice(0,
-1)}return b[d]=g})},Ea=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?b:String.fromCharCode(c)}})},Ca=/&([^;\s<&]+);?/g;chrome.cast.Ya=function(a,b,c,d,e){this.sessionRequest=a;this.sessionListener=b;this.receiverListener=c;this.autoJoinPolicy=d||chrome.cast.ma.TAB_AND_ORIGIN_SCOPED;this.defaultActionPolicy=e||chrome.cast.oa.CREATE_SESSION;this.customDialLaunchCallback=null;this.invisibleSender=!1;this.additionalSessionRequests=[]};y("chrome.cast.ApiConfig",chrome.cast.Ya);chrome.cast.kb=function(a,b){this.appName=a;this.launchParameter=b||null};y("chrome.cast.DialRequest",chrome.cast.kb);
chrome.cast.ib=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};y("chrome.cast.DialLaunchData",chrome.cast.ib);chrome.cast.jb=function(a,b){this.doLaunch=a;this.launchParameter=b||null};y("chrome.cast.DialLaunchResponse",chrome.cast.jb);
chrome.cast.Hb=function(a,b,c,d,e){c=void 0===c?chrome.cast.timeout.requestSession:c;this.appId=a;this.capabilities=Array.isArray(b)?b:[chrome.cast.V.VIDEO_OUT,chrome.cast.V.AUDIO_OUT];this.requestSessionTimeout=c;this.dialRequest=this.language=null;this.androidReceiverCompatible=void 0===d?!1:d;this.credentialsData=void 0===e?null:e};y("chrome.cast.SessionRequest",chrome.cast.Hb);
chrome.cast.Ab=function(a,b,c,d){this.label=a;a=b;ua.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(oa,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(pa,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(qa,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(ra,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(sa,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(ta,"&#0;")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.Ca.CAST;this.displayStatus=this.isActiveInput=null};
y("chrome.cast.Receiver",chrome.cast.Ab);chrome.cast.Cb=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};y("chrome.cast.ReceiverDisplayStatus",chrome.cast.Cb);chrome.cast.Fa=function(){this.requestSession=6E4;this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};y("chrome.cast.Timeout",chrome.cast.Fa);chrome.cast.timeout=new chrome.cast.Fa;y("chrome.cast.timeout",chrome.cast.timeout);chrome.cast.Xa="auto-join";chrome.cast.ub="cast-session_";chrome.cast.media.nb={SDR:"sdr",HDR:"hdr",DV:"dv"};y("chrome.cast.media.HdrType",chrome.cast.media.nb);chrome.cast.media.ob={AAC:"aac",AC3:"ac3",MP3:"mp3",TS:"ts",TS_AAC:"ts_aac",E_AC3:"e_ac3",FMP4:"fmp4"};y("chrome.cast.media.HlsSegmentFormat",chrome.cast.media.ob);chrome.cast.media.pb={MPEG2_TS:"mpeg2_ts",FMP4:"fmp4"};y("chrome.cast.media.HlsVideoSegmentFormat",chrome.cast.media.pb);chrome.cast.media.sb={PAUSE:"pause",SEEK:"seek",STREAM_VOLUME:"stream_volume",STREAM_MUTE:"stream_mute"};
y("chrome.cast.media.MediaCommand",chrome.cast.media.sb);chrome.cast.media.yb={ALBUM:"ALBUM",PLAYLIST:"PLAYLIST",AUDIOBOOK:"AUDIOBOOK",RADIO_STATION:"RADIO_STATION",PODCAST_SERIES:"PODCAST_SERIES",TV_SERIES:"TV_SERIES",VIDEO_PLAYLIST:"VIDEO_PLAYLIST",LIVE_TV:"LIVE_TV",MOVIE:"MOVIE"};y("chrome.cast.media.QueueType",chrome.cast.media.yb);chrome.cast.media.X={GENERIC_CONTAINER:0,AUDIOBOOK_CONTAINER:1};y("chrome.cast.media.ContainerType",chrome.cast.media.X);
chrome.cast.media.B={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4,AUDIOBOOK_CHAPTER:5};y("chrome.cast.media.MetadataType",chrome.cast.media.B);chrome.cast.media.u={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};y("chrome.cast.media.PlayerState",chrome.cast.media.u);chrome.cast.media.Y={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};y("chrome.cast.media.RepeatMode",chrome.cast.media.Y);
chrome.cast.media.Db={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};y("chrome.cast.media.ResumeState",chrome.cast.media.Db);chrome.cast.media.Ea={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};y("chrome.cast.media.StreamType",chrome.cast.media.Ea);chrome.cast.media.qb={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};y("chrome.cast.media.IdleReason",chrome.cast.media.qb);chrome.cast.media.Pb={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"};
y("chrome.cast.media.TrackType",chrome.cast.media.Pb);chrome.cast.media.Mb={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};y("chrome.cast.media.TextTrackType",chrome.cast.media.Mb);chrome.cast.media.Ib={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};y("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.Ib);chrome.cast.media.Nb={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"};
y("chrome.cast.media.TextTrackWindowType",chrome.cast.media.Nb);chrome.cast.media.Jb={SANS_SERIF:"SANS_SERIF",MONOSPACED_SANS_SERIF:"MONOSPACED_SANS_SERIF",SERIF:"SERIF",MONOSPACED_SERIF:"MONOSPACED_SERIF",CASUAL:"CASUAL",CURSIVE:"CURSIVE",SMALL_CAPITALS:"SMALL_CAPITALS"};y("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.Jb);chrome.cast.media.Kb={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};y("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.Kb);
chrome.cast.media.Qb={LIKE:"LIKE",DISLIKE:"DISLIKE",FOLLOW:"FOLLOW",UNFOLLOW:"UNFOLLOW"};y("chrome.cast.media.UserAction",chrome.cast.media.Qb);chrome.cast.media.qa=function(){this.customData=null};y("chrome.cast.media.GetStatusRequest",chrome.cast.media.qa);chrome.cast.media.ua=function(){this.customData=null};y("chrome.cast.media.PauseRequest",chrome.cast.media.ua);chrome.cast.media.wa=function(){this.customData=null};y("chrome.cast.media.PlayRequest",chrome.cast.media.wa);chrome.cast.media.Eb=function(){this.customData=this.resumeState=this.currentTime=null};y("chrome.cast.media.SeekRequest",chrome.cast.media.Eb);
chrome.cast.media.Da=function(){this.customData=null};y("chrome.cast.media.StopRequest",chrome.cast.media.Da);chrome.cast.media.Vb=function(a){this.volume=a;this.customData=null};y("chrome.cast.media.VolumeRequest",chrome.cast.media.Vb);chrome.cast.media.rb=function(a){this.type="LOAD";this.requestId=0;this.sessionId=null;this.media=a;this.activeTrackIds=null;this.autoplay=!0;this.customData=this.currentTime=null};y("chrome.cast.media.LoadRequest",chrome.cast.media.rb);
chrome.cast.media.vb=function(a){this.type="PRECACHE";this.requestId=0;this.precacheData=a};chrome.cast.media.lb=function(a,b){this.requestId=0;this.activeTrackIds=a||null;this.textTrackStyle=b||null};y("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.lb);chrome.cast.media.W=function(a){this.containerType=a=void 0===a?chrome.cast.media.X.GENERIC_CONTAINER:a;this.containerDuration=this.containerImages=this.sections=this.title=void 0};y("chrome.cast.media.ContainerMetadata",chrome.cast.media.W);
chrome.cast.media.j=function(a){this.metadataType=this.type=a;this.queueItemId=this.sectionStartTimeInContainer=this.sectionStartAbsoluteTime=this.sectionStartTimeInMedia=this.sectionDuration=void 0};y("chrome.cast.media.MediaMetadata",chrome.cast.media.j);chrome.cast.media.pa=function(){chrome.cast.media.j.call(this,chrome.cast.media.B.GENERIC);this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=void 0};m(chrome.cast.media.pa,chrome.cast.media.j);
y("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.pa);chrome.cast.media.sa=function(){chrome.cast.media.j.call(this,chrome.cast.media.B.MOVIE);this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=void 0};m(chrome.cast.media.sa,chrome.cast.media.j);y("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.sa);
chrome.cast.media.Ga=function(){chrome.cast.media.j.call(this,chrome.cast.media.B.TV_SHOW);this.originalAirdate=this.releaseYear=this.images=this.episode=this.episodeNumber=this.season=this.seasonNumber=this.episodeTitle=this.title=this.seriesTitle=void 0};m(chrome.cast.media.Ga,chrome.cast.media.j);y("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Ga);
chrome.cast.media.ta=function(){chrome.cast.media.j.call(this,chrome.cast.media.B.MUSIC_TRACK);this.releaseDate=this.releaseYear=this.images=this.discNumber=this.trackNumber=this.artistName=this.songName=this.composer=this.artist=this.albumArtist=this.title=this.albumName=void 0};m(chrome.cast.media.ta,chrome.cast.media.j);y("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.ta);
chrome.cast.media.va=function(){chrome.cast.media.j.call(this,chrome.cast.media.B.PHOTO);this.creationDateTime=this.height=this.width=this.longitude=this.latitude=this.images=this.location=this.artist=this.title=void 0};m(chrome.cast.media.va,chrome.cast.media.j);y("chrome.cast.media.PhotoMediaMetadata",chrome.cast.media.va);chrome.cast.media.la=function(){chrome.cast.media.W.call(this,chrome.cast.media.X.AUDIOBOOK_CONTAINER);this.releaseDate=this.publisher=this.narrators=this.authors=void 0};
m(chrome.cast.media.la,chrome.cast.media.W);y("chrome.cast.media.AudiobookContainerMetadata",chrome.cast.media.la);chrome.cast.media.ka=function(){chrome.cast.media.j.call(this,chrome.cast.media.B.AUDIOBOOK_CHAPTER);this.images=this.subtitle=this.bookTitle=this.chapterNumber=this.title=this.chapterTitle=void 0};m(chrome.cast.media.ka,chrome.cast.media.j);y("chrome.cast.media.AudiobookChapterMediaMetadata",chrome.cast.media.ka);
chrome.cast.media.tb=function(a,b){this.contentId=a;this.contentUrl=void 0;this.streamType=chrome.cast.media.Ea.BUFFERED;this.contentType=b;this.metadata=null;this.entity=void 0;this.duration=null;this.startAbsoluteTime=void 0;this.customData=this.textTrackStyle=this.tracks=null;this.userActionStates=this.hlsVideoSegmentFormat=this.hlsSegmentFormat=this.vmapAdsRequest=this.breakClips=this.breaks=void 0};y("chrome.cast.media.MediaInfo",chrome.cast.media.tb);
chrome.cast.media.ya=function(a){this.itemId=null;this.media=a;this.autoplay=!0;this.startTime=0;this.playbackDuration=null;this.preloadTime=0;this.customData=this.activeTrackIds=null};y("chrome.cast.media.QueueItem",chrome.cast.media.ya);chrome.cast.media.gb="CC1AD845";y("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.gb);chrome.cast.media.timeout={};chrome.cast.media.timeout.load=0;y("chrome.cast.media.timeout.load",chrome.cast.media.timeout.load);
chrome.cast.media.timeout.S=0;y("chrome.cast.media.timeout.getStatus",chrome.cast.media.timeout.S);chrome.cast.media.timeout.play=0;y("chrome.cast.media.timeout.play",chrome.cast.media.timeout.play);chrome.cast.media.timeout.pause=0;y("chrome.cast.media.timeout.pause",chrome.cast.media.timeout.pause);chrome.cast.media.timeout.seek=0;y("chrome.cast.media.timeout.seek",chrome.cast.media.timeout.seek);chrome.cast.media.timeout.stop=0;y("chrome.cast.media.timeout.stop",chrome.cast.media.timeout.stop);
chrome.cast.media.timeout.U=0;y("chrome.cast.media.timeout.setVolume",chrome.cast.media.timeout.U);chrome.cast.media.timeout.R=0;y("chrome.cast.media.timeout.editTracksInfo",chrome.cast.media.timeout.R);chrome.cast.media.timeout.l=0;y("chrome.cast.media.timeout.queue",chrome.cast.media.timeout.l);chrome.cast.media.Ob=function(a,b){this.trackId=a;this.trackContentType=this.trackContentId=null;this.type=b;this.customData=this.subtype=this.language=this.name=null};y("chrome.cast.media.Track",chrome.cast.media.Ob);
chrome.cast.media.Lb=function(){this.customData=this.fontStyle=this.fontGenericFamily=this.fontFamily=this.fontScale=this.windowRoundedCornerRadius=this.windowColor=this.windowType=this.edgeColor=this.edgeType=this.backgroundColor=this.foregroundColor=null};y("chrome.cast.media.TextTrackStyle",chrome.cast.media.Lb);chrome.cast.media.xb=function(a){this.type="QUEUE_LOAD";this.sessionId=this.requestId=null;this.items=a;this.startIndex=0;this.repeatMode=chrome.cast.media.Y.OFF;this.customData=null};
y("chrome.cast.media.QueueLoadRequest",chrome.cast.media.xb);chrome.cast.media.xa=function(a){this.type="QUEUE_INSERT";this.sessionId=this.requestId=null;this.items=a;this.customData=this.insertBefore=null};y("chrome.cast.media.QueueInsertItemsRequest",chrome.cast.media.xa);chrome.cast.media.zb=function(a){this.type="QUEUE_UPDATE";this.sessionId=this.requestId=null;this.items=a;this.customData=null};y("chrome.cast.media.QueueUpdateItemsRequest",chrome.cast.media.zb);
chrome.cast.media.O=function(){this.type="QUEUE_UPDATE";this.customData=this.jump=this.currentItemId=this.sessionId=this.requestId=null};y("chrome.cast.media.QueueJumpRequest",chrome.cast.media.O);chrome.cast.media.Ba=function(){this.type="QUEUE_UPDATE";this.customData=this.repeatMode=this.sessionId=this.requestId=null};y("chrome.cast.media.QueueSetPropertiesRequest",chrome.cast.media.Ba);
chrome.cast.media.za=function(a){this.type="QUEUE_REMOVE";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=null};y("chrome.cast.media.QueueRemoveItemsRequest",chrome.cast.media.za);chrome.cast.media.Aa=function(a){this.type="QUEUE_REORDER";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=this.insertBefore=null};y("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.Aa);
chrome.cast.media.Za=function(a,b,c){this.id=a;this.breakClipIds=b;this.position=c;this.duration=void 0;this.isWatched=!1;this.isEmbedded=void 0};y("chrome.cast.media.Break",chrome.cast.media.Za);chrome.cast.media.ab=function(a){this.id=a;this.vastAdsRequest=this.customData=this.hlsSegmentFormat=this.clickThroughUrl=this.posterUrl=this.whenSkippable=this.duration=this.title=this.contentType=this.contentUrl=this.contentId=void 0};y("chrome.cast.media.BreakClip",chrome.cast.media.ab);
chrome.cast.media.Sb=function(){this.adsResponse=this.adTagUrl=void 0};y("chrome.cast.media.VastAdsRequest",chrome.cast.media.Sb);chrome.cast.media.bb=function(){this.whenSkippable=this.breakClipId=this.breakId=this.currentBreakClipTime=this.currentBreakTime=void 0};y("chrome.cast.media.BreakStatus",chrome.cast.media.bb);chrome.cast.media.ra=function(a,b,c,d){this.start=a;this.end=b;this.isMovingWindow=c;this.isLiveDone=d};y("chrome.cast.media.LiveSeekableRange",chrome.cast.media.ra);
chrome.cast.media.wb=function(a,b,c,d,e,g,l){this.id=a;this.queueType=this.entity=void 0;this.name=b;this.description=c;this.repeatMode=d;this.shuffle=!1;this.items=e;this.startIndex=g;this.startTime=l;this.containerMetadata=void 0};y("chrome.cast.media.QueueData",chrome.cast.media.wb);chrome.cast.media.Rb=function(a){this.userAction=a;this.customData=void 0};y("chrome.cast.media.UserActionState",chrome.cast.media.Rb);chrome.cast.media.Tb=function(a,b,c){this.width=a;this.height=b;this.hdrType=c};
y("chrome.cast.media.VideoInformation",chrome.cast.media.Tb);chrome.cast.media.a=function(a,b){this.sessionId=a;this.mediaSessionId=b;this.media=null;this.videoInfo=this.queueData=void 0;this.playbackRate=1;this.playerState=chrome.cast.media.u.IDLE;this.currentTime=0;this.b=-1;this.supportedMediaCommands=[];this.volume=new chrome.cast.Volume;this.items=this.preloadedItemId=this.loadingItemId=this.currentItemId=this.customData=this.activeTrackIds=this.idleReason=null;this.repeatMode=chrome.cast.media.Y.OFF;this.breakStatus=void 0;this.g=!1;this.f=[];this.liveSeekableRange=
void 0};y("chrome.cast.media.Media",chrome.cast.media.a);chrome.cast.media.a.prototype.S=function(a,b,c){a||(a=new chrome.cast.media.qa);F.b(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.S)};chrome.cast.media.a.prototype.getStatus=chrome.cast.media.a.prototype.S;chrome.cast.media.a.prototype.play=function(a,b,c){this.La(F,a,b,c)};chrome.cast.media.a.prototype.play=chrome.cast.media.a.prototype.play;
chrome.cast.media.a.prototype.La=function(a,b,c,d){b||(b=new chrome.cast.media.wa);a.b(this,"PLAY",b,c,d,chrome.cast.media.timeout.play)};chrome.cast.media.a.prototype.playWithContext=chrome.cast.media.a.prototype.La;chrome.cast.media.a.prototype.pause=function(a,b,c){this.Ka(F,a,b,c)};chrome.cast.media.a.prototype.pause=chrome.cast.media.a.prototype.pause;chrome.cast.media.a.prototype.Ka=function(a,b,c,d){b||(b=new chrome.cast.media.ua);a.b(this,"PAUSE",b,c,d,chrome.cast.media.timeout.pause)};
chrome.cast.media.a.prototype.pauseWithContext=chrome.cast.media.a.prototype.Ka;chrome.cast.media.a.prototype.seek=function(a,b,c){F.b(this,"SEEK",a,b,c,chrome.cast.media.timeout.seek)};chrome.cast.media.a.prototype.seek=chrome.cast.media.a.prototype.seek;chrome.cast.media.a.prototype.stop=function(a,b,c){a||(a=new chrome.cast.media.Da);F.b(this,"STOP_MEDIA",a,b,c,chrome.cast.media.timeout.stop)};chrome.cast.media.a.prototype.stop=chrome.cast.media.a.prototype.stop;
chrome.cast.media.a.prototype.U=function(a,b,c){F.b(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.U)};chrome.cast.media.a.prototype.setVolume=chrome.cast.media.a.prototype.U;chrome.cast.media.a.prototype.R=function(a,b,c){F.b(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.R)};chrome.cast.media.a.prototype.editTracksInfo=chrome.cast.media.a.prototype.R;chrome.cast.media.a.prototype.pc=function(a,b,c){F.b(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.l)};
chrome.cast.media.a.prototype.queueInsertItems=chrome.cast.media.a.prototype.pc;chrome.cast.media.a.prototype.oc=function(a,b,c){F.b(this,"QUEUE_INSERT",new chrome.cast.media.xa([a]),b,c,chrome.cast.media.timeout.l)};chrome.cast.media.a.prototype.queueAppendItem=chrome.cast.media.a.prototype.oc;chrome.cast.media.a.prototype.zc=function(a,b,c){F.b(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.l)};chrome.cast.media.a.prototype.queueUpdateItems=chrome.cast.media.a.prototype.zc;
chrome.cast.media.a.prototype.uc=function(a,b){var c=new chrome.cast.media.O;c.jump=-1;F.b(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.l)};chrome.cast.media.a.prototype.queuePrev=chrome.cast.media.a.prototype.uc;chrome.cast.media.a.prototype.tc=function(a,b){var c=new chrome.cast.media.O;c.jump=1;F.b(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.l)};chrome.cast.media.a.prototype.queueNext=chrome.cast.media.a.prototype.tc;
chrome.cast.media.a.prototype.qc=function(a,b,c){if(!(0>G(this,a))){var d=new chrome.cast.media.O;d.currentItemId=a;F.b(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.l)}};chrome.cast.media.a.prototype.queueJumpToItem=chrome.cast.media.a.prototype.qc;chrome.cast.media.a.prototype.yc=function(a,b,c){var d=new chrome.cast.media.Ba;d.repeatMode=a;F.b(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.l)};chrome.cast.media.a.prototype.queueSetRepeatMode=chrome.cast.media.a.prototype.yc;
chrome.cast.media.a.prototype.wc=function(a,b,c){F.b(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.l)};chrome.cast.media.a.prototype.queueRemoveItems=chrome.cast.media.a.prototype.wc;chrome.cast.media.a.prototype.vc=function(a,b,c){0>G(this,a)||F.b(this,"QUEUE_REMOVE",new chrome.cast.media.za([a]),b,c,chrome.cast.media.timeout.l)};chrome.cast.media.a.prototype.queueRemoveItem=chrome.cast.media.a.prototype.vc;chrome.cast.media.a.prototype.xc=function(a,b,c){F.b(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.l)};
chrome.cast.media.a.prototype.queueReorderItems=chrome.cast.media.a.prototype.xc;chrome.cast.media.a.prototype.sc=function(a,b,c,d){var e=G(this,a);if(!(0>e))if(0>b)d&&d(new chrome.cast.Error(chrome.cast.m.INVALID_PARAMETER));else if(e==b)c&&c();else{var g=null;b=b>e?b+1:b;b<this.items.length&&(g=this.items[b]);a=new chrome.cast.media.Aa([a]);a.insertBefore=g?g.itemId:null;F.b(this,"QUEUE_REORDER",a,c,d,chrome.cast.media.timeout.l)}};chrome.cast.media.a.prototype.queueMoveItemToNewIndex=chrome.cast.media.a.prototype.sc;
chrome.cast.media.a.prototype.Jc=function(a){return-1<this.supportedMediaCommands.indexOf(a)};chrome.cast.media.a.prototype.supportsCommand=chrome.cast.media.a.prototype.Jc;chrome.cast.media.a.prototype.hc=function(){if(this.playerState==chrome.cast.media.u.PLAYING&&0<=this.b){var a=(x()-this.b)/1E3;a=this.currentTime+this.playbackRate*a;this.media&&null!=this.media.duration&&a>this.media.duration&&-1!=this.media.duration&&(a=this.media.duration);0>a&&(a=0);return a}return this.currentTime};
chrome.cast.media.a.prototype.getEstimatedTime=chrome.cast.media.a.prototype.hc;chrome.cast.media.a.prototype.ec=function(){if(this.breakStatus&&void 0!==this.breakStatus.currentBreakTime)return this.playerState==chrome.cast.media.u.PLAYING&&0<=this.b?this.breakStatus.currentBreakTime+(x()-this.b)/1E3:this.breakStatus.currentBreakTime};chrome.cast.media.a.prototype.getEstimatedBreakTime=chrome.cast.media.a.prototype.ec;
chrome.cast.media.a.prototype.dc=function(){if(this.breakStatus&&void 0!==this.breakStatus.currentBreakClipTime)return this.playerState==chrome.cast.media.u.PLAYING&&0<=this.b?this.breakStatus.currentBreakClipTime+(x()-this.b)/1E3:this.breakStatus.currentBreakClipTime};chrome.cast.media.a.prototype.getEstimatedBreakClipTime=chrome.cast.media.a.prototype.dc;
chrome.cast.media.a.prototype.fc=function(){if(this.liveSeekableRange&&void 0!==this.liveSeekableRange.start&&void 0!==this.liveSeekableRange.end){if(this.playerState==chrome.cast.media.u.PLAYING&&0<=this.b){var a=(x()-this.b)/1E3,b=new chrome.cast.media.ra;b.isMovingWindow=this.liveSeekableRange.isMovingWindow;b.isLiveDone=this.liveSeekableRange.isLiveDone;b.start=b.isMovingWindow?this.liveSeekableRange.start+a:this.liveSeekableRange.start;b.end=b.isLiveDone?this.liveSeekableRange.end:this.liveSeekableRange.end+
a;return b}return this.liveSeekableRange}};chrome.cast.media.a.prototype.getEstimatedLiveSeekableRange=chrome.cast.media.a.prototype.fc;chrome.cast.media.a.prototype.ba=function(a){this.K(F,a)};chrome.cast.media.a.prototype.addUpdateListener=chrome.cast.media.a.prototype.ba;chrome.cast.media.a.prototype.K=function(a,b){a.Yb(this,b)};chrome.cast.media.a.prototype.addUpdateListenerWithContext=chrome.cast.media.a.prototype.K;chrome.cast.media.a.prototype.ea=function(a){this.N(F,a)};
chrome.cast.media.a.prototype.removeUpdateListener=chrome.cast.media.a.prototype.ea;chrome.cast.media.a.prototype.N=function(a,b){F.Bc(this,b)};chrome.cast.media.a.prototype.removeUpdateListenerWithContext=chrome.cast.media.a.prototype.N;var G=function(a,b){return na(a.items,function(c){return c.itemId==b})};var F=null;var Fa=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var Ga=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var Ha=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.c=function(a,b,c,d,e){this.sessionId=a;this.appId=b;this.displayName=c;this.statusText=null;this.appImages=d;this.receiver=e;this.senderApps=[];this.namespaces=[];this.media=[];this.status=chrome.cast.J.CONNECTED;this.transportId=""};y("chrome.cast.Session",chrome.cast.c);chrome.cast.c.prototype.Ic=function(a,b,c){this.Sa(F,a,b,c)};chrome.cast.c.prototype.setReceiverVolumeLevel=chrome.cast.c.prototype.Ic;
chrome.cast.c.prototype.Sa=function(a,b,c,d){b=new Ga(new chrome.cast.Volume(b,null),this.receiver.volume);a.setReceiverVolume(this.sessionId,b,c,d)};chrome.cast.c.prototype.setReceiverVolumeLevelWithContext=chrome.cast.c.prototype.Sa;chrome.cast.c.prototype.Hc=function(a,b,c){this.Ra(F,a,b,c)};chrome.cast.c.prototype.setReceiverMuted=chrome.cast.c.prototype.Hc;
chrome.cast.c.prototype.Ra=function(a,b,c,d){a=new Ga(new chrome.cast.Volume(null,b),this.receiver.volume);F.setReceiverVolume(this.sessionId,a,c,d)};chrome.cast.c.prototype.setReceiverMutedWithContext=chrome.cast.c.prototype.Ra;chrome.cast.c.prototype.jc=function(a,b){F.leaveSession(this.sessionId,a,b)};chrome.cast.c.prototype.leave=chrome.cast.c.prototype.jc;chrome.cast.c.prototype.stop=function(a,b){this.Ua(F,a,b)};chrome.cast.c.prototype.stop=chrome.cast.c.prototype.stop;
chrome.cast.c.prototype.Ua=function(a,b,c){a.Pa(new Ha(this.sessionId),b,c,chrome.cast.timeout.stopSession)};chrome.cast.c.prototype.stopWithContext=chrome.cast.c.prototype.Ua;chrome.cast.c.prototype.sendMessage=function(a,b,c,d){this.Qa(F,a,b,c,d)};chrome.cast.c.prototype.sendMessage=chrome.cast.c.prototype.sendMessage;chrome.cast.c.prototype.Qa=function(a,b,c,d,e){a.Ec(new Fa(this.sessionId,b,c),d,e)};chrome.cast.c.prototype.sendMessageWithContext=chrome.cast.c.prototype.Qa;
chrome.cast.c.prototype.ba=function(a){this.K(F,a)};chrome.cast.c.prototype.addUpdateListener=chrome.cast.c.prototype.ba;chrome.cast.c.prototype.K=function(a,b){a.ac(this.sessionId,b)};chrome.cast.c.prototype.addUpdateListenerWithContext=chrome.cast.c.prototype.K;chrome.cast.c.prototype.ea=function(a){this.N(F,a)};chrome.cast.c.prototype.removeUpdateListener=chrome.cast.c.prototype.ea;chrome.cast.c.prototype.N=function(a,b){a.Dc(this.sessionId,b)};
chrome.cast.c.prototype.removeUpdateListenerWithContext=chrome.cast.c.prototype.N;chrome.cast.c.prototype.Zb=function(a,b){this.Ia(F,a,b)};chrome.cast.c.prototype.addMessageListener=chrome.cast.c.prototype.Zb;chrome.cast.c.prototype.Ia=function(a,b,c){a.Xb(this.sessionId,b,c)};chrome.cast.c.prototype.addMessageListenerWithContext=chrome.cast.c.prototype.Ia;chrome.cast.c.prototype.Z=function(a){this.Ha(F,a)};chrome.cast.c.prototype.addMediaListener=chrome.cast.c.prototype.Z;
chrome.cast.c.prototype.Ha=function(a,b){a.Z(this.sessionId,b)};chrome.cast.c.prototype.addMediaListenerWithContext=chrome.cast.c.prototype.Ha;chrome.cast.c.prototype.ca=function(a){this.Ma(F,a)};chrome.cast.c.prototype.removeMediaListener=chrome.cast.c.prototype.ca;chrome.cast.c.prototype.Ma=function(a,b){a.ca(this.sessionId,b)};chrome.cast.c.prototype.removeMediaListenerWithContext=chrome.cast.c.prototype.Ma;chrome.cast.c.prototype.Cc=function(a,b){this.Na(F,a,b)};
chrome.cast.c.prototype.removeMessageListener=chrome.cast.c.prototype.Cc;chrome.cast.c.prototype.Na=function(a,b,c){a.Ac(this.sessionId,b,c)};chrome.cast.c.prototype.removeMessageListenerWithContext=chrome.cast.c.prototype.Na;chrome.cast.c.prototype.kc=function(a,b,c){a.sessionId=this.sessionId;F.na(a,"LOAD",b,c)};chrome.cast.c.prototype.loadMedia=chrome.cast.c.prototype.kc;chrome.cast.c.prototype.rc=function(a,b,c){a.sessionId=this.sessionId;F.na(a,"QUEUE_LOAD",b,c)};
chrome.cast.c.prototype.queueLoad=chrome.cast.c.prototype.rc;var H="StopIteration"in p?p.StopIteration:{message:"StopIteration",stack:""},I=function(){};I.prototype.next=function(){throw H;};I.prototype.o=function(){return this};
var Ia=function(a){if(a instanceof I)return a;if("function"==typeof a.o)return a.o(!1);if(r(a)){var b=0,c=new I;c.next=function(){for(;;){if(b>=a.length)throw H;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},J=function(a,b){if(r(a))try{ma(a,b,void 0)}catch(c){if(c!==H)throw c;}else{a=Ia(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==H)throw c;}}};var K=function(a,b){this.b={};this.h=[];this.g=this.f=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof K)for(L(a),c=a.h.concat(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};K.prototype.L=function(){L(this);for(var a=[],b=0;b<this.h.length;b++)a.push(this.b[this.h[b]]);return a};K.prototype.clear=function(){this.b={};this.g=this.f=this.h.length=0};
K.prototype.remove=function(a){return M(this.b,a)?(delete this.b[a],this.f--,this.g++,this.h.length>2*this.f&&L(this),!0):!1};var L=function(a){if(a.f!=a.h.length){for(var b=0,c=0;b<a.h.length;){var d=a.h[b];M(a.b,d)&&(a.h[c++]=d);b++}a.h.length=c}if(a.f!=a.h.length){var e={};for(c=b=0;b<a.h.length;)d=a.h[b],M(e,d)||(a.h[c++]=d,e[d]=1),b++;a.h.length=c}};K.prototype.get=function(a,b){return M(this.b,a)?this.b[a]:b};
K.prototype.set=function(a,b){M(this.b,a)||(this.f++,this.h.push(a),this.g++);this.b[a]=b};K.prototype.o=function(a){L(this);var b=0,c=this.g,d=this,e=new I;e.next=function(){if(c!=d.g)throw Error("The map has changed since the iterator was created");if(b>=d.h.length)throw H;var g=d.h[b++];return a?g:d.b[g]};return e};var M=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var N=function(a,b){this.requestId=a;this.i=b;this.Va=null};N.prototype.f=function(){};var Ja=function(){this.b=new K},Ka=function(a,b){a.b.set(b.requestId,b);b.Va=setTimeout(function(){a.b.remove(b.requestId);b.f()},b.i)},La=function(a,b){var c=a.b.get(b);if(!c)return null;clearTimeout(c.Va);a.b.remove(b);return c};var O=function(a,b,c,d){N.call(this,a,d||6E5);this.g=b;this.b=c};m(O,N);O.prototype.f=function(){this.b(new chrome.cast.Error(chrome.cast.m.TIMEOUT))};var P=function(a,b,c,d){this.type=a;this.message=b;this.sequenceNumber=void 0!==c?c:-1;this.timeoutMillis=d||0;this.clientId=""};var Q=function(a){this.g=a;this.f=String(Date.now())+String(Math.floor(1E5*Math.random()));this.b=null},Ma=function(a,b){if(!a.b)return"No active session";b.clientId=a.f;b=JSON.stringify(b);if(32768<b.length)return"Message length over limit";a.b.send(b);return null};Q.prototype.connect=function(a){this.b=a;this.b.onmessage=w(this.i,this);Ma(this,new P("client_connect",this.f))};Q.prototype.disconnect=function(){this.b.close();this.b=null};
Q.prototype.i=function(a){a=JSON.parse(a.data);if(a.clientId==this.f)this.g.onMessage(a)};var Na=function(a,b,c){this.g=a;this.f=b;this.b=c},Oa=function(a){var b="cast-dial:"+a.g,c=new URLSearchParams;a.f&&c.set("dialPostData",a.f);a.b&&c.set("clientId",a.b);(a=c.toString())&&(b+="?"+a);return b};var Pa=function(a,b,c,d,e,g,l,n,t,u,Wa,Xa){this.D=a;this.b=b||null;this.f=c||null;this.v=d||null;this.w=void 0!==e?e:null;this.A=g||null;this.G=l||null;this.F=n||!1;this.i=t||null;this.g=u||null;this.I=Wa?["WEB","ANDROID_TV"]:["WEB"];this.s=Xa||null},Qa=function(a){var b={launchCheckerParams:{}};a.s&&(b.launchCheckerParams.credentialsData=a.s);return b},Ra=function(a){var b=a.D.map(function(c){var d="cast:"+c.appId,e=new URLSearchParams;c.capabilities&&0<c.capabilities.length&&e.set("capabilities",
c.capabilities.join(","));a.b&&e.set("clientId",a.b);a.f&&e.set("autoJoinPolicy",a.f);a.v&&e.set("defaultActionPolicy",a.v);null!=a.w&&e.set("launchTimeout",String(a.w));a.F&&e.set("invisibleSender","true");a.i&&(e.set("broadcastNamespace",a.i),e.set("broadcastId",String(Math.random())));a.g&&e.set("broadcastMessage",encodeURIComponent(JSON.stringify(a.g)));e.set("supportedAppTypes",encodeURIComponent(JSON.stringify(a.I)));e.set("appParams",encodeURIComponent(JSON.stringify(Qa(a))));return d+"?"+
e.toString()});a.A&&b.push(Oa(new Na(a.A,a.G,a.b)));return b};var Sa=function(){this.b={};this.f={}},Ta=function(a,b,c){var d=a.b[b];return d?(d.status=c,d.media.forEach(function(e){delete a.f[e.sessionId+"#"+e.mediaSessionId]}),delete a.b[b],!0):!1},Va=function(a,b){var c=a.b[b.sessionId];if(c)return c.statusText=b.statusText,c.namespaces=b.namespaces||[],c.receiver.volume=b.receiver.volume,c;c=new chrome.cast.c(b.sessionId,b.appId,b.displayName,b.appImages,b.receiver);for(var d in b)"media"==d?c.media=b.media.map(function(e){e=Ua(a,e);e.i=!1;e.g=!0;return e}):
b.hasOwnProperty(d)&&(c[d]=b[d]);return a.b[b.sessionId]=c},Ua=function(a,b){var c=b.sessionId+"#"+b.mediaSessionId,d=a.f[c];d||(d=new chrome.cast.media.a(b.sessionId,b.mediaSessionId),a.f[c]=d,(a=a.b[b.sessionId])&&a.media.push(d));a=d;a.currentItemId=null;a.loadingItemId=null;a.preloadedItemId=null;for(var e in b)"items"!=e&&b.hasOwnProperty(e)&&("volume"==e?(a.volume.level=b.volume.level,a.volume.muted=b.volume.muted):a[e]=b[e]);e=ba(["idleReason","extendedStatus"]);for(c=e.next();!c.done;c=e.next())c=
c.value,b.hasOwnProperty(c)||(a[c]=null);"currentTime"in b&&(a.b=Date.now());if(a.playerState==chrome.cast.media.u.IDLE&&null==a.loadingItemId)a.currentItemId=null,a.loadingItemId=null,a.preloadedItemId=null,a.items=null;else if(b.hasOwnProperty("items")&&b.items){e=[];var g=a.items;c={};if(g)for(var l=0;l<g.length;l++)c[g[l].itemId]=l;b=ba(b.items);for(g=b.next();!g.done;g=b.next()){g=g.value;if(!g.media){l=g.itemId;var n=a.items?a.items[c[l]]:null;n&&n.media?g.media=n.media:l==a.currentItemId&&
a.media&&(g.media=a.media)}e.push(Ya(g))}a.items=e}return d},Za=function(a,b){delete a.f[b.sessionId+"#"+b.mediaSessionId];if(a=a.b[b.sessionId])b=a.media.indexOf(b),-1!=b&&a.media.splice(b,1)},Ya=function(a){var b=new chrome.cast.media.ya(a.media),c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};var $a=function(){};var ab=D("Opera"),bb=D("Gecko")&&!(-1!=C.toLowerCase().indexOf("webkit")&&!D("Edge"))&&!(D("Trident")||D("MSIE"))&&!D("Edge"),cb=-1!=C.toLowerCase().indexOf("webkit")&&!D("Edge");try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){};var R=function(a,b,c){this.i=null!=c?w(a,c):a;this.g=b;this.f=w(this.mc,this);this.b=[]};z(R,$a);f=R.prototype;f.H=!1;f.M=0;f.C=null;f.cc=function(a){this.b=arguments;this.C||this.M?this.H=!0:S(this)};f.stop=function(){this.C&&(p.clearTimeout(this.C),this.C=null,this.H=!1,this.b=[])};f.pause=function(){this.M++};f.resume=function(){this.M--;this.M||!this.H||this.C||(this.H=!1,S(this))};f.mc=function(){this.C=null;this.H&&!this.M&&(this.H=!1,S(this))};
var S=function(a){var b=a.f;var c=a.g;if("function"!=q(b))if(b&&"function"==typeof b.handleEvent)b=w(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647<Number(c)?-1:p.setTimeout(b,c||0);a.C=b;a.i.apply(null,a.b)};var db=D("Safari")&&!((D("Chrome")||D("CriOS"))&&!D("Edge")||D("Coast")||D("Opera")||D("Edge")||D("Edg/")||D("OPR")||D("Firefox")||D("FxiOS")||D("Silk")||D("Android"))&&!(D("iPhone")&&!D("iPod")&&!D("iPad")||D("iPad")||D("iPod"));var eb={},T=null,fb=bb||cb&&!db||ab||"function"==typeof p.btoa,gb=function(a){if(fb)var b=p.btoa(a);else{b=[];for(var c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}a=void 0;void 0===a&&(a=0);if(!T)for(T={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var g=c.concat(d[e].split(""));eb[e]=g;for(var l=0;l<g.length;l++){var n=g[l];void 0===T[n]&&(T[n]=l)}}a=eb[a];c=[];for(d=0;d<b.length;d+=
3){var t=b[d],u=(e=d+1<b.length)?b[d+1]:0;n=(g=d+2<b.length)?b[d+2]:0;l=t>>2;t=(t&3)<<4|u>>4;u=(u&15)<<2|n>>6;n&=63;g||(n=64,e||(u=64));c.push(a[l],a[t],a[u]||"",a[n]||"")}b=c.join("")}return b};var hb=function(a){if(a.L&&"function"==typeof a.L)return a.L();if("string"===typeof a)return a.split("");if(r(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}b=[];c=0;for(d in a)b[c++]=a[d];return b};var U=function(){this.b=new K},ib=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(Object.prototype.hasOwnProperty.call(a,v)&&a[v]||(a[v]=++ia)):b.substr(0,1)+a};f=U.prototype;f.add=function(a){this.b.set(ib(a),a)};f.removeAll=function(a){a=hb(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.b.remove(ib(a))};f.clear=function(){this.b.clear()};f.contains=function(a){a=ib(a);return M(this.b.b,a)};f.L=function(){return this.b.L()};f.o=function(){return this.b.o(!1)};var V=function(){this.w=new Q(this);this.f=null;this.I=new Sa;this.i=0;this.ia=new Ja;this.A=new K;this.ja=!1;this.v=new K;this.F=new K;this.G=[];this.fb=this.bc.bind(this);this.g=null;this.D=0;this.s=null;this.cb=new R(this.mb,200,this);this.Wa=null},jb=function(a){var b=new chrome.cast.Error(chrome.cast.m.INVALID_PARAMETER,"Already requesting session");a&&a(b)},W=function(a,b,c,d){c&&Ka(a.ia,c);void 0!==d?b.sequenceNumber=d:(b.sequenceNumber=a.i,a.i=(a.i+1)%9007199254740992);d=Ma(a.w,b);c&&d&&(a=
La(a.ia,b.sequenceNumber),b=new chrome.cast.Error(chrome.cast.m.INVALID_PARAMETER,d),(a=a.b)&&a(b))};
V.prototype.T=function(a,b){var c=this;F=this;this.f=a;a.invisibleSender||(a=new PresentationRequest(X(this)),a.getAvailability().then(function(d){d.onchange=function(){c.ja=!!d.value;c.f.receiverListener(d.value?chrome.cast.P.AVAILABLE:chrome.cast.P.UNAVAILABLE)};d.onchange()},function(){c.f.receiverListener(chrome.cast.P.AVAILABLE)}),a.onconnectionavailable=function(d){Y(c,d.connection)},this.Wa=(p.navigator||null).presentation.defaultRequest=a,a.reconnect(chrome.cast.Xa).then(function(d){Y(c,d)},
ha));b&&b(void 0)};V.prototype.ga=function(a){a.navigator.presentation.defaultRequest=this.Wa};
var Y=function(a,b,c){c=void 0===c?null:c;b.onclose=function(d){a.g=null;switch(d.reason){case "closed":kb(a,chrome.cast.J.DISCONNECTED);break;case "error":c&&(d=new chrome.cast.Error(chrome.cast.m.SESSION_ERROR),c&&c(d))}};b.onterminate=function(){kb(a,chrome.cast.J.STOPPED)};"connected"==b.state?a.w.connect(b):b.onconnect=function(){a.w.connect(b)}},nb=function(a){var b=Z;lb.has(a.type)&&b.ja&&(b.s?(a.sessionId=b.s,mb(b,null,a.type,a,function(){},function(){})):b.cb.cc(X(b,void 0,"urn:x-cast:com.google.cast.media",
a)))};V.prototype.mb=function(a){(a=(new PresentationRequest(a)).getAvailability())&&a.then(function(){},function(){})};V.prototype.requestSession=function(a,b,c){var d=this;this.g?jb(b):(c=X(this,c),this.g=a,(new PresentationRequest(c)).start().then(function(e){Y(d,e,b)}).catch(function(e){d.g=null;e=new chrome.cast.Error("AbortError"==e.name||"NotAllowedError"==e.name?chrome.cast.m.CANCEL:chrome.cast.m.SESSION_ERROR);b&&b(e)}))};
var X=function(a,b,c,d){var e=null,g=null,l=b||a.f.sessionRequest,n=l.dialRequest;n&&(e=n.appName,(g=n.launchParameter)&&!g.match(ob)&&(g=gb(g)));var t=[];t.push({appId:l.appId,capabilities:l.capabilities});b||ma(a.f.additionalSessionRequests,function(u){t.push({appId:u.appId,capabilities:u.capabilities})});return Ra(new Pa(t,a.w.f,a.f.autoJoinPolicy,a.f.defaultActionPolicy,l.requestSessionTimeout,e,g,a.f.invisibleSender,c,d,l.androidReceiverCompatible,l.credentialsData))};
V.prototype.na=function(a,b,c,d){var e=this;this.D++;mb(this,null,b,a,function(g){e.D--;g.g=!0;c&&c(g)},function(g){e.D--;d(g)},chrome.cast.media.timeout.load)};V.prototype.b=function(a,b,c,d,e,g){var l=this;mb(this,a,b,c,function(n){l.Ja(n);d&&d(void 0)},e,g)};
var mb=function(a,b,c,d,e,g,l){d.type=c;null!=b&&(d.mediaSessionId=b.mediaSessionId,d.sessionId=b.sessionId);a.Pa(d,function(n){n.status&&1==n.status.length?e&&e(n.status[0]):(n=new chrome.cast.Error(chrome.cast.m.SESSION_ERROR),g&&g(n))},g,l)};f=V.prototype;f.setReceiverVolume=function(a,b,c,d){b.sessionId=a;W(this,new P("v2_message",b,void 0,chrome.cast.timeout.setReceiverVolume),new O(this.i,c,d,chrome.cast.timeout.sendCustomMessage))};
f.fa=function(a){var b=this;(new PresentationRequest(X(this))).reconnect(chrome.cast.ub+a).then(function(c){Y(b,c)},ha)};f.leaveSession=function(a,b,c){W(this,new P("leave_session",a,void 0,chrome.cast.timeout.leaveSession),new O(this.i,b,c,chrome.cast.timeout.leaveSession))};f.Ec=function(a,b,c){W(this,new P("app_message",a,void 0,chrome.cast.timeout.sendCustomMessage),new O(this.i,b,c,chrome.cast.timeout.sendCustomMessage))};
f.Pa=function(a,b,c,d){W(this,new P("v2_message",a,void 0,d),new O(this.i,b,c,d))};var pb=function(a,b,c){var d=a.get(b);d||(d=new U,a.set(b,d));d.add(c)};f=V.prototype;f.ac=function(a,b){pb(this.A,a,b)};f.Dc=function(a,b){(a=this.A.get(a))&&a.remove(b)};f.aa=function(a){this.G.push(a)};f.da=function(a){a=this.G.indexOf(a);0<=a&&this.G.splice(a,1)};f.Xb=function(a,b,c){var d=this.v.get(a);d||(d=new K,this.v.set(a,d));a=d.get(b);a||(a=new U,d.set(b,a));a.add(c)};
f.Ac=function(a,b,c){(a=this.v.get(a))&&(b=a.get(b))&&b.remove(c)};f.Z=function(a,b){pb(this.F,a,b)};f.ca=function(a,b){(a=this.F.get(a))&&a.remove(b)};f.Yb=function(a,b){-1==a.f.indexOf(b)&&a.f.push(b)};f.Bc=function(a,b){b=a.f.indexOf(b);-1!=b&&a.f.splice(b,1)};f.Ja=function(a){if(a.g){var b=a.playerState!=chrome.cast.media.u.IDLE||null!=a.loadingItemId;a.f.forEach(function(d){d(b)});b||Za(this.I,a)}else if(!(0<this.D)){a.g=!0;var c=this.F.get(a.sessionId);c&&J(c.o(),function(d){d(a)})}};
f.bc=function(a){return Ua(this.I,a)};var kb=function(a,b){if(a.s){var c=a.s;a.s=null;a.w.disconnect();var d=b!=chrome.cast.J.STOPPED;Ta(a.I,c,b)&&(a.v.remove(c),a.F.remove(c),b=a.A.get(c))&&(a.A.remove(c),J(b.o(),function(e){e(d)}))}};
V.prototype.onMessage=function(a){switch(a.type){case "new_session":case "update_session":a.message=Va(this.I,a.message);break;case "v2_message":var b=a.message;b&&"MEDIA_STATUS"==b.type&&b.status&&(b.status=b.status.map(this.fb))}if(b=La(this.ia,a.sequenceNumber))"error"==a.type?(b=b.b)&&b(a.message):(b=b.g)&&b(a.message);if(b=a.message)switch(a.type){case "receiver_action":qb(this,b);break;case "new_session":this.s=b.sessionId;this.g?(this.g(b),this.g=null):this.f&&this.f.sessionListener(b);break;
case "update_session":rb(this,b);break;case "app_message":sb(this,b);break;case "v2_message":"MEDIA_STATUS"==b.type&&b.status.forEach(this.Ja.bind(this));break;case "custom_dial_launch":tb(this,a.sequenceNumber,b)}};
var rb=function(a,b){(a=a.A.get(b.sessionId))&&J(a.o(),function(c){c(!0)})},qb=function(a,b){a.G.forEach(function(c){c(b.receiver,b.action)})},sb=function(a,b){(a=a.v.get(b.sessionId))&&(a=a.get(b.namespaceName))&&J(a.o(),function(c){c(b.namespaceName,b.message)})},ub=function(a,b,c){W(a,new P("custom_dial_launch",c,void 0,chrome.cast.timeout.sendCustomMessage),null,b)},tb=function(a,b,c){a.f.customDialLaunchCallback?a.f.customDialLaunchCallback(c).then(function(d){ub(a,b,d)},function(){ub(a,b)}):
ub(a,b)},ob=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,lb=new Set(["PRECACHE"]),Z=new V;chrome.cast.T=function(a,b,c){Z.T(a,b,c)};y("chrome.cast.initialize",chrome.cast.T);chrome.cast.ic=function(a,b,c){var d=new V;d.T(a,b,c);return d};y("chrome.cast.initializeWithContext",chrome.cast.ic);chrome.cast.ga=function(a){Z.ga(a)};y("chrome.cast.setPageContext",chrome.cast.ga);chrome.cast.requestSession=function(a,b,c){Z.requestSession(a,b,c)};y("chrome.cast.requestSession",chrome.cast.requestSession);chrome.cast.nc=function(a){nb(new chrome.cast.media.vb(a))};y("chrome.cast.precache",chrome.cast.nc);
chrome.cast.fa=function(a){chrome.cast.Oa(Z,a)};y("chrome.cast.requestSessionById",chrome.cast.fa);chrome.cast.Oa=function(a,b){a.fa(b)};y("chrome.cast.requestSessionByIdWithContext",chrome.cast.Oa);chrome.cast.aa=function(a){Z.aa(a)};y("chrome.cast.addReceiverActionListener",chrome.cast.aa);chrome.cast.da=function(a){Z.da(a)};y("chrome.cast.removeReceiverActionListener",chrome.cast.da);chrome.cast.lc=function(){};y("chrome.cast.logMessage",chrome.cast.lc);chrome.cast.Fc=function(a,b){b()};
y("chrome.cast.setCustomReceivers",chrome.cast.Fc);chrome.cast.Gc=function(a,b){b()};y("chrome.cast.setReceiverDisplayStatus",chrome.cast.Gc);chrome.cast.unescape=function(a){return-1!=a.indexOf("&")?"document"in p?Da(a):Ea(a):a};y("chrome.cast.unescape",chrome.cast.unescape);chrome.cast.isAvailable=!1;y("chrome.cast.isAvailable",chrome.cast.isAvailable);chrome.cast.Ta=!1;
chrome.cast.ha=function(){if(!chrome.cast.Ta){chrome.cast.Ta=!0;chrome.cast.isAvailable=!0;var a=window.__onGCastApiAvailable;a&&"function"==typeof a&&a(!0)}};"complete"==document.readyState?chrome.cast.ha():(window.addEventListener("load",chrome.cast.ha,!1),window.addEventListener("DOMContentLoaded",chrome.cast.ha,!1));}).call(this);
