NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

(function(){var g,aa=aa||{},m=this;function p(a){return void 0!==a}function q(a,b,c){a=a.split(".");c=c||m;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}}function r(a,b){for(var c=a.split("."),d=b||m,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}function t(){}function ba(a){a.getInstance=function(){return a.da?a.da:a.da=new a}}
function ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function da(a){return"array"==ca(a)}function ea(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function u(a){return"string"==typeof a}function fa(a){return"function"==ca(a)}function ga(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ha(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+(1E9*Math.random()>>>0),ka=0;function la(a,b,c){return a.call.apply(a.bind,arguments)}
function ma(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function v(a,b,c){v=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return v.apply(null,arguments)}
function w(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}var x=Date.now||function(){return+new Date};function z(a,b){function c(){}c.prototype=b.prototype;a.K=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[c].apply(a,h)}}
Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return v.apply(null,c)}return v(this,a)};function na(a){if(Error.captureStackTrace)Error.captureStackTrace(this,na);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}z(na,Error);na.prototype.name="CustomError";var oa;function pa(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}var qa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[sxa0]+|[sxa0]+$/g,"")};function ra(a){return decodeURIComponent(a.replace(/+/g," "))}
function sa(a){if(!ta.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ua,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(va,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(wa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(xa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(ya,"&#39;"));-1!=a.indexOf("x00")&&(a=a.replace(za,"&#0;"));return a}var ua=/&/g,va=/</g,wa=/>/g,xa=/"/g,ya=/'/g,za=/x00/g,ta=/[x00&<>"']/;
function Aa(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Ba,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(f=String.fromCharCode(h))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})}
function Ca(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})}var Ba=/&([^;s<&]+);?/g,Da={"x00":"\0","b":"\b","f":"\f","n":"\n","r":"\r","t":"\t","x0B":"\x0B",'"':'\"',"\":"\\"},Ea={"'":"\'"};
function Fa(a,b){for(var c=0,d=qa(String(a)).split("."),e=qa(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&h<f;h++){var k=d[h]||"",l=e[h]||"",n=RegExp("(\d*)(\D*)","g"),y=RegExp("(\d*)(\D*)","g");do{var K=n.exec(k)||["","",""],D=y.exec(l)||["","",""];if(0==K[0].length&&0==D[0].length)break;c=Ga(0==K[1].length?0:parseInt(K[1],10),0==D[1].length?0:parseInt(D[1],10))||Ga(0==K[2].length,0==D[2].length)||Ga(K[2],D[2])}while(0==c)}return c}function Ga(a,b){return a<b?-1:a>b?1:0}
function Ha(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}function Ia(a){return String(a).replace(/-([a-z])/g,function(a,c){return c.toUpperCase()})}function Ja(a){var b=u(void 0)?"undefined".replace(/([-()[]{}+?*.$^|,:#<!\])/g,"\$1").replace(/x08/g,"\x08"):"\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};function Ka(){};var La=Array.prototype,Ma=La.indexOf?function(a,b,c){return La.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(u(a))return u(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Na=La.lastIndexOf?function(a,b,c){return La.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(u(a))return u(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},A=La.forEach?function(a,b,c){La.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Oa=La.filter?function(a,b,c){return La.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=u(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[f++]=l)}return e},Pa=La.map?function(a,b,c){return La.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=u(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=
b.call(c,f[h],h,a));return e},Qa=La.reduce?function(a,b,c,d){d&&(b=v(b,d));return La.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;A(a,function(c,h){e=b.call(d,e,c,h,a)});return e},Ra=La.some?function(a,b,c){return La.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},Sa=La.every?function(a,b,c){return La.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],
f,a))return!1;return!0};function Ta(a,b,c){b=Ua(a,b,c);return 0>b?null:u(a)?a.charAt(b):a[b]}function Ua(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}function Va(a,b){return 0<=Ma(a,b)}function Wa(a){return 0==a.length}function Xa(){var a=Ya;if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Za(a,b){Va(a,b)||a.push(b)}function $a(a,b){var c=Ma(a,b),d;(d=0<=c)&&ab(a,c);return d}
function ab(a,b){La.splice.call(a,b,1)}function bb(a,b){var c=Ua(a,b,void 0);0<=c&&ab(a,c)}function cb(a){return La.concat.apply(La,arguments)}function db(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function eb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ea(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}}function fb(a,b,c,d){return La.splice.apply(a,gb(arguments,1))}
function gb(a,b,c){return 2>=arguments.length?La.slice.call(a,b):La.slice.call(a,b,c)}function hb(a,b,c){if(!ea(a)||!ea(b)||a.length!=b.length)return!1;var d=a.length;c=c||ib;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function kb(a,b){return a>b?1:a<b?-1:0}function ib(a,b){return a===b};function lb(a){if(a.classList)return a.classList;a=a.className;return u(a)&&a.match(/S+/g)||[]}function B(a,b){return a.classList?a.classList.contains(b):Va(lb(a),b)}function C(a,b){a.classList?a.classList.add(b):B(a,b)||(a.className+=0<a.className.length?" "+b:b)}function mb(a,b){if(a.classList)A(b,function(b){C(a,b)});else{var c={};A(lb(a),function(a){c[a]=!0});A(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function E(a,b){a.classList?a.classList.remove(b):B(a,b)&&(a.className=Oa(lb(a),function(a){return a!=b}).join(" "))}function nb(a,b){a.classList?A(b,function(b){E(a,b)}):a.className=Oa(lb(a),function(a){return!Va(b,a)}).join(" ")}function ob(a,b,c){c?C(a,b):E(a,b)}function pb(a,b){var c=!B(a,b);ob(a,b,c)}function qb(a,b,c){E(a,b);C(a,c)};function rb(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function sb(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}function tb(a){var b=0,c;for(c in a)b++;return b}function ub(a,b){return vb(a,b)}function wb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function xb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function vb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function yb(a){var b=zb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}
function Ab(a){for(var b in a)return!1;return!0}function Bb(a,b){if(b in a)throw Error('The object already contains the key "'+b+'"');a[b]=!0}function Cb(a){var b={},c;for(c in a)b[c]=a[c];return b}function Db(a){var b=ca(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Db(a[c]);return b}return a}var Eb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Fb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Eb.length;f++)c=Eb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function Gb(a){var b=arguments.length;if(1==b&&da(arguments[0]))return Gb.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};Gb("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));function Hb(){this.c=""}Hb.prototype.Xb=!0;Hb.prototype.Sb=function(){return this.c};Hb.prototype.toString=function(){return"Const{"+this.c+"}"};function Ib(a){var b=new Hb;b.c=a;return b};function Jb(){this.c="";this.f=Kb}Jb.prototype.Xb=!0;Jb.prototype.Sb=function(){return this.c};function Lb(a){return a instanceof Jb&&a.constructor===Jb&&a.f===Kb?a.c:"type_error:SafeUrl"}var Mb=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i;function Nb(a){if(a instanceof Jb)return a;a=a.Xb?a.Sb():String(a);a=Mb.test(a)?Ob(a):"about:invalid#zClosurez";var b=new Jb;b.c=a;return b}
function Ob(a){try{var b=encodeURI(a)}catch(c){return"about:invalid#zClosurez"}return b.replace(Pb,function(a){return Qb[a]})}var Pb=/[()']|%5B|%5D|%25/g,Qb={"'":"%27","(":"%28",")":"%29","%5B":"[","%5D":"]","%25":"%"},Kb={};function Rb(){this.c="";this.f=Sb;this.j=null}Rb.prototype.Xb=!0;Rb.prototype.Sb=function(){return this.c};function Tb(a){return a instanceof Rb&&a.constructor===Rb&&a.f===Sb?a.c:"type_error:SafeHtml"}var Sb={};function Ub(a,b){var c=new Rb;c.c=a;c.j=b;return c}Ub("<!DOCTYPE html>",0);Ub("",0);function Vb(a,b){var c;c=b instanceof Jb?b:Nb(b);a.href=Lb(c)};function Wb(a,b,c){a&&(a.dataset?a.dataset[Xb(b)]=c:a.setAttribute("data-"+b,c))}function F(a,b){return a?a.dataset?a.dataset[Xb(b)]:a.getAttribute("data-"+b):null}function Yb(a,b){a&&(a.dataset?delete a.dataset[Xb(b)]:a.removeAttribute("data-"+b))}var Zb={};function Xb(a){return Zb[a]||(Zb[a]=String(a).replace(/-([a-z])/g,function(a,c){return c.toUpperCase()}))};function $b(){this.Va=this.Va;this.Y=this.Y}$b.prototype.Va=!1;$b.prototype.isDisposed=function(){return this.Va};$b.prototype.dispose=function(){this.Va||(this.Va=!0,this.J())};function ac(a,b){a.Va?b.call(void 0):(a.Y||(a.Y=[]),a.Y.push(p(void 0)?v(b,void 0):b))}$b.prototype.J=function(){if(this.Y)for(;this.Y.length;)this.Y.shift()()};function bc(a){a&&"function"==typeof a.dispose&&a.dispose()};function H(){$b.call(this);this.l=1;this.f=[];this.j=0;this.c=[];this.la={}}z(H,$b);g=H.prototype;g.subscribe=function(a,b,c){var d=this.la[a];d||(d=this.la[a]=[]);var e=this.l;this.c[e]=a;this.c[e+1]=b;this.c[e+2]=c;this.l=e+3;d.push(e);return e};g.unsubscribe=function(a,b,c){if(a=this.la[a]){var d=this.c;if(a=Ta(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.ra(a)}return!1};
g.ra=function(a){if(0!=this.j)return this.f.push(a),!1;var b=this.c[a];if(b){var c=this.la[b];c&&$a(c,a);delete this.c[a];delete this.c[a+1];delete this.c[a+2]}return!!b};g.G=function(a,b){var c=this.la[a];if(c){this.j++;for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];e=0;for(f=c.length;e<f;e++){var h=c[e];this.c[h+1].apply(this.c[h+2],d)}this.j--;if(0<this.f.length&&0==this.j)for(;c=this.f.pop();)this.ra(c);return 0!=e}return!1};
g.clear=function(a){if(a){var b=this.la[a];b&&(A(b,this.ra,this),delete this.la[a])}else this.c.length=0,this.la={}};g.Z=function(a){if(a){var b=this.la[a];return b?b.length:0}a=0;for(b in this.la)a+=this.Z(b);return a};g.J=function(){H.K.J.call(this);this.clear();this.f.length=0};var cc=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",cc,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var dc=window.yt&&window.yt.msgs_||{};q("yt.msgs_",dc,void 0);function ec(a){var b=arguments;if(1<b.length){var c=b[0];cc[c]=b[1]}else for(c in b=b[0],b)cc[c]=b[c]}function I(a,b){return a in cc?cc[a]:b}function L(a,b){fa(a)&&(a=fc(a));return window.setTimeout(a,b)}function gc(a,b){fa(a)&&(a=fc(a));window.setInterval(a,b)}
function M(a){window.clearTimeout(a)}function fc(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw hc(b),b;}}:a}function hc(a,b){var c=r("yt.www.errors.log");c?c(a,b):(c=I("ERRORS")||[],c.push([a,b]),ec("ERRORS",c))}function ic(a,b,c){var d=b||{};if(a=a in dc?dc[a]:c)for(var e in d)a=a.replace(new RegExp("\$"+e,"gi"),function(){return d[e]});return a}
function jc(a){var b="MASTHEAD_NOTIFICATIONS_LABEL"in dc?dc.MASTHEAD_NOTIFICATIONS_LABEL:{},c=I("I18N_PLURAL_RULES")||function(a){return 1==a?"one":"other"};return(b=b["case"+a]||b[c(a)])?b.replace("#",a.toString()):a+""}var kc="Microsoft Internet Explorer"==navigator.appName;var lc=r("yt.pubsub.instance_")||new H;H.prototype.subscribe=H.prototype.subscribe;H.prototype.unsubscribeByKey=H.prototype.ra;H.prototype.publish=H.prototype.G;H.prototype.clear=H.prototype.clear;q("yt.pubsub.instance_",lc,void 0);var mc=r("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",mc,void 0);var nc=r("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",nc,void 0);var oc=r("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",oc,void 0);
var pc=r("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",pc,void 0);function N(a,b,c){var d=qc();if(d){var e=d.subscribe(a,function(){if(!pc||pc!=e){var d=arguments,h=function(){mc[e]&&b.apply(c||window,d)};try{oc[a]?h():L(h,0)}catch(k){hc(k)}}},c);mc[e]=!0;nc[a]||(nc[a]=[]);nc[a].push(e);return e}return 0}function rc(a){var b=qc();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),A(a,function(a){b.unsubscribeByKey(a);delete mc[a]}))}
function O(a,b){var c=qc();c&&c.publish.apply(c,arguments)}function sc(a,b){oc[a]=!0;var c=qc();c&&c.publish.apply(c,arguments);oc[a]=!1}function tc(a){nc[a]&&(a=nc[a],A(a,function(a){mc[a]&&delete mc[a]}),a.length=0)}function uc(a){var b=qc();if(b)if(b.clear(a),a)tc(a);else for(var c in nc)tc(c)}function qc(){return r("yt.pubsub.instance_")};function vc(a,b){if(window.spf){var c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(wc,""),c=c.replace(xc,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else yc(a,b)}function yc(a,b){var c=zc(a),d=document.getElementById(c),e=d&&F(d,"loaded"),f=d&&!e;if(e)b&&b();else{if(b){var e=N(c,b),h=""+ha(b);Ac[h]=e}f||(d=Bc(a,c,function(){F(d,"loaded")||(Wb(d,"loaded","true"),O(c),L(w(uc,c),0))}))}}
function Bc(a,b,c){var d=document.createElement("script");d.id=b;d.onload=function(){c&&setTimeout(c,0)};d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};d.src=a;a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(d,a.firstChild);return d}function Cc(a,b){if(a&&b){var c=""+ha(b);(c=Ac[c])&&rc(c)}}function zc(a){var b=document.createElement("a");Vb(b,a);a=b.href.replace(/^[a-zA-Z]+:///,"//");return"js-"+Ha(a)}
var wc=/.vflset|-vfl[a-zA-Z0-9_+=-]+/,xc=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(/|$))/,Ac={};function Dc(a,b){if(window.spf){var c=a.match(Ec);spf.style.load(a,c?c[1]:"",b);return null}return Fc(a,b)}function Gc(a,b,c){if(a=I(a)){var d=w(Dc,a,b);if(c)var e=N(c,function(){rc(e);d()});else d()}}function Fc(a,b){var c=Hc(a),d=document.getElementById(c),e=d&&F(d,"loaded"),f=d&&!e;if(e)return b&&b(),d;b&&(N(c,b),ha(b));return f?d:d=Ic(a,c,function(){F(d,"loaded")||(Wb(d,"loaded","true"),O(c),L(w(uc,c),0))})}
function Ic(a,b,c){var d=document.createElement("link");d.id=b;d.rel="stylesheet";d.onload=function(){c&&setTimeout(c,0)};Vb(d,a);(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d}function Hc(a){var b=document.createElement("a");Vb(b,a);a=b.href.replace(/^[a-zA-Z]+:///,"//");return"css-"+Ha(a)}var Ec=/cssbin/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function Jc(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0}Jc.prototype.clone=function(){return new Jc(this.x,this.y)};function Kc(a,b){return new Jc(a.x-b.x,a.y-b.y)}Jc.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};Jc.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};Jc.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function Lc(a,b){this.width=a;this.height=b}g=Lc.prototype;g.clone=function(){return new Lc(this.width,this.height)};g.isEmpty=function(){return!(this.width*this.height)};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Mc;a:{var Nc=m.navigator;if(Nc){var Oc=Nc.userAgent;if(Oc){Mc=Oc;break a}}Mc=""}function P(a){return-1!=Mc.indexOf(a)};function Pc(){return P("Opera")||P("OPR")}function Qc(){return P("Edge")||P("Trident")||P("MSIE")}function Rc(){return(P("Chrome")||P("CriOS"))&&!Pc()&&!Qc()};function Sc(){return P("Edge")};function Tc(){return P("iPhone")&&!P("iPod")&&!P("iPad")};var Uc=Pc(),Q=Qc(),Vc=P("Gecko")&&!(-1!=Mc.toLowerCase().indexOf("webkit")&&!Sc())&&!(P("Trident")||P("MSIE"))&&!Sc(),Wc=-1!=Mc.toLowerCase().indexOf("webkit")&&!Sc(),Xc=P("Macintosh"),Yc=P("Windows");function Zc(){var a=Mc;if(Vc)return/rv:([^);]+)()|;)/.exec(a);if(Q&&Sc())return/Edge/([d.]+)/.exec(a);if(Q)return/b(?:MSIE|rv)[: ]([^);]+)()|;)/.exec(a);if(Wc)return/WebKit/(S+)/.exec(a)}function $c(){var a=m.document;return a?a.documentMode:void 0}
var ad=function(){if(Uc&&m.opera){var a=m.opera.version;return fa(a)?a():a}var a="",b=Zc();b&&(a=b?b[1]:"");return Q&&!Sc()&&(b=$c(),b>parseFloat(a))?String(b):a}(),bd={};function cd(a){return bd[a]||(bd[a]=0<=Fa(ad,a))}function dd(a){return Q&&(Sc()||ed>=a)}var fd=m.document,gd=$c(),ed=!fd||!Q||!gd&&Sc()?void 0:gd||("CSS1Compat"==fd.compatMode?parseInt(ad,10):5);var hd=!Q||dd(9),id=!Vc&&!Q||Q&&dd(9)||Vc&&cd("1.9.1"),jd=Q&&!cd("9"),kd=Q||Uc||Wc;function ld(a){return a?new md(nd(a)):oa||(oa=new md)}function R(a){return u(a)?document.getElementById(a):a}function od(a){var b=document;return u(a)?b.getElementById(a):a}function pd(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):qd("*",a,b)}function S(a,b){var c=b||document,d=null;c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=qd("*",a,b)[0];return d||null}
function qd(a,b,c){var d=document;c=c||d;a=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,f=0,h;h=c[f];f++)a==h.nodeName&&(d[e++]=h);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;h=c[f];f++)a=h.className,"function"==typeof a.split&&Va(a.split(/s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function rd(a,b){rb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in sd?a.setAttribute(sd[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var sd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function td(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new Lc(a.clientWidth,a.clientHeight)}function ud(a){var b=vd(a);a=wd(a);return Q&&cd("10")&&a.pageYOffset!=b.scrollTop?new Jc(b.scrollLeft,b.scrollTop):new Jc(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function vd(a){return Wc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}function wd(a){return a.parentWindow||a.defaultView}
function xd(a,b,c){var d=arguments,e=document,f=d[0],h=d[1];if(!hd&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',sa(h.name),'"');if(h.type){f.push(' type="',sa(h.type),'"');var k={};Fb(k,h);delete k.type;h=k}f.push(">");f=f.join("")}f=e.createElement(f);h&&(u(h)?f.className=h:da(h)?f.className=h.join(" "):rd(f,h));2<d.length&&yd(e,f,d);return f}
function yd(a,b,c){function d(c){c&&b.appendChild(u(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!ea(f)||ga(f)&&0<f.nodeType?d(f):A(zd(f)?db(f):f,d)}}function Ad(a){var b=document,c=b.createElement("DIV");Q?(c.innerHTML="<br>"+a,c.removeChild(c.firstChild)):c.innerHTML=a;if(1==c.childNodes.length)c=c.removeChild(c.firstChild);else{for(a=b.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);c=a}return c}function Bd(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function Cd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function Dd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Ed(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function Fd(a){return id&&void 0!=a.children?a.children:Oa(a.childNodes,function(a){return 1==a.nodeType})}function Gd(a){return void 0!=a.firstElementChild?a.firstElementChild:Hd(a.firstChild,!0)}function Hd(a,b){for(;a&&1!=a.nodeType;)a=b?a.nextSibling:a.previousSibling;return a}
function Id(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null}function Jd(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a}function Kd(a){var b;if(kd&&!(Q&&cd("9")&&!cd("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ga(b)&&1==b.nodeType?b:null}
function Ld(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function nd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function Md(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{Bd(a);var c=nd(a);a.appendChild(c.createTextNode(String(b)))}}var Nd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Od={IMG:" ",BR:"n"};
function Pd(a,b,c){if(!(a.nodeName in Nd))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(rn|r|n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Od)b.push(Od[a.nodeName]);else for(a=a.firstChild;a;)Pd(a,b,c),a=a.nextSibling}function zd(a){if(a&&"number"==typeof a.length){if(ga(a))return"function"==typeof a.item||"string"==typeof a.item;if(fa(a))return"function"==typeof a.item}return!1}
function Qd(a,b,c){return b?Rd(a,function(a){return!b||u(a.className)&&Va(a.className.split(/s+/),b)},c):null}function Sd(a,b){return Qd(a,b,void 0)}function Rd(a,b,c){for(var d=null==c,e=0;a&&(d||e<=c);){if(b(a))return a;a=a.parentNode;e++}return null}function md(a){this.c=a||m.document||document}md.prototype.ma=function(a){return u(a)?this.c.getElementById(a):a};md.prototype.createElement=function(a){return this.c.createElement(a)};function Td(a){return"CSS1Compat"==a.c.compatMode}
md.prototype.appendChild=function(a,b){a.appendChild(b)};md.prototype.contains=Ld;var Ud,Vd;var Wd=Wc?"webkitTransitionEnd":Uc?"otransitionend":"transitionend";function Xd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}g=Xd.prototype;g.clone=function(){return new Xd(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof Xd?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};g.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};g.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};function Yd(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}g=Yd.prototype;g.clone=function(){return new Yd(this.left,this.top,this.width,this.height)};g.contains=function(a){return a instanceof Yd?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
g.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Zd(a,b,c){if(u(b))(b=$d(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=$d(c,d);f&&(c.style[f]=e)}}var ae={};function $d(a,b){var c=ae[b];if(!c){var d=Ia(b),c=d;void 0===a.style[d]&&(d=(Wc?"Webkit":Vc?"Moz":Q?"ms":Uc?"O":null)+Ja(d),void 0!==a.style[d]&&(c=d));ae[b]=c}return c}function be(a,b){var c=nd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}
function ce(a,b){return be(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function de(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}Q&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function ee(a){if(Q&&!dd(8))return a.offsetParent;var b=nd(a),c=ce(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=ce(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
function fe(a){for(var b=new Xd(0,Infinity,Infinity,0),c=ld(a),d=c.c.body,e=c.c.documentElement,f=vd(c.c);a=ee(a);)if(!(Q&&0==a.clientWidth||Wc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=ce(a,"overflow")){var h=ge(a),k=new Jc(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);
c=td(wd(c.c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}function ge(a){var b=nd(a),c=new Jc(0,0),d;d=b?nd(b):document;d=!Q||dd(9)||Td(ld(d))?d.documentElement:d.body;if(a==d)return c;a=de(a);b=ld(b);b=ud(b.c);c.x=a.left+b.x;c.y=a.top+b.y;return c}function he(a){a=de(a);return new Jc(a.left,a.top)}
function ie(a){if(1==a.nodeType)return he(a);var b=fa(a.j),c=a;a.targetTouches&&a.targetTouches.length?c=a.targetTouches[0]:b&&a.c.targetTouches&&a.c.targetTouches.length&&(c=a.c.targetTouches[0]);return new Jc(c.clientX,c.clientY)}function je(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}
function ke(a){var b=le;if("none"!=ce(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}function le(a){var b=a.offsetWidth,c=a.offsetHeight,d=Wc&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new Lc(b,c):(a=de(a),new Lc(a.right-a.left,a.bottom-a.top))}function me(a){var b=ge(a);a=ke(a);return new Yd(b.x,b.y,a.width,a.height)}
function ne(a){return"rtl"==ce(a,"direction")}function oe(a,b){if(/^d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}function pe(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?oe(a,c):0}
function qe(a){if(Q){var b=pe(a,"paddingLeft"),c=pe(a,"paddingRight"),d=pe(a,"paddingTop");a=pe(a,"paddingBottom");return new Xd(d,c,a,b)}b=be(a,"paddingLeft");c=be(a,"paddingRight");d=be(a,"paddingTop");a=be(a,"paddingBottom");return new Xd(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var re={thin:2,medium:4,thick:6};function se(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in re?re[c]:oe(a,c)}
function te(a){if(Q&&!dd(9)){var b=se(a,"borderLeft"),c=se(a,"borderRight"),d=se(a,"borderTop");a=se(a,"borderBottom");return new Xd(d,c,a,b)}b=be(a,"borderLeftWidth");c=be(a,"borderRightWidth");d=be(a,"borderTopWidth");a=be(a,"borderBottomWidth");return new Xd(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}Q&&cd(12);function ue(a){var b=a.__yt_uid_key;b||(b=ve(),a.__yt_uid_key=b);return b}var ve=r("yt.dom.getNextId_");if(!ve){ve=function(){return++we};q("yt.dom.getNextId_",ve,void 0);var we=0}function xe(a,b,c){a=qd(a,b,c);return a.length?a[0]:null}function ye(a,b){"disabled"in a&&(a.disabled=!b);1==a.nodeType&&ob(a,"disabled",!b);if(a.hasChildNodes())for(var c=0,d;d=a.childNodes[c];++c)ye(d,b)}
function ze(a){a=a.replace(/^[sxa0]+/,"");var b=String(a.substr(0,3)).toLowerCase();if(0==("<tr"<b?-1:"<tr"==b?0:1))return a=Ad("<table><tbody>"+a+"</tbody></table>"),xe("tr",null,a);b=document.createElement("div");b.innerHTML=a;return Gd(b)}function Ae(){ob(document.body,"hide-players",!1);var a=pd("preserve-players");A(a,function(a){E(a,"preserve-players")})};function Be(a){if(a=a||window.event){this.event=a;for(var b in a)b in Ce||(this[b]=a[b]);(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==
this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;"MozMousePixelScroll"==this.type?(this.wheelDeltaX=a.axis==a.HORIZONTAL_AXIS?a.detail:0,this.wheelDeltaY=a.axis==a.HORIZONTAL_AXIS?0:a.detail):window.opera?(this.wheelDeltaX=0,this.wheelDeltaY=a.detail):0==a.wheelDelta%120?"WebkitTransform"in document.documentElement.style?window.chrome&&0==navigator.platform.indexOf("Mac")?(this.wheelDeltaX=a.wheelDeltaX/-30,this.wheelDeltaY=a.wheelDeltaY/-30):(this.wheelDeltaX=
a.wheelDeltaX/-1.2,this.wheelDeltaY=a.wheelDeltaY/-1.2):(this.wheelDeltaX=0,this.wheelDeltaY=a.wheelDelta/-1.6):(this.wheelDeltaX=a.wheelDeltaX/-3,this.wheelDeltaY=a.wheelDeltaY/-3)}}g=Be.prototype;g.type="";g.target=null;g.relatedTarget=null;g.currentTarget=null;g.data=null;g.state=null;g.keyCode=0;g.charCode=0;g.altKey=!1;g.ctrlKey=!1;g.shiftKey=!1;g.clientX=0;g.clientY=0;g.wheelDeltaX=0;g.wheelDeltaY=0;
g.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};g.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};var Ce={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var zb=r("yt.events.listeners_")||{};q("yt.events.listeners_",zb,void 0);var De=r("yt.events.counter_")||{count:0};q("yt.events.counter_",De,void 0);function Ee(a,b,c,d){return yb(function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function T(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Ee(a,b,c,d);if(e)return e;var e=++De.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=f?function(d){d=new Be(d);if(!Rd(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Be(b);b.currentTarget=a;return c.call(a,b)};h=fc(h);zb[e]=[a,b,c,h,d];a.addEventListener?"mouseenter"==b&&f?a.addEventListener("mouseover",h,
d):"mouseleave"==b&&f?a.addEventListener("mouseout",h,d):"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style?a.addEventListener("MozMousePixelScroll",h,d):a.addEventListener(b,h,d):a.attachEvent("on"+b,h);return e}function Fe(a,b,c){var d;return d=T(a,b,function(){Ge(d);c.apply(a,arguments)},void 0)}function He(a,b,c,d){return Ie(a,b,c,function(a){return B(a,d)})}
function Ie(a,b,c,d){var e=a||document;return T(e,b,function(a){var b=Rd(a.target,function(a){return a===e||d(a)});b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Ge(a){a&&("string"==typeof a&&(a=[a]),A(a,function(a){if(a in zb){var c=zb[a],d=c[0],e=c[1],f=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent&&d.detachEvent("on"+e,f);delete zb[a]}}))}function Je(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};function Ke(){Wb(Le,"target-id","content")}function Me(){var a=R(F(Le,"target-id"));a.setAttribute("tabindex","0");a.focus();a=ge(R("page-container")).y;window.scrollBy(0,-a)}var Le=null;function Ne(a){Vd&&Ud&&(Bd(Vd),Vd.setAttribute("role","alert"),Ud.style.clip="auto",Vd.appendChild(document.createTextNode(a)),Vd.style.display="none",Vd.style.display="inline")};function Oe(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};var Pe="StopIteration"in m?m.StopIteration:{message:"StopIteration",stack:""};function Qe(){}Qe.prototype.next=function(){throw Pe;};Qe.prototype.va=function(){return this};function Re(a){if(a instanceof Qe)return a;if("function"==typeof a.va)return a.va(!1);if(ea(a)){var b=0,c=new Qe;c.next=function(){for(;;){if(b>=a.length)throw Pe;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function Se(a,b,c){if(ea(a))try{A(a,b,c)}catch(d){if(d!==Pe)throw d;}else{a=Re(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==Pe)throw e;}}}function Te(a){if(ea(a))return db(a);a=Re(a);var b=[];Se(a,function(a){b.push(a)});return b};function Ue(a,b){this.f={};this.c=[];this.Ka=this.j=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Ve(this,arguments[d],arguments[d+1])}else if(a){a instanceof Ue?(c=a.za(),d=a.ca()):(c=xb(a),d=wb(a));for(var e=0;e<c.length;e++)Ve(this,c[e],d[e])}}g=Ue.prototype;g.Z=function(){return this.j};g.ca=function(){We(this);for(var a=[],b=0;b<this.c.length;b++)a.push(this.f[this.c[b]]);return a};g.za=function(){We(this);return this.c.concat()};
g.wb=function(a){for(var b=0;b<this.c.length;b++){var c=this.c[b];if(Xe(this.f,c)&&this.f[c]==a)return!0}return!1};g.equals=function(a,b){if(this===a)return!0;if(this.j!=a.Z())return!1;var c=b||Ye;We(this);for(var d,e=0;d=this.c[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function Ye(a,b){return a===b}g.isEmpty=function(){return 0==this.j};g.clear=function(){this.f={};this.Ka=this.j=this.c.length=0};
g.remove=function(a){return Xe(this.f,a)?(delete this.f[a],this.j--,this.Ka++,this.c.length>2*this.j&&We(this),!0):!1};function We(a){if(a.j!=a.c.length){for(var b=0,c=0;b<a.c.length;){var d=a.c[b];Xe(a.f,d)&&(a.c[c++]=d);b++}a.c.length=c}if(a.j!=a.c.length){for(var e={},c=b=0;b<a.c.length;)d=a.c[b],Xe(e,d)||(a.c[c++]=d,e[d]=1),b++;a.c.length=c}}g.get=function(a,b){return Xe(this.f,a)?this.f[a]:b};function Ve(a,b,c){Xe(a.f,b)||(a.j++,a.c.push(b),a.Ka++);a.f[b]=c}
g.forEach=function(a,b){for(var c=this.za(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};g.clone=function(){return new Ue(this)};g.va=function(a){We(this);var b=0,c=this.Ka,d=this,e=new Qe;e.next=function(){if(c!=d.Ka)throw Error("The map has changed since the iterator was created");if(b>=d.c.length)throw Pe;var e=d.c[b++];return a?e:d.f[e]};return e};function Xe(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Ze(a,b,c){for(var d=a.elements,e,f=0;e=d[f];f++)if(e.form==a&&!e.disabled&&"FIELDSET"!=e.tagName){var h=e.name;switch(e.type.toLowerCase()){case "file":case "submit":case "reset":case "button":break;case "select-multiple":e=$e(e);if(null!=e)for(var k,l=0;k=e[l];l++)c(b,h,k);break;default:k=$e(e),null!=k&&c(b,h,k)}}d=a.getElementsByTagName("INPUT");for(f=0;e=d[f];f++)e.form==a&&"image"==e.type.toLowerCase()&&(h=e.name,c(b,h,e.value),c(b,h+".x","0"),c(b,h+".y","0"))}
function af(a,b,c){var d=a.get(b);d||(d=[],Ve(a,b,d));d.push(c)}function bf(a,b,c){a.push(encodeURIComponent(b)+"="+encodeURIComponent(c))}function $e(a){var b=a.type;if(!p(b))return null;switch(b.toLowerCase()){case "checkbox":case "radio":return a.checked?a.value:null;case "select-one":return b=a.selectedIndex,0<=b?a.options[b].value:null;case "select-multiple":for(var b=[],c,d=0;c=a.options[d];d++)c.selected&&b.push(c.value);return b.length?b:null;default:return p(a.value)?a.value:null}};function cf(a,b){return Ub(b,null)};function df(a){a=String(a);if(/^s*$/.test(a)?0:/^[],:{}su2028u2029]*$/.test(a.replace(/\["\/bfnrtu]/g,"@").replace(/"[^"\nru2028u2029x00-x08x0a-x1f]*"|true|false|null|-?d+(?:.d*)?(?:[eE][+-]?d+)?/g,"]").replace(/(?:^|:|,)(?:[su2028u2029]*[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function ef(a){return eval("("+a+")")}function ff(a){return gf(new hf(void 0),a)}function hf(a){this.c=a}
function gf(a,b){var c=[];jf(a,b,c);return c.join("")}
function jf(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(da(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],jf(a,a.c?a.c.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),kf(d,c),c.push(":"),jf(a,a.c?a.c.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":kf(b,
c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}}var lf={'"':'\"',"\":"\\","/":"\/","b":"\b","f":"\f","n":"\n","r":"\r","t":"\t","x0B":"\u000b"},mf=/uffff/.test("uffff")?/[\"x00-x1fx7f-uffff]/g:/[\"x00-x1fx7f-xff]/g;
function kf(a,b){b.push('"',a.replace(mf,function(a){var b=lf[a];b||(b="\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),lf[a]=b);return b}),'"')};var nf=/^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:?([^#]*))?(?:#(.*))?$/;function of(a){if(pf){pf=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=qf(c))&&c!=b.hostname)throw pf=!0,Error();}}return a.match(nf)}var pf=Wc;function qf(a){return(a=of(a)[3]||null)?decodeURI(a):a}function rf(){var a=window.location.href,b=a.indexOf("#");return 0>b?null:a.substr(b+1)}
function sf(a){var b=of(a);a=b[5];var c=b[6],b=b[7],d="";a&&(d+=a);c&&(d+="?"+c);b&&(d+="#"+b);return d}function tf(a){var b=a.indexOf("#");return 0>b?a:a.substr(0,b)}function uf(a,b){for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null,h=null;0<=e?(f=c[d].substring(0,e),h=c[d].substring(e+1)):f=c[d];b(f,h?ra(h):"")}}function vf(a,b,c){if(da(b))for(var d=0;d<b.length;d++)vf(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
function wf(a,b){for(var c in b)vf(c,b[c],a);return a}function xf(a){a=wf([],a);a[0]="";return a.join("")}function yf(a,b){var c=wf([a],b);if(c[1]){var d=c[0],e=d.indexOf("#");0<=e&&(c.push(d.substr(e)),c[0]=d=d.substr(0,e));e=d.indexOf("?");0>e?c[1]="?":e==d.length-1&&(c[1]=void 0)}return c.join("")};function zf(a){"?"==a.charAt(0)&&(a=a.substr(1));a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length){var f=ra(e[0]||""),e=ra(e[1]||"");f in b?da(b[f])?eb(b[f],e):b[f]=[b[f],e]:b[f]=e}}return b}function Af(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),zf(1<a.length?a[1]:a[0])):{}}var Bf=qf;
function Cf(a,b){var c=a.split("#",2);a=c[0];var c=1<c.length?"#"+c[1]:"",d=a.split("?",2);a=d[0];var d=zf(d[1]||""),e;for(e in b)d[e]=b[e];return yf(a,d)+c}function Df(a){a=Bf(a);a=null===a?null:a.split(".").reverse();return(null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:-nocookie)?$/)?!0:!1)||(null===a?!1:"google"==a[1]?!0:"google"==a[2]?"au"==a[0]&&"com"==a[1]?!0:"uk"==a[0]&&"co"==a[1]?!0:!1:!1)};var Ef=null;"undefined"!=typeof XMLHttpRequest?Ef=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Ef=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Ff(a,b,c,d,e,f,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&fc(b)(l)}var l=Ef&&Ef();if(!("open"in l))return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;c=(c||"GET").toUpperCase();d=d||"";l.open(c,a,!0);f&&(l.responseType=f);h&&(l.withCredentials=!0);f="POST"==c;if(e=Gf(a,e))for(var n in e)l.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(f=!1);f&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l}
function Gf(a,b){b=b||{};for(var c in Hf){var d=I(Hf[c]),e;if(e=d){e=a;var f=void 0;f=window.location.href;var h=of(e)[1]||null,k=Bf(e);h&&k?(e=of(e),f=of(f),e=e[3]==f[3]&&e[1]==f[1]&&e[4]==f[4]):e=k?Bf(f)==k&&(Number(of(f)[4]||null)||null)==(Number(of(e)[4]||null)||null):!0;e||(e=c,f=I("CORS_HEADER_WHITELIST")||{},e=(h=Bf(a))?(f=f[h])?Va(f,e):!1:!0)}e&&(b[c]=d)}return b}
function If(a,b){var c=I("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.df&&(!Bf(a)||Bf(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.$&&b.$[c])}
function Jf(a,b){var c=b.format||"JSON";b.gf&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=I("XSRF_FIELD_NAME"),e=I("XSRF_TOKEN"),f=b.Ja;f&&(f[d]&&delete f[d],a=Cf(a,f||{}));var h=b.qe||"",f=b.$;If(a,b)&&(f||(f={}),f[d]=e);f&&u(h)&&(d=zf(h),Fb(d,f),h=xf(d));var k=!1,l,n=Ff(a,function(a){if(!k){k=!0;l&&M(l);var d;a:switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:d=
!0;break a;default:d=!1}var e=null;if(d||400<=a.status&&500>a.status)e=Kf(c,a,b.bf);if(d)a:{switch(c){case "XML":d=0==parseInt(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||m;d?b.R&&b.R.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.$b&&b.$b.call(f,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.nb&&0<b.timeout&&(l=L(function(){k||(k=!0,n.abort(),M(l),b.nb.call(b.context||m,n))},b.timeout));return n}
function Kf(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=ef(a));break;case "XML":if(b=(b=b.responseXML)?Lf(b):null)d={},A(b.getElementsByTagName("*"),function(a){d[a.tagName]=Mf(a)})}c&&Nf(d);return d}
function Nf(a){if(ga(a))for(var b in a){var c;(c="html_content"==b)||(c=b.length-5,c=0<=c&&b.indexOf("_html",c)==c);c?a[b]=cf(Ib("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Nf(a[b])}}function Lf(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Mf(a){var b="";A(a.childNodes,function(a){b+=a.nodeValue});return b}
var Hf={"X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Timestamp":"PAGE_BUILD_TIMESTAMP","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};function Of(a,b){(a=R(a))&&a.style&&(a.style.display=b?"":"none",ob(a,"hid",!b))}function Pf(a){return(a=R(a))?!("none"==a.style.display||B(a,"hid")):!1}function Qf(a){if(a=R(a))Pf(a)?(a.style.display="none",C(a,"hid")):(a.style.display="",E(a,"hid"))}function Rf(a,b){if(a=R(a))a.style.visibility=b?"visible":"hidden"}function Sf(a){A(arguments,function(a){Of(a,!0)})}function Tf(a){A(arguments,function(a){Of(a,!1)})}function Uf(a){A(arguments,Qf)};function Vf(a){Vf[" "](a);return a}Vf[" "]=t;var Wf=!Q||dd(9),Xf=Q&&!cd("9");!Wc||cd("528");Vc&&cd("1.9b")||Q&&cd("8")||Uc&&cd("9.5")||Wc&&cd("528");Vc&&!cd("8")||Q&&cd("9");function Yf(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.f=!1;this.Yc=!0}Yf.prototype.stopPropagation=function(){this.f=!0};Yf.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Yc=!1};function Zf(a,b){Yf.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.clientY=this.clientX=0;this.shiftKey=this.altKey=this.ctrlKey=!1;this.c=this.state=null;a&&this.init(a,b)}z(Zf,Yf);
Zf.prototype.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(Vc){var e;a:{try{Vf(d.nodeName);e=!0;break a}catch(f){}e=!1}e||(d=null)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);
this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.state=a.state;this.c=a;a.defaultPrevented&&this.preventDefault()};Zf.prototype.stopPropagation=function(){Zf.K.stopPropagation.call(this);this.c.stopPropagation?this.c.stopPropagation():this.c.cancelBubble=!0};Zf.prototype.preventDefault=function(){Zf.K.preventDefault.call(this);var a=this.c;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Xf)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};
Zf.prototype.j=function(){return this.c};var $f="closure_listenable_"+(1E6*Math.random()|0),ag=0;function bg(a,b,c,d,e){this.listener=a;this.c=null;this.src=b;this.type=c;this.ub=!!d;this.Ab=e;this.key=++ag;this.bb=this.tb=!1}function cg(a){a.bb=!0;a.listener=null;a.c=null;a.src=null;a.Ab=null};function dg(a){this.src=a;this.c={};this.f=0}dg.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.c[f];a||(a=this.c[f]=[],this.f++);var h=eg(a,b,d,e);-1<h?(b=a[h],c||(b.tb=!1)):(b=new bg(b,this.src,f,!!d,e),b.tb=c,a.push(b));return b};dg.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.c))return!1;var e=this.c[a];b=eg(e,b,c,d);return-1<b?(cg(e[b]),ab(e,b),0==e.length&&(delete this.c[a],this.f--),!0):!1};
function fg(a,b){var c=b.type;if(!(c in a.c))return!1;var d=$a(a.c[c],b);d&&(cg(b),0==a.c[c].length&&(delete a.c[c],a.f--));return d}dg.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.c)if(!a||c==a){for(var d=this.c[c],e=0;e<d.length;e++)++b,cg(d[e]);delete this.c[c];this.f--}return b};function gg(a,b,c,d,e){a=a.c[b.toString()];b=-1;a&&(b=eg(a,c,d,e));return-1<b?a[b]:null}
function eg(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.bb&&f.listener==b&&f.ub==!!c&&f.Ab==d)return e}return-1};var hg="closure_lm_"+(1E6*Math.random()|0),ig={},jg=0;
function kg(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)kg(a,b[f],c,d,e);return null}c=lg(c);if(a&&a[$f])a=a.Ba(b,c,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,h=mg(a);h||(a[hg]=h=new dg(a));c=h.add(b,c,!1,d,e);if(!c.c){d=ng();c.c=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,f);else if(a.attachEvent)a.attachEvent(og(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");jg++}a=c}return a}
function ng(){var a=pg,b=Wf?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function qg(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)qg(a,b[f],c,d,e);else c=lg(c),a&&a[$f]?a.ic(b,c,d,e):a&&(a=mg(a))&&(b=gg(a,b,c,!!d,e))&&rg(b)}
function rg(a){if("number"==typeof a||!a||a.bb)return!1;var b=a.src;if(b&&b[$f])return fg(b.Fa,a);var c=a.type,d=a.c;b.removeEventListener?b.removeEventListener(c,d,a.ub):b.detachEvent&&b.detachEvent(og(c),d);jg--;(c=mg(b))?(fg(c,a),0==c.f&&(c.src=null,b[hg]=null)):cg(a);return!0}function og(a){return a in ig?ig[a]:ig[a]="on"+a}function sg(a,b,c,d){var e=!0;if(a=mg(a))if(b=a.c[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.ub==c&&!f.bb&&(f=tg(f,d),e=e&&!1!==f)}return e}
function tg(a,b){var c=a.listener,d=a.Ab||a.src;a.tb&&rg(a);return c.call(d,b)}
function pg(a,b){if(a.bb)return!0;if(!Wf){var c=b||r("window.event"),d=new Zf(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(h){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,k=c.length-1;!d.f&&0<=k;k--){d.currentTarget=c[k];var l=sg(c[k],f,!0,d),e=e&&l}for(k=0;!d.f&&k<c.length;k++)d.currentTarget=c[k],l=sg(c[k],f,!1,d),e=e&&l}return e}return tg(a,new Zf(b,this))}
function mg(a){a=a[hg];return a instanceof dg?a:null}var ug="__closure_events_fn_"+(1E9*Math.random()>>>0);function lg(a){if(fa(a))return a;a[ug]||(a[ug]=function(b){return a.handleEvent(b)});return a[ug]};function vg(a){$b.call(this);this.f=a;this.c={}}z(vg,$b);var wg=[];g=vg.prototype;g.Ba=function(a,b,c,d){da(b)||(b&&(wg[0]=b.toString()),b=wg);for(var e=0;e<b.length;e++){var f=kg(a,b[e],c||this.handleEvent,d||!1,this.f||this);if(!f)break;this.c[f.key]=f}return this};
g.ic=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)this.ic(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.f||this,c=lg(c),d=!!d,b=a&&a[$f]?gg(a.Fa,String(b),c,d,e):a?(a=mg(a))?gg(a,b,c,d,e):null:null,b&&(rg(b),delete this.c[b.key]);return this};g.removeAll=function(){rb(this.c,rg);this.c={}};g.J=function(){vg.K.J.call(this);this.removeAll()};g.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function xg(){$b.call(this);this.Fa=new dg(this);this.Wa=this;this.ha=null}z(xg,$b);xg.prototype[$f]=!0;g=xg.prototype;g.gc=function(a){this.ha=a};g.addEventListener=function(a,b,c,d){kg(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){qg(this,a,b,c,d)};
function yg(a,b){var c,d=a.ha;if(d){c=[];for(var e=1;d;d=d.ha)c.push(d),++e}var d=a.Wa,e=b,f=e.type||e;if(u(e))e=new Yf(e,d);else if(e instanceof Yf)e.target=e.target||d;else{var h=e,e=new Yf(f,d);Fb(e,h)}var h=!0,k;if(c)for(var l=c.length-1;!e.f&&0<=l;l--)k=e.currentTarget=c[l],h=zg(k,f,!0,e)&&h;e.f||(k=e.currentTarget=d,h=zg(k,f,!0,e)&&h,e.f||(h=zg(k,f,!1,e)&&h));if(c)for(l=0;!e.f&&l<c.length;l++)k=e.currentTarget=c[l],h=zg(k,f,!1,e)&&h}
g.J=function(){xg.K.J.call(this);this.removeAllListeners();this.ha=null};g.Ba=function(a,b,c,d){return this.Fa.add(String(a),b,!1,c,d)};g.ic=function(a,b,c,d){return this.Fa.remove(String(a),b,c,d)};g.removeAllListeners=function(a){return this.Fa?this.Fa.removeAll(a):0};function zg(a,b,c,d){b=a.Fa.c[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.bb&&h.ub==c){var k=h.listener,l=h.Ab||h.src;h.tb&&fg(a.Fa,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.Yc};function Ag(){}ba(Ag);Ag.prototype.c=0;function Bg(a){xg.call(this);this.A=a||ld();this.ta=null;this.Ha=!1;this.c=null;this.f=void 0;this.N=this.T=this.B=null;this.La=!1}z(Bg,xg);g=Bg.prototype;g.Cd=Ag.getInstance();g.getId=function(){return this.ta||(this.ta=":"+(this.Cd.c++).toString(36))};g.ma=function(){return this.c};function Cg(a,b){return a.c?S(b,a.c||a.A.c):null}function Dg(a){a.f||(a.f=new vg(a));return a.f}g.gc=function(a){if(this.B&&this.B!=a)throw Error("Method not supported");Bg.K.gc.call(this,a)};
g.render=function(a){if(this.Ha)throw Error("Component already rendered");this.c||(this.c=this.A.createElement("DIV"));a?a.insertBefore(this.c,null):this.A.c.body.appendChild(this.c);this.B&&!this.B.Ha||this.xa()};function Eg(a,b){if(a.Ha)throw Error("Component already rendered");if(b){a.La=!0;var c=nd(b);a.A&&a.A.c==c||(a.A=ld(b));a.c=b;a.xa()}else throw Error("Invalid element to decorate");}g.xa=function(){this.Ha=!0;Fg(this,function(a){!a.Ha&&a.ma()&&a.xa()})};
g.ya=function(){Fg(this,function(a){a.Ha&&a.ya()});this.f&&this.f.removeAll();this.Ha=!1};g.J=function(){this.Ha&&this.ya();this.f&&(this.f.dispose(),delete this.f);Fg(this,function(a){a.dispose()});!this.La&&this.c&&Dd(this.c);this.B=this.c=this.N=this.T=null;Bg.K.J.call(this)};function Fg(a,b){a.T&&A(a.T,b,void 0)}
g.removeChild=function(a,b){if(a){var c=u(a)?a:a.getId(),d;this.N&&c?(d=this.N,d=(c in d?d[c]:void 0)||null):d=null;a=d;if(c&&a){d=this.N;c in d&&delete d[c];$a(this.T,a);b&&(a.ya(),a.c&&Dd(a.c));c=a;if(null==c)throw Error("Unable to set parent component");c.B=null;Bg.K.gc.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function Gg(a){Bg.call(this,a);this.sa=[];this.Ma=[]}z(Gg,Bg);Gg.prototype.ya=function(){A(this.sa,Ge);rc(this.Ma);Gg.K.ya.call(this)};function Hg(){Gg.call(this)}z(Hg,Gg);Hg.prototype.xa=function(){Hg.K.xa.call(this);this.H=F(this.ma(),"overflowable-list-orientation")||"horizontal";this.l=Cg(this,"parent-list");this.F=Cg(this,"overflow-container");this.j=Cg(this,"overflow-list");Cg(this,"overflowable-list-item");this.C=Cg(this,"overflowable-list-more-button")};function Ig(){var a=pd("overflowable-list-root",Jg),b=[];A(a,function(a){var d=new Hg;Eg(d,a);b.push(d)});return b}
function Kg(a,b){var c=Lg(a),d=Lg(b);return c<d?-1:c==d?0:1}function Mg(a,b){var c=db(pd("overflowable-list-item",b));return Qa(c,function(a,b){return a+Ng(this,b)},0,a)}function Ng(a,b){return"vertical"==a.H?ke(b).height:ke(b).width}function Og(a){var b=S("overflowable-list-item",a.ma());return b?Ng(a,b):0}function Lg(a){return Mg(a,a.l)+Mg(a,a.j)};function Pg(a,b,c,d,e,f,h){var k,l;if(k=c.offsetParent){var n="HTML"==k.tagName||"BODY"==k.tagName;n&&"static"==ce(k,"position")||(l=ge(k),n||(n=(n=ne(k))&&Vc?-k.scrollLeft:!n||Q&&cd("8")||"visible"==ce(k,"overflowX")?k.scrollLeft:k.scrollWidth-k.clientWidth-k.scrollLeft,l=Kc(l,new Jc(n,k.scrollTop))))}k=l||new Jc;l=me(a);if(n=fe(a)){var y=new Yd(n.left,n.top,n.right-n.left,n.bottom-n.top),n=Math.max(l.left,y.left),K=Math.min(l.left+l.width,y.left+y.width);if(n<=K){var D=Math.max(l.top,y.top),y=Math.min(l.top+
l.height,y.top+y.height);D<=y&&(l.left=n,l.top=D,l.width=K-n,l.height=y-D)}}n=ld(a);D=ld(c);if(n.c!=D.c){var K=n.c.body,D=wd(D.c),y=new Jc(0,0),J;J=(J=nd(K))?wd(J):window;var ia=K;do{var jb=J==D?ge(ia):he(ia);y.x+=jb.x;y.y+=jb.y}while(J&&J!=D&&J!=J.parent&&(ia=J.frameElement)&&(J=J.parent));K=Kc(y,ge(K));!Q||dd(9)||Td(n)||(K=Kc(K,ud(n.c)));l.left+=K.x;l.top+=K.y}a=Qg(a,b);b=new Jc(a&2?l.left+l.width:l.left,a&1?l.top+l.height:l.top);b=Kc(b,k);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var G;h&&(G=
fe(c))&&(G.top-=k.y,G.right-=k.x,G.bottom-=k.y,G.left-=k.x);e=G;G=b.clone();b=Qg(c,d);d=ke(c);a=d.clone();G=G.clone();a=a.clone();k=0;if(f||0!=b)b&2?G.x-=a.width+(f?f.right:0):f&&(G.x+=f.left),b&1?G.y-=a.height+(f?f.bottom:0):f&&(G.y+=f.top);h&&(e?(f=G,b=a,k=0,65==(h&65)&&(f.x<e.left||f.x>=e.right)&&(h&=-2),132==(h&132)&&(f.y<e.top||f.y>=e.bottom)&&(h&=-5),f.x<e.left&&h&1&&(f.x=e.left,k|=1),h&16&&(l=f.x,f.x<e.left&&(f.x=e.left,k|=4),f.x+b.width>e.right&&(b.width=Math.min(e.right-f.x,l+b.width-e.left),
b.width=Math.max(b.width,0),k|=4)),f.x+b.width>e.right&&h&1&&(f.x=Math.max(e.right-b.width,e.left),k|=1),h&2&&(k=k|(f.x<e.left?16:0)|(f.x+b.width>e.right?32:0)),f.y<e.top&&h&4&&(f.y=e.top,k|=2),h&32&&(l=f.y,f.y<e.top&&(f.y=e.top,k|=8),f.y+b.height>e.bottom&&(b.height=Math.min(e.bottom-f.y,l+b.height-e.top),b.height=Math.max(b.height,0),k|=8)),f.y+b.height>e.bottom&&h&4&&(f.y=Math.max(e.bottom-b.height,e.top),k|=2),h&8&&(k=k|(f.y<e.top?64:0)|(f.y+b.height>e.bottom?128:0)),h=k):h=256,k=h);f=new Yd(0,
0,0,0);f.left=G.x;f.top=G.y;f.width=a.width;f.height=a.height;h=k;h&496||(G=new Jc(f.left,f.top),G instanceof Jc?(e=G.x,G=G.y):(e=G,G=void 0),c.style.left=je(e,!1),c.style.top=je(G,!1),a=new Lc(f.width,f.height),d==a||d&&a&&d.width==a.width&&d.height==a.height||(f=a,d=nd(c),e=Td(ld(d)),!Q||cd("10")||e&&cd("8")?(c=c.style,Vc?c.MozBoxSizing="border-box":Wc?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(f.width,0)+"px",c.height=Math.max(f.height,0)+"px"):(d=c.style,e?(e=qe(c),
c=te(c),d.pixelWidth=f.width-c.left-e.left-e.right-c.right,d.pixelHeight=f.height-c.top-e.top-e.bottom-c.bottom):(d.pixelWidth=f.width,d.pixelHeight=f.height))));return h}function Qg(a,b){return(b&4&&ne(a)?b^2:b)&-5};function Rg(a){this.c=a}var Sg=/s*;s*/;function Tg(a,b,c,d,e,f){if(/[;=s]/.test(b))throw Error('Invalid cookie name "'+b+'"');if(/[;rn]/.test(c))throw Error('Invalid cookie value "'+c+'"');p(d)||(d=-1);f=f?";domain="+f:"";e=e?";path="+e:"";d=0>d?"":0==d?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(x()+1E3*d)).toUTCString();a.c.cookie=b+"="+c+f+e+d+""}g=Rg.prototype;
g.get=function(a,b){for(var c=a+"=",d=(this.c.cookie||"").split(Sg),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=p(this.get(a));Tg(this,a,"",0,b,c);return d};g.za=function(){return Ug(this).keys};g.ca=function(){return Ug(this).values};g.isEmpty=function(){return!this.c.cookie};g.Z=function(){return this.c.cookie?(this.c.cookie||"").split(Sg).length:0};
g.wb=function(a){for(var b=Ug(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=Ug(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function Ug(a){a=(a.c.cookie||"").split(Sg);for(var b=[],c=[],d,e,f=0;e=a[f];f++)d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}}var Vg=new Rg(document);Vg.f=3950;function Wg(a,b,c,d,e){Tg(Vg,""+a,b,c,d,e||"youtube.com")}function Xg(a,b,c){return Vg.remove(""+a,b||"/",c||"youtube.com")};function Yg(a){var b=window.location;a=yf(a,{})+"";a=a instanceof Jb?a:Nb(a);b.href=Lb(a)}function Zg(a){(window.ytspf||{}).enabled?spf.navigate(a):Yg(a)}function $g(a,b,c){var d=I("EVENT_ID");d&&(b||(b={}),b.ei||(b.ei=d));b&&(d=qf(a),d==qf(window.location.href)||!d&&0==a.lastIndexOf("/",0))&&(d=sf(a),d=tf(d))&&(d=I("SMALLER_SESSION_TEMPDATA_NAME")?"ST-"+Ha(d).toString(36):"s_tempdata-"+Ha(d),b=b?xf(b):"",Wg(d,b,5,"/"));if(c)return!1;Zg(a);return!0};function ah(a){var b=void 0;void 0===b&&(b=NaN);var c=r("yt.scheduler.instance.addJob");c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?a():L(a,b||0)};function bh(a,b){this.version=a;this.args=b}function ch(a){if(!a.Ka){var b={};a.call(b);a.Ka=b.version}return a.Ka}
function dh(a,b){function c(){a.apply(this,b.args)}if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=ch(a)}catch(e){}if(!d||b.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");c.prototype=a.prototype;try{return new c}catch(f){throw f.message="yt.pubsub2.Data.deserialize(): "+f.message,f;}}function eh(a,b){this.f=a;this.c=b}eh.prototype.toString=function(){return this.f};var fh=r("yt.pubsub2.instance_")||new H;H.prototype.subscribe=H.prototype.subscribe;H.prototype.unsubscribeByKey=H.prototype.ra;H.prototype.publish=H.prototype.G;H.prototype.clear=H.prototype.clear;q("yt.pubsub2.instance_",fh,void 0);var gh=r("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",gh,void 0);var hh=r("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",hh,void 0);var ih=r("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",ih,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);
function jh(a,b){var c=r("yt.pubsub2.instance_");if(c){var d=c.subscribe(a.toString(),function(c,f){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=d){var h=function(){if(gh[d])try{if(f&&a instanceof eh&&a!=c)try{f=dh(a.c,f)}catch(h){throw h.message="yt.pubsub2 cross-binary conversion error for "+a.toString()+": "+h.message,h;}b.call(window,f)}catch(l){hc(l)}};ih[a.toString()]?r("yt.scheduler.instance")?ah(h):L(h,0):h()}});gh[d]=!0;hh[a.toString()]||(hh[a.toString()]=[]);hh[a.toString()].push(d)}}
;var kh={},lh="ontouchstart"in document;function mh(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return Rd(c,function(a){return B(a,b)},d)}
function nh(a){var b="mouseover"==a.type&&"mouseenter"in kh||"mouseout"==a.type&&"mouseleave"in kh,c=a.type in kh||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=kh[b],d;for(d in c.la){var e=mh(b,d,a.target);e&&!Rd(a.relatedTarget,function(a){return a==e})&&c.G(d,e,b,a)}}if(b=kh[a.type])for(d in b.la)(e=mh(a.type,d,a.target))&&b.G(d,e,a.type,a)}}T(document,"blur",nh,!0);T(document,"change",nh,!0);T(document,"click",nh);T(document,"focus",nh,!0);
T(document,"mouseover",nh);T(document,"mouseout",nh);T(document,"mousedown",nh);T(document,"keydown",nh);T(document,"keyup",nh);T(document,"keypress",nh);T(document,"cut",nh);T(document,"paste",nh);lh&&(T(document,"touchstart",nh),T(document,"touchend",nh),T(document,"touchcancel",nh));function oh(){}g=oh.prototype;g.Qa=function(a){return Sd(a,U(this))};function U(a,b){return"yt-uix"+(a.c?"-"+a.c:"")+(b?"-"+b:"")}g.init=t;g.dispose=t;g.tc=function(a,b,c){var d=this.V(a,b);if(d&&(d=r(d))){var e=gb(arguments,2);fb(e,0,0,a);d.apply(null,e)}};g.V=function(a,b){return F(a,b)};function ph(){this.f=[];this.j={}}z(ph,oh);ba(ph);ph.prototype.c="button";function qh(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=U(a,"menu-mask"),Tf(c),b.iframeMask=c);return c}
function rh(){var a=ph.getInstance(),b=sh;if(b){var c=th(a,b);if(c){b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Tf(c);a.tc(b,"button-menu-action",!1);var d=qh(a,b),e=ue(c).toString();delete a.j[e];L(function(){d&&d.parentNode&&(Tf(d),d.parentNode.removeChild(d));c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}var e=Sd(b,U(a,"group")),
f=[U(a,"active")];e&&f.push(U(a,"group-active"));nb(b,f);O("yt-uix-button-menu-hide",b);Ge(a.f);a.f.length=0}}function th(a,b){if(!b.widgetMenu){var c=a.V(b,"button-menu-id"),c=c&&R(c),d=U(a,"menu");c?mb(c,[d,U(a,"menu-external")]):c=S(d,b);b.widgetMenu=c}return b.widgetMenu}
function uh(a,b){if(a.V(b,"button-toggle")){var c=Sd(b,U(a,"group")),d=U(a,"toggled"),e=B(b,d);if(c&&a.V(c,"button-toggle-group")){var f=a.V(c,"button-toggle-group"),c=pd(U(a),c);A(c,function(a){a!=b||"optional"==f&&e?(E(a,d),a.removeAttribute("aria-pressed")):(C(b,d),a.setAttribute("aria-pressed","true"))})}else e?b.removeAttribute("aria-pressed"):b.setAttribute("aria-pressed","true"),pb(b,d)}};function vh(){var a;if(a=Vg.get("PREF",void 0)){a=unescape(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(wh[d]=c.toString())}}}ba(vh);var wh=r("yt.prefs.UserPrefs.prefs_")||{};q("yt.prefs.UserPrefs.prefs_",wh,void 0);function xh(a){if(/^f([1-9][0-9]*)$/.test(a))throw"ExpectedRegexMatch: "+a;}function yh(a){if(!/^w+$/.test(a))throw"ExpectedRegexMismatch: "+a;}
function zh(a){a=void 0!==wh[a]?wh[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null}vh.prototype.get=function(a,b){yh(a);xh(a);var c=void 0!==wh[a]?wh[a].toString():null;return null!=c?c:b?b:""};function Ah(a,b){return!!((zh("f"+(Math.floor(b/31)+1))||0)&1<<b%31)}function Bh(a,b){var c="f"+(Math.floor(a/31)+1),d=1<<a%31,e=zh(c)||0,e=b?e|d:e&~d;0==e?delete wh[c]:(d=e.toString(16),wh[c]=d.toString())}vh.prototype.remove=function(a){yh(a);xh(a);delete wh[a]};
vh.prototype.clear=function(){wh={}};function Ch(){var a=[],b;for(b in wh)a.push(b+"="+escape(wh[b]));return a.join("&")};function Dh(a){if(!Eh||a)Eh=td(window);return Eh}var Eh=null;function Fh(){}z(Fh,oh);g=Fh.prototype;g.Qa=function(a){var b=oh.prototype.Qa.call(this,a);return b?b:a};g.V=function(a,b){var c=Fh.K.V.call(this,a,b);return c?c:(c=Fh.K.V.call(this,a,"card-config"))&&(c=r(c))&&c[b]?c[b]:null};
g.lc=function(a){var b=this.Qa(a);if(b){C(b,U(this,"active"));var c=Gh(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;Hh(this,a,c);var d=U(this,"card-visible"),e=this.V(a,"card-delegate-show")&&this.V(b,"card-action");this.tc(b,"card-action",a);this.f=a;Tf(c);L(v(function(){e||(Sf(c),O("yt-uix-card-show",b,a,c));Ih(c);C(c,d);O("yt-uix-kbd-nav-move-in-to",c)},this),10)}}};
function Gh(a,b,c){var d=c||b,e=U(a,"card");c=Jh(a,d);var f=R(U(a,"card")+ue(d));if(f)return a=S(U(a,"card-body"),f),Ld(a,c)||(Dd(c),a.appendChild(c)),f;f=document.createElement("div");f.id=U(a,"card")+ue(d);f.className=e;(d=a.V(d,"card-class"))&&mb(f,d.split(/s+/));d=document.createElement("div");d.className=U(a,"card-border");b=a.V(b,"orientation")||"horizontal";e=document.createElement("div");e.className="yt-uix-card-border-arrow yt-uix-card-border-arrow-"+b;var h=document.createElement("div");
h.className=U(a,"card-body");a=document.createElement("div");a.className="yt-uix-card-body-arrow yt-uix-card-body-arrow-"+b;Dd(c);h.appendChild(c);d.appendChild(a);d.appendChild(h);f.appendChild(e);f.appendChild(d);document.body.appendChild(f);return f}
function Hh(a,b,c){var d=a.V(b,"orientation")||"horizontal",e=a.V(b,"position"),f=!!a.V(b,"force-position"),h=a.V(b,"position-fixed"),d="horizontal"==d,k="bottomright"==e||"bottomleft"==e,l="topright"==e||"bottomright"==e,n,y;l&&k?(y=7,n=4):l&&!k?(y=6,n=5):!l&&k?(y=5,n=6):(y=4,n=7);var K=ne(document.body),e=ne(b);K!=e&&(y^=2);var D;d?(e=b.offsetHeight/2-12,D=new Jc(-12,b.offsetHeight+6)):(e=b.offsetWidth/2-6,D=new Jc(b.offsetWidth+6,-12));var J=ke(c),e=Math.min(e,(d?J.height:J.width)-24-6);6>e&&(e=
6,d?D.y+=12-b.offsetHeight/2:D.x+=12-b.offsetWidth/2);var ia=null;f||(ia=10);J=U(a,"card-flip");a=U(a,"card-reverse");ob(c,J,l);ob(c,a,k);ia=Pg(b,y,c,n,D,null,ia);!f&&ia&&(ia&48&&(l=!l,y^=2,n^=2),ia&192&&(k=!k,y^=1,n^=1),ob(c,J,l),ob(c,a,k),Pg(b,y,c,n,D));h&&(b=parseInt(c.style.top,10),f=ud(document).y,Zd(c,"position","fixed"),Zd(c,"top",b-f+"px"));K&&(c.style.right="",b=me(c),b.left=b.left||parseInt(c.style.left,10),f=td(window),c.style.left="",c.style.right=f.width-b.left-b.width+"px");b=S("yt-uix-card-body-arrow",
c);f=S("yt-uix-card-border-arrow",c);d=d?k?"top":"bottom":!K&&l||K&&!l?"left":"right";b.setAttribute("style","");f.setAttribute("style","");b.style[d]=e+"px";f.style[d]=e+"px";k=S("yt-uix-card-arrow",c);l=S("yt-uix-card-arrow-background",c);k&&l&&(c="right"==d?ke(c).width-e-13:e+11,e=c/Math.sqrt(2),k.style.left=c+"px",k.style.marginLeft="1px",l.style.marginLeft=-e+"px",l.style.marginTop=e+"px")}
g.Ua=function(a){if(a=this.Qa(a)){var b=R(U(this,"card")+ue(a));b&&(E(a,U(this,"active")),E(b,U(this,"card-visible")),Tf(b),this.f=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(Dd(b.cardMask),b.cardMask=null))}};g.Ae=function(a,b){var c=this.Qa(a);if(c){if(b){var d=Jh(this,c);if(!d)return;b instanceof Rb?d.innerHTML=Tb(b):Md(d,b)}B(c,U(this,"active"))&&(c=Gh(this,a,c),Hh(this,a,c),Sf(c),Ih(c))}};g.isActive=function(a){return(a=this.Qa(a))?B(a,U(this,"active")):!1};
function Jh(a,b){var c=b.cardContentNode;if(!c){var d=U(a,"content"),e=U(a,"card-content");(c=(c=a.V(b,"card-id"))?R(c):S(d,b))||(c=document.createElement("div"));qb(c,d,e);b.cardContentNode=c}return c}
function Ih(a){var b=a.cardMask;b||(b=document.createElement("iframe"),b.src='javascript:""',mb(b,["yt-uix-card-iframe-mask"]),a.cardMask=b);b.style.position=a.style.position;b.style.top=a.style.top;b.style.left=a.offsetLeft+"px";b.style.height=a.clientHeight+"px";b.style.width=a.clientWidth+"px";document.body.appendChild(b)};function Kh(){this.j={};this.l={}}z(Kh,Fh);ba(Kh);Kh.prototype.c="clickcard";Kh.prototype.lc=function(a){Kh.K.lc.call(this,a);var b=this.Qa(a);if(!F(b,"click-outside-persists")){var c=ha(a);if(this.j[c])return;var b=T(document,"click",v(this.A,this,a)),d=T(window,"blur",v(this.A,this,a));this.j[c]=[b,d]}a=T(window,"resize",v(this.Ae,this,a,void 0));this.l[c]=a};Kh.prototype.Ua=function(a){Kh.K.Ua.call(this,a);a=ha(a);var b=this.j[a];b&&(Ge(b),this.j[a]=null);if(b=this.l[a])Ge(b),this.l[a]=null};
Kh.prototype.A=function(a,b){Sd(b.target,"yt-uix"+(this.c?"-"+this.c:"")+"-card")||this.Ua(a)};function Lh(){}z(Lh,Fh);ba(Lh);Lh.prototype.c="hovercard";function Mh(a){this.f=a;this.c=S("yt-dialog-fg",this.f)||this.f;if(a=S("yt-dialog-title",this.c)){var b="yt-dialog-title-"+ha(this.c);a.setAttribute("id",b);this.c.setAttribute("aria-labelledby",b)}this.c.setAttribute("tabindex","-1");this.C=S("yt-dialog-focus-trap",this.f);this.H=!1;this.j=new H;this.l=[];this.l.push(He(this.f,"click",v(this.L,this),"yt-dialog-dismiss"));this.l.push(T(this.C,"focus",v(this.Y,this),!0));Nh(this);this.B=this.A=null}var Oh={LOADING:"loading",CONTENT:"content",Ye:"working"};
function Nh(a){a=S("yt-dialog-fg-content",a.f);var b=[];rb(Oh,function(a){b.push("yt-dialog-show-"+a)});nb(a,b);C(a,"yt-dialog-show-content")}function Ph(){var a=pd("yt-dialog");return Ra(a,function(a){return Pf(a)})}function Qh(){var a=pd("iframe-hid");A(a,function(a){E(a,"iframe-hid")})}Mh.prototype.L=function(a){a=a.currentTarget;a.disabled||(a=F(a,"action")||"",Rh(this,a))};
function Rh(a,b){if(!a.isDisposed()){a.j.G("pre-all");a.j.G("pre-"+b);Tf(a.f);var c=Kh.getInstance();c.f&&c.Ua(c.f);c=Lh.getInstance();c.f&&c.Ua(c.f);a.c.setAttribute("tabindex","-1");Ph()||(Tf(a.N),E(document.body,"yt-dialog-active"),Ae(),Qh());a.A&&(Ge(a.A),a.A=null);a.B&&(Ge(a.B),a.B=null);if(c=a.f){var d=F(c,"player-ready-pubsub-key");d&&(rc(d),Yb(c,"player-ready-pubsub-key"))}a.j.G("post-all");O("yt-ui-dialog-hide-complete",a);"cancel"==b&&O("yt-ui-dialog-cancelled",a);a.j&&a.j.G("post-"+b);
a.F&&a.F.focus()}}Mh.prototype.isDisposed=function(){return this.H};Mh.prototype.dispose=function(){Pf(this.f)&&Rh(this,"dispose");Ge(this.l);this.l.length=0;L(v(function(){this.F=null},this),0);this.C=this.c=null;this.j.dispose();this.j=null;this.H=!0};Mh.prototype.Y=function(a){a.stopPropagation();Sh(this)};function Sh(a){L(v(function(){this.c&&this.c.focus()},a),0)}q("yt.ui.Dialog",Mh,void 0);function Th(){}z(Th,oh);ba(Th);Th.prototype.c="overlay";function Uh(){Th.getInstance();var a;a:{if(a=pd("yt-dialog-fg-content"))for(var b=0;b<a.length;b++){var c=Sd(a[b],"yt-dialog");if(Pf(c)){a=a[b];break a}}a=null}return a}function Vh(){Th.getInstance();O("yt-uix-overlay-hide")};var Jg,Wh,Xh,Yh,Zh=[];
function $h(){var a=ai(),b=F(a,"collection-id"),c=S("subscription-picker-list-container",a),d=pd("subscription-list-item",c),c=Pa(Oa(d,function(a){return B(a,"selected")&&!B(a,"saved")}),function(a){return F(a,"channel-id")}),d=Pa(Oa(d,function(a){return!B(a,"selected")&&B(a,"saved")}),function(a){return F(a,"channel-id")});bi(a);var e=S("collection-name-input",a),f=e.attributes.value;(e=e.value)?(ci(a,!0),b?c.length||d.length||f!=e?di(b,e,c,d):(bi(a),Vh()):ei(e,c)):fi(a,!0)}
function gi(a,b){bi(a);Vh();b.response&&b.response.collection_url&&Yg(b.response.collection_url)}function di(a,b,c,d){var e=ai(),f=fb(c,0,40),h=fb(d,0,40),f={name:b,collection_id:a,added_ids:f.join(","),removed_ids:h.join(",")};Jf("/subscription_ajax?action_update_collection=1",{method:"POST",$:f,R:function(f,h){c.length||d.length?di(a,b,c,d):gi(e,h)},onError:hi(e)})}
function ei(a,b){var c=ai();if(b.length){var d=fb(b,0,40),d={name:a,external_channel_ids:d.join(",")};Jf("/subscription_ajax?action_add_collection=1",{method:"POST",$:d,R:function(d,f){if(b.length){var h=f.response.collection_id;h&&di(h,a,b,[])}else gi(c,f)},onError:hi(c)})}else bi(c),Vh()}function ii(){var a=ai(),b=F(a,"collection-id");bi(a);ci(a,!0);Jf("/subscription_ajax?action_remove_collection=1",{method:"POST",$:{collection_id:b},R:function(){bi(a);Vh();Yg("/")},onError:hi(a)})}
function ji(){var a=ai(),b=S("subscription-picker-list-container",a),b=S("subscription-picker-list",b).cloneNode(!0),c=pd("subscription-list-item",b);A(c,function(a){B(a,"selected")||Dd(a)});c=S("selected-channel-list-container",a);Bd(c);c.appendChild(b);a=S("selected-channels-button",a);Of(a,!!b)}
function ki(a){var b=a.currentTarget;if(Sd(b,"selected-channel-list-container")){var c=F(b,"channel-id");a=ai();a=S("subscription-picker-list-container",a);a=pd("subscription-list-item",a);A(a,function(a){F(a,"channel-id")==c&&(b=a)})}pb(b,"selected");ji()}function li(){var a=ai(),b=S("subscription-search-input",a);mi(a,b&&b.value)}function ni(){var a=ai();S("subscription-search-input",a).value="";mi(a,"")}
function mi(a,b){var c=pd("subscription-list-item",a),d=new RegExp(b,"i");A(c,function(a){var c=F(a,"channel-name");Of(a,!b||d.test(c))});c=S("subscription-search-clear",a);Rf(c,!!b)}function oi(a){var b=F(a,"panel-class");b&&(a=Uh(),a=S("subscription-picker",a),a=S(b,a),a=Kd(a),A(Fd(a),function(a){Of(a,B(a,b))}))}function pi(a){oi(a.currentTarget)}function ai(){var a=Uh();return S("subscription-picker",a)}function bi(a){qi(a,"");ri(a,!1);ci(a,!1);fi(a,!1)}
function ri(a,b){var c=S("subscription-picker-loading",a);Of(c,b)}function ci(a,b){var c=S("subscription-picker-saving",a);Of(c,b)}function fi(a,b){var c=S("collection-name-empty-error",a);Of(c,b)}function qi(a,b){var c=S("subscription-picker-errors",a);Of(c,""!=b);b&&(c=S("yt-alert-content",c),Md(c,b))}function hi(a){return function(b,c){bi(a);var d=c.errors;d&&0<d.length&&qi(a,d[0])}};function si(a,b,c){this.f=a;(a=b||null)||(a=ti(this.f));a="("+a.join("|")+")";a=pa("__%s__",a);this.j=new RegExp(a,"g");this.c=c||{}}var ui=/__([a-z]+(?:_[a-z]+)*)__/g;function vi(a,b){var c=wi(R(a));return new si(c,b,void 0)}function wi(a){a=a.innerHTML;a=a.replace(/^s*(x3c!--s*)?/,"");return a=a.replace(/(s*--x3e)?s*$/,"")}function ti(a){var b=[],c={};a.replace(ui,function(a,e){e in c||(c[e]=!0,b.push(e))});return b}
si.prototype.render=function(a,b,c){var d=v(function(d,f){b&&(f=b(f));return c?a[f]||this.c[f]||"":sa(a[f]||this.c[f]||"")},this);return this.f.replace(this.j,d)};var xi=P("Firefox"),yi=Tc()||P("iPod"),zi=P("iPad"),Ai=P("Android")&&!(Rc()||P("Firefox")||Pc()||P("Silk")),Bi=Rc(),Ci=P("Safari")&&!(Rc()||P("Coast")||Pc()||Qc()||P("Silk")||P("Android"))&&!(Tc()||P("iPad")||P("iPod"));function Di(a){Gg.call(this);this.F=a;this.fa=0;this.L=this.l=this.H=this.C=this.j=this.W=null}z(Di,Gg);g=Di.prototype;
g.xa=function(){Di.K.xa.call(this);this.S=this.ma();this.fa=parseInt(F(this.S,"max-title-length"),10)||0;this.H=Cg(this,"create-button");this.l=Cg(this,"cancel-button");this.C=Cg(this,"privacy-button");var a=Dg(this);this.j=Cg(this,"title-input");a.Ba(this.j,"keyup",this.Qc);a.Ba(this.j,"paste",this.Qc);a.Ba(this.S,"reset",this.Qd);a.Ba(this.S,"submit",this.Rd);this.W=Cg(this,"create-playlist-widget-privacy-menu");this.L=Cg(this,"yt-uix-button-menu-item-selected");a=He(this.ma(),"click",v(this.$d,
this),"privacy-option");this.sa.push(a)};g.ya=function(){Ei(this);this.L=this.l=this.H=this.W=this.C=this.j=null;Di.K.ya.call(this)};g.Qc=function(){var a=ye,b=this.H,c=qa(this.j.value).length;a(b,0<c&&(!this.fa||c<=this.fa))};g.$d=function(a){(a=a.currentTarget)&&Fi(this,a);a=F(a,"value");Cg(this,"privacy-value-input").value=a};
function Fi(a,b){var c;c=ph.getInstance();c=S(U(c,"content"),a.C);var d;jd&&"innerText"in b?d=b.innerText.replace(/(rn|r|n)/g,"n"):(d=[],Pd(b,d,!0),d=d.join(""));d=d.replace(/ xAD /g," ").replace(/xAD/g,"");d=d.replace(/u200B/g,"");jd||(d=d.replace(/ +/g," "));" "!=d&&(d=d.replace(/^s*/,""));Md(c,qa(d));c=S("yt-uix-button-menu-item-selected",a.W);E(c,"yt-uix-button-menu-item-selected");C(b,"yt-uix-button-menu-item-selected");c=F(b,"privacy-state-of-menu");Wb(a.C,"privacy-state",c)}
function Gi(a,b){ye(a.H,b);a.l&&ye(a.l,b);ye(a.j,b);ye(a.C,b)}function Ei(a){a.j.value="";var b=Cg(a,"title-input-container");E(b,"yt-uix-form-error");b=S("yt-uix-form-error-message",b);Dd(b);ye(a.C,!0);(b=S("yt-uix-button-menu-item-selected",a.W))&&a.L&&b!=a.L&&Fi(a,a.L);ye(a.H,!1);a.l&&ye(a.l,!0);ye(a.j,!0)}
g.Rd=function(a){a.preventDefault();a=this.S;var b={context:this,R:this.Od,onError:this.Nd};b.method=a.method.toUpperCase();if("POST"==b.method){var c;c=[];Ze(a,c,bf);c=c.join("&");b.qe=c}else{var d=new Ue;Ze(a,d,af);We(d);c={};for(var e=0;e<d.c.length;e++){var f=d.c[e];c[f]=d.f[f]}d=b.Ja||{};Fb(d,c);b.Ja=d}Jf(a.action,b);Gi(this,!1)};g.Od=function(a,b){Ei(this);this.F&&fa(this.F.Db)&&this.F.Db({playlistId:b.result.playlistId,playlistName:b.result.playlistName,oe:b.result.playlistUrl});O("yt-uix-videoactionmenu-hide")};
g.Nd=function(a,b){if(b&&b.errors&&b.errors.length){var c=Cg(this,"title-input-container"),d=b.errors[0];C(c,"yt-uix-form-error");var e=S("yt-uix-form-error-message",c);e?e.innerHTML=d:(d=xd("span","yt-uix-form-error-message",document.createTextNode(String(d))),d.setAttribute("role","alert"),c.appendChild(d));Gi(this,!0)}};g.Qd=function(){Ei(this);this.F&&fa(this.F.Cb)&&this.F.Cb()};function Hi(a){return"function"==typeof a.Z?a.Z():ea(a)||u(a)?a.length:tb(a)}function Ii(a){if("function"==typeof a.ca)return a.ca();if(u(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return wb(a)}function Ji(a){if("function"==typeof a.za)return a.za();if("function"!=typeof a.ca){if(ea(a)||u(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return xb(a)}}
function Ki(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ea(a)||u(a))A(a,b,void 0);else for(var c=Ji(a),d=Ii(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)}function Li(a,b){if("function"==typeof a.every)return a.every(b,void 0);if(ea(a)||u(a))return Sa(a,b,void 0);for(var c=Ji(a),d=Ii(a),e=d.length,f=0;f<e;f++)if(!b.call(void 0,d[f],c&&c[f],a))return!1;return!0};function Mi(a,b){this.f=this.F=this.l="";this.C=null;this.A=this.c="";this.B=!1;var c;a instanceof Mi?(this.B=p(b)?b:a.B,Ni(this,a.l),this.F=a.F,Oi(this,a.f),Pi(this,a.C),this.c=a.c,Qi(this,a.j.clone()),this.A=a.A):a&&(c=of(String(a)))?(this.B=!!b,Ni(this,c[1]||"",!0),this.F=Ri(c[2]||""),Oi(this,c[3]||"",!0),Pi(this,c[4]),this.c=Ri(c[5]||"",!0),Qi(this,c[6]||"",!0),this.A=Ri(c[7]||"")):(this.B=!!b,this.j=new Si(null,0,this.B))}
Mi.prototype.toString=function(){var a=[],b=this.l;b&&a.push(Ti(b,Ui,!0),":");if(b=this.f){a.push("//");var c=this.F;c&&a.push(Ti(c,Ui,!0),"@");a.push(encodeURIComponent(String(b)).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.C;null!=b&&a.push(":",String(b))}if(b=this.c)this.f&&"/"!=b.charAt(0)&&a.push("/"),a.push(Ti(b,"/"==b.charAt(0)?Vi:Xi,!0));(b=this.j.toString())&&a.push("?",b);(b=this.A)&&a.push("#",Ti(b,Yi));return a.join("")};
Mi.prototype.resolve=function(a){var b=this.clone(),c=!!a.l;c?Ni(b,a.l):c=!!a.F;c?b.F=a.F:c=!!a.f;c?Oi(b,a.f):c=null!=a.C;var d=a.c;if(c)Pi(b,a.C);else if(c=!!a.c){if("/"!=d.charAt(0))if(this.f&&!this.c)d="/"+d;else{var e=b.c.lastIndexOf("/");-1!=e&&(d=b.c.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=0==e.lastIndexOf("/",0),e=e.split("/"),f=[],h=0;h<e.length;){var k=e[h++];"."==k?d&&h==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&
""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.c=d:c=""!==a.j.toString();c?Qi(b,Ri(a.j.toString())):c=!!a.A;c&&(b.A=a.A);return b};Mi.prototype.clone=function(){return new Mi(this)};function Ni(a,b,c){a.l=c?Ri(b,!0):b;a.l&&(a.l=a.l.replace(/:$/,""))}function Oi(a,b,c){a.f=c?Ri(b,!0):b}function Pi(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null}
function Qi(a,b,c){b instanceof Si?(a.j=b,Zi(a.j,a.B)):(c||(b=Ti(b,$i)),a.j=new Si(b,0,a.B))}function aj(a,b,c){a=a.j;bj(a);a.j=null;b=cj(a,b);dj(a,b)&&(a.f-=a.c.get(b).length);Ve(a.c,b,[c]);a.f++}function ej(a,b,c){da(c)||(c=[String(c)]);fj(a.j,b,c)}function gj(a){aj(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^x()).toString(36));return a}function hj(a){return a instanceof Mi?a.clone():new Mi(a,void 0)}
function ij(a,b,c,d){var e=new Mi(null,void 0);a&&Ni(e,a);b&&Oi(e,b);c&&Pi(e,c);d&&(e.c=d);return e}function Ri(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Ti(a,b,c){return u(a)?(a=encodeURI(a).replace(b,jj),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function jj(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ui=/[#/?@]/g,Xi=/[#?:]/g,Vi=/[#?]/g,$i=/[#?@]/g,Yi=/#/g;
function Si(a,b,c){this.f=this.c=null;this.j=a||null;this.l=!!c}function bj(a){a.c||(a.c=new Ue,a.f=0,a.j&&uf(a.j,function(b,c){a.add(ra(b),c)}))}g=Si.prototype;g.Z=function(){bj(this);return this.f};g.add=function(a,b){bj(this);this.j=null;a=cj(this,a);var c=this.c.get(a);c||Ve(this.c,a,c=[]);c.push(b);this.f++;return this};g.remove=function(a){bj(this);a=cj(this,a);return Xe(this.c.f,a)?(this.j=null,this.f-=this.c.get(a).length,this.c.remove(a)):!1};
g.clear=function(){this.c=this.j=null;this.f=0};g.isEmpty=function(){bj(this);return 0==this.f};function dj(a,b){bj(a);b=cj(a,b);return Xe(a.c.f,b)}g.wb=function(a){var b=this.ca();return Va(b,a)};g.za=function(){bj(this);for(var a=this.c.ca(),b=this.c.za(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};g.ca=function(a){bj(this);var b=[];if(u(a))dj(this,a)&&(b=cb(b,this.c.get(cj(this,a))));else{a=this.c.ca();for(var c=0;c<a.length;c++)b=cb(b,a[c])}return b};
g.get=function(a,b){var c=a?this.ca(a):[];return 0<c.length?String(c[0]):b};function fj(a,b,c){a.remove(b);0<c.length&&(a.j=null,Ve(a.c,cj(a,b),db(c)),a.f+=c.length)}g.toString=function(){if(this.j)return this.j;if(!this.c)return"";for(var a=[],b=this.c.za(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.ca(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}return this.j=a.join("&")};
g.clone=function(){var a=new Si;a.j=this.j;this.c&&(a.c=this.c.clone(),a.f=this.f);return a};function cj(a,b){var c=String(b);a.l&&(c=c.toLowerCase());return c}function Zi(a,b){b&&!a.l&&(bj(a),a.j=null,a.c.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),fj(this,e,a))},a));a.l=b};var kj={},lj=0,mj=r("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",mj,void 0);function nj(a){var b=new Image,c=""+lj++;kj[c]=b;b.onload=b.onerror=function(){delete kj[c]};b.src=a;b=eval("null")};function oj(a,b){var c="/gen_204?"+("a="+a+(b?"&"+b:""));c&&nj(c)};function pj(a){bh.call(this,1,arguments);this.c=a}z(pj,bh);function qj(a,b,c){bh.call(this,1,arguments);this.c=c}z(qj,bh);var rj=new eh("subscription-subscribe-success",qj),sj=new eh("subscription-unsubscribe-success",pj);var tj,uj,vj={Ve:"content-snap-width-1",We:"content-snap-width-2",Xe:"content-snap-width-3",Re:"content-snap-width-skinny-mode"};function wj(){var a=[],b;for(b in vj)a.push(vj[b]);return a};function xj(){yj=qd("html",void 0,void 0)[0];zj=R("appbar-guide-button")}
function Aj(a,b){var c=b||!1,d=B(yj,"show-guide");ob(yj,"show-guide",a);zj&&zj.setAttribute("aria-expanded",a);a&&!B(document.documentElement,"no-focus-outline")&&c?(c=S("guide-item",R("guide-container")))&&c.focus():O("guide-hidden");if(a&&!d||!a&&d){d="";if(c=R("page"))d=c.className;d=xf({"module-id":"guide-main",expanded:!0,auto:!1,"page-class":d,notification:!1});oj("guide-toggled",d)}(d=R("page"))&&Ci&&(c=d.style.width,d.style.width="99.99%",Vf(d.offsetWidth),d.style.width=c)}
function Bj(){return B(yj,"show-guide")}function Cj(){return B(document.body,"guide-pinning-enabled")}function Dj(){return Cj()&&B(yj,"guide-pinned")}var yj=null,zj=null;var Ej;function Fj(){this.c=Gj}
function Hj(){function a(){var a=S("guide-likes-playlist-icon");if(a)return Sd(a,"guide-notification-item")}Ej=R("appbar-main-guide-notification-container");Ij(function(){return S("guide-item-container",R("behavior-id-guide-playlists-section"))});Jj("yt-uix-playlistlike-unliked","appbar-guide-notification-playlist-unlike");Kj("addto-menu-video-added","appbar-guide-notification-playlist-video-added",Lj,null,new Fj);Jj("addto-menu-video-removed","appbar-guide-notification-playlist-video-removed");var b=
w(R,"VLWL-guide-item");Kj("WATCH_LATER_VIDEO_ADDED","appbar-guide-notification-watch-later-video-added",b,1);Kj("WATCH_LATER_VIDEO_REMOVED","appbar-guide-notification-watch-later-video-removed",b,-1);Kj("yt-uix-videolike-liked","appbar-guide-notification-video-like",a,1);Kj("yt-uix-videolike-unliked","appbar-guide-notification-video-unlike",a,-1);jh(sj,Mj);jh(rj,Nj)}
function Gj(a){if(!a||R(a.id))return null;var b=["ID","URL","TITLE","NOTIFICATION_OVERLAY_MESSAGE"];a=("RD"==a.playlistType?vi("appbar-guide-item-template-mix",b):vi("appbar-guide-item-template-playlist",b)).render({ID:"VL"+a.id,URL:a.url,TITLE:a.title,NOTIFICATION_OVERLAY_MESSAGE:a.title});return ze(a)}function Lj(a){return R("VL"+a.id+"-guide-item")}
function Oj(a,b){var c=wi(R(a)),c=ze(c);if(b){var d=S("appbar-guide-notification-text-content",c);if(d){var e=document.createTextNode(String(" "+b));d&&e&&d.appendChild(e)}}return c}
function Kj(a,b,c,d,e){N(a,function(a){var h=c.apply(null,arguments);if(d){var k=S("guide-count-value",h);if(k){var l=k.innerHTML;""===l.trim()||isNaN(l)||(k.innerHTML=parseInt(l,10)+d)}}!h&&e&&(k=e.c(a),(l=S("guide-item-container",R("behavior-id-guide-playlists-section")))&&k&&Cd(l,k,0));Pj(b,!!h,a?a.title:null)||((k=S("guide-item-update-notification",h))&&Dd(k),k=Oj(b),C(k,"guide-item-update-notification"),h.appendChild(k),L(w(C,h,"showing-update-notification"),0),L(w(E,h,"showing-update-notification"),
2E3))})}function Ij(a){var b=Gj;N("yt-uix-playlistlike-liked",function(){var c=a(),d=b.apply(null,arguments);Pj("appbar-guide-notification-playlist-like",!!c)||(Cd(c,d,0),O("guide-playlist-section-updated"))})}function Jj(a,b){var c=Lj;N(a,function(){var a=c.apply(null,arguments);Qj(a,b,"guide-playlist-section-updated")})}function Qj(a,b,c){Pj(b,!!a)||(b=Oj(b),C(b,"guide-item-removal-notification"),a.appendChild(b),L(w(C,a,"removing-guide-item"),0),L(function(){Dd(a);O(c)},2E3))}
function Pj(a,b,c){if(b&&Bj())return!1;Bd(Ej);Ej.appendChild(Oj(a,c));C(document.body,"show-guide-button-notification");L(w(E,document.body,"show-guide-button-notification"),2E3);return!0}
function Nj(a){var b;R("guide-subscriptions-promo")?(O("force-reload-subscriptions"),b=!0):b=!1;b||(b=R("guide-channels"),a=a.c,a=vi("appbar-guide-item-template-channel",["ID","URL","TITLE","THUMBNAIL_URL","NOTIFICATION_OVERLAY_MESSAGE"]).render({ID:a.external_id,URL:a.url,TITLE:a.title,THUMBNAIL_URL:a.thumbnail,NOTIFICATION_OVERLAY_MESSAGE:a.title}),a=ze(a),Pj("appbar-guide-notification-subscription",!!b)||(Cd(b,a,0),O("guide-channel-section-updated")))}
function Mj(a){a=a.c;Qj(a?R(a+"-guide-item"):null,"appbar-guide-notification-unsubscription","guide-channel-section-updated")};var Rj=[],Sj=[],Tj=[];
function Uj(){Jg=R("guide");Wh=R("guide-channels");Xh=R("appbar-guide-menu");Yh=R("appbar-guide-iframe-mask");Hj();Jg&&(xj(),B(document.body,"exp-scrollable-guide")||Vj(),Zh.push(He(null,"click",$h,"collection-save-button")),Zh.push(He(null,"click",ii,"collection-delete-button")),Zh.push(He(null,"click",ki,"subscription-list-item")),Zh.push(He(null,"keyup",li,"subscription-search-input")),Zh.push(He(null,"click",ni,"subscription-search-clear")),Zh.push(He(null,"click",pi,"tab-panel-trigger")),Rj.push(He(Jg,
"click",Wj,"guide-sort-choice")),B(document.body,"exp-scrollable-guide")?(Xj(Dh(!0)),Sj.push(N("page-resize",Xj))):Sj.push(N("page-resize",Yj)),Sj.push(N("guide-channel-section-updated",Zj)),Sj.push(N("guide-playlist-section-updated",w(Yj,w(Dh,!0)))),Sj.push(N("force-reload-subscriptions",ak)),Sj.push(N("update-guide-subscriptions",bk)),Sj.push(N("guide-hidden",ck)))}function dk(a,b){A(pd("guide-flyout-container",Jg),function(c){Rj.push(T(c,a,b))})}function ek(a){fk(a.currentTarget)}
function ck(){var a=pd("guide-flyout-container",Jg);A(a,function(a){fk(a)})}function fk(a){var b=S("guide-flyout",a),c=S("guide-flyout-trigger",a);a=S("guide-flyout-iframe-mask",a);E(b,"flyout-shown");a&&E(a,"flyout-shown");E(c,"on-hover")}
function gk(a){a=a.currentTarget;var b=S("guide-flyout",a),c=S("guide-flyout-trigger",a),d=S("guide-flyout-iframe-mask",a),e=S("guide-flyout",a),f=qe(e),h=S("guide-channels-list",a),k=Dh(!0),l=S("guide-flyout-trigger",a),n=S("guide-flyout-iframe-mask",a),y=k.height-(Xh?Xh.offsetTop:0);h.style.maxHeight=y-f.top-f.bottom+"px";f=ke(e).height;h=ke(l);l=ie(l);y=Math.min(y-f,Math.max(0,k.height-l.y-h.height/2-f/2));h=l.x+h.width;k=k.width-l.x;e.style.bottom=y+"px";n&&(n.style.height=f+"px",n.style.bottom=
y+"px");"rtl"==document.body.getAttribute("dir")?(e.style.right=k+"px",e.style.left="",n&&(n.style.right=k+"px",n.style.left="")):(e.style.left=h+"px",e.style.right="",n&&(n.style.left=h+"px",n.style.right=""));C(b,"flyout-shown");d&&C(d,"flyout-shown");C(c,"on-hover");O("yt-dom-content-change",a)}function hk(){Yh&&Xh&&(Yh.style.height=ke(Xh).height+"px",Yh.style.marginTop=Xh.style.marginTop,Yh.style.top=Xh.style.top)}
function Vj(){Wh=R("guide-channels");Tj=Ig();Yj(Dh(!0));dk("mouseenter",gk);dk("mouseleave",ek)}
function Wj(a){var b=S("guide-sort-button"),c=F(b,"guide-sort")||"",d=F(a.currentTarget,"guide-sort")||"";c!=d&&(Wb(b,"guide-sort",d),Jf("/guide_channels_ajax?action_set_guide_sort=1",{method:"POST",Ja:{sort:d},format:"JSON",R:function(a,b){bk(b);var c=pd("guide-sort-choice");A(c,function(a){var b=F(a,"guide-sort");ph.getInstance();a=a.parentNode;var b=d==b,c=xe("span","yt-uix-button-icon-wrapper",a);if(!c&&b){var e=xd("span",{"class":"yt-uix-button-icon-wrapper yt-uix-button-icon-checkbox"}),f=xd("div",
{"class":"yt-uix-button-icon-dropdown-checked"});e.appendChild(f);Cd(a,e,0)}Of(c,b)})}}))}function bk(a){var b=a.channels;b&&(a=R("guide-subscriptions-section"),b=Ad(b),Ed(b,a),Tj=Ig(),ik(),a=pd("yt-uix-tooltip-tip-visible"),A(a,function(a){E(a,"yt-uix-tooltip-tip-visible")}))}function ik(){Vj();O("yt-dom-content-change",Jg)}function Zj(){Wh&&(Wh.firstElementChild?ik():ak())}function jk(a){var b=pd("guide-item",Jg);return Ta(b,function(b){return F(b,"serialized-endpoint")==a})}
function Xj(a){Zd(Xh,"max-height",a.height-50+"px")}
function Yj(a){if(Tj&&!B(document.body,"exp-scrollable-guide")){var b=kk(a),c=Tj.length,d=0;Tj.sort(Kg||kb);A(Tj,function(a,f){var h=Lg(a)-d,h=Math.min(h,b/(c-f));b-=(c-f)*h;var h=d+=h,h=h-(h>=Lg(a)?0:a.C?Ng(a,a.C):0),h=Math.max(Og(a),h),k=Mg(a,a.l);if(k>h)for(;k>h;){var l;l=a.l;if(l=void 0!=l.lastElementChild?l.lastElementChild:Hd(l.lastChild,!1)){var n=Ng(a,l),k=k-n;Cd(a.j,l,0)}else break}else if(k<h){for(l=document.createDocumentFragment();!Wa(Fd(a.j));)if(n=Gd(a.j)){var y=Ng(a,n);if(k+y<=h)k+=
y,l.appendChild(n);else break}else break;a.l.appendChild(l)}ob(a.F,"empty-overflow-list",!!Wa(Fd(a.j)))});hk()}}function kk(a){var b=Xh,c=R("guide-container");if(!c||!b)return 0;var d=qe(c),d=d.top+d.bottom,c=Gd(c).clientHeight,e=0;A(Tj,function(a){e+=a.l?Mg(a,a.l):0;e+=Wa(Fd(a.j))?0:a.C?Ng(a,a.C):0});c=d+c-e;return(Dj()?b.clientHeight:a.height-50)-c}function ak(){Jf("/guide_channels_ajax?action_load_subs_and_footer=1",{format:"JSON",R:function(a,b){bk(b)}})};function lk(a,b,c){$b.call(this);this.c=null;this.l=!1;this.B=a;this.A=c;this.f=b||window;this.j=v(this.ud,this)}z(lk,$b);g=lk.prototype;g.start=function(){this.stop();this.l=!1;var a=mk(this),b=nk(this);a&&!b&&this.f.mozRequestAnimationFrame?(this.c=kg(this.f,"MozBeforePaint",this.j),this.f.mozRequestAnimationFrame(null),this.l=!0):this.c=a&&b?a.call(this.f,this.j):this.f.setTimeout(Oe(this.j),20)};
g.stop=function(){if(this.isActive()){var a=mk(this),b=nk(this);a&&!b&&this.f.mozRequestAnimationFrame?rg(this.c):a&&b?b.call(this.f,this.c):this.f.clearTimeout(this.c)}this.c=null};g.isActive=function(){return null!=this.c};g.ud=function(){this.l&&this.c&&rg(this.c);this.c=null;this.B.call(this.A,x())};g.J=function(){this.stop();lk.K.J.call(this)};
function mk(a){a=a.f;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}function nk(a){a=a.f;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};var ok=window,pk=document,qk=ok.location;function rk(){}var sk=/[native code]/;function tk(a,b,c){return a[b]=a[b]||c}function uk(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1}function vk(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b}function wk(){var a;if((a=Object.create)&&sk.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a}var xk=tk(ok,"gapi",{});var yk;yk=tk(ok,"___jsl",wk());tk(yk,"I",0);tk(yk,"hel",10);function zk(){var a=qk.href,b;if(yk.dpo)b=yk.h;else{b=yk.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=decodeURIComponent(a[2])}catch(e){}}return b}function Ak(a){var b=tk(yk,"PQ",[]);yk.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)}function Bk(a){return tk(tk(yk,"H",wk()),a,wk())};var Ck=tk(yk,"perf",wk());tk(Ck,"g",wk());var Dk=tk(Ck,"i",wk());tk(Ck,"r",[]);wk();wk();function Ek(a,b,c){b&&0<b.length&&(b=Fk(b),c&&0<c.length&&(b+="___"+Fk(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=tk(Dk,"_p",wk()),tk(b,c,wk())[a]=(new Date).getTime(),b=Ck.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))}function Fk(a){return a.join("__").replace(/./g,"_").replace(/-/g,"_").replace(/,/g,"_")};var Gk=wk(),Hk=[];function Ik(a){throw Error("Bad hint"+(a?": "+a:""));};Hk.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?yk[b]=tk(yk,b,[]).concat(c):tk(yk,b,c)}if(b=a.u)a=tk(yk,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var Jk=/^(/[a-zA-Z0-9_-]+)+$/,Kk=/^[a-zA-Z0-9-_.,!]+$/,Lk=/^gapi.loaded_[0-9]+$/,Mk=/^[a-zA-Z0-9,._-]+$/;function Nk(a,b,c,d){var e=a.split(";"),f=e.shift(),h=Gk[f],k=null;h?k=h(e,b,c,d):Ik("no hint processor for: "+f);k||Ik("failed to generate load url");b=k;c=b.match(Ok);(d=b.match(Pk))&&1===d.length&&Qk.test(b)&&c&&1===c.length||Ik("failed sanity: "+a);return k}
function Rk(a,b,c,d){function e(a){return encodeURIComponent(a).replace(/%2C/g,",")}a=Sk(a);Lk.test(c)||Ik("invalid_callback");b=Tk(b);d=d&&d.length?Tk(d):null;return[encodeURIComponent(a.ne).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.oc?"/am="+e(a.oc):"",a.Xc?"/rs="+e(a.Xc):"",a.hd?"/t="+e(a.hd):"","/cb=",e(c)].join("")}
function Sk(a){"/"!==a.charAt(0)&&Ik("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))Ik("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=b[d].split("="),h=decodeURIComponent(f[0]),k=decodeURIComponent(f[1]);2==f.length&&h&&k&&(a[h]=a[h]||k)}b="/"+c.join("/");Jk.test(b)||Ik("invalid_prefix");c=Uk(a,"k",!0);d=Uk(a,"am");e=Uk(a,"rs");a=Uk(a,"t");return{ne:b,version:c,
oc:d,Xc:e,hd:a}}function Tk(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/./g,"_").replace(/-/g,"_");Mk.test(e)&&b.push(e)}return b.join(",")}function Uk(a,b,c){a=a[b];!a&&c&&Ik("missing: "+b);if(a){if(Kk.test(a))return a;Ik("invalid: "+b)}return null}var Qk=/^https?://[a-z0-9_.-]+.google.com(:d+)?/[a-zA-Z0-9_.,!=-/]+$/,Pk=//cb=/g,Ok=////g;function Vk(){var a=zk();if(!a)throw Error("Bad hint");return a}
Gk.m=function(a,b,c,d){(a=a[0])||Ik("missing_hint");return"https://apis.google.com"+Rk(a,b,c,d)};var Wk=decodeURI("%73cript");function Xk(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>uk.call(b,e)&&c.push(e)}return c}function Yk(a){"loading"!=pk.readyState?Zk(a):pk.write("<"+Wk+' src="'+encodeURI(a)+'"></'+Wk+">")}function Zk(a){var b=pk.createElement(Wk);b.setAttribute("src",a);b.async="true";(a=pk.getElementsByTagName(Wk)[0])?a.parentNode.insertBefore(b,a):(pk.head||pk.body||pk.documentElement).appendChild(b)}
function $k(a,b){var c=b&&b._c;if(c)for(var d=0;d<Hk.length;d++){var e=Hk[d][0],f=Hk[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}}function al(a,b,c){bl(function(){var c;c=b===zk()?tk(xk,"_",wk()):wk();c=tk(Bk(b),"_",c);a(c)},c)}
function cl(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);$k(a,c);var d=a?a.split(":"):[],e=c.h||Vk(),f=tk(yk,"ah",wk());if(f["::"]&&d.length){for(var h=[],k=null;k=d.shift();){var l=k.split("."),l=f[k]||f[l[1]&&"ns:"+l[0]||""]||e,n=h.length&&h[h.length-1]||null,y=n;n&&n.hint==l||(y={hint:l,features:[]},h.push(y));y.features.push(k)}var K=h.length;if(1<K){var D=c.callback;D&&(c.callback=function(){0==--K&&D()})}for(;d=h.shift();)dl(d.features,c,d.hint)}else dl(d||[],c,e)}
function dl(a,b,c){function d(a,b){if(K)return 0;ok.clearTimeout(y);D.push.apply(D,ia);var d=((xk||{}).config||{}).update;d?d(f):f&&tk(yk,"cu",[]).push(f);if(b){Ek("me0",a,J);try{al(b,c,n)}finally{Ek("me1",a,J)}}return 1}a=vk(a)||[];var e=b.callback,f=b.config,h=b.timeout,k=b.ontimeout,l=b.onerror,n=void 0;"function"==typeof l&&(n=l);var y=null,K=!1;if(h&&!k||!h&&k)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var l=tk(Bk(c),"r",[]).sort(),D=tk(Bk(c),"L",[]).sort(),
J=[].concat(l);0<h&&(y=ok.setTimeout(function(){K=!0;k()},h));var ia=Xk(a,D);if(ia.length){var ia=Xk(a,l),jb=tk(yk,"CP",[]),G=jb.length;jb[G]=function(a){function b(){var a=jb[G+1];a&&a()}function c(b){jb[G]=null;d(ia,a)&&Ak(function(){e&&e();b()})}if(!a)return 0;Ek("ml1",ia,J);0<G&&jb[G-1]?jb[G]=function(){c(b)}:c(b)};if(ia.length){var Wi="loaded_"+yk.I++;xk[Wi]=function(a){jb[G](a);xk[Wi]=null};a=Nk(c,ia,"gapi."+Wi,l);l.push.apply(l,ia);Ek("ml0",ia,J);b.sync||ok.___gapisync?Yk(a):Zk(a)}else jb[G](rk)}else d(ia)&&
e&&e()};function bl(a,b){if(yk.hee&&0<yk.hel)try{return a()}catch(c){b&&b(c),yk.hel--,cl("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;}})}else try{return a()}catch(d){throw b&&b(d),d;}};xk.load=function(a,b){return bl(function(){return cl(a,b)})};function el(a){a=fa(a)?{callback:a}:a||{};a._c&&a._c.jsl&&a._c.jsl.h||Fb(a,{_c:{jsl:{h:I("GAPI_HINT_PARAMS")}}});if(a.gapiHintOverride||I("GAPI_HINT_OVERRIDE")){var b=Af(document.location.href).gapi_jsh;b&&Fb(a,{_c:{jsl:{h:b}}})}cl("iframes",a)};function fl(){var a={action_get_delegate_accounts:1,owner_picker_redirect_url:I("OWNER_PICKER_REDIRECT_URL")};a.o=I("CREATOR_CONTEXT","U");return a};function gl(a){q("_lactCookie",!!a,window);null==r("_lact",window)&&(a=parseInt(I("LACT"),10),a=isFinite(a)?x()-Math.max(a,0):-1,q("_lact",a,window),-1==a&&hl(),T(document,"keydown",hl),T(document,"keyup",hl),T(document,"mousedown",hl),T(document,"mouseup",hl),I("EXP_LACT_MOUSE")&&N("page-mouse",hl),I("EXP_LACT_SCROLL")&&N("page-scroll",hl),I("EXP_LACT_RESIZE")&&N("page-resize",hl))}function hl(){null==r("_lact",window)&&(gl(),r("_lact",window));var a=x();q("_lact",a,window);O("USER_ACTIVE")}
function il(){var a=r("_lact",window);return null==a?-1:Math.max(x()-a,0)};function jl(a,b,c,d,e,f){this.c=null;this.F=c;this.l=a;this.C=b;this.j=d;this.A=I("GOOGLEPLUS_HOST")+(e?"/u/"+e:"")+(f?"/b/"+f:"")+"/_/notifications/frame";this.f=R(a)}function kl(a,b,c,d){return{onOpen:v(function(a){return a.openInto(c)},a),onReady:w(function(a){a&&a()},d?b.showOnepick:void 0),onClose:w(function(a,b){a&&a();b.remove()},d?b.hideOnepick:void 0)}}function ll(a,b,c){a&&a[b]&&a[b].apply(a,Array.prototype.slice.call(arguments,2))}
function ml(a,b){var c={setNotificationWidgetSize:v(function(a,b){this.f.style.width=a;this.f.style.height=b},a),setNotificationWidgetHeight:v(function(a){this.f.style.height=a},a),setNotificationText:v(function(a){this.F(parseInt(a,10))},a),hideNotificationWidget:w(function(a){a&&a()},b.hideNotificationWidget),openSharebox:function(){},onError:function(){}};a.c=iframes.open(a.A,{style:"iframe-style"},{origin:window.location.protocol+"//"+window.location.hostname,source:"yt",sourceid:"36",hl:a.j},
c,function(){})}jl.prototype.load=function(a){iframes.setHandler("iframe-style",kl(this,a,this.l,!1));iframes.setHandler("onepick",kl(this,a,this.C,!0));ml(this,a)};jl.prototype.close=function(){ll(this.c,"onHide")};jl.prototype.B=function(){return td(window).height-60-20};function nl(a,b){ll(a.c,b?"onIdle":"onActive")};function ol(a,b,c){this.A=!1;this.j=0;this.l=R("sb-container");if(this.c=R("sb-button-notify"))this.C=xe("SPAN","yt-uix-button-content",this.c),this.F=xe("IMG","yt-uix-button-icon-bell",this.c);this.B=R("sb-onepick-target");this.f=new jl("sb-target","sb-onepick-target",v(this.Be,this),a,b,c);this.f.load({hideNotificationWidget:v(this.Dc,this),showOnepick:v(this.we,this),hideOnepick:v(this.Bd,this)});this.H=ke(this.B);this.Tc();T(window,"resize",v(this.Tc,this));T(window,"click",v(this.Dc,this));gl();
gc(v(this.ld,this),12E4)}g=ol.prototype;g.ze=function(){this.A?(pl(this),nl(this.f,!0),E(this.c,"yt-uix-gen204")):(L(v(this.Qe,this),0),nl(this.f,!1),C(this.c,"yt-uix-gen204"))};g.Qe=function(){this.f.close();ql(this,!0);C(this.c,"sb-notif-clicked");var a=this.f,b={maxWidgetHeight:a.B()};ll(a.c,"onShowNotificationsOnly",b);this.A=!0};function ql(a,b){b?(qb(a.l,"sb-off","sb-on"),C(a.l,"sb-card-notif")):(qb(a.l,"sb-on","sb-off"),E(a.l,"sb-card-notif"))}
function pl(a){ql(a,!1);a.A=!1;E(a.c,"sb-notif-clicked")}g.Dc=function(){this.A&&(this.f.close(),pl(this),rl(this))};g.Be=function(a){this.j=a;rl(this)};function rl(a){if(a.C){var b=a.j+"";100<=a.j&&(b=ic("MASTHEAD_NOTIFICATIONS_COUNT_99PLUS"));Md(a.C,b)}a.c&&(0==a.j?qb(a.c,"sb-notif-on","sb-notif-off"):qb(a.c,"sb-notif-off","sb-notif-on"),b=jc(a.j),a.F&&a.F.setAttribute("alt",b))}g.we=function(){qb(this.B,"sb-off","sb-on")};g.Bd=function(){qb(this.B,"sb-on","sb-off")};
g.Tc=function(){var a=Math.max((td(window).height-this.H.height)/2,0);this.B.style.top=a+"px"};g.ld=function(){6E5<il()?nl(this.f,!1):nl(this.f,!0)};var sl="";function tl(){el(function(){var a=R("sb-button-notify"),b=new ol(I("SANDBAR_LOCALE"),I("SESSION_INDEX"),I("DELEGATED_SESSION_ID"));T(a,"click",v(b.ze,b));O("sandbar-init")})}
function ul(){if("U"==I("CREATOR_CONTEXT","U")){var a=pd("yt-masthead-account-picker-user-option"),b=sf(window.location.href);A(a,function(a){if(-1!=a.href.indexOf("action_handle_signin")){var c;c=Cf(a.href,{next:b});Vb(a,sf(c))}})}else{var a=pd("yt-masthead-account-picker-owner-option"),c=rf();if(c){var d=c.indexOf(";");-1!=d&&(c=c.substring(0,d))}c&&A(a,function(a){var b=Af(a.href).next;b&&(b=tf(b)+(c?"#"+c:""),b=Cf(a.href,{next:b}),Vb(a,sf(b)))})}}
function vl(){E(document.body,"sitewide-ticker-visible");O("masthead-ticker-close")}function wl(){var a=I("SBOX_JS_URL")||sl;if(a){sl=a;var b=r("yt.www.masthead.searchbox.init");b?b():xl(a,function(){var a;try{a=r("yt.www.masthead.searchbox.init"),a()}catch(b){throw b.message=b.message+' sbox type: "'+ca(a)+'"',b;}})}}function xl(a,b){var c=R("masthead-search-term");if(c){var d,e,f=function(){yl();tj=b;vc(a,b);Ge([d,e])};d=Fe(c,"mouseover",f);e=Fe(c,"keypress",f)}}
function yl(){r("yt.www.masthead.searchbox.init")||(Cc(sl,tj),tj=null)}function zl(){var a=R("masthead-search-term");a&&a.focus()}function Al(){Of("search-btn",!!R("masthead-search-term").value)};var Bl,Cl,Dl,El;var Fl=!1,Gl=!1;function Hl(){if(Bl=R("masthead-appbar")){Cl=R("masthead-positioner");Dl=R("masthead-positioner-height-offset");xj();Il();Jl();Kl=new lk(Ll);var a=Ml;r("yt.scheduler.instance")&&(a=function(){ah(Ml)});Nl.push(N("init",a));Nl.push(N("dispose",Ol));Pl=wj();vh.getInstance();Ql(Ah(0,128)?Ah(0,129):!0);Rl=qd("html",void 0,void 0)[0];Nl.push(N("masthead-ticker-close",Sl));Nl.push(N("appbar-guide-delay-load",Il));Nl.push(N("page-resize",Tl));Fl||Ml()}}
function Ml(){S("appbar-content-hidable");Ul=S("appbar-content-trigger");(Gl=B(document.body,"always-autohide-masthead"))?Yb(uj,"position-fixed"):Wb(uj,"position-fixed","true");Gl||Ul?Vl=T(window,"scroll",Wl):Xl();El=!!R("appbar-guide-menu")&&Cj();Fl?(El||(ob(yj,"guide-pinned",!1),Aj(!1)),Tl()):Fl=!0;var a=-1*ie(Cl).y,b=document.body.scrollHeight,c=a-(b-document.body.clientHeight);0<c&&(document.body.style.minHeight=b+c+"px");vd(document).scrollTop+=a;Yl=ud(document).y;Zl();$l();hk()}
function Ol(){Ul=null;Xl()}function Zl(){if(!Ul||am)Of(Bl,!0);else{var a=ke(Ul).height,b=ke(Cl).height,b=ie(Cl).y+b,a=Math.floor(ie(Ul).y)+a,c=B(document.body,"appbar-hidden"),d=vd(document);c&&a<b+40?(d.scrollTop+=40,Of(Bl,!0),E(document.body,"appbar-hidden"),bm()):!c&&b<a&&(d.scrollTop-=40,C(document.body,"appbar-hidden"),bm())}}function bm(){am=!0;L(function(){am=!1;B(document.body,"appbar-hidden")&&Of(Bl,!1)},300)}var am=!1;
function Tl(){El&&(ob(yj,"guide-pinned",1251<=(window.innerWidth||document.documentElement.clientWidth)),Aj(Dj()&&cm));dm()}
function dm(){if(B(document.body,"flex-width-enabled-snap")){var a;a=Dj()&&Bj();var b=window.innerWidth||document.documentElement.clientWidth,c=b-21-50;1251<=(window.innerWidth||document.documentElement.clientWidth)&&a&&(c-=230);a=640>=b?"content-snap-width-skinny-mode":1262<=c?"content-snap-width-3":1056<=c?"content-snap-width-2":"content-snap-width-1";B(Rl,a)||(nb(Rl,Pl),C(Rl,a),O("yt-dom-content-change"))}else nb(Rl,Pl)}function em(){return R("appbar-guide-menu")}
function Jl(){var a=B(document.body,"appbar-hidden"),b=ie(Cl).y,c=ke(Cl).height;fm=a?b+c:b+c-40}function gm(a){Dj()||Sd(a.target,"appbar-guide-clickable-ancestor")||Aj(!1)}function Ll(){var a=Math.max(0,ud(document).y),b=Yl;Yl=a;var c=b-a;0<c&&0==hm?hm=b:0>c&&(hm=0);c=Math.min(0,Math.max(c+im,-fm));var d=Gl;if(d){var e=a<fm,b=a>b&&Math.abs(im)<fm;Bj()&&b?a=!1:(a=d?!1:100<=hm-a,a=e||b||a)}else a=!1;a&&im!=c&&(Cl.style.top=c+"px",jm=im=c,km());Zl()}
function km(){var a=em();a&&(a.style.top=jm+"px");hk()}function Il(){if(!lm){var a=em();if(!a||S("guide-module-loading",a)){var b=R("appbar-guide-button");if(!b)return;mm.push(Fe(b,"click",function(){O("appbar-show-guide")}))}km();mm.push(He(a,"click",$l,"guide-item"));mm.push(T(a,"mouseleave",nm));mm.push(T(document.body,"click",gm));a=S("appbar-guide-toggle");mm.push(T(a,"click",om));lm=!0}}function $l(){pm=!Dj()}function nm(){pm&&(Aj(!1),pm=!1)}
function om(){var a=!Bj();Aj(a,!0);a&&O("yt-dom-content-change");Dj()&&Ql(a);dm()}function Ql(a){Bh(128,!0);Bh(129,a);Wg("PREF",Ch(),63072E3,"/");cm=a}function Xl(){Ge(Vl);Kl&&Kl.stop();Vl=""}function Wl(){Kl.isActive()||Kl.start()}function Sl(){var a=ie(Cl).y,b=ke(Cl).height;Dl.style.height=a+b+"px";var c=em();c&&(B(document.body,"appbar-hidden")?c.style.marginTop=a+b+"px":c.style.marginTop=a+b-40+"px",hk());Jl()}
var mm=[],Vl="",Nl=[],Yl=0,fm=0,pm=!1,lm=!1,hm=0,im=0,jm=0,Kl=null,Ul=null,Pl=null,cm=!1,Rl=null;function qm(a){this.c=new Ue;if(a){a=Ii(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function rm(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ha(a):b.substr(0,1)+a}g=qm.prototype;g.Z=function(){return this.c.Z()};g.add=function(a){Ve(this.c,rm(a),a)};g.removeAll=function(a){a=Ii(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};g.remove=function(a){return this.c.remove(rm(a))};g.clear=function(){this.c.clear()};g.isEmpty=function(){return this.c.isEmpty()};
g.contains=function(a){a=rm(a);return Xe(this.c.f,a)};g.ca=function(){return this.c.ca()};g.clone=function(){return new qm(this)};g.equals=function(a){return this.Z()==Hi(a)&&sm(this,a)};function sm(a,b){var c=Hi(b);if(a.Z()>c)return!1;!(b instanceof qm)&&5<c&&(b=new qm(b));return Li(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.wb?c.wb(a):ea(c)||u(c)?Va(c,a):vb(c,a)})}g.va=function(){return this.c.va(!1)};function tm(){};var um={SKA_SKIPPABLE_ADS:"ska",Te:"que",Se:"mus",Ue:"sus"};function vm(a){a&&(this.id=a.id||a.name,this.name=a.name,this.jd=a.app,this.type=a.type||"REMOTE_CONTROL",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new qm(Oa((a.capabilities||"").split(","),w(ub,um))))}vm.prototype.id="";vm.prototype.name="";g=vm.prototype;g.jd="";g.type="REMOTE_CONTROL";g.avatar="";g.theme="u";g.equals=function(a){return a?this.id==a.id:!1};function wm(a,b){this.action=a;this.params=b||null};function xm(){this.c=x()}new xm;xm.prototype.reset=function(){this.c=x()};xm.prototype.get=function(){return this.c};function ym(a,b){this.f=new hf(a);this.c=b?ef:df}ym.prototype.stringify=function(a){return gf(this.f,a)};ym.prototype.parse=function(a){return this.c(a)};function zm(a,b,c){this.l=c;this.j=a;this.A=b;this.f=0;this.c=null}zm.prototype.get=function(){var a;0<this.f?(this.f--,a=this.c,this.c=a.next,a.next=null):a=this.j();return a};zm.prototype.put=function(a){this.A(a);this.f<this.l&&(this.f++,a.next=this.c,this.c=a)};function Am(a){m.setTimeout(function(){throw a;},0)}var Bm;
function Cm(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!P("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=v(function(a){if(("*"==d||a.origin==d)&&a.data==
c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!Qc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.uc;c.uc=null;a()}};return function(a){d.next={uc:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(a){var b=document.createElement("SCRIPT");b.onreadystatechange=
function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){m.setTimeout(a,0)}};function Dm(){this.f=this.c=null}var Fm=new zm(function(){return new Em},function(a){a.reset()},100);Dm.prototype.add=function(a,b){var c=Fm.get();c.c=a;c.scope=b;c.next=null;this.f?this.f.next=c:this.c=c;this.f=c};Dm.prototype.remove=function(){var a=null;this.c&&(a=this.c,this.c=this.c.next,this.c||(this.f=null),a.next=null);return a};function Em(){this.next=this.scope=this.c=null}Em.prototype.reset=function(){this.next=this.scope=this.c=null};function Gm(a,b){Hm||Im();Jm||(Hm(),Jm=!0);Km.add(a,b)}var Hm;function Im(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Hm=function(){a.then(Lm)}}else Hm=function(){var a=Lm;!fa(m.setImmediate)||m.Window&&m.Window.prototype&&m.Window.prototype.setImmediate==m.setImmediate?(Bm||(Bm=Cm()),Bm(a)):m.setImmediate(a)}}var Jm=!1,Km=new Dm;function Lm(){for(var a=null;a=Km.remove();){try{a.c.call(a.scope)}catch(b){Am(b)}Fm.put(a)}Jm=!1};function Mm(a,b){this.c=0;this.C=void 0;this.l=this.f=this.j=null;this.A=this.B=!1;if(a==Nm)Om(this,2,b);else try{var c=this;a.call(b,function(a){Om(c,2,a)},function(a){Om(c,3,a)})}catch(d){Om(this,3,d)}}function Pm(){this.next=this.context=this.f=this.j=this.c=null;this.l=!1}Pm.prototype.reset=function(){this.context=this.f=this.j=this.c=null;this.l=!1};var Qm=new zm(function(){return new Pm},function(a){a.reset()},100);function Rm(a,b,c){var d=Qm.get();d.j=a;d.f=b;d.context=c;return d}
function Nm(){}Mm.prototype.then=function(a,b,c){return Sm(this,fa(a)?a:null,fa(b)?b:null,c)};Mm.prototype.then=Mm.prototype.then;Mm.prototype.$goog_Thenable=!0;Mm.prototype.cancel=function(a){0==this.c&&Gm(function(){var b=new Tm(a);Um(this,b)},this)};
function Um(a,b){if(0==a.c)if(a.j){var c=a.j;if(c.f){for(var d=0,e=null,f=null,h=c.f;h&&(h.l||(d++,h.c==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.c&&1==d?Um(c,b):(f?(d=f,d.next==c.l&&(c.l=d),d.next=d.next.next):Vm(c),Wm(c,e,3,b)))}a.j=null}else Om(a,3,b)}function Xm(a,b){a.f||2!=a.c&&3!=a.c||Ym(a);a.l?a.l.next=b:a.f=b;a.l=b}
function Sm(a,b,c,d){var e=Rm(null,null,null);e.c=new Mm(function(a,h){e.j=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){h(n)}}:a;e.f=c?function(b){try{var e=c.call(d,b);!p(e)&&b instanceof Tm?h(b):a(e)}catch(n){h(n)}}:h});e.c.j=a;Xm(a,e);return e.c}Mm.prototype.F=function(a){this.c=0;Om(this,2,a)};Mm.prototype.H=function(a){this.c=0;Om(this,3,a)};
function Om(a,b,c){if(0==a.c){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{var d;if(c)try{d=!!c.$goog_Thenable}catch(e){d=!1}else d=!1;if(d){a.c=1;b=c;c=a.F;d=a.H;b instanceof Mm?Xm(b,Rm(c||t,d||null,a)):b.then(c,d,a);return}if(ga(c))try{var f=c.then;if(fa(f)){Zm(a,c,f);return}}catch(h){b=3,c=h}}a.C=c;a.c=b;a.j=null;Ym(a);3!=b||c instanceof Tm||$m(a,c)}}
function Zm(a,b,c){function d(b){f||(f=!0,a.H(b))}function e(b){f||(f=!0,a.F(b))}a.c=1;var f=!1;try{c.call(b,e,d)}catch(h){d(h)}}function Ym(a){a.B||(a.B=!0,Gm(a.Y,a))}function Vm(a){var b=null;a.f&&(b=a.f,a.f=b.next,b.next=null);a.f||(a.l=null);return b}Mm.prototype.Y=function(){for(var a=null;a=Vm(this);)Wm(this,a,this.c,this.C);this.B=!1};
function Wm(a,b,c,d){if(3==c&&b.f&&!b.l)for(;a&&a.A;a=a.j)a.A=!1;if(b.c)b.c.j=null,an(b,c,d);else try{b.l?b.j.call(b.context):an(b,c,d)}catch(e){bn.call(null,e)}Qm.put(b)}function an(a,b,c){2==b?a.j.call(a.context,c):a.f&&a.f.call(a.context,c)}function $m(a,b){a.A=!0;Gm(function(){a.A&&bn.call(null,b)})}var bn=Am;function Tm(a){na.call(this,a)}z(Tm,na);Tm.prototype.name="cancel";function cn(a,b){xg.call(this);this.c=a||1;this.f=b||m;this.j=v(this.ye,this);this.l=x()}z(cn,xg);g=cn.prototype;g.enabled=!1;g.ja=null;function dn(a,b){a.c=b;a.ja&&a.enabled?(a.stop(),a.start()):a.ja&&a.stop()}g.ye=function(){if(this.enabled){var a=x()-this.l;0<a&&a<.8*this.c?this.ja=this.f.setTimeout(this.j,this.c-a):(this.ja&&(this.f.clearTimeout(this.ja),this.ja=null),yg(this,"tick"),this.enabled&&(this.ja=this.f.setTimeout(this.j,this.c),this.l=x()))}};
g.start=function(){this.enabled=!0;this.ja||(this.ja=this.f.setTimeout(this.j,this.c),this.l=x())};g.stop=function(){this.enabled=!1;this.ja&&(this.f.clearTimeout(this.ja),this.ja=null)};g.J=function(){cn.K.J.call(this);this.stop();delete this.f};function en(a,b,c){if(fa(a))c&&(a=v(a,c));else if(a&&"function"==typeof a.handleEvent)a=v(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)};function fn(a,b,c){$b.call(this);this.l=a;this.j=b;this.f=c;this.c=v(this.ge,this)}z(fn,$b);g=fn.prototype;g.Ib=!1;g.ac=0;g.Ya=null;g.stop=function(){this.Ya&&(m.clearTimeout(this.Ya),this.Ya=null,this.Ib=!1)};g.pause=function(){this.ac++};g.J=function(){fn.K.J.call(this);this.stop()};g.ge=function(){this.Ya=null;this.Ib&&!this.ac&&(this.Ib=!1,gn(this))};function gn(a){a.Ya=en(a.c,a.j);a.l.call(a.f)};function hn(){}hn.prototype.c=null;function jn(a){var b;(b=a.c)||(b={},kn(a)&&(b[0]=!0,b[1]=!0),b=a.c=b);return b};var ln;function mn(){}z(mn,hn);function nn(a){return(a=kn(a))?new ActiveXObject(a):new XMLHttpRequest}function kn(a){if(!a.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.f=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.f}ln=new mn;function on(a,b,c,d,e){this.c=a;this.j=c;this.F=d;this.C=e||1;this.A=45E3;this.l=new vg(this);this.f=new cn;dn(this.f,250)}g=on.prototype;g.Ra=null;g.pa=!1;g.eb=null;g.jc=null;g.ob=null;g.cb=null;g.Da=null;g.Ia=null;g.Ta=null;g.U=null;g.qb=0;g.qa=null;g.Lb=null;g.Sa=null;g.kb=-1;g.Zc=!0;g.Na=!1;g.Wb=0;g.Fb=null;var pn={},qn={};g=on.prototype;g.setTimeout=function(a){this.A=a};function rn(a,b,c){a.cb=1;a.Da=gj(b.clone());a.Ta=c;a.B=!0;sn(a,null)}
function tn(a,b,c,d,e){a.cb=1;a.Da=gj(b.clone());a.Ta=null;a.B=c;e&&(a.Zc=!1);sn(a,d)}function sn(a,b){a.ob=x();un(a);a.Ia=a.Da.clone();ej(a.Ia,"t",a.C);a.qb=0;a.U=a.c.Rb(a.c.pb()?b:null);0<a.Wb&&(a.Fb=new fn(v(a.ad,a,a.U),a.Wb));a.l.Ba(a.U,"readystatechange",a.re);var c=a.Ra?Cb(a.Ra):{};a.Ta?(a.Lb="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.U.send(a.Ia,a.Lb,a.Ta,c)):(a.Lb="GET",a.Zc&&!Wc&&(c.Connection="close"),a.U.send(a.Ia,a.Lb,null,c));a.c.oa(1)}
g.re=function(a){a=a.target;var b=this.Fb;b&&3==vn(a)?b.Ya||b.ac?b.Ib=!0:gn(b):this.ad(a)};
g.ad=function(a){try{if(a==this.U)a:{var b=vn(this.U),c=this.U.l,d=this.U.getStatus();if(Q&&!dd(10)||Wc&&!cd("420+")){if(4>b)break a}else if(3>b||3==b&&!Uc&&!wn(this.U))break a;this.Na||4!=b||7==c||(8==c||0>=d?this.c.oa(3):this.c.oa(2));xn(this);var e=this.U.getStatus();this.kb=e;var f=wn(this.U);(this.pa=200==e)?(4==b&&yn(this),this.B?(zn(this,b,f),Uc&&this.pa&&3==b&&(this.l.Ba(this.f,"tick",this.pe),this.f.start())):An(this,f),this.pa&&!this.Na&&(4==b?this.c.Eb(this):(this.pa=!1,un(this)))):(this.Sa=
400==e&&0<f.indexOf("Unknown SID")?3:0,V(),yn(this),Bn(this))}}catch(h){this.U&&wn(this.U)}finally{}};function zn(a,b,c){for(var d=!0;!a.Na&&a.qb<c.length;){var e=Cn(a,c);if(e==qn){4==b&&(a.Sa=4,V(),d=!1);break}else if(e==pn){a.Sa=4;V();d=!1;break}else An(a,e)}4==b&&0==c.length&&(a.Sa=1,V(),d=!1);a.pa=a.pa&&d;d||(yn(a),Bn(a))}g.pe=function(){var a=vn(this.U),b=wn(this.U);this.qb<b.length&&(xn(this),zn(this,a,b),this.pa&&4!=a&&un(this))};
function Cn(a,b){var c=a.qb,d=b.indexOf("n",c);if(-1==d)return qn;c=Number(b.substring(c,d));if(isNaN(c))return pn;d+=1;if(d+c>b.length)return qn;var e=b.substr(d,c);a.qb=d+c;return e}
function Dn(a,b){a.ob=x();un(a);var c=b?window.location.hostname:"";a.Ia=a.Da.clone();aj(a.Ia,"DOMAIN",c);aj(a.Ia,"t",a.C);try{a.qa=new ActiveXObject("htmlfile")}catch(d){yn(a);a.Sa=7;V();Bn(a);return}var e="<html><body>";if(b){for(var f="",h=0;h<c.length;h++){var k=c.charAt(h);if("<"==k)f=f+"\x3c";else if(">"==k)f=f+"\x3e";else{if(k in Ea)k=Ea[k];else if(k in Da)k=Ea[k]=Da[k];else{var l=k,n=k.charCodeAt(0);if(31<n&&127>n)l=k;else{if(256>n){if(l="\x",16>n||256<n)l+="0"}else l="\u",4096>n&&(l+=
"0");l+=n.toString(16).toUpperCase()}k=Ea[k]=l}f+=k}}e+='<script>document.domain="'+f+'"x3c/script>'}e+="</body></html>";c=cf(Ib("b/12014412"),e);a.qa.open();a.qa.write(Tb(c));a.qa.close();a.qa.parentWindow.m=v(a.je,a);a.qa.parentWindow.d=v(a.Rc,a,!0);a.qa.parentWindow.rpcClose=v(a.Rc,a,!1);c=a.qa.createElement("DIV");a.qa.parentWindow.document.body.appendChild(c);e=Nb(a.Ia.toString());e=sa(Lb(e));e=cf(Ib("b/12014412"),'<iframe src="'+e+'"></iframe>');c.innerHTML=Tb(e);a.c.oa(1)}
g.je=function(a){En(v(this.ie,this,a),0)};g.ie=function(a){this.Na||(xn(this),An(this,a),un(this))};g.Rc=function(a){En(v(this.he,this,a),0)};g.he=function(a){this.Na||(yn(this),this.pa=a,this.c.Eb(this),this.c.oa(4))};g.cancel=function(){this.Na=!0;yn(this)};function un(a){a.jc=x()+a.A;Fn(a,a.A)}function Fn(a,b){if(null!=a.eb)throw Error("WatchDog timer not null");a.eb=En(v(a.ke,a),b)}function xn(a){a.eb&&(m.clearTimeout(a.eb),a.eb=null)}
g.ke=function(){this.eb=null;var a=x();0<=a-this.jc?(2!=this.cb&&this.c.oa(3),yn(this),this.Sa=2,V(),Bn(this)):Fn(this,this.jc-a)};function Bn(a){a.c.Fc()||a.Na||a.c.Eb(a)}function yn(a){xn(a);bc(a.Fb);a.Fb=null;a.f.stop();a.l.removeAll();if(a.U){var b=a.U;a.U=null;Gn(b);b.dispose()}a.qa&&(a.qa=null)}function An(a,b){try{a.c.Lc(a,b),a.c.oa(4)}catch(c){}};function Hn(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;In(a,b,function(e){e?c(!0):m.setTimeout(function(){Hn(a,b,c,d,f)},f)})}}function In(a,b,c){var d=new Image;d.onload=function(){try{Jn(d),c(!0)}catch(a){}};d.onerror=function(){try{Jn(d),c(!1)}catch(a){}};d.onabort=function(){try{Jn(d),c(!1)}catch(a){}};d.ontimeout=function(){try{Jn(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function Jn(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function Kn(a){this.c=a;this.f=new ym(null,!0)}g=Kn.prototype;g.Ub=null;g.ga=null;g.Gb=!1;g.$c=null;g.xb=null;g.Zb=null;g.Vb=null;g.ka=null;g.Aa=-1;g.jb=null;g.fb=null;function Ln(a){var b=Mn(a.c,a.fb,"/mail/images/cleardot.gif");gj(b);Hn(b.toString(),5E3,v(a.md,a),3,2E3);a.oa(1)}g.md=function(a){if(a)this.ka=2,Nn(this);else{V();var b=this.c;b.na=b.Ea.Aa;On(b,9)}a&&this.oa(2)};
function Nn(a){var b=a.c.H;if(null!=b)V(),b?(V(),Pn(a.c,a,!1)):(V(),Pn(a.c,a,!0));else if(a.ga=new on(a,0,void 0,void 0,void 0),a.ga.Ra=a.Ub,b=a.c,b=Mn(b,b.pb()?a.jb:null,a.Vb),V(),!Q||dd(10))ej(b,"TYPE","xmlhttp"),tn(a.ga,b,!1,a.jb,!1);else{ej(b,"TYPE","html");var c=a.ga;a=Boolean(a.jb);c.cb=3;c.Da=gj(b.clone());Dn(c,a)}}g.Rb=function(a){return this.c.Rb(a)};g.Fc=function(){return!1};
g.Lc=function(a,b){this.Aa=a.kb;if(0==this.ka)if(b){try{var c=this.f.parse(b)}catch(d){c=this.c;c.na=this.Aa;On(c,2);return}this.jb=c[0];this.fb=c[1]}else c=this.c,c.na=this.Aa,On(c,2);else if(2==this.ka)if(this.Gb)V(),this.Zb=x();else if("11111"==b){if(V(),this.Gb=!0,this.xb=x(),c=this.xb-this.$c,!Q||dd(10)||500>c)this.Aa=200,this.ga.cancel(),V(),Pn(this.c,this,!0)}else V(),this.xb=this.Zb=x(),this.Gb=!1};
g.Eb=function(){this.Aa=this.ga.kb;if(this.ga.pa)0==this.ka?this.fb?(this.ka=1,Ln(this)):(this.ka=2,Nn(this)):2==this.ka&&(a=!1,(a=!Q||dd(10)?this.Gb:200>this.Zb-this.xb?!1:!0)?(V(),Pn(this.c,this,!0)):(V(),Pn(this.c,this,!1)));else{0==this.ka?V():2==this.ka&&V();var a=this.c;a.na=this.Aa;On(a,2)}};g.pb=function(){return this.c.pb()};g.isActive=function(){return this.c.isActive()};g.oa=function(a){this.c.oa(a)};function Qn(a){xg.call(this);this.headers=new Ue;this.S=a||null;this.f=!1;this.N=this.c=null;this.fa=this.F="";this.l=0;this.A="";this.j=this.W=this.C=this.T=!1;this.B=0;this.H=null;this.sa="";this.L=this.ta=!1}z(Qn,xg);var Rn=/^https?$/i,Sn=["POST","PUT"];g=Qn.prototype;
g.send=function(a,b,c,d){if(this.c)throw Error("[goog.net.XhrIo] Object is active with another request="+this.F+"; newUri="+a);b=b?b.toUpperCase():"GET";this.F=a;this.A="";this.l=0;this.fa=b;this.T=!1;this.f=!0;this.c=this.S?nn(this.S):nn(ln);this.N=this.S?jn(this.S):jn(ln);this.c.onreadystatechange=v(this.Kc,this);try{tm(Tn(this,"Opening Xhr")),this.W=!0,this.c.open(b,String(a),!0),this.W=!1}catch(e){tm(Tn(this,"Error opening Xhr: "+e.message));Un(this,e);return}a=c||"";var f=this.headers.clone();
d&&Ki(d,function(a,b){Ve(f,b,a)});d=Ta(f.za(),Vn);c=m.FormData&&a instanceof m.FormData;!Va(Sn,b)||d||c||Ve(f,"Content-Type","application/x-www-form-urlencoded;charset=utf-8");f.forEach(function(a,b){this.c.setRequestHeader(b,a)},this);this.sa&&(this.c.responseType=this.sa);"withCredentials"in this.c&&(this.c.withCredentials=this.ta);try{Wn(this),0<this.B&&(this.L=Xn(this.c),tm(Tn(this,"Will abort after "+this.B+"ms if incomplete, xhr2 "+this.L)),this.L?(this.c.timeout=this.B,this.c.ontimeout=v(this.Cc,
this)):this.H=en(this.Cc,this.B,this)),tm(Tn(this,"Sending request")),this.C=!0,this.c.send(a),this.C=!1}catch(h){tm(Tn(this,"Send error: "+h.message)),Un(this,h)}};function Xn(a){return Q&&cd(9)&&"number"==typeof a.timeout&&p(a.ontimeout)}function Vn(a){return"content-type"==a.toLowerCase()}g.Cc=function(){"undefined"!=typeof aa&&this.c&&(this.A="Timed out after "+this.B+"ms, aborting",this.l=8,Tn(this,this.A),yg(this,"timeout"),Gn(this,8))};
function Un(a,b){a.f=!1;a.c&&(a.j=!0,a.c.abort(),a.j=!1);a.A=b;a.l=5;Yn(a);Zn(a)}function Yn(a){a.T||(a.T=!0,yg(a,"complete"),yg(a,"error"))}function Gn(a,b){a.c&&a.f&&(Tn(a,"Aborting"),a.f=!1,a.j=!0,a.c.abort(),a.j=!1,a.l=b||7,yg(a,"complete"),yg(a,"abort"),Zn(a))}g.J=function(){this.c&&(this.f&&(this.f=!1,this.j=!0,this.c.abort(),this.j=!1),Zn(this,!0));Qn.K.J.call(this)};g.Kc=function(){this.isDisposed()||(this.W||this.C||this.j?$n(this):this.ae())};g.ae=function(){$n(this)};
function $n(a){if(a.f&&"undefined"!=typeof aa)if(a.N[1]&&4==vn(a)&&2==a.getStatus())Tn(a,"Local request error detected and ignored");else if(a.C&&4==vn(a))en(a.Kc,0,a);else if(yg(a,"readystatechange"),4==vn(a)){Tn(a,"Request complete");a.f=!1;try{var b=a.getStatus(),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=of(String(a.F))[1]||null;if(!f&&self.location)var h=self.location.protocol,f=h.substr(0,h.length-
1);e=!Rn.test(f?f.toLowerCase():"")}d=e}if(d)yg(a,"complete"),yg(a,"success");else{a.l=6;var k;try{k=2<vn(a)?a.c.statusText:""}catch(l){k=""}a.A=k+" ["+a.getStatus()+"]";Yn(a)}}finally{Zn(a)}}}function Zn(a,b){if(a.c){Wn(a);var c=a.c,d=a.N[0]?t:null;a.c=null;a.N=null;b||yg(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Wn(a){a.c&&a.L&&(a.c.ontimeout=null);"number"==typeof a.H&&(m.clearTimeout(a.H),a.H=null)}g.isActive=function(){return!!this.c};
function vn(a){return a.c?a.c.readyState:0}g.getStatus=function(){try{return 2<vn(this)?this.c.status:-1}catch(a){return-1}};function wn(a){try{return a.c?a.c.responseText:""}catch(b){return""}}function Tn(a,b){return b+" ["+a.fa+" "+a.F+" "+a.getStatus()+"]"};function ao(a,b,c){this.C=a||null;this.c=1;this.f=[];this.l=[];this.A=new ym(null,!0);this.F=b||null;this.H=null!=c?c:null}function bo(a,b){this.c=a;this.map=b;this.context=null}g=ao.prototype;g.hb=null;g.aa=null;g.P=null;g.Tb=null;g.yb=null;g.qc=null;g.zb=null;g.lb=0;g.Ed=0;g.X=null;g.Ga=null;g.wa=null;g.Pa=null;g.Ea=null;g.Kb=null;g.Za=-1;g.Gc=-1;g.na=-1;g.ib=0;g.Xa=0;g.Oa=8;var co=new xg;function eo(a){Yf.call(this,"statevent",a)}z(eo,Yf);
function fo(a,b){Yf.call(this,"timingevent",a);this.size=b}z(fo,Yf);function go(a){Yf.call(this,"serverreachability",a)}z(go,Yf);function ho(a,b,c,d,e,f){V();a.Tb=c;a.hb=d||{};e&&p(f)&&(a.hb.OSID=e,a.hb.OAID=f);a.Ea=new Kn(a);a.Ea.Ub=null;a.Ea.f=a.A;a=a.Ea;a.Vb=b;b=Mn(a.c,null,a.Vb);V();a.$c=x();c=a.c.F;null!=c?(a.jb=c[0],a.fb=c[1],a.fb?(a.ka=1,Ln(a)):(a.ka=2,Nn(a))):(ej(b,"MODE","init"),a.ga=new on(a,0,void 0,void 0,void 0),a.ga.Ra=a.Ub,tn(a.ga,b,!1,null,!0),a.ka=0)}
function io(a){jo(a);if(3==a.c){var b=a.lb++,c=a.yb.clone();aj(c,"SID",a.j);aj(c,"RID",b);aj(c,"TYPE","terminate");ko(a,c);b=new on(a,0,a.j,b,void 0);b.cb=2;b.Da=gj(c.clone());(new Image).src=b.Da;b.ob=x();un(b)}lo(a)}function jo(a){if(a.Ea){var b=a.Ea;b.ga&&(b.ga.cancel(),b.ga=null);b.Aa=-1;a.Ea=null}a.P&&(a.P.cancel(),a.P=null);a.wa&&(m.clearTimeout(a.wa),a.wa=null);mo(a);a.aa&&(a.aa.cancel(),a.aa=null);a.Ga&&(m.clearTimeout(a.Ga),a.Ga=null)}
function no(a,b){if(0==a.c)throw Error("Invalid operation: sending map when state is closed");a.f.push(new bo(a.Ed++,b));2!=a.c&&3!=a.c||oo(a)}g=ao.prototype;g.Fc=function(){return 0==this.c};function oo(a){a.aa||a.Ga||(a.Ga=En(v(a.Pc,a),0),a.ib=0)}g.Pc=function(a){this.Ga=null;po(this,a)};
function po(a,b){if(1==a.c){if(!b){a.lb=Math.floor(1E5*Math.random());var c=a.lb++,d=new on(a,0,"",c,void 0);d.Ra=null;var e=qo(a),f=a.yb.clone();aj(f,"RID",c);a.C&&aj(f,"CVER",a.C);ko(a,f);rn(d,f,e);a.aa=d;a.c=2}}else 3==a.c&&(b?ro(a,b):0!=a.f.length&&(a.aa||ro(a)))}
function ro(a,b){var c,d;b?6<a.Oa?(a.f=a.l.concat(a.f),a.l.length=0,c=a.lb-1,d=qo(a)):(c=b.F,d=b.Ta):(c=a.lb++,d=qo(a));var e=a.yb.clone();aj(e,"SID",a.j);aj(e,"RID",c);aj(e,"AID",a.Za);ko(a,e);c=new on(a,0,a.j,c,a.ib+1);c.Ra=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.aa=c;rn(c,e,d)}function ko(a,b){if(a.X){var c=a.X.Ac(a);c&&rb(c,function(a,c){aj(b,c,a)})}}
function qo(a){var b=Math.min(a.f.length,1E3),c=["count="+b],d;6<a.Oa&&0<b?(d=a.f[0].c,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.f[e].c,h=a.f[e].map,f=6>=a.Oa?e:f-d;try{Ki(h,function(a,b){c.push("req"+f+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+f+"_type="+encodeURIComponent("_badmap"))}}a.l=a.l.concat(a.f.splice(0,b));return c.join("&")}function so(a){a.P||a.wa||(a.B=1,a.wa=En(v(a.Oc,a),0),a.Xa=0)}
function to(a){if(a.P||a.wa||3<=a.Xa)return!1;a.B++;a.wa=En(v(a.Oc,a),uo(a,a.Xa));a.Xa++;return!0}g.Oc=function(){this.wa=null;this.P=new on(this,0,this.j,"rpc",this.B);this.P.Ra=null;this.P.Wb=0;var a=this.qc.clone();aj(a,"RID","rpc");aj(a,"SID",this.j);aj(a,"CI",this.Kb?"0":"1");aj(a,"AID",this.Za);ko(this,a);if(!Q||dd(10))aj(a,"TYPE","xmlhttp"),tn(this.P,a,!0,this.zb,!1);else{aj(a,"TYPE","html");var b=this.P,c=Boolean(this.zb);b.cb=3;b.Da=gj(a.clone());Dn(b,c)}};
function Pn(a,b,c){a.Kb=c;a.na=b.Aa;a.od(1,0);a.yb=Mn(a,null,a.Tb);oo(a)}
g.Lc=function(a,b){if(0!=this.c&&(this.P==a||this.aa==a))if(this.na=a.kb,this.aa==a&&3==this.c)if(7<this.Oa){var c;try{c=this.A.parse(b)}catch(d){c=null}if(da(c)&&3==c.length)if(0==c[0])a:{if(!this.wa){if(this.P)if(this.P.ob+3E3<this.aa.ob)mo(this),this.P.cancel(),this.P=null;else break a;to(this);V()}}else this.Gc=c[1],0<this.Gc-this.Za&&37500>c[2]&&this.Kb&&0==this.Xa&&!this.Pa&&(this.Pa=En(v(this.Fd,this),6E3));else On(this,11)}else"y2f%"!=b&&On(this,11);else if(this.P==a&&mo(this),!/^[sxa0]*$/.test(b)){c=
this.A.parse(b);da(c);for(var e=0;e<c.length;e++){var f=c[e];this.Za=f[0];f=f[1];2==this.c?"c"==f[0]?(this.j=f[1],this.zb=f[2],f=f[3],null!=f?this.Oa=f:this.Oa=6,this.c=3,this.X&&this.X.xc(this),this.qc=Mn(this,this.pb()?this.zb:null,this.Tb),so(this)):"stop"==f[0]&&On(this,7):3==this.c&&("stop"==f[0]?On(this,7):"noop"!=f[0]&&this.X&&this.X.wc(this,f),this.Xa=0)}}};g.Fd=function(){null!=this.Pa&&(this.Pa=null,this.P.cancel(),this.P=null,to(this),V())};
function mo(a){null!=a.Pa&&(m.clearTimeout(a.Pa),a.Pa=null)}
g.Eb=function(a){var b;if(this.P==a)mo(this),this.P=null,b=2;else if(this.aa==a)this.aa=null,b=1;else return;this.na=a.kb;if(0!=this.c)if(a.pa)1==b?(x(),yg(co,new fo(co,a.Ta?a.Ta.length:0)),oo(this),this.l.length=0):so(this);else{var c=a.Sa,d;if(!(d=3==c||7==c||0==c&&0<this.na)){if(d=1==b)this.aa||this.Ga||1==this.c||2<=this.ib?d=!1:(this.Ga=En(v(this.Pc,this,a),uo(this,this.ib)),this.ib++,d=!0);d=!(d||2==b&&to(this))}if(d)switch(c){case 1:On(this,5);break;case 4:On(this,10);break;case 3:On(this,
6);break;case 7:On(this,12);break;default:On(this,2)}}};function uo(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b}g.od=function(a){if(!Va(arguments,this.c))throw Error("Unexpected channel state: "+this.c);};function On(a,b){if(2==b||9==b){var c=null;a.X&&(c=null);var d=v(a.xe,a);c||(c=new Mi("//www.google.com/images/cleardot.gif"),gj(c));In(c.toString(),1E4,d)}else V();vo(a,b)}g.xe=function(a){a?V():(V(),vo(this,8))};
function vo(a,b){a.c=0;a.X&&a.X.vc(a,b);lo(a);jo(a)}function lo(a){a.c=0;a.na=-1;if(a.X)if(0==a.l.length&&0==a.f.length)a.X.Pb(a);else{var b=db(a.l),c=db(a.f);a.l.length=0;a.f.length=0;a.X.Pb(a,b,c)}}function Mn(a,b,c){var d=hj(c);if(""!=d.f)b&&Oi(d,b+"."+d.f),Pi(d,d.C);else var e=window.location,d=ij(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.hb&&rb(a.hb,function(a,b){aj(d,b,a)});aj(d,"VER",a.Oa);ko(a,d);return d}
g.Rb=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Qn;a.ta=!1;return a};g.isActive=function(){return!!this.X&&this.X.isActive(this)};function En(a,b){if(!fa(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}g.oa=function(){yg(co,new go(co))};function V(){yg(co,new eo(co))}g.pb=function(){return!(!Q||dd(10))};function wo(){}g=wo.prototype;g.xc=function(){};g.wc=function(){};g.vc=function(){};g.Pb=function(){};
g.Ac=function(){return{}};g.isActive=function(){return!0};function xo(a,b){cn.call(this);if(fa(a))b&&(a=v(a,b));else if(a&&fa(a.handleEvent))a=v(a.handleEvent,a);else throw Error("Invalid listener argument");this.C=a;kg(this,"tick",v(this.B,this));this.stop();dn(this,5E3+2E4*Math.random())}z(xo,cn);xo.prototype.A=0;xo.prototype.B=function(){if(500<this.c){var a=this.c;24E4>2*a&&(a*=2);dn(this,a)}this.C()};xo.prototype.start=function(){xo.K.start.call(this);this.A=x()+this.c};xo.prototype.stop=function(){this.A=0;xo.K.stop.call(this)};function yo(a,b){this.L=a;this.l=b;this.j=new H;this.f=new xo(this.Ge,this);this.c=null;this.Y=!1;this.B=null;this.H="";this.F=this.A=0;this.C=[]}z(yo,wo);g=yo.prototype;g.subscribe=function(a,b,c){return this.j.subscribe(a,b,c)};g.unsubscribe=function(a,b,c){return this.j.unsubscribe(a,b,c)};g.ra=function(a){return this.j.ra(a)};g.G=function(a,b){return this.j.G.apply(this.j,arguments)};g.dispose=function(){this.Y||(this.Y=!0,this.j.clear(),zo(this),bc(this.j))};g.isDisposed=function(){return this.Y};
function Ao(a){return{firstTestResults:[""],secondTestResults:!a.c.Kb,sessionId:a.c.j,arrayId:a.c.Za}}function Bo(a,b,c,d){if(!a.c||2!=a.c.c){a.H="";a.f.stop();a.B=b||null;a.A=c||0;b=a.L+"/test";c=a.L+"/bind";var e=new ao("1",d?d.firstTestResults:null,d?d.secondTestResults:null),f=a.c;f&&(f.X=null);e.X=a;a.c=e;f?ho(a.c,b,c,a.l,f.j,f.Za):d?ho(a.c,b,c,a.l,d.sessionId,d.arrayId):ho(a.c,b,c,a.l)}}function zo(a,b){a.F=b||0;a.f.stop();a.c&&(3==a.c.c&&po(a.c),io(a.c));a.F=0}
g.xc=function(){var a=this.f;a.stop();dn(a,5E3+2E4*Math.random());this.B=null;this.A=0;if(this.C.length){a=this.C;this.C=[];for(var b=0,c=a.length;b<c;++b)no(this.c,a[b])}this.G("handlerOpened")};g.vc=function(a,b){var c=2==b&&401==this.c.na;if(4!=b&&!c){if(6==b||410==this.c.na)c=this.f,c.stop(),dn(c,500);this.f.start()}this.G("handlerError",b)};g.Pb=function(a,b,c){if(!this.f.enabled)this.G("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.C.push(c[a].map)};
g.Ac=function(){var a={v:2};this.H&&(a.gsessionid=this.H);0!=this.A&&(a.ui=""+this.A);0!=this.F&&(a.ui=""+this.F);this.B&&Fb(a,this.B);return a};g.wc=function(a,b){if("S"==b[0])this.H=b[1];else if("gracefulReconnect"==b[0]){var c=this.f;c.stop();dn(c,500);this.f.start();io(this.c)}else this.G("handlerMessage",new wm(b[0],b[1]))};function Co(a,b){(a.l.loungeIdToken=b)||a.f.stop()}g.Ge=function(){this.f.stop();var a=this.c,b=0;a.P&&b++;a.aa&&b++;0!=b?this.f.start():Bo(this,this.B,this.A)};function Do(){$b.call(this);this.l=new H;ac(this,w(bc,this.l))}z(Do,$b);Do.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.l.subscribe(a,b,c)};Do.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.l.unsubscribe(a,b,c)};Do.prototype.ra=function(a){return this.isDisposed()?!1:this.l.ra(a)};Do.prototype.G=function(a,b){return this.isDisposed()?!1:this.l.G.apply(this.l,arguments)};function Eo(){this.c=[];this.f=[]}g=Eo.prototype;g.Z=function(){return this.c.length+this.f.length};g.isEmpty=function(){return Wa(this.c)&&Wa(this.f)};g.clear=function(){this.c=[];this.f=[]};g.contains=function(a){return Va(this.c,a)||Va(this.f,a)};g.remove=function(a){var b=Na(this.c,a);if(0>b)return $a(this.f,a);ab(this.c,b);return!0};g.ca=function(){for(var a=[],b=this.c.length-1;0<=b;--b)a.push(this.c[b]);for(var c=this.f.length,b=0;b<c;++b)a.push(this.f[b]);return a};var Fo=document.currentScript&&-1!=document.currentScript.src.indexOf("?loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",Go="boadgeojelhgndaghljhdicfkmllpafd dliochdbjfkdbacpmhlcpmleaejidimm hfaagokkkhdbgiakmmlclaapfelnkoah fmfcbgogabcbclcofgocippekhfcmgfj enhhojjnijigcajfphajepfemndkmdlo eojlgccfgnjlphjnlopmadngcgmmdgpk".split(" "),Ho=["fjhoaacokmgbjemoflkofnenfaiekifl","ekpaaapppgpmolpcldedioblbkmijaca","lhkfccafpkdlaodkicmokbmfapjadkij","ibiljbkambkbohapfhoonkcpcikdglop"],Io=window.navigator.presentation?
Go.concat(Ho):Go;function Jo(a){window.chrome?Ko(0,a):a(null)}function Ko(a,b){a==Io.length?b(null):Lo(Io[a],function(c){c?b(Io[a]):Ko(a+1,b)})}function Lo(a,b){var c=new XMLHttpRequest;c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};c.onerror=function(){b(!1)};try{c.open("GET","chrome-extension://"+a+Fo,!0),c.send()}catch(d){b(!1)}}
function Mo(){Jo(function(a){if(a){window.chrome=window.chrome||{};window.chrome.cast=window.chrome.cast||{};window.chrome.cast.extensionId=a;var b=document.createElement("script");b.src="chrome-extension://"+a+Fo;(document.head||document.documentElement).appendChild(b)}else(a=window.__onGCastApiAvailable)&&"function"==typeof a&&a(!1,"No cast extension found")})};var No=x(),Oo=null,Po=Array(50),Qo=-1,Ro=!1;function So(a){To();Oo.push(a);Uo(Oo)}function Vo(a,b){To();var c=Oo,d=Wo(a,String(b));Wa(c)?Xo(d):(Uo(c),A(c,function(a){a(d)}))}function To(){Oo||(Oo=r("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",Oo,void 0))}function Xo(a){var b=(Qo+1)%50;Qo=b;Po[b]=a;Ro||(Ro=49==b)}function Uo(a){var b=Po;if(b[0]){var c=Qo,d=Ro?c:-1;do{var d=(d+1)%50,e=b[d];A(a,function(a){a(e)})}while(d!=c);Po=Array(50);Qo=-1;Ro=!1}}
function Wo(a,b){var c=(x()-No)/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("")};function Yo(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||""}function Zo(a,b){return!!b&&(a.id==b||a.uuid==b)}function $o(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.uuid==b.uuid:!0}function ap(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function bp(a){return new Yo(a)}function cp(a){return da(a)?Pa(a,bp):[]}
function dp(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):"-")+"}":"null"}function ep(a){return da(a)?"["+Pa(a,dp).join(",")+"]":"null"};function fp(){};function gp(){}z(gp,fp);gp.prototype.Z=function(){var a=0;Se(this.va(!0),function(){a++});return a};gp.prototype.clear=function(){var a=Te(this.va(!0)),b=this;A(a,function(a){b.remove(a)})};function hp(a){this.c=a}z(hp,gp);g=hp.prototype;g.isAvailable=function(){if(!this.c)return!1;try{return this.c.setItem("__sak","1"),this.c.removeItem("__sak"),!0}catch(a){return!1}};g.vd=function(a,b){try{this.c.setItem(a,b)}catch(c){if(0==this.c.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};g.get=function(a){a=this.c.getItem(a);if(!u(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.c.removeItem(a)};
g.Z=function(){return this.c.length};g.va=function(a){var b=0,c=this.c,d=new Qe;d.next=function(){if(b>=c.length)throw Pe;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!u(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};g.clear=function(){this.c.clear()};g.key=function(a){return this.c.key(a)};function ip(){var a=null;try{a=window.localStorage||null}catch(b){}this.c=a}z(ip,hp);function jp(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.c=a}z(jp,hp);function kp(a){this.c=a}kp.prototype.f=function(a,b){p(b)?this.c.vd(a,ff(b)):this.c.remove(a)};kp.prototype.get=function(a){var b;try{b=this.c.get(a)}catch(c){return}if(null!==b)try{return df(b)}catch(d){throw"Storage: Invalid value was encountered";}};kp.prototype.remove=function(a){this.c.remove(a)};function lp(a){this.c=a}z(lp,kp);function mp(a){this.data=a}function np(a){return!p(a)||a instanceof mp?a:new mp(a)}lp.prototype.f=function(a,b){lp.K.f.call(this,a,np(b))};lp.prototype.j=function(a){a=lp.K.get.call(this,a);if(!p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};lp.prototype.get=function(a){if(a=this.j(a)){if(a=a.data,!p(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function op(a){this.c=a}z(op,lp);function pp(a){var b=a.creation;a=a.expiration;return!!a&&a<x()||!!b&&b>x()}op.prototype.f=function(a,b,c){if(b=np(b)){if(c){if(c<x()){op.prototype.remove.call(this,a);return}b.expiration=c}b.creation=x()}op.K.f.call(this,a,b)};op.prototype.j=function(a,b){var c=op.K.j.call(this,a);if(c)if(!b&&pp(c))op.prototype.remove.call(this,a);else return c};function qp(a){this.c=a}z(qp,op);function rp(a,b){var c=[];Se(b,function(a){var b;try{b=qp.prototype.j.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}p(b)?pp(b)&&c.push(a):c.push(a)},a);return c}function sp(a,b){var c=rp(a,b);A(c,function(a){qp.prototype.remove.call(this,a)},a)}function tp(){var a=up;sp(a,a.c.va(!0))};function vp(a,b,c){var d=c&&0<c?c:0;c=d?x()+1E3*d:0;if((d=d?up:wp)&&window.JSON){u(b)||(b=JSON.stringify(b,void 0));try{d.f(a,b,c)}catch(e){d.remove(a)}}}function xp(a){if(!wp&&!up||!window.JSON)return null;var b;try{b=wp.get(a)}catch(c){}if(!u(b))try{b=up.get(a)}catch(d){}if(!u(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function yp(a){wp&&wp.remove(a);up&&up.remove(a)}var up,zp=new ip;up=zp.isAvailable()?new qp(zp):null;var wp,Ap=new jp;wp=Ap.isAvailable()?new qp(Ap):null;function Bp(a){this.port=this.j="";this.c="/api/lounge";this.f=!0;a=a||document.location.href;var b=Number(of(a)[4]||null)||null||"";b&&(this.port=":"+b);this.j=qf(a)||"";a=Mc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([d.]+)/)[1],0>Fa(a,"10.0")&&(this.f=!1))}function Cp(a,b,c,d){var e=a.c;if(p(d)?d:a.f)e="https://"+a.j+a.port+a.c;return yf(e+b,c||{})}
function Dp(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,R:w(a.A,d,!0),onError:w(a.l,e),nb:w(a.B,e)};c&&(a.$=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Jf(b,a)}Bp.prototype.A=function(a,b,c,d){b?a(d):a({text:c.responseText})};Bp.prototype.l=function(a,b){a(Error("Request error: "+b.status))};Bp.prototype.B=function(a){a(Error("request timed out"))};function Ep(a){a&&(this.id=a.id||"",this.name=a.name||"",this.c=a.activityId||"",this.status=a.status||"UNKNOWN")}Ep.prototype.id="";Ep.prototype.name="";Ep.prototype.c="";Ep.prototype.status="UNKNOWN";function Fp(a){return{id:a.id,name:a.name,activityId:a.c,status:a.status}}Ep.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.c+",status:"+this.status+"}"};function Gp(a){a=a||[];return"["+Pa(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Hp(){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)})}function Ip(a){return Pa(a,function(a){return Fp(a)})}function Jp(){return Pa(Ya,function(a){return new Ep(a)})}function Kp(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function Lp(a,b){return Ta(a,function(a){return a.id==b})}function Mp(a,b){return Ta(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}
function Np(a,b){return Ta(a,function(a){return Zo(a,b)})};function Op(a){Do.call(this);this.C=a;this.screens=[]}z(Op,Do);g=Op.prototype;g.ia=function(){return this.screens};g.contains=function(a){return!!Mp(this.screens,a)};g.get=function(a){return a?Np(this.screens,a):null};function Pp(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.screens.push(b);return!0}
function Qp(a,b){var c=a.screens.length!=b.length;a.screens=Oa(a.screens,function(a){return!!Mp(b,a)});for(var d=0,e=b.length;d<e;d++)c=Pp(a,b[d])||c;return c}function Rp(a,b){var c=a.screens.length;a.screens=Oa(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});return a.screens.length<c}g.info=function(a){Vo(this.C,a)};g.warn=function(a){Vo(this.C,a)};function Sp(a,b,c,d){Do.call(this);this.F=a;this.C=b;this.A=c;this.B=d;this.j=0;this.c=null;this.f=NaN}z(Sp,Do);var Tp=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g=Sp.prototype;g.start=function(){!this.c&&isNaN(this.f)&&this.Sc()};g.stop=function(){this.c&&(this.c.abort(),this.c=null);isNaN(this.f)||(M(this.f),this.f=NaN)};g.J=function(){this.stop();Sp.K.J.call(this)};
g.Sc=function(){this.f=NaN;this.c=Jf(Cp(this.F,"/pairing/get_screen"),{method:"POST",$:{pairing_code:this.C},timeout:5E3,R:v(this.Ie,this),onError:v(this.He,this),nb:v(this.Je,this)})};g.Ie=function(a,b){this.c=null;var c=b.screen||{};c.dialId=this.A;c.name=this.B;this.G("pairingComplete",new Yo(c))};
g.He=function(a){this.c=null;a.status&&404==a.status?this.j>=Tp.length?this.G("pairingFailed",Error("DIAL polling timed out")):(a=Tp[this.j],this.f=L(v(this.Sc,this),a),this.j++):this.G("pairingFailed",Error("Server error "+a.status))};g.Je=function(){this.c=null;this.G("pairingFailed",Error("Server not responding"))};var Up;function Vp(){var a=Wp(),b=Xp();Va(a,b);if(Yp()){var c=a,d;d=0;for(var e=c.length,f;d<e;){var h=d+e>>1,k;k=kb(b,c[h]);0<k?d=h+1:(e=h,f=!k)}d=f?d:~d;0>d&&fb(c,-(d+1),0,b)}a=Zp(a);if(Wa(a))try{Xg("remote_sid")}catch(l){}else try{Wg("remote_sid",a.join(","),-1,"/")}catch(n){}}function Wp(){var a=xp("yt-remote-connected-devices")||[];a.sort(kb);return a}
function Zp(a){if(Wa(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return Pa(a,function(a,b){return 0==b?a:a.substring(c.length)})}function $p(a){vp("yt-remote-connected-devices",a,86400)}function Xp(){if(aq)return aq;var a=xp("yt-remote-device-id");a||(a=Hp(),vp("yt-remote-device-id",a,31536E3));for(var b=Wp(),c=1,d=a;Va(b,d);)c++,d=a+"#"+c;return aq=d}function bq(){return xp("yt-remote-session-browser-channel")}function Yp(){return xp("yt-remote-session-screen-id")}
function cq(a){5<a.length&&(a=a.slice(a.length-5));var b=Pa(dq(),function(a){return a.loungeToken}),c=Pa(a,function(a){return a.loungeToken});Sa(c,function(a){return!Va(b,a)})&&eq();vp("yt-remote-local-screens",a,31536E3)}function dq(){return xp("yt-remote-local-screens")||[]}function eq(){vp("yt-remote-lounge-token-expiration",!0,86400)}function fq(){return!xp("yt-remote-lounge-token-expiration")}function gq(a){vp("yt-remote-online-screens",a,60)}
function hq(){return xp("yt-remote-online-screens")||[]}function iq(a){vp("yt-remote-online-dial-devices",a,30)}function jq(a,b){vp("yt-remote-session-browser-channel",a);vp("yt-remote-session-screen-id",b);var c=Wp(),d=Xp();Va(c,d)||c.push(d);$p(c);Vp()}function kq(a){a||(yp("yt-remote-session-screen-id"),yp("yt-remote-session-video-id"));Vp();a=Wp();$a(a,Xp());$p(a)}
function lq(){if(!Up){var a;a=new ip;(a=a.isAvailable()?a:null)&&(Up=new kp(a))}return Up?!!Up.get("yt-remote-use-staging-server"):!1}var aq="";function mq(a){Op.call(this,"LocalScreenService");this.f=a;this.c=NaN;nq(this);this.info("Initializing with "+ep(this.screens))}z(mq,Op);g=mq.prototype;g.start=function(){nq(this)&&this.G("screenChange");fq()&&oq(this);M(this.c);this.c=L(v(this.start,this),1E4)};g.add=function(a,b){nq(this);Pp(this,a);pq(this,!1);this.G("screenChange");b(a);a.token||oq(this)};g.remove=function(a,b){var c=nq(this);Rp(this,a)&&(pq(this,!1),c=!0);b(a);c&&this.G("screenChange")};
g.Jb=function(a,b,c,d){var e=nq(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,pq(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.G("screenChange")};g.J=function(){M(this.c);mq.K.J.call(this)};function oq(a){if(a.screens.length){var b=Pa(a.screens,function(a){return a.id}),c=Cp(a.f,"/pairing/get_lounge_token_batch");Dp(a.f,c,{screen_ids:b.join(",")},v(a.yd,a),v(a.xd,a))}}
g.yd=function(a){nq(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)}pq(this,!b);b&&this.warn("Missed "+b+" lounge tokens.")};g.xd=function(a){this.warn("Requesting lounge tokens failed: "+a)};function nq(a){var b=cp(dq()),b=Oa(b,function(a){return!a.uuid});return Qp(a,b)}function pq(a,b){cq(Pa(a.screens,ap));b&&eq()};function qq(a,b){Do.call(this);this.B=b;for(var c=xp("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.B(),f=0,h=e.length;f<h;++f){var k=e[f].id;d[k]=Va(c,k)}this.c=d;this.C=a;this.j=this.A=NaN;this.f=null;rq("Initialized with "+ff(this.c))}z(qq,Do);g=qq.prototype;g.start=function(){var a=parseInt(xp("yt-remote-fast-check-period")||"0",10);(this.A=x()-144E5<a?0:a)?sq(this):(this.A=x()+3E5,vp("yt-remote-fast-check-period",this.A),this.dc())};g.isEmpty=function(){return Ab(this.c)};
g.update=function(){rq("Updating availability on schedule.");var a=this.B(),b=sb(this.c,function(b,d){return b&&!!Np(a,d)},this);tq(this,b)};function uq(a,b,c){var d=Cp(a.C,"/pairing/get_screen_availability");Dp(a.C,d,{lounge_token:b.token},v(function(a){a=a.screens||[];for(var d=0,h=a.length;d<h;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),v(function(){c(!1)},a))}g.J=function(){M(this.j);this.j=NaN;this.f&&(this.f.abort(),this.f=null);qq.K.J.call(this)};
function tq(a,b){var c;a:if(tb(b)!=tb(a.c))c=!1;else{c=xb(b);for(var d=0,e=c.length;d<e;++d)if(!a.c[c[d]]){c=!1;break a}c=!0}c||(rq("Updated online screens: "+ff(a.c)),a.c=b,a.G("screenChange"));vq(a)}function sq(a){isNaN(a.j)||M(a.j);a.j=L(v(a.dc,a),0<a.A&&a.A<x()?2E4:1E4)}
g.dc=function(){M(this.j);this.j=NaN;this.f&&this.f.abort();var a=wq(this);if(tb(a)){var b=Cp(this.C,"/pairing/get_screen_availability"),c={lounge_token:xb(a).join(",")};this.f=Dp(this.C,b,c,v(this.ee,this,a),v(this.de,this))}else tq(this,{}),sq(this)};g.ee=function(a,b){this.f=null;var c=xb(wq(this));if(hb(c,xb(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;tq(this,d);sq(this)}else this.O("Changing Screen set during request."),this.dc()};
g.de=function(a){this.O("Screen availability failed: "+a);this.f=null;sq(this)};function rq(a){Vo("OnlineScreenService",a)}g.O=function(a){Vo("OnlineScreenService",a)};function wq(a){var b={};A(a.B(),function(a){a.token?b[a.token]=a.id:this.O("Requesting availability of screen w/o lounge token.")});return b}
function vq(a){var b=xb(sb(a.c,function(a){return a}));b.sort(kb);b.length?vp("yt-remote-online-screen-ids",b.join(","),60):yp("yt-remote-online-screen-ids");a=Oa(a.B(),function(a){return!!this.c[a.id]},a);gq(Pa(a,ap))};function W(a){Op.call(this,"ScreenService");this.B=a;this.c=this.f=null;this.j=[];this.A={};xq(this)}z(W,Op);g=W.prototype;g.start=function(){this.f.start();this.c.start();this.screens.length&&(this.G("screenChange"),this.c.isEmpty()||this.G("onlineScreenChange"))};g.add=function(a,b,c){this.f.add(a,b,c)};g.remove=function(a,b,c){this.f.remove(a,b,c);this.c.update()};g.Jb=function(a,b,c,d){this.f.contains(a)?this.f.Jb(a,b,c,d):(a="Updating name of unknown screen: "+a.name,this.warn(a),d(Error(a)))};
g.ia=function(a){return a?this.screens:cb(this.screens,Oa(this.j,function(a){return!this.contains(a)},this))};g.cd=function(){return Oa(this.ia(!0),function(a){return!!this.c.c[a.id]},this)};
function yq(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.A[b]);var h=a.ia();if(h=(c?Np(h,c):null)||Np(h,b)){h.uuid=b;var k=zq(a,h);uq(a.c,k,function(a){e(a?k:null)})}else c?Aq(a,c,v(function(a){var f=zq(this,new Yo({name:d,screenId:c,loungeToken:a,dialId:b||""}));uq(this.c,f,function(a){e(a?f:null)})},a),f):e(null)}
g.ed=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new Sp(this.B,a,b,c);f.subscribe("pairingComplete",v(function(a){bc(f);d(zq(this,a))},this));f.subscribe("pairingFailed",function(a){bc(f);e(a)});f.start();return v(f.stop,f)};function Bq(a,b){for(var c=0,d=a.screens.length;c<d;++c)if(a.screens[c].name==b)return a.screens[c];return null}g.Bc=function(a,b){for(var c=2,d=b(a,c);Bq(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
g.Le=function(a,b,c,d){Jf(Cp(this.B,"/pairing/get_screen"),{method:"POST",$:{pairing_code:a},timeout:5E3,R:v(function(a,d){var h=new Yo(d.screen||{});if(!h.name||Bq(this,h.name))h.name=this.Bc(h.name,b);c(zq(this,h))},this),onError:v(function(a){d(Error("pairing request failed: "+a.status))},this),nb:v(function(){d(Error("pairing request timed out."))},this)})};g.J=function(){bc(this.f);bc(this.c);W.K.J.call(this)};
function Aq(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={$:{screen_ids:b},method:"POST",context:a,R:function(a,e){var k=e&&e.screens||[];k[0]&&k[0].screenId==b?c(k[0].loungeToken):d(Error("Missing lounge token in token response"))},onError:function(){d(Error("Request screen lounge token failed"))}};Jf(Cp(a.B,"/pairing/get_lounge_token_batch"),e)}
function Cq(a){a.screens=a.f.ia();var b=a.A,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+ep(a.screens))}g.zd=function(){Cq(this);this.G("screenChange");this.c.update()};
function xq(a){Dq(a);a.f=new mq(a.B);a.f.subscribe("screenChange",v(a.zd,a));Cq(a);a.j=cp(xp("yt-remote-automatic-screen-cache")||[]);Dq(a);a.info("Initializing automatic screens: "+ep(a.j));a.c=new qq(a.B,v(a.ia,a,!0));a.c.subscribe("screenChange",v(function(){this.G("onlineScreenChange")},a))}
function zq(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=Np(a.j,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.j.push(b),vp("yt-remote-automatic-screen-cache",Pa(a.j,ap)));Dq(a);a.A[b.uuid]=b.id;vp("yt-remote-device-id-map",a.A,31536E3);return b}function Dq(a){a.A=xp("yt-remote-device-id-map")||{}}W.prototype.dispose=W.prototype.dispose;function Eq(a,b,c){Do.call(this);this.T=c;this.L=a;this.f=b;this.j=null}z(Eq,Do);function Fq(a,b){a.j=b;a.G("sessionScreen",a.j)}g=Eq.prototype;g.ea=function(a){this.isDisposed()||(a&&this.warn(""+a),this.j=null,this.G("sessionScreen",null))};g.info=function(a){Vo(this.T,a)};g.warn=function(a){Vo(this.T,a)};g.gd=function(){return null};
g.fc=function(a){var b=this.f;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,v(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),v(function(){this.warn("Failed to update receiver status for: "+b.friendlyName)},this))};g.J=function(){this.fc("");Eq.K.J.call(this)};function Gq(a,b){Eq.call(this,a,b,"CastSession");this.c=null;this.B=0;this.A=null;this.F=v(this.Me,this);this.C=v(this.me,this);this.B=L(v(function(){Hq(this,null)},this),12E4)}z(Gq,Eq);g=Gq.prototype;
g.ec=function(a){if(this.c){if(this.c==a)return;this.warn("Overriding cast sesison with new session object");this.c.removeUpdateListener(this.F);this.c.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C)}this.c=a;this.c.addUpdateListener(this.F);this.c.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.C);this.A&&Iq(this);Jq(this,"getMdxSessionStatus")};g.$a=function(a){this.info("launchWithParams: "+ff(a));this.A=a;this.c&&Iq(this)};
g.stop=function(){this.c?this.c.stop(v(function(){this.ea()},this),v(function(){this.ea(Error("Failed to stop receiver app."))},this)):this.ea(Error("Stopping cast device witout session."))};g.fc=t;g.J=function(){this.info("disposeInternal");M(this.B);this.B=0;this.c&&(this.c.removeUpdateListener(this.F),this.c.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C));this.c=null;Gq.K.J.call(this)};
function Iq(a){var b=a.A.videoId||a.A.videoIds[a.A.index];b&&Jq(a,"flingVideo",{videoId:b,currentTime:a.A.currentTime||0});a.A=null}function Jq(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+ff(c));var d={};d.type=b;c&&(d.data=c);a.c?a.c.sendMessage("urn:x-cast:com.google.youtube.mdx",d,t,v(function(){this.warn("Failed to send message: "+b+".")},a)):a.warn("Sending yt message without session: "+ff(d))}
g.me=function(a,b){if(!this.isDisposed())if(b){var c=ef(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+ff(c));switch(d){case "mdxSessionStatus":Hq(this,c.screenId);break;default:this.warn("Unknown youtube message: "+d)}}else this.warn("Unable to parse message.")}else this.warn("No data in message.")};
function Hq(a,b){M(a.B);b?(a.info("onConnectedScreenId_: Received screenId: "+b),a.j&&a.j.id==b||yq(a.L,a.f.label,b,a.f.friendlyName,v(function(a){a?Fq(this,a):this.ea(Error("Unable to fetch screen."))},a),v(a.ea,a))):a.ea(Error("Waiting for session status timed out."))}g.gd=function(){return this.c};g.Me=function(a){this.isDisposed()||a||(this.warn("Cast session died."),this.ea())};function Kq(a,b){Eq.call(this,a,b,"DialSession");this.B=this.H=null;this.N="";this.A=null;this.F=t;this.C=NaN;this.S=v(this.Oe,this);this.c=t}z(Kq,Eq);g=Kq.prototype;g.ec=function(a){this.B=a;this.B.addUpdateListener(this.S)};g.$a=function(a){this.A=a;this.F()};g.stop=function(){this.c();this.c=t;M(this.C);this.B?this.B.stop(v(this.ea,this,null),v(this.ea,this,"Failed to stop DIAL device.")):this.ea()};
g.J=function(){this.c();this.c=t;M(this.C);this.B&&this.B.removeUpdateListener(this.S);this.B=null;Kq.K.J.call(this)};function Lq(a){a.c=a.L.ed(a.N,a.f.label,a.f.friendlyName,v(function(a){this.c=t;Fq(this,a)},a),v(function(a){this.c=t;this.ea(a)},a))}g.Oe=function(a){this.isDisposed()||a||(this.warn("DIAL session died."),this.c(),this.c=t,this.ea())};
function Mq(a){var b={};b.pairingCode=a.N;if(a.A){var c=a.A.index||0,d=a.A.currentTime||0;b.v=a.A.videoId||a.A.videoIds[c];b.t=d}lq()&&(b.env_useStageMdx=1);return xf(b)}g.Yb=function(a){this.N=Hp();if(this.A){var b=new chrome.cast.DialLaunchResponse(!0,Mq(this));a(b);Lq(this)}else this.F=v(function(){M(this.C);this.F=t;this.C=NaN;var b=new chrome.cast.DialLaunchResponse(!0,Mq(this));a(b);Lq(this)},this),this.C=L(v(function(){this.F()},this),100)};
g.Dd=function(a,b){yq(this.L,this.H.receiver.label,a,this.f.friendlyName,v(function(a){a&&a.token?(Fq(this,a),b(new chrome.cast.DialLaunchResponse(!1))):this.Yb(b)},this),v(function(a){this.warn("Failed to get DIAL screen: "+a);this.Yb(b)},this))};function Nq(a,b){Eq.call(this,a,b,"ManualSession");this.c=L(v(this.$a,this,null),150)}z(Nq,Eq);Nq.prototype.stop=function(){this.ea()};Nq.prototype.ec=t;Nq.prototype.$a=function(){M(this.c);this.c=NaN;var a=Np(this.L.ia(),this.f.label);a?Fq(this,a):this.ea(Error("No such screen"))};Nq.prototype.J=function(){M(this.c);this.c=NaN;Nq.K.J.call(this)};function Oq(a){Do.call(this);this.f=a;this.c=null;this.B=!1;this.j=[];this.A=v(this.be,this)}z(Oq,Do);g=Oq.prototype;
g.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest("233637DE");c.dialRequest=new chrome.cast.DialRequest("YouTube");var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new chrome.cast.ApiConfig(c,v(this.Mc,this),v(this.ce,this),d,e);c.customDialLaunchCallback=v(this.Pd,this);chrome.cast.initialize(c,v(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.A),
So(Pq),this.f.subscribe("onlineScreenChange",v(this.fd,this)),this.j=Qq(this),chrome.cast.setCustomReceivers(this.j,t,v(function(a){this.O("Failed to set initial custom receivers: "+ff(a))},this)),this.G("yt-remote-cast2-availability-change",Rq(this)),b(!0))},this),function(a){this.O("Failed to initialize API: "+ff(a));b(!1)})};
g.ue=function(a,b){Sq("Setting connected screen ID: "+a+" -> "+b);if(this.c){var c=this.c.j;if(!a||c&&c.id!=a)Sq("Unsetting old screen status: "+this.c.f.friendlyName),bc(this.c),this.c=null}if(a&&b){if(!this.c){c=Np(this.f.ia(),a);if(!c){Sq("setConnectedScreenStatus: Unknown screen.");return}var d=Tq(this,c);d||(Sq("setConnectedScreenStatus: Connected receiver not custom..."),d=new chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM,this.j.push(d),chrome.cast.setCustomReceivers(this.j,
t,v(function(a){this.O("Failed to set initial custom receivers: "+ff(a))},this)));Sq("setConnectedScreenStatus: new active receiver: "+d.friendlyName);Uq(this,new Nq(this.f,d),!0)}this.c.fc(b)}else Sq("setConnectedScreenStatus: no screen.")};function Tq(a,b){return b?Ta(a.j,function(a){return Zo(b,a.label)},a):null}g.ve=function(a){this.isDisposed()?this.O("Setting connection data on disposed cast v2"):this.c?this.c.$a(a):this.O("Setting connection data without a session")};
g.stopSession=function(){this.isDisposed()?this.O("Stopping session on disposed cast v2"):this.c?(this.c.stop(),bc(this.c),this.c=null):Sq("Stopping non-existing session")};g.requestSession=function(){chrome.cast.requestSession(v(this.Mc,this),v(this.fe,this))};g.J=function(){this.f.unsubscribe("onlineScreenChange",v(this.fd,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.A);var a=Pq,b=r("yt.mdx.remote.debug.handlers_");$a(b||[],a);bc(this.c);Oq.K.J.call(this)};
function Sq(a){Vo("Controller",a)}g.O=function(a){Vo("Controller",a)};function Pq(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)}function Rq(a){return a.B||!!a.j.length||!!a.c}function Uq(a,b,c){bc(a.c);(a.c=b)?(c?a.G("yt-remote-cast2-receiver-resumed",b.f):a.G("yt-remote-cast2-receiver-selected",b.f),b.subscribe("sessionScreen",v(a.Nc,a,b)),b.j?a.G("yt-remote-cast2-session-change",b.j):c&&a.c.$a(null)):a.G("yt-remote-cast2-session-change",null)}
g.Nc=function(a,b){this.c==a&&(b||Uq(this,null),this.G("yt-remote-cast2-session-change",b))};
g.be=function(a,b){if(!this.isDisposed())if(a)switch(Sq("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.c)if(this.c.f.label!=a.label)Sq("onReceiverAction_: Stopping active receiver: "+this.c.f.friendlyName),this.c.stop();else{Sq("onReceiverAction_: Casting to active receiver.");this.c.j&&this.G("yt-remote-cast2-session-change",this.c.j);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:Uq(this,new Nq(this.f,a));break;case chrome.cast.ReceiverType.DIAL:Uq(this,
new Kq(this.f,a));break;case chrome.cast.ReceiverType.CAST:Uq(this,new Gq(this.f,a));break;default:this.O("Unknown receiver type: "+a.receiverType);return}break;case chrome.cast.ReceiverAction.STOP:this.c&&this.c.f.label==a.label?this.c.stop():this.O("Stopping receiver w/o session: "+a.friendlyName)}else this.O("onReceiverAction_ called without receiver.")};
g.Pd=function(a){if(this.isDisposed())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.O("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.c?this.c.f:null;if(!c||c.label!=b.label)return this.O("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.c.j)return Sq("Reselecting dial screen."),
this.G("yt-remote-cast2-session-change",this.c.j),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.O('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);Uq(this,new Kq(this.f,b))}b=this.c;b.H=a;return b.H.appState==chrome.cast.DialAppState.RUNNING?new Promise(v(b.Dd,b,(b.H.extraData||{}).screenId||null)):new Promise(v(b.Yb,b))};
g.Mc=function(a){if(!this.isDisposed()){Sq("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.c)if(b.receiverType==chrome.cast.ReceiverType.CAST)Sq("Got resumed cast session before resumed mdx connection."),Uq(this,new Gq(this.f,b),!0);else{this.O("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.c.f,d=Np(this.f.ia(),c.label);d&&Zo(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&
b.receiverType==chrome.cast.ReceiverType.CAST&&(Sq("onSessionEstablished_: manual to cast session change "+b.friendlyName),bc(this.c),this.c=new Gq(this.f,b),this.c.subscribe("sessionScreen",v(this.Nc,this,this.c)),this.c.$a(null));this.c.ec(a)}}};g.Ne=function(){return this.c?this.c.gd():null};g.fe=function(a){this.isDisposed()||(this.O("Failed to estabilish a session: "+ff(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&Uq(this,null))};
g.ce=function(a){Sq("Receiver availability updated: "+a);if(!this.isDisposed()){var b=Rq(this);this.B=a==chrome.cast.ReceiverAvailability.AVAILABLE;Rq(this)!=b&&this.G("yt-remote-cast2-availability-change",Rq(this))}};
function Qq(a){var b=a.f.cd(),c=a.c&&a.c.f;a=Pa(b,function(a){c&&Zo(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,f=Tq(this,a);f?(f.label=b,f.friendlyName=a.name):(f=new chrome.cast.Receiver(b,a.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}
g.fd=function(){if(!this.isDisposed()){var a=Rq(this);this.j=Qq(this);Sq("Updating custom receivers: "+ff(this.j));chrome.cast.setCustomReceivers(this.j,t,v(function(){this.O("Failed to set custom receivers.")},this));var b=Rq(this);b!=a&&this.G("yt-remote-cast2-availability-change",b)}};Oq.prototype.setLaunchParams=Oq.prototype.ve;Oq.prototype.setConnectedScreenStatus=Oq.prototype.ue;Oq.prototype.stopSession=Oq.prototype.stopSession;Oq.prototype.getCastSession=Oq.prototype.Ne;
Oq.prototype.requestSession=Oq.prototype.requestSession;Oq.prototype.init=Oq.prototype.init;Oq.prototype.dispose=Oq.prototype.dispose;function Vq(a,b,c){Wq()?Yq(a)&&(Zq(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?$q(b):(window.__onGCastApiAvailable=function(a,c){a?$q(b):(ar("Failed to load cast API: "+c),br(!1),Zq(!1),yp("yt-remote-cast-available"),yp("yt-remote-cast-receiver"),cr(),b(!1))},c?vc("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):Mo())):Xq("Cannot initialize because not running Chrome")}
function cr(){Xq("dispose");var a=dr();a&&a.dispose();er=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);fr(!1);rc(gr);gr.length=0}function hr(){Xq("clearCurrentReciever");yp("yt-remote-cast-receiver")}function ir(){return xp("yt-remote-cast-installed")?dr()?er.getCastSession():(ar("getCastSelector: Cast is not initialized."),null):(ar("getCastSelector: Cast API is not installed!"),null)}
function jr(a,b){kr()?dr().setConnectedScreenStatus(a,b):ar("setConnectedScreenStatus called before ready.")}var er=null;function Wq(){var a;a=0<=Mc.search(/ (CrMo|Chrome|CriOS)//);return Bi||a}function lr(a){er.init(!1,a)}
function Yq(a){var b=!1;if(!er){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new Oq(a),c.subscribe("yt-remote-cast2-availability-change",function(a){vp("yt-remote-cast-available",a);O("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){Xq("onReceiverSelected: "+a.friendlyName);vp("yt-remote-cast-receiver",a);O("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){Xq("onReceiverResumed: "+a.friendlyName);
vp("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){Xq("onSessionChange: "+dp(a));a||yp("yt-remote-cast-receiver");O("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);er=c}Xq("cloudview.createSingleton_: "+b);return b}function dr(){er||(er=r("yt.mdx.remote.cloudview.instance_"));return er}
function $q(a){br(!0);Zq(!1);lr(function(b){b?(fr(!0),O("yt-remote-cast2-api-ready")):(ar("Failed to initialize cast API."),br(!1),yp("yt-remote-cast-available"),yp("yt-remote-cast-receiver"),cr());a(b)})}function Xq(a){Vo("cloudview",a)}function ar(a){Vo("cloudview",a)}function br(a){Xq("setCastInstalled_ "+a);vp("yt-remote-cast-installed",a)}function kr(){return!!r("yt.mdx.remote.cloudview.apiReady_")}function fr(a){Xq("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)}
function Zq(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}var gr=[];function mr(a){this.reset(a)}function nr(a,b){if(a.f)throw Error(b+" is not allowed in V3.");}function or(a){a.volume=-1;a.j=!1;a.A=null;a.c=-1;a.l=null;a.B=0;a.C=x()}g=mr.prototype;g.reset=function(a){this.videoIds=[];this.f="";pr(this);a&&(this.videoIds=a.videoIds,this.index=a.index,this.f=a.listId,this.videoId=a.videoId,this.c=a.playerState,this.l=a.errorReason,this.volume=a.volume,this.j=a.muted,this.A=a.trackData,this.B=a.playerTime,this.C=a.playerTimeAt)};
function pr(a){a.index=-1;a.videoId="";or(a)}function qr(a){return a.f?a.videoId:a.videoIds[a.index]}function rr(a,b){a.B=b;a.C=x()}function sr(a){switch(a.c){case 1:return(x()-a.C)/1E3+a.B;case -1E3:return 0}return a.B}g.setVideoId=function(a){nr(this,"setVideoId");var b=this.index;this.index=Ma(this.videoIds,a);b!=this.index&&or(this);return-1!=b};function tr(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&or(a)}
function ur(a,b,c){nr(a,"setPlaylist");c=c||qr(a);hb(a.videoIds,b)&&c==qr(a)||(a.videoIds=db(b),a.setVideoId(c))}g.add=function(a){nr(this,"add");return a&&!Va(this.videoIds,a)?(this.videoIds.push(a),!0):!1};g.remove=function(a){nr(this,"remove");var b=qr(this);return $a(this.videoIds,a)?(this.index=Ma(this.videoIds,b),!0):!1};
function vr(a){var b={};b.videoIds=db(a.videoIds);b.index=a.index;b.listId=a.f;b.videoId=a.videoId;b.playerState=a.c;b.errorReason=a.l;b.volume=a.volume;b.muted=a.j;b.trackData=Db(a.A);b.playerTime=a.B;b.playerTimeAt=a.C;return b}g.clone=function(){return new mr(vr(this))};function wr(a,b){Do.call(this);this.c=0;this.A=a;this.F=[];this.C=new Eo;this.B=NaN;this.j=this.f=null;this.N=v(this.Hd,this);this.H=v(this.mb,this);this.L=v(this.Gd,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.hc,this),xr(this))):c=3;0!=c&&(b?this.hc(c):L(v(function(){this.hc(c)},this),0));yr(this,ir())}z(wr,Do);function zr(a){return new mr(a.A.getPlayerContextData())}g=wr.prototype;
g.play=function(){1==this.c?(this.f?this.f.play(null,t,v(function(){this.O("Failed to play video with cast v2 channel.");Ar(this,"play")},this)):Ar(this,"play"),Br(this,1,sr(zr(this))),Cr(this)):Dr(this,this.play)};g.pause=function(){1==this.c?(this.f?this.f.pause(null,t,v(function(){this.O("Failed to pause video with cast v2 channel.");Ar(this,"pause")},this)):Ar(this,"pause"),Br(this,2,sr(zr(this))),Cr(this)):Dr(this,this.pause)};
g.stop=function(){if(1==this.c){this.f?this.f.stop(null,t,v(function(){this.O("Failed to stop video with cast v2 channel.");Ar(this,"stopVideo")},this)):Ar(this,"stopVideo");var a=zr(this);pr(a);Er(this,a);Cr(this)}else Dr(this,this.stop)};g.pc=function(a){1==this.c?Ar(this,"addVideos",{listId:a}):Dr(this,w(this.pc,a))};g.Wc=function(a){if(1==this.c){Ar(this,"removeVideo",{videoId:a});var b=zr(this);b.f||(b.remove(a),Er(this,b))}else Dr(this,w(this.Wc,a))};
g.Hc=function(a,b,c){1==this.c?Ar(this,"moveVideo",{videoId:a,delta:(b>=c?c:c-1)-b}):Dr(this,w(this.Hc,a,b,c))};g.Ec=function(a){1==this.c?Ar(this,"insertVideo",{videoId:a}):Dr(this,w(this.Ec,a))};function Fr(a,b,c,d,e){var f=zr(a);d=d||0;var h={videoId:b,currentIndex:d,listId:e||f.f};tr(f,b,d);p(c)&&(rr(f,c),h.currentTime=c);Ar(a,"setPlaylist",h);e||Er(a,f)}g.Uc=function(a,b){if(1==this.c){var c=zr(this);tr(c,a,b);Ar(this,"previous");Er(this,c)}else Dr(this,w(this.Uc,a,b))};
g.bd=function(a,b){if(1==this.c){var c=zr(this);tr(c,a,b);Ar(this,"next");Er(this,c)}else Dr(this,w(this.bd,a,b))};g.yc=function(){if(1==this.c){Ar(this,"clearPlaylist");var a=zr(this);a.reset();Er(this,a);Cr(this)}else Dr(this,this.yc)};g.dispose=function(){if(3!=this.c){var a=this.c;this.c=3;this.G("proxyStateChange",a,this.c)}wr.K.dispose.call(this)};g.J=function(){M(this.B);this.B=NaN;Gr(this);this.A=null;this.C.clear();yr(this,null);wr.K.J.call(this)};
function xr(a){A(["remotePlayerChange","remoteQueueChange"],function(a){this.F.push(this.A.subscribe(a,w(this.Vd,a),this))},a)}function Gr(a){A(a.F,function(a){this.A.unsubscribeByKey(a)},a);a.F.length=0}function Dr(a,b){50>a.C.Z()&&a.C.f.push(b)}function Br(a,b,c){var d=zr(a);rr(d,c);-1E3!=d.c&&(d.c=b);Er(a,d)}function Ar(a,b,c){a.A.sendMessage(b,c)}function Er(a,b){Gr(a);a.A.setPlayerContextData(vr(b));xr(a)}
g.hc=function(a){if((a!=this.c||2==a)&&3!=this.c&&0!=a){var b=this.c;this.c=a;this.G("proxyStateChange",b,a);if(1==a)for(;!this.C.isEmpty();)b=a=this.C,Wa(b.c)&&(b.c=b.f,b.c.reverse(),b.f=[]),a.c.pop().apply(this);else 3==a&&this.dispose()}};function Cr(a){M(a.B);a.B=L(v(function(){this.G("remotePlayerChange");this.B=NaN},a),2E3)}g.Vd=function(a){("remotePlayerChange"!=a||isNaN(this.B))&&this.G(a)};
function yr(a,b){a.j&&(a.j.removeUpdateListener(a.N),a.j.removeMediaListener(a.H),a.mb(null));a.j=b;a.j&&(Vo("CP","Setting cast session: "+a.j.sessionId),a.j.addUpdateListener(a.N),a.j.addMediaListener(a.H),a.j.media.length&&a.mb(a.j.media[0]))}
g.Hd=function(a){if(!a)this.mb(null),yr(this,null);else if(this.j.receiver.volume){a=this.j.receiver.volume;var b=zr(this);if(b.volume!=a.level||b.j!=a.muted)Vo("CP","Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.j=!!a.muted,Er(this,b),Cr(this)}};g.mb=function(a){Vo("CP","Cast media: "+!!a);this.f&&this.f.removeUpdateListener(this.L);if(this.f=a)this.f.addUpdateListener(this.L),Hr(this),Cr(this)};
function Hr(a){var b=a.f.customData;if(a.f.media){var c=a.f.media,d=zr(a);c.contentId!=d.videoId&&Vo("CP","Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.c=b.playerState;rr(d,a.f.getEstimatedTime());Er(a,d)}else Vo("CP","No cast media video. Ignoring state update.")}g.Gd=function(a){a?(Hr(this),Cr(this)):this.mb(null)};g.O=function(a){Vo("CP",a)};function X(a,b,c){Do.call(this);this.W=a;this.F=[];this.F.push(T(window,"beforeunload",v(this.wd,this)));this.f=[];this.D=new mr;3==c["mdx-version"]&&(this.D.f="RQ"+b.token);this.H=b.id;this.c=Ir(this,c);this.c.subscribe("handlerOpened",this.Md,this);this.c.subscribe("handlerClosed",this.Id,this);this.c.subscribe("handlerError",this.Jd,this);this.D.f?this.c.subscribe("handlerMessage",this.Kd,this):this.c.subscribe("handlerMessage",this.Ld,this);Co(this.c,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.D.videoId;Yp()&&vp("yt-remote-session-video-id",a)},this)}z(X,Do);g=X.prototype;g.gb=NaN;g.cc=!1;g.Hb=NaN;g.bc=NaN;g.vb=NaN;g.Bb=NaN;
function Jr(a,b){var c=r("yt.mdx.remote.connectData_");if(c){if(a.D.f){var d=c.listId,e=c.videoId,f=c.index,c=c.currentTime||0;5>=c&&(c=0);h={videoId:e,currentTime:c};d&&(h.listId=d);p(f)&&(h.currentIndex=f);d&&(a.D.f=d);a.D.videoId=e;a.D.index=f||0}else{var e=c.videoIds[c.index],c=c.currentTime||0;5>=c&&(c=0);var h={videoIds:e,videoId:e,currentTime:c};a.D.videoIds=[e];a.D.index=0}a.D.state=3;rr(a.D,c);a.M("Connecting with setPlaylist and params: "+ff(h));Bo(a.c,{method:"setPlaylist",params:ff(h)},
b,bq())}else a.M("Connecting without params"),Bo(a.c,{},b,bq());Kr(a)}g.dispose=function(){this.isDisposed()||(this.G("beforeDispose"),Lr(this,3));X.K.dispose.call(this)};g.J=function(){Mr(this);Nr(this);Or(this);M(this.vb);this.vb=NaN;M(this.Bb);this.Bb=NaN;this.A=null;Ge(this.F);this.F.length=0;this.c.dispose();X.K.J.call(this);this.f=this.D=this.c=null};g.M=function(a){Vo("conn",a)};g.wd=function(){this.j(2)};function Ir(a,b){return new yo(Cp(a.W,"/bc",void 0,!1),b)}
function Lr(a,b){a.G("proxyStateChange",b)}function Kr(a){a.gb=L(v(function(){this.M("Connecting timeout");this.j(1)},a),2E4)}function Mr(a){M(a.gb);a.gb=NaN}function Or(a){M(a.Hb);a.Hb=NaN}function Pr(a){Nr(a);a.bc=L(v(function(){Qr(this,"getNowPlaying")},a),2E4)}function Nr(a){M(a.bc);a.bc=NaN}function Rr(a){var b=a.c;return!!b.c&&3==b.c.c&&isNaN(a.gb)}
g.Md=function(){this.M("Channel opened");this.cc&&(this.cc=!1,Or(this),this.Hb=L(v(function(){this.M("Timing out waiting for a screen.");this.j(1)},this),15E3));jq(Ao(this.c),this.H)};g.Id=function(){this.M("Channel closed");isNaN(this.gb)?kq(!0):kq();this.dispose()};g.Jd=function(a){kq();isNaN(this.B())?(this.M("Channel error: "+a+" without reconnection"),this.dispose()):(this.cc=!0,this.M("Channel error: "+a+" with reconnection in "+this.B()+" ms"),Lr(this,2))};
function Sr(a,b){b&&(Mr(a),Or(a));b==Rr(a)?b&&(Lr(a,1),Qr(a,"getSubtitlesTrack")):b?(a.C()&&a.D.reset(),Lr(a,1),Qr(a,"getNowPlaying"),Tr(a)):a.j(1)}function Ur(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.D.videoId&&(Ab(b.params)?a.D.A=null:a.D.A=b.params,a.G("remotePlayerChange"))}function Vr(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.D.f=b.params.listId||a.D.f;tr(a.D,c,d);a.G("remoteQueueChange")}
function Wr(a,b){b.params=b.params||{};Vr(a,b);Xr(a,b)}function Xr(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);rr(a.D,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.D.c&&(c=-1E3);a.D.c=c;var d=null;-1E3==c&&(d=a.D.l||"unknown",p(b.params.currentError)&&(d=df(b.params.currentError).reason||d));a.D.l=d;1==a.D.c?Pr(a):Nr(a);a.G("remotePlayerChange")}
function Yr(a,b){var c="true"==b.params.muted;a.D.volume=parseInt(b.params.volume,10);a.D.j=c;a.G("remotePlayerChange")}
g.Kd=function(a){a.params?this.M("Received: action="+a.action+", params="+ff(a.params)):this.M("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=df(a.params.devices);this.f=Pa(a,function(a){return new vm(a)});a=!!Ta(this.f,function(a){return"LOUNGE_SCREEN"==a.type});Sr(this,a);break;case "loungeScreenConnected":Sr(this,!0);break;case "loungeScreenDisconnected":bb(this.f,function(a){return"LOUNGE_SCREEN"==a.type});Sr(this,!1);break;case "remoteConnected":var b=new vm(df(a.params.device));
Ta(this.f,function(a){return a.equals(b)})||Za(this.f,b);break;case "remoteDisconnected":b=new vm(df(a.params.device));bb(this.f,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":Vr(this,a);break;case "nowPlaying":Wr(this,a);break;case "onStateChange":Xr(this,a);break;case "onVolumeChanged":Yr(this,a);break;case "onSubtitlesTrackChanged":Ur(this,a);break;default:this.M("Unrecognized action: "+a.action)}};
g.Ld=function(a){a.params?this.M("Received: action="+a.action+", params="+ff(a.params)):this.M("Received: action="+a.action);Zr(this,a);$r(this,a);if(Rr(this)){var b=this.D.clone(),c=!1,d,e,f,h,k,l,n;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,f=a.params.state,h=a.params.currentTime||a.params.current_time,k=a.params.volume,l=a.params.muted,p(a.params.currentError)&&(n=df(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==qr(this.D)&&(delete a.params.videoId,
Ab(a.params)?this.D.A=null:this.D.A=a.params,this.G("remotePlayerChange"));else if(qr(this.D)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=qr(this.D)):this.D.setVideoId(""),e&&(e=e.split(","),ur(this.D,e,d))):ur(this.D,[]),this.D.add(d)&&Qr(this,"getPlaylist"),d&&this.D.setVideoId(d),b.index==this.D.index&&hb(b.videoIds,this.D.videoIds)?"playlistModified"!=a.action&&"nowPlayingPlaylist"!=
a.action||this.G("remoteQueueChange"):this.G("remoteQueueChange"),p(f)&&(b=parseInt(f,10),b=isNaN(b)?-1:b,-1==b&&-1E3==this.D.c&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.D.c,this.D.c=b,d=null,-1E3==b&&(d=this.D.l||"unknown",n&&(d=n.reason||d)),c=c||this.D.l!=d,this.D.l=d,1==this.D.c?Pr(this):Nr(this)),"onError"!=a.action||-1!=this.D.c&&-1E3!=this.D.c||(a=df(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==qr(this.D)&&(this.D.c=-1E3,this.D.l=a[0].reason||"unknown",c=!0)),
h&&(b=parseInt(h,10),rr(this.D,isNaN(b)?0:b),c=!0),p(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||this.D.volume!=b,this.D.volume=b),p(l)&&(l="true"==l,c=c||this.D.j!=l,this.D.j=l)),c&&this.G("remotePlayerChange")}};
function Zr(a,b){switch(b.action){case "loungeStatus":var c=df(b.params.devices);a.f=Pa(c,function(a){return new vm(a)});break;case "loungeScreenDisconnected":bb(a.f,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new vm(df(b.params.device));Ta(a.f,function(a){return a.equals(d)})||Za(a.f,d);break;case "remoteDisconnected":d=new vm(df(b.params.device)),bb(a.f,function(a){return a.equals(d)})}}
function $r(a,b){var c=!1;if("loungeStatus"==b.action)c=!!Ta(a.f,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!isNaN(a.Hb))if(c)Or(a);else return;c==Rr(a)?c&&Lr(a,1):c?(Mr(a),a.C()&&a.D.reset(),Lr(a,1),Qr(a,"getNowPlaying"),Tr(a)):a.j(1)}g.te=function(){if(this.A){var a=this.A;this.A=null;this.D.videoId!=a&&Qr(this,"getNowPlaying")}};X.prototype.subscribe=X.prototype.subscribe;
X.prototype.unsubscribeByKey=X.prototype.ra;X.prototype.S=function(){var a=3;this.isDisposed()||(a=0,isNaN(this.B())?Rr(this)&&(a=1):a=2);return a};X.prototype.getProxyState=X.prototype.S;X.prototype.j=function(a){this.M("Disconnecting with "+a);Mr(this);this.G("beforeDisconnect",a);1==a&&kq();zo(this.c,a);this.dispose()};X.prototype.disconnect=X.prototype.j;X.prototype.N=function(){var a=this.D;this.A&&(a=this.D.clone(),tr(a,this.A,a.index));return vr(a)};X.prototype.getPlayerContextData=X.prototype.N;
X.prototype.ha=function(a){var b=new mr(a);b.videoId&&b.videoId!=this.D.videoId&&(this.A=b.videoId,M(this.vb),this.vb=L(v(this.te,this),5E3));var c=[];this.D.f==b.f&&this.D.videoId==b.videoId&&this.D.index==b.index&&hb(this.D.videoIds,b.videoIds)||c.push("remoteQueueChange");this.D.c==b.c&&this.D.volume==b.volume&&this.D.j==b.j&&sr(this.D)==sr(b)&&ff(this.D.A)==ff(b.A)||c.push("remotePlayerChange");this.D.reset(a);A(c,function(a){this.G(a)},this)};X.prototype.setPlayerContextData=X.prototype.ha;
X.prototype.L=function(){return this.c.l.loungeIdToken};X.prototype.getLoungeToken=X.prototype.L;X.prototype.C=function(){var a=this.c.l.id,b=Ta(this.f,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};X.prototype.getOtherConnectedRemoteId=X.prototype.C;X.prototype.B=function(){var a=this.c;return a.f.enabled?a.f.A-x():NaN};X.prototype.getReconnectTimeout=X.prototype.B;X.prototype.fa=function(){if(!isNaN(this.B())){var a=this.c.f;a.enabled&&(a.stop(),a.start(),a.B())}};
X.prototype.reconnect=X.prototype.fa;function Tr(a){M(a.Bb);a.Bb=L(v(a.j,a,1),864E5)}function Qr(a,b,c){c?a.M("Sending: action="+b+", params="+ff(c)):a.M("Sending: action="+b);a=a.c;b={_sc:b};c&&Fb(b,c);a.f.enabled||2==(a.c?a.c.c:0)?a.C.push(b):a.c&&3==a.c.c&&no(a.c,b)}X.prototype.T=function(a,b){Qr(this,a,b);Tr(this)};X.prototype.sendMessage=X.prototype.T;function as(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function bs(a){Vo("CAST",a)}function cs(a){var b=ds();b&&b.logMessage&&b.logMessage(a)}
function es(){if(!r("yt.mdx.remote.castv2_")&&!fs&&(Wa(Ya)&&eb(Ya,xp("yt-remote-online-dial-devices")||[]),as())){var a=ds();a?(a.removeReceiverListener("YouTube",gs),a.addReceiverListener("YouTube",gs),bs("API initialized in the other binary")):(a=new cast.Api,q("yt.mdx.remote.castapi.api_",a,void 0),a.addReceiverListener("YouTube",gs),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),So(cs),bs("API initialized"));fs=!0}}
function hs(a){var b=Ua(Ya,function(b){return b.id==a.id});0<=b&&(Ya[b]=Fp(a))}function gs(a){a.length&&bs("Updating receivers: "+ff(a));is(a);O("yt-remote-cast-device-list-update");A(js(),function(a){ks(a.id)});A(a,function(a){if(a.isTabProjected){var c=ls(a.id);bs("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){O("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function ms(a,b){bs("Updating "+a+" activity status: "+ff(b));var c=ls(a);c?(b.activityId&&(c.c=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.c=""),hs(c),O("yt-remote-cast-device-status-update",c)):bs("Device not found")}function js(){es();return Jp()}
function is(a){a=Pa(a,function(a){var c=a.id,d;d=a.name;d=-1!=d.indexOf("&")?"document"in m?Aa(d):Ca(d):d;c={id:c,name:d};if(a=ls(a.id))c.activityId=a.c,c.status=a.status;return c});Xa();eb(Ya,a)}function ls(a){var b=js();return Ta(b,function(b){return b.id==a})||null}function ks(a){var b=ls(a),c=ds();c&&b&&b.c&&c.getActivityStatus(b.c,function(b){"error"==b.status&&(b.status="stopped");ms(a,b)})}
function ns(a){es();var b=ls(a),c=ds();c&&b&&b.c?(bs("Stopping cast activity"),c.stopActivity(b.c,w(ms,a))):bs("Dropping cast activity stop")}function ds(){return r("yt.mdx.remote.castapi.api_")}var fs=!1,Ya=r("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Ya,void 0);function os(a){Do.call(this);this.B=a;this.Ca=ps();this.M("Initializing local screens: "+ep(this.Ca));this.j=qs();this.M("Initializing account screens: "+ep(this.j));this.Qb=null;this.c=[];this.f=[];rs(this,js()||[]);this.M("Initializing DIAL devices: "+Gp(this.f));a=cp(hq());ss(this,a);this.M("Initializing online screens: "+ep(this.c));this.A=x()+3E5;ts(this)}z(os,Do);g=os.prototype;g.zc=NaN;g.M=function(a){Vo("RM",a)};g.O=function(a){Vo("RM",a)};
function qs(){var a=ps(),b=cp(hq());return Oa(b,function(b){return!Mp(a,b)})}function ps(){var a=cp(dq());return Oa(a,function(a){return!a.uuid})}function ts(a){N("yt-remote-cast-device-list-update",function(){var a=js();rs(this,a||[])},a);N("yt-remote-cast-device-status-update",a.Ce,a);a.Vc();var b=x()>a.A?2E4:1E4;gc(v(a.Vc,a),b)}g.G=function(a,b){if(this.isDisposed())return!1;this.M("Firing "+a);return this.l.G.apply(this.l,arguments)};
g.Vc=function(){var a=js()||[];Wa(a)||rs(this,a);a=us(this);Wa(a)||(Ra(a,function(a){return!Mp(this.j,a)},this)&&fq()?vs(this):ws(this,a))};function xs(a,b){var c=us(a);return Oa(b,function(a){return a.uuid?(a=Lp(this.f,a.uuid),!!a&&"RUNNING"==a.status):!!Mp(c,a)},a)}
function rs(a,b){var c=!1;A(b,function(a){var b=Np(this.Ca,a.id);b&&b.name!=a.name&&(this.M("Renaming screen id "+b.id+" from "+b.name+" to "+a.name),b.name=a.name,c=!0)},a);c&&(a.M("Renaming due to DIAL."),ys(a));iq(Ip(b));var d=!hb(a.f,b,Kp);d&&a.M("Updating DIAL devices: "+Gp(a.f)+" to "+Gp(b));a.f=b;ss(a,a.c);d&&a.G("onlineReceiverChange")}
g.Ce=function(a){var b=Lp(this.f,a.id);b&&(this.M("Updating DIAL device: "+b.id+"("+b.name+") from status: "+b.status+" to status: "+a.status+" and from activityId: "+b.c+" to activityId: "+a.c),b.c=a.c,b.status=a.status,iq(Ip(this.f)));ss(this,this.c)};function ss(a,b,c){var d=xs(a,b),e=!hb(a.c,d,$o);if(e||c)Wa(b)||gq(Pa(d,ap));e&&(a.M("Updating online screens: "+ep(a.c)+" -> "+ep(d)),a.c=d,a.G("onlineReceiverChange"))}
function ws(a,b){var c=[],d={};A(b,function(a){a.token&&(d[a.token]=a,c.push(a.token))});var e={method:"POST",$:{lounge_token:c.join(",")},context:a,R:function(a,b){var c=[];A(b.screens||[],function(a){"online"==a.status&&c.push(d[a.loungeToken])});var e=this.Qb?zs(this,this.Qb):null;e&&!Mp(c,e)&&c.push(e);ss(this,c,!0)}};Jf(Cp(a.B,"/pairing/get_screen_availability"),e)}
function vs(a){var b=us(a),c=Pa(b,function(a){return a.id});Wa(c)||(a.M("Updating lounge tokens for: "+ff(c)),Jf(Cp(a.B,"/pairing/get_lounge_token_batch"),{$:{screen_ids:c.join(",")},method:"POST",context:a,R:function(a,c){As(this,c.screens||[]);this.Ca=Oa(this.Ca,function(a){return!!a.token});ys(this);ws(this,b)}}))}function As(a,b){A(cb(a.Ca,a.j),function(a){var d=Ta(b,function(b){return a.id==b.screenId});d&&(a.token=d.loungeToken)})}
function ys(a){var b=ps();hb(a.Ca,b,$o)||(a.M("Saving local screens: "+ep(b)+" to "+ep(a.Ca)),cq(Pa(a.Ca,ap)),ss(a,a.c,!0),rs(a,js()||[]),a.G("managedScreenChange",us(a)))}g.Bc=function(a,b){for(var c=us(this),c=Pa(c,function(a){return a.name}),d=a,e=2;Va(c,d);)d=b.call(m,e),e++;return d};function zs(a,b){var c=Np(us(a),b);a.M("Found screen: "+dp(c)+" with key: "+b);return c}function us(a){return cb(a.j,Oa(a.Ca,function(a){return!Mp(this.j,a)},a))};function Bs(a){Op.call(this,"ScreenServiceProxy");this.da=a;this.c=[];this.c.push(this.da.$_s("screenChange",v(this.Ke,this)));this.c.push(this.da.$_s("onlineScreenChange",v(this.Ud,this)))}z(Bs,Op);g=Bs.prototype;g.ia=function(a){return this.da.$_gs(a)};g.contains=function(a){return!!this.da.$_c(a)};g.get=function(a){return this.da.$_g(a)};g.start=function(){this.da.$_st()};g.add=function(a,b,c){this.da.$_a(a,b,c)};g.remove=function(a,b,c){this.da.$_r(a,b,c)};
g.Jb=function(a,b,c,d){this.da.$_un(a,b,c,d)};g.J=function(){for(var a=0,b=this.c.length;a<b;++a)this.da.$_ubk(this.c[a]);this.c.length=0;this.da=null;Bs.K.J.call(this)};g.Ke=function(){this.G("screenChange")};g.Ud=function(){this.G("onlineScreenChange")};W.prototype.$_st=W.prototype.start;W.prototype.$_gspc=W.prototype.Le;W.prototype.$_gsppc=W.prototype.ed;W.prototype.$_c=W.prototype.contains;W.prototype.$_g=W.prototype.get;W.prototype.$_a=W.prototype.add;W.prototype.$_un=W.prototype.Jb;
W.prototype.$_r=W.prototype.remove;W.prototype.$_gs=W.prototype.ia;W.prototype.$_gos=W.prototype.cd;W.prototype.$_s=W.prototype.subscribe;W.prototype.$_ubk=W.prototype.ra;function Cs(a,b,c){a?q("yt.mdx.remote.castv2_",!0,void 0):es();up&&tp();Vp();Ds||(Ds=new Bp,lq()&&(Ds.c="/api/loungedev"));Es||a||(Es=new os(Ds),Es.subscribe("screenPair",Fs),Es.subscribe("managedScreenChange",Gs),Es.subscribe("onlineReceiverChange",function(){O("yt-remote-receiver-availability-change")}));Hs||(Hs=r("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",Hs,void 0));Is(b);b=Js();if(a&&!b){var d=new W(Ds);q("yt.mdx.remote.screenService_",d,void 0);b=Js();Vq(d,function(a){a?
Ks()&&jr(Ks(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){O("yt-remote-receiver-availability-change")})},!(!c||!c.loadCastApiSetupScript))}if(c&&!r("yt.mdx.remote.initialized_")){q("yt.mdx.remote.initialized_",!0,void 0);Ls("Initializing: "+ff(c));Ms.push(N("yt-remote-cast2-availability-change",function(){O("yt-remote-receiver-availability-change")}));Ms.push(N("yt-remote-cast2-receiver-selected",function(){Ns();O("yt-remote-auto-connect","cast-selector-receiver")}));Ms.push(N("yt-remote-cast2-session-change",
Os));Ms.push(N("yt-remote-connection-change",function(a){a?jr(Ks(),"YouTube TV"):Ps()||(jr(null,null),hr())}));var e=Qs();c.isAuto&&(e.id+="#dial");e.name=c.device;e.app=c.app;Ls(" -- with channel params: "+ff(e));Rs(e);a&&b.start();Ks()||Ss()}}function Ts(){var a=Ks();if(!a)return null;if(!Es){var b=Js().ia();return Np(b,a)}return zs(Es,a)}function Os(a){Ls("remote.onCastSessionChange_: "+dp(a));if(a){var b=Ts();b&&b.id==a.id?jr(b.id,"YouTube TV"):(b&&Us(),Vs(a,1))}else Us()}
function Us(){if(Es){var a=Es;M(a.zc);a.zc=NaN}a:{if(a=Ws())if(a=a.getOtherConnectedRemoteId()){Ls("Do not stop DIAL due to "+a);Xs();break a}(a=r("yt.mdx.remote.currentDialId_"))?(Ls("Stopping DIAL: "+a),ns(a),Xs()):(a=Ts())&&a.uuid&&(Ls("Stopping DIAL: "+a.uuid),ns(a.uuid))}kr()?dr().stopSession():ar("stopSession called before API ready.");(a=Ws())?a.disconnect(1):(sc("yt-remote-before-disconnect",1),sc("yt-remote-connection-change",!1));Ys(null)}
function Zs(){var a=Ws();return a&&3!=a.getProxyState()?new wr(a,void 0):null}function Ls(a){Vo("remote",a)}function $s(){return r("yt.mdx.remote.screenService_")}function Js(){if(!at){var a=$s();at=a?new Bs(a):null}return at}function Ks(){return r("yt.mdx.remote.currentScreenId_")}function bt(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(Es){var b=Es;b.A=x()+3E5;if((b.Qb=a)&&(a=zs(b,a))&&!Mp(b.c,a)){var c=db(b.c);c.push(a);ss(b,c,!0)}}}
function Xs(){q("yt.mdx.remote.currentDialId_","",void 0)}function Ns(){q("yt.mdx.remote.connectData_",null,void 0)}function Ws(){return r("yt.mdx.remote.connection_")}function Ys(a){var b=Ws();Ns();a?Ka(!Ws()):(bt(""),Xs());q("yt.mdx.remote.connection_",a,void 0);Hs&&(A(Hs,function(b){b(a)}),Hs.length=0);b&&!a?sc("yt-remote-connection-change",!1):!b&&a&&O("yt-remote-connection-change",!0)}function Ps(){var a=Yp();if(!a)return null;if($s()){var b=Js().ia();return Np(b,a)}return Es?zs(Es,a):null}
function Vs(a,b){Ka(!Ks());bt(a.id);var c=new X(Ds,a,Qs());Jr(c,b);c.subscribe("beforeDisconnect",function(a){sc("yt-remote-before-disconnect",a)});c.subscribe("beforeDispose",function(){Ws()&&(Ws(),Ys(null))});Ys(c)}function Ss(){var a=Ps();a?(Ls("Resume connection to: "+dp(a)),Vs(a,0)):(kq(),hr(),Ls("Skipping connecting because no session screen found."))}function Fs(a){Ls("Paired with: "+dp(a));a?Vs(a,1):Ys(null)}
function Gs(){var a=Ks();a&&!Ts()&&(Ls("Dropping current screen with id: "+a),Us());Ps()||kq()}var Ds=null,Hs=null,at=null,Es=null;function Is(a){var b=Qs();if(Ab(b)){var b=Xp(),c=xp("yt-remote-session-name")||"",d=xp("yt-remote-session-app")||"",b={device:"REMOTE_CONTROL",id:b,name:c,app:d};a&&(b["mdx-version"]=3);q("yt.mdx.remote.channelParams_",b,void 0)}}function Qs(){return r("yt.mdx.remote.channelParams_")||{}}
function Rs(a){a?(vp("yt-remote-session-app",a.app),vp("yt-remote-session-name",a.name)):(yp("yt-remote-session-app"),yp("yt-remote-session-name"));q("yt.mdx.remote.channelParams_",a,void 0)}var Ms=[];function ct(a){Gg.call(this);this.H={Db:a.Db,Cb:v(function(){Kh.getInstance().Ua(this.ma());fa(a.Cb)&&a.Cb()},this)};this.l=this.j=null}z(ct,Gg);ct.prototype.xa=function(){ct.K.xa.call(this);this.j=R(F(this.ma(),"dialog-id"));if(!this.j)throw Error("Cannot find create playlist widget dialog.");Dg(this).Ba(document,"click",this.C);var a=N("yt-uix-card-show",v(this.F,this));this.Ma.push(a);a=S("create-playlist-widget-form",this.j);this.l=new Di(this.H);Eg(this.l,a)};
ct.prototype.ya=function(){this.j=null;this.l.dispose();this.l=null;ct.K.ya.call(this)};ct.prototype.C=function(a){Ld(this.j,Je(a))||Kh.getInstance().Ua(this.ma())};ct.prototype.F=function(a){a==this.ma()&&Cg(this.l,"title-input").focus()};function dt(){this.f={}}z(dt,oh);ba(dt);dt.prototype.c="scroller";dt.prototype.dispose=function(){for(var a in this.f){var b=this.f[a],c=this.V(b,"scroller-mousewheel-listener")||"";Wb(b,"scroller-mousewheel-listener","");var d=this.V(b,"scroller-scroll-listener")||"";Wb(b,"scroller-scroll-listener","");Ge(c);Ge(d);Wb(b,"scroller-scroll-listener","");b&&(b=ha(b).toString(),delete this.f[b])}this.f={}};function et(){ob(R("page-container"),"remote-connected",!!Y)};function ft(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||Cb(gt);this.assets=a.assets||{};this.attrs=a.attrs||Cb(ht);this.params=a.params||Cb(it);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}}var gt={enablejsapi:1},ht={},it={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
function jt(a){a instanceof ft||(a=new ft(a));return a}ft.prototype.clone=function(){var a=new ft,b;for(b in this){var c=this[b];"object"==ca(c)?a[b]=Cb(c):a[b]=c}return a};function kt(){return!1}function lt(){return null};function mt(a){this.c=a;a.then(v(function(){},this))}function nt(a,b,c,d){for(var e=Array(arguments.length-3),f=3;f<arguments.length;f++)e[f-3]=arguments[f];f=ot(a,b,c).then(function(a){return a.apply(null,e)});return new mt(f)}var pt={};
function ot(a,b,c){var d="https://www.gstatic.com/feedback/js/help/"+(a&&"prod"!=a&&"canary"!=a?"nonprod":"prod")+"/"+b;if(a=pt[c])return a;a=(a=r(c))?new Mm(Nm,a):(new Mm(function(a,b){var c=document.createElement("script");c.async=!0;c.src=d;c.onload=c.onreadystatechange=function(){c.readyState&&"loaded"!=c.readyState&&"complete"!=c.readyState||a()};c.onerror=b;(document.head||document.getElementsByTagName("head")[0]).appendChild(c)})).then(function(){var a=r(c);if(!a)throw Error("Failed to load "+
c+" from "+d);return a});return pt[c]=a}function qt(a,b,c){a.c.then(function(a){var e=a[b];if(!e)throw Error("Method not found: "+b);return e.apply(a,c)})};function rt(a){this.c=a}function st(a,b){var c=b||{},c={apiKey:c.$e||c.apiKey,environment:c.cf||c.environment,helpCenterPath:c.ff||c.helpCenterPath,locale:c.locale||c.locale||"en".replace(/-/g,"_"),productData:c.hf||c.productData,receiverUri:c.jf||c.receiverUri,theme:c.theme||c.theme,window:c.window||c.window},c=nt("prod","service/lazy.min.js","help.service.Lazy.create",a,c);return new rt(c)}rt.prototype.f=function(a){qt(this.c,"startFeedback",arguments)};
rt.prototype.j=function(a){qt(this.c,"startHelp",arguments)};var tt=!1;function ut(a){if(a=a.match(/[d]+/g))a.length=3,a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var vt=navigator.plugins["Shockwave Flash"];vt&&(tt=!0,vt.description&&ut(vt.description));navigator.plugins["Shockwave Flash 2.0"]&&(tt=!0)}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var wt=navigator.mimeTypes["application/x-shockwave-flash"];(tt=wt&&wt.enabledPlugin)&&ut(wt.enabledPlugin.description)}else try{var xt=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),tt=!0;ut(xt.GetVariable("$version"))}catch(zt){try{xt=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),
tt=!0}catch(At){try{xt=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),tt=!0,ut(xt.GetVariable("$version"))}catch(Bt){}}};function Ct(a){return(a=a.exec(Mc))?a[1]:""}(function(){if(xi)return Ct(/Firefox/([0-9.]+)/);if(Q||Uc)return ad;if(Bi)return Ct(/Chrome/([0-9.]+)/);if(Ci&&!(Tc()||P("iPad")||P("iPod")))return Ct(/Version/([0-9.]+)/);if(yi||zi){var a;if(a=/Version/(S+).*Mobile/(S+)/.exec(Mc))return a[1]+"."+a[2]}else if(Ai)return(a=Ct(/Androids+([0-9.]+)/))?a:Ct(/Version/([0-9.]+)/);return""})();function Dt(){this.j=this.f=this.c=0;this.l="";var a=r("window.navigator.plugins"),b=r("window.navigator.mimeTypes"),a=a&&a["Shockwave Flash"],b=b&&b["application/x-shockwave-flash"],b=a&&b&&b.enabledPlugin&&a.description||"";if(a=b){var c=a.indexOf("Shockwave Flash");0<=c&&(a=a.substr(c+15));for(var c=a.split(" "),d="",a="",e=0,f=c.length;e<f;e++)if(d)if(a)break;else a=c[e];else d=c[e];d=d.split(".");c=parseInt(d[0],10)||0;d=parseInt(d[1],10)||0;e=0;if("r"==a.charAt(0)||"d"==a.charAt(0))e=parseInt(a.substr(1),
10)||0;a=[c,d,e]}else a=[0,0,0];this.l=b;b=a;this.c=b[0];this.f=b[1];this.j=b[2];if(0>=this.c){var h,k,l,n;if(kc)try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(y){h=null}else l=document.body,n=document.createElement("object"),n.setAttribute("type","application/x-shockwave-flash"),h=l.appendChild(n);if(h&&"GetVariable"in h)try{k=h.GetVariable("$version")}catch(K){k=""}l&&n&&l.removeChild(n);(h=k||"")?(h=h.split(" ")[1].split(","),h=[parseInt(h[0],10)||0,parseInt(h[1],10)||0,parseInt(h[2],
10)||0]):h=[0,0,0];this.c=h[0];this.f=h[1];this.j=h[2]}}ba(Dt);Dt.prototype.getVersion=function(){return[this.c,this.f,this.j]};function Et(a,b,c,d){b="string"==typeof b?b.split("."):[b,c,d];b[0]=parseInt(b[0],10)||0;b[1]=parseInt(b[1],10)||0;b[2]=parseInt(b[2],10)||0;return a.c>b[0]||a.c==b[0]&&a.f>b[1]||a.c==b[0]&&a.f==b[1]&&a.j>=b[2]}function Ft(a){return-1<a.l.indexOf("Gnash")&&-1==a.l.indexOf("AVM2")||9==a.c&&1==a.f||9==a.c&&0==a.f&&1==a.j?!1:9<=a.c}
function Gt(a){return Yc?!Et(a,11,2):Xc?!Et(a,11,3):!Ft(a)};var Ht={};function It(a,b){var c=I("FEEDBACK_LOCALE_LANGUAGE"),d=I("FEEDBACK_LOCALE_EXTRAS",{});a?Fb(Ht,a):Fb(Ht,d);try{var e,f=r("yt.player.getPlayerByElement");(e=f?f("player-api"):null)&&e.pauseVideo&&e.pauseVideo();var h=Dt.getInstance();Ht.flashVersion=h.getVersion().join(".");e&&(Ht.playback_id=e.getVideoData().cpn)}catch(k){}b&&Fb(Ht,{trackingParam:b});return{helpCenterPath:"/youtube",locale:c,productData:Ht}}
function Jt(){var a=I("SESSION_INDEX"),b=I("FEEDBACK_BUCKET_ID"),c={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005"};a&&(c.authuser=a+"");b&&(c.bucket=b);return c}function Kt(a,b){try{var c=(a||"59")+"",d=It(b),e=Jt();st(c,d).f(e);return!1}catch(f){return!0}}function Lt(a,b,c,d){var e;d=(d||"59")+"";c=It(c,void 0);a={context:b,anchor:void 0,enableSendFeedback:!0,defaultHelpArticleId:a};Fb(a,Jt());try{st(d,c).j(a),e=!1}catch(f){e=!0}return e};function Mt(a,b,c){if(b){a=u(a)?od(a):a;c=jt(c);var d=Cb(c.attrs);d.tabindex=0;var e=Cb(c.params);e.flashvars=xf(c.args);if(kc){d.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";e.movie=b;b=document.createElement("object");for(var f in d)b.setAttribute(f,d[f]);for(f in e)d=document.createElement("param"),d.setAttribute("name",f),d.setAttribute("value",e[f]),b.appendChild(d)}else{d.type="application/x-shockwave-flash";d.src=b;b=document.createElement("embed");b.setAttribute("name",d.id);for(f in d)b.setAttribute(f,
d[f]);for(f in e)b.setAttribute(f,e[f])}e=document.createElement("div");e.appendChild(b);a.innerHTML=e.innerHTML}}
function Nt(a,b,c){if(a&&a.attrs&&a.attrs.id){a=jt(a);var d=!!b,e=R(a.attrs.id),f=e?e.parentNode:null;if(e&&f){if(window!=window.top){var h=null;if(document.referrer){var k=document.referrer.substring(0,128);Df(k)||(h=k)}else h="unknown";h&&(d=!0,a.args.framer=h)}h=Dt.getInstance();if(Et(h,a.minVersion)){var k=Ot(a,h),l="";-1<navigator.userAgent.indexOf("Sony/COM2")||(l=e.getAttribute("src")||e.movie);(l!=k||d)&&Mt(f,k,a);Gt(h)&&Pt()}else Qt(f,a,h);c&&c()}else L(function(){Nt(a,b,c)},50)}}
function Qt(a,b,c){0==c.c&&b.fallback?b.fallback():0==c.c&&b.fallbackMessage?b.fallbackMessage():a.innerHTML='<div id="flash-upgrade">'+ic("FLASH_UPGRADE",void 0,'You need to upgrade your Adobe Flash Player to watchthis video. <br> <a href="http://get.adobe.com/flashplayer/">Download it from Adobe.</a>')+"</div>"}function Ot(a,b){return Ft(b)&&a.url||(-1<navigator.userAgent.indexOf("Sony/COM2")&&!Et(b,9,1,58)?!1:!0)&&a.urlV9As2||a.url}
function Pt(){var a=R("flash10-promo-div"),b=Ah(vh.getInstance(),107);a&&!b&&Sf(a)};var Rt;var St=Mc,St=St.toLowerCase();if(-1!=St.indexOf("android")){var Tt=St.match(/androidD*(d.d)[^;|)]*[;)]/);if(Tt)Rt=Number(Tt[1]);else{var Ut={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},Vt=St.match("("+xb(Ut).join("|")+")");Rt=Vt?Ut[Vt[0]]:0}}else Rt=void 0;function Wt(){if(2.2==Rt)return!0;var a;a=r("yt.player.utils.videoElement_");a||(a=document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));try{return!(!a||!a.canPlayType||!a.canPlayType('video/mp4; codecs="avc1.42001E, mp4a.40.2"')&&!a.canPlayType('video/webm; codecs="vp8.0, vorbis"'))}catch(b){return!1}};function Xt(a){bh.call(this,1,arguments)}z(Xt,bh);var Yt=new eh("timing-sent",Xt);var Zt=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},$t=v(Zt.clearResourceTimings||Zt.webkitClearResourceTimings||Zt.mozClearResourceTimings||Zt.msClearResourceTimings||Zt.oClearResourceTimings||t,Zt),au=Zt.mark?function(a){Zt.mark(a)}:t;function bu(){cu();$t();q("yt.timing.pingSent_",!1,void 0)}function du(){var a=eu().tick;if(a.aft)return a.aft;for(var b=I("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return NaN}
function fu(a){return Math.round(Zt.timing.navigationStart+a)}
function gu(a){var b=window.location.protocol,c=Zt.getEntriesByType("resource"),d=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.googleapis.com/css?family=")})[0],c=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.gstatic.com/s/")}).reduce(function(a,b){return b.duration>a.duration?b:a},{duration:0});d&&0<d.startTime&&0<d.responseEnd&&(a.wfcs=fu(d.startTime),a.wfce=fu(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=fu(c.startTime),a.wffe=fu(c.responseEnd))}
function hu(a){if(I("DEBUG_CSI_DATA")){var b=r("yt.timing.csiData");b||(b=[],q("yt.timing.csiData",b,void 0));b.push({page:location.href,time:new Date,args:a})}I("EXP_DEFER_CSI_PING")&&(M(r("yt.timing.deferredPingTimer_")),q("yt.timing.deferredPingArgs_",null,void 0));var b="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",c="",d;for(d in a)c+="&"+d+"="+a[d];a=b+"?"+c.substring(1);I("EXP_CSI_BEACON_API")&&navigator.sendBeacon?navigator.sendBeacon&&navigator.sendBeacon(a,
"")||a&&nj(a):a&&nj(a);q("yt.timing.pingSent_",!0,void 0)}function iu(a){if(I("EXP_DEFER_CSI_PING")){var b=r("yt.timing.deferredPingArgs_");b&&(a&&(b.yt_fss=a),hu(b))}}function eu(){return r("ytcsi.data_")||cu()}function cu(){var a={tick:{},span:{},info:{}};q("ytcsi.data_",a,void 0);return a};function ju(){var a={volume:100,muted:!1},b=xp("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Math.min(Math.max(b.volume,0),100);a.muted=void 0==b.muted?!1:b.muted;return a};function ku(a,b){$b.call(this);this.A=this.L=a;this.T=b;this.H=!1;this.f={};this.Ma=this.S=null;this.W=new H;ac(this,w(bc,this.W));this.l={};this.C=this.Wa=this.j=this.Ob=this.c=null;this.fa=!1;this.N=this.F=this.Nb=this.B=null;this.rb={};this.nd=["onReady"];this.sb=[];this.Mb=null;this.nc=0;this.sa={};lu(this);this.ua("onVolumeChange",v(this.Xd,this));this.ua("onError",v(this.Wd,this));this.ua("onTabOrderChange",v(this.kd,this));this.ua("onTabAnnounce",v(this.mc,this));this.ua("WATCH_LATER_VIDEO_ADDED",
v(this.Yd,this));this.ua("WATCH_LATER_VIDEO_REMOVED",v(this.Zd,this));this.ua("onMouseWheelCapture",v(this.Sd,this));this.ua("onMouseWheelRelease",v(this.Td,this));this.ua("onAdAnnounce",v(this.mc,this));this.La=!1;this.sc=Bi||xi;this.ta=this.ha=null;kg(this.L,"mousewheel",this.Jc,!1,this);kg(this.L,"wheel",this.Jc,!1,this)}z(ku,$b);g=ku.prototype;g.getId=function(){return this.T};g.kc=function(a,b){this.isDisposed()||(mu(this,a),nu(this,b),this.H&&ou(this))};
function mu(a,b){a.Ob=b;a.c=b.clone();a.j=a.c.attrs.id||a.j;"video-player"==a.j&&(a.j=a.T,a.c.attrs.id=a.T);a.A.id==a.j&&(a.j+="-player",a.c.attrs.id=a.j);a.c.args.enablejsapi="1";a.c.args.playerapiid=a.T;a.Wa||(a.Wa=pu(a,a.c.args.jsapicallback||"onYouTubePlayerReady"));a.c.args.jsapicallback=null;var c=a.c.attrs.width;c&&(a.A.style.width=je(Number(c)||c,!0));if(c=a.c.attrs.height)a.A.style.height=je(Number(c)||c,!0)}g.qd=function(){return this.Ob};
function ou(a){a.c.loaded||(a.c.loaded=!0,"0"!=a.c.args.autoplay?a.f.loadVideoByPlayerVars(a.c.args):a.f.cueVideoByPlayerVars(a.c.args))}function qu(a){if(!p(a.c.disable.flash)){var b=a.c.disable,c;c=Et(Dt.getInstance(),a.c.minVersion);b.flash=!c}return!a.c.disable.flash}function ru(a){var b=su(a);b&&b.stopVideo&&b.stopVideo();if(qu(a)){var c=a.c;b&&b.getUpdatedConfigurationData&&(c=jt(b.getUpdatedConfigurationData()));c.args.autoplay=1;c.args.html5_unavailable="1";mu(a,c);nu(a,"flash")}}
function nu(a,b){if(!a.isDisposed()){if(!b){var c;if(!(c=!a.c.html5&&qu(a))){if(!p(a.c.disable.html5)){if(c=Wt())c=tu(a)||a.c.assets.js;a.c.disable.html5=!c;c||(a.c.args.html5_unavailable="1")}c=!!a.c.disable.html5}b=c?qu(a)?"flash":"unsupported":"html5"}("flash"==b?a.De:"html5"==b?a.Ee:a.Fe).call(a)}}function tu(a){var b=!0,c=su(a);c&&a.c&&(a=a.c,b=F(c,"version")==a.assets.js);return b&&!!r("yt.player.Application.create")}
g.Ee=function(){if(!this.fa){var a=tu(this);if(a&&"html5"==uu(this))this.C="html5",this.H||this.ab();else if(vu(this),this.C="html5",a&&this.Nb)this.L.appendChild(this.Nb),this.ab();else{this.c.loaded=!0;var b=v(function(){var a=this.L,b=this.c.clone();r("yt.player.Application.create")(a,b);this.ab()},this);this.B=b;this.fa=!0;a?this.B():(this.c.assets.js2?(this.B=a=v(function(){vc(this.c.assets.js2,b);this.B=b},this),vc(this.c.assets.js,a)):vc(this.c.assets.js,this.B),Dc(this.c.assets.css))}}};
g.De=function(){var a=this.c.clone();if(!this.F){var b=su(this);b&&(this.F=document.createElement("span"),this.F.tabIndex=0,this.sb.push(T(this.F,"focus",v(this.Ic,this))),this.N=document.createElement("span"),this.N.tabIndex=0,this.sb.push(T(this.N,"focus",v(this.Ic,this))),b.parentNode&&b.parentNode.insertBefore(this.F,b),b.parentNode&&b.parentNode.insertBefore(this.N,b.nextSibling))}a.attrs.width=a.attrs.width||"100%";a.attrs.height=a.attrs.height||"100%";if("flash"==uu(this))this.C="flash",this.H||
Nt(a,!1,v(this.ab,this));else{vu(this);this.C="flash";this.c.loaded=!0;b=this.L;b=u(b)?od(b):b;a=jt(a);if(window!=window.top){var c=null;document.referrer&&(c=document.referrer.substring(0,128));a.args.framer=c}c=Dt.getInstance();Et(c,a.minVersion)?(c=Ot(a,c),Mt(b,c,a)):Qt(b,a,c);this.ab()}};g.Ic=function(){su(this).focus()};function su(a){var b=R(a.j);!b&&a.A&&a.A.querySelector&&(b=a.A.querySelector("#"+a.j));return b}
g.ab=function(){if(!this.isDisposed()){var a=su(this),b=!1;try{a&&a.getApiInterface&&a.getApiInterface()&&(b=!0)}catch(c){}if(b)if(this.fa=!1,a.isNotServable&&a.isNotServable(this.c.args.video_id))ru(this);else{lu(this);this.H=!0;a=su(this);a.addEventListener&&(this.S=wu(this,a,"addEventListener"));a.removeEventListener&&(this.Ma=wu(this,a,"removeEventListener"));for(var b=a.getApiInterface(),b=b.concat(a.getInternalApiInterface()),d=0;d<b.length;d++){var e=b[d];this.f[e]||(this.f[e]=wu(this,a,e))}for(var f in this.l)this.S(f,
this.l[f]);ou(this);this.Wa&&this.Wa(this.f);this.W.G("onReady",this.f)}else this.nc=L(v(this.ab,this),50)}};function wu(a,b,c){var d=b[c];return function(){try{return a.Mb=null,d.apply(b,arguments)}catch(e){"Bad NPObject as private data!"!=e.message&&"sendAbandonmentPing"!=c&&(e.message+=" ("+c+")",a.Mb=e,hc(e,"WARNING"))}}}
function lu(a){a.H=!1;if(a.Ma)for(var b in a.l)a.Ma(b,a.l[b]);for(var c in a.sa)M(parseInt(c,10));a.sa={};a.S=null;a.Ma=null;for(var d in a.f)a.f[d]=null;a.f.addEventListener=v(a.ua,a);a.f.removeEventListener=v(a.se,a);a.f.destroy=v(a.dispose,a);a.f.getLastError=v(a.rd,a);a.f.getPlayerType=v(a.sd,a);a.f.getCurrentVideoConfig=v(a.qd,a);a.f.loadNewVideoConfig=v(a.kc,a);a.f.isReady=v(a.Pe,a)}g.Pe=function(){return this.H};
g.ua=function(a,b){if(!this.isDisposed()){var c=pu(this,b);if(c){if(!Va(this.nd,a)&&!this.l[a]){var d=xu(this,a);this.S&&this.S(a,d)}this.W.subscribe(a,c);"onReady"==a&&this.H&&L(w(c,this.f),0)}}};g.se=function(a,b){if(!this.isDisposed()){var c=pu(this,b);c&&this.W.unsubscribe(a,c)}};function pu(a,b){var c=b;if("string"==typeof b){if(a.rb[b])return a.rb[b];c=function(){var a=r(b);a&&a.apply(m,arguments)};a.rb[b]=c}return c?c:null}
function xu(a,b){var c="ytPlayer"+b+a.T;a.l[b]=c;m[c]=function(c){var e=L(function(){if(!a.isDisposed()){a.W.G(b,c);var f=a.sa,h=String(e);h in f&&delete f[h]}},0);Bb(a.sa,String(e))};return c}g.kd=function(a){a=a?Jd:Id;for(var b=a(document.activeElement);b&&(1!=b.nodeType||b==this.F||b==this.N||(b.focus(),b!=document.activeElement));)b=a(b)};g.mc=function(a){O("a11y-announce",a)};
g.Xd=function(a){if(!a.unstorable){var b={};b.volume=isNaN(a.volume)?ju().volume:Math.min(Math.max(a.volume,0),100);b.muted=void 0==a.muted?ju().muted:a.muted;vp("yt-player-volume",b,2592E3)}};g.Wd=function(a){5==a&&ru(this)};g.Yd=function(a){O("WATCH_LATER_VIDEO_ADDED",a)};g.Zd=function(a){O("WATCH_LATER_VIDEO_REMOVED",a)};g.Sd=function(){this.sc&&(this.La||(this.ta=ud(document)),this.ha||(this.ha=kg(window,"scroll",this.le,!1,this)));this.La=!0};
g.Td=function(){this.ha&&(rg(this.ha),this.ha=null);this.La=!1};g.Jc=function(a){this.La&&!this.sc&&a.preventDefault()};g.le=function(){this.ta&&window.scrollTo(this.ta.x,this.ta.y)};
g.Fe=function(){vu(this);this.C="unsupported";var a='Adobe Flash Player or an HTML5 supported browser is required for video playback. <br> <a href="http://get.adobe.com/flashplayer/">Get the latest Flash Player</a> <br> <a href="/html5">Learn more about upgrading to an HTML5 browser</a>',b=navigator.userAgent.match(/Version/(d).*Safari/);b&&5<=parseInt(b[1],10)&&(a='Adobe Flash Player or QuickTime is required for video playback. <br> <a href="http://get.adobe.com/flashplayer/"> Get the latest Flash Player</a> <br> <a href="http://www.apple.com/quicktime/download/">Get the latest version of QuickTime</a>');
b=this.c.messages.player_fallback||a;a=R("player-unavailable");if(R("unavailable-submessage")&&a){R("unavailable-submessage").innerHTML=b;var b=S("icon",a),c;if(c=b)c=b?b.dataset?Xb("icon")in b.dataset:b.hasAttribute?!!b.hasAttribute("data-icon"):!!b.getAttribute("data-icon"):!1;c&&(b.src=F(b,"icon"));E(a,"hid");C(R("player"),"off-screen-trigger")}};g.sd=function(){return this.C||uu(this)};g.rd=function(){return this.Mb};
function uu(a){return(a=su(a))?"div"==a.tagName.toLowerCase()?"html5":"flash":null}
function vu(a){eu().tick.dcp=x();au("dcp");if(I("CSI_LOG_ON_TICK")){var b=I("TIMING_ACTION"),c=eu().tick,d=!0;I("CSI_LOG_ON_TICK")&&(d=!!r("yt.timing.ready_"));if(d&&b&&c._start&&du()){b=!0;d=I("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}if(b)if(d=eu().tick,c=eu().span,e=eu().info,b=r("yt.timing.reportbuilder_")){if(b=b(d,c,e,void 0))hu(b),bu()}else{b={v:2,s:I("CSI_SERVICE_NAME","youtube"),action:I("TIMING_ACTION")};Zt.now&&Zt.timing&&(f=Zt.timing.navigationStart+
Zt.now(),f=Math.round(x()-f),e.yt_hrd=f);var f=I("TIMING_INFO")||{},h;for(h in f)e[h]=f[h];h=e.srt;delete e.srt;var k;h||0===h||(k=Zt.timing||{},h=Math.max(0,k.responseStart-k.navigationStart),isNaN(h)&&e.pt&&(h=e.pt));if(h||0===h)e.srt=h;e.h5jse&&(f=window.location.protocol+r("ytplayer.config.assets.js"),(f=Zt.getEntriesByName?Zt.getEntriesByName(f)[0]:null)?e.h5jse=Math.round(e.h5jse-f.responseEnd):delete e.h5jse);d.aft=du();f=d._start;if("cold"==e.yt_lt){k||(k=Zt.timing||{});var l;a:if(l=k,l.msFirstPaint)l=
Math.max(0,l.msFirstPaint);else{var n=window.chrome;if(n&&(n=n.loadTimes,fa(n))){var n=n(),y=1E3*Math.min(n.requestTime||Infinity,n.startLoadTime||Infinity),y=Infinity===y?0:l.navigationStart-y;l=Math.max(0,Math.round(1E3*n.firstPaintTime+y)||0);break a}l=0}0<l&&l>f&&(d.fpt=l);l=eu().span;n=k.redirectEnd-k.redirectStart;0<n&&(l.rtime_=n);n=k.domainLookupEnd-k.domainLookupStart;0<n&&(l.dns_=n);n=k.connectEnd-k.connectStart;0<n&&(l.tcp_=n);n=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart>=
k.navigationStart&&0<n&&(l.stcp_=n);n=k.responseStart-k.requestStart;0<n&&(l.req_=n);n=k.responseEnd-k.responseStart;0<n&&(l.rcv_=n);I("EXP_WEBFONT_ENABLED")&&Zt.getEntriesByType&&gu(d)}e.p=I("CLIENT_PROTOCOL")||"unknown";e.t=I("CLIENT_TRANSPORT")||"unknown";I("EXP_CSI_BEACON_API")&&navigator.sendBeacon&&(e.ba=1);for(var K in e)"_"!=K.charAt(0)&&(b[K]=e[K]);I("CSI_MORE")&&(d.ps=x());K={};k=[];for(var D in d)"_"!=D.charAt(0)&&(l=Math.max(Math.round(d[D]-f),0),K[D]=l,k.push(D+"."+l));b.rt=k.join(",");
D={};k=[];for(var J in c)"_"!=J.charAt(0)&&(D[J]=c[J],k.push(J+"."+c[J]));b.it=k.join(",");(J=r("ytdebug.logTiming"))&&J(b,K,D);bu();I("EXP_DEFER_CSI_PING")?(iu(),q("yt.timing.deferredPingArgs_",b,void 0),J=L(iu,0),q("yt.timing.deferredPingTimer_",J,void 0)):hu(b);J=new Xt(K.aft+(h||0));(D=r("yt.pubsub2.instance_"))&&D.publish.call(D,Yt.toString(),Yt,J)}}}a.cancel();lu(a);a.C=null;a.c&&(a.c.loaded=!1);J=su(a);"html5"==uu(a)?a.Nb=J:J&&J.destroy&&J.destroy();Bd(a.L);Ge(a.sb);a.sb.length=0;a.F=null;
a.N=null}g.cancel=function(){this.B&&Cc(this.c.assets.js,this.B);M(this.nc);this.fa=!1};g.J=function(){vu(this);this.rb=null;for(var a in this.l)m[this.l[a]]=null;this.f=null;delete this.L;delete this.A;this.c&&(this.Ob=this.c=this.c.fallback=null);ku.K.J.call(this)};var yu={},zu="player_uid_"+(1E9*Math.random()>>>0);function Au(a,b){a=u(a)?od(a):a;b=jt(b);var c=zu+"_"+ha(a),d=yu[c];if(d)return d.kc(b),d.f;d=new ku(a,c);yu[c]=d;O("player-added",d.f);ac(d,w(Bu,d));L(function(){d.kc(b)},0);return d.f}function Cu(){for(var a in yu){var b=yu[a];b&&b.cancel()}}function Du(a){if(a=R(a))a=zu+"_"+ha(a),(a=yu[a])&&a.dispose()}function Bu(a){yu[a.getId()]=null}function Eu(a){a=R(a);if(!a)return null;var b=zu+"_"+ha(a),c=yu[b];c||(c=new ku(a,b),yu[b]=c);return c.f};var Fu=r("yt.abuse.botguardInitialized")||kt;q("yt.abuse.botguardInitialized",Fu,void 0);var Gu=r("yt.abuse.invokeBotguard")||lt;q("yt.abuse.invokeBotguard",Gu,void 0);var Hu=r("yt.player.exports.navigate")||$g;q("yt.player.exports.navigate",Hu,void 0);var Iu=r("yt.player.embed")||Au;q("yt.player.embed",Iu,void 0);var Ju=r("yt.player.destroy")||Du;q("yt.player.destroy",Ju,void 0);var Ku=r("yt.player.cancelAll")||Cu;q("yt.player.cancelAll",Ku,void 0);var Lu=r("yt.player.getPlayerByElement")||Eu;
q("yt.player.getPlayerByElement",Lu,void 0);var Mu=r("yt.player.exports.feedbackStart")||Kt;q("yt.player.exports.feedbackStart",Mu,void 0);var Nu=r("yt.player.exports.feedbackShowArticle")||Lt;q("yt.player.exports.feedbackShowArticle",Nu,void 0);var Ou=r("yt.util.activity.init")||gl;q("yt.util.activity.init",Ou,void 0);var Pu=r("yt.util.activity.getTimeSinceActive")||il;q("yt.util.activity.getTimeSinceActive",Pu,void 0);var Qu=r("yt.util.activity.setTimestamp")||hl;
q("yt.util.activity.setTimestamp",Qu,void 0);var Ru=!1;function Su(a){ob(R("player-mole-container"),"watch-mole",a);a=R("player-mole-container");var b=R("player");Ru=!b||B(b,"off-screen")||!a||B(a,"watch-mole");(a=(a=r("yt.player.getPlayerByElement"))?a("player-api"):null)&&a.isReady()&&a.setMinimized(Ru)};var Tu,Uu,Y,Vu,Wu,Xu,Yu,Zu,$u,av,sh,bv,cv,dv,ev,Z,fv;var gv;function hv(a,b){this.type=a;this.videoIds=b||[]}function iv(a,b){Jf("/watch_queue_ajax",{method:"POST",Ja:{action_check_playability:1},$:{video_ids:a.join(",")},R:function(a,d){d&&da(d)?b(d):b([])},onError:function(){b([])}})}function jv(a){u(a)&&(a=[a]);var b=new hv(1,a);gv?kv(function(){A(a,function(a){gv.Wc(a)})},b,void 0):lv(b,a)}function mv(a,b,c){var d=new hv(2);gv&&kv(function(){gv.Hc(a,b,c)},d,void 0)}function nv(a){iv([a],function(b){Wa(b)||ov(a)})}
function ov(a){var b=new hv(2);gv&&kv(function(){gv.Ec(a)},b,void 0)}function pv(a){var b=new hv(2);gv&&kv(function(){gv.pc(a)},b,void 0)}function qv(a,b,c){b?iv([b],function(d){Wa(d)||rv(a,b,c)}):rv(a,b,c)}function rv(a,b,c){gv&&kv(function(){b&&Fr(gv,b,0,0,a)},void 0,c)}function sv(a,b,c){iv(b,function(b){Wa(b)||!Va(b,a)||tv(a,b,c)})}function tv(a,b,c){gv&&kv(function(){var c=gv;Fr(c,a);Ar(c,"updatePlaylist",{videoIds:b.join(",")})},void 0,c)}
function uv(){var a=new hv(2);gv&&kv(function(){gv.stop();gv.yc()},a,void 0)}function vv(a){gv=a;gv.subscribe("remoteQueueChange",function(){O("queue-change",new hv(2))})}function wv(){var a=Zs();bc(gv);gv=null;a?vv(a):O("queue-change",new hv(2))}function kv(a,b,c){gv&&1==gv.c&&(a.call(m),c&&L(function(){c()},0),p(b)&&O("queue-change",b))}
function lv(a,b){Jf("/watch_queue_ajax",{method:"POST",Ja:{action_remove_from_watch_queue:1},$:{list:"WQ",video_ids:b.join(",")},R:function(){O("queue-change",a)},onError:function(){}})}var xv=[];var yv;function zv(){if(!yv){var a=R("watch-queue");if(!a)return[];yv=S("watch-queue-items-list",a)}var b=[],a=Fd(yv);A(a,function(a){(a=F(a,"video-id"))&&b.push(a)});return b};function Av(){O("yt-dom-content-change",Z)}q("yt.www.watchqueue.loadThumbnails",Av,void 0);
function Bv(){fv=R("watch-queue");$u=S("watch-queue-control-bar",fv);av=S("watch-queue-count",$u);sh=S("yt-uix-button-dark-overflow-action-menu",$u);bv=S("prev-watch-queue-button",fv);cv=S("next-watch-queue-button",fv);dv=S("play-watch-queue-button",fv);ev=S("pause-watch-queue-button",fv);Z=S("watch-queue-items-list",fv);Cv.push(He(fv,"click",Dv,"yt-uix-button"));Cv.push(He(fv,"click",Ev,"watch-queue-video"));Cv.push(He(fv,"click",Fv,"control-bar-button"));Cv.push(T(Z,Wd,Gv));Cv.push(He(Z,Wd,Hv,"watch-queue-item"));
Cv.push(He(null,"click",Iv,"watch-queue-video-menu-choice"));Cv.push(He(null,"click",Jv,"watch-queue-menu-choice"));Yu=new si(R("watch-queue-count-msg").innerHTML,["count","total"]);Zu=vi(R("watch-queue-loading-template"));Kv=0;Vu=!1;var a=R("watch-queue-save-as-playlist-widget");a&&(Xu=new ct({Db:Lv}),Eg(Xu,a));Uu=null;Cs(!!I("MDX_ENABLE_CASTV2"),!0,{device:"Desktop",app:"youtube-desktop",isSignedIn:I("LOGGED_IN")});Cs(!!I("MDX_ENABLE_CASTV2"),!!I("MDX_ENABLE_QUEUE"));xv.push(N("yt-remote-connection-change",
wv));(a=Zs())&&vv(a);Mv.push(N("init",Nv));Mv.push(N("dispose",Ov));Mv.push(N("yt-remote-before-disconnect",Pv));Mv.push(N("yt-remote-connection-change",Qv));Qv();Nv();Mv.push(N("queue-change",Rv));Mv.push(N("watch-queue-addto-video-added",Sv));Mv.push(N("watch-queue-addto-video-removed",Sv));Mv.push(N("watch-queue-addto-video-play-next",Tv));Mv.push(N("watch-queue-addto-video-play-now",Uv));Mv.push(N("watch-queue-addto-playlist-added",Sv));Mv.push(N("watch-queue-addto-playlist-removed",Sv));Mv.push(N("watch-queue-addto-playlist-play-next",
Vv));Mv.push(N("watch-queue-addto-playlist-play-now",Wv))}function Xv(){var a=R("player-playlist");return a?Kd(fv)==a:!1}
function Yv(){var a=!1;if(!Y||!Pf(Tu)||!I("PAGE_NAME"))return Zv(),a;var b=$v(),c=aw();bw()&&c&&b!=c&&(cw(c),b=c);c=!!I("LIST_ID");if(b=bw()&&!!b&&(b==I("VIDEO_ID")||b==Wu)&&!c){var d=R("player-playlist");d&&!Xv()&&(E(Tu,"mole-notification"),Cd(d,fv,0),O("watch-queue-show",1),dw(),a=!0)}else Kd(fv)!=Tu&&(Tu.appendChild(fv),O("watch-queue-show",0),Av(),a=!0);d=R("placeholder-playlist");b||c?Sf(d):Tf(d);Zv();return a}
function cw(a){if(Uu){var b=!!Y,c=b&&!(a&&(a==I("VIDEO_ID")||a==Wu));Su(c);b&&bw()&&(c?O("watch-queue-show",0):O("watch-queue-show",1));if(Uu.isReady())Uu.loadVideoById(a);else{var d=function(){Uu.loadVideoById(a);Uu.removeEventListener("onReady",d)};Uu.addEventListener("onReady",d)}}}function $v(){return Uu&&Uu.isReady()?Uu.getVideoData().video_id:""}function aw(){return Y?zr(Y).videoId:""}function ew(a){$v()!=fw()&&gw($v());hw(1==a);Yv()}
function Zv(){Uu&&($v()?Vu||Su(!!Y&&(Pf(Tu)||iw())&&Kd(fv)==Tu):Su(!1))}function Nv(){E(Tu,"mole-notification");Wu="";et();Yv();var a=Uu;a&&a.addEventListener("onStateChange",ew)}function Ov(){qb(Tu,"mole-expanded","mole-collapsed");var a=Uu;a&&a.removeEventListener("onStateChange",ew)}function bw(){return"watch"==I("PAGE_NAME")}function jw(a){if(a!=fw()){var b=zv(),c=b[0];kw()&&(c=b[lw()+1]);if(a!=c)if(Va(b,a)){var d=Ma(b,a),b=Ma(b,c);mv(a,d,b)}else nv(a)}}
function Dv(a){if(a.currentTarget==bv){if(iw()){var b=Fd(Z);a=lw();b=b.length;a=(b+a-1)%b;mw(a);dw();(b=fw())&&Y&&Y.Uc(b,a)}}else if(a.currentTarget==cv)iw()&&(a=Fd(Z),a=(lw()+1)%a.length,mw(a),dw(),(b=fw())&&Y&&Y.bd(b,a));else if(a.currentTarget==dv)Tf(dv),Sf(ev),Y?(a=zv(),!aw()&&a[0]?Fr(Y,a[0]):Y.play()):Uu&&Uu.playVideo();else if(a.currentTarget==ev)Tf(ev),Sf(dv),Y?Y.pause():Uu&&Uu.pauseVideo();else if(B(a.currentTarget,"remove-item-watch-queue-button")){if(a=Qd(a.currentTarget,"watch-queue-item"),
b=F(a,"video-id"))C(a,"fade-out"),jv(b)}else B(a.currentTarget,"expand-video-watch-queue-button")&&nw(a.currentTarget)}function Jv(a){var b=F(a.currentTarget,"action");ow[b](a.currentTarget);a=a||window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation();rh()}function Fv(a){Kd(fv)==Tu&&a.currentTarget==$u&&(a=Je(a),a&&B(a,"overflow-menu-choice")||(pb(Tu,"mole-expanded"),pb(Tu,"mole-collapsed")))}function Iv(a){var b=F(a.currentTarget,"action");pw[b](a.currentTarget)}
function Gv(){E(Tu,"mole-notification");B(Tu,"mole-expanded")&&Av();rh()}function Hv(a){B(a.currentTarget,"fade-out")&&(Dd(a.currentTarget),gw(aw()),qw());Av()}function Ev(a){a=Qd(a.currentTarget,"watch-queue-item");if(!B(a,"currently-playing")){var b=Fd(Z),b=Ma(b,a);mw(b);(a=F(a,"video-id"))&&Y&&Fr(Y,a,0,b)}}
function Lv(a){var b=a.playlistId,c=a.oe;b&&c&&(a={videoIds:zv().join(","),pd:b,R:function(){Zg(c)}},Jf("/playlist_video_ajax?action_add_to_playlist=1",{method:"POST",Ja:{feature:a.ef||null,authuser:a.af||null,pageid:a.pageId||null},$:{video_ids:a.videoIds||null,source_playlist_id:a.sourcePlaylistId||null,full_list_id:a.pd||null,delete_from_playlists:a.kf||null,add_to_playlists:a.Ze||null,plid:I("PLAYBACK_ID")||null},context:a.context,onError:a.onError,R:a.R,$b:a.$b}))}
function nw(a){B(a,"disabled")||(a=F(a,"video-id"))&&rw(a)}function kw(){return!!S("currently-playing",Z)}function lw(){var a=S("currently-playing",Z);if(a){var b=Fd(Z);return Ma(b,a)}return 0}function fw(){var a=S("currently-playing",Z);return a?F(a,"video-id")||"":""}function gw(a){a=Ma(zv(),a);0<=a?kw()&&lw()==a||(mw(a),dw()):sw()}function mw(a){if(iw()){sw();var b=Fd(Z);b[a]&&C(b[a],"currently-playing");tw()}}
function sw(){if(iw()){var a=S("currently-playing",Z);a&&E(a,"currently-playing");tw()}}function Tv(a){jw(a);Sv()}function Uv(a){Y&&Fr(Y,a);a!=fw()&&(cw(a),Sv());Wu=a}function Vv(a){zv();kw()&&lw();pv(a);Sv()}function Wv(a,b,c){b&&(c?sv(b,c,function(){Wu=b}):qv(a,b,function(){Wu=b}),Sv())}function Sv(){Pf(Tu)&&C(Tu,"mole-notification")}function uw(){var a=kw()?lw()+1:0,b=zv().length;av.innerHTML=0<a&&0<b?Yu.render({count:a,total:b}):""}function hw(a){a?(Tf(dv),Sf(ev)):(Tf(ev),Sf(dv))}
function tw(){var a=zv().length,b=1>=a,c=kw()?lw():-1;bv.disabled=b||0==c;cv.disabled=b||c==a-1;uw();if(0!=a){var d=null,a=Fd(Z);A(a,function(a){var b=F(a,"video-id"),c=S("play-next",a),k=S("goto-video-page",a);ob(k,"disabled",bw()&&b==I("VIDEO_ID")&&!I("LIST_ID"));B(a,"currently-playing")?(d=a,Tf(c)):d?(d=null,ob(c,"disabled",!0)):ob(c,"disabled",!1)})}}function qw(){tw();Wa(zv())?vw():ww();O("watch-queue-update")}function xw(){Kv=0;M(yw);yw=NaN}
function zw(){Vu=!1;if(isNaN(yw)){var a=Math.min(3E4,1E3*Math.pow(2,Kv));yw=L(function(){yw=NaN;Kv++;Aw()},a)}}function iw(){var a=Gd(Z);return!!a&&B(a,"watch-queue-item")}function Aw(){if(!Vu){Vu=!0;var a;gv?(a=Ws(),a="RQ"+(a?a.getLoungeToken():"")):a="WQ";Jf("/watch_queue_ajax",{method:"GET",Ja:{action_get_watch_queue_items:1,list:a},R:Bw,onError:zw,nb:zw});iw()?ww():(Z.innerHTML=Zu.render({}),qw())}}
function Bw(a,b){Vu=!1;if(Z&&b&&(b.html||!aw())&&(xw(),Y)){var c=zv(),d=[],e=Ad(b.html),f=Oa(e.childNodes,function(a){return ga(a)&&1==a.nodeType});A(f,function(a){a=F(a,"video-id");d.push(a)});0==c.length&&(Z.innerHTML="");if(0==d.length)Z.innerHTML="",O("watch-queue-empty"),qw();else if(!hb(c,d)){if(d.length==c.length+1){for(var h=0;h<c.length&&c[h]==d[h];)h++;var k=db(c);fb(k,h,0,d[h]);if(hb(k,d)){Cd(Z,f[h],h);C(f[h],"fade-in");L(function(){E(f[h],"fade-in")},0);gw(aw());Av();qw();return}}if(d.length==
c.length-1){for(e=0;e<d.length&&c[e]==d[e];)e++;k=db(c);ab(k,e);if(hb(k,d)){c=Fd(Z);C(c[e],"fade-out");gw(aw());return}}Z.innerHTML="";Wa(f)||(A(f,function(a){Z.appendChild(a)}),Av(),gw(aw()));qw()}}}
function dw(){var a=S("currently-playing",Z);if(a){var b=dt.getInstance(),c=Z;if(c&&a){var d=pd(U(b,"scroll-unit"),c),a=Ma(d,a);if(0<=a&&!(!c||isNaN(a)||0>a)&&(b=pd(U(b,"scroll-unit"),c),!(0>=b.length))){a>=b.length&&(a=b.length-1);if(b.length){var d=b[0],e=d.offsetHeight;1<b.length&&(e=b[1].offsetTop-d.offsetTop);d=e}else d=0;var e=c.offsetHeight,f=Math.max(Math.floor(c.scrollTop/d),0);a>f-1&&(d=Math.floor(e/d),e=b.length,a+d>e&&(a=e-d+1));0>a&&(a=0);a=b[a].offsetTop;c&&!isNaN(a)&&(0>a&&(a=0),c.scrollTop=
a,Wb(c,"scroller-offset",a+""),O("yt-dom-content-change",c))}}}Av()}function rw(a){a=yf("/watch",{v:a});Zg(a)}function Cw(a){bw()&&(a!=I("VIDEO_ID")||I("LIST_ID")?(L(function(){rw(a)},100),Wu=a):Yv())}function Pv(a){Dw=a}function Qv(){var a=Zs();bc(Y);Y=null;xw();Z.innerHTML="";qw();a?(Y=a,Y.subscribe("proxyStateChange",Ew),Y.subscribe("remotePlayerChange",Fw),Dw=null):vw();2!=Dw&&(et(),O("watch-queue-remote-connection",!!a))}
function ww(){Sf(Tu);if(!Yv()){var a=Kd(fv)==Tu?0:1;O("watch-queue-show",a)}}function vw(){Kd(fv)!=Tu&&Tu.appendChild(fv);var a=R("placeholder-playlist");I("LIST_ID")?Sf(a):Tf(a);qb(Tu,"mole-expanded","mole-collapsed");Tf(Tu);Zv();O("watch-queue-hide",0)}function Ew(a,b){xw();1==b&&Aw()}function Fw(){var a=zr(Y);hw(1==a.c)}function Rv(){if(Y){var a=fw(),b=aw();b&&b!=a&&gw(b);b&&(Xv()||Wu==b)&&Cw(b);Aw()}}
var ow={"remove-all":function(){uv();Z.innerHTML="";qw();O("watch-queue-empty");vw()},"save-as-playlist":function(){if(!Wa(zv())){var a=Xu;Kh.getInstance().lc(a.ma())}},disconnect:function(){Us()}},pw={"play-next":function(a){B(a,"disabled")||(a=F(a,"video-id"))&&jw(a)},"goto-video-page":nw},Cv=[],Mv=[],Kv=0,yw=NaN,Dw=null;var Gw;function Hw(a){Iw(R("yt-picker-"+a+"-footer"),a,!1,!1,!0);R("footer").scrollIntoView()}function Iw(a,b,c,d,e){c||(Gw&&Gw!=a&&Tf(Gw),Gw=a,e?Sf(a):Uf(a));d?S("yt-close",a).focus():(c={},c["action_"+b]=1,c.base_url=window.location.href.split("#",1)[0],Jf("/picker_ajax",{format:"JSON",method:"GET",Ja:c,R:v(Jw,null,a),onError:function(){Tf(a)}}))}
function Jw(a,b,c){if(c&&c.html){Wb(a,"loaded",1);a.innerHTML=c.html;Kw(a);b=document.body;var d=ge(a);c=ge(b);var e=te(b),f=d.x-c.x-e.left,d=d.y-c.y-e.top,h=b.clientWidth-a.offsetWidth,k=b.clientHeight-a.offsetHeight,l=b.scrollLeft,n=b.scrollTop;if(b==document.body||b==document.documentElement)l=c.x+e.left,n=c.y+e.top,Q&&!dd(10)&&(l+=e.left,n+=e.top);l+=Math.min(f,Math.max(f-h,0));n+=Math.min(d,Math.max(d-k,0));c=new Jc(l,n);b.scrollLeft=c.x;b.scrollTop=c.y;S("yt-close",a).focus()}else Tf(a)}
function Kw(a,b){var c=S("yt-picker-content",a);if(c){var d=qd(null,"yt-picker-section",c);A(d,v(Lw,null,Math.floor((b||c.offsetWidth)/180)))}else hc(Error(".yt-picker-content missing"),"WARNING")}function Lw(a,b){for(var c=qd(null,"yt-picker-item",b),d=Math.ceil(c.length/a),e,f=document.createElement("div"),h=0;h<a;h++){e=document.createElement("div");e.className="yt-picker-grid";for(var k=d*h;k<d*(h+1);k++)c[k]&&e.appendChild(c[k]);e.children.length&&f.appendChild(e)}b.innerHTML=f.innerHTML};q("yt.www.guide.collections.onCollectionPickerShown",function(){var a=ai();ni();var b=S("collection-name-input",a),c=F(a,"collection-id");c||(b.value="");bi(a);ri(a,!0);var d=S("subscription-picker-list-container",a);d.innerHTML="";Jf("/subscription_ajax?action_list_subscriptions=1",{method:"POST",$:{collection_id:c},R:function(b,f){bi(a);d.innerHTML=f.response.html_content;if(c){ji();var h=S("selected-channels-button",a);uh(ph.getInstance(),h);oi(h)}},onError:hi(a)})},void 0);
q("yt.www.guide.setup",Uj,void 0);q("yt.www.guide.selectGuideItem",function(a){if(Jg){var b=null,c=S("guide-item-selected",Jg);c&&(b=F(c,"serialized-endpoint")||"");b!=a&&(b&&E(c,"guide-item-selected"),a&&(a=jk(a))&&C(a,"guide-item-selected"))}},void 0);q("yt.www.masthead.dismissCookieAlert",function(){oj("GC_OK",void 0);vh.getInstance();Bh(110,!0);Wg("PREF",Ch(),63072E3,"/")},void 0);q("yt.www.masthead.dismissReturnToMobileMessage",function(){oj("NO_MWEB",void 0);Tf(R("return-to-mobile"))},void 0);
q("yt.www.masthead.handleAccountPickerClick",function(){var a=R("yt-masthead-multilogin");if(F(a,"loaded"))ul();else{var b=fl();b[I("XSRF_FIELD_NAME")]=I("XSRF_TOKEN");spf.load("/delegate_account_ajax",{method:"POST",postData:xf(b),onDone:function(){Wb(a,"loaded","true");ul()}})}},void 0);q("yt.www.masthead.loadSearchbox",wl,void 0);q("yt.net.cookies.set",Wg,void 0);q("yt.net.cookies.remove",Xg,void 0);
q("yt.www.picker.load",function(a){var b=F(a,"picker-key"),c=F(a,"picker-position"),d="yt-picker-"+b+"-"+c;if(c=R(d))a=F(a,"button-menu-id")==d,d=F(c,"loaded"),Iw(c,b,!!a,!!d)},void 0);q("yt.www.picker.displayLang",function(){Hw("language")},void 0);q("yt.www.picker.applyGrid",Kw,void 0);
q("ytbin.www.pageframe.setup",function(){Gc("GUIDE_DELAYLOADED_CSS");Gc("PAGE_FRAME_DELAYLOADED_CSS",w(E,document.body,"delayed-frame-styles-not-in"),I("WAIT_TO_DELAYLOAD_FRAME_CSS")?"yt-www-pageFrameCssNotifications-load":null);Ud=R("a11y-announcements-container");Vd=R("a11y-announcements-message");N("a11y-announce",Ne);N("init",Ke);if(Le=R("a11y-skip-nav"))Ke(),T(Le,"click",Me);S("guide-module-loading")||Uj();uj=S("yt-masthead-user-icon");He(R("ticker"),"click",vl,"yt-uix-close");S("exp-searchbox-redesign")&&
(T(R("yt-masthead-content"),"click",zl),T(R("masthead-search-term"),"keyup",Al));I("SANDBAR_ENABLED")&&tl();wl();Hl();(Tu=R("watch-queue-mole"))?Bv():I("MDX_ENABLE_CASTV2")&&Cs(!0,!1,{device:"Desktop",app:"youtube-desktop",isSignedIn:I("LOGGED_IN")});I("YOODLE_IS_ANIMATED")&&vc(I("YOODLE_JS_URL"),function(){r("yt.www.masthead.AnimatedYoodle.init")(I("YOODLE_ANIMATION_FRAMES"),I("YOODLE_ANIMATION_DURATION"),I("YOODLE_ANIMATION_DELAY"),I("YOODLE_STOP_ON_LAST_FRAME"))});I("SAFETY_MODE_PENDING")&&Hw("safetymode")},
void 0);q("ytbin.www.pageframe.cancelSetup",function(){yl()},void 0);})();
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.