var _yt_player={};(function(g){var window=this;var h,p=function(a){return void 0!==a},q=function(a,b,c){a=a.split(".");
c=c||aa;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]={}},r=function(a,b){for(var c=a.split("."),d=b||aa,e;e=c.shift();)if(null!=d[e])d=d[e];
else return null;return d},v=function(){},ba=function(a){a.getInstance=function(){return a.Sb?a.Sb:a.Sb=new a}},ca=function(a){var b=typeof a;
if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b},da=function(a){return"array"==ca(a)},ea=function(a){var b=ca(a);
return"array"==b||"object"==b&&"number"==typeof a.length},w=function(a){return"string"==typeof a},fa=function(a){return"boolean"==typeof a},ga=function(a){return"number"==typeof a},ha=function(a){return"function"==ca(a)},ia=function(a){var b=typeof a;
return"object"==b&&null!=a||"function"==b},na=function(a){return a[ka]||(a[ka]=++ma)},oa=function(a,b,c){return a.call.apply(a.bind,arguments)},pa=function(a,b,c){if(!a)throw Error();
if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},y=function(a,b,c){y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?oa:pa;
return y.apply(null,arguments)},qa=function(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)}},ra=function(a,b){for(var c in b)a[c]=b[c]},sa=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));
return a},B=function(a,b){function c(){}
c.prototype=b.prototype;a.N=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){for(var k=Array(arguments.length-2),m=2;m<arguments.length;m++)k[m-2]=arguments[m];return b.prototype[c].apply(a,k)}},ta=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ta);
else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))},ua=function(a,b){return 0==a.lastIndexOf(b,0)},va=function(a,b){var c=a.length-b.length;
return 0<=c&&a.indexOf(b,c)==c},C=function(a){return/^[\s\xa0]*$/.test(a)},wa=function(a){return(0,window.encodeURIComponent)(String(a))},xa=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))},Ga=function(a){if(!za.test(a))return a;
-1!=a.indexOf("&")&&(a=a.replace(Aa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ba,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ca,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Da,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ea,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Fa,"&#0;"));return a},Ka=function(a){return Ha(a,"&")?"document"in aa?Ia(a):Ja(a):a},Ia=function(a){var b={"&amp;":"&",
"&lt;":"<","&gt;":">","&quot;":'"'},c;c=aa.document.createElement("div");return a.replace(La,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var k=Number("0"+e.substr(1));(0,window.isNaN)(k)||(f=String.fromCharCode(k))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})},Ja=function(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(!(0,window.isNaN)(d))return String.fromCharCode(d)}return a}})},Ma=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");
return a},Ha=function(a,b){return-1!=a.indexOf(b)},Na=function(a,b){return Ha(a.toLowerCase(),b.toLowerCase())},Pa=function(a,b,c){a=p(c)?a.toFixed(c):String(a);
c=a.indexOf(".");-1==c&&(c=a.length);return Oa("0",Math.max(0,b-c))+a},E=function(a){return null==a?"":String(a)},Qa=function(a){return Array.prototype.join.call(arguments,"")},Ta=function(a,b){for(var c=0,d=Ra(String(a)).split("."),e=Ra(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var m=d[k]||"",l=e[k]||"",n=RegExp("(\\d*)(\\D*)","g"),t=RegExp("(\\d*)(\\D*)","g");
do{var u=n.exec(m)||["","",""],x=t.exec(l)||["","",""];if(0==u[0].length&&0==x[0].length)break;c=Sa(0==u[1].length?0:(0,window.parseInt)(u[1],10),0==x[1].length?0:(0,window.parseInt)(x[1],10))||Sa(0==u[2].length,0==x[2].length)||Sa(u[2],x[2])}while(0==c)}return c},Sa=function(a,b){return a<b?-1:a>b?1:0},Va=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;
return b},Xa=function(){return"goog_"+Wa++},Ya=function(a){var b=Number(a);
return 0==b&&C(a)?window.NaN:b},Za=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})},$a=function(a){var b=w(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()})},ab=function(a){(0,window.isFinite)(a)&&(a=String(a));
return w(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN},bb=function(a,b,c){a=a.split(b);
for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d},cb=function(a){return a[a.length-1]},eb=function(a,b,c){b=db(a,b,c);
return 0>b?null:w(a)?a.charAt(b):a[b]},db=function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;
return-1},gb=function(a,b){var c=fb(a,b,void 0);
return 0>c?null:w(a)?a.charAt(c):a[c]},fb=function(a,b,c){for(var d=w(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;
return-1},jb=function(a,b){return 0<=ib(a,b)},kb=function(a){return 0==a.length},lb=function(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];
a.length=0},nb=function(a,b){jb(a,b)||a.push(b)},pb=function(a,b){var c=ib(a,b),d;
(d=0<=c)&&ob(a,c);return d},ob=function(a,b){Array.prototype.splice.call(a,b,1)},qb=function(a,b){var c=db(a,b,void 0);
0<=c&&ob(a,c)},rb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},sb=function(a){var b=a.length;
if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},tb=function(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 k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}},vb=function(a,b,c,d){Array.prototype.splice.apply(a,ub(arguments,1))},ub=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},wb=function(a,b,c){function d(a){return ia(a)?"o"+na(a):(typeof a).charAt(0)+a}
b=b||a;c=c||d;for(var e={},f=0,k=0;k<a.length;){var m=a[k++],l=c(m);Object.prototype.hasOwnProperty.call(e,l)||(e[l]=!0,b[f++]=m)}b.length=f},Ab=function(a,b,c){return xb(a,c||zb,!1,b)},Bb=function(a,b){return xb(a,b,!0,void 0,void 0)},xb=function(a,b,c,d,e){for(var f=0,k=a.length,m;f<k;){var l=f+k>>1,n;
c?n=b.call(e,a[l],l,a):n=b(d,a[l]);0<n?f=l+1:(k=l,m=!n)}return m?f:~f},Cb=function(a,b){a.sort(b||zb)},Db=function(a,b,c){var d=c||zb;
Cb(a,function(a,c){return d(b(a),b(c))})},Eb=function(a,b){Db(a,function(a){return a[b]},void 0)},Gb=function(a,b,c){if(!ea(a)||!ea(b)||a.length!=b.length)return!1;
var d=a.length;c=c||Fb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0},zb=function(a,b){return a>b?1:a<b?-1:0},Fb=function(a,b){return a===b},Hb=function(a,b,c){c=Ab(a,b,c);
0>c&&vb(a,-(c+1),0,b)},Ib=function(a,b,c){var d={};
F(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d},Jb=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;
return b},Kb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];
if(da(d))for(var e=0;e<d.length;e+=8192)for(var f=ub(d,e,e+8192),f=Kb.apply(null,f),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b},G=function(){this.Xa=this.Xa;
this.La=this.La},I=function(a,b){Lb(a,qa(Mb,b))},Lb=function(a,b){a.Xa?b.call(void 0):(a.La||(a.La=[]),a.La.push(p(void 0)?y(b,void 0):b))},Mb=function(a){a&&"function"==typeof a.dispose&&a.dispose()},Nb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];
ea(d)?Nb.apply(null,d):Mb(d)}},Ob=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Pb=function(a,b,c){var d={},e;
for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d},Qb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;
return!1},Rb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;
return!0},Sb=function(a){var b=0,c;
for(c in a)b++;return b},Ub=function(a,b){return Tb(a,b)},Vb=function(a){var b=[],c=0,d;
for(d in a)b[c++]=a[d];return b},Wb=function(a){var b=[],c=0,d;
for(d in a)b[c++]=d;return b},Xb=function(a,b){for(var c=ea(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],p(a));c++);
return a},Yb=function(a,b){return null!==a&&b in a},Tb=function(a,b){for(var c in a)if(a[c]==b)return!0;
return!1},Zb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d},$b=function(a,b){var c=Zb(a,b,void 0);
return c&&a[c]},ac=function(a){for(var b in a)return!1;
return!0},bc=function(a){for(var b in a)delete a[b]},cc=function(a,b){b in a&&delete a[b]},dc=function(a,b,c){return null!==a&&b in a?a[b]:c},ec=function(a){var b={},c;
for(c in a)b[c]=a[c];return b},fc=function(a){var b=ca(a);
if("object"==b||"array"==b){if(ha(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=fc(a[c]);return b}return a},hc=function(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<gc.length;f++)c=gc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},ic=function(a){var b=arguments.length;
if(1==b&&da(arguments[0]))return ic.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c},jc=function(a,b){this.type=a;
this.currentTarget=this.target=b;this.defaultPrevented=this.A=!1;this.Hr=!0},kc=function(a){a.stopPropagation()},lc=function(a){lc[" "](a);
return a},nc=function(a,b){try{return lc(a[b]),!0}catch(c){}return!1},pc=function(a){return Ha(oc,a)},qc=function(){return pc("Opera")||pc("OPR")},rc=function(){return(pc("Chrome")||pc("CriOS"))&&!qc()&&!pc("Edge")},sc=function(){return pc("iPhone")&&!pc("iPod")&&!pc("iPad")},tc=function(){var a=aa.document;
return a?a.documentMode:void 0},wc=function(a){return uc[a]||(uc[a]=0<=Ta(vc,a))},yc=function(a){return Number(xc)>=a},Cc=function(a){return zc?"webkit"+a:Ac?"o"+a.toLowerCase():a.toLowerCase()},Dc=function(a,b){jc.call(this,a?a.type:"");
this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.o=this.state=null;a&&this.init(a,b)},Fc=function(a){return!(!a||!a[Ec])},Hc=function(a,b,c,d,e){this.listener=a;
this.o=null;this.src=b;this.type=c;this.zf=!!d;this.fd=e;this.key=++Gc;this.ig=this.gi=!1},Ic=function(a){a.ig=!0;
a.listener=null;a.o=null;a.src=null;a.fd=null},Jc=function(a){this.src=a;
this.o={};this.A=0},Lc=function(a,b,c,d,e,f){var k=b.toString();
b=a.o[k];b||(b=a.o[k]=[],a.A++);var m=Kc(b,c,e,f);-1<m?(a=b[m],d||(a.gi=!1)):(a=new Hc(c,a.src,k,!!e,f),a.gi=d,b.push(a));return a},Mc=function(a,b){var c=b.type;
if(!(c in a.o))return!1;var d=pb(a.o[c],b);d&&(Ic(b),0==a.o[c].length&&(delete a.o[c],a.A--));return d},Nc=function(a,b,c,d,e){a=a.o[b.toString()];
b=-1;a&&(b=Kc(a,c,d,e));return-1<b?a[b]:null},Kc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];
if(!f.ig&&f.listener==b&&f.zf==!!c&&f.fd==d)return e}return-1},Oc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Oc(a,b[f],c,d,e);
return null}c=Pc(c);return Fc(a)?a.R(b,c,d,e):Qc(a,b,c,!1,d,e)},Qc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");
var k=!!e,m=Rc(a);m||(a[Sc]=m=new Jc(a));c=Lc(m,b,c,d,e,f);if(c.o)return c;d=Tc();c.o=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Uc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Vc++;return c},Tc=function(){var a=Wc,b=Xc?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},Yc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Yc(a,b[f],c,d,e);
return null}c=Pc(c);return Fc(a)?Lc(a.P,String(b),c,!0,d,e):Qc(a,b,c,!0,d,e)},Zc=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)Zc(a,b[f],c,d,e);
else c=Pc(c),Fc(a)?a.za(b,c,d,e):a&&(a=Rc(a))&&(b=Nc(a,b,c,!!d,e))&&$c(b)},$c=function(a){if(ga(a)||!a||a.ig)return!1;
var b=a.src;if(Fc(b))return Mc(b.P,a);var c=a.type,d=a.o;b.removeEventListener?b.removeEventListener(c,d,a.zf):b.detachEvent&&b.detachEvent(Uc(c),d);Vc--;(c=Rc(b))?(Mc(c,a),0==c.A&&(c.src=null,b[Sc]=null)):Ic(a);return!0},Uc=function(a){return a in ad?ad[a]:ad[a]="on"+a},cd=function(a,b,c,d){var e=!0;
if(a=Rc(a))if(b=a.o[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.zf==c&&!f.ig&&(f=bd(f,d),e=e&&!1!==f)}return e},bd=function(a,b){var c=a.listener,d=a.fd||a.src;
a.gi&&$c(a);return c.call(d,b)},Wc=function(a,b){if(a.ig)return!0;
if(!Xc){var c=b||r("window.event"),d=new Dc(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(l){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.A&&0<=k;k--){d.currentTarget=c[k];var m=cd(c[k],f,!0,d),e=e&&m}for(k=0;!d.A&&k<c.length;k++)d.currentTarget=c[k],m=cd(c[k],f,!1,d),e=e&&m}return e}return bd(a,new Dc(b,this))},Rc=function(a){a=a[Sc];
return a instanceof Jc?a:null},Pc=function(a){if(ha(a))return a;
a[dd]||(a[dd]=function(b){return a.handleEvent(b)});
return a[dd]},J=function(){G.call(this);
this.P=new Jc(this);this.Na=this;this.xa=null},ed=function(a,b,c,d){b=a.P.o[String(b)];
if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.ig&&k.zf==c){var m=k.listener,l=k.fd||k.src;k.gi&&Mc(a.P,k);e=!1!==m.call(l,d)&&e}}return e&&0!=d.Hr},fd=function(a,b,c){this.D=c;
this.B=a;this.C=b;this.A=0;this.o=null},gd=function(a,b){a.C(b);
a.A<a.D&&(a.A++,b.next=a.o,a.o=b)},hd=function(a){return function(){return a}},id=function(a){var b;
b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}},jd=function(a){aa.setTimeout(function(){throw a;
},0)},md=function(a,b){var c=a;
b&&(c=y(a,b));!ha(aa.setImmediate)||aa.Window&&aa.Window.prototype&&!pc("Edge")&&aa.Window.prototype.setImmediate==aa.setImmediate?(kd||(kd=ld()),kd(c)):aa.setImmediate(c)},ld=function(){var a=aa.MessageChannel;
"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!pc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.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=y(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&&!pc("Trident")&&!pc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.xo;c.xo=null;a()}};
return function(a){d.next={xo:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT");
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
window.document.documentElement.appendChild(b)}:function(a){aa.setTimeout(a,0)}},nd=function(){this.A=this.o=null},od=function(){this.next=this.scope=this.o=null},vd=function(a,b){qd||rd();
sd||(qd(),sd=!0);var c=td,d=ud.get();d.set(a,b);c.A?c.A.next=d:c.o=d;c.A=d},rd=function(){if(aa.Promise&&aa.Promise.resolve){var a=aa.Promise.resolve(void 0);
qd=function(){a.then(wd)}}else qd=function(){md(wd)}},wd=function(){for(var a=null;a=td.remove();){try{a.o.call(a.scope)}catch(b){jd(b)}gd(ud,a)}sd=!1},xd=function(a){a.prototype.then=a.prototype.then;
a.prototype.$goog_Thenable=!0},yd=function(a){if(!a)return!1;
try{return!!a.$goog_Thenable}catch(b){return!1}},Ad=function(a,b){this.o=0;
this.G=void 0;this.C=this.A=this.B=null;this.D=this.F=!1;if(a!=v)try{var c=this;a.call(b,function(a){zd(c,2,a)},function(a){zd(c,3,a)})}catch(d){zd(this,3,d)}},Bd=function(){this.next=this.context=this.A=this.C=this.o=null;
this.B=!1},Ed=function(a,b,c){var d=Cd.get();
d.C=a;d.A=b;d.context=c;return d},Fd=function(a){return new Ad(function(b,c){c(a)})},Hd=function(a,b){return Gd(a,null,b,void 0)},Id=function(a,b){if(0==a.o)if(a.B){var c=a.B;
if(c.A){for(var d=0,e=null,f=null,k=c.A;k&&(k.B||(d++,k.o==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.o&&1==d?Id(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Jd(c),Kd(c,e,3,b)))}a.B=null}else zd(a,3,b)},Md=function(a,b){a.A||2!=a.o&&3!=a.o||Ld(a);
a.C?a.C.next=b:a.A=b;a.C=b},Gd=function(a,b,c,d){var e=Ed(null,null,null);
e.o=new Ad(function(a,k){e.C=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){k(n)}}:a;
e.A=c?function(b){try{var e=c.call(d,b);!p(e)&&b instanceof Nd?k(b):a(e)}catch(n){k(n)}}:k});
e.o.B=a;Md(a,e);return e.o},zd=function(a,b,c){if(0==a.o){a==c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));
a.o=1;var d;a:{var e=c,f=a.J,k=a.K;if(e instanceof Ad)Md(e,Ed(f||v,k||null,a)),d=!0;else if(yd(e))e.then(f,k,a),d=!0;else{if(ia(e))try{var m=e.then;if(ha(m)){Od(e,m,f,k,a);d=!0;break a}}catch(l){k.call(a,l);d=!0;break a}d=!1}}d||(a.G=c,a.o=b,a.B=null,Ld(a),3!=b||c instanceof Nd||Pd(a,c))}},Od=function(a,b,c,d,e){function f(a){m||(m=!0,d.call(e,a))}
function k(a){m||(m=!0,c.call(e,a))}
var m=!1;try{b.call(a,k,f)}catch(l){f(l)}},Ld=function(a){a.F||(a.F=!0,vd(a.H,a))},Jd=function(a){var b=null;
a.A&&(b=a.A,a.A=b.next,b.next=null);a.A||(a.C=null);return b},Kd=function(a,b,c,d){if(3==c&&b.A&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;
if(b.o)b.o.B=null,Qd(b,c,d);else try{b.B?b.C.call(b.context):Qd(b,c,d)}catch(e){Rd.call(null,e)}gd(Cd,b)},Qd=function(a,b,c){2==b?a.C.call(a.context,c):a.A&&a.A.call(a.context,c)},Pd=function(a,b){a.D=!0;
vd(function(){a.D&&Rd.call(null,b)})},Nd=function(a){ta.call(this,a)},Sd=function(a,b){J.call(this);
this.o=a||1;this.A=b||aa;this.B=y(this.zx,this);this.C=K()},Td=function(a,b){a.o=b;
a.yc&&a.enabled?(a.stop(),a.start()):a.yc&&a.stop()},Ud=function(a,b,c){if(ha(a))c&&(a=y(a,c));
else if(a&&"function"==typeof a.handleEvent)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:aa.setTimeout(a,b||0)},Vd=function(a){aa.clearTimeout(a)},Wd=function(a,b,c){G.call(this);
this.o=a;this.C=b||0;this.A=c;this.B=y(this.$o,this)},Xd=function(a){a.stop();
a.$o()},Yd=function(a){if(a.classList)return a.classList;
a=a.className;return w(a)&&a.match(/\S+/g)||[]},Zd=function(a,b){return a.classList?a.classList.contains(b):jb(Yd(a),b)},L=function(a,b){a.classList?a.classList.add(b):Zd(a,b)||(a.className+=0<a.className.length?" "+b:b)},$d=function(a,b){if(a.classList)F(b,function(b){L(a,b)});
else{var c={};F(Yd(a),function(a){c[a]=!0});
F(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}},be=function(a,b){a.classList?a.classList.remove(b):Zd(a,b)&&(a.className=ae(Yd(a),function(a){return a!=b}).join(" "))},ce=function(a,b){a.classList?F(b,function(b){be(a,b)}):a.className=ae(Yd(a),function(a){return!jb(b,a)}).join(" ")},M=function(a,b,c){c?L(a,b):be(a,b)},de=function(a){a=String(a);
if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},ee=function(a){return eval("("+a+")")},ge=function(a,b){return(new fe(b)).Cc(a)},fe=function(a){this.o=a},he=function(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],he(a,a.o?a.o.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),ie(d,c),c.push(":"),he(a,a.o?a.o.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":ie(b,c);break;case "number":c.push((0,window.isFinite)(b)&&
!(0,window.isNaN)(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},ie=function(a,b){b.push('"',a.replace(je,function(a){var b=ke[a];
b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),ke[a]=b);return b}),'"')},le=function(a,b,c){return Math.min(Math.max(a,b),c)},me=function(a,b){var c=a%b;
return 0>c*b?c+b:c},ne=function(a,b,c){return a+c*(b-a)},pe=function(a){return oe(arguments,function(a,c){return a+c},0)},qe=function(a){return pe.apply(null,arguments)/arguments.length},re=function(a,b){this.x=p(a)?a:0;
this.y=p(b)?b:0},se=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1},te=function(a,b,c,d){this.top=a;
this.right=b;this.bottom=c;this.left=d},ue=function(a,b){this.width=a;
this.height=b},ve=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1},we=function(a,b,c,d){this.left=a;
this.top=b;this.width=c;this.height=d},xe=function(a){return new te(a.top,a.left+a.width,a.top+a.height,a.left)},ye=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1},ze=function(a){return new ue(a.width,a.height)},Ae=function(a){return new re(a.left,a.top)},Be=function(a){G.call(this);
this.D=1;this.B=[];this.C=0;this.o=[];this.A={};this.F=!!a},Ce=function(a,b,c,d){if(b=a.A[b]){var e=a.o;
if(b=eb(b,function(a){return e[a+1]==c&&e[a+2]==d}))return a.qc(b)}return!1},De=function(a,b,c){vd(function(){a.apply(b,c)})},Ee=function(){},Ge=function(a){if(a instanceof Ee)return a;
if("function"==typeof a.gc)return a.gc(!1);if(ea(a)){var b=0,c=new Ee;c.next=function(){for(;;){if(b>=a.length)throw Fe;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");},He=function(a,b,c){if(ea(a))try{F(a,b,c)}catch(d){if(d!==Fe)throw d;
}else{a=Ge(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Fe)throw d;}}},Ie=function(a){if(ea(a))return sb(a);
a=Ge(a);var b=[];He(a,function(a){b.push(a)});
return b},Je=function(a,b){this.A={};
this.o=[];this.Be=this.Aa=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Je?(c=a.Qa(),d=a.Oa()):(c=Wb(a),d=Vb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}},Le=function(a,b){return Ke(a.A,b)},Me=function(a,b){return a===b},Ne=function(a){if(a.Aa!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];
Ke(a.A,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.Aa!=a.o.length){for(var e={},c=b=0;b<a.o.length;)d=a.o[b],Ke(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}},Ke=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Oe=function(a){return a.fb&&"function"==typeof a.fb?a.fb():ea(a)||w(a)?a.length:Sb(a)},Pe=function(a){if(a.Oa&&"function"==typeof a.Oa)return a.Oa();
if(w(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 Vb(a)},Qe=function(a){if(a.Qa&&"function"==typeof a.Qa)return a.Qa();
if(!a.Oa||"function"!=typeof a.Oa){if(ea(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Wb(a)}},Re=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);
else if(ea(a)||w(a))F(a,b,c);else for(var d=Qe(a),e=Pe(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)},Te=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);
if(ea(a)||w(a))return Se(a,b,c);for(var d=Qe(a),e=Pe(a),f=e.length,k=0;k<f;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0},Ue=function(a,b,c,d,e,f,k){var m="";
a&&(m+=a+":");c&&(m+="//",b&&(m+=b+"@"),m+=c,d&&(m+=":"+d));e&&(m+=e);f&&(m+="?"+f);k&&(m+="#"+k);return m},We=function(a){return a.match(Ve)},Xe=function(a){return a?(0,window.decodeURI)(a):a},Ye=function(a){return Xe(We(a)[3]||null)},Ze=function(a){return Number(We(a)[4]||null)||null},$e=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null,k=null;
0<=e?(f=c[d].substring(0,e),k=c[d].substring(e+1)):f=c[d];b(f,k?xa(k):"")}},af=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");
0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")},bf=function(a,b,c){if(da(b))for(var d=0;d<b.length;d++)bf(a,String(b[d]),c);
else null!=b&&c.push("&",a,""===b?"":"=",wa(b))},cf=function(a,b,c){for(c=c||0;c<b.length;c+=2)bf(b[c],b[c+1],a);
return a},df=function(a,b){for(var c in b)bf(c,b[c],a);
return a},ef=function(a){a=df([],a);
a[0]="";return a.join("")},ff=function(a,b){return af(2==arguments.length?cf([a],arguments[1],0):cf([a],arguments,1))},gf=function(a,b){return af(df([a],b))},hf=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);
if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1},kf=function(a,b){var c=a.search(jf),d=hf(a,0,b,c);
if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return xa(a.substr(d,e-d))},mf=function(a,b){for(var c=a.search(jf),d=0,e,f=[];0<=(e=hf(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);
f.push(a.substr(d));return f.join("").replace(lf,"$1")},nf=function(a,b,c){a=[mf(a,b),
"&",b];null!=c&&a.push("=",wa(c));return af(a)},N=function(a,b){this.A=this.H=this.C="";
this.D=null;this.J=this.B="";this.F=!1;var c;a instanceof N?(this.F=p(b)?b:a.F,of(this,a.C),this.H=a.H,pf(this,a.A),qf(this,a.D),rf(this,a.B),sf(this,a.o.clone()),this.J=a.Xe()):a&&(c=We(String(a)))?(this.F=!!b,of(this,c[1]||"",!0),this.H=tf(c[2]||""),pf(this,c[3]||"",!0),qf(this,c[4]),rf(this,c[5]||"",!0),sf(this,c[6]||"",!0),this.J=tf(c[7]||"")):(this.F=!!b,this.o=new uf(null,0,this.F))},of=function(a,b,c){a.C=c?tf(b,!0):b;
a.C&&(a.C=a.C.replace(/:$/,""))},pf=function(a,b,c){a.A=c?tf(b,!0):b;
return a},qf=function(a,b){if(b){b=Number(b);
if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null;return a},rf=function(a,b,c){a.B=c?tf(b,!0):b},sf=function(a,b,c){b instanceof uf?(a.o=b,vf(a.o,a.F)):(c||(b=wf(b,xf)),a.o=new uf(b,0,a.F));
return a},yf=function(a,b,c){a.o.set(b,c);
return a},Af=function(a,b,c){da(c)||(c=[String(c)]);
zf(a.o,b,c)},Bf=function(a){yf(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^K()).toString(36));
return a},Cf=function(a){return a instanceof N?a.clone():new N(a,void 0)},Df=function(a,b,c,d){var e=new N(null,void 0);
a&&of(e,a);b&&pf(e,b);c&&qf(e,c);d&&rf(e,d);return e},tf=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""},wf=function(a,b,c){return w(a)?(a=(0,window.encodeURI)(a).replace(b,Ef),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Ef=function(a){a=a.charCodeAt(0);
return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},uf=function(a,b,c){this.Aa=this.o=null;
this.A=a||null;this.B=!!c},Gf=function(a){a.o||(a.o=new Je,a.Aa=0,a.A&&$e(a.A,function(b,c){Ff(a,xa(b),c)}))},Ff=function(a,b,c){Gf(a);
a.A=null;b=Hf(a,b);var d=a.o.get(b);d||a.o.set(b,d=[]);d.push(c);a.Aa=a.Aa+1},Jf=function(a,b){Gf(a);
b=Hf(a,b);return Le(a.o,b)},zf=function(a,b,c){a.remove(b);
0<c.length&&(a.A=null,a.o.set(Hf(a,b),sb(c)),a.Aa=a.Aa+c.length)},Hf=function(a,b){var c=String(b);
a.B&&(c=c.toLowerCase());return c},vf=function(a,b){b&&!a.B&&(Gf(a),a.A=null,a.o.forEach(function(a,b){var e=b.toLowerCase();
b!=e&&(this.remove(b),zf(this,e,a))},a));
a.B=b},Kf=function(a,b){b.match(/\sstyle\s*=/);
a.innerHTML=b},Mf=function(){return Lf?'<div class="ytp-icon ytp-icon-cast-desktop-on"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M17.17,22 L25,22 L25,14 L12,14 L12,16.76 C11.06,16.30 10.05,15.97 9,15.79 L9,11 L28,11 L28,25 L18.12,25 C17.94,23.94 17.62,22.93 17.17,22 L17.17,22 Z M15.09,26 C14.69,22.23 11.73,19.24 8,18.84 L8,17.11 C12.68,17.52 16.40,21.28 16.81,26 L15.09,26 Z M11.91,26 C11.55,23.99 9.99,22.41 8,22.05 L8,20.32 C10.93,20.71 13.24,23.03 13.62,26 L11.91,26 Z M8,26 L8,23.52 C9.20,23.84 10.13,24.78 10.45,26 L8,26 Z M13,17.31 L13,15 L24,15 L24,21 L16.63,21 C15.72,19.50 14.47,18.24 13,17.31 L13,17.31 Z" id="ytp-svg-4" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-4" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-4" /></svg>'},
Nf=function(){return Lf?'<div class="ytp-icon ytp-icon-clip-clear"></div>':'<svg height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><path d="M14,14 L14,0 L0,0 L0,14 L14,14 Z" /><path d="M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z" fill="#fff" /></svg>'},Of=function(){return Lf?'<div class="ytp-icon ytp-icon-clip-end"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><defs><path d="M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z" id="ytp-svg-5" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-5" /><use fill="#eaeaea" xlink:href="#ytp-svg-5" /></svg>'},
Pf=function(){return Lf?'<div class="ytp-icon ytp-icon-clip-start"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><defs><path d="M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z" id="ytp-svg-6" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-6" /><use fill="#eaeaea" xlink:href="#ytp-svg-6" /></svg>'},Qf=function(){return Lf?'<div class="ytp-icon ytp-icon-close"></div>':'<svg height="100%" viewBox="0 0 24 24" width="100%"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" fill="#fff" /></svg>'},
Rf=function(){return Lf?'<div class="ytp-icon ytp-icon-playlist"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M9,11 L27,11 L27,14 L9,14 L9,11 Z M9,16 L27,16 L27,19 L9,19 L9,16 Z M9,21 L21,21 L21,24 L9,24 L9,21 Z M26,22.50 L22,25 L22,20 L26,22.50 Z" id="ytp-svg-34" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-34" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-34" /></svg>'},Sf=function(){return Lf?
'<div class="ytp-icon ytp-icon-replay"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M26.46,21.04 L30.96,16 L27.8,16 C26.87,11.43 22.84,8 18.00,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18.00,28 C21.18,28 24.00,26.51 25.84,24.19 L24.00,22.36 C22.65,24.21 20.47,25.42 18.00,25.42 C13.89,25.42 10.56,22.10 10.56,18 C10.56,13.89 13.89,10.57 18.00,10.57 C21.40,10.57 24.26,12.87 25.14,16 L21.96,16 L26.46,21.04" id="ytp-svg-36" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-36" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-36" /></svg>'},
Tf=function(){return Lf?'<div class="ytp-icon ytp-icon-settings"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M27,19.35 L27,16.65 L24.61,16.65 C24.44,15.79 24.10,14.99 23.63,14.28 L25.31,12.60 L23.40,10.69 L21.72,12.37 C21.01,11.90 20.21,11.56 19.35,11.38 L19.35,9 L16.65,9 L16.65,11.38 C15.78,11.56 14.98,11.90 14.27,12.37 L12.59,10.69 L10.68,12.60 L12.36,14.28 C11.89,14.99 11.55,15.79 11.38,16.65 L9,16.65 L9,19.35 L11.38,19.35 C11.56,20.21 11.90,21.01 12.37,21.72 L10.68,23.41 L12.59,25.32 L14.28,23.63 C14.99,24.1 15.79,24.44 16.65,24.61 L16.65,27 L19.35,27 L19.35,24.61 C20.21,24.44 21.00,24.1 21.71,23.63 L23.40,25.32 L25.31,23.41 L23.62,21.72 C24.09,21.01 24.43,20.21 24.61,19.35 L27,19.35 Z M18,22.05 C15.76,22.05 13.95,20.23 13.95,18 C13.95,15.76 15.76,13.95 18,13.95 C20.23,13.95 22.05,15.76 22.05,18 C22.05,20.23 20.23,22.05 18,22.05 L18,22.05 Z" id="ytp-svg-37" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-37" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-37" /></svg>'},
Uf=function(){return'<svg height="100%" version="1.1" viewBox="0 0 22 22" width="100%"><svg x="7" y="1"><circle class="ytp-spinner-dot ytp-spinner-dot-0" cx="4" cy="4" r="2" /></svg><svg x="11" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-1" cx="4" cy="4" r="2" /></svg><svg x="13" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-2" cx="4" cy="4" r="2" /></svg><svg x="11" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-3" cx="4" cy="4" r="2" /></svg><svg x="7" y="13"><circle class="ytp-spinner-dot ytp-spinner-dot-4" cx="4" cy="4" r="2" /></svg><svg x="3" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-5" cx="4" cy="4" r="2" /></svg><svg x="1" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-6" cx="4" cy="4" r="2" /></svg><svg x="3" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-7" cx="4" cy="4" r="2" /></svg></svg>'},
Vf=function(){return Lf?'<div class="ytp-icon ytp-icon-volume-muted"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M12.39,15.54 L10,15.54 L10,20.44 L12.4,20.44 L17,25.50 L17,10.48 L12.39,15.54 Z" id="ytp-svg-48" /><path d="M19.63,15.92 L20.68,14.93 L22.81,16.94 L24.94,14.93 L26,15.92 L23.86,17.93 L26,19.93 L24.94,20.92 L22.81,18.92 L20.68,20.92 L19.63,19.93 L21.76,17.93 L19.63,15.92 Z" id="ytp-svg-49" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-48" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-48" /><svg class="ytp-svg-sound-mute-group"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-49" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-49" /></svg></svg>'},
Yf=function(a,b){return b?a.replace(Wf,""):a},dg=function(a,b){for(var c=0,d=0,e=!1,f=Yf(a,b).split(Zf),k=0;k<f.length;k++){var m=f[k];
$f.test(Yf(m,void 0))?(c++,d++):ag.test(m)?e=!0:bg.test(Yf(m,void 0))?d++:cg.test(m)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1},fg=function(){this.o="";
this.A=eg},gg=function(a){return a instanceof fg&&a.constructor===fg&&a.A===eg?a.o:"type_error:Const"},hg=function(a){var b=new fg;
b.o=a;return b},jg=function(){this.o="";
this.A=ig},kg=function(a){var b=new jg;
b.o=a;return b},mg=function(){this.o="";
this.A=lg},ng=function(a){if(a instanceof mg&&a.constructor===mg&&a.A===lg)return a.o;
ca(a);return"type_error:SafeUrl"},qg=function(a){if(a instanceof mg)return a;
a=a.bf?a.he():String(a);og.test(a)||(a="about:invalid#zClosurez");return pg(a)},pg=function(a){var b=new mg;
b.o=a;return b},sg=function(){this.o="";
this.A=rg},tg=function(a){if(a instanceof sg&&a.constructor===sg&&a.A===rg)return a.o;
ca(a);return"type_error:TrustedResourceUrl"},ug=function(a){var b=new sg;
b.o=a;return b},wg=function(){this.o="";
this.B=vg;this.A=null},xg=function(a){if(a instanceof wg&&a.constructor===wg&&a.B===vg)return a.o;
ca(a);return"type_error:SafeHtml"},zg=function(a){function b(a){if(da(a))F(a,b);
else{var f;a instanceof wg?f=a:(f=null,a.Ol&&(f=a.Ff()),a=Ga(a.bf?a.he():String(a)),f=yg(a,f));d+=xg(f);f=f.Ff();0==c?c=f:0!=f&&c!=f&&(c=null)}}
var c=0,d="";F(arguments,b);return yg(d,c)},yg=function(a,b){var c=new wg;
c.o=a;c.A=b;return c},Fg=function(a,b,c){var d=null,e,f="";
if(b)for(e in b){if(!Ag.test(e))throw Error('Invalid attribute name "'+e+'".');var k=b[e];if(null!=k){var m,l=a;m=e;if(k instanceof fg)k=gg(k);else if("style"==m.toLowerCase()){if(!ia(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof jg)){var l="",n=void 0;for(n in k){if(!/^[-_a-zA-Z0-9]+$/.test(n))throw Error("Name allows only [-_a-zA-Z0-9], got: "+n);var t=k[n];if(null!=t){if(t instanceof fg)t=gg(t);else if(Bg.test(t)){for(var u=
!0,x=!0,A=0;A<t.length;A++){var D=t.charAt(A);"'"==D&&x?u=!u:'"'==D&&u&&(x=!x)}u&&x||(t="zClosurez")}else t="zClosurez";l+=n+":"+t+";"}}k=l?kg(l):Cg}l=void 0;k instanceof jg&&k.constructor===jg&&k.A===ig?l=k.o:(ca(k),l="type_error:SafeStyle");k=l}else{if(/^on/i.test(m))throw Error('Attribute "'+m+'" requires goog.string.Const value, "'+k+'" given.');if(m.toLowerCase()in Dg)if(k instanceof sg)k=tg(k);else if(k instanceof mg)k=ng(k);else if(w(k))k=qg(k).he();else throw Error('Attribute "'+m+'" on tag "'+
l+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+k+'" given.');}k.bf&&(k=k.he());m=m+'="'+Ga(String(k))+'"';f+=" "+m}}e="<"+a+f;null!=c?da(c)||(c=[c]):c=[];!0===Eg[a.toLowerCase()]?e+=">":(d=zg(c),e+=">"+xg(d)+"</"+a+">",d=d.Ff());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return yg(e,d)},Gg=function(a,b,c){var d={},e;
for(e in a)d[e]=a[e];for(e in b)d[e]=b[e];for(e in c){var f=e.toLowerCase();if(f in a)throw Error('Cannot override "'+f+'" attribute, got "'+e+'" with value "'+c[e]+'"');f in b&&delete d[f];d[e]=c[e]}return d},Hg=function(a,b){var c;
c=b instanceof mg?b:qg(b);a.href=ng(c)},Lg=function(a){return a?new Ig(Jg(a)):Kg||(Kg=new Ig)},Ng=function(a,b){var c=b||window.document;
return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Mg("*",a,b)},Og=function(a,b){var c=b||window.document,d=null;
c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Mg("*",a,b)[0];return d||null},Mg=function(a,b,c){var d=window.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,k;k=c[f];f++)a==k.nodeName&&(d[e++]=k);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;k=c[f];f++)a=k.className,"function"==typeof a.split&&jb(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c},Qg=function(a,b){Ob(b,function(b,d){"style"==d?
a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Pg.hasOwnProperty(d)?a.setAttribute(Pg[d],b):ua(d,"aria-")||ua(d,"data-")?a.setAttribute(d,b):a[d]=b})},Rg=function(a){a=a.document;
a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new ue(a.clientWidth,a.clientHeight)},Ug=function(a){var b=Sg(a);
a=a.parentWindow||a.defaultView;return Tg&&wc("10")&&a.pageYOffset!=b.scrollTop?new re(b.scrollLeft,b.scrollTop):new re(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)},Sg=function(a){return a.scrollingElement?a.scrollingElement:zc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement},Vg=function(a){return a?a.parentWindow||a.defaultView:window},O=function(a,b,c){return Wg(window.document,arguments)},Wg=function(a,b){var c=b[0],d=b[1];
if(!Xg&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ga(d.name),'"');if(d.type){c.push(' type="',Ga(d.type),'"');var e={};hc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:da(d)?c.className=d.join(" "):Qg(c,d));2<b.length&&Yg(a,c,b,2);return c},Yg=function(a,b,c,d){function e(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var f=c[d];!ea(f)||ia(f)&&0<f.nodeType?e(f):F(Zg(f)?sb(f):f,e)}},$g=function(a,b){a.appendChild(b)},ah=function(a,b){Yg(Jg(a),a,arguments,1)},bh=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},ch=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},dh=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},eh=function(a,b){var c=b.parentNode;
c&&c.replaceChild(a,b)},gh=function(a){return fh&&void 0!=a.children?a.children:ae(a.childNodes,function(a){return 1==a.nodeType})},ih=function(a){return p(a.firstElementChild)?a.firstElementChild:hh(a.firstChild)},hh=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;
return a},jh=function(a){return ia(a)&&1==a.nodeType},lh=function(a){var b;
if(kh&&!(Tg&&wc("9")&&!wc("10")&&aa.SVGElement&&a instanceof aa.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return jh(b)?b:null},mh=function(a,b){if(!a||!b)return!1;
if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},Jg=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},nh=function(a){try{return a.contentWindow||(a.contentDocument?Vg(a.contentDocument):null)}catch(b){}return null},oh=function(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{bh(a);var c=Jg(a);a.appendChild(c.createTextNode(String(b)))}},ph=function(a){if("outerHTML"in a)return a.outerHTML;
var b=Jg(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML},sh=function(a){var b;
if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!qh(a)||rh(a)):qh(a)&&rh(a))&&Tg){var c;!ha(a.getBoundingClientRect)||Tg&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a},qh=function(a){a=a.getAttributeNode("tabindex");
return null!=a&&a.specified},rh=function(a){a=a.tabIndex;
return ga(a)&&0<=a&&32768>a},Zg=function(a){if(a&&"number"==typeof a.length){if(ia(a))return"function"==typeof a.item||"string"==typeof a.item;
if(ha(a))return"function"==typeof a.item}return!1},uh=function(a,b,c,d){if(!b&&!c)return null;
var e=b?b.toUpperCase():null;return th(a,function(a){return(!e||a.nodeName==e)&&(!c||w(a.className)&&jb(a.className.split(/\s+/),c))},d)},vh=function(a,b){return uh(a,null,b,void 0)},th=function(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;
a=a.parentNode;d++}return null},Ig=function(a){this.o=a||aa.document||window.document},wh=function(a){a=a.o;
return a.parentWindow||a.defaultView},yh=function(a,b){if(a in b)return b[a];
var c=xh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]},Ah=function(a,b){var c;
zh(a,function(a){c=yh(a,b);return!!c});
return c},Bh=function(a,b){if("on"+a in b)return a;
var c=xh+a;return"on"+c in b?c:null},Ch=function(){return!!Ah(["fullscreenEnabled",
"fullScreenEnabled"],window.document)},Dh=function(){return Ah(["fullscreenElement",
"fullScreenElement"],window.document)},Hh=function(a){a=a||{};
this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ec(Eh);this.assets=a.assets||{};this.attrs=a.attrs||ec(Fh);this.params=a.params||ec(Gh);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||{}},Ih=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);
return a?50<=(0,window.parseInt)(a[1],10):!1},Jh=function(a,b){var c=new window.XMLHttpRequest;
c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};
c.onerror=function(){b(!1)};
try{c.open("GET",a,!0),c.send()}catch(d){b(!1)}},Ph=function(a){if(a>=Kh.length)Lh();
else{var b=Kh[a],c="chrome-extension://"+b+Mh;0<=Nh.indexOf(b)?Jh(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,Oh(c,Lh)):Ph(a+1)}):Oh(c,function(){Ph(a+1)})}},Oh=function(a,b){var c=window.document.createElement("script");
c.onerror=b;c.src=a;(window.document.head||window.document.documentElement).appendChild(c)},Lh=function(){var a=window.__onGCastApiAvailable;
a&&"function"==typeof a&&a(!1,"No cast extension found")},Qh=function(){if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;
if(a){a({command:"cast.sender.init"});return}}window.chrome?(a=window.navigator.userAgent,0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation?(a=Ih()?"50":"",Oh("//www.gstatic.com/eureka/clank"+a+Mh,Lh)):Ph(0)):Lh()},Wh=function(a){Rh();
Sh.push(a);Vh(Sh)},Xh=function(a){var b=r("yt.mdx.remote.debug.handlers_");
pb(b||[],a)},$h=function(a,b){Rh();
var c=Sh,d=Yh(a,String(b));kb(c)?Zh(d):(Vh(c),F(c,function(a){a(d)}))},Rh=function(){Sh||(Sh=r("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",Sh,void 0))},Zh=function(a){var b=(ai+1)%50;
ai=b;bi[b]=a;ci||(ci=49==b)},Vh=function(a){var b=bi;
if(b[0]){var c=ai,d=ci?c:-1;do{var d=(d+1)%50,e=b[d];F(a,function(a){a(e)})}while(d!=c);
bi=Array(50);ai=-1;ci=!1}},Yh=function(a,b){var c=(K()-di)/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("")},ei=function(a){a=a||{};
this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""},fi=function(a,b){return!!b&&(a.id==b||a.uuid==b)},gi=function(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},hi=function(a){return{name:a.name,
screenId:a.id,loungeToken:a.token,dialId:a.uuid}},ii=function(a){return new ei(a)},ki=function(a){return da(a)?ji(a,ii):[]},li=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"},mi=function(a){return da(a)?"["+ji(a,li).join(",")+"]":"null"},oi=function(a,b,c){a&&(a.dataset?a.dataset[ni(b)]=c:a.setAttribute("data-"+b,c))},ni=function(a){return pi[a]||(pi[a]=String(a).replace(/\-([a-z])/g,
function(a,c){return c.toUpperCase()}))},si=function(a){qi(ri,arguments)},ti=function(a,b){return a in ri?ri[a]:b},vi=function(a,b){ha(a)&&(a=ui(a));
return window.setTimeout(a,b)},wi=function(a,b){ha(a)&&(a=ui(a));
return window.setInterval(a,b)},xi=function(a){window.clearTimeout(a)},yi=function(a){window.clearInterval(a)},ui=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw zi(b),b;
}}:a},zi=function(a,b){var c=r("yt.logging.errors.log");
c?c(a,b,void 0,void 0):(c=ti("ERRORS",[]),c.push([a,b,void 0,void 0]),si("ERRORS",c))},Bi=function(a){qi(Ai,arguments)},Q=function(a,b,c){var d=b||{};
if(a=a in Ai?Ai[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a},qi=function(a,b){if(1<b.length){var c=b[0];
a[c]=b[1]}else{var d=b[0];for(c in d)a[c]=d[c]}},Hi=function(a,b,c){var d=Ci();
if(d){var e=d.subscribe(a,function(){if(!Di||Di!=e){var d=arguments,k;k=function(){Ei[e]&&b.apply(c||window,d)};
try{Fi[a]?k():vi(k,0)}catch(m){zi(m)}}},c);
Ei[e]=!0;Gi[a]||(Gi[a]=[]);Gi[a].push(e);return e}return 0},Ii=function(a){var b=Ci();
b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete Ei[a]}))},Ji=function(a,b){var c=Ci();
c&&c.publish.apply(c,arguments)},Ki=function(a,b){Fi[a]=!0;
var c=Ci();c&&c.publish.apply(c,arguments);Fi[a]=!1},Ci=function(){return r("yt.pubsub.instance_")},Li=function(){},Mi=function(){},Ni=function(a){this.o=a},Oi=function(){var a=null;
try{a=window.localStorage||null}catch(b){}this.o=a},Pi=function(){var a=null;
try{a=window.sessionStorage||null}catch(b){}this.o=a},Qi=function(a){this.o=a},Ri=function(a){this.o=a},Si=function(a){this.data=a},Ti=function(a){return!p(a)||a instanceof Si?a:new Si(a)},Ui=function(a){this.o=a},Vi=function(a){var b=a.creation;
a=a.expiration;return!!a&&a<K()||!!b&&b>K()},Wi=function(a){this.o=a},Xi=function(a,b){var c=[];
He(b,function(a){var b;try{b=Wi.prototype.A.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}p(b)?Vi(b)&&c.push(a):c.push(a)},a);
return c},Yi=function(a,b){var c=Xi(a,b);
F(c,function(a){Wi.prototype.remove.call(this,a)},a)},$i=function(){var a=Zi;
Yi(a,a.o.gc(!0))},bj=function(a,b,c){var d=c&&0<c?c:0;
c=d?K()+1E3*d:0;if((d=d?Zi:aj)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}},cj=function(a){if(!aj&&!Zi||!window.JSON)return null;
var b;try{b=aj.get(a)}catch(c){}if(!w(b))try{b=Zi.get(a)}catch(c){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b},dj=function(a){aj&&aj.remove(a);
Zi&&Zi.remove(a)},ej=function(a,b){gg(a);
gg(a);return yg(b,null)},fj=function(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var k=c[e].split("=");
if(1==k.length&&k[0]||2==k.length){var m=xa(k[0]||""),k=xa(k[1]||"");m in d?da(d[m])?tb(d[m],k):d[m]=[d[m],k]:d[m]=k}}return d},gj=function(a,b){var c=[];
Ob(a,function(a,b){var f=wa(b),k;da(a)?k=a:k=[a];F(k,function(a){""==a?c.push(f):c.push(f+"="+wa(a))})});
return c.join(b)},hj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));
return fj(a,"&")},ij=function(a){a=a.split(",");
return a=a.map(function(a){return hj(a)})},jj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),hj(1<a.length?a[1]:a[0])):{}},lj=function(a,b){return kj(a,b||{},!0)},kj=function(a,b,c){var d=a.split("#",2);
a=d[0];var d=1<d.length?"#"+d[1]:"",e=a.split("?",2);a=e[0];var e=hj(e[1]||""),f;for(f in b)if(c||!Yb(e,f))e[f]=b[f];return gf(a,e)+d},mj=function(a){var b;
b||(b=window.location.href);var c=We(a)[1]||null,d=Ye(a);c&&d?(a=We(a),b=We(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Ye(b)==d&&Ze(b)==Ze(a):!0;return a},nj=function(){var a;
a||(a=window.document.location.href);a=We(a)[1]||null;return null!==a&&"https"==a},oj=function(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:return!0;
default:return!1}},rj=function(a,b,c,d,e,f,k){function m(){4==(l&&"readyState"in l?l.readyState:0)&&b&&ui(b)(l)}
var l=pj&&pj();if(!("open"in l))return null;"onloadend"in l?l.addEventListener("loadend",m,!1):l.onreadystatechange=m;c=(c||"GET").toUpperCase();d=d||"";l.open(c,a,!0);f&&(l.responseType=f);k&&(l.withCredentials=!0);f="POST"==c;if(e=qj(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},qj=function(a,b){b=b||{};
var c=mj(a),d;for(d in sj){var e=ti(sj[d]),f;if((f=e)&&!(f=c)){f=d;var k=ti("CORS_HEADER_WHITELIST")||{},m=Ye(a);f=m?(k=k[m])?jb(k,f):!1:!0}f&&(b[d]=e)}return b},uj=function(a,b){b.method="POST";
b.Ib||(b.Ib={});tj(a,b)},vj=function(a,b){var c=ti("XSRF_FIELD_NAME",void 0),d;
b.headers&&(d=b.headers["Content-Type"]);return!b.rO&&(!Ye(a)||b.withCredentials||Ye(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Ib&&b.Ib[c])},tj=function(a,b){var c=b.format||"JSON";
b.vO&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=ti("XSRF_FIELD_NAME",void 0),e=ti("XSRF_TOKEN",void 0),f=b.Tc;f&&(f[d]&&delete f[d],a=lj(a,f));var k=b.postBody||"",f=b.Ib;vj(a,b)&&(f||(f={}),f[d]=e);f&&w(k)&&(d=hj(k),hc(d,f),k=ef(d));var m=!1,l,n=rj(a,function(a){if(!m){m=!0;l&&xi(l);var d=oj(a),e=null;if(d||400<=a.status&&500>a.status)e=wj(c,a,b.Uw);if(d)a:{switch(c){case "XML":d=0==(0,window.parseInt)(e&&
e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||aa;d?b.tb&&b.tb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.$b&&b.$b.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.Od&&0<b.timeout&&(l=vi(function(){m||(m=!0,n.abort(),xi(l),b.Od.call(b.context||aa,n))},b.timeout));
return n},wj=function(a,b,c){var d=null;
switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=ee(a));break;case "XML":if(b=(b=b.responseXML)?xj(b):null)d={},F(b.getElementsByTagName("*"),function(a){d[a.tagName]=yj(a)})}c&&zj(d);
return d},zj=function(a){if(ia(a))for(var b in a)"html_content"==b||va(b,"_html")?a[b]=ej(hg("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):zj(a[b])},xj=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null},yj=function(a){var b="";
F(a.childNodes,function(a){b+=a.nodeValue});
return b},Aj=function(a){this.C=this.B="";
this.o="/api/lounge";this.A=!0;a=a||window.document.location.href;var b=Ze(a)||"";b&&(this.C=":"+b);this.B=Ye(a)||"";a=oc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ta(a,"10.0")&&(this.A=!1))},Cj=function(a,b,c,d){var e=a.o;
if(p(d)?d:a.A)e="https://"+a.B+a.C+a.o;return gf(e+b,c||{})},Dj=function(a,b,c,d,e){a={format:"JSON",
method:"POST",context:a,timeout:5E3,withCredentials:!1,tb:qa(a.F,d,!0),onError:qa(a.D,e),Od:qa(a.G,e)};c&&(a.Ib=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return tj(b,a)},Ej=function(a){this.o=this.name=this.id="";
this.status="UNKNOWN";a&&(this.id=a.id||"",this.name=a.name||"",this.o=a.activityId||"",this.status=a.status||"UNKNOWN")},Fj=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;
return("x"==a?b:b&3|8).toString(16)})},Gj=function(a){return ji(a,function(a){return{key:a.id,
name:a.name}})},Hj=function(a){return ji(a,function(a){return new Ej(a)})},Ij=function(a,b){return eb(a,function(a){return a.id==b})},Jj=function(a,b){return eb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})},Kj=function(a,b){return eb(a,function(a){return fi(a,b)})},Lj=function(){G.call(this);
this.Y=new Be;I(this,this.Y)},Mj=function(a){Lj.call(this);
this.F=a;this.screens=[]},Nj=function(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},Oj=function(a,b){var c=a.screens.length!=b.length;
a.screens=ae(a.screens,function(a){return!!Jj(b,a)});
for(var d=0,e=b.length;d<e;d++)c=Nj(a,b[d])||c;return c},Pj=function(a,b){var c=a.screens.length;
a.screens=ae(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.screens.length<c},Qj=function(a,b,c,d){Lj.call(this);
this.G=a;this.F=b;this.C=c;this.D=d;this.B=0;this.o=null;this.A=window.NaN},Rj=function(a,b){this.A=a;
this.o=b+"::"},Sj=function(a){var b=new Oi;
return b.isAvailable()?a?new Rj(b,a):b:null},Uj=function(a){this.o=new Je;
if(a){a=Pe(a);for(var b=a.length,c=0;c<b;c++)Tj(this,a[c])}},Vj=function(a){var b=typeof a;
return"object"==b&&a||"function"==b?"o"+na(a):b.substr(0,1)+a},Tj=function(a,b){a.o.set(Vj(b),b)},Wj=function(a,b){var c=Oe(b);
if(a.fb()>c)return!1;!(b instanceof Uj)&&5<c&&(b=new Uj(b));return Te(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.Te&&"function"==typeof c.Te?c.Te(a):ea(c)||w(c)?jb(c,a):Tb(c,a)})},Yj=function(a){this.app=this.name=this.id="";
this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new Uj;this.theme="u";a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.username=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new Uj(ae((a.capabilities||"").split(","),qa(Ub,Xj))))},Zj=function(a){this.o=a},bk=function(a){a=(a.o.cookie||"").split(ak);
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}},kk=function(){var a=fk(),b=gk();
jb(a,b);hk()&&Hb(a,b);a=ik(a);if(kb(a))try{jk.remove("remote_sid","/","youtube.com")}catch(d){}else try{var c=a.join(",");jk.set("remote_sid",c,-1,"/","youtube.com")}catch(d){}},fk=function(){var a=cj("yt-remote-connected-devices")||[];
Cb(a);return a},ik=function(a){if(kb(a))return[];
var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return ji(a,function(a,b){return 0==b?a:a.substring(c.length)})},lk=function(a){bj("yt-remote-connected-devices",a,86400)},gk=function(){if(mk)return mk;
var a=cj("yt-remote-device-id");a||(a=Fj(),bj("yt-remote-device-id",a,31536E3));for(var b=fk(),c=1,d=a;jb(b,d);)c++,d=a+"#"+c;return mk=d},nk=function(){return cj("yt-remote-session-browser-channel")},hk=function(){return cj("yt-remote-session-screen-id")},qk=function(a){5<a.length&&(a=a.slice(a.length-5));
var b=ji(ok(),function(a){return a.loungeToken}),c=ji(a,function(a){return a.loungeToken});
Se(c,function(a){return!jb(b,a)})&&pk();
bj("yt-remote-local-screens",a,31536E3)},ok=function(){return cj("yt-remote-local-screens")||[]},pk=function(){bj("yt-remote-lounge-token-expiration",!0,86400)},rk=function(a){bj("yt-remote-online-screens",a,60)},sk=function(){return cj("yt-remote-online-dial-devices")||[]},tk=function(a,b){bj("yt-remote-session-browser-channel",a);
bj("yt-remote-session-screen-id",b);var c=fk(),d=gk();jb(c,d)||c.push(d);lk(c);kk()},uk=function(a){a||(dj("yt-remote-session-screen-id"),dj("yt-remote-session-video-id"));
kk();a=fk();pb(a,gk());lk(a)},wk=function(){if(!vk){var a=Sj();
a&&(vk=new Qi(a))}return vk?!!vk.get("yt-remote-use-staging-server"):!1},yk=function(a){Mj.call(this,"LocalScreenService");
this.A=a;this.o=window.NaN;xk(this);this.info("Initializing with "+mi(this.screens))},zk=function(a){if(a.screens.length){var b=ji(a.screens,function(a){return a.id}),c=Cj(a.A,"/pairing/get_lounge_token_batch");
Dj(a.A,c,{screen_ids:b.join(",")},y(a.Mx,a),y(a.Lx,a))}},xk=function(a){var b=ki(ok()),b=ae(b,function(a){return!a.uuid});
return Oj(a,b)},Ak=function(a,b){qk(ji(a.screens,hi));
b&&pk()},Ck=function(a,b){Lj.call(this);
this.D=b;for(var c=cj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.D(),f=0,k=e.length;f<k;++f){var m=e[f].id;d[m]=jb(c,m)}this.o=d;this.F=a;this.B=this.C=window.NaN;this.A=null;Bk("Initialized with "+ge(this.o))},Dk=function(a,b,c){var d=Cj(a.F,"/pairing/get_screen_availability");
Dj(a.F,d,{lounge_token:b.token},y(function(a){a=a.screens||[];for(var d=0,k=a.length;d<k;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),y(function(){c(!1)},a))},Fk=function(a,b){var c;
a:if(Sb(b)!=Sb(a.o))c=!1;else{c=Wb(b);for(var d=0,e=c.length;d<e;++d)if(!a.o[c[d]]){c=!1;break a}c=!0}c||(Bk("Updated online screens: "+ge(a.o)),a.o=b,a.U("screenChange"));Ek(a)},Gk=function(a){(0,window.isNaN)(a.B)||xi(a.B);
a.B=vi(y(a.ym,a),0<a.C&&a.C<K()?2E4:1E4)},Bk=function(a){$h("OnlineScreenService",a)},Hk=function(a){var b={};
F(a.D(),function(a){a.token?b[a.token]=a.id:this.cb("Requesting availability of screen w/o lounge token.")});
return b},Ek=function(a){var b=Wb(Pb(a.o,function(a){return a}));
Cb(b);b.length?bj("yt-remote-online-screen-ids",b.join(","),60):dj("yt-remote-online-screen-ids");a=ae(a.D(),function(a){return!!this.o[a.id]},a);
rk(ji(a,hi))},Jk=function(a){Mj.call(this,"ScreenService");
this.D=a;this.o=this.A=null;this.B=[];this.C={};Ik(this)},Mk=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);
c||(c=a.C[b]);var k=a.sc();if(k=(c?Kj(k,c):null)||Kj(k,b)){k.uuid=b;var m=Kk(a,k);Dk(a.o,m,function(a){e(a?m:null)})}else c?Lk(a,c,y(function(a){var f=Kk(this,new ei({name:d,
screenId:c,loungeToken:a,dialId:b||""}));Dk(this.o,f,function(a){e(a?f:null)})},a),f):e(null)},Nk=function(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},Lk=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);
var e={Ib:{screen_ids:b},method:"POST",context:a,tb:function(a,e){var m=e&&e.screens||[];m[0]&&m[0].screenId==b?c(m[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
tj(Cj(a.D,"/pairing/get_lounge_token_batch"),e)},Ok=function(a){a.screens=a.A.sc();
var b=a.C,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: "+mi(a.screens))},Ik=function(a){Pk(a);
a.A=new yk(a.D);a.A.subscribe("screenChange",y(a.Xx,a));Ok(a);a.B=ki(cj("yt-remote-automatic-screen-cache")||[]);Pk(a);a.info("Initializing automatic screens: "+mi(a.B));a.o=new Ck(a.D,y(a.sc,a,!0));a.o.subscribe("screenChange",y(function(){this.U("onlineScreenChange")},a))},Kk=function(a,b){var c=a.get(b.id);
c?(c.uuid=b.uuid,b=c):((c=Kj(a.B,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),bj("yt-remote-automatic-screen-cache",ji(a.B,hi)));Pk(a);a.C[b.uuid]=b.id;bj("yt-remote-device-id-map",a.C,31536E3);return b},Pk=function(a){a.C=cj("yt-remote-device-id-map")||{}},Qk=function(a,b,c){Lj.call(this);
this.M=c;this.J=a;this.A=b;this.B=null},Rk=function(a,b){$h(a.M,b)},Tk=function(a,b){Qk.call(this,a,b,"CastSession");
this.o=null;this.D=0;this.C=null;this.G=y(this.KE,this);this.F=y(this.rD,this);this.D=vi(y(function(){Sk(this,null)},this),12E4)},Vk=function(a){var b=a.C.videoId||a.C.videoIds[a.C.index];
b&&Uk(a,"flingVideo",{videoId:b,currentTime:a.C.currentTime||0});a.C=null},Uk=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+ge(c));
var d={};d.type=b;c&&(d.data=c);a.o?a.o.sendMessage("urn:x-cast:com.google.youtube.mdx",d,v,y(function(){Rk(this,"Failed to send message: "+b+".")},a)):Rk(a,"Sending yt message without session: "+ge(d))},Sk=function(a,b){xi(a.D);
if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.B||a.B.id!=b){var c=y(a.ij,a),d=y(a.nc,a);a.Vo(b,c,d,5)}}else a.nc(Error("Waiting for session status timed out."))},Wk=function(a,b){Qk.call(this,a,b,"DialSession");
this.D=this.H=null;this.K="";this.C=null;this.G=v;this.F=window.NaN;this.L=y(this.NE,this);this.o=v},Xk=function(a){a.o=a.J.Es(a.K,a.A.label,a.A.friendlyName,y(function(a){this.o=v;
this.ij(a)},a),y(function(a){this.o=v;
this.nc(a)},a))},Yk=function(a){var b={};
b.pairingCode=a.K;if(a.C){var c=a.C.index||0,d=a.C.currentTime||0;b.v=a.C.videoId||a.C.videoIds[c];b.t=d}wk()&&(b.env_useStageMdx=1);return ef(b)},Zk=function(a,b){Qk.call(this,a,b,"ManualSession");
this.o=vi(y(this.cg,this,null),150)},$k=function(a){Lj.call(this);
this.A=a;this.o=null;this.D=!1;this.B=[];this.C=y(this.lC,this)},al=function(a,b){return b?eb(a.B,function(a){return fi(b,a.label)},a):null},bl=function(a){$h("Controller",a)},cl=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)},dl=function(a){return a.D||!!a.B.length||!!a.o},el=function(a,b,c){Mb(a.o);
(a.o=b)?(c?a.U("yt-remote-cast2-receiver-resumed",b.A):a.U("yt-remote-cast2-receiver-selected",b.A),b.subscribe("sessionScreen",y(a.ir,a,b)),b.B?a.U("yt-remote-cast2-session-change",b.B):c&&a.o.cg(null)):a.U("yt-remote-cast2-session-change",null)},fl=function(a){var b=a.A.Ds(),c=a.o&&a.o.A;
a=ji(b,function(a){c&&fi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,f=al(this,a);f?(f.label=b,f.friendlyName=a.name):(f=new window.chrome.cast.Receiver(b,a.name),f.receiverType=window.chrome.cast.ReceiverType.CUSTOM);return f},a);
c&&(c.receiverType!=window.chrome.cast.ReceiverType.CUSTOM&&(c=new window.chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=window.chrome.cast.ReceiverType.CUSTOM),a.push(c));return a},ol=function(a,b,c){gl()?il(b)&&(jl(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?kl(a,c):(window.__onGCastApiAvailable=function(b,e){b?kl(a,c):(ll("Failed to load cast API: "+e),ml(!1),jl(!1),dj("yt-remote-cast-available"),dj("yt-remote-cast-receiver"),nl(),c(!1))},Qh())):hl("Cannot initialize because not running Chrome")},
nl=function(){hl("dispose");
var a=pl();a&&a.dispose();ql=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);rl(!1);Ii(sl);sl.length=0},tl=function(){return!!cj("yt-remote-cast-installed")},ul=function(){var a=cj("yt-remote-cast-receiver");
return a?Ka(a.friendlyName):null},xl=function(){return tl()?pl()?ql.getCastSession():(ll("getCastSelector: Cast is not initialized."),null):(ll("getCastSelector: Cast API is not installed!"),null)},Al=function(){tl()?pl()?zl()?(hl("Requesting cast selector."),ql.requestSession()):(hl("Wait for cast API to be ready to request the session."),sl.push(Hi("yt-remote-cast2-api-ready",Al))):ll("requestCastSelector: Cast is not initialized."):ll("requestCastSelector: Cast API is not installed!")},Bl=function(a){zl()?
pl().setLaunchParams(a):ll("setLaunchParams called before ready.")},Dl=function(){var a=Cl();
zl()?pl().setConnectedScreenStatus(a,"YouTube TV"):ll("setConnectedScreenStatus called before ready.")},gl=function(){var a=0<=oc.search(/\ (CrMo|Chrome|CriOS)\//);
return El||a},Fl=function(a,b){ql.init(a,b)},il=function(a){var b=!1;
if(!ql){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new $k(a),c.subscribe("yt-remote-cast2-availability-change",function(a){bj("yt-remote-cast-available",a);Ji("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){hl("onReceiverSelected: "+a.friendlyName);
bj("yt-remote-cast-receiver",a);Ji("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){hl("onReceiverResumed: "+a.friendlyName);
bj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){hl("onSessionChange: "+li(a));
a||dj("yt-remote-cast-receiver");Ji("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
ql=c}hl("cloudview.createSingleton_: "+b);return b},pl=function(){ql||(ql=r("yt.mdx.remote.cloudview.instance_"));
return ql},kl=function(a,b){ml(!0);
jl(!1);Fl(a,function(a){a?(rl(!0),Ji("yt-remote-cast2-api-ready")):(ll("Failed to initialize cast API."),ml(!1),dj("yt-remote-cast-available"),dj("yt-remote-cast-receiver"),nl());b(a)})},hl=function(a){$h("cloudview",a)},ll=function(a){$h("cloudview",a)},ml=function(a){hl("setCastInstalled_ "+a);
bj("yt-remote-cast-installed",a)},zl=function(){return!!r("yt.mdx.remote.cloudview.apiReady_")},rl=function(a){hl("setApiReady_ "+a);
q("yt.mdx.remote.cloudview.apiReady_",a,void 0)},jl=function(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)},Gl=function(a,b){this.action=a;
this.params=b||null},Il=function(a){this.type="";
this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;if(a=a||window.event){this.event=a;for(var b in a)b in Hl||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;(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;this.o=a.pageX;this.A=a.pageY}},Jl=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+
window.document.documentElement.scrollTop;
a.o=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.A=a.clientY+b}},Ll=function(a,b,c,d){a.addEventListener&&("mouseenter"!=b||"onmouseenter"in window.document?"mouseleave"!=b||"onmouseenter"in window.document?"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");
return Zb(Kl,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})},Nl=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";
d=!!d;var e=Ll(a,b,c,d);if(e)return e;var e=++Ml.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new Il(d);if(!th(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Il(b);
b.currentTarget=a;return c.call(a,b)};
k=ui(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"),a.addEventListener(b,k,d)):a.attachEvent("on"+b,k);Kl[e]=[a,b,c,k,d];return e},Pl=function(a,b,c){var d;
return d=Nl(a,b,function(){Ol(d);c.apply(a,arguments)},void 0)},Rl=function(a,b){return Ql(a,b,function(a){return Zd(a,"iv-card-poll-choice-input")})},Ql=function(a,b,c){var d=a||window.document;
return Nl(d,"change",function(a){var f=th(a.target,function(a){return a===d||c(a)});
f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})},Ol=function(a){a&&("string"==typeof a&&(a=[a]),F(a,function(a){if(a in Kl){var c=Kl[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 Kl[a]}}))},Sl=function(a){for(var b in Kl)Kl[b][0]==a&&Ol(b)},Tl=function(a){a=a||window.event;
a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a},Ul=function(a){a=a||window.event;
return a.path&&a.path.length?a.path[0]:Tl(a)},Vl=function(a){a=a||window.event;
var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b},Wl=function(a){a=a||window.event;
var b=a.pageX,c=a.pageY;window.document.body&&window.document.documentElement&&(b||(b=a.clientX+window.document.body.scrollLeft+window.document.documentElement.scrollLeft),c||(c=a.clientY+window.document.body.scrollTop+window.document.documentElement.scrollTop));return new re(b,c)},Xl=function(a){a=a||window.event;
a.returnValue=!1;a.preventDefault&&a.preventDefault()},Yl=function(a){a=a||window.event;
return!1===a.returnValue||a.Np&&a.Np()},Zl=function(a){a=a||window.event;
return a.keyCode?a.keyCode:a.which},$l=function(a,b){var c=0;
"MozMousePixelScroll"==a.type?c=b==(a.axis==a.HORIZONTAL_AXIS)?a.detail:0:window.opera?c=b?0:a.detail:c=0==a.wheelDelta%120?"WebkitTransform"in window.document.documentElement.style?window.chrome&&0==window.navigator.platform.indexOf("Mac")?(b?a.wheelDeltaX:a.wheelDeltaY)/-30:(b?a.wheelDeltaX:a.wheelDeltaY)/-1.2:b?0:a.wheelDelta/-1.6:(b?a.wheelDeltaX:a.wheelDeltaY)/-3;return c},am=function(){if(!("cast"in window))return!1;
var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a},bm=function(a){$h("CAST",a)},dm=function(a){var b=cm();
b&&b.logMessage&&b.logMessage(a)},fm=function(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;em.length;)em.shift()()},km=function(){if(!r("yt.mdx.remote.castv2_")&&!gm&&(kb(hm)&&tb(hm,sk()),am())){var a=cm();
a?(a.removeReceiverListener("YouTube",im),a.addReceiverListener("YouTube",im),bm("API initialized in the other binary")):(a=new window.cast.Api,jm(a),a.addReceiverListener("YouTube",im),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){vi(function(){window.location.reload(!0)},1E3)}),Wh(dm),bm("API initialized"));
gm=!0}},lm=function(){var a=cm();
a&&(bm("API disposed"),Xh(dm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(v),a.removeReceiverListener("YouTube",im),jm(null));gm=!1;em=null;(a=Ll(window,"message",fm,!1))&&Ol(a)},mm=function(a){var b=db(hm,function(b){return b.id==a.id});
0<=b&&(hm[b]={id:a.id,name:a.name,activityId:a.o,status:a.status})},im=function(a){a.length&&bm("Updating receivers: "+ge(a));
nm(a);Ji("yt-remote-cast-device-list-update");F(om(),function(a){pm(a.id)});
F(a,function(a){if(a.isTabProjected){var c=qm(a.id);bm("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");vi(function(){Ji("yt-remote-cast-device-tab-projected",c.id)},1E3)}})},rm=function(a,b){bm("Updating "+a+" activity status: "+ge(b));
var c=qm(a);c?(b.activityId&&(c.o=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.o=""),mm(c),Ji("yt-remote-cast-device-status-update",c)):bm("Device not found")},om=function(){km();
return Hj(hm)},nm=function(a){a=ji(a,function(a){var c={id:a.id,
name:Ka(a.name)};if(a=qm(a.id))c.activityId=a.o,c.status=a.status;return c});
lb(hm);tb(hm,a)},qm=function(a){var b=om();
return eb(b,function(b){return b.id==a})||null},pm=function(a){var b=qm(a),c=cm();
c&&b&&b.o&&c.getActivityStatus(b.o,function(b){"error"==b.status&&(b.status="stopped");rm(a,b)})},sm=function(a){km();
var b=qm(a),c=cm();c&&b&&b.o?(bm("Stopping cast activity"),c.stopActivity(b.o,qa(rm,a))):bm("Dropping cast activity stop")},cm=function(){return r("yt.mdx.remote.castapi.api_")},jm=function(a){q("yt.mdx.remote.castapi.api_",a,void 0)},tm=function(){},um=function(){this.o=K()},vm=function(a,b){this.A=new fe(a);
this.o=b?ee:de},wm=function(a){this.A=0;
this.B=a||100;this.o=[]},xm=function(a,b){if(b>=a.o.length)throw Error("Out of bounds exception");
return a.o.length<a.B?b:(a.A+Number(b))%a.B},ym=function(a,b,c){G.call(this);
this.C=null!=c?y(a,c):a;this.B=b;this.A=y(this.LC,this);this.o=[]},zm=function(a){a.Ye=Ud(a.A,a.B);
a.C.apply(null,a.o)},Am=function(a){G.call(this);
this.C=a;this.A={}},Dm=function(a,b,c,d,e){Cm(a,b,c,d,!1,e)},Cm=function(a,b,c,d,e,f){da(c)||(c&&(Em[0]=c.toString()),c=Em);
for(var k=0;k<c.length;k++){var m=Oc(b,c[k],d||a.handleEvent,e||!1,f||a.C||a);if(!m)break;a.A[m.key]=m}return a},Gm=function(a,b,c,d){Fm(a,b,c,d,void 0)},Hm=function(a,b,c,d,e){Fm(a,b,c,d,!1,e)},Fm=function(a,b,c,d,e,f){if(da(c))for(var k=0;k<c.length;k++)Fm(a,b,c[k],d,e,f);
else(b=Yc(b,c,d||a.handleEvent,e,f||a.C||a))&&(a.A[b.key]=b)},Im=function(a){switch(a){case 0:return"No Error";
case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}},Jm=function(){},Lm=function(a){var b;
(b=a.o)||(b={},Km(a)&&(b[0]=!0,b[1]=!0),b=a.o=b);return b},Mm=function(){},Nm=function(a){return(a=Km(a))?new window.ActiveXObject(a):new window.XMLHttpRequest},Km=function(a){if(!a.A&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.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 window.ActiveXObject(d),a.A=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.A},Om=function(a,b,c,d,e){this.o=a;
this.B=c;this.H=d;this.G=e||1;this.D=45E3;this.C=new Am(this);this.A=new Sd;Td(this.A,250)},Qm=function(a,b,c){a.Mf=1;
a.ie=Bf(b.clone());a.df=c;a.F=!0;Pm(a,null)},Rm=function(a,b,c,d,e){a.Mf=1;
a.ie=Bf(b.clone());a.df=null;a.F=c;e&&(a.Lr=!1);Pm(a,d)},Pm=function(a,b){a.oh=K();
Sm(a);a.we=a.ie.clone();Af(a.we,"t",a.G);a.Ah=0;a.Cb=a.o.Mk(a.o.uh()?b:null);0<a.sl&&(a.mj=new ym(y(a.vs,a,a.Cb),a.sl));a.C.R(a.Cb,"readystatechange",a.ED);var c=a.Ze?ec(a.Ze):{};a.df?(a.Kj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.Cb.send(a.we,a.Kj,a.df,c)):(a.Kj="GET",a.Lr&&!zc&&(c.Connection="close"),a.Cb.send(a.we,a.Kj,null,c));a.o.Oc(1)},$m=function(a,b,c){for(var d=!0;!a.Pe&&a.Ah<c.length;){var e=Tm(a,c);
if(e==Um){4==b&&(a.$e=4,Vm(),d=!1);break}else if(e==Wm){a.$e=4;Vm();d=!1;break}else Xm(a,e)}4==b&&0==c.length&&(a.$e=1,Vm(),d=!1);a.Rc=a.Rc&&d;d||(Ym(a),Zm(a))},Tm=function(a,b){var c=a.Ah,d=b.indexOf("\n",c);
if(-1==d)return Um;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Wm;d+=1;if(d+c>b.length)return Um;var e=b.substr(d,c);a.Ah=d+c;return e},cn=function(a,b){a.oh=K();
Sm(a);var c=b?window.location.hostname:"";a.we=a.ie.clone();yf(a.we,"DOMAIN",c);yf(a.we,"t",a.G);try{a.Sc=new window.ActiveXObject("htmlfile")}catch(n){Ym(a);a.$e=7;Vm();Zm(a);return}var d="<html><body>";if(b){for(var e="",f=0;f<c.length;f++){var k=c.charAt(f);if("<"==k)e+="\\x3c";else if(">"==k)e+="\\x3e";else{if(k in an)k=an[k];else if(k in bn)k=an[k]=bn[k];else{var m=k,l=k.charCodeAt(0);if(31<l&&127>l)m=k;else{if(256>l){if(m="\\x",16>l||256<l)m+="0"}else m="\\u",4096>l&&(m+="0");m+=l.toString(16).toUpperCase()}k=
an[k]=m}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=ej(hg("b/12014412"),d);a.Sc.open();a.Sc.write(xg(c));a.Sc.close();a.Sc.parentWindow.m=y(a.UC,a);a.Sc.parentWindow.d=y(a.or,a,!0);a.Sc.parentWindow.rpcClose=y(a.or,a,!1);c=a.Sc.createElement("DIV");a.Sc.parentWindow.document.body.appendChild(c);d=qg(a.we.toString());d=Ga(ng(d));d=ej(hg("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=xg(d);a.o.Oc(1)},Sm=function(a){a.cn=K()+a.D;
dn(a,a.D)},dn=function(a,b){if(null!=a.vg)throw Error("WatchDog timer not null");
a.vg=en(y(a.kD,a),b)},fn=function(a){a.vg&&(aa.clearTimeout(a.vg),a.vg=null)},Zm=function(a){a.o.ap()||a.Pe||a.o.hj(a)},Ym=function(a){fn(a);
Mb(a.mj);a.mj=null;a.A.stop();a.C.removeAll();if(a.Cb){var b=a.Cb;a.Cb=null;gn(b);b.dispose()}a.Sc&&(a.Sc=null)},Xm=function(a,b){try{a.o.Zq(a,b),a.o.Oc(4)}catch(c){}},jn=function(a,b,c,d,e){if(0==d)c(!1);
else{var f=e||0;d--;hn(a,b,function(e){e?c(!0):aa.setTimeout(function(){jn(a,b,c,d,f)},f)})}},hn=function(a,b,c){var d=new window.Image;
d.onload=function(){try{kn(d),c(!0)}catch(a){}};
d.onerror=function(){try{kn(d),c(!1)}catch(a){}};
d.onabort=function(){try{kn(d),c(!1)}catch(a){}};
d.ontimeout=function(){try{kn(d),c(!1)}catch(a){}};
aa.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a},kn=function(a){a.onload=null;
a.onerror=null;a.onabort=null;a.ontimeout=null},ln=function(a){this.o=a;
this.A=new vm(null,!0)},nn=function(a){var b=mn(a.o,a.Lg,"/mail/images/cleardot.gif");
Bf(b);jn(b.toString(),5E3,y(a.Jw,a),3,2E3);a.Oc(1)},pn=function(a){var b=a.o.J;
if(null!=b)Vm(),b?(Vm(),on(a.o,a,!1)):(Vm(),on(a.o,a,!0));else if(a.oc=new Om(a,0,void 0,void 0,void 0),a.oc.Ze=a.pl,b=a.o,b=mn(b,b.uh()?a.Yg:null,a.rl),Vm(),!Tg||yc(10))Af(b,"TYPE","xmlhttp"),Rm(a.oc,b,!1,a.Yg,!1);else{Af(b,"TYPE","html");var c=a.oc;a=!!a.Yg;c.Mf=3;c.ie=Bf(b.clone());cn(c,a)}},qn=function(a){J.call(this);
this.headers=new Je;this.M=a||null;this.B=!1;this.L=this.o=null;this.Z=this.H="";this.A=0;this.F="";this.C=this.S=this.G=this.O=!1;this.D=0;this.J=null;this.ca="";this.K=this.Y=!1},rn=function(a,b){a.D=Math.max(0,b)},sn=function(a){return Tg&&wc(9)&&ga(a.timeout)&&p(a.ontimeout)},tn=function(a){return"content-type"==a.toLowerCase()},wn=function(a,b){a.B=!1;
a.o&&(a.C=!0,a.o.abort(),a.C=!1);a.F=b;a.A=5;un(a);vn(a)},un=function(a){a.O||(a.O=!0,a.aa("complete"),a.aa("error"))},gn=function(a,b){a.o&&a.B&&(xn(a,"Aborting"),a.B=!1,a.C=!0,a.o.abort(),a.C=!1,a.A=b||7,a.aa("complete"),a.aa("abort"),vn(a))},Bn=function(a){if(a.B&&"undefined"!=typeof yn)if(a.L[1]&&4==zn(a)&&2==a.getStatus())xn(a,"Local request error detected and ignored");
else if(a.G&&4==zn(a))Ud(a.Vq,0,a);else if(a.aa("readystatechange"),4==zn(a)){xn(a,"Request complete");a.B=!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=We(String(a.H))[1]||null;if(!f&&aa.self&&aa.self.location)var k=aa.self.location.protocol,f=k.substr(0,k.length-1);e=!An.test(f?f.toLowerCase():"")}d=e}if(d)a.aa("complete"),a.aa("success");else{a.A=6;var m;try{m=2<zn(a)?a.o.statusText:
""}catch(l){m=""}a.F=m+" ["+a.getStatus()+"]";un(a)}}finally{vn(a)}}},vn=function(a,b){if(a.o){Cn(a);
var c=a.o,d=a.L[0]?v:null;a.o=null;a.L=null;b||a.aa("ready");try{c.onreadystatechange=d}catch(e){}}},Cn=function(a){a.o&&a.K&&(a.o.ontimeout=null);
ga(a.J)&&(Vd(a.J),a.J=null)},zn=function(a){return a.o?a.o.readyState:0},Dn=function(a){try{return a.o?a.o.responseText:""}catch(b){return""}},xn=function(a,b){return b+" ["+a.Z+" "+a.H+" "+a.getStatus()+"]"},En=function(a,b,c){this.G=a||null;
this.o=1;this.A=[];this.C=[];this.D=new vm(null,!0);this.H=b||null;this.J=null!=c?c:null},Fn=function(a,b){this.o=a;
this.map=b;this.context=null},Gn=function(a){jc.call(this,"statevent",a)},Hn=function(a,b){jc.call(this,"timingevent",a);
this.size=b},In=function(a){jc.call(this,"serverreachability",a)},Mn=function(a){Jn(a);
if(3==a.o){var b=a.gh++,c=a.Ci.clone();yf(c,"SID",a.B);yf(c,"RID",b);yf(c,"TYPE","terminate");Kn(a,c);b=new Om(a,0,a.B,b,void 0);b.Mf=2;b.ie=Bf(c.clone());(new window.Image).src=b.ie;b.oh=K();Sm(b)}Ln(a)},Jn=function(a){if(a.be){var b=a.be;
b.oc&&(b.oc.cancel(),b.oc=null);b.Fd=-1;a.be=null}a.vb&&(a.vb.cancel(),a.vb=null);a.Cd&&(aa.clearTimeout(a.Cd),a.Cd=null);Nn(a);a.Wb&&(a.Wb.cancel(),a.Wb=null);a.ee&&(aa.clearTimeout(a.ee),a.ee=null)},Pn=function(a,b){if(0==a.o)throw Error("Invalid operation: sending map when state is closed");
a.A.push(new Fn(a.Lz++,b));2!=a.o&&3!=a.o||On(a)},On=function(a){a.Wb||a.ee||(a.ee=en(y(a.lr,a),0),a.Tg=0)},Sn=function(a,b){if(1==a.o){if(!b){a.gh=Math.floor(1E5*Math.random());
var c=a.gh++,d=new Om(a,0,"",c,void 0);d.Ze=null;var e=Qn(a),f=a.Ci.clone();yf(f,"RID",c);a.G&&yf(f,"CVER",a.G);Kn(a,f);Qm(d,f,e);a.Wb=d;a.o=2}}else 3==a.o&&(b?Rn(a,b):0!=a.A.length&&(a.Wb||Rn(a)))},Rn=function(a,b){var c,d;
b?6<a.Re?(a.A=a.C.concat(a.A),a.C.length=0,c=a.gh-1,d=Qn(a)):(c=b.H,d=b.df):(c=a.gh++,d=Qn(a));var e=a.Ci.clone();yf(e,"SID",a.B);yf(e,"RID",c);yf(e,"AID",a.ag);Kn(a,e);c=new Om(a,0,a.B,c,a.Tg+1);c.Ze=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Wb=c;Qm(c,e,d)},Kn=function(a,b){if(a.Mb){var c=a.Mb.Ro(a);
c&&Ob(c,function(a,c){yf(b,c,a)})}},Qn=function(a){var b=Math.min(a.A.length,1E3),c=["count="+b],d;
6<a.Re&&0<b?(d=a.A[0].o,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.A[e].o,k=a.A[e].map,f=6>=a.Re?e:f-d;try{Re(k,function(a,b){c.push("req"+f+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(m){c.push("req"+f+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.C=a.C.concat(a.A.splice(0,b));
return c.join("&")},Tn=function(a){a.vb||a.Cd||(a.F=1,a.Cd=en(y(a.kr,a),0),a.yf=0)},Vn=function(a){if(a.vb||a.Cd||3<=a.yf)return!1;
a.F++;a.Cd=en(y(a.kr,a),Un(a,a.yf));a.yf++;return!0},on=function(a,b,c){a.Jj=c;
a.Jc=b.Fd;a.hx(1,0);a.Ci=mn(a,null,a.nl);On(a)},Nn=function(a){null!=a.Ue&&(aa.clearTimeout(a.Ue),a.Ue=null)},Un=function(a,b){var c=5E3+Math.floor(1E4*Math.random());
a.isActive()||(c*=2);return c*b},Xn=function(a,b){if(2==b||9==b){var c=null;
a.Mb&&(c=null);var d=y(a.dE,a);c||(c=new N("//www.google.com/images/cleardot.gif"),Bf(c));hn(c.toString(),1E4,d)}else Vm();Wn(a,b)},Wn=function(a,b){a.o=0;
a.Mb&&a.Mb.yo(a,b);Ln(a);Jn(a)},Ln=function(a){a.o=0;
a.Jc=-1;if(a.Mb)if(0==a.C.length&&0==a.A.length)a.Mb.Ck(a);else{var b=sb(a.C),c=sb(a.A);a.C.length=0;a.A.length=0;a.Mb.Ck(a,b,c)}},mn=function(a,b,c){var d=Cf(c);
if(""!=d.A)b&&pf(d,b+"."+d.A),qf(d,d.D);else var e=window.location,d=Df(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Rg&&Ob(a.Rg,function(a,b){yf(d,b,a)});
yf(d,"VER",a.Re);Kn(a,d);return d},en=function(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");
return aa.setTimeout(function(){a()},b)},Vm=function(){Yn.aa(new Gn(Yn))},Zn=function(){},ao=function(a,b){Sd.call(this);
this.D=0;if(ha(a))b&&(a=y(a,b));else if(a&&ha(a.handleEvent))a=y(a.handleEvent,a);else throw Error("Invalid listener argument");this.G=a;Oc(this,"tick",y(this.F,this));$n(this)},$n=function(a){a.stop();
Td(a,5E3+2E4*Math.random())},bo=function(a,b){this.L=a;
this.C=b;this.B=new Be;this.A=new ao(this.EE,this);this.o=null;this.K=!1;this.F=null;this.J="";this.H=this.D=0;this.G=[]},co=function(a){return{firstTestResults:[""],
secondTestResults:!a.o.Jj,sessionId:a.o.B,arrayId:a.o.ag}},eo=function(a,b){a.H=b||0;
a.A.stop();a.o&&(3==a.o.o&&Sn(a.o),Mn(a.o));a.H=0},fo=function(a,b){(a.C.loungeIdToken=b)||a.A.stop()},go=function(){this.o=[];
this.A=[]},ho=function(a){kb(a.o)&&(a.o=a.A,a.o.reverse(),a.A=[])},io=function(a,b){a.A.push(b)},jo=function(a){ho(a);
return a.o.pop()},ko=function(a){ho(a);
return cb(a.o)},lo=function(a){this.videoIds=null;
this.index=-1;this.videoId=this.A="";this.volume=this.o=-1;this.muted=!1;this.audioTrackId=null;this.D=this.C=0;this.B=null;this.reset(a)},mo=function(a,b){if(a.A)throw Error(b+" is not allowed in V3.");
},no=function(a){a.audioTrackId=null;
a.B=null;a.o=-1;a.C=0;a.D=K()},oo=function(a){a.index=-1;
a.videoId="";no(a)},po=function(a){return a.A?a.videoId:a.videoIds[a.index]},qo=function(a,b){a.C=b;
a.D=K()},ro=function(a){switch(a.o){case 1:return(K()-a.D)/1E3+a.C;
case -1E3:return 0}return a.C},so=function(a,b,c){var d=a.videoId;
a.videoId=b;a.index=c;b!=d&&no(a)},to=function(a,b,c){mo(a,"setPlaylist");
c=c||po(a);Gb(a.videoIds,b)&&c==po(a)||(a.videoIds=sb(b),a.setVideoId(c))},uo=function(a){var b={};
b.videoIds=sb(a.videoIds);b.index=a.index;b.listId=a.A;b.videoId=a.videoId;b.playerState=a.o;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=fc(a.B);b.playerTime=a.C;b.playerTimeAt=a.D;return b},xo=function(a,b){Lj.call(this);
this.A=0;this.C=a;this.G=[];this.F=new go;this.D=window.NaN;this.B=this.o=null;this.K=y(this.tA,this);this.H=y(this.hh,this);this.J=y(this.sA,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.nn,this),vo(this))):c=3;0!=c&&(b?this.nn(c):vi(y(function(){this.nn(c)},this),0));
wo(this,xl())},yo=function(a){return new lo(a.C.getPlayerContextData())},Bo=function(a,b,c,d,e){var f=yo(a);
d=d||0;var k={videoId:b,currentIndex:d,listId:e||f.A};so(f,b,d);p(c)&&(qo(f,c),k.currentTime=c);zo(a,"setPlaylist",k);e||Ao(a,f)},vo=function(a){F(["remotePlayerChange",
"remoteQueueChange"],function(a){this.G.push(this.C.subscribe(a,qa(this.dC,a),this))},a)},Co=function(a){F(a.G,function(a){this.C.unsubscribeByKey(a)},a);
a.G.length=0},Do=function(a,b){50>a.F.fb()&&io(a.F,b)},Eo=function(a,b,c){var d=yo(a);
qo(d,c);-1E3!=d.o&&(d.o=b);Ao(a,d)},zo=function(a,b,c){a.C.sendMessage(b,c)},Ao=function(a,b){Co(a);
a.C.setPlayerContextData(uo(b));vo(a)},Fo=function(a){xi(a.D);
a.D=vi(y(function(){this.U("remotePlayerChange");this.D=window.NaN},a),2E3)},wo=function(a,b){a.B&&(a.B.removeUpdateListener(a.K),a.B.removeMediaListener(a.H),a.hh(null));
a.B=b;a.B&&(Go("Setting cast session: "+a.B.sessionId),a.B.addUpdateListener(a.K),a.B.addMediaListener(a.H),a.B.media.length&&a.hh(a.B.media[0]))},Ho=function(a){var b=a.o.customData;
if(a.o.media){var c=a.o.media,d=yo(a);c.contentId!=d.videoId&&Go("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.o=b.playerState;qo(d,a.o.getEstimatedTime());Ao(a,d)}else Go("No cast media video. Ignoring state update.")},Go=function(a){$h("CP",a)},Jo=function(a,b,c){Lj.call(this);
this.D=window.NaN;this.M=!1;this.H=this.G=this.L=this.J=window.NaN;this.P=[];this.B=this.ya=this.o=null;this.ea=a;this.P.push(Nl(window,"beforeunload",y(this.Fx,this)));this.A=[];this.ya=new lo;3==c["mdx-version"]&&(this.ya.A="RQ"+b.token);this.O=b.id;this.o=Io(this,c);this.o.subscribe("handlerOpened",this.yA,this);this.o.subscribe("handlerClosed",this.uA,this);this.o.subscribe("handlerError",this.vA,this);this.ya.A?this.o.subscribe("handlerMessage",this.wA,this):this.o.subscribe("handlerMessage",
this.xA,this);fo(this.o,b.token);this.subscribe("remoteQueueChange",function(){var a=this.ya.videoId;hk()&&bj("yt-remote-session-video-id",a)},this)},Io=function(a,b){return new bo(Cj(a.ea,"/bc",void 0,!1),b)},Ko=function(a,b){a.U("proxyStateChange",b)},Lo=function(a){a.D=vi(y(function(){this.jb("Connecting timeout");
this.C(1)},a),2E4)},Mo=function(a){xi(a.D);
a.D=window.NaN},No=function(a){xi(a.J);
a.J=window.NaN},Qo=function(a){Oo(a);
a.L=vi(y(function(){Po(this,"getNowPlaying")},a),2E4)},Oo=function(a){xi(a.L);
a.L=window.NaN},Ro=function(a){var b=a.o;
return!!b.o&&3==b.o.o&&(0,window.isNaN)(a.D)},To=function(a,b){b&&(Mo(a),No(a));
b==Ro(a)?b&&(Ko(a,1),Po(a,"getSubtitlesTrack")):b?(a.K()&&a.ya.reset(),Ko(a,1),Po(a,"getNowPlaying"),So(a)):a.C(1)},Uo=function(a,b){var c=b.params.videoId;
delete b.params.videoId;c==a.ya.videoId&&(ac(b.params)?a.ya.B=null:a.ya.B=b.params,a.U("remotePlayerChange"))},Vo=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);
a.ya.A=b.params.listId||a.ya.A;so(a.ya,c,d);a.U("remoteQueueChange")},Xo=function(a,b){b.params=b.params||{};
Vo(a,b);Wo(a,b)},Wo=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);
qo(a.ya,(0,window.isNaN)(c)?0:c);c=(0,window.parseInt)(b.params.state,10);c=(0,window.isNaN)(c)?-1:c;-1==c&&-1E3==a.ya.o&&(c=-1E3);a.ya.o=c;1==a.ya.o?Qo(a):Oo(a);a.U("remotePlayerChange")},Yo=function(a,b){var c="true"==b.params.muted;
a.ya.volume=(0,window.parseInt)(b.params.volume,10);a.ya.muted=c;a.U("remotePlayerChange")},Zo=function(a,b){switch(b.action){case "loungeStatus":var c=de(b.params.devices);
a.A=ji(c,function(a){return new Yj(a)});
break;case "loungeScreenDisconnected":qb(a.A,function(a){return"LOUNGE_SCREEN"==a.type});
break;case "remoteConnected":var d=new Yj(de(b.params.device));eb(a.A,function(a){return a.equals(d)})||nb(a.A,d);
break;case "remoteDisconnected":d=new Yj(de(b.params.device)),qb(a.A,function(a){return a.equals(d)})}},$o=function(a,b){var c=!1;
if("loungeStatus"==b.action)c=!!eb(a.A,function(a){return"LOUNGE_SCREEN"==a.type});
else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!(0,window.isNaN)(a.J))if(c)No(a);else return;c==Ro(a)?c&&Ko(a,1):c?(Mo(a),a.K()&&a.ya.reset(),Ko(a,1),Po(a,"getNowPlaying"),So(a)):a.C(1)},So=function(a){xi(a.H);
a.H=vi(y(a.C,a,1),864E5)},Po=function(a,b,c){c?a.jb("Sending: action="+b+", params="+ge(c)):a.jb("Sending: action="+b);
a.o.sendMessage(b,c)},bp=function(a,b){var c=ap(a);
return ae(b,function(a){return a.uuid?(a=Ij(this.B,a.uuid),!!a&&"RUNNING"==a.status):!!Jj(c,a)},a)},gp=function(a,b,c){var d=cp,e="";
xi(d.A);d.A=window.NaN;d.C="";if(Ij(d.B,a)){if(!e){var f=e=Fj();km();var k=qm(a),m=cm();if(m&&k){var l=new window.cast.Receiver(k.id,k.name),l=new window.cast.LaunchRequest("YouTube",l);l.parameters="pairingCode="+f;l.description=new window.cast.LaunchDescription;l.description.text=window.document.title;b&&(l.parameters+="&v="+b,c&&(l.parameters+="&t="+Math.round(c)),l.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=k.status&&(k.status="UNKNOWN",mm(k),Ji("yt-remote-cast-device-status-update",
k));bm("Sending a cast launch request with params: "+l.parameters);m.launch(l,qa(rm,a))}else bm("No cast API or no cast device. Dropping cast launch.")}d.C=e;d.A=vi(y(d.J,d,a,0,e),dp[0])}else d.jb("No DIAL device with id: "+a)},ip=function(a,b){var c=Kj(ap(a),b);
a.jb("Found screen: "+li(c)+" with key: "+b);return c},jp=function(a){var b=cp,c=Kj(b.o,a);
b.jb("Found online screen: "+li(c)+" with key: "+a);return c},kp=function(a){var b=cp,c=Ij(b.B,a);
if(!c){var d=Kj(b.F,a);d&&(c=Ij(b.B,d.uuid))}b.jb("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c},ap=function(a){return rb(a.D,ae(a.F,function(a){return!Jj(this.D,a)},a))},lp=function(a){Mj.call(this,"ScreenServiceProxy");
this.Sb=a;this.o=[];this.o.push(this.Sb.$_s("screenChange",y(this.IE,this)));this.o.push(this.Sb.$_s("onlineScreenChange",y(this.SB,this)))},qp=function(a){q("yt.mdx.remote.castv2_",!0,void 0);
Zi&&$i();kk();mp||(mp=new Aj,wk()&&(mp.o="/api/loungedev"));np||(np=r("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",np,void 0));op();var b=pp();if(!b){var c=new Jk(mp);q("yt.mdx.remote.screenService_",c,void 0);b=pp();ol(a,c,function(a){a?Cl()&&Dl():c.subscribe("onlineScreenChange",function(){Ji("yt-remote-receiver-availability-change")})})}},tp=function(){Ii(rp);
rp.length=0;Mb(sp);sp=null;np&&(F(np,function(a){a(null)}),np.length=0,np=null,q("yt.mdx.remote.deferredProxies_",null,void 0));
cp&&(Mb(cp),cp=null);mp=null;lm()},yp=function(){if(up()&&tl()){var a=[];
if(cj("yt-remote-cast-available")||r("yt.mdx.remote.cloudview.castButtonShown_")||vp())a.push({key:"cast-selector-receiver",name:wp()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return r("yt.mdx.remote.cloudview.initializing_")?[]:xp()},xp=function(){var a=[],a=zp()?pp().Sb.$_gos():ki(cj("yt-remote-online-screens")||[]),b=Ap();
b&&vp()&&(Jj(a,b)||a.push(b));zp()||(b=Hj(sk()),b=ae(b,function(b){return!Kj(a,b.id)}),a=rb(a,b));
return Gj(a)},Cp=function(){if(up()&&tl()){var a=ul();
return a?{key:"cast-selector-receiver",name:a}:null}return Bp()},Bp=function(){var a=xp(),b=Dp(),c=Ap();
c||(c=Ep());return eb(a,function(a){return c&&fi(c,a.key)||b&&(a=kp(a.key))&&a.id==b?!0:!1})},wp=function(){if(up()&&tl())return ul();
var a=Ap();return a?a.name:null},Ap=function(){var a=Cl();
if(!a)return null;if(!cp){var b=pp().sc();return Kj(b,a)}return ip(cp,a)},Lp=function(a,b){Fp("Connecting to: "+ge(a));
if("cast-selector-receiver"==a.key)Gp(b||null),Bl(b||null);else{Hp();Gp(b||null);var c=null;cp?c=jp(a.key):(c=pp().sc(),c=Kj(c,a.key));if(c)Ip(c);else{if(cp&&(c=kp(a.key))){Jp(c);return}vi(function(){Kp(null)},0)}}},Hp=function(){if(cp){var a=cp;
xi(a.A);a.A=window.NaN;a.C=""}a:{if(a=vp())if(a=a.getOtherConnectedRemoteId()){Fp("Do not stop DIAL due to "+a);Mp("");break a}(a=Dp())?(Fp("Stopping DIAL: "+a),sm(a),Mp("")):(a=Ap())&&a.uuid&&(Fp("Stopping DIAL: "+a.uuid),sm(a.uuid))}zl()?pl().stopSession():ll("stopSession called before API ready.");(a=vp())?a.disconnect(1):(Ki("yt-remote-before-disconnect",1),Ki("yt-remote-connection-change",!1));Kp(null)},Pp=function(){var a=Np(),a=a?a.currentTime:0,b=Op();
0==a&&b&&(a=ro(yo(b)));return a},Op=function(){var a=vp();
return a&&3!=a.getProxyState()?new xo(a,void 0):null},Fp=function(a){$h("remote",a)},up=function(){return!!r("yt.mdx.remote.castv2_")},zp=function(){return r("yt.mdx.remote.screenService_")},pp=function(){if(!sp){var a=zp();
sp=a?new lp(a):null}return sp},Cl=function(){return r("yt.mdx.remote.currentScreenId_")},Qp=function(a){q("yt.mdx.remote.currentScreenId_",a,void 0);
if(cp){var b=cp;b.H=K()+3E5;if(b.G=a){var c=ip(b,a);if(c&&!Jj(b.o,c)){a=sb(b.o);a.push(c);var c=bp(b,a),d=!Gb(b.o,c,gi);kb(a)||rk(ji(c,hi));d&&(b.jb("Updating online screens: "+mi(b.o)+" -> "+mi(c)),b.o=c,b.U("onlineReceiverChange"))}}}},Dp=function(){return r("yt.mdx.remote.currentDialId_")},Mp=function(a){q("yt.mdx.remote.currentDialId_",a,void 0)},Np=function(){return r("yt.mdx.remote.connectData_")},Gp=function(a){q("yt.mdx.remote.connectData_",a,void 0)},vp=function(){return r("yt.mdx.remote.connection_")},
Kp=function(a){var b=vp();
Gp(null);a?vp():(Qp(""),Mp(""));q("yt.mdx.remote.connection_",a,void 0);np&&(F(np,function(b){b(a)}),np.length=0);
b&&!a?Ki("yt-remote-connection-change",!1):!b&&a&&Ji("yt-remote-connection-change",!0)},Ep=function(){var a=hk();
if(!a)return null;if(zp()){var b=pp().sc();return Kj(b,a)}return cp?ip(cp,a):null},Ip=function(a){Cl();
Qp(a.id);a=new Jo(mp,a,Rp());a.connect(1,Np());a.subscribe("beforeDisconnect",function(a){Ki("yt-remote-before-disconnect",a)});
a.subscribe("beforeDispose",function(){vp()&&(vp(),Kp(null))});
Kp(a)},Jp=function(a){Dp();
Fp("Connecting to: "+(a?a.toString():"null"));Mp(a.id);var b=Np();b?gp(a.id,b.videoIds[b.index],b.currentTime):gp(a.id)},op=function(){var a=Rp();
if(ac(a)){var a=gk(),b=cj("yt-remote-session-name")||"",c=cj("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};q("yt.mdx.remote.channelParams_",a,void 0)}},Rp=function(){return r("yt.mdx.remote.channelParams_")||{}},Tp=function(a){return(a=Sp.exec(a))?a[0]:""},Wp=function(a){var b=Up.test(a),c;
c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Vp.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&zi(a,"WARNING"));return b||c},Xp=function(a){a=new N(a);
of(a,window.document.location.protocol);pf(a,window.document.location.hostname);window.document.location.port&&qf(a,window.document.location.port);return a.toString()},Yp=function(a){a=new N(a);
of(a,window.document.location.protocol);return a.toString()},$p=function(){return Zp("android")&&Zp("chrome")&&!(Zp("trident/")||Zp("edge/"))},aq=function(){return Zp("cobalt")},bq=function(){return Zp("(ps3; leanback shell)")||Zp("ps3")&&aq()},cq=function(){return Zp("(ps4; leanback shell)")||Zp("ps4")&&aq()},dq=function(){var a=/WebKit\/([0-9]+)/.exec(oc);
return!!(a&&600<=a[1])},eq=function(){return El&&Zp("crkey")},fq=function(){return Zp("nintendo wiiu")},gq=function(){return Zp("iemobile")||Zp("windows phone")&&Zp("edge")},Zp=function(a){var b=oc;
return b?0<=b.toLowerCase().indexOf(a):!1},iq=function(a,b,c){a&&(c&&!aq()?a&&(a=O("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',
style:"display:none"}),Jg(a).body.appendChild(a)):hq(a,b))},jq=function(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||iq(a,void 0)}catch(b){iq(a,void 0)}},mq=function(a){return C(E(a))?!1:kq.test(a)||lq.test(a)},hq=function(a,b){var c=new window.Image,d=""+nq++;
oq[d]=c;c.onload=c.onerror=function(){b&&oq[d]&&b();delete oq[d]};
c.src=a},qq=function(a,b){this.start=a;
this.end=b;this.F=pq++},rq=function(a,b,c){qq.call(this,a,b);
a=c||{};this.K=a.id||"";this.G=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.A=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.B=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start},sq=function(a){return a.B||(a.B=new Be)},tq=function(a,b){return a.start-b.start||a.G-b.G||a.F-b.F},vq=function(a,b){Lj.call(this);
this.logEvent=this.va="";this.ra=b||"";this.ea=this.loaded=this.F=!1;this.M=this.G=null;this.o=a;if(this.ra){var c=Sj("yt-html5-player-modules::"+this.ra);c&&(this.M=new Qi(c))}},yq=function(a){var b=a.o,c=b.app;
a=a.va;var b=b.playerType,d=wq(c,b);if(d){for(var d=d.F,e=[],f=d.o.o,k=f.length-1;0<=k;k--){var m=f[k];if(m.A==a){var l=d.A.indexOf(m);0<=l&&d.A.splice(l,1);var n=d.o,l=n.o,n=Ab(l,m,n.A);0<=n&&ob(l,n);e.push(m)}}d.Rd();b&&c.getPresentingPlayerType()!=b||xq(c,"cuerangesremoved",e)}},zq=function(a){a.o.uj(a.va)},Aq=function(a,b,c){var d={},e;
for(e in b)d[a.va+"_"+e]=b[e];b={};for(var f in c)b[a.va+"_"+f]=c[f];a=a.o.app.D;ra(a.C,d||null);ra(a.B,b||null)},Bq=function(a,b){if(!a.M)return null;
var c;try{c=a.M.get(b)}catch(d){a.M&&a.M.remove(b)}return c},Cq=function(a,b,c){if(a.M)try{a.M.set(b,c)}catch(d){}},Dq=function(a){a.U("command_stop_redirect_controls")},Eq=function(a){a.U("command_play",!1,a.o.playerType)},Gq=function(a){G.call(this);
this.sa={};this.xa={};this.element=Fq(this,a)},Fq=function(a,b){var c=0,d=window.document.createElement(b[c++]);
if(w(b[c])){var e=b[c++];if(e=Hq(a,d,"className",e))Iq(a,d,"className",e),a.sa[e]=d}else if(da(b[c])){for(var e=b[c++],f=0;f<e.length;f++)a.sa[e[f]]=d;Iq(a,d,"className",e.join(" "))}for(;c<b.length;c++){var k=b[c];if(da(k))e=Fq(a,k),d.appendChild(e);else if(ia(k))if(k.element)d.appendChild(k.element);else{var e=a,f=d,m=void 0;for(m in k){var l=k[m];null!=l&&Iq(e,f,m,w(l)?Hq(e,f,m,l):l)}}else w(k)&&(e=Hq(a,d,"child",k),null!=e&&d.appendChild(window.document.createTextNode(String(e))))}return d},Jq=
function(a){dh(a.element)},Hq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.xa[d]=[b,
c],null):d},Kq=function(a){return da(a)&&w(a[0])},Iq=function(a,b,c,d){if("child"==c){bh(b);
if(!da(d)||Kq(d))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];if(null!=f)if(!f.nodeType||1!=f.nodeType&&3!=f.nodeType)if(Kq(f))c.push(Fq(a,f));else if(f.element)c.push(f.element);else if(w(f)&&-1!=f.indexOf("\n"))for(var f=f.split("\n"),k=0;k<f.length;k++)0<k&&c.push(window.document.createElement("br")),c.push(window.document.createTextNode(String(f[k])));else c.push(window.document.createTextNode(String(f)));else c.push(f)}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=
d:"style"==c?b.style.cssText=d?d:"":null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())},Lq=function(a,b){a&&(a.style.display=b)},Mq=function(a,b){var c=yh("requestAnimationFrame",window);
return vi(function(){c?c.call(window,a):a()},b||0)},Nq=function(a){if(window.document.createRange){var b=window.document.createRange();
b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}},R=function(a){Gq.call(this,a);
this.C=!0;this.Z=[]},Oq=function(a){R.call(this,a);
this.Y=new Lj;I(this,this.Y)},Pq=function(a,b){Oq.call(this,["div",
["html5-endscreen","ytp-player-content",b||"base-endscreen"]]);this.A=a;this.L=!1},Qq=function(){R.call(this,["div",
"ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])},Sq=function(){return zc?"Webkit":Rq?"Moz":Tg?"ms":Ac?"O":null},Uq=function(a,b,c){if(w(b))(b=Tq(a,b))&&(a.style[b]=c);
else for(var d in b){c=a;var e=b[d],f=Tq(c,d);f&&(c.style[f]=e)}},Tq=function(a,b){var c=Vq[b];
if(!c){var d=Za(b),c=d;void 0===a.style[d]&&(d=Sq()+$a(d),void 0!==a.style[d]&&(c=d));Vq[b]=c}return c},Wq=function(a,b){var c=a.style[Za(b)];
return"undefined"!==typeof c?c:a.style[Tq(a,b)]||""},Xq=function(a,b){var c=Jg(a);
return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""},Yq=function(a,b){return Xq(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},$q=function(a,b,c){var d;
b instanceof re?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Zq(d,!1);a.style.top=Zq(b,!1)},ar=function(a){return new re(a.offsetLeft,a.offsetTop)},br=function(a){var b;
try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}Tg&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},cr=function(a){if(Tg&&!yc(8))return a.offsetParent;
var b=Jg(a),c=Yq(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=Yq(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},er=function(a){for(var b=new te(0,window.Infinity,window.Infinity,0),c=Lg(a),d=c.o.body,e=c.o.documentElement,f=Sg(c.o);a=cr(a);)if(!(Tg&&0==a.clientWidth||zc&&0==a.clientHeight&&
a==d)&&a!=d&&a!=e&&"visible"!=Yq(a,"overflow")){var k=dr(a),m=new re(a.clientLeft,a.clientTop);
k.x+=m.x;k.y+=m.y;b.top=Math.max(b.top,k.y);b.right=Math.min(b.right,k.x+a.clientWidth);b.bottom=Math.min(b.bottom,k.y+a.clientHeight);b.left=Math.max(b.left,k.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=Rg(wh(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},dr=function(a){var b=Jg(a),c=new re(0,0),d;
d=b?Jg(b):window.document;d=!Tg||yc(9)||"CSS1Compat"==Lg(d).o.compatMode?d.documentElement:d.body;if(a==d)return c;a=br(a);b=Ug(Lg(b).o);c.x=a.left+b.x;c.y=a.top+b.y;return c},gr=function(a,b){var c=new re(0,0),d=Vg(Jg(a));
if(!nc(d,"parent"))return c;var e=a;do{var f=d==b?dr(e):fr(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c},ir=function(a,b){var c=hr(a),d=hr(b);
return new re(c.x-d.x,c.y-d.y)},fr=function(a){a=br(a);
return new re(a.left,a.top)},hr=function(a){if(1==a.nodeType)return fr(a);
a=a.changedTouches?a.changedTouches[0]:a;return new re(a.clientX,a.clientY)},kr=function(a,b,c){if(b instanceof ue)c=b.height,b=b.width;
else if(void 0==c)throw Error("missing height argument");jr(a,b);a.style.height=Zq(c,!0)},Zq=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");
return a},jr=function(a,b){a.style.width=Zq(b,!0)},mr=function(a){var b=lr;
if("none"!=Yq(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},lr=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=zc&&!b&&!c;
return p(b)&&!d||!a.getBoundingClientRect?new ue(b,c):(a=br(a),new ue(a.right-a.left,a.bottom-a.top))},nr=function(a){var b=dr(a);
a=mr(a);return new we(b.x,b.y,a.width,a.height)},or=function(a,b){var c=a.style;
"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")},S=function(a,b){a.style.display=b?"":"none"},pr=function(a){return"none"!=a.style.display},qr=function(a,b){if(/^\d+px?$/.test(b))return(0,window.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},ur=function(a){var b=Yq(a,"fontSize"),c;
c=(c=b.match(rr))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(Tg){if(String(c)in sr)return qr(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in tr)return a=a.parentNode,c=Yq(a,"fontSize"),qr(a,b==c?"1em":b)}c=O("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;dh(c);return b},wr=function(a,b){da(b)||(b=[b]);
var c=ji(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
vr(a,c.join(","))},vr=function(a,b){Uq(a,"transition",b)},yr=function(a,b,c,d){G.call(this);
this.B=a;c||(xr(this,!0),a.ka());this.D=b;this.F=null==d?b:d;this.o=null;this.C=!1;this.A=new Wd(this.Um,0,this);I(this,this.A)},xr=function(a,b){var c=a.B.element;
b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")},zr=function(a,b){R.call(this,b||["div",
"ytp-thumbnail-overlay"]);this.A=new yr(this,250);I(this,this.A);this.api=a},Ar=function(a){zr.call(this,a,["div",
["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])},Cr=function(a){Pq.call(this,a,"subscribecard-endscreen");
this.D=new Ar(a);I(this,this.D);Br(this.A,this.D.element,4);this.F=new Qq;I(this,this.F);this.ka()},Dr=function(a){G.call(this);
this.L=[];this.Ga=a||this},Er=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)},Fr=function(a){for(;a.L.length;){var b=a.L.pop();
b.target.removeEventListener(b.name,b.hi)}},Gr=function(a,b){this.type=a||"";
this.id=b||""},Hr=function(a){return new Gr(a.substr(0,2),a.substr(2))},Jr=function(a){a=a.split("");
Ir.vW(a,3);Ir.Im(a,48);Ir.Rz(a,31);Ir.Rz(a,23);Ir.Rz(a,29);return a.join("")},Kr=function(a,b){return new Ad(function(c,d){b.tb=function(a){oj(a)?c(a):d(a)};
b.onError=d;b.Od=d;tj(a,b)})},Lr=function(a){function b(e,f,k){return Hd(e,function(e){return 0>=f||403===e.status?Fd(e):c(k).then(function(){return b(Kr(a,d),f-1,Math.pow(2,4-f+1)*k)})})}
function c(a){return new Ad(function(b){(0,window.setTimeout)(b,a)})}
var d={format:"RAW",method:"GET"};return b(Kr(a,d),3,1E3)},Mr=function(a){this.o=a||0},Pr=function(a,b,c,d,e,f,k,m){this.id=""+a;
this.A=0<=b.indexOf("/mp4")?1:0<=b.indexOf("/webm")?2:0<=b.indexOf("/x-flv")?3:0<=b.indexOf("/vtt")?4:0;this.mimeType=b;this.o=k||0;this.C=m||0;this.audio=c||null;this.video=d||null;this.Hb=e||null;this.He=f||null;this.B=Nr[Or(this)]||""},Or=function(a){return a.id.split(";",1)[0]},Qr=function(a){return"9"==a.B||"("==a.B},Rr=function(a){return!(a.audio&&a.video)},Sr=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")},Tr=function(a){return 0<=a.indexOf("vp9")||0<=
a.indexOf("vp8")||0<=a.indexOf("avc1")},Ur=function(a,b,c){this.name=a;
this.id=b;this.isDefault=c},Xr=function(a,b,c,d,e,f,k,m){this.width=a;
this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);for(b=0;b<Vr.length;b++){var l=Vr[b],n=Wr[l];if(f>=Math.floor(16*n/9)||a>=n){f=l;break a}}f="tiny"}this.quality=f;this.BD=Wr[this.quality];this.o=!!k;this.fps=c||0;this.A=e||0;this.projectionType=d||0;(c=m)||(c=this.fps,d=Wr[this.quality],c=0==d?Q("YTP_AUTO"):d+"p"+(55<c?"60":49<c?"50":39<c?"48":""));this.qualityLabel=c},Yr=function(a){this.B=a;
this.D=this.C=this.F="";this.o={};this.A=""},$r=function(a){Zr(a);
return a.D},as=function(a){Zr(a);
return Qb(a.o,function(a){return null!==a})},Zr=function(a){if(a.B){if(!bs.test(a.B))throw Error("Untrusted URL: "+a.B);
var b=Cf(a.B);a.F=b.C;a.D=b.A+(null!=b.D?":"+b.D:"");var c=b.B;if(0==c.indexOf("/videoplayback"))a.C="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.C=c.substr(0,d),c=c.substr(d+1)):(a.C=c,c="")}d=a.o;a.o=cs(c);ra(a.o,ds(b.Zo()));ra(a.o,d);a.B="";a.A=""}},es=function(a){Zr(a);
var b=a.F+(a.F?"://":"//")+a.D+a.C;if(as(a)){var c=[];Ob(a.o,function(a,b){null!==a&&c.push(b+"="+a)});
a=c.join("&");b+="?"+a}return b},cs=function(a){a=a.split("/");
var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&fs(c,a[b],a[b+1]);return c},ds=function(a){a=a.split("&");
for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?fs(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b},fs=function(a,b,c){if("cmo"==b){var d;
0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c},gs=function(a,b){this.start=a;
this.end=b;this.length=b-a+1},hs=function(a){a=a.split("-");
return 2==a.length&&(a=new gs((0,window.parseInt)(a[0],10),(0,window.parseInt)(a[1],10)),!(0,window.isNaN)(a.start)&&!(0,window.isNaN)(a.end)&&!(0,window.isNaN)(a.length)&&0<a.length)?a:null},is=function(a,b){return new gs(a,a+b-1)},js=function(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];
if(d)return d.value}return""},ks=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);
if(0<d.length)return d[0]}return null},ls=function(a){if(!a)return 0;
var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(0,window.parseFloat)(b[2]||0)+60*(0,window.parseFloat)(b[4]||0)+(0,window.parseFloat)(b[6]||0):(0,window.parseFloat)(a)},ms=function(a,b,c,d,e,f){this.duration=c;
this.endTime=b+c;this.A=d;this.o=a;this.sourceURL=e;this.startTime=b;this.range=f||null},ns=function(){this.wa=[]},os=function(a,b){var c=Ab(a.wa,new ms(b,0,0,0,""),function(a,b){return a.o-b.o});
return 0<=c?a.wa[c]:null},ps=function(a,b){var c=Ab(a.wa,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.wa[c]:a.wa[Math.max(0,-c-2)]},qs=function(a,b){var c=db(a.wa,function(a){return a.o>=b},a);
0<c&&a.wa.splice(0,c)},rs=function(a){this.o=a;
this.A={};this.B=""},ts=function(a,b){var c=b.indexOf("?");
if(0<c){var d=ds(b.substr(c+1));Ob(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=cs(b);Ob(d,function(a,b){this.set(b,a)},a)},us=function(a){var b=a.o.getUrl(),c=[];
Ob(a.A,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=as(a.o)?"&":"?";return b+a+d},vs=function(a,b){var c=new Yr(b);
Ob(a.A,function(a,b){c.set(b,null)});
return c},ws=function(a){this.o=a;
this.C=a.clone();this.A=0;this.B=-1},xs=function(a){var b=a.C.getUrl(),c=new N(b);
c.A.match("\\.googlevideo\\.com$")?(pf(c,"redirector.googlevideo.com"),b=c.toString()):c.A.match("r[1-9].*\\.c\\.youtube\\.com$")?(pf(c,"www.youtube.com"),b=c.toString()):b=Xp(b);a.o=new Yr(b);a.A&&(b=""+a.A,a.o.set("cmo=pf",b),a.C.set("cmo=pf",b))},ys=function(a,b,c){this.index=null;
this.info=b;this.initRange=c||null;this.o=null;this.D=this.B=!1;this.F=new ws(a)},zs=function(a,b,c,d,e,f,k,m,l){this.o=b;
this.range=c;this.type=a;this.C=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.B=k||0;this.A=0<=m?m:this.range?this.range.length:window.NaN;this.H=!!l;this.range?(this.F=this.B+this.A==this.range.length,this.D=this.startTime+this.duration*this.B/this.range.length,this.J=this.duration*this.A/this.range.length):(this.F=0!=this.A,this.D=this.startTime,this.J=this.duration);this.G=this.D+this.J},As=function(a,b){return!(!b||b.o!=a.o||b.type!=a.type||(a.range&&b.range?b.range.end!=a.range.end:b.range!=
a.range)||b.C!=a.C||b.B+b.A!=a.B+a.A)},Bs=function(a){return 1==a.type||2==a.type},Cs=function(a,b){return a.o==b.o&&a.range.start+a.B+a.A==b.range.start+b.B},Ds=function(a){1==a.length||Se(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new gs(a[0].range.start+a[0].B,b.range.start+b.B+b.A-1)},Fs=function(a){var b="";
Ob(Es(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)},Es=function(a){var b={};
b.itag=a.o.info.id;b.seg=a.C;a.range&&(b.range=""+(a.range.start+a.B)+"-"+(a.range.start+a.B+a.A-1));b.time=""+a.D.toFixed(1)+"-"+(a.D+a.J).toFixed(1);return b},Gs=function(a,b,c){this.B=a[0].o.F;
this.A=b||"";this.o=a;this.range=this.o[0].range&&0<this.o[0].A?Ds(this.o):null;this.C=!!c},Hs=function(a,b){var c;
/http[s]?:\/\//.test(a.A)?c=new rs(new Yr(a.A)):(c=new rs(a.B.o),a.A&&ts(c,a.A));var d=b||a.range;d&&c.set("range",d.toString());return c},Is=function(a){if(a.range)return a.range.length;
a=a.o[0];return Math.round(a.J*a.o.info.o)},Js=function(a,b,c,d,e,f){ys.call(this,a,b,d);
this.index=e||new ns;this.G=c;this.C=!0;this.A=!!f},Ls=function(a,b){a.Jh(b);
return Ks(a,b.F?b.C+1:b.C,!1)},Ks=function(a,b,c){if(a.A&&0==a.index.Fe(b))return a=new zs(3,a,null,b),b=0<=b?"sq/"+b:"",new Gs([a],b,!!b);
var d=a.index.Wo(b),e=a.index.Ge(b),f=a.index.Fe(b);c?f=c=0:c=0<a.info.o?a.info.o*f:1E3;a=new zs(3,a,null,b,e,f,0,c,b==a.index.Gb()&&!a.C&&0<c);return new Gs([a],d)},Ms=function(a,b,c){this.ye=a;
this.durationSecs=b;this.context=c},Ns=function(a,b,c,d){this.o=a;
this.ye=b;this.durationSecs=c;this.A=d||window.NaN},Os=function(){this.o=[];
this.A=null;this.C=0;this.B=[]},Ps=function(a){var b=a.B;
a.B=[];return b},Qs=function(){this.C=[];
this.o=null;this.A={};this.B={}},Us=function(a,b,c){var d=[];
b=b.getElementsByTagName("SegmentTimeline");for(var e=0;e<b.length;e++){var f=b[e].parentNode.parentNode,k=null;"Period"==f.nodeName?k=Rs(a):"AdaptationSet"==f.nodeName?k=Ss(a,f.attributes.mimeType.value):"Representation"==f.nodeName&&(k=Ts(a,f.attributes.id.value));if(null==k)return;k.update(b[e],c);tb(d,Ps(k))}Db(d,function(a){return a.ye});
tb(a.C,d)},Vs=function(a){a.o&&(a.o.o=[]);
Ob(a.A,function(a){a.o=[]});
Ob(a.B,function(a){a.o=[]})},Rs=function(a){a.o||(a.o=new Os);
return a.o},Ss=function(a,b){a.A[b]||(a.A[b]=new Os);
return a.A[b]},Ts=function(a,b){a.B[b]||(a.B[b]=new Os);
return a.B[b]},Ws=function(a){var b={};
a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0==a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);if(null==d)break;b[d[1]]=d[2]}return null},ct=function(a,b){var c=Xs(a,0,1836019558);
if(!c)return null;var d=Xs(a,c.offset+8,1835427940),e=Xs(a,c.offset+8,1953653094);if(!d||!e)return null;var f=Xs(a,e.offset+8,1952868452),k=Xs(a,e.offset+8,1953658222),m=Xs(a,e.offset+8,1952867444);if(!f||!k||!m)return null;var l=Xs(a,e.offset+8,1935763823),e=Xs(a,e.offset+8,1935763834);if(l){var n=Ys(l),t=Ys(l);if(0!=n||1!=t)return null;n=Ys(l)}for(var u=Ys(f),x=Ys(f),A=u&2,D=u&1?Zs(f):0,H=A?Ys(f):0,z=u&8?Ys(f):0,t=u&16?Ys(f):0,P=u&32?Ys(f):0,u=Ys(k),Ua=u&1,la=u&4,ya=u&256,f=u&512,yb=u&1024,pd=u&
2048,u=Ys(k),ck=Ua?Ys(k):0,dk=la?Ys(k):0,Ua=[],Bm=[],ek=[],uq=[],Av=0,Xf=0,mc=0;mc<u;mc++){var bD=ya?Ys(k):z;f&&Ua.push(Ys(k));var Dd=P;la&&0==mc?Dd=dk:yb&&(Dd=Ys(k));Bm.push(Dd);Dd=pd?Ys(k):0;0==mc&&(Av=Dd);ek.push(Xf+Dd);uq.push(mc);Xf+=bD}Cb(uq,function(a,b){return ek[a]-ek[b]});
k=[];for(mc=0;mc<u;mc++)k[uq[mc]]=mc;Xf=A?4:0;mc=16*u;Dd=68+Xf+m.size+mc+(l?l.size:0)+(e?e.size:0);c=Dd-c.size;z=new $s(Dd);at(z,Dd);at(z,1836019558);bt(z,d);at(z,Dd-24);at(z,1953653094);at(z,16+Xf);at(z,1952868452);at(z,131072|(A?2:0));at(z,x);A&&at(z,H);bt(z,m);at(z,20+mc);at(z,1953658222);at(z,16781057);at(z,u);at(z,D+ck+c);for(mc=Xf=0;mc<u;mc++)m=k[mc],d=Math.round(b*m/u),m=Math.round(b*(m+1)/u)-d,Dd=d-Xf+Av,at(z,m),at(z,f?Ua[mc]:t),at(z,Bm[mc]),at(z,Dd),Xf+=m;l&&(at(z,l.size),at(z,1935763823),
at(z,0),at(z,1),at(z,n+c));e&&bt(z,e);return z.data.buffer},ht=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);
for(var b=0;dt(a,b);){var c=et(a,b);if(1836476516==c.type)return ft(c);b=gt(c.type)?b+8:b+c.size}return window.NaN},Xs=function(a,b,c){for(;dt(a,b);){var d=et(a,b);
if(d.type==c)return d;b+=d.size}return null},et=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);
return new it(a,b,c,d)},ft=function(a){var b=a.data.getUint8(a.offset+8)?28:20;
return a.data.getUint32(a.offset+b)},dt=function(a,b){if(8>a.byteLength-b)return!1;
var c=a.getUint32(b);if(8>c)return!1;for(var d=4;8>d;d++){var e=a.getInt8(b+d);if(97>e||122<e)return!1}return a.byteLength-b>=c},gt=function(a){return 1836019558==a||1836019574==a||1953653094==a},it=function(a,b,c,d){this.data=a;
this.offset=b;this.size=c;this.type=d;this.o=8},Ys=function(a){var b=a.data.getInt32(a.offset+a.o);
a.o+=4;return b},jt=function(a){var b=a.data.getUint32(a.offset+a.o);
a.o+=4;return b},Zs=function(a){var b;
b=a.data;var c=a.offset+a.o;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.o+=8;return b},kt=function(a){var b,c=[];
do b=a.data.getUint8(a.offset+a.o),c.push(b),a.o++;while(0!=b);c.pop()},$s=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));
this.o=0},at=function(a,b){a.data.setInt32(a.o,b);
a.o+=4},bt=function(a,b){for(var c=0;c+4<=b.size;)at(a,b.data.getUint32(b.offset+c)),c+=4;
for(;c<b.size;)a.data.setUint8(a.o++,b.data.getUint8(b.offset+c++))},lt=function(a){return(a=Xs(a,0,1836019558))?a.offset+a.size:null},mt=function(a,b){this.A=a;
this.o=0;this.B=b||0},pt=function(a){for(var b=nt(a,!1);236==b;)ot(a),b=nt(a,!1);
return b},qt=function(a){var b=nt(a,!0),c=a.A.byteOffset+a.o,c=new window.DataView(a.A.buffer,c,Math.min(b,a.A.buffer.byteLength-c)),c=new mt(c,a.B+a.o);
a.o+=b;return c},tt=function(a){for(var b=nt(a,!0),c=rt(a),d=1;d<b;d++)c=256*c+rt(a);
return c},ot=function(a){var b=nt(a,!0);
a.o+=b},vt=function(a){var b=a.o;
a.o=0;var c=!1;ut(a,440786851)&&(a.o=0,ut(a,408125543)&&(c=!0));a.o=b;return c},wt=function(a){var b=a.o;
a.o=0;var c=1E6;ut(a,408125543)&&(nt(a,!0),ut(a,357149030)&&(nt(a,!0),ut(a,2807729)&&(c=tt(a))));a.o=b;return c},zt=function(a,b){var c=a.o;
a.o=0;if(!xt(a)||!ut(a,160))return a.o=c,window.NaN;nt(a,!0);if(!ut(a,161))return a.o=c,window.NaN;var d=nt(a,!0);rt(a);var e=rt(a)<<8|rt(a);a.o+=d-3;if(!ut(a,155))return a.o=c,window.NaN;d=tt(a);a.o=c;return(e+d)*b/1E9},xt=function(a){if(vt(a)){if(!ut(a,408125543))return!1;
nt(a,!0)}if(!ut(a,524531317))return!1;nt(a,!0);return!0},ut=function(a,b){for(;pt(a)!=b;)if(ot(a),a.o>=a.A.byteLength)return!1;
return!0},nt=function(a,b){var c=rt(a);
if(1==c){for(var d=c=0;7>d;d++)c=256*c+rt(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+rt(a),e*=128;return b?c-e:c},rt=function(a){return a.A.getUint8(a.o++)},At=function(a,b,c,d,e){this.info=a;
this.o=b;this.range=c;this.B=null;this.A=d;this.D=!1;this.C=e},Bt=function(a){return a.range?new window.DataView(a.o,a.range.start,a.range.length):new window.DataView(a.o)},Ct=function(a){if(a.info.A!=a.range.length)return!1;
if(1==a.info.o.info.A){if(8>a.info.A||4==a.info.type)return!0;var b=Bt(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.A&&1936286840==b;if(3==a.info.type&&0==a.info.B)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b||1701671783==b}else if(2==a.info.o.info.A){if(4>a.info.A||4==a.info.type)return!0;b=Bt(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.B)return 524531317==c||440786851==c}return!0},Dt=function(a,b){if(1==a.info.o.info.A){for(var c=a.info.o.o,
d=window.NaN,e,f=0,k=new window.DataView(a.o);dt(k,f);){var m=et(k,f);
1936286840==m.type?d=m.data.getUint32(m.offset+16):1836476516==m.type?d=ft(m):1952867444==m.type&&(e=m);f=gt(m.type)?f+8:f+m.size}!d&&c&&(d=ht(c));e.data.getUint8(e.offset+8)?(c=e.data,e=e.offset+12,d=Math.round(b*d),c.setUint32(e,Math.round(d/4294967296)),c.setUint32(e+4,Math.round(d&4294967295))):e.data.setUint32(e.offset+12,Math.round(b*d));return!0}c=new mt(new window.DataView(a.info.o.o.buffer));d=new mt(new window.DataView(a.o));e=b;f=wt(c);c=d.o;d.o=0;if(xt(d)&&ut(d,231))if(k=nt(d,!0),e=Math.floor(1E9*
e/f),Math.ceil(Math.log(e)/Math.log(2)/8)>k)d=!1;else{for(f=k-1;0<=f;f--)d.A.setUint8(d.o+f,e&255),e>>>=8;d.o=c;d=!0}else d=!1;return d},Et=function(a){var b;
if(1==a.info.o.info.A){a:{for(var c=0,d=new window.DataView(a.o);dt(d,c);){b=et(d,c);if(1936286840==b.type){c=b.data.getUint32(b.offset+16);d=b.data.getUint8(b.offset+8);b.data.getUint16(b.offset+(0==d?30:38));b=b.data.getUint32(b.offset+(0==d?36:42))/c;break a}c=gt(b.type)?c+8:c+b.size}b=window.NaN}if(!(0<=b)){c=a.info.o.o;d=0;b=new window.DataView(a.o);for(var e,f;dt(b,d);){var k=et(b,d);1836476516==k.type?e=ft(k):1836019558==k.type&&(f=k);d=gt(k.type)?d+8:d+k.size}!e&&c&&(e=ht(c));if(f&&e){f=Xs(b,
f.offset+8,1953653094);c=Xs(b,f.offset+8,1952868452);f=Xs(b,f.offset+8,1953658222);b=Ys(c);Ys(c);b&2&&Ys(c);b=b&8?Ys(c):0;var m=Ys(f),l=m&1,c=m&4,d=m&256,k=m&512,n=m&1024,m=m&2048,t=jt(f);l&&Ys(f);c&&Ys(f);for(var u=l=0;u<t;u++){var x=d?Ys(f):b;k&&Ys(f);c&&0==u||!n||Ys(f);m&&Ys(f);l+=x}b=l/e}else b=window.NaN}}else e=new mt(new window.DataView(a.info.o.o.buffer)),b=zt(new mt(new window.DataView(a.o)),wt(e));return b||a.info.J},Jt=function(a){return 1==a.info.o.info.A?a.D:vt(new mt(new window.DataView(a.o)))},
Kt=function(a,b){return a.B&&a.B[b]?(0,window.parseInt)(a.B[b],10):null},Lt=function(){this.Aa=0;
this.o=new window.Float64Array(128);this.A=new window.Float64Array(128);this.C=1;this.B=!1},Mt=function(a){if(a.o.length<a.Aa+1){var b=2*a.o.length,b=b+2,c=a.o;
a.o=new window.Float64Array(b+1);var d=a.A;a.A=new window.Float64Array(b+1);for(b=0;b<a.Aa+1;b++)a.o[b]=c[b],a.A[b]=d[b]}},Nt=function(a,b,c,d,e,f){ys.call(this,a,b,c||void 0);
this.indexRange=d;this.C=null;this.index=new Lt;this.A=e;this.lastModified=f},Ot=function(a,b,c,d){for(var e=[];b<=a.index.Gb();b++){var f;
f=a.index;var k=b;f=is(f.$j(k),k+1<f.Aa||f.B?f.o[k+1]-f.o[k]:-1);var k=a.index.Ge(b),m=a.index.Fe(b),l=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+l);e.push(new zs(3,a,f,b,k,m,l,n,b==a.index.Gb()&&l+n==f.length));if(f.start+l+n>=c+d)break}return new Gs(e)},Pt=function(a,b,c){a.Jh(b);
if(!a.kd())return c=is(b.range.end+1,c),c.end+1>a.A&&(c=new gs(c.start,a.A-1)),a=[new zs(4,b.o,c)],new Gs(a);4==b.type&&(b=a.qj(b),b=b[b.length-1]);var d=0,e=b.range.start+b.B+b.A;3==b.type&&(d=b.C,e==b.range.end+1&&(d+=1));return Ot(a,d,e,c)},Rt=function(a,b){Lj.call(this);
this.J=this.duration=0;this.isLive=this.B=!1;this.G=Qt();this.D=window.Infinity;this.o={};this.L=a||"";this.F=this.H=0;this.C=null;this.K=Qt();this.S=b||!1;this.A=!1},St=function(a){return Qb(a.o,function(a){return!!a.info.He},a)},Vt=function(a,b,c,d){return d?Tt(a):Ut(a,b,c)},Ut=function(a,b,c){var d=new Rt;
d.duration=c||0;F(a,function(a){var c=Wt(a,b,d.duration),k=hs(a.init),m=hs(a.index),l=(0,window.parseInt)(a.clen,10),n=Xt(a.url,c,a.s),t=(0,window.parseInt)(a.lmt,10);n&&(d.o[Yt(a)]=new Nt(n,c,k,m,l,t))});
return d},Tt=function(a){var b=new Rt;
F(a,function(a){var d=Wt(a),e=Xt(a.url,d,a.s);e&&(b.o[Yt(a)]=new Js(e,d,"",void 0,void 0,!0))});
b.B=!0;b.A=!0;b.isLive=!0;return b},Wt=function(a,b,c){var d=a.type,e=Yt(a),f=null;
Tr(d)&&(f=(a.size||"640x360").split("x"),f=new Xr(+f[0],+f[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isFastLoad,a.quality_label));var k=null,m=null;Sr(d)&&(k=new Mr,a.name&&(m=new Ur(a.name,a.audio_track_id,"1"==a.isDefault)));var l=(0,window.parseInt)(a.bitrate,10)/8,n=(0,window.parseInt)(a.clen,10);c=c&&n?n/c:0;var t=null;b&&a.drm_families&&(t={},F(a.drm_families.split(","),function(a){t[a]=b[a]}));
return new Pr(e,d,k,f,m,t,l,c)},Yt=function(a){var b=a.itag;
a.xtags&&(b=a.itag+";"+a.xtags);return b},Xt=function(a,b,c){a=new Yr(a);
a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",(0,window.encodeURIComponent)(b.mimeType.split(";")[0]));c&&a.set("signature",Jr(c));return a},$t=function(a,b){var c=js(b,"id"),c=c.replace(":",";");
"captions"==c&&(c=js(b,"lang"));var d=js(b,"mimeType"),e=js(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(js(b,"bandwidth"),10)/8,f=(0,window.parseInt)(ks(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(Tr(d)){var k=(0,window.parseInt)(js(b,"width"),10),m=(0,window.parseInt)(js(b,"height"),10),l=(0,window.parseInt)(js(b,"frameRate"),10),n=js(b,"yt:stereoLayout"),t="equirectangular"==js(b,"yt:projectionType"),u,x;t&&"layout_top_bottom"==n?u=
3:t&&!n?u=2:"layout_left_right"==n&&(x=1);k=new Xr(k,m,l,u,x)}x=u=null;Sr(d)&&(u=new Mr((0,window.parseInt)(js(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),x=js(b,"lang")||"",(m=ks(b,"Role"))?(m=js(m,"value")||"",x=x&&Yb(Zt,m)?new Ur(js(b,"yt:langName")||x+" - "+m,x+"."+Zt[m],"main"==m):null):x=null);l=null;if(m=ks(b,"ContentProtection"))if((l=m.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==l.textContent)for(l={},m=m.firstChild;null!=m;m=m.nextSibling)"yt:SystemURL"==
m.nodeName&&(l[m.attributes.type.textContent]=m.textContent.trim());else l=null;return new Pr(c,d,u,k,x,l,e,f)},au=function(a,b){a.F=1;
a.G=Qt();return Hd(Lr(b||a.L).then(y(a.P,a)),y(a.O,a))},bu=function(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");
null!=e&&(0<=(0,window.parseInt)(e.split("-")[1],10)?d=hs(e):c=c+"?range="+e);return new ms(b.o,b.ye,b.durationSecs,b.A,c,d)},cu=function(a){a=a.o;
for(var b in a){var c=a[b].index;if(c&&c.kf())return c.Dg()}return window.NaN},du=function(a){a=a.o;
for(var b in a){var c=a[b].index;if(c&&c.kf())return c.Us()}return 0},eu=function(a){var b=a.o,c;
for(c in b)if((a=b[c].index)&&a.kf()){c=0;for(b=a.Gf();b<=a.Gb();b++)c+=a.Fe(b);c/=a.fl();return.5*Math.round(c/.5)}return window.NaN},fu=function(a,b){Ob(a.o,function(a){Ob(b,function(b,e){var f=a.F;
f.o.set(e,b);f.C.set(e,b)})})},gu=function(a,b){var c=(0).toString();
if(!a.o[c]){var d=new Xr(0,0,0,void 0,void 0,"auto"),d=new Pr(c,"",void 0,d);a.o[c]=b?new Js(new Yr("http://www.youtube.com/videoplayback"),d,""):new Nt(new Yr("http://www.youtube.com/videoplayback"),d,new gs(0,0),new gs(0,0),0,window.NaN)}},hu=function(){var a=r("yt.player.utils.videoElement_");
a||(a=window.document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a},ku=function(a){var b=hu();
try{if(b.canPlayType){a=a?iu:ju;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}},lu=function(a){a=O("div",{"class":a});
window.document.body.appendChild(a);var b="none"==Xq(a,"display");dh(a);return b},mu=function(a,b,c){this.o=a;
this.B=b;this.D=c;this.C={};this.A=null;this.fairPlayCert=""},ou=function(a){return!a.A&&nu()&&"com.microsoft.playready"==a.B},pu=function(a){return!a.A&&nu()&&"com.apple.fps.1_0"==a.B},nu=function(){var a=window.MSMediaKeys;
qu&&wc("8")&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null},uu=function(a){return window.navigator.requestMediaKeySystemAccess&&(El&&ru("45")||tu&&a)},wu=function(a,b){this.A=[];
this.o={};this.B={};this.C=null;this.G=b;vu(this,a)},vu=function(a,b){Ob(b,function(a){a.forEach(function(a){a.He&&Ob(a.He,function(b,c){xu[c]&&Ob(xu[c],function(b){this.o[b]=this.o[b]||new mu(c,b,a.He[c]);
this.B[c]=this.B[c]||{};this.B[c][a.mimeType]=!0},this)},this)},this)},a);
a.A=yu.filter(function(a){return!!this.o[a]},a)},Au=function(a){var b=a.A.shift(),c=a.o[b],d=zu(a.B[c.o]);
window.navigator.requestMediaKeySystemAccess(b,d).then(ui(y(a.F,a,c)),ui(y(a.D,a,c)))},zu=function(a){var b={initDataTypes:["cenc",
"webm"],audioCapabilities:[],videoCapabilities:[]};Ob(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});
return[b]},Bu=function(a){var b=nu(),c=hu();
if(b){if(qu){a.C(new mu("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=y(c.canPlayType,c):d=function(){return!1};
c=(c=eb(a.A,function(a){var b=this.o[a],c,m;Ob(this.B[b.o],function(l,n){d(n,a)&&(b.C[n]=!0,c|=0==n.indexOf("audio/"),m|=0==n.indexOf("video/"))},this);
return c&&m},a))?a.o[c]:null;
a.A=[];a.C(c)},Cu=function(a){this.languageCode=a.languageCode;
this.languageName=a.languageName||null;this.o=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1},Du=function(a){a=a||{};
this.K=a.formats||"";this.C=a.format||1;if(1==this.C)for(var b=this.K.split(","),c=0;c<b.length;c++){var d=(0,window.parseInt)(b[c],10);(0,window.isNaN)(d)||(this.C=Math.max(d,this.C))}this.A=a.languageCode||"";this.F=a.languageName;this.B=a.kind||"";this.D=a.name;this.M=a.id;this.L=a.is_servable;this.isDefault=a.is_default;this.H=a.is_translateable;this.J=a.url||null;this.G=a.vss_id||"";this.o=null;a.translationLanguage&&(this.o=new Cu(a.translationLanguage))},Fu=function(a){var b={format:a.C,
languageCode:a.A,languageName:a.F,displayName:Eu(a),kind:a.B,name:a.D,id:a.M,is_servable:a.L,is_default:a.isDefault,is_translateable:a.H,vss_id:a.G};a.o&&(a=a.o,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.o,id:a.id,is_default:a.isDefault});return b},Eu=function(a){var b=a.F||"",c=[b];
"asr"==a.B&&-1==b.indexOf("(")&&c.push(" (",Q("YTP_ASR_SETTINGS_LABEL"),")");a.D&&c.push(" - ",a.D);a.o&&c.push(" >> ",a.o.languageName);return c.join("")},Gu=function(a,b){var c=new Du;
c.A=a.A;c.F=a.F;c.D=a.D;c.B=a.B;c.isDefault=!1;c.H=a.H;c.G=a.G;c.J=a.J;c.o=b;return c},Hu=function(a,b){this.id=a;
this.Hb=b;this.captionTracks=[];this.Bi=this.Qk=null;this.vo=0},Iu=function(a,b,c){this.A=a||0;
this.o=b||0;this.B=c},Ju=function(a,b,c){return new Iu(Wr[a]||0,Wr[b]||0,c)},Ku=function(a){var b=Wr.auto;
return a.A==b&&a.o==b},Mu=function(a,b){if(b.B&&Ku(b))return Lu;
if(b.B||Ku(a))return b;if(a.B||Ku(b))return a;var c=a.A&&b.A?Math.max(a.A,b.A):a.A||b.A,d=a.o&&b.o?Math.min(a.o,b.o):a.o||b.o,c=Math.min(c,d);return c==a.A&&d==a.o?a:new Iu(c,d,!1)},Ou=function(a){var b=a.o||a.A;
return $b(Nu,function(a){return Wr[a]==b})||"auto"},Pu=function(a,b,c){this.videoInfos=a;
this.o=b||null;this.audioTracks=[];this.A=c||null;if(this.o){var d={};F(this.o,y(function(a){if(a.Hb&&!d[a.id]){var b=new Hu(a.id,a.Hb);d[a.id]=b;this.audioTracks.push(b)}},this))}},Qu=function(a,b){this.o=a;
this.A=b},Ru=function(a){this.o=[];
if(a)a:{var b;if(a instanceof Ru){if(b=a.Qa(),a=a.Oa(),0>=this.fb()){for(var c=this.o,d=0;d<b.length;d++)c.push(new Qu(b[d],a[d]));break a}}else b=Wb(a),a=Vb(a);for(d=0;d<b.length;d++)Su(this,b[d],a[d])}},Su=function(a,b,c){var d=a.o;
d.push(new Qu(b,c));b=d.length-1;a=a.o;for(c=a[b];0<b;)if(d=b-1>>1,a[d].o>c.o)a[b]=a[d],b=d;else break;a[b]=c},Tu=function(){Ru.call(this)},Uu=function(a,b){Lj.call(this);
this.A=a;this.B=new Tu;this.o=null;this.D={};this.C=b||""},Xu=function(a,b,c){var d;
for(c=Vu(a.A,c);0<=c;){d=a.A.o[c];if(d=d.B[Math.floor(b/(d.Kb*d.rows))]?Wu(d,b):null)return d;c--}return Wu(a.A.o[0],b)},Zu=function(a,b,c){c=Vu(a.A,c);
for(var d,e;0<=c;c--)if(d=a.A.o[c],e=Math.floor(b/(d.Kb*d.rows)),!d.B[e]){d=a;var f=c,k=f+"-"+e;d.D[k]||(d.D[k]=!0,Su(d.B,f,{$p:f,iq:e}))}Yu(a)},Yu=function(a){if(!a.o&&!a.B.isEmpty()){var b=a.B.remove(),c=new window.Image;
a.C&&(c.crossOrigin=a.C);c.src=a.A.getUrl(b.$p,b.iq);c.onload=y(a.F,a,b.$p,b.iq);a.o=c}},$u=function(a,b,c,d){this.B={};
this.M=a;this.K=b;a=c.split("#");this.H=(0,window.parseInt)(a[0],10);this.G=(0,window.parseInt)(a[1],10);this.A=(0,window.parseInt)(a[2],10);this.Kb=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.D=(0,window.parseInt)(a[5],10);this.C=a[6];this.F=a[7];this.L=d},Wu=function(a,b){var c=Math.floor(b/(a.Kb*a.rows)),d=a.Kb*a.rows,e=b%d,f=e%a.Kb,e=Math.floor(e/a.Kb),k,m=a.Fn()+1-d*c;
m<a.Kb?(k=m,d=1):(k=a.Kb,d=m<d?Math.ceil(m/a.Kb):a.rows);return{url:a.getUrl(c),Qw:f,Kb:k,row:e,rows:d,jq:a.H*k,hq:a.G*d}},av=function(a,b){this.o=this.A(a,b);
this.B={};1<this.o.length&&this.o[0].isDefault()&&this.o.splice(0,1)},Vu=function(a,b){var c=a.B[b];
if(c)return c;for(var c=a.o.length,d=0;d<c;d++)if(a.o[d].getWidth()>=b)return a.B[b]=d;a.B[b]=c-1;return c-1},bv=function(a,b,c,d){c=c.split("#");
c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");$u.call(this,a,b,c,0);this.o=null;this.J=d?3:0},cv=function(a,b){this.F=b;
av.call(this,a,0)},dv=function(a,b){return void 0==b?a:"1"==b?!0:!1},ev=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];
return a},fv=function(a,b){return void 0==b?a:Number(b)},gv=function(a,b){return void 0==b?a:b.toString()},iv=function(a){if(a&&(a=a.match(hv))){var b=(0,window.parseFloat)(a[2]);
if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN},jv=function(a,b){var c=Wr.auto,d=Wr[b];
return d>Wr.medium?new Iu(d,c,!1):d>=c?new Iu(c,d,!1):a},kv=function(){return!!r("yt.scheduler.instance")},lv=function(a,b){(0,window.isNaN)(b)&&(b=void 0);
var c=r("yt.scheduler.instance.addJob");return c?c(a,0,b):void 0===b?(a(),window.NaN):vi(a,b||0)},mv=function(a){if(!(0,window.isNaN)(a)){var b=r("yt.scheduler.instance.cancelJob");
b?b(a):xi(a)}},ov=function(){var a=r("yt.scheduler.instance.start");
a&&(xi(nv),a())},pv=function(){var a=r("yt.scheduler.instance.pause");
a&&(a(),xi(nv),nv=vi(ov,800))},qv=function(a,b){this.version=a;
this.args=b},rv=function(a){if(!a.Be){var b={};
a.call(b);a.Be=b.version}return a.Be},tv=function(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=rv(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(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}},uv=function(a,b){this.topic=a;
this.o=b},Bv=function(a,b){var c=vv,d=wv();
if(!d)return 0;var e=d.subscribe(c.toString(),function(d,k){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var m=function(){if(xv[e])try{if(k&&c instanceof uv&&c!=d)try{k=tv(c.o,k)}catch(l){throw l.message="yt.pubsub2 cross-binary conversion error for "+c.toString()+": "+l.message,l;}a.call(b||window,k)}catch(l){zi(l)}};
yv[c.toString()]?kv()?lv(m,void 0):vi(m,0):m()}});
xv[e]=!0;zv[c.toString()]||(zv[c.toString()]=[]);zv[c.toString()].push(e);return e},Dv=function(a,b){var c=Bv(function(d){a.apply(b,arguments);
Cv(c)},b);
return c},Cv=function(a){var b=wv();
b&&(ga(a)&&(a=[a]),F(a,function(a){b.unsubscribeByKey(a);delete xv[a]}))},wv=function(){return r("yt.pubsub2.instance_")},Ev=function(a){qv.call(this,1,arguments);
this.o=a},Gv=function(a){var b=a||window;
if(!(b.performance&&b.performance.timing&&b.performance.getEntriesByType))return{xj:0,os:0};a=Rg(b||window);for(var c=[],d=b.document.getElementsByTagName("*"),e=0,f=d.length;e<f;e++){var k=d[e];if("IMG"==k.tagName||"IFRAME"==k.tagName){var m=Fv(k,k.src,a);if(m){if("IFRAME"==k.tagName){var l;try{l=Gv(k.contentWindow).xj}catch(n){l=0}0<l&&(m.timing=l)}c.push(m)}}(m=b.getComputedStyle(k)["background-image"])&&(m=Hv.exec(m))&&1<m.length&&(m=Fv(k,m[1],a))&&c.push(m)}l=b.performance.getEntriesByType("resource");
k=b.performance.getEntriesByType("mark");d={};e=0;for(f=l.length;e<f;e++)m=l[e],d[m.name]=m.responseEnd;e=0;for(f=k.length;e<f;e++)m=k[e],"mark_iframe_loaded: "==m.name.slice(0,20)&&(d[m.name.slice(20)]=m.startTime);e=0;for(f=c.length;e<f;e++)k=c[e],k.timing||(k.timing=d[k.url]||0);b=Iv(b,l);a=Jv(b,a,c);k=c=0;if(a.length)for(d=l=0,e=a.length;d<e;d++)f=a[d],k=f.timing-k,0<k&&1>l&&(c+=(1-l)*k),k=f.timing,l=f.progress;return{xj:Math.round(c||b),os:k}},Fv=function(a,b,c){if(b&&a.getBoundingClientRect){var d=
a.getBoundingClientRect();
a=Math.max(d.top,0);var e=Math.min(d.right,c.width);c=Math.min(d.bottom,c.height);d=Math.max(d.left,0);if(c>a&&e>d)return new Kv(a,e,c,d,b)}return null},Iv=function(a,b){var c,d=a.performance.timing.navigationStart;
if("msFirstPaint"in a.performance.timing)c=a.performance.timing.o-d;else if("chrome"in a&&"loadTimes"in a.chrome){var e=a.chrome.loadTimes(),f=e.firstPaintTime;if(0<f){var k=e.startLoadTime;"requestTime"in e&&(k=e.requestTime);f>=k&&(c=1E3*(f-k))}}if(void 0===c||0>c||12E4<c){c=a.performance.timing.responseStart-d;for(var m={},d=a.document.getElementsByTagName("head")[0].children,e=0,f=d.length;e<f;e++)k=d[e],"SCRIPT"==k.tagName&&k.src&&!k.async?m[k.src]=!0:"LINK"==k.tagName&&"stylesheet"==k.rel&&
k.href&&(m[k.href]=!0);b.some(function(a){if(!m[a.name]||"script"!=a.initiatorType&&"link"!=a.initiatorType)return!0;a=a.responseEnd;if(void 0===c||a>c)c=a})}return Math.max(c,0)||0},Jv=function(a,b,c){for(var d={0:0},e=0,f=0,k=c.length;f<k;f++){var m=c[f],l=a;
m.timing>a&&(l=m.timing);d[l]||(d[l]=0);m=(m.o-m.C)*(m.B-m.A);d[l]+=m;e+=m}f=b.width*b.height;0<f&&(f=.1*Math.max(f-e,0),a in d||(d[a]=0),d[a]+=f,e+=f);a=[];if(e){for(var n in d)b=new Lv((0,window.parseFloat)(n),d[n]),a.push(b);a.sort(function(a,b){return a.timing-b.timing});
f=d=0;for(k=a.length;f<k;f++)b=a[f],d+=b.area,b.progress=d/e}return a},Kv=function(a,b,c,d,e){this.o=c;
this.A=d;this.B=b;this.C=a;this.url=e},Lv=function(a,b){this.area=b;
this.timing=a},Qv=function(a,b,c){Mv(c)[a]=b||Qt();
b||Nv(a);b=ti("TIMING_ACTION",void 0);a=Mv(c);if(r("yt.timing.ready_")&&b&&a._start&&Ov(c)){b=!0;var d=ti("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in a)){b=!1;break}(b||c)&&Pv(c)}},Rv=function(a,b){var c=Mv(b);
return a in c},Tv=function(a,b,c){Sv(c).info[a]=b},Wv=function(a){Uv(a);
Vv();q("yt.timing.pingSent_",!1,void 0)},Ov=function(a){a=Mv(a);
if(a.aft)return a.aft;for(var b=ti("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return window.NaN},Yv=function(a){return Math.round(Xv.timing.navigationStart+a)},Zv=function(a){var b=window.location.protocol,c=Xv.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=Yv(d.startTime),a.wfce=Yv(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=Yv(c.startTime),a.wffe=Yv(c.responseEnd))},Pv=function(a){var b=Mv(a),c=Sv(a).span,d=Sv(a).info,e=r("yt.timing.reportbuilder_");
if(e){if(e=e(b,c,d,a))$v(e),Wv(a)}else{var f=ti("TIMING_ACTION",void 0),k=ti("CSI_SERVICE_NAME","youtube"),e={v:2,s:k,action:f};if(Xv.now&&Xv.timing){var m=Xv.timing.navigationStart+Xv.now(),m=Math.round(K()-m);d.yt_hrd=m}var m=ti("TIMING_INFO",{}),l;for(l in m)d[l]=m[l];l=d.srt;delete d.srt;var n;void 0===b.srt&&(l||0===l||(n=Xv.timing||{},l=Math.max(0,n.responseStart-n.navigationStart),(0,window.isNaN)(l)&&d.pt&&(l=d.pt)),l||0===l)&&(d.srt=Math.round(l));d.h5jse&&(m=window.location.protocol+r("ytplayer.config.assets.js"),
(m=Xv.getEntriesByName?Xv.getEntriesByName(m)[0]:null)?d.h5jse=Math.round(d.h5jse-m.responseEnd):delete d.h5jse);b.aft=Ov(a);m=b._start;if("cold"==d.yt_lt){n||(n=Xv.timing||{});var t;a:if(t=n,t.msFirstPaint)t=Math.max(0,t.msFirstPaint);else{var u=window.chrome;if(u&&(u=u.loadTimes,ha(u))){var u=u(),x=1E3*Math.min(u.requestTime||window.Infinity,u.startLoadTime||window.Infinity),x=window.Infinity===x?0:t.navigationStart-x;t=Math.max(0,Math.round(1E3*u.firstPaintTime+x)||0);break a}t=0}0<t&&t>m&&(b.fpt=
t);t=c||Sv(void 0).span;u=n.redirectEnd-n.redirectStart;0<u&&(t.rtime_=u);u=n.domainLookupEnd-n.domainLookupStart;0<u&&(t.dns_=u);u=n.connectEnd-n.connectStart;0<u&&(t.tcp_=u);u=n.connectEnd-n.secureConnectionStart;n.secureConnectionStart>=n.navigationStart&&0<u&&(t.stcp_=u);u=n.responseStart-n.requestStart;0<u&&(t.req_=u);u=n.responseEnd-n.responseStart;0<u&&(t.rcv_=u);Xv.getEntriesByType&&Zv(b);(n=ti("SPEEDINDEX_FOR_ACTIONS",void 0))&&-1<n.indexOf(f)&&(f=Qt(),n=Gv(),f=Qt()-f,0<n.xj&&(d.si=n.xj,
b.vsc=Yv(n.os),c.sid=f));f=[];if(window.document.querySelector&&Xv&&Xv.getEntriesByName){n={'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'script[name="scheduler/scheduler"]':"sj",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph"};for(var A in n)if(t=window.document.querySelector(A))u="",x=t.nodeName,"SCRIPT"==x?u=t.src:"LINK"==x&&(u=t.href),u&&(t=Xv.getEntriesByName(u))&&t[0]&&f.push(n[A]+"."+Math.round(t[0].duration))}f.length&&
(d.rs=f.join(","))}n=Mv(a);A=n.pbr;f=n.vc;n=n.pbs;A&&f&&n&&A<f&&f<n&&1==Sv(a).info.yt_vis&&"youtube"==k&&(Tv("yt_lt","hot_bg",a),k=b.vc,A=b.pbs,delete b.aft,c.aft=Math.round(A-k));(k=ti("PREVIOUS_ACTION"))&&(d.pa=k);d.p=ti("CLIENT_PROTOCOL")||"unknown";d.t=ti("CLIENT_TRANSPORT")||"unknown";window.navigator&&window.navigator.sendBeacon&&(d.ba=1);for(var D in d)"_"!=D.charAt(0)&&(e[D]=d[D]);b.ps=Qt();d={};D=[];for(var H in b)"_"!=H.charAt(0)&&(t=Math.max(Math.round(b[H]-m),0),d[H]=t,D.push(H+"."+t));
e.rt=D.join(",");b=e;H=[];for(var z in c)"_"!=z.charAt(0)&&H.push(z+"."+Math.round(c[z]));b.it=H.join(",");(z=r("ytdebug.logTiming"))&&z(e,d,c);Wv(a);ti("EXP_DEFER_CSI_PING")?(aw(),q("yt.timing.deferredPingArgs_",e,void 0),a=vi(aw,0),q("yt.timing.deferredPingTimer_",a,void 0)):$v(e);a=new Ev(d.aft+(l||0));c=vv;(e=wv())&&e.publish.call(e,c.toString(),c,a)}},$v=function(a){if(ti("DEBUG_CSI_DATA")){var b=r("yt.timing.csiData");
b||(b=[],q("yt.timing.csiData",b,void 0));b.push({page:window.location.href,time:new Date,args:a})}ti("EXP_DEFER_CSI_PING")&&(xi(r("yt.timing.deferredPingTimer_")),q("yt.timing.deferredPingArgs_",null,void 0));var c="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",c=ti("CSI_LOG_WITH_YT")?"/csi_204":c,b="",d;for(d in a)b+="&"+d+"="+a[d];a=c+"?"+b.substring(1);b=ti("DOUBLE_LOG_CSI")?"/csi_204?"+b.substring(1):null;window.navigator&&window.navigator.sendBeacon?
(jq(a),b&&jq(b)):(iq(a),b&&iq(b));q("yt.timing.pingSent_",!0,void 0)},aw=function(a){if(ti("EXP_DEFER_CSI_PING")){var b=r("yt.timing.deferredPingArgs_");
b&&(a&&(b.yt_fss=a),$v(b))}},Mv=function(a){return Sv(a).tick},Sv=function(a){return r("ytcsi."+(a||"")+"data_")||Uv(a)},Uv=function(a){var b={tick:{},
span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b},cw=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new window.Uint8Array(16);
window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){for(var c=K(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=bw)for(c=1,d=0;d<b.length;d++)a[c%16]=a[c%16]^a[(c-1)%16]/4^b.charCodeAt(d),c++;return a},dw=function(){for(var a=cw(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));
return b.join("")},ew=function(){return ji(cw(),function(a){return(a&15).toString(16)}).join("")},fw=function(a,b,c){this.errorCode=a;
this.o=b;this.details=c||{}},gw=function(a){var b,c;
for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""},hw=function(a){return(a=a.exec(oc))?a[1]:""},ru=function(a){return 0<=Ta(iw,a)},jw=function(){},kw=function(){this.buffered=new jw},lw=function(a,b){this.C=a;
this.o=!!b;this.B=!1;this.A={}},mw=function(a){return a.o?a.C:gf(a.C,a.A)},nw=function(a,b){this.A=a;
this.B=b;this.C=0;Object.defineProperty(this,"timestampOffset",{get:this.vE,set:this.zE});Object.defineProperty(this,"buffered",{get:this.tE})},ow=function(){this.length=0},pw=function(a){this.activeSourceBuffers=this.sourceBuffers=[];
this.o=a;this.A=window.NaN;this.B=0;Object.defineProperty(this,"duration",{get:this.uE,set:this.yE});Object.defineProperty(this,"readyState",{get:this.wE});this.o.addEventListener("webkitsourceclose",y(this.xE,this),!0)},qw=function(a,b,c,d,e){Dr.call(this);
this.A=this.o=null;this.C=b;this.B=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new pw(a);this.F=this.D=this.G=null;this.H=d;this.M=c;this.P=e;Er(this,this.B,["sourceopen","webkitsourceopen"],this.K);Er(this,this.B,["sourceclose","webkitsourceclose"],this.J)},rw=function(a,b){a.D=b},tw=function(a,b){a.F=b},uw=function(a){if(!a.G){var b;
b=a.B;b=b.GG?b.o.webkitMediaSourceURL:window.URL.createObjectURL(b);a.G=new lw(b,!0)}return a.G},vw=function(a){try{return"open"==a.B.readyState}catch(b){return!1}},ww=function(a){try{return"closed"==a.B.readyState}catch(b){return!0}},xw=function(a){return a.o.updating||a.A.updating},yw=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)},zw=function(a){return a.o?!!a.o.appendBuffer:yw()},Aw=function(a){if(/opus/.test(a)&&(El&&!ru("38")||eq()))return!1;
if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!cq())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!hu().canPlayType(a)},Bw=function(a){this.xc=a},Cw=function(a,b,c,d){this.C=a;
this.A=b;this.D=c;this.F=d;this.B={};this.o=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null},Gw=function(a,b){if(2.2!=Dw&&ku(a.A))return[];
for(var c={},d=hu(),e=0;e<b.length;e++){var f=b[e];if(Or(f.xc)in Ew||"5"==Or(f.xc)?0:Fw(d,f.xc.mimeType)){var k=f.xc.video.quality;c[k]&&2!=c[k].xc.A||(c[k]=f)}}var m=[];c.auto&&m.push(c.auto);F(Vr,function(a){(f=c[a])&&m.push(f)});
return m},Fw=function(a,b){var c=a.canPlayType(b);
Hw?c=c||Iw[b]:2.2==Dw?c=c||Jw[b]:$p()&&(c=c||Kw[b]);return!!c},Lw=function(){var a=$p()&&!ru(29),b=Zp("google tv")&&Zp("chrome")&&!ru(30);
return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)},Tw=function(a,b){var c={},d;
for(d in b.o)if(304!=d||b.isLive){var e=b.o[d],f;a:{f=a;var k=e.info;if(k.id==(0).toString()&&!f.A||"9"==k.B&&f.F)f=!0;else{var m=k.mimeType,l={};k.video&&(k.video.width&&(l[Mw.name]=k.video.width),k.video.height&&(l[Nw.name]=k.video.height),k.video.fps&&(l[Ow.name]=k.video.fps),k.o&&(l[Pw.name]=8*k.o));k.audio&&k.audio.o&&(l[Qw.name]=k.audio.o);k=l;l=void 0;for(l in Rw){var n=Rw[l];if(k[n.name]&&Sw(f,n))if(f.o){if(f.o[n.name]<k[n.name]){f=!1;break a}}else m=m+"; "+n.name+"="+k[n.name]}f=Aw(m)}}f&&
(c[e.info.B]=c[e.info.B]||[],c[e.info.B].push(e.info))}return c},Uw=function(a,b,c){var d={},e;
Ob(b,function(a,b){var m=a.filter(function(a){return a.He?c&&a.He[c.o]&&c.C[a.mimeType]?261==Or(a)?(e||(e=hu()),!1):!0:!1:!0},this);
m.length&&(d[b]=m)},a);
return d},ex=function(a,b,c,d){function e(a){return!!f[a]}
var f=Tw(a,b);St(b)&&(f=Uw(a,f,c));c=Vw;a.A?!Zp("windows nt 5.1")||Ww&&!a.C.ga("html5_prefer_h264_on_xp")||(c=Xw):c=Yw;b=Zw;d&&(a.A&&(c=Xw),b=$w);a.C.ga("html5_enable_aac_51_clear")&&(b=ax);d=eb(c,e);b=eb(b,e);if(!d||!b)return null;if("9"==d&&f.h){c=function(a,b){return Math.max(a,b.video.height)};
var k=oe(f["9"],c,0);oe(f.h,c,0)>1.5*k&&(d="h")}c=f[d];k=f[b];c=bx(a,c);cx(c,k);return new Pu(c,k,dx(a,f,d,b))},dx=function(a,b,c,d){var e=b.h;
b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=bx(a,e),cx(e,b),new Pu(e,b)):null},cx=function(a,b){Cb(a,function(a,b){return b.video.width-a.video.width||b.o-a.o});
Cb(b,function(a,b){return b.o-a.o})},bx=function(a,b){var c=zh(b,function(a){return 32<a.video.fps});
c&&(b=a.D||Sw(a,Ow)?ae(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):ae(b,function(a){return!(32<a.video.fps)}));
c&&bq()&&(b=ae(b,function(a){return 299!=Or(a)}));
return b},Sw=function(a,b){if(!(b.name in a.B)){var c=a.B,d=b.name,e;
a.o?e=!!a.o[b.name]:(b.video?(e='video/webm; codecs="vp9"',Aw(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',Aw(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=Aw(e+"; "+b.name+"="+b.valid)&&!Aw(e+"; "+b.name+"="+b.fh));c[d]=e}return a.B[b.name]},fx=function(a,b){this.A=a;
this.o=b;this.B=0},gx=function(a){for(var b=[],c=[],d=0,e=a.o.length;d<e;++d){var f=a.o[d];
f.bitrate<=a.B?b.push(f):c.push(f)}b.sort(function(a,b){return b.bitrate-a.bitrate});
c.sort(function(a,b){return a.bitrate-b.bitrate});
a.o=b.concat(c)},hx=function(a,b,c,d,e,f,k,m,l){this.itag=a;
this.url=b;this.Fo=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=m||null;this.o=l||""},ix=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e;
e=a[c];var f=e.type.match(/codecs="([^"]*)"/);e=new hx(e.itag,e.url,f?f[1]:"",+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families);b[e.itag]=e}return b},jx=function(a,b){this.xc=a;
this.B=b;this.o=null},kx=function(a,b,c,d,e,f,k,m,l){var n=new Mr;
d=new Xr(d,e,f,null,void 0,k);c=new Pr(c,"application/x-mpegURL",n,d,void 0,l);a=new fx(a,b);a.B=m?m:1369843;return new jx(c,a)},lx=function(a,b,c){if(!Hw&&!dq())return[];
b=ix(b);if(!b)return[];var d={tO:"https://youtube.com/api/drm/fps?ek=uninitialized"},e,f=[],k=[],m=[],l;for(l in b){var n=b[l];if(n.width){var t=b[n.audioItag];t&&(f.push(n),e="fairplay"==n.o?d:null,m.push(kx([t],[n],n.itag,n.width,n.height,n.fps,void 0,void 0,e)))}else k.push(n)}e=m.reduce(function(a,b){return!!b.xc.He&&a},!0)?d:null;
m.push(kx(k,f,"93",0,0,0,"auto",c,e));return Gw(a.G,m)},mx=function(a,b){this.xc=a;
this.o=b},nx=function(a,b,c,d,e,f,k){var m=new Mr;
c in Wr||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=Wr[c],e=Math.round(16*f/9));c=new Xr(e,f,0,null,void 0,c,k);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new mx(new Pr(d,b,m,c),a)},ox=function(a){var b=[];
F(a,function(a){a.url&&b.push(nx(a.url,a.type,"medium","0"))});
return b},px=function(a,b){for(var c=[],d=0;d<b.length;d++){var e=b[d];
if(e.sig||e.s){var f=e.sig||Jr(e.s);e.url=lj(e.url,{signature:f})}e.url&&c.push(nx(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isFastLoad))}return Gw(a.G,c)},rx=function(a){Lj.call(this);
this.Ud=new ue(0,0);this.Na=this.Z=this.la=!1;this.Qb="";this.xb=this.kb=!1;this.Wa={};this.sd="";this.captionTracks=[];this.Ca=[];this.qb=0;this.captionTranslationLanguages=[];this.Fa=!1;this.S=new Hu("und",new Ur("Default","und",!0));this.Ga=0;this.Td=this.zd=!1;this.H=null;this.M=[];this.Bd=new Wd(this.Mr,5E3,this);I(this,this.Bd);this.J=[];this.C={};this.keywords={};this.D={};qx(this,a)},xx=function(a,b){var c=b||{};
c.iv_invideo_url&&(a.xf=Yp(c.iv_invideo_url));c.iv_ads_only&&(a.no="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.ab=c.cta_conversion_urls);a.isPharma=dv(a.isPharma,c.is_pharma);a.author=gv(a.author,c.author);a.ji=dv(a.ji,c.cc_asr);var d=c.ttsurl;sx.test(d)?a.ki=d:d&&(d=Xp(d),sx.test(d)&&(a.ki=d));c.caption_tracks&&c.caption_audio_tracks&&(tx(a,c.caption_tracks),a.Ca=ij(c.caption_audio_tracks),c.default_audio_track_index&&(a.qb=(0,window.parseInt)(c.default_audio_track_index,10)||0),c.caption_translation_languages&&
ux(a,c.caption_translation_languages));a.Fa=dv(a.Fa,c.cc_contribute);a.clientPlaybackNonce=gv(a.clientPlaybackNonce,c.cpn);a.subscribed=gv(a.subscribed,c.subscribed);a.sentiment=ev(a.sentiment,c.sentiment,vx);a.shortViewCount=gv(a.shortViewCount,c.short_view_count_text);a.title=gv(a.title,c.title);a.ypcPreview=gv(a.ypcPreview,c.ypc_preview);a.ypcOrigin=gv(a.ypcOrigin,c.ypc_origin);a.paygated=dv(a.paygated,c.paygated);a.requiresPurchase=dv(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=
wx(c.keywords));c.rvs&&(a.K=ij(c.rvs));a.contentCheckOk=dv(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=dv(a.racyCheckOk,"1"==c.rco);a.oauthToken=gv(a.oauthToken,c.oauth_token);a.visitorData=gv(a.visitorData,c.visitor_data);c.session_data&&(a.ra=fj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Pb=fj(c.endscreen_autoplay_session_data,"&"));a.Ta=gv(a.Ta,c.tracking_list||c.tv_list);a.Lm=dv(a.Lm,c.fools_button);F(rx.D,function(a){a in c&&(this.C[a]=c[a])},a)},qx=function(a,b){var c=b||{};
a.$d="1"!=c.hlsdvr?!1:Lw()?!0:yx&&5>zx?!1:!0;a.qf=c.ad_query_id;a.rf=c.agcid;a.bi="1"==c.infringe||"1"==c.muted;a.bb=c.authkey;a.Db=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||dw());a.zi=K();a.Sk=dv(a.Sk,c.cenchd);a.enableCardio=dv(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=dv(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.Bf=fv(a.Bf,c.end||c.endSeconds);a.Vi=gv(a.Vi,c.itct);a.Sl=dv(a.Sl,c.noiba);a.Yf="1"==c.livemonitor;a.Ha="1"==c.live_playback||
!!c.fresca_preroll;a.isLiveDefaultBroadcast="1"==c.live_default_broadcast;a.isLowLatencyLiveStream="1"==c.is_low_latency_live_stream;a.isMdxPlayback=dv(a.isMdxPlayback,c.mdx);a.Wl=dv(a.Wl,c.reload);a.Xl=dv(a.Xl,c.utpsa);a.wb=c.cyc;for(var d in rx.o){var e=c[d+"_webp"]||c[d];Ax.test(e)&&(a.Wa[rx.o[d]]=e)}d=c.murlmq_webp;Ax.test(d)&&(a.sd=d);a.L=gv(a.L,c.vvt);a.sf=c.osig;a.ud=c.ptchn;a.wd=c.oid;a.ca=c.ptk;a.xd=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.osid=c.osid;a.Ki=c.vm;a.Di=c.of;a.playlistId=
gv(a.playlistId,c.list);a.yd=c.pyv_view_beacon_url;a.uf=c.pyv_quartile25_beacon_url;a.vf=c.pyv_quartile50_beacon_url;a.pf=c.pyv_quartile75_beacon_url;a.tf=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.Yd=c.sdetail;!a.Sa&&c.session_data&&(a.Sa=fj(c.session_data,"&").feature);a.isFling=1==fv(a.isFling?1:0,c.is_fling);a.vnd=fv(a.vnd,c.vnd);a.fa=gv(a.fa,c.ctrl);a.ea=gv(a.ea,c.ytr);a.ia=c.ytrcc;
a.rh=jv(a.rh,c.vq);a.wh=jv(a.wh,c.suggestedQuality);a.da=c.approx_threed_layout||0;a.Le=dv(a.Le,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=gv(a.vssCredentialsToken,c.vss_credentials_token);a.an=gv(a.an,c.vss_credentials_token_type);Bx(a,c.watermark);a.ypcGid=gv(a.ypcGid,c.ypc_gid);a.heartbeatToken=gv(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=fv(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=fv(a.heartbeatRetries,c.heartbeat_retries);
a.heartbeatSoftFail=dv(a.heartbeatSoftFail,c.heartbeat_soft_fail);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.J.push("ad")):"1"!=c.supported_without_ads&&(a.hp=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ha=c.atc);c.license_info&&(a.qn=Cx(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.Wi="1"==c.autonav);c.autoplay&&(a.Pc="1"==c.autoplay);
c.iv_load_policy&&(a.ua=ev(a.ua,c.iv_load_policy,Dx));c.cc_lang_pref&&(a.Wd=gv(c.cc_lang_pref,a.Wd));c.cc_load_policy&&(a.Xd=ev(a.Xd,c.cc_load_policy,Dx));c.channel_path&&(a.mi=gv(c.channel_path,a.mi));"0"==c.dash&&(a.Go=!0);c.dashmpd&&(a.G=gf(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.G))&&(e=Jr(e[1]),a.G=a.G.replace(d,"/signature/"+e));c.delay&&(a.hf=Ya(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fair_play_cert&&window.atob&&(a.fairPlayCert=(0,window.atob)(c.fair_play_cert));
c.featured&&(a.Op="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.J.push("fresca");c.idpj&&(a.Qj=Ya(c.idpj));c.ismb&&(a.Dh=Ya(c.ismb));c.is_episodic&&(a.Ql="1"==c.is_episodic);c.is_listed&&(a.isListed=dv(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.ug=c.url_encoded_fmt_stream_map);c.hls_formats&&(a.hlsFormats=c.hls_formats);c.hlsvp&&(a.hlsvp=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Ya(c.length_seconds));c.live_chunk_readahead&&(a.Pk=fv(a.Pk,c.live_chunk_readahead));
c.live_start_walltime&&(a.liveStartWalltime=Ya(c.live_start_walltime));c.live_manifest_duration&&(a.Yl=Ya(c.live_manifest_duration));c.ldpj&&(a.sn=Ya(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.ai=a.perceptualLoudnessDb?Math.pow(10,Math.min(-21-a.perceptualLoudnessDb,0)/20):rx.A);c.partnerid&&(a.O=Ya(c.partnerid));c.probe_url&&(a.probeUrl=Yp(gf(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=gv(c.profile_picture,a.profilePicture));c.pyv_billable_url&&
Ex.test(c.pyv_billable_url)&&(a.xa=c.pyv_billable_url);c.pyv_conv_url&&Ex.test(c.pyv_conv_url)&&(a.na=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Ja=d.quartile_0_url,a.dc=d.quartile_25_url,a.qd=d.quartile_50_url,a.rd=d.quartile_75_url,a.bc=d.quartile_100_url);"1"==c.spacecast_module&&(a.J.push("spacecast"),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=fv(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||a.Ha||(a.clipStart=
c.start);c.two_stage_token&&(a.Rj=c.two_stage_token);c.url_encoded_third_party_media&&(a.ef=ij(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.J.push("ypc");c.ypc_clickwrap_module&&a.J.push("ypc_clickwrap");a.wf=gv(a.wf,c.ucid);F("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.D[a]=c[a])},a);
a.D.focEnabled=dv(a.D.focEnabled,c.focEnabled);a.D.rmktEnabled=dv(a.D.rmktEnabled,c.rmktEnabled);a.C=c;xx(a,c);Fx(a);c.adpings&&(a.Vd=c.adpings?hj(c.adpings):null);c.feature&&(a.Zd=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q);c.multifeed_metadata_list&&(a.M=ij(c.multifeed_metadata_list))},Gx=function(a){return K()>a.zi+18E6},Hx=function(a){return!(!a.A||!a.A.videoInfos.length)},Fx=function(a){if(!Ix(a)){if(a.adaptiveFormats){var b=Vt(Jx(a,a.adaptiveFormats),a.qn,a.lengthSeconds,
a.Ha);
if(!Kx(b)){a.o=b;I(a,a.o);St(a.o)&&(a.Z=!0);return}b.dispose()}a.G&&(a.la=!0)}},Kx=function(a){return a.A&&Aw('video/webm; codecs="vp9"')&&Qb(a.o,function(a){return Qr(a.info)})},Ix=function(a){return!Lw()||a.Go?!0:!1},Lx=function(a){a.isDisposed()||(a.oe=!1,a.U("dataloaded",a.C))},Ox=function(a,b){if(!a.isDisposed()){a.A=null;
a.hg=null;a.P=null;var c=Ix(a)||b.Ul;if(!c&&a.spacecastAdaptiveFormats)a.o=Vt(Jx(a,a.spacecastAdaptiveFormats),a.qn,a.lengthSeconds),I(a,a.o),a.A=ex(b.G,a.o,a.H,!0);else if(a.spacecastFormatMap){var d=Jx(a,a.spacecastFormatMap);a.P=px(b,d);a.A=new Pu(ji(a.P,function(a){return a.xc}))}a.A&&(d=oe(a.A.videoInfos,function(a,b){return b.video.o&&(!a||a.height<b.video.height)?b.video:a},null))&&(d=Ju(d.quality,d.quality,!0),a.rh=d,a.wh=d);
a.A||c||!a.o||(b.F||gu(a.o,a.Ha),a.A=ex(b.G,a.o,a.H));a.A||(a.P=Mx(a,b),a.P.length&&(a.A=new Pu(ji(a.P,function(a){return a.xc}))));
Nx(a)}},Mx=function(a,b){if(a.hlsFormats){var c=Jx(a,a.hlsFormats),c=lx(b,c,a.Dh);
if(c.length)return c}if(a.ef&&a.Vp)return c=ox(a.ef),Gw(b.G,c);c=Jx(a,a.ug,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.Dh,f={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(f.ibw=e?String(e):"1369843");d={url:gf(d,f),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return px(b,c)},Px=function(a){return a.B&&a.B.He||null},Qx=function(a){a.Mj||(a.C.storyboard_spec?a.Mj=new av(a.C.storyboard_spec,a.lengthSeconds):a.C.live_storyboard_spec&&a.o&&(a.Mj=new cv(a.C.live_storyboard_spec,
a.o)));
return a.Mj},Rx=function(a){var b=Qx(a);
!a.zj&&b&&(a.zj=new Uu(b),I(a,a.zj));return a.zj},Sx=function(a){return a.o&&!(0,window.isNaN)(du(a.o))?du(a.o):0},Tx=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.ef)},Ux=function(a){return!!(a.o||a.ug||a.ef||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)},Vx=function(a){var b=jb(a.J,"ypc");
a.ypcPreview&&(b=!1);return Tx(a)&&!a.oe&&!a.la&&!a.Z&&(Ux(a)||jb(a.J,"fresca")||b)},Jx=function(a,b,c){b=ij(b);
var d={};c&&F(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
F(b,function(a){a.url&&(a.url=gf(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b},wx=function(a){var b={};
F(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});
return b},Bx=function(a,b){if(b){var c=b.split(",");
2<=c.length&&(a.Ka=c[1],Ax.test(a.Ka)&&-1==a.Ka.search(rx.F)||(a.Ka=""))}},Cx=function(a){a=ij(a);
var b={};F(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});
return b},tx=function(a,b){for(var c=ij(b),d=0;d<c.length;d++){var e=c[d],f=e.u;
sx.test(f)&&(f={is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k},"asr"!=e.k&&(f.format=3),a.captionTracks.push(new Du(f)))}},ux=function(a,b){for(var c=ij(b),d=0;d<c.length;d++){var e=c[d];
a.captionTranslationLanguages.push(new Cu({languageCode:e.lc,languageName:e.n}))}},Nx=function(a){for(var b=a.A?a.A.audioTracks:[],b=b.concat(a.S),c=0;c<a.Ca.length;c++)for(var d=a.Ca[c],e=0;e<b.length;e++){var f=b[e],k=f.Hb.id==d.aid;
if(f==a.S&&c==a.qb||k){if(d.i)for(var k=d.i.split(","),m=0;m<k.length;m++)f.captionTracks[m]=a.captionTracks[(0,window.parseInt)(k[m],10)];d.d&&(f.Qk=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.Bi=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.vo=(0,window.parseInt)(d.v,10)}}},Wx=function(a,b){return!!a.C[b]},Xx=function(a){return a.Ha&&!a.$d},Yx=function(a){return a.Ha&&a.$d},Zx=function(a){if(a.da||a.ed["3D"])return!0;
a=a.ed("yt3d:enable");return"true"==a||"LR"==a||"RL"==a},$x=function(a,b){(0,window.isNaN)(a.cf)&&(a.cf=a.Pk,a.Yf&&a.cf--,a.o&&1.5>=eu(a.o)&&(a.aj=.5>Math.random()),(a.o&&5<=eu(a.o)&&b.ga("html5_live_disable_dg_pacing")||a.aj)&&a.cf++,a.cf=Math.max(0,a.cf));
return a.cf},ay=function(a){if(!a.o)return!1;
for(var b in a.o.o){var c=a.o.o[b].info.video;if(c&&3==c.projectionType||c&&2==c.projectionType&&3==a.da)return!0}return!1},gy=function(a){Lj.call(this);
this.startSeconds=0;this.L=!1;this.o=0;this.title="";this.B=0;this.A=[];this.H=this.F=!1;this.ra=this.Pb=this.G=null;this.views=0;this.O=0!=a.fetch;this.C=[];this.o=Math.max(0,a.index||0);this.K=!!a.loop;this.startSeconds=a.startSeconds||0;this.S="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.P={};a.video_id&&(this.A[this.o]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);
this.J=0;if(a.list)switch(a.listType){case "user_uploads":by(this,a.list);break;case "user_favorites":cy(this,a.list);break;case "search":dy(this,a.list);break;default:a.playlist_length&&(this.B=a.playlist_length),this.D=Hr(a.list),a.video?(this.A=a.video.slice(0),this.F=!0):ey(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.o&&(this.A=[]);F(b,function(a){a&&this.A.push({video_id:a})},this);
this.B=this.A.length;b=ji(this.A,function(a){return a.video_id});
fy(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.F=!0}this.setShuffle(!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in rx.o)b="playlist_"+c,b=a[b+"_webp"]||a[b],Ax.test(b)&&(this.P[rx.o[c]]=b);this.M=a.thumbnail_ids?a.thumbnail_ids.split(","):[]},hy=function(a){return!!(a.playlist||a.list||a.api)},iy=function(a){var b=a.o+1;
return b>=a.B?0:b},jy=function(a){var b=a.o-1;
return 0>b?a.B-1:b},ky=function(a,b){a.o=le(b,0,a.B-1);
a.startSeconds=0},by=function(a,b){a.H||(a.D=new Gr("UU","PLAYER_"+b),fy(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))},cy=function(a,b){a.H||(a.D=new Gr("FL","PLAYER_"+b),fy(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))},dy=function(a,b){if(!a.H){a.D=new Gr("SR",b);
var c={search_query:b};a.S&&(c.mob="1");fy(a,"/search_ajax?style=json&embeddable=1",c)}},ey=function(a){if(!a.H){var b={list:a.D},c=a.yb();
c&&c.videoId&&(b.v=c.videoId);fy(a,"/list_ajax?style=json&action_get_list=1",b)}},fy=function(a,b,c){a.O&&tj(gf(b,c),{format:"JSON",
tb:function(a,b){ly(this,b)},
onError:function(){this.U("error")},
context:a})},ly=function(a,b){if(b.video&&b.video.length){a.title=b.title;
a.description=b.description;a.views=b.views;a.author=b.author;b.loop&&(a.K=b.loop);var c=a.yb();a.A=[];F(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.A.push(a))},a);
a.B=a.A.length;b.index?a.o=b.index:my(a,c);a.setShuffle(!1);a.H=!1;a.F=!0;a.J++;a.G&&a.G()}},my=function(a,b){if(b){var c=b.videoId;
if(!a.A[a.o]||a.A[a.o].video_id!=c)for(var d=0;d<a.A.length;d++)if(a.A[d].video_id==c){a.o=d;break}}},ny=function(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60),b=Math.floor(b%60),f="";
0<c&&(f+=c+":",10>d&&(f+="0"));if(0<c||0<d)f+=d+":",10>e&&(f+="0");f+=e+":";10>b&&(f+="0");f+=b;return 0<=a?f:"-"+f},oy=function(a){return(!ga(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey},py=function(a){return hy(a)?(a.fetch=0,new gy(a)):new rx(a)},qy=function(a,b,c,d){var e=b.yb();
M(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.yg();d=b.hc(c,d?d:"mqdefault.jpg");var k=b instanceof rx?ny(b.lengthSeconds):null,m=!!f,f=m&&"RD"==Hr(f).type;c={title:b.title,author:b.author,author_and_views:e.shortViewCount?b.author+" \u2022 "+e.shortViewCount:b.author,watch:Q("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.kl(c),episodic_title:b.title,is_episodic:e.Ql,is_featured:e.Op,is_list:m,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof gy&&
(c.playlist_length=b.B,c.episodic_length=b.B,c.episodic_index=b.Lb());a.update(c)},ry=function(a){var b=a.W().experiments.ga("moving_thumbnails_autonav"),c=["img",
"ytp-upnext-moving-thumbnail",{src:"{{moving_thumbnail}}"}],c=["div","ytp-upnext",{"aria-label":"{{watch}}"},["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],b?c:null,["div","ytp-thumbnail-overlay-curtain"],["span","ytp-upnext-top",["span","ytp-upnext-header",Q("YTP_PLAYLIST_UP_NEXT")],["span","ytp-upnext-title","{{title}}"],["span","ytp-upnext-author","{{author}}"]],["a","ytp-upnext-autoplay-icon",{href:"{{url}}"}],["span","ytp-upnext-bottom",["span","ytp-upnext-cancel"],["span","ytp-upnext-paused",
Q("YTP_AUTOPLAY_PAUSED_2")]],["span","ytp-upnext-close"]];R.call(this,c);var d=this.sa["ytp-upnext-cancel"],c=this.sa["ytp-upnext-close"],e=new R(["button",["ytp-upnext-cancel-button","ytp-button"],{tabindex:0,"aria-label":Q("YTP_AUTOPLAY_CANCEL")},Q("YTP_CANCEL")]);I(this,e);e.R("click",this.yq,this);e.o(d);d=new R(["button",["ytp-upnext-close-button","ytp-button"]]);I(this,d);d.R("click",this.yq,this);d.o(c);c=this.sa["ytp-upnext-autoplay-icon"];Kf(c,'<svg height="100%" version="1.1" viewBox="0 0 98 98" width="100%"><circle class="ytp-svg-autoplay-circle" cx="49" cy="49" fill="#000" fill-opacity="0.8" r="48" /><circle class="ytp-svg-autoplay-ring" cx="-49" cy="49" fill-opacity="0" r="46.5" stroke="#FFFFFF" stroke-dasharray="293" stroke-dashoffset="-293" stroke-width="4" transform="rotate(-90)" /><polygon class="ytp-svg-autoplay-triangle" fill="#fff" points="32,27 72,49 32,71" /></svg>');
this.A=a;this.L=Og("ytp-svg-autoplay-ring",this.element);this.H=this.G=this.D=this.F=null;this.J=new Wd(this.ri,5E3,this);I(this,this.J);this.K=0;this.T(c,"click",this.YB);this.wq();this.T(a,"autonavvisibility",this.wq);b&&this.T(this.sa["ytp-upnext-moving-thumbnail"],"load",this.MH)},sy=function(a){a.D||(Ji("a11y-announce",Q("YTP_PLAYLIST_UP_NEXT")+" "+a.F.title),a.K=Qt(),a.D=new Wd(a.vk,25,a),a.vk());
be(a.element,"ytp-upnext-autoplay-paused")},uy=function(a){ty(a);
a.K=Qt();a.vk();L(a.element,"ytp-upnext-autoplay-paused")},ty=function(a){a.D&&(a.D.dispose(),a.D=null)},vy=function(){},wy=function(a){var b=window.location;
a=gf(a,{})+"";a=a instanceof mg?a:qg(a);b.href=ng(a)},yy=function(a,b){var c=ti("EVENT_ID");
c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=ti("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Ye(window.location.href);e&&d.push(e);e=Ye(a);if(jb(d,e)||!e&&ua(a,"/"))if(d=We(a),d=Ue(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)){var e=ti("ST_BASE36",!0),f;f=ti("ST_SHORT",!0)?"ST-":"s_tempdata-";d=f=e?f+Va(d).toString(36):f+Va(d);e=c?ef(c):"";jk.set(""+d,e,5,"/","youtube.com");c&&(c=c.itct||c.ved,d=r("yt.logging.screenreporter.storeParentElement"),c&&d&&d(new vy))}}},zy=function(a,
b){window.open(a,b||Va(a).toString(36))},Ay=function(a){var b=!a.W().Fa&&3!=a.getPresentingPlayerType();
return a.Pa()||b},By=function(a,b,c){if(!c&&oy(a))return Xl(a),!0;
b.pauseVideo();a=a.currentTarget.getAttribute("href");yy(a,null);return!1},Ey=function(a,b,c){if(Cy(b.W())&&2!=b.getPresentingPlayerType()){if(oy(c))return b.Pa()&&Dy(b),Xl(c),!0}else{var d=oy(c);
d&&b.pauseVideo();yy(a,null);d&&(zy(a),Xl(c))}return!1},Fy=function(a){var b=a.W(),c=b.experiments.ga("video_wall_moving_thumbnails_first"),d=b.experiments.ga("video_wall_moving_thumbnails_hover"),c=b.experiments.ga("video_wall_moving_thumbnails_autoplay")||d||c,d=b.experiments.ga("video_wall_redesign");
this.G=!b.P;this.H=-1;b=["img",["ytp-videowall-moving-thumbnail"],{src:"{{moving_thumbnail}}"}];R.call(this,["a","videowall-still",{href:"{{url}}",target:this.G?"_blank":null,"aria-label":"{{watch}}","data-is-episodic":"{{is_episodic}}","data-is-featured":"{{is_featured}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},["div",d?"ytp-redesign-videowall-still-image":"videowall-still-image",{style:"{{background}}"}],c?b:null,["span","videowall-still-featured-label",Q("YTP_FEATURED")],["span",
d?"ytp-redesign-videowall-still-info":"videowall-still-info",["span",d?"ytp-redesign-videowall-still-info-bg":"videowall-still-info-bg",["span",d?"ytp-redesign-videowall-still-info-content":"videowall-still-info-content",["span",d?"ytp-redesign-videowall-still-info-title":"videowall-still-info-title","{{title}}"],["span",d?"ytp-redesign-videowall-still-info-author":"videowall-still-info-author","{{author_and_views}}"],["span",d?"ytp-redesign-videowall-still-info-duration":"videowall-still-info-duration",
"{{duration}}"]]]],["div",["videowall-still-listlabel-episodic",d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",Q("YTP_PLAYLIST_UP_NEXT")],["span","videowall-still-listlabel-episodic-icon"],["div","videowall-still-listlabel-episodic-info",["span","videowall-still-listlabel-episodic-index",["span","","{{episodic_index}}"]," / ",["span","","{{episodic_length}}"]],["span","","{{episodic_title}}"]]],["span",["videowall-still-listlabel-regular",
d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],Q("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix",d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],Q("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.A=a;this.D=null;this.R("click",this.VF);this.R("keypress",
this.WF);c&&this.T(this.sa["ytp-videowall-moving-thumbnail"],"load",this.YF)},Hy=function(a){if(1E5<Gy(a.A.app.la)){var b=a.D.bl();
b&&a.update({moving_thumbnail:b})}},Iy=function(a,b){Pq.call(this,a,"videowall-endscreen");
this.ca=b;this.J=0;this.G=[];this.H=this.D=null;this.M=this.O=!1;this.K=new Dr(this);I(this,this.K);this.P=new Wd(qa(L,this.element,"ytp-show-tiles"),0);I(this,this.P);var c=this.A.W().experiments.ga("video_wall_pagination");if(c){var d=new R(["button",["ytp-button","ytp-endscreen-previous"],{"aria-label":Q("YTP_PREVIOUS")}]);I(this,d);d.element.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 32 32" width="100%"><path d="M21.33,22 L15.33,16 L21.33,10 L19.33,8 L11.29,16 L19.33,24 L21.33,22 Z" fill="#fff" /></svg>';
d.o(this.element);d.R("click",this.DA,this)}this.S=new Gq(["div","ytp-endscreen-content"]);I(this,this.S);this.S.o(this.element);c&&(c=new R(["button",["ytp-button","ytp-endscreen-next"],{"aria-label":Q("YTP_NEXT")}]),I(this,c),c.element.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 32 32" width="100%"><path d="M16.98,16 L10.98,10 L12.98,8 L21.01,16 L12.98,24 L10.98,22 L16.98,16 Z" fill="#fff" /></svg>',c.o(this.element),c.R("click",this.CA,this));this.A.W().experiments.ga("video_wall_redesign")&&
L(this.element,"ytp-endscreen-redesign");this.F=new ry(a);I(this,this.F);Br(this.A,this.F.element,4);this.ka();this.R("transitionend",this.QC)},Ky=function(a){return Jy(a.A)&&a.ci()&&!a.H},Ly=function(a,b,c){return 0==b&&a.D.length&&(b=c/Iy.o,c/=Iy.o,3<=b&&3<=c&&py(a.D[0]).yb().Ql||2<=b&&2<=c&&a.A.W().experiments.ga("video_wall_moving_thumbnails_first"))?2*Iy.o:Iy.o},Ny=function(a){var b=My(a.ca);
b!=a.O&&(a.O=b,a.A.U("autonavvisibility"))},Py=function(a){vq.call(this,a);
Bi({});this.va="endscreen";this.logEvent="end";this.A=null;var b=a.W();Oy(a)?this.A=new Iy(this.o,this):b.ea?this.A=new Cr(this.o):this.A=new Pq(this.o);Br(this.o,this.A.element,4)},Ry=function(a){var b=a.getVideoData(),b=b&&b.Ha,c=a.getPresentingPlayerType();
return Qy(a.W())&&2!=c&&3!=c&&!b},Ty=function(a){var b=a.o.getVideoData(),c=!Oy(a.o)||!(!b.K||!b.K.length);
a.o.W();b=Wx(b,"ypc_module");a=Sy(a.o.app);return c&&!b&&!a},Oy=function(a){a=a.W();
return a.sd&&!a.ea},My=function(a){return a.A instanceof Iy&&a.A.C&&Ky(a.A)},Uy=function(a){var b=Math.max(1E3*(a.o.getVideoData().lengthSeconds-10),0),b=new rq(b,0x8000000000000,{id:"preload"}),c=new rq(0x8000000000000,0x8000000000000,{id:"load",
priority:6});a.ib([b,c])},Vy=function(a){return Ry(a)?new Py(a):null},Xy=function(a){return(a=Wy[a.toString()])?a:"YTP_ERROR_LICENSE"},Yy=function(){var a=[],b=[];
return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}},Zy=function(a){var b="";
if(a)for(var c=0;c<a.length;c++)b+=a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3)+",";return b},$y=function(a,b){if(!a)return-1;
for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c;return-1},az=function(a,b){var c=$y(a,b);
return 0<=c?a.end(c):window.NaN},bz=function(a){return a&&a.length?a.end(a.length-1):window.NaN},cz=function(a,b){var c=az(a,b);
return 0<=c?c-b:0},dz=function(){},fz=function(a){a.src&&(Hw&&0<a.readyState&&(a.currentTime=Math.max(ez,0)),a.removeAttribute("src"),a.load(),!a.nf||!a.nf.o||a.nf&&a.nf.equals(null)||(a.nf&&a.nf.dispose(),a.nf=null))},gz=function(a,b){this.A=a||64;
this.o=b||null},lz=function(a,b,c,d){if(T(a,128))return a;
var e=a.A,f=a.o,k=b.target;if(!T(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&k.o.ended||"ended"==b.type&&(k.o.ended||1>Math.abs(k.getCurrentTime()-k.o.duration)))0<k.o.networkState&&k.o.src&&(e=14,f=null);else if("pause"==b.type)T(a,256)?(e^=256)||(e=64):T(a,32)||T(a,2)||T(a,4)||(e=4,T(a,1)&&T(a,8)&&(e|=1),f=null);else if("playing"==b.type)e=8,f=null,T(a,32)&&(e|=32),d&&T(a,1)&&hz(c,k)&&(e|=1);else if("error"==b.type){a:{if(2==k.getErrorCode())b="progressive.net";else if(3==k.getErrorCode())b=
"fmt.decode";else if(4==k.getErrorCode())b="fmt.unplayable";else{b=null;break a}b={errorCode:b,message:Q("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(f=b,e|=128)}else if("progress"==b.type)iz(a)&&hz(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=jz(k)&&(e|=1),e&=-3;else if("waiting"==b.type)T(a,2)||(e|=1);else if("timeupdate"==b.type)T(a,16)||T(a,4)||(e=hz(c,k)?e|1:e&-2),1<k.o.readyState&&0<k.getCurrentTime()&&(e&=-65);else return a;
return kz(a,e,f)},hz=function(a,b){return a?mz(a,b.getCurrentTime(),Qt(),jz(b)):!1},kz=function(a,b,c){return b==a.A&&c==a.o||b&128&&!c||b&2&&b&16?a:new gz(b,c)},nz=function(a,b){return kz(a,a.A|b)},oz=function(a,b){return kz(a,a.A&~b)},pz=function(a){return kz(a,(a.A|4)&-9)},T=function(a,b){return!!(a.A&b)},iz=function(a){return T(a,8)&&!T(a,2)},qz=function(a){return T(a,64)&&!T(a,8)&&!T(a,4)},rz=function(a){return T(a,1)&&!T(a,2)},sz=function(a){return T(a,128)?-1:T(a,2)?0:T(a,1)&&!T(a,32)?3:T(a,
64)?-1:T(a,8)?1:T(a,4)?2:-1},tz=function(a,b,c){Lj.call(this);
this.F=b;this.o=7500+Math.floor(15E3*Math.random());this.G=c.innertubeApiKey;this.H=JSON.stringify({context:{client:{clientName:c.oz,clientVersion:c.innertubeContextClientVersion,hl:c.qz,gl:c.pz}},videoId:a});this.J="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.A=new Wd(y(this.D,this));I(this,this.A);this.D()?this.A.start(this.o):this.A.start(1E4)},uz=function(a){R.call(this,["a",
"ytp-fresca-suggested-central-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-promo-central",["div","ytp-fresca-suggested-header","{{suggested_header_central}}"],["div","ytp-fresca-suggested-central-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div","ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]);this.A=a;this.R("click",this.D,this)},vz=function(a){R.call(this,
["div",
"ytp-fresca-suggested-promo-sidebar",["div","ytp-fresca-suggested-sidebar-title","{{suggested_sidebar_title}}"],["button",["ytp-button","ytp-fresca-suggested-sidebar-close-button"],"{{suggested_sidebar_close}}"],["div","ytp-fresca-suggested-sidebar-items","{{sidebar_items}}"]]);this.A=[];this.D=a;this.F=!1},zz=function(a,b){a.B("suggested_sidebar_title",b.A?Q("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.A}):"");
var c=a.sa["ytp-fresca-suggested-sidebar-close-button"];Kf(c,Qf());a.T(c,"click",a.AA);Nb(a.A);a.A=[];F(b.o,function(a,b){if(!(5<=b)&&a){var c=new R(["a","ytp-fresca-suggested-sidebar-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-sidebar",["div","ytp-fresca-suggested-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div","ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]),
k="background-image:"+wz(a),m=xz(a);c.update({suggested_title:a.qt,suggested_content:yz(a),badge_content:m,image_style:k,link_destination:a.getVideoUrl()});k=c.sa["ytp-fresca-suggested-image-badge"];M(k,"ytp-fresca-suggested-image-badge-live",a.isLive());k.style.display=m?"":"none";c.R("click",this.Kz,this);this.A.push(c)}},a);
a.B("sidebar_items",a.A)},Az=function(a){R.call(this,["div",
"ytp-fresca-module",["div","ytp-fresca-slant",["div","ytp-fresca-slant-blur-image"],["div","ytp-fresca-slant-inner",["div","ytp-fresca-slant-overlay"],["div","ytp-fresca-slant-arrows"]]],["div","ytp-fresca-band-slate",["div","ytp-fresca-message",["h1","ytp-fresca-heading","{{heading}}"],["h2","ytp-fresca-byline","{{byline}}"],["h3","ytp-fresca-countdown","{{countdown}}"]]]]);this.K=a;this.G=0;this.A=null;this.H=-1;this.F=new uz(a);I(this,this.F);this.D=new vz(a);I(this,this.D);this.F.ka();this.F.o(this.element);
this.D.ka();this.D.o(this.element)},Ez=function(a,b,c){if(!a.A||a.A.state!=b.state||a.A.startTime!=b.startTime||a.A.imageUrl!=b.imageUrl||a.A.messageText.join()!=b.messageText.join()||c)if(a.A=b,b=Bz(b),M(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.A.imageUrl,b=a.sa["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=a.A.getMessage(),a.update({heading:b[0]||"",
byline:b[1]||"",countdown:b[2]||""}),a.J(!0),a.A.A&&!Cz(a.K))if(Dz(a.A.A)&&!Bz(a.A)){b=a.F;c=a.A.A.o[0];var d;d=a.A.A;d=d.A?Q("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.A}):"";var e="background-image:"+wz(c);b.update({suggested_header_central:d,suggested_title:c.qt,suggested_content:yz(c),badge_content:xz(c),link_destination:c.getVideoUrl(),image_style:e});M(b.sa["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.F.show();a.D.ka()}else b=a.A.A,!(0<b.o.length)||
Dz(b)||Bz(a.A)||a.D.F?a.D.ka():(zz(a.D,a.A.A),a.D.show()),a.F.ka();else a.F.ka(),a.D.ka()},Fz=function(a){var b=Math.floor(K()/1E3);
if(b>a)return"";a-=b;return 86400>a?ny(a):259200>a?Q("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):Q("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})},Gz=function(a,b,c,d,e,f){w(a)?(this.F="y"==a?b:0,this.D="m"==a?b:0,this.o="d"==a?b:0,this.A="h"==a?b:0,this.B="n"==a?b:0,this.C="s"==a?b:0):(this.F=a||0,this.D=b||0,this.o=c||0,this.A=d||0,this.B=e||0,this.C=f||0)},Jz=function(a,b,c){ga(a)?(this.date=Hz(a,b||0,c||1),Iz(this,c||1)):ia(a)?(this.date=Hz(a.getFullYear(),a.getMonth(),a.getDate()),
Iz(this,a.getDate())):(this.date=new Date(K()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Iz(this,a))},Hz=function(a,b,c){b=new Date(a,b,c);
0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b},Iz=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))},Kz=function(){},Mz=function(a){if("number"==typeof a){var b=new Kz;
b.B=a;var c;c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",Pa(c,2));c=d.join("")}b.C=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=Lz(a);b.D=[c,c];b.o={gN:a,ao:a};b.A=[];return b}b=new Kz;b.C=a.id;b.B=-a.std_offset;b.D=a.names;b.o=a.names_ext;b.A=a.transitions;return b},Lz=function(a){var b=["GMT"];
b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Pa(Math.floor(a/60)%100,2),":",Pa(a%60,2));return b.join("")},Nz=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.A.length&&c>=a.A[d];)d+=2;
return 0==d?0:a.A[d-1]},Rz=function(a,b){this.A=[];
this.o=b||Oz;"number"==typeof a?Pz(this,a):Qz(this,a)},Sz=function(a){return a.getHours?a.getHours():0},Qz=function(a,b){for(Tz&&(b=b.replace(/\u200f/g,""));b;)for(var c=0;c<Uz.length;++c){var d=b.match(Uz[c]);
if(d){d=d[0];b=b.substring(d.length);0==c&&("''"==d?d="'":(d=d.substring(1,d.length-1),d=d.replace(/\'\'/,"'")));a.A.push({text:d,type:c});break}}},Pz=function(a,b){var c;
if(4>b)c=a.o.ik[b];else if(8>b)c=a.o.bo[b-4];else if(12>b)c=a.o.Wu[b-8],c=c.replace("{1}",a.o.ik[b-8]),c=c.replace("{0}",a.o.bo[b-8]);else{Pz(a,10);return}Qz(a,c)},Vz=function(a,b){var c;
c=String(b);var d=a.o||Oz;if(void 0!==d.uw){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.uw+k-48):c.charAt(f))}c=e.join("")}return c},Wz=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");
},Xz=function(a,b,c,d,e,f){var k=b.length;
switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=k?a.o.$u[c]:a.o.av[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),Vz(a,Pa(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.o.Kv[c];break a;case 4:k=a.o.Sn[c];break a;case 3:k=a.o.Un[c];break a;default:k=Vz(a,Pa(c+1,k))}return k;case "k":return Wz(e),Vz(a,Pa(Sz(e)||24,k));case "S":return Vz(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Pa(0,k-3):""));case "E":return c=d.getDay(),4<=k?a.o.eo[c]:a.o.Vn[c];
case "a":return Wz(e),k=Sz(e),a.o.Nn[12<=k&&24>k?1:0];case "h":return Wz(e),Vz(a,Pa(Sz(e)%12||12,k));case "K":return Wz(e),Vz(a,Pa(Sz(e)%12,k));case "H":return Wz(e),Vz(a,Pa(Sz(e),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.o.ew[c];break a;case 4:k=a.o.Zn[c];break a;case 3:k=a.o.Yn[c];break a;default:k=Vz(a,Pa(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.o.dw[c];break a;case 4:k=a.o.Wn[c];break a;case 3:k=a.o.Xn[c];break a;default:k=Vz(a,Pa(c+1,k))}return k;case "Q":return c=
Math.floor(d.getMonth()/3),4>k?a.o.Yv[c]:a.o.Rv[c];case "d":return Vz(a,Pa(d.getDate(),k));case "m":return Wz(e),Vz(a,Pa(e.getMinutes(),k));case "s":return Wz(e),Vz(a,Pa(e.getSeconds(),k));case "v":return k=f||Mz(c.getTimezoneOffset()),k.C;case "V":return a=f||Mz(c.getTimezoneOffset()),2>=k?a.C:0<Nz(a,c)?p(a.o.Zu)?a.o.Zu:a.o.DST_GENERIC_LOCATION:p(a.o.ao)?a.o.ao:a.o.STD_GENERIC_LOCATION;case "w":return c=a.o.lk,e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),b=a.o.kk||0,c=e.valueOf()+864E5*(((p(c)?
c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),Vz(a,Pa(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=f||Mz(c.getTimezoneOffset()),4>k?a.D[0<Nz(a,c)?2:0]:a.D[0<Nz(a,c)?3:1];case "Z":return e=f||Mz(c.getTimezoneOffset()),4>k?(k=-(e.B-Nz(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Pa(Math.floor(k/60)%100,2),Pa(k%60,2)),k=a.join("")):k=Vz(a,Lz(e.B-Nz(e,c))),k;default:return""}},Yz=function(a){this.D=a.thumbnailUrl?a.thumbnailUrl:null;
this.o=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.qt=a.title;this.A=a.state;this.B=a.currentViewers?(0,window.parseInt)(a.currentViewers,10):null;this.F=a.videoUrl;this.C=a.durationSecs?(0,window.parseInt)(a.durationSecs,10):null},wz=function(a){return(a=a.D)?"url("+a+")":""},yz=function(a){if("COMPLETE"==a.A){var b=Math.floor(K()/1E3);
a=a.o?b-a.o:0;return 172800<a?Q("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?Q("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):Q("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(K()/1E3),a=a.o?a.o-b:0,172800<a?Q("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?Q("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):Q("YTP_FRESCA_STREAMING_SOON")):a.B&&2<a.B?Q("YTP_FRESCA_VIEWERS_WATCHING_NOW",{VIEWER_COUNT:a.B}):Q("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")},
xz=function(a){return"COMPLETE"==a.A&&a.C?ny(a.C):a.isLive()?Q("YTP_FRESCA_LIVE_BADGE"):null},Zz=function(a){this.A=a.channelName?a.channelName:"";
this.o=[];if(a=a.suggestedEvents)for(var b=0;b<a.length;b++)this.o.push(new Yz(a[b]))},Dz=function(a){return 1==a.o.length&&a.o[0].isLive()},aA=function(a,b){this.state=-1;
this.B=a;this.messageText=[];this.C=!1;b&&$z(this,b)},$z=function(a,b){var c=b.lifeCycleState;
c&&(a.state=bA[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.C=0<=db(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});
if(c=b.broadcastId)a.broadcastId=c;a.A=new Zz(b)},cA=function(a){switch(a.state){case 6:return!a.o()&&a.B?[Q("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),
null,Q("YTP_FRESCA_EVENT_OFFLINE")]:a.o()?[]:[Q("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),Q("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:return[Q("YTP_FRESCA_EVENT_OVER_MESSAGE"),Q("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(Bz(a))return["Dawn of","The final day","-24 hours remain-"];if(!a.B&&a.startTime){var b=ti("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d="",d=b.formatLongDate;Oz={Sn:b.months,Wn:b.months,Un:b.shortMonths,Xn:b.shortMonths,ik:b.dateFormats,eo:b.weekdays,Zn:b.shortMonths,
Vn:b.shortWeekdays,Yn:b.shortWeekdays,pw:b.weekendRange,kk:b.firstDayOfWeek,lk:b.firstWeekCutoffDay,Nn:b.amPms};c=(new Rz(d)).format(new Date(1E3*c))}b=Math.floor(K()/1E3);return[b<=a.startTime?Q("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?Q("YTP_FRESCA_EVENT_STARTING_SOON"):Q("YTP_FRESCA_EVENT_HASNT_STARTED"),c]}return a.B?[Q("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,Q("YTP_FRESCA_EVENT_OFFLINE")]:a.B?[Q("YTP_FRESCA_EVENT_OFFLINE")]:[Q("YTP_FRESCA_STAND_BY_MESSAGE")]}},Bz=function(a){if(!a.startTime)return!1;
var b=a.startTime-Math.floor(K()/1E3);return jb(dA,a.state)&&86459>=b&&86400<=b},eA=function(a){vq.call(this,a);
this.logEvent=this.va="fresca";this.B=this.J=!1;this.C=null;Bi({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live stream is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_EVENT_VIDEO_INTERRUPTED:"Video was interrupted",YTP_FRESCA_STREAMER_STOPPED_STREAMING:"The streamer stopped streaming.",YTP_FRESCA_EVENT_OFFLINE:"Offline",YTP_FRESCA_EVENT_OFFLINE_PREAMBLE:"This stream is",YTP_FRESCA_EVENT_STARTS_IN:"Watch the live stream!",
YTP_FRESCA_EVENT_STARTING_SOON:"Live stream is starting soon",YTP_FRESCA_EVENT_HASNT_STARTED:"This scheduled live stream hasn't started yet",YTP_FRESCA_CENTRAL_PROMO_HEADER:"$STREAMER_NAME is streaming now!",YTP_FRESCA_SIDEBAR_PROMO_HEADER:"Other live streams by $STREAMER_NAME",YTP_FRESCA_LIVE_BADGE:"Live",YTP_FRESCA_LIVE_DAYS_AGO:"Streamed $DAYS days ago",YTP_FRESCA_LIVE_HOURS_AGO:"Streamed $HOURS hours ago",YTP_FRESCA_LIVE_RECENTLY:"Recently live",YTP_FRESCA_LIVE_IN_DAYS:"Live in $DAYS days",YTP_FRESCA_LIVE_IN_HOURS:"Live in $HOURS hours",
YTP_FRESCA_VIEWERS_WATCHING_NOW:"$VIEWER_COUNT watching now",YTP_FRESCA_NO_VIEWERS_STREAMING_NOW:"Streaming now",YTP_FRESCA_COUNTDOWN_DAYS:"$DAYS days",YTP_FRESCA_COUNTDOWN_HOURS:"$HOURS hours"});this.H=!1;this.K="leanback"!=this.o.W().Ba},gA=function(a,b){if(!a.K)return!1;
var c=!!b.getMessage().length||!!b.imageUrl;if(!a.B&&6>b.state)return c;if(a.o.app.A.K&&(b.imageUrl||b.messageText.length))return!0;var d=fA(a.o),d=rz(d)||T(d,2),e;if(e=!a.A.o())(e=!a.B)||(e=!(fA(a.o).ob()&&!Xx(a.o.getVideoData())&&!a.o.app.A.K)&&d);return e||a.J&&a.o.app.A.K||!a.B&&6<b.state?c:!1},iA=function(a,b){var c=gA(a,b);
if(!a.B)switch(b.state){case 6:b.o()&&(a.B=!0,zq(a));break;case 8:case 7:a.B=!0}c&&Ez(a.D,b);c&&!a.loaded?(a.load(),hA(a.o)):!c&&a.loaded&&(a.unload(),hA(a.o))},jA=function(a){return Wx(a.getVideoData(),"fresca_module")?new eA(a):null},kA=function(a,b){if(!a.A||!a.A.equals(b)){a.A=b;
var c=a.o,d;d={hasActiveStream:b.o(),imageUrl:b.imageUrl,messageText:b.getMessage(),startTime:b.startTime,state:b.state};hA(c,d)}},lA=function(){if(!Tg)return!1;
try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}},oA=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");
if(mA){var b=nA();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");},pA=function(a){var b=a.xml;
if(b)return b;if("undefined"!=typeof window.XMLSerializer)return(new window.XMLSerializer).serializeToString(a);throw Error("Your browser does not support serializing XML documents");},qA=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=Jg(a);
"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=Jg(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null},nA=function(){var a=new window.ActiveXObject("MSXML2.DOMDocument");
a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}return a},rA=function(a){this.A=a||window;
this.o=[]},sA=function(a,b,c){c=y(c,a.A);
b=Pl(b,"mouseleave",c);a.o.push(b);return b},tA=function(a,b,c,d){c=y(c,d||a.A);
b=Rl(b,c);a.o.push(b)},uA=function(a,b,c){G.call(this);
this.o=null;this.C=!1;this.F=a;this.D=c;this.A=b||window;this.B=y(this.Ax,this)},vA=function(a){a=a.A;
return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null},zA=function(a){a=a.A;
return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null},DA=function(a){a=na(a);
delete BA[a];ac(BA)&&CA&&CA.stop()},FA=function(){CA||(CA=new Wd(function(){EA()},20));
var a=CA;a.isActive()||a.start()},EA=function(){var a=K();
Ob(BA,function(b){GA(b,a)});
ac(BA)||FA()},HA=function(){J.call(this);
this.o=0;this.endTime=this.startTime=null},IA=function(a,b,c,d){HA.call(this);
if(!da(a)||!da(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.B=a;this.H=b;this.duration=c;this.F=d;this.A=[];this.progress=this.G=0;this.D=null},GA=function(a,b){a.progress=(b-a.startTime)/(a.endTime-a.startTime);
1<=a.progress&&(a.progress=1);a.G=1E3/(b-a.D);a.D=b;JA(a,a.progress);1==a.progress?(a.o=0,DA(a),a.$b(),a.ih()):a.ob()&&a.hm()},JA=function(a,b){ha(a.F)&&(b=a.F(b));
a.A=Array(a.B.length);for(var c=0;c<a.B.length;c++)a.A[c]=(a.H[c]-a.B[c])*b+a.B[c]},KA=function(a,b){jc.call(this,a);
this.x=b.A[0];this.y=b.A[1];this.duration=b.duration;this.progress=b.progress;this.fps=b.G;this.state=b.o},LA=function(a){return Math.pow(a,3)},MA=function(a){return 3*a*a-2*a*a*a},NA=function(a){this.o="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1},OA=function(a,b){var c=a.A(b,void 0);
return-1==(0==c?a.o:c)?"rtl":"ltr"},PA=function(){this.o=[];
this.A=tq},QA=function(a,b){for(var c=[],d=0;d<a.o.length;++d){var e=a.o[d];
e.contains(b)&&c.push(e);if(e.start>b)break}return c},SA=function(a){return a.o.slice(RA(a,0x7ffffffffffff),a.o.length)},RA=function(a,b){var c=Bb(a.o,function(a){return b-a.start||1});
return 0>c?-(c+1):c},TA=function(a,b){for(var c=void 0,d=0;d<a.o.length;d++){var e=a.o[d];
e.contains(b)&&(void 0==c||e.end<c)&&(c=e.end);if(e.start>b&&(void 0==c||e.start<c)){c=e.start;break}}return c},UA=function(a,b,c,d){G.call(this);
this.B=window.NaN;this.G=!1;this.F=null;this.H=this.J=this.C=!1;this.O=a;this.P=b;this.K=c;this.L=d;this.M=new Wd(this.Rd,250,this);I(this,this.M);this.D=new Wd(this.Rd,0,this);I(this,this.D);this.A=[];this.o=new PA},VA=function(a,b){var c=[];
if(!b.length)return c;for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.A.indexOf(e)&&(a.A.push(e),c.push([1,e]))}return c},WA=function(a,b){var c=[];
if(!b.length)return c;b.sort(tq);for(var d=0;d<b.length;d++){var e=b[d];a.A.splice(a.A.indexOf(e),1);c.push([2,e])}return c},XA=function(a){var b=0;
-1!=a.indexOf("h")&&(a=a.split("h"),b=3600*a[0],a=a[1]);-1!=a.indexOf("m")&&(a=a.split("m"),b=60*a[0]+b,a=a[1]);-1!=a.indexOf("s")?(a=a.split("s"),b=1*a[0]+b):b=1*a+b;return b},YA=function(a){return da(a)&&a.length?a[0]:a},ZA=function(a){var b=/.+/;
return w(a)&&null!=b&&null!=a&&a.match(b)?a:""},$A=function(a,b){if(null==a)return b;
var c=(0,window.parseInt)(a,0);if((0,window.isNaN)(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c},aB=function(a){return w(a)?a:""},bB=function(a,b,c){for(var d in b)if(b[d]==a)return a;
return c},cB=function(a,b){return"true"==a||"false"==a?"true"==a:b},dB=function(a,b){return w(a)?(0,window.parseFloat)(a):b},eB=function(a,b,c,d,e){a=(0,window.parseFloat)(a);
if(null!=a&&!(0,window.isNaN)(a)){if(d)return le(a,b,c);if(a>=b&&a<=c)return a}return e},fB=function(a){if(null==a)return 0;
if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;F(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
return c*b},gB=function(a,b){if(null==a)return null;
if(ea(a)){var c=[];F(a,function(a){(a=b(a))&&c.push(a)});
return c}var d=b(a);return d?[d]:[]},hB=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new te((0,window.parseFloat)(a.top),(0,window.parseFloat)(a.right),(0,window.parseFloat)(a.bottom),(0,window.parseFloat)(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null},iB=function(a){function b(a){return ae(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)},jB=function(a,b,c,d){this.value=a;
this.target=b;this.showLinkIcon=c;this.jj=d},lB=function(a){if(!a)return null;
var b=aB(a.value);if(!b)return null;var c=bB(a.target,kB,"current");return null==c?null:new jB(b,c,cB(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)},mB=function(a){return a.value?a.value:null},oB=function(a){var b;
(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=nB(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1},nB=function(a){a=a.replace(/^(https?:)?\/\//,"");
a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()},pB=function(a){a=mB(a);
if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!oB(a))||(b=Xe(We(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=jj(a);if(!b||!b.v)return null;if(b.t)return XA(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=hj(a[1]))&&a.t?XA(a.t):-1},qB=function(a){a=mB(a);
a=a.replace(/https?:\/\//g,"");return oB(a)?(a=jj(a))&&a.v?a.v:null:null},sB=function(a,b,c,d){(a=mB(a))?oB(a)?d=kj(a,{feature:"iv",
src_vid:c,annotation_id:b},!1):(a?(b=nB(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=qa(rB,d.pageId,d.Db),a=new N(a),rf(a,d(a.B)),d=a.toString()):d=a):d=null;return d},rB=function(a,b,c){c=c.replace(/\/(u|b)\/[0-9]+/g,"");
var d=/^[0-9]+$/;a&&d.test(a)&&(c="/b/"+a+c);b&&d.test(b)&&(c="/u/"+b+c);return c},tB=function(a,b){return b?b:oB(a)?"current":"new"},vB=function(a){this.A=a;
this.o=0;this.D=window.NaN;this.B=0;this.wa=[];this.C=uB(this.A);this.F=this.G=0},wB=function(a){a.C.startTime=a.B;
a.C.endTime=a.o;a.wa.length&&cb(a.wa).isEmpty()?a.wa[a.wa.length-1]=a.C:a.wa.length&&a.C.isEmpty()||a.wa.push(a.C);a.G+=a.o-a.B;a.C=uB(a.A);a.B=a.o},xB=function(a){return a.G+a.A.A()-a.B},yB=function(a){a.wa.length&&a.o==a.B||wB(a);
var b=a.wa;a.wa=[];return b},zB=function(a,b,c){c-=a.D;
return b==a.o&&.5<c},AB=function(a,b){this.o=b;
this.B=!1;this.videoData=a},BB=function(a,b,c){AB.call(this,b,c);
this.C=a},CB=function(a){G.call(this);
this.o=a;this.B={};this.P=window.NaN;this.F=new Wd(this.nB,3E4,this);I(this,this.F);this.G=new Wd(this.oj,100,this);I(this,this.G);this.A="N";this.D=0;this.O=window.NaN;this.S=0;this.K=this.Z="";this.ca=-1;this.J=this.L=0;this.M=this.H=!1;this.C=null;window.navigator.getBattery&&window.navigator.getBattery().then(y(function(a){this.C=a},this))},DB=function(a,b,c,d){var e=a.B[c];
e||(e=[],a.B[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))},EB=function(a){var b={event:"streamingstats"};
if(a.o.videoData.B){b.fmt=a.o.videoData.B.id;var c=a.o.videoData.F;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.o.videoData.clientPlaybackNonce;b.ei=a.o.videoData.eventId;b.el=a.o.o.Ba;b.docid=a.o.videoData.videoId;b.ns=a.o.o.ha;b.fexp=a.o.o.experiments.experimentIds.toString();b.cl=a.o.o.xa;a.o.o.adFormat&&(b.adformat=a.o.o.adFormat);a.o.videoData.Ha&&(b.live=a.o.videoData.$d?"dvr":"live");b.html5="1";return b},FB=function(a,b,c,d){var e=a.o.A();
c=[c,e.toFixed(3)];d&&c.push(d);DB(a,b,"error",c)},GB=function(a,b){var c=a.B.cat||[];
c.push(b);a.B.cat=c},IB=function(a,b,c,d){this.La=b;
this.segments=[];this.experimentIds=[];this.J=this.Ja=this.ia=this.ha=this.Ca=this.autoplay=this.autonav=!1;this.Z="yt";this.K=this.A=this.D=null;this.S=!1;this.C="watchtime"==c;this.O="playback"==c;this.Fa="delayplay"==c;this.F="atr"==c;this.Ga="engage"==c;this.da=!1;this.ca=this.F?"/api/stats/"+c:"//"+b.yd+"/api/stats/"+c;d&&(this.ia=d.fs,d.rtn&&(this.A=d.rtn),this.C?(this.Pb=d.state,0<d.rti&&(this.D=d.rti)):(this.Ka=d.mos,this.Sa=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav));
this.adFormat=b.adFormat;b.experiments.ga("legacy_autoplay_flag")&&(this.autoplay=b.L);this.ab=b.la;this.bb=ec(b.A);this.ra=b.ca;this.kb=b.Ba;this.experimentIds=b.experiments.experimentIds;this.ea=b.Y;this.Z=b.ha;this.region=b.region;this.Qb=b.xa?b.xa.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.Wa=HB();this.da=b.experiments.o;this.G=a.oauthToken||this.G;b=this.La;this.autoplay=b.experiments.ga("legacy_autoplay_flag")||"detailpage"!=b.Ba?a.Pc:a.Pc&&a.Wi;this.autonav=a.Wi||
this.autonav;this.K=a.Rj;this.clientPlaybackNonce=a.clientPlaybackNonce;this.P=a.vssCredentialsToken;this.ua=a.an;this.H=a.Pj;this.fa=a.hf;a.B&&(this.na=a.B.id,a.F&&a.F.id!=this.na&&(this.M=a.F.id));this.J=a.zg;this.qb=a.Qj;a.Ha&&(this.Na=a.$d?"dvr":"live");this.wb=a.sn;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.Ta||a.playlistId;this.la=a.fa;this.xa=a.ea;this.bc=a.Le;this.subscribed=a.subscribed;this.videoId=a.videoId;this.dc=a.Ki;this.visitorData=a.visitorData;this.osid=
a.osid;this.xb=a.Di;this.referrer=a.referrer;this.Xa=a.Sa||a.Zd;this.searchQuery=a.searchQuery},JB=function(a,b){if(a.F)return null;
var c=a.G&&nj(),d=a.da&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.G);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,$b:b}},KB=function(a,b,c,d){b.cmt=b.len;
b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=gf(a,b);c?tj(a,c):iq(a)},MB=function(a){var b={ns:a.Z,
el:a.kb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.o(a.H),plid:a.playbackId,ei:a.eventId,fmt:a.na,fs:a.ia?"1":"0",rt:a.o(a.Ta),of:a.xb,adformat:a.adFormat,content_v:a.ab,euri:a.ra,subscribed:a.subscribed,lact:a.Wa,live:a.Na,cl:a.Qb,mos:a.Ka,q:a.searchQuery,osid:a.osid,state:a.Pb,vm:a.dc,volume:a.Sa};ra(b,a.bb);a.autonav&&(b.autonav="1");if(a.La.experiments.ga("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||a.J)b.autoplay="1";a.ha&&(b["final"]=
"1");a.J&&(b.splay="1");a.fa&&(b.delay=a.fa);a.ea&&(b.hl=a.ea);a.region&&(b.cr=a.region);p(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);p(a.Y)&&(b.len=a.o(a.Y));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.A&&(b.rtn=a.o(a.A));a.Xa&&(b.feature=a.Xa);a.playlistId&&(b.list=a.playlistId);a.la&&(b.ctrl=a.la);a.xa&&(b.ytr=a.xa);a.bc&&(b.ssrt="1");a.M&&(b.afmt=a.M);a.C?(b.idpj=a.qb,b.ldpj=a.wb,null!=a.D&&(b.rti=a.o(a.D))):p(a.adType)&&(b.at=a.adType);(a.O||a.Fa)&&
a.K&&(b.tst=a.K);a.C&&(b.st=LB(a,ji(a.segments,function(a){return a.startTime})),b.et=LB(a,ji(a.segments,function(a){return a.endTime})));
zh(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=LB(a,ji(a.segments,function(a){return a.visibilityState})));
zh(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=LB(a,ji(a.segments,function(a){return a.playbackRate})));
zh(a.segments,function(a){return"-"!=a.Ak})&&(b.cc=ji(a.segments,function(a){return a.Ak}).join(","));
if(zh(a.segments,function(a){return!!a.xk})){var c="au";
a.O&&(c="au_d");b[c]=ji(a.segments,function(a){return a.xk}).join(",")}nj()&&a.P&&(b.ctt=a.P,b.cttype=a.ua);
a.Ga&&(b.etype=p(a.B)?a.B:0);return b},LB=function(a,b){return ji(b,a.o).join(",")},NB=function(a){G.call(this);
this.o=a;this.A=new CB(a);I(this,this.A);this.B=new vB(a);this.F="paused";this.G=window.NaN;this.J=[10,10,10,40];this.K=this.H=0;this.P=this.O=this.M=this.L=this.C=!1;this.D=window.NaN;this.S=new BB(this.B,this.o.videoData,this.o.o)},PB=function(a,b,c){var d=OB(a.o);
c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.J[a.H];a.H+1<a.J.length&&a.H++;c+=e;d=1E3*(c-d);a.G=vi(y(a.WA,a,c,b),d);return c},RB=function(a,b){var c=QB(a.o);
ra(c,{state:a.F});c=new IB(a.o.videoData,a.o.o,b,c);c.H=a.o.A();a.o.videoData.Ha||(c.Y=a.o.D());c.Ta=OB(a.o);c.segments=[uB(a.o)];return c},SB=function(a,b){var c=RB(a,"watchtime");
c.segments=b;c.H=a.B.o;return c},TB=function(a){a.B.update();
return SB(a,yB(a.B))},WB=function(a){a.o.videoData.remarketingUrl&&!a.O&&(UB(a,a.o.videoData.remarketingUrl),a.O=!0);
a.o.videoData.ppvRemarketingUrl&&!a.P&&(UB(a,a.o.videoData.ppvRemarketingUrl),a.P=!0);VB(a)},ZB=function(a,b){if(!a.isDisposed()){T(b.state,2)?(a.F="paused",0<XB(b,2)&&a.C&&TB(a).send()):T(b.state,8)?(a.F="playing",a.C&&(0,window.isNaN)(a.G)&&PB(a,!1)):a.F="paused";
var c=a.A,d=b.state,e=OB(c.o),f;f=b.state;if(T(f,128))f="ER";else if(T(f,16)||T(f,32))f="S";else{var k=YB[sz(f)];"B"==k&&T(f,4)&&(k="PB");f=k}if(f!=c.A){k=f;if(!(e<c.D)){if("PL"==c.A)c.J+=e-c.D;else if("B"==c.A&&c.H&&(c.H=!1,c.L+=e-c.D,!c.M&&10<=c.L&&180>=c.J)){c.o.G();if(!c.isDisposed()){var m=EB(c);m.qoealert="1";m=gf(c.o.o.wd,m);iq(m)}c.M=!0}"B"!=k||"PL"!=c.A&&"PB"!=c.A||(c.H=!0);c.D=e}!c.o.o.experiments.B||"B"!=f&&"PB"!=f?DB(c,e,"cmt",[c.o.A().toFixed(3)]):c.oj(e);DB(c,e,"vps",[f]);c.A=f}T(d,
128)&&FB(c,e,d.o.errorCode,d.o.errorDetail);(T(d,2)||T(d,128))&&c.nh(e);a.D&&T(b.state,128)&&(a.tj("error-100"),xi(a.D))}},$B=function(a){a.D=wi(y(a.tj,a,"heartbeat"),3E4)},VB=function(a){a.o.videoData.D.eventLabel=a.o.o.Ba;
a.o.videoData.D.playerStyle=a.o.o.o;a.o.videoData.xa&&(a.o.videoData.D.feature="pyv");a.o.videoData.D.vid=a.o.videoData.videoId;a.o.videoData.D.isAd=!("adunit"!=a.o.o.Ba&&!a.o.videoData.xa)},UB=function(a,b,c){a.o.o.experiments.o&&a.o.videoData.visitorData&&mj(b)?tj(b,{$b:c,
headers:{"X-Goog-Visitor-Id":a.o.videoData.visitorData}}):iq(b,c)},aC=function(a){this.$=a;
this.o={}},eC=function(a,b,c){if(b){var d=bC(a,b);
a.o[b]=d["p-time"];d["iv-event"]=d.link||d["l-class"]||d["link-id"]?2:7;b=sb(c||[]);30==d["a-type"]&&(c=cC(a,d["a-id"],"cta_annotation_shown"))&&b.push(c);dC(a,d,b)}},fC=function(a,b,c,d,e,f){if(b){var k=bC(a,b);
k["iv-event"]=3;k["i-time"]=a.o[b]||"";hc(k,d||{});b=sb(e||[]);30==k["a-type"]&&(d=cC(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);dC(a,k,b,c,f)}},gC=function(a,b){if(b){var c=bC(a,b);
c["iv-event"]=4;c["i-time"]=a.o[b]||"";var d=[];if(30==c["a-type"]){var e=cC(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}dC(a,c,d)}},cC=function(a,b,c){a=a.$.getVideoData();
if(a.ab){if((c=a.ab[c])&&Ex.test(c))return a=wa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.na)return lj(a.na,{label:c,value:"a_id="+b});return""},dC=function(a,b,c,d,e){var f=1,k,m=-1;
if(d){var l=!1;k=function(){f--;f||l||((0,window.clearTimeout)(m),l=!0,d())};
m=(0,window.setTimeout)(function(){l=!0;d()},1E3)}F(c||[],function(a){f++;
iq(a,k)});
e&&(f++,0!=e&&a.$.Cg(e,k));a.jb(b,k)},bC=function(a,b){var c={};
if(b){var d=new uf(b);F(d.Qa(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.$.getCurrentTime().toFixed(2);
c.ps=a.$.W().o;return c},hC=function(a,b,c,d){d=bC(a,d);
d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;dC(a,d,c)},iC=function(a,b,c,d){c&&(c=bC(a,c),c["iv-event"]=b,dC(a,c,d))},jC=function(a,b){this.fa=a;
this.context=b;this.bn=!1;this.K=0},kC=function(a,b,c,d,e,f){b=new rq(b,c,{id:d});
b.A="iv-module";e&&sq(b).subscribe("onEnter",e,a);f&&sq(b).subscribe("onExit",f,a);a.context.A.ib([b])},lC=function(a){return K()-a.K},mC=function(a,b,c,d,e,f,k){var m=y(function(){k&&this.context.A.pauseVideo();
var a=jj(b),d=null;"ei"in a&&(d={ei:a.ei},b=mf(b,"ei"));yy(b,d);zy(b,"current"==c?"_top":void 0)},a);
"new"==c&&(m(),m=null);var l={};l.interval=lC(a);fC(a.context.logger,d,m,l,e,f)},nC=function(a,b){var c=["div",
"ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text",["span","ytp-cards-teaser-shop-badge",Q("YTP_SPONSORED_PRODUCT_BADGE")],["span","ytp-cards-teaser-label","{{text}}"]]];R.call(this,c);this.$=a;this.K=new yr(this,250,!1,250);I(this,this.K);this.P=b;this.A=null;this.M=new Wd(this.LB,300,this);this.L=new Wd(this.JB,2E3,this);this.O=new NA(null);this.G=[];this.F=this.D=this.J=this.H=null;this.T(b.element,"mouseover",this.bu);this.T(b.element,"mouseout",this.te);this.T(a,
"cardsteasershow",this.KC);this.T(a,"cardsteaserhide",this.Nh);this.T(a,"cardstatechange",this.ks);this.T(a,"presentingplayerstatechange",this.ks);this.R("click",this.KG);this.R("mouseenter",this.IG);this.R("mouseleave",this.JG)},oC=function(a){if(!a||0==a.length)return"";
var b=["ul","ytp-cards-hover-card-metadata"];F(a,function(a){b.push(["li","",a])});
return b},pC=function(a,b){if(b){var c=b.Ik?"":["h2",
"ytp-cards-hover-card-title",b.title],d=b.imageUrl,d=["div","ytp-cards-hover-card-image",{style:d?"background-image: url("+d+");":""}];d.push(b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"");c=["a","ytp-cards-hover-card",["div","ytp-cards-video-image",d],["div","ytp-cards-video-desc",c,oC(b.Nd)]];a.D=new R(c);a.D.o(a.element);c=Og("ytp-cards-hover-card",void 0);a.T(c,"click",qa(a.Gq,b));a.T(c,"mouseenter",a.Cy);a.T(c,"mouseleave",a.Ey)}},rC=function(a,b){a.B("text",b.teaserText);
a.element.setAttribute("dir",OA(a.O,b.teaserText));a.K.show();pC(a,b.Ji);b.Ji&&b.Ji.Ik&&L(a.element,"ytp-cards-combined-teaser");a.H=new Wd(function(){L(this.$.Da(),"ytp-cards-teaser-shown")},0,a);
a.H.start();qC(a.P,!1);a.A=new Wd(a.Nh,580+b.durationMs,a);a.A.start();b.Fw&&L(a.element,"ytp-cards-auto-open-hover-card");b.Gz&&(new Wd(function(){L(this.$.Da(),"ytp-cards-button-teaser-merge")},0,a)).start();
a.G.push(a.R("mouseover",a.bu,a));a.G.push(a.R("mouseout",a.te,a))},sC=function(a,b,c){this.id=a;
this.timestamp=b.timestamp||0;this.type=b.card_type;this.teaserText=b.teaser_text;this.teaserDurationMs=b.teaser_duration_ms;this.startMs=b.start_ms;this.D=b.auto_open||!1;this.Va=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.o={Ip:a.impression,click:a.click,close:a.close,cE:a.teaser_impression,Pm:a.teaser_click}},tC=function(a,b,c){sC.call(this,a,b,c);
this.channelId=b.channel_id;this.customMessage=b.custom_message;this.profileImageUrl=b.image_url;this.title=b.title;this.Nd=b.meta_info;this.url=lB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},uC=function(a,b,c){sC.call(this,a,b,c);
this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.B=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=lB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.A=null;b.signin_url&&(this.A=lB({target:"current",value:b.signin_url}));this.G=b.signin_title||null;this.F=b.signin_message||null},vC=function(a,b,c){uC.call(this,a,b,c);
this.H=b.ypc_flow_type;this.C=b.innertube_request_params},wC=function(a,b,c){this.o=a;
this.B=b;this.D=c;this.C=new NA(null)},zC=function(a,b){var c=["ul",
"",{role:"radiogroup"}];F(b.choices,function(a){c.push(["li",b.C+"-"+a.index.toString(),["label","",["input","iv-card-poll-choice-input",{type:"checkbox",role:"radio",name:b.C+a.index.toString(),value:a.index.toString(),"data-poll-choice-index":a.index.toString()}],["span","iv-card-poll-choice-text",["span","iv-card-poll-choice-percent"],xC(this,"span",void 0,a.desc)]],["div","iv-card-poll-result",["div","iv-card-poll-result-bar"]]])},a);
var d={};b.B&&(d["aria-label"]=Q("YTP_DRAWER_POLL_TITLE_ARIA_LABEL",{POLL_TITLE:b.title}));var e=["iv-card","iv-card-poll"],d=[["div","iv-card-content",xC(a,"h2",d,b.title),["form","",["fieldset","",c]]]];b.B&&(e.push("iv-card-unavailable"),d.push(["div",["iv-card-sign-in"],["h2","",Q("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:mB(b.B)},["span",["iv-button-content"],Q("YTP_SIGN_IN")]]]));e=new R(["div",e].concat(d));d=e.element;yC(b,d);tA(a.o.o,d,qa(a.G,b),a);
F(Ng("iv-card-poll-choice-input",d),function(a){this.o.o.R(a,"focus",qa(this.A,!0));this.o.o.R(a,"blur",qa(this.A,!1))},a);
b.B&&(d=Og("iv-card-sign-in-button",d),a.B(d,b.B,b.id,b.Va,b.o.click,5));return e},EC=function(a,b,c,d){var e=AC(a,b.url,b.id),f=b.displayDomain?["div",
"iv-card-image-text",b.displayDomain]:"",k=BC(a,b),m=["iv-card"];b.A&&m.push("iv-card-unavailable");e=["div",m,["a","iv-click-target",{href:e},CC(b.imageUrl,f),["div","iv-card-content",xC(a,"h2",void 0,b.title),k]]];b.A&&(e=e.concat([["div",["iv-card-sign-in"],xC(a,"h2",void 0,b.G||""),["p","",b.F],["a",["iv-card-sign-in-button","iv-button"],{href:mB(b.A)},xC(a,"span","iv-button-content",Q("YTP_SIGN_IN"))]]]));e=new R(e);DC(a,e,b,c,d);return e},GC=function(a,b,c){var d=AC(a,b.url,b.id),e=["yt-badge",
"standalone-ypc-badge-renderer-icon",b.F?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],f={},e=b.C&&b.B?["span",e,f,b.B]:"";c=["div",["iv-card",c],["a","iv-click-target",{href:d},CC(b.G,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],FC(a,b)]]];c=new R(c);DC(a,c,b);return c},HC=function(a,b){return b.customMessage?xC(a,"div","iv-card-message",b.customMessage):""},CC=function(a,b){var c=
["div",
"iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c},FC=function(a,b){if(!b.Nd||0==b.Nd.length)return"";
var c=["ul","iv-card-meta-info"];F(b.Nd,function(a){c.push(xC(this,"li","",a))},a);
return c},xC=function(a,b,c,d){c?w(c)?c={"class":c}:da(c)&&(c={"class":c.join(" ")}):c={};
c.dir=OA(a.C,d);return[b,c,d]},BC=function(a,b){if(!b.customMessage)return"";
var c=["iv-card-action","iv-card-primary-link"],d={};b.B&&(c.push("iv-card-action-icon"),d.style="background-image: url("+b.B+");");d.dir=OA(a.C,b.customMessage);c=["div",c,d,["span","",b.customMessage]];b.showLinkIcon&&(c.push("\u00a0"),c.push(["span","iv-card-link-icon"]));return c},yC=function(a,b){var c=0;
F(a.choices,function(a){c+=a.count});
for(var c=c||1,d=0;d<a.choices.length;d++){var e=a.choices[d],f=Og(a.C+"-"+e.index.toString(),b),e=e.count/c;null==a.A&&(e=0);M(f.getElementsByTagName("label")[0],"iv-card-poll-choice-checked",a.A==d);f.getElementsByTagName("input")[0].checked=a.A==d;var k=Math.floor(100*e).toFixed(0),m=Og("iv-card-poll-choice-percent",f);oh(m,Q("YTP_DRAWER_POLL_PERCENT",{PERCENT:k}));f=Og("iv-card-poll-result-bar",f);Uq(f,"transform","scaleX("+e.toFixed(2)+")")}M(b,"iv-card-poll-voted",null!=a.A);M(b,"iv-card-poll-expanded",
null!=a.A&&1<a.choices.length)},IC=function(a,b,c,d){d?(c&&a.o.videoData.Ha||a.o.A.pauseVideo(),a.o.A.Pa()&&Dy(a.o.A),fC(a.o.logger,b.Va,d,void 0,b.o.click,5)):a.D(b.url,b.id,b.Va,b.o.click,5)},AC=function(a,b,c){return b?sB(b,c,a.o.videoData.videoId,a.o.B):null},DC=function(a,b,c,d,e){c.A&&JC(a,Ng("iv-card-sign-in-button",b.element),c,c.A,e);
JC(a,Ng("iv-click-target",b.element),c,c.url,d)},JC=function(a,b,c,d,e){F(b,function(a){if(e){var b=y(function(a){a.stopPropagation();
a.preventDefault();e();return!1},this);
this.o.o.R(a,"click",b)}else this.B(a,d,c.id,c.Va,c.o.click,5)},a)},KC=function(a,b,c){sC.call(this,a,b,c);
this.B=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.Nd=b.meta_info;this.url=lB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},LC=function(a,b,c){sC.call(this,a,b,c);
this.C=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.A=b.hasOwnProperty("old_vote")?b.old_vote:null;this.B=null;b.signin_url&&(this.B=lB({target:"current",value:b.signin_url}));this.F=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null},NC=function(a,b,c){uC.call(this,a,b,c);
this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new MC(a[b]))},MC=function(a){this.merchant=E(a.merchant);
this.price=E(a.price)},OC=function(a,b,c){uC.call(this,a,b,c);
this.H=b.ypc_item_type;this.C=b.ypc_item_id;this.J=b.ypc_flow_type},PC=function(a,b,c){sC.call(this,a,b,c);
this.B=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.Nd=b.meta_info;this.C=!!b.is_live_now;this.url=lB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},QC=function(a,b,c){sC.call(this,a,b,c);
this.G=b.image_url;this.B=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.Nd=b.meta_info;this.C=!!b.is_paygated;this.F=!!b.user_has_entitlement;this.url=lB({target:b.target||"new",value:b.url})},SC=function(a,b,c){jC.call(this,b,c);
this.$=a;this.Xi=this.S=this.D=this.P=this.Y=!1;this.Z=null;this.zk=new Wd(v,c.B.useTabletControls?4E3:3E3);this.O=new Wd(v);this.C=new wC(c,y(this.og,this),y(this.$i,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},Q("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":Q("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.H=new R(a);this.B=this.H.element;this.M=new yr(this.H,330,RC(this,"drawer_peek"));
RC(this,"drawer_peek")&&L(this.B,"ytp-drawer-peek");this.ca=Og("iv-drawer-header",this.B);this.Hc=Og("iv-drawer-content",this.B);a=["iv-drawer-teaser"];this.C.o.B.experiments.Hw&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:Q("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":Q("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.da=(new R(a)).element;Og("iv-drawer-teaser-text",this.da);this.A=[];this.F=this.J=this.o=null;this.G=
[];c=1E3*c.videoData.lengthSeconds;kC(this,0,c,"",this.vw,this.Zw);if(2==this.context.A.getPresentingPlayerType()?0:RC(this,"product_listing_ads_cards_drawer_auto_open")||RC(this,"cards_drawer_auto_open"))a=this.context.B.experiments.Yb("cards_drawer_auto_open_offset"),b=0<=a?a:c+a,b<c&&(kC(this,b,0x8000000000000,"",this.$F),a=this.context.B.experiments.Yb("cards_drawer_auto_open_duration"),b+=a,0<=a&&b<c&&kC(this,b,0x8000000000000,"",this.Dw))},ZC=function(a,b){var c=b&&b.data&&b.data.card_type;
if(c&&TC[c]){c=new TC[c](b.id,b.data,b.Va);a.Y||($d(a.ma(),["html5-stop-propagation","iv-drawer-manager"]),Br(a.$,a.B,5),UC(a),a.Y=!0);VC(a,c.id);var d=WC(a,c);if(d){var e={Ua:c,Bk:d.element,bq:!1,bj:!1},f=XC(a,e);vb(a.A,f,0,e);d.o(a.Hc,f);a.fi();c.D?kC(a,c.startMs,0x8000000000000,c.id,qa(a.QD,e)):(d=1E3*a.context.A.getCurrentTime(),5E3>d&&d>c.startMs&&a.Fm(e,!1),kC(a,c.startMs,c.startMs+1,c.id,qa(a.Fm,e,!1)),M(a.$.Da(),"ytp-cards-shopping-active",YC(a)))}}},VC=function(a,b){var c=$C(a,b);
c&&(c==a.o&&(a.o=null),a.$.Ns(c.Ua.id),dh(c.Bk),pb(a.A,c),a.fi())},cD=function(a,b,c){a.D||(RC(a,"drawer_peek")&&be(a.B,"ytp-drawer-peek"),a.M.show(),a.J=new Wd(function(){L(this.context.A.Da(),"ytp-iv-drawer-open")},0,a),a.J.start(),a.D=!0,a.K=K(),hC(a.context.logger,7,void 0,c&&c.Ua?c.Ua.Va:void 0),F(a.A,function(a){a.bj||(a.bj=!0,eC(this.context.logger,a.Ua.Va,a.Ua.o.Ip))},a),aD(a.$),b&&(a.F=new Wd(function(){var a;
a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(c){}a=null}this.L=a;this.ca.focus()},330,a),a.F.start()))},dD=function(a){a.D&&(RC(a,"drawer_peek")?L(a.B,"ytp-drawer-peek"):a.M.ka(),be(a.context.A.Da(),"ytp-iv-drawer-open"),a.D=!1,hC(a.context.logger,10),aD(a.$),a.F&&a.F.stop(),a.F=new Wd(function(){this.L&&(this.L.focus(),this.L=null)},330,a),a.F.start())},RC=function(a,b){return a.context.B.experiments.ga(b)},UC=function(a){var b=Og("iv-drawer-close-button",a.B);
a.context.o.R(b,"click",a.Ow,a);a.context.o.R(a.Hc,"touchend",function(){this.zk.start()},a);
RC(a,"drawer_peek")&&(b=Og("ytp-drawer-peek"))&&a.context.o.R(b,"click",a.aB,a);a.context.o.R(a.Hc,"scroll",a.cx,a);a.Z=Nl(a.Hc,"mousewheel",y(a.aG,a));a.context.C.subscribe("onHideControls",function(){this.Xi=!0},a);
a.context.C.subscribe("onShowControls",function(){this.Xi=!1},a);
a.context.C.subscribe("onVideoAreaChange",function(){this.Xi=Zd(this.$.Da(),"ytp-autohide")},a);
a.G.push(Hi("iv-teaser-shown",a.Fz,a));a.G.push(Hi("iv-teaser-clicked",a.Dz,a));a.G.push(Hi("iv-hover-card-clicked",a.Cz,a));RC(a,"teaser_on_button_hover")&&a.G.push(Hi("iv-button-mouseover",a.YD,a));RC(a,"log_teaser_hover")&&a.G.push(Hi("iv-teaser-mouseover",a.Ez,a))},WC=function(a,b){switch(b.type){case "adspaycreator":case "associated":case "fundraising":case "location":case "merch":case "product":case "simple":return EC(a.C,b);
case "collaborator":var c=a.C,d=["div",["iv-card","iv-card-channel"],["a",["iv-click-target","g-hovercard"],{href:AC(c,b.url,b.id),"data-ytid":b.channelId},CC(b.profileImageUrl),["div","iv-card-content",HC(c,b),["h2","iv-card-primary-link",b.title],FC(c,b)]]],d=new R(d);DC(c,d,b);return d;case "donation":return c=a.C,d=y(c.F,c,b),EC(c,b,d,d);case "episode":return GC(a.C,b,"iv-card-episode");case "movie":return GC(a.C,b,"iv-card-movie");case "playlist":return c=a.C,d=["div",["iv-card","iv-card-playlist"],
["a","iv-click-target",{href:AC(c,b.url,b.id)},CC(b.B,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",HC(c,b),xC(c,"h2","iv-card-primary-link",b.title),FC(c,b)]]],d=new R(d),DC(c,d,b),d;case "poll":return zC(a.C,b);case "productListing":var c=a.C,d=AC(c,b.url,b.id),e=!kb(b.offers),f=["iv-card"],k="",m=BC(c,b);e&&(f.push("iv-card-product-listing"),k="iv-card-primary-link",m=b.offers[0],e=["div",null],m.price&&e.push(["div",
"iv-card-offer-price",m.price]),m.merchant&&e.push(["div","iv-card-offer-merchant",m.merchant]),m=e);e=b.sponsored?["div","iv-card-sponsored",Q("YTP_SPONSORED"),["div","iv-ad-info-container",["div","iv-ad-info","{{adInfo}}"],["div","iv-ad-info-icon-container",["div","iv-ad-info-icon"],["div","iv-ad-info-callout"]]]]:"";d=["div",f,{tabindex:"0"},["a",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.imageUrl+");",href:d,"aria-hidden":"true",tabindex:"-1"}],["div","iv-card-content",
e,["a","iv-click-target",{href:d},xC(c,"h2",k,b.title),m]]];d=new R(d);f=window.document.createElement("span");oh(f,Q("YTP_SPONSORED_PRODUCT_INFO"));d.Jb(f,"adInfo");DC(c,d,b);return d;case "tip":return c=a.C,d=y(c.H,c,b),EC(c,b,d,d);case "video":return c=a.C,d=AC(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.C?["span",["yt-badge","yt-badge-live"],Q("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],["a","iv-click-target",{href:d},CC(b.B,f),["div",
"iv-card-content",HC(c,b),xC(c,"h2","iv-card-primary-link",b.title),FC(c,b),k]]],d=new R(d),DC(c,d,b),d}return null},XC=function(a,b){if(0==a.A.length)return 0;
var c=fb(a.A,function(a){return b.Ua.startMs>a.Ua.startMs||b.Ua.startMs==a.Ua.startMs&&b.Ua.timestamp>=a.Ua.timestamp?!0:!1});
return-1==c?0:c+1},eD=function(a,b){if(a.H.C){var c=new IA([0,
a.Hc.scrollTop],[0,b.Bk.offsetTop],600,MA);a.context.o.R(c,"animate",function(a){this.Hc.scrollTop=a.y},a);
a.context.o.R(c,"finish",function(a){this.Hc.scrollTop=a.y},a);
c.play()}else a.H.Za(!0),a.Hc.scrollTop=b.Bk.offsetTop,a.H.Za(!1)},fD=function(a){return a.o&&a.o.Ua||a.A[0]&&a.A[0].Ua},$C=function(a,b){return eb(a.A,function(a){return a.Ua.id==b},a)},YC=function(a){return zh(a.A,function(a){return a.Ua.sponsored&&"productListing"==a.Ua.type})},iD=function(a){if(!gD.test(a))throw Error("'"+a+"' is not a valid hex color");
4==a.length&&(a=a.replace(hD,"#$1$1$2$2$3$3"));a=a.toLowerCase();return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16)]},jD=function(a,b,c,d,e){IA.call(this,b,c,d,e);
this.element=a},kD=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");
jD.apply(this,arguments)},lD=function(a,b,c){jC.call(this,a,b);
this.annotation=c;this.isActive=!1},mD=function(a,b,c){lD.call(this,a,b,c);
this.o=null;this.G=!1;this.A=null;this.B=!1;this.C=0;this.F=this.D=null},nD=function(a,b,c,d,e,f){this.o=a;
this.B=b;this.videoData=c;this.logger=d;this.A=e;this.C=f},oD=function(a,b,c){this.type=a;
this.trigger=b;this.url=c},rD=function(a){if(!a)return null;
var b=bB(a.type,pD),c=bB(a.trigger,qD),d=lB(YA(a.url));YA(a.subscribeData);return b?new oD(b,c,d):null},sD=function(a,b,c,d,e,f,k,m,l,n,t,u,x,A){this.D=a;
this.bgColor=b;this.F=c;this.C=d;this.A=e;this.J=f;this.B=k;this.textAlign=m;this.textSize=l;this.G=n;this.H=t;this.effects=u;this.o=x;this.K=A},uD=function(a){if(!a)return null;
var b=$A(a.fgColor,"#1A1A1A"),c=$A(a.bgColor,"#FFF"),d=$A(a.borderColor,"#000"),e=eB(a.borderWidth,0,5,!1,0),f=eB(a.bgAlpha,0,1,!1,.8),k=$A(a.highlightFontColor,"#F2F2F2"),m=eB(a.highlightWidth,0,5,!1,3),l=aB(a.textAlign),n=eB(a.textSize,3.3,30.1,!0,3.6107),t=aB(a.fontWeight),u=hB(a.padding),x=iB(a.effects),A=eB(a.cornerRadius,0,10,!0,0);if(a=YA(a.gradient)){var D=eB(a.x1,0,100,!0,0),H=eB(a.y1,0,100,!0,0),z=eB(a.x2,0,100,!0,100),P=eB(a.y2,0,100,!0,100),Ua=$A(a.color1,"#FFF"),la=$A(a.color2,"#000");
a=new tD(D,H,z,P,Ua,la,eB(a.opacity1,0,100,!0,100),eB(a.opacity2,0,100,!0,0))}else a=null;return new sD(b,c,d,e,f,k,m,l,n,t,u,x,A,a)},tD=function(a,b,c,d,e,f,k,m){this.D=a;
this.G=b;this.F=c;this.H=d;this.o=e;this.A=f;this.B=k;this.C=m},vD=function(a,b){this.o=a;
this.videoId=b},yD=function(a,b,c){var d=a.F,e=a.G,f=a.o?a.o:"xy",k=wD(c,a.C,f);
a=xD(c,a.A,f);var f=640*b.width*k/100,m=360*b.height*a/100;return new we(0==d?640*b.left*k/100:0<d?d:c.width+d-f,0==e?360*b.top*a/100:0<e?e:c.height+e-m,f,m)},wD=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;
return(d+((c?a.width:a.height)-d)*b)/d},xD=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;
return(d+((c?a.height:a.width)-d)*b)/d},zD=function(a,b,c,d,e,f,k,m,l,n,t){this.x=a;
this.y=b;this.D=c;this.B=d;this.t=e;this.K=f;this.F=k;this.G=m;this.C=l;this.A=n;this.o=t},BD=function(a,b){if(!a)return null;
var c=dB(a.x,0),d=dB(a.y,0),e=dB(a.w,0),f=dB(a.h,0),k=fB(a.t),m=dB(a.scaleSlope,1);return b(c,d,e,f,k,dB(a.d,0),dB(a.px,0),dB(a.py,0),dB(a.scaleSlopeX,m),dB(a.scaleSlopeY,m),bB(a.scaleDimension,AD,"xy"))},DD=function(a,b){var c=CD(b,yD(a,new we(a.x,a.y,a.D,a.B),b.o)),d=b.o,e=c.clone();
d&&!d.contains(c)&&(c.width<d.width?e.left=le(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=le(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e},ED=function(a){return a?BD(a,function(a,c,d,e,f,k,m,l,n,t,u){return new zD(a,c,d,e,f,k,m,l,n,t,u)}):null},FD=function(a,b,c,d,e,f,k,m,l,n,t,u,x){zD.call(this,a,b,c,d,e,m,l,n,t,u,x);
this.H=f;this.J=k},GD=function(a){if(!a)return null;
var b=dB(a.sx,0),c=dB(a.sy,0);return BD(a,function(a,e,f,k,m,l,n,t,u,x,A){return new FD(a,e,f,k,m,b,c,l,n,t,u,x,A)})},HD=function(a,b,c,d){this.type=a;
this.A=b;this.o=c;this.B=d},JD=function(a){if(!a)return null;
var b=bB(a.type,ID,"rect"),c=gB(a.rectRegion,ED),d=gB(a.anchoredRegion,GD);a=gB(a.shapelessRegion,ED);return new HD(b,c,d,a)},KD=function(a){return a.A&&a.A.length?a.A[0]:a.o&&a.o.length?a.o[0]:a.B&&a.B.length?a.B[0]:null},LD=function(a,b){this.A=a;
this.o=b},MD=function(a,b){this.state=a;
this.o=b},OD=function(a){if(!a)return null;
var b=bB(a.state,ND);a=ZA(a.ref);return b?new MD(b,a):null},PD=function(a,b,c,d){this.o=a||[];
this.B=b||[];this.C=c;this.A=d;this.value=!1},QD=function(a){if(!a)return null;
var b=gB(a.condition,OD),c=gB(a.notCondition,OD),d=cB(a.show_delay,!1);a=cB(a.hide_delay,!1);return b||c?new PD(b,c,d,a):null},RD=function(a,b,c){F(a.o,qa(b,!1),c);
F(a.B,qa(b,!0),c)},SD=function(a,b,c,d,e,f,k,m,l,n,t,u,x,A,D,H){this.id=a;
this.author=b;this.type=c;this.style=d;this.F=e;this.A=f;this.D=k||[];this.J=m||[];this.o=l;this.H=n;this.B=t;this.G=u;this.C=A;this.data=D;this.Va=H},WD=function(a){if(!a)return null;
var b=ZA(a.id),c=ZA(a.author),d=bB(a.type,TD),e=bB(a.style,UD),f=aB(YA(a.TEXT)),k=aB(a.data),k=0!=k.length?de(k):{},m;var l=YA(a.segment);l?(ZA(l.timeRelative),m=ZA(l.spaceRelative),m=(l=gB(l.movingRegion,JD))?new LD(m,l):null):m=null;var l=gB(a.action,rD),n=gB(a.trigger,QD),t=uD(YA(a.appearance));t||(t=uD({}));var u=bB(a.coordinate_system,VD,"video_relative"),x;x=(x=YA(a.image_source))?new vD(aB(x.standard_url),aB(x.video_id)):null;var A=cB(a.closeable,!0),D=aB(a.html_blob);a=aB(a.log_data);return b&&
d?new SD(b,c,d,e,f,m,l,n,t,u,x,A,0,D,k,a):null},YD=function(a){return XD(a,function(a){return"click"==a.trigger})},XD=function(a,b){return zh(a.D,b,void 0)},ZD=function(a,b,c){F(a.D,b,c)},$D=function(a,b){return eb(a.D,b,void 0)},aE=function(a,b,c){F(a.J,b,c)},bE=function(a,b){ji(a.J,b,void 0)},dE=function(a){return(a=cE(a))?KD(a):null},cE=function(a){a.A?(a=a.A,a=a.o.length?a.o[0]:null):a=null;
return a},eE=function(a,b){var c=dE(a);
return c&&b?xD(b,c.A,c.o?c.o:"xy"):1},fE=function(a,b,c){lD.call(this,a,b,c);
this.G=this.C=this.H=!1;this.F=5E3;this.o=null;this.Ng=O("div","iv-promo-contents");this.A=this.B=this.ac=null;this.D=new Wd(function(){this.ac.setAttribute("aria-hidden",!0);S(this.B,!1);S(this.A,!0)},700,this)},gE=function(a){var b=a.annotation.data,c;
if("cta"==a.annotation.style)c=6;else if("video"==a.annotation.style||"playlist"==a.annotation.style)c=7;a.F=b.collapse_delay_ms||a.F;var d=["iv-promo","iv-promo-inactive"];a.ma().setAttribute("aria-hidden",!0);a.ma().setAttribute("aria-label",Q("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.ma().tabIndex=0;var e;if(b.image_url){e=O("div",["iv-promo-img","iv-click-target"]);var f=O("img",{src:b.image_url,"aria-hidden":"true"});e.appendChild(f);b.video_duration&&!b.is_live?(f=O("span","iv-promo-video-duration",
b.video_duration),e.appendChild(f)):b.playlist_length&&(f=O("span","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(f));a.og(e,a.annotation.getUrl(),a.annotation.id,a.annotation.Va,null,c)}f=a.annotation.getUrl();a.ac=f?O("a",{href:mB(f),"class":"iv-promo-txt"}):O("div","iv-promo-txt");var k,m,l;switch(a.annotation.style){case "cta":case "website":k=O("p",null,O("strong",null,b.text_line_1));m=O("p",null,O("span","iv-promo-link",b.text_line_2));L(a.ac,"iv-click-target");a.og(a.ac,
a.annotation.getUrl(),a.annotation.id,a.annotation.Va,null,c);break;case "playlist":case "video":k=O("p",null,O("span",null,b.text_line_1));m=O("p",null,O("strong",null,b.text_line_2));b.is_live&&(k=m,m=O("span",["yt-badge","iv-promo-badge-live"],Q("YTP_LIVE_NOW")));L(a.ac,"iv-click-target");a.og(a.ac,a.annotation.getUrl(),a.annotation.id,a.annotation.Va,null,c);d.push("iv-promo-video");break;case "vote":k=O("p",null,O("strong",null,b.text_line_1)),m=O("p",null,O("span",null,b.text_line_2)),l=O("div",
"iv-promo-button-container"),c=O("button",["iv-button","iv-promo-button"],O("span","iv-button-content",b.button_text)),a.context.o.R(c,"click",function(a){a.stopPropagation();fC(this.context.logger,this.annotation.Va,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.ac=Og("iv-promo-txt",this.Ng);a=Og("iv-promo-button-container",this.Ng);var d=O("div",["iv-promo-txt","iv-click-target"]),e=O("p",null,O("strong",null,c.text_line_3)),c=O("p",null,c.text_line_4);ah(d,e,c);
dh(a);eh(d,this.ac);be(this.ma(),"iv-promo-with-button");this.og(d,this.annotation.getUrl(),this.annotation.id,this.annotation.Va)},a),l.appendChild(c),d.push("iv-promo-with-button")}k&&a.ac.appendChild(k);
m&&a.ac.appendChild(m);a.Ng.appendChild(a.ac);l&&a.Ng.appendChild(l);k=O("div","iv-promo-actions");a.A=O("button",["iv-promo-expand","ytp-button"]);a.A.title=Q("YTP_EXPAND");a.context.o.R(a.A,"click",qa(a.tl,5E3),a);k.appendChild(a.A);S(a.A,!1);a.context.o.R(a.ma(),"mouseover",a.Qx,a);a.context.o.R(a.ma(),"mouseout",a.Px,a);a.context.o.R(a.ma(),"touchend",qa(a.tl,5E3),a);a.B=O("button",["iv-promo-close","ytp-button"]);a.B.title=Q("YTP_CLOSE");a.context.o.R(a.B,"click",a.bG,a);k.appendChild(a.B);$d(a.ma(),
d);e&&$g(a.ma(),e);$g(a.ma(),a.Ng);$g(a.ma(),k)},hE=function(a){a.C||a.G||a.o||(L(a.ma(),"iv-promo-collapsed"),a.C=!0,a.D.start())},iE=function(a){a.D.stop();
a.C&&(be(a.ma(),"iv-promo-collapsed"),a.C=!1,a.ac&&a.ac.removeAttribute("aria-hidden"),S(a.A,!1),S(a.B,!0))},jE=function(a,b){a.o||(a.o=Ud(function(){this.o&&(Vd(this.o),this.o=null);
hE(this)},b,a))},lE=function(a,b,c){this.o={};
this.A=!1;this.D="ivTrigger:"+a;this.B=c;RD(b,function(a,b){var c=kE(b.state,b.o);this.B.subscribe(c,y(this.C,this,c,a));this.o[c]=a},this)},kE=function(a,b){var c="ivTriggerCondition:"+a;
return b?c+":"+b:c},nE=function(a,b,c){this.B=a;
this.annotation=b;this.o=c;this.A=null;this.C=this.isVisible=!1;mE(b,a)},mE=function(a,b){bE(a,function(c){return new lE(a.id,c,b)})},oE=function(a){Ce(a.B,"resize",a.ut,a);
Ce(a.B,"onVideoAreaChange",a.qr,a)},pE=function(a){a.A&&(a.A.stop(),a.A=null)},qE=function(a,b){this.start=a<b?a:b;
this.end=a<b?b:a},rE=function(){},sE=function(a,b,c,d,e,f,k,m){this.F=a;
this.H=b;this.G=c;this.J=d;this.o=e;this.A=f;this.C=p(k)?k:null;this.D=p(m)?m:null},tE=function(){this.wa=[];
this.Aa=[];this.uc=[]},uE=function(a,b,c){0==cb(a.wa)?a.uc.length-=2:(a.wa.push(0),a.Aa.push(1));
a.uc.push(b,c);a.Vb=a.Zc=[b,c]},vE=function(a,b,c,d){var e=a.Vb[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.Vb[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);
a.wa.push(3);a.Aa.push(1);a.uc.push(b,c,d,90,e,f);a.vh=!1;a.Vb=[e,f]},xE=function(a,b){for(var c=a.uc,d=0,e=0,f=a.wa.length;e<f;e++){var k=a.wa[e],m=wE[k]*a.Aa[e];
b(k,c.slice(d,d+m));d+=m}},yE=function(a,b){this.B=a;
this.K=null==b?1:b},zE=function(a,b,c){this.B=a;
this.o=b;this.A=null==c?1:c},AE=function(){},BE=function(a){J.call(this);
this.F=a||Lg();this.S=null;this.Nc=!1;this.o=null;this.G=void 0;this.H=this.L=this.D=null},CE=function(a,b){a.L&&F(a.L,b,void 0)},DE=function(a,b,c,d,e){BE.call(this,e);
this.width=a;this.height=b;this.C=c||null;this.M=d||null},EE=function(a){var b=a.Hf();
return b?b.width/(a.C?new ue(a.C,a.M):a.Hf()).width:0},FE=function(a,b){J.call(this);
this.Xg=a;this.ml=b;this[Ec]=!1},JE=function(a,b,c,d){FE.call(this,a,b);
a=this.ml;b=this.ma();c?(b.setAttribute("stroke",c.o),b.setAttribute("stroke-opacity",c.A),c=c.getWidth(),w(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/EE(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.ml;a=this.ma();if(d instanceof yE)a.setAttribute("fill",d.B),a.setAttribute("fill-opacity",d.K);else if(d instanceof sE){b="lg-"+d.F+"-"+d.H+"-"+d.G+"-"+d.J+"-"+d.o+"-"+d.A;var e=GE(c,b);if(!e){var e=HE(c,"linearGradient",
{x1:d.F,y1:d.H,x2:d.G,y2:d.J,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.o;ga(d.C)&&(f+=";stop-opacity:"+d.C);f=HE(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.A;ga(d.D)&&(f+=";stop-opacity:"+d.D);d=HE(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=IE(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")},KE=function(a,b){FE.call(this,a,b)},LE=function(a,b){FE.call(this,a,b)},ME=function(a,b,c,d){JE.call(this,a,b,c,d)},NE=function(a,b,c,
d){JE.call(this,a,b,c,d)},OE=function(a,b){FE.call(this,a,b)},PE=function(a,b,c,d){JE.call(this,a,b,c,d)},QE=function(a,b,c,d){JE.call(this,a,b,c,d)},RE=function(a,b){FE.call(this,a,b)},SE=function(a,b,c,d,e){DE.call(this,a,b,c,d,e);
this.B={};this.O=zc&&!wc(526);this.K=new Am(this)},HE=function(a,b,c){a=a.F.o.createElementNS("http://www.w3.org/2000/svg",b);
c&&TE(a,c);return a},TE=function(a,b){for(var c in b)a.setAttribute(c,b[c])},VE=function(a,b,c,d){b=HE(a,"path",{d:UE(b)});
c=new PE(b,a,c,d);a.A.ma().appendChild(c.ma())},UE=function(a){var b=[];
xE(a,function(a,d){switch(a){case 0:b.push("M");Array.prototype.push.apply(b,d);break;case 1:b.push("L");Array.prototype.push.apply(b,d);break;case 2:b.push("C");Array.prototype.push.apply(b,d);break;case 3:var e=d[3];b.push("A",d[0],d[1],0,180<Math.abs(e)?1:0,0<e?1:0,d[4],d[5]);break;case 4:b.push("Z")}});
return b.join(" ")},IE=function(a,b,c){if(b in a.B)return a.B[b];
var d="_svgdef_"+WE++;c.setAttribute("id",d);a.B[b]=d;a.J.appendChild(c);return d},GE=function(a,b){return b in a.B?a.B[b]:null},YE=function(){XE||(XE=new Sd(400),XE.start());
return XE},ZE=function(){this.o=!1;
this.D=this.B=null},$E=function(a,b,c){a.B?(a.B.setSize(b,c),a.B.clear()):(b=new SE(b,c,void 0,void 0,void 0),a.B=b,a.B.Hi(),a.D=O("div"),b=a.B.ma(),a.D.appendChild(b));
return a.B},aF=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);
b&&Ob(b,function(a,b){d.setAttribute(b,a)});
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d},bF=function(a,b){var c=":"+(AE.getInstance().o++).toString(36);
b.setAttribute("result",c);a.appendChild(b);return c},cF=function(a,b){var c=bF(a,aF("feGaussianBlur",{"in":b,
stdDeviation:"1.8"})),c=bF(a,aF("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},aF("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=bF(a,aF("feComposite",{"in":c,in2:b,operator:"in"}));return bF(a,aF("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))},dF=function(a,b){var c=bF(a,aF("feOffset",{"in":b,
dx:"-7",dy:"-7"})),c=bF(a,aF("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=bF(a,aF("feColorMatrix",{"in":c,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0"})),d=bF(a,aF("feColorMatrix",{"in":b,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 100 0"})),d=bF(a,aF("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=bF(a,aF("feComposite",{operator:"out","in":c,in2:d}));return bF(a,aF("feComposite",{operator:"over","in":b,in2:c}))},eF=function(a,b){return b},fF=function(a){var b=
aF("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";
F(a,function(a){a:{switch(a){case "bevel":a=cF;break a;case "dropshadow":a=dF;break a}a=eF}c=a(b,c)});
return b},hF=function(a){a=ae(a,function(a){return a in gF});
Cb(a,function(a,c){return gF[a]-gF[c]});
return a},iF=function(a){return eb(a,function(a){return"dropshadow"==a})?new te(0,7,7,0):new te(0,0,0,0)},kF=function(a,b,c,d,e){var f=d?d.getWidth()/2+1:0;
b=jF(b,c,f);VE(a,b,d,e)},jF=function(a,b,c){var d=new tE;
uE(d,a.left+b+c,a.top+c);d.zb(a.left+a.width-b-c,a.top+c);vE(d,b,b,-90);d.zb(a.left+a.width-c,a.top+a.height-b-c);vE(d,b,b,0);d.zb(a.left+b+c,a.top+a.height-c);vE(d,b,b,90);d.zb(a.left+c,a.top+b+c);vE(d,b,b,180);d.close();return d},mF=function(a,b,c,d){var e=a.K;
return e?new sE(e.D*b/100,e.G*c/100,e.F*b/100,e.H*c/100,e.o,e.A,e.B,e.C):new yE(a.bgColor,lF(d,a.A))},lF=function(a,b){return a?Math.max(b,.9):b},nF=function(a,b){var c=xe(a),d=iF(b);
ia(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=Number(void 0),c.bottom+=Number(void 0),c.left-=Number(void 0));return new we(c.left,c.top,c.right-c.left,c.bottom-c.top)},oF=function(a,b,c){if(c.length&&(b=Mg("g",void 0,b),b.length)){var d=hF(c);
if(d){c="effects:"+(d?d.join("|"):"");var e=GE(a,c);e?a=e:(d=fF(d),a=0<d.childNodes.length?IE(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}},pF=function(){ZE.call(this);
this.C=0},qF=function(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,f=a.left-b.x,k=Math.max(c,d,e,f);
if(0>k)return"i";switch(k){case c:return"t";case d:return"r";case e:return"b";case f:return"l"}return"i"},rF=function(){ZE.call(this)},sF=function(a,b,c){ZE.call(this);
this.C=a||0;this.G=b||0;this.F=c||!1},tF=function(a,b){var c=a.width,d=a.height,e=0,f=0;
0<b&&(a.width/a.height>b?(d=a.width/b,f=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new we(e,f,c,d)},uF=function(){ZE.call(this)},vF=function(){pF.call(this)},wF=function(a,b){this.o=a;
this.A=b||null},CD=function(a,b){var c;
c=a.A?DD(a.A,new wF(a.o)):a.o;var d=b.clone(),e=c.left;c=c.top;e instanceof re?(d.left+=e.x,d.top+=e.y):(d.left+=e,ga(c)&&(d.top+=c));return d},xF=function(a,b,c,d,e){this.o=a;
this.Y=b;this.F=c;this.fa=d;this.da=e;this.P=!1;this.G=new rA(this);this.O=this.D=this.H=this.M=this.A=null;this.Z=!1;this.ca=this.K=this.L=null;this.bm=new ym(this.Ox,100,this);this.J=new Wd(this.kp,500,this);this.S=this.B=this.C=null},zF=function(a,b){var c=y(function(a,c,f){c=f?yF(this,c,y(f,this)):yF(this,c);
this.G.R(b,a,c)},a);
c("mouseover","d",a.vt);c("mouseout","c",a.te);c("click","a");c("touchend","a")},AF=function(a){if(a.o.G){var b;
XD(a.o,function(a){return"close"==a.type})?b=a.A:(a.C=O("div","annotation-close-button"),S(a.C,!1),oi(a.C,"annotation_id",a.o.id),a.A.appendChild(a.C),b=a.C);
var c=function(a){a.stopPropagation()};
a.G.R(b,"click",yF(a,"b",c));a.G.R(b,"touchend",yF(a,"b",c))}},yF=function(a,b,c){return y(function(a){if(this.da)c&&c(a);
else if(a.event.target instanceof window.Element){var e=a.event.target;S(e,!1);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(vh(f,"annotation")){var k=window.document.createEvent("MouseEvent");k.initMouseEvent(a.event.type,a.event.bubbles,a.event.cancelable,a.event.view,a.event.detail,a.event.screenX,a.event.screenY,a.event.clientX,a.event.clientY,a.event.ctrlKey,a.event.altKey,a.event.shiftKey,a.event.metaKey,a.event.button,a.event.relatedTarget);f.dispatchEvent(k)}}finally{S(e,
!0)}}e=nr(a.target);a=new re(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.fa.U(b,this.o)},a)},HF=function(a){if(a.A||a.B){var b=dE(a.o);
if(b){var c=BF(a);if(a.A){var b=DD(b,c),d=CF(DF(a.F));kr(a.A,b.width,b.height);$q(a.A,b.left,b.top);a.M=new we(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=dE(a.o))&&d?wD(d,e.C,e.o?e.o:"xy"):1;var f=eE(a.o,d),d=a.o.o;d.H?d=d.H:(d="speech"==a.o.style?1.6:.8,d=new te(d,d,d,d));d=new te(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.D&&(d.right+=1.5*c.o.height/100);a.A.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+d.left+"px";"label"==a.o.style&&a.H&&(a.H.style.padding=
a.A.style.padding);var d=c.o,k=!1,m=0,l=0,n;n=CF(DF(a.F));var t=a.F.app.ia,u=DF(t.o).Ma(),u=new we(0,0,u.width,u.height);if(t.C.A&&!EF(t)){if(t.o.W().Ja){var x=FF(t)?69:48;u.top+=x;u.height-=x}t.B&&(u.height-=FF(t.B.B)?72:50)}ye(n,u)?n=null:(u.top+=20,u.height-=40,"player_relative"!=a.o.H&&(u.left-=n.left,u.top-=n.top),n=u);n&&(m=n.top-(b.top+b.height),l=b.top-(n.top+n.height),k=0<m||0<l);if(k&&n){d=n;e=m;var f=l,A;a.D&&(l=GF(a,23,b,e,f),a.C&&(A=43-l.width,0<A&&(b.left+l.left-A>d.left&&(l.left-=A),
l.width+=A)),A=l,kr(a.D,l.width,l.height),$q(a.D,l.left,l.top));a.C&&(A?b=new re(A.left+A.width-23-18,a.Z?A.top+2:A.top+A.height-18-2):(A=GF(a,18,b,e,f),b=new re(A.left,A.top),kr(a.C,A.width,A.height)),$q(a.C,b));a.O=new we(a.M.left+A.left,a.M.top+A.top,A.width,A.height);a.L=a.G.R(DF(a.F),"mousemove",a.ZF)}else a.D&&(A=e/f*d.height*4.2/100,A=new ue(A,A),"highlight"==a.o.type||"label"==a.o.style?(e=1.5*d.height/100,A=new we(b.width-A.width-e,b.height-A.height-e,A.width,A.height)):A=new we(b.width-
A.width-3*d.height/100,(b.height-A.height)/2,A.width,A.height),kr(a.D,A.width,A.height),$q(a.D,A.left,A.top)),a.C&&(A=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,$q(a.C,A&&e?new re(b.width-9,-9):A?new re(b.width-9,45<b.height?9:b.height-9):e?new re(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new re(45<b.width?b.width-9-18:-9,b.height-9):new re(-9,45<b.height?9:b.height-9)))}a.B&&a.B.A(a.o,c);if(a.A){c=a.A;b=a.o.o;c.style.color="highlightText"==a.o.style?b.J:b.D;A=CF(DF(a.F));
c.style.fontSize=360*b.textSize*eE(a.o,A)/100+"px";A=a.o.style;c.style.textAlign=b.textAlign?b.textAlign:"title"==A||"highlightText"==A?"center":"left";b.G&&(c.style.fontWeight=b.G);a=a.A;c=a.style.overflow;A=(b=Og("annotation-link-icon",a))?pr(b):!1;e=(d=Og("annotation-close-button",a))?pr(d):!1;A&&S(b,!1);e&&S(d,!1);l=f="";if(m=Og("inner-text",a))f=m.style.overflow,l=m.style.position,m.style.overflow="visible",m.style.position="static";a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||
a.scrollWidth>a.offsetWidth){n=k=ur(a);t=5;for(u=Math.floor(k/2);u;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(t=n,n=Math.min(n+u,k)):n=Math.max(n-u,t),u=Math.floor(u/2),a.style.fontSize=n+"px";n!=t&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=t+"px")}a.style.overflow=c;m&&(m.style.overflow=f,m.style.position=l);e&&S(d,!0);A&&S(b,!0)}}}},GF=function(a,b,c,d,e){var f=0<e;
b=new we(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),L(a.A,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),L(a.A,"annotation-extend-up"),a.Z=!0);return b},IF=function(a){return"label"!=a.o.style||a.B.o},BF=function(a){var b;
b=CF(DF(a.F));if("player_relative"==a.o.H){var c=DF(a.F).Ma();b=new we(-b.left,-b.top,c.width,c.height)}else b=new we(0,0,b.width,b.height);return new wF(b,a.S?dE(a.S):null)},JF=function(a,b){return b?new we(a.x+b.left,a.y+b.top,b.width,b.height):null},LF=function(a){vq.call(this,a);
this.ea=!0;this.va="iv-module";this.logEvent="iv";this.L=0;this.B={};this.P={};this.J=new aC(a);a=KF;this.H=new Dr(this);I(this,this.H);this.subscribe("onHideControls",this.oB,this);this.subscribe("onShowControls",this.CC,this);this.subscribe("presentingplayerstatechange",this.gC,this);this.subscribe("resize",this.ar,this);this.subscribe("d",this.PF,this);this.subscribe("c",this.te,this);this.subscribe("a",this.cA,this);this.subscribe("b",this.EA,this);this.subscribe("vast_info_card_add",this.ZC,
this);this.S=O("DIV",[a.xv,"html5-stop-propagation"]);this.Z=O("DIV",a.Uu);this.K=this.A=this.C=this.D=null;this.O=[]},MF=function(a,b){for(var c={},d=0;d<b.attributes.length;d++){var e=b.attributes[d];
c[e.name]=e.nodeValue}for(d=0;d<b.childNodes.length;d++)if(e=b.childNodes[d],e.tagName){var f;if(c[e.tagName])f=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){a.o.W().experiments.ga("text_content_for_xml_node_value")&&e.textContent?c[e.tagName]=e.textContent.trim():0<e.childNodes.length&&(f=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof f?f.trim():f);continue}else f=[],c[e.tagName]=f;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?f.push(e.childNodes[0].nodeValue):
f.push(""):e&&f.push(MF(a,e))}return c},NF=function(a,b,c){return!(a.loaded&&a.L==b&&a.o.getVideoData().videoId==c)},PF=function(a,b){var c=OF(a,b);
if(!c&&"marker"!=b.type)return null;aE(b,function(a){a=y(this.VC,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new nE(a.Y,b,c)},RF=function(a,b){var c=LF.A(),d=null;
switch(b.type){case "branding":if(a.o.W().ud)break;a.D.element.appendChild(c);d=new mD(c,QF(a),b);break;case "promotion":Br(a.o,c,4),d=new fE(c,QF(a),b)}d&&d.wj();return d},VF=function(a){var b=a.o.getVideoData();
if(b.xf){var c=a.o.W(),d=c.K.remove(b.videoId);if(d){var e={format:"XML",Tc:{}};c.experiments.ga("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.o&&(e.Tc.gaming="1");e.$b=y(function(a,b,c){NF(this,a,b)||(a=oj(c)&&c.responseXML?c.responseXML:null)&&SF(this,a)},a,a.L,b.videoId);
kv()&&(e.$b=TF(a,e.$b));e.Ib={ic_only:"1"};UF(a,e,d);tj(b.xf,e)}}},UF=function(a,b,c){b.method="POST";
b.Ib=b.Ib||{};c.Qe&&(b.Ib.ic_xml=c.Qe);c.sg&&(b.Ib.ic_track=c.sg);if(a=a.o.getVideoData(1))b.Ib.organic_video_id=a.videoId},WF=function(a){var b=new R(["div"]);
S(b.element,!1);var c=new SC(a.o,b.element,QF(a));b.o(a.D.element);c.wj();return c},QF=function(a){a.K||(a.K=new nD(new rA(a),a.o.W(),a.o.getVideoData(),a.J,a.o,a.Y));
return a.K},SF=function(a,b){for(var c=!1,d=b.getElementsByTagName("annotation"),e=0;e<d.length;e++){var f=MF(a,d[e]),k=null;
try{k=WD(f)}catch(m){}k&&(LF.D(k)?(f=RF(a,k))&&(a.P[k.id]=f):LF.C(k)?(a.A||(a.A=WF(a)),ZC(a.A,k),c=!0):(f=PF(a,k))&&(a.B[k.id]=f))}c&&aD(a.o);Ob(a.B,function(a){var b=a.annotation;b.A&&b.A.A&&(b=this.B[b.A.A])&&(a.o.S=b.annotation)},a)},ZF=function(a,b,c,d){d?XF(a,b,c):YF(a,b,c)},YF=function(a,b,c){if(b=a.B[b])pE(b),c&&c.A?(a=y(a.ip,a,b),b.A=new Wd(a,2E3),b.A.start()):a.ip(b)},XF=function(a,b,c){if(b=a.B[b])pE(b),c&&c.C?(a=y(a.bs,a,b),b.A=new Wd(a,2E3),b.A.start()):a.bs(b)},$F=function(a,b,c){if("new"==
b.target)return!1;
var d=mB(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!oB(d))return!1;d=jj(d);if(d.list||d.p)return!1;b=qB(b);if(!b)return!1;if(c==b)return!0;a=a.o.W();return a.M&&a.na?!0:!1},OF=function(a,b){if(aG(b)){var c=b.G||XD(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new xF(b,y(a.S.appendChild,a.S),a.o,a.Y,c)}return null},aG=function(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;
if("text"==a.type)for(var b in UD)if(a.style==UD[b])return!0;return!1},bG=function(a,b,c,d){a.U(kE(b,d),c,d)},TF=function(a,b){return y(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);
a.unshift(b);b=qa.apply(window,a);this.O.push(lv(b,void 0))}},a)},cG=function(a){return!!a.A&&a.A.isAvailable()},dG=function(a){cG(a);
return!!a.A&&a.A.D},eG=function(a,b,c){cG(a);
a.A&&(b?cD(a.A,!!c):dD(a.A))},fG=function(a,b,c){a.o.U(b?"cardsteasershow":"cardsteaserhide",c)},gG=function(){Bi({YTP_TRANSLATE_MENU_ITEM:"Translate captions",
YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_LANGUAGE_OFF:"Off",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",YTP_COLOR_WHITE:"White",YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",
YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",
YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow",YTP_CLICK_FOR_SETTINGS:"Click $GEAR_ICON for settings"})},hG=function(a){this.A=[];
this.P=!1;this.L=a;R.call(this,["div","caption-window",{id:"caption-window-"+a.id},["span","captions-text",{tabindex:0,"aria-live":"assertive"}]]);this.D=this.sa["captions-text"];this.G=O("span",{"class":"captions-text",style:"visibility: hidden"});oh(this.G,"C");this.type=0;this.K={}},jG=function(a,b,c){var d="";
c&&(c=b&&null!=b.ae?b.ae:a.K.ae,null!=c&&(d=iD(b&&b.background?b.background:a.K.background),d="rgba("+d[0]+","+d[1]+","+d[2]+","+c+")"));if(!b)return{background:d};c="";var e=1;if(b.color||null!=b.ze)c=iD(b.color||a.K.color),e=null==b.ze?a.K.ze:b.ze,c="rgba("+c[0]+","+c[1]+","+c[2]+","+e+")";a="";if(null!=b.Se&&0!=b.Se){var f="rgba(34, 34, 34, "+e+")",e="rgba(204, 204, 204, "+e+")";b.Bo&&(e=f=b.Bo);switch(b.Se){case 4:a="2px 2px 3px "+f+", 2px 2px 4px "+f+", 2px 2px 5px "+f;break;case 1:a="1px 1px "+
f+", 2px 2px "+f+", 3px 3px "+f;break;case 2:a="1px 1px "+e+", 0 1px "+e+", -1px -1px "+f+", 0 -1px "+f;break;case 3:a="0 0 4px "+f+", 0 0 4px "+f+", 0 0 4px "+f+", 0 0 4px "+f}}e="";switch(b.fontFamily){case 1:e='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:e='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:e='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:e='"Comic Sans MS", Impact, Handlee, fantasy';
break;case 6:e='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:e=aq()&&bq()?"sans-serif-smallcaps":'"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';break;case 0:case 4:e='Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var f=b.offset||1,k=1+.25*(b.Sg||0);1!=f&&(k*=.8);return{color:c,fill:c,"background-color":d,"text-shadow":a,"font-variant":7==b.fontFamily?"small-caps":"","font-family":e,
"font-weight":b.bold?"bold":"","font-style":b.$f?"italic":"","text-decoration":b.xh?"underline":"","vertical-align":iG[f],"font-size":1==k?"":100*k+"%",visibility:b.jp?"hidden":""}},lG=function(a,b,c,d){var e=a.L.params,f=e.ze;
null==f&&(f=b.textOpacity);var k=e.Se;null==k&&(k=b.charEdgeStyle);var m=e.ae;null==m&&(m=b.backgroundOpacity);var k={background:e.background||b.background,ae:m,bold:e.bold,color:e.color||b.color,$f:e.$f,xh:e.xh,fontFamily:e.fontFamily||b.fontFamily,ze:f,Se:k,offset:e.offset||1,Sg:e.Sg||b.fontSizeIncrement},f=!1,l;for(l in k)if(a.K[l]!=k[l]){a.K=k;f=!0;break}f&&(l=jG(a,a.K,2==a.type),Uq(a.G,l),Uq(a.D,l));c=c/360*16;l=iD(e.windowColor||b.windowColor);k=e.fn;m=e.textAlign;Uq(a.element,{"background-color":"rgba("+
l[0]+","+l[1]+","+l[2]+","+(null==k?b.windowOpacity:k)+")",display:!1===e.isVisible?"none":"","font-size":c+"px","text-align":kG[null==m?2:m],top:0,left:0,right:"",bottom:"",width:"100%",height:"100%",margin:"",transform:""});a.D.setAttribute("dir",1==e.rg?"rtl":"ltr");a.vj(d||a.A,f);a.ls();d=e.anchorPoint;null==d&&(d=7);b={transform:"",top:"",left:"",width:"",height:""};f=null==e.Zi?50:e.Zi;f=.96*f+2;switch(d){case 0:case 3:case 6:b.left=f+"%";break;case 1:case 4:case 7:b.left=f+"%";(f=a.D.offsetWidth)?
(b.width=f+1+"px",b["margin-left"]=f/-2+"px"):b.transform+=" translateX(-50%)";break;case 2:case 5:case 8:b.right=100-f+"%"}e=null==e.Ej?100:e.Ej;e=.96*e+2;switch(d){case 0:case 1:case 2:b.top=e+"%";break;case 3:case 4:case 5:b.top=e+"%";(e=a.D.offsetHeight)?(b.height=e+"px",b["margin-top"]=e/-2+"px"):b.transform+=" translateY(-50%)";break;case 6:case 7:case 8:b.bottom=100-e+"%"}Uq(a.element,b)},mG=function(a,b,c,d){a.P=a.P||c!=b.o;
var e;d==c&&(e=a.D.children[a.D.children.length-1]);e||(e=window.document.createElement("span"),Uq(e,jG(a,c,!0)),a.D.appendChild(e));c=b.D.split("\n");d=a.L.Jg.length;for(var f=0;f<c.length;f++){var k=0<f||0==a.A.length||!b.H,m=!d||a.A.length+1>=d||f+1<c.length;!k||0==a.A.length&&0==f||e.appendChild(window.document.createElement("br"));c[f]?(k&&e.appendChild(window.document.createTextNode("\u00a0")),b.J?e.appendChild(window.document.createTextNode(c[f])):Kf(e,e.innerHTML+c[f]),m&&e.appendChild(window.document.createTextNode("\u00a0"))):
k!=m&&e.appendChild(window.document.createTextNode("\u00a0"))}a.A.push(b)},nG=function(){this.B=[];
this.o=[];this.A=-1},oG=function(a,b){return b?a.o.concat(a.B):a.o},pG=function(a,b){switch(b.B){case "asr":var c=a.B;
eb(c,y(b.equals,b))||c.push(b);break;default:if(b.isDefault||0>a.A)a.A=a.o.length;c=a.o;eb(c,y(b.equals,b))||c.push(b)}},qG=function(a,b){var c=db(a.o,y(b.equals,b));
-1!=c&&(a.A=c)},rG=function(a){this.Jp=!!a;
this.o=new nG;this.D=[]},sG=function(a,b){return eb(oG(a.o,!0),function(a){return a.toString()==b})},tG=function(a){rG.call(this,a.ji);
this.A=null;this.C=void 0;this.B=null;this.D=a.captionTranslationLanguages},uG=function(){this.ua=this.na=!1;
this.Y=1;this.B=20971520;this.D=8388608;this.A=window.NaN;this.L=3145728;this.M=62914560;this.S=10485760;this.H=window.NaN;this.O=2;this.Na=2.5;this.Ga=2;this.Fa=25;this.F=2097152;this.J=!1;this.G=1800;this.Xa=!1;this.o=1.15;this.C=1.05;this.xa=!0;this.liveChunkReadahead=3;this.ab=Zp("xboxone")||dq()||$p();this.ca=!1;this.Wa=El&&!0;this.bb=!0;this.ea=this.Ta=this.P=!1;this.ra=this.Z=0;this.Ja=.8;this.Sa=this.Ka=!1;this.Ca=aq();this.K=!0;this.ha=this.ia=this.la=!1;this.da=15;this.La=10;this.fa=1.25},
vG=function(a,b){1080<b&&!a.na&&(a.B=36700160,a.D=5242880,a.L=10485760,a.F=4194304,a.na=!0);
2160<b&&!a.ua&&(a.B=104857600,a.ua=!0)},wG=function(){this.wa=[]},xG=function(a,b){G.call(this);
this.A=b;this.H=new wG;this.C=!0;this.J=this.D=this.F=this.G=this.o=null;this.B=window.NaN},yG=function(a,b){a.G=b},zG=function(a){var b;
if(b=!a.C&&null!==a.o)b=a.o,b=b.o.Jh(b);return b&&!a.D&&!(a.o&&30<a.o.startTime-a.A.getCurrentTime())},AG=function(a){a.isDisposed();
var b;b=a.o;b=Ls(b.o,b);if(!a.H.contains(b.o[0].C)){var c=Hs(b).getUrl();a.D=tj(c,{format:"RAW",$b:y(a.K,a),withCredentials:!0});a.F=b;var c=a.H,d=a.F.o[0].C,e=Ab(c.wa,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.wa[e-1]&&e<c.wa.length&&1==c.wa[e]-d?(ob(c.wa,e),ob(c.wa,e-1)):0<e&&1==d-c.wa[e-1]?c.wa[e-1]=d:e<c.wa.length&&1==c.wa[e]-d?c.wa[e]=d:(vb(c.wa,e,0,d),vb(c.wa,e+1,0,d)))}a.o=cb(b.o)},BG=function(a){a.B=wi(y(function(){zG(this)&&AG(this)},a),1E3);
zG(a)&&AG(a)},CG=function(a,b){rG.call(this);
this.B=a;this.A=new xG(new uG,b)},DG=function(a){hG.call(this,a);
this.type=1},EG=function(a){hG.call(this,a);
this.D.style.whiteSpace="nowrap";this.type=2;this.H=0;this.M=new Wd(this.O,433,this);I(this,this.M);this.A=[];this.J=[];this.F=[]},GG=function(a){if(!a.M.isActive())if(a.H>=a.A.length)FG(a);
else{var b=a.F.length-1;0>b&&(a.J.push(0),a.H=0,a.F.push(""),b=0);for(var c=a.A.length,d=a.H;d<c;d++){var e=a.A[d];if("\n"==e.D){a.H++;a.J[b]++;break}if(e.H||0==a.F[b].length)a.F[b]+=e.D,a.H++,a.J[b]++;else break}FG(a);d<c&&!a.M.isActive()&&(oh(a.G,"C"),a.element.appendChild(a.G),b=a.G.offsetHeight,a.element.removeChild(a.G),L(a.D,"caption-rollup"),a.element.style.overflow="hidden",a.D.style.top=-b+"px",a.M.start())}},FG=function(a){if(!a.M.isActive()){for(var b=a.L.params.Bm||15;a.F.length<b;)a.F.unshift(""),
a.J.unshift(0);
for(;a.F.length>b;){a.F.shift();var c=a.J.shift();0<c&&(a.H-=c,a.A.splice(0,c))}b=a.F.join("\n");a=a.D;if(b)if(-1==b.indexOf("\n"))b="&nbsp;"+b+"&nbsp;";else{for(var b=b.split("\n"),c=0,d=b.length;c<d;c++)b[c]=b[c]?"&nbsp;"+b[c]+"&nbsp;":"";b=b.join("<br>")}Kf(a,b)}},HG=function(a,b,c,d,e,f,k,m){rq.call(this,a,a+b,{priority:c});
k&&(delete k.background,delete k.backgroundColor,delete k.ae,delete k.Se,delete k.color,delete k.fontFamily,delete k.Sg,delete k.ze,delete k.windowColor,delete k.fn);this.C=d;this.D=e;this.J=!!m;this.H=f||!1;this.o=k||null},IG=function(a,b,c,d,e){rq.call(this,a,a+b,{priority:c});
delete e.background;delete e.backgroundColor;delete e.ae;delete e.Se;delete e.color;delete e.fontFamily;delete e.Sg;delete e.ze;delete e.windowColor;delete e.fn;this.o=!1;this.id=d;this.params=e;this.Jg=[]},JG=function(a){return a.params.gq?a.params.gq:a.params.eE?2:1<a.Jg.length?1:0},KG=function(){return new IG(0,0x8000000000000,0,"0",{})},LG=function(a,b,c,d){rG.call(this,d);
c||(c=jj(a).hl||"",c=c.split("_").join("-"));this.B=lj(a,{hl:c});this.C=b;this.F={};this.A=null},MG=function(){this.o=[];
this.A=[]},OG=function(a){MG.call(this);
this.A.push(KG());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)NG(a[b],this.o)},NG=function(a,b){var c=a.getAttribute("t"),c=c?(0,window.parseInt)(c,10):1E3*(0,window.parseFloat)(a.getAttribute("start")||0),d=a.getAttribute("d"),d=d?(0,window.parseFloat)(d):1E3*(0,window.parseFloat)(a.getAttribute("dur")||0),e=a.getAttribute("w")||"0",f=!!a.getAttribute("append"),k=f?6:5,m=oA("<html>"+(a.firstChild&&a.firstChild.nodeValue||"")+"</html>");
PG(c,d,k,e,f,m.firstChild,{},b)},PG=function(a,b,c,d,e,f,k,m){switch(f.tagName){case "b":k.bold=!0;
break;case "i":k.$f=!0;break;case "u":k.xh=!0;break;case "font":var l=f.getAttribute("color");QG.test(l);k.color=l}for(l=0;l<f.childNodes.length;l++){var n=f.childNodes[l];if(3==n.nodeType)m.push(new HG(a,b,c,d,n.nodeValue,e||0<l,ac(k)?void 0:k,!0));else{var t={};ra(t,k);PG(a,b,c,d,!0,n,t,m)}}},RG=function(a){MG.call(this);
this.B={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=b.getAttribute("id");a:{var d=b,e=this.B[c];if(d.getAttribute("t")||d.getAttribute("start")){b=d.getAttribute("start")?1E3*(0,window.parseFloat)(d.getAttribute("start")):(0,window.parseInt)(d.getAttribute("t"),10);e&&(e.end>=b?e.end=b:e=null);switch(d.getAttribute("op")){case "kill":b=null;break a;case "define":e=null}e?e.o=!0:e=KG();var f={};e&&ra(f,e.params);d.getAttribute("rc")&&(f.Bm=(0,window.parseInt)(d.getAttribute("rc"),
10));d.getAttribute("cc")&&(f.Pw=(0,window.parseInt)(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=(0,window.parseInt)(d.getAttribute("ap"),10),f.anchorPoint=0>e||8<e?7:e);d.getAttribute("ah")&&(f.Zi=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(f.Ej=(0,window.parseInt)(d.getAttribute("av"),10));d.getAttribute("vs")&&(f.isVisible=!!d.getAttribute("vs"));d.getAttribute("ju")&&(f.textAlign=(0,window.parseInt)(d.getAttribute("ju"),10));d.getAttribute("pd")&&(f.rg=1,0==(0,window.parseInt)(d.getAttribute("pd"),
10)&&(f.rg=0));d.getAttribute("bc")&&(f.backgroundColor=d.getAttribute("bc"));d.getAttribute("bo")&&(f.ae=(0,window.parseInt)(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(f.color=d.getAttribute("fc"));d.getAttribute("sd")&&(f.eE=(0,window.parseInt)(d.getAttribute("sd"),10));e=(0,window.parseInt)(d.getAttribute("d"),10)||1E3*(0,window.parseFloat)(d.getAttribute("dur"))||0x8000000000000;d=d.getAttribute("id")||"0";b=new IG(b,e,0,d,f)}else b=null}this.B[c]=b;this.A.push(b);break;case "text":for(c=
this.o.length,NG(a,this.o);c<this.o.length;c++)b=this.o[c],(f=this.B[b.C])&&f.Jg.push(b)}a=a.nextSibling}0==this.A.length&&this.A.push(KG())},ZG=function(a,b){MG.call(this);
a.firstChild.getAttribute("format");this.B=!!b;for(var c={kj:{},ts:{},us:{}},d,e,f=a.firstChild.childNodes,k=0;k<f.length;k++){var m=f[k];switch(m.tagName){case "head":d=m;break;case "body":e=m}}if(d)for(d=d.childNodes,f=0;f<d.length;f++){var l=d[f];switch(l.tagName){case "pen":var m=l.getAttribute("id"),k=c.kj,n=c,t=l,l={},u=t.getAttribute("p");u&&ra(l,n.kj[u]);n=SG(t,"b");null!=n&&(l.bold=n);n=SG(t,"i");null!=n&&(l.$f=n);n=SG(t,"u");null!=n&&(l.xh=n);n=TG(t,"et");null!=n&&(l.Se=n);n=TG(t,"of");
null!=n&&(l.offset=n);n=UG(t,"bc");null!=n&&(l.background=n);n=UG(t,"ec");null!=n&&(l.Bo=n);n=UG(t,"fc");null!=n&&(l.color=n);n=TG(t,"fs");void 0!=n&&0!=n&&(l.fontFamily=n);n=VG(t,"sz");void 0!=n&&(l.Sg=n/100-1);n=VG(t,"bo");void 0!=n&&(l.ae=n/255);t=VG(t,"fo");void 0!=t&&(l.ze=t/255);k[m]=l;break;case "ws":k=l.getAttribute("id");c.us[k]=WG(this,c,l);break;case "wp":k=l.getAttribute("id"),c.ts[k]=XG(c,l)}}if(e)for(d={},f=-1,e=e.childNodes,k=0;k<e.length;k++)switch(m=e[k],m.tagName){case "w":l=YG(this,
c,m);if(m=d[l.id])m.end=l.start;d[l.id]=l;this.A.push(l);break;case "p":for(var l=c,t=m,n=[],u=VG(t,"t")||0,x=VG(t,"d")||0,A=t.getAttribute("w")||"0",D=!!SG(t,"a"),H=D?6:5,z=l.kj[t.getAttribute("p")],P=t.childNodes,Ua=0;Ua<P.length;Ua++){var la=P[Ua];if("s"==la.tagName){0<Ua&&(D=!0);var ya=la,la=u,yb=x,pd=A,ck=D,dk=H,Bm=ya.textContent?ya.textContent:"",ek=l.kj[ya.getAttribute("p")],ya=VG(ya,"t")||0,la=new HG(la+ya,yb-ya,dk,pd,Bm,ck,ek,!0)}else la=new HG(u,x,H,A,t.textContent?t.textContent:"",D,z,
!0);n.push(la)}t=n;if(0<t.length)for(l=d[t[0].C],l||(l=YG(this,c,m,f--),this.A.push(l)),m=0;m<t.length;m++)n=t[m],t[m].C=l.id,l.Jg.push(n),this.o.push(n)}},VG=function(a,b){var c=a.getAttribute(b);
if(null!=c)return(0,window.parseFloat)(c)},SG=function(a,b){var c=a.getAttribute(b);
if(null!=c)return"1"==c},TG=function(a,b){var c=VG(a,b);
if(void 0!=c)return c},UG=function(a,b){var c=a.getAttribute(b);
if(null!=c)return QG.test(c),c},WG=function(a,b,c){var d={},e=c.getAttribute("ws");
e&&ra(d,b.us[e]);b=TG(c,"mh");null!=b&&(d.gq=b);b=TG(c,"ju");null!=b&&(d.textAlign=b);b=TG(c,"pd");null!=b?d.rg=b:a.B&&(d.rg=1);a=UG(c,"wfc");null!=a&&(d.windowColor=a);c=VG(c,"wfo");void 0!=c&&(d.fn=c/255);return d},XG=function(a,b){var c={},d=b.getAttribute("wp");
d&&ra(c,a.ts[d]);d=TG(b,"ap");null!=d&&(c.anchorPoint=d);d=VG(b,"cc");null!=d&&(c.Pw=d);d=VG(b,"ah");null!=d&&(c.Zi=d);d=VG(b,"rc");null!=d&&(c.Bm=d);d=VG(b,"av");null!=d&&(c.Ej=d);return c},YG=function(a,b,c,d){d=d||c.getAttribute("id")||"0";
var e=VG(c,"t"),f=VG(c,"d")||0x8000000000000,k={};ra(k,XG(b,c));ra(k,WG(a,b,c));return new IG(e,f,0,d,k)},fH=function(a,b){MG.call(this);
this.A.push(KG());for(var c=a.split($G),d=1;d<c.length;d++){var e=c[d],f=b;if(""!=e&&0!=e.search(aH)){var k=e.split(bH),m=0,l=k[m++].match(cH);l||(l=k[m++].match(cH));l&&(e=dH(l[1],f)||0,f=(dH(l[3],f)||0)-e,k=k.slice(m).join("\n"),m=oA("<html>"+k+"</html>"),m.getElementsByTagName("parsererror").length?this.o.push(new HG(e,f,5,"0",k,!1,void 0,!0)):eH(this,e,f,5,"0",!1,m.firstChild,{},this.o))}}},eH=function(a,b,c,d,e,f,k,m,l){switch(k.tagName){case "b":m.bold=!0;
break;case "i":m.$f=!0;break;case "u":m.xh=!0}for(var n=0;n<k.childNodes.length;n++){var t=k.childNodes[n];if(3==t.nodeType)l.push(new HG(b,c,d,e,t.nodeValue,f||0<n,ac(m)?void 0:m,!0));else{var u={};ra(u,m);eH(a,b,c,d,e,!0,t,u,l)}}},dH=function(a,b){for(var c=a.split(":"),d=0,e=0;e<c.length;e++)d=60*d+(0,window.parseFloat)(c[e]);
return 1E3*d+b},hH=function(a,b,c){if("WEBVTT"==a.substring(0,6))return new fH(a,c||0);
a=oA(a);return a&&a.firstChild?"timedtext"==a.firstChild.tagName?3==(0,window.parseInt)(a.firstChild.getAttribute("format"),10)?(b=gH.test(b.A),new ZG(a,b)):new RG(a):new OG(a):new MG},iH=function(a){vq.call(this,a,"subtitlesModuleData");
this.va="captions";this.logEvent="cc";gG();this.ea=!0;this.fa=this.L=this.ha=!1;this.X=a.W();this.C=null;this.da=DF(a);this.$=a;this.D={};this.P=null;this.ca=[];this.O={};this.S={};this.ua=this.K=this.na=!1;this.A=this.B=this.H=this.J=null;this.ia=new Wd(this.Sm,0,this);I(this,this.ia);this.la=new Wd(this.ID,2E3,this);I(this,this.la);this.Z=new Dr(this);I(this,this.Z);this.xa=null},jH=function(a){return"3"!=a.X.B?!1:!!a.$.app.B.o.textTracks},kH=function(a,b){jH(a);
if(b&&a.C.captionTracks.length){var c=a.o.Hh().vo;if(2==c||3==c)return!0}if(1==a.X.ia||1==a.C.Xd||"alwayson"==a.C.ed("yt:cc")||jH(a))return!0;c=Bq(a,"module-enabled");return null!=c?!!c:"on"==a.C.ed("yt:cc")},lH=function(a){return jH(a)?!a.C.Ha:a.C.captionTracks.length&&a.o.Hh().Bi?!0:kH(a,!0)},nH=function(a){a.A&&a.A==a.B.fe()&&mH(a);
a.B.$l(y(a.mr,a),!0,jH(a)?"vtt":void 0,a.o.Hh())},pH=function(a){jH(a);
a.L=!0;jH(a)||(oH(a),a.Cq())},rH=function(a){jH(a);
a.B.fe()&&qH(a,a.B.fe())},mH=function(a){a.A&&(a.A=null,jH(a)||(yq(a),a.ca=[],a.A=null,a.Sm()),a.B.Rm())},qH=function(a,b,c){jH(a);
!b||a.A&&b.equals(a.A)||(null!=c&&(a.K=c),a.G?(a.A=b,sH(a),a.wm("control_subtitles_set_track",Fu(b)),a.L||pH(a)):(a.B.Zl(b,y(a.nr,a)),a.ha=!0))},tH=function(a){Cq(a,"display-settings",a.D)},oH=function(a,b){var c=CF(a.da).height;
Ob(a.O,function(a){lG(a,this.D,c)},a);
a.H&&lG(a.H,a.D,c);a.J&&lG(a.J,a.D,c);a.Sm();p(b)&&!b||tH(a)},vH=function(a){if(a.loaded){if(!jH(a)){var b=a.la;
b.isActive()&&Xd(b)}Cq(a,"module-enabled",!1);mH(a);uH(a.o);a.K=!1;a.G?(sH(a),a.wm("control_subtitles_set_track")):a.o.Ea("captionschanged",{});jH(a)||rH(a)}},wH=function(a){return iH.prototype.Ya(a)?new iH(a):null},xH=function(a,b){jH(a);
if(b&&!a.H){var c=new IG(0,0,0,"0",{rg:0});a.H=new hG(c);a.P.element.appendChild(a.H.element);c=new HG(0,0,0,a.H.L.id,Q("YTP_SAMPLE_SUBTITLES"),void 0,void 0,!0);lG(a.H,a.D,CF(a.da).height,[c])}else!b&&a.H&&(a.H.dispose(),a.H=null)},BH=function(a,b){if(b)if(dc(b,"reset"))ra(a.D,yH),tH(a),oH(a);
else{if(!zH){var c={};c.color=a.Hk;c.textOpacity=a.dm;c.background=a.Hk;c.backgroundOpacity=a.dm;c.windowColor=a.Hk;c.windowOpacity=a.dm;c.charEdgeStyle=a.Iw;c.fontFamilyOption=a.rx;c.fontSizeIncrement=a.tx;zH=c}var c=zH,d;for(d in c)switch(d){case "fontFamilyOption":a.D.fontFamily=c[d](b[d],a.D.fontFamily);break;default:a.D[d]=c[d](b[d],a.D[d])}oH(a,AH(a.X))}},sH=function(a){var b={};
a.A&&(b=Fu(a.A));a.o.Ea("captionschanged",b)},DH=function(a){this.$=a;
this.A=null;this.o=new we(0,0,0,0);this.D=new ue(0,0);this.C=this.B=0;CH&&wc(11)&&(this.A=window.document.createElement("canvas").getContext("2d"),wc(12.10532)||(this.B=3))},GH=function(a,b){if(null===a.A)return b;
var c=new ue(b.videoWidth,b.videoHeight);if(!ve(c,a.D)&&(a.A.canvas.width=c.width,a.A.canvas.height=c.height,a.o.top=0,a.o.left=0,a.o.width=c.width,a.o.height=c.height,a.D=c,0<a.B)){a.B=3;var d=EH(DF(a.$)),e=16/9;d<e?(a.o.width=c.width*d/e,a.o.left=Math.ceil(.5*(c.width-a.o.width)),a.o.width|=0):d>e&&(a.o.height=c.height*e/d,a.o.top=Math.ceil(.5*(c.height-a.o.height)),a.o.height|=0)}0<a.B&&(a.C^=1,2<=a.o.top?(a.C?FH(a,b,0,0,a.o.width,a.o.top-1):FH(a,b,0,b.videoHeight-a.o.top+1,a.o.width,a.o.top-1))&&
--a.B:2<=a.o.left&&(a.C?FH(a,b,0,0,a.o.left-1,a.o.height):FH(a,b,b.videoWidth-a.o.left+1,0,a.o.left-1,a.o.height))&&--a.B,0>=a.B&&(a.o.top=0,a.o.left=0,a.o.width=b.videoWidth,a.o.height=b.videoHeight));try{a.A.drawImage(b,a.o.left,a.o.top,a.o.width,a.o.height,0,0,a.D.width,a.D.height)}catch(f){if(!(f instanceof window.DOMException)||"IndexSizeError"!=f.name)throw f;}return a.A.canvas},FH=function(a,b,c,d,e,f){e>=f?(d+=Math.random()*f|0,f=1):(c+=Math.random()*e|0,e=1);
try{a.A.drawImage(b,c,d,e,f,c,d,e,f)}catch(k){if(!(k instanceof window.DOMException)||"IndexSizeError"!=k.name)throw k;}a=a.A.getImageData(c,d,e,f).data;for(b=0;b<a.length;b+=4)if(255<a[b]+a[b+1]+a[b+2]+a[b+3])return!0;return!1},HH=function(a,b,c){this.H=b||!1;
this.F=c||null;this.o="precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}";this.D=new DH(a)},IH=function(a,b){HH.call(this,a);
this.o="precision mediump float;\nuniform sampler2D uSplr;\nuniform int mode;\nvarying vec2 vTexCrd;\nuniform mat4 mLt;\nuniform mat4 mRt;\nvoid anaglyph(float x, float y) {\n  x *= 0.5;\n  vec4 cLt = texture2D(uSplr, vec2(x, y));\n  vec4 cRt = texture2D(uSplr, vec2(0.5 + x, y));\n  gl_FragColor = mLt * cLt + mRt * cRt;\n}\nvoid main(void) {\n  if (mode == 1) {\n    anaglyph(vTexCrd.x, vTexCrd.y);\n  }\n  else if (mode == 0) {\n    gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n  }\n}";
this.G=b;this.C=null;this.A=1;this.B=!0},KH=function(a,b){if(!(b.M||El&&!JH||Ww&&!JH&&wc(38)||Ac&&!JH&&wc(27)||CH&&!gq()&&wc(11)))return!1;
if(Zx(a)&&3!=a.da&&4!=a.da)return!0;if(!a.o)return!1;for(var c in a.o.o){var d=a.o.o[c].info.video;if(d&&1==d.A)return!0}return!1},LH=function(a,b){HH.call(this,a,!0,b);
this.o="precision highp float;\nuniform sampler2D uSplr;\nuniform sampler2D uNoiseSplr;\nuniform float seed;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr, vTexCrd).xyz, 1.0);\n  vec4 noiseCol = texture2D(uNoiseSplr, vTexCrd + seed);\n  float amt = 0.05;\n  float maxCol = max(max(col.x, col.y), col.z);\n  amt = amt * smoothstep(0.0, 0.1, maxCol);\n  amt = amt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  col.xyz = col.xyz + (noiseCol.x - 0.5) * amt;\n  gl_FragColor = col;\n}";
this.B=null;this.$=a;this.J=a.W().experiments.ga("white_noise_with_interval");this.C=0},MH=function(a,b){LH.call(this,a,b);
this.o="precision highp float;\nuniform sampler2D uSplr;\nuniform float seed;\nuniform int mode;\nvarying vec2 vTexCrd;\nfloat noise(vec2 crd)\n{\n  return fract(sin(crd.y * 99.87 + crd.x * 0.0978) * seed);\n}\nvoid main(void) {\n  if (mode == 0) { gl_FragColor = texture2D(uSplr,vTexCrd); return; }\n  vec2 texCrdMinusx = vec2(vTexCrd.x - 0.00156, vTexCrd.y);\n  vec2 texCrdMinusy = vec2(vTexCrd.x, vTexCrd.y - 0.00277);\n  vec4 orjcol = texture2D(uSplr,vTexCrd);\n  vec4 col = orjcol * 1.8 -\n      texture2D(uSplr,texCrdMinusx) * 0.4 -\n      texture2D(uSplr,texCrdMinusy) * 0.4;\n  vec4 diff = orjcol * 2.0 -\n      texture2D(uSplr,texCrdMinusx) -\n      texture2D(uSplr,texCrdMinusy);\n  float fDiff = length(diff);\n  float maxCol = max(max(orjcol.x, orjcol.y), orjcol.z);\n  float namt = 0.035;\n  namt = namt * smoothstep(0.0, 0.1, maxCol);\n  namt = namt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  float noiseL = noise(gl_FragCoord.xy) * namt;\n  float eamt = smoothstep(0.0, 0.05, fDiff);\n  col = eamt * col + (1.0 - eamt) * orjcol;\n  col.xyz = col.xyz + ((1.0 - eamt) * noiseL);\n  gl_FragColor = col;\n}";
this.A=null;this.G=!1},NH=function(a){this.length=a.length||a;
for(var b=0;b<this.length;b++)this[b]=a[b]||0},OH=function(a){this.length=a.length||a;
for(var b=0;b<this.length;b++)this[b]=a[b]||0},PH=function(a){var b=a[0],c=a[1];
a=a[2];return Math.sqrt(b*b+c*c+a*a)},QH=function(){this.o=new window.Float32Array(16);
this.B=new window.Float32Array(16);this.A=new window.Float32Array(16);this.identity()},RH=function(a,b){for(var c=0;16>c;c+=4)a.A[c+0]=a.o[c+0]*b[0]+a.o[c+1]*b[4]+a.o[c+2]*b[8]+a.o[c+3]*b[12],a.A[c+1]=a.o[c+0]*b[1]+a.o[c+1]*b[5]+a.o[c+2]*b[9]+a.o[c+3]*b[13],a.A[c+2]=a.o[c+0]*b[2]+a.o[c+1]*b[6]+a.o[c+2]*b[10]+a.o[c+3]*b[14],a.A[c+3]=a.o[c+0]*b[3]+a.o[c+1]*b[7]+a.o[c+2]*b[11]+a.o[c+3]*b[15];
c=a.o;a.o=a.A;a.A=c},SH=function(a){return ji(a,function(a){a=a.toString(16);
return 1<a.length?a:"0"+a}).join("")},WH=function(a,b){ea(a);
TH();for(var c=b?UH:VH,d=[],e=0;e<a.length;e+=3){var f=a[e],k=e+1<a.length,m=k?a[e+1]:0,l=e+2<a.length,n=l?a[e+2]:0,t=f>>2,f=(f&3)<<4|m>>4,m=(m&15)<<2|n>>6,n=n&63;l||(n=64,k||(m=64));d.push(c[t],c[f],c[m],c[n])}return d.join("")},YH=function(a){var b=[];
XH(a,function(a){b.push(a)});
return b},XH=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=ZH[c];
if(null!=e)return e;if(!C(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
TH();for(var d=0;;){var e=c(-1),f=c(0),k=c(64),m=c(64);if(64===m&&-1===e)break;b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=m&&b(k<<6&192|m))}},TH=function(){if(!VH){VH={};
ZH={};UH={};for(var a=0;65>a;a++)VH[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),ZH[VH[a]]=a,UH[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(ZH["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}},$H=function(a){var b=new window.Float32Array(3),c=PH(a);
b[0]=a[0]/c;b[1]=a[1]/c;b[2]=a[2]/c;a=1/(Math.abs(b[0])+Math.abs(b[1])+Math.abs(b[2]));b[0]*=a;b[1]*=a;b[2]*=a;0<b[2]&&(a=(1-Math.abs(b[0]))*(0<b[1]?1:-1),b[0]=(1-Math.abs(b[1]))*(0<b[0]?1:-1),b[1]=a);b[0]*=.5;b[1]*=.5;b[2]*=.5;b[0]+=.5;b[1]+=.5;a=Math.floor(256*b[0]);b=Math.floor(256*b[1]);256==a&&--a;256==b&&--b;return{x:a,y:255-b}},aI=function(a){function b(a,b){var c,d=b;
for(c=0;a[c]!=b;++c){var e=a[c];a[c]=d;d=e}a[c]=d;return c}
var c=a.length,d=Array(2*c+3),e=0;d[0]=0;d[1]=c>>8&255;d[2]=c&255;for(var e=3,f=Array(256),k=Array(256),m=Array(256),l=0;256>l;++l)f[l]=l,k[l]=l,m[l]=0;for(var n=0,t=0,l=0;l<c;++l){var u=a[l],x=b(f,u);k[t]==u?m[t]+=4:0==(m[t]>>=1)&&(k[t]=u,m[t]=1);1<m[u]&&b(f,k[u]);t=u;0==x&&++n;if(0!=x||l+1==c){for(;0<n;)--n,0==n%2?d[e++]=0:d[e++]=254,n>>=1;if(255==x||254==x)d[e++]=255;0!=x&&(d[e++]=x)}}return d.slice(0,e)},aaa=function(){this.F=this.H=this.A=this.G=this.B=0;
this.D=new window.Float32Array(3);this.C=-1;this.o=[]},bI=function(a,b){this.F=a;
this.O=b;this.B=new QH;this.da=this.ca=this.fa=this.La=null;this.C=.872;this.S=this.Z=this.Y=this.A=this.o=0;this.H=!0;this.D=this.K=0;this.G=new window.Float32Array(3);this.L=new DH(a);this.ea=this.F.W().experiments.ga("enable_html5_spherical_direction_logging")?new aaa:null},cI=function(a,b){bI.call(this,a,b);
this.P=null;this.J=0;this.M=!0},baa=function(){},dI=function(a,b,c){return a[b]=a[b]||c},caa=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;
return-1},daa=function(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},eI=function(){var a;
if((a=Object.create)&&eaa.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},gI=function(){var a=faa.href,b;
if(fI.dpo)b=fI.h;else{b=fI.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=(0,window.decodeURIComponent)(a[2])}catch(e){}}return b},gaa=function(a){var b=dI(fI,"PQ",[]);
fI.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)},hI=function(a){return dI(dI(fI,"H",eI()),a,eI())},kI=function(a,b,c){b&&0<b.length&&(b=iI(b),c&&0<c.length&&(b+="___"+iI(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=dI(haa,"_p",eI()),dI(b,c,eI())[a]=(new Date).getTime(),b=jI.r,"function"===typeof b?b(a,"_p",c):b.push([a,
"_p",c]))},iI=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")},lI=function(a){throw Error("Bad hint"+(a?": "+a:""));
},laa=function(a,b,c,d){var e=a.split(";"),f=e.shift(),k=mI[f],m=null;
k?m=k(e,b,c,d):lI("no hint processor for: "+f);m||lI("failed to generate load url");b=m;c=b.match(iaa);(d=b.match(jaa))&&1===d.length&&kaa.test(b)&&c&&1===c.length||lI("failed sanity: "+a);return m},oaa=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}
a=maa(a);naa.test(c)||lI("invalid_callback");b=nI(b);d=d&&d.length?nI(d):null;return[(0,window.encodeURIComponent)(a.uD).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.ho?"/am="+e(a.ho):"",a.Gr?"/rs="+e(a.Gr):"",a.wu?"/t="+e(a.wu):"","/cb=",e(c)].join("")},maa=function(a){"/"!==a.charAt(0)&&lI("relative path");
for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))lI("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("="),k=(0,window.decodeURIComponent)(f[0]),m=(0,window.decodeURIComponent)(f[1]);2==f.length&&k&&m&&(a[k]=a[k]||m)}b="/"+c.join("/");paa.test(b)||lI("invalid_prefix");c=oI(a,"k",!0);d=oI(a,"am");e=oI(a,"rs");a=oI(a,"t");return{uD:b,version:c,ho:d,Gr:e,wu:a}},nI=function(a){for(var b=
[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");
qaa.test(e)&&b.push(e)}return b.join(",")},oI=function(a,b,c){a=a[b];
!a&&c&&lI("missing: "+b);if(a){if(raa.test(a))return a;lI("invalid: "+b)}return null},saa=function(){var a=gI();
if(!a)throw Error("Bad hint");return a},pI=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];
e&&0>caa.call(b,e)&&c.push(e)}return c},taa=function(a){"loading"!=qI.readyState?rI(a):qI.write("<"+sI+' src="'+(0,window.encodeURI)(a)+'"></'+sI+">")},rI=function(a){var b=qI.createElement(sI);
b.setAttribute("src",a);b.async="true";(a=qI.getElementsByTagName(sI)[0])?a.parentNode.insertBefore(b,a):(qI.head||qI.body||qI.documentElement).appendChild(b)},uaa=function(a,b){var c=b&&b._c;
if(c)for(var d=0;d<tI.length;d++){var e=tI[d][0],f=tI[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}},vaa=function(a,b,c){uI(function(){var c;
c=b===gI()?dI(vI,"_",eI()):eI();c=dI(hI(b),"_",c);a(c)},c)},xI=function(a,b){var c=b||{};
"function"==typeof b&&(c={},c.callback=b);uaa(a,c);var d=a?a.split(":"):[],e=c.h||saa(),f=dI(fI,"ah",eI());if(f["::"]&&d.length){for(var k=[],m=null;m=d.shift();){var l=m.split("."),l=f[m]||f[l[1]&&"ns:"+l[0]||""]||e,n=k.length&&k[k.length-1]||null,t=n;n&&n.hint==l||(t={hint:l,features:[]},k.push(t));t.features.push(m)}var u=k.length;if(1<u){var x=c.callback;x&&(c.callback=function(){0==--u&&x()})}for(;d=k.shift();)wI(d.features,c,d.hint)}else wI(d||[],c,e)},wI=function(a,b,c){function d(a,b){if(u)return 0;
yI.clearTimeout(t);x.push.apply(x,D);var d=((vI||{}).config||{}).update;d?d(f):f&&dI(fI,"cu",[]).push(f);if(b){kI("me0",a,A);try{vaa(b,c,n)}finally{kI("me1",a,A)}}return 1}
a=daa(a)||[];var e=b.callback,f=b.config,k=b.timeout,m=b.ontimeout,l=b.onerror,n=void 0;"function"==typeof l&&(n=l);var t=null,u=!1;if(k&&!m||!k&&m)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var l=dI(hI(c),"r",[]).sort(),x=dI(hI(c),"L",[]).sort(),A=[].concat(l);0<k&&(t=yI.setTimeout(function(){u=!0;m()},k));
var D=pI(a,x);if(D.length){var D=pI(a,l),H=dI(fI,"CP",[]),z=H.length;H[z]=function(a){function b(){var a=H[z+1];a&&a()}
function c(b){H[z]=null;d(D,a)&&gaa(function(){e&&e();b()})}
if(!a)return 0;kI("ml1",D,A);0<z&&H[z-1]?H[z]=function(){c(b)}:c(b)};
if(D.length){var P="loaded_"+fI.I++;vI[P]=function(a){H[z](a);vI[P]=null};
a=laa(c,D,"gapi."+P,l);l.push.apply(l,D);kI("ml0",D,A);b.sync||yI.___gapisync?taa(a):rI(a)}else H[z](baa)}else d(D)&&e&&e()},uI=function(a,b){if(fI.hee&&0<fI.hel)try{return a()}catch(c){b&&b(c),fI.hel--,xI("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;
}})}else try{return a()}catch(c){throw b&&b(c),c;
}},zI=function(){Lj.call(this);
this.o={}},AI=function(a,b,c){if(!a.o[b]&&(c.Qe||c.sg)){var d=a.o,e=c;
Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.U("vast_info_card_add",b)}},BI=function(){J.call(this);
this.A=null;this.C=this.D=!1},EI=function(a,b){var c="";
b&&(CI(a,b),c=mw(b));a.o.src&&""==c||(c&&a.o.src!=c&&DI(a,c),b&&b.o||a.load(),a.C||(a.addEventListener("volumechange",y(a.F,a)),a.C=!0))},HI=function(a){a.o.ended&&FI(a,0);
if(!a.o.src&&a.A){var b=mw(a.A);DI(a,b);a.A.o||a.load()}a.play();GI&&7<=zx&&Pl(a,"playing",y(function(){vi(y(this.G,this,this.getCurrentTime(),0),500)},a))},CI=function(a,b){a.A&&a.A.equals(b)||(a.A&&a.A.dispose(),a.A=b)},jz=function(a){return cz(II(a),a.getCurrentTime())},FI=function(a,b){0<a.o.readyState&&(GI&&4>zx&&(b=Math.max(.1,b)),a.o.currentTime=b)},JI=function(a){a.o.src&&(Hw&&0<a.getCurrentTime()&&FI(a,0),a.o.removeAttribute("src"),a.load(),a.A&&a.A.o&&CI(a,null))},KI=function(a){var b=II(a);
return 0<bz(b)&&a.o.duration?az(b,a.getCurrentTime()):0},LI=function(a){var b=a.o.duration;
return window.Infinity==b?1:b?KI(a)/b:0},waa=function(a,b,c){this.target=a;
this.type=b;this.o=c||null},MI=function(a){BI.call(this);
this.o=a;this.B={}},DI=function(a,b){var c=a.o.playbackRate;
a.o.src=b;a.o.playbackRate=c},II=function(a){return a.o.buffered||Yy()},NI=function(a,b){b?a.o.setAttribute("crossorigin","anonymous"):a.o.removeAttribute("crossorigin")},OI=function(a,b,c){Uq(a.o,b,c)},QI=function(){if(null==r("_lact",window)){var a=(0,window.parseInt)(ti("LACT"),10),a=(0,window.isFinite)(a)?K()-Math.max(a,0):-1;
q("_lact",a,window);-1==a&&PI();Nl(window.document,"keydown",PI);Nl(window.document,"keyup",PI);Nl(window.document,"mousedown",PI);Nl(window.document,"mouseup",PI);Hi("page-mouse",PI);Hi("page-scroll",PI);Hi("page-resize",PI)}},PI=function(){null==r("_lact",window)&&(QI(),r("_lact",window));
var a=K();q("_lact",a,window);Ji("USER_ACTIVE")},HB=function(){var a=r("_lact",window);
return null==a?-1:Math.max(K()-a,0)},xaa=function(a){a=a.responseText;
if(!ua(a,")]}'"))return RI(""),"";a=JSON.parse(a.substr(4)).id;RI(a);return a},TI=function(){vi(function(){SI=null},3E5)},UI=function(){return r("yt.www.ads.biscotti.lastId_")||""},RI=function(a){q("yt.www.ads.biscotti.lastId_",a,void 0)},VI=function(a,b){this.experimentIds=a?a.split(","):[];
this.flags=fj(b||"","&");var c={};F(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.B=!!c["9406444"];this.L=!!c["9405188"];this.C=!!c["9405408"];this.K=!!c["9405191"];this.F=!!c["9405409"];this.H=!!c["9416855"];this.M=!!c["9406692"];this.spherical=!!c["9406693"]||!!c["9417210"]&&qu&&wc(8);this.G=!!c["9417025"];this.P=!!c["9417026"];this.D=!!c["9417027"];this.Hw=!0;this.enableAudioCast=!!c["9408394"];this.o=!!c["9414740"];this.J=!!c["9414672"];this.showEndToEndLatency=!!c["9416891"];this.O=!!c["9407182"]},cJ=function(a){G.call(this);
a=ec(a);this.O={};this.experiments=new VI(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.ra=b;this.H=(this.M=yaa.test(this.ra))?gv("",a.loaderUrl):this.ra;this.$a=Wp(this.H);this.fa=(this.wf=(this.dc=dv(!1,a.ssl_stream))||dv(!1,a.ssl))?"https":"http";this.baseYtUrl=Tp(a.BASE_YT_URL)||Tp(this.ra)||this.fa+"://www.youtube.com/";"adunit"==a.el?WI.test(this.H)?this.Ba="adunit":this.Ba="embedded":this.experiments.ga("legacy_el")?
this.Ba=a.el||this.Ba:"embedded"==a.el||this.$a?this.Ba=ev(this.Ba,a.el,zaa):a.el&&(this.Ba="embedded");QI();b=null;var c=a.ps,d=jb(XI,c);!c||d&&!this.$a||(b=c);this.o=b;this.D=(this.Nb=jb(XI,this.o))&&"play"!=this.o;this.Pb=!this.D;this.A={};this.A.c=a.c||"web";this.A.cver=a.cver||"html5";this.A.cplayer="UNIPLAYER";this.wb=dv(!1,a.edu_mode);this.da=!(!hu().defaultPlaybackRate||Ac&&!Zp("chrome")||yx||YI||Zp("android")||Zp("silk"));a.use_media_volume?b=!1:(b=hu(),c=b.muted,b.muted=!c,b=b.muted!=c);
this.xb=b;this.rf=ZI;(yx||YI||qu)&&"blazer"!=this.o&&AH(this);this.Ja=dv("adunit"!=this.Ba&&"detailpage"!=this.Ba&&!this.Nb,a.showinfo);this.isMobile=this.experiments.ga("better_mobile_in_player")?$I||YI||gq()||yx||aJ(this):dv("blazer"==this.o,a.is_html5_mobile_device);this.bc=dv(!1,a.playsinline);this.experiments.ga("better_mobile_in_player")?(b=$I&&2.3>=Dw,c=dv(this.isMobile||!1,a.override_native_controls)):(b=this.isMobile&&$I&&2.3>=Dw,c=aJ(this)||!b&&dv("native"==this.o,a.use_native_controls));
this.B="0"!=a.controls?c?"3":"1":"0";this.useTabletControls=this.isMobile;this.color=ev("red",a.color,Aaa);this.Yd="3"==this.B||dv(!1,a.modestbranding)&&"red"==this.color;dv(!1,a.nologo)&&(c=this.H,Baa.test(c),Wp(c));this.P=0==this.H.indexOf(this.baseYtUrl);this.rd=(c=!this.P&&"detailpage"!=this.Ba&&!this.D&&!this.Nb)&&!this.Yd&&"1"==this.B;this.ud="embedded"==this.Ba&&c&&!this.Ja&&!this.rd;this.pf=(this.Zd=b)&&!this.experiments.ga("better_mobile_in_player");this.J=YI?!1:!0;this.Ud=this.M||!1;this.ca=
"detailpage"==this.Ba?"":(this.H||a.post_message_origin||"").substring(0,128);this.C=!a.disableCast&&!this.isMobile&&("detailpage"==this.Ba||"embedded"==this.Ba||"profilepage"==this.Ba);this.bb=(this.L=dv(!1,a.autoplay))||"detailpage"==this.Ba;this.Na=!this.isMobile&&!fq()||dv(!1,a.autoplayoverride);b=("detailpage"==this.Ba||"adunit"==this.Ba)&&"blazer"==this.o;this.Fa=!dv(!0,a.fs);this.Sa=!this.Fa&&(b||Ch());this.sd=dv(!this.Nb,a.rel);this.uf="adunit"!=this.Ba;this.ea="profilepage"==this.Ba;this.Ga=
"blazer"==this.o||"mweb-polymer"==this.o;switch(this.o){case "blogger":b="bl";break;case "books":b="gb";break;case "docs":b="gd";break;case "google-live":b="gl";break;case "play":b="gp";break;case "picasaweb":b="pw";break;default:b="yt"}this.ha=b;this.Db=gv("",a.authuser);this.vf=!!this.Db&&dv(!this.D,a.showwatchlater);this.qb=dv(!1,a.disablekb);this.pageId=gv("",a.pageid);this.Le=jv(Lu,a.vq);this.qf=gv("",a.playerapiid);this.tf=dv(!0,a.canplaylive);this.Td=dv(this.Nb,a.ss);(b=a.video_container_override)?
(c=b.split("x"),2!=c.length?b=null:(b=(0,window.parseInt)(c[0],10),c=(0,window.parseInt)(c[1],10),b=(0,window.isNaN)(b)||(0,window.isNaN)(c)||0>=b*c?null:new ue(b,c))):b=null;this.xd=b;this.mute=this.$a&&dv(!1,a.mute);this.storeUserVolume=!this.mute&&dv("0"!=this.B,a.store_user_volume);this.useMediaVolume=this.experiments.ga("native_controls_assume_media_volume")&&"3"==this.B||dv(!1,a.use_media_volume);this.sf=dv(!1,a.retryneterr)&&this.$a;this.zd="3"==this.B?3:ev(void 0,a.iv_load_policy,Dx);this.na=
dv(!1,a.iv_allow_in_place_switch);this.Ta=gv("",a.cc_lang_pref);this.ia=ev(void 0,a.cc_load_policy,Dx);this.la=void 0==a.content_v?void 0:a.content_v.toString();this.Vd=void 0==a.framer?void 0:a.framer.toString();this.Y=gv("en_US",a.hl);this.region=gv("US",a.cr);this.hostLanguage=gv("en",a.host_language);this.Xd=dv(!1,a.privembed);this.Qb="";this.Ca=new Uj;this.F=dv(!0,a.deviceHasDisplay);this.Wa=fv(this.Wa,a.ismb);bJ(this,a);this.O=a;this.K=new zI;this.S=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&
this.A.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.ga("disable_innertube_config_reporting")||zi(Error("MISSING_INNERTUBE_CONFIG,api_key="+b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.A.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));this.Wd={apiaryHost:gv("",b.apiary_host),pO:gv("",b.apiary_host_firstparty),gapiHintOverride:dv(!1,b.gapi_hint_override),
gapiHintParams:gv("",b.gapi_hint_params),innertubeApiKey:gv("",b.innertube_api_key),innertubeApiVersion:gv("",b.innertube_api_version),oz:this.A.c,innertubeContextClientVersion:gv("",b.innertube_context_client_version),qz:this.hostLanguage,pz:this.region};this.qd=void 0!=window.WebKitPlaybackTargetAvailabilityEvent&&dv(!1,a.airplay_button);this.G=new Cw(this.experiments,this.F,"web"==this.A.c.toLowerCase().substr(0,3)||bq()||cq(),this.experiments.ga("html5_firefox_always_vp9")&&Ww&&ru(43));this.enableSafetyMode=
dv(!1,a.enable_safety_mode);this.ab="detailpage"==this.Ba&&"blazer"!=this.o&&"mweb-polymer"!=this.o},dJ=function(a,b){a.kb=b.get("d",a.kb);
a.Ka=b.get("f",a.Ka)},bJ=function(a,b){a.adFormat=void 0;
var c;(c=b.adformat)||(c=(c=b.attrib)&&Yb(eJ,c)&&Yb(fJ,c)?fJ[c]+"_"+eJ[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length){var e=d[3],f=a.experiments.ga("disable_monetization_on_indisplay_playbacks"),d=!(1==d[1]&&8==e)&&(6==e&&!f||7==e||8==e||10==e);if(a.M||a.$a||d)a.adFormat=c,a.O.adformat=b.adformat,d||(a.Ba="adunit")}}if(c=b.video_id&&b.video_id!=a.Qb)a.Qb=b.video_id;(b.adpings||c)&&b.adpings&&hj(b.adpings);a.wb?d="s.youtubeeducation.com":a.Pb?(d=b.videostats_playback_base_url&&
b.videostats_playback_base_url.split("/")[2]||"s.youtube.com",a.experiments.O&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.yd=d;a.wd="//"+a.yd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.Bd=d,a.O.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.O.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var k in gJ)c=gJ[k],d=b[c],void 0!=d&&(a.A[c]=d);!a.xa&&b.cl&&(a.xa=+b.cl);a.userAge=fv(a.userAge,b.user_age);a.userDisplayImage=gv(a.userDisplayImage,b.user_display_image);Ax.test(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=gv(a.userDisplayName,b.user_display_name);a.userGender=gv(a.userGender,b.user_gender);a.Z=gv(a.Z,b.eventid);a.Z&&(bw=a.Z);a.csiPageType=gv(a.csiPageType,b.csi_page_type);a.ua=gv(a.ua,b.csi_service_name);a.Ga=dv(a.Ga,b.enablecsi);b.enabled_engage_types&&(a.Ca=new Uj(b.enabled_engage_types.split(",")));a.na=dv(a.na,b.iv_allow_in_place_switch)},hJ=function(a,b,c){b={video_id:b,
html5:1,page_subscribe:c?1:0};a.Db&&(b.authuser=a.Db);a.pageId&&(b.pageid=a.pageId);return gf(a.baseYtUrl+"get_video_metadata",b)},iJ=function(a){var b=Ye(a.baseYtUrl),c=Ze(a.baseYtUrl);
c&&(b+=":"+c);return"www.youtube-nocookie.com"==b||a.wb?"www.youtube.com":b},jJ=function(a){return"gaming"==a.o?"gaming.youtube.com":iJ(a)},kJ=function(a,b,c){return a.fa+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")},lJ=function(a){if(a.Ce)a:{a=a.Ce;
var b={};if(a.o){if(a.o.getVideoPlaybackQuality){a=a.o.getVideoPlaybackQuality();break a}a.o.webkitDecodedFrameCount&&(b.totalVideoFrames=a.o.webkitDecodedFrameCount,b.droppedVideoFrames=a.o.webkitDroppedFrameCount)}a=b}else a={};return a},Qy=function(a){return"leanback"==a.Ba||a.Nb||!a.sd&&!a.ea?!1:!0},Cy=function(a){return"detailpage"==a.Ba&&"gaming"!=a.o},aJ=function(a){return YI&&!a.bc||fq()||a.experiments.ga("better_mobile_in_player")&&(Zp("nintendo 3ds")||$I&&3>Dw||gq()&&!wc("10"))?!0:!1},AH=
function(a){return eq()||"TV"==a.A.cplatform},mJ=function(a){return"CHROMECAST/ANCHOVY"==a.A.cmodel},nJ=function(a,b,c,d){this.G=c;
this.C=DF(a).A;this.K=10;this.D=!0;this.S=this.P=this.Z=this.B=this.A=null;this.Y=b;this.o=null;this.$=a;this.da=d;this.F=new we(0,0,0,0);this.L=!1;this.J=!0},Daa=function(a){a.A=window.document.createElement("canvas");
if(!a.A)return 1;a.G.appendChild(a.A);try{a.B=a.A.getContext("webgl")||a.A.getContext("experimental-webgl")}catch(d){return 2}if(null==a.B)return 3;var b=Caa(a);if(0!=b)return b;var b=a.B,c=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,c);b.bufferData(b.ARRAY_BUFFER,new window.Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,0]),b.STATIC_DRAW);a.P=c;b=a.B;c=b.createTexture();b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,c);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,
b.TEXTURE_MAG_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);a.Z=c;b=a.B;b.clearColor(0,0,0,1);b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);b.bindBuffer(b.ARRAY_BUFFER,a.P);b.vertexAttribPointer(a.O,3,b.FLOAT,!1,0,0);a.M();a.C.crossOrigin="use-credentials";return 0},Caa=function(a){var b=a.B,c=b.createShader(b.VERTEX_SHADER);
b.shaderSource(c,a.o.jl());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.o.Zk());b.compileShader(d);if(!b.getShaderParameter(d,b.COMPILE_STATUS))return 5;var e=b.createProgram();b.attachShader(e,c);if(1!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 6;b.attachShader(e,d);if(2!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 7;b.linkProgram(e);if(0==b.getProgramParameter(e,b.LINK_STATUS))return 8;b.validateProgram(e);
b.useProgram(e);if(0==b.getProgramParameter(e,b.VALIDATE_STATUS))return 9;a.O=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.O);a.S=e;a.o.ld(b,a.S,a.G);return 0},oJ=function(a){a.A&&(dh(a.A),a.A=null);
a.B=null;a.D=!1;a.o&&a.o.destroy(a.da);a.o=null;a.C.removeAttribute("crossorigin");a.C.style.display="";a.K=10},pJ=function(a){vq.call(this,a);
this.ea=!0;this.va="webgl";this.C=new Dr(this);I(this,this.C);this.D=new R(["div","webgl"]);this.D.o(DF(a).D);this.$=a;this.A=null;this.B=!1},Eaa=function(a){a=a.C;
this.B=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.heading=a.ypc_offer_headline;this.C=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.o=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;Ax.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.A=a.ypc_item_url;this.videoId=a.ypc_vid},qJ=function(){Oq.call(this,["div",
["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["button",["ytp-drawer-close-button","ytp-button"]],["button",["ytp-drawer-open-button","ytp-button"]]]);var a=this.sa["ytp-drawer-close-button"];Kf(a,Qf());var b=this.sa["ytp-drawer-open-button"];this.T(a,"click",this.D);this.T(b,"click",this.show);this.A=new Wd(qa(be,this.element,"ytp-drawer-closed"),0);I(this,this.A);this.Jb(null);this.ka()},rJ=function(a,b,c){Lj.call(this);
this.C=0==c;this.A=new qJ;this.A.subscribe("close-clicked",this.F,this);I(this,this.A);this.D=window.document.createElement("div");L(this.D,"html5-ypc-endscreen");this.B=new R(["div","html5-ypc-module",["div","html5-ypc-action-heading","{{heading}}"],["div","html5-ypc-thumbnail","{{thumbnail_element}}"],["div","html5-ypc-title","{{title}}"],["div","html5-ypc-description","{{description}}"],["button",["html5-ypc-purchase","ytp-button"],"{{button_label}}"]]);I(this,this.B);this.H=this.B.sa["html5-ypc-purchase"];
this.B.T(this.H,"click",this.G,this);c=b.title;b.A&&(c=["a",{href:b.A,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.B.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.B});this.o(a)},sJ=function(a){a.C||(a.D.appendChild(a.B.element),a.A.Jb(null),Lq(a.D,"block"))},Faa=function(a){a.C||a.A.show()},tJ=function(a){vq.call(this,a);
this.logEvent=this.va="ypc";this.B=this.D=this.A=null;this.H=window.NaN;this.C=null},Gaa=function(a){return Wx(a.getVideoData(),"ypc_module")?new tJ(a):null},Haa=function(a,b,c){var d=1E4;
c.C.hasOwnProperty("ypc_overlay_timeout")&&(d=(0,window.parseInt)(c.C.ypc_overlay_timeout,10));a.B=new rJ(a.C.element,a.A,d);a.B.subscribe("ypcContentRequest",a.PA,a);a.B.subscribe("ypcModuleCloseClicked",a.GB,a);Qy(b)&&(b=new rq(0x8000000000000,0x8000000000000,{priority:2}),a.ib([b]));Faa(a.B);xi(a.H);a.H=vi(y(function(){if(this.B){var a=this.B;a.C||a.A.ka()}},a),d)},uJ=function(){return cj("yt-player-quality")||"auto"},wJ=function(a,b,c){w(a)&&(a={mediaContentUrl:a,
startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return vJ(a)},vJ=function(a,b,c){if(ia(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");
c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}},xJ=function(a){this.A=window.Float32Array?new window.Float32Array(a):Array(a);
this.o=a-1},yJ=function(a,b){a.o=(a.o+1)%a.A.length;
a.A[a.o]=b},Iaa=function(){this.D=new xJ(50);
this.A=null;this.C=this.B=0;this.o=[]},Jaa=function(a,b){0!=a.o.length&&(b.D=a.o.length,b.H=oe(a.o,function(a,b){return a+b},0),b.G=cb(a.o),b.K=Math.min.apply(Math,a.o),b.J=Math.max.apply(Math,a.o),a.o=[])},Kaa=function(a,b){if(a.A&&!(b>=a.B&&b<a.C)){var c=a.A.If(b);
a.B=a.A.Ge(c);a.C=a.B+a.A.Fe(c);var d=K()/1E3,c=os(a.A,c),d=d-(c?c.A:window.NaN);yJ(a.D,d);a.o.push(d)}},Laa=function(a,b){this.o=a;
this.A=b;this.B=1},BJ=function(a,b,c,d){d/=a.B;
var e=zJ(a.o)+1/Gy(a.o),f;f=Math.max(.9*(d-3),AJ(a.o)+8192*e);c=f/e*a.A.Ja/(b+c);c=Math.min(c,d);c=Math.max(a.A.Ga,Math.min(a.A.Fa,c));return Math.min(a.A.F,Math.max(65536,Math.ceil(c*b)))},CJ=function(a){var b=Gy(a.o);
a=1E-9+AJ(a.o)+1048576*zJ(a.o);return b*Math.min(1,1048576/(b*a))},DJ=function(a){return CJ(a)/a.B},EJ=function(a,b,c){this.audio=a;
this.video=b;this.reason=c},Maa=function(a,b,c,d){this.S=a;
this.H=b;this.F=c;this.J=d;this.B=this.L=this.o=null;this.D="i";this.M=-1;this.G=this.C=null;this.A=[];this.P=this.O=0;this.Y=null;this.K=!1},Naa=function(a,b,c){"m"==c&&a.o.isLocked()&&!b.isLocked()&&(c="a");
a.K=a.K||!1;if("m"==c&&b.isLocked())return a.D=c,FJ(a,b),GJ(a),a.B=HJ(a),new EJ(IJ(a),a.B,c);var d=a.o.equals(b);if("m"==a.D&&a.o.isLocked()&&d)return null;"r"!=c||d||(a.M=-1);FJ(a,b);b=HJ(a);if("r"==c&&b==a.B){if(d)return null;a.B=b;return new EJ(IJ(a),b,c)}a.D=c;JJ(a);return null},KJ=function(a){return!!a.P&&9E4>=Qt()-a.P},IJ=function(a){LJ(a);
return a.C},HJ=function(a){LJ(a);
return a.G},JJ=function(a){a.B&&a.G&&MJ(a,a.B.info)<MJ(a,a.G.info)&&(a.K=a.K||a.G.info.video.width>1.6*a.B.info.video.width||"r"==a.D)},NJ=function(a){var b=a.D;
a.D="a";a.M=Qt();a.K=!1;return new EJ(a.L,a.B,b)},LJ=function(a){if(!(!a.o.isLocked()&&-1<a.M&&8E3>Qt()-a.M)){a.P&&!KJ(a)&&(a.P=0,FJ(a,a.o));
GJ(a);var b=DJ(a.S);if(a.o.isLocked())a.G=a.F.o[a.A[a.A.length-1].id];else{for(var c=Math.min(a.O,a.A.length-1),d=b/a.H.C-MJ(a,a.C.info);0<c&&!(MJ(a,a.A[c])<=d);c--);for(b=b/a.H.o-MJ(a,a.C.info);c<a.A.length-1&&!(MJ(a,a.A[c+1])>=b);c++);a.O=c;a.G=a.F.o[a.A[c].id];JJ(a)}}},FJ=function(a,b){a.o=b;
var c=a.J.videoInfos;if(!a.o.isLocked()&&(c=ae(c,function(a){return MJ(this,a)>this.H.H?!1:!this.F.o[a.id].D},a),KJ(a))){var c=ae(c,function(a){return a.id!=this.Y.id},a),d=ae(c,function(a){a=Or(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.J.videoInfos);d=ae(c,b.C,b);d.length||(d=[c[0]]);d.sort(y(function(a,b){return MJ(this,a)-MJ(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(ob(d,c),c--):MJ(a,e)*a.H.o>MJ(a,f)&&(ob(d,c-1),c--)}a.A=d;vG(a.H,d[d.length-1].video.BD)},Oaa=function(a,b){if(b)a.C=a.F.o[b];
else{var c=eb(a.J.o,function(a){return!!a.Hb&&a.Hb.isDefault}),c=c||a.J.o[0];
a.C=a.F.o[c.id]}GJ(a)},GJ=function(a){if(!a.C.info.Hb&&(a.C=a.F.o[a.J.o[0].id],1<a.J.o.length)){var b=!1;
if(a.o.isLocked())b=240>a.o.o;else{for(b=0;b+1<a.A.length&&"tiny"==a.A[b].video.quality;)b++;var c=DJ(a.S)/a.H.o,b=MJ(a,a.C.info)+MJ(a,a.A[b])>c}b&&(a.C=a.F.o[a.J.o[1].id])}},Paa=function(a){var b=a.H.C,c=DJ(a.S)/b-MJ(a,a.C.info),b=fb(a.A,function(a){return MJ(this,a)<c},a);
0>b&&(b=0);a.O=b;a.G=a.F.o[a.A[b].id]},MJ=function(a,b){return a.H.Ka&&b.C?b.C:b.o},Qaa=function(){this.o=this.A=0;
this.B=[]},OJ=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]},PJ=function(){this.o=this.A=!1},QJ=function(a,b){this.P=a;
this.B=b;this.D=[];this.o=[];this.C=this.A=null;this.F=0;this.S=b.info.o;this.L=this.M=!1;this.J=new PJ;this.H=null;this.G=0;this.K=b.Qp()},SJ=function(a,b){a.D.push(b);
a.A=cb(b.info.o);a.F+=RJ(b)},WJ=function(a){for(var b;a.D.length&&5==a.D[0].state;)b=a.D.shift(),!b.L&&b.o&&(a.F=TJ(b,a.F)),UJ(b)&&(b=VJ(b),F(b,a.O,a));
a.D.length&&UJ(a.D[0])&&!Bs(a.D[0].info.o[0])&&(b=a.D[0],!b.L&&b.o&&(a.F=TJ(b,a.F)),b=VJ(b),F(b,a.O,a))},XJ=function(a){return!(!a.o.length||1!=a.o[0].info.o.info.A||0!=a.o[0].info.B)},YJ=function(a){var b=Bt(a.o[0]);
return b.getInt32(0)>b.byteLength&&1==a.o.length},$J=function(a,b){YJ(a);
var c=a.o[0],d=ZJ(a);if(!d)return null;c=b||c.info.o.index.Yk(c.info.C);return(d=ct(d,c))?d:null},bK=function(a){var b=a.o[0],c=ZJ(a);
if(c&&(c=lt(c)))if(c>Bt(b).byteLength){var d=a.o[1];aK(a,b.range);aK(a,is(d.range.start,c-b.range.length))}else aK(a,is(b.range.start,c))},ZJ=function(a){var b=a.o[0],c=Bt(b),d=lt(c);
if(!d||d>c.byteLength){d=a.o[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.o,b.range.start,b.range.length));a.set(new window.Uint8Array(d.o,d.range.start,d.range.length),b.range.length);d=lt(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c},Raa=function(a,b){if(a.M)return a.o[0].range;
var c=!!a.B.info.audio,d=a.B.ii();if(a.o[0].info.D>=b)return null;var e;for(e=1;e<a.o.length;e++){var f=a.o[e].o!=a.o[e-1].o;if(a.o[e].info.D>b||f||a.P.ca)break}e--;var f=a.o[e].range.end,k=a.o[e].info.G-b;if(d&&c&&0<=a.P.Y&&k>a.P.Y){c=Math.floor((b-a.o[e].info.D)/a.o[e].info.J*a.o[e].info.A);if(0==c)return null;f=a.o[e].range.start+c-1}return new gs(a.o[0].C?0:a.o[0].range.start,f)},aK=function(a,b){for(var c;a.o.length;){if(a.o[0].range.end>b.end){var d;
c=a.o[0];var e=b.end-a.o[0].range.start+1,e=Math.min(e,c.info.A);d=new zs(c.info.type,c.info.o,c.info.range,c.info.C,c.info.startTime,c.info.duration,c.info.B,e,!1);var f=is(c.range.start,e);d=new At(d,c.o,f,c.A,c.C);e=new zs(c.info.type,c.info.o,c.info.range,c.info.C,c.info.startTime,c.info.duration,c.info.B+e,c.info.A-e,c.info.H);f=new gs(f.end+1,c.range.end);c=new At(e,c.o,f,c.A,!1);d=[d,c];c=d[0];a.o[0]=d[1]}else c=a.o.shift();d=a;f=c.info;d.C=f;d.M&&d.C.F&&(d.M=!1);d.S=Math.max(d.S,f.o.info.o);
if(c.range.end==b.end)break}a.o.length&&c.o==a.o[0].o||(a.F-=c.A.length)},eK=function(a,b){var c=cK(a,b);
if(0<=c)return c;a.A=a.B.Ug(b).o[0];dK(a)&&(a.C=null);a.H=null;a.G=0;return a.A.startTime},gK=function(a,b){fK(a);
if(a.B.info.video&&a.C&&!a.C.F&&b){var c=db(a.o,function(a){return a.info.F});
a.o=ub(a.o,0,c+1);a.M=!0}else a.o=[];if(a.o.length)for(a.F=a.o[0].A.length,c=1;c<a.o.length;c++)a.o[c].o!=a.o[c-1].o&&(a.F+=a.o[c].A.length);else a.F=0},hK=function(a){a.J.A||a.J.start();
gK(a,!1);dK(a)&&(a.C=null)},Saa=function(a){return zh(a.o,function(a){return a.info.F})},dK=function(a){return!!a.C&&a.C.H},iK=function(a){var b=[];
a.C&&b.push(a.C);F(a.o,function(a){b.push(a.info)});
F(a.D,function(a){F(a.info.o,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.A&&!As(a.A,cb(b))&&b.push(a.A);return b},jK=function(a){if(!a.A||!a.A.A)return!1;
a=iK(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].D-a[b-1].G)))return!1;return!0},cK=function(a,b){if(jK(a)){var c;
a:{c=iK(a);for(var d=0;d<c.length;d++)if(c[d].D<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return window.NaN},kK=function(a){return zh(a.D,function(a){return 3<=a.state})},lK=function(a){return!(!a.A||!a.B.kd()||a.A.o==a.B)},mK=function(a){return lK(a)&&a.A.o.info.o<a.B.info.o},fK=function(a){F(a.D,a.Y,a);
a.D=[];a.A=null},nK=function(a){return!!a.A&&a.A.C<a.B.index.Gf()},oK=function(a){a.A&&F(a.o,function(a){3==a.info.type&&a.info.C>this.A.C&&(this.A=a.info)},a)},Taa=function(a,b){this.B=a;
this.F=this.D=!1;this.length=b;this.A=0;this.o=[];if(1==this.B.length&&!this.B[0].range){var c=this.B,d;d=this.B[0];var e=is(0,this.length);d=new zs(d.type,d.o,e,d.C,d.startTime,d.duration,d.B,e.length,d.H);c[0]=d}this.C=null},Uaa=function(a){var b=a.length-a.A;
F(a.o,function(a){b+=a.range.length});
return b},tK=function(a,b,c,d){this.status=0;
this.J=this.A=null;this.K=d;this.F=c;this.B=[];this.G=null;this.D=this.o=0;Vaa++;this.L=window.NaN;this.C=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(ui(y(this.DD,this)),ui(y(this.ak,this)));K();this.H=!1;b()},zK=function(a){a.B.push(a.G.subarray(0,a.o));
a.o=0;a.G=a.H?null:new window.Uint8Array(yK(a))},AK=function(a){a.C.read().then(ui(y(a.zA,a)),ui(y(a.ak,a)));
var b=K();a.L=b},yK=function(a){a=a.Eg();
return Math.max(16384,.125*a)},BK=function(a,b,c,d){this.status=0;
this.A=null;this.B=this.C=!1;this.o=new window.XMLHttpRequest;this.o.open("GET",a);this.o.responseType="arraybuffer";this.o.withCredentials=!0;this.D=d;this.F=c;a=ui(y(this.KF,this));this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();b();this.o.addEventListener("progress",ui(y(this.LF,this)),!1)},CK=function(a,b,c){this.C=a;
this.info=b;this.timing=c;this.state=1;this.A=null;this.M=this.G=this.K=0;this.F=window.NaN;this.H=this.B=this.P=null;this.D=0;this.o=null;this.L=!1;this.J=null;this.O=window.NaN},DK=function(a){var b;
b=a.timing;b={rt:((K()-b.A)/1E3).toFixed(2),lb:b.o,pt:(b.M/1E3).toFixed(2),pb:b.K};b.shost=a.B?$r(a.B.o):"";b.rn=a.K.toString();a.D&&(b.rc=a.D.toString());410!=a.D&&500!=a.D&&503!=a.D||(b.isPotentialFormatUnavaliable="true");return b},EK=function(a){a.isDisposed();
if(2>a.G)a=!0;else{var b=a.info.B;a=!(a.K>b.B&&1<=b.A)}return a},FK=function(a,b){a.state=b;
if(4<=a.state){var c=a.timing;c.C&&(c.C=!1)}a.P&&a.P(a)},GK=function(a){return Se(a.info.o,function(a){return 3==a.type})},HK=function(a){if(a.A){var b=a.A;
a.A=null;b.Vs()}a=a.timing;a.C&&(a.C=!1)},JK=function(a){var b=a.A.Fg("content-type"),c=a.A.Eg();
return(!IK(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)},VJ=function(a){a=a.o;
var b=a.o;a.o=[];a.C=cb(b).info;return b},UJ=function(a){return 2<=a.state&&!!a.o&&!!a.o.o.length},KK=function(a,b){IK(a)&&!a.A.Eg()&&(a.C.P=!1,a.C.ea=!1);
if(b||IK(a)&&!JK(a)){if(!a.o){var c=b?a.A.Uk():a.A.Eg();a.o=new Taa(a.info.o,c)}for(;a.A.Tp();)for(var c=a.o,d=a.A.$r(),e=0,f=0,k=0;k<c.B.length;k++){var m=c.B[k];if(e+m.A<=c.A)e+=m.A;else{var l;var n=c,t=m;1==t.type?(n.D=!0,l=!1):3==t.type||4==t.type?(t=n.D&&!n.F,n.F=!0,l=t):l=!1;var n=c,t=m,u=c.A-e,x=f,A=d,D=Math.min(t.A-u,A.length-x),H=void 0,H=new zs(t.type,t.o,t.range,t.C,t.startTime,t.duration,t.B+u,D,t.B+u+D==t.range.length&&t.H),z=u=void 0,u=A.buffer,x=A.byteOffset+x,A=is(A.byteOffset,A.length);
1==t.type?(u.slice?u=u.slice(x,D):(t=new window.Uint8Array(u,x,D),u=(new window.Uint8Array(t)).buffer),z=is(0,D)):z=is(x,D);n.o.push(new At(H,u,z,A,l));n=D;c.A+=n;f+=n;e+=m.A;if(f==d.length)break}}}},TJ=function(a,b){a.L=!0;
return b-Is(a.info)+RJ(a)},RJ=function(a){return a.o&&a.L?Uaa(a.o):Is(a.info)},IK=function(a){return!!(a.C.P||a.C.ea&&a.A&&a.A instanceof tK)},Waa=function(a,b,c){this.B=a;
this.K=b;this.P=c;this.o=this.F=this.A=window.NaN;this.J=this.L=this.C=!1;this.D=0;this.G=this.M=window.NaN},NK=function(a,b,c){if(a.C){var d=(b-a.F)/1E3,e=c-a.o;
0<e&&(.2<d||1024>e?(a.D+=d,.2<d&&LK(a.B,.05,e)):LK(a.B,d,e),a.J=!0)}else 8192<=c&&(MK(a.B,(b-a.A)/1E3),a.C=!0);a.F=b;a.o=c},OK=function(a){var b=a.K-a.o,b=1E3*(b*a.H.tailDelay+b/a.H.byterate),c=K(),b=8192<=a.o?b+c:b+Math.max(c,a.A+1E3*a.H.delay);
a.G=b},PK=function(a,b,c,d){Lj.call(this);
this.H=a;this.C=b;this.D=c;this.B=this.A=null;this.L=new Laa(a,b);this.o=null;this.G=new Maa(this.L,b,this.D,d);this.F=this.ia=this.ea=this.ha=window.NaN;this.M=!1;this.J=window.NaN;this.xa=0;this.K=!1;this.na={};this.O="";this.Z=this.ca=0;this.la=b.Ta?new Qaa:null;this.fa=this.da=window.NaN},SK=function(a){0==a.F&&(a.A.B.B||QK(a,a.A,!0),a.B.B.B||QK(a,a.B,!0));
a.seek(a.F);RK(a,"gv")},UK=function(a){a.o&&a.o.o&&a.o.o.removeEventListener&&(a.o.o.removeEventListener("updateend",y(a.Gc,a),!1),a.o.A.removeEventListener("updateend",y(a.Gc,a),!1),a.o.o.removeEventListener("error",y(a.ej,a,!0),!1),a.o.A.removeEventListener("error",y(a.ej,a,!1),!1));
a.o=null;a.K=!0;TK(a)},VK=function(a){a.o&&ww(a.o)&&UK(a)},WK=function(a,b,c){if(!b.J.A||!c.remove)return!1;
if(c.updating)return!0;if(!b.J.o&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.J.o=!0;b.J.reset();a.U("seekrequired");return!1},YK=function(a,b,c){if(a.K)return!1;
if(a.D.A){if(0<b.D.length)return!1;if(b.K)return!0}if(!b.A){if(!b.B.kd())return b.B.B||QK(a,b,!1),!1;eK(b,a.F)}var d=b.D.length+c.D.length;(kK(b)||kK(c)||a.D.isLive)&&--d;if(2<=d+1)return!1;d=b.A;4==d.type&&d.o.kd()&&(b.A=cb(d.o.qj(d)),d=b.A);if(!d.H&&!d.o.Jh(d)||d.o.info.audio&&4==d.type)a=!1;else if(mK(b)&&!a.C.J)a=!0;else{if(!(c=d.H||b.F+c.F>a.C.L||!!(c.A&&!c.A.H&&c.A.G<d.G)&&(!a.D.A||c.A.G&&d.G))&&(c=3==d.type)){d=d.G;b=XK(a,b,!0);a.G.o.isLocked()||(c=30+2*((Qt()-a.xa)/1E3),b=Math.min(b,c));if(a.C.ha){var e=
Qt();(0,window.isNaN)(a.da)||(0,window.isNaN)(a.fa)||(c=a.fa+(e-a.da)/1E3,b=Math.min(b,c));a.da=e;a.fa=b}c=d>a.F+b}a=c?!1:!0}return a},ZK=function(a,b,c){if(!a.o||vw(a.o)||zw(a.o)){var d=a.F,e=a.L;
c=BJ(e,b.B.info.o,c.B.info.o,0);e=AJ(e.o)+c*zJ(e.o)+c/Gy(e.o);a:{d+=Math.max(e,e+5-c/b.B.info.o);a=a.G.K;if(b.D.length){if(b.D[0].info.o[0].startTime<=d)break a;fK(b)}for(e=b.o.length-1;0<=e;e--)c=b.o[e],c.info.startTime>d&&(b.o.pop(),b.o.length&&b.o[e-1].o==c.o||(b.F-=c.A.length));b.D.length?b.A=cb(b.D[b.D.length-1].info.o):b.o.length?b.A=cb(b.o).info:b.A=b.C;a&&b.A&&d<b.A.startTime&&(b.H=null,b.G=0,b.A=b.B.Ug(d,!0).o[0])}}},aL=function(a,b,c){YK(a,b,c);
var d=b.A;if(b.K)d=b.B.Ug(window.Infinity);else if(b.A.o.kd()){!mK(b)||a.C.J||a.D.A||(ZK(a,b,c),b.A||eK(b,a.F));var d=b.A,e=d.G-a.F,f=!d.range||0==d.A&&0==d.B?0:d.range.length-(d.B+d.A);lK(b)&&(mK(b)||25>=e)&&0==f&&(a.D.A?d.o=b.B:(f=d.startTime+PK.o,d.A&&(f+=d.duration),eK(b,f),d=b.A));d.o.ii()?(c=BJ(a.L,d.o.info.o,c.B.info.o,e),e=lK(b),c=Pt(d.o,d,c),c.range&&1<c.o.length&&(e?c=Pt(d.o,d,c.o[0].A):(e=c.o[c.o.length-1],f=e.A/c.range.length,!e.F&&.4>f&&(c=Pt(d.o,d,c.range.length-e.A)))),d=c):d=Ls(d.o,
d)}else d.o.ii()?(c=BJ(a.L,b.B.info.o,c.B.info.o,0),d=Pt(d.o,d,c)):d=Ls(d.o,d);SJ(b,$K(a,d))},$K=function(a,b){if(3==b.o[b.o.length-1].type){var c;
a:{c=a.G;var d=b.o[0].o;if(d.info.video){if(c.B!=d){c.B=d;c=NJ(c);break a}}else c.L=d;c=null}c&&a.U("videoformatchange",c)}c=Is(b);var d=a.H,e=a.L,f=Math.min(e.A.Na,AJ(e.o)),e=CJ(e);c=new CK(a.C,b,new Waa(d,c,c-f*e));d=y(a.qC,a);c.isDisposed();c.P=d;c.start(Math.max(0,b.o[0].D-a.F));return c},Xaa=function(a,b){var c=b.o.o;
return Se(c,function(a){return Ct(a)},a)&&!(c[0]&&c[0].info.o.Tl())},Yaa=function(a,b){F(b.o.o,function(a){Bs(a.info)&&a.info.o.fp(a);
if(this.D.B&&3==a.info.type&&1==a.info.o.info.A){var b;b=Bt(a);if(b=Xs(b,0,1701671783)){kt(b);kt(b);jt(b);jt(b);jt(b);jt(b);var e=b.data.buffer.slice(b.offset+b.o,b.size+b.offset);b.o=b.size;b=String.fromCharCode.apply(String,new window.Uint8Array(e));b=Ws(b)}else b=null;a.B=b;a.B&&(a.D="T"==a.B["Overlayed-With-Slate"],this.D.A&&(b=Kt(a,"Sequence-Number"),null!=b&&(a.info.C=b)))}if(this.C.Sa&&this.D.B&&1==a.info.o.info.A)if(this.C.Ca)for(a=Bt(a),b=Xs(a,0,1701671783);b;)a.setUint32(b.offset+4,1936419184),
b=Xs(a,b.offset+b.size,1701671783);else{b=a.range?new window.Uint8Array(a.o,a.range.start,a.range.length):new window.Uint8Array(a.o);for(e=Xs(new window.DataView(b.buffer),0,1701671783);e;){var f=new window.Uint8Array(b.byteLength-e.size);f.set(b.subarray(0,e.offset));f.set(b.subarray(e.offset+e.size),e.offset);b=f;e=Xs(new window.DataView(b.buffer),0,1701671783)}a.o=b.buffer;a.range=is(0,a.o.byteLength);a.A=a.range}},a)},bL=function(a){if((0,window.isNaN)(a.ha)){var b=y(a.Gc,a);
a.ha=vi(b,0)}},cL=function(a){if((0,window.isNaN)(a.ea)){var b=y(function(){this.ea=window.NaN;
this.Gc()},a);
a.ea=vi(b,1E3)}},gL=function(a,b,c,d,e){if(c.updating)return!0;
var f=b.o.length?b.o[0]:null;if(!f)return!1;!b.C||b.C.F||Cs(b.C,f.info)||(b.C=null,vw(a.o)&&c.abort(),c.o=null);var k=a.D.isLive&&Jt(f),m=!a.D.B&&b.P.ca&&XJ(b);if(k||a.D.A)c.o=null;else{if(k=m||!f.C)k=f.info.o.o,c.o==k?k=!1:(dL(a,c,k),c.o=k,a.U("initsegment",c.o),k=c.updating);if(k)return!0}k=XK(a,b,!1);k=a.F+k;null!==d&&0<=d&&(k=Math.min(k,d));d=Raa(b,k);if(!d)return!1;if(m){if(YJ(b))return!1;if(k=$J(b))return eL(a,c,new window.Uint8Array(k),f,b)?(bK(b),!0):!1}k=new window.Uint8Array(f.o,d.start,
d.length);if(a.la&&f.info.o.info.video&&1==f.info.o.info.A){var l=a.la,n=k;0==f.info.B&&(l.A=0,l.o=0,l.B=[]);if(!((0,window.isNaN)(l.A)||8>n.length)){for(var t=new window.DataView(n.buffer,n.byteOffset),u=!1;!u;)if(l.A==l.o)a:{var u=l,x=t,A=n.length;if(u.A+7>=A){for(var D=u.A;D<A;D++)u.B.push(x.getUint8(D));u=!0}else{var H=D=void 0;if(0<u.B.length){for(D=0;8>u.B.length;D++)u.B.push(x.getUint8(D));D=OJ(u.B,0);H=OJ(u.B,4);u.B=[]}else D=x.getUint32(u.o),H=x.getUint32(u.o+4);if(1836019558==H||1836019574==
H||1718909296==H||1936286840==H)u.A+=D,u.o=u.A;else if(1835295092==H)u.A+=D,u.o+=8;else{u.A=window.NaN;u=!0;break a}u=u.o>=A}}else a:if(u=l,x=t,A=n.length,u.o+5>=A){for(D=u.o;D<A;D++)u.B.push(x.getUint8(D));u=!0}else{D=void 0;if(0<u.B.length){for(D=0;6>u.B.length;D++)u.B.push(x.getUint8(D));D=OJ(u.B,0);12==D&&6==u.B[4]&&45==u.B[5]&&x.setUint8(u.o+5,63);u.o+=D+4;u.B=[]}for(;u.o<u.A&&u.o+5<A;){D=x.getUint32(u.o);if(0>=D){u.A=window.NaN;u=!0;break a}12==D&&6==x.getUint8(u.o+4)&&45==x.getUint8(u.o+5)&&
x.setUint8(u.o+5,63);u.o+=D+4}u=u.o>=A}(0,window.isNaN)(l.A)||(l.A-=n.length,l.o-=n.length)}}l=!1;if(3==f.info.type&&(1==f.info.o.info.A||2==f.info.o.info.A))if(l=1==f.info.o.info.A&&a.C.ab&&!m&&!b.L&&0==f.info.B&&0<f.info.startTime)Dt(f,0);else if(a.D.B&&0==f.info.B){if(2!=f.info.o.info.A)for(m=new window.DataView(k.buffer),n=0;dt(m,n);)t=et(m,n),n+=t.size;a:if(XJ(b)&&!Jt(b.o[0])&&YJ(b))e=!1;else{n=null===b.H?f.info.startTime:b.H;if(0==Dt(f,n)){var z=Es(f.info);z.smst=1;a.md(!0,"fmt.unparseable",
z)}else if(t=Et(f),b.H=n+t,a.D.A&&f.info.o.info.video)for(z in u=Kt(f,"Ingestion-Walltime-Us"),m=a.D,n=new ms(f.info.C,n,t,u?u/1E6:0,"sq/"+f.info.C),m.o)n.o>m.o[z].index.Gb()&&m.o[z].index.wa.push(n);z=0;f.info.o.info.video&&null!==e&&f.info.duration&&(m=fL(f,b,e),25<=Math.abs(m)&&(z=m/1E3));z&&!Jt(f)&&(m=Et(f)+z,n=fL(f,b,e),t=Es(f.info),t.deltaOffsetMs=n,t.cumOffsetMs=e-n,t.finalDurSecs=m,a.md(!1,"qoe.avsync",t));if(z&&XJ(b)&&!Jt(b.o[0])){b.G+=1E3*(Et(f)-f.info.duration+z);b.H+=z;e=Et(f)+z;b:{z=
0;for(m=new window.DataView(f.o);dt(m,z);){n=et(m,z);if(1936286840==n.type){z=n.data.getUint32(n.offset+16);break b}z=gt(n.type)?z+8:z+n.size}z=window.NaN}if((0,window.isNaN)(z))b:{z=f.info.o.o;m=0;for(n=new window.DataView(f.o);dt(n,m);){t=et(n,m);if(1836476516==t.type){z=ft(t);break b}m=gt(t.type)?m+8:m+t.size}z=z?ht(z):window.NaN}if(e=$J(b,e*z)){if(eL(a,c,new window.Uint8Array(e),f,b)){bK(b);e=!0;break a}e=!1;break a}}else b.G+=1E3*(Et(f)-f.info.duration);e=null}if(null!=e)return e}if(!eL(a,c,
k,f,b))return!1;b.L=!0;l?(Dt(f,f.info.startTime),c.abort(),c.o=null,Fs(f.info)):(aK(b,d),Fs(b.C),Zy(c.buffered));f.C&&(c.o=f.info.o.o,a.U("initsegment",c.o));return!0},eL=function(a,b,c,d,e){b=dL(a,b,c);
if(0!=b){if(2!=b||a.C.ia)d.info.o.info.video?(a=a.C,a.B=Math.floor(.5*a.B),a.M=Math.floor(.5*a.M),a.A=Math.floor(.5*a.A),a.F=Math.floor(.5*a.F)):(a=a.C,a.D=Math.floor(.5*a.D),a.S=Math.floor(.5*a.S),a.A=Math.floor(.5*a.A)),hK(e);return!1}return!0},fL=function(a,b,c){a=1E3*(Et(a)-a.info.duration);
return c-(b.G+a)},dL=function(a,b,c){try{zw(a.o)?b.appendBuffer(c):b.append(c)}catch(d){return(a.C.K||a.C.la)&&11==d.code?(vi(y(a.md,a,a.C.K,"fmt.unplayable",{invalidState:"1",
updating:""+ +b.updating,mrs:a.o.B.readyState}),0),2):22!=d.code&&0!=d.message.indexOf("Not enough storage")?(zi(d),4):1}return ww(a.o)?3:0},XK=function(a,b,c){var d=b.B.info.audio?a.C.D:a.C.B;
!a.C.J&&a.G.o.isLocked()&&(d=Math.max(d,b.B.info.audio?a.C.S:a.C.M));c&&(d+=a.C.L);b=a.G.o.isLocked()?b.A?b.A.o.info.o:b.B.info.o:b.S;d/=b;0<a.C.A&&(d=Math.min(d,a.C.A));a.C.ha&&(c=Gy(a.H),d=Math.min(d,25+a.C.da+Math.max(b-Math.max(1-.4*a.C.fa,0)*c,0)*a.C.La/b));return d},hL=function(a){if(a.D.isLive){if(!a.A.B.index.kf())return window.NaN;
var b=a.A.B.index.Gf(),c=a.A.B.index.Gb(),d=a.A.B.index;return 1>a.C.liveChunkReadahead?d.Ge(c)+d.Fe(c)-.2:d.Ge(Math.max(b,c-a.C.liveChunkReadahead+1))+.2}return Math.floor(Math.min(a.A.B.index.Dg(),a.B.B.index.Dg()))},iL=function(a,b,c,d){if(b.B.kd())if(d){var e=az(d.buffered,c),f=window.NaN,k=b.C;
k&&(f=az(d.buffered,k.o.index.Ge(k.C)));if(e==f&&jK(b))return c;d=cK(b,c);if(0<=d)return d;gK(b,!0);b.B.info.video&&b.C&&!b.C.F&&!Saa(b)&&(d=b.C,b.o.length&&(d=cb(b.o).info),d=b.A||d,d=Pt(d.o,d,d.range.length-(d.A+d.B)),SJ(b,$K(a,d)));if((0,window.isNaN)(e))return eK(b,c);eK(b,e+PK.o)}else eK(b,c);else b.B.B||QK(a,b,!1),0!=c&&fK(b);return c},jL=function(a,b,c){b.B!=c&&(b.B=c,c.B||QK(a,b,!1))},QK=function(a,b,c){var d=c?65536:0;
c&&!(0,window.isNaN)(a.C.O)&&(d=Math.min(a.C.F,Math.floor(Math.max(d,a.C.O*b.B.info.o))));c=b.B.To(d);F(c,function(a){if("f"!=a.o[0].o.info.B){var c=$K(this,a);!Bs(a.o[a.o.length-1])&&SJ(b,c)}},a);
b.B.B=!0},kL=function(a){if(!a.B.A)return"";
a=$r(a.B.A.o.F.o);return a.substr(0,a.indexOf("."))},RK=function(a,b,c){a.na[b]=c?window.performance.timing.navigationStart+c:Qt()},TK=function(a){a.A&&gK(a.A,!1);
a.B&&gK(a.B,!1)},lL=function(a,b,c,d,e){G.call(this);
this.D=a;this.K=b;this.H=c;this.C=d;this.o=e;this.sessionId="";this.A=this.J=this.F=this.G=null;this.B=new Dr(this);I(this,this.B);this.C?(this.B.T(this.C,"message",this.CG),this.B.T(this.C,"keystatuseschange",this.rB)):this.o&&(Er(this.B,this.o,["mskeymessage","webkitkeymessage"],this.Uq),Er(this.B,this.o,["mskeyerror","webkitkeyerror"],this.Tq),Er(this.B,this.o,["mskeyadded","webkitkeyadded"],this.Sq))},mL=function(a,b){G.call(this);
this.A=a;this.o=b;this.F={};this.B=null;this.D=new Dr(this);I(this,this.D);this.C=this.G=null},oL=function(a){if(a.o.A)return a.o.A.createMediaKeys().then(ui(y(function(a){this.G=a;
this.A.setMediaKeys(a)},a)));
ou(a.o)?nL(a):pu(a.o)?(nL(a),a.A.webkitSetMediaKeys(a.C)):Zaa(a);return null},Zaa=function(a){Er(a.D,a.A,["keymessage",
"webkitkeymessage"],a.FG);Er(a.D,a.A,["keyerror","webkitkeyerror"],a.EG);Er(a.D,a.A,["keyadded","webkitkeyadded"],a.DG)},nL=function(a){a.C=new (nu())(a.o.B)},pL=function(a,b){var c=a.F[b.sessionId];
!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.F[b.sessionId]=c);return c},qL=function(){this.keys=[];
this.values=[]},rL=function(a,b){return fb(a.keys,function(a){return Gb(b,a)})},$aa=function(a,b,c){this.url=a;
this.interval=b;this.o=c},aba=function(a,b,c){this.o=a;
this.headers=b;this.message=c},tL=function(a,b,c,d,e){G.call(this);
this.A=a;this.o=d;this.o.subscribe("oauthtoken",this.Xs,this);this.C={session_id:e};a=this.A.D;pu(this.A)&&(a=c.o.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));sL(this,a);this.D=this.F=!1;var f;try{f=b.createSession(c)}catch(k){b="t.g",k instanceof window.DOMException&&(b+=";c."+k.code),this.o.U("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),f=null}if(this.B=f)this.B.setCallbacks(this.OF,
this.NF,this.MF,this),I(this,this.B)},sL=function(a,b){if(bba.test(b)){for(var c in a.C)b=nf(b,c,a.C[c]);
a.H=b}else uL(a,"drm.net","t.u")},uL=function(a,b,c,d){a.isDisposed()||a.o.U("licenseerror",b,c,d);
a.dispose()},vL=function(a,b){this.o=a;
this.contentType=b||null},xL=function(a,b,c,d){Lj.call(this);
c=c.ga("edge_nonprefixed_eme");a.addKey||a.webkitAddKey||nu()||uu(c);this.G=a;this.o=b;this.subscribe("newlicense",this.OB,this);this.subscribe("newsession",this.PB,this);this.subscribe("sessionready",this.yC,this);this.S=ew();this.K=null;this.C=new qL;this.A=[];this.D=wL;this.J=new mL(a,b);I(this,this.J);this.B=null;ou(b)&&(this.B=new mL(a,b),I(this,this.B));this.M=2;this.H=new Dr(this);I(this,this.H);this.L=!1;this.P=null;this.F=!1;a=this.G;this.o.A?this.H.T(a,"encrypted",this.bB):(b=ou(this.o)?
["msneedkey"]:["needkey","webkitneedkey"],Er(this.H,a,b,this.MB));(a=oL(this.J))?a.then(ui(y(this.DB,this)),ui(y(this.jA,this))):this.F=!0;this.B&&oL(this.B);this.O=d},zL=function(a,b,c){a.isDisposed()||ou(a.o)==c||a.L&&"widevine"==a.o.o&&!a.O||(a.L=!0,a.C.get(b.o)||(a.A.push(b),1<a.A.length||a.F&&a.C.set(b.o,yL(a,b))))},yL=function(a,b){a.C.get(b.o);
var c=new tL(a.o,a.J,b,a,a.S);c.Xs(a.K);return c},AL=function(a){this.A={};
this.A.c1a=y(this.D,this);this.A.c3a=y(this.F,this);this.A.c6a=y(this.C,this);(this.o=a)&&this.o.ha?this.B=hj(this.o.ha):this.B=[]},BL=function(a,b,c,d){this.videoData=a;
this.o=b;this.reason=c;this.A=d},cba=function(a,b){this.X=a;
this.o=b},CL=function(a,b){return Mu(Mu(a.X.Le,b.rh),b.wh)},EL=function(a,b){var c=uJ();
return"auto"!=c?Ju("auto",c,!1):DL(a,b)},DL=function(a,b){if(AH(a.X)&&Sw(a.X.G,Nw))return Lu;
var c;c=!!b.A.o;var d;aJ(a.X)&&(d=window.screen&&window.screen.width?new ue(window.screen.width,window.screen.height):null);d||(d=a.X.xd?a.X.xd.clone():a.o.Ma());(YI||FL||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.A.videoInfos;if(d.length){var f=.85;2==d[0].video.projectionType?f*=.5:3==d[0].video.projectionType&&(f*=.25);for(var k=0;k<d.length&&!(e=d[k].video,null===c||e.width*f<c.width&&e.height*f<c.height);k++);e=Ju("auto",e.quality,!1)}else e=Lu;c=e.o;eq()&&(c=Math.max(c,Wr.hd1080));
(Zp("armv7")||Zp("android"))&&!AH(a.X)&&Qr(b.A.videoInfos[0])&&(c=Math.min(c,Wr.large));c=Math.max(c,Wr.medium);e.o!=c&&(e=new Iu(e.A,c,e.B));return e},dba=function(a){this.C=this.o=window.NaN;
this.A=this.B=!1;this.D=!!a},GL=function(a,b){a.o=b;
a.B=!0},mz=function(a,b,c,d){var e=1<d;
e&&(a.A=!0);if(a.B)b!=a.o&&(a.B=!1);else if(0<b&&a.o==b)return c-a.C>(e||!a.A?1500:400);a.o=b;a.C=c;return a.D&&a.A&&0>=d},HL=function(a){if(a.Ul)return 4;
var b=yh("visibilityState",window.document);return b&&"visible"!=b?3:a.Zf?2:a.Vl?1:0},eba=function(){this.A=0;
this.o=this.F=this.B=this.C=window.NaN;this.D=0;this.J=this.K=this.G=this.H=window.NaN},IL=function(){this.endTime=this.startTime=-1;
this.Ak="-";this.playbackRate=1;this.visibilityState=0;this.xk=""},fba=function(a,b,c,d,e,f,k,m,l){this.videoData=a;
this.o=b;this.C=c;this.D=d;this.A=e;this.F=f;this.J=k;this.H=m;this.G=l||function(){};
this.B=null},OB=function(a){return JL(a)()},JL=function(a){a.B||(a.B=qa(function(a){return Math.round(Qt()-a)/1E3},Qt()));
return a.B},QB=function(a){var b=a.C();
a=a.videoData;var c={};a.B&&(c.fmt=a.B.id,a.F&&a.F.id!=a.B.id&&(c.afmt=a.F.id));c.plid=a.playbackId;c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.bi&&(c.infringe=1);a.zg&&(c.splay=1);a.Ha&&(c.live=a.$d?"dvr":"live");a.Pc&&(c.autoplay=1);a.Yd&&(c.sdetail=a.Yd);a.O&&(c.partnerid=a.O);a.osid&&(c.osid=a.osid);ra(b,c);return b},uB=function(a){var b=new IL;
b.Ak=a.C().cc||"-";var c=a.o;b.playbackRate=c.Ce&&c.Ce.o.playbackRate||1;c=HL(a.o);0!=c&&(b.visibilityState=c);a=a.H();a.Hb&&a.Hb.id&&"und"!=a.Hb.id&&(b.xk=a.Hb.id);return b},KL=function(a,b){this.state=a;
this.o=b},XB=function(a,b){return T(a.state,b)&&!T(a.o,b)?1:!T(a.state,b)&&T(a.o,b)?-1:0},LL=function(a,b,c,d,e){Lj.call(this);
this.Ca=new dba(a.experiments.ga("html5_always_underrun_on_empty_buffer"));this.G=c;this.Ja=d;this.F=new UA(y(this.getCurrentTime,this),y(this.XE,this),y(this.getPlayerState,this),e);I(this,this.F);this.ia=window.NaN;this.P=this.H=null;this.X=a;this.xa=new cba(a,this.Ja);this.K=!1;this.L=this.D=null;this.ca=[];this.fa=new PJ;this.O=new PJ;this.kb=this.Fa=!1;this.Ga=window.NaN;this.C=new gz;this.na=[];this.J=b;this.ea=this.la=null;this.M=window.NaN;this.ha=new Dr;I(this,this.ha);this.o=new rx;this.A=
this.da=null;this.S=window.NaN;this.B=null;this.ab=this.bb=!1;this.ua=window.NaN;this.Na=this.Sa=this.Wa=this.ra=!1;this.Ta=window.NaN;this.qb=a.experiments.ga("html5_force_play_on_suspend_event");this.wb=a.experiments.ga("html5_force_play_on_suspend_event_limited");this.Z=null;this.xb=this.X.experiments.ga("html5_playing_event_buffer_underrun")},ML=function(a){kv()?mv(a.ua):xi(a.ua)},NL=function(a){if(a.B){var b=a.B;
if(!b.isDisposed()&&b.C){b.F="paused";var c=TB(b);c.ha=!0;c.send();c=b.A;"PL"==c.A&&(c.A="N");var d=OB(c.o);DB(c,d,"vps",[c.A]);c.nh(d);xi(b.D);b.dispose()}Mb(a.B);a.B=null}},OL=function(a){return a.A?a.A.ma():null},QL=function(a){if(Tx(a.o))return!0;
PL(a,"api.invalidparam");return!1},RL=function(a,b){a.Fa=!!b;
QL(a)&&!a.fa.A&&(a.fa.start(),a.B&&a.B.qg(),a.Eo())},UL=function(a){a.A&&EI(a.A);
RL(a);QL(a)&&!T(a.C,128)&&(a.O.A||(a.O.start(),SL(a,nz(a.C,8)),Vx(a.o)||SL(a,nz(a.C,1))),TL(a))},TL=function(a){a.isDisposed();
if(!a.O.o&&a.fa.o&&!T(a.C,128)&&!a.ca.length&&(a.F.C||a.F.qg(),!VL(a))){if(a.D){var b=a.D;a.kb=!!b.P&&!!b.S}a.O.o=!0;a.o.Ha&&(WL(a,window.Infinity,!0),XL(a,!0),a.X.experiments.ga("disable_live_background_seek_to_head")||3!=HL(a.X)||(a.ab=!0));if(a.B&&(b=a.B,b.o.videoData.enableCardio&&b.o.videoData.enableCardioBeforePlayback&&(b.tj("connected"),$B(b)),b.o.videoData.Ha)){var b=b.A,c=b.o.videoData.o;c&&eu(c)&&GB(b,"live-segment-"+eu(c).toFixed(1));c=$x(b.o.videoData,b.o.o.experiments);GB(b,"live-readahead-"+
c);null!=b.o.videoData.aj&&GB(b,"live-low-latency-extra-buffer-"+b.o.videoData.aj)}a.U("playbackready",a);Rv("pbr",a.G.o)||a.G.A("pbr")}},ZL=function(a,b,c,d){a.o.B=c;
a.o.F=d||c;if(a.B){var e=a.o,f=DL(a.xa,e),e=eb(e.A.videoInfos,y(f.C,f)),e=new BL(a.o,c,b,e?e.id:"");d&&"i"==b&&YL(a,b,d);d=a.B.A;c=OB(d.o);DB(d,c,"vfs",[e.o.id,e.A,d.Z,e.reason]);d.Z=e.o.id;e=d.o.J();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],f=window.devicePixelRatio||1,1<f&&e.push(f),DB(d,c,"view",e));DB(d,c,"vps",[d.A]);d.nh(c)}a.U("internalvideoformatchange",a.o,"m"==b)},YL=function(a,b,c){a.o.F=c;
if(a.B){var d=a.B.A;c=new BL(a.o,c,b,"");var e=OB(d.o);c.o.id!=d.K&&(DB(d,e,"afs",[c.o.id,d.K,c.reason]),d.K=c.o.id)}"i"!=b&&a.U("internalaudioformatchange",a.o,"m"==b)},PL=function(a,b,c,d){var e,f;
Tb(gba,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||Q(e),messageKey:e};SL(a,kz(a.C,128,b));ML(a);$L(a);aM(a)},VL=function(a){return!!a.ca.length||0<QA(a.F.o,-0x8000000000000).length},bM=function(a){a.X.experiments.ga("html5_crossorigin_video")&&a.A&&(a.o.ef||!a.o.A||a.o.A.o?NI(a.A,!1):NI(a.A,!0))},dM=function(a,b){a.A&&cM(a);
a.A=b;hba(a);bM(a)},cM=function(a){a.o&&a.X.experiments.ga("new_ended_replay")&&(a.o.startSeconds=a.getCurrentTime());
a.L=null;a.D&&(bL(a.D),a.D.K=!0);a.A&&(a.B&&a.fa.A&&T(a.C,64)&&!a.o.de&&eM(a),fM(a),Fr(a.ha),JI(a.A),a.A=null)},iM=function(a){if(!T(a.C,128)&&(UL(a),T(a.C,64)&&SL(a,nz(a.C,8)),a.O.o&&a.A))if(a.o.A){a.X.experiments.ga("new_ended_replay")&&T(a.C,2)&&WL(a,0,!0);
if(a.o.Ha){var b=a.getCurrentTime()<Sx(a.o),c=Xx(a.o)&&T(a.C,4);(b||c)&&WL(a,window.Infinity,!0);gM(a)?XL(a,!0):a.K&&WL(a,window.Infinity,!0)}if(a.o.A.o)b=hM(a),a.D.resume();else{$L(a);var b=a.o.hg.A(),c=a.o,d={};c.ca&&(d.ptk=c.ca,d.oid=c.wd,d.ptchn=c.ud,d.pltype=c.xd);ra(b.A,d);c=a.X.A;ra(b.A,{c:c.c,cver:c.cver})}(c=a.A.A)&&c.equals(b)?HI(a.A):iba(a,b)}else PL(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")},jM=function(a){fM(a);
$L(a);hM(a)},lM=function(a){if(a.o.A){var b=kM(a)||Lu;
a=ae(a.o.A.videoInfos,y(b.C,b));for(var b=[],c={},d=0;d<a.length;d++){var e=a[d].video;c[e.quality]||(b.push(e),c[e.quality]=!0)}a=b}else a=[];return a},mM=function(a){return Mu(Mu(CL(a.xa,a.o),EL(a.xa,a.o)),kM(a))},kM=function(a){return a.o.Sk?Lu:a.H?a.H.D:Hx(a.o)&&a.o.A.o&&St(a.o.o)?wL:Lu},nM=function(a,b,c){if(!a.isDisposed()&&!T(a.C,128)&&(c&&(a.o.wh=c),Hx(a.o))){"m"==b&&c&&Ku(c)&&(b="a");
c=mM(a);if(a.o.A.o){if(a.D&&"i"!=b){var d=a.D;d.isDisposed()||((c=Naa(d.G,c,b))&&d.U("videoformatchange",c),jL(d,d.B,HJ(d.G)),d.G.o.isLocked()&&"m"==b&&(hK(d.B),hK(d.A)),mK(d.B)&&ZK(d,d.B,d.A),bL(d))}}else{d=a.o;a:{var e=a.o.P;if(c.o){for(var f=0;f<e.length;f++){var k=e[f].xc,m=Wr[k.video.quality];if((!c.B||"auto"!=k.video.quality)&&m<=c.o){c=e[f];break a}}c=e[e.length-1]}else c=e[0]}d.hg=c;ZL(a,b,a.o.hg.xc)}a.C.ob()&&iM(a)}},oM=function(a){fu(a.o.o,{c:a.X.A.c,
cver:a.X.A.cver});var b=a.X,c=a.o,d=new uG;if(dq()||b.experiments.L)d.ca=!0;dq()&&(d.Y=-1);if(Zp("trident/")||Zp("edge/"))d.A=240;Rq&&(d.M=41943040);if(AH(b)||!yw()){var e=b.experiments;d.B=8388608;d.D=524288;d.L=2097152;d.F=1048576;d.Ga=1.5;d.Fa=15;d.J=!yw();d.xa=!1;cq()&&!e.J&&(d.H=625E3);bq()&&(d.H=75E4);d.Ka=!0;d.o*=1.3;d.C*=1.3}eq()&&(e=mJ(b),d.B=20971520,d.D=1572864,e&&(d.H=812500,d.G=1E3));b.experiments.F&&(d.H=window.NaN);d.bb=b.F;b.experiments.ga("big_buffers_for_anchovy")&&mJ(b)&&(d.O=5);
d.liveChunkReadahead=$x(c,b.experiments);d.Ta=!b.experiments.ga("disable_fpa_sei_removal")&&Zp("windows nt")&&(Zx(c)||ay(c));var e=b.experiments.Yb("dash_html5_refresh_mapping_interval"),f=b.experiments.Yb("dash_html5_refresh_mapping_min_buffer");e&&(d.Z=e);f&&(d.ra=f);b.isMobile&&(d.Xa=b.experiments.ga("mweb_uniplayer_disable_adaptation"));if(e=b.experiments.Yb("html5_deadzone_multiplier"))d.o*=e,d.C*=e;if(e=b.experiments.Yb("html5_request_sizing_multiplier"))d.Ja=e;b.experiments.ga("html5_strip_emsg")&&
(d.Sa=!0);b.experiments.ga("html5_strip_emsg_lite")&&(d.Ca=!0);b.experiments.ga("disable_fatal_invalid_state")&&(d.K=!1);b.experiments.ga("html5_nonfatal_invalid_state")&&(d.la=!0,d.K=!1);c.o&&c.o.A&&(d.Na=.2);b.experiments.ga("html5_use_tight_max_buffer_depth")&&(d.ha=!0,d.La=b.experiments.Yb("html5_tight_max_buffer_allowed_impaired_time")||d.La,d.fa=b.experiments.Yb("html5_tight_max_buffer_allowed_bandwidth_stddevs")||d.fa,d.da=b.experiments.Yb("html5_tight_max_buffer_abr_avoidance_padding")||d.da);
b.experiments.ga("html5_streaming_xhr")&&(d.P=!0);b.experiments.ga("html5_clear_on_invalid_state")&&(d.ia=!0);a.D=new PK(a.la,d,a.o.o,a.o.A);a.D.subscribe("initsegment",a.qB,a);a.D.subscribe("videoformatchange",a.zB,a);a.D.subscribe("audioformatchange",a.yB,a);a.D.subscribe("error",a.Sj,a);a.D.subscribe("seekrequired",a.LD,a);b=jb(a.ca,"spacecast")||a.Fa;c=a.tn();c=c.Hb.isDefault?void 0:c;a.D.initialize(a.o.startSeconds,mM(a),b,c);a.o.probeUrl&&(a.D.O=a.o.probeUrl);if(a.ca.length||a.Fa)a.D.K=!0;a.Fa&&
eM(a)},eM=function(a){var b=new KL(new gz(4),a.C);
ZB(a.B,b)},$L=function(a){a.D&&(a.D.dispose(),a.D=null);
a.L&&(a.L.dispose(),a.L=null)},hM=function(a){a.L||(a.D?a.D.seek(a.getCurrentTime()):oM(a),a.L=new qw(a.A.ma(),a.o.lengthSeconds,a.o.A.videoInfos[0].mimeType,a.o.A.o[0].mimeType,a.X.F),rw(a.L,y(a.D.Aw,a.D)),tw(a.L,y(function(a){PL(this,"fmt.unplayable",void 0,"msi.1;ename."+a.name)},a)));
try{return uw(a.L)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),PL(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}},pM=function(a){return a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)},aM=function(a){a.A&&(a.A.pause(),fM(a),$L(a),a.o&&(a.o.startSeconds=a.getCurrentTime()),a.M=window.NaN,JI(a.A),T(a.C,128)||SL(a,kz(a.C)))},WL=function(a,b,c,d){if(!a.A||
!a.O.o||!a.A.o.src&&a.X.experiments.ga("new_ended_replay"))a.o.startSeconds=b||0;
else{b=le(b||0,Sx(a.o),qM(a,!1));var e=a.o.Ha&&!T(a.C,4)&&gM(a,b);XL(a,e);a.o.startSeconds=b;a.M=b;GL(a.Ca,b);c?a.Is():(T(a.C,32)||(SL(a,nz(a.C,32)),T(a.C,8)&&a.pauseVideo(!0),a.U("beginseeking",a)),d&&(a.ea||(a.ea=new Wd(a.Is,d,a)),a.ea.start()),rM(a,!0));a.P&&b>a.o.Bf&&(a.F.Ch(a.P),a.P=null);b<a.Ag()&&SL(a,oz(a.C,2));a.U("seekto",a,b)}},jba=function(a){if(!a.A)return 0;
if(Xx(a.o))return 1;if(Yx(a.o)){if(a.K)return 1;var b=a.A,c=II(b),b=(0<bz(c)&&b.o.duration?c.end(c.length-1):0)-Sx(a.o);a=qM(a,!0)-Sx(a.o);return Math.max(0,Math.min(1,b/a))}return LI(a.A)},sM=function(a,b){var c={};
if(b){a.B?ra(c,MB(RB(a.B,"playback"))):a.o&&(c.cpn=a.o.clientPlaybackNonce);if(a.A){var d;d=a.A;d={vct:d.getCurrentTime().toFixed(3),vd:d.o.duration.toFixed(3),vpl:Zy(d.o.played||Yy()),vbu:Zy(II(d)),vpa:d.o.paused,vsk:d.o.seeking,ven:d.o.ended,vpr:d.o.playbackRate,vrs:d.o.readyState,vns:d.o.networkState,vec:d.getErrorCode(),vvol:d.o.volume};ra(c,d)}if(a.D){d=a.D;var e={lct:d.F.toFixed(3),lsk:d.M,lmf:d.G.o.isLocked(),lbw:Gy(d.H).toFixed(3),lhd:AJ(d.H).toFixed(3),ltd:(1E9*zJ(d.H)).toFixed(3),laa:d.A.C?
Fs(d.A.C):"",lva:d.B.C?Fs(d.B.C):"",lar:d.A.A?Fs(d.A.A):"",lvr:d.B.A?Fs(d.B.A):"",lvh:kL(d)};d.o&&!ww(d.o)&&(e.lab=Zy(d.o.o.buffered),e.lvb=Zy(d.o.A.buffered));ra(c,e)}c.state=a.C.A.toString(16);T(a.C,128)&&(c.debug_error=a.C.o);VL(a)&&(c.preroll="1");a.o.Dh&&(c.ismb=a.o.Dh);a.o.isLowLatencyLiveStream&&(c.lowlatency="1");a.o.Ha&&a.o.o&&eu(a.o.o)&&(c.segduration=eu(a.o.o))}c.debug_videoId=a.o.videoId;return c},tM=function(a,b){a.U("internalvideodatachange",b||"dataupdated",a,a.o)},hba=function(a){F("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),
function(a){this.ha.T(this.A,a,this.ZE,this)},a);
a.X.qd&&(a.ha.T(a.A,"webkitplaybacktargetavailabilitychanged",a.Zz,a),a.ha.T(a.A,"webkitcurrentplaybacktargetiswirelesschanged",a.$z,a))},uM=function(a){var b=a.getCurrentTime(),c=a.o;
!Rv("pbs",a.G.o)&&Xv.measure&&Xv.getEntriesByName&&(Xv.getEntriesByName("mark_navigation_requested")[0]?Xv.measure("measure_above_the_fold","mark_navigation_requested"):Xv.measure("measure_above_the_fold"));c.videoId&&a.G.info("docid",c.videoId);c.eventId&&a.G.info("ei",c.eventId);c.clientPlaybackNonce&&a.G.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.G.info("start",c.startSeconds.toString());a.A&&a.A.o.paused&&a.G.info("paused",1);c.B?a.G.info("fmt",c.B.id):a.G.info("fmt","-1");c.Na&&a.G.info("yt_pre",
a.kb?"2":"1");a.X.Zf&&a.G.info("yt_fs","1");a.G.info("cmt",b.toFixed(3));if(a.D){b=a.D;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.S),c.length&&(c=c[0],RK(b,"vri",c.fetchStart),RK(b,"vdns",c.domainLookupEnd),RK(b,"vreq",c.requestStart),RK(b,"fvb",c.responseStart),RK(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.P),c.length&&(c=c[0],RK(b,"ari",c.fetchStart),RK(b,"adns",c.domainLookupEnd),RK(b,"areq",c.requestStart),RK(b,
"avb",c.responseStart),RK(b,"arc",c.responseEnd)));var b=b.na,d;for(d in b)a.G.A(d,b[d])}},kba=function(a){if(a.ia&&a.A){var b=a.A.o.seekable||Yy();
b.length&&b.end(0)>a.ia&&(a.A.o.currentTime=a.ia,a.ia=window.NaN,a.Ka=a.ha.T(a.A,"canplay",a.VA,a))}},rM=function(a,b){if(a.A&&a.o){var c=a.getCurrentTime();
if(c<Sx(a.o))WL(a,qM(a,!1),!0);else{if(a.K){var d=qM(a,!1);if(c<d-10){if(a.o.Yf||Xx(a.o)&&a.X.experiments.ga("html5_live_only_stick_to_head")){WL(a,d,!0);return}a.o.Ha&&XL(a,!1)}}if(a.D&&(d=a.D,d.o)){d.resume();if(d.M&&!ww(d.o)){var e=d.F<=c&&c<d.F+10,f=0<=$y(d.o.A.buffered,d.F+PK.o);e&&f&&(d.M=!1)}d.M||(d.F=c);cL(d)}5<c&&(a.o.startSeconds=c);(d=kv())?mv(a.ua):xi(a.ua);!rz(a.C)&&a.A.o.paused||T(a.C,128)||(e=y(a.Vx,a),a.ua=0==(a.A.o.played||Yy()).length?d?lv(e,100):vi(e,100):d?lv(e,500):vi(e,500));
a.o.Pj=c;!b&&a.C.ob()&&a.B&&(c=a.B,c.B.update(),Vx(c.o.videoData)&&c.o.videoData.hf&&!c.M&&xB(c.B)>=c.o.videoData.hf&&(c.C&&c.o.videoData.hf&&(d=RB(c,"delayplay"),d.Ca=!0,d.send(),c.M=!0),WB(c)),d=c.S,d.B||!d.o.Pb||d.o.Xd||!d.videoData.lengthSeconds?d=!1:(e=Math.min(.8*d.videoData.lengthSeconds,180),d=xB(d.C)>=e),d&&c.S.send());a.U("progresssync",a,b)}}},SL=function(a,b){var c=a.C;
if(b.A!=c.A||b.o!=c.o){c=new KL(b,a.C);a.C=b;var d=!a.na.length;a.na.push(c);0>XB(c,8)&&(xi(a.S),a.S=window.NaN,XL(a,!1));0<XB(c,8)&&!a.o.de&&(0,window.isNaN)(a.S)&&(a.S=vi(y(a.Iq,a),15E3));0<XB(c,32)&&XL(a,!1);if(T(c.state,2)&&Yx(a.o)){var e=a.getCurrentTime();a.o.lengthSeconds!=e&&(a.o.lengthSeconds=e,tM(a));rM(a,!0)}0<XB(c,2)&&a.Cm();a.B&&ZB(a.B,c);if(d)try{for(d=0;d<a.na.length;d++){var c=a.na[d],f=a.F,e=c;if(f.C&&!f.G&&(f.Rd(),T(e.o,16))){var e=f,k=TA(e.o,Math.max(e.B-2E3,0));null!=k&&0x7ffffffffffff>
k&&e.D.start()}a.U("statechange",c)}}finally{a.na.length=0}}},vM=function(a){T(a.C,2)||T(a.C,32)||(a.M=window.NaN)},XL=function(a,b){a.o.Ha&&a.K!=b&&(a.K=b,a.U("liveviewshift",b))},iba=function(a,b){lba(a,b);
a.X.rf?vi(y(function(){HI(this.A)},a),0):HI(a.A)},lba=function(a,b){a.G.A("vta");
EI(a.A,b);if(Px(a.o)&&Px(a.o)&&!a.H&&a.A){var c=a.o.H;if(c){var d=a.A.ma();a.H=new xL(d,c,a.X.experiments,a.o.Ha);a.H.subscribe("newsession",a.NB,a);a.H.subscribe("licenseerror",a.tB,a);a.H.subscribe("qualitychange",a.uB,a);a.H.subscribe("heartbeatparams",a.YE,a);c=a.H;d=a.o.oauthToken;c.K=d;c.U("oauthtoken",d)}else PL(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}a.L&&pv();xi(a.S);a.o.de||(a.S=vi(y(a.Iq,a),15E3))},fM=function(a){a.H&&(a.H.dispose(),a.H=null)},qM=function(a,b){if(!a.A)return 0;
if(!a.o.Ha){var c=a.o;return c.o&&!(0,window.isNaN)(cu(c.o))?cu(c.o):c.lengthSeconds}if(b&&(a.K||Xx(a.o)))return a.getCurrentTime();if(a.D)return c=hL(a.D),Math.max(c,Sx(a.o))||0;c=a.A.o.seekable||Yy();return(1>c.length?window.NaN:c.end(c.length-1))||0},gM=function(a,b){void 0==b&&(b=a.getCurrentTime());
return b>=qM(a,!1)-1},xM=function(a,b){G.call(this);
this.app=a;this.o=null;this.B={};this.C={};this.F={};this.D={};this.A=null;this.playerType=b;U(this,"cueVideoById",this.un);U(this,"loadVideoById",this.xn);U(this,"cueVideoByUrl",this.bF);U(this,"loadVideoByUrl",this.mF);U(this,"playVideo",this.Uc);U(this,"pauseVideo",this.pauseVideo);U(this,"stopVideo",this.Zj);U(this,"clearVideo",this.$E);U(this,"getVideoBytesLoaded",this.hF);U(this,"getVideoBytesTotal",this.iF);U(this,"getVideoLoadedFraction",this.wn);U(this,"getVideoStartBytes",this.jF);U(this,
"cuePlaylist",this.aF);U(this,"loadPlaylist",this.Ms);U(this,"nextVideo",this.Wj);U(this,"previousVideo",this.Xj);U(this,"playVideoAt",this.yn);U(this,"setShuffle",this.setShuffle);U(this,"setLoop",this.oF);U(this,"getPlaylist",this.Ec);U(this,"getPlaylistIndex",this.fF);U(this,"getPlaylistId",this.De);U(this,"loadModule",this.Vj);U(this,"unloadModule",this.Rs);U(this,"setOption",this.Ee);U(this,"getOption",this.Ab);U(this,"getOptions",this.Fh);U(this,"mute",this.mute);U(this,"unMute",this.unMute);
U(this,"isMuted",this.Fc);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.Fb);U(this,"seekTo",this.Tb);U(this,"getPlayerState",this.getPlayerState);U(this,"getPlaybackRate",this.eF);U(this,"setPlaybackRate",this.Gh);U(this,"getAvailablePlaybackRates",this.Tj);U(this,"getPlaybackQuality",this.Uj);U(this,"setPlaybackQuality",this.Yj);U(this,"getAvailableQualityLevels",this.Ks);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",this.Eh);U(this,"addEventListener",this.addEventListener);
U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.getVideoUrl);U(this,"getDebugText",this.vn);U(this,"getVideoEmbedCode",this.Ls);U(this,"getVideoData",this.getVideoData);U(this,"addCueRange",this.Js);U(this,"removeCueRange",this.Ns);U(this,"setSize",this.setSize);U(this,"getApiInterface",this.cF);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.Qs);U(this,"hideVideoInfo",this.kF);wM(this,"getInternalApiInterface",this.dF);wM(this,"getAdState",this.getAdState);
wM(this,"isNotServable",this.lF);wM(this,"getUpdatedConfigurationData",this.gF);wM(this,"updateRemoteReceivers",this.qF);wM(this,"sendAbandonmentPing",this.nF);wM(this,"setAutonav",this.Os);wM(this,"setAutonavState",this.Ps);wM(this,"setMinimized",this.pF);wM(this,"channelSubscribed",v);wM(this,"channelUnsubscribed",v)},U=function(a,b,c){a.B[b]=y(c,a)},wM=function(a,b,c){a.C[b]=y(c,a)},yM=function(a,b){xM.call(this,a,b);
U(this,"getPresentingPlayerType",this.getPresentingPlayerType);U(this,"addInfoCardXml",this.rF);U(this,"cueVideoByPlayerVars",this.sF);U(this,"loadVideoByPlayerVars",this.Bg);U(this,"preloadVideoByPlayerVars",this.BF);U(this,"seekBy",this.Vc);U(this,"updatePlaylist",this.IF);U(this,"updateLastActiveTime",this.HF);U(this,"updateVideoData",this.JF);U(this,"getStoryboardFormat",this.xF);U(this,"getProgressState",this.jf);U(this,"getHousebrandProperties",this.vF);U(this,"setPlaybackQualityRange",this.CF);
U(this,"getCurrentPlaylistSequence",this.uF);U(this,"canPlayType",this.canPlayType);U(this,"sendVideoStatsEngageEvent",this.Cg);U(this,"setCardsVisible",this.Ih);U(this,"handleGlobalKeyDown",this.zF);U(this,"getAudioTrack",this.Hh);U(this,"setAudioTrack",this.zn);U(this,"getAvailableAudioTracks",this.Ss);U(this,"getMaxPlaybackQuality",this.wF);U(this,"setSizeStyle",this.EF);U(this,"forceFrescaUpdate",this.tF);U(this,"setAutonav",this.Os);U(this,"setAutonavState",this.Ps);U(this,"showControls",this.GF);
U(this,"hideControls",this.AF);U(this,"getVisibilityState",this.yF);U(this,"shouldSendVisibilityState",this.FF);U(this,"getVideoContentRect",this.Ts);U(this,"setSafetyMode",this.DF);U(this,"setFauxFullscreen",this.SD);U(this,"cancelPlayback",this.uo)},zM=function(a,b){yM.call(this,a,b)},mba=function(a){(a=wq(a.app))&&jM(a)},BM=function(a){return(a=AM(a.app.D,"endscreen"))?My(a):!1},CM=function(a){var b=AM(a.app.D,"endscreen");
return b&&Ty(b)?!0:(a=AM(a.app.D,"ypc"))&&a.Ya()?!0:!1},DM=function(a,b){a.U("autonavcancel",b)},fA=function(a){var b=a.app;
a=a.playerType;return 3==b.getPresentingPlayerType()?b.H.P:wq(b,a).getPlayerState()},DF=function(a){return a.app.G},EM=function(a){return a.app.O&&!a.Pa()||!!a.Ec()},FM=function(a){if(a=AM(a.app.D,"captions"))a.K=!0,a.loaded?a.A&&a.A!=a.B.fe()?vH(a):a.mr():a.load()},GM=function(a,b){var c=AM(a.app.D,"captions"),d=c.od("displaySettings",b);
tH(c);return d},Dy=function(a){if(Ch())if(a.Pa())(a=Ah(["exitFullscreen",
"cancelFullscreen","cancelFullScreen"],window.document))&&a.call(window.document);else{a=DF(a).element;var b=Ah(["requestFullscreen","requestFullScreen"],a);b&&b.apply(a)}else a.Ea("onFullscreenToggled")},HM=function(a){return(a=wq(a.app))?Ou(CL(a.xa,a.o)):"unknown"},IM=function(a){(a=AM(a.app.D,"webgl"))?a.B?(a=a.A,a=a.o?a.o.mf():{}):a={}:a={};
return a},JM=function(a,b){var c=AM(a.app.D,"webgl");
c&&c.B&&(c=c.A,c.o&&c.o.Lh(b))},LM=function(a,b){a.W().experiments.ga("ui_logging")&&KM(a,"controlclicked",{controlClicked:b})},KM=function(a,b,c,d){var e=wq(a.app);
c.event=b;a.Pa()&&(c.fs=1);c.ux=1;e.logEvent(c,d)},aD=function(a){a.U("cardstatechange",Cz(a)&&MM(a)?1:0)},Cz=function(a){return(a=AM(a.app.D,"iv-module"))?cG(a):!1},MM=function(a){return(a=AM(a.app.D,"iv-module"))?dG(a):!1},NM=function(a,b,c){(a=AM(a.app.D,"iv-module"))&&fG(a,b,c)},uH=function(a){(a=wq(a.app))&&a.B&&wB(a.B.B)},hA=function(a,b){a.Ea("onFrescaStateChange",b);
var c=wq(a.app);if(c&&b&&c.B){var c=c.B.A,d=b.hasActiveStream;DB(c,OB(c.o),"stream",[d?"A":"I"])}},OM=function(a){return(a=AM(a.app.D,"fresca"))?!!a.D&&a.D.D.C:!1},PM=function(a){var b=wq(a.app,1);
if(!b)return!1;var c=b.getVideoData();return Tx(c)&&!Xx(c)&&2!=a.getPresentingPlayerType()&&(!VL(b)||3==a.getPresentingPlayerType())},QM=function(a){return a.app.ea.play_pause||2==a.getPresentingPlayerType()?!0:!VL(wq(a.app,1))},RM=function(a,b,c){var d=a.app;
a=c||a.playerType;if(c=wq(d,a))c.F.Ch.apply(c.F,b),a&&d.getPresentingPlayerType()!=a||xq(d,"cuerangesremoved",b)},Br=function(a,b,c){a=DF(a).element;
var d=Bb(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));ch(a,b,d);b.setAttribute("data-layer",c)},Jy=function(a){if(!a.W().ab)return!1;
var b=a.getVideoData();return!!b&&!b.ypcPreview&&!b.Ha&&!jb(b.J,"ypc")&&!a.Ec()},SM=function(a){a=a.fmt_list;
if(!a)return{};var b=[];F(a,function(a){a.itag&&(b[a.itag.toString()]=!0)});
return b},TM=function(a,b,c){if(!a)return null;
var d=b.docid;b=SM(b);return d&&b?nba(a,d,b,c):null},nba=function(a,b,c,d){d=ji(d.split(","),hj);
var e=ae(d,function(a){return!!c[a.itag]});
if(!e.length)return null;var f=Ye(a)||"",k=Ze(a),m={};F(e,function(a){if(a){var b=UM(a);b&&(m[b]=a)}});
var l=[];F(d,function(a){if(c[a.itag]){var d=qf(pf(Cf(a.url),f),k),e=We(a.url),d=yf(yf(d,"orig_host",Ue(e[1],e[2],e[3],e[4])),"scid",b);a.url=d.toString();a.isFastLoad="1"}else if((d=UM(a))&&m[d])return;l.push(ef(a))});
return l.join(",")},UM=function(a){return a.quality?a.quality:a.quality_label||""},oba=function(a,b,c){var d=VM(b);
d?(d.status="success-prefetch-1",c(d)):a&&!b?c({status:"success"}):a?(a=[a,"v1/cache/videos",b,"metadata"].join("/"),tj(a,{format:"JSON",method:"GET",timeout:2E3,tb:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
Od:function(){var a=VM(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})},VM=function(a){var b=window.acceleratorMeta;
return(b?b.docid:null)===a?b:null},WM=function(a){vq.call(this,a);
this.logEvent=this.va="spacecast";this.A=null},pba=function(a){return a.getVideoData().spacecastModule?new WM(a):null},XM=function(a){vq.call(this,a);
this.va="ypc_license_checker";this.logEvent="ypc_license";this.H=!1;this.C=0;this.D=!1;this.A=window.NaN;this.B=null},YM=function(a){return Wx(a.getVideoData(),"ypc_license_checker_module")},qba=function(a){return YM(a)?new XM(a):null},ZM=function(a){var b=a.o.getVideoData();
return Px(b)?!!a.B:!!b.heartbeatToken},$M=function(a,b){if(!a.A&&a.H&&ZM(a)){var c=b;
void 0==c&&(c=a.D?a.B?1E3*a.B.interval:a.o.getVideoData().heartbeatInterval||6E4:1E3);a.A=vi(y(a.ND,a),c)}},aN=function(a,b){if(a.A){a.log({errorType:b});
a.A=window.NaN;a.C++;var c=a.o.getVideoData();(c.heartbeatSoftFail?0:a.C>=(a.B?a.B.o:c.heartbeatRetries||5))?(c=Q("YTP_ERROR_LICENSE"),PL(a.o.app.A,"heartbeat",c,void 0)):$M(a)}},bN=function(a){try{return de(a)}catch(b){return null}},cN=function(a){a.C=0;
a.A&&(xi(a.A),a.A=window.NaN);a.D=!1},rba=function(a){this.id=a.id;
this.type=a.type;this.title=a.title;this.metadata=a.metadata;this.callToAction=a.callToAction;this.imageUrl=a.imageUrl;this.C=a.displayImages;this.F=a.iconUrl;this.left=a.left;this.width=a.width;this.top=a.top;this.aspectRatio=a.aspectRatio;this.offsetMs=a.offsetMs;this.durationMs=a.durationMs;this.startMs=a.startMs;this.endMs=a.endMs;this.videoId=a.videoId;this.videoDuration=a.videoDuration;this.playlistId=a.playlistId;this.playlistLength=a.playlistLength;this.channelId=a.channelId;this.A=a.htmlBlob;
this.G=a.isSubscribe;this.o=a.targetUrl;this.B=a.sessionData||{};this.H=a.targetTab;this.impressionUrls=a.impressionUrls;this.D=a.hoverUrls;this.clickUrls=a.clickUrls},dN=function(a){this.durationMs=a.durationMs;
this.startMs=a.startMs;this.impressionUrls=a.impressionUrls;this.elements=[];a=a.elements;for(var b=0;b<a.length;b++)this.elements.push(new rba(a[b]))},eN=function(a){vq.call(this,a);
this.va="creatorendscreen";this.B=this.D=null;this.A={};this.H={};this.C=null;this.J=!1},sba=function(a){return fN(a)?new eN(a):null},fN=function(a){return gN(a.W().o)?!0:Wx(a.getVideoData(),"iv_endscreen_url")},gN=function(a){return"creator-endscreen-editor"===a},hN=function(a,b){yq(a);
a.C&&(Jq(a.C),a.C.dispose(),a.C=null);for(var c in a.A){var d=a.A[c];Jq(d);d.dispose()}a.A={};a.H={};if((a.D=b)&&b.elements){c=[];d=new rq(b.startMs,b.startMs+b.durationMs,{id:"ytp-ce-in-endscreen"});c.push(d);a.C=new R(["div","ytp-ce-shadow"]);Br(a.o,a.C.element,4);for(var e=0;e<b.elements.length;++e){var f=b.elements[e],d={VIDEO:tba,PLAYLIST:uba,CHANNEL:vba,WEBSITE:wba},d=d[f.type]?d[f.type](f):null;a.A[f.id]=d;a.H[f.id]=f;Br(a.o,d.element,4);var k=new rq(f.startMs,f.endMs,{id:"ytp-ce-element-"+
f.id});c.push(k);xba(a,d,f)}a.ib(c);a.Bn()}},tba=function(a){a=["div",
["ytp-ce-element","ytp-ce-video"],{tabindex:0,"aria-label":a.title,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",iN(jN(a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.o,tabindex:"-1"},["div",["ytp-ce-video-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],a.title],["div","ytp-ce-video-duration",a.videoDuration]]];return new R(a)},uba=function(a){a=["div",
["ytp-ce-element","ytp-ce-playlist"],{tabindex:0,"aria-label":a.title,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",iN(jN(a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.o,tabindex:"-1"},["div",["ytp-ce-playlist-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],a.title],["div","ytp-ce-playlist-count",["div","ytp-ce-playlist-icon"],["div","ytp-ce-playlist-count-text",a.playlistLength]]]];return new R(a)},vba=function(a){var b=["div",
["ytp-ce-element","ytp-ce-channel",a.G?"ytp-ce-channel-this":"ytp-ce-channel-that"],{tabindex:0,"aria-label":a.title,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-expanding-overlay",["div","ytp-ce-expanding-overlay-background"],["div","ytp-ce-expanding-overlay-content",["div","ytp-ce-expanding-overlay-body",["div","ytp-ce-expanding-overlay-body-padding",["a",["ytp-ce-channel-title","ytp-ce-link"],a.title,{href:a.o,target:"_blank",tabindex:"-1"}],a.A?["div","ytp-ce-channel-subscribe"]:
"",a.metadata?["div",["ytp-ce-channel-metadata","yt-ui-ellipsis","yt-ui-ellipsis-3"],a.metadata]:""]]]],["div","ytp-ce-expanding-image",iN(jN(a))]],b=new R(b),c=Mg("div","ytp-ce-channel-subscribe",b.element)[0];a.A&&Kf(c,a.A);return b},wba=function(a){a=["div",
["ytp-ce-element","ytp-ce-website"],{tabindex:0,"aria-label":a.title,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-expanding-overlay",["div","ytp-ce-expanding-overlay-background"],["div","ytp-ce-expanding-overlay-content",["div","ytp-ce-expanding-overlay-body",["div","ytp-ce-expanding-overlay-body-padding",["div","ytp-ce-website-title",a.title],["div","ytp-ce-website-metadata",a.metadata],["a",["ytp-ce-website-goto","ytp-ce-link"],a.callToAction,{href:a.o,target:"_blank",tabindex:"-1"}]]]]],
["div","ytp-ce-expanding-image",iN(jN(a))],["div","ytp-ce-expanding-icon",iN(a.F)]];return new R(a)},jN=function(a){a=a.C.thumbnails;
return a[a.length-1].url},iN=function(a){return a?{style:"background-image: url("+a+")"}:{}},xba=function(a,b,c){b.R("mouseenter",y(a.Zs,a,c));
b.R("mouseleave",y(a.$s,a,c));b.R("click",y(a.Eq,a,c));b.R("keypress",y(a.Eq,a,c));b.R("focus",y(function(a,b){L(a.element,"ytp-ce-force-expand");this.Zs(b)},a,b,c));
b.R("blur",y(function(a,b){be(a.element,"ytp-ce-force-expand");this.$s(b)},a,b,c));
var d=y(function(a,b,c){c=gh(c);F(c,function(c){d(c);sh(c)&&(a.T(c,"focus",y(function(a,b){L(a.element,"ytp-ce-force-expand");kN(this,b.id,!0)},this,a,b)),a.T(c,"click",y(function(a,b){L(a.element,"ytp-ce-force-expand");
kN(this,b.id,!0);this.J=!0},this,a,b)),a.T(c,"blur",y(function(a,b){this.J?(this.J=!1,a.element.focus()):(be(a.element,"ytp-ce-force-expand"),kN(this,b.id,!1))},this,a,b)))},this)},a,b,c);
d(b.element)},kN=function(a,b,c){M(a.C.element,"ytp-ce-shadow-show",c);
for(var d in a.A)d!=b&&M(a.A[d].element,"ytp-ce-element-shadow-show",c)},lN=function(a,b,c){function d(){k||(f++,f==e.length&&(m.stop(),c&&c()))}
if(!b||gN(a.o.W().o))c&&c();else{var e=yba(a,b),f=0,k=!1,m=new Wd(function(){k=!0},1E3,a);
m.start();for(a=0;a<e.length;a++)iq(e[a],d)}},yba=function(a,b){for(var c=a.o.getVideoData().clientPlaybackNonce,d=a.o.getCurrentTime().toFixed(2),c={CPN:c,
MT:d},d=[],e=0;e<b.length;e++)d.push(zba(b[e],c));return d},zba=function(a,b){return a.replace(/%5B[a-zA-Z_:]+%5D|\[[a-zA-Z_:]+\]/g,function(a){var d=(0,window.unescape)(a),d=d.substring(1,d.length-1);
return b[d]?(0,window.escape)(b[d]):a})},mN=function(a){vq.call(this,a);
this.va="ypc_clickwrap";this.logEvent="ypc-clickwrap";Bi({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.B=this.A=null},Aba=function(a){return Wx(a.getVideoData(),"ypc_clickwrap_module")?new mN(a):null},nN=function(a){this.D=Math.exp(Math.log(.5)/a);
this.A=this.C=0},oN=function(a,b,c){this.J=0;
this.G=a;this.D=b||.5;this.F=c||0;this.H="index";this.A=0;this.C=[]},qN=function(a,b){pN(a,"value");
var c=b*a.A,d=0,e=window.NaN;a.C.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e},pN=function(a,b){a.H!=b&&(a.H=b,Eb(a.C,b))},rN=function(a){this.C=a;
this.A=[]},Bba=function(a){this.o=a;
this.G=this.H=0;this.A=-1;this.L=new xJ(100);this.K=0;this.M=Qt();this.C=new oN(4,.6);this.F=new nN(4);this.D=0;this.J=new rN(this.o.o);this.P=new oN(this.o.o,.5,.1);this.o.C?this.B=new nN(this.o.o):this.B=new oN(this.o.o,.5,.1);a=cj("yt-player-bandwidth")||{};this.B.o(this.o.B,0<a.byterate?a.byterate:this.o.A);0<a.delay&&this.C.o(1,Math.min(+a.delay,2));0<a.tailDelay&&this.F.o(1,+a.tailDelay);this.A=Qt()},LK=function(a,b,c){b=Math.max(b,.05);
a.B.o(b,c/b);sN(a)},MK=function(a,b){a.C.o(1,b);
-1<a.A&&3E4<Qt()-a.A&&tN(a)},uN=function(a,b,c){(0,window.isNaN)(c)||(a.G+=c);
(0,window.isNaN)(b)||(a.H+=b);a.J.o(b,c/b);sN(a)},vN=function(a,b,c){b=Math.max(b,8192);
a.F.o(1,c/b);-1<a.A&&3E4<Qt()-a.A&&tN(a)},AJ=function(a){a=a.C.B();
a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)},zJ=function(a){return a.F.B()||0},Gy=function(a){var b=a.o.D&&a.D&&6E4>Qt()-a.D?a.P.B():a.B.B(),b=0<b?b:1;
a=a.J.B();a=0<a?a:1;return a>2*b?(b+a)/2:b},wN=function(a){var b={};
b.delay=AJ(a);b.tailDelay=zJ(a);b.byterate=Gy(a);return b},tN=function(a){bj("yt-player-bandwidth",wN(a),2592E3);
a.A=Qt()},sN=function(a){var b=Qt();
a.M=b;500<b-a.K&&(yJ(a.L,1/(1/Gy(a)+zJ(a))),a.K=b)},xN=function(a){return 4E3<=Qt()-a.M},Cba=function(){this.o=17;
this.A=13E4;this.B=.5;this.D=this.C=!1},yN=function(){G.call(this);
this.o=[];this.F={};this.B={};this.C={};this.A=this.G=null;this.D=[];this.H=null},zN=function(a){a.o=ae(a.o,function(a){try{a.destroy()}catch(c){zi(c)}return!1},a)},Dba=function(a,b,c){AN(a);
a.H=b;a.D=sb(c);F(a.o,function(a){0<=ib(c,a.va)&&(a.G=b,a.gj(!!a.G))})},AN=function(a){F(a.D,function(a){if(a=AM(this,a))a.G=null,a.gj(!1)},a);
a.H=null;a.D=[]},BN=function(a){a=AM(a,"iv-module");
return!(!a||!a.loaded)},CN=function(a,b){if(!b)return ji(a.o,function(a){return a.va});
var c=AM(a,b);return c?c.lf():[]},AM=function(a,b){return eb(a.o,function(a){return a.va==b})},Eba=function(a){var b={};
F(a.o,function(a){ra(b,a.Kh())});
return b},DN=function(a,b,c){this.C=b;
this.o=c;this.D=a;this.A=!0},EN=function(a,b){jc.call(this,"adError");
this.B=a;this.o=b?b:null},FN=function(a,b,c){jc.call(this,a);
this.B=b;this.o=null!=c?c:null},GN=function(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var f=dc(b,e),f=f.toString();
if(!C(E(f)))return(0,window.encodeURIComponent)(f).replace(/%2C/g,",")}catch(k){}return a})},Fba=function(a){this.o=a},Gba=function(){var a=HN();
return IN(a,"disableExperiments")},IN=function(a,b){if(Yb(a.o,b)){var c=a.o[b];
if(fa(c))return c}return!1},Hba=function(a){if(Yb(a.o,"forceExperimentIds")){a=a.o.forceExperimentIds;
var b=[],c=0;da(a)&&F(a,function(a){ga(a)&&(b[c++]=a)});
return b}return null},JN=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""},V=function(){return KN.H},HN=function(){var a=KN;
if(null==a.G){var b={},c=(new N(Vg().location.href)).o;if(Jf(c,"tcnfp"))try{b=de(c.get("tcnfp"))}catch(d){}a.G=new Fba(b)}return a.G},LN=function(a,b,c,d){this.A=a;
this.o=le(c||0,0,1);this.B=null!=d?d:!0},MN=function(a){this.B=a;
this.A=new Je;this.o=null},Iba=function(a){var b=Math.random(),c=0,d=a.A.Oa();
F(d,function(a){c+=a.o},a);
var e=1<c?c:1;a.o=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].o,f/e>=b){a.o=d[k];break}},Kba=function(){this.A=null!=aa.G_testRunner;
this.o=new Je;NN(this,31061770,.05);NN(this,31061771,.05);NN(this,31061772,.05);NN(this,31061773,.05);NN(this,31061774,.01);NN(this,31061775,.01);NN(this,41351082,.01);NN(this,41351083,.01);NN(this,41351016,.05);NN(this,41351017,.05);NN(this,41351020,0);NN(this,41351021,0);NN(this,41351088,.01);NN(this,41351089,.01);NN(this,136961001,.01);NN(this,136961002,.01);NN(this,41351032,.05);NN(this,41351033,.05);NN(this,265944520,.05);NN(this,265944521,.05);NN(this,265944522,.05);NN(this,265944523,.05);NN(this,
41351076,.05);NN(this,41351077,.05);Jba(this);var a;a=HN();a=Hba(a);null!=a&&(this.A=!1,ON(this,a.map(String)))},QN=function(){PN||(PN=new Kba);
return PN},Lba=function(){var a=QN();
F(a.o.Qa(),function(a){ua(a,"FORCED_PUB_EXP_LAYER_")&&this.o.remove(a)},a)},NN=function(a,b,c){C(E("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new LN(b,0,c),RN(a,"GvnExternalLayer").A.set(b.getId(),b))},Jba=function(a){Gba()||F(a.o.Oa(),function(a){Iba(a)},a)},ON=function(a,b,c){F(b,function(a){var b=Number(a);
a="FORCED_PUB_EXP_LAYER_"+a;if(!((0,window.isNaN)(b)||0>=b||C(E(a)))){var f=null!=c?c:!0;RN(this,a).o=new LN(b,0,0,f)}},a)},SN=function(a,b){return a.A?!1:zh(a.o.Oa(),function(a){return!!a.o&&a.o.getId()==b})},TN=function(){var a=[9418778,
9417893,9417894,9417895,9419817];return QN().A?!1:zh(a,function(a){return SN(QN(),a)})},UN=function(a){if(a.A)return"";
var b=[];F(a.o.Oa(),function(a){(a=a.o)&&a.B&&b.push(a.getId())});
return b.sort().join(",")},RN=function(a,b){var c=a.o.get(b);
null==c&&(c=new MN(b),a.o.set(b,c));return c},VN=function(){QN();
return TN()},XN=function(a){return null!=a?WN(Mba,a):!1},WN=function(a,b){try{var c=(new N(b)).A,c=c.replace(/^www./i,"");
return zh(a,function(a){return Nba(a,c)})}catch(d){return!1}},Nba=function(a,b){if(C(E(b)))return!1;
a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b},ZN=function(a){var b=!1;
YN(a,Oba)?b=!1:SN(QN(),265944523)&&XN(a)?b=!0:"https:"==window.location.protocol&&(YN(a,Pba)||V())&&(b=!0);if(b){b=new N(a);if("https"==b.C)return a;of(b,"https");return b.toString()}return a},YN=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)},$N=function(a){window.open(ZN(a),"_blank")},bO=function(a,b,c){null!=a?(yf(a,"label",b),null!=c&&yf(a,"value",c.join(";")),a=a.toString()):a="";
aO(a)},aO=function(a,b,c,d,e){null!=a&&null!=b&&(a=GN(a,b));
try{if(null!=c){b=a;var f=(c||{}).viewability||"na";if(C(E(f)))a=b;else{var k=new N(b);Jf(k.o,"label")?(yf(k,"acvw",f),a=k.toString().replace(/%2C/g,",")):a=b}}a:{c=a;var m=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=m||!e&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(e=e||window.Goog_AdSense_Lidar_getUrlSignalsArray(),m={},f=0;f<e.length;++f){m.URL_SIGNALS=e[f];var l=GN(c,m);if(2048>l.length){a=l;break a}}a=c}}catch(t){}try{a=ZN(a);var n=!V()||SN(QN(),41351089);null!=d&&d?cO.Tr(a,
n):KN.F?cO.Sr(a,n):cO.Pr(a,n)}catch(t){}},dO=function(a,b){null!=a&&F(a,function(a){aO(a,b)})},Qba=function(a,b){if(C(E(b)))return a;
var c=new N(a),d=c.A;return null!=d&&va(d,".g.doubleclick.net")?(yf(c,"ged",b),c.toString()):a},eO=function(a,b){this.message=a;
this.errorCode=b},gO=function(a,b,c){return fO("adLoadError",a,b||null,ub(arguments,2))},hO=function(a,b,c){return fO("adPlayError",a,b||null,ub(arguments,2))},iO=function(a,b,c,d,e){var f=a.apply(null,rb([c,
d],ub(arguments,3)));b.aa(new FN("log",null,f))},fO=function(a,b,c,d){if(c instanceof DN)return c;
var e=b.errorCode;b=b.message;if(0<d.length)for(var f=0;f<d.length;f++)b=b.replace(new RegExp("\\{"+f+"\\}","ig"),d[f]);a=new DN(a,b,e);a.B=c;return a},jO=function(a,b,c,d){var e=hO.apply(null,rb([b,
c],ub(arguments,3)));a.aa(new EN(e))},lO=function(){return!kO()&&(pc("iPod")||pc("iPhone")||pc("Android")||pc("IEMobile"))},kO=function(){return pc("iPad")||pc("Android")&&!pc("Mobile")||pc("Silk")},mO=function(){return lO()||kO()},oO=function(){return Rba&&!nO||Na(oc,"iPod")},pO=function(){return oO()||nO},sO=function(a,b){if(null==qO[b]){var c;
C(rO)&&(c=a.exec(oc))&&(rO=c[1]);(c=rO)?(c=c.replace(/_/g,"."),qO[b]=0<=Ta(c,b)):qO[b]=!1}return qO[b]},tO=function(){var a=oc;
return a?Na(a,"Nintendo WiiU"):!1},uO=function(){var a;
(a=Na(oc,"CrKey")||Na(oc,"PlayStation")||Na(oc,"Roku"))||(a=(a=oc)?Na(a,"AppleTV")||Na(a,"GoogleTV")||Na(a,"HbbTV")||Na(a,"NetCast.TV")||Na(a,"Opera TV")||Na(a,"POV_TV")||Na(a,"SMART-TV")||Na(a,"SmartTV"):!1);return a||Na(oc,"Xbox")},wO=function(){return oO()||JH&&(!JH||!sO(vO,4))||!V()&&uO()?!1:!0},xO=function(){this.A=.01>Math.random();
this.B=Math.floor(4503599627370496*Math.random())},Sba=function(a,b){b.id="";
var c=yO();b.c=a.B;b.domain=c.A;return b},yO=function(){var a=Vg(),b=window.document;
return new N(a.parent==a?a.location.href:b.referrer)},zO=function(){},AO=function(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=K()-window.performance.timing[a],Math.round(a/1E3)):null},BO=function(){this.domLoading=AO("domLoading");
this.domComplete=AO("domComplete");this.unloadEventStart=AO("unloadEventStart")},Tba=function(a){var b={},c=new BO,d=null;
null!=c.domLoading&&(d=c.domLoading);0>d&&window.performance&&window.performance.timing&&(b.di="now."+K()+".loadstart."+window.performance.timing.domLoading+".tagload."+a);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b},CO=function(a){for(var b=[],c=a=Vg(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);
else break;return b},DO=function(){this.o={};
this.A=0},EO=function(a,b){this.D=a;
this.B=!0;this.o=b},FO=function(a,b){EO.call(this,String(a),b);
this.C=a;this.o=!!b},GO=function(a,b){EO.call(this,a,b)},HO=function(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");
var b=Number(a[0]),c=Number(a[1]);return new GO("",new we(c,b,Number(a[3])-c,Number(a[2])-b))}return new GO("",new we(0,0,0,0))},JO=function(){IO||(IO=new DO);
return IO},KO=function(a){var b=new we(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new we(0,0,0,0);
if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){var e;a:{e=b;var f=a[d],k=Math.max(e.left,f.left),m=Math.min(e.left+e.width,f.left+f.width);if(k<=m){var l=Math.max(e.top,f.top),f=Math.min(e.top+e.height,f.top+f.height);if(l<=f){e.left=k;e.top=l;e.width=m-k;e.height=f-l;e=!0;break a}}e=!1}if(!e)return c}return b},LO=function(a,b){var c=a.getBoundingClientRect(),d=gr(a,b);
return new we(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))},MO=function(a,b,c){if(b&&c){var d;
a:{d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var f=Math.max(b.top,c.top),k=Math.min(b.top+b.height,c.top+c.height);if(f<=k){d=new we(d,f,e-d,k-f);break a}}d=null}e=d?d.height*d.width:0;f=d?b.height*b.width:0;d=d&&f?Math.round(e/f*100):0;a.setItem(new EO("vp",d));d&&0<d?(e=xe(b),f=xe(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new FO(512,e));d&&0<d?(e=xe(b),f=xe(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new FO(1024,e));d&&0<d?(e=xe(b),f=xe(c),
e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new FO(2048,e));d&&0<d?(b=xe(b),c=xe(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new FO(4096,c))}},NO=function(a){this.o=ic.apply(null,arguments);
return this},OO=function(a,b){a.o.eb=dc(a.o,"eb",0)|b},Uba=function(){this.A=-1},PO=function(a,b){var c=0;
Xb(Vg(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=JO();d.o={};var f=new FO(32,!0);f.B=!1;d.setItem(f);f=Vg().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new FO(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var m;var l=Vg().top;try{m=!!l.location.href||""===l.location.href}catch(u){m=!1}if(m){var n=CO(e);k=n&&0!=n.length?"1":"0"}else k="2"}catch(u){k="2"}d.setItem(new FO(256,
"2"==k));d.setItem(new FO(128,"1"==k));n=m=Vg().top;"2"==k&&(n=Vg());l=LO(e,n);d.setItem(new GO("er",l));var t;try{t=n.document&&!n.document.body?null:Rg(n||window)}catch(u){t=null}t?(n=Ug(Lg(n.document).o),d.setItem(new FO(16384,!!n)),t=n?new we(n.x,n.y,t.width,t.height):null):t=null;d.setItem(new GO("vi",t));if(t&&"1"==k){k=CO(e);e=[];for(n=0;n<k.length;n++)(f=LO(k[n],m))&&e.push(f);e.push(t);t=KO(e)}MO(d,l,t);d.A&&(k=Math.round(K()/1E3)-d.A,d.setItem(new EO("ts",k)));d.A=Math.round(K()/1E3)}else d=
JO(),d.o={},d.A=Math.round(K()/1E3),d.setItem(new FO(32,!1));this.B=d;this.o=new NO("ve",4);c&&OO(this.o,1);Xb(Vg(),"ima","video","client","crossdomainTag")&&OO(this.o,4);Xb(Vg(),"ima","video","client","sdkTag")&&OO(this.o,8);Xb(Vg(),"ima","video","client","jsTag")&&OO(this.o,2);b&&dc(b,"fullscreen",!1)&&OO(this.o,16);this.A=d=null;if(c&&(c=Xb(Vg(),"ima","video","client"),c.getEData)){this.A=c.getEData();if(c=Xb(Vg(),"ima","video","client","getLastSnapshotFromTop"))if(k=c())this.A.extendWithDataFromTopIframe(k.buckets,
k.tt,k.pd,k.lt),c=this.B,d=k.er,k=k.vi,d&&k&&(d=HO(d).getValue(),k=HO(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new GO("er",e))),c.getItem("vi")&&(t=c.getItem("vi").getValue(),t.top+=d.top,t.left+=d.left,m=[],m.push(t),m.push(d),m.push(k),d=KO(m),MO(c,e,d),c.setItem(new GO("vi",k))));d=this.A.getTimeSinceTagLoadSeconds()}this.o.extend(Tba(d))},Vba=function(a,b){try{return(new PO(a,b)).Cc()}catch(c){return"tle;"+Ma(c.name,12)+";"+Ma(c.message,
40)}},QO=function(a){return function(b){return!p(b[a])&&p(0)?0:b[a]}},RO=function(){return function(a){if(!p(a.tth))return"1"}},TO=function(){var a=[0,
2,4];return function(b){b=b.tos;if(da(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return p(a)?SO(c,a):c}}},UO=function(a,b){return function(c){c=c[a];
if(da(c))return SO(c,b)}},SO=function(a,b){return ae(a,function(a,d){return jb(b,d)})},VO=function(a){try{return!!a&&null!=a.location.href&&nc(a,"foo")}catch(b){return!1}},Wba=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)},Xba=function(){var a=WO;
if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec((0,window.decodeURIComponent)(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""},XO=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)},YO=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)},ZO=function(a,b){var c=[];
Wba(a,function(a,e){var f=null;if(ia(a)&&2>b)f=ZO(a,b+1);else if(0===a||a)f=String(a);f&&c.push(e+"="+(0,window.encodeURIComponent)(f))});
return c.join("&")},$O=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);
var d=a.document.createElement("img");if(c){var e=function(a){c(a);YO(d,"load",e);YO(d,"error",e)};
XO(d,"load",e);XO(d,"error",e)}d.src=b;a.google_image_requests.push(d)},aP=function(a,b,c){this.D=a;
this.C=b;this.A=c;this.B=this.o},bP=function(a,b,c){this.message=a;
this.fileName=b||"";this.lineNumber=c||-1},dP=function(a,b,c,d,e){var f;
try{f=c()}catch(l){var k=a.A;try{var m=cP(l),k=(e||a.B).call(a,b,m,void 0,d)}catch(n){a.o("pAR",n)}if(!k)throw l;}finally{}return f},fP=function(a,b,c,d){var e=eP;
return function(){for(var f=[],k=0;k<arguments.length;++k)f[k]=arguments[k];return dP(e,a,function(){return b.apply(c,f)},d)}},cP=function(a){var b=a.toString();
a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){var c=a.stack,d=b;try{-1==c.indexOf(d)&&(c=d+"\n"+c);for(var e;c!=e;)e=c,c=c.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=c.replace(/\n */g,"\n")}catch(f){b=d}}return new bP(b,a.fileName,a.lineNumber)},gP=function(a,b,c,d){return fP(a,b,c,d)},hP=function(a,b){return fP(a,b,void 0,void 0)},Yba=function(){for(var a=W,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,VO(a)&&(b=a);
return b},iP=function(a){return{visible:1,
hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0},kP=function(){var a;
jP.mozVisibilityState?a="mozvisibilitychange":jP.webkitVisibilityState?a="webkitvisibilitychange":jP.visibilityState&&(a="visibilitychange");return a},lP=function(a){a=a.match(/[\d]+/g);
if(!a)return"";a.length=3;return a.join(".")},mP=function(a,b,c,d){c=fP(d||"osd_or_lidar::"+b,c,void 0,void 0);
XO(a,b,c,void 0);return c},Zba=function(a,b){this.o=a;
this.A=b},$ba=function(a){this.url=a;
this.Rp=!1;this.depth=ga(void 0)?void 0:null},oP=function(a){a=a?a:nP();
for(var b=a.length-1,c=null,d=b;0<=d;--d){var e=a[d];if(e.url&&!e.Rp){c=e;break}}d=null;e=a.length&&a[b].url;c&&0==c.depth||!e||(d=a[b]);return new Zba(c,d)},nP=function(){var a=aa,b=[],c=null,d=null;
do{var e=a;VO(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new $ba(c));try{a=e.parent}catch(f){a=null}}while(a&&e!=a);a=0;for(e=b.length-1;a<=e;++a)b[a].depth=e-a;e=aa;if(e.location&&e.location.ancestorOrigins&&e.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)c=b[a],c.url||(c.url=e.location.ancestorOrigins[a-1],c.Rp=!0);return b},pP=function(a,b){var c=a||W;
c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new ue(-1,-1):b?(new ue(c.innerWidth,c.innerHeight)).round():Rg(c||window).round()}catch(d){return new ue(-12245933,-12245933)}},aca=function(){var a=qP.getInstance().F,b=0<=rP?sP()-rP:-1,c=tP?sP()-uP:-1,d=0<=vP?sP()-vP:-1,e;
if(79463068==a)return 500;if(947190538==a)a=[4E3],e=[250,1E3];else if(947190541==a)a=[4E3],e=[100,1E3];else{if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];e=[250,500,1E3]}var f=b;-1!=c&&c<b&&(f=c);for(var k,b=0;b<a.length;++b)if(f<a[b]){k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k},sP=function(){return(new Date).getTime()-bca},cca=function(a){var b=[];
Ob(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(da(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")},wP=function(){var a=O("div");
a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a},xP=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Wq(a,"display"))return!0;
b=a;a=a.parentElement}if(b&&(a=Jg(b))){var c,d;try{if(c=Vg(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return xP(d)}return!1},AP=function(a){yP.e=-1;
yP.i=6;yP.n=7;yP.t=8;if(!zP){var b=[];F(Wb(yP),function(a){b[yP[a]+1]=a});
var c=b.join("");zP=(c=a&&a[c])&&y(c,a)}return zP},CP=function(){return FL&&qu&&ru("6.0.1")&&0<=Ta(BP,"10.1")?!0:!1},DP=function(a,b){this.C=null;
this.G=a;this.J=b||1;this.o="u"},EP=function(a,b){var c=b.right-b.left,d=b.bottom-b.top,e=Math.floor(c/2),f=Math.floor(d/2);
switch(a.J){case 4:return a.G?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new re(e,f),new re(c-e,f),new re(e,d-f),new re(c-e,d-f)]):[new re(e,0),new re(0,f),new re(e,d-1),new re(c-1,f)];case 3:return[new re(c-1,0),new re(e,f),new re(0,d-1)];default:return[new re(e,f)]}},FP=function(a,b){var c;
try{c=b||a.C.getBoundingClientRect()}catch(e){c=new te(0,0,0,0)}var d=EP(a,c);F(d,function(a){a.x+=c.left;a.y+=c.top});
return d},GP=function(a,b,c,d){DP.call(this,a,d);
this.K=b||3E3;this.L=c||3E3;this.A=[];this.H=!1;this.B=-1;this.D=this.F=0},dca=function(a,b,c){this.snapshot=a;
this.A=b;this.o=c},eca=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ta(BP,"11")&&c)||Tg&&9>vc||0<a.A.length)return!1;
try{var d=b.getBoundingClientRect()}catch(n){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=Jg(b),k=[];if(e){var m=wP(),d=EP(a,d);F(d,function(a,b){var d=new HP("e",f,c,String(b));this.A.push(d);k.push(y(d.Lp,d,m,a))},a);
ch(b,m,0)}else d=FP(a,d),F(d,function(a,d){var e=new HP("e",f,c,String(d));this.A.push(e);k.push(y(e.Kp,e,b,a))},a);
var l=!0;F(k,function(a){l=l&&a()});
l?(a.o="l",a.C=b,a.H=!e):(F(a.A,function(a){a.remove()}),a.A=[]);
return l},fca=function(a){if(a.C&&a.H){var b=FP(a);
F(b,function(a,b){this.A[b]&&this.A[b].setPosition(a)},a)}},IP=function(a){F(a.A,function(a){a.remove()});
a.A=[];a.o="d"},kca=function(a){var b=K(),c=a.F?b-a.F:0,d=-1,e=ji(a.A,function(a){return JP(a,b)});
4==a.A.length?d=a.G?gca(e):hca(e):3==a.A.length?d=ica(e):1==a.A.length&&(d=[-1,0,1,2,3,5][JP(a.A[0],b)+1]);a.D=d==a.B?a.D+c:0;c=new dca(d,a.B,c);a.B=d;a.F=b;jca(a,d);fca(a);return c},LP=function(a){var b=Jb(Sb(KP));
F(a,function(a){0<=a&&++b[a]});
return b},hca=function(a){a=LP(a);
return 4==a[4]?6:3<=a[4]?5:0<a[4]?4:4==a[2]?2:4==a[1]?1:4==a[0]?0:3},ica=function(a){var b=LP(a);
return 4==a[0]&&4==a[2]?6:4==a[1]?5:0<b[4]?4:3==b[2]?2:3==b[1]?1:3==b[0]?0:3},gca=function(a){a=LP(a);
return 3<=a[4]?5:2==a[4]?8:0<a[4]?7:4==a[2]?2:4==a[1]?1:4==a[0]?0:3},jca=function(a,b){if(0==b&&MP(a))a.o="n";
else switch(b){case -1:a.o="d";break;case 0:a.o="l";break;case 1:a.o="f";break;case 2:a.o="c";break;case 3:case 4:case 5:case 6:a.o="r"}},MP=function(a){return"n"==a.o?!0:"l"==a.o&&a.D>=a.L},HP=function(a,b,c,d){this.module=null;
this.B=a;this.F="e"==a?String(c)+"~"+String(d):"";this.o=[];this.A=-1;this.D=0;this.C=Jb(Sb(lca));this.G=Jb(Sb(KP));"e"==this.B&&(NP[this.F]=y(this.$x,this));Tg?(a=b.createElement("div"),a.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="opacity:0;-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(opacity=0)\';filter:alpha(opacity=0)"><param name="movie" value="'+OP(this,!0)+'"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param></object>',
a=a.firstChild,a.id=String(Math.random())):a=mca(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a},mca=function(a,b){function c(a,c,d){var e=b.createElement("param");
e.name=c;e.value=d;a.appendChild(e)}
var d=OP(a),e=b.createElement("object");e.type="application/x-shockwave-flash";e.data=d;c(e,"movie",d);c(e,"allowscriptaccess","always");c(e,"wmode","opaque");e.style.visibility="s"==a.B?"":"hidden";e.style.opacity=0;return e},OP=function(a,b){var c=ff("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.F);
"s"==a.B&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=ff(c,"delay","1"));return c},JP=function(a,b){if("e"==a.B){var c=null;
try{c=a.module.it()}catch(f){}null===c?(c=0,0<a.A&&(c=2)):c=c?3:4;++a.G[c+1];a.A=c}else{var d=Number(b),e=PP(a);nca(a,e,d);c=a.o[a.o.length-1];if(null===e){if(e=d=0,0<a.A||ga(c.Cj))e=d=2}else null===c.Cj||c.Qm>=d?(d=10<=e?4:0,e=0):e>c.Cj?(c=(e-c.Cj)/(d-c.Qm)*1E3,d=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.D&&6==c&&(c=7),e=c):e=d=1;6==a.D&&(--a.C[6],4==e||8==e?++a.C[5]:++a.C[7]);++a.C[e];a.A=d;a.D=e}return a.A},PP=function(a){var b=null;
try{b=a.module.fc()}catch(c){}return b},nca=function(a,b,c){var d=c-1E3,e=a.o.length;
F(a.o,function(a,b){a.Qm<=d&&(e=Math.min(e,b+1))});
var f=a.o.length-e;0<f&&a.o.splice(e,f);a.o.unshift({Cj:b,Qm:c})},QP=function(){this.F=!0;
this.o=new HP("s",jP);this.D=!1;this.A=this.B=this.G=this.M=this.L=this.P=this.C=this.K=null;this.S=0;this.J=this.H=this.O=null},RP=function(a,b){b!==a.A&&(a.A=b,a.P(b),a.S++)},SP=function(a){var b=PP(a.o);
null===a.O&&null!==b&&null!==a.H&&(a.O=K()-a.H);return b},TP=function(a){var b=a.K.getBoundingClientRect(),c;
c=null!=a.M?a.M.clone():new re(Math.floor((b.right-b.left)/2),Math.floor((b.bottom-b.top)/2));a.D&&(c.x+=b.left,c.y+=b.top);return c},UP=function(a){a.D&&(a.L=TP(a));
a.o.setPosition(a.L);a.G=W.setTimeout(hP("osd_or_lidar::sfm_tpto",y(a.Z,a)),125)},oca=function(a){if(a.F){var b=y(function(){1===iP(jP)?(this.B=null,UP(this)):(W.clearTimeout(this.G),RP(this,0))},a),c=kP();
if(c){var d=mP(jP,c,b,"osd_or_lidar::sfm_pv");a.J=function(){YO(jP,c,d);this.J=null}}a.F=!1;
a.A=null;b()}},VP=function(a){a.F||(W.clearTimeout(a.G),null===a.J||a.J(),a.F=!0)},WP=function(a,b){DP.call(this,a,b);
this.B=[];this.F=this.H=null;this.D=!0},pca=function(a,b,c){if(null!==a.F)return!1;
a.C=b;a.H=c;c=b.getBoundingClientRect();c="DIV"==b.tagName||"INS"==b.tagName?EP(a,c):FP(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new QP,k;k=f;var m=b,l=y(a.K,a),n=e;if(null===k.H){var t="DIV"==m.tagName||"INS"==m.tagName;k.D=!t;k.K=m;e=TP(k);if(null!=n){e=n;n=new re(0,0);if(k.D){var u=k.K.getBoundingClientRect();n.x+=u.left;n.y+=u.top}k.M=new re(e.x-n.x,e.y-n.y)}k.P=l;l=!1;t?(l=wP(),k.C=l,ch(m,l,0),l=k.o.Lp(l,e)):l=k.o.Kp(m,e);l?(k.H=K(),k.L=e,k=!0):(k.o.remove(),k.C&&dh(k.C),k=!1)}else k=!1;
if(!k)return XP(a),a.o="c",!1;a.B.push(f)}a.F=K();a.o="l";return!0},sca=function(a){var b=Jb(Sb(qca));
F(a.B,function(a){null!=a.A&&0<=a.A&&++b[a.A]});
switch(a.J){case 4:return rca(a,b);case 3:return 1==a.B[0].A&&1==a.B[2].A?3:1==a.B[1].A?2:0<b[1]?1:0;default:return 1==b[1]?2:0}},rca=function(a,b){var c=b[1];
if(a.G){if(3<=c)return 2;if(2==c)return 5;if(0<c)return 4}else{if(4==c)return 3;if(3==c)return 2;if(0<c)return 1}return 0},YP=function(a){a.D&&null!==a.F&&"d"!=a.o&&(F(a.B,function(a){oca(a)}),a.o="r",a.D=!1)},ZP=function(a){a.D||(F(a.B,function(a){VP(a)}),a.D=!0)},XP=function(a){ZP(a);
F(a.B,function(a){VP(a);a.o&&(a.o.remove(),a.o=null);a.C&&(dh(a.C),a.C=null)});
a.B=[];a.o="d"},qP=function(){this.D=!1;
this.F=void 0;this.A=!VO(W.top);var a=nP();this.G=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Ye(a[a.length-1].url)||"":"";this.B=this.C=this.o=null;this.H=0},bQ=function(a,b,c,d){this.position=$P.clone();
this.C=this.area=0;this.wd=-1;this.ud=-2;this.BE=(new Date).getTime();this.Ki=this.Di=-1;this.Td=[0,0,0,0,0];this.ab=[0,0,0,0,0];this.Y=[0,0,0,0,0];this.Le=[0,0,0,0,0];this.D=c;this.ea=this.ca=-1;this.Yd=this.Zd=null;this.xa=-1;this.qE=d;this.uf=v;this.Xp=function(){};
this.Z=this.element=b;this.A=null;this.S=1;this.Sa=!1;this.B=null;this.Ud=this.Wa=this.rE=!1;this.qd=1;this.zi=!0;b=qP.getInstance();this.iE=b.H++;aQ(this,a,b.A)},tca=function(a,b,c,d,e){if(-1!=a.D){var f=W.innerWidth,k=W.innerHeight,m=new te(Math.round(W.mozInnerScreenY),Math.round(W.mozInnerScreenX+f),Math.round(W.mozInnerScreenY+k),Math.round(W.mozInnerScreenX));
c=new te(W.screenY+d,W.screenX+c.width,W.screenY+c.height,W.screenX);e||(d=new te(m.top-c.top,m.right-c.left,m.bottom-c.top,m.left-c.left),d.top>a.position.top?a.position=d:(a.position.right=a.position.left+f,a.position.bottom=a.position.top+k),a.area=f*k);a.Ae(m,c,b,e,!0,!0)}},vca=function(a,b,c){if(-1!=a.D){var d=AP(W&&W.document);
if(d){c||aQ(a,W,!0);if(a.Ud)var e=uca(a,d),d=!0;else var e=Math.floor((a.position.left+a.position.right)/2),f=Math.floor((a.position.top+a.position.bottom)/2),k=Ug(window.document),e=d(e-k.x,f-k.y)?.5:0,d=!1;a.Ae(a.position,e,b,c,!0,d)}}},cQ=function(a,b,c){var d;
if(c(b))return b;for(;;){d=Math.floor((a+b)/2);if(d==a||d==b)return a;c(d)?a=d:b=d}},uca=function(a,b){var c=Ug(window.document),d=a.qd,e=Math.floor(a.position.left-c.x)+1,f=Math.floor(a.position.top-c.y)+1,k=Math.floor(a.position.right-c.x)-d,m=Math.floor(a.position.bottom-c.y)-d,c=(m-f)*(k-e);
if(f>m||e>k)return 0;var d=!!b(e,f),l=!!b(k,m);if(d&&l)return 1;var n=!!b(k,f),t=!!b(e,m);if(d)m=cQ(f,m,function(a){return!!b(e,a)}),k=cQ(e,k,function(a){return!!b(a,f)});
else if(n)m=cQ(f,m,function(a){return!!b(k,a)}),e=cQ(k,e,function(a){return!!b(a,f)});
else if(t)f=cQ(m,f,function(a){return!!b(e,a)}),k=cQ(e,k,function(a){return!!b(a,m)});
else if(l)f=cQ(m,f,function(a){return!!b(k,a)}),e=cQ(k,e,function(a){return!!b(a,m)});
else{var u=Math.floor((e+k)/2),x=Math.floor((f+m)/2);if(!b(u,x))return 0;f=cQ(x,f,function(a){return!!b(u,a)});
m=cQ(x,m,function(a){return!!b(u,a)});
e=cQ(u,e,function(a){return!!b(a,x)});
k=cQ(u,k,function(a){return!!b(a,x)})}return(m-f)*(k-e)/c},wca=function(a,b,c,d,e){-1!=a.D&&(d||aQ(a,W,e),a.Ae(a.position,c,b,d,!1,!0))},dQ=function(a,b,c){-1!=a.D&&a.Ae(a.position,a.C,b,c,!0,!0)},eQ=function(a){var b=-1;
1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.3<=a?b=3:0<a&&(b=4);return b},fQ=function(a,b,c){a.S=c;
if(!a.Z||CP()||CP())return a.Sa=!0,!1;c=new GP(!1,void 0,void 0,a.S);var d=eca(c,a.Z,String(a.iE));d?(a.Xp=b,a.A=c):a.Sa=!0;return d},hQ=function(a,b,c){if(!a.element||!CP())return!1;
a.S=c||1;c=new WP(!1,a.S);var d=pca(c,a.element,y(function(a){gQ(this,sP(),!1,b,[0,.01,.5,1,.01,.3][a])},a));
d?(a.B=c,YP(c)):a.rE=!0;return d},gQ=function(a,b,c,d,e){-1!=a.D&&iQ(a)&&(c?a.B&&ZP(a.B):(aQ(a,d,!0),a.B&&YP(a.B)),d=e||0,ga(e)||-1==a.ca||(d=[1,
.75,.5,.3,.01][a.ca]||0),a.Ae(a.position,d,b,c,!1,!1),!a.ne()||a.Rl()||a.B&&XP(a.B))},iQ=function(a){return null!==a.B&&"d"!=a.B.getStatus()},aQ=function(a,b,c){b=c?b:b.top;
try{var d=$P.clone(),e=new re(0,0);if(a.Z){if(c||1!=a.qE||!xP(a.Z))d=a.Z.getBoundingClientRect();e=gr(a.Z,b)}var f=e.x,k=e.y;a.position=new te(Math.round(k),Math.round(f+(d.right-d.left)),Math.round(k+(d.bottom-d.top)),Math.round(f))}catch(m){a.position=$P.clone()}a.area=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)},jQ=function(a,b){var c=Math.pow(10,b);
return Math.floor(a*c)/c},xca=function(a){a.A&&IP(a.A);
a.B&&XP(a.B)},yca=function(){this.o={};
for(var a in kQ)this.o[kQ[a]]=0},lQ=function(a,b){0==a.o[b]&&(a.o[b]=1)},zca=function(a){var b=0,c;
for(c in a.o){var d=(0,window.parseInt)(c,10);1==a.o[d]&&(b+=d,a.o[d]=2)}return b},mQ=function(a,b,c,d){this.Na=0;
this.zd=[0,0,0,0,0];this.yd=[0,0,0,0,0];this.na=[0,0,0,0,0];this.dc=this.da=0;this.J={};this.H=new yca;this.rf={};this.jg=this.F="";this.qf=!1;this.xb=[];this.La=void 0;this.sf=this.Ar=this.Ir=this.Xd=!1;this.L=void 0;this.Vd=0;this.ra=-1;this.xd=this.Xa=0;this.M=-1;this.ia=this.K=this.P=this.sd=void 0;this.Fa=this.fa=0;this.bb=.99>Math.random()?1:0;this.wb=0;this.qb=-1;this.Wd=!1;this.Ta=this.rd=0;this.la=!1;this.Ka=this.Ja=this.bc=0;this.Qb=!1;this.Ga=[0,0,0,0,0];this.ha=this.Bd=this.kb=this.Ca=
this.o=this.O=this.Wp=0;this.ua=-1;this.pf=this.vf=0;this.zr=this.tf=this.es=this.G=!1;this.wf=0;this.kq=!1;this.Pb=v;bQ.call(this,a,b,c,d)},nQ=function(a){return p(a)&&0<=a&&1>=a},oQ=function(a,b){var c=b-a.D||1,d=1E4;
p(a.M)&&-1!=a.M&&(d=Math.max(d,a.M/3));return c>d?1:c},Aca=function(a){var b=0;
.5<=a.C&&(b+=1);nQ(a.K)&&(b+=2);a.la&&(b+=4);a.G&&(b+=8);-1!=a.ea&&(b+=16,1==a.ea&&(b+=32));a.ia&&(b+=128);a.ia&&0<a.C&&(b+=256);return b},pQ=function(a,b){var c=a.Vd;
tP||a.La||-1==a.ra||(c+=b-a.ra);return c},Bca=function(a){a.Ud=!0;
a.qd=2},qQ=function(a,b){tb(a.xb,Jb(b-a.xb.length+1));
a.xb[b]=jQ(a.C,2)},tQ=function(a,b){var c=a.rf[b];
if(null!=c)return c;if(a.Wa)return{"if":0};c=a.position.clone();c.round();var d=ji(a.xb,function(a){return 100*a|0}),e=qP.getInstance(),f={};
f["if"]=e.A?1:void 0;f.sdk=a.L?a.L:void 0;f.t=a.BE;f.p=[c.top,c.left,c.bottom,c.right];f.tos=a.Td;f.mtos=a.ab;f.ps=void 0;f.pt=d;f.vht=pQ(a,sP());f.mut=a.xd;f.a=a.K;f.ns=a.wf;f.ft=a.rd;f.at=a.bc;f.as=a.Qb?1:0;f.atos=a.Ga;f.uac=a.Wp;f.vpt=a.wb;f.is=Aca(a);f.ic=zca(a.H);if("h"==a.L||"as"==a.L)f.gmm="2";"fully_viewable_audible_half_duration_impression"==b&&(f.std="csm");a.Ud&&(f.efpf=a.qd);a.A&&(f.swf=a.A.getStatus(),f.px=a.S);a.B&&(f.sfm=a.B.getStatus(),f.px=a.S);0<a.pf&&(f.nnut=a.pf);f.tcm=a.bb;f.nmt=
a.Bd;f.bt=a.ha;f.pst=a.ua;f.mmct=a.vf;f.vpaid=a.sd;f.dur=a.M;f.vmtime=a.Fa;f.vmtos=a.zd;f.vmmtos=a.yd;Cca(a,b)&&(a.ne()&&(f.dtos=a.Na,a.Na=0,f.vmdtos=a.da,a.da=0,f.dav=a.Ka,a.Ka=0,a.dc++,f.dtoss=a.dc),f.dat=a.Ja,a.Ja=0,f.dft=a.Ta,a.Ta=0);!a.ne()&&2E3<=a.da&&(f.vmdtos=a.da);e.B&&(f.ps=[e.B.width,e.B.height]);f.dom=e.G;a.Sa&&(f.fmf="1",f.px=a.S);a.Xd&&(f.ven="1");a.Ir&&(f.veh="1");a.O&&(f.vds=a.O);a.o&&(f.vmer=a.o);a.Ca&&(f.vmmk=a.Ca);a.kb&&(f.vmiec=a.kb);rQ()?(f.c=jQ(a.C,2),f.ss=jQ(Dca(a),2)):f.tth=
sP()-sQ;f.mc=jQ(a.wd,2);f.lte=jQ(a.ud,2);return f},Dca=function(a){if(a.G)return 1;
var b=W.screen.width*W.screen.height;return 0>=b?-1:a.area*a.C/b},Cca=function(a,b){if(jb(Eca,b))return!0;
var c=a.J[b];return p(c)&&(a.J[b]=!0,!c)?!0:!1},CQ=function(){if(!uQ){uQ=!0;
var a=aa.requestAnimationFrame||aa.webkitRequestAnimationFrame||aa.mozRequestAnimationFrame||aa.oRequestAnimationFrame||aa.msRequestAnimationFrame;if(!vQ){var b;if(a){var c=fP("osd_or_lidar::throttled_scroll_raf_callback",wQ,void 0,void 0);b=function(){a(function(){W.setTimeout(c,0)})}}else b=wQ;
xQ=new ym(fP("osd_or_lidar::throttled_scroll_timeout",b,void 0,void 0),100);b=y(xQ.Lf,xQ);vQ=mP(W,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!yQ){if(a){var d=fP("osd_or_lidar::throttled_resize_raf_callback",zQ,void 0,void 0);b=function(){a(function(){W.setTimeout(d,0)})}}else b=zQ;
AQ=new ym(fP("osd_or_lidar::throttled_resize_timeout",b,void 0,void 0),100);b=y(AQ.Lf,AQ);yQ=mP(W,"resize",b,"osd_or_lidar::throttled_resize")}Fca();BQ()}},zQ=function(){DQ(!1);
wQ()},wQ=function(){EQ(FQ(),!1)},Ica=function(){var a,b=qP.getInstance();
GQ&&(b.o=pP(W,GQ));if(Gca)return a=new HQ,a.J=!0,a;if(Hca)return a=new HQ,a.D=!0,a;if(IQ){a=JQ;DQ(!1);var c=qP.getInstance(),d=c.C,b=d.height-a;0>=b&&(b=d.height,a=0);c.o=new ue(d.width,b);b=new HQ;b.G=!0;b.B=c.o;b.A=d;b.C=a;return b}if(KQ)return a=new HQ,a.F=!0,a;if(LQ)return a=new HQ,a.H=!0,a;if(MQ)return a=new HQ,a.K=!0,a;a:{var b=b.o,e=new HQ;e.B=b;e.o=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var f=GQ,k=W||W,k=k.top,c=b||pP(k,f),d=Ug(Lg(k.document).o);
a=-1==c.width||-12245933==c.width?new te(c.width,c.width,c.width,c.width):new te(d.y,d.x+c.width,d.y+c.height,d.x)}catch(m){a=e;break a}e.L=a;e.o=!0}a=e}return a},EQ=function(a,b){var c;
if(!NQ)if(window.clearTimeout(OQ),OQ=null,0==a.length)b||PQ();else{var d=Ica();try{var e=sP();if(d.D)for(c=0;c<a.length;c++)dQ(a[c],e,b);else if(d.J)for(c=0;c<a.length;c++)dQ(a[c],e,b);else if(d.G)for(c=0;c<a.length;c++)tca(a[c],e,d.A,d.C,b);else if(d.F)for(c=0;c<a.length;c++)vca(a[c],e,b);else if(d.H)F(a,function(a){if(b){if(a.A){var c=a.A;3<=c.B&&(c.B=3);a.ca=-1}}else if(a.A&&"d"!=a.A.getStatus()){var c=kca(a.A),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.ca=eQ(d[c.A+1]);a.Ae(a.position,e,
a.D+c.o,!1,!0,!1);!a.ne()||a.Rl()||a.zi||a.A&&IP(a.A);(c=2==c.snapshot||MP(a.A))||(c=a.A,c="f"==c.o&&c.D>=c.K);c&&(a.Xp(a),a.zi=!1,a.A&&IP(a.A))}});
else if(d.K)for(c=0;c<a.length;c++)gQ(a[c],e,b,W);else if(d.o){var f=qP.getInstance();for(c=0;c<a.length;c++)wca(a[c],e,d.L,b,f.A)}++Jca}finally{b?F(a,function(a){a.C=0}):PQ()}}},Fca=function(){var a=BQ,b=kP();
b&&(QQ=QQ||mP(jP,b,a,"osd_or_lidar::visibility"))},BQ=function(){var a=rQ();
if(a){if(!tP){var b=sP();uP=b;F(RQ,function(a){a.Vd=pQ(a,b)})}tP=!0;
DQ(!0)}else b=sP(),tP=!1,sQ=b,F(RQ,function(a){-1!=a.D&&(a.ra=b)});
EQ(FQ(),!a)},rQ=function(){if(Kca())return!0;
var a=iP(W.document);return 1==a||0==a},PQ=function(){W&&(OQ=W.setTimeout(hP("osd_or_lidar::psamp_to",function(){EQ(FQ(),!1)}),aca()))},Lca=function(a){return eb(RQ,function(b){return b.F==a})},FQ=function(){return 0==RQ.length?SQ:0==SQ.length?RQ:rb(SQ,RQ)},Mca=function(){var a=W.document;
return a.body&&a.body.getBoundingClientRect?!0:!1},DQ=function(a){var b=qP.getInstance();
b.o=pP(W,GQ);if(!a){b.C=W&&W.outerWidth?new ue(W.outerWidth,W.outerHeight):new ue(-12245933,-12245933);var c;a=W;a.top!=a&&(a=a.top);var d=0,e=0,f=qP.getInstance().o;try{var k=a.document,m=k.body,l=k.documentElement;if("CSS1Compat"==k.compatMode&&l.scrollHeight)d=l.scrollHeight!=f.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=f.width?l.scrollWidth:l.offsetWidth;else{var n=l.scrollHeight,t=l.scrollWidth,u=l.offsetHeight,x=l.offsetWidth;l.clientHeight!=u&&(n=m.scrollHeight,t=m.scrollWidth,u=
m.offsetHeight,x=m.offsetWidth);n>f.height?n>u?(d=n,e=t):(d=u,e=x):n<u?(d=n,e=t):(d=u,e=x)}c=new ue(e,d)}catch(A){c=new ue(-12245933,-12245933)}b.B=c}},Nca=function(a,b){if(1<=Math.random())return!1;
var c=!1;F(RQ,function(b){b=hQ(b,a,3);c=c||b});
(MQ=c)&&F(RQ,function(a){iQ(a)||b(a)});
return c},Oca=function(a){var b=!1;
F(RQ,function(c){c=fQ(c,a,p(1)&&1>Math.random()?3:1);b=b||c});
(LQ=b)&&F(RQ,function(b){b.A||a(b)});
return b},Pca=function(a){F(a,function(a){null==eb(RQ,function(c){return c.element==a.element&&c.jg==a.jg})&&RQ.push(a)})},Kca=function(){return zh(RQ,function(a){return a.G})},HQ=function(){this.A=this.B=null;
this.C=0;this.L=null;this.o=this.K=this.H=this.F=this.G=this.D=this.J=!1},TQ=function(){this.A=-1;
this.A=64;this.o=Array(4);this.D=Array(this.A);this.C=this.B=0;this.reset()},UQ=function(a,b,c){c||(c=0);
var d=Array(16);if(w(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.o[0];c=a.o[1];var e=a.o[2],f=a.o[3],k=0,k=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[3]+3250441966&4294967295;
c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[10]+4294925233&4294967295;
e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[6]+3225465664&
4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[9]+568446438&
4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[12]+2368359562&
4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(k<<
16&4294967295|k>>>16);k=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[12]+3873151461&4294967295;f=b+(k<<11&4294967295|k>>>21);
k=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+
(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[13]+1309151649&4294967295;c=e+(k<<21&4294967295|k>>>11);
k=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.o[0]=a.o[0]+b&4294967295;a.o[1]=a.o[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.o[2]=a.o[2]+e&4294967295;a.o[3]=a.o[3]+f&4294967295},VQ=function(a,b,c){b=b||",$";
"string"==typeof b&&(b=b.split(""));c=c||0;if(!(a instanceof Array)||c>=b.length)return(0,window.encodeURIComponent)(""+a);for(var d=[],e=0;e<a.length;e++)d.push(VQ(a[e],b,c+1));return d.join(b[c])},Rca=function(){var a=nP(),b=a.length-1,c=oP(a),a=c.o,d=c.A,c=[];
d?(a&&c.push(WQ(b,[d.url,2],0,[a.url,0],a.depth)),c.push(WQ(b,[d.url,2],0))):a&&a.url&&(c.push(WQ(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=Qca.exec(a.url))&&d[0]||"")&&c.push(WQ(b,[d,1],a.depth)));c.push(WQ(b));return c},WQ=function(a,b,c,d,e){a=[a];
if(p(b)&&p(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(p(d)&&p(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a},XQ=function(){var a=Rca();
return ji(a,function(a){return VQ(a)})},Sca=function(a){if(!a)return"";
var b=a.document,c=[];c.push("url="+(0,window.encodeURIComponent)(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+(0,window.encodeURIComponent)(b.referrer.substring(0,512)));return c.join("&")},YQ=function(){this.D=this.B=this.A=this.F=this.C=!1;
this.o={};this.o.start=this.uy;this.o.firstquartile=this.hy;this.o.midpoint=this.my;this.o.thirdquartile=this.vy;this.o.complete=this.cy;this.o.pause=this.qy;this.o.resume=this.ry;this.o.skip=this.ty;this.o.viewable_impression=this.yy;this.o.mute=this.oy;this.o.unmute=this.wy;this.o.fullscreen=this.iy;this.o.exitfullscreen=this.gy;this.o.fully_viewable_audible_half_duration_impression=this.jy;this.o.measurable_impression=this.ly;this.o.abandon=this.by;this.o.engagedview=this.fy;this.o.impression=
this.ky;this.o.creativeview=this.ey},Uca=function(a){if(!a.C){a.C=!0;
try{rP=sP(),1>Math.random()&&(a.D=!0),ZQ=Yba(),DQ(!1),Mca()?(window.setTimeout(function(){},1),qP.getInstance().A?Tca(a):CQ()):$Q=!0}catch(b){throw RQ=[],SQ=[],b;
}}},Tca=function(a){var b;
if(Rq&&ga(W.screenX)&&ga(W.mozInnerScreenX)&&ga(W.outerWidth)){var c=W.navigator.userAgent,d=c.indexOf("Firefox/");b=-1;if(0<=d){b=Math.floor(c.substr(d+8))||-1;var e=c.indexOf("Mac OS X 10."),d=-1;0<=e&&(d=Number(c.substr(e+12,1))||-1);var f=0<d?-1:c.indexOf("Windows NT "),e=-1;0<=f&&(e={"6.0":0,"6.1":1,"6.2":2}[c.substr(f+11,3)]||-1);c=148;5<=d?c=4<=b?108:3<=b?127:108:0<=e&&(16==b||17==b||18==b)&&(c=[[146,146,146],[148,147,148],[131,130,136]][e][b-16]);b=c}else b=null;null!==b&&(JQ=b,IQ=!0);b=!0}else b=
!1;if(b)CQ();else if(b=W&&W.document,b=Tg&&wc(8)&&ha(AP(b))?KQ=!0:!1,b)a.F=1>Math.random(),CQ();else{if(CP()){if(Nca(W,y(a.xl,a))){CQ();a.B=!0;return}}else if(Oca(y(a.xl,a))){CQ();a.A=!0;return}window.clearTimeout(OQ);OQ=null;aR="i";NQ=!0}},bR=function(a,b){a.Vd=pQ(a,sP());
var c=!rQ();EQ([a],c);a.La=!0;return tQ(a,b)},Vca=function(a,b,c){if(!b.zr){b.zr=!0;
"i"!=aR&&(NQ=!1);if(a.A&&!b.A&&!b.Sa){var d=1>Math.random()?3:1;fQ(b,y(a.xl,a),d)}if(a.B&&!iQ(b)){a:{a=[3,1];if(!(1E-4>Math.random())&&(d=Math.random(),1>d)){var e=window;try{var f=new window.Uint32Array(1);e.crypto.getRandomValues(f);d=f[0]/65536/65536}catch(k){d=Math.random()}d=a[Math.floor(d*a.length)];break a}d=null}hQ(b,W,d)}b.J={};b.J.firstquartile=!1;b.J.midpoint=!1;b.J.thirdquartile=!1;b.J.complete=!1;b.J.pause=!1;b.J.skip=!1;b.J.viewable_impression=!1;b.dc=0;c=p(c)?c.opt_nativeTime:void 0;
vP=c=ga(c)?c:sP();b.D=c;f=!1;rQ()||(f=!0,b.ra=c);EQ([b],f)}},cR=function(a){if(w(a)){var b=db(RQ,function(b){return b.F==a});
0<=b&&(xca(RQ[b]),ob(RQ,b))}},Wca=function(a,b,c){var d=eb(RQ,function(a){return a.element==c});
null!==d&&d.F!=b&&(cR(d.F),d=null);d||(d=dR(a,c),d.F=b,d.L="h");return d},dR=function(a,b){var c;
c=new mQ(W,b,-1,7);c.uf=y(a.wl,a);qP.getInstance().F=79463069;Pca([c]);CQ();return c},Xca=function(a,b){var c=Zb(eR,function(b){return b==a}),c={v:"429v",
e:fR[c]},d=tQ(b,a);hc(c,d);b.rf[a]=d;return gR(c,hR)},gR=function(a,b,c,d,e){var f={};
if(p(a))for(var k in b){var m=b[k];k in Object.prototype||null!=m&&(ha(m)?f[k]=m(a):f[k]=a[m])}p(c)&&hc(f,c);a=cca(f);p(d)&&p(e)&&(e=e(a),a+="&"+d+"="+e);return a},Zca=function(a,b,c,d){var e=b.toLowerCase();
if(b=Zb(eR,function(a){return a==e})){b={v:"429v",
e:fR[b]};if($Q)return b.msg="ue",b;c=a.Yo(c,d);b.nas=RQ.length;if(!c)return b.msg="nf",b;Uca(a);"i"==aR&&(c.Wa=!0,a.Dm(c));a.F&&Bca(c);var f=d.opt_fullscreen;p(f)&&(c.G=!!f);jb(Yca,e)&&(Vca(a,c,d),a.D&&a.ep(c));if(f=a.o[e])if(a=f.call(a,c,d),p(a))return hc(b,a),b}},iR=function(a,b){var c=a[b];
p(c)&&(a[b]=Math.floor(1E3*c))},jR=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1},lR=function(a){return!!(1<<a&kR)},dda=function(){try{$ca()}catch(d){}var a="a=1&b="+kR+"&",b=[],c=99;
F(ada,function(a,c){var f=!1;try{f=a(W)}catch(k){}b[c/32>>>0]|=f<<c%32});
F(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});
c=105;F(bda,function(b){var e="false";try{e=b(W)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
F(cda,function(b){var e="";try{var f=b(W);b=[];for(var k=0,m=0;m<f.length;m++){for(var l=f.charCodeAt(m);255<l;)b[k++]=l&255,l>>=8;b[k++]=l}e=WH(b,!0)}catch(n){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)},$ca=function(){if(!mR){var a=function(){nR=!0;
W.document.removeEventListener("webdriver-evaluate",a,!0)};
W.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){oR=!0;W.document.removeEventListener("webdriver-evaluate-response",b,!0)};
W.document.addEventListener("webdriver-evaluate-response",b,!0);mR=!0}},pR=function(){YQ.call(this)},fda=function(a,b,c){var d=eb(RQ,y(function(a){return a.element?qR(a.element,c)==b&&a.jg==c:!1},a));
null!==d&&d.F!=b&&(cR(d.F),d=void 0);if(d)return d;d=eda(c);if(d=eb(d,y(function(a){return qR(a,c)==b},a)))return d=dR(a,d),d.L="as",d.F=b,d.jg=c,d},eda=function(a){var b=W.document,c=Kb(ji(["embed",
"object"],function(a){return sb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=ae(c,function(a){if(!a||!jh(a)||!ha(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ha(a[d])?!0:!1})},qR=function(a,b){var c="metricID"+b;
if(!a||!a[c]||!ha(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID},rR=function(a,b){qP.getInstance();
var c;switch(a.L){case "h":c=r("ima.common.triggerExternalActivityEvent");break;case "a":c=r("ima.common.triggerExternalActivityEvent");break;case "n":c=r("ima.bridge.triggerExternalActivityEvent");break;case "as":var d="triggerExternalActivityEvent"+a.jg;a.element&&ha(a.element[d])&&(c=function(b,c,e){a.element[d](e)});
break;default:return a.O|=4,!1}if(ha(c)){var e=Xca(b,a);try{return c(a.F,e,b),!0}catch(f){a.O|=2}}else a.O|=1;return!1},gda=function(a){var b=new TQ;
b.update(a+"kArwaWEsTs");var c=Array((56>b.B?b.A:2*b.A)-b.B);c[0]=128;for(a=1;a<c.length-8;++a)c[a]=0;var d=8*b.C;for(a=c.length-8;a<c.length;++a)c[a]=d&255,d/=256;b.update(c);c=Array(16);for(a=d=0;4>a;++a)for(var e=0;32>e;e+=8)c[d++]=b.o[a]>>>e&255;return SH(c).slice(-8)},hda=function(a,b,c){a=qP.getInstance();
if(a.D!=b){a.D=b;var d=zh(RQ,function(a){return a.kq});
F(RQ,function(a){b||d||(a.D=c);a.tf=b;a.kq=!1})}},sR=function(){var a={};
a.moatInit=dda();return a},tR=function(a,b,c){var d={},e=pR.getInstance(),f={};
hc(f,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});a=f.opt_bounds?{v:"429v",e:a,msg:"ol"}:Zca(e,a,b,f);d.viewability=gR(a,hR);b=null!=a&&1==a.tcm;c=kR=(new Date).getTime();e=lR(5);c=(nR?!e:e)?c|2:c&-3;e=lR(2);c=(oR?!e:e)?c|8:c&-9;c={s1:(c>>>0).toString(16)};d.moatViewability=b?gR(a,ida,c,"h",gda):gR(a,jda,c);d.googleViewability=gR(a,kda,c);return d},uR=function(){J.call(this);
this.o=null;this.D=new Am(this);I(this,this.D);this.F=null;this.K=new Je;this.J=new Je;this.B=this.C=null;this.A=!1;this.G=(ha(null),null)},wR=function(){null!=vR||(vR=new uR);
return vR},yR=function(a){if(null==a)return!1;
if(oO()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=xR(a);return 0>=b-a.width&&42>=c-a.height},xR=function(a){return ha(a.getBoundingClientRect)&&mh(Jg(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,
top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},lda=function(a,b){a.C=b},AR=function(a,b,c,d,e){if(a.A){if(a.G)return a.G(b,c,e);
e=e||{};if(d=d?a.J.get(d):KN.B)null!=e.opt_fullscreen||(e.opt_fullscreen=yR(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.C&&(e.opt_bounds=xR(a.C));return dP(eP,"lidar::handlevast_html5",qa(tR,b,c,e),void 0,zR)||{}}return{}},mda=function(){var a=wR();
if(!a.A)return null;if(null!=a.B)return a.B;a.B=dP(eP,"lidar::getinitsignals_html5",sR,void 0,zR)||null;return a.B},BR=function(a){if(ha(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};
b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.o.send("activityMonitor","pageSignals",b)}},nda=function(a,b,c){if(!KN.C)return"";
var d=b?a.J.get(b):KN.B;a={};null!=c&&(a.fullscreen=c);c="";try{c=Vba(function(){return d},a)}catch(e){c="sdktle;"+Ma(e.name,12)+";"+Ma(e.message,40)}return c},CR=function(a,b,c){if(kb(a))return null;
a=ae(a,function(a){var b=a.B;return"application/x-mpegurl"==E(a.o).toLowerCase()||"progressive"==b});
kb(c)||(c=ji(c,function(a){return a.toLowerCase()}),a=ae(a,function(a){return jb(c,E(a.o).toLowerCase())}));
if(!ga(b)||0>=b)b=lO()?500:1E3;return oda(a,b)},oda=function(a,b){return pda(a,b)||qda(a,b)||rda(a,b)},pda=function(a,b){var c=null;
F(a,function(a){var e=a.qe,f=a.pe;e>b||f<b||!(null==c||c.qe>e)||(c=a)});
return c},qda=function(a,b){var c=null;
F(a,function(a){var e=a.qe,f=a.pe;f>b||(null==c||c.pe<f?c=a:null!=c&&c.pe==f&&c.qe>e&&(c=a))});
return c},rda=function(a,b){var c=null;
F(a,function(a){var e=a.qe,f=a.pe;if(!(e<b))if(null!=c&&c.qe==e&&c.pe<f)c=a;else if(null==c||c.qe>e)c=a});
return c},DR=function(){J.call(this);
this.F=this.J=this.M=this.G=!1;this.A=0;this.C=[];this.H=!1;this.S=this.O=window.Infinity;this.B=0;this.L=!1;this.D=new Am(this);this.K={}},ER=function(a,b){null==b||a.G||(a.o=b,sda(a),a.G=!0)},GR=function(a){null!=a.o&&a.G&&(FR(a),a.G=!1,a.J=!1,a.F=!1,a.A=0,a.C=[],a.H=!1)},sda=function(a){FR(a);
!(a.o instanceof J)&&"ontouchstart"in window.document.documentElement&&pO()?(a.K={touchstart:y(a.PC,a),touchmove:y(a.OC,a),touchend:y(a.NC,a)},Ob(a.K,function(a,c){this.o.addEventListener(c,a,!1)},a)):a.D.R(a.o,"click",a.np)},FR=function(a){a.D.za(a.o,"click",a.np);
Ob(a.K,function(a,c){this.o.removeEventListener(c,a,!1)},a);
a.K={}},tda=function(a,b){a.C=[];
F(b,function(a){nb(this.C,a.identifier)},a)},HR=function(a,b){return zh(b,function(a){return jb(this.C,a.identifier)},a)},IR=function(a){null!=a?WN(uda,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=XN(a)?vda(a):null:a=null;
return a},JR=function(a,b,c){if(null==a)return null;
c=new N((null!=c?c:"//www.youtube.com/")+"watch");var d=c.o;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");sf(c,d);return c.toString()},KR=function(a){return null===a?!1:"pharma"==(new N(a)).Xe().toLowerCase()},vda=function(a){if(C(E(a)))return null;
var b=a.match(/^https?:\/\/[^\/]*youtu\.be\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/video\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/watch\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];a=(new N(a)).o;return Jf(a,"v")?a.get("v").toString():Jf(a,"video_id")?a.get("video_id").toString():null},wda=function(a){return C(E(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"},LR=function(){J.call(this)},
MR=function(a){J.call(this);
this.o=a;this.Y=new wm(4);this.B=0;this.S=this.C=this.L=this.H=!1;this.M=this.hd();this.K=this.ke();this.Z=15E3;this.O=!1},OR=function(a){a.L=!1;
a.C=!1;a.H=!1;a.B=0;a.S=!1;a.Y.clear();NR(a);Mb(a.D)},QR=function(a){a.C||(a.C=!0,NR(a),a.aa("start"),wO()||!JH||JH&&sO(vO,3)||oO()&&(!pO()||!sO(PR,4))||a.Fl())},RR=function(a){for(var b=a.o.buffered.length-1;0<=b;){if(a.o.buffered.start(b)<=a.o.currentTime)return a.o.buffered.end(b);
b--}return 0},NR=function(a){a.J&&(Vd(a.J),a.J=null)},TR=function(){J.call(this);
this.A=new SR;this.o=new Am(this);var a=HN();if(a){a:{if(Yb(a.o,"videoElementMockDuration")&&(a=a.o.videoElementMockDuration,ga(a)))break a;a=window.NaN}this.duration=a}},xda=function(){var a=["video/mp4"],b=["video/ogg"],c=new TR;
c.canPlayType=function(c){return jb(a,c)?"probably":jb(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c},yda=function(a){this.startTime=0;
this.endTime=a},SR=function(){this.length=0;
this.o=[]},UR=function(){throw Error("Do not instantiate directly");
},VR=function(){UR.call(this)},WR=function(){UR.call(this)},XR=function(a,b){var c;
a:{var d=a(b||zda,void 0,void 0);c=Lg().createElement("DIV");d=Ada(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c},Ada=function(a){if(!ia(a))return String(a);
if(a instanceof UR){if(a.ad===YR)return a.getContent();if(a.ad===ZR)return Ga(a.getContent())}return"zSoyz"},$R=function(a,b){return null!=a&&a.ad===b},aS=function(a){if(null!=a)switch(a.Dd){case 1:return 1;
case -1:return-1;case 0:return 0}return null},bS=function(){UR.call(this)},X=function(a){return null!=a&&a.ad===YR?a:a instanceof wg?cS(xg(a),a.Ff()):cS(Ga(String(String(a))),aS(a))},dS=function(){UR.call(this)},eS=function(){UR.call(this)},fS=function(){UR.call(this)},gS=function(){UR.call(this)},hS=function(){UR.call(this)},iS=function(a,b){this.content=String(a);
this.Dd=null!=b?b:null},jS=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}},mS=function(a,b,c){var d="key_"+a+":"+b,e=kS[d];
if(void 0===e||0>e)kS[d]=0,lS[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');},nS=function(a,b){var c=lS["key_"+a+":"+b];
c||""==b||(c=lS["key_"+a+":"]);return c?c:Bda;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');},Bda=function(){return""},rS=function(a){return $R(a,YR)?String(String(a.getContent()).replace(oS,"").replace(pS,"&lt;")).replace(Cda,qS):Ga(String(a))},sS=function(a){return $R(a,YR)?String(String(a.getContent()).replace(oS,"").replace(pS,"&lt;")).replace(Dda,qS):String(a).replace(Eda,qS)},Fda=function(a){return"%"+a.charCodeAt(0).toString(16)},
uS=function(a){a=wa(String(a));
tS.lastIndex=0;return tS.test(a)?a.replace(tS,Fda):a},AS=function(a){if($R(a,vS)||$R(a,wS))return xS(a);
a instanceof mg?a=xS(ng(a)):a instanceof sg?a=xS(tg(a)):(a=String(a),a=Gda.test(a)?a.replace(yS,zS):"#zSoyz");return a},BS=function(a){if($R(a,vS)||$R(a,wS))return xS(a);
a instanceof mg?a=xS(ng(a)):a instanceof sg?a=xS(tg(a)):(a=String(a),a=Hda.test(a)?a.replace(yS,zS):"about:invalid#zSoyz");return a},DS=function(a){var b=CS[1]||(CS[1]=new NA(1)),c=aS(a);
null==c&&(c=dg(a+"",$R(a,YR)));return Ida(c!=b.o?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")},qS=function(a){return Jda[a]},zS=function(a){return Kda[a]},xS=function(a){return String(a).replace(yS,zS)},Lda=function(a,b,c){return""+nS("a",a.xi)(a,null,c)},Mda=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+X(DS(a.Yc))+">"+X(a.Yc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'},
Nda=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+X(DS(a.Yc))+">"+X(a.Yc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+X(a.dg)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'},Oda=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'},
ES=function(a){return""+nS("b",a.xi)(a,null,void 0)},Pda=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button tabindex="1" class="videoAdUiSkipButton videoAdUiAction">'+X(a.$D)+'<div class="videoAdUiSkipIcon"></div></button></div>'},FS=function(a){var b="";
a=2<=a.Fj&&1<=a.Yh?sa("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:X(a.Yh),totalAds:X(a.Fj),timeLeft:X(a.Bj)}):sa("Ad {$timeLeft}",{timeLeft:X(a.Bj)});return b+=a},HS=function(){var a=GS(),b=cS("</a>"),a=sa("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:X(a),
endFormat:X(b)});return cS(""+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))},GS=function(){return cS('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')},IS=function(a){return cS("<div class='videoAdUiPopupBackground'><div class='videoAdUiPopupCloseIcon'><svg height=\"100%\" viewBox=\"0 0 24 24\" width=\"100%\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" fill=\"#fff\"></path></svg></div><div class='videoAdUiPopupPositioner'><form class='videoAdUiPopupFrame'><div class='videoAdUiPopupHeading videoAdUiHideIfEmpty'>"+
X(a.heading)+"</div><div class='videoAdUiPopupText'>"+X(a.message)+"</div><div class='videoAdUiPopupButtons'>"+X(a.buttons)+"</div></form></div></div>")},Qda=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.targetingReasons,d=c.length,e=0;e<d;e++)b+="<li>"+X(c[e])+"</li>";
b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+X(a.Tk)+"</div><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+X(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+X(a.control)+"</a>";a=""+IS({heading:JS(""+X(a.heading)),message:JS(b),buttons:JS("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+X(a.close)+"</button>")});return cS(a)},Rda=function(a){for(var b=""+X(a.question),
c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+rS(e)+"'><input type='radio' id='videoAdUiMuteOption"+rS(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+rS(e)+"' />"+X(f)+"</label>");
a=""+IS({heading:JS(X(a.heading)+" <a class='videoAdUiMuteUndo'>"+X(a.undo)+"</a>"),message:JS(b),buttons:JS("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+X(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+X(a.confirm)+"</button>")});return cS(a)},Sda=function(a){var b=String(""+a.heading);
return cS(IS({heading:b?new iS(b,void 0):"",message:JS(""+X(a.message)),buttons:JS("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+X(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+X(a.confirm)+"</button>")}))},Tda=function(){return cS('<div class=\'videoAdUiMuteToggleButton\'><div class=\'videoAdUiMutedIcon\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9.6314915,5.9285684 L10.6837982,4.9386188 L12.8157457,6.9442323 L14.9476933,4.9386188 L16,5.9285684 L13.8680525,7.9341818 L16,9.9397952 L14.9476933,10.9297447 L12.8157457,8.9241313 L10.6837982,10.9297447 L9.6314915,9.9397952 L11.7634391,7.9341818 L9.6314915,5.9285684 Z" fill="#fff"></path></svg></div><div class=\'videoAdUiUnmutedIcon\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9,11.4457379 C10.7427023,10.9390412 12,9.5931906 12,7.9969959 C12,6.4008011 10.7427023,5.0549506 9,4.5492552 L9,11.4457379 Z" fill="#fff"></path><path d="M14.2494529,8 C14.2494529,11.0361747 12.0131291,13.5866817 9,14.3156841 L9,16 C12.9934354,15.2419577 16,11.9484291 16,8 C16,4.0505695 12.9934354,0.7570409 9,0 L9,1.6833146 C12.0131291,2.4123169 14.2494529,4.9638253 14.2494529,8 L14.2494529,8 Z" fill="#fff"></path></svg></div></div>')},
LS=function(a,b,c){if(null==a||!mh(Jg(a),a))throw hO(KS,null,"containerElement","element");
this.D=a;this.A=this.o=null;this.C=b;this.F=c||!1;this.B=null;this.o=O("div",{style:"display:none;"});a=HN();IN(a,"useVideoElementMock")?(a=xda(),b=O("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),ra(b,a),a.Kg=O("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.Aj=O("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),a.Kg.appendChild(a.Aj),b.appendChild(a.Kg),a.o.R(a,["loadeddata","playing",
"pause","ended"],a.dD),a=b):a=O("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:""+sa("Advertisement")});a.setAttribute("webkit-playsinline",!0);this.A=a;this.D.appendChild(this.o);this.o.appendChild(this.A);this.C&&(a=O("div",{id:this.C,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.o.appendChild(a));this.F&&(this.B=O("div",{style:"position:absolute;width:100%;height:100%;"}),this.o.appendChild(this.B))},OS=function(a){J.call(this);
this.O="ima-chromeless-video";var b=null;null!=a&&(w(a)?this.O=a:b=a);this.S=new Am(this);this.F=null;this.C=!1;this.ia=this.hd();this.ha=this.ke();this.K=-1;this.da=!1;this.G=-1;this.B=this.ca=this.L=null;this.Z="";this.o=!1;this.ea=null!=b;this.na=this.M=this.fa=this.A=null;this.D=void 0;this.H=this.la=null;this.J=this.ua=0;this.ea?(this.o=!0,this.A=b,this.D=2):(a=y(this.Ww,this),MS?a():(NS.push(a),a=window.document.createElement("script"),a.src="https://www.youtube.com/iframe_api",b=window.document.getElementsByTagName("script")[0],
b.parentNode.insertBefore(a,b)))},PS=function(a,b,c){var d={autoplay:"1"};
if(null!=a.B){var e=a.B.F;null!=e&&(d.agcid=e);e=a.B.C;null!=e&&(d.adformat=e);e=a.B.D;null!=e&&(d.ad_query_id=e);(e=a.B.G)&&(d.cta_conversion_urls=e);a.B.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.B.K?1:3;a.B.H&&(d.noiba=1);a.B.M&&(d.utpsa=1);a.B.L&&(d.autoplay="1");a.B.B&&hc(d,a.B.B)}e=IR(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(null===c?"":c):d.videoId=e;!V()&&SN(QN(),41351017)&&(d.enabled_engage_types="3,4,5");
a.C=!1;a.B&&a.B.A?(a.la=d,a.A.preloadVideoByPlayerVars(a.la)):a.A.cueVideoByPlayerVars(d);a.aa("loaded")},QS=function(a){a.S.za(a.F,"tick",a.Aq);
null!=a.F&&(a.F.stop(),a.F=null)},RS=function(a){null!=a.ra&&Vd(a.ra)},SS=function(a){J.call(this);
this.sessionId=a||Xa();this.A=[]},TS=function(a,b,c,d,e){jc.call(this,a);
this.Bc=b;this.Md=c;this.mp=d;this.B=e},US=function(a,b){SS.call(this,b);
this.B=a;this.Qc=null;this.C=new Am(this);this.logger=null;this.C.R(Vg(),"message",this.receive)},VS=function(a){if(null==a||!w(a)||!ua(a,"ima://"))return null;
a=a.substr(6);try{return de(a)}catch(b){return null}},Uda=function(a,b,c,d){var e={};
e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.sessionId;e.channel=a.B;return"ima://"+ge(e)},WS=function(a,b){if(null==b)return!1;
var c=b.channel;if(null==c||c!=a.B)return!1;c=b.sid;return null==c||"*"!=a.sessionId&&c!=a.sessionId?!1:!0},XS=function(a,b){J.call(this);
this.C=a;this.B=b;this.o={};this.A=new Am(this);this.A.R(Vg(),"message",this.D)},ZS=function(a,b,c,d){a.o.hasOwnProperty(b)||(c=new US(b,c),a.A.R(c,a.C,function(a){a=new YS(a.type,a.Bc,a.Md,a.mp,a.getOrigin(),b);
this.aa(a)}),c.Qc=d,c.connect(),a.o[b]=c)},YS=function(a,b,c,d,e,f){TS.call(this,a,b,c,d,e);
this.o=f},aT=function(){var a=r("google.ima.gptProxyInstance",Vg());
if(null!=a)return a;Am.call(this);this.B=new XS("gpt",!0);I(this,this.B);this.R(this.B,"gpt",this.F);this.o=null;$S()||Vg().top===Vg()||(this.o=new XS("gpt",!1),I(this,this.o),this.R(this.o,"gpt",this.D))},$S=function(){return!!r("googletag.cmd",Vg())},bT=function(){var a=r("googletag.console",Vg());
return null!=a?a:null},cT=function(a,b,c,d,e,f,k,m,l,n,t,u,x){this.C=a;
this.D=n;this.F=b;this.G=d;this.H=m;this.J=u;this.K=e;this.M=f;this.L=x;this.o=k;this.A=l;this.B=t},Vda=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();
if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,m,l,n,t,u){if("%"==n)return"%";var x=c.shift();if("undefined"==typeof x)throw Error("[goog.string.format] Not enough arguments");arguments[0]=x;return dT[n].apply(null,arguments)})},eT=function(a,b){J.call(this);
this.C=new Am(this);this.H=!1;this.J=Xa();this.F=new Je;var c=this.J,d=("https:"==window.document.location.protocol?"https:":"http:")+Vda("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en"),e;a:{var f=window;try{do{try{if(0==f.location.href.indexOf(d)||0==f.document.referrer.indexOf(d)){e=!0;break a}}catch(k){}f=f.parent}while(f!=f.top)}catch(k){}e=!1}e&&(d+="?f="+c);c=O("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Gm(this.C,c,"load",this.wx);
a.appendChild(c);this.A=c;c=this.F.get("*");null==c&&(c=new US(this.J,"*"),this.H&&(c.Qc=nh(this.A),c.connect()),this.F.set("*",c));this.D=c;this.G=b;this.o=this.G.F;this.B=null;this.C.R(this.D,"mouse",this.Nx);this.C.R(this.D,"touch",this.ay);null!=this.o&&(this.C.R(this.D,"displayContainer",this.Kx),this.C.R(this.D,"videoDisplay",this.Yx),this.C.R(this.o,Vb(Wda),this.cD));c=Vg();d=r("google.ima.gptProxyInstance",c);null==d&&(d=new aT,q("google.ima.gptProxyInstance",d,c))},fT=function(a,b){var c=
dr(a.A),d=ji(b,function(a){return window.document.createTouch(window,this.A,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);
return window.document.createTouchList.apply(window.document,d)},gT=function(a,b,c,d,e){if(!(e||null!=a&&mh(Jg(a),a)))throw hO(KS,null,"containerElement","element");
this.B=a;var f=e=null!=b||null!=d,k=!1;KN.o||(KN.o||pO()||JH&&(!JH||!sO(vO,4))||uO())&&e||(mO()||uO()||(k=!0),f=!1);this.D=f;this.H=k||f&&null!=d;KN.o?a=null:(e=O("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.A=a;this.o=this.D||!this.A||KN.o||!mO()?null:new LS(this.A,null,!0);a=null;this.D?b?a=new MR(b):d&&(a=new OS(d)):this.o&&(a=new MR(this.o.A));this.C=(this.F=a)?c||null:null;this.J=null!=this.C;xO.getInstance().o(8,{enabled:this.D,yt:null!=d,customClick:null!=this.C});
null===this.A?(b=this.B,KN.B=b):this.D&&b&&!ha(b.getBoundingClientRect)&&(b=this.B,KN.B=b);this.G=null==this.A||KN.o?null:new eT(this.A,this)},hT=function(a){return a.J&&a.C?a.C:null!=a.o?a.o.B:null},jT=function(a,b){var c=[],d="",e="";
if(null!=b){for(var d=b,e=[],f=0;d&&25>f;++f){var k;a:{if(d&&d.nodeName&&d.parentElement){k=d.nodeName.toString().toLowerCase();for(var m=d.parentElement.childNodes,l=0,n=0;n<m.length;++n){var t=m[n];if(t.nodeName&&t.nodeName.toString().toLowerCase()===k){if(d===t){k="."+l;break a}++l}}}k=""}e.push((d.nodeName&&d.nodeName.toString().toLowerCase())+""+k);d=d.parentElement}d=e.join();if(b){e=(e=b.ownerDocument)&&(e.defaultView||e.parentWindow)||null;f=[];if(e)try{var u=e.parent;for(k=0;u&&u!==e&&25>
k;++k){for(var x=u.frames,m=0;m<x.length;++m)if(e===x[m]){f.push(m);break}e=u;u=e.parent}}catch(A){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(u=0;u<iT.length-1;++u)c.push(kf(a,iT[u])||"");u=kf(a,"videoad_start_delay");x="";u&&(u=(0,window.parseInt)(u,10),x=0>u?"postroll":0==u?"preroll":"midroll");c.push(x)}else for(u=0;u<iT.length;++u)c.push("");c=c.join(":");u=c.length;if(0==u)c=0;else{x=305419896;for(d=0;d<u;d++)x^=(x<<5)+(x>>2)+c.charCodeAt(d)&4294967295;c=0<x?x:4294967296+x}return c.toString()},
kT=function(){J.call(this);
this.currentTime=0},lT=function(a){kT.call(this);
this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw hO(KS,null,"content","currentTime");this.A=a;this.o=new Sd(250);this.B=new Am(this);Dm(this.B,this.o,"tick",this.C,this)},mT=function(){this.reset()},nT=function(){this.A=this.o=null},pT=function(){this.o=oT();
this.J=-1;this.M=this.P=this.F=this.H=this.A=null;this.D=oT();this.C=null;this.S=this.K=this.L="";this.G=this.O=this.Y=this.B=null},oT=function(){return Math.floor(4503599627370496*Math.random())},qT=function(a){if(KN.o){var b;
return"h.3.0.0"}b="h."+a.S;null!=a.B&&(b+="/n."+a.B,null!=a.A&&(b+="/"+a.A));return b},sT=function(a,b){J.call(this);
this.o=a;this.F=!!b;this.B=rT(this);if(!this.B){var c=Tg&&!wc("7")?"readystatechange":"load";this.A=Oc(this.o,c,this.D,!1,this);this.C=window.setInterval(y(this.D,this),100)}},tT=function(a){a.C&&(window.clearInterval(a.C),a.C=null)},rT=function(a){var b=!1;
try{if(a.F||!Tg||wc("11"))var c=a.o,d=(c.contentDocument||c.contentWindow.document).body,b=a.F?!!d&&!!d.firstChild:!!d;else b="complete"==a.o.readyState}catch(e){}return b},uT=function(){J.call(this);
this.C=!1;this.impressionUrls=[]},vT=function(a,b,c){jc.call(this,a);
this.B=b||null;this.o=c||null},wT=function(a,b){this.H=a;
this.G=ji(b,function(a){return a.clone()});
this.F="";this.o=null;this.A=this.C=0;this.B=!0;this.D=[]},xT=function(a,b,c,d,e){a.F="<div></div>";
a.o=b;a.C=c;a.A=d;a.B=!1;a.D=e||[]},yT=function(a){a.F="";
a.o=null;a.C=0;a.A=0;a.B=!0;a.D=[]},zT=function(){uT.call(this);
this.H=[];this.F=!1;this.B="not_loaded";this.A=null;this.D=0;this.o=null;this.J=new Ig},AT=function(a){var b=["googletag",
"googletag.cmd"];return eb(a,function(a){return Se(b,function(b){return null!==r(b,a)})})||null},BT=function(a){return a.C?ji(a.H,function(a){return a.clone()}):[]},Xda=function(a){a=BT(a);
return null!=a?ji(a,function(a){return a.G}):void 0},DT=function(a,b,c){var d=0,e=0;
null!=b&&(b=new N(b.o),d=Number(b.o.get("pod")||0),e=Number(b.o.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(CT.o,d,e,c)}catch(f){}},Yda=function(a,b){var c=ET(a);
if(null!==c){DT(c,b,!0);try{c.refreshAllSlots()}catch(d){}}},FT=function(a,b){a.G=b;
a.setVideoContent("","");var c=ET(a);null===c||DT(c,null,!1)},ET=function(a){null==a.o&&GT(a);
return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.companionAds?a.o.googletag.companionAds():null},HT=function(a){null==a.o&&GT(a);
return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.pubads?a.o.googletag.pubads():null},IT=function(a){a.A&&(a.A.stop(),a.A.za("tick",a.Rq,!1,a),a.A.dispose(),a.A=null)},MT=function(a){if("retrieved"!=a.B&&"not_available"!=a.B&&null!==ET(a)){var b;
var c=ET(a);if(null!==c&&null!=c.getDisplayAdsCorrelator)try{b=c.getDisplayAdsCorrelator()}catch(f){b=null}else b=null;switch(b){case "not_loaded":case "not_available":a.B=b;break;default:b=Number(b),(0,window.isNaN)(b)?a.B="not_available":(a.G=b,a.B="retrieved")}}(b=JT(a))||(b=KT(a)&&"not_available"==a.B);if(b){if(!a.K&&KT(a)){var d;try{if(null==a.o)d=[];else{var e=a.o.googleGetCompanionAdSlots();d=ji(e,a.PD,a)}}catch(f){d=[]}a.H=d;a.K=!0}a.C=!0;IT(a);JT(a)?a.aa(new vT("companions_success")):LT(a)}else a.A||
(a.D=K()+5E3,a.A=new Sd(100),a.A.R("tick",a.Rq,!1,a),a.A.start())},JT=function(a){return KT(a)&&"retrieved"==a.B},KT=function(a){a.F||(GT(a),a.F=null!=a.o&&null!=a.o.googleGetCompanionAdSlots);
return a.F},GT=function(a){var b=wh(a.J);
try{a.o=AT([b,b.top])}catch(c){a.o=null}},LT=function(a){a.aa(new vT("companion_initialization_failed",Error("Partial or full service initialization failure.")))},Zda=function(a,b,c){var d=new sT(b,!0);
d.B?NT(a,c,b):Yc(d,"ifload",qa(function(a){NT(this,c,a)},b),!1,a)},NT=function(a,b,c){a.aa(new vT("companion_slot_init",null,b));
var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Oc(d,"click",y(a.IA,a,b),!1,a)},OT=function(a,b){jc.call(this,a);
this.o=b},PT=function(a){jc.call(this,a)},QT=function(){},ST=function(a,b){if(null==a||0>=a.width||0>=a.height)throw hO(KS,null,"ad slot size",a.toString());
this.A=a;this.o=null!=b?b:new QT;this.D=RT($da,this.o.B)?this.o.B:"All";this.C=RT(aea,this.o.creativeType)?this.o.creativeType:"All";this.G=RT(bea,this.o.C)?this.o.C:"SelectExactMatch";this.H=RT(cea,this.o.A)?this.o.A:"DisallowResize";this.B=null!=this.o.D?this.o.D:[];this.F=ga(this.o.o)&&0<this.o.o&&100>=this.o.o?this.o.o:90},VT=function(a,b){var c=[];
F(b,function(a){!C(E(a.o.C))&&((0,window.isNaN)(a.o.o)||(0,window.isNaN)(TT(a))||TT(a)==a.o.o)&&UT(this,a)?c.push(a):(a=dea(this,a),null!=a&&!C(E(a.o.C))&&c.push(a))},a);
return c},UT=function(a,b){var c;
if(c="Flash"!=b.getContentType()||WT){if(c="All"==a.D||a.D==b.o.da)c=b.getContentType(),c=null!=c?"All"==a.C||a.C==c:!0;c&&(c=b.B,c=kb(a.B)?!0:null!=c?0<=ib(a.B,c):!1)}if(c){var d=b.o.jc();if("IgnoreSize"==a.G||ve(a.A,d))c=!0;else if(c="SelectNearMatch"==a.G)"ResizeSmaller"==a.H&&(d=d.width<=a.A.width&&d.height<=a.A.height?d:XT(d,a.A)),c=d.width,d=d.height,c=c>a.A.width||d>a.A.height||c<a.F/100*a.A.width||d<a.F/100*a.A.height?!1:!0}else c=!1;return c},dea=function(a,b){var c=b.A;
return null!=c?eb(c,function(a){return UT(this,a)},a):null},XT=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);
return new ue(c*a.width,c*a.height)},RT=function(a,b){return null!=b&&Tb(a,b)},ZT=function(a){a=0>a?0:Math.round(a);
return 3600<=a?""+Math.floor(a/3600)+":"+("0"+Math.floor(a/60)%60).slice(-2)+":"+("0"+a%60).slice(-2):""+Math.floor(a/60)%60+":"+("0"+a%60).slice(-2)},eea=function(a){var b={};
F(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Ra(d[0]),d=Ra(d[1]),0<a.length&&(b[a]=d))});
return b},aU=function(a,b){if(a[b])return $T(a[b]);
var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return $T(a[d]);return!1},$T=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1},bU=function(a){N.call(this,a);
this.G=new Je;a=this.B;var b=a.indexOf(";"),c=null;0<=b?(rf(this,a.substring(0,b)),c=a.substring(b+1)):rf(this,a);fea(this,c)},fea=function(a,b){C(E(b))||F(b.split(";"),function(a){var b=a.indexOf("=");
if(0<b){var e=xa(a.substring(0,b));a=xa(a.substring(b+1));b=this.G.get(e);null!=b?jb(b,a)||b.push(a):b=[E(a)];this.G.set(e,b)}},a)},gea=function(a){if(C(E("ord")))return null;
a=a.G.get("ord");return null!=a?a:null},cU=function(a,b,c){C(E(b))||(c=ji(c,E),a.G.set(b,c))},dU=function(a,b){var c=[E(b)];
tb(c,hea(a));return c.join(";")},hea=function(a){var b=gea(a);
null!=b?C(E("ord"))||a.G.remove("ord"):b=[E(K())];var c=[];F(a.G.Qa(),function(a){F(this.G.get(a),function(b){tb(c,a+"="+b)})},a);
tb(c,"ord="+b[0]);cU(a,"ord",b);return c},fU=function(a){if(null==a)return!1;
a=new N(a);var b=a.B;return va(a.A,"googleads.g.doubleclick.net")&&eU("/pagead/(live/)?ads",b)},gU=function(a){a=a.o;
return null!=a?"bid.g.doubleclick.net"==(new N(a)).A:!1},hU=function(a){if(null==a)return!1;
var b=new bU(a);a=b.A;b=dU(b,b.B);return!va(a,".g.doubleclick.net")&&va(a,"doubleclick.net")&&eU("/(ad|pfad)[x|i|j]?/",b)},iU=function(a){if(null==a)return!1;
a=new N(a);var b=a.B;return va(a.A,"doubleclick.net")&&eU("/gampad/(live/)?ads",b)},iea=function(a){return fU(a.o)||hU(a.o)||iU(a.o)||gU(a)},jea=function(a){a=a.o;
if(null==a)return null;a=(new N(a)).o;return null!=a.get("ms")?E(a.get("ms")):null},eU=function(a,b){return C(E(b))?!1:(new RegExp(a)).test(b)},jU=function(a){return gO(kea,null,a.parentNode.nodeName,a.nodeName)},kU=function(a){return gO(lea,null,a.parentNode.nodeName,a.nodeName)},lU=function(a,b){return null!=a?ae(gh(a),function(a){return a.nodeName==b}):[]},mU=function(a,b){var c=a.getAttribute(b);
return null!=c?c.toLowerCase():null},nU=function(a,b){if(null==a)return null;
var c="";F(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});
c=Ra(c);return b?Ka(c):c},oU=function(a,b,c,d){null!=a&&F(gh(a),function(a){if(a.nodeName==b)c.call(d,a);
else throw jU(a);})},pU=function(a){return C(E(a))?window.NaN:Ya(E(a))},qU=function(a,b){if(null!=a){var c=a.split(":");
if(3==c.length)return c=new Gz(0,0,0,Ya(c[0]),Ya(c[1]),Ya(c[2])),60*(60*(24*c.o+c.A)+c.B)+c.C}return null!=b?b:-1},rU=function(a,b){if(!C(E(a)))switch(a.toLowerCase()){case "true":case "1":return!0;
case "false":case "0":return!1}return null!=b?b:!1},tU=function(a,b){if(b)return a;
var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ha(a,"/pagead/adview")?sU(a)?0:2:Ha(a,"/pagead/conversion")?sU(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+qT(CT);var d=a.indexOf("&adurl=");c=-1!=d?Qa(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c},sU=function(a){return Se(mea,function(b){var c=a||"";
return 0<=hf(c,0,b,c.search(jf))})},uU=function(a,b){this.o=a;
this.A=b},vU=function(a){return a.A?-1:a.o},wU=function(a,b){a.A&&(a.A=!1,a.o=a.o*b/100)},xU=function(){this.o=new Je},yU=function(a,b){this.A=a;
this.B=b},zU=function(a,b){yU.call(this,"progress",a);
this.o=b},BU=function(a,b){F(b,function(a){var b=a.getType().toLowerCase(),e=AU(this,b);
e.push(a);this.o.set(b,e)},a)},CU=function(a,b,c,d){b=b.toLowerCase();
var e=AU(a,b);null!=d?(d=new zU(c,d),null!=d?e.push(d):e.push(new yU(b,c))):e.push(new yU(b,c));a.o.set(b,e)},AU=function(a,b){return null!=b?a.o.get(b.toLowerCase())||[]:[]},nea=function(a,b){var c=AU(a,"progress");
F(c,function(a){wU(a.o,b)});
Cb(c,function(a,b){return vU(a.o)-vU(b.o)})},DU=function(a,b){return ji(AU(a,b)||[],function(a){return a.getUrl()})},GU=function(a,b,c){var d=new xU;
oU(a,"Tracking",function(a){var f=mU(a,"event"),k=tU(nU(a),b);EU(k)&&null!=f&&(null!=c&&(k=c(f,k)),"progress"==f?(a=mU(a,"offset"),a=FU(a),null!=a&&CU(d,f,k,a)):CU(d,f,k))});
return d},oea=function(a){if(C(E(a)))return null;
a=new N(a);if("thismessage"!=a.C||"extensions"!=a.A)return null;a=a.B;if(!ua(a,"/"))return null;a=a.substr(1);return C(E(a))?null:a},FU=function(a){if(C(E(a)))return null;
var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!(0,window.isNaN)(a)&&0<=a&&(b=new uU(a,!0))):(a=qU(a),0<=a&&(b=new uU(a,!1)));return b},EU=function(a){var b=!0;
if(C(E(a)))b=!1;else try{new N(a)}catch(c){b=!1}return b},HU=function(a,b){this.o=null!=a?a:new xU;
this.K=null!=b?b:[]},pea=function(a,b){var c=b.o;
F(c.Qa(),function(a){BU(this.o,c.get(a))},a)},IU=function(a,b){var c=DU(a.o,b);
return null!=c?c:[]},JU=function(a,b){HU.call(this);
this.A=a;this.B=b},KU=function(){},LU=function(a,b){HU.call(this,b);
this.A=a},MU=function(a){HU.call(this);
this.A=a},NU=function(a){HU.call(this);
this.A=(0,window.isNaN)(a)?-1:a},OU=function(){this.ia=-1;
this.G={};this.Xa="";this.Xf=new xU},PU=function(a,b,c){a.Xa=b;
a.G=c},QU=function(a,b){var c=[],d=a.Ei();
F(d,function(a){a=AU(a.Xf,b)||[];c=rb(a,c)},a);
return c},RU=function(a,b,c){var d=c||!1;
return eb(b.D,function(a){var b=a.o==this.o;return a instanceof this.constructor&&(d||b)},a)},TU=function(a,b,c,d,e){OU.call(this);
C(E(a))&&(a=Xa()+"_ima");this.ca=E(a);this.Fa=b;this.da=c;this.Z=d;this.C=e;this.L=[];null!=this.Z?this.xa=SU[this.Z]||"Other":this.xa=null},qea=function(){this.A=this.C=1;
this.o=this.B=0;this.D=1},UU=function(a,b,c,d){this.o=a;
this.A=b;this.B=c;this.C=null!=d?d:!1},TT=function(a){a=a.o.getAd().o;
return null!=a?a.o:window.NaN},VU=function(a,b){a.o.K=b;
F(a.A,function(a){VU(a,b)},a)},rea=function(a){return cS('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><div class="iv-endcap-image"><img src="'+rS(BS(a.image))+'"></div><div class="iv-endcap-headline" dir='+sS(a.dir)+">"+X(a.headline)+'</div><div class="iv-endcap-description" dir='+sS(a.dir)+">"+X(a.description)+'</div><a class="iv-endcap-action" href="'+rS(AS(a.target))+'" target="_blank" dir='+sS(a.dir)+">"+X(a.action)+'</a></div></div><div class="iv-endcap-bottom"><svg class="iv-endcap-countdown" viewBox="0 0 20 20"><circle class="iv-endcap-countdown-inner" r="5" cx="10" cy="10" /><circle class="iv-endcap-countdown-outer" r="10" cx="10" cy="10" /></svg></div></div>')},
sea=function(a,b,c){c=c||{};
var d='<div class="iv-cards-companion"><div class="iv-cards-attribution"><span class="yt-badge yt-badge-ad">Ad</span>'+(a.merchant&&a.Bb?'<a href="'+rS(AS(a.Bb))+'" target="_blank">Shop products from '+X(a.merchant)+"</a>":"")+'</div><div class="iv-cards-slider"><div class="iv-cards-slider-body"><ul class="iv-cards-slider-list">';b=a.cards;for(var e=b.length,f=0;f<e;f++){var k;k=b[f];k=cS('<div class="iv-cards-slider-unit"><a href="'+rS(AS(k.target))+'" target="_blank"><div class="iv-cards-slider-image"><img src="'+
rS(BS(k.image))+'"></div><div class="yt-ui-ellipsis yt-ui-ellipsis-4 iv-cards-slider-text">'+X(k.headline)+'</div><span class="iv-cards-slider-action">'+X(k.action)+"</span></a></div>");d+='<li class="iv-cards-slider-item">'+k+"</li>"}d+="</ul></div>"+(a.AE?'<button class="iv-cards-slider-button iv-cards-slider-prev" type="button" onclick="'+(c.Nk?"/*"+c.Nk+"*/":"")+';return false;"><span class="iv-cards-slider-prev-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+rS(a.so)+'" title="'+rS(a.so)+
'" /></button><button class="iv-cards-slider-button iv-cards-slider-next" type="button" onclick="'+(c.Nk?"/*"+c.Nk+"*/":"")+';return false;"><span class="iv-cards-slider-next-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+rS(a.fo)+'" title="'+rS(a.fo)+'"></span></button>':"")+"</div></div>";return cS(d)},WU=function(a,b,c){G.call(this);
this.A=a;this.B=b;this.F=c;this.D=0;this.o=new Am(this);tea(this)},tea=function(a){a.F.forEach(function(a,c){this.o.R(c,"mousedown",this.G);
this.o.R(c,"mouseup",this.J)},a);
a.o.R(a.B,"mouseover",a.H)},XU=function(a,b,c,d){if(d)c=a+("&"+b+"="+c);
else{var e="&"+b+"=",f=a.indexOf(e);0>f?c=a+e+c:(f+=e.length,e=a.indexOf("&",f),c=0<=e?a.substring(0,f)+c+a.substring(e):a.substring(0,f)+c)}return 2E3<c.length?p(void 0)?XU(a,b,void 0,d):a:c},YU=function(a,b){a[b]||(a[b]=[]);
return a[b]},ZU=function(a,b){return a[b]?a[b].length:0},$U=function(a,b){if(null==a||null==b)return null==a==(null==b);
if(a.constructor!=Array&&a.constructor!=Object)throw Error("Invalid object type passed into JsProto.areObjectsEqual()");if(a===b)return!0;if(a.constructor!=b.constructor)return!1;for(var c in a)if(!(c in b&&uea(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0},uea=function(a,b){if(a===b||!(!0!==a&&1!==a||!0!==b&&1!==b)||!(!1!==a&&0!==a||!1!==b&&0!==b))return!0;
if(a instanceof Object&&b instanceof Object){if(!$U(a,b))return!1}else return!1;return!0},bV=function(){var a=window.event||aV;
if(!a)return null;var b;(b=a.which?1<<vea[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b},cV=function(a,b,c){G.call(this);
this.A=a;this.D=b;this.K=c;this.C=0;this.o={};this.B=new Am(this);I(this,this.B);wea(this)},wea=function(a){F(a.K,function(a){this.B.R(a.element,"mousedown",this.G,!0);
this.B.R(a.element,"mouseup",qa(this.J,a),!0)},a);
a.B.R(a.D,"mouseenter",a.H)},xea=function(a,b){Ob(a.o,function(a,d){b=nf(b,d,a)});
return b},dV=function(a,b,c,d,e){TU.call(this,a,b,c,d,e);
this.ea=this.B=null;this.Ca=-2;this.A=null;this.La=this.O=v;this.S=[];this.Ka=[];this.D=!1},gV=function(a,b){a.A=b;
null!=a.B&&null!=b&&(eV(a,a.O),fV(a,a.La))},eV=function(a,b){null!=a.A&&null!=a.B&&F(a.S,function(a){this.A.za(a,"click",this.O);
!C(E(this.jd()))&&this.A.R(a,"click",b)},a);
a.O=b},fV=function(a,b){null!=a.A&&null!=a.B&&(a.A.za(a.B,"creativeview",a.La),a.A.R(a.B,"creativeview",b));
a.La=b},hV=function(a,b){var c=a.ca,d={};
d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.getWidth()+"px");C(E(c))||(d.id=c);return O("div",d,b)},iV=function(a){if(!a.D)return null;
var b=QU(a,"start");tb(b,QU(a,"creativeview"));if(null!=b&&!kb(b)){var c=[];F(b,function(a){if(!C(E(a))){var b;b=Lg().Bx("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:yea});Uq(b,{display:"block",height:"0px",width:"0px"});var f="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",ZN(a.getUrl()));b.setAttribute("id",f);this.Ka.push(f);nb(c,b)}},a);
return c}return null},zea=function(a,b){var c=a.getAd().B;
if(null!=a.B)if(c&&c.sb("cleanup_text_overlay_spam_signals")){var d=[];F(a.S,function(a){d.push({element:a,Nw:this.Xk(a)})},a);
new cV(b,a.B,d)}else d=new Je,F(a.S,function(a){d.set(a,this.Xk(a))},a),new WU(b,a.B,d)},Aea=function(a){var b=[],c=a.Ei();
F(c,function(a){b=rb(b,a.L)},a);
return b},jV=function(a,b,c){var d=c||!1;
return eb(b.D,function(a){var b=a.o==this.o;return this instanceof a.constructor&&(d||b)},a)},kV=function(a,b){dV.call(this,"1",Bea,"Html",null,"dummy");
this.F=0;this.la=a.length;gV(this,new Am(this));this.ha=Cea(a,b);this.Na=Og("iv-cards-slider-list",this.ha);if(this.P=Og("iv-cards-slider-prev",this.ha))this.A.R(this.P,"click",this.Ja),S(this.P,!1);(this.fa=Og("iv-cards-slider-next",this.ha))&&this.A.R(this.fa,"click",this.Ga)},Cea=function(a,b){var c=ji(a,function(a){var b=lV(a),c;
c=new mV(YU(b.o,"offer")[0]);a=new nV(YU(a.o,"action")[0]);var k=c.o.merchant;c=c.o.price;return{headline:oV(b),description:pV(b),image:qV(rV(b)),action:null!=c?c:"",target:sV(a),merchant:null!=k?k:""}});
return XR(sea,{cards:c,merchant:c[0].merchant,fo:"Next",so:"Previous",Bb:b,AE:3<a.length})},tV=function(a){a.Na.style.left=125*-a.F+"px";
a.P&&S(a.P,0<a.F);a.fa&&S(a.fa,a.F<a.la-3)},uV=function(a,b,c,d,e,f,k,m,l,n){this.B=a;
this.o=b;this.G=c;(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e=0:(0,window.isNaN)(e)&&!(0,window.isNaN)(f)?e=f:!(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e:!(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)&&(e=f=d);this.qe=e;this.pe=f;this.F=k;this.C=m;this.D=ZN(E(l));this.A=n},vV=function(a,b,c,d,e,f){OU.call(this);
this.lg(a);this.B=b;this.A=c;this.M=sb(d);this.ra=null;this.C=e;this.ua=sb(f);wb(this.ua,null,function(a){return a.J})},wV=function(a){var b=new Je,c=a.Ei();
F(c,function(a){if(a instanceof vV){var c=a.A;F(c.Qa(),function(a){b.set(a,rb(c.get(a),b.get(a)||[]))},this)}},a);
return b},xV=function(a,b){var c=eb(a.M,function(a){return!C(E(a.o))&&-1!=a.o.indexOf(b)&&("VPAID"==a.A||"surveys"==a.A)});
return null!=c?c.getUrl():null},zV=function(a,b,c,d,e,f,k,m,l,n,t,u,x,A,D,H){this.La=a;
this.da=b;this.L=c;this.Ja=d;this.xa=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.ca=m?sb(m):[];this.K=l?sb(l):[];this.D=n?sb(n):[];this.Z=[];this.H=[];this.J=null;this.ea=[];this.Xa=!0;this.A=this.o=null;this.G=new Je(u);this.M=null!=H;this.Fa=(this.P=null!=x)?A||!1:!1;this.Ga=this.rz?D||!1:!1;this.Ka=E(x);this.Na=E(H);this.Ca=this.B=null;this.C=new qea;this.Y=new ue(0,0);this.fa=String(Math.floor(1E9*Math.random()));this.O=this.S=this.F=null;this.na=Math.random();this.ra=K();this.ua=this.la=0;this.ia=
this.ha=!1;F(this.D,function(a){a.K=this},this);
yV(this,t)},HV=function(a){var b=a.getExtension("AdFormat");
if(null!=b)return b.A+"_"+b.B+"_"+b.C;b=AV(a);b=BV(a,CV)?"14":aU(b,"hideMaster")||aU(b,"blockAllAds")?"3":a.isLinear()?DV(a)?"2_3":null!=EV(a)?FV(a)?"2_1":"2_2":"2":"1";return GV(a)+"_"+b},GV=function(a){return IV(a)?4:BV(a,CV)?14:BV(a,Dea)?15:JV(a,Eea)||JV(a,KV)?1:LV(a)?2:0},MV=function(a){return null!=a.da?a.da:""},NV=function(a){return null!=a.A?rb(NV(a.A),a.ca):a.ca},OV=function(a){return null!=a.A?rb(OV(a.A),a.K):a.K},PV=function(a){return null!=a.A?rb(a.H,PV(a.A)):a.H},AV=function(a){return null!=
a.o?a.o.G:{}},Fea=function(a){var b={};
F(a.D,function(a){a=a.G;for(var d in a)b[d]=a[d]});
return b},QV=function(a){return null!=a.o?a.o.Xa:""},Gea=function(a){var b=[];
F(a.G.Oa(),function(a){tb(b,IU(a,"companionClick"))});
return b},TV=function(a,b){a.o=b;
a.Y=null!=a.o&&a.o instanceof dV?a.o.jc():new ue(0,0);if(Hea(a)&&V()&&a.B.sb("generate_shopping_companions_on_desktop")){var c=RV(a),c=new kV(c,SV(a));c.K=a;c.D=!0;a.H=[new UU(c,[],null,!0)]}},UV=function(a){return null!=a.La?a.La:""},WV=function(a){if(null==a.A||VV(a.A.L))return[];
var b=[UV(a.A)];tb(b,WV(a.A));return b},Iea=function(a){var b=WV(a).reverse();
b.push(UV(a));return b},XV=function(a){if(null==a.A||VV(a.A.L))return[];
var b=[MV(a.A)];tb(b,XV(a.A));return b},YV=function(a){if(!V())return null;
if(null!=a.A){var b=YV(a.A);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.A:null},Jea=function(a){var b=XV(a).reverse();
b.push(MV(a));return b},VV=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a},ZV=function(a){if(null==a.A)return[a.L];
var b=ZV(a.A);b.push(a.L);VV(b[0])&&b.shift();return b},$V=function(a){a=a.getExtension("waterfall");
return null!=a&&-1!=a.Lb()?a.Lb():-1},aW=function(a){if(-1!=a.xa)return a.xa;
a=a.getExtension("pod");return null!=a&&-1!=a.A?a.A:-1},bW=function(a,b,c,d){a=PV(a);
return VT(new ST(new ue(b,c),d),a)},cW=function(a){var b=a.B.Pf,c=a.B.Of;
if(!b||!c)if(a=a.B.o?kf(a.B.o,"sz"):null)a=a.split("x"),2==a.length&&(b=(0,window.parseInt)(a[0],10)||0,c=(0,window.parseInt)(a[1],10)||0);return new ue(b,c)},Kea=function(a,b){var c=ae(b,function(a){return dW(eW(a))});
0==c.length&&0<b.length&&a.B.sb("enable_ad_video_end_renderers")&&(c=b.slice(1,2));return c},RV=function(a){var b=[];
a=a.getExtension("InfoCards");if(null!=a){a=a.B?a.B:new fW;for(var c=0;c<ZU(a.o,"card");c++)b.push(gW(a,c))}return b},Lea=function(a){if(!a.B||hW(a)&&!BV(a,["ADSENSE/ADX"]))return[];
var b=cW(a);if(0>=b.width||0>=b.height)return[];var c=new QT;c.creativeType="All";c.B="All";c.C="SelectNearMatch";c.o=40;var d=bW(a,b.width,b.height,c);if(!kb(d))return d;c.A="ResizeSmaller";d=ae(PV(a),function(a){return a.o.eh()},a);
return VT(new ST(new ue(b.width,b.height),c),d)},iW=function(a){return!kb(a.ea)&&a.B.sb("enable_ad_video_end_renderers")},Mea=function(a){var b=null,c=0;
F(Lea(a),function(a){var e;e=cW(this);e=!a.o.eh()||a.getWidth()<=e.width&&a.getHeight()<=e.height?a.o.jc():XT(a.o.jc(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);
return b},jW=function(a,b){return b||null==a.A?a.Z:rb(a.Z,jW(a.A))},yV=function(a,b){a.Z=b?sb(b):[];
F(a.Z,function(a){tb(this.H,sb(a.o))},a);
F(a.H,function(a){VU(a,this)},a);
V()&&a.isLinear()&&(a.H=ae(a.H,function(a){return 60>=a.getHeight()}))},kW=function(a,b){return zh(a.D,function(a){return a instanceof vV&&"linear"==b||a instanceof dV&&"nonlinear"==b?!0:!1})},mW=function(a){return-1!=lW(a)&&0!=lW(a)&&7>=lW(a)},nW=function(a){var b=a.o;
return hW(a)&&null!=b&&b instanceof dV&&(90<a.Y.height||null!=a.B&&a.B.Df)},oW=function(a,b){if(null==b)return null;
var c=b.getExtension("adx");return null!=c?c:oW(a,b.A)},EV=function(a){var b=oW(a,a.A);
if(null!=b){if("skippable"==b.A)return b.B;if("nonskippable"==b.A)return null}var b=null,c=new uU(5,!1),d=Nea(a);"implicit"==d&&(b=c);var e=a.o;null==b&&null!=e&&e instanceof vV&&(b=e.C);null!=b||"explicit"!=d||(b=c);if(V()&&a.isLinear()){if(null!=b)return a.B.sb("enable_probabilistic_show_skip_as_nonskip")&&!DV(a)&&hW(a)&&33>=pW(a)&&a.B.Kf("probability_to_change_skip")>a.na?null:(0,window.isNaN)(a.B.F)?c:new uU(a.B.F,!1);if(a.B.sb("enable_probabilistic_show_nonskip_as_skip")&&!DV(a)&&hW(a)&&a.B.Kf("probability_to_change_skip")>
a.na)return c}return b},Nea=function(a){if(null!=eb(a.G.Oa(),function(a){return!kb(IU(a,"skip"))}))return"implicit";
var b=a.G.get("DFP");if(b instanceof LU)switch(b.A){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.o;return V()&&null!=a&&(a=a.Xf,null!=a&&!kb(AU(a,"skip")))?"explicit":"none"},qW=function(a){if(null==a.B)return!1;
var b=a.B.o;null!=b&&va(b,"/PrefetchedAd")&&null!=a.A&&(b=a.A.G.get("LocalRedirect"),b=null!=b?b.Ed():null);(a=fU(b)||iU(b)||hU(b))||(null!=b?(b=(new N(b)).A,a=va(b,"viral.adsense.net")):a=!1);return a},FV=function(a){if(null==a.da||null==a.B)return!1;
var b;(b=qW(a)||!1)&&!(b=hW(a)&&!BV(a,["ADSENSE/ADX"]))&&(BV(a,KV)?(b=a.G.get("DFP"),b=null!=b?"InstreamSelect"==b.A:!1):b=!1);if(b||a.A&&a.A.M&&qW(a.A))return!0;a=JV(a,["ADSENSE/ADX"])||a.A&&LV(a);return V()&&!a},SV=function(a){return null===a.o?null:a.o.jd()},pW=function(a){return null!=a.o?a.o.ia:-1},rW=function(a){return null!==a.J?10:iW(a)?(a=a.B.Kf("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3)):0},lW=function(a){return pW(a)+rW(a)},sW=function(a){return null===
a.o?null:a.o.Ll()},hW=function(a){return BV(a,tW)},IV=function(a){return null!=a.A&&IV(a.A)||BV(a,Oea)},DV=function(a){var b=sW(a);
return BV(a,["402"])||w(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")},uW=function(a){return hW(a)&&FV(a)&&!mW(a)&&!C(E(a.F))&&null!==EV(a)&&0<vU(EV(a))},LV=function(a){return JV(a,tW)||JV(a,["402"])},vW=function(a){a=a.getExtension("InfoCards");
return null!=a?a.A:null},wW=function(a){a=a.getExtension("InfoCardsTracking");
return null!=a?a.A:null},BV=function(a,b){return null!=a.da?jb(b,a.L):!1},JV=function(a,b){for(var c=ZV(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(jb(b,c[d]))return!0;
break}return!1},Hea=function(a){var b=RV(a);
return a.isLinear()&&0<b.length&&Se(b,function(a){return 1==a.getType()})},xW=function(){J.call(this);
this.B=[]},yW=function(){return new zV("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new Je)},zW=function(a){xW.call(this);
this.o=a;this.G=null;this.H=!1;this.C=null;this.D=new Am;Dm(this.D,this.o,["companions_success","companion_initialization_failed"],this.xC,this);Dm(this.D,this.o,"companion_display_error",this.KA,this);Dm(this.D,this.o,["companion_slot_init","companion_click"],this.GA,this);this.o.C?this.H=!0:this.o.initialize()},DW=function(a,b){Mb(a.A);
a.A=new J;a.C=b;a.F=!0;a.H?AW(a):(a.F=BW(CW(b),[]),a.F||(a.C=null,a.A=null));return a.A},AW=function(a){var b=a.C;
a.C=null;if(null!=a.o)if(kb(a.B))EW(a,Error("Companion slots not available."));else if(null!=b){var c=Pea(a,b),d=a.o;try{d.o.googleSetCompanionAdContents(ji(a.B,d.yw,d)),d.sendImpressionUrls()}catch(f){d.aa(new vT("companion_display_error",f))}if(0<c.length&&b.Xa){a=a.o;if(d=0!=c.length)d=ZV(b),d=VV(d[0])&&1<d.length?d[1]:d[0],d="GDFP"==d;if(d){for(var d=[],e=0;e<c.length;e++)d.push(c[e].H);b=b.B;c=ET(a);if(null!==c){DT(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else EW(a,Error("Invalid master ad."))},
EW=function(a,b){a.aa(new OT("companion_display_error",b))},Pea=function(a,b){var c=[],d=[];
F(a.B,function(a){yT(a);zh(a.G,function(d){a:{d=bW(b,d.width,d.height);if(!kb(d)&&(d=Qea(d,c),null!=d)){var e=d.B;if(null!=e&&0!=a.H.indexOf(e)){d=!1;break a}e=[];if(SN(QN(),9419278)||b.B.sb("generate_shopping_companions_on_desktop"))e=d.o.L,tb(e,Gea(b));var l=V()&&"Html"==d.o.da&&d.C;c.push(d);if(l)xT(a,d.Xb(),d.getWidth(),d.getHeight(),e);else{var l=d.getContent(),n=d.getWidth(),t=d.getHeight();d="IFrame"!=d.o.da;a.F=l;a.o=null;a.C=n;a.A=t;a.B=d;a.D=e||[]}d=!0;break a}d=!1}return d},this)||d.push(a)},
a);
var e=CW(b);a.F=BW(e,c);a.F||F(a.B,function(a){yT(a)},a);
return d},BW=function(a,b){if(null==a)return!0;
var c=a.o;return"all"==a.A?Rea(c,b):"any"==a.A?Sea(c,b):!0},CW=function(a){return null==a||null==a.o||(0,window.isNaN)(a.o.o)?null:eb(jW(a,!0),function(a){a=a.o;
return kb(a)?!1:(0,window.isNaN)(a[0].o.o)?!1:a[0].o.o==TT(a[0])})},Rea=function(a,b){return Se(a,function(a){return jb(b,a)})},Sea=function(a,b){return zh(a,function(a){return jb(b,a)})},Qea=function(a,b){return eb(a,function(a){return!jb(b,a)})},FW=function(a){this.o=a},GW=function(a,b){jc.call(this,"adsManagerLoaded");
this.o=a;this.B=b},HW=function(a,b,c,d){a.o.$c(new FW(b),c,d);
return a.o},IW=function(a){jc.call(this,a);
this.D=[];this.C={};this.o=null;this.B=!0},JW=function(){this.B=new Je;
this.A=!V()&&.01>Math.random();this.C=0;this.o="0";this.D=""},Tea=function(){var a=JW.getInstance();
a.sendMessage("ff",a.C);a.C=0},KW=function(a,b,c,d){d=d||{};
var e=new N("https://ssl.google-analytics.com/collect?v=1&t=timing&tid=UA-68696278-1&utc="+Uea());d.cid=Vea(a);d.utv=b;d.utt=c;d.cd6=qT(CT);b=UN(QN());C(E(b))||(d.xid=b);Ob(d,function(a,b){yf(e,b,a)},a);
return e.toString()},Xea=function(a,b){if(null!=b){var c=xa(b),d=Wea.exec(c),c=E((new N(c)).o.get("client"));
a.o=d&&2==d.length?d[1]:C(c)?"0":c}else a.o="0"},Uea=function(){var a=CT.B,b="html5";
null!=a&&(Na(a,"android")?b="android":Na(a,"ios")&&(b="ios"));return b},Vea=function(a){C(a.D)&&(a.D="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var c=16*Math.random()|0;
return("x"==a?c:c&3|8).toString(16)}));
return a.D},LW=function(a,b,c){this.F=b;
this.C=c;this.D=null;this.A=new Am(this);this.K=a;this.B=this.o=null;this.H=!1},Yea=function(a){if(null===a.D)MW(a);
else{var b=new N(a.D.o),c=E(b.o.get("vid")),b=E(b.o.get("cmsid")),d=a.C.L,e=a.C.K;a.C.L=c;a.C.K=b;if(C(E(c))||C(E(b)))MW(a);else if(c==d&&b==e)MW(a);else{var f=a.F.We();f.setVideoContent(c,b);Yda(f,a.D);a.B=new Sd(100);Dm(a.A,a.B,"tick",function(){var a;a:{var b=HT(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&MW(this)},a);
a.B.start()}}},Zea=function(a){a.o=new Sd;
Hm(a.A,a.o,"tick",function(){MW(this)},a);
Td(a.o,a.K);a.o.start()},MW=function(a){null!=a.A&&(a.A.dispose(),a.A=null);
null!=a.o&&(a.o.stop(),a.o=null);null!=a.B&&(a.B.stop(),a.B=null);a.H=!0;null===a.G||a.G()},NW=function(){J.call(this);
this.o=new Je;this.A=null;this.K=new Am(this);I(this,this.K);this.G="";this.C=this.L=this.F=this.B=null;this.J=-1},PW=function(){null!=OW||(OW=new NW);
return OW},QW=function(a,b){var c={};
c.queryId=a;c.viewabilityString=b;PW().aa(new FN("measurable_impression",null,c))},RW=function(a,b){var c={};
c.queryId=a;c.viewabilityString=b;PW().aa(new FN("viewable_impression",null,c))},SW=function(a,b,c){var d={};
d.queryId=a;d.viewabilityString=b;d.eventName=c;PW().aa(new FN("externalActivityEvent",null,d))},$ea=function(a,b){a.B=b},afa=function(a,b){if(a.A)if(a.C){var c=K()-a.J;
b(a.C+"_ct"+c)}else{var c=200,d=QN();SN(d,31061771)?c=300:SN(d,31061772)?c=400:SN(d,31061773)&&(c=500);var e=a.o,c=window.setTimeout(function(){b("timeout");F(e.Qa(),function(a){e.get(a)===b&&e.remove(a)})},c);
a.o.set(c,b);d={};a.D&&(d.isFullscreen=a.D.ke());d.osdId=a.G;d.eventId=c;xO.getInstance().A&&(a.H=K(),d.loggingId=Math.random(),xO.getInstance().o(43,{step:"sendingMessage",logid:d.loggingId,time:a.H}));a.A.send("activityMonitor","fetchAdTagUrl",d)}else b("")},bfa=function(a){return ha(a.getBoundingClientRect)&&mh(Jg(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,
top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},cfa=function(a,b,c,d){if(a.A){var e={};
e.queryId=c;e.vastEvent=b;a.G&&(e.osdId=a.G);a.D&&(e.isFullscreen=a.D.ke());e.isOverlay=null!=a.B;a.B&&(e.overlayBounds=bfa(a.B));if(SN(QN(),41351021)){var f={};f.opt_fullscreen=e.isFullscreen;e.isOverlay&&(f.opt_bounds=e.overlayBounds);d(tR(b,c,f))}else{var k=a.o;b=window.setTimeout(function(){d({viewability:"timeout"});F(k.Qa(),function(a){k.get(a)===d&&k.remove(a)})},200);
a.o.set(b,d);e.eventId=b}a.A.send("activityMonitor","reportVastEvent",e)}else d({})},TW=function(){},UW=function(a,b,c){this.A=a;
this.o=c;this.B=b},dfa=function(a){this.B=a},VW=function(a){this.B=a;
this.A=this.o=!1},efa=function(a,b,c){this.o=a;
this.A=b;this.B=c},WW=function(){this.o=new Je},XW=function(a,b,c){if((0,window.isNaN)(c))throw Error("Incorrect time offset.");
var d=[];Le(a.o,c)&&(d=a.o.get(c,[]));F(b,function(a){null!=a&&nb(d,a)});
a.o.set(c,d)},YW=function(a,b){this.o=a;
this.A=b},gfa=function(a){var b=new WW;
F(gh(ih(a.o)),function(a){switch(a.nodeName){case "Preroll":a=ZW(this,a);XW(b,a,0);break;case "Midroll":var d=mU(a,"timeOffset"),e=qU(d);if(-1==e)throw gO($W,null,"timeOffset",E(d));a=ZW(this,a);XW(b,a,e);break;case "Postroll":a=ZW(this,a);XW(b,a,-1);break;default:throw gO(aX,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.o.Qa().length)throw gO(ffa);return b},ZW=function(a,b){var c=[];
F(gh(b),function(a){switch(a.nodeName){case "Ad":var b=E(nU(a));if(!C(b)){a=mU(a,"bumper");var f=this.A.clone();f.o=b;b=new VW(f);b.o=null!=a;b.A="always"==a;nb(c,b)}break;default:throw gO(aX,null,a.parentNode.nodeName,a.nodeName);}},a);
return c},bX=function(a,b,c){HU.call(this);
this.A=a;this.B=b;this.C=c},cX=function(){},dX=function(){this.C=null;
this.D="http://www.google.com/adsense/support";this.F=0;this.o=15;this.B=5;this.A=3},hfa=function(a,b){a.o=b},eX=function(a,b,c,d,e,f,k,m,l,n,t){HU.call(this,n,t);
this.D=a;this.F=b;this.B=c;this.G=l;this.H=k;this.C=f;this.A=e},fX=function(){},jfa=function(a,b){var c;
F(gh(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new dX:null;break;case "params":null!=c&&ifa(this,c,a)}},a);
return c},ifa=function(a,b,c){F(gh(c),function(a){var c=a.attributes[0].value;
switch(a.nodeName){case "attribution_url":b.D=c;break;case "attribution_text":b.C=c;break;case "signals":b.F=(0,window.parseInt)(c,10)}},a)},gX=function(){},hX=function(){},iX=function(){},jX=function(){},pX=function(a,b,c){var d={};
a=new kX(a,p(b)?b:null,p(c)?c:null);lX(d,a);b=a.error;d.ERRORCODE=1E3>b.o?b.o:900;mX(d);nX(d,a);oX(d,a);b=a.error.getErrorCode();d.ERROR_MSG=a.error.getMessage();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=ib(kfa,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d},qX=function(a,b){var c={},d=new kX(null,a,p(b)?b:null);
lX(c,d);mX(c);nX(c,d);oX(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.o){var e=d.o.B,f=null!=e&&null!=e.Eb&&null!=e.Eb.GET_MIDROLL_POSITION_IN_SEC?e.Eb.GET_MIDROLL_POSITION_IN_SEC:null;null!=e&&null!=e.Me&&null!=e.Me.video_start_delay?(e=e.Me.video_start_delay,0==e?c.BREAK_TYPE="1":-1==e?c.BREAK_TYPE="3":(c.BREAK_TYPE="2",c.MIDROLL_POS=f&&f(e)?f(e):e)):(e=d.o.C,c.BREAK_TYPE=0==e.B?"1":-1==e.B?"3":"2",c.SLOT_POS=e.A-1,e=Math.round(e.o),0<e&&(c.MIDROLL_POS=f&&f(e)?f(e):e))}lfa(c,
d);mfa(c,d);d=a.ra;for(f=a;null!=f;)d=f.la+","+d,f=f.A;c.RWT=d;return c},kX=function(a,b,c){this.error=a;
this.o=b;this.display=c},nfa=function(){var a=mda();
if(null!=a)return a.moatInit},rX=function(a,b,c,d){V()&&ofa(c,b)?(d=d(),null!=d&&(a[c]=d,cO.Sp(b)&&(a[c]=(0,window.encodeURIComponent)(a[c])))):a[c]=""},ofa=function(a,b){return zh(pfa[a],function(a){return null!=b.match(a)})},lX=function(a,b){a.CACHEBUSTING={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}};
a.ASSETURI={toString:function(){return null!=b.display?b.display.getVideoUrl():""}}},mfa=function(a,b){a.AD_CPN={toString:function(){return b.display.Ef()}};
a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}};
a.MT={toString:function(){if(b.o.isLinear()){var a=b.o.C;return 0<a.o?Math.round(1E3*a.o).toString():"0"}return b.display?Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString():"0"}};
a.P_W={toString:function(){return null!=b.display&&null!=b.display.hd()?b.display.hd().width.toString():""}};
a.P_H={toString:function(){return null!=b.display&&null!=b.display.hd()?b.display.hd().height.toString():""}}},mX=function(a){a.SDKV=qT(CT);
a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}},nX=function(a,b){if(null!=b.o&&null!=b.o.B&&null!=b.o.B.Eb&&V()){var c=b.o.B.Eb;
F(qfa,function(b){b in c&&(a[b]=c[b])})}},oX=function(a,b){if(null!=b.o){a.AD_ID=Iea(b.o);
a.AD_SYS=Jea(b.o);var c=YV(b.o);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.display){var a=IR(b.display.getVideoUrl());if(null!=a)return a}return"0"}};
a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";c=[];try{c=HV(b.o).split("_")}catch(d){}1<=c.length&&(a.FORMAT_NAMESPACE=c[0]);2<=c.length&&(a.FORMAT_TYPE=c[1]);3<=c.length&&(a.FORMAT_SUBTYPE=c[2]);a.FINAL="1"}},lfa=function(a,b){null!=b.o&&(a.AD_LEN={toString:function(){var a=lW(b.o);
return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.display?b.display.Rf()?"0":Math.round(100*b.display.Ld()).toString():""}})},fW=function(a){this.o=a||{}},sX=function(a){this.o=a||{}},tX=function(a){this.o=a||{}},uX=function(a){this.o=a||{}},nV=function(a){this.o=a||{}},vX=function(a){this.o=a||{}},wX=function(a){this.o=a||{}},mV=function(a){this.o=a||{}},xX=function(a){this.o=a||{}},yX=function(a){this.o=a||{}},zX=function(a){this.o=a||{}},AX=function(a){this.o=
a||{}},BX=function(a){this.o=a||{}},CX=function(a){this.o=a||{}},gW=function(a,b){return new sX(YU(a.o,"card")[b])},lV=function(a){return(a=a.o.product_card)?new wX(a):DX},eW=function(a){return(a=a.o.placement)?new uX(a):EX},dW=function(a){a=a.o.show_in_endcap;
return null!=a?a:!1},IX=function(){if(!FX){var a={};
FX={Rb:a};a.type={type:"e",label:1,qa:0};a.id={type:"s",label:1,qa:""};a.link_url={type:"s",label:1,qa:""};a.title={type:"s",label:1,qa:""};a.image={type:"m",label:1,qa:rfa,va:GX()};a.event={type:"m",label:3,va:HX()};a.target={type:"s",label:1,qa:""}}return FX},sV=function(a){a=a.o.target;
return null!=a?a:""},HX=function(){if(!JX){var a={};
JX={Rb:a};a.type={type:"e",label:1,qa:0};a.base_url={type:"s",label:1,qa:""}}return JX},oV=function(a){a=a.o.headline;
return null!=a?a:""},pV=function(a){a=a.o.description;
return null!=a?a:""},rV=function(a){return(a=a.o.image)?new BX(a):KX},GX=function(){if(!LX){var a={};
LX={Rb:a};a.image_url={type:"s",label:1,qa:""};a.thumbnail_url={type:"s",label:1,qa:""};a.image_height={type:"i",label:1,qa:0};a.image_width={type:"i",label:1,qa:0}}return LX},qV=function(a){a=a.o.image_url;
return null!=a?a:""},MX=function(a,b,c){HU.call(this,c);
this.A=a;this.B=b||null},NX=function(a){this.o=a},PX=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.Rb[f.nodeName];
if(k)switch(k.type){case "b":d[f.nodeName]="false"!=f.nodeValue;break;case "d":case "f":d[f.nodeName]=(0,window.parseFloat)(f.nodeValue);break;case "e":d[f.nodeName]=OX[b.nodeName][f.nodeName][f.nodeValue];break;case "i":d[f.nodeName]=(0,window.parseInt)(f.nodeValue,10);break;default:d[f.nodeName]=f.nodeValue}}for(e=0;e<b.childNodes.length;e++)if(f=b.childNodes[e],f.nodeType==window.Node.ELEMENT_NODE){var k=c.Rb[f.nodeName],m=PX(a,f,k.va);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(m)):
d[f.nodeName]=m}return d},sfa=function(a,b){var c=new xU;
F(gh(b),function(a){"CustomTracking"==a.nodeName&&null!=gh(a)&&(c=GU(a,!1,y(function(a,b){return QX(a,b)},this)))},a);
return c},QX=function(a,b){return GN(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";
default:return""}}}})},RX=function(a,b){HU.call(this);
this.B=a;this.A=E(b)},SX=function(a,b){this.logger=null;
this.B=b;this.o={};this.A=[];this.o.CustomTracking=GU;this.o.UI=this.D},TX=function(a,b){if(null==b)return null;
var c={};F(gh(b),function(a){c[a.nodeName]=null!=this.o[a.nodeName]?this.o[a.nodeName].call(this,a):null},a);
return null==c.UI?null:c},UX=function(a,b,c,d,e,f){HU.call(this,f);
this.B=a;this.D=b;this.F=c;this.C=d;this.A=e},VX=function(a){return null!=a.A?a.A.length:0},WX=function(){SX.call(this,0,"mute_");
this.o.SurveyOptions=this.C},XX=function(a,b,c,d){HU.call(this);
this.C=a;this.B=b;this.D=c;this.A=d},YX=function(){},ZX=function(){HU.call(this)},$X=function(){},tfa=function(a,b){F(gh(b),function(a){a.nodeName==this.o.jw&&nU(a)},a)},aY=function(a,b,c,d){HU.call(this);
this.B=a;this.C=b;this.D=c;this.A=d},bY=function(){},cY=function(a){HU.call(this);
this.A=a},dY=function(){},eY=function(a,b,c,d,e,f,k,m,l){HU.call(this,e);
this.C=a;this.D=b;this.F=c;this.B=d;this.A=f||null;this.J=k||null;this.H=m||null;this.G=l||null},fY=function(){SX.call(this,0,"why_this_ad_");
this.A.push("targeting_reason")},gY=function(a,b){return null!=a?Se(b,function(b){return b in a}):!1},ufa=function(a,b){return null!=a?zh(b,function(b){return b in a}):!1},hY=function(){},iY=function(){HU.call(this)},jY=function(){},kY=function(){},vfa=function(a,b){this.o=a;
this.A=b},wfa=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Bb?'<a class="text-image-link" target="_blank" href="'+X(a.Bb)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+X(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+X(a.duration)+"</div>":"")+"</a>":"")+(a.Bb?'<a class="text-title" href="'+X(a.Bb)+'" target="_blank" dir='+X(a.dir)+">"+X(a.title)+"</a>":"")+'<div class="text-description" dir='+
X(a.dir)+">"+X(a.text)+"</div>"+(a.ms&&a.Bb?'<a target="_blank" href="'+X(a.Bb)+'" class="text-ad-channel">'+X(a.ms)+"</a>":"")+"</div></div>"},xfa=function(a){return'<div class="flash-container '+(a.zf?"click-capture":"")+'">'+(a.Bb?'<a class="click-layer" target="_blank" href="'+X(a.Bb)+'"></a>':"")+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+X(a.width)+'" height="'+X(a.height)+'"><param name="movie" value="'+
X(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+uS(a.Bb)+'"><embed width="'+X(a.width)+'" height="'+X(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+X(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+uS(a.Bb)+'"></object></div>'},yfa=function(a){return'<div class="image-container" id="'+
X(a.id)+'" style="width:'+X(a.width)+";height:"+X(a.height)+';">'+(a.Bb?'<a target="_blank" href="'+X(a.Bb)+'">':'<a target="_blank">')+'<img src="'+X(a.url)+'" border="0"></a></div>'},zfa=function(a){return'<div class="image-container" id="'+X(a.id)+'">'+(a.Bb?'<a target="_blank" href="'+X(a.Bb)+'">':'<a target="_blank">')+'<img src="'+X(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'},lY=function(a){return'<div class="image-container" id="'+X(a.id)+'" style="width:'+X(a.width)+
";height:"+X(a.height)+';"></div>'},mY=function(a,b,c,d){dV.call(this,a,b,"Static",c,d);
this.wo=!1},nY=function(a,b,c,d){dV.call(this,a,b,"Html",c,d)},oY=function(a,b,c,d){dV.call(this,a,b,"Static",c,d)},pY=function(a,b){dV.call(this,a,b,"Static","text","")},qY=function(a,b,c,d,e){dV.call(this,a,b,c,d,e)},sY=function(a,b,c){if(kb(c))return new dV(a,b,"",null,"");
var d=rY(c);c=d.A;var e=d.o,d=d.B;switch(c){case "Html":return new nY(a,b,e,d);case "Static":switch(SU[e]){case "Image":return new oY(a,b,e,d);case "Flash":return new mY(a,b,e,d);case "Text":return new pY(a,b)}}return new qY(a,b,c,e,d)},rY=function(a){var b=eb(a,function(a){return"Static"==a.A&&"Flash"==SU[a.o]}),c=eb(a,function(a){return"IFrame"==a.A}),d=eb(a,function(a){return"Html"==a.A}),e=eb(a,function(a){return"Static"==a.A&&"Image"==SU[a.o]}),f=eb(a,function(a){return"Static"==a.A&&"Text"==
SU[a.o]});
return WT&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]},Afa=function(a,b,c,d,e,f){var k=rY(f),m=sY(a.id,a.size,[k]);
m.D=!0;m.J=a.apiFramework;m.Y=b;m.L=c;m.o=d;e&&(m.Xf=e);pb(f,k);var l=[];F(f,function(f){f=sY(a.id,a.size,[f]);f.D=!0;f.J=a.apiFramework;f.Y=b;f.L=c;f.o=d;e&&(f.Xf=e);l.push(new UU(f,[],a.adSlotId))});
return new UU(m,l,a.adSlotId)},tY=function(a,b,c){this.A=a;
this.o=b;this.B=c},uY=function(a,b,c,d,e,f,k){this.B=a;
this.J=b;this.D=c;this.F=d;this.A=e;this.G=f;this.H=k;this.o=this.B.ce()},Bfa=function(a){pr(a.o)||(S(a.o,!0),F(a.H,function(a){aO(a)}))},Cfa=function(a,b,c,d,e,f,k,m,l,n){b=sY("icon"+a,b,n);
b.J=k;b.Y=m.iconClickThrough;return new uY(b,a,c,d,e,f,l)},vY=function(a){this.C=a;
this.logger=null},wY=function(a){if(null==a)return!1;
a=ih(a);return null!=a&&"VAST"==a.nodeName},yY=function(a,b){var c=[],d=null;
try{var e=oA(a),f=ih(e);null!=f&&"CompanionAds"==f.nodeName&&(d=xY(vY.prototype,f,b))}catch(k){}null!=d&&c.push(d);return c},zY=function(a){if(null==a)return 0;
a=(0,window.parseInt)(a.getAttribute("version"),10);return ga(a)&&!(0,window.isNaN)(a)?a:0},Efa=function(a){var b=[],c=ih(a.C),d=zY(c);
oU(c,a.o.yu,function(a){var c;c=AY(a);if(null==c)throw jU(a);var k=a.getAttribute(this.A.Th);a=Number(a.getAttribute(this.A.Tn));c=Dfa(this,c,k||null,a||0);null!=c&&(c.ua=d,b.push(c))},a);
return b},AY=function(a){var b=null;
F(gh(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw jU(a);}});
return b},Dfa=function(a,b,c,d){var e,f,k=[],m=[],l=[],n=[],t=new Je,u,x=b.nodeName==a.o.qw,A=x,D=x,H;
F(gh(b),function(a){switch(a.nodeName){case this.o.lw:if(x){if(null!=u)throw kU(a);u=nU(a);H=oea(u);A=rU(b.getAttribute(this.A.Du),A);D=rU(b.getAttribute(this.A.kv),D)}else throw jU(a);break;case this.o.Au:e=nU(a);break;case this.o.Bu:f=nU(a);break;case this.o.Yu:nU(a);break;case this.o.hw:nU(a);break;case this.o.Vh:a=nU(a);EU(a)&&k.push(tU(a));break;case this.o.ERROR:a=nU(a);m.push(tU(a));break;case this.o.Ru:a=Ffa(this,a);l=a.creatives;n=a.Rw;break;case this.o.gv:t=Gfa(this,a,H)}},a);
return new zV(E(c),e,Hfa(e),f,0,0,d,m,k,l,n,t,u,A,D,Ifa(t))},Ifa=function(a){var b=null;
a=a.get("AdSense");null!=a&&(a=IU(a,"vast2tracking"),null!=a&&!kb(a)&&(b=a[0]));return b},Hfa=function(a){if(C(E(a)))return"UNKNOWN";
a=a.toUpperCase();switch(a){case "ADSENSE":case "ADSENSE/ADX":case "ADSENSE-VIRAL":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "SHOPPING":case "402":case "YT:ADSENSE":case "YT:DOUBLECLICK":case "YT:SHOPPING":case "YT:FREEWHEEL":case "VIRAL":return a;default:return"UNKNOWN"}},Jfa=function(a){if(C(E(a)))return"none";
switch(a){case "all":case "any":case "none":return a;default:return"none"}},Gfa=function(a,b,c){var d=new Je;
try{var e=lU(b,a.o.fv);F(e,function(a){var b=a.getAttribute(this.A.TYPE);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new jY).parse(a);break;case "pod":a=(new hY).parse(a);break;case "waterfall":a=(new kY).parse(a);break;case "dart":a=(new hX).parse(a);break;case "dfp":b="DFP";a=(new iX).parse(a);break;case "adsense":b="AdSense";a=(new gX).parse(a);break;case "textad":b="TextAd";a=(new bY).parse(a);break;case "templatead":b="TemplateAd";a=(new $X).parse(a);break;case "infocards":var b="InfoCards",
e=new NX(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new NX(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,l=lU(a,"AdXml");1==l.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+pA(ih(l[0])));a=lU(a,"VASTAdTagURI");l=null;1==a.length&&(l=a[0].textContent);a=new RX(e,l)}else a=null;break;case "viral":b="viral";a=(new dY).parse(a);break;case "adx":b="adx";a=(new KU).parse(a);break;case "why_this_ad":b="why_this_ad";a=(new fY).parse(a);
break;case "mute":b="mute";a=(new WX).parse(a);break;case "sodar":a=(new YX).parse(a);break;case "adformat":b="AdFormat";a=(new cX).parse(a);break;default:e=new jX,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(pea(e,a.o),d.set(b,e)):d.set(b,a))},a)}catch(f){if(!ha(f.getErrorCode)||1105==f.getErrorCode())throw f;
}return d},Ffa=function(a,b){var c=[],d=[];
oU(b,a.o.Qu,function(a){var b=a.getAttribute(this.A.Tn),k;C(E(b))||(k=(0,window.parseFloat)(b));var m=a.getAttribute(this.A.Th),l=!1;F(gh(a),function(a){switch(a.nodeName){case this.o.LINEAR:if(l)throw kU(a);a=Kfa(this,a,(0,window.isNaN)(k)?0:k,m||null);tb(c,a);l=!0;break;case this.o.Mu:if(l)throw kU(a);a=xY(this,a,(0,window.isNaN)(k)?void 0:k);tb(d,a);l=!0;break;case this.o.Mv:if(l)throw kU(a);a=Lfa(this,a,(0,window.isNaN)(k)?0:k,m||null);tb(c,a);l=!0}},this)},a);
return{creatives:c,Rw:d}},Lfa=function(a,b,c,d){var e=[],f=new xU;
F(gh(b),function(a){switch(a.nodeName){case this.o.Lv:a=Mfa(this,a,c,d);null!=a&&e.push(a);break;case this.o.mk:f=GU(a);break;default:throw jU(a);}},a);
0!=e.length||f.isEmpty()||(a=new dV(null,new ue(-1,-1),"",null,""),a.o=c,a.na=d,e.push(a));F(e,function(a){f&&(a.Xf=f)});
return e},BY=function(a,b){var c={};
c.id=b.getAttribute(a.A.Th);c.adSlotId=b.getAttribute(a.A.zu);c.apiFramework=b.getAttribute(a.A.Qh);var d=Ya(b.getAttribute(a.A.Xh)),e=Ya(b.getAttribute(a.A.Rh));c.size=new ue(d,e);d=b.getAttribute(a.A.ev);e=b.getAttribute(a.A.dv);C(E(d))||C(E(e))||(c.sO=new ue(Ya(d),Ya(e)));return c},Mfa=function(a,b,c,d){var e=BY(a,b);
b.getAttribute(a.A.Qh);b.getAttribute(a.A.Xv);b.getAttribute(a.A.Bv);var f=b.getAttribute(a.A.Iv),f=qU(f,-1),k=[];new Je;var m={},l="",n,t=[];F(gh(b),function(a){switch(a.nodeName){case this.o.Ov:t.push(nU(a));break;case this.o.Nv:n=nU(a);break;case this.o.hk:m=CY(a);l=E(nU(a));break;case this.o.Uh:case this.o.Wh:case this.o.Sh:a=DY(this,a);null!=a&&k.push(a);break;default:throw jU(a);}},a);
a=sY(e.id,e.size,k);PU(a,l,m);a.J=e.apiFramework;a.Y=n;a.L=t;a.Ca=f;a.o=c;a.na=d;return a},DY=function(a,b){var c=mU(b,a.A.Su);
if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.o.Wh:d="Static";break a;case a.o.Uh:d="IFrame";break a;case a.o.Sh:d="Html";break a;default:throw gO(Nfa,null,d);}var e=nU(b);null!=e||(e="");return new tY(d,c,e)},xY=function(a,b,c){var d=[],e=Jfa(mU(b,a.A.Uv));
oU(b,a.o.Lu,function(a){a=Ofa(this,a,c);null!=a&&d.push(a)},a);
return new vfa(d,e)},Ofa=function(a,b,c){var d=BY(a,b),e=[],f=new xU,k,m=[];
F(gh(b),function(a){switch(a.nodeName){case this.o.Ou:m.push(nU(a));break;case this.o.mk:f=GU(a,!0);break;case this.o.Nu:k=nU(a);break;case this.o.Eu:nU(a);break;case this.o.hk:nU(a);break;case this.o.Uh:case this.o.Wh:case this.o.Sh:a=DY(this,a);null!=a&&e.push(a);break;default:throw jU(a);}},a);
return kb(e)?null:Afa(d,k,m,c,f,e)},Kfa=function(a,b,c,d){var e=new xU,f={},k="",m=[],l,n=new Je,t=[],u=[],x,A=FU(mU(b,a.A.$v));
F(gh(b),function(a){switch(a.nodeName){case this.o.nv:u=Pfa(this,a);break;case this.o.hk:f=CY(a);k=E(nU(a));break;case this.o.jk:x=qU(nU(a),0);break;case this.o.mk:e=GU(a);break;case this.o.Fv:t=Qfa(this,a);break;case this.o.mw:a=Rfa(this,a);n=a.customClicks;l=a.clickThrough;m=a.clickTrackingUrls;break;default:throw jU(a);}},a);
F(m,function(a){CU(e,"click",a)});
a=new vV(x,l,n,t,A,u);PU(a,k,f);a.o=c;a.na=d;e&&(a.Xf=e);return a},Rfa=function(a,b){var c,d=[],e=new Je;
F(gh(b),function(a){switch(a.nodeName){case this.o.Ju:c=nU(a);break;case this.o.Ku:a=nU(a);d.push(a);break;case this.o.Vu:var b=mU(a,this.A.Th);null!=b||(b="");var m=e.get(b,[]);m.push(nU(a));e.set(b,m);break;default:throw jU(a);}},a);
return{clickThrough:c,clickTrackingUrls:d,customClicks:e}},Qfa=function(a,b){var c=[];
oU(b,a.o.Ev,function(a){var b=mU(a,this.A.Xu),f=mU(a,this.A.TYPE),k=mU(a,this.A.ow),m=Ya(a.getAttribute(this.A.Xh)),l=Ya(a.getAttribute(this.A.Rh)),n=a.getAttribute(this.A.Qh),t=nU(a),u=pU(a.getAttribute(this.A.On)),x=pU(a.getAttribute(this.A.Hv));a=pU(a.getAttribute(this.A.Dv));b=new uV(b,f,k,u,x,a,m,l,t,n);c.push(b)},a);
return c},Pfa=function(a,b){var c=[];
oU(b,a.o.mv,function(a){a=Sfa(this,a);null!=a&&c.push(a)},a);
return c},Sfa=function(a,b){var c=b.getAttribute(a.A.Qv),d=mU(b,a.A.rw),e=mU(b,a.A.tw),f=Ya(b.getAttribute(a.A.Xh)),k=Ya(b.getAttribute(a.A.Rh)),f=new ue(f,k),k=b.getAttribute(a.A.Qh),m=FU(mU(b,a.A.Pv)),l=b.getAttribute(a.A.jk),l=qU(l,-1),n=[],t=[],u={};
F(gh(b),function(a){switch(a.nodeName){case this.o.rv:t.push(nU(a));break;case this.o.ov:u=Tfa(this,a);break;case this.o.Uh:case this.o.Wh:case this.o.Sh:a=DY(this,a);null!=a&&n.push(a);break;default:throw jU(a);}},a);
return kb(n)?null:Cfa(c,f,d,e,l,m,k,u,t,n)},Tfa=function(a,b){var c=[],d;
F(gh(b),function(a){switch(a.nodeName){case this.o.pv:d=nU(a);break;case this.o.qv:c.push(nU(a));break;default:throw jU(a);}},a);
return{iconClickThrough:d,uO:c}},CY=function(a){a=nU(a);
return null!=a?eea(a):{}},EY=function(a,b){this.A=a;
this.o=b},Ufa=function(a){var b=[],c=lU(a,"vmap:Extensions")[0];
if(c){var d;oU(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=lU(d,"yt:BreakTime"),!kb(b)))return ji(b,function(a){return mU(a,"timeOffset")})}return[mU(a,"timeOffset")]},Xfa=function(a){var b=new WW;
F(gh(ih(a.A)),function(a){if("vmap:AdBreak"==a.nodeName){var d=Vfa(this,a);a=Ufa(a);F(a,function(a,c){var k=qU(a);0<c&&(d=Wfa(this,d));if("start"==a||0==k)XW(b,d,0);else if("end"==a)XW(b,d,-1);else{if(-1==k)throw gO($W,null,"timeOffset",E(a));XW(b,d,k)}},this)}},a);
if(0==b.o.Qa().length)throw gO(FY);return b},Wfa=function(a,b){return ji(b,function(a){var b=new VW(a.B.clone());
b.o=a.o;b.A=a.A;return b},a)},Yfa=function(a){a=mU(a,"timeOffset");
var b=qU(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b},Zfa=function(a){return(a=eb(gh(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?eb(gh(a),function(a){return"VAST"==a.nodeName}):null},Vfa=function(a,b){var c=[],d="",e=null,f=!1,k=!1;
F(gh(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=qA(a,"vmap:VASTData/VAST")||qA(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=Zfa(a));if(!e){var c=lU(a,"vmap:AdTagURI"),m="";c.length&&(m=E(nU(c[0])));if(C(m))throw gO($fa,null,a.parentNode.nodeName,a.nodeName);d=m}}break;case "vmap:Extensions":a=lU(a,"vmap:Extension"),a=aga(this,a),null!=a&&(f=!0,a=mU(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);
var m=null;e?m=cga(a,e):C(d)||(m=dga(a,d));m&&(V()&&(m.Bh=Yfa(b)),m=new VW(m),m.o=f,m.A=f&&!k,nb(c,m));return c},aga=function(a,b){return eb(b,function(a){return"bumper"==mU(a,"type")},a)},dga=function(a,b){var c=a.o.clone();
C(c.A)||(c.A="");c.o=b;return c},cga=function(a,b){var c=a.o.clone();
c.A=pA(b);c.o="";return c},fga=function(a,b){if(null!=a){var c;
null!=a?(c=ih(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return JW.getInstance().A=!1,new YW(a,b);null!=a?(c=ih(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return JW.getInstance().A=!1,new EY(a,b);if(wY(a)){if(!wY(a))throw gO(aX);c=ih(a);var d=zY(c);if(1>d||3<d)throw gO(ega);c=lU(c,"Ad");if(kb(c))throw gO(GY);c=AY(c[0]);if(null==c)throw gO(HY);if(1!=lU(c,"AdSystem").length)throw gO(HY);return new vY(a)}}return null},IY=function(){},JY=function(a,b){this.A=a;
this.B=b},KY=function(a,b){"auto"!=a.A.ff&&"click"!=a.A.ff||b.set("vpa",a.A.ff)},LY=function(a){C("")||(a.set("mpt",""),C("")||a.set("mpv",""))},MY=function(a,b){var c=a.B.B,d=a.B.A;
null!=c&&b.set("js","ima-"+c);SN(QN(),41351077)&&null!=d&&b.set("an",d);c=a.A.K;null!=c&&b.set("mv",c+"."+(a.A.J||""))},NY=function(a,b){b.set("osd",2);
-1!=a.B.J&&b.set("frm",a.B.J);var c=a.B.Y;null!=c&&b.set("ms",c);b.set("sdr",1)},OY=function(a){return KN.o?"h.3.0.0":null!=a.B?qT(a.B):null},PY=function(){this.o=["video"]},QY=function(a){switch(a){case 1:return"endslate";
default:return"fullslot"}},RY=function(a,b,c){if(null!=c){var d;
null==b.F&&(b.F=new mT);d=b.F;var e;null!=c&&d.A!=c?(d.o=1,d.A=c):d.o=null!=c?d.o+1:1;e=d.o;1!=e&&a.set("ad_block",e);null==b.M&&(b.M=new nT);e=b.M;var f=c!=b.P;(d=0==d.o%100||f)||(d=36E5<(null===e.o?0:(new Jz).getTime()-e.o));d&&e.reset();b.P=c;b=e.A;null!==b&&a.set("tok",b)}},SY=function(a,b){a.set("sz",Math.max(null!=b.Pf?b.Pf:0,null!=b.Mc?b.Mc:0)+"x"+Math.max(null!=b.Of?b.Of:0,null!=b.Lc?b.Lc:0))},TY=function(a){var b={};
b.u_tz=-(new Date).getTimezoneOffset();var c;try{c=W.history.length}catch(e){c=0}b.u_his=c;b.u_java=!!W.navigator&&"unknown"!==typeof W.navigator.javaEnabled&&!!W.navigator.javaEnabled&&W.navigator.javaEnabled();W.screen&&(b.u_h=W.screen.height,b.u_w=W.screen.width,b.u_ah=W.screen.availHeight,b.u_aw=W.screen.availWidth,b.u_cd=W.screen.colorDepth);W.navigator&&W.navigator.plugins&&(b.u_nplug=W.navigator.plugins.length);W.navigator&&W.navigator.mimeTypes&&(b.u_nmime=W.navigator.mimeTypes.length);for(var d in b)a.set(d,
b[d]);a.set("dt",gga)},UY=function(a){if(a.Eb&&a.Eb.LACT){var b=a.Eb.LACT.toString();
if(b)return ab(b)}return a.H},VY=function(a){return V()&&a.Eb&&a.Eb.VIS?a.Eb.VIS.toString():null},$Y=function(a,b,c,d){var e=new Je;
VN()||e.set("ad_type",c.adType);WT&&e.set("flash",BP);SY(e,a);WY(c)&&(e.set("ea","0"),null!=a.Mc&&null!=a.Lc&&e.set("image_size",XY(c,a.Mc,a.Lc,a.Df)));YY(e,d);e.set("lact",UY(a));(c=VY(a))&&e.set("yt_vis",c);e.set("videoad_start_delay",a.Bh);TY(e);ZY(a,e,!0);RY(e,b,a.D);return e},ZY=function(a,b,c){C(E(a.referrer))||(a=a.referrer,c&&(a=wa(a)),aZ("ref",a,b))},dZ=function(a,b,c){a=null!=b?b.split("_"):a;
F(a,function(a){if(!Tb(hga,a))throw gO(KS,null,"ad_type",String(b));});
if(c){var d=[];F(a,function(a){jb(bZ,a)||d.push(a)});
a=d}if(!wO()){d=[];F(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw gO(cZ,null,"skippablevideo");a=d}return a},eZ=function(a,b){return null!=b?b.split(/[+, ]/):a},XY=function(a,b,c,d){a.A&&(c=Math.min(c,90));
var e=0,f=0;QN();a=!V();d=d&&a;a&&(e=15,f=65);var k=[];F(iga,function(a){var l=b-e>=a.width&&c-f>=a.height,n=!d&&!l&&90>=a.height&&b>=a.width&&c>=a.height;(l||n)&&k.push(a.width+"x"+a.height)});
return k.join(",")},fZ=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)},gZ=function(a,b){return null!=b?String(b):null!=a?a:null},hZ=function(a,b){if(null==b)return a;
switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a},iZ=function(a,b,c){return null!=b&&Tb(c,b)?b:a},WY=function(a){return zh(bZ,function(b){return jb(a.o,b)})},YY=function(a,b){WT?a.set("ca_type","flash"):a.set("ca_type","image");
if(null!=b){var c=b.B;null!=c&&0<c.length&&(c=c[0].G,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}},aZ=function(a,b,c){null!=b&&c.set(a,b)},kZ=function(a,b,c){JY.call(this,a,b);
var d=new PY;a=(new N(a.o)).o;d.Il=iZ(d.Il,a.get("cust_age"),jga);d.Zh=iZ(d.Zh,a.get("adsafe"),jZ);d.o=dZ(d.o,a.get("ad_type"));d.adType=d.o.join("_");d.pk=fZ(d.pk,a.get("videoad_start_delay"));d.qk=gZ(d.qk,a.get("slotname"));d.Hl=hZ(d.Hl,a.get("adtest"))||"on"==a.get("adtest");d.sk=hZ(d.sk,a.get("scs"));d.tk=gZ(d.tk,a.get("alternate_ad_url"));d.channels=eZ(d.channels,a.get("channel"));d.Lk=fZ(d.Lk,a.get("cpm"));d.Pg=gZ(d.Pg,a.get("description_url"));d.experimentIds=gZ(d.experimentIds,a.get("eid"));
d.gender=iZ(d.gender,a.get("cust_gender"),kga);d.A=hZ(d.A,a.get("overlay"));d.host=gZ(d.host,a.get("host"));d.B=eZ(d.B,a.get("h_ch"));d.hostTierId=fZ(d.hostTierId,a.get("ht_id"));d.Jl=hZ(d.Jl,a.get("lsv"));var e;null!=this.A.language?e=this.A.language:(e=aa.navigator||null,e=JN(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=gZ(f,e);var k;null!=e&&!C(E(e))&&(k=JN(e));d.language=gZ(d.language,k);d.Dp=fZ(d.Dp,a.get("linearAdSlotWidth"));
d.Cp=fZ(d.Cp,a.get("linearAdSlotHeight"));d.cj=fZ(d.cj,a.get("max_ad_duration"));d.am=fZ(d.am,a.get("min_ad_duration"));d.dj=fZ(d.dj,a.get("sdmax"));d.Fp=fZ(d.Fp,a.get("nonLinearAdSlotWidth"));d.Ep=fZ(d.Ep,a.get("nonLinearAdSlotHeight"));d.Vf=gZ(d.Vf,a.get("client"));d.lj=gZ(d.lj,a.get("t_pyv"));k=a.get("sdki");d.rj=fZ(d.rj,w(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=fZ(d.tagForChildDirectedTreatment,a.get("tfcd"));d.Om=iZ(d.Om,a.get("targeting"),lga);d.Ti=fZ(d.Ti,a.get("video_format"));
d.$m=fZ(d.$m,a.get("video_cpm"));d.Kl=gZ(d.Kl,a.get("loeid"));d.kn=gZ(d.kn,a.get("yt_pt"));d.gn=gZ(d.gn,a.get("ytdevice"));d.hn=gZ(d.hn,a.get("ytdevicever"));d.jn=gZ(d.jn,a.get("dbp"));d.C=gZ(d.C,a.get("ms"));d.adBlock=fZ(d.adBlock,a.get("adBlock"));d.url=gZ(d.url,a.get("url"));d.yk=gZ(d.yk,a.get("avo"));this.o=d;this.J=b;this.K=c;C(E(this.o.experimentIds))||(b=this.o.experimentIds.split(","),ON(QN(),b))},nga=function(a){return zh(mga,function(a){return jb(this.o.o,a)},a)},lZ=function(a){return V()?
1:jb(a.o.adType.split("_"),"text")?3:1},oga=function(a){a=a.o.channels?a.o.channels:[];
wb(a);a=ub(a,0,30);return a.join("+")},mZ=function(a,b){return Math.round(1.1*(a||0)+0*b)},nZ=function(a,b){JY.call(this,a,b)},oZ=function(a,b){JY.call(this,a,b)},pZ=function(a){JY.call(this,a,null)},qZ=function(a){JY.call(this,a,null)},rZ=function(a,b){JY.call(this,a,b);
V()&&this.A.sb("doubleclick_gpt_retagging")&&(this.B.D=oT())},sZ=function(a){if(C(E(a)))return!1;
a=new N(a);if(!a.C||"http"!=a.C&&"https"!=a.C)return!1;a=a.A;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0},pga=function(a){var b=[];
F(a,function(a){0<a.length&&b.push(ji(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")},tZ=function(a,b,c){rZ.call(this,a,b);
var d=QN();this.J=TN()?!1:C(E(a.B));a=new PY;VN()||(a.o=dZ(a.o,this.A.B),a.adType=a.o.join("_"));a.experimentIds=gZ(a.experimentIds,this.A.C);this.o=a;this.K=b;this.G=c;C(E(this.o.experimentIds))||ON(d,this.o.experimentIds.split(","))},qga=function(a){var b=$Y(a.A,a.K,a.o,a.G);
b.set("sdkv",OY(a));b.set("sdki",a.F().toString(16));return b},rga=function(a,b){var c=qga(a),d=ji(c.Qa(),function(a){var b=c.get(a);
return a+"="+(null!=b?b:"")});
yf(b,"afvparams",d.join("&"))},uZ=function(a,b,c){JY.call(this,a,b);
var d=QN();this.J=TN()?!1:C(E(a.B));d=new PY;VN()||(d.o=dZ(d.o,this.A.B),d.adType=d.o.join("_"));d.experimentIds=gZ(d.experimentIds,this.A.C);this.o=d;this.K=b;this.G=c;C(E(this.o.experimentIds))||(b=this.o.experimentIds.split(","),d=QN(),ON(d,b))},sga=function(a){var b=$Y(a.A,a.K,a.o,a.G);
b.set("sdkv",OY(a));return b},tga=function(a,b){var c=sga(a),d=ji(c.Qa(),function(a){var b=c.get(a);
return a+"="+(null!=b?b:"")});
cU(b,"afvparams",[wa(d.join("&"))])},vZ=function(a){JY.call(this,a,null)},vga=function(a){if(null==a.A||null==a.A.Eb)return{};
var b={},c=a.A.Eb;F(uga,function(a){a in c&&(b[a]=c[a])});
return b},wga=function(a,b){var c;
if(!hU(a.o)&&!iU(a.o)||(VN()?null==a.o||-1==a.o.search("afvbase="):C(E(a.B))||null==a.o||-1==a.o.search("afvbase=")))if(hU(a.o))c=new oZ(a,CT);else if(fU(a.o))c=new kZ(a,CT,b);else if(iU(a.o))c=new rZ(a,CT);else if(gU(a))c=new nZ(a,CT);else if(c=a.o,null!=c?(c=(new N(c)).A,c=va(c,".fwmrm.net")):c=!1,c)c=new pZ(a);else{c=a.o;if(null!=c){c=new N(c);var d=c.B;c=va(c.A,"youtube.com")&&eU("/get_midroll_info",d)}else c=!1;c=c?new vZ(a):new qZ(a)}else c=hU(a.o)?new uZ(a,CT,b):new tZ(a,CT,b);return c},xga=
function(a){a=ae(a,function(a){return 0<aW(a)});
Cb(a,function(a,c){return aW(a)-aW(c)});
return a},yga=function(a){return ae(a,function(a){return-1==aW(a)})},wZ=function(a){this.o=a},zga=function(){this.o=0},Aga=function(a,b,c,d,e,f){var k=y(function(a){d(a,Error(Im(a)))},a),m=y(function(a){6==a?xZ(this,b,!1,c,k,e,f):k(a)},a);
xZ(a,b,!0,c,m,e,f)},xZ=function(a,b,c,d,e,f,k){var m=new qn;
m.Y=c;rn(m,Bga(f));var l=new Am,n=y(function(){l.dispose();m.dispose()},a);
c=y(function(){e(m.A);n()},a);
Hm(l,m,"success",function(){var a;try{a=m.o?m.o.responseXML:null}catch(b){a=null}if(null==a){var c=Dn(m);try{a=oA(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(mA&&(a=nA())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);n()},a);
Hm(l,m,["error","timeout"],c,a);var t;"POST"==k&&(b=new N(b),t=b.o.toString(),sf(b,""),b=b.toString());a.o=K();m.send(ZN(b),k,t)},yZ=function(a,b,c){var d=null,e=c+b;
F(a.D,function(f){if(aU(f.G,"rm")){var k=qX(a);IV(a)&&(k.FILLED_OPPORTUNITY=0);dO(a.K,k);(k=a.B)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof dV)0==c&&0==b||f instanceof pY?k=!0:(k=f.jc(),k=k.width<=b&&k.height<=c);if(k&&(k=0==c&&0==b?0:c-f.jc().height+b-f.jc().width,"Flash"!=f.getContentType()||WT))if(null==d)d=f,e=k;else if(k==e&&f.o<d.o||k<e)d=f,e=k}});
TV(a,d)},zZ=function(a){var b=null;
F(a.D,function(a){a instanceof vV&&(null===b||a.o<b.o)&&(b=a)});
TV(a,b)},AZ=function(a,b,c,d){this.C=a;
this.J=b;this.ads=0<this.C.length?this.C:this.J;this.F=c;this.D=this.L=!0;this.A=-1;this.o=null;this.G=0;this.P=d;this.logger=null},BZ=function(a,b,c){null!=a.o?Cga(a,b,c):a.Hd()?Dga(a,b,y(function(a){!this.Hd()||!V()&&301==a.getErrorCode()?c(a):BZ(this,b,c)},a)):c(new DN("adLoadError","The ad source contains no more ads.",1005))},Ega=function(a,b){a.D=b;
a.ads=a.K(a.C,a.J);a.A=-1},Fga=function(a,b,c,d){var e=a.F.clone();
e.A="";e.o=b.Na;CZ(a,b,e,c,d)},CZ=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");
null!=f&&(f=f.B,null!=f&&(c.A=f));a.P.fetch(c,y(function(a){a instanceof AZ?(Gga(a,b,this.D&&b.Fa,b.Ga),d(a)):a instanceof wZ?e(new DN("adLoadError","Ad source cannot contain playlist response.",2)):e(new DN("adLoadError","Unknown ad source.",2))},a),e)},Hga=function(a){var b=0;
for(a=a.A;null!=a;)a=a.A,b++;return b},Cga=function(a,b,c){a.o.Hd()?BZ(a.o,y(function(a){this.B(a,b,y(function(a){this.Hd()?BZ(this,b,c):c(a)},this))},a),y(function(a){DZ(this.ads[this.A],a);
this.o=null;V()||301!=a.getErrorCode()?this.Hd()?BZ(this,b,c):c(a):c(a)},a)):(0==a.o.G&&DZ(a.ads[a.A],gO(EZ)),a.o=null,BZ(a,b,c))},DZ=function(a,b){if(b.A){1012==b.getErrorCode()&&(b=gO(FZ));
var c=pX(b,a);dO(a.ca,c)}},Dga=function(a,b,c){a.A++;
var d=a.ads[a.A];d.P||d.M?d.M?Fga(a,d,y(function(a){this.o=a;BZ(this,b,c)},a),y(function(a){a=GZ(a);
DZ(d,a);c(a)},a)):4<=Hga(d)?(a=gO(Iga,null,"4"),DZ(d,a),c(a)):a.L?a.H(d,y(function(a){this.o=a;
BZ(this,b,c)},a),y(function(a){a=GZ(a);
DZ(d,a);c(a)},a)):c(gO(Jga)):a.B(d,b,c)},GZ=function(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;
default:a=gO(EZ)}return a},Gga=function(a,b,c,d){F(a.ads,function(a){a.A=b});
Ega(a,c);a.L=d},HZ=function(a,b,c,d){AZ.call(this,[],a,b,c);
this.M=d},IZ=function(a,b,c,d,e){this.D=a;
this.B=b;this.C=c;this.o=d;this.F=e},Kga=function(a,b,c,d){var e;
try{e=oA(b.A)}catch(f){d(gO(aX,f));return}null!=e?JZ(a,e,b,c,d):d(gO(aX))},KZ=function(a,b,c,d){var e;
if(e=null!=b.o){a:{try{xa(b.o)}catch(f){e=!1;break a}e=!0}e=!e}e?d(gO(Lga,null,b.o)):KN.C?afa(PW(),y(a.A,a,b,c,d)):a.A(b,c,d)},Mga=function(a){var b="third_party";
fU(a.o)?b="adsense":hU(a.o)?b="dart":iU(a.o)?b="xfp":gU(a)&&(b="dbm");a={rt:b};xO.getInstance().o(17,a,!0)},JZ=function(a,b,c,d,e){var f;
try{var k=fga(b,c);if(!k)throw gO(aX);f=k.B();Nga(a,f,c,d)}catch(m){m instanceof DN?e(m):e(gO(Oga,m))}},Nga=function(a,b,c,d){var e=b.o;
if(null!=e)d(new wZ(e));else{var f=b.B;if(null==f)throw gO(GY);F(f,function(a){a.B=c;var d=HN();d&&IN(d,"useCompanionsAsEndSlate")&&(a.J=Mea(a));a.ea=Kea(a,RV(a));a.la=this.B.o;V()&&(a.Ca=b.A)},a);
e=xga(f);f=yga(f);0<f.length&&0<=$V(f[0])?d(new HZ(f,c,a,a.D)):d(new AZ(e,f,c,a))}},LZ=function(a){this.o=a+K()},Bga=function(a){var b=K();
a=a.o-b;return 0<a?a:0},Pga=function(a,b){this.o=a;
this.A=b;KN.o&&wR().init();var c;a:{try{c=window.top.location.href}catch(d){c=2;break a}c=null!=c?c==window.document.location.href?0:1:2}CT.J=c},Rga=function(a,b,c,d){var e=b.G;
V()&&e&&ON(QN(),e,!1);e=null;null!=a.o&&(e=new LW(1E3,a.o,a.A));var f=jea(b);null!=f&&iea(b)&&(a.A.Y=f);(new IZ(a.A,new zga,a.o,e,new LZ(8E3))).fetch(b,y(function(a){a instanceof wZ?c(a):Qga(this,a,c,d)},a),d)},Qga=function(a,b,c,d){var e=[],f=y(function(a,b){a.Hd()?BZ(a,y(function(b){e.push(b);
f(a,null)},this),y(function(b){301==b.getErrorCode()?d(gO(MZ)):f(a,b)},this)):0<e.length?c(e):(null==b&&(b=gO(FY)),1012==b.getErrorCode()&&(b=gO(FZ)),d(b))},a);
f(b,null)},Sga=function(a){this.B=a;
this.A=new go;this.o=!1},OZ=function(a,b,c,d){var e=y(function(a){c(a);
jo(this.A);this.o=!1;NZ(this)},a),f=y(function(a){d(a);
jo(this.A);this.o=!1;NZ(this)},a);
io(a.A,y(function(){Rga(this.B,b,e,f)},a));
NZ(a)},NZ=function(a){if(!a.o){var b=ko(a.A);
null!=b&&(a.o=!0,b())}},PZ=function(a,b,c){J.call(this);
this.C=new Sga(new Pga(b,c));this.A=b;this.o=!0;this.B=c},Tga=function(a,b,c){if(a.o){var d=null!=c?c:{};
JW.getInstance().end("rtr");Xea(JW.getInstance(),b.o);JW.getInstance().start("vl");OZ(a.C,b,y(function(a){QZ(this,a,d)},a),y(function(a){RZ(this,a,d)},a))}},Uga=function(a,b,c){if(!a.o){var d=null!=c?c:{};
OZ(a.C,b,y(function(a){QZ(this,a,d)},a),y(function(a){RZ(this,a,d)},a))}},QZ=function(a,b,c){if(a.o)if(b instanceof wZ)b=new SZ(b.o,a),b.G=a.A,a.aa(new GW(b,c));
else{var d;try{d=TZ(b),d.G=a.A,a.aa(new GW(d,c)),JW.getInstance().end("vl")}catch(e){RZ(a,gO(UZ,null),c)}}else b instanceof wZ?RZ(a,gO(Vga,null,"Unsupported ad format."),c):(d=new IW("adsLoaderSdkAdLoaded"),d.D=b,d.C=c,a.aa(d))},RZ=function(a,b,c){a.o?("always"==KN.A&&null!=a.A&&DW(a.A,yW()),a.aa(new EN(b,c))):(c=new IW("adsLoaderSdkAdError"),c.o=b,a.aa(c))},Wga=function(a){return'<div class="close-padding"><a class="close-button" title="'+X(a.close)+'" role="button" tabindex="0"></a></div>'},Xga=
function(){return'<div class="recall-button"></div>'},Yga=function(a){return'<a target="_blank" href="'+X(a.url)+'" class="attribution-button">'+X(a.text)+"</a>"},VZ=function(a,b){this.K=a;
this.J=O("div",{"class":"controls"});this.o=O("div",{"class":"adDisplay"});this.S=b||v;this.fd=new Am(this)},WZ=function(a){var b=O("div",{"class":"ima-container"});
wr(b,"opacity 0.4s");a.fd.R(b,"mouseover",a.By);a.fd.R(b,"mouseout",a.kE);b.appendChild(a.J);a.J.appendChild(a.o);return b},XZ=function(a,b){this.L=a;
this.O=new Je;this.P=15E3;this.G=O("span");VZ.call(this,a[0],b);this.o.appendChild(this.G)},YZ=function(a,b){VZ.call(this,a[0],b);
this.C=a;L(this.o,"ima-container-stack")},ZZ=function(a,b,c,d,e){HA.call(this);
this.A=a;this.D=b;this.G=c;this.B=d;this.F=da(e)?e:[e]},$Z=function(a,b,c,d,e){return new ZZ(a,b,{opacity:d},{opacity:e},{property:"opacity",
duration:b,timing:c,delay:0})},Zga=function(a){return'<a target="_blank" href="'+X(a.url)+'" class="fullslot-attribution-button">'+X(a.text)+"</a>"},$ga=function(a){return'<div class="fullslot-autoclose">'+X(a.Ew)+"</div></div>"},a_=function(a){return""+sa("Ad will close in {$xSeconds}",{xSeconds:X(a.wg)})},b_=function(a){J.call(this);
this.D=new Sd(200);I(this,this.D);this.A=0;this.C=!1;this.K=a;this.J=new Am(this);this.J.R(this.D,"tick",this.iC)},c_=function(a){a.D.stop();
a.C=!1},e_=function(){J.call(this);
this.o=!1;this.B=this.C=this.A=null;this.D=new Am(this);this.A=XR(Tda);this.C=Og("videoAdUiUnmutedIcon",this.A);this.B=Og("videoAdUiMutedIcon",this.A);d_(this);this.D.R(this.A,"click",this.F)},d_=function(a){a.C&&a.B&&(a.o?(Uq(a.C,"display","none"),Uq(a.B,"display","block")):(Uq(a.C,"display","block"),Uq(a.B,"display","none")))},f_=function(a,b){J.call(this);
this.A=a;this.Y=0;this.O=!1;this.C=0==vU(this.A.skipOffset)?3:1;this.o=this.B=this.ca=this.L=this.K=this.D=null;this.G=new Am(this);this.F=this.J=this.H=null;this.S=!1;this.M=new DR;this.Z="";aha(this,b);this.G.R(this.M,"click",this.ZD);ER(this.M,this.B)},aha=function(a,b){a.D=XR(Oda);
a.K=Og("videoAdUiPreSkipButton",a.D);a.L=Og("videoAdUiPreSkipText",a.K);a.ca=Og("videoAdUiPreSkipThumbnail",a.K);oh(a.L,ES({wg:g_(a)}));var c=wda(a.A.fa)||"";if(a.A.showContentThumbnail&&!C(E(c))){var d=window.document.createElement("img");d.setAttribute("src",c);L(d,"videoAdUiPreSkipThumbnailImage");a.ca.appendChild(d)}else L(a.L,"videoAdUiPreSkipTextOnly");a.o=XR(Pda,{$D:Ra(""+sa("Skip Ad {$skipSymbol}",{skipSymbol:X("")}))});a.B=Og("videoAdUiSkipButton",a.o);SN(QN(),9428661)&&(L(a.B,"autofocused"),
a.G.R(a.B,"blur",y(function(){be(this.B,"autofocused")},a)),a.B.autofocus=!0);
S(a.D,!1);b.appendChild(a.D);0==vU(a.A.skipOffset)?a.aa("skipshown"):(S(a.o,!1),or(a.o,0));b.appendChild(a.o)},g_=function(a){return null!=a.A.skipOffset&&-1!=vU(a.A.skipOffset)?vU(a.A.skipOffset):-1},h_=function(a,b){var c=g_(a);
if(!(0>c)){var c=Math.ceil(c-b),d=" "+c;60<=c&&(d=" "+ZT(c));c=ES({wg:d,xi:a.Z});oh(a.L,c)}},i_=function(a){null!=a.F&&(Vd(a.F),a.F=null)},l_=function(a,b,c){J.call(this);
this.o=a;this.Z=!1;this.Fa=c;this.ea=this.fa=this.da=this.F=this.L=this.O=this.H=this.ia=this.ha=this.K=this.A=null;this.ra=!1;this.Ca=this.la=this.na=this.J=this.M=this.C=this.D=this.ua=this.ca=this.Y=this.G=null;this.B=new Am(this);this.Ga=[];this.S=[];this.Z=!this.o.C&&SN(QN(),9416126);a={Yc:this.o.Yc,dg:this.o.dg,Ne:this.o.Ne,xi:this.Z?"redesign2014q4":""};this.A=XR(this.o.H,a);this.B.R(this.A,"touchmove",this.Uy);this.ca=Og("videoAdUiProgress",this.A);this.ua=Og("videoAdUiBuffer",this.A);this.K=
Og("videoAdUiAttributionContainer",this.A);this.ha=Og("videoAdUiAttributionIconContainer",this.A);this.ia=Og("videoAdUiAttribution",this.A);this.H=Og("videoAdUiVisitAdvertiserLinkText",this.A);this.O=Og("videoAdUiVisitAdvertiserIcon",this.A);this.L=Og("videoAdUiAuthorIcon",this.A);this.F=Og("videoAdUiAuthorName",this.A);this.da=Og("videoAdUiLearnMore",this.A);this.fa=Og("videoAdUiLearnMoreText",this.A);this.Z?(this.J=Og("videoAdUiTopButtonShare",this.A),this.na=Og("videoAdUiTopButtonShareTooltip",
this.A),this.la=Og("videoAdUiTopButtonInfo",this.A),this.Ca=Og("videoAdUiTopButtonWatchLater",this.A)):this.J=Og("videoAdUiShare",this.A);this.G=Og("videoAdUiTitle",this.A);this.Y=Og("videoAdUiTopBar",this.A);this.ea=Og("videoAdUiBottomBar",this.A);null!=this.L&&this.B.R(this.L,"click",this.Bw);null!=this.F&&(c=new DR,this.S.push(c),this.B.R(c,"click",this.Cw),ER(c,this.F));null!=this.da&&(c=new DR,c.L=!0,this.S.push(c),this.B.R(c,"click",this.Zp),ER(c,this.da));null!=this.fa&&(c=new DR,c.L=!0,this.S.push(c),
this.B.R(c,"click",this.Zp),ER(c,this.fa));null!=this.J&&this.B.R(this.J,"click",this.WD);null!=this.G&&(c=new DR,this.S.push(c),this.B.R(c,"click",this.gE),ER(c,this.G));null==this.Y||!V()&&mO()||this.B.R(this.A,"mouseover",this.VD);null!=this.H&&this.B.R(this.H,"click",this.Lj);null!=this.O&&this.B.R(this.O,"click",this.Lj);null!=this.K&&null!=this.o.D&&j_(this.o.D)&&(L(this.K,"videoAdUiWtaClickable"),this.B.R(this.K,"click",this.tD),this.B.R(this,"why_this_ad_got_it",this.sE));null!=this.o.skipOffset&&
(this.C=new f_(this.o,this.A),this.C.ng(this),this.C.Z=a.xi);this.o.M&&(this.M=new e_,this.M.ng(this),this.ea.insertBefore(this.M.A,this.K));400>=((0,window.parseInt)(Xq(b,"width"),10)||b.width)&&L(this.A,"videoAdUi-mobile");this.o.C&&(L(this.A,"blazer"),window.settings&&window.settings.isTablet?L(this.A,"tablet"):L(this.A,"phone"));a=vh(b,"html5-video-player");null!=a&&(this.Z&&L(a,"videoAdUiRedesign"),M(a,"ytp-video-ad-learn-more-ui",this.o.A));S(this.A,!1);b.appendChild(this.A);this.o.A||this.Z||
!this.o.K||(this.D=O("div",{style:"width:100%;height:100%;pointer-events:auto;"}),this.A.appendChild(this.D));k_(this)},bha=function(a){null!=a.D&&S(a.D,!1)},m_=function(a){a.C&&(a.C.dispose(),a.C=null)},cha=function(a,b){a.Ga=b;
F(b,function(a){a.display(this.A)},a)},n_=function(a){null!=a.H&&(S(a.H,!0),oh(a.H,a.o.visitAdvertiserText));
null!=a.O&&S(a.O,!0)},o_=function(a,b){if(null!=a.A){var c=vh(lh(a.A),"html5-video-player");
null!=c&&M(c,"ytp-ad-end-cap",b)}},k_=function(a){var b=a.o.S&&(a.Fa>a.o.da||0==a.Fa),c=b&&a.o.Z,d=b&&a.o.ca,e=b&&a.o.B,f=b&&a.o.O,b=b&&a.o.G,k=a.o.P&&a.o.o,m="0px";
null!=a.G&&(S(a.G,b),null!=a.L&&S(a.L,c),null!=a.F&&S(a.F,d),null!=a.da&&S(a.da,e),null!=a.J&&(S(a.J,f),f&&a.aa("videoShareShown")),null!=a.la&&S(a.la,!1),null!=a.Ca&&S(a.Ca,!1),null!=a.Y&&S(a.Y,b||c||d||e));null!=a.K&&p_(a);null!=a.ca&&(S(a.ca,k),k&&(m=Xq(a.ca,"height")));null!=a.ea&&Uq(a.ea,"bottom",m);null!=a.fa&&S(a.fa,V()&&a.o.A&&!e);null!=a.ha&&S(a.ha,a.o.J)},dha=function(a,b,c,d,e){var f=FS({Bj:"",
Yh:0,Fj:0});a.o.o&&a.o.L&&(b=ZT(c-b),f=FS({Bj:a.o.C?" \u2022 "+b:a.Z?" \u00b7 "+b:": ("+b+")",Yh:d,Fj:e}));oh(a.ia,f);p_(a)},p_=function(a){S(a.K,a.o.F&&(!a.o.o||a.ra))},q_=function(a,b,c){this.D=a;
this.B=b;this.G=c;this.A=this.C=this.F=this.o=null},j_=function(a){return a.G&&(null!=a.D||null!=a.B)},r_=function(a,b,c){b=Og(b,a.o);
null!=b&&a.C.R(b,"click",c)},s_=function(a,b,c){null!=a.o&&a.o.parentElement.removeChild(a.o);
a.o=XR(b,c);r_(a,"videoAdUiPopupCloseIcon",a.pi);a.F.appendChild(a.o);b=Og("videoAdUiPopupFrame",a.o);null!=b&&Oc(b,"submit",function(a){a.preventDefault()});
a=Og("videoAdUiPopupDefaultButton",a.o);null!=a&&a.focus()},t_=function(){this.Yc=FS({Bj:"",
Yh:0,Fj:0});this.dg=""+sa("Learn More {$suffix}",{suffix:X("")});this.visitAdvertiserText=""+sa("Visit Advertiser's Site");this.Ne=HS();this.skipOffset=null;this.da=6E3;this.F=!0;this.J=!1;this.L=this.o=this.K=!0;this.O=this.P=this.M=this.B=!1;this.S=!0;this.G=this.ca=this.Z=this.Y=this.A=!1;this.H=null;this.showContentThumbnail=!0;this.C=!1},u_=function(a,b,c,d){var e=new t_;
e.A=a;e.ea=b;e.skipOffset=c;e.fa=null!=d?d.contentId:null;e.K=d.nE;e.H=Lda;e.ha=JR(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e},w_=function(a,b,c,d,e){b_.call(this,b.o);
this.H=b;this.G=c;this.L=this.H.o;this.o=a;this.B=this.F=null;L(this.o,QY(this.G));a=this.o;b=new t_;b.skipOffset=new uU(this.H.B,!1);this.B=new f_(b,a);d&&d.text&&(d=XR(Zga,d),this.o.appendChild(d));e?(e=this.o,d=a_({wg:v_(this.L)}),a=XR($ga,{Ew:d}),oh(a,d),e.appendChild(a),e=a):e=null;this.F=e},eha=function(a){var b=Og("videoAdUiSkipButton",a.o);
return b?ir(b,a.o):new re(0,0)},v_=function(a){a=Math.ceil(a);
return"0:"+(10>a?"0"+a:""+a)},x_=function(a){G.call(this);
this.M=!!a;this.F="";this.C=new xU;this.B=new Je;this.G=[];this.K=!1;this.A={};this.J={};this.D=-1;this.H=[]},fha=function(a,b){null!=b&&F(b,function(a){jb(this.H,a)||this.H.push(a)},a)},y_=function(a,b,c,d){var e;
KN.o||(e=PW().L||void 0);F(b,function(a){var b=this.A,m=c||{};rX(b,a,"MOAT_INIT",nfa);rX(b,a,"MOAT_VIEWABILITY",hd(m.moatViewability||""));rX(b,a,"GOOGLE_VIEWABILITY",hd(m.googleViewability||""));aO(a,this.A,c,d,e)},a)},gha=function(a,b){switch(b){case "abandon":return!Le(a.B,b)&&!Le(a.B,"skip")&&!Le(a.B,"instreamAdComplete")&&(Le(a.B,"impression")||a.K);
case "click":return!0;case "instreamAdComplete":case "complete":return!Le(a.B,b)&&!Le(a.B,"skip");default:return!Le(a.B,b)}},z_=function(a,b){J.call(this);
this.o=a;this.A=new Am(this);I(this,this.A);this.A.R(b,["companion_impression","companion_click"],this.B)},A_=function(a){J.call(this);
this.ads=a;this.H=null;this.ca=new Am(this);I(this,this.ca);this.K="normal";this.C=this.volume=null;this.B=new zO;this.Fa=!1;this.content={};this.D=new x_;this.fa=!1;this.ua=SN(QN(),41351021);this.Ca=null;var b=0;F(a,function(a){b+=lW(a)});
F(a,function(b,d){var e=b.C;e.C=a.length;var f=d+1;e.A=f;e.D=f})},Y=function(a){if(B_(a)){if(null!=EV(a.H)&&!wO())throw hO(cZ,null,"skippablevideo");
if(null!=sW(a.H)&&C_(a,a.H.A))throw hO(cZ,null,"vpaidWithSkippabilityOverride");return a.H}throw hO(D_,null,"An ad has not been selected.\n"+Error().stack);},C_=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:C_(a,b.A)},B_=function(a){return null!==a.H},hha=function(a){return zh(a.ads,function(a){return zh(E_(a),function(a){a=a.getUrl();
return!C(E(IR(a)))})},a)},E_=function(a){var b=a.A;
if(b&&b.M&&(b=b.D,!kb(b)&&b[0]instanceof vV))return b[0].M;b=a.o;return F_(a)?b.M:[]},F_=function(a){a=a.o;
return null!=a&&a instanceof vV},G_=function(a){null==a.J&&(a.J=new Am(a));
return a.J},I_=function(a,b){if(null!=a.G){a.ca.removeAll();
Gm(a.ca,a.G,"companion_display_error",function(){});
var c=DW(a.G,b);null!=c&&(a.ca.R(c,"companion_impression",a.HA),a.ca.R(c,"companion_click",a.jm),V()&&(c=new z_(b,c),a.oa("companionInitialized",c)));if(!a.G.oo())throw hO(H_);}},iha=function(a){F(a.ads,function(a){if(a=a.getExtension("sodar")){var c=a.C,d=a.B,e=a.D,f=a.A;
a="//tpc.googlesyndication.com/sodar/"+(0,window.encodeURIComponent)(c)+".js";var k="//pagead2.googlesyndication.com/bg/"+(0,window.encodeURIComponent)(e)+".js";if(c&&d&&e&&f){var e=window,c=e.document,m={};m._scs_=d;m._bgu_=k;m._bgp_=f;m._li_="v_h.0.0.0";(d=e.GoogleTyFxhY)&&"function"==typeof d.push||(d=e.GoogleTyFxhY=[]);d.push(m);d=c.createElement("script");d.type="text/javascript";d.async=!0;d.src=a;c.getElementsByTagName("head")[0].appendChild(d)}}})},J_=function(a,b){a.D.o(new jc(b))},K_=function(a,
b){a.D.o(new jc(b));
a.oa(b)},L_=function(a){if(!a.fa)throw hO(D_,null,"Ads manager is not correctly configured.");
},M_=function(a){do if(hW(a))return!1;
while(a=a.A);return!0},N_=function(a,b){for(var c=b;null!=c;)F(c.G.Oa(),a.FD,a),c=c.A},jha=function(a){if(!da(a))throw hO(D_,null,"adsRenderingSettings.mimeTypes should be an array");
var b=rb(Vb(O_),Vb(SU));F(a,function(a){if(!jb(b,a))throw hO(D_,null,"Invalid or unsuppoted mime type "+a);})},P_=function(a){A_.call(this,a);
this.L=null;this.ia=O("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.S=!1;this.da=[]},Q_=function(a,b){var c=Aea(b);
F(c,function(a){CU(this.D.C,"click",a)},a)},R_=function(a,b){var c=pX(b,Y(a)),d=NV(Y(a));
dO(d,c)},S_=function(a){P_.call(this,a);
this.Y=!1;this.F=this.O=null;this.ea=!1},T_=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.D,b=b.F;
a={text:null!=c?c:a.ha.C,url:null!=b?b:a.ha.D};null==a.text&&(c=sa("Ads by Google"),c=cS(""+c),a.text=c);return a},U_=function(a){return B_(a)&&nW(Y(a))},kha=function(a){var b=V_(a);
b.rba=a.S;xO.getInstance().o(37,b)},V_=function(a){var b=[],c=[];
F(a.O,function(a){b.push(a.getWidth()+"x"+a.getHeight());c.push(a.getContentType())},a);
var d={};d.pid=JW.getInstance().o;d.fsmode=null!=a.F;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.K;return d},W_=function(a,b){if(a.F){a.Ii(new jc("close"));
var c={};c.pid=JW.getInstance().o;c.evt=b;xO.getInstance().o(35,c)}},lha=function(a,b){function c(a,b){for(var c in a)for(var k=c.toLowerCase(),m=0;m<X_.length;m++){var l=X_[m];
if(k==l)throw Error('Cannot override "'+l+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")},Y_=function(a,b){BE.call(this,b);
this.K=a;this.B=new Am(this);this.A=new Je},Z_=function(a){return a.ma()?a.ma().firstChild:null},$_=function(a){A_.call(this,a);
this.A=null;this.L=!0;this.na=this.ia=this.Y=!1;this.la=Xa();this.da=this.ea=0;this.Z=-1;this.F=null;this.S=0;this.O=1;this.ha=-1},a0=function(a){var b;
b=a.Ub("getAdRemainingTime");b=ga(b)?b:-2;if(!ga(b)||0>b)b=30;Vd(a.ha);a.ha=Ud(a.stop,1E3*b,a)},b0=function(a,b,c,d){d=hO(b,c,d);
var e=pX(d,Y(a)),f=NV(Y(a));dO(f,e);b.message=d.getMessage();jO(a,b,c)},c0=function(a){FN.call(this,"adMetadata",a)},mha=function(a,b,c){var d=v,e=new N("https://www.googleapis.com/youtube/v3/videos");
yf(e,"id",a);yf(e,"part","snippet,status");yf(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=y(b,c),d=y(d,c));d0(new qn,e,b,d)},nha=function(a,b,c){var d=v,e=new N("https://www.googleapis.com/youtube/v3/channels");
yf(e,"id",a);yf(e,"part","snippet,statistics");yf(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount");null!=c&&(b=y(b,c),d=y(d,c));d0(new qn,e,b,d)},d0=function(a,b,c,d){yf(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");
rn(a,2E3);var e=new Am(a);Gm(e,a,"success",function(a){a=a.target;var b;b=a.o?de(a.o.responseText):void 0;c(b||{});e.dispose();a.dispose()});
Gm(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.A&&(b=Error(Im(a.A)));d(b);e.dispose();a.dispose()});
a.send(b)},e0=function(a){if(a&&a.items&&a.items.length){a=a.items[0];
this.channelId=a.id;var b=a.snippet;b&&(this.A=b.title,this.o=Xb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}},f0=function(a){if(a&&a.items&&a.items.length){a=a.items[0];
this.videoId=a.id;var b=a.snippet;a.snippet&&(this.channelId=b.channelId,this.title=b.title);if(a=a.status)this.isListed="unlisted"!=a.privacyStatus}},h0=function(a,b,c,d,e){b_.call(this,d);
this.F=a;this.M=b;this.L=e;this.G=new Am(this);I(this,this.G);this.B=new DR;I(this,this.B);a=lV(c);c=new nV(YU(c.o,"action")[0]);d=c.o.title;c=XR(rea,{headline:oV(a),description:pV(a),image:qV(rV(a)),action:null!=d?d:"",target:sV(c)});b.appendChild(c);b=Og("iv-endcap-action",c);this.G.R(this.B,"click",this.H);ER(this.B,b);this.o=Og("iv-endcap-countdown-inner",c);null!=this.o&&Uq(this.o,"stroke-dasharray","0 "+g0)},oha=function(){var a=sa("Your video will play after this ad.");
return cS(""+('<div class="videoAdInterstitial"><p>'+a+"</p></div>"))},i0=function(){G.call(this);
this.B=XR(oha);this.o=0},j0=function(a){a.o&&(Vd(a.o),a.A(v))},k0=function(a){jc.call(this,a)},l0=function(a){J.call(this);
this.C=a;this.M=new Je;this.J=-1;this.K=this.O=!1;this.G=""},m0=function(a){this.o=!1;
this.mute=a.Rf();this.volume=a.Ld()},n0=function(a){null!=a.A&&a.A.dispose();
null!=a.o&&a.o.Uf();null!=a.F&&a.F.dispose();a.F=null;null!=a.H&&a.H.dispose();a.H=null;a.M.clear();a.J=-1;a.G="";a.O=!1;a.K=!1},o0=function(a,b,c,d){if(!c||null==a.M.get(b)){d&&!a.K&&(b="error");
a.M.set(b,!0);a:{c=b;if(a.B&&a.B.o.B){if("click"==c)break a;"videoLearnMoreClicked"==c&&a.C.o(new jc("click"))}d=pha[c]||null;null!=d&&null!=a.o&&a.o.Em(d);a.C.o(new jc(c))}a.aa(b)}},p0=function(a){0>a.J||a.O||!a.o.Og(a.J)&&!a.o.af()||!a.K||(a.O=!0,o0(a,"engagedview",!0,!0),a.aa(new k0("viewCount")))},q0=function(a){p0(a);
if(V()){var b=a.C;if(!(b.M&&Le(b.B,"skip")||0>b.D))for(var c=AU(b.C,"progress"),d=b.D;d<c.length;d++){var e=c[d];b.D=d+1;aO(e.getUrl(),b.A)}}o0(a,"complete",!0,!0)},r0=function(a){A_.call(this,a);
this.F=this.A=null;this.Y=!1;this.O=new l0(this.D);this.ha=this.ra=this.ia=this.Z=!1;this.na=this.S=1;this.L=null;this.Ja=new i0;this.la=new Uj;this.Ka=!1;this.da=[];this.ea=!1;this.Ga=!mO()&&SN(QN(),9416126)},s0=function(a,b){var c=Ud(function(){this.la.remove(c);
b.call(this)},0,a);
Tj(a.la,c)},t0=function(a){Mb(a.A);
a.A=null;Mb(a.O);Mb(a.D);a.ia=!1;a.ha=!1},u0=function(a){a.ph();
B_(a)?a.start():a.stop()},rha=function(a){if(!B_(a))return!1;
var b=a.C.ge();if(null==b)return!1;var c=Y(a),d;if(d=c.J?c.J.o.eh()?c.J.o.Ml():c.J.getContent():"")qha(a,b,d);else if(iW(c)&&c.B.sb("enable_ad_video_end_renderers")){d=rW(c);var e=!c.B.sb("ad_video_end_disable_auto_open_drawer");a.F=new h0(a.o,b,c.ea[0],d,e);G_(a).R(a.F,"click",y(a.Jo,a,null));a.A&&o_(a.A,!0);a.C.nd();a.F.start();K_(a,"video_card_endcap_impression")}null!=a.F&&(G_(a).R(a.F,"timeUpdate",a.sr),G_(a).R(a.F,"end",a.gx));return null!=a.F},qha=function(a,b,c){xO.getInstance().o(34,{evt:"start"},
!0);
var d=O("div");L(d,"controls");var e=O("div");L(e,"adDisplay");L(e,"endslate");e.innerHTML=c;(c=gh(e)[0])&&Uq(c,{margin:"0 auto"});F(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&G_(this).R(a,"click",y(this.Jo,this,b))},a);
d.appendChild(e);e=new dX;hfa(e,rW(Y(a)));e.B=0;e.A=0;a.F=new w_(d,e,1,{},!0);G_(a).R(a.F,"skip",a.Ko);$g(b,a.F.getContainer());a.C.nd();a.F.start();K_(a,"video_card_endcap_impression");a.A&&(bha(a.A),m_(a.A))},w0=function(a,b){v0(a);
null!=a.o&&a.o.zp();a.oa("complete");K_(a,b);J_(a,"instreamAdComplete");u0(a)},v0=function(a){a.F&&(a.F.dispose(),a.F=null);
a.A&&o_(a.A,!1);a.Y=!1},x0=function(a){var b=B_(a)?Y(a).F:null;
if(b){var c;a:{if(B_(a)&&(c=vW(a.H),null!=c))break a;c=""}var d;a:{if(B_(a)&&(d=wW(a.H),null!=d))break a;d=""}var e=Y(a).B;(c||d||e.allowAdsPayCreator)&&a.o.Dl(b,c||null,d||null,e.allowAdsPayCreator)}},y0=function(a,b,c,d){b=AU(b.o,c);
kb(b)||(a[d]=b[0].getUrl())},z0=function(a,b,c){b=c.getExtension(b);
null!=b&&(y0(a,b,"annotation_click","cta_annotation_clicked"),y0(a,b,"annotation_close","cta_annotation_closed"),y0(a,b,"annotation_start","cta_annotation_shown"))},sha=function(a,b){var c=hW(b)&&!b.P?UV(b):null,d=null!=EV(b)&&!FV(b),e=null!=a.A&&a.A.o.A,f=b.B,k=KR(a.pp());
if(!k){var m=b.getExtension("AdSense");null!=m&&(k=m.isPharma())}var m=HV(b),l;a.A?(l={},z0(l,"AdSense",b),z0(l,"dart",b),z0(l,"DFP",b)):l=null;return new cT(m,c,0,l,e,d,a.B.loadVideoTimeout,f?f.Mi:!1,!1,YV(b),a.B.fg,k,f?f.sb("legacy_autoplay_flag"):!1)},tha=function(a){var b=0,c=0;
F(a.ads,function(a){!F_(a)||V()&&0!=c||(c++,b+=lW(a))},a);
var d=1;F(a.ads,function(a){var b=a.C;b.C=c;F_(a)&&(b.A=d,b.D=d,d++)},a)},A0=function(a){var b=a.A;
return b&&b.M&&(b=b.D,!kb(b)&&b[0]instanceof vV)?b[0].jd():SV(a)},C0=function(a,b){if(!F_(b))throw hO(B0);
var c=b.o;if(!C(E(null)))return new uV("","","",0,0,0,0,0,null,"");var d=E_(b),e=a.o.Kr(d,a.B.bitrate,a.B.$g||[],null!=b&&(V()||a.C.Pi()||a.C.zl()||mO()));uha(d,a.B.bitrate,e,MV(b));if(null!=e)return c.ra=e;try{vha(a,b)}catch(f){}throw hO(wha);},vha=function(a,b){if(xO.getInstance().A){var c=new Uj,d=!1;
F(E_(b),function(a){Tj(c,a.o);"VPAID"==a.A&&(d=!0)},a);
var e=a.o.il(),e={aid:UV(b),mt:c.Oa().join(","),smt:e.join(","),hvp:d,st:ZV(b).join(",")};xO.getInstance().o(28,e)}},uha=function(a,b,c,d){if(!V())try{var e=ji(a,function(a){return a.pe}),f=ji(a,function(a){return a.o});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.pe;a.selmt=null===c?"":c.o;a.ic=!1;a.nat=!1;a.iyh=XN(c.getUrl())?"1":"0";a.as=d;xO.getInstance().o(22,a)}catch(k){}},D0=function(a,b){b in a.da||(a.da.push(b),a.oa(b))},F0=function(a,b,c){b.getMessage();
b.getErrorCode();E0(a,c);a.ph();B_(a)?(iO(hO,a,b,c,void 0),a.start()):(jO(a,b,c),a.stop())},E0=function(a,b){var c=hO(G0,b),c=pX(c,Y(a),a.o),d=NV(Y(a));
dO(d,c)},H0=function(a){if(KN.o){var b=A0(Y(a));
null!=b&&$N(b)}a.oa("click")},I0=function(a,b){Tb(xha,b)&&Dm(G_(a),a.O,b,a.pr,a)},J0=function(a){if(!a.ea){var b=Y(a),c=b.F;
if(uW(b)&&!V()&&!a.C.Pi()&&c){var b=a.o.getCurrentTime(),d=a.o.Kd(),e=new N("//s.youtube.com/s");yf(e,"ns","yt");yf(e,"el","adunit");yf(e,"docid",c);yf(e,"eurl",window.document.URL);yf(e,"len",d.toFixed(2));yf(e,"tv","1");yf(e,"ps","trueview-instream");yf(e,"st",b.toFixed(2));yf(e,"et",b.toFixed(2));yf(e,"rt",b.toFixed(2));aO(e.toString());a.ea=!0}}},yha=function(a){var b=Y(a).S;
if(null!=b){var b=b.videoId,c=a.B.baseYouTubeUrl;if(C(E(b)))b=null;else{var c=new N((null!=c?c:"//www.youtube.com/")+"watch"),d=c.o;d.set("v",b);sf(c,d);c.J="action=share";b=c.toString()}null!=b&&($N(b),a.Qr())}},zha=function(a){a=K0(a)||L0(a);
null!=a&&bO(a,"sharebuttondisplayed")},K0=function(a){a=Y(a).getExtension("AdSense");
return null!=a?new N(a.B):null},L0=function(a){if(a=Y(a).o)if(a=QU(a,"start"),!kb(a))return new N(a[0].getUrl());
return null},Aha=function(a){var b=Y(a),c=b.S;
null!=c&&(b=JR(c.videoId,null!=EV(b),a.B.baseYouTubeUrl),null!==b&&(a.o.pause(),$N(b)))},M0=function(a){s0(a,function(){this.oa("skip");
u0(this)})},N0=function(a,b){mha(b,function(a){a=new f0(a);
B_(this)&&Y(this).F==a.videoId&&(Bha(this,a),!C(E(a.channelId))&&a.isListed&&nha(a.channelId,function(a){a=new e0(a);if(null!=this.A){var b=this.A,c=a.A;b.o.ca=!C(E(c));b.o.La=c;null!=b.F&&(c=sa("by {$userDisplayName}",{userDisplayName:""+b.o.La}),oh(b.F,(new iS(""+c,void 0)).getContent()));k_(b);b=this.A;c=a.o;b.o.Z=!C(E(c));if(null!=b.L){var k=window.document.createElement("img");k.setAttribute("src",c);L(k,"videoAdUiAuthorIconImage");b.L.appendChild(k);null!=b.G&&L(b.G,"videoAdUiTitleWithAuthorIcon");
null!=b.F&&L(b.F,"videoAdUiAuthorNameWithAuthorIcon")}k_(b)}B_(this)&&(Y(this).O=a,this.oa("youTubeChannelMetadata"));if(a=this.A)a=Y(this),b=a.S,a=V()&&kb(PV(a))&&null!=a.O&&null!=b&&b.isListed;if(a){a=Y(this);G_(this).R(window,"message",this.Ix);var b=Y(this),c=b.O.channelId,k=HV(b),m=this.B.contentId,l=this.B.baseYouTubeUrl,l=new N((null!=l?l:"//www.youtube.com/")+"ad_companion"),n=l.o;n.set("adformat",k);n.set("p",c);n.set("render","video_wall_companion");m&&n.set("content",m);c=new qY("1",new ue(300,
250),"IFrame",null,l.toString());c.K=b;c.D=!0;a.H=[new UU(c,[],null,!0)];I_(this,a)}},this))},a)},Bha=function(a,b){if(null!=a.A&&b.isListed){var c=a.A,d=b.title;
c.o.G=!C(E(d));c.o.title=d;O0.test(Yf(c.o.title,void 0));null!=c.G&&oh(c.G,c.o.title);k_(c);c=a.A;null!=c.na?oh(c.na,""+sa("Share")):null!=c.J&&oh(c.J,""+sa("Share"))}B_(a)&&(Y(a).S=b,a.oa("youTubeVideoMetadata"))},P0=function(a){var b=Y(a).O;
if(null!=b){var c;c=a.B.baseYouTubeUrl;b=E(b.channelId);c=C(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ua(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.o.pause(),$N(c))}},Cha=function(a){var b=JW.getInstance();
if(b.A){var c={};if(null!=a.L){var d=(new N(a.L.getUrl())).A;if(null!=d){var d=bb(d,".",10),e=d.length;2<=e&&(c.cd1=d[e-2]+"."+d[e-1])}c.cm1=a.L.qe;c.cd3=a.L.o;c.cd5=b.o;c.cm2=a.B.bitrate;c.cd2=XN(a.L.getUrl())?"1":"0";d=a.L.getWidth();e=a.L.getHeight();null!=d&&null!=e&&(c.cd8=d+"x"+e);a.o&&(d=a.o.hd(),c.cd4=d.width+"x"+d.height);a=a.L.G;C(E(a))||(c.cd7=a)}b.end("bt",c)}},Q0=function(a,b){jc.call(this,"vpaidEvent");
this.sessionId=b},R0=function(a){A_.call(this,a);
this.Ja=this.Ga=this.la=!1;this.ea=[];this.S=Xa();this.A=null;this.F=!0;this.ia=-1;this.ha=new Sd(500);this.na=this.Z=-1;this.Y=1;this.ra=this.Ka="";this.da=!1;this.O=2==KN.D},T0=function(a){var b=QV(Y(a)),c=E(SV(Y(a))),d=sW(Y(a)),c={desiredBitrate:a.B.bitrate,
creativeData:b,viewMode:a.K,clickThroughUrl:c,adUrl:d};sW(Y(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.B.surveyCreativeData&&(c.creativeData=a.B.surveyCreativeData);S0(a,"initAd",c);F(a.ea,function(a){S0(this,a.type,a.params)},a);
a.la=!0;a.ea=[]},U0=function(a,b,c){c=c||null;
a.la?S0(a,b,c):a.ea.push({type:b,params:c})},S0=function(a,b,c){c=c||{};
c.session=a.S;c.type=b;a.O?window.parent.postMessage(ge(c),"*"):null!=a.L.contentWindow&&a.L.contentWindow.postMessage(ge(c),"*")},V0=function(a,b,c,d){d=hO(b,c,d);
var e=pX(d,Y(a)),f=NV(Y(a));dO(f,e);b.message=d.getMessage();jO(a,b,c)},Y0=function(a,b){if(w(b.type))switch(b.type){case "friendlyReady":T0(a);
break;case "videoCall":switch(b.func){case "load":case "play":a.C.ah();a.ra!=b.src&&(a.ra=b.src,a.A.load(b.src,b.mimetype));a.A.play();break;case "pause":a.A.pause()}break;case "returnDuration":a.Z=b.duration;break;case "returnRemainingTime":a.ia=b.remainingTime;break;case "AdClickThru":J_(a,"click");a.oa("click");break;case "AdDurationChange":a.Z=b.duration;a.ia=b.remainingTime;Y(a).o.lg(a.Z);a.oa("durationChange");break;case "AdError":V0(a,W0,Error(b.message));a.stop();break;case "AdExpandedChange":a.oa("expandedChanged");
break;case "AdImpression":var c=Y(a);kb(PV(c))||I_(a,c);a.oa("impression");break;case "AdLinearChange":c=b.isLinear;!a.F&&c?(a.oa("contentPauseRequested"),U0(a,"becameLinear")):!c&&a.F&&(a.oa("contentResumeRequested"),U0(a,"becameNonlinear"),U0(a,"getAdRemainingTime"),U0(a,"getAdDuration"));a.F=c;var d=Y(a);d.ha=!0;d.ia=c;a.oa("linearChanged");break;case "AdLoaded":Vd(a.na);a.Ga=!0;d=b.companions;c=Y(a);kb(PV(c))&&(d=yY(d,c.o.o),kb(d)||yV(c,d));X0(a);K_(a,"loaded");break;case "AdPaused":a.da=!0;K_(a,
"pause");break;case "AdPlaying":a.da=!1;K_(a,"resume");break;case "AdRemainingTimeChange":a.ia=b.remainingTime;break;case "AdSkipped":K_(a,"skip");break;case "AdSkippableStateChange":K_(a,"skippableStateChanged");break;case "AdStarted":J_(a,"impression");J_(a,"creativeview");a.oa("start");break;case "AdStopped":J_(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.F?J_(a,"acceptinvitationlinear"):J_(a,"acceptinvitation");break;case "AdUserMinimize":J_(a,"collapse");break;case "AdUserClose":K_(a,
"userClose");break;case "AdVideoComplete":K_(a,"complete");break;case "AdVideoFirstQuartile":K_(a,"firstquartile");break;case "AdVideoMidpoint":K_(a,"midpoint");break;case "AdVideoStart":J_(a,"start");break;case "AdVideoThirdQuartile":K_(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.Y&&a.oa("volumeChange");0==c&&0!=a.Y?(J_(a,"mute"),a.oa("mute")):0==a.Y&&0!=c&&J_(a,"unmute");a.Y=c;a.A.setVolume(c);break;case "Ping":aO(b.url)}},Z0=function(a,b){S0(a,"wrapperCall",{messageType:b})},
X0=function(a){a.Ga&&a.Ja&&(U0(a,"startAd"),a.ha.start(),a.F||(U0(a,"becameNonlinear"),U0(a,"getAdRemainingTime")),U0(a,"getAdDuration"))},$0=function(a){this.o=a},a1=function(a,b,c,d,e,f,k){J.call(this);
this.C=this.F=0;this.J=a;this.tc=b;this.ia=c;this.D=null;this.K=d;this.ca=f;this.S=KN.A;this.o=null;this.da=this.fa=-1;this.Z="normal";this.M=null;this.G=e;this.A=[];this.ha=this.O=this.ea=this.L=!1;this.Y=k;Dha(this)},b1=function(a,b,c,d){a.fa=b;
a.da=c;null!=d&&(a.Z=d);null!=a.o&&a.o.gd(b,c,d)},Dha=function(a){F(a.J,function(a){a=new N(a.B.o);
var c=a.o.get("max_ad_duration");p(c)||a.o.get("pmxd")})},c1=function(a){return a.F<a.J.length&&null!=a.J[a.F]},Eha=function(a,b){var c;
if(c=V()&&!kb(b)&&0==a.tc)c=b[0],c=null!=c&&null==sW(c)&&kW(c,"nonlinear");return c?(c=XV(b[0]),"ADSENSE"==(0<c.length?c.pop():MV(b[0])).toUpperCase()):!1},e1=function(a){!c1(a)||2<=a.A.length-a.C?a.ea||(a.aa("adBreakInitialized"),a.ea=!0):d1(a)},d1=function(a){var b=a.J[a.F];
Dm(a.H,a.K,"adsLoaderSdkAdLoaded",a.rq,a);KN.A="on_master_ad";Uga(a.K,b.B,b)},Fha=function(a){null==a.tc||zh(a.A,function(a){return!a.A})||(a.A=ae(a.A,function(a){return!(a.A&&!a.B)}))},j1=function(a){var b;
a:{if(a.C<a.A.length&&(b=a.A[a.C].o,!kb(b))){b=null!=b[0]&&null==AV(b[0]).rm;break a}b=!1}if(b){b=a.A[a.C];try{if(a.O||(f1(a),a.o=g1(a,b.o),h1(a)),a.o.init(a.Z),null!=a.M&&a.o.setVolume(a.M),i1(a.o))a.aa("contentResumeRequested"),a.G.nd(),a.o.start(),null!=a.D&&a.D.start();else{var c=a.o;if(null!=c&&c instanceof r0)a.G.ah(),a.o.start();else{var d=a.o;if(null!=d&&d instanceof R0)a.G.nd(),a.o.isLinear()?a.G.ah():a.aa("contentResumeRequested"),a.o.start();else{var e=a.o;if(null!=e&&e instanceof $_)a.G.nd(),
a.o.isLinear()||a.aa("contentResumeRequested"),a.o.start();else throw Error("Unknown ads manager type.");}}}}catch(f){a.C++,j1(a)}c1(a)&&d1(a)}else a.aa("contentResumeRequested"),k1(a)},g1=function(a,b){var c=TZ(b);
c.G=a.Y;null!=a.B&&(a.B.dispose(),a.B=null);a.B=new Am(a);Dm(a.B,c,"companionBackfill",a.sq,a);c.$c(new $0(a.G),{currentTime:0},a.ca);c.gd(a.fa,a.da,a.Z);return c},f1=function(a){a.G.ka();
null!=a.D&&(a.D.dispose(),a.D=null);null!=a.B&&(a.B.dispose(),a.B=null);null!=a.o&&(a.o.destroy(),a.o=null)},h1=function(a){if(null==a.o)throw Error("The current ads manager is not defined");
var b=a.o;Dm(a.B,b,"adError",a.Sz,a);Dm(a.B,b,l1,a.sq,a);a.B.R(b,["allAdsCompleted"],v);Dm(a.B,b,"contentPauseRequested",a.Hy,a);Dm(a.B,b,"contentResumeRequested",a.Iy,a);Dm(a.B,b,"userClose",a.Jy,a);Dm(a.B,b,"autoClose",a.Gy,a);i1(a.o)&&(b=a.getCurrentAd(),null==b||!nW(b))&&(b=Y(a.o).o.Ca,0<b||a.ca.qo)&&(0>=b&&(b=15),null!=a.D&&a.D.dispose(),a.D=new Sd(1E3*b),Hm(a.B,a.D,"tick",a.QB,a))},i1=function(a){return null!=a&&a instanceof P_},k1=function(a){a.L=!1;
a.aa("allAdsCompleted")},Gha=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"companionBackfill"==b||"firstquartile"==b){var d=0,e=0;
F(a.A,function(a,b){var f=a.o;ib(f,c);d+=f.length;b<this.C&&(e+=f.length)},a);
b=c.C;var f=e+b.D;b.C=d+(a.J.length-a.F);b.A=f;b.B=a.ia;b.o=a.tc}},m1=function(a){jc.call(this,a);
this.o=null},n1=function(a,b,c){J.call(this);
this.o=a;this.B=[];this.F=null!=c&&fa(c.backlog)?c.backlog:!1;this.H=null!=c&&ga(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.C=null;this.A=!1;Hha(this,b)},Iha=function(a){this.o=a;
this.B=this.A=!1},o1=function(a){a.o.start();
a.A=!0},p1=function(a){null!=a.C&&(a.C.dispose(),a.C=null);
a.o.stop();a.A=!1},Jha=function(a){if(a.A){var b=eb(a.B,function(a){return-1==a.o},a);
null!=b&&q1(a,!0,b)}},Hha=function(a,b){F(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);
Hb(this.B,new Iha(a),function(a,b){return zb(a.o,b.o)})},a)},Kha=function(a,b){for(var c=[],d=0;d<a.B.length;d++){var e=a.B[d];
-1!=e.o&&e.o<=b&&nb(c,e)}return c},Lha=function(a,b){for(var c=0;c<a.B.length;c++){var d=a.B[c];
if(-1!=d.o&&b>=d.o-a.H&&b<d.o&&!a.B[c].A)return d}return null},r1=function(a){a.aa(new m1("contentTrackingError"))},q1=function(a,b,c){if(null!=c){if(!c.A){var d=new m1("requestAds");
d.o=c.o;a.aa(d);c.A=!0}b&&!c.B&&(b=new m1("playAds"),b.o=c.o,a.aa(b),c.B=!0)}},s1=function(a,b){G.call(this);
this.C=a;this.o=-1;this.B=b},t1=function(a,b){if(0==b.tc||0>=a.B||0>=a.o)return!1;
var c=K()/1E3,d=b.tc-a.C.currentTime;0<d&&(c+=d);return c-a.o<=a.B},SZ=function(a,b){A_.call(this,[]);
this.ia=a;this.M=new Je;this.F=this.A=null;this.Y=new go;this.L=null;this.Z=b;this.na=this.da=!1;this.O=null;this.ea=this.ha=-1;this.la=null;this.ra=0;this.S=!1},w1=function(a,b){a.S=!1;
a.Af(b);0==b.tc?a.Qi():(-1==b.tc?(u1(a)||!V()&&a.da)&&v1(a):o1(a.F),a.L=null)},x1=function(a){null!=a.J&&(a.J.dispose(),a.J=null);
a.da=!1;null!=a.F&&p1(a.F)},y1=function(a){if(null==a.L){var b=jo(a.Y);
if(null!=b){a.L=b;var c=a.M.get(a.L.o);if(null==c)a.L=null,y1(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.L=null,y1(a);else if(null!=a.la&&t1(a.la,c))a.L=null,y1(a);else if("requestAds"==b.type)a.S?(a.Y.isEmpty()||"playAds"!=ko(a.Y).type||jo(a.Y),w1(a,c)):(b=G_(a),Dm(b,c,l1,a.aa,a),Dm(b,c,"adError",a.Qo,a),Dm(b,c,"allAdsCompleted",a.mq,a),Dm(b,c,"contentPauseRequested",a.op,a),Dm(b,c,"contentResumeRequested",a.Qi,a),Dm(b,c,"userClose",a.My,a),Dm(b,c,"autoClose",a.Ly,a),Dm(b,c,"adBreakInitialized",
a.nq,a),c.init(a.ha,a.ea,a.K));else if("playAds"==b.type)if(null!=a.A&&a.A.ob()&&a.Af(a.A),a.S)w1(a,c);else if(a.A=c,a.A.setVolume(a.volume),b1(a.A,a.ha,a.ea,a.K),a.A.O){c=a.A;if(c.C<c.A.length){b=c.A[c.C];f1(c);try{c.o=g1(c,b.o),h1(c)}catch(d){c.C++,j1(c)}}a.oa("contentResumeRequested");a.F.getCurrentTime()>=a.ra?null!=a.A&&a.A.start():a.L=null}else a.A.start()}}},v1=function(a){if(!a.na){a.na=!0;
a.Z.o=!0;try{xO.getInstance().o(44,{cmpl:!0})}catch(b){}a.oa("allAdsCompleted");-1==a.O&&z1(a)}},z1=function(a){SN(QN(),41351033)||CT.clear();
null!=a.G&&(a=a.G.We(),null!=a&&FT(a,CT.o))},u1=function(a){return 0==a.M.Oa().length},Mha=function(){},TZ=function(a){if(kb(a))throw Error("Ads manager creation failure, no ads.");
var b=a[0],c=DV(b)&&V(),c=0!=KN.D||c;switch(null!=sW(b)&&c?"vpaid":WT&&null!=(null===b.o?null:b.o.Ui())&&0!=KN.D?"flash_vpaid":hW(b)&&null==sW(b)&&kW(b,"nonlinear")?"overlay":kW(b,"linear")?"video":kW(b,"nonlinear")&&null==sW(b)?"overlay":null){case "overlay":return hW(b)?new S_(a):new P_(a);case "video":return new r0(a);case "vpaid":return new R0(a);case "flash_vpaid":return new $_(a)}throw Error("Ads manager creation failure, failed to determine ad type.");},A1=function(a){J.call(this);
this.A=a;a=new zW(new zT);this.o=new PZ(new Mha,a,CT);this.o.R("adsManagerLoaded",this.aa,!1,this);this.o.R("adError",this.aa,!1,this);this.o.R("adLoadError",this.aa,!1,this)},B1=function(a,b,c){Lba();
var d="",e=oP(),f=e.A,e=e.o;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.Dc=jT(b.o,a.A.B);b.Nm=a.A.H;Tga(a.o,b,c)},C1=function(a,b){yM.call(this,a,b)},D1=function(a){this.app=a;
vq.call(this,a.Ra)},E1=function(a,b,c){this.X=a;
this.o=b||"";this.B=c||null;this.C=!1},F1=function(a,b){var c=a.X;
if(c.Ga&&("detailpage"==c.Ba||"leanback"==c.Ba||"embedded"==c.Ba&&(c.L&&c.Na||c.experiments.C))&&!a.C){a.C=!0;ti("TIMING_ACTION")||si("TIMING_ACTION",a.X.csiPageType);a.X.ua&&si("CSI_SERVICE_NAME",a.X.ua);if(a.B){var c=a.B.C,d;for(d in c)Qv(d,c[d],a.o);d=a.B.B;for(var e in d)Tv(e,d[e],a.o);e=a.B;e.C={};e.B={}}if(e=yh("visibilityState",window.document)){d=-1;switch(e){case "hidden":d=0;break;case "visible":d=1;break;case "prerender":d=2;break;case "unloaded":d=3}Tv("yt_vis",d,a.o)}Tv("yt_pt","html5",
a.o);b&&!Rv("pbs",a.o)&&a.A("pbs",b);e=a.X;("detailpage"!=e.Ba||"blazer"==e.o)&&Rv("_start",a.o)&&Pv(a.o)}},H1=function(a,b){this.o=a;
this.A=ga(b)?b:null;if(jb(G1,this.o)){if(!ga(this.A)||0>this.A)throw Error("Must have valid offset");}else if(null!==this.A)throw Error("Must not have offset");},I1=function(a){var b=a.A;
if(null!==b)return b;switch(a.o){case 1:return 0;case 3:return-1;default:return-100}},Nha=function(a,b){var c=a.o,d=b.o;
if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.A,f=b.A;return e!=f?null===e?1:null===f?-1:e-f:c-d},K1=function(a,b){return"9t_D9IIh_ZI"==b.ia||J1(a,["9418752",
"9418753"])},L1=function(a,b){return jb(a.experiments.experimentIds,b)},J1=function(a,b){return zh(b,qa(jb,a.experiments.experimentIds))},M1=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1},N1=function(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";
c?b.error_code=c:(c="getMessage"in a&&ha(a.getMessage)?a.getMessage():a.message,d=Ma(c||"",50),b.error_message=d)}},O1=function(a,b){if(a){var c=WV(a).reverse();
b.ad_id=rb(c,UV(a)).join(",");c=XV(a).reverse();b.ad_sys=rb(c,MV(a)).join(",");c=YV(a);null!=c&&(b.aqi=c)}},P1=function(a,b){if(a[b])return M1(a[b]);
var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return M1(a[d]);return!1},Q1=function(a){var b="";
a&2&&a&1?b="video":a&2?b="skippablevideo":a&1&&(b="standardvideo");a&4&&(b&&(b+="_"),b+="text_image_flash");return b},R1=function(a,b,c){var d=new zO;
d.baseYouTubeUrl=b.baseYtUrl;d.contentId=c.videoId;d.useShareButton=!0;d.useStyledNonLinearAds=!0;d.useVideoAdUi=a.Z;d.showContentThumbnail=a.showContentThumbnail;d.fg={};c.fa&&(d.fg.ctrl=c.fa);c.ea&&(d.fg.ytr=c.ea);c.ia&&(d.fg.ytrcc=c.ia);c.isMdxPlayback&&(d.fg.mdx="1");a.F?(d.uk=!0,d.$w=!0,d.showContentThumbnail=!1,d.Xm=!0,d.Ym=!0,d.useShareButton=!1):a.C&&(d.uk=!0);return d},T1=function(a){var b=new IY;
b.F=a.A.Ja;var c=a.app.G.Ma();b.Pf=c.width;b.Of=c.height;b.Mc=c.width;b.Lc=100;a.W();b.Io=!0;b.G=a.W().experiments.experimentIds;b.sb=y(a.W().experiments.ga,a.W().experiments);b.Kf=y(a.W().experiments.Yb,a.W().experiments);b.ll=y(a.W().experiments.A,a.W().experiments);b.allowAdsPayCreator=a.A.allowAdsPayCreator;b.Io?(a.W(),c=HB()):c=-1;c&&(b.H=c);a.A.tagForChildDirected&&(b.Mi=!0);if(L1(a.W(),"9415521")||a.A.xb)b.Ni=!0;c=S1(a);b.Eb={CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:Oha(a),VIS:Pha(a)};
a.W();b.afcRmFallback=a.A.K;L1(a.W(),"9417581")&&(b.D="yt_"+S1(a).videoId);b.language=a.W().Y;return b},Oha=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;
a.W();return HB().toString()}}},Pha=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:HL(a.W()).toString()}}},Qha=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;
var b=a.G?a.G.A():null;return null==b||0>b?"0":Math.ceil(.001*K()-b).toString()}}},U1=function(a,b,c,d){this.A=this.C="";
this.B=a;this.F=b;this.o=c;this.D=d},X1=function(a){var b=V1(a);
b.format="2_3";b.at="2_3";b.trsp="1";W1(a.o,3,b)},V1=function(a){var b={};
b.l_ns=a.F;b.l_state=a.D;b.break_type=a.B.o;b.sst=I1(a.B);b.sidx=0;a.C&&(b.at=a.C);a.A&&(b.ad_id=a.A);return b},Z1=function(){var a=r("yt.www.watch.ads.loadAfc");
ha(a)?a():Y1=!0},$1=function(){window.google_ad_output="html";
window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"},b2=function(){var a=r("window.google_show_companion_ad"),b;
b=r("yt.www.watch.ads.getGlobals");ha(a)&&ha(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():a2=!0},c2=function(){var a=r("yt.www.watch.ads.setCompanion");
a&&a()},Rha=function(a){var b=r("yt.www.watch.ads.showForcedMpu");
b&&b(a)},e2=function(a,b,c,d){Lj.call(this);
this.D=!!b;this.G=a;this.A=c||a;this.J=!!d;this.o=new Dr(this);this.C=this.H=null;this.F=this.B=!1;b&&(zc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));d2(this)},d2=function(a){a.C=null;
a.H=null;a.o.T(a.A,f2("over"),a.ys);a.o.T(a.A,"touchstart",a.mn);a.D&&a.o.T(a.A,f2("down"),a.Iz)},g2=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];
if(d.identifier==a.H)return d}return null},f2=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a},h2=function(a,b){this.A=a;
this.o=b},i2=function(a){return a.o-a.A},j2=function(a,b){return a.A+b*i2(a)},k2=function(a,b,c){return i2(a)?le((b-a.A)/i2(a),0,1):null!=c?c:window.Infinity},l2=function(){this.A=this.position=this.C=this.o=this.D=this.B=this.width=window.NaN},m2=function(a,b,c,d,e){var f=b.hq/b.rows,k=Math.min(c/(b.jq/b.Kb),d/f),m=b.jq*k,l=b.hq*k,m=Math.floor(m/b.Kb)*b.Kb,l=Math.floor(l/b.rows)*b.rows,n=m/b.Kb,t=l/b.rows,u=-b.Qw*n,x=-b.row*t;
e&&45>=f&&(t-=1/k);a=a.style;a.width=n+"px";a.height=t+"px";e||(d=(d-t)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+u+"px "+x+"px/"+m+"px "+l+"px";if(e)return new ue(n,t)},Sha=function(){this.B=!1;
this.A=0;this.o=""},n2=function(a,b,c,d){Lj.call(this);
this.o=a;this.A=d;this.videoData=null;this.adType=c;this.adSystem=b},Tha=function(a,b){this.o=a;
this.A=b||0},o2=function(a){var b=[];
F(a.split("_"),function(a,b){this[b]=Ya(a)},b);
return new Tha(Tb(Uha,b[1])?b[1]:0,Tb(Vha,b[2])?b[2]:0)},Wha=function(){this.clickThroughUrl="";
this.isSkippable=!1;this.skipShown=this.skip=v;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0;this.muteAdInfo=this.whyThisAdInfo=null},p2=function(a){var b;
b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",Q("YTP_ADVERTISEMENT")]],["div","ad-container"]];R.call(this,b);this.A=a;this.D=this.G=this.F=null},q2=function(a){a.F||(a.F=a.sa["ad-container"],a.A.W().J&&L(a.F,"ad-container-single-media-element-annotations"));
return a.F},s2=function(a){a.D&&(a.A.W().J?(be(a.D,"ad-video"),r2(a.A.app,a.D),a.D=null):(dh(a.D),fz(a.D)))},t2=function(a){if(!a.G){if(a.A.W().useTabletControls){var b=window.document.createElement("button");
L(b,"video-click-tracking");ah(b,Q("YTP_VISIT_ADVERTISERS_SITE"));var c=window.document.createElement("div");L(c,"video-click-tracking-container");c.appendChild(b);q2(a).appendChild(c)}else b=window.document.createElement("div"),$d(b,["video-click-tracking","ad-video"]),q2(a).appendChild(b);a.G=b}return a.G},Xha=function(a){this.o=a},Yha=function(a){switch((0,window.parseInt)(a.toString(),10)){case 12:return 2;
case 13:case 53:return 3;case 14:return 4;case 15:return 5;case 22:case 52:case 61:return 7;case 30:return 8;case 32:case 33:return 9;case 51:case 55:case 60:case 90:return 10;case 54:return 1;case 56:return 11;case 57:return 12;case 58:return 13}return 0},u2=function(a){switch((0,window.parseInt)(a.toString(),10)){case 2:return 1;
case 3:case 4:return 2;case 5:return 3;case 6:return 4;case 7:return 5;case 15:case 100:return 6;case 14:return 7;case 777:return 8;default:return 0}},Zha=function(a,b){this.D=null;
this.B=window.NaN;this.A=null;this.o=a;this.C=b},v2=function(a,b,c){a.o.U("AD_LOGGING_EVENT",b,c)},y2=function(a,b,c){w2(a);
var d=x2(a);c&&ra(d,c);d.ad_error=b;v2(a,7,d)},x2=function(a){var b={},c=a.o.videoData,d=a.o.C.Ag(),e=z2(a.o);
O1(a.o.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=Ye(e),b.ad_dom=c,a.C.A.C&&(b.ad_v_url=e.substr(0,512)));e=a.o;(e=e.A?e.A.Ef():null)&&(b.ad_cpn=e);b.format=a.o.Wc();b.at=a.o.Jf();b.ad_mt=Math.round(1E3*Math.max($ha(a.o),0));return b},w2=function(a){a.D||(a.D="InstreamAdDisplay ("+a.o.Wc()+")")},A2=function(a,b){G.call(this);
this.C=Math.max(0,a);this.B=this.A=0;this.D=b;this.o=window.NaN},C2=function(a,b,c,d,e,f){n2.call(this,b,a,2,c);
this.K=!1;this.G=this.P=this.L=null;this.o.subscribe("control_toggle_play_pause",this.Ht,this);this.o.subscribe("control_play",this.tm,this);this.o.subscribe("control_pause",this.sm,this);this.D=new Zha(this,this.o);this.B=new rA(this);this.C=B2(b);this.C.subscribe("statechange",this.Ft,this);this.C.subscribe("internalAbandon",this.lq,this);this.C.subscribe("internalvideodatachange",this.Gt,this);this.F=this.H=!1;this.O=d;this.M=!!e;this.S=!!f;this.J=new A2(15E3,y(this.bk,this))},E2=function(a,b){var c=
a.o.W();
if(a.o.A.Z&&"3"==c.B){var c=a.o.app.G,d=c.app.W();aJ(d);c.L=!b;D2(c)}},H2=function(a){var b=new Sha;
b.B=a.F;b.A=Qt();a.videoData&&a.videoData.clientPlaybackNonce&&(b.o=a.videoData.clientPlaybackNonce);aM(B2(a.o));F2(a.o,0,b);G2(a.o,0);a.U("adEnd",a);E2(a,!0)},I2=function(a,b){a.o.W().experiments.ga("html5_ad_error_releases")?aM(a.C):a.C.mg();
F2(a.o,0);a.U("adError",b)},J2=function(a){return a.videoData&&a.videoData.B?a.videoData.B.mimeType:null},z2=function(a){return a.videoData&&a.videoData.hg?mw(a.videoData.hg.A()):null},$ha=function(a){return a.C?a.C.getCurrentTime():0},aia=function(a,b){this.o=a;
this.D=b;this.o.Wc();this.A=this.C=0;this.B=null},K2=function(a,b,c){a.o.U("AD_LOGGING_EVENT",b,c)},L2=function(a){var b={};
O1(a.o.getCurrentAd(),b);a.C&&a.A&&(b.ot=a.A-a.C);var c;c=a.D.Pa()?2:a.D.app.ha?1:0;b.ad_ps=c;b.format=a.o.Wc();b.at=a.o.Jf();return b},M2=function(a,b,c,d){n2.call(this,b,a,1,c);
this.B=null;this.F=!1;this.H=null;this.D=new aia(this,b);this.C=new rA(this);this.G=!!d},N2=function(a,b){a.H!=b&&(a.H=b)},O2=function(a,b,c,d){G.call(this);
this.P=null;this.S=a;this.A=b.gb;this.H=b;this.K=b.getId();this.o=c;this.F=d;this.B=new U1(this.A,this.Gg(),c,d);this.D=null;this.O=new Am(this);this.C=new Am(this);this.M=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/},P2=function(a){var b=new H1(2,10);
a.A=b;a.B.B=b},Q2=function(a,b){a.P=b;
var c=b.Wc();a.B.C=c},R2=function(a,b){var c=r("yt.www.watch.ads.setAdId");
c&&c(b);a.B.A=b},S2=function(a){a=I1(a.A);
return 0==a||-1==a?a:1E3*a},T2=function(a){a.o.W().experiments.ga("log_backfill_requests")&&X1(a.B);
b2()},Y2=function(a){var b=a.H,c=a.A;
b.o=a.P;b.gb=c;I(b,b.o);0==b.F&&(a=b.o.Jf(),b.B.fa.at=a);b.o instanceof C2?b.A=!0:b.o instanceof U2?b.isVisible=!1:b.o instanceof V2?b.isVisible=!1:b.o instanceof W2&&(b.isVisible=!1);b.C="loaded";X2(b)},bia=function(a){this.o=a},U2=function(a){n2.call(this,a,2,3,null);
this.D=a.W().experiments.ga("fix_afc_mpu_api_stats_ads");this.F=this.B=this.C=0;this.G=this.D?5:10},Z2=function(a){a.C&&(yi(a.C),a.C=0,a.B=0,a.F=0)},$2=function(a,b,c){O2.call(this,2,a,b,c);
this.G=new bia(this.o.A);$1()},a3=function(a,b,c){this.A=this.F="";
this.J=null;this.C=!1;this.D=this.B="";a&&(this.F=a,this.H=b.Xa,this.C=b.qb,this.G=c,b=this.F,c=b.indexOf(";sz="),a=fj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{Gw:b[0],zD:b[1],CD:a})&&(this.B=a.Gw,this.D=a.zD,this.J=a.CD)},b3=function(a){this.A=a?a:""},W2=function(a,b,c,d){M2.call(this,1,a,b,d);
this.J=c},c3=function(a,b,c){O2.call(this,1,a,b,c);
a=this.o.A;this.Y=a.ea?new b3(a.adTag):new a3(a.adTag,a,this.K)},d3=function(a,b,c,d){c3.call(this,a,b,c|d);
this.L=c;this.J=d;this.G=null;$1()},e3=function(a,b){var c=b.getCurrentAd(),d=XV(c);
d.unshift(MV(c));for(c=0;c<d.length;++c){var e=cia[d[c].toUpperCase()];if(e){a.G=e;return}}a.G=0},f3=function(a,b){this.D=[];
this.M=a;this.L=b||null;this.C=this.o=!1;this.B=void 0;this.J=this.P=this.G=!1;this.F=0;this.A=null;this.H=0},h3=function(a,b,c){a.o=!0;
a.B=c;a.C=!b;g3(a)},p3=function(a){if(a.o){if(!a.J)throw new j3;
a.J=!1}},u3=function(a,b,c){s3(a,b,null,c)},s3=function(a,b,c,d){a.D.push([b,
c,d]);a.o&&g3(a)},v3=function(a){return zh(a.D,function(a){return ha(a[1])})},g3=function(a){if(a.F&&a.o&&v3(a)){var b=a.F,c=w3[b];
c&&(aa.clearTimeout(c.o),delete w3[b]);a.F=0}a.A&&(a.A.H--,delete a.A);for(var b=a.B,d=c=!1;a.D.length&&!a.G;){var e=a.D.shift(),f=e[0],k=e[1],e=e[2];if(f=a.C?k:f)try{var m=f.call(e||a.L,b);p(m)&&(a.C=a.C&&(m==b||m instanceof Error),a.B=b=m);if(yd(b)||"function"===typeof aa.Promise&&b instanceof aa.Promise)d=!0,a.G=!0}catch(l){b=l,a.C=!0,v3(a)||(c=!0)}}a.B=b;d&&(m=y(a.K,a,!0),d=y(a.K,a,!1),b instanceof f3?(s3(b,m,d),b.P=!0):b.then(m,d));c&&(b=new x3(b),w3[b.o]=b,a.F=b.o)},j3=function(){ta.call(this)},
y3=function(){ta.call(this)},x3=function(a){this.o=aa.setTimeout(y(this.B,this),0);
this.A=a},z3=function(a,b){var c=b.A;
this.G=c.ua;var d=0,c=c.ca.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);O2.call(this,2,a,b,d)},A3=function(a,b){n2.call(this,a,14,14,b)},B3=function(a,b,c){O2.call(this,14,a,b,c)},C3=function(a,b,c){O2.call(this,14,a,b,c)},dia=function(a,b,c,d,e){this.C=a;
this.A=b;this.o=c;this.X=this.C.W();this.D=d;this.F=S1(this.C).lengthSeconds;this.G=e;this.B="html5";D3(this)&&"embedded"==this.X.Ba?this.B="html5_embed":YI||yx?this.B="html5_ios":Zp("android")?this.B="html5_android":gq()?this.B="html5_wp":bq()?this.B="html5_ps3":"leanback"==this.X.Ba?(a=(Xb(window,"environment","brand")||"").toLowerCase(),b=(Xb(window,"environment","model")||"").toLowerCase(),this.B="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):fq()?this.B="html5_wii":D3(this)&&
(this.B="html5_desktop")},G3=function(a){return E3(a.A)?"preroll":F3(a.A)?"postroll":"midroll"},I3=function(a){return(a=a.C.B)?zh(a.B,function(a){return H3(a)||F3(a)}):!1},D3=function(a){return!I3(a)||K1(a.X,a.o)},V2=function(a,b){M2.call(this,4,a,b)},J3=function(a,b,c){O2.call(this,4,a,b,c);
var d=this.o.A;this.G=E(d.Sa);var e=S1(this.o)&&S1(this.o).spacecastModule;this.J=new dia(b,a,d,c,!!e)},K3=function(a,b,c){this.B=a;
this.o=b;this.A=c||0},eia=function(a){return 0<((a.o|a.A)&3)},L3=function(a,b,c,d,e){Lj.call(this);
this.H=!0;this.A=!1;this.isVisible=!0;this.C="unloaded";this.J=!1;this.F=b;this.B=a;this.gb=c;this.G=d;this.D=this.o=null;this.K=!!e},O3=function(a){return E3(a)?M3(a)&&N3(a)?-0x8000000000000:0:ga(a.gb.A)?1E3*I1(a.gb):0x8000000000000},fia=function(a){return E3(a)||a.B.o&&1E3*a.B.o.getCurrentTime()>=O3(a)?!1:Se(a.G,function(a){switch(a.getType()){case 1:case 2:case 3:case 5:return!0;
default:return!1}})},M3=function(a){return"loaded"==a.C||"error"==a.C},E3=function(a){return 1==a.gb.o},N3=function(a){if(!M3(a))throw Error("Preroll status is undefined before ad load.");
return E3(a)&&a.A},H3=function(a){return 2==a.gb.o},F3=function(a){return 3==a.gb.o},S3=function(a){a.C="loading";
E3(a)&&!zh(a.G,eia)&&zq(a.B);if(a.K)a.C="loaded",a.A=!0,X2(a);else{var b=a.G.shift();b?(E3(a)&&P3(a.B,"nl"),b=b.create(a,a.B),I(a,b),b.load()):(W1(a.B,2,Q3(a,{})),R3(a,!1),a.C="error",X2(a))}},T3=function(a){a.o&&(a.o.Ia("adEnd",a.pq,a),a.o.Ia("adError",a.zt,a),a.o.Ia("AD_LOGGING_EVENT",a.Lq,a),a.o.Ia("select",a.xt,a),a.o.Ia("adCompanionInitialized",a.At,a))},X2=function(a){a.U("adBreakComplete",a)},R3=function(a,b){a.D&&(a.D.sendImpressionUrls({FILLED_OPPORTUNITY:b?1:0}),a.D.dispose(),a.D=null)},
Q3=function(a,b){b.break_type=a.gb.o;
b.sst=I1(a.gb);b.sidx=0;return b},U3=function(a){var b=0;
a.M&&(b|=1);a.L&&(b|=2);var c=0;a.D&&(a.H&&(c=4),b||a.Y||(b=c,c=0));a=new Je;a.set(3,b);a.set(4,c);return a},V3=function(a,b){var c=[];
if(a.La)return c.push("pla"==(a.ca||"").toLowerCase()?new K3(8,16):new K3(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.Y&&c.push(new K3(7,16)),c;if(a.P){var d=0;if(a.B||a.G)d|=1;a.O&&(d|=4);a.S&&(d|=8);c.push(new K3(5,d))}d=0;a.J&&(a.B&&(d|=1),a.G&&(d|=2),a.O&&a.D&&(d|=4),a.S&&a.D&&(d|=8));var e=U3(a),f=e.get(3);d&&f&&gia(a,b)?c.push(new K3(3,d,f)):(d&&c.push(new K3(2,d)),f&&c.push(new K3(1,f)));a.independentBreakOffsets||f&4||!a.Y||c.push(new K3(7,16));(d=e.get(4))&&c.push(new K3(1,d));return c},
W3=function(a){this.o=a},X3=function(a){var b=[];
F(hia(a),function(a,d){var e=this.o,f;f=V3(this.o.A,a.o);e=new L3(e,d,a,f);b.push(e)},a);
return b},hia=function(a){var b=a.o.A,c=[];
if(b.P&&!K1(a.o.W(),b))c=Y3;else if(b.la){var d=b.la.split(",");for(a=0;a<d.length;a++){var e=Ya(d[a]),e=0>e?new H1(3):0<e?new H1(2,e):new H1(1);c.push(e)}}else c=Y3;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new H1(5,Ya(b[a])));Cb(c,Nha);return c},kia=function(a,b){this.X=a;
this.F=this.X.isMobile;this.kb=this.X.F;this.C="leanback"==this.X.Ba;this.o=this.F||this.C;this.Z=!this.C&&!aJ(a);this.B=M1(b.instream);this.Xa=1==b.livestream;this.G=M1(b.trueview);this.fa=M1(b.aftv);this.la=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.xa=b.cafe_experiment_id;this.adTag=b.ad_tag;this.bb=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.Ka=iia(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.Ga=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.B||this.G)&&!this.X.useMediaVolume;this.Na=b.cid;this.ia=b.docid||b.video_id||b.videoId;this.dynamicAllocationAdTag=b.dynamic_allocation_ad_tag;this.excludedAds=b.excluded_ads;this.fadeInDurationMilliseconds=(0,window.parseInt)(b.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=(0,window.parseInt)(b.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=(0,window.parseInt)(b.fade_out_duration_milliseconds,
10)||0;this.fadeOutStartMilliseconds=(0,window.parseInt)(b.fade_out_start_milliseconds,10)||0;this.Ja=(0,window.parseInt)(b.forced_skip_offset,10);this.ca=b.force_ad_type;this.ua=b.force_ad_url;this.Sa=b.freewheel_ad_tag;this.gender=$b(jia,function(a){return a==b.ad_gender});
this.na=b.dbp;this.K=M1(b.afc_rm_fallback);this.qb=!!b.mpu;this.H=M1(b.afv)&&!this.o;this.L=this.fa&&this.G;this.M=this.fa&&this.B&&!M1(b.no_afv_instream);this.J=M1(b.dclk);this.ea=M1(b.gpt_migration);this.La=M1(b.forced_ad)&&!this.o;this.P=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.wb=!!b.fqsf;this.O=M1(b.invideo)&&!this.o;this.S=M1(b.mpu)&&!this.o;jb(this.Ka,"yt_mabv");this.Y=!!b.pla;this.Ta=M1(b.shortform);this.D=M1(b.sffb);this.Ca=b.ad_language_iso639_2;this.allowAdsPayCreator=!!b.allow_ads_pay_creator;
this.maxDynamicAllocationAdTagLength=(0,window.parseInt)(b.max_dynamic_allocation_ad_tag_length,10);(0,window.isNaN)(this.maxDynamicAllocationAdTagLength)&&(this.maxDynamicAllocationAdTagLength=2E3);this.A=(0,window.parseInt)(b.midroll_freqcap,10);(0,window.isNaN)(this.A)&&(this.A=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||0;this.Wa=b.pla_ad_tag;fa(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=M1(b.tag_for_child_directed);
this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.da=this.fa&&this.D&&!this.H;this.ra=this.H||this.da;this.ab=(0,window.parseInt)(b.ad_device,10);this.Fa=b.tpas_video_id;this.ha=b.tpas_partner_id;this.vmap=b.vmap;this.Nb=this.X.Nb;this.xb=b.post_ad_requests;this.showContentThumbnail=!0},gia=function(a,b){if(C(E(a.dynamicAllocationAdTag)))return!1;
var c=(a.B||a.G)&&a.J;a.D&&a.J&&(c=c||a.O||a.S);if(!c)return!1;c=a.L||a.M;if(!(c||a.D&&a.H))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.ea?25:102);window.document.referrer&&(d+=wa("ref="+wa(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength},iia=function(a){if(C(E(a)))return[];
a=(new N(a)).o.get("channel");return null!=a?a.split("+"):[]},Z3=function(a,b){G.call(this);
this.F=a;this.A=new Am(this);I(this,this.A);this.o=null;this.B=!1;this.A.R(b,"companionImpression",this.D);this.A.R(b,"companionClick",this.C)},a4=function(a,b){G.call(this);
this.o=a;this.K=b;this.G=a.o.getVideoData();this.C=[];this.A=0;this.B=window.NaN;this.D=this.F=this.H=0;this.J=!1;var c=a.W().experiments;this.M=c.ga("enable_dynamic_ad_break")&&!!this.G.lengthSeconds&&600<this.G.lengthSeconds;this.P=c.Yb("dynamic_ad_break_pause_threshold_sec")||5;this.S=c.Yb("dynamic_ad_break_seek_threshold_sec")||120;this.M&&$3(this.o,this.L,this)},b4=function(a){return(a.o.C?a.J:!!a.o.B&&0==a.o.B.B.length)&&1==a.o.getPresentingPlayerType()},c4=function(a,b){var c=null!=jj(a.o.W().H).debugjs,
d=a.G.videoId,e=a.G.eventId,f=a.A,k;
k=a.C.length?a.C[a.C.length-1]:Math.max(a.K.A(),a.F);k=K()/1E3-k-a.D;c=lj("/gen_204?"+ef({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:f,cwt:k,dt:K()/1E3,dab:a.C,paet:Math.max(a.K.A(),a.F),debug:c}),{});iq(c)},d4=function(a){G.call(this);
this.o=a;this.A=window.NaN;this.D={};a=a.A;this.F=a.fadeInDurationMilliseconds;this.G=a.fadeInStartMilliseconds;this.B=a.fadeOutDurationMilliseconds;this.C=a.fadeOutStartMilliseconds;this.ds()},e4=function(a,b){a.D[b]&&(RM(a.o.o,[a.D[b]],void 0),delete a.D[b])},f4=function(a,b,c,d){0>=c||((0,window.isNaN)(a.A)||xi(a.A),c=K()+c,a.A=0==d?Mq(y(a.Kt,a,b,c,100),0):Mq(y(a.Jt,a,b,c,100),0))},g4=function(a,b,c){a.o.W();
a=S1(a.o).ai;b.setVolume(c*a)},h4=function(a){d4.call(this,a)},i4=function(a,b,c){G.call(this);
this.o=a;this.G=b;this.D=c;this.B=-1;this.F=window.NaN;this.D&&0<this.o.A.A&&this.o.subscribe("endseeking",this.C,this)},lia=function(a,b){j4(a);
0<b&&(a.F=vi(y(a.C,a),1E3*b))},j4=function(a){xi(a.F);
a.F=window.NaN},l4=function(a,b){if(!a.D||!H3(b)&&!F3(b))return!1;
var c=a.o.A.A;if(0>=c||0>=a.B)return!1;var d=K()/1E3,e=k4(a,b)-a.o.o.getCurrentTime();0<e&&(d+=e);return d-a.B<=c},k4=function(a,b){return F3(b)?a.o.o.getVideoData().lengthSeconds:I1(b.gb)},m4=function(a,b){G.call(this);
this.K=this.A=null;this.P=[];this.O=window.NaN;this.B=b;this.J=[];this.C={};this.G={};this.o=a;var c=a.A,d=!c.Xa&&zh(this.B,function(a){return H3(a)||F3(a)});
this.D=new i4(this.o,this,d);this.F=c.applyFadeOnMidrolls?new d4(a):new h4(a);this.ha=new a4(this.o,this.D);this.ca=zh(this.B,function(a){return E3(a)})},mia=function(a){a.J.length||(a.J=ae(a.B,function(a){return"unloaded"==a.C}),0==a.J.length?zq(a.o):(a.ca||zq(a.o),n4(a)))},n4=function(a){if(a.J.length){var b=a.J.shift();
b.subscribe("adBreakComplete",a.eg,a);b.subscribe("adCompanionInitialized",a.km,a);S3(b)}},nia=function(a,b){function c(a){return a&&5!=a.gb.o}
var d=ib(a.B,b),e=ub(a.B,0,d),d=ub(a.B,d+1);return{previous:eb(e,c),next:eb(d,c)}},o4=function(a,b,c){var d=O3(b);
if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=I1(b.gb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.F.Zr(b,d);c=a.F.Yr(b,c);c=new rq(d,c,e);a.G[b.getId()]=c;a.o.ib([c]);a.F.jo(b)}},p4=function(a,b){var c=b.getId();
a.G[c]&&(e4(a.F,c),RM(a.o.o,[a.G[c]],void 0),delete a.G[c])},s4=function(a,b){if(p(b)){var c=a.ck(b);
if(c)if(a.A==c&&!c.A&&c.isVisible)c.show();else{if(a.A){if(5==c.gb.o){a.A.A?a.P.push(b):c.show();return}a.Ve(a.A)}if(l4(a.D,c))a.A=null,c=a.G[c.getId()],c.visible||(c.visible=!0,a.o.o.ib([c],1)),a.o.W()&&(L1(a.o.W(),"9412857")||L1(a.o.W(),"9412859"))&&a.Jr();else{5!=c.gb.o&&(a.A=c);c.subscribe("adBreakComplete",a.gm,a);c.subscribe("adCompanionInitialized",a.km,a);if(c.A){q4(a.o);var d=a.D.A(),d=0<d?Math.floor(K()/1E3-d):0;r4(a.o,"show_instream_ads",{tfla:d})}a.F.Lt(c);c.show()}}}},t4=function(a,b,
c){m4.call(this,a,b);
this.L=[];this.M=[];this.H=[];this.Z=c;this.Y=window.NaN;this.S=a.A.A;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],fia(c)){var d=new L3(c.B,c.F,c.gb,c.G,!0);b[a]=d;this.L.push(c)}this.ca||this.gg()},v4=function(a){u4(a);
a.Y=vi(y(a.gg,a),1E3*(a.S-10))},u4=function(a){xi(a.Y);
a.Y=window.NaN},w4=function(a,b){m4.call(this,a,b);
this.Y=a;this.Z=!0;this.L=[];this.ia=1;this.ea=null;this.M=0},x4=function(a){if(null==a.A&&0<a.L.length){var b=a.L[0];
b.isVisible?(a.Z=a.H.K,a.fa=Math.ceil(K()/1E3),b.subscribe("adBreakComplete",a.S,a),a.A=b,b.show()):a.S()}else null!=a.A&&a.M++},oia=function(a,b){this.J=a;
this.A=b;this.H=K();this.F=0;this.o=a.A;this.D={};this.G=new Xha(a);var c=[];this.o.P&&this.o.B&&c.push("4_2");this.o.J&&(this.o.B&&c.push("1_2"),this.o.G&&c.push("1_2_1"),this.o.O&&c.push("1_1"),this.o.S&&c.push("1_3"));this.o.L&&c.push("2_2_1");this.o.M&&c.push("2_2");this.o.H&&c.push("2_1");(this.o.ra||this.o.K)&&c.push("2_3");this.o.Y&&c.push("14_14");this.B=c.join(",");this.C="";this.D.allowed=this.B;(c=this.o.excludedAds)&&(this.D.ex_ads=c)},pia=function(a){this.o=a},y4=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;
var b=0;F(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});
return 1E3*b},A4=function(a,b,c){G.call(this);
this.A=a;this.B=b;this.H=c;this.C=this.F=-1;this.o=z4(this.B.je());a=this.B.je();a.length&&(a=a[a.length-1],-1==a&&this.A.ib([this.o[a]]));0<this.A.A.A&&this.A.subscribe("endseeking",this.D,this)},qia=function(a,b){B4(a);
0<b&&(a.C=vi(y(a.D,a),1E3*b))},B4=function(a){-1!=a.C&&(xi(a.C),a.C=-1)},z4=function(a){if(!a.length)return{};
for(var b={},c=0;c<a.length-1;c++){var d=a[c],e;e=a[c+1];e=-1==e?0x8000000000000:1E3*e;b[d]=new rq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new rq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b},C4=function(a){0<a.A.A.A&&(a.F=K()/1E3,a.D())},D4=function(){G.call(this)},E4=function(a){G.call(this);
this.o=a;this.A=window.NaN;this.B={};this.D={};a=a.A;this.F=a.fadeInDurationMilliseconds;this.H=a.fadeInStartMilliseconds;this.J=a.fadeOutDurationMilliseconds;this.C=a.fadeOutStartMilliseconds;this.K=1E3*this.o.o.getVideoData().lengthSeconds;this.G=this.C+this.J;$3(this.o,this.Vt,this)},F4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.K},ria=function(a){a=a.getAttribute("breakType");
return!!a&&zh(a.split(","),function(a){a=Ra(a);return"linear"==a})},sia=function(a,b){if(!F4(a,b))return null;
var c,d=3;c=!0;d=d?d:0;c=c?c:!1;var e=(0,window.parseFloat)(Pa(b/1E3,2,d)),f=Math.floor(e/60),k=Math.floor(f/60),f=f%60,d=Pa(e%60,2,d);c=d=k||c?k+":"+Pa(f,2)+":"+d:f+":"+d;return 1==c.split(":")[0].length?"0".concat(c):c},uia=function(a,b){var c=Math.max(Math.abs(a.C),Math.abs(a.G));
F(b,y(function(a){var e=zh(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=tia(this,a);
if(e||!f)return!1;this.B[f]=a},a));
return 0<Sb(a.B)},tia=function(a,b){var c=1E3*Math.round((b+a.G)/1E3),d=b+a.C,e=b+a.H;
return F4(a,b)&&F4(a,c)&&F4(a,d)&&F4(a,e)?c:null},G4=function(a,b,c,d){0>=c||(d=0==d?a.Ut:a.Tt,c=K()+c,a.A=Mq(y(d,a,b,c,100),0))},H4=function(a,b,c){a=S1(a.o).ai;
b.setVolume(c*a)},I4=function(a){G.call(this);
this.G=this.B=this.C=this.H=this.A=null;this.L=this.K=!1;this.o=a;this.J=null;this.P={};this.O=new Am(this);this.F=new Am(this);this.M=this.D=null},via=function(a,b,c){a=a.cloneNode(!0);
a.setAttribute("timeOffset",b);F(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,f,k;"end"==b?(e="post",f=-1,k="postroll"):(e="mid",f=y4(b).toString(),k="midroll");var m={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":f,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return m[a]||a})});
return a},wia=function(a,b){var c=oA(b),d=c.childNodes[0];
if(!d)return b;var e=eb(gh(d),function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var f=eb(gh(e),function(a){return"Extensions"==a.localName}),k=f?gh(f):[],k=eb(k,function(a){return"YTBreakTime"==a.getAttribute("type")}),f=(f=f.removeChild(k))?gh(f):[],m=e,l=1;
F(f,function(a){a=a.getAttribute("timeOffset");a=via(e,a,l);l++;d.insertBefore(a,m.nextSibling);m=a});
d.removeChild(e)}f=a.D.xr(d);f||(Mb(a.D),a.D=new D4);return e||f?pA(c):b},xia=function(a){var b=R1(a.o.A,a.o.W(),S1(a.o));
b.ax=!0;b.qo=!1;b.vr=10;b.um=a.D.Uo();return b},J4=function(a,b){var c=a.G?a.G.A():0,c=0<c?Math.floor(K()/1E3-c):0;
r4(a.o,b,{tfla:c})},yia=function(a,b){var c=AV(b),d=K4(b);
if(P1(c,"rm")&&a.o.A.K)return a.C=new U2(a.o),a.C.show(),!1;if(P1(c,"blockAllAds"))return a.A.sendImpressionUrls(),a.C=new W2(a.o,a.A,1,!0),!1;if(P1(c,"hideMaster")&&14!=d)return a.C=new W2(a.o,a.A,0,!0),!1;c=a.A;14==d?(a.C=new A3(a.o,c),L4(a,b)):a.C=new M2(d,a.o,c,!0);a.C.show();a.K=!1;return!0},L4=function(a,b){$1();
b2();if(b&&a.o.W().experiments.ga("log_backfill_requests")){var c=b.C.o,d=1;-1==c?d=3:0<c&&(d=2);var e=14==o2(HV(b)).o?16:4,c=0<c?new H1(d,c):new H1(d);X1(new U1(c,GV(b),a.o,e))}},N4=function(a,b){if(b&&"adLoadError"==b.getType()){var c=a.o.A;
!c.o&&c.ra&&(a.C=new U2(a.o),a.C.show());M4(a)}},O4=function(a){a.C&&(a.C.dispose(),a.C=null)},K4=function(a){var b=XV(a);
a=0<b.length?b.pop():MV(a);a=zia[a.toUpperCase()];return null!=a?a:0},M4=function(a){a.L||(zq(a.o),a.L=!0)},P4=function(a){D1.call(this,a);
this.logEvent=this.va="ad";this.A=this.B=this.J=null;this.Z=this.ca=!1;this.C=this.L=null;KN.o=!0;KN.C=!1;KN.H=!0;a=KN;var b=!aq();a.F=b;KN.D=0;this.K=null;this.ha={};this.fa={at:"0"};this.H=new p2(this.o);Br(this.o,this.H.element,4);this.da=this.D=null;this.O=-1;this.Ca=new pia(this);this.P=new Dr(this);I(this,this.P);this.S=null},S1=function(a){return Q4(a.app)},W1=function(a,b,c){a=a.J;
c=c||{};var d=(K()-a.H)/1E3;c.art=d;d=a.J.W();d.Bd&&(c.feature=d.Ka);c.ad_flags=a.o.adFlags;(d=a.o.Na)&&(c.cid=d);c.mt=a.A.getCurrentTime();(d=HB())&&(c.lact=d);(d=a.A.Eh())&&(c.len=d);a.o.wb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.C=c.at;b=a.G;a:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break a}a=c&&c.ad_event?u2(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var e;c.at&&(e=c.at);var f;c.sst&&(f=c.sst);"2_1"==e&&10==f&&(c.break_type=1);
e={};e.device=b.o.A.ab;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var k in c){f=e;a=k;var d=c[k],m=c;switch(a){case "trsp":f.slot_pos=d;break;case "break_type":jb(G1,Ya(d))&&(f.m_pos=m.sst);case "format":case "ad_id":case "ad_v":case "ad_cpn":case "ad_mt":case "aqi":case "ad_sys":f[a]=d;break;case "ad_len":f[a]=Math.round(1E3*d);break;case "ad_error":f.error_code=Yha(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=u2(d);break;case "ck_xy":a=d.split("x"),
2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=B2(b.o);f=S1(b.o);e.cpn=f.clientPlaybackNonce;e.content_v=f.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.o.B,e.mt=null!=c&&null!=c.A?1E3*I1(c.A.gb):0):e.mt=Math.round(1E3*k.getCurrentTime());c=b.o.W();e.ei=f.eventId;e.lact=HB();e.vol=Math.round(b.o.app.Ra.Fb());e.vis=HL(c);c=R4(b.o);e.p_w=c.width;e.p_h=c.height;e.rt=K();if(c=(c=OL(k))&&Jg(c)===window.document?er(c):null)e.pv_h=c.getHeight(),e.pv_w=c.getWidth();k=Qe(e);if("undefined"==typeof k)throw Error("Keys are undefined");
c=new uf(null,0,void 0);e=Pe(e);for(f=0;f<k.length;f++)a=k[f],d=e[f],da(d)?zf(c,a,d):Ff(c,a,d);b=b.o.W().baseYtUrl+"api/stats/ads";b=new N(b);sf(b,c);iq(b.toString())}},S4=function(a,b,c){c=c||{};
c.ad_error=b;W1(a,7,c)},T4=function(a,b,c){a.app.Ra.Ea(b,c)},U4=function(a){if(!a.ca){var b=a.W().baseYtUrl;
iq(b+"mac_204?action_fcts=1");a.ca=!0}},V4=function(a){return a.B instanceof w4?a.B:null},X4=function(a){a=a.H;
if(a.A.W().J)a=a.A.app.B;else{if(!a.D){var b;b=a.A.app;if(b.X.J){var c=ar(b.B.o),d=mr(b.B.o);b.xa=new we(c.x,c.y,d.width,d.height);cM(b.F);b.B.o.loop=!1;b.B.o.playbackRate=1;JI(b.B);b=b.B.ma()}else b=W4.getTag(void 0,void 0);a.D=b;$d(a.D,["video-stream","ad-video"])}a=new MI(a.D)}return a},B2=function(a){if(!a.D){var b=ec(a.W().O);
a.W().experiments.ga("legacy_autoplay_flag")&&(b.autoplay="1");b.eventid=S1(a).eventId;b.content_v=S1(a).videoId;b=new cJ(b);b.Ba="adunit";var c=X4(a);b.Ce=c;a.D=new LL(b,2,new E1(b,""),a.app.G,y(a.app.L.U,a.app.L))}return a.D},$4=function(a){if(a.D&&a.D==wq(a.app)){var b=a.app;
a=a.D;Y4(b);a!=b.A&&Z4(b,b.A)}},R4=function(a){return a.A.C?(a=a.app.G.Ma(),new we(0,0,a.width,a.height)):nr(a.Da())},a5=function(a,b){P3(a,"bd");
var c;c=a.A;var d=c.midrollPrefetchSize;c=c.Xa?new w4(a,b):0<d?new t4(a,b,d):new m4(a,b);a.B=c;mia(a.B)},q4=function(a){a.Z=!0;
a.U("command_redirect_controls",a,["play_pause"],void 0);a.C||a.pauseVideo()},b5=function(a){s2(a.H);
a.Z=!1;Dq(a)},G2=function(a,b){switch(b){case 1:a.O=1;
T4(a,"onAdStart");break;case 0:a.O=0,T4(a,"onAdEnd")}},F2=function(a,b,c,d){d&&T4(a,"onAdInfoChange",d);
d=a.app;a=X4(a);c=c||{};1==b&&(d.K.A("vr"),d.fa||(d.fa=Dv(d.zq,d)),uM(d.F),F1(d.K,c5(d)));0==b&&c&&(d.A.da=c);c=d.X;"leanback"==c.Ba&&c.$a&&(0==b?d.Fa=d.B:d.Fa=a,d.o.Ea("onAdStateChange",b))},P3=function(a,b){var c=b;
"nl"==b&&(c=a.J,c.F++,c=c.F.toString());a.ha[c]=K();"bs"!=c&&"fb"!=c||Aq(a,a.ha,a.fa)},r4=function(a,b,c){a=a.Ca;
var d=d5,d=d||d5;J1(a.o.W(),d)&&(c=c||{},c.cdp=1,c["var"]=b,c.sdkv="h.3.0",a.o.log(c))},e5=function(a){return!!(a.A.D&&a.B&&1<a.B.B.length)},$3=function(a,b,c){a.o.addEventListener("applicationplayerstatechange",b,c)},g5=function(a,b){G.call(this);
this.A=a;a.o.addEventListener("onVolumeChange",this.Kq,this);a.o.addEventListener("onCaptionsTrackListChanged",this.Jq,this);this.D=!1;this.o=b;b.subscribe("proxyStateChange",this.Xq,this);b.subscribe("remotePlayerChange",this.pm,this);b.subscribe("remoteQueueChange",this.qm,this);this.L=new gz;this.H=this.G=window.NaN;this.K=0;this.B={};this.F=null;this.J=new ym(this.fE,1E3,this);I(this,this.J);this.M=0;this.C=!1;var c=this.A.o.Ab("captions","track");ac(c)||f5(this,c);this.qm();this.pm()},h5=function(a,
b){var c=a.A,d=a.A.o.getVideoData().lengthSeconds;
c.K=b||0;c.o.U("progresssync",b,d)},k5=function(a){a.C||(h5(a,0),i5(a),j5(a,new gz));
Cy(a.A.app.Ra.W())||(a.C=!0)},f5=function(a,b){if(l5(a)&&!a.D){if(b){var c={style:a.A.o.Ab("captions","displaySettings")};
hc(c,b);a.o.Km(m5(a),c)}else a.o.Km(m5(a),null);a.B=yo(a.o).B}},n5=function(a){a.o.pause();
var b=yo(a.o);h5(a,ro(b));i5(a);j5(a,new gz(4))},p5=function(a){a.o.play();
o5(a);j5(a,new gz(8))},q5=function(a,b){var c=a.A.o.Ec();
c?Bo(a.o,m5(a),b,c.Lb(),a.A.o.getVideoData().playlistId):Bo(a.o,m5(a),b);j5(a,new gz(1))},r5=function(a,b){if(b){var c=a.A.o.Ab("captions","tracklist",{Jp:1});
c&&c.length?a.A.o.Ee("captions","track",b):(a.A.o.Vj("captions"),a.D=!0)}else a.A.o.Ee("captions","track",{})},l5=function(a){return po(yo(a.o))==m5(a)},m5=function(a){return a.A.o.getVideoData().videoId},o5=function(a){i5(a);
if(!a.o.isDisposed()){var b=yo(a.o);b.ob()&&j5(a,new gz(8));h5(a,ro(b));a.G=vi(y(function(){o5(this)},a),500)}},i5=function(a){xi(a.G);
a.G=window.NaN},s5=function(a){xi(a.H);
a.H=window.NaN},j5=function(a,b){s5(a);
var c=a.L;a.L=b;a.C=!1;var d=a.A;d.P=b;d.o.U("presentingplayerstatechange",new KL(b,c))},t5=function(a){D1.call(this,a);
this.va=this.logEvent="remote";this.C={key:Fj(),name:Q("YTP_MDX_MY_COMPUTER")};this.B=null;this.H=[];this.J=this.L=this.A=null;this.O=[this.C];this.D=this.C;this.P=new gz;this.K=0},u5=function(a,b,c){var d=c||a.C;
b.unshift(a.C);a.O=b||[a.C];d=eb(b,function(a){return a.key==d.key});
a.D=d||a.C;a.app.Ra.Ea("onMdxReceiversChange")},v5=function(a){Oq.call(this,["div",
"html5-video-player",{tabindex:-1,id:a.Z.attrs.id},["div","html5-video-container",{"data-layer":0}]]);oi(this.element,"version",a.Z.assets.js);this.app=a;this.M=null;this.D=this.sa["html5-video-container"];this.da=!!this.D;this.G=new we(0,0,0,0);this.A=null;this.J=new we(0,0,0,0);this.O=this.ca=0;this.L=!1;this.K=window.NaN;a=a.W();this.H=null;this.addEventListener=y(this.element.addEventListener,this.element);this.removeEventListener=y(this.element.removeEventListener,this.element);this.dispatchEvent=
function(){};
a=Cy(a)&&"blazer"!=a.o&&"mweb-polymer"!=a.o&&window.matchMedia?y(window.matchMedia,window):v;this.S=a("(max-width: 656px)");this.la=a("(min-width: 657px)");this.ha=a("(min-width: 1294px) and (min-height: 630px)");this.ea=a("(min-width: 1720px) and (min-height: 980px)");this.ia=a("(min-width: 967px)");this.fa=a("(min-width: 1320px) and (min-height: 870px)");this.F=null;Bi({YTP_ADVERTISEMENT:"Advertisement",YTP_AIRPLAY:"AirPlay",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",
YTP_CARDS_BUTTON_ARIA_LABEL:"Show cards",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"Hide cards",YTP_DRAWER_HEADER_TEXT_2:"More info",YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"Want to vote?",YTP_DRAWER_POLL_TITLE_ARIA_LABEL:"$POLL_TITLE - Sign in to vote.",YTP_GET_DEBUG_INFO:"Get debug info",
YTP_GET_VIDEO_URL:"Get video URL",YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DECREASE_PLAYBACK_SPEED:"Decrease playback speed",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC_WITHOUT_LINK:"An error occurred. Please try again later.",YTP_ERROR_GENERIC_WITH_LINK:"An error occurred. Please try again later. $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FULLSCREEN_GENERIC_ERROR:"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK",
YTP_FOOLS_BUTTON_TOOLTIP_ENABLE:"Watch in $SERVICE_NAME",YTP_FOOLS_BUTTON_TOOLTIP_DISABLE:"Disable $SERVICE_NAME",YTP_FULLSCREEN_UNSUPPORTED_ERROR:"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK",YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_INCREASE_PLAYBACK_SPEED:"Increase playback speed",YTP_INVIDEO_PROMOTION_ARIA_LABEL:"Promotion",YTP_GOTO_LIVE_TOOLTIP:"Skip ahead to live broadcast.",YTP_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",YTP_LIVE:"Live",YTP_LIVE_NOW:"LIVE NOW",
YTP_LOOP:"Loop",YTP_MIX:"Mix",YTP_MORE:"More",YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PLAY_PAUSE:"Toggle play/pause",YTP_PREVIOUS:"Previous",YTP_PLAYBACK_STALLED_AT_START:"If playback doesn't begin shortly, try restarting your device.",YTP_MISSING_FORMATS:"Missing options?",
YTP_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_SUGGESTED_VIDEOS:"Suggested videos",YTP_REPLAY:"Replay",YTP_REPORT_ISSUE:"Report playback issue",YTP_SEEK_BACK:"Seek back 10 seconds",YTP_SEEK_FORWARD:"Seek forward 10 seconds",YTP_SEEK_PERCENT:"Seek to 0%-90%.",YTP_SETTINGS:"Settings",YTP_SHARE:"Share",YTP_SHARE_LINK:"Share link",YTP_SHARE_WITH_PLAYLIST_2:"Include playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SIGN_IN:"Sign in",YTP_SPHERICAL_CONTROL:"Spherical video control. Use the arrow keys to pan the video.",
YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBTITLES:"Subtitles/CC",YTP_SUBTITLES_TOOLTIP:"Subtitles/closed captions",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",YTP_THREED_VIEWMODE_ANAGLYPH:"Anaglyph",YTP_THEATER_MODE:"Theater mode",YTP_TOGGLE_FULLSCREEN:"Toggle fullscreen.",YTP_TOGGLE_MUTE:"Toggle mute",YTP_UNMUTE:"Unmute",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_URL_NAVIGATE_TO:"Watch on $WEBSITE",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",
YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_ADDED_TO_WATCH_LATER_AS:"Added as $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"Anaglyph",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",
YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",
YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",
YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_EXPAND:"Expand",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",YTP_UPLOADED_BY_2:"by $AUTHOR",YTP_SEEK_SLIDER:"Seek slider",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",YTP_AUTOPLAY_PAUSED:"Busy? We've paused autoplay.",
YTP_AUTOPLAY_PAUSED_2:"Autoplay is paused.",YTP_AUTOPLAY_CANCEL:"Cancel autoplay",YTP_WATCH_VIDEO_OR_PLAYLIST:"Watch $TITLE",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",
YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_CONTEXT_MENU_LINK:"About the HTML5 player",YTP_HTML5_PROTECTED_FLASH_FALLBACK:"To watch this video, install the latest Flash Player, or try a different browser. $BEGIN_LINKGet Flash Player$END_LINK.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",
YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",
YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",YTP_ERROR_FORMAT_UNAVALIABLE:"This video isn't avaliable at the selected quality. Please try again later.",YTP_MDX_STATUS_CONNECTED:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",
YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",YTP_AD_INTERRUPT_MESSAGE:"Your video will play after this ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS of $DURATION",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"An error occurred while retrieving sharing information. Please try again later.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",
YTP_PLAYER_NORMAL:"YouTube Video Player",YTP_PLAYER_FULLSCREEN:"YouTube Video Player in Fullscreen",YTP_SPONSORED:"Sponsored",YTP_SPONSORED_PRODUCT_INFO:"You are seeing this product because we think it is relevant to the video. Google may be compensated by the merchant.",YTP_SPONSORED_PRODUCT_BADGE:"Shop",YTP_AD_SETTINGS_INFO:"Visit Google's $BEGIN_FORMATAd Settings$END_FORMAT to learn more about how ads are targeted or to opt out of personalized ads.",YTP_PIP:"Picture in Picture",YTP_AUTO_TRANSLATE:"Auto-translate",
YTP_SWITCH_CAMERA:"Switch camera",YTP_MULTICAM_INDEX:"Viewing $CAMERA_INDEX of $CAMERA_COUNT",YTP_MORE_CAMERAS_AVAILABLE:"More cameras available"});this.app.Ra.addEventListener("initializingmode",this.zy,this);this.app.Ra.addEventListener("videoplayerreset",this.AG,this);this.app.Ra.addEventListener("videodatachange",this.zG,this);this.app.Ra.addEventListener("presentingplayerstatechange",this.Ux,this)},Bia=function(a,b){a.A=b;
a.L=!1;if(!a.A.parentNode)try{ch(a.D,a.A,0)}catch(d){var c="videoElement_: "+!!a.A+", containerElement: "+!!a.D+", containerElement.childNodes: "+!(!a.D||!a.D.childNodes)+", containerInitiallyTruthy: "+a.da+", isDisposed: "+a.isDisposed();throw Error(c);}a.F&&(a.F.disconnect(),a.F=null);!a.app.W().experiments.ga("no_detect_bad_extensions2")&&window.MutationObserver&&(a.F=new window.MutationObserver(y(function(a){for(var b=0;b<a.length;b++){var c=a[b];"style"==c.attributeName&&"100%"==c.target.style.height&&
(window.console.warn("Detected an extension setting the video size to an invalid height, which hides video playback. Restoring the original height..."),this.J=new we(0,0,0,0),w5(this))}},a)),a.F.observe(a.A,{attributes:!0}));
a.J=new we(0,0,0,0);w5(a);D2(a);Aia(a)},Aia=function(a){L(a.A,"video-stream");
L(a.A,"html5-main-video");var b=a.app.W();b.Fa&&a.A.setAttribute("data-no-fullscreen",!0);b.bc&&a.A.setAttribute("webkit-playsinline","");b.Zd&&a.T(a.A,"click",a.A.play,a.A)},y5=function(a,b){if(a.A){var c=a.app.W();
Hw&&(a.A.setAttribute("x-webkit-airplay","allow"),b.title?a.A.setAttribute("title",b.title):a.A.removeAttribute("title"));var d;c.pf&&b.videoId?d=b.hc(c,"default.jpg"):c.experiments.ga("legacy_poster_behavior")||zc&&!x5&&!$p()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.A.poster=d)}c=b.ed("yt:bgcolor");a.D.style.backgroundColor=c?c:"";a.ca=iv(b.ed("yt:stretch"));c=b.ed("yt:crop");a.O="fullwidth"==c?window.Infinity:iv(c)},EH=function(a){return(a=a.A)?
z5(a.videoWidth,a.videoHeight):window.NaN},CF=function(a,b){var c=a.Ma(),d=A5(a,c,EH(a),B5(a),b);
return new we((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)},A5=function(a,b,c,d,e){c=a.ca||c;
a=(0,window.isNaN)(c)?c:a.O||c;d=z5(b.width,b.height);var f;a>d?(f=(0,window.isFinite)(a)?a:c,f={width:b.width,height:b.width/f,aspectRatio:f}):a<d?f={width:b.height*a,height:b.height,aspectRatio:a}:f={width:b.width,height:b.height,aspectRatio:d};e||(0,window.isNaN)(c)||(c>a?f.width=f.height*c:c<a&&(f.height=f.width/c),f.aspectRatio=c);return f},z5=function(a,b){return 1>Math.abs(C5*b-a)||1>Math.abs(C5/a-b)?C5:a/b},B5=function(a){return Hw?!0:"3"!=a.app.W().B&&!(0,window.isNaN)(EH(a))},D5=function(a){a=
(a=wq(a.app))&&a.getPlayerState();
return!a||T(a,2)||qz(a)},D2=function(a){var b="3"==a.app.W().B&&!a.L&&!D5(a);
a.A.controls=b;a.A.tabIndex=b?0:-1},w5=function(a){var b=EH(a),c=a.Ma(),d=1,e=B5(a),f=!1,k=A5(a,c,b);
D5(a)?(b=-c.height,Hw?b*=window.devicePixelRatio:tu&&(b-=window.screen.height),b=new we(0,b,c.width,c.height)):e&&!(0,window.isNaN)(b)?(d=k.aspectRatio/b,b=new we((c.width-k.width/d)/2,(c.height-k.height)/2,k.width/d,k.height)):b=new we(0,0,c.width,c.height);ye(a.J,b)||(a.J=b,kr(a.A,ze(b)),$q(a.A,Ae(b)),f=!0);c=new we((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);ye(a.G,c)||(a.G=c,f=!0);Uq(a.A,"transform",1==d?"none":"scaleX("+d+")");return f},E5=function(a,b,c,d){Dr.call(this);
this.T(a,"click",this.K);this.T(a,"dblclick",this.H);this.J=b;this.C=c;this.D=d||null;this.A=new Wd(this.G,200,this);I(this,this.A);this.o=!0;this.B=!1;this.F=null},F5=function(a){for(var b=0;b<a.length;b++){var c=a[b];
"send_follow_on_ping_action"==c.name&&c.data&&c.data.follow_on_url&&iq(c.data.follow_on_url)}},G5=function(){this.o=[];
this.A=[]},H5=function(a,b,c){c=window.document.createElement(c?"audio":"video");
ra(c,Cia);Nl(c,"loadeddata",y(c.Kw,c));Nl(c,"volumechange",y(c.Mw,c));YI&&6<=zx&&Nl(c,"webkitbeginfullscreen",y(c.play,c));b||c.src||c.load();a.A.push(c);return c},I5=function(a,b,c,d){Lj.call(this);
this.C=a;this.P=y(b,null);this.A=0;this.F=!1;this.B=new re(window.NaN,window.NaN);this.o=new Dr(this);I(this,this.o);b=d?4E3:3E3;this.J=new Wd(qa(this.rb,1,!1),b,this);I(this,this.J);this.K=new Wd(qa(this.rb,2,!1),b,this);I(this,this.K);this.L=new Wd(qa(this.rb,512,!1),0,this);I(this,this.L);this.M=c&&0<c.M.length?5E3:3E3;d||(this.G=this.o.T(a,"mouseover",this.Zt),this.o.T(a,"mousemove",this.vG),this.o.T(a,"mouseleave",this.Jz));Rq?this.o.T(a,"keypress",this.uz):this.o.T(a,"focusin",this.mx);this.D=
this.o.T(a,"mousedown",this.Yt);this.H=this.o.T(a,"touchstart",this.$t);this.O=null;this.rb(640,!0)},J5=function(a){R.call(this,["span"]);
Kf(this.element,a)},K5=function(a,b){R.call(this,["canvas"]);
this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.A=window.NaN;this.K=null},M5=function(a,b){K5.call(this,a,b);
this.M=null;this.H=this.J=this.F=this.D=0;this.G=-75;L(this.element,"ytp-tv-static");L5(this,a,b)},N5=function(a){for(var b=Math.floor(.6*a),c=b;c<a;++c){for(var d=!1,e=2;e<Math.sqrt(c);e++){if(!(c%e)){d=!1;
break}d=!0}if(d)return c}return b},L5=function(a,b,c){if(b&&c){a.width=a.element.width=b;
a.height=a.element.height=c;var d=window.document.createElement("canvas");d.width=b;d.height=c;for(var e=d.getContext("2d"),f=e.getImageData(0,0,b,c),k=b*c,m=0;m<k;m++){var l=4*m;f.data[l]=f.data[l+1]=f.data[l+2]=Math.floor(35*Math.random());f.data[l+3]=255}e.putImageData(f,0,0);a.M=d;a.J=N5(b);a.H=N5(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}},P5=function(a){R.call(this,["div",
["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.D=a;this.F=[];void 0==O5&&(a=window.document.createElement("canvas"),O5=!(!a.getContext||!a.getContext("2d")));O5&&(this.A=new M5(1,1),this.A.o(this.element,0),I(this,this.A));a=DF(this.D).Ma();this.A&&L5(this.A,a.width,a.height)},Dia=function(a,b,c){Q5("add_to_watch_later_list",a,b,c)},Eia=function(a,b,c){Q5("delete_from_watch_later_list",a,b,c)},Q5=function(a,b,c,d){tj(c?c+"playlist_video_ajax?action_"+
a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",
Tc:{feature:b.feature||null,authuser:b.Db||null,pageid:b.pageId||null},Ib:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.xO||null,add_to_playlists:b.nO||null,plid:ti("PLAYBACK_ID")||null},context:b.context,onError:b.onError,tb:function(a,c){var d=c.result;d&&d.actions&&F5(d.actions);b.tb.call(this,a,c)},
$b:b.$b,withCredentials:!!d})},R5=function(a,b){R.call(this,["span",
"","{{sparkline_container}}"]);this.F=a;this.D=b;this.A=new J5("");I(this,this.A);this.B("sparkline_container",this.A)},S5=function(a,b){for(var c=Math.max.apply(Math,b)||1,d=[],e=0;e<b.length;e++)d.push(e/b.length*a.F+","+a.D*(1-b[e]/c));
return'<svg width="'+a.F+'" height="'+a.D+'" viewbox="0 0 '+a.F+" "+a.D+'"><g><polyline stroke="white" fill="none" points="'+d.join(" ")+'"/></g></svg>'},T5=function(a){var b=null,b=["button",
["html5-video-info-panel-close","ytp-button"],{title:"close"},"[x]"];R.call(this,["div","html5-video-info-panel",b,["div","html5-video-info-panel-content",["div","",["div","","Video ID:"],["span","","{{video_id}}"]],["div","",["div","","Dimensions:"],["span","","{{dimensions}}"]],["div","",["div","","Resolution:"],["span","","{{resolution}}"]],["div","",["div","","Volume:"],["span","","{{volume}}"]],["div","",["div","","Stream Host:"],["span","","{{stream_host}}"]],["div","",["div","","Stream Type:"],
["span","","{{stream_type}}"]],["div",{style:"{{cpn_style}}"},["div","","CPN:"],["span",{style:"font-family:monospace"},"{{cpn}}"]],["div","",["div","","Mime Type:"],["span","","{{mime}}"]],["div","",["div","","DASH:"],["span","","{{dash}}"]],["div",{style:"{{drm_style}}"},["div","","Protected:"],["span","","{{drm}}"]],["div","",["div","","Connection Speed:"],["span","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]],["div",{style:"{{live_latency_style}}"},["div","","Live Latency:"],
["span","",["span","","{{live_latency_sparkline}}"],["span","","{{live_latency_message}}"]]],["div","",["div","","Dropped Frames:"],["span","","{{dropped_frames}}"]]]]);b&&this.T(this.sa["html5-video-info-panel-close"],"click",this.ka);this.D=new R5(200,14);I(this,this.D);this.B("bandwidth_sparkline",this.D);this.F=new R5(200,14);I(this,this.F);this.B("live_latency_sparkline",this.F);this.G=new Wd(this.H,500,this);I(this,this.G);this.A=a},U5=function(a){this.B=a;
this.A=this.o=null},V5=function(a){a.A=null;
a.o&&(Jq(a.o),a.o=null)},W5=function(a){Oq.call(this,["div",
"ytp-ad-progress-bar-container",["div","ytp-ad-progress-bar"]]);this.D=a;this.H=this.sa["ytp-ad-progress-bar"];this.A=null;this.T(a,"presentingplayerstatechange",this.G);this.ka();this.G()},X5=function(a){R.call(this,["div",
"ytp-bezel",{role:"status","aria-label":"{{label}}"},["div","ytp-bezel-icon"]]);this.A=new yr(this,500);I(this,this.A);this.$=a;this.D=null},Z5=function(a){var b=fA(a.$);
iz(b)?(b=a.$.getVideoData(),b.Ha&&!b.$d?Y5(a,3):Y5(a,2),a.A.show(!0)):T(b,64)||(Y5(a,1),a.A.show(!0))},Y5=function(a,b){if(a.D!=b){a.D=b;
var c,d;switch(b){case 2:c=Q("YTP_PAUSE");d=Lf?'<div class="ytp-icon ytp-icon-pause-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 12.22,11.11 0,17.77 6.66,0 0,-17.77 -6.66,0 z m 10,0 0,17.77 6.66,0 0,-17.77 -6.66,0 z" /></svg>';break;case 1:c=Q("YTP_PLAY");d=Lf?'<div class="ytp-icon ytp-icon-play-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 12.22,28.88 0,-17.77 16.66,8.91 -16.66,8.86 z" /></svg>';
break;case 3:c=Q("YTP_STOP"),d=Lf?'<div class="ytp-icon ytp-icon-stop-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 11.11,11.11 17.77,0 0,17.77 -17.77,0 0,-17.77 z" /></svg>'}var e=a.element.children[0];M(e,"ytp-bezel-icon-play",1==b);a.B("label",c);d&&Kf(e,d)}},$5=function(a,b){var c=["button",
["ytp-button","ytp-cards-button"],{"aria-label":Q("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"},["span","ytp-cards-button-icon-default"],["span","ytp-cards-button-icon-shopping"]];R.call(this,c);var c=Og("ytp-cards-button-icon-default",this.element),d=Og("ytp-cards-button-icon-shopping",this.element);Kf(c,Lf?'<div class="ytp-icon ytp-icon-info-card"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z" id="ytp-svg-20" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-20" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-20" /></svg>');
Kf(d,Lf?'<div class="ytp-icon ytp-icon-shopping-card"></div>':'<svg height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><path class="ytp-svg-shadow" d="M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z" /><path class="ytp-svg-fill" d="M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z" fill-opacity="1" /><path class="ytp-svg-shadow-fill" d="M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z" fill="#000" fill-opacity="0.15" /></svg>');
var e=a.W().experiments,f=a.Da();Ob(Fia,function(a,b){e.ga(b)&&F(a,function(a){L(f,a)})});
this.$=a;this.H=b;this.A=null;this.D=new yr(this,250,!0,100);I(this,this.D);this.ka();this.R("click",this.F);this.R("mouseover",this.G);qC(this,!0)},qC=function(a,b){b?(a.element.title=Q("YTP_DRAWER_HEADER_TEXT_2"),a.A=a6(a.H.A,a.element)):(a.A(),a.A=null,a.element.title="")},b6=function(a,b,c){this.Fa=!!c;
this.ia=this.ea=null;Oq.call(this,a);this.la=new yr(this,b);this.L=null},c6=function(a){a.L&&(window.document.activeElement&&mh(a.element,window.document.activeElement)&&(sh(a.L),a.L.focus()),a.L=null)},d6=function(a){return a.C&&3!=a.la.o},f6=function(a,b){this.D=[a];
this.F=a;e6(this,a);this.size=new ue(0,0);this.H=this.K=null;this.ra=this.Ca=0;b6.call(this,["div",["ytp-popup",b||null],{child:a}],100,!0);this.R("keydown",this.jH)},e6=function(a,b){a.F.Ia("size-change",a.zh,a);
a.F=b;a.F.subscribe("size-change",a.zh,a)},g6=function(a){kr(a.element,a.Ca||"100%",a.ra||"100%");
var b=a.F;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.D.style.height="";var c=mr(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.F&&(d=mr(b.sa["ytp-panel-header"]).height);b.D.style.height=c.height-d+"px";a.size=c},i6=function(a,b){a.D.push(b);
h6(a,a.F,b)},h6=function(a,b,c,d){a.K&&Xd(a.K);
a.H&&Xd(a.H);b.Ia("back",a.ue,a);c.subscribe("back",a.ue,a);c.o(a.element);e6(a,c);if(a.C){c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;g6(a);d=0==!d?-e.width:a.size.width;kr(a.element,e);Uq(c.element,"transform","translateX("+d+"px)");Uq(c.element,"opacity","0");a.K=new Wd(qa(a.aE,b,c,-d),20,a);a.K.start()}else Uq(c.element,"transform","translateX(0)"),Uq(c.element,"opacity","1"),Jq(b)},j6=function(a,b,c){for(var d=0;d<c.length;d++)M(c[d].element,"ytp-panel-animating",b);
M(a.element,"ytp-popup-animating",b)},k6=function(a){Oq.call(this,["div",
"ytp-menu","{{content}}",{role:"menu",id:a||null}]);this.A=[]},l6=function(a,b,c){if(c)a.A.push(b),a.element.appendChild(b.element);
else{c=Ab(a.A,b,a.Sw);if(0<=c)return;c=~c;vb(a.A,c,0,b);ch(a.element,b.element,c)}b.subscribe("size-change",a.lm,a);a.U("size-change")},n6=function(a,b,c,d){Oq.call(this,a);
this.priority=b;c&&m6(this,c);d&&this.Jb(d)},o6=function(a,b,c){b=b?b:[];
b.push("ytp-menuitem");a=a?a:{};"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex=0);return[c?"a":"div",b,a,["div","ytp-menuitem-label","{{label}}"],["div","ytp-menuitem-content","{{content}}"]]},m6=function(a,b){a.B("label",b)},p6=function(a,b,c,d){var e=["div",
"ytp-panel"];if(c){var f="ytp-panel-title",k=["div","ytp-panel-header",["button",["ytp-button",f],c]];if(d){var m="ytp-panel-options";k.push(["button",["ytp-button",m],Q("YTP_OPTIONS")])}e.push(k)}e.push(["div","ytp-panel-content",{child:b}]);Oq.call(this,e);this.D=this.sa["ytp-panel-content"];this.H=b;this.F=!1;c&&(this.T(this.sa[f],"click",this.L),this.F=!0,d&&this.T(this.sa[m],"click",d));this.H.subscribe("size-change",this.G,this);this.T(a,"fullscreentoggled",this.G)},q6=function(a){var b=o6({"aria-haspopup":!0});
n6.call(this,b,a);this.R("keydown",this.A)},r6=function(a,b){a.element.setAttribute("aria-haspopup",b)},s6=function(a,b){this.A=!1;
var c=o6({role:"menuitemcheckbox","aria-checked":this.A});n6.call(this,c,b,a,["div","ytp-menuitem-toggle-checkbox"]);this.R("click",this.L)},t6=function(a,b){a.A=b;
a.element.setAttribute("aria-checked",a.A)},u6=function(a){this.A=a;
this.ua=!1;this.ha=new Dr(this);I(this,this.ha);this.M=new Oq(["div",["ytp-copytext","ytp-no-contextmenu"],{draggable:!1,tabindex:1},"{{text}}"]);I(this,this.M);this.na=new p6(a,this.M);I(this,this.na);this.G=new k6("contextmenu");I(this,this.G);var b=new p6(a,this.G);I(this,b);f6.call(this,b);L(this.element,"ytp-contextmenu");b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");El&&wc(43)&&(b=!0);Ww&&!wc(41)&&(b=!1);b&&(this.J=new R(["div","ytp-html5-clipboard"]),
I(this,this.J),this.J.o(this.element));this.T(DF(a),"contextmenu",this.QA)},w6=function(a,b){var c;
if(a.J){oh(a.J.element,b);Nq(a.J.element);try{c=window.document.execCommand("copy")}catch(d){}}c?a.ub():(a.M.Jb(b,"text"),i6(a,a.na),Nq(a.M.element),a.J&&(a.J=null,v6(a)))},x6=function(a,b){var c=a.A.W(),d=!c.D&&!!b.videoId;
"play"!=c.o?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.B&&(c.fmt=b.B.id),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.O&&(c.partnerid=b.O),c=gf("//support.google.com/googleplay/",c));a.P.Za(d&&b.allowEmbed);a.S.Za(d);a.O.Za(d&&!b.Ha);a.fa.Jb(c,"href")},v6=function(a){var b=!!a.J;
m6(a.ca,Q(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));r6(a.ca,!b);m6(a.P,Q(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));r6(a.P,!b);m6(a.S,Q(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));r6(a.S,!b);m6(a.O,Q(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));r6(a.O,!b)},y6=function(a){this.F=new Dr(this);
zr.call(this,a,["div",["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"]]);this.D=new Wd(this.fu,0,this);I(this,this.D);this.fu();this.T(a,"presentingplayerstatechange",this.YG);"detailpage"==a.W().Ba&&this.T(a,"videoplayerreset",this.XG)},z6=function(a,b,c){var d=qz(c),e=!b.W().experiments.ga("disable_new_pause_state3");
b=T(c,2)&&!CM(b)&&(!e||!Sy(b.app));d||b?a.show():(a.ka(),T(c,1)||a.stop())},A6=function(a,b,c,d,e,f,k){Dr.call(this);
this.o=a;this.K=c;this.G=d;this.B=e;this.H=f;this.J=k;this.A="";a=qa(this.C,!1);this.T(b,"mousedown",a);this.T(c.element,"mousedown",a);this.T(b,"keydown",this.D);this.T(c.element,"keydown",this.D);this.T(b,"keyup",this.F);this.T(c.element,"keyup",this.F)},C6=function(a,b,c){var d=!1,e=a.o.W();
if(!e.qb){switch(b){case 80:c&&(a.o.Xj(),d=!0);break;case 78:c&&(a.o.Wj(),d=!0);break;case 74:a.o.Vc(-10);d=!0;break;case 76:a.o.Vc(10);d=!0;break;case 77:a.o.Fc()?a.o.unMute():a.o.mute();d=!0;break;case 75:Z5(a.H);iz(fA(a.o))?a.o.pauseVideo():a.o.Uc();d=!0;break;case 190:if(c){if(e.da)for(b=a.o.Tj(),c=a.o.app.S,e=0;e<b.length-1;e++)b[e]==c&&(a.o.Gh(b[e+1],!0),d=!0)}else B6(a,1),d=!0;break;case 188:if(c){if(e.da)for(b=a.o.Tj(),c=a.o.app.S,e=b.length-1;1<=e;e--)b[e]==c&&(a.o.Gh(b[e-1],!0),d=!0)}else B6(a,
-1),d=!0;break;case 70:Ay(a.o)&&(Dy(a.o),d=!0)}d&&a.G.rb(2,!0)}return d},E6=function(a,b,c,d){if(AM(a.o.app.D,"captions")){for(var e=a.o.Ab("captions","displaySettings"),f,k=0;k<D6.length;k++){var m=D6[k];
if(m.option==b){f=m.options;break}}for(var l,k=0;k<f.length;k++)f[k].option==e[b]&&(l=k);if(d)if(c){if(0==l)return!1}else if(l==f.length-1)return!1;d={};d[b]=f[(l+(c?f.length-1:1))%f.length].option;GM(a.o,d);return!0}return!1},B6=function(a,b){if(T(fA(a.o),4)){var c=a.o.getVideoData().B;
c&&(c=c.video)&&a.o.Vc(b/(c.fps||30))}},G6=function(a){var b=["ytp-large-play-button",
"ytp-button"];a.W().isMobile&&b.push("ytp-touch-device");R.call(this,["button",b,{"aria-label":"{{label}}"}]);b=a.W();Kf(this.element,b.Nb?Lf?'<div class="ytp-icon ytp-icon-house-brand-large-play-button"></div>':'<svg height="100%" version="1.1" viewBox="0 0 60 60" width="100%"><path class="ytp-large-play-button-bg" clip-rule="evenodd" d="M59.6,1.35c0.26,.5,.4,1.13,.4,1.9v53.5c0,.76-0.13,1.4-0.4,1.9c-0.5,.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.33-0.43-2.8-1.3C0.15,58.16,0,57.51,0,56.75V3.25c0-0.83,.16-1.5,.5-2C1,.41,1.91,0,3.25,0h53.5C58.15,0,59.1,.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z" fill="#1f1f1f" fill-rule="evenodd" /><path d="M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z" fill="#fff" /></svg>':
Lf?'<div class="ytp-icon ytp-icon-large-play-button"></div>':'<svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z" fill="#1f1f1e" fill-opacity="0.81" /><path d="m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z" fill="#fff" /><path d="M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z" fill="#ccc" /></svg>');
this.A=a;this.F=!1;this.D=new yr(this,250);I(this,this.D);this.T(a,"presentingplayerstatechange",this.G);F6(this,fA(a))},F6=function(a,b){if(a.A.W().uf&&!a.F){z6(a.D,a.A,b);
var c;c=(c=a.A.getVideoData())&&c.title?Q("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):Q("YTP_PLAY");a.B("label",c)}else a.ka()},H6=function(a,b,c){var d=b.yb(c),e=a.W(),f=d.hc(e,"default.jpg");
R.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.D?b.D.toString():null)},["div","ytp-video-menu-item-index",""+(c+1)],["div","ytp-video-menu-item-now-playing","\u25b6"],["div","ytp-video-menu-item-thumbnail",{style:f?"background-image: url("+f+");":null}],["div","ytp-video-menu-item-title",d.title],["div","ytp-video-menu-item-author",Q("YTP_UPLOADED_BY_2",{AUTHOR:d.author})]]);this.A=a;this.D=c;this.R("click",this.F)},
I6=function(a,b){this.D=a;
b6.call(this,["div","ytp-playlist-menu",{role:"dialog"},["div","ytp-playlist-menu-header",["div","ytp-playlist-menu-title",["a","ytp-playlist-menu-title-name",{href:"{{playlisturl}}"},"{{title}}"],["button",["ytp-playlist-menu-close","ytp-button"],{"aria-label":Q("YTP_CLOSE")}]],["div","ytp-playlist-menu-subtitle","{{subtitle}}"]],["div","ytp-playlist-menu-items",{role:"menu"}]],250);var c=this.sa["ytp-playlist-menu-close"];Kf(c,Qf());this.T(c,"click",this.mH);this.T(this.sa["ytp-playlist-menu-title-name"],
"click",this.MC);this.G=this.H=this.A=null;this.K=this.sa["ytp-playlist-menu-items"];this.F=[];this.J=b},J6=function(a,b){a.A!=b&&(a.A&&a.A.Ia("shuffle",a.Am,a),a.A=b,a.H=null,b?b.subscribe("shuffle",a.Am,a):a.C&&a.J())},K6=function(a,b,c){var d=["button",
["ytp-playlist-menu-button","ytp-button"],{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":Q("YTP_PLAYLIST")},["div","ytp-playlist-menu-button-icon",""],["div","ytp-playlist-menu-button-text","{{text}}"]];R.call(this,d);Kf(this.sa["ytp-playlist-menu-button-icon"],Rf());this.F=a;this.A=null;this.J=c;this.G=b.A;this.T(a,"videodatachange",this.H);this.T(a,"onPlaylistUpdate",this.H);this.T(a,"presentingplayerstatechange",this.D);this.T(a,"resize",this.D);this.ka();this.H();
Lb(this,a6(this.G,this.element));this.R("click",this.J)},L6=function(a,b){var c=["button",
["ytp-replay-button","ytp-button"],{title:Q("YTP_REPLAY")}];R.call(this,c);Kf(this.element,Sf());this.A=a;this.T(a,"presentingplayerstatechange",this.F);this.R("click",this.D,this);c=fA(a);this.Za(T(c,2));a6(b.A,this.element)},M6=function(a,b,c){var d=["div",
"ytp-share-panel",{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},["button",["ytp-share-panel-close","ytp-button"],{title:Q("YTP_CLOSE")}],["div","ytp-share-panel-inner-content",["div","ytp-share-panel-title",{id:"ytp-share-panel-title"},Q("YTP_SHARE")],["a",["ytp-share-panel-link","ytp-no-contextmenu"],{href:"{{link}}",target:"_blank",title:Q("YTP_SHARE_LINK"),"aria-label":Q("YTP_SHARE_LINK")},"{{linkText}}"],["label","ytp-share-panel-include-playlist",["input","ytp-share-panel-include-playlist-checkbox",
{type:"checkbox",checked:!0}],Q("YTP_SHARE_WITH_PLAYLIST_2")],["div","ytp-share-panel-loading-spinner"],["div","ytp-share-panel-service-buttons","{{buttons}}"],["div","ytp-share-panel-error",Q("YTP_SHARE_PANEL_ERROR")]]];b6.call(this,d,250);this.D=a;this.F=b.A;this.J=c;this.A=[];this.M=this.sa["ytp-share-panel-inner-content"];this.P=this.sa["ytp-share-panel-loading-spinner"];Kf(this.P,Uf());this.G=this.sa["ytp-share-panel-close"];Kf(this.G,Qf());this.T(this.G,"click",this.J);Lb(this,a6(this.F,this.G));
this.K=this.sa["ytp-share-panel-include-playlist-checkbox"];this.T(this.K,"click",this.ou);this.H=this.sa["ytp-share-panel-link"];Lb(this,a6(this.F,this.H));this.R("click",this.WB);this.T(a,"videoplayerreset",this.ka);this.T(a,"fullscreentoggled",this.yH)},Gia=function(a){switch(a){case "facebook":return Lf?'<div class="ytp-icon ytp-icon-share-facebook"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z" fill="#39579b" /></svg>';
case "googleplus":return Lf?'<div class="ytp-icon ytp-icon-share-googleplus"></div>':'<svg height="100%" version="1.0" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M34.3,0H3.7C1.7,0,0,1.7,0,3.7v30.5c0,2,1.7,3.7,3.7,3.7h30.5c2,0,3.7-1.7,3.7-3.7V3.7C38,1.7,36.3,0,34.3,0z M13.3,28.5c-5.2,0-9.5-4.3-9.5-9.5c0-5.2,4.3-9.5,9.5-9.5c2.6,0,4.7,.9,6.4,2.5l-2.7,2.7c-1-0.9-2.2-1.4-3.6-1.4 c-3.1,0-5.6,2.6-5.6,5.7s2.5,5.7,5.6,5.7c2.8,0,4.7-1.6,5.1-3.8h-5.1v-3.6h8.9c0.1,.6,.2,1.3,.2,2C22.4,24.6,18.8,28.5,13.3,28.5 z M34.2,19.6H31v3.2h-2.2v-3.2h-3.2v-2.2h3.2v-3.2H31v3.2h3.2V19.6z" fill="#dc4537" /></svg>';
case "twitter":return Lf?'<div class="ytp-icon ytp-icon-share-twitter"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z" fill="#01abf0" /></svg>';
default:return null}},N6=function(a){for(var b=0;b<a.A.length;b++)Jq(a.A[b]),Mb(a.A[b]);
a.A=[]},O6=function(a,b,c,d,e){c=["button",
["ytp-button","ytp-share-button"],{title:Q("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"}];R.call(this,c);Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-sharrow"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z" id="ytp-svg-38" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-38" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-38" /></svg>');
this.A=a;this.F=e;this.R("click",d);this.T(a,"videodatachange",this.D);this.T(a,"resize",this.D);this.D();Lb(this,a6(b.A,this.element))},P6=function(a){R.call(this,["div",
"ytp-webgl-spherical-control",{tabindex:0,"aria-label":Q("YTP_SPHERICAL_CONTROL")}]);Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-spherical-control"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 50 50" width="100%"><defs><circle cx="25" cy="25" id="ytp-svg-41" r="24" /><path d="M11.46,29.41 L9.97,30.90 L4,24.95 L9.97,19 L11.46,20.48 L7.00,24.95 L11.46,29.41 M42.46,24.95 L38,20.48 L39.48,19 L45.46,24.95 L39.48,30.90 L38,29.41 L42.46,24.95 M24.5,42.43 L28.96,37.96 L30.45,39.45 L24.5,45.43 L18.54,39.45 L20.03,37.96 L24.5,42.43 M24.5,6.97 L20.03,11.43 L18.54,9.94 L24.5,3.96 L30.45,9.94 L28.96,11.43 L24.5,6.97 Z" id="ytp-svg-42" /></defs><use opacity="0.15" stroke="#000" stroke-width="2" xlink:href="#ytp-svg-41" /><use fill="#fff" xlink:href="#ytp-svg-41" /><use opacity="0.15" stroke="#000" stroke-width="1" xlink:href="#ytp-svg-42" /><use fill="#999" xlink:href="#ytp-svg-42" /></svg>');
this.D=a;this.fa=this.ea=this.G=this.H=null;this.A=[];this.F=0;this.da=null;this.J=new uA(this.AH,null,this);I(this,this.J);this.P=-1;this.S=this.K=this.Y=this.M=this.ca=this.L=0;this.O=!1;this.T(a,"videodatachange",this.Jn);this.T(a,"onApiChange",this.Jn);this.ka();this.Jn()},Q6=function(a,b,c,d){a.ca=le(b+a.ca,-1,1);
a.Y=le(c+a.Y,-1,1);a.S=le(d+a.S,-1,1);1!=a.F&&(a.F=1,L(a.element,"ytp-dragging"),a.P=K(),a.J.start())},R6=function(a){a.J.stop();
a.F=0;a.ca=0;a.Y=0;a.S=0;a.A=[];be(a.element,"ytp-dragging")},S6=function(a,b,c,d,e,f){var k=f-a.P;
a.M=(a.L*a.M+(b-e.yaw))/(k+a.L);a.K=(a.L*a.K+(c-e.pitch))/(k+a.L);a.P=f;a.L=k;JM(a.D,{shader:"Spherical",yaw:b,pitch:c,fov:d})},T6=function(a,b){if(!(-1<a.A.indexOf(b)))switch(b){case 37:case 65:Q6(a,1,0,0);
a.A.push(b);break;case 39:case 68:Q6(a,-1,0,0);a.A.push(b);break;case 38:case 87:Q6(a,0,1,0);a.A.push(b);break;case 40:case 83:Q6(a,0,-1,0);a.A.push(b);break;case 107:Q6(a,0,0,-1);a.A.push(b);break;case 109:Q6(a,0,0,1),a.A.push(b)}},U6=function(a,b){var c=a.A.indexOf(b);
if(-1<c)switch(a.A.splice(c,1),b){case 37:case 65:Q6(a,-1,0,0);break;case 39:case 68:Q6(a,1,0,0);break;case 38:case 87:Q6(a,0,-1,0);break;case 40:case 83:Q6(a,0,1,0);break;case 107:Q6(a,0,0,1);break;case 109:Q6(a,0,0,-1)}0==a.A.length&&(R6(a),a.F=2,a.J.start())},W6=function(a){var b=["div",
"ytp-spinner",["span","ytp-spinner-svg"],["div","ytp-spinner-message",Q("YTP_PLAYBACK_STALLED_AT_START")]];R.call(this,b);this.G=this.sa["ytp-spinner-svg"];Kf(this.G,Uf());this.F=this.sa["ytp-spinner-message"];this.D=a;this.A=new Wd(this.show,500,this);this.T(a,"presentingplayerstatechange",this.DH);this.T(a,"onFrescaStateChange",this.iB);this.T(a,"playbackstalledatstart",this.cC);V6(this,fA(a))},V6=function(a,b){var c;
T(b,128)?c=0:!(c=T(b,16))&&(c=T(b,1))&&(c=AM(a.D.app.D,"fresca"),c=!(c&&c.loaded));c?a.A.start():a.ka()},X6=function(a,b){var c=["button",
["ytp-airplay-button","ytp-button"],{title:Q("YTP_AIRPLAY")}];R.call(this,c);this.A=a;this.R("click",this.F);this.T(a,"airplayactivechange",this.D);this.T(a,"airplayavailabilitychange",this.D);this.D();Lb(this,a6(b.A,this.element))},Y6=function(a,b){Oq.call(this,["div",
"ytp-storyboard",["div","ytp-storyboard-filmstrip",["div","ytp-storyboard-thumbnail"]],["div","ytp-storyboard-lens",["div","ytp-storyboard-lens-thumbnail"],["div","ytp-storyboard-lens-timestamp-wrapper",["span","ytp-storyboard-lens-timestamp"]]]]);this.D=a;this.ha=b.A;this.da=new ym(this.$G,250,this);I(this,this.da);this.J=DF(a).Ma().width;this.F=this.sa["ytp-storyboard-filmstrip"];this.ia=this.sa["ytp-storyboard-lens"];this.la=this.sa["ytp-storyboard-lens-thumbnail"];this.na=this.sa["ytp-storyboard-lens-timestamp"];
this.ea=this.sa["ytp-storyboard-thumbnail"];dh(this.ea);this.P=0;this.fa=!1;this.ca=this.A=0;this.S=this.L=this.H=window.NaN;this.K=this.G=null;this.M=new Dr(this);this.O=new yr(this,100);this.T(this.D,"resize",this.ZG);this.T(this.D,"beginseeking",this.Yw)},Z6=function(a,b){a.K&&a.K.Ia("l",a.Ij,a);
var c=!!a.G;a.G=b&&Qx(b);a.K=b&&Rx(b);a.fa=!!b&&b.Ha;a.G?(c||(a.M.T(a.D,"videodatachange",a.aH),a.M.T(a.D,"progresssync",a.fk),a.M.T(a.D,"videoplayerreset",a.fk),a.M.T(a.D,"endseeking",a.kx)),a.K.subscribe("l",a.Ij,a),a.S=window.NaN,a.H=window.NaN,a.L=window.NaN,a.fk(),a.O.show(!1,200)):(c&&Fr(a.M),a.da.stop(),mv(a.P),a.O.ka(),a.O.stop())},$6=function(a,b){var c=a.ea.cloneNode(!1),d=Xu(a.K,b,a.A);
m2(c,d,a.A,a.ca);return c},a7=function(a,b){R.call(this,["button",
["ytp-fools-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:"{{tooltip}}"}]);Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-snoop"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="m 16.31,9.27 -0.82,.06 -0.69,.12 -1.01,.38 -1.77,.88 -0.69,.76 -1.07,1.52 -0.82,1.45 -0.06,.19 -0.06,.19 .19,.44 .25,.44 .06,.25 -0.50,.38 -0.25,.25 -0.63,.63 -0.50,.69 -0.19,.25 0,.31 .25,.31 .57,.19 .25,.19 0,.19 -0.06,.06 -0.06,.06 -0.25,.25 0,.25 0,-0.06 .06,0 0,.25 .25,.19 .31,.25 .44,.19 -0.19,.06 .06,.25 .06,.12 .06,.19 -0.06,.31 -0.12,.31 .06,-0.06 .06,.06 0,.06 0,.12 -0.12,.50 -0.06,.50 .12,-0.25 .19,-0.12 -0.25,.44 -0.06,.44 0,.38 -0.19,.25 .19,-0.06 .19,.19 0,.19 -0.19,.12 .57,.06 1.01,-0.25 .44,-0.25 -0.06,.25 -0.19,.25 .57,-0.31 .44,-0.50 0,.19 0,.12 .82,-0.69 .31,-0.12 .19,-0.06 0,0 0,.06 .19,.06 .25,.19 .19,.25 0,.31 .38,.57 .38,.50 0,.06 .06,0 .76,-0.19 1.14,-0.57 .88,-0.31 1.77,-0.38 .95,0 -0.19,-0.50 -0.31,-0.44 -0.19,-0.63 .06,-1.39 .31,-0.63 0,-0.06 .06,0 .19,.12 .19,.12 .06,.31 .19,.31 .25,.25 .31,.06 0,.25 .50,.38 .38,.06 .06,.19 .63,.38 .44,-0.06 .12,.19 .38,.12 .44,0 .38,-0.06 .19,-0.06 .25,-0.06 .38,.06 .19,.19 .06,-0.12 -0.19,-0.38 -0.25,-0.12 .19,.12 .19,.12 -0.25,-0.31 -0.44,-0.12 -0.12,-0.12 -0.38,0 -0.31,.06 -0.38,.06 -0.12,-0.19 -0.31,-0.12 -0.31,-0.12 -0.25,-0.06 .06,-0.25 -0.19,-0.25 -0.31,-0.19 -0.38,0 -0.06,-0.25 -0.38,-0.44 -0.25,-0.12 .12,-0.19 -0.12,-0.38 -0.19,-0.12 .06,-0.25 -0.19,-0.50 -0.19,-0.25 .06,-0.06 0,-0.12 .19,.31 .38,.19 .06,.31 .19,.31 .19,.25 .38,.06 0,.25 .50,.38 .38,.06 .06,.25 .63,.31 .44,-0.06 .12,.19 .31,.12 .44,0 .44,-0.06 .19,-0.06 .19,-0.06 .38,.06 .25,.19 .06,-0.12 -0.25,-0.38 -0.19,-0.06 .19,.06 .12,.12 -0.25,-0.31 -0.38,-0.06 -0.12,-0.19 -0.38,.06 -0.38,0 -0.31,.06 -0.12,-0.19 -0.31,-0.12 -0.31,-0.12 -0.25,-0.06 0,-0.25 -0.19,-0.25 -0.31,-0.19 -0.38,0 0,-0.25 -0.38,-0.44 -0.25,-0.12 .12,-0.12 -0.19,-0.44 -0.19,-0.12 .06,-0.12 .06,-0.12 .25,.31 .38,.06 .12,.31 .25,.25 .31,.19 .31,0 .06,.25 .57,.25 .38,-0.06 .12,.19 .69,.25 .44,-0.19 .12,.19 .38,0 .44,-0.06 .38,-0.19 .19,-0.12 .19,-0.06 .38,-0.06 .25,.19 .06,-0.19 -0.31,-0.31 -0.25,0 .19,0 .19,.12 -0.31,-0.25 -0.44,0 -0.12,-0.12 -0.38,.12 -0.31,.06 -0.38,.12 -0.12,-0.12 -0.31,-0.06 -0.31,0 -0.31,0 0,-0.31 -0.25,-0.19 -0.31,-0.06 -0.38,.06 -0.12,-0.25 -0.44,-0.38 -0.31,0 .12,-0.19 -0.25,-0.38 -0.25,-0.12 .06,-0.25 -0.25,-0.44 -0.25,-0.19 -0.06,-0.57 -0.31,-0.50 .06,-0.63 -0.12,-0.57 L 21.77,13.01 21.33,11.80 20.75,11.17 20.18,10.66 18.28,9.58 17.52,9.39 16.95,9.33 16.31,9.27 Z m -7.93,10.78 0,0 0,.06 0,-0.06 0,0 z" id="ytp-svg-40" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-40" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-40" /></svg>');
this.$=a;this.P=b;this.F=[];this.G=[];this.A=this.J=!1;this.L=new Wd(this.M,500,this);I(this,this.L);for(var c=a.W().experiments.A("april_fools_360_video_id_list").split(","),d=0;d<c.length;d++){var e=c[d].split(":");this.F.push(e[0]);this.G.push(e[1])}this.K(0,!0);this.H();this.M();this.T(a,"videoplayerreset",this.K);this.T(a,"resize",this.H);this.T(a,"videodatachange",this.H);this.T(a,"presentingplayerstatechange",this.H);this.R("click",this.O);Lb(this,a6(b.A,this.element))},b7=function(a){R.call(this,
["div",
"ytp-storyboard-framepreview",["div","ytp-storyboard-framepreview-img"]]);this.K=this.sa["ytp-storyboard-framepreview-img"];this.A=a;this.J=this.F=null;this.H=window.NaN;this.D=new Dr(this);this.G=new yr(this,100);this.T(a,"beginseeking",this.dH)},d7=function(a,b){var c=!!a.F;
a.F=b&&Qx(b);a.J=b&&Rx(b);a.F?(c||(a.D.T(a.A,"videodatachange",a.hH),a.D.T(a.A,"progresssync",a.fH),a.D.T(a.A,"resize",a.cH),a.D.T(a.A,"presentingplayerstatechange",a.gH),a.D.T(a.A,"endseeking",a.eH)),a.H=window.NaN,c7(a),a.G.show(!1,200)):(c&&Fr(a.D),a.G.ka(),a.G.stop())},c7=function(a){var b=a.A.getCurrentTime(),c=DF(a.A).Ma(),d=Vu(a.F,c.width),b=a.F.o[d].ek(b);
b!=a.H&&(a.H=b,Zu(a.J,b,c.width),b=Xu(a.J,b,c.width),m2(a.K,b,c.width,c.height))},f7=function(a,b){R.call(this,["button",
["ytp-fullscreen-button","ytp-button"],{title:"{{title}}"}]);this.D=a;this.G=b;this.A=null;this.F=a6(b.A,this.element);this.T(a,"fullscreentoggled",this.Vr);this.T(a,"presentingplayerstatechange",this.gu);this.R("click",this.iH);var c;c=Bh("fullscreenerror",window.document);"msfullscreenerror"==c&&(c="MSFullscreenError");c&&this.T(window.document,c,this.kB);a.W().Sa||e7(this);this.gu();this.Vr(a.Pa())},e7=function(a){if(!a.A){var b=Q(void 0!=Ah(["requestFullscreen",
"requestFullScreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.A=new b6(["div",["ytp-popup","ytp-fullscreen-message"],b[0],["a",{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},b[2]],b[4]],100,!0);I(a,a.A);a.A.o(a.D.Da());a.element.setAttribute("aria-disabled",!0);a.F();a.F=null}},g7=function(a,b,c){var d=["button",
["ytp-multicam-button","ytp-button"],{title:Q("YTP_SWITCH_CAMERA"),"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"}];R.call(this,d);Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-switch-camera"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M 26,10 H 22.83 L 21,8 h -6 l -1.83,2 H 10 c -1.1,0 -2,.9 -2,2 v 12 c 0,1.1 .9,2 2,2 h 16 c 1.1,0 2,-0.9 2,-2 V 12 c 0,-1.1 -0.9,-2 -2,-2 z M 21,21.5 V 19 h -6 v 2.5 L 11.5,18 15,14.5 V 17 h 6 V 14.5 L 24.5,18 21,21.5 z" id="ytp-svg-45" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-45" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-45" /></svg>');
this.D=a;this.A=!1;this.F=b.A;this.H=new Wd(this.J,0,this);I(this,this.H);this.R("click",c);this.T(a,"presentingplayerstatechange",qa(this.G,!1));this.T(a,"videodatachange",this.K);this.G(!0);Lb(this,a6(this.F,this.element))},h7=function(a,b){this.F=new Dr(this);
I(this,this.F);var c=["div","ytp-multicam-menu",{role:"dialog"},["div","ytp-multicam-menu-header",["div","ytp-multicam-menu-title",Q("YTP_SWITCH_CAMERA"),["button",["ytp-multicam-menu-close","ytp-button"],{"aria-label":Q("YTP_CLOSE")}]]],["div","ytp-multicam-menu-items"]];b6.call(this,c,250);c=this.sa["ytp-multicam-menu-close"];Kf(c,Qf());this.T(c,"click",b);this.A=a;this.G=this.sa["ytp-multicam-menu-items"];this.D=[];this.H=b},i7=function(a,b,c,d,e,f,k,m){this.B=a;
this.G=b;this.o=c;this.D=d;this.A=e;this.F=f;this.C=k;this.H=m},j7=function(){this.B=null;
this.D=this.o=0;this.C=new uA(this.A,null,this);I(this,this.C)},n7=function(a,b,c){var d=window.document.createElement("span");
Kf(d,c);c=d.getElementsByTagName("path")[0].getAttribute("d");var e=b.getElementsByTagName("path")[0];b=e.getAttribute("d");var f=k7(b),k=k7(c);l7(a,function(a){e.setAttribute("d",m7(f,k,a))},200)},l7=function(a,b,c){a.B=b;
a.D=Qt();a.o=c;a.A()},k7=function(a){var b=[];
a=a.match(Hia);for(var c=0;c<a.length;c++){var d=(0,window.parseFloat)(a[c]);b.push((0,window.isNaN)(d)?a[c]:d)}return b},m7=function(a,b,c){var d,e="";
for(d=0;d<a.length;d++)var f=a[d],e=ga(f)?e+(f+(b[d]-f)*c):e+f;return e},p7=function(a,b){R.call(this,["button",
["ytp-mute-button","ytp-button"],{title:"{{title}}"}]);Kf(this.element,Vf());this.A=a;this.O=b.A;this.D=this.F=window.NaN;this.A.W().S||(this.G=this.element.getElementsByTagName("path")[0],this.K=this.element.getElementsByTagName("svg")[1],this.M=this.G.getAttribute("d"));this.H=new j7;I(this,this.H);this.R("click",this.L);this.T(a,"resize",this.J);this.T(a,"onVolumeChange",this.S);Lb(this,a6(b.A,this.element));this.J(DF(a).Ma());o7(this,a.Fb(),a.Fc())},o7=function(a,b,c){b=c?0:b/100;
if(a.A.W().S)b=0==b?Vf():0<b&&.5>b?'<div class="ytp-icon ytp-icon-volume-low"></div>':'<div class="ytp-icon ytp-icon-volume-high"></div>',b!=a.P&&(Kf(a.element,b),a.P=b);else if(b=b?.5*Math.ceil(b/.5):-.5,a.D!=b){var d=a.F;(0,window.isNaN)(d)?q7(a,b):l7(a.H,y(function(a){q7(this,d+(this.D-d)*a)},a),250);
a.D=b}a.B("title",c?Q("YTP_UNMUTE"):Q("YTP_MUTE"));r7(a.O)},q7=function(a,b){a.F=b;
var c=a.M,d=le(2*b,0,1);d&&(c+=" "+m7(Iia,Jia,d),(d=le(2*(b-.5),0,1))&&(c+=" "+m7(Kia,Lia,d)));a.G.setAttribute("d",c);a.K.style.opacity=Math.max(b/-.5,0)},s7=function(a,b){var c=["button",
["ytp-pip-button","ytp-button"],{title:Q("YTP_PIP")}];R.call(this,c);Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-pip"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="m 25,17 h -8 v 6 h 8 v -6 z m 4,8 V 10.98 C 29,9.88 28.1,9 27,9 H 9 C 7.9,9 7,9.88 7,10.98 V 25 c 0,1.1 .9,2 2,2 h 18 c 1.1,0 2,-0.9 2,-2 z m -2,.02 H 9 V 10.97 h 18 v 14.05 z" id="ytp-svg-32" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-32" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-32" /></svg>');
this.A=a;this.R("click",this.D);Lb(this,a6(b.A,this.element))},u7=function(a,b){R.call(this,["button",
["ytp-play-button","ytp-button"],{title:"{{title}}","aria-label":"{{label}}"}]);this.A=a;this.D=null;this.G=b.A;this.F=null;this.H=new j7;I(this,this.H);this.T(a,"fullscreentoggled",this.J);this.T(a,"presentingplayerstatechange",this.K);this.T(a,"videodatachange",this.J);t7(this,fA(a));this.R("click",this.L,this)},v7=function(a){switch(a){case 1:return Lf?'<div class="ytp-icon ytp-icon-play"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M11,10 L18,13.74 18,22.28 11,26 Z M18,13.74 L26,18 26,18 18,22.28 Z" id="ytp-svg-33" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-33" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-33" /></svg>';
case 2:return Lf?'<div class="ytp-icon ytp-icon-pause"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M11,10 L17,10 17,26 11,26 Z M20,10 L26,10 26,26 20,26 Z" id="ytp-svg-31" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-31" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-31" /></svg>';case 3:return Sf();case 4:return Lf?'<div class="ytp-icon ytp-icon-stop"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M10,10 L18,10 18,26 10,26 Z M18,10 L26,10 26,26 18,26 Z" id="ytp-svg-43" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-43" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-43" /></svg>'}},
t7=function(a,b){var c,d=Xx(a.A.getVideoData()),e=!1;
iz(b)?c=d?4:2:T(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.D!=c){var f;switch(c){case 2:f=Q("YTP_PAUSE");break;case 3:f=Q("YTP_REPLAY");break;case 1:f=Q("YTP_PLAY");break;case 4:f=Q("YTP_STOP")}3==c?(a.F||(a.F=a6(a.G,a.element)),Kf(a.element,v7(c)),a.update({title:f,label:null})):(a.F&&(a.F(),a.F=null),a.update({title:null,label:f}),d=v7(c),a.D&&3!=a.D&&!a.A.W().S?n7(a.H,a.element,d):Kf(a.element,d));r7(a.G);a.D=c}},w7=function(a,b,c){var d,e;
c?(d="ytp-next-button",e=Lf?'<div class="ytp-icon ytp-icon-next"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M16.2,12.5 L16.2,16.49 L9,12.5 L9,23.5 L16.2,19.50 L16.2,23.5 L24.5,19.1 L24.5,23.5 L27,23.5 L27,12.5 L24.5,12.5 L24.5,17.45 L16.2,12.5 Z" id="ytp-svg-30" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-30" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-30" /></svg>'):(d="ytp-prev-button",e=
Lf?'<div class="ytp-icon ytp-icon-prev"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M19.8,12.5 L19.8,16.49 L27,12.5 L27,23.5 L19.8,19.50 L19.8,23.5 L11.5,19.1 L11.5,23.5 L9,23.5 L9,12.5 L11.5,12.5 L11.5,17.45 L19.8,12.5 Z" id="ytp-svg-35" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-35" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-35" /></svg>');R.call(this,["a",[d,"ytp-button"],{title:"{{title}}",
href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"}]);Kf(this.element,e);this.A=a;this.P=b.A;this.F=c;this.D=this.K=null;this.M=!1;this.J=this.L=this.G=null;this.H=!1;this.T(a,"fullscreentoggled",this.Hg);this.T(a,"videodatachange",this.Hg);this.T(a,"onPlaylistUpdate",this.Hg);this.F||this.T(a,"resize",this.hu);this.Hg()},x7=function(a){a.D&&a.D.Ia("shuffle",a.Hg,a)},
y7=function(a){return!!a.D&&!a.F&&3<=a.A.getCurrentTime()&&2!=a.A.getPresentingPlayerType()},z7=function(a){var b={duration:null,
preview:null,text:null,title:null,url:null},c=a.A.W(),d=EM(a.A),e=a.F&&Jy(a.A);if(a.H)b.title=Q("YTP_REPLAY");else if(d){var f=null;a.D&&(f=a.D.yb(a.F?iy(a.D):jy(a.D)));if(f){if(f.videoId){var k=a.D.D;b.url=c.getVideoUrl(f.videoId,k?k.toString():void 0)}b.text=f.title;b.duration=f.lengthSeconds?ny(f.lengthSeconds):null;b.preview=f.hc(c,"default.jpg")}b.title=Q(a.F?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.K.K&&a.K.K.length&&(f=py(a.K.K[0]),b.url=f.kl(c),b.text=f.title,b.duration=f instanceof rx?ny(f.lengthSeconds):
null,b.preview=f.hc(c,"default.jpg")),b.title=Q("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.M=!!b.url;e||d||a.H?a.G||(a.G=a6(a.P,a.element),a.L=a.R("click",a.lH,a)):a.G&&(a.G(),a.G=null,a.za(a.L),a.L=null);r7(a.P)},D7=function(a,b){var c=["div",
"ytp-progress-bar-container",{"aria-disabled":!0},["div","ytp-progress-bar",{tabindex:0,role:"slider","aria-label":Q("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div",["ytp-play-progress","ytp-swatch-background-color"]],["div","ytp-load-progress"],["div","ytp-hover-progress"],["div","ytp-clip-start-exclude"],["div","ytp-clip-end-exclude"],
["div","ytp-ad-progress-list"],["div","ytp-marker-crenellation-list"],["div","ytp-marker-progress-list"]],["div",["ytp-scrubber-button","ytp-swatch-background-color"],["div","ytp-scrubber-pull-indicator"]]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div","ytp-clip-start",{title:Q("YTP_WATCH_ALL")}],["div","ytp-clip-end",{title:Q("YTP_WATCH_ALL")}]];Oq.call(this,c);this.D=a;this.Ja=b.A;this.na=!1;this.G=this.bb=0;this.fa=1;this.qb=this.K=
0;this.H=window.NaN;this.Sa=!1;this.O=this.ea=0;this.wb=this.sa["ytp-ad-progress-list"];this.xb=this.sa["ytp-marker-progress-list"];this.Na=this.sa["ytp-marker-crenellation-list"];this.da={};this.la={};this.S=window.Infinity;c=b.A;this.M=this.sa["ytp-clip-end"];Kf(this.M,Of());Lb(this,a6(c,this.M));this.ua=new e2(this.M,!0);I(this,this.ua);this.ua.subscribe("hoverstart",this.ku,this);this.ua.subscribe("hoverend",this.ju,this);this.T(this.M,"click",this.gk);this.Ka=this.sa["ytp-clip-end-exclude"];
this.Pb=this.sa["ytp-clip-start-exclude"];this.ca=0;this.P=this.sa["ytp-clip-start"];Kf(this.P,Pf());Lb(this,a6(c,this.P));this.ra=new e2(this.P,!0);I(this,this.ra);this.ra.subscribe("hoverstart",this.ku,this);this.ra.subscribe("hoverend",this.ju,this);this.T(this.P,"click",this.gk);this.ab=this.sa["ytp-load-progress"];this.ia=0;this.Qb=this.sa["ytp-play-progress"];this.ha=this.sa["ytp-hover-progress"];this.J=0;this.kb=this.sa["ytp-progress-bar"];this.F=null;this.Fa=this.sa["ytp-scrubber-button"];
this.Ca=new re;this.Ta=new l2;this.A=new h2(0,0);this.L=this.Ga=!1;this.Wa=null;this.T(a,"presentingplayerstatechange",this.oH);this.T(a,"videodatachange",this.iu);this.T(a,"videoplayerreset",this.Sx);this.T(a,"cuerangesadded",this.nu);this.T(a,"cuerangesremoved",this.wH);this.T(a,"cuerangemarkersupdated",this.nu);this.T(a,"onPlaybackQualityChange",this.pH);C7(this,a.getVideoData(),!0)},H7=function(a){if(a.G){var b=a.D.jf(),c=new h2(b.seekableStart,b.seekableEnd),d=k2(c,b.loaded,0),b=k2(c,b.current,
0),e=a.A.A!=c.A||a.A.o!=c.o;
a.A=c;E7(a,b,d);e&&F7(a);G7(a)}},C7=function(a,b,c){var d=!!b&&Tx(b);
a.Ga=d&&b.$d;I7(a,PM(a.D));c&&(d?(c=b.clipEnd,a.ca=b.clipStart,a.S=c,J7(a),E7(a,a.J,a.ia)):a.gk(),b=a.Ja,1==b.A&&b.Ac());H7(a)},K7=function(a){return!!a&&Tx(a)&&!!a.B&&a.B.video.o},L7=function(a,b){a.Sa=b;
M(a.ab,"ytp-fast-load",b)},M7=function(a,b,c,d){b=le(b,0,a.L?60:40);
a.K=b;var e=a.fa;a.fa=b/(a.L?60:40)*(Math.max(i2(a.A)/a.G,1)-1)+1;b=a.G*a.fa;a.O=le(d*b-c,0,b-a.G);e!=a.fa&&F7(a)},F7=function(a){var b=N7(a),c=-b.B/b.o,d=(-b.B+b.width)/b.o,e=gh(a.Na),f=0;
if(a.K>.2*(a.L?60:40))for(var k=i2(a.A)/60*d,m=Math.ceil(i2(a.A)/60*c);m<k;m++){var l=e[f];l||(l=window.document.createElement("div"),a.Na.appendChild(l));f++;l.className=0==m%60?"ytp-60m-progress":0==m%30?"ytp-30m-progress":0==m%15?"ytp-15m-progress":"ytp-1m-progress";l.style.left=(60*m/i2(a.A)-c)*b.o+"px"}b=a.Ga?a.A.o:0;a.update({boundTimeLeft:ny(j2(a.A,c)-b),boundTimeRight:ny(j2(a.A,d)-b)});for(c=e.length-1;c>=f;c--)dh(e[c]);a.element.style.height=a.K+(a.L?8:5)+"px";a.U("height-change",a.K);a.Fa.style.height=
a.K+(a.L?20:13)+"px";for(var n in a.da)O7(a,a.da[n],a.la[n]);J7(a);E7(a,a.J,a.ia)},N7=function(a){var b=a.Ca.x,c=a.G*a.fa,b=le(b,0,a.G);
a.Ta.update(b,a.G,-a.O,-(c-a.O-a.G));return a.Ta},E7=function(a,b,c){a.J=b;
a.ia=c;var d=N7(a),e=a.A.o,f=j2(a.A,a.J);a.update({ariamin:Math.floor(a.A.A),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:Q("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:ny(f),DURATION:ny(e)})});var e=k2(a.A,a.ca,0),k=k2(a.A,a.S,1),f=le(b,e,k);c=a.Sa?1:le(c,e,k);k=b*d.o+d.B;a.Fa.style.display=0<=k&&b<=d.width?"":"none";a.Fa.style.left=k+"px";P7(a,a.Qb,d,e,f);P7(a,a.ab,d,e,c)},P7=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.o+c.B,0)+"px";
d=Math.min((e-d)*c.o+c.B,c.width);f||a.D.W().isMobile?(b.style.width=d+"px",Wq(b,"transform")):Uq(b,"transform","scalex("+(c.width?d/c.width:0)+")")},J7=function(a){var b=a.ca>a.A.A,c=0<a.A.o&&a.S<a.A.o;
M(a.element,"ytp-clip-start-enabled",b);M(a.element,"ytp-clip-end-enabled",c);b=b?k2(a.A,a.ca,0):0;c=c?k2(a.A,a.S,1):1;a.P.style.left=Math.round(1E3*b)/10+"%";a.M.style.left=Math.round(1E3*c)/10+"%";a.Pb.style.width=Math.round(1E3*b)/10+"%";a.Ka.style.left=Math.round(1E3*c)/10+"%";a.Ka.style.width=Math.round(1E3*(1-c))/10+"%"},G7=function(a){var b=N7(a);
P7(a,a.ha,b,a.J,b.A);M(a.ha,"ytp-hover-progress-light",b.A>a.J)},O7=function(a,b,c){var d=N7(a),e=k2(a.A,b.start/1E3,0),f;
a:{switch(b.style){case "ytp-chapter-marker":f=8;break a;case "ytp-ad-progress":f=6;break a;case "ytp-time-marker":f=Number.POSITIVE_INFINITY;break a}f=void 0}var k=f/d.width;switch(b.style){case "ytp-chapter-marker":f=e+k/2;e-=k/2;break;default:f=k2(a.A,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=le(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}P7(a,c,d,e,f,!0);c.className=b.style},Q7=function(a,b){var c=b.getId();
a.da[c]==b&&(dh(a.la[c]),delete a.da[c],delete a.la[c])},I7=function(a,b){b?a.F||(a.element.removeAttribute("aria-disabled"),a.F=new e2(a.kb,!0),a.F.subscribe("hovermove",a.tH,a),a.F.subscribe("hoverend",a.sH,a),a.F.subscribe("dragstart",a.rH,a),a.F.subscribe("dragmove",a.vH,a),a.F.subscribe("dragend",a.uH,a),a.Wa=a.R("keydown",a.qH)):a.F&&(a.element.setAttribute("aria-disabled",!0),a.za(a.Wa),a.F.cancel(),a.F.dispose(),a.F=null)},S7=function(a){R.call(this,["div",
"ytp-remote",["div","ytp-remote-display-status",["div","ytp-remote-display-status-icon"],["div","ytp-remote-display-status-text","{{statustext}}"],["div","ytp-remote-display-status-receiver","{{receiver}}"]]]);this.A=new yr(this,250);I(this,this.A);this.D=a;Kf(this.sa["ytp-remote-display-status-icon"],Mf());this.T(a,"presentingplayerstatechange",this.F);R7(this,fA(a))},R7=function(a,b){if(3==a.D.getPresentingPlayerType()){var c;
c=T(b,128)?Q("YTP_MDX_PLAYER_ERROR"):Q("YTP_MDX_STATUS_CONNECTED");var d=a.D.Ab("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.A.show()}else a.A.ka()},T7=function(a,b,c){var d=["button",
["ytp-remote-button","ytp-button"],{title:Q("YTP_MDX_TOOLTIP")}];R.call(this,d);this.$=a;this.G=c;this.D=null;this.T(a,"onMdxReceiversChange",this.A);this.T(a,"presentingplayerstatechange",this.A);this.T(a,"resize",this.A);this.A();this.R("click",this.F,this);Lb(this,a6(b.A,this.element))},U7=function(a,b){s6.call(this,Q("YTP_ANNOTATIONS"),5);
this.G=b;this.$=a;this.D=!1;this.T(a,"videodatachange",this.F);this.T(a,"onApiChange",this.F);this.subscribe("select",this.H,this);this.F()},V7=function(a,b,c,d,e){var f=o6({"aria-haspopup":!0});
n6.call(this,f,b,a);this.A=d;this.K=null;this.D={};this.H=new k6;I(this,this.H);this.P=new p6(c,this.H,a,e);I(this,this.P);this.R("keydown",this.xH);this.R("click",this.open)},W7=function(a,b){a.H.removeAll();
for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.D[f],m=f==a.K;m&&(d=!0);if(k&&k.priority==-e){var m=a,l=f;m6(m.D[l],m.Ic(l,!0));delete a.D[f]}else k=new n6(["div","ytp-menuitem",{tabindex:0,role:"menuitemradio","aria-checked":m?!0:null},["div","ytp-menuitem-label","{{label}}"]],-e,a.Ic(f,!0)),k.R("click",y(a.TB,a,f));c[f]=k;l6(a.H,k,!0)}d||(a.K=null);for(f in a.D)a.D[f].dispose();a.D=c},X7=function(a,b){V7.call(this,Q("YTP_AUDIO_TRACK_TITLE"),2,a,b);
this.$=a;this.L=new R(["div","",["span","",Q("YTP_AUDIO_TRACK_TITLE")],["span","ytp-menuitem-label-count","{{content}}"]]);m6(this,this.L);this.M={};this.F=!1;this.T(a,"videodatachange",this.J);this.T(a,"onPlaybackAudioChange",this.J);this.J()},Y7=function(a,b){s6.call(this,Q("YTP_AUTOPLAY"),6);
this.J=b;this.$=a;this.G=!1;this.D=[];this.T(a,"presentingplayerstatechange",this.F);this.subscribe("select",this.K,this);this.F()},Z7=function(a,b){V7.call(this,Q("YTP_QUALITY_TITLE"),1,a,b);
L(this.H.element,"ytp-quality-menu");this.$=a;this.M={};this.L="unknown";this.F=!1;this.T(a,"videodatachange",this.G);this.T(a,"videoplayerreset",this.G);this.T(a,"onPlaybackQualityChange",this.J);this.G()},$7=function(a,b,c){var d=(a=a.M[b])?a.qualityLabel:(d=Wr[b])?d+"p":Q("YTP_AUTO");
c=["span",c,d];var e;a&&a.o?c.push(["div","ytp-menuitem-badge-container",{child:new J5('<svg fill="#00838f" height="11px" viewBox="0 0 48 48" width="11px"><path d="M0 0v48h48V0H0zm10.6 30.64L4 24.05l6.69-6.69 6.6 6.59-6.69 6.69zM24 44l-6.7-6.7 13.35-13.35-13.32-13.28L24 4l20 20-20 20z" /><path d="M 24,44 44,24 24,4 17.33,10.67 30.65,23.95 17.3,37.3 z M 10.6,30.64 17.29,23.95 10.69,17.36 4,24.05 z" fill="#fff" /></svg>')}]):"highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":0==b.indexOf("hd")&&
(e="HD");e&&(c.push(" "),c.push(["sup","ytp-swatch-color",e]));return c},a8=function(a,b){V7.call(this,Q("YTP_MDX_TITLE"),0,a,b);
this.$=a;this.F=!1;this.L={};this.T(a,"onMdxReceiversChange",this.J);this.T(a,"presentingplayerstatechange",this.J);this.J()},b8=function(a,b){V7.call(this,Q("YTP_SPEED_TITLE"),4,a,b);
this.$=a;this.F=!1;this.G=null;this.T(a,"presentingplayerstatechange",this.pu);this.pu()},d8=function(a,b,c,d){V7.call(this,c8(d),a,b,c);
L(this.element,"ytp-subtitles-options-menu-item");this.J=d.option.toString();this.F=Ib(d.options,this.G,this);W7(this,ji(d.options,this.G))},c8=function(a){return(a.message?Q(a.message):a.text)||""},e8=function(a,b){this.J={};
this.A=new k6;for(var c=0;c<D6.length;c++){var d=D6[c],e=new d8(-c,a,b,d);I(this,e);e.subscribe("settingChange",this.K,this);this.J[d.option.toString()]=e;l6(this.A,e,!0)}c=new n6(o6(),-D6.length,Q("YTP_RESET"));I(this,c);c.R("click",y(this.K,this,"reset",!0));l6(this.A,c,!0);p6.call(this,a,this.A,Q("YTP_OPTIONS"))},f8=function(a,b){for(var c in b){var d=a.J[c];
if(d){var e=b[c].toString();d.D[e]&&d.Xc(e)}}},g8=function(a,b){V7.call(this,Q("YTP_AUTO_TRANSLATE"),0,a,b);
this.F={}},h8=function(a,b){V7.call(this,Q("YTP_SUBTITLES"),3,a,b,y(this.XD,this));
this.$=a;this.M=!1;this.F={};this.L=new R(["div","",["span","",Q("YTP_SUBTITLES")],["span","ytp-menuitem-label-count","{{content}}"]]);I(this,this.L);m6(this,this.L);this.J=new g8(a,b);I(this,this.J);this.J.subscribe("select",this.RC,this);this.G=new e8(a,b);I(this,this.G);this.G.subscribe("settingChange",this.IH,this);this.T(a,"videodatachange",this.Ph);this.T(a,"onApiChange",this.Ph);this.T(a,"onCaptionsTrackListChanged",this.Ph);this.T(a,"captionschanged",this.Ph);this.Ph()},k8=function(a){a.fontFamily=
i8.indexOf(a.fontFamilyOption);
a.charEdgeStyle=j8.indexOf(a.charEdgeStyle)},l8=function(a,b){V7.call(this,Q("YTP_THREED_SHORT"),7,a,b);
this.$=a;this.F=!1;this.T(a,"videodatachange",this.J);this.G=null;this.J()},m8=function(a){this.A=a;
this.G=new k6("ytp-main-menu-id");I(this,this.G);a=new p6(a,this.G);I(this,a);f6.call(this,a,"ytp-settings-menu");this.M=this.J=null;this.P=!1},o8=function(a){if(!a.P){a.P=!0;
var b=new Z7(a.A,a);I(a,b);b=new h8(a.A,a);I(a,b);b=new U7(a.A,a);I(a,b);a.A.W().da&&(b=new b8(a.A,a),I(a,b));b=new l8(a.A,a);I(a,b);a.A.W().ab&&(b=new Y7(a.A,a),I(a,b));b=new X7(a.A,a);I(a,b);a.A.W().C&&(a.M=new a8(a.A,a),I(a,a.M));n8(a.J,a.G.A.length)}},p8=function(a,b){l6(a.G,b);
n8(a.J,a.G.A.length)},q8=function(a,b){a.C&&1>=a.G.A.length&&a.ka();
a.G.remove(b);n8(a.J,a.G.A.length)},r8=function(a,b,c){var d=["button",
["ytp-button","ytp-settings-button"],{"aria-haspopup":!0,"aria-expanded":"{{pressed}}","aria-owns":"ytp-main-menu-id",title:Q("YTP_SETTINGS")}];R.call(this,d);Kf(this.element,Tf());this.D=c;this.D.subscribe("show",this.G,this);this.$=a;this.F=!0;this.R("click",this.J);this.T(this.$,"onPlaybackQualityChange",this.A);this.T(a,"videodatachange",this.A);this.T(a,"webglsettingschanged",this.A);this.T(a,"resize",this.H);Lb(this,a6(b.A,this.element));this.A();this.G(!1)},n8=function(a,b){a.F=!!b;
a.H(DF(a.$).Ma())},s8=function(a,b){R.call(this,["button",
["ytp-size-button","ytp-button"],{title:"{{title}}"}]);this.A=a;this.G=b.A;this.F=null;this.H=new j7;I(this,this.H);this.T(a,"sizestylechange",this.D);this.T(a,"fullscreentoggled",this.D);this.T(a,"presentingplayerstatechange",this.D);this.D();this.R("click",this.J);Lb(this,a6(this.G,this.element))},u8=function(a,b){var c=["button",
["ytp-subtitles-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:Q("YTP_SUBTITLES_TOOLTIP")}];R.call(this,c);this.A=a;c=this.A.W().Y;-1!=t8.indexOf(c)?Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-closed-captioning"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M9,24 L27,24 L27,12 L9,12 L9,24 Z M17.05,19.50 C16.91,19.79 16.72,20.04 16.49,20.24 C16.26,20.44 15.99,20.60 15.69,20.70 C15.38,20.81 15.04,20.86 14.67,20.86 C14.21,20.86 13.79,20.79 13.43,20.64 C13.06,20.48 12.75,20.27 12.5,20.01 C12.24,19.74 12.05,19.42 11.91,19.06 C11.78,18.70 11.71,18.31 11.71,17.89 C11.71,17.47 11.78,17.07 11.91,16.70 C12.05,16.34 12.24,16.02 12.5,15.74 C12.75,15.47 13.06,15.26 13.43,15.10 C13.79,14.95 14.21,14.87 14.67,14.87 C15.00,14.87 15.31,14.91 15.61,15.01 C15.90,15.10 16.16,15.23 16.40,15.40 C16.63,15.58 16.82,15.79 16.97,16.05 C17.13,16.31 17.22,16.60 17.26,16.93 L15.98,16.93 C15.96,16.79 15.91,16.66 15.83,16.54 C15.75,16.41 15.65,16.31 15.53,16.22 C15.42,16.13 15.28,16.06 15.14,16.01 C14.98,15.95 14.83,15.93 14.67,15.93 C14.37,15.93 14.12,15.98 13.91,16.09 C13.70,16.20 13.53,16.35 13.40,16.54 C13.27,16.72 13.18,16.93 13.12,17.17 C13.06,17.40 13.03,17.64 13.03,17.89 C13.03,18.14 13.06,18.37 13.12,18.60 C13.18,18.82 13.27,19.03 13.40,19.21 C13.53,19.39 13.70,19.54 13.91,19.65 C14.12,19.76 14.37,19.81 14.67,19.81 C15.07,19.81 15.39,19.70 15.61,19.46 C15.84,19.22 15.98,18.91 16.03,18.53 L17.31,18.53 C17.28,18.89 17.19,19.21 17.05,19.50 L17.05,19.50 Z M24.04,19.51 C23.90,19.80 23.72,20.04 23.49,20.24 C23.26,20.45 22.99,20.60 22.68,20.71 C22.37,20.82 22.03,20.87 21.66,20.87 C21.20,20.87 20.79,20.80 20.42,20.64 C20.05,20.49 19.74,20.28 19.49,20.01 C19.24,19.75 19.04,19.43 18.91,19.07 C18.77,18.71 18.70,18.32 18.70,17.90 C18.70,17.47 18.77,17.08 18.91,16.71 C19.04,16.34 19.24,16.02 19.49,15.75 C19.74,15.48 20.05,15.26 20.42,15.11 C20.79,14.95 21.20,14.88 21.66,14.88 C21.99,14.88 22.30,14.92 22.60,15.01 C22.89,15.10 23.16,15.24 23.39,15.41 C23.62,15.58 23.82,15.80 23.97,16.06 C24.12,16.31 24.21,16.61 24.25,16.94 L22.97,16.94 C22.95,16.79 22.90,16.66 22.82,16.54 C22.74,16.42 22.65,16.32 22.53,16.22 C22.41,16.13 22.27,16.06 22.13,16.01 C21.98,15.96 21.82,15.94 21.66,15.94 C21.36,15.94 21.11,15.99 20.90,16.10 C20.7,16.21 20.53,16.36 20.40,16.54 C20.27,16.73 20.17,16.94 20.11,17.17 C20.06,17.41 20.03,17.65 20.03,17.90 C20.03,18.14 20.06,18.38 20.11,18.60 C20.17,18.83 20.27,19.04 20.40,19.22 C20.53,19.40 20.7,19.55 20.90,19.66 C21.11,19.76 21.36,19.82 21.66,19.82 C22.06,19.82 22.38,19.70 22.61,19.47 C22.84,19.23 22.97,18.92 23.02,18.54 L24.30,18.54 C24.27,18.89 24.18,19.22 24.04,19.51 L24.04,19.51 Z" id="ytp-svg-7" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-7" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-7" /></svg>'):
Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-subtitles"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M25,19 L25,18 L11,18 L11,19 L25,19 Z M24,21 L24,22 L12,22 L12,21 L24,21 Z M27,12 L27,24 L9,24 L9,12 L27,12 Z" fill-rule="evenodd" id="ytp-svg-44" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-44" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-44" /></svg>');this.T(a,"videodatachange",this.D);
this.T(a,"resize",this.D);this.T(a,"onApiChange",this.D);this.T(a,"onCaptionsTrackListChanged",this.D);this.T(a,"captionschanged",this.D);this.D();this.R("click",this.F);Lb(this,a6(b.A,this.element))},v8=function(a,b){R.call(this,["div",
["ytp-time-display","notranslate"],["span","ytp-time-current","{{currenttime}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"]]);this.G=new R(["button",["ytp-live-badge","ytp-button"],{disabled:!0},Q("YTP_LIVE")]);I(this,this.G);this.G.o(this.element);this.A=a;this.L=b.A;this.D=null;this.H=this.F=!1;this.K=this.J=null;this.R("click",this.JH);this.T(a,"presentingplayerstatechange",this.Ig);this.T(a,"resize",this.Ig);this.T(a,"liveviewshift",this.KH);this.T(a,"videodatachange",
this.LH);var c=a.getVideoData();c&&(this.F=c.Ha,M(this.element,"ytp-live",this.F));this.Ig()},x8=function(a,b,c){R.call(this,["div",
"ytp-volume-panel",{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},["div","ytp-volume-slider",["div","ytp-volume-slider-handle"]]]);this.A=a;this.H=b;this.O=c;this.L=this.M=!1;this.Y=this.J=0;this.S=this.sa["ytp-volume-slider"];this.ca=this.sa["ytp-volume-slider-handle"];this.K=new e2(this.S,!0);I(this,this.K);this.K.subscribe("dragstart",this.HC,this);this.K.subscribe("dragmove",this.GC,this);this.K.subscribe("dragend",
this.FC,this);this.P=null;this.D=this.G=this.F=!1;this.T(a,"onVolumeChange",this.OH);this.T(a,"resize",this.uu);this.T(a,"onShowControls",this.Do);this.T(a,"onHideControls",this.Do);this.T(this.element,"keydown",this.IC);this.T(this.element,"focus",qa(this.tu,!0));this.T(this.element,"blur",qa(this.tu,!1));this.uu(DF(a).Ma());this.L=FF(b);w8(this,this.A.Fb(),this.A.Fc())},w8=function(a,b,c){var d=Math.round(b),e=d+"% "+Q("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+Q("YTP_SCREENREADER_VOLUME_MUTED"):
"");
c=c?0:b/100;a.B("valuenow",d);a.B("valuetext",e);a.ca.style.left=(a.L?72:48)*c+"px";a.J=b},y8=function(a,b,c,d,e){var f=a.G||a.F||a.D||a.M;
a.G=b;a.F=c;a.D=d;a.M=e;b=a.G||a.F||a.D||a.M;f!=b&&(b?a.P=a.T(a.element,"mousewheel",a.NH):(a.za(a.P),a.P=null),M(a.O,"ytp-volume-slider-active",b))},z8=function(a,b){var c=a.W();
R.call(this,["a",["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],{href:"{{url}}",target:"_blank",title:Q("YTP_URL_NAVIGATE_TO",{WEBSITE:jJ(c)}),"data-sessionlink":"feature=player-button"}]);"gaming"==c.o?(Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-logo-gaming"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 98 36" width="100%"><defs><path d="M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z" id="ytp-svg-25" /><path d="M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z" id="ytp-svg-26" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-27" /><g id="ytp-svg-28"><path d="M50.85,16.34 C50.14,16.34 49.78,16.77 49.72,17.30 C49.61,18.30 49.61,19.64 49.72,20.65 C49.78,21.18 50.14,21.61 50.85,21.61 C51.55,21.61 52.03,21.21 52.03,20.67 L52.03,20.16 C52.03,20.09 51.98,20.04 51.91,20.04 L51.12,20.04 C50.99,20.04 50.89,19.93 50.89,19.80 L50.89,18.66 C50.89,18.53 50.99,18.42 51.12,18.42 L53.39,18.42 C53.52,18.42 53.63,18.53 53.63,18.66 L53.63,20.67 C53.63,22.11 52.45,23.30 50.85,23.30 C49.25,23.30 48.25,22.09 48.08,20.65 C47.97,19.64 47.97,18.30 48.08,17.30 C48.25,15.86 49.25,14.65 50.85,14.65 C52.46,14.65 53.63,15.79 53.63,17.39 C53.63,17.52 53.52,17.63 53.39,17.63 L52.23,17.63 C52.10,17.63 52.01,17.52 52.00,17.39 C51.95,16.77 51.52,16.34 50.85,16.34" /><path d="M57.57,19.76 C57.55,19.86 57.60,19.90 57.67,19.90 L58.74,19.90 C58.81,19.90 58.85,19.86 58.83,19.76 L58.27,16.89 C58.26,16.85 58.25,16.84 58.21,16.84 L58.19,16.84 C58.16,16.84 58.14,16.85 58.13,16.89 L57.57,19.76 Z M56.80,22.98 C56.78,23.09 56.69,23.16 56.58,23.16 L55.36,23.16 C55.17,23.16 55.10,23.03 55.13,22.93 L57.21,14.96 C57.24,14.85 57.33,14.78 57.43,14.78 L58.99,14.78 C59.10,14.78 59.19,14.85 59.21,14.96 L61.29,22.93 C61.31,23.03 61.24,23.16 61.06,23.16 L59.83,23.16 C59.73,23.16 59.65,23.09 59.61,22.98 L59.25,21.75 C59.23,21.66 59.18,21.57 59.08,21.57 L57.31,21.57 C57.20,21.57 57.15,21.64 57.13,21.75 L56.80,22.98 Z" /><path d="M65.75,17.32 C65.78,17.44 65.92,17.44 65.96,17.32 L66.61,14.99 C66.64,14.84 66.73,14.78 66.85,14.78 L68.46,14.78 C68.59,14.78 68.69,14.89 68.69,15.02 L68.69,22.93 C68.69,23.06 68.59,23.16 68.46,23.16 L67.32,23.16 C67.19,23.16 67.09,23.06 67.09,22.93 L67.09,18.18 C67.09,18.12 67.02,18.11 66.99,18.17 L66.45,19.97 C66.40,20.11 66.33,20.17 66.20,20.17 L65.51,20.17 C65.39,20.17 65.32,20.11 65.27,19.97 L64.71,18.17 C64.69,18.11 64.62,18.12 64.62,18.18 L64.62,22.93 C64.62,23.06 64.51,23.16 64.38,23.16 L63.24,23.16 C63.12,23.16 63.01,23.06 63.01,22.93 L63.01,15.02 C63.01,14.89 63.12,14.78 63.24,14.78 L64.85,14.78 C64.98,14.78 65.06,14.84 65.10,14.99 L65.75,17.32 Z" /><path d="M72.68,16.52 C72.68,16.45 72.63,16.40 72.56,16.40 L71.39,16.40 C71.27,16.40 71.16,16.29 71.16,16.16 L71.16,15.02 C71.16,14.89 71.27,14.78 71.39,14.78 L75.59,14.78 C75.72,14.78 75.82,14.89 75.82,15.02 L75.82,16.16 C75.82,16.29 75.72,16.40 75.59,16.40 L74.42,16.40 C74.35,16.40 74.31,16.45 74.31,16.52 L74.31,21.43 C74.31,21.50 74.35,21.55 74.42,21.55 L75.70,21.55 C75.83,21.55 75.94,21.66 75.94,21.79 L75.94,22.93 C75.94,23.06 75.83,23.16 75.70,23.16 L71.28,23.16 C71.15,23.16 71.05,23.06 71.05,22.93 L71.05,21.79 C71.05,21.66 71.15,21.55 71.28,21.55 L72.56,21.55 C72.63,21.55 72.68,21.50 72.68,21.43 L72.68,16.52 Z" /><path d="M83.53,22.93 C83.53,23.06 83.42,23.16 83.30,23.16 L81.92,23.16 C81.72,23.16 81.64,23.06 81.61,22.96 L80.02,18.76 C80.00,18.69 79.92,18.71 79.92,18.78 L79.92,22.93 C79.92,23.06 79.81,23.16 79.69,23.16 L78.52,23.16 C78.39,23.16 78.29,23.06 78.29,22.93 L78.29,15.02 C78.29,14.89 78.39,14.78 78.52,14.78 L79.91,14.78 C80.08,14.78 80.16,14.89 80.20,15.00 L81.79,19.55 C81.82,19.62 81.90,19.60 81.90,19.52 L81.90,15.02 C81.90,14.89 82.00,14.78 82.13,14.78 L83.30,14.78 C83.42,14.78 83.53,14.89 83.53,15.02 L83.53,22.93 Z" /><path d="M88.59,16.34 C87.88,16.34 87.52,16.77 87.46,17.30 C87.35,18.30 87.35,19.64 87.46,20.65 C87.52,21.18 87.88,21.61 88.59,21.61 C89.29,21.61 89.77,21.21 89.77,20.67 L89.77,20.16 C89.77,20.09 89.72,20.04 89.65,20.04 L88.86,20.04 C88.73,20.04 88.63,19.93 88.63,19.80 L88.63,18.66 C88.63,18.53 88.73,18.42 88.86,18.42 L91.13,18.42 C91.26,18.42 91.37,18.53 91.37,18.66 L91.37,20.67 C91.37,22.11 90.19,23.30 88.59,23.30 C86.99,23.30 85.99,22.09 85.82,20.65 C85.71,19.64 85.71,18.30 85.82,17.30 C85.99,15.86 86.99,14.65 88.59,14.65 C90.20,14.65 91.37,15.79 91.37,17.39 C91.37,17.52 91.26,17.63 91.13,17.63 L89.97,17.63 C89.84,17.63 89.75,17.52 89.74,17.39 C89.69,16.77 89.26,16.34 88.59,16.34" /></g></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-25" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-26" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-27" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-26" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-28" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-28" /></svg>'),
L(this.element,"ytp-youtube-gaming-button")):Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-logo"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 51 36" width="100%"><defs><path d="M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z" id="ytp-svg-22" /><path d="M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z" id="ytp-svg-23" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-24" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-22" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-23" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-22" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-23" /></svg>');
this.A=a;this.R("click",this.F);this.T(a,"videodatachange",this.D);this.D();Lb(this,a6(b.A,this.element))},A8=function(a,b,c){Dr.call(this);
var d=a.W();this.$=a;this.B=b;this.O=window.NaN;this.P=null;this.S=c;this.S.subscribe("autohideupdate",this.EH,this);c=!qz(fA(a));var e=new R(["div","ytp-gradient-bottom"]);I(this,e);Br(a,e.element,8);this.H=new yr(e,250,c,100);I(this,this.H);this.A=new R(["div","ytp-chrome-bottom",["div","ytp-chrome-controls"]]);I(this,this.A);Br(a,this.A.element,8);this.G=new yr(this.A,250,c,100);I(this,this.G);e=this.A.element.children[0];this.o=new m8(a);I(this,this.o);Br(a,this.o.element,6);this.o.subscribe("show",
this.mE,this);this.o.subscribe("show",b.UD,b);this.F=new D7(a,b);I(this,this.F);this.F.o(this.A.element,0);c=new Y6(a,b);I(this,c);Br(a,c.element,4);this.F.subscribe("height-change",c.bH,c);c=new b7(a);I(this,c);Br(a,c.element,4);c=new Gq(["div","ytp-left-controls"]);I(this,c);c.o(e);var f=new w7(a,b,!1);I(this,f);f.o(c.element);f=new u7(a,b);I(this,f);f.o(c.element);f=new w7(a,b,!0);I(this,f);f.o(c.element);f=new R(["span"]);I(this,f);f.o(c.element);if(d.xb){var k=new p7(a,b);I(this,k);k.o(f.element);
k=new e2(f.element);I(this,k);k.subscribe("hoverstart",this.HH,this);k=new e2(c.element);I(this,k);k.subscribe("hoverend",this.GH,this)}this.C=new x8(a,b,this.A.element);I(this,this.C);this.C.o(f.element);this.M=new v8(a,b);I(this,this.M);this.M.o(c.element);c=new Gq(["div","ytp-right-controls"]);I(this,c);c.o(e);e=new u8(a,b);I(this,e);e.o(c.element);e=a.W().experiments;e.ga("april_fools_enabled")&&e.ga("april_fools_watch_player_button_enabled")&&(e=new a7(a,b),I(this,e),e.o(c.element));e=new r8(a,
b,this.o);I(this,e);this.o.J=e;e.o(c.element);e=y(this.hE,this);this.K=new h7(a,e);I(this,this.K);Br(a,this.K.element,5);this.J=new g7(a,b,e);I(this,this.J);this.J.o(c.element);d.rd&&(e=new z8(a,b),I(this,e),e.o(c.element));e=new s8(a,b);I(this,e);e.o(c.element);d.C&&(e=new S7(a),I(this,e),Br(a,e.element,4),e=new T7(a,b,this.o),I(this,e),e.o(c.element));d.qd&&(d=new X6(a,b),I(this,d),d.o(c.element));d=hu();d.webkitSetPresentationMode&&ha(d.webkitSupportsPresentationMode)&&d.webkitSupportsPresentationMode("picture-in-picture")&&
(d=new s7(a,b),I(this,d),d.o(c.element));this.D=new f7(a,b);I(this,this.D);this.D.o(c.element);this.T(a,"resize",this.Ln);this.T(a,"fullscreentoggled",this.FH);this.T(a,"progresssync",this.Kn);this.Ln()},B8=function(a,b){qz(fA(a.$))||b?b&&(a.G.ka(),a.H.ka(),a.B.A.Oe(a.ma())):b||(a.G.show(),a.H.show(),a.Kn())},C8=function(a){R.call(this,["div",
"ytp-title",["a","ytp-title-channel-logo",{href:"{{channelImageLink}}",target:"_blank"}],["div","ytp-title-text",["a",["ytp-title-link","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},["span","ytp-title-playlist-icon"],["span",null,"{{title}}"]],["a","ytp-title-channel-name",{href:"{{channelNameLink}}",target:"_blank"},"{{channelName}}"]]]);this.A=a;this.D=null;this.L=this.sa["ytp-title-link"];this.K=this.sa["ytp-title-channel-logo"];this.H=this.sa["ytp-title-playlist-icon"];
Kf(this.H,Rf());this.G=null;this.T(a,"videodatachange",this.F);this.T(a,"videoplayerreset",this.F);this.T(a,"resize",this.J);this.J(DF(a).Ma());this.F()},E8=function(a){var b=a.A.getVideoData(),c=b.videoId&&2==a.A.getPresentingPlayerType();
c&&b.videoId==a.G?L(a.element,"ytp-title-extra-info"):(be(a.element,"ytp-title-extra-info"),c&&(b.author&&b.mi&&b.profilePicture?D8(a,b.videoId,b.author,b.mi,b.profilePicture):(c=hJ(a.A.W(),b.videoId,!1),tj(c,{method:"GET",tb:y(a.M,a,b.videoId),withCredentials:!0}))))},D8=function(a,b,c,d,e){d=a.A.W().fa+"://"+iJ(a.A.W())+d;
a.K.style.backgroundImage="url("+e+")";a.B("channelImageLink",d);a.B("channelNameLink",d);a.B("channelName",Q("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.G=b;E8(a)},F8=function(a,b,c){var d=DF(a).Ma();
R.call(this,["div","",["div","ytp-tooltip-bg","",["div","ytp-tooltip-duration","{{duration}}"]],["div","ytp-tooltip-text-wrapper",["div","ytp-tooltip-image"],["div","ytp-tooltip-title","{{title}}"],["span","ytp-tooltip-text","{{text}}"]]]);this.H=a;this.ia=a.W().isMobile;this.la=b;this.na=c;this.P=this.sa["ytp-tooltip-bg"];this.ra=this.sa["ytp-tooltip-image"];this.ha=y(this.IB,this);this.Y=y(this.KB,this);this.D=null;this.J=new yr(this,100);I(this,this.J);this.A=null;this.S=!1;this.M=this.L=null;
this.G=window.NaN;this.K="";this.fa=0;this.ea=d.width;this.O=!0;this.ua=d;this.F=1;this.ca=new Wd(this.Az,250,this);I(this,this.ca);this.da=new Wd(this.Ac,5E3,this);I(this,this.da)},H8=function(a,b){if(null!=a.A)if(b)switch(a.A){case 3:G8(a);
a.J.show(!1);break;case 2:G8(a);a.J.show(!1,400);break;default:a.J.show()}else a.J.ka();a.O=b},a6=function(a,b){if(a.ia)return v;
b.addEventListener("mouseover",a.Y);return y(function(){this.D==b&&this.Ac();b.removeEventListener("mouseover",this.Y)},a)},J8=function(a,b,c){if(a.A)if(3==a.A)a.Ac();
else return;I8(a,b,3,c)},I8=function(a,b,c,d){(0,window.isNaN)(a.G)||(a.G=window.NaN,a.P.style.background="");
a.D=b;a.S=!!d;d?a.K=d:(a.K=b.getAttribute("title"),b.removeAttribute("title"));a.element.className="ytp-tooltip";if(b=b.getAttribute("data-tooltip-image"))a.ra.style.backgroundImage="url("+b+")";M(a.element,"ytp-tooltip-image-enabled",!!b);a.A=c;a.H.addEventListener("resize",a.ru,a);a.O&&(G8(a),a.J.show(!1,3==a.A?0:400))},G8=function(a){var b=a.D.getAttribute("data-tooltip-text");
if(b&&!a.S){a.B("text",b);var c=a.D.getAttribute("data-duration");a.update({title:a.K,duration:c});var d=a.D.getAttribute("data-preview"),e=96*a.F,f=54*a.F,k=120*a.F,m=90*a.F;a.P.style.width=e+"px";a.P.style.height=f+"px";a.P.style.background=d?"#000 url("+d+") "+(e-k)/2+"px "+(f-m)/2+"px/"+k+"px "+m+"px":"";$d(a.element,["ytp-text-detail","ytp-preview"]);M(a.element,"ytp-has-duration",!!c)}else a.B("text",a.K),ce(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);c=mr(a.D);d=ir(a.D,
a.H.Da());K8(a,d.x+c.width/2,!!b,d.y+c.height/2,c.height)},K8=function(a,b,c,d,e){a.element.style.left="0px";
a.element.style.top="";a.element.style.maxWidth=c?"":Math.min(a.ea,200*a.F)+"px";c=mr(a.element);b-=c.width/2;var f=2==a.A||3==a.A;1==a.A||f&&a.la(a.D)?(L(a.element,"ytp-bottom"),b=le(b,a.fa,a.fa+a.ea-c.width)):a.na(a.D)?(L(a.element,"ytp-top"),d=DF(a.H).Ma().width,b=le(b,12,d-c.width-12)):(f=DF(a.H).Ma(),b=le(b,12,f.width-c.width-12),a.element.style.top=(d>f.height/2?d-e/2-12-c.height:d+e/2+12)+"px");a.element.style.left=b+"px";3==a.A&&a.da.start()},r7=function(a){a.D&&!a.S&&a.D.hasAttribute("title")&&
(a.K=a.D.getAttribute("title"),a.D.removeAttribute("title"),a.O&&G8(a))},L8=function(a,b){M(a.element,"ytp-preview",0<=b);
if(!(0>b||b==a.G)){a.G=b;var c=96*a.F,d=96*a.F,e=Xu(a.M,a.G,c);m2(a.P,e,c,d,!0);a.ca.start()}},N8=function(a,b,c){R.call(this,["button",
["ytp-watch-later-button","ytp-button"],{title:"{{title}}","data-tooltip-image":"{{image}}"}]);this.D=a;this.H=b.A;this.J=c;L(c,"ytp-watch-later-button-visible");this.G=null;this.A=this.F=!1;this.R("click",this.PH,this);this.T(a,"videoplayerreset",this.RH);this.T(a,"WATCH_LATER_VIDEO_ADDED",this.Wz);this.T(a,"WATCH_LATER_VIDEO_REMOVED",this.oC);this.T(a,"WATCH_LATER_ERROR",this.QH);this.T(a,"resize",this.vu);this.vu(DF(a).Ma());M8(this,2);Lb(this,a6(b.A,this.element))},M8=function(a,b,c){if(b!=a.G){var d=
a.element;
switch(b){case 3:Kf(d,Uf());break;case 1:Kf(d,Lf?'<div class="ytp-icon ytp-icon-watch-later-added"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M15.03,26 L7,17.91 L9.83,15.05 L14.94,20.19 L25.07,10 L28,12.94 L15.03,26 Z" id="ytp-svg-51" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-51" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-51" /></svg>');break;case 2:Kf(d,Lf?'<div class="ytp-icon ytp-icon-watch-later"></div>':
'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z" id="ytp-svg-50" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-50" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-50" /></svg>');break;case 4:Kf(d,Lf?'<div class="ytp-icon ytp-icon-alert"></div>':
'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z" id="ytp-svg-2" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-2" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-2" /></svg>')}a.G=b}c?a.update({title:c,image:null}):
(b=a.D.W(),b.userDisplayName?a.update({title:Q("YTP_WATCH_LATER_AS_2",{USER_NAME:b.userDisplayName}),image:b.userDisplayImage}):a.update({title:Q("YTP_WATCH_LATER"),image:null}));r7(a.H)},O8=function(a){var b=a.W();
R.call(this,["a",["ytp-watermark","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","aria-label":Q("YTP_URL_NAVIGATE_TO",{WEBSITE:jJ(b)}),"data-sessionlink":"feature=player-watermark"}]);Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-watermark"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 77 34" width="100%"><defs><path d="m 26.81,26.92 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.18 2.80,0 0,12.48 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.72 2.80,0 0,15.38 -2.80,0 0,0 z M 18.83,12.91 c -0.74,-1.05 -1.91,-1.48 -3.10,-1.48 -1.33,0 -2.35,.43 -3.10,1.48 -0.57,.77 -0.88,2.02 -0.88,3.66 l -0.00,5.46 c 0,1.63 .27,2.76 .84,3.53 .74,1.04 1.95,1.60 3.13,1.60 1.18,0 2.41,-0.55 3.16,-1.60 .56,-0.76 .82,-1.89 .82,-3.53 l 0,-5.48 c 0,-1.64 -0.32,-2.87 -0.88,-3.65 l 0,0 0,0 z m -1.91,9.44 c .14,1.52 -0.31,2.27 -1.18,2.27 -0.87,0 -1.32,-0.75 -1.18,-2.27 l 0,-6.09 c -0.14,-1.52 .31,-2.23 1.18,-2.23 .87,0 1.33,.71 1.18,2.23 l -0.00,6.09 0,0 z m -8.27,4.56 -2.95,0 0,-8.37 c 0,0 -3.06,-10.27 -3.69,-12.18 l 3.10,0 2.07,8.02 2.06,-8.02 3.10,0 -3.69,12.18 0,8.37 0,0 z" id="ytp-svg-22" /><path d="M 73.80,3.53 C 72.12,1.72 70.24,1.72 69.38,1.61 63.21,1.15 53.95,1.15 53.95,1.15 c -0.01,0 -9.27,0 -15.44,.45 -0.86,.10 -2.74,.11 -4.41,1.91 -1.32,1.37 -1.75,4.49 -1.75,4.49 0,0 -0.44,3.66 -0.44,7.32 l 0,3.43 c 0,3.66 .44,7.32 .44,7.32 0,0 .43,3.11 1.75,4.49 1.67,1.80 3.88,1.74 4.86,1.93 C 42.48,32.89 53.94,33 53.94,33 c 0,0 9.26,-0.01 15.43,-0.47 .86,-0.10 2.74,-0.11 4.41,-1.91 1.32,-1.37 1.75,-4.49 1.75,-4.49 0,0 .44,-3.66 .44,-7.32 l 0,-3.43 c 0,-3.66 -0.44,-7.32 -0.44,-7.32 0,0 -0.43,-3.11 -1.75,-4.49 l 0,0 0,0 z m -35.17,23.39 0,-17.51 -3.10,0 0,-2.89 9.30,-0.00 0,2.89 -3.24,0 0,17.51 -2.95,0 0,0 z m 10.78,0 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.03 2.80,0 0,12.33 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.57 2.80,0 0,15.23 -2.80,0 0,0 z m 12.70,-1.52 c -0.35,1.13 -1.13,1.71 -2.19,1.71 -0.95,0 -2.01,-0.58 -2.90,-1.72 l -0.00,1.53 -3.02,0 0,-20.40 3.02,0 -0.00,6.65 c .86,-1.09 1.92,-1.71 2.91,-1.71 1.06,0 1.78,.63 2.13,1.77 .17,.61 .35,1.59 .35,3.03 l 0,6.09 c 0,1.40 -0.11,2.40 -0.29,3.04 l 0,0 0,0 z m 7.36,-1.89 c .02,-0.15 .02,-0.80 .02,-1.91 l 2.80,0 0,.43 c 0,.88 -0.07,1.51 -0.09,1.79 -0.09,.61 -0.30,1.16 -0.62,1.65 -0.73,1.10 -1.83,1.64 -3.23,1.64 -1.39,0 -2.46,-0.51 -3.23,-1.55 -0.56,-0.76 -0.93,-1.89 -0.93,-3.51 l 0,-5.33 c 0,-1.62 .33,-2.88 .89,-3.65 .77,-1.04 1.83,-1.59 3.20,-1.59 1.34,0 2.40,.55 3.15,1.59 .55,.76 .86,1.95 .86,3.58 l 10e-4,3.11 -5.32,0 0,2.73 c -0.00,1.40 .37,2.11 1.29,2.11 .65,0 1.04,-0.36 1.19,-1.10 l 0,0 0,0 z m -1.21,-9.51 c -0.89,0 -1.27,.38 -1.27,1.81 l 0,1.68 2.51,-0.00 0,-1.66 c 0,-1.40 -0.35,-1.83 -1.23,-1.83 l 0,0 0,0 z m -11.16,.69 -0.00,9.23 c .44,.46 .95,.69 1.39,.69 .77,0 1.11,-0.58 1.11,-2.10 l 0,-6.54 c 0,-1.52 -0.34,-1.97 -1.11,-1.97 -0.44,0 -0.94,.23 -1.39,.69 l 0,0 0,0 z" id="ytp-svg-23" /><path d="m 34,5.07 40,0 0,24 -40,0 z" id="ytp-svg-24" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-22" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-23" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-22" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-23" /></svg>');
this.D=a;this.A=null;this.T(a,"videodatachange",this.F);this.T(a,"presentingplayerstatechange",this.H);a=fA(a);this.Za(!T(a,2));this.F()},Q8=function(a){Dr.call(this);
gG();var b=a.W(),c=DF(a);this.o=a;Mia(this);var d=fA(a);this.Fa=!1;this.ra=!0;this.ua=!1;this.Z=this.J=null;var e=new y6(a);I(this,e);Br(a,e.element,4);var f=new W6(a);I(this,f);Br(a,f.element,4);this.P=new X5(a);I(this,this.P);Br(a,this.P.element,4);var k=new R(["div","ytp-gradient-top"]);I(this,k);Br(a,k.element,1);this.la=new yr(k,250,!0,100);I(this,this.la);this.D=new R(["div","ytp-chrome-top"]);I(this,this.D);Br(a,this.D.element,1);this.ia=new yr(this.D,250,!0,100);I(this,this.ia);this.O=new G6(a);
I(this,this.O);this.O.o(e.element);k=a.getVideoData();this.C=new I5(c,y(this.LG,this),k,b.useTabletControls);I(this,this.C);this.C.subscribe("autohideupdate",this.MG,this);this.A=new F8(a,y(this.Mp,this),y(this.Up,this));I(this,this.A);Br(a,this.A.element,4);this.G=new $5(a,this);I(this,this.G);Br(a,this.G.element,2);var m=new nC(a,this.G);I(this,m);Br(a,m.element,5);m=y(this.hs,this);this.Y=new I6(a,m);I(this,this.Y);Br(a,this.Y.element,5);this.ea=new K6(a,this,m);I(this,this.ea);this.ea.o(this.D.element);
m=new C8(a);I(this,m);m.o(this.D.element);m=new Gq(["div","ytp-chrome-top-buttons"]);I(this,m);m.o(this.D.element);if(b.vf){var l=new N8(a,this,this.D.element);I(this,l);l.o(m.element)}l=y(this.du,this);this.M=new M6(a,this,l);I(this,this.M);Br(a,this.M.element,5);this.ha=new O6(a,this,0,l,this.D.element);I(this,this.ha);this.ha.o(m.element);m=null;m=new P6(a);I(this,m);Br(a,m.element,3);(this.B="1"==b.B?new A8(a,this,this.C):null)&&I(this,this.B);"3"==b.B&&(l=new L6(a,this),I(this,l),Br(a,l.element,
8));b.Sa?(l=new E5(c,y(this.fr,this),y(this.sC,this),y(this.dr,this)),I(this,l)):this.T(c,"click",y(function(a){this.dr(a)||this.fr(a)},this));
this.T(c,"touchstart",this.tC);this.K=new u6(a);I(this,this.K);this.K.subscribe("show",this.eu,this);this.na=!1;b.ud&&(l=new O8(a),I(this,l),Br(a,l.element,7));l=new W5(a);I(this,l);Br(a,l.element,4);this.fa=k.videoId;this.F=null;this.H=!1;this.xa=[];this.da=new R(["div","",{tabindex:0}]);this.da.R("focus",this.ox,this);this.ca=new R(["div","",{tabindex:0}]);this.ca.R("focus",this.qx,this);k=a.Da();k.setAttribute("aria-label",Q("YTP_PLAYER_NORMAL"));switch(b.color){case "white":L(k,"ytp-color-white");
break;case "blue":L(k,"ytp-color-blue")}(this.S=b.useTabletControls?null:new A6(a,c,this.K,this.C,m,this.P,y(this.Lo,this)))&&I(this,this.S);this.T(a,"resize",this.Hn);this.T(a,"fullscreentoggled",this.NG);this.T(a,"presentingplayerstatechange",this.OG);this.T(a,"videodatachange",this.cu);this.T(a,"videoplayerreset",this.fC);this.T(a,"autonavvisibility",this.yh,this);this.T(a,"cardstatechange",this.tg,this);this.T(a,"minimized",this.tg,this);this.T(a,"onFrescaStateChange",this.tg,this);P8(this,d);
this.yh();this.Hn();this.Ca=[c.D,f.element,e.element,this.P.element,this.O.element]},R8=function(a,b,c){a.J?(b.element.getAttribute("aria-expanded"),b.element.getAttribute("aria-expanded"),b.element.removeAttribute("aria-expanded"),c.ub(),a.J=null,a.Z=null):(b.element.getAttribute("aria-expanded"),a.J=c,a.Z=b,c.Ke(b.element),b.element.setAttribute("aria-expanded",!0));
a.tg()},EF=function(a){var b=Cz(a.o)&&MM(a.o);
a.o.app.W();OM(a.o);return a.ua||b||!!a.J||OM(a.o)||a.o.app.W().Vl},S8=function(a,b){if(!b)return!1;
for(var c=0;c<a.Ca.length;c++)if(mh(a.Ca[c],b))return!1;return Zd(b,"ytp-player-content")||Zd(b,"html5-endscreen")||b==a.o.Da()?!1:!0},T8=function(a,b){if("3"==a.o.W().B){var c=fA(a.o);
if((T(c,8)||T(c,4))&&(!T(c,2)||a.o.W().experiments.ga("disable_native_controls_ended"))&&(c=Ul(b),"VIDEO"!=c.nodeName||c.controls))return!0}return!1},FF=function(a){return a.o.Pa()||!1},P8=function(a,b){var c=b.ob()&&!T(b,32);
a.C.rb(128,!c);c=3==a.o.getPresentingPlayerType();a.C.rb(256,c);var c=a.o.Da(),d;T(b,2)?d=["ended-mode"]:(d=[],T(b,8)?d.push("playing-mode"):T(b,4)&&d.push("paused-mode"),T(b,1)&&!T(b,32)&&d.push("buffering-mode"),T(b,32)&&d.push("seeking-mode"),T(b,64)&&d.push("unstarted-mode"));Gb(a.xa,d)||(ce(c,a.xa),a.xa=d,$d(c,d));a.B&&B8(a.B,EF(a));d=a.o.W();var e=qz(b),f=T(b,2);M(c,"ytp-hide-controls",("3"==d.B?!f:"1"!=d.B)||e);M(c,"ytp-native-controls","3"==d.B&&!e&&!f);if(T(b,128)){a.F||(a.F=new P5(a.o),
I(a,a.F),a.F.o(c),Br(a.o,a.F.element,4));var c=a.F,k=b.o,e=c.D.W();d=k.message;var f="embedded"==e.Ba,m=k.messageKey,l,k=!1;"YTP_ERROR_GENERIC_WITHOUT_LINK"!=m||e.Nb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==m||"YTP_HTML5_PROTECTED_FLASH_FALLBACK"==m?(l="https://get.adobe.com/flashplayer/",f=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=m||e.Nb||(l="//"+iJ(e)+"/html5",m="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(l="//support.google.com/youtube/?p=player_error1",m="YTP_ERROR_GENERIC_WITH_LINK",
e.P&&!e.M&&(k=!0));l&&(d=Q(m,{BEGIN_LINK:'<br/><a href="'+l+'"'+(f?' target="_blank"':"")+">",END_LINK:"</a>"}));for(l=0;l<c.F.length;l++)c.za(c.F[l]);c.F=[];c.B("content",new J5(d));if(k)for(l=y(c.G,c),d=c.element.getElementsByTagName("a"),e=0;e<d.length;e++)f=c.T(d[e],"click",l),c.F.push(f);a.F.show()}else a.F&&(a.F.dispose(),a.F=null)},U8=function(a,b){a.C.isDisposed()||a.C.rb(16,b)},V8=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;
for(var d=null;b;){if("none"!=Xq(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=V8(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d},Mia=function(a){a=a.o.W();
var b=a.S;if(lu("ytp-normal-css-loaded")){var c=lu("ytp-sprite-mode-css-loaded");b!=c&&zi(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}},W8=function(){},Z=function(a,b){if(b<a.C){var c=b+a.D,d=a.o[c];
return d===X8?a.o[c]=[]:d}d=a.A[b];return d===X8?a.A[b]=[]:d},Y8=function(a,b){if(ga(b)){if((0,window.isNaN)(b))return"NaN";
if(window.Infinity===b)return"Infinity";if(-window.Infinity===b)return"-Infinity"}return b},Z8=function(a){var b=a;
a=Nia;this.B=null;b||(b=[]);this.D=-1;this.o=b;a:{if(this.o.length){var b=this.o.length-1,c=this.o[b];if(c&&"object"==typeof c&&!da(c)){this.C=b- -1;this.A=c;break a}}this.C=Number.MAX_VALUE}if(a)for(b=0;b<a.length;b++)c=a[b],c<this.C?(c+=-1,this.o[c]=this.o[c]||X8):this.A[c]=this.A[c]||X8},d9=function(a,b){G.call(this);
var c=b;c instanceof Hh||(c=new Hh(c));var d=this.Z=c,e;a:{var f=d.args.legacy_config;if(f){var k=f?de(f):null;if(k){var m,l=new Z8(k),n=Z(l,1),t=Z(l,2),u=Z(l,3),x=Z(l,4),A=Z(l,5),D=Z(l,6),H=Z(l,7),z=Z(l,8),P=Z(l,9),Ua=Z(l,10),la=Z(l,11),ya=Z(l,12),yb=Z(l,13),pd=Z(l,14),ck=Z(l,15),dk=Z(l,16),Bm=Z(l,17),ek=Z(l,18),uq=Z(l,19),Av=Z(l,20),Xf=Z(l,21),mc=Z(l,22),bD=Z(l,23),Dd=Z(l,24),A7=Z(l,25),B7=Z(l,26),Oia=Z(l,27),Pia=Z(l,28),Qia=Z(l,29),Ria=Z(l,30),Sia=Z(l,31),Tia=Z(l,32),Uia=Z(l,33),Via=Z(l,34),Wia=
Z(l,35),Xia=Z(l,36),Yia=Z(l,37),Zia=Z(l,38),$ia=Z(l,39),aja=Z(l,40),bja=Z(l,41),cja=Z(l,42),dja=Z(l,43),eja=Z(l,44),fja=Z(l,45),gja=Z(l,46),hja=Z(l,47),ija=Z(l,48),jja=Z(l,49),kja=Z(l,50),lja=Z(l,51),mja=Z(l,52),nja=Z(l,53),oja=Z(l,54),pja=Z(l,55),qja=Z(l,56),rja=Z(l,57),sja=Z(l,58),tja=Z(l,59),uja=Z(l,60),vja=Z(l,61),wja=Z(l,62),xja=Z(l,63),yja=Z(l,64),zja=Z(l,65),Aja=Z(l,66),Bja=Z(l,67),Cja=Z(l,68),Dja=Z(l,69),Eja=Z(l,70),Fja=Z(l,71),Gja=Z(l,72),Hja=Z(l,73),Ija=Z(l,74),Jja=Z(l,75),Kja=Z(l,76),Lja=
Z(l,77),Mja=Z(l,78),Nja=Z(l,79),Oja=Z(l,80),Pja=Z(l,81),Qja=Z(l,82),Rja=Z(l,83),Sja=Z(l,84),Tja=Z(l,85),Uja=Z(l,86),Vja=Z(l,87),Wja=Z(l,88),Xja=Z(l,89),Yja=Z(l,90),Zja=Z(l,91),$ja=Z(l,92),aka=Z(l,93),bka=Z(l,94),cka=Z(l,95),dka=Z(l,96),eka=Z(l,97),fka=Z(l,98),gka=Z(l,99),hka=Z(l,100),ika=Z(l,101),jka=Z(l,102),kka=Z(l,103),lka=Z(l,104),mka=Z(l,105),nka=Z(l,106),oka=Z(l,107),pka=Z(l,108),qka=Z(l,109),rka=Z(l,110),ska=Z(l,111),tka=Z(l,112),uka=Z(l,113),vka=Z(l,114),wka=Z(l,115),xka=Z(l,116),yka=Z(l,
117),zka=Z(l,118),Aka=Z(l,119),Bka=Z(l,120),Cka=Z(l,121),Dka=Z(l,122),Eka=Z(l,123),Fka=Z(l,124),Gka=Z(l,125),Hka=Z(l,126),Ika=Z(l,127),Jka=Z(l,128),Kka=Z(l,129),Lka=Z(l,130),Mka=Z(l,131),Nka=Z(l,132),Oka=Z(l,133),Pka=Z(l,134),Qka=Z(l,135),Rka=Z(l,136),Ska=Z(l,137),Tka=Z(l,138),Uka=Z(l,139),Vka=Z(l,140),Wka=Z(l,141),Xka=Z(l,142),Yka=Z(l,143),Zka=Z(l,144),$ka=Z(l,145),ala=Z(l,146),bla=Z(l,147),dla=Z(l,148),ela=Z(l,149),fla=Z(l,150),gla=Z(l,151),hla=Z(l,153),ila=Z(l,154),jla=Z(l,155),kla=Z(l,156),lla=
Z(l,157),mla=Z(l,158),nla=Z(l,159),ola=Z(l,160),pla=Z(l,161),qla=Z(l,162),rla=Z(l,163),sla=Z(l,164),tla=Z(l,165),ula=Z(l,166),vla=Z(l,167),wla=Z(l,168),xla=Z(l,169),yla=Z(l,170),zla=Z(l,171),Ala=Z(l,172),Bla=Z(l,173),Cla=Z(l,174),Dla=Z(l,175),Ela=Z(l,176),Fla=Z(l,177),Gla=Z(l,178),Hla=Z(l,179),Ila=Z(l,180),Jla=Z(l,181),Kla=Z(l,182),Lla=Z(l,183),Mla=Z(l,184),Nla=Z(l,185),Ola=Z(l,186),Pla=Z(l,187),Qla=Z(l,188),Rla=Z(l,189),Sla=Z(l,190),Tla=Z(l,191),Ula=Z(l,192),Vla=Z(l,193),Wla=Z(l,194),Xla=Z(l,195),
Yla=Z(l,196),Zla=Z(l,197),$la=Z(l,198),ama=Z(l,199),bma=Z(l,200),cma=Z(l,201),dma=Z(l,202),ema=Z(l,203),fma=Z(l,204),gma=Z(l,205),hma=Z(l,206),jma=Z(l,207),kma=Z(l,208),lma=Z(l,209),mma=Z(l,210),nma=Z(l,211),oma=Z(l,212),pma=Z(l,213),qma=Z(l,214),rma=Z(l,215),sma=Z(l,216),tma=Z(l,217),uma=Z(l,218),vma=Z(l,219),wma=Z(l,220),xma=Z(l,221),yma=Z(l,222),zma=Z(l,223),Ama=Z(l,224),Bma=Z(l,225),Cma=Z(l,226),Dma=Z(l,227),Ema=Z(l,228),Fma=Z(l,229),Gma=Z(l,230),Hma=Z(l,231),Ima=Z(l,232),Jma=Z(l,233),Kma=Z(l,
234),Lma=Z(l,235),Mma=Z(l,236),Nma=Z(l,237),Oma=Z(l,238),Pma=Z(l,239),Qma=Z(l,240),Rma=Z(l,241),Sma=Z(l,242),Tma=Z(l,243),Uma=Z(l,245),Vma=Z(l,246),Wma=Z(l,247),Xma=Z(l,248),Yma=Z(l,249),Zma=Z(l,250),$ma=Z(l,251),ana=Z(l,252),bna=Z(l,253),cna=Z(l,254),dna=Z(l,255),ena=Z(l,256),fna=Z(l,257),gna=Z(l,258),hna=Z(l,259),ina=Z(l,260),jna=Z(l,261),kna=Z(l,262),lna=Z(l,263),mna=Z(l,264),nna=Z(l,265),ona=Z(l,266),pna=Z(l,267),qna=Z(l,268),rna=Z(l,269),sna=Z(l,270),tna=Z(l,271),una=Z(l,272),vna=Z(l,273),wna=
Z(l,275),xna=Z(l,276),yna=Z(l,277),zna=Z(l,278),Ana=Z(l,279),Bna=Z(l,280),Cna=Z(l,281),Dna=Z(l,282),Ena=Z(l,283),Fna=Z(l,284),Gna=Z(l,285),Hna=Z(l,286),Ina=Z(l,287),Jna=Z(l,288),Kna=Z(l,289),Lna=Z(l,290),Mna=Z(l,291),Nna=Z(l,292),Ona=Z(l,293),Pna=Z(l,294),Qna=Z(l,295),Rna=Z(l,296),Sna=Z(l,297),Tna=Z(l,298),Una=Z(l,299),Vna=Z(l,300),Wna=Z(l,301),Xna=Z(l,302),Yna=Z(l,303),Zna=Z(l,304),$na=Z(l,306),aoa=Z(l,307),boa=Z(l,308),coa=Z(l,309),doa=Z(l,310),eoa=Z(l,311),foa=Z(l,312),goa=Z(l,313),hoa=Z(l,314),
ioa=Z(l,315),joa=Z(l,316),koa=Z(l,317),loa=Z(l,318),moa=Z(l,319),noa=Z(l,320),ooa=Z(l,321),poa=Z(l,322),qoa=Z(l,323),roa=Z(l,324),soa=Z(l,325),toa=Z(l,326),uoa=Z(l,327),voa=Z(l,328),woa=Z(l,329),xoa=Z(l,330),yoa=Z(l,331),zoa=Z(l,332),Aoa=Z(l,333),Boa=Z(l,334),Coa=Z(l,335),Doa=Z(l,336),pK=Z(l,337);m={el:n,ps:t,autonav:u,autoplay:x,eventid:A,fexp:D,fflags:H,isHtml5MobileDevice:z,legacyBehavior:P,playerErrorLogFraction:Ua,canWatchLater:la,mute:ya,partnerid:yb,showinfo:pd,ss:ck,watchXlb:dk,dclk:Bm,ivModule:ek,
iv3Module:uq,iv3EditModule:Av,ivInvideoUrl:Xf,ivLoadPolicy:mc,atc:bD,loudness:Dd,infringe:A7,subtitlesXlb:B7,ccFont:Oia,ccModule:Pia,ccFontsUrl:Qia,cc3Module:Ria,ttsurl:Sia,ccAsr:Tia,ccContribute:Uia,ccAutoCaps:Via,ccLoadPolicy:Wia,captionTracks:Xia,captionAudioTracks:Yia,captionTranslationLanguages:Zia,defaultAudioTrackIndex:$ia,cr:aja,hostLanguage:bja,hl:cja,enablecsi:dja,csiPageType:eja,c:fja,cbr:gja,cbrver:hja,cos:ija,cosver:jja,cplatform:kja,cbrand:lja,cmodel:mja,cnetwork:nja,isRtl:oja,enhanceModule:pja,
enhanceXlb:qja,regionModule:rja,previewSplitMode:sja,status:tja,reason:uja,errorcode:vja,errordetail:wja,apiaryHost:xja,apiaryHostFirstparty:yja,gapiHintOverride:zja,gapiHintParams:Aja,innertubeApiKey:Bja,innertubeApiVersion:Cja,innertubeContextClientVersion:Dja,loaderurl:Eja,multicameraModule:Fja,multicameraPreroll:Gja,multifeedMetadataList:Hja,allowEmbed:Ija,allowedDomains:Jja,ypcItemTitle:Kja,ypcItemUrl:Lja,ypcItemThumbnail:Mja,ypcOfferHeadline:Nja,ypcOfferDescription:Oja,ypcOfferId:Pja,ypcOfferButtonText:Qja,
ypcFullVideoMessage:Rja,ypcModule:Sja,ypcVid:Tja,ypcLicenseCheckerModule:Uja,heartbeatServerUrl:Vja,ypcLicenseSessionToken:Wja,purchaseId:Xja,heartbeatToken:Yja,heartbeatInterval:Zja,heartbeatRetries:$ja,ypcClickwrapModule:aka,ypcClickwrapMessage:bka,livestream:cka,livePlayback:dka,authTimeout:eka,hlsdvr:fka,streaminglibModule:gka,frescaModule:hka,frescaPreroll:ika,frescaXlb:jka,enableCardio:kka,enableCardioBeforePlayback:lka,liveChunkReadahead:mka,innertubeClientVersion:nka,adHost:oka,adHostTierId:pka,
coreDbp:qka,googleCustAge:rka,googleCustGender:ska,pyvAdChannel:tka,showPyvInRelated:uka,tagForChildDirected:vka,playerWide:wka,enablesizebutton:xka,bannerUrl:yka,profilePicture:zka,channelTitle:Aka,spacecastAddress:Bka,timestamp:Cka,fmtList:Dka,urlEncodedFmtStreamMap:Eka,adaptiveFmts:Fka,licenseInfo:Gka,idup:Hka,dashmpd:Ika,hlsvp:Jka,hlsFormats:Kka,probeUrl:Lka,storyboardSpec:Mka,liveStoryboardSpec:Nka,ismb:Oka,surveySmartpixelUrl:Pka,surveycreativedata:Qka,threedXlb:Rka,threedModule:Ska,threedConverted:Tka,
approxThreedLayout:Uka,threedLayout:Vka,t:Wka,token:Xka,noGetVideoLog:Yka,tmi:Zka,plid:$ka,pltype:ala,ptchn:bla,ptk:dla,oid:ela,idpj:fla,ldpj:gla,userAge:hla,userGender:ila,sw:jla,remarketingUrl:kla,ppvRemarketingUrl:lla,rmktenabled:mla,baseurl:nla,videostatsPlaybackBaseUrl:ola,subscribed:pla,engaged:qla,vid:rla,uid:sla,aid:tla,focenabled:ula,socialenabled:vla,ytfocenabled:wla,ytfochistoryenabled:xla,ssrt:yla,delay:zla,cl:Ala,osid:Bla,vm:Cla,videoId:Dla,title:Ela,lengthSeconds:Fla,keywords:Gla,ucid:Hla,
allowRatings:Ila,avgRating:Jla,viewCount:Kla,author:Lla,thumbnailUrl:Mla,isListed:Nla,liveDefaultBroadcast:Ola,vq:Pla,watermark:Qla,accountPlaybackToken:Rla,watchAjaxToken:Sla,yvaXlb:Tla,yvaModule:Ula,yvaPreroll:Vla,ypcXlb:Wla,authuser:Xla,pageid:Yla,userDisplayName:Zla,userDisplayImage:$la,playlistTitle:ama,playlistLength:bma,index:cma,iurl:dma,iurlmq:ema,iurlhq:fma,iurlsd:gma,iurlmaxres:hma,iurlWebp:jma,iurlmqWebp:kma,iurlhqWebp:lma,iurlsdWebp:mma,iurlmaxresWebp:nma,start:oma,end:pma,resume:qma,
of:rma,list:sma,q:tma,referrer:uma,sdetail:vma,sourceid:wma,externalList:xma,forcedExperiments:yma,cctp:zma,adformat:Ama,listtype:Bma,privembed:Cma,afvInstreamMax:Dma,adLanguageIso6392:Ema,adTag:Fma,afvAdTagRestrictedToInstream:Gma,maxDynamicAllocationAdTagLength:Hma,asLaunchedInCountry:Ima,adFlags:Jma,adPreroll:Kma,aftv:Lma,invideo:Mma,dynamicAllocationAdTag:Nma,gutTag:Oma,pyvInRelatedCafeExperimentId:Pma,afvAdTag:Qma,oO:Rma,loeid:Sma,adDevice:Tma,cafeExperimentId:Uma,adsenseVideoDocId:Vma,fw:Wma,
adSlots:Xma,shortform:Yma,tpasPartnerId:Zma,instream:$ma,trueview:ana,midrollFreqcap:bna,mpvid:cna,mpu:dna,afv:ena,tpasAdTypeId:fna,tpasVideoId:gna,sffb:hna,contentOwnerName:ina,afvMergeEnabled:jna,excludedAds:kna,noAfvInstream:lna,adAge:mna,adGender:nna,adLoggingFlag:ona,showContentThumbnail:pna,cid:qna,afvInvideoAdTag:rna,allowHtml5Ads:sna,supportedWithoutAds:tna,instreamLong:una,adBreaks:vna,afcRmFallback:wna,allowAdInAutoplay:xna,c4:yna,dbp:zna,fqsf:Ana,gptMigration:Bna,xfp:Cna,midrollPrefetchSize:Dna,
trueviewLactt:Ena,xfpTag:Fna,advideo:Gna,ad3Module:Hna,vmap:Ina,serverPrefetchedVast:Jna,amsBaseTag:Kna,fadeOutStartMilliseconds:Lna,fadeOutDurationMilliseconds:Mna,fadeInStartMilliseconds:Nna,fadeInDurationMilliseconds:Ona,applyFadeOnMidrolls:Pna,adModule:Qna,pla:Rna,plaAdTag:Sna,vastAdsModule:Tna,forcedSkipOffset:Una,enabledEngageTypes:Vna,freewheelAdTag:Wna,postAdRequests:Xna,enablejsapi:Yna,ssl:Zna,baseYtUrl:$na,controls:aoa,disablekb:boa,jsapicallback:coa,svt:doa,canplaylive:eoa,storeUserVolume:foa,
useMediaVolume:goa,sslStream:hoa,dash:ioa,liveStartWalltime:joa,oauthToken:koa,visitorData:loa,vvt:moa,osig:noa,paygated:ooa,videoMastheadAdQuartileUrls:poa,tvList:qoa,pyvViewBeaconUrl:roa,pyvQuartile25BeaconUrl:soa,pyvQuartile50BeaconUrl:toa,pyvQuartile75BeaconUrl:uoa,pyvQuartile100BeaconUrl:voa,pyvBillableUrl:woa,rco:xoa,cco:yoa,feature:zoa,isFling:Aoa,ctrl:Boa,ytr:Coa,ytrcc:Doa,startseconds:null==pK?pK:+pK,sentiment:Z(l,338),spacecastFormatMap:Z(l,339),spacecastAdaptiveFormats:Z(l,340),suggestedquality:Z(l,
341),rvs:Z(l,342),urlEncodedThirdPartyMedia:Z(l,343),vssCredentialsToken:Z(l,344),vssCredentialsType:Z(l,345),ypcGid:Z(l,346),ypcPreview:Z(l,347),ypcOrigin:Z(l,348),requiresPurchase:Z(l,349),mdx:Z(l,350),retryneterr:Z(l,351),itct:Z(l,352),ypcOverlayTimeout:Z(l,353),app:Z(l,354),cweb:Z(l,355),pyvConvUrl:Z(l,356),cver:Z(l,357),on3g:Z(l,358),autohide:Z(l,359),useNativeControls:Z(l,360),useTabletControls:Z(l,361),codeDbp:Z(l,362),rel:Z(l,363),attrib:Z(l,364)};var i3={},Ft;for(Ft in m){var Eoa=$8[Ft]?
$8[Ft]:Ft.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();i3[Eoa]=m[Ft]}e=i3;break a}}e=null}var qK;if(e){var Th=d.args,vl=e,wA=[],Bc;for(Bc in Th)Foa[Bc]||(vl.hasOwnProperty(Bc)?typeof Th[Bc]!=typeof vl[Bc]?wA.push("wrong type. key ["+Bc+"]: ("+typeof Th[Bc]+") "+Th[Bc]+"; ("+typeof vl[Bc]+") "+vl[Bc]):Th[Bc]!==vl[Bc]&&wA.push("values differ. key ["+Bc+"]: ("+typeof Th[Bc]+") "+Th[Bc]+"; ("+typeof vl[Bc]+") "+vl[Bc]):wA.push("missing. key ["+Bc+" ]: ("+typeof Th[Bc]+") "+Th[Bc]));qK=wA}else qK=
[];for(var ep=qK,k3=Math.floor(Math.random()*ep.length),ep=ep.slice(k3).concat(ep.slice(0,k3)),rK=0;rK<ep.length;rK++)zi(Error("Discrepancy in legacy config: "+ep[rK]));var fp=this.Z.args||{};this.X=new cJ(fp);I(this,this.X);this.X.experiments.ga("legacy_autoplay_flag")||"detailpage"!=this.X.Ba||(fp.autoplay="1");this.Pb=dv("detailpage"==this.X.Ba&&"blazer"!=this.X.o||"books"==this.X.o,fp.enablesizebutton);this.ha=dv(!1,fp.player_wide);this.O=this.X.$a&&dv(!1,fp.external_list);this.bc=this.X.$a&&
dv(!1,fp.external_play_video);this.ua=new Dr(this);I(this,this.ua);this.Ja=null;this.L=new Be;this.ca=new Be;this.o=new zM(this);I(this,this.o);this.Ra=new zM(this,1);I(this,this.Ra);this.G=new v5(this);I(this,this.G);this.G.subscribe("resize",this.UE,this);this.M=1;this.Sa={};var sK;if(this.X.storeUserVolume){var l3=cj("yt-player-volume")||{},m3=l3.volume;sK={volume:(0,window.isNaN)(m3)?100:le(Math.floor(m3),0,100),muted:!!l3.muted}}else sK={volume:100,muted:this.X.mute};this.Y=sK;this.$=this.X.$a?
new yM(this,1):new xM(this,1);I(this,this.$);this.Fa=this.B=null;this.Ka={};var Gt=this.X,wl=new Cba;AH(Gt)&&(wl.C=!0,wl.B=.1);Gt.Wa&&(wl.A=Gt.Wa/8);wl.o=Gt.experiments.Yb("html5_bandwidth_window_size")||wl.o;Gt.experiments.ga("html5_use_server_bandwidth_estimate")&&(wl.D=!0);this.la=new Bba(wl);this.Ta={internalvideodatachange:this.fA,liveviewshift:this.RE,playbackready:this.gA,playbackstarted:this.hA,statechange:this.iA,signatureexpired:this.DC};var Bj=new yN,n3=this.o;Bj.A!=n3&&(zN(Bj),Bj.F={},
Bj.A=n3);var Uh={};Uh.loaded=y(this.Mq,this);Uh.unloaded=y(this.Nq,this);Uh.destroyed=y(this.im,this);Uh.command_pause=a9(this.pauseVideo,this);Uh.command_play=a9(this.gf,this);Uh.command_seek=a9(this.xg,this);Uh.command_redirect_controls=y(this.Hs,this);Uh.command_stop_redirect_controls=y(this.yj,this);Bj.G=Uh;this.W().K.subscribe("vast_info_card_add",qa(Bj.J,"vast_info_card_add"),Bj);this.D=Bj;I(this,this.D);this.K=new E1(this.X,"",this.D);var o3=new LL(this.X,1,this.K,this.G,y(this.L.U,this.L));
b9(this,o3,this.Ta);this.A=o3;this.A.la=this.la;this.xb={airplayactivechange:this.Xz,airplayavailabilitychange:this.Yz,beginseeking:this.OE,endseeking:this.PE,internalaudioformatchange:this.kA,internalvideodatachange:this.pn,internalvideoformatchange:this.eD,playbackstalledatstart:this.JC,progresssync:this.TE,seekto:this.VE,onLoadProgress:this.wB,onVideoProgress:this.gD,playbackready:this.bC,statechange:this.SE,connectionissue:this.NA,heartbeatparams:this.QE,videoelementevent:this.WE};this.P=this.F=
null;this.Wa=this.ab=-1;this.xa=this.H=this.J=null;this.ea={};this.ra=null;this.qb=new Wd(this.G.Je,16,this.G);I(this,this.qb);this.Na=!1;this.da=!0;this.Ga=this.C=null;this.Ca=!1;this.S=c9(this,cj("yt-player-playback-rate")||1);this.na=null;this.dc=this.kb=!1;this.wb=null;this.fa=0;this.Qb=new U5(this.G.element);I(this,this.Qb);this.bb=0;this.o.addEventListener("crn_"+d9.B,this.dA,this);this.o.addEventListener("crx_"+d9.B,this.eA,this);this.o.addEventListener("crn_"+d9.A,this.tq,this);this.o.addEventListener("crx_"+
d9.A,this.tq,this);this.G.initialize(a);Lf=this.X.S;var Ht=new rx(this.Z.args);if(Tx(Ht)){this.A.sh(Ht,y(this.Oj,this));if(Cy(this.X)){var uK;var Goa=Ht.videoId,q3=cj("yt-player-restore-playhead");uK=q3?q3[Goa]:void 0;uK&&(Ht.startSeconds=uK)}dj("yt-player-restore-playhead");(this.X.experiments.ga("legacy_autoplay_flag")?this.X.bb:Ht.Pc)&&(this.X.Na||this.X.experiments.H)&&RL(this.A)}this.K.A("fs");var If=this.G;If.isDisposed();var xA=If.app.W();xA.J||If.Gn("tag-pool-enabled");xA.Nb&&If.Gn("house-brand");
"gvn"==xA.o&&If.Gn("ytp-gvn");xA.P&&(If.K=Hi("yt-dom-content-change",If.Je,If));If.T(window,"resize",If.Je,If);var yl=this.$;yl.o=this.G.element;for(var It in yl.B)yl.o[It]=yl.B[It];for(It in yl.C)yl.o[It]=yl.C[It];var r3,vK=Bh("fullscreenchange",this.G.element);"msfullscreenchange"==vK&&(vK="MSFullscreenChange");(r3=vK)&&this.ua.T(this.G,r3,this.jB);this.ua.T(window,"resize",this.rC);var yA=this.Z.args;e9(this);var wK=Q4(this);this.o.Ea("onVolumeChange",this.Y);if(yA&&hy(yA)){var t3=Cy(this.X);t3&&
!this.O&&(yA.fetch=0);f9(this,yA);if(t3&&!this.O)g9(this);else if(!Tx(wK)){var xK=this.C,Hoa=y(this.Qq,this);xK.G=Hoa;xK.F&&vi(xK.G,0)}}var hp=this.Z.args.jsapicallback;hp&&(ha(hp)||(hp=r(hp)),hp&&a9(y(hp,aa,this.X.qf),aa));this.X.C&&qp("embedded"==this.X.Ba);Z4(this,this.A);var AA=ku(this.X.F);"fmt.noneavailable"==AA?PL(this.A,AA,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0):"html5.missingapi"==AA?PL(this.A,AA,"YTP_ERROR_UNSUPPORTED_DEVICE",void 0):(this.X.experiments.ga("legacy_autoplay_flag")?
this.X.bb:wK.Pc)&&this.X.Na&&Tx(wK)?h9(this):"leanback"!=this.X.Ba&&i9(this);this.ia=new Q8(this.o);I(this,this.ia);LM(this.Ra,"init")},j9=function(a,b){a.Ja||(a.Ja=new T5(a),I(a,a.Ja),Br(a.o,a.Ja.element,4));
a.Ja.Za(b)},e9=function(a){var b=W4.getTag(!0,!a.X.F);
a.B=new MI(b);a.Fa=a.B;a.F&&dM(a.F,a.B);a.B.o.loop=a.Ca;a.B.o.playbackRate=a.S;a.X.useMediaVolume?(a.na&&a.ua.za(a.na),a.na=a.ua.T(a.B,"volumechange",a.EB)):(a.B.setVolume(a.Y.volume/100),a.B.o.muted=a.Y.muted);Bia(a.G,b);a.X.Ce=a.B;EI(a.B)},k9=function(a){if(a.B){a.na&&(a.ua.za(a.na),a.na=null);
a.F&&cM(a.F);var b=a.G;b.A&&(dh(b.A),b.A=null);a.X.Ce=null;W4.releaseTag(a.B.ma());a.B=null}},r2=function(a,b){a.X.J?(a.xa&&(a.B.setPosition(new re(a.xa.left,a.xa.top)),a.B.setSize(ze(a.xa)),a.xa=null),JI(a.B),cM(a.F),dM(a.F,a.B),a.B.o.loop=a.Ca,a.B.o.playbackRate=a.S):W4.releaseTag(b)},Z4=function(a,b){a.F!=b&&(a.F&&(zN(a.D),xq(a,"cuerangesremoved",a.F.F.o.o||[]),Y4(a)),b!=a.A&&(a.Ka[b.J]=b),a.F=b,b.la=a.la,a.B&&dM(b,a.B),b9(a,b,a.xb),a.pn("newdata",b,b.getVideoData()),b.fa.o&&a.pn("dataloaded",
b,b.getVideoData()),xq(a,"cuerangesadded",a.F.F.o.o||[]),iz(b.getPlayerState())&&iM(b))},b9=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)},Y4=function(a){cM(a.F);
var b=a.F,c=a.xb,d;for(d in c)b.Ia(d,c[d],a);b=a.F;b!=a.A&&(c=b.J,a.Ka[c]==b&&delete a.Ka[c]);a.F=null},wq=function(a,b){return b?1==b?a.A:a.Ka[b]||null:a.F},l9=function(a){var b=a.D;
F([LF.B,sba,Vy,jA,pba,wH,pJ.A,Aba,qba,Gaa],b.Vw,b);a.o.U("videoready",a.getVideoData())},n9=function(a){if(a.X.C){a.H||(a.H=new t5(a),m9(a,a.H));
var b=Cp();u5(a.H,yp(),b);var c=a.H;c&&!c.F&&c.Ya(a.Ra)&&c.create();b&&a.H.load()}},m9=function(a,b){I(a,b);
b.subscribe("loaded",a.Mq,a);b.subscribe("unloaded",a.Nq,a);b.subscribe("command_pause",a9(a.pauseVideo,a));b.subscribe("command_play",a9(a.gf,a));b.subscribe("command_seek",a9(a.xg,a));b.subscribe("command_redirect_controls",a.Hs,a);b.subscribe("command_stop_redirect_controls",a.yj,a)},o9=function(a,b){b&&b.F&&("ad"==b.va&&ce(a.G.element,["ytp-ad-overlay-open",
"ytp-ad-overlay-closed"]),b.destroy())},Q4=function(a){return a.A.getVideoData()},p9=function(a,b){return(a.F&&2==a.F.J)==(2==b)?LI(a.Fa):0},i9=function(a){a.o.U("initializingmode");
q9(a,2)},h9=function(a){if(T(a.A.getPlayerState(),128))return!1;
a.o.U("initializingmode");Z4(a,a.A);q9(a,3);var b;(b=!a.X.J)||(r("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(k9(a),e9(a),dM(a.A,a.B));UL(a.A);if(T(a.A.getPlayerState(),128))return!1;r9(a,3);return a.dc=!0},a9=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);
vi(function(){a.apply(b||this,c)},0)}},s9=function(a,b){a.Ca!=b&&(a.Ca=b,a.F==a.A&&(a.B.o.loop=b),a.o.U("loopchange",b))},t9=function(a,b,c){!(0,window.isNaN)(b)&&a.B&&(b=c9(a,b),a.S!=b&&(a.S=b,a.A==a.F&&(a.B.o.playbackRate=b),c&&bj("yt-player-playback-rate",b),a.o.Ea("onPlaybackRateChange",b)))},c9=function(a,b){var c=1,c=a.X.da?u9:[1];
return c=1>b?eb(c,function(a){return a>=b}):gb(c,function(a){return a<=b})},v9=function(a,b){var c=wq(a,b);
return c?c.tn():a.getVideoData().S},w9=function(a,b,c,d){if(a=wq(a,c))d=d||b,b=Ju(b,d,!0),bj("yt-player-quality",d,604800),nM(a,"m",b)},x9=function(a,b){var c=wq(a,b);
return c?c.Ag():0},z9=function(a,b){var c=sM(a.A,b);
if(a.F&&a.F!=a.A){var d=sM(a.F,b),e;for(e in d)c["ad_"+e]=d[e]}(d=y9(a))&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Ra.Uj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return ge(c)},A9=function(a,b){return 3==a.getPresentingPlayerType()?sz(a.H.P):2==b?a.Wa:a.ab},B9=function(a){o9(a,a.J);
a.X.C&&o9(a,a.H);a.kb=!1;a.yj();s9(a,!1);a.Sa={};a=a.K;var b=a.B;b.C={};b.B={};a.C=!1},y9=function(a){a=a.Qb;
var b=!a.o,c="";if(!a.o){a.o=new R(["canvas",{style:"display: none"}]);a.o.o(a.B);var d=a.o.element;try{a.A=d.getContext("webgl")}catch(e){}}if(a.A)try{a.A.getExtension("WEBGL_debug_renderer_info"),c=a.A.getParameter(37446),c=c.replace(/[ :]/g,"_")}catch(e){}b&&V5(a);return c},g9=function(a){var b=C9();
if(b)if(b.list){if(a.C&&a.C.D.toString()==b.list)if(0<=b.index){var c=b.video;a.o.Pa()&&((c=c[a.C.Lb()])&&c.encrypted_id!=a.C.yb().videoId||(b.index=a.C.Lb()));ly(a.C,b);a.Ga&&D9(a,a.Ga)}else a.Ga=null}else a.Ek()},f9=function(a,b){if(a.C){a.C.Ia("error",a.Ek,a);
Mb(a.C);a.C=null;var c=AM(a.D,"playlist");c&&(pb(a.D.o,c),c.destroy())}b&&(a.O&&(b.fetch=0),a.C=new gy(b),a.C.subscribe("error",a.Ek,a))},E9=function(a,b,c,d){b in a.Sa||(c=new rq(c,d,{id:b,
priority:1}),c.A=d9.A,a.A.F.ib([c]),a.Sa[b]=c)},q9=function(a,b){b!=a.M&&(2==b&&(r9(a,-1),r9(a,5)),a.M=b,a.o.U("appstatechange",b))},r9=function(a,b){a.F&&2==a.F.J?a.Wa!=b&&(a.Wa=b,a.o.Ea("onAdStateChange",b)):a.ab!=b&&(a.ab=b,a.o.Ea("onStateChange",b))},G9=function(a,b,c){a.X.experiments.ga("legacy_autoplay_flag")||"detailpage"!=a.X.Ba||(b.autoplay="1");
var d=new rx(b);b&&hy(b)?(Cy(a.X)&&!a.O&&(b.fetch=0),f9(a,b)):a.C&&f9(a,null);a.O=dv(!1,b.external_list);Cy(a.X)&&!a.O&&g9(a);return F9(a,d,c)},H9=function(a,b){a.P&&a.P.getVideoData().videoId==b.videoId||(b.Na=!0,a.P||(a.P=new LL(a.X,1,a.K,a.G,y(a.L.U,a.L)),a.P.la=a.la),a.P.sh(b,y(a.Oj,a)),RL(a.P,!0))},F9=function(a,b,c){if(!Rv("_start",a.K.o)){var d=a.K.o;
Tv("yt_sts","p",d);Qv("_start",void 0,d);a.K.info("srt",0)}if(a.P&&a.P.getVideoData().videoId==b.videoId){d=a.P;a.P=null;b=d;c=a.A;var e=a.Ta,f;for(f in e)c.Ia(f,e[f],a);a.A.dispose();a.A=b;b9(a,b,a.Ta);B9(a)}else{d=wq(a,c);if(!d)return!1;a.qb.stop();I9(a,c);d.sh(b,y(a.Oj,a))}if(!QL(d))return!1;a.Na&&(d.Wa=!1,a.Na=!1);if(d==a.A)return q9(a,1),h9(a);UL(d);return!0},J9=function(a,b,c){c=wq(a,c);
b&&c==a.A&&(c.getVideoData().zg=!0)},K9=function(a,b,c){var d=wq(a,c);
d&&(I9(a,c),d.sh(b,y(a.Oj,a)),bJ(d.W(),b.C),d==a.A&&(q9(a,1),i9(a)))},M9=function(a,b,c,d){if(!b&&!d)throw Error("Playback source is invalid");
if(a.o.Pa()||"detailpage"!=a.X.Ba){c=a.K;var e=c.B;e.C={};e.B={};c.C=!1;a.K.reset();d?(b={video_id:b,list:d},a.da=!1,L9(a,b,void 0,void 0,void 0)):G9(a,{video_id:b},1)}else c=c||{},c.lact=HB(),a.X.experiments.ga("send_presence_signal_vis_desktop")&&(c.vis=HL(a.X)),a.bc||"gaming"==a.X.o?a.o.Ea("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(a=a.X.getVideoUrl(b,d),r("yt.player.exports.navigate")(a,c,!0),(window.ytspf||{}).enabled?window.spf.navigate(a):wy(a))},L9=function(a,b,c,d,e){if(ia(b)&&!da(b)){c=
"playlist list listType index startSeconds suggestedQuality".split(" ");
d={};for(e=0;e<c.length;e++){var f=c[e];b[f]&&(d[f]=b[f])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},w(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;f9(a,b);b=a.C;a=y(a.Qq,a);b.G=a;b.F&&vi(b.G,0)},Sy=function(a){Cy(a.X)&&!a.O&&g9(a);
return!(!a.C||!a.C.hasNext())},N9=function(a,b){Q4(a).autonavState=b;
a.o.U("autonavchange",b)},O9=function(a,b,c){a.O&&!a.o.Pa()?a.o.Ea("onPlaylistNext"):a.C?Cy(a.X)&&!a.o.Pa()?D9(a,"yt.www.watch.lists.next"):(a.C.hasNext(b)&&ky(a.C,iy(a.C)),a.C.F?F9(a,a.C.yb(void 0,c),1):a.da=!1):Jy(a.o)&&wq(a,1).getVideoData().K&&(b=ji(wq(a,1).getVideoData().K,py)[0],M9(a,b.yb().videoId,b.ra,b.yg()))},P9=function(a,b){if(a.O&&!a.o.Pa())a.o.Ea("onPlaylistPrevious");
else if(a.C)if(Cy(a.X)&&!a.o.Pa())D9(a,"yt.www.watch.lists.prev");else{var c=a.C;(c.K||b||0<=c.o-1)&&ky(a.C,jy(a.C));a.C.F?F9(a,a.C.yb(),1):a.da=!1}},D9=function(a,b){var c=r(b);
if(c){var d=C9();d&&d.list&&c();a.Ga=null}else a.Ga=b},Q9=function(a,b){a.O&&!a.o.Pa()?a.o.Ea("onPlaylistIndex",b):a.C&&(a.C.F?F9(a,a.C.yb(b),1):a.da=!1,ky(a.C,b))},C9=function(){var a=r("yt.www.watch.lists.getState");
return a?a():null},S9=function(a,b,c,d,e,f){b={id:b};
"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):(0,window.isNaN)(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);c=new rq(1E3*c,1E3*d,b);c.A=d9.B;R9(a,[c],1);return!0},R9=function(a,b,c){var d=wq(a,c);
d&&(d.F.ib(b),c&&a.getPresentingPlayerType()!=c||xq(a,"cuerangesadded",b))},c5=function(a){var b=Qt(),c=a.getCurrentTime();
a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)},U9=function(a,b,c){a.Y=b;
c&&a.X.storeUserVolume&&!a.X.useMediaVolume&&!b.unstorable&&(bj("yt-player-volume",b),bj("yt-player-volume",b,2592E3));T9(a);a.X.useMediaVolume||(b=ec(b),a.X.storeUserVolume||(b.unstorable=!0),a.o.Ea("onVolumeChange",b))},T9=function(a){var b=a.getVideoData();
b.bi||(a.B.setVolume(a.Y.volume*(a.X.useMediaVolume?rx.A:b.ai)/100),a.B.o.muted=a.Y.muted)},V9=function(a,b){var c=!!b,d=!!a.bb!=c;
a.bb=b;a.X.experiments.ga("legacy_player_fullscreen_order")?d&&(a.K.A("fsc"),a.X.Zf=c,a.G.Je()):(a.X.Zf=c,a.G.Je(),d&&a.K.A("fsc"));d&&(a.o.U("fullscreentoggled",c),d=Q4(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId,time:a.getCurrentTime()},a.Ra.De()&&(c.listId=a.Ra.De()),a.o.Ea("onFullscreenChange",c))},xq=function(a,b,c){a.o.U(b,c);
if(c&&AH(a.X)){var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&a.o.Ea(d,c)}},W9=function(a){var b=a.A.getVideoData(),b=new rx({video_id:b.videoId,
oauth_token:b.oauthToken});K9(a,b,1)},I9=function(a,b){Cv(a.fa);
a.fa=0;var c=wq(a,b);c&&1!=a.M&&2!=a.M&&(zN(a.D),1==b&&o9(a,a.J),aM(c),xq(a,"cuerangesremoved",a.F.F.o.o||[]),c.F.reset())},X9=function(a,b){if(QM(a.Ra)){var c=a.ea.play_pause?a.ra:null;
c?c.se("control_play"):a.gf(b)}},Y9=function(a,b,c,d,e){var f=wq(a,e);
if(!f||2!=f.J&&!Xx(f.getVideoData()))(f=a.ea.seek?a.ra:null)?f.se("control_seek",b):a.xg(b,c,d,e)},Z9=function(a,b,c){a.Pb=b;
a.ha=c;a.o.U("sizestylechange",b,c);a.G.Je()},$9=function(a,b,c,d,e){c=a.X.$a&&a.J&&b==a.J.va?a.J.od(c,d):(a.X.$a||e)&&a.H&&a.H.F&&b==a.H.va?a.H.od(c,d):b&&c?(a=AM(a.D,b))?a.od(c,d):null:null;
return c},a$=function(a,b,c){if(b){if(a.X.$a&&a.J&&b==a.J.va)return a.J.lf();
if((a.X.$a||c)&&a.H&&a.H.F&&b==a.H.va)return a.H.lf()}else return b=CN(a.D),a.X.$a&&a.J&&b.push(a.J.va),(a.X.$a||c)&&a.H&&a.H.F&&b.push(a.H.va),b;return CN(a.D,b)},yn=yn||{},aa=this,ka="closure_uid_"+(1E9*Math.random()>>>0),ma=0,K=Date.now||function(){return+new Date};B(ta,Error);ta.prototype.name="CustomError";var Kg;var Ra=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Aa=/&/g,Ba=/</g,Ca=/>/g,Da=/"/g,Ea=/'/g,Fa=/\x00/g,za=/[\x00&<>"']/,La=/&([^;\s<&]+);?/g,bn={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},an={"'":"\\'"},Oa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Wa=2147483648*Math.random()|0;var ib=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;
if(w(a))return w(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},Ioa=Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.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(w(a))return w(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},F=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ae=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,k=w(a)?a.split(""):a,m=0;m<d;m++)if(m in k){var l=k[m];
b.call(c,l,m,a)&&(e[f++]=l)}return e},ji=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=w(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e},oe=Array.prototype.reduce?function(a,b,c,d){d&&(b=y(b,d));
return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;
F(a,function(c,k){e=b.call(d,e,c,k,a)});
return e},zh=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1},Se=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};G.prototype.Xa=!1;G.prototype.isDisposed=function(){return this.Xa};
G.prototype.dispose=function(){this.Xa||(this.Xa=!0,this.V())};
G.prototype.V=function(){if(this.La)for(;this.La.length;)this.La.shift()()};var gc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");jc.prototype.stopPropagation=function(){this.A=!0};
jc.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Hr=!1};lc[" "]=v;var oc;a:{var b$=aa.navigator;if(b$){var c$=b$.userAgent;if(c$){oc=c$;break a}}oc=""};var Ac=qc(),Tg=pc("Trident")||pc("MSIE"),tu=pc("Edge"),CH=tu||Tg,Rq=pc("Gecko")&&!(Na(oc,"WebKit")&&!pc("Edge"))&&!(pc("Trident")||pc("MSIE"))&&!pc("Edge"),zc=Na(oc,"WebKit")&&!pc("Edge"),x5=zc&&pc("Mobile"),FL=pc("Macintosh"),JH=pc("Android"),Rba=sc(),nO=pc("iPad"),d$;a:{var e$="",f$=function(){var a=oc;if(Rq)return/rv\:([^\);]+)(\)|;)/.exec(a);if(tu)return/Edge\/([\d\.]+)/.exec(a);if(Tg)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(zc)return/WebKit\/(\S+)/.exec(a);if(Ac)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
f$&&(e$=f$?f$[1]:"");if(Tg){var g$=tc();if(null!=g$&&g$>(0,window.parseFloat)(e$)){d$=String(g$);break a}}d$=e$}var vc=d$,uc={},h$=aa.document,xc=h$&&Tg?tc()||("CSS1Compat"==h$.compatMode?(0,window.parseInt)(vc,10):5):void 0;var Xc=!Tg||yc(9),Joa=Tg&&!wc("9");!zc||wc("528");Rq&&wc("1.9b")||Tg&&wc("8")||Ac&&wc("9.5")||zc&&wc("528");Rq&&!wc("8")||Tg&&wc("9");var Koa={CLICK:"click",MM:"rightclick",BJ:"dblclick",lL:"mousedown",rL:"mouseup",qL:"mouseover",pL:"mouseout",oL:"mousemove",mL:"mouseenter",nL:"mouseleave",QM:"selectstart",dO:"wheel",QK:"keypress",PK:"keydown",RK:"keyup",TI:"blur",eK:"focus",CJ:"deactivate",fK:Tg?"focusin":"DOMFocusIn",gK:Tg?"focusout":"DOMFocusOut",iJ:"change",GM:"reset",PM:"select",mN:"submit",BK:"input",xM:"propertychange",UJ:"dragstart",PJ:"drag",RJ:"dragenter",TJ:"dragover",SJ:"dragleave",DROP:"drop",QJ:"dragend",AN:"touchstart",
zN:"touchmove",yN:"touchend",xN:"touchcancel",QI:"beforeunload",sJ:"consolemessage",uJ:"contextmenu",JJ:"DOMContentLoaded",ERROR:"error",qK:"help",LOAD:"load",gL:"losecapture",ZL:"orientationchange",BM:"readystatechange",HM:"resize",OM:"scroll",JN:"unload",kK:"hashchange",bM:"pagehide",cM:"pageshow",rM:"popstate",vJ:"copy",eM:"paste",AJ:"cut",LI:"beforecopy",MI:"beforecut",NI:"beforepaste",WL:"online",TL:"offline",MESSAGE:"message",rJ:"connect",xI:Cc("AnimationStart"),vI:Cc("AnimationEnd"),wI:Cc("AnimationIteration"),
DN:Cc("TransitionEnd"),kM:"pointerdown",qM:"pointerup",jM:"pointercancel",nM:"pointermove",pM:"pointerover",oM:"pointerout",lM:"pointerenter",mM:"pointerleave",jK:"gotpointercapture",hL:"lostpointercapture",wL:"MSGestureChange",xL:"MSGestureEnd",yL:"MSGestureHold",zL:"MSGestureStart",AL:"MSGestureTap",BL:"MSGotPointerCapture",CL:"MSInertiaStart",DL:"MSLostPointerCapture",FL:"MSPointerCancel",GL:"MSPointerDown",HL:"MSPointerEnter",IL:"MSPointerHover",JL:"MSPointerLeave",KL:"MSPointerMove",LL:"MSPointerOut",
ML:"MSPointerOver",NL:"MSPointerUp",TEXT:"text",nN:"textInput",pJ:"compositionstart",qJ:"compositionupdate",oJ:"compositionend",aK:"exit",YK:"loadabort",ZK:"loadcommit",$K:"loadredirect",aL:"loadstart",bL:"loadstop",JM:"responsive",YM:"sizechanged",KN:"unresponsive",YN:"visibilitychange",iN:"storage",OJ:"DOMSubtreeModified",KJ:"DOMNodeInserted",MJ:"DOMNodeRemoved",NJ:"DOMNodeRemovedFromDocument",LJ:"DOMNodeInsertedIntoDocument",HJ:"DOMAttrModified",IJ:"DOMCharacterDataModified",OI:"beforeprint",mI:"afterprint"};B(Dc,jc);
Dc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?Rq&&(nc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,
this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);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.metaKey=a.metaKey;this.state=a.state;this.o=a;a.defaultPrevented&&this.preventDefault()};
Dc.prototype.stopPropagation=function(){Dc.N.stopPropagation.call(this);this.o.stopPropagation?this.o.stopPropagation():this.o.cancelBubble=!0};
Dc.prototype.preventDefault=function(){Dc.N.preventDefault.call(this);var a=this.o;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Joa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Ec="closure_listenable_"+(1E6*Math.random()|0),Gc=0;Jc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.o))return!1;var e=this.o[a];b=Kc(e,b,c,d);return-1<b?(Ic(e[b]),ob(e,b),0==e.length&&(delete this.o[a],this.A--),!0):!1};
Jc.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.o)if(!a||c==a){for(var d=this.o[c],e=0;e<d.length;e++)++b,Ic(d[e]);delete this.o[c];this.A--}return b};var Sc="closure_lm_"+(1E6*Math.random()|0),ad={},Vc=0,dd="__closure_events_fn_"+(1E9*Math.random()>>>0);B(J,G);J.prototype[Ec]=!0;h=J.prototype;h.ng=function(a){this.xa=a};
h.addEventListener=function(a,b,c,d){Oc(this,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){Zc(this,a,b,c,d)};
h.aa=function(a){var b,c=this.xa;if(c){b=[];for(var d=1;c;c=c.xa)b.push(c),++d}c=this.Na;d=a.type||a;if(w(a))a=new jc(a,c);else if(a instanceof jc)a.target=a.target||c;else{var e=a;a=new jc(d,c);hc(a,e)}var e=!0,f;if(b)for(var k=b.length-1;!a.A&&0<=k;k--)f=a.currentTarget=b[k],e=ed(f,d,!0,a)&&e;a.A||(f=a.currentTarget=c,e=ed(f,d,!0,a)&&e,a.A||(e=ed(f,d,!1,a)&&e));if(b)for(k=0;!a.A&&k<b.length;k++)f=a.currentTarget=b[k],e=ed(f,d,!1,a)&&e;return e};
h.V=function(){J.N.V.call(this);this.removeAllListeners();this.xa=null};
h.R=function(a,b,c,d){return Lc(this.P,String(a),b,!1,c,d)};
h.za=function(a,b,c,d){return this.P.remove(String(a),b,c,d)};
h.removeAllListeners=function(a){return this.P?this.P.removeAll(a):0};fd.prototype.get=function(){var a;0<this.A?(this.A--,a=this.o,this.o=a.next,a.next=null):a=this.B();return a};var kd;var ud=new fd(function(){return new od},function(a){a.reset()},100);
nd.prototype.remove=function(){var a=null;this.o&&(a=this.o,this.o=this.o.next,this.o||(this.A=null),a.next=null);return a};
od.prototype.set=function(a,b){this.o=a;this.scope=b;this.next=null};
od.prototype.reset=function(){this.next=this.scope=this.o=null};var qd,sd=!1,td=new nd;Bd.prototype.reset=function(){this.context=this.A=this.C=this.o=null;this.B=!1};
var Cd=new fd(function(){return new Bd},function(a){a.reset()},100);
Ad.prototype.then=function(a,b,c){return Gd(this,ha(a)?a:null,ha(b)?b:null,c)};
xd(Ad);Ad.prototype.cancel=function(a){0==this.o&&vd(function(){var b=new Nd(a);Id(this,b)},this)};
Ad.prototype.J=function(a){this.o=0;zd(this,2,a)};
Ad.prototype.K=function(a){this.o=0;zd(this,3,a)};
Ad.prototype.H=function(){for(var a=null;a=Jd(this);)Kd(this,a,this.o,this.G);this.F=!1};
var Rd=jd;B(Nd,ta);Nd.prototype.name="cancel";B(Sd,J);h=Sd.prototype;h.enabled=!1;h.yc=null;h.zx=function(){if(this.enabled){var a=K()-this.C;0<a&&a<.8*this.o?this.yc=this.A.setTimeout(this.B,this.o-a):(this.yc&&(this.A.clearTimeout(this.yc),this.yc=null),this.aa("tick"),this.enabled&&(this.yc=this.A.setTimeout(this.B,this.o),this.C=K()))}};
h.start=function(){this.enabled=!0;this.yc||(this.yc=this.A.setTimeout(this.B,this.o),this.C=K())};
h.stop=function(){this.enabled=!1;this.yc&&(this.A.clearTimeout(this.yc),this.yc=null)};
h.V=function(){Sd.N.V.call(this);this.stop();delete this.A};B(Wd,G);h=Wd.prototype;h.Wg=0;h.V=function(){Wd.N.V.call(this);this.stop();delete this.o;delete this.A};
h.start=function(a){this.stop();this.Wg=Ud(this.B,p(a)?a:this.C)};
h.xe=function(a){this.isActive()||this.start(a)};
h.stop=function(){this.isActive()&&Vd(this.Wg);this.Wg=0};
h.isActive=function(){return 0!=this.Wg};
h.$o=function(){this.Wg=0;this.o&&this.o.call(this.A)};fe.prototype.Cc=function(a){var b=[];he(this,a,b);return b.join("")};
var ke={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},je=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;h=re.prototype;h.clone=function(){return new re(this.x,this.y)};
h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
h.scale=function(a,b){var c=ga(b)?b:a;this.x*=a;this.y*=c;return this};h=te.prototype;h.getWidth=function(){return this.right-this.left};
h.getHeight=function(){return this.bottom-this.top};
h.clone=function(){return new te(this.top,this.right,this.bottom,this.left)};
h.contains=function(a){return this&&a?a instanceof te?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};
h.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};
h.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};
h.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};
h.scale=function(a,b){var c=ga(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};h=ue.prototype;h.clone=function(){return new ue(this.width,this.height)};
h.area=function(){return this.width*this.height};
h.aspectRatio=function(){return this.width/this.height};
h.isEmpty=function(){return!this.area()};
h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
h.scale=function(a,b){var c=ga(b)?b:a;this.width*=a;this.height*=c;return this};h=we.prototype;h.clone=function(){return new we(this.left,this.top,this.width,this.height)};
h.contains=function(a){return a instanceof we?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};
h.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};
h.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};
h.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};
h.scale=function(a,b){var c=ga(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};B(Be,G);h=Be.prototype;h.subscribe=function(a,b,c){var d=this.A[a];d||(d=this.A[a]=[]);var e=this.D;this.o[e]=a;this.o[e+1]=b;this.o[e+2]=c;this.D=e+3;d.push(e);return e};
h.qc=function(a){var b=this.o[a];if(b){var c=this.A[b];0!=this.C?(this.B.push(a),this.o[a+1]=v):(c&&pb(c,a),delete this.o[a],delete this.o[a+1],delete this.o[a+2])}return!!b};
h.U=function(a,b){var c=this.A[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.F)for(e=0;e<c.length;e++){var k=c[e];De(this.o[k+1],this.o[k+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.o[k+1].apply(this.o[k+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.qc(c)}}return 0!=e}return!1};
h.clear=function(a){if(a){var b=this.A[a];b&&(F(b,this.qc,this),delete this.A[a])}else this.o.length=0,this.A={}};
h.fb=function(a){if(a){var b=this.A[a];return b?b.length:0}a=0;for(b in this.A)a+=this.fb(b);return a};
h.V=function(){Be.N.V.call(this);this.clear();this.B.length=0};var Fe="StopIteration"in aa?aa.StopIteration:{message:"StopIteration",stack:""};Ee.prototype.next=function(){throw Fe;};
Ee.prototype.gc=function(){return this};h=Je.prototype;h.fb=function(){return this.Aa};
h.Oa=function(){Ne(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.A[this.o[b]]);return a};
h.Qa=function(){Ne(this);return this.o.concat()};
h.Te=function(a){for(var b=0;b<this.o.length;b++){var c=this.o[b];if(Ke(this.A,c)&&this.A[c]==a)return!0}return!1};
h.equals=function(a,b){if(this===a)return!0;if(this.Aa!=a.fb())return!1;var c=b||Me;Ne(this);for(var d,e=0;d=this.o[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};
h.isEmpty=function(){return 0==this.Aa};
h.clear=function(){this.A={};this.Be=this.Aa=this.o.length=0};
h.remove=function(a){return Ke(this.A,a)?(delete this.A[a],this.Aa--,this.Be++,this.o.length>2*this.Aa&&Ne(this),!0):!1};
h.get=function(a,b){return Ke(this.A,a)?this.A[a]:b};
h.set=function(a,b){Ke(this.A,a)||(this.Aa++,this.o.push(a),this.Be++);this.A[a]=b};
h.forEach=function(a,b){for(var c=this.Qa(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
h.clone=function(){return new Je(this)};
h.gc=function(a){Ne(this);var b=0,c=this.Be,d=this,e=new Ee;e.next=function(){if(c!=d.Be)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw Fe;var e=d.o[b++];return a?e:d.A[e]};
return e};var Ve=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,jf=/#|$/,lf=/[?&]($|#)/;h=N.prototype;h.toString=function(){var a=[],b=this.C;b&&a.push(wf(b,i$,!0),":");var c=this.A;if(c||"file"==b)a.push("//"),(b=this.H)&&a.push(wf(b,i$,!0),"@"),a.push(wa(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.B)this.A&&"/"!=c.charAt(0)&&a.push("/"),a.push(wf(c,"/"==c.charAt(0)?Loa:Moa,!0));(c=this.o.toString())&&a.push("?",c);(c=this.Xe())&&a.push("#",wf(c,Noa));return a.join("")};
h.resolve=function(a){var b=this.clone(),c=!!a.C;c?of(b,a.C):c=!!a.H;c?b.H=a.H:c=!!a.A;c?pf(b,a.A):c=null!=a.D;var d=a.B;if(c)qf(b,a.D);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.A&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Ha(e,"./")||Ha(e,"/.")){for(var d=ua(e,"/"),e=e.split("/"),f=[],k=0;k<e.length;){var m=e[k++];"."==m?d&&k==e.length&&f.push(""):".."==m?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&k==e.length&&f.push("")):
(f.push(m),d=!0)}d=f.join("/")}else d=e}c?rf(b,d):c=""!==a.o.toString();c?sf(b,tf(a.o.toString())):c=!!a.J;c&&(b.J=a.Xe());return b};
h.clone=function(){return new N(this)};
h.Zo=function(){return this.o.toString()};
h.Xe=function(){return this.J};
var i$=/[#\/\?@]/g,Moa=/[\#\?:]/g,Loa=/[\#\?]/g,xf=/[\#\?@]/g,Noa=/#/g;h=uf.prototype;h.fb=function(){Gf(this);return this.Aa};
h.remove=function(a){Gf(this);a=Hf(this,a);return Le(this.o,a)?(this.A=null,this.Aa=this.Aa-this.o.get(a).length,this.o.remove(a)):!1};
h.clear=function(){this.o=this.A=null;this.Aa=0};
h.isEmpty=function(){Gf(this);return 0==this.Aa};
h.Te=function(a){var b=this.Oa();return jb(b,a)};
h.Qa=function(){Gf(this);for(var a=this.o.Oa(),b=this.o.Qa(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
h.Oa=function(a){Gf(this);var b=[];if(w(a))Jf(this,a)&&(b=rb(b,this.o.get(Hf(this,a))));else{a=this.o.Oa();for(var c=0;c<a.length;c++)b=rb(b,a[c])}return b};
h.set=function(a,b){Gf(this);this.A=null;a=Hf(this,a);Jf(this,a)&&(this.Aa=this.Aa-this.o.get(a).length);this.o.set(a,[b]);this.Aa=this.Aa+1;return this};
h.get=function(a,b){var c=a?this.Oa(a):[];return 0<c.length?String(c[0]):b};
h.toString=function(){if(this.A)return this.A;if(!this.o)return"";for(var a=[],b=this.o.Qa(),c=0;c<b.length;c++)for(var d=b[c],e=wa(d),d=this.Oa(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+wa(d[f]));a.push(k)}return this.A=a.join("&")};
h.clone=function(){var a=new uf;a.A=this.A;this.o&&(a.o=this.o.clone(),a.Aa=this.Aa);return a};
h.extend=function(a){for(var b=0;b<arguments.length;b++)Re(arguments[b],function(a,b){Ff(this,b,a)},this)};/*
 Portions of this code are from the google-caja project, received by
 Google under the Apache license (http://code.google.com/p/google-caja/).
 All other code is Copyright 2009 Google, Inc. All Rights Reserved.

// Copyright (C) 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

*/
var Lf=void 0;var Eg={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var Wf=/<[^>]*>|&[^;]+;/g,O0=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),bg=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),$f=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),ag=/^http:\/\/.*/,gH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
Zf=/\s+/,cg=/[\d\u06f0-\u06f9]/;fg.prototype.bf=!0;fg.prototype.he=function(){return this.o};
fg.prototype.toString=function(){return"Const{"+this.o+"}"};
var eg={};jg.prototype.bf=!0;var ig={};jg.prototype.he=function(){return this.o};
var Cg=kg(""),Bg=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;mg.prototype.bf=!0;mg.prototype.he=function(){return this.o};
mg.prototype.Ol=!0;mg.prototype.Ff=function(){return 1};
var og=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,lg={};pg("about:blank");sg.prototype.bf=!0;sg.prototype.he=function(){return this.o};
sg.prototype.Ol=!0;sg.prototype.Ff=function(){return 1};
var rg={};wg.prototype.Ol=!0;wg.prototype.Ff=function(){return this.A};
wg.prototype.bf=!0;wg.prototype.he=function(){return this.o};
var Ag=/^[a-zA-Z0-9-]+$/,Dg={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Ooa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},vg={};yg("<!DOCTYPE html>",0);yg("",0);yg("<br>",0);var Xg=!Tg||yc(9),fh=!Rq&&!Tg||Tg&&yc(9)||Rq&&wc("1.9.1");Tg&&wc("9");var kh=Tg||Ac||zc;var Pg={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};h=Ig.prototype;h.ma=function(a){return w(a)?this.o.getElementById(a):a};
h.Bx=function(a,b,c){return Wg(this.o,arguments)};
h.createElement=function(a){return this.o.createElement(a)};
h.appendChild=$g;h.isElement=jh;h.contains=mh;var xh=zc?"webkit":Rq?"moz":Tg?"ms":Ac?"o":"",j$=r("yt.dom.getNextId_");if(!j$){j$=function(){return++Poa};
q("yt.dom.getNextId_",j$,void 0);var Poa=0};var Eh={enablejsapi:1},Fh={},Gh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};Hh.prototype.clone=function(){var a=new Hh,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ca(c)?a[b]=ec(c):a[b]=c}return a};var Mh=window.document.currentScript&&-1!=window.document.currentScript.src.indexOf("?loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",Nh=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"],k$=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"],Kh=Ih()?k$.concat(Nh):Nh.concat(k$);var Ww=pc("Firefox"),YI=sc()||pc("iPod"),yx=pc("iPad"),ZI=pc("Android")&&!(rc()||pc("Firefox")||qc()||pc("Silk")),El=rc(),qu=pc("Safari")&&!(rc()||pc("Coast")||qc()||pc("Edge")||pc("Silk")||pc("Android"))&&!(sc()||pc("iPad")||pc("iPod"));var di=K(),Sh=null,bi=Array(50),ai=-1,ci=!1;var pi={};var ri=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",ri,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Ai=window.yt&&window.yt.msgs_||r("window.ytcfg.msgs")||{};q("yt.msgs_",Ai,void 0);
var sa=function(a,b){var c=b||{},d=a in Ai?Ai[a]:a;if(d)for(var e in c)var f=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),f),d=d.replace(new RegExp("\\$"+e,"gi"),f);return d},Qt=window.performance&&window.performance.timing&&window.performance.now&&window.__yt_experimental_now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};var Qoa=r("yt.pubsub.instance_")||new Be;Be.prototype.subscribe=Be.prototype.subscribe;Be.prototype.unsubscribeByKey=Be.prototype.qc;Be.prototype.publish=Be.prototype.U;Be.prototype.clear=Be.prototype.clear;q("yt.pubsub.instance_",Qoa,void 0);var Ei=r("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Ei,void 0);var Gi=r("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Gi,void 0);var Fi=r("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Fi,void 0);
var Di=r("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Di,void 0);B(Mi,Li);Mi.prototype.fb=function(){var a=0;He(this.gc(!0),function(){a++});
return a};
Mi.prototype.clear=function(){var a=Ie(this.gc(!0)),b=this;F(a,function(a){b.remove(a)})};B(Ni,Mi);h=Ni.prototype;h.isAvailable=function(){if(!this.o)return!1;try{return this.o.setItem("__sak","1"),this.o.removeItem("__sak"),!0}catch(a){return!1}};
h.set=function(a,b){try{this.o.setItem(a,b)}catch(c){if(0==this.o.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
h.get=function(a){a=this.o.getItem(a);if(!w(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
h.remove=function(a){this.o.removeItem(a)};
h.fb=function(){return this.o.length};
h.gc=function(a){var b=0,c=this.o,d=new Ee;d.next=function(){if(b>=c.length)throw Fe;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!w(d))throw"Storage mechanism: Invalid value was encountered";return d};
return d};
h.clear=function(){this.o.clear()};
h.key=function(a){return this.o.key(a)};B(Oi,Ni);B(Pi,Ni);Qi.prototype.set=function(a,b){p(b)?this.o.set(a,ge(b)):this.o.remove(a)};
Qi.prototype.get=function(a){var b;try{b=this.o.get(a)}catch(c){return}if(null!==b)try{return de(b)}catch(c){throw"Storage: Invalid value was encountered";}};
Qi.prototype.remove=function(a){this.o.remove(a)};B(Ri,Qi);Ri.prototype.set=function(a,b){Ri.N.set.call(this,a,Ti(b))};
Ri.prototype.A=function(a){a=Ri.N.get.call(this,a);if(!p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Ri.prototype.get=function(a){if(a=this.A(a)){if(a=a.data,!p(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};B(Ui,Ri);Ui.prototype.set=function(a,b,c){if(b=Ti(b)){if(c){if(c<K()){Ui.prototype.remove.call(this,a);return}b.expiration=c}b.creation=K()}Ui.N.set.call(this,a,b)};
Ui.prototype.A=function(a,b){var c=Ui.N.A.call(this,a);if(c)if(!b&&Vi(c))Ui.prototype.remove.call(this,a);else return c};B(Wi,Ui);var Zi,l$=new Oi;Zi=l$.isAvailable()?new Wi(l$):null;var aj,m$=new Pi;aj=m$.isAvailable()?new Wi(m$):null;var Xj={FI:"atp",ZM:"ska",AM:"que",OL:"mus",VM:"sus"};var pj=null;"undefined"!=typeof window.XMLHttpRequest?pj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(pj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var sj={"X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};Aj.prototype.F=function(a,b,c,d){b?a(d):a({text:c.responseText})};
Aj.prototype.D=function(a,b){a(Error("Request error: "+b.status))};
Aj.prototype.G=function(a){a(Error("request timed out"))};Ej.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.o+",status:"+this.status+"}"};B(Lj,G);Lj.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Y.subscribe(a,b,c)};
Lj.prototype.Ia=function(a,b,c){return this.isDisposed()?!1:Ce(this.Y,a,b,c)};
Lj.prototype.qc=function(a){return this.isDisposed()?!1:this.Y.qc(a)};
Lj.prototype.U=function(a,b){return this.isDisposed()?!1:this.Y.U.apply(this.Y,arguments)};B(Mj,Lj);Mj.prototype.sc=function(){return this.screens};
Mj.prototype.contains=function(a){return!!Jj(this.screens,a)};
Mj.prototype.get=function(a){return a?Kj(this.screens,a):null};
Mj.prototype.info=function(a){$h(this.F,a)};B(Qj,Lj);var n$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];h=Qj.prototype;h.start=function(){!this.o&&(0,window.isNaN)(this.A)&&this.Cs()};
h.stop=function(){this.o&&(this.o.abort(),this.o=null);(0,window.isNaN)(this.A)||(xi(this.A),this.A=window.NaN)};
h.V=function(){this.stop();Qj.N.V.call(this)};
h.Cs=function(){this.A=window.NaN;this.o=tj(Cj(this.G,"/pairing/get_screen"),{method:"POST",Ib:{pairing_code:this.F},timeout:5E3,tb:y(this.GE,this),onError:y(this.FE,this),Od:y(this.HE,this)})};
h.GE=function(a,b){this.o=null;var c=b.screen||{};c.dialId=this.C;c.name=this.D;this.U("pairingComplete",new ei(c))};
h.FE=function(a){this.o=null;a.status&&404==a.status?this.B>=n$.length?this.U("pairingFailed",Error("DIAL polling timed out")):(a=n$[this.B],this.A=vi(y(this.Cs,this),a),this.B++):this.U("pairingFailed",Error("Server error "+a.status))};
h.HE=function(){this.o=null;this.U("pairingFailed",Error("Server not responding"))};B(Rj,Mi);Rj.prototype.set=function(a,b){this.A.set(this.o+a,b)};
Rj.prototype.get=function(a){return this.A.get(this.o+a)};
Rj.prototype.remove=function(a){this.A.remove(this.o+a)};
Rj.prototype.gc=function(a){var b=this.A.gc(!0),c=this,d=new Ee;d.next=function(){for(var d=b.next();d.substr(0,c.o.length)!=c.o;)d=b.next();return a?d.substr(c.o.length):c.A.get(d)};
return d};h=Uj.prototype;h.fb=function(){return this.o.fb()};
h.removeAll=function(a){a=Pe(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};
h.remove=function(a){return this.o.remove(Vj(a))};
h.clear=function(){this.o.clear()};
h.isEmpty=function(){return this.o.isEmpty()};
h.contains=function(a){return Le(this.o,Vj(a))};
h.Oa=function(){return this.o.Oa()};
h.clone=function(){return new Uj(this)};
h.equals=function(a){return this.fb()==Oe(a)&&Wj(this,a)};
h.gc=function(){return this.o.gc(!1)};Yj.prototype.equals=function(a){return a?this.id==a.id:!1};var ak=/\s*;\s*/;h=Zj.prototype;h.isEnabled=function(){return window.navigator.cookieEnabled};
h.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');p(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(K()+1E3*c)).toUTCString();this.o.cookie=a+"="+b+e+d+c+f};
h.get=function(a,b){for(var c=a+"=",d=(this.o.cookie||"").split(ak),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
h.remove=function(a,b,c){var d=p(this.get(a));this.set(a,"",0,b,c);return d};
h.Qa=function(){return bk(this).keys};
h.Oa=function(){return bk(this).values};
h.isEmpty=function(){return!this.o.cookie};
h.fb=function(){return this.o.cookie?(this.o.cookie||"").split(ak).length:0};
h.Te=function(a){for(var b=bk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};
h.clear=function(){for(var a=bk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var jk=new Zj(window.document);jk.A=3950;var vk,mk="";B(yk,Mj);h=yk.prototype;h.start=function(){xk(this)&&this.U("screenChange");!cj("yt-remote-lounge-token-expiration")&&zk(this);xi(this.o);this.o=vi(y(this.start,this),1E4)};
h.Nj=function(a,b){xk(this);Nj(this,a);Ak(this,!1);this.U("screenChange");b(a);a.token||zk(this)};
h.remove=function(a,b){var c=xk(this);Pj(this,a)&&(Ak(this,!1),c=!0);b(a);c&&this.U("screenChange")};
h.Hj=function(a,b,c,d){var e=xk(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,Ak(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.U("screenChange")};
h.V=function(){xi(this.o);yk.N.V.call(this)};
h.Mx=function(a){xk(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)}Ak(this,!b);b&&$h(this.F,"Missed "+b+" lounge tokens.")};
h.Lx=function(a){$h(this.F,"Requesting lounge tokens failed: "+a)};B(Ck,Lj);h=Ck.prototype;h.start=function(){var a=(0,window.parseInt)(cj("yt-remote-fast-check-period")||"0",10);(this.C=K()-144E5<a?0:a)?Gk(this):(this.C=K()+3E5,bj("yt-remote-fast-check-period",this.C),this.ym())};
h.isEmpty=function(){return ac(this.o)};
h.update=function(){Bk("Updating availability on schedule.");var a=this.D(),b=Pb(this.o,function(b,d){return b&&!!Kj(a,d)},this);
Fk(this,b)};
h.V=function(){xi(this.B);this.B=window.NaN;this.A&&(this.A.abort(),this.A=null);Ck.N.V.call(this)};
h.ym=function(){xi(this.B);this.B=window.NaN;this.A&&this.A.abort();var a=Hk(this);if(Sb(a)){var b=Cj(this.F,"/pairing/get_screen_availability"),c={lounge_token:Wb(a).join(",")};this.A=Dj(this.F,b,c,y(this.vC,this,a),y(this.uC,this))}else Fk(this,{}),Gk(this)};
h.vC=function(a,b){this.A=null;var c=Wb(Hk(this));if(Gb(c,Wb(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Fk(this,d);Gk(this)}else this.cb("Changing Screen set during request."),this.ym()};
h.uC=function(a){this.cb("Screen availability failed: "+a);this.A=null;Gk(this)};
h.cb=function(a){$h("OnlineScreenService",a)};B(Jk,Mj);h=Jk.prototype;h.start=function(){this.A.start();this.o.start();this.screens.length&&(this.U("screenChange"),this.o.isEmpty()||this.U("onlineScreenChange"))};
h.Nj=function(a,b,c){this.A.Nj(a,b,c)};
h.remove=function(a,b,c){this.A.remove(a,b,c);this.o.update()};
h.Hj=function(a,b,c,d){this.A.contains(a)?this.A.Hj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,$h(this.F,a),d(Error(a)))};
h.sc=function(a){return a?this.screens:rb(this.screens,ae(this.B,function(a){return!this.contains(a)},this))};
h.Ds=function(){return ae(this.sc(!0),function(a){return!!this.o.o[a.id]},this)};
h.Es=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new Qj(this.D,a,b,c);f.subscribe("pairingComplete",y(function(a){Mb(f);d(Kk(this,a))},this));
f.subscribe("pairingFailed",function(a){Mb(f);e(a)});
f.start();return y(f.stop,f)};
h.yx=function(a,b){for(var c=2,d=b(a,c);Nk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
h.JE=function(a,b,c,d){tj(Cj(this.D,"/pairing/get_screen"),{method:"POST",Ib:{pairing_code:a},timeout:5E3,tb:y(function(a,d){var k=new ei(d.screen||{});if(!k.name||Nk(this,k.name))k.name=this.yx(k.name,b);c(Kk(this,k))},this),
onError:y(function(a){d(Error("pairing request failed: "+a.status))},this),
Od:y(function(){d(Error("pairing request timed out."))},this)})};
h.V=function(){Mb(this.A);Mb(this.o);Jk.N.V.call(this)};
h.Xx=function(){Ok(this);this.U("screenChange");this.o.update()};
Jk.prototype.dispose=Jk.prototype.dispose;B(Qk,Lj);h=Qk.prototype;h.ij=function(a){this.B=a;this.U("sessionScreen",this.B)};
h.nc=function(a){this.isDisposed()||(a&&Rk(this,""+a),this.B=null,this.U("sessionScreen",null))};
h.info=function(a){$h(this.M,a)};
h.Gs=function(){return null};
h.Hm=function(a){var b=this.A;a?(b.displayStatus=new window.chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;window.chrome.cast.setReceiverDisplayStatus(b,y(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),y(function(){Rk(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
h.V=function(){this.Hm("");Qk.N.V.call(this)};B(Tk,Qk);h=Tk.prototype;h.Gm=function(a){if(this.o){if(this.o==a)return;Rk(this,"Overriding cast sesison with new session object");this.o.removeUpdateListener(this.G);this.o.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.F)}this.o=a;this.o.addUpdateListener(this.G);this.o.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.F);this.C&&Vk(this);Uk(this,"getMdxSessionStatus")};
h.cg=function(a){this.info("launchWithParams: "+ge(a));this.C=a;this.o&&Vk(this)};
h.stop=function(){this.o?this.o.stop(y(function(){this.nc()},this),y(function(){this.nc(Error("Failed to stop receiver app."))},this)):this.nc(Error("Stopping cast device witout session."))};
h.Hm=v;h.V=function(){this.info("disposeInternal");xi(this.D);this.D=0;this.o&&(this.o.removeUpdateListener(this.G),this.o.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.F));this.o=null;Tk.N.V.call(this)};
h.rD=function(a,b){if(!this.isDisposed())if(b){var c=ee(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+ge(c));switch(d){case "mdxSessionStatus":Sk(this,c.screenId);break;default:Rk(this,"Unknown youtube message: "+d)}}else Rk(this,"Unable to parse message.")}else Rk(this,"No data in message.")};
h.Vo=function(a,b,c,d){Mk(this.J,this.A.label,a,this.A.friendlyName,y(function(e){e?b(e):0<=d?(Rk(this,"Screen "+a+" appears to be offline. "+d+" retries left."),vi(y(this.Vo,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
h.Gs=function(){return this.o};
h.KE=function(a){this.isDisposed()||a||(Rk(this,"Cast session died."),this.nc())};B(Wk,Qk);h=Wk.prototype;h.Gm=function(a){this.D=a;this.D.addUpdateListener(this.L)};
h.cg=function(a){this.C=a;this.G()};
h.stop=function(){this.o();this.o=v;xi(this.F);this.D?this.D.stop(y(this.nc,this,null),y(this.nc,this,"Failed to stop DIAL device.")):this.nc()};
h.V=function(){this.o();this.o=v;xi(this.F);this.D&&this.D.removeUpdateListener(this.L);this.D=null;Wk.N.V.call(this)};
h.NE=function(a){this.isDisposed()||a||(Rk(this,"DIAL session died."),this.o(),this.o=v,this.nc())};
h.Pl=function(a){this.K=Fj();if(this.C){var b=new window.chrome.cast.DialLaunchResponse(!0,Yk(this));a(b);Xk(this)}else this.G=y(function(){xi(this.F);this.G=v;this.F=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,Yk(this));a(b);Xk(this)},this),this.F=vi(y(function(){this.G()},this),100)};
h.nz=function(a,b){Mk(this.J,this.H.receiver.label,a,this.A.friendlyName,y(function(a){a&&a.token?(this.ij(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.Pl(b)},this),y(function(a){Rk(this,"Failed to get DIAL screen: "+a);
this.Pl(b)},this))};B(Zk,Qk);Zk.prototype.stop=function(){this.nc()};
Zk.prototype.Gm=v;Zk.prototype.cg=function(){xi(this.o);this.o=window.NaN;var a=Kj(this.J.sc(),this.A.label);a?this.ij(a):this.nc(Error("No such screen"))};
Zk.prototype.V=function(){xi(this.o);this.o=window.NaN;Zk.N.V.call(this)};B($k,Lj);h=$k.prototype;
h.init=function(a,b){window.chrome.cast.timeout.requestSession=3E4;var c=new window.chrome.cast.SessionRequest("233637DE");c.dialRequest=new window.chrome.cast.DialRequest("YouTube");var d=window.chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?window.chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:window.chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new window.chrome.cast.ApiConfig(c,y(this.gr,this),y(this.nC,this),d,e);c.customDialLaunchCallback=y(this.XA,this);window.chrome.cast.initialize(c,y(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.C),Wh(cl),this.A.subscribe("onlineScreenChange",y(this.Fs,this)),this.B=fl(this),window.chrome.cast.setCustomReceivers(this.B,v,y(function(a){this.cb("Failed to set initial custom receivers: "+ge(a))},this)),this.U("yt-remote-cast2-availability-change",dl(this)),b(!0))},this),y(function(a){this.cb("Failed to initialize API: "+ge(a));
b(!1)},this))};
h.RD=function(a,b){bl("Setting connected screen ID: "+a+" -> "+b);if(this.o){var c=this.o.B;if(!a||c&&c.id!=a)bl("Unsetting old screen status: "+this.o.A.friendlyName),Mb(this.o),this.o=null}if(a&&b){if(!this.o){c=Kj(this.A.sc(),a);if(!c){bl("setConnectedScreenStatus: Unknown screen.");return}var d=al(this,c);d||(bl("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.B.push(d),
window.chrome.cast.setCustomReceivers(this.B,v,y(function(a){this.cb("Failed to set initial custom receivers: "+ge(a))},this)));
bl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);el(this,new Zk(this.A,d),!0)}this.o.Hm(b)}else bl("setConnectedScreenStatus: no screen.")};
h.TD=function(a){this.isDisposed()?this.cb("Setting connection data on disposed cast v2"):this.o?this.o.cg(a):this.cb("Setting connection data without a session")};
h.ME=function(){this.isDisposed()?this.cb("Stopping session on disposed cast v2"):this.o?(this.o.stop(),Mb(this.o),this.o=null):bl("Stopping non-existing session")};
h.requestSession=function(){window.chrome.cast.requestSession(y(this.gr,this),y(this.zC,this))};
h.V=function(){this.A.Ia("onlineScreenChange",y(this.Fs,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.C);Xh(cl);Mb(this.o);$k.N.V.call(this)};
h.cb=function(a){$h("Controller",a)};
h.ir=function(a,b){this.o==a&&(b||el(this,null),this.U("yt-remote-cast2-session-change",b))};
h.lC=function(a,b){if(!this.isDisposed())if(a)switch(bl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.o)if(this.o.A.label!=a.label)bl("onReceiverAction_: Stopping active receiver: "+this.o.A.friendlyName),this.o.stop();else{bl("onReceiverAction_: Casting to active receiver.");this.o.B&&this.U("yt-remote-cast2-session-change",this.o.B);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:el(this,new Zk(this.A,a));
break;case window.chrome.cast.ReceiverType.DIAL:el(this,new Wk(this.A,a));break;case window.chrome.cast.ReceiverType.CAST:el(this,new Tk(this.A,a));break;default:this.cb("Unknown receiver type: "+a.receiverType)}break;case window.chrome.cast.ReceiverAction.STOP:this.o&&this.o.A.label==a.label?this.o.stop():this.cb("Stopping receiver w/o session: "+a.friendlyName)}else this.cb("onReceiverAction_ called without receiver.")};
h.XA=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.cb("Not DIAL receiver: "+b.friendlyName),b.receiverType=window.chrome.cast.ReceiverType.DIAL);var c=this.o?this.o.A:null;if(!c||c.label!=b.label)return this.cb("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),window.Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=window.chrome.cast.ReceiverType.DIAL){if(this.o.B)return bl("Reselecting dial screen."),
this.U("yt-remote-cast2-session-change",this.o.B),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.cb('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);el(this,new Wk(this.A,b))}b=this.o;b.H=a;return b.H.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(y(b.nz,b,(b.H.extraData||{}).screenId||null)):new window.Promise(y(b.Pl,b))};
h.gr=function(a){if(!this.isDisposed()){bl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.o)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)bl("Got resumed cast session before resumed mdx connection."),el(this,new Tk(this.A,b),!0);else{this.cb("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.o.A,d=Kj(this.A.sc(),c.label);d&&fi(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(bl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Mb(this.o),this.o=new Tk(this.A,b),this.o.subscribe("sessionScreen",y(this.ir,this,this.o)),this.o.cg(null));this.o.Gm(a)}}};
h.LE=function(){return this.o?this.o.Gs():null};
h.zC=function(a){this.isDisposed()||(this.cb("Failed to estabilish a session: "+ge(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&el(this,null))};
h.nC=function(a){bl("Receiver availability updated: "+a);if(!this.isDisposed()){var b=dl(this);this.D=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;dl(this)!=b&&this.U("yt-remote-cast2-availability-change",dl(this))}};
h.Fs=function(){if(!this.isDisposed()){var a=dl(this);this.B=fl(this);bl("Updating custom receivers: "+ge(this.B));window.chrome.cast.setCustomReceivers(this.B,v,y(function(){this.cb("Failed to set custom receivers.")},this));
var b=dl(this);b!=a&&this.U("yt-remote-cast2-availability-change",b)}};
$k.prototype.setLaunchParams=$k.prototype.TD;$k.prototype.setConnectedScreenStatus=$k.prototype.RD;$k.prototype.stopSession=$k.prototype.ME;$k.prototype.getCastSession=$k.prototype.LE;$k.prototype.requestSession=$k.prototype.requestSession;$k.prototype.init=$k.prototype.init;$k.prototype.dispose=$k.prototype.dispose;var ql=null,sl=[];Il.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Il.prototype.Np=function(){return this.event?!1===this.event.returnValue:!1};
Il.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Il.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};
var Hl={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var Kl=r("yt.events.listeners_")||{};q("yt.events.listeners_",Kl,void 0);var Ml=r("yt.events.counter_")||{count:0};q("yt.events.counter_",Ml,void 0);var gm=!1,em=null,hm=r("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",hm,void 0);new um;um.prototype.set=function(a){this.o=a};
um.prototype.reset=function(){this.set(K())};
um.prototype.get=function(){return this.o};vm.prototype.stringify=function(a){return this.A.Cc(a)};
vm.prototype.parse=function(a){return this.o(a)};h=wm.prototype;h.get=function(a){a=xm(this,a);return this.o[a]};
h.set=function(a,b){a=xm(this,a);this.o[a]=b};
h.fb=function(){return this.o.length};
h.isEmpty=function(){return 0==this.o.length};
h.clear=function(){this.A=this.o.length=0};
h.Oa=function(){for(var a=this.fb(),b=this.fb(),c=[],a=this.fb()-a;a<b;a++)c.push(this.get(a));return c};
h.Qa=function(){for(var a=[],b=this.fb(),c=0;c<b;c++)a[c]=c;return a};
h.Te=function(a){for(var b=this.fb(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};B(ym,G);h=ym.prototype;h.pg=!1;h.kh=0;h.Ye=null;h.Lf=function(a){this.o=arguments;this.Ye||this.kh?this.pg=!0:zm(this)};
h.stop=function(){this.Ye&&(Vd(this.Ye),this.Ye=null,this.pg=!1,this.o=[])};
h.pause=function(){this.kh++};
h.resume=function(){this.kh--;this.kh||!this.pg||this.Ye||(this.pg=!1,zm(this))};
h.V=function(){ym.N.V.call(this);this.stop()};
h.LC=function(){this.Ye=null;this.pg&&!this.kh&&(this.pg=!1,zm(this))};B(Am,G);var Em=[];h=Am.prototype;h.R=function(a,b,c,d){return Cm(this,a,b,c,d)};
h.za=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)this.za(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.C||this,c=Pc(c),d=!!d,b=Fc(a)?Nc(a.P,String(b),c,d,e):a?(a=Rc(a))?Nc(a,b,c,d,e):null:null,b&&($c(b),delete this.A[b.key]);return this};
h.removeAll=function(){Ob(this.A,function(a,b){this.A.hasOwnProperty(b)&&$c(a)},this);
this.A={}};
h.V=function(){Am.N.V.call(this);this.removeAll()};
h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Jm.prototype.o=null;var o$;B(Mm,Jm);o$=new Mm;h=Om.prototype;h.Ze=null;h.Rc=!1;h.vg=null;h.cn=null;h.oh=null;h.Mf=null;h.ie=null;h.we=null;h.df=null;h.Cb=null;h.Ah=0;h.Sc=null;h.Kj=null;h.$e=null;h.Zg=-1;h.Lr=!0;h.Pe=!1;h.sl=0;h.mj=null;var Wm={},Um={};h=Om.prototype;h.setTimeout=function(a){this.D=a};
h.ED=function(a){a=a.target;var b=this.mj;b&&3==zn(a)?b.Lf():this.vs(a)};
h.vs=function(a){try{if(a==this.Cb)a:{var b=zn(this.Cb),c=this.Cb.A,d=this.Cb.getStatus();if(Tg&&!yc(10)||zc&&!wc("420+")){if(4>b)break a}else if(3>b||3==b&&!Ac&&!Dn(this.Cb))break a;this.Pe||4!=b||7==c||(8==c||0>=d?this.o.Oc(3):this.o.Oc(2));fn(this);var e=this.Cb.getStatus();this.Zg=e;var f=Dn(this.Cb);(this.Rc=200==e)?(4==b&&Ym(this),this.F?($m(this,b,f),Ac&&this.Rc&&3==b&&(this.C.R(this.A,"tick",this.yD),this.A.start())):Xm(this,f),this.Rc&&!this.Pe&&(4==b?this.o.hj(this):(this.Rc=!1,Sm(this)))):
(this.$e=400==e&&0<f.indexOf("Unknown SID")?3:0,Vm(),Ym(this),Zm(this))}}catch(k){this.Cb&&Dn(this.Cb)}finally{}};
h.yD=function(){var a=zn(this.Cb),b=Dn(this.Cb);this.Ah<b.length&&(fn(this),$m(this,a,b),this.Rc&&4!=a&&Sm(this))};
h.UC=function(a){en(y(this.TC,this,a),0)};
h.TC=function(a){this.Pe||(fn(this),Xm(this,a),Sm(this))};
h.or=function(a){en(y(this.SC,this,a),0)};
h.SC=function(a){this.Pe||(Ym(this),this.Rc=a,this.o.hj(this),this.o.Oc(4))};
h.cancel=function(){this.Pe=!0;Ym(this)};
h.kD=function(){this.vg=null;var a=K();0<=a-this.cn?(2!=this.Mf&&this.o.Oc(3),Ym(this),this.$e=2,Vm(),Zm(this)):dn(this,this.cn-a)};h=ln.prototype;h.pl=null;h.oc=null;h.nj=!1;h.bp=null;h.Ai=null;h.ql=null;h.rl=null;h.zc=null;h.Fd=-1;h.Yg=null;h.Lg=null;h.connect=function(a){this.rl=a;a=mn(this.o,null,this.rl);Vm();this.bp=K();var b=this.o.H;null!=b?(this.Yg=b[0],(this.Lg=b[1])?(this.zc=1,nn(this)):(this.zc=2,pn(this))):(Af(a,"MODE","init"),this.oc=new Om(this,0,void 0,void 0,void 0),this.oc.Ze=this.pl,Rm(this.oc,a,!1,null,!0),this.zc=0)};
h.Jw=function(a){if(a)this.zc=2,pn(this);else{Vm();var b=this.o;b.Jc=b.be.Fd;Xn(b,9)}a&&this.Oc(2)};
h.Mk=function(a){return this.o.Mk(a)};
h.ap=function(){return!1};
h.Zq=function(a,b){this.Fd=a.Zg;if(0==this.zc)if(b){try{var c=this.A.parse(b)}catch(d){c=this.o;c.Jc=this.Fd;Xn(c,2);return}this.Yg=c[0];this.Lg=c[1]}else c=this.o,c.Jc=this.Fd,Xn(c,2);else if(2==this.zc)if(this.nj)Vm(),this.ql=K();else if("11111"==b){if(Vm(),this.nj=!0,this.Ai=K(),c=this.Ai-this.bp,!Tg||yc(10)||500>c)this.Fd=200,this.oc.cancel(),Vm(),on(this.o,this,!0)}else Vm(),this.Ai=this.ql=K(),this.nj=!1};
h.hj=function(){this.Fd=this.oc.Zg;if(this.oc.Rc)0==this.zc?this.Lg?(this.zc=1,nn(this)):(this.zc=2,pn(this)):2==this.zc&&(a=!1,(a=!Tg||yc(10)?this.nj:200>this.ql-this.Ai?!1:!0)?(Vm(),on(this.o,this,!0)):(Vm(),on(this.o,this,!1)));else{0==this.zc?Vm():2==this.zc&&Vm();var a=this.o;a.Jc=this.Fd;Xn(a,2)}};
h.uh=function(){return this.o.uh()};
h.isActive=function(){return this.o.isActive()};
h.Oc=function(a){this.o.Oc(a)};B(qn,J);var An=/^https?$/i,Roa=["POST","PUT"];h=qn.prototype;
h.send=function(a,b,c,d){if(this.o)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+a);b=b?b.toUpperCase():"GET";this.H=a;this.F="";this.A=0;this.Z=b;this.O=!1;this.B=!0;this.o=this.M?Nm(this.M):Nm(o$);this.L=this.M?Lm(this.M):Lm(o$);this.o.onreadystatechange=y(this.Vq,this);try{tm(xn(this,"Opening Xhr")),this.S=!0,this.o.open(b,String(a),!0),this.S=!1}catch(f){tm(xn(this,"Error opening Xhr: "+f.message));wn(this,f);return}a=c||"";var e=this.headers.clone();
d&&Re(d,function(a,b){e.set(b,a)});
d=eb(e.Qa(),tn);c=aa.FormData&&a instanceof aa.FormData;!jb(Roa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.o.setRequestHeader(b,a)},this);
this.ca&&(this.o.responseType=this.ca);Yb(this.o,"withCredentials")&&(this.o.withCredentials=this.Y);try{Cn(this),0<this.D&&(this.K=sn(this.o),tm(xn(this,"Will abort after "+this.D+"ms if incomplete, xhr2 "+this.K)),this.K?(this.o.timeout=this.D,this.o.ontimeout=y(this.cp,this)):this.J=Ud(this.cp,this.D,this)),tm(xn(this,"Sending request")),this.G=!0,this.o.send(a),this.G=!1}catch(f){tm(xn(this,"Send error: "+f.message)),wn(this,f)}};
h.cp=function(){"undefined"!=typeof yn&&this.o&&(this.F="Timed out after "+this.D+"ms, aborting",this.A=8,xn(this,this.F),this.aa("timeout"),gn(this,8))};
h.V=function(){this.o&&(this.B&&(this.B=!1,this.C=!0,this.o.abort(),this.C=!1),vn(this,!0));qn.N.V.call(this)};
h.Vq=function(){this.isDisposed()||(this.S||this.G||this.C?Bn(this):this.kC())};
h.kC=function(){Bn(this)};
h.isActive=function(){return!!this.o};
h.getStatus=function(){try{return 2<zn(this)?this.o.status:-1}catch(a){return-1}};h=En.prototype;h.Rg=null;h.Wb=null;h.vb=null;h.nl=null;h.Ci=null;h.ro=null;h.Gi=null;h.gh=0;h.Lz=0;h.Mb=null;h.ee=null;h.Cd=null;h.Ue=null;h.be=null;h.Jj=null;h.ag=-1;h.Yp=-1;h.Jc=-1;h.Tg=0;h.yf=0;h.Re=8;var Yn=new J;B(Gn,jc);B(Hn,jc);B(In,jc);h=En.prototype;h.connect=function(a,b,c,d,e){Vm();this.nl=b;this.Rg=c||{};d&&p(e)&&(this.Rg.OSID=d,this.Rg.OAID=e);this.be=new ln(this);this.be.pl=null;this.be.A=this.D;this.be.connect(a)};
h.ap=function(){return 0==this.o};
h.lr=function(a){this.ee=null;Sn(this,a)};
h.kr=function(){this.Cd=null;this.vb=new Om(this,0,this.B,"rpc",this.F);this.vb.Ze=null;this.vb.sl=0;var a=this.ro.clone();yf(a,"RID","rpc");yf(a,"SID",this.B);yf(a,"CI",this.Jj?"0":"1");yf(a,"AID",this.ag);Kn(this,a);if(!Tg||yc(10))yf(a,"TYPE","xmlhttp"),Rm(this.vb,a,!0,this.Gi,!1);else{yf(a,"TYPE","html");var b=this.vb,c=!!this.Gi;b.Mf=3;b.ie=Bf(a.clone());cn(b,c)}};
h.Zq=function(a,b){if(0!=this.o&&(this.vb==a||this.Wb==a))if(this.Jc=a.Zg,this.Wb==a&&3==this.o)if(7<this.Re){var c;try{c=this.D.parse(b)}catch(f){c=null}if(da(c)&&3==c.length)if(0==c[0])a:{if(!this.Cd){if(this.vb)if(this.vb.oh+3E3<this.Wb.oh)Nn(this),this.vb.cancel(),this.vb=null;else break a;Vn(this);Vm()}}else this.Yp=c[1],0<this.Yp-this.ag&&37500>c[2]&&this.Jj&&0==this.yf&&!this.Ue&&(this.Ue=en(y(this.oA,this),6E3));else Xn(this,11)}else"y2f%"!=b&&Xn(this,11);else if(this.vb==a&&Nn(this),!C(b)){c=
this.D.parse(b);da(c);for(var d=0;d<c.length;d++){var e=c[d];this.ag=e[0];e=e[1];2==this.o?"c"==e[0]?(this.B=e[1],this.Gi=e[2],e=e[3],null!=e?this.Re=e:this.Re=6,this.o=3,this.Mb&&this.Mb.Ao(this),this.ro=mn(this,this.uh()?this.Gi:null,this.nl),Tn(this)):"stop"==e[0]&&Xn(this,7):3==this.o&&("stop"==e[0]?Xn(this,7):"noop"!=e[0]&&this.Mb&&this.Mb.zo(this,e),this.yf=0)}}};
h.oA=function(){null!=this.Ue&&(this.Ue=null,this.vb.cancel(),this.vb=null,Vn(this),Vm())};
h.hj=function(a){var b;if(this.vb==a)Nn(this),this.vb=null,b=2;else if(this.Wb==a)this.Wb=null,b=1;else return;this.Jc=a.Zg;if(0!=this.o)if(a.Rc)1==b?(K(),Yn.aa(new Hn(Yn,a.df?a.df.length:0)),On(this),this.C.length=0):Tn(this);else{var c=a.$e,d;if(!(d=3==c||7==c||0==c&&0<this.Jc)){if(d=1==b)this.Wb||this.ee||1==this.o||2<=this.Tg?d=!1:(this.ee=en(y(this.lr,this,a),Un(this,this.Tg)),this.Tg++,d=!0);d=!(d||2==b&&Vn(this))}if(d)switch(c){case 1:Xn(this,5);break;case 4:Xn(this,10);break;case 3:Xn(this,
6);break;case 7:Xn(this,12);break;default:Xn(this,2)}}};
h.hx=function(a){if(!jb(arguments,this.o))throw Error("Unexpected channel state: "+this.o);};
h.dE=function(a){a?Vm():(Vm(),Wn(this,8))};
h.Mk=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new qn;a.Y=!1;return a};
h.isActive=function(){return!!this.Mb&&this.Mb.isActive(this)};
h.Oc=function(){Yn.aa(new In(Yn))};
h.uh=function(){return!(!Tg||yc(10))};
h=Zn.prototype;h.Ao=function(){};
h.zo=function(){};
h.yo=function(){};
h.Ck=function(){};
h.Ro=function(){return{}};
h.isActive=function(){return!0};B(ao,Sd);ao.prototype.F=function(){if(500<this.o){var a=this.o;24E4>2*a&&(a*=2);Td(this,a)}this.G()};
ao.prototype.start=function(){ao.N.start.call(this);this.D=K()+this.o};
ao.prototype.stop=function(){this.D=0;ao.N.stop.call(this)};B(bo,Zn);h=bo.prototype;h.subscribe=function(a,b,c){return this.B.subscribe(a,b,c)};
h.Ia=function(a,b,c){return Ce(this.B,a,b,c)};
h.qc=function(a){return this.B.qc(a)};
h.U=function(a,b){return this.B.U.apply(this.B,arguments)};
h.dispose=function(){this.K||(this.K=!0,this.B.clear(),eo(this),Mb(this.B))};
h.isDisposed=function(){return this.K};
h.connect=function(a,b,c){if(!this.o||2!=this.o.o){this.J="";this.A.stop();this.F=a||null;this.D=b||0;a=this.L+"/test";b=this.L+"/bind";var d=new En("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.o;e&&(e.Mb=null);d.Mb=this;this.o=d;e?this.o.connect(a,b,this.C,e.B,e.ag):c?this.o.connect(a,b,this.C,c.sessionId,c.arrayId):this.o.connect(a,b,this.C)}};
h.sendMessage=function(a,b){var c={_sc:a};b&&hc(c,b);this.A.enabled||2==(this.o?this.o.o:0)?this.G.push(c):this.o&&3==this.o.o&&Pn(this.o,c)};
h.Ao=function(){$n(this.A);this.F=null;this.D=0;if(this.G.length){var a=this.G;this.G=[];for(var b=0,c=a.length;b<c;++b)Pn(this.o,a[b])}this.U("handlerOpened")};
h.yo=function(a,b){var c=2==b&&401==this.o.Jc;if(4!=b&&!c){if(6==b||410==this.o.Jc)c=this.A,c.stop(),Td(c,500);this.A.start()}this.U("handlerError",b)};
h.Ck=function(a,b,c){if(!this.A.enabled)this.U("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a){var d=c[a].map;d&&this.G.push(d)}};
h.Ro=function(){var a={v:2};this.J&&(a.gsessionid=this.J);0!=this.D&&(a.ui=""+this.D);0!=this.H&&(a.ui=""+this.H);this.F&&hc(a,this.F);return a};
h.zo=function(a,b){"S"==b[0]?this.J=b[1]:"gracefulReconnect"==b[0]?($n(this.A),this.A.start(),Mn(this.o)):this.U("handlerMessage",new Gl(b[0],b[1]))};
h.EE=function(){this.A.stop();var a=this.o,b=0;a.vb&&b++;a.Wb&&b++;0!=b?this.A.start():this.connect(this.F,this.D)};h=go.prototype;h.fb=function(){return this.o.length+this.A.length};
h.isEmpty=function(){return kb(this.o)&&kb(this.A)};
h.clear=function(){this.o=[];this.A=[]};
h.contains=function(a){return jb(this.o,a)||jb(this.A,a)};
h.remove=function(a){var b;b=this.o;var c=Ioa(b,a);0<=c?(ob(b,c),b=!0):b=!1;return b||pb(this.A,a)};
h.Oa=function(){for(var a=[],b=this.o.length-1;0<=b;--b)a.push(this.o[b]);for(var c=this.A.length,b=0;b<c;++b)a.push(this.A[b]);return a};h=lo.prototype;h.reset=function(a){this.videoIds=[];this.A="";oo(this);this.volume=-1;this.muted=!1;a&&(this.videoIds=a.videoIds,this.index=a.index,this.A=a.listId,this.videoId=a.videoId,this.o=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.B=a.trackData,this.C=a.playerTime,this.D=a.playerTimeAt)};
h.ob=function(){return 1==this.o};
h.setVideoId=function(a){mo(this,"setVideoId");var b=this.index;this.index=ib(this.videoIds,a);b!=this.index&&no(this);return-1!=b};
h.remove=function(a){mo(this,"remove");var b=po(this);return pb(this.videoIds,a)?(this.index=ib(this.videoIds,b),!0):!1};
h.clone=function(){return new lo(uo(this))};B(xo,Lj);h=xo.prototype;h.play=function(){1==this.A?(this.o?this.o.play(null,v,y(function(){this.cb("Failed to play video with cast v2 channel.");zo(this,"play")},this)):zo(this,"play"),Eo(this,1,ro(yo(this))),Fo(this)):Do(this,this.play)};
h.pause=function(){1==this.A?(this.o?this.o.pause(null,v,y(function(){this.cb("Failed to pause video with cast v2 channel.");zo(this,"pause")},this)):zo(this,"pause"),Eo(this,2,ro(yo(this))),Fo(this)):Do(this,this.pause)};
h.As=function(a){if(1==this.A){if(this.o){var b=yo(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;b.ob()||3==b.o?c.resumeState=window.chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.o.seek(c,v,y(function(){this.cb("Failed to seek in video with cast v2 channel.");zo(this,"seekTo",{newTime:a})},this))}else zo(this,"seekTo",{newTime:a});
Eo(this,3,a);Fo(this)}else Do(this,qa(this.As,a))};
h.stop=function(){if(1==this.A){this.o?this.o.stop(null,v,y(function(){this.cb("Failed to stop video with cast v2 channel.");zo(this,"stopVideo")},this)):zo(this,"stopVideo");
var a=yo(this);oo(a);Ao(this,a);Fo(this)}else Do(this,this.stop)};
h.setVolume=function(a,b){if(1==this.A){var c=yo(this);if(this.B){if(c.volume!=a){var d=Math.round(a)/100;this.B.setReceiverVolumeLevel(d,y(function(){Go("set receiver volume: "+d)},this),y(function(){this.cb("failed to set receiver volume.")},this))}c.muted!=b&&this.B.setReceiverMuted(b,y(function(){Go("set receiver muted: "+b)},this),y(function(){this.cb("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);zo(this,"setVolume",e)}c.muted=b;c.volume=a;Ao(this,c);Fo(this)}else Do(this,qa(this.setVolume,a,b))};
h.Km=function(a,b){if(1==this.A){var c=yo(this);if(b){c.B={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,format:b.format,kind:b.kind};var d={videoId:a,style:ge(b.style)};hc(d,c.B);zo(this,"setSubtitlesTrack",d)}else d={videoId:a},zo(this,"setSubtitlesTrack",d);Ao(this,c)}else Do(this,qa(this.Km,a,b))};
h.Bs=function(a,b){if(1==this.A){zo(this,"setAudioTrack",{videoId:a,audioTrackId:b.Hb.id});var c=yo(this);c.audioTrackId=b.Hb.id;Ao(this,c)}else Do(this,qa(this.Bs,a,b))};
h.dispose=function(){if(3!=this.A){var a=this.A;this.A=3;this.U("proxyStateChange",a,this.A)}xo.N.dispose.call(this)};
h.V=function(){xi(this.D);this.D=window.NaN;Co(this);this.C=null;this.F.clear();wo(this,null);xo.N.V.call(this)};
h.nn=function(a){if((a!=this.A||2==a)&&3!=this.A&&0!=a){var b=this.A;this.A=a;this.U("proxyStateChange",b,a);if(1==a)for(;!this.F.isEmpty();)jo(this.F).apply(this);else 3==a&&this.dispose()}};
h.dC=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.D))&&this.U(a)};
h.tA=function(a){if(!a)this.hh(null),wo(this,null);else if(this.B.receiver.volume){a=this.B.receiver.volume;var b=yo(this);if(b.volume!=a.level||b.muted!=a.muted)Go("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,Ao(this,b),Fo(this)}};
h.hh=function(a){Go("Cast media: "+!!a);this.o&&this.o.removeUpdateListener(this.J);if(this.o=a)this.o.addUpdateListener(this.J),Ho(this),Fo(this)};
h.sA=function(a){a?(Ho(this),Fo(this)):this.hh(null)};
h.cb=function(a){$h("CP",a)};B(Jo,Lj);h=Jo.prototype;
h.connect=function(a,b){if(b){if(this.ya.A){var c=b.listId,d=b.videoId,e=b.index,f=b.currentTime||0;5>=f&&(f=0);k={videoId:d,currentTime:f};c&&(k.listId=c);p(e)&&(k.currentIndex=e);c&&(this.ya.A=c);this.ya.videoId=d;this.ya.index=e||0}else{var d=b.videoIds[b.index],f=b.currentTime||0;5>=f&&(f=0);var k={videoIds:d,videoId:d,currentTime:f};this.ya.videoIds=[d];this.ya.index=0}this.ya.state=3;qo(this.ya,f);this.jb("Connecting with setPlaylist and params: "+ge(k));this.o.connect({method:"setPlaylist",params:ge(k)},
a,nk())}else this.jb("Connecting without params"),this.o.connect({},a,nk());Lo(this)};
h.dispose=function(){this.isDisposed()||(this.U("beforeDispose"),Ko(this,3));Jo.N.dispose.call(this)};
h.V=function(){Mo(this);Oo(this);No(this);xi(this.G);this.G=window.NaN;xi(this.H);this.H=window.NaN;this.B=null;Ol(this.P);this.P.length=0;this.o.dispose();Jo.N.V.call(this);this.A=this.ya=this.o=null};
h.jb=function(a){$h("conn",a)};
h.Fx=function(){this.C(2)};
h.yA=function(){this.jb("Channel opened");this.M&&(this.M=!1,No(this),this.J=vi(y(function(){this.jb("Timing out waiting for a screen.");this.C(1)},this),15E3));
tk(co(this.o),this.O)};
h.uA=function(){this.jb("Channel closed");(0,window.isNaN)(this.D)?uk(!0):uk();this.dispose()};
h.vA=function(a){uk();(0,window.isNaN)(this.F())?(this.jb("Channel error: "+a+" without reconnection"),this.dispose()):(this.M=!0,this.jb("Channel error: "+a+" with reconnection in "+this.F()+" ms"),Ko(this,2))};
h.wA=function(a){a.params?this.jb("Received: action="+a.action+", params="+ge(a.params)):this.jb("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=de(a.params.devices);this.A=ji(a,function(a){return new Yj(a)});
a=!!eb(this.A,function(a){return"LOUNGE_SCREEN"==a.type});
To(this,a);break;case "loungeScreenConnected":To(this,!0);break;case "loungeScreenDisconnected":qb(this.A,function(a){return"LOUNGE_SCREEN"==a.type});
To(this,!1);break;case "remoteConnected":var b=new Yj(de(a.params.device));eb(this.A,function(a){return a.equals(b)})||nb(this.A,b);
break;case "remoteDisconnected":b=new Yj(de(a.params.device));qb(this.A,function(a){return a.equals(b)});
break;case "gracefulDisconnect":break;case "playlistModified":Vo(this,a);break;case "nowPlaying":Xo(this,a);break;case "onStateChange":Wo(this,a);break;case "onVolumeChanged":Yo(this,a);break;case "onSubtitlesTrackChanged":Uo(this,a);break;default:this.jb("Unrecognized action: "+a.action)}};
h.xA=function(a){a.params?this.jb("Received: action="+a.action+", params="+ge(a.params)):this.jb("Received: action="+a.action);Zo(this,a);$o(this,a);if(Ro(this)){var b=this.ya.clone(),c=!1,d,e,f,k,m,l;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,f=a.params.state,k=a.params.currentTime||a.params.current_time,m=a.params.volume,l=a.params.muted,p(a.params.currentError)&&de(a.params.currentError));if("onSubtitlesTrackChanged"==a.action)d==po(this.ya)&&(delete a.params.videoId,
ac(a.params)?this.ya.B=null:this.ya.B=a.params,this.U("remotePlayerChange"));else if(po(this.ya)||"onStateChange"!=a.action){"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=po(this.ya)):this.ya.setVideoId(""),e&&(e=e.split(","),to(this.ya,e,d))):to(this.ya,[]);e=this.ya;var n=d;mo(e,"add");n&&!jb(e.videoIds,n)?(e.videoIds.push(n),e=!0):e=!1;e&&Po(this,"getPlaylist");d&&this.ya.setVideoId(d);b.index==this.ya.index&&Gb(b.videoIds,
this.ya.videoIds)?"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||this.U("remoteQueueChange"):this.U("remoteQueueChange");p(f)&&(a=(0,window.parseInt)(f,10),a=(0,window.isNaN)(a)?-1:a,-1==a&&-1E3==this.ya.o&&(a=-1E3),0==a&&"0"==k&&(a=-1),c=c||a!=this.ya.o,this.ya.o=a,1==this.ya.o?Qo(this):Oo(this));k&&(a=(0,window.parseInt)(k,10),qo(this.ya,(0,window.isNaN)(a)?0:a),c=!0);p(m)&&(a=(0,window.parseInt)(m,10),(0,window.isNaN)(a)||(c=c||this.ya.volume!=a,this.ya.volume=a),p(l)&&(l="true"==
l,c=c||this.ya.muted!=l,this.ya.muted=l));c&&this.U("remotePlayerChange")}}};
h.JD=function(){if(this.B){var a=this.B;this.B=null;this.ya.videoId!=a&&Po(this,"getNowPlaying")}};
Jo.prototype.subscribe=Jo.prototype.subscribe;Jo.prototype.unsubscribeByKey=Jo.prototype.qc;Jo.prototype.ca=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.F())?Ro(this)&&(a=1):a=2);return a};
Jo.prototype.getProxyState=Jo.prototype.ca;Jo.prototype.C=function(a){this.jb("Disconnecting with "+a);Mo(this);this.U("beforeDisconnect",a);1==a&&uk();eo(this.o,a);this.dispose()};
Jo.prototype.disconnect=Jo.prototype.C;Jo.prototype.Z=function(){var a=this.ya;this.B&&(a=this.ya.clone(),so(a,this.B,a.index));return uo(a)};
Jo.prototype.getPlayerContextData=Jo.prototype.Z;
Jo.prototype.fa=function(a){var b=new lo(a);b.videoId&&b.videoId!=this.ya.videoId&&(this.B=b.videoId,xi(this.G),this.G=vi(y(this.JD,this),5E3));var c=[];this.ya.A==b.A&&this.ya.videoId==b.videoId&&this.ya.index==b.index&&Gb(this.ya.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ya.o==b.o&&this.ya.volume==b.volume&&this.ya.muted==b.muted&&ro(this.ya)==ro(b)&&ge(this.ya.B)==ge(b.B)||c.push("remotePlayerChange");this.ya.reset(a);F(c,function(a){this.U(a)},this)};
Jo.prototype.setPlayerContextData=Jo.prototype.fa;Jo.prototype.S=function(){return this.o.C.loungeIdToken};
Jo.prototype.getLoungeToken=Jo.prototype.S;Jo.prototype.K=function(){var a=this.o.C.id,b=eb(this.A,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
Jo.prototype.getOtherConnectedRemoteId=Jo.prototype.K;Jo.prototype.F=function(){var a=this.o;return a.A.enabled?a.A.D-K():window.NaN};
Jo.prototype.getReconnectTimeout=Jo.prototype.F;Jo.prototype.ha=function(){if(!(0,window.isNaN)(this.F())){var a=this.o.A;a.enabled&&(a.stop(),a.start(),a.F())}};
Jo.prototype.reconnect=Jo.prototype.ha;Jo.prototype.da=function(a,b){Po(this,a,b);So(this)};
Jo.prototype.sendMessage=Jo.prototype.da;var dp=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];B(lp,Mj);h=lp.prototype;h.sc=function(a){return this.Sb.$_gs(a)};
h.contains=function(a){return!!this.Sb.$_c(a)};
h.get=function(a){return this.Sb.$_g(a)};
h.start=function(){this.Sb.$_st()};
h.Nj=function(a,b,c){this.Sb.$_a(a,b,c)};
h.remove=function(a,b,c){this.Sb.$_r(a,b,c)};
h.Hj=function(a,b,c,d){this.Sb.$_un(a,b,c,d)};
h.V=function(){for(var a=0,b=this.o.length;a<b;++a)this.Sb.$_ubk(this.o[a]);this.o.length=0;this.Sb=null;lp.N.V.call(this)};
h.IE=function(){this.U("screenChange")};
h.SB=function(){this.U("onlineScreenChange")};
Jk.prototype.$_st=Jk.prototype.start;Jk.prototype.$_gspc=Jk.prototype.JE;Jk.prototype.$_gsppc=Jk.prototype.Es;Jk.prototype.$_c=Jk.prototype.contains;Jk.prototype.$_g=Jk.prototype.get;Jk.prototype.$_a=Jk.prototype.Nj;Jk.prototype.$_un=Jk.prototype.Hj;Jk.prototype.$_r=Jk.prototype.remove;Jk.prototype.$_gs=Jk.prototype.sc;Jk.prototype.$_gos=Jk.prototype.Ds;Jk.prototype.$_s=Jk.prototype.subscribe;Jk.prototype.$_ubk=Jk.prototype.qc;var mp=null,np=null,sp=null,cp=null,rp=[];var Sp=/^https?:\/\/(([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*qa[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(education|-nocookie)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|web-ppg\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/|[A-Za-z0-9]+\.prod\.google\.com(:[0-9]+)?\/)/,sx=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,
bba=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,yaa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/+embed(\/+|\?|#|$)/,Ax=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-dev\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/(s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/|([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,
lq=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Ex=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.youtube-nocookie\.com\/api\/ads\/trueview_redirect|www\.googleadservices\.com\/trueview_inred)/,kq=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul)/,bs=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com|xfx7\.com)(:[0-9]+)?([\/\?\#]|$)/,
WI=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,
Baa=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Up=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites.googlegroups.com\/a\/google.com\/flash-api-test-harness\/apiharness.swf|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleads\.g\.doubleclick\.net|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|photos\.google\.com|picasaweb\.google\.com|lh2\.google\.com|plus\.google\.com|books\.googleusercontent\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Vp=["2mdn.net","googleads.g.doubleclick.net"];var Hw=YI||yx;var oq={},nq=0,Soa=r("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",Soa,void 0);var pq=1;qq.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a==this.end&&this.start==this.end)&&(null==b||a<b&&b<=this.end)};
qq.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};B(rq,qq);rq.prototype.getId=function(){return this.K};
rq.prototype.getId=rq.prototype.getId;rq.prototype.toString=function(){return rq.N.toString.call(this)};B(vq,Lj);h=vq.prototype;h.ib=function(a,b){for(var c=0;c<a.length;c++)a[c].A=this.va;this.o.ib(a,b)};
h.create=function(){this.F||(this.Ya(this.o),L(this.o.Da(),this.va+"-created"),this.o.addEventListener("crn_"+this.va,this.Zb,this),this.o.addEventListener("crx_"+this.va,this.kc,this),this.F=!0)};
h.destroy=function(){this.loaded&&this.unload();be(this.o.Da(),this.va+"-created");this.o.removeEventListener("crn_"+this.va,this.Zb,this);this.o.removeEventListener("crx_"+this.va,this.kc,this);this.F=!1;this.U("destroyed",this.va)};
h.load=function(){this.loaded=!0;L(this.o.Da(),this.va+"-loaded");this.U("loaded",this.va)};
h.unload=function(){this.loaded=!1;be(this.o.Da(),this.va+"-loaded");this.U("unloaded",this.va)};
h.Zb=function(){};
h.kc=function(){};
h.se=function(){};
h.log=function(a){KM(this.o,this.logEvent,a)};
h.Kh=function(){return null};
h.pauseVideo=function(){this.U("command_pause",!1,this.o.playerType)};
h.od=function(){};
h.lf=function(){return[]};
h.Ya=function(){return!1};
h.wm=function(a,b){this.G&&this.G.se&&this.G.se.apply(this.G,arguments)};
h.gj=function(){};B(Gq,G);Gq.prototype.o=function(a,b){p(b)?ch(a,this.element,b):a.appendChild(this.element)};
Gq.prototype.update=function(a){for(var b in a)this.B(b,a[b])};
Gq.prototype.B=function(a,b){var c=this.xa["{{"+a+"}}"];c&&Iq(this,c[0],c[1],b)};
Gq.prototype.V=function(){this.sa={};this.xa={};Jq(this);Gq.N.V.call(this)};B(R,Gq);h=R.prototype;h.Jb=function(a,b){this.B(b||"content",a)};
h.show=function(){this.C||(Lq(this.element,""),this.C=!0)};
h.ka=function(){this.C&&(Lq(this.element,"none"),this.C=!1)};
h.Za=function(a){a?this.show():this.ka()};
h.R=function(a,b,c){return this.T(this.element,a,b,c)};
h.T=function(a,b,c,d){c=y(c,d||this);d={target:a,type:b,listener:c};this.Z.push(d);a.addEventListener(b,c);return d};
h.za=function(a){for(var b=0;b<this.Z.length;b++)if(this.Z[b]==a){a=this.Z.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
h.focus=function(){sh(this.element);this.element.focus()};
h.V=function(){for(;this.Z.length;){var a=this.Z.pop();a.target.removeEventListener(a.type,a.listener)}R.N.V.call(this)};B(Oq,R);Oq.prototype.subscribe=function(a,b,c){return this.Y.subscribe(a,b,c)};
Oq.prototype.Ia=function(a,b,c){return this.Y.Ia(a,b,c)};
Oq.prototype.qc=function(a){return this.Y.qc(a)};
Oq.prototype.U=function(a,b){return this.Y.U.apply(this.Y,arguments)};B(Pq,Oq);Pq.prototype.create=function(){this.L=!0};
Pq.prototype.destroy=function(){this.L=!1};
Pq.prototype.ci=function(){return!1};B(Qq,R);var Vq={},rr=/[^\d]+$/,sr={cm:1,"in":1,mm:1,pc:1,pt:1},tr={em:1,ex:1};var Toa=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(Tg)return wc("10.0");
var a=window.document.createElement("DIV"),b=zc?"-webkit":Rq?"-moz":Tg?"-ms":Ac?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Ag.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Ooa)throw Error("Tag name <div> is not allowed for SafeHtml.");b=Fg("div",b,void 0);a.innerHTML=xg(b);return""!=Wq(a.firstChild,"transition")});B(yr,G);h=yr.prototype;h.show=function(a,b){this.C=!!a;1==this.o||2==this.o||3==this.o&&a||(4==this.o||3==this.o?a||(this.B.show(),xr(this,!1),this.o=null,this.A.stop()):this.B.C||(xr(this,!this.C),this.o=1,b?this.A.start(b):this.Um()))};
h.ka=function(){3!=this.o&&(1==this.o||2==this.o?(this.B.ka(),this.o=null,this.A.stop()):this.B.C&&(xr(this,!0),this.o=3,this.A.start(this.F)))};
h.Um=function(){switch(this.o){case 1:this.B.show();this.o=2;this.A.start(10);break;case 2:xr(this,this.C);this.C?(this.o=3,this.A.start(this.D)):this.o=null;break;case 3:this.B.ka();xr(this,!1);this.o=4;this.A.start(0);break;case 4:this.o=null}};
h.stop=function(){for(;null!=this.o&&4!=this.o;)this.A.stop(),this.Um()};
h.V=function(){this.B.isDisposed()||this.B.element.removeAttribute("aria-hidden");yr.N.V.call(this)};B(zr,R);B(Ar,zr);Ar.prototype.Za=function(a){a?this.A.show():this.A.ka()};B(Cr,Pq);Cr.prototype.create=function(){Cr.N.create.call(this);bh(this.element);this.F.o(this.element);var a=this.A.getVideoData().videoId;a&&(a=hJ(this.A.W(),a,!0),tj(a,{method:"GET",tb:this.G,context:this,Uw:!0}))};
Cr.prototype.G=function(a,b){if(this.L){var c=b.user_info,d=c.channel_banner_url;Ax.test(d)||(d="");var e=c.channel_logo_url||c.image_url;Ax.test(e)||(e="");this.D.B("background",d?"background-image: url("+d+")":"");this.F.B("image",e);this.F.B("author",c.channel_title||c.username);c=c.subscription_button_html;d=this.F.sa["html5-subscribe-button-container"];c?d.innerHTML=xg(c):bh(d)}};
Cr.prototype.show=function(){Cr.N.show.call(this);this.D.Za(!0)};
Cr.prototype.ka=function(){Cr.N.ka.call(this);this.D.Za(!1)};B(Dr,G);Dr.prototype.T=function(a,b,c,d){c=ui(y(c,d||this.Ga));a.addEventListener(b,c);a={target:a,name:b,hi:c};this.L.push(a);return a};
Dr.prototype.za=function(a){for(var b=0;b<this.L.length;b++)if(this.L[b]==a){this.L.splice(b,1);a.target.removeEventListener(a.name,a.hi);break}};
Dr.prototype.V=function(){Fr(this);Dr.N.V.call(this)};Gr.prototype.toString=function(){return this.type+this.id};var C5=16/9,Uoa=4/3,u9=[.25,.5,1,1.25,1.5,2];var Ir={Rz:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
Im:function(a){a.reverse()},
vW:function(a,b){a.splice(0,b)}};var Nr={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",140:"a",258:"m",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",147:"H",149:"A",261:"M",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",171:"v",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",314:"(",277:"("};var Mw={name:"width",video:!0,valid:640,fh:99999},Nw={name:"height",video:!0,valid:360,fh:99999},Ow={name:"framerate",video:!0,valid:30,fh:9999},Pw={name:"bitrate",video:!0,valid:3E5,fh:2E9},Qw={name:"channels",video:!1,valid:2,fh:99},Rw={Xh:Mw,Rh:Nw,A:Ow,On:Pw,o:Qw};Ur.prototype.A=function(){return this.name};
Ur.prototype.getId=function(){return this.id};
Ur.prototype.o=function(){return this.isDefault};
Ur.prototype.toString=function(){return this.name};
Ur.prototype.getName=Ur.prototype.A;Ur.prototype.getId=Ur.prototype.getId;Ur.prototype.getIsDefault=Ur.prototype.o;var Nu={EI:"auto",rN:"tiny",VK:"light",SMALL:"small",Gv:"medium",LARGE:"large",pK:"hd720",lK:"hd1080",mK:"hd1440",nK:"hd2160",oK:"hd2880",uK:"highres",UNKNOWN:"unknown"},Wr={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},Vr="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Yr.prototype.set=function(a,b){this.o[a]!==b&&(this.o[a]=b,this.A="")};
Yr.prototype.get=function(a){Zr(this);return this.o[a]||null};
Yr.prototype.getUrl=function(){this.A||(this.A=es(this));return this.A};
Yr.prototype.clone=function(){var a=new Yr(this.B);a.F=this.F;a.C=this.C;a.D=this.D;a.o=ec(this.o);a.A=this.A;return a};gs.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};h=ns.prototype;h.Fe=function(a){return(a=os(this,a))?a.duration:0};
h.Yk=function(a){return this.Fe(a)};
h.Gf=function(){return this.wa.length?this.wa[0].o:-1};
h.Gb=function(){return this.wa.length?this.wa[this.wa.length-1].o:-1};
h.Dg=function(){var a=this.wa[this.wa.length-1];return a?a.endTime:window.NaN};
h.Us=function(){return this.wa[0].startTime};
h.fl=function(){return this.wa.length};
h.$j=function(){return 0};
h.If=function(a){return(a=ps(this,a))?a.o:-1};
h.Wo=function(a){return os(this,a).sourceURL};
h.Ge=function(a){return(a=os(this,a))?a.startTime:0};
h.kf=function(){return 0<this.wa.length};rs.prototype.set=function(a,b){this.o.get(a);this.A[a]=b;this.B=""};
rs.prototype.get=function(a){return this.A[a]||this.o.get(a)};
rs.prototype.getUrl=function(){this.B||(this.B=us(this));return this.B};var p$=0;ys.prototype.Tl=function(){return!1};
ys.prototype.kd=function(){return!!this.o&&!!this.index&&this.index.kf()};
ys.prototype.Er=function(a){return[a]};
ys.prototype.qj=function(a){return[a]};zs.prototype.equals=function(a){return!(!a||a.o!=this.o||a.type!=this.type||(this.range&&a.range?a.range.start!=this.range.start||a.range.end!=this.range.end:a.range!=this.range)||a.C!=this.C||a.B!=this.B||a.A!=this.A)};B(Js,ys);h=Js.prototype;h.ii=function(){return!1};
h.Qp=function(){return this.A};
h.To=function(){if(this.A)return[];var a=new zs(1,this,this.initRange);return[new Gs([a],this.G)]};
h.Ug=function(a,b){if(this.A&&ga(a)&&!(0,window.isFinite)(a)){var c=new zs(3,this,null,-1);return new Gs([c],"",!0)}c=this.index.If(a);b&&(c=Math.min(this.index.Gb(),c+1));return Ks(this,c,!0)};
h.fp=function(a){this.o=new window.Uint8Array(Bt(a).buffer)};
h.Tl=function(){return!1};
h.Jh=function(a){return 0==a.A||this.A?!0:this.index.Gb()>a.C&&this.index.Gf()<=a.C+1};
h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=sb(a),0==d.wa.length)d.wa=a;else{var e=d.wa.length?cb(d.wa).endTime:0,f=a[0].o-d.Gb();1<f&&lb(d.wa);for(f=0<f?0:-f+1;f<a.length;f++){var k=a[f];k.startTime=e;k.endTime=k.startTime+k.duration;e+=a[f].duration;d.wa.push(a[f])}}qs(this.index,c);this.C=b};
h.kd=function(){return this.A?!0:Js.N.kd.call(this)};Os.prototype.update=function(a,b){var c=void 0;this.A&&(c=this.A);var d=new Os,e=a.getElementsByTagName("S");if(e.length){var f=+js(a,"timescale")||1,k=+js(a,"startNumber")||0,m;m=((+e[0].getAttribute("t")||0)-(+js(a,"presentationTimeOffset")||0))/f;m=c?c.ye+c.durationSecs:b?m:0;var l;l=Date.parse(js(a,"yt:segmentIngestTime"));var n=Date.parse(js(a,"yt:mpdResponseTime")),n=K()-n;l=(l+n)/1E3;n=c?k-c.o:1;d.C=0<n?0:-n+1;for(n=0;n<e.length;n++)for(var t=e[n],u=+t.getAttribute("d")/f,x=(t.getAttribute("yt:sid")||
0)/f,A=+t.getAttribute("r")||0,D=0;D<=A;D++)if(c&&k<=c.o)k++;else{var H=new Ns(k,m,u,l+x);d.o.push(H);var z;z=t;var P=f,Ua=H.ye,la=z.getAttribute("yt:cuepointTimeOffset"),H=z.getAttribute("yt:cuepointDuration");la&&H?(Ua=+la/P+Ua,P=+H/P,z=z.getAttribute("yt:cuepointContext")||null,z=new Ms(Ua,P,z)):z=null;z&&d.B.push(z);k++;m+=u;l+=u+x}d.o.length&&(d.A=cb(d.o))}this.C=d.C;this.A=d.A||this.A;tb(this.o,d.o);tb(this.B,d.B)};it.prototype.skip=function(a){this.o+=a};h=Lt.prototype;h.$j=function(a){return this.o[a]};
h.Ge=function(a){return this.A[a]/this.C};
h.Fe=function(a){a=this.Yk(a);return 0<=a?a/this.C:-1};
h.Yk=function(a){return a+1<this.Aa||this.B?this.A[a+1]-this.A[a]:-1};
h.Gf=function(){return 0};
h.Gb=function(){return this.Aa-1};
h.Dg=function(){return this.B?this.A[this.Aa]/this.C:window.NaN};
h.Us=function(){return 0};
h.fl=function(){return this.Aa};
h.Wo=function(){return""};
h.If=function(a){a=Ab(this.A.subarray(0,this.Aa),a*this.C);return 0<=a?a:Math.max(0,-a-2)};
h.kf=function(){return 0<=this.Gb()};B(Nt,ys);h=Nt.prototype;h.To=function(a){var b=new zs(1,this,this.initRange),c=new zs(2,this,this.indexRange),d=[],e=[b];Cs(b,c)?e.push(c):(d.push(new Gs([c])),a=0);(0,window.isNaN)(this.A)?a=0:a>this.A&&(a=this.A);b=e[e.length-1];c=b.range.end-e[0].range.start+1;a>c&&(a=is(b.range.end+1,a-c),e.push(new zs(4,this,a)));d.push(new Gs(e));return d};
h.fp=function(a){if(1==a.info.type){if(this.o)return;this.o=new window.Uint8Array(a.o,a.range.start,a.range.length)}else if(2==a.info.type){if(this.C||0<=this.index.Gb())return;if(1==this.info.A){var b=this.index,c=Bt(a),d=a.info.range.start;a=0;var e=c.getUint32(0,!1),f=c.getUint8(a+8);a+=12;var k=c.getUint32(a+4,!1);b.C=k;a+=8;0==f?(f=c.getUint32(a,!1),k=c.getUint32(a+4,!1),a+=8):(f=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),k=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.o[0]=
k+(e+d);b.A[0]=f;b.B=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var m=c.getUint32(a,!1),k=c.getUint32(a+4,!1);a+=12;f=b;f.Aa++;Mt(f);f.o[f.Aa]=f.o[f.Aa-1]+m;f.A[f.Aa]=f.A[f.Aa-1]+k}}else this.C=Bt(a)}if(2==this.info.A&&this.o&&this.C){a=new window.DataView(this.o.buffer,this.o.byteOffset,this.o.byteLength);b=this.index;k=this.C;c=this.indexRange.end;a=new mt(a);if(440786851==pt(a)&&(ot(a),408125543==pt(a))){e=a;f=e.o;d=nt(e,!0);e.o=f;a=qt(a);for(var e=a.B+a.o,l=pt(a);357149030!=l;)ot(a),l=pt(a);
a=qt(a);for(var m=1E6,n=1E9,f=0;!(a.o>=a.A.byteLength);)if(l=pt(a),2807729==l)m=tt(a);else if(2807730==l)n=tt(a);else if(17545==l){var f=a,l=nt(f,!0),t=0;4==l?t=f.A.getFloat32(f.o):8==l&&(t=f.A.getFloat64(f.o));f.o+=l;f=t}else ot(a);b.C=n/m;a=new mt(k);if(475249515==pt(a)){a=qt(a);k=!0;for(m=!1;!(a.o>=a.A.byteLength);)if(l=pt(a),187==l){n=qt(a);l=e;if(179!=pt(n))t=null;else if(t=tt(n),183!=pt(n))t=null;else{for(var n=qt(n),u=l;!(n.o>=n.A.byteLength);)241==pt(n)?u=tt(n)+l:ot(n);t=[u,t]}k&&c==t[0]&&
(m=!0);k=!1;m&&(t[0]+=1);n=b;l=t[0];t=t[1];Mt(n);n.o[n.Aa]=l;n.A[n.Aa]=t;n.Aa++}else ot(a);c=d+e;a=f;Mt(b);b.B=!0;b.A[b.Aa]=a;b.o[b.Aa]=c}}this.C=null}};
h.Er=function(a){for(var b=this.qj(a.info),c=[],d=a.C,e=0;e<b.length;e++){var f=is(b[e].range.start+b[e].B-a.info.range.start+a.range.start,b[e].A);c.push(new At(b[e],a.o,f,a.A,d));d=!1}return c};
h.qj=function(a){for(var b=0;b<this.index.Gb()&&a.range.start>=this.index.$j(b+1);)b++;return Ot(this,b,a.range.start,a.range.length).o};
h.Jh=function(a){return this.kd()?!0:(0,window.isNaN)(this.A)?!1:a.range.end+1<this.A};
h.Ug=function(a,b){var c=this.index.If(a);b&&(c=Math.min(this.index.Gb(),c+1));return Ot(this,c,this.index.$j(c),0)};
h.Tl=function(){var a;if(a=this.kd()&&!(0,window.isNaN)(this.A))a=this.index,a=(a.B?a.o[a.Aa]:-1)!=this.A;return a};
h.ii=function(){return!0};
h.Qp=function(){return!1};B(Rt,Lj);
Rt.prototype.Z=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length){this.B=!0;this.C||(this.C=new Qs);Us(this.C,a,this.S);this.U("refresh");for(a=0;a<b.length;a++){var c=$t(this,b[a]);if(!this.o[c.id]){var d=Xt(ks(b[a],"BaseURL").textContent,c),e=ks(b[a],"Initialization"),f=js(e,"sourceURL"),e=hs(js(e,"range"));this.o[c.id]=new Js(d,c,f,null===e?void 0:e)}for(var c=this.o[c.id],d=this.C,f=c,e=bb(f.info.mimeType,";",1)[0],f=d.B[f.info.id]||d.A[e]||
d.o||null,d=ub(ks(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.C),f=f.o,e=[],k=0;k<d.length;k++)e.push(bu(d[k],f[k]));c.update(e,this.isLive,this.J)}Vs(this.C);return!0}this.duration=ls(js(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){e=b[a];c=$t(this,e);f=ks(e,"BaseURL");d=Xt(f.textContent,c);k=ks(e,"SegmentBase");e=hs(k.attributes.indexRange.value);k=hs(k.getElementsByTagName("Initialization")[0].attributes.range.value);f=(0,window.parseInt)(f.getAttribute("yt:contentLength"),
10);c=new Nt(d,c,k,e,f,window.NaN);if(!c){b=!1;break a}this.o[c.info.id]=c}b=!0}return b};
var Zt={commentary:1,alternate:2,dub:3,main:4};
Rt.prototype.P=function(a){this.H=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.D=1E3*ls(js(a,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.D;this.J=(0,window.parseInt)(js(a,"yt:earliestMediaSequence"),10)||0;Se(a.getElementsByTagName("Period"),this.Z,this);this.F=2;this.U("loaded");(0,window.isFinite)(this.D)&&(a=Qt()-this.G,a=Math.max(0,this.D-a),vi(y(this.M,this),a));return this};
Rt.prototype.O=function(a){this.H=a.status;this.F=3;this.U("load_error");return Fd(a)};
Rt.prototype.M=function(){if(1!=this.F&&!this.isDisposed()){var a;a:{a=this.o;for(var b in a){var c=a[b].index;if(c&&c.kf()){a=c.Gb()+1;break a}}a=0}a=gf(this.L,{start_seq:a.toString()});au(this,a)}};var Dw,$I;var q$=oc,q$=q$.toLowerCase();if(Ha(q$,"android")){var r$=q$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(r$)Dw=Number(r$[1]);else{var s$={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},t$=q$.match("("+Wb(s$).join("|")+")");Dw=t$?s$[t$[0]]:0}}else Dw=void 0;$I=0<=Dw;var O5,iu=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],ju=['audio/mp4; codecs="mp4a.40.2"'];var xu={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},yu=rb(xu.widevine,xu.playready);B(wu,G);wu.prototype.F=function(a,b){if(!this.isDisposed()){a.A=b;var c=b.getConfiguration();F([c.audioCapabilities,c.videoCapabilities],function(b){F(b,function(b){a.C[b.contentType]=!0})});
this.C(a)}};
wu.prototype.D=function(){this.isDisposed()||(0<this.A.length?Au(this):this.C(null))};Cu.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.o+"_"+this.id+"_"+this.isDefault};Du.prototype.getUrl=function(){return this.J};
Du.prototype.toString=function(){return this.A+": "+Eu(this)+" - "+this.G};
Du.prototype.equals=function(a){return a?this.toString()==a.toString():!1};Hu.prototype.o=function(){return this.Hb};
Hu.prototype.toString=function(){return this.Hb.name};
Hu.prototype.getLanguageInfo=Hu.prototype.o;Iu.prototype.equals=function(a){return this.A==a.A&&this.o==a.o&&this.B==a.B};
var wL=Ju("auto","large",!1),Lu=Ju("auto","auto",!1);Ju("small","auto",!1);Iu.prototype.isLocked=function(){return this.B&&!!this.A&&this.A==this.o};
Iu.prototype.C=function(a){if(!a.video)return!1;a=Wr[a.video.quality];return this.A<=a&&(!this.o||this.o>=a)};var Dx={cL:1,dL:2,eL:3};Qu.prototype.getValue=function(){return this.A};
Qu.prototype.clone=function(){return new Qu(this.o,this.A)};h=Ru.prototype;h.remove=function(){var a=this.o,b=a.length,c=a[0];if(!(0>=b)){if(1==b)lb(a);else{a[0]=a.pop();for(var a=0,b=this.o,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].o<b[f].o?k:f;if(b[f].o>e.o)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
h.Oa=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
h.Qa=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].o);return b};
h.Te=function(a){return zh(this.o,function(b){return b.getValue()==a})};
h.clone=function(){return new Ru(this)};
h.fb=function(){return this.o.length};
h.isEmpty=function(){return kb(this.o)};
h.clear=function(){lb(this.o)};B(Tu,Ru);B(Uu,Lj);Uu.prototype.F=function(a,b){this.o=this.o.onload=null;var c=this.A.o[a];c.B[b]=!0;Yu(this);var d=c.Kb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.$k()-1)];this.U("l",c[0],c[1])};
Uu.prototype.V=function(){this.o&&(this.o=this.o.onload=null);Uu.N.V.call(this)};h=$u.prototype;h.getWidth=function(){return this.H};
h.getHeight=function(){return this.G};
h.$k=function(){return this.A};
h.isDefault=function(){return-1!=this.C.indexOf("default")};
h.getUrl=function(a){var b=this.K,b=b.replace("$N",this.C),b=b.replace("$L",this.M.toString()),b=b.replace("$M",a.toString());this.F&&(b=gf(b,{sigh:this.F}));return Yp(b)};
h.ek=function(a){return le(0==this.D?Math.round(a*this.A/this.L):Math.round(1E3*a/this.D),0,this.$k()-1)};
h.Fn=function(){return this.A-1};
h.Wt=function(){return this.A?0:-1};
h.Xt=function(){};av.prototype.A=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.C(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
av.prototype.C=function(a,b,c,d){return new $u(a,b,c,d)};
av.prototype.getUrl=function(a,b){return this.o[a].getUrl(b)};
av.prototype.D=function(){};B(bv,$u);h=bv.prototype;h.$k=function(){return this.o?this.o.fl():-1};
h.ek=function(a){var b=this.rows*this.Kb*this.J,c=-1,d=-1,e=this.o;e&&(c=e.Gb(),d=e.If(a));return d>c-b?-1:d};
h.Fn=function(){return this.o?this.o.Gb():-1};
h.Wt=function(){return this.o?this.o.Gf():-1};
h.Xt=function(a){this.o=a?a.index:null};B(cv,av);cv.prototype.A=function(a,b){return cv.N.A.call(this,"$N|"+a,b)};
cv.prototype.C=function(a,b,c){return new bv(a,b,c,this.F.isLive)};
cv.prototype.D=function(a){for(var b=0;b<this.o.length;b++)this.o[b].Xt(a)};var hv=/^([0-9\.]+)\:([0-9\.]+)$/;var nv=0;qv.prototype.Cc=function(){return{version:this.version,args:this.args}};
uv.prototype.toString=function(){return this.topic};var Voa=r("yt.pubsub2.instance_")||new Be;Be.prototype.subscribe=Be.prototype.subscribe;Be.prototype.unsubscribeByKey=Be.prototype.qc;Be.prototype.publish=Be.prototype.U;Be.prototype.clear=Be.prototype.clear;q("yt.pubsub2.instance_",Voa,void 0);var xv=r("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",xv,void 0);var zv=r("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",zv,void 0);var yv=r("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",yv,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);B(Ev,qv);var vv=new uv("timing-sent",Ev);var Hv=/url\(["']?(http[^'"\)]+)['"]?\)/i;var Xv=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},Vv=y(Xv.clearResourceTimings||Xv.webkitClearResourceTimings||Xv.mozClearResourceTimings||Xv.msClearResourceTimings||Xv.oClearResourceTimings||v,Xv),Nv=Xv.mark?function(a){Xv.mark(a)}:v;var zx,GI;var u$=oc,v$=u$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!v$||2>v$.length)zx=void 0;else{var w$=u$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);zx=w$&&6==w$.length?Number(w$[5].replace("_",".")):0}(GI=0<=zx)&&0<=oc.search("Safari")&&oc.search("Version");var bw=K().toString();var vx={WK:0,GJ:1,zK:2};var iw=function(){if(Ww)return hw(/Firefox\/([0-9.]+)/);if(Tg||tu||Ac)return vc;if(El)return hw(/Chrome\/([0-9.]+)/);if(qu&&!(sc()||pc("iPad")||pc("iPod")))return hw(/Version\/([0-9.]+)/);if(YI||yx){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(oc);if(a)return a[1]+"."+a[2]}else if(ZI)return(a=hw(/Android\s+([0-9.]+)/))?a:hw(/Version\/([0-9.]+)/);return""}();jw.prototype.start=function(){return 0};
jw.prototype.end=function(){return window.Infinity};
jw.prototype.length=1;h=kw.prototype;h.addEventListener=function(){};
h.removeEventListener=function(){};
h.dispatchEvent=function(){};
h.abort=function(){};
h.remove=function(){};
h.appendBuffer=function(){};lw.prototype.dispose=function(){if(!this.B){if(this.o)try{window.URL.revokeObjectURL(this.C)}catch(a){}this.B=!0}};
lw.prototype.isDisposed=function(){return this.B};
lw.prototype.equals=function(a){return null!=a&&mw(a)==mw(this)};h=nw.prototype;h.append=function(a){this.A.webkitSourceAppend(this.B,a)};
h.abort=function(){this.A.webkitSourceAbort(this.B)};
h.tE=function(){return this.A.webkitSourceState==this.A.SOURCE_CLOSED?new ow:this.A.webkitSourceBuffered(this.B)};
h.vE=function(){return this.C};
h.zE=function(a){this.C=a;this.A.webkitSourceTimestampOffset(this.B,a)};h=pw.prototype;h.addEventListener=function(a,b,c){this.o.addEventListener(a,b,c)};
h.removeEventListener=function(a,b,c){this.o.removeEventListener(a,b,c)};
h.GG=function(){return this.o.webkitMediaSourceURL};
h.addSourceBuffer=function(a){var b=(this.B++).toString();this.o.webkitSourceAddId(b,a);a=new nw(this.o,b);this.sourceBuffers.push(a);return a};
h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.o.webkitSourceRemoveId(a.B);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
h.wE=function(){switch(this.o.webkitSourceState){case this.o.SOURCE_CLOSED:return"closed";case this.o.SOURCE_OPEN:return"open";case this.o.SOURCE_ENDED:return"ended"}return""};
h.endOfStream=function(a){var b=this.o.EOS_NO_ERROR;"network"==a?b=this.o.EOS_NETWORK_ERR:"decode"==a&&(b=this.o.EOS_DECODE_ERR);this.o.webkitSourceEndOfStream(b)};
h.xE=function(){lb(this.sourceBuffers)};
h.uE=function(){return this.A};
h.yE=function(a){this.A=a;this.o.webkitSourceSetDuration&&this.o.webkitSourceSetDuration(a)};B(qw,Dr);qw.prototype.lg=function(a){vw(this)?this.B.duration=a:this.C=a};
qw.prototype.K=function(){if(!this.isDisposed()&&vw(this)&&!(0,window.isNaN)(this.C)){this.B.duration=this.C;this.C=window.NaN;try{this.o=this.B.addSourceBuffer(this.H),this.P?this.A=this.B.addSourceBuffer(this.M):this.A=new kw,this.D&&(this.D(this),this.D=null)}catch(a){this.F&&this.F(a)}}};
qw.prototype.J=function(){this.dispose()};Bw.prototype.A=function(){return null};
var Ew={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};var Vw="9h8(H*".split(""),Xw="h98H(*".split(""),Zw="oMavAV".split(""),ax="moMavAV".split(""),$w="aoMvAV".split(""),Yw=["f"],Jw={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Kw={"application/x-mpegURL":"maybe"},Iw={"application/x-mpegURL":"maybe"};B(jx,Bw);
jx.prototype.A=function(){if(!this.o||this.o.isDisposed()){var a;a=this.B;gx(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.A.length;d<e;++d){var f=a.A[d];c[f.itag]=f;b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="'+f.itag.toString()+'",URI="'+f.url+'"')}d=0;for(e=a.o.length;d<e;++d){var k=a.o[d],f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.Fo+","+f.Fo)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}a=b.join("\n");this.o=new lw("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(a))}return this.o};B(mx,Bw);mx.prototype.A=function(){return new lw(this.o)};B(rx,Lj);rx.F=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;rx.A=1;rx.G=-21;rx.H=18E3;rx.B="ypc_buy_url ypc_full_video_message ypc_item_thumbnail ypc_item_title ypc_item_url ypc_module ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_offer_type ypc_overlay_timeout ypc_preview ypc_signin_message ypc_vid".split(" ");rx.D="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs sentiment subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
rx.o={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};rx.C=["www.youtube.com","manifest.googlevideo.com"];h=rx.prototype;h.adModule=!1;h.adaptiveFormats="";h.qn=null;h.allowEmbed=!0;h.backgroundable=!1;h.$d=!1;h.xf="";h.no=!1;h.bi=!1;h.ai=rx.A;h.Rj=null;h.watchAjaxToken=null;h.author="";h.Pj=0;h.ji=!1;h.Go=!1;h.ki="";h.mi="";h.clientPlaybackNonce="";h.contentCheckOk=!1;h.hf=0;h.Sk=!1;h.enableCardio=!1;
h.enableCardioBeforePlayback=!1;h.Bf=0;h.Lm=!1;h.oe=!1;h.hp=!1;h.Qj=0;h.Dh=0;h.Wi=!1;h.Pc=!1;h.Ql=!1;h.Op=!1;h.Sl=!1;h.isListed=!1;h.Yf=!1;h.Ha=!1;h.isLiveDefaultBroadcast=!1;h.isLowLatencyLiveStream=!1;h.isMdxPlayback=!1;h.isPharma=!1;h.Wl=!1;h.zg=!1;h.Vp=!1;h.Xl=!1;h.Pk=3;h.cf=window.NaN;h.aj=null;h.liveStartWalltime=0;h.Yl=null;h.lengthSeconds=0;h.sn=0;h.paygated=!1;h.profilePicture="";h.racyCheckOk=!1;h.autonavState=1;h.rh=Lu;h.de=!1;h.startSeconds=0;h.zj=null;h.sentiment=2;
h.spacecastModule=!1;h.nk=null;h.wh=Lu;h.ef=null;h.title="";h.ug="";h.hlsFormats="";h.Mj=null;h.an="vvt";h.requiresPurchase=!1;h.clipStart=0;h.clipEnd=window.Infinity;h.vz=function(a){(this.H=a)&&"fairplay"==this.H.o&&(this.H.fairPlayCert=this.fairPlayCert);Lx(this)};
h.UA=function(a){this.isDisposed()||(this.o=a,I(this,this.o),this.Ha?this.o.subscribe("refresh",this.Bq,this):this.o.isLive=!1,Qv("mrc"),St(this.o)&&(this.Z=!0),Lx(this))};
h.TA=function(a){this.isDisposed()||(this.oe=!1,this.U("dataloaderror",new fw("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
h.Bq=function(){this.o.isLive||this.o.Ia("refresh",this.Bq,this);var a=ub(this.o.C.C,this.Ga);0<a.length&&(this.U("cuepointupdated",a),this.Ga+=a.length)};
h.ed=function(a){return w(this.keywords[a])?this.keywords[a]:null};
h.Mr=function(){var a={format:"RAW",method:"GET",context:this,tb:this.lB,onError:this.Fq,withCredentials:this.zd};this.Td&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});tj(this.Qb,a);Qv("vir")};
h.hc=function(a,b){if(30==this.O){var c=this.Wa["default.jpg"];return c?c:this.videoId?gf("//docs.google.com/vt",{id:this.videoId,authuser:this.Db,authkey:this.bb}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.Wa[b])||a.D||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:kJ(a,this.videoId,b)};
h.bl=function(){return this.sd};
h.lB=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.oe=!1;var c=hj(b);"fail"==c.status?this.U("onStatusFail",c):(Qv("virc"),F(rx.B,function(a){a in this.C&&(c[a]=this.C[a])},this),qx(this,c),Lx(this))}else this.Fq(a)}};
h.Fq=function(a){if(!this.isDisposed()){var b="manifest.net.retryexhausted",c=!0,d={backend:"gvi",rc:a.status};this.kb&&(this.xb?d.retried="1":(this.xb=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Bd.start()));this.U("dataloaderror",new fw(b,c,d))}};
h.yg=function(){return null};
h.yb=function(){return this};
h.kl=function(a){return a.getVideoUrl(this.videoId)};B(gy,Lj);h=gy.prototype;h.hasNext=function(a){return this.K||!!a||this.o+1<this.B};
h.yb=function(a,b){var c=void 0!=a?a:this.o,c=this.A&&c in this.A?this.A[this.C[c]]:null,d=null;c&&(b&&(c.autoplay="1"),d=new rx(c),d.startSeconds=this.startSeconds||d.clipStart||0,this.D&&(d.playlistId=this.D.toString()));return d};
h.setShuffle=function(a){this.L=a;a=this.C&&null!=this.C[this.o]?this.C[this.o]:this.o;this.C=[];for(var b=0;b<this.A.length;b++)this.C.push(b);this.o=a;this.J++;if(this.L){a=this.C[this.o];for(b=1;b<this.C.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.C[b];this.C[b]=this.C[c];this.C[c]=d}for(b=0;b<this.C.length;b++)this.C[b]==a&&(this.o=b);this.J++}this.U("shuffle")};
h.hc=function(a,b){b=b||"hqdefault.jpg";var c=this.P[b];if(c||a.D||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.M.length)return kJ(a,this.M[0],b)};
h.bl=function(){return null};
h.Lb=function(){return this.o};
h.yg=function(){return this.D?this.D.toString():null};
h.kl=function(a){return a.getVideoUrl(this.yb().videoId,this.yg())};
h.V=function(){this.G=null;Nb(this.A);gy.N.V.call(this)};B(ry,R);h=ry.prototype;h.ri=function(){this.G&&(this.J.stop(),this.za(this.H),this.H=null,this.G.close(),this.G=null)};
h.wq=function(){this.Za(BM(this.A))};
h.RB=function(){window.focus();this.ri()};
h.vk=function(){var a=Math.min(Qt()-this.K,1E4),a=Math.min(a/1E4,1);this.L.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.D&&this.D.start()};
h.select=function(a){var b=this.A.W();if(b.experiments.ga("autonav_notifications")&&a&&window.Notification&&window.document.hasFocus){var c=window.Notification.permission;KM(this.A,"xwebnotifications",{permission:c});"default"==c?window.Notification.requestPermission():"granted"!=c||window.document.hasFocus()||(c=this.F.yb(),this.ri(),this.G=new window.Notification(Q("YTP_PLAYLIST_UP_NEXT"),{body:c.title,icon:c.hc(b)}),this.H=this.T(this.G,"click",this.RB),this.J.start())}ty(this);b=this.F.yb().videoId;
M9(this.A.app,b,a?this.F.Pb:this.F.ra,this.F.yg())};
h.YB=function(a){this.A.W().experiments.ga("endscreen_204_logging")&&KM(this.A,"xendscreen",{action:"click",autonav:!0,index:0});!Yl(a)&&oy(a)&&(this.select(),Xl(a))};
h.yq=function(a){Xl(a);LM(this.A,"autonavcancel");DM(this.A,!0)};
h.MH=function(a){120<Tl(a).naturalWidth&&L(this.element,"ytp-moving-thumbnail-loaded")};
h.V=function(){ty(this);this.ri();ry.N.V.call(this)};B(Fy,R);h=Fy.prototype;h.kg=function(){var a=this.D.yb().videoId;M9(this.A.app,a,this.D.ra,this.D.yg())};
h.VF=function(a){this.A.W().experiments.ga("endscreen_204_logging")&&KM(this.A,"xendscreen",{action:"click",autonav:!1,index:this.H});By(a,this.A,!this.A.Pa()&&this.G)&&this.kg()};
h.XF=function(){this.za(this.F);this.F=null;Hy(this)};
h.WF=function(a){switch(a.keyCode){case 13:case 32:Yl(a)||(this.kg(),Xl(a))}};
h.YF=function(a){120<Tl(a).naturalWidth&&L(this.element,"ytp-videowall-moving-thumbnail-loaded")};B(Iy,Pq);Iy.o=2;h=Iy.prototype;h.create=function(){Iy.N.create.call(this);var a=this.A.getVideoData();a&&(this.D=a.K);this.Ie();this.K.T(this.A,"resize",this.Ie);this.K.T(this.A,"videodatachange",this.UF);this.K.T(this.A,"autonavchange",this.kt);this.K.T(this.A,"autonavcancel",this.Ex)};
h.destroy=function(){Fr(this.K);Nb(this.G);this.D=[];this.G=[];Iy.N.destroy.call(this);be(this.element,"ytp-show-tiles");this.P.stop()};
h.ci=function(){return 1!=this.A.getVideoData().autonavState};
h.show=function(){Iy.N.show.call(this);this.A.W().isMobile?Xd(this.P):this.P.start();(this.M||this.H&&this.H!=this.A.getVideoData().clientPlaybackNonce)&&DM(this.A,!1);var a=Jy(this.A),b=!this.H&&this.ci()&&a;a&&this.A.W().experiments.ga("ui_logging")&&this.ca.log({cancelButtonShow:b?"1":"0",state:this.ci()?"enabled":"disabled"});b?2==this.A.getVideoData().autonavState?sy(this.F):3==this.A.getVideoData().autonavState&&uy(this.F):DM(this.A,!0);Ny(this);this.A.W().experiments.ga("endscreen_204_logging")&&
this.O&&KM(this.A,"xendscreen",{action:"show",autonav:!0})};
h.ka=function(){Iy.N.ka.call(this);uy(this.F);Ny(this)};
h.QC=function(a){Tl(a)==this.element&&this.Ie()};
h.Ie=function(){if(this.D&&this.D.length){var a=this.A.W(),b=a.experiments.ga("video_wall_moving_thumbnails_autoplay"),c=a.experiments.ga("video_wall_storyboards_mouse_x"),d=a.experiments.ga("video_wall_moving_thumbnails_first"),e=a.experiments.ga("video_wall_moving_thumbnails_hover"),f=a.experiments.ga("video_wall_pagination"),k=a.experiments.ga("video_wall_redesign");f&&L(this.element,"ytp-endscreen-paginate");var m=mr(this.element),l=96,n=54;k&&!d&&(l=144,n=81);var t=m.width/m.height,u=l/n;!Cy(a)||
this.A.Pa()||k||(l*=.9,n*=.9);var x=a=0,A=Math.max(m.width/l,2),D=Math.max(m.height/n,2);if(b||c)A=Math.min(A,4),D=Math.min(D,4);for(var c=this.D.length,H=Math.pow(Iy.o,2),z=c*H,P=Ly(this,0,D),Ua=Ly(this,1,D),z=z+(Math.pow(P,2)-H),z=z+(Math.pow(Ua,2)-H);0<z&&(a<A||x<D);){var la=a/Iy.o,ya=x/Iy.o,yb=a<=A-Iy.o&&z>=ya*H,pd=x<=D-Iy.o&&z>=la*H;if(la/ya*u>t&&pd)z-=la*H,x+=Iy.o;else if(yb)z-=ya*H,a+=Iy.o;else if(pd)z-=la*H,x+=Iy.o;else break}u=!1;A=Iy.o+P;z>=3*H&&6>=c*H-z&&(x>=A||a>=A)&&Ua<=Iy.o&&(u=!0);
l*=a;n*=x;H=1;H=l/n<t?m.height/n:m.width/l;t=k?2:1.42;b&&(t=4);H=Math.min(H,t);l*=H;n*=H;b=k?1:1.21;l*=le(m.width/l||1,1,b);n*=le(m.height/n||1,1,b);l=Math.floor(Math.min(m.width,l));n=Math.floor(Math.min(m.height,n));m=this.S.element;kr(m,l,n);Uq(m,{marginLeft:l/-2+"px",marginTop:n/-2+"px"});b=this.F;t=py(this.D[0]);b.F=t;qy(b,t,b.A.W(),"hqdefault.jpg");be(b.element,"ytp-moving-thumbnail-loaded");b.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});
1E5<Gy(b.A.app.la)&&(t=b.F.bl())&&b.update({moving_thumbnail:t});M(this.element,"ytp-endscreen-takeover",Ky(this));Ny(this);k=k?4:1;b=l+k;n+=k;t=0;l=!Ky(this);H=!1;for(z=0;z<a;z++)for(A=0;A<x;A++)if(D=Ua>Iy.o&&1<=t&&!H?t+1:t,ya=0,u&&z>=a-Iy.o&&A>=x-Iy.o?ya=1:0==A%Iy.o&&0==z%Iy.o&&(A<P&&z<P?0==A&&0==z&&(ya=P):Ua>Iy.o&&A>=x-Ua&&z>=a-Ua?A==x-Ua&&z==a-Ua&&(H=!0,D=1,ya=Ua):ya=Iy.o),D=me(D+this.J,c),0!=ya){la=this.G[t];la||(la=new Fy(this.A),this.G[t]=la,m.appendChild(la.element));var yb=Math.floor(n*A/
x),pd=Math.floor(b*z/a),ck=Math.floor(n*(A+ya)/x)-yb-k,dk=Math.floor(b*(z+ya)/a)-pd-k;$q(la.element,pd,yb);kr(la.element,dk,ck);Uq(la.element,"transitionDelay",(A+z)/20+"s");M(la.element,"videowall-still-mini",1==ya);M(la.element,"videowall-still-large",2<ya);ya=D;D=py(this.D[D]);yb=l&&(d?0==t:!e);la.D=D;la.H=ya;ya=la.A.W();qy(la,D,ya,Zd(la.element,"videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");be(la.element,"ytp-videowall-moving-thumbnail-loaded");la.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});
yb?(L(la.element,"ytp-videowall-active"),Hy(la)):ya.experiments.ga("video_wall_moving_thumbnails_hover")&&!la.F&&(la.F=la.R("mouseover",la.XF));t++}f&&M(this.element,"ytp-endscreen-paginate",t<c);for(d=this.G.length-1;d>=t;d--)la=this.G[d],dh(la.element),Mb(la);this.G.length=t}};
Iy.B=1.42;Iy.A=1.21;h=Iy.prototype;h.UF=function(){var a=this.A.getVideoData().K;this.D!=a&&(this.J=0,this.D=a,this.Ie())};
h.CA=function(){this.J+=this.G.length;this.Ie()};
h.DA=function(){this.J-=this.G.length;this.Ie()};
h.kt=function(a){1==a?(this.M=!1,this.H=this.A.getVideoData().clientPlaybackNonce,ty(this.F),this.C&&this.Ie()):(this.M=!0,this.C&&Ky(this)&&(2==a?sy(this.F):3==a&&uy(this.F)))};
h.Ex=function(a){a?(this.A.W().experiments.ga("endscreen_204_logging")&&KM(this.A,"xendscreen",{action:"show",autonav:!1}),this.kt(1)):(this.H=null,this.M=!1);this.Ie()};B(Py,vq);h=Py.prototype;h.Ya=function(a){return Ry(a)};
h.create=function(){Py.N.create.call(this);Uy(this);this.o.getVideoData().subscribe("dataupdated",this.rr,this)};
h.destroy=function(){this.o.getVideoData().Ia("dataupdated",this.rr,this);yq(this);this.A.L&&this.A.destroy();Py.N.destroy.call(this)};
h.load=function(){Py.N.load.call(this);this.A.show();this.o.W().ea&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
h.unload=function(){Py.N.unload.call(this);this.A.ka()};
h.Zb=function(a){Py.N.Zb.call(this,a);Ty(this)&&(this.A.L||this.A.create(),"load"==a.getId()&&this.load())};
h.kc=function(a){"load"==a.getId()&&this.loaded&&this.unload();Py.N.kc.call(this,a)};
h.rr=function(){yq(this);Uy(this)};var gba={uI:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",BI:"ERROR_AUTHENTICATION_EXPIRED",CI:"ERROR_AUTHENTICATION_MALFORMED",DI:"ERROR_AUTHENTICATION_MISSING",JI:"ERROR_BAD_REQUEST",ZI:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",gJ:"ERROR_CGI_PARAMS_MALFORMED",hJ:"ERROR_CGI_PARAMS_MISSING",EJ:"YTP_DEVICE_FALLBACK",ZJ:"YTP_ERROR_LICENSE",dK:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",hK:"YTP_ERROR_FORMAT_UNAVALIABLE",iK:"YTP_ERROR_GEO_FAILURE",vK:"YTP_ERROR_GENERIC_WITHOUT_LINK",xK:"YTP_HTML5_PROTECTED_FLASH_FALLBACK",
wK:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",NK:"YTP_ERROR_INVALID_DRM_MESSAGE",UK:"LEARN_MORE",SL:"YTP_ERROR_NOT_SIGNED_IN",yM:"YTP_ERROR_PURCHASE_NOT_FOUND",zM:"YTP_ERROR_PURCHASE_REFUNDED",EM:"YTP_ERROR_RENTAL_EXPIRED",bJ:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",cJ:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",eJ:"YTP_ERROR_CAST_TOKEN_FAILED",dJ:"YTP_ERROR_CAST_TOKEN_EXPIRED",fJ:"YTP_ERROR_CAST_TOKEN_MALFORMED",SERVER_ERROR:"YTP_ERROR_SERVER_ERROR",hN:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",jN:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",
kN:"YTP_ERROR_STREAMING_NOT_ALLOWED",lN:"YTP_ERROR_STREAMING_UNAVAILABLE",LM:"YTP_ERROR_RETRYABLE_ERROR",wN:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",vN:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",LN:"YTP_ERROR_UNSUPPORTED_DEVICE",MN:"YTP_ERROR_UNUSUAL_ACTIVITY",UN:"YTP_ERROR_VIDEO_FORBIDDEN",VN:"YTP_ERROR_VIDEO_NOT_FOUND"},Wy={300:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",303:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",304:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",
305:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"YTP_ERROR_VIDEO_NOT_FOUND",401:"YTP_ERROR_GEO_FAILURE",402:"YTP_ERROR_STREAMING_NOT_ALLOWED",403:"YTP_ERROR_UNSUPPORTED_DEVICE",405:"YTP_ERROR_VIDEO_FORBIDDEN",500:"YTP_ERROR_PURCHASE_NOT_FOUND",501:"YTP_ERROR_RENTAL_EXPIRED",502:"YTP_ERROR_PURCHASE_REFUNDED",5E3:"ERROR_BAD_REQUEST",5001:"ERROR_CGI_PARAMS_MISSING",5002:"ERROR_CGI_PARAMS_MALFORMED",5100:"ERROR_AUTHENTICATION_MISSING",5101:"ERROR_AUTHENTICATION_MALFORMED",5102:"ERROR_AUTHENTICATION_EXPIRED",
5200:"YTP_ERROR_CAST_TOKEN_MALFORMED",5201:"YTP_ERROR_CAST_TOKEN_EXPIRED",5202:"YTP_ERROR_CAST_TOKEN_FAILED",5203:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",5204:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",6E3:"YTP_ERROR_INVALID_DRM_MESSAGE",7E3:"YTP_ERROR_SERVER_ERROR",8E3:"YTP_ERROR_RETRYABLE_ERROR"};var zaa={lI:"adunit",DJ:"detailpage",WJ:"embedded",TK:"leanback",vM:"profilepage"};var ez=GI&&4>zx?.1:0,Cia=new dz;h=dz.prototype;h.nf=null;h.getCurrentTime=function(){return this.currentTime||0};
h.pauseVideo=function(){this.pause()};
h.setVolume=function(a,b){this.volume=a/100;this.muted=b};
h.mute=function(){this.muted=!0};
h.unMute=function(){this.muted=!1};
h.Kw=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};
h.Mw=function(){};gz.prototype.ob=function(){return T(this,8)&&!T(this,64)&&!T(this,2)};var dA=[1,2,3,4,5],bA={LIFE_CYCLE_CREATED:1,LIFE_CYCLE_READY:2,LIFE_CYCLE_TESTING:4,LIFE_CYCLE_TESTING_STARTING:3,LIFE_CYCLE_LIVE:6,LIFE_CYCLE_LIVE_STARTING:5,LIFE_CYCLE_COMPLETE:8,LIFE_CYCLE_COMPLETE_STARTING:7};B(tz,Lj);tz.prototype.C=function(){this.A.isActive()&&Xd(this.A)};
tz.prototype.D=function(){var a={headers:{"Content-Type":"application/json"},Tc:{alt:"json",key:this.G},postBody:this.H,format:"JSON",timeout:1E4,tb:y(this.K,this),onError:y(this.B,this),Od:y(this.B,this)};this.F&&(a.headers["X-Goog-Visitor-Id"]=this.F);uj(this.J,a)};
tz.prototype.K=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.U("payload",a),this.o=7500+Math.floor(15E3*Math.random()),this.A.start(this.o)):this.B())};
tz.prototype.B=function(){this.isDisposed()||(this.U("error"),192E4>this.o&&(this.o*=2),this.A.start(this.o))};B(uz,R);uz.prototype.D=function(a){if(!oy(a)||this.A.W().experiments.ga("disable_fresca_video_navigation"))By(a,this.A,!0);else{var b=a.currentTarget.getAttribute("href");M9(this.A.app,b.substring(b.length-11),void 0,void 0);Xl(a)}};B(vz,R);h=vz.prototype;h.Kz=function(a){if(!oy(a)||this.D.W().experiments.ga("disable_fresca_video_navigation"))By(a,this.D,!0);else{var b=a.currentTarget.getAttribute("href");M9(this.D.app,b.substring(b.length-11),void 0,void 0);Xl(a)}};
h.AA=function(){this.F=!0;this.ka()};
h.show=function(){var a=!this.C;vz.N.show.call(this);a&&hA(this.D)};
h.ka=function(){var a=this.C;vz.N.ka.call(this);a&&hA(this.D)};
h.V=function(){Nb(this.A);vz.N.V.call(this)};B(Az,R);Az.prototype.J=function(a){var b;b=this.A;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;M(this.element,"ytp-fresca-inline-countdown",b&&!0);M(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.A.startTime-Math.floor(K()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.H)){this.H=a;Ez(this,this.A,!0);return}Bz(this.A)||this.B("countdown",Fz(this.A.startTime));xi(this.G);this.G=vi(y(this.J,this),1E3)}};
Az.prototype.V=function(){xi(this.G);Az.N.V.call(this)};var Oz;
Oz={av:["BC","AD"],$u:["Before Christ","Anno Domini"],Kv:"JFMAMJJASOND".split(""),dw:"JFMAMJJASOND".split(""),Sn:"January February March April May June July August September October November December".split(" "),Wn:"January February March April May June July August September October November December".split(" "),Un:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Xn:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),eo:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Zn:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Vn:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Yn:"Sun Mon Tue Wed Thu Fri Sat".split(" "),o:"SMTWTFS".split(""),ew:"SMTWTFS".split(""),Yv:["Q1","Q2","Q3","Q4"],Rv:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Nn:["AM","PM"],ik:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],bo:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Wu:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],kk:6,pw:[5,6],lk:5};Gz.prototype.equals=function(a){return a.F==this.F&&a.D==this.D&&a.o==this.o&&a.A==this.A&&a.B==this.B&&a.C==this.C};
Gz.prototype.clone=function(){return new Gz(this.F,this.D,this.o,this.A,this.B,this.C)};
Gz.prototype.times=function(a){return new Gz(this.F*a,this.D*a,this.o*a,this.A*a,this.B*a,this.C*a)};
h=Jz.prototype;h.No=Oz.kk;h.Oo=Oz.lk;h.clone=function(){var a=new Jz(this.date);a.No=this.No;a.Oo=this.Oo;return a};
h.getFullYear=function(){return this.date.getFullYear()};
h.getMonth=function(){return this.date.getMonth()};
h.getDate=function(){return this.date.getDate()};
h.getTime=function(){return this.date.getTime()};
h.getDay=function(){return this.date.getDay()};
h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
h.getUTCMonth=function(){return this.date.getUTCMonth()};
h.getUTCDate=function(){return this.date.getUTCDate()};
h.getUTCHours=function(){return this.date.getUTCHours()};
h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
h.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};
h.toString=function(){return[this.getFullYear(),Pa(this.getMonth()+1,2),Pa(this.getDate(),2)].join("")+""};
h.valueOf=function(){return this.date.valueOf()};var Uz=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
Rz.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.B-Nz(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));for(var c=[],f=0;f<this.A.length;++f){var k=this.A[f].text;1==this.A[f].type?c.push(Xz(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var Tz=!1;Yz.prototype.isLive=function(){return"LIVE"==this.A};
Yz.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.A};
Yz.prototype.getVideoUrl=function(){return this.F};aA.prototype.o=function(){return this.C};
aA.prototype.getMessage=function(){return this.messageText.length?this.messageText:cA(this)};
aA.prototype.equals=function(a){return a&&this.broadcastId==a.broadcastId&&this.state==a.state&&this.o()==a.o()&&this.imageUrl==a.imageUrl&&Gb(this.messageText,a.messageText)&&(this.startTime==a.startTime||(0,window.isNaN)(this.startTime)&&(0,window.isNaN)(a.startTime))};B(eA,vq);h=eA.prototype;h.Ya=function(){return Wx(this.o.getVideoData(),"fresca_module")};
h.create=function(a){eA.N.create.call(this);var b=this.o.W();Fw(hu(),"application/x-mpegURL")||Lw()?(this.J=this.B=!1,this.K&&(this.D=new Az(this.o),Br(this.o,this.D.element,4)),this.C=a||null,this.C||(a=this.o.getVideoData(),this.C=new tz(a.videoId,a.visitorData||ti("VISITOR_DATA",""),b.Wd)),this.C.subscribe("payload",this.mC,this),this.C.subscribe("error",this.Wq,this),this.o.addEventListener("presentingplayerstatechange",this.gt,this)):PL(this.o.app.A,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
void 0)};
h.destroy=function(){this.o.removeEventListener("presentingplayerstatechange",this.gt,this);Nb(this.C,this.D);eA.N.destroy.call(this)};
h.gt=function(a){this.A&&(this.J=T(a.state,2),rz(fA(this.o))&&this.C.C(),iA(this,this.A))};
h.Wq=function(){if(!this.B){var a=this.o.getVideoData();a.hlsvp||a.G?this.o.W().experiments.ga("disable_fresca_error_fallback")||(this.B=!0,zq(this)):(kA(this,new aA(this.o.getVideoData().isLiveDefaultBroadcast)),iA(this,this.A))}};
h.mC=function(a){if(!a||a.error)this.Wq();else{var b=this.A?this.A.broadcastId:"",c=this.o.getVideoData();kA(this,new aA(c.isLiveDefaultBroadcast,a));this.H=this.H||c.isLiveDefaultBroadcast&&""!=b&&b!=this.A.broadcastId;6!=this.A.state||(c.hlsvp||c.G)&&!this.H?iA(this,this.A):(this.H=!1,this.o.xn(c.videoId))}};var mA=Tg&&lA();rA.prototype.R=function(a,b,c,d){c=y(c,d||this.A);a=Nl(a,b,c);this.o.push(a);return a};
rA.prototype.za=function(a){Ol(a);pb(this.o,a)};
rA.prototype.removeAll=function(){Ol(this.o);this.o.length=0};B(uA,G);h=uA.prototype;h.start=function(){this.stop();this.C=!1;var a=vA(this),b=zA(this);a&&!b&&this.A.mozRequestAnimationFrame?(this.o=Oc(this.A,"MozBeforePaint",this.B),this.A.mozRequestAnimationFrame(null),this.C=!0):this.o=a&&b?a.call(this.A,this.B):this.A.setTimeout(id(this.B),20)};
h.stop=function(){if(this.isActive()){var a=vA(this),b=zA(this);a&&!b&&this.A.mozRequestAnimationFrame?$c(this.o):a&&b?b.call(this.A,this.o):this.A.clearTimeout(this.o)}this.o=null};
h.isActive=function(){return null!=this.o};
h.Ax=function(){this.C&&this.o&&$c(this.o);this.o=null;this.F.call(this.D,K())};
h.V=function(){this.stop();uA.N.V.call(this)};var BA={},CA=null;B(HA,J);h=HA.prototype;h.ob=function(){return 1==this.o};
h.fj=function(){this.wc("begin")};
h.ih=function(){this.wc("end")};
h.$b=function(){this.wc("finish")};
h.wc=function(a){this.aa(a)};B(IA,HA);h=IA.prototype;h.play=function(a){if(a||0==this.o)this.progress=0,this.A=this.B;else if(this.ob())return!1;DA(this);this.startTime=a=K();-1==this.o&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.D=this.startTime;this.progress||this.fj();this.wc("play");-1==this.o&&this.wc("resume");this.o=1;var b=na(this);b in BA||(BA[b]=this);FA();GA(this,a);return!0};
h.stop=function(a){DA(this);this.o=0;a&&(this.progress=1);JA(this,this.progress);this.wc("stop");this.ih()};
h.pause=function(){this.ob()&&(DA(this),this.o=-1,this.wc("pause"))};
h.V=function(){0==this.o||this.stop(!1);this.wc("destroy");IA.N.V.call(this)};
h.destroy=function(){this.dispose()};
h.hm=function(){this.wc("animate")};
h.wc=function(a){this.aa(new KA(a,this))};
B(KA,jc);NA.prototype.A=dg;B(UA,G);h=UA.prototype;h.ib=function(a){this.Rd();var b=this.o;if(1<a.length&&a.length>b.o.length)b.o=b.o.concat(a),b.o.sort(b.A);else for(var c=0;c<a.length;c++){var d=a[c];!b.o.length||0<b.A(d,b.o[b.o.length-1])?b.o.push(d):Hb(b.o,d,b.A)}this.B=window.NaN;this.Rd()};
h.Ch=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.A.indexOf(c);0<=d&&this.A.splice(d,1);var e=this.o,d=e.o,c=Ab(d,c,e.A);0<=c&&ob(d,c)}}this.Rd()};
h.qg=function(){this.C=!0;this.Rd()};
h.reset=function(){this.C=this.G=!1;this.D.stop();this.o.o=[];this.A=[];this.Rd();this.F=null};
h.Rd=function(){this.H=!0;if(!this.J){for(var a=3;this.H&&a;){this.H=!1;this.J=!0;if(this.C&&!this.G){this.D.stop();var b=this.K();T(b,32)&&this.M.start();for(var c=T(this.K(),2)?0x8000000000000:1E3*this.O(),d=T(b,2),e=[],f=[],k=0;k<this.A.length;k++){var m=this.A[k];m.active&&(d?0x8000000000000>m.end:!m.contains(c))&&f.push(m)}e=e.concat(WA(this,f));f=void 0;if(d)f=QA(this.o,0x7ffffffffffff),f=f.concat(SA(this.o));else{if(this.B<=c&&b.ob()&&!T(b,16)&&!T(b,32)){b=this.o;d=c;f=[];for(k=RA(b,this.B);k<
b.o.length&&!(m=b.o[k],(m.end<=d||m.contains(d))&&f.push(m),m.start>d);++k);b=f}else b=QA(this.o,c);f=b}e=e.concat(VA(this,f));this.B=c;!this.G&&this.F&&(this.F=null);c=e;for(e=0;e<c.length;e++)b=c[e],d=b[1],1==b[0]?(d.B&&sq(d).U("onEnter",d),this.L("crn_"+d.A,d)):(d.B&&sq(d).U("onExit",d),this.L("crx_"+d.A,d))}this.J=!1;a--}this.K().ob()&&(a=TA(this.o,this.B),null!=a&&0x7ffffffffffff>a&&(a=(a-this.B)/this.P(),this.D.start(a)))}};
h.V=function(){this.F=this.o=this.A=null;UA.N.V.call(this)};var kB={zJ:"current",RL:"new"};vB.prototype.update=function(){var a=this.A.A()||0,b=OB(this.A);if(a!=this.o||zB(this,a,b)){if(a<this.o||a-this.o>b-this.D+.5||zB(this,a,b))wB(this),this.B=a;this.D=b;this.o=a}};AB.prototype.A=function(){return{ps:this.o.o,el:this.o.Ba}};
AB.prototype.send=function(){if(!this.B){var a;a=this.A();a=gf(this.o.baseYtUrl+"set_awesome",a);this.o.experiments.o&&this.videoData.visitorData&&mj(a)?tj(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):iq(a);this.B=!0}};B(BB,AB);
BB.prototype.A=function(){var a=BB.N.A.call(this);ra(a,this.o.A);ra(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.o.ca,framer:this.o.Vd,list:this.videoData.Ta||this.videoData.playlistId,w:le(this.videoData.Pj/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:xB(this.C),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.Zd});this.o.adFormat&&(a.adformat=this.o.adFormat);var b;
(b=(b=this.videoData.referrer)?b.slice(0,128):"")&&(a.referrer=b);if(this.o.experiments.ga("legacy_autoplay_flag")?this.o.L:this.videoData.Pc)a.autoplay="1";this.o.Db&&(a.authuser=this.o.Db);this.o.pageId&&(a.pageid=this.o.pageId);this.videoData.zg&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);ra(a,BB.N.A.call(this));ra(a,this.o.A);return a};B(CB,G);var YB={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};h=CB.prototype;
h.oj=function(a){a=0<=a?a:OB(this.o);var b=this.o.F();if(!(0,window.isNaN)(this.Y)&&!(0,window.isNaN)(b.B)){var c=b.B-this.Y;0<c&&DB(this,a,"bwm",[c,(b.F-this.da).toFixed(3)])}this.Y=b.B;this.da=b.F;(0,window.isNaN)(b.o)||DB(this,a,"bwe",[b.o.toFixed(0)]);(0,window.isNaN)(b.A)||(c=b.A,b.C<c&&(c=b.C),this.O!=c&&(DB(this,a,"bh",[c.toFixed(3)]),this.O=c),this.o.o.experiments.B&&3>c&&("PL"==this.A||"B"==this.A)&&this.G.start());this.C&&DB(this,a,"bat",[this.C.level,this.C.charging?"1":"0"]);c=HL(this.o.o);
this.ca!=c&&(DB(this,a,"vis",[c]),this.ca=c);DB(this,a,"cmt",[this.o.A()]);0<b.D&&DB(this,a,"e2el",[b.D,b.H.toFixed(3),b.G.toFixed(3),b.K.toFixed(3),b.J.toFixed(3)]);null!==this.o.videoData.nk&&(this.B.acc=[this.o.videoData.nk.join(":")])};
h.nh=function(a){if(!this.isDisposed()&&!ac(this.B)){a=0<=a?a:OB(this.o);this.G.isActive()||this.oj(a);var b=lJ(this.o.o),c=b.droppedVideoFrames,d=c-this.S;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&DB(this,a,"df",[d]);this.S=c;a=EB(this);hc(a,this.o.o.A);a=gf(this.o.o.wd,a);for(var e in this.B)a+="&"+e+"="+this.B[e].join(",");iq(a);this.B={};this.F.start()}};
h.qg=function(){DB(this,OB(this.o),"vps",["N"]);this.o.videoData.Na&&GB(this,"preload");this.o.videoData.Wl&&GB(this,"reload");this.o.videoData.Yf&&GB(this,"monitor");this.o.videoData.Ha&&GB(this,"live");this.P=wi(y(this.nh,this),1E4);this.F.start()};
h.Ur=function(){this.o.videoData.H&&GB(this,"drm-"+this.o.videoData.H.o)};
h.onError=function(a,b){var c=OB(this.o);FB(this,c,a,b);this.oj(c)};
h.nB=function(){var a=OB(this.o);"PL"==this.A&&(DB(this,a,"vps",[this.A]),this.nh(a))};
h.V=function(){CB.N.V.call(this);yi(this.P)};IB.prototype.send=function(a){if(!this.S){var b=MB(this),b=gf(this.ca,b);if(this.F)this.L&&(a={method:"POST",Ib:{atr:this.L}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),tj(b,a));else{var c=JB(this,a);c?tj(b,c):iq(b,a)}this.S=!0}};
IB.prototype.o=function(a){return(1*a.toFixed(3)).toString()};B(NB,G);h=NB.prototype;h.WA=function(a,b){if(!this.isDisposed()){this.G=window.NaN;this.B.update();var c=yB(this.B),d=SB(this,c);b&&(d.D=a);var e=400<this.K;!(1<c.length)&&c[0].isEmpty()||e||(d.A=PB(this,!0,a));d.send();this.K++}};
h.qg=function(){this.A.qg()};
h.onError=function(a,b){this.A.onError(a,b)};
h.tj=function(a){var b=this.o.o,c=this.o.videoData,d={ns:b.ha,el:b.Ba,eurl:b.ca,fmt:c.B?c.B.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.o,noflv:1,st:this.o.A(),video_id:c.videoId,metric:a};if(b.experiments.ga("legacy_autoplay_flag")?b.L:c.Pc)d.autoplay="1";"heartbeat"==a&&(d.tpmt=xB(this.B));ra(d,b.A);UB(this,gf("//www.youtube.com/live_204",d))};
h.V=function(){NB.N.V.call(this);xi(this.G);this.G=window.NaN;var a=this.B;yi(a.F);a.F=window.NaN};aC.prototype.jb=function(a,b){KM(this.$,"iv",a,b)};h=jC.prototype;h.wj=function(){this.context.C.subscribe("resize",this.fi,this)};
h.ma=function(){return this.fa};
h.og=function(a,b,c,d,e,f){this.context.o.R(a,"click",qa(this.$i,b,c,d,e||[],f||0),this);this.context.o.R(a,"touchstart",qa(function(){this.bn=!1}),this);
this.context.o.R(a,"touchmove",qa(function(){this.bn=!0}),this)};
h.$i=function(a,b,c,d,e,f){if(this.bn)return!1;f&&(f.stopPropagation(),f.preventDefault());(b=sB(a,b,this.context.videoData.videoId))&&mC(this,b,tB(b,a.target),c,d,e,a.jj);return!1};
h.show=function(){this.K=K()};
h.ka=function(){};
h.destroy=function(){dh(this.ma())};
h.fi=function(){};B(nC,R);h=nC.prototype;h.ks=function(){Cz(this.$)&&MM(this.$)&&this.C&&3!=this.K.o&&this.Nh()};
h.KG=function(a){this.D&&mh(this.D.element,Tl(a))||(this.F&&this.F.Ik?this.Gq(this.F):(this.Nh(),Ji("iv-teaser-clicked",!!this.A),this.$.Ih(!0)))};
h.IG=function(){Ji("iv-teaser-mouseover");this.A.stop()};
h.JG=function(){be(this.element,"ytp-cards-auto-open-hover-card")};
h.KC=function(a){this.A||!a||MM(this.$)||this.H&&this.H.isActive()||(this.F=a.Ji,rC(this,a),Ji("iv-teaser-shown"))};
h.Gq=function(a){a.jj&&this.$.pauseVideo();yy(a.yr,void 0);zy(a.yr,a.target);Ji("iv-hover-card-clicked")};
h.Cy=function(){L(this.element,"ytp-hover-card-active")};
h.Ey=function(){be(this.element,"ytp-hover-card-active")};
h.bu=function(){this.L.stop();this.A&&this.A.isActive()&&this.M.start()};
h.te=function(){this.M.stop();this.A&&!this.A.isActive()&&this.L.start()};
h.LB=function(){this.A&&this.A.stop()};
h.JB=function(){this.Nh()};
h.Nh=function(){!this.A||this.J&&this.J.isActive()||(this.D&&(Jq(this.D),this.D=null),this.F=null,this.K.ka(),be(this.$.Da(),"ytp-cards-teaser-shown"),be(this.$.Da(),"ytp-cards-button-teaser-merge"),be(this.element,"ytp-cards-combined-teaser"),this.J=new Wd(function(){for(var a=0;a<this.G.length;a++)this.za(this.G[a]);this.G=[];this.A&&(this.A.dispose(),this.A=null);qC(this.P,!0)},330,this),this.J.start())};
h.V=function(){var a=this.$.Da();a&&be(a,"ytp-cards-teaser-shown");Nb(this.H,this.J,this.A,this.D,this.F);nC.N.V.call(this)};B(tC,sC);B(uC,sC);B(vC,uC);var Woa=!Tg;wC.prototype.A=function(a,b){var c=uh(b.target,"label");c&&M(c,"iv-card-poll-choice-focused",a)};
wC.prototype.G=function(a,b){var c=vh(b.target,"iv-card-poll");if(c)if(a.B)Og("iv-card-sign-in-button",c).click();else{var d=window.parseInt,e;e=b.target;e=Woa&&e.dataset?"pollChoiceIndex"in e.dataset?e.dataset.pollChoiceIndex:null:e.getAttribute("data-"+"pollChoiceIndex".replace(/([A-Z])/g,"-$1").toLowerCase());d=d(e,10);null==a.A?(a.choices[d].count++,a.A=d):a.A!=d?(e=a.choices[a.A],e.count=Math.max(e.count-1,0),a.choices[d].count++,a.A=d):(e=a.choices[a.A],e.count=Math.max(e.count-1,0),a.A=null);
yC(a,c);uj(this.o.videoData.xf,{Tc:{action_poll_vote:1},Ib:{poll_id:a.id,index:d,session_token:a.F}});c={};c["link-id"]=d;fC(this.o.logger,a.Va,void 0,c,a.o.click,5)}};
wC.prototype.F=function(a){var b=r("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=qa(b,a.H,a.C));IC(this,a,!0,b)};
wC.prototype.H=function(a){var b=r("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=qa(b,a.H,a.C,a.J));IC(this,a,!1,b)};B(KC,sC);B(LC,sC);B(NC,uC);B(OC,uC);B(PC,sC);B(QC,sC);B(SC,jC);h=SC.prototype;h.isAvailable=function(){var a;if(a=!!this.A.length)(a=this.$.Da())?(a=mr(a),a=177<a.width&&177<a.height):a=!1;return a};
h.vw=function(){this.S&&cD(this)};
h.Zw=function(){(this.S=this.D)&&dD(this)};
h.$F=function(){RC(this,"product_listing_ads_cards_drawer_auto_open")&&!YC(this)||cD(this)};
h.Dw=function(){dD(this)};
h.aB=function(a){if(Zd(this.B,"ytp-drawer-peek")){var b=Og("iv-drawer-close-button",this.B);mh(b,Tl(a))||cD(this)}};
h.fi=function(){var a=this.isAvailable();S(this.ma(),a);M(this.context.A.Da(),"ytp-iv-drawer-enabled",a);a&&(this.P||(hC(this.context.logger,11),this.P=!0),F(this.A,function(a){a.bq||(a.bq=!0,iC(this.context.logger,11,a.Ua.Va))},this));
aD(this.$)};
h.destroy=function(){NM(this.$,!1);this.$.Da().removeChild(this.B);Ii(this.G);Ol(this.Z);this.J&&this.J.dispose();this.F&&this.F.dispose();SC.N.destroy.call(this)};
var TC={adspaycreator:uC,associated:uC,associated:uC,collaborator:tC,donation:vC,episode:QC,fundraising:uC,location:uC,merch:uC,movie:QC,playlist:KC,poll:LC,product:uC,productListing:NC,simple:uC,tip:OC,video:PC};h=SC.prototype;h.aG=function(a){this.zk.start();a.preventDefault();if(a=$l(a||window.event,!1))this.Hc.scrollTop+=a};
h.Fm=function(a,b){if(!Zd(this.$.Da(),"ytp-cards-teaser-shown")){this.o!=a&&(this.o=a);if(pr(this.ma())){var c;(c=b)||(2==this.context.A.getPresentingPlayerType()?c=1==((0,window.isNaN)(void 0)?this.context.A.getAdState():void 0):(c=(0,window.isNaN)(void 0)?this.context.A.getPlayerState():void 0,c=1==c||0==c&&0===this.context.A.getCurrentTime()));if(c&&a.Ua.teaserDurationMs){c=null;if("video"==a.Ua.type&&RC(this,"hover_card_for_video_card_teaser")){var d=a.Ua,e=d.url?sB(d.url,a.Ua.id,this.context.videoData.videoId,
this.context.B):null,f=e?tB(e,d.url.target):null;e&&f&&(c={qO:d.id,title:d.title,yr:e,target:"current"==f?"_top":void 0,jj:d.url.jj,imageUrl:d.B,videoDuration:d.videoDuration,Nd:d.Nd,Ik:RC(this,"combined_teaser_link")})}NM(this.$,!0,{teaserText:a.Ua.teaserText,durationMs:b?2E3:a.Ua.teaserDurationMs,Ji:c,Gz:RC(this,"merge_button_with_teaser"),Fw:b&&RC(this,"hover_card_on_button_hover")})}}this.O.isActive()||((!this.D||!this.zk.isActive()&&this.Xi)&&eD(this,a),this.O.start(910+a.Ua.teaserDurationMs))}};
h.YD=function(){this.o&&this.Fm(this.o,!0)};
h.QD=function(a){this.D||(this.o=a,eD(this,a),cD(this,!1,a))};
h.Ow=function(){this.D&&(hC(this.context.logger,4,fD(this).o.close),dD(this))};
h.cx=function(){M(this.B,"iv-drawer-scrolled",0<this.Hc.scrollTop)};
h.Fz=function(){var a=fD(this);iC(this.context.logger,8,a.Va,a.o.cE)};
h.Ez=function(){var a=this.o;iC(this.context.logger,13,a.Ua.Va,void 0);var b=RC(this,"hover_card_for_video_card_teaser");"video"==a.Ua.type&&b&&(a=this.o,a.bj||(a.bj=!0,eC(this.context.logger,a.Ua.Va,a.Ua.o.Ip)))};
h.Cz=function(){var a=this.o.Ua;fC(this.context.logger,a.Va,void 0,void 0,a.o.click,5)};
h.Dz=function(a){var b=fD(this);this.o?a?(a=this.context.logger,iC(a,9,b.Va,b.o.Pm)):(a=this.context.logger,iC(a,12,b.Va,b.o.Pm)):(a=this.context.logger,hC(a,12,b.o.Pm));a.$.Cg(4,void 0)};var hD=/#(.)(.)(.)/,gD=/^#(?:[0-9a-f]{3}){1,2}$/i;B(jD,IA);jD.prototype.C=v;jD.prototype.hm=function(){this.C();jD.N.hm.call(this)};
jD.prototype.ih=function(){this.C();jD.N.ih.call(this)};
jD.prototype.fj=function(){this.C();jD.N.fj.call(this)};
B(kD,jD);kD.prototype.C=function(){this.element.style.left=Math.round(this.A[0])+"px";this.element.style.top=Math.round(this.A[1])+"px"};B(lD,jC);lD.prototype.wj=function(){lD.N.wj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&kC(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.ka)};B(mD,lD);mD.prototype.J=function(a,b,c,d){this.A.stop();if(!this.B){var e=mr(a);jr(a,e.width);jr(b,e.width);$q(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.B=!0;S(a,!0);this.D=new Wd(function(){L(this.ma(),"iv-branding-active")},0,this);
this.D.start()}};
mD.prototype.H=function(a,b){be(this.ma(),"iv-branding-active");this.F=new Wd(function(){S(a,!1);jr(b,0)},250);
this.F.start();this.B=!1};
mD.prototype.show=function(){if(!this.isActive){mD.N.show.call(this);if(!this.G){L(this.ma(),"iv-branding");var a=this.annotation.data;this.C=a.image_width;this.o=O("img",{src:a.image_url,"class":"branding-img iv-click-target",width:a.image_width,height:a.image_height});S(this.o,!1);var b=O("div","branding-img-container",this.o);this.ma().appendChild(b);var c=O("div","iv-branding-context-name");oh(c,a.channel_name);var d=O("div","iv-branding-context-subscribe");this.annotation.C?Kf(d,this.annotation.C):
a.num_subscribers&&oh(d,a.num_subscribers);b=O("div","iv-branding-context-subscribe-caret");c=O("div","branding-context-container-inner",b,c,d);S(c,!1);d=O("div","branding-context-container-outer",c);Uq(d,"right",this.C+"px");this.ma().appendChild(d);this.og(this.o,this.annotation.getUrl(),this.annotation.id,this.annotation.Va);this.A=new Wd(qa(this.H,c,d),500,this);this.context.o.R(this.ma(),"mouseover",y(this.J,this,c,d,b,a.image_height));this.context.o.R(this.ma(),"mouseout",y(this.A.start,this.A));
this.G=!0}eC(this.context.logger,this.annotation.Va);S(this.ma(),!0);this.isActive=!0;var a=this.o,e,b=nr(a).width,c=ga(void 0)?void 0:b;e=e||0;$q(a,c);e=new kD(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,LA);this.context.o.R(e,"begin",qa(S,a,!0));e.play()}};
mD.prototype.ka=function(){this.isActive&&(S(this.ma(),!1),this.isActive=!1)};var pD={CLOSE:"close",YL:"openUrl",gw:"subscribe"},qD={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",NM:"rollOut",Wv:"rollOver",Zv:"shown"};var AD={hO:"xx",iO:"xy",lO:"yx",mO:"yy"};B(FD,zD);var ID={Fu:"anchored",CM:"rect",TM:"shapeless"};var ND={CLOSED:"closed",gM:"playerControlShow",Wv:"rollOver",Zv:"shown"};var UD={Fu:"anchored",Iu:"branding",jJ:"channel",yJ:"cta",tK:"highlightText",SK:"label",iM:"playlist",sM:"popup",cN:"speech",gw:"subscribe",sN:"title",VIDEO:"video",aO:"vote",cO:"website"},TD={Iu:"branding",$I:"card",sK:"highlight",IMAGE:"image",MARKER:"marker",wM:"promotion",TEXT:"text",eO:"widget"},VD={WN:"video_relative",hM:"player_relative"};SD.prototype.getUrl=function(){var a=$D(this,function(a){return"openUrl"==a.type&&null!=a.url});
return a?a.url:null};
SD.prototype.showLinkIcon=function(){return XD(this,function(a){return null!=a.url&&a.url.showLinkIcon})};B(fE,lD);h=fE.prototype;h.show=function(){this.isActive||(fE.N.show.call(this),this.H||(gE(this),this.H=!0),S(this.ma(),!0),this.annotation&&this.annotation.Va&&eC(this.context.logger,this.annotation.Va),be(this.ma(),"iv-promo-inactive"),this.ma().removeAttribute("aria-hidden"),this.isActive=!0,this.o&&(Vd(this.o),this.o=null),iE(this),jE(this,this.F))};
h.ka=function(){this.isActive&&(L(this.ma(),"iv-promo-inactive"),this.isActive=!1,this.ma().setAttribute("aria-hidden",!0))};
h.$i=function(a,b,c,d,e,f){return this.C?!1:fE.N.$i.call(this,a,b,c,d,e,f)};
h.tl=function(a,b){b.stopPropagation();iE(this);jE(this,a);this.ac.focus()};
h.Qx=function(a){this.G=!0;this.tl(500,a)};
h.Px=function(){this.G=!1;hE(this)};
h.bG=function(a){a.stopPropagation();this.ka();gC(this.context.logger,this.annotation.Va)};
h.destroy=function(){this.D.dispose();fE.N.destroy.call(this)};lE.prototype.C=function(a,b,c,d){this.o[a]=b?!c:c;a=Rb(this.o,function(a){return a});
this.A!=a&&(this.A=a,this.B.U(this.D,a,d))};h=nE.prototype;h.ka=function(){this.isVisible=!1;this.o&&(oE(this),this.o.ka())};
h.show=function(){this.isVisible=!0;this.o&&(this.o.show(),this.B.subscribe("resize",this.ut,this),this.B.subscribe("onVideoAreaChange",this.qr,this))};
h.destroy=function(){if(this.o){oE(this);var a=this.o;a.G.removeAll();a.bm.dispose();a.J.dispose();a.A&&dh(a.A);a.B&&a.B.ma()&&dh(a.B.ma())}pE(this)};
h.qr=function(){HF(this.o)};
h.ut=function(){HF(this.o)};qE.prototype.clone=function(){return new qE(this.start,this.end)};B(sE,rE);tE.prototype.Zc=null;tE.prototype.Vb=null;tE.prototype.vh=!0;var wE=[2,2,6,6,0];h=tE.prototype;h.clear=function(){this.wa.length=0;this.Aa.length=0;this.uc.length=0;delete this.Zc;delete this.Vb;delete this.vh;return this};
h.zb=function(a){var b=cb(this.wa);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.wa.push(1),this.Aa.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.uc.push(c,d)}this.Aa[this.Aa.length-1]+=b/2;this.Vb=[c,d]};
h.close=function(){var a=cb(this.wa);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.wa.push(4),this.Aa.push(1),this.Vb=this.Zc);return this};
h.clone=function(){var a=new this.constructor;a.wa=this.wa.concat();a.Aa=this.Aa.concat();a.uc=this.uc.concat();a.Zc=this.Zc&&this.Zc.concat();a.Vb=this.Vb&&this.Vb.concat();a.vh=this.vh;return a};
h.transform=function(a){if(!this.vh)throw Error("Non-simple path");a.transform(this.uc,0,this.uc,0,this.uc.length/2);this.Zc&&a.transform(this.Zc,0,this.Zc,0,1);this.Vb&&this.Zc!=this.Vb&&a.transform(this.Vb,0,this.Vb,0,1);return this};
h.isEmpty=function(){return 0==this.wa.length};B(yE,rE);zE.prototype.getWidth=function(){return this.B};ba(AE);AE.prototype.o=0;B(BE,J);h=BE.prototype;h.Fy=AE.getInstance();h.getId=function(){return this.S||(this.S=":"+(this.Fy.o++).toString(36))};
h.ma=function(){return this.o};
h.ng=function(a){if(this.D&&this.D!=a)throw Error("Method not supported");BE.N.ng.call(this,a)};
h.Hi=function(){this.o=this.F.createElement("DIV")};
h.render=function(a){if(this.Nc)throw Error("Component already rendered");this.o||this.Hi();a?a.insertBefore(this.o,null):this.F.o.body.appendChild(this.o);this.D&&!this.D.Nc||this.Cf()};
h.Cf=function(){this.Nc=!0;CE(this,function(a){!a.Nc&&a.ma()&&a.Cf()})};
h.Qg=function(){CE(this,function(a){a.Nc&&a.Qg()});
this.G&&this.G.removeAll();this.Nc=!1};
h.V=function(){this.Nc&&this.Qg();this.G&&(this.G.dispose(),delete this.G);CE(this,function(a){a.dispose()});
this.o&&dh(this.o);this.D=this.o=this.H=this.L=null;BE.N.V.call(this)};
h.Xb=function(){return this.o};
h.removeChild=function(a,b){if(a){var c=w(a)?a:a.getId();a=this.H&&c?dc(this.H,c)||null:null;if(c&&a){cc(this.H,c);pb(this.L,a);b&&(a.Qg(),a.o&&dh(a.o));c=a;if(null==c)throw Error("Unable to set parent component");c.D=null;BE.N.ng.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};B(DE,BE);DE.prototype.A=null;DE.prototype.Hf=function(){return this.Nc?mr(this.ma()):ga(this.width)&&ga(this.height)?new ue(this.width,this.height):null};
DE.prototype.drawText=function(a,b,c,d,e,f,k,m,l,n,t){var u=m.size/2;c="bottom"==k?c+e-u:"center"==k?c+e/2:c+u;e=b+d;d=Math.round(me(180*Math.atan2(c-c,e-b)/Math.PI,360));e-=b;k=c-c;e=Math.round(Math.sqrt(e*e+k*k));u=m.size;k={"font-family":m.family,"font-size":u};var u=Math.round(c-u/2+Math.round(.85*u)),x=b;"center"==f?(x+=Math.round(e/2),k["text-anchor"]="middle"):"right"==f&&(x+=e,k["text-anchor"]="end");k.x=x;k.y=u;m.bold&&(k["font-weight"]="bold");m.$f&&(k["font-style"]="italic");0!=d&&(k.transform=
"rotate("+d+" "+b+" "+c+")");b=HE(this,"text",k);b.appendChild(this.F.o.createTextNode(a));null==l&&Rq&&FL&&(a="black",n instanceof yE&&(a=n.B),l=new zE(1,a));n=new QE(b,this,l,n);(t||this.A).ma().appendChild(n.ma());return n};
DE.prototype.resume=function(){};B(FE,J);h=FE.prototype;h.ml=null;h.Xg=null;h.ma=function(){return this.Xg};
h.addEventListener=function(a,b,c,d){Oc(this.Xg,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){Zc(this.Xg,a,b,c,d)};
h.V=function(){FE.N.V.call(this);var a=this.Xg;if(a)if(Fc(a))a.removeAllListeners(void 0);else if(a=Rc(a)){var b=0,c;for(c in a.o)for(var d=a.o[c].concat(),e=0;e<d.length;++e)$c(d[e])&&++b}};B(JE,FE);JE.prototype.fill=null;B(KE,FE);B(LE,FE);B(ME,JE);B(NE,JE);B(OE,KE);OE.prototype.clear=function(){bh(this.ma())};
OE.prototype.setSize=function(a,b){TE(this.ma(),{width:a,height:b})};
B(PE,ME);B(QE,NE);B(RE,LE);RE.prototype.setPosition=function(a,b){TE(this.ma(),{x:a,y:b})};
RE.prototype.setSize=function(a,b){TE(this.ma(),{width:a,height:b})};var XE;B(SE,DE);var WE=0;h=SE.prototype;h.Hi=function(){var a=HE(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=HE(this,"g");this.J=HE(this,"defs");this.A=new OE(b,this);a.appendChild(this.J);a.appendChild(b);this.o=a;this.C&&(this.ma().setAttribute("preserveAspectRatio","none"),this.O?this.Gj():this.ma().setAttribute("viewBox","0 0 "+(this.C?this.C+" "+this.M:"")))};
h.Gj=function(){if(this.Nc){var a=this.Hf();if(0==a.width)this.ma().style.visibility="hidden";else{this.ma().style.visibility="";var b=a.width/this.C,a=a.height/this.M;this.A.ma().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
h.setSize=function(a,b){kr(this.ma(),a,b)};
h.Hf=function(){if(!Rq)return this.Nc?mr(this.ma()):SE.N.Hf.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.Nc&&(c||d))return null;var e,f;c&&(e=this.ma().parentNode,f=mr(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.ma().parentNode,f=f||mr(e),b=(0,window.parseFloat)(b)*f.height/100);return new ue(a,b)};
h.clear=function(){this.A.clear();bh(this.J);this.B={}};
h.Cf=function(){var a=this.Hf();SE.N.Cf.call(this);a||this.aa("resize");if(this.O){var a=this.width,b=this.height;"string"==typeof a&&-1!=a.indexOf("%")&&"string"==typeof b&&-1!=b.indexOf("%")&&this.K.R(YE(),"tick",this.Gj);this.Gj()}};
h.Qg=function(){SE.N.Qg.call(this);this.O&&this.K.za(YE(),"tick",this.Gj)};
h.V=function(){delete this.B;delete this.J;delete this.A;this.K.dispose();delete this.K;SE.N.V.call(this)};ZE.prototype.ma=function(){return this.D};
ZE.prototype.A=function(){};var gF={bevel:1,dropshadow:2};B(pF,ZE);
pF.prototype.A=function(a,b){var c=dE(a);if(c){var d=DD(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=cE(a))&&c.o?c.o:null)&&c.length?c[0]:null){var f=Ae(CD(b,yD(e,new we(e.H,e.J,e.D,e.B),b.o))),k=d.clone(),c=new we(f.x,f.y,1,1),m=Math.max(k.left+k.width,c.left+c.width),l=Math.max(k.top+k.height,c.top+c.height);k.left=Math.min(k.left,c.left);k.top=Math.min(k.top,c.top);k.width=m-k.left;k.height=l-k.top;var c=a.o,k=nF(k,c.effects),m=$E(this,k.width,k.height),l=mF(c,k.width,k.height,this.o),
d=new we(d.left-k.left,d.top-k.top,d.width,d.height),n=new re(f.x-k.left,f.y-k.top);this.C=17*xD(b.o,e.A,e.o?e.o:"xy");e=c.o;var f=a.o,t=this.o&&YD(a),u=t?f.C+1:f.C,t=(f=u?new zE(u,t?f.D:f.F):null)?f.getWidth()/2:0,u=qF(d,n),x=this.F(d,e,n,u),A=n.x,n=n.y,D=d.width,H=d.height,z=d.left,d=d.top,P=new tE;uE(P,z+e+t,d+t);"t"==u&&(P.zb(x.start,d+t),P.zb(A,n),P.zb(x.end,d+t));P.zb(z+D-e-t,d+t);vE(P,e,e,-90);"r"==u&&(P.zb(z+D-t,x.start),P.zb(A,n),P.zb(z+D-t,x.end));P.zb(z+D-t,d+H-e-t);vE(P,e,e,0);"b"==u&&
(P.zb(x.end,d+H-t),P.zb(A,n),P.zb(x.start,d+H-t));P.zb(z+e+t,d+H-t);vE(P,e,e,90);"l"==u&&(P.zb(z+t,x.end),P.zb(A,n),P.zb(z+t,x.start));P.zb(z+t,d+e+t);vE(P,e,e,180);P.close();VE(m,P,f,l);if(l=this.ma())L(l,"annotation-shape"),L(l,"annotation-speech-shape"),$q(l,k.left,k.top),kr(l,k.width,k.height),oF(m,l,c.effects)}}}};
pF.prototype.F=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=le(c-a/2,d+b,d+e-a-b);return new qE(c,c+a)}
return"t"==d||"b"==d?e(this.C,c.x,a.left,a.width):"l"==d||"r"==d?e(this.C,c.y,a.top,a.height):new qE(0,0)};B(rF,ZE);rF.prototype.A=function(a,b){var c=dE(a);if(c){var d=DD(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=nF(d,c.effects),f=$E(this,e.width,e.height);kF(f,new we(0,0,d.width,d.height),c.o,new zE(!c.B&&this.o?1:c.B,c.bgColor),new yE("#000",0));d=this.ma();L(d,"annotation-shape");or(d,lF(this.o,c.A));$q(d,e.left,e.top);kr(d,e.width,e.height)}}};B(sF,ZE);
sF.prototype.A=function(a,b){var c=DD(dE(a),b);if(!(0>=c.width||0>=c.height)){var d=tF(c,this.G);d.left+=c.left;d.top+=c.top;var e=a.o,f=nF(d,e.effects),k=$E(this,f.width,f.height),m=new yE("#000",0),l=tF(d,this.C),d=a.B?a.B.o?a.B.o:a.B.videoId?window.location.protocol+"//i1.ytimg.com/vi/"+(0,window.escape)(a.B.videoId)+"/hqdefault.jpg":"":"",l=HE(k,"image",{x:l.left,y:l.top,width:l.width,height:l.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});l.setAttributeNS("http://www.w3.org/1999/xlink","href",
d);var n=new RE(l,k);k.A.ma().appendChild(n.ma());if(d=this.ma()){or(d,lF(this.o,e.A));if(this.F&&0<e.B){var l=new zE(e.B,e.bgColor),c=new we(0,0,c.width,c.height),t=l.getWidth()/2+1;var t=jF(c,e.o,t),u=GE(k,"mask");if(u)t=u;else{var u=window.document.createElementNS("http://www.w3.org/2000/svg","mask"),x=window.document.createElementNS("http://www.w3.org/2000/svg","path");x.setAttribute("d",UE(t));x.setAttribute("fill","#FFF");u.appendChild(x);t=IE(k,"mask",u)}n=n.ma();t&&n.setAttribute("mask","url(#"+
t+")");kF(k,c,e.o,l,m)}L(d,"annotation-shape");L(d,"annotation-image-shape");$q(d,f.left,f.top);kr(d,f.width,f.height);oF(k,d,e.effects)}}};B(uF,ZE);uF.prototype.A=function(a,b){var c=dE(a);if(c){var d=DD(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=nF(d,c.effects),f=$E(this,e.width,e.height),k=new we(0,0,d.width,d.height),d=mF(c,d.width,d.height,this.o),m=c.o,l=a.o,n=this.o&&YD(a),t=n?l.C+1:l.C;kF(f,k,m,t?new zE(t,n?l.D:l.F):null,d);if(k=this.ma())L(k,"annotation-shape"),L(k,"annotation-popup-shape"),$q(k,e.left,e.top),kr(k,e.width,e.height),oF(f,k,c.effects)}}};B(vF,pF);vF.prototype.F=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new qE(c,c+a)}
return"t"==d||"b"==d?e(this.C,c.x,a.left,a.width):"l"==d||"r"==d?e(this.C,c.y,a.top,a.height):new qE(0,0)};h=xF.prototype;h.vt=function(){this.P||(this.C&&S(this.C,!0),this.D&&S(this.D,!0),this.B&&(this.B.o=!0,or(this.A,IF(this)?1:0),this.B.A(this.o,BF(this))),this.J.isActive()&&this.J.stop(),this.P=!0,this.K=sA(this.G,DF(this.F),function(a){this.bm.stop();this.te(a)}))};
h.te=function(){this.P&&(this.O?this.J.start():this.kp(),this.B&&(this.B.o=!1,or(this.A,IF(this)?1:0),this.B.A(this.o,BF(this))),this.P=!1,this.K&&(this.G.za(this.K),this.K=null))};
h.kp=function(){this.C&&S(this.C,!1);this.D&&S(this.D,!1)};
h.ZF=function(a){this.ca=a;this.bm.Lf()};
h.Ox=function(){var a=this.ca,b=new re(a.clientX,a.clientY),c=dr(this.F.Da()),d=JF(c,this.M),c=(this.D&&pr(this.D)||this.C&&pr(this.C))&&JF(c,this.O);d&&d.contains(b)||c&&c.contains(b)?this.vt():this.te(a)};
h.show=function(){var a=this.o.o,a=(a&&0==a.A||"title"==this.o.style||"highlightText"==this.o.style?!1:!0)&&!this.B,b=!this.A,c="widget"==this.o.type;if(a){var d=BF(this),e=null;"highlight"==this.o.type||"label"==this.o.style?e=new rF:"popup"==this.o.style?e=new uF:"anchored"==this.o.style?e=new pF:"speech"==this.o.style?e=new vF:"image"==this.o.type&&("video"==this.o.style?e=new sF(Uoa,C5,!0):"channel"==this.o.style&&(e=new sF));e&&(e.A(this.o,d),this.B=e,d=e.ma())&&(S(d,!1),L(d,"annotation-type-"+
this.o.type.toLowerCase()),this.Y(d))}if(b){d=["annotation"];"highlightText"!=this.o.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.o.type.toLowerCase());this.A=O("div",d);S(this.A,!1);this.o.F&&(this.H=O("div","inner-text"),"label"==this.o.style&&(L(this.H,"label-text"),this.H.style.backgroundColor=this.o.o.bgColor),oh(this.H,this.o.F),this.A.appendChild(this.H));oi(this.A,"annotation_id",this.o.id);this.Y(this.A);zF(this,this.A);if(YD(this.o)&&"image"!=this.o.type&&this.o.showLinkIcon()){if(e=
this.o.getUrl())d=this.A,e=new N(mB(e)),d.title=e.A+e.B;this.D=O("span","annotation-link-icon");S(this.D,!1);this.A.appendChild(this.D)}AF(this);YD(this.o)||(this.A.style.cursor="default")}c&&("subscribe"==this.o.style?Og("yt-uix-subscription-button",this.A)||Kf(this.A,this.o.C):this.o.C&&Kf(this.A,this.o.C));if(a||b){a:{a=this.o.A.o;if(a.length&&(a=KD(a[0]))){a=a.K;break a}a=0}this.A&&(this.A.style.zIndex=a);this.B&&this.B.ma()&&(this.B.ma().style.zIndex=a)}S(this.A,!0);or(this.A,IF(this)?1:0);HF(this);
this.B&&this.B.ma()&&S(this.B.ma(),!0)};
h.ka=function(){this.A&&S(this.A,!1);this.B&&this.B.ma()&&S(this.B.ma(),!1);this.L&&(this.G.za(this.L),this.L=null)};B(LF,vq);LF.F="AnnotationsModule";var KF={KI:"video-annotations",Uu:"video-custom-annotations",xv:"video-legacy-annotations"};LF.D=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
LF.C=function(a){return"card"==a.type};
LF.B=function(a){return LF.Ya(a)?new LF(a):null};
LF.Ya=function(a){var b=a.W();return"leanback"==b.Ba?!1:!b.K.isEmpty()||LF.o(b.o)?!0:Wx(a.getVideoData(),"iv3_module")};
LF.A=function(){var a=O("div",["annotation","annotation-type-custom"]);S(a,!1);return a};
LF.o=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
h=LF.prototype;h.od=function(a,b){if(!LF.o(this.o.W().o))return null;switch(a){case "loadCustomAnnotationsXml":var c=oA(b);c&&SF(this,c);return!0;case "removeCustomAnnotationById":return b&&this.A&&(VC(this.A,b),aD(this.o)),!0}return null};
h.lf=function(){return LF.o(this.o.W().o)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
h.Ya=function(){return LF.Ya(this.o)};
h.create=function(){LF.N.create.call(this);this.H.T(this.o,"onVideoAreaChange",y(this.U,this,"onVideoAreaChange"));this.H.T(this.o,"onHideControls",y(this.U,this,"onHideControls"));this.H.T(this.o,"onShowControls",y(this.U,this,"onShowControls"));this.H.T(this.o,"resize",y(this.U,this,"resize"));this.D=new R(["div",["ytp-player-content","ytp-iv-player-content"]]);Br(this.o,this.D.element,4);this.C=new R(["div",["ytp-iv-video-content"]]);this.C.element.appendChild(O("DIV","video-annotations",this.S,
this.Z));var a=this.o.W(),b=this.o.getVideoData();1!=(a.zd||b.ua)&&null===a.K.get(b.videoId)||this.load()};
h.destroy=function(){Fr(this.H);be(this.o.Da(),"ytp-iv-drawer-open");Jq(this.D);this.D.dispose();this.C.dispose();LF.N.destroy.call(this)};
h.ar=function(){if(this.C){var a=CF(DF(this.o),!0);kr(this.C.element,a.width,a.height);$q(this.C.element,a.left,a.top)}};
h.gC=function(a){T(a.state,2)&&(cG(this)&&dG(this)&&2!=this.o.getPresentingPlayerType()&&eG(this,!1),fG(this,!1))};
h.load=function(){LF.N.load.call(this);this.L++;var a=this.o.getVideoData(),b=a.videoId,c=y(this.gB,this,b,this.L);kv()&&(c=TF(this,c));c={format:"XML",$b:c,Tc:{}};a.isPharma&&(c.Tc.pharma="1");c.method="POST";c.withCredentials=!0;var d=this.o.W();"gaming"==d.o&&(c.Tc.gaming="1");(b=d.K.remove(b))&&UF(this,c,b);a.xf&&(b=b&&(b.Qe||b.ti),a.no&&!b||tj(a.xf,c));Br(this.o,this.C.element,4);this.ar()};
h.unload=function(){this.J.jb({"iv-event":1});yq(this);Ob(this.B,function(a){a.destroy()});
Ob(this.P,function(a){a.destroy()});
this.K=null;this.A&&(this.A.destroy(),this.A=null,aD(this.o));this.B={};this.P={};LF.N.unload.call(this);Jq(this.C)};
h.gB=function(a,b,c){if(!NF(this,b,a)&&(a=oj(c)&&c.responseXML?c.responseXML:null)){SF(this,a);L(this.o.Da(),this.va+"-loaded");a=[];for(var d in this.B){b=this.B[d].annotation;if(b.A)if(c=b.A,c.o.length)if(c=c.o[0].A||c.o[0].o||c.o[0].B,!c||2>c.length)c=null;else{var e=c.length-1;c=0>=c[0].t&&0>=c[e].t?null:{start:c[0].t,end:c[e].t}}else c=null;else c=null;if(e=c)if(c=1E3*e.start,e=1E3*e.end,0==c&&(c++,e++),!(e<c)){var f={id:d};"marker"==b.type&&(f.style="ytp-chapter-marker",f.tooltip=b.F,f.visible=
!0);b=new rq(c,e,f);a.push(b)}}this.ib(a)}};
h.ZC=function(a){this.F&&a==this.o.getVideoData().videoId&&(this.loaded?VF(this):this.load())};
h.Zb=function(a){LF.N.Zb.call(this,a);a=a.getId();var b=this.B[a];b&&!b.C&&(b=b.annotation,XF(this,a),eC(this.J,b.Va))};
h.kc=function(a){LF.N.kc.call(this,a);YF(this,a.getId())};
h.ip=function(a){a&&(a.ka(),bG(this,"shown",!1,a.annotation.id),this.wi(a.annotation,"hidden"))};
h.bs=function(a){a&&(a.show(),bG(this,"shown",!0,a.annotation.id),this.wi(a.annotation,"shown"))};
h.VC=function(a,b,c){var d=this.B[a];if(d&&b.value!=c){b.value=c;var e=!1;aE(d.annotation,function(a){e|=a.value});
ZF(this,a,b,e)}};
h.cA=function(a){if(a&&a.id){var b=a.getUrl();if(b){var c=mB(b);if(c){var d=y(this.wi,this,a,"click"),e=this.o.getVideoData();if("new"==tB(c,b.target)||$F(this,b,e.videoId))d(),d=null;fC(this.J,a.Va,d)}}}};
h.wi=function(a,b){ZD(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.o.getVideoData(),e;if(!(e=!$F(this,c.url,d.videoId))){e=qB(c.url);var f=pB(c.url);if(e){if(d.videoId==e)this.U("command_seek",f||0);else{var k=QF(this).A;M9(k.app,e,void 0,void 0);f&&PM(QF(this).A)&&QF(this).A.Tb(f)}e=!0}else e=!1;e=!e}e&&(d=sB(c.url,a.id,d.videoId,this.o.W()))&&(this.pauseVideo(),e=tB(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=jj(c),f=null,"ei"in e&&(f={ei:e.ei},c=mf(c,"ei")),yy(c,f),zy(c,
d))}},this)};
h.oB=function(){bG(this,"playerControlShow",!1)};
h.CC=function(){bG(this,"playerControlShow",!0)};
h.PF=function(a){bG(this,"rollOver",!0,a.id)};
h.te=function(a){bG(this,"rollOver",!1,a.id)};
h.EA=function(a){if(a||a.id)this.B[a.id].C=!0,YF(this,a.id),a&&(gC(this.J,a.Va),this.wi(a,"close")),bG(this,"closed",!0,a.id)};
h.V=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)mv(a[b]);this.O.length=0;LF.N.V.call(this)};var QG=/^#(?:[0-9a-f]{3}){1,2}$/i,i8="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),j8=["none","raised","depressed","uniform","dropShadow"],kG=["left","right","center"],t8=["en_CA","en_US","es_MX","fr_CA"];var x$=[{option:"#fff",message:"YTP_COLOR_WHITE"},{option:"#ff0",message:"YTP_COLOR_YELLOW"},{option:"#0f0",message:"YTP_COLOR_GREEN"},{option:"#0ff",message:"YTP_COLOR_CYAN"},{option:"#00f",message:"YTP_COLOR_BLUE"},{option:"#f0f",message:"YTP_COLOR_MAGENTA"},{option:"#f00",message:"YTP_COLOR_RED"},{option:"#080808",message:"YTP_COLOR_BLACK"}],y$=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],D6=[{option:"fontFamily",message:"YTP_FONT_FAMILY",
options:[{option:1,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:2,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:3,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:4,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:5,message:"YTP_FONT_FAMILY_CASUAL"},{option:6,message:"YTP_FONT_FAMILY_CURSIVE"},{option:7,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:x$},{option:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{option:-2,text:"50%"},{option:-1,text:"75%"},{option:0,
text:"100%"},{option:1,text:"150%"},{option:2,text:"200%"},{option:3,text:"300%"},{option:4,text:"400%"}]},{option:"background",message:"YTP_BACKGROUND_COLOR",options:x$},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:y$},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:x$},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:y$},{option:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{option:0,message:"YTP_EDGE_STYLE_NONE"},{option:4,message:"YTP_EDGE_STYLE_DROP_SHADOW"},
{option:1,message:"YTP_EDGE_STYLE_RAISED"},{option:2,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:3,message:"YTP_EDGE_STYLE_OUTLINE"}]},{option:"textOpacity",message:"YTP_FONT_OPACITY",options:[{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}]}];B(hG,R);var iG=["sub","","super"];h=hG.prototype;h.getType=function(){return this.type};
h.ls=function(){};
h.vj=function(a,b){for(var c=0;c<a.length&&a[c]==this.A[c];c++);if(this.P||b||this.A.length>c)c=0,this.Fk();for(;c<a.length;c++){var d=a[c];mG(this,d,d.o,0<c?a[c-1].o:null)}};
h.toString=function(){return hG.N.toString.call(this)};
h.Fk=function(){this.P=!1;this.A=[];bh(this.D)};B(rG,G);h=rG.prototype;h.So=function(a){var b=this.o.A,c=oG(this.o,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};
h.fe=function(){return null};
h.seek=function(){};
h.Rm=function(){};
h.V=function(){rG.N.V.call(this);this.Rm()};B(tG,rG);h=tG.prototype;h.Zl=function(a,b){this.isDisposed();var c=this.Vg(a),d=y(function(c){this.B=null;b(c.responseText,a)},this);
this.B&&this.B.abort();this.B=tj(c,{format:"RAW",tb:d,withCredentials:!0});this.A&&this.A.Bi!=a&&(this.A.Qk=a)};
h.$l=function(a,b,c,d){this.C=c;if(this.A=d||null)for(b=0;b<this.A.captionTracks.length;b++)pG(this.o,this.A.captionTracks[b]);a()};
h.Vg=function(a){var b=a.getUrl(),c={};if(this.C||a.C)c.fmt=this.C||"srv"+a.C;a.o&&(c.tlang=a.o.languageCode);return lj(b,c)};
h.fe=function(){return this.A?this.A.Bi:null};
h.So=function(){return this.A?this.A.Qk:null};
h.V=function(){this.B&&this.B.abort();tG.N.V.call(this)};wG.prototype.contains=function(a){a=Ab(this.wa,a);return 0<=a||0>a&&1==(-a-1)%2};
wG.prototype.length=function(){return this.wa.length/2};B(xG,G);xG.prototype.V=function(){yi(this.B);this.B=window.NaN;this.C=!0;this.D&&this.D.abort()};
xG.prototype.resume=function(){this.C=!1;yi(this.B);this.seek(this.A.getCurrentTime());BG(this)};
xG.prototype.seek=function(a){this.o=cb(this.J.Ug(a).o)};
xG.prototype.K=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.C||null===this.G||this.G(a.responseText,1E3*this.F.o[0].startTime);this.D=this.F=null};B(CG,rG);h=CG.prototype;h.Zl=function(a,b){yG(this.A,function(c,d){b(c,a,d)});
this.A.J=this.B.o[a.A];this.A.resume()};
h.$l=function(a){pG(this.o,new Du({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};
h.seek=function(a){this.A.seek(a)};
h.Rm=function(){var a=this.A;yi(a.B);a.B=window.NaN;a.C=!0};
h.Vg=function(){return""};
h.V=function(){this.A.dispose();CG.N.V.call(this)};B(DG,hG);var Xoa={jp:!0};DG.prototype.vj=function(a,b){var c,d=this.L.Jg;DG.N.vj.call(this,a,b);var e,f;for(c=a.length;c<d.length;c++){var k=d[c],m=null;k.o?k.o==e?m=f:(m={},ra(m,k.o),m.jp=!0):m=Xoa;mG(this,k,m,f);e=k.o;f=m}};B(EG,hG);EG.prototype.ls=function(){for(var a=this.element,b="",c=0;32>c;c++)b+="\u2014";oh(this.G," "+b+" ");this.element.appendChild(this.G);b=this.G.offsetWidth;this.element.removeChild(this.G);a.maxWidth=b+"px"};
EG.prototype.vj=function(a){var b=a.length;if(0>=b)this.Fk();else{for(var c=0;c<b&&0<=this.A.indexOf(a[c]);)c++;this.A=this.A.concat(a.slice(c));GG(this)}};
EG.prototype.Fk=function(){this.A=[];this.F=[];this.H=0;this.F=[];this.J=[];FG(this)};
EG.prototype.O=function(){this.element.style.overflow="visible";this.D.style.top=0;be(this.D,"caption-rollup");this.F.push("");this.J.push(0);GG(this)};B(HG,rq);HG.prototype.toString=function(){return HG.N.toString.call(this)};
B(IG,rq);B(LG,rG);LG.prototype.Zl=function(a,b){this.isDisposed();var c=this.Vg(a),d=y(function(c){this.A=null;b(c.responseText,a)},this);
this.A&&this.A.abort();this.A=tj(c,{format:"RAW",tb:d,withCredentials:!0});qG(this.o,a)};
LG.prototype.$l=function(a,b,c){var d=this.B;b={type:"list",tlangs:1,v:this.C,fmts:Number(b||!1),vssids:1};this.Jp&&(b.asrs=1);d=lj(d,b);b=y(function(b){this.A=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.o,k=b.getElementsByTagName("track"),m=k.length,l=0;l<m;l++){var n=k[l].getAttribute("formats"),t=c,u=k[l].getAttribute("lang_code"),x=k[l].getAttribute("lang_translated"),A=k[l].getAttribute("name"),D=k[l].getAttribute("kind"),H=k[l].getAttribute("id"),z="true"==k[l].getAttribute("lang_default"),
P="true"==k[l].getAttribute("cantran"),Ua=k[l].getAttribute("vss_id");pG(d,new Du({formats:n,format:t,languageCode:u,languageName:x,name:A,kind:D,id:H,is_servable:!0,is_default:z,is_translateable:P,vss_id:Ua}))}b=b.getElementsByTagName("target");d=b.length;for(k=0;k<d;k++)m=b[k].getAttribute("lang_code"),l=b[k].getAttribute("lang_translated"),n=b[k].getAttribute("lang_original"),t=b[k].getAttribute("id"),u="true"==b[k].getAttribute("lang_default"),m={languageCode:m,languageName:l,languageOriginal:n,
id:t,is_default:u},this.F[m.languageCode]=m.languageName,this.D.push(new Cu(m))}a()},this);
this.A&&this.A.abort();this.A=tj(d,{format:"RAW",tb:b,withCredentials:!0})};
LG.prototype.Vg=function(a){var b=this.B,c={v:this.C,type:"track",lang:a.A,name:a.D,kind:a.B,fmt:a.C};a.o&&(c.tlang=a.o.languageCode);return b=lj(b,c)};
LG.prototype.V=function(){this.A&&this.A.abort();LG.N.V.call(this)};B(OG,MG);B(RG,MG);B(ZG,MG);B(fH,MG);var aH=/NOTE/,$G=/(?:\r\n|\r|\n){2,}/,bH=/\r\n|\r|\n/,cH=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;B(iH,vq);h=iH.prototype;h.create=function(){iH.N.create.call(this);this.C=this.o.getVideoData();-1==t8.indexOf(this.X.Y)&&L(this.o.Da(),"cc-international");this.D=ec(yH);ra(this.D,Bq(this,"display-settings"));jH(this)||(this.P=new R(["div",["ytp-player-content","ytp-subtitles-player-content"]]),Br(this.o,this.P.element,4),this.Z.T(this.o,"resize",this.Cq));this.Z.T(this.o,"onPlaybackAudioChange",this.lA);lH(this)&&this.load()};
h.destroy=function(){Fr(this.Z);jH(this)||(Jq(this.P),this.P.dispose());iH.N.destroy.call(this)};
h.load=function(){this.ua="1"==this.C.C.cc_auto_caps||"1"==this.X.O.cc_auto_caps;iH.N.load.call(this);this.ha=!0;if(this.C.Ha)this.B=new CG(this.C.o,this.o),this.xa=this.Z.T(this.o,"seekto",this.QF);else{var a=this.C.Wd||this.X.Ta||this.C.ed("yt:cc_default_lang")||this.X.Y,a=a&&a.split("_").join("-");this.C.captionTracks.length?this.B=new tG(this.C):this.B=new LG(this.C.ki,this.C.videoId,a,this.C.ji)}nH(this)};
h.unload=function(){this.G&&(sH(this),this.wm("control_subtitles_set_track"));if(jH(this)){var a;a=Mg("track",void 0,this.da.A);for(var b=0;b<a.length;b++)dh(a[b])}else xH(this,!1),mH(this),this.xa&&this.Z.za(this.xa),this.B.dispose(),this.B=null;this.K=this.fa=this.L=this.ha=!1;iH.N.unload.call(this)};
h.mr=function(){this.ha=!1;if(jH(this))for(var a=oG(this.B.o,void 0),b=0;b<a.length;b++){var c=a[b],d={kind:"subtitles",label:Eu(c),srclang:c.A,src:this.B.Vg(c)};c.isDefault&&(d["default"]=1);for(var c=this.$.app.B,d=[O("track",d)],e=0;e<d.length;e++)c.o.appendChild(d[e])}else if(c=this.K||kH(this,!this.fa),a=oG(this.B.o,!0),0<a.length){this.fa=!0;b=this.A&&-1!=a.indexOf(this.A);if(c&&!b)if(c=this.B.So(),!c&&this.K&&(c=a[0]),c)this.na=!0,qH(this,c),b=!0;else if(this.L||pH(this),a=this.B.o.B,a.length&&
(a=a[0].toString(),this.K||this.ua))a=sG(this.B,a),qH(this,a,void 0),b=!0;this.o.Ea("onCaptionsTrackListChanged");b||rH(this)}else if(this.B.fe())rH(this);else if(a=this.o.app.D,b=AM(a,this.va))pb(a.o,b),b.destroy()};
h.nr=function(a,b,c){jH(this);a&&(a=hH(a,b,c),this.na&&(this.na=!1,this.o.Ea("onCaptionsTrackListChanged")),this.A&&b.equals(this.A)||(mH(this),this.A=b,c={trackName:b.D,trackKind:b.B},b.o?(c.trackLangCode=b.o.languageCode,c.fromLangCode=b.A):c.trackLangCode=b.A,this.log(c),b!=this.B.fe()&&(this.K&&!AH(this.X)&&(this.J||(c=new IG(0,0,0,"0",{anchorPoint:0,Zi:5,Ej:5,Bm:2,textAlign:0,rg:0}),this.J=new hG(c)),c=Eu(b),c=(c?c+"\n":"")+Q("YTP_CLICK_FOR_SETTINGS",{GEAR_ICON:Tf()}),this.P.element.appendChild(this.J.element),
c=new HG(0,0,0,this.J.L.id,c),lG(this.J,this.D,CF(this.da).height,[c]),this.la.xe()),this.o.Ea("captionschanged",Fu(b)),(this.X.experiments.ga("cc_sticky_behavior")||this.K||AH(this.X))&&Cq(this,"module-enabled",!0),uH(this.o))),this.L||pH(this),this.ib(a.A.concat(a.o)))};
h.Zb=function(a){this.ca.push(a);this.ia.xe()};
h.kc=function(a){pb(this.ca,a);this.ia.xe()};
h.AD=function(a){if(this.A)if(a instanceof IG){var b=this.O[a.id];b&&b.getType()!=JG(a)&&(b.dispose(),delete this.O[a.id],b=null);if(!b){var b=this.O,c=a.id;a:switch(JG(a)){case 1:a=new DG(a);break a;case 2:a=new EG(a);break a;default:a=new hG(a)}b=b[c]=a;a=b.element;M(a,"captions-asr","asr"==this.A.B);this.P.element.appendChild(a)}}else b=a.C,this.S[b]||(this.S[b]=[]),this.S[b].push(a)};
h.Cq=function(){jH(this);this.L&&oH(this)};
h.ID=function(){Jq(this.J);this.J.dispose();this.J=null};
h.Sm=function(){this.ia.stop();if(this.L){bc(this.S);this.ca.sort(tq);F(this.ca,this.AD,this);var a=CF(this.da).height;Ob(this.O,function(b,c){!this.S[c]||this.H?(b.dispose(),delete this.O[c]):lG(b,this.D,a,this.S[c])},this)}};
var yH={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};h=iH.prototype;
h.od=function(a,b){switch(a){case "fontSize":return(0,window.isNaN)(b)||(this.D.fontSizeIncrement=Math.max(-2,Math.min(4,b)),oH(this)),this.D.fontSizeIncrement;case "reload":b&&nH(this);break;case "stickyLoading":void 0!=b&&this.X.$a&&Cq(this,"module-enabled",!!b);break;case "track":if(b){if(jH(this))break;if(!ia(b))break;if(ac(b)){vH(this);break}for(var c,d=oG(this.B.o,!0),e=0;e<d.length;e++){var f=d[e];f.A!=b.languageCode||c&&f.F!=b.languageName||(c=b.translationLanguage?Gu(f,b.translationLanguage):
f)}c&&qH(this,c,!0)}else return this.A&&this.A!=this.B.fe()?Fu(this.A):{};return"";case "tracklist":return this.fa?ji(oG(this.B.o,b&&b.includeAsr),function(a){return Fu(a)}):[];
case "translationLanguages":return this.fa?this.B.D:[];case "displaySettings":return b&&ia(b)&&BH(this,b),c=ec(this.D),c.fontFamilyOption=i8[c.fontFamily],c.charEdgeStyle=j8[c.charEdgeStyle],c;case "sampleSubtitles":jH(this)||void 0==b||(xH(this,!!b),oH(this));break;case "xmlTrack":b&&this.X.$a&&(mH(this),jH(this)||(c=b.xml,this.A=new Du({languageName:b.name}),this.nr(c,this.A)))}};
h.lf=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.X.$a&&a.push("stickyLoading","xmlTrack");return a};
h.Hk=function(a,b){return a&&w(a)&&QG.test(a)?a:b};
h.dm=function(a,b){return ga(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};
h.Iw=function(a,b){if(a&&w(a)){var c=j8.indexOf(a);return-1!=c?c:b}return b};
h.rx=function(a,b){if(a&&w(a)){var c=i8.indexOf(a);return-1!=c?c:b}return b};
h.tx=function(a,b){return ga(a)&&!(0,window.isNaN)(a)?Math.max(-2,Math.min(4,a)):b};
var zH=null;h=iH.prototype;h.Ya=function(a){if("lb3"==a.W().o)return!1;a=a.getVideoData();var b;if(b=a.Ha)b=a.o,b=!(!b||null==b.o.en);return!!(a.ki||a.captionTracks.length||b)};
h.gj=function(a){a?mH(this):this.loaded&&(this.unload(),this.load())};
h.QF=function(){this.B.seek(this.o.getCurrentTime())};
h.Kh=function(){var a=this.A;return a?{cc:a.G}:null};
h.lA=function(){this.C.captionTracks.length&&(this.loaded?nH(this):lH(this)&&this.load())};DH.prototype.destroy=function(){null!=this.A&&(this.A.canvas.remove?this.A.canvas.remove():this.A.canvas.removeNode(!0),this.A=null)};h=HH.prototype;h.jl=function(){return"attribute vec3 aVertPos;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = vec2((aVertPos.x + 1.0) * 0.5, (1.0 - aVertPos.y) * 0.5);\n  gl_Position = vec4(aVertPos, 1.0);\n}"};
h.Zk=function(){return this.o};
h.ld=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};
h.wt=function(){};
h.Cn=function(a){this.H&&(360>=Wr[a]?this.F(!0):this.F(!1))};
h.bd=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,GH(this.D,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.wr=function(){return!0};
h.mf=function(){return{shader:"NoOp"}};
h.Lh=function(){};
h.destroy=function(){this.D&&this.D.destroy()};B(IH,HH);IH.prototype.ld=function(a,b,c){IH.N.ld.call(this,a,b,c);a.uniformMatrix4fv(a.getUniformLocation(b,"mLt"),!1,new window.Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,"mRt"),!1,new window.Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,0,0,0,0,1]));this.C=a.getUniformLocation(b,"mode");a.uniform1i(this.C,this.A)};
IH.prototype.bd=function(a,b,c){this.B&&(a.uniform1i(this.C,this.A),this.B=!1);IH.N.bd.call(this,a,b,c)};
IH.prototype.mf=function(){return{shader:"Anaglyph3D",displayMode:this.A}};
IH.prototype.Lh=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.A=(0,window.parseInt)(a.displayMode,10),this.B=!0),this.G())};B(LH,HH);
LH.prototype.ld=function(a,b,c){LH.N.ld.call(this,a,b,c);c=new window.Uint8Array(4194304);for(var d=0;4194304>d;d++)c[d]=255*Math.random();d=a.createTexture();a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.REPEAT);a.texImage2D(a.TEXTURE_2D,0,a.LUMINANCE,2048,2048,
0,a.LUMINANCE,a.UNSIGNED_BYTE,c);a.uniform1i(a.getUniformLocation(b,"uNoiseSplr"),1);this.B=a.getUniformLocation(b,"seed");(a=this.$.getVideoData())&&a.B&&this.Cn(a.B.video.quality)};
LH.prototype.bd=function(a,b,c){if(this.J){var d=K();1E3<d-this.C&&(this.C=d,a.uniform1f(this.B,Math.random()))}else a.uniform1f(this.B,Math.random());LH.N.bd.call(this,a,b,c)};
LH.prototype.mf=function(){return{shader:"WhiteNoise"}};B(MH,LH);MH.prototype.ld=function(a,b,c){MH.N.ld.call(this,a,b,c);this.A=a.getUniformLocation(b,"mode");a.uniform1i(this.A,1)};
MH.prototype.bd=function(a,b,c){this.G&&(a.uniform1i(this.A,1),this.G=!1);MH.N.bd.call(this,a,b,c)};
MH.prototype.mf=function(){return{shader:"EdgeEnhance"}};NH.prototype.BYTES_PER_ELEMENT=4;NH.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
NH.prototype.toString=Array.prototype.join;"undefined"==typeof window.Float32Array&&(NH.BYTES_PER_ELEMENT=4,NH.prototype.BYTES_PER_ELEMENT=NH.prototype.BYTES_PER_ELEMENT,NH.prototype.set=NH.prototype.set,NH.prototype.toString=NH.prototype.toString,q("Float32Array",NH,void 0));OH.prototype.BYTES_PER_ELEMENT=8;OH.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
OH.prototype.toString=Array.prototype.join;if("undefined"==typeof window.Float64Array){try{OH.BYTES_PER_ELEMENT=8}catch(a){}OH.prototype.BYTES_PER_ELEMENT=OH.prototype.BYTES_PER_ELEMENT;OH.prototype.set=OH.prototype.set;OH.prototype.toString=OH.prototype.toString;q("Float64Array",OH,void 0)};QH.prototype.identity=function(){this.o.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};
QH.prototype.get=function(){return this.o};var VH=null,ZH=null,UH=null;h=bI.prototype;h.jl=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.Zk=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"};
h.ld=function(a,b){this.La=a.getUniformLocation(b,"uVMat");this.ca=a.getUniformLocation(b,"uFOVx");this.da=a.getUniformLocation(b,"uFOVy");this.fa=a.getUniformLocation(b,"uSplr");a.uniform1i(this.fa,0)};
h.wt=function(){this.H=!0};
h.Cn=v;
h.bd=function(a,b){var c=this.o,d=this.A;if(this.H){a.A>a.o?(this.o=this.C,this.A=Math.atan(Math.tan(this.C)*a.o/a.A)):(this.A=this.C,this.o=Math.atan(Math.tan(this.C)*a.A/a.o));a.uniform1f(this.ca,this.o);a.uniform1f(this.da,this.A);this.D=le(this.D,-Math.PI/2,Math.PI/2);this.B.identity();var e=this.B,f=this.D,k=Math.sin(f),f=Math.cos(f);e.B.set([1,0,0,0,0,f,k,0,0,-k,f,0,0,0,0,1]);RH(e,e.B);e=this.B;f=this.K;k=Math.sin(f);f=Math.cos(f);e.B.set([f,0,-k,0,0,1,0,0,k,0,f,0,0,0,0,1]);RH(e,e.B);a.uniformMatrix4fv(this.La,
!1,this.B.get());this.H=!1}e=K();if(this.ea){this.G[0]=-this.B.get()[8];this.G[1]=-this.B.get()[9];this.G[2]=-this.B.get()[10];var k=this.ea,f=this.G,m=this.F.getCurrentTime(),l=e/1E3,n=this.F.getPlayerState(),t=null,u,x,A;1==n?(u=k.B,A=k.H,x=m):(u=k.G,A=k.F,x=l);var D=0!=k.o.length;if(D){var H=150<=k.o.length;if(k.C!=n||.5<x-A||x<A||H){t=null;if(5<=k.o.length){for(var t=k.o,D=Array(2*t.length),z=H=0,P=0;P<t.length;++P)D[P]=t[P].x-H&255,D[P+t.length]=t[P].y-z&255,H=t[P].x,z=t[P].y;H=aI(D);t=k.B;D=
1==k.C?k.A:0;H=WH(H,!0);z="";for(P=H.length-1;0<=P&&"."==H.charAt(P);--P)z+="=";H=H.substring(0,H.length-z.length)+z;t={start:t,duration:D,data:H}}k.o=[];k.A=0;D=!1}}if(1==n||2==n||3==n){if(D)for(u=u+k.A+.2;u<x;){H=(u-A)/(x-A);k.A+=.2;var D=k.D,z=f,P=H,H=new window.Float32Array(3),Ua=PH(D),la=PH(z),ya=(D[0]*z[0]+D[1]*z[1]+D[2]*z[2])/(Ua*la);if(.999999<ya)Ua=D[0],la=D[1],D=D[2],H[0]=(z[0]-Ua)*P+Ua,H[1]=(z[1]-la)*P+la,H[2]=(z[2]-D)*P+D;else{var yb=0,pd=0;-.999999>ya?(ya=new window.Float32Array(3),yb=
(Ua+la)/2,D[0]?(yb/=Math.sqrt(D[0]*D[0]+D[1]+D[1]),ya[0]=-D[1]*yb,ya[1]=D[0]*yb,ya[2]=0):(yb/=Math.sqrt(D[2]*D[2]+D[1]+D[1]),ya[0]=0,ya[1]=-D[2]*yb,ya[2]=D[1]*yb),.5>=P?(la=Ua,z=ya,P*=2):(D=ya,P=2*P-1),yb=Math.PI/2,pd=1):(yb=Math.acos(ya),pd=Math.sqrt(1-ya*ya));ya=Math.sin((1-P)*yb)/pd/Ua;yb=Math.sin(P*yb)/pd/la;P=(1-P)*Ua+P*la;H[0]=(D[0]*ya+z[0]*yb)*P;H[1]=(D[1]*ya+z[1]*yb)*P;H[2]=(D[2]*ya+z[2]*yb)*P}D=H;k.o.push($H(D));u+=.2}else k.B=m,k.G=l,k.o.push($H(f)),k.A=0;k.D=f;k.H=m;k.F=l;k.C=n}k=t;k&&
(f=wq(this.F.app))&&f.B&&(f=f.B.A,m=k.start,l=k.duration,k=k.data,DB(f,OB(f.o),"dir",[m.toFixed(3),l.toFixed(3),k]))}(this.Y!=this.o||this.Z!=this.A)&&3E4<e-this.S&&c==this.o&&d==this.A&&(this.Y=this.o,this.Z=this.A,this.S=e,(c=wq(this.F.app))&&c.B&&(c=c.B.A,d=Math.round(360*this.o/Math.PI),e=Math.round(360*this.A/Math.PI),DB(c,OB(c.o),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,GH(this.L,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.wr=function(){return!1};
h.mf=function(){return{shader:"Spherical",yaw:this.K,pitch:this.D,fov:this.C}};
h.Lh=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.K=a.yaw),a.pitch&&(this.D=a.pitch),a.fov&&(this.C=le(a.fov,.32,1.05)),this.H=!0,this.O()};
h.destroy=function(){this.L&&this.L.destroy()};B(cI,bI);h=cI.prototype;h.jl=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.Zk=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform int mode;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nmat4 mRt = mat4(-.043, .378, -.072, 0.0, -.088, .734, -.113, 0.0, 0.0,   -0.018, 1.226, 0.0, 0.0, 0.0, 0.0, 1.0);mat4 mLt = mat4(.456, -.04, -.015, 0.0, .5, -.038, -.021, 0.0, .176,   -0.016, -.005, 0.0, 0.0, 0.0, 0.0, 1.0);void anaglyph(float x, float y) {  y *= 0.5;  vec4 cLt = texture2D(uSplr, vec2(x, y));  vec4 cRt = texture2D(uSplr, vec2(x, 0.5 + y));  gl_FragColor = mLt * cLt + mRt * cRt;}void main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  if (mode == 1) {    anaglyph(texCrd.x, texCrd.y);  } else {    texCrd.y *= 0.5;    gl_FragColor = texture2D(uSplr, texCrd);  }}"};
h.ld=function(a,b,c){cI.N.ld.call(this,a,b,c);this.P=a.getUniformLocation(b,"mode");a.uniform1i(this.P,this.J)};
h.bd=function(a,b,c,d){this.M&&(a.uniform1i(this.P,this.J),this.M=!1);cI.N.bd.call(this,a,b,c,d)};
h.mf=function(){var a=cI.N.mf.call(this);a.shader="Spherical3D";a.displayMode=this.J;return a};
h.Lh=function(a){void 0!=a.displayMode&&(this.J=(0,window.parseInt)(a.displayMode,10),this.M=!0,this.O());cI.N.Lh.call(this,a)};var yI=window,qI=window.document,faa=yI.location,eaa=/\[native code\]/,vI=dI(yI,"gapi",{});var fI;fI=dI(yI,"___jsl",eI());dI(fI,"I",0);dI(fI,"hel",10);var jI=dI(fI,"perf",eI());dI(jI,"g",eI());var haa=dI(jI,"i",eI());dI(jI,"r",[]);eI();eI();var mI=eI(),tI=[];tI.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?fI[b]=dI(fI,b,[]).concat(c):dI(fI,b,c)}if(b=a.u)a=dI(fI,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var paa=/^(\/[a-zA-Z0-9_\-]+)+$/,raa=/^[a-zA-Z0-9\-_\.,!]+$/,naa=/^gapi\.loaded_[0-9]+$/,qaa=/^[a-zA-Z0-9,._-]+$/,kaa=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,jaa=/\/cb=/g,iaa=/\/\//g;mI.m=function(a,b,c,d){(a=a[0])||lI("missing_hint");return"https://apis.google.com"+oaa(a,b,c,d)};var sI=(0,window.decodeURI)("%73cript");vI.load=function(a,b){return uI(function(){return xI(a,b)})};B(zI,Lj);zI.prototype.remove=function(a){var b=this.get(a);delete this.o[a];return b};
zI.prototype.get=function(a){return this.o[a]||null};
zI.prototype.isEmpty=function(){return ac(this.o)};B(BI,J);BI.prototype.G=function(a,b){this.o.paused||this.getCurrentTime()>a||10<b||(this.play(),vi(y(this.G,this,this.getCurrentTime(),b+1),500))};
BI.prototype.addEventListener=function(a,b,c,d){BI.N.addEventListener.call(this,a,b,c,d);this.B[a]||(b=y(this.BG,this),this.o.addEventListener(a,b),this.B[a]=b)};
BI.prototype.F=function(){this.D&&!this.o.muted&&(this.o.muted=!0)};
BI.prototype.V=function(){this.C&&this.removeEventListener("volumechange",this.F);BI.N.V.call(this)};B(MI,BI);h=MI.prototype;h.ma=function(){return this.o};
h.canPlayType=function(a,b){return this.o.canPlayType(a,b)};
h.getCurrentTime=function(){return this.o.currentTime};
h.load=function(){var a=this.o.playbackRate;this.o.load();this.o.playbackRate=a};
h.pause=function(){this.o.pause()};
h.play=function(){this.o.play()};
h.getErrorCode=function(){return this.o.error?this.o.error.code:null};
h.setPosition=function(a){return $q(this.o,a)};
h.setSize=function(a){return kr(this.o,a)};
h.setVolume=function(a){this.o.volume=a};
h.BG=function(a){this.aa(new waa(this,a.type,a))};
h.setAttribute=function(a,b){this.o.setAttribute(a,b)};
h.removeAttribute=function(a){this.o.removeAttribute(a)};
h.getStyle=function(a){return Wq(this.o,a)};
h.V=function(){for(var a in this.B)this.o.removeEventListener(a,this.B[a]);MI.N.V.call(this)};var SI=null;var Aaa={DM:"red",WHITE:"white",SI:"blue"};VI.prototype.ga=function(a){return"true"==this.flags[a]};
VI.prototype.Yb=function(a){return(0,window.parseFloat)(this.flags[a])};
VI.prototype.A=function(a){return this.flags[a]?this.flags[a].toString():""};var eJ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},fJ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},XI="blogger books docs google-live play picasaweb".split(" ");B(cJ,G);var gJ={VI:"cbrand",WI:"cbr",XI:"cbrver",JK:"c",MK:"cver",LK:"ctheme",KK:"cplayer",kL:"cmodel",QL:"cnetwork",$L:"cos",aM:"cosver",fM:"cplatform"};h=cJ.prototype;h.Ba="detailpage";h.Zf=!1;h.Vl=!1;h.Ul=!1;h.Ce=null;
h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=jJ(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:(d=this.fa+"://"+c+"/watch",b.v=a,(a=UI())&&(b.ebc=a));return gf(d,b)};
h.V=function(){this.Ce=null;cJ.N.V.call(this)};nJ.prototype.M=function(){this.L=!1;if(this.B&&(this.C.videoWidth||this.C.videoHeight)){if(0==this.K){var a=CF(DF(this.$));if(!ye(this.F,a)){this.F=a;var b,c,d,a=DF(this.$).Ma();this.o.wr()?("Anaglyph3D"!=this.Y?b=!1:(b=EH(DF(this.$)),c=this.$.getVideoData(),b=(0,window.isNaN)(b)||c.ed("yt:stretch")||c.ed("yt:crop")?!1:.01>Math.abs(b-32/9)||.01>Math.abs(b-8/9)),b?(16*a.height/9>a.width?(b=a.width,c=9*b/16):(c=a.height,b=16*c/9),d=(a.height-c)/2,a=(a.width-b)/2):(b=this.F.width,c=this.F.height,d=this.F.top,
a=this.F.left)):(b=a.width,c=a.height,a=d=0);a=new we(a|0,d|0,b|0,c|0);this.G.style.left=a.left+"px";this.G.style.top=a.top+"px";this.A.width=a.width;this.A.height=a.height;this.B.A=a.width;this.B.o=a.height;this.B.viewport(0,0,a.width,a.height);this.o.wt()}}this.o.bd(this.B,this.C,this.P,this.Z)}this.D&&this.H()};
nJ.prototype.ca=function(a){this.J!=a&&this.A&&((this.J=a)?(this.G.appendChild(this.A),this.H(),CH||(this.C.style.display="none")):(dh(this.A),this.C.style.display=""))};
nJ.prototype.H=function(){!this.L&&this.J&&((0,window.requestAnimationFrame)(this.M.bind(this)),this.L=!0)};B(pJ,vq);pJ.A=function(a){return pJ.Ya(a)?new pJ(a):null};
pJ.prototype.Ya=function(){return pJ.Ya(this.o)};
pJ.o=function(a){var b=a.W().A.c.toLowerCase(),c=a.getVideoData();a=a.W().experiments;if(KH(c,a))b="Anaglyph3D";else{var d;if(d=a.spherical||El&&!JH||CH&&!gq()&&wc(11)||Ww&&!JH&&wc(38)||Ac&&!JH&&wc(27))a:{if(c.o&&3!=c.da)for(var e in c.o.o)if((d=c.o.o[e].info.video)&&2==d.projectionType){d=!0;break a}d=!1}b=d?"Spherical":(a.ga("html5_enable_spherical3d")||El&&!JH||Ww&&!JH&&wc(38)||Ac&&!JH&&wc(27)||CH&&!gq()&&wc(11))&&c.o&&ay(c)?"Spherical3D":a.G&&"web"==b&&El&&!JH?"NoOp":(a.P||a.ga("white_noise_with_interval"))&&
"web"==b&&El&&!JH?"WhiteNoise":a.D&&"web"==b&&El&&!JH?"EdgeEnhance":null}return b};
pJ.Ya=function(a){return a.W().F?null!=pJ.o(a):!1};
h=pJ.prototype;h.SF=function(){var a=this.A;a.D||(0,window.requestAnimationFrame)(a.M.bind(a))};
h.$B=function(a){var b=this.A;b.o&&b.o.Cn(a)};
h.RF=function(a){var b=this.A,c=b.D;b.D=T(a.state,8);b.D&&!c&&b.H()};
h.V=function(){pJ.N.V.call(this)};
h.create=function(){var a=pJ.o(this.$);this.A=new nJ(this.$,a,this.D.element,this);a:{a=this.A;a.o=null;var b=a.ca.bind(a),c=y(a.H,a);switch(a.Y){case "Anaglyph3D":a.o=new IH(a.$,c);break;case "Spherical":a.o=new bI(a.$,c);break;case "WhiteNoise":a.o=new LH(a.$,b);break;case "EdgeEnhance":a.o=new MH(a.$,b);break;case "NoOp":a.o=new HH(a.$,!0,b);break;case "Spherical3D":a.o=new cI(a.$,c)}if(a.o){a.K=Daa(a);if(0==a.K){a.J&&!CH&&(a.C.style.display="none");a=!0;break a}a.$.app.A.Sj(new fw("html5.missingapi.webgl",
!1));oJ(a)}a=!1}if(this.B=a)this.C.T(this.o,"resize",this.SF),this.C.T(this.o,"onPlaybackQualityChange",this.$B),this.C.T(this.o,"presentingplayerstatechange",this.RF);pJ.N.create.call(this)};
h.destroy=function(){Fr(this.C);oJ(this.A);this.B=!1;pJ.N.destroy.call(this);this.A=null};B(qJ,Oq);qJ.prototype.D=function(){this.ka();this.U("close-clicked")};
qJ.prototype.ka=function(){this.A.stop();L(this.element,"ytp-drawer-closed")};
qJ.prototype.Jb=function(a){a?(qJ.N.Jb.call(this,a),Lq(this.element,"block")):Lq(this.element,"none")};
qJ.prototype.show=function(){this.A.start()};B(rJ,Lj);rJ.prototype.V=function(){rJ.N.V.call(this);this.C||dh(this.D)};
rJ.prototype.o=function(a){this.C||(this.A.o(a),this.A.Jb(this.B.element),a.appendChild(this.D))};
rJ.prototype.F=function(){this.U("ypcModuleCloseClicked")};
rJ.prototype.G=function(){this.U("ypcContentRequest")};B(tJ,vq);h=tJ.prototype;h.Ya=function(){return Wx(this.o.getVideoData(),"ypc_module")};
h.create=function(){tJ.N.create.call(this);this.A=new Eaa(this.o.getVideoData());vi(y(this.TF,this),0);this.C=new R(["div",["ytp-player-content","ytp-ypc-player-content"]]);Br(this.o,this.C.element,4)};
h.destroy=function(){tJ.N.destroy.call(this);this.A=null;this.C&&(Jq(this.C),this.C.dispose(),this.C=null)};
h.TF=function(){this.F&&!this.loaded&&this.load()};
h.load=function(){tJ.N.load.call(this);var a=this.o.W(),b=this.o.getVideoData();if(this.A.videoId&&!b.ypcPreview){for(var a={autoplay:"1",oauth_token:b.oauthToken,video_id:this.A.videoId,ypc_origin:b.videoId,ypc_preview:"1"},c=rx.B,d=0;d<c.length;d++){var e=c[d];b.C.hasOwnProperty(e)&&(a[e]=b.C[e])}this.o.Bg(a)}else this.A.videoId&&(this.D=new R(["div","html5-ypc-overlay",this.A.C]),this.D.o(this.C.element)),this.A.offerId&&Haa(this,a,b),!this.A.videoId&&this.B?sJ(this.B):b.ypcPreview?(this.o.Ea("ypcStateChanged",
!0),zq(this)):this.B||zq(this)};
h.unload=function(){yq(this);(0,window.isNaN)(this.H)||xi(this.H);Nb(this.D,this.B);this.B=this.D=null;tJ.N.unload.call(this);this.o.Ea("ypcStateChanged",!1)};
h.Zb=function(a){tJ.N.Zb.call(this,a);sJ(this.B)};
h.kc=function(a){tJ.N.kc.call(this,a);a=this.B;a.C||(Lq(a.D,"none"),a.A.Jb(a.B.element))};
h.PA=function(){this.A.o?"embedded"==this.o.W().Ba?zy(this.A.o):wy(this.A.o):this.A.offerId&&(this.o.Pa()&&Dy(this.o),this.o.Ea("onYpcContentRequest",this.A.offerId))};
h.GB=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};xJ.prototype.forEach=function(a){for(var b=this.o+1;b<this.A.length;b++)a(this.A[b]||0);for(b=0;b<=this.o;b++)a(this.A[b]||0)};
xJ.prototype.Oa=function(){var a=[];this.forEach(y(a.push,a));return a};PJ.prototype.start=function(){this.A=!0};
PJ.prototype.reset=function(){this.o=this.A=!1};QJ.prototype.O=function(a){if(4==a.info.type){var b=a.info.o.Er(a);a.info.equals(this.A)&&(this.A=cb(b).info);F(b,this.O,this)}else 3==a.info.type&&this.o.push(a)};
QJ.prototype.Y=function(a){a.dispose();this.F-=RJ(a)};var Vaa=0;h=tK.prototype;h.DD=function(a){this.status=a.status;a.ok?(this.C=a.body.getReader(),this.F?(this.J=a.headers,this.G=new window.Uint8Array(yK(this)),AK(this)):this.C.cancel("Cancelling")):this.ak()};
h.zA=function(a){if(this.F)if(K(),a.done)this.C=null,this.ak();else{a=a.value;this.D+=a.length;var b=a.length>=Math.max(yK(this)/2,16384),c=a.length+this.o>yK(this);(b||c)&&0!==this.o&&zK(this);b?this.B.push(a):(this.G.set(a,this.o),this.o+=a.length);this.F({timeStamp:K(),loaded:this.D});AK(this)}};
h.ak=function(){this.F&&(this.H=!0,this.K())};
h.Fg=function(a){return this.J.get(a)};
h.Uk=function(){return this.D};
h.Eg=function(){return+this.Fg("content-length")};
h.gp=function(){return 200<=this.status&&300>this.status&&!!this.D};
h.Tp=function(){return!!this.B.length||this.H&&0<this.o};
h.$r=function(){this.B.length||zK(this);return this.B.shift()};
h.Ws=function(){this.B.length||zK(this);return this.B[0]};
h.Vs=function(){this.C&&this.C.cancel("Cancelling");this.K=this.F=null};h=BK.prototype;h.KF=function(a){if(!this.B){this.status=this.o.status;try{this.A=this.o.response}catch(b){}this.C=!0;this.D(a)}};
h.LF=function(a){this.B||(this.status=this.o.status,this.F(a))};
h.Fg=function(a){try{return this.o.getResponseHeader(a)}catch(b){return zi(b),""}};
h.Eg=function(){return+this.Fg("content-length")};
h.Uk=function(){return this.A.byteLength};
h.gp=function(){return 200<=this.status&&300>this.status&&!!this.A};
h.Tp=function(){return this.C&&!!this.A};
h.$r=function(){var a=this.A;this.A=null;return new window.Uint8Array(a)};
h.Ws=function(){return new window.Uint8Array(this.A)};
h.Vs=function(){this.B=!0;this.o.abort()};CK.C=!1;CK.A=1E4;CK.o=2048;CK.B="X-Bandwidth-Est";h=CK.prototype;h.getUrl=function(){return this.B?this.B.getUrl():""};
h.getErrorCode=function(){return this.H};
h.start=function(a){var b=1==this.state,c=6==this.state;1==this.state||4==this.state||c&&EK(this);FK(this,2);this.O=0<=a?a:window.NaN;if(c&&2<=this.G)c=this.info.B,this.K<=c.B||(c.A++,c.B=p$-1,xs(c)),this.G=0;else if(c){this.G++;b=1E4*(.5+Math.random());1==this.G&&(b=2E3);vi(y(this.An,this,a),b);return}b?this.An(a):vi(y(this.An,this,a),0)};
h.An=function(a){if(!this.isDisposed()){this.K=p$++;if(this.o){var b=this.info,c=this.o.A,d=this.o.length;this.J=b.range?new gs(b.range.start+c,b.range.end):is(c,d);this.B=Hs(this.info,this.J)}else this.J=this.info.range,this.B=Hs(this.info);this.B.set("rn",this.K.toString());this.G&&this.B.set("playerretry",this.G.toString());0<=a&&this.B.set("rbuf",(1E3*a).toFixed().toString());this.info.C&&this.B.set("headm",this.C.liveChunkReadahead.toString());a=this.B.getUrl();try{var e=y(this.oD,this),f=y(this.qD,
this),k=y(this.pD,this);this.A=(this.C.P||this.C.ea&&5>this.O)&&"function"==typeof window.fetch&&window.ReadableByteStream&&GK(this)&&this.info.range?new tK(a,f,k,e):new BK(a,f,k,e)}catch(m){this.H="net.ssl",FK(this,6)}0<this.C.G&&(this.F=vi(y(this.Dr,this),this.C.G));this.B.get("itag");this.B.get("range");K()}};
h.qD=function(){this.M=0;var a=this.timing;this.B&&$r(this.B.o);a.A=K();a.F=a.A;a.o=0;a.L=!1;a.J=!1;a.D=0;a.H=wN(a.B);OK(a);a.M=a.G-a.A};
h.pD=function(a){if(!this.isDisposed()){this.D=this.A.status;KK(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.A&&4E12>c?c:K();50>c-b.F||NK(b,c,a);b=this.timing;b.o>b.P&&8192<b.o&&3>this.state&&FK(this,3)}};
h.oD=function(){var a=this.A;if(!this.isDisposed()){this.F&&(xi(this.F),this.F=window.NaN);this.D=a.status;var b=!1;if(400<=a.status)b=!0,this.H="net.badstatus";else if(a.gp()){var c="";JK(this)&&(c=a.Ws(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),c=bs.test(c)?c:""));if(c){var a=this.info.B,d=this.B;d.o===a.o&&(a.o=vs(d,c));FK(this,4)}else{var c=a.Eg(),a=a.Uk(),d=!!this.J&&this.J.length,e=!0;!c&&d?e=d==a:!d&&c?e=c==a:d&&c&&(e=d==c&&c==a);if(e){KK(this,!0);e=GK(this)?this.A.Fg("X-Bandwidth-Est"):
0;c=this.timing;d=K();e=e?(0,window.parseInt)(e,10):0;if(!c.L){c.L=!0;d=d>c.A&&4E12>d?d:K();NK(c,d,a);var f=(d-c.A)/1E3;!c.J&&8192<=c.o&&LK(c.B,f,a);8192<=c.o&&vN(c.B,a,c.D);uN(c.B,(d-c.A)/1E3,c.o);a=c.B;a.P.o(1,e);a.D=Qt();c.C&&(c.C=!1)}K();FK(this,5)}else b=!0,this.H="net.closed"}}else b=!0,this.H="net.connect";b&&(EK(this),FK(this,6),K())}};
h.Dr=function(){this.F=window.NaN;if(!(this.isDisposed()||this.C.Wa&&this.A&&8192<=this.timing.o&&"quic"==this.A.Fg("client-protocol"))){var a=K(),b=!1;if(8192<=this.timing.o){var c=this.timing.G;OK(this.timing);this.timing.G-c>=.8*this.C.G?(this.M++,b=5<=this.M):this.M=0}else b=this.timing,b=5E3<a-(b.A+1E3*b.H.delay);b?(b=this.timing,a=a>b.A&&4E12>a?a:K(),c=(a-b.A)/1E3,8192<=b.o?(b.D+=(a-b.F)/1E3,vN(b.B,b.K,b.D)):MK(b.B,c),uN(b.B,c,b.o),HK(this),this.H="net.timeout",FK(this,6)):this.F=vi(y(this.Dr,
this),this.C.G)}};
h.isDisposed=function(){return-1==this.state};
h.dispose=function(){Bs(this.info.o[0])&&5!=this.state&&(this.info.o[0].o.B=!1);FK(this,-1);this.P=null;HK(this);xi(this.F);this.F=window.NaN};B(PK,Lj);PK.H=!1;PK.o=2/24;PK.D=1E3;PK.C=.2;PK.A=1E4;PK.G=1800;PK.F=25;PK.B="Not enough storage";h=PK.prototype;h.initialize=function(a,b,c,d){a=a||0;var e=this.G;d=d&&d.id;e.D="i";"auto"!=uJ()&&(e.D="s");FJ(e,b);Oaa(e,d);e.L=e.C;Paa(e);e.B=e.G;b=NJ(e);this.A=new QJ(this.C,b.audio);this.B=new QJ(this.C,b.video);this.U("videoformatchange",b);this.F=a;c?(this.K=!0,cL(this)):SK(this)};
h.resume=function(){this.K&&(this.K=!1)};
h.Aw=function(a){this.A.L=!1;this.B.L=!1;this.resume();this.o=a;zw(a)&&(a.o.addEventListener("updateend",y(this.Gc,this),!1),a.A.addEventListener("updateend",y(this.Gc,this),!1),a.o.addEventListener("error",y(this.ej,this,!0),!1),a.A.addEventListener("error",y(this.ej,this,!1),!1));RK(this,"msa");Xv.measure&&Xv.getEntriesByName("vta").length&&Xv.measure("measure_vta_to_msa","vta");this.S&&this.P&&ov();this.Gc();this.ia=wi(y(this.Gc,this),1E4)};
h.qC=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.o[0].o,c=!this.S&&b.info.video,d=!this.P&&b.info.audio,e=Math.max(0,a.info.o[0].D-this.F);if(4==a.state)c?RK(this,"vrr"):d&&RK(this,"arr"),a.start(e);else if(5==a.state)c?(this.S=a.getUrl(),pv()):d&&(this.P=a.getUrl()),this.D.A&&(b=b.info.video?this.B:this.A,b.K=!1),Xaa(this,a)?(Yaa(this,a),this.Gc()):this.md(!0,"fmt.unparseable",DK(a));else if(3==a.state)this.Gc(),c&&pv();else if(6==a.state&&EK(a)){if(this.md(!1,a.getErrorCode(),DK(a)),
!this.isDisposed()){if(c=b.info.video&&(0<a.G||410==a.D||500==a.D||503==a.D)&&90&&!KJ(this.G)){var d=this.G,f=b.info;KJ(d);d.Y=f;d.P=Qt();d.M=-1;FJ(d,d.o)}if(6==a.state&&"net.timeout"==a.H||c){b=b.info.video?this.B:this.A;for(e=0;e<b.D.length&&a!==b.D[e];e++);if(e==b.D.length)a.dispose();else{for(;e<b.D.length;)b.Y(b.D.pop());3==a.info.o[0].type?(a.o&&a.o.C?(a=a.o.C,a=new zs(a.type,a.o,a.range,a.C,a.startTime+a.duration,0,a.B+a.A,0,!1)):(a=a.info.o[0],a=new zs(a.type,a.o,a.range,a.C,a.startTime,0,
a.B,0,!1)),b.A=a):b.A=null}this.Gc()}else a.start(e)}}else Bs(a.info.o[0])?(b.D=!0,this.Gc()):this.md(!0,"net.retryexhausted",DK(a))}};
h.Gc=function(){this.ha=window.NaN;VK(this);if(this.o&&vw(this.o)&&!xw(this.o))if(this.D.isLive)(0,window.isNaN)(this.J)?(this.J=this.F+3600,this.o.lg(this.J)):this.J<=this.F+1800&&(this.J+=1800,this.o.lg(this.J));else{var a=Math.max(this.A.B.index.Dg(),this.B.B.index.Dg());(!(0,window.isFinite)(this.J)||this.J!=a)&&0<a&&(this.o.lg(a),this.J=a)}if(!this.isDisposed())if(a=this.D,a.isLive&&Qt()-a.G>=a.D)3==this.D.F?this.md(!0,"manifest.net.retryexhausted",{rc:this.D.H.toString()}):(this.D.M(),cL(this));
else{if(this.C.Z&&Qt()-this.D.K>=1E3*this.C.Z&&(this.o&&!ww(this.o)?Math.min(cz(this.o.A.buffered,this.F),cz(this.o.o.buffered,this.F)):0)>=this.C.ra){var a=this.D,b=a.o,c;for(c in b)xs(b[c].F);a.K=Qt()}this.D.isLive&&(nK(this.B)||nK(this.A))&&(c=hL(this),(0,window.isNaN)(c)||this.seek(c));"prerender"==window.document.webkitVisibilityState?cL(this):(VK(this),WJ(this.B),WJ(this.A),this.D.A&&(oK(this.B),oK(this.A)),this.A.B.B||(!this.K||xN(this.H)?SK(this):cL(this)),!this.o||WK(this,this.A,this.o.o)||
WK(this,this.B,this.o.A)||((c=gL(this,this.B,this.o.A,null,this.A.G))&&!this.ca&&(this.ca=K(),RK(this,"vda"),this.Z&&pv()),a=az(this.o.A.buffered,this.F+PK.o),(0,window.isNaN)(a)&&!dK(this.B)&&this.o.o.buffered.length||(dK(this.B)&&(a=window.NaN),a=gL(this,this.A,this.o.o,a,null),c|=a,a&&!this.Z&&(this.Z=K(),RK(this,"ada"),this.ca&&pv())),dK(this.B)&&dK(this.A)&&vw(this.o)&&!xw(this.o)&&(a=this.o,vw(a)&&a.B.endOfStream(),tN(this.H)),c&&!zw(this.o)&&bL(this)),this.C.Xa||(jL(this,this.B,HJ(this.G)),
jL(this,this.A,IJ(this.G))),this.B.B.D||this.A.B.D?this.md(!0,"net.retryexhausted"):(YK(this,this.B,this.A)&&aL(this,this.B,this.A),YK(this,this.A,this.B)&&aL(this,this.A,this.B),this.C.xa&&this.O&&!this.K&&xN(this.H)&&(c=this.O,this.O="",a=Ye(c),tj(c,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:y(this.md,this,!1,"pathprobe.net",{shost:a})})),this.D.B&&cL(this)))}};
h.ej=function(a){a=(a=a?this.A:this.B)&&a.C;this.md(!0,"fmt.unplayable",a?Es(a):void 0)};
h.seek=function(a){if(!this.isDisposed()&&!this.B.K&&!this.A.K){VK(this);this.xa=Qt();this.B.B=HJ(this.G);var b=iL(this,this.B,a,this.o&&this.o.A);this.A.B=IJ(this.G);var c=iL(this,this.A,b,this.o&&this.o.o);this.F=Math.max(a,b,c);this.M=!0;bL(this)}};
h.V=function(){UK(this);this.A&&(fK(this.A),fK(this.B));yi(this.ia);this.B=this.A=null;PK.N.V.call(this)};
h.md=function(a,b,c){this.isDisposed()||(this.U("error",new fw(b,a,c)),a&&(this.o&&vw(this.o)&&(a=this.o,vw(a)&&a.B.endOfStream("network")),this.dispose()))};B(lL,G);h=lL.prototype;h.setCallbacks=function(a,b,c,d){this.G=a;this.F=b;this.J=c;this.A=d};
h.CG=function(a){this.G.call(this.A,new window.Uint8Array(a.message))};
h.rB=function(){};
h.uq=function(a,b){zi(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.F.call(this.A,c)};
h.Uq=function(a){this.G.call(this.A,a.message)};
h.Tq=function(a){var b;this.o?(b=this.o.error.code,a=this.o.error.systemCode):(b=a.errorCode&&a.errorCode.code,a=a.systemCode);this.F.call(this.A,";c."+b+";sc."+a)};
h.Sq=function(){this.J.call(this.A)};
h.update=function(a){this.C?this.C.update(a).then(null,ui(y(this.uq,this,"t.u"))):this.o?this.o.update(a):this.D.addKey?this.D.addKey(this.K.B,a,this.H,this.sessionId):this.D.webkitAddKey(this.K.B,a,this.H,this.sessionId)};
h.V=function(){this.D=null;lL.N.V.call(this)};B(mL,G);h=mL.prototype;
h.createSession=function(a){var b=a.o;if(this.o.A){var c=this.G.createSession(),b=c.generateRequest(a.contentType,b),c=new lL(null,null,null,c,null);b.then(null,ui(y(c.uq,c,"t.g")));return c}if(ou(this.o)){c=new window.Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.C.createSession("video/mp4",b,c);return new lL(null,null,null,null,b)}if(pu(this.o)){c=
b.subarray(4);c=String.fromCharCode.apply(null,new window.Uint16Array(c.buffer,c.byteOffset,c.byteLength/2)).match(/ek=([0-9a-f]+)/)[1];a="";for(var d=0;d<c.length;d+=2)a+=String.fromCharCode((0,window.parseInt)(c.substr(d,2),16));for(var e=this.o.fairPlayCert,c=new window.Uint8Array(new window.ArrayBuffer(e.length)),d=0;d<e.length;d++)c[d]=e.charCodeAt(d);for(var d=new window.ArrayBuffer(2*a.length),e=new window.Uint16Array(d),f=0;f<a.length;f++)e[f]=a.charCodeAt(f);a=new window.Uint8Array(d);d=
0;f=new window.ArrayBuffer(b.byteLength+4+a.byteLength+4+c.byteLength);e=new window.Uint8Array(f);f=new window.DataView(f);e.set(b);d+=b.byteLength;f.setUint32(d,a.length,!0);d+=4;e.set(a,d);d+=a.length;f.setUint32(d,c.byteLength,!0);e.set(c,d+4);b=this.C.createSession("video/mp4",e);return new lL(null,null,null,null,b)}this.A.generateKeyRequest?this.A.generateKeyRequest(this.o.B,b):this.A.webkitGenerateKeyRequest(this.o.B,b);return this.B=new lL(this.A,this.o,b,null,null)};
h.FG=function(a){var b=pL(this,a);b&&b.Uq(a)};
h.EG=function(a){var b=pL(this,a);b&&b.Tq(a)};
h.DG=function(a){(a=pL(this,a))&&a.Sq()};
h.V=function(){this.A=null;mL.N.V.call(this)};qL.prototype.get=function(a){a=rL(this,a);return-1!=a?this.values[a]:null};
qL.prototype.remove=function(a){a=rL(this,a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
qL.prototype.removeAll=function(){this.keys=[];this.values=[]};
qL.prototype.set=function(a,b){var c=rL(this,a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};B(tL,G);h=tL.prototype;h.Xs=function(a){this.G=a};
h.OF=function(a){if(!this.isDisposed()){this.F||(this.F=!0,this.o.U("newsession",this));if(ou(this.A)){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new window.DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=new window.Uint8Array(YH(a.childNodes[0].data))}if(pu(this.A))for(b=WH(a),a=new window.Uint8Array(new window.ArrayBuffer(b.length)),c=0;c<b.length;c++)a[c]=b.charCodeAt(c);a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,
tb:this.vB,onError:this.Hq,context:this};b=this.H;this.G&&(b=nf(b,"access_token",this.G));tj(b,a)}};
h.MF=function(){this.isDisposed()||this.D||(this.o.U("sessionready"),this.D=!0)};
h.vB=function(a){if(!this.isDisposed())if(0!=a.status&&a.response){a=new window.Uint8Array(a.response);var b=String.fromCharCode.apply(String,a.subarray(0,16384)),c=b.indexOf("\r\n"),d=b.indexOf("\r\n\r\n"),e;-1==d?a=null:(e=b.slice(0,c).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/),null==e?a=null:(e=ab(e[1]),b=Ws(b.slice(c+2)),a=null==b?null:new aba(e,b,a.subarray(d+4))));a?0!=a.o?uL(this,"drm.auth","t.f;c."+a.o,Xy(a.o)):(d=(d=a.headers["Authorized-Format-Types"])?d.split(","):null,b=null,(c=a.headers["Heartbeat-Url"])&&
(b=new $aa(c,(0,window.parseInt)(a.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(a.headers["Heartbeat-Num-Retries"],10)||4)),(d||b)&&this.o.U("newlicense",d,b),pu(this.A)&&(a.message=new window.Uint8Array(YH(String.fromCharCode.apply(null,a.message)))),this.B.update(a.message)):uL(this,"drm.net","t.p","YTP_ERROR_SERVER_ERROR")}else this.Hq(a)};
h.NF=function(a){this.isDisposed()||uL(this,"drm.keyerror","t.s"+a)};
h.Hq=function(a){uL(this,"drm.net","t.r;c."+a.status)};
h.V=function(){this.o=null;tL.N.V.call(this)};B(xL,Lj);h=xL.prototype;h.bB=function(a){a=new vL(new window.Uint8Array(a.initData),a.initDataType);zL(this,a,!0)};
h.MB=function(a){zL(this,new vL(a.initData,a.contentType),!0)};
h.DB=function(){this.isDisposed()||(this.F=!0,this.A.length&&yL(this,this.A[0]))};
h.jA=function(a){if(!this.isDisposed()){zi(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.U("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
h.OB=function(a,b){a&&jb(a,"HD")&&!Ku(this.D)&&!ou(this.o)&&(this.D=Lu,this.U("qualitychange"));b&&!this.P&&(this.P=b,this.U("heartbeatparams",b))};
h.PB=function(){this.isDisposed()||(this.A.shift(),this.A.length&&yL(this,this.A[0]))};
h.yC=function(){if(ou(this.o)&&(this.M--,0==this.M)){var a=this.B;a.A.msSetMediaKeys(a.C)}};
h.V=function(){this.o.A&&this.G.setMediaKeys(null);this.G=null;this.A=[];F(this.C.values,function(a){a.dispose()});
this.C.removeAll();xL.N.V.call(this)};AL.prototype.D=function(){var a=r("yt.abuse.botguardInitialized");return a&&a()?(a=r("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
AL.prototype.F=function(a){return"r3a="+Math.floor(this.o.lengthSeconds%Ya(a.c3a))};
AL.prototype.C=function(a){a=Ya(a.c);var b;b=r("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};IL.prototype.isEmpty=function(){return this.endTime==this.startTime};B(LL,Lj);LL.o=1;LL.A=10;LL.B=5;LL.C=5;h=LL.prototype;h.V=function(){xi(this.S);yi(this.Ga);NL(this);$L(this);ML(this);cM(this);Nb(this.ea,this.o);this.P=null;this.ra=!1};
h.sh=function(a,b){this.ca.length=0;this.fa.reset();this.O.reset();this.M=this.ia=window.NaN;this.da=null;this.bb=!1;this.A&&JI(this.A);fM(this);NL(this);$L(this);ML(this);Mb(this.o);if(2==this.J||WI.test(this.X.H))a.Vp=!0;this.X.Zf&&(a.autonavState=this.o.autonavState);this.o=a;this.o.subscribe("dataupdated",this.bD,this);this.o.subscribe("dataloaded",this.Eo,this);this.o.subscribe("dataloaderror",this.Sj,this);this.o.subscribe("onStatusFail",this.aD,this);if(a.Bf&&a.Bf>a.startSeconds){var c=a.Bf;
this.P&&(this.F.Ch(this.P),this.P=null);this.P=new rq(1E3*c,0x7ffffffffffff);sq(this.P).subscribe("onEnter",this.mg,this);this.F.ib([this.P])}NL(this);this.o.ef||(c=new fba(this.o,this.X,b,y(this.Ag,this),y(this.getCurrentTime,this),y(this.xx,this),y(this.Ja.Ma,this.Ja),y(this.tn,this),y(this.Jx,this)),this.B=new NB(c));this.ra=!1;tM(this,"newdata");SL(this,new gz)};
h.getVideoData=function(){return this.o};
h.W=function(){return this.X};
h.Eo=function(){if(Vx(this.o))Vx(this.o),this.fa.o=!0,4!=this.J&&(this.ca=sb(this.o.J)),Ox(this.o,this.X),Hx(this.o)&&(this.o.Ha&&(this.Z=new Iaa),this.o.A.o&&oM(this),nM(this,"i")),tM(this,"dataloaded"),this.O.A&&TL(this);else if(this.o.la){var a=this.o,b=this.X.experiments;a.oe=!0;a.la=!1;bs.test(a.G)||zi(Error("DASH MPD Origin invalid: "+a.G),"WARNING");var c;if(b.ga("html5_keep_dash_mpd_origin"))c=a.G;else{c=a.G;var d=Ye(c);c=0>rx.C.indexOf(d)?Xp(c):Yp(c)}(d=b.Yb("html5_dash_mpd_version"))&&(c=
gf(c,{mpd_version:d}));!a.isLowLatencyLiveStream&&b.ga("html5_live_disable_dg_pacing")&&(c=gf(c,{pacing:0}));au(new Rt(c,b.ga("html5_live_nonzero_first_segment_start_time")),c).then(a.UA,a.TA,a);Qv("mrs")}else if(this.o.Z)this.B&&(a=this.B.A,GB(a,"protected"),a.o.videoData.H?a.Ur():a.o.videoData.subscribe("dataloaded",a.Ur,a)),a=this.o,b=this.X.G,c=this.X.experiments,St(a.o),b=new wu(Tw(b,a.o),c),I(a,b),a.Z=!1,a.oe=!0,a=y(a.vz,a),b.C=a,uu(b.G.ga("edge_nonprefixed_eme"))?Au(b):Bu(b);else if(!this.o.oe){a:switch(b=
this.X,a=this.o,c=this.Ja.Ma(),d=HL(this.X),a.O){case 38:b=a.videoId.indexOf(":");b=gf("//play.google.com/books/volumes/"+a.videoId.slice(0,b)+"/content/media",{aid:a.videoId.slice(b+1),sig:a.sf});break a;case 30:c="//docs.google.com/";b.baseYtUrl!=cJ.prototype.baseYtUrl&&(c=b.baseYtUrl);b=gf(c+"get_video_info",{docid:a.videoId,authuser:a.Db,authkey:a.bb,eurl:b.ca});break a;case 33:b=gf("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});break a;default:var e={html5:"1",video_id:a.videoId,
cpn:a.clientPlaybackNonce,eurl:b.ca,ps:b.o,el:b.Ba,hl:b.Y,list:a.playlistId,agcid:a.rf,aqi:a.qf,sts:16890,lact:HB()};b.forcedExperiments&&(e.forced_experiments=b.forcedExperiments);a.L?e.vvt=a.L:a.oauthToken&&(e.access_token=a.oauthToken);b.adFormat&&(e.adformat=b.adFormat);b.Ta&&(e.cc_lang_pref=b.Ta);b.ia&&2!=b.ia&&(e.cc_load_policy=b.ia);b.mute&&(e.mute=b.mute);a.ua&&2!=b.zd&&(e.iv_load_policy=a.ua);a.Vi&&(e.itct=a.Vi);a.Pc&&(e.autoplay="1");a.Wi&&(e.autonav="1");a.Sl&&(e.noiba="1");a.isMdxPlayback&&
(e.mdx="1");a.ia&&(e.ytrcc=a.ia);a.Xl&&(e.utpsa="1");a.isFling&&(e.is_fling="1");a.vnd&&(e.vnd=a.vnd);c.width&&(e.width=c.width);c.height&&(e.height=c.height);a.zg&&(e.splay="1");a.ypcPreview&&(e.ypc_preview="1");b.la&&(e.content_v=b.la);a.Yf&&(e.livemonitor=1);b.Db&&(e.authuser=b.Db);b.pageId&&(e.pageid=b.pageId);b.Z&&(e.ei=b.Z);b.dc&&(e.ssl_stream="1");b.M&&(e.iframe="1");a.Rj&&(e.tst=a.Rj);a.contentCheckOk&&(e.cco="1");a.racyCheckOk&&(e.rco="1");b.$a&&a.liveStartWalltime&&(e.live_start_walltime=
a.liveStartWalltime);b.$a&&a.Yl&&(e.live_manifest_duration=a.Yl);b.$a&&a.wb&&(e.cyc=a.wb);0!=d&&b.experiments.ga("send_presence_signal_vis_desktop")&&(e.vis=d);b.enableSafetyMode&&(e.enable_safety_mode="1");ra(e,b.A);b=gf(b.baseYtUrl+"get_video_info",e)}a=this.o;c=this.X.experiments.K;d=this.X.experiments.o;e=!this.X.experiments.ga("disable_gvi_cors");a.isDisposed()||(a.Qb=b,a.kb=!!c||!1,a.Td=!!d,a.zd=!!e,a.oe=!0,a.Mr())}};
h.mg=function(a){this.pauseVideo();a=0==a?new gz:new gz(14);SL(this,a)};
h.logEvent=function(a,b){if(this.B){var c=this.B,d={};d.rt=OB(c.o).toFixed(3);ra(d,QB(c.o));var e=c.o.o,f=c.o.videoData,k=f.Sa||e.Bd,k={ns:e.ha,html5:"1",el:e.Ba,ps:e.o,fexp:e.experiments.experimentIds.join(",")||void 0,feature:k||void 0,ctrl:f.fa||void 0,ytr:f.ea||void 0,list:f.playlistId,d:e.kb,f:e.Ka};if(e.experiments.ga("legacy_autoplay_flag")?e.L:f.Pc)k.autoplay="1";f.subscribed&&(k.subscribed=f.subscribed);ra(d,k);delete d.fexp;ra(d,a);d=lj(c.o.o.baseYtUrl+"player_204",d);UB(c,d,b)}};
h.uj=function(a){this.ca=this.ca.filter(function(b){return a!=b});
this.O.A&&TL(this)};
h.getPlayerState=function(){return this.C};
h.tn=function(){var a=this.getVideoData(),b=a.F;if(!b)return a.S;var c=eb(this.o.A?this.o.A.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.S};
h.qB=function(a){if(this.H){var b=this.H;if(ou(b.o)){for(var c=new window.Uint8Array(0),d=new window.DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var f=d.getUint32(e);if(1>f)break;var k=d.getUint32(e+4);if(1836019574==k)e+=8;else{if(1886614376==k){var k=a.subarray(e,e+f),m=new window.Uint8Array(c.length+k.length);m.set(c);m.set(k,c.length);c=m}e+=f}}a=c;0!=a.length&&zL(b,new vL(a),!1)}}};
h.zB=function(a){ZL(this,a.reason,a.video.info,a.audio.info);var b=Qx(this.o);b&&b.D(a.video);this.Z&&(this.Z.A=a.audio.index)};
h.yB=function(a){YL(this,a.reason,a.audio.info)};
h.Sj=function(a){if("fmt.unplayable"==a.errorCode&&this.A){var b=this.A.getErrorCode();a.details.merr=b?b.toString():"0"}Gx(this.o)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)Gx(this.o),this.o.de&&!this.Wa&&(this.Wa=!0,this.U("signatureexpired"));else if(pM(a)&&this.o.A.A)a=this.o,a.A=a.A.A,jM(this),iM(this);else if(a.o)b=this.D?this.D.G.o:null,b=pM(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,PL(this,a.errorCode,b,gw(a));else if(this.B)this.B.onError(a.errorCode,
gw(a))};
h.pauseVideo=function(a){T(this.C,64)&&!a&&(T(this.C,8)?SL(this,pz(this.C)):SL(this,oz(this.C,8)));this.A&&(T(this.C,128)||(a?SL(this,nz(this.C,256)):SL(this,pz(this.C))),this.A.pause())};
h.Is=function(){if(!(0,window.isNaN)(this.M)&&this.A){var a=this.Ag();!this.o.Ha&&this.M>=Math.floor(a)?(this.M=a,this.U("endseeking",this),this.pauseVideo(!0),this.mg()):(this.D&&this.D.seek(this.M),(!this.o.Ha||1<=this.A.o.readyState)&&FI(this.A,this.M))}this.ea&&(this.ea.dispose(),this.ea=null);T(this.C,32)&&(SL(this,nz(oz(this.C,32),16)),this.U("endseeking",this))};
h.getCurrentTime=function(){if(!(0,window.isNaN)(this.M))return this.M;var a=0;this.A&&1<=this.A.o.readyState?a=this.A.getCurrentTime():this.o&&(a=this.X.experiments.ga("new_ended_replay")?this.o.startSeconds||0:this.o.Pj||this.o.startSeconds||0);this.X.experiments.ga("new_ended_replay")&&(a=le(a,Sx(this.o),qM(this,!1)));return a};
h.Ag=function(){return this.o.lengthSeconds?this.o.lengthSeconds:qM(this,!1)?qM(this,!1):0};
h.xx=function(){var a=new eba;if(this.la&&this.D){var b=this.la;a.B=b.G;a.F=b.H;a.o=Gy(b);b=this.D;b.o&&!ww(b.o)&&(a.A=cz(b.o.A.buffered,b.F),a.C=cz(b.o.o.buffered,b.F));a.o=CJ(b.L);Gy(b.H);AJ(b.H);zJ(b.H)}else this.A&&(a.A=jz(this.A));this.Z&&Jaa(this.Z,a);return a};
h.bD=function(){if(this.H){var a=this.H,b=this.o.oauthToken;a.K=b;a.U("oauthtoken",b)}bM(this);tM(this)};
h.aD=function(a){PL(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
h.ZE=function(a){var b=a.target.o.src;if(this.A&&this.A.o.src&&this.A.o.src==b){var c=!1;switch(a.type){case "error":if(this.X.sf&&2==this.A.getErrorCode()){(0,window.setTimeout)(y(function(){this.A&&(this.o.hg&&this.A.load(),iM(this))},this),500);
if(this.B)this.B.onError("progressive.net");return}break;case "durationchange":var d=this.A.o.duration;(!this.L||(0,window.isFinite)(d)&&0<d)&&1!=d&&this.o.lengthSeconds!=d&&(this.o.lengthSeconds=d,tM(this));break;case "ratechange":this.D&&(this.D.L.B=Math.max(1,this.A.o.playbackRate));this.F.qg();break;case "loadedmetadata":this.o.startSeconds&&(0<(this.A.o.seekable||Yy()).length?this.X.experiments.ga("new_ended_replay")?WL(this,this.o.startSeconds,!0):this.A.o.currentTime=this.o.startSeconds:(this.ia=
this.o.startSeconds,this.pauseVideo(!0)));case "loadstart":yi(this.Ga);this.Dk()||(this.Ga=wi(y(this.Dk,this),100));break;case "progress":kba(this);case "suspend":rM(this);this.U("onLoadProgress",this,jba(this));T(this.C,8)&&(this.qb?c=!0:this.wb&&((0,window.isNaN)(this.Ta)||this.Ta+1<this.A.getCurrentTime())&&(c=!0,this.Ta=this.A.getCurrentTime()));break;case "seeked":vM(this);break;case "seeking":this.D&&this.D.seek(this.A.getCurrentTime());GL(this.Ca,this.A.getCurrentTime());break;case "playing":this.G.A("plev");
this.ab&&(this.ab=!1,gM(this)||WL(this,window.Infinity,!0));break;case "timeupdate":this.bb=!0;this.Dk();vM(this);rM(this);if(!this.A||this.A.o.src!=b)return;this.U("onVideoProgress",this,this.A.getCurrentTime());this.Z&&this.K&&Kaa(this.Z,this.A.getCurrentTime());break;case "waiting":if(0<(this.A.o.played||Yy()).length&&0==II(this.A).length&&0<this.A.getCurrentTime()&&5>this.A.getCurrentTime()&&this.D)return}this.A&&this.A.o.src==b&&(this.U("videoelementevent",a),a=lz(this.C,a,this.Ca,this.xb),SL(this,
a),c&&this.A.play())}};
h.Zz=function(a){a="available"==a.o.availability;a!=this.Sa&&(this.Sa=a,this.U("airplayavailabilitychange"))};
h.$z=function(){var a=!!this.A.o.webkitCurrentPlaybackTargetIsWireless;a!=this.Na&&(function(){this.X.Ul=a}.apply(this),this.Na=a)&&(Ox(this.o,this.X),nM(this,"m"));
this.U("airplayactivechange")};
h.Dk=function(){var a=this.A;a&&this.bb&&!this.o.de&&!Rv("vfp",this.G.o)&&2<=a.o.readyState&&!a.o.ended&&0<bz(II(a))&&this.G.A("vfp");if((a=this.A)&&!this.o.de&&0<a.o.duration&&(!Rv("pbp",this.G.o)&&a.o.paused&&2<=a.o.readyState&&0<bz(II(a))&&this.G.A("pbp"),0<a.getCurrentTime())){yi(this.Ga);xi(this.S);this.S=window.NaN;this.o.de=!0;uM(this);if(this.B){a=this.B;if(!a.C){var b=RB(a,"playback");a.J=[10+a.o.videoData.Qj,10,10,40+a.o.videoData.sn-a.o.videoData.Qj,40];var c=a.B;yi(c.F);c.F=window.NaN;
c.F=wi(y(c.update,c),100);c.D=OB(c.A);c.C=uB(c.A);b.A=PB(a,!0);b.Ja=!0;b.send();a.o.videoData.ca&&(b=a.o.o,c=a.o.videoData,b=gf(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.ca,oid:c.wd,ptchn:c.ud,pltype:c.xd,content_v:b.la}),UB(a,b));a.o.videoData.enableCardio&&(a.tj("playback"),a.D||$B(a));a.o.videoData.hf||WB(a);a.C=!0;a=a.B;a.o=a.A.A();a.D=OB(a.A);.5<a.o-a.B&&(a.B=a.o)}vi(y(this.Cm,this),4500)}this.U("playbackstarted");kv()&&
ov();return!0}return!1};
h.VA=function(){this.Ka&&(this.ha.za(this.Ka),delete this.Ka,HI(this.A))};
h.Vx=function(){if(this.A){var a=this.getCurrentTime();if(T(this.C,8)&&mz(this.Ca,a,Qt(),jz(this.A))){var b=this.Ag();b&&1>Math.abs(b-a)?this.mg():SL(this,nz(this.C,1))}else T(this.C,4)&&rz(this.C)&&5<jz(this.A)&&SL(this,oz(this.C,1));rM(this)}};
h.Jx=function(){this.o.Ha||this.U("connectionissue")};
h.LD=function(){FI(this.A,this.A.getCurrentTime()+.1)};
h.NB=function(a){var b={};ra(b,this.X.A);b.cpn=this.o.clientPlaybackNonce;this.o.L&&(b.vvt=this.o.L);this.X.Db&&(b.authuser=this.X.Db);this.X.pageId&&(b.pageid=this.X.pageId);hc(a.C,b);sL(a,a.H)};
h.tB=function(a,b,c){c=p(c)?c:"YTP_ERROR_LICENSE";b=b.substr(0,256);PL(this,a,c,b)};
h.uB=function(){nM(this,"r");tM(this)};
h.YE=function(a){this.U("heartbeatparams",a)};
h.Iq=function(){if(!this.o.de&&this.A){0<this.A.o.readyState&&5<=jz(this.A)&&(SL(this,nz(this.C,1)),this.U("playbackstalledatstart"));if(this.B)this.B.onError("qoe.start15s");this.U("loadsofttimeout")}};
h.Cm=function(){if(!this.ra){var a=new AL(this.o),b;"c1a"in a.B?(b=r("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)vi(y(this.Cm,this),4500);else{var c;if(a.o&&a.o.ha){b=[a.o.ha];for(c in a.A)if(a.B[c]&&a.A[c]){var d=a.A[c](a.B);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.B&&(a=this.B,a.L||(b=RB(a,"atr"),b.L=c,b.send(),a.L=!0),this.ra=!0)}}};
h.XE=function(){return this.A?this.A.o.playbackRate:1};var z$={"api.invalidparam":2,auth:150,"drm.auth":150,heartbeat:150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"drm.unavailable":5};B(xM,G);h=xM.prototype;h.cF=function(){return Wb(this.B)};
h.dF=function(){return Wb(this.C)};
h.ma=function(){return this.o};
h.addEventListener=function(a,b){if(w(b)){var c=b,d=function(){r(c).apply(window,arguments)};
b=this.F[c]=d}this.app.ca.subscribe(a,b);this.app.W().experiments.ga("publish_internal_events_externally")&&this.app.L.subscribe(a,b)};
h.ix=function(a,b){var c=w(b)?a+b:a+na(b);if(!this.D[c]){var d;w(b)?d=function(){r(b).apply(window,arguments)}:d=b;
var e=y(function(a){d({target:this.A,data:a})},this);
this.D[c]=e;this.app.ca.subscribe(a,e);this.app.W().experiments.ga("publish_internal_events_externally")&&this.app.L.subscribe(a,e)}};
h.removeEventListener=function(a,b){if(w(b)){var c=this.F[b];cc(this.F,b);b=c}Ce(this.app.ca,a,b);this.app.W().experiments.ga("publish_internal_events_externally")&&Ce(this.app.L,a,b)};
h.jx=function(a,b){var c=w(b)?a+b:a+na(b),d=this.D[c];d&&(Ce(this.app.ca,a,d),this.app.W().experiments.ga("publish_internal_events_externally")&&Ce(this.app.L,a,d),cc(this.D,c))};
h.getPlayerState=function(){return A9(this.app)};
h.Tb=function(a,b){J9(this.app,!0,this.playerType);Y9(this.app,a,b,void 0,this.playerType)};
h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
h.Eh=function(){return x9(this.app,this.playerType)};
h.Fb=function(){return this.app.Y.volume};
h.setVolume=function(a){a=le(Math.floor(a),0,100);U9(this.app,{volume:a,muted:this.Fc()})};
h.Fc=function(){return this.app.Y.muted};
h.mute=function(){U9(this.app,{muted:!0,volume:this.Fb()})};
h.unMute=function(){U9(this.app,{muted:!1,volume:Math.max(5,this.Fb())})};
h.Uc=function(){J9(this.app,!0,this.playerType);X9(this.app,this.playerType)};
h.pauseVideo=function(){var a=this.app,b=this.playerType;if(QM(a.Ra)){var c=a.ea.play_pause?a.ra:null;c?c.se("control_pause"):a.pauseVideo(b)}};
h.Zj=function(){var a=this.app;a.X.P&&(a.o.Pa()&&Dy(a.o),a.o.U("pageTransition"));W9(a)};
h.$E=function(){};
h.eF=function(){return this.app.S};
h.Gh=function(a){t9(this.app,a)};
h.Tj=function(){return this.app.X.da?u9:[1]};
h.Uj=function(){var a=wq(this.app,this.playerType);return a&&(a=a.getVideoData().B)?a.video.quality:"unknown"};
h.Yj=function(a){var b=this.app,c=wq(b,this.playerType);c&&!b.X.isMobile&&(a=Ju(a,a,!0),nM(c,"p",a))};
h.Ks=function(){var a=wq(this.app,this.playerType);return a?(a=ji(lM(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
h.hF=function(){return this.wn()};
h.iF=function(){return 1};
h.wn=function(){return p9(this.app)};
h.jF=function(){return 0};
h.setSize=function(){this.app.G.Je()};
h.Os=function(a){N9(this.app,a?2:1)};
h.Ps=function(a){N9(this.app,a)};
h.pF=function(a){var b=this.app;b.X.Vl=a;b.o.U("minimized")};
h.Vj=function(a){var b=this.app.D;b.isAvailable(a)&&(a=AM(b,a))&&!a.loaded&&a.load()};
h.Rs=function(a){var b=this.app.D;b.isAvailable(a)&&(a=AM(b,a))&&a.loaded&&a.unload()};
h.xn=function(a,b,c){a=G9(this.app,vJ(a,b,c),this.playerType);J9(this.app,a,this.playerType)};
h.un=function(a,b,c){var d=this.playerType;K9(this.app,new rx(vJ(a,b,c)),d)};
h.mF=function(a,b,c){a=wJ(a,b,c);b=G9(this.app,a,this.playerType);J9(this.app,b,this.playerType);b=this.app;(a=(new N(a.mediaContentUrl)).o)&&dJ(b.X,a)};
h.bF=function(a,b,c){a=wJ(a,b,c);b=this.playerType;K9(this.app,new rx(a),b);b=this.app;(a=(new N(a.mediaContentUrl)).o)&&dJ(b.X,a)};
h.getVideoUrl=function(){var a=this.app.W();if(a.D)return"";var b=Q4(this.app),c=void 0;b.Ha||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.De()||void 0,c)};
h.vn=function(){return z9(this.app)};
h.Ls=function(){var a=this.app,b=Q4(a),c=a.G.Ma(),a="https://"+jJ(a.X)+"/embed/"+b.videoId;b.playlistId&&(a=gf(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+Ga(a)+'" frameborder="0" allowfullscreen></iframe>'};
h.Js=function(a,b,c){return S9(this.app,a,b,c)};
h.Ns=function(a){a:{for(var b=this.app,c=b.A.F.o.o||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.A.F.Ch(e);xq(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
h.Ms=function(a,b,c,d){var e=this.app;e.da=!1;L9(e,a,b,c,d);J9(this.app,!0,this.playerType)};
h.aF=function(a,b,c,d){var e=this.app;e.da=!0;L9(e,a,b,c,d)};
h.Wj=function(){O9(this.app);J9(this.app,!0,this.playerType)};
h.Xj=function(){P9(this.app);J9(this.app,!0,this.playerType)};
h.yn=function(a){Q9(this.app,a);J9(this.app,!0,this.playerType)};
h.setShuffle=function(a){var b=this.app.C;b&&b.setShuffle(a)};
h.oF=function(a){var b=this.app.C;b&&(b.K=a)};
h.Ec=function(){var a=this.app.C;if(!a)return null;for(var b=[],c=0;c<a.B;c++){var d=a.yb(c);d&&b.push(d.videoId)}return b};
h.fF=function(){var a=this.app.C;return a?a.Lb():-1};
h.De=function(){var a=this.app.C;return a&&a.D?a.D.toString():null};
h.Ee=function(a,b,c){return $9(this.app,a,b,c)};
h.Ab=function(a,b,c){return $9(this.app,a,b,c)};
h.Fh=function(a){return a$(this.app,a)};
h.getVideoData=function(){var a=wq(this.app,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.De();b&&(a.list=b);return a};
h.Qs=function(){j9(this.app,!0)};
h.kF=function(){j9(this.app,!1)};
h.getAdState=function(){return this.app.getAdState()};
h.lF=function(a){if(a!=this.app.Z.args.video_id)return!1;a=(a=wq(this.app,1))?a.getPlayerState():null;return!(!a||!T(a,128)||5!=z$[a.o.errorCode])};
h.gF=function(){var a=this.app.Z.clone(),b=a.args,c=Q4(this.app),d=ec(c.C);!c.Ha&&0<c.startSeconds&&(d.start=c.startSeconds);ra(b,d);return a};
h.qF=function(a,b){var c=this.app;c.X.C&&(c.H||(c.H=new t5(c),m9(c,c.H)),u5(c.H,a,b),6!=c.M&&(c.H.Ya(c.Ra)?(1!=c.M&&3!=c.M||!b||o9(c,c.J),a.length&&1!=c.M&&n9(c)):o9(c,c.H)))};
h.destroy=function(){this.app.dispose()};
h.nF=function(){var a=wq(this.app);a&&!T(a.getPlayerState(),128)&&(a.U("internalAbandon"),NL(a),ML(a))};
h.V=function(){if(this.o){for(var a in this.B)this.o[a]=null;for(a in this.C)this.o[a]=null;this.o=null}this.F=this.D=null;xM.N.V.call(this)};B(yM,xM);h=yM.prototype;h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Js=function(a,b,c,d,e){return S9(this.app,a,b,c,d,e)};
h.rF=function(a,b,c,d){AI(this.app.W().K,a,{Qe:b,sg:c,ti:d})};
h.sF=function(a){var b=this.playerType;K9(this.app,new rx(a),b)};
h.getPlayerState=function(a){return A9(this.app,a)};
h.Bg=function(a){G9(this.app,a,this.playerType)};
h.BF=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.P&&b.P.getVideoData().videoId==a.videoId||(a=new rx(a),H9(b,a))};
h.Uc=function(){X9(this.app,this.playerType)};
h.Tb=function(a,b){Y9(this.app,a,b,void 0,this.playerType)};
h.Ms=function(a,b,c,d){var e=this.app;e.da=!1;L9(e,a,b,c,d)};
h.Wj=function(a){O9(this.app,a)};
h.Xj=function(a){P9(this.app,a)};
h.yn=function(a){Q9(this.app,a)};
h.Vc=function(a,b,c){var d=this.app,e=this.playerType;Y9(d,d.getCurrentTime()+a,b,c,e)};
h.IF=function(a){if(a){var b=this.De();if(!b||b==a.list){var c=a.video;(b=this.app.C)?this.app.Ra.Pa()&&((c=c[b.Lb()])&&c.encrypted_id!=b.yb().videoId||(a.index=b.Lb())):f9(this.app,{list:a.list,index:a.index,playlist_length:c.length});ly(this.app.C,a)}}else a=this.app,g9(a),a.o.Ea("onPlaylistUpdate")};
h.HF=function(){PI()};
h.JF=function(a){var b=wq(this.app,this.playerType||1);b&&(b=b.getVideoData(),xx(b,a),b.U("dataupdated"))};
h.xF=function(){var a=this.app.getVideoData();return a.C.storyboard_spec||a.C.live_storyboard_spec};
h.vF=function(){var a=this.app.W();return{Nb:a.Nb,$a:a.$a}};
h.getVideoData=function(){var a=yM.N.getVideoData.call(this),b=wq(this.app,this.playerType),b=b?b.getVideoData():{};a.backgroundable=b.backgroundable;a.cpn=b.clientPlaybackNonce;a.isLive=b.Ha;a.itct=b.Vi;return a};
h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):yM.N.getCurrentTime.call(this)};
h.Eh=function(a){return a?x9(this.app,a):yM.N.Eh.call(this)};
h.jf=function(){var a=this.app.getVideoData(),b=wq(this.app),c=PM(this.app.Ra),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.Eh(),k=wq(this.app,void 0);if(k)var m=KI(k.A),k=(0,window.isNaN)(m)?k.getCurrentTime():m;else k=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:f,loaded:k,seekableEnd:qM(b,!0),seekableStart:Sx(b.o)}};
h.wn=function(a){return p9(this.app,a)};
h.canPlayType=function(a){return this.app.canPlayType(a)};
h.CF=function(a,b){w9(this.app,a,this.playerType,b)};
h.uF=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.o&&b.Ha){var c=b.o.o[b.B.id];c&&c.index?(b=c.index.If(a),c=c.index.Ge(b),a={sequence:b,elapsed:Math.floor(1E3*(a-c))}):a=null}else a=null;return a};
h.Cg=function(a){var b=this.app,c=wq(b,this.playerType);c&&b.X.Ca.contains(a.toString())&&c.B&&(b=RB(c.B,"engage"),b.B=a,b.send(void 0))};
h.Ih=function(a,b){var c=AM(this.app.D,"iv-module");c&&cG(c)&&eG(c,a,b)};
h.zF=function(a,b){var c=this.app;c.ia&&(c=c.ia,c.S&&C6(c.S,a,b))};
h.Hh=function(){return v9(this.app,this.playerType)};
h.zn=function(a){var b=this.app,c=this.playerType,d=b.ea.set_audio_track?b.ra:null;if(d)d.se("control_set_audio_track",a);else{if(c=b=wq(b,c))if(c=!b.isDisposed()&&!T(b.C,128)&&b.o.A.o)c=b.D,c.isDisposed()?a=!0:(d=c.G,a=a.id,d.D="m",d.C=d.F.o[a],d.L=IJ(d),c.U("audioformatchange",new EJ(d.L,d.B,d.D)),c.o&&!c.o.o.remove?a=!1:(jL(c,c.A,IJ(c.G)),hK(c.A),bL(c),a=!0)),c=!a;c&&(jM(b),iM(b))}};
h.Ss=function(){var a=wq(this.app,this.playerType);return a.o.A?a.o.A.audioTracks:[]};
h.wF=function(){var a=wq(this.app,this.playerType);return a&&a.getVideoData().B?Ou(EL(a.xa,a.o)):"unknown"};
h.EF=function(a,b){Z9(this.app,a,b)};
h.tF=function(){var a=AM(this.app.D,"fresca");a&&a.C.C()};
h.GF=function(){var a=this.app.ia;a.ua=!1;a.tg()};
h.AF=function(){var a=this.app.ia;a.ua=!0;a.tg()};
h.yF=function(){return HL(this.app.W())};
h.FF=function(){return this.app.W().experiments.ga("send_presence_signal_vis_desktop")};
h.Ts=function(a){return CF(this.app.G,a)};
h.DF=function(a){this.app.W().enableSafetyMode=a};
h.SD=function(a){Ch();V9(this.app,a?2:0)};
h.uo=function(){var a=wq(this.app),b=a.X.experiments.ga("disable_html5_stopvideo_cancel_requests");a.pauseVideo(b);a.D&&(a.D.K=!0,b||TK(a.D));if(a=AM(this.app.D,"endscreen"))a=My(a)?!!a.A.F.D:!1,a&&DM(this.app.Ra,!0)};
h.Zj=function(){var a=this.app.W();!a.experiments.ga("disable_new_pause_state3")&&Cy(a)&&"blazer"!=a.o?this.uo():yM.N.Zj.call(this)};B(zM,yM);h=zM.prototype;h.xn=function(a,b,c){this.Bg(vJ(a,b,c))};
h.Da=function(){return DF(this).element};
h.W=function(){return this.app.W()};
h.Ec=function(){return this.app.C};
h.getVideoData=function(a){return(a=wq(this.app,a||this.playerType))&&a.getVideoData()};
h.Pa=function(){return this.app.W().Zf};
h.addEventListener=function(a,b,c){this.app.L.subscribe(a,b,c)};
h.removeEventListener=function(a,b,c){Ce(this.app.L,a,b,c)};
h.U=function(a,b){this.W().experiments.ga("publish_internal_events_externally")||!this.W().$a||"videodatachange"!=a&&"audiotrackchanged"!=a&&"resize"!=a&&"cardstatechange"!=a||this.app.ca.U.apply(this.app.ca,arguments);this.app.L.U.apply(this.app.L,arguments)};
h.Ea=function(a,b){this.W().experiments.ga("publish_internal_events_externally")||this.app.ca.U.apply(this.app.ca,arguments);this.app.L.U.apply(this.app.L,arguments)};
h.Yj=function(a){w9(this.app,a,this.playerType)};
h.vn=function(a){return z9(this.app,a)};
h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2==e;d&&f&&(f=!1,e=1);d=this.getVideoData(e);var k;a||d.Ha||(k=Math.floor(this.getCurrentTime(e)));return this.app.W().getVideoUrl(d.videoId,f?void 0:this.De()||void 0,k,b,c)};
h.Ih=function(a,b){var c=AM(this.app.D,"iv-module");c&&eG(c,a,b)};
h.Cg=function(a,b){var c=this.app,d=wq(c,this.playerType);d&&c.X.Ca.contains(a.toString())&&d.B&&(c=RB(d.B,"engage"),c.B=a,c.send(b))};
h.ib=function(a,b){R9(this.app,a,b||this.playerType)};
h.uj=function(a){var b=wq(this.app,this.playerType);b&&b.uj(a)};
h.Ab=function(a,b,c){return $9(this.app,a,b,c,!0)};
h.Fh=function(a){return a$(this.app,a,!0)};
h.Ee=function(a,b,c){return $9(this.app,a,b,c,!0)};
h.Gh=function(a,b){t9(this.app,a,b)};
h.setVolume=function(a){a=le(Math.floor(a),0,100);U9(this.app,{volume:a,muted:this.Fc()},!0)};
h.mute=function(){U9(this.app,{muted:!0,volume:this.Fb()},!0)};
h.unMute=function(){U9(this.app,{muted:!1,volume:Math.max(5,this.Fb())},!0)};B(WM,vq);h=WM.prototype;h.Ya=function(){return!!this.o.getVideoData().spacecastModule};
h.create=function(){WM.N.create.call(this);var a;a:{var b=cj("yt-accelerator-discover"),b=b&&b.addrmap||{};for(a in b){var c=b[a];if(c.active&&(c=c.last_probe_tstamp,!(c&&12E5<Date.now()-c))){a="//"+a;break a}}a=null}this.A=a;this.load()};
h.destroy=function(){WM.N.destroy.call(this);this.A=null};
h.load=function(){WM.N.load.call(this);if(this.A){var a=this.o.getVideoData().videoId,b=K();oba(this.A,a,y(this.Ay,this,a,b))}else zq(this)};
h.od=function(a){switch(a){case "getVideo":a=this.o.getVideoData();var b=!!(a&&Tx(a)&&a.B&&a.B.video.o);return{docid:a.videoId,isFastLoad:b}}};
h.Ay=function(a,b,c){if(this.A){b=K()-b;var d=!1,e=this.o.getVideoData(),f="unknown",k=SM(c);e.nk=Wb(k);if(c){c.status&&(f=c.status);if(k=TM(this.A,c,e.adaptiveFormats))e.spacecastAdaptiveFormats=k;if(c=TM(this.A,c,e.ug))e.spacecastFormatMap=c;if(k||c)Ox(e,this.o.W()),e.P||mba(this.o),d=Ou(e.rh),this.o.Yj(d),d=!0}(c=2==this.o.getPresentingPlayerType())&&!d?vd(function(){var a=this.o.app;a.J&&a.J.F&&(a=a.J,a.D&&(a=a.C?a.C.C:a.B.A.o,null!=a&&a.bk()))},this):zq(this);
Ji("yt-spacecast-cache-watch-video-cached",a,d);iq("/gen_204?"+ef({a:"spacecast",module:"player",status:f,docid:a,cached:d?1:0,"cache-latency":b,isAd:c?1:0}),void 0)}};B(XM,vq);h=XM.prototype;h.Ya=function(){return YM(this.o)};
h.create=function(){XM.N.create.call(this);var a=new rq(1E3,0x7ffffffffffff,{priority:0});this.ib([a]);this.o.addEventListener("heartbeatparams",this.ht,this);this.o.addEventListener("presentingplayerstatechange",this.jt,this)};
h.destroy=function(){cN(this);XM.N.destroy.call(this);this.o.removeEventListener("heartbeatparams",this.ht,this);this.o.removeEventListener("presentingplayerstatechange",this.jt,this)};
h.Zb=function(){this.H=!0;$M(this,2E3)};
h.ht=function(a){this.B=a;$M(this,2E3)};
h.jt=function(a){T(a.state,2)||T(a.state,64)?cN(this):(T(a.state,1)||T(a.state,8))&&$M(this,2E3)};
h.ND=function(){var a,b,c=this.o.W(),d=this.o.getVideoData();b=c.baseYtUrl;T(fA(this.o),4)?this.A=window.NaN:ZM(this)?(Px(d)?(a="GET",b=gf(this.B.url,{request_id:ew()}),d.L&&(b=gf(b,{vvt:d.L})),d.oauthToken&&(b=gf(b,{access_token:d.oauthToken}))):(a="GET",c=c.A,b=gf(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.L,access_token:d.oauthToken})),b=gf(b,{cpn:d.clientPlaybackNonce}),tj(b,{format:"RAW",method:a,timeout:3E4,tb:y(this.xz,this),
onError:y(this.wz,this),Od:y(this.yz,this),withCredentials:!0})):cN(this)};
h.xz=function(a){if(this.A){a=a.responseText;var b;b=(b=bN(a))?"ok"==b.status?0:"stop"==b.status?1:-1:(b=a.match(A$))?"0"==b[1]?0:1:-1;if(-1==b)aN(this,"decode");else if(this.C=0,this.A=window.NaN,1==b){this.D=!1;b="YTP_ERROR_LICENSE";var c=bN(a);c?a=c.reason||Q(b):((a=a.match(A$))&&(a=(0,window.parseInt)(a[1],10))&&(b=Xy(a)),a=Q(b));PL(this.o.app.A,"heartbeat",a,void 0)}else this.D=!0,$M(this)}};
h.wz=function(a){aN(this,"net-"+a.status)};
h.yz=function(){aN(this,"timeout")};
var A$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;B(eN,vq);h=eN.prototype;h.Ya=function(){return fN(this.o)};
h.create=function(){eN.N.create.call(this);this.load()};
h.load=function(){eN.N.load.call(this);this.o.addEventListener("resize",this.Bn,this);var a=this.o.getVideoData().videoId;this.B&&this.B.abort();a={$b:y(this.cB,this,a),Tc:{v:a}};"embedded"==this.o.W().Ba&&(a.Tc.ptype="embedded");var b=this.o.getVideoData().C.iv_endscreen_url;b&&(this.B=tj(b,a))};
h.unload=function(){hN(this,null);this.o.removeEventListener("resize",this.Bn,this);this.B&&(this.B.abort(),this.B=null);eN.N.unload.call(this)};
h.od=function(a,b){if(!gN(this.o.W().o))return null;switch(a){case "loadCustomEndscreenJson":var c=new dN(b);hN(this,c);return!0;case "unloadCustomEndscreenJson":return hN(this,null),!0}return null};
h.cB=function(a,b){var c=this.B=null;if(200==b.status){var d=b.responseText;")]}"==d.substring(0,3)&&(d=d.substring(3),c=new dN(JSON.parse(d)))}hN(this,c)};
for(var B$=[346,426,470,506,570,640,853,1280,1920],C$=[],D$=0;D$<B$.length;D$++)C$.push("ytp-ce-size-"+B$[D$]);var Yoa=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"];h=eN.prototype;
h.Bn=function(){if(this.D&&this.D.elements){var a=this.o.Ts(),b=a.width,c=a.height,d=b/c,e;e=null;for(var f=-1,k=0;k<B$.length;k++){var m=Math.abs(b-B$[k]);if(-1==f||e>=m)f=k,e=m}e=C$[f];for(f=0;f<this.D.elements.length;++f){var m=this.D.elements[f].id,k=this.A[m],l=this.H[m],n=l.width*d/l.aspectRatio,m=Math.round(n*c),t=a.left+Math.round(l.left*b),u=a.top+Math.round(l.top*c);kr(k.element,Math.round(l.width*b),m);$q(k.element,t,u);ce(k.element,Yoa);L(k.element,[["ytp-ce-top-left-quad","ytp-ce-top-right-quad"],
["ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"]][Math.round(l.top+n/2)][Math.round(l.left+l.width/2)]);ce(k.element,C$);L(k.element,e);(k=Mg("div","ytp-ce-expanding-overlay-body",k.element)[0])&&Uq(k,"height",m+"px")}}};
h.Zb=function(a){eN.N.Zb.call(this,a);if("ytp-ce-in-endscreen"==a.getId())lN(this,this.D.impressionUrls);else{var b=a.getId().substring(15);a=this.A[b];b=this.H[b];L(a.element,"ytp-ce-element-show");a.element.removeAttribute("aria-hidden");lN(this,b.impressionUrls)}};
h.kc=function(a){if("ytp-ce-in-endscreen"!=a.getId()){var b=a.getId().substring(15),b=this.A[b];be(b.element,"ytp-ce-element-show");b.element.setAttribute("aria-hidden",!0);eN.N.kc.call(this,a)}};
h.Eq=function(a,b){if(!b||!b.keyCode||13==b.keyCode){for(var c=b.target;c&&!Zd(c,"ytp-ce-element");){Zd(c,"subscribe-label")&&lN(this,a.clickUrls);if(Zd(c,"ytp-ce-channel-subscribe"))return;c=lh(c)}b.preventDefault();b.stopPropagation();b.ctrlKey||b.metaKey||"new"==a.H?(lN(this,a.clickUrls),this.o.pauseVideo(),this.Ys(a.o,a.B,"_blank")):(c=y(this.Ys,this,a.o,a.B,"_top"),lN(this,a.clickUrls,c))}};
h.Zs=function(a){lN(this,a.D);kN(this,a.id,!0)};
h.$s=function(a){kN(this,a.id,!1)};
h.Ys=function(a,b,c){yy(a,b);zy(a,c)};B(mN,vq);h=mN.prototype;h.Ya=function(){return Wx(this.o.getVideoData(),"ypc_clickwrap_module")};
h.create=function(){mN.N.create.call(this);this.load()};
h.load=function(){mN.N.load.call(this);this.A=new R(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",Q("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.o.getVideoData().C.ypc_clickwrap_message],["button",["ytp-ypc-clickwrap-confirm","ytp-button"],Q("YTP_YPC_START_RENTAL_BUTTON")]]);Br(this.o,this.A.element,4);I(this,this.A);this.B=this.A.sa["ytp-ypc-clickwrap-confirm"];this.A.T(this.B,"click",this.MA,this)};
h.unload=function(){mN.N.unload.call(this);Sl(this.B);Jq(this.A);this.A.dispose();this.A=null};
h.MA=function(){zq(this);this.destroy()};nN.prototype.o=function(a,b){var c=Math.pow(this.D,a);this.A=b*(1-c)+c*this.A;this.C+=a};
nN.prototype.B=function(){return this.A/(1-Math.pow(this.D,this.C))};oN.prototype.o=function(a,b){pN(this,"index");this.C.push({index:this.J++,weight:a,value:b});this.A+=a;for(pN(this,"index");this.A>this.G;){var c=this.A-this.G,d=this.C[0];d.weight<=c?(this.A-=d.weight,this.C.shift()):(this.A-=c,d.weight-=c)}};
oN.prototype.B=function(){return this.F?(qN(this,this.D-this.F)+qN(this,this.D)+qN(this,this.D+this.F))/3:qN(this,this.D)};rN.prototype.o=function(a,b){this.A.push(b);this.A.length>this.C&&this.A.shift()};
rN.prototype.B=function(){return qe.apply(null,this.A)};B(yN,G);yN.prototype.Vw=function(a){if(this.A){var b;var c=na(a);b=this.F[c];if(!b)if(this.A){if(b=a(this.A)){a=this.F[c]=b;for(var d in this.G)a.subscribe(d,this.G[d]);I(this,b)}}else b=null;b&&b.Ya(this.A)&&!jb(this.o,b)&&(b.create(),this.o.push(b),jb(this.D,b.va)&&(b.G=this.H,b.gj(!!b.G)))}};
yN.prototype.J=function(a,b){F(this.o,function(c){c.U(a,b)})};
yN.prototype.isAvailable=function(a){a=AM(this,a);return!(!a||!a.ea)};DN.prototype.getMessage=function(){return this.C};
DN.prototype.getErrorCode=function(){return this.o};
DN.prototype.getType=function(){return this.D};
DN.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.B?" Caused by: "+this.B:"")};B(EN,jc);EN.prototype.getError=function(){return this.B};var l1="adMetadata click companionBackfill complete durationChange firstquartile impression loaded log midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked volumeChange vpaidEvent youTubeChannelMetadata".split(" "),E$="abandon acceptinvitation acceptinvitationlinear click close collapse companionClick complete creativeview engagedview exitfullscreen expand externalActivityEvent firstquartile fullscreen instreamAdComplete measurable_impression midpoint mute MUTE_AD pause progress replay resume rewind show_ad skipshown skip start stop thirdquartile unmute userClose video_card_endcap_action video_card_endcap_collapse video_card_endcap_dismiss video_card_endcap_impression videoShareClicked videoShareShown viewable_impression why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),
Zoa="acceptinvitation click close collapse creativeview expand progress".split(" "),F$=["viewable_impression","measurable_impression","externalActivityEvent"],G$={measurable_impression:"measurable_impression",viewable_impression:"viewable_impression",fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};B(FN,jc);FN.prototype.getAd=function(){return this.B};
var xha={UH:"adCanPlay",CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",TN:"videoClicked",Pn:"engagedview",bK:"expandedChanged",STARTED:"start",Vh:"impression",Rn:"measurable_impression",co:"viewable_impression",Qn:"fully_viewable_audible_half_duration_impression",cK:"externalActivityEvent",PAUSED:"pause",KM:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",VJ:"durationChange",
GI:"autoClose",USER_CLOSE:"userClose",USER_RECALL:"userRecall",tM:"prefetched",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",aw:"skipshown",XK:"linearChanged",aN:"skippableStateChanged",VH:"adMetadata",TH:"adBreakReady",fL:"log",VOLUME_CHANGED:"volumeChange",$N:"mute",kJ:"companionBackfill",kO:"youTubeVideoMetadata",jO:"youTubeChannelMetadata",NN:"urlNavigationRequested",CN:"trackingUrlPinged",PN:"video_card_endcap_action",QN:"video_card_endcap_collapse",RN:"video_card_endcap_dismiss",
SN:"video_card_endcap_impression",gO:"why_this_ad_url",fO:"why_this_ad_got_it",PL:"MUTE_AD",nJ:"companionInitialized",mJ:"companionImpression",lJ:"companionClick"};var cO={tv:5E3,uv:15E3,Sv:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com www.google.com/pagead/sul www.youtube.com/pagead/sul".split(" "),Tv:/\bocr\b/,Kk:0,Pd:{},Sr:function(a,b){a&&(cO.Sp(a)?cO.Tr(a,b):cO.Pr(a,b))},
Sp:function(a){return C(E(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new N(a)).Xe().match(cO.Tv)?!0:null!=eb(cO.Sv,function(b){return null!=a.match(b)})},
Tr:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?cO.Pp(function(b){cO.Nr(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):cO.Nr(c)}},
Nr:function(a){var b=O("iframe",{src:a,style:"display:none"});a=Jg(b).body;var c,d=Ud(function(){$c(c);dh(b)},cO.uv);
c=Yc(b,["load","error"],function(){Ud(function(){Vd(d);dh(b)},cO.tv)});
a.appendChild(b)},
Pp:function(a,b){var c=cO.Pd.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete cO.Pd[c];d||(d=!0,null!=cO.Pd.imageLoadingEnabled||(cO.Pd.imageLoadingEnabled=b),a(b))};
b?b(c):cO.Bz(c)}},
Bz:function(a){var b=new window.Image,c,d=""+cO.Kk++;cO.Pd[d]=b;b.onload=function(){(0,window.clearTimeout)(c);a(!0,d)};
c=(0,window.setTimeout)(function(){a(!1,d)},300);
b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},
OD:function(a){if(a){var b=window.document.createElement("OBJECT");b.data=a;b.width=1;b.height=1;b.style.visibility="hidden";var c=""+cO.Kk++;cO.Pd[c]=b;b.onload=b.onerror=function(){delete cO.Pd[c]};
window.document.body.appendChild(b)}},
Or:function(a){if(a){var b=new window.Image,c=""+cO.Kk++;cO.Pd[c]=b;b.onload=b.onerror=function(){delete cO.Pd[c]};
b.src=a}},
Pr:function(a,b){a&&(b?cO.Pp(function(b){b?cO.Or(a):cO.OD(a)}):cO.Or(a))},
yO:function(a){null!=a&&F(a,function(a){cO.Sr(a)})}};var KN=new function(){this.A="always";this.D=1;this.o=!1;this.C=!0;this.H=!1;this.F=!0;this.G=null};var tW=["ADSENSE","ADSENSE/ADX"],Eea=["DART","DART_DFA","DART_DFP"],Oea=["FREEWHEEL","YT:FREEWHEEL"],CV=["SHOPPING","YT:SHOPPING"],KV=["GDFP"],Dea=["VIRAL","ADSENSE-VIRAL"],SU={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},O_={tL:"video/mp4",vL:"video/mpeg",iL:"application/x-mpegURL",VL:"video/ogg",oN:"video/3gpp",bO:"video/webm",sL:"audio/mpeg",
uL:"audio/mp4"};LN.prototype.getId=function(){return this.A};MN.prototype.getId=function(){return this.B};var PN=null;var uda=["*.googlesyndication.com","gcdn.2mdn.net"],Mba=["*.youtu.be","*.youtube.com"],Pba="ad.doubleclick.net bid.g.doubleclick.net corp.google.com ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),Oba=["c.googlesyndication.com"],
$oa=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];eO.prototype.getErrorCode=function(){return this.errorCode};
eO.prototype.getMessage=function(){return this.message};
var Vga=new eO("Unable to request ads from server. Cause: {0}.",1005),apa=new eO("Unable to request ads from server due to network error.",1012),$W=new eO("Cannot parse the {0} value for the adslist response: {1}.",900),D_=new eO("Invalid usage of the API. Cause: {0}",900),H_=new eO("Unable to display one or more required companions.",602),bpa=new eO("There was a problem requesting ads from the server.",1005),Lga=new eO("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",
1013),cZ=new eO("The provided ad type: {0} is not supported.",1005),KS=new eO("The provided {0} information: {1} is invalid.",1101),cpa=new eO("The provided skip offset was invalid.",1105),dpa=new eO("The extension contained is neither skippable nor nonskippable.",1105),FY=new eO("The response does not contain any valid ads.",1009),epa=new eO("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),ffa=new eO("The ad playlist response was malformed or empty.",
1010),aX=new eO("The ad response was not understood and cannot be parsed.",1010),Oga=new eO("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),fpa=new eO("The ad response contains unexpected element. Cause {0}.",1010),UZ=new eO("No assets were found in the VAST ad response.",200),lea=new eO("Duplicate node in <{0}>: {1}",101),GY=new eO("The VAST response document is empty.",1009),wha=new eO("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
403),MZ=new eO("Ad request reached a timeout.",301),HY=new eO("VAST response was malformed and could not be parsed.",100),H$=new eO("VAST media file loading reached a timeout of {0} seconds.",402),FZ=new eO("Ad request could not be completed due to a network error.",301),gpa=new eO("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),Iga=new eO("The maximum number of VAST wrappers ({0}) has been reached.",302),hpa=new eO("VAST media file duration differs from the VAST response duration by {0} seconds.",
202),B0=new eO("Video player received an ad with unexpected or incompatible linearity",201),kea=new eO("Unknown node in <{0}>: {1}",101),Nfa=new eO("Invalid VAST resource type: {0}",101),ega=new eO("Invalid VAST version",102),Jga=new eO("No additional VAST wrappers allowed.",300),EZ=new eO("No Ads VAST response after one or more Wrappers",303),G0=new eO("There was an error playing the video ad.",400),$fa=new eO("VMAP unsupported node in <{0}>: {1}",1010),W0=new eO("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",
901);var I$="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var qO={},rO="",PR=/OS (\S+) like/,vO=/Android ([\d\.]+)/;ba(xO);xO.prototype.o=function(a,b,c){if(this.A||c){b=b||{};b.lid=a;a=UN(QN());C(E(a))||(b.e=a);b=Sba(this,b);var d=new N("http://pagead2.googlesyndication.com/pagead/gen_204");Ob(b,function(a,b){yf(d,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},this);
a=yO();of(d,a.C);aO(d.toString())}};h=zO.prototype;h.zw=!1;h.mo=!1;h.po=!0;h.baseYouTubeUrl=null;h.bitrate=-1;h.contentId=null;h.$w=!1;h.$g=null;h.surveyCreativeData=null;h.nE=!0;h.Ym=!1;h.oE=!1;h.useShareButton=!1;h.Zm=!1;h.useStyledNonLinearAds=!1;h.useVideoAdUi=!0;h.pE=!0;h.uk=!1;h.ax=!1;h.youTubeAdNamespace=0;h.showContentThumbnail=!0;h.Xm=!1;h.fg=null;h.loadVideoTimeout=15E3;h.qo=!0;h.vr=0;h.um=-1;window.console&&"function"===typeof window.console.log&&y(window.console.log,window.console);BO.prototype.toString=function(){function a(a){a=dc(c,a);null!=a?b.push(""+a):b.push("u")}
var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};var IO=null;EO.prototype.getValue=function(){return this.o};
EO.prototype.Cc=function(){return this.B?this.A():""};
EO.prototype.A=function(){return String(this.o)};
B(FO,EO);FO.prototype.A=function(){return this.o?"1":"0"};
B(GO,EO);GO.prototype.A=function(){return this.o?Math.round(this.o.top)+"."+Math.round(this.o.left)+"."+(Math.round(this.o.top)+Math.round(this.o.height))+"."+(Math.round(this.o.left)+Math.round(this.o.width)):""};
DO.prototype.setItem=function(a){this.o[a.D]=a};
DO.prototype.getItem=function(a){return dc(this.o,a,null)};
DO.prototype.Cc=function(a){var b=[];a||(a=0);for(var c in this.o){var d=this.o[c];d instanceof FO?d.getValue()&&(a|=d.C):(d=this.o[c].Cc())&&b.push(c+d)}b.push("eb"+String(a));return b.join("_")};h=NO.prototype;h.remove=function(a){cc(this.o,a)};
h.set=function(a,b){this.o[a]=b};
h.get=function(a){return dc(this.o,a,null)};
h.extend=function(a){hc(this.o,a)};
h.Cc=function(){var a=[],b;for(b in this.o)a.push(b+this.o[b]);return a.join("_")};PO.prototype.Cc=function(){var a=[],b=Number(this.o.get("eb"));this.o.remove("eb");var c=this.o.Cc();c&&a.push(c);this.A&&(c=this.A.serialize())&&a.push(c);(c=this.B.Cc(b))&&a.push(c);this.o.set("eb",b);return a.join("_")};new Sd(200);var J$={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},eR={$n:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",Vv:"resume",SKIPPED:"skip",co:"viewable_impression",Jv:"mute",kw:"unmute",FULLSCREEN:"fullscreen",cv:"exitfullscreen",Qn:"fully_viewable_audible_half_duration_impression",Rn:"measurable_impression",xu:"abandon",Pn:"engagedview",Vh:"impression",Tu:"creativeview",LOADED:"loaded"},
Yca="start firstquartile midpoint thirdquartile resume loaded".split(" "),Eca=["abandon"],fR={UNKNOWN:-1,$n:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,Vv:7,SKIPPED:8,co:9,Jv:10,kw:11,FULLSCREEN:12,cv:13,Qn:14,Rn:15,xu:16,Pn:17,Vh:18,Tu:19,LOADED:20},hR={v:"v",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",ps:"ps",pt:"pt",vht:"vht",mut:"mut",a:"a",ns:"ns",ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",uac:"uac",vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",
swf:"swf",px:"px",fm:"sfm",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",mmct:"mmct",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",dtos:"dtos",vmdtos:"vmdtos",dtoss:"dtoss",dom:"dom",fmf:"fmf",ven:"ven",veh:"veh",vds:"vds",is:"is",ic:"ic",c:"c",mc:"mc",lte:"lte",tth:"tth"},jda={gmm:"gmm",j:"dom"},ida={c:QO("c"),at:"at",atos:UO("atos",[0,2,4]),ta:RO(),a:"a",dur:"dur",p:"p",tos:TO(),j:"dom",mtos:UO("mtos",[0,2,4]),gmm:"gmm",ss:QO("ss"),
vsv:hd("w1"),t:"t"},kda={vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",vmdtos:"vmdtos",tcm:"tcm",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",bt:"bt",pst:"pst",nmt:"nmt",mmct:"mmct",c:QO("c"),at:"at",atos:UO("atos",[0,2,4]),avt:UO("atos",[2]),dav:"dav",ta:RO(),a:"a",dur:"dur",p:"p",tos:TO(),j:"dom",mtos:UO("mtos",[0,2,4]),gmm:"gmm",ss:QO("ss"),vsv:hd("w1"),t:"t"},kQ={XN:1,AI:2,yI:4,FULLSCREEN:8,II:16,HI:32,zI:64,wJ:128,dM:256};var Qca=/https?:\/\/[^\/]+/;aP.prototype.o=function(a,b,c,d,e){var f={};f.context=a;b instanceof bP||(b=cP(b));f.msg=b.message.substring(0,512);b.fileName&&(f.file=b.fileName);0<b.lineNumber&&(f.line=b.lineNumber.toString());a=aa.document;f.url=a.URL.substring(0,512);f.ref=(a.referrer||"").substring(0,512);if(d)try{d(f)}catch(m){}d=this.D;try{if(Math.random()<(c||d.A)){var k=d.o+(e||this.C)+("&"+ZO(f,1)),k=k.substring(0,2E3);$O(aa,k)}}catch(m){}return this.A};var jP=window.document,W=window;var eP;eP=new aP(new function(){this.o="http"+("http:"===W.location.protocol?"":"s")+"://pagead2.googlesyndication.com/pagead/gen_204?id=";this.A=.01},"jserror",!0);
var zR=eP.o;var K$=!1,L$="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(K$=!0,a.description)){L$=lP(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){K$=!0;L$="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(a=window.navigator.mimeTypes["application/x-shockwave-flash"],K$=!!a&&a.enabledPlugin)){L$=lP(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");K$=
!0;L$=lP(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");K$=!0;L$="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),K$=!0,L$=lP(b.GetVariable("$version"))}catch(c){}})();
var WT=K$,BP=L$;if(jP&&jP.URL){var WO=jP.URL,ipa=!(WO&&0<Xba().length);eP.A=ipa};var yP={},zP=null;yP.le=0;yP.nt=2;yP.Fr=3;var sQ=0,bca=(new Date).getTime(),rP=-1,tP=!1,uP=-1,vP=-1;yP.Po=5;yP.me=1;yP.om=4;DP.prototype.getStatus=function(){return this.o};
B(GP,DP);var KP={IN:-1,LOADING:0,lv:1,Pu:2,wv:3,VISIBLE:4},lca={LOADING:0,lv:1,Pu:2,uN:3,UL:4,FN:5,GN:6,EN:7,XL:8,tN:9},NP={};h=HP.prototype;h.Lp=function(a,b){if(!this.module)return!1;this.module.style.position="absolute";this.setPosition(b);var c=!0;try{a.appendChild(this.module)}catch(d){c=!1}return c};
h.Kp=function(a,b){if(!this.module||!a.parentNode)return!1;this.module.style.position="fixed";this.setPosition(b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.module,a.nextSibling)}catch(d){c=!1}return c};
h.setPosition=function(a){this.module&&!se(a,ar(this.module))&&$q(this.module,a)};
h.remove=function(){if(this.module)try{dh(this.module)}catch(a){}this.module=null};
h.$x=function(a){this.A=a?3:4};
q("gteh",gP("osd_or_lidar::gteh_ex",function(a,b){var c=NP[a];ha(c)&&c(b)}),void 0);
var qca={wv:0,VISIBLE:1},jpa=new re(-99999,0);QP.prototype.Z=function(){var a=SP(this);if(null===a)UP(this);else if(null===this.B)this.B=a,UP(this);else{var b=a-this.B;this.B=a;0==(4<=b?1:0)?(UP(this),RP(this,0)):(this.o.setPosition(jpa),this.G=W.setTimeout(hP("osd_or_lidar::sfm_cpto",y(this.Y,this)),125))}};
QP.prototype.Y=function(){var a=SP(this),b=a-this.B;this.B=a;a=4<=b?1:0;UP(this);RP(this,0==a?1:0)};
B(WP,DP);WP.prototype.K=function(){var a=sca(this);this.A!=a&&(this.A=a,this.H(a))};ba(qP);var $P=new te(0,0,0,0);h=bQ.prototype;
h.Ae=function(a,b,c,d,e,f,k){k=this.Xo(c,k||{});var m=null;ga(b)?this.C=this.Mg(b):(m=b,this.C=this.Mg(a,m));f&&(this.wd=Math.max(this.wd,this.C));f=iP(jP);this.ea=0==f?-1:1==f?0:1;f=eQ(this.C);ga(b)||(this.Zd=m.right-m.left,this.Yd=m.bottom-m.top);this.Vm(f,k,this.ca,e,d,m);this.ca=d?-1:f;this.D=c;-1!=f&&0>this.Di&&(this.Di=c);-1==this.Ki&&this.ne()&&(this.Ki=c);-2==this.ud&&(this.ud=a!=$P&&0!=this.area&&this.Yd&&this.Zd?this.Mg(a,new te(0,this.Zd,this.Yd,0)):-1);this.uf(this)};
h.Xo=function(a){a=a-this.D||1;return 1E4<a?1:a};
h.Mg=function(a,b){if(!ga(a)&&p(b)){var c;c=null===a||null===b?$P.clone():new te(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left));return 0>=this.area||0>=c.getWidth()||0>=c.getHeight()?0:(c.bottom-c.top)*(c.right-c.left)/this.area}return ga(a)?a:0};
h.Wm=function(a,b){this.Td[a]+=b};
h.Tm=function(a,b){this.Y[a]+=b;this.Y[a]>this.ab[a]&&(this.ab[a]=this.Y[a])};
h.zm=function(a){this.Y[a]=0};
h.Vm=function(a,b,c,d,e,f){var k=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?k:c;-1!=c&&this.Wm(c,b);f=f||null;d=-1!=c&&2>=c;f?(d&&-1!=this.xa&&(this.Le[this.xa]+=b),f=100*this.area/((f.bottom-f.top)*(f.right-f.left)),this.xa=20<=f?0:10<=f?1:5<=f?2:2.5<=f?3:4):this.xa=-1;for(f=c;0<=f&&4>=f;f++)this.Tm(f,b);for(f=0;4>=f;++f)(f<a||e||-1==a)&&this.zm(f)};
h.Rl=function(){return!1};
h.ne=function(){return!1};B(mQ,bQ);h=mQ.prototype;
h.Ae=function(a,b,c,d,e,f,k){k=k||this.Pb(this)||{};this.M=k.duration||this.M;this.sd=k.isVpaid||this.sd;this.ia=f;this.P=k.volume;nQ(this.P)||(this.Wp++,nQ(this.K)&&(this.P=this.K));mQ.N.Ae.call(this,a,b,c,d,e,f,k);-1==this.qb&&this.Wd&&(this.qb=this.wb);(a=this.ne())&&lQ(this.H,1);nQ(this.K)&&lQ(this.H,2);this.la&&lQ(this.H,4);this.G&&lQ(this.H,8);-1!=this.ea&&(lQ(this.H,16),1==this.ea&&lQ(this.H,32));this.la&&a&&lQ(this.H,64);this.ia&&lQ(this.H,128);this.ia&&0<this.C&&lQ(this.H,256)};
h.Xo=function(a,b){var c=p(b.currentTime)?b.currentTime:this.Fa,d=oQ(this,a),e=c-this.Fa,f=b.isYouTube,k=p(b.isPlaying)?b.isPlaying:!0;2!=this.bb?(0<=e?(this.ha+=Math.max(d-e,0),this.fa=Math.min(e,d)):(this.Bd+=Math.abs(e),this.fa=0),-1==this.ua&&0<e&&(this.ua=0<=vP?sP()-vP:-1)):(k||this.La||(this.ha+=d),-1==this.ua&&k&&(this.ua=0<=vP?sP()-vP:-1));this.Fa=c;if(f){if(1==this.bb)return this.fa;if(2==this.bb)return k?d:0}return oQ(this,a)};
h.Mg=function(a,b){return this.tf?0:this.G?1:mQ.N.Mg.call(this,a,b)};
h.Wm=function(a,b){mQ.N.Wm.call(this,a,b);this.zd[a]+=this.fa;2>=a&&(this.Na+=b,this.da+=this.fa)};
h.Tm=function(a,b){mQ.N.Tm.call(this,a,b);this.na[a]+=this.fa;this.na[a]>this.yd[a]&&(this.yd[a]=this.na[a])};
h.zm=function(a){mQ.N.zm.call(this,a);this.na[a]=0};
h.Vm=function(a,b,c,d,e,f){if(!this.La){mQ.N.Vm.call(this,a,b,c,d,e,f);a=-1==c||-1==a?-1:Math.max(c,a);this.wb+=b;this.es&&(this.rd+=b,this.Ta+=b);this.es=this.G;d=d&&-1!=c&&2>=c?a:c;c=-1!=d&&2>=d;if(this.la=nQ(this.P)&&.1<=this.P&&nQ(this.K)&&.1<=this.K){this.bc+=b;for(this.Ja+=b;0<=d&&4>=d;d++)this.Ga[d]+=b;c?this.Ka+=b:this.Xa+=b}else this.Qb=!1;this.Xa>this.xd&&(this.xd=this.Xa);if(c||!nQ(this.P)||.1>this.P)this.Xa=0;b=this.P;this.K=p(b)?Number(b)?jQ(b,3):0:b}};
h.Rl=function(){return!0};
h.ne=function(){return 2E3<=Math.max(this.Y[2],this.ab[2])};var vQ=null,xQ=null,yQ=null,AQ=null,QQ=null,uQ=!1,RQ=[],SQ=[],NQ=!1,OQ=null,JQ=0,IQ=!1,KQ=!1,Hca=!1,Gca=!1,LQ=!1,MQ=!1,GQ=kO()||lO(),Jca=0;B(TQ,Uba);TQ.prototype.reset=function(){this.o[0]=1732584193;this.o[1]=4023233417;this.o[2]=2562383102;this.o[3]=271733878;this.C=this.B=0};
TQ.prototype.update=function(a,b){p(b)||(b=a.length);for(var c=b-this.A,d=this.D,e=this.B,f=0;f<b;){if(0==e)for(;f<=c;)UQ(this,a,f),f+=this.A;if(w(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.A){UQ(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.A){UQ(this,d);e=0;break}}this.B=e;this.C+=b};var ZQ=null,aR="",$Q=!1;h=YQ.prototype;h.Yo=function(){};
h.ep=v;h.Cr=v;h.Co=v;h.lo=v;h.xl=function(a){if(a){if(!a.qf){var b=tQ(a,"start"),b=gR(b,hR),c=ZQ||W,d=[];d.push("v=429v");d.push("r=fp");d.push("efm="+(this.A?1:0));d.push("esfm="+(this.B?1:0));d.push(b);d.push(Sca(c));b="&"+d.join("&");$O(W,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3),void 0);a.qf=!0}a.Wa=!0;this.Dm(a)}};
h.uy=function(a){a.wf++;qQ(a,0);.1<=a.K&&(a.Qb=!0);return tQ(a,"start")};
h.hy=function(a){qQ(a,1);EQ([a],!rQ());return tQ(a,"firstquartile")};
h.my=function(a){qQ(a,2);a.Wd=!0;EQ([a],!rQ());return tQ(a,"midpoint")};
h.vy=function(a){qQ(a,3);EQ([a],!rQ());return tQ(a,"thirdquartile")};
h.cy=function(a){qQ(a,4);EQ([a],!rQ());var b=tQ(a,"complete");a.G=!1;cR(a.F);return b};
h.qy=function(a){return bR(a,"pause")};
h.by=function(a){return bR(a,"abandon")};
h.ry=function(a){var b=rQ();a.La&&!b&&(a.ra=sP());EQ([a],!b);a.La=!1;return tQ(a,"resume")};
h.yy=function(a){var b=tQ(a,"viewable_impression");a.Ir=!0;return b};
h.ty=function(a){var b=!rQ();EQ([a],b);b=tQ(a,"skip");a.G=!1;cR(a.F);return b};
h.oy=function(a){EQ([a],!rQ());return tQ(a,"mute")};
h.wy=function(a){EQ([a],!rQ());return tQ(a,"unmute")};
h.iy=function(a){a.G=!0;EQ([a],!rQ());return tQ(a,"fullscreen")};
h.gy=function(a){a.G=!1;EQ([a],!rQ());return tQ(a,"exitfullscreen")};
h.jy=function(a){return tQ(a,"fully_viewable_audible_half_duration_impression")};
h.ly=function(a){return tQ(a,"measurable_impression")};
h.fy=function(a){return tQ(a,"engagedview")};
h.ky=function(a){return tQ(a,"impression")};
h.ey=function(a){return tQ(a,"creativeview")};
h.wl=function(a){a.ne()&&!a.Xd&&this.Cr(a);this.Co(a)};
h.Dm=v;var kR=(new Date).getTime(),mR=!1,nR=!1,oR=!1,ada=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return lR(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return lR(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return lR(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return lR(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return lR(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return nR},
function(){return oR},
function(){return lR(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{(0,window.DummyFunction1)()}catch(b){a=!0}return a},
function(){var a=!1;try{(0,window.DummyFunction2)()}catch(b){a=!0}return a},
function(){var a=(new window.AudioContext).createBufferSource();a.detune.value=100;return 100==a.detune.value},
function(){return lR(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||jR(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return jR(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return lR(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return jR(a.CSS.supports)},
function(){return jR(window.Intl.Collator)},
function(a){return jR(a.document.createElement("dialog").show)},
function(){return lR(8)},
function(a){return jR(a.document.createElement("div").animate([{transform:"scale(1)",fx:"ease-in"},{transform:"scale(1.3)",fx:"ease-in"}],{duration:1300,wO:1}).reverse)},
function(a){return jR(a.document.createElement("div").animate)},
function(a){return jR(a.document.documentElement.webkitRequestFullScreen)},
function(a){return jR(a.navigator.getBattery)},
function(a){return jR(a.navigator.permissions.query)},
function(){return jR((new window.AudioContext).createBuffer)},
function(){return lR(9)},
function(){return jR(window.webkitRequestAnimationFrame)},
function(a){return jR(a.BroadcastChannel.call)},
function(a){return jR(a.FontFace)},
function(a){return jR(a.Gamepad)},
function(){return lR(10)},
function(a){return jR(a.MutationEvent)},
function(a){return jR(a.MutationObserver)},
function(a){return jR(a.crypto.getRandomValues)},
function(a){return jR(a.document.body.createShadowRoot)},
function(a){return jR(a.document.body.webkitCreateShadowRoot)},
function(a){return jR(a.fetch)},
function(){return lR(11)},
function(a){return jR(a.navigator.serviceWorker.register)},
function(a){return jR(a.navigator.webkitGetGamepads)},
function(a){return jR(a.speechSynthesis.speak)},
function(a){return jR(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return lR(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return lR(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof window.InstallTrigger},
function(){return"object"==typeof(new window.Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return lR(14)},
function(a){return"undefined"==typeof a.navigator.BO},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new window.Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],bda=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],cda=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];B(pR,YQ);ba(pR);h=pR.prototype;h.Yo=function(a,b){qP.getInstance();var c;b.opt_adElement?c=Wca(this,a,b.opt_adElement):(c=fda(this,a,b.opt_sdkID||""))||(c=Lca(a)||void 0);c&&c.Pb==v&&(c.Pb=y(this.lo,this));return c};
h.lo=function(a){qP.getInstance();a.o=0;a.kb=0;var b;if("as"==a.L){var c="getVideoMetadata"+a.jg;if(ha(a.element[c]))try{b=a.element[c]()}catch(e){a.o|=4}else a.o|=2}else if("h"==a.L)if(c=r("ima.common.getVideoMetadata"),ha(c))try{b=c(a.F)}catch(e){a.o|=4}else a.o|=2;else a.o|=1;a.o||(p(b)?null===b?a.o|=16:ac(b)?a.o|=32:null!=b.errorCode&&(a.kb=b.errorCode,a.o|=64):a.o|=8);null!=b||(b={});c=b;a.Ca=0;for(var d in J$)null==c[d]&&(a.Ca|=J$[d]);null!=c.currentTime||a.vf++;iR(c,"currentTime");iR(c,"duration");
return b};
h.Cr=function(a){rR(a,"viewable_impression")&&(a.Xd=!0)};
h.Co=function(a){var b=a.Ga[0];(15E3<=b||a.Wd&&(-1!=a.M?b>=a.M/2:-1!=a.qb&&b>=a.qb))&&!a.sf&&rR(a,"fully_viewable_audible_half_duration_impression")&&(a.sf=!0)};
h.ep=function(a){qP.getInstance();a.Ar||a.Wa||!rR(a,"measurable_impression")||(a.Ar=!0)};
h.wl=function(a){qP.getInstance();pR.N.wl.call(this,a)};
h.Dm=function(){qP.getInstance()};
q("Goog_AdSense_Lidar_sendVastEvent",gP("lidar::handlevastevent_ex",tR,void 0,function(){return{v:"429","if":qP.getInstance().A?"1":"0",nas:String(RQ.length)}}),void 0);
q("Goog_AdSense_Lidar_getInitSignals",fP("lidar::getinitsignals_ex",sR,void 0,void 0),void 0);q("Goog_AdSense_Lidar_getUrlSignalsArray",gP("lidar::geturlsignalsarray_ex",function(){return XQ()}),void 0);
q("Goog_AdSense_Lidar_getUrlSignalsList",gP("lidar::geturlsignalslist_ex",function(){return ge(XQ())}),void 0);B(uR,J);var vR=null;uR.prototype.destroy=function(){this.D.za(this.o,"activityMonitor",this.H);this.B=null;this.A=!1};
uR.prototype.init=function(a){if(!this.A){if(this.o=a||null)this.D.R(this.o,"activityMonitor",this.H),BR(this);if(KN.C&&!(aa.ima&&aa.ima.video&&aa.ima.video.client&&aa.ima.video.client.tagged)){q("ima.video.client.sdkTag",!0,void 0);var b=aa.document;a=b.createElement("script");var c=b.location.protocol;"http:"!=c&&"https:"!=c&&(c="");a.src=c+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";b=b.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}this.A=!0}};
uR.prototype.H=function(a){var b=a.Md,c=b.queryId,d={};d.eventId=b.eventId;switch(a.Bc){case "getPageSignals":BR(this);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);var k=null;d.viewabilityData=AR(this,e,c,a,f);this.o.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":c={},c.eventId=b.eventId,a=b.osdId,k=null,Yb(b,"isFullscreen")&&(k=b.isFullscreen),Yb(b,"loggingId")&&(b=b.loggingId,c.loggingId=
b,xO.getInstance().o(43,{step:"beforeLookup",logid:b,time:K()},!0)),c.engagementString=nda(this,a,k),this.o.send("activityMonitor","engagement",c)}};
q("ima.common.getVideoMetadata",function(a){var b=wR();a=b.K.get(a)||b.F;return ha(a)?a():{}},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=wR().o;d?d.send("activityMonitor","viewableImpression",c):wR().aa(new FN("viewable_impression",null,c))},void 0);
q("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=wR().o,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
q("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=wR().o;d?d.send("activityMonitor","measurableImpression",c):wR().aa(new FN("measurable_impression",null,c))},void 0);
q("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=wR().o)?a.send("activityMonitor","externalActivityEvent",d):wR().aa(new FN("externalActivityEvent",null,d))},void 0);
q("ima.common.updateEngagementDetectionValue",function(a){if(KN.C){var b=wR().o;if(b){var c={};c.engagementString=a;b.send("activityMonitor","engagementData",c)}}},void 0);B(DR,J);h=DR.prototype;h.PC=function(a){this.J=!0;this.A=a.touches.length;this.B&&(window.clearTimeout(this.B),this.B=0,this.M=!0);(this.H=HR(this,a.touches)||1!=a.touches.length)?this.S=this.O=window.Infinity:(this.O=a.touches[0].clientX,this.S=a.touches[0].clientY);tda(this,a.touches)};
h.OC=function(a){this.A=a.touches.length;if(!pO()||!sO(PR,8)||Math.pow(a.changedTouches[0].clientX-this.O,2)+Math.pow(a.changedTouches[0].clientY-this.S,2)>Math.pow(5,2))this.F=!0};
h.NC=function(a){this.L?this.Rk():(!this.J||1!=this.A||this.F||this.M||this.H||!HR(this,a.changedTouches)||(this.B=window.setTimeout(y(this.Rk,this),300)),this.A=a.touches.length,0==this.A&&(this.F=this.J=!1,this.C=[]),this.M=!1)};
h.np=function(){this.Rk()};
h.Rk=function(){this.B=0;this.aa(new jc("click"))};
h.V=function(){GR(this);this.D.dispose();this.D=null;DR.N.V.call(this)};B(LR,J);var Wda={RI:"beginFullscreen",CLICK:"click",XJ:"end",YJ:"endFullscreen",ERROR:"error",LOADED:"loaded",jL:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",$M:"skip",aw:"skipShown",UM:"shareClicked",$n:"start",qN:"timeUpdate",aJ:"cardsStateChange",pN:"timedMetadata",ZN:"volumeChange"};h=LR.prototype;h.up=function(){return!1};
h.ob=function(){return!0};
h.Em=v;h.yp=v;h.Dl=v;h.Ef=function(){return null};
h.zp=v;h.wp=v;B(MR,LR);h=MR.prototype;h.Kr=function(a,b,c,d){if(d&&(d=eb(a,function(a){return null!==IR(a.getUrl())}),null!==d))return d;
a=ae(a,function(a){var b=a.o,c=a.getUrl();C(E(c))||"progressive"!=a.B&&"application/x-mpegurl"!=E(b).toLowerCase()?a=!1:(b=E(b).toLowerCase(),a=C(b)||JH&&sO(vO,2.3)&&Ha(b,"application/ogg")?!1:JH&&(Ha(b,"video/mp4")||Ha(b,"video/3gpp"))||pO()&&(Ha(b,"application/x-mpegurl")||Ha(b,"application/vnd.apple.mpegurl"))?!0:!C(this.o.canPlayType(b)));return a},this);
return CR(a,b,c)};
h.il=function(){return ae(Vb(O_),function(a){return!C(this.o.canPlayType(a))},this)};
h.Jm=function(a){this.Z=0<a.o?a.o:15E3};
h.load=function(a){OR(this);this.o.src=a;this.o.load()};
h.getVideoUrl=function(){return this.o.src};
h.setVolume=function(a){this.o.volume=a};
h.Ld=function(){return this.o.volume};
h.play=function(){this.O=!1;Ud(this.o.play,0,this.o);this.J||(this.J=Ud(this.Lw,this.Z,this))};
h.pause=function(){this.O=!0;this.o.pause()};
h.Sf=function(){return this.o.paused?pO()||El?this.o.currentTime<this.o.duration:!0:!1};
h.Rf=function(){return this.o.muted};
h.El=function(){oO()&&this.o.webkitDisplayingFullscreen&&this.o.webkitExitFullscreen()};
h.ke=function(){return yR(this.o)};
h.Og=function(a){var b;a:{for(b=this.Y.Oa();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
h.Tf=function(a){this.o.currentTime=a};
h.getCurrentTime=function(){return this.o.currentTime};
h.vp=function(){return RR(this)};
h.Kd=function(){return(0,window.isNaN)(this.o.duration)?-1:this.o.duration};
h.af=function(){return this.o.ended};
h.hd=function(){return new ue(this.o.offsetWidth,this.o.offsetHeight)};
h.xp=function(){return this.o.seeking};
h.V=function(){this.Uf();this.o=null;MR.N.V.call(this)};
h.getError=function(){return this.o.error};
h.Si=function(){this.Uf();this.A=new Am(this);this.A.R(this.o,I$,this.XB);this.A.R(this.o,"canplay",this.rA);this.A.R(this.o,"ended",this.Wy);this.A.R(this.o,"webkitbeginfullscreen",this.Fl);this.A.R(this.o,"webkitendfullscreen",this.Bp);this.A.R(this.o,"pause",this.Yy);this.A.R(this.o,"playing",this.hC);this.A.R(this.o,"timeupdate",this.Zy);this.A.R(this.o,"volumechange",this.$y);this.A.R(this.o,"error",this.Ap);this.A.R(this.o,ZI||pO()&&(!pO()||!sO(PR,8))?"loadeddata":"canplay",this.xB);this.F=
new DR;this.A.R(this.F,"click",this.Vy);ER(this.F,this.o);this.G=new Sd(1E3);this.A.R(this.G,"tick",this.Xy);this.G.start()};
h.Uf=function(){null!=this.F&&(GR(this.F),this.F=null);null!=this.G&&this.G.dispose();null!=this.A&&(this.A.dispose(),this.A=null);OR(this)};
h.XB=function(a){this.aa(a.type)};
h.rA=function(){var a;if(a=qu)a=oc,a=!(a&&(Na(a,"SMART-TV")||Na(a,"SmartTV")));a&&!this.S&&(this.Tf(.001),this.S=!0)};
h.xB=function(){this.L||(this.L=!0,this.aa("loaded"))};
h.hC=function(){this.aa("play");pO()||ZI||QR(this)};
h.Zy=function(){if(!this.C&&(pO()||ZI)){if(0>=this.getCurrentTime())return;if(ZI&&this.af()&&1==this.Kd()){this.Ap();return}QR(this)}if(pO()||tO()){if(1.5<this.getCurrentTime()-this.B){this.H=!0;this.Tf(this.B);return}this.H=!1;this.getCurrentTime()>this.B&&(this.B=this.getCurrentTime())}var a=this.Y;a.o[a.A]=this.o.currentTime;a.A=(a.A+1)%a.B;this.aa("timeUpdate")};
h.$y=function(){this.aa("volumeChange")};
h.Yy=function(){var a;this.C&&pO()&&!this.O&&2>RR(this)-this.o.currentTime?(this.D=new Sd(250),this.A.R(this.D,"tick",this.nA),this.D.start(),a=!0):a=!1;a||this.aa("pause")};
h.Wy=function(){var a=SN(QN(),136961002),b=!0;if(pO()||tO()||a&&JH)b=this.B>=this.o.duration-1.5;!this.H&&b&&this.aa("end")};
h.Fl=function(){this.aa("beginFullscreen")};
h.Bp=function(){this.aa("endFullscreen")};
h.Ap=function(){NR(this);this.aa("error")};
h.Vy=function(){this.aa("click")};
h.Xy=function(){var a=this.hd(),b=this.ke();if(a.width!=this.M.width||a.height!=this.M.height)!this.K&&b?this.Fl():this.K&&!b&&this.Bp(),this.M=a,this.K=b};
h.Lw=function(){if(!this.C){try{xO.getInstance().o(16)}catch(a){}OR(this);this.aa("mediaLoadTimeout")}};
h.nA=function(){if(this.af()||!this.Sf())Mb(this.D);else{var a=this.o.duration-this.o.currentTime,b=RR(this)-this.o.currentTime;0<b&&(2<=b||2>a)&&(Mb(this.D),this.play())}};B(TR,J);SR.prototype.start=function(a){return this.o[a].startTime};
SR.prototype.end=function(a){return this.o[a].endTime};
h=TR.prototype;h.readyState=0;h.currentTime=0;h.duration=window.NaN;h.Wf=!0;h.Gp=!1;h.autoplay=!1;h.controls=!1;h.volume=1;h.muted=!1;h.src="";h.dz=1;h.playbackRate=0;h.Sd=null;h.Yi=0;h.wD=4;h.Kg=null;h.Aj=null;
h.play=function(){this.Gp&&(this.currentTime=0,this.aa("timeupdate"));this.Wf&&(this.Wf=!1,this.aa("play"),this.readyState=this.wD,2>=this.readyState?this.aa("waiting"):this.aa("playing"));if(null===this.Sd||this.Sd.isDisposed())this.Sd=new Sd(10),this.Sd.R("tick",y(this.gs,this));this.Yi=K();this.Sd.start();this.autoplay=!1};
h.pause=function(){this.autoplay=!1;this.Wf||(this.Sd.stop(),this.Wf=!0,this.aa("timeupdate"),this.aa("pause"))};
h.load=function(){this.readyState=0;this.Wf=!0;this.aa("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.A;a.o.push(new yda(this.duration));a.length=a.o.length;this.aa("loadedmetadata");0<this.currentTime&&this.aa("timeupdate");this.aa("loadeddata");this.aa("canplay");this.aa("canplaythrough");this.aa("progress");this.playbackRate=this.dz};
h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.aa("seeking");this.currentTime=c;this.aa("seeked");this.gs();break;case "duration":this.duration=Number(b);this.aa("durationchange");break;case "volume":this.volume=Number(b),this.aa("volumechange")}};
h.gs=function(){var a=K()-this.Yi,b=this.currentTime+a/1E3;this.Yi+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.aa("timeupdate");this.currentTime==this.duration&&(this.Gp=this.Wf=!0,this.Sd.stop(),this.aa("ended"))};
h.V=function(){this.Sd&&this.Sd.dispose();this.o.dispose()};
h.dD=function(a){var b=null,c=null;switch(a.type){case "loadeddata":b="Loaded";break;case "playing":b="Playing";c="#00f";break;case "pause":b="Paused";break;case "ended":b="Ended",c="#000"}b&&this.Aj&&(this.Aj.innerText=b);c&&this.Kg&&(this.Kg.style.backgroundColor=c)};Tg&&wc(8);var YR={},vS={},wS={},ZR={};UR.prototype.Dd=null;UR.prototype.getContent=function(){return this.content};
UR.prototype.toString=function(){return this.content};
B(VR,UR);B(WR,UR);var zda={};B(bS,UR);bS.prototype.ad=YR;B(dS,UR);dS.prototype.ad={};dS.prototype.Dd=1;B(eS,UR);eS.prototype.ad=vS;eS.prototype.Dd=1;B(fS,UR);fS.prototype.ad=wS;fS.prototype.Dd=1;B(gS,UR);gS.prototype.ad={};gS.prototype.Dd=1;B(hS,WR);hS.prototype.ad={};hS.prototype.Dd=1;B(iS,VR);iS.prototype.ad=ZR;var cS=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var e=new b(String(a));void 0!==d&&(e.Dd=d);return e}}(bS);
jS(dS);jS(eS);jS(fS);var Ida=jS(gS);jS(hS);var kS={},lS={},JS=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var e=String(a);if(!e)return"";e=new b(e);void 0!==d&&(e.Dd=d);return e}}(bS),tS=/['()]/g,CS={},Jda={"\x00":"&#0;",
"\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},Kda={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11",
"\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87",
"\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},Cda=/[\x00\x22\x27\x3c\x3e]/g,Eda=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,Dda=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,yS=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,
Gda=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Hda=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,oS=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,pS=/</g;mS("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+X(a.dg)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+X(a.dg)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
X(DS(a.Yc))+">"+X(a.Yc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+X(DS(a.Ne))+">"+X(a.Ne)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
mS("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+X(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
X(a.zO)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+X(a.AO)+'</div></div></div></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiBottomBarText"><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+X(DS(a.Yc))+">"+X(a.Yc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
X(DS(a.Ne))+">"+X(a.Ne)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
mS("b","",function(a){a=a||{};return""+sa("You can skip this ad in {$xSeconds}",{xSeconds:X(a.wg)})});
mS("b","redesign2014q4",function(a){a=a||{};return""+sa("You can skip to video in {$xSeconds}",{xSeconds:X(a.wg)})});B(LS,G);LS.prototype.initialize=function(){mO()&&this.A.load()};
LS.prototype.V=function(){dh(this.o);LS.N.V.call(this)};
LS.prototype.show=function(){var a=this.o;null!=a&&(a.style.display="block")};
LS.prototype.ka=function(){var a=this.o;null!=a&&(a.style.display="none")};B(OS,LR);var kpa=["video/mp4","video/webm"],lpa={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},NS=[],MS=!1;h=OS.prototype;h.Kr=function(a,b,c){var d=eb(a,function(a){return null!==IR(a.getUrl())});
if(null!==d)return d;a=ae(a,function(a){a=E(a.o);return this.o?this.A.canPlayType(a):jb(kpa,a)},this);
kb(c)||(d=CR(a,b,c));return null!=d?d:CR(a,b,[])};
h.Jm=function(a){this.B=a};
h.load=function(a,b){null!==a&&(this.Z=a,this.o?PS(this,a,b):(this.L=a,this.ca=b))};
h.getVideoUrl=function(){return this.Z};
h.setVolume=function(a){this.ea?this.aa("volumeChange"):this.o?(a=le(100*a,0,100),this.A.setVolume(a),this.G=-1,this.aa("volumeChange")):this.G=a};
h.Ld=function(){return this.o?this.A.getVolume()/100:this.G};
h.play=function(){if(!C(E(this.Z))){if(!this.C){RS(this);var a=15E3;null!=this.B&&0<this.B.o&&(a=this.B.o);this.ra=Ud(this.ZB,a,this)}this.o?(this.da=!1,!this.C&&this.B&&this.B.A?this.A.loadVideoByPlayerVars(this.la):this.A.playVideo()):this.da=!0}};
h.pause=function(){this.o&&this.C&&this.A.pauseVideo()};
h.Sf=function(){return this.o?2==this.A.getPlayerState(this.D):!1};
h.Rf=function(){return this.o?this.A.isMuted():0==this.Ld()};
h.El=function(){};
h.ke=function(){var a=KN.o?KN.B:window.document.getElementById(this.O);return a?yR(a):!1};
h.Og=function(a){return this.o?this.A.getCurrentTime(this.D)>=a:!1};
h.Tf=function(a){this.o?this.A.seekTo(a,!1):this.K=a};
h.getCurrentTime=function(){return this.o?this.A.getCurrentTime(this.D):-1};
h.vp=function(){return this.o&&this.C?this.A.getVideoLoadedFraction(this.D)*this.A.getDuration(this.D):0};
h.Kd=function(){return this.o&&this.C?this.A.getDuration(this.D):-1};
h.getError=function(){return null};
h.il=function(){return Vb(O_)};
h.af=function(){return this.o?0==this.A.getPlayerState(this.D):!1};
h.hd=function(){var a=KN.o?KN.B:window.document.getElementById(this.O);return a?new ue(a.offsetWidth,a.offsetHeight):new ue(0,0)};
h.xp=function(){return!1};
h.up=function(){return 1==this.ua};
h.ob=function(){return this.o?1==this.A.getPlayerState(this.D):!1};
h.bz=function(){var a=this.hd(),b=this.ke();if(a.width!=this.ia.width||a.height!=this.ia.height)!this.ha&&b?this.aa("beginFullscreen"):this.ha&&!b&&this.aa("endFullscreen"),this.ia=a,this.ha=b};
h.Si=function(){this.fa=y(this.Oq,this);this.M=y(this.Gl,this);this.na=y(this.Pq,this);this.Ca=y(this.AC,this);this.ea&&(this.A.addEventListener("onAdStateChange",this.M),this.A.addEventListener("onReady",this.fa),this.A.addEventListener("onStateChange",this.M),this.A.addEventListener("onVolumeChange",this.na),this.A.addEventListener("onSharePanelOpened",this.Ca));this.Y=new Sd(1E3);this.S.R(this.Y,"tick",this.bz);this.Y.start()};
h.Uf=function(){this.ea&&(this.A.removeEventListener("onAdStateChange",this.M),this.A.removeEventListener("onReady",this.fa),this.A.removeEventListener("onStateChange",this.M),this.A.removeEventListener("onVolumeChange",this.na),this.A.removeEventListener("onSharePanelOpened",this.Ca));null!=this.Y&&this.Y.dispose()};
h.Ww=function(){var a=this.O,b={playerVars:ec(lpa),events:{cardstatechange:y(this.az,this),onError:y(this.eC,this),onReady:y(this.Oq,this),onAdStateChange:y(this.Gl,this),onStateChange:y(this.Gl,this),onVolumeChange:y(this.Pq,this)}},c=r("YT");this.A=null!=c&&null!=c.Player?new c.Player(a,b):null};
h.eC=function(){this.aa("error")};
h.Oq=function(){this.o=!0;this.H&&this.Dl(this.H.videoId,this.H.Qe,this.H.sg,this.H.ti);-1!=this.G&&(this.setVolume(this.G),this.G=-1);null!=this.L&&(PS(this,this.L,this.ca),this.ca=this.L=null);-1!=this.K&&(this.Tf(this.K),this.K=-1);this.da&&this.play()};
h.az=function(a){this.ua=a.data;this.aa("cardsStateChange")};
h.Gl=function(a){switch(a.data){case 0:this.C?this.aa("end"):this.aa("error");break;case 1:this.C||(RS(this),this.C=!0,this.J=0,this.aa("start"));this.aa("play");QS(this);this.F=new Sd(100);this.S.R(this.F,"tick",this.Aq);this.F.start();break;case 2:this.aa("pause"),QS(this)}};
h.Pq=function(){this.aa("volumeChange")};
h.AC=function(){this.aa("shareClicked")};
h.Aq=function(){if(YI||tO()){if(1.5<this.getCurrentTime()-this.J){this.o&&this.A.seekTo(this.J,!0);return}this.getCurrentTime()>this.J&&(this.J=this.getCurrentTime())}this.aa("timeUpdate")};
h.ZB=function(){this.aa("mediaLoadTimeout")};
h.Dl=function(a,b,c,d){if(b||c)this.o?this.A.addInfoCardXml(a,b,c,d):this.H={videoId:a,Qe:b,sg:c,ti:d}};
h.Ef=function(){if(!this.o)return null;var a=this.A.getVideoData();return a?a.cpn:null};
h.Em=function(a){this.o&&IR(this.getVideoUrl())&&this.A.sendVideoStatsEngageEvent(a)};
h.yp=function(a){this.o&&this.A.setCardsVisible(a)};
h.zp=function(){this.o&&this.A.showControls()};
h.wp=function(){this.o&&this.A.hideControls()};
h.V=function(){QS(this);RS(this);this.Uf();this.o=!1;this.S.dispose();this.K=-1;this.ca=null;this.da=!1;this.L=null;this.G=-1;this.fa=this.A=this.B=null;this.C=!1;this.Z="";OS.N.V.call(this)};
q("onYouTubeIframeAPIReady",function(){MS=!0;F(NS,function(a){a()});
lb(NS)},window);B(SS,J);SS.prototype.o=!1;SS.prototype.connect=function(){for(this.o=!0;!kb(this.A);){var a=this.A.shift();this.sendMessage(a.name,a.type,a.data)}};
SS.prototype.send=function(a,b,c){this.o?this.sendMessage(a,b,c):this.A.push({name:a,type:b,data:c})};
B(TS,jc);TS.prototype.getOrigin=function(){return this.B};
TS.prototype.toString=function(){return""};B(US,SS);US.prototype.sendMessage=function(a,b,c){null!=this.Qc&&null!=this.Qc.postMessage&&this.Qc.postMessage(Uda(this,a,b,c),"*");null!=this.Qc&&null==this.Qc.postMessage&&xO.getInstance().o(11)};
US.prototype.V=function(){this.C.dispose();US.N.V.call(this)};
US.prototype.receive=function(a){a=a.o;var b=VS(a.data);if(WS(this,b)){if(null==this.Qc)this.Qc=a.source,this.o||this.connect();else if(this.Qc!=a.source)return;WS(this,b)&&this.aa(new TS(b.name,b.type,b.data||{},b.sid,a.origin))}};B(XS,J);XS.prototype.send=function(a){var b=a.o;this.o.hasOwnProperty(b)&&this.o[b].send(a.type,a.Bc,a.Md)};
XS.prototype.V=function(){this.A.dispose();for(var a in this.o)Mb(this.o[a]);XS.N.V.call(this)};
XS.prototype.D=function(a){a=a.o;var b=VS(a.data);if(null!=b){var c=b.channel;if(this.B&&!this.o.hasOwnProperty(c)){var d=b.sid;ZS(this,c,d,a.source);this.aa(new YS(b.name,b.type,b.data||{},d,a.origin,c))}}};
B(YS,TS);B(aT,Am);
aT.prototype.F=function(a){var b=a.getOrigin(),c=We("//imasdk.googleapis.com"),b=We(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.o)ZS(this.o,a.o,a.mp,Vg().parent),null!=this.o&&this.o.send(a);else if(c=a.Md,null!=c&&p(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.Bc,"isGptPresent"==c?d=$S():"isConsolePresent"==c&&(d=null!=bT());else if($S())if("pubads"==b||"companionAds"==b){d=a.Bc;var e,f=Vg().googletag;if(null!=f&&null!=f[b]&&(f=f[b](),null!=f&&(d=f[d],null!=d)))try{e=d.apply(f,c)}catch(k){}d=e}else if("console"==
b){if(f=a.Bc,e=bT(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(k){}}else if(null===b){e=a.Bc;d=Vg();if(jb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{f=e.apply(d,c)}catch(k){}d=f}p(d)&&(a.Md.returnValue=d,this.B.send(a))}};
aT.prototype.D=function(a){this.B.send(a)};cT.prototype.isPharma=function(){return this.J};var dT={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+Oa(" ",Number(c)-a.length):Oa(" ",Number(c)-a.length)+a},
f:function(a,b,c,d,e){d=a.toString();(0,window.isNaN)(e)||""==e||(d=(0,window.parseFloat)(a).toFixed(e));var f;f=0>Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(d=f+d);if((0,window.isNaN)(c)||d.length>=Number(c))return d;d=(0,window.isNaN)(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+Oa(" ",a):f+Oa(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,m){return dT.f((0,window.parseInt)(a,10),b,c,d,0,f,k,m)}};
dT.i=dT.d;dT.u=dT.d;B(eT,J);h=eT.prototype;h.V=function(){this.C.dispose();null!==this.B&&(this.B.dispose(),this.B=null);He(this.F.gc(!1),function(a){a.dispose()});
this.F.clear();dh(this.A);eT.N.V.call(this)};
h.Nx=function(a){var b=a.Md,c=dr(this.A),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.Bc,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,null);if(!qu||pO()||0==window.document.webkitIsFullScreen)this.A.blur(),window.focus();this.A.dispatchEvent(d)};
h.ay=function(a){var b=a.Md,c=dr(this.A),d=window.document.createEvent("TouchEvent");d.initTouchEvent(a.Bc,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,fT(this,b.touches),fT(this,b.targetTouches),fT(this,b.changedTouches),b.scale,b.rotation);this.A.dispatchEvent(d)};
h.Yx=function(a){if(null!=this.o){var b=a.Md;switch(a.Bc){case "startTracking":this.o.Si();break;case "stopTracking":this.o.Uf();break;case "exitFullscreen":this.o.El();break;case "play":this.o.play();break;case "pause":this.o.pause();break;case "load":this.o.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.o.Tf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions;this.o.Jm(new cT(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma,a.useAutoplayFlag));break;case "setVolume":this.o.setVolume(b.volume)}}};
h.cD=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.o.af();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.o.getCurrentTime();b.duration=
this.o.Kd();break;case "volumeChange":a="volumeChange";b.volume=this.o.Ld();break;default:return}this.D.send("videoDisplay",a,b)};
h.Kx=function(a){switch(a.Bc){case "showVideo":null!=this.B?GR(this.B):(this.B=new DR,this.C.R(this.B,"click",this.$C));ER(this.B,hT(this.G));a=this.G;null!=a.o&&a.o.show();break;case "hide":null!==this.B&&(this.B.dispose(),this.B=null),this.G.ka()}};
h.$C=function(){this.D.send("displayContainer","videoClick")};
h.wx=function(){He(this.F.gc(!1),function(a){a.Qc=nh(this.A);a.connect()},this);
this.H=!0};gT.prototype.initialize=function(){null!=this.o&&this.o.initialize()};
gT.prototype.destroy=function(){Mb(this.o);Mb(this.G);Mb(this.F);dh(this.A)};
gT.prototype.ka=function(){null!=this.o&&this.o.ka()};
gT.prototype.setSize=function(a,b){var c=this.A;null!=c&&(-1==a?(c.style.right=0,c.style.left=0):c.style.width=a+"px",-1==b?(c.style.bottom=0,c.style.top=0):c.style.height=b+"px");null!=this.G&&(c=this.G,c.A.width=-1==a?"100%":a,c.A.height=-1==b?"100%":b)};var iT="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");B(kT,J);B(lT,kT);lT.prototype.start=function(){this.o.start()};
lT.prototype.stop=function(){this.o.stop()};
lT.prototype.V=function(){lT.N.V.call(this);this.B.dispose();this.o.dispose()};
lT.prototype.C=function(){if("currentTime"in this.A&&!(0,window.isNaN)(this.A.currentTime)){var a=this.currentTime;this.currentTime=this.A.currentTime;a!=this.currentTime&&this.aa(new jc("currentTimeUpdate"))}else this.aa(new jc("contentWrapperError")),this.stop()};mT.prototype.reset=function(){this.o=0;this.A=null};nT.prototype.reset=function(){this.A=this.o=null};var CT=new pT;pT.prototype.clear=function(){this.o=oT();this.F=this.H=this.A=null;this.D=oT();this.C=null;this.S=this.K=this.L="";this.G=this.O=this.B=null};B(sT,J);sT.prototype.A=null;sT.prototype.V=function(){delete this.o;tT(this);$c(this.A);sT.N.V.call(this)};
sT.prototype.D=function(){rT(this)&&(tT(this),$c(this.A),this.A=null,this.B=!0,this.aa("ifload"))};B(uT,J);B(vT,jc);vT.prototype.getError=function(){return this.B};wT.prototype.getContent=function(){return this.F};
wT.prototype.Xb=function(){return this.o};
wT.prototype.clone=function(){var a=new wT(this.H,this.G);if(null!=this.o)xT(a,this.Xb(),this.C,this.A,this.D);else{var b=this.getContent(),c=this.C,d=this.A,e=this.B,f=this.D;a.F=b;a.o=null;a.C=c;a.A=d;a.B=e;a.D=f||[]}return a};B(zT,uT);ba(zT);h=zT.prototype;h.V=function(){this.A&&this.A.dispose();zT.N.V.call(this)};
h.initialize=function(){if(!this.C){var a;var b=wh(new Ig);try{r("googletag"),AT([b,b.top]),a=!0}catch(c){a=!1}a?MT(this):(this.C=!0,this.B="not_available")}};
h.setVideoContent=function(a,b){var c=HT(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};
h.Rq=function(){0<this.D&&K()>=this.D?(this.C=!0,IT(this),LT(this)):MT(this)};
h.PD=function(a){var b=ji(a.adSizes,function(a){return new ue(a.adWidth,a.adHeight)});
return new wT(a.slotId,b)};
h.yw=function(a){var b={};b.slotId=a.H;b.adContent=a.getContent();b.adWidth=a.C;b.adHeight=a.A;b.friendlyIframeRendering=a.B;if(null!=a.o||SN(QN(),9419278))b.onAdContentSet=y(this.JA,this,a);return b};
h.JA=function(a,b){if(null!=a.o){var c=ih(b);c||(c=window.document.createElement("div"),b.appendChild(c));var d=a.Xb();c.appendChild(d);NT(this,a,c)}else c=null,c=a.B?b.querySelector("iframe"):(c=ih(b))?ih(c):null,(c=c&&"IFRAME"==c.tagName?c:null)&&Zda(this,c,a)};
h.IA=function(a){this.aa(new vT("companion_click",null,a))};
h.sendImpressionUrls=function(a){dO(this.impressionUrls,a)};B(OT,jc);OT.prototype.getError=function(){return this.o};B(PT,jc);var aea={IMAGE:"Image",jv:"Flash",ALL:"All"},$da={HTML:"Html",IFRAME:"IFrame",eN:"Static",ALL:"All"},bea={yK:"IgnoreSize",RM:"SelectExactMatch",SM:"SelectNearMatch"},cea={FJ:"DisallowResize",IM:"ResizeSmaller"};B(bU,N);bU.prototype.toString=function(){return dU(this,bU.N.toString.call(this))};
bU.prototype.Zo=function(){return""};
bU.prototype.Xe=function(){return""};
bU.prototype.clone=function(){return new bU(this.toString())};var mea=["ai","sigh"];yU.prototype.getUrl=function(){return this.B};
yU.prototype.getType=function(){return this.A};
B(zU,yU);xU.prototype.isEmpty=function(){return this.o.isEmpty()};B(JU,HU);KU.prototype.parse=function(a){a=ih(a);var b=nU(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw gO(dpa);a=a.getAttribute("offset");a=FU(a);if("skippable"==c&&null==a)throw gO(cpa);return new JU(c,a)};B(LU,HU);B(MU,HU);B(NU,HU);NU.prototype.Lb=function(){return this.A};h=OU.prototype;h.lg=function(a){this.ia=a};
h.Ll=function(){return null};
h.Ui=function(){return null};
h.getAd=function(){return this.K};
h.Ei=function(){for(var a=[this],b=this.K.A;b;){var c=RU(this,b)||RU(this,b,!0);null!=c&&a.push(c);b=b.A}return a};B(TU,OU);h=TU.prototype;h.getContent=function(){return ph(this.Xb())};
h.eh=function(){return!1};
h.Ml=function(){return this.eh()?ph(this.Xb(!0)):""};
h.getContentType=function(){return this.xa};
h.jc=function(){return this.Fa};
h.getWidth=function(){return this.jc().width};
h.getHeight=function(){return this.jc().height};
h.Ll=function(){return"VPAID"==this.J?this.C:null};
h.Ui=function(){return"VPAID"==this.J&&"Flash"==this.Z?this.C:null};
h.jd=function(){return this.Y};h=UU.prototype;h.getContent=function(){return this.o.getContent()};
h.Xb=function(){return this.o.Xb()};
h.getContentType=function(){return this.o.getContentType()};
h.getWidth=function(){return this.o.getWidth()};
h.getHeight=function(){return this.o.getHeight()};
h.getAd=function(){return this.o.getAd()};B(WU,G);WU.prototype.G=function(){this.C=K()};
WU.prototype.J=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.A&1&&c.push("nm="+this.D);this.A&2&&c.push("nb="+this.F.get(b));if(this.A&8){var d=dr(this.B);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.A&16&&null!=this.C&&c.push("clkt="+(K()-this.C));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
WU.prototype.H=function(){this.D++};
WU.prototype.V=function(){WU.N.V.call(this);this.o.dispose()};var vea=[0,2,1],aV=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){aV=a},!0);
window.mb=function(a){if(a){var b=bV();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=XU(a.href,"mb",b,void 0)))}};B(cV,G);cV.prototype.G=function(){this.F=K()};
cV.prototype.J=function(a,b){var c=a.element;1==(this.A&1)&&(0==this.C&&this.C++,this.o.nm=this.C);2==(this.A&2)&&(this.o.nb=a.Nw);if(8==(this.A&8)){var d=dr(this.D);this.o.nx=Math.round(b.clientX-d.x);this.o.ny=Math.round(b.clientY-d.y)}16==(this.A&16)&&null!=this.F&&(d=K()-this.F,this.o.clkt=d);512==(this.A&512)&&(d=bV())&&(this.o.mb=d);"A"==c.tagName.toUpperCase()&&Hg(c,xea(this,c.href))};
cV.prototype.H=function(){this.C++};var yea=Tg?'javascript:""':"about:blank";B(dV,TU);dV.prototype.H=function(a){null==this.A||C(E(this.jd()))||(this.A.R(a,"click",this.O),this.S.push(a))};
dV.prototype.Xb=function(a){a?(null==this.ea&&(this.ea=this.ce(a),ah(this.ea,iV(this))),a=this.ea):(null==this.B&&(this.B=this.ce(),ah(this.B,iV(this))),a=this.B);null!=this.A&&this.A.R(a,"creativeview",this.La);return a};
dV.prototype.Xk=function(){var a=this.getAd().B;a&&a.sb("cleanup_text_overlay_spam_signals");return 2};
dV.prototype.Ei=function(){for(var a=[this],b=this.getAd().A;b;){var c=this.D?RU(this,b)||RU(this,b,!0):jV(this,b)||jV(this,b,!0);null!=c&&a.push(c);b=b.A}return a};B(kV,dV);var Bea=new ue(300,250);kV.prototype.Ja=function(){this.F=Math.max(0,this.F-1);tV(this)};
kV.prototype.Ga=function(){this.F=Math.min(this.la-3,this.F+1);tV(this)};
kV.prototype.ce=function(){return this.ha};uV.prototype.getWidth=function(){return this.F};
uV.prototype.getHeight=function(){return this.C};
uV.prototype.getUrl=function(){return this.D};B(vV,OU);vV.prototype.jd=function(){return this.B};
vV.prototype.getMediaUrl=function(a){var b="";zh(this.M,function(c){var d=c.getUrl();return!C(E(a))&&a!=c.o||null==d||C(E(d))?!1:(b=d,!0)},this);
return b};
vV.prototype.Ll=function(){return xV(this,"javascript")};
vV.prototype.Ui=function(){return xV(this,"x-shockwave-flash")};h=zV.prototype;h.getContentType=function(){var a=this.o,b="";if(null===a)return b;if(a instanceof vV)a=a.ra,null===a||(b=E(a.o));else if(a instanceof dV)switch(a.da){case "IFrame":case "Html":case "Static":b=E(a.Z)}return b};
h.getExtension=function(a){return this.G.get(a)};
h.isLinear=function(){return this.ha?this.ia:nW(this)?!0:hW(this)?"video"==this.Ja:kW(this,"linear")};
h.rz=function(){return this.P};
h.getWidth=function(){return this.isLinear()?0:this.Y.width};
h.getHeight=function(){return this.isLinear()?0:this.Y.height};
h.toString=function(){return"Ad: "+this.La};B(xW,J);xW.prototype.oo=function(){return!0};
xW.prototype.We=function(){return null};B(zW,xW);h=zW.prototype;h.V=function(){this.destroy();zW.N.V.call(this)};
h.destroy=function(){null!=this.D&&this.D.dispose();this.C=null;F(this.B,function(a){yT(a)},this);
this.A=null};
h.oo=function(){return this.F};
h.xC=function(){null!=this.G&&(this.G.stop(),this.G.dispose(),this.G=null);if(null!=this.o){var a=BT(this.o);null!=a&&(this.B=a)}this.H=!0;null!=this.C&&AW(this);this.aa(new jc("initialized"))};
h.KA=function(a){EW(this,a.getError())};
h.GA=function(a){if(null!=a.o){var b=a.o;"companion_slot_init"==a.type?md(function(){null!=this.A&&this.A.aa(new PT("companion_impression"))},this):"companion_click"==a.type&&(dO(b.D),null!=this.A&&this.A.aa(new PT("companion_click")))}};
h.We=function(){return this.o};h=FW.prototype;h.Wk=function(){return hT(this.o)};
h.Fi=function(){return this.o.B};
h.ge=function(){return this.o.B};
h.Oi=function(){var a=this.o.F;return null!=a?a:new OS};
h.ah=function(){var a=this.o;null!=a.o&&a.o.show()};
h.nd=function(){};
h.Ok=function(){return null!=this.o.C};
h.yl=function(){return this.o.D};
h.zl=function(){return!1};
h.Pi=function(){return this.o.H};
h.setSize=function(a,b){this.o.setSize(a,b)};
h.ka=function(){};B(GW,jc);B(IW,jc);ba(JW);var Wea=/iu\=\/(\d+)\//;JW.prototype.start=function(a){this.A&&this.B.set(a,K())};
JW.prototype.end=function(a,b){if(this.A&&Le(this.B,a)){var c=K()-this.B.get(a),d=KW(this,a,c,b);aO(d);this.B.remove(a);this.C+=c}};
JW.prototype.sendMessage=function(a,b,c){this.A&&(a=KW(this,a,b,c),aO(a))};LW.prototype.start=function(a,b){this.D=a;this.G=b;Zea(this);this.F.H?this.J():Hm(this.A,this.F,"initialized",this.J,this)};
LW.prototype.J=function(){var a=this.F.We(),b;b=a.C?"retrieved"!=a.B?void 0:a.G:void 0;a=Xda(a);null!=b&&(this.C.D=b);null!=a&&(this.C.G=a);Yea(this)};B(NW,J);var OW=null;NW.prototype.destroy=function(){this.K.za(this.A,"activityMonitor",this.M);this.A=null};
NW.prototype.M=function(a){var b=a.Md;switch(a.Bc){case "appStateChanged":hda(pR.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":SW(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":QW(b.queryId,b.viewabilityString);break;case "pageSignals":this.L=b.pageSignals;break;case "viewableImpression":RW(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;PW().C=b;PW().J=K();break;case "viewability":a=b.eventId;window.clearTimeout(a);
var c=this.o.get(a);c&&(this.o.remove(a),c(b.viewabilityData));break;case "viewabilityMeasurement":pR.getInstance();qP.getInstance();break;case "engagement":a=b.eventId;window.clearTimeout(a);c=this.o.get(a);if(xO.getInstance().A){var d=-1;this.H&&(d=K()-this.H);var e=!1;c||(e=!0);Yb(b,"loggingId")&&xO.getInstance().o(43,{step:"receivedResponse",time:K(),timeout:e,logid:b.loggingId,timediff:d})}c&&(this.o.remove(a),c(b.engagementString))}};
q("ima.bridge.getNativeViewability",function(a,b){PW();b({})},void 0);
q("ima.bridge.getVideoMetadata",function(){var a=PW().F;return ha(a)?a():{}},void 0);
q("ima.bridge.triggerViewEvent",RW,void 0);q("ima.bridge.triggerMeasurableEvent",QW,void 0);q("ima.bridge.triggerExternalActivityEvent",SW,void 0);B(VW,dfa);B(YW,TW);YW.prototype.B=function(){return new UW(this.o,null,gfa(this))};B(bX,HU);cX.prototype.parse=function(a){if(null==a)return null;var b,c,d;F(gh(a),function(a){switch(a.nodeName){case "AdFormat":b=a.getAttribute("ad_system"),c=a.getAttribute("ad_type"),d=a.getAttribute("instream_type")}},this);
return null!=b&&null!=c&&null!=d?new bX(b,c,d):null};B(eX,HU);eX.prototype.isPharma=function(){return this.G};fX.prototype.parse=function(a){var b;oU(a,"config",function(a){null!=b||(b=jfa(this,a))},this);
return b};gX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,m,l=!1,n=!1;F(gh(a),function(a){switch(a.nodeName){case "AttributionText":c=nU(a);break;case "AttributionUrl":d=nU(a);break;case "ConversionUrl":f=nU(a);break;case "CustomTracking":null!=gh(a)&&(e=GU(a));break;case "is_pharma":a=mU(a,"bool");n=rU(E(a));break;case "CheckedEvents":a=gh(a);b=ji(a,function(a){return mU(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":nU(a);break;case "VisibleUrl":k=nU(a);break;case "UI":m=(new fX).parse(a);break;case "ShowYouTubeAnnotations":var u=nU(a);l=rU(E(u),!1);case "QueryId":nU(a)}},this);
null!=m||(m=new dX);return new eX(c,d,f,0,k,m,l,0,n,e,b)};hX.prototype.parse=function(a){if(null==a)return null;var b;F(gh(a),function(a){switch(a.nodeName){case "CustomTracking":null!=gh(a)&&(b=GU(a))}});
a=null;null!=b&&0<AU(b,"skip").length&&(a="Generic");return new LU(a,b)};iX.prototype.parse=function(a){if(null==a)return null;var b,c;F(gh(a),function(a){switch(a.nodeName){case "SkippableAdType":b=nU(a);break;case "CustomTracking":null!=gh(a)&&(c=GU(a))}});
return new LU(b,c)};jX.prototype.parse=function(a){if(null==a)return null;var b;F(gh(a),function(a){switch(a.nodeName){case "CustomTracking":null!=gh(a)&&(b=GU(a))}},this);
return new HU(b)};var kfa=[202,1009],qfa=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],pfa={MOAT_INIT:["://yts.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"],MOAT_VIEWABILITY:["://[^.]*.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],GOOGLE_VIEWABILITY:["://pubads.g.doubleclick.net"]};var M$,N$,O$,P$,FX,JX,Q$,R$,S$,T$,U$,V$,LX,W$;fW.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
sX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
sX.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
var X$=new tX;sX.prototype.getVersion=function(){var a=this.o.version;return a?new tX(a):X$};
var mpa=new yX,DX=new wX,npa=new xX,opa=new zX,ppa=new AX,EX=new uX,qpa=new CX;tX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
tX.prototype.getMajorVersion=function(){var a=this.o.major_version;return null!=a?a:0};
uX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
nV.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
nV.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
nV.prototype.getId=function(){var a=this.o.id;return null!=a?a:""};
nV.prototype.setTitle=function(a){this.o.title=a};
var rfa=new BX;vX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
vX.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
wX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
var KX=new BX;mV.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
xX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
var rpa=new BX,spa=new BX,tpa=new BX;yX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
zX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
AX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
BX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
CX.prototype.equals=function(a){return $U(this.o,a?a.o:null)};
var upa=new BX;var OX;
OX={card:{type:{TYPE_NONE:0,TYPE_PRODUCT:1,TYPE_LOCATION:5,TYPE_APP:2,TYPE_WEBSITE:4,TYPE_VOTE:3},prominence:{PROMINENCE_HIGHLIGHT:1,PROMINENCE_NONE:0,PROMINENCE_FEATURE:2}},event:{type:{TYPE_NONE:0,TYPE_ACTION_ENDCAP:9,TYPE_IMPRESSION_ENDCAP:8,TYPE_EXPAND:2,TYPE_ACTION:6,TYPE_COLLAPSE:3,TYPE_HEADLINE_CLICK:5,TYPE_DISMISS_ENDCAP:11,TYPE_IMPRESSION_GALLERY:7,TYPE_DISMISS:4,TYPE_COLLAPSE_ENDCAP:10,TYPE_IMPRESSION:1}},action:{type:{TYPE_APPLICATION_STORE:4,TYPE_INTERNAL:13,TYPE_NONE:0,TYPE_INLINE_APPLICATION_STORE:19,TYPE_SUBSCRIPTION:6,
TYPE_EXTERNAL:16,TYPE_VIDEO:3,TYPE_CHANNEL:2,TYPE_RESPONSE:12,TYPE_MERCH:9,TYPE_RESULTS:11,TYPE_HEADLINE:1,TYPE_LETTERMAN:14,TYPE_IRDB:8,TYPE_PLAYLIST:7,TYPE_COLLAPSE:17,TYPE_ATTRIBUTION:5,TYPE_FUNDRAISING:10,TYPE_VOTE:18,TYPE_HELPOUTS:15}},ad_card:{attribution_position:{POSITION_TOP_RIGHT:2,POSITION_BOTTOM_RIGHT:3,POSITION_BOTTOM_LEFT:0,POSITION_TOP_LEFT:1}}};B(MX,HU);NX.prototype.parse=function(a){var b=pA(a);if(C(E(b)))return null;var c;if(this.o){c=PX;if(!M$){var d={};M$={Rb:d};if(!N$){var e={};N$={Rb:e};e.type={type:"e",label:1,qa:0};if(!O$){var f={};O$={Rb:f};f.major_version={type:"i",label:1,qa:0};f.minor_version={type:"i",label:1,qa:0}}e.version={type:"m",label:1,qa:X$,va:O$};e.priority={type:"i",label:1,qa:0};e.start_time_ms={type:"j",label:1,qa:"0"};e.end_time_ms={type:"j",label:1,qa:""};e.action={type:"m",label:3,va:IX()};e.event={type:"m",label:3,va:HX()};
T$||(f={},T$={Rb:f},f.headline={type:"s",label:1,qa:""},f.description={type:"s",label:1,qa:""},f.attribution_icon_url={type:"s",label:1,qa:""},f.skippable_seconds={type:"i",label:1,qa:0},f.attribution_position={type:"e",label:1,qa:0});e.ad_card={type:"m",label:1,qa:mpa,va:T$};if(!Q$){f={};Q$={Rb:f};f.headline={type:"s",label:1,qa:""};f.image={type:"m",label:1,qa:KX,va:GX()};f.description={type:"s",label:1,qa:""};f.rating={type:"f",label:1,qa:0};f.review_text={type:"s",label:1,qa:""};if(!R$){var k=
{};R$={Rb:k};k.merchant={type:"s",label:1,qa:""};k.price={type:"s",label:1,qa:""};k.shipping={type:"s",label:1,qa:""};k.shipping_tax={type:"s",label:1,qa:""};k.condition={type:"s",label:1,qa:""};k.unit_price={type:"s",label:1,qa:""};k.energy_label={type:"s",label:1,qa:""};k.description={type:"s",label:1,qa:""};k.rating={type:"f",label:1,qa:0};k.review_text={type:"s",label:1,qa:""};k.action={type:"m",label:3,va:IX()};k.event={type:"m",label:3,va:HX()}}f.offer={type:"m",label:3,va:R$}}e.product_card=
{type:"m",label:1,qa:DX,va:Q$};S$||(f={},S$={Rb:f},f.app_id={type:"s",label:1,qa:""},f.app_name={type:"s",label:1,qa:""},f.icon={type:"m",label:1,qa:rpa,va:GX()},f.price={type:"s",label:1,qa:""},f.rating_image={type:"s",label:1,qa:""},f.review_count={type:"i",label:1,qa:0},f.app_store_logo={type:"m",label:1,qa:spa,va:GX()},f.button_text={type:"s",label:1,qa:""},f.screenshots={type:"m",label:3,va:GX()},f.rating={type:"f",label:1,qa:0},f.back_button_text={type:"s",label:1,qa:""},f.screenshots_text=
{type:"s",label:1,qa:""},f.cover_photo={type:"m",label:1,qa:tpa,va:GX()});e.app_card={type:"m",label:1,qa:npa,va:S$};e.prominence={type:"e",label:1,qa:0};U$||(f={},U$={Rb:f},f.call_to_action_text={type:"s",label:1,qa:""});e.social_card={type:"m",label:1,qa:opa,va:U$};V$||(f={},V$={Rb:f},f.vote_line_1={type:"s",label:1,qa:""},f.vote_line_2={type:"s",label:1,qa:""},f.confirm_line_1={type:"s",label:1,qa:""},f.confirm_line_2={type:"s",label:1,qa:""});e.vote_card={type:"m",label:1,qa:ppa,va:V$};e.sponsored=
{type:"b",label:1,qa:!1};e.teaser_text={type:"s",label:1,qa:""};P$||(f={},P$={Rb:f},f.hide_in_drawer={type:"b",label:1,qa:!1},f.show_in_endcap={type:"b",label:1,qa:!1},f.show_in_companion_mobile={type:"b",label:1,qa:!1},f.show_in_cta={type:"b",label:1,qa:!1},f.override_clickthrough={type:"b",label:1,qa:!1});e.placement={type:"m",label:1,qa:EX,va:P$};W$||(f={},W$={Rb:f},f.latitude_e6={type:"i",label:1,qa:0},f.longitude_e6={type:"i",label:1,qa:0},f.address={type:"s",label:1,qa:""},f.image={type:"m",
label:1,qa:upa,va:GX()},f.headline={type:"s",label:1,qa:""});e.location_card={type:"m",label:1,qa:qpa,va:W$}}d.card={type:"m",label:3,va:N$};d.event={type:"m",label:3,va:HX()}}a=c(this,a,M$);a=c=new fW(a);d=new xU;for(e=0;e<ZU(a.o,"card");e++)if(f=gW(a,e),dW(eW(f)))for(k=0;k<ZU(f.o,"event");k++){var m,l=k;m=new vX(YU(f.o,"event")[l]);l=null;switch(m.getType()){case 9:l="video_card_endcap_action";break;case 10:l="video_card_endcap_collapse";break;case 11:l="video_card_endcap_dismiss";break;case 8:l=
"video_card_endcap_impression"}l&&(m=m.o.base_url,CU(d,l,QX(l,null!=m?m:"")))}a=d}else a=sfa(this,a);return new MX(b,c,a)};B(RX,HU);RX.prototype.Ed=function(){return this.A};SX.prototype.D=function(a){var b={};F(this.A,function(a){b[a]=[]});
var c=new RegExp("^"+this.B);F(gh(a),function(a){"config"!=a.nodeName||F(gh(a),function(a){"params"!=a.nodeName||F(gh(a),function(a){var d=this.B?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=nU(a));null!=a.getAttribute("learn_more")&&(e+="|");jb(this.A,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};B(UX,HU);B(WX,SX);WX.prototype.parse=function(a){if(null==a)return null;a=TX(this,a);var b=a.UI;return new UX(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
WX.prototype.C=function(a){var b=[],c=0;F(gh(a),function(a){if("SurveyOption"==a.nodeName){var e,f;F(gh(a),function(a){switch(a.nodeName){case "DisplayName":e=nU(a);break;case "URL":f=nU(a)}},this);
null!=e&&null!=f&&(b.push({label:e,url:f}),c++)}},this);
return b};B(XX,HU);YX.prototype.o={cw:"Siub",bw:"Scs",Hu:"Bgub",Gu:"Bgp"};YX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(gh(a),function(a){switch(a.nodeName){case this.o.cw:b=nU(a);break;case this.o.bw:c=nU(a);break;case this.o.Hu:d=nU(a);break;case this.o.Gu:e=nU(a)}},this);
return b&&c&&d&&e?new XX(b,c,d,e):null};B(ZX,HU);$X.prototype.o={iw:"TEMPLATE_PARAMETERS",jw:"TEMPLATE_URL"};$X.prototype.parse=function(a){if(null==a)return null;F(gh(a),function(a){switch(a.nodeName){case this.o.iw:tfa(this,a)}},this);
return new ZX};B(aY,HU);bY.prototype.o={yv:"Line1",zv:"Line2",Av:"Line3",vv:"ImageUrl"};bY.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(gh(a),function(a){switch(a.nodeName){case this.o.yv:b=nU(a,!0);break;case this.o.zv:c=nU(a,!0);break;case this.o.Av:d=nU(a,!0);break;case this.o.vv:e=nU(a)}},this);
return new aY(b,c,d,e)};B(cY,HU);dY.prototype.parse=function(a){if(null==a)return null;var b;F(gh(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),C(E(a))||(b=a)}},this);
return new cY(b)};B(eY,HU);B(fY,SX);var vpa=["menu","got_it","targeting_reason_header"],wpa=[["generic_message_left","generic_message_hypertext","generic_message_right"]];fY.prototype.parse=function(a){if(null==a)return null;a=TX(this,a);var b=a.UI;if(!gY(b,vpa))return null;var c,d=!0,e=!1;F(wpa,function(a){ufa(b,a)&&(gY(b,a)?e=!0:d=!1)});
var f=b.targeting_reason;if(!d||!e||0==f.length)return null;null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new eY(b.menu,b.targeting_reason_header,b.targeting_reason,b.got_it,a.CustomTracking,c,b.control)};hY.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Ya(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new MU(a)};B(iY,HU);jY.prototype.parse=function(a){return null!=a?new iY:null};kY.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Ya(a):window.NaN;return new NU(a)};B(mY,dV);mY.prototype.ce=function(){var a=this.J,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:ZN(E(this.C)),width:this.getWidth(),height:this.getHeight(),Bb:this.jd(),zf:this.wo||!a},b=V()&&aU(this.G,"hideMaster")?lY:xfa,a=XR(b,a);a.style.width=this.getWidth()+"px";a.style.height=this.getHeight()+"px";a.id=this.ca;F(a.getElementsByTagName("object"),this.H,this);F(a.getElementsByTagName("a"),this.H,this);return a};B(nY,dV);nY.prototype.ce=function(){var a=O("div");a.innerHTML=this.C;this.H(a);return hV(this,a)};B(oY,dV);oY.prototype.getContent=function(){var a=oY.N.getContent.call(this);this.D&&(a=a.replace('src=""','src="'+ZN(E(this.C))+'"'));return a};
oY.prototype.Ml=function(){var a=oY.N.Ml.call(this);this.D&&(a=a.replace('src=""','src="'+ZN(E(this.C))+'"'));return a};
oY.prototype.ce=function(a){var b="";this.D||(b=ZN(E(this.C)));b={id:this.ca,url:b,Bb:this.jd(),width:this.getWidth()+"px",height:this.getHeight()+"px"};a=V()&&aU(this.G,"hideMaster")?lY:a?zfa:yfa;a=XR(a,b);F(a.getElementsByTagName("a"),this.H,this);return a};
oY.prototype.eh=function(){return!0};B(pY,dV);h=pY.prototype;h.jc=function(){return new ue(this.getWidth(),this.getHeight())};
h.getHeight=function(){return 63};
h.getWidth=function(){return null!=this.F?nr(this.F).width:0};
h.Xk=function(a){var b=this.getAd().B;return b&&b.sb("cleanup_text_overlay_spam_signals")?Zd(a,"text-image-link")?9:Zd(a,"text-ad-channel")?1:0:Zd(a,"text-image")?9:Zd(a,"text-ad-channel")?1:0};
h.ce=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.B,e="rtl";null!=d&&(e=O0.test(Yf(d,void 0))?"rtl":"ltr");d={title:d,text:c.C+" "+c.D,dir:e,Bb:this.jd()};if(c=c.A)d.image=ZN(c),a=eb(a.D,function(a){return a instanceof vV}),null!=a&&(d.duration=ZT(a.ia));
b.A&&(d.ms=b.A);this.F=XR(wfa,d);F(this.F.getElementsByTagName("a"),this.H,this);this.F.id=this.ca;this.F.style.height=this.getHeight()+"px";return this.F};B(qY,dV);qY.prototype.ce=function(){var a=E(this.C);C(E(this.jd()))||(a=new N(a),yf(a,"clickTAG",wa(this.jd())),a=a.toString());var b=O("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.getWidth());b.setAttribute("src",ZN(a));this.H(b);return hV(this,b)};tY.prototype.getContentType=function(){return null!=this.o?SU[this.o]||"Other":null};uY.prototype.Xb=function(){return this.o};
uY.prototype.display=function(a){this.C=a;this.C.appendChild(this.o);a=this.o;var b=mr(this.C),b="left"==this.D?"0px":"right"==this.D?b.width-this.B.jc().width+"px":this.D+"px",c;c=mr(this.C);c="bottom"==this.F?"0px":"top"==this.F?c.height-this.B.jc().height+"px":c.height-this.B.jc().height-ab(this.F)+"px";Uq(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});S(this.o,!1)};
uY.prototype.update=function(a,b){var c=null!=this.G?vU(this.G):0;this.A=0<=this.A?this.A:b;c<=a&&c+this.A>=a?Bfa(this):S(this.o,!1)};B(vY,TW);
vY.prototype.o={yu:"Ad",hk:"AdParameters",Au:"AdSystem",Bu:"AdTitle",SH:"Advertiser",Eu:"AltText",Ju:"ClickThrough",Ku:"ClickTracking",Lu:"Companion",Mu:"CompanionAds",Nu:"CompanionClickThrough",Ou:"CompanionClickTracking",Qu:"Creative",xJ:"CreativeExtensions",Ru:"Creatives",Vu:"CustomClick",Yu:"Description",jk:"Duration",ERROR:"Error",fv:"Extension",gv:"Extensions",Sh:"HTMLResource",mv:"Icon",nv:"Icons",ov:"IconClicks",pv:"IconClickThrough",qv:"IconClickTracking",rv:"IconViewTracking",Uh:"IFrameResource",Vh:"Impression",
AK:"InLine",LINEAR:"Linear",Ev:"MediaFile",Fv:"MediaFiles",Lv:"NonLinear",Mv:"NonLinearAds",Nv:"NonLinearClickThrough",Ov:"NonLinearClickTracking",uM:"Pricing",Wh:"StaticResource",hw:"Survey",BN:"Tracking",mk:"TrackingEvents",ON:"VAST",lw:"VASTAdTagURI",mw:"VideoClicks",qw:"Wrapper"};
vY.prototype.A={zu:"adSlotID",Du:"allowMultipleAds",Qh:"apiFramework",On:"bitrate",Su:"creativeType",Xu:"delivery",jk:"duration",$J:"event",kv:"followAdditionalWrappers",dv:"expandedHeight",ev:"expandedWidth",Rh:"height",Th:"id",Bv:"maintainAspectRatio",Dv:"maxBitrate",Hv:"minBitrate",Iv:"minSuggestedDuration",Pv:"offset",Qv:"program",Uv:"required",Xv:"scalable",Tn:"sequence",$v:"skipoffset",TYPE:"type",VERSION:"version",ow:"codec",Xh:"width",rw:"xPosition",tw:"yPosition"};
vY.prototype.B=function(){return new UW(this.C,Efa(this),null)};B(EY,TW);EY.prototype.B=function(){return new UW(this.A,null,Xfa(this))};h=IY.prototype;
h.clone=function(){var a=new IY;"auto"==this.ff?a.ff="auto":"click"==this.ff&&(a.ff="click");a.o=this.o;a.Me=ec(this.Me);a.A=this.A;a.D=this.D;a.Eb=ec(this.Eb);a.F=this.F;a.location=this.location;a.referrer=this.referrer;a.H=this.H;a.language=this.language;a.Pf=this.Pf;a.Of=this.Of;a.Mc=this.Mc;a.Lc=this.Lc;a.Dc=this.Dc;a.Mi=this.Mi;a.Ni=this.Ni;a.Nm=this.Nm;a.B=this.B;a.C=this.C;a.Bh=this.Bh;a.Li=this.Li;a.afcRmFallback=this.afcRmFallback;a.K=this.K;a.J=this.J;a.Df=this.Df;this.G&&(a.G=sb(this.G));
a.sb=this.sb;a.Kf=this.Kf;a.ll=this.ll;a.allowAdsPayCreator=this.allowAdsPayCreator;a.aq=this.aq;return a};
h.Me=null;h.Eb=null;h.ff="unknown";h.aq=0;h.Pf=0;h.Of=0;h.Mc=0;h.Lc=0;h.Df=!1;h.Dc=null;h.Mi=!1;h.Ni=!1;h.Nm=!0;h.sb=function(){return!1};
h.Kf=function(){return window.NaN};
h.ll=function(){return""};
h.Bh=0;h.Io=!0;h.Li=null;h.afcRmFallback=!1;h.allowAdsPayCreator=!1;JY.prototype.H=function(){return this.C(this.D()).toString()};
JY.prototype.F=function(){var a;a=1;wO()&&(a+=4);if(!V()){var b=0;SN(QN(),41351017)&&(b+=7168);a+=b}return a};var jZ={HN:"ultrahigh",rK:"high",Gv:"medium"},jga={nI:1E3,oI:1001,pI:1002,qI:1003,rI:1004,sI:1005,tI:1006},kga={Cv:1,hv:2},lga={tJ:"content",WM:"site",XM:"site_content"};h=PY.prototype;h.Zh="high";h.Hl=!1;h.pk=1;h.qk=null;h.adType="video";h.adBlock=1;h.Il=null;h.sk=!0;h.tk=null;h.Lk=null;h.Pg=null;h.experimentIds=null;h.gender=null;h.host=null;h.hostTierId=null;h.Jl=!1;h.language=null;h.Dp=null;h.Cp=null;h.cj=1E5;h.dj=null;h.Fp=null;h.Ep=null;h.am=0;h.Vf=null;h.lj=null;h.rj=null;h.Om=null;
h.tagForChildDirectedTreatment=-1;h.url=null;h.Ti=null;h.$m=null;h.Kl=null;h.kn=null;h.gn=null;h.hn=null;h.jn=null;h.yk=null;var gga=(new Date).getTime();var hga={YI:"bumpervideo",jv:"flash",IMAGE:"image",bN:"skippablevideo",dN:"standardvideo",fN:"staticimage",TEXT:"text",VIDEO:"video"},bZ=["flash","image","staticimage"],iga=[new ue(200,200),new ue(250,250),new ue(300,250),new ue(336,280),new ue(450,50),new ue(468,60),new ue(480,70),new ue(728,90)];B(kZ,JY);var mga=["bumpervideo","skippablevideo","standardvideo","video"];kZ.prototype.G={Cu:"allow",bv:"exclude",FM:"require"};kZ.prototype.F=function(){var a=kZ.N.F.call(this);V()&&this.o.rj&&(a|=this.o.rj);return a};
kZ.prototype.C=function(a){var b=new N(this.A.o),c=new N("//"+b.A+b.B),b=a.Qa();F(b,function(b){yf(c,b,a.get(b))});
SN(QN(),41351083)||of(c,"https");return c};
kZ.prototype.D=function(){var a=new Je;a.set("sdkv",OY(this));a.set("sdki",this.F().toString(16));a.set("video_product_type",null!=this.o.Vf?V()?5:ua(this.o.Vf,"ca-games-")?4:ua(this.o.Vf,"ca-video-")?0:-1:-1);a.set("correlator",this.J.o);a.set("client",this.o.Vf);V()&&!C(E(this.o.url))?a.set("url",this.o.url):a.set("url",this.A.location?this.A.location:this.A.referrer);null!=this.A.Dc&&a.set("adk",this.A.Dc);a.set("num_ads",lZ(this));a.set("channel",oga(this));a.set("output","xml_vast3");this.o.Hl&&
a.set("adtest","on");WT&&a.set("flash",BP);aZ("alternate_ad_url",this.o.tk,a);aZ("cpm",this.o.Lk,a);SY(a,this.A);V()||Tb(jZ,this.o.Zh)&&a.set("adsafe",this.o.Zh);this.o.host&&(a.set("host",this.o.host),aZ("ht_id",this.o.hostTierId,a),null!=this.o.B&&aZ("h_ch",this.o.B.join("+"),a));aZ("hl",this.o.language,a);aZ("cust_age",this.o.Il,a);aZ("cust_gender",this.o.gender,a);-1!=this.o.tagForChildDirectedTreatment&&aZ("tfcd",this.o.tagForChildDirectedTreatment,a);aZ("slotname",this.o.qk,a);if(WY(this.o)&&
(a.set("ea","0"),null!=this.A.Mc&&null!=this.A.Lc)){var b=XY(this.o,this.A.Mc,this.A.Lc,this.A.Df);a.set("image_size",b);C(b)&&(this.o.o=dZ(this.o.o,this.o.adType,!0),this.o.adType=this.o.o.join("_"))}a.set("ad_type",this.o.adType);b=UN(QN());C(E(b))||a.set("eid",b);TY(a);RY(a,this.J,this.A.D||this.o.Pg);a.set("unviewed_position_start","1");b=this.o.pk;a.set("videoad_start_delay",null!=b?b:1);MY(this,a);NY(this,a);KY(this,a);nga(this)&&a.set("video_format",null!=this.o.Ti&&V()?this.o.Ti:El&&ru(6)||
Ww&&ru(4)||JH&&sO(vO,2.3)?43:18);b=null!=this.o.lj?this.o.lj:jb(this.o.adType.split("_"),"text")?this.G.Cu:this.G.bv;a.set("t_pyv",b);aZ("min_ad_duration",this.o.am,a);0<this.o.cj&&a.set("max_ad_duration",mZ(this.o.cj,lZ(this)));0<this.o.dj&&a.set("sdmax",mZ(this.o.dj,lZ(this)));YY(a,this.K);V()&&(b=IR(this.o.Pg),null!=b&&a.set("video_doc_id","yt_"+b));aZ("description_url",this.o.Pg,a);V()&&(aZ("lact",UY(this.A),a),aZ("loeid",this.o.Kl,a),aZ("lsv",this.o.Jl,a),this.o.sk||aZ("scs","false",a),aZ("targeting",
this.o.Om,a),aZ("video_cpm",this.o.$m,a),aZ("yt_pt",this.o.kn,a),aZ("ytdevice",this.o.gn,a),aZ("ytdevicever",this.o.hn,a),aZ("yt_vis",VY(this.A),a),aZ("dbp",this.o.jn,a),aZ("avo",this.o.yk,a));null!=a.get("ms")||aZ("ms",this.o.C,a);LY(a);ZY(this.A,a,!1);null!=this.A.Me&&aZ("loc",this.A.Me.page_location,a);return a};B(nZ,JY);nZ.prototype.C=function(a){var b=new N(this.A.o);F(a.Qa(),function(c){C(a.get(c))?b.o.remove(c):yf(b,c,a.get(c))});
SN(QN(),41351083)||of(b,"https");return b};
nZ.prototype.D=function(){var a=new Je;a.set("sdkv",OY(this));NY(this,a);KY(this,a);LY(a);null!=this.A.Dc&&a.set("adk",this.A.Dc);return a};B(oZ,JY);oZ.prototype.D=function(){return new Je};
oZ.prototype.C=function(){var a=new bU(this.A.o),b=OY(this);b&&cU(a,"dc_sdkv",[b]);(b=this.F().toString(16))&&cU(a,"dc_sdki",[b]);(b=this.B.H)&&cU(a,"dc_submodel",[b]);null!=this.A.Dc&&cU(a,"dc_adk",[this.A.Dc]);b=new Je;MY(this,b);NY(this,b);KY(this,b);LY(b);Le(b,"js")&&cU(a,"dc_js",[b.get("js")]);Le(b,"msid")&&cU(a,"dc_msid",[b.get("msid")]);Le(b,"frm")&&cU(a,"dc_frm",[b.get("frm")]);Le(b,"osd")&&cU(a,"dc_osd",[b.get("osd")]);Le(b,"sdr")&&cU(a,"dc_sdr",[b.get("sdr")]);cU(a,"dcmt",["text/xml"]);
Le(b,"vpa")&&cU(a,"vpa",[b.get("vpa")]);Le(b,"mpt")&&cU(a,"mpt",[b.get("mpt")]);Le(b,"mpv")&&cU(a,"mpv",[b.get("mpv")]);SN(QN(),41351083)||of(a,"https");return a};B(pZ,JY);pZ.prototype.C=function(a){a=new N(a.get("adTagUrl"));SN(QN(),41351083)||of(a,"https");return a};
pZ.prototype.H=function(){var a=E(this.D().get("adTagUrl"));SN(QN(),41351083)||(a=a.replace(/^http:/i,"https:"));return a};
pZ.prototype.D=function(){var a=new Je;a.set("adTagUrl",this.A.o);a.set("adsResponse",this.A.A);return a};B(qZ,JY);qZ.prototype.C=function(a){return new N(a.get("adTagUrl"))};
qZ.prototype.D=function(){var a=new Je;a.set("adTagUrl",this.A.o);a.set("adsResponse",this.A.A);return a};B(rZ,JY);rZ.prototype.C=function(a){var b=new N(this.A.o);F(a.Qa(),function(c){C(a.get(c))?b.o.remove(c):yf(b,c,a.get(c))});
SN(QN(),41351083)||of(b,"https");return b};
rZ.prototype.D=function(){var a=new Je,b=UN(QN());C(E(b))||a.set("eid",b);a.set("sdkv",OY(this));a.set("sdki",this.F().toString(16));a.set("correlator",this.B.D);a.set("scor",this.B.o);null!=this.A.Dc&&a.set("adk",this.A.Dc);MY(this,a);NY(this,a);KY(this,a);LY(a);var b=(new N(this.A.o)).o,c=new PY;c.A=hZ(c.A,b.get("overlay"));a.set("afvsz",XY(c,this.A.Mc,this.A.Lc,this.A.Df));b=this.B.C;null!=b&&(this.B.C=null,a.set("fbidx",b));b=this.B.O;null!=b&&a.set("ppid",b);b="null";c=this.B.A;null!=c?b=c:sZ(this.A.location)?
b=this.A.location:sZ(this.A.referrer)&&(b=this.A.referrer);a.set("url",b);b=this.B.H;null!=b&&a.set("submodel",b);b=this.B.G;null==b||V()||(b=pga(b),a.set("ciu_szs",b));a.set("impl","");a.set("unviewed_position_start","1");return a};B(tZ,rZ);tZ.prototype.C=function(a){a=tZ.N.C.call(this,a);this.J||rga(this,a);return a};B(uZ,oZ);uZ.prototype.C=function(a){a=uZ.N.C.call(this,a);this.J||tga(this,a);return a};B(vZ,JY);var uga=["CPN","MT","LACT","VIS","TSLA"];vZ.prototype.C=function(){var a=new N(GN(this.A.o,vga(this)));SN(QN(),41351083)||of(a,"https");return a};
vZ.prototype.D=function(){return new Je};AZ.prototype.Hd=function(){return null!=this.o&&this.o.Hd()?!0:0<this.ads.length&&this.A<this.ads.length-1};
AZ.prototype.K=function(a,b){return this.D?0<a.length?a:b:ub(b,0,1)};
AZ.prototype.B=function(a,b,c){var d;if(!(d=null!=a.o)){var e=this.F;d=e.Mc||0;e=e.Lc||0;hW(a)&&!a.P?kW(a,"nonlinear")?yZ(a,d,e):zZ(a):kW(a,"linear")?zZ(a):kW(a,"nonlinear")&&yZ(a,d,e);d=null!=a.o}d?(this.G++,b(a)):(b=kb(a.D)?gO(HY):a.isLinear()?gO(UZ):gO(gpa),d=pX(b,a),aU(Fea(a),"rm")?b.A=!1:dO(a.ca,d),c(b))};
AZ.prototype.H=function(a,b,c){var d=this.F.clone();d.A="";d.o=a.Ka;d.Dc=jT(d.o,d.Li);CZ(this,a,d,b,c)};B(HZ,AZ);HZ.prototype.Hd=function(){return null!=this.o&&this.o.Hd()?!0:0<this.ads.length&&this.A<this.ads.length-1&&0==this.G};
HZ.prototype.K=function(a,b){return b};
HZ.prototype.B=function(a,b,c){var d=-1,d=null==this.o?$V(a):$V(this.ads[this.A]);this.M.C=d;HZ.N.B.call(this,a,b,c)};
HZ.prototype.H=function(a,b,c){this.M.C=-1;HZ.N.H.call(this,a,b,c)};IZ.prototype.fetch=function(a,b,c){C(E(a.A))?iU(a.o)&&null!=this.o&&!this.o.H?this.o.start(a,y(function(){KZ(this,a,b,c)},this)):KZ(this,a,b,c):Kga(this,a,b,c)};
IZ.prototype.A=function(a,b,c,d){var e=wga(a,this.C).H(),e=Qba(e,d);d=a.Ni&&WN($oa,e)?"POST":"GET";Aga(this.B,e,y(function(d){JZ(this,d,a,b,c)},this),y(function(b,d){var e;
e=8==b?gO(MZ):5==b||6==b?gO(apa):gO(bpa,d);c(e);e="third_party";fU(a.o)?e="adsense":hU(a.o)?e="dart":iU(a.o)&&(e="xfp");e={rt:e,ec:b};xO.getInstance().o(18,e,!0)},this),this.F,d);
Mga(a)};LZ.prototype.reset=function(a){this.o=a+K()};B(PZ,J);var xpa={NORMAL:"normal",FULLSCREEN:"fullscreen"};B(VZ,G);h=VZ.prototype;h.bh=!1;h.lp=1E3;h.cq=30;h.fq=45E3;h.Br=15E3;h.qs=!1;h.Jk=function(){var a=WZ(this);this.o.appendChild(this.K);this.display(this.K);this.play();return a};
h.ma=function(){null==this.M&&(this.M=this.Jk());return this.M};
h.play=function(){null==this.A&&(this.A=Ud(function(){this.bh||(this.ka(),this.qs=!0);this.A=null},this.qs?this.Br:this.fq,this))};
h.stop=function(){null!=this.A&&(Vd(this.A),this.A=null)};
h.display=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
h.show=function(){or(this.ma(),1);null!=this.B&&(Vd(this.B),this.B=null)};
h.ka=function(){or(this.ma(),this.cq/100);null==this.B&&(this.B=Ud(function(){this.S();this.B=null},400,this))};
h.By=function(){this.show();this.bh=!0;this.F=Ud(function(){this.bh&&this.stop();this.F=null},this.lp,this)};
h.kE=function(){null!=this.F&&(Vd(this.F),this.F=null);this.bh&&this.play();this.bh=!1};
h.V=function(){VZ.N.V.call(this);this.stop();Mb(this.fd)};B(XZ,VZ);h=XZ.prototype;h.Jk=function(){var a=WZ(this);L(a,"ima-container-rotator");this.H=O("div");this.o.appendChild(this.H);F(this.L,function(a,c){L(a,"ima-container-highlight");var d=63/this.L.length*(c+.5)-5,e=O("div",{id:Xa(),"class":"ima-container-selector"});e.style.top=d+"px";this.fd.R(e,"click",function(a){this.kg(a.target)});
this.O.set(e.id,a);this.G.appendChild(e)},this);
this.kg(ih(this.G));this.play();return a};
h.play=function(){null==this.C&&(this.C=new Sd(this.P),this.fd.R(this.C,"tick",this.KD));XZ.N.play.call(this);this.C.start()};
h.stop=function(){null!=this.C&&this.C.stop();XZ.N.stop.call(this)};
h.KD=function(){var a=this.D;this.kg((p(a.nextElementSibling)?a.nextElementSibling:hh(a.nextSibling))||ih(this.D.parentNode))};
h.kg=function(a){this.D&&be(this.D,"ima-container-active");L(a,"ima-container-active");var b=this.O.get(a.id);eh(b,this.H);this.D=a;this.H=b;this.display(b)};B(YZ,VZ);YZ.prototype.ka=v;YZ.prototype.Jk=function(){var a=WZ(this);F(this.C,function(a){L(a,"ima-container-highlight");this.o.appendChild(a);this.display(a)},this);
this.play();return a};B(ZZ,HA);h=ZZ.prototype;h.play=function(){if(this.ob())return!1;this.fj();this.wc("play");this.startTime=K();this.o=1;if(Toa())return Uq(this.A,this.G),this.C=Ud(this.Cx,void 0,this),!0;this.Mm(!1);return!1};
h.Cx=function(){mr(this.A);wr(this.A,this.F);Uq(this.A,this.B);this.C=Ud(y(this.Mm,this,!1),1E3*this.D)};
h.stop=function(){this.ob()&&this.Mm(!0)};
h.Mm=function(a){vr(this.A,"");Vd(this.C);Uq(this.A,this.B);this.endTime=K();this.o=0;a?this.wc("stop"):this.$b();this.ih()};
h.V=function(){this.stop();ZZ.N.V.call(this)};
h.pause=function(){};B(b_,J);h=b_.prototype;h.start=function(){this.Cl();this.A=0;c_(this);this.C=!0;this.D.start()};
h.play=function(){this.C||(c_(this),this.C=!0,this.D.start())};
h.pause=function(){this.C&&c_(this)};
h.Cl=function(){};
h.iC=function(){this.A+=.2;this.Bl(this.A,this.K);this.aa("timeUpdate");0>=this.K-this.A&&(c_(this),this.aa("end"))};
h.Bl=v;h.V=function(){this.C=!1;this.J.dispose();b_.N.V.call(this)};B(e_,J);e_.prototype.F=function(){this.o?this.aa("videoUnmuteClicked"):this.aa("videoMuteClicked")};
e_.prototype.V=function(){this.D.dispose();this.D=null;e_.N.V.call(this)};B(f_,J);h=f_.prototype;h.V=function(){null!=this.H&&(this.H.dispose(),this.H=null);null!=this.J&&(this.J.dispose(),this.J=null);i_(this);null!=this.D&&(dh(this.D),this.D=null);null!=this.B&&(this.B=null);null!=this.o&&(dh(this.o),this.o=null);this.M.dispose();this.M=null;this.G.dispose();this.G=null;this.S=!1;f_.N.V.call(this)};
h.update=function(a,b){this.Y=b;if(!(0>=this.Y||null==this.A.skipOffset||0>vU(this.A.skipOffset))){var c=vU(this.A.skipOffset);c>=this.Y||3==this.C||(0>a?this.C=1:a<=c?(2!=this.C&&(h_(this,0),$Z(this.D,.5,"ease-out",0,1).play(),S(this.D,!0)),this.C=2):(3!=this.C&&(S(this.o,!0),this.J=new ZZ(this.D,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.H=$Z(this.o,.5,"ease-out",0,1),this.J.play(),this.H.play(),this.B.autofocus&&
this.B.focus(),this.G.R(lh(this.o),"mouseover",this.HD),this.G.R(lh(this.o),"mouseout",this.Xr),this.Xr()),this.C=3,this.aa("skipshown")))}2==this.C&&h_(this,a)};
h.skip=function(){return null==this.A.skipOffset||3!=this.C||this.O?!1:(this.O=!0,this.aa("PUBLISHER_INVOKED_SKIP"),!0)};
h.ZD=function(a){V()||a.stopPropagation();3!=this.C||this.O||(this.O=!0,this.aa("skip"))};
h.Xr=function(){null==this.F&&(this.F=Ud(function(){this.S=!0;$Z(this.o,.5,"ease-in",1,.5).play();this.F=null},this.S?5E3:15E3,this))};
h.HD=function(){or(this.o,1);i_(this)};
h.setVisible=function(a){null!=this.K&&S(this.K,a);null!=this.B&&S(this.B,a)};B(l_,J);h=l_.prototype;h.show=function(){null!=this.A&&S(this.A,!0)};
h.skip=function(){var a;if(a=null!=this.C)a=this.C,a=null!=a.A.skipOffset&&3==a.C;return a?this.C.skip():!1};
h.V=function(){null!=this.A&&(dh(this.A),this.A=null);m_(this);F(this.S,function(a){GR(a)});
this.S=[];this.D=null;this.B.dispose();this.B=null;this.ra=!1;l_.N.V.call(this)};
h.update=function(a,b,c,d,e){this.ra=!0;null!=this.A&&(null!=this.ia&&dha(this,a,c,d,e),null!=this.ca&&jr(this.ca,a/c*100+"%"),null!=this.ua&&jr(this.ua,b/c*100+"%"),0<c&&null!=this.o.skipOffset&&null!=this.C&&(wU(this.o.skipOffset,c),this.C.update(a,c)),this.o.G&&0<c&&5>c-a&&L(this.Y,"videoAdUiTopBarNoFade"),F(this.Ga,function(b){b.update(a,c)},this))};
h.Bw=function(){this.aa("videoAuthorIconClicked")};
h.Cw=function(){this.aa("videoAuthorClicked")};
h.Zp=function(){this.aa("videoLearnMoreClicked")};
h.WD=function(){this.aa("videoShareClicked")};
h.gE=function(){this.aa("videoTitleClicked")};
h.Uy=function(a){a.preventDefault()};
h.Lj=function(){this.aa("click")};
h.VD=function(){L(this.Y,"videoAdUiTopBarTransitions")};
h.tD=function(){var a=vh(this.A,"html5-video-player"),b=this.o.D;null!=a&&(b.C=new Am(b),b.A=new J,b.A.ng(this),b.F=a,b.ur(),b.A.aa("why_this_ad_url"));null!=this.C&&this.C.setVisible(!1)};
h.sE=function(){null!=this.C&&this.C.setVisible(!0)};h=q_.prototype;
h.ur=function(){var a={heading:"",targetingReasons:[],learnMore:"",Tk:"",control:"",mute:""};if(null!=this.D){a.heading=this.D.D;var b=this.D.A;if(b&&3==b.length){var c=b[1],d=b[2],b=cS(X(b[0])+GS()+X(c)+cS("</a>")+X(d));a.Tk=b}a.targetingReasons=sb(this.D.F);a.close=this.D.B}else a.Tk=HS(),b=sa("Got It"),a.close=""+b;null!=this.B&&(a.mute=this.B.C);s_(this,Qda,a);r_(this,"videoAdUiWhyThisAdCloseButton",this.pi);r_(this,"videoAdUiWhyThisAdControl",this.Ho);r_(this,"videoAdUiWhyThisAdMute",this.sD);
a=this.Ho;b=Og("videoAdUiWhyThisAdGenericMessage",this.o);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&this.C.R(b,"click",a))};
h.pi=function(){null!=this.C&&(this.C.dispose(),this.C=null);j_(this)&&null!=this.o&&(null!=this.A&&(this.A.aa("why_this_ad_got_it"),this.A.dispose(),this.A=null),this.o.parentElement.removeChild(this.o),this.o=null)};
h.Ho=function(){null!=this.A&&this.A.aa("why_this_ad_settings_url")};
h.sD=function(){if(null!=this.B){this.A.aa("mute_interaction_url");var a,b=VX(this.B);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},s_(this,Sda,a),r_(this,"videoAdUiMuteCancel",this.ur),r_(this,"videoAdUiMuteConfirm",this.Tw);else{this.A.aa("mute_url");a={heading:this.B.B,undo:this.B.F,question:this.B.D,options:[],confirm:"SEND",cancel:"CLOSE"};var c;c=this.B?(c=AU(this.B.o,"mute_undo_url"))&&0<c.length:!1;c||(a.undo="");for(c=0;c<b;c++)a.options.push(this.B.A[c].label);
s_(this,Rda,a);r_(this,"videoAdUiMuteUndo",this.jE);r_(this,"videoAdUiMuteConfirm",this.bE);r_(this,"videoAdUiMuteCancel",this.Gk)}}};
h.Tw=function(){this.A.aa("mute_url");this.Gk()};
h.jE=function(){this.A.aa("mute_undo_url");this.pi()};
h.bE=function(){if(null!=this.B){for(var a=VX(this.B),b=!1,c=0;c<a;c++){var d=Og("videoAdUiMuteOption"+c,this.o);if(null!=d&&d.checked){b=!0;aO(this.B.A[c].url);break}}if(!b)return}this.Gk()};
h.Gk=function(){this.A.aa("MUTE_AD");this.pi()};B(w_,b_);h=w_.prototype;h.start=function(){this.Cl();this.B.update(0,this.L);$Z(this.o,this.H.A,"ease-out",0,1).play();this.J.R(this.B,"skip",this.xw);w_.N.start.call(this)};
h.getContainer=function(){return this.o};
h.Cl=function(){var a=mr(this.o);if(1==this.G){var b=400>=(0,window.parseInt)(Xq(this.o,"width"),10)||400>=a.width;M(this.o,"videoAdUi-mobile",b)}else if(2==this.G){var c=ih(this.o),d=mr(c),e=65>=(a.height-d.height)/2;M(this.o,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;M(this.o,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
h.xw=function(){this.pause();this.aa("skip")};
h.Bl=function(a,b){this.B.update(a,b);if(this.F){var c=a_({wg:v_(b-a)});oh(this.F,c)}};
h.V=function(){this.B&&this.B.dispose();bh(this.o);w_.N.V.call(this)};B(x_,G);x_.prototype.o=function(a){if(KN.o){var b=AR(wR(),a.type,this.F);this.L(a.type,b)}else cfa(PW(),a.type,this.F,y(this.L,this,a.type))};
x_.prototype.L=function(a,b){var c=ec(b||{});if("timeout"==(c.viewability||"")){var d=this.J[a];null!=d&&(c.viewability=d)}null!=c.viewability&&(d=c.viewability,null!=d&&(this.A.VIEWABILITY=d));"impression"==a&&!this.K&&null!=this.G&&0<this.G.length&&(d=jb(this.H,"impression"),y_(this,this.G,{},d),this.K=!0);if(gha(this,a)){var d=KN.F&&jb(this.H,a),e=DU(this.C,a);0<e.length&&(y_(this,e,c,d),this.B.set(a,!0))}this.A.VIEWABILITY="na"};B(z_,J);z_.prototype.B=function(a){switch(a.type){case "companion_impression":this.aa(new FN("companionImpression",this.o));break;case "companion_click":this.aa(new FN("companionClick",this.o))}};B(A_,J);h=A_.prototype;h.ph=function(){var a=ib(this.ads,this.H);-1!=a&&++a<this.ads.length?this.H=this.ads[a]:this.H=null};
h.sj=function(){if(!B_(this)){if(kb(this.ads))throw hO(UZ);this.H=this.ads[0];if(null==this.H.o)throw gO(UZ);}};
h.oa=function(a,b){var c=B_(this)?Y(this):null;this.aa(new FN(a,c,b))};
h.HA=function(){};
h.jm=function(){};
h.destroy=function(){this.dispose()};
h.V=function(){B_(this)&&(TV(this.H,null),this.H=null);Mb(this.J);this.G=this.J=null;this.fa=!1;KN.o?wR().F=null:this.ua&&(PW().F=null);A_.N.V.call(this)};
h.je=function(){return[]};
h.getCurrentAd=function(){return this.ads[0]};
h.init=function(a){L_(this);this.Ri(a);this.Fa=!0;this.jh();if(KN.o){a=wR();var b=y(this.qp,this);a.F=b}else this.ua&&(a=PW(),b=y(this.qp,this),a.F=b)};
h.jh=function(){this.oa("loaded")};
h.sendImpressionUrls=function(a){B_(this)&&V()&&dO(OV(Y(this)),a)};
h.Rr=v;h.$c=function(a,b,c){if(!this.fa){if(null==a)throw hO(KS,null,"displayContainer");if(null!=c){var d=new Uj(Wb(this.B));if(!Te(Wb(c),d.contains,d))throw hO(KS,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.B;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.$g&&(c.$g=[]);jha(c.$g);if(!ga(c.loadVideoTimeout)||0>=c.loadVideoTimeout)c.loadVideoTimeout=15E3;hc(d,c)}this.content=b;this.C=a;this.sj();this.o=this.C.Oi(hha(this));this.fa=!0}};
h.ve=function(a){a=aU(AV(a),"rm")?a.K:OV(a);F(a,function(a){nb(this.D.G,a)},this)};
h.Qd=function(a,b){F(b,function(b){b=QU(a,b);BU(this.D.C,b)},this)};
h.lh=function(a){if(a instanceof vV){var b=wV(a);F(b.Qa(),function(a){var d=b.get(a);F(d,function(b){CU(this.D.C,a,b)},this)},this)}};
h.getCurrentTime=function(){return-1};
h.Jd=function(){return-1};
h.Qf=function(){return-1};
h.gd=function(a,b,c){this.Ri(c)};
h.pause=v;h.resume=v;h.skip=v;h.start=function(){L_(this);if(!this.Fa)throw gO(D_,null,"Must call init before start.");};
h.stop=function(){this.destroy()};
h.Al=function(){return null!=this.volume?this.volume:0};
h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&jO(this,KS,null,"volume",String(a));this.volume=a};
h.Ri=function(a){if(!Tb(xpa,a))throw hO(KS,null,"view mode",a);this.K=a};
h.getMediaUrl=function(){return null};
h.pp=function(){return null};
h.sp=function(){return null};
h.Ef=function(){return null};
h.qh=function(){J_(this,"abandon")};
h.qp=function(){return{currentTime:this.getCurrentTime(),duration:this.Jd(),isPlaying:null!=this.o?this.o.ob():!1,isVpaid:null!=this.getCurrentAd()?null!=sW(this.getCurrentAd()):!1,isYouTube:V(),volume:this.Al()}};
h.FD=function(a){F(rb(E$,Vb(G$)),function(b){var c=AU(a.o,b);kb(c)||this.xm(b,c)},this);
fha(this.D,a.K)};
h.xm=function(a,b){F(b,function(a){var b=a.getType();a=a.getUrl();CU(this.D.C,b,a)},this)};B(P_,A_);h=P_.prototype;h.start=function(){P_.N.start.call(this);this.C.nd();this.L=this.C.ge();if(null!=this.L){J_(this,"show_ad");bh(this.L);var a=this.to();KN.o?lda(wR(),a):$ea(PW(),a);this.L.appendChild(a);this.ni();F(this.da,function(a){a()});
lb(this.da);this.S=!0}};
h.gd=function(a,b,c){P_.N.gd.call(this,a,b,c);this.ni()};
h.V=function(){Mb(this.A);this.C=this.A=null;this.S=!1;KN.o?wR().C=null:PW().B=null;null!=this.L&&(bh(this.L),this.L=null);P_.N.V.call(this)};
h.to=function(){var a=Y(this).o;if(null==a)throw a=hO(UZ),R_(this,a),a;var b=Y(this);gV(a,G_(this));eV(a,this.Gx);a.D||fV(a,qa(this.vl,b,a));try{I_(this,b)}catch(d){throw R_(this,d),d;}this.ve(b);var c=qX(b,this.o);this.D.A=c;b.o&&(this.ve(b),(b=b.o)&&this.Qd(b,Zoa));this.Qd(a,["start"]);Q_(this,a);return this.$h([a.Xb()])};
h.tp=function(a,b){return new VZ(a[0],b)};
h.$h=function(a){null!=this.A&&this.A.stop();this.A=this.tp(a,y(this.yi,this));a=this.A.ma();M(a,"autoalign",this.B.po);V()&&M(a,"viewmode-fullscreen","fullscreen"==this.K);a.appendChild(this.ia);G_(this).R(a,"click",kc);(B_(this)&&hW(Y(this))||this.B.useStyledNonLinearAds)&&this.wk(this.A.o);return a};
h.wk=function(a){var b=G_(this);this.Z=XR(Xga);b.R(this.Z,"click",this.Wx);var c=sa("Close"),c=XR(Wga,{close:""+c});b.R(c,"click",this.Ii);L(a,"extra-padding");null!=this.la&&728<=this.la.getWidth()&&L(a,"wide-overlay-ad");a.appendChild(c)};
h.ni=function(a,b){if(null!=this.A){var c=a?a:0,d=b?b:0,e=mr(this.C.ge()),f;f=V()?mr(ih(this.A.o)):mr(this.A.o);if(f.width+c>e.width||f.height+d>e.height)throw c=hO(epa,null),R_(this,c),d={},d.pid=JW.getInstance().o,d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=Y(this).o.getContentType(),d.vm=this.K,xO.getInstance().o(38,d,!0),this.stop(),c;}};
h.Gx=function(a){K_(this,"click");kc(a)};
h.Ii=function(){J_(this,"close");this.yi(!0)};
h.vl=function(a,b){fV(b,v);this.S?this.mh(a,b):this.da.push(y(this.mh,this,a,b))};
h.mh=function(a){a=qX(a,this.o);this.D.A=a;K_(this,"impression");J_(this,"creativeview");K_(this,"start")};
h.yi=function(a){null!=this.A&&(this.A.stop(),null!=this.Z&&eh(this.Z,this.A.o),a?this.oa("userClose"):this.oa("autoClose"))};
h.Wx=function(a){kc(a);this.A.show();this.A.play();eh(this.A.o,this.Z);Ud(function(){S(this.ia,!1)},500,this);
S(this.ia,!0);this.oa("userRecall")};B(S_,P_);h=S_.prototype;h.tp=function(a,b){if(this.Y||null==b)b=v;var c;V()&&this.Y?c=new VZ(a[0],b):1<a.length?U_(this)||"fullscreen"==this.K&&V()?c=new YZ(a):(c=new XZ(a),c.P=15E3):c=new VZ(a[0],b);c.lp=100;this.Y&&(c.cq=30);c.fq=45E3;c.Br=6E3;M(c.o,"scalable",this.Y);M(c.ma(),"yt-text-overlay",V()&&this.Y);return c};
h.MD=function(a){var b=a.o;null!=b?(null==this.ha&&(this.ha=a.getExtension("AdSense").C),fV(b,qa(this.vl,a,b)),eV(b,qa(this.Hx,a,b)),"Text"==b.getContentType()&&(this.Y=!0),this.O.push(b)):(b=gO(UZ),b=pX(b,a),dO(NV(a),b))};
h.$c=function(a,b,c){S_.N.$c.call(this,a,b,c);this.B.po=!0;a=Y(this);kb(PV(a))?V()&&this.oa("companionBackfill"):I_(this,a)};
h.to=function(){null==this.O&&(this.O=[],F(this.ads,this.MD,this));if(0==this.O.length)throw hO(UZ);var a=[];F(this.O,function(b){gV(b,G_(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.wo=!0);a.push(b.Xb());zea(b,this.ha.F)},this);
if(0==a.length)throw hO(UZ);kha(this);return this.$h(a)};
h.start=function(){S_.N.start.call(this);!this.ea&&U_(this)&&(this.ea=!0,this.oa("contentPauseRequested"));null!=this.F&&this.F.start();if(this.S){var a=V_(this);xO.getInstance().o(33,a)}};
h.Ii=function(a){S_.N.Ii.call(this,a);F(this.O,function(a){var c=qX(a.getAd(),this.o);this.D.A=c;this.Qd(a,["close"]);J_(this,"close");this.D=new x_},this)};
h.yi=function(a){S_.N.yi.call(this,a);U_(this)&&(null!=this.L&&bh(this.L),this.ea&&(this.ea=!1,this.oa("contentResumeRequested")))};
h.$h=function(a){a=S_.N.$h.call(this,a);if(U_(this)){var b=QY(2);L(this.A.o,b);L(a,b)}return a};
h.wk=function(a){if(U_(this)){var b=lh(a);b&&((a=gh(a)[0])&&Uq(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").C||new dX,this.F=new w_(b,a,2,T_(this),!0),G_(this).R(this.F,"skip",this.Zx),G_(this).R(this.F,"end",this.Ky))}else S_.N.wk.call(this,a),b=XR(Yga,T_(this)),a.appendChild(b)};
h.vl=function(a,b){this.S?this.mh(a,b):this.da.push(y(this.mh,this,a,b));fV(b,v);this.oa("impression")};
h.mh=function(a,b){var c=qX(a,this.o);this.D.A=c;this.ve(a);this.Qd(b,["creativeview"]);J_(this,"impression");J_(this,"creativeview");K_(this,"start");this.D=new x_};
h.Hx=function(a,b,c){c=hr(c);a=a.getExtension("AdSense");a=new N(a.B);var d=b.getWidth();(0,window.isNaN)(d)&&(d=mr(b.Xb()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=mr(b.Xb()).height);b=QN();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.K,"sdkv=h.0.0.0","eids="+UN(b)];V()||(c=mr(this.C.ge()),d=this.F?eha(this.F):new re(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));bO(a,"elementclick",b);F(this.O,function(a){var b=qX(a.getAd(),this.o);this.D.A=b;Q_(this,
a);J_(this,"click");this.D=new x_},this);
this.oa("click")};
h.Ri=function(a){this.K!=a&&(S_.N.Ri.call(this,a),this.oa("expandedChanged"))};
h.ni=function(){S_.N.ni.call(this,this.F?15:0,this.F?65:0)};
h.Zx=function(){W_(this,"skip")};
h.Ky=function(){W_(this,"close")};var X_=["classid","data","movie","type","typemustmatch"];B(Y_,BE);h=Y_.prototype;h.rk="sameDomain";h.setSize=function(a,b){this.J=w(a)?a:Math.round(a)+"px";this.C=w(b)?b:Math.round(b)+"px";this.ma()&&kr(Z_(this),this.J,this.C);return this};
h.Cf=function(){Y_.N.Cf.call(this);for(var a=this.ma(),b=this.A.Qa(),c=this.A.Oa(),d=[],e=0;e<b.length;e++)d.push(wa(b[e])+"="+wa(c[e]));var b=d.join("&"),f;if(Tg&&!yc(11)){d=this.K;c={allowFullScreen:"true",AllowScriptAccess:this.rk,allowNetworking:"all",bgcolor:"#000000",FlashVars:b,quality:"high",SeamlessTabbing:"false",wmode:"window"};b={"class":"goog-ui-media-flash-object",id:this.getId(),name:this.getId()};lha(b,c);e={allownetworking:"none",allowscriptaccess:"never",movie:d};d={};for(f in e)d[f]=
e[f];for(f in c){var k=f.toLowerCase();k in e&&delete d[k];d[f]=c[f]}c=[];for(f in d)c.push(Fg("param",{name:f,value:d[f]}));f=Gg({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);f=Fg("object",f,c)}else f={AllowScriptAccess:this.rk,allowFullScreen:"true",allowNetworking:"all",bgcolor:"#000000","class":"goog-ui-media-flash-object",FlashVars:b,id:this.getId(),name:this.getId(),quality:"high",SeamlessTabbing:"false",wmode:"window"},f=Gg({src:this.K,type:"application/x-shockwave-flash",pluginspage:"https://www.macromedia.com/go/getflashplayer"},
{allownetworking:"none",allowscriptaccess:"never"},f),f=Fg("embed",f);a.innerHTML=xg(f);this.J&&this.C&&this.setSize(this.J,this.C);this.B.R(this.ma(),Vb(Koa),kc)};
h.Hi=function(){if(null!=this.M&&!(0<=Ta(BP,this.M)))throw Error("Method not supported");var a=this.F.createElement("DIV");a.className="goog-ui-media-flash";this.o=a};
h.V=function(){Y_.N.V.call(this);this.A=null;this.B.dispose();this.B=null};B($_,A_);var ypa=ug(gg(hg("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));ug(gg(hg("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));h=$_.prototype;h.V=function(){this.Y=!1;this.A&&this.A.dispose();Vd(this.Z);this.L&&this.oa("contentResumeRequested");this.oa("allAdsCompleted");$_.N.V.call(this)};
h.Qf=function(){var a=this.Ub("getAdRemainingTime");return ga(a)?a:-1};
h.Al=function(){var a=this.Ub("getAdVolume");return ga(a)?a:-1};
h.$c=function(a,b,c){$_.N.$c.call(this,a,b,c);this.L=Y(this).o instanceof vV};
h.init=function(a){$_.N.init.call(this,a);window[this.la]=y(this.lx,this);G_(this).R(PW(),F$,this.Ny);this.A=new Y_(ypa);this.A.setSize(this.ea,this.da);this.A.rk="always";a=Y(this);a=null===a.o?null:a.o.Ui();C(E(a))?(b0(this,W0,Error("Flash VPAID ad url is empty.")),this.stop()):(this.A.A.set("vpaid",a),this.A.A.set("vpaidEventHandler",this.la),this.C.nd(),this.A.render(this.C.ge()),this.Z=Ud(this.hB,this.B.loadVideoTimeout,this))};
h.start=function(){if(this.Y){$_.N.start.call(this);var a=Y(this);this.D.F=a.fa;var b=qX(a);this.D.A=b;if(b=a.o)this.ve(a),this.Qd(b,E$),this.lh(b),N_(this,a);this.C.nd();J_(this,"show_ad");this.F=new Sd(250);G_(this).R(this.F,"tick",this.Tz);this.F.start();this.Ub("startAd");this.L?this.oa("contentPauseRequested"):(this.oa("contentResumeRequested"),a0(this))}else this.ia=!0};
h.stop=function(){this.na||(this.na=!0,this.Ub("stopAd"),this.C.ka(),null!=this.F&&(this.F.stop(),this.F=null),$_.N.stop.call(this))};
h.gd=function(a,b,c){$_.N.gd.call(this,a,b,c);this.ea=a;this.da=b;this.Ub("resizeAd",a,b,c)};
h.pause=function(){null!=this.F&&this.F.stop();this.Ub("pauseAd")};
h.resume=function(){null!=this.F&&this.F.start();this.Ub("resumeAd")};
h.setVolume=function(a){this.Ub("setAdVolume",a)};
h.jh=function(){};
h.skip=function(){this.Ub("skipAd")};
h.Jd=function(){var a=this.Ub("getAdDuration");if(ga(a))return a;a=this.Qf();return 0<=a?this.S/1E3+a:-2};
h.isLinear=function(){var a=this.Ub("getAdLinear");return fa(a)?a:this.L};
h.Tz=function(){this.S+=250};
h.Ub=function(a){if(!this.A||!Z_(this.A))return null;for(var b=Z_(this.A),c=[],d=0;d<arguments.length;d++)c.push(arguments[d]);var d=c.shift(),e=!1;this.Y&&(e=!0);if("handshakeVersion"==d||"initAd"==d)e=!0;if(e)try{if(null!=b[d])return b[d].apply(b,c)}catch(f){}return null};
h.Ny=function(a){var b=a.type;if(jb(F$,b)){if("externalActivityEvent"==b&&(b=a.o.eventName,!G$[b]))return;K_(this,b)}};
h.hB=function(){b0(this,H$,null,(this.B.loadVideoTimeout/1E3).toString());this.stop()};
h.getCurrentTime=function(){return this.S/1E3};
h.lx=function(a,b){switch(a){case "flashReady":this.Ub("handshakeVersion","2.0");var c=QV(Y(this));Z_(this.A).initAd(this.ea,this.da,this.K,this.B.bitrate,c);break;case "AdLoaded":Vd(this.Z);this.Y=!0;var c=this.Ub("getAdCompanions"),d=w(c)?c:"",c=Y(this);kb(PV(c))&&(d=yY(d,c.o.o),kb(d)||yV(c,d));K_(this,"loaded");this.ia&&(this.ia=!1,this.start());break;case "AdStarted":J_(this,"impression");J_(this,"creativeview");this.oa("start");break;case "AdVideoStart":J_(this,"start");break;case "AdClickThru":b&&
b.playerHandles&&((c=b.url)||(c=E(SV(Y(this)))),null!=c&&$N(c));J_(this,"click");this.oa("click");break;case "AdDurationChange":this.oa("durationChange");break;case "AdRemainingTimeChange":this.oa("durationChange");a0(this);break;case "AdError":c="AdError";b&&(c=b.message);b0(this,W0,Error(c));this.stop();break;case "AdExpandedChange":this.oa("expandedChanged");break;case "AdImpression":c=Y(this);kb(PV(c))||I_(this,c);this.oa("impression");break;case "AdLinearChange":c=this.isLinear();!this.L&&c?
(this.oa("contentPauseRequested"),Vd(this.ha)):this.L&&!c&&(this.oa("contentResumeRequested"),a0(this));this.L=c;d=this.H;d.ha=!0;d.ia=c;this.oa("linearChanged");break;case "AdVolumeChange":c=b.volume;c!=this.O&&(c!=this.O&&this.oa("volumeChange"),0==c&&0!=this.O?(J_(this,"mute"),this.oa("mute")):0==this.O&&0!=c&&J_(this,"unmute"),this.O=c);break;case "AdPaused":K_(this,"pause");break;case "AdUserClose":K_(this,"userClose");break;case "AdUserMinimize":J_(this,"collapse");break;case "AdVideoFirstQuartile":K_(this,
"firstquartile");break;case "AdVideoMidpoint":K_(this,"midpoint");break;case "AdVideoThirdQuartile":K_(this,"thirdquartile");break;case "AdVideoComplete":K_(this,"complete");break;case "AdUserAcceptInvitation":this.L?J_(this,"acceptinvitationlinear"):J_(this,"acceptinvitation");break;case "AdStopped":J_(this,"stop");this.stop();break;case "AdSkipped":K_(this,"skip");break;case "AdSkippableStateChange":K_(this,"skippableStateChanged");break;case "AdPlaying":K_(this,"resume");break;case "AdLog":this.oa("log")}};B(c0,FN);e0.prototype.videoCount=0;f0.prototype.isListed=!0;B(h0,b_);var g0=Math.ceil(10*3.14);h0.prototype.H=function(a){V()||a.stopPropagation();this.aa("click")};
h0.prototype.start=function(){h0.N.start.call(this);this.F&&(this.L&&780<=mr(this.M).width&&this.F.yp(!0),this.F.wp())};
h0.prototype.Bl=function(a,b){var c=a/b*g0+" "+g0;null!=this.o&&Uq(this.o,"stroke-dasharray",c)};B(i0,G);i0.prototype.show=function(a,b){j0(this);YI&&a?(a.appendChild(this.B),this.o=Ud(y(this.A,this,b),2E3)):b()};
i0.prototype.A=function(a){this.o=0;dh(this.B);a()};
i0.prototype.V=function(){j0(this);i0.N.V.call(this)};B(k0,jc);B(l0,J);m0.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var pha={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};h=l0.prototype;h.V=function(){n0(this);l0.N.V.call(this)};
h.CB=function(a){var b=a.o;this.C.J.measurable_impression=null!=b?b.viewabilityString:null;a.o.queryId==this.G&&o0(this,"measurable_impression",!0,!1)};
h.iD=function(a){a=a.o;a.queryId==this.G&&(this.C.J.viewable_impression=null!=a?a.viewabilityString:null,o0(this,"viewable_impression",!0,!0))};
h.fB=function(a){a=a.o;var b=G$[a.eventName];b&&a.queryId==this.G&&(this.C.J[b]=null!=a?a.viewabilityString:null,o0(this,b,!0,!0))};
h.lz=function(){var a=this.o.Kd();if(-1!=a){this.o.Og(.25*a)&&o0(this,"firstquartile",!0,!0);this.o.Og(.5*a)&&o0(this,"midpoint",!0,!0);this.o.Og(.75*a)&&o0(this,"thirdquartile",!0,!0);var b=this.C,c=this.o.getCurrentTime();if(!b.M||!Le(b.B,"skip")){0>b.D&&(nea(b.C,a),b.D=0);for(var a=AU(b.C,"progress"),d=b.D;d<a.length;d++){var e=a[d];if(vU(e.o)>c)break;b.D=d+1;aO(e.getUrl(),b.A)}}}p0(this)};
h.kz=function(){this.K=!0;o0(this,"impression",!0,!0);o0(this,"creativeview",!0,!0);null!=this.L||null!=this.B||this.A.R(this.o,"click",this.Nl);null!=this.L&&(this.F=new DR,this.A.R(this.F,"click",this.Nl,!1),ER(this.F,this.L));null!=this.B&&(this.H=new DR,this.A.R(this.H,"click",this.Nl,!1),ER(this.H,this.B));o0(this,"start",!0,!0);(this.o.Rf()||0==this.o.Ld())&&o0(this,"mute",!1,!1)};
h.mz=function(){var a=this.o.Rf(),b=this.o.Ld(),c=this.D;c.mute&&!a||!a&&0==c.volume&&0<b?o0(this,"unmute",!1,!1):this.D.muted(a,b)&&o0(this,"mute",!1,!1);this.D.mute=a;this.D.volume=b};
h.iz=function(){this.o.af()?q0(this):this.o.Sf()&&!this.o.xp()&&(this.D.o=!0,o0(this,"pause",!1,!1))};
h.jz=function(){this.D.o&&(this.D.o=!1,o0(this,"resume",!1,!1))};
h.ez=function(){q0(this)};
h.Nl=function(){o0(this,"click",!1,!1)};
h.fz=function(){o0(this,"error",!1,!1)};
h.hz=function(){o0(this,"mediaLoadTimeout",!1,!1)};
h.jr=function(){o0(this,"skipshown",!0,!1)};
h.vx=function(a){o0(this,a.type,!1,!1)};
h.WC=function(a){this.aa(a)};
h.hD=function(){o0(this,"videoShareShown",!0,!1)};
h.Hp=function(){o0(this,"skip",!0,!1)};
h.jC=function(){o0(this,"skip",!0,!1)};
h.gz=function(){o0(this,"fullscreen",!1,!1)};
h.eB=function(){o0(this,"exitfullscreen",!1,!1)};B(r0,A_);h=r0.prototype;h.V=function(){v0(this);this.Ja.dispose();t0(this);F(this.la.Oa(),Vd);var a=!1;null!=this.C&&(a=this.C.yl(),this.C.ka(),this.C=null);this.Z&&(this.Z=!1,this.o.Sf()||this.o.af()||this.o.pause(),pO()&&!a&&(this.o.Tf(.001),this.o.load("","")),oO()&&this.o.ke()&&!a&&this.o.El(),this.oa("contentResumeRequested"),this.oa("allAdsCompleted"));r0.N.V.call(this)};
h.sj=function(){r0.N.sj.call(this);Y(this).B.sb("desktop_block_progress_events_after_ad_skip")&&(this.D=new x_(!0),this.O=new l0(this.D))};
h.ph=function(){t0(this);r0.N.ph.call(this);B_(this)&&(this.D=new x_(Y(this).B.sb("desktop_block_progress_events_after_ad_skip")),this.O=new l0(this.D),this.ea=!1,this.oa("loaded"))};
h.jm=function(a){r0.N.jm.call(this,a);null!=this.o&&SN(QN(),9419278)&&this.o.Em(1)};
h.Jo=function(a,b){b.preventDefault();this.Y||(this.Y=!0,K_(this,"video_card_endcap_action"));a&&(this.F.pause(),$N(a))};
h.Ko=function(){s0(this,function(){w0(this,"video_card_endcap_dismiss")})};
h.gx=function(){w0(this,"video_card_endcap_collapse")};
h.zz=function(a,b,c){if(!this.ia){this.ia=!0;var d=IR(b);d&&(a.F=d);if(this.B.useVideoAdUi){var d=a.getExtension("AdSense"),e;(e=this.Ga||a.B.sb("show_ads_pay_this_creator_info_card"))||(e=null===b?!1:"modules"==(new N(b)).Xe().toLowerCase()||KR(b));e=e||null!=d&&d.H;var d=mW(a)?null:EV(a),f;if(V()||uO())f=0;else{if(f=mO()){a:{for(f=0;f<this.ads.length;++f)if(!M_(this.ads[f])){f=!1;break a}f=mO()}f=!f||null==this.C||!this.C.Ok()}f=f||uW(a)||this.B.Zm}if(f||!V()&&e)this.B.Ym=!0,this.B.Zm=!0;if(V()||
this.B.Zm){f=this.B;var k=C(E(SV(a)))?!1:this.B.Ym,m=V()||!1,l=V();M_(a);d=u_(e,a.F,d,f);d.B=k;d.M=f.oE;d.P=m;d.L=!0;d.J=l;d.C=f.Xm;d.O=f.useShareButton;d.Y=f.pE;d.da=0;f.Xm&&(d.dg=""+sa("Visit Advertiser"))}else LV(a)?(f=a.F,!C(E(f))&&null!==d&&0<vU(d)&&(e=!0),d=u_(e,f,d,this.B),d.H=e?Nda:Mda):(d=u_(e,a.F,d,this.B),d.S=!1,d.F=!1,d.o=!1);e=this.C.Fi();null===e?e=window.document.body:bh(e);f=Y(this);var k=1E3*lW(f),m=f.getExtension("why_this_ad"),l=f.getExtension("mute"),n=f.B.sb("enable_why_this_ad_for_desktop");
d.D=new q_(m,l,n);j_(d.D)&&(l=null!=m?m.C:void 0,m="<span class='videoAdUiAdSettingsShortTooltip'>",l?m+=X(l):(l=sa("Click for Ad Settings"),m+=l),m=cS(m+"</span>"),d.Ne=m);this.A=new l_(d,e,k);e=f.F;null!=e&&(x0(this),d.Y&&N0(this,e));e=this.A;e.M&&(e=e.M,f=0==this.S,e.o!=f&&(e.o=f,d_(e)));this.Ga&&(f=a.getExtension("AdSense"),null!=f?(e=this.A,f=E(f.A),null!=e.H&&(S(e.H,!0),f=new N(f),f=(f.A+f.B).replace(/^www\./i,""),C(E(f))?n_(e):oh(e.H,f)),null!=e.O&&S(e.O,!0)):n_(this.A));e=[];d.F&&e.push("adAttribution");
d.o&&e.push("countdown")}else d&&this.B.uk&&(x0(this),N0(this,d));d=this.O;e=this.o;f=this.C.Wk();k=this.A;n0(d);d.C.F=a.fa;d.o=e;d.B=k||null;d.o.Si();d.D=new m0(d.o);d.L=f||null;d.A=new Am(d);d.G=a.fa;e=KN.o?wR():PW();d.A.R(e,"externalActivityEvent",d.fB);d.A.R(e,"measurable_impression",d.CB);d.A.R(e,"viewable_impression",d.iD);d.A.R(d.o,"timeUpdate",d.lz);d.A.R(d.o,"volumeChange",d.mz);d.A.R(d.o,"pause",d.iz);d.A.R(d.o,"play",d.jz);d.A.R(d.o,"end",d.ez);d.A.R(d.o,"beginFullscreen",d.gz);d.A.R(d.o,
"endFullscreen",d.eB);d.A.R(d.o,"skip",d.Hp);d.A.R(d.o,"skipShown",d.jr);d.A.R(d.o,"start",d.kz);d.A.R(d.o,"error",d.fz);d.A.R(d.o,"mediaLoadTimeout",d.hz);null!=d.B&&(d.A.R(d.B,"urlNavigationRequested",d.WC),d.A.R(d.B,"videoShareShown",d.hD),d.A.R(d.B,"skipshown",d.jr),d.A.R(d.B,"skip",d.Hp),d.A.R(d.B,"PUBLISHER_INVOKED_SKIP",d.jC),d.A.R(d.B,"MUTE_AD videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoTitleClicked videoShareClicked videoUnmuteClicked why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),
d.vx));G_(this).R(this.O,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.pr);G_(this).R(this.o,"loaded",this.fD);G_(this).R(this.o,"cardsStateChange",this.Oy);G_(this).R(this.o,"timeUpdate",this.sr);G_(this).R(this.o,"volumeChange",this.Ry);G_(this).R(this.o,"shareClicked",this.Qr);this.ve(a);d=qX(a,this.o);this.D.A=d;d=a.o;
null!=d&&d instanceof vV&&(this.Qd(d,E$),this.lh(d),d=G_(this),Dm(d,this.O,"error",this.Py,this),Dm(d,this.O,"mediaLoadTimeout",this.Qy,this));N_(this,a);null!=EV(a)&&(this.O.J=30);this.o.Jm(sha(this,a));this.o.load(b,c)}};
h.vD=function(a,b,c){null!==a.J&&xO.getInstance().o(34,{evt:"filled"},!0);this.ra||(this.ra=!0,this.oa("contentPauseRequested"));this.Z=!0;this.zz(a,b,c);J_(this,"show_ad");this.setVolume(this.S);this.A&&(C(E(A0(a)))?(b=this.A,null!=b.D&&(b.B.za(b.D,"click",b.Lj),Uq(b.D,"cursor","default"))):(b=this.A,null!=b.D&&(b.B.R(b.D,"click",b.Lj),Uq(b.D,"cursor","pointer"))),b=a.o.ua,kb(b)||cha(this.A,b),this.A.show());this.C.ah();try{I_(this,a)}catch(d){F0(this,H_,d);return}JW.getInstance().end("pi");JW.getInstance().start("bt");
this.Ja.show(this.C.Fi(),y(this.o.play,this.o))};
h.jh=function(){tha(this);this.oa("loaded");this.aa(new c0(Y(this)))};
h.skip=function(){B_(this)&&null!=EV(Y(this))&&(null!=this.A?this.A.skip():(J_(this,"skip"),M0(this)))};
h.Rr=function(){K_(this,"skipshown")};
h.start=function(){r0.N.start.call(this);JW.getInstance().start("pi");this.da=[];try{var a=Y(this);this.L=C0(this,a);s0(this,y(r0.prototype.vD,this,a,this.L.getUrl(),this.L.o))}catch(b){E0(this,b),this.ph(),B_(this)?(iO(hO,this,G0,b,void 0),this.start()):(this.Z?iO(hO,this,G0,b,void 0):(null!=this.G&&DW(this.G,yW()),jO(this,G0,b)),this.stop())}};
h.Al=function(){L_(this);return this.o.Rf()?0:this.o.Ld()};
h.setVolume=function(a){L_(this);this.Z?this.o.setVolume(a):this.S=a};
h.pause=function(){L_(this);this.F?this.F.pause():this.o.pause()};
h.resume=function(){L_(this);this.F?this.F.play():this.o.play()};
h.getCurrentTime=function(){L_(this);var a=this.F?this.F.A:0;return this.o.getCurrentTime()+a};
h.Jd=function(){L_(this);var a=B_(this)?rW(Y(this)):0;return this.o.Kd()+a};
h.Qf=function(){L_(this);var a=this.Jd(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
h.Ef=function(){return this.o.Ef()};
h.Py=function(){this.o.getError();F0(this,G0,hO(G0,this.o.getError()))};
h.Qy=function(){F0(this,H$,hO(H$,null,(this.B.loadVideoTimeout/1E3).toString()))};
h.xm=function(a,b){r0.N.xm.call(this,a,b);I0(this,a)};
h.pr=function(a){switch(a.type){case "start":Cha(this);Tea();this.oa("start");iha(this);break;case "impression":this.oa("impression");break;case "why_this_ad_url":this.Ka=this.o.Sf();D0(this,"why_this_ad_url");this.pause();break;case "pause":this.oa("pause");break;case "why_this_ad_got_it":D0(this,"why_this_ad_got_it");this.Ka||this.resume();break;case "resume":this.oa("resume");break;case "firstquartile":this.oa("firstquartile");break;case "midpoint":this.oa("midpoint");break;case "thirdquartile":this.oa("thirdquartile");
break;case "complete":rha(this)||(this.oa("complete"),J_(this,"instreamAdComplete"),u0(this));break;case "click":this.A&&this.A.o.B?this.o.Sf()?this.resume():this.pause():H0(this);break;case "engagedview":J0(this);this.oa("engagedview");break;case "urlNavigationRequested":this.aa(a);break;case "videoAuthorIconClicked":P0(this);break;case "videoAuthorClicked":P0(this);break;case "videoClicked":this.oa("videoClicked");break;case "videoLearnMoreClicked":this.F&&!this.Y&&(this.Y=!0,K_(this,"video_card_endcap_action"));
this.o.pause();SN(QN(),41351017)&&J0(this);H0(this);break;case "videoShareClicked":yha(this);break;case "videoShareShown":zha(this);break;case "videoTitleClicked":Aha(this);break;case "videoMuteClicked":this.na=this.S;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.na);break;case "skipshown":this.oa("skippableStateChanged");break;case "skip":this.F?this.Ko():M0(this);break;case "MUTE_AD":this.oa("MUTE_AD"),s0(this,function(){u0(this)})}};
h.Qr=function(){var a=K0(this)||L0(this);null!=a&&bO(a,"sharebuttonclicked")};
h.ve=function(a){r0.N.ve.call(this,a);I0(this,"impression")};
h.Qd=function(a,b){r0.N.Qd.call(this,a,b);F(b,function(a){I0(this,a)},this)};
h.lh=function(a){r0.N.lh.call(this,a);a instanceof vV&&(a=wV(a),F(a.Qa(),function(a){I0(this,a)},this))};
h.pp=function(){if(!B_(this))return null;try{return C0(this,Y(this)).getUrl()}catch(a){return null}};
h.getMediaUrl=function(){if(!B_(this))return null;var a=Y(this);if(!F_(a))throw hO(B0);a=a.o.M;return kb(a)?null:a[0].getUrl()};
h.fD=function(){this.oa("adCanPlay")};
h.Oy=function(){var a=this.A;null!=a.A&&M(a.A,"ytp-iv-drawer-open",this.o.up())};
h.sr=function(){var a=this.Jd(),b;L_(this);b=this.F?this.Jd():this.o.vp();var c=this.getCurrentTime(),d=0,e=0;B_(this)&&(e=Y(this),d=e.C.A,e=e.C.C);if(null!=this.A&&0<=a&&0<=c){if(!this.ha&&3==Y(this).ua){var f=this.o.Kd(),k=pW(Y(this)),f=Math.abs(f-k);2<f&&(f=hO(hpa,null,Number(f).toFixed(2)),f=pX(f,Y(this),this.o),k=NV(Y(this)),dO(k,f));this.ha=!0}this.A.update(c,b,a,d,e)}};
h.Ry=function(){var a=this.o.Ld();if(a!=this.S&&(this.S=a,this.oa("volumeChange"),0==a&&this.oa("mute"),this.A)){var b=this.A;b.M&&(b=b.M,a=0==a,b.o!=a&&(b.o=a,d_(b)))}};
h.Ix=function(a){var b=a.o;if("companion-setup-complete"==b.data){a=Y(this);var c=(0,window.encodeURIComponent)(E(SV(a)))+","+(0,window.encodeURIComponent)((K0(this)||L0(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=SV(a)?210:185}else"pause-video"==b.data&&this.pause()};B(Q0,jc);B(R0,A_);h=R0.prototype;
h.init=function(a){R0.N.init.call(this,a);G_(this).R(window,"message",this.jD);G_(this).R(this.ha,"tick",this.xD);a=KN.o?wR():PW();G_(this).R(a,F$,this.Sy);if(this.O)this.aa(new Q0(0,this.S));else{a=sW(Y(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.B.contentId&&(a=nf(a,"v",this.B.contentId));V()&&(b=(b=kf(a,"st"))?b+" yt":"yt",Y(this).B.sb("remove_survey_nota_line")&&(b+=
" ytexp-no-nota-line"),Y(this).B.sb("enable_0s_skip_for_surveys")&&(b+=" ytexp-0s-skip"),a=nf(a,"st",b))}a=E(a)}else{var b=new N(a),c=new N("http://tpc.googlesyndication.com/pagead/js/loader12.html");"https"==b.C&&of(c,"https");this.Ka=b.A;a=sf(c,a||"",void 0).toString()}this.L=O("iframe",{src:ZN(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});G_(this).R(this.L,"load",this.Xw);
this.C.ge().appendChild(this.L)}};
h.$c=function(a,b,c){R0.N.$c.call(this,a,b,c);this.F=Y(this).o instanceof vV;this.A=a.Oi(!1);this.na=Ud(this.Ty,this.B.loadVideoTimeout,this);this.O||(G_(this).R(this.A,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.pC),G_(this).R(this.A,I$,this.FA))};
h.stop=function(){this.ha.stop();this.C.ka();R0.N.stop.call(this)};
h.isLinear=function(){return 1==this.F};
h.start=function(){R0.N.start.call(this);if(!V()){var a={};a.pid=JW.getInstance().o;a.dn=this.Ka;a["if"]=this.O;xO.getInstance().o(29,a,!0)}a=Y(this);this.D.F=a.fa;var b=qX(a,this.A);this.D.A=b;if(b=a.o)this.ve(a),this.Qd(b,E$),this.lh(b),N_(this,a);this.A.Si();J_(this,"show_ad");this.C.nd();null!=this.L&&(this.L.style.display="block");this.Ja=!0;this.F&&this.oa("contentPauseRequested");X0(this)};
h.gd=function(a,b,c){R0.N.gd.call(this,a,b,c);U0(this,"resizeAd",{width:a,height:b,viewMode:c})};
h.pause=function(){this.da||U0(this,"pauseAd")};
h.resume=function(){this.da&&U0(this,"resumeAd")};
h.setVolume=function(a){R0.N.setVolume.call(this,a);U0(this,"setAdVolume",{value:a})};
h.V=function(){this.O&&this.aa(new Q0(0,this.S));dh(this.L);this.F&&this.oa("contentResumeRequested");this.oa("allAdsCompleted");this.la=!1;this.ea=[];Vd(this.na);this.ha.dispose();R0.N.V.call(this)};
h.jh=function(){};
h.Xw=function(){if(!this.O){var a=this.A.il();kb(a)&&(a=this.B.$g);U0(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}T0(this)};
h.jD=function(a){a=a.o;if(this.O){if(a=VS(a.data),null!=a){try{var b=de(a.data)}catch(c){return}null!=b&&b.session==this.S&&Y0(this,b)}}else if(a.source==this.L.contentWindow){try{b=de(a.data)}catch(c){return}b.session==this.S&&Y0(this,b)}};
h.Ty=function(){V0(this,H$,null,(this.B.loadVideoTimeout/1E3).toString());this.stop()};
h.Sy=function(a){var b=a.type;if(jb(F$,b)){if("externalActivityEvent"==b&&(b=a.o.eventName,!G$[b]))return;K_(this,b)}};
h.pC=function(a){switch(a.type){case "timeUpdate":a=this.A.Kd();var b=this.A.getCurrentTime();S0(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":Z0(this,"ended");break;case "loaded":Z0(this,"loadstart");break;case "mediaLoadTimeout":Z0(this,"stalled");break;case "play":Z0(this,"playing");break;default:Z0(this,a.type)}};
h.FA=function(a){a=a.type;"loadedmetadata"==a?(a=this.A.Kd(),S0(this,"wrapperCall",{messageType:"loadedmetadata",duration:a})):Z0(this,a)};
h.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
h.Jd=function(){return this.Z};
h.Qf=function(){return this.ia};
h.xD=function(){U0(this,"getAdRemainingTime")};h=$0.prototype;h.Wk=function(){return this.o.Wk()};
h.Fi=function(){return this.o.Fi()};
h.ge=function(){return this.o.ge()};
h.Oi=function(a){return this.o.Oi(a)};
h.setSize=function(a,b){this.o.setSize(a,b)};
h.Ok=function(){return this.o.Ok()};
h.yl=function(){return this.o.yl()};
h.zl=function(){return this.o.zl()};
h.Pi=function(){return this.o.Pi()};
h.ka=v;h.ah=v;h.nd=v;B(a1,J);h=a1.prototype;h.init=function(a,b,c){b1(this,a,b,c);null==this.H&&(this.H=new Am(this),Dm(this.H,this.K,"adsLoaderSdkAdError",this.Qz,this));e1(this)};
h.start=function(){this.L=!0;Fha(this);0<this.A.length?j1(this):("always"==KN.A&&null!=this.Y&&DW(this.Y,yW()),iO(gO,this,FY,void 0,void 0),0==this.tc&&this.aa("contentResumeRequested"),k1(this))};
h.destroy=function(){null!=this.H&&(this.H.dispose(),this.H=null);f1(this);KN.A=this.S;this.L=!1};
h.getCurrentAd=function(){return this.C<this.A.length?this.A[this.C].o[0]:null};
h.ob=function(){return this.L};
h.pause=function(){null!=this.o&&this.o.pause()};
h.resume=function(){null!=this.o&&this.o.resume()};
h.skip=function(){null!=this.o&&this.o.skip()};
h.qh=function(){null!=this.o&&this.o.qh()};
h.getCurrentTime=function(){return null!=this.o?this.o.getCurrentTime():-1};
h.setVolume=function(a){null!=a&&(this.M=a,null!=this.o&&this.o.setVolume(this.M))};
h.rq=function(a){KN.A=this.S;var b=a.D;kb(b)?this.F++:(a=a.C,a.o&&F(b,function(a){a.Xa=!1},this),this.O=Eha(this,b),nb(this.A,new efa(b,a.o,a.A)),this.F++,this.H.za(this.K,"adsLoaderSdkAdLoaded",this.rq,!1,this));
e1(this)};
h.Qz=function(a){a=a.o;KN.A=this.S;a.getMessage();iO(gO,this,FY,void 0,void 0);this.F++;if(!c1(this)||2<=this.A.length-this.C)a=gO(FY),this.aa(new EN(a));e1(this)};
h.QB=function(){f1(this);k1(this)};
h.Sz=function(a){var b=a.getError().getErrorCode();try{var c={};c.ec=b;xO.getInstance().o(44,c)}catch(d){}a.getError();this.C++;j1(this)};
h.Jy=function(){this.aa("userClose")};
h.Gy=function(){this.aa("autoClose")};
h.Iy=function(){this.C++;j1(this)};
h.Hy=function(){this.ha||(this.aa("contentPauseRequested"),this.ha=!0)};
h.sq=function(a){if("impression"==a.type)try{xO.getInstance().o(44,{imp:!0})}catch(b){}"vpaidEvent"!=a.type&&Gha(this,a.type,a.getAd());this.aa(a)};B(m1,jc);B(n1,J);n1.prototype.getCurrentTime=function(){return this.o.currentTime};
n1.prototype.D=function(){if(this.A){var a=this.o.currentTime;if((0,window.isNaN)(a)||0>a)r1(this);else{var b=Kha(this,a);this.F?F(b,function(a){q1(this,!0,a)},this):q1(this,!0,cb(b));
q1(this,!1,Lha(this,a))}}};
n1.prototype.G=function(){r1(this)};B(s1,G);s1.prototype.A=function(){return this.o};B(SZ,A_);h=SZ.prototype;
h.$c=function(a,b,c){null!=this.F&&(p1(this.F),this.F.dispose(),this.F=null);SZ.N.$c.call(this,a,b,c);var d=this.ia.o.Qa();b=new lT(b);var e=4;c&&0<=c.um&&(e=c.um);this.ra=null!=c?c.vr:0;this.F=new n1(b,d,{prefetch:e});var f=1,k=0;F(d,function(b){if((0,window.isNaN)(b))throw gO($W,null,"timeOffset",String(b));var c=ga(b)&&!(0,window.isNaN)(b)?this.ia.o.get(b,[]):[];if(!kb(c)){k+=c.length;var d;d=0==b||-1==b?b:f++;c=new a1(c,b,d,this.Z,a,this.B,this.G);if(Le(this.M,b))throw gO(fpa,null,"Multiple ad breaks cannot share same ad play time.");
this.M.set(b,c)}},this);
this.O=cb(d);zh(d,function(a){if(-1==a)return this.O=a,!0;this.O=this.O<a?a:this.O;return!1},this);
try{c={cfg:!0},c.ads=k,xO.getInstance().o(44,c)}catch(m){}};
h.init=function(a){SZ.N.init.call(this,a);null!=this.F&&(x1(this),a=G_(this),Dm(a,this.F,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),Dm(a,this.F,"adBreakReady",this.Oz,this),Dm(a,this.Z,"contentComplete",this.OA,this),this.Z.o=!1,a=this.F,a.A||(null==a.C&&(a.C=new Am(a)),a.C.R(a.o,"currentTimeUpdate",a.D,!1),a.C.R(a.o,"contentWrapperError",a.G,!1)),a.o.start(),a.A=!0,this.F.D(),a=ga(0)&&!(0,window.isNaN)(0)?this.ia.o.get(0,[]):[],kb(a)&&this.oa("contentResumeRequested"))};
h.jh=function(){this.je();this.aa(new c0(null))};
h.destroy=function(){this.dispose()};
h.V=function(){this.Z.o=!0;if(0<this.M.fb()){var a=this.M.Oa();F(a,this.Af,this);this.M.clear()}x1(this);z1(this);null!=this.C&&(this.C.ka(),this.C=null);SZ.N.V.call(this)};
h.start=function(){SZ.N.start.call(this)};
h.stop=function(){null!=this.A&&(this.Af(this.A),this.Qi())};
h.gd=function(a,b,c){SZ.N.gd.call(this,a,b,c);this.ha=a;this.ea=b;this.K=c;null!=this.A&&b1(this.A,this.ha,this.ea,this.K)};
h.pause=function(){null!=this.A&&this.A.pause()};
h.resume=function(){null!=this.A&&this.A.resume()};
h.skip=function(){null!=this.A&&this.A.skip()};
h.qh=function(){null!=this.A&&this.A.qh()};
h.setVolume=function(a){SZ.N.setVolume.call(this,a);null!=this.A&&this.A.setVolume(a)};
h.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
h.Jd=function(){var a;null!=this.A?(a=this.A,a=null!=a.o?a.o.Jd():-1):a=-1;return a};
h.Qf=function(){var a;null!=this.A?(a=this.A,a=null!=a.o?a.o.Qf():-1):a=-1;return a};
h.je=function(){return this.ia.o.Qa()};
h.getCurrentAd=function(){return null!=this.A?this.A.getCurrentAd():null};
h.sj=function(){};
h.handleEvent=function(a){"contentTrackingError"!=a.type&&(io(this.Y,a),y1(this))};
h.My=function(){this.oa("userClose")};
h.Ly=function(){this.oa("autoClose")};
h.Af=function(a){a.destroy();this.M.remove(a.tc);this.A=null;null!=this.J&&(this.J.za(a,l1,this.aa,!1,this),this.J.za(a,"adError",this.Qo,!1,this),this.J.za(a,"allAdsCompleted",this.mq,!1,this),this.J.za(a,"contentPauseRequested",this.op,!1,this),this.J.za(a,"contentResumeRequested",this.Qi,!1,this),this.J.za(a,"adBreakInitialized",this.nq,!1,this))};
h.OA=function(a){this.da=!0;-1==this.O?a.B=!1:V()&&!u1(this)||v1(this);Jha(this.F)};
h.Oz=function(a){var b=a.o;a=0==b;var c=-1==b;this.S?(a?this.oa("contentResumeRequested"):!c||V()&&!u1(this)||v1(this),this.S=!1):(c?Ud(function(){var a=this.M.get(b);a&&this.Af(a);V()&&!u1(this)||v1(this)},500,this):a&&Ud(function(){this.oa("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.aa(new FN("adBreakReady",null,a)))};
h.Qo=function(a){var b=a.getError(),c=b.getErrorCode();try{var d={};d.ec=c;xO.getInstance().o(44,d)}catch(e){}V()&&b&&"adLoadError"==b.getType()&&this.aa(a)};
h.mq=function(a){this.Af(a.target);(u1(this)||!V()&&this.da)&&v1(this);this.L=null;y1(this)};
h.op=function(){var a=this.F;a.o.stop();a.A=!1;this.oa("contentPauseRequested")};
h.Qi=function(){this.oa("contentResumeRequested");this.na||o1(this.F);this.L=null};
h.nq=function(a){this.L=null;y1(this);a=a.target;var b={};b.adBreakTime=a.tc;this.aa(new FN("prefetched",a.getCurrentAd(),b))};
h.oa=function(a){var b=null;null!=this.A&&(b=this.A.getCurrentAd());this.aa(new FN(a,b))};
h.sp=function(a,b){return this.la=new s1(a,b)};B(A1,J);A1.prototype.V=function(){null!=this.o&&(this.o.za("adsManagerLoaded",this.aa),this.o.za("adError",this.aa),this.o.za("adLoadError",this.aa),this.o=null);A1.N.V.call(this)};B(C1,yM);h=C1.prototype;h.Uc=function(){J9(this.app,!0,this.playerType);this.app.gf(this.playerType)};
h.pauseVideo=function(){this.app.pauseVideo(this.playerType)};
h.Vc=function(a,b,c){J9(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.xg(d.getCurrentTime()+a,b,c,e)};
h.Tb=function(a,b){J9(this.app,!0,this.playerType);this.app.xg(a,b,void 0,this.playerType)};
h.Zj=function(){W9(this.app)};B(D1,vq);D1.prototype.getAdState=function(){return-1};E1.prototype.reset=function(){Wv(this.o)};
E1.prototype.A=function(a,b){Qv(a,b,this.o)};
E1.prototype.info=function(a,b){Tv(a,b,this.o)};
E1.prototype.span=function(a,b,c){var d=this.o,e=Sv(d).span,d=Mv(d);b in d&&(e[a]=(c||Qt())-d[b])};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Sq();return b?(b=b.toLowerCase(),b+=$a("hidden"),!p(a)||b in a?b:null):null})();var G1=[2,5];var Y1=!1,a2=!1;Hi("showCompanionAdLoaded",function(){a2&&(b2(),a2=!1)});
Hi("watchAdsInit",function(){Y1&&(Y1=!1,Z1())});var Uha={iI:0,gI:1,fI:2,hI:3,eI:4,$H:5,cI:6,dI:7,bI:8,ZH:9,kI:10,YH:11,aI:12,XH:13,jI:14,WH:15},Vha={FK:0,GK:1,IK:2,HK:3,CK:4,DK:5,EK:6};B(e2,Lj);h=e2.prototype;h.cancel=function(){this.F&&this.U("dragend",0,0,null);this.B&&this.U("hoverend",0,0,null);Fr(this.o);d2(this)};
h.ys=function(a){Fr(this.o);this.o.T(this.A,f2("move"),this.ws);this.o.T(this.A,f2("out"),this.xs);this.o.T(this.A,"touchstart",this.mn);this.D&&this.o.T(this.A,f2("down"),this.ln);var b=Tl(a);a=Wl(a);this.B=!0;this.U("hoverstart",a.x,a.y,b);this.U("hovermove",a.x,a.y,b)};
h.ws=function(a){var b=Tl(a);a=Wl(a);if(this.C){var c=Vl(this.C),d=Wl(this.C);d.x==a.x&&d.y==a.y&&c==b||this.U("hovermove",a.x,a.y,b)}else this.U("hovermove",a.x,a.y,b);this.C=null};
h.xs=function(a){var b=Wl(a),c=Vl(a);c&&mh(this.G,c)?(this.C=a,this.U("hovermove",b.x,b.y,c)):(Fr(this.o),d2(this),this.B=!1,this.U("hoverend",b.x,b.y,c))};
h.Iz=function(a){this.ys(a);this.ln(a)};
h.ln=function(a){if(!ga(a.button)||0==a.button){Fr(this.o);this.o.T(window.document,f2("move"),this.Hz);this.o.T(window.document,f2("up"),this.CE);var b=Tl(a);if(zc)this.o.T(this.A,"dragstart",this.bx);else if(Xl(a),(CH||Rq)&&b)a:{for(var c=b;c;){if(sh(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.F=!0;a=Wl(a);this.U("dragstart",a.x,a.y,b);this.U("dragmove",a.x,a.y,b)}};
h.bx=function(a){Xl(a)};
h.Hz=function(a){var b=Tl(a);b==window.document&&(b=null);a=Wl(a);this.U("hovermove",a.x,a.y,b);this.U("dragmove",a.x,a.y,b)};
h.CE=function(a){Fr(this.o);this.F=!1;var b=Ul(a),c=Tl(a);a=Wl(a);b&&mh(this.G,b)?(this.o.T(this.A,f2("move"),this.ws),this.o.T(this.A,f2("out"),this.xs),this.o.T(this.A,f2("down"),this.ln),this.o.T(this.A,"touchstart",this.mn),this.U("dragend",a.x,a.y,c)):(d2(this),this.B=!1,this.U("dragend",a.x,a.y,c),this.U("hoverend",a.x,a.y,c))};
h.mn=function(a){var b=a.changedTouches[0];b&&(Fr(this.o),this.o.T(this.A,"touchmove",this.DE),this.o.T(this.A,"touchend",this.zs),this.o.T(this.A,"touchcancel",this.zs),this.H=b.identifier,a=Tl(a),this.B||(this.B=!0,this.U("hoverstart",b.pageX,b.pageY,a)),this.U("hovermove",b.pageX,b.pageY,a),this.D&&(this.F=!0,this.U("dragstart",b.pageX,b.pageY,a),this.U("dragmove",b.pageX,b.pageY,a)))};
h.DE=function(a){var b=g2(this,a);b&&(Xl(a),a=Tl(a),this.U("hovermove",b.pageX,b.pageY,a),this.D&&this.U("dragmove",b.pageX,b.pageY,a))};
h.zs=function(a){var b=g2(this,a);if(b){Fr(this.o);d2(this);this.B=!1;var c=Tl(a);this.D&&(this.J||Xl(a),this.F=!1,this.U("dragend",b.pageX,b.pageY,c));this.U("hoverend",b.pageX,b.pageY,c)}};
h.V=function(){this.D&&(zc&&this.G.removeAttribute("draggable"),this.G.style.removeProperty("touch-action"));Fr(this.o);e2.N.V.call(this)};l2.prototype.update=function(a,b,c,d){this.width=b;this.B=c;this.D=d;this.o=b-c-d;this.C=le(a-c,0,this.o);this.position=this.C+c;this.A=this.C/this.o};B(n2,Lj);n2.prototype.Wc=function(){return this.adSystem+"_"+this.adType};
n2.prototype.Jf=function(){return this.Wc()};
n2.prototype.getCurrentAd=function(){return this.A?this.A.getCurrentAd():null};
n2.prototype.bk=v;B(p2,R);p2.prototype.V=function(){p2.N.V.call(this);this.D&&(r2(this.A.app,this.D),this.D=null);s2(this);bh(q2(this));bh(t2(this));this.G=this.F=null;delete this.A};B(A2,G);A2.prototype.start=function(){(0,window.isNaN)(this.o)&&(this.B=K(),this.o=Ud(this.D,this.C-this.A,this))};
A2.prototype.stop=function(){(0,window.isNaN)(this.o)||(this.B=this.A=0,Vd(this.o),this.o=window.NaN)};
A2.prototype.pause=function(){(0,window.isNaN)(this.o)||(this.A=K()-this.B,Vd(this.o),this.o=window.NaN)};
A2.prototype.V=function(){(0,window.isNaN)(this.o)||Vd(this.o)};B(C2,n2);C2.o=15;h=C2.prototype;h.bk=function(){y2(this.D,13);this.M||this.A.destroy();this.F=this.H=!1;H2(this)};
h.Wc=function(){var a=0,a=this.getCurrentAd(),b=HV(a);if(4==o2(b).A)return b;if(DV(a))a=3;else if(null!=EV(a))a=FV(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
h.Jf=function(){return this.adSystem+"_"+this.adType};
h.show=function(){var a=this.o,b=B2(a);Z4(a.app,b);this.D.B=Qt();this.G=this.o.Da();this.C.subscribe("progresssync",this.qq,this);this.o.A.Z&&dh(Og("video-ad-status-bar",this.G));$d(this.G,["ad-showing","ad-interrupting"]);this.o.subscribe("resize",this.Dn,this);try{this.B.R(this.A,"adError",this.gG),this.B.R(this.A,"click",this.fG),this.B.R(this.A,"complete",this.LA),this.B.R(this.A,"engagedview",this.dB),this.B.R(this.A,"pause",this.Dt),this.B.R(this.A,"start",this.Et),this.B.R(this.A,"skip",this.jG),
this.B.R(this.A,"MUTE_AD",this.bk),this.B.R(this.A,"skippableStateChanged",this.EC),this.B.R(this.A,"youTubeChannelMetadata",this.FB),this.B.R(this.A,"companionInitialized",this.hG),this.B.R(q2(this.o.H),"mouseup",this.iG),this.Dn(),this.M||this.A.start()}catch(c){I2(this,c)}a=this.o.W();this.o.A.F&&a.experiments.ga("ad_info_icon_in_card")&&T4(this.o,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
h.Gt=function(a,b,c){if("newdata"==a&&this.videoData!=c){a={video_id:c.videoId};b=new Wha;b.isSkippable=this.O;b.skip=y(this.A.skip,this.A);b.skipShown=y(this.A.Rr,this.A);var d=this.getCurrentAd();if(d){b.clickThroughUrl=SV(d)||"";var e;if(!(e=this.o.A.Ja)){e=c.lengthSeconds;var f=EV(d);f?(wU(f,e),e=vU(f)):e=null}b.skipTime=e||0;b.adSystem=this.adSystem;if(e=d.G.get("why_this_ad"))b.whyThisAdInfo={menuTitle:e.C,targetingReasonHeader:e.D,targetingReasons:sb(e.F),closeButton:e.B,adSettingsLink:sb(e.A),
controlText:e.J,continueButton:e.H,cancelButton:e.G};if(d=d.G.get("mute")){e=VX(d);for(var f=[],k=0;k<e;k++)f.push({label:d.A[k].label,url:d.A[k].url});b.muteAdInfo={goneText:d.B,questionText:d.D,undoText:d.F,hoverText:d.C,surveyOptions:f}}}b.videoId=c.videoId;b.videoId||(b.videoUrl=z2(this)||"");c.spacecastModule=this.S;F2(this.o,-1,a,b)}this.videoData=c};
h.Ft=function(a){a=a.state;T(a,1)||this.J.pause();T(a,128)?I2(this,Error(a.o.message||"Video player error.")):T(a,1)&&this.J.start()};
h.Et=function(){this.K=!0;this.F=!1;if(!this.H){this.H=!0;var a=this.D;w2(a);var b=x2(a);if((0,window.isNaN)(a.B))w2(a);else{var c=Qt()-a.B;b.ad_stl=c}v2(a,4,b);G2(this.o,1);E2(this,!1);(a=Q("ADS_INSTREAM_FIRST_PLAY"))&&T4(this.o,"onAdAnnounce",a)}F2(this.o,1);this.U("adPlay",this)};
h.Dt=function(){this.K&&(this.K=!1,F2(this.o,2))};
h.LA=function(){if(!this.F){var a=this.D;w2(a);var b=x2(a),c=J2(a.o);c?b.ad_fmt=c:w2(a);v2(a,5,b);H2(this);this.F=this.H=!1}};
h.dB=function(){var a=this.D;a.o.U("AD_LOGGING_EVENT",777,x2(a))};
h.jG=function(){this.F=!0;var a=this.D,b=x2(a),c=J2(a.o);c?b.ad_fmt=c:w2(a);v2(a,14,b);H2(this)};
h.EC=function(){var a=Q("ADS_INSTREAM_SKIPPABLE");a&&T4(this.o,"onAdAnnounce",a)};
h.FB=function(){var a=this.getCurrentAd();if(a){var b=a.S,a=a.O,c=this.o.W();if(a&&b)d={},d.videoTitle=b.title,d.channelThumbnailUrl=a.o,d.channelTitle=a.A,d.channelVideoCount=a.videoCount,d.showAdInfoIcon=this.o.A.F&&c.experiments.ga("ad_info_icon_in_card"),T4(this.o,"onAdMetadataAvailable",d);else if(this.o.A.F&&c.experiments.ga("ad_info_icon_in_card")){var d={showAdInfoIcon:!0};T4(this.o,"onAdMetadataAvailable",d)}}};
h.hG=function(a){a=a.event;var b=a.o;b&&b instanceof J&&this.U("adCompanionInitialized",a.getAd(),b)};
h.gG=function(a){var b={};try{b.error_code=a.event.getError().getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}y2(this.D,32,b);I2(this,a.event.getError())};
h.fG=function(){var a=this.D;w2(a);var b=x2(a);if(a.A){var c=R4(a.C);b.ck_xy=Math.round(a.A.x-c.left)+"x"+Math.round(a.A.y-c.top);b.ck_wh=c.width+"x"+c.height}v2(a,15,b);this.A.pause();this.U("select")};
h.qq=function(){};
h.lq=function(){this.A.qh();E2(this,!0)};
h.V=function(){this.o.Ia("control_toggle_play_pause",this.Ht,this);this.o.Ia("control_play",this.tm,this);this.o.Ia("control_pause",this.sm,this);this.o.Ia("resize",this.Dn,this);this.B.removeAll();this.C.Ia("statechange",this.Ft,this);this.C.Ia("internalAbandon",this.lq,this);this.C.Ia("internalvideodatachange",this.Gt,this);this.C.Ia("progresssync",this.qq,this);this.M||this.A.destroy();this.L&&(bh(this.L),this.L=null);this.P&&(dh(this.P),this.P=null);this.G&&(ce(this.G,["ad-showing","ad-interrupting"]),
this.G=null);this.F=!1;$4(this.o);this.J.dispose();this.J=null;C2.N.V.call(this)};
h.Ht=function(){this.K?this.sm():this.tm()};
h.tm=function(){this.A.resume();this.Et()};
h.sm=function(){this.A.pause();this.Dt()};
h.Dn=function(){kr(q2(this.o.H),this.o.app.G.Ma())};
h.iG=function(a){p(a.o)||Jl(a);var b=a.o;p(a.A)||Jl(a);this.D.A=new re(b,a.A)};B(M2,n2);h=M2.prototype;
h.show=function(){if(!this.F||!e5(this.o)){L(this.o.Da(),"ad-showing");this.B=q2(this.o.H);var a=this.A.getCurrentAd().getHeight();this.B.style.height=Zq(a,!0);L(this.B,"ad-overlay");this.C.R(this.B,"mouseup",this.mG);try{this.C.R(this.A,"autoClose",this.mA),this.C.R(this.A,"userClose",this.XC),this.C.R(this.A,"userRecall",this.YC),this.C.R(this.A,"click",this.lG),this.C.R(this.A,"impression",this.pB),this.C.R(this.A,"adError",this.kG),N2(this,"normal"),this.G||this.A.start(),this.En(),this.o.subscribe("resize",
this.dk,this),this.o.subscribe("presentingplayerstatechange",this.It,this),this.U("adEnd",this)}catch(b){this.U("adError",b)}}};
h.V=function(){this.C.removeAll();this.o.Ia("resize",this.dk,this);this.o.Ia("presentingplayerstatechange",this.It,this);be(this.o.Da(),"ad-showing");this.A&&(this.G||this.A.destroy(),this.A=null);this.B&&be(this.B,"ad-overlay");this.B=null;this.F=!1;M2.N.V.call(this)};
h.XC=function(){this.B&&this.A&&this.A.getCurrentAd()&&(this.B.style.height=Zq(0,!0));this.F=!0;var a=this.D;a.A=K();var b=L2(a);K2(a,6,b);this.o.U("overlay_ad_close")};
h.mA=function(){this.o.U("overlay_ad_close")};
h.YC=function(){this.o.U("overlay_ad_open")};
h.lG=function(){this.o.pauseVideo();var a=this.D;a.A=K();var b=L2(a);if(a.B){var c=R4(a.D);b.ck_xy=Math.round(a.B.x-c.left)+"x"+Math.round(a.B.y-c.top);b.ck_wh=c.width+"x"+c.height}K2(a,100,b)};
h.pB=function(){var a=Q("ADS_OVERLAY_IMPRESSION");a&&T4(this.o,"onAdAnnounce",a);this.o.U("overlay_ad_open")};
h.mG=function(a){this.D.B=a.target==a.currentTarget?null:new re(a.pageX,a.pageY)};
h.kG=function(a){a=a.event.getError();this.U("adError",a)};
h.It=function(a){T(a.state,16)&&N2(this,"normal")};
h.dk=function(){};
h.En=function(){var a=this.D;a.C=K();var b=L2(a);K2(a,3,b)};B(O2,G);O2.A="rm";O2.o=10;O2.D=200;O2.B=200;O2.C=190;h=O2.prototype;
h.load=function(){var a;a=this.o.app.G.Ma();var b;this.o.A.o?b=!1:(b=0<(this.F&3)?190:200,b=200>a.width||a.height<b);if(b){b=this.B;var c=V1(b);c.ck_wh=a.width+"x"+a.height;S4(b.o,14,c);c2();this.Kc(Error("The player size is too small."))}else if(this.D=this.o.L)a=this.B,W1(a.o,9,V1(a)),a=T1(this.o),(b=this.o.A.serverPrefetchedVast)&&0<(this.F&3)?(a.A=b,this.o.A.serverPrefetchedVast=void 0):a.o=this.Ed(),this.D.R("adsManagerLoaded",this.Ct,!1,this),this.D.R("adError",this.Bt,!1,this),this.pj(this.D,
a)};
h.Vk=function(){var a=R1(this.o.A,this.o.W(),S1(this.o));a.surveyCreativeData=this.o.A.surveyCreativeData;a.youTubeAdNamespace=this.Gg();return a};
h.Gg=function(){return this.S};
h.Ct=function(a){if(a.B===this){Qv("aml");try{var b=this.Vk(),c=a.o}catch(d){this.re(d);return}this.C.R(c,"companionBackfill",y(this.eG,this,c));this.C.R(c,"loaded",y(this.dG,this,c));this.C.R(c,"adError",y(this.cG,this,c));this.C.R(c,"allAdsCompleted",v);this.C.R(c,"contentPauseRequested",v);this.C.R(c,"contentResumeRequested",v);c=HW(a,this.o.K,{},b);try{c.init("normal")}catch(d){c.destroy(),this.re(d)}}};
h.dG=function(a,b){this.C.removeAll();var c=b.getAd(),d=c.isLinear(),e=this.B,f=V1(e);f.ad_man=d?"instream":"overlay";W1(e.o,12,f);e=a.getMediaUrl();switch(d?this.Nf(a,c,e):this.Gd(a,c)){case 0:Y2(this);break;case 1:a.destroy();this.Kc(Error("Unable to create a display state."));break;case 2:c=this.B;S4(c.o,21,V1(c));a.destroy();this.Kc(Error("Fallback to next ad."));break;case 3:this.Kc(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
h.cG=function(a,b){this.C.removeAll();a.destroy();this.re(b.getError())};
h.Bt=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.o===this&&this.re(b)};
h.eG=function(){T2(this)};
h.Nf=function(a,b,c){var d=S1(this.o)&&S1(this.o).spacecastModule;if(d&&c&&!this.M.test(c)||!this.o.A.kb&&!this.M.test(c))return 3;R2(this,UV(b));Q2(this,new C2(this.Gg(),this.o,a,null!=EV(b),void 0,d));return 0};
h.Gd=function(a,b){R2(this,UV(b));Q2(this,new M2(this.Gg(),this.o,a));return 0};
h.re=function(a){if(a){var b=this.B,c=V1(b);a&&N1(a,c);S4(b.o,32,c);this.Kc(a)}};
h.Kc=function(){S3(this.H)};
h.V=function(){this.D&&(this.D.za("adsManagerLoaded",this.Ct,!1,this),this.D.za("adError",this.Bt,!1,this));this.O.removeAll();this.C.removeAll();O2.N.V.call(this)};
h.pj=function(a,b){try{B1(a,b,this),Qv("ar")}catch(c){this.re(c)}};B(U2,n2);U2.prototype.show=function(){Z1();this.D||this.U("adEnd",this);this.C=wi(y(this.H,this),1E3)};
U2.prototype.V=function(){Z2(this);U2.N.V.call(this)};
U2.prototype.H=function(){var a=r("yt.www.watch.ads.isAfcAdVisible");this.B++;var b={};b.at=this.Jf();this.D?(a&&a()&&this.F++,2<=this.F?(b.format=this.Wc(),Z2(this),this.U("AD_LOGGING_EVENT",3,b),this.U("adEnd",this)):this.B>=this.G&&(Z2(this),this.U("AD_LOGGING_EVENT",2,b),this.U("adEnd",this))):this.B>=this.G||!a?(Z2(this),this.U("AD_LOGGING_EVENT",2,b)):a()&&(Z2(this),this.U("AD_LOGGING_EVENT",3,b))};B($2,O2);$2.prototype.Vk=function(){var a=$2.N.Vk.call(this);a.mo=0==this.K;a.zw=e5(this.o)?a.mo:!0;return a};
$2.prototype.Ed=function(){var a;var b=this.G;a=S2(this);(b=4==this.F&&b.o.afvInvideoAdTag?b.o.afvInvideoAdTag:b.o.afvAdTag)?(ua(b,"http:")&&(b=b.substr(5)),a=lj(b,{videoad_start_delay:a})):a="";return a};
$2.prototype.Gd=function(a,b){if(this.o.A.o)return 1;1==this.A.o&&(P2(this),W1(this.o,1));return $2.N.Gd.call(this,a,b)};
$2.prototype.Kc=function(a){var b=this.o.A;b.o?$2.N.Kc.call(this,a):b.da||this.F&4?(Q2(this,new U2(this.o)),Y2(this)):$2.N.Kc.call(this,a)};a3.prototype.o=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.G,d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.G,d.push("480x361"));b&12&&d.push("480x70");var e=[],f,k;b&12&&(e.push("300x250"),f="watch-channel-brand-div",k=1);0<(b&3)&&(e.push("300x60"),f="watch-longform-ad",k=1);var m=k;k=fc(this.J);c&&(k.pos=c);m&&null==k.tile&&(k.tile=m.toString());f&&null==k.kmyd&&(k.kmyd=f);e&&0<e.length&&this.C&&null==k.ciu_szs&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";
if(this.H||null==k.ord){if(!this.A||this.H)this.A=Math.floor(999999999*Math.random()).toString();k.ord=this.A}d&&d.length&&null!=k.sz&&"WIDTHxHEIGHT"==k.sz&&cc(k,"sz");e=gj(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.B,"pfadx",this.D,";",e,"?"].join("")};b3.prototype.o=function(a,b){if(0<(b&3)){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new N(this.A),f=e.o,k=f.get("scp",""),k=k?k+"&":"";-1==k.indexOf("pos")&&f.set("scp",k+("pos="+c));f.set("vpos",d);return e.toString()}return this.A};B(W2,M2);W2.prototype.dk=function(){};
W2.prototype.Wc=function(){return"1_3"};
W2.prototype.En=function(){1==this.J?this.U("AD_LOGGING_EVENT",2,{}):W2.N.En.call(this)};B(c3,O2);c3.prototype.Ed=function(){return this.Y.o(I1(this.A),this.F)};
c3.prototype.Gd=function(a,b){R2(this,UV(b));var c=AV(b);if(P1(c,"rm"))return 1==this.F||e5(this.o)||c2(),a.sendImpressionUrls(),this.o.A.K?(Q2(this,new U2(this.o)),0):2;if(P1(c,"blockAllAds"))return a.sendImpressionUrls(),Q2(this,new W2(this.o,a,1)),0;if(P1(c,"hideMaster"))return Q2(this,new W2(this.o,a,0)),0;if(this.o.A.o)return 1;Q2(this,new M2(this.Gg(),this.o,a));return 0};B(d3,c3);var cia={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};h=d3.prototype;h.Ed=function(){if(this.o.A.ea){var a=new b3(this.o.A.dynamicAllocationAdTag);return a.o(I1(this.A),this.L)}a=new a3(this.o.A.dynamicAllocationAdTag,this.o.A,this.K);return a.o(I1(this.A),this.L)};
h.pj=function(a,b){if(this.J){b.B=Q1(this.J);var c=this.o.A.xa;c&&(b.C=c);b.Bh=S2(this)}d3.N.pj.call(this,a,b)};
h.Nf=function(a,b,c){e3(this,a);return 1!=this.G&&2!=this.G?1:d3.N.Nf.call(this,a,b,c)};
h.Gd=function(a,b){e3(this,a);switch(this.G){case 1:return d3.N.Gd.call(this,a,b);case 2:var c;this.o.A.o?c=1:(1==this.A.o&&(P2(this),W1(this.o,1)),R2(this,UV(b)),Q2(this,new M2(2,this.o,a)),c=0);return c;default:return 1}};
h.Gg=function(){return this.G||0};
h.Kc=function(a){var b=this.o.A;b.o?d3.N.Kc.call(this,a):b.da||this.J&4?(Q2(this,new U2(this.o)),Y2(this)):d3.N.Kc.call(this,a)};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
f3.prototype.cancel=function(a){if(this.o)this.B instanceof f3&&this.B.cancel();else{if(this.A){var b=this.A;delete this.A;a?b.cancel(a):(b.H--,0>=b.H&&b.cancel())}this.M?this.M.call(this.L,this):this.J=!0;this.o||(a=new y3,p3(this),h3(this,!1,a))}};
f3.prototype.K=function(a,b){this.G=!1;h3(this,a,b)};
f3.prototype.hi=function(a){p3(this);h3(this,!0,a)};
f3.prototype.then=function(a,b,c){var d,e,f=new Ad(function(a,b){d=a;e=b});
s3(this,d,function(a){a instanceof y3?f.cancel():e(a)});
return f.then(a,b,c)};
xd(f3);B(j3,ta);j3.prototype.message="Deferred has already fired";j3.prototype.name="AlreadyCalledError";B(y3,ta);y3.prototype.message="Deferred was canceled";y3.prototype.name="CanceledError";x3.prototype.B=function(){delete w3[this.o];throw this.A;};
var w3={};B(z3,O2);z3.A="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";z3.B="43";z3.o=function(a){var b=new f3;tj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Od:function(){var c=Error(a+" timed out");p3(b);h3(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);p3(b);h3(b,!1,c)},
tb:function(a){b.hi(a)}});
return b};
z3.prototype.Ed=function(){return""};
z3.prototype.pj=function(a,b){var c=this.F;c&1||c&4||c&8?this.G?c&8?Rha(this.G):("goo.gl"==Ye(this.G)?(c=z3.o("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.G),u3(c,function(a){a=de(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new N(a.longUrl);yf(a,"video_format","43");return z3.o(a.toString())},this)):c=z3.o(this.G),u3(c,function(c){b.A=c.responseText;
B1(a,b,this)},this),s3(c,null,this.re,this)):this.re(Error("Invalid empty URL")):this.re(Error("Invalid request type: "+c))};B(A3,n2);A3.prototype.show=function(){var a=S1(this.o).videoId;if(a){var b=this.A.getCurrentAd();AI(this.o.W().K,a,{Qe:vW(b)||null,sg:wW(b)||null,ti:!1});a={};a.format=this.Wc();a.at=this.Jf();O1(b,a);this.U("AD_LOGGING_EVENT",3,a)}};B(B3,O2);B3.prototype.Ed=function(){return this.o.A.Wa||""};
B3.prototype.Gd=function(a,b){R2(this,UV(b));Q2(this,new A3(this.o,a));5!=this.A.o&&T2(this);return 0};
B3.prototype.Nf=function(){return 1};B(C3,B3);C3.prototype.Ed=function(){return this.o.A.ua||""};B(V2,M2);V2.prototype.dk=function(){};
V2.prototype.Wc=function(){return"4_3"};B(J3,O2);
J3.prototype.Ed=function(){var a;if(C(this.G)||0!=I1(this.A)){var b=this.J;if(b.o.ha&&b.o.Fa){a={};var c="youtube_watch_"+b.B;a.nw="10613";a.asnw=b.o.ha;a.ssnw=b.o.ha;a.caid=b.o.Fa;a.vdur=b.F;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.o.Ga)||(c._fw_d_001=b.o.Ga);b.o.gender&&(c._fw_d_002=b.o.gender);b.o.Ca&&(c["_fwu:10613:lang"]=b.o.Ca);b.o.na&&(c._fw_dbp=b.o.na);b.o.ia&&(c._fw_distributorvideoassetid=b.o.ia);c._fw_yt_type=I3(b)?"long":"short";if(D3(b)){a.prof=I3(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=E3(b.A)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.D&1&&!b.G){e={};d=G3(b);if(H3(b.A)){var f;if(H3(b.A)){f=0;var k=b.C.B;if(k)for(var k=k.B,m=0;m<k.length&&(H3(k[m])&&f++,k[m].getId()!=b.A.getId());m++);}else f=0;d+=f}e.slid=d;e.ptgt="a";e.slau=G3(b);e.tpos=F3(b.A)?b.F.toString():I1(b.A.gb).toString();d=gj(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=gj(e,"&")+";"}b.D&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},
e.tpos=E3(b.A)?"10":F3(b.A)?b.F.toString():I1(b.A.gb).toString(),d+=gj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=gj(e,"&")+";");b.D&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=gj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+gj(a,"&")+";"+gj(c,"&")+";"+b}else e="10613:10613_youtube_"+b.B.split("_")[0],a.prof="10613:10613_youtube_"+b.B,a.crtp="vast2s",a.flag="+emcr",d={},b.G||(d.ptgt="a",d.slid=
"preroll",d.slau=G3(b),d.w="480",d.h="360",d.tpos="0",d.tpcl="preroll",d.envp=e,d.cd="1440,900"),a="//2975c.v.fwmrm.net/ad/g/1?"+gj(a,"&")+";"+gj(c,"&")+";"+gj(d,"&")}else a=""}else a=this.G;return a};
J3.prototype.Nf=function(a,b){return J3.N.Nf.call(this,a,b,null)};
J3.prototype.Gd=function(a,b){var c=AV(b);if(P1(c,"rm"))return this.H.D=ec(a),2;if(this.o.A.o)return 1;if(P1(c,"hideMaster")){if(a.G&&a.G.We()){var c=a.G.We(),d;d=a.getCurrentAd();if(V()){var e=d.K;d.K=[];d=e}else d=[];c.impressionUrls=d}Q2(this,new V2(this.o,a));return 0}return J3.N.Gd.call(this,a,b)};K3.prototype.getType=function(){return this.B};
K3.prototype.create=function(a,b){switch(this.B){case 1:return new $2(a,b,this.o);case 2:return new c3(a,b,this.o);case 3:return new d3(a,b,this.o,this.A);case 5:return new J3(a,b,this.o);case 4:return new z3(a,b);case 7:return new B3(a,b,this.o);case 8:return new C3(a,b,this.o);default:return null}};B(L3,Lj);h=L3.prototype;h.getId=function(){return this.F};
h.show=function(){this.J?this.o instanceof M2&&N2(this.o,"normal"):(this.J=!0,this.o instanceof C2&&P3(this.B,"bs"),this.o.subscribe("adEnd",this.pq,this),this.o.subscribe("adError",this.zt,this),this.o.subscribe("AD_LOGGING_EVENT",this.Lq,this),this.o.subscribe("select",this.xt,this),this.o.subscribe("adCompanionInitialized",this.At,this),this.o.show(),R3(this,!0))};
h.pq=function(){this.A&&(T3(this),U4(this.B));X2(this)};
h.zt=function(a){if(a){var b={};N1(a,b);Q3(this,b);S4(this.B,32,b)}T3(this);X2(this)};
h.Lq=function(a,b){Q3(this,b);W1(this.B,a,b)};
h.xt=function(){this.H=!1};
h.At=function(a,b){this.U("adCompanionInitialized",a,b)};
h.V=function(){T3(this);this.o=null;null!=this.D&&(this.D.dispose(),this.D=null);L3.N.V.call(this)};var Y3=[new H1(1)];var jia={Cv:"m",hv:"f"};B(Z3,G);Z3.prototype.D=function(a){a=null!=a.getAd()?a.getAd().F:null;if(null!=a){var b=this.F;b.D&&b.D.getVideoData().videoId==a?(a=b.D,a.B?(b=a.B,a=RB(b,"engage"),a.B=1,b=JL(b.o),a=qa(KB,a.ca,MB(a),JB(a),b)):a=null):a=null;this.o=a}};
Z3.prototype.C=function(){this.B&&this.o&&this.o()};B(a4,G);a4.prototype.O=function(){this.B=window.NaN};
a4.prototype.L=function(){if(T(fA(this.o.o),8)){if(b4(this)){this.F=this.F||K()/1E3;this.H&&(this.D+=K()/1E3-this.H);var a=this.o.getCurrentTime(1);0!=this.A&&Math.abs(a-this.A)>this.S?(this.A=this.o.getCurrentTime(1),c4(this,"seek"),this.D=0,this.C.push(K()/1E3)):(0,window.isNaN)(this.B)&&0!=this.A&&(c4(this,"pause"),this.D=0,this.C.push(K()/1E3));xi(this.B);this.B=window.NaN;this.A=0}}else T(fA(this.o.o),4)&&0==this.A&&b4(this)&&(this.A=this.o.getCurrentTime(1),this.B=vi(y(this.O,this),1E3*this.P),
this.H=K()/1E3)};
a4.prototype.V=function(){xi(this.B);this.B=window.NaN;this.A=0;this.o.Ia("applicationplayerstatechange",this.L,this)};B(d4,G);h=d4.prototype;h.ds=function(){this.o.subscribe("beginseeking",this.oi,this)};
h.Zr=function(a,b){return a.A&&H3(a)?b+this.C+this.B:b};
h.Yr=function(a,b){return!a.A||F3(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.C+this.B};
h.jo=function(a){if(a.A&&H3(a)&&!(0>=this.B)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=O3(a)+this.C,b=new rq(c,c+this.B-1,b);this.D[a.getId()]=b;this.o.ib([b])}};
h.Lt=function(a){a.A&&H3(a)&&(e4(this,a.getId()),this.oi())};
h.oi=function(){(0,window.isNaN)(this.A)||(xi(this.A),this.A=window.NaN);var a=X4(this.o);g4(this,a,this.o.app.Ra.Fb()/100);OI(a,"transition","");OI(a,"opacity","1")};
h.Mt=function(a){var b=O3(a)+this.C+this.B,b=50>=1E3*this.o.getCurrentTime(1)-b;a.A&&H3(a)&&b&&(a=.001*(O3(a)+this.G),this.o.U("command_seek",a),0>=this.F||(a=X4(this.o),OI(a,"opacity","0"),g4(this,a,0),vi(y(this.nG,this),0)))};
h.nG=function(){var a=X4(this.o);OI(a,"transition","opacity "+String(this.F)+"ms linear");OI(a,"opacity","1");f4(this,a,this.F,1)};
h.Kt=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-K()),d=Math.max(0,a.o.volume+-1*a.o.volume*c/d);g4(this,a,d);this.A=0<d?Mq(y(this.Kt,this,a,b,c),c):window.NaN}};
h.Jt=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-K()),e=this.o.app.Ra.Fb()/100,d=Math.min(e,a.o.volume+(e-a.o.volume)*c/d);g4(this,a,d);this.A=d<e?Mq(y(this.Jt,this,a,b,c),c):window.NaN}};
h.V=function(){this.oi();this.o.Ia("beginseeking",this.oi,this)};B(h4,d4);h=h4.prototype;h.ds=v;h.Zr=function(a,b){return b};
h.Yr=function(a,b){return b};
h.jo=v;h.Lt=v;h.Mt=v;h.V=v;B(i4,G);i4.prototype.C=function(){var a=this.o.A.A;if(this.D&&!(0>=a)){var b=this.o.o.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Ob(this.G.C,function(a){a.isDisposed();if(a.isVisible&&!(0>=k4(this,a))){var f;f=a.getId();f=this.G.G[f];if(k4(this,a)>b){var l=!l4(this,a);l!=f.visible&&(f.visible=l,c.push(f));l||(f=k4(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
0<c.length&&this.o.o.ib(c,1);if(d){var f=0;0<this.B&&(f=K()/1E3-this.B);lia(this,a-f-e+2)}else j4(this)}};
i4.prototype.A=function(){return this.B};
i4.prototype.V=function(){j4(this);this.o.Ia("endseeking",this.C,this)};B(m4,G);h=m4.prototype;h.eg=function(a){a.Ia("adBreakComplete",this.eg,this);a.Ia("adCompanionInitialized",this.km,this);this.O=vi(y(this.Nz,this,a),0)};
h.km=function(a,b){Mb(this.K);this.K=new Z3(this.o,b)};
h.Nz=function(a){var b=nia(this,a),c=b.previous,b=b.next;this.O=window.NaN;var d,e=!1;switch(a.gb.o){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&ga(b.gb.A)?O3(b)-1:0x7ffffffffffff}0==a.F&&(P3(this.o,"bl"),N3(a)||P3(this.o,"fb"));"loaded"!=a.C||0==a.F&&N3(a)&&b&&1E3*this.o.o.getCurrentTime()>=O3(b)?(c&&M3(c)&&!e&&(b=d,d=O3(c),d>b&&(b=d),p4(this,c),o4(this,c,b)),this.Ve(a)):(this.C[a.getId()]=a,o4(this,a,d),zq(this.o));Sb(this.C)==this.B.length&&this.D.C();n4(this)};
h.Ve=function(a){a.Ia("adBreakComplete",this.eg,this);this.A&&a==this.A&&(this.A=null,null!=this.K&&a.A&&(this.K.B=!0));p4(this,a);pb(this.B,a);delete this.C[a.getId()];Mb(a)};
h.Jr=v;h.ck=function(a){return this.C[a]};
h.gm=function(a){if(a.A){if(!F3(a)&&a.H){var b=this.o;b5(b);Eq(b);this.F.Mt(a)}else N3(a)&&!a.H?(b=this.o,b5(b),Eq(b)):b5(this.o);this.Ve(a);a=this.D.A();a=0<a?Math.floor(K()/1E3-a):0;r4(this.o,"set_previous_ad_end_time",{tfla:a});a=this.D;a.D&&0<a.o.A.A&&(a.B=K()/1E3,a.C());for(;!kb(this.P);)s4(this,this.P.shift())}else a.isVisible||this.Ve(a)};
h.V=function(){xi(this.O);Mb(this.F);Mb(this.D);Mb(this.ha);F(this.B,this.Ve,this);m4.N.V.call(this);Mb(this.K)};B(t4,m4);h=t4.prototype;h.ck=function(a){a=t4.N.ck.call(this,a);if(!a)return null;if(!a.K)return a;var b;b=null;if(this.H.length){var c=b=this.H.shift();c.gb=a.gb;c.F=a.getId()}b&&"loaded"==b.C?(a.Ia("adBreakComplete",this.eg,this),this.C[a.getId()]=b,this.B[this.B.indexOf(a)]=b,Mb(a)):(this.gg(),b&&(Mb(b),b=null,this.Ve(a)));b&&!b.A&&this.gg();return b};
h.eg=function(a){!E3(a)&&(2!=a.gb.o||10!=I1(a.gb))||"loaded"==a.C&&a.A||this.gg();t4.N.eg.call(this,a)};
h.gm=function(a){a.A&&10<this.S?v4(this):this.gg();t4.N.gm.call(this,a)};
h.gg=function(){if(!this.isDisposed())for(u4(this);this.L.length&&this.M.length+this.H.length<this.Z;){var a=this.L.shift();a.subscribe("adBreakComplete",this.oq,this);this.M.push(a);S3(a)}};
h.Jr=function(){v4(this)};
h.oq=function(a){a.Ia("adBreakComplete",this.oq,this);pb(this.M,a);this.H.push(a)};
h.V=function(){u4(this);F(this.M,Mb);F(this.H,Mb);F(this.L,Mb);t4.N.V.call(this)};B(w4,m4);w4.prototype.sh=function(a){this.ea=a};
w4.prototype.getVideoData=function(){return this.ea};
w4.prototype.da=function(a){"loaded"==a.C&&this.L.push(a);a.Ia("adBreakComplete",this.da,this)};
w4.prototype.S=function(){if(null!=this.A&&0<this.L.length){var a=this.L.shift();delete this.C[I1(a.gb)];var b=Math.floor(K()/1E3)-this.fa;this.fa=null;a.Ia("adBreakComplete",this.S,this);this.Ve(a);this.A=null}0<this.M?(this.M--,x4(this)):(a=this.Y,b5(a),Eq(a),(0,window.isFinite)(b)&&(this.Z?WL(this.H,window.Infinity,!0):WL(this.H,this.H.getCurrentTime()+b,!0)))};var d5=["9412857","9412859"];B(A4,G);A4.prototype.G=function(){this.o||(this.o=z4(this.B.je()));this.A.o.ib(Vb(this.o),1)};
A4.prototype.D=function(){var a=this.A.A.A;if(!(0>=a)&&this.o){var b=this.A.o.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;F(this.B.je(),function(a){var f=this.o[a];if(f){var l=this.B.M.get(a);l&&l.tc>b?(a=!t1(this.H,l),a!=f.visible&&(f.visible=a,c.push(f)),a||(f=l.tc-b,f<e&&(e=f,d=l))):!l||l.ob()?(RM(this.A.o,[f],void 0),delete this.o[a]):!f.visible&&l&&(f.visible=!0,c.push(f))}},this);
0<c.length&&this.A.o.ib(c,1);if(d){var f=0;0<this.F&&(f=K()/1E3-this.F);qia(this,a-f-e+2)}else B4(this)}};
A4.prototype.V=function(){A4.N.V.call(this);this.A.Ia("endseeking",this.D,this);B4(this)};B(D4,G);h=D4.prototype;h.Uo=function(){return 4};
h.Dj=function(a){return a};
h.xr=function(){return!1};
h.ko=v;h.Mh=v;h.Nt=v;h.Ot=v;h.Pt=v;B(E4,G);h=E4.prototype;h.Uo=function(){return 4-this.C/1E3};
h.Dj=function(a){return Yb(this.B,1E3*a)?this.B[1E3*a]/1E3:a};
h.xr=function(a){var b=!1,c={};F(gh(a),y(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?y4(e):null)b=b||ria(a),c[e]=a},this));
if(!b||0==Sb(c))return!1;a=ji(Wb(c),function(a){return(0,window.parseInt)(a,10)});
if(!uia(this,a))return!1;Ob(c,y(function(a,b){var c=(0,window.parseInt)(Zb(this.B,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",sia(this,c))},this));
return!0};
h.ko=function(a){if(!(0>=this.J)){var b=[];F(a,y(function(a){if(Yb(this.B,1E3*a)){var d=new rq(1E3*this.Dj(a)+this.C,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.D[a]=d;b.push(d)}},this));
this.o.ib(b)}};
h.Nt=function(a){if(Yb(this.B,1E3*a)){var b=X4(this.o);a=Math.max(0,1E3*a-1E3*this.o.getCurrentTime(1));OI(b,"transition","opacity "+String(a)+"ms linear");OI(b,"opacity","0");G4(this,b,a,0)}};
h.Ot=function(a){F4(this,1E3*a)&&(this.D[a]&&(RM(this.o.o,[this.D[a]],void 0),delete this.D[a]),this.Mh())};
h.Vt=function(){T(fA(this.o.o),4)&&this.Mh()};
h.Mh=function(){(0,window.isNaN)(this.A)||(xi(this.A),this.A=window.NaN);var a=X4(this.o);H4(this,a,this.o.app.Ra.Fb()/100);OI(a,"transition","");OI(a,"opacity","1")};
h.Pt=function(a){if(Yb(this.B,1E3*a)){var b=1E3*a;200>=1E3*this.o.getCurrentTime(1)-b&&(this.o.U("command_seek",this.Dj(a)+this.H/1E3),0>=this.F||(a=X4(this.o),OI(a,"opacity","0"),H4(this,a,0),(0,window.isNaN)(this.A)||xi(this.A),this.A=Mq(y(this.tG,this),0)))}};
h.tG=function(){var a=X4(this.o);OI(a,"transition","opacity "+String(this.F)+"ms linear");OI(a,"opacity","1");G4(this,a,this.F,1)};
h.Ut=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-K()),d=Math.max(0,a.o.volume+-1*a.o.volume*c/d);H4(this,a,d);this.A=0<d?Mq(y(this.Ut,this,a,b,c),c):window.NaN}};
h.Tt=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-K()),e=this.o.app.Ra.Fb()/100,d=Math.min(e,a.o.volume+(e-a.o.volume)*c/d);H4(this,a,d);this.A=d<e?Mq(y(this.Tt,this,a,b,c),c):window.NaN}};
h.V=function(){this.Mh();this.o.Ia("applicationplayerstatechange",this.Vt,this);E4.N.V.call(this)};B(I4,G);var zia={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4,"YT:SHOPPING":14,SHOPPING:14,GOOGLEADS:14};h=I4.prototype;
h.load=function(a){if(this.J=this.o.L){var b=this.o.A;this.D=b.applyFadeOnMidrolls?new E4(this.o):new D4;var c=T1(this.o);c.A=wia(this,a);c.Li=this.o.K.B;c.Eb.TSLA=Qha(this);c.Eb.GET_MIDROLL_POSITION_IN_SEC=y(this.D.Dj,this.D);if(a=U3(b).get(3))if(J1(this.o.W(),["9418778","9417893","9417894","9417895","9419817"])||(c.B=Q1(a)),b=b.xa)c.C=b;this.J.R("adsManagerLoaded",this.Rt,!1,this);this.J.R("adError",this.Qt,!1,this);B1(this.J,c,this)}};
h.Rt=function(a){if(a.B===this){var b={};Object.defineProperty(b,"currentTime",{get:y(function(){return this.o.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:y(function(){return this.o.o.getVideoData().lengthSeconds},this),
enumerable:!0});try{var c=xia(this);this.A=HW(a,this.o.K,b,c)}catch(d){N4(this,d);return}if(this.G=this.A.sp(b,this.o.A.A)){this.D.ko(this.A.je());this.M=new a4(this.o,this.G);this.H=new A4(this.o,this.A,this.G);I(this,this.H);vi(y(this.H.G,this.H),0);jb(this.A.je(),0)||M4(this);this.F.R(this.A,"companionBackfill",y(this.qG,this));this.F.R(this.A,"prefetched",y(this.Uz,this));this.F.R(this.A,"loaded",y(this.pG,this));this.F.R(this.A,"adError",y(this.oG,this),!1);this.F.R(this.A,"start",y(this.Vz,
this));this.F.R(this.A,"complete",y(this.Pz,this));this.F.R(this.A,"contentPauseRequested",y(this.rG,this));this.F.R(this.A,"contentResumeRequested",y(this.sG,this));this.F.R(this.A,"allAdsCompleted",y(this.aA,this));$3(this.o,this.St,this);try{this.A.init("normal"),this.A.start()}catch(d){r4(this.o,"vmap_ads_manager_init_exception"),this.A.destroy(),this.A=null,N4(this,d)}}}};
h.St=function(){if(T(fA(this.o.o),16)||T(fA(this.o.o),32)){var a=this.A;null!=a.F&&(a=a.F,a.o.stop(),a.A=!1)}else a=this.A,null!=a.F&&o1(a.F)};
h.rG=function(a){O4(this);(this.B=a.getAd())&&this.B.isLinear()&&(a=K4(this.B),this.C=new C2(a,this.o,this.A,null!=EV(this.B),!0),q4(this.o),this.D.Ot(this.B.C.o),this.C.show(),J4(this,"show_instream_ads"))};
h.sG=function(a){M4(this);if(this.o.getCurrentTime(1)<this.o.o.getVideoData().lengthSeconds){var b=this.o;b5(b);Eq(b);this.B&&this.B.isLinear()&&this.D.Pt(this.B.C.o)}this.K?this.B=null:O4(this);a=a.getAd();b=!0;if(a&&a!==this.B&&!a.isLinear()){b=this.A;if(null!=b.A&&b.A.O&&!this.K){this.K=!0;b=this.H;if(null!=b.o[0]){var c=b.o[0];delete b.o[0];b.o[0]=new rq(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.A.o.ib([c,b.o[0]],1);b.A.ib([b.o[0]])}this.B=a;return}b=yia(this,a)}this.B&&this.B.isLinear()&&
U4(this.o);this.B&&this.B.isLinear()?(J4(this,"set_previous_ad_end_time"),b=this.G,0<b.B&&(b.o=K()/1E3),C4(this.H)):a&&a!==this.B&&!a.isLinear()&&b&&C4(this.H);this.H.G();this.B=a};
h.aA=function(){this.M.J=!0};
h.Vz=function(a){(a=a.getAd())&&this.C&&(a=K4(a),this.C.adSystem=a)};
h.Pz=function(a){a.getAd().isLinear()||this.B!==a.getAd()||(O4(this),this.B=null)};
h.Uz=function(a){var b=a.getAd();null!=b&&(this.P[a.o.adBreakTime]=b)};
h.pG=function(a){if(null!=a.getAd()){var b=a.getAd().C;0<b.o&&(this.K=!1);b.B||a.getAd().isLinear()||M4(this)}};
h.oG=function(a){N4(this,a.getError())};
h.Qt=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.o===this&&N4(this,b)};
h.qG=function(a){a=a&&a.getAd();L4(this,a)};
h.V=function(){O4(this);this.J&&(this.J.za("adsManagerLoaded",this.Rt,!1,this),this.J.za("adError",this.Qt,!1,this));this.O.removeAll();this.F.removeAll();this.o.o.removeEventListener("applicationplayerstatechange",this.St,this);this.L=!1;this.A&&(this.A.destroy(),this.A=null);Mb(this.D);Mb(this.M);I4.N.V.call(this)};B(P4,D1);P4.B=10;P4.A=1E3;P4.o="livead";P4.Ya=function(a){return!!a.Ra.getVideoData().adModule};
h=P4.prototype;h.Ya=function(){return P4.Ya(this.app)};
h.create=function(){P4.N.create.call(this);this.P.T(this.o,"beginseeking",y(this.U,this,"beginseeking"));this.P.T(this.o,"endseeking",y(this.U,this,"endseeking"));this.P.T(this.o,"resize",y(this.U,this,"resize"));this.P.T(this.o,"presentingplayerstatechange",y(this.U,this,"presentingplayerstatechange"));this.P.T(this.o,"webglsettingschanged",y(this.U,this,"webglsettingschanged"));P3(this,"i");this.A=new kia(this.W(),this.o.getVideoData().C||{});this.J=new oia(this,this.o);this.ca=!1;if(this.L)this.L.o.B.D=
oT();else{var a=this.A.Z?void 0:t2(this.H),b=new C1(this.app,2),c=q2(this.H);b.A||(b.A=ec(b.B),b.A.addEventListener=y(b.ix,b),b.A.removeEventListener=y(b.jx,b));this.K=new gT(c,void 0,a,b.A,!0);this.K.setSize(-1,-1);this.L=new A1(this.K)}if(this.A.vmap&&!this.A.La){this.C=new I4(this);try{this.C.load(this.A.vmap)}catch(x){zi(x),r4(this,"vmap_load_exception"),this.C.dispose(),this.C=null,a5(this,X3(new W3(this)))}}else{try{if(ti("EXP_QUICK_FETCH_BISCOTTI")&&!this.A.serverPrefetchedVast){var d=Qt(),
e=UI();if(e)this.xq(d,e);else{var f=y(this.xq,this,d),k=y(this.qA,this,d),m;try{var l=r("yt.www.ads.biscotti.getId_"),n;if(l)n=l();else{if(!SI){var t=Kr("//googleads.g.doubleclick.net/pagead/id",{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0}).then(xaa),u=Ed(TI,TI,void 0);u.B=!0;Md(t,u);SI=t}n=SI}m=n}catch(x){m=Fd(x)}this.S=m.then(f,k)}}}catch(x){zi(x)}a5(this,X3(new W3(this)))}this.J&&(a={},a.allowed=this.J.B,Aq(this,{},a))};
h.xq=function(a,b){var c=b?0:2,d=Math.round(Qt()-a);this.log({biscotti:1,dur:d,bstate:c})};
h.qA=function(a){a=Math.round(Qt()-a);this.log({biscotti:1,dur:a,bstate:1})};
h.destroy=function(){this.Z&&b5(this);this.app.W().experiments.ga("disable_new_pause_state3")||yq(this);$4(this);Nb(this.B,this.D,this.C);this.J=this.A=this.C=this.da=this.D=this.B=null;s2(this.H);a2=Y1=!1;this.S&&this.S.cancel();this.F&&P4.N.destroy.call(this)};
h.W=function(){return this.app.W()};
h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Pa=function(){return this.o.Pa()||this.A.C};
h.Kh=function(){var a;if(this.J){a=this.J;var b={allowed:a.B};a.o.excludedAds&&(b.ex_ad=a.o.excludedAds);a.C&&(b.at=a.C);a=b}else a=P4.N.Kh.call(this);return a};
h.Da=function(){return this.o.Da()};
h.getVideoData=function(){return this.da};
h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
h.getAdState=function(){return this.O};
h.Zb=function(a){P4.N.Zb.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.B&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.B,d=c.ck(b);if(d&&!l4(c.D,d)&&(c=c.F,d.A)){var e=X4(c.o),d=Math.max(0,O3(d)+c.C+c.B-1E3*c.o.getCurrentTime(1));OI(e,"transition","opacity "+String(d)+"ms linear");OI(e,"opacity","0");f4(c,e,d,0)}}else s4(this.B,b);this.C&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.C,(c=d.P[b])&&c.isLinear()&&d.D.Nt(b)):0>b?(b=this.L.o,d=new IW("contentComplete"),
b.aa(d),d.B&&(SN(QN(),41351033)||b.B.clear(),null!=b.A&&(d=b.A.We(),null!=d&&FT(d,b.B.o)))):(b=this.C,null!=b.B&&(b=b.A,null!=b.A&&b.A.start())));if("livead"===a.getId()&&null!=V4(this)){b=V4(this);for(a=Math.floor(a.start/1E3);p(b.C[a]);)a++;var d=b.ia++,c=0==a?new H1(1):new H1(2,a),e=b.Y,f;f=V3(b.Y.A,c.o);d=new L3(e,d,c,f,!1);b.C[a]=d;d.subscribe("adBreakComplete",b.da,b);S3(d)}};
h.kc=function(a){P4.N.kc.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=1E3*this.getCurrentTime(1);this.B&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.B,(b=c.C[b])&&c.A==b&&!b.A&&b.isVisible&&b.J&&b.o instanceof M2&&N2(b.o,"fullscreen"));this.C&&"ytp-ad-fadeout"==a.style&&this.C.D.Mh();"livead"===a.getId()&&null!=V4(this)&&1E3*this.getCurrentTime(1)>=a.start&&(RM(this.o,[a],1),x4(V4(this)))};
h.se=function(a){this.U(a)};
h.SA=function(a){var b=V4(this);if(null!=b&&null!=b.H){var c=V4(this).H.getCurrentTime();F(a,function(a){0!=c&&a.ye>c&&(a=new rq(1E3*Math.floor(c+Math.random()*Math.max(a.ye-10-c,0)),1E3*a.ye,{id:"livead",priority:2}),this.ib([a],1))},this)}};
h.od=function(a){switch(a){case "addata":var b=this.A;return{adTag:b.adTag,adTest:b.bb,forceAdType:b.ca,isAfvSkippableInstreamEnabled:b.L,isAfvStandardInstreamEnabled:b.M,isBlazer:b.F,isDoubleClickEnabled:b.J,isForcedAd:b.La,isFreeWheelEnabled:b.P,isHouseBrandPlayer:b.Nb,isLeanback:b.C,isShortform:b.Ta,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.B instanceof t4?this.B:null,null!=b?b.S:0;case "breakscount":return this.B?this.B.B.length:
0;case "displaystate":return b=null,this.B&&this.B.A&&(b=this.B.A.o),{adFormat:b instanceof n2?b.adType:!1,adSkipped:b instanceof C2?b.F:!1,hasVideoStarted:b instanceof C2?b.H:!1,skippable:b instanceof C2?b.O:!1};case "getContentVideoData":return b=S1(this),{adModule:b.adModule,partnerTrackingToken:b.ca,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.B){a=this.B.C;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].A});return c}return 0}};
h.lf=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};B(g5,G);h=g5.prototype;h.V=function(){j5(this,new gz);i5(this);s5(this);this.A.o.removeEventListener("onVolumeChange",this.Kq,this);this.A.o.removeEventListener("onCaptionsTrackListChanged",this.Jq,this);var a=this.o;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.o.Ia("proxyStateChange",this.Xq,this),this.o.Ia("remotePlayerChange",this.pm,this),this.o.Ia("remoteQueueChange",this.qm,this));r5(this,this.B);this.F&&this.A.o.zn(this.F);this.o=this.A=null};
h.uG=function(a,b){2==this.o.A||(l5(this)?this.Tx.apply(this,arguments):this.C&&this.Rx.apply(this,arguments))};
h.Rx=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":q5(this,this.A.o.getCurrentTime());break;case "control_seek":q5(this,c[0])}};
h.Tx=function(a,b){if(1081==yo(this.o).o)switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":case "control_seek":return}var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":yo(this.o).ob()?n5(this):p5(this);break;case "control_play":p5(this);break;case "control_pause":n5(this);break;case "control_seek":this.M=c[0];this.J.Lf();break;case "control_subtitles_set_track":f5(this,c[0]);break;case "control_set_audio_track":c=c[0],l5(this)&&
(this.o.Bs(m5(this),c),this.F=c)}};
h.Kq=function(a){if(l5(this)){var b=Math.round(a.volume);a=!!a.muted;var c=yo(this.o);b==c.volume&&a==c.muted||this.o.setVolume(b,a)}};
h.Jq=function(){ac(this.B)||r5(this,this.B);this.D=!1};
h.Xq=function(a,b){s5(this);2==b&&this.cs()};
h.pm=function(){if(l5(this)){i5(this);var a=yo(this.o);switch(a.o){case 1:o5(this);j5(this,new gz(8));break;case 3:j5(this,new gz(1));break;case 0:j5(this,new gz(2));this.J.stop();var b=this.A.o;(b=wq(b.app,b.playerType||1))&&b.mg(!0);h5(this,this.A.o.getVideoData().lengthSeconds);break;case 2:j5(this,new gz(4));h5(this,ro(a));break;case -1:j5(this,new gz);break;case -1E3:j5(this,new gz(128,{}))}0==this.K&&(b=this.A.o,(b=wq(b.app,b.playerType||1))&&b.mg(!1));this.K=a.o;a=yo(this.o).B;b=this.B;(a||
b?a&&b&&a.trackName==b.trackName&&a.languageCode==b.languageCode&&a.languageName==b.languageName&&a.format==b.format&&a.kind==b.kind:1)||(this.B=a,r5(this,a));a=yo(this.o);-1==a.volume||Math.round(this.A.o.Fb())==a.volume&&this.A.o.Fc()==a.muted||(this.A.o.setVolume(a.volume),a.muted?this.A.o.mute():this.A.o.unMute())}else k5(this)};
h.qm=function(){l5(this)||k5(this)};
h.fE=function(){var a=this.M;i5(this);h5(this,a);-1==yo(this.o).o?q5(this,a):this.o.As(a);j5(this,new gz(1))};
h.cs=function(){s5(this);i5(this);var a=this.o.C.getReconnectTimeout();2!=this.o.A||(0,window.isNaN)(a)?this.C=!1:this.H=vi(y(this.cs,this),1E3)};B(t5,D1);var zpa=["play_pause","seek","set_audio_track"],Apa=["captions"];h=t5.prototype;h.Ya=function(){return 1<this.O.length};
h.create=function(){t5.N.create.call(this);this.H.push(Hi("yt-remote-before-disconnect",this.pA,this));this.H.push(Hi("yt-remote-connection-change",this.Yq,this));this.Yq();var a=this.o.app.M;this.D&&this.D!=this.C&&1!=a&&3!=a&&this.load()};
h.destroy=function(){Ii(this.H);this.H.length=0;Mb(this.A);this.A=null;t5.N.destroy.call(this)};
h.load=function(){if(!this.loaded){t5.N.load.call(this);this.A&&(this.B=new g5(this,this.A));this.o.pauseVideo();this.U("command_redirect_controls",this,zpa,Apa);var a=Pp();if(0!=a){var b=this.A?po(yo(this.A)):null;b&&b!=this.o.getVideoData().videoId||vi(y(function(){this.K=a||0;this.o.U("progresssync",a,void 0)},this),0)}}};
h.unload=function(){this.loaded&&(this.D=this.C,Dq(this),Mb(this.B),this.B=null,t5.N.unload.call(this))};
h.V=function(){this.F&&this.destroy();Nb(this.B,this.A);this.A=this.B=null;t5.N.V.call(this)};
h.se=function(a,b){this.B&&this.B.uG.apply(this.B,arguments)};
h.getCurrentTime=function(){return this.K};
h.pA=function(a){1==a&&(this.L=this.A?yo(this.A):null);this.J=a};
h.Yq=function(){var a=Op();a?(this.A=a,this.J=this.L=null,this.load(),this.B||(this.B=new g5(this,this.A))):(Mb(this.A),this.A=null,this.loaded&&1==this.J&&(this.unload(),(a=this.L)&&po(a)==this.o.getVideoData().videoId?this.o.un(po(a),ro(a)):this.o.un(this.o.getVideoData().videoId)))};
h.od=function(a,b){switch(a){case "casting":return!!this.A&&!!this.B;case "receivers":return this.O;case "currentReceiver":if(b)if("cast-selector-receiver"==b.key)Al();else if(this.D=b||this.C,b.key==this.C.key)Hp();else{var c=0,d="",e=this.o.Ec();e&&(c=e.Lb(),d=this.o.getVideoData().playlistId);if(e=this.o.Ec()){for(var f=[],k=0;k<e.B;k++)f[k]=e.yb(k).videoId;e=f}else e=[this.o.getVideoData().videoId];c={videoIds:e,listId:d,videoId:this.o.getVideoData().videoId,index:c,currentTime:this.o.getCurrentTime()};
Lp(b,c);Mb(this.B);this.B=null;this.load()}return this.D;case "castSelector":return c=yp(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&Al(),c}};
h.lf=function(){return["casting","receivers","currentReceiver","castSelector"]};B(v5,Oq);v5.F="(max-width: 656px)";v5.D="(min-width: 657px)";v5.C="(min-width: 1294px) and (min-height: 630px)";v5.A="(min-width: 1720px) and (min-height: 980px)";v5.B="(min-width: 1320px) and (min-height: 870px)";v5.o="(min-width: 967px)";h=v5.prototype;h.initialize=function(a){this.M=w(a)?window.document.getElementById(a):a;this.o(this.M)};
h.zy=function(){this.J=new we(0,0,0,0);this.G=new we(0,0,0,0)};
h.Gn=function(a){$d(this.element,arguments)};
h.Je=function(){if(this.A){var a=this.Ma();if(!a.isEmpty()){var b=!ve(a,ze(this.G)),c=w5(this);b&&(this.G.width=a.width,this.G.height=a.height);a=this.app.W();(c||b||a.P)&&this.U("resize")}}};
h.zG=function(a,b){y5(this,b)};
h.AG=function(a){a.getVideoData()&&y5(this,a.getVideoData())};
h.Ma=function(){var a=this.app.W(),b=Dh()==this.element;if(b&&$p())return new ue(window.outerWidth,window.outerHeight);if(b||a.Ud){var c;window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.H&&this.H.media==a||(this.H=window.matchMedia(a)),c=this.H&&this.H.matches);if(c)return new ue(window.innerWidth,window.innerHeight)}else if(this.S){if(a.experiments.ga("flex_theater_mode")&&this.app.ha||a.experiments.ga("player_scaling_360p_to_720p")&&this.ia.matches)return new ue(this.element.clientWidth,
this.element.clientHeight);if(this.S.matches)return new ue(426,240);a=this.app.ha;if((a?this.fa:this.ea).matches)return new ue(1280,720);if(a||this.ha.matches)return new ue(854,480);if(this.la.matches)return new ue(640,360)}return new ue(this.element.clientWidth,this.element.clientHeight)};
h.Ux=function(){this.A&&D2(this);this.Je()};
h.V=function(){this.F&&(this.F.disconnect(),this.F=null);this.K&&Ii(this.K);this.A=this.D=this.M=null;v5.N.V.call(this)};B(E5,Dr);E5.prototype.K=function(a){this.D&&this.D(a)?this.B=!0:this.A.isActive()?(this.A.stop(),this.C(a),this.B=this.o=!1):(this.F=a,this.A.start(),this.o=!0)};
E5.prototype.H=function(a){this.B?this.B=!1:this.o&&this.C(a)};
E5.prototype.G=function(){this.J(this.F);this.o=!0};ba(G5);var W4=r("yt.player.utils.VideoTagPool.instance_")||G5.getInstance();q("yt.player.utils.VideoTagPool.instance_",W4,void 0);h=G5.prototype;h.Mo=function(a){if(!(this.o.length>=a)){a-=this.o.length;for(var b=0;b<a;b++){var c=H5(this);this.o.push(c)}}};
h.HG=function(a,b){return this.o.length?this.o.pop():H5(this,a,b)};
h.GD=function(a){a&&jb(this.A,a)&&(fz(a),Sl(a),pb(this.A,a))};
h.au=function(a){return this.o.length>=(a||1)};
h.ww=function(){this.o=[];this.au(4)?F(this.A,function(a){a.src||a.load();this.o.push(a)},this):this.Mo(4)};
G5.prototype.fillPool=G5.prototype.Mo;G5.prototype.getTag=G5.prototype.HG;G5.prototype.releaseTag=G5.prototype.GD;G5.prototype.hasTags=G5.prototype.au;G5.prototype.activateTags=G5.prototype.ww;B(I5,Lj);h=I5.prototype;h.vG=function(a){a=Wl(a);if(!se(a,this.B)){var b=2;this.F&&(b|=8);this.B=a;this.rb(b,!0)}};
h.Jz=function(){this.F&&this.rb(8,!0);this.rb(2,!1)};
h.Zt=function(a){var b=Wl(a);se(b,this.B)||(this.B=b,(a=Tl(a))&&this.P(a)&&(this.rb(4,!0),this.o.za(this.G),this.G=this.o.T(this.C,"mouseout",this.wG)))};
h.wG=function(a){a=Vl(a);a&&this.P(a)||(this.B=new re(window.NaN,window.NaN),this.rb(4,!1),this.o.za(this.G),this.G=this.o.T(this.C,"mouseover",this.Zt))};
h.uz=function(){this.rb(1,!0)};
h.mx=function(a){a=Tl(a);a instanceof window.Element&&!(0<a.tabIndex)||this.rb(1,!0)};
h.Yt=function(){this.F=!0;this.o.za(this.D);this.D=this.o.T(window.document,"mouseup",this.xG)};
h.xG=function(){this.F=!1;this.rb(8,!1);this.o.za(this.D);this.D=this.o.T(this.C,"mousedown",this.Yt)};
h.$t=function(a){if(a=a.changedTouches[0])this.O=a.identifier,this.o.za(this.H),this.H=this.o.T(this.C,"touchend",this.yG),this.rb(1024,!0)};
h.yG=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.O){b=d;break}}b&&(this.o.za(this.H),this.H=this.o.T(this.C,"touchstart",this.$t),this.rb(1024,!1))};
h.rb=function(a,b){this.isDisposed();var c=!this.A;b?(this.A|=a,a&1&&this.J.start(),a&2&&this.K.start()):(this.A&=~a,a&1&&this.J.stop(),a&2&&this.K.stop(),a&512&&this.L.stop());this.A&512&&!(this.A&128)&&this.L.xe(this.M);var d=!this.A;c!=d&&this.U("autohideupdate",d)};B(J5,R);B(K5,R);K5.prototype.L=function(a,b){xi(this.A);this.context&&(this.A=Mq(y(this.L,this,a,b),b),a.call(this,new Date-this.K))};
K5.prototype.V=function(){xi(this.A);this.context=null;K5.N.V.call(this)};B(M5,K5);M5.prototype.show=function(){M5.N.show.call(this);var a=this.P;this.K=new Date;this.L(a,75)};
M5.prototype.P=function(){var a=1-1/1.5;this.D=(this.D+this.J)%(this.width*a);this.F=(this.F+this.H)%(this.height*a);this.context.drawImage(this.M,-1*this.D,-1*this.F);this.context.fillRect(0,this.G,this.width,75);this.G=(this.G+75+7)%this.height-75};
M5.prototype.ka=function(){xi(this.A);M5.N.ka.call(this)};B(P5,R);P5.prototype.show=function(){P5.N.show.call(this);this.A&&this.A.show()};
P5.prototype.ka=function(){P5.N.ka.call(this);this.A&&this.A.ka()};
P5.prototype.G=function(a){var b=Cy(this.D.W());By(a,this.D,!b)&&(a={as3:!1,html5:!0,player:!0,cpn:this.D.getVideoData().clientPlaybackNonce},b=this.D,b.Ea("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a}),b.Pa()&&Dy(b))};
P5.prototype.V=function(){P5.N.V.call(this)};B(R5,R);B(T5,R);T5.prototype.show=function(){T5.N.show.call(this);this.H()};
T5.prototype.ka=function(){T5.N.ka.call(this);this.G.stop()};
T5.prototype.H=function(){var a=wq(this.A),b=this.A.getVideoData(),c=this.A.G.A,d=this.A.W(),e=lJ(d),f=this.A.la.L.Oa(),k=8*cb(f)/1024,m=b.Ha&&this.A.W().experiments.showEndToEndLatency,l;l=this.A;l=(l=l.A&&l.A.Z)?l.D.Oa():[0];var n=cb(l),n=120<n?"Uncertain":n.toFixed(0)+" s, "+(b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming"),t=a.H?a.H.o:null,u=t&&t.o,x=window.devicePixelRatio||1,A=b.videoId,D=b.clientPlaybackNonce,H=b.clientPlaybackNonce?"":"display:none",e=
e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.D?kL(a.D):"",z;a:{if(b.ug&&(z=b.ug.match(/url=(https?)/))&&2==z.length){z=z[1];break a}z=""}c={video_id:A,cpn:D,cpn_style:H,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:z||d.fa,dimensions:c.clientWidth+" x "+c.clientHeight+(1<x?" * "+x:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.A.Ra.Fb())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",live_latency_style:m?"":"display:none",live_latency_message:n,
drm_style:u?"":"display:none",drm:u?t.o+" / "+t.B:""};b.B&&(d=Rr(b.B)?"yes":"no",d+=" ("+b.B.id,b.F&&Rr(b.B)&&(d+="/"+b.F.id),c.dash=d+")",c.mime=b.B.mimeType,b=b.B.video.fps,1<b&&(c.resolution+="@"+b));b=this.D;f=S5(b,f);Kf(b.A.element,f);f=this.F;l=S5(f,l);Kf(f.A.element,l);this.update(c);this.G.start()};U5.prototype.isDisposed=function(){return!this.B};
U5.prototype.dispose=function(){V5(this);delete this.B};B(W5,Oq);W5.prototype.F=function(){var a=this.D.jf();this.H.style.width=100*k2(new h2(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
W5.prototype.G=function(){2==this.D.getPresentingPlayerType()?this.A||(this.show(),this.A=this.T(this.D,"progresssync",this.F),this.F()):this.A&&(this.ka(),this.za(this.A),this.A=null)};B(X5,R);B($5,R);var Fia={shopping_card_icon_always_visible:["ytp-cards-always-show-teaser-icon"],shopping_card_badge_enabled:["ytp-cards-enable-shop-badge"],shopping_card_icon_with_teaser:["ytp-cards-use-shopping-icon-with-teaser","ytp-cards-icon-teaser-blue"],shopping_card_icon_without_teaser:["ytp-cards-use-shopping-icon-without-teaser"],shopping_card_icon_hover_blue:["ytp-cards-icon-hover-blue"]};$5.prototype.V=function(){this.A&&this.A();$5.N.V.call(this)};
$5.prototype.G=function(){Ji("iv-button-mouseover")};
$5.prototype.F=function(a){Cz(this.$);var b=Zd(this.$.Da(),"ytp-cards-teaser-shown");Ji("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.$.Ih(!MM(this.$),a)};B(b6,Oq);h=b6.prototype;h.show=function(){b6.N.show.call(this);this.Fa&&(this.ea=this.T(window,"blur",this.ub),this.ia=this.T(window.document,"click",this.nH))};
h.ka=function(){b6.N.ka.call(this);c6(this);this.ea&&(this.za(this.ea),this.za(this.ia))};
h.Ke=function(a){this.L=a;this.la.show();a&&window.document.activeElement&&mh(a,window.document.activeElement)&&this.focus()};
h.ub=function(){c6(this);this.la.ka();this.za(this.ea);this.za(this.ia)};
h.nH=function(a){var b=Ul(a);b&&(mh(this.element,b)||this.L&&mh(this.L,b)||!oy(a))||this.ub()};B(f6,b6);h=f6.prototype;h.show=function(){f6.N.show.call(this);this.zh();this.U("show",!0)};
h.ka=function(){f6.N.ka.call(this);1>=this.D.length||(this.F.Ia("back",this.ue,this),Jq(this.D[this.D.length-1]),e6(this,this.D[0]),this.D=[this.F],this.F.o(this.element),Uq(this.F.element,"transform","translateX(0)"),Uq(this.F.element,"opacity","1"),this.zh());this.U("show",!1)};
h.zh=function(){this.C&&(g6(this),kr(this.element,this.size))};
h.ue=function(){var a=this.D.pop();h6(this,a,this.D[this.D.length-1],!0)};
h.aE=function(a,b,c){this.K.dispose();this.K=null;j6(this,!0,[a,b]);Uq(a.element,"transform","translateX("+c+"px)");Uq(a.element,"opacity","0");Uq(b.element,"transform","translateX(0)");Uq(b.element,"opacity","1");kr(this.element,this.size);this.H=new Wd(qa(this.bA,a,b),250,this);this.H.start()};
h.bA=function(a,b){j6(this,!1,[a,b]);Jq(a);this.H.dispose();this.H=null};
h.jH=function(a){if(!Yl(a))switch(Zl(a)){case 27:this.ub();Xl(a);break;case 37:1<this.D.length&&this.ue();Xl(a);break;case 39:Xl(a)}};
h.focus=function(){this.F.focus()};
h.V=function(){f6.N.V.call(this);this.K&&this.K.dispose();this.H&&this.H.dispose()};B(k6,Oq);h=k6.prototype;h.remove=function(a){pb(this.A,a);a.Ia("size-change",this.lm,this);a=sb(this.A);this.Jb(a);this.U("size-change")};
h.removeAll=function(){for(var a=0;a<this.A.length;a++)this.A[a].Ia("size-change",this.lm,this);this.A=[];this.Jb([]);this.U("size-change")};
h.Sw=function(a,b){return b.priority-a.priority};
h.lm=function(){this.U("size-change")};
h.focus=function(){for(var a=0,b=0;b<this.A.length;b++)if("true"==this.A[b].element.getAttribute("aria-checked")){a=b;break}this.A[a].focus()};B(n6,Oq);n6.prototype.B=function(a,b){n6.N.B.call(this,a,b);this.U("size-change")};B(p6,Oq);p6.prototype.G=function(){this.U("size-change")};
p6.prototype.focus=function(){this.H.focus()};
p6.prototype.L=function(){this.U("back")};B(q6,n6);q6.prototype.A=function(a){Yl(a)||39!=Zl(a)||(this.element.click(),Xl(a))};B(s6,n6);s6.prototype.L=function(){t6(this,!this.A);this.U("select",this.A)};
s6.prototype.getValue=function(){return this.A};B(u6,f6);h=u6.prototype;h.ka=function(){Fr(this.ha);u6.N.ka.call(this)};
h.Mz=function(a){oy(a)&&this.A.pauseVideo();this.ub()};
h.QA=function(a){if("gvn"!=this.A.W().o){var b=Ul(a);if(!this.C&&(!b||"A"!=b.tagName&&!vh(b,"ytp-no-contextmenu"))){Xl(a);this.ua||(this.ua=!0,this.S=new q6(8),I(this,this.S),l6(this.G,this.S,!0),this.S.R("click",this.SG,this),this.O=new q6(7),I(this,this.O),l6(this.G,this.O,!0),this.O.R("click",this.mB,this),this.P=new q6(6),I(this,this.P),l6(this.G,this.P,!0),this.P.R("click",this.RG,this),this.da=new s6(Q("YTP_LOOP"),5),I(this,this.da),l6(this.G,this.da,!0),this.da.R("click",this.BB,this),this.fa=
new n6(o6({href:"{{href}}",target:"_blank"},void 0,!0),4,Q("YTP_REPORT_ISSUE")),I(this,this.fa),l6(this.G,this.fa,!0),this.fa.R("click",this.UG,this),this.ca=new q6(3),I(this,this.ca),l6(this.G,this.ca,!0),this.ca.R("click",this.QG,this),b=new n6(o6(),2,Q("YTP_SHOW_VIDEO_INFO")),I(this,b),l6(this.G,b,!0),b.R("click",this.VG,this),b="//"+iJ(this.A.W())+"/html5",b=new n6(o6({href:b,target:"_blank"},void 0,!0),1,Q("YTP_HTML5_CONTEXT_MENU_LINK")),I(this,b),l6(this.G,b,!0),b.R("click",this.Mz,this),this.T(this.A,
"fullscreentoggled",this.PG),this.T(this.A,"loopchange",this.AB),this.T(this.A,"pageTransition",this.TG),this.T(this.A,"videodatachange",this.WG),this.T(this.M.element,"click",this.RA),v6(this),x6(this,this.A.getVideoData()),this.o(window.document.body));this.element.style.left="";this.element.style.top="";var c=Wl(a);c.x++;c.y++;this.Ke();b=er(window.document.body);a=this.size;c=c.clone();a=a.clone();if(b){var d=c,e=a,f=5;65==(f&65)&&(d.x<b.left||d.x>=b.right)&&(f&=-2);132==(f&132)&&(d.y<b.top||
d.y>=b.bottom)&&(f&=-5);d.x<b.left&&f&1&&(d.x=b.left);if(f&16){var k=d.x;d.x<b.left&&(d.x=b.left);d.x+e.width>b.right&&(e.width=Math.min(b.right-d.x,k+e.width-b.left),e.width=Math.max(e.width,0))}d.x+e.width>b.right&&f&1&&(d.x=Math.max(b.right-e.width,b.left));d.y<b.top&&f&4&&(d.y=b.top);f&32&&(k=d.y,d.y<b.top&&(d.y=b.top),d.y+e.height>b.bottom&&(e.height=Math.min(b.bottom-d.y,k+e.height-b.top),e.height=Math.max(e.height,0)));d.y+e.height>b.bottom&&f&4&&(d.y=Math.max(b.bottom-e.height,b.top))}b=new we(0,
0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;$q(this.element,Ae(b));this.ha.T(window.document,"contextmenu",this.YA)}}};
h.RA=function(){Nq(this.M.element)};
h.YA=function(a){Yl(a)||mh(this.element,Ul(a))||this.ub()};
h.PG=function(a){this.ub();this.o(a?this.A.Da():window.document.body)};
h.QG=function(){w6(this,this.A.vn(!0))};
h.RG=function(){w6(this,this.A.Ls())};
h.SG=function(){w6(this,this.A.getVideoUrl(!0,!0))};
h.mB=function(){w6(this,this.A.getVideoUrl(!1,!0))};
h.AB=function(a){t6(this.da,a)};
h.BB=function(){var a=this.da.getValue();s9(this.A.app,a);this.ub()};
h.TG=function(){this.ub()};
h.UG=function(a){var b=this.A,c=wq(b.app);c&&c.Sj(new fw("feedback",!1,{gpu:y9(b.app)}));b=Cy(this.A.W());By(a,this.A,!b)&&(a=this.A,a.Ea("onFeedbackStartRequest",{as3:!1,html5:!0,player:!0}),a.Pa()&&Dy(a));this.ub()};
h.VG=function(){this.A.Qs();this.ub()};
h.WG=function(a,b){x6(this,b)};B(y6,zr);h=y6.prototype;h.show=function(){this.C||(this.F.T(this.api,"videodatachange",this.D.xe,this.D),this.F.T(this.api,"videoplayerreset",this.D.xe,this.D));y6.N.show.call(this)};
h.ka=function(){Fr(this.F);y6.N.ka.call(this)};
h.YG=function(a){var b=this.api.W();b.experiments.ga("disable_new_pause_state3")&&Cy(b)&&(a=qz(a.state)&&!qz(a.o)||EM(this.api)&&T(a.state,2),Uq(this.element,"transition-delay",a?"2s":""));this.D.xe()};
h.XG=function(){this.element.style.backgroundImage=""};
h.fu=function(){3==this.api.getPresentingPlayerType()?this.A.show():z6(this.A,this.api,fA(this.api));this.C&&3!=this.A.o&&this.lE(this.api.Ec(),this.api.getVideoData())};
h.lE=function(a){for(var b=this.api.W(),c,d=0;d<arguments.length;d++){var e=arguments[d];if(!(!e||e instanceof rx&&!e.videoId)){if(!b.isMobile||!b.experiments.ga("mobile_hq_cued_thumbnail_killswitch")){c=DF(this.api).Ma();var f=c.width,k=c.height;if(900<f||600<k)if(c=e.hc(b,"maxresdefault.jpg"))break;if(430<f||320<k)if(c=e.hc(b,"sddefault.jpg")||e.hc(b,"hqdefault.jpg")||e.hc(b,"mqdefault.jpg"))break}if(c=e.hc(b,"default.jpg"))break}}this.element.style.backgroundImage=c?"url("+c+")":""};B(A6,Dr);
A6.prototype.D=function(a){var b=!1,c=Zl(a),d=Ul(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,m=this.o.W();Yl(a)?(e=!1,k=!0):m.qb&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName||"INPUT"==d.tagName)b=!0,e=!1;else if(e){var l=d.getAttribute("role");!l||"option"!=l&&"button"!=l&&0!=l.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:l=d.getAttribute("role"),d=38==
c?d.previousSibling:d.nextSibling,"slider"==l?b=!0:e&&("option"==l?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):l&&0==l.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(this.B&&this.B.C&&e&&!f)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:T6(this.B,c),f=!0}m.Nb||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.A+=f,0=="awesome".indexOf(this.A)?(f=!0,7==this.A.length&&(l=this.o.Da(),d=!Zd(l,"ytp-color-party"),
M(l,"ytp-color-party",d))):(this.A=f,f=0=="awesome".indexOf(this.A)));if(e&&!f){switch(c){case 32:Z5(this.H);iz(fA(this.o))?this.o.pauseVideo():this.o.Uc();k=f=!0;break;case 37:this.o.Vc(-5);k=f=!0;break;case 39:this.o.Vc(5);k=f=!0;break;case 38:this.o.setVolume(Math.min(this.o.Fb()+5,100));k=f=!0;break;case 40:this.o.setVolume(Math.max(this.o.Fb()-5,0));k=f=!0;break;case 27:this.J()&&(k=f=!0);break;case 36:this.o.Tb(0);k=f=!0;break;case 35:this.o.Tb(window.Infinity);k=f=!0;break;case 67:AM(this.o.app.D,
"captions")&&(FM(this.o),k=f=!0);break;case 66:E6(this,"background")&&(f=!0);break;case 79:E6(this,"textOpacity")&&(f=!0);break;case 87:E6(this,"windowOpacity")&&(f=!0);break;case 187:E6(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:E6(this,"fontSizeIncrement",!0,!0)&&(f=!0)}var n;48<=c&&57>=c?n=c-48:96<=c&&105>=c&&(n=c-96);(0,window.isNaN)(n)||(k=this.o.jf(),this.o.Tb(n/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.C(!0);(b||k)&&this.G.rb(2,!0);(f||e&&C6(this,c,a.shiftKey))&&
Xl(a);m.$a&&(a={keyCode:Zl(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:Yl(a),fullscreen:this.o.Pa()},this.o.Ea("onKeyPress",a))};
A6.prototype.F=function(a){a=Zl(a);this.B&&this.B.C&&U6(this.B,a);9==a&&this.C(!0)};
A6.prototype.C=function(a){M(this.o.Da(),"ytp-keyboard-focus",a);M(this.K.element,"ytp-keyboard-focus",a)};B(G6,R);G6.prototype.G=function(a){var b=this.A.W();b.experiments.ga("disable_new_pause_state3")&&Cy(b)&&Uq(this.element,"transition-delay",qz(a.state)&&!qz(a.o)?"2s":"");F6(this,a.state)};B(H6,R);H6.prototype.F=function(a){By(a,this.A)&&this.A.yn(this.D)};B(I6,b6);h=I6.prototype;h.show=function(){I6.N.show.call(this);this.D.addEventListener("videodatachange",this.Oh,this);this.D.addEventListener("onPlaylistUpdate",this.Oh,this);this.Oh()};
h.ka=function(){I6.N.ka.call(this);this.D.removeEventListener("videodatachange",this.Oh,this);this.D.removeEventListener("onPlaylistUpdate",this.Oh,this);J6(this,null)};
h.Oh=function(){J6(this,this.D.Ec());var a=this.A.author;this.update({title:this.A.title,subtitle:Q(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.A.Lb()+1,PLAYLIST_LENGTH:this.A.B}),playlisturl:this.D.getVideoUrl(!0)});this.Am()};
h.Am=function(){var a=this.A.J;if(a==this.H)this.G.element.setAttribute("aria-checked",!1),this.G=this.F[this.A.Lb()];else{for(var b=0;b<this.F.length;b++)this.F[b].dispose();var c=this.A.B;this.F=[];for(b=0;b<c;b++){var d=new H6(this.D,this.A,b);this.F.push(d);d.o(this.K)}this.G=this.F[this.A.Lb()];this.H=a}this.G.element.setAttribute("aria-checked",!0)};
h.mH=function(){this.J()};
h.MC=function(a){var b=this.D.getVideoUrl(!0);Ey(b,this.D,a)};
h.focus=function(){this.G.focus()};
h.V=function(){this.ka();I6.N.V.call(this)};B(K6,R);K6.prototype.D=function(){this.A&&2!=this.F.getPresentingPlayerType()&&400<=DF(this.F).Ma().width?(this.update({text:Q("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.A.Lb()+1,PLAYLIST_LENGTH:this.A.B}),title:Q("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.A.title})}),this.C||(this.show(),r7(this.G))):this.C&&(this.ka(),r7(this.G))};
K6.prototype.H=function(){this.A&&this.A.Ia("shuffle",this.D,this);(this.A=this.F.Ec())&&this.A.subscribe("shuffle",this.D,this);this.D()};B(L6,R);L6.prototype.F=function(a){this.Za(T(a.state,2))};
L6.prototype.D=function(){fA(this.A);this.A.Uc()};B(M6,b6);h=M6.prototype;h.WB=function(a){a=Ul(a);mh(this.M,a)||mh(this.G,a)||this.J()};
h.ub=function(){M6.N.ub.call(this);this.F.Oe(this.element)};
h.show=function(){M6.N.show.call(this);this.ou()};
h.ou=function(){L(this.element,"ytp-share-panel-loading");be(this.element,"ytp-share-panel-fail");var a=this.D.getVideoData(),b=this.D.De(),c=b&&this.K.checked;M(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=this.D.W();e.Db&&(d.authuser=e.Db);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);var f=this.D.W();tj(f.baseYtUrl+"share_ajax",{context:this,method:"GET",onError:this.zH,tb:function(a,b){b&&b.actions&&F5(b.actions);
this.BC.call(this,0,b)},
Tc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.B("link",a);this.B("linkText",a);Nq(this.H)};
h.BC=function(a,b){if(!this.isDisposed()){be(this.element,"ytp-share-panel-loading");N6(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k=Gia(f.img);if(k){var m=new R(["a",["ytp-share-panel-service-button","ytp-button"],["span","ytp-share-panel-service-button-icon"],{href:f.url,target:"_blank",title:f.sname}]);Kf(m.sa["ytp-share-panel-service-button-icon"],k);m.R("click",qa(this.wC,f.url));Lb(m,a6(this.F,m.element));this.A.push(m);d++}}c=new R(["a",["ytp-share-panel-service-button",
"ytp-button"],["span",["ytp-share-panel-service-button-icon","ytp-share-panel-service-button-more"]],{href:b.more,target:"_blank",title:Q("YTP_MORE")}]);Kf(c.sa["ytp-share-panel-service-button-icon"],Lf?'<div class="ytp-icon ytp-icon-share-more"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z" fill="#4e4e4f" fill-rule="evenodd" /></svg>');
c.R("click",y(this.HB,this,b.more));Lb(c,a6(this.F,c.element));this.A.push(c);this.B("buttons",this.A)}};
h.zH=function(){be(this.element,"ytp-share-panel-loading");L(this.element,"ytp-share-panel-fail")};
h.wC=function(a,b){if(oy(b)){var c={};c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d=c;d||(d={});var c=window,e;e=a instanceof mg?a:qg("undefined"!=typeof a.href?a.href:String(a));var f=d.target||a.target,k=[],m;for(m in d)switch(m){case "width":case "height":case "top":case "left":k.push(m+"="+d[m]);break;case "target":case "noreferrer":break;default:k.push(m+"="+(d[m]?1:0))}m=k.join(",");(sc()||pc("iPad")||pc("iPod"))&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f?(m=c.document.createElement("A"),Hg(m,e),m.setAttribute("target",f),d.noreferrer&&m.setAttribute("rel","noreferrer"),e=window.document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),m.dispatchEvent(e),c={}):d.noreferrer?(c=c.open("",f,m),e=ng(e),c&&(CH&&Ha(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=ej(hg("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+Ga(e)+'">'),c.document.write(xg(e)),c.document.close())):c=c.open(ng(e),
f,m);c&&(c.opener||(c.opener=window),c.focus());Xl(b)}};
h.HB=function(a,b){if(Ey(a,this.D,b)){var c=this.D.app,d=c.getVideoData();c.o.Ea("SHARE_CLICKED",{videoId:d.videoId,listId:d.playlistId,feature:"player_"+c.X.Ba})}};
h.yH=function(a){!a&&d6(this)&&this.J()};
h.focus=function(){this.H.focus()};
h.V=function(){M6.N.V.call(this);N6(this)};B(O6,R);O6.prototype.D=function(){var a=this.A.W().Td&&2!=this.A.getPresentingPlayerType();M(this.F,"ytp-share-button-visible",!!this.A.getVideoData().videoId&&300<=DF(this.A).Ma().width&&!a)};
O6.prototype.V=function(){O6.N.V.call(this);be(this.F,"ytp-share-button-visible")};B(P6,R);h=P6.prototype;
h.Jn=function(){var a=IM(this.D).shader;"Spherical"==a||"Spherical3D"==a?this.C||(a=DF(this.D).D,L(this.D.Da(),"ytp-webgl-spherical"),this.show(),this.H=new e2(a,!0,null,!0),this.H.subscribe("dragstart",this.$A,this),this.H.subscribe("dragmove",this.Dq,this),this.H.subscribe("dragend",this.ZA,this),this.G=new e2(this.element,!0),this.G.subscribe("dragstart",this.VB,this),this.G.subscribe("dragend",this.UB,this),this.ea=this.R("keydown",this.CH),this.fa=this.R("keyup",this.sB),this.T(a,"click",this.BH,
this)):this.C&&(R6(this),be(this.D.Da(),"ytp-webgl-spherical"),this.ka(),this.H.dispose(),this.H=null,this.G.dispose(),this.G=null,this.za(this.ea),this.za(this.fa))};
h.VB=function(a,b,c){R6(this);var d=dr(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?Q6(this,0<a?-1:1,0,0):Q6(this,0,0<b?-1:1,0)};
h.UB=function(){R6(this);this.F=2;this.J.start()};
h.$A=function(a,b){R6(this);this.O=!1;this.da=new re(a,b);L(this.D.Da(),"ytp-dragging")};
h.Dq=function(a,b){var c=new re(a,b),d;d=this.da;d=new re(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.O=!0);this.da=c;var c=IM(this.D),e=c.fov,f=Math.PI*e*.8,k=DF(this.D).Ma();d.scale(1/k.width*f,1/k.height*f);S6(this,c.yaw+d.x,c.pitch+d.y,e,c,K())};
h.ZA=function(a,b){this.Dq(a,b);be(this.D.Da(),"ytp-dragging");this.F=2;this.J.start()};
h.BH=function(a){this.O&&(a.stopPropagation(),this.O=!1)};
h.AH=function(a){var b=IM(this.D),c=b.yaw,d=b.pitch,e=b.fov;if(1==this.F)var f=.003*e*(a-this.P),c=c+f*this.ca,d=d+f*this.Y,e=e+f*this.S;else if(2==this.F){if(1E-5>Math.abs(this.M)&&1E-5>Math.abs(this.K)){this.F=this.K=this.M=0;return}f=a-this.P;f/=Math.pow(1.013,f);c+=f*this.M;d+=f*this.K}S6(this,c,d,e,b,a);this.J.start()};
h.CH=function(a){!Yl(a)&&T6(this,Zl(a))&&Xl(a)};
h.sB=function(a){U6(this,Zl(a))};
h.V=function(){this.G&&(this.H.dispose(),this.H=null,this.G.dispose(),this.G=null);P6.N.V.call(this)};B(W6,R);h=W6.prototype;h.show=function(){W6.N.show.call(this)};
h.ka=function(){this.A.stop();this.F.style.display="none";W6.N.ka.call(this)};
h.DH=function(a){V6(this,a.state)};
h.iB=function(){V6(this,fA(this.D))};
h.cC=function(){this.F.style.display="block"};B(X6,R);X6.prototype.F=function(){var a=wq(this.A.app);a&&a.A.o.webkitShowPlaybackTargetPicker()};
X6.prototype.D=function(){var a=wq(this.A.app);this.Za(!!a&&a.Sa);(a=wq(this.A.app))&&a.Na?Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-airplay-on"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M25,13.99 L12.03,13.99 L12.03,22 L15,22 L12.03,24.99 L9,24.99 L9,11 L28,11 L28,24.99 L23.99,24.99 L20.96,22 L25,22 L25,13.99 Z M23.06,26 L12.99,26 L18,21 L23.06,26 Z M13,15 L24.04,15.01 C24.04,15.01 24.04,15.07 24,15 C24.03,17.07 24,21 24,21 L20,21 L18,18.99 L16,21 L13,20.99 L13,15 Z" id="ytp-svg-1" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-1" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-1" /></svg>'):
Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-airplay-off"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M25,13.99 L12.03,13.99 L12.03,22 L15,22 L12.03,24.99 L9,24.99 L9,11 L28,11 L28,24.99 L23.99,24.99 L20.96,22 L25,22 L25,13.99 Z M23.06,26 L12.99,26 L18,21 L23.06,26 Z" id="ytp-svg-0" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-0" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-0" /></svg>')};B(Y6,Oq);Y6.B=84;Y6.C=10;Y6.D=72;Y6.o=200;Y6.A=.555;h=Y6.prototype;h.Yw=function(){Z6(this,this.D.getVideoData())};
h.kx=function(){this.O.ka()};
h.fk=function(){this.A=Math.floor(this.J/Math.min(10,Math.ceil(this.J/72)));this.ca=.555*this.A;var a=this.D.jf(),b=Vu(this.G,this.A),b=this.G.o[b].ek(a.current);if(b!=this.S){var c=Math.round(2*this.A),d=Math.round(2*this.ca),e=Xu(this.K,b,c),c=m2(this.la,e,c,d,!0);$q(this.ia,(this.J-c.width)/2);this.element.style.height=Zq(c.height+84,!0);this.S=b}oh(this.na,ny(this.fa?a.current-a.seekableEnd:a.current));mv(this.P);a=y(this.Ij,this);this.P=lv(a,void 0);this.da.Lf()};
h.aH=function(a,b){Z6(this,b)};
h.Ij=function(){S(this.F,!1);mv(this.P);var a=this.D.jf(),b=this.G.o[0].Wt(),c=this.G.o[0].Fn(),a=a.current/(a.seekableEnd-a.seekableStart)*(c-b+1)*this.A-this.J/2,d=Math.floor(a/this.A)+b,c=Math.min(d+Math.min(10,Math.ceil(this.J/this.A)),c),d=Math.max(d,b),e;if(this.L>=d&&this.H<=c){for(e=this.L;e>c;e--)dh(this.F.children[e-this.H]);for(e=d-1;e>=this.H;e--)dh(this.F.children[e-this.H]);for(e=this.H-1;e>=d;e--)this.F.insertBefore($6(this,e),this.F.firstChild);e=this.L+1}else bh(this.F),e=d;for(;e<=
c;e++)this.F.appendChild($6(this,e));for(e=d;e<=c;e++)Uq(this.F.children[e-d],"transform","translatex("+(-a+(e-b)*this.A)+"px)");this.H=d;this.L=c;S(this.F,!0)};
h.$G=function(){for(var a=this.H;a<=this.L;a++)Zu(this.K,a,2*this.A)};
h.ZG=function(){var a=DF(this.D).Ma();this.J!=a.width&&(this.J=a.width,this.G&&(this.fk(),this.Ij()))};
h.bH=function(a){this.element.style.bottom=a+"px"};
h.show=function(){Y6.N.show.call(this);H8(this.ha,!1)};
h.ka=function(){this.G&&Z6(this,null);Y6.N.ka.call(this);H8(this.ha,!0)};
h.V=function(){Z6(this,null);Y6.N.V.call(this)};B(a7,R);a7.prototype.M=function(){var a=jj(window.document.location.href);this.J&&"360"in a&&(this.O(),this.K());window.history.replaceState&&this.L.start()};
a7.prototype.K=function(a,b){this.D=this.$.getVideoData(1).videoId;this.J=-1!=this.F.indexOf(this.D);this.A=-1!=this.G.indexOf(this.D);this.B("pressed",this.A);var c=this.$.W().experiments.A("april_fools_service_name"),c=this.A?Q("YTP_FOOLS_BUTTON_TOOLTIP_DISABLE",{SERVICE_NAME:c}):Q("YTP_FOOLS_BUTTON_TOOLTIP_ENABLE",{SERVICE_NAME:c});this.B("tooltip",c);r7(this.P.A);!b&&window.history.replaceState&&(c=lj(window.location.href,{360:this.A?"":null}),window.history.replaceState(window.history.state,
"",c))};
a7.prototype.O=function(){LM(this.$,"fools");this.P.A.Oe(this.element);if(this.J){var a=this.F.indexOf(this.D);this.$.Bg({videoId:this.G[a],fools_button:"1"})}else this.A?(a=this.G.indexOf(this.D),this.$.Bg({videoId:this.F[a],fools_button:"1"})):zy("/snoopavision?v="+this.D)};
a7.prototype.H=function(){var a=this.$.getVideoData().Lm,b=this.$.getPresentingPlayerType();this.Za(a&&1==b&&300<=DF(this.$).Ma().width)};B(b7,R);h=b7.prototype;h.dH=function(){d7(this,this.A.getVideoData())};
h.eH=function(){this.C||this.G.ka()};
h.gH=function(a){T(a.state,32)||T(a.state,16)||T(a.state,1)||this.G.ka()};
h.hH=function(a,b){d7(this,b)};
h.fH=function(){var a=fA(this.A);(T(a,32)||T(a,16))&&c7(this)};
h.cH=function(){this.H=window.NaN;c7(this)};
h.ka=function(){this.F&&d7(this,null);b7.N.ka.call(this)};B(f7,R);h=f7.prototype;h.iH=function(){this.D.W().Sa?(LM(this.D,this.D.Pa()?"fullscreen_exit":"fullscreen_enter"),Dy(this.D)):this.A&&d6(this.A)?this.A.ub():(U8(this.G,!0),this.A.Ke(this.element))};
h.kB=function(){e7(this);U8(this.G,!0);this.A.Ke(this.element)};
h.gu=function(){this.Za(Ay(this.D))};
h.Vr=function(a){a?(Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-full-screen-close"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M13,10 L10,10 L10,13 L7,13 L7,16 L13,16 L13,10 Z" id="ytp-svg-15" /><path d="M29,16 L29,13 L26,13 L26,10 L23,10 L23,16 L29,16 Z" id="ytp-svg-16" /><path d="M29,23 L29,20 L23,20 L23,26 L26,26 L26,23 L29,23 Z" id="ytp-svg-17" /><path d="M10,26 L13,26 L13,20 L7,20 L7,23 L10,23 L10,26 Z" id="ytp-svg-18" /></defs><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-15" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-16" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-17" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-18" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-0" fill="#fff" xlink:href="#ytp-svg-15" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-1" fill="#fff" xlink:href="#ytp-svg-16" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-2" fill="#fff" xlink:href="#ytp-svg-17" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-3" fill="#fff" xlink:href="#ytp-svg-18" /></svg>'),
a=Q("YTP_EXIT_FULLSCREEN")):(Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-full-screen"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M7,16 L10,16 L10,13 L13,13 L13,10 L7,10 L7,16 Z" id="ytp-svg-11" /><path d="M23,10 L23,13 L26,13 L26,16 L29,16 L29,10 L23,10 Z" id="ytp-svg-12" /><path d="M23,23 L23,26 L29,26 L29,20 L26,20 L26,23 L23,23 Z" id="ytp-svg-13" /><path d="M10,20 L7,20 L7,26 L13,26 L13,23 L10,23 L10,20 Z" id="ytp-svg-14" /></defs><use class="ytp-svg-shadow ytp-fullscreen-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-11" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-12" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-13" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-14" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-0" fill="#fff" xlink:href="#ytp-svg-11" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-1" fill="#fff" xlink:href="#ytp-svg-12" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-2" fill="#fff" xlink:href="#ytp-svg-13" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-3" fill="#fff" xlink:href="#ytp-svg-14" /></svg>'),
a=Q("YTP_FULLSCREEN"));this.B("title",this.A?null:a);r7(this.G.A)};
h.V=function(){this.A?U8(this.G,!1):(this.F(),this.F=null);f7.N.V.call(this)};B(g7,R);g7.prototype.K=function(a){this.G("newdata"==a)};
g7.prototype.G=function(a){var b=this.D.getVideoData(),c=b.M,d=fA(this.D),d=(iz(d)||T(d,4))&&0<c.length;this.Za(d);a&&(this.A=!0);if(d){this.A&&this.H.xe();a=null;for(var d="",e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=Q("YTP_MULTICAM_INDEX",{CAMERA_INDEX:e+1,CAMERA_COUNT:c.length})+"\n";break}this.update({text:d+a,preview:b.hc(this.D.W(),"default.jpg")});r7(this.F)}};
g7.prototype.J=function(){J8(this.F,this.element,Q("YTP_MORE_CAMERAS_AVAILABLE"));this.A=!1};B(h7,b6);h=h7.prototype;h.show=function(){var a=this.C;h7.N.show.call(this);a||(this.F.T(this.A,"presentingplayerstatechange",this.In),this.F.T(this.A,"videodatachange",this.In),this.In())};
h.ka=function(){Fr(this.F);h7.N.ka.call(this)};
h.In=function(){for(var a=this.A.getVideoData(),b=a.M,c=0;c<b.length;c++){var d=this.D[c];d||(d=new R(["button",["ytp-multicam-menu-item","ytp-button"],{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},["div","ytp-multicam-menu-item-title","{{cameraName}}"]]),d.R("click",qa(this.BA,c),this),d.o(this.G),this.D[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=kJ(this.A.W(),f,"default.jpg"));d.element.style.backgroundImage=k?"url("+k+")":""}d.update({cameraName:e.title,
videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.D.length;)this.D.pop().dispose();a=fA(this.A);iz(a)||T(a,4)||b.length||!d6(this)||this.H()};
h.BA=function(a){var b=this.A,c=this.A.getVideoData().M[a];a=wq(b.app,1).getVideoData();if(b.W().experiments.ga("legacy_multicam_switch"))b.Bg({videoId:c.id,title:a.title,start:a.Ha?null:b.getCurrentTime(),multifeed_metadata_list:a.C.multifeed_metadata_list});else{var d=b.getCurrentTime();if(c.id==a.videoId)c=wq(b.app,1),wq(b.app)!=c&&(Z4(b.app,c),a.Ha||b.Tb(d));else{var e=wq(b.app,4);e||(e=new LL(b.W(),4,b.app.K,DF(b),y(b.app.L.U,b.app.L)));wq(b.app)!=e&&Z4(b.app,e);G9(b.app,{videoId:c.id,title:a.title,
start:a.Ha?null:d,multifeed_metadata_list:a.C.multifeed_metadata_list},4)}}};
h.focus=function(){for(var a=this.A.getVideoData(),b=a.M,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.D[c].focus();break}};
h.V=function(){Nb(this.D);h7.N.V.call(this)};i7.prototype.clone=function(){return new i7(this.B,this.G,this.o,this.D,this.A,this.F,this.C,this.H)};
i7.prototype.equals=function(a){return this.B==a.B&&this.G==a.G&&this.o==a.o&&this.D==a.D&&this.A==a.A&&this.F==a.F&&this.C==a.C&&this.H==a.H};B(j7,G);var Y$=new i7(0,0,.4,0,.2,1,1,1);j7.prototype.A=function(){var a=Qt()-this.D,a=a<this.o?a/this.o:1,b;if(0==a)b=Y$.B;else if(1==a)b=Y$.C;else{b=ne(Y$.B,Y$.o,a);var c=ne(Y$.o,Y$.A,a),d=ne(Y$.A,Y$.C,a);b=ne(b,c,a);c=ne(c,d,a);b=ne(b,c,a)}this.B(b);1>a&&this.C.start()};
var Hia=/[0-9.-]+|[^0-9.-]+/g;B(p7,R);
var Iia=["M",19.87,",",17.99," C",19.87,",",17.53," ",19.5,",",17.14," ",19,",",17," L",19,",",19," C",19.5,",",18.85," ",19.87,",",18.46," ",19.87,",",17.99," Z"],Jia=["M",22,",",17.99," C",22,",",16.4," ",20.74,",",15.05," ",19,",",14.54," L",19,",",21.44," C",20.74,",",20.93," ",22,",",19.59," ",22,",",17.99," Z"],Kia=["M",19,",",24.31," L",19,",",24.32," C",22.01,",",23.59," ",24.25,",",21.16," ",24.24,",",18," C",24.25,",",14.84," ",22.01,",",12.41," ",19,",",11.68," L",19,",",11.68," C",22.01,
",",12.41," ",24.24,",",14.84," ",24.24,",",18," C",24.24,",",21.15," ",22.01,",",23.58," ",19,",",24.31," Z"],Lia=["M",19,",",24.31," L",19,",",26," C",22.99,",",25.24," ",26,",",21.94," ",26,",",18," C",26,",",14.05," ",22.99,",",10.75," ",19,",",10," L",19,",",11.68," C",22.01,",",12.41," ",24.24,",",14.84," ",24.24,",",18," C",24.24,",",21.15," ",22.01,",",23.58," ",19,",",24.31," Z"];p7.prototype.J=function(a){this.Za(300<=a.width)};
p7.prototype.L=function(){this.A.Fc()?(LM(this.A,"unmute"),this.A.unMute()):(LM(this.A,"mute"),this.A.mute())};
p7.prototype.S=function(a){o7(this,a.volume,a.muted)};B(s7,R);s7.prototype.D=function(){var a=wq(this.A.app);a&&(a=a.A,a.o.webkitSetPresentationMode("picture-in-picture"==a.o.webkitPresentationMode?"inline":"picture-in-picture"))};B(u7,R);u7.prototype.K=function(a){t7(this,a.state)};
u7.prototype.J=function(){M(this.element,"ytp-play-button-playlist",EM(this.A))};
u7.prototype.L=function(){2==this.D?LM(this.A,"pause"):3==this.D?LM(this.A,"replay"):1==this.D?LM(this.A,"play"):4==this.D&&LM(this.A,"stop");iz(fA(this.A))?this.A.pauseVideo():this.A.Uc()};
u7.prototype.V=function(){this.F&&this.F();u7.N.V.call(this)};B(w7,R);h=w7.prototype;h.Hg=function(){x7(this);this.J&&(this.za(this.J),this.J=null);this.K=this.A.getVideoData(1);if(this.D=this.A.Ec())this.D.subscribe("shuffle",this.Hg,this),this.J=this.T(this.A,"progresssync",this.kH);this.H=y7(this);z7(this);this.hu(DF(this.A).Ma())};
h.hu=function(a){var b=EM(this.A)||this.F&&Jy(this.A);this.Za(b&&(this.F||400<=a.width))};
h.lH=function(a){LM(this.A,this.F?"next":"previous");var b=!0;this.M?b=By(a,this.A):Xl(a);b&&(this.F?this.A.Wj(!0):this.H?this.A.Tb(0):this.A.Xj(!0))};
h.kH=function(){var a=y7(this);a!=this.H&&(this.H=a,z7(this))};
h.V=function(){this.G&&(this.G(),this.G=null);x7(this);w7.N.V.call(this)};B(D7,Oq);h=D7.prototype;h.qH=function(a){if(!Yl(a)){var b=!1;switch(Zl(a)){case 36:this.D.Tb(0);b=!0;break;case 35:this.D.Tb(window.Infinity);b=!0;break;case 34:this.D.Vc(-60);b=!0;break;case 33:this.D.Vc(60);b=!0;break;case 38:this.D.Vc(5);b=!0;break;case 40:this.D.Vc(-5),b=!0}b&&Xl(a)}};
h.iu=function(a,b){C7(this,b,"newdata"==a)};
h.Sx=function(){this.iu("newdata",this.D.getVideoData())};
h.pH=function(){K7(this.D.getVideoData())?fA(this.D).ob()&&L7(this,!0):L7(this,!1)};
h.oH=function(a){0<XB(a,64)||!K7(this.D.getVideoData())?L7(this,!1):iz(a.state)&&0>XB(a,64)&&L7(this,!0)};
h.tH=function(a,b,c){var d=dr(this.element),e=N7(this).o,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=k2(this.A,Number(c.getAttribute("data-position")),0)*e+dr(this.kb).x);this.Ca.x=a-d.x;this.Ca.y=b-d.y;c=N7(this);a=j2(this.A,c.A);d=f||ny(this.Ga?a-this.A.o:a);b=this.Ja;c=c.position+this.bb;f=!!f;3==b.A&&b.Ac();1!=b.A&&(b.element.className="ytp-tooltip ytp-bottom",b.A=1,b.O&&b.J.show(),e=b.H.getVideoData(),b.L=Qx(e),b.L&&(b.M=Rx(e),b.M.subscribe("l",b.qu,b)));b.update({text:d,title:""});M(b.element,
"ytp-text-detail",!!f);d=-1;b.L&&(d=Vu(b.L,96*b.F),d=b.L.o[d].ek(a));L8(b,d);K8(b,c,!!f);M(this.ha,"ytp-hover-progress-shown",!T(fA(this.D),64));G7(this)};
h.sH=function(){var a=this.Ja;1==a.A&&a.Ac();be(this.ha,"ytp-hover-progress-shown")};
h.rH=function(a,b){yi(this.H);this.H=window.NaN;this.qb=b;L(this.element,"ytp-drag");(this.na=iz(fA(this.D)))&&this.D.pauseVideo()};
h.uH=function(){this.ea=0;be(this.element,"ytp-pull-ui");be(this.element,"ytp-pulling");if(0<this.K){var a=Qt(),b=this.K,c=N7(this).position;yi(this.H);this.H=Mq(y(this.mu,this,a,b,c),0)}this.D.Tb(j2(this.A,N7(this).A));be(this.element,"ytp-drag");this.na&&!T(fA(this.D),2)&&this.D.Uc()};
h.mu=function(a,b,c){var d=1-Math.pow(1-(Qt()-a)/200,3),e=c+d*(this.J*this.G-c);if(0>d||1<d)d=1;M7(this,(1-d)*b,e,this.J);this.H=1>d?Mq(y(this.mu,this,a,b,c),0):window.NaN};
h.vH=function(a,b){var c=!1,d=!1,e=N7(this);3600<=i2(this.A)&&(M7(this,this.qb-b-10,e.position,e.A),d=!0,c=this.K>.1*(this.L?60:40),e=N7(this));M(this.element,"ytp-pull-ui",d);c&&L(this.element,"ytp-pulling");c=0;e.B&&0>=e.position?c=-1:e.D&&e.position>=e.width&&(c=1);(0,window.isNaN)(this.H)||c&&c==this.ea||xi(this.H);c&&(this.H=Mq(y(this.lu,this,Qt(),this.O),0));this.ea=c;this.D.Tb(j2(this.A,e.A),!1)};
h.lu=function(a,b){if(this.ea){var c=this.G*(this.fa-1);this.O=le(b+this.ea*(Qt()-a)*.3,0,c);F7(this);this.D.Tb(j2(this.A,N7(this).A),!1);0<this.O&&this.O<c&&(this.H=Mq(y(this.lu,this,a,b),0))}};
h.setPosition=function(a,b,c){this.bb=a;this.G=b;this.L=c;F7(this)};
h.ku=function(){Kf(this.P,Nf());Kf(this.M,Nf());L(this.element,"ytp-clip-hover")};
h.ju=function(){Kf(this.P,Pf());Kf(this.M,Of());be(this.element,"ytp-clip-hover")};
h.gk=function(){this.ca=0;this.S=window.Infinity;J7(this);E7(this,this.J,this.ia)};
h.nu=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.da[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.da[d]=c;this.la[d]=e;O7(this,c,e);"ytp-chapter-marker"==c.style?this.xb.appendChild(e):this.wb.appendChild(e)}}else Q7(this,c)}};
h.wH=function(a){for(var b=0;b<a.length;b++)Q7(this,a[b])};
h.V=function(){xi(this.H);this.H=window.NaN;I7(this,!1);D7.N.V.call(this)};B(S7,R);S7.prototype.F=function(a){R7(this,a.state)};B(T7,R);
T7.prototype.A=function(){var a=!1;-1!=this.$.Fh().indexOf("remote")&&(a=1<this.$.Ab("remote","receivers").length);this.Za(a&&400<=DF(this.$).Ma().width);var b=1;a&&this.$.Ab("remote","casting")&&(b=2);if(this.D!=b){this.D=b;switch(b){case 1:Kf(this.element,Lf?'<div class="ytp-icon ytp-icon-cast-desktop-off"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M16.81,26 L15.09,26 C14.69,22.23 11.73,19.24 8,18.84 L8,17.11 C12.68,17.52 16.40,21.28 16.81,26 L16.81,26 Z M13.62,26 L11.91,26 C11.55,23.99 9.99,22.41 8,22.05 L8,20.32 C10.93,20.71 13.24,23.03 13.62,26 L13.62,26 Z M10.45,26 L8,26 L8,23.52 C9.20,23.84 10.13,24.78 10.45,26 L10.45,26 Z M18.12,25 C17.94,23.94 17.62,22.93 17.17,22 L25,22 L25,14 L12,14 L12,16.76 C11.06,16.30 10.05,15.97 9,15.79 L9,11 L28,11 L28,25 L18.12,25 Z" id="ytp-svg-3" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-3" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-3" /></svg>');break;
case 2:Kf(this.element,Mf())}M(this.element,"ytp-remote-button-active",!!this.$.Ab("remote","casting"))}};
T7.prototype.F=function(){LM(this.$,"remote");if(this.$.Ab("remote","castSelector"))this.$.Pa()&&Dy(this.$),this.$.Ee("remote","castSelector",!0);else{var a=this.G,b=this.element;d6(a)?a.ub():(o8(a),a.M.open(),a.Ke(b))}};B(U7,s6);U7.prototype.F=function(){AM(this.$.app.D,"iv-module")&&3!=this.$.getPresentingPlayerType()?this.D||(p8(this.G,this),this.D=!0):this.D&&(q8(this.G,this),this.D=!1);t6(this,BN(this.$.app.D))};
U7.prototype.H=function(a){BN(this.$.app.D);a?this.$.Vj("iv-module"):this.$.Rs("iv-module")};B(V7,n6);h=V7.prototype;h.open=function(){i6(this.A,this.P)};
h.Xc=function(a){if(this.K){var b=this.D[this.K];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.D[a].element.setAttribute("aria-checked",!0);this.Jb(this.Ic(a));this.K=a};
h.Ob=function(a){this.Xc(a);this.U("select",a)};
h.TB=function(a){"true"!=this.D[a].element.getAttribute("aria-disabled")&&this.Ob(a)};
h.Ic=function(a){return a.toString()};
h.xH=function(a){Yl(a)||39!=Zl(a)||(this.open(),Xl(a))};
h.V=function(){V7.N.V.call(this);for(var a in this.D)this.D[a].dispose()};B(X7,V7);X7.prototype.J=function(){var a=this.$.Ss();1<a.length?(W7(this,ji(a,this.G)),this.M=Ib(a,this.G,this),this.L.Jb(a.length?" ("+a.length+")":""),this.U("size-change"),this.Xc(this.G(this.$.Hh())),this.F||(p8(this.A,this),this.F=!0)):this.F&&(q8(this.A,this),this.F=!1)};
X7.prototype.Ob=function(a){X7.N.Ob.call(this,a);this.$.zn(this.M[a]);this.A.ue()};
X7.prototype.G=function(a){return a.toString()};B(Y7,s6);Y7.prototype.F=function(){var a=this.$.getPresentingPlayerType();if(2!=a&&3!=a&&Jy(this.$))this.G||(p8(this.J,this),this.G=!0,this.D.push(this.T(this.$,"videodatachange",this.F)),this.D.push(this.T(this.$,"videoplayerreset",this.F)),this.D.push(this.T(this.$,"onPlaylistUpdate",this.F)),this.D.push(this.T(this.$,"autonavchange",this.H)),this.H(this.$.getVideoData().autonavState));else if(this.G)for(q8(this.J,this),this.G=!1,a=0;a<this.D.length;a++)this.za(this.D[a])};
Y7.prototype.H=function(a){t6(this,1!=a)};
Y7.prototype.K=function(a){this.$.app.o.Ea("onAutonavChangeRequest",1!=(a?2:1))};B(Z7,V7);Z7.prototype.G=function(){var a=this.$.getPresentingPlayerType();if(2!=a&&3!=a){for(var a={},b=lM(wq(this.$.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.M=a;a=this.$.Ks();b=this.$.getVideoData().B;if(b=!!b&&!Rr(b))b=this.$.getVideoData(),b=!!(b.adaptiveFormats||b.hlsFormats||b.G);b&&a.unshift("missing-qualities");W7(this,a);if(a.length){this.J();this.F||(p8(this.A,this),this.F=!0);return}}this.F&&(q8(this.A,this),this.F=!1)};
Z7.prototype.J=function(){var a=HM(this.$);this.D[a]&&(this.L=this.$.Uj(),this.Xc(a),"auto"==a&&this.Jb(this.Ic(a)))};
Z7.prototype.Ob=function(a){"missing-qualities"!=a&&(Z7.N.Ob.call(this,a),this.$.Yj(a),this.A.ub())};
Z7.prototype.Ic=function(a,b){if("missing-qualities"==a)return["a",{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},Q("YTP_MISSING_FORMATS")];var c=["div",null,$7(this,a)],d=HM(this.$);b||"auto"!=d||"auto"!=a||(c.push(" "),c.push($7(this,this.L,["ytp-menu-label-secondary"])));return c};B(a8,V7);a8.prototype.J=function(){var a=-1!=this.$.Fh().indexOf("remote")?this.$.Ab("remote","receivers"):[];1<a.length&&!this.$.Ab("remote","castSelector")?(this.L=Ib(a,this.G,this),W7(this,ji(a,this.G)),a=this.$.Ab("remote","currentReceiver"),this.Xc(this.G(a)),this.F||(p8(this.A,this),this.F=!0)):this.F&&(q8(this.A,this),this.F=!1)};
a8.prototype.G=function(a){return a.key};
a8.prototype.Ic=function(a){return this.L[a].name};
a8.prototype.Ob=function(a){a8.N.Ob.call(this,a);this.$.Ee("remote","currentReceiver",this.L[a]);this.A.ub()};B(b8,V7);h=b8.prototype;h.al=function(a){return a.toString()};
h.Ic=function(a){return"1"==a?Q("YTP_NORMAL_SPEED"):a.toString()};
h.pu=function(){var a=this.$.getPresentingPlayerType();2!=a&&3!=a?this.F||(p8(this.A,this),this.F=!0,this.G=this.T(this.$,"onPlaybackRateChange",this.aC),W7(this,ji(this.$.Tj(),this.al)),this.Xc(this.al(this.$.app.S))):this.F&&(q8(this.A,this),this.F=!1,this.za(this.G),this.G=null)};
h.aC=function(a){this.Xc(this.al(a))};
h.Ob=function(a){b8.N.Ob.call(this,a);this.$.Gh((0,window.parseFloat)(a),!0);this.A.ue()};B(d8,V7);d8.prototype.Xc=function(a){d8.N.Xc.call(this,a)};
d8.prototype.G=function(a){return a.option.toString()};
d8.prototype.Ic=function(a){return c8(this.F[a])};
d8.prototype.Ob=function(a){d8.N.Ob.call(this,a);this.U("settingChange",this.J,this.F[a].option)};B(e8,p6);e8.prototype.K=function(a,b){this.U("settingChange",a,b)};
e8.prototype.focus=function(){this.A.focus()};B(g8,V7);g8.prototype.G=function(a){return a.languageCode};
g8.prototype.Ic=function(a){return this.F[a].languageName||""};
g8.prototype.Ob=function(a){this.U("select",a);a=this.A;var b=a.D.pop(),c=a.D[0];a.D=[c];h6(a,b,c,!0)};B(h8,V7);h=h8.prototype;h.Mn=function(a){return ac(a)?"__off__":a.displayName};
h.Ic=function(a){return"__off__"==a?Q("YTP_LANGUAGE_OFF"):"__translate__"==a?Q("YTP_AUTO_TRANSLATE"):"__contribute__"==a?Q("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.F[a]).displayName};
h.Ob=function(a){if("__translate__"==a)this.J.open();else if("__contribute__"==a){this.$.pauseVideo();this.$.Pa()&&Dy(this.$);a=this.$.W();var b=this.$.getVideoData();zy(a.baseYtUrl+"timedtext_video?ref=player&v="+b.videoId)}else this.$.Ee("captions","track","__off__"==a?{}:this.F[a]),h8.N.Ob.call(this,a),this.A.ue()};
h.XD=function(){i6(this.A,this.G)};
h.Ph=function(){var a=-1!=this.$.Fh().indexOf("captions"),b=this.$.getVideoData().Fa;if(a||b){var c,d;if(a){var e=this.$.Ab("captions","track"),f=this.$.Ab("captions","tracklist",{includeAsr:!0}),k=this.$.Ab("captions","translationLanguages"),m=this.$.Ab("captions","displaySettings");k8(m);this.F=Ib(f,this.Mn,this);c=ji(f,this.Mn);if(k.length){d=this.J;var l=k;d.F=Ib(l,d.G,d);W7(d,ji(l,d.G));c.push("__translate__")}d=this.Mn(e)}else this.F={},c=[],d="__off__";c.unshift("__off__");this.F.__off__={};
b&&c.unshift("__contribute__");this.F[d]||(this.F[d]=e,c.push(d));W7(this,c);this.Xc(d);a?(f8(this.G,m),this.L.Jb(f.length?" ("+f.length+")":""),this.U("size-change"),a&&k.length&&this.D.__translate__.element.setAttribute("aria-disabled",!!ac(e))):(this.L.Jb(""),this.U("size-change"));this.M||(p8(this.A,this),this.M=!0)}else this.M&&(q8(this.A,this),this.M=!1)};
h.RC=function(a){var b=this.$.Ab("captions","track"),b=ec(b);b.translationLanguage=this.J.F[a];this.$.Ee("captions","track",b)};
h.IH=function(a,b){var c={};switch(a){case "fontFamily":c.fontFamilyOption=i8[b];break;case "charEdgeStyle":c.charEdgeStyle=j8[b];break;default:c[a]=b}c=GM(this.$,c);k8(c);f8(this.G,c)};B(l8,V7);var Bpa={0:"YTP_THREED_VIEWMODE_2D",1:"YTP_THREED_VIEWMODE_ANAGLYPH"};l8.prototype.Ic=function(a){return Q(Bpa[(0,window.parseInt)(a,10)])};
l8.prototype.J=function(){var a=IM(this.$);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.F||(this.G=a.shader,p8(this.A,this),this.F=!0,W7(this,[(0).toString(),(1).toString()])),a=a.displayMode,void 0!=a&&this.Xc(a.toString())):this.F&&(q8(this.A,this),this.F=!1)};
l8.prototype.Ob=function(a){l8.N.Ob.call(this,a);JM(this.$,{shader:this.G,displayMode:a});this.A.ue();this.$.U("webglsettingschanged",IM(this.$))};B(m8,f6);m8.prototype.Ke=function(a){o8(this);0<this.G.A.length&&m8.N.Ke.call(this,a)};
m8.prototype.show=function(){m8.N.show.call(this)};B(r8,R);r8.prototype.H=function(a){this.Za(this.F&&400<=a.width)};
r8.prototype.J=function(a){LM(this.$,"settings");this.D.C?this.D.ub():(this.$.Vj("captions"),this.D.Ke(Tl(a)))};
r8.prototype.G=function(a){this.B("pressed",a)};
r8.prototype.A=function(){var a=this.$.getPresentingPlayerType(),b=2!=a&&3!=a,c=IM(this.$),c=(a=b&&("Anaglyph3D"==c.shader||"Spherical3D"==c.shader))&&0==(0,window.parseInt)(c.displayMode,10),b=a||!b?null:this.$.Uj();M(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);M(this.element,"ytp-4k-quality-badge","hd2160"==b);M(this.element,"ytp-5k-quality-badge","hd2880"==b);M(this.element,"ytp-8k-quality-badge","highres"==b);M(this.element,"ytp-3d-badge-grey",a&&c);M(this.element,
"ytp-3d-badge",a&&!c)};B(s8,R);s8.prototype.J=function(){LM(this.A,this.A.app.ha?"size_small":"size_large");var a=this.A.app,b=!a.ha;Z9(a,!0,b);a.o.Ea("SIZE_CLICKED",b)};
s8.prototype.D=function(){this.Za(this.A.app.Pb&&!this.A.Pa()&&3!=this.A.getPresentingPlayerType());if(this.C){var a=this.A.app.ha;if(this.F!=a){var b=a?Lf?'<div class="ytp-icon ytp-icon-default-view"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M10,13 L26,13 26,23 10,23 10,13 Z M13,16 L13,20 23,20 23,16 13,16 Z" id="ytp-svg-9" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-9" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-9" /></svg>':
Lf?'<div class="ytp-icon ytp-icon-theater-mode"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M8,11 L28,11 28,25 8,25 8,11 Z M11,14 L11,22 25,22 25,14 11,14 Z" id="ytp-svg-46" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-46" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-46" /></svg>';this.A.W().S||null==this.F?Kf(this.element,b):n7(this.H,this.element,b);a=(this.F=a)?Q("YTP_DEFAULT_VIEW"):Q("YTP_THEATER_MODE");
this.B("title",a);r7(this.G)}}};B(u8,R);u8.prototype.F=function(){LM(this.A,"subtitles");FM(this.A)};
u8.prototype.D=function(){var a=!!AM(this.A.app.D,"captions");this.Za(a&&300<=DF(this.A).Ma().width);a&&this.B("pressed",!!this.A.Ab("captions","track").displayName)};B(v8,R);h=v8.prototype;h.Ig=function(){var a=DF(this.A).Ma().width,b=350<=a&&(!this.F||!T(fA(this.A),64));this.Za(b);M(this.element,"ytp-time-display-allow-autohide",b&&400>a);b&&(a=this.A.jf(),b=ny(a.current),this.J!=b&&(this.B("currenttime",b),this.J=b),a=ny(a.duration),this.K!=a&&(this.B("duration",a),this.K=a))};
h.KH=function(a){if(this.H!=a){this.H=a;this.Ig();var b=this.G.element;(b.disabled=a)?this.D&&(this.D(),this.D=null,b.removeAttribute("title")):(b.title=Q("YTP_GOTO_LIVE_TOOLTIP"),this.D=a6(this.L,this.G.element))}};
h.LH=function(a,b){this.F=b.Ha;M(this.element,"ytp-live",this.F);this.Ig()};
h.JH=function(a){a.target==this.G.element?(LM(this.A,"live"),this.A.Tb(window.Infinity),this.A.Uc()):LM(this.A,"time")};
h.V=function(){this.D&&this.D();v8.N.V.call(this)};B(x8,R);h=x8.prototype;h.uu=function(a){this.Za(this.A.W().xb&&350<=a.width)};
h.IC=function(a){if(!Yl(a)){var b=Zl(a),c=null;37==b?c=this.J-5:39==b?c=this.J+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=le(c,0,100),0==c?this.A.mute():(this.A.Fc()&&this.A.unMute(),this.A.setVolume(c)),Xl(a))}};
h.NH=function(a){Xl(a);(a=$l(a||window.event,!0)||-$l(a||window.event,!1))&&this.A.setVolume(this.J+le(a/20,-10,10))};
h.HC=function(){LM(this.A,"volume");y8(this,this.G,!0,this.D,this.H.H);this.Y=this.J;this.A.Fc()&&this.A.unMute()};
h.GC=function(a){a-=dr(this.S).x;this.A.setVolume(100*le(a/(this.L?78:52),0,1))};
h.FC=function(){y8(this,this.G,!1,this.D,this.H.H);0==this.J&&(this.A.mute(),this.A.setVolume(this.Y))};
h.OH=function(a){w8(this,a.volume,a.muted)};
h.Do=function(){y8(this,this.G,this.F,this.D,this.H.H)};
h.tu=function(a){y8(this,this.G,this.F,a,this.H.H)};
h.V=function(){x8.N.V.call(this);be(this.O,"ytp-volume-slider-active")};B(z8,R);z8.prototype.D=function(){var a=!!this.A.getVideoData().videoId;this.Za(a);a&&(a=this.A.getVideoUrl(!0,!1,!1,!0),this.B("url",a))};
z8.prototype.F=function(a){LM(this.A,"youtube");var b=this.A.getVideoUrl(!oy(a),!1,!0,!0);Ey(b,this.A,a)};B(A8,Dr);h=A8.prototype;h.HH=function(){L(this.C.element,"ytp-volume-control-hover");var a=this.C;y8(a,!0,a.F,a.D,a.H.H)};
h.GH=function(){be(this.C.element,"ytp-volume-control-hover");var a=this.C;y8(a,!1,a.F,a.D,a.H.H)};
h.Kn=function(){if(this.S.A){var a=this.F;H7(a);var b=a.D.getCurrentTime();(b<a.ca||b>a.S)&&a.gk();this.M.Ig()}};
h.EH=function(){this.Kn()};
h.FH=function(a){a&&window.document.activeElement==this.D.element&&this.$.Da().focus();this.Ln()};
h.mE=function(){H8(this.B.A,!this.o.C)};
h.Ln=function(){var a=FF(this.B),b=DF(this.$).Ma(),c=12*(a?2:1),d=Math.max(b.width-2*c,100);if(this.O!=b.width||this.P!=a){this.O=b.width;this.P=a;var e=Math.max(b.width-2*c,100);this.A.element.style.width=e+"px";this.A.element.style.left=c+"px";this.F.setPosition(c,e,a);e=this.B.A;e.fa=c;e.ea=d;c=this.C;c.L=a;w8(c,c.A.Fb(),c.A.Fc())}c=this.o;b=Math.min(300*(a?1.5:1),Math.round(.6*(b.height-(FF(this.B)?72:50))));c.Ca=Math.min(350*(a?1.5:1),d);c.ra=b;c.zh()};
h.ma=function(){return this.A.element};
h.hE=function(){R8(this.B,this.J,this.K)};B(C8,R);C8.prototype.J=function(a){a=400>a.width&&this.A.Ec()&&2!=this.A.getPresentingPlayerType();this.H.style.display=a?"":"none"};
C8.prototype.P=function(a){LM(this.A,"title");var b=this.A.getVideoUrl(!oy(a),!1,!0);Ey(b,this.A,a)};
C8.prototype.M=function(a,b,c){var d=c.user_info;d&&(b=d.channel_logo_url||d.image_url,c=d.channel_title||d.username,d=d.channel_url,b&&d&&c&&Ax.test(b)&&D8(this,a,c,d,b))};
C8.prototype.F=function(){E8(this);var a=this.A.getVideoData();this.B("title",a.title);!this.A.W().D&&a.videoId?(this.B("url",this.A.getVideoUrl(!0)),this.D||(this.D=this.T(this.L,"click",this.P))):this.D&&(this.B("url",null),this.za(this.D),this.D=null)};B(F8,R);h=F8.prototype;h.KB=function(a){3==this.A&&this.Ac();a=a.currentTarget;this.A||(a.removeEventListener("mouseover",this.Y),a.addEventListener("mouseout",this.ha),I8(this,a,2))};
h.IB=function(a){(a=Vl(a))&&mh(this.D,a)||this.Ac()};
h.qu=function(a,b){if(a<=this.G&&this.G<=b){var c=this.G;this.G=window.NaN;L8(this,c)}};
h.Az=function(){Zu(this.M,this.G,96*this.F)};
h.ru=function(){ve(DF(this.H).Ma(),this.ua)||this.Ac()};
h.Ac=function(){switch(this.A){case 2:this.D.removeEventListener("mouseout",this.ha),this.D.addEventListener("mouseover",this.Y);case 3:3==this.A&&this.da.stop();this.H.removeEventListener("resize",this.ru,this);this.S||this.D.setAttribute("title",this.K);this.K="";this.D=null;break;case 1:this.L&&(this.L=null,this.M.Ia("l",this.qu,this),this.M=null),this.H.removeEventListener("videoready",this.Ac,this),this.ca.stop()}this.A=null;this.O&&this.J.ka()};
h.Oe=function(a){if(this.D)for(var b=0;b<arguments.length;b++)mh(arguments[b],this.D)&&this.Ac()};
h.V=function(){null!=this.A&&this.Ac();F8.N.V.call(this)};B(N8,R);h=N8.prototype;h.vu=function(a){this.Za(300<=a.width)};
h.Wz=function(){this.F=!0;this.A=!1;M8(this,1);this.D.W().isMobile&&J8(this.H,this.element)};
h.PH=function(){LM(this.D,"watchlater");var a=this.D.getVideoData().videoId;if(!this.A){this.A=!0;M8(this,3);var b=this.D.app,c=!this.F;(c?Dia:Eia)({videoIds:a,Db:b.X.Db,pageId:b.X.pageId,onError:b.mD,tb:c?b.lD:b.nD,context:b},b.X.baseYtUrl,!0)}};
h.QH=function(a){this.A=!1;M8(this,4,a)};
h.oC=function(){this.A=this.F=!1;M8(this,2)};
h.RH=function(){this.A=this.F=!1;M8(this,2)};
h.V=function(){N8.N.V.call(this);be(this.J,"ytp-watch-later-button-visible")};B(O8,R);O8.prototype.H=function(a){this.Za(!T(a.state,2))};
O8.prototype.F=function(){if(this.D.getVideoData().videoId){var a=this.D.getVideoUrl(!0,!1,!1,!0);this.B("url",a);this.A||(this.A=this.R("click",this.G))}else this.A&&(this.B("url",null),this.za(this.A),this.A=null)};
O8.prototype.G=function(a){var b=this.D.getVideoUrl(!oy(a),!1,!0,!0);Ey(b,this.D,a)};B(Q8,Dr);h=Q8.prototype;h.cu=function(a,b){if(this.fa!=b.videoId){this.fa=b.videoId;var c=this.C;c.M=b&&0<b.M.length?5E3:3E3;c.rb(512,!0);this.yh()}};
h.fC=function(){this.cu(0,this.o.getVideoData())};
h.du=function(){R8(this,this.ha,this.M);this.J==this.M&&this.o.Ea("onSharePanelOpened")};
h.hs=function(){R8(this,this.ea,this.Y)};
h.tg=function(){var a=!EF(this),b=a&&Cz(this.o)&&!T(fA(this.o),2);a?(this.ia.show(),this.la.show()):(this.ia.ka(),this.la.ka(),this.A.Oe(this.D.element,this.G.element));b?this.G.D.show():this.G.D.ka();M(this.D.element,"ytp-cards-available",b);M(this.o.Da(),"ytp-menu-shown",!a);var b=this.O,c=!a;(b.F=c)?b.ka():z6(b.D,b.A,fA(b.A));this.B&&B8(this.B,!a)};
h.Up=function(a){return mh(this.D.element,a)};
h.Mp=function(a){this.o.W();return!!this.B&&mh(this.B.ma(),a)};
h.LG=function(a){if(!this.Up(a)&&!this.Mp(a))return!1;for(;!a||!sh(a);){if(!a||a==this.o.Da())return!1;a=lh(a)}return!0};
h.MG=function(a){var b=this.o.Da();M(b,"ytp-autohide",a);a&&(this.A.Oe(this.D.element,this.G.element),this.B&&this.A.Oe(this.B.ma()),this.H=!1,be(b,"ytp-touch-mode"));b=this.o;a=!a;b.Ea("onVideoAreaChange");b.Ea(a?"onShowControls":"onHideControls")};
h.tC=function(a){this.C.A||T8(this,a)||S8(this,Ul(a))||(fA(this.o),Xl(a));this.H=!0;L(this.o.Da(),"ytp-touch-mode");this.C.rb(2,!0)};
h.dr=function(a){if(S8(this,Ul(a)))return!0;this.C.rb(2,!0);return this.Lo()?!0:qz(fA(this.o))?(this.o.Uc(),!0):!1};
h.fr=function(a){S8(this,Ul(a));var b=fA(this.o);T(b,2)&&CM(this.o)||T8(this,a)||(Z5(this.P),iz(b)?this.o.pauseVideo():(this.o.Uc(),window.document.activeElement==this.O.element&&this.o.Da().focus()))};
h.sC=function(a){S8(this,Ul(a))||"3"!=this.o.W().B&&3!=this.o.getPresentingPlayerType()&&Dy(this.o)};
h.NG=function(a){var b=this.o.Da();a?b.parentElement?(b.setAttribute("aria-label",Q("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.da.element,b),b.parentElement.insertBefore(this.ca.element,b.nextSibling)):zi(Error("Player not in DOM.")):(b.setAttribute("aria-label",Q("YTP_PLAYER_NORMAL")),Jq(this.da),Jq(this.ca));this.Hn();this.yh()};
h.Hn=function(){var a=FF(this),b=DF(this.o).Ma(),c=this.o.Pa(),d=this.o.Da();this.A.F=a?1.5:1;M(d,"ytp-fullscreen",c);M(d,"ytp-small-mode",!a&&480>b.width);M(d,"ytp-big-mode",a);M(this.K.element,"ytp-big-mode",a);this.F&&(a=this.F,a.A&&L5(a.A,b.width,b.height))};
h.OG=function(a){P8(this,a.state);this.yh()};
h.yh=function(){var a=!this.o.getVideoData().isListed&&2==this.o.getPresentingPlayerType(),a=!!this.fa&&!BM(this.o)&&!a&&(2==this.o.getPresentingPlayerType()||this.o.W().Ja||this.o.Pa());this.ra!=a&&(this.ra=a,M(this.o.Da(),"ytp-hide-info-bar",!a),a||(this.A.Oe(this.D.element,this.G.element),d6(this.M)&&this.du(),d6(this.Y)&&this.hs()))};
h.Lo=function(){if(this.K.C)return this.K.ub(),!0;var a;if(a=this.B){a=this.B;var b=a.D;b.A&&d6(b.A)?(a.D.A.ub(),a=!0):a.o.C?(a.o.ub(),a=!0):a=!1}return a?!0:this.J?(R8(this,this.Z,this.J),!0):Cz(this.o)&&MM(this.o)?(this.o.Ih(!1,!1),!0):BM(this.o)?(DM(this.o,!0),!0):!1};
h.UD=function(a){this.C.rb(64,a);this.Fa=a;this.eu();M(this.o.Da(),"ytp-settings-shown",a)};
h.eu=function(){var a=this.Fa||this.K.C;this.na!=a&&(this.na=a,this.o.Ea("onAutonavPauseRequest",this.na))};
h.ox=function(){V8(this,this.o.Da(),!0).focus()};
h.qx=function(){V8(this,this.o.Da(),!1).focus()};var X8=[],Z$=aa.JSON&&aa.JSON.stringify||"object"===typeof JSON&&JSON.stringify;W8.prototype.Cc="function"==typeof window.Uint8Array?function(){var a=window.Uint8Array.prototype.toJSON;window.Uint8Array.prototype.toJSON=function(){return WH(this)};
try{var b=Z$.call(null,this.o,Y8)}finally{window.Uint8Array.prototype.toJSON=a}return b}:Z$?function(){return Z$.call(null,this.o,Y8)}:function(){return ge(this.o,Y8)};
W8.prototype.toString=function(){return this.o.toString()};
W8.prototype.getExtension=function(a){if(this.A){this.B||(this.B={});var b=a.B;if(a.C){if(a.A())return this.B[b]||(this.B[b]=ji(this.A[b]||[],function(b){return new a.o(b)})),this.B[b]}else if(a.A())return!this.B[b]&&this.A[b]&&(this.B[b]=new a.o(this.A[b])),this.B[b];
return this.A[b]}};B(Z8,W8);var Nia=[241];Z8.prototype.getStatus=function(){return Z(this,59)};
Z8.prototype.setVideoId=function(a){175<this.C?this.o[174]=a:this.A[175]=a};
Z8.prototype.setTitle=function(a){176<this.C?this.o[175]=a:this.A[176]=a};
Z8.prototype.Lb=function(){return Z(this,201)};var Foa={legacy_config:!0,player_response:!0,polymer_player_response:!0},$8={baseurl:"baseUrl",focenabled:"focEnabled",loaderurl:"loaderUrl",rmktenabled:"rmktEnabled",ytfocenabled:"ytfocEnabled",ytfochistoryenabled:"ytfocHistoryEnabled",suggestedquality:"suggestedQuality"};B(d9,G);d9.F="defaultcontext";d9.o={};d9.B="appapi";d9.A="appad";d9.create=function(a,b){try{var c=d9.D(a);if(d9.o[c]){try{d9.o[c].dispose()}catch(e){zi(e)}d9.o[c]=null}var d=new d9(a,b);Lb(d,function(){d9.o[c]=null});
return d9.o[c]=d}catch(e){throw zi(e),e.stack;}};
d9.C=function(a,b){Qv("pwc");var c=window.document.querySelector(a);window.document.registerElement(a,{});var d=c.querySelector("template"),c=c.createShadowRoot(),d=window.document.importNode(d.content,!0);c.appendChild(d);c=c.getElementById(b);d=r("ytplayer.config");c=d9.create(c,d);d.loaded=!0;return c};
d9.D=function(a){return w(a)?a:"player"+na(a)};
h=d9.prototype;h.gA=function(){this.X.C&&Cp()||q9(this,5)};
h.bC=function(a){this.X.C&&Cp()||(T9(this),iz(a.getPlayerState())&&this.gf())};
h.Wr=function(a){var b=this.G.element;M(b,"ytp-ad-overlay-open",a);M(b,"ytp-ad-overlay-closed",!a)};
h.canPlayType=function(a){return!!hu().canPlayType(a)};
h.W=function(){return this.X};
h.getVideoData=function(){return this.F.getVideoData()};
h.Oj=function(){var a=lJ(this.X);ra(a,Eba(this.D));this.J&&ra(a,this.J.Kh());a.fs=this.o.Pa();a.volume=Math.round(this.Ra.Fb());a.mos=this.Ra.Fc()?1:0;return a};
h.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.H.getCurrentTime():(a=wq(this,a))?a.getCurrentTime():0};
h.getPresentingPlayerType=function(){var a;if(a=this.X.C&&this.H)a=this.H,a=!!a.A&&!!a.B;return a?3:wq(this).J};
h.WE=function(a){switch(a.type){case "loadedmetadata":this.K.A("fvb");this.qb.start();break;case "loadstart":this.K.A("gv");break;case "progress":case "timeupdate":!Rv("l2s",this.K.o)&&2<=bz(II(a.target))&&this.K.A("l2s")}};
h.wB=function(a,b){this.o.Ea("onLoadProgress",b)};
h.JC=function(){this.o.U("playbackstalledatstart")};
h.gD=function(a,b){this.o.Ea("onVideoProgress",b)};
h.TE=function(){this.Ra.U("progresssync",void 0,void 0)};
h.iA=function(a){!this.X.experiments.ga("disable_live_head_slowdown")&&0<XB(a,1)&&!T(a.state,64)&&Q4(this).Ha&&gM(this.A)&&1<this.S&&t9(this,1,!0);if(0<XB(a,2)){var b;this.C&&("embedded"==this.X.Ba||this.o.Pa())&&Sy(this)?(O9(this,!1,!this.X.experiments.ga("legacy_autoplay_flag")),b=!0):b=!1;!b&&aJ(this.X)&&OL(this.A).webkitExitFullScreen&&OL(this.A).webkitExitFullScreen()}T(a.state,128)&&(b=a.state,I9(this),b=b.o,this.o.Ea("onError",z$[b.errorCode]||5),this.o.Ea("onDetailedError",b));this.o.U("applicationplayerstatechange",
a);T(a.state,2)&&(a=this.getVideoData(),a.isLiveDefaultBroadcast&&G9(this,{videoId:a.videoId,livemonitor:a.Yf}))};
h.SE=function(a){!T(a.state,32)&&0>XB(a,16)&&(!T(a.state,8)||T(a.state,64)||this.B.o.ended||T(a.state,2)||this.gf());this.o.U("presentingplayerstatechange",a);r9(this,sz(a.state))};
h.fA=function(a){"newdata"==a&&B9(this)};
h.kA=function(a){a==this.F.getVideoData()&&this.o.Ea("onPlaybackAudioChange",v9(this).Hb.name)};
h.eD=function(a){var b=this.F.getVideoData();a==b&&this.o.Ea("onPlaybackQualityChange",a.B.video.quality)};
h.pn=function(a,b,c){if("newdata"==a)zN(this.D),this.A==this.F?(this.B.o.loop=this.Ca,this.B.o.playbackRate=this.S):(this.B.o.loop=!1,this.B.o.playbackRate=1),this.o.U("videoplayerreset",b);else{if(!this.B)return;if("dataloaded"==a)if(bJ(b.W(),c.C),this.F==this.A){this.X.C&&qp("embedded"==this.X.Ba);var d=this.X.C&&!!Cp();if(d||!Q4(this).hp||this.X.isMobile){var e=Q4(this);if(!Ux(e)||d||Hx(this.A.o)){Vx(e);d&&q9(this,6);e=!1;d=P4.Ya;!this.J&&d(this)&&(this.J=new P4(this),m9(this,this.J),e=!0);try{var f=
this.J;f&&!f.F&&f.Ya(this.Ra)&&f.create()}catch(k){zi(k),this.A&&this.A.uj("ad")}e&&(e=this.J,d=Q4(this),f=wq(this),d.subscribe("cuepointupdated",e.SA,e),e.da=d,e=V4(e),null!=e&&(e.H=f),this.J.subscribe("overlay_ad_open",qa(this.Wr,!0),this),this.J.subscribe("overlay_ad_close",qa(this.Wr,!1),this));n9(this);l9(this)}else f="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",x5||gq()||Zp("xbox")&&Zp("trident")||fq()||(f=Px(e)?"YTP_HTML5_PROTECTED_FLASH_FALLBACK":"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),
PL(this.A,"fmt.noneavailable",f,void 0)}else f="YTP_DEVICE_FALLBACK",x5||gq()||Zp("xbox")&&Zp("trident")||fq()||(f="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),PL(this.A,"html5.unsupportedads",f,void 0)}else l9(this);1==b.J&&(this.getVideoData().bi?(f=this.B,f.D=!0,f.o.muted=!0):(this.B.D=!1,U9(this,this.Y)),this.getVideoData().Ha&&!this.X.tf&&PL(this.A,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),Vx(c)&&(c.xa||c.Ja||c.D.focEnabled||c.D.rmktEnabled||this.getVideoData().Vd)&&(f=this.getVideoData(),
E9(this,"part2viewed",1,0x8000000000000),E9(this,"engagedview",Math.max(1,1E3*f.hf),0x8000000000000),f.Ha||(f=1E3*f.lengthSeconds,E9(this,"videoplaytime25",.25*f,f),E9(this,"videoplaytime50",.5*f,f),E9(this,"videoplaytime75",.75*f,f),E9(this,"videoplaytime100",f,0x8000000000000),E9(this,"conversionview",f,0x8000000000000))));this.o.U("videodatachange",a,c,b.J)}this.X.$a&&this.o.Ea("onVideoDataChange",{type:a,playertype:b.J})};
h.Ek=function(){f9(this,null);this.o.Ea("onPlaylistUpdate")};
h.tq=function(a){var b=a.getId(),c=Q4(this);if("part2viewed"==b)c.yd&&iq(c.yd),c.Ja&&iq(c.Ja);else if("conversionview"==b){var d=this.A;d.B&&VB(d.B)}else"engagedview"==b&&iq(c.xa);c.na&&(d=a.getId(),d=lj(c.na,{label:d}),iq(d));switch(b){case "videoplaytime25":c.dc&&iq(c.dc);iq(c.uf);break;case "videoplaytime50":c.qd&&iq(c.qd);iq(c.vf);break;case "videoplaytime75":c.rd&&iq(c.rd);iq(c.pf);break;case "videoplaytime100":c.bc&&iq(c.bc),iq(c.tf)}(b=this.getVideoData().Vd)&&b[a.getId()]&&(c=b[a.getId()],
iq(c,void 0,mq(c)),b=b[a.getId()+"gaia"],iq(b,void 0,mq(b)));this.A.F.Ch(a)};
h.xg=function(a,b,c,d){b=0!=b;if(d=wq(this,d))2==this.M&&h9(this),WL(d,a,b,c)};
h.VE=function(a,b){var c=a.getVideoData();if(1==this.M||2==this.M)c.startSeconds=b;2==this.M?h9(this):this.o.U("seekto",b)};
h.Xz=function(){this.o.U("airplayactivechange")};
h.Yz=function(){this.o.U("airplayavailabilitychange")};
h.OE=function(){this.o.U("beginseeking")};
h.PE=function(){this.o.U("endseeking")};
h.Qq=function(){var a=this.C.yb(),b=this.getVideoData();b.Pc||!this.da?(b=b.zg,a=F9(this,a),b&&J9(this,a)):a&&K9(this,a)};
h.dA=function(a){this.o.Ea("onCueRangeEnter",a.getId())};
h.eA=function(a){this.o.Ea("onCueRangeExit",a.getId())};
h.hA=function(){this.fa||(this.fa=Dv(this.zq,this));F1(this.K,c5(this));if(!this.kb&&"detailpage"==this.X.Ba){this.kb=!0;var a=this.A;if(a.da&&a.da.o){var b={},c={};a.o.videoId&&(b.docid=a.o.videoId);a.o.playbackId&&(b.plid=a.o.playbackId);b.cpn=a.o.clientPlaybackNonce;b.ad_cpn=a.da.o;var d=Qt()-a.da.A;a.da.B?c.astv=d:c.actv=d;a={v:2,s:"youtube",action:"watch,ad2video_html5"};c.aft=c.pbs=c.astv||c.actv;var d=[],e;for(e in c)"_"!=e.charAt(0)&&d.push(e+"."+Math.round(c[e]));a.rt=d.join(",");for(var f in b)"_"!=
f.charAt(0)&&(a[f]=b[f]);b=ti("TIMING_INFO",{});"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);$v(a)}}this.X.experiments.C&&Sy(this)&&(b=this.C.yb(iy(this.C)))&&H9(this,b)};
h.zq=function(a){a=a.o;if(!(0,window.isNaN)(a)&&0<a&&this.A){var b=this.A;b.B&&0<a&&(b.B.A.B.aft=[a])}};
h.Mq=function(a){"remote"==a?(2==this.M&&h9(this),q9(this,6),o9(this,this.J)):this.im()};
h.Nq=function(a){"remote"!=a||this.X.C&&Cp()||(this.gf(),this.pauseVideo());this.im()};
h.im=function(){this.X.$a&&this.F?this.o.Ea("onApiChange",this.F.J):this.o.Ea("onApiChange")};
h.EB=function(){var a={volume:le(Math.floor(100*this.B.o.volume),0,100),muted:this.B.o.muted};this.Y=ec(a);this.o.Ea("onVolumeChange",a)};
h.jB=function(){V9(this,Dh()?1:0)};
h.UE=function(){if(this.B){var a=!1;if(0!=this.B.o.readyState&&this.F){var b=mr(this.B.o),c=this.getVideoData();ve(c.Ud,b)||(c.Ud=b,a=!0)}b=CF(this.G);ye(this.wb,b)||(this.wb=b,a=!0);a&&(this.F&&nM(this.F,"r"),!this.X.experiments.ga("disable_app_resize")&&this.A&&this.A!=this.F&&nM(this.A,"r"));this.o.U("resize",this.G.Ma())}};
h.rC=function(){2!=this.bb&&V9(this,Dh()==this.G.element?1:0)};
h.RE=function(a){this.o.U("liveviewshift",a)};
h.lD=function(){this.o.Ea("WATCH_LATER_VIDEO_ADDED")};
h.nD=function(){this.o.Ea("WATCH_LATER_VIDEO_REMOVED")};
h.mD=function(a,b){var c;b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);this.o.Ea("WATCH_LATER_ERROR",c||Q("YTP_ERROR_GENERIC_WITHOUT_LINK"))};
h.gf=function(a){(a=wq(this,a))&&(2==this.M?h9(this):!this.X.experiments.ga("new_ended_replay")&&T(a.getPlayerState(),2)?this.xg(0):iM(a))};
h.pauseVideo=function(a){(a=wq(this,a))&&a.pauseVideo()};
h.getAdState=function(){return this.J?this.J.getAdState():-1};
h.Hs=function(a,b,c){this.yj();this.ra=a;b&&F(b,function(a){this.ea[a]=!0},this);
c&&Dba(this.D,a,c)};
h.yj=function(){this.ra=null;this.ea={};AN(this.D)};
h.DC=function(){if(!this.Na){this.Na=!0;var a=this.getVideoData(),b={};b.video_id=a.videoId;a.Ha||(b.start=wq(this).getCurrentTime());b.autoplay=1;b.reload=1;G9(this,b)}};
h.NA=function(){this.o.Ea("CONNECTION_ISSUE")};
h.QE=function(a){this.o.Ea("heartbeatparams",a)};
h.V=function(){this.X.C&&tp();this.A.dispose();this.P&&this.P.dispose();k9(this);Nb(Vb(this.Ka),this.C);this.Fa=null;Cv(this.fa);this.fa=0;d9.N.V.call(this)};q("yt.player.Application.create",d9.create,void 0);q("yt.player.Application.createWebComponent",d9.C,void 0);var $$=r("ytcsi.tick");$$&&$$("pe");})(_yt_player);
