(function(){'use strict';var f,aa=function(a,b){function c(){}c.prototype=b.prototype;a.lc=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]},ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},h="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:
this,ca=function(){ca=function(){};h.Symbol||(h.Symbol=da)},ea=0,da=function(a){return"jscomp_symbol_"+(a||"")+ea++},l=function(){ca();var a=h.Symbol.iterator;a||(a=h.Symbol.iterator=h.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ba(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(this)}});l=function(){}},fa=function(a){var b=0;return ga(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},ga=function(a){l();a={next:a};a[h.Symbol.iterator]=function(){return this};
return a},ha=function(a){l();var b=a[Symbol.iterator];return b?b.call(a):fa(a)},m=this,ia=function(){},ja=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},ka=function(a){var b=ja(a);return"array"==b||"object"==b&&"number"==typeof a.length},p=function(a){return"string"==typeof a},la="closure_uid_"+(1E9*Math.random()>>>0),ma=0,oa=function(a,b,c){return a.call.apply(a.bind,arguments)},pa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=
Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},q=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?q=oa:q=pa;return q.apply(null,arguments)},t=function(a,b){a=a.split(".");var c=m;a[0]in c||!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};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};chrome.cast.VERSION=[1,2];t("chrome.cast.VERSION",chrome.cast.VERSION);chrome.cast.nc=!0;t("chrome.cast.usingPresentationApi",chrome.cast.nc);chrome.cast.Error=function(a,b,c){this.code=a;this.description=b||null;this.details=c||null};t("chrome.cast.Error",chrome.cast.Error);chrome.cast.pb=function(a){this.platform=a;this.packageId=this.url=null};t("chrome.cast.SenderApplication",chrome.cast.pb);chrome.cast.Image=function(a){this.url=a;this.width=this.height=null};t("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};t("chrome.cast.Volume",chrome.cast.Volume);var qa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ra=/&/g,sa=/</g,ta=/>/g,ua=/"/g,va=/'/g,wa=/\x00/g,xa=/[\x00&<>"']/,za=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(ya,function(a,e){var d=b[a];if(d)return d;"#"==e.charAt(0)&&(e=Number("0"+e.substr(1)),isNaN(e)||(d=String.fromCharCode(e)));d||(c.innerHTML=a+" ",d=c.firstChild.nodeValue.slice(0,-1));return b[a]=
d})},Aa=function(a){return a.replace(/&([^;]+);/g,function(a,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))?a:String.fromCharCode(c)}})},ya=/&([^;\s<&]+);?/g,Ba=function(a,b){return a<b?-1:a>b?1:0};chrome.cast.ha={CUSTOM_CONTROLLER_SCOPED:"custom_controller_scoped",TAB_AND_ORIGIN_SCOPED:"tab_and_origin_scoped",ORIGIN_SCOPED:"origin_scoped",PAGE_SCOPED:"page_scoped"};t("chrome.cast.AutoJoinPolicy",chrome.cast.ha);chrome.cast.ia={CREATE_SESSION:"create_session",CAST_THIS_TAB:"cast_this_tab"};t("chrome.cast.DefaultActionPolicy",chrome.cast.ia);chrome.cast.U={VIDEO_OUT:"video_out",AUDIO_OUT:"audio_out",VIDEO_IN:"video_in",AUDIO_IN:"audio_in",MULTIZONE_GROUP:"multizone_group"};
t("chrome.cast.Capability",chrome.cast.U);chrome.cast.v={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"};t("chrome.cast.ErrorCode",chrome.cast.v);chrome.cast.M={AVAILABLE:"available",UNAVAILABLE:"unavailable"};
t("chrome.cast.ReceiverAvailability",chrome.cast.M);chrome.cast.qb={CHROME:"chrome",IOS:"ios",ANDROID:"android"};t("chrome.cast.SenderPlatform",chrome.cast.qb);chrome.cast.ra={CAST:"cast",DIAL:"dial",HANGOUT:"hangout",CUSTOM:"custom"};t("chrome.cast.ReceiverType",chrome.cast.ra);chrome.cast.Sa={RUNNING:"running",STOPPED:"stopped",ERROR:"error"};t("chrome.cast.DialAppState",chrome.cast.Sa);chrome.cast.lb={CAST:"cast",STOP:"stop"};t("chrome.cast.ReceiverAction",chrome.cast.lb);
chrome.cast.G={CONNECTED:"connected",DISCONNECTED:"disconnected",STOPPED:"stopped"};t("chrome.cast.SessionStatus",chrome.cast.G);chrome.cast.Bb={ATTENUATION:"attenuation",FIXED:"fixed",MASTER:"master"};t("chrome.cast.VolumeControlType",chrome.cast.Bb);chrome.cast.Na=function(a,b,c,d,e){this.sessionRequest=a;this.sessionListener=b;this.receiverListener=c;this.autoJoinPolicy=d||chrome.cast.ha.TAB_AND_ORIGIN_SCOPED;this.defaultActionPolicy=e||chrome.cast.ia.CREATE_SESSION;this.customDialLaunchCallback=null;this.invisibleSender=!1;this.additionalSessionRequests=[]};t("chrome.cast.ApiConfig",chrome.cast.Na);chrome.cast.Va=function(a,b){this.appName=a;this.launchParameter=b||null};t("chrome.cast.DialRequest",chrome.cast.Va);
chrome.cast.Ta=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};t("chrome.cast.DialLaunchData",chrome.cast.Ta);chrome.cast.Ua=function(a,b){this.doLaunch=a;this.launchParameter=b||null};t("chrome.cast.DialLaunchResponse",chrome.cast.Ua);chrome.cast.rb=function(a,b,c){this.appId=a;this.capabilities="array"==ja(b)?b:[chrome.cast.U.VIDEO_OUT,chrome.cast.U.AUDIO_OUT];this.requestSessionTimeout=c||chrome.cast.timeout.requestSession;this.dialRequest=this.language=null};
t("chrome.cast.SessionRequest",chrome.cast.rb);
chrome.cast.kb=function(a,b,c,d){this.label=a;a=b;xa.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(ra,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(sa,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(ta,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(ua,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(va,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(wa,"&#0;")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.ra.CAST;this.displayStatus=this.isActiveInput=null};
t("chrome.cast.Receiver",chrome.cast.kb);chrome.cast.mb=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};t("chrome.cast.ReceiverDisplayStatus",chrome.cast.mb);chrome.cast.ua=function(){this.requestSession=6E4;this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};t("chrome.cast.Timeout",chrome.cast.ua);chrome.cast.timeout=new chrome.cast.ua;t("chrome.cast.timeout",chrome.cast.timeout);chrome.cast.Ma="auto-join";chrome.cast.fb="cast-session_";chrome.cast.media.ab={PAUSE:"pause",SEEK:"seek",STREAM_VOLUME:"stream_volume",STREAM_MUTE:"stream_mute"};t("chrome.cast.media.MediaCommand",chrome.cast.media.ab);chrome.cast.media.s={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4};t("chrome.cast.media.MetadataType",chrome.cast.media.s);chrome.cast.media.F={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};t("chrome.cast.media.PlayerState",chrome.cast.media.F);
chrome.cast.media.V={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};t("chrome.cast.media.RepeatMode",chrome.cast.media.V);chrome.cast.media.nb={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};t("chrome.cast.media.ResumeState",chrome.cast.media.nb);chrome.cast.media.ta={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};t("chrome.cast.media.StreamType",chrome.cast.media.ta);
chrome.cast.media.Ya={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};t("chrome.cast.media.IdleReason",chrome.cast.media.Ya);chrome.cast.media.zb={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"};t("chrome.cast.media.TrackType",chrome.cast.media.zb);chrome.cast.media.wb={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};t("chrome.cast.media.TextTrackType",chrome.cast.media.wb);
chrome.cast.media.sb={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};t("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.sb);chrome.cast.media.xb={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"};t("chrome.cast.media.TextTrackWindowType",chrome.cast.media.xb);
chrome.cast.media.tb={SANS_SERIF:"SANS_SERIF",MONOSPACED_SANS_SERIF:"MONOSPACED_SANS_SERIF",SERIF:"SERIF",MONOSPACED_SERIF:"MONOSPACED_SERIF",CASUAL:"CASUAL",CURSIVE:"CURSIVE",SMALL_CAPITALS:"SMALL_CAPITALS"};t("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.tb);chrome.cast.media.ub={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};t("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.ub);chrome.cast.media.ja=function(){this.customData=null};t("chrome.cast.media.GetStatusRequest",chrome.cast.media.ja);chrome.cast.media.ka=function(){this.customData=null};t("chrome.cast.media.PauseRequest",chrome.cast.media.ka);chrome.cast.media.la=function(){this.customData=null};t("chrome.cast.media.PlayRequest",chrome.cast.media.la);chrome.cast.media.ob=function(){this.customData=this.resumeState=this.currentTime=null};t("chrome.cast.media.SeekRequest",chrome.cast.media.ob);
chrome.cast.media.sa=function(){this.customData=null};t("chrome.cast.media.StopRequest",chrome.cast.media.sa);chrome.cast.media.Cb=function(a){this.volume=a;this.customData=null};t("chrome.cast.media.VolumeRequest",chrome.cast.media.Cb);chrome.cast.media.Za=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};t("chrome.cast.media.LoadRequest",chrome.cast.media.Za);
chrome.cast.media.hb=function(a){this.type="PRECACHE";this.requestId=0;this.data=a};chrome.cast.media.Wa=function(a,b){this.requestId=0;this.activeTrackIds=a||null;this.textTrackStyle=b||null};t("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.Wa);chrome.cast.media.Xa=function(){this.metadataType=this.type=chrome.cast.media.s.GENERIC;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=null};t("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.Xa);
chrome.cast.media.cb=function(){this.metadataType=this.type=chrome.cast.media.s.MOVIE;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=null};t("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.cb);chrome.cast.media.Ab=function(){this.metadataType=this.type=chrome.cast.media.s.TV_SHOW;this.originalAirdate=this.releaseYear=this.images=this.episode=this.episodeNumber=this.season=this.seasonNumber=this.episodeTitle=this.title=this.seriesTitle=null};
t("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Ab);chrome.cast.media.eb=function(){this.metadataType=this.type=chrome.cast.media.s.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=null};t("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.eb);
chrome.cast.media.gb=function(){this.metadataType=this.type=chrome.cast.media.s.PHOTO;this.creationDateTime=this.height=this.width=this.longitude=this.latitude=this.images=this.location=this.artist=this.title=null};t("chrome.cast.media.PhotoMediaMetadata",chrome.cast.media.gb);chrome.cast.media.bb=function(a,b){this.contentId=a;this.streamType=chrome.cast.media.ta.BUFFERED;this.contentType=b;this.customData=this.textTrackStyle=this.tracks=this.duration=this.metadata=null};
t("chrome.cast.media.MediaInfo",chrome.cast.media.bb);chrome.cast.media.na=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};t("chrome.cast.media.QueueItem",chrome.cast.media.na);chrome.cast.media.Ra="CC1AD845";t("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.Ra);chrome.cast.media.timeout={};chrome.cast.media.timeout.load=0;t("chrome.cast.media.timeout.load",chrome.cast.media.timeout.load);
chrome.cast.media.timeout.O=0;t("chrome.cast.media.timeout.getStatus",chrome.cast.media.timeout.O);chrome.cast.media.timeout.play=0;t("chrome.cast.media.timeout.play",chrome.cast.media.timeout.play);chrome.cast.media.timeout.pause=0;t("chrome.cast.media.timeout.pause",chrome.cast.media.timeout.pause);chrome.cast.media.timeout.seek=0;t("chrome.cast.media.timeout.seek",chrome.cast.media.timeout.seek);chrome.cast.media.timeout.stop=0;t("chrome.cast.media.timeout.stop",chrome.cast.media.timeout.stop);
chrome.cast.media.timeout.T=0;t("chrome.cast.media.timeout.setVolume",chrome.cast.media.timeout.T);chrome.cast.media.timeout.N=0;t("chrome.cast.media.timeout.editTracksInfo",chrome.cast.media.timeout.N);chrome.cast.media.timeout.o=0;t("chrome.cast.media.timeout.queue",chrome.cast.media.timeout.o);chrome.cast.media.yb=function(a,b){this.trackId=a;this.trackContentType=this.trackContentId=null;this.type=b;this.customData=this.subtype=this.language=this.name=null};t("chrome.cast.media.Track",chrome.cast.media.yb);
chrome.cast.media.vb=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};t("chrome.cast.media.TextTrackStyle",chrome.cast.media.vb);chrome.cast.media.ib=function(a){this.type="QUEUE_LOAD";this.sessionId=this.requestId=null;this.items=a;this.startIndex=0;this.repeatMode=chrome.cast.media.V.OFF;this.customData=null};
t("chrome.cast.media.QueueLoadRequest",chrome.cast.media.ib);chrome.cast.media.ma=function(a){this.type="QUEUE_INSERT";this.sessionId=this.requestId=null;this.items=a;this.customData=this.insertBefore=null};t("chrome.cast.media.QueueInsertItemsRequest",chrome.cast.media.ma);chrome.cast.media.jb=function(a){this.type="QUEUE_UPDATE";this.sessionId=this.requestId=null;this.items=a;this.customData=null};t("chrome.cast.media.QueueUpdateItemsRequest",chrome.cast.media.jb);
chrome.cast.media.L=function(){this.type="QUEUE_UPDATE";this.customData=this.jump=this.currentItemId=this.sessionId=this.requestId=null};t("chrome.cast.media.QueueJumpRequest",chrome.cast.media.L);chrome.cast.media.qa=function(){this.type="QUEUE_UPDATE";this.customData=this.repeatMode=this.sessionId=this.requestId=null};t("chrome.cast.media.QueueSetPropertiesRequest",chrome.cast.media.qa);
chrome.cast.media.oa=function(a){this.type="QUEUE_REMOVE";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=null};t("chrome.cast.media.QueueRemoveItemsRequest",chrome.cast.media.oa);chrome.cast.media.pa=function(a){this.type="QUEUE_REORDER";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=this.insertBefore=null};t("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.pa);var Ca=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=p(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},Da=function(a,b){for(var c=a.length,d=p(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},Ea=function(a){return Array.prototype.concat.apply([],arguments)},Fa=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};chrome.cast.media.b=function(a,b){this.sessionId=a;this.mediaSessionId=b;this.media=null;this.playbackRate=1;this.playerState=chrome.cast.media.F.IDLE;this.currentTime=0;this.g=-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.V.OFF;this.c=!1;this.a=[]};t("chrome.cast.media.Media",chrome.cast.media.b);
chrome.cast.media.b.prototype.O=function(a,b,c){a||(a=new chrome.cast.media.ja);u.a(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.O)};chrome.cast.media.b.prototype.getStatus=chrome.cast.media.b.prototype.O;chrome.cast.media.b.prototype.play=function(a,b,c){this.za(u,a,b,c)};chrome.cast.media.b.prototype.play=chrome.cast.media.b.prototype.play;chrome.cast.media.b.prototype.za=function(a,b,c,d){b||(b=new chrome.cast.media.la);a.a(this,"PLAY",b,c,d,chrome.cast.media.timeout.play)};
chrome.cast.media.b.prototype.playWithContext=chrome.cast.media.b.prototype.za;chrome.cast.media.b.prototype.pause=function(a,b,c){this.ya(u,a,b,c)};chrome.cast.media.b.prototype.pause=chrome.cast.media.b.prototype.pause;chrome.cast.media.b.prototype.ya=function(a,b,c,d){b||(b=new chrome.cast.media.ka);a.a(this,"PAUSE",b,c,d,chrome.cast.media.timeout.pause)};chrome.cast.media.b.prototype.pauseWithContext=chrome.cast.media.b.prototype.ya;
chrome.cast.media.b.prototype.seek=function(a,b,c){u.a(this,"SEEK",a,b,c,chrome.cast.media.timeout.seek)};chrome.cast.media.b.prototype.seek=chrome.cast.media.b.prototype.seek;chrome.cast.media.b.prototype.stop=function(a,b,c){a||(a=new chrome.cast.media.sa);u.a(this,"STOP_MEDIA",a,b,c,chrome.cast.media.timeout.stop)};chrome.cast.media.b.prototype.stop=chrome.cast.media.b.prototype.stop;chrome.cast.media.b.prototype.T=function(a,b,c){u.a(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.T)};
chrome.cast.media.b.prototype.setVolume=chrome.cast.media.b.prototype.T;chrome.cast.media.b.prototype.N=function(a,b,c){u.a(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.N)};chrome.cast.media.b.prototype.editTracksInfo=chrome.cast.media.b.prototype.N;chrome.cast.media.b.prototype.Rb=function(a,b,c){u.a(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueInsertItems=chrome.cast.media.b.prototype.Rb;
chrome.cast.media.b.prototype.Qb=function(a,b,c){u.a(this,"QUEUE_INSERT",new chrome.cast.media.ma([a]),b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueAppendItem=chrome.cast.media.b.prototype.Qb;chrome.cast.media.b.prototype.bc=function(a,b,c){u.a(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueUpdateItems=chrome.cast.media.b.prototype.bc;
chrome.cast.media.b.prototype.Wb=function(a,b){var c=new chrome.cast.media.L;c.jump=-1;u.a(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queuePrev=chrome.cast.media.b.prototype.Wb;chrome.cast.media.b.prototype.Vb=function(a,b){var c=new chrome.cast.media.L;c.jump=1;u.a(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueNext=chrome.cast.media.b.prototype.Vb;
chrome.cast.media.b.prototype.Sb=function(a,b,c){if(!(0>Ga(this,a))){var d=new chrome.cast.media.L;d.currentItemId=a;u.a(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.o)}};chrome.cast.media.b.prototype.queueJumpToItem=chrome.cast.media.b.prototype.Sb;chrome.cast.media.b.prototype.ac=function(a,b,c){var d=new chrome.cast.media.qa;d.repeatMode=a;u.a(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueSetRepeatMode=chrome.cast.media.b.prototype.ac;
chrome.cast.media.b.prototype.Yb=function(a,b,c){u.a(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueRemoveItems=chrome.cast.media.b.prototype.Yb;chrome.cast.media.b.prototype.Xb=function(a,b,c){0>Ga(this,a)||u.a(this,"QUEUE_REMOVE",new chrome.cast.media.oa([a]),b,c,chrome.cast.media.timeout.o)};chrome.cast.media.b.prototype.queueRemoveItem=chrome.cast.media.b.prototype.Xb;chrome.cast.media.b.prototype.Zb=function(a,b,c){u.a(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.o)};
chrome.cast.media.b.prototype.queueReorderItems=chrome.cast.media.b.prototype.Zb;chrome.cast.media.b.prototype.Ub=function(a,b,c,d){var e=Ga(this,a);if(!(0>e))if(0>b)d&&d(new chrome.cast.Error(chrome.cast.v.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.pa([a]);a.insertBefore=g?g.itemId:null;u.a(this,"QUEUE_REORDER",a,c,d,chrome.cast.media.timeout.o)}};chrome.cast.media.b.prototype.queueMoveItemToNewIndex=chrome.cast.media.b.prototype.Ub;
chrome.cast.media.b.prototype.mc=function(a){return-1<this.supportedMediaCommands.indexOf(a)};chrome.cast.media.b.prototype.supportsCommand=chrome.cast.media.b.prototype.mc;chrome.cast.media.b.prototype.Jb=function(){if(this.playerState==chrome.cast.media.F.PLAYING&&0<=this.g){var a=this.currentTime+(Date.now()-this.g)/1E3*this.playbackRate;this.media&&null!=this.media.duration&&a>this.media.duration&&(a=this.media.duration);0>a&&(a=0);return a}return this.currentTime};
chrome.cast.media.b.prototype.getEstimatedTime=chrome.cast.media.b.prototype.Jb;chrome.cast.media.b.prototype.Y=function(a){this.H(u,a)};chrome.cast.media.b.prototype.addUpdateListener=chrome.cast.media.b.prototype.Y;chrome.cast.media.b.prototype.H=function(a,b){a.Eb(this,b)};chrome.cast.media.b.prototype.addUpdateListenerWithContext=chrome.cast.media.b.prototype.H;chrome.cast.media.b.prototype.ba=function(a){this.K(u,a)};chrome.cast.media.b.prototype.removeUpdateListener=chrome.cast.media.b.prototype.ba;
chrome.cast.media.b.prototype.K=function(a,b){u.dc(this,b)};chrome.cast.media.b.prototype.removeUpdateListenerWithContext=chrome.cast.media.b.prototype.K;var Ga=function(a,b){return Da(a.items,function(a){return a.itemId==b})};var u=null;var Ha=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var Ia=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var Ja=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.f=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.G.CONNECTED;this.transportId=""};t("chrome.cast.Session",chrome.cast.f);chrome.cast.f.prototype.kc=function(a,b,c){this.Ga(u,a,b,c)};chrome.cast.f.prototype.setReceiverVolumeLevel=chrome.cast.f.prototype.kc;
chrome.cast.f.prototype.Ga=function(a,b,c,d){b=new Ia(new chrome.cast.Volume(b,null),this.receiver.volume);a.setReceiverVolume(this.sessionId,b,c,d)};chrome.cast.f.prototype.setReceiverVolumeLevelWithContext=chrome.cast.f.prototype.Ga;chrome.cast.f.prototype.jc=function(a,b,c){this.Fa(0,a,b,c)};chrome.cast.f.prototype.setReceiverMuted=chrome.cast.f.prototype.jc;
chrome.cast.f.prototype.Fa=function(a,b,c,d){a=new Ia(new chrome.cast.Volume(null,b),this.receiver.volume);u.setReceiverVolume(this.sessionId,a,c,d)};chrome.cast.f.prototype.setReceiverMutedWithContext=chrome.cast.f.prototype.Fa;chrome.cast.f.prototype.Lb=function(a,b){u.leaveSession(this.sessionId,a,b)};chrome.cast.f.prototype.leave=chrome.cast.f.prototype.Lb;chrome.cast.f.prototype.stop=function(a,b){this.Ia(u,a,b)};chrome.cast.f.prototype.stop=chrome.cast.f.prototype.stop;
chrome.cast.f.prototype.Ia=function(a,b,c){a.Da(new Ja(this.sessionId),b,c,chrome.cast.timeout.stopSession)};chrome.cast.f.prototype.stopWithContext=chrome.cast.f.prototype.Ia;chrome.cast.f.prototype.sendMessage=function(a,b,c,d){this.Ea(u,a,b,c,d)};chrome.cast.f.prototype.sendMessage=chrome.cast.f.prototype.sendMessage;chrome.cast.f.prototype.Ea=function(a,b,c,d,e){a.gc(new Ha(this.sessionId,b,c),d,e)};chrome.cast.f.prototype.sendMessageWithContext=chrome.cast.f.prototype.Ea;
chrome.cast.f.prototype.Y=function(a){this.H(u,a)};chrome.cast.f.prototype.addUpdateListener=chrome.cast.f.prototype.Y;chrome.cast.f.prototype.H=function(a,b){a.Gb(this.sessionId,b)};chrome.cast.f.prototype.addUpdateListenerWithContext=chrome.cast.f.prototype.H;chrome.cast.f.prototype.ba=function(a){this.K(u,a)};chrome.cast.f.prototype.removeUpdateListener=chrome.cast.f.prototype.ba;chrome.cast.f.prototype.K=function(a,b){a.fc(this.sessionId,b)};
chrome.cast.f.prototype.removeUpdateListenerWithContext=chrome.cast.f.prototype.K;chrome.cast.f.prototype.Fb=function(a,b){this.wa(u,a,b)};chrome.cast.f.prototype.addMessageListener=chrome.cast.f.prototype.Fb;chrome.cast.f.prototype.wa=function(a,b,c){a.Db(this.sessionId,b,c)};chrome.cast.f.prototype.addMessageListenerWithContext=chrome.cast.f.prototype.wa;chrome.cast.f.prototype.W=function(a){this.va(u,a)};chrome.cast.f.prototype.addMediaListener=chrome.cast.f.prototype.W;
chrome.cast.f.prototype.va=function(a,b){a.W(this.sessionId,b)};chrome.cast.f.prototype.addMediaListenerWithContext=chrome.cast.f.prototype.va;chrome.cast.f.prototype.Z=function(a){this.Aa(u,a)};chrome.cast.f.prototype.removeMediaListener=chrome.cast.f.prototype.Z;chrome.cast.f.prototype.Aa=function(a,b){a.Z(this.sessionId,b)};chrome.cast.f.prototype.removeMediaListenerWithContext=chrome.cast.f.prototype.Aa;chrome.cast.f.prototype.ec=function(a,b){this.Ba(u,a,b)};
chrome.cast.f.prototype.removeMessageListener=chrome.cast.f.prototype.ec;chrome.cast.f.prototype.Ba=function(a,b,c){a.cc(this.sessionId,b,c)};chrome.cast.f.prototype.removeMessageListenerWithContext=chrome.cast.f.prototype.Ba;chrome.cast.f.prototype.Mb=function(a,b,c){a.sessionId=this.sessionId;u.ga(a,"LOAD",b,c)};chrome.cast.f.prototype.loadMedia=chrome.cast.f.prototype.Mb;chrome.cast.f.prototype.Tb=function(a,b,c){a.sessionId=this.sessionId;u.ga(a,"QUEUE_LOAD",b,c)};
chrome.cast.f.prototype.queueLoad=chrome.cast.f.prototype.Tb;var Ka=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};var v="StopIteration"in m?m.StopIteration:{message:"StopIteration",stack:""},w=function(){};w.prototype.next=function(){throw v;};w.prototype.w=function(){return this};
var La=function(a){if(a instanceof w)return a;if("function"==typeof a.w)return a.w(!1);if(ka(a)){var b=0,c=new w;c.next=function(){for(;;){if(b>=a.length)throw v;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},x=function(a,b){if(ka(a))try{Ca(a,b,void 0)}catch(c){if(c!==v)throw c;}else{a=La(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==v)throw c;}}};var y=function(a,b){this.c={};this.a=[];this.h=this.g=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 y)d=a.I(),c=a.u();else{var c=[],e=0;for(d in a)c[e++]=d;d=c;c=Ka(a)}for(e=0;e<d.length;e++)this.set(d[e],c[e])}};y.prototype.u=function(){z(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.c[this.a[b]]);return a};y.prototype.I=function(){z(this);return this.a.concat()};
y.prototype.clear=function(){this.c={};this.h=this.g=this.a.length=0};y.prototype.remove=function(a){return A(this.c,a)?(delete this.c[a],this.g--,this.h++,this.a.length>2*this.g&&z(this),!0):!1};var z=function(a){if(a.g!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];A(a.c,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.g!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],A(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}};y.prototype.get=function(a,b){return A(this.c,a)?this.c[a]:b};
y.prototype.set=function(a,b){A(this.c,a)||(this.g++,this.a.push(a),this.h++);this.c[a]=b};y.prototype.forEach=function(a,b){for(var c=this.I(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};y.prototype.w=function(a){z(this);var b=0,c=this.h,d=this,e=new w;e.next=function(){if(c!=d.h)throw Error("The map has changed since the iterator was created");if(b>=d.a.length)throw v;var e=d.a[b++];return a?e:d.c[e]};return e};
var A=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Ma=function(a,b){this.requestId=a;this.h=b;this.Ja=null};Ma.prototype.c=function(){};var Na=function(){this.a=new y},Oa=function(a,b){a.a.set(b.requestId,b);b.Ja=setTimeout(function(){a.a.remove(b.requestId);b.c()},b.h)},Pa=function(a,b){var c=a.a.get(b);if(!c)return null;clearTimeout(c.Ja);a.a.remove(b);return c};var Qa=function(a){this.a=a},Sa=function(a){var b=Ra.get(a);b||(b=new Qa(a),Ra.set(a,b));return b};Qa.prototype.log=function(a,b,c){if(!(1>a)){"function"==typeof b&&(b=b());b=b.replace(Ta,"[Redacted URL]");b=b.replace(Ua,"[Redacted domain/email]");var d={pc:this.a,level:a,time:Date.now(),message:b,oc:c};Va.forEach(function(a){return a(d)})}};Qa.prototype.error=function(a,b){this.log(3,a,b)};
var Wa=function(a){B.log(1,a,void 0)},Va=[],Ra=new Map,Ua=/(([\w.+-]+@)|((www|m|mail|ftp)[.]))[\w.-]+[.][\w-]{2,4}/gi,Ta=/(data:|https?:\/\/)\S+/gi;var C;a:{var Xa=m.navigator;if(Xa){var Ya=Xa.userAgent;if(Ya){C=Ya;break a}}C=""}var D=function(a){return-1!=C.indexOf(a)};var E=function(){this.c=this.c;this.j=this.j};E.prototype.c=!1;var $a=function(a,b){var c=Za;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var ab=D("Opera"),F=D("Trident")||D("MSIE"),bb=D("Edge"),G=D("Gecko")&&!(-1!=C.toLowerCase().indexOf("webkit")&&!D("Edge"))&&!(D("Trident")||D("MSIE"))&&!D("Edge"),H=-1!=C.toLowerCase().indexOf("webkit")&&!D("Edge"),cb;
a:{var db="",eb=function(){var a=C;if(G)return/rv\:([^\);]+)(\)|;)/.exec(a);if(bb)return/Edge\/([\d\.]+)/.exec(a);if(F)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(H)return/WebKit\/(\S+)/.exec(a);if(ab)return/(?:Version)[ \/]?(\S+)/.exec(a)}();eb&&(db=eb?eb[1]:"");if(F){var I,fb=m.document;I=fb?fb.documentMode:void 0;if(null!=I&&I>parseFloat(db)){cb=String(I);break a}}cb=db}
var gb=cb,Za={},J=function(a){return $a(a,function(){for(var b=0,c=qa(String(gb)).split("."),d=qa(String(a)).split("."),e=Math.max(c.length,d.length),g=0;0==b&&g<e;g++){var k=c[g]||"",n=d[g]||"";do{k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""];if(0==k[0].length&&0==n[0].length)break;b=Ba(0==k[1].length?0:parseInt(k[1],10),0==n[1].length?0:parseInt(n[1],10))||Ba(0==k[2].length,0==n[2].length)||Ba(k[2],n[2]);k=k[3];n=n[3]}while(0==b)}return 0<=b})};F&&J("9");!H||J("528");G&&J("1.9b")||F&&J("8")||ab&&J("9.5")||H&&J("528");G&&!J("8")||F&&J("9");var K=function(a,b,c){E.call(this);this.i=null!=c?q(a,c):a;this.h=b;this.g=q(this.Ob,this);this.a=[]};(function(){function a(){}a.prototype=E.prototype;K.lc=E.prototype;K.prototype=new a;K.prototype.constructor=K;K.a=function(a,c,d){for(var b=Array(arguments.length-2),g=2;g<arguments.length;g++)b[g-2]=arguments[g];return E.prototype[c].apply(a,b)}})();f=K.prototype;f.D=!1;f.J=0;f.A=null;f.Ib=function(a){this.a=arguments;this.A||this.J?this.D=!0:hb(this)};
f.stop=function(){this.A&&(m.clearTimeout(this.A),this.A=null,this.D=!1,this.a=[])};f.pause=function(){this.J++};f.resume=function(){this.J--;this.J||!this.D||this.A||(this.D=!1,hb(this))};f.Ob=function(){this.A=null;this.D&&!this.J&&(this.D=!1,hb(this))};var hb=function(a){var b;b=a.g;var c=a.h;if("function"!=ja(b))if(b&&"function"==typeof b.handleEvent)b=q(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647<Number(c)?-1:m.setTimeout(b,c||0);a.A=b;a.i.apply(null,a.a)};var ib=D("Safari")&&!((D("Chrome")||D("CriOS"))&&!D("Edge")||D("Coast")||D("Opera")||D("Edge")||D("Silk")||D("Android"))&&!(D("iPhone")&&!D("iPod")&&!D("iPad")||D("iPad")||D("iPod"));var L=null,jb=G||H&&!ib||ab||"function"==typeof m.btoa,kb=function(a){var b;if(jb)b=m.btoa(a);else{b=[];for(var c=0,d=0;d<a.length;d++){for(var e=a.charCodeAt(d);255<e;)b[c++]=e&255,e>>=8;b[c++]=e}if(!L)for(L={},a=0;65>a;a++)L[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a);a=L;c=[];for(d=0;d<b.length;d+=3){var g=b[d],k=(e=d+1<b.length)?b[d+1]:0,n=d+2<b.length,r=n?b[d+2]:0,na=g>>2,g=(g&3)<<4|k>>4,k=(k&15)<<2|r>>6,r=r&63;n||(r=64,e||(k=64));c.push(a[na],a[g],a[k],a[r])}b=
c.join("")}return b};var lb=function(a){if(a.u&&"function"==typeof a.u)return a.u();if(p(a))return a.split("");if(ka(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ka(a)};var mb=function(a){this.a=new y;if(a){a=lb(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}},nb=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[la]||(a[la]=++ma)):b.substr(0,1)+a};f=mb.prototype;f.add=function(a){this.a.set(nb(a),a)};f.removeAll=function(a){a=lb(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.a.remove(nb(a))};f.clear=function(){this.a.clear()};f.contains=function(a){a=nb(a);return A(this.a.c,a)};f.u=function(){return this.a.u()};
f.w=function(){return this.a.w(!1)};var M=function(a,b,c,d){Ma.call(this,a,d||6E5);this.g=b;this.a=c};aa(M,Ma);M.prototype.c=function(){this.a(new chrome.cast.Error(chrome.cast.v.TIMEOUT))};var N=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 O=function(a,b){this.g=a;this.c=b||String(Date.now())+String(Math.floor(1E5*Math.random()));this.a=null},ob=function(a,b){if(!a.a)return P.error("No active session"),"No active session";b.clientId=a.c;b=JSON.stringify(b);if(32768<b.length)return P.error("Message length over limit"),"Message length over limit";P.log(0,"Send "+b,void 0);a.a.send(b);return null};O.prototype.connect=function(a){this.a=a;this.a.onmessage=q(this.h,this);ob(this,new N("client_connect",this.c))};
O.prototype.disconnect=function(){this.a.close();this.a=null};O.prototype.h=function(a){P.log(0,"Receive "+a.data,void 0);a=JSON.parse(a.data);if(a.clientId==this.c)this.g.onMessage(a)};var P=Sa("mr.cast.ExtensionMessenger");var pb=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,qb=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e,g=null;0<=d?(e=a[c].substring(0,d),g=a[c].substring(d+1)):e=a[c];b(e,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}};var rb=function(a,b){this.h=this.j=this.c="";this.i=null;this.l=this.m="";this.a=!1;var c;a instanceof rb?(this.a=void 0!==b?b:a.a,sb(this,a.c),this.j=a.j,tb(this,a.h),ub(this,a.i),vb(this,a.m),b=a.g,c=new Q,c.g=b.g,b.a&&(c.a=new y(b.a),c.c=b.c),wb(this,c),xb(this,a.l)):a&&(c=String(a).match(pb))?(this.a=!!b,sb(this,c[1]||"",!0),this.j=R(c[2]||""),tb(this,c[3]||"",!0),ub(this,c[4]),vb(this,c[5]||"",!0),wb(this,c[6]||"",!0),xb(this,c[7]||"",!0)):(this.a=!!b,this.g=new Q(null,0,this.a))};
rb.prototype.toString=function(){var a=[],b=this.c;b&&a.push(S(b,yb,!0),":");var c=this.h;if(c||"file"==b)a.push("//"),(b=this.j)&&a.push(S(b,yb,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.i,null!=c&&a.push(":",String(c));if(c=this.m)this.h&&"/"!=c.charAt(0)&&a.push("/"),a.push(S(c,"/"==c.charAt(0)?zb:Ab,!0));(c=this.g.toString())&&a.push("?",c);(c=this.l)&&a.push("#",S(c,Bb));return a.join("")};
var sb=function(a,b,c){a.c=c?R(b,!0):b;a.c&&(a.c=a.c.replace(/:$/,""))},tb=function(a,b,c){a.h=c?R(b,!0):b},ub=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.i=b}else a.i=null},vb=function(a,b,c){a.m=c?R(b,!0):b},wb=function(a,b,c){b instanceof Q?(a.g=b,Cb(a.g,a.a)):(c||(b=S(b,Db)),a.g=new Q(b,0,a.a))},xb=function(a,b,c){a.l=c?R(b):b},R=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},S=function(a,b,c){return p(a)?(a=encodeURI(a).replace(b,
Eb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Eb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},yb=/[#\/\?@]/g,Ab=/[\#\?:]/g,zb=/[\#\?]/g,Db=/[\#\?@]/g,Bb=/#/g,Q=function(a,b,c){this.c=this.a=null;this.g=a||null;this.h=!!c},T=function(a){a.a||(a.a=new y,a.c=0,a.g&&qb(a.g,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};
Q.prototype.add=function(a,b){T(this);this.g=null;a=U(this,a);var c=this.a.get(a);c||this.a.set(a,c=[]);c.push(b);this.c+=1;return this};Q.prototype.remove=function(a){T(this);a=U(this,a);return A(this.a.c,a)?(this.g=null,this.c-=this.a.get(a).length,this.a.remove(a)):!1};Q.prototype.clear=function(){this.a=this.g=null;this.c=0};var Fb=function(a,b){T(a);b=U(a,b);return A(a.a.c,b)};f=Q.prototype;
f.I=function(){T(this);for(var a=this.a.u(),b=this.a.I(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};f.u=function(a){T(this);var b=[];if(p(a))Fb(this,a)&&(b=Ea(b,this.a.get(U(this,a))));else{a=this.a.u();for(var c=0;c<a.length;c++)b=Ea(b,a[c])}return b};f.set=function(a,b){T(this);this.g=null;a=U(this,a);Fb(this,a)&&(this.c-=this.a.get(a).length);this.a.set(a,[b]);this.c+=1;return this};f.get=function(a,b){a=a?this.u(a):[];return 0<a.length?String(a[0]):b};
f.toString=function(){if(this.g)return this.g;if(!this.a)return"";for(var a=[],b=this.a.I(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.u(d),g=0;g<d.length;g++){var k=e;""!==d[g]&&(k+="="+encodeURIComponent(String(d[g])));a.push(k)}return this.g=a.join("&")};
var U=function(a,b){b=String(b);a.h&&(b=b.toLowerCase());return b},Cb=function(a,b){b&&!a.h&&(T(a),a.g=null,a.a.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),this.remove(c),0<a.length&&(this.g=null,this.a.set(U(this,c),Fa(a)),this.c+=a.length))},a));a.h=b};var Gb=function(a,b,c,d,e,g,k,n,r,na){this.B=a;this.m=b||null;this.c=c||null;this.i=d||null;this.l=void 0!==e?e:null;this.a=g||null;this.j=k||null;this.C=n||!1;this.h=r||null;this.g=na||null};
Gb.prototype.toString=function(){var a=new rb;sb(a,"https");tb(a,"google.com");vb(a,"/cast");var b=[];Ca(this.B,function(a){var c="__castAppId__="+a.appId;a.capabilities&&0<a.capabilities.length&&(c=c+"("+a.capabilities.join(","),c+=")");b.push(c)});this.m&&b.push("__castClientId__="+this.m);this.c&&b.push("__castAutoJoinPolicy__="+this.c);this.i&&b.push("__castDefaultActionPolicy__="+this.i);null!=this.l&&b.push("__castLaunchTimeout__="+this.l);this.a&&b.push("__dialAppName__="+this.a);this.j&&b.push("__dialPostData__="+
this.j);this.C&&b.push("__castInvisibleSender__=true");this.h&&(b.push("__castBroadcastNamespace__="+this.h),b.push("__castBroadcastId__="+Math.random()));this.g&&b.push("__castBroadcastMessage__="+encodeURIComponent(JSON.stringify(this.g)));xb(a,b.join("/"));return a.toString()};var Hb=function(){this.a={};this.c={}},Ib=function(a,b,c){var d=a.a[b];return d?(d.status=c,d.media.forEach(function(b){delete a.c[b.sessionId+"#"+b.mediaSessionId]}),delete a.a[b],!0):!1},Kb=function(a,b){var c=a.a[b.sessionId];if(c)return c.statusText=b.statusText,c.namespaces=b.namespaces||[],c.receiver.volume=b.receiver.volume,c;var c=new chrome.cast.f(b.sessionId,b.appId,b.displayName,b.appImages,b.receiver),d;for(d in b)"media"==d?c.media=b.media.map(function(b){b=Jb(a,b);b.h=!1;b.c=!0;return b}):
b.hasOwnProperty(d)&&(c[d]=b[d]);return a.a[b.sessionId]=c},Jb=function(a,b){var c=b.sessionId+"#"+b.mediaSessionId,d=a.c[c];d||(d=new chrome.cast.media.b(b.sessionId,b.mediaSessionId),a.c[c]=d,(a=a.a[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=ha(["idleReason","extendedStatus"]);for(c=e.next();!c.done;c=e.next())c=
c.value,b.hasOwnProperty(c)||(a[c]=null);"currentTime"in b&&(a.g=Date.now());if(a.playerState==chrome.cast.media.F.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 k=0;k<g.length;k++)c[g[k].itemId]=k;b=ha(b.items);for(g=b.next();!g.done;g=b.next()){g=g.value;if(!g.media){var k=g.itemId,n=a.items?a.items[c[k]]:null;n&&n.media?g.media=n.media:k==a.currentItemId&&
a.media&&(g.media=a.media)}e.push(Lb(g))}a.items=e}return d},Mb=function(a,b){delete a.c[b.sessionId+"#"+b.mediaSessionId];if(a=a.a[b.sessionId])b=a.media.indexOf(b),-1!=b&&a.media.splice(b,1)},Lb=function(a){var b=new chrome.cast.media.na(a.media),c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};var V=function(){this.l=new O(this);this.c=null;this.S=new Hb;this.h=0;this.fa=new Na;this.m=new y;this.La=!1;this.j=new y;this.C=new y;this.R=[];this.Pa=this.Hb.bind(this);this.g=null;this.B=0;this.i=null;this.Oa=new K(this.Qa,200,this);this.Ka=null},Nb=function(a){var b=new chrome.cast.Error(chrome.cast.v.INVALID_PARAMETER,"Already requesting session");a&&a(b)},W=function(a,b,c,d){c&&Oa(a.fa,c);void 0!==d?b.sequenceNumber=d:(b.sequenceNumber=a.h,a.h=(a.h+1)%9007199254740992);d=ob(a.l,b);c&&d&&(a=
Pa(a.fa,b.sequenceNumber),b=new chrome.cast.Error(chrome.cast.v.INVALID_PARAMETER,d),(a=a.a)&&a(b))};
V.prototype.P=function(a,b){var c=this;u=this;this.c||(this.c=a,a.invisibleSender||(a=new PresentationRequest(X(this)),a.getAvailability().then(function(a){a.onchange=function(){c.La=!!a.value;c.c.receiverListener(a.value?chrome.cast.M.AVAILABLE:chrome.cast.M.UNAVAILABLE)};a.onchange()},function(){c.c.receiverListener(chrome.cast.M.AVAILABLE)}),a.onconnectionavailable=function(a){Y(c,a.connection)},this.Ka=(m.navigator||null).presentation.defaultRequest=a,a.reconnect(chrome.cast.Ma).then(function(a){Y(c,
a)},ia)));b&&b(void 0)};V.prototype.da=function(a){a.navigator.presentation.defaultRequest=this.Ka};
var Y=function(a,b,c){c=void 0===c?null:c;b.onclose=function(b){a.g=null;switch(b.reason){case "closed":Ob(a,chrome.cast.G.DISCONNECTED);break;case "error":c&&(b=new chrome.cast.Error(chrome.cast.v.SESSION_ERROR),c&&c(b))}};b.onterminate=function(){Ob(a,chrome.cast.G.STOPPED)};"connected"==b.state?a.l.connect(b):b.onconnect=function(){a.l.connect(b)}},Rb=function(a){var b=Z;Pb.has(a.type)?b.La&&(b.i?(a.sessionId=b.i,Qb(b,null,a.type,a,function(){Wa("Send Broadcast directly succeeded")},function(a){B.error("Send Broadcast directly failed with code "+
a.code)})):b.Oa.Ib(X(b,void 0,"urn:x-cast:com.google.cast.media",a))):B.error("Unsupported broadcast message type - "+a.type)};V.prototype.Qa=function(a){Wa("Broadcast request "+a);(a=(new PresentationRequest(a)).getAvailability())?a.then(function(){Wa("Broadcast succeeded")},function(){B.log(2,"Broadcast failed",void 0)}):B.error("presentationRequest.getAvailability return undefined")};
V.prototype.requestSession=function(a,b,c){var d=this;this.g?Nb(b):(c=X(this,c),this.g=a,(new PresentationRequest(c.toString())).start().then(function(a){Y(d,a,b)}).catch(function(a){d.g=null;a=new chrome.cast.Error("AbortError"==a.name||"NotAllowedError"==a.name?chrome.cast.v.CANCEL:chrome.cast.v.SESSION_ERROR);b&&b(a)}))};
var X=function(a,b,c,d){var e=null,g=null,k=b||a.c.sessionRequest,n=k.dialRequest;n&&(e=n.appName,(g=n.launchParameter)&&!g.match(Sb)&&(g=kb(g)));var r=[];r.push({appId:k.appId,capabilities:k.capabilities});b||Ca(a.c.additionalSessionRequests,function(a){r.push({appId:a.appId,capabilities:a.capabilities})});return(new Gb(r,a.l.c,a.c.autoJoinPolicy,a.c.defaultActionPolicy,k.requestSessionTimeout,e,g,a.c.invisibleSender,c,d)).toString()};
V.prototype.ga=function(a,b,c,d){var e=this;this.B++;Qb(this,null,b,a,function(a){e.B--;a.c=!0;c&&c(a)},function(a){e.B--;d(a)},chrome.cast.media.timeout.load)};V.prototype.a=function(a,b,c,d,e,g){var k=this;Qb(this,a,b,c,function(a){k.xa(a);d&&d(void 0)},e,g)};
var Qb=function(a,b,c,d,e,g,k){d.type=c;null!=b&&(d.mediaSessionId=b.mediaSessionId,d.sessionId=b.sessionId);a.Da(d,function(a){a.status&&1==a.status.length?e&&e(a.status[0]):(a=new chrome.cast.Error(chrome.cast.v.SESSION_ERROR),g&&g(a))},g,k)};f=V.prototype;f.setReceiverVolume=function(a,b,c,d){b.sessionId=a;W(this,new N("v2_message",b,void 0,chrome.cast.timeout.setReceiverVolume),new M(this.h,c,d,chrome.cast.timeout.sendCustomMessage))};
f.ca=function(a){var b=this;(new PresentationRequest(X(this))).reconnect(chrome.cast.fb+a).then(function(a){Y(b,a)},ia)};f.leaveSession=function(a,b,c){W(this,new N("leave_session",a,void 0,chrome.cast.timeout.leaveSession),new M(this.h,b,c,chrome.cast.timeout.leaveSession))};f.gc=function(a,b,c){W(this,new N("app_message",a,void 0,chrome.cast.timeout.sendCustomMessage),new M(this.h,b,c,chrome.cast.timeout.sendCustomMessage))};
f.Da=function(a,b,c,d){W(this,new N("v2_message",a,void 0,d),new M(this.h,b,c,d))};var Tb=function(a,b,c){var d=a.get(b);d||(d=new mb,a.set(b,d));d.add(c)};f=V.prototype;f.Gb=function(a,b){Tb(this.m,a,b)};f.fc=function(a,b){(a=this.m.get(a))&&a.remove(b)};f.X=function(a){this.R.push(a)};f.aa=function(a){a=this.R.indexOf(a);0<=a&&this.R.splice(a,1)};f.Db=function(a,b,c){var d=this.j.get(a);d||(d=new y,this.j.set(a,d));a=d.get(b);a||(a=new mb,d.set(b,a));a.add(c)};
f.cc=function(a,b,c){(a=this.j.get(a))&&(b=a.get(b))&&b.remove(c)};f.W=function(a,b){Tb(this.C,a,b)};f.Z=function(a,b){(a=this.C.get(a))&&a.remove(b)};f.Eb=function(a,b){-1==a.a.indexOf(b)&&a.a.push(b)};f.dc=function(a,b){b=a.a.indexOf(b);-1!=b&&a.a.splice(b,1)};f.xa=function(a){if(a.c){var b=a.playerState!=chrome.cast.media.F.IDLE||null!=a.loadingItemId;a.a.forEach(function(a){a(b)});b||Mb(this.S,a)}else if(!(0<this.B)){a.c=!0;var c=this.C.get(a.sessionId);c&&x(c.w(),function(b){b(a)})}};
f.Hb=function(a){return Jb(this.S,a)};var Ob=function(a,b){if(a.i){var c=a.i;a.i=null;a.l.disconnect();var d=b!=chrome.cast.G.STOPPED;Ib(a.S,c,b)&&(a.j.remove(c),a.C.remove(c),b=a.m.get(c))&&(a.m.remove(c),x(b.w(),function(a){a(d)}))}};
V.prototype.onMessage=function(a){switch(a.type){case "new_session":case "update_session":a.message=Kb(this.S,a.message);break;case "v2_message":var b=a.message;b&&"MEDIA_STATUS"==b.type&&b.status&&(b.status=b.status.map(this.Pa))}if(b=Pa(this.fa,a.sequenceNumber))"error"==a.type?(b=b.a)&&b(a.message):(b=b.g)&&b(a.message);if(b=a.message)switch(a.type){case "receiver_action":Ub(this,b);break;case "new_session":this.i=b.sessionId;this.g?(this.g(b),this.g=null):this.c&&this.c.sessionListener(b);break;
case "update_session":Vb(this,b);break;case "app_message":Wb(this,b);break;case "v2_message":"MEDIA_STATUS"==b.type&&b.status.forEach(this.xa.bind(this));break;case "custom_dial_launch":Xb(this,a.sequenceNumber,b)}};
var Vb=function(a,b){(a=a.m.get(b.sessionId))&&x(a.w(),function(a){a(!0)})},Ub=function(a,b){a.R.forEach(function(a){a(b.receiver,b.action)})},Wb=function(a,b){(a=a.j.get(b.sessionId))&&(a=a.get(b.namespaceName))&&x(a.w(),function(a){a(b.namespaceName,b.message)})},Yb=function(a,b,c){W(a,new N("custom_dial_launch",c,void 0,chrome.cast.timeout.sendCustomMessage),null,b)},Xb=function(a,b,c){a.c.customDialLaunchCallback?a.c.customDialLaunchCallback(c).then(function(c){Yb(a,b,c)},function(){Yb(a,b)}):
Yb(a,b)},Sb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Pb=new Set(["PRECACHE"]),Z=new V,B=Sa("mr.cast.Api");chrome.cast.P=function(a,b,c){Z.P(a,b,c)};t("chrome.cast.initialize",chrome.cast.P);chrome.cast.Kb=function(a,b,c){var d=new V;d.P(a,b,c);return d};t("chrome.cast.initializeWithContext",chrome.cast.Kb);chrome.cast.da=function(a){Z.da(a)};t("chrome.cast.setPageContext",chrome.cast.da);chrome.cast.requestSession=function(a,b,c){Z.requestSession(a,b,c)};t("chrome.cast.requestSession",chrome.cast.requestSession);chrome.cast.Pb=function(a){Rb(new chrome.cast.media.hb(a))};t("chrome.cast.precache",chrome.cast.Pb);
chrome.cast.ca=function(a){chrome.cast.Ca(Z,a)};t("chrome.cast.requestSessionById",chrome.cast.ca);chrome.cast.Ca=function(a,b){a.ca(b)};t("chrome.cast.requestSessionByIdWithContext",chrome.cast.Ca);chrome.cast.X=function(a){Z.X(a)};t("chrome.cast.addReceiverActionListener",chrome.cast.X);chrome.cast.aa=function(a){Z.aa(a)};t("chrome.cast.removeReceiverActionListener",chrome.cast.aa);chrome.cast.Nb=function(){};t("chrome.cast.logMessage",chrome.cast.Nb);chrome.cast.hc=function(a,b){b()};
t("chrome.cast.setCustomReceivers",chrome.cast.hc);chrome.cast.ic=function(a,b){b()};t("chrome.cast.setReceiverDisplayStatus",chrome.cast.ic);chrome.cast.unescape=function(a){return-1!=a.indexOf("&")?"document"in m?za(a):Aa(a):a};t("chrome.cast.unescape",chrome.cast.unescape);chrome.cast.isAvailable=!1;t("chrome.cast.isAvailable",chrome.cast.isAvailable);chrome.cast.Ha=!1;
chrome.cast.ea=function(){if(!chrome.cast.Ha){chrome.cast.Ha=!0;chrome.cast.isAvailable=!0;var a=window.__onGCastApiAvailable;a&&"function"==typeof a&&a(!0)}};"complete"==document.readyState?chrome.cast.ea():(window.addEventListener("load",chrome.cast.ea,!1),window.addEventListener("DOMContentLoaded",chrome.cast.ea,!1));}).call(this);
(function(){'use strict';var b,m=m||{};m.global=this;m.ra=function(a){return void 0!==a};m.yc=function(a,c,d){a=a.split(".");d=d||m.global;a[0]in d||!d.execScript||d.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&m.ra(c)?d[e]=c:d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}};m.define=function(a,c){m.yc(a,c)};m.Oa=!0;m.Lk="en";m.qc=!0;m.gg=!1;m.qf=!m.Oa;m.qd=!1;m.Zo=function(a){if(m.Hc())throw Error("goog.provide can not be used within a goog.module.");m.Kd(a)};
m.Kd=function(a,c){m.yc(a,c)};m.pg=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
m.Pc=function(a){if(!m.I(a)||!a||-1==a.search(m.pg))throw Error("Invalid module identifier");if(!m.Hc())throw Error("Module "+a+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(m.ka.Qc)throw Error("goog.module may only be called once per module.");
m.ka.Qc=a};m.Pc.get=function(){return null};m.Pc.b=function(){return null};m.ka=null;m.Hc=function(){return null!=m.ka};m.Pc.uc=function(){m.ka.uc=!0};m.Vc=function(a){if(m.qf)throw a=a||"",Error("Importing test-only code into non-debug environment"+(a?": "+a:"."));};m.Fn=function(){};m.de=function(a){a=a.split(".");for(var c=m.global,d;d=a.shift();)if(m.Hh(c[d]))c=c[d];else return null;return c};m.Sn=function(a,c){c=c||m.global;for(var d in a)c[d]=a[d]};
m.Bm=function(a,c,d,e){if(m.nd){var f;a=a.replace(/\\/g,"/");var g=m.fa;e&&"boolean"!==typeof e||(e=e?{module:"goog"}:{});for(var h=0;f=c[h];h++)g.Db[f]=a,g.Lc[a]=e;for(e=0;c=d[e];e++)a in g.Xa||(g.Xa[a]={}),g.Xa[a][c]=!0}};m.Vp=!1;m.bk=!0;m.Zh=function(a){m.global.console&&m.global.console.error(a)};m.jp=function(){};m.Ja="";m.mb=function(){};m.zm=function(){throw Error("unimplemented abstract method");};
m.qg=function(){var a=chrome.cast.a.D.Dd;a.kb=void 0;a.Yd=function(){if(a.kb)return a.kb;m.Oa&&(m.me[m.me.length]=a);return a.kb=new a}};m.me=[];m.Hf=!0;m.dg=m.Oa;m.Yh={};m.nd=!1;m.Ed="detect";m.hg="transpile.js";
m.nd&&(m.fa={Lc:{},Db:{},Xa:{},cf:{},bd:{},Nb:{}},m.je=function(){var a=m.global.document;return null!=a&&"write"in a},m.Og=function(){if(m.ra(m.global.lf))m.Ja=m.global.lf;else if(m.je())for(var a=m.global.document.getElementsByTagName("SCRIPT"),c=a.length-1;0<=c;--c){var d=a[c].src,e=d.lastIndexOf("?"),e=-1==e?d.length:e;if("base.js"==d.substr(e-7,7)){m.Ja=d.substr(0,e-7);break}}},m.Ec=function(a,c){(m.global.qj||m.Wi)(a,c)&&(m.fa.bd[a]=!0)},m.Gf=!(m.global.atob||!m.global.document||!m.global.document.all),
m.Oe=!1,m.Fh=function(a,c,d){m.Ec("",'goog.retrieveAndExec_("'+a+'", '+c+", "+d+");")},m.Tc=[],m.Zp=function(a,c){return m.Hf&&m.ra(m.global.JSON)?"goog.loadModule("+m.global.JSON.stringify(c+"\n//# sourceURL="+a+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+c+"\n;return exports});\n//# sourceURL="+a+"\n"},m.Xh=function(){var a=m.Tc.length;if(0<a){var c=m.Tc;m.Tc=[];for(var d=0;d<a;d++)m.Ie(c[d])}m.Oe=!1},m.Go=function(a){m.re(a)&&m.rg(a)&&m.Ie(m.Ja+m.Bc(a))},m.re=function(a){var c=
(a=m.Bc(a))&&m.fa.Lc[a]||{},d=c.lang||"es3";return a&&("goog"==c.module||m.Le(d))?m.Ja+a in m.fa.Nb:!1},m.rg=function(a){if((a=m.Bc(a))&&a in m.fa.Xa)for(var c in m.fa.Xa[a])if(!m.Qh(c)&&!m.re(c))return!1;return!0},m.Ie=function(a){if(a in m.fa.Nb){var c=m.fa.Nb[a];delete m.fa.Nb[a];m.uh(c)}},m.Co=function(){},m.Vi=function(a){m.global.document.write('<script type="text/javascript" src="'+a+'">\x3c/script>')},m.sg=function(a){var c=m.global.document,d=c.createElement("script");d.type="text/javascript";
d.src=a;d.defer=!1;d.async=!1;c.head.appendChild(d)},m.Wi=function(a,c){if(m.je()){var d=m.global.document;if(!m.qd&&"complete"==d.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}void 0===c?m.Gf?(m.Oe=!0,c=" onreadystatechange='goog.onScriptLoad_(this, "+ ++m.De+")' ",d.write('<script type="text/javascript" src="'+a+'"'+c+">\x3c/script>")):m.qd?m.sg(a):m.Vi(a):d.write('<script type="text/javascript">'+m.ri(c)+"\x3c/script>");return!0}return!1},
m.ri=function(a){return a.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},m.Le=function(a){if("always"==m.Ed)return!0;if("never"==m.Ed)return!1;m.Wb||(m.Wb=m.Fg());if(a in m.Wb)return m.Wb[a];throw Error("Unknown language mode: "+a);},m.Wb=null,m.De=0,m.So=function(a,c){"complete"==a.readyState&&m.De==c&&m.Xh();return!0},m.aq=function(a){function c(a){if(!(a in f.bd||a in f.cf)){f.cf[a]=!0;if(a in f.Xa)for(var g in f.Xa[a])if(!m.Qh(g))if(g in f.Db)c(f.Db[g]);else throw Error("Undefined nameToPath for "+g);a in
e||(e[a]=!0,d.push(a))}}var d=[],e={},f=m.fa;c(a);for(a=0;a<d.length;a++){var g=d[a];m.fa.bd[g]=!0}var h=m.ka;m.ka=null;for(a=0;a<d.length;a++)if(g=d[a]){var k=f.Lc[g]||{},l=m.Le(k.lang||"es3");"goog"==k.module||l?m.Fh(m.Ja+g,"goog"==k.module,l):m.Ec(m.Ja+g)}else throw m.ka=h,Error("Undefined script input");m.ka=h},m.Bc=function(a){return a in m.fa.Db?m.fa.Db[a]:null},m.Og(),m.global.rj||m.Ec(m.Ja+"deps.js"));m.Dc=null;
m.Ti=function(){if(null==m.Dc){var a;try{a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(c){a=!1}m.Dc=a}return m.Dc};m.Ui=function(a){return"(function(){"+a+"\n;})();\n"};
m.Bo=function(a){var c=m.ka;try{m.ka={Qc:void 0,uc:!1};var d;if(m.Ba(a))d=a.call(void 0,{});else if(m.I(a))m.Ti()&&(a=m.Ui(a)),d=m.Wh.call(void 0,a);else throw Error("Invalid module definition");var e=m.ka.Qc;if(!m.I(e)||!e)throw Error('Invalid module name "'+e+'"');m.ka.uc?m.Kd(e,d):m.dg&&Object.seal&&"object"==typeof d&&null!=d&&Object.seal(d);m.Yh[e]=d}finally{m.ka=c}};m.Wh=function(a){eval(a);return{}};
m.Mo=function(a){a=a.split("/");for(var c=0;c<a.length;)"."==a[c]?a.splice(c,1):c&&".."==a[c]&&a[c-1]&&".."!=a[c-1]?a.splice(--c,2):c++;return a.join("/")};m.Vh=function(a){if(m.global.nf)return m.global.nf(a);try{var c=new m.global.XMLHttpRequest;c.open("get",a,!1);c.send();return 0==c.status||200==c.status?c.responseText:null}catch(d){return null}};m.kp=function(){};
m.Mp=function(a,c){var d=m.global.$jscomp;d||(m.global.$jscomp=d={});var e=d.ad;if(!e){var f=m.Ja+m.hg,g=m.Vh(f);if(g){eval(g+"\n//# sourceURL="+f);if(m.global.$gwtExport&&m.global.$gwtExport.$jscomp&&!m.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(m.global.$gwtExport));m.global.$jscomp.ad=m.global.$gwtExport.$jscomp.transpile;d=m.global.$jscomp;e=d.ad}}if(!e)var h=" requires transpilation but no transpiler was found.",
h=h+' Please add "//javascript/closure:transpiler" as a data dependency to ensure it is included.',e=d.ad=function(a,c){m.Zh(c+h);return a};return e(a,c)};
m.oa=function(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==c&&"undefined"==typeof a.call)return"object";return c};m.ye=function(a){return null===a};m.Hh=function(a){return null!=a};m.isArray=function(a){return"array"==m.oa(a)};m.S=function(a){var c=m.oa(a);return"array"==c||"object"==c&&"number"==typeof a.length};m.fo=function(a){return m.Cb(a)&&"function"==typeof a.getFullYear};m.I=function(a){return"string"==typeof a};m.Sb=function(a){return"boolean"==typeof a};m.Bb=function(a){return"number"==typeof a};
m.Ba=function(a){return"function"==m.oa(a)};m.Cb=function(a){var c=typeof a;return"object"==c&&null!=a||"function"==c};m.ib=function(a){return a[m.Qa]||(a[m.Qa]=++m.Oi)};m.Dh=function(a){return!!a[m.Qa]};m.Se=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(m.Qa);try{delete a[m.Qa]}catch(c){}};m.Qa="closure_uid_"+(1E9*Math.random()>>>0);m.Oi=0;m.Kn=m.ib;m.fp=m.Se;
m.Cg=function(a){var c=m.oa(a);if("object"==c||"array"==c){if(a.clone)return a.clone();var c="array"==c?[]:{},d;for(d in a)c[d]=m.Cg(a[d]);return c}return a};m.wg=function(a,c,d){return a.call.apply(a.bind,arguments)};m.vg=function(a,c,d){if(!a)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,e);return a.apply(c,d)}}return function(){return a.apply(c,arguments)}};
m.bind=function(a,c,d){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?m.bind=m.wg:m.bind=m.vg;return m.bind.apply(null,arguments)};m.Qe=function(a,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=d.slice();c.push.apply(c,arguments);return a.apply(this,c)}};m.Ho=function(a,c){for(var d in c)a[d]=c[d]};m.now=m.qc&&Date.now||function(){return+new Date};
m.uh=function(a){if(m.global.execScript)m.global.execScript(a,"JavaScript");else if(m.global.eval){if(null==m.Ob)if(m.global.eval("var _evalTest_ = 1;"),"undefined"!=typeof m.global._evalTest_){try{delete m.global._evalTest_}catch(e){}m.Ob=!0}else m.Ob=!1;if(m.Ob)m.global.eval(a);else{var c=m.global.document,d=c.createElement("SCRIPT");d.type="text/javascript";d.defer=!1;d.appendChild(c.createTextNode(a));c.body.appendChild(d);c.body.removeChild(d)}}else throw Error("goog.globalEval not available");
};m.Ob=null;m.Jn=function(a,c){if("."==String(a).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+a);var d=function(a){return m.Md[a]||a},e=function(a){a=a.split("-");for(var c=[],e=0;e<a.length;e++)c.push(d(a[e]));return c.join("-")},e=m.Md?"BY_WHOLE"==m.Hg?d:e:function(a){return a};a=c?a+"-"+e(c):e(a);return m.global.mf?m.global.mf(a):a};m.op=function(a,c){m.Md=a;m.Hg=c};
m.Mn=function(a,c){c&&(a=a.replace(/\{\$([^}]+)}/g,function(a,e){return null!=c&&e in c?c[e]:a}));return a};m.Nn=function(a){return a};m.G=function(a,c){m.yc(a,c,void 0)};m.v=function(a,c,d){a[c]=d};m.Ta=function(a,c){function d(){}d.prototype=c.prototype;a.Ya=c.prototype;a.prototype=new d;a.prototype.constructor=a;a.ug=function(a,d,g){for(var e=Array(arguments.length-2),f=2;f<arguments.length;f++)e[f-2]=arguments[f];return c.prototype[d].apply(a,e)}};
m.ug=function(a,c,d){var e=arguments.callee.caller;if(m.gg||m.Oa&&!e)throw Error("arguments.caller not defined.  goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(e.Ya){for(var f=Array(arguments.length-1),g=1;g<arguments.length;g++)f[g-1]=arguments[g];return e.Ya.constructor.apply(a,f)}f=Array(arguments.length-2);for(g=2;g<arguments.length;g++)f[g-2]=arguments[g];for(var g=!1,h=a.constructor;h;h=h.Ya&&h.Ya.constructor)if(h.prototype[c]===
e)g=!0;else if(g)return h.prototype[c].apply(a,f);if(a[c]===e)return a.constructor.prototype[c].apply(a,f);throw Error("goog.base called from a method of one name to a method of a different name");};m.scope=function(a){if(m.Hc())throw Error("goog.scope is not supported within a goog.module.");a.call(m.global)};
m.ma=function(a,c){var d=c.constructor,e=c.Ji;d&&d!=Object.prototype.constructor||(d=function(){throw Error("cannot instantiate an interface (no constructor defined).");});d=m.ma.F(d,a);a&&m.Ta(d,a);delete c.constructor;delete c.Ji;m.ma.l(d.prototype,c);null!=e&&(e instanceof Function?e(d):m.ma.l(d,e));return d};m.ma.A=m.Oa;
m.ma.F=function(a,c){if(!m.ma.A)return a;var d=!m.ma.J(c),e=function(){var c=a.apply(this,arguments)||this;c[m.Qa]=c[m.Qa];this.constructor===e&&d&&Object.seal instanceof Function&&Object.seal(c);return c};return e};m.ma.J=function(a){return a&&a.prototype&&a.prototype[m.ig]};m.ma.b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
m.ma.l=function(a,c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);for(var e=0;e<m.ma.b.length;e++)d=m.ma.b[e],Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])};m.Ep=function(){};m.ig="goog_defineClass_legacy_unsealable";
m.Fg=function(){function a(a,c){e?d[a]=!0:c()?d[a]=!1:e=d[a]=!0}function c(a){try{return!!eval(a)}catch(h){return!1}}var d={es3:!1},e=!1,f=m.global.navigator&&m.global.navigator.userAgent?m.global.navigator.userAgent:"";a("es5",function(){return c("[1,].length==1")});a("es6",function(){var a=f.match(/Edge\/(\d+)(\.\d)*/i);return a&&15>Number(a[1])?!1:c('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')});
a("es6-impl",function(){return!0});a("es7",function(){return c("2 ** 2 == 4")});a("es8",function(){return c("async () => 1, true")});return d};var chrome=chrome||{};chrome.cast=chrome.cast||{};chrome.cast.a={};m.G("chrome.cast.games",chrome.cast.a);chrome.cast.a.ab="urn:x-cast:com.google.cast.games";m.v(chrome.cast.a,"NAMESPACE",chrome.cast.a.ab);chrome.cast.a.pc="1.0.0";m.v(chrome.cast.a,"SDK_VERSION_NUMBER",chrome.cast.a.pc);chrome.cast.a.yd={UNKNOWN:0,LOADING:1,RUNNING:2,PAUSED:3,SHOWING_INFO_SCREEN:4};m.v(chrome.cast.a,"GameplayState",chrome.cast.a.yd);chrome.cast.a.zd={UNKNOWN:0,OPEN:1,CLOSED:2};m.v(chrome.cast.a,"LobbyState",chrome.cast.a.zd);chrome.cast.a.Fa={INVALID_REQUEST:"invalid_request",NOT_ALLOWED:"not_allowed",INCORRECT_VERSION:"incorrect_version",TOO_MANY_PLAYERS:"too_many_players",dc:"cast_error"};m.v(chrome.cast.a,"GameManagerErrorCode",chrome.cast.a.Fa);chrome.cast.a.D={};chrome.cast.a.D.ta={SUCCESS:0,INVALID_REQUEST:1,NOT_ALLOWED:2,INCORRECT_VERSION:3,TOO_MANY_PLAYERS:4};
chrome.cast.a.D.ta.Zg=function(a){switch(a){case chrome.cast.a.D.ta.INVALID_REQUEST:return chrome.cast.a.Fa.INVALID_REQUEST;case chrome.cast.a.D.ta.NOT_ALLOWED:return chrome.cast.a.Fa.NOT_ALLOWED;case chrome.cast.a.D.ta.INCORRECT_VERSION:return chrome.cast.a.Fa.INCORRECT_VERSION;case chrome.cast.a.D.ta.TOO_MANY_PLAYERS:return chrome.cast.a.Fa.TOO_MANY_PLAYERS;default:throw Error("Cannot get error code for status code "+a);}};chrome.cast.a.D.Cf=function(){this.type=chrome.cast.a.D.tb.GAME_MANAGER_PROCESSED_RESULT;this.requestId=0;this.playerId="";this.playerToken=null;this.statusCode=chrome.cast.a.D.ta.SUCCESS;this.errorDescription="";this.gameplayState=chrome.cast.a.yd.UNKNOWN;this.lobbyState=chrome.cast.a.zd.UNKNOWN;this.players=[];this.gameData=null;this.gameStatusText="";this.extraMessageData=this.gameManagerConfig=null};m.G("chrome.cast.games.internal.GameManagerMessage",chrome.cast.a.D.Cf);
chrome.cast.a.D.tb={UNKNOWN:0,GAME_MANAGER_PROCESSED_RESULT:1,GAME_MESSAGE:2};m.G("chrome.cast.games.internal.GameManagerMessageType",chrome.cast.a.D.tb);chrome.cast.a.PlayerState={UNKNOWN:0,DROPPED:1,QUIT:2,AVAILABLE:3,READY:4,IDLE:5,PLAYING:6};m.v(chrome.cast.a,"PlayerState",chrome.cast.a.PlayerState);chrome.cast.a.D.Dd=function(){this.b=1E3*Math.floor(1E5*Math.random())};m.qg();chrome.cast.a.D.ca={UNKNOWN:0,Bd:1,ag:2,Xf:3,Yf:4,Zf:5,yf:6,GAME_MESSAGE:7,hc:1100};m.G("chrome.cast.games.internal.GameManagerRequestType",chrome.cast.a.D.ca);chrome.cast.a.D.wd=function(){this.type=chrome.cast.a.D.ca.UNKNOWN;var a=chrome.cast.a.D.Dd.Yd(),c=a.b++;0==c&&(c=a.b++);this.requestId=c;this.playerId="";this.extraMessageData=this.playerToken=null};
chrome.cast.a.D.ca.ah=function(a){var c=chrome.cast.a.PlayerState,d=chrome.cast.a.D.ca;switch(a){case c.QUIT:return d.Zf;case c.AVAILABLE:return d.Bd;case c.READY:return d.ag;case c.IDLE:return d.Xf;case c.PLAYING:return d.Yf;default:throw Error("No mapping to a game manager request type for player state: "+a);}};chrome.cast.a.sb=function(a,c,d,e){this.errorCode=a;this.errorDescription=c;this.result=d;this.castError=e};m.v(chrome.cast.a,"GameManagerError",chrome.cast.a.sb);chrome.cast.a.jc=function(a,c,d){this.playerId=a;this.requestId=c;this.extraMessageData=d};m.v(chrome.cast.a,"GameManagerResult",chrome.cast.a.jc);m.json={};m.json.sc=!1;m.json.Fd=!1;m.json.Sh=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};m.json.xc=m.mb;m.json.qp=function(a){m.json.xc=a};
m.json.parse=m.json.sc?m.global.JSON.parse:function(a){var c;if(m.json.Fd)try{return m.global.JSON.parse(a)}catch(e){c=e}a=String(a);if(m.json.Sh(a))try{var d=eval("("+a+")");c&&m.json.xc("Invalid JSON: "+a,c);return d}catch(e){}throw Error("Invalid JSON string: "+a);};m.json.Sp=m.json.sc?m.global.JSON.parse:function(a){var c;if(m.json.Fd)try{return m.global.JSON.parse(a)}catch(e){c=e}var d=eval("("+a+")");c&&m.json.xc("Invalid JSON: "+a,c);return d};
m.json.We=m.json.sc?m.global.JSON.stringify:function(a,c){return(new m.json.Pa(c)).We(a)};m.json.Pa=function(a){this.b=a};m.json.Pa.prototype.We=function(a){var c=[];n(this,a,c);return c.join("")};
var n=function(a,c,d){if(null==c)d.push("null");else{if("object"==typeof c){if(m.isArray(c)){var e=c;c=e.length;d.push("[");for(var f="",g=0;g<c;g++)d.push(f),f=e[g],n(a,a.b?a.b.call(e,String(g),f):f,d),f=",";d.push("]");return}if(c instanceof String||c instanceof Number||c instanceof Boolean)c=c.valueOf();else{d.push("{");g="";for(e in c)Object.prototype.hasOwnProperty.call(c,e)&&(f=c[e],"function"!=typeof f&&(d.push(g),p(e,d),d.push(":"),n(a,a.b?a.b.call(c,e,f):f,d),g=","));d.push("}");return}}switch(typeof c){case "string":p(c,
d);break;case "number":d.push(isFinite(c)&&!isNaN(c)?String(c):"null");break;case "boolean":d.push(String(c));break;case "function":d.push("null");break;default:throw Error("Unknown type: "+typeof c);}}};m.json.Pa.b={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"};m.json.Pa.l=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
var p=function(a,c){c.push('"',a.replace(m.json.Pa.l,function(a){var c=m.json.Pa.b[a];c||(c="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),m.json.Pa.b[a]=c);return c}),'"')};m.debug={};m.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,m.debug.Error);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a))};m.Ta(m.debug.Error,Error);m.debug.Error.prototype.name="CustomError";m.Pd={};m.Pd.Pf={sf:1,dj:2,TEXT:3,nj:4,ek:5,dk:6,Hl:7,sj:8,Gj:9,Ij:10,Hj:11,ol:12};m.g={};m.g.od=!1;m.g.wf=!1;m.g.jg={Nf:"\u00a0"};m.g.startsWith=function(a,c){return 0==a.lastIndexOf(c,0)};m.g.endsWith=function(a,c){var d=a.length-c.length;return 0<=d&&a.indexOf(c,d)==d};m.g.an=function(a,c){return 0==m.g.Jd(c,a.substr(0,c.length))};m.g.Ym=function(a,c){return 0==m.g.Jd(c,a.substr(a.length-c.length,c.length))};m.g.Zm=function(a,c){return a.toLowerCase()==c.toLowerCase()};
m.g.Ki=function(a,c){for(var d=a.split("%s"),e="",f=Array.prototype.slice.call(arguments,1);f.length&&1<d.length;)e+=d.shift()+f.shift();return e+d.join("%s")};m.g.gn=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};m.g.Gc=function(a){return/^[\s\xa0]*$/.test(a)};m.g.jo=function(a){return 0==a.length};m.g.ia=m.g.Gc;m.g.Ih=function(a){return m.g.Gc(m.g.ai(a))};m.g.io=m.g.Ih;m.g.co=function(a){return!/[^\t\n\r ]/.test(a)};m.g.Zn=function(a){return!/[^a-zA-Z]/.test(a)};
m.g.qo=function(a){return!/[^0-9]/.test(a)};m.g.ao=function(a){return!/[^a-zA-Z0-9]/.test(a)};m.g.to=function(a){return" "==a};m.g.uo=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};m.g.Cp=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};m.g.Wm=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};m.g.Oo=function(a){return a.replace(/\xa0|\s/g," ")};m.g.No=function(a){return a.replace(/\xa0|[ \t]+/g," ")};
m.g.fn=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};m.g.trim=m.qc&&String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};m.g.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};m.g.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};m.g.Jd=function(a,c){a=String(a).toLowerCase();c=String(c).toLowerCase();return a<c?-1:a==c?0:1};
m.g.Me=function(a,c,d){if(a==c)return 0;if(!a)return-1;if(!c)return 1;for(var e=a.toLowerCase().match(d),f=c.toLowerCase().match(d),g=Math.min(e.length,f.length),h=0;h<g;h++){d=e[h];var k=f[h];if(d!=k)return a=parseInt(d,10),!isNaN(a)&&(c=parseInt(k,10),!isNaN(c)&&a-c)?a-c:d<k?-1:1}return e.length!=f.length?e.length-f.length:a<c?-1:1};m.g.Wn=function(a,c){return m.g.Me(a,c,/\d+|\D+/g)};m.g.Rg=function(a,c){return m.g.Me(a,c,/\d+|\.\d+|\D+/g)};m.g.Qo=m.g.Rg;m.g.Up=function(a){return encodeURIComponent(String(a))};
m.g.Tp=function(a){return decodeURIComponent(a.replace(/\+/g," "))};m.g.ii=function(a,c){return a.replace(/(\r\n|\r|\n)/g,c?"<br />":"<br>")};
m.g.ie=function(a){if(!m.g.ff.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(m.g.gf,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(m.g.If,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(m.g.zf,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(m.g.cg,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(m.g.fg,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(m.g.Of,"&#0;"));m.g.od&&-1!=a.indexOf("e")&&(a=a.replace(m.g.tf,"&#101;"));return a};m.g.gf=/&/g;m.g.If=/</g;m.g.zf=/>/g;m.g.cg=/"/g;m.g.fg=/'/g;m.g.Of=/\x00/g;m.g.tf=/e/g;
m.g.ff=m.g.od?/[\x00&<>"'e]/:/[\x00&<>"']/;m.g.Ze=function(a){return m.g.contains(a,"&")?!m.g.wf&&"document"in m.global?m.g.af(a):m.g.Pi(a):a};m.g.Op=function(a,c){return m.g.contains(a,"&")?m.g.af(a,c):a};
m.g.af=function(a,c){var d={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},e;e=c?c.createElement("div"):m.global.document.createElement("div");return a.replace(m.g.Df,function(a,c){var f=d[a];if(f)return f;"#"==c.charAt(0)&&(c=Number("0"+c.substr(1)),isNaN(c)||(f=String.fromCharCode(c)));f||(e.innerHTML=a+" ",f=e.firstChild.nodeValue.slice(0,-1));return d[a]=f})};
m.g.Pi=function(a){return a.replace(/&([^;]+);/g,function(a,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return"#"!=d.charAt(0)||(d=Number("0"+d.substr(1)),isNaN(d))?a:String.fromCharCode(d)}})};m.g.Df=/&([^;\s<&]+);?/g;m.g.Xp=function(a,c){return m.g.ii(a.replace(/  /g," &#160;"),c)};m.g.Wo=function(a){return a.replace(/(^|[\n ]) /g,"$1"+m.g.jg.Nf)};
m.g.Dp=function(a,c){for(var d=c.length,e=0;e<d;e++){var f=1==d?c:c.charAt(e);if(a.charAt(0)==f&&a.charAt(a.length-1)==f)return a.substring(1,a.length-1)}return a};m.g.truncate=function(a,c,d){d&&(a=m.g.Ze(a));a.length>c&&(a=a.substring(0,c-3)+"...");d&&(a=m.g.ie(a));return a};m.g.Np=function(a,c,d,e){d&&(a=m.g.Ze(a));e&&a.length>c?(e>c&&(e=c),a=a.substring(0,c-e)+"..."+a.substring(a.length-e)):a.length>c&&(e=Math.floor(c/2),a=a.substring(0,e+c%2)+"..."+a.substring(a.length-e));d&&(a=m.g.ie(a));return a};
m.g.Xc={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};m.g.Tb={"'":"\\'"};m.g.quote=function(a){a=String(a);for(var c=['"'],d=0;d<a.length;d++){var e=a.charAt(d),f=e.charCodeAt(0);c[d+1]=m.g.Xc[e]||(31<f&&127>f?e:m.g.Rd(e))}c.push('"');return c.join("")};m.g.An=function(a){for(var c=[],d=0;d<a.length;d++)c[d]=m.g.Rd(a.charAt(d));return c.join("")};
m.g.Rd=function(a){if(a in m.g.Tb)return m.g.Tb[a];if(a in m.g.Xc)return m.g.Tb[a]=m.g.Xc[a];var c,d=a.charCodeAt(0);if(31<d&&127>d)c=a;else{if(256>d){if(c="\\x",16>d||256<d)c+="0"}else c="\\u",4096>d&&(c+="0");c+=d.toString(16).toUpperCase()}return m.g.Tb[a]=c};m.g.contains=function(a,c){return-1!=a.indexOf(c)};m.g.Ag=function(){return m.g.contains(m.f.userAgent.C.jb().toLowerCase(),"webkit")};m.g.pn=function(a,c){return a&&c?a.split(c).length-1:0};
m.g.Wa=function(a,c,d){var e=a;0<=c&&c<a.length&&0<d&&(e=a.substr(0,c)+a.substr(c+d,a.length-c-d));return e};m.g.remove=function(a,c){return a.replace(c,"")};m.g.removeAll=function(a,c){c=new RegExp(m.g.Uc(c),"g");return a.replace(c,"")};m.g.ip=function(a,c,d){c=new RegExp(m.g.Uc(c),"g");return a.replace(c,d.replace(/\$/g,"$$$$"))};m.g.Uc=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
m.g.repeat=String.prototype.repeat?function(a,c){return a.repeat(c)}:function(a,c){return Array(c+1).join(a)};m.g.Uo=function(a,c,d){a=m.ra(d)?a.toFixed(d):String(a);d=a.indexOf(".");-1==d&&(d=a.length);return m.g.repeat("0",Math.max(0,c-d))+a};m.g.ai=function(a){return null==a?"":String(a)};m.g.Tm=function(a){return Array.prototype.join.call(arguments,"")};m.g.On=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^m.now()).toString(36)};
m.g.wb=function(a,c){var d=0;a=m.g.trim(String(a)).split(".");c=m.g.trim(String(c)).split(".");for(var e=Math.max(a.length,c.length),f=0;0==d&&f<e;f++){var g=a[f]||"",h=c[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==g[0].length&&0==h[0].length)break;d=m.g.tc(0==g[1].length?0:parseInt(g[1],10),0==h[1].length?0:parseInt(h[1],10))||m.g.tc(0==g[2].length,0==h[2].length)||m.g.tc(g[2],h[2]);g=g[3];h=h[3]}while(0==d)}return d};
m.g.tc=function(a,c){return a<c?-1:a>c?1:0};m.g.Un=function(a){for(var c=0,d=0;d<a.length;++d)c=31*c+a.charCodeAt(d)>>>0;return c};m.g.Ri=2147483648*Math.random()|0;m.g.sn=function(){return"goog_"+m.g.Ri++};m.g.Jp=function(a){var c=Number(a);return 0==c&&m.g.Gc(a)?NaN:c};m.g.oo=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)};m.g.vo=function(a){return/^([A-Z][a-z]*)+$/.test(a)};m.g.Ip=function(a){return String(a).replace(/\-([a-z])/g,function(a,d){return d.toUpperCase()})};
m.g.Kp=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};m.g.Lp=function(a,c){c=m.I(c)?m.g.Uc(c):"\\s";return a.replace(new RegExp("(^"+(c?"|["+c+"]+":"")+")([a-z])","g"),function(a,c,f){return c+f.toUpperCase()})};m.g.Xm=function(a){return String(a.charAt(0)).toUpperCase()+String(a.substr(1)).toLowerCase()};m.g.parseInt=function(a){isFinite(a)&&(a=String(a));return m.I(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};
m.g.xp=function(a,c,d){a=a.split(c);for(var e=[];0<d&&a.length;)e.push(a.shift()),d--;a.length&&e.push(a.join(c));return e};m.g.yo=function(a,c){if(c)"string"==typeof c&&(c=[c]);else return a;for(var d=-1,e=0;e<c.length;e++)if(""!=c[e]){var f=a.lastIndexOf(c[e]);f>d&&(d=f)}return-1==d?a:a.slice(d+1)};
m.g.xn=function(a,c){var d=[],e=[];if(a==c)return 0;if(!a.length||!c.length)return Math.max(a.length,c.length);for(var f=0;f<c.length+1;f++)d[f]=f;for(f=0;f<a.length;f++){e[0]=f+1;for(var g=0;g<c.length;g++)e[g+1]=Math.min(e[g]+1,d[g+1]+1,d[g]+Number(a[f]!=c[g]));for(g=0;g<d.length;g++)d[g]=e[g]}return e[c.length]};m.j={};m.j.pa=m.Oa;m.j.Hb=function(a,c){c.unshift(a);m.debug.Error.call(this,m.g.Ki.apply(null,c));c.shift()};m.Ta(m.j.Hb,m.debug.Error);m.j.Hb.prototype.name="AssertionError";m.j.pf=function(a){throw a;};m.j.wc=m.j.pf;m.j.Aa=function(a,c,d,e){var f="Assertion failed";if(d)var f=f+(": "+d),g=e;else a&&(f+=": "+a,g=c);a=new m.j.Hb(""+f,g||[]);m.j.wc(a)};m.j.pp=function(a){m.j.pa&&(m.j.wc=a)};m.j.assert=function(a,c,d){m.j.pa&&!a&&m.j.Aa("",null,c,Array.prototype.slice.call(arguments,2));return a};
m.j.Pb=function(a,c){m.j.pa&&m.j.wc(new m.j.Hb("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};m.j.Lm=function(a,c,d){m.j.pa&&!m.Bb(a)&&m.j.Aa("Expected number but got %s: %s.",[m.oa(a),a],c,Array.prototype.slice.call(arguments,2));return a};m.j.Om=function(a,c,d){m.j.pa&&!m.I(a)&&m.j.Aa("Expected string but got %s: %s.",[m.oa(a),a],c,Array.prototype.slice.call(arguments,2));return a};
m.j.Jm=function(a,c,d){m.j.pa&&!m.Ba(a)&&m.j.Aa("Expected function but got %s: %s.",[m.oa(a),a],c,Array.prototype.slice.call(arguments,2));return a};m.j.Mm=function(a,c,d){m.j.pa&&!m.Cb(a)&&m.j.Aa("Expected object but got %s: %s.",[m.oa(a),a],c,Array.prototype.slice.call(arguments,2));return a};m.j.Gm=function(a,c,d){m.j.pa&&!m.isArray(a)&&m.j.Aa("Expected array but got %s: %s.",[m.oa(a),a],c,Array.prototype.slice.call(arguments,2));return a};
m.j.Hm=function(a,c,d){m.j.pa&&!m.Sb(a)&&m.j.Aa("Expected boolean but got %s: %s.",[m.oa(a),a],c,Array.prototype.slice.call(arguments,2));return a};m.j.Im=function(a,c,d){!m.j.pa||m.Cb(a)&&a.nodeType==m.Pd.Pf.sf||m.j.Aa("Expected Element but got %s: %s.",[m.oa(a),a],c,Array.prototype.slice.call(arguments,2));return a};m.j.Km=function(a,c,d,e){!m.j.pa||a instanceof c||m.j.Aa("Expected instanceof %s but got %s.",[m.j.he(c),m.j.he(a)],d,Array.prototype.slice.call(arguments,3));return a};
m.j.Nm=function(){for(var a in Object.prototype)m.j.Pb(a+" should not be enumerable in Object.prototype.")};m.j.he=function(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};m.c={};m.xa=m.qc;m.c.wa=!1;m.c.ni=function(a){return a[a.length-1]};m.c.xo=m.c.ni;m.c.indexOf=m.xa&&(m.c.wa||Array.prototype.indexOf)?function(a,c,d){return Array.prototype.indexOf.call(a,c,d)}:function(a,c,d){d=null==d?0:0>d?Math.max(0,a.length+d):d;if(m.I(a))return m.I(c)&&1==c.length?a.indexOf(c,d):-1;for(;d<a.length;d++)if(d in a&&a[d]===c)return d;return-1};
m.c.lastIndexOf=m.xa&&(m.c.wa||Array.prototype.lastIndexOf)?function(a,c,d){return Array.prototype.lastIndexOf.call(a,c,null==d?a.length-1:d)}:function(a,c,d){d=null==d?a.length-1:d;0>d&&(d=Math.max(0,a.length+d));if(m.I(a))return m.I(c)&&1==c.length?a.lastIndexOf(c,d):-1;for(;0<=d;d--)if(d in a&&a[d]===c)return d;return-1};
m.c.forEach=m.xa&&(m.c.wa||Array.prototype.forEach)?function(a,c,d){Array.prototype.forEach.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=m.I(a)?a.split(""):a,g=0;g<e;g++)g in f&&c.call(d,f[g],g,a)};m.c.Vd=function(a,c){for(var d=m.I(a)?a.split(""):a,e=a.length-1;0<=e;--e)e in d&&c.call(void 0,d[e],e,a)};
m.c.filter=m.xa&&(m.c.wa||Array.prototype.filter)?function(a,c,d){return Array.prototype.filter.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=[],g=0,h=m.I(a)?a.split(""):a,k=0;k<e;k++)if(k in h){var l=h[k];c.call(d,l,k,a)&&(f[g++]=l)}return f};m.c.map=m.xa&&(m.c.wa||Array.prototype.map)?function(a,c,d){return Array.prototype.map.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=Array(e),g=m.I(a)?a.split(""):a,h=0;h<e;h++)h in g&&(f[h]=c.call(d,g[h],h,a));return f};
m.c.reduce=m.xa&&(m.c.wa||Array.prototype.reduce)?function(a,c,d,e){e&&(c=m.bind(c,e));return Array.prototype.reduce.call(a,c,d)}:function(a,c,d,e){var f=d;m.c.forEach(a,function(d,h){f=c.call(e,f,d,h,a)});return f};m.c.reduceRight=m.xa&&(m.c.wa||Array.prototype.reduceRight)?function(a,c,d,e){e&&(c=m.bind(c,e));return Array.prototype.reduceRight.call(a,c,d)}:function(a,c,d,e){var f=d;m.c.Vd(a,function(d,h){f=c.call(e,f,d,h,a)});return f};
m.c.some=m.xa&&(m.c.wa||Array.prototype.some)?function(a,c,d){return Array.prototype.some.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=m.I(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return!0;return!1};m.c.every=m.xa&&(m.c.wa||Array.prototype.every)?function(a,c,d){return Array.prototype.every.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=m.I(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&!c.call(d,f[g],g,a))return!1;return!0};
m.c.count=function(a,c,d){var e=0;m.c.forEach(a,function(a,g,h){c.call(d,a,g,h)&&++e},d);return e};m.c.find=function(a,c,d){c=m.c.findIndex(a,c,d);return 0>c?null:m.I(a)?a.charAt(c):a[c]};m.c.findIndex=function(a,c,d){for(var e=a.length,f=m.I(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return g;return-1};m.c.Dn=function(a,c,d){c=m.c.Pg(a,c,d);return 0>c?null:m.I(a)?a.charAt(c):a[c]};
m.c.Pg=function(a,c,d){for(var e=m.I(a)?a.split(""):a,f=a.length-1;0<=f;f--)if(f in e&&c.call(d,e[f],f,a))return f;return-1};m.c.contains=function(a,c){return 0<=m.c.indexOf(a,c)};m.c.ia=function(a){return 0==a.length};m.c.clear=function(a){if(!m.isArray(a))for(var c=a.length-1;0<=c;c--)delete a[c];a.length=0};m.c.insert=function(a,c){m.c.contains(a,c)||a.push(c)};m.c.le=function(a,c,d){m.c.splice(a,d,0,c)};m.c.Vn=function(a,c,d){m.Qe(m.c.splice,a,d,0).apply(null,c)};
m.c.insertBefore=function(a,c,d){var e;2==arguments.length||0>(e=m.c.indexOf(a,d))?a.push(c):m.c.le(a,c,e)};m.c.remove=function(a,c){c=m.c.indexOf(a,c);var d;(d=0<=c)&&m.c.Wa(a,c);return d};m.c.hp=function(a,c){c=m.c.lastIndexOf(a,c);return 0<=c?(m.c.Wa(a,c),!0):!1};m.c.Wa=function(a,c){return 1==Array.prototype.splice.call(a,c,1).length};m.c.gp=function(a,c,d){c=m.c.findIndex(a,c,d);return 0<=c?(m.c.Wa(a,c),!0):!1};
m.c.ep=function(a,c,d){var e=0;m.c.Vd(a,function(f,g){c.call(d,f,g,a)&&m.c.Wa(a,g)&&e++});return e};m.c.concat=function(a){return Array.prototype.concat.apply([],arguments)};m.c.join=function(a){return Array.prototype.concat.apply([],arguments)};m.c.Na=function(a){var c=a.length;if(0<c){for(var d=Array(c),e=0;e<c;e++)d[e]=a[e];return d}return[]};m.c.clone=m.c.Na;
m.c.extend=function(a,c){for(var d=1;d<arguments.length;d++){var e=arguments[d];if(m.S(e)){var f=a.length||0,g=e.length||0;a.length=f+g;for(var h=0;h<g;h++)a[f+h]=e[h]}else a.push(e)}};m.c.splice=function(a,c,d,e){return Array.prototype.splice.apply(a,m.c.slice(arguments,1))};m.c.slice=function(a,c,d){return 2>=arguments.length?Array.prototype.slice.call(a,c):Array.prototype.slice.call(a,c,d)};
m.c.si=function(a,c){c=c||a;for(var d={},e=0,f=0;f<a.length;){var g=a[f++],h;h=g;h=m.Cb(h)?"o"+m.ib(h):(typeof h).charAt(0)+h;Object.prototype.hasOwnProperty.call(d,h)||(d[h]=!0,c[e++]=g)}c.length=e};m.c.Hd=function(a,c,d){return m.c.Id(a,d||m.c.Ka,!1,c)};m.c.Rm=function(a,c,d){return m.c.Id(a,c,!0,void 0,d)};m.c.Id=function(a,c,d,e,f){for(var g=0,h=a.length,k;g<h;){var l=g+h>>1,q;d?q=c.call(f,a[l],l,a):q=c(e,a[l]);0<q?g=l+1:(h=l,k=!q)}return k?g:~g};m.c.sort=function(a,c){a.sort(c||m.c.Ka)};
m.c.yp=function(a,c){for(var d=Array(a.length),e=0;e<a.length;e++)d[e]={index:e,value:a[e]};var f=c||m.c.Ka;m.c.sort(d,function(a,c){return f(a.value,c.value)||a.index-c.index});for(e=0;e<a.length;e++)a[e]=d[e].value};m.c.Ii=function(a,c,d){var e=d||m.c.Ka;m.c.sort(a,function(a,d){return e(c(a),c(d))})};m.c.wp=function(a,c,d){m.c.Ii(a,function(a){return a[c]},d)};m.c.Ae=function(a){for(var c=m.c.Ka,d=1;d<a.length;d++)if(0<c(a[d-1],a[d]))return!1;return!0};
m.c.ga=function(a,c,d){if(!m.S(a)||!m.S(c)||a.length!=c.length)return!1;var e=a.length;d=d||m.c.Nd;for(var f=0;f<e;f++)if(!d(a[f],c[f]))return!1;return!0};m.c.kn=function(a,c,d){d=d||m.c.Ka;for(var e=Math.min(a.length,c.length),f=0;f<e;f++){var g=d(a[f],c[f]);if(0!=g)return g}return m.c.Ka(a.length,c.length)};m.c.Ka=function(a,c){return a>c?1:a<c?-1:0};m.c.Yn=function(a,c){return-m.c.Ka(a,c)};m.c.Nd=function(a,c){return a===c};
m.c.Pm=function(a,c,d){d=m.c.Hd(a,c,d);return 0>d?(m.c.le(a,c,-(d+1)),!0):!1};m.c.Qm=function(a,c,d){c=m.c.Hd(a,c,d);return 0<=c?m.c.Wa(a,c):!1};m.c.Sm=function(a,c,d){for(var e={},f=0;f<a.length;f++){var g=a[f],h=c.call(d,g,f,a);m.ra(h)&&(e[h]||(e[h]=[])).push(g)}return e};m.c.Mi=function(a,c,d){var e={};m.c.forEach(a,function(f,g){e[c.call(d,f,g,a)]=f});return e};
m.c.Vb=function(a,c,d){var e=[],f=0,g=a;d=d||1;void 0!==c&&(f=a,g=c);if(0>d*(g-f))return[];if(0<d)for(a=f;a<g;a+=d)e.push(a);else for(a=f;a>g;a+=d)e.push(a);return e};m.c.repeat=function(a,c){for(var d=[],e=0;e<c;e++)d[e]=a;return d};m.c.flatten=function(a){for(var c=[],d=0;d<arguments.length;d++){var e=arguments[d];if(m.isArray(e))for(var f=0;f<e.length;f+=8192)for(var g=m.c.slice(e,f,f+8192),g=m.c.flatten.apply(null,g),h=0;h<g.length;h++)c.push(g[h]);else c.push(e)}return c};
m.c.rotate=function(a,c){a.length&&(c%=a.length,0<c?Array.prototype.unshift.apply(a,a.splice(-c,c)):0>c&&Array.prototype.push.apply(a,a.splice(0,-c)));return a};m.c.Jo=function(a,c,d){c=Array.prototype.splice.call(a,c,1);Array.prototype.splice.call(a,d,0,c[0])};
m.c.ef=function(a){if(!arguments.length)return[];for(var c=[],d=arguments[0].length,e=1;e<arguments.length;e++)arguments[e].length<d&&(d=arguments[e].length);for(e=0;e<d;e++){for(var f=[],g=0;g<arguments.length;g++)f.push(arguments[g][e]);c.push(f)}return c};m.c.vp=function(a,c){c=c||Math.random;for(var d=a.length-1;0<d;d--){var e=Math.floor(c()*(d+1)),f=a[d];a[d]=a[e];a[e]=f}};m.c.on=function(a,c){var d=[];m.c.forEach(c,function(c){d.push(a[c])});return d};
m.c.nn=function(a,c,d){return m.c.concat.apply([],m.c.map(a,c,d))};m.w={};m.w.Bj=function(){};m.K={};m.K.xb=function(a){return function(){return a}};m.K.hk=m.K.xb(!1);m.K.nm=m.K.xb(!0);m.K.pl=m.K.xb(null);m.K.identity=function(a){return a};m.K.error=function(a){return function(){throw Error(a);}};m.K.Pb=function(a){return function(){throw a;}};m.K.lock=function(a,c){c=c||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,c))}};m.K.Po=function(a){return function(){return arguments[a]}};
m.K.Vo=function(a,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.push.apply(c,d);return a.apply(this,c)}};m.K.Yp=function(a,c){return m.K.Gi(a,m.K.xb(c))};m.K.zn=function(a,c){return function(d){return c?a==d:a===d}};m.K.ln=function(a,c){var d=arguments,e=d.length;return function(){var a;e&&(a=d[e-1].apply(this,arguments));for(var c=e-2;0<=c;c--)a=d[c].call(this,a);return a}};
m.K.Gi=function(a){var c=arguments,d=c.length;return function(){for(var a,f=0;f<d;f++)a=c[f].apply(this,arguments);return a}};m.K.Cm=function(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(!c[a].apply(this,arguments))return!1;return!0}};m.K.To=function(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(c[a].apply(this,arguments))return!0;return!1}};m.K.ki=function(a){return function(){return!a.apply(this,arguments)}};
m.K.create=function(a,c){var d=function(){};d.prototype=a.prototype;d=new d;a.apply(d,Array.prototype.slice.call(arguments,1));return d};m.K.jf=!0;m.K.Um=function(a){var c=!1,d;return function(){if(!m.K.jf)return a();c||(d=a(),c=!0);return d}};m.K.once=function(a){var c=a;return function(){if(c){var a=c;c=null;a()}}};m.K.un=function(a,c,d){var e=0;return function(f){m.global.clearTimeout(e);var g=arguments;e=m.global.setTimeout(function(){a.apply(d,g)},c)}};
m.K.Hp=function(a,c,d){var e=0,f=!1,g=[],h=function(){e=0;f&&(f=!1,k())},k=function(){e=m.global.setTimeout(h,c);a.apply(d,g)};return function(a){g=arguments;e?f=!0:k()}};m.K.cp=function(a,c,d){var e=0,f=function(){e=0};return function(g){e||(e=m.global.setTimeout(f,c),a.apply(d,arguments))}};m.H={};m.H.bp=function(a){return Math.floor(Math.random()*a)};m.H.Pp=function(a,c){return a+Math.random()*(c-a)};m.H.dn=function(a,c,d){return Math.min(Math.max(a,c),d)};m.H.Je=function(a,c){a%=c;return 0>a*c?a+c:a};m.H.zo=function(a,c,d){return a+d*(c-a)};m.H.Ko=function(a,c,d){return Math.abs(a-c)<=(d||1E-6)};m.H.Yc=function(a){return m.H.Je(a,360)};m.H.zp=function(a){return m.H.Je(a,2*Math.PI)};m.H.Ye=function(a){return a*Math.PI/180};m.H.Li=function(a){return 180*a/Math.PI};
m.H.Em=function(a,c){return c*Math.cos(m.H.Ye(a))};m.H.Fm=function(a,c){return c*Math.sin(m.H.Ye(a))};m.H.angle=function(a,c,d,e){return m.H.Yc(m.H.Li(Math.atan2(e-c,d-a)))};m.H.Dm=function(a,c){a=m.H.Yc(c)-m.H.Yc(a);180<a?a-=360:-180>=a&&(a=360+a);return a};m.H.sign=function(a){return 0<a?1:0>a?-1:a};
m.H.Eo=function(a,c,d,e){d=d||function(a,c){return a==c};e=e||function(c){return a[c]};for(var f=a.length,g=c.length,h=[],k=0;k<f+1;k++)h[k]=[],h[k][0]=0;for(var l=0;l<g+1;l++)h[0][l]=0;for(k=1;k<=f;k++)for(l=1;l<=g;l++)d(a[k-1],c[l-1])?h[k][l]=h[k-1][l-1]+1:h[k][l]=Math.max(h[k-1][l],h[k][l-1]);for(var q=[],k=f,l=g;0<k&&0<l;)d(a[k-1],c[l-1])?(q.unshift(e(k-1,l-1)),k--,l--):h[k-1][l]>h[k][l-1]?k--:l--;return q};m.H.Xe=function(a){return m.c.reduce(arguments,function(a,d){return a+d},0)};
m.H.tg=function(a){return m.H.Xe.apply(null,arguments)/arguments.length};m.H.ti=function(a){var c=arguments.length;if(2>c)return 0;var d=m.H.tg.apply(null,arguments);return m.H.Xe.apply(null,m.c.map(arguments,function(a){return Math.pow(a-d,2)}))/(c-1)};m.H.Ap=function(a){return Math.sqrt(m.H.ti.apply(null,arguments))};m.H.mo=function(a){return isFinite(a)&&0==a%1};m.H.ko=function(a){return isFinite(a)};m.H.po=function(a){return 0==a&&0>1/a};
m.H.Do=function(a){if(0<a){var c=Math.round(Math.log(a)*Math.LOG10E);return c-(parseFloat("1e"+c)>a?1:0)}return 0==a?-Infinity:NaN};m.H.np=function(a,c){return Math.floor(a+(c||2E-15))};m.H.mp=function(a,c){return Math.ceil(a-(c||2E-15))};m.i={};m.i.Y="StopIteration"in m.global?m.global.StopIteration:{message:"StopIteration",stack:""};m.i.Iterator=function(){};m.i.Iterator.prototype.b=function(){throw m.i.Y;};m.i.Iterator.prototype.vb=function(){return this};m.i.T=function(a){if(a instanceof m.i.Iterator)return a;if("function"==typeof a.vb)return a.vb(!1);if(m.S(a)){var c=0,d=new m.i.Iterator;d.b=function(){for(;;){if(c>=a.length)throw m.i.Y;if(c in a)return a[c++];c++}};return d}throw Error("Not implemented");};
m.i.forEach=function(a,c,d){if(m.S(a))try{m.c.forEach(a,c,d)}catch(e){if(e!==m.i.Y)throw e;}else{a=m.i.T(a);try{for(;;)c.call(d,a.b(),void 0,a)}catch(e){if(e!==m.i.Y)throw e;}}};m.i.filter=function(a,c,d){var e=m.i.T(a);a=new m.i.Iterator;a.b=function(){for(;;){var a=e.b();if(c.call(d,a,void 0,e))return a}};return a};m.i.Cn=function(a,c,d){return m.i.filter(a,m.K.ki(c),d)};
m.i.Vb=function(a,c,d){var e=0,f=a,g=d||1;1<arguments.length&&(e=a,f=c);if(0==g)throw Error("Range step argument must not be zero");var h=new m.i.Iterator;h.b=function(){if(0<g&&e>=f||0>g&&e<=f)throw m.i.Y;var a=e;e+=g;return a};return h};m.i.join=function(a,c){return m.i.Na(a).join(c)};m.i.map=function(a,c,d){var e=m.i.T(a);a=new m.i.Iterator;a.b=function(){var a=e.b();return c.call(d,a,void 0,e)};return a};m.i.reduce=function(a,c,d,e){var f=d;m.i.forEach(a,function(a){f=c.call(e,f,a)});return f};
m.i.some=function(a,c,d){a=m.i.T(a);try{for(;;)if(c.call(d,a.b(),void 0,a))return!0}catch(e){if(e!==m.i.Y)throw e;}return!1};m.i.every=function(a,c,d){a=m.i.T(a);try{for(;;)if(!c.call(d,a.b(),void 0,a))return!1}catch(e){if(e!==m.i.Y)throw e;}return!0};m.i.cn=function(a){return m.i.Bg(arguments)};m.i.Bg=function(a){var c=m.i.T(a);a=new m.i.Iterator;var d=null;a.b=function(){for(;;){if(null==d){var a=c.b();d=m.i.T(a)}try{return d.b()}catch(f){if(f!==m.i.Y)throw f;d=null}}};return a};
m.i.wn=function(a,c,d){var e=m.i.T(a);a=new m.i.Iterator;var f=!0;a.b=function(){for(;;){var a=e.b();if(!f||!c.call(d,a,void 0,e))return f=!1,a}};return a};m.i.Fp=function(a,c,d){var e=m.i.T(a);a=new m.i.Iterator;a.b=function(){var a=e.b();if(c.call(d,a,void 0,e))return a;throw m.i.Y;};return a};m.i.Na=function(a){if(m.S(a))return m.c.Na(a);a=m.i.T(a);var c=[];m.i.forEach(a,function(a){c.push(a)});return c};
m.i.ga=function(a,c,d){a=m.i.Xi({},a,c);var e=d||m.c.Nd;return m.i.every(a,function(a){return e(a[0],a[1])})};m.i.ji=function(a){try{m.i.T(a).b()}catch(c){if(c!=m.i.Y)throw c;}};
m.i.product=function(a){if(m.c.some(arguments,function(a){return!a.length})||!arguments.length)return new m.i.Iterator;var c=new m.i.Iterator,d=arguments,e=m.c.repeat(0,d.length);c.b=function(){if(e){for(var a=m.c.map(e,function(a,c){return d[c][a]}),c=e.length-1;0<=c;c--){if(e[c]<d[c].length-1){e[c]++;break}if(0==c){e=null;break}e[c]=0}return a}throw m.i.Y;};return c};
m.i.tn=function(a){var c=m.i.T(a),d=[],e=0;a=new m.i.Iterator;var f=!1;a.b=function(){var a=null;if(!f)try{return a=c.b(),d.push(a),a}catch(h){if(h!=m.i.Y||m.c.ia(d))throw h;f=!0}a=d[e];e=(e+1)%d.length;return a};return a};m.i.count=function(a,c){var d=a||0,e=m.ra(c)?c:1;a=new m.i.Iterator;a.b=function(){var a=d;d+=e;return a};return a};m.i.repeat=function(a){var c=new m.i.Iterator;c.b=m.K.xb(a);return c};m.i.Am=function(a){var c=m.i.T(a),d=0;a=new m.i.Iterator;a.b=function(){return d+=c.b()};return a};
m.i.ef=function(a){var c=arguments,d=new m.i.Iterator;if(0<c.length){var e=m.c.map(c,m.i.T);d.b=function(){return m.c.map(e,function(a){return a.b()})}}return d};m.i.Xi=function(a,c){var d=m.c.slice(arguments,1),e=new m.i.Iterator;if(0<d.length){var f=m.c.map(d,m.i.T);e.b=function(){var c=!1,d=m.c.map(f,function(d){var e;try{e=d.b(),c=!0}catch(q){if(q!==m.i.Y)throw q;e=a}return e});if(!c)throw m.i.Y;return d}}return e};m.i.mn=function(a,c){var d=m.i.T(c);return m.i.filter(a,function(){return!!d.b()})};
m.i.kc=function(a,c){this.F=m.i.T(a);this.J=c||m.K.identity};m.Ta(m.i.kc,m.i.Iterator);m.i.kc.prototype.b=function(){for(;this.l==this.N;)this.A=this.F.b(),this.l=this.J(this.A);for(var a=this.N=this.l,c=this.N,d=[];this.l==c;){d.push(this.A);try{this.A=this.F.b()}catch(e){if(e!==m.i.Y)throw e;break}this.l=this.J(this.A)}return[a,d]};m.i.Tn=function(a,c){return new m.i.kc(a,c)};
m.i.Bp=function(a,c,d){var e=m.i.T(a);a=new m.i.Iterator;a.b=function(){var a=m.i.Na(e.b());return c.apply(d,m.c.concat(a,void 0,e))};return a};m.i.tee=function(a,c){var d=m.i.T(a),e=m.c.map(m.c.Vb(m.Bb(c)?c:2),function(){return[]}),f=function(){var a=d.b();m.c.forEach(e,function(c){c.push(a)})};return m.c.map(e,function(a){var c=new m.i.Iterator;c.b=function(){m.c.ia(a)&&f();return a.shift()};return c})};m.i.yn=function(a,c){return m.i.ef(m.i.count(c),a)};
m.i.limit=function(a,c){var d=m.i.T(a);a=new m.i.Iterator;var e=c;a.b=function(){if(0<e--)return d.b();throw m.i.Y;};return a};m.i.Dg=function(a,c){for(a=m.i.T(a);0<c--;)m.i.ji(a);return a};m.i.slice=function(a,c,d){a=m.i.Dg(a,c);m.Bb(d)&&(a=m.i.limit(a,d-c));return a};m.i.vh=function(a){var c=[];m.c.si(a,c);return a.length!=c.length};m.i.oi=function(a,c){a=m.i.Na(a);c=m.c.repeat(a,m.Bb(c)?c:a.length);c=m.i.product.apply(void 0,c);return m.i.filter(c,function(a){return!m.i.vh(a)})};
m.i.hn=function(a,c){function d(a){return e[a]}var e=m.i.Na(a);a=m.i.Vb(e.length);c=m.i.oi(a,c);var f=m.i.filter(c,function(a){return m.c.Ae(a)});c=new m.i.Iterator;c.b=function(){return m.c.map(f.b(),d)};return c};m.i.jn=function(a,c){function d(a){return e[a]}var e=m.i.Na(a);a=m.c.Vb(e.length);c=m.c.repeat(a,c);c=m.i.product.apply(void 0,c);var f=m.i.filter(c,function(a){return m.c.Ae(a)});c=new m.i.Iterator;c.b=function(){return m.c.map(f.b(),d)};return c};m.object={};m.object.is=function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c};m.object.forEach=function(a,c,d){for(var e in a)c.call(d,a[e],e,a)};m.object.filter=function(a,c,d){var e={},f;for(f in a)c.call(d,a[f],f,a)&&(e[f]=a[f]);return e};m.object.map=function(a,c,d){var e={},f;for(f in a)e[f]=c.call(d,a[f],f,a);return e};m.object.some=function(a,c,d){for(var e in a)if(c.call(d,a[e],e,a))return!0;return!1};m.object.every=function(a,c,d){for(var e in a)if(!c.call(d,a[e],e,a))return!1;return!0};
m.object.ha=function(a){var c=0,d;for(d in a)c++;return c};m.object.Hn=function(a){for(var c in a)return c};m.object.In=function(a){for(var c in a)return a[c]};m.object.contains=function(a,c){return m.object.cb(a,c)};m.object.P=function(a){var c=[],d=0,e;for(e in a)c[d++]=a[e];return c};m.object.Z=function(a){var c=[],d=0,e;for(e in a)c[d++]=e;return c};m.object.Rn=function(a,c){for(var d=m.S(c),e=d?c:arguments,d=d?0:1;d<e.length&&(a=a[e[d]],m.ra(a));d++);return a};
m.object.bb=function(a,c){return null!==a&&c in a};m.object.cb=function(a,c){for(var d in a)if(a[d]==c)return!0;return!1};m.object.Qg=function(a,c,d){for(var e in a)if(c.call(d,a[e],e,a))return e};m.object.En=function(a,c,d){return(c=m.object.Qg(a,c,d))&&a[c]};m.object.ia=function(a){for(var c in a)return!1;return!0};m.object.clear=function(a){for(var c in a)delete a[c]};m.object.remove=function(a,c){var d;(d=c in a)&&delete a[c];return d};
m.object.add=function(a,c,d){if(null!==a&&c in a)throw Error('The object already contains the key "'+c+'"');m.object.set(a,c,d)};m.object.get=function(a,c,d){return null!==a&&c in a?a[c]:d};m.object.set=function(a,c,d){a[c]=d};m.object.sp=function(a,c,d){return c in a?a[c]:a[c]=d};m.object.up=function(a,c,d){if(c in a)return a[c];d=d();return a[c]=d};m.object.ga=function(a,c){for(var d in a)if(!(d in c)||a[d]!==c[d])return!1;for(d in c)if(!(d in a))return!1;return!0};
m.object.clone=function(a){var c={},d;for(d in a)c[d]=a[d];return c};m.object.Si=function(a){var c=m.oa(a);if("object"==c||"array"==c){if(m.Ba(a.clone))return a.clone();var c="array"==c?[]:{},d;for(d in a)c[d]=m.object.Si(a[d]);return c}return a};m.object.Ni=function(a){var c={},d;for(d in a)c[a[d]]=d;return c};m.object.Cd="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
m.object.extend=function(a,c){for(var d,e,f=1;f<arguments.length;f++){e=arguments[f];for(d in e)a[d]=e[d];for(var g=0;g<m.object.Cd.length;g++)d=m.object.Cd[g],Object.prototype.hasOwnProperty.call(e,d)&&(a[d]=e[d])}};m.object.create=function(a){var c=arguments.length;if(1==c&&m.isArray(arguments[0]))return m.object.create.apply(null,arguments[0]);if(c%2)throw Error("Uneven number of arguments");for(var d={},e=0;e<c;e+=2)d[arguments[e]]=arguments[e+1];return d};
m.object.Gg=function(a){var c=arguments.length;if(1==c&&m.isArray(arguments[0]))return m.object.Gg.apply(null,arguments[0]);for(var d={},e=0;e<c;e++)d[arguments[e]]=!0;return d};m.object.rn=function(a){var c=a;Object.isFrozen&&!Object.isFrozen(a)&&(c=Object.create(a),Object.freeze(c));return c};m.object.lo=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};
m.object.Gn=function(a,c,d){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return m.object.Z(a);for(var e={};a&&(a!==Object.prototype||c)&&(a!==Function.prototype||d);){for(var f=Object.getOwnPropertyNames(a),g=0;g<f.length;g++)e[f[g]]=!0;a=Object.getPrototypeOf(a)}return m.object.Z(e)};m.w.Map=function(a,c){this.M={};this.b=[];this.A=this.l=0;var d=arguments.length;if(1<d){if(d%2)throw Error("Uneven number of arguments");for(var e=0;e<d;e+=2)this.set(arguments[e],arguments[e+1])}else if(a){a instanceof m.w.Map?(d=a.Z(),e=a.P()):(d=m.object.Z(a),e=m.object.P(a));for(var f=0;f<d.length;f++)this.set(d[f],e[f])}};b=m.w.Map.prototype;b.ha=function(){return this.l};b.P=function(){t(this);for(var a=[],c=0;c<this.b.length;c++)a.push(this.M[this.b[c]]);return a};b.Z=function(){t(this);return this.b.concat()};
b.bb=function(a){return m.w.Map.b(this.M,a)};b.cb=function(a){for(var c=0;c<this.b.length;c++){var d=this.b[c];if(m.w.Map.b(this.M,d)&&this.M[d]==a)return!0}return!1};b.ga=function(a,c){if(this===a)return!0;if(this.l!=a.ha())return!1;c=c||m.w.Map.l;t(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};m.w.Map.l=function(a,c){return a===c};m.w.Map.prototype.ia=function(){return 0==this.l};m.w.Map.prototype.clear=function(){this.M={};this.A=this.l=this.b.length=0};
m.w.Map.prototype.remove=function(a){return m.w.Map.b(this.M,a)?(delete this.M[a],this.l--,this.A++,this.b.length>2*this.l&&t(this),!0):!1};var t=function(a){if(a.l!=a.b.length){for(var c=0,d=0;c<a.b.length;){var e=a.b[c];m.w.Map.b(a.M,e)&&(a.b[d++]=e);c++}a.b.length=d}if(a.l!=a.b.length){for(var f={},d=c=0;c<a.b.length;)e=a.b[c],m.w.Map.b(f,e)||(a.b[d++]=e,f[e]=1),c++;a.b.length=d}};b=m.w.Map.prototype;b.get=function(a,c){return m.w.Map.b(this.M,a)?this.M[a]:c};
b.set=function(a,c){m.w.Map.b(this.M,a)||(this.l++,this.b.push(a),this.A++);this.M[a]=c};b.forEach=function(a,c){for(var d=this.Z(),e=0;e<d.length;e++){var f=d[e],g=this.get(f);a.call(c,g,f,this)}};b.clone=function(){return new m.w.Map(this)};b.Ni=function(){for(var a=new m.w.Map,c=0;c<this.b.length;c++){var d=this.b[c];a.set(this.M[d],d)}return a};b.Mi=function(){t(this);for(var a={},c=0;c<this.b.length;c++){var d=this.b[c];a[d]=this.M[d]}return a};
b.vb=function(a){t(this);var c=0,d=this.A,e=this,f=new m.i.Iterator;f.b=function(){if(d!=e.A)throw Error("The map has changed since the iterator was created");if(c>=e.b.length)throw m.i.Y;var f=e.b[c++];return a?f:e.M[f]};return f};m.w.Map.b=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};m.w.ha=function(a){return a.ha&&"function"==typeof a.ha?a.ha():m.S(a)||m.I(a)?a.length:m.object.ha(a)};m.w.P=function(a){if(a.P&&"function"==typeof a.P)return a.P();if(m.I(a))return a.split("");if(m.S(a)){for(var c=[],d=a.length,e=0;e<d;e++)c.push(a[e]);return c}return m.object.P(a)};m.w.Z=function(a){if(a.Z&&"function"==typeof a.Z)return a.Z();if(!a.P||"function"!=typeof a.P){if(m.S(a)||m.I(a)){var c=[];a=a.length;for(var d=0;d<a;d++)c.push(d);return c}return m.object.Z(a)}};
m.w.contains=function(a,c){return a.contains&&"function"==typeof a.contains?a.contains(c):a.cb&&"function"==typeof a.cb?a.cb(c):m.S(a)||m.I(a)?m.c.contains(a,c):m.object.cb(a,c)};m.w.ia=function(a){return a.ia&&"function"==typeof a.ia?a.ia():m.S(a)||m.I(a)?m.c.ia(a):m.object.ia(a)};m.w.clear=function(a){a.clear&&"function"==typeof a.clear?a.clear():m.S(a)?m.c.clear(a):m.object.clear(a)};
m.w.forEach=function(a,c,d){if(a.forEach&&"function"==typeof a.forEach)a.forEach(c,d);else if(m.S(a)||m.I(a))m.c.forEach(a,c,d);else for(var e=m.w.Z(a),f=m.w.P(a),g=f.length,h=0;h<g;h++)c.call(d,f[h],e&&e[h],a)};
m.w.filter=function(a,c,d){if("function"==typeof a.filter)return a.filter(c,d);if(m.S(a)||m.I(a))return m.c.filter(a,c,d);var e,f=m.w.Z(a),g=m.w.P(a),h=g.length;if(f){e={};for(var k=0;k<h;k++)c.call(d,g[k],f[k],a)&&(e[f[k]]=g[k])}else for(e=[],k=0;k<h;k++)c.call(d,g[k],void 0,a)&&e.push(g[k]);return e};
m.w.map=function(a,c,d){if("function"==typeof a.map)return a.map(c,d);if(m.S(a)||m.I(a))return m.c.map(a,c,d);var e,f=m.w.Z(a),g=m.w.P(a),h=g.length;if(f){e={};for(var k=0;k<h;k++)e[f[k]]=c.call(d,g[k],f[k],a)}else for(e=[],k=0;k<h;k++)e[k]=c.call(d,g[k],void 0,a);return e};m.w.some=function(a,c,d){if("function"==typeof a.some)return a.some(c,d);if(m.S(a)||m.I(a))return m.c.some(a,c,d);for(var e=m.w.Z(a),f=m.w.P(a),g=f.length,h=0;h<g;h++)if(c.call(d,f[h],e&&e[h],a))return!0;return!1};
m.w.every=function(a,c,d){if("function"==typeof a.every)return a.every(c,d);if(m.S(a)||m.I(a))return m.c.every(a,c,d);for(var e=m.w.Z(a),f=m.w.P(a),g=f.length,h=0;h<g;h++)if(!c.call(d,f[h],e&&e[h],a))return!1;return!0};m.w.Set=function(a){this.M=new m.w.Map;if(a){a=m.w.P(a);for(var c=a.length,d=0;d<c;d++)this.add(a[d])}};m.w.Set.b=function(a){var c=typeof a;return"object"==c&&a||"function"==c?"o"+m.ib(a):c.substr(0,1)+a};b=m.w.Set.prototype;b.ha=function(){return this.M.ha()};b.add=function(a){this.M.set(m.w.Set.b(a),a)};b.removeAll=function(a){a=m.w.P(a);for(var c=a.length,d=0;d<c;d++)this.remove(a[d])};b.remove=function(a){return this.M.remove(m.w.Set.b(a))};b.clear=function(){this.M.clear()};b.ia=function(){return this.M.ia()};
b.contains=function(a){return this.M.bb(m.w.Set.b(a))};b.P=function(){return this.M.P()};b.clone=function(){return new m.w.Set(this)};b.ga=function(a){return this.ha()==m.w.ha(a)&&v(this,a)};var v=function(a,c){var d=m.w.ha(c);if(a.ha()>d)return!1;!(c instanceof m.w.Set)&&5<d&&(c=new m.w.Set(c));return m.w.every(a,function(a){return m.w.contains(c,a)})};m.w.Set.prototype.vb=function(){return this.M.vb(!1)};m.f={};m.f.userAgent={};m.f.userAgent.C={};m.f.userAgent.C.be=function(){var a=m.f.userAgent.C.jh();return a&&(a=a.userAgent)?a:""};m.f.userAgent.C.jh=function(){return m.global.navigator};m.f.userAgent.C.bf=m.f.userAgent.C.be();m.f.userAgent.C.tp=function(a){m.f.userAgent.C.bf=a||m.f.userAgent.C.be()};m.f.userAgent.C.jb=function(){return m.f.userAgent.C.bf};m.f.userAgent.C.L=function(a){return m.g.contains(m.f.userAgent.C.jb(),a)};m.f.userAgent.C.gi=function(){return m.g.Ag()};
m.f.userAgent.C.Sd=function(a){for(var c=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,d=[],e;e=c.exec(a);)d.push([e[1],e[2],e[3]||void 0]);return d};m.f.userAgent.browser={};m.f.userAgent.browser.Ge=function(){return m.f.userAgent.C.L("Opera")};m.f.userAgent.browser.ei=function(){return m.f.userAgent.C.L("Trident")||m.f.userAgent.C.L("MSIE")};m.f.userAgent.browser.Oc=function(){return m.f.userAgent.C.L("Edge")};m.f.userAgent.browser.di=function(){return m.f.userAgent.C.L("Firefox")};
m.f.userAgent.browser.He=function(){return m.f.userAgent.C.L("Safari")&&!(m.f.userAgent.browser.Mc()||m.f.userAgent.browser.Nc()||m.f.userAgent.browser.Ge()||m.f.userAgent.browser.Oc()||m.f.userAgent.browser.ze()||m.f.userAgent.C.L("Android"))};m.f.userAgent.browser.Nc=function(){return m.f.userAgent.C.L("Coast")};
m.f.userAgent.browser.fi=function(){return(m.f.userAgent.C.L("iPad")||m.f.userAgent.C.L("iPhone"))&&!m.f.userAgent.browser.He()&&!m.f.userAgent.browser.Mc()&&!m.f.userAgent.browser.Nc()&&m.f.userAgent.C.L("AppleWebKit")};m.f.userAgent.browser.Mc=function(){return(m.f.userAgent.C.L("Chrome")||m.f.userAgent.C.L("CriOS"))&&!m.f.userAgent.browser.Oc()};
m.f.userAgent.browser.ci=function(){return m.f.userAgent.C.L("Android")&&!(m.f.userAgent.browser.pe()||m.f.userAgent.browser.Jh()||m.f.userAgent.browser.Ic()||m.f.userAgent.browser.ze())};m.f.userAgent.browser.Ic=m.f.userAgent.browser.Ge;m.f.userAgent.browser.se=m.f.userAgent.browser.ei;m.f.userAgent.browser.lb=m.f.userAgent.browser.Oc;m.f.userAgent.browser.Jh=m.f.userAgent.browser.di;m.f.userAgent.browser.so=m.f.userAgent.browser.He;m.f.userAgent.browser.eo=m.f.userAgent.browser.Nc;
m.f.userAgent.browser.no=m.f.userAgent.browser.fi;m.f.userAgent.browser.pe=m.f.userAgent.browser.Mc;m.f.userAgent.browser.bo=m.f.userAgent.browser.ci;m.f.userAgent.browser.ze=function(){return m.f.userAgent.C.L("Silk")};
m.f.userAgent.browser.zb=function(){function a(a){a=m.c.find(a,e);return d[a]||""}var c=m.f.userAgent.C.jb();if(m.f.userAgent.browser.se())return m.f.userAgent.browser.eh(c);var c=m.f.userAgent.C.Sd(c),d={};m.c.forEach(c,function(a){d[a[0]]=a[1]});var e=m.Qe(m.object.bb,d);return m.f.userAgent.browser.Ic()?a(["Version","Opera"]):m.f.userAgent.browser.lb()?a(["Edge"]):m.f.userAgent.browser.pe()?a(["Chrome","CriOS"]):(c=c[2])&&c[1]||""};
m.f.userAgent.browser.ja=function(a){return 0<=m.g.wb(m.f.userAgent.browser.zb(),a)};m.f.userAgent.browser.eh=function(a){var c=/rv: *([\d\.]*)/.exec(a);if(c&&c[1])return c[1];var c="",d=/MSIE +([\d\.]+)/.exec(a);if(d&&d[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==d[1])if(a&&a[1])switch(a[1]){case "4.0":c="8.0";break;case "5.0":c="9.0";break;case "6.0":c="10.0";break;case "7.0":c="11.0"}else c="7.0";else c=d[1];return c};m.f.userAgent.V={};m.f.userAgent.V.ro=function(){return m.f.userAgent.C.L("Presto")};m.f.userAgent.V.Rh=function(){return m.f.userAgent.C.L("Trident")||m.f.userAgent.C.L("MSIE")};m.f.userAgent.V.lb=function(){return m.f.userAgent.C.L("Edge")};m.f.userAgent.V.Be=function(){return m.f.userAgent.C.gi()&&!m.f.userAgent.V.lb()};m.f.userAgent.V.Kh=function(){return m.f.userAgent.C.L("Gecko")&&!m.f.userAgent.V.Be()&&!m.f.userAgent.V.Rh()&&!m.f.userAgent.V.lb()};
m.f.userAgent.V.zb=function(){var a=m.f.userAgent.C.jb();if(a){var a=m.f.userAgent.C.Sd(a),c=m.f.userAgent.V.Xg(a);if(c)return"Gecko"==c[0]?m.f.userAgent.V.sh(a):c[1];var a=a[0],d;if(a&&(d=a[2])&&(d=/Trident\/([^\s;]+)/.exec(d)))return d[1]}return""};m.f.userAgent.V.Xg=function(a){if(!m.f.userAgent.V.lb())return a[1];for(var c=0;c<a.length;c++){var d=a[c];if("Edge"==d[0])return d}};m.f.userAgent.V.ja=function(a){return 0<=m.g.wb(m.f.userAgent.V.zb(),a)};
m.f.userAgent.V.sh=function(a){return(a=m.c.find(a,function(a){return"Firefox"==a[0]}))&&a[1]||""};m.f.userAgent.platform={};m.f.userAgent.platform.ne=function(){return m.f.userAgent.C.L("Android")};m.f.userAgent.platform.we=function(){return m.f.userAgent.C.L("iPod")};m.f.userAgent.platform.ve=function(){return m.f.userAgent.C.L("iPhone")&&!m.f.userAgent.C.L("iPod")&&!m.f.userAgent.C.L("iPad")};m.f.userAgent.platform.ue=function(){return m.f.userAgent.C.L("iPad")};m.f.userAgent.platform.te=function(){return m.f.userAgent.platform.ve()||m.f.userAgent.platform.ue()||m.f.userAgent.platform.we()};
m.f.userAgent.platform.xe=function(){return m.f.userAgent.C.L("Macintosh")};m.f.userAgent.platform.Nh=function(){return m.f.userAgent.C.L("Linux")};m.f.userAgent.platform.Ce=function(){return m.f.userAgent.C.L("Windows")};m.f.userAgent.platform.qe=function(){return m.f.userAgent.C.L("CrOS")};
m.f.userAgent.platform.zb=function(){var a=m.f.userAgent.C.jb(),c="";m.f.userAgent.platform.Ce()?(c=/Windows (?:NT|Phone) ([0-9.]+)/,c=(a=c.exec(a))?a[1]:"0.0"):m.f.userAgent.platform.te()?(c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,c=(a=c.exec(a))&&a[1].replace(/_/g,".")):m.f.userAgent.platform.xe()?(c=/Mac OS X ([0-9_.]+)/,c=(a=c.exec(a))?a[1].replace(/_/g,"."):"10"):m.f.userAgent.platform.ne()?(c=/Android\s+([^\);]+)(\)|;)/,c=(a=c.exec(a))&&a[1]):m.f.userAgent.platform.qe()&&(c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
c=(a=c.exec(a))&&a[1]);return c||""};m.f.userAgent.platform.ja=function(a){return 0<=m.g.wb(m.f.userAgent.platform.zb(),a)};m.va={};m.va.object=function(a,c){return c};m.va.Wc=function(a){m.va.Wc[" "](a);return a};m.va.Wc[" "]=m.mb;m.va.zg=function(a){try{return m.va.Wc(a.nodeName),!0}catch(c){}return!1};m.va.cache=function(a,c,d,e){e=e?e(c):c;return Object.prototype.hasOwnProperty.call(a,e)?a[e]:a[e]=d(c)};m.userAgent={};m.userAgent.fd=!1;m.userAgent.dd=!1;m.userAgent.ed=!1;m.userAgent.kd=!1;m.userAgent.bc=!1;m.userAgent.jd=!1;m.userAgent.hf=!1;m.userAgent.rb=m.userAgent.fd||m.userAgent.dd||m.userAgent.ed||m.userAgent.bc||m.userAgent.kd||m.userAgent.jd;m.userAgent.rh=function(){return m.f.userAgent.C.jb()};m.userAgent.ce=function(){return m.global.navigator||null};m.userAgent.oc=m.userAgent.rb?m.userAgent.jd:m.f.userAgent.browser.Ic();m.userAgent.la=m.userAgent.rb?m.userAgent.fd:m.f.userAgent.browser.se();
m.userAgent.pd=m.userAgent.rb?m.userAgent.dd:m.f.userAgent.V.lb();m.userAgent.Zj=m.userAgent.pd||m.userAgent.la;m.userAgent.Jb=m.userAgent.rb?m.userAgent.ed:m.f.userAgent.V.Kh();m.userAgent.Ra=m.userAgent.rb?m.userAgent.kd||m.userAgent.bc:m.f.userAgent.V.Be();m.userAgent.Ph=function(){return m.userAgent.Ra&&m.f.userAgent.C.L("Mobile")};m.userAgent.Rk=m.userAgent.bc||m.userAgent.Ph();m.userAgent.Ql=m.userAgent.Ra;m.userAgent.Ig=function(){var a=m.userAgent.ce();return a&&a.platform||""};
m.userAgent.wl=m.userAgent.Ig();m.userAgent.hd=!1;m.userAgent.ld=!1;m.userAgent.gd=!1;m.userAgent.md=!1;m.userAgent.cd=!1;m.userAgent.Zb=!1;m.userAgent.Yb=!1;m.userAgent.ac=!1;m.userAgent.ya=m.userAgent.hd||m.userAgent.ld||m.userAgent.gd||m.userAgent.md||m.userAgent.cd||m.userAgent.Zb||m.userAgent.Yb||m.userAgent.ac;m.userAgent.Ok=m.userAgent.ya?m.userAgent.hd:m.f.userAgent.platform.xe();m.userAgent.xm=m.userAgent.ya?m.userAgent.ld:m.f.userAgent.platform.Ce();
m.userAgent.Mh=function(){return m.f.userAgent.platform.Nh()||m.f.userAgent.platform.qe()};m.userAgent.Dk=m.userAgent.ya?m.userAgent.gd:m.userAgent.Mh();m.userAgent.Uh=function(){var a=m.userAgent.ce();return!!a&&m.g.contains(a.appVersion||"","X11")};m.userAgent.ym=m.userAgent.ya?m.userAgent.md:m.userAgent.Uh();m.userAgent.ANDROID=m.userAgent.ya?m.userAgent.cd:m.f.userAgent.platform.ne();m.userAgent.xk=m.userAgent.ya?m.userAgent.Zb:m.f.userAgent.platform.ve();
m.userAgent.wk=m.userAgent.ya?m.userAgent.Yb:m.f.userAgent.platform.ue();m.userAgent.yk=m.userAgent.ya?m.userAgent.ac:m.f.userAgent.platform.we();m.userAgent.IOS=m.userAgent.ya?m.userAgent.Zb||m.userAgent.Yb||m.userAgent.ac:m.f.userAgent.platform.te();m.userAgent.Jg=function(){var a="",c=m.userAgent.th();c&&(a=c?c[1]:"");return m.userAgent.la&&(c=m.userAgent.Xd(),null!=c&&c>parseFloat(a))?String(c):a};
m.userAgent.th=function(){var a=m.userAgent.rh();if(m.userAgent.Jb)return/rv\:([^\);]+)(\)|;)/.exec(a);if(m.userAgent.pd)return/Edge\/([\d\.]+)/.exec(a);if(m.userAgent.la)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(m.userAgent.Ra)return/WebKit\/(\S+)/.exec(a);if(m.userAgent.oc)return/(?:Version)[ \/]?(\S+)/.exec(a)};m.userAgent.Xd=function(){var a=m.global.document;return a?a.documentMode:void 0};m.userAgent.VERSION=m.userAgent.Jg();m.userAgent.compare=function(a,c){return m.g.wb(a,c)};
m.userAgent.Th={};m.userAgent.ja=function(a){return m.userAgent.hf||m.va.cache(m.userAgent.Th,a,function(){return 0<=m.g.wb(m.userAgent.VERSION,a)})};m.userAgent.wo=m.userAgent.ja;m.userAgent.Fc=function(a){return Number(m.userAgent.rf)>=a};m.userAgent.ho=m.userAgent.Fc;var w;var x=m.global.document;w=x&&m.userAgent.la?m.userAgent.Xd()||("CSS1Compat"==x.compatMode?parseInt(m.userAgent.VERSION,10):5):void 0;m.userAgent.rf=w;m.debug.ba=m.Oa;m.debug.td=!1;m.debug.bn=function(a,c,d){d=d||m.global;var e=d.onerror,f=!!c;m.userAgent.Ra&&!m.userAgent.ja("535.3")&&(f=!f);d.onerror=function(c,d,k,l,q){e&&e(c,d,k,l,q);a({message:c,fileName:d,Ee:k,en:l,error:q});return f}};m.debug.Mg=function(a,c){if("undefined"==typeof a)return"undefined";if(null==a)return"NULL";var d=[],e;for(e in a)if(c||!m.Ba(a[e])){var f=e+" = ";try{f+=a[e]}catch(g){f+="*** "+g+" ***"}d.push(f)}return d.join("\n")};
m.debug.vn=function(a,c){var d=[],e=[],f={},g=function(a,k){var h=k+"  ";try{if(m.ra(a))if(m.ye(a))d.push("NULL");else if(m.I(a))d.push('"'+a.replace(/\n/g,"\n"+k)+'"');else if(m.Ba(a))d.push(String(a).replace(/\n/g,"\n"+k));else if(m.Cb(a)){m.Dh(a)||e.push(a);var q=m.ib(a);if(f[q])d.push("*** reference loop detected (id="+q+") ***");else{f[q]=!0;d.push("{");for(var u in a)if(c||!m.Ba(a[u]))d.push("\n"),d.push(h),d.push(u+" = "),g(a[u],h);d.push("\n"+k+"}");delete f[q]}}else d.push(a);else d.push("undefined")}catch(R){d.push("*** "+
R+" ***")}};g(a,"");for(a=0;a<e.length;a++)m.Se(e[a]);return d.join("")};m.debug.Ng=function(a){for(var c=[],d=0;d<a.length;d++)m.isArray(a[d])?c.push(m.debug.Ng(a[d])):c.push(a[d]);return"[ "+c.join(", ")+" ]"};
m.debug.Lo=function(a){var c=m.de("window.location.href");if(m.I(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:c,stack:"Not available"};var d,e,f=!1;try{d=a.lineNumber||a.Ee||"Not available"}catch(g){d="Not available",f=!0}try{e=a.fileName||a.filename||a.sourceURL||m.global.$googDebugFname||c}catch(g){e="Not available",f=!0}return!f&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name?a:{message:a.message||"Not available",name:a.name||"UnknownError",lineNumber:d,fileName:e,
stack:a.stack||"Not available"}};m.debug.Qd=function(a,c){a instanceof Error||(a=Error(a),Error.captureStackTrace&&Error.captureStackTrace(a,m.debug.Qd));a.stack||(a.stack=m.debug.fe(m.debug.Qd));if(c){for(var d=0;a["message"+d];)++d;a["message"+d]=String(c)}return a};
m.debug.qh=function(a){if(!m.debug.td){var c=m.debug.ae(m.debug.qh);if(c)return c}for(var c=[],d=arguments.callee.caller,e=0;d&&(!a||e<a);){c.push(m.debug.getFunctionName(d));c.push("()\n");try{d=d.caller}catch(f){c.push("[exception trying to get caller]\n");break}e++;if(e>=m.debug.Ad){c.push("[...long stack...]");break}}a&&e>=a?c.push("[...reached max depth limit...]"):c.push("[end]");return c.join("")};m.debug.Ad=50;
m.debug.ae=function(a){var c=Error();if(Error.captureStackTrace)return Error.captureStackTrace(c,a),String(c.stack);try{throw c;}catch(d){c=d}return(a=c.stack)?String(a):null};m.debug.fe=function(a){var c;m.debug.td||(c=m.debug.ae(a||m.debug.fe));c||(c=m.debug.ge(a||arguments.callee.caller,[]));return c};
m.debug.ge=function(a,c){var d=[];if(m.c.contains(c,a))d.push("[...circular reference...]");else if(a&&c.length<m.debug.Ad){d.push(m.debug.getFunctionName(a)+"(");for(var e=a.arguments,f=0;e&&f<e.length;f++){0<f&&d.push(", ");var g;g=e[f];switch(typeof g){case "object":g=g?"object":"null";break;case "string":break;case "number":g=String(g);break;case "boolean":g=g?"true":"false";break;case "function":g=(g=m.debug.getFunctionName(g))?g:"[fn]";break;default:g=typeof g}40<g.length&&(g=g.substr(0,40)+
"...");d.push(g)}c.push(a);d.push(")\n");try{d.push(m.debug.ge(a.caller,c))}catch(h){d.push("[exception trying to get caller]\n")}}else a?d.push("[...long stack...]"):d.push("[end]");return d.join("")};m.debug.rp=function(a){m.debug.Ud=a};m.debug.getFunctionName=function(a){if(m.debug.fb[a])return m.debug.fb[a];if(m.debug.Ud){var c=m.debug.Ud(a);if(c)return m.debug.fb[a]=c}a=String(a);m.debug.fb[a]||(c=/function ([^\(]+)/.exec(a),m.debug.fb[a]=c?c[1]:"[Anonymous]");return m.debug.fb[a]};
m.debug.Fo=function(a){return a.replace(/ /g,"[_]").replace(/\f/g,"[f]").replace(/\n/g,"[n]\n").replace(/\r/g,"[r]").replace(/\t/g,"[t]")};m.debug.lp=function(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};m.debug.fb={};m.debug.Ia=function(a,c,d,e,f){"number"==typeof f||m.debug.Ia.b++;e||m.now();this.l=c;delete this.b};m.debug.Ia.prototype.b=null;m.debug.Ia.l=!0;m.debug.Ia.b=0;m.debug.Ia.prototype.getMessage=function(){return this.l};m.debug.Ha=function(){this.clear()};m.debug.Ha.Yd=function(){m.debug.Ha.kb||(m.debug.Ha.kb=new m.debug.Ha);return m.debug.Ha.kb};m.debug.Ha.b=0;m.debug.Ha.l=function(){return!1};m.debug.Ha.prototype.clear=function(){};m.debug.o=function(a){this.J=a;this.b=this.F=this.l=this.A=null};m.debug.o.Lb="";m.debug.o.l=!0;m.debug.o.B=function(a,c){this.name=a;this.value=c};m.debug.o.B.prototype.toString=function(){return this.name};m.debug.o.B.Da=new m.debug.o.B("OFF",Infinity);m.debug.o.B.ob=new m.debug.o.B("SHOUT",1200);m.debug.o.B.F=new m.debug.o.B("SEVERE",1E3);m.debug.o.B.X=new m.debug.o.B("WARNING",900);m.debug.o.B.N=new m.debug.o.B("INFO",800);m.debug.o.B.l=new m.debug.o.B("CONFIG",700);
m.debug.o.B.J=new m.debug.o.B("FINE",500);m.debug.o.B.Ua=new m.debug.o.B("FINER",400);m.debug.o.B.Va=new m.debug.o.B("FINEST",300);m.debug.o.B.ALL=new m.debug.o.B("ALL",0);m.debug.o.B.A=[m.debug.o.B.Da,m.debug.o.B.ob,m.debug.o.B.F,m.debug.o.B.X,m.debug.o.B.N,m.debug.o.B.l,m.debug.o.B.J,m.debug.o.B.Ua,m.debug.o.B.Va,m.debug.o.B.ALL];m.debug.o.B.b=null;m.debug.o.B.Ca=function(){m.debug.o.B.b={};for(var a=0,c;c=m.debug.o.B.A[a];a++)m.debug.o.B.b[c.value]=c,m.debug.o.B.b[c.name]=c};
m.debug.o.B.Gb=function(a){m.debug.o.B.b||m.debug.o.B.Ca();return m.debug.o.B.b[a]||null};m.debug.o.B.Wp=function(a){m.debug.o.B.b||m.debug.o.B.Ca();if(a in m.debug.o.B.b)return m.debug.o.B.b[a];for(var c=0;c<m.debug.o.B.A.length;++c){var d=m.debug.o.B.A[c];if(d.value<=a)return d}return null};m.debug.o.hb=function(a){return m.debug.O.hb(a)};
m.debug.o.b=function(a){m.global.console&&(m.global.console.timeStamp?m.global.console.timeStamp(a):m.global.console.markTimeline&&m.global.console.markTimeline(a));m.global.msWriteProfilerMark&&m.global.msWriteProfilerMark(a)};m.debug.o.prototype.Gd=function(a){m.debug.ba&&(this.b||(this.b=[]),this.b.push(a))};m.debug.o.prototype.Re=function(a){if(m.debug.ba){var c=this.b;return!!c&&m.c.remove(c,a)}return!1};m.debug.o.prototype.getChildren=function(){this.F||(this.F={});return this.F};
var y=function(a){if(!m.debug.ba)return m.debug.o.B.Da;if(a.l)return a.l;if(a.A)return y(a.A);m.j.Pb("Root logger has no level set.");return null};b=m.debug.o.prototype;b.log=function(a,c,d){if(m.debug.ba&&m.debug.ba&&a.value>=y(this).value)for(m.Ba(c)&&(c=c()),a=new m.debug.Ia(a,String(c),this.J),d&&(a.b=d),m.debug.o.b("log:"+a.getMessage()),d=this;d;){var e=d,f=a;if(e.b)for(var g=0;c=e.b[g];g++)c(f);d=d.A}};b.df=function(a,c){m.debug.ba&&this.log(m.debug.o.B.X,a,c)};
b.info=function(a,c){m.debug.ba&&this.log(m.debug.o.B.N,a,c)};b.config=function(a,c){m.debug.ba&&this.log(m.debug.o.B.l,a,c)};b.Td=function(a,c){m.debug.ba&&this.log(m.debug.o.B.J,a,c)};m.debug.O={};m.debug.O.Ub={};m.debug.O.Fb=null;m.debug.O.initialize=function(){if(!m.debug.O.Fb){m.debug.O.Fb=new m.debug.o(m.debug.o.Lb);m.debug.O.Ub[m.debug.o.Lb]=m.debug.O.Fb;var a=m.debug.o.B.l;m.debug.ba&&(m.debug.O.Fb.l=a)}};m.debug.O.Ln=function(){return m.debug.O.Ub};
m.debug.O.ph=function(){m.debug.O.initialize();return m.debug.O.Fb};m.debug.O.hb=function(a){m.debug.O.initialize();return m.debug.O.Ub[a]||m.debug.O.Eg(a)};m.debug.O.qn=function(a){return function(c){var d=a||m.debug.O.ph();m.debug.ba&&d.log(m.debug.o.B.F,"Error: "+c.message+" ("+c.fileName+" @ Line: "+c.Ee+")",void 0)}};m.debug.O.Eg=function(a){var c=new m.debug.o(a),d=a.lastIndexOf("."),e=a.substr(d+1),d=m.debug.O.hb(a.substr(0,d));d.getChildren()[e]=c;c.A=d;return m.debug.O.Ub[a]=c};m.log={};m.log.Ea=m.debug.ba;m.log.Lb=m.debug.o.Lb;m.log.o=m.debug.o;m.log.B=m.debug.o.B;m.log.Ia=m.debug.Ia;m.log.hb=function(a,c){return m.log.Ea?(a=m.debug.O.hb(a),c&&a&&m.debug.ba&&(a.l=c),a):null};m.log.Gd=function(a,c){m.log.Ea&&a&&a.Gd(c)};m.log.Re=function(a,c){return m.log.Ea&&a?a.Re(c):!1};m.log.log=function(a,c,d,e){m.log.Ea&&a&&a.log(c,d,e)};m.log.error=function(a,c,d){m.log.Ea&&a&&m.debug.ba&&a.log(m.debug.o.B.F,c,d)};m.log.df=function(a,c,d){m.log.Ea&&a&&a.df(c,d)};
m.log.info=function(a,c,d){m.log.Ea&&a&&a.info(c,d)};m.log.Td=function(a,c,d){m.log.Ea&&a&&a.Td(c,d)};chrome.cast.a.D.Ga=function(a){this.N=a;this.Da=m.log.hb("chrome.cast.games.internal.GameManagerSession");this.F=null;this.Va=new m.w.Map;this.b=new m.w.Map;this.A=new m.w.Map;this.l=new m.w.Map;this.Ua=new m.w.Map;this.Ca=this.J=this.X=null;this.N.addMessageListener(chrome.cast.a.ab,m.bind(this.ob,this))};chrome.cast.a.D.Ga.b=6E4;
chrome.cast.a.D.Ga.prototype.za=function(){this.N.removeMessageListener(chrome.cast.a.ab,m.bind(this.ob,this));for(var a=this.A.Z(),c=0;c<a.length;c++)z(this,a[c]);this.J=this.X=null};
var A=function(a,c,d){var e=new chrome.cast.a.D.wd;e.type=chrome.cast.a.D.ca.hc;if(!e.requestId)throw Error("Missing requestId field from request.");if(!c)throw Error("No success callback provided.");a.F=c;c=m.mb;d&&(a.b.set(e.requestId,d),c=function(a){d(new chrome.cast.a.sb(chrome.cast.a.Fa.dc,a.description,null,a));z(this,e.requestId)}.bind(a));var f=m.global.setTimeout(m.bind(a.Gb,a,e.requestId),6E4);a.A.set(e.requestId,f);a.l.set(e.requestId,e.type);a.N.sendMessage(chrome.cast.a.ab,e,m.mb,c)},
B=function(a,c,d,e,f,g){if(d==chrome.cast.a.D.ca.UNKNOWN)throw Error("Cannot send an UNKNOWN game manager request.");if(!c&&d!=chrome.cast.a.D.ca.Bd&&d!=chrome.cast.a.D.ca.hc)throw Error("Missing player ID for game manager request type:"+d);var h=new chrome.cast.a.D.wd;h.type=d;h.playerId=c?c:"";h.playerToken=a.Ua.get(h.playerId,null);h.extraMessageData=e;if(!h.requestId)throw Error("Missing requestId field from request");f&&a.Va.set(h.requestId,f);c=m.mb;g&&(a.b.set(h.requestId,g),c=function(a){g(new chrome.cast.a.sb(chrome.cast.a.Fa.dc,
a.description,null,a));z(this,h.requestId)}.bind(a));h.type!=chrome.cast.a.D.ca.GAME_MESSAGE&&(d=m.global.setTimeout(m.bind(a.Gb,a,h.requestId),6E4),a.A.set(h.requestId,d));a.l.set(h.requestId,h.type);a.N.sendMessage(chrome.cast.a.ab,h,m.mb,c)};chrome.cast.a.D.Ga.prototype.qa=function(){return this.Ca};m.v(chrome.cast.a.D.Ga.prototype,"getLastUsedPlayerId",chrome.cast.a.D.Ga.prototype.qa);
chrome.cast.a.D.Ga.prototype.ob=function(a,c){if(a!=chrome.cast.a.ab)throw Error("Incoming message has unexpected namespace: "+a);a=m.json.parse(c);c=a.type;if(c!=chrome.cast.a.D.tb.GAME_MANAGER_PROCESSED_RESULT&&c!=chrome.cast.a.D.tb.GAME_MESSAGE)m.log.error(this.Da,"Ignoring message, type is not GAME_MANAGER_PROCESSED_RESULT or  GAME_MESSAGE Type: "+c);else if(a.gameManagerConfig&&a.gameManagerConfig.version!=chrome.cast.a.pc&&(a.statusCode=chrome.cast.a.D.ta.INCORRECT_VERSION,a.errorDescription=
"Incorrect version of the GameManager SDK. Sender: "+chrome.cast.a.pc+"Receiver: "+a.gameManagerConfig.version),a.statusCode!=chrome.cast.a.D.ta.SUCCESS)if(c=a.requestId,this.b.bb(c)){var d=this.b.get(c),e=new chrome.cast.a.jc(a.playerId,a.requestId,a.extraMessageData),f=chrome.cast.a.D.ta.Zg(a.statusCode);d(new chrome.cast.a.sb(f,a.errorDescription,e,null));z(this,c)}else m.log.info(this.Da,"Ignoring error message, no callback for request ID: "+c);else{c=a.playerId;d=a.playerToken;c&&d&&this.Ua.set(c,
d);this.X&&this.X(a);if(a.requestId)if(this.Ca=c||this.Ca,c=a.requestId,d=this.l.get(c),e=this.Va.get(a.requestId),z(this,c),d==chrome.cast.a.D.ca.hc){if(!this.F)throw Error("Got a response for a GET_GAME_MANAGER_CONFIG request but no initialization callback was set.");this.F();this.F=null}else e?e(new chrome.cast.a.jc(a.playerId,a.requestId,a.extraMessageData)):m.log.info(this.Da,"Ignoring message, no callback for request ID: "+c);this.J&&this.J()}};
chrome.cast.a.D.Ga.prototype.Gb=function(a){var c=this.l.get(a),c="Did not receive a response to player request within a time period. request ID="+a+" request type ="+c;if(this.b.bb(a)){var d=this.b.get(a),e=new chrome.cast.Error(chrome.cast.ErrorCode.TIMEOUT,c,null);d(new chrome.cast.a.sb(chrome.cast.a.Fa.dc,c,null,e));z(this,a)}else throw Error(c);};var z=function(a,c){a.Va.remove(c);a.b.remove(c);var d=a.A.get(c);m.global.clearTimeout(d);a.A.remove(c);a.l.remove(c)};m.debug.W={};m.debug.gk=function(){};m.debug.W.nb=[];m.debug.W.Rc=[];m.debug.W.Ke=!1;m.debug.W.register=function(a){m.debug.W.nb[m.debug.W.nb.length]=a;if(m.debug.W.Ke)for(var c=m.debug.W.Rc,d=0;d<c.length;d++)a(m.bind(c[d].b,c[d]))};m.debug.W.Io=function(a){m.debug.W.Ke=!0;for(var c=m.bind(a.b,a),d=0;d<m.debug.W.nb.length;d++)m.debug.W.nb[d](c);m.debug.W.Rc.push(a)};m.debug.W.Rp=function(a){var c=m.debug.W.Rc;a=m.bind(a.l,a);for(var d=0;d<m.debug.W.nb.length;d++)m.debug.W.nb[d](a);c.length--};m.Kg={};m.Kg.tk=function(){};m.R=function(){0!=m.R.l.OFF&&(m.R.b[m.ib(this)]=this);this.l=this.l;this.A=this.A};m.R.l={OFF:0,Wf:1,vk:2};m.R.F=0;m.R.A=!0;m.R.b={};m.R.N=function(){var a=[],c;for(c in m.R.b)m.R.b.hasOwnProperty(c)&&a.push(m.R.b[Number(c)]);return a};m.R.J=function(){m.R.b={}};m.R.prototype.l=!1;m.R.prototype.isDisposed=function(){return this.l};
m.R.prototype.za=function(){if(!this.l&&(this.l=!0,this.vc(),0!=m.R.l.OFF)){var a=m.ib(this);if(0==m.R.l.Wf&&!m.R.b.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");delete m.R.b[a]}};m.R.prototype.vc=function(){if(this.A)for(;this.A.length;)this.A.shift()()};m.R.isDisposed=function(a){return a&&"function"==typeof a.isDisposed?a.isDisposed():!1};m.za=function(a){a&&"function"==typeof a.za&&a.za()};
m.Lg=function(a){for(var c=0,d=arguments.length;c<d;++c){var e=arguments[c];m.S(e)?m.Lg.apply(null,e):m.za(e)}};m.events={};
m.events.Ib={qk:!m.userAgent.la||m.userAgent.Fc(9),lc:!m.userAgent.la||m.userAgent.Fc(9),eg:m.userAgent.la&&!m.userAgent.ja("9"),pk:!m.userAgent.Ra||m.userAgent.ja("528"),nk:m.userAgent.Jb&&m.userAgent.ja("1.9b")||m.userAgent.la&&m.userAgent.ja("8")||m.userAgent.oc&&m.userAgent.ja("9.5")||m.userAgent.Ra&&m.userAgent.ja("528"),sk:m.userAgent.Jb&&!m.userAgent.ja("8")||m.userAgent.la&&!m.userAgent.ja("9"),lm:"ontouchstart"in m.global||!!(m.global.document&&document.documentElement&&"ontouchstart"in document.documentElement)||
!(!m.global.navigator||!m.global.navigator.msMaxTouchPoints)};m.events.rd=function(a){this.id=a};m.events.rd.prototype.toString=function(){return this.id};m.events.Event=function(a,c){this.type=a instanceof m.events.rd?String(a):a;this.b=this.F=c;this.l=!1;this.Te=!0};m.events.Event.prototype.N=function(){this.l=!0};m.events.Event.prototype.J=function(){this.Te=!1};m.events.Event.l=function(a){a.N()};m.events.Event.b=function(a){a.J()};m.events.Qb=function(a){return m.userAgent.Ra?"webkit"+a:m.userAgent.oc?"o"+a.toLowerCase():a.toLowerCase()};
m.events.sd={pj:"click",Pl:"rightclick",Cj:"dblclick",Sk:"mousedown",Wk:"mouseup",Mf:"mouseover",Lf:"mouseout",Vk:"mousemove",Tk:"mouseenter",Uk:"mouseleave",Vl:"selectionchange",Wl:"selectstart",wm:"wheel",Ak:"keypress",zk:"keydown",Bk:"keyup",kj:"blur",ik:"focus",Dj:"deactivate",jk:m.userAgent.la?"focusin":"DOMFocusIn",kk:m.userAgent.la?"focusout":"DOMFocusOut",oj:"change",Ll:"reset",Ul:"select",dm:"submit",uk:"input",Il:"propertychange",Wj:"dragstart",Rj:"drag",Tj:"dragenter",Vj:"dragover",Uj:"dragleave",
Xj:"drop",Sj:"dragend",km:"touchstart",jm:"touchmove",im:"touchend",hm:"touchcancel",jj:"beforeunload",xj:"consolemessage",yj:"contextmenu",Ej:"devicemotion",Fj:"deviceorientation",Lj:"DOMContentLoaded",ERROR:"error",rk:"help",LOAD:"load",Mk:"losecapture",sl:"orientationchange",Kl:"readystatechange",Ml:"resize",Rl:"scroll",om:"unload",lj:"canplay",mj:"canplaythrough",Yj:"durationchange",ak:"emptied",ck:"ended",Gk:"loadeddata",Hk:"loadedmetadata",PAUSE:"pause",xl:"play",PLAYING:"playing",Jl:"ratechange",
Sl:"seeked",Tl:"seeking",bm:"stalled",em:"suspend",gm:"timeupdate",um:"volumechange",vm:"waiting",am:"sourceopen",Zl:"sourceended",Yl:"sourceclosed",Yi:"abort",qm:"update",sm:"updatestart",rm:"updateend",mk:"hashchange",tl:"pagehide",ul:"pageshow",Gl:"popstate",zj:"copy",vl:"paste",Aj:"cut",ej:"beforecopy",fj:"beforecut",hj:"beforepaste",rl:"online",ql:"offline",Pk:"message",wj:"connect",cj:m.events.Qb("AnimationStart"),aj:m.events.Qb("AnimationEnd"),bj:m.events.Qb("AnimationIteration"),mm:m.events.Qb("TransitionEnd"),
zl:"pointerdown",Fl:"pointerup",yl:"pointercancel",Cl:"pointermove",El:"pointerover",Dl:"pointerout",Al:"pointerenter",Bl:"pointerleave",lk:"gotpointercapture",Nk:"lostpointercapture",Xk:"MSGestureChange",Yk:"MSGestureEnd",Zk:"MSGestureHold",al:"MSGestureStart",bl:"MSGestureTap",cl:"MSGotPointerCapture",dl:"MSInertiaStart",el:"MSLostPointerCapture",fl:"MSPointerCancel",gl:"MSPointerDown",hl:"MSPointerEnter",il:"MSPointerHover",jl:"MSPointerLeave",kl:"MSPointerMove",ll:"MSPointerOut",ml:"MSPointerOver",
nl:"MSPointerUp",TEXT:"text",fm:m.userAgent.la?"textinput":"textInput",uj:"compositionstart",vj:"compositionupdate",tj:"compositionend",gj:"beforeinput",fk:"exit",Ek:"loadabort",Fk:"loadcommit",Ik:"loadredirect",Jk:"loadstart",Kk:"loadstop",Nl:"responsive",Xl:"sizechanged",pm:"unresponsive",tm:"visibilitychange",cm:"storage",Qj:"DOMSubtreeModified",Mj:"DOMNodeInserted",Oj:"DOMNodeRemoved",Pj:"DOMNodeRemovedFromDocument",Nj:"DOMNodeInsertedIntoDocument",Jj:"DOMAttrModified",Kj:"DOMCharacterDataModified",
ij:"beforeprint",Zi:"afterprint"};m.events.sa=function(a,c){m.events.Event.call(this,a?a.type:"");this.relatedTarget=this.b=this.F=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.A=null;a&&this.init(a,c)};m.Ta(m.events.sa,m.events.Event);m.events.sa.l={Ck:0,Qk:1,Ol:2};m.events.sa.b=[1,4,2];
m.events.sa.prototype.init=function(a,c){var d=this.type=a.type,e=a.changedTouches?a.changedTouches[0]:null;this.F=a.target||a.srcElement;this.b=c;(c=a.relatedTarget)?m.userAgent.Jb&&(m.va.zg(c)||(c=null)):d==m.events.sd.Mf?c=a.fromElement:d==m.events.sd.Lf&&(c=a.toElement);this.relatedTarget=c;m.ye(e)?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:
e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.A=a;a.defaultPrevented&&this.J()};m.events.sa.prototype.N=function(){m.events.sa.Ya.N.call(this);this.A.stopPropagation?this.A.stopPropagation():this.A.cancelBubble=!0};
m.events.sa.prototype.J=function(){m.events.sa.Ya.J.call(this);var a=this.A;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,m.events.Ib.eg)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(c){}};m.events.aa=function(){};m.events.aa.J="closure_listenable_"+(1E6*Math.random()|0);m.events.aa.X=function(){m.events.EventTarget.prototype[m.events.aa.J]=!0};m.events.aa.b=function(a){return!(!a||!a[m.events.aa.J])};m.events.Kb=function(){};m.events.Kb.b=0;m.events.Kb.l=function(){return++m.events.Kb.b};m.events.Listener=function(a,c,d,e,f,g){this.listener=a;this.proxy=c;this.src=d;this.type=e;this.capture=!!f;this.Rb=g;this.key=m.events.Kb.l();this.removed=this.Mb=!1};m.events.Listener.b=!1;var C=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Rb=null};m.events.ea=function(a){this.src=a;this.b={};this.l=0};m.events.ea.prototype.add=function(a,c,d,e,f){var g=a.toString();a=this.b[g];a||(a=this.b[g]=[],this.l++);var h=m.events.ea.b(a,c,e,f);-1<h?(c=a[h],d||(c.Mb=!1)):(c=new m.events.Listener(c,null,this.src,g,!!e,f),c.Mb=d,a.push(c));return c};
m.events.ea.prototype.remove=function(a,c,d,e){a=a.toString();if(!(a in this.b))return!1;var f=this.b[a];c=m.events.ea.b(f,c,d,e);return-1<c?(C(f[c]),m.c.Wa(f,c),0==f.length&&(delete this.b[a],this.l--),!0):!1};var D=function(a,c){var d=c.type;if(!(d in a.b))return!1;var e=m.c.remove(a.b[d],c);e&&(C(c),0==a.b[d].length&&(delete a.b[d],a.l--));return e};
m.events.ea.prototype.removeAll=function(a){a=a&&a.toString();var c=0,d;for(d in this.b)if(!a||d==a){for(var e=this.b[d],f=0;f<e.length;f++)++c,C(e[f]);delete this.b[d];this.l--}return c};m.events.ea.prototype.yb=function(a,c){a=this.b[a.toString()];var d=[];if(a)for(var e=0;e<a.length;++e){var f=a[e];f.capture==c&&d.push(f)}return d};m.events.ea.prototype.gb=function(a,c,d,e){a=this.b[a.toString()];var f=-1;a&&(f=m.events.ea.b(a,c,d,e));return-1<f?a[f]:null};
m.events.ea.prototype.hasListener=function(a,c){var d=m.ra(a),e=d?a.toString():"",f=m.ra(c);return m.object.some(this.b,function(a){for(var g=0;g<a.length;++g)if(!(d&&a[g].type!=e||f&&a[g].capture!=c))return!0;return!1})};m.events.ea.b=function(a,c,d,e){for(var f=0;f<a.length;++f){var g=a[f];if(!g.removed&&g.listener==c&&g.capture==!!d&&g.Rb==e)return f}return-1};m.events.mc="closure_lm_"+(1E6*Math.random()|0);m.events.li="on";m.events.Sc={};m.events.ec={Qf:0,Rf:1,Sf:2};m.events.cc=2;m.events.Kc=0;m.events.listen=function(a,c,d,e,f){if(m.isArray(c)){for(var g=0;g<c.length;g++)m.events.listen(a,c[g],d,e,f);return null}d=m.events.Xb(d);return m.events.aa.b(a)?a.listen(c,d,e,f):m.events.Fe(a,c,d,!1,e,f)};
m.events.Fe=function(a,c,d,e,f,g){if(!c)throw Error("Invalid event type");var h=!!f;if(h&&!m.events.Ib.lc){if(m.events.cc==m.events.ec.Qf)return m.j.Pb("Can not register capture listener in IE8-."),null;if(m.events.cc==m.events.ec.Rf)return null}var k=m.events.Ma(a);k||(a[m.events.mc]=k=new m.events.ea(a));d=k.add(c,d,e,f,g);if(d.proxy)return d;e=m.events.oh();d.proxy=e;e.src=a;e.listener=d;if(a.addEventListener)a.addEventListener(c.toString(),e,h);else if(a.attachEvent)a.attachEvent(m.events.ee(c.toString()),
e);else throw Error("addEventListener and attachEvent are unavailable.");m.events.Kc++;return d};m.events.oh=function(){var a=m.events.Ab,c=m.events.Ib.lc?function(d){return a.call(c.src,c.listener,d)}:function(d){d=a.call(c.src,c.listener,d);if(!d)return d};return c};m.events.Jc=function(a,c,d,e,f){if(m.isArray(c)){for(var g=0;g<c.length;g++)m.events.Jc(a,c[g],d,e,f);return null}d=m.events.Xb(d);return m.events.aa.b(a)?a.Jc(c,d,e,f):m.events.Fe(a,c,d,!0,e,f)};
m.events.Ao=function(a,c,d,e,f){c.listen(a,d,e,f)};m.events.pb=function(a,c,d,e,f){if(m.isArray(c)){for(var g=0;g<c.length;g++)m.events.pb(a,c[g],d,e,f);return null}d=m.events.Xb(d);if(m.events.aa.b(a))return a.pb(c,d,e,f);if(!a)return!1;if(a=m.events.Ma(a))if(c=a.gb(c,d,!!e,f))return m.events.qb(c);return!1};
m.events.qb=function(a){if(m.Bb(a)||!a||a.removed)return!1;var c=a.src;if(m.events.aa.b(c))return c.qb(a);var d=a.type,e=a.proxy;c.removeEventListener?c.removeEventListener(d,e,a.capture):c.detachEvent&&c.detachEvent(m.events.ee(d),e);m.events.Kc--;(d=m.events.Ma(c))?(D(d,a),0==d.l&&(d.src=null,c[m.events.mc]=null)):C(a);return!0};m.events.Qp=function(a,c,d,e,f){c.pb(a,d,e,f)};
m.events.removeAll=function(a,c){if(!a)return 0;if(m.events.aa.b(a))return a.na?a.na.removeAll(c):0;a=m.events.Ma(a);if(!a)return 0;var d=0;c=c&&c.toString();for(var e in a.b)if(!c||e==c)for(var f=a.b[e].concat(),g=0;g<f.length;++g)m.events.qb(f[g])&&++d;return d};m.events.yb=function(a,c,d){return m.events.aa.b(a)?a.yb(c,d):a?(a=m.events.Ma(a))?a.yb(c,d):[]:[]};m.events.gb=function(a,c,d,e,f){d=m.events.Xb(d);e=!!e;return m.events.aa.b(a)?a.gb(c,d,e,f):a?(a=m.events.Ma(a))?a.gb(c,d,e,f):null:null};
m.events.hasListener=function(a,c,d){if(m.events.aa.b(a))return a.hasListener(c,d);a=m.events.Ma(a);return!!a&&a.hasListener(c,d)};m.events.Mg=function(a){var c=[],d;for(d in a)a[d]&&a[d].id?c.push(d+" = "+a[d]+" ("+a[d].id+")"):c.push(d+" = "+a[d]);return c.join("\n")};m.events.ee=function(a){return a in m.events.Sc?m.events.Sc[a]:m.events.Sc[a]=m.events.li+a};m.events.eb=function(a,c,d,e){return m.events.aa.b(a)?a.eb(c,d,e):m.events.Ac(a,c,d,e)};
m.events.Ac=function(a,c,d,e){var f=!0;if(a=m.events.Ma(a))if(c=a.b[c.toString()])for(c=c.concat(),a=0;a<c.length;a++){var g=c[a];g&&g.capture==d&&!g.removed&&(g=m.events.zc(g,e),f=f&&!1!==g)}return f};m.events.zc=function(a,c){var d=a.listener,e=a.Rb||a.src;a.Mb&&m.events.qb(a);return d.call(e,c)};m.events.Pn=function(){return m.events.Kc};m.events.dispatchEvent=function(a,c){return a.dispatchEvent(c)};m.events.Xo=function(a){m.events.Ab=a.Yo(m.events.Ab)};
m.events.Ab=function(a,c){if(a.removed)return!0;if(!m.events.Ib.lc){var d=c||m.de("window.event");c=new m.events.sa(d,this);var e=!0;if(m.events.cc==m.events.ec.Sf){if(!m.events.Oh(d)){m.events.bi(d);for(var d=[],f=c.b;f;f=f.parentNode)d.push(f);a=a.type;for(f=d.length-1;!c.l&&0<=f;f--){c.b=d[f];var g=m.events.Ac(d[f],a,!0,c),e=e&&g}for(f=0;!c.l&&f<d.length;f++)c.b=d[f],g=m.events.Ac(d[f],a,!1,c),e=e&&g}}else e=m.events.zc(a,c);return e}return m.events.zc(a,new m.events.sa(c,this))};
m.events.bi=function(a){var c=!1;if(0==a.keyCode)try{a.keyCode=-1;return}catch(d){c=!0}if(c||void 0==a.returnValue)a.returnValue=!0};m.events.Oh=function(a){return 0>a.keyCode||void 0!=a.returnValue};m.events.Qi=0;m.events.Qn=function(a){return a+"_"+m.events.Qi++};m.events.Ma=function(a){a=a[m.events.mc];return a instanceof m.events.ea?a:null};m.events.nc="__closure_events_fn_"+(1E9*Math.random()>>>0);
m.events.Xb=function(a){if(m.Ba(a))return a;a[m.events.nc]||(a[m.events.nc]=function(c){return a.handleEvent(c)});return a[m.events.nc]};m.debug.W.register(function(a){m.events.Ab=a(m.events.Ab)});m.events.EventTarget=function(){m.R.call(this);this.na=new m.events.ea(this);this.N=this;this.F=null};m.Ta(m.events.EventTarget,m.R);m.events.aa.X();m.events.EventTarget.l=1E3;b=m.events.EventTarget.prototype;b.addEventListener=function(a,c,d,e){m.events.listen(this,a,c,d,e)};b.removeEventListener=function(a,c,d,e){m.events.pb(this,a,c,d,e)};b.dispatchEvent=function(a){var c,d=this.F;if(d)for(c=[];d;d=d.F)c.push(d);return m.events.EventTarget.b(this.N,a,c)};
b.vc=function(){m.events.EventTarget.Ya.vc.call(this);this.na&&this.na.removeAll(void 0);this.F=null};b.listen=function(a,c,d,e){return this.na.add(String(a),c,!1,d,e)};b.Jc=function(a,c,d,e){return this.na.add(String(a),c,!0,d,e)};b.pb=function(a,c,d,e){return this.na.remove(String(a),c,d,e)};b.qb=function(a){return D(this.na,a)};
b.eb=function(a,c,d){a=this.na.b[String(a)];if(!a)return!0;a=a.concat();for(var e=!0,f=0;f<a.length;++f){var g=a[f];if(g&&!g.removed&&g.capture==c){var h=g.listener,k=g.Rb||g.src;g.Mb&&this.qb(g);e=!1!==h.call(k,d)&&e}}return e&&0!=d.Te};b.yb=function(a,c){return this.na.yb(String(a),c)};b.gb=function(a,c,d,e){return this.na.gb(String(a),c,d,e)};b.hasListener=function(a,c){return this.na.hasListener(m.ra(a)?String(a):void 0,c)};
m.events.EventTarget.b=function(a,c,d){var e=c.type||c;if(m.I(c))c=new m.events.Event(c,a);else if(c instanceof m.events.Event)c.F=c.F||a;else{var f=c;c=new m.events.Event(e,a);m.object.extend(c,f)}var f=!0,g;if(d)for(var h=d.length-1;!c.l&&0<=h;h--)g=c.b=d[h],f=g.eb(e,!0,c)&&f;c.l||(g=c.b=a,f=g.eb(e,!0,c)&&f,c.l||(f=g.eb(e,!1,c)&&f));if(d)for(h=0;!c.l&&h<d.length;h++)g=c.b=d[h],f=g.eb(e,!1,c)&&f;return f};m.Vc("goog.testing.stacktrace");m.h={};m.h.m={};m.h.m.Za=function(a,c,d,e){this.l=a;this.b=c;this.A=d;this.F=e};var E=function(a){return!a.b||"[object Object]"==a.l},F=function(a){var c=m.h.m.Eh,d=m.h.m.hi,d=[a.l?c(a.l)+".":"",a.b?c(d(a.b)):"anonymous",a.A?" [as "+c(d(a.A))+"]":""];a.F&&(d.push(" at "),d.push(c(a.F)));return d.join("")};m.h.m.Jf=20;m.h.m.Kf=5E5;m.h.m.da="[a-zA-Z_$][\\w$]*";m.h.m.kg="(?: \\[as ("+m.h.m.da+")\\])?";
m.h.m.lg="(?:((?:new )?(?:\\[object Object\\]|"+m.h.m.da+"(?:\\."+m.h.m.da+")*))\\.)?";m.h.m.ng="(?:new )?(?:"+m.h.m.da+"|<anonymous>)";m.h.m.mg=" "+m.h.m.lg+"("+m.h.m.ng+")"+m.h.m.kg;m.h.m.rc="((?:http|https|file)://[^\\s)]+|javascript:.*)";m.h.m.kf=" (?:\\(unknown source\\)|\\(native\\)|\\((.+)\\)|(.+))";m.h.m.og=new RegExp("^    at(?:"+m.h.m.mg+")?"+m.h.m.kf+"$");m.h.m.uf="("+m.h.m.da+"(?:\\."+m.h.m.da+")*)?(\\(.*\\))?@";m.h.m.vf=new RegExp("^"+m.h.m.uf+"(?::0|"+m.h.m.rc+")$");
m.h.m.Tf="<anonymous function(?:\\: (?:("+m.h.m.da+"(?:\\."+m.h.m.da+")*)\\.)?("+m.h.m.da+"))?>";m.h.m.Uf="(?:(?:("+m.h.m.da+")|"+m.h.m.Tf+")(\\(.*\\)))?@";m.h.m.Vf=new RegExp("^"+m.h.m.Uf+m.h.m.rc+"?$");m.h.m.xf=new RegExp("^function ("+m.h.m.da+")");m.h.m.Ef="("+m.h.m.da+"(?:\\."+m.h.m.da+")*(?:\\s+\\w+)*)";m.h.m.Ff=new RegExp("^   at "+m.h.m.Ef+"\\s*\\((eval code:[^)]*|Unknown script code:[^)]*|"+m.h.m.rc+")\\)?$");
m.h.m.Sg=function(){for(var a=[],c=arguments.callee.caller,d=0;c&&d<m.h.m.Jf;){var e=Function.prototype.toString.call(c).match(m.h.m.xf);a.push(new m.h.m.Za("",e?e[1]:"","",""));try{c=c.caller}catch(f){break}d++}return a};
m.h.m.mi=function(a){var c=a.match(m.h.m.og);return c?new m.h.m.Za(c[1]||"",c[2]||"",c[3]||"",c[4]||c[5]||c[6]||""):a.length>m.h.m.Kf?null:(c=a.match(m.h.m.vf))?new m.h.m.Za("",c[1]||"","",c[3]||""):(c=a.match(m.h.m.Vf))?new m.h.m.Za(c[2]||"",c[1]||c[3]||"","",c[5]||""):(c=a.match(m.h.m.Ff))?new m.h.m.Za("",c[1]||"","",c[2]||""):null};m.h.m.Hi=function(a){m.h.m.Od=a};m.h.m.hi=function(a){return m.h.m.Od?m.h.m.Od(a):a};
m.h.m.Eh=function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")};m.h.m.Wd=function(a){for(var c=a.length-1;a[c]&&E(a[c]);)c--;for(var d=-1,e=0;e<a.length;e++)if(a[e]&&"_assert"==a[e].b){d=e;break}for(var f=[],e=d+1;e<=c;e++)f.push("> "),a[e]?f.push(F(a[e])):f.push("(unknown)"),f.push("\n");return f.join("")};m.h.m.Pe=function(a){a=a.replace(/\s*$/,"").split("\n");for(var c=[],d=0;d<a.length;d++)c.push(m.h.m.mi(a[d]));return c};
m.h.m.Vm=function(a){a=m.h.m.Pe(a);return m.h.m.Wd(a)};m.h.m.ih=function(){var a=Error();if(a.stack)return a.stack;try{null.x()}catch(c){return c.stack}return""};m.h.m.get=function(){var a=m.h.m.ih(),c;a?m.isArray(a)?c=m.h.m.xg(a):c=m.h.m.Pe(a):c=m.h.m.Sg();return m.h.m.Wd(c)};m.h.m.xg=function(a){for(var c=[],d=0;d<a.length;d++){var e=a[d],f=e.getFunctionName()||"unknown",g=e.getFileName(),e=g?g+":"+e.getLineNumber()+":"+e.getColumnNumber():"unknown";c.push(new m.h.m.Za("",f,"",e))}return c};
m.G("setDeobfuscateFunctionName",m.h.m.Hi);m.Vc();m.h.ub=function(a,c){this.Lh=!0;this.message=(a?a:"")+(a&&c?"\n":"")+(c?c:"");m.h.m.get();this.comment=a||null;Error.captureStackTrace?Error.captureStackTrace(this,m.h.ub):this.stack=Error().stack||""};m.Ta(m.h.ub,Error);m.h.ub.prototype.toString=function(){return this.message};m.h.j={};m.Vc();var G=function(a,c){return a==c},H=function(a,c){return a.toString()===c.toString()},I={String:G,Number:G,Boolean:G,Date:function(a,c){return a.getTime()==c.getTime()},RegExp:H,Function:H};m.h.j.Ne=function(a,c,d){return Math.abs(a-c)<=d};m.h.j.pi={Number:m.h.j.Ne};
var _trueTypeOf=function(a){var c=typeof a;try{switch(c){case "object":if(null==a){c="null";break}case "function":switch(a.constructor){case (new String("")).constructor:c="String";break;case (new Boolean(!0)).constructor:c="Boolean";break;case (new Number(0)).constructor:c="Number";break;case [].constructor:c="Array";break;case RegExp().constructor:c="RegExp";break;case (new Date).constructor:c="Date";break;case Function:c="Function";break;default:var d=a.constructor.toString().match(/function\s*([^( ]+)\(/);
d&&(c=d[1])}}}catch(e){}finally{c=c.substr(0,1).toUpperCase()+c.substr(1)}return c},_displayStringForValue=function(a){var c;try{c="<"+String(a)+">"}catch(d){c="<toString failed: "+d.message+">"}null!==a&&void 0!==a&&(c+=" ("+_trueTypeOf(a)+")");return c},J=function(a){m.h.j.Eb("Call to fail()",a)},K=function(a,c){return c.length==a+1?c[0]:null},L=function(a,c,d){return d.length==c+1?d[a]:d[a-1]},_validateArguments=function(a,c){_assert(null,c.length==a||c.length==a+1&&m.I(c[0]),"Incorrect arguments passed to assert function")},
_getCurrentTestCase=function(){var a=m.global.G_testRunner;return a?a.Gp:null},_assert=function(a,c,d){c||m.h.j.Eb(a,d)};
m.h.j.La=function(a,c){var d="Expected "+_displayStringForValue(a)+" but was "+_displayStringForValue(c);if("string"==typeof a&&"string"==typeof c){for(var e=Math.min(a.length,c.length),f=0;f<e&&a.charAt(f)==c.charAt(f);)f++;for(var g=0;g<e&&a.charAt(a.length-g-1)==c.charAt(c.length-g-1);)g++;f+g>e&&(g=0);if(2<f||2<g)e=function(a){var c=Math.max(0,f-2),d=Math.min(a.length,a.length-(g-2));return(0<c?"...":"")+a.substring(c,d)+(d<a.length?"...":"")},d+="\nDifference was at position "+f+". Expected ["+
e(a)+"] vs. actual ["+e(c)+"]"}return d};
var M=function(a,c){_validateArguments(1,arguments);var d=K(1,arguments),e=L(1,1,arguments);_assert(d,m.Sb(e),"Bad argument to assert(boolean)");_assert(d,e,"Call to assert(boolean) with false")},N=function(a,c){_validateArguments(1,arguments);var d=K(1,arguments),e=L(1,1,arguments);_assert(d,m.Sb(e),"Bad argument to assertTrue(boolean)");_assert(d,e,"Call to assertTrue(boolean) with false")},O=function(a,c,d){_validateArguments(2,arguments);var e=L(1,2,arguments),f=L(2,2,arguments);_assert(K(2,arguments),
e===f,m.h.j.La(e,f))},P=function(a,c){_validateArguments(1,arguments);_assert(K(1,arguments),null!==L(1,1,arguments),"Expected not to be "+_displayStringForValue(null))},Q=function(a,c){_validateArguments(1,arguments);_assert(K(1,arguments),void 0!==L(1,1,arguments),"Expected not to be "+_displayStringForValue(void 0))};m.h.j.yg=function(a){var c=m.global.G_testRunner,d=c.logTestFailure;try{c.logTestFailure=void 0,a()}finally{c.logTestFailure=d}};m.h.j.fc=null;m.h.j.gc="";
m.h.j.Sa=function(a,c,d){function e(a,c,d){for(var e=0;e<h.length;++e){var q=h[e]===a,l=k[e]===c;if(q||l){q&&l||g.push("Asymmetric cycle detected at "+d);return}}h.push(a);k.push(c);f(a,c,d);h.pop();k.pop()}function f(a,c,d){if(a!==c){var f=_trueTypeOf(a),h=_trueTypeOf(c);if(f==h){var k="Array"==f,q=l(f,a,c);if(q!=m.h.j.fc)q!=m.h.j.gc&&g.push(d+": "+q);else if(k&&a.length!=c.length)g.push(d+": Expected "+a.length+"-element array but got a "+c.length+"-element array");else if("String"==f)a!=c&&g.push(d+
': Expected String "'+a+'" but got "'+c+'"');else{var u=d+(k?"[%s]":d?".%s":"%s");if("undefined"!=typeof Map&&a instanceof Map||"undefined"!=typeof Set&&a instanceof Set)a.forEach(function(a,f){c.has(f)?c.get&&e(a,c.get(f),u.replace("%s",f)):g.push(f+" not present in actual "+(d||h))}),c.forEach(function(c,e){a.has(e)||g.push(e+" not present in expected "+(d||f))});else if(a.__iterator__)m.Ba(a.ga)?a.ga(c)||g.push("equals() returned false for "+(d||f)):a.M?e(a.M,c.M,u.replace("%s","map_")):g.push("unable to check "+
(d||f)+" for equality: it has an iterator we do not know how to handle. please add an equals method");else{for(var r in a)k&&m.h.j.oe(r)||(r in c?e(a[r],c[r],u.replace("%s",r)):g.push("property "+r+" not present in actual "+(d||h)));for(r in c)k&&m.h.j.oe(r)||r in a||g.push("property "+r+" not present in expected "+(d||f));if(k)for(r=0;r<a.length;r++)e(a[r],c[r],u.replace("%s",String(r)))}}}else g.push(d+" "+m.h.j.La(a,c))}}var g=[],h=[],k=[],l=d||function(a,c,d){return(a=I[a])?a(c,d)?m.h.j.gc:m.h.j.La(c,
d):m.h.j.fc};e(a,c,"");return 0==g.length?null:m.h.j.La(a,c)+"\n   "+g.join("\n   ")};var S=function(a,c,d){_validateArguments(2,arguments);var e=K(2,arguments)?K(2,arguments):"",f=m.h.j.Sa(L(1,2,arguments),L(2,2,arguments));_assert(e,!f,f)},T=function(a,c,d,e){_validateArguments(3,arguments);var f=L(1,3,arguments),g=L(2,3,arguments),h=L(3,3,arguments);_assert(K(3,arguments),m.h.j.Ne(f,g,h),"Expected "+f+", but got "+g+" which was more than "+h+" away")};
m.h.j.Zc=function(a){for(var c=[],d=0;d<a.length;d++)c[d]=a[d];return c};m.h.j.ke=function(a,c){if(a.indexOf)return a.indexOf(c);for(var d=0;d<a.length;d++)if(a[d]===c)return d;return-1};m.h.j.Ld=function(a,c){return-1!=m.h.j.ke(a,c)};var U=function(a){var c=document.createElement("DIV");c.innerHTML=a;return c.innerHTML.replace(/^\s+|\s+$/g,"")};
m.h.j.Eb=function(a,c){a=new m.h.ub(a,c);if(c=_getCurrentTestCase())c.ap(a);else throw m.global.console.error("Failed to save thrown exception: no test case is installed."),a;};m.h.j.oe=function(a){return(a|0)==a};m.G("fail",J);m.G("assert",M);
m.G("assertThrows",function(a,c){_validateArguments(1,arguments);var d=L(1,1,arguments),e=K(1,arguments);_assert(e,"function"==typeof d,"Argument passed to assertThrows is not a function");try{d()}catch(f){return f&&m.I(f.stacktrace)&&m.I(f.message)&&(d=f.message.length-f.stacktrace.length,f.message.indexOf(f.stacktrace,d)==d&&(f.message=f.message.substr(0,d-14))),d=_getCurrentTestCase(),f&&f.isJsUnitException&&d&&d.Bn&&m.h.j.Eb(e,"Function passed to assertThrows caught a JsUnitException (usually from an assert or call to fail()). If this is expected, use assertThrowsJsUnitException instead."),
f}m.h.j.Eb(e,"No exception thrown from function passed to assertThrows")});m.G("assertNotThrows",function(a,c){_validateArguments(1,arguments);var d=K(1,arguments),e=L(1,1,arguments);_assert(d,"function"==typeof e,"Argument passed to assertNotThrows is not a function");try{return e()}catch(f){m.h.j.Eb((d?d+"\n":"")+"A non expected exception was thrown from function passed to assertNotThrows",f.stack||f.stacktrace||f.toString())}});
m.G("assertThrowsJsUnitException",function(a,c){try{m.h.j.yg(a)}catch(d){return(a=_getCurrentTestCase())?a.Xn(d):m.global.console.error("Failed to remove expected exception: no test case is installed."),d.Lh||J("Expected a JsUnitException"),"undefined"!=typeof c&&d.message!=c&&J("Expected message ["+c+"] but got ["+d.message+"]"),d}a="Expected a failure";"undefined"!=typeof c&&(a+=": "+c);throw new m.h.ub(a);});m.G("assertTrue",N);
m.G("assertFalse",function(a,c){_validateArguments(1,arguments);var d=K(1,arguments),e=L(1,1,arguments);_assert(d,m.Sb(e),"Bad argument to assertFalse(boolean)");_assert(d,!e,"Call to assertFalse(boolean) with true")});m.G("assertEquals",O);m.G("assertNotEquals",function(a,c,d){_validateArguments(2,arguments);var e=L(2,2,arguments);_assert(K(2,arguments),L(1,2,arguments)!==e,"Expected not to be "+_displayStringForValue(e))});
m.G("assertNull",function(a,c){_validateArguments(1,arguments);var d=L(1,1,arguments);_assert(K(1,arguments),null===d,m.h.j.La(null,d))});m.G("assertNotNull",P);m.G("assertUndefined",function(a,c){_validateArguments(1,arguments);var d=L(1,1,arguments);_assert(K(1,arguments),void 0===d,m.h.j.La(void 0,d))});m.G("assertNotUndefined",Q);m.G("assertNotNullNorUndefined",function(a,c){_validateArguments(1,arguments);P.apply(null,arguments);Q.apply(null,arguments)});
m.G("assertNonEmptyString",function(a,c){_validateArguments(1,arguments);var d=L(1,1,arguments);_assert(K(1,arguments),void 0!==d&&null!==d&&"string"==typeof d&&""!==d,"Expected non-empty string but was "+_displayStringForValue(d))});m.G("assertNaN",function(a,c){_validateArguments(1,arguments);_assert(K(1,arguments),isNaN(L(1,1,arguments)),"Expected NaN")});m.G("assertNotNaN",function(a,c){_validateArguments(1,arguments);_assert(K(1,arguments),!isNaN(L(1,1,arguments)),"Expected not NaN")});
m.G("assertObjectEquals",S);m.G("assertObjectRoughlyEquals",function(a,c,d,e){_validateArguments(3,arguments);var f=L(3,3,arguments),g=K(3,arguments)?K(3,arguments):"",h=m.h.j.Sa(L(1,3,arguments),L(2,3,arguments),function(a,c,d){return(a=m.h.j.pi[a])?a(c,d,f)?m.h.j.gc:m.h.j.La(c,d)+" which was more than "+f+" away":m.h.j.fc});_assert(g,!h,h)});
m.G("assertObjectNotEquals",function(a,c,d){_validateArguments(2,arguments);var e=K(2,arguments)?K(2,arguments):"",f=m.h.j.Sa(L(1,2,arguments),L(2,2,arguments));_assert(e,f,"Objects should not be equal")});
m.G("assertArrayEquals",function(a,c,d){_validateArguments(2,arguments);var e=L(1,2,arguments),f=L(2,2,arguments),g=K(2,arguments)?K(2,arguments):"",h=_trueTypeOf(e);_assert(g,"Array"==h,"Expected an array for assertArrayEquals but found a "+h);h=_trueTypeOf(f);_assert(g,"Array"==h,"Expected an array for assertArrayEquals but found a "+h);S(g,Array.prototype.concat.call(e),Array.prototype.concat.call(f))});
m.G("assertElementsEquals",function(a,c,d){_validateArguments(2,arguments);var e=L(1,2,arguments),f=L(2,2,arguments),g=K(2,arguments)?K(2,arguments):"";if(e){O("length mismatch: "+g,e.length,f.length);for(var h=0;h<e.length;++h)O("mismatch at index "+h+": "+g,e[h],f[h])}else M(g,!f)});
m.G("assertElementsRoughlyEqual",function(a,c,d,e){_validateArguments(3,arguments);var f=L(1,3,arguments),g=L(2,3,arguments),h=L(3,3,arguments),k=K(3,arguments)?K(3,arguments):"";if(f){O("length mismatch: "+k,f.length,g.length);for(var l=0;l<f.length;++l)T(k,f[l],g[l],h)}else M(k,!g)});
m.G("assertSameElements",function(a,c,d){_validateArguments(2,arguments);var e=L(1,2,arguments),f=L(2,2,arguments),g=K(2,arguments);N("Bad arguments to assertSameElements(opt_message, expected: ArrayLike, actual: ArrayLike)",m.S(e)&&m.S(f));e=m.h.j.Zc(e);f=m.h.j.Zc(f);_assert(g,e.length==f.length,"Expected "+e.length+" elements: ["+e+"], got "+f.length+" elements: ["+f+"]");for(var h=m.h.j.Zc(e),k=0;k<f.length;k++){var l=m.h.j.ke(h,f[k]);_assert(g,-1!=l,"Expected ["+e+"], got ["+f+"]");h.splice(l,
1)}});m.G("assertEvaluatesToTrue",function(a,c){_validateArguments(1,arguments);L(1,1,arguments)||_assert(K(1,arguments),!1,"Expected to evaluate to true")});m.G("assertEvaluatesToFalse",function(a,c){_validateArguments(1,arguments);L(1,1,arguments)&&_assert(K(1,arguments),!1,"Expected to evaluate to false")});m.G("assertHTMLEquals",function(a,c,d){_validateArguments(2,arguments);var e=L(2,2,arguments),f=U(L(1,2,arguments)),e=U(e);_assert(K(2,arguments),f===e,m.h.j.La(f,e))});
m.G("assertHashEquals",function(a,c,d){_validateArguments(2,arguments);var e=L(1,2,arguments),f=L(2,2,arguments),g=K(2,arguments),h;for(h in e)_assert(g,h in f,"Expected hash had key "+h+" that was not found"),_assert(g,e[h]==f[h],"Value for key "+h+" mismatch - expected = "+e[h]+", actual = "+f[h]);for(h in f)_assert(g,h in e,"Actual hash had key "+h+" that was not expected")});m.G("assertRoughlyEquals",T);
m.G("assertContains",function(a,c,d){_validateArguments(2,arguments);var e=L(1,2,arguments),f=L(2,2,arguments);_assert(K(2,arguments),m.h.j.Ld(f,e),"Expected '"+f+"' to contain '"+e+"'")});m.G("assertNotContains",function(a,c,d){_validateArguments(2,arguments);var e=L(1,2,arguments),f=L(2,2,arguments);_assert(K(2,arguments),!m.h.j.Ld(f,e),"Expected '"+f+"' not to contain '"+e+"'")});
m.G("assertRegExp",function(a,c,d){_validateArguments(2,arguments);var e=L(1,2,arguments),f=L(2,2,arguments);"string"==typeof e&&(e=new RegExp(e));_assert(K(2,arguments),e.test(f),"Expected '"+f+"' to match RegExp "+e.toString())});chrome.cast.a.ic={UNKNOWN:"unknown",STATE_CHANGED:"state_changed",GAME_MESSAGE_RECEIVED:"game_message_received"};m.v(chrome.cast.a,"GameManagerEventType",chrome.cast.a.ic);chrome.cast.a.Bf=function(){};m.v(chrome.cast.a,"GameManagerEvent",chrome.cast.a.Bf);chrome.cast.a.xd=function(a,c){this.type=chrome.cast.a.ic.STATE_CHANGED;this.currentState=a;this.previousState=c};m.v(chrome.cast.a,"GameManagerStateChangedEvent",chrome.cast.a.xd);
chrome.cast.a.ud=function(a,c){this.type=chrome.cast.a.ic.GAME_MESSAGE_RECEIVED;this.playerId=a;this.gameMessage=c};m.v(chrome.cast.a,"GameManagerGameMessageReceivedEvent",chrome.cast.a.ud);chrome.cast.a.vd=function(a){this.gameManagerClient=a};m.v(chrome.cast.a,"GameManagerInstanceResult",chrome.cast.a.vd);chrome.cast.a.u=function(a,c,d,e,f,g,h){this.N=a;this.X=c;this.J=d;this.F=e;this.l=f;this.A=g;this.b=new m.w.Map;for(a=0;a<h.length;a++)c=h[a],this.b.set(c.l,c)};m.v(chrome.cast.a,"GameManagerState",chrome.cast.a.u);chrome.cast.a.u.prototype.Tg=function(){return this.N};m.v(chrome.cast.a.u.prototype,"getApplicationName",chrome.cast.a.u.prototype.Tg);chrome.cast.a.u.prototype.hh=function(){return this.X};m.v(chrome.cast.a.u.prototype,"getMaxPlayers",chrome.cast.a.u.prototype.hh);
chrome.cast.a.u.prototype.gh=function(){return this.J};m.v(chrome.cast.a.u.prototype,"getLobbyState",chrome.cast.a.u.prototype.gh);chrome.cast.a.u.prototype.dh=function(){return this.F};m.v(chrome.cast.a.u.prototype,"getGameplayState",chrome.cast.a.u.prototype.dh);chrome.cast.a.u.prototype.Yg=function(){return this.l};m.v(chrome.cast.a.u.prototype,"getGameData",chrome.cast.a.u.prototype.Yg);chrome.cast.a.u.prototype.bh=function(){return this.A};m.v(chrome.cast.a.u.prototype,"getGameStatusText",chrome.cast.a.u.prototype.bh);
chrome.cast.a.u.prototype.Cc=function(){return this.b.P()};m.v(chrome.cast.a.u.prototype,"getPlayers",chrome.cast.a.u.prototype.Cc);chrome.cast.a.u.prototype.ua=function(a){return this.b.get(a,null)};m.v(chrome.cast.a.u.prototype,"getPlayer",chrome.cast.a.u.prototype.ua);chrome.cast.a.u.prototype.Wg=function(){for(var a=[],c=this.b.P(),d=0;d<c.length;d++){var e=c[d];e.A&&a.push(e)}return a};m.v(chrome.cast.a.u.prototype,"getControllablePlayers",chrome.cast.a.u.prototype.Wg);
chrome.cast.a.u.prototype.Vg=function(){for(var a=[],c=this.b.P(),d=0;d<c.length;d++){var e=c[d];e.isConnected()&&a.push(e)}return a};m.v(chrome.cast.a.u.prototype,"getConnectedPlayers",chrome.cast.a.u.prototype.Vg);chrome.cast.a.u.prototype.Ug=function(){for(var a=[],c=this.b.P(),d=0;d<c.length;d++){var e=c[d];e.isConnected()&&e.A&&a.push(e)}return a};m.v(chrome.cast.a.u.prototype,"getConnectedControllablePlayers",chrome.cast.a.u.prototype.Ug);
chrome.cast.a.u.prototype.nh=function(a){for(var c=[],d=this.b.P(),e=0;e<d.length;e++){var f=d[e];f.b==a&&c.push(f)}return c};m.v(chrome.cast.a.u.prototype,"getPlayersInState",chrome.cast.a.u.prototype.nh);chrome.cast.a.u.prototype.zh=function(a){return this.J!=a.J};m.v(chrome.cast.a.u.prototype,"hasLobbyStateChanged",chrome.cast.a.u.prototype.zh);chrome.cast.a.u.prototype.yh=function(a){return this.F!=a.F};m.v(chrome.cast.a.u.prototype,"hasGameplayStateChanged",chrome.cast.a.u.prototype.yh);
chrome.cast.a.u.prototype.wh=function(a){return null!=m.h.j.Sa(this.l,a.l)};m.v(chrome.cast.a.u.prototype,"hasGameDataChanged",chrome.cast.a.u.prototype.wh);chrome.cast.a.u.prototype.xh=function(a){return this.A!=a.A};m.v(chrome.cast.a.u.prototype,"hasGameStatusTextChanged",chrome.cast.a.u.prototype.xh);chrome.cast.a.u.prototype.Ah=function(a,c){var d=this.ua(a);a=c.ua(a);return null==d&&null==a?!1:null!=d&&null!=a?!d.ga(a):!0};m.v(chrome.cast.a.u.prototype,"hasPlayerChanged",chrome.cast.a.u.prototype.Ah);
chrome.cast.a.u.prototype.Ch=function(a,c){var d=this.ua(a);a=c.ua(a);return null==d&&null==a?!1:null!=d&&null!=a?d.b!=a.b:!0};m.v(chrome.cast.a.u.prototype,"hasPlayerStateChanged",chrome.cast.a.u.prototype.Ch);chrome.cast.a.u.prototype.Bh=function(a,c){var d=this.ua(a);a=c.ua(a);return null==d&&null==a?!1:null!=d&&null!=a?null!=m.h.j.Sa(d.F,a.F):!0};m.v(chrome.cast.a.u.prototype,"hasPlayerDataChanged",chrome.cast.a.u.prototype.Bh);
chrome.cast.a.u.prototype.Zd=function(a){for(var c=[],d=this.Cc(),e=0;e<d.length;e++){var f=d[e],g=a.ua(f.l);null!=g&&f.ga(g)||c.push(f.l)}a=a.Cc();for(e=0;e<a.length;e++)g=a[e],f=this.ua(g.l),null!=f||m.c.contains(c,g.l)||c.push(g.l);return c};m.v(chrome.cast.a.u.prototype,"getListOfChangedPlayers",chrome.cast.a.u.prototype.Zd);chrome.cast.a.u.prototype.ga=function(a){return this.N==a.N&&this.X==a.X&&this.J==a.J&&this.F==a.F&&this.A==a.A&&0==this.Zd(a).length&&!m.h.j.Sa(this.l,a.l)};
m.v(chrome.cast.a.u.prototype,"equals",chrome.cast.a.u.prototype.ga);chrome.cast.a.U=function(a,c,d,e){this.l=a;this.b=c;this.F=d;this.A=e};m.v(chrome.cast.a,"PlayerInfo",chrome.cast.a.U);chrome.cast.a.U.prototype.lh=function(){return this.l};m.v(chrome.cast.a.U.prototype,"getPlayerId",chrome.cast.a.U.prototype.lh);chrome.cast.a.U.prototype.mh=function(){return this.b};m.v(chrome.cast.a.U.prototype,"getPlayerState",chrome.cast.a.U.prototype.mh);chrome.cast.a.U.prototype.kh=function(){return this.F};m.v(chrome.cast.a.U.prototype,"getPlayerData",chrome.cast.a.U.prototype.kh);
chrome.cast.a.U.prototype.Gh=function(){return this.A};m.v(chrome.cast.a.U.prototype,"isControllable",chrome.cast.a.U.prototype.Gh);chrome.cast.a.U.prototype.isConnected=function(){return this.b==chrome.cast.a.PlayerState.IDLE||this.b==chrome.cast.a.PlayerState.AVAILABLE||this.b==chrome.cast.a.PlayerState.PLAYING||this.b==chrome.cast.a.PlayerState.READY};m.v(chrome.cast.a.U.prototype,"isConnected",chrome.cast.a.U.prototype.isConnected);
chrome.cast.a.U.prototype.ga=function(a){return this.l==a.l&&this.b==a.b&&this.A==a.A&&!m.h.j.Sa(this.F,a.F)};m.v(chrome.cast.a.U.prototype,"equals",chrome.cast.a.U.prototype.ga);chrome.cast.a.s=function(a){this.b=new chrome.cast.a.D.Ga(a);this.F=new m.events.EventTarget;this.J=this.l=this.A=null;this.Da=this.Ca=!1;this.Ua=m.bind(this.ob,this);this.Va=m.bind(this.Gb,this);this.X=this.N=null;a=this.b;var c=this.Va;a.X=this.Ua;a.J=c};m.v(chrome.cast.a,"GameManagerClient",chrome.cast.a.s);chrome.cast.a.s.fh=function(a,c,d){V(new chrome.cast.a.s(a),c,d)};m.v(chrome.cast.a.s,"getInstanceFor",chrome.cast.a.s.fh);
var V=function(a,c,d){if(a.Ca)throw Error("Attempted to initialize the GameManagerClient more than once.");if(a.isDisposed())throw Error("Attempted to initialize the GameManagerClient after it was disposed.");a.Ca=!0;A(a.b,function(){c(new chrome.cast.a.vd(a))},d)};chrome.cast.a.s.prototype.za=function(){this.isDisposed()||(this.b.za(),this.F.za(),this.b=null,this.Da=!0)};m.v(chrome.cast.a.s.prototype,"dispose",chrome.cast.a.s.prototype.za);chrome.cast.a.s.prototype.isDisposed=function(){return this.Da};
m.v(chrome.cast.a.s.prototype,"isDisposed",chrome.cast.a.s.prototype.isDisposed);chrome.cast.a.s.prototype.wi=function(a,c,d){var e=this.b.qa();W(this,e,chrome.cast.a.PlayerState.AVAILABLE,a,c,d)};m.v(chrome.cast.a.s.prototype,"sendPlayerAvailableRequest",chrome.cast.a.s.prototype.wi);chrome.cast.a.s.prototype.xi=function(a,c,d,e){W(this,a,chrome.cast.a.PlayerState.AVAILABLE,c,d,e)};m.v(chrome.cast.a.s.prototype,"sendPlayerAvailableRequestWithPlayerId",chrome.cast.a.s.prototype.xi);
chrome.cast.a.s.prototype.Ei=function(a,c,d){var e=this.b.qa();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");W(this,e,chrome.cast.a.PlayerState.READY,a,c,d)};m.v(chrome.cast.a.s.prototype,"sendPlayerReadyRequest",chrome.cast.a.s.prototype.Ei);
chrome.cast.a.s.prototype.Fi=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");W(this,a,chrome.cast.a.PlayerState.READY,c,d,e)};m.v(chrome.cast.a.s.prototype,"sendPlayerReadyRequestWithPlayerId",chrome.cast.a.s.prototype.Fi);
chrome.cast.a.s.prototype.yi=function(a,c,d){var e=this.b.qa();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");W(this,e,chrome.cast.a.PlayerState.IDLE,a,c,d)};m.v(chrome.cast.a.s.prototype,"sendPlayerIdleRequest",chrome.cast.a.s.prototype.yi);
chrome.cast.a.s.prototype.zi=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");W(this,a,chrome.cast.a.PlayerState.IDLE,c,d,e)};m.v(chrome.cast.a.s.prototype,"sendPlayerIdleRequestWithPlayerId",chrome.cast.a.s.prototype.zi);
chrome.cast.a.s.prototype.Ai=function(a,c,d){var e=this.b.qa();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");W(this,e,chrome.cast.a.PlayerState.PLAYING,a,c,d)};m.v(chrome.cast.a.s.prototype,"sendPlayerPlayingRequest",chrome.cast.a.s.prototype.Ai);
chrome.cast.a.s.prototype.Bi=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");W(this,a,chrome.cast.a.PlayerState.PLAYING,c,d,e)};m.v(chrome.cast.a.s.prototype,"sendPlayerPlayingRequestWithPlayerId",chrome.cast.a.s.prototype.Bi);
chrome.cast.a.s.prototype.Ci=function(a,c,d){var e=this.b.qa();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");W(this,e,chrome.cast.a.PlayerState.QUIT,a,c,d)};m.v(chrome.cast.a.s.prototype,"sendPlayerQuitRequest",chrome.cast.a.s.prototype.Ci);
chrome.cast.a.s.prototype.Di=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");W(this,a,chrome.cast.a.PlayerState.QUIT,c,d,e)};m.v(chrome.cast.a.s.prototype,"sendPlayerQuitRequestWithPlayerId",chrome.cast.a.s.prototype.Di);var W=function(a,c,d,e,f,g){X(a);d=chrome.cast.a.D.ca.ah(d);B(a.b,c,d,e,f,g)};
chrome.cast.a.s.prototype.vi=function(a,c,d){var e=this.b.qa();if(!e)throw Error("Cannot send game request - no last used player ID found.");this.Ve(e,a,c,d)};m.v(chrome.cast.a.s.prototype,"sendGameRequest",chrome.cast.a.s.prototype.vi);chrome.cast.a.s.prototype.Ve=function(a,c,d,e){X(this);B(this.b,a,chrome.cast.a.D.ca.yf,c,d,e)};m.v(chrome.cast.a.s.prototype,"sendGameRequestWithPlayerId",chrome.cast.a.s.prototype.Ve);
chrome.cast.a.s.prototype.ui=function(a){var c=this.b.qa();if(!c)throw Error("Cannot send game message - no last used player ID found.");this.Ue(c,a)};m.v(chrome.cast.a.s.prototype,"sendGameMessage",chrome.cast.a.s.prototype.ui);chrome.cast.a.s.prototype.Ue=function(a,c){X(this);B(this.b,a,chrome.cast.a.D.ca.GAME_MESSAGE,c,null,null)};m.v(chrome.cast.a.s.prototype,"sendGameMessageWithPlayerId",chrome.cast.a.s.prototype.Ue);chrome.cast.a.s.prototype.addEventListener=function(a,c){this.F.listen(a,c)};
m.v(chrome.cast.a.s.prototype,"addEventListener",chrome.cast.a.s.prototype.addEventListener);chrome.cast.a.s.prototype.removeEventListener=function(a,c){this.F.pb(a,c)};m.v(chrome.cast.a.s.prototype,"removeEventListener",chrome.cast.a.s.prototype.removeEventListener);chrome.cast.a.s.prototype.getCurrentState=function(){X(this);return this.l};m.v(chrome.cast.a.s.prototype,"getCurrentState",chrome.cast.a.s.prototype.getCurrentState);chrome.cast.a.s.prototype.qa=function(){X(this);return this.b.qa()};
m.v(chrome.cast.a.s.prototype,"getLastUsedPlayerId",chrome.cast.a.s.prototype.qa);
chrome.cast.a.s.prototype.ob=function(a){if(a.statusCode!=chrome.cast.a.D.ta.SUCCESS)throw Error("Expecting a successful response message but got an error for request ID "+a.requestId);if(null!=this.A||a.gameManagerConfig)if(a.gameManagerConfig&&(this.A=a.gameManagerConfig),null!=this.A){this.J=this.l;for(var c=[],d=0;d<a.players.length;d++){var e=a.players[d],f=e.playerId;c.push(new chrome.cast.a.U(f,e.playerState,e.playerData,this.b.Ua.bb(f)))}this.l=new chrome.cast.a.u(this.A.applicationName,this.A.maxPlayers,
a.lobbyState,a.gameplayState,a.gameData,a.gameStatusText,c);c=this.l.ua(a.playerId);null!=c&&c.A&&a.type==chrome.cast.a.D.tb.GAME_MESSAGE&&(this.N=a.playerId,this.X=a.extraMessageData)}};chrome.cast.a.s.prototype.Gb=function(){null==this.J||this.l.ga(this.J)||this.F.dispatchEvent(new chrome.cast.a.xd(this.l,this.J));null!=this.N&&null!=this.X&&this.F.dispatchEvent(new chrome.cast.a.ud(this.N,this.X));this.X=this.N=this.J=null};
var X=function(a){if(null==a.A)throw Error("Attempted to perform an operation on the GameManagerClient before it was initialized.");if(a.isDisposed())throw Error("Attempted to perform an operation on the GameManagerClient after it was disposed.");};chrome.cast.a.D.Af=function(){this.applicationName="[APPLICATION_NAME_NOT_SET]";this.maxPlayers=-1;this.version="[INVALID_VERSION]"};m.G("chrome.cast.games.internal.GameManagerConfig",chrome.cast.a.D.Af);chrome.cast.a.D.bg=function(){this.playerId="";this.playerState=chrome.cast.a.PlayerState.UNKNOWN;this.playerData=null};m.G("chrome.cast.games.internal.PlayerInfoMessageComponent",chrome.cast.a.D.bg);}).call(this);
