var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
(function(g){var window=this;'use strict';var P7=function(a){g.Hk(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^g.Va()).toString(36));return a},Q7=function(a,b,c){Array.isArray(c)||(c=[String(c)]);
g.aha(a.u,b,c)},Fob=function(a){if(a instanceof g.Jn)return a;
if("function"==typeof a.jk)return a.jk(!1);if(g.Oa(a)){var b=0,c=new g.Jn;c.next=function(){for(;;){if(b>=a.length)return g.i3;if(b in a)return g.Kn(a[b++]);b++}};
return c}throw Error("Not implemented");},Gob=function(a,b,c){if(g.Oa(a))g.Ub(a,b,c);
else for(a=Fob(a);;){var d=a.next();if(d.done)break;b.call(c,d.value,void 0,a)}},Hob=function(a,b){var c=[];
Gob(b,function(d){try{var e=g.hq.prototype.u.call(this,d,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}void 0===e?c.push(d):g.Hla(e)&&c.push(d)},a);
return c},Iob=function(a,b){Hob(a,b).forEach(function(c){g.hq.prototype.remove.call(this,c)},a)},Job=function(a){if(a.Z){if(a.Z.locationOverrideToken)return{locationOverrideToken:a.Z.locationOverrideToken};
if(null!=a.Z.latitudeE7&&null!=a.Z.longitudeE7)return{latitudeE7:a.Z.latitudeE7,longitudeE7:a.Z.longitudeE7}}return null},Kob=function(a,b){g.wb(a,b)||a.push(b)},Lob=function(a){var b=0,c;
for(c in a)b++;return b},Mob=function(a,b){return g.cd(a,b)},Nob=function(a){try{return g.Ja.JSON.parse(a)}catch(b){}a=String(a);
if(/^\s*$/.test(a)?0:/^[\],:{}\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,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},R7=function(a){if(g.Ja.JSON)try{return g.Ja.JSON.parse(a)}catch(b){}return Nob(a)},Oob=function(a,b,c,d){var e=new g.zk(null);
a&&g.Ak(e,a);b&&g.Bk(e,b);c&&g.Ck(e,c);d&&(e.B=d);return e},S7=function(a){this.name=this.id="";
this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.obfuscatedGaiaId=this.avatar=this.username="";this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new g.Rp;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType="MDX_DIAL_SERVER_TYPE_UNKNOWN";a&&(this.id=a.id||a.name,this.name=a.name,this.clientName=a.clientName?a.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=a.app,this.type=
a.type||"REMOTE_CONTROL",this.username=a.user||"",this.avatar=a.userAvatarUri||"",this.obfuscatedGaiaId=a.obfuscatedGaiaId||"",this.theme=a.theme||"u",Pob(this,a.capabilities||""),Qob(this,a.compatibleSenderThemes||""),Rob(this,a.experiments||""),this.brand=a.brand||"",this.model=a.model||"",this.year=a.year||0,this.os=a.os||"",this.osVersion=a.osVersion||"",this.chipset=a.chipset||"",this.mdxDialServerType=a.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",a=a.deviceInfo)&&(a=JSON.parse(a),this.brand=
a.brand||"",this.model=a.model||"",this.year=a.year||0,this.os=a.os||"",this.osVersion=a.osVersion||"",this.chipset=a.chipset||"",this.clientName=a.clientName?a.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=a.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")},Pob=function(a,b){a.capabilities.clear();
g.On(b.split(","),g.Ua(Mob,Sob)).forEach(function(c){a.capabilities.add(c)})},Qob=function(a,b){a.compatibleSenderThemes.clear();
g.On(b.split(","),g.Ua(Mob,Tob)).forEach(function(c){a.compatibleSenderThemes.add(c)})},Rob=function(a,b){a.experiments.clear();
b.split(",").forEach(function(c){a.experiments.add(c)})},T7=function(a){a=a||{};
this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||"";this.idType=a.screenIdType||"normal"},U7=function(a,b){return!!b&&(a.id==b||a.uuid==b)},Uob=function(a){return{name:a.name,
screenId:a.id,loungeToken:a.token,dialId:a.uuid,screenIdType:a.idType}},Vob=function(a){return new T7(a)},Wob=function(a){return Array.isArray(a)?g.$l(a,Vob):[]},V7=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+((a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+",idType:"+a.idType+"}"):"null"},Xob=function(a){return Array.isArray(a)?"["+g.$l(a,V7).join(",")+"]":"null"},Yob=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,
function(a){var b=16*Math.random()|0;
return("x"==a?b:b&3|8).toString(16)})},Zob=function(a){return g.$l(a,function(b){return{key:b.id,
name:b.name}})},$ob=function(a,b){return g.sb(a,function(c){return c||b?!c!=!b?!1:c.id==b.id:!0})},W7=function(a,b){return g.sb(a,function(c){return U7(c,b)})},apb=function(){var a=(0,g.Jz)();
a&&Iob(a,a.j.jk(!0))},X7=function(){var a=g.Mz("yt-remote-connected-devices")||[];
g.Rb(a);return a},bpb=function(a){if(g.xb(a))return[];
var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return g.$l(a,function(d,e){return 0==e?d:d.substring(c.length)})},cpb=function(a){g.Lz("yt-remote-connected-devices",a,86400)},Y7=function(){if(dpb)return dpb;
var a=g.Mz("yt-remote-device-id");a||(a=Yob(),g.Lz("yt-remote-device-id",a,31536E3));for(var b=X7(),c=1,d=a;g.wb(b,d);)c++,d=a+"#"+c;return dpb=d},epb=function(){var a=X7(),b=Y7();
g.Oz()&&g.Tb(a,b);a=bpb(a);if(g.xb(a))try{g.Py("remote_sid")}catch(c){}else try{g.Ny("remote_sid",a.join(","),-1)}catch(c){}},fpb=function(){return g.Mz("yt-remote-session-browser-channel")},gpb=function(){return g.Mz("yt-remote-local-screens")||[]},hpb=function(){g.Lz("yt-remote-lounge-token-expiration",!0,86400)},ipb=function(a){5<a.length&&(a=a.slice(a.length-5));
var b=g.$l(gpb(),function(d){return d.loungeToken}),c=g.$l(a,function(d){return d.loungeToken});
g.am(c,function(d){return!g.wb(b,d)})&&hpb();
g.Lz("yt-remote-local-screens",a,31536E3)},Z7=function(a){a||(g.Nz("yt-remote-session-screen-id"),g.Nz("yt-remote-session-video-id"));
epb();a=X7();g.Ab(a,Y7());cpb(a)},jpb=function(){if(!$7){var a=g.qq();
a&&($7=new g.eq(a))}},kpb=function(){jpb();
return $7?!!$7.get("yt-remote-use-staging-server"):!1},a8=function(a,b){g.jC[a]=!0;
var c=g.hC();c&&c.publish.apply(c,arguments);g.jC[a]=!1},lpb=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);
return a?parseInt(a[1],10):0},mpb=function(a){return!!document.currentScript&&(-1!=document.currentScript.src.indexOf("?"+a)||-1!=document.currentScript.src.indexOf("&"+a))},npb=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null},b8=function(a){a.length?opb(a.shift(),function(){b8(a)}):ppb()},qpb=function(a){return"chrome-extension://"+a+"/cast_sender.js"},opb=function(a,b,c){var d=document.createElement("script");
d.onerror=b;c&&(d.onload=c);g.dk(d,g.pr(a));(document.head||document.documentElement).appendChild(d)},rpb=function(){var a=lpb(),b=[];
if(1<a){var c=a-1;b.push("//web.archive.org/web/20230505074657/https://www.gstatic.com/eureka/clank/"+a+"/cast_sender.js");b.push("//web.archive.org/web/20230505074657/https://www.gstatic.com/eureka/clank/"+c+"/cast_sender.js")}return b},ppb=function(){var a=npb();
a&&a(!1,"No cast extension found")},tpb=function(){if(spb){var a=2,b=npb(),c=function(){a--;
0==a&&b&&b(!0)};
window.__onGCastApiAvailable=c;opb("//web.archive.org/web/20230505074657/https://www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",ppb,c)}},upb=function(){tpb();
var a=rpb();a.push("//web.archive.org/web/20230505074657/https://www.gstatic.com/eureka/clank/cast_sender.js");b8(a)},wpb=function(){tpb();
var a=rpb();a.push.apply(a,g.la(vpb.map(qpb)));a.push("//web.archive.org/web/20230505074657/https://www.gstatic.com/eureka/clank/cast_sender.js");b8(a)},xpb=function(){this.j=c8();
this.j.lk("/client_streamz/youtube/living_room/mdx/channel/opened",{Xe:3,We:"channel_type"})},ypb=function(a,b){a.j.vl("/client_streamz/youtube/living_room/mdx/channel/opened",b)},zpb=function(){this.j=c8();
this.j.lk("/client_streamz/youtube/living_room/mdx/channel/closed",{Xe:3,We:"channel_type"})},Apb=function(a,b){a.j.vl("/client_streamz/youtube/living_room/mdx/channel/closed",b)},Bpb=function(){this.j=c8();
this.j.lk("/client_streamz/youtube/living_room/mdx/channel/message_received",{Xe:3,We:"channel_type"})},Cpb=function(a,b){a.j.vl("/client_streamz/youtube/living_room/mdx/channel/message_received",b)},Dpb=function(){this.j=c8();
this.j.lk("/client_streamz/youtube/living_room/mdx/channel/error",{Xe:3,We:"channel_type"})},Epb=function(a,b){a.j.vl("/client_streamz/youtube/living_room/mdx/channel/error",b)},Fpb=function(){this.j=c8();
this.j.lk("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")},Gpb=function(){this.j=c8();
this.j.lk("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")},d8=function(a,b,c){g.E.call(this);
this.I=null!=c?(0,g.Ta)(a,c):a;this.Ei=b;this.D=(0,g.Ta)(this.h_,this);this.j=!1;this.u=0;this.B=this.Ec=null;this.C=[]},e8=function(a,b,c){g.E.call(this);
this.C=null!=c?a.bind(c):a;this.Ei=b;this.B=null;this.j=!1;this.u=0;this.Ec=null},Hpb=function(a){a.Ec=g.Mf(function(){a.Ec=null;
a.j&&!a.u&&(a.j=!1,Hpb(a))},a.Ei);
var b=a.B;a.B=null;a.C.apply(null,b)},f8=function(){},Ipb=function(){g.pb.call(this,"p")},Jpb=function(){g.pb.call(this,"o")},Lpb=function(){return Kpb=Kpb||new g.Cd},Mpb=function(a){g.pb.call(this,"serverreachability",a)},g8=function(a){var b=Lpb();
b.dispatchEvent(new Mpb(b,a))},Npb=function(a){g.pb.call(this,"statevent",a)},h8=function(a){var b=Lpb();
b.dispatchEvent(new Npb(b,a))},Opb=function(a,b,c,d){g.pb.call(this,"timingevent",a);
this.size=b;this.Ez=d},i8=function(a,b){if("function"!==typeof a)throw Error("Fn must not be null and must be a function");
return g.Ja.setTimeout(function(){a()},b)},Ppb=function(){},j8=function(a,b,c,d){this.D=a;
this.C=b;this.hd=c;this.Gc=d||1;this.ib=new g.Mk(this);this.Nb=45E3;a=g.KK?125:void 0;this.ob=new g.Lf(a);this.La=null;this.B=!1;this.V=this.Za=this.J=this.Pa=this.ya=this.Gb=this.ea=null;this.oa=[];this.j=null;this.Z=0;this.I=this.Aa=null;this.Ub=-1;this.Ja=!1;this.tb=0;this.Ya=null;this.Bc=this.Wa=this.jc=this.Ga=!1;this.u=new Qpb},Qpb=function(){this.B=null;
this.j="";this.u=!1},Spb=function(a,b,c){a.Pa=1;
a.J=P7(b.clone());a.V=c;a.Ga=!0;Rpb(a,null)},Rpb=function(a,b){a.ya=Date.now();
k8(a);a.Za=a.J.clone();Q7(a.Za,"t",a.Gc);a.Z=0;var c=a.D.Pa;a.u=new Qpb;a.j=Tpb(a.D,c?b:null,!a.V);0<a.tb&&(a.Ya=new e8((0,g.Ta)(a.NQ,a,a.j),a.tb));a.ib.Ra(a.j,"readystatechange",a.k_);b=a.La?g.jd(a.La):{};a.V?(a.Aa||(a.Aa="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.j.send(a.Za,a.Aa,a.V,b)):(a.Aa="GET",a.j.send(a.Za,a.Aa,null,b));g8(1)},Upb=function(a){return a.j?"GET"==a.Aa&&2!=a.Pa&&a.D.tf:!1},Ypb=function(a,b,c){for(var d=!0,e;!a.Ja&&a.Z<c.length;)if(e=Vpb(a,c),e==l8){4==b&&
(a.I=4,h8(14),d=!1);
break}else if(e==Wpb){a.I=4;h8(15);d=!1;break}else Xpb(a,e);Upb(a)&&e!=l8&&e!=Wpb&&(a.u.j="",a.Z=0);4!=b||0!=c.length||a.u.u||(a.I=1,h8(16),d=!1);a.B=a.B&&d;d?0<c.length&&!a.Bc&&(a.Bc=!0,a.D.HN(a)):(m8(a),n8(a))},Vpb=function(a,b){var c=a.Z,d=b.indexOf("\n",c);
if(-1==d)return l8;c=Number(b.substring(c,d));if(isNaN(c))return Wpb;d+=1;if(d+c>b.length)return l8;b=b.slice(d,d+c);a.Z=d+c;return b},k8=function(a){a.Gb=Date.now()+a.Nb;
Zpb(a,a.Nb)},Zpb=function(a,b){if(null!=a.ea)throw Error("WatchDog timer not null");
a.ea=i8((0,g.Ta)(a.i_,a),b)},o8=function(a){a.ea&&(g.Ja.clearTimeout(a.ea),a.ea=null)},n8=function(a){a.D.Tg()||a.Ja||$pb(a.D,a)},m8=function(a){o8(a);
g.gb(a.Ya);a.Ya=null;a.ob.stop();a.ib.Df();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}},Xpb=function(a,b){try{var c=a.D;
if(0!=c.lh&&(c.j==a||aqb(c.u,a)))if(!a.Wa&&aqb(c.u,a)&&3==c.lh){try{var d=c.uf.j.parse(b)}catch(C){d=null}if(Array.isArray(d)&&3==d.length){var e=d;if(0==e[0])a:{if(!c.V){if(c.j)if(c.j.ya+3E3<a.ya)p8(c),q8(c);else break a;bqb(c);h8(18)}}else c.Wd=e[1],0<c.Wd-c.Ya&&37500>e[2]&&c.Wa&&0==c.oa&&!c.Z&&(c.Z=i8((0,g.Ta)(c.l_,c),6E3));if(1>=cqb(c.u)&&c.Uc){try{c.Uc()}catch(C){}c.Uc=void 0}}else r8(c,11)}else if((a.Wa||c.j==a)&&p8(c),!g.$b(b))for(e=c.uf.j.parse(b),b=0;b<e.length;b++){var f=e[b];c.Ya=f[0];
f=f[1];if(2==c.lh)if("c"==f[0]){c.C=f[1];c.Bc=f[2];var h=f[3];null!=h&&(c.OQ=h);var l=f[5];null!=l&&"number"===typeof l&&0<l&&(c.ib=1.5*l);d=c;var m=a.bM();if(m){var n=g.rj(m,"X-Client-Wire-Protocol");if(n){var p=d.u;!p.j&&(g.cc(n,"spdy")||g.cc(n,"quic")||g.cc(n,"h2"))&&(p.C=p.D,p.j=new Set,p.u&&(dqb(p,p.u),p.u=null))}if(d.Ga){var q=g.rj(m,"X-HTTP-Session-Id");q&&(d.le=q,g.Hk(d.La,d.Ga,q))}}c.lh=3;c.D&&c.D.UQ();c.Kc&&(c.rd=Date.now()-a.ya);d=c;var t=a;d.Ud=eqb(d,d.Pa?d.Bc:null,d.Gc);if(t.Wa){fqb(d.u,
t);var w=t,z=d.ib;z&&w.setTimeout(z);w.ea&&(o8(w),k8(w));d.j=t}else gqb(d);0<c.B.length&&s8(c)}else"stop"!=f[0]&&"close"!=f[0]||r8(c,7);else 3==c.lh&&("stop"==f[0]||"close"==f[0]?"stop"==f[0]?r8(c,7):c.disconnect():"noop"!=f[0]&&c.D&&c.D.TQ(f),c.oa=0)}g8(4)}catch(C){}},hqb=function(a,b){this.j=a;
this.map=b;this.context=null},iqb=function(a){this.D=a||10;
g.Ja.PerformanceNavigationTiming?(a=g.Ja.performance.getEntriesByType("navigation"),a=0<a.length&&("hq"==a[0].nextHopProtocol||"h2"==a[0].nextHopProtocol)):a=!!(g.Ja.chrome&&g.Ja.chrome.loadTimes&&g.Ja.chrome.loadTimes()&&g.Ja.chrome.loadTimes().wasFetchedViaSpdy);this.C=a?this.D:1;this.j=null;1<this.C&&(this.j=new Set);this.u=null;this.B=[]},jqb=function(a){return a.u?!0:a.j?a.j.size>=a.C:!1},cqb=function(a){return a.u?1:a.j?a.j.size:0},aqb=function(a,b){return a.u?a.u==b:a.j?a.j.has(b):!1},dqb=
function(a,b){a.j?a.j.add(b):a.u=b},fqb=function(a,b){a.u&&a.u==b?a.u=null:a.j&&a.j.has(b)&&a.j.delete(b)},kqb=function(a){if(null!=a.u)return a.B.concat(a.u.oa);
if(null!=a.j&&0!==a.j.size){var b=a.B;a=g.v(a.j.values());for(var c=a.next();!c.done;c=a.next())b=b.concat(c.value.oa);return b}return g.Db(a.B)},lqb=function(a,b){var c=new Ppb;
if(g.Ja.Image){var d=new Image;d.onload=g.Ua(t8,c,d,"TestLoadImage: loaded",!0,b);d.onerror=g.Ua(t8,c,d,"TestLoadImage: error",!1,b);d.onabort=g.Ua(t8,c,d,"TestLoadImage: abort",!1,b);d.ontimeout=g.Ua(t8,c,d,"TestLoadImage: timeout",!1,b);g.Ja.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);
d.src=a}else b(!1)},t8=function(a,b,c,d,e){try{b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,e(d)}catch(f){}},mqb=function(){this.j=new f8},nqb=function(a,b,c){var d=c||"";
try{g.yk(a,function(e,f){var h=e;g.Pa(e)&&(h=g.Hi(e));b.push(d+f+"="+encodeURIComponent(h))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;
}},u8=function(a,b,c){return c&&c.l4?c.l4[a]||b:b},oqb=function(a){this.B=[];
this.Bc=this.Ud=this.La=this.Gc=this.j=this.le=this.Ga=this.Ja=this.J=this.Gb=this.ea=null;this.Tf=this.Za=0;this.Rf=u8("failFast",!1,a);this.Wa=this.Z=this.V=this.I=this.D=null;this.hd=!0;this.Wd=this.Ya=-1;this.jc=this.oa=this.ya=0;this.Gf=u8("baseRetryDelayMs",5E3,a);this.Uf=u8("retryDelaySeedMs",1E4,a);this.Sf=u8("forwardChannelMaxRetries",2,a);this.Vd=u8("forwardChannelRequestTimeoutMs",2E4,a);this.ke=a&&a.g9a||void 0;this.tf=a&&a.d9a||!1;this.ib=void 0;this.Pa=a&&a.o9||!1;this.C="";this.u=new iqb(a&&
a.O6a);this.uf=new mqb;this.Nb=a&&a.f7a||!1;this.tb=a&&a.V6a||!1;this.Nb&&this.tb&&(this.tb=!1);this.Vf=a&&a.I6a||!1;a&&a.h7a&&(this.hd=!1);this.Kc=!this.Nb&&this.hd&&a&&a.R6a||!1;this.td=void 0;a&&a.uV&&0<a.uV&&(this.td=a.uV);this.Uc=void 0;this.rd=0;this.ob=!1;this.Ub=this.Aa=null},q8=function(a){a.j&&(pqb(a),a.j.cancel(),a.j=null)},qqb=function(a){q8(a);
a.V&&(g.Ja.clearTimeout(a.V),a.V=null);p8(a);a.u.cancel();a.I&&("number"===typeof a.I&&g.Ja.clearTimeout(a.I),a.I=null)},s8=function(a){jqb(a.u)||a.I||(a.I=!0,g.Af(a.QQ,a),a.ya=0)},sqb=function(a,b){if(cqb(a.u)>=a.u.C-(a.I?1:0))return!1;
if(a.I)return a.B=b.oa.concat(a.B),!0;if(1==a.lh||2==a.lh||a.ya>=(a.Rf?0:a.Sf))return!1;a.I=i8((0,g.Ta)(a.QQ,a,b),rqb(a,a.ya));a.ya++;return!0},uqb=function(a,b){var c;
b?c=b.hd:c=a.Za++;var d=a.La.clone();g.Hk(d,"SID",a.C);g.Hk(d,"RID",c);g.Hk(d,"AID",a.Ya);v8(a,d);a.J&&a.ea&&g.Lk(d,a.J,a.ea);c=new j8(a,a.C,c,a.ya+1);null===a.J&&(c.La=a.ea);b&&(a.B=b.oa.concat(a.B));b=tqb(a,c,1E3);c.setTimeout(Math.round(.5*a.Vd)+Math.round(.5*a.Vd*Math.random()));dqb(a.u,c);Spb(c,d,b)},v8=function(a,b){a.Ja&&g.Vc(a.Ja,function(c,d){g.Hk(b,d,c)});
a.D&&g.yk({},function(c,d){g.Hk(b,d,c)})},tqb=function(a,b,c){c=Math.min(a.B.length,c);
var d=a.D?(0,g.Ta)(a.D.m_,a.D,a):null;a:for(var e=a.B,f=-1;;){var h=["count="+c];-1==f?0<c?(f=e[0].j,h.push("ofs="+f)):f=0:h.push("ofs="+f);for(var l=!0,m=0;m<c;m++){var n=e[m].j,p=e[m].map;n-=f;if(0>n)f=Math.max(0,e[m].j-100),l=!1;else try{nqb(p,h,"req"+n+"_")}catch(q){d&&d(p)}}if(l){d=h.join("&");break a}}a=a.B.splice(0,c);b.oa=a;return d},gqb=function(a){a.j||a.V||(a.jc=1,g.Af(a.PQ,a),a.oa=0)},bqb=function(a){if(a.j||a.V||3<=a.oa)return!1;
a.jc++;a.V=i8((0,g.Ta)(a.PQ,a),rqb(a,a.oa));a.oa++;return!0},pqb=function(a){null!=a.Aa&&(g.Ja.clearTimeout(a.Aa),a.Aa=null)},vqb=function(a){a.j=new j8(a,a.C,"rpc",a.jc);
null===a.J&&(a.j.La=a.ea);a.j.tb=0;var b=a.Ud.clone();g.Hk(b,"RID","rpc");g.Hk(b,"SID",a.C);g.Hk(b,"AID",a.Ya);g.Hk(b,"CI",a.Wa?"0":"1");!a.Wa&&a.td&&g.Hk(b,"TO",a.td);g.Hk(b,"TYPE","xmlhttp");v8(a,b);a.J&&a.ea&&g.Lk(b,a.J,a.ea);a.ib&&a.j.setTimeout(a.ib);var c=a.j;a=a.Bc;c.Pa=1;c.J=P7(b.clone());c.V=null;c.Ga=!0;Rpb(c,a)},p8=function(a){null!=a.Z&&(g.Ja.clearTimeout(a.Z),a.Z=null)},$pb=function(a,b){var c=null;
if(a.j==b){p8(a);pqb(a);a.j=null;var d=2}else if(aqb(a.u,b))c=b.oa,fqb(a.u,b),d=1;else return;if(0!=a.lh)if(b.B)if(1==d){c=b.V?b.V.length:0;b=Date.now()-b.ya;var e=a.ya;d=Lpb();d.dispatchEvent(new Opb(d,c,b,e));s8(a)}else gqb(a);else{var f=b.Ub;e=b.getLastError();if(3==e||0==e&&0<f||!(1==d&&sqb(a,b)||2==d&&bqb(a)))switch(c&&0<c.length&&(b=a.u,b.B=b.B.concat(c)),e){case 1:r8(a,5);break;case 4:r8(a,10);break;case 3:r8(a,6);break;default:r8(a,2)}}},rqb=function(a,b){var c=a.Gf+Math.floor(Math.random()*
a.Uf);
a.isActive()||(c*=2);return c*b},r8=function(a,b){if(2==b){var c=null;
a.D&&(c=null);var d=(0,g.Ta)(a.u9,a);c||(c=new g.zk("//web.archive.org/web/20230505074657/https://www.google.com/images/cleardot.gif"),g.Ja.location&&"http"==g.Ja.location.protocol||g.Ak(c,"https"),P7(c));lqb(c.toString(),d)}else h8(2);a.lh=0;a.D&&a.D.SQ(b);wqb(a);qqb(a)},wqb=function(a){a.lh=0;
a.Ub=[];if(a.D){var b=kqb(a.u);if(0!=b.length||0!=a.B.length)g.Fb(a.Ub,b),g.Fb(a.Ub,a.B),a.u.B.length=0,g.Db(a.B),a.B.length=0;a.D.RQ()}},xqb=function(a){if(0==a.lh)return a.Ub;
var b=[];g.Fb(b,kqb(a.u));g.Fb(b,a.B);return b},eqb=function(a,b,c){var d=g.Ik(c);
""!=d.j?(b&&g.Bk(d,b+"."+d.j),g.Ck(d,d.C)):(d=g.Ja.location,d=Oob(d.protocol,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.Ga;c=a.le;b&&c&&g.Hk(d,b,c);g.Hk(d,"VER",a.OQ);v8(a,d);return d},Tpb=function(a,b,c){if(b&&!a.Pa)throw Error("Can't create secondary domain capable XhrIo object.");
b=c&&a.tf&&!a.ke?new g.Yi(new g.uk({XX:!0})):new g.Yi(a.ke);b.I=a.Pa;return b},yqb=function(){},zqb=function(){if(g.Ve&&!g.Mc(10))throw Error("Environmental error: no available transport.");
},x8=function(a,b){g.Cd.call(this);
this.j=new oqb(b);this.D=a;this.u=b&&b.S4||null;a=b&&b.R4||null;b&&b.N6a&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"});this.j.ea=a;a=b&&b.R7a||null;b&&b.BV&&(a?a["X-WebChannel-Content-Type"]=b.BV:a={"X-WebChannel-Content-Type":b.BV});b&&b.XS&&(a?a["X-WebChannel-Client-Profile"]=b.XS:a={"X-WebChannel-Client-Profile":b.XS});this.j.Gb=a;(a=b&&b.Q7a)&&!g.$b(a)&&(this.j.J=a);this.I=b&&b.o9||!1;this.C=b&&b.E8a||!1;(b=b&&b.g4)&&!g.$b(b)&&(this.j.Ga=b,g.bd(this.u,b)&&g.gd(this.u,
b));this.B=new w8(this)},Aqb=function(a){Ipb.call(this);
a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var b=a.__sm__;b?this.data=(this.j=g.Zc(b))?g.hd(b,this.j):b:this.data=a},Bqb=function(a){Jpb.call(this);
this.status=1;this.errorCode=a},w8=function(a){this.j=a},Cqb=function(a,b){this.u=a;
this.j=b},Dqb=function(a){return xqb(a.j).map(function(b){b=b.map;
"__data__"in b&&(b=b.__data__,b=a.u.C?Nob(b):b);return b})},y8=function(a,b){if("function"!==typeof a)throw Error("Fn must not be null and must be a function");
return g.Ja.setTimeout(function(){a()},b)},A8=function(a){z8.dispatchEvent(new Eqb(z8,a))},Eqb=function(a){g.pb.call(this,"statevent",a)},B8=function(a,b,c,d){this.j=a;
this.C=b;this.J=c;this.I=d||1;this.u=45E3;this.B=new g.Mk(this);this.D=new g.Lf;this.D.setInterval(250)},Gqb=function(a,b,c){a.Ww=1;
a.vr=P7(b.clone());a.Wt=c;a.Ga=!0;Fqb(a,null)},Hqb=function(a,b,c,d,e){a.Ww=1;
a.vr=P7(b.clone());a.Wt=null;a.Ga=c;e&&(a.CX=!1);Fqb(a,d)},Fqb=function(a,b){a.Vw=Date.now();
C8(a);a.xr=a.vr.clone();Q7(a.xr,"t",a.I);a.EE=0;a.Pi=a.j.lJ(a.j.BA()?b:null);0<a.jJ&&(a.CE=new e8((0,g.Ta)(a.VQ,a,a.Pi),a.jJ));a.B.Ra(a.Pi,"readystatechange",a.o_);b=a.Vt?g.jd(a.Vt):{};a.Wt?(a.DE="POST",b["Content-Type"]="application/x-www-form-urlencoded",a.Pi.send(a.xr,a.DE,a.Wt,b)):(a.DE="GET",a.CX&&!g.Nc&&(b.Connection="close"),a.Pi.send(a.xr,a.DE,null,b));a.j.jn(1)},Kqb=function(a,b){var c=a.EE,d=b.indexOf("\n",c);
if(-1==d)return Iqb;c=Number(b.substring(c,d));if(isNaN(c))return Jqb;d+=1;if(d+c>b.length)return Iqb;b=b.slice(d,d+c);a.EE=d+c;return b},Mqb=function(a,b){a.Vw=Date.now();
C8(a);var c=b?window.location.hostname:"";a.xr=a.vr.clone();g.Hk(a.xr,"DOMAIN",c);g.Hk(a.xr,"t",a.I);try{a.Fn=new ActiveXObject("htmlfile")}catch(m){D8(a);a.wr=7;A8(22);E8(a);return}var d="<html><body>";if(b){var e="";for(b=0;b<c.length;b++){var f=c.charAt(b);if("<"==f)f=e+"\\x3c";else if(">"==f)f=e+"\\x3e";else{if(f in F8)f=F8[f];else if(f in Lqb)f=F8[f]=Lqb[f];else{var h=f.charCodeAt(0);if(31<h&&127>h)var l=f;else{if(256>h){if(l="\\x",16>h||256<h)l+="0"}else l="\\u",4096>h&&(l+="0");l+=h.toString(16).toUpperCase()}f=
F8[f]=l}f=e+f}e=f}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";g.Sd("b/12014412");c=g.me(d);a.Fn.open();a.Fn.write(g.fe(c));a.Fn.close();a.Fn.parentWindow.m=(0,g.Ta)(a.Q7,a);a.Fn.parentWindow.d=(0,g.Ta)(a.FW,a,!0);a.Fn.parentWindow.rpcClose=(0,g.Ta)(a.FW,a,!1);c=a.Fn.createElement("DIV");a.Fn.parentWindow.document.body.appendChild(c);d=g.$d(a.xr.toString());d=g.Ge(g.Yd(d));g.Sd("b/12014412");d=g.me('<iframe src="'+d+'"></iframe>');g.Zba(c,d);a.j.jn(1)},C8=function(a){a.kJ=
Date.now()+a.u;
Nqb(a,a.u)},Nqb=function(a,b){if(null!=a.Xw)throw Error("WatchDog timer not null");
a.Xw=y8((0,g.Ta)(a.n_,a),b)},Oqb=function(a){a.Xw&&(g.Ja.clearTimeout(a.Xw),a.Xw=null)},E8=function(a){a.j.Tg()||a.Ut||a.j.FE(a)},D8=function(a){Oqb(a);
g.gb(a.CE);a.CE=null;a.D.stop();a.B.Df();if(a.Pi){var b=a.Pi;a.Pi=null;b.abort();b.dispose()}a.Fn&&(a.Fn=null)},Pqb=function(a,b){try{a.j.WQ(a,b),a.j.jn(4)}catch(c){}},Rqb=function(a,b,c,d,e){if(0==d)c(!1);
else{var f=e||0;d--;Qqb(a,b,function(h){h?c(!0):g.Ja.setTimeout(function(){Rqb(a,b,c,d,f)},f)})}},Qqb=function(a,b,c){var d=new Image;
d.onload=function(){try{G8(d),c(!0)}catch(e){}};
d.onerror=function(){try{G8(d),c(!1)}catch(e){}};
d.onabort=function(){try{G8(d),c(!1)}catch(e){}};
d.ontimeout=function(){try{G8(d),c(!1)}catch(e){}};
g.Ja.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a},G8=function(a){a.onload=null;
a.onerror=null;a.onabort=null;a.ontimeout=null},Sqb=function(a){this.j=a;
this.u=new f8},Tqb=function(a){var b=H8(a.j,a.YA,"/mail/images/cleardot.gif");
P7(b);Rqb(b.toString(),5E3,(0,g.Ta)(a.e2,a),3,2E3);a.jn(1)},Uqb=function(a){var b=a.j.I;
if(null!=b)A8(5),b?(A8(11),I8(a.j,a,!1)):(A8(12),I8(a.j,a,!0));else if(a.tj=new B8(a),a.tj.Vt=a.mJ,b=a.j,b=H8(b,b.BA()?a.AA:null,a.nJ),A8(5),!g.Ve||g.Mc(10))Q7(b,"TYPE","xmlhttp"),Hqb(a.tj,b,!1,a.AA,!1);else{Q7(b,"TYPE","html");var c=a.tj;a=!!a.AA;c.Ww=3;c.vr=P7(b.clone());Mqb(c,a)}},Vqb=function(a,b,c){this.j=1;
this.u=[];this.B=[];this.D=new f8;this.ea=a||null;this.I=null!=b?b:null;this.V=c||!1},Wqb=function(a,b){this.j=a;
this.map=b;this.context=null},Xqb=function(a,b,c,d){g.pb.call(this,"timingevent",a);
this.size=b;this.Ez=d},Yqb=function(a){g.pb.call(this,"serverreachability",a)},$qb=function(a){a.p_(1,0);
a.GE=H8(a,null,a.oJ);Zqb(a)},arb=function(a){a.Lr&&(a.Lr.abort(),a.Lr=null);
a.Fg&&(a.Fg.cancel(),a.Fg=null);a.Fp&&(g.Ja.clearTimeout(a.Fp),a.Fp=null);J8(a);a.Cj&&(a.Cj.cancel(),a.Cj=null);a.yr&&(g.Ja.clearTimeout(a.yr),a.yr=null)},brb=function(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");
a.u.push(new Wqb(a.q_++,b));2!=a.j&&3!=a.j||Zqb(a)},crb=function(a){var b=0;
a.Fg&&b++;a.Cj&&b++;return b},Zqb=function(a){a.Cj||a.yr||(a.yr=y8((0,g.Ta)(a.aR,a),0),a.Zw=0)},frb=function(a,b){if(1==a.j){if(!b){a.DA=Math.floor(1E5*Math.random());
b=a.DA++;var c=new B8(a,"",b);c.Vt=a.Kn;var d=drb(a),e=a.GE.clone();g.Hk(e,"RID",b);g.Hk(e,"CVER","1");K8(a,e);Gqb(c,e,d);a.Cj=c;a.j=2}}else 3==a.j&&(b?erb(a,b):0==a.u.length||a.Cj||erb(a))},erb=function(a,b){if(b)if(6<a.Xt){a.u=a.B.concat(a.u);
a.B.length=0;var c=a.DA-1;b=drb(a)}else c=b.J,b=b.Wt;else c=a.DA++,b=drb(a);var d=a.GE.clone();g.Hk(d,"SID",a.C);g.Hk(d,"RID",c);g.Hk(d,"AID",a.ax);K8(a,d);c=new B8(a,a.C,c,a.Zw+1);c.Vt=a.Kn;c.setTimeout(1E4+Math.round(1E4*Math.random()));a.Cj=c;Gqb(c,d,b)},K8=function(a,b){a.ji&&(a=a.ji.eR())&&g.Vc(a,function(c,d){g.Hk(b,d,c)})},drb=function(a){var b=Math.min(a.u.length,1E3),c=["count="+b];
if(6<a.Xt&&0<b){var d=a.u[0].j;c.push("ofs="+d)}else d=0;for(var e={},f=0;f<b;e={Fw:e.Fw},f++){e.Fw=a.u[f].j;var h=a.u[f].map;e.Fw=6>=a.Xt?f:e.Fw-d;try{g.Vc(h,function(l){return function(m,n){c.push("req"+l.Fw+"_"+n+"="+encodeURIComponent(m))}}(e))}catch(l){c.push("req"+e.Fw+"_type="+encodeURIComponent("_badmap"))}}a.B=a.B.concat(a.u.splice(0,b));
return c.join("&")},grb=function(a){a.Fg||a.Fp||(a.J=1,a.Fp=y8((0,g.Ta)(a.ZQ,a),0),a.Yw=0)},irb=function(a){if(a.Fg||a.Fp||3<=a.Yw)return!1;
a.J++;a.Fp=y8((0,g.Ta)(a.ZQ,a),hrb(a,a.Yw));a.Yw++;return!0},I8=function(a,b,c){a.xI=null==a.I?c:!a.I;
a.Ln=b.Ep;a.V||$qb(a)},J8=function(a){null!=a.Yt&&(g.Ja.clearTimeout(a.Yt),a.Yt=null)},hrb=function(a,b){var c=5E3+Math.floor(1E4*Math.random());
a.isActive()||(c*=2);return c*b},L8=function(a,b){if(2==b||9==b){var c=null;
a.ji&&(c=null);var d=(0,g.Ta)(a.t9,a);c||(c=new g.zk("//web.archive.org/web/20230505074657/https://www.google.com/images/cleardot.gif"),P7(c));Qqb(c.toString(),1E4,d)}else A8(2);jrb(a,b)},jrb=function(a,b){a.j=0;
a.ji&&a.ji.bR(b);krb(a);arb(a)},krb=function(a){a.j=0;
a.Ln=-1;if(a.ji)if(0==a.B.length&&0==a.u.length)a.ji.pJ();else{var b=g.Db(a.B),c=g.Db(a.u);a.B.length=0;a.u.length=0;a.ji.pJ(b,c)}},H8=function(a,b,c){var d=g.Ik(c);
if(""!=d.j)b&&g.Bk(d,b+"."+d.j),g.Ck(d,d.C);else{var e=window.location;d=Oob(e.protocol,b?b+"."+e.hostname:e.hostname,+e.port,c)}a.CA&&g.Vc(a.CA,function(f,h){g.Hk(d,h,f)});
g.Hk(d,"VER",a.Xt);K8(a,d);return d},lrb=function(){},mrb=function(){this.j=[];
this.u=[]},nrb=function(a){g.pb.call(this,"channelMessage");
this.message=a},orb=function(a){g.pb.call(this,"channelError");
this.error=a},prb=function(a,b){this.action=a;
this.params=b||{}},M8=function(a,b){g.E.call(this);
this.j=new g.Ap(this.I7,0,this);g.I(this,this.j);this.Ei=5E3;this.u=0;if("function"===typeof a)b&&(a=(0,g.Ta)(a,b));else if(a&&"function"===typeof a.handleEvent)a=(0,g.Ta)(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a},qrb=function(){},c8=function(){if(!N8){N8=new g.Of(new qrb);
var a=g.dy("client_streamz_web_flush_count",-1);-1!==a&&(N8.C=a)}return N8},rrb=function(a,b,c,d,e){c=void 0===c?!1:c;
d=void 0===d?function(){return""}:d;
e=void 0===e?!1:e;this.ya=a;this.J=b;this.B=new g.dq;this.u=new M8(this.Q8,this);this.j=null;this.Z=!1;this.I=null;this.ea="";this.V=this.D=0;this.C=[];this.Pa=c;this.oa=d;this.Wa=e;this.La=new xpb;this.Aa=new zpb;this.Ja=new Bpb;this.Ga=new Dpb;this.Ya=new Fpb;this.Za=new Gpb},srb=function(a){if(a.j){var b=a.oa(),c=a.j.Kn||{};
b?c["x-youtube-lounge-xsrf-token"]=b:delete c["x-youtube-lounge-xsrf-token"];a.j.Kn=c}},O8=function(a){this.port=this.domain="";
this.j="/api/lounge";this.u=!0;a=a||document.location.href;var b=Number(g.Oi(4,a))||"";b&&(this.port=":"+b);this.domain=g.Pi(a)||"";a=g.hc();0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>g.gc(a,"10.0")&&(this.u=!1))},P8=function(a,b){var c=a.j;
a.u&&(c="https://"+a.domain+a.port+a.j);return g.Ui(c+b,{})},trb=function(a,b,c,d,e){a={format:"JSON",
method:"POST",context:a,timeout:5E3,withCredentials:!1,onSuccess:g.Ua(a.C,d,!0),onError:g.Ua(a.B,e),onTimeout:g.Ua(a.D,e)};c&&(a.postParams=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return g.Dy(b,a)},urb=function(a,b){g.Cd.call(this);
var c=this;this.wd=a();this.wd.subscribe("handlerOpened",this.u_,this);this.wd.subscribe("handlerClosed",this.s_,this);this.wd.subscribe("handlerError",function(d,e){c.onError(e)});
this.wd.subscribe("handlerMessage",this.t_,this);this.j=b},vrb=function(a,b,c){var d=this;
c=void 0===c?function(){return""}:c;
var e=void 0===e?new zqb:e;var f=void 0===f?new g.dq:f;this.pathPrefix=a;this.j=b;this.ya=c;this.D=f;this.V=null;this.ea=this.J=0;this.channel=null;this.I=0;this.B=new M8(function(){d.B.isActive();var h;0===(null==(h=d.channel)?void 0:cqb((new Cqb(h,h.j)).j.u))&&d.connect(d.V,d.J)});
this.C={};this.u={};this.Z=!1;this.logger=null;this.oa=[];this.Jg=void 0;this.La=new xpb;this.Aa=new zpb;this.Ja=new Bpb;this.Ga=new Dpb},wrb=function(a){g.sd(a.channel,"m",function(){a.I=3;
a.B.reset();a.V=null;a.J=0;for(var b=g.v(a.oa),c=b.next();!c.done;c=b.next())c=c.value,a.channel&&a.channel.send(c);a.oa=[];a.ma("webChannelOpened");ypb(a.La,"WEB_CHANNEL")});
g.sd(a.channel,"n",function(){a.I=0;a.B.isActive()||a.ma("webChannelClosed");var b,c=null==(b=a.channel)?void 0:Dqb(new Cqb(b,b.j));c&&(a.oa=[].concat(g.la(c)));Apb(a.Aa,"WEB_CHANNEL")});
g.sd(a.channel,"p",function(b){var c=b.data;"gracefulReconnect"===c[0]?(a.B.start(),a.channel&&a.channel.close()):a.ma("webChannelMessage",new prb(c[0],c[1]));a.Jg=b.statusCode;Cpb(a.Ja,"WEB_CHANNEL")});
g.sd(a.channel,"o",function(){401===a.Jg||a.B.start();a.ma("webChannelError");Epb(a.Ga,"WEB_CHANNEL")})},xrb=function(a){var b=a.ya();
b?a.C["x-youtube-lounge-xsrf-token"]=b:delete a.C["x-youtube-lounge-xsrf-token"]},yrb=function(a){g.Cd.call(this);
this.j=a();this.j.subscribe("webChannelOpened",this.x_,this);this.j.subscribe("webChannelClosed",this.v_,this);this.j.subscribe("webChannelError",this.onError,this);this.j.subscribe("webChannelMessage",this.w_,this)},zrb=function(a,b,c,d,e){function f(){return new rrb(P8(a,"/bc"),b,!1,c,d)}
c=void 0===c?function(){return""}:c;
return g.cy("enable_mdx_web_channel_desktop")?new yrb(function(){return new vrb(P8(a,"/wc"),b,c)}):new urb(f,e)},Drb=function(){var a=Arb;
Brb();Q8.push(a);Crb()},R8=function(a,b){Brb();
var c=Erb(a,String(b));g.xb(Q8)?Frb(c):(Crb(),g.Ub(Q8,function(d){d(c)}))},S8=function(a){R8("CP",a)},Brb=function(){Q8||(Q8=g.La("yt.mdx.remote.debug.handlers_")||[],g.Ka("yt.mdx.remote.debug.handlers_",Q8))},Frb=function(a){var b=(T8+1)%50;
T8=b;U8[b]=a;V8||(V8=49==b)},Crb=function(){var a=Q8;
if(U8[0]){var b=V8?T8:-1;do{b=(b+1)%50;var c=U8[b];g.Ub(a,function(d){d(c)})}while(b!=T8);
U8=Array(50);T8=-1;V8=!1}},Erb=function(a,b){var c=(Date.now()-Grb)/1E3;
c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")},W8=function(a){g.aE.call(this);
this.I=a;this.screens=[]},Hrb=function(a,b){var c=a.get(b.uuid)||a.get(b.id);
if(c)return a=c.name,c.id=b.id||c.id,c.name=b.name,c.token=b.token,c.uuid=b.uuid||c.uuid,c.name!=a;a.screens.push(b);return!0},Irb=function(a,b){var c=a.screens.length!=b.length;
a.screens=g.On(a.screens,function(f){return!!$ob(b,f)});
for(var d=0,e=b.length;d<e;d++)c=Hrb(a,b[d])||c;return c},Jrb=function(a,b){var c=a.screens.length;
a.screens=g.On(a.screens,function(d){return!(d||b?!d!=!b?0:d.id==b.id:1)});
return a.screens.length<c},Krb=function(a,b,c,d,e){g.aE.call(this);
this.B=a;this.J=b;this.C=c;this.I=d;this.D=e;this.u=0;this.j=null;this.Ec=NaN},Y8=function(a){W8.call(this,"LocalScreenService");
this.u=a;this.j=NaN;X8(this);this.info("Initializing with "+Xob(this.screens))},Lrb=function(a){if(a.screens.length){var b=g.$l(a.screens,function(d){return d.id}),c=P8(a.u,"/pairing/get_lounge_token_batch");
trb(a.u,c,{screen_ids:b.join(",")},(0,g.Ta)(a.H3,a),(0,g.Ta)(a.G3,a))}},X8=function(a){if(g.cy("deprecate_pair_servlet_enabled"))return Irb(a,[]);
var b=Wob(gpb());b=g.On(b,function(c){return!c.uuid});
return Irb(a,b)},Z8=function(a,b){ipb(g.$l(a.screens,Uob));
b&&hpb()},Nrb=function(a,b){g.aE.call(this);
this.I=b;b=(b=g.Mz("yt-remote-online-screen-ids")||"")?b.split(","):[];for(var c={},d=this.I(),e=d.length,f=0;f<e;++f){var h=d[f].id;c[h]=g.wb(b,h)}this.j=c;this.D=a;this.B=this.C=NaN;this.u=null;Mrb("Initialized with "+g.Hi(this.j))},Orb=function(a,b,c){var d=P8(a.D,"/pairing/get_screen_availability");
trb(a.D,d,{lounge_token:b.token},(0,g.Ta)(function(e){e=e.screens||[];for(var f=e.length,h=0;h<f;++h)if(e[h].loungeToken==b.token){c("online"==e[h].status);return}c(!1)},a),(0,g.Ta)(function(){c(!1)},a))},Qrb=function(a,b){a:if(Lob(b)!=Lob(a.j))var c=!1;
else{c=g.ad(b);for(var d=c.length,e=0;e<d;++e)if(!a.j[c[e]]){c=!1;break a}c=!0}c||(Mrb("Updated online screens: "+g.Hi(a.j)),a.j=b,a.ma("screenChange"));Prb(a)},$8=function(a){isNaN(a.B)||g.Ay(a.B);
a.B=g.yy((0,g.Ta)(a.PO,a),0<a.C&&a.C<g.Va()?2E4:1E4)},Mrb=function(a){R8("OnlineScreenService",a)},Rrb=function(a){var b={};
g.Ub(a.I(),function(c){c.token?b[c.token]=c.id:this.Qf("Requesting availability of screen w/o lounge token.")});
return b},Prb=function(a){a=g.ad(g.Wc(a.j,function(b){return b}));
g.Rb(a);a.length?g.Lz("yt-remote-online-screen-ids",a.join(","),60):g.Nz("yt-remote-online-screen-ids")},a9=function(a,b){b=void 0===b?!1:b;
W8.call(this,"ScreenService");this.C=a;this.J=b;this.j=this.u=null;this.B=[];this.D={};Srb(this)},Urb=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);
c||(c=a.D[b]);var h=a.zk(),l=c?W7(h,c):null;c&&(a.J||l)||(l=W7(h,b));if(l){l.uuid=b;var m=b9(a,l);Orb(a.j,m,function(n){e(n?m:null)})}else c?Trb(a,c,(0,g.Ta)(function(n){var p=b9(this,new T7({name:d,
screenId:c,loungeToken:n,dialId:b||""}));Orb(this.j,p,function(q){e(q?p:null)})},a),f):e(null)},Vrb=function(a,b){for(var c=a.screens.length,d=0;d<c;++d)if(a.screens[d].name==b)return a.screens[d];
return null},Wrb=function(a,b,c){Orb(a.j,b,c)},Trb=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);
var e={postParams:{screen_ids:b},method:"POST",context:a,onSuccess:function(f,h){f=h&&h.screens||[];f[0]&&f[0].screenId==b?c(f[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
g.Dy(P8(a.C,"/pairing/get_lounge_token_batch"),e)},Xrb=function(a){a.screens=a.u.zk();
var b=a.D,c={},d;for(d in b)c[b[d]]=d;b=a.screens.length;for(d=0;d<b;++d){var e=a.screens[d];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+Xob(a.screens))},Srb=function(a){Yrb(a);
a.u=new Y8(a.C);a.u.subscribe("screenChange",(0,g.Ta)(a.Q3,a));Xrb(a);a.J||(a.B=Wob(g.Mz("yt-remote-automatic-screen-cache")||[]));Yrb(a);a.info("Initializing automatic screens: "+Xob(a.B));a.j=new Nrb(a.C,(0,g.Ta)(a.zk,a,!0));a.j.subscribe("screenChange",(0,g.Ta)(function(){this.ma("onlineScreenChange")},a))},b9=function(a,b){var c=a.get(b.id);
c?(c.uuid=b.uuid,b=c):((c=W7(a.B,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),a.J||Zrb(a));Yrb(a);a.D[b.uuid]=b.id;g.Lz("yt-remote-device-id-map",a.D,31536E3);return b},Zrb=function(a){a=g.On(a.B,function(b){return"shortLived"!=b.idType});
g.Lz("yt-remote-automatic-screen-cache",g.$l(a,Uob))},Yrb=function(a){a.D=g.Mz("yt-remote-device-id-map")||{}},c9=function(a,b,c){g.aE.call(this);
this.Ga=c;this.C=a;this.u=b;this.j=null},d9=function(a,b){a.j=b;
a.ma("sessionScreen",a.j)},$rb=function(a,b){a.j&&(a.j.token=b,b9(a.C,a.j));
a.ma("sessionScreen",a.j)},e9=function(a,b){R8(a.Ga,b)},f9=function(a,b,c){c9.call(this,a,b,"CastSession");
var d=this;this.config_=c;this.B=null;this.oa=(0,g.Ta)(this.C_,this);this.Aa=(0,g.Ta)(this.a8,this);this.Z=g.yy(function(){asb(d,null)},12E4);
this.J=this.D=this.I=this.V=0;this.ya=!1;this.ea="unknown"},csb=function(a,b){g.Ay(a.J);
a.J=0;0==b?bsb(a):a.J=g.yy(function(){bsb(a)},b)},bsb=function(a){dsb(a,"getLoungeToken");
g.Ay(a.D);a.D=g.yy(function(){esb(a,null)},3E4)},dsb=function(a,b){a.info("sendYoutubeMessage_: "+b+" "+g.Hi());
var c={};c.type=b;a.B?a.B.sendMessage("urn:x-cast:com.google.youtube.mdx",c,function(){},(0,g.Ta)(function(){e9(this,"Failed to send message: "+b+".")},a)):e9(a,"Sending yt message without session: "+g.Hi(c))},fsb=function(a,b){b?(a.info("onConnectedScreenId_: Received screenId: "+b),a.j&&a.j.id==b||a.bU(b,function(c){d9(a,c)},function(){return a.ij()},5)):a.ij(Error("Waiting for session status timed out."))},hsb=function(a,b,c){a.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(b));
var d=new T7(b);gsb(a,d,function(e){e?(a.ya=!0,b9(a.C,d),d9(a,d),a.ea="unknown",csb(a,c)):(g.hy(Error("CastSession, RemoteScreen from screenData: "+JSON.stringify(b)+" is not online.")),a.ij())},5)},asb=function(a,b){g.Ay(a.Z);
a.Z=0;b?a.config_.enableCastLoungeToken&&b.loungeToken?b.deviceId?a.j&&a.j.uuid==b.deviceId||(b.loungeTokenRefreshIntervalMs?hsb(a,{name:a.u.friendlyName,screenId:b.screenId,loungeToken:b.loungeToken,dialId:b.deviceId,screenIdType:"shortLived"},b.loungeTokenRefreshIntervalMs):(g.hy(Error("No loungeTokenRefreshIntervalMs presents in mdxSessionStatusData: "+JSON.stringify(b)+".")),fsb(a,b.screenId))):(g.hy(Error("No device id presents in mdxSessionStatusData: "+JSON.stringify(b)+".")),fsb(a,b.screenId)):
fsb(a,b.screenId):a.ij(Error("Waiting for session status timed out."))},esb=function(a,b){g.Ay(a.D);
a.D=0;var c=null;if(b)if(b.loungeToken){var d;(null==(d=a.j)?void 0:d.token)==b.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";else c="noLoungeTokenResponse";c?(a.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(b)+", error: "+c)),a.ea=c,csb(a,3E4)):($rb(a,b.loungeToken),a.ya=!1,a.ea="unknown",csb(a,b.loungeTokenRefreshIntervalMs))},gsb=function(a,b,c,d){g.Ay(a.I);
a.I=0;Wrb(a.C,b,function(e){e||0>d?c(e):a.I=g.yy(function(){gsb(a,b,c,d-1)},300)})},isb=function(a){g.Ay(a.V);
a.V=0;g.Ay(a.I);a.I=0;g.Ay(a.Z);a.Z=0;g.Ay(a.D);a.D=0;g.Ay(a.J);a.J=0},g9=function(a,b,c,d){c9.call(this,a,b,"DialSession");
this.config_=d;this.B=this.V=null;this.Aa="";this.Pa=c;this.La=null;this.Z=function(){};
this.ea=NaN;this.Ja=(0,g.Ta)(this.D_,this);this.D=function(){};
this.J=this.I=0;this.oa=!1;this.ya="unknown"},h9=function(a){var b;
return!!(a.config_.enableDialLoungeToken&&(null==(b=a.B)?0:b.getDialAppInfo))},jsb=function(a){a.D=a.C.gR(a.Aa,a.u.label,a.u.friendlyName,h9(a),function(b,c){a.D=function(){};
a.oa=!0;d9(a,b);"shortLived"==b.idType&&0<c&&i9(a,c)},function(b){a.D=function(){};
a.ij(b)})},ksb=function(a){var b={};
b.pairingCode=a.Aa;b.theme=a.Pa;kpb()&&(b.env_useStageMdx=1);return g.Ti(b)},lsb=function(a){return new Promise(function(b){a.Aa=Yob();
if(a.La){var c=new chrome.cast.DialLaunchResponse(!0,ksb(a));b(c);jsb(a)}else a.Z=function(){g.Ay(a.ea);a.Z=function(){};
a.ea=NaN;var d=new chrome.cast.DialLaunchResponse(!0,ksb(a));b(d);jsb(a)},a.ea=g.yy(function(){a.Z()},100)})},nsb=function(a,b,c){a.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(b));
var d=new T7(b);return(new Promise(function(e){msb(a,d,function(f){f?(a.oa=!0,b9(a.C,d),d9(a,d),i9(a,c)):g.hy(Error("DialSession, RemoteScreen from screenData: "+JSON.stringify(b)+" is not online."));e(f)},5)})).then(function(e){return e?new chrome.cast.DialLaunchResponse(!1):lsb(a)})},osb=function(a,b){var c=a.V.receiver.label,d=a.u.friendlyName;
return(new Promise(function(e){Urb(a.C,c,b,d,function(f){f&&f.token&&d9(a,f);e(f)},function(f){e9(a,"Failed to get DIAL screen: "+f);
e(null)})})).then(function(e){return e&&e.token?new chrome.cast.DialLaunchResponse(!1):lsb(a)})},msb=function(a,b,c,d){g.Ay(a.I);
a.I=0;Wrb(a.C,b,function(e){e||0>d?c(e):a.I=g.yy(function(){msb(a,b,c,d-1)},300)})},i9=function(a,b){a.info("getDialAppInfoWithTimeout_ "+b);
h9(a)&&(g.Ay(a.J),a.J=0,0==b?psb(a):a.J=g.yy(function(){psb(a)},b))},psb=function(a){h9(a)&&a.B.getDialAppInfo(function(b){a.info("getDialAppInfo dialLaunchData: "+JSON.stringify(b));
b=b.extraData||{};var c=null;if(b.loungeToken){var d;(null==(d=a.j)?void 0:d.token)==b.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";c?(a.ya=c,i9(a,3E4)):(a.oa=!1,a.ya="unknown",$rb(a,b.loungeToken),i9(a,b.loungeTokenRefreshIntervalMs))},function(b){a.info("getDialAppInfo error: "+b);
a.ya="noLoungeTokenResponse";i9(a,3E4)})},qsb=function(a){g.Ay(a.I);
a.I=0;g.Ay(a.J);a.J=0;a.D();a.D=function(){};
g.Ay(a.ea)},j9=function(a,b){c9.call(this,a,b,"ManualSession");
this.B=g.yy((0,g.Ta)(this.Vy,this,null),150)},k9=function(a,b){g.aE.call(this);
this.config_=b;this.u=a;this.V=b.appId||"233637DE";this.C=b.theme||"cl";this.ea=b.disableCastApi||!1;this.I=b.forceMirroring||!1;this.j=null;this.J=!1;this.B=[];this.D=(0,g.Ta)(this.U6,this)},rsb=function(a,b){return b?g.sb(a.B,function(c){return U7(b,c.label)},a):null},l9=function(a){R8("Controller",a)},Arb=function(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)},m9=function(a){return a.J||!!a.B.length||!!a.j},n9=function(a,b,c){b!=a.j&&(g.gb(a.j),(a.j=b)?(c?a.ma("yt-remote-cast2-receiver-resumed",
b.u):a.ma("yt-remote-cast2-receiver-selected",b.u),b.subscribe("sessionScreen",(0,g.Ta)(a.DW,a,b)),b.subscribe("sessionFailed",function(){return ssb(a,b)}),b.j?a.ma("yt-remote-cast2-session-change",b.j):c&&a.j.Vy(null)):a.ma("yt-remote-cast2-session-change",null))},ssb=function(a,b){a.j==b&&a.ma("yt-remote-cast2-session-failed")},tsb=function(a){var b=a.u.fR(),c=a.j&&a.j.u;
a=g.$l(b,function(d){c&&U7(d,c.label)&&(c=null);var e=d.uuid?d.uuid:d.id,f=rsb(this,d);f?(f.label=e,f.friendlyName=d.name):(f=new chrome.cast.Receiver(e,d.name),f.receiverType=chrome.cast.ReceiverType.CUSTOM);return f},a);
c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a},Asb=function(a,b,c,d){d.disableCastApi?o9("Cannot initialize because disabled by Mdx config."):usb()?vsb(b,d)&&(wsb(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?xsb(a,c):(window.__onGCastApiAvailable=function(e,f){e?xsb(a,c):(p9("Failed to load cast API: "+f),ysb(!1),wsb(!1),g.Nz("yt-remote-cast-available"),g.Nz("yt-remote-cast-receiver"),
zsb(),c(!1))},d.loadCastApiSetupScript?g.oC("https://web.archive.org/web/20230505074657/https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):0<=window.navigator.userAgent.indexOf("Android")&&0<=window.navigator.userAgent.indexOf("Chrome/")&&window.navigator.presentation?60<=lpb()&&upb():!window.chrome||!window.navigator.presentation||0<=window.navigator.userAgent.indexOf("Edge")?ppb():89<=lpb()?wpb():(tpb(),b8(vpb.map(qpb))))):o9("Cannot initialize because not running Chrome")},zsb=function(){o9("dispose");
var a=q9();a&&a.dispose();g.Ka("yt.mdx.remote.cloudview.instance_",null);Bsb(!1);g.mC(Csb);Csb.length=0},r9=function(){return!!g.Mz("yt-remote-cast-installed")},Dsb=function(){var a=g.Mz("yt-remote-cast-receiver");
return a?a.friendlyName:null},Esb=function(){o9("clearCurrentReceiver");
g.Nz("yt-remote-cast-receiver")},Fsb=function(){return r9()?q9()?q9().getCastSession():(p9("getCastSelector: Cast is not initialized."),null):(p9("getCastSelector: Cast API is not installed!"),null)},Gsb=function(){r9()?q9()?s9()?(o9("Requesting cast selector."),q9().requestSession()):(o9("Wait for cast API to be ready to request the session."),Csb.push(g.lC("yt-remote-cast2-api-ready",Gsb))):p9("requestCastSelector: Cast is not initialized."):p9("requestCastSelector: Cast API is not installed!")},
t9=function(a,b){s9()?q9().setConnectedScreenStatus(a,b):p9("setConnectedScreenStatus called before ready.")},usb=function(){var a=0<=g.hc().search(/ (CrMo|Chrome|CriOS)\//);
return g.hI||a},Hsb=function(a,b){q9().init(a,b)},vsb=function(a,b){var c=!1;
q9()||(a=new k9(a,b),a.subscribe("yt-remote-cast2-availability-change",function(d){g.Lz("yt-remote-cast-available",d);a8("yt-remote-cast2-availability-change",d)}),a.subscribe("yt-remote-cast2-receiver-selected",function(d){o9("onReceiverSelected: "+d.friendlyName);
g.Lz("yt-remote-cast-receiver",d);a8("yt-remote-cast2-receiver-selected",d)}),a.subscribe("yt-remote-cast2-receiver-resumed",function(d){o9("onReceiverResumed: "+d.friendlyName);
g.Lz("yt-remote-cast-receiver",d);a8("yt-remote-cast2-receiver-resumed",d)}),a.subscribe("yt-remote-cast2-session-change",function(d){o9("onSessionChange: "+V7(d));
d||g.Nz("yt-remote-cast-receiver");a8("yt-remote-cast2-session-change",d)}),g.Ka("yt.mdx.remote.cloudview.instance_",a),c=!0);
o9("cloudview.createSingleton_: "+c);return c},q9=function(){return g.La("yt.mdx.remote.cloudview.instance_")},xsb=function(a,b){ysb(!0);
wsb(!1);Hsb(a,function(c){c?(Bsb(!0),g.nC("yt-remote-cast2-api-ready")):(p9("Failed to initialize cast API."),ysb(!1),g.Nz("yt-remote-cast-available"),g.Nz("yt-remote-cast-receiver"),zsb());b(c)})},o9=function(a){R8("cloudview",a)},p9=function(a){R8("cloudview",a)},ysb=function(a){o9("setCastInstalled_ "+a);
g.Lz("yt-remote-cast-installed",a)},s9=function(){return!!g.La("yt.mdx.remote.cloudview.apiReady_")},Bsb=function(a){o9("setApiReady_ "+a);
g.Ka("yt.mdx.remote.cloudview.apiReady_",a)},wsb=function(a){g.Ka("yt.mdx.remote.cloudview.initializing_",a)},u9=function(a){this.index=-1;
this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.I=this.J=0;this.trackData=null;this.Dk=this.No=!1;this.V=this.D=this.j=this.C=0;this.B=NaN;this.u=!1;this.reset(a)},Isb=function(a){a.audioTrackId=null;
a.trackData=null;a.playerState=-1;a.No=!1;a.Dk=!1;a.J=0;a.I=g.Va();a.C=0;a.j=0;a.D=0;a.V=0;a.B=NaN;a.u=!1},G9=function(a){return a.Yc()?(g.Va()-a.I)/1E3:0},I9=function(a,b){a.J=b;
a.I=g.Va()},J9=function(a){switch(a.playerState){case 1:case 1081:return(g.Va()-a.I)/1E3+a.J;
case -1E3:return 0}return a.J},K9=function(a,b,c){var d=a.videoId;
a.videoId=b;a.index=c;b!=d&&Isb(a)},Jsb=function(a){var b={};
b.index=a.index;b.listId=a.listId;b.videoId=a.videoId;b.playerState=a.playerState;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=g.kd(a.trackData);b.hasPrevious=a.No;b.hasNext=a.Dk;b.playerTime=a.J;b.playerTimeAt=a.I;b.seekableStart=a.C;b.seekableEnd=a.j;b.duration=a.D;b.loadedTime=a.V;b.liveIngestionTime=a.B;return b},M9=function(a,b){g.aE.call(this);
this.B=0;this.C=a;this.I=[];this.D=new mrb;this.u=this.j=null;this.ea=(0,g.Ta)(this.I5,this);this.J=(0,g.Ta)(this.VC,this);this.V=(0,g.Ta)(this.H5,this);this.Z=(0,g.Ta)(this.N5,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.hP,this),Ksb(this))):c=3;0!=c&&(b?this.hP(c):g.yy((0,g.Ta)(function(){this.hP(c)},this),0));
(a=Fsb())&&L9(this,a);this.subscribe("yt-remote-cast2-session-change",this.Z)},N9=function(a){return new u9(a.C.getPlayerContextData())},Ksb=function(a){g.Ub("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(b){this.I.push(this.C.subscribe(b,g.Ua(this.S6,b),this))},a)},Lsb=function(a){g.Ub(a.I,function(b){this.C.unsubscribeByKey(b)},a);
a.I.length=0},O9=function(a){return 1==a.getState()},P9=function(a,b){var c=a.D;
50>c.j.length+c.u.length&&a.D.u.push(b)},Msb=function(a,b,c){var d=N9(a);
I9(d,c);-1E3!=d.playerState&&(d.playerState=b);Q9(a,d)},R9=function(a,b,c){a.C.sendMessage(b,c)},Q9=function(a,b){Lsb(a);
a.C.setPlayerContextData(Jsb(b));Ksb(a)},L9=function(a,b){a.u&&(a.u.removeUpdateListener(a.ea),a.u.removeMediaListener(a.J),a.VC(null));
a.u=b;a.u&&(S8("Setting cast session: "+a.u.sessionId),a.u.addUpdateListener(a.ea),a.u.addMediaListener(a.J),a.u.media.length&&a.VC(a.u.media[0]))},Nsb=function(a){var b=a.j.media,c=a.j.customData;
if(b&&c){var d=N9(a);b.contentId!=d.videoId&&S8("Cast changing video to: "+b.contentId);d.videoId=b.contentId;d.playerState=c.playerState;I9(d,a.j.getEstimatedTime());Q9(a,d)}else S8("No cast media video. Ignoring state update.")},S9=function(a,b,c){return(0,g.Ta)(function(d){this.Qf("Failed to "+b+" with cast v2 channel. Error code: "+d.code);
d.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.Qf("Retrying "+b+" using MDx browser channel."),R9(this,b,c))},a)},V9=function(a,b,c,d){d=void 0===d?!1:d;
g.aE.call(this);var e=this;this.I=NaN;this.Aa=!1;this.ea=this.V=this.oa=this.ya=NaN;this.Z=[];this.D=this.J=this.C=this.j=this.u=null;this.La=a;this.Ja=d;this.Z.push(g.Az(window,"beforeunload",function(){e.ly(2)}));
this.B=[];this.j=new u9;this.Pa=b.id;this.Ga=b.idType;this.u=zrb(this.La,c,this.kR,"shortLived"==this.Ga,this.Pa);this.u.Ra("channelOpened",function(){Osb(e)});
this.u.Ra("channelClosed",function(){T9("Channel closed");isNaN(e.I)?Z7(!0):Z7();e.dispose()});
this.u.Ra("channelError",function(f){Z7();isNaN(e.TB())?(1==f&&"shortLived"==e.Ga&&e.ma("browserChannelAuthError",f),T9("Channel error: "+f+" without reconnection"),e.dispose()):(e.Aa=!0,T9("Channel error: "+f+" with reconnection in "+e.TB()+" ms"),U9(e,2))});
this.u.Ra("channelMessage",function(f){Psb(e,f)});
this.u.Rq(b.token);this.subscribe("remoteQueueChange",function(){var f=e.j.videoId;g.Oz()&&g.Lz("yt-remote-session-video-id",f)})},Qsb=function(a){return g.sb(a.B,function(b){return"LOUNGE_SCREEN"==b.type})},T9=function(a){R8("conn",a)},U9=function(a,b){a.ma("proxyStateChange",b)},Rsb=function(a){a.I=g.yy(function(){T9("Connecting timeout");
a.ly(1)},2E4)},Ssb=function(a){g.Ay(a.I);
a.I=NaN},Tsb=function(a){g.Ay(a.ya);
a.ya=NaN},Vsb=function(a){Usb(a);
a.oa=g.yy(function(){W9(a,"getNowPlaying")},2E4)},Usb=function(a){g.Ay(a.oa);
a.oa=NaN},Osb=function(a){T9("Channel opened");
a.Aa&&(a.Aa=!1,Tsb(a),a.ya=g.yy(function(){T9("Timing out waiting for a screen.");a.ly(1)},15E3))},Xsb=function(a,b){var c=null;
if(b){var d=Qsb(a);d&&(c={clientName:d.clientName,deviceMake:d.brand,deviceModel:d.model,osVersion:d.osVersion})}g.Ka("yt.mdx.remote.remoteClient_",c);b&&(Ssb(a),Tsb(a));c=a.u.Ny()&&isNaN(a.I);b==c?b&&(U9(a,1),W9(a,"getSubtitlesTrack")):b?(a.ZT()&&a.j.reset(),U9(a,1),W9(a,"getNowPlaying"),Wsb(a)):a.ly(1)},Ysb=function(a,b){var c=b.params.videoId;
delete b.params.videoId;c==a.j.videoId&&(g.fd(b.params)?a.j.trackData=null:a.j.trackData=b.params,a.ma("remotePlayerChange"))},Zsb=function(a,b,c){var d=b.params.videoId||b.params.video_id,e=parseInt(b.params.currentIndex,10);
a.j.listId=b.params.listId||a.j.listId;K9(a.j,d,e);a.ma("remoteQueueChange",c)},atb=function(a,b){b.params=b.params||{};
Zsb(a,b,"NOW_PLAYING_MAY_CHANGE");$sb(a,b);a.ma("autoplayDismissed")},$sb=function(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);
I9(a.j,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.j.playerState&&(c=-1E3);a.j.playerState=c;c=Number(b.params.loadedTime);a.j.V=isNaN(c)?0:c;a.j.Tk(Number(b.params.duration));c=a.j;var d=Number(b.params.liveIngestionTime);c.B=d;c.u=isNaN(d)?!1:!0;c=a.j;d=Number(b.params.seekableStartTime);b=Number(b.params.seekableEndTime);c.C=isNaN(d)?0:d;c.j=isNaN(b)?0:b;1==a.j.playerState?Vsb(a):Usb(a);a.ma("remotePlayerChange")},btb=function(a,b){if(-1E3!=a.j.playerState){var c=
1085;
switch(parseInt(b.params.adState,10)){case 1:c=1081;break;case 2:c=1084;break;case 0:c=1083}a.j.playerState=c;b=parseInt(b.params.currentTime,10);I9(a.j,isNaN(b)?0:b);a.ma("remotePlayerChange")}},ctb=function(a,b){var c="true"==b.params.muted;
a.j.volume=parseInt(b.params.volume,10);a.j.muted=c;a.ma("remotePlayerChange")},dtb=function(a,b){a.J=b.params.videoId;
a.ma("nowAutoplaying",parseInt(b.params.timeout,10))},etb=function(a,b){a.J=b.params.videoId||null;
a.ma("autoplayUpNext",a.J)},ftb=function(a,b){a.D=b.params.autoplayMode;
a.ma("autoplayModeChange",a.D);"DISABLED"==a.D&&a.ma("autoplayDismissed")},gtb=function(a,b){var c="true"==b.params.hasNext;
a.j.No="true"==b.params.hasPrevious;a.j.Dk=c;a.ma("previousNextChange")},Psb=function(a,b){b=b.message;
b.params?T9("Received: action="+b.action+", params="+g.Hi(b.params)):T9("Received: action="+b.action+" {}");switch(b.action){case "loungeStatus":b=R7(b.params.devices);a.B=g.$l(b,function(d){return new S7(d)});
b=!!g.sb(a.B,function(d){return"LOUNGE_SCREEN"==d.type});
Xsb(a,b);b=a.SU("mlm");a.ma("multiStateLoopEnabled",b);break;case "loungeScreenDisconnected":g.Bb(a.B,function(d){return"LOUNGE_SCREEN"==d.type});
Xsb(a,!1);break;case "remoteConnected":var c=new S7(R7(b.params.device));g.sb(a.B,function(d){return d.equals(c)})||Kob(a.B,c);
break;case "remoteDisconnected":c=new S7(R7(b.params.device));g.Bb(a.B,function(d){return d.equals(c)});
break;case "gracefulDisconnect":break;case "playlistModified":Zsb(a,b,"QUEUE_MODIFIED");break;case "nowPlaying":atb(a,b);break;case "onStateChange":$sb(a,b);break;case "onAdStateChange":btb(a,b);break;case "onVolumeChanged":ctb(a,b);break;case "onSubtitlesTrackChanged":Ysb(a,b);break;case "nowAutoplaying":dtb(a,b);break;case "autoplayDismissed":a.ma("autoplayDismissed");break;case "autoplayUpNext":etb(a,b);break;case "onAutoplayModeChanged":ftb(a,b);break;case "onHasPreviousNextChanged":gtb(a,b);
break;case "requestAssistedSignIn":a.ma("assistedSignInRequested",b.params.authCode);break;case "onLoopModeChanged":a.ma("loopModeChange",b.params.loopMode);break;default:T9("Unrecognized action: "+b.action)}},Wsb=function(a){g.Ay(a.ea);
a.ea=g.yy(function(){a.ly(1)},864E5)},W9=function(a,b,c){c?T9("Sending: action="+b+", params="+g.Hi(c)):T9("Sending: action="+b);
a.u.sendMessage(b,c)},htb=function(a){W8.call(this,"ScreenServiceProxy");
this.Sg=a;this.j=[];this.j.push(this.Sg.$_s("screenChange",(0,g.Ta)(this.H_,this)));this.j.push(this.Sg.$_s("onlineScreenChange",(0,g.Ta)(this.A6,this)))},mtb=function(a,b){jpb();
if(!$7||!$7.get("yt-remote-disable-remote-module-for-dev")){b=g.ay("MDX_CONFIG")||b;apb();epb();X9||(X9=new O8(b?b.loungeApiHost:void 0),kpb()&&(X9.j="/api/loungedev"));Y9||(Y9=g.La("yt.mdx.remote.deferredProxies_")||[],g.Ka("yt.mdx.remote.deferredProxies_",Y9));itb();var c=Z9();if(!c){var d=new a9(X9,b?b.disableAutomaticScreenCache||!1:!1);g.Ka("yt.mdx.remote.screenService_",d);c=Z9();var e={};b&&(e={appId:b.appId,disableDial:b.disableDial,theme:b.theme,loadCastApiSetupScript:b.loadCastApiSetupScript,
disableCastApi:b.disableCastApi,enableDialLoungeToken:b.enableDialLoungeToken,enableCastLoungeToken:b.enableCastLoungeToken,forceMirroring:b.forceMirroring});g.Ka("yt.mdx.remote.enableConnectWithInitialState_",b?b.enableConnectWithInitialState||!1:!1);Asb(a,d,function(f){f?$9()&&t9($9(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){a8("yt-remote-receiver-availability-change")})},e)}b&&!g.La("yt.mdx.remote.initialized_")&&(g.Ka("yt.mdx.remote.initialized_",!0),a$("Initializing: "+g.Hi(b)),
b$.push(g.lC("yt-remote-cast2-api-ready",function(){a8("yt-remote-api-ready")})),b$.push(g.lC("yt-remote-cast2-availability-change",function(){a8("yt-remote-receiver-availability-change")})),b$.push(g.lC("yt-remote-cast2-receiver-selected",function(){c$(null);
a8("yt-remote-auto-connect","cast-selector-receiver")})),b$.push(g.lC("yt-remote-cast2-receiver-resumed",function(){a8("yt-remote-receiver-resumed","cast-selector-receiver")})),b$.push(g.lC("yt-remote-cast2-session-change",jtb)),b$.push(g.lC("yt-remote-connection-change",function(f){f?t9($9(),"YouTube TV"):d$()||(t9(null,null),Esb())})),b$.push(g.lC("yt-remote-cast2-session-failed",function(){a8("yt-remote-connection-failed")})),a=ktb(),b.isAuto&&(a.id+="#dial"),e=b.capabilities||[],g.cy("desktop_enable_autoplay")&&
e.push("atp"),0<e.length&&(a.capabilities=e),a.name=b.device,a.app=b.app,(b=b.theme)&&(a.theme=b),a$(" -- with channel params: "+g.Hi(a)),a?(g.Lz("yt-remote-session-app",a.app),g.Lz("yt-remote-session-name",a.name)):(g.Nz("yt-remote-session-app"),g.Nz("yt-remote-session-name")),g.Ka("yt.mdx.remote.channelParams_",a),c.start(),$9()||ltb())}},ntb=function(){var a=Z9().Sg.$_gos();
var b=e$();b&&f$()&&($ob(a,b)||a.push(b));return Zob(a)},ptb=function(){var a=otb();
!a&&r9()&&Dsb()&&(a={key:"cast-selector-receiver",name:Dsb()});return a},otb=function(){var a=ntb(),b=e$();
b||(b=d$());return g.sb(a,function(c){return b&&U7(b,c.key)?!0:!1})},e$=function(){var a=$9();
if(!a)return null;var b=Z9().zk();return W7(b,a)},jtb=function(a){a$("remote.onCastSessionChange_: "+V7(a));
if(a){var b=e$();if(b&&b.id==a.id){if(t9(b.id,"YouTube TV"),"shortLived"==a.idType&&(a=a.token))g$&&(g$.token=a),(b=f$())&&b.Rq(a)}else b&&h$(),i$(a,1)}else f$()&&h$()},h$=function(){s9()?q9().stopSession():p9("stopSession called before API ready.");
var a=f$();a&&(a.disconnect(1),qtb(null))},rtb=function(){var a=f$();
return!!a&&3!=a.getProxyState()},a$=function(a){R8("remote",a)},Z9=function(){if(!stb){var a=g.La("yt.mdx.remote.screenService_");
stb=a?new htb(a):null}return stb},$9=function(){return g.La("yt.mdx.remote.currentScreenId_")},ttb=function(a){g.Ka("yt.mdx.remote.currentScreenId_",a)},utb=function(){return g.La("yt.mdx.remote.connectData_")},c$=function(a){g.Ka("yt.mdx.remote.connectData_",a)},f$=function(){return g.La("yt.mdx.remote.connection_")},qtb=function(a){var b=f$();
c$(null);a||ttb("");g.Ka("yt.mdx.remote.connection_",a);Y9&&(g.Ub(Y9,function(c){c(a)}),Y9.length=0);
b&&!a?a8("yt-remote-connection-change",!1):!b&&a&&a8("yt-remote-connection-change",!0)},d$=function(){var a=g.Oz();
if(!a)return null;var b=Z9();if(!b)return null;b=b.zk();return W7(b,a)},i$=function(a,b){$9();
e$()&&e$();if(j$)g$=a;else{ttb(a.id);var c=g.La("yt.mdx.remote.enableConnectWithInitialState_")||!1;a=new V9(X9,a,ktb(),c);a.connect(b,utb());a.subscribe("beforeDisconnect",function(d){a8("yt-remote-before-disconnect",d)});
a.subscribe("beforeDispose",function(){f$()&&(f$(),qtb(null))});
a.subscribe("browserChannelAuthError",function(){var d=e$();d&&"shortLived"==d.idType&&(s9()?q9().handleBrowserChannelAuthError():p9("refreshLoungeToken called before API ready."))});
qtb(a)}},ltb=function(){var a=d$();
a?(a$("Resume connection to: "+V7(a)),i$(a,0)):(Z7(),Esb(),a$("Skipping connecting because no session screen found."))},itb=function(){var a=ktb();
if(g.fd(a)){a=Y7();var b=g.Mz("yt-remote-session-name")||"",c=g.Mz("yt-remote-session-app")||"";a={device:"REMOTE_CONTROL",id:a,name:b,app:c,mdxVersion:3};a.authuser=String(g.ay("SESSION_INDEX","0"));(b=g.ay("DELEGATED_SESSION_ID"))&&(a.pageId=String(b));g.Ka("yt.mdx.remote.channelParams_",a)}},ktb=function(){return g.La("yt.mdx.remote.channelParams_")||{}},xtb=function(a,b,c){g.E.call(this);
var d=this;this.module=a;this.F=b;this.zc=c;this.events=new g.eI(this);this.ea=this.events.S(this.F,"onVolumeChange",function(e){vtb(d,e)});
this.C=!1;this.D=new g.OO(64);this.j=new g.Ap(this.TX,500,this);this.u=new g.Ap(this.UX,1E3,this);this.J=new d8(this.N9,0,this);this.B={};this.V=new g.Ap(this.JY,1E3,this);this.I=new e8(this.seekTo,1E3,this);g.I(this,this.events);this.events.S(b,"onCaptionsTrackListChanged",this.l6);this.events.S(b,"captionschanged",this.F5);this.events.S(b,"captionssettingschanged",this.dY);this.events.S(b,"videoplayerreset",this.gH);this.events.S(b,"mdxautoplaycancel",function(){d.zc.jT()});
b.K("enable_mdx_video_play_directly")&&this.events.S(b,"videodatachange",function(){wtb(d.module)||k$(d)||l$(d,0)});
a=this.zc;a.isDisposed();a.subscribe("proxyStateChange",this.yW,this);a.subscribe("remotePlayerChange",this.bD,this);a.subscribe("remoteQueueChange",this.gH,this);a.subscribe("previousNextChange",this.vW,this);a.subscribe("nowAutoplaying",this.qW,this);a.subscribe("autoplayDismissed",this.UV,this);g.I(this,this.j);g.I(this,this.u);g.I(this,this.J);g.I(this,this.V);g.I(this,this.I);this.dY();this.gH();this.bD()},vtb=function(a,b){if(k$(a)){a.zc.unsubscribe("remotePlayerChange",a.bD,a);
var c=Math.round(b.volume);b=!!b.muted;var d=N9(a.zc);if(c!==d.volume||b!==d.muted)a.zc.setVolume(c,b),a.V.start();a.zc.subscribe("remotePlayerChange",a.bD,a)}},ytb=function(a){a.wc(0);
a.j.stop();a.lc(new g.OO(64))},ztb=function(a,b){if(k$(a)&&!a.C){var c=null;
b&&(c={style:a.F.getSubtitlesUserSettings()},g.ld(c,b));a.zc.jR(a.F.getVideoData(1).videoId,c);a.B=N9(a.zc).trackData}},l$=function(a,b){var c=a.F.getPlaylist();
if(null==c?0:c.listId){var d=c.index;var e=c.listId.toString()}c=a.F.getVideoData(1);a.zc.playVideo(c.videoId,b,d,e,c.playerParams,c.ya,Job(c));a.lc(new g.OO(1))},Atb=function(a,b){if(b){var c=a.F.getOption("captions","tracklist",{IU:1});
c&&c.length?(a.F.setOption("captions","track",b),a.C=!1):(a.F.loadModule("captions"),a.C=!0)}else a.F.setOption("captions","track",{})},k$=function(a){return N9(a.zc).videoId===a.F.getVideoData(1).videoId},m$=function(){g.V.call(this,{G:"div",
N:"ytp-mdx-popup-dialog",X:{role:"dialog"},W:[{G:"div",N:"ytp-mdx-popup-dialog-inner-content",W:[{G:"div",N:"ytp-mdx-popup-title",ra:"You're signed out"},{G:"div",N:"ytp-mdx-popup-description",ra:"Videos you watch may be added to the TV's watch history and influence TV recommendations. To avoid this, cancel and sign in to YouTube on your computer."},{G:"div",N:"ytp-mdx-privacy-popup-buttons",W:[{G:"button",Ia:["ytp-button","ytp-mdx-privacy-popup-cancel"],ra:"Cancel"},{G:"button",Ia:["ytp-button",
"ytp-mdx-privacy-popup-confirm"],ra:"Confirm"}]}]}]});this.j=new g.WQ(this,250);this.cancelButton=this.Da("ytp-mdx-privacy-popup-cancel");this.confirmButton=this.Da("ytp-mdx-privacy-popup-confirm");g.I(this,this.j);this.S(this.cancelButton,"click",this.u);this.S(this.confirmButton,"click",this.B)},n$=function(a){g.V.call(this,{G:"div",
N:"ytp-remote",W:[{G:"div",N:"ytp-remote-display-status",W:[{G:"div",N:"ytp-remote-display-status-icon",W:[g.GEa()]},{G:"div",N:"ytp-remote-display-status-text",ra:"{{statustext}}"}]}]});this.api=a;this.j=new g.WQ(this,250);g.I(this,this.j);this.S(a,"presentingplayerstatechange",this.onStateChange);this.pc(a.Cb())},o$=function(a,b){g.zV.call(this,"Play on",1,a,b);
this.F=a;this.qt={};this.S(a,"onMdxReceiversChange",this.C);this.S(a,"presentingplayerstatechange",this.C);this.C()},Btb=function(a){g.tT.call(this,a);
this.Xo={key:Yob(),name:"This computer"};this.wl=null;this.subscriptions=[];this.uO=this.zc=null;this.qt=[this.Xo];this.Or=this.Xo;this.Te=new g.OO(64);this.fV=0;this.yh=-1;this.pD=!1;this.nD=this.yz=null;if(!g.pK(this.player.T())&&!g.qK(this.player.T())){a=this.player;var b=g.iS(a);b&&(b=b.Nm())&&(b=new o$(a,b),g.I(this,b));b=new n$(a);g.I(this,b);g.yS(a,b.element,4);this.yz=new m$;g.I(this,this.yz);g.yS(a,this.yz.element,4);this.pD=!!d$()}},p$=function(a){a.nD&&(a.player.removeEventListener("presentingplayerstatechange",
a.nD),a.nD=null)},Ctb=function(a,b,c){a.Te=c;
a.player.ma("presentingplayerstatechange",new g.$N(c,b))},q$=function(a,b){if(b.key!==a.Or.key)if(b.key===a.Xo.key)h$();
else if(wtb(a)&&Dtb(a),a.Or=b,!a.player.T().K("disable_mdx_connection_in_mdx_module_for_music_web")||!g.qK(a.player.T())){var c=a.player.getPlaylistId();var d=a.player.getVideoData(1);var e=d.videoId;if(!c&&!e||(2===a.player.getAppState()||1===a.player.getAppState())&&a.player.T().K("should_clear_video_data_on_player_cued_unstarted"))d=null;else{var f=a.player.getPlaylist();if(f){var h=[];for(var l=0;l<f.length;l++)h[l]=g.qT(f,l).videoId}else h=[e];f=a.player.getCurrentTime(1);a={videoIds:h,listId:c,
videoId:e,playerParams:d.playerParams,clickTrackingParams:d.ya,index:Math.max(a.player.getPlaylistIndex(),0),currentTime:0===f?void 0:f};(d=Job(d))&&(a.locationInfo=d);d=a}a$("Connecting to: "+g.Hi(b));"cast-selector-receiver"==b.key?(c$(d||null),b=d||null,s9()?q9().setLaunchParams(b):p9("setLaunchParams called before ready.")):!d&&rtb()&&$9()==b.key?a8("yt-remote-connection-change",!0):(h$(),c$(d||null),d=Z9().zk(),(b=W7(d,b.key))&&i$(b,1))}},wtb=function(a){var b;
(b=!a.player.T().K("mdx_enable_privacy_disclosure_ui"))||(b=((b=g.ay("PLAYER_CONFIG"))&&b.args&&void 0!==b.args.authuser?!0:!(!g.ay("SESSION_INDEX")&&!g.ay("LOGGED_IN")))||a.pD||!a.yz);return b?!1:g.GK(a.player.T())||g.JK(a.player.T())},Dtb=function(a){a.player.Cb().Yc()?a.player.pauseVideo():(a.nD=function(b){!a.pD&&g.bO(b,8)&&(a.player.pauseVideo(),p$(a))},a.player.addEventListener("presentingplayerstatechange",a.nD));
a.yz&&a.yz.md();f$()||(j$=!0)};
g.Ns.prototype.gs=g.ba(0,function(){return g.Nh(this,6)});
var Lqb={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},F8={"'":"\\'"},Sob={uia:"atp",kUa:"ska",zRa:"que",LJa:"mus",jUa:"sus",hwa:"dsp",CSa:"seq",EIa:"mic",Poa:"dpa",rja:"cds",BJa:"mlm",Doa:"dsdtr",mKa:"ntb",t3a:"vsp",Gpa:"scn"},Tob={t1:"u",CLASSIC:"cl",O0:"k",HZ:"i",qZ:"cr",U0:"m",EZ:"g",iS:"up"};S7.prototype.equals=function(a){return a?this.id==a.id:!1};
var $7,dpb="",spb=mpb("loadCastFramework")||mpb("loadCastApplicationFramework"),vpb=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","enhhojjnijigcajfphajepfemndkmdlo"];g.Ya(d8,g.E);g.k=d8.prototype;g.k.g_=function(a){this.C=arguments;this.j=!1;this.Ec?this.B=g.Va()+this.Ei:this.Ec=g.Mf(this.D,this.Ei)};
g.k.stop=function(){this.Ec&&(g.Ja.clearTimeout(this.Ec),this.Ec=null);this.B=null;this.j=!1;this.C=[]};
g.k.pause=function(){++this.u};
g.k.resume=function(){this.u&&(--this.u,!this.u&&this.j&&(this.j=!1,this.I.apply(null,this.C)))};
g.k.qa=function(){this.stop();d8.Ff.qa.call(this)};
g.k.h_=function(){this.Ec&&(g.Ja.clearTimeout(this.Ec),this.Ec=null);this.B?(this.Ec=g.Mf(this.D,this.B-g.Va()),this.B=null):this.u?this.j=!0:(this.j=!1,this.I.apply(null,this.C))};g.x(e8,g.E);g.k=e8.prototype;g.k.iJ=function(a){this.B=arguments;this.Ec||this.u?this.j=!0:Hpb(this)};
g.k.stop=function(){this.Ec&&(g.Ja.clearTimeout(this.Ec),this.Ec=null,this.j=!1,this.B=null)};
g.k.pause=function(){this.u++};
g.k.resume=function(){this.u--;this.u||!this.j||this.Ec||(this.j=!1,Hpb(this))};
g.k.qa=function(){g.E.prototype.qa.call(this);this.stop()};f8.prototype.stringify=function(a){return g.Ja.JSON.stringify(a,void 0)};
f8.prototype.parse=function(a){return g.Ja.JSON.parse(a,void 0)};g.Ya(Ipb,g.pb);g.Ya(Jpb,g.pb);var Kpb=null;g.Ya(Mpb,g.pb);g.Ya(Npb,g.pb);g.Ya(Opb,g.pb);Ppb.prototype.info=function(){};
Ppb.prototype.warning=function(){};var Wpb={},l8={};g.k=j8.prototype;g.k.setTimeout=function(a){this.Nb=a};
g.k.k_=function(a){a=a.target;var b=this.Ya;b&&3==g.aj(a)?b.iJ():this.NQ(a)};
g.k.NQ=function(a){try{if(a==this.j)a:{var b=g.aj(this.j),c=this.j.u,d=this.j.getStatus();if(!(3>b)&&(3!=b||g.KK||this.j&&(this.u.u||g.pj(this.j)||g.qj(this.j)))){this.Ja||4!=b||7==c||(8==c||0>=d?g8(3):g8(2));o8(this);var e=this.j.getStatus();this.Ub=e;b:if(Upb(this)){var f=g.qj(this.j);a="";var h=f.length,l=4==g.aj(this.j);if(!this.u.B){if("undefined"===typeof TextDecoder){m8(this);n8(this);var m="";break b}this.u.B=new g.Ja.TextDecoder}for(c=0;c<h;c++)this.u.u=!0,a+=this.u.B.decode(f[c],{stream:l&&
c==h-1});f.splice(0,h);this.u.j+=a;this.Z=0;m=this.u.j}else m=g.pj(this.j);if(this.B=200==e){if(this.jc&&!this.Wa){b:{if(this.j){var n=g.rj(this.j,"X-HTTP-Initial-Response");if(n&&!g.$b(n)){var p=n;break b}}p=null}if(e=p)this.Wa=!0,Xpb(this,e);else{this.B=!1;this.I=3;h8(12);m8(this);n8(this);break a}}this.Ga?(Ypb(this,b,m),g.KK&&this.B&&3==b&&(this.ib.Ra(this.ob,"tick",this.j_),this.ob.start())):Xpb(this,m);4==b&&m8(this);this.B&&!this.Ja&&(4==b?$pb(this.D,this):(this.B=!1,k8(this)))}else g.Lfa(this.j),
400==e&&0<m.indexOf("Unknown SID")?(this.I=3,h8(12)):(this.I=0,h8(13)),m8(this),n8(this)}}}catch(q){}finally{}};
g.k.j_=function(){if(this.j){var a=g.aj(this.j),b=g.pj(this.j);this.Z<b.length&&(o8(this),Ypb(this,a,b),this.B&&4!=a&&k8(this))}};
g.k.cancel=function(){this.Ja=!0;m8(this)};
g.k.i_=function(){this.ea=null;var a=Date.now();0<=a-this.Gb?(2!=this.Pa&&(g8(3),h8(17)),m8(this),this.I=2,n8(this)):Zpb(this,this.Gb-a)};
g.k.getLastError=function(){return this.I};
g.k.bM=function(){return this.j};iqb.prototype.cancel=function(){this.B=kqb(this);if(this.u)this.u.cancel(),this.u=null;else if(this.j&&0!==this.j.size){for(var a=g.v(this.j.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.j.clear()}};g.k=oqb.prototype;g.k.OQ=8;g.k.lh=1;g.k.connect=function(a,b,c,d){h8(0);this.Gc=a;this.Ja=b||{};c&&void 0!==d&&(this.Ja.OSID=c,this.Ja.OAID=d);this.Wa=this.hd;this.La=eqb(this,null,this.Gc);s8(this)};
g.k.disconnect=function(){qqb(this);if(3==this.lh){var a=this.Za++,b=this.La.clone();g.Hk(b,"SID",this.C);g.Hk(b,"RID",a);g.Hk(b,"TYPE","terminate");v8(this,b);a=new j8(this,this.C,a);a.Pa=2;a.J=P7(b.clone());b=!1;if(g.Ja.navigator&&g.Ja.navigator.sendBeacon)try{b=g.Ja.navigator.sendBeacon(a.J.toString(),"")}catch(c){}!b&&g.Ja.Image&&((new Image).src=a.J,b=!0);b||(a.j=Tpb(a.D,null),a.j.send(a.J));a.ya=Date.now();k8(a)}wqb(this)};
g.k.Tg=function(){return 0==this.lh};
g.k.getState=function(){return this.lh};
g.k.QQ=function(a){if(this.I)if(this.I=null,1==this.lh){if(!a){this.Za=Math.floor(1E5*Math.random());a=this.Za++;var b=new j8(this,"",a),c=this.ea;this.Gb&&(c?(c=g.jd(c),g.ld(c,this.Gb)):c=this.Gb);null!==this.J||this.tb||(b.La=c,c=null);var d;if(this.Nb)a:{for(var e=d=0;e<this.B.length;e++){b:{var f=this.B[e];if("__data__"in f.map&&(f=f.map.__data__,"string"===typeof f)){f=f.length;break b}f=void 0}if(void 0===f)break;d+=f;if(4096<d){d=e;break a}if(4096===d||e===this.B.length-1){d=e+1;break a}}d=
1E3}else d=1E3;d=tqb(this,b,d);e=this.La.clone();g.Hk(e,"RID",a);g.Hk(e,"CVER",22);this.Ga&&g.Hk(e,"X-HTTP-Session-Id",this.Ga);v8(this,e);c&&(this.tb?d="headers="+g.Ee(g.bha(c))+"&"+d:this.J&&g.Lk(e,this.J,c));dqb(this.u,b);this.Vf&&g.Hk(e,"TYPE","init");this.Nb?(g.Hk(e,"$req",d),g.Hk(e,"SID","null"),b.jc=!0,Spb(b,e,null)):Spb(b,e,d);this.lh=2}}else 3==this.lh&&(a?uqb(this,a):0==this.B.length||jqb(this.u)||uqb(this))};
g.k.PQ=function(){this.V=null;vqb(this);if(this.Kc&&!(this.ob||null==this.j||0>=this.rd)){var a=2*this.rd;this.Aa=i8((0,g.Ta)(this.E5,this),a)}};
g.k.E5=function(){this.Aa&&(this.Aa=null,this.Wa=!1,this.ob=!0,h8(10),q8(this),vqb(this))};
g.k.HN=function(a){this.j==a&&this.Kc&&!this.ob&&(pqb(this),this.ob=!0,h8(11))};
g.k.l_=function(){null!=this.Z&&(this.Z=null,q8(this),bqb(this),h8(19))};
g.k.u9=function(a){a?h8(2):h8(1)};
g.k.isActive=function(){return!!this.D&&this.D.isActive(this)};
g.k=yqb.prototype;g.k.UQ=function(){};
g.k.TQ=function(){};
g.k.SQ=function(){};
g.k.RQ=function(){};
g.k.isActive=function(){return!0};
g.k.m_=function(){};g.Ya(x8,g.Cd);x8.prototype.open=function(){this.j.D=this.B;this.I&&(this.j.Pa=!0);this.j.connect(this.D,this.u||void 0)};
x8.prototype.close=function(){this.j.disconnect()};
x8.prototype.send=function(a){var b=this.j;if("string"===typeof a){var c={};c.__data__=a;a=c}else this.C&&(c={},c.__data__=g.Hi(a),a=c);b.B.push(new hqb(b.Tf++,a));3==b.lh&&s8(b)};
x8.prototype.qa=function(){this.j.D=null;delete this.B;this.j.disconnect();delete this.j;x8.Ff.qa.call(this)};
g.Ya(Aqb,Ipb);g.Ya(Bqb,Jpb);g.Ya(w8,yqb);w8.prototype.UQ=function(){this.j.dispatchEvent("m")};
w8.prototype.TQ=function(a){this.j.dispatchEvent(new Aqb(a))};
w8.prototype.SQ=function(a){this.j.dispatchEvent(new Bqb(a))};
w8.prototype.RQ=function(){this.j.dispatchEvent("n")};var z8=new g.Cd;g.x(Eqb,g.pb);g.k=B8.prototype;g.k.Vt=null;g.k.Dp=!1;g.k.Xw=null;g.k.kJ=null;g.k.Vw=null;g.k.Ww=null;g.k.vr=null;g.k.xr=null;g.k.Wt=null;g.k.Pi=null;g.k.EE=0;g.k.Fn=null;g.k.DE=null;g.k.wr=null;g.k.zA=-1;g.k.CX=!0;g.k.Ut=!1;g.k.jJ=0;g.k.CE=null;var Jqb={},Iqb={};g.k=B8.prototype;g.k.setTimeout=function(a){this.u=a};
g.k.o_=function(a){a=a.target;var b=this.CE;b&&3==g.aj(a)?b.iJ():this.VQ(a)};
g.k.VQ=function(a){try{if(a==this.Pi)a:{var b=g.aj(this.Pi),c=this.Pi.u,d=this.Pi.getStatus();if(g.Ve&&!g.Mc(10)||g.Nc&&!g.Lc("420+")){if(4>b)break a}else if(3>b||3==b&&!g.pj(this.Pi))break a;this.Ut||4!=b||7==c||(8==c||0>=d?this.j.jn(3):this.j.jn(2));Oqb(this);var e=this.Pi.getStatus();this.zA=e;var f=g.pj(this.Pi);if(this.Dp=200==e){4==b&&D8(this);if(this.Ga){for(a=!0;!this.Ut&&this.EE<f.length;){var h=Kqb(this,f);if(h==Iqb){4==b&&(this.wr=4,A8(15),a=!1);break}else if(h==Jqb){this.wr=4;A8(16);a=
!1;break}else Pqb(this,h)}4==b&&0==f.length&&(this.wr=1,A8(17),a=!1);this.Dp=this.Dp&&a;a||(D8(this),E8(this))}else Pqb(this,f);this.Dp&&!this.Ut&&(4==b?this.j.FE(this):(this.Dp=!1,C8(this)))}else 400==e&&0<f.indexOf("Unknown SID")?(this.wr=3,A8(13)):(this.wr=0,A8(14)),D8(this),E8(this)}}catch(l){}finally{}};
g.k.Q7=function(a){y8((0,g.Ta)(this.P7,this,a),0)};
g.k.P7=function(a){this.Ut||(Oqb(this),Pqb(this,a),C8(this))};
g.k.FW=function(a){y8((0,g.Ta)(this.O7,this,a),0)};
g.k.O7=function(a){this.Ut||(D8(this),this.Dp=a,this.j.FE(this),this.j.jn(4))};
g.k.cancel=function(){this.Ut=!0;D8(this)};
g.k.n_=function(){this.Xw=null;var a=Date.now();0<=a-this.kJ?(2!=this.Ww&&this.j.jn(3),D8(this),this.wr=2,A8(18),E8(this)):Nqb(this,this.kJ-a)};
g.k.getLastError=function(){return this.wr};g.k=Sqb.prototype;g.k.mJ=null;g.k.tj=null;g.k.FH=!1;g.k.VX=null;g.k.DF=null;g.k.VM=null;g.k.nJ=null;g.k.rl=null;g.k.Ep=-1;g.k.AA=null;g.k.YA=null;g.k.connect=function(a){this.nJ=a;a=H8(this.j,null,this.nJ);A8(3);this.VX=Date.now();var b=this.j.ea;null!=b?(this.AA=b[0],(this.YA=b[1])?(this.rl=1,Tqb(this)):(this.rl=2,Uqb(this))):(Q7(a,"MODE","init"),this.tj=new B8(this),this.tj.Vt=this.mJ,Hqb(this.tj,a,!1,null,!0),this.rl=0)};
g.k.e2=function(a){if(a)this.rl=2,Uqb(this);else{A8(4);var b=this.j;b.Ln=b.Lr.Ep;L8(b,9)}a&&this.jn(2)};
g.k.lJ=function(a){return this.j.lJ(a)};
g.k.abort=function(){this.tj&&(this.tj.cancel(),this.tj=null);this.Ep=-1};
g.k.Tg=function(){return!1};
g.k.WQ=function(a,b){this.Ep=a.zA;if(0==this.rl)if(b){try{var c=this.u.parse(b)}catch(d){a=this.j;a.Ln=this.Ep;L8(a,2);return}this.AA=c[0];this.YA=c[1]}else a=this.j,a.Ln=this.Ep,L8(a,2);else if(2==this.rl)if(this.FH)A8(7),this.VM=Date.now();else if("11111"==b){if(A8(6),this.FH=!0,this.DF=Date.now(),a=this.DF-this.VX,!g.Ve||g.Mc(10)||500>a)this.Ep=200,this.tj.cancel(),A8(12),I8(this.j,this,!0)}else A8(8),this.DF=this.VM=Date.now(),this.FH=!1};
g.k.FE=function(){this.Ep=this.tj.zA;if(this.tj.Dp)0==this.rl?this.YA?(this.rl=1,Tqb(this)):(this.rl=2,Uqb(this)):2==this.rl&&((!g.Ve||g.Mc(10)?!this.FH:200>this.VM-this.DF)?(A8(11),I8(this.j,this,!1)):(A8(12),I8(this.j,this,!0)));else{0==this.rl?A8(9):2==this.rl&&A8(10);var a=this.j;this.tj.getLastError();a.Ln=this.Ep;L8(a,2)}};
g.k.BA=function(){return this.j.BA()};
g.k.isActive=function(){return this.j.isActive()};
g.k.jn=function(a){this.j.jn(a)};g.k=Vqb.prototype;g.k.Kn=null;g.k.CA=null;g.k.Cj=null;g.k.Fg=null;g.k.oJ=null;g.k.GE=null;g.k.XQ=null;g.k.HE=null;g.k.DA=0;g.k.q_=0;g.k.ji=null;g.k.yr=null;g.k.Fp=null;g.k.Yt=null;g.k.Lr=null;g.k.xI=null;g.k.ax=-1;g.k.YQ=-1;g.k.Ln=-1;g.k.Zw=0;g.k.Yw=0;g.k.Xt=8;g.Ya(Xqb,g.pb);g.Ya(Yqb,g.pb);g.k=Vqb.prototype;g.k.connect=function(a,b,c,d,e){A8(0);this.oJ=b;this.CA=c||{};d&&void 0!==e&&(this.CA.OSID=d,this.CA.OAID=e);this.V?(y8((0,g.Ta)(this.ZS,this,a),100),$qb(this)):this.ZS(a)};
g.k.disconnect=function(){arb(this);if(3==this.j){var a=this.DA++,b=this.GE.clone();g.Hk(b,"SID",this.C);g.Hk(b,"RID",a);g.Hk(b,"TYPE","terminate");K8(this,b);a=new B8(this,this.C,a);a.Ww=2;a.vr=P7(b.clone());(new Image).src=a.vr.toString();a.Vw=Date.now();C8(a)}krb(this)};
g.k.ZS=function(a){this.Lr=new Sqb(this);this.Lr.mJ=this.Kn;this.Lr.u=this.D;this.Lr.connect(a)};
g.k.Tg=function(){return 0==this.j};
g.k.getState=function(){return this.j};
g.k.aR=function(a){this.yr=null;frb(this,a)};
g.k.ZQ=function(){this.Fp=null;this.Fg=new B8(this,this.C,"rpc",this.J);this.Fg.Vt=this.Kn;this.Fg.jJ=0;var a=this.XQ.clone();g.Hk(a,"RID","rpc");g.Hk(a,"SID",this.C);g.Hk(a,"CI",this.xI?"0":"1");g.Hk(a,"AID",this.ax);K8(this,a);if(!g.Ve||g.Mc(10))g.Hk(a,"TYPE","xmlhttp"),Hqb(this.Fg,a,!0,this.HE,!1);else{g.Hk(a,"TYPE","html");var b=this.Fg,c=!!this.HE;b.Ww=3;b.vr=P7(a.clone());Mqb(b,c)}};
g.k.WQ=function(a,b){if(0!=this.j&&(this.Fg==a||this.Cj==a))if(this.Ln=a.zA,this.Cj==a&&3==this.j)if(7<this.Xt){try{var c=this.D.parse(b)}catch(d){c=null}if(Array.isArray(c)&&3==c.length)if(a=c,0==a[0])a:{if(!this.Fp){if(this.Fg)if(this.Fg.Vw+3E3<this.Cj.Vw)J8(this),this.Fg.cancel(),this.Fg=null;else break a;irb(this);A8(19)}}else this.YQ=a[1],0<this.YQ-this.ax&&37500>a[2]&&this.xI&&0==this.Yw&&!this.Yt&&(this.Yt=y8((0,g.Ta)(this.r_,this),6E3));else L8(this,11)}else null!=b&&L8(this,11);else if(this.Fg==
a&&J8(this),!g.$b(b))for(a=this.D.parse(b),b=0;b<a.length;b++)c=a[b],this.ax=c[0],c=c[1],2==this.j?"c"==c[0]?(this.C=c[1],this.HE=c[2],c=c[3],null!=c?this.Xt=c:this.Xt=6,this.j=3,this.ji&&this.ji.dR(),this.XQ=H8(this,this.BA()?this.HE:null,this.oJ),grb(this)):"stop"==c[0]&&L8(this,7):3==this.j&&("stop"==c[0]?L8(this,7):"noop"!=c[0]&&this.ji&&this.ji.cR(c),this.Yw=0)};
g.k.r_=function(){null!=this.Yt&&(this.Yt=null,this.Fg.cancel(),this.Fg=null,irb(this),A8(20))};
g.k.FE=function(a){if(this.Fg==a){J8(this);this.Fg=null;var b=2}else if(this.Cj==a)this.Cj=null,b=1;else return;this.Ln=a.zA;if(0!=this.j)if(a.Dp)if(1==b){b=Date.now()-a.Vw;var c=z8;c.dispatchEvent(new Xqb(c,a.Wt?a.Wt.length:0,b,this.Zw));Zqb(this);this.B.length=0}else grb(this);else{c=a.getLastError();var d;if(!(d=3==c||7==c||0==c&&0<this.Ln)){if(d=1==b)this.Cj||this.yr||1==this.j||2<=this.Zw?d=!1:(this.yr=y8((0,g.Ta)(this.aR,this,a),hrb(this,this.Zw)),this.Zw++,d=!0);d=!(d||2==b&&irb(this))}if(d)switch(c){case 1:L8(this,
5);break;case 4:L8(this,10);break;case 3:L8(this,6);break;case 7:L8(this,12);break;default:L8(this,2)}}};
g.k.p_=function(a){if(!g.wb(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};
g.k.t9=function(a){a?A8(2):(A8(1),jrb(this,8))};
g.k.lJ=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new g.Yi;a.I=!1;return a};
g.k.isActive=function(){return!!this.ji&&this.ji.isActive(this)};
g.k.jn=function(a){var b=z8;b.dispatchEvent(new Yqb(b,a))};
g.k.BA=function(){return!(!g.Ve||g.Mc(10))};
g.k=lrb.prototype;g.k.dR=function(){};
g.k.cR=function(){};
g.k.bR=function(){};
g.k.pJ=function(){};
g.k.eR=function(){return{}};
g.k.isActive=function(){return!0};g.k=mrb.prototype;g.k.isEmpty=function(){return 0===this.j.length&&0===this.u.length};
g.k.clear=function(){this.j=[];this.u=[]};
g.k.contains=function(a){return g.wb(this.j,a)||g.wb(this.u,a)};
g.k.remove=function(a){var b=this.j;var c=(0,g.o9a)(b,a);0<=c?(g.zb(b,c),b=!0):b=!1;return b||g.Ab(this.u,a)};
g.k.Kl=function(){for(var a=[],b=this.j.length-1;0<=b;--b)a.push(this.j[b]);var c=this.u.length;for(b=0;b<c;++b)a.push(this.u[b]);return a};g.x(nrb,g.pb);g.x(orb,g.pb);g.Ya(M8,g.E);g.k=M8.prototype;g.k.I7=function(){this.Ei=Math.min(3E5,2*this.Ei);this.B();this.u&&this.start()};
g.k.start=function(){var a=this.Ei+15E3*Math.random();g.Bp(this.j,a);this.u=Date.now()+a};
g.k.stop=function(){this.j.stop();this.u=0};
g.k.isActive=function(){return this.j.isActive()};
g.k.reset=function(){this.j.stop();this.Ei=5E3};qrb.prototype.flush=function(a,b){a=void 0===a?[]:a;b=void 0===b?!1:b;if(g.cy("enable_client_streamz_web")){a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=g.dfa(c.value),c={serializedIncrementBatch:g.Zf(c.j())},g.nA("streamzIncremented",c,{sendIsolatedPayload:b})}};var N8;g.Ya(rrb,lrb);g.k=rrb.prototype;g.k.subscribe=function(a,b,c){return this.B.subscribe(a,b,c)};
g.k.unsubscribe=function(a,b,c){return this.B.unsubscribe(a,b,c)};
g.k.Fh=function(a){return this.B.Fh(a)};
g.k.ma=function(a,b){return this.B.ma.apply(this.B,arguments)};
g.k.dispose=function(){this.Z||(this.Z=!0,g.gb(this.B),this.disconnect(),g.gb(this.u),this.u=null,this.oa=function(){return""})};
g.k.isDisposed=function(){return this.Z};
g.k.connect=function(a,b,c){if(!this.j||2!=this.j.getState()){this.ea="";this.u.stop();this.I=a||null;this.D=b||0;a=this.ya+"/test";b=this.ya+"/bind";var d=new Vqb(c?c.firstTestResults:null,c?c.secondTestResults:null,this.Pa),e=this.j;e&&(e.ji=null);d.ji=this;this.j=d;srb(this);if(this.j){d=g.ay("ID_TOKEN");var f=this.j.Kn||{};d?f["x-youtube-identity-token"]=d:delete f["x-youtube-identity-token"];this.j.Kn=f}e?(3!=e.getState()&&0==crb(e)||e.getState(),this.j.connect(a,b,this.J,e.C,e.ax)):c?this.j.connect(a,
b,this.J,c.sessionId,c.arrayId):this.j.connect(a,b,this.J)}};
g.k.disconnect=function(a){this.V=a||0;this.u.stop();srb(this);this.j&&(3==this.j.getState()&&frb(this.j),this.j.disconnect());this.V=0};
g.k.sendMessage=function(a,b){a={_sc:a};b&&g.ld(a,b);this.u.isActive()||2==(this.j?this.j.getState():0)?this.C.push(a):this.Ny()&&(srb(this),brb(this.j,a))};
g.k.dR=function(){this.u.reset();this.I=null;this.D=0;if(this.C.length){var a=this.C;this.C=[];for(var b=0,c=a.length;b<c;++b)brb(this.j,a[b])}this.ma("handlerOpened");ypb(this.La,"BROWSER_CHANNEL")};
g.k.bR=function(a){var b=2==a&&401==this.j.Ln;4==a||b||this.u.start();this.ma("handlerError",a,b);Epb(this.Ga,"BROWSER_CHANNEL")};
g.k.pJ=function(a,b){if(!this.u.isActive())this.ma("handlerClosed");else if(b)for(var c=0,d=b.length;c<d;++c){var e=b[c].map;e&&this.C.push(e)}Apb(this.Aa,"BROWSER_CHANNEL");a&&this.Ya.j.sJ("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",a.length);b&&this.Za.j.sJ("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",b.length)};
g.k.eR=function(){var a={v:2};this.ea&&(a.gsessionid=this.ea);0!=this.D&&(a.ui=""+this.D);0!=this.V&&(a.ui=""+this.V);this.I&&g.ld(a,this.I);return a};
g.k.cR=function(a){"S"==a[0]?this.ea=a[1]:"gracefulReconnect"==a[0]?(this.u.start(),this.j.disconnect()):this.ma("handlerMessage",new prb(a[0],a[1]));Cpb(this.Ja,"BROWSER_CHANNEL")};
g.k.Ny=function(){return!!this.j&&3==this.j.getState()};
g.k.Rq=function(a){(this.J.loungeIdToken=a)||this.u.stop();if(this.Wa&&this.j){var b=this.j.Kn||{};a?b["X-YouTube-LoungeId-Token"]=a:delete b["X-YouTube-LoungeId-Token"];this.j.Kn=b}};
g.k.gs=function(){return this.J.id};
g.k.As=function(){return this.u.isActive()?this.u.u-Date.now():NaN};
g.k.Wv=function(){var a=this.u;g.Cp(a.j);a.start()};
g.k.Q8=function(){this.u.isActive();0==crb(this.j)&&this.connect(this.I,this.D)};O8.prototype.C=function(a,b,c,d){b?a(d):a({text:c.responseText})};
O8.prototype.B=function(a,b){a(Error("Request error: "+b.status))};
O8.prototype.D=function(a){a(Error("request timed out"))};g.x(urb,g.Cd);g.k=urb.prototype;g.k.connect=function(a,b,c){this.wd.connect(a,b,c)};
g.k.disconnect=function(a){this.wd.disconnect(a)};
g.k.Wv=function(){this.wd.Wv()};
g.k.gs=function(){return this.wd.gs()};
g.k.As=function(){return this.wd.As()};
g.k.Ny=function(){return this.wd.Ny()};
g.k.u_=function(){this.dispatchEvent("channelOpened");var a=this.wd,b=this.j;g.Lz("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.j.xI,sessionId:a.j.C,arrayId:a.j.ax});g.Lz("yt-remote-session-screen-id",b);a=X7();b=Y7();g.wb(a,b)||a.push(b);cpb(a);epb()};
g.k.s_=function(){this.dispatchEvent("channelClosed")};
g.k.t_=function(a){this.dispatchEvent(new nrb(a))};
g.k.onError=function(a){this.dispatchEvent(new orb(a?1:0))};
g.k.sendMessage=function(a,b){this.wd.sendMessage(a,b)};
g.k.Rq=function(a){this.wd.Rq(a)};
g.k.dispose=function(){this.wd.dispose()};g.k=vrb.prototype;
g.k.connect=function(a,b){a=void 0===a?{}:a;b=void 0===b?0:b;2!==this.I&&(this.B.stop(),this.V=a,this.J=b,xrb(this),(a=g.ay("ID_TOKEN"))?this.C["x-youtube-identity-token"]=a:delete this.C["x-youtube-identity-token"],this.j&&(this.u.device=this.j.device,this.u.name=this.j.name,this.u.app=this.j.app,this.u.id=this.j.id,this.j.N4&&(this.u.mdxVersion=""+this.j.N4),this.j.theme&&(this.u.theme=this.j.theme),this.j.capabilities&&(this.u.capabilities=this.j.capabilities),this.j.C2&&(this.u.cst=this.j.C2),
this.j.authuser&&(this.u.authuser=this.j.authuser),this.j.pageId&&(this.u.pageId=this.j.pageId)),0!==this.J?this.u.ui=""+this.J:delete this.u.ui,Object.assign(this.u,this.V),this.channel=new x8(this.pathPrefix,{g4:"gsessionid",R4:this.C,S4:this.u}),this.channel.open(),this.I=2,wrb(this))};
g.k.disconnect=function(a){this.ea=void 0===a?0:a;this.B.stop();xrb(this);this.channel&&(0!==this.ea?this.u.ui=""+this.ea:delete this.u.ui,this.channel.close());this.ea=0};
g.k.As=function(){return this.B.isActive()?this.B.u-Date.now():NaN};
g.k.Wv=function(){var a=this.B;g.Cp(a.j);a.start()};
g.k.sendMessage=function(a,b){this.channel&&(xrb(this),a=Object.assign({},{_sc:a},b),this.channel.send(a))};
g.k.Rq=function(a){a||this.B.stop();a?this.C["X-YouTube-LoungeId-Token"]=a:delete this.C["X-YouTube-LoungeId-Token"]};
g.k.gs=function(){return this.j?this.j.id:""};
g.k.ma=function(a){return this.D.ma.apply(this.D,[a].concat(g.la(g.Ca.apply(1,arguments))))};
g.k.subscribe=function(a,b,c){return this.D.subscribe(a,b,c)};
g.k.unsubscribe=function(a,b,c){return this.D.unsubscribe(a,b,c)};
g.k.Fh=function(a){return this.D.Fh(a)};
g.k.dispose=function(){this.Z||(this.Z=!0,g.gb(this.D),this.disconnect(),g.gb(this.B),this.ya=function(){return""})};
g.k.isDisposed=function(){return this.Z};g.x(yrb,g.Cd);g.k=yrb.prototype;g.k.connect=function(a,b){this.j.connect(a,b)};
g.k.disconnect=function(a){this.j.disconnect(a)};
g.k.Wv=function(){this.j.Wv()};
g.k.gs=function(){return this.j.gs()};
g.k.As=function(){return this.j.As()};
g.k.Ny=function(){return 3===this.j.I};
g.k.x_=function(){this.dispatchEvent("channelOpened")};
g.k.v_=function(){this.dispatchEvent("channelClosed")};
g.k.w_=function(a){this.dispatchEvent(new nrb(a))};
g.k.onError=function(){this.dispatchEvent(new orb(401===this.j.Jg?1:0))};
g.k.sendMessage=function(a,b){this.j.sendMessage(a,b)};
g.k.Rq=function(a){this.j.Rq(a)};
g.k.dispose=function(){this.j.dispose()};var Grb=Date.now(),Q8=null,U8=Array(50),T8=-1,V8=!1;g.Ya(W8,g.aE);W8.prototype.zk=function(){return this.screens};
W8.prototype.contains=function(a){return!!$ob(this.screens,a)};
W8.prototype.get=function(a){return a?W7(this.screens,a):null};
W8.prototype.info=function(a){R8(this.I,a)};g.x(Krb,g.aE);g.k=Krb.prototype;g.k.start=function(){!this.j&&isNaN(this.Ec)&&this.TW()};
g.k.stop=function(){this.j&&(this.j.abort(),this.j=null);isNaN(this.Ec)||(g.Ay(this.Ec),this.Ec=NaN)};
g.k.qa=function(){this.stop();g.aE.prototype.qa.call(this)};
g.k.TW=function(){this.Ec=NaN;this.j=g.Dy(P8(this.B,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.J},timeout:5E3,onSuccess:(0,g.Ta)(this.z_,this),onError:(0,g.Ta)(this.y_,this),onTimeout:(0,g.Ta)(this.A_,this)})};
g.k.z_=function(a,b){this.j=null;a=b.screen||{};a.dialId=this.C;a.name=this.I;b=-1;this.D&&a.shortLivedLoungeToken&&a.shortLivedLoungeToken.value&&a.shortLivedLoungeToken.refreshIntervalMs&&(a.screenIdType="shortLived",a.loungeToken=a.shortLivedLoungeToken.value,b=a.shortLivedLoungeToken.refreshIntervalMs);this.ma("pairingComplete",new T7(a),b)};
g.k.y_=function(a){this.j=null;a.status&&404==a.status?this.u>=Etb.length?this.ma("pairingFailed",Error("DIAL polling timed out")):(a=Etb[this.u],this.Ec=g.yy((0,g.Ta)(this.TW,this),a),this.u++):this.ma("pairingFailed",Error("Server error "+a.status))};
g.k.A_=function(){this.j=null;this.ma("pairingFailed",Error("Server not responding"))};
var Etb=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g.Ya(Y8,W8);g.k=Y8.prototype;g.k.start=function(){X8(this)&&this.ma("screenChange");!g.Mz("yt-remote-lounge-token-expiration")&&Lrb(this);g.Ay(this.j);this.j=g.yy((0,g.Ta)(this.start,this),1E4)};
g.k.add=function(a,b){X8(this);Hrb(this,a);Z8(this,!1);this.ma("screenChange");b(a);a.token||Lrb(this)};
g.k.remove=function(a,b){var c=X8(this);Jrb(this,a)&&(Z8(this,!1),c=!0);b(a);c&&this.ma("screenChange")};
g.k.wI=function(a,b,c,d){var e=X8(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,Z8(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.ma("screenChange")};
g.k.qa=function(){g.Ay(this.j);Y8.Ff.qa.call(this)};
g.k.H3=function(a){X8(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],f=this.get(e.screenId);f&&(f.token=e.loungeToken,--b)}Z8(this,!b);b&&R8(this.I,"Missed "+b+" lounge tokens.")};
g.k.G3=function(a){R8(this.I,"Requesting lounge tokens failed: "+a)};g.x(Nrb,g.aE);g.k=Nrb.prototype;g.k.start=function(){var a=parseInt(g.Mz("yt-remote-fast-check-period")||"0",10);(this.C=g.Va()-144E5<a?0:a)?$8(this):(this.C=g.Va()+3E5,g.Lz("yt-remote-fast-check-period",this.C),this.PO())};
g.k.isEmpty=function(){return g.fd(this.j)};
g.k.update=function(){Mrb("Updating availability on schedule.");var a=this.I(),b=g.Wc(this.j,function(c,d){return c&&!!W7(a,d)},this);
Qrb(this,b)};
g.k.qa=function(){g.Ay(this.B);this.B=NaN;this.u&&(this.u.abort(),this.u=null);g.aE.prototype.qa.call(this)};
g.k.PO=function(){g.Ay(this.B);this.B=NaN;this.u&&this.u.abort();var a=Rrb(this);if(Lob(a)){var b=P8(this.D,"/pairing/get_screen_availability");this.u=trb(this.D,b,{lounge_token:g.ad(a).join(",")},(0,g.Ta)(this.n7,this,a),(0,g.Ta)(this.m7,this))}else Qrb(this,{}),$8(this)};
g.k.n7=function(a,b){this.u=null;var c=g.ad(Rrb(this));if(g.Sb(c,g.ad(a))){b=b.screens||[];c={};for(var d=b.length,e=0;e<d;++e)c[a[b[e].loungeToken]]="online"==b[e].status;Qrb(this,c);$8(this)}else this.Qf("Changing Screen set during request."),this.PO()};
g.k.m7=function(a){this.Qf("Screen availability failed: "+a);this.u=null;$8(this)};
g.k.Qf=function(a){R8("OnlineScreenService",a)};g.Ya(a9,W8);g.k=a9.prototype;g.k.start=function(){this.u.start();this.j.start();this.screens.length&&(this.ma("screenChange"),this.j.isEmpty()||this.ma("onlineScreenChange"))};
g.k.add=function(a,b,c){this.u.add(a,b,c)};
g.k.remove=function(a,b,c){this.u.remove(a,b,c);this.j.update()};
g.k.wI=function(a,b,c,d){this.u.contains(a)?this.u.wI(a,b,c,d):(a="Updating name of unknown screen: "+a.name,R8(this.I,a),d(Error(a)))};
g.k.zk=function(a){return a?this.screens:g.Cb(this.screens,g.On(this.B,function(b){return!this.contains(b)},this))};
g.k.fR=function(){return g.On(this.zk(!0),function(a){return!!this.j.j[a.id]},this)};
g.k.gR=function(a,b,c,d,e,f){var h=this;this.info("getDialScreenByPairingCode "+a+" / "+b);var l=new Krb(this.C,a,b,c,d);l.subscribe("pairingComplete",function(m,n){g.gb(l);e(b9(h,m),n)});
l.subscribe("pairingFailed",function(m){g.gb(l);f(m)});
l.start();return(0,g.Ta)(l.stop,l)};
g.k.B_=function(a,b,c,d){g.Dy(P8(this.C,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:a},timeout:5E3,onSuccess:(0,g.Ta)(function(e,f){e=new T7(f.screen||{});if(!e.name||Vrb(this,e.name)){a:{f=e.name;for(var h=2,l=b(f,h);Vrb(this,l);){h++;if(20<h)break a;l=b(f,h)}f=l}e.name=f}c(b9(this,e))},this),
onError:(0,g.Ta)(function(e){d(Error("pairing request failed: "+e.status))},this),
onTimeout:(0,g.Ta)(function(){d(Error("pairing request timed out."))},this)})};
g.k.qa=function(){g.gb(this.u);g.gb(this.j);a9.Ff.qa.call(this)};
g.k.Q3=function(){Xrb(this);this.ma("screenChange");this.j.update()};
a9.prototype.dispose=a9.prototype.dispose;g.Ya(c9,g.aE);g.k=c9.prototype;g.k.ij=function(a){this.isDisposed()||(a&&(e9(this,""+a),this.ma("sessionFailed")),this.j=null,this.ma("sessionScreen",null))};
g.k.info=function(a){R8(this.Ga,a)};
g.k.hR=function(){return null};
g.k.eP=function(a){var b=this.u;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,(0,g.Ta)(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),(0,g.Ta)(function(){e9(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
g.k.qa=function(){this.eP("");c9.Ff.qa.call(this)};g.x(f9,c9);g.k=f9.prototype;g.k.dP=function(a){if(this.B){if(this.B==a)return;e9(this,"Overriding cast session with new session object");isb(this);this.ya=!1;this.ea="unknown";this.B.removeUpdateListener(this.oa);this.B.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.Aa)}this.B=a;this.B.addUpdateListener(this.oa);this.B.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.Aa);dsb(this,"getMdxSessionStatus")};
g.k.Vy=function(a){this.info("launchWithParams no-op for Cast: "+g.Hi(a))};
g.k.stop=function(){this.B?this.B.stop((0,g.Ta)(function(){this.ij()},this),(0,g.Ta)(function(){this.ij(Error("Failed to stop receiver app."))},this)):this.ij(Error("Stopping cast device without session."))};
g.k.eP=function(){};
g.k.qa=function(){this.info("disposeInternal");isb(this);this.B&&(this.B.removeUpdateListener(this.oa),this.B.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.Aa));this.B=null;c9.prototype.qa.call(this)};
g.k.a8=function(a,b){if(!this.isDisposed())if(b)if(b=R7(b),g.Pa(b))switch(a=""+b.type,b=b.data||{},this.info("onYoutubeMessage_: "+a+" "+g.Hi(b)),a){case "mdxSessionStatus":asb(this,b);break;case "loungeToken":esb(this,b);break;default:e9(this,"Unknown youtube message: "+a)}else e9(this,"Unable to parse message.");else e9(this,"No data in message.")};
g.k.bU=function(a,b,c,d){g.Ay(this.V);this.V=0;Urb(this.C,this.u.label,a,this.u.friendlyName,(0,g.Ta)(function(e){e?b(e):0<=d?(e9(this,"Screen "+a+" appears to be offline. "+d+" retries left."),this.V=g.yy((0,g.Ta)(this.bU,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
g.k.hR=function(){return this.B};
g.k.C_=function(a){this.isDisposed()||a||(e9(this,"Cast session died."),this.ij())};g.x(g9,c9);g.k=g9.prototype;g.k.dP=function(a){this.B=a;this.B.addUpdateListener(this.Ja)};
g.k.Vy=function(a){this.La=a;this.Z()};
g.k.stop=function(){qsb(this);this.B?this.B.stop((0,g.Ta)(this.ij,this,null),(0,g.Ta)(this.ij,this,"Failed to stop DIAL device.")):this.ij()};
g.k.qa=function(){qsb(this);this.B&&this.B.removeUpdateListener(this.Ja);this.B=null;c9.prototype.qa.call(this)};
g.k.D_=function(a){this.isDisposed()||a||(e9(this,"DIAL session died."),this.D(),this.D=function(){},this.ij())};g.x(j9,c9);j9.prototype.stop=function(){this.ij()};
j9.prototype.dP=function(){};
j9.prototype.Vy=function(){g.Ay(this.B);this.B=NaN;var a=W7(this.C.zk(),this.u.label);a?d9(this,a):this.ij(Error("No such screen"))};
j9.prototype.qa=function(){g.Ay(this.B);this.B=NaN;c9.prototype.qa.call(this)};g.x(k9,g.aE);g.k=k9.prototype;
g.k.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest(this.V,[chrome.cast.Capability.AUDIO_OUT]);this.ea||(c.dialRequest=new chrome.cast.DialRequest("YouTube"));var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;a=a||this.I?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var e=(0,g.Ta)(this.X6,this);c=new chrome.cast.ApiConfig(c,(0,g.Ta)(this.zW,this),e,d,a);c.customDialLaunchCallback=(0,g.Ta)(this.V5,this);
chrome.cast.initialize(c,(0,g.Ta)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.D),Drb(),this.u.subscribe("onlineScreenChange",(0,g.Ta)(this.iR,this)),this.B=tsb(this),chrome.cast.setCustomReceivers(this.B,function(){},(0,g.Ta)(function(f){this.Qf("Failed to set initial custom receivers: "+g.Hi(f))},this)),this.ma("yt-remote-cast2-availability-change",m9(this)),b(!0))},this),(0,g.Ta)(function(f){this.Qf("Failed to initialize API: "+g.Hi(f));
b(!1)},this))};
g.k.X8=function(a,b){l9("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.j;if(!a||c&&c.id!=a)l9("Unsetting old screen status: "+this.j.u.friendlyName),n9(this,null)}if(a&&b){if(!this.j){c=W7(this.u.zk(),a);if(!c){l9("setConnectedScreenStatus: Unknown screen.");return}if("shortLived"==c.idType){l9("setConnectedScreenStatus: Screen with id type to be short lived.");return}a=rsb(this,c);a||(l9("setConnectedScreenStatus: Connected receiver not custom..."),a=new chrome.cast.Receiver(c.uuid?
c.uuid:c.id,c.name),a.receiverType=chrome.cast.ReceiverType.CUSTOM,this.B.push(a),chrome.cast.setCustomReceivers(this.B,function(){},(0,g.Ta)(function(d){this.Qf("Failed to set initial custom receivers: "+g.Hi(d))},this)));
l9("setConnectedScreenStatus: new active receiver: "+a.friendlyName);n9(this,new j9(this.u,a),!0)}this.j.eP(b)}else l9("setConnectedScreenStatus: no screen.")};
g.k.Z8=function(a){this.isDisposed()?this.Qf("Setting connection data on disposed cast v2"):this.j?this.j.Vy(a):this.Qf("Setting connection data without a session")};
g.k.F_=function(){this.isDisposed()?this.Qf("Stopping session on disposed cast v2"):this.j?(this.j.stop(),n9(this,null)):l9("Stopping non-existing session")};
g.k.requestSession=function(){chrome.cast.requestSession((0,g.Ta)(this.zW,this),(0,g.Ta)(this.q7,this))};
g.k.qa=function(){this.u.unsubscribe("onlineScreenChange",(0,g.Ta)(this.iR,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.D);var a=Arb,b=g.La("yt.mdx.remote.debug.handlers_");g.Ab(b||[],a);g.gb(this.j);g.aE.prototype.qa.call(this)};
g.k.Qf=function(a){R8("Controller",a)};
g.k.DW=function(a,b){this.j==a&&(b||n9(this,null),this.ma("yt-remote-cast2-session-change",b))};
g.k.U6=function(a,b){if(!this.isDisposed())if(a)switch(a.friendlyName=chrome.cast.unescape(a.friendlyName),l9("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.u.label!=a.label)l9("onReceiverAction_: Stopping active receiver: "+this.j.u.friendlyName),this.j.stop();else{l9("onReceiverAction_: Casting to active receiver.");this.j.j&&this.ma("yt-remote-cast2-session-change",this.j.j);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:n9(this,
new j9(this.u,a));break;case chrome.cast.ReceiverType.DIAL:n9(this,new g9(this.u,a,this.C,this.config_));break;case chrome.cast.ReceiverType.CAST:n9(this,new f9(this.u,a,this.config_));break;default:this.Qf("Unknown receiver type: "+a.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.j&&this.j.u.label==a.label?this.j.stop():this.Qf("Stopping receiver w/o session: "+a.friendlyName)}else this.Qf("onReceiverAction_ called without receiver.")};
g.k.V5=function(a){if(this.isDisposed())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.Qf("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.j?this.j.u:null;if(!c||c.label!=b.label)return this.Qf("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.j.j)return l9("Reselecting dial screen."),
this.ma("yt-remote-cast2-session-change",this.j.j),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.Qf('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);n9(this,new g9(this.u,b,this.C,this.config_))}b=this.j;b.V=a;b.V.appState==chrome.cast.DialAppState.RUNNING?(a=b.V.extraData||{},c=a.screenId||null,h9(b)&&a.loungeToken?a.loungeTokenRefreshIntervalMs?a=nsb(b,{name:b.u.friendlyName,screenId:a.screenId,loungeToken:a.loungeToken,dialId:b.V.receiver.label,screenIdType:"shortLived"},
a.loungeTokenRefreshIntervalMs):(g.hy(Error("No loungeTokenRefreshIntervalMs presents in additionalData: "+JSON.stringify(a)+".")),a=osb(b,c)):a=osb(b,c)):a=lsb(b);return a};
g.k.zW=function(a){var b=this;if(!this.isDisposed()&&!this.I){l9("New cast session ID: "+a.sessionId);var c=a.receiver;if(c.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.j)if(c.receiverType==chrome.cast.ReceiverType.CAST)l9("Got resumed cast session before resumed mdx connection."),c.friendlyName=chrome.cast.unescape(c.friendlyName),n9(this,new f9(this.u,c,this.config_),!0);else{this.Qf("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var d=this.j.u,e=W7(this.u.zk(),
d.label);e&&U7(e,c.label)&&d.receiverType!=chrome.cast.ReceiverType.CAST&&c.receiverType==chrome.cast.ReceiverType.CAST&&(l9("onSessionEstablished_: manual to cast session change "+c.friendlyName),g.gb(this.j),this.j=new f9(this.u,c,this.config_),this.j.subscribe("sessionScreen",(0,g.Ta)(this.DW,this,this.j)),this.j.subscribe("sessionFailed",function(){return ssb(b,b.j)}),this.j.Vy(null));
this.j.dP(a)}}};
g.k.E_=function(){return this.j?this.j.hR():null};
g.k.q7=function(a){this.isDisposed()||(this.Qf("Failed to estabilish a session: "+g.Hi(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&n9(this,null),this.ma("yt-remote-cast2-session-failed"))};
g.k.X6=function(a){l9("Receiver availability updated: "+a);if(!this.isDisposed()){var b=m9(this);this.J=a==chrome.cast.ReceiverAvailability.AVAILABLE;m9(this)!=b&&this.ma("yt-remote-cast2-availability-change",m9(this))}};
g.k.iR=function(){this.isDisposed()||(this.B=tsb(this),l9("Updating custom receivers: "+g.Hi(this.B)),chrome.cast.setCustomReceivers(this.B,function(){},(0,g.Ta)(function(){this.Qf("Failed to set custom receivers.")},this)),this.ma("yt-remote-cast2-availability-change",m9(this)))};
k9.prototype.setLaunchParams=k9.prototype.Z8;k9.prototype.setConnectedScreenStatus=k9.prototype.X8;k9.prototype.stopSession=k9.prototype.F_;k9.prototype.getCastSession=k9.prototype.E_;k9.prototype.requestSession=k9.prototype.requestSession;k9.prototype.init=k9.prototype.init;k9.prototype.dispose=k9.prototype.dispose;var Csb=[];g.k=u9.prototype;
g.k.reset=function(a){this.listId="";this.index=-1;this.videoId="";Isb(this);this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.listId=a.listId,this.videoId=a.videoId,this.playerState=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.trackData=a.trackData,this.No=a.hasPrevious,this.Dk=a.hasNext,this.J=a.playerTime,this.I=a.playerTimeAt,this.C=a.seekableStart,this.j=a.seekableEnd,this.D=a.duration,this.V=a.loadedTime,this.B=a.liveIngestionTime,this.u=
!isNaN(this.B))};
g.k.Yc=function(){return 1==this.playerState};
g.k.Tk=function(a){this.D=isNaN(a)?0:a};
g.k.getDuration=function(){return this.u?this.D+G9(this):this.D};
g.k.clone=function(){return new u9(Jsb(this))};g.x(M9,g.aE);g.k=M9.prototype;g.k.getState=function(){return this.B};
g.k.As=function(){return this.C.getReconnectTimeout()};
g.k.Wv=function(){this.C.reconnect()};
g.k.play=function(){O9(this)?(this.j?this.j.play(null,g.Hd,S9(this,"play")):R9(this,"play"),Msb(this,1,J9(N9(this))),this.ma("remotePlayerChange")):P9(this,this.play)};
g.k.pause=function(){O9(this)?(this.j?this.j.pause(null,g.Hd,S9(this,"pause")):R9(this,"pause"),Msb(this,2,J9(N9(this))),this.ma("remotePlayerChange")):P9(this,this.pause)};
g.k.seekTo=function(a){if(O9(this)){if(this.j){var b=N9(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;b.Yc()||3==b.playerState?c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,g.Hd,S9(this,"seekTo",{newTime:a}))}else R9(this,"seekTo",{newTime:a});Msb(this,3,a);this.ma("remotePlayerChange")}else P9(this,g.Ua(this.seekTo,a))};
g.k.stop=function(){if(O9(this)){this.j?this.j.stop(null,g.Hd,S9(this,"stopVideo")):R9(this,"stopVideo");var a=N9(this);a.index=-1;a.videoId="";Isb(a);Q9(this,a);this.ma("remotePlayerChange")}else P9(this,this.stop)};
g.k.setVolume=function(a,b){if(O9(this)){var c=N9(this);if(this.u){if(c.volume!=a){var d=Math.round(a)/100;this.u.setReceiverVolumeLevel(d,(0,g.Ta)(function(){S8("set receiver volume: "+d)},this),(0,g.Ta)(function(){this.Qf("failed to set receiver volume.")},this))}c.muted!=b&&this.u.setReceiverMuted(b,(0,g.Ta)(function(){S8("set receiver muted: "+b)},this),(0,g.Ta)(function(){this.Qf("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);R9(this,"setVolume",e)}c.muted=b;c.volume=a;Q9(this,c)}else P9(this,g.Ua(this.setVolume,a,b))};
g.k.jR=function(a,b){if(O9(this)){var c=N9(this);a={videoId:a};b&&(c.trackData={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,kind:b.kind},a.style=g.Hi(b.style),g.ld(a,c.trackData));R9(this,"setSubtitlesTrack",a);Q9(this,c)}else P9(this,g.Ua(this.jR,a,b))};
g.k.setAudioTrack=function(a,b){O9(this)?(b=b.getLanguageInfo().getId(),R9(this,"setAudioTrack",{videoId:a,audioTrackId:b}),a=N9(this),a.audioTrackId=b,Q9(this,a)):P9(this,g.Ua(this.setAudioTrack,a,b))};
g.k.playVideo=function(a,b,c,d,e,f,h){d=void 0===d?null:d;e=void 0===e?null:e;f=void 0===f?null:f;h=void 0===h?null:h;var l=N9(this),m={videoId:a};void 0!==c&&(m.currentIndex=c);K9(l,a,c||0);void 0!==b&&(I9(l,b),m.currentTime=b);d&&(m.listId=d);e&&(m.playerParams=e);f&&(m.clickTrackingParams=f);h&&(m.locationInfo=g.Hi(h));R9(this,"setPlaylist",m);d||Q9(this,l)};
g.k.xH=function(a,b){if(O9(this)){if(a&&b){var c=N9(this);K9(c,a,b);Q9(this,c)}R9(this,"previous")}else P9(this,g.Ua(this.xH,a,b))};
g.k.nextVideo=function(a,b){if(O9(this)){if(a&&b){var c=N9(this);K9(c,a,b);Q9(this,c)}R9(this,"next")}else P9(this,g.Ua(this.nextVideo,a,b))};
g.k.fF=function(){if(O9(this)){R9(this,"clearPlaylist");var a=N9(this);a.reset();Q9(this,a);this.ma("remotePlayerChange")}else P9(this,this.fF)};
g.k.jT=function(){O9(this)?R9(this,"dismissAutoplay"):P9(this,this.jT)};
g.k.dispose=function(){if(3!=this.B){var a=this.B;this.B=3;this.ma("proxyStateChange",a,this.B)}g.aE.prototype.dispose.call(this)};
g.k.qa=function(){Lsb(this);this.C=null;this.D.clear();L9(this,null);g.aE.prototype.qa.call(this)};
g.k.hP=function(a){if((a!=this.B||2==a)&&3!=this.B&&0!=a){var b=this.B;this.B=a;this.ma("proxyStateChange",b,a);if(1==a)for(;!this.D.isEmpty();)b=a=this.D,0===b.j.length&&(b.j=b.u,b.j.reverse(),b.u=[]),a.j.pop().apply(this);else 3==a&&this.dispose()}};
g.k.S6=function(a,b){this.ma(a,b)};
g.k.I5=function(a){if(!a)this.VC(null),L9(this,null);else if(this.u.receiver.volume){a=this.u.receiver.volume;var b=N9(this),c=Math.round(100*a.level||0);if(b.volume!=c||b.muted!=a.muted)S8("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=c,b.muted=!!a.muted,Q9(this,b)}};
g.k.VC=function(a){S8("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.V);if(this.j=a)this.j.addUpdateListener(this.V),Nsb(this),this.ma("remotePlayerChange")};
g.k.H5=function(a){a?(Nsb(this),this.ma("remotePlayerChange")):this.VC(null)};
g.k.FP=function(){R9(this,"sendDebugCommand",{debugCommand:"stats4nerds "})};
g.k.N5=function(){var a=Fsb();a&&L9(this,a)};
g.k.Qf=function(a){R8("CP",a)};g.x(V9,g.aE);g.k=V9.prototype;
g.k.connect=function(a,b){if(b){var c=b.listId,d=b.videoId,e=b.videoIds,f=b.playerParams,h=b.clickTrackingParams,l=b.index,m={videoId:d},n=b.currentTime,p=b.locationInfo;b=b.loopMode;void 0!==n&&(m.currentTime=5>=n?0:n);f&&(m.playerParams=f);p&&(m.locationInfo=p);h&&(m.clickTrackingParams=h);c&&(m.listId=c);e&&0<e.length&&(m.videoIds=e.join(","));void 0!==l&&(m.currentIndex=l);this.Ja&&(m.loopMode=b||"LOOP_MODE_OFF");c&&(this.j.listId=c);this.j.videoId=d;this.j.index=l||0;this.j.state=3;I9(this.j,
n);this.D="UNSUPPORTED";c=this.Ja?"setInitialState":"setPlaylist";T9("Connecting with "+c+" and params: "+g.Hi(m));this.u.connect({method:c,params:g.Hi(m)},a,fpb())}else T9("Connecting without params"),this.u.connect({},a,fpb());Rsb(this)};
g.k.Rq=function(a){this.u.Rq(a)};
g.k.dispose=function(){this.isDisposed()||(g.Ka("yt.mdx.remote.remoteClient_",null),this.ma("beforeDispose"),U9(this,3));g.aE.prototype.dispose.call(this)};
g.k.qa=function(){Ssb(this);Usb(this);Tsb(this);g.Ay(this.V);this.V=NaN;g.Ay(this.ea);this.ea=NaN;this.C=null;g.Bz(this.Z);this.Z.length=0;this.u.dispose();g.aE.prototype.qa.call(this);this.D=this.J=this.B=this.j=this.u=null};
g.k.SU=function(a){if(!this.B||0===this.B.length)return!1;for(var b=g.v(this.B),c=b.next();!c.done;c=b.next())if(!c.value.capabilities.has(a))return!1;return!0};
g.k.w3=function(){var a=3;this.isDisposed()||(a=0,isNaN(this.TB())?this.u.Ny()&&isNaN(this.I)&&(a=1):a=2);return a};
g.k.ly=function(a){T9("Disconnecting with "+a);g.Ka("yt.mdx.remote.remoteClient_",null);Ssb(this);this.ma("beforeDisconnect",a);1==a&&Z7();this.u.disconnect(a);this.dispose()};
g.k.u3=function(){var a=this.j;this.C&&(a=this.j.clone(),K9(a,this.C,a.index));return Jsb(a)};
g.k.a9=function(a){var b=this,c=new u9(a);c.videoId&&c.videoId!=this.j.videoId&&(this.C=c.videoId,g.Ay(this.V),this.V=g.yy(function(){if(b.C){var e=b.C;b.C=null;b.j.videoId!=e&&W9(b,"getNowPlaying")}},5E3));
var d=[];this.j.listId==c.listId&&this.j.videoId==c.videoId&&this.j.index==c.index||d.push("remoteQueueChange");this.j.playerState==c.playerState&&this.j.volume==c.volume&&this.j.muted==c.muted&&J9(this.j)==J9(c)&&g.Hi(this.j.trackData)==g.Hi(c.trackData)||d.push("remotePlayerChange");this.j.reset(a);g.Ub(d,function(e){this.ma(e)},this)};
g.k.ZT=function(){var a=this.u.gs(),b=g.sb(this.B,function(c){return"REMOTE_CONTROL"==c.type&&c.id!=a});
return b?b.id:""};
g.k.TB=function(){return this.u.As()};
g.k.o3=function(){return this.D||"UNSUPPORTED"};
g.k.q3=function(){return this.J||""};
g.k.G_=function(){!isNaN(this.TB())&&this.u.Wv()};
g.k.W8=function(a,b){W9(this,a,b);Wsb(this)};
g.k.kR=function(){var a=g.Oy("SID","")||"",b=g.Oy("SAPISID","")||"",c=g.Oy("__Secure-3PAPISID","")||"";if(!a&&!b&&!c)return"";a=g.Zf(g.Yf(a),2);b=g.Zf(g.Yf(b),2);c=g.Zf(g.Yf(c),2);return g.Zf(g.Yf(a+","+b+","+c),2)};
V9.prototype.subscribe=V9.prototype.subscribe;V9.prototype.unsubscribeByKey=V9.prototype.Fh;V9.prototype.getProxyState=V9.prototype.w3;V9.prototype.disconnect=V9.prototype.ly;V9.prototype.getPlayerContextData=V9.prototype.u3;V9.prototype.setPlayerContextData=V9.prototype.a9;V9.prototype.getOtherConnectedRemoteId=V9.prototype.ZT;V9.prototype.getReconnectTimeout=V9.prototype.TB;V9.prototype.getAutoplayMode=V9.prototype.o3;V9.prototype.getAutoplayVideoId=V9.prototype.q3;V9.prototype.reconnect=V9.prototype.G_;
V9.prototype.sendMessage=V9.prototype.W8;V9.prototype.getXsrfToken=V9.prototype.kR;V9.prototype.isCapabilitySupportedOnConnectedDevices=V9.prototype.SU;g.x(htb,W8);g.k=htb.prototype;g.k.zk=function(a){return this.Sg.$_gs(a)};
g.k.contains=function(a){return!!this.Sg.$_c(a)};
g.k.get=function(a){return this.Sg.$_g(a)};
g.k.start=function(){this.Sg.$_st()};
g.k.add=function(a,b,c){this.Sg.$_a(a,b,c)};
g.k.remove=function(a,b,c){this.Sg.$_r(a,b,c)};
g.k.wI=function(a,b,c,d){this.Sg.$_un(a,b,c,d)};
g.k.qa=function(){for(var a=0,b=this.j.length;a<b;++a)this.Sg.$_ubk(this.j[a]);this.j.length=0;this.Sg=null;W8.prototype.qa.call(this)};
g.k.H_=function(){this.ma("screenChange")};
g.k.A6=function(){this.ma("onlineScreenChange")};
a9.prototype.$_st=a9.prototype.start;a9.prototype.$_gspc=a9.prototype.B_;a9.prototype.$_gsppc=a9.prototype.gR;a9.prototype.$_c=a9.prototype.contains;a9.prototype.$_g=a9.prototype.get;a9.prototype.$_a=a9.prototype.add;a9.prototype.$_un=a9.prototype.wI;a9.prototype.$_r=a9.prototype.remove;a9.prototype.$_gs=a9.prototype.zk;a9.prototype.$_gos=a9.prototype.fR;a9.prototype.$_s=a9.prototype.subscribe;a9.prototype.$_ubk=a9.prototype.Fh;var g$=null,j$=!1,X9=null,Y9=null,stb=null,b$=[];g.x(xtb,g.E);g.k=xtb.prototype;g.k.qa=function(){g.E.prototype.qa.call(this);this.j.stop();this.u.stop();this.J.stop();var a=this.zc;a.unsubscribe("proxyStateChange",this.yW,this);a.unsubscribe("remotePlayerChange",this.bD,this);a.unsubscribe("remoteQueueChange",this.gH,this);a.unsubscribe("previousNextChange",this.vW,this);a.unsubscribe("nowAutoplaying",this.qW,this);a.unsubscribe("autoplayDismissed",this.UV,this);this.zc=this.module=null};
g.k.Ck=function(a){var b=g.Ca.apply(1,arguments);if(2!=this.zc.B)if(k$(this)){if(1081!=N9(this.zc).playerState||"control_seek"!==a)switch(a){case "control_toggle_play_pause":N9(this.zc).Yc()?this.zc.pause():this.zc.play();break;case "control_play":this.zc.play();break;case "control_pause":this.zc.pause();break;case "control_seek":this.I.iJ(b[0],b[1]);break;case "control_subtitles_set_track":ztb(this,b[0]);break;case "control_set_audio_track":this.setAudioTrack(b[0])}}else switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":b=
this.F.getCurrentTime();l$(this,0===b?void 0:b);break;case "control_seek":l$(this,b[0]);break;case "control_subtitles_set_track":ztb(this,b[0]);break;case "control_set_audio_track":this.setAudioTrack(b[0])}};
g.k.F5=function(a){this.J.g_(a)};
g.k.N9=function(a){this.Ck("control_subtitles_set_track",g.fd(a)?null:a)};
g.k.dY=function(){var a=this.F.getOption("captions","track");g.fd(a)||ztb(this,a)};
g.k.wc=function(a){this.module.wc(a,this.F.getVideoData().lengthSeconds)};
g.k.l6=function(){g.fd(this.B)||Atb(this,this.B);this.C=!1};
g.k.yW=function(a,b){this.u.stop();2===b&&this.UX()};
g.k.bD=function(){if(k$(this)){this.j.stop();var a=N9(this.zc);switch(a.playerState){case 1080:case 1081:case 1084:case 1085:this.module.yh=1;break;case 1082:case 1083:this.module.yh=0;break;default:this.module.yh=-1}switch(a.playerState){case 1081:case 1:this.lc(new g.OO(8));this.TX();break;case 1085:case 3:this.lc(new g.OO(9));break;case 1083:case 0:this.lc(new g.OO(2));this.I.stop();this.wc(this.F.getVideoData().lengthSeconds);break;case 1084:this.lc(new g.OO(4));break;case 2:this.lc(new g.OO(4));
this.wc(J9(a));break;case -1:this.lc(new g.OO(64));break;case -1E3:this.lc(new g.OO(128,{errorCode:"mdx.remoteerror",errorMessage:"This video is not available for remote playback.",yF:2}))}a=N9(this.zc).trackData;var b=this.B;(a||b?a&&b&&a.trackName==b.trackName&&a.languageCode==b.languageCode&&a.languageName==b.languageName&&a.kind==b.kind:1)||(this.B=a,Atb(this,a));a=N9(this.zc);-1===a.volume||Math.round(this.F.getVolume())===a.volume&&this.F.isMuted()===a.muted||this.V.isActive()||this.JY()}else ytb(this)};
g.k.vW=function(){this.F.ma("mdxpreviousnextchange")};
g.k.gH=function(){k$(this)||ytb(this)};
g.k.qW=function(a){isNaN(a)||this.F.ma("mdxnowautoplaying",a)};
g.k.UV=function(){this.F.ma("mdxautoplaycanceled")};
g.k.setAudioTrack=function(a){k$(this)&&this.zc.setAudioTrack(this.F.getVideoData(1).videoId,a)};
g.k.seekTo=function(a,b){-1===N9(this.zc).playerState?l$(this,a):b&&this.zc.seekTo(a)};
g.k.JY=function(){var a=this;if(k$(this)){var b=N9(this.zc);this.events.Fc(this.ea);b.muted?this.F.mute():this.F.unMute();this.F.setVolume(b.volume);this.ea=this.events.S(this.F,"onVolumeChange",function(c){vtb(a,c)})}};
g.k.TX=function(){this.j.stop();if(!this.zc.isDisposed()){var a=N9(this.zc);a.Yc()&&this.lc(new g.OO(8));this.wc(J9(a));this.j.start()}};
g.k.UX=function(){this.u.stop();this.j.stop();var a=this.zc.As();2==this.zc.B&&!isNaN(a)&&this.u.start()};
g.k.lc=function(a){this.u.stop();var b=this.D;if(!g.TO(b,a)){var c=g.UN(a,2);c!==g.UN(this.D,2)&&this.F.Oz(c);this.D=a;Ctb(this.module,b,a)}};g.x(m$,g.V);m$.prototype.md=function(){this.j.show()};
m$.prototype.Fb=function(){this.j.hide()};
m$.prototype.u=function(){a8("mdx-privacy-popup-cancel");this.Fb()};
m$.prototype.B=function(){a8("mdx-privacy-popup-confirm");this.Fb()};g.x(n$,g.V);n$.prototype.onStateChange=function(a){this.pc(a.state)};
n$.prototype.pc=function(a){if(3===this.api.getPresentingPlayerType()){var b={RECEIVER_NAME:this.api.getOption("remote","currentReceiver").name};a=g.UN(a,128)?g.pO("Error on $RECEIVER_NAME",b):a.Yc()||g.UO(a)?g.pO("Playing on $RECEIVER_NAME",b):g.pO("Connected to $RECEIVER_NAME",b);this.updateValue("statustext",a);this.j.show()}else this.j.hide()};g.x(o$,g.zV);o$.prototype.C=function(){var a=this.F.getOption("remote","receivers");a&&1<a.length&&!this.F.getOption("remote","quickCast")?(this.qt=g.Vb(a,this.j,this),g.AV(this,g.$l(a,this.j)),a=this.F.getOption("remote","currentReceiver"),a=this.j(a),this.options[a]&&this.vj(a),this.enable(!0)):this.enable(!1)};
o$.prototype.j=function(a){return a.key};
o$.prototype.gk=function(a){return"cast-selector-receiver"===a?"Cast...":this.qt[a].name};
o$.prototype.ah=function(a){g.zV.prototype.ah.call(this,a);this.F.setOption("remote","currentReceiver",this.qt[a]);this.Eb.Fb()};g.x(Btb,g.tT);g.k=Btb.prototype;
g.k.create=function(){var a=this.player.T(),b=g.oK(a);a={device:"Desktop",app:"youtube-desktop",loadCastApiSetupScript:a.K("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:a.K("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:a.K("enable_cast_short_lived_lounge_token")};mtb(b,a);this.subscriptions.push(g.lC("yt-remote-before-disconnect",this.D5,this));this.subscriptions.push(g.lC("yt-remote-connection-change",this.Y6,this));this.subscriptions.push(g.lC("yt-remote-receiver-availability-change",this.xW,
this));this.subscriptions.push(g.lC("yt-remote-auto-connect",this.W6,this));this.subscriptions.push(g.lC("yt-remote-receiver-resumed",this.V6,this));this.subscriptions.push(g.lC("mdx-privacy-popup-confirm",this.t8,this));this.subscriptions.push(g.lC("mdx-privacy-popup-cancel",this.s8,this));this.xW()};
g.k.load=function(){this.player.cancelPlayback();g.tT.prototype.load.call(this);this.wl=new xtb(this,this.player,this.zc);var a=(a=utb())?a.currentTime:0;var b=rtb()?new M9(f$(),void 0):null;0==a&&b&&(a=J9(N9(b)));0!==a&&this.wc(a);Ctb(this,this.Te,this.Te);this.player.kp(6)};
g.k.unload=function(){this.player.ma("mdxautoplaycanceled");this.Or=this.Xo;g.ib(this.wl,this.zc);this.zc=this.wl=null;g.tT.prototype.unload.call(this);this.player.kp(5);p$(this)};
g.k.qa=function(){g.mC(this.subscriptions);g.tT.prototype.qa.call(this)};
g.k.Zo=function(a){var b=g.Ca.apply(1,arguments);this.loaded&&this.wl.Ck.apply(this.wl,[a].concat(g.la(b)))};
g.k.getAdState=function(){return this.yh};
g.k.No=function(){return this.zc?N9(this.zc).No:!1};
g.k.Dk=function(){return this.zc?N9(this.zc).Dk:!1};
g.k.wc=function(a,b){this.fV=a||0;this.player.ma("progresssync",a,b);this.player.Na("onVideoProgress",a||0)};
g.k.getCurrentTime=function(){return this.fV};
g.k.getProgressState=function(){var a=N9(this.zc),b=this.player.getVideoData();return{airingStart:0,airingEnd:0,allowSeeking:1081!=a.playerState&&this.player.wh(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:this.getCurrentTime(),displayedStart:-1,duration:a.getDuration(),ingestionTime:a.u?a.B+G9(a):a.B,isAtLiveHead:1>=(a.u?a.j+G9(a):a.j)-this.getCurrentTime(),loaded:a.V,seekableEnd:a.u?a.j+G9(a):a.j,seekableStart:0<a.C?a.C+G9(a):a.C,offset:0,viewerLivestreamJoinTime:b.viewerLivestreamJoinTime}};
g.k.nextVideo=function(){this.zc&&this.zc.nextVideo()};
g.k.xH=function(){this.zc&&this.zc.xH()};
g.k.D5=function(a){1===a&&(this.uO=this.zc?N9(this.zc):null)};
g.k.Y6=function(){var a=rtb()?new M9(f$(),void 0):null;if(a){var b=this.Or;this.loaded&&this.unload();this.zc=a;this.uO=null;b.key!==this.Xo.key&&(this.Or=b,this.load())}else g.gb(this.zc),this.zc=null,this.loaded&&(this.unload(),(a=this.uO)&&a.videoId===this.player.getVideoData().videoId&&this.player.cueVideoById(a.videoId,J9(a)));this.player.ma("videodatachange","newdata",this.player.getVideoData(),3)};
g.k.xW=function(){var a=[this.Xo],b=a.concat,c=ntb();r9()&&g.Mz("yt-remote-cast-available")&&c.push({key:"cast-selector-receiver",name:"Cast..."});this.qt=b.call(a,c);a=ptb()||this.Xo;q$(this,a);this.player.Na("onMdxReceiversChange")};
g.k.W6=function(){var a=ptb();q$(this,a)};
g.k.V6=function(){this.Or=ptb()};
g.k.t8=function(){this.pD=!0;p$(this);j$=!1;g$&&i$(g$,1);g$=null};
g.k.s8=function(){this.pD=!1;p$(this);q$(this,this.Xo);this.Or=this.Xo;j$=!1;g$=null;this.player.playVideo()};
g.k.ph=function(a,b){switch(a){case "casting":return this.loaded;case "receivers":return this.qt;case "currentReceiver":return b&&("cast-selector-receiver"===b.key?Gsb():q$(this,b)),this.loaded?this.Or:this.Xo;case "quickCast":return 2===this.qt.length&&"cast-selector-receiver"===this.qt[1].key?(b&&Gsb(),!0):!1}};
g.k.FP=function(){this.zc.FP()};
g.k.Uk=function(){return!1};
g.k.getOptions=function(){return["casting","receivers","currentReceiver","quickCast"]};g.sT("remote",Btb);})(_yt_player);

}

/*
     FILE ARCHIVED ON 07:46:57 May 05, 2023 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:10:05 Jul 22, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  capture_cache.get: 0.814
  load_resource: 664.201 (2)
  PetaboxLoader3.resolve: 557.077 (2)
  PetaboxLoader3.datanode: 43.071 (2)
*/