var _yt_player={};(function(g){var window=this;var h;var n=function(a){return void 0!==a};
var q=function(a,b,c){a=a.split(".");c=c||r;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&n(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}};
var t=function(a,b){for(var c=a.split("."),d=b||r,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};
var w=function(){};
var aa=function(a){a.getInstance=function(){return a.Lb?a.Lb:a.Lb=new a}};
var ba=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};
var ca=function(a){return null===a};
var da=function(a){return"array"==ba(a)};
var ea=function(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length};
var y=function(a){return"string"==typeof a};
var fa=function(a){return"number"==typeof a};
var ha=function(a){return"function"==ba(a)};
var ia=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
var ka=function(a){return a[la]||(a[la]=++ma)};
var na=function(a,b,c){return a.call.apply(a.bind,arguments)};
var oa=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)}};
var A=function(a,b,c){A=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?na:oa;return A.apply(null,arguments)};
var pa=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)}};
var qa=function(a,b){for(var c in b)a[c]=b[c]};
var ra=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));
return a};
var 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),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[c].apply(a,k)}};
var sa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,sa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
var ta=function(a,b){return 0==a.lastIndexOf(b,0)};
var ua=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
var C=function(a){return/^[\s\xa0]*$/.test(a)};
var va=function(a){return(0,window.encodeURIComponent)(String(a))};
var xa=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
var ya=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};
var Ga=function(a){return Ha(a,"&")?"document"in r?Ia(a):Ja(a):a};
var Ia=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=r.document.createElement("div");return a.replace(Ka,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})};
var 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}})};
var La=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
var Ha=function(a,b){return-1!=a.indexOf(b)};
var Ma=function(a,b){return Ha(a.toLowerCase(),b.toLowerCase())};
var Na=function(){var a;a="";var b=ra("Skip Ad \u00bb");a=a+b;b=new RegExp(Oa("\u00bb"),"");return a.replace(b,"")};
var Oa=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
var Pa=function(a,b,c){a=n(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Qa("0",Math.max(0,b-c))+a};
var D=function(a){return null==a?"":String(a)};
var Ra=function(a){return Array.prototype.join.call(arguments,"")};
var Sa=function(a,b){for(var c=0,d=Ta(String(a)).split("."),e=Ta(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var l=d[k]||"",m=e[k]||"",p=RegExp("(\\d*)(\\D*)","g"),u=RegExp("(\\d*)(\\D*)","g");do{var v=p.exec(l)||["","",""],z=u.exec(m)||["","",""];if(0==v[0].length&&0==z[0].length)break;c=Ua(0==v[1].length?0:(0,window.parseInt)(v[1],10),0==z[1].length?0:(0,window.parseInt)(z[1],10))||Ua(0==v[2].length,0==z[2].length)||Ua(v[2],z[2])}while(0==c)}return c};
var Ua=function(a,b){return a<b?-1:a>b?1:0};
var Va=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
var Wa=function(){return"goog_"+Xa++};
var Ya=function(a){var b=Number(a);return 0==b&&C(a)?window.NaN:b};
var Za=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
var $a=function(a){var b=y(void 0)?Oa(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};
var ab=function(a){(0,window.isFinite)(a)&&(a=String(a));return y(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN};
var 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};
var cb=function(a){return a};
var db=function(a){return a[a.length-1]};
var eb=function(a,b,c){b=fb(a,b,c);return 0>b?null:y(a)?a.charAt(b):a[b]};
var fb=function(a,b,c){for(var d=a.length,e=y(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
var gb=function(a,b){var c=ib(a,b,void 0);return 0>c?null:y(a)?a.charAt(c):a[c]};
var ib=function(a,b,c){for(var d=y(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};
var E=function(a,b){return 0<=jb(a,b)};
var kb=function(a){return 0==a.length};
var lb=function(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
var nb=function(a,b){E(a,b)||a.push(b)};
var ob=function(a,b){var c=jb(a,b),d;(d=0<=c)&&pb(a,c);return d};
var pb=function(a,b){Array.prototype.splice.call(a,b,1)};
var qb=function(a,b){var c=fb(a,b,void 0);0<=c&&pb(a,c)};
var rb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};
var 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[]};
var 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)}};
var ub=function(a,b,c,d){Array.prototype.splice.apply(a,vb(arguments,1))};
var vb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
var wb=function(a,b,c){function d(a){return ia(a)?"o"+ka(a):(typeof a).charAt(0)+a}
b=b||a;c=c||d;for(var e={},f=0,k=0;k<a.length;){var l=a[k++],m=c(l);Object.prototype.hasOwnProperty.call(e,m)||(e[m]=!0,b[f++]=l)}b.length=f};
var xb=function(a,b,c){return yb(a,c||zb,!1,b)};
var Ab=function(a,b){return yb(a,b,!0,void 0,void 0)};
var yb=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+k>>1,p;c?p=b.call(e,a[m],m,a):p=b(d,a[m]);0<p?f=m+1:(k=m,l=!p)}return l?f:~f};
var Bb=function(a,b){a.sort(b||zb)};
var Cb=function(a,b,c){var d=c||zb;Bb(a,function(a,c){return d(b(a),b(c))})};
var Db=function(a,b){Cb(a,function(a){return a[b]},void 0)};
var Eb=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};
var zb=function(a,b){return a>b?1:a<b?-1:0};
var Fb=function(a,b){return a===b};
var Gb=function(a,b,c){c=xb(a,b,c);0>c&&ub(a,-(c+1),0,b)};
var Hb=function(a,b,c){var d={};F(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
var Ib=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b};
var Jb=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=vb(d,e,e+8192),f=Jb.apply(null,f),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b};
var G=function(){this.Qa=this.Qa;this.Da=this.Da};
var H=function(a,b){Kb(a,pa(Mb,b))};
var Kb=function(a,b){a.Qa?b.call(void 0):(a.Da||(a.Da=[]),a.Da.push(n(void 0)?A(b,void 0):b))};
var Mb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
var 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)}};
var Ob=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
var 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};
var Qb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
var Rb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
var Sb=function(a){var b=0,c;for(c in a)b++;return b};
var Tb=function(a,b){return Ub(a,b)};
var Vb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
var Wb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
var Xb=function(a,b){for(var c=ea(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],n(a));c++);return a};
var Yb=function(a,b){return null!==a&&b in a};
var Ub=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
var Zb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
var $b=function(a,b){var c=Zb(a,b,void 0);return c&&a[c]};
var ac=function(a){for(var b in a)return!1;return!0};
var bc=function(a){for(var b in a)delete a[b]};
var cc=function(a,b){b in a&&delete a[b]};
var dc=function(a,b,c){return null!==a&&b in a?a[b]:c};
var ec=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
var fc=function(a){var b=ba(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};
var gc=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<hc.length;f++)c=hc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
var 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};
var jc=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.A=!1;this.tq=!0};
var kc=function(a){a.stopPropagation()};
var lc=function(a){lc[" "](a);return a};
var mc=function(a,b){try{return lc(a[b]),!0}catch(c){}return!1};
var nc=function(a){return Ha(oc,a)};
var pc=function(){return nc("Opera")||nc("OPR")};
var qc=function(){return(nc("Chrome")||nc("CriOS"))&&!pc()&&!nc("Edge")};
var rc=function(){return nc("iPhone")&&!nc("iPod")&&!nc("iPad")};
var sc=function(){var a=oc;if(tc)return/rv\:([^\);]+)(\)|;)/.exec(a);if(uc)return/Edge\/([\d\.]+)/.exec(a);if(vc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(wc)return/WebKit\/(\S+)/.exec(a)};
var xc=function(){var a=r.document;return a?a.documentMode:void 0};
var yc=function(a){return zc[a]||(zc[a]=0<=Sa(Ac,a))};
var Bc=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)};
var Cc=function(a){return!(!a||!a[Dc])};
var Fc=function(a,b,c,d,e){this.listener=a;this.o=null;this.src=b;this.type=c;this.cf=!!d;this.Tc=e;this.key=++Gc;this.Jf=this.Nh=!1};
var Hc=function(a){a.Jf=!0;a.listener=null;a.o=null;a.src=null;a.Tc=null};
var Ic=function(a){this.src=a;this.o={};this.A=0};
var Jc=function(a,b,c,d,e,f){var k=b.toString();b=a.o[k];b||(b=a.o[k]=[],a.A++);var l=Kc(b,c,e,f);-1<l?(a=b[l],d||(a.Nh=!1)):(a=new Fc(c,a.src,k,!!e,f),a.Nh=d,b.push(a));return a};
var Lc=function(a,b){var c=b.type;if(!(c in a.o))return!1;var d=ob(a.o[c],b);d&&(Hc(b),0==a.o[c].length&&(delete a.o[c],a.A--));return d};
var Mc=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};
var Kc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Jf&&f.listener==b&&f.cf==!!c&&f.Tc==d)return e}return-1};
var Nc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Nc(a,b[f],c,d,e);return null}c=Oc(c);return Cc(a)?a.R(b,c,d,e):Pc(a,b,c,!1,d,e)};
var Pc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=!!e,l=Qc(a);l||(a[Rc]=l=new Ic(a));c=Jc(l,b,c,d,e,f);if(c.o)return c;d=Sc();c.o=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Tc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Uc++;return c};
var Sc=function(){var a=Vc,b=Wc?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};
var Xc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Xc(a,b[f],c,d,e);return null}c=Oc(c);return Cc(a)?Jc(a.gd,String(b),c,!0,d,e):Pc(a,b,c,!0,d,e)};
var 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);else c=Oc(c),Cc(a)?a.za(b,c,d,e):a&&(a=Qc(a))&&(b=Mc(a,b,c,!!d,e))&&Zc(b)};
var Zc=function(a){if(fa(a)||!a||a.Jf)return!1;var b=a.src;if(Cc(b))return Lc(b.gd,a);var c=a.type,d=a.o;b.removeEventListener?b.removeEventListener(c,d,a.cf):b.detachEvent&&b.detachEvent(Tc(c),d);Uc--;(c=Qc(b))?(Lc(c,a),0==c.A&&(c.src=null,b[Rc]=null)):Hc(a);return!0};
var Tc=function(a){return a in $c?$c[a]:$c[a]="on"+a};
var ad=function(a,b,c,d){var e=!0;if(a=Qc(a))if(b=a.o[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.cf==c&&!f.Jf&&(f=bd(f,d),e=e&&!1!==f)}return e};
var bd=function(a,b){var c=a.listener,d=a.Tc||a.src;a.Nh&&Zc(a);return c.call(d,b)};
var Vc=function(a,b){if(a.Jf)return!0;if(!Wc){var c=b||t("window.event"),d=new Bc(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(m){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 l=ad(c[k],f,!0,d),e=e&&l}for(k=0;!d.A&&k<c.length;k++)d.currentTarget=c[k],l=ad(c[k],f,!1,d),e=e&&l}return e}return bd(a,new Bc(b,
this))};
var Qc=function(a){a=a[Rc];return a instanceof Ic?a:null};
var Oc=function(a){if(ha(a))return a;a[cd]||(a[cd]=function(b){return a.handleEvent(b)});
return a[cd]};
var dd=function(){G.call(this);this.gd=new Ic(this);this.Oa=this;this.ia=null};
var ed=function(a,b,c,d){b=a.gd.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.Jf&&k.cf==c){var l=k.listener,m=k.Tc||k.src;k.Nh&&Lc(a.gd,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.tq};
var fd=function(a,b,c){this.D=c;this.B=a;this.C=b;this.A=0;this.o=null};
var gd=function(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
var hd=function(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}};
var id=function(a){r.setTimeout(function(){throw a;},0)};
var jd=function(a,b){var c=a;b&&(c=A(a,b));!ha(r.setImmediate)||r.Window&&r.Window.prototype&&!nc("Edge")&&r.Window.prototype.setImmediate==r.setImmediate?(kd||(kd=ld()),kd(c)):r.setImmediate(c)};
var ld=function(){var a=r.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!nc("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=A(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&&!nc("Trident")&&!nc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.In;c.In=null;a()}};
return function(a){d.next={In: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){r.setTimeout(a,0)}};
var md=function(){this.A=this.o=null};
var nd=function(){this.next=this.scope=this.o=null};
var od=function(a,b){pd||qd();rd||(pd(),rd=!0);var c=sd,d=td.get();d.set(a,b);c.A?c.A.next=d:c.o=d;c.A=d};
var qd=function(){if(r.Promise&&r.Promise.resolve){var a=r.Promise.resolve(void 0);pd=function(){a.then(ud)}}else pd=function(){jd(ud)}};
var ud=function(){for(var a=null;a=sd.remove();){try{a.o.call(a.scope)}catch(b){id(b)}td.put(a)}rd=!1};
var vd=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
var xd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
var yd=function(a,b){this.o=0;this.G=void 0;this.C=this.A=this.B=null;this.D=this.F=!1;if(a!=w)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)}};
var Ad=function(){this.next=this.context=this.A=this.B=this.o=null;this.C=!1};
var Bd=function(a,b,c){var d=Cd.get();d.B=a;d.A=b;d.context=c;return d};
var Dd=function(a){return new yd(function(b,c){c(a)})};
var Ed=function(a,b){return Fd(a,null,b,void 0)};
var Gd=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.C||(d++,k.o==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.o&&1==d?Gd(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Hd(c),Id(c,e,3,b)))}a.B=null}else zd(a,3,b)};
var Jd=function(a,b){a.A||2!=a.o&&3!=a.o||Kd(a);a.C?a.C.next=b:a.A=b;a.C=b};
var Fd=function(a,b,c,d){var e=Bd(null,null,null);e.o=new yd(function(a,k){e.B=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){k(p)}}:a;
e.A=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Ld?k(b):a(e)}catch(p){k(p)}}:k});
e.o.B=a;Jd(a,e);return e.o};
var 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 yd)Jd(e,Bd(f||w,k||null,a)),d=!0;else if(xd(e))e.then(f,k,a),d=!0;else{if(ia(e))try{var l=e.then;if(ha(l)){Md(e,l,f,k,a);d=!0;break a}}catch(m){k.call(a,m);d=!0;break a}d=!1}}d||(a.G=c,a.o=b,a.B=null,Kd(a),3!=b||c instanceof Ld||Nd(a,c))}};
var Md=function(a,b,c,d,e){function f(a){l||(l=!0,d.call(e,a))}
function k(a){l||(l=!0,c.call(e,a))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
var Kd=function(a){a.F||(a.F=!0,od(a.H,a))};
var Hd=function(a){var b=null;a.A&&(b=a.A,a.A=b.next,b.next=null);a.A||(a.C=null);return b};
var Id=function(a,b,c,d){if(3==c&&b.A&&!b.C)for(;a&&a.D;a=a.B)a.D=!1;if(b.o)b.o.B=null,Od(b,c,d);else try{b.C?b.B.call(b.context):Od(b,c,d)}catch(e){Pd.call(null,e)}Cd.put(b)};
var Od=function(a,b,c){2==b?a.B.call(a.context,c):a.A&&a.A.call(a.context,c)};
var Nd=function(a,b){a.D=!0;od(function(){a.D&&Pd.call(null,b)})};
var Ld=function(a){sa.call(this,a)};
var Qd=function(a,b){dd.call(this);this.o=a||1;this.A=b||r;this.B=A(this.aw,this);this.C=I()};
var Rd=function(a,b){a.o=b;a.ya&&a.enabled?(a.stop(),a.start()):a.ya&&a.stop()};
var Sd=function(a,b,c){if(ha(a))c&&(a=A(a,c));else if(a&&"function"==typeof a.handleEvent)a=A(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:r.setTimeout(a,b||0)};
var Td=function(a){r.clearTimeout(a)};
var Ud=function(a,b,c){G.call(this);this.o=a;this.C=b||0;this.A=c;this.B=A(this.ho,this)};
var Vd=function(a){a.stop();a.ho()};
var Wd=function(a){if(a.classList)return a.classList;a=a.className;return y(a)&&a.match(/\S+/g)||[]};
var Xd=function(a,b){return a.classList?a.classList.contains(b):E(Wd(a),b)};
var K=function(a,b){a.classList?a.classList.add(b):Xd(a,b)||(a.className+=0<a.className.length?" "+b:b)};
var Yd=function(a,b){if(a.classList)F(b,function(b){K(a,b)});
else{var c={};F(Wd(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}};
var Zd=function(a,b){a.classList?a.classList.remove(b):Xd(a,b)&&(a.className=$d(Wd(a),function(a){return a!=b}).join(" "))};
var ae=function(a,b){a.classList?F(b,function(b){Zd(a,b)}):a.className=$d(Wd(a),function(a){return!E(b,a)}).join(" ")};
var L=function(a,b,c){c?K(a,b):Zd(a,b)};
var be=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);};
var ce=function(a){return eval("("+a+")")};
var de=function(a){return(new ee(void 0)).nc(a)};
var ee=function(a){this.o=a};
var fe=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],fe(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),he(d,c),c.push(":"),fe(a,a.o?a.o.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":he(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);}}};
var he=function(a,b){b.push('"',a.replace(ie,function(a){var b=je[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),je[a]=b);return b}),'"')};
var ke=function(a,b,c){return Math.min(Math.max(a,b),c)};
var le=function(a){return me(arguments,function(a,c){return a+c},0)};
var ne=function(a){return le.apply(null,arguments)/arguments.length};
var oe=function(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0};
var pe=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
var qe=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
var re=function(a,b){this.width=a;this.height=b};
var se=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
var te=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
var ue=function(a){return new qe(a.top,a.left+a.width,a.top+a.height,a.left)};
var ve=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};
var we=function(a){return new re(a.width,a.height)};
var xe=function(a){return new oe(a.left,a.top)};
var ye=function(a,b){return b?a.replace(ze,""):a};
var Ae=function(){this.o="";this.A=Be};
var Ce=function(a){return a instanceof Ae&&a.constructor===Ae&&a.A===Be?a.o:"type_error:Const"};
var De=function(a){var b=new Ae;b.o=a;return b};
var Ee=function(){this.o="";this.A=Fe};
var Ge=function(a){var b=new Ee;b.o=a;return b};
var He=function(){this.o="";this.A=Ie};
var Je=function(a){return a instanceof He&&a.constructor===He&&a.A===Ie?a.o:"type_error:SafeUrl"};
var Ke=function(a){if(a instanceof He)return a;a=a.Je?a.jd():String(a);Le.test(a)||(a="about:invalid#zClosurez");var b=new He;b.o=a;return b};
var Me=function(){this.o=Ne};
var Oe=function(a){return a instanceof Me&&a.constructor===Me&&a.o===Ne?"":"type_error:TrustedResourceUrl"};
var Pe=function(){this.o="";this.B=Qe;this.A=null};
var Re=function(a){return a instanceof Pe&&a.constructor===Pe&&a.B===Qe?a.o:"type_error:SafeHtml"};
var Se=function(a){function b(a){if(da(a))F(a,b);else{var f;a instanceof Pe?f=a:(f=null,a.$k&&(f=a.hf()),a=ya(a.Je?a.jd():String(a)),f=Te(a,f));d+=Re(f);f=f.hf();0==c?c=f:0!=f&&c!=f&&(c=null)}}
var c=0,d="";F(arguments,b);return Te(d,c)};
var Te=function(a,b){var c=new Pe;c.o=a;c.A=b;return c};
var Ue=function(a){return a?new Ve(We(a)):Xe||(Xe=new Ve)};
var Ye=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Ze("*",a,b)};
var $e=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=Ze("*",a,b)[0];return d||null};
var Ze=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&&E(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c};
var af=function(a,b){Ob(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:bf.hasOwnProperty(d)?a.setAttribute(bf[d],b):ta(d,"aria-")||ta(d,"data-")?a.setAttribute(d,b):a[d]=b})};
var cf=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new re(a.clientWidth,a.clientHeight)};
var df=function(a){var b=ef(a);a=a.parentWindow||a.defaultView;return vc&&yc("10")&&a.pageYOffset!=b.scrollTop?new oe(b.scrollLeft,b.scrollTop):new oe(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
var ef=function(a){return a.scrollingElement?a.scrollingElement:wc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
var ff=function(a){return a?a.parentWindow||a.defaultView:window};
var M=function(a,b,c){return gf(window.document,arguments)};
var gf=function(a,b){var c=b[0],d=b[1];if(!hf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ya(d.name),'"');if(d.type){c.push(' type="',ya(d.type),'"');var e={};gc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(y(d)?c.className=d:da(d)?c.className=d.join(" "):af(c,d));2<b.length&&jf(a,c,b,2);return c};
var jf=function(a,b,c,d){function e(c){c&&b.appendChild(y(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var f=c[d];!ea(f)||ia(f)&&0<f.nodeType?e(f):F(kf(f)?sb(f):f,e)}};
var lf=function(a){return window.document.createElement(a)};
var mf=function(a,b){a.appendChild(b)};
var nf=function(a,b){jf(We(a),a,arguments,1)};
var of=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
var pf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
var qf=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)};
var rf=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
var sf=function(a){return tf&&void 0!=a.children?a.children:$d(a.childNodes,function(a){return 1==a.nodeType})};
var uf=function(a){return n(a.firstElementChild)?a.firstElementChild:vf(a.firstChild)};
var vf=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
var wf=function(a){var b;if(xf&&!(vc&&yc("9")&&!yc("10")&&r.SVGElement&&a instanceof r.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ia(b)&&1==b.nodeType?b:null};
var yf=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
var We=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
var zf=function(a){try{return a.contentWindow||(a.contentDocument?ff(a.contentDocument):null)}catch(b){}return null};
var Af=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{of(a);var c=We(a);a.appendChild(c.createTextNode(String(b)))}};
var Bf=function(a){if("outerHTML"in a)return a.outerHTML;var b=We(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
var Cf=function(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Df(a)||Ef(a)):Df(a)&&Ef(a))&&vc?(a=ha(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a};
var Df=function(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified};
var Ef=function(a){a=a.tabIndex;return fa(a)&&0<=a&&32768>a};
var kf=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};
var Ff=function(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return Gf(a,function(a){return(!e||a.nodeName==e)&&(!c||y(a.className)&&E(a.className.split(/\s+/),c))},d)};
var Hf=function(a,b){return Ff(a,null,b,void 0)};
var Gf=function(a,b,c){for(var d=null==c,e=0;a&&(d||e<=c);){if(b(a))return a;a=a.parentNode;e++}return null};
var Ve=function(a){this.o=a||r.document||window.document};
var If=function(a){a=a.o;return a.parentWindow||a.defaultView};
var Jf=function(a){return df(a.o)};
var Kf=function(){return wc?"Webkit":tc?"Moz":vc?"ms":Lf?"O":null};
var Mf=function(a,b,c){if(y(b))(b=Nf(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Nf(c,d);f&&(c.style[f]=e)}};
var Nf=function(a,b){var c=Of[b];if(!c){var d=Za(b),c=d;void 0===a.style[d]&&(d=Kf()+$a(d),void 0!==a.style[d]&&(c=d));Of[b]=c}return c};
var Qf=function(a,b){var c=a.style[Za(b)];return"undefined"!==typeof c?c:a.style[Nf(a,b)]||""};
var Rf=function(a,b){var c=We(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
var Sf=function(a,b){return Rf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
var Tf=function(a,b,c){var d;b instanceof oe?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Uf(d,!1);a.style.top=Uf(b,!1)};
var Vf=function(a){return new oe(a.offsetLeft,a.offsetTop)};
var Wf=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}vc&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
var Xf=function(a){if(vc&&!(8<=Yf))return a.offsetParent;var b=We(a),c=Sf(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=Sf(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};
var Zf=function(a){for(var b=new qe(0,window.Infinity,window.Infinity,0),c=Ue(a),d=c.o.body,e=c.o.documentElement,f=ef(c.o);a=Xf(a);)if(!(vc&&0==a.clientWidth||wc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Sf(a,"overflow")){var k=$f(a),l=new oe(a.clientLeft,a.clientTop);k.x+=l.x;k.y+=l.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=cf(If(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};
var $f=function(a){var b=We(a),c=new oe(0,0),d;d=b?We(b):window.document;var e;(e=!vc)||(e=9<=Yf);e||(e="CSS1Compat"==Ue(d).o.compatMode);if(a==(e?d.documentElement:d.body))return c;a=Wf(a);b=Jf(Ue(b));c.x=a.left+b.x;c.y=a.top+b.y;return c};
var ag=function(a,b){var c=new oe(0,0),d=ff(We(a));if(!mc(d,"parent"))return c;var e=a;do{var f=d==b?$f(e):bg(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
var cg=function(a,b){var c=dg(a),d=dg(b);return new oe(c.x-d.x,c.y-d.y)};
var bg=function(a){a=Wf(a);return new oe(a.left,a.top)};
var dg=function(a){if(1==a.nodeType)return bg(a);a=a.changedTouches?a.changedTouches[0]:a;return new oe(a.clientX,a.clientY)};
var eg=function(a,b,c){if(b instanceof re)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");fg(a,b);a.style.height=Uf(c,!0)};
var Uf=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
var fg=function(a,b){a.style.width=Uf(b,!0)};
var gg=function(a){return hg(a)};
var hg=function(a){var b=ig;if("none"!=Sf(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};
var ig=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=wc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new re(b,c):(a=Wf(a),new re(a.right-a.left,a.bottom-a.top))};
var jg=function(a){var b=$f(a);a=hg(a);return new te(b.x,b.y,a.width,a.height)};
var kg=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*b+")")};
var lg=function(a,b){a.style.display=b?"":"none"};
var mg=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};
var ng=function(a){var b=Sf(a,"fontSize"),c;c=(c=b.match(og))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(vc){if(c in pg)return mg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in qg)return a=a.parentNode,c=Sf(a,"fontSize"),mg(a,b==c?"1em":b)}c=M("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;qf(c);return b};
var rg=function(){};
var sg=function(a){if(a instanceof rg)return a;if("function"==typeof a.Tb)return a.Tb(!1);if(ea(a)){var b=0,c=new rg;c.next=function(){for(;;){if(b>=a.length)throw tg;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
var ug=function(a,b,c){if(ea(a))try{F(a,b,c)}catch(d){if(d!==tg)throw d;}else{a=sg(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==tg)throw d;}}};
var vg=function(a){if(ea(a))return sb(a);a=sg(a);var b=[];ug(a,function(a){b.push(a)});
return b};
var wg=function(a,b){this.A={};this.o=[];this.ae=this.xa=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 wg?(c=a.Na(),d=a.Ka()):(c=Wb(a),d=Vb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
var xg=function(a,b){return yg(a.A,b)};
var zg=function(a,b){return a===b};
var Ag=function(a){if(a.xa!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];yg(a.A,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.xa!=a.o.length){for(var e={},c=b=0;b<a.o.length;)d=a.o[b],yg(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}};
var yg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
var Bg=function(a){return a.Za&&"function"==typeof a.Za?a.Za():ea(a)||y(a)?a.length:Sb(a)};
var Cg=function(a){if(a.Ka&&"function"==typeof a.Ka)return a.Ka();if(y(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)};
var Dg=function(a){if(a.Na&&"function"==typeof a.Na)return a.Na();if(!a.Ka||"function"!=typeof a.Ka){if(ea(a)||y(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Wb(a)}};
var Eg=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(ea(a)||y(a))F(a,b,c);else for(var d=Dg(a),e=Cg(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)};
var Fg=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ea(a)||y(a))return Gg(a,b,c);for(var d=Dg(a),e=Cg(a),f=e.length,k=0;k<f;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0};
var Hg=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
var Ig=function(a){return a.match(Jg)};
var Kg=function(a){return a?(0,window.decodeURI)(a):a};
var Lg=function(a){return Kg(Ig(a)[3]||null)};
var Mg=function(a){return Number(Ig(a)[4]||null)||null};
var Ng=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):"")}};
var Og=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("")};
var Pg=function(a,b,c){if(da(b))for(var d=0;d<b.length;d++)Pg(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",va(b))};
var Qg=function(a,b,c){for(c=c||0;c<b.length;c+=2)Pg(b[c],b[c+1],a);return a};
var Rg=function(a,b){for(var c in b)Pg(c,b[c],a);return a};
var Sg=function(a){a=Rg([],a);a[0]="";return a.join("")};
var Tg=function(a,b){return Og(2==arguments.length?Qg([a],arguments[1],0):Qg([a],arguments,1))};
var Ug=function(a,b){return Og(Rg([a],b))};
var Vg=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};
var Wg=function(a,b){var c=a.search(Xg),d=Vg(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))};
var Yg=function(a,b){for(var c=a.search(Xg),d=0,e,f=[];0<=(e=Vg(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(Zg,"$1")};
var $g=function(a,b,c){a=[Yg(a,b),"&",b];null!=c&&a.push("=",va(c));return Og(a)};
var 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=n(b)?b:a.F,ah(this,a.C),this.H=a.H,bh(this,a.A),ch(this,a.D),dh(this,a.B),eh(this,a.o.clone()),this.J=a.Ce()):a&&(c=Ig(String(a)))?(this.F=!!b,ah(this,c[1]||"",!0),this.H=fh(c[2]||""),bh(this,c[3]||"",!0),ch(this,c[4]),dh(this,c[5]||"",!0),eh(this,c[6]||"",!0),this.J=fh(c[7]||"")):(this.F=!!b,this.o=new gh(null,0,this.F))};
var ah=function(a,b,c){a.C=c?fh(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
var hh=function(a){return a.A};
var bh=function(a,b,c){a.A=c?fh(b,!0):b;return a};
var ch=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};
var dh=function(a,b,c){a.B=c?fh(b,!0):b};
var eh=function(a,b,c){b instanceof gh?(a.o=b,ih(a.o,a.F)):(c||(b=jh(b,kh)),a.o=new gh(b,0,a.F));return a};
var lh=function(a){return a.o};
var mh=function(a,b,c){a.o.set(b,c);return a};
var nh=function(a,b,c){da(c)||(c=[String(c)]);oh(a.o,b,c)};
var ph=function(a){mh(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^I()).toString(36));return a};
var qh=function(a){return a instanceof N?a.clone():new N(a,void 0)};
var rh=function(a,b,c,d){var e=new N(null,void 0);a&&ah(e,a);b&&bh(e,b);c&&ch(e,c);d&&dh(e,d);return e};
var fh=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
var jh=function(a,b,c){return y(a)?(a=(0,window.encodeURI)(a).replace(b,sh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
var sh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
var gh=function(a,b,c){this.xa=this.o=null;this.A=a||null;this.B=!!c};
var th=function(a){a.o||(a.o=new wg,a.xa=0,a.A&&Ng(a.A,function(b,c){uh(a,xa(b),c)}))};
var uh=function(a,b,c){th(a);a.A=null;b=vh(a,b);var d=a.o.get(b);d||a.o.set(b,d=[]);d.push(c);a.xa++};
var wh=function(a,b){th(a);b=vh(a,b);return xg(a.o,b)};
var oh=function(a,b,c){a.remove(b);0<c.length&&(a.A=null,a.o.set(vh(a,b),sb(c)),a.xa+=c.length)};
var vh=function(a,b){var c=String(b);a.B&&(c=c.toLowerCase());return c};
var ih=function(a,b){b&&!a.B&&(th(a),a.A=null,a.o.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),oh(this,e,a))},a));
a.B=b};
var xh=function(a){var b=yh();a.innerHTML=b};
var zh=function(){return Ah?'<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-5" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-5" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-5" /></svg>'};
var Bh=function(){return Ah?'<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>'};
var Ch=function(){return Ah?'<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-6" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-6" /><use fill="#eaeaea" xlink:href="#ytp-svg-6" /></svg>'};
var Dh=function(){return Ah?'<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-7" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-7" /><use fill="#eaeaea" xlink:href="#ytp-svg-7" /></svg>'};
var yh=function(){return Ah?'<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>'};
var Eh=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>'};
var Fh=function(a,b){if(a in b)return b[a];var c=Gh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
var Hh=function(a,b){var c;Ih(a,function(a){c=Fh(a,b);return!!c});
return c};
var Jh=function(a){var b=window.document;if("on"+a in b)return a;a=Gh+a;return"on"+a in b?a:null};
var Kh=function(){return!!Hh(["fullscreenEnabled","fullScreenEnabled"],window.document)};
var Lh=function(){return Hh(["fullscreenElement","fullScreenElement"],window.document)};
var Mh=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ec(Nh);this.assets=a.assets||{};this.attrs=a.attrs||ec(Oh);this.params=a.params||ec(Ph);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
var Qh=function(a){window.chrome?Rh(0,a):a(null)};
var Rh=function(a,b){a==Sh.length?b(null):Th(Sh[a],function(c){c?b(Sh[a]):Rh(a+1,b)})};
var Th=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","chrome-extension://"+a+Uh,!0),c.send()}catch(d){b(!1)}};
var Vh=function(a){var b=window.document.createElement("script");b.src=a;(window.document.head||window.document.documentElement).appendChild(b)};
var Wh=function(){var a=window.navigator.userAgent;return 0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")};
var Xh=function(){if(window.navigator.presentation&&Wh())Vh("//www.gstatic.com/eureka/clank"+Uh);else{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}}Qh(function(a){a?(window.chrome=window.chrome||{},window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=a,Vh("chrome-extension://"+a+Uh)):(a=window.__onGCastApiAvailable)&&"function"==typeof a&&a(!1,
"No cast extension found")})}};
var Yh=function(a){Zh();$h.push(a);ai($h)};
var bi=function(a){var b=t("yt.mdx.remote.debug.handlers_");ob(b||[],a)};
var ci=function(a,b){Zh();var c=$h,d=di(a,String(b));kb(c)?ei(d):(ai(c),F(c,function(a){a(d)}))};
var Zh=function(){$h||($h=t("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",$h,void 0))};
var ei=function(a){var b=(fi+1)%50;fi=b;gi[b]=a;hi||(hi=49==b)};
var ai=function(a){var b=gi;if(b[0]){var c=fi,d=hi?c:-1;do{var d=(d+1)%50,e=b[d];F(a,function(a){a(e)})}while(d!=c);
gi=Array(50);fi=-1;hi=!1}};
var di=function(a,b){var c=(I()-ii)/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("")};
var ji=function(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.o=a.uuid||a.dialId||""};
var ki=function(a,b){return!!b&&(a.id==b||a.o==b)};
var li=function(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.o==b.o:!0};
var mi=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.o}};
var ni=function(a){return new ji(a)};
var oi=function(a){return da(a)?O(a,ni):[]};
var pi=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.o?".."+a.o.slice(-6):"-")+"}":"null"};
var qi=function(a){return da(a)?"["+O(a,pi).join(",")+"]":"null"};
var ri=function(a,b,c){a&&(a.dataset?a.dataset[si(b)]=c:a.setAttribute("data-"+b,c))};
var si=function(a){return ti[a]||(ti[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
var ui=function(a){G.call(this);this.D=1;this.B=[];this.C=0;this.o=[];this.A={};this.F=Boolean(a)};
var vi=function(a,b,c){od(function(){a.apply(b,c)})};
var wi=function(a){xi(yi,arguments)};
var zi=function(a,b){return a in yi?yi[a]:b};
var Ai=function(a,b){ha(a)&&(a=Bi(a));return window.setTimeout(a,b)};
var Ci=function(a,b){ha(a)&&(a=Bi(a));return window.setInterval(a,b)};
var Di=function(a){window.clearTimeout(a)};
var Ei=function(a){window.clearInterval(a)};
var Bi=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Fi(b),b;}}:a};
var Fi=function(a,b){var c=t("yt.logging.errors.log");c?c(a,b):(c=zi("ERRORS")||[],c.push([a,b]),wi("ERRORS",c))};
var Gi=function(a){xi(Hi,arguments)};
var P=function(a,b,c){var d=b||{};if(a=a in Hi?Hi[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a};
var xi=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]}};
var Ii=function(a,b,c){var d=Ji();if(d){var e=d.subscribe(a,function(){if(!Ki||Ki!=e){var d=arguments,k=function(){Li[e]&&b.apply(c||window,d)};
try{Mi[a]?k():Ai(k,0)}catch(l){Fi(l)}}},c);
Li[e]=!0;Ni[a]||(Ni[a]=[]);Ni[a].push(e);return e}return 0};
var Oi=function(a){var b=Ji();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete Li[a]}))};
var Pi=function(a,b){var c=Ji();c&&c.publish.apply(c,arguments)};
var Qi=function(a,b){Mi[a]=!0;var c=Ji();c&&c.publish.apply(c,arguments);Mi[a]=!1};
var Ji=function(){return t("yt.pubsub.instance_")};
var Ri=function(){};
var Si=function(){};
var Ti=function(a){this.o=a};
var Ui=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.o=a};
var Vi=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.o=a};
var Wi=function(a){this.o=a};
var Xi=function(a){this.o=a};
var Yi=function(a){this.data=a};
var Zi=function(a){return!n(a)||a instanceof Yi?a:new Yi(a)};
var $i=function(a){this.o=a};
var aj=function(a){var b=a.creation;a=a.expiration;return!!a&&a<I()||!!b&&b>I()};
var bj=function(a){this.o=a};
var cj=function(a,b){var c=[];ug(b,function(a){var b;try{b=bj.prototype.A.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}n(b)?aj(b)&&c.push(a):c.push(a)},a);
return c};
var dj=function(a,b){var c=cj(a,b);F(c,function(a){bj.prototype.remove.call(this,a)},a)};
var ej=function(){var a=fj;dj(a,a.o.Tb(!0))};
var gj=function(a,b,c){var d=c&&0<c?c:0;c=d?I()+1E3*d:0;if((d=d?fj:hj)&&window.JSON){y(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
var ij=function(a){if(!hj&&!fj||!window.JSON)return null;var b;try{b=hj.get(a)}catch(c){}if(!y(b))try{b=fj.get(a)}catch(c){}if(!y(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
var jj=function(a){hj&&hj.remove(a);fj&&fj.remove(a)};
var kj=function(a){var b=a.type;if(!n(b))return null;switch(b.toLowerCase()){case "checkbox":case "radio":return a.checked?a.value:null;case "select-one":return b=a.selectedIndex,0<=b?a.options[b].value:null;case "select-multiple":for(var b=[],c,d=0;c=a.options[d];d++)c.selected&&b.push(c.value);return b.length?b:null;default:return n(a.value)?a.value:null}};
var lj=function(a,b){Ce(a);Ce(a);return Te(b,null)};
var mj=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 l=xa(k[0]||""),k=xa(k[1]||"");l in d?da(d[l])?tb(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d};
var nj=function(a,b){var c=[];Ob(a,function(a,b){var f=va(b),k;da(a)?k=a:k=[a];F(k,function(a){""==a?c.push(f):c.push(f+"="+va(a))})});
return c.join(b)};
var oj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return mj(a,"&")};
var pj=function(a){a=a.split(",");return a=a.map(function(a){return oj(a)})};
var qj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),oj(1<a.length?a[1]:a[0])):{}};
var rj=function(a,b){return sj(a,b||{},!0)};
var sj=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=oj(e[1]||""),f;for(f in b)if(c||!Yb(e,f))e[f]=b[f];return Ug(a,e)+d};
var tj=function(a){var b;b||(b=window.location.href);var c=Ig(a)[1]||null,d=Lg(a);c&&d?(a=Ig(a),b=Ig(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Lg(b)==d&&Mg(b)==Mg(a):!0;return a};
var uj=function(){var a;a||(a=window.document.location.href);a=Ig(a)[1]||null;return null!==a&&"https"==a};
var vj=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}};
var wj=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Bi(b)(m)}
var m=xj&&xj();if(!("open"in m))return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;c=(c||"GET").toUpperCase();d=d||"";m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);f="POST"==c;if(e=yj(a,e))for(var p in e)m.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(f=!1);f&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.send(d);return m};
var yj=function(a,b){b=b||{};for(var c in zj){var d=zi(zj[c]),e;if((e=d)&&!(e=tj(a))){e=c;var f=zi("CORS_HEADER_WHITELIST")||{},k=Lg(a);e=k?(f=f[k])?E(f,e):!1:!0}e&&(b[c]=d)}return b};
var Aj=function(a,b){b.method="POST";b.Bb||(b.Bb={});Bj(a,b)};
var Cj=function(a,b){var c=zi("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.oJ&&(!Lg(a)||b.withCredentials||Lg(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Bb&&b.Bb[c])};
var Bj=function(a,b){var c=b.format||"JSON";b.sJ&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=zi("XSRF_FIELD_NAME"),e=zi("XSRF_TOKEN"),f=b.xd;f&&(f[d]&&delete f[d],a=rj(a,f));var k=b.postBody||"",f=b.Bb;Cj(a,b)&&(f||(f={}),f[d]=e);f&&y(k)&&(d=oj(k),gc(d,f),k=Sg(d));var l=!1,m,p=wj(a,function(a){if(!l){l=!0;m&&Di(m);var d=vj(a),e=null;if(d||400<=a.status&&500>a.status)e=Dj(c,a,b.Av);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||r;d?b.kb&&b.kb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.Vb&&b.Vb.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.Td&&0<b.timeout&&(m=Ai(function(){l||(l=!0,p.abort(),Di(m),b.Td.call(b.context||r,p))},b.timeout));
return p};
var Dj=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=ce(a));break;case "XML":if(b=(b=b.responseXML)?Ej(b):null)d={},F(b.getElementsByTagName("*"),function(a){d[a.tagName]=Fj(a)})}c&&Gj(d);
return d};
var Gj=function(a){if(ia(a))for(var b in a)"html_content"==b||ua(b,"_html")?a[b]=lj(De("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Gj(a[b])};
var Ej=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
var Fj=function(a){var b="";F(a.childNodes,function(a){b+=a.nodeValue});
return b};
var Hj=function(a){this.C=this.B="";this.o="/api/lounge";this.A=!0;a=a||window.document.location.href;var b=Mg(a)||"";b&&(this.C=":"+b);this.B=Lg(a)||"";a=oc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Sa(a,"10.0")&&(this.A=!1))};
var Ij=function(a,b,c,d){var e=a.o;if(n(d)?d:a.A)e="https://"+a.B+a.C+a.o;return Ug(e+b,c||{})};
var Jj=function(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,kb:pa(a.F,d,!0),onError:pa(a.D,e),Td:pa(a.G,e)};c&&(a.Bb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Bj(b,a)};
var Kj=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")};
var Lj=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)})};
var Mj=function(a){return O(a,function(a){return{key:a.id,name:a.name}})};
var Nj=function(a){return O(a,function(a){return new Kj(a)})};
var Oj=function(a,b){return eb(a,function(a){return a.id==b})};
var Pj=function(a,b){return eb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
var Qj=function(a,b){return eb(a,function(a){return ki(a,b)})};
var Rj=function(){G.call(this);this.S=new ui;H(this,this.S)};
var Sj=function(a){Rj.call(this);this.F=a;this.screens=[]};
var Tj=function(a,b){var c=a.get(b.o)||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.o=b.o||c.o;return c.name!=d}a.screens.push(b);return!0};
var Uj=function(a,b){var c=a.screens.length!=b.length;a.screens=$d(a.screens,function(a){return!!Pj(b,a)});
for(var d=0,e=b.length;d<e;d++)c=Tj(a,b[d])||c;return c};
var Vj=function(a,b){var c=a.screens.length;a.screens=$d(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.screens.length<c};
var Wj=function(a,b,c,d){Rj.call(this);this.F=a;this.D=b;this.B=c;this.C=d;this.A=0;this.o=null;this.ya=window.NaN};
var Xj=function(a,b){this.A=a;this.o=b+"::"};
var Yj=function(a){var b=new Ui;return b.isAvailable()?a?new Xj(b,a):b:null};
var Zj=function(a){this.o=new wg;if(a){a=Cg(a);for(var b=a.length,c=0;c<b;c++)ak(this,a[c])}};
var bk=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ka(a):b.substr(0,1)+a};
var ak=function(a,b){a.o.set(bk(b),b)};
var ck=function(a,b){var c=Bg(b);if(a.Za()>c)return!1;!(b instanceof Zj)&&5<c&&(b=new Zj(b));return Fg(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.xe&&"function"==typeof c.xe?c.xe(a):ea(c)||y(c)?E(c,a):Ub(c,a)})};
var dk=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new Zj;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 Zj($d((a.capabilities||"").split(","),pa(Tb,ek))))};
var fk=function(a){this.o=a};
var gk=function(a){a=(a.o.cookie||"").split(hk);for(var b=[],c=[],d,e,f=0;e=a[f];f++)d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
var ik=function(a,b,c){jk.set(""+a,b,c,"/","youtube.com")};
var kk=function(){var a=lk(),b=mk();E(a,b);nk()&&Gb(a,b);a=ok(a);if(kb(a))try{a="remote_sid",jk.remove(""+a,"/","youtube.com")}catch(c){}else try{ik("remote_sid",a.join(","),-1)}catch(c){}};
var lk=function(){var a=ij("yt-remote-connected-devices")||[];Bb(a);return a};
var ok=function(a){if(kb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return O(a,function(a,b){return 0==b?a:a.substring(c.length)})};
var pk=function(a){gj("yt-remote-connected-devices",a,86400)};
var mk=function(){if(qk)return qk;var a=ij("yt-remote-device-id");a||(a=Lj(),gj("yt-remote-device-id",a,31536E3));for(var b=lk(),c=1,d=a;E(b,d);)c++,d=a+"#"+c;return qk=d};
var rk=function(){return ij("yt-remote-session-browser-channel")};
var nk=function(){return ij("yt-remote-session-screen-id")};
var sk=function(a){5<a.length&&(a=a.slice(a.length-5));var b=O(tk(),function(a){return a.loungeToken}),c=O(a,function(a){return a.loungeToken});
Gg(c,function(a){return!E(b,a)})&&uk();
gj("yt-remote-local-screens",a,31536E3)};
var tk=function(){return ij("yt-remote-local-screens")||[]};
var uk=function(){gj("yt-remote-lounge-token-expiration",!0,86400)};
var vk=function(a){gj("yt-remote-online-screens",a,60)};
var wk=function(){return ij("yt-remote-online-dial-devices")||[]};
var xk=function(a,b){gj("yt-remote-session-browser-channel",a);gj("yt-remote-session-screen-id",b);var c=lk(),d=mk();E(c,d)||c.push(d);pk(c);kk()};
var yk=function(a){a||(jj("yt-remote-session-screen-id"),jj("yt-remote-session-video-id"));kk();a=lk();ob(a,mk());pk(a)};
var zk=function(){if(!Ak){var a=Yj();a&&(Ak=new Wi(a))}return Ak?!!Ak.get("yt-remote-use-staging-server"):!1};
var Bk=function(a){Sj.call(this,"LocalScreenService");this.A=a;this.o=window.NaN;Ck(this);this.info("Initializing with "+qi(this.screens))};
var Dk=function(a){if(a.screens.length){var b=O(a.screens,function(a){return a.id}),c=Ij(a.A,"/pairing/get_lounge_token_batch");
Jj(a.A,c,{screen_ids:b.join(",")},A(a.ow,a),A(a.mw,a))}};
var Ck=function(a){var b=oi(tk()),b=$d(b,function(a){return!a.o});
return Uj(a,b)};
var Ek=function(a,b){sk(O(a.screens,mi));b&&uk()};
var Fk=function(a,b){Rj.call(this);this.D=b;for(var c=ij("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.D(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=E(c,l)}this.o=d;this.F=a;this.B=this.C=window.NaN;this.A=null;Gk("Initialized with "+de(this.o))};
var Hk=function(a,b,c){var d=Ij(a.F,"/pairing/get_screen_availability");Jj(a.F,d,{lounge_token:b.token},A(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),A(function(){c(!1)},a))};
var Ik=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||(Gk("Updated online screens: "+de(a.o)),a.o=b,a.P("screenChange"));Jk(a)};
var Kk=function(a){(0,window.isNaN)(a.B)||Di(a.B);a.B=Ai(A(a.Kl,a),0<a.C&&a.C<I()?2E4:1E4)};
var Gk=function(a){ci("OnlineScreenService",a)};
var Lk=function(a){var b={};F(a.D(),function(a){a.token?b[a.token]=a.id:this.Ya("Requesting availability of screen w/o lounge token.")});
return b};
var Jk=function(a){var b=Wb(Pb(a.o,function(a){return a}));
Bb(b);b.length?gj("yt-remote-online-screen-ids",b.join(","),60):jj("yt-remote-online-screen-ids");a=$d(a.D(),function(a){return!!this.o[a.id]},a);
vk(O(a,mi))};
var Mk=function(a){Sj.call(this,"ScreenService");this.D=a;this.o=this.A=null;this.B=[];this.C={};Nk(this)};
var Ok=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.C[b]);var k=a.Zb();if(k=(c?Qj(k,c):null)||Qj(k,b)){k.o=b;var l=Pk(a,k);Hk(a.o,l,function(a){e(a?l:null)})}else c?Qk(a,c,A(function(a){var f=Pk(this,new ji({name:d,
screenId:c,loungeToken:a,dialId:b||""}));Hk(this.o,f,function(a){e(a?f:null)})},a),f):e(null)};
var Rk=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};
var Qk=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Bb:{screen_ids:b},method:"POST",context:a,kb:function(a,e){var l=e&&e.screens||[];l[0]&&l[0].screenId==b?c(l[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
Bj(Ij(a.D,"/pairing/get_lounge_token_batch"),e)};
var Sk=function(a){a.screens=a.A.Zb();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.o=c[e.id]||""}a.info("Updated manual screens: "+qi(a.screens))};
var Nk=function(a){Tk(a);a.A=new Bk(a.D);a.A.subscribe("screenChange",A(a.Aw,a));Sk(a);a.B=oi(ij("yt-remote-automatic-screen-cache")||[]);Tk(a);a.info("Initializing automatic screens: "+qi(a.B));a.o=new Fk(a.D,A(a.Zb,a,!0));a.o.subscribe("screenChange",A(function(){this.P("onlineScreenChange")},a))};
var Pk=function(a,b){var c=a.get(b.id);c?(c.o=b.o,b=c):((c=Qj(a.B,b.o))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),gj("yt-remote-automatic-screen-cache",O(a.B,mi)));Tk(a);a.C[b.o]=b.id;gj("yt-remote-device-id-map",a.C,31536E3);return b};
var Tk=function(a){a.C=ij("yt-remote-device-id-map")||{}};
var Uk=function(a,b,c){Rj.call(this);this.M=c;this.J=a;this.A=b;this.B=null};
var Vk=function(a,b){ci(a.M,b)};
var Wk=function(a,b){Uk.call(this,a,b,"CastSession");this.o=null;this.D=0;this.C=null;this.G=A(this.PC,this);this.F=A(this.CB,this);this.D=Ai(A(function(){Xk(this,null)},this),12E4)};
var Yk=function(a){var b=a.C.videoId||a.C.videoIds[a.C.index];b&&Zk(a,"flingVideo",{videoId:b,currentTime:a.C.currentTime||0});a.C=null};
var Zk=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+de(c));var d={};d.type=b;c&&(d.data=c);a.o?a.o.sendMessage("urn:x-cast:com.google.youtube.mdx",d,w,A(function(){Vk(this,"Failed to send message: "+b+".")},a)):Vk(a,"Sending yt message without session: "+de(d))};
var Xk=function(a,b){Di(a.D);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.B||a.B.id!=b){var c=A(a.Ni,a),d=A(a.Wb,a);a.co(b,c,d,5)}}else a.Wb(Error("Waiting for session status timed out."))};
var $k=function(a,b){Uk.call(this,a,b,"DialSession");this.D=this.H=null;this.K="";this.C=null;this.G=w;this.F=window.NaN;this.L=A(this.SC,this);this.o=w};
var al=function(a){a.o=a.J.nr(a.K,a.A.label,a.A.friendlyName,A(function(a){this.o=w;this.Ni(a)},a),A(function(a){this.o=w;
this.Wb(a)},a))};
var bl=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}zk()&&(b.env_useStageMdx=1);return Sg(b)};
var cl=function(a,b){Uk.call(this,a,b,"ManualSession");this.o=Ai(A(this.Cf,this,null),150)};
var dl=function(a){Rj.call(this);this.A=a;this.o=null;this.D=!1;this.B=[];this.C=A(this.wA,this)};
var el=function(a,b){return b?eb(a.B,function(a){return ki(b,a.label)},a):null};
var fl=function(a){ci("Controller",a)};
var gl=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
var hl=function(a){return a.D||!!a.B.length||!!a.o};
var il=function(a,b,c){Mb(a.o);(a.o=b)?(c?a.P("yt-remote-cast2-receiver-resumed",b.A):a.P("yt-remote-cast2-receiver-selected",b.A),b.subscribe("sessionScreen",A(a.Yp,a,b)),b.B?a.P("yt-remote-cast2-session-change",b.B):c&&a.o.Cf(null)):a.P("yt-remote-cast2-session-change",null)};
var jl=function(a){var b=a.A.mr(),c=a.o&&a.o.A;a=O(b,function(a){c&&ki(a,c.label)&&(c=null);var b=a.o?a.o:a.id,f=el(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};
var kl=function(a,b,c){ll()?nl(b)&&(ol(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?pl(a,c):(window.__onGCastApiAvailable=function(b,e){b?pl(a,c):(ql("Failed to load cast API: "+e),rl(!1),ol(!1),jj("yt-remote-cast-available"),jj("yt-remote-cast-receiver"),sl(),c(!1))},Xh())):ml("Cannot initialize because not running Chrome")};
var sl=function(){ml("dispose");var a=tl();a&&a.dispose();ul=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);vl(!1);Oi(wl);wl.length=0};
var xl=function(){return!!ij("yt-remote-cast-installed")};
var yl=function(){var a=ij("yt-remote-cast-receiver");return a?Ga(a.friendlyName):null};
var zl=function(){return xl()?tl()?ul.getCastSession():(ql("getCastSelector: Cast is not initialized."),null):(ql("getCastSelector: Cast API is not installed!"),null)};
var Al=function(){xl()?tl()?Bl()?(ml("Requesting cast selector."),ul.requestSession()):(ml("Wait for cast API to be ready to request the session."),wl.push(Ii("yt-remote-cast2-api-ready",Al))):ql("requestCastSelector: Cast is not initialized."):ql("requestCastSelector: Cast API is not installed!")};
var Cl=function(a){Bl()?tl().setLaunchParams(a):ql("setLaunchParams called before ready.")};
var Dl=function(){var a=El();Bl()?tl().setConnectedScreenStatus(a,"YouTube TV"):ql("setConnectedScreenStatus called before ready.")};
var ll=function(){var a;a=0<=oc.search(/\ (CrMo|Chrome|CriOS)\//);return Fl||a};
var Gl=function(a,b){ul.init(a,b)};
var nl=function(a){var b=!1;if(!ul){var c=t("yt.mdx.remote.cloudview.instance_");c||(c=new dl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){gj("yt-remote-cast-available",a);Pi("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){ml("onReceiverSelected: "+a.friendlyName);
gj("yt-remote-cast-receiver",a);Pi("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){ml("onReceiverResumed: "+a.friendlyName);
gj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){ml("onSessionChange: "+pi(a));
a||jj("yt-remote-cast-receiver");Pi("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
ul=c}ml("cloudview.createSingleton_: "+b);return b};
var tl=function(){ul||(ul=t("yt.mdx.remote.cloudview.instance_"));return ul};
var pl=function(a,b){rl(!0);ol(!1);Gl(a,function(a){a?(vl(!0),Pi("yt-remote-cast2-api-ready")):(ql("Failed to initialize cast API."),rl(!1),jj("yt-remote-cast-available"),jj("yt-remote-cast-receiver"),sl());b(a)})};
var ml=function(a){ci("cloudview",a)};
var ql=function(a){ci("cloudview",a)};
var rl=function(a){ml("setCastInstalled_ "+a);gj("yt-remote-cast-installed",a)};
var Bl=function(){return!!t("yt.mdx.remote.cloudview.apiReady_")};
var vl=function(a){ml("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)};
var ol=function(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)};
var Hl=function(a,b){this.action=a;this.params=b||null};
var 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 Jl||(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}};
var Kl=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}};
var Ll=function(a,b,c,d){return Zb(Ml,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
var 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=++Pl.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new Il(d);if(!Gf(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=Bi(k);Ml[e]=[a,b,c,k,d];a.addEventListener?"mouseenter"==b&&f?a.addEventListener("mouseover",k,d):"mouseleave"==b&&f?a.addEventListener("mouseout",k,d):"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style?a.addEventListener("MozMousePixelScroll",k,d):a.addEventListener(b,k,d):a.attachEvent("on"+b,k);return e};
var Ql=function(a,b,c){var d;return d=Nl(a,b,function(){Rl(d);c.apply(a,arguments)},void 0)};
var Sl=function(a,b){return Tl(a,b,function(a){return Xd(a,"iv-card-poll-choice-input")})};
var Tl=function(a,b,c){var d=a||window.document;return Nl(d,"change",function(a){var f=Gf(a.target,function(a){return a===d||c(a)});
f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})};
var Rl=function(a){a&&("string"==typeof a&&(a=[a]),F(a,function(a){if(a in Ml){var c=Ml[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 Ml[a]}}))};
var Ul=function(a){for(var b in Ml)Ml[b][0]==a&&Rl(b)};
var Vl=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
var Wl=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:Vl(a)};
var Xl=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};
var Yl=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 oe(b,c)};
var Zl=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
var $l=function(a){a=a||window.event;return!1===a.returnValue||a.So&&a.So()};
var am=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
var bm=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};
var cm=function(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a};
var dm=function(a){ci("CAST",a)};
var em=function(a){var b=fm();b&&b.logMessage&&b.logMessage(a)};
var gm=function(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;hm.length;)hm.shift()()};
var im=function(){if(!t("yt.mdx.remote.castv2_")&&!jm&&(kb(km)&&tb(km,wk()),cm())){var a=fm();a?(a.removeReceiverListener("YouTube",lm),a.addReceiverListener("YouTube",lm),dm("API initialized in the other binary")):(a=new window.cast.Api,mm(a),a.addReceiverListener("YouTube",lm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){Ai(function(){window.location.reload(!0)},1E3)}),Yh(em),dm("API initialized"));
jm=!0}};
var nm=function(){var a=fm();a&&(dm("API disposed"),bi(em),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(w),a.removeReceiverListener("YouTube",lm),mm(null));jm=!1;hm=null;(a=Ll(window,"message",gm,!1))&&Rl(a)};
var om=function(a){var b=fb(km,function(b){return b.id==a.id});
0<=b&&(km[b]={id:a.id,name:a.name,activityId:a.o,status:a.status})};
var lm=function(a){a.length&&dm("Updating receivers: "+de(a));pm(a);Pi("yt-remote-cast-device-list-update");F(qm(),function(a){rm(a.id)});
F(a,function(a){if(a.isTabProjected){var c=sm(a.id);dm("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");Ai(function(){Pi("yt-remote-cast-device-tab-projected",c.id)},1E3)}})};
var tm=function(a,b){dm("Updating "+a+" activity status: "+de(b));var c=sm(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=""),om(c),Pi("yt-remote-cast-device-status-update",c)):dm("Device not found")};
var qm=function(){im();return Nj(km)};
var pm=function(a){a=O(a,function(a){var c={id:a.id,name:Ga(a.name)};if(a=sm(a.id))c.activityId=a.o,c.status=a.status;return c});
lb(km);tb(km,a)};
var sm=function(a){var b=qm();return eb(b,function(b){return b.id==a})||null};
var rm=function(a){var b=sm(a),c=fm();c&&b&&b.o&&c.getActivityStatus(b.o,function(b){"error"==b.status&&(b.status="stopped");tm(a,b)})};
var um=function(a){im();var b=sm(a),c=fm();c&&b&&b.o?(dm("Stopping cast activity"),c.stopActivity(b.o,pa(tm,a))):dm("Dropping cast activity stop")};
var fm=function(){return t("yt.mdx.remote.castapi.api_")};
var mm=function(a){q("yt.mdx.remote.castapi.api_",a,void 0)};
var vm=function(){};
var wm=function(){this.o=I()};
var xm=function(a,b){this.A=new ee(a);this.o=b?ce:be};
var ym=function(a){this.A=0;this.B=a||100;this.o=[]};
var zm=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};
var Am=function(a,b,c){G.call(this);this.C=null!=c?A(a,c):a;this.B=b;this.A=A(this.WA,this);this.o=[]};
var Bm=function(a){a.ya=Sd(a.A,a.B);a.C.apply(null,a.o)};
var Cm=function(a){G.call(this);this.C=a;this.A={}};
var Dm=function(a,b,c,d,e){Em(a,b,c,d,!1,e)};
var Em=function(a,b,c,d,e,f){da(c)||(c&&(Fm[0]=c.toString()),c=Fm);for(var k=0;k<c.length;k++){var l=Nc(b,c[k],d||a.handleEvent,e||!1,f||a.C||a);if(!l)break;a.A[l.key]=l}return a};
var Gm=function(a,b,c,d){Hm(a,b,c,d,void 0)};
var Im=function(a,b,c,d,e){Hm(a,b,c,d,!1,e)};
var Hm=function(a,b,c,d,e,f){if(da(c))for(var k=0;k<c.length;k++)Hm(a,b,c[k],d,e,f);else(b=Xc(b,c,d||a.handleEvent,e,f||a.C||a))&&(a.A[b.key]=b)};
var Jm=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"}};
var Km=function(){};
var Lm=function(a){var b;(b=a.o)||(b={},Mm(a)&&(b[0]=!0,b[1]=!0),b=a.o=b);return b};
var Nm=function(){};
var Om=function(a){return(a=Mm(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};
var Mm=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};
var Pm=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 Cm(this);this.A=new Qd;Rd(this.A,250)};
var Qm=function(a,b,c){a.mf=1;a.Kd=ph(b.clone());a.Me=c;a.F=!0;Rm(a,null)};
var Sm=function(a,b,c,d,e){a.mf=1;a.Kd=ph(b.clone());a.Me=null;a.F=c;e&&(a.Bq=!1);Rm(a,d)};
var Rm=function(a,b){a.Wg=I();Tm(a);a.Xd=a.Kd.clone();nh(a.Xd,"t",a.G);a.hh=0;a.ub=a.o.kk(a.o.ah()?b:null);0<a.Ik&&(a.Ri=new Am(A(a.ar,a,a.ub),a.Ik));a.C.R(a.ub,"readystatechange",a.QB);var c=a.Ee?ec(a.Ee):{};a.Me?(a.lj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.ub.send(a.Xd,a.lj,a.Me,c)):(a.lj="GET",a.Bq&&!wc&&(c.Connection="close"),a.ub.send(a.Xd,a.lj,null,c));a.o.Gc(1)};
var Um=function(a,b,c){for(var d=!0;!a.te&&a.hh<c.length;){var e=Vm(a,c);if(e==Wm){4==b&&(a.Fe=4,Xm(),d=!1);break}else if(e==Ym){a.Fe=4;Xm();d=!1;break}else Zm(a,e)}4==b&&0==c.length&&(a.Fe=1,Xm(),d=!1);a.Jc=a.Jc&&d;d||($m(a),an(a))};
var Vm=function(a,b){var c=a.hh,d=b.indexOf("\n",c);if(-1==d)return Wm;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Ym;d+=1;if(d+c>b.length)return Wm;var e=b.substr(d,c);a.hh=d+c;return e};
var bn=function(a,b){a.Wg=I();Tm(a);var c=b?window.location.hostname:"";a.Xd=a.Kd.clone();mh(a.Xd,"DOMAIN",c);mh(a.Xd,"t",a.G);try{a.Lc=new window.ActiveXObject("htmlfile")}catch(p){$m(a);a.Fe=7;Xm();an(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=e+"\\x3c";else if(">"==k)e=e+"\\x3e";else{if(k in cn)k=cn[k];else if(k in dn)k=cn[k]=dn[k];else{var l=k,m=k.charCodeAt(0);if(31<m&&127>m)l=k;else{if(256>m){if(l="\\x",16>m||256<m)l+="0"}else l="\\u",
4096>m&&(l+="0");l+=m.toString(16).toUpperCase()}k=cn[k]=l}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=lj(De("b/12014412"),d);a.Lc.open();a.Lc.write(Re(c));a.Lc.close();a.Lc.parentWindow.m=A(a.eB,a);a.Lc.parentWindow.d=A(a.fq,a,!0);a.Lc.parentWindow.rpcClose=A(a.fq,a,!1);c=a.Lc.createElement("DIV");a.Lc.parentWindow.document.body.appendChild(c);d=Ke(a.Xd.toString());d=ya(Je(d));d=lj(De("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Re(d);a.o.Gc(1)};
var Tm=function(a){a.qm=I()+a.D;en(a,a.D)};
var en=function(a,b){if(null!=a.Vf)throw Error("WatchDog timer not null");a.Vf=fn(A(a.vB,a),b)};
var gn=function(a){a.Vf&&(r.clearTimeout(a.Vf),a.Vf=null)};
var an=function(a){a.o.jo()||a.te||a.o.Mi(a)};
var $m=function(a){gn(a);Mb(a.Ri);a.Ri=null;a.A.stop();a.C.removeAll();if(a.ub){var b=a.ub;a.ub=null;hn(b);b.dispose()}a.Lc&&(a.Lc=null)};
var Zm=function(a,b){try{a.o.Up(a,b),a.o.Gc(4)}catch(c){}};
var jn=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;kn(a,b,function(e){e?c(!0):r.setTimeout(function(){jn(a,b,c,d,f)},f)})}};
var kn=function(a,b,c){var d=new window.Image;d.onload=function(){try{ln(d),c(!0)}catch(a){}};
d.onerror=function(){try{ln(d),c(!1)}catch(a){}};
d.onabort=function(){try{ln(d),c(!1)}catch(a){}};
d.ontimeout=function(){try{ln(d),c(!1)}catch(a){}};
r.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
var ln=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
var mn=function(a){this.o=a;this.A=new xm(null,!0)};
var nn=function(a){var b=on(a.o,a.pg,"/mail/images/cleardot.gif");ph(b);jn(b.toString(),5E3,A(a.ov,a),3,2E3);a.Gc(1)};
var pn=function(a){var b=a.o.J;if(null!=b)Xm(),b?(Xm(),qn(a.o,a,!1)):(Xm(),qn(a.o,a,!0));else if(a.Xb=new Pm(a,0,void 0,void 0,void 0),a.Xb.Ee=a.Fk,b=a.o,b=on(b,b.ah()?a.Fg:null,a.Hk),Xm(),!vc||10<=Yf)nh(b,"TYPE","xmlhttp"),Sm(a.Xb,b,!1,a.Fg,!1);else{nh(b,"TYPE","html");var c=a.Xb;a=Boolean(a.Fg);c.mf=3;c.Kd=ph(b.clone());bn(c,a)}};
var rn=function(a){dd.call(this);this.headers=new wg;this.M=a||null;this.B=!1;this.L=this.o=null;this.U=this.H="";this.A=0;this.F="";this.C=this.O=this.G=this.S=!1;this.D=0;this.J=null;this.Y="";this.K=this.V=!1};
var sn=function(a,b){a.D=Math.max(0,b)};
var tn=function(a){return vc&&yc(9)&&fa(a.timeout)&&n(a.ontimeout)};
var un=function(a){return"content-type"==a.toLowerCase()};
var vn=function(a,b){a.B=!1;a.o&&(a.C=!0,a.o.abort(),a.C=!1);a.F=b;a.A=5;wn(a);xn(a)};
var wn=function(a){a.S||(a.S=!0,a.$("complete"),a.$("error"))};
var hn=function(a,b){a.o&&a.B&&(yn(a,"Aborting"),a.B=!1,a.C=!0,a.o.abort(),a.C=!1,a.A=b||7,a.$("complete"),a.$("abort"),xn(a))};
var zn=function(a){if(a.B&&"undefined"!=typeof An)if(a.L[1]&&4==Bn(a)&&2==a.getStatus())yn(a,"Local request error detected and ignored");else if(a.G&&4==Bn(a))Sd(a.Qp,0,a);else if(a.$("readystatechange"),4==Bn(a)){yn(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=Ig(String(a.H))[1]||null;if(!f&&r.self&&r.self.location)var k=r.self.location.protocol,
f=k.substr(0,k.length-1);e=!Cn.test(f?f.toLowerCase():"")}d=e}if(d)a.$("complete"),a.$("success");else{a.A=6;var l;try{l=2<Bn(a)?a.o.statusText:""}catch(m){l=""}a.F=l+" ["+a.getStatus()+"]";wn(a)}}finally{xn(a)}}};
var xn=function(a,b){if(a.o){Dn(a);var c=a.o,d=a.L[0]?w:null;a.o=null;a.L=null;b||a.$("ready");try{c.onreadystatechange=d}catch(e){}}};
var Dn=function(a){a.o&&a.K&&(a.o.ontimeout=null);fa(a.J)&&(Td(a.J),a.J=null)};
var Bn=function(a){return a.o?a.o.readyState:0};
var En=function(a){try{return a.o?a.o.responseText:""}catch(b){return""}};
var yn=function(a,b){return b+" ["+a.U+" "+a.H+" "+a.getStatus()+"]"};
var Fn=function(a,b,c){this.G=a||null;this.o=1;this.A=[];this.C=[];this.D=new xm(null,!0);this.H=b||null;this.J=null!=c?c:null};
var Gn=function(a,b){this.o=a;this.map=b;this.context=null};
var Hn=function(a){jc.call(this,"statevent",a)};
var In=function(a,b){jc.call(this,"timingevent",a);this.size=b};
var Jn=function(a){jc.call(this,"serverreachability",a)};
var Kn=function(a){Ln(a);if(3==a.o){var b=a.Og++,c=a.ci.clone();mh(c,"SID",a.B);mh(c,"RID",b);mh(c,"TYPE","terminate");Mn(a,c);b=new Pm(a,0,a.B,b,void 0);b.mf=2;b.Kd=ph(c.clone());(new window.Image).src=b.Kd;b.Wg=I();Tm(b)}Nn(a)};
var Ln=function(a){if(a.Gd){var b=a.Gd;b.Xb&&(b.Xb.cancel(),b.Xb=null);b.kd=-1;a.Gd=null}a.ob&&(a.ob.cancel(),a.ob=null);a.ed&&(r.clearTimeout(a.ed),a.ed=null);On(a);a.Qb&&(a.Qb.cancel(),a.Qb=null);a.Hd&&(r.clearTimeout(a.Hd),a.Hd=null)};
var Pn=function(a,b){if(0==a.o)throw Error("Invalid operation: sending map when state is closed");a.A.push(new Gn(a.Vx++,b));2!=a.o&&3!=a.o||Qn(a)};
var Qn=function(a){a.Qb||a.Hd||(a.Hd=fn(A(a.aq,a),0),a.Ag=0)};
var Rn=function(a,b){if(1==a.o){if(!b){a.Og=Math.floor(1E5*Math.random());var c=a.Og++,d=new Pm(a,0,"",c,void 0);d.Ee=null;var e=Sn(a),f=a.ci.clone();mh(f,"RID",c);a.G&&mh(f,"CVER",a.G);Mn(a,f);Qm(d,f,e);a.Qb=d;a.o=2}}else 3==a.o&&(b?Tn(a,b):0!=a.A.length&&(a.Qb||Tn(a)))};
var Tn=function(a,b){var c,d;b?6<a.ve?(a.A=a.C.concat(a.A),a.C.length=0,c=a.Og-1,d=Sn(a)):(c=b.H,d=b.Me):(c=a.Og++,d=Sn(a));var e=a.ci.clone();mh(e,"SID",a.B);mh(e,"RID",c);mh(e,"AID",a.Bf);Mn(a,e);c=new Pm(a,0,a.B,c,a.Ag+1);c.Ee=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Qb=c;Qm(c,e,d)};
var Mn=function(a,b){if(a.Gb){var c=a.Gb.Yn(a);c&&Ob(c,function(a,c){mh(b,c,a)})}};
var Sn=function(a){var b=Math.min(a.A.length,1E3),c=["count="+b],d;6<a.ve&&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.ve?e:f-d;try{Eg(k,function(a,b){c.push("req"+f+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(l){c.push("req"+f+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.C=a.C.concat(a.A.splice(0,b));
return c.join("&")};
var Un=function(a){a.ob||a.ed||(a.F=1,a.ed=fn(A(a.$p,a),0),a.bf=0)};
var Vn=function(a){if(a.ob||a.ed||3<=a.bf)return!1;a.F++;a.ed=fn(A(a.$p,a),Wn(a,a.bf));a.bf++;return!0};
var qn=function(a,b,c){a.kj=c;a.Cc=b.kd;a.Mv(1,0);a.ci=on(a,null,a.Ek);Qn(a)};
var On=function(a){null!=a.ye&&(r.clearTimeout(a.ye),a.ye=null)};
var Wn=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
var Xn=function(a,b){if(2==b||9==b){var c=null;a.Gb&&(c=null);var d=A(a.pC,a);c||(c=new N("//www.google.com/images/cleardot.gif"),ph(c));kn(c.toString(),1E4,d)}else Xm();Yn(a,b)};
var Yn=function(a,b){a.o=0;a.Gb&&a.Gb.Jn(a,b);Nn(a);Ln(a)};
var Nn=function(a){a.o=0;a.Cc=-1;if(a.Gb)if(0==a.C.length&&0==a.A.length)a.Gb.dk(a);else{var b=sb(a.C),c=sb(a.A);a.C.length=0;a.A.length=0;a.Gb.dk(a,b,c)}};
var on=function(a,b,c){var d=qh(c);if(""!=d.A)b&&bh(d,b+"."+d.A),ch(d,d.D);else var e=window.location,d=rh(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.xg&&Ob(a.xg,function(a,b){mh(d,b,a)});
mh(d,"VER",a.ve);Mn(a,d);return d};
var fn=function(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");return r.setTimeout(function(){a()},b)};
var Xm=function(){Zn.$(new Hn(Zn))};
var $n=function(){};
var ao=function(a,b){Qd.call(this);this.D=0;if(ha(a))b&&(a=A(a,b));else if(a&&ha(a.handleEvent))a=A(a.handleEvent,a);else throw Error("Invalid listener argument");this.G=a;Nc(this,"tick",A(this.F,this));this.stop();Rd(this,5E3+2E4*Math.random())};
var bo=function(a,b){this.L=a;this.C=b;this.B=new ui;this.A=new ao(this.JC,this);this.o=null;this.K=!1;this.F=null;this.J="";this.H=this.D=0;this.G=[]};
var co=function(a){return{firstTestResults:[""],secondTestResults:!a.o.kj,sessionId:a.o.B,arrayId:a.o.Bf}};
var eo=function(a,b){a.H=b||0;a.A.stop();a.o&&(3==a.o.o&&Rn(a.o),Kn(a.o));a.H=0};
var fo=function(a,b){(a.C.loungeIdToken=b)||a.A.stop()};
var go=function(){this.o=[];this.A=[]};
var ho=function(a){kb(a.o)&&(a.o=a.A,a.o.reverse(),a.A=[])};
var io=function(a,b){a.A.push(b)};
var jo=function(a){ho(a);return a.o.pop()};
var ko=function(a){ho(a);return db(a.o)};
var 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)};
var mo=function(a,b){if(a.A)throw Error(b+" is not allowed in V3.");};
var no=function(a){a.volume=-1;a.muted=!1;a.audioTrackId=null;a.B=null;a.o=-1;a.C=0;a.D=I()};
var oo=function(a){a.index=-1;a.videoId="";no(a)};
var po=function(a){return a.A?a.videoId:a.videoIds[a.index]};
var qo=function(a,b){a.C=b;a.D=I()};
var ro=function(a){switch(a.o){case 1:return(I()-a.D)/1E3+a.C;case -1E3:return 0}return a.C};
var so=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&no(a)};
var to=function(a,b,c){mo(a,"setPlaylist");c=c||po(a);Eb(a.videoIds,b)&&c==po(a)||(a.videoIds=sb(b),a.setVideoId(c))};
var 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};
var vo=function(a,b){Rj.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=A(this.Hy,this);this.H=A(this.Pg,this);this.J=A(this.Gy,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Bm,this),wo(this))):c=3;0!=c&&(b?this.Bm(c):Ai(A(function(){this.Bm(c)},this),0));
xo(this,zl())};
var yo=function(a){return new lo(a.C.getPlayerContextData())};
var zo=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);n(c)&&(qo(f,c),k.currentTime=c);Ao(a,"setPlaylist",k);e||Bo(a,f)};
var wo=function(a){F(["remotePlayerChange","remoteQueueChange"],function(a){this.G.push(this.C.subscribe(a,pa(this.oA,a),this))},a)};
var Co=function(a){F(a.G,function(a){this.C.unsubscribeByKey(a)},a);
a.G.length=0};
var Do=function(a,b){50>a.F.Za()&&io(a.F,b)};
var Eo=function(a,b,c){var d=yo(a);qo(d,c);-1E3!=d.o&&(d.o=b);Bo(a,d)};
var Ao=function(a,b,c){a.C.sendMessage(b,c)};
var Bo=function(a,b){Co(a);a.C.setPlayerContextData(uo(b));wo(a)};
var Fo=function(a){Di(a.D);a.D=Ai(A(function(){this.P("remotePlayerChange");this.D=window.NaN},a),2E3)};
var xo=function(a,b){a.B&&(a.B.removeUpdateListener(a.K),a.B.removeMediaListener(a.H),a.Pg(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.Pg(a.B.media[0]))};
var 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());Bo(a,d)}else Go("No cast media video. Ignoring state update.")};
var Go=function(a){ci("CP",a)};
var Io=function(a,b,c){Rj.call(this);this.D=window.NaN;this.M=!1;this.H=this.G=this.L=this.J=window.NaN;this.O=[];this.B=this.ta=this.o=null;this.ea=a;this.O.push(Nl(window,"beforeunload",A(this.gw,this)));this.A=[];this.ta=new lo;3==c["mdx-version"]&&(this.ta.A="RQ"+b.token);this.V=b.id;this.o=Jo(this,c);this.o.subscribe("handlerOpened",this.My,this);this.o.subscribe("handlerClosed",this.Iy,this);this.o.subscribe("handlerError",this.Jy,this);this.ta.A?this.o.subscribe("handlerMessage",this.Ky,this):
this.o.subscribe("handlerMessage",this.Ly,this);fo(this.o,b.token);this.subscribe("remoteQueueChange",function(){var a=this.ta.videoId;nk()&&gj("yt-remote-session-video-id",a)},this)};
var Jo=function(a,b){return new bo(Ij(a.ea,"/bc",void 0,!1),b)};
var Ko=function(a,b){a.P("proxyStateChange",b)};
var Lo=function(a){a.D=Ai(A(function(){this.fb("Connecting timeout");this.C(1)},a),2E4)};
var Mo=function(a){Di(a.D);a.D=window.NaN};
var No=function(a){Di(a.J);a.J=window.NaN};
var Oo=function(a){Po(a);a.L=Ai(A(function(){Qo(this,"getNowPlaying")},a),2E4)};
var Po=function(a){Di(a.L);a.L=window.NaN};
var Ro=function(a){var b=a.o;return!!b.o&&3==b.o.o&&(0,window.isNaN)(a.D)};
var So=function(a,b){b&&(Mo(a),No(a));b==Ro(a)?b&&(Ko(a,1),Qo(a,"getSubtitlesTrack")):b?(a.K()&&a.ta.reset(),Ko(a,1),Qo(a,"getNowPlaying"),To(a)):a.C(1)};
var Uo=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.ta.videoId&&(ac(b.params)?a.ta.B=null:a.ta.B=b.params,a.P("remotePlayerChange"))};
var Vo=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.ta.A=b.params.listId||a.ta.A;so(a.ta,c,d);a.P("remoteQueueChange")};
var Wo=function(a,b){b.params=b.params||{};Vo(a,b);Xo(a,b)};
var Xo=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);qo(a.ta,(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.ta.o&&(c=-1E3);a.ta.o=c;1==a.ta.o?Oo(a):Po(a);a.P("remotePlayerChange")};
var Yo=function(a,b){var c="true"==b.params.muted;a.ta.volume=(0,window.parseInt)(b.params.volume,10);a.ta.muted=c;a.P("remotePlayerChange")};
var Zo=function(a,b){switch(b.action){case "loungeStatus":var c=be(b.params.devices);a.A=O(c,function(a){return new dk(a)});
break;case "loungeScreenDisconnected":qb(a.A,function(a){return"LOUNGE_SCREEN"==a.type});
break;case "remoteConnected":var d=new dk(be(b.params.device));eb(a.A,function(a){return a.equals(d)})||nb(a.A,d);
break;case "remoteDisconnected":d=new dk(be(b.params.device)),qb(a.A,function(a){return a.equals(d)})}};
var $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.ta.reset(),Ko(a,1),Qo(a,"getNowPlaying"),To(a)):a.C(1)};
var To=function(a){Di(a.H);a.H=Ai(A(a.C,a,1),864E5)};
var Qo=function(a,b,c){c?a.fb("Sending: action="+b+", params="+de(c)):a.fb("Sending: action="+b);a.o.sendMessage(b,c)};
var ap=function(a,b){var c=bp(a);return $d(b,function(a){return a.o?(a=Oj(this.B,a.o),!!a&&"RUNNING"==a.status):!!Pj(c,a)},a)};
var cp=function(a,b,c){var d=dp,e="";Di(d.A);d.A=window.NaN;d.C="";if(Oj(d.B,a)){if(!e){var f=e=Lj();im();var k=sm(a),l=fm();if(l&&k){var m=new window.cast.Receiver(k.id,k.name),m=new window.cast.LaunchRequest("YouTube",m);m.parameters="pairingCode="+f;m.description=new window.cast.LaunchDescription;m.description.text=window.document.title;b&&(m.parameters+="&v="+b,c&&(m.parameters+="&t="+Math.round(c)),m.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=k.status&&(k.status="UNKNOWN",
om(k),Pi("yt-remote-cast-device-status-update",k));dm("Sending a cast launch request with params: "+m.parameters);l.launch(m,pa(tm,a))}else dm("No cast API or no cast device. Dropping cast launch.")}d.C=e;d.A=Ai(A(d.J,d,a,0,e),ep[0])}else d.fb("No DIAL device with id: "+a)};
var fp=function(a,b){var c=Qj(bp(a),b);a.fb("Found screen: "+pi(c)+" with key: "+b);return c};
var kp=function(a){var b=dp,c=Qj(b.o,a);b.fb("Found online screen: "+pi(c)+" with key: "+a);return c};
var lp=function(a){var b=dp,c=Oj(b.B,a);if(!c){var d=Qj(b.F,a);d&&(c=Oj(b.B,d.o))}b.fb("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c};
var bp=function(a){return rb(a.D,$d(a.F,function(a){return!Pj(this.D,a)},a))};
var mp=function(a){Sj.call(this,"ScreenServiceProxy");this.Lb=a;this.o=[];this.o.push(this.Lb.$_s("screenChange",A(this.NC,this)));this.o.push(this.Lb.$_s("onlineScreenChange",A(this.dA,this)))};
var np=function(a){q("yt.mdx.remote.castv2_",!0,void 0);fj&&ej();kk();op||(op=new Hj,zk()&&(op.o="/api/loungedev"));pp||(pp=t("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",pp,void 0));qp();var b=rp();if(!b){var c=new Mk(op);q("yt.mdx.remote.screenService_",c,void 0);b=rp();kl(a,c,function(a){a?El()&&Dl():c.subscribe("onlineScreenChange",function(){Pi("yt-remote-receiver-availability-change")})})}};
var sp=function(){Oi(tp);tp.length=0;Mb(up);up=null;pp&&(F(pp,function(a){a(null)}),pp.length=0,pp=null,q("yt.mdx.remote.deferredProxies_",null,void 0));
dp&&(Mb(dp),dp=null);op=null;nm()};
var vp=function(){if(wp()&&xl()){var a=[];if(ij("yt-remote-cast-available")||t("yt.mdx.remote.cloudview.castButtonShown_")||xp())a.push({key:"cast-selector-receiver",name:yp()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return t("yt.mdx.remote.cloudview.initializing_")?[]:zp()};
var zp=function(){var a=[],a=Ap()?rp().Lb.$_gos():oi(ij("yt-remote-online-screens")||[]),b=Bp();b&&xp()&&(Pj(a,b)||a.push(b));Ap()||(b=Nj(wk()),b=$d(b,function(b){return!Qj(a,b.id)}),a=rb(a,b));
return Mj(a)};
var Cp=function(){if(wp()&&xl()){var a=yl();return a?{key:"cast-selector-receiver",name:a}:null}return Dp()};
var Dp=function(){var a=zp(),b=Ep(),c=Bp();c||(c=Fp());return eb(a,function(a){return c&&ki(c,a.key)||b&&(a=lp(a.key))&&a.id==b?!0:!1})};
var yp=function(){if(wp()&&xl())return yl();var a=Bp();return a?a.name:null};
var Bp=function(){var a=El();if(!a)return null;if(!dp){var b=rp().Zb();return Qj(b,a)}return fp(dp,a)};
var Gp=function(a,b){Hp("Connecting to: "+de(a));if("cast-selector-receiver"==a.key)Ip(b||null),Cl(b||null);else{Jp();Ip(b||null);var c=null;dp?c=kp(a.key):(c=rp().Zb(),c=Qj(c,a.key));if(c)Kp(c);else{if(dp&&(c=lp(a.key))){Lp(c);return}Ai(function(){Mp(null)},0)}}};
var Jp=function(){if(dp){var a=dp;Di(a.A);a.A=window.NaN;a.C=""}a:{if(a=xp())if(a=a.getOtherConnectedRemoteId()){Hp("Do not stop DIAL due to "+a);Np("");break a}(a=Ep())?(Hp("Stopping DIAL: "+a),um(a),Np("")):(a=Bp())&&a.o&&(Hp("Stopping DIAL: "+a.o),um(a.o))}Bl()?tl().stopSession():ql("stopSession called before API ready.");(a=xp())?a.disconnect(1):(Qi("yt-remote-before-disconnect",1),Qi("yt-remote-connection-change",!1));Mp(null)};
var Op=function(){var a=Pp(),a=a?a.currentTime:0,b=Qp();0==a&&b&&(a=ro(yo(b)));return a};
var Qp=function(){var a=xp();return a&&3!=a.getProxyState()?new vo(a,void 0):null};
var Hp=function(a){ci("remote",a)};
var wp=function(){return!!t("yt.mdx.remote.castv2_")};
var Ap=function(){return t("yt.mdx.remote.screenService_")};
var rp=function(){if(!up){var a=Ap();up=a?new mp(a):null}return up};
var El=function(){return t("yt.mdx.remote.currentScreenId_")};
var Rp=function(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(dp){var b=dp;b.H=I()+3E5;if(b.G=a){var c=fp(b,a);if(c&&!Pj(b.o,c)){a=sb(b.o);a.push(c);var c=ap(b,a),d=!Eb(b.o,c,li);kb(a)||vk(O(c,mi));d&&(b.fb("Updating online screens: "+qi(b.o)+" -> "+qi(c)),b.o=c,b.P("onlineReceiverChange"))}}}};
var Ep=function(){return t("yt.mdx.remote.currentDialId_")};
var Np=function(a){q("yt.mdx.remote.currentDialId_",a,void 0)};
var Pp=function(){return t("yt.mdx.remote.connectData_")};
var Ip=function(a){q("yt.mdx.remote.connectData_",a,void 0)};
var xp=function(){return t("yt.mdx.remote.connection_")};
var Mp=function(a){var b=xp();Ip(null);a?cb(!xp()):(Rp(""),Np(""));q("yt.mdx.remote.connection_",a,void 0);pp&&(F(pp,function(b){b(a)}),pp.length=0);
b&&!a?Qi("yt-remote-connection-change",!1):!b&&a&&Pi("yt-remote-connection-change",!0)};
var Fp=function(){var a=nk();if(!a)return null;if(Ap()){var b=rp().Zb();return Qj(b,a)}return dp?fp(dp,a):null};
var Kp=function(a){cb(!El());Rp(a.id);a=new Io(op,a,Sp());a.connect(1,Pp());a.subscribe("beforeDisconnect",function(a){Qi("yt-remote-before-disconnect",a)});
a.subscribe("beforeDispose",function(){xp()&&(xp(),Mp(null))});
Mp(a)};
var Lp=function(a){Ep();Hp("Connecting to: "+(a?a.toString():"null"));Np(a.id);var b=Pp();b?cp(a.id,b.videoIds[b.index],b.currentTime):cp(a.id)};
var qp=function(){var a=Sp();if(ac(a)){var a=mk(),b=ij("yt-remote-session-name")||"",c=ij("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)}};
var Sp=function(){return t("yt.mdx.remote.channelParams_")||{}};
var Tp=function(a,b){var c=(b?Up:Vp).exec(a);return c?c[0]:""};
var Wp=function(a){var b=Xp.test(a),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Yp.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Fi(a,"WARNING"));return b||c};
var Zp=function(a){a=new N(a);ah(a,window.document.location.protocol);bh(a,window.document.location.hostname);window.document.location.port&&ch(a,window.document.location.port);return a.toString()};
var $p=function(a){a=new N(a);ah(a,window.document.location.protocol);return a.toString()};
var aq=function(a,b,c){a&&(c?a&&(a=M("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),We(a).body.appendChild(a)):bq(a,b))};
var cq=function(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||aq(a,void 0)}catch(b){aq(a,void 0)}};
var bq=function(a,b){var c=new window.Image,d=""+dq++;eq[d]=c;c.onload=c.onerror=function(){b&&eq[d]&&b();delete eq[d]};
c.src=a};
var fq=function(a,b){this.start=a;this.end=b;this.B=gq++};
var hq=function(a,b){return a.start-b.start||a.end-b.end||a.B-b.B};
var iq=function(a,b,c){fq.call(this,a,b);a=c||{};this.J=a.id||"";this.F=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.o=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.C=null;this.tooltip=a.tooltip};
var jq=function(a){return{start:a.start,end:a.end,id:a.J,priority:a.F,namespace:a.o,tooltip:a.tooltip,style:"ytp-chapter-marker"==a.style?"chapter":"ad",visible:a.visible}};
var kq=function(a){return a.C||(a.C=new ui)};
var lq=function(a,b){return a.start-b.start||a.F-b.F||a.B-b.B};
var mq=function(a,b){Rj.call(this);this.H=this.sa="";this.va=b||"";this.ea=this.loaded=this.J=!1;this.V=this.G=null;this.o=a;if(this.va){var c=Yj("yt-html5-player-modules::"+this.va);c&&(this.V=new Wi(c))}};
var nq=function(a){var b=a.o,c=b.app;a=a.sa;var b=b.playerType,d=oq(c,b);if(d){for(var d=d.F,e=[],f=d.o.o,k=f.length-1;0<=k;k--){var l=f[k];if(l.o==a){var m=d.A.indexOf(l);0<=m&&d.A.splice(m,1);var m=d.o.o,p=xb(m,l,hq);0<=p&&pb(m,p);e.push(l)}}d.Kc();b&&c.getPresentingPlayerType()!=b||pq(c,"cuerangesremoved",e)}};
var qq=function(a){a.o.Zi(a.sa)};
var rq=function(a,b,c){var d={},e;for(e in b)d[a.sa+"_"+e]=b[e];b={};for(var f in c)b[a.sa+"_"+f]=c[f];a=a.o.app.C;qa(a.C,d||null);qa(a.B,b||null)};
var sq=function(a,b){if(!a.V)return null;var c;try{c=a.V.get(b)}catch(d){a.V&&a.V.remove(b)}return c};
var tq=function(a,b,c){if(a.V)try{a.V.set(b,c)}catch(d){}};
var uq=function(a){a.P("command_stop_redirect_controls")};
var vq=function(a){a.P("command_play",!1,a.o.playerType)};
var wq=function(a){G.call(this);this.ra={};this.la={};this.element=xq(this,a)};
var xq=function(a,b){var c=0,d=lf(b[c++]);if(y(b[c])){var e=b[c++];if(e=yq(a,d,"className",e))zq(a,d,"className",e),a.ra[e]=d}else if(da(b[c])){for(var e=b[c++],f=0;f<e.length;f++)a.ra[e[f]]=d;zq(a,d,"className",e.join(" "))}for(;c<b.length;c++){var k=b[c];if(da(k))e=xq(a,k),d.appendChild(e);else if(ia(k))if(k.element)d.appendChild(k.element);else{var e=a,f=d,l=void 0;for(l in k){var m=k[l];null!=m&&zq(e,f,l,y(m)?yq(e,f,l,m):m)}}else y(k)&&(e=yq(a,d,"child",k),null!=e&&d.appendChild(window.document.createTextNode(String(e))))}return d};
var Aq=function(a){qf(a.element)};
var yq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.la[d]=[b,c],null):d};
var Bq=function(a,b,c){(b=a.la["{{"+b+"}}"])&&zq(a,b[0],b[1],c)};
var Cq=function(a){return da(a)&&y(a[0])};
var zq=function(a,b,c,d){if("child"==c){of(b);if(!da(d)||Cq(d))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];null!=f&&(!f.nodeType||1!=f.nodeType&&3!=f.nodeType?Cq(f)?c.push(xq(a,f)):f.element?c.push(f.element):c.push(window.document.createTextNode(String(f.toString()))):c.push(f))}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=d:null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())};
var Dq=function(a,b){a&&(a.style.display=b)};
var Eq=function(a,b){var c=Fh("requestAnimationFrame",window);return Ai(function(){c?c.call(window,a):a()},b||0)};
var Fq=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
var Q=function(a){wq.call(this,a);this.B=!0;this.V=[]};
var R=function(a,b,c,d,e){d=A(d,e||a);e={target:b,type:c,listener:d};a.V.push(e);b.addEventListener(c,d);return e};
var Gq=function(a){Q.call(this,a);this.O=new Rj;H(this,this.O)};
var Hq=function(a,b,c){Gq.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.A=a;this.J=b;this.K=!1};
var Iq=function(){Q.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"]]])};
var Jq=function(a,b){da(b)||(b=[b]);var c=O(b,function(a){return y(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
Kq(a,c.join(","))};
var Kq=function(a,b){Mf(a,"transition",b)};
var Lq=function(a,b){(a=y(a)?window.document.getElementById(a):a)&&a.style&&(lg(a,b),L(a,"hid",!b))};
var Mq=function(a){return(a=y(a)?window.document.getElementById(a):a)?!("none"==a.style.display||Xd(a,"hid")):!1};
var Nq=function(a){F(arguments,function(a){!ea(a)||a instanceof window.Element?Lq(a,!0):F(a,function(a){Nq(a)})})};
var Oq=function(a){F(arguments,function(a){!ea(a)||a instanceof window.Element?Lq(a,!1):F(a,function(a){Oq(a)})})};
var Pq=function(a,b,c,d){G.call(this);this.B=a;c||(Qq(this,!0),a.fa());this.D=b;this.F=null==d?b:d;this.o=null;this.C=!1;this.A=new Ud(this.hm,0,this);H(this,this.A)};
var Qq=function(a,b){var c=a.B.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
var Rq=function(a,b){Q.call(this,b||["div","ytp-thumbnail-overlay"]);this.C=new Pq(this,500);H(this,this.C);this.A=a};
var Sq=function(a){Rq.call(this,a,["div",["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])};
var Tq=function(a,b){Hq.call(this,a,b,"subscribecard-endscreen");this.C=new Sq(a);H(this,this.C);Uq(this.A,this.C.element,4);this.D=new Iq;H(this,this.D);this.fa()};
var Vq=function(a){var b;b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",P("YTP_ADVERTISEMENT")]],["div","ad-container"]];Q.call(this,b);this.A=a;this.C=this.F=this.D=null};
var Wq=function(a){a.D||(a.D=a.ra["ad-container"],a.A.W().H&&K(a.D,"ad-container-single-media-element-annotations"));return a.D};
var Xq=function(a){a.C&&(a.A.W().H?(Zd(a.C,"ad-video"),Yq(a.A.app,a.C),a.C=null):(qf(a.C),Zq(a.C)))};
var $q=function(a){if(!a.F){if(a.A.W().useTabletControls){var b=lf("button");K(b,"video-click-tracking");nf(b,P("YTP_VISIT_ADVERTISERS_SITE"));var c=lf("div");K(c,"video-click-tracking-container");c.appendChild(b);Wq(a).appendChild(c)}else b=lf("div"),Yd(b,["video-click-tracking","ad-video"]),Wq(a).appendChild(b);a.F=b}return a.F};
var ar=function(a,b){this.type=a||"";this.id=b||""};
var br=function(a){return new ar(a.substr(0,2),a.substr(2))};
var cr=function(a){a=a.split("");dr.N0(a,26);dr.m5(a,3);dr.Pe(a,0);dr.m5(a,3);dr.Pe(a,16);dr.m5(a,3);dr.N0(a,61);dr.m5(a,3);dr.Pe(a,9);return a.join("")};
var er=function(a,b){return new yd(function(c,d){b.kb=function(a){vj(a)?c(a):d(a)};
b.onError=d;Bj(a,b)})};
var fr=function(a){function b(e,f,k){return Ed(e,function(e){return 0>=f||403===e.status?Dd(e):c(k).then(function(){return b(er(a,d),f-1,Math.pow(2,4-f+1)*k)})})}
function c(a){return new yd(function(b){(0,window.setTimeout)(b,a)})}
var d={format:"RAW",method:"GET"};return b(er(a,d),3,1E3)};
var gr=function(a){this.o=a||0};
var hr=function(a,b,c,d,e,f,k,l){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=l||0;this.audio=c||null;this.video=d||null;this.Hb=e||null;this.ee=f||null;this.B=ir[jr(this)]||""};
var jr=function(a){return a.id.split(";",1)[0]};
var kr=function(a){return!(a.audio&&a.video)};
var lr=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
var mr=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
var nr=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
var or=function(a,b,c,d,e,f,k,l){this.width=a;this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);for(b=0;b<pr.length;b++){var m=pr[b],p=qr[m];if(f>=Math.floor(16*p/9)||a>=p){f=m;break a}}f="tiny"}this.quality=f;this.NB=qr[this.quality];this.o=!!k;this.fps=c||0;this.A=e||0;this.projectionType=d||0;if(!(c=l)){a:{for(c=0;c<rr.length;c++)if(this.fps>rr[c][1]){c=rr[c][0];break a}c=""}c=qr[this.quality]+"p"+c}this.qualityLabel=c};
var sr=function(a){this.B=a;this.D=this.C=this.F="";this.o={};this.A=""};
var tr=function(a){a.A||(a.A=ur(a));return a.A};
var vr=function(a){wr(a);return a.D};
var xr=function(a){wr(a);return Qb(a.o,function(a){return null!==a})};
var wr=function(a){if(a.B){if(!yr.test(a.B))throw Error("Untrusted URL: "+a.B);var b=qh(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=zr(c);qa(a.o,Ar(b.fo()));qa(a.o,d);a.B="";a.A=""}};
var ur=function(a){wr(a);var b=a.F+(a.F?"://":"//")+a.D+a.C;if(xr(a)){var c=[];Ob(a.o,function(a,b){null!==a&&c.push(b+"="+a)});
a=c.join("&");b+="?"+a}return b};
var zr=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Br(c,a[b],a[b+1]);return c};
var Ar=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Br(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
var Br=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};
var Cr=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
var Dr=function(a){a=a.split("-");return 2==a.length&&(a=new Cr((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};
var Er=function(a,b){return new Cr(a,a+b-1)};
var Fr=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""};
var Gr=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};
var Hr=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)};
var Ir=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};
var Jr=function(){this.ua=[]};
var Kr=function(a,b){var c=xb(a.ua,new Ir(b,0,0,0,""),function(a,b){return a.o-b.o});
return 0<=c?a.ua[c]:null};
var Lr=function(a,b){var c=xb(a.ua,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.ua[c]:a.ua[Math.max(0,-c-2)]};
var Mr=function(a,b){var c=fb(a.ua,function(a){return a.o>=b},a);
0<c&&a.ua.splice(0,c)};
var Nr=function(a){this.o=a;this.A={};this.B=""};
var Or=function(a,b){var c=b.indexOf("?");if(0<c){var d=Ar(b.substr(c+1));Ob(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=zr(b);Ob(d,function(a,b){this.set(b,a)},a)};
var Pr=function(a){a.B||(a.B=Qr(a));return a.B};
var Qr=function(a){var b=tr(a.o),c=[];Ob(a.A,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=xr(a.o)?"&":"?";return b+a+d};
var Rr=function(a,b){var c=new sr(b);Ob(a.A,function(a,b){c.set(b,null)});
return c};
var Sr=function(a){this.o=a;this.C=a.clone();this.A=0;this.B=-1};
var Tr=function(a){var b=tr(a.C),c=new N(b);c.A.match("\\.googlevideo\\.com$")?(bh(c,"redirector.googlevideo.com"),b=c.toString()):c.A.match("r[1-9].*\\.c\\.youtube\\.com$")?(bh(c,"www.youtube.com"),b=c.toString()):b=Zp(b);a.o=new sr(b);a.A&&(b=""+a.A,a.o.set("cmo=pf",b),a.C.set("cmo=pf",b))};
var Ur=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 Sr(a)};
var Vr=function(a){return!!a.o&&!!a.index&&a.index.fg()};
var Wr=function(a,b,c,d,e,f,k,l,m){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<=l?l:this.range?this.range.length:window.NaN;this.G=!!m;this.range?(this.F=this.B+this.A==this.range.length,this.D=this.startTime+this.duration*this.B/this.range.length,this.H=this.duration*this.A/this.range.length):(this.F=0!=this.A,this.D=this.startTime,this.H=this.duration);this.J=this.D+this.H};
var Xr=function(a){return 1==a.type||2==a.type};
var Yr=function(a,b){return a.o==b.o&&a.range.start+a.B+a.A==b.range.start+b.B};
var Zr=function(a){cb(1==a.length||Gg(a,function(a){return!!a.range}));
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Cr(a[0].range.start+a[0].B,b.range.start+b.B+b.A-1)};
var $r=function(a){var b="";Ob(as(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
var as=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.H).toFixed(1);return b};
var bs=function(a,b){this.B=a[0].o.F;this.A=b||"";this.o=a;this.range=this.o[0].range&&0<this.o[0].A?Zr(this.o):null};
var cs=function(a,b){var c;/http[s]?:\/\//.test(a.A)?c=new Nr(new sr(a.A)):(c=new Nr(a.B.o),a.A&&Or(c,a.A));var d=b||a.range;d&&c.set("range",d.toString());return c};
var ds=function(a){if(a.range)return a.range.length;a=a.o[0];return Math.round(a.H*a.o.info.o)};
var es=function(a,b,c,d,e){Ur.call(this,a,b,d);this.index=e||new Jr;this.C=c;this.A=!0};
var fs=function(a,b){a.ph(b);return gs(a,b.F?b.C+1:b.C,!1)};
var gs=function(a,b,c){var d=a.index.eo(b),e=a.index.de(b),f=a.index.dg(b);c?f=c=0:c=0<a.info.o?a.info.o*f:1E3;a=new Wr(3,a,null,b,e,f,0,c,b==a.index.Kb()&&!a.A&&0<c);return new bs([a],d)};
var hs=function(a,b,c){this.Zd=a;this.durationSecs=b;this.context=c};
var is=function(a,b,c,d){this.o=a;this.Zd=b;this.durationSecs=c;this.A=d||window.NaN};
var js=function(){this.o=[];this.A=null;this.C=0;this.B=[]};
var ks=function(a){var b=a.B;a.B=[];return b};
var ls=function(){this.C=[];this.D=!1;this.o=null;this.A={};this.B={}};
var ms=function(a,b){for(var c=b.getElementsByTagName("SegmentTimeline"),d=0;d<c.length;d++){var e=c[d].parentNode.parentNode;"Period"==e.nodeName?a.o=new js:"AdaptationSet"==e.nodeName?a.A[e.attributes.mimeType.value]=new js:"Representation"==e.nodeName&&(a.B[e.attributes.id.value]=new js)}a.D=!0};
var ns=function(a,b){a.D||ms(a,b);for(var c=[],d=b.getElementsByTagName("SegmentTimeline"),e=0;e<d.length;e++){var f=d[e].parentNode.parentNode,k=null;"Period"==f.nodeName?k=a.o:"AdaptationSet"==f.nodeName?k=a.A[f.attributes.mimeType.value]:"Representation"==f.nodeName&&(k=a.B[f.attributes.id.value]);if(null==k)return;k.update(d[e]);tb(c,ks(k))}Cb(c,function(a){return a.Zd});
tb(a.C,c)};
var os=function(a){a.o&&(a.o.o=[]);Ob(a.A,function(a){a.o=[]});
Ob(a.B,function(a){a.o=[]})};
var ps=function(a,b){var c=qs(a,0,1836019558);if(!c)return null;var d=qs(a,c.offset+8,1835427940),e=qs(a,c.offset+8,1953653094);if(!d||!e)return null;var f=qs(a,e.offset+8,1952868452),k=qs(a,e.offset+8,1953658222),l=qs(a,e.offset+8,1952867444);if(!f||!k||!l)return null;var m=qs(a,e.offset+8,1935763823),e=qs(a,e.offset+8,1935763834);if(m){var p=rs(m),u=rs(m);if(0!=p||1!=u)return null;p=rs(m)}for(var v=rs(f),z=rs(f),x=v&2,ga=v&1?ts(f):0,wa=x?rs(f):0,J=v&8?rs(f):0,u=v&16?rs(f):0,X=v&32?rs(f):0,v=rs(k),
Lb=v&1,wd=v&4,gp=v&256,f=v&512,hp=v&1024,RB=v&2048,v=rs(k),SB=Lb?rs(k):0,ip=wd?rs(k):0,Lb=[],uu=[],Ol=[],TB=[],fO=0,Pf=0,Ec=0;Ec<v;Ec++){var b5=gp?rs(k):J;f&&Lb.push(rs(k));var ge=X;wd&&0==Ec?ge=ip:hp&&(ge=rs(k));uu.push(ge);ge=RB?rs(k):0;0==Ec&&(fO=ge);Ol.push(Pf+ge);TB.push(Ec);Pf+=b5}Bb(TB,function(a,b){return Ol[a]-Ol[b]});
k=[];for(Ec=0;Ec<v;Ec++)k[TB[Ec]]=Ec;Pf=x?4:0;Ec=16*v;ge=68+Pf+l.size+Ec+(m?m.size:0)+(e?e.size:0);c=ge-c.size;J=new us(ge);vs(J,ge);vs(J,1836019558);ws(J,d);vs(J,ge-24);vs(J,1953653094);vs(J,16+Pf);vs(J,1952868452);vs(J,131072|(x?2:0));vs(J,z);x&&vs(J,wa);ws(J,l);vs(J,20+Ec);vs(J,1953658222);vs(J,16781057);vs(J,v);vs(J,ga+SB+c);for(Ec=Pf=0;Ec<v;Ec++)l=k[Ec],d=Math.round(b*l/v),l=Math.round(b*(l+1)/v)-d,ge=d-Pf+fO,vs(J,l),vs(J,f?Lb[Ec]:u),vs(J,uu[Ec]),vs(J,ge),Pf+=l;m&&(vs(J,m.size),vs(J,1935763823),
vs(J,0),vs(J,1),vs(J,p+c));e&&ws(J,e);return J.data.buffer};
var xs=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);for(var b=0;ys(a,b);){var c=zs(a,b);if(1836476516==c.type)return As(c);b=Bs(c.type)?b+8:b+c.size}return window.NaN};
var qs=function(a,b,c){for(;ys(a,b);){var d=zs(a,b);if(d.type==c)return d;b+=d.size}return null};
var zs=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Cs(a,b,c,d)};
var As=function(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)};
var ys=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};
var Bs=function(a){return 1836019558==a||1836019574==a||1953653094==a};
var Cs=function(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.o=8};
var rs=function(a){var b=a.data.getInt32(a.offset+a.o);a.o+=4;return b};
var ts=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};
var us=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.o=0};
var vs=function(a,b){a.data.setInt32(a.o,b);a.o+=4};
var ws=function(a,b){for(var c=0;c+4<=b.size;)vs(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.o++,b.data.getUint8(b.offset+c++))};
var Ds=function(a){return(a=qs(a,0,1836019558))?a.offset+a.size:null};
var Es=function(a,b){this.A=a;this.o=0;this.B=b||0};
var Fs=function(a){for(var b=Gs(a,!1);236==b;)Hs(a),b=Gs(a,!1);return b};
var Is=function(a){var b=Gs(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 Es(c,a.B+a.o);a.o+=b;return c};
var Js=function(a){for(var b=Gs(a,!0),c=Ks(a),d=1;d<b;d++)c=256*c+Ks(a);return c};
var Hs=function(a){var b=Gs(a,!0);a.o+=b};
var Ls=function(a){var b=a.o;a.o=0;var c=!1;Ms(a,440786851)&&(a.o=0,Ms(a,408125543)&&(c=!0));a.o=b;return c};
var Ns=function(a,b,c){var d=a.o;a.o=0;if(Ls(a)){if(!Ms(a,408125543))return!1;Gs(a,!0)}if(!Ms(a,524531317))return!1;Gs(a,!0);if(!Ms(a,231))return!1;var e=Gs(a,!0);b=Math.floor(1E9*b/c);if(Math.ceil(Math.log(b)/Math.log(2)/8)>e)return!1;for(c=e-1;0<=c;c--)a.A.setUint8(a.o+c,b&255),b>>>=8;a.o=d;return!0};
var Ms=function(a,b){for(;Fs(a)!=b;)if(Hs(a),a.o>=a.A.byteLength)return!1;return!0};
var Gs=function(a,b){var c=Ks(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Ks(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+Ks(a),e*=128;return b?c-e:c};
var Ks=function(a){return a.A.getUint8(a.o++)};
var Os=function(a,b,c,d,e){this.info=a;this.o=b;this.range=c;this.A=d;this.B=e};
var Ps=function(a){return a.range?new window.DataView(a.o,a.range.start,a.range.length):new window.DataView(a.o)};
var Qs=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=Ps(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=Ps(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.B)return 524531317==c||440786851==c}return!0};
var Rs=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);ys(k,f);){var l=zs(k,f);1936286840==l.type?d=l.data.getUint32(l.offset+16):1836476516==l.type?d=As(l):1952867444==l.type&&(e=l);f=Bs(l.type)?f+8:f+l.size}!d&&c&&(d=xs(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}new window.DataView(a.info.o.o.buffer);
d=new Es(new window.DataView(a.o));e=d.o;d.o=0;c=1E6;Ms(d,408125543)&&(Gs(d,!0),Ms(d,357149030)&&(Gs(d,!0),Ms(d,2807729)&&(c=Js(d))));d.o=e;return Ns(d,b,c)};
var Ss=function(a){var b;a:{for(var c=0,d=new window.DataView(a.o);ys(d,c);){b=zs(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=Bs(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;ys(b,d);){var k=zs(b,d);1836476516==k.type?e=As(k):1836019558==k.type&&(f=k);d=Bs(k.type)?d+8:d+k.size}!e&&c&&(e=xs(c));if(f&&e){f=
qs(b,f.offset+8,1953653094);c=qs(b,f.offset+8,1952868452);f=qs(b,f.offset+8,1953658222);b=rs(c);rs(c);b&2&&rs(c);b=b&8?rs(c):0;var l=rs(f),m=l&1,c=l&4,d=l&256,k=l&512,p=l&1024,l=l&2048,u=f.data.getUint32(f.offset+f.o);f.o+=4;m&&rs(f);c&&rs(f);for(var v=m=0;v<u;v++){var z=d?rs(f):b;k&&rs(f);c&&0==v||!p||rs(f);l&&rs(f);m+=z}b=m/e}else b=window.NaN}return b||a.info.H};
var Ts=function(a){1==a.info.o.info.A?(a=Ps(a),a=!!qs(a,0,1718909296)):a=Ls(new Es(new window.DataView(a.o)));return a};
var Us=function(){this.xa=0;this.o=new window.Float64Array(128);this.A=new window.Float64Array(128);this.C=1;this.B=!1};
var Vs=function(a){if(a.o.length<a.xa+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.xa+1;b++)a.o[b]=c[b],a.A[b]=d[b]}};
var Ws=function(a,b,c,d,e,f){Ur.call(this,a,b,c||void 0);this.indexRange=d;this.C=null;this.index=new Us;this.A=e;this.lastModified=f};
var Xs=function(a,b,c,d){for(var e=[];b<=a.index.Kb();b++){var f;f=a.index;var k=b;f=Er(f.Bj(k),k+1<f.xa||f.B?f.o[k+1]-f.o[k]:-1);var k=a.index.de(b),l=a.index.dg(b),m=Math.max(0,c-f.start),p=Math.min(f.end+1,c+d)-(f.start+m);e.push(new Wr(3,a,f,b,k,l,m,p,b==a.index.Kb()&&m+p==f.length));if(f.start+m+p>=c+d)break}return new bs(e)};
var Ys=function(a,b,c){a.ph(b);if(!Vr(a))return c=Er(b.range.end+1,c),c.end+1>a.A&&(c=new Cr(c.start,a.A-1)),a=[new Wr(4,b.o,c)],new bs(a);4==b.type&&(b=a.Wi(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 Xs(a,d,e,c)};
var Zs=function(a){Rj.call(this);this.H=this.duration=0;this.isLive=this.C=!1;this.F=$s();this.A=window.Infinity;this.o={};this.K=a||"";this.D=this.G=0;this.B=null;this.J=$s()};
var at=function(a){return Qb(a.o,function(a){return!!a.info.ee},a)};
var bt=function(a,b,c){var d=new Zs;d.duration=c||0;F(a,function(a){var c=a.type,k=a.itag,l=null;if(mr(c))var m=a.size.split("x"),l=new or(+m[0],+m[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isFastLoad,a.quality_label);var p=null,u=null;lr(c)&&(p=new gr,a.name&&(u=new nr(a.name,a.audio_track_id,"1"==a.isDefault)));a.xtags&&(k=a.itag+";"+a.xtags);var v=(0,window.parseInt)(a.bitrate,10)/8,m=(0,window.parseInt)(a.clen,10),z=d.duration&&m?m/d.duration:0,x=null;b&&a.drm_families&&(x={},F(a.drm_families.split(","),
function(a){x[a]=b[a]}));
c=new hr(k,c,p,l,u,x,v,z);l=Dr(a.init);p=Dr(a.index);u=ct(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);u&&(d.o[k]=new Ws(u,c,l,p,m,a))});
return d};
var ct=function(a,b,c){a=new sr(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",cr(c));return a};
var dt=function(a,b){var c=Fr(b,"id"),c=c.replace(":",";");"captions"==c&&(c=Fr(b,"lang"));var d=Fr(b,"mimeType"),e=Fr(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(Fr(b,"bandwidth"),10)/8,f=(0,window.parseInt)(Gr(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(mr(d)){var k=(0,window.parseInt)(Fr(b,"width"),10),l=(0,window.parseInt)(Fr(b,"height"),10),m=(0,window.parseInt)(Fr(b,"frameRate"),10),p=Fr(b,"yt:projectionType"),u=Fr(b,"yt:stereoLayout"),
v="equirectangular"==p,z,x;v&&"layout_top_bottom"==u?z=3:v&&!p?z=2:"layout_left_right"==u&&(x=1);k=new or(k,l,m,z,x)}x=z=null;lr(d)&&(z=new gr((0,window.parseInt)(Fr(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),x=Fr(b,"lang")||"",(l=Gr(b,"Role"))?(l=Fr(l,"value")||"",x=x&&Yb(et,l)?new nr(Fr(b,"yt:langName")||x+" - "+l,x+"."+et[l],"main"==l):null):x=null);m=null;if(l=Gr(b,"ContentProtection"))if((m=l.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==m.textContent)for(m=
{},l=l.firstChild;null!=l;l=l.nextSibling)"yt:SystemURL"==l.nodeName&&(m[l.attributes.type.textContent]=l.textContent.trim());else m=null;return new hr(c,d,z,k,x,m,e,f)};
var ft=function(a,b){a.D=1;a.F=$s();return Ed(fr(b||a.K).then(A(a.M,a)),A(a.O,a))};
var gt=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=Dr(e):c=c+"?range="+e);return new Ir(b.o,b.Zd,b.durationSecs,b.A,c,d)};
var ht=function(a){a=a.o;for(var b in a){var c=a[b].index;if(c&&c.fg())return c.eg()}return window.NaN};
var it=function(a){a=a.o;for(var b in a){var c=a[b].index;if(c&&c.fg())return c.Gr()}return 0};
var jt=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)})})};
var kt=function(a,b){var c=(0).toString();if(!a.o[c]){var d=new hr(c,"",void 0,new or(0,0,0,void 0,void 0,"auto"));a.o[c]=b?new es(new sr("http://www.youtube.com/videoplayback"),d,""):new Ws(new sr("http://www.youtube.com/videoplayback"),d,new Cr(0,0),new Cr(0,0),0,window.NaN)}};
var lt=function(){return mt("android")&&mt("chrome")&&!nt()};
var ot=function(){return mt("(ps3; leanback shell)")||mt("ps3")&&mt("cobalt")};
var pt=function(){return mt("(ps4; leanback shell)")||mt("ps4")&&mt("cobalt")};
var qt=function(){var a=/WebKit\/([0-9]+)/.exec(oc);return!!(a&&600<=a[1])};
var rt=function(){return Fl&&mt("crkey")};
var tt=function(){return mt("nintendo wiiu")};
var ut=function(){return mt("iemobile")||mt("windows phone")&&mt("edge")};
var nt=function(){return mt("trident/")||mt("edge/")};
var mt=function(a){var b=oc;return b?0<=b.toLowerCase().indexOf(a):!1};
var vt=function(){var a=t("yt.player.utils.videoElement_");a||(a=window.document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a};
var wt=function(a){var b=vt();try{if(b.canPlayType){a=a?xt:zt;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
var At=function(a){a=M("div",{"class":a});window.document.body.appendChild(a);var b="none"==Rf(a,"display");qf(a);return b};
var Bt=function(a,b,c){this.A=a;this.o=b;this.D=c;this.C={};this.B=null;this.fairPlayCert=""};
var Ct=function(a){return!a.B&&Dt()&&"com.microsoft.playready"==a.o};
var Et=function(a){return!a.B&&Dt()&&"com.apple.fps.1_0"==a.o};
var Dt=function(){var a=window.MSMediaKeys;Ft&&yc("8")&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
var Gt=function(){return window.navigator.requestMediaKeySystemAccess&&Fl&&Ht("45")};
var It=function(a){this.A=[];this.o={};this.B={};this.C=null;Jt(this,a)};
var Jt=function(a,b){Ob(b,function(a){a.forEach(function(a){a.ee&&Ob(a.ee,function(b,c){Kt[c]&&Ob(Kt[c],function(b){this.o[b]=this.o[b]||new Bt(c,b,a.ee[c]);this.B[c]=this.B[c]||{};this.B[c][a.mimeType]=!0},this)},this)},this)},a);
a.A=Lt.filter(function(a){return!!this.o[a]},a)};
var Mt=function(a){var b=a.A.shift(),c=a.o[b],d=Nt(a.B[c.A]);window.navigator.requestMediaKeySystemAccess(b,d).then(Bi(A(a.F,a,c)),Bi(A(a.D,a,c)))};
var Nt=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]};
var Ot=function(a){var b=Dt(),c=vt();if(b){if(Ft){a.C(new Bt("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=A(c.canPlayType,c):d=function(){return!1};
c=(c=eb(a.A,function(a){var b=this.o[a],c,l;Ob(this.B[b.A],function(m,p){d(p,a)&&(b.C[p]=!0,c|=0==p.indexOf("audio/"),l|=0==p.indexOf("video/"))},this);
return c&&l},a))?a.o[c]:null;
a.A=[];a.C(c)};
var Pt=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};
var Qt=function(a){a=a||{};this.K=a.formats||"";this.D=a.format||1;if(1==this.D)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.D=Math.max(d,this.D))}this.o=a.languageCode||"";this.F=a.languageName;this.B=a.kind||"";this.C=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.A=null;a.translationLanguage&&(this.A=new Pt(a.translationLanguage))};
var Rt=function(a){var b={format:a.D,languageCode:a.o,languageName:a.F,displayName:St(a),kind:a.B,name:a.C,id:a.M,is_servable:a.L,is_default:a.isDefault,is_translateable:a.H,vss_id:a.G};a.A&&(a=a.A,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.o,id:a.id,is_default:a.isDefault});return b};
var St=function(a){var b=a.F||"",c=[b];"asr"==a.B&&-1==b.indexOf("(")&&c.push(" (",P("YTP_ASR_SETTINGS_LABEL"),")");a.C&&c.push(" - ",a.C);a.A&&c.push(" >> ",a.A.languageName);return c.join("")};
var Tt=function(a,b){var c=new Qt;c.o=a.o;c.F=a.F;c.C=a.C;c.B=a.B;c.isDefault=!1;c.H=a.H;c.G=a.G;c.J=a.J;c.A=b;return c};
var Ut=function(a,b){this.id=a;this.Hb=b;this.captionTracks=[];this.zg=this.mk=null;this.Gn=0};
var Vt=function(a,b,c){this.A=a||0;this.o=b||0;this.B=c};
var Wt=function(a,b,c){return new Vt(qr[a]||0,qr[b]||0,c)};
var Xt=function(a){var b=qr.auto;return a.A==b&&a.o==b};
var Yt=function(a,b){if(b.B&&Xt(b))return Zt;if(b.B||Xt(a))return b;if(a.B||Xt(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 Vt(c,d,!1)};
var $t=function(a){var b=a.o||a.A;return $b(au,function(a){return qr[a]==b})||"auto"};
var bu=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,A(function(a){if(a.Hb&&!d[a.id]){var b=new Ut(a.id,a.Hb);d[a.id]=b;this.audioTracks.push(b)}},this))}};
var cu=function(a,b){this.o=a;this.A=b};
var du=function(a){this.o=[];if(a)a:{var b,c;if(a instanceof du){if(b=a.Na(),c=a.Ka(),0>=a.Za()){a=this.o;for(var d=0;d<b.length;d++)a.push(new cu(b[d],c[d]));break a}}else b=Wb(a),c=Vb(a);for(d=0;d<b.length;d++)eu(this,b[d],c[d])}};
var eu=function(a,b,c){var d=a.o;d.push(new cu(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};
var fu=function(){du.call(this)};
var gu=function(a,b){Rj.call(this);this.A=a;this.B=new fu;this.o=null;this.D={};this.C=b||""};
var hu=function(a,b,c){var d;for(c=iu(a.A,c);0<=c;){d=a.A.o[c];if(d=d.B[Math.floor(b/(d.Fb*d.rows))]?ju(d,b):null)return d;c--}return ju(a.A.o[0],b)};
var ku=function(a,b,c){c=iu(a.A,c);for(var d,e;0<=c;c--)if(d=a.A.o[c],e=Math.floor(b/(d.Fb*d.rows)),!d.B[e]){d=a;var f=c,k=f+"-"+e;d.D[k]||(d.D[k]=!0,eu(d.B,f,{$o:f,fp:e}))}lu(a)};
var lu=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=mu(a.A.o[b.$o],b.fp);c.onload=A(a.F,a,b.$o,b.fp);a.o=c}};
var nu=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.Fb=(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};
var mu=function(a,b){var c=a.K,c=c.replace("$N",a.C),c=c.replace("$L",a.M.toString()),c=c.replace("$M",b.toString());a.F&&(c=Ug(c,{sigh:a.F}));return $p(c)};
var ju=function(a,b){var c=Math.floor(b/(a.Fb*a.rows)),d=a.Fb*a.rows,e=b%d,f=e%a.Fb,e=Math.floor(e/a.Fb),k,l=a.Pm()+1-d*c;l<a.Fb?(k=l,d=1):(k=a.Fb,d=l<d?Math.ceil(l/a.Fb):a.rows);return{url:mu(a,c),vv:f,Fb:k,row:e,rows:d,gp:a.H*k,ep:a.G*d}};
var ou=function(a,b){this.o=this.A(a,b);this.B={};1<this.o.length&&this.o[0].isDefault()&&this.o.splice(0,1)};
var iu=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};
var pu=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");nu.call(this,a,b,c,0);this.o=null;this.J=d?3:0};
var qu=function(a,b){this.F=b;ou.call(this,a,0)};
var ru=function(){if(void 0==tu&&(tu=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new window.Uint8Array(1);window.crypto.getRandomValues(a);tu=!0}catch(e){}if(tu){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]}else{a=Array(16);for(b=0;16>b;b++){for(var c=I(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=vu)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};
var wu=function(){for(var a=ru(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
var xu=function(){return O(ru(),function(a){return(a&15).toString(16)}).join("")};
var yu=function(a,b){return void 0==b?a:"1"==b?!0:!1};
var zu=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
var Au=function(a,b){return void 0==b?a:Number(b)};
var Bu=function(a,b){return void 0==b?a:b.toString()};
var Cu=function(a){if(a&&(a=a.match(Du))){var b=(0,window.parseFloat)(a[2]);if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN};
var Eu=function(a,b){var c=qr.auto,d=qr.medium;if("tivo"==b)return new Vt(c,qr.large,!1);var e=qr[b];return e>d?new Vt(e,c,!1):e>=c?new Vt(c,e,!1):a};
var Fu=function(){return!!t("yt.scheduler.instance")};
var Gu=function(a,b){(0,window.isNaN)(b)&&(b=void 0);var c=t("yt.scheduler.instance.addJob");return c?c(a,0,b):void 0===b?(a(),window.NaN):Ai(a,b||0)};
var Hu=function(a){var b=t("yt.scheduler.instance.cancelJob");b?b(a):Di(a)};
var Iu=function(){var a=t("yt.scheduler.instance.start");a&&(Di(Ju),a())};
var Ku=function(){var a=t("yt.scheduler.instance.pause");a&&(a(),Di(Ju),Ju=Ai(Iu,800))};
var Lu=function(a,b){this.version=a;this.args=b};
var Mu=function(a){if(!a.ae){var b={};a.call(b);a.ae=b.version}return a.ae};
var Nu=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=Mu(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;}};
var Ou=function(a,b){this.topic=a;this.o=b};
var Pu=function(a,b){var c=Qu,d=Ru();if(!d)return 0;var e=d.subscribe(c.toString(),function(d,k){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var l=function(){if(Su[e])try{if(k&&c instanceof Ou&&c!=d)try{k=Nu(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){Fi(l)}};
Tu[c.toString()]?Fu()?Gu(l,void 0):Ai(l,0):l()}});
Su[e]=!0;Uu[c.toString()]||(Uu[c.toString()]=[]);Uu[c.toString()].push(e);return e};
var Vu=function(a,b){var c=Pu(function(d){a.apply(b,arguments);Wu(c)},b);
return c};
var Wu=function(a){var b=Ru();b&&(fa(a)&&(a=[a]),F(a,function(a){b.unsubscribeByKey(a);delete Su[a]}))};
var Ru=function(){return t("yt.pubsub2.instance_")};
var Xu=function(a){Lu.call(this,1,arguments);this.o=a};
var Yu=function(a,b,c){Zu(c)[a]=b||I();b||$u(a);b=zi("TIMING_ACTION");a=Zu(c);if(t("yt.timing.ready_")&&b&&a._start&&av(c)){b=!0;var d=zi("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)&&bv(c)}};
var cv=function(a,b){var c=Zu(b);return a in c};
var dv=function(a,b,c){ev(c).info[a]=b};
var fv=function(a){gv(a);hv();q("yt.timing.pingSent_",!1,void 0)};
var av=function(a){a=Zu(a);if(a.aft)return a.aft;for(var b=zi("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return window.NaN};
var iv=function(a){return Math.round(jv.timing.navigationStart+a)};
var kv=function(a){var b=window.location.protocol,c=jv.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=iv(d.startTime),a.wfce=iv(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=iv(c.startTime),a.wffe=iv(c.responseEnd))};
var bv=function(a){var b=Zu(a),c=ev(a).span,d=ev(a).info,e=t("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))lv(e),fv(a)}else{e={v:2,s:zi("CSI_SERVICE_NAME","youtube"),action:zi("TIMING_ACTION")};if(jv.now&&jv.timing){var f=jv.timing.navigationStart+jv.now(),f=Math.round(I()-f);d.yt_hrd=f}var f=zi("TIMING_INFO")||{},k;for(k in f)d[k]=f[k];k=d.srt;delete d.srt;var l;k||0===k||(l=jv.timing||{},k=Math.max(0,l.responseStart-l.navigationStart),(0,window.isNaN)(k)&&d.pt&&(k=d.pt));if(k||0===k)d.srt=k;
d.h5jse&&(f=window.location.protocol+t("ytplayer.config.assets.js"),(f=jv.getEntriesByName?jv.getEntriesByName(f)[0]:null)?d.h5jse=Math.round(d.h5jse-f.responseEnd):delete d.h5jse);b.aft=av(a);f=b._start;if("cold"==d.yt_lt){l||(l=jv.timing||{});var m;a:if(m=l,m.msFirstPaint)m=Math.max(0,m.msFirstPaint);else{var p=window.chrome;if(p&&(p=p.loadTimes,ha(p))){var p=p(),u=1E3*Math.min(p.requestTime||window.Infinity,p.startLoadTime||window.Infinity),u=window.Infinity===u?0:m.navigationStart-u;m=Math.max(0,
Math.round(1E3*p.firstPaintTime+u)||0);break a}m=0}0<m&&m>f&&(b.fpt=m);m=c||ev(void 0).span;p=l.redirectEnd-l.redirectStart;0<p&&(m.rtime_=p);p=l.domainLookupEnd-l.domainLookupStart;0<p&&(m.dns_=p);p=l.connectEnd-l.connectStart;0<p&&(m.tcp_=p);p=l.connectEnd-l.secureConnectionStart;l.secureConnectionStart>=l.navigationStart&&0<p&&(m.stcp_=p);p=l.responseStart-l.requestStart;0<p&&(m.req_=p);p=l.responseEnd-l.responseStart;0<p&&(m.rcv_=p);jv.getEntriesByType&&kv(b)}(l=zi("PREVIOUS_ACTION"))&&(d.pa=
l);d.p=zi("CLIENT_PROTOCOL")||"unknown";d.t=zi("CLIENT_TRANSPORT")||"unknown";window.navigator&&window.navigator.sendBeacon&&(d.ba=1);for(var v in d)"_"!=v.charAt(0)&&(e[v]=d[v]);b.ps=I();d={};v=[];for(var z in b)"_"!=z.charAt(0)&&(m=Math.max(Math.round(b[z]-f),0),d[z]=m,v.push(z+"."+m));e.rt=v.join(",");b=e;z=[];for(var x in c)"_"!=x.charAt(0)&&z.push(x+"."+c[x]);b.it=z.join(",");(x=t("ytdebug.logTiming"))&&x(e,d,c);fv(a);zi("EXP_DEFER_CSI_PING")?(mv(),q("yt.timing.deferredPingArgs_",e,void 0),a=
Ai(mv,0),q("yt.timing.deferredPingTimer_",a,void 0)):lv(e);a=new Xu(d.aft+(k||0));c=Qu;(e=Ru())&&e.publish.call(e,c.toString(),c,a)}};
var lv=function(a){if(zi("DEBUG_CSI_DATA")){var b=t("yt.timing.csiData");b||(b=[],q("yt.timing.csiData",b,void 0));b.push({page:window.location.href,time:new Date,args:a})}zi("EXP_DEFER_CSI_PING")&&(Di(t("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",b="",d;for(d in a)b+="&"+d+"="+a[d];a=c+"?"+b.substring(1);b=zi("CSI_LOG_WITH_YT")?"/csi_204?"+b.substring(1):null;window.navigator&&
window.navigator.sendBeacon?(cq(a),b&&cq(b)):(aq(a),b&&aq(b));q("yt.timing.pingSent_",!0,void 0)};
var mv=function(a){if(zi("EXP_DEFER_CSI_PING")){var b=t("yt.timing.deferredPingArgs_");b&&(a&&(b.yt_fss=a),lv(b))}};
var Zu=function(a){return ev(a).tick};
var ev=function(a){return t("ytcsi."+(a||"")+"data_")||gv(a)};
var gv=function(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};
var nv=function(a,b,c){this.errorCode=a;this.o=b;this.details=c||{}};
var ov=function(a){var b,c;for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""};
var pv=function(a){return(a=a.exec(oc))?a[1]:""};
var Ht=function(a){return 0<=Sa(qv,a)};
var rv=function(){};
var tv=function(){this.buffered=new rv};
var uv=function(a,b){this.C=a;this.o=!!b;this.B=!1;this.A={}};
var vv=function(a){return a.o?a.C:Ug(a.C,a.A)};
var wv=function(a,b){this.A=a;this.B=b;this.C=0;Object.defineProperty(this,"timestampOffset",{get:this.CC,set:this.GC});Object.defineProperty(this,"buffered",{get:this.AC})};
var xv=function(){this.length=0};
var yv=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.o=a;this.A=window.NaN;this.B=0;Object.defineProperty(this,"duration",{get:this.BC,set:this.FC});Object.defineProperty(this,"readyState",{get:this.DC});this.o.addEventListener("webkitsourceclose",A(this.EC,this),!0)};
var zv=function(a){G.call(this);this.M=[];this.Ia=a||this};
var Av=function(a,b,c,d){for(var e=0;e<c.length;e++)S(a,b,c[e],d)};
var S=function(a,b,c,d,e){d=Bi(A(d,e||a.Ia));b.addEventListener(c,d);b={target:b,name:c,Oh:d};a.M.push(b);return b};
var Bv=function(a){for(;a.M.length;){var b=a.M.pop();b.target.removeEventListener(b.name,b.Oh)}};
var Cv=function(a,b,c,d,e){zv.call(this);this.A=this.o=null;this.C=b;this.B=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new yv(a);this.F=this.D=this.G=null;this.H=d;this.L=c;this.S=e;Av(this,this.B,["sourceopen","webkitsourceopen"],this.K);Av(this,this.B,["sourceclose","webkitsourceclose"],this.J)};
var Dv=function(a,b){a.D=b};
var Ev=function(a,b){a.F=b};
var Fv=function(a){if(!a.G){var b;b=a.B;b=b.HE?b.o.webkitMediaSourceURL:window.URL.createObjectURL(b);a.G=new uv(b,!0)}return a.G};
var Gv=function(a){try{return"open"==a.B.readyState}catch(b){return!1}};
var Hv=function(a){try{return"closed"==a.B.readyState}catch(b){return!0}};
var Iv=function(a){return a.o.updating||a.A.updating};
var Jv=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
var Kv=function(a){return a.o?!!a.o.appendBuffer:Jv()};
var Lv=function(a){if(/opus/.test(a)&&(Fl&&!Ht("38")||rt()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!pt())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!vt().canPlayType(a)};
var Mv=function(a){this.hc=a};
var Nv=function(a,b){this.A=a;this.C=b;this.B={};this.o=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null};
var Ov=function(a,b){if(2.2!=Pv&&wt(a.A))return[];for(var c={},d=vt(),e=0;e<b.length;e++){var f=b[e];if(jr(f.hc)in Qv||"5"==jr(f.hc)?0:Rv(d,f.hc.mimeType)){var k=f.hc.video.quality;c[k]&&2!=c[k].hc.A||(c[k]=f)}}var l=[];c.auto&&l.push(c.auto);F(pr,function(a){(f=c[a])&&l.push(f)});
return l};
var Rv=function(a,b){var c=a.canPlayType(b);Sv?c=c||Tv[b]:2.2==Pv?c=c||Uv[b]:lt()&&(c=c||Vv[b]);return!!c};
var Wv=function(){var a=lt()&&!Ht(29),b=mt("google tv")&&mt("chrome")&&!Ht(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
var Xv=function(a,b){var c={},d;for(d in b.o){var e=b.o[d],f;a:{f=a;var k=e.info;if(k.id!=(0).toString()||f.A){var l=k.mimeType,m={};k.video&&(k.video.width&&(m[Yv.name]=k.video.width),k.video.height&&(m[Zv.name]=k.video.height),k.video.fps&&(m[$v.name]=k.video.fps),k.o&&(m[aw.name]=8*k.o));k.audio&&k.audio.o&&(m[bw.name]=k.audio.o);k=m;m=void 0;for(m in cw){var p=cw[m];if(k[p.name]&&dw(f,p))if(f.o){if(f.o[p.name]<k[p.name]){f=!1;break a}}else l=l+"; "+p.name+"="+k[p.name]}f=Lv(l)}else f=!0}f&&(c[e.info.B]=
c[e.info.B]||[],c[e.info.B].push(e.info))}return c};
var ew=function(a,b,c){var d={},e;Ob(b,function(a,b){var l=a.filter(function(a){return a.ee?c&&a.ee[c.A]&&c.C[a.mimeType]&&(261!=jr(a)||(e||(e=vt()),e.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))?!0:!1:!0},this);
l.length&&(d[b]=l)},a);
return d};
var fw=function(a,b,c,d){function e(a){return!!f[a]}
var f=Xv(a,b);at(b)&&(f=ew(a,f,c));c=gw;if(!a.A)c=hw;else if(mt("cros armv7")||mt("windows nt 5.1"))c=iw;b=jw;d&&(a.A&&(c=iw),b=kw);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=me(f["9"],c,0);me(f.h,c,0)>1.5*k&&(d="h")}c=f[d];k=f[b];c=lw(a,c);mw(c,k);return new bu(c,k,nw(a,f,d,b))};
var nw=function(a,b,c,d){var e=b.h;b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=lw(a,e),mw(e,b),new bu(e,b)):null};
var mw=function(a,b){Bb(a,function(a,b){return b.video.width-a.video.width||b.o-a.o});
Bb(b,function(a,b){return b.o-a.o})};
var lw=function(a,b){var c=Ih(b,function(a){return 32<a.video.fps});
c&&(b=a.C||dw(a,$v)?$d(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):$d(b,function(a){return!(32<a.video.fps)}));
c&&ot()&&(b=$d(b,function(a){return 299!=jr(a)}));
return b};
var dw=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"',Lv(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',Lv(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=Lv(e+"; "+b.name+"="+b.valid)&&!Lv(e+"; "+b.name+"="+b.Lg));c[d]=e}return a.B[b.name]};
var ow=function(a,b){this.A=a;this.o=b;this.B=0};
var pw=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)};
var qw=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.Nn=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.o=m||""};
var rw=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 qw(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};
var tw=function(a,b){this.hc=a;this.B=b;this.o=null};
var uw=function(a,b,c,d,e,f,k,l,m){c=new hr(c,"application/x-mpegURL",new gr,new or(d,e,f,null,void 0,k),void 0,m);a=new ow(a,b);a.B=l?l:1369843;return new tw(c,a)};
var vw=function(a,b,c){if(!Sv&&!qt())return[];b=rw(b);if(!b)return[];var d={qJ:"https://youtube.com/api/drm/fps?ek=uninitialized"},e,f=[],k=[],l=[],m;for(m in b){var p=b[m];if(p.width){var u=b[p.audioItag];u&&(f.push(p),e="fairplay"==p.o?d:null,l.push(uw([u],[p],p.itag,p.width,p.height,p.fps,void 0,void 0,e)))}else k.push(p)}e=l.reduce(function(a,b){return!!b.hc.ee&&a},!0)?d:null;
l.push(uw(k,f,"93",0,0,0,"auto",c,e));return Ov(a.F,l)};
var ww=function(a,b){this.hc=a;this.o=b};
var xw=function(a,b,c,d,e,f,k){var l=new gr;c in qr||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=qr[c],e=Math.round(16*f/9));c=new or(e,f,0,null,void 0,c,k);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new ww(new hr(d,b,l,c),a)};
var yw=function(a){var b=[];F(a,function(a){a.url&&b.push(xw(a.url,a.type,"medium","0"))});
return b};
var zw=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||cr(e.s);e.url=rj(e.url,{signature:f})}e.url&&c.push(xw(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isFastLoad))}return Ov(a.F,c)};
var Aw=function(a){Rj.call(this);this.ie=new re(0,0);this.Va=this.Y=this.la=!1;this.ac="";this.Ob=this.qb=!1;this.ab={};this.captionTracks=[];this.Ea=[];this.tb=0;this.captionTranslationLanguages=[];this.Ga=!1;this.U=new Ut("und",new nr("Default","und",!0));this.La=0;this.he=this.Cd=!1;this.J=null;this.ge=new Ud(this.Cq,5E3,this);H(this,this.ge);this.K=[];this.C={};this.keywords={};this.D={};Bw(this,a)};
var Cw=function(a,b){var c=b||{};c.iv_invideo_url&&(a.af=$p(c.iv_invideo_url));c.iv_ads_only&&(a.An="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.gb=c.cta_conversion_urls);a.isPharma=yu(a.isPharma,c.is_pharma);a.author=Bu(a.author,c.author);a.Qh=yu(a.Qh,c.cc_asr);var d=c.ttsurl;Dw.test(d)?a.Rh=d:d&&(d=Zp(d),Dw.test(d)&&(a.Rh=d));c.caption_tracks&&c.caption_audio_tracks&&(Ew(a,c.caption_tracks),a.Ea=pj(c.caption_audio_tracks),c.default_audio_track_index&&(a.tb=(0,window.parseInt)(c.default_audio_track_index,
10)||0),c.caption_translation_languages&&Fw(a,c.caption_translation_languages));a.Ga=yu(a.Ga,c.cc_contribute);a.clientPlaybackNonce=Bu(a.clientPlaybackNonce,c.cpn);a.subscribed=Bu(a.subscribed,c.subscribed);a.sentiment=zu(a.sentiment,c.sentiment,Gw);a.title=Bu(a.title,c.title);a.ypcPreview=Bu(a.ypcPreview,c.ypc_preview);a.ypcOrigin=Bu(a.ypcOrigin,c.ypc_origin);a.paygated=yu(a.paygated,c.paygated);a.requiresPurchase=yu(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=Hw(c.keywords));
c.rvs&&(a.G=pj(c.rvs));a.contentCheckOk=yu(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=yu(a.racyCheckOk,"1"==c.rco);a.oauthToken=Bu(a.oauthToken,c.oauth_token);a.visitorData=Bu(a.visitorData,c.visitor_data);c.session_data&&(a.aa=mj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Yb=mj(c.endscreen_autoplay_session_data,"&"));a.$a=Bu(a.$a,c.tv_list);a.L=zu(a.L,c.beyond_config,Iw);F(Aw.G,function(a){a in c&&(this.C[a]=c[a])},a)};
var Bw=function(a,b){var c=b||{};a.Dd="1"!=c.hlsdvr?!1:Wv()?!0:Jw&&5>Kw?!1:!0;a.Ze=c.ad_query_id;a.$e=c.agcid;a.Kh="1"==c.infringe||"1"==c.muted;a.nb=c.authkey;a.zb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||wu());a.Ym=I();a.pk=yu(a.pk,c.cenchd);a.enableCardio=yu(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=yu(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.ff=Au(a.ff,c.end||c.endSeconds);a.Ia=Bu(a.Ia,c.itct);a.il=yu(a.il,c.noiba);a.Af="1"==c.livemonitor;
a.Fa="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=yu(a.isMdxPlayback,c.mdx);a.nl=yu(a.nl,c.reload);a.pl=yu(a.pl,c.utpsa);a.Nb=c.cyc;for(var d in Aw.A){var e=c[d+"_webp"]||c[d];Lw.test(e)&&(a.ab[Aw.A[d]]=e)}a.M=Bu(a.M,c.vvt);a.ig=c.osig;a.ad=c.ptchn;a.bd=c.oid;a.Z=c.ptk;a.zd=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.eventId&&cb(/^[A-Za-z0-9_-]*=*/g.test(a.eventId));
a.osid=c.osid;a.jv=c.vm;a.Vu=c.of;a.playlistId=Bu(a.playlistId,c.list);a.Bd=c.pyv_view_beacon_url;a.kg=c.pyv_quartile25_beacon_url;a.lg=c.pyv_quartile50_beacon_url;a.mg=c.pyv_quartile75_beacon_url;a.jg=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.oe=c.sdetail;!a.va&&c.session_data&&(a.va=mj(c.session_data,"&").feature);a.isFling=1==Au(a.isFling?1:0,c.is_fling);a.vnd=Au(a.vnd,c.vnd);a.ea=Bu(a.ea,
c.ctrl);a.ga=Bu(a.ga,c.ytr);a.ha=c.ytrcc;a.Yg=Eu(a.Yg,c.vq);a.eh=Eu(a.eh,c.suggestedQuality);a.da=c.approx_threed_layout||0;a.qe=yu(a.qe,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=Bu(a.vssCredentialsToken,c.vss_credentials_token);a.nm=Bu(a.nm,c.vss_credentials_token_type);Mw(a,c.watermark);a.ypcGid=Bu(a.ypcGid,c.ypc_gid);a.heartbeatToken=Bu(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=Au(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=
Au(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=yu(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.K.push("ad")):"1"!=c.supported_without_ads&&(a.po=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ia=c.atc);c.license_info&&(a.Cm=Nw(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.bl="1"==
c.autonav);c.autoplay&&(a.zf="1"==c.autoplay);c.iv_load_policy&&(a.Ca=zu(a.Ca,c.iv_load_policy,Ow));c.cc_lang_pref&&(a.ke=Bu(c.cc_lang_pref,a.ke));c.cc_load_policy&&(a.ne=zu(a.ne,c.cc_load_policy,Ow));c.channel_path&&(a.Sh=Bu(c.channel_path,a.Sh));"0"==c.dash&&(a.Pn=!0);c.dashmpd&&(a.H=Ug(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.H))&&(e=cr(e[1]),a.H=a.H.replace(d,"/signature/"+e));c.delay&&(a.Se=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.To="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.K.push("fresca");c.idpj&&(a.rj=Ya(c.idpj));c.ismb&&(a.kh=Ya(c.ismb));c.is_episodic&&(a.fl="1"==c.is_episodic);c.is_listed&&(a.isListed=yu(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.Uf=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));if(c.live_chunk_readahead||
c.hls_live_chunk_readahead)a.ql=Au(a.ql,c.live_chunk_readahead||c.hls_live_chunk_readahead);c.live_start_walltime&&(a.liveStartWalltime=Ya(c.live_start_walltime));c.ldpj&&(a.Dm=Ya(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Jh=a.perceptualLoudnessDb?Math.pow(10,Math.min(Aw.D-a.perceptualLoudnessDb,0)/20):Aw.o);c.partnerid&&(a.V=Ya(c.partnerid));c.probe_url&&(a.probeUrl=$p(Ug(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=Bu(c.profile_picture,a.profilePicture));
c.pyv_billable_url&&Pw.test(c.pyv_billable_url)&&(a.na=c.pyv_billable_url);c.pyv_conv_url&&Pw.test(c.pyv_conv_url)&&(a.qa=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Oa=d.quartile_0_url,a.vc=d.quartile_25_url,a.wc=d.quartile_50_url,a.xc=d.quartile_75_url,a.uc=d.quartile_100_url);"1"==c.spacecast_module&&(a.K.push("spacecast"),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=Au(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||
a.Fa||(a.clipStart=c.start);c.two_stage_token&&(a.sj=c.two_stage_token);c.url_encoded_third_party_media&&(a.Rf=pj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.K.push("ypc");c.ypc_clickwrap_module&&a.K.push("ypc_clickwrap");a.Rj=Bu(a.Rj,c.ucid);F("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.D[a]=c[a])},a);
a.D.focEnabled=yu(a.D.focEnabled,c.focEnabled);a.D.rmktEnabled=yu(a.D.rmktEnabled,c.rmktEnabled);a.C=c;Cw(a,c);Qw(a);c.adpings&&(a.je=c.adpings?oj(c.adpings):null);c.feature&&(a.pe=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q)};
var Rw=function(a){return I()>a.Ym+1E3*Aw.F};
var Sw=function(a){return!(!a.B||!a.B.videoInfos.length)};
var Qw=function(a){Tw(a)||(a.adaptiveFormats?(a.o=bt(Uw(a,a.adaptiveFormats),a.Cm,a.lengthSeconds),at(a.o)&&(a.Y=!0)):a.H&&(a.la=!0))};
var Tw=function(a){return!Wv()||a.Pn?!0:!1};
var Vw=function(a){a.isDisposed()||(a.Od=!1,a.P("dataloaded",a.C))};
var Ww=function(a,b){if(!a.isDisposed()){a.B=null;a.Hf=null;a.O=null;var c=Tw(a)||b.kl;if(!c&&a.spacecastAdaptiveFormats)a.o=bt(Uw(a,a.spacecastAdaptiveFormats),a.Cm,a.lengthSeconds),a.B=fw(b.F,a.o,a.J,!0);else if(a.spacecastFormatMap){var d=Uw(a,a.spacecastFormatMap);a.O=zw(b,d);a.B=new bu(O(a.O,function(a){return a.hc}))}if(a.B){var e,f=0;
O(a.B.videoInfos,function(a){!e&&a.video.o&&f<a.video.height&&(e=a.video.quality,f=a.video.height)});
e&&(d=Wt(e,e,!0),a.Yg=d,a.eh=d)}a.B||c||!a.o||(b.K||kt(a.o,a.Fa),a.B=fw(b.F,a.o,a.J));a.B||(a.O=Xw(a,b),a.O.length&&(a.B=new bu(O(a.O,function(a){return a.hc}))));
Yw(a)}};
var Xw=function(a,b){if(a.hlsFormats){var c=Uw(a,a.hlsFormats),c=vw(b,c,a.kh);if(c.length)return c}if(a.Rf&&a.Xo)return c=yw(a.Rf),Ov(b.F,c);c=Uw(a,a.Uf,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.kh,f={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(f.ibw=e?String(e):"1369843");d={url:Ug(d,f),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return zw(b,c)};
var Zw=function(a){return a.A&&a.A.ee||null};
var $w=function(a){a.nj||(a.C.storyboard_spec?a.nj=new ou(a.C.storyboard_spec,a.lengthSeconds):a.C.live_storyboard_spec&&a.o&&(a.nj=new qu(a.C.live_storyboard_spec,a.o)));return a.nj};
var ax=function(a){var b=$w(a);!a.bj&&b&&(a.bj=new gu(b),H(a,a.bj));return a.bj};
var bx=function(a){return a.o&&!(0,window.isNaN)(it(a.o))?it(a.o):0};
var cx=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.Rf)};
var dx=function(a){return!!(a.o||a.Uf||a.Rf||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
var ex=function(a){var b=E(a.K,"ypc");a.ypcPreview&&(b=!1);return cx(a)&&!a.Od&&!a.la&&!a.Y&&(dx(a)||E(a.K,"fresca")||b)};
var Uw=function(a,b,c){b=pj(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=Ug(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b};
var Hw=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};
var Mw=function(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Ua=c[1],Lw.test(a.Ua)&&-1==a.Ua.search(Aw.H)||(a.Ua=""))}};
var Nw=function(a){a=pj(a);var b={};F(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});
return b};
var Ew=function(a,b){for(var c=pj(b),d=0;d<c.length;d++){var e=c[d],f=e.u;Dw.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 Qt(f)))}};
var Fw=function(a,b){for(var c=pj(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new Pt({languageCode:e.lc,languageName:e.n}))}};
var Yw=function(a){for(var b=a.B?a.B.audioTracks:[],b=b.concat(a.U),c=0;c<a.Ea.length;c++)for(var d=a.Ea[c],e=0;e<b.length;e++){var f=b[e],k=f.Hb.id==d.aid;if(f==a.U&&c==a.tb||k){if(d.i)for(var k=d.i.split(","),l=0;l<k.length;l++)f.captionTracks[l]=a.captionTracks[(0,window.parseInt)(k[l],10)];d.d&&(f.mk=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.zg=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.Gn=(0,window.parseInt)(d.v,10)}}};
var fx=function(a,b){return!!a.C[b]};
var gx=function(a){return a.Fa&&!a.Dd};
var hx=function(a){return a.Fa&&a.Dd};
var ix=function(a){if(a.da||a.Rc["3D"])return!0;a=a.Rc("yt3d:enable");return"true"==a||"LR"==a||"RL"==a};
var jx=function(a){Rj.call(this);this.startSeconds=0;this.L=!1;this.o=0;this.title="";this.B=0;this.A=[];this.J=this.F=!1;this.aa=this.Yb=this.G=null;this.views=0;this.V=0!=a.fetch;this.C=[];this.o=Math.max(0,a.index||0);this.H=!!a.loop;this.startSeconds=a.startSeconds||0;this.U="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.O={};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.K=0;if(a.list)switch(a.listType){case "user_uploads":kx(this,a.list);break;case "user_favorites":lx(this,a.list);break;case "search":mx(this,a.list);break;default:a.playlist_length&&(this.B=a.playlist_length),this.D=br(a.list),a.video?(this.A=a.video.slice(0),this.F=!0):nx(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=O(this.A,function(a){return a.video_id});
ox(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 Aw.A)b="playlist_"+c,b=a[b+"_webp"]||a[b],Lw.test(b)&&(this.O[Aw.A[c]]=b);this.M=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
var px=function(a){return!!(a.playlist||a.list||a.api)};
var qx=function(a,b){var c=a.o+1;c>=a.B&&(c=a.H||b?0:-1);return c};
var rx=function(a,b){var c=a.o-1;0>c&&(c=a.H||b?a.B-1:-1);return c};
var sx=function(a,b){var c=qx(a,b);if(-1==c)return null;tx(a,c);return a.rb(c)};
var ux=function(a,b){var c=rx(a,b);if(-1==c)return null;tx(a,c);return a.rb(a.o)};
var tx=function(a,b){a.o=ke(b,0,a.B-1);a.startSeconds=0};
var kx=function(a,b){a.J||(a.D=new ar("UU","PLAYER_"+b),ox(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
var lx=function(a,b){a.J||(a.D=new ar("FL","PLAYER_"+b),ox(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
var mx=function(a,b){if(!a.J){a.D=new ar("SR",b);var c={search_query:b};a.U&&(c.mob="1");ox(a,"/search_ajax?style=json&embeddable=1",c)}};
var nx=function(a){if(!a.J){var b={list:a.D},c=a.rb();c&&c.videoId&&(b.v=c.videoId);ox(a,"/list_ajax?style=json&action_get_list=1",b)}};
var ox=function(a,b,c){a.V&&Bj(Ug(b,c),{format:"JSON",kb:function(a,b){vx(this,b)},
onError:function(){this.P("error")},
context:a})};
var vx=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.H=b.loop);var c=a.rb();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:wx(a,c);a.setShuffle(!1);a.J=!1;a.F=!0;a.K++;a.G&&a.G()}};
var wx=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}}};
var xx=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};
var yx=function(a){return(!fa(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
var zx=function(a){return px(a)?(a.fetch=0,new jx(a)):new Aw(a)};
var Ax=function(a,b,c,d){var e=b.rb();L(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Te();d=b.Bc(c,d?d:"mqdefault.jpg");var k=b instanceof Aw?xx(b.lengthSeconds):null,l=!!f,f=l&&"RD"==br(f).type;c={title:b.title,author:b.author,watch:P("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.Bk(c),episodic_title:b.title,is_episodic:e.fl,is_featured:e.To,is_list:l,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof jx&&(c.playlist_length=b.B,c.episodic_length=
b.B,c.episodic_index=b.o);a.update(c)};
var Bx=function(a){var b=["div","ytp-upnext",{"aria-label":"{{watch}}"},["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"],["span","ytp-upnext-top",["span","ytp-upnext-header",P("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",P("YTP_AUTOPLAY_PAUSED_2")]],
["span","ytp-upnext-close"]];Q.call(this,b);var c=this.ra["ytp-upnext-cancel"],b=this.ra["ytp-upnext-close"],d=new Q(["button",["ytp-upnext-cancel-button","ytp-button"],{tabindex:0,"aria-label":P("YTP_AUTOPLAY_CANCEL")},P("YTP_CANCEL")]);H(this,d);d.R("click",this.Ps,this);d.o(c);c=new Q(["button",["ytp-upnext-close-button","ytp-button"]]);H(this,c);c.R("click",this.Ps,this);c.o(b);b=this.ra["ytp-upnext-autoplay-icon"];b.innerHTML='<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.C=a;this.G=$e("ytp-svg-autoplay-ring",this.element);this.A=this.D=null;this.F=0;R(this,b,"click",this.OF);this.up();R(this,a,"autonavvisibility",this.up)};
var Cx=function(a){a.A||(Pi("a11y-announce",P("YTP_PLAYLIST_UP_NEXT")+" "+a.D.title),a.F=$s(),a.A=new Ud(a.Xm,25,a),a.Xm());Zd(a.element,"ytp-upnext-autoplay-paused")};
var Dx=function(a){Ex(a);a.F=$s();a.Xm();K(a.element,"ytp-upnext-autoplay-paused")};
var Ex=function(a){a.A&&(a.A.dispose(),a.A=null)};
var Fx=function(a,b){Q.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=0;this.J=null};
var Gx=function(a){var b=a.W().experiments.ma("video_wall_redesign");Q.call(this,["a","videowall-still",{tabindex:null,href:"{{url}}","aria-label":"{{watch}}","data-is-episodic":"{{is_episodic}}","data-is-featured":"{{is_featured}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},["div",b?"ytp-redesign-videowall-still-image":"videowall-still-image",{style:"{{background}}"}],["span","videowall-still-featured-label",P("YTP_FEATURED")],["span",b?"ytp-redesign-videowall-still-info":"videowall-still-info",
["span",b?"ytp-redesign-videowall-still-info-bg":"videowall-still-info-bg",["span",b?"ytp-redesign-videowall-still-info-content":"videowall-still-info-content",["span",b?"ytp-redesign-videowall-still-info-title":"videowall-still-info-title","{{title}}"],["span",b?"ytp-redesign-videowall-still-info-author":"videowall-still-info-author","{{author}}"],["span",b?"ytp-redesign-videowall-still-info-duration":"videowall-still-info-duration","{{duration}}"]]]],["div",["videowall-still-listlabel-episodic",
b?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",P("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",b?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],
["span","videowall-still-listlabel-icon"],P("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix",b?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],P("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.C=a;this.A=null;this.R("click",this.D);this.R("keypress",this.F)};
var Hx=function(a,b,c){Hq.call(this,a,b,"videowall-endscreen");this.Y=c;this.H=0;this.D=[];this.G=this.C=null;this.L=this.U=!1;this.M=new Ud(pa(K,this.element,"ytp-show-tiles"),0);H(this,this.M);if(b=this.A.W().experiments.ma("video_wall_pagination"))c=new Q(["button",["ytp-button","ytp-endscreen-previous"],{"aria-label":P("YTP_PREVIOUS")}]),H(this,c),c.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>',
c.o(this.element),c.R("click",this.Qy,this);this.S=new wq(["div","ytp-endscreen-content"]);H(this,this.S);this.S.o(this.element);b&&(b=new Q(["button",["ytp-button","ytp-endscreen-next"],{"aria-label":P("YTP_NEXT")}]),H(this,b),b.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>',b.o(this.element),b.R("click",this.Py,this));this.A.W().experiments.ma("video_wall_redesign")&&
K(this.element,"ytp-endscreen-redesign");this.F=new Bx(a);H(this,this.S);Uq(this.A,this.F.element,4);this.fa();this.R("transitionend",this.yd)};
var Ix=function(a){return Jx(a.A.W(),a.A.getVideoData(),a.A.$b())&&a.Lh()&&!a.G};
var Kx=function(a,b,c,d){return 0==b&&c>=3*Hx.o&&d>=3*Hx.o&&a.C.length&&zx(a.C[0]).rb().fl?2*Hx.o:Hx.o};
var Lx=function(a){var b=Mx(a.Y);b!=a.U&&(a.U=b,a.A.app.Pa("autonavvisibility"))};
var Nx=function(a){mq.call(this,a);Gi({});this.sa="endscreen";this.H="end";this.A=null;var b=a.W();Ox(a)?this.A=new Hx(this.o,this.S,this):b.Z?this.A=new Tq(this.o,this.S):this.A=new Hq(this.o,this.S);Uq(this.o,this.A.element,4)};
var Px=function(a){var b=a.getVideoData(),b=b&&b.Fa;return Qx(a.W())&&1==a.getPresentingPlayerType()&&!b};
var Rx=function(a){var b=a.o.getVideoData(),c=!Ox(a.o)||!(!b.G||!b.G.length);a.o.W();b=fx(b,"ypc_module");a=Sx(a.o.app);return c&&!b&&!a};
var Ox=function(a){a=a.W();return a.vc&&!a.Z};
var Mx=function(a){return a.A instanceof Hx&&a.A.B&&Ix(a.A)};
var Tx=function(a){var b=Math.max(1E3*(a.o.getVideoData().lengthSeconds-10),0),b=new iq(b,0x8000000000000,{id:"preload"}),c=new iq(0x8000000000000,0x8000000000000,{id:"load",priority:6});a.ib([b,c])};
var Ux=function(a){return Px(a)?new Nx(a):null};
var Vx=function(a){return(a=Wx[a.toString()])?a:"YTP_ERROR_LICENSE"};
var Xx=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
var Yx=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};
var Zx=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};
var $x=function(a,b){var c=Zx(a,b);return 0<=c?a.end(c):window.NaN};
var ay=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
var by=function(a,b){var c=$x(a,b);return 0<=c?c-b:0};
var cy=function(){};
var dy=function(a){var b=a.duration||0;return window.Infinity==b?1:b?(0<ay(a.buffered)&&a.duration?$x(a.buffered,a.currentTime):0)/b:0};
var Zq=function(a){a.src&&(Sv&&0<a.readyState&&(a.currentTime=Math.max(ey,0)),a.removeAttribute("src"),a.load(),!a.Xe||!a.Xe.o||a.Xe&&a.Xe.equals(null)||(a.Xe&&a.Xe.dispose(),a.Xe=null))};
var fy=function(a,b){a.defaultPlaybackRate=b;a.playbackRate=b};
var gy=function(a,b){this.A=a||64;this.o=b||null};
var hy=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)&&iy(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:P("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(f=b,e|=128)}else if("progress"==b.type)jy(a)&&iy(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=ky(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=iy(c,k)?e|1:e&-2),1<k.o.readyState&&
0<k.getCurrentTime()&&(e&=-65);else return a;return ly(a,e,f)};
var iy=function(a,b){return a?my(a,b.getCurrentTime(),$s(),ky(b)):!1};
var ly=function(a,b,c){return b==a.A&&c==a.o||b&128&&!c||b&2&&b&16?a:new gy(b,c)};
var ny=function(a,b){return ly(a,a.A|b)};
var oy=function(a,b){return ly(a,a.A&~b)};
var py=function(a){return ly(a,(a.A|4)&-9)};
var T=function(a,b){return!!(a.A&b)};
var jy=function(a){return T(a,8)&&!T(a,2)};
var qy=function(a){return T(a,64)&&!T(a,8)&&!T(a,4)};
var ry=function(a){return T(a,1)&&!T(a,2)};
var sy=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};
var ty=function(a,b,c){Rj.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.Ax,clientVersion:c.innertubeContextClientVersion,hl:c.Cx,gl:c.Bx}},videoId:a});this.J="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.A=new Ud(A(this.D,this));H(this,this.A);this.D()?this.A.start(this.o):this.A.start(1E4)};
var uy=function(a){var b=window.location;a=Ug(a,{})+"";a=a instanceof He?a:Ke(a);b.href=Je(a)};
var vy=function(a,b){var c=zi("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=zi("VALID_SESSION_TEMPDATA_DOMAINS",[]);d.push(Lg(window.location.href));var e=Lg(a);if(E(d,e)||!e&&ta(a,"/"))if(d=Ig(a),d=Hg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e))d=zi("SMALLER_SESSION_TEMPDATA_NAME")?"ST-"+Va(d).toString(36):"s_tempdata-"+Va(d),c=c?Sg(c):"",ik(d,c,5)}};
var wy=function(a,b){window.open(a,b||Va(a).toString(36))};
var yy=function(a){var b=!a.W().va&&3!=a.getPresentingPlayerType();return a.Ja()||b};
var zy=function(a,b,c){if(!c&&yx(a))return Zl(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");vy(a,null);return!1};
var Ay=function(a,b,c){if(By(b.W())&&2!=b.getPresentingPlayerType()){if(yx(c))return b.Ja()&&Cy(b),Zl(c),!0}else{var d=yx(c);d&&b.pauseVideo();vy(a,null);d&&(wy(a),Zl(c))}return!1};
var Dy=function(a,b,c){var d='<svg width="100%" height="100%" viewBox="0 0 36 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="ytp-'+a+'" d="'+(c&&(wc||tc)?c:b)+'">';return d=(c?d+('<animate attributeType="XML" attributeName="d" fill="freeze" from="'+c+'" to="'+b+'" dur="0.2s" keySplines=".4 0 1 1" repeatCount="1"/>'):d+"<animate/>")+('</path></defs><use xlink:href="#ytp-'+a+'" class="ytp-svg-shadow"/><use xlink:href="#ytp-'+a+'" class="ytp-svg-fill"/></svg>')};
var Ey=function(a){Q.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.C,
this)};
var Fy=function(a){Q.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.C=a;this.D=!1};
var Gy=function(a,b){Bq(a,"suggested_sidebar_title",b.A?P("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.A}):"");var c=a.ra["ytp-fresca-suggested-sidebar-close-button"];xh(c);R(a,c,"click",a.Oy);Nb(a.A);a.A=[];F(b.o,function(a,b){if(!(5<=b)&&a){var c=new Q(["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:"+Hy(a),l=Iy(a);c.update({suggested_title:a.Or,suggested_content:Jy(a),badge_content:l,image_style:k,link_destination:a.getVideoUrl()});k=c.ra["ytp-fresca-suggested-image-badge"];L(k,"ytp-fresca-suggested-image-badge-live",a.isLive());k.style.display=l?"":"none";c.R("click",this.Ux,this);this.A.push(c)}},a);
Bq(a,"sidebar_items",a.A)};
var Ky=function(a){Q.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.F=0;this.A=null;this.G=-1;this.D=new Ey(a);H(this,this.D);this.C=new Fy(a);H(this,
this.C);this.D.fa();this.D.o(this.element);this.C.fa();this.C.o(this.element)};
var Ly=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=My(b),L(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.A.imageUrl,b=a.ra["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.H(!0),a.A.A)if(Ny(a.A.A)&&!My(a.A)){b=a.D;c=a.A.A.o[0];var d;
d=a.A.A;d=d.A?P("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.A}):"";var e="background-image:"+Hy(c);b.update({suggested_header_central:d,suggested_title:c.Or,suggested_content:Jy(c),badge_content:Iy(c),link_destination:c.getVideoUrl(),image_style:e});L(b.ra["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.D.show();a.C.fa()}else b=a.A.A,!(0<b.o.length)||Ny(b)||My(a.A)||a.C.D?a.C.fa():(Gy(a.C,a.A.A),a.C.show()),a.D.fa()};
var Oy=function(a,b,c,d,e,f){y(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)};
var Py=function(a,b,c){fa(a)?(this.date=Qy(a,b||0,c||1),Ry(this,c||1)):ia(a)?(this.date=Qy(a.getFullYear(),a.getMonth(),a.getDate()),Ry(this,a.getDate())):(this.date=new Date(I()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Ry(this,a))};
var Qy=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
var Ry=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
var Sy=function(){};
var Ty=function(a){if("number"==typeof a){var b=new Sy;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=Uy(a);b.D=[c,c];b.o={pI:a,pn:a};b.A=[];return b}b=new Sy;b.C=a.id;b.B=-a.std_offset;b.D=a.names;b.o=a.names_ext;b.A=a.transitions;return b};
var Uy=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("")};
var Vy=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]};
var Wy=function(a,b){this.A=[];this.o=b||Xy;"number"==typeof a?Yy(this,a):Zy(this,a)};
var Zy=function(a,b){for($y&&(b=b.replace(/\u200f/g,""));b;)for(var c=0;c<az.length;++c){var d=b.match(az[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}}};
var Yy=function(a,b){var c;if(4>b)c=a.o.Mj[b];else if(8>b)c=a.o.qn[b-4];else if(12>b)c=a.o.Dt[b-8],c=c.replace("{1}",a.o.Mj[b-8]),c=c.replace("{0}",a.o.qn[b-8]);else{Yy(a,10);return}Zy(a,c)};
var bz=function(a,b){var c;c=String(b);var d=a.o||Xy;if(void 0!==d.Uu){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.Uu+k-48):c.charAt(f))}c=e.join("")}return c};
var cz=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.");};
var dz=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.Ht[c]:a.o.It[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),bz(a,Pa(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.o.pu[c];break a;case 4:k=a.o.fn[c];break a;case 3:k=a.o.hn[c];break a;default:k=bz(a,Pa(c+1,k))}return k;case "k":return cz(e),bz(a,Pa(e.getHours()||24,k));case "S":return bz(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.un[c]:a.o.jn[c];case "a":return cz(e),k=e.getHours(),a.o.Zm[12<=k&&24>k?1:0];case "h":return cz(e),bz(a,Pa(e.getHours()%12||12,k));case "K":return cz(e),bz(a,Pa(e.getHours()%12,k));case "H":return cz(e),bz(a,Pa(e.getHours(),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.o.Ju[c];break a;case 4:k=a.o.nn[c];break a;case 3:k=a.o.mn[c];break a;default:k=bz(a,Pa(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.o.Iu[c];break a;case 4:k=a.o.kn[c];break a;
case 3:k=a.o.ln[c];break a;default:k=bz(a,Pa(c+1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),4>k?a.o.Cu[c]:a.o.wu[c];case "d":return bz(a,Pa(d.getDate(),k));case "m":return cz(e),bz(a,Pa(e.getMinutes(),k));case "s":return cz(e),bz(a,Pa(e.getSeconds(),k));case "v":return k=f||Ty(c.getTimezoneOffset()),k.C;case "V":return a=f||Ty(c.getTimezoneOffset()),2>=k?a.C:0<Vy(a,c)?n(a.o.Gt)?a.o.Gt:a.o.DST_GENERIC_LOCATION:n(a.o.pn)?a.o.pn:a.o.STD_GENERIC_LOCATION;case "w":return c=a.o.Pj,e=new Date(e.getFullYear(),
e.getMonth(),e.getDate()),b=a.o.Oj||0,c=e.valueOf()+864E5*(((n(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),bz(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||Ty(c.getTimezoneOffset()),4>k?a.D[0<Vy(a,c)?2:0]:a.D[0<Vy(a,c)?3:1];case "Z":return e=f||Ty(c.getTimezoneOffset()),4>k?(k=-(e.B-Vy(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=bz(a,Uy(e.B-Vy(e,c))),k;default:return""}};
var ez=function(a){this.D=a.thumbnailUrl?a.thumbnailUrl:null;this.o=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.Or=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};
var Hy=function(a){return(a=a.D)?"url("+a+")":""};
var Jy=function(a){if("COMPLETE"==a.A){var b=Math.floor(I()/1E3);a=a.o?b-a.o:0;return 172800<a?P("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?P("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(I()/1E3),a=a.o?a.o-b:0,172800<a?P("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?P("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_STREAMING_SOON")):a.B&&2<a.B?P("YTP_FRESCA_VIEWERS_WATCHING_NOW",
{VIEWER_COUNT:a.B}):P("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")};
var Iy=function(a){return"COMPLETE"==a.A&&a.C?xx(a.C):a.isLive()?P("YTP_FRESCA_LIVE_BADGE"):null};
var fz=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 ez(a[b]))};
var Ny=function(a){return 1==a.o.length&&a.o[0].isLive()};
var gz=function(a,b){this.state=-1;this.B=a;this.messageText=[];this.C=!1;b&&hz(this,b)};
var hz=function(a,b){var c=b.lifeCycleState;c&&(a.state=iz[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.C=0<=fb(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});
if(c=b.broadcastId)a.broadcastId=c;a.A=new fz(b)};
var jz=function(a){switch(a.state){case 6:return!a.o()&&a.B?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,P("YTP_FRESCA_EVENT_OFFLINE")]:a.o()?[]:[P("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),P("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:return[P("YTP_FRESCA_EVENT_OVER_MESSAGE"),P("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(My(a))return["Dawn of","The final day","-24 hours remain-"];if(!a.B&&a.startTime){var b=zi("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d="",d=b.formatLongDate;
Xy={fn:b.months,kn:b.months,hn:b.shortMonths,ln:b.shortMonths,Mj:b.dateFormats,un:b.weekdays,nn:b.shortMonths,jn:b.shortWeekdays,mn:b.shortWeekdays,Ru:b.weekendRange,Oj:b.firstDayOfWeek,Pj:b.firstWeekCutoffDay,Zm:b.amPms};c=(new Wy(d)).format(new Date(1E3*c))}b=Math.floor(I()/1E3);return[b<=a.startTime?P("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?P("YTP_FRESCA_EVENT_STARTING_SOON"):P("YTP_FRESCA_EVENT_HASNT_STARTED"),c]}return a.B?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,P("YTP_FRESCA_EVENT_OFFLINE")]:
a.B?[P("YTP_FRESCA_EVENT_OFFLINE")]:[P("YTP_FRESCA_STAND_BY_MESSAGE")]}};
var My=function(a){if(!a.startTime)return!1;var b=a.startTime-Math.floor(I()/1E3);return E(kz,a.state)&&86459>=b&&86400<=b};
var lz=function(a){mq.call(this,a);this.H=this.sa="fresca";this.B=this.K=!1;this.C=null;Gi({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.F=!1};
var mz=function(a,b){var c;c=!!b.getMessage().length||!!b.imageUrl;if(a.B||!(6>b.state))if(a.o.app.o.K&&(b.imageUrl||b.messageText.length))c=!0;else{var d=nz(a.o),d=ry(d)||T(d,2),e;if(e=!a.A.o())(e=!a.B)||(e=!(nz(a.o).jb()&&!gx(a.o.getVideoData())&&!a.o.app.o.K)&&d);c=e||a.K&&a.o.app.o.K||!a.B&&6<b.state?c:!1}if(!a.B)switch(b.state){case 6:b.o()&&(a.B=!0,qq(a));break;case 8:case 7:a.B=!0}c&&Ly(a.D,b);c&&!a.loaded?(a.load(),oz(a.o)):!c&&a.loaded&&(a.unload(),oz(a.o))};
var pz=function(a){return fx(a.getVideoData(),"fresca_module")?new lz(a):null};
var qz=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};oz(c,d)}};
var rz=function(){if(!vc)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
var sz=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(tz){var b=uz();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
var vz=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");};
var wz=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=We(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=We(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null};
var uz=function(){var a=new window.ActiveXObject("MSXML2.DOMDocument");if(a){a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}}return a};
var xz=function(a){this.A=a||window;this.o=[]};
var yz=function(a,b,c){c=A(c,a.A);b=Ql(b,"mouseleave",c);a.o.push(b);return b};
var zz=function(a,b,c,d){c=A(c,d||a.A);b=Sl(b,c);a.o.push(b)};
var Az=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=A(this.bw,this)};
var Bz=function(a){a=a.A;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
var Cz=function(a){a=a.A;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
var Dz=function(a){a=ka(a);delete Ez[a];ac(Ez)&&Fz&&Fz.stop()};
var Gz=function(){Fz||(Fz=new Ud(function(){Hz()},20));
var a=Fz;a.isActive()||a.start()};
var Hz=function(){var a=I();Ob(Ez,function(b){Iz(b,a)});
ac(Ez)||Gz()};
var Jz=function(){dd.call(this);this.o=0;this.endTime=this.startTime=null};
var Kz=function(a,b,c,d){Jz.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};
var Iz=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;Lz(a,a.progress);1==a.progress?(a.o=0,Dz(a),a.Vb(),a.Qg()):a.jb()&&a.yl()};
var Lz=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]};
var Mz=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};
var Nz=function(a){return Math.pow(a,3)};
var Oz=function(a){return 3*a*a-2*a*a*a};
var Pz=function(){this.o=[]};
var Qz=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};
var Rz=function(a,b,c){return a.o.slice(Sz(a,b),null==c?a.o.length:Sz(a,c))};
var Sz=function(a,b){var c=Ab(a.o,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
var Tz=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};
var Uz=function(a,b,c,d,e){G.call(this);this.B=0;this.J=!1;this.F=null;this.H=this.D=this.G=!1;this.O=a;this.S=b;this.M=c;this.V=d;this.L=e;this.K=new Ud(this.Kc,250,this);H(this,this.K);this.C=new Ud(this.Kc,0,this);H(this,this.C);this.A=[];this.o=new Pz};
var Vz=function(a,b){var c=[];if(!b.length)return c;b.sort(lq);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};
var Wz=function(a,b){var c=[];if(!b.length)return c;b.sort(lq);for(var d=0;d<b.length;d++){var e=b[d],f=a.A.indexOf(e);0>f||(a.A.splice(f,1),c.push([2,e]))}return c};
var Xz=function(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];1==d[0]?(e.C&&kq(e).P("onEnter",e),a.L("crn_"+e.o,e)):(e.C&&kq(e).P("onExit",e),a.L("crx_"+e.o,e))}};
var Yz=function(a){return T(a.M(),2)?0x8000000000000:1E3*a.O()};
var Zz=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};
var $z=function(a){return da(a)&&a.length?a[0]:a};
var aA=function(a){var b=/.+/;return y(a)&&null!=b&&null!=a&&a.match(b)?a:""};
var bA=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};
var cA=function(a){return y(a)?a:""};
var dA=function(a,b,c){for(var d in b)if(b[d]==a)return a;return c};
var eA=function(a,b){return"true"==a||"false"==a?"true"==a:b};
var fA=function(a,b){return y(a)?(0,window.parseFloat)(a):b};
var gA=function(a,b,c,d,e){a=(0,window.parseFloat)(a);if(null!=a&&!(0,window.isNaN)(a)){if(d)return ke(a,b,c);if(a>=b&&a<=c)return a}return e};
var hA=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};
var iA=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]:[]};
var jA=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new qe((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};
var kA=function(a){function b(a){return $d(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)};
var lA=function(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.Oi=d};
var mA=function(a){if(!a)return null;var b=cA(a.value);if(!b)return null;var c=dA(a.target,nA,"current");return null==c?null:new lA(b,c,eA(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)};
var oA=function(a){return a.value?a.value:null};
var pA=function(a){if(!a)return!1;var b=qA(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")};
var qA=function(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()};
var rA=function(a){a=oA(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!pA(a))||(b=Kg(Ig(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=qj(a);if(!b||!b.v)return null;if(b.t)return Zz(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=oj(a[1]))&&a.t?Zz(a.t):-1};
var sA=function(a){a=oA(a);a=a.replace(/https?:\/\//g,"");return pA(a)?(a=qj(a))&&a.v?a.v:null:null};
var tA=function(a,b,c,d){(a=oA(a))?pA(a)?d=sj(a,{feature:"iv",src_vid:c,annotation_id:b},!1):(a?(b=qA(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=pa(uA,d.pageId,d.zb),a=new N(a),dh(a,d(a.B)),d=a.toString()):d=a):d=null;return d};
var uA=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};
var vA=function(a,b){return b?b:pA(a)?"current":"new"};
var wA=function(a){this.A=a;this.o=0;this.D=window.NaN;this.B=0;this.ua=[];this.C=xA(this.A);this.F=this.G=0};
var yA=function(a){a.C.startTime=a.B;a.C.endTime=a.o;a.ua.length&&db(a.ua).isEmpty()?a.ua[a.ua.length-1]=a.C:a.ua.length&&a.C.isEmpty()||a.ua.push(a.C);a.G+=a.o-a.B;a.C=xA(a.A);a.B=a.o};
var zA=function(a){return a.G+a.A.B()-a.B};
var AA=function(a){a.ua.length&&a.o==a.B||yA(a);var b=a.ua;a.ua=[];return b};
var BA=function(a,b,c){c-=a.D;return b==a.o&&.5<c};
var CA=function(a,b){this.experimentIds=(a||"").split(",");this.flags=mj(b||"","&");var c={};F(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;DA=DA||this.ma("use_legacy_params");this.F=!!c["9408846"];this.A=!!c["932250"]||!!c["9406444"];this.Z=!!c["945066"]||!!c["9405188"];this.B=!!c["945069"]||!!c["9405408"];this.U=!!c["945074"]||!!c["9405191"];this.M=!!c["945090"]||!!c["9405409"];this.O=!!c["9416855"];this.C=c["9408912"]?5E3:c["9408913"]?7E3:c["9408914"]?9E3:c["9408915"]?11E3:c["9408916"]?13E3:c["9408917"]?15E3:1E4;this.da=!!c["9406692"];this.spherical=!!c["9406693"]||!!c["9417210"]&&Ft&&yc(8);this.aa=this.ma("enable_spherical3d_chrome");
this.S=!!c["9417025"];this.ea=!!c["9417026"];this.G=!!c["9417027"];this.mv=!0;this.H=!!c["909722"];this.Da=!!c["922333"];this.K=!!c["937009"];this.enableAudioCast=!!c["9408394"];this.L=!!c["9408919"];this.o=!!c["9414740"];this.sC=!!c["9414661"];this.V=!!c["9414672"];this.showEndToEndLatency=!!c["9416891"];this.D=!!c["9414843"];this.Y=!!c["9418683"];this.ga=!!c["9407182"]};
var EA=function(a,b){this.o=b;this.C=!1;this.A=a};
var FA=function(a,b,c){EA.call(this,b,c);this.D=a};
var GA=function(a){gj("yt-player-bandwidth",a,2592E3)};
var HA=function(){return ij("yt-player-quality")||"auto"};
var IA=function(a){G.call(this);this.o=a;this.B={};this.S=window.NaN;this.F=new Ud(this.Bz,3E4,this);H(this,this.F);this.G=new Ud(this.Ti,100,this);H(this,this.G);this.A="N";this.D=0;this.O=window.NaN;this.V=0;this.K=this.Y="";this.Z=-1;this.J=this.L=0;this.M=this.H=!1;this.C=null;window.navigator.getBattery&&window.navigator.getBattery().then(A(function(a){this.C=a},this))};
var JA=function(a,b,c,d){var e=a.B[c];e||(e=[],a.B[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
var KA=function(a){var b={event:"streamingstats"};if(a.o.o.A){b.fmt=a.o.o.A.id;var c=a.o.o.F;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.o.o.clientPlaybackNonce;b.ei=a.o.o.eventId;b.el=a.o.A.Aa;b.docid=a.o.o.videoId;b.ns=a.o.A.aa;b.fexp=a.o.A.experiments.experimentIds.toString();b.cl=a.o.A.ga;a.o.A.D&&(b.adformat=a.o.A.D);a.o.o.Fa&&(b.live=a.o.o.Dd?"dvr":"live");b.html5="1";return b};
var LA=function(a,b){var c=a.B.cat||[];c.push(b);a.B.cat=c};
var MA=function(a,b,c,d){this.tb=b;this.segments=[];this.experimentIds=[];this.ia=this.Ia=this.Qa=this.U=this.Ca=this.autoplay=this.autonav=!1;this.Da="yt";this.J=this.A=this.D=null;this.Z=!1;this.C="watchtime"==c;this.Y="playback"==c;this.Ea="delayplay"==c;this.V="atr"==c;this.Ga="engage"==c;this.da=!1;this.$a=this.V?"/api/stats/"+c:"//"+b.bd+"/api/stats/"+c;d&&(this.Qa=d.fs,d.rtn&&(this.A=d.rtn),this.C?(this.uc=d.state,0<d.rti&&(this.D=d.rti)):(this.La=d.mos,this.Ua=d.volume,d.at&&(this.adType=
d.at),d.allowed&&(this.K=d.allowed),d.ex_ads&&(this.O=d.ex_ads)),d.autonav&&(this.autonav=d.autonav));this.gb=b.D;this.autoplay=b.autoplay;this.nb=b.ea;this.qb=ec(b.A);this.va=b.O;this.Nb=b.Aa;this.experimentIds=b.experiments.experimentIds;this.ga=b.Y;this.Da=b.aa;this.region=b.region;this.vc=b.ga?b.ga.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.ab=NA();this.da=b.experiments.o;DA&&(this.referrer=b.referrer,this.B=b.ia,this.searchQuery=b.searchQuery);this.G=a.oauthToken||
this.G;this.autoplay=this.tb.experiments.ma("stop_autoplay_flag_persist")?a.zf:a.zf||this.autoplay;this.autonav=a.bl||this.autonav;this.J=a.sj;this.clientPlaybackNonce=a.clientPlaybackNonce;this.S=a.vssCredentialsToken;this.qa=a.nm;this.H=a.qj;this.ea=a.Se;a.A&&(this.na=a.A.id,a.F&&a.F.id!=this.na&&(this.M=a.F.id));this.ia=a.Zf;this.Ob=a.rj;a.Fa&&(this.Oa=a.Dd?"dvr":"live");this.Yb=a.Dm;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.$a||a.playlistId;this.ha=a.ea;this.la=a.ga;
this.wc=a.qe;this.subscribed=a.subscribed;this.videoId=a.videoId;this.xc=a.jv;this.visitorData=a.visitorData;this.osid=a.osid;this.ac=a.Vu;DA?this.B=a.va||this.B:(this.referrer=a.referrer,this.B=a.va||a.pe,this.searchQuery=a.searchQuery)};
var OA=function(a){var b={ns:a.Da,el:a.Nb,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.Qa?"1":"0",rt:a.o(a.Va),of:a.ac,adformat:a.gb,content_v:a.nb,euri:a.va,subscribed:a.subscribed,lact:a.ab,live:a.Oa,cl:a.vc,mos:a.La,q:a.searchQuery,osid:a.osid,state:a.uc,vm:a.xc,volume:a.Ua};qa(b,a.qb);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.U&&(b["final"]="1");a.ia&&(b.splay="1");a.ea&&(b.delay=a.ea);a.ga&&(b.hl=
a.ga);a.region&&(b.cr=a.region);n(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);n(a.aa)&&(b.len=a.o(a.aa));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.A&&(b.rtn=a.o(a.A));a.B&&(b.feature=a.B);a.playlistId&&(b.list=a.playlistId);a.ha&&(b.ctrl=a.ha);a.la&&(b.ytr=a.la);a.wc&&(b.ssrt="1");a.M&&(b.afmt=a.M);a.C?(b.idpj=a.Ob,b.ldpj=a.Yb,null!=a.D&&(b.rti=a.o(a.D))):(n(a.adType)&&(b.at=a.adType),n(a.K)&&(b.allowed=a.K),n(a.O)&&(b.ex_ads=a.O));(a.Y||a.Ea)&&a.J&&
(b.tst=a.J);a.C&&(b.st=PA(a,O(a.segments,function(a){return a.startTime})),b.et=PA(a,O(a.segments,function(a){return a.endTime})));
Ih(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=PA(a,O(a.segments,function(a){return a.visibilityState})));
Ih(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=PA(a,O(a.segments,function(a){return a.playbackRate})));
Ih(a.segments,function(a){return"-"!=a.bk})&&(b.cc=O(a.segments,function(a){return a.bk}).join(","));
if(Ih(a.segments,function(a){return!!a.Zj})){var c="au";
a.Y&&(c="au_d");b[c]=O(a.segments,function(a){return a.Zj}).join(",")}uj()&&a.S&&(b.ctt=a.S,b.cttype=a.qa);
a.Ga&&(b.etype=n(a.F)?a.F:0);return b};
var PA=function(a,b){return O(b,a.o).join(",")};
var QA=function(a){G.call(this);this.o=a;this.B=new IA(a);H(this,this.B);this.A=new wA(a);this.F="paused";this.G=window.NaN;this.J=[10,10,10,40];this.K=this.H=0;this.S=this.O=this.M=this.L=this.C=!1;this.D=window.NaN;this.V=new FA(this.A,this.o.o,this.o.A)};
var RA=function(a,b,c){var d=SA(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=c+e;d=1E3*(c-d);a.G=Ai(A(a.kz,a,c,b),d);return c};
var TA=function(a,b){var c=UA(a.o);qa(c,{state:a.F});c=new MA(a.o.o,a.o.A,b,c);c.H=a.o.B();a.o.o.Fa||(c.aa=a.o.F());c.Va=SA(a.o);c.segments=[xA(a.o)];return c};
var VA=function(a,b){var c=TA(a,"watchtime");c.segments=b;c.H=a.A.o;return c};
var WA=function(a){a.A.update();return VA(a,AA(a.A))};
var XA=function(a){a.o.o.remarketingUrl&&!a.O&&(YA(a,a.o.o.remarketingUrl),a.O=!0);a.o.o.ppvRemarketingUrl&&!a.S&&(YA(a,a.o.o.ppvRemarketingUrl),a.S=!0);ZA(a)};
var $A=function(a,b){if(!a.isDisposed()){T(b.state,2)?(a.F="paused",0<aB(b,2)&&a.C&&WA(a).send()):T(b.state,8)?(a.F="playing",a.C&&(0,window.isNaN)(a.G)&&RA(a,!1)):a.F="paused";var c=a.B,d=b.state,e=SA(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=bB[sy(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.H();if(!c.isDisposed()){var l=KA(c);l.qoealert="1";l=Ug(c.o.A.xc,
l);aq(l)}c.M=!0}"B"!=k||"PL"!=c.A&&"PB"!=c.A||(c.H=!0);c.D=e}!c.o.A.experiments.A||"B"!=f&&"PB"!=f?JA(c,e,"cmt",[c.o.B().toFixed(3)]):c.Ti(e);JA(c,e,"vps",[f]);c.A=f}if(T(d,128))c.onError(d.o.errorCode,d.o.errorDetail);(T(d,2)||T(d,128))&&c.Vg(e);a.D&&T(b.state,128)&&(a.Yi("error-100"),Di(a.D))}};
var cB=function(a){a.D=Ci(A(a.Yi,a,"heartbeat"),3E4)};
var ZA=function(a){a.o.o.D.eventLabel=a.o.A.Aa;a.o.o.D.playerStyle=a.o.A.o;a.o.o.na&&(a.o.o.D.feature="pyv");a.o.o.D.vid=a.o.o.videoId;a.o.o.D.isAd=!("adunit"!=a.o.A.Aa&&!a.o.o.na)};
var YA=function(a,b,c){a.o.A.experiments.o&&a.o.o.visitorData&&tj(b)?Bj(b,{Vb:c,headers:{"X-Goog-Visitor-Id":a.o.o.visitorData}}):aq(b,c)};
var dB=function(a,b){this.ca=b;this.o={}};
var eB=function(a,b,c){if(b){var d=fB(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=gB(a,d["a-id"],"cta_annotation_shown"))&&b.push(c);hB(a,d,b)}};
var iB=function(a,b,c,d,e,f){if(b){var k=fB(a,b);k["iv-event"]=3;k["i-time"]=a.o[b]||"";gc(k,d||{});b=sb(e||[]);30==k["a-type"]&&(d=gB(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);hB(a,k,b,c,f)}};
var jB=function(a,b){if(b){var c=fB(a,b);c["iv-event"]=4;c["i-time"]=a.o[b]||"";var d=[];if(30==c["a-type"]){var e=gB(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}hB(a,c,d)}};
var gB=function(a,b,c){a=a.ca.getVideoData();if(a.gb){if((c=a.gb[c])&&Pw.test(c))return a=va("[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.qa)return rj(a.qa,{label:c,value:"a_id="+b});return""};
var hB=function(a,b,c,d,e){var f=1,k,l=-1;if(d){var m=!1;k=function(){f--;f||m||((0,window.clearTimeout)(l),m=!0,d())};
l=(0,window.setTimeout)(function(){m=!0;d()},1E3)}F(c||[],function(a){f++;
aq(a,k)});
e&&(f++,0!=e&&a.ca.cg(e,k));a.fb(b,k)};
var fB=function(a,b){var c={};if(b){var d=new gh(b);F(d.Na(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.ca.getCurrentTime().toFixed(2);
c.ps=a.ca.W().o;return c};
var kB=function(a,b,c,d){d=fB(a,d);d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;hB(a,d,c)};
var lB=function(a,b,c,d){c&&(c=fB(a,c),c["iv-event"]=b,hB(a,c,d))};
var mB=function(a,b){this.Z=a;this.context=b;this.pm=!1;this.K=0};
var nB=function(a,b,c,d,e,f){b=new iq(b,c,{id:d});b.o="iv-module";e&&kq(b).subscribe("onEnter",e,a);f&&kq(b).subscribe("onExit",f,a);a.context.A.ib([b])};
var oB=function(a){return I()-a.K};
var pB=function(a,b,c,d,e,f,k){var l=A(function(){k&&this.context.A.pauseVideo();var a=qj(b),d=null;"ei"in a&&(d={ei:a.ei},b=Yg(b,"ei"));vy(b,d);wy(b,"current"==c?"_top":void 0)},a);
"new"==c&&(l(),l=null);var m={};m.interval=oB(a);iB(a.context.logger,d,l,m,e,f)};
var qB=function(a,b){Q.call(this,["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text","{{text}}"]]);this.ca=a;this.G=new Pq(this,250,!1,250);H(this,this.G);this.H=b;this.ya=null;this.C=[];this.A=this.F=this.D=null;R(this,a,"cardsteasershow",this.VA);R(this,a,"cardsteaserhide",this.Hj);this.R("click",this.KE);this.R("mouseenter",this.JE)};
var rB=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};
var sB=function(a,b){if(b){var c=b.imageUrl,c=["div","ytp-cards-hover-card-image",{style:c?"background-image: url("+c+");":""}];c.push(b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"");c=["a","ytp-cards-hover-card",["div","ytp-cards-video-image",c],["div","ytp-cards-video-desc",["h2","ytp-cards-hover-card-title",b.title],rB(b.qd)]];a.A=new Q(c);a.A.o(a.element);c=$e("ytp-cards-hover-card",void 0);R(a,c,"click",pa(a.Iw,b.lv,b.MB,b.target,b.Oi));R(a,c,"mouseenter",a.Kw);R(a,c,"mouseleave",
a.Lw)}};
var tB=function(a,b,c,d){Bq(a,"text",b);a.G.show();sB(a,d);a.D=new Ud(function(){K(this.ca.Ba(),"ytp-cards-teaser-shown")},0,a);
a.D.start();uB(a.H,!1);a.ya=new Ud(a.Hj,580+c,a);a.ya.start();a.C.push(a.R("mouseover",a.ya.stop,a.ya));a.C.push(a.R("mouseout",function(){this.ya.start()}))};
var vB=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.Ra=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.o={No:a.impression,click:a.click,close:a.close,oC:a.teaser_impression,Yl:a.teaser_click}};
var wB=function(a,b,c){vB.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.qd=b.meta_info;this.url=mA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var xB=function(a,b,c){vB.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=mA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.A=null;b.signin_url&&(this.A=mA({target:"current",value:b.signin_url}));this.G=b.signin_title||null;this.F=b.signin_message||null};
var yB=function(a,b,c){xB.call(this,a,b,c);this.H=b.ypc_flow_type;this.C=b.innertube_request_params};
var zB=function(a,b,c){this.o=a;this.A=b;this.B=c};
var AB=function(a,b){var c=["ul",""];F(b.choices,function(a){c.push(["li",b.B+"-"+a.index.toString(),["label",b.C==a.index?"iv-card-poll-choice-checked":"",["div","iv-card-poll-choice-percent"],a.desc,["input","iv-card-poll-choice-input",{type:"radio",name:b.B,value:a.index.toString()}]],["div","iv-card-poll-result",["div","iv-card-poll-result-bar"]]])},a);
var d=["iv-card","iv-card-poll"],e=[["div","iv-card-content",["h2","",b.title],["form","",["fieldset","",c]]]];b.A&&(d.push("iv-card-unavailable"),e.push(["div",["iv-card-sign-in"],["h2","",P("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:oA(b.A)},["span",["iv-button-content"],P("YTP_SIGN_IN")]]]));d=new Q(["div",d,{tabindex:"0"}].concat(e));e=d.element;void 0!==b.C&&BB(b,e);zz(a.o.o,e,pa(a.D,b),a);b.A&&(e=$e("iv-card-sign-in-button",e),a.A(e,b.A,b.id,b.Ra,b.o.click,
5));return d};
var CB=function(a,b,c,d){var e=DB(a,b.url,b.id),f=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",k=EB(b),l=["iv-card"];b.A&&l.push("iv-card-unavailable");e=["div",l,{tabindex:"0"},["a","iv-click-target",{href:e},FB(b.imageUrl,f),["div","iv-card-content",["h2","",b.title],k]]];b.A&&(e=e.concat([["div",["iv-card-sign-in"],["h2","",b.G],["p","",b.F],["a",["iv-card-sign-in-button","iv-button"],{href:oA(b.A)},["span",["iv-button-content"],P("YTP_SIGN_IN")]]]]));e=new Q(e);GB(a,e,b,c,d);
return e};
var HB=function(a,b,c){var d=DB(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],{tabindex:"0"},["a","iv-click-target",{href:d},FB(b.G,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],IB(b)]]];c=new Q(c);GB(a,c,b);return c};
var JB=function(a){return a.customMessage?["div","iv-card-message",a.customMessage]:""};
var FB=function(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c};
var IB=function(a){if(!a.qd||0==a.qd.length)return"";var b=["ul","iv-card-meta-info"];F(a.qd,function(a){b.push(["li","",a])});
return b};
var EB=function(a){if(!a.customMessage)return"";var b=["iv-card-action","iv-card-primary-link"],c={};a.B&&(b.push("iv-card-action-icon"),c.style="background-image: url("+a.B+");");b=["div",b,c,["span","",a.customMessage]];a.showLinkIcon&&(b.push("\u00a0"),b.push(["span","iv-card-link-icon"]));return b};
var BB=function(a,b){KB(a,b);Yd(b,["iv-card-poll-expanded","iv-card-poll-voted"]);b.querySelector("fieldset").disabled=!0};
var KB=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=e.count/c,e=$e(a.B+"-"+e.index.toString(),b),k=$e("iv-card-poll-choice-percent",e);Af(k,P("YTP_DRAWER_POLL_PERCENT",{PERCENT:(100*f).toFixed(0)}));e=$e("iv-card-poll-result-bar",e);Mf(e,"transform","scaleX("+f.toFixed(2)+")")}};
var LB=function(a,b,c){c?(a.o.A.pauseVideo(),a.o.A.Ja()&&Cy(a.o.A),iB(a.o.logger,b.Ra,void 0,void 0,b.o.click,5),c()):a.B(b.url,b.id,b.Ra,b.o.click,5)};
var DB=function(a,b,c){return b?tA(b,c,a.o.C.videoId,a.o.B):null};
var GB=function(a,b,c,d,e){c.A&&MB(a,Ye("iv-card-sign-in-button",b.element),c,c.A,e);MB(a,Ye("iv-click-target",b.element),c,c.url,d)};
var MB=function(a,b,c,d,e){F(b,function(a){if(e){var b=A(function(a){a.stopPropagation();a.preventDefault();e();return!1},this);
this.o.o.R(a,"click",b)}else this.A(a,d,c.id,c.Ra,c.o.click,5)},a)};
var NB=function(a,b,c){vB.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.qd=b.meta_info;this.url=mA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var OB=function(a,b,c){vB.call(this,a,b,c);this.B=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.C=b.old_vote;this.A=null;b.signin_url&&(this.A=mA({target:"current",value:b.signin_url}))};
var PB=function(a,b,c){xB.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new QB(a[b]))};
var QB=function(a){this.merchant=D(a.merchant);this.price=D(a.price)};
var UB=function(a,b,c){xB.call(this,a,b,c);this.H=b.ypc_item_type;this.C=b.ypc_item_id;this.J=b.ypc_flow_type};
var VB=function(a,b,c){vB.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.qd=b.meta_info;this.C=!!b.is_live_now;this.url=mA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var WB=function(a,b,c){vB.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.qd=b.meta_info;this.C=!!b.is_paygated;this.F=!!b.user_has_entitlement;this.url=mA({target:b.target||"new",value:b.url})};
var XB=function(a,b,c){mB.call(this,b,c);this.ca=a;this.Ci=this.D=this.S=this.V=!1;this.O=null;this.ak=new Ud(w,c.B.useTabletControls?4E3:3E3);this.B=new zB(c,A(this.Nf,this),A(this.Ei,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},P("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":P("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.H=new Q(a);this.F=this.H.element;this.M=new Pq(this.H,
330,!1);this.U=$e("iv-drawer-header",this.F);this.yc=$e("iv-drawer-content",this.F);a=["iv-drawer-teaser"];this.B.o.B.experiments.mv&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:P("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":P("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.Y=(new Q(a)).element;$e("iv-drawer-teaser-text",this.Y);this.A=[];this.C=this.J=this.o=null;this.G=[];(YB(this)||this.context.B.experiments.ma("cards_drawer_auto_open"))&&
2!=c.A.getPresentingPlayerType()&&(a=this.context.B.experiments.Ac("cards_drawer_auto_open_offset"),c=1E3*c.C.lengthSeconds,b=0<=a?a:c+a,b<c&&(nB(this,b,0x8000000000000,"",this.gv),a=this.context.B.experiments.Ac("cards_drawer_auto_open_duration"),b+=a,0<=a&&b<c&&nB(this,b,0x8000000000000,"",this.ev)))};
var ZB=function(a,b){var c=$B(a,b);c&&(c==a.o&&(a.o=null),a.ca.xr(c.Sa.id),qf(c.ck),ob(a.A,c),a.Mh())};
var aC=function(a,b){a.D||(a.M.show(),a.J=new Ud(function(){K(this.context.A.Ba(),"ytp-iv-drawer-open")},0,a),a.J.start(),a.D=!0,a.K=I(),kB(a.context.logger,7,void 0,b&&b.Sa?b.Sa.Ra:void 0),F(a.A,function(a){a.Fi||(a.Fi=!0,eB(this.context.logger,a.Sa.Ra,a.Sa.o.No))},a),bC(a.ca),a.C=new Ud(function(){var a;
a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(e){}a=null}this.L=a;this.U.focus()},330,a),a.C.start())};
var cC=function(a){a.D&&(a.M.fa(),Zd(a.context.A.Ba(),"ytp-iv-drawer-open"),a.D=!1,kB(a.context.logger,10),bC(a.ca),a.C&&a.C.stop(),a.C=new Ud(function(){this.L&&(this.L.focus(),this.L=null)},330,a),a.C.start())};
var dC=function(a){var b=$e("iv-drawer-close-button",a.F);a.context.o.R(b,"click",a.tv,a);a.context.o.R(a.yc,"touchend",function(){this.ak.start()},a);
a.context.o.R(a.yc,"scroll",a.Hv,a);a.O=Nl(a.yc,"mousewheel",A(a.dE,a));a.context.D.subscribe("onHideControls",function(){this.Ci=!0},a);
a.context.D.subscribe("onShowControls",function(){this.Ci=!1},a);
a.context.D.subscribe("onVideoAreaChange",function(){this.Ci=Xd(this.ca.Ba(),"ytp-autohide")},a);
a.G.push(Ii("iv-teaser-shown",a.Qx,a));a.G.push(Ii("iv-teaser-clicked",a.Ox,a));a.G.push(Ii("iv-hover-card-clicked",a.Nx,a));a.context.B.experiments.ma("teaser_on_button_hover")&&a.G.push(Ii("iv-button-hovered",a.kC,a));a.context.B.experiments.ma("log_teaser_hover")&&a.G.push(Ii("iv-teaser-hovered",a.Px,a))};
var eC=function(a,b){switch(b.type){case "adspaycreator":case "associated":case "fundraising":case "location":case "merch":case "product":case "simple":return CB(a.B,b);case "collaborator":var c=a.B,d=["div",["iv-card","iv-card-channel"],{tabindex:"0"},["a",["iv-click-target","g-hovercard"],{href:DB(c,b.url,b.id),"data-ytid":b.channelId},FB(b.profileImageUrl),["div","iv-card-content",JB(b),["h2","iv-card-primary-link",b.title],IB(b)]]],d=new Q(d);GB(c,d,b);return d;case "donation":return c=a.B,d=
A(c.C,c,b),CB(c,b,d,d);case "episode":return HB(a.B,b,"iv-card-episode");case "movie":return HB(a.B,b,"iv-card-movie");case "playlist":return c=a.B,d=["div",["iv-card","iv-card-playlist"],{tabindex:"0"},["a","iv-click-target",{href:DB(c,b.url,b.id)},FB(b.B,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",JB(b),["h2","iv-card-primary-link",b.title],IB(b)]]],d=new Q(d),GB(c,d,b),d;case "poll":return AB(a.B,b);case "productListing":var c=
a.B,d=DB(c,b.url,b.id),e=!kb(b.offers)&&(b.sponsored||c.o.B.experiments.sC),f=["iv-card"],k="",l=EB(b);e&&(f.push("iv-card-product-listing"),k="iv-card-primary-link",l=b.offers[0],e=["div",null],l.price&&e.push(["div","iv-card-offer-price",l.price]),l.merchant&&e.push(["div","iv-card-offer-merchant",l.merchant]),l=e);e=b.sponsored?["div","iv-card-sponsored",P("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=new Q(["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},["h2",k,b.title],l]]]);f=lf("span");f.innerHTML=P("YTP_AD_SETTINGS_INFO",{BEGIN_FORMAT:'<a target="_blank" href="https://www.google.com/settings/ads/onweb">',END_FORMAT:"</a>"});d.Db(f,"adInfo");GB(c,d,b);return d;case "tip":return c=a.B,d=A(c.F,
c,b),CB(c,b,d,d);case "video":return c=a.B,d=DB(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.C?["span",["yt-badge","yt-badge-live"],P("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],{tabindex:"0"},["a","iv-click-target",{href:d},FB(b.B,f),["div","iv-card-content",JB(b),["h2","iv-card-primary-link",b.title],IB(b),k]]],d=new Q(d),GB(c,d,b),d}return null};
var fC=function(a,b){if(0==a.A.length)return 0;var c=ib(a.A,function(a){return b.Sa.startMs>a.Sa.startMs||b.Sa.startMs==a.Sa.startMs&&b.Sa.timestamp>=a.Sa.timestamp?!0:!1});
return-1==c?0:c+1};
var gC=function(a,b){if(a.H.B){var c=new Kz([0,a.yc.scrollTop],[0,b.ck.offsetTop],600,Oz);a.context.o.R(c,"animate",function(a){this.yc.scrollTop=a.y},a);
a.context.o.R(c,"finish",function(a){this.yc.scrollTop=a.y},a);
c.play()}else a.H.xb(!0),a.yc.scrollTop=b.ck.offsetTop,a.H.xb(!1)};
var hC=function(a){return a.o&&a.o.Sa||a.A[0]&&a.A[0].Sa};
var $B=function(a,b){return eb(a.A,function(a){return a.Sa.id==b},a)};
var YB=function(a){return a.context.B.experiments.ma("product_listing_ads_cards_drawer_auto_open")};
var iC=function(a){return Ih(a.A,function(a){return a.Sa.sponsored&&"productListing"==a.Sa.type})};
var jC=function(a){if(!kC.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(lC,"#$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)]};
var mC=function(a,b,c,d,e){Kz.call(this,b,c,d,e);this.element=a};
var nC=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");mC.apply(this,arguments)};
var oC=function(a,b,c){mB.call(this,a,b);this.annotation=c;this.isActive=!1};
var pC=function(a,b,c){oC.call(this,a,b,c);this.A=null;this.G=!1;this.o=null;this.B=!1;this.C=0;this.F=this.D=null};
var qC=function(a,b,c,d,e,f){this.o=a;this.B=b;this.C=c;this.logger=d;this.A=e;this.D=f};
var rC=function(a,b,c){this.type=a;this.trigger=b;this.url=c};
var sC=function(a){if(!a)return null;var b=dA(a.type,tC),c=dA(a.trigger,uC),d=mA($z(a.url));$z(a.subscribeData);return b?new rC(b,c,d):null};
var vC=function(a,b,c,d,e,f,k,l,m,p,u,v,z,x){this.F=a;this.C=b;this.G=c;this.D=d;this.A=e;this.L=f;this.B=k;this.K=l;this.textSize=m;this.H=p;this.J=u;this.effects=v;this.o=z;this.M=x};
var wC=function(a){if(!a)return null;var b=bA(a.fgColor,"#1A1A1A"),c=bA(a.bgColor,"#FFF"),d=bA(a.borderColor,"#000"),e=gA(a.borderWidth,0,5,!1,0),f=gA(a.bgAlpha,0,1,!1,.8),k=bA(a.highlightFontColor,"#F2F2F2"),l=gA(a.highlightWidth,0,5,!1,3),m=cA(a.textAlign),p=gA(a.textSize,3.3,30.1,!0,3.6107),u=cA(a.fontWeight),v=jA(a.padding),z=kA(a.effects),x=gA(a.cornerRadius,0,10,!0,0);if(a=$z(a.gradient)){var ga=gA(a.x1,0,100,!0,0),wa=gA(a.y1,0,100,!0,0),J=gA(a.x2,0,100,!0,100),X=gA(a.y2,0,100,!0,100),Lb=bA(a.color1,
"#FFF"),wd=bA(a.color2,"#000");a=new xC(ga,wa,J,X,Lb,wd,gA(a.opacity1,0,100,!0,100),gA(a.opacity2,0,100,!0,0))}else a=null;return new vC(b,c,d,e,f,k,l,m,p,u,v,z,x,a)};
var xC=function(a,b,c,d,e,f,k,l){this.D=a;this.G=b;this.F=c;this.H=d;this.o=e;this.A=f;this.B=k;this.C=l};
var yC=function(a,b){this.o=a;this.videoId=b};
var zC=function(a,b,c){var d=a.F,e=a.G,f=a.o?a.o:"xy",k=AC(c,a.C,f);a=BC(c,a.A,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new te(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-l,f,l)};
var AC=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d};
var BC=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};
var CC=function(a,b,c,d,e,f,k,l,m,p,u){this.x=a;this.y=b;this.D=c;this.B=d;this.t=e;this.K=f;this.F=k;this.G=l;this.C=m;this.A=p;this.o=u};
var DC=function(a,b){if(!a)return null;var c=fA(a.x,0),d=fA(a.y,0),e=fA(a.w,0),f=fA(a.h,0),k=hA(a.t),l=fA(a.scaleSlope,1);return b(c,d,e,f,k,fA(a.d,0),fA(a.px,0),fA(a.py,0),fA(a.scaleSlopeX,l),fA(a.scaleSlopeY,l),dA(a.scaleDimension,EC,"xy"))};
var FC=function(a,b){var c=GC(b,zC(a,new te(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=ke(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=ke(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e};
var HC=function(a){return a?DC(a,function(a,c,d,e,f,k,l,m,p,u,v){return new CC(a,c,d,e,f,k,l,m,p,u,v)}):null};
var IC=function(a,b,c,d,e,f,k,l,m,p,u,v,z){CC.call(this,a,b,c,d,e,l,m,p,u,v,z);this.H=f;this.J=k};
var JC=function(a){if(!a)return null;var b=fA(a.sx,0),c=fA(a.sy,0);return DC(a,function(a,e,f,k,l,m,p,u,v,z,x){return new IC(a,e,f,k,l,b,c,m,p,u,v,z,x)})};
var KC=function(a,b,c,d){this.type=a;this.A=b;this.o=c;this.B=d};
var LC=function(a){if(!a)return null;var b=dA(a.type,MC,"rect"),c=iA(a.rectRegion,HC),d=iA(a.anchoredRegion,JC);a=iA(a.shapelessRegion,HC);return new KC(b,c,d,a)};
var NC=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};
var OC=function(a,b){this.A=a;this.o=b};
var PC=function(a,b){this.state=a;this.o=b};
var QC=function(a){if(!a)return null;var b=dA(a.state,RC);a=aA(a.ref);return b?new PC(b,a):null};
var SC=function(a,b,c,d){this.o=a||[];this.B=b||[];this.C=c;this.A=d;this.value=!1};
var TC=function(a){if(!a)return null;var b=iA(a.condition,QC),c=iA(a.notCondition,QC),d=eA(a.show_delay,!1);a=eA(a.hide_delay,!1);return b||c?new SC(b,c,d,a):null};
var UC=function(a,b,c){F(a.o,pa(b,!1),c);F(a.B,pa(b,!0),c)};
var VC=function(a,b,c,d,e,f,k,l,m,p,u,v,z,x,ga,wa){this.id=a;this.author=b;this.type=c;this.style=d;this.F=e;this.A=f;this.D=k||[];this.J=l||[];this.o=m;this.H=p;this.C=u;this.G=v;this.B=x;this.data=ga;this.Ra=wa};
var WC=function(a){if(!a)return null;var b=aA(a.id),c=aA(a.author),d=dA(a.type,XC),e=dA(a.style,YC),f=cA($z(a.TEXT)),k=cA(a.data),k=0!=k.length?be(k):{},l;var m=$z(a.segment);m?(aA(m.timeRelative),l=aA(m.spaceRelative),l=(m=iA(m.movingRegion,LC))?new OC(l,m):null):l=null;var m=iA(a.action,sC),p=iA(a.trigger,TC),u=wC($z(a.appearance));u||(u=wC({}));var v=dA(a.coordinate_system,ZC,"video_relative"),z;z=(z=$z(a.image_source))?new yC(cA(z.standard_url),cA(z.video_id)):null;var x=eA(a.closeable,!0),ga=
cA(a.html_blob);a=cA(a.log_data);return b&&d?new VC(b,c,d,e,f,l,m,p,u,v,z,x,0,ga,k,a):null};
var $C=function(a){return(a=aD(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null};
var bD=function(a){return cD(a,function(a){return"click"==a.trigger})};
var cD=function(a,b){return Ih(a.D,b,void 0)};
var dD=function(a,b,c){F(a.D,b,c)};
var aD=function(a,b){return eb(a.D,b,void 0)};
var eD=function(a,b,c){F(a.J,b,c)};
var fD=function(a,b){O(a.J,b,void 0)};
var gD=function(a){return(a=hD(a))?NC(a):null};
var hD=function(a){a.A?(a=a.A,a=a.o.length?a.o[0]:null):a=null;return a};
var iD=function(a,b){var c=gD(a);return c&&b?BC(b,c.A,c.o?c.o:"xy"):1};
var jD=function(a,b,c){oC.call(this,a,b,c);this.G=this.C=this.H=!1;this.F=5E3;this.o=null;this.sg=M("div","iv-promo-contents");this.A=this.B=this.Rb=null;this.D=new Ud(function(){this.Rb.setAttribute("aria-hidden",!0);Oq(this.B);Nq(this.A)},700,this)};
var kD=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.ka().setAttribute("aria-hidden",!0);a.ka().setAttribute("aria-label",P("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.ka().tabIndex=0;var e;if(b.image_url){e=M("div",["iv-promo-img","iv-click-target"]);var f=M("img",{src:b.image_url,"aria-hidden":"true"});e.appendChild(f);b.video_duration&&
!b.is_live?(f=M("span","iv-promo-video-duration",b.video_duration),e.appendChild(f)):b.playlist_length&&(f=M("span","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(f));a.Nf(e,$C(a.annotation),a.annotation.id,a.annotation.Ra,null,c)}f=$C(a.annotation);a.Rb=f?M("a",{href:oA(f),"class":"iv-promo-txt"}):M("div","iv-promo-txt");var k,l,m;switch(a.annotation.style){case "cta":case "website":k=M("p",null,M("strong",null,b.text_line_1));l=M("p",null,M("span","iv-promo-link",b.text_line_2));
K(a.Rb,"iv-click-target");a.Nf(a.Rb,$C(a.annotation),a.annotation.id,a.annotation.Ra,null,c);break;case "playlist":case "video":k=M("p",null,M("span",null,b.text_line_1));l=M("p",null,M("strong",null,b.text_line_2));b.is_live&&(k=l,l=M("span",["yt-badge","iv-promo-badge-live"],P("YTP_LIVE_NOW")));K(a.Rb,"iv-click-target");a.Nf(a.Rb,$C(a.annotation),a.annotation.id,a.annotation.Ra,null,c);d.push("iv-promo-video");break;case "vote":k=M("p",null,M("strong",null,b.text_line_1)),l=M("p",null,M("span",
null,b.text_line_2)),m=M("div","iv-promo-button-container"),c=M("button",["iv-button","iv-promo-button"],M("span","iv-button-content",b.button_text)),a.context.o.R(c,"click",function(a){a.stopPropagation();iB(this.context.logger,this.annotation.Ra,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.Rb=$e("iv-promo-txt",this.sg);a=$e("iv-promo-button-container",this.sg);var d=M("div",["iv-promo-txt","iv-click-target"]),e=M("p",null,M("strong",null,c.text_line_3)),c=M("p",
null,c.text_line_4);nf(d,e,c);qf(a);rf(d,this.Rb);Zd(this.ka(),"iv-promo-with-button");this.Nf(d,$C(this.annotation),this.annotation.id,this.annotation.Ra)},a),m.appendChild(c),d.push("iv-promo-with-button")}k&&a.Rb.appendChild(k);
l&&a.Rb.appendChild(l);a.sg.appendChild(a.Rb);m&&a.sg.appendChild(m);k=M("div","iv-promo-actions");a.A=M("button",["iv-promo-expand","ytp-button"]);a.A.title=P("YTP_EXPAND");a.context.o.R(a.A,"click",pa(a.Jk,5E3),a);k.appendChild(a.A);Oq(a.A);a.context.o.R(a.ka(),"mouseover",a.tw,a);a.context.o.R(a.ka(),"mouseout",a.rw,a);a.context.o.R(a.ka(),"touchend",pa(a.Jk,5E3),a);a.B=M("button",["iv-promo-close","ytp-button"]);a.B.title=P("YTP_CLOSE");a.context.o.R(a.B,"click",a.eE,a);k.appendChild(a.B);Yd(a.ka(),
d);e&&mf(a.ka(),e);mf(a.ka(),a.sg);mf(a.ka(),k)};
var lD=function(a){a.C||a.G||a.o||(K(a.ka(),"iv-promo-collapsed"),a.C=!0,a.D.start())};
var mD=function(a){a.D.stop();a.C&&(Zd(a.ka(),"iv-promo-collapsed"),a.C=!1,a.Rb&&a.Rb.removeAttribute("aria-hidden"),Oq(a.A),Nq(a.B))};
var nD=function(a,b){a.o||(a.o=Sd(function(){this.o&&(Td(this.o),this.o=null);lD(this)},b,a))};
var oD=function(a,b,c){this.o={};this.A=!1;this.D="ivTrigger:"+a;this.B=c;UC(b,function(a,b){var c=pD(b.state,b.o);this.B.subscribe(c,A(this.C,this,c,a));this.o[c]=a},this)};
var pD=function(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};
var qD=function(a,b,c){this.B=a;this.annotation=b;this.o=c;this.A=null;this.C=this.isVisible=!1;rD(b,a)};
var rD=function(a,b){fD(a,function(c){return new oD(a.id,c,b)})};
var sD=function(a){a.B.unsubscribe("onResize",a.Pr,a);a.B.unsubscribe("onVideoAreaChange",a.hq,a)};
var tD=function(a){a.A&&(a.A.stop(),a.A=null)};
var uD=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
var vD=function(){};
var wD=function(a,b,c,d,e,f,k,l){this.D=a;this.G=b;this.F=c;this.H=d;this.o=e;this.A=f;this.B=n(k)?k:null;this.C=n(l)?l:null};
var xD=function(){this.ua=[];this.xa=[];this.dc=[]};
var yD=function(a,b,c){0==db(a.ua)?a.dc.length-=2:(a.ua.push(0),a.xa.push(1));a.dc.push(b,c);a.Pb=a.Oc=[b,c]};
var zD=function(a,b,c,d){var e=a.Pb[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.Pb[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);a.ua.push(3);a.xa.push(1);a.dc.push(b,c,d,90,e,f);a.bh=!1;a.Pb=[e,f]};
var AD=function(a,b){for(var c=a.dc,d=0,e=0,f=a.ua.length;e<f;e++){var k=a.ua[e],l=BD[k]*a.xa[e];b(k,c.slice(d,d+l));d+=l}};
var CD=function(a,b){this.J=a;this.K=null==b?1:b};
var DD=function(a,b,c){this.B=a;this.o=b;this.A=null==c?1:c};
var ED=function(){};
var FD=function(a){dd.call(this);this.M=a||Ue();this.S=null;this.Ke=!1;this.o=null;this.D=void 0;this.F=this.H=this.J=null};
var GD=function(a,b){a.H&&F(a.H,b,void 0)};
var HD=function(a,b,c,d,e){FD.call(this,e);this.width=a;this.height=b;this.C=c||null;this.K=d||null};
var ID=function(a){var b=a.Cg();return b?b.width/(a.C?new re(a.C,a.K):a.Cg()).width:0};
var JD=function(a,b){dd.call(this);this.Eg=a;this.Dk=b;this[Dc]=!1};
var KD=function(a,b,c,d){JD.call(this,a,b);a=this.Dk;b=this.ka();c?(b.setAttribute("stroke",c.o),b.setAttribute("stroke-opacity",c.A),c=c.getWidth(),y(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/ID(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.Dk;a=this.ka();if(d instanceof CD)a.setAttribute("fill",d.J),a.setAttribute("fill-opacity",d.K);else if(d instanceof wD){b="lg-"+d.D+"-"+d.G+"-"+d.F+"-"+d.H+"-"+d.o+"-"+d.A;var e=
LD(c,b);if(!e){var e=MD(c,"linearGradient",{x1:d.D,y1:d.G,x2:d.F,y2:d.H,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.o;fa(d.B)&&(f+=";stop-opacity:"+d.B);f=MD(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.A;fa(d.C)&&(f+=";stop-opacity:"+d.C);d=MD(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=ND(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")};
var OD=function(a,b){JD.call(this,a,b)};
var PD=function(a,b){JD.call(this,a,b)};
var QD=function(a,b,c,d){KD.call(this,a,b,c,d)};
var RD=function(a,b){JD.call(this,a,b)};
var SD=function(a,b,c,d){KD.call(this,a,b,c,d)};
var TD=function(a,b){JD.call(this,a,b)};
var UD=function(a,b,c,d,e){HD.call(this,a,b,c,d,e);this.A={};this.O=wc&&!yc(526);this.L=new Cm(this)};
var MD=function(a,b,c){a=a.M.o.createElementNS("http://www.w3.org/2000/svg",b);c&&VD(a,c);return a};
var VD=function(a,b){for(var c in b)a.setAttribute(c,b[c])};
var WD=function(a,b,c,d){b=MD(a,"path",{d:XD(b)});c=new SD(b,a,c,d);a.B.ka().appendChild(c.ka())};
var XD=function(a){var b=[];AD(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(" ")};
var ND=function(a,b,c){if(b in a.A)return a.A[b];var d="_svgdef_"+YD++;c.setAttribute("id",d);a.A[b]=d;a.G.appendChild(c);return d};
var LD=function(a,b){return b in a.A?a.A[b]:null};
var ZD=function(){$D||($D=new Qd(400),$D.start());return $D};
var aE=function(){this.o=!1;this.D=this.B=null};
var bE=function(a,b,c){a.B?(a.B.setSize(b,c),a.B.clear()):(b=new UD(b,c,void 0,void 0,void 0),a.B=b,a.B.mo(),a.D=M("div"),b=a.B.ka(),a.D.appendChild(b));return a.B};
var cE=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};
var dE=function(a,b){var c;c=":"+(ED.getInstance().o++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};
var eE=function(a,b){var c=dE(a,cE("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=dE(a,cE("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},cE("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=dE(a,cE("feComposite",{"in":c,in2:b,operator:"in"}));return dE(a,cE("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))};
var fE=function(a,b){var c=dE(a,cE("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=dE(a,cE("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=dE(a,cE("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=dE(a,cE("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=dE(a,cE("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=dE(a,cE("feComposite",{operator:"out","in":c,in2:d}));return dE(a,cE("feComposite",{operator:"over","in":b,
in2:c}))};
var gE=function(a,b){return b};
var hE=function(a){var b=cE("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";F(a,function(a){a:{switch(a){case "bevel":a=eE;break a;case "dropshadow":a=fE;break a}a=gE}c=a(b,c)});
return b};
var iE=function(a){a=$d(a,function(a){return a in jE});
Bb(a,function(a,c){return jE[a]-jE[c]});
return a};
var kE=function(a){return eb(a,function(a){return"dropshadow"==a})?new qe(0,7,7,0):new qe(0,0,0,0)};
var lE=function(a,b,c,d,e){var f=d?d.getWidth()/2+1:0;b=mE(b,c,f);WD(a,b,d,e)};
var mE=function(a,b,c){var d=new xD;yD(d,a.left+b+c,a.top+c);d.sb(a.left+a.width-b-c,a.top+c);zD(d,b,b,-90);d.sb(a.left+a.width-c,a.top+a.height-b-c);zD(d,b,b,0);d.sb(a.left+b+c,a.top+a.height-c);zD(d,b,b,90);d.sb(a.left+c,a.top+b+c);zD(d,b,b,180);d.close();return d};
var nE=function(a,b,c,d){var e=a.M;return e?new wD(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 CD(a.C,oE(d,a.A))};
var oE=function(a,b){return a?Math.max(b,.9):b};
var pE=function(a,b){var c=ue(a),d=kE(b);ia(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=void 0,c.bottom+=void 0,c.left-=window.NaN);return new te(c.left,c.top,c.right-c.left,c.bottom-c.top)};
var qE=function(a,b,c){if(c.length&&(b=Ze("g",void 0,b),b.length)){var d=iE(c);if(d){c="effects:"+(d?d.join("|"):"");var e=LD(a,c);e?a=e:(d=hE(d),a=0<d.childNodes.length?ND(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};
var rE=function(){aE.call(this);this.C=0};
var sE=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"};
var tE=function(){aE.call(this)};
var uE=function(a,b,c){aE.call(this);this.C=a||0;this.G=b||0;this.F=c||!1};
var vE=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 te(e,f,c,d)};
var wE=function(){aE.call(this)};
var xE=function(){rE.call(this)};
var yE=function(a,b){this.o=a;this.A=b||null};
var GC=function(a,b){var c;c=a.A?FC(a.A,new yE(a.o)):a.o;var d=b.clone(),e=c.left;c=c.top;e instanceof oe?(d.left+=e.x,d.top+=e.y):(d.left+=e,fa(c)&&(d.top+=c));return d};
var zE=function(a,b,c,d,e){this.o=a;this.U=b;this.F=c;this.Da=d;this.aa=e;this.S=!1;this.G=new xz(this);this.O=this.D=this.H=this.M=this.A=null;this.Y=!1;this.Z=this.K=this.L=null;this.vl=new Am(this.qw,100,this);this.J=new Ud(this.ro,500,this);this.V=this.B=this.C=null};
var AE=function(a,b){var c=A(function(a,c,f){c=f?BE(this,c,A(f,this)):BE(this,c);this.G.R(b,a,c)},a);
c("mouseover","d",a.Qr);c("mouseout","c",a.Rg);c("click","a");c("touchend","a")};
var CE=function(a){if(a.o.G){var b;cD(a.o,function(a){return"close"==a.type})?b=a.A:(a.C=M("div",["annotation-close-button",
"hid"]),ri(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",BE(a,"b",c));a.G.R(b,"touchend",BE(a,"b",c))}};
var BE=function(a,b,c){return A(function(a){if(this.aa)c&&c(a);else if(a.event.target instanceof window.Element){var e=a.event.target;Oq(e);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(Hf(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{Nq(e)}}e=jg(a.target);a=new oe(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.Da.P(b,this.o)},a)};
var DE=function(a){if(a.A||a.B){var b=gD(a.o);if(b){var c=EE(a);if(a.A){var b=FC(b,c),d=FE(GE(a.F));eg(a.A,b.width,b.height);Tf(a.A,b.left,b.top);a.M=new te(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=gD(a.o))&&d?AC(d,e.C,e.o?e.o:"xy"):1;var f=iD(a.o,d),d=a.o.o;d.J?d=d.J:(d="speech"==a.o.style?1.6:.8,d=new qe(d,d,d,d));d=new qe(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,l=0,m=0,p;p=FE(GE(a.F));var u=a.F.app.ea,v=GE(u.o).Ma(),v=new te(0,0,v.width,v.height);if(u.B.A&&!HE(u)){if(u.o.W().Ga){var z=IE(u)?69:48;v.top+=z;v.height-=z}u.F&&(v.height-=IE(u.F.C)?72:50)}ve(p,v)?p=null:(v.top+=20,v.height-=40,"player_relative"!=a.o.H&&(v.left-=p.left,v.top-=p.top),p=v);p&&(l=p.top-(b.top+b.height),m=b.top-(p.top+p.height),k=0<l||0<m);if(k&&p){d=p;e=l;var f=m,x;a.D&&(m=JE(a,23,b,e,f),a.C&&
(x=43-m.width,0<x&&(b.left+m.left-x>d.left&&(m.left-=x),m.width+=x)),x=m,eg(a.D,m.width,m.height),Tf(a.D,m.left,m.top));a.C&&(x?b=new oe(x.left+x.width-23-18,a.Y?x.top+2:x.top+x.height-18-2):(x=JE(a,18,b,e,f),b=new oe(x.left,x.top),eg(a.C,x.width,x.height)),Tf(a.C,b));a.O=new te(a.M.left+x.left,a.M.top+x.top,x.width,x.height);a.L=a.G.R(GE(a.F),"mousemove",a.cE)}else a.D&&(x=e/f*d.height*4.2/100,x=new re(x,x),"highlight"==a.o.type||"label"==a.o.style?(e=1.5*d.height/100,x=new te(b.width-x.width-e,
b.height-x.height-e,x.width,x.height)):x=new te(b.width-x.width-3*d.height/100,(b.height-x.height)/2,x.width,x.height),eg(a.D,x.width,x.height),Tf(a.D,x.left,x.top)),a.C&&(x=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,Tf(a.C,x&&e?new oe(b.width-9,-9):x?new oe(b.width-9,45<b.height?9:b.height-9):e?new oe(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new oe(45<b.width?b.width-9-18:-9,b.height-9):new oe(-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.L:b.F;x=FE(GE(a.F));c.style.fontSize=360*b.textSize*iD(a.o,x)/100+"px";x=a.o.style;c.style.textAlign=b.K?b.K:"title"==x||"highlightText"==x?"center":"left";b.H&&(c.style.fontWeight=b.H);a=a.A;c=a.style.overflow;b=$e("annotation-link-icon",a);x=Mq(b);d=$e("annotation-close-button",a);e=Mq(d);b&&x&&Oq(b);d&&e&&Oq(d);m=f="";if(l=$e("inner-text",a))f=l.style.overflow,m=l.style.position,l.style.overflow="visible",l.style.position="static";a.style.overflow="scroll";
if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){p=k=ng(a);u=5;for(v=Math.floor(k/2);v;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(u=p,p=Math.min(p+v,k)):p=Math.max(p-v,u),v=Math.floor(v/2),a.style.fontSize=p+"px";p!=u&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=u+"px")}a.style.overflow=c;l&&(l.style.overflow=f,l.style.position=m);d&&e&&Nq(d);b&&x&&Nq(b)}}}};
var JE=function(a,b,c,d,e){var f=0<e;b=new te(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),K(a.A,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),K(a.A,"annotation-extend-up"),a.Y=!0);return b};
var KE=function(a){return"label"!=a.o.style||a.B.o};
var EE=function(a){var b;b=FE(GE(a.F));if("player_relative"==a.o.H){var c=GE(a.F).Ma();b=new te(-b.left,-b.top,c.width,c.height)}else b=new te(0,0,b.width,b.height);return new yE(b,a.V?gD(a.V):null)};
var LE=function(a,b){return b?new te(a.x+b.left,a.y+b.top,b.width,b.height):null};
var ME=function(a){mq.call(this,a);this.ea=!0;this.sa="iv-module";this.H="iv";this.K=0;this.B={};this.L={};this.D=new dB(0,a);a=NE;this.subscribe("onHideControls",this.Cz,this);this.subscribe("onShowControls",this.NA,this);this.subscribe("onStateChange",this.rA,this);this.subscribe("d",this.YD,this);this.subscribe("c",this.Rg,this);this.subscribe("a",this.my,this);this.subscribe("b",this.Ry,this);this.subscribe("vast_info_card_add",this.jB,this);this.subscribe("cards_drawer_set_visible",this.Fy,this);
this.O=M("DIV",[a.cu,"html5-stop-propagation"]);this.U=M("DIV",a.Bt);this.C=null;a=M("DIV",a.ft,this.O,this.U);K(a,this.sa);GE(this.o).U.appendChild(a);this.F=this.A=null;this.M=[]};
var OE=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){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(OE(a,e))}return c};
var PE=function(a,b,c){return!(a.loaded&&a.K==b&&a.o.getVideoData().videoId==c)};
var QE=function(a,b){var c=RE(a,b);if(!c&&"marker"!=b.type)return null;eD(b,function(a){a=A(this.fB,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new qD(a.S,b,c)};
var SE=function(a,b){var c=ME.o(),d=null;switch(b.type){case "branding":if(a.o.W().wc)break;a.C.element.appendChild(c);d=new pC(c,TE(a),b);break;case "promotion":Uq(a.o,c,4),d=new jD(c,TE(a),b)}d&&d.$i();return d};
var UE=function(a){var b=a.o.getVideoData();if(b.af){var c=a.o.W(),d=c.J.remove(b.videoId);if(d){var e={format:"XML",xd:{}};c.experiments.ma("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.o&&(e.xd.gaming="1");e.Vb=A(function(a,b,c){PE(this,a,b)||(a=vj(c)&&c.responseXML?c.responseXML:null)&&VE(this,a)},a,a.K,b.videoId);
Fu()&&(e.Vb=WE(a,e.Vb));e.Bb={ic_only:1};XE(a,e,d);Bj(b.af,e)}}};
var XE=function(a,b,c){b.method="POST";b.Bb=b.Bb||{};c.ue&&(b.Bb.ic_xml=c.ue);c.Sf&&(b.Bb.ic_track=c.Sf);if(a=a.o.getVideoData(1))b.Bb.organic_video_id=a.videoId};
var YE=function(a,b){if(!a.A){var c=new Q(["div","hid"]);a.A=new XB(a.o,c.element,TE(a));c.o(a.C.element);a.A.$i()}var d=b&&b.data&&b.data.card_type;if(d&&ZE[d]){c=a.A;d=new ZE[d](b.id,b.data,b.Ra);c.V||(Yd(c.ka(),["html5-stop-propagation","iv-drawer-manager"]),Uq(c.ca,c.F,5),dC(c),c.V=!0);ZB(c,d.id);var e=eC(c,d);if(e){var f={Sa:d,ck:e.element,ap:!1,Fi:!1},k=fC(c,f);ub(c.A,k,0,f);e.o(c.yc,k);c.Mh();d.D?nB(c,d.startMs,0x8000000000000,d.id,pa(c.dC,f)):(e=1E3*c.context.A.getCurrentTime(),5E3>e&&e>d.startMs&&
c.Pl(f),nB(c,d.startMs,d.startMs+1,d.id,pa(c.Pl,f)))}}bC(a.o)};
var TE=function(a){a.F||(a.F=new qC(new xz(a),a.o.W(),a.o.getVideoData(),a.D,a.o,a.S));return a.F};
var VE=function(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=OE(a,c[d]),f=null;try{f=WC(e)}catch(k){}f&&(ME.C(f)?(e=SE(a,f))&&(a.L[f.id]=e):ME.B(f)?YE(a,f):(e=QE(a,f))&&(a.B[f.id]=e))}Ob(a.B,function(a){var b=a.annotation;b.A&&b.A.A&&(b=this.B[b.A.A])&&(a.o.V=b.annotation)},a)};
var $E=function(a,b,c,d){d?aF(a,b,c):bF(a,b,c)};
var bF=function(a,b,c){if(b=a.B[b])tD(b),c&&c.A?(a=A(a.qo,a,b),b.A=new Ud(a,2E3),b.A.start()):a.qo(b)};
var aF=function(a,b,c){if(b=a.B[b])tD(b),c&&c.C?(a=A(a.Pq,a,b),b.A=new Ud(a,2E3),b.A.start()):a.Pq(b)};
var cF=function(a,b,c){if("new"==b.target)return!1;var d=oA(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!pA(d))return!1;d=qj(d);if(d.list||d.p)return!1;b=sA(b);if(!b)return!1;if(c==b)return!0;a=a.o.W();return a.L&&a.ha?!0:!1};
var RE=function(a,b){if(dF(b)){var c=b.G||cD(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new zE(b,A(a.O.appendChild,a.O),a.o,a.S,c)}return null};
var dF=function(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in YC)if(a.style==YC[b])return!0;return!1};
var eF=function(a,b,c,d){a.P(pD(b,d),c,d)};
var WE=function(a,b){return A(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=pa.apply(window,a);this.M.push(Gu(b,void 0))}},a)};
var fF=function(a){return!!a.A&&a.A.isAvailable()};
var gF=function(a){fF(a);return!!a.A&&a.A.D};
var hF=function(a,b){fF(a);a.A&&(b?aC(a.A):cC(a.A))};
var iF=function(a,b,c){a.P("publish_external_event",b?"cardsteasershow":"cardsteaserhide",c)};
var jF=function(a){this.ca=a;this.A=null;this.o=new te(0,0,0,0);this.D=new re(0,0);this.C=this.B=0;kF&&yc(11)&&(this.A=window.document.createElement("canvas").getContext("2d"),yc(12.10532)||(this.B=3))};
var lF=function(a,b){if(null===a.A)return b;var c=new re(b.videoWidth,b.videoHeight);if(!se(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=mF(GE(a.ca)),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?nF(a,b,0,0,a.o.width,a.o.top-1):nF(a,b,
0,b.videoHeight-a.o.top+1,a.o.width,a.o.top-1))&&--a.B:2<=a.o.left&&(a.C?nF(a,b,0,0,a.o.left-1,a.o.height):nF(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};
var nF=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};
var oF=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 jF(a)};
var pF=function(a,b){oF.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};
var qF=function(a,b){if(!(b.da||Fl&&!lt()))return!1;if(ix(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};
var rF=function(a,b){oF.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.ca=a;this.J=a.W().experiments.ma("white_noise_with_interval");this.C=0};
var sF=function(a,b){rF.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};
var tF=function(){this.o=new window.Float32Array(16);this.B=new window.Float32Array(16);this.A=new window.Float32Array(16);this.identity()};
var uF=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};
var vF=function(a,b){this.J=a;this.S=b;this.D=new tF;this.Z=this.Y=this.aa=this.Da=null;this.B=.872;this.O=this.U=this.V=this.A=this.o=0;this.F=!0;this.H=3.14;this.C=0;this.K=new jF(a)};
var wF=function(a,b){vF.call(this,a,b);this.M=null;this.G=0;this.L=!0};
var xF=function(){};
var yF=function(a,b,c){return a[b]=a[b]||c};
var zF=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1};
var AF=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};
var BF=function(){var a;if((a=Object.create)&&CF.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a};
var DF=function(){var a=EF.href,b;if(FF.dpo)b=FF.h;else{b=FF.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};
var GF=function(a){var b=yF(FF,"PQ",[]);FF.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)};
var HF=function(a){return yF(yF(FF,"H",BF()),a,BF())};
var IF=function(a,b,c){b&&0<b.length&&(b=JF(b),c&&0<c.length&&(b+="___"+JF(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=yF(KF,"_p",BF()),yF(b,c,BF())[a]=(new Date).getTime(),b=LF.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))};
var JF=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};
var MF=function(a){throw Error("Bad hint"+(a?": "+a:""));};
var NF=function(a,b,c,d){var e=a.split(";"),f=e.shift(),k=OF[f],l=null;k?l=k(e,b,c,d):MF("no hint processor for: "+f);l||MF("failed to generate load url");b=l;c=b.match(PF);(d=b.match(QF))&&1===d.length&&RF.test(b)&&c&&1===c.length||MF("failed sanity: "+a);return l};
var SF=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}
a=TF(a);UF.test(c)||MF("invalid_callback");b=VF(b);d=d&&d.length?VF(d):null;return[(0,window.encodeURIComponent)(a.GB).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.vn?"/am="+e(a.vn):"",a.sq?"/rs="+e(a.sq):"",a.Rs?"/t="+e(a.Rs):"","/cb=",e(c)].join("")};
var TF=function(a){"/"!==a.charAt(0)&&MF("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))MF("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]),l=(0,window.decodeURIComponent)(f[1]);2==f.length&&k&&l&&(a[k]=a[k]||l)}b="/"+c.join("/");WF.test(b)||MF("invalid_prefix");c=XF(a,"k",!0);d=XF(a,"am");e=XF(a,"rs");
a=XF(a,"t");return{GB:b,version:c,vn:d,sq:e,Rs:a}};
var VF=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");YF.test(e)&&b.push(e)}return b.join(",")};
var XF=function(a,b,c){a=a[b];!a&&c&&MF("missing: "+b);if(a){if(ZF.test(a))return a;MF("invalid: "+b)}return null};
var $F=function(){var a=DF();if(!a)throw Error("Bad hint");return a};
var aG=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>zF.call(b,e)&&c.push(e)}return c};
var bG=function(a){"loading"!=cG.readyState?dG(a):cG.write("<"+eG+' src="'+(0,window.encodeURI)(a)+'"></'+eG+">")};
var dG=function(a){var b=cG.createElement(eG);b.setAttribute("src",a);b.async="true";(a=cG.getElementsByTagName(eG)[0])?a.parentNode.insertBefore(b,a):(cG.head||cG.body||cG.documentElement).appendChild(b)};
var fG=function(a,b){var c=b&&b._c;if(c)for(var d=0;d<gG.length;d++){var e=gG[d][0],f=gG[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}};
var hG=function(a,b,c){iG(function(){var c;c=b===DF()?yF(jG,"_",BF()):BF();c=yF(HF(b),"_",c);a(c)},c)};
var kG=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);fG(a,c);var d=a?a.split(":"):[],e=c.h||$F(),f=yF(FF,"ah",BF());if(f["::"]&&d.length){for(var k=[],l=null;l=d.shift();){var m=l.split("."),m=f[l]||f[m[1]&&"ns:"+m[0]||""]||e,p=k.length&&k[k.length-1]||null,u=p;p&&p.hint==m||(u={hint:m,features:[]},k.push(u));u.features.push(l)}var v=k.length;if(1<v){var z=c.callback;z&&(c.callback=function(){0==--v&&z()})}for(;d=k.shift();)lG(d.features,c,d.hint)}else lG(d||[],c,e)};
var lG=function(a,b,c){function d(a,b){if(v)return 0;mG.clearTimeout(u);z.push.apply(z,ga);var d=((jG||{}).config||{}).update;d?d(f):f&&yF(FF,"cu",[]).push(f);if(b){IF("me0",a,x);try{hG(b,c,p)}finally{IF("me1",a,x)}}return 1}
a=AF(a)||[];var e=b.callback,f=b.config,k=b.timeout,l=b.ontimeout,m=b.onerror,p=void 0;"function"==typeof m&&(p=m);var u=null,v=!1;if(k&&!l||!k&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var m=yF(HF(c),"r",[]).sort(),z=yF(HF(c),"L",[]).sort(),x=[].concat(m);0<k&&(u=mG.setTimeout(function(){v=!0;l()},k));
var ga=aG(a,z);if(ga.length){var ga=aG(a,m),wa=yF(FF,"CP",[]),J=wa.length;wa[J]=function(a){function b(){var a=wa[J+1];a&&a()}
function c(b){wa[J]=null;d(ga,a)&&GF(function(){e&&e();b()})}
if(!a)return 0;IF("ml1",ga,x);0<J&&wa[J-1]?wa[J]=function(){c(b)}:c(b)};
if(ga.length){var X="loaded_"+FF.I++;jG[X]=function(a){wa[J](a);jG[X]=null};
a=NF(c,ga,"gapi."+X,m);m.push.apply(m,ga);IF("ml0",ga,x);b.sync||mG.___gapisync?bG(a):dG(a)}else wa[J](xF)}else d(ga)&&e&&e()};
var iG=function(a,b){if(FF.hee&&0<FF.hel)try{return a()}catch(c){b&&b(c),FF.hel--,kG("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;
}};
var nG=function(){Rj.call(this);this.o={}};
var oG=function(a,b,c){if(!a.o[b]&&(c.ue||c.Sf)){var d=a.o,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.P("vast_info_card_add",b)}};
var pG=function(){if(null==t("_lact",window)){var a=(0,window.parseInt)(zi("LACT"),10),a=(0,window.isFinite)(a)?I()-Math.max(a,0):-1;q("_lact",a,window);-1==a&&qG();Nl(window.document,"keydown",qG);Nl(window.document,"keyup",qG);Nl(window.document,"mousedown",qG);Nl(window.document,"mouseup",qG);Ii("page-mouse",qG);Ii("page-scroll",qG);Ii("page-resize",qG)}};
var qG=function(){null==t("_lact",window)&&(pG(),t("_lact",window));var a=I();q("_lact",a,window);Pi("USER_ACTIVE")};
var NA=function(){var a=t("_lact",window);return null==a?-1:Math.max(I()-a,0)};
var rG=function(a){G.call(this);a=ec(a);this.M={};this.experiments=new CA(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.na=b;this.G=(this.L=sG.test(this.na))?Bu("",a.loaderUrl):this.na;this.cb=Wp(this.G);this.protocol=(this.mg=(this.Yb=yu(!1,a.ssl_stream))||yu(!1,a.ssl))?"https":"http";this.baseYtUrl=Tp(a.BASE_YT_URL,this.experiments.ma("legacy_base_url"))||Tp(this.na,this.experiments.ma("legacy_base_url"))||this.protocol+
"://www.youtube.com/";"adunit"==a.el?tG.test(this.G)?this.Aa="adunit":this.Aa="embedded":this.experiments.ma("legacy_el")?this.Aa=a.el||this.Aa:"embedded"==a.el||this.cb?this.Aa=zu(this.Aa,a.el,uG):a.el&&(this.Aa="embedded");pG();b=null;var c=a.ps,d=E(vG,c);!c||d&&!this.cb||(b=c);this.o=b;this.Ab=E(vG,this.o);this.C="blogger"==this.o||"books"==this.o||"docs"==this.o||"google-live"==this.o||"picasaweb"==this.o;this.tb=!this.C;this.kg=yu(!this.C,a.showwatchlater);this.A={};this.A.c=a.c||"web";this.A.cver=
"html5";this.A.cplayer="UNIPLAYER";this.gb=yu(!1,a.edu_mode);this.U=!(!vt().defaultPlaybackRate||Lf&&!mt("chrome")||Jw||wG||mt("android")||mt("silk"));a.use_media_volume?b=!1:(b=vt(),c=b.muted,b.muted=!c,b=b.muted!=c);this.nb=b;this.Ze=xG;(Jw||wG||Ft)&&"blazer"!=this.o&&yG(this);this.Ga=yu("adunit"!=this.Aa&&"detailpage"!=this.Aa&&!this.Ab,a.showinfo);this.isMobile=yu("blazer"==this.o,a.is_html5_mobile_device);this.Ob=yu(!1,a.playsinline);b=this.isMobile&&zG&&2.3>=Pv;c=AG(this)||!b&&yu("native"==
this.o,a.use_native_controls)?"3":"1";this.B="0"!=a.controls?c:"0";this.useTabletControls=this.experiments.ma("disable_new_tablet_mode_behavior")?yu("blazer"==this.o||"touch"==this.o,a.use_tablet_controls):this.isMobile;this.color=zu("red",a.color,BG);this.ne="3"==this.B||yu(!1,a.modestbranding)&&"red"==this.color;yu(!1,a.nologo)&&(c=this.G,CG.test(c),Wp(c));this.uc=(c=!DG(this)&&"detailpage"!=this.Aa&&!this.C&&!this.Ab)&&!this.ne&&"1"==this.B;this.wc="embedded"==this.Aa&&c&&!this.Ga&&!this.uc;this.lg=
this.oe=b;this.H=wG?this.experiments.Da&&7<=Kw:!0;this.qb=this.L||!1;this.O="detailpage"==this.Aa?"":(this.G||a.post_message_origin||"").substring(0,128);this.$a=!!a.disableCast;this.autoplay=yu(!1,a.autoplay);this.ge=yu(!1,a.autoplayoverride);this.zd=this.autoplay||"detailpage"==this.Aa;b=this.ge||!this.isMobile&&!tt();this.Ca=this.zd&&b;b="detailpage"==this.Aa&&"blazer"==this.o;this.va=!yu(!0,a.fs);this.La=!this.va&&(b||Kh());this.vc=yu(!this.Ab,a.rel);this.jg="adunit"!=this.Aa;this.Z="profilepage"==
this.Aa;this.Ea="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.aa=b;this.zb=Bu("",a.authuser);this.ab=yu(!1,a.disablekb);this.pageId=Bu("",a.pageid);this.pe=Eu(Zt,a.vq);this.qe=Bu("",a.playerapiid);this.ig=yu(!0,a.canplaylive);this.he=yu(this.Ab,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 re(b,c))):b=null;this.ad=b;this.mute=this.cb&&yu(!1,a.mute);this.storeUserVolume=!this.mute&&yu("0"!=this.B,a.store_user_volume);this.useMediaVolume=yu(!1,a.use_media_volume);this.$e=yu(!1,a.retryneterr)&&this.cb;this.Cd="3"==this.B?3:zu(void 0,a.iv_load_policy,Ow);this.ha=yu(!1,a.iv_allow_in_place_switch);this.Oa=Bu("",a.cc_lang_pref);this.da=zu(void 0,a.cc_load_policy,
Ow);this.ea=void 0==a.content_v?void 0:a.content_v.toString();this.ie=void 0==a.framer?void 0:a.framer.toString();this.Y=Bu("en_US",a.hl);this.region=Bu("US",a.cr);this.hostLanguage=Bu("en",a.host_language);this.ke=yu(!1,a.privembed);this.Nb="";this.qa=new Zj;this.K=yu(!0,a.deviceHasDisplay);this.Ua=Au(this.Ua,a.ismb);EG(this,a);this.M=a;this.J=new nG;this.V=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.ma("disable_innertube_config_reporting")||Fi(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.je={apiaryHost:Bu("",b.apiary_host),nJ:Bu("",b.apiary_host_firstparty),gapiHintOverride:yu(!1,b.gapi_hint_override),gapiHintParams:Bu("",b.gapi_hint_params),innertubeApiKey:Bu("",b.innertube_api_key),
innertubeApiVersion:Bu("",b.innertube_api_version),Ax:this.A.c,innertubeContextClientVersion:Bu("",b.innertube_context_client_version),Cx:this.hostLanguage,Bx:this.region};this.ac=void 0!=window.WebKitPlaybackTargetAvailabilityEvent&&yu(!1,a.airplay_button);this.F=new Nv(this.K,"web"==this.A.c.toLowerCase().substr(0,3)||ot()||pt())};
var FG=function(a,b){a.Va=b.get("d",a.Va);a.Ia=b.get("f",a.Ia)};
var EG=function(a,b){a.D=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&Yb(GG,c)&&Yb(HG,c)?HG[c]+"_"+GG[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length){var e=d[3],d=!(1==d[1]&&8==e)&&(6==e||7==e||8==e||10==e);if(a.L||a.cb||d)a.D=c,a.M.adformat=b.adformat,d||(a.Aa="adunit")}}if(c=b.video_id&&b.video_id!=a.Nb)a.Nb=b.video_id;if(b.adpings||c)a.Bd=b.adpings?oj(b.adpings):null;a.gb?d="s.youtubeeducation.com":a.tb?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||
"s.youtube.com",a.experiments.ga&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.bd=d;a.xc="//"+a.bd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.ia=d,a.M.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.M.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var f in IG)c=IG[f],d=b[c],void 0!=d&&(a.A[c]=d);!a.ga&&b.cl&&(a.ga=+b.cl);a.userAge=Au(a.userAge,b.user_age);a.userDisplayImage=Bu(a.userDisplayImage,b.user_display_image);Lw.test(a.userDisplayImage)||(a.userDisplayImage="");
a.userDisplayName=Bu(a.userDisplayName,b.user_display_name);a.userGender=Bu(a.userGender,b.user_gender);a.S=Bu(a.S,b.eventid);a.S&&(vu=a.S);a.csiPageType=Bu(a.csiPageType,b.csi_page_type);a.la=Bu(a.la,b.csi_service_name);a.Ea=yu(a.Ea,b.enablecsi);b.enabled_engage_types&&(a.qa=new Zj(b.enabled_engage_types.split(",")));a.ha=yu(a.ha,b.iv_allow_in_place_switch)};
var JG=function(a,b,c){b={video_id:b,html5:1,page_subscribe:c?1:0};a.zb&&(b.authuser=a.zb);a.pageId&&(b.pageid=a.pageId);return Ug(a.baseYtUrl+"get_video_metadata",b)};
var KG=function(a){var b;b=Lg(a.baseYtUrl);var c=Mg(a.baseYtUrl);c&&(b+=":"+c);return"www.youtube-nocookie.com"==b||a.gb?"www.youtube.com":b};
var LG=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
var MG=function(a){var b={};if(a.qc){if(a.qc.getVideoPlaybackQuality)return a.qc.getVideoPlaybackQuality();a.qc.webkitDecodedFrameCount&&(b.totalVideoFrames=a.qc.webkitDecodedFrameCount,b.droppedVideoFrames=a.qc.webkitDroppedFrameCount)}return b};
var NG=function(a){return a.experiments.H?By(a)||"leanback"==a.Aa:!0};
var Qx=function(a){return"leanback"==a.Aa||a.Ab||!a.vc&&!a.Z?!1:!0};
var OG=function(a){return By(a)||"embedded"==a.Aa||"profilepage"==a.Aa?!0:!1};
var DG=function(a){return 0==a.G.indexOf(a.baseYtUrl)};
var By=function(a){return"detailpage"==a.Aa&&"gaming"!=a.o};
var AG=function(a){return wG&&!a.Ob||tt()};
var yG=function(a){return rt()||"TV"==a.A.cplatform};
var Jx=function(a,b,c){return"detailpage"==a.Aa&&"blazer"!=a.o&&!!b&&!b.ypcPreview&&!b.Fa&&!E(b.K,"ypc")&&!c};
var PG=function(a,b,c,d){this.G=c;this.C=GE(a).A;this.K=10;this.D=!0;this.V=this.S=this.Y=this.B=this.A=null;this.U=b;this.o=null;this.ca=a;this.aa=d;this.F=new te(0,0,0,0);this.L=!1;this.J=!0};
var QG=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=RG(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.S=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.Y=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.S);b.vertexAttribPointer(a.O,3,b.FLOAT,!1,0,0);a.M();a.C.crossOrigin="use-credentials";return 0};
var RG=function(a){var b=a.B,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.o.Ak());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.o.wk());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.V=e;a.o.Wc(b,a.V,a.G);return 0};
var SG=function(a){a.A&&(qf(a.A),a.A=null);a.B=null;a.D=!1;a.o&&a.o.destroy(a.aa);a.o=null;a.C.removeAttribute("crossorigin");a.C.style.display="";a.K=10};
var TG=function(a){mq.call(this,a);this.ea=!0;this.sa="webgl";this.subscribe("onResize",this.ZD,this);this.subscribe("onPlaybackQualityChange",this.kA,this);this.subscribe("onStateChange",this.Xc,this);this.C=new Q(["div","webgl"]);this.C.o(GE(a).C);this.ca=a;this.A=null;this.B=!1};
var UG=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;Lw.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.A=a.ypc_item_url;this.videoId=a.ypc_vid};
var VG=function(){Gq.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.ra["ytp-drawer-close-button"],b=yh();a.innerHTML=b;b=this.ra["ytp-drawer-open-button"];R(this,a,"click",this.C);R(this,b,"click",this.show);this.A=new Ud(pa(Zd,this.element,"ytp-drawer-closed"),0);H(this,this.A);this.Db(null);this.fa()};
var WG=function(a,b,c){Rj.call(this);this.B=0==c;this.A=new VG;this.A.subscribe("close-clicked",this.H,this);H(this,this.A);this.C=window.document.createElement("div");K(this.C,"html5-ypc-endscreen");this.F=window.document.createElement("div");K(this.F,"html5-ypc-overlay");this.D=new wq(["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}}"]]);H(this,this.D);this.G=this.D.ra["html5-ypc-purchase"];Nl(this.G,"click",A(this.J,this));Af(this.F,b.C);c=b.title;b.A&&(c=["a",{href:b.A,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.D.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.B});this.o(a)};
var XG=function(a){a.B||(a.C.appendChild(a.D.element),a.A.Db(null),Dq(a.C,"block"))};
var YG=function(a){a.B||a.A.show()};
var ZG=function(a){mq.call(this,a);this.H=this.sa="ypc";this.A=this.B=null;this.D=window.NaN;this.C=null};
var $G=function(a){return fx(a.getVideoData(),"ypc_module")?new ZG(a):null};
var aH=function(a,b,c){var d=1E4;c.C.hasOwnProperty("ypc_overlay_timeout")&&(d=(0,window.parseInt)(c.C.ypc_overlay_timeout,10));a.A=new WG(a.C.element,a.B,d);a.A.subscribe("ypcContentRequest",a.dz,a);a.A.subscribe("ypcModuleCloseClicked",a.Uz,a);a.B.videoId&&a.C.element.appendChild(a.A.F);Qx(b)&&(c=new iq(0x8000000000000,0x8000000000000,{priority:2}),a.ib([c]));YG(a.A);Di(a.D);a.D=Ai(A(function(){if(this.A&&!b.experiments.K){var a=this.A;a.B||a.A.fa()}},a),d)};
var bH=function(a,b,c){y(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 cH(a)};
var cH=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}};
var dH=function(a){if(a.kl)return 4;var b=Fh("visibilityState",window.document);return b&&"visible"!=b?3:a.Ng?2:a.ll?1:0};
var eH=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.Fm);U(this,"loadVideoById",this.Im);U(this,"cueVideoByUrl",this.hD);U(this,"loadVideoByUrl",this.sD);U(this,"playVideo",this.Yc);U(this,"pauseVideo",this.pauseVideo);U(this,"stopVideo",this.Br);U(this,"clearVideo",this.fD);U(this,"getVideoBytesLoaded",this.nD);U(this,"getVideoBytesTotal",this.oD);U(this,"getVideoLoadedFraction",this.Hm);U(this,"getVideoStartBytes",
this.pD);U(this,"cuePlaylist",this.gD);U(this,"loadPlaylist",this.wr);U(this,"nextVideo",this.xj);U(this,"previousVideo",this.yj);U(this,"playVideoAt",this.Jm);U(this,"setShuffle",this.setShuffle);U(this,"setLoop",this.uD);U(this,"getPlaylist",this.$b);U(this,"getPlaylistIndex",this.lD);U(this,"getPlaylistId",this.be);U(this,"loadModule",this.wj);U(this,"unloadModule",this.Cr);U(this,"setOption",this.ce);U(this,"getOption",this.vb);U(this,"getOptions",this.mh);U(this,"mute",this.mute);U(this,"unMute",
this.unMute);U(this,"isMuted",this.sc);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.Cb);U(this,"seekTo",this.Sb);U(this,"getPlayerState",this.getPlayerState);U(this,"getPlaybackRate",this.kD);U(this,"setPlaybackRate",this.Aj);U(this,"getAvailablePlaybackRates",this.uj);U(this,"getPlaybackQuality",this.vj);U(this,"setPlaybackQuality",this.zj);U(this,"getAvailableQualityLevels",this.ur);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",this.lh);U(this,"addEventListener",
this.addEventListener);U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.getVideoUrl);U(this,"getDebugText",this.Gm);U(this,"getVideoEmbedCode",this.vr);U(this,"getVideoData",this.getVideoData);U(this,"addCueRange",this.sr);U(this,"removeCueRange",this.xr);U(this,"setSize",this.setSize);U(this,"getApiInterface",this.iD);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.Ar);U(this,"hideVideoInfo",this.qD);fH(this,"getInternalApiInterface",this.jD);fH(this,"getAdState",
this.getAdState);fH(this,"isNotServable",this.rD);fH(this,"getUpdatedConfigurationData",this.mD);fH(this,"updateRemoteReceivers",this.wD);fH(this,"sendAbandonmentPing",this.tD);fH(this,"setAutonav",this.yr);fH(this,"setAutonavState",this.zr);fH(this,"setMinimized",this.vD);fH(this,"channelSubscribed",w);fH(this,"channelUnsubscribed",w)};
var U=function(a,b,c){a.B[b]=A(c,a)};
var fH=function(a,b,c){a.C[b]=A(c,a)};
var gH=function(a,b){eH.call(this,a,b);U(this,"getPresentingPlayerType",this.getPresentingPlayerType);U(this,"addInfoCardXml",this.xD);U(this,"cueVideoByPlayerVars",this.yD);U(this,"loadVideoByPlayerVars",this.Er);U(this,"preloadVideoByPlayerVars",this.JD);U(this,"seekBy",this.Zc);U(this,"updatePlaylist",this.QD);U(this,"updateLastActiveTime",this.PD);U(this,"updateVideoData",this.RD);U(this,"getStoryboardFormat",this.DD);U(this,"getProgressState",this.Ue);U(this,"getHousebrandProperties",this.BD);
U(this,"setPlaybackQualityRange",this.KD);U(this,"getCurrentPlaylistSequence",this.AD);U(this,"canPlayType",this.canPlayType);U(this,"sendVideoStatsEngageEvent",this.cg);U(this,"setCardsVisible",this.nh);U(this,"handleGlobalKeyDown",this.GD);U(this,"getAudioTrack",this.ag);U(this,"setAudioTrack",this.Km);U(this,"getAvailableAudioTracks",this.Dr);U(this,"getMaxPlaybackQuality",this.CD);U(this,"setSizeStyle",this.MD);U(this,"forceFrescaUpdate",this.zD);U(this,"setAutonav",this.yr);U(this,"setAutonavState",
this.zr);U(this,"showControls",this.OD);U(this,"hideControls",this.ID);U(this,"getVisibilityState",this.FD);U(this,"shouldSendVisibilityState",this.ND);U(this,"getVideoContentRect",this.ED)};
var hH=function(a,b){gH.call(this,a,b)};
var iH=function(a){(a=oq(a.app))&&jH(a)};
var kH=function(a){return(a=lH(a.app.C,"endscreen"))?Mx(a):!1};
var mH=function(a){var b=lH(a.app.C,"endscreen");return b&&Rx(b)?!0:(a=lH(a.app.C,"ypc"))&&a.Xa()?!0:!1};
var nz=function(a){var b=a.app;a=a.playerType;return 3==b.getPresentingPlayerType()?b.H.O:oq(b,a).getPlayerState()};
var GE=function(a){return a.app.F};
var nH=function(a){return a.app.O&&!a.Ja()||!!a.$b()};
var oH=function(a,b){var c=pH(a.app,"captions","displaySettings",b);a.app.Xf("onCaptionsDisplaySettings");return c};
var Cy=function(a){a=a.app;qH(a,!a.M.Ja())};
var rH=function(a){return(a=oq(a.app))?$t(sH(a.la,a.o)):"unknown"};
var tH=function(a){(a=lH(a.app.C,"webgl"))?a.B?(a=a.A,a=a.o?a.o.We():{}):a={}:a={};return a};
var uH=function(a,b){var c=lH(a.app.C,"webgl");c&&c.B&&(c=c.A,c.o&&c.o.rh(b))};
var vH=function(a,b){a.W().experiments.ma("ui_logging")&&wH(a,"controlclicked",{controlClicked:b})};
var wH=function(a,b,c,d){var e=oq(a.app);c.event=b;a.Ja()&&(c.fs=1);c.ux=1;if(e.B){a=e.B;e=(b=a.o.A.experiments.ma("event_log_respect_caller_args"))?{}:c;e.rt=SA(a.o).toFixed(3);qa(e,UA(a.o));var f=a.o.A,k=a.o.o,l=k.va||f.ia,l={ns:f.aa,html5:"1",el:f.Aa,ps:f.o,fexp:f.experiments.experimentIds.join(",")||void 0,feature:l||void 0,ctrl:k.ea||void 0,ytr:k.ga||void 0,list:k.playlistId,d:f.Va,f:f.Ia};f.autoplay&&(l.autoplay="1");k.subscribed&&(l.subscribed=k.subscribed);qa(e,l);delete e.fexp;b&&qa(e,c);
c=rj(a.o.A.baseYtUrl+"player_204",e);YA(a,c,d)}};
var bC=function(a){a.app.Pa("cardstatechange",xH(a)&&yH(a)?1:0)};
var xH=function(a){return(a=lH(a.app.C,"iv-module"))?fF(a):!1};
var yH=function(a){return(a=lH(a.app.C,"iv-module"))?gF(a):!1};
var zH=function(a,b,c){(a=lH(a.app.C,"iv-module"))&&iF(a,b,c)};
var oz=function(a,b){a.app.Pa("onFrescaStateChange",b);var c=oq(a.app);if(c&&b&&c.B){var c=c.B.B,d=b.hasActiveStream;JA(c,SA(c.o),"stream",[d?"A":"I"])}};
var AH=function(a){return(a=lH(a.app.C,"fresca"))?!!a.D&&a.D.C.B:!1};
var BH=function(a){var b=oq(a.app,1);if(!b)return!1;var c=b.getVideoData();return cx(c)&&!gx(c)&&2!=a.getPresentingPlayerType()&&(!CH(b)||3==a.getPresentingPlayerType())};
var DH=function(a){return a.app.da.play_pause||2==a.getPresentingPlayerType()?!0:!CH(oq(a.app,1))};
var EH=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=oq(d,a))c.F.jh.apply(c.F,b),a&&d.getPresentingPlayerType()!=a||pq(d,"cuerangesremoved",b)};
var FH=function(a,b,c){a.app.P("progresssync",b,c)};
var Uq=function(a,b,c){a=GE(a).element;var d=Ab(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));pf(a,b,d);b.setAttribute("data-layer",c)};
var GH=function(){Gi({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"})};
var HH=function(a,b){this.L="";this.C=this.A=this.J=this.o=this.F=null;this.type=0;this.id=a;this.Ha={};qa(this.Ha,IH);b?qa(this.Ha,b):qa(this.Ha,JH);var c="caption-window";0==this.id&&(c+=" standard-caption-window");this.o=M("div",{id:"caption-window-"+this.id,"class":c});this.C=M("span",{"class":"captions-text",style:"visibility: hidden"});Af(this.C,"C");this.A=M("span",{"class":"captions-text",tabindex:7050,"aria-live":"assertive"});this.J=M("div",{"class":"caption-window-transform"});this.J.appendChild(this.A);
this.o.appendChild(this.J);this.M=1};
var KH=function(a){Tf(a.o,a.Ha.leftPercentage+"%",a.Ha.topPercentage+"%");for(var b=0;8>=b;b++)Zd(a.o,"anchor-point-"+b);K(a.o,"anchor-point-"+a.Ha.anchorPoint)};
var LH=function(a){if(!a)return a;if(-1==a.indexOf("\n"))return"&nbsp;"+a+"&nbsp;";a=a.split("\n");for(var b=0,c=a.length;b<c;b++)a[b]=a[b]?"&nbsp;"+a[b]+"&nbsp;":"";return a.join("<br>")};
var MH=function(){this.A=[];this.o=[]};
var NH=function(a,b,c,d,e,f,k){iq.call(this,a,a+b,{priority:c});this.D=d;this.A=e;this.G=f||!1;this.H=k||null};
var OH=function(a){var b=a.firstChild&&a.firstChild.nodeValue||"",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=(0,window.parseInt)(a.getAttribute("w"),10)||0;a=!!a.getAttribute("append");return new NH(c,d,a?6:5,e,b,a)};
var PH=function(a,b,c,d,e,f,k){iq.call(this,a,a+b,{priority:c});this.K=!1;this.id=d;this.params=e||{};this.G=f||null;this.H=k||null;this.A="";this.D=!1;QH(this)};
var RH=function(a){return a.params.modeHint?a.params.modeHint:a.params.textScrollDirection?2:a.D?1:0};
var SH=function(){return new PH(0,0x8000000000000,0,0,JH)};
var QH=function(a){a.G&&qa(a.params,TH(a.G));a.H&&qa(a.params,TH(a.H))};
var UH=function(a){MH.call(this);this.o.push(SH());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=OH(a[b]);this.A.push(d)}};
var VH=function(a){MH.call(this);this.B={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=(0,window.parseInt)(b.getAttribute("id"),10);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.K=!0:e=SH();var f={};qa(f,e?e.params:
JH);d.getAttribute("id")&&(f.id=d.getAttribute("id"));d.getAttribute("op")&&(f.operation=d.getAttribute("op"));d.getAttribute("rc")&&(f.rowCount=(0,window.parseInt)(d.getAttribute("rc"),10));d.getAttribute("cc")&&(f.colCount=(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.leftPercentage=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(f.topPercentage=(0,window.parseInt)(d.getAttribute("av"),
10));d.getAttribute("id")&&(f.id=(0,window.parseInt)(d.getAttribute("id"),10)||0);d.getAttribute("vs")&&(f.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(f.textAlign=(0,window.parseInt)(d.getAttribute("ju"),10));d.getAttribute("pd")&&(f.textPrintDirection=1,0==(0,window.parseInt)(d.getAttribute("pd"),10)&&(f.textPrintDirection=0));d.getAttribute("bc")&&(f.backgroundColor=(0,window.parseInt)(d.getAttribute("bc"),16));d.getAttribute("bo")&&(f.backgroundOpacity=(0,window.parseInt)(d.getAttribute("bo"),
10)/100);d.getAttribute("fc")&&(f.color=(0,window.parseInt)(d.getAttribute("fc"),16));d.getAttribute("sd")&&(f.textScrollDirection=(0,window.parseInt)(d.getAttribute("sd"),10));e=(0,window.parseInt)(d.getAttribute("d"),10)||1E3*(0,window.parseFloat)(d.getAttribute("dur"))||0x8000000000000;d=(0,window.parseInt)(d.getAttribute("id"),10)||0;b=new PH(b,e,0,d,f)}else b=null}this.B[c]=b;this.o.push(b);break;case "text":c=OH(a),this.A.push(c),b=c.D,this.B[b]&&(b=this.B[b],c=c.A,""!=b.A&&(b.D=!0),b.A+=c)}a=
a.nextSibling}0==this.o.length&&this.o.push(SH())};
var WH=function(a){this.A=a||null;this.o={}};
var XH=function(a,b,c){var d=a.o[b];if(void 0!=d)return d;if(a.A&&(void 0==c||c))return XH(a.A,b)};
var YH=function(a,b,c){void 0!=c&&(a.o[b]=c)};
var ZH=function(a,b,c){void 0!=c&&(a.o[b]=c)};
var TH=function(a){var b=a.A?TH(a.A):{};qa(b,a.o);return b};
var $H=function(a){MH.call(this);var b={Tg:{},sm:{},tm:{}},c,d;a=a.firstChild.childNodes;for(var e=0;e<a.length;e++){var f=a[e];switch(f.tagName){case "head":c=f;break;case "body":d=f}}if(c)for(c=c.childNodes,a=0;a<c.length;a++)switch(e=c[a],e.tagName){case "pen":var f=b,k=aI(e,"p"),l=void 0;k&&f.Tg[k]&&(l=f.Tg[k]);f=new WH(l);YH(f,"id",aI(e,"id"));k=bI(e,"b");void 0!=k&&(f.o.bold=k);k=bI(e,"i");void 0!=k&&(f.o.italic=k);k=bI(e,"u");void 0!=k&&(f.o.underline=k);YH(f,"charEdgeStyle",cI(e,"et"));YH(f,
"offset",cI(e,"of"));YH(f,"textType",cI(e,"tt"));ZH(f,"background",dI(e,"bc"));ZH(f,"charEdgeColor",dI(e,"ec"));ZH(f,"color",dI(e,"fc"));k=cI(e,"fs");void 0!=k&&0!=k&&YH(f,"fontFamily",k);k=aI(e,"sz");void 0!=k&&YH(f,"fontSizeIncrement",k/100-1);k=aI(e,"bo");void 0!=k&&YH(f,"backgroundOpacity",k/255);e=aI(e,"fo");void 0!=e&&YH(f,"textOpacity",e/255);e=XH(f,"id",!1);b.Tg[e]=f;break;case "ws":f=eI(b,e);e=XH(f,"id",!1);b.tm[e]=f;break;case "wp":f=fI(b,e),e=XH(f,"id",!1),b.sm[e]=f}if(d)for(c={},a=-1,
d=d.childNodes,e=0;e<d.length;e++)switch(f=d[e],f.tagName){case "w":k=gI(b,f);if(f=c[k.id])f.end=k.start;c[k.id]=k;this.o.push(k);break;case "p":for(var k=b,l=f,m=[],p=aI(l,"t")||0,u=aI(l,"d")||0,v=aI(l,"w")||0,z=!!bI(l,"a"),x=z?6:5,ga=aI(l,"p"),ga=ga?k.Tg[ga]:null,wa=l.childNodes,J=0;J<wa.length;J++){var X=wa[J];if("s"==X.tagName){0<J&&(z=!0);var Lb;Lb=k;var wd=X,X=p,gp=u,hp=v,RB=z,SB=x,ip=ga,uu=wd.textContent?ya(wd.textContent):"",Ol=aI(wd,"p"),ip=Ol?Lb.Tg[Ol]:ip;Lb=aI(wd,"t")||0;Lb=new NH(X+Lb,
gp-Lb,SB,hp,uu,RB,ip)}else Lb=l.textContent?ya(l.textContent):"",Lb=new NH(p,u,x,v,Lb,z,ga);m.push(Lb)}l=m;if(0<l.length)for(k=c[l[0].D],k||(k=gI(b,f),k.id=a--,this.o.push(k)),f=0;f<l.length;f++)m=l[f],l[f].D=k.id,p=k,u=m.A,""!=p.A&&(p.D=!0),p.A+=u,this.A.push(m)}};
var aI=function(a,b){var c=a.getAttribute(b);if(null!=c)return(0,window.parseFloat)(c)};
var bI=function(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c};
var cI=function(a,b){var c=aI(a,b);if(void 0!=c)return c};
var dI=function(a,b){var c=a.getAttribute(b);if(null!=c)return hI.test(c),c};
var eI=function(a,b){var c=aI(b,"ws"),d;c&&a.tm[c]&&(d=a.tm[c]);c=new WH(d);YH(c,"id",aI(b,"id"));YH(c,"modeHint",cI(b,"mh"));YH(c,"textAlign",aI(b,"ju"));YH(c,"textPrintDirection",cI(b,"pd"));YH(c,"textScrollDirection",cI(b,"sd"));YH(c,"windowBorderType",cI(b,"et"));ZH(c,"windowBorderColor",dI(b,"wbc"));ZH(c,"windowColor",dI(b,"wfc"));d=aI(b,"wfo");void 0!=d&&YH(c,"windowOpacity",d/255);return c};
var fI=function(a,b){var c=aI(b,"wp"),d;c&&a.sm[c]&&(d=a.sm[c]);c=new WH(d);YH(c,"anchorPoint",cI(b,"ap"));YH(c,"colCount",aI(b,"cc"));YH(c,"id",aI(b,"id"));YH(c,"leftPercentage",aI(b,"ah"));YH(c,"rowCount",aI(b,"rc"));YH(c,"topPercentage",aI(b,"av"));return c};
var gI=function(a,b){var c=aI(b,"id")||0,d;d=aI(b,"t");var e=aI(b,"d")||0x8000000000000,f=fI(a,b),k=eI(a,b);return new PH(d,e,0,c,null,f,k)};
var iI=function(a,b){MH.call(this);this.o.push(SH());for(var c=a.split(jI),d=1;d<c.length;d++){var e;e=c[d];var f=b;if(""==e||0==e.search(kI))e=null;else{var k=e.split(lI),l=0,m=k[l++].match(mI);m||(m=k[l++].match(mI));m?(e=nI(m[1],f)||0,f=nI(m[3],f)||0,k=k.slice(l).join("\n"),e=new NH(e,f-e,5,0,k)):e=null}e&&this.A.push(e)}};
var nI=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};
var oI=function(a,b){this.o=[];this.A=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new iI(a,b||0):(c=sz(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==(0,window.parseInt)(c.firstChild.getAttribute("format"),10)?new $H(c):new VH(c):new UH(c):null:null;c&&(this.A=c.o,this.o=c.A)};
var pI=function(){this.B=[];this.o=[];this.A=-1};
var qI=function(a,b){return b?a.o.concat(a.B):a.o};
var rI=function(a,b){switch(b.B){case "asr":var c=a.B;eb(c,A(b.equals,b))||c.push(b);break;default:if(b.isDefault||0>a.A)a.A=a.o.length;c=a.o;eb(c,A(b.equals,b))||c.push(b)}};
var sI=function(a,b){var c=fb(a.o,A(b.equals,b));-1!=c&&(a.A=c)};
var tI=function(a){this.Oo=!!a;this.o=new pI;this.D=[]};
var uI=function(a,b){return eb(qI(a.o,!0),function(a){return a.toString()==b})};
var vI=function(a){tI.call(this,a.Qh);this.A=null;this.C=void 0;this.B=null;this.D=a.captionTranslationLanguages};
var wI=function(a,b){var c=b.J,d={};if(a.C||b.D)d.fmt=a.C||"srv"+b.D;b.A&&(d.tlang=b.A.languageCode);return rj(c,d)};
var xI=function(){this.ea=this.da=!1;this.S=1;this.C=20971520;this.D=8388608;this.B=window.NaN;this.K=3145728;this.L=62914560;this.M=10485760;this.H=window.NaN;this.la=2;this.ha=25;this.F=2097152;this.J=!1;this.G=1800;this.o=1.15;this.A=1.05;this.Da=!0;this.liveChunkReadahead=3;this.Ca=mt("xboxone")||qt()||lt();this.aa=25;this.V=!1;this.va=Fl&&!0;this.Ea=!0;this.Z=this.ia=this.Y=!1;this.ga=this.O=0;this.na=.8;this.Qa=this.qa=this.U=!1};
var yI=function(a,b){1440<b&&!a.da&&(a.C=36700160,a.D=5242880,a.K=10485760,a.F=4194304,a.da=!0);2160<b&&!a.ea&&(a.C=104857600,a.ea=!0)};
var zI=function(){this.ua=[]};
var AI=function(a,b){G.call(this);this.A=b;this.H=new zI;this.C=!0;this.J=this.D=this.F=this.G=this.o=null;this.B=0};
var BI=function(a,b){a.G=b};
var CI=function(a){var b;if(b=!a.C&&null!==a.o)b=a.o,b=b.o.ph(b);return b&&!a.D&&!(a.o&&30<a.o.startTime-a.A.getCurrentTime())};
var DI=function(a){a.isDisposed();var b;b=a.o;b=fs(b.o,b);if(!a.H.contains(b.o[0].C)){var c=Pr(cs(b));a.D=Bj(c,{format:"RAW",Vb:A(a.K,a),withCredentials:!0});a.F=b;var c=a.H,d=a.F.o[0].C,e=xb(c.ua,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ua[e-1]&&e<c.ua.length&&1==c.ua[e]-d?(pb(c.ua,e),pb(c.ua,e-1)):0<e&&1==d-c.ua[e-1]?c.ua[e-1]=d:e<c.ua.length&&1==c.ua[e]-d?c.ua[e]=d:(ub(c.ua,e,0,d),ub(c.ua,e+1,0,d)))}a.o=db(b.o)};
var EI=function(a){a.B=Ci(A(function(){CI(this)&&DI(this)},a),1E3);
CI(a)&&DI(a)};
var FI=function(a,b){tI.call(this);this.B=a;this.A=new AI(new xI,b)};
var GI=function(a,b){HH.call(this,a,b);this.type=1;this.H=this.K="";this.G=!1;this.B=null;this.D=[];this.A.style.display="block";this.A.style.padding="0";var c=this.A;Zd(c,"captions-text");K(c,"caption-painton-text-rows")};
var HI=function(a){return a.D.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)};
var II=function(a,b){HH.call(this,a,b);this.type=2;this.S=32;this.D=0;this.H=null;this.F=[];this.G=[];this.B=[];this.H=new Qd(433);this.H.stop();Nl(this.H,"tick",A(this.K,this))};
var JI=function(a){if(!KI(a))if(a.D>=a.F.length)LI(a);else{var b=a.B.length-1;0>b&&(a.G.push(0),a.D=0,a.B.push(""),b=0);for(var c=a.F.length,d=a.D;d<c;d++){var e=a.F[d];if("\n"==e.A){a.D++;a.G[b]++;break}if(e.G||0==a.B[b].length)a.B[b]+=e.A,a.D++,a.G[b]++;else break}LI(a);d<c&&!KI(a)&&(b=a.gi(),K(a.A,"caption-rollup"),a.o.style.overflow="hidden",a.A.style.top=-b+"px",a.H.start())}};
var KI=function(a){return a.H.enabled||Xd(a.A,"caption-rollup")};
var LI=function(a){if(!KI(a)){for(;a.B.length<a.Ha.rowCount;)a.B.unshift(""),a.G.unshift(0);for(;a.B.length>a.Ha.rowCount;){a.B.shift();var b=a.G.shift();0<b&&(a.D-=b,a.F.splice(0,b))}a.Yd(LH(a.B.join("\n")))}};
var MI=function(a){a.C.style.fontFamily=a.A.style.fontFamily;a.C.style.fontSize=a.A.style.fontSize;a.A.appendChild(a.C);Af(a.C,"\u2014");var b=a.C.offsetWidth;Af(a.C,String.fromCharCode(160));b=2*a.C.offsetWidth+b*a.S;a.A.removeChild(a.C);return b};
var NI=function(a,b,c,d){tI.call(this,d);c||(c=qj(a).hl||"",c=c.split("_").join("-"));this.B=rj(a,{hl:c});this.C=b;this.F={};this.A=null};
var OI=function(a,b){var c=a.B,d={v:a.C,type:"track",lang:b.o,name:b.C,kind:b.B,fmt:b.D};b.A&&(d.tlang=b.A.languageCode);return c=rj(c,d)};
var PI=function(a){mq.call(this,a,"subtitlesModuleData");this.sa="captions";this.H="cc";GH();this.ea=!0;this.da=this.O=this.ga=!1;this.X=a.W();this.D=null;this.M=GE(a);this.C={};this.U=null;this.aa=[];this.L={};this.Z={};this.na=this.K=this.la=!1;this.Y=new HH(99,QI);this.A=this.B=this.F=null;this.qa=!1;this.ia=new Ud(this.fm,0,this);H(this,this.ia);this.ha=new Ud(this.VB,2E3,this);H(this,this.ha);this.subscribe("onResize",A(this.yp,this));this.subscribe("onCaptionsToggle",A(this.YA,this));this.subscribe("onPlaybackAudioChange",
A(this.yy,this));this.subscribe("onCaptionsDisplaySettings",A(this.Ml,this))};
var RI=function(a){return"3"!=a.X.B?!1:!!a.M.A.textTracks};
var SI=function(a,b,c,d,e){var f=a.C[b];y(f)&&(a.C[c]=d.indexOf(f),-1==a.C[c]&&(a.C[c]=e),delete a.C[b])};
var TI=function(a,b){if(b&&a.D.captionTracks.length){var c=a.o.ag().Gn;if(2==c||3==c)return!0}if(1==a.X.da||1==a.D.ne||"alwayson"==a.D.Rc("yt:cc")||RI(a))return!0;c=sq(a,"module-enabled");return null!=c?!!c:"on"==a.D.Rc("yt:cc")};
var UI=function(a){a.A&&a.A==a.B.Jd()&&VI(a);a.B.sl(A(a.bq,a),!0,RI(a)?"vtt":void 0,a.o.ag())};
var WI=function(a){a.O=!0;RI(a)||(XI(a),a.yp())};
var YI=function(a){a.B.Jd()&&ZI(a,a.B.Jd())};
var $I=function(a){var b=[];Ob(a.L,function(a){a instanceof GI&&b.push(a)});
if(0!=b.length){b.sort(function(a,b){return b.Ha.bm-a.Ha.bm});
var c=aJ(a.M).height,d=b[0].Ha.bm;F(b,function(a){a.Ha.bm=d;var b=Math.round(a.Ha.uq*a.gi());d-=Math.round(b/c*100);a.Vd()},a)}};
var VI=function(a){a.A&&(a.A=null,nq(a),a.aa=[],a.A=null,a.fm(),a.B.dm())};
var ZI=function(a,b,c){!b||a.A&&b.equals(a.A)||(null!=c&&(a.K=c),a.G?(a.A=b,bJ(a),a.Il("control_subtitles_set_track",Rt(b)),a.O||WI(a)):(a.B.rl(b,A(a.cq,a)),a.ga=!0))};
var XI=function(a,b){var c=a.M.Ma();Ob(a.L,function(a){a.wd(this.C,c)},a);
a.F&&a.F.wd(a.C,c);a.Y.wd(a.C,c);a.fm();n(b)&&!b||a.Ml()};
var cJ=function(a){if(a.loaded){var b=a.ha;b.isActive()&&Vd(b);tq(a,"module-enabled",!1);(b=oq(a.o.app))&&b.B&&yA(b.B.A);VI(a);a.K=!1;a.G?(bJ(a),a.Il("control_subtitles_set_track")):a.P("publish_external_event","captionschanged",{});YI(a)}};
var dJ=function(a){return PI.prototype.Xa(a)?new PI(a):null};
var eJ=function(a,b){if(b&&!a.F){a.F=new HH(98,fJ);a.U.element.appendChild(a.F.o);var c=a.F,d=P("YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.Yd(LH(d)));a.F.wd(a.C,a.M.Ma())}else!b&&a.F&&(qf(a.F.o),a.F=null)};
var gJ=function(a,b){if(b)if(dc(b,"reset"))delete a.C,a.C=ec(hJ),a.Ml(),XI(a);else{if(!iJ){var c={};c.color=a.gk;c.textOpacity=a.wl;c.background=a.gk;c.backgroundOpacity=a.wl;c.windowColor=a.gk;c.windowOpacity=a.wl;c.charEdgeStyle=a.nv;c.fontFamilyOption=a.Vv;c.fontSizeIncrement=a.Wv;iJ=c}var c=iJ,d;for(d in c)switch(d){case "fontFamilyOption":a.C.fontFamily=c[d](b[d],a.C.fontFamily);break;default:a.C[d]=c[d](b[d],a.C[d])}XI(a,yG(a.X))}};
var bJ=function(a){var b={};a.A&&(b=Rt(a.A));a.P("publish_external_event","captionschanged",b)};
var jJ=function(a){mq.call(this,a);this.sa="ypc_license_checker";this.H="ypc_license";this.F=!1;this.C=0;this.D=!1;this.A=window.NaN;xu();this.B=null};
var kJ=function(a){return fx(a.getVideoData(),"ypc_license_checker_module")};
var lJ=function(a){return kJ(a)?new jJ(a):null};
var mJ=function(a){var b=a.o.getVideoData();return Zw(b)?!!a.B:!!b.heartbeatToken};
var nJ=function(a,b){if(!a.A&&a.F&&mJ(a)){var c=a.o.getVideoData(),d=a.o.W();if(Zw(c)||!yG(d)||d.experiments.ma("tv_player_heartbeats"))c=b,void 0==c&&(c=a.D?a.B?1E3*a.B.interval:a.o.getVideoData().heartbeatInterval||6E4:1E3),a.A=Ai(A(a.$B,a),c)}};
var oJ=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=P("YTP_ERROR_LICENSE"),pJ(a.o.app.o,"heartbeat",c,void 0)):nJ(a)}};
var qJ=function(a){try{return be(a)}catch(b){return null}};
var rJ=function(a){a.C=0;a.A&&(Di(a.A),a.A=window.NaN);a.D=!1};
var sJ=function(a){aq("/gen_204?"+a,void 0)};
var tJ=function(a,b,c){if(!a)return null;var d=b.docid;b=b.fmt_list;if(d&&b){var e={};F(b,function(a){a.itag&&(e[a.itag.toString()]=!0)});
return uJ(a,d,e,c)}return null};
var uJ=function(a,b,c,d){d=O(d.split(","),oj);if(!$d(d,function(a){return!!c[a.itag]}).length)return null;
var e=Lg(a)||"",f=Mg(a);return O(d,function(a){if(c[a.itag]){var d=ch(bh(qh(a.url),e),f),m=Ig(a.url),d=mh(mh(d,"orig_host",Hg(m[1],m[2],m[3],m[4])),"scid",b);a.url=d.toString();a.isFastLoad="1"}return Sg(a)}).join(",")};
var vJ=function(a,b,c){var d=wJ(b);d?(d.status="success-prefetch-1",c(d)):a&&!b?c({status:"success"}):a?(a=[a,"v1/cache/videos",b,"metadata"].join("/"),Bj(a,{format:"JSON",method:"GET",timeout:2E3,kb:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
Td:function(){var a=wJ(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})};
var wJ=function(a){var b=window.acceleratorMeta;return(b?b.docid:null)===a?b:null};
var xJ=function(a){mq.call(this,a);this.H=this.sa="spacecast";this.A=null};
var yJ=function(a){return a.getVideoData().spacecastModule?new xJ(a):null};
var zJ=function(a){mq.call(this,a);this.sa="ypc_clickwrap";this.H="ypc-clickwrap";Gi({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};
var AJ=function(a){return fx(a.getVideoData(),"ypc_clickwrap_module")?new zJ(a):null};
var BJ=function(){return[ME.A,Ux,pz,yJ,dJ,TG.A,AJ,lJ,$G]};
var CJ=function(a){this.D=Math.exp(Math.log(.5)/a);this.A=this.C=0};
var DJ=function(a){this.A=window.Float32Array?new window.Float32Array(a):Array(a);this.o=a-1};
var EJ=function(a,b){a.o=(a.o+1)%a.A.length;a.A[a.o]=b};
var FJ=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=[]};
var GJ=function(a,b){HJ(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};
var HJ=function(a,b){a.H!=b&&(a.H=b,Db(a.C,b))};
var IJ=function(a){this.C=a;this.A=[]};
var JJ=function(a){this.D=a;this.F=this.G=0;this.o=-1;this.K=new DJ(100);this.J=0;this.L=$s();this.B=new FJ(4,.6);this.C=new CJ(4);this.H=new IJ(17);this.D.B?this.A=new CJ(17):this.A=new FJ(17,.5,.1);a=ij("yt-player-bandwidth")||{};this.A.o(this.D.A,0<a.byterate?a.byterate:this.D.o);0<a.delay&&this.B.o(1,Math.min(+a.delay,2));0<a.tailDelay&&this.C.o(1,+a.tailDelay);this.o=$s()};
var KJ=function(a,b,c){b=Math.max(b,.05);a.A.o(b,c/b);LJ(a)};
var MJ=function(a,b,c){(0,window.isNaN)(c)||(a.F+=c);(0,window.isNaN)(b)||(a.G+=b);a.H.o(b,c/b);LJ(a)};
var NJ=function(a){a=a.B.B();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
var OJ=function(a){return a.C.B()||0};
var PJ=function(a){var b=a.A.B(),b=0<b?b:1;a=a.H.B();a=0<a?a:1;return a>2*b?(b+a)/2:b};
var QJ=function(a){var b={};b.delay=NJ(a);b.tailDelay=OJ(a);b.byterate=PJ(a);return b};
var RJ=function(a){-1<a.o&&3E4<$s()-a.o&&(GA(QJ(a)),a.o=$s())};
var LJ=function(a){var b=$s();a.L=b;500<b-a.J&&(EJ(a.K,1/(1/PJ(a)+OJ(a))),a.J=b)};
var SJ=function(a){return 4E3<=$s()-a.L};
var TJ=function(){this.o=13E4;this.A=.5;this.B=!1};
var UJ=function(){G.call(this);this.o=[];this.F={};this.B={};this.C={};this.A=this.G=null;this.D=[];this.H=null};
var VJ=function(a){a.o=$d(a.o,function(a){try{a.destroy()}catch(c){Fi(c)}return!1},a)};
var WJ=function(a,b,c){XJ(a);a.H=b;a.D=sb(c);F(a.o,function(a){0<=jb(c,a.sa)&&(a.G=b,a.Li(!!a.G))})};
var XJ=function(a){F(a.D,function(a){if(a=lH(this,a))a.G=null,a.Li(!1)},a);
a.H=null;a.D=[]};
var YJ=function(a){a=lH(a,"iv-module");return!(!a||!a.loaded)};
var ZJ=function(a,b){if(!b)return O(a.o,function(a){return a.sa});
var c=lH(a,b);return c?c.Ve():[]};
var lH=function(a,b){return eb(a.o,function(a){return a.sa==b})};
var $J=function(a){var b={};F(a.o,function(a){qa(b,a.qh())});
return b};
var aK=function(a,b,c){this.C=b;this.o=c;this.D=a;this.A=!0};
var bK=function(a,b){jc.call(this,"adError");this.C=a;this.B=b?b:null};
var cK=function(a,b,c){jc.call(this,a);this.C=b;this.B=null!=c?c:null};
var dK=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(D(f)))return(0,window.encodeURIComponent)(f).replace(/%2C/g,",")}catch(k){}return a})};
var eK=function(a){this.o=a};
var fK=function(){var a=gK();return hK(a,"disableExperiments")};
var hK=function(a,b){if(Yb(a.o,b)){var c=a.o[b];if("boolean"==typeof c)return c}return!1};
var iK=function(a){if(Yb(a.o,"forceExperimentIds")){a=a.o.forceExperimentIds;var b=[],c=0;da(a)&&F(a,function(a){fa(a)&&(b[c++]=a)});
return b}return null};
var jK=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};
var V=function(){return kK.G};
var gK=function(){var a=kK;if(null==a.F){var b={},c=lh(new N(ff().location.href));if(wh(c,"tcnfp"))try{b=be(c.get("tcnfp"))}catch(d){}a.F=new eK(b)}return a.F};
var lK=function(a,b,c,d){this.A=a;this.o=ke(c||0,0,1);this.B=null!=d?d:!0};
var mK=function(a){this.B=a;this.A=new wg;this.o=null};
var nK=function(a){var b=Math.random(),c=0,d=a.A.Ka();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}};
var oK=function(){this.A=null!=r.G_testRunner;this.o=new wg;pK(this,41351050,.05);pK(this,41351051,.05);pK(this,41351052,.05);pK(this,41351053,.05);pK(this,31061770,.05);pK(this,31061771,.05);pK(this,31061772,.05);pK(this,31061773,.05);pK(this,41351082,.01);pK(this,41351083,.01);pK(this,41351058,.01);pK(this,41351059,.01);pK(this,41351016,.05);pK(this,41351017,.05);pK(this,41351018,.05);pK(this,41351019,.05);pK(this,41351072,.01);pK(this,41351073,.01);pK(this,41351088,.01);pK(this,41351089,.01);pK(this,
136961001,.01);pK(this,136961002,.01);pK(this,41351032,.05);pK(this,41351033,.05);qK(this);var a;a=gK();a=iK(a);null!=a&&(this.A=!1,rK(this,a.map(String)))};
var sK=function(){tK||(tK=new oK);return tK};
var uK=function(){var a=sK();F(a.o.Na(),function(a){ta(a,"FORCED_PUB_EXP_LAYER_")&&this.o.remove(a)},a)};
var pK=function(a,b,c){C(D("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new lK(b,0,c),vK(a,"GvnExternalLayer").A.set(b.getId(),b))};
var qK=function(a){fK()||F(a.o.Ka(),function(a){nK(a)},a)};
var rK=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(D(a)))){var f=null!=c?c:!0;vK(this,a).o=new lK(b,0,0,f)}},a)};
var wK=function(a,b){return a.A?!1:Ih(a.o.Ka(),function(a){return!!a.o&&a.o.getId()==b})};
var xK=function(a){return sK().A?!1:Ih(a,function(a){return wK(sK(),a)})};
var yK=function(a){if(a.A)return"";var b=[];F(a.o.Ka(),function(a){(a=a.o)&&a.B&&b.push(a.getId())});
return b.sort().join(",")};
var vK=function(a,b){var c=a.o.get(b);null==c&&(c=new mK(b),a.o.set(b,c));return c};
var zK=function(){return xK([9418778,9417893,9417894,9417895,9419817])};
var AK=function(a){return null!=a?BK(CK,a):!1};
var BK=function(a,b){try{var c=hh(new N(b)),c=c.replace(/^www./i,"");return Ih(a,function(a){return DK(a,c)})}catch(d){return!1}};
var DK=function(a,b){if(C(D(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};
var EK=function(a){if(FK(a,GK))return a;if("https:"==window.location.protocol&&(FK(a,HK)||V())){var b=new N(a);if("https"==b.C)return a;ah(b,"https");return b.toString()}return a};
var FK=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
var IK=function(a){window.open(EK(a),"_blank")};
var JK=function(a,b,c){null!=a?(mh(a,"label",b),null!=c&&mh(a,"value",c.join(";")),a=a.toString()):a="";KK(a)};
var KK=function(a,b,c,d,e,f){null!=a&&null!=b&&(a=dK(a,b));try{if(null!=c){b=a;var k=(c||{}).viewability||"na";if(C(D(k)))a=b;else{var l=new N(b);wh(l.o,"label")?(mh(l,"acvw",k),a=l.toString().replace(/%2C/g,",")):a=b}}null!=e&&(a=LK(a,e));a:{c=a;var m=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=m||!f&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(f=f||window.Goog_AdSense_Lidar_getUrlSignalsArray(),m={},e=0;e<f.length;++e){m.URL_SIGNALS=f[e];var p=dK(c,m);if(2048>p.length){a=p;break a}}a=
c}}catch(v){}try{a=EK(a);var u=!V()||wK(sK(),41351089);null!=d&&d?MK.Hq(a,u):MK.Gq(a,u)}catch(v){}};
var NK=function(a,b){null!=a&&F(a,function(a){KK(a,b)})};
var LK=function(a,b,c){if(C(D(b)))return a;var d=new N(a),e=d.A;return null!=e&&ua(e,".g.doubleclick.net")&&(c||wh(d.o,"label"))?(mh(d,"ged",b),d.toString()):a};
var OK=function(a,b){this.message=a;this.errorCode=b};
var PK=function(a,b,c){return QK("adLoadError",a,b||null,vb(arguments,2))};
var RK=function(a,b,c){return QK("adPlayError",a,b||null,vb(arguments,2))};
var SK=function(a,b,c,d,e){var f=a.apply(null,rb([c,d],vb(arguments,3)));b.$(new cK("log",null,f))};
var QK=function(a,b,c,d){if(c instanceof aK)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 aK(a,b,e);a.B=c;return a};
var TK=function(a,b,c,d){var e=RK.apply(null,rb([b,c],vb(arguments,3)));a.$(new bK(e))};
var UK=function(){return!VK()&&(nc("iPod")||nc("iPhone")||nc("Android")||nc("IEMobile"))};
var VK=function(){return nc("iPad")||nc("Android")&&!nc("Mobile")||nc("Silk")};
var WK=function(){return UK()||VK()};
var XK=function(){return YK&&!ZK||Ma(oc,"iPod")};
var $K=function(){return XK()||ZK};
var aL=function(a,b){if(null==bL[b]){var c;C(cL)&&(c=a.exec(oc))&&(cL=c[1]);(c=cL)?(c=c.replace(/_/g,"."),bL[b]=0<=Sa(c,b)):bL[b]=!1}return bL[b]};
var dL=function(){var a=oc;return a?Ma(a,"AppleTV")||Ma(a,"GoogleTV")||Ma(a,"HbbTV")||Ma(a,"NetCast.TV")||Ma(a,"Opera TV")||Ma(a,"POV_TV")||Ma(a,"SMART-TV")||Ma(a,"SmartTV"):!1};
var eL=function(){var a=oc;return a?Ma(a,"Nintendo WiiU"):!1};
var fL=function(){return Ma(oc,"PlayStation")};
var gL=function(){return XK()||hL&&(!hL||!aL(iL,4))||!V()&&(Ma(oc,"CrKey")||fL()||Ma(oc,"Roku")||dL()||Ma(oc,"Xbox"))?!1:!0};
var jL=function(){this.o=.01>Math.random();this.A=Math.floor(4503599627370496*Math.random())};
var kL=function(a,b,c,d){if(a.o||d){c=c||{};c.lid=b;b=yK(sK());C(D(b))||(c.e=b);c=lL(a,c);var e=new N("http://pagead2.googlesyndication.com/pagead/gen_204");Ob(c,function(a,b){mh(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);
a=mL();ah(e,a.C);KK(e.toString())}};
var lL=function(a,b){b.id="";var c=mL();b.c=a.A;b.domain=c.A;return b};
var mL=function(){var a=ff(),b=window.document;return new N(a.parent==a?a.location.href:b.referrer)};
var nL=function(){};
var oL=function(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=I()-window.performance.timing[a],Math.round(a/1E3)):null};
var pL=function(){this.domLoading=oL("domLoading");this.domComplete=oL("domComplete");this.unloadEventStart=oL("unloadEventStart")};
var qL=function(a){var b={},c=new pL,d=null;null!=c.domLoading&&(d=c.domLoading);0>d&&window.performance&&window.performance.timing&&(b.di="now."+I()+".loadstart."+window.performance.timing.domLoading+".tagload."+a);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b};
var rL=function(a){for(var b=[],c=a=ff(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
var sL=function(){this.o={};this.A=0};
var tL=function(a,b){this.D=a;this.B=!0;this.o=b};
var uL=function(a,b,c){tL.call(this,a,c);this.C=b;this.o=!!c};
var vL=function(a){tL.call(this,"sv",a);this.o=null==a?"1":"2"};
var wL=function(a,b){tL.call(this,a,b)};
var xL=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 wL("",new te(c,b,Number(a[3])-c,Number(a[2])-b))}return new wL("",new te(0,0,0,0))};
var yL=function(){zL||(zL=new sL);return zL};
var AL=function(a){var b=new te(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new te(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),l=Math.min(e.left+e.width,f.left+f.width);if(k<=l){var m=Math.max(e.top,f.top),f=Math.min(e.top+e.height,f.top+f.height);if(m<=f){e.left=k;e.top=m;e.width=l-k;e.height=f-m;e=!0;break a}}e=!1}if(!e)return c}return b};
var BL=function(a,b){var c=a.getBoundingClientRect(),d=ag(a,b);return new te(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
var CL=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 te(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 tL("vp",d));d&&0<d?(e=ue(b),f=ue(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new uL("ct",512,e));d&&0<d?(e=ue(b),f=ue(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new uL("vb",
1024,e));d&&0<d?(e=ue(b),f=ue(c),e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new uL("vl",2048,e));d&&0<d?(b=ue(b),c=ue(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new uL("vr",4096,c))}};
var DL=function(a){this.o=ic.apply(null,arguments);return this};
var EL=function(a,b){var c=dc(a.o,"eb",0);a.o.eb=c|b};
var FL=function(a,b){ea(a);GL();for(var c=b?HL:IL,d=[],e=0;e<a.length;e+=3){var f=a[e],k=e+1<a.length,l=k?a[e+1]:0,m=e+2<a.length,p=m?a[e+2]:0,u=f>>2,f=(f&3)<<4|l>>4,l=(l&15)<<2|p>>6,p=p&63;m||(p=64,k||(l=64));d.push(c[u],c[f],c[l],c[p])}return d.join("")};
var JL=function(a){var b=[];KL(a,function(a){b.push(a)});
return b};
var KL=function(a,b){GL();for(var c=LL,d=0;d<a.length;){var e=c[a.charAt(d++)],f=d<a.length?c[a.charAt(d)]:0;++d;var k=d<a.length?c[a.charAt(d)]:64;++d;var l=d<a.length?c[a.charAt(d)]:64;++d;if(null==e||null==f||null==k||null==l)throw Error();b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
var GL=function(){if(!IL){IL={};LL={};HL={};for(var a=0;65>a;a++)IL[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),LL[IL[a]]=a,HL[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(LL["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
var ML=function(a,b){var c=0;Xb(ff(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=yL();d.o={};var f=new uL("ef",32,!0);f.B=!1;d.setItem(f);f=ff().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new uL("tv",64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var l;var m=ff().top;try{l=!!m.location.href||""===m.location.href}catch(v){l=!1}if(l){var p=rL(e);k=p&&0!=p.length?"1":"0"}else k=
"2"}catch(v){k="2"}d.setItem(new tL("is",k));p=l=ff().top;"2"==k&&(p=ff());m=BL(e,p);d.setItem(new wL("er",m));var u;try{u=p.document&&!p.document.body?null:cf(p||window)}catch(v){u=null}d.setItem(new vL(u));u?(p=Jf(Ue(p.document)),d.setItem(new uL("sp",16384,!!p)),u=p?new te(p.x,p.y,u.width,u.height):null):u=null;d.setItem(new wL("vi",u));if(u&&"1"==k){k=rL(e);e=[];for(p=0;p<k.length;p++)(f=BL(k[p],l))&&e.push(f);e.push(u);u=AL(e)}CL(d,m,u);d.A&&(k=Math.round(I()/1E3)-d.A,d.setItem(new tL("ts",k)));
d.A=Math.round(I()/1E3)}else d=yL(),d.o={},d.A=Math.round(I()/1E3),d.setItem(new uL("ef",32,!1));this.B=d;this.o=new DL("ta",c,"ve",3);c&&EL(this.o,1);Xb(ff(),"ima","video","client","crossdomainTag")&&EL(this.o,4);Xb(ff(),"ima","video","client","sdkTag")&&EL(this.o,8);Xb(ff(),"ima","video","client","jsTag")&&EL(this.o,2);b&&dc(b,"fullscreen",!1)&&EL(this.o,16);this.A=d=null;if(c&&(c=Xb(ff(),"ima","video","client"),c.getEData)){this.A=c.getEData();if(c=Xb(ff(),"ima","video","client","getLastSnapshotFromTop"))if(k=
c())this.A.extendWithDataFromTopIframe(k.buckets,k.tt,k.pd),c=this.B,d=k.er,k=k.vi,d&&k&&(d=xL(d).getValue(),k=xL(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new wL("er",e))),c.getItem("vi")&&(u=c.getItem("vi").getValue(),u.top+=d.top,u.left+=d.left,l=[],l.push(u),l.push(d),l.push(k),d=AL(l),CL(c,e,d),c.setItem(new wL("vi",k))));d=this.A.getTimeSinceTagLoadSeconds()}this.o.extend(qL(d))};
var NL=function(a,b){try{return(new ML(a,b)).nc()}catch(c){return"tle;"+La(c.name,12)+";"+La(c.message,40)}};
var OL=function(a){try{return!!a&&null!=a.location.href&&mc(a,"foo")}catch(b){return!1}};
var PL=function(a,b){if(!(1E-4>Math.random())){var c=Math.random();if(c<b){var d=window;try{var e=new window.Uint32Array(1);d.crypto.getRandomValues(e);c=e[0]/65536/65536}catch(f){c=Math.random()}return a[Math.floor(c*a.length)]}}return null};
var QL=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
var RL=function(){var a=SL;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""};
var TL=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)};
var UL=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};
var VL=function(a){var b="";QL(a,function(a,d){if(0===a||a)b+="&"+d+"="+(0,window.encodeURIComponent)(String(a))});
return b};
var WL=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);UL(d,"load",e);UL(d,"error",e)};
TL(d,"load",e);TL(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
var XL=function(a,b,c){this.D=a;this.C=b;this.A=c;this.B=this.o};
var YL=function(a,b,c){this.message=a;this.fileName=b||"";this.lineNumber=c||-1};
var ZL=function(a,b,c,d){var e;try{e=c()}catch(l){var f=a.A;try{var k=$L(l),f=(d||a.B).call(a,b,k,void 0,void 0)}catch(m){a.o("pAR",m)}if(!f)throw l;}finally{}return e};
var aM=function(a,b){var c=bM;return function(){var d=arguments;return ZL(c,a,function(){return b.apply(void 0,d)})}};
var $L=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 YL(b,a.fileName,a.lineNumber)};
var cM=function(a){return"function"==typeof window.encodeURIComponent?(0,window.encodeURIComponent)(a):(0,window.escape)(a)};
var dM=function(a,b){return aM(a,b)};
var eM=function(a,b){return aM(a,b)};
var fM=function(){for(var a=W,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,OL(a)&&(b=a);return b};
var gM=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
var hM=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0};
var iM=function(){var a;jM.mozVisibilityState?a="mozvisibilitychange":jM.webkitVisibilityState?a="webkitvisibilitychange":jM.visibilityState&&(a="visibilitychange");return a};
var kM=function(a,b,c,d){c=aM(d||"osd_or_lidar::"+b,c);TL(a,b,c,void 0);return c};
var lM=function(a,b){this.o=a;this.A=b};
var mM=function(a){this.url=a;this.Vo=!1;this.depth=fa(void 0)?void 0:null};
var nM=function(a){a=a?a:oM();for(var b=a.length-1,c=null,d=b;0<=d;--d){var e=a[d];if(e.url&&!e.Vo){c=e;break}}d=null;e=a.length&&a[b].url;c&&0==c.depth||!e||(d=a[b]);return new lM(c,d)};
var oM=function(){var a=r,b=[],c=null,d=null;do{var e=a;OL(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new mM(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=r;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.Vo=!0);return b};
var pM=function(a,b){var c=a||W;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new re(-1,-1):b?(new re(c.innerWidth,c.innerHeight)).round():cf(c||window).round()}catch(d){return new re(-12245933,-12245933)}};
var qM=function(){var a=rM().G,b=0<=sM?tM()-sM:-1,c=uM?tM()-vM:-1,d=0<=wM?tM()-wM:-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};
var tM=function(){return(new Date).getTime()-xM};
var yM=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("&")};
var zM=function(){var a=M("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
var AM=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Qf(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=We(b))){var c,d;try{if(c=ff(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return AM(d)}return!1};
var BM=function(a){CM.e=-1;CM.i=6;CM.n=7;CM.t=8;if(!DM){var b=[];F(Wb(CM),function(a){b[CM[a]+1]=a});
var c=b.join("");DM=(c=a&&a[c])&&A(c,a)}return DM};
var EM=function(){return FM&&Ft&&Ht("6.0.1")&&0<=Sa(GM,"10.1")?!0:!1};
var HM=function(a,b){this.C=null;this.G=a;this.J=b||1;this.o="u"};
var IM=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 oe(e,f),new oe(c-e,f),new oe(e,d-f),new oe(c-e,d-f)]):[new oe(e,0),new oe(0,f),new oe(e,d-1),new oe(c-1,f)];case 3:return[new oe(c-1,0),new oe(e,f),new oe(0,d-1)];default:return[new oe(e,f)]}};
var JM=function(a,b){var c;try{c=b||a.C.getBoundingClientRect()}catch(e){c=new qe(0,0,0,0)}var d=IM(a,c);F(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
var KM=function(a,b,c,d){HM.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};
var LM=function(a,b,c){this.snapshot=a;this.A=b;this.o=c};
var MM=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Sa(GM,"11")&&c)||vc&&9>Ac||0<a.A.length)return!1;try{var d=b.getBoundingClientRect()}catch(p){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=We(b),k=[];if(e){var l=zM(),d=IM(a,d);F(d,function(a,b){var d=new NM("e",f,c,String(b));this.A.push(d);k.push(A(d.Ro,d,l,a))},a);
pf(b,l,0)}else d=JM(a,d),F(d,function(a,d){var e=new NM("e",f,c,String(d));this.A.push(e);k.push(A(e.Qo,e,b,a))},a);
var m=!0;F(k,function(a){m=m&&a()});
m?(a.o="l",a.C=b,a.H=!e):(F(a.A,function(a){a.remove()}),a.A=[]);
return m};
var OM=function(a){if(a.C&&a.H){var b=JM(a);F(b,function(a,b){this.A[b]&&this.A[b].setPosition(a)},a)}};
var PM=function(a){F(a.A,function(a){a.remove()});
a.A=[];a.o="d"};
var QM=function(a){var b=I(),c=a.F?b-a.F:0,d=-1,e=O(a.A,function(a){return RM(a,b)});
4==a.A.length?d=a.G?SM(e):TM(e):3==a.A.length?d=UM(e):1==a.A.length&&(d=[-1,0,1,2,3,5][RM(a.A[0],b)+1]);a.D=d==a.B?a.D+c:0;c=new LM(d,a.B,c);a.B=d;a.F=b;VM(a,d);OM(a);return c};
var WM=function(a){var b=Ib(Sb(XM));F(a,function(a){0<=a&&++b[a]});
return b};
var TM=function(a){a=WM(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};
var UM=function(a){var b=WM(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};
var SM=function(a){a=WM(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};
var VM=function(a,b){if(0==b&&YM(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"}};
var YM=function(a){return"n"==a.o?!0:"l"==a.o&&a.D>=a.L};
var NM=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=Ib(Sb(ZM));this.G=Ib(Sb(XM));"e"==this.B&&($M[this.F]=A(this.Dw,this));vc?(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="'+aN(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=bN(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a};
var bN=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=aN(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};
var aN=function(a,b){var c=Tg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.F);"s"==a.B&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=Tg(c,"delay","1"));return c};
var RM=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=cN(a);dN(a,e,d);c=a.o[a.o.length-1];if(null===e){if(e=d=0,0<a.A||fa(c.ej))e=d=2}else null===c.ej||c.Zl>=d?(d=10<=e?4:0,e=0):e>c.ej?(c=(e-c.ej)/(d-c.Zl)*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};
var cN=function(a){var b=null;try{b=a.module.fc()}catch(c){}return b};
var dN=function(a,b,c){var d=c-1E3,e=a.o.length;F(a.o,function(a,b){a.Zl<=d&&(e=Math.min(e,b+1))});
var f=a.o.length-e;0<f&&a.o.splice(e,f);a.o.unshift({ej:b,Zl:c})};
var eN=function(){this.F=!0;this.o=new NM("s",jM);this.D=!1;this.A=this.B=this.G=this.M=this.L=this.S=this.C=this.K=null;this.V=0;this.J=this.H=this.O=null};
var fN=function(a,b){b!==a.A&&(a.A=b,a.S(b),a.V++)};
var gN=function(a){var b=cN(a.o);null===a.O&&null!==b&&null!==a.H&&(a.O=I()-a.H);return b};
var hN=function(a){var b=a.K.getBoundingClientRect(),c;c=null!=a.M?a.M.clone():new oe(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};
var iN=function(a){a.D&&(a.L=hN(a));a.o.setPosition(a.L);a.G=W.setTimeout(eM("osd_or_lidar::sfm_tpto",A(a.Y,a)),125)};
var jN=function(a){if(a.F){var b=A(function(){1===hM(jM)?(this.B=null,iN(this)):(W.clearTimeout(this.G),fN(this,0))},a),c=iM();
if(c){var d=kM(jM,c,b,"osd_or_lidar::sfm_pv");a.J=function(){UL(jM,c,d);this.J=null}}a.F=!1;
a.A=null;b()}};
var kN=function(a){a.F||(W.clearTimeout(a.G),null===a.J||a.J(),a.F=!0)};
var lN=function(a,b){HM.call(this,a,b);this.B=[];this.F=this.H=null;this.D=!0};
var mN=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?IM(a,c):JM(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new eN,k;k=f;var l=b,m=A(a.K,a),p=e;if(null===k.H){var u="DIV"==l.tagName||"INS"==l.tagName;k.D=!u;k.K=l;e=hN(k);if(null!=p){e=p;p=new oe(0,0);if(k.D){var v=k.K.getBoundingClientRect();p.x+=v.left;p.y+=v.top}k.M=new oe(e.x-p.x,e.y-p.y)}k.S=m;m=!1;u?(m=zM(),k.C=m,pf(l,m,0),m=k.o.Ro(m,e)):m=k.o.Qo(l,e);m?(k.H=I(),k.L=e,k=
!0):(k.o.remove(),k.C&&qf(k.C),k=!1)}else k=!1;if(!k)return nN(a),a.o="c",!1;a.B.push(f)}a.F=I();a.o="l";return!0};
var oN=function(a){var b=Ib(Sb(pN));F(a.B,function(a){null!=a.A&&0<=a.A&&++b[a.A]});
switch(a.J){case 4:return qN(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}};
var qN=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};
var rN=function(a){a.D&&null!==a.F&&"d"!=a.o&&(F(a.B,function(a){jN(a)}),a.o="r",a.D=!1)};
var sN=function(a){a.D||(F(a.B,function(a){kN(a)}),a.D=!0)};
var nN=function(a){sN(a);F(a.B,function(a){kN(a);a.o&&(a.o.remove(),a.o=null);a.C&&(qf(a.C),a.C=null)});
a.B=[];a.o="d"};
var tN=function(){this.F=!1;this.G=void 0;this.B=!OL(W.top);var a=oM();this.D=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Lg(a[a.length-1].url)||"":"";this.A=this.C=this.o=null;this.H=0};
var rM=function(){uN||(uN=new tN);return uN};
var vN=function(a,b,c,d,e){this.A=wN.clone();this.G=this.ea=0;this.oe=this.pe=this.uc=-1;this.Ia=[0,0,0,0,0];this.ia=[0,0,0,0,0];this.L=[0,0,0,0,0];this.$a=[0,0,0,0,0];this.H=d;this.aa=this.S=-1;this.Ym=b;this.lg=e;this.Ob=function(){};
this.qe=function(){};
this.Y=this.element=c;this.kg=0;this.jg=-1;this.D=null;this.O=1;this.va=!1;this.F=null;this.vc=this.Ea=this.mg=!1;this.qb=1;this.ne=!0;this.Rj=0;b=rM();this.ig=b.H++;xN(this,a,b.B)};
var yN=function(a,b,c,d,e){if(!(0>a.H)){var f=W.innerWidth,k=W.innerHeight,l=new qe(Math.round(W.mozInnerScreenY),Math.round(W.mozInnerScreenX+f),Math.round(W.mozInnerScreenY+k),Math.round(W.mozInnerScreenX));c=new qe(W.screenY+d,W.screenX+c.width,W.screenY+c.height,W.screenX);e||(d=new qe(l.top-c.top,l.right-c.left,l.bottom-c.top,l.left-c.left),d.top>a.A.top?a.A=d:(a.A.right=a.A.left+f,a.A.bottom=a.A.top+k),a.ea=f*k);a.Tf(l,c,b,e,!0)}};
var zN=function(a,b,c){var d=BM(W&&W.document);if(d){c||xN(a,W,!0);if(a.vc)d=AN(a,d);else var e=Math.floor((a.A.left+a.A.right)/2),f=Math.floor((a.A.top+a.A.bottom)/2),k=df(window.document),d=d(e-k.x,f-k.y)?.5:0;a.Tf(a.A,d,b,c,!0)}};
var BN=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}};
var AN=function(a,b){function c(a,c){return Boolean(b(a,c))}
var d=df(window.document),e=a.qb,f=Math.floor(a.A.left-d.x)+1,k=Math.floor(a.A.top-d.y)+1,l=Math.floor(a.A.right-d.x)-e,m=Math.floor(a.A.bottom-d.y)-e,d=(m-k)*(l-f);if(k>m||f>l)return 0;var e=c(f,k),p=c(l,m);if(e&&p)return 1;var u=c(l,k),v=c(f,m);if(e)m=BN(k,m,function(a){return c(f,a)}),l=BN(f,l,function(a){return c(a,k)});
else if(u)m=BN(k,m,function(a){return c(l,a)}),f=BN(l,f,function(a){return c(a,k)});
else if(v)k=BN(m,k,function(a){return c(f,a)}),l=BN(f,l,function(a){return c(a,m)});
else if(p)k=BN(m,k,function(a){return c(l,a)}),f=BN(l,f,function(a){return c(a,m)});
else{var z=Math.floor((f+l)/2),x=Math.floor((k+m)/2);if(!c(z,x))return 0;k=BN(x,k,function(a){return c(z,a)});
m=BN(x,m,function(a){return c(z,a)});
f=BN(z,f,function(a){return c(a,x)});
l=BN(z,l,function(a){return c(a,x)})}return(m-k)*(l-f)/d};
var CN=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};
var DN=function(a,b,c){a.O=c;if(!Boolean(Boolean(a.Y&&!EM())&&!EM()))return a.va=!0,!1;c=new KM(!1,void 0,void 0,a.O);var d=MM(c,a.Y,String(a.ig));d?(a.qe=b,a.D=c):a.va=!0;return d};
var EN=function(a,b){if(!a.element||!EM())return!1;a.O=b||1;var c=new lN(!1,a.O),d=mN(c,a.element,A(function(a){FN(this,tM(),!1,[0,.01,.5,1,.01,.3][a])},a));
d?(a.F=c,rN(c)):a.mg=!0;return d};
var FN=function(a,b,c,d){if(!(0>a.H)&&GN(a)){c?a.F&&sN(a.F):(xN(a,W,!0),a.F&&rN(a.F));var e=d||0;fa(d)||-1==a.S||(e=[1,.75,.5,.3,.01][a.S]||0);a.Tf(a.A,e,b,c,!1);!a.Le()||a.Bi()||a.F&&nN(a.F)}};
var GN=function(a){return null!==a.F&&"d"!=a.F.getStatus()};
var xN=function(a,b,c){a.Rj++;b=c?b:b.top;try{var d=wN.clone(),e=new oe(0,0);if(a.Y){if(c||1!=a.lg||!AM(a.Y))d=a.Y.getBoundingClientRect();e=ag(a.Y,b)}var f=e.x,k=e.y;a.A=new qe(Math.round(k),Math.round(f+(d.right-d.left)),Math.round(k+(d.bottom-d.top)),Math.round(f))}catch(l){a.A=wN.clone()}a.ea=(a.A.bottom-a.A.top)*(a.A.right-a.A.left)};
var HN=function(a){a.D&&PM(a.D);a.F&&nN(a.F)};
var IN=function(a,b,c,d,e){this.qa=0;this.ac=[0,0,0,0,0];this.Yb=[0,0,0,0,0];this.Qa=[0,0,0,0,0];this.nb=this.Da=0;this.J={};this.Bd={};this.ge=0;this.Ua=PL(JN,.01)||0;this.K=this.C="";this.zd=!1;this.Va=[];this.la=void 0;this.Ca=this.na=this.bd=this.da=!1;this.B=void 0;this.wc=0;this.ha=-1;this.Nb=this.ga=0;this.Ga=void 0;this.V=-1;this.tb=void 0;this.Oa=this.Z=0;this.La=-1;this.ad=!1;this.U=this.gb=0;this.ab=!1;this.o=0;this.he=this.ie=this.xc=!1;this.je=0;this.$e=this.Cd=this.M=!1;this.ke=0;this.Ze=
!1;vN.call(this,a,b,c,d,e)};
var KN=function(a,b){var c=a.wc;uM||a.la||-1==a.ha||(c+=b-a.ha);return c};
var LN=function(a){if("as"==a.B){var b="sdkVolume"+a.K;if(ha(a.element[b]))try{return Number(a.element[b]())}catch(c){return-1}}if("h"==a.B&&(b=t("ima.common.sdkVolume"),ha(b)))try{return Number(b(a.C))}catch(c){return-1}};
var MN=function(a){a.vc=!0;a.qb=2};
var NN=function(a,b){tb(a.Va,Ib(b-a.Va.length+1));a.Va[b]=(100*a.G|0)/100};
var ON=function(a,b){var c=a.Bd[b];if(null!=c)return c;if(a.Ea)return{"if":0};var d=a.A.clone();d.round();var e=O(a.Va,function(a){return 100*a|0}),c=rM(),d={"if":c.B?1:void 0,
sdk:a.B?a.B:void 0,p:[d.top,d.left,d.bottom,d.right],tos:a.Ia,mtos:a.ia,ps:void 0,pt:e,vht:KN(a,tM()),mut:a.Nb,a:a.Ga,ns:a.ke,at:a.gb,as:a.ab?1:0,afvt:a.U,vpt:a.Oa};if("h"==a.B||"as"==a.B)d.gmm="2";"fully_viewable_audible_half_duration_impression"==b&&(d.std="csm");0<a.Ua&&(d.veri=a.Ua);a.vc&&(d.efpf=a.qb);a.D&&(d.swf=a.D.getStatus(),d.px=a.O);a.F&&(d.sfm=a.F.getStatus(),d.px=a.O);0<a.je&&(d.nnut=a.je);d.vme=a.xc?1:0;d.nmtd=a.ie?1:0;d.mmct=a.he?1:0;d.vpaid=a.tb;d.dur=a.V;d.vmtime=a.Z;d.vmtos=a.ac;
d.vmmtos=a.Yb;PN(a,b)&&a.Le()&&(d.dtos=a.qa,d.vmdtos=a.Da,a.nb++,d.dtoss=a.nb,a.qa=0,a.Da=0);!a.Le()&&2E3<=a.Da&&(d.vmdtos=a.Da);c.A&&(d.ps=[c.A.width,c.A.height]);d.dom=c.D;a.va&&(d.fmf="1",d.px=a.O);a.da&&(d.ven="1");a.bd&&(d.veh="1");a.o&&(d.vds=a.o);QN()?d.c=(100*a.G|0)/100:d.tth=tM()-RN;return d};
var PN=function(a,b){if(E(SN,b))return!0;var c=a.J[b];return n(c)&&(a.J[b]=!0,!c)?!0:!1};
var TN=function(){if(!UN){UN=!0;var a=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame;if(!VN){var b;if(a){var c=aM("osd_or_lidar::throttled_scroll_raf_callback",WN);b=function(){a(function(){W.setTimeout(c,0)})}}else b=WN;
XN=new Am(aM("osd_or_lidar::throttled_scroll_timeout",b),100);b=A(XN.lf,XN);VN=kM(W,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!YN){if(a){var d=aM("osd_or_lidar::throttled_resize_raf_callback",ZN);b=function(){a(function(){W.setTimeout(d,0)})}}else b=ZN;
$N=new Am(aM("osd_or_lidar::throttled_resize_timeout",b),100);b=A($N.lf,$N);YN=kM(W,"resize",b,"osd_or_lidar::throttled_resize")}aO();bO()}};
var ZN=function(){cO(!1);WN()};
var WN=function(){dO(eO(),!1)};
var gO=function(){var a,b=rM();hO&&(b.o=pM(W,hO));var b=b.o,c=iO,d=jO;if(kO){a=c;cO(!1);var e=rM(),f=e.C,b=f.height-a;0>=b&&(b=f.height,a=0);e.o=new re(f.width,b);b=new lO;b.F=!0;b.B=e.o;b.A=f;b.C=a;return b}if(d)return a=new lO,a.D=!0,a;if(mO)return a=new lO,a.G=!0,a;if(nO)return a=new lO,a.H=!0,a;a:{c=new lO;c.B=b;c.o=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var d=hO,k=W||W,k=k.top,e=b||pM(k,d),f=Jf(Ue(k.document));a=-1==e.width||-12245933==e.width?
new qe(e.width,e.width,e.width,e.width):new qe(f.y,f.x+e.width,f.y+e.height,f.x)}catch(l){a=c;break a}c.J=a;c.o=!0}a=c}return a};
var dO=function(a,b){var c;if(!oO)if(window.clearTimeout(pO),pO=null,0==a.length)b||qO();else{var d=gO();try{var e=tM();if(d.F)for(c=0;c<a.length;c++)yN(a[c],e,d.A,d.C,b);else if(d.D)for(c=0;c<a.length;c++)zN(a[c],e,b);else if(d.G)F(a,function(a){if(b){if(a.D){var c=a.D;3<=c.B&&(c.B=3);a.S=-1}}else if(a.D&&"d"!=a.D.getStatus()){var c=QM(a.D),d=[0,0,0,0,0,.01,.5,1,.01,.3];a.G=d[c.snapshot+1];var e=CN(a.G);a.jj(e,c.o,CN(d[c.A+1]),!0,!1);a.S=e;a.Ob(a,wN);!a.Le()||a.Bi()||a.ne||a.D&&PM(a.D);(c=2==c.snapshot||
YM(a.D))||(c=a.D,c="f"==c.o&&c.D>=c.K);c&&(a.qe(a),a.ne=!1,a.D&&PM(a.D))}});
else if(d.H)for(c=0;c<a.length;c++)FN(a[c],e,b);else if(d.o){var f=rM();for(c=0;c<a.length;c++)a[c].update(e,d.J,b,W,f.B)}++rO}finally{b?F(a,function(a){a.G=0}):qO()}}};
var aO=function(){var a=bO,b=iM();b&&(sO=sO||kM(jM,b,a,"osd_or_lidar::visibility"))};
var bO=function(){var a=QN();if(a){if(!uM){var b=tM();vM=b;F(tO,function(a){a.wc=KN(a,b)})}uM=!0;
cO(!0)}else b=tM(),uM=!1,RN=b,F(tO,function(a){0<=a.H&&(a.ha=b)});
dO(eO(),!a)};
var QN=function(){if(uO())return!0;var a=hM(W.document);return 1==a||0==a};
var qO=function(){W&&(pO=W.setTimeout(eM("osd_or_lidar::psamp_to",function(){dO(eO(),!1)}),qM()))};
var eO=function(){return 0==tO.length?vO:0==vO.length?tO:rb(vO,tO)};
var wO=function(){var a=W.document;return a.body&&a.body.getBoundingClientRect?!0:!1};
var cO=function(a){var b=rM();b.o=pM(W,hO);if(!a){b.C=W&&W.outerWidth?new re(W.outerWidth,W.outerHeight):new re(-12245933,-12245933);var c;a=W;a.top!=a&&(a=a.top);var d=0,e=0,f=rM().o;try{var k=a.document,l=k.body,m=k.documentElement;if("CSS1Compat"==k.compatMode&&m.scrollHeight)d=m.scrollHeight!=f.height?m.scrollHeight:m.offsetHeight,e=m.scrollWidth!=f.width?m.scrollWidth:m.offsetWidth;else{var p=m.scrollHeight,u=m.scrollWidth,v=m.offsetHeight,z=m.offsetWidth;m.clientHeight!=v&&(p=l.scrollHeight,
u=l.scrollWidth,v=l.offsetHeight,z=l.offsetWidth);p>f.height?p>v?(d=p,e=u):(d=v,e=z):p<v?(d=p,e=u):(d=v,e=z)}c=new re(e,d)}catch(x){c=new re(-12245933,-12245933)}b.A=c}};
var xO=function(){var a=yO;if(1<=Math.random())return!1;var b=!1;F(tO,function(a){a=EN(a,3);b=b||a});
(nO=b)&&F(tO,function(b){GN(b)||a(b)});
return b};
var zO=function(){var a=yO,b=!1;F(tO,function(c){c=DN(c,a,n(1)&&1>Math.random()?3:1);b=b||c});
(mO=b)&&F(tO,function(b){Boolean(b.D)||a(b)});
return b};
var AO=function(a){F(a,function(a){null==eb(tO,function(c){return c.element==a.element&&c.K==a.K})&&tO.push(a)})};
var uO=function(){return Ih(tO,function(a){return a.M})};
var lO=function(){this.A=this.B=null;this.C=0;this.J=null;this.o=this.H=this.G=this.D=this.F=!1};
var BO=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(BO(a[e],b,c+1));return d.join(b[c])};
var CO=function(){var a=oM(),b=a.length-1,c=nM(a),a=c.o,d=c.A,c=[];d?(a&&c.push(DO(b,[d.url,2],0,[a.url,0],a.depth)),c.push(DO(b,[d.url,2],0))):a&&a.url&&(c.push(DO(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=EO.exec(a.url))&&d[0]||"")&&c.push(DO(b,[d,1],a.depth)));c.push(DO(b));return c};
var DO=function(a,b,c,d,e){a=[a];if(n(b)&&n(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(n(d)&&n(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a};
var FO=function(){var a=CO();return O(a,function(a){return BO(a)})};
var GO=function(){var a=HO||W;if(!a)return"";var b=a.document,c=[];c.push("url="+cM(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+cM(b.referrer.substring(0,512)));return c.join("&")};
var IO=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
var JO=function(a){return!!(1<<a&KO)};
var LO=function(){try{MO()}catch(d){}var a="a=1&b="+KO+"&",b=[],c=99;F(NO,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(OO,function(b){var e="false";try{e=b(W)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
F(PO,function(b){var e="";try{var f=b(W);b=[];for(var k=0,l=0;l<f.length;l++){for(var m=f.charCodeAt(l);255<m;)b[k++]=m&255,m>>=8;b[k++]=m}e=FL(b,!0)}catch(p){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
var MO=function(){if(!QO){var a=function(){RO=!0;W.document.removeEventListener("webdriver-evaluate",a,!0)};
W.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){SO=!0;W.document.removeEventListener("webdriver-evaluate-response",b,!0)};
W.document.addEventListener("webdriver-evaluate-response",b,!0);QO=!0}};
var TO=function(){if(!UO){UO=!0;try{sM=tM(),1>Math.random()&&(VO=!0),HO=fM(),cO(!1),wO()?(window.setTimeout(function(){},1),rM().B?WO():TN()):XO=!0}catch(a){throw tO=[],vO=[],a;
}}};
var WO=function(){var a;if(tc&&fa(W.screenX)&&fa(W.mozInnerScreenX)&&fa(W.outerWidth)){var b=W.navigator.userAgent,c=b.indexOf("Firefox/");a=-1;if(0<=c){a=Math.floor(b.substr(c+8))||-1;var d=b.indexOf("Mac OS X 10."),c=-1;0<=d&&(c=Number(b.substr(d+12,1))||-1);var e=0<c?-1:b.indexOf("Windows NT "),d=-1;0<=e&&(d={"6.0":0,"6.1":1,"6.2":2}[b.substr(e+11,3)]||-1);b=148;5<=c?b=4<=a?108:3<=a?127:108:0<=d&&(16==a||17==a||18==a)&&(b=[[146,146,146],[148,147,148],[131,130,136]][d][a-16]);a=b}else a=null;null!==
a&&(iO=a,kO=!0);a=!0}else a=!1;if(a)TN();else if(a=W&&W.document,a=vc&&yc(8)&&ha(BM(a))?jO=!0:!1,a)YO=1>Math.random(),TN();else{if(EM()){if(xO()){TN();ZO=!0;return}}else if(zO()){TN();$O=!0;return}window.clearTimeout(pO);pO=null;aP="i";oO=!0}};
var yO=function(a){if(a){if(!a.zd){var b=[];b.push("v=377v");b.push("r=fp");b.push("efm="+($O?1:0));b.push("esfm="+(ZO?1:0));b.push(Sg(ON(a,"start")));b.push(GO());b="&"+b.join("&");WL(W,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3),void 0);a.zd=!0}a.Ea=!0}};
var bP=function(a){a.ke++;NN(a,0);.1<=a.Ga&&(a.ab=!0);return ON(a,"start")};
var cP=function(a){NN(a,1);dO([a],!QN());return ON(a,"firstquartile")};
var dP=function(a){NN(a,2);a.ad=!0;dO([a],!QN());return ON(a,"midpoint")};
var eP=function(a){NN(a,3);dO([a],!QN());return ON(a,"thirdquartile")};
var fP=function(a){NN(a,4);dO([a],!QN());var b=ON(a,"complete");a.M=!1;gP(a.C);return b};
var hP=function(a){return iP(a,"pause")};
var jP=function(a){return iP(a,"abandon")};
var kP=function(a){var b=QN();a.la&&!b&&(a.ha=tM());dO([a],!b);a.la=!1;return ON(a,"resume")};
var lP=function(a){var b=ON(a,"viewable_impression");a.bd=!0;return b};
var mP=function(a){var b=!QN();dO([a],b);b=ON(a,"skip");a.M=!1;gP(a.C);return b};
var nP=function(a){dO([a],!QN());return ON(a,"mute")};
var oP=function(a){dO([a],!QN());return ON(a,"unmute")};
var pP=function(a){a.M=!0;dO([a],!QN());return ON(a,"fullscreen")};
var qP=function(a){a.M=!1;dO([a],!QN());return ON(a,"exitfullscreen")};
var rP=function(a){return ON(a,"fully_viewable_audible_half_duration_impression")};
var sP=function(a){return ON(a,"measurable_impression")};
var tP=function(a){return ON(a,"engagedview")};
var uP=function(a){return ON(a,"impression")};
var vP=function(a){return ON(a,"creativeview")};
var iP=function(a,b){a.wc=KN(a,tM());var c=!QN();dO([a],c);a.la=!0;return ON(a,b)};
var wP=function(a,b){if(!a.$e){a.$e=!0;"i"!=aP&&(oO=!1);if($O&&!Boolean(a.D)&&!a.va){var c=1>Math.random()?3:1;DN(a,yO,c)}ZO&&!GN(a)&&(c=PL([3,1],1),EN(a,c));a.J={};a.J.firstquartile=!1;a.J.midpoint=!1;a.J.thirdquartile=!1;a.J.complete=!1;a.J.pause=!1;a.J.skip=!1;a.J.viewable_impression=!1;a.nb=0;c=n(b)?b.opt_nativeTime:void 0;wM=c=fa(c)?c:tM();a.Ia=[0,0,0,0,0];a.ia=[0,0,0,0,0];a.L=[0,0,0,0,0];a.$a=[0,0,0,0,0];a.H=-1;a.uc=-1;a.oe=-1;a.kg=0;a.jg=-1;a.S=-1;a.aa=-1;a.G=0;a.H=c;var d=!1;QN()||(d=!0,a.ha=
c);dO([a],d)}};
var gP=function(a){if(y(a)){var b=fb(tO,function(b){return b.C==a});
0<=b&&(HN(tO[b]),pb(tO,b))}};
var xP=function(a,b){if(b.opt_adElement)return yP(a,b.opt_adElement);var c=zP(a,b.opt_sdkID||"");return c?c:c=eb(tO,function(b){return b.C==a})};
var yP=function(a,b){var c=eb(tO,function(a){return a.element==b});
null!==c&&c.C!=a&&(gP(c.C),c=null);c||(c=AP(b),c.C=a,c.B="h");return c};
var zP=function(a,b){var c=eb(tO,function(c){return c.element?BP(c.element,b)==a&&c.K==b:!1});
null!==c&&c.C!=a&&(gP(c.C),c=null);if(c)return c;c=CP(b);c=eb(c,function(c){return BP(c,b)==a});
if(!c)return null;c=AP(c);c.B="as";c.C=a;c.K=b;return c};
var CP=function(a){var b=W.document,c=Jb(O(["embed","object"],function(a){return sb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=$d(c,function(a){if(!a||!ia(a)||1!=a.nodeType||!ha(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ha(a[d])?!0:!1})};
var BP=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};
var AP=function(a){a=new IN(W,"",a,-1,7);a.Ob=DP;rM().G=79463069;AO([a]);TN();return a};
var DP=function(a){if(a.Le()&&(a.da?"h"==a.B&&0<a.Ua&&!a.bd&&0==a.ge%a.Ua:1)){var b="as"==a.B,c="h"==a.B,d="n"==a.B,e="a"==a.B,f=t("ima.common.triggerViewEvent"),k=t("ima.bridge.triggerViewEvent");try{var l=EP("viewable_impression",a);if(c)ha(f)?(f(a.C,l),a.da=!0):a.o|=8;else if(e)ha(f)?(f(a.C,l),a.da=!0):a.o|=131072;else if(d)ha(k)?(k(a.C,l),a.da=!0):a.o|=32;else if(b){var m="triggerViewEvent"+a.K;a.element&&a.element[m]?(a.element[m](l),a.da=!0):a.o|=1}else a.o|=16}catch(x){a.o|=2}}else a.o|=4;
if((15E3<=a.U||a.ad&&(-1!=a.V?a.U>=a.V/2:-1!=a.La&&a.U>=a.La))&&!a.Ca){b="as"==a.B;c="h"==a.B;d="a"==a.B;try{if(c){var p=t("ima.common.triggerExternalActivityEvent");if(ha(p)){var u=EP("fully_viewable_audible_half_duration_impression",a);p(a.C,u,"fully_viewable_audible_half_duration_impression");a.Ca=!0}else a.o|=8192}else if(d){var v=t("ima.common.triggerExternalActivityEvent");ha(v)?(u=EP("fully_viewable_audible_half_duration_impression",a),v(a.C,u,"fully_viewable_audible_half_duration_impression"),
a.Ca=!0):a.o|=65536}else if(b){var z;z="triggerExternalActivityEvent"+a.K;a.element&&a.element[z]?(a.element[z]("fully_viewable_audible_half_duration_impression"),a.Ca=!0):a.o|=64}else a.o|=16384}catch(x){a.o|=128}}};
var FP=function(a){if(a.na||a.Ea)a.o|=1024;else{var b="as"==a.B,c="h"==a.B,d="n"==a.B,e="a"==a.B,f=t("ima.common.triggerMeasurableEvent"),k=t("ima.bridge.triggerMeasurableEvent");try{var l=EP("measurable_impression",a);if(c)ha(f)?(f(a.C,l),a.na=!0):a.o|=2048;else if(e)ha(f)?(f(a.C,l),a.na=!0):a.o|=262144;else if(d)ha(k)?(k(a.C,l),a.na=!0):a.o|=32768;else if(b){var m="triggerMeasurableEvent"+a.K;a.element&&a.element[m]?(a.element[m](),a.na=!0):a.o|=256}else a.o|=4096}catch(p){a.o|=512}}};
var EP=function(a,b){var c=Zb(GP,function(b){return b==a}),c={e:HP[c],
xJ:"377v"},d=ON(b,a);gc(c,d);b.Bd[a]=d;return yM(c)};
var IP=function(){var a={};a.moatInit=LO();return a};
var JP=function(a,b,c){var d={};d.viewability=KP(a,b,c);a={gmm:"2"};a.j=rM().D;gc(a,{s1:RO?"1":"0",s2:SO?"1":"0"});a=yM(a);d.moatViewability=a;return d};
var KP=function(a,b,c){var d={};gc(d,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});var e=a.toLowerCase();if(a=Zb(GP,function(a){return a==e})){a={v:"377v",
e:HP[a]};if(d.opt_bounds)return a.msg="ol",yM(a);if(XO)return a.msg="ue",yM(a);b=xP(b,d);a.nas=tO.length;if(!b)return a.msg="nf",yM(a);TO();"i"==aP&&(b.Ea=!0);YO&&MN(b);c=d.opt_fullscreen;n(c)&&(b.M=Boolean(c));E(LP,e)&&(wP(b,d),VO&&FP(b));c={};c.start=bP;c.firstquartile=cP;c.midpoint=dP;c.thirdquartile=eP;c.complete=fP;c.pause=hP;c.resume=kP;c.skip=mP;c.viewable_impression=lP;c.mute=nP;c.unmute=oP;c.fullscreen=pP;c.exitfullscreen=qP;c.fully_viewable_audible_half_duration_impression=rP;c.measurable_impression=
sP;c.abandon=jP;c.engagedview=tP;c.impression=uP;c.creativeview=vP;if(c=c[e]){d=c(b,d);if(!n(d)||y(d))return d;gc(a,d);return yM(a)}}};
var MP=function(a,b){var c=rM();if(c.F!=a){c.F=a;var d=Ih(tO,function(a){return a.Ze});
F(tO,function(c){a||d||(c.H=b);c.Cd=a;c.Ze=!1})}};
var NP=function(){dd.call(this);this.o=null;this.D=new Cm(this);H(this,this.D);this.F=null;this.K=new wg;this.J=new wg;this.B=this.C=null;this.A=!1;this.G=(ha(null),null)};
var OP=function(){null!=PP||(PP=new NP);return PP};
var QP=function(a){var b=OP();a=b.K.get(a)||b.F;return null!=a?a():{}};
var RP=function(a){if(null==a)return!1;if(XK()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=SP(a);return 0>=b-a.width&&42>=c-a.height};
var SP=function(a){return ha(a.getBoundingClientRect)&&yf(We(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
var TP=function(a,b){a.C=b};
var UP=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):kK.B)null!=e.opt_fullscreen||(e.opt_fullscreen=RP(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.C&&(e.opt_bounds=SP(a.C));return ZL(bM,"lidar::handlevast_html5",pa(JP,b,c,e),VP)||{}}return{}};
var WP=function(){var a=OP();if(!a.A)return null;if(null!=a.B)return a.B;a.B=ZL(bM,"lidar::getinitsignals_html5",IP,VP)||null;return a.B};
var XP=function(a){if(ha(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.o.send("activityMonitor","pageSignals",b)}};
var YP=function(a,b,c){if(!kK.C)return"";var d=b?a.J.get(b):kK.B;a={};null!=c&&(a.fullscreen=c);return NL(function(){return d},a)};
var ZP=function(a,b,c){if(kb(a))return null;a=$d(a,function(a){var b=a.C;return"application/x-mpegurl"==D(a.o).toLowerCase()||"progressive"==b});
kb(c)||(c=O(c,function(a){return a.toLowerCase()}),a=$d(a,function(a){return E(c,D(a.o).toLowerCase())}));
if(!fa(b)||0>=b)b=UK()?500:1E3;return $P(a,b)};
var $P=function(a,b){return aQ(a,b)||bQ(a,b)||cQ(a,b)};
var aQ=function(a,b){var c=null;F(a,function(a){var e=a.Qd,f=a.Pd;e>b||f<b||!(null==c||c.Qd>e)||(c=a)});
return c};
var bQ=function(a,b){var c=null;F(a,function(a){var e=a.Qd,f=a.Pd;f>b||(null==c||c.Pd<f?c=a:null!=c&&c.Pd==f&&c.Qd>e&&(c=a))});
return c};
var cQ=function(a,b){var c=null;F(a,function(a){var e=a.Qd,f=a.Pd;if(!(e<b))if(null!=c&&c.Qd==e&&c.Pd<f)c=a;else if(null==c||c.Qd>e)c=a});
return c};
var dQ=function(){dd.call(this);this.F=this.J=this.M=this.G=!1;this.A=0;this.C=[];this.H=!1;this.O=this.S=window.Infinity;this.B=0;this.L=!1;this.D=new Cm(this);this.K={}};
var eQ=function(a,b){null==b||a.G||(a.o=b,fQ(a),a.G=!0)};
var gQ=function(a){null!=a.o&&a.G&&(hQ(a),a.G=!1,a.J=!1,a.F=!1,a.A=0,a.C=[],a.H=!1)};
var fQ=function(a){hQ(a);!(a.o instanceof dd)&&"ontouchstart"in window.document.documentElement&&$K()?(a.K={touchstart:A(a.aB,a),touchmove:A(a.$A,a),touchend:A(a.ZA,a)},Ob(a.K,function(a,c){this.o.addEventListener(c,a,!1)},a)):a.D.R(a.o,"click",a.uo)};
var hQ=function(a){a.D.za(a.o,"click",a.uo);Ob(a.K,function(a,c){this.o.removeEventListener(c,a,!1)},a);
a.K={}};
var iQ=function(a,b){a.C=[];F(b,function(a){nb(this.C,a.identifier)},a)};
var jQ=function(a,b){return Ih(b,function(a){return E(this.C,a.identifier)},a)};
var kQ=function(a){null!=a?BK(aaa,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=AK(a)?baa(a):null:a=null;return a};
var lQ=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");eh(c,d);return c.toString()};
var mQ=function(a){return null===a?!1:"pharma"==(new N(a)).Ce().toLowerCase()};
var baa=function(a){if(C(D(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=lh(new N(a));return wh(a,"v")?a.get("v").toString():wh(a,"video_id")?a.get("video_id").toString():null};
var caa=function(a){return C(D(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"};
var nQ=function(){dd.call(this)};
var oQ=function(a){dd.call(this);this.o=a;this.V=new ym(4);this.B=0;this.O=this.C=this.L=this.H=!1;this.M=this.Uc();this.K=this.Nd();this.U=15E3;this.S=!1};
var pQ=function(a){a.L=!1;a.C=!1;a.H=!1;a.B=0;a.O=!1;a.V.clear();qQ(a);Mb(a.D)};
var rQ=function(a){a.C||(a.C=!0,qQ(a),a.$("start"),gL()||!hL||hL&&aL(iL,3)||XK()&&(!$K()||!aL(sQ,4))||a.Pk())};
var tQ=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};
var qQ=function(a){a.J&&(Td(a.J),a.J=null)};
var uQ=function(){dd.call(this);this.A=new vQ;this.o=new Cm(this);var a=gK();if(a){a:{if(Yb(a.o,"videoElementMockDuration")&&(a=a.o.videoElementMockDuration,fa(a)))break a;a=window.NaN}this.duration=a}};
var daa=function(){var a=["video/mp4"],b=["video/ogg"],c=new uQ;c.canPlayType=function(c){return E(a,c)?"probably":E(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c};
var eaa=function(a){this.startTime=0;this.endTime=a};
var vQ=function(){this.length=0;this.o=[]};
var faa=function(){};
var wQ=function(){throw Error("Do not instantiate directly");};
var xQ=function(){wQ.call(this)};
var yQ=function(a,b){var c;a:{var d=a(b||gaa,void 0,void 0);c=Ue().createElement("DIV");d=haa(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c};
var haa=function(a){if(!ia(a))return String(a);if(a instanceof wQ){if(a.Pc===zQ)return a.getContent();if(a.Pc===AQ)return ya(a.getContent())}return"zSoyz"};
var BQ=function(a,b){return null!=a&&a.Pc===b};
var CQ=function(a){if(null!=a)switch(a.fd){case 1:return 1;case -1:return-1;case 0:return 0}return null};
var DQ=function(){wQ.call(this)};
var Y=function(a){return null!=a&&a.Pc===zQ?a:a instanceof Pe?EQ(Re(a),a.hf()):EQ(ya(String(String(a))),CQ(a))};
var FQ=function(){wQ.call(this)};
var GQ=function(){wQ.call(this)};
var HQ=function(){wQ.call(this)};
var IQ=function(){wQ.call(this)};
var JQ=function(){wQ.call(this)};
var KQ=function(a,b){this.content=String(a);this.fd=null!=b?b:null};
var LQ=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}};
var MQ=function(a,b,c){var d="key_"+a+":"+b,e=NQ[d];if(void 0===e||0>e)NQ[d]=0,OQ[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
var PQ=function(a,b){var c=OQ["key_"+a+":"+b];c||""==b||(c=OQ["key_"+a+":"]);return c?c:iaa;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};
var iaa=function(){return""};
var QQ=function(a){return Y(a)};
var RQ=function(a){return String(a).replace(jaa,"").replace(kaa,"&lt;")};
var SQ=function(a){return BQ(a,zQ)?(a=RQ(a.getContent()),String(a).replace(laa,TQ)):ya(String(a))};
var UQ=function(a){return BQ(a,zQ)?(a=RQ(a.getContent()),String(a).replace(maa,TQ)):String(a).replace(naa,TQ)};
var oaa=function(a){return"%"+a.charCodeAt(0).toString(16)};
var VQ=function(a){a=va(String(a));WQ.lastIndex=0;return WQ.test(a)?a.replace(WQ,oaa):a};
var XQ=function(a){return String(a).replace(YQ,ZQ)};
var $Q=function(a){if(BQ(a,aR)||BQ(a,bR))return String(a).replace(YQ,ZQ);a instanceof He?a=XQ(Je(a)):a instanceof Me?a=XQ(Oe(a)):(a=String(a),a=paa.test(a)?a.replace(YQ,ZQ):"#zSoyz");return a};
var cR=function(a){dR[1]||(dR[1]=new faa);var b=CQ(a);if(null==b){var c=b=0,d=!1;a=ye(a+"",BQ(a,zQ)).split(qaa);for(var e=0;e<a.length;e++){var f=a[e];raa.test(ye(f,void 0))?(b++,c++):saa.test(f)?d=!0:taa.test(ye(f,void 0))?c++:uaa.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return vaa(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")};
var TQ=function(a){return waa[a]};
var ZQ=function(a){return xaa[a]};
var yaa=function(a,b,c){return""+PQ("a",a.$h)(a,null,c)};
var zaa=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+QQ(cR(a.Nc))+">"+Y(a.Nc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
var Aaa=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+QQ(cR(a.Nc))+">"+Y(a.Nc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Y(a.Df)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
var Baa=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'};
var eR=function(){var a="",b=ra("Share");return a+b};
var fR=function(a){return""+PQ("b",a.$h)(a,null,void 0)};
var Caa=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button tabindex="2" class="videoAdUiExtendButton videoAdUiAction" style="display: none">'+Y(a.Ov)+'</button><br/><button tabindex="1" class="videoAdUiSkipButton videoAdUiAction">'+Y(a.skipText)+'<div class="videoAdUiSkipIcon"></div><div class="videoAdUiAutoSkipText"></div></button></div>'};
var Daa=function(){var a="",b=ra("Continue Ad");return a+b};
var gR=function(a){var b="";a=2<=a.gj&&1<=a.Gh?ra("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Y(a.Gh),totalAds:Y(a.gj),timeLeft:Y(a.dj)}):ra("Ad {$timeLeft}",{timeLeft:Y(a.dj)});return b+=a};
var hR=function(){var a=iR(),b=EQ("</a>"),c="",a=ra("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:Y(a),endFormat:Y(b)});return EQ(c+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))};
var iR=function(){return EQ('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
var jR=function(a){return EQ("<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'>"+Y(a.heading)+"</div><div class='videoAdUiPopupText'>"+Y(a.message)+
"</div><div class='videoAdUiPopupButtons'>"+Y(a.buttons)+"</div></form></div></div>")};
var Eaa=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.Sq,d=c.length,e=0;e<d;e++)b+="<li>"+Y(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Y(a.fi)+"</div><a class='videoAdUiWhyThisAdUnsubscribe videoAdUiHideIfEmpty'>"+Y(a.unsubscribe)+"</a><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Y(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+
Y(a.control)+"</a>";a=""+jR({heading:kR(""+Y(a.heading)),message:kR(b),buttons:kR("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+Y(a.close)+"</button>")});return EQ(a)};
var Faa=function(a){return EQ(jR({heading:kR("<div class='videoAdUiPopupBack'></div>"+Y(a.heading)),message:kR(""+Y(a.message)),buttons:kR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))};
var Gaa=function(a){for(var b=""+Y(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+SQ(e)+"'><input type='radio' id='videoAdUiMuteOption"+SQ(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+SQ(e)+"' />"+Y(f)+"</label>");a=""+jR({heading:kR(Y(a.heading)+" <a class='videoAdUiMuteUndo'>"+Y(a.undo)+"</a>"),message:kR(b),buttons:kR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+
Y(a.confirm)+"</button>")});return EQ(a)};
var Haa=function(a){var b=String(""+a.heading);return EQ(jR({heading:b?new KQ(b,void 0):"",message:kR(""+Y(a.message)),buttons:kR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))};
var lR=function(a,b,c){if(null==a||!yf(We(a),a))throw RK(mR,null,"containerElement","element");this.D=a;this.A=this.o=null;this.C=b;this.F=c||!1;this.B=null;this.o=M("div",{style:"display:none;"});a=gK();hK(a,"useVideoElementMock")?(a=daa(),b=M("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.og=M("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.cj=M("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.og.appendChild(a.cj),b.appendChild(a.og),a.o.R(a,["loadeddata","playing","pause","ended"],a.oB),a=b):(a="",b=ra("Advertisement"),a=M("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:a+b}));a.setAttribute("webkit-playsinline",!0);this.A=a;this.D.appendChild(this.o);this.o.appendChild(this.A);this.C&&(a=M("div",{id:this.C,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.o.appendChild(a));this.F&&(this.B=M("div",{style:"position:absolute;width:100%;height:100%;"}),
this.o.appendChild(this.B))};
var nR=function(a){dd.call(this);this.S="ima-chromeless-video";var b=null;null!=a&&(y(a)?this.S=a:b=a);this.O=new Cm(this);this.F=null;this.C=!1;this.ga=this.Uc();this.ea=this.Nd();this.K=-1;this.Z=!1;this.G=-1;this.B=this.Y=this.L=null;this.U="";this.o=!1;this.da=null!=b;this.ha=this.na=this.M=this.aa=this.A=null;this.D=void 0;this.H=this.la=null;this.J=this.qa=0;this.da?(this.o=!0,this.A=b,this.D=2):(a=A(this.Bv,this),oR?a():(pR.push(a),a=lf("script"),a.src="https://www.youtube.com/iframe_api",
b=window.document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))};
var qR=function(a,b,c){var d={};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.L&&(d.utpsa=1);a.B.B&&gc(d,a.B.B)}e=kQ(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()&&wK(sK(),41351017)&&(d.enabled_engage_types=
(3).toString());a.C=!1;a.B&&a.B.A?(a.la=d,a.A.preloadVideoByPlayerVars(a.la)):a.A.cueVideoByPlayerVars(d);a.$("loaded")};
var rR=function(a){a.O.za(a.F,"tick",a.wp);null!=a.F&&(a.F.stop(),a.F=null)};
var sR=function(a){null!=a.va&&Td(a.va)};
var tR=function(a){dd.call(this);this.o=a||Wa();this.B=[]};
var uR=function(a,b,c,d,e){jc.call(this,a);this.kc=b;this.od=c;this.to=d;this.C=e};
var vR=function(a,b){tR.call(this,b);this.C=a;this.Ic=null;this.D=new Cm(this);this.logger=null;this.D.R(ff(),"message",this.receive)};
var wR=function(a){if(null==a||!y(a)||!ta(a,"ima://"))return null;a=a.substr(6);try{return be(a)}catch(b){return null}};
var Iaa=function(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.o;e.channel=a.C;return"ima://"+de(e)};
var xR=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.C)return!1;c=b.sid;return null==c||"*"!=a.o&&c!=a.o?!1:!0};
var yR=function(a,b){dd.call(this);this.C=a;this.B=b;this.o={};this.A=new Cm(this);this.A.R(ff(),"message",this.D)};
var zR=function(a,b,c,d){a.o.hasOwnProperty(b)||(c=new vR(b,c),a.A.R(c,a.C,function(a){a=new AR(a.type,a.kc,a.od,a.to,a.getOrigin(),b);this.$(a)}),c.Ic=d,c.connect(),a.o[b]=c)};
var AR=function(a,b,c,d,e,f){uR.call(this,a,b,c,d,e);this.B=f};
var BR=function(){var a=t("google.ima.gptProxyInstance",ff());if(null!=a)return a;Cm.call(this);this.B=new yR("gpt",!0);H(this,this.B);this.R(this.B,"gpt",this.F);this.o=null;CR()||ff().top===ff()||(this.o=new yR("gpt",!1),H(this,this.o),this.R(this.o,"gpt",this.D))};
var CR=function(){return!!t("googletag.cmd",ff())};
var DR=function(){var a=t("googletag.console",ff());return null!=a?a:null};
var ER=function(a,b,c,d,e,f,k,l,m,p,u,v){this.C=a;this.D=p;this.F=b;this.G=d;this.H=l;this.J=v;this.K=e;this.L=f;this.o=k;this.A=m;this.B=u};
var Jaa=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,l,m,p,u,v){if("%"==p)return"%";var z=c.shift();if("undefined"==typeof z)throw Error("[goog.string.format] Not enough arguments");arguments[0]=z;return FR[p].apply(null,arguments)})};
var GR=function(a,b){dd.call(this);this.C=new Cm(this);this.H=!1;this.J=Wa();this.F=new wg;var c=this.J,d=("https:"==window.document.location.protocol?"https:":"http:")+Jaa("//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=M("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});
Gm(this.C,c,"load",this.Yv);a.appendChild(c);this.A=c;c=this.F.get("*");null==c&&(c=new vR(this.J,"*"),this.H&&(c.Ic=zf(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.pw);this.C.R(this.D,"touch",this.Ew);null!=this.o&&(this.C.R(this.D,"displayContainer",this.lw),this.C.R(this.D,"videoDisplay",this.Bw),this.C.R(this.o,Vb(Kaa),this.nB));c=ff();d=t("google.ima.gptProxyInstance",c);null==d&&(d=new BR,q("google.ima.gptProxyInstance",d,
c))};
var HR=function(a,b){var c=$f(a.A),d=O(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)};
var IR=function(a,b,c,d,e){if(!(e||null!=a&&yf(We(a),a)))throw RK(mR,null,"containerElement","element");this.B=a;var f=e=null!=b||null!=d,k=!1;kK.o||(kK.o||$K()||hL&&(!hL||!aL(iL,4))||Ma(oc,"CrKey")||fL()||Ma(oc,"Roku")||dL()||Ma(oc,"Xbox"))&&e||(WK()||Ma(oc,"CrKey")||fL()||Ma(oc,"Roku")||dL()||Ma(oc,"Xbox")||(k=!0),f=!1);this.D=f;this.H=k||f&&null!=d;kK.o?a=null:(e=M("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.A=a;this.o=this.D||!this.A||kK.o||!WK()?null:new lR(this.A,
null,!0);a=null;this.D?b?a=new oQ(b):d&&(a=new nR(d)):this.o&&(a=new oQ(this.o.A));this.C=(this.F=a)?c||null:null;this.J=null!=this.C;kL(jL.getInstance(),8,{enabled:this.D,yt:null!=d,customClick:null!=this.C});null===this.A?(b=this.B,kK.B=b):this.D&&b&&!ha(b.getBoundingClientRect)&&(b=this.B,kK.B=b);this.G=null==this.A||kK.o?null:new GR(this.A,this)};
var JR=function(a){return a.J&&a.C?a.C:null!=a.o?a.o.B:null};
var KR=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 l=d.parentElement.childNodes,m=0,p=0;p<l.length;++p){var u=l[p];if(u.nodeName&&u.nodeName.toString().toLowerCase()==k){if(d==u){k="."+m;break a}++m}}}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 v=
e.parent;for(k=0;v&&v!=e&&25>k;++k){for(var z=v.frames,l=0;l<z.length;++l)if(e==z[l]){f.push(l);break}e=v;v=e.parent}}catch(x){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(v=0;v<LR.length-1;++v)c.push(Wg(a,LR[v])||"");v=Wg(a,"videoad_start_delay");z="";v&&(v=(0,window.parseInt)(v,10),z=0>v?"postroll":0==v?"preroll":"midroll");c.push(z)}else for(v=0;v<LR.length;++v)c.push("");c=c.join(":");v=c.length;if(0==v)c=0;else{z=305419896;for(d=0;d<v;d++)z^=(z<<5)+(z>>2)+c.charCodeAt(d)&4294967295;c=0<
z?z:4294967296+z}return c.toString()};
var MR=function(){dd.call(this);this.currentTime=0};
var NR=function(a){MR.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw RK(mR,null,"content","currentTime");this.o=a;this.ya=new Qd(250);this.A=new Cm(this);Dm(this.A,this.ya,"tick",this.B,this)};
var OR=function(){this.reset()};
var PR=function(){this.A=this.o=null};
var QR=function(){this.o=RR();this.J=-1;this.M=this.S=this.B=this.H=this.C=null;this.F=RR();this.A=null;this.V=this.K=this.L="";this.G=this.O=this.U=this.D=null};
var RR=function(){return Math.floor(4503599627370496*Math.random())};
var SR=function(a){if(kK.o){var b;return"h.3.0.0"}b="h."+a.V;null!=a.D&&(b+="/n."+a.D,null!=a.C&&(b+="/"+a.C));return b};
var TR=function(a,b){dd.call(this);this.o=a;this.F=!!b;this.B=UR(this);if(!this.B){var c=vc&&!yc("7")?"readystatechange":"load";this.A=Nc(this.o,c,this.D,!1,this);this.C=window.setInterval(A(this.D,this),100)}};
var VR=function(a){a.C&&(window.clearInterval(a.C),a.C=null)};
var UR=function(a){var b=!1;try{if(a.F||!vc||yc("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};
var WR=function(){dd.call(this);this.C=!1;this.impressionUrls=[]};
var XR=function(a,b,c){jc.call(this,a);this.C=b||null;this.B=c||null};
var YR=function(a,b){this.G=a;this.F=O(b,function(a){return a.clone()});
this.D="";this.A=this.B=0;this.o=!0;this.C=[]};
var ZR=function(a){a.D="";a.B=0;a.A=0;a.o=!0;a.C=[]};
var $R=function(){WR.call(this);this.H=[];this.D=!1;this.B="not_loaded";this.A=null;this.F=0;this.o=null;this.J=new Ve};
var aS=function(a){var b=["googletag","googletag.cmd"];return eb(a,function(a){return Gg(b,function(b){return!ca(t(b,a))})})||null};
var bS=function(a){return a.C?O(a.H,function(a){return a.clone()}):[]};
var Laa=function(a){a=bS(a);return null!=a?O(a,function(a){return a.F}):void 0};
var cS=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(dS.o,d,e,c)}catch(f){}};
var Maa=function(a,b){var c=eS(a);if(null!==c){cS(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};
var fS=function(a,b){a.G=b;a.setVideoContent("","");var c=eS(a);null===c||cS(c,null,!1)};
var eS=function(a){null==a.o&&gS(a);return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.companionAds?a.o.googletag.companionAds():null};
var hS=function(a){null==a.o&&gS(a);return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.pubads?a.o.googletag.pubads():null};
var iS=function(a){a.A&&(a.A.stop(),a.A.za("tick",a.Mp,!1,a),a.A.dispose(),a.A=null)};
var jS=function(a){var b;if(b=!a.D)gS(a),b=null!=a.o&&null!=a.o.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.o)a.D=!0,c=[];else{var d=a.o.googleGetCompanionAdSlots();c=O(d,a.cC,a)}}catch(f){a.D=!0,c=[]}a.H=c;a.D=!0}if("retrieved"!=a.B&&"not_available"!=a.B&&!ca(eS(a))){var e;b=eS(a);if(null!==b&&null!=b.getDisplayAdsCorrelator)try{e=b.getDisplayAdsCorrelator()}catch(f){e=null}else e=null;switch(e){case "not_loaded":case "not_available":a.B=e;break;default:e=Number(e),(0,window.isNaN)(e)?a.B=
"not_available":(a.G=e,a.B="retrieved")}}a.D&&"retrieved"==a.B?(a.C=!0,iS(a),a.$(new XR("companions_success"))):a.D&&"not_available"==a.B?(a.C=!0,iS(a),kS(a)):a.A||(a.F=I()+5E3,a.A=new Qd(100),a.A.R("tick",a.Mp,!1,a),a.A.start())};
var gS=function(a){var b=If(a.J);try{a.o=aS([b,b.top])}catch(c){a.o=null}};
var kS=function(a){a.$(new XR("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
var lS=function(a,b,c){a.$(new XR("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Nc(d,"click",A(a.Wy,a,b),!1,a)};
var mS=function(a,b){jc.call(this,a);this.B=b};
var nS=function(a){jc.call(this,a)};
var oS=function(){};
var pS=function(a,b){if(null==a||0>=a.width||0>=a.height)throw RK(mR,null,"ad slot size",a.toString());this.A=a;this.o=null!=b?b:new oS;this.D=qS(Naa,this.o.B)?this.o.B:"All";this.C=qS(Oaa,this.o.creativeType)?this.o.creativeType:"All";this.G=qS(Paa,this.o.C)?this.o.C:"SelectExactMatch";this.H=qS(Qaa,this.o.A)?this.o.A:"DisallowResize";this.B=null!=this.o.D?this.o.D:[];this.F=fa(this.o.o)&&0<this.o.o&&100>=this.o.o?this.o.o:90};
var rS=function(a,b){var c=[];F(b,function(a){!C(D(a.o.C))&&((0,window.isNaN)(a.o.o)||(0,window.isNaN)(sS(a))||sS(a)==a.o.o)&&tS(this,a)?c.push(a):(a=Raa(this,a),null!=a&&!C(D(a.o.C))&&c.push(a))},a);
return c};
var tS=function(a,b){var c;if(c="Flash"!=b.getContentType()||uS){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<=jb(a.B,c):!1)}if(c){var d=b.o.Ub();if("IgnoreSize"==a.G||se(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:vS(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};
var Raa=function(a,b){var c=b.A;return null!=c?eb(c,function(a){return tS(this,a)},a):null};
var vS=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new re(c*a.width,c*a.height)};
var qS=function(a,b){return null!=b&&Ub(a,b)};
var wS=function(){return wK(sK(),41351059)&&!V()};
var xS=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
var yS=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)};
var Saa=function(a){var b={};F(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Ta(d[0]),d=Ta(d[1]),0<a.length&&(b[a]=d))});
return b};
var zS=function(a,b){if(a[b])return AS(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return AS(a[d]);return!1};
var AS=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
var BS=function(a){N.call(this,a);this.G=new wg;a=this.B;var b=a.indexOf(";"),c=null;0<=b?(dh(this,a.substring(0,b)),c=a.substring(b+1)):dh(this,a);Taa(this,c)};
var Taa=function(a,b){C(D(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?E(b,a)||b.push(a):b=[D(a)];this.G.set(e,b)}},a)};
var Uaa=function(a){if(C(D("ord")))return null;a=a.G.get("ord");return null!=a?a:null};
var CS=function(a,b,c){C(D(b))||(c=O(c,D),a.G.set(b,c))};
var DS=function(a,b){var c=[D(b)];tb(c,Vaa(a));return c.join(";")};
var Vaa=function(a){var b=Uaa(a);null!=b?C(D("ord"))||a.G.remove("ord"):b=[D(I())];var c=[];F(a.G.Na(),function(a){F(this.G.get(a),function(b){tb(c,a+"="+b)})},a);
tb(c,"ord="+b[0]);CS(a,"ord",b);return c};
var ES=function(a){if(null==a)return!1;a=new N(a);var b=a.B;return ua(a.A,"googleads.g.doubleclick.net")&&FS("/pagead/ads",b)};
var GS=function(a){a=a.o;return null!=a?"bid.g.doubleclick.net"==hh(new N(a)):!1};
var HS=function(a){if(null==a)return!1;var b=new BS(a);a=b.A;b=DS(b,b.B);return!ua(a,".g.doubleclick.net")&&ua(a,"doubleclick.net")&&FS("/(ad|pfad)[x|i|j]?/",b)};
var IS=function(a){if(null==a)return!1;a=new N(a);var b=a.B;return ua(a.A,"doubleclick.net")&&FS("/gampad/(live/)?ads",b)};
var Waa=function(a){return ES(a.o)||HS(a.o)||IS(a.o)||GS(a)};
var Xaa=function(a){a=a.o;if(null==a)return null;a=lh(new N(a));return null!=a.get("ms")?D(a.get("ms")):null};
var FS=function(a,b){return C(D(b))?!1:(new RegExp(a)).test(b)};
var JS=function(a){return PK(Yaa,null,a.parentNode.nodeName,a.nodeName)};
var KS=function(a){return PK(Zaa,null,a.parentNode.nodeName,a.nodeName)};
var LS=function(a,b){return null!=a?$d(sf(a),function(a){return a.nodeName==b}):[]};
var MS=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};
var NS=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=Ta(c);return b?Ga(c):c};
var OS=function(a,b,c,d){null!=a&&F(sf(a),function(a){if(a.nodeName==b)c.call(d,a);else throw JS(a);})};
var PS=function(a){return C(D(a))?window.NaN:Ya(D(a))};
var QS=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new Oy(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};
var RS=function(a,b){if(!C(D(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};
var SS=function(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ha(a,"/pagead/adview")?TS(a)?0:2:Ha(a,"/pagead/conversion")?TS(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+SR(dS);var d=a.indexOf("&adurl=");c=-1!=d?Ra(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c};
var TS=function(a){return Gg($aa,function(b){var c=a||"";return 0<=Vg(c,0,b,c.search(Xg))})};
var US=function(a,b){this.o=a;this.A=b};
var VS=function(a){return a.A?-1:a.o};
var WS=function(a,b){a.A&&(a.A=!1,a.o=a.o*b/100)};
var XS=function(){this.o=new wg};
var YS=function(a,b){this.B=a;this.o=b};
var ZS=function(a,b){YS.call(this,"progress",a);this.A=b};
var $S=function(a,b){F(b,function(a){var b=a.getType().toLowerCase(),e=aT(this,b);e.push(a);this.o.set(b,e)},a)};
var bT=function(a,b,c,d){b=b.toLowerCase();var e=aT(a,b);null!=d?(d=new ZS(c,d),null!=d?e.push(d):e.push(new YS(b,c))):e.push(new YS(b,c));a.o.set(b,e)};
var aT=function(a,b){return null!=b?a.o.get(b.toLowerCase())||[]:[]};
var aba=function(a,b){var c=aT(a,"progress");F(c,function(a){WS(a.A,b)});
Bb(c,function(a,b){return VS(a.A)-VS(b.A)})};
var cT=function(a,b){return O(aT(a,b)||[],function(a){return a.o})};
var dT=function(a,b){var c=new XS;OS(a,"Tracking",function(a){var e=MS(a,"event"),f=SS(NS(a),b);eT(f)&&null!=e&&("progress"==e?(a=MS(a,"offset"),a=fT(a),null!=a&&bT(c,e,f,a)):bT(c,e,f))});
return c};
var bba=function(a){if(C(D(a)))return null;a=new N(a);if("thismessage"!=a.C||"extensions"!=a.A)return null;a=a.B;if(!ta(a,"/"))return null;a=a.substr(1);return C(D(a))?null:a};
var fT=function(a){if(C(D(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!(0,window.isNaN)(a)&&0<=a&&(b=new US(a,!0))):(a=QS(a),0<=a&&(b=new US(a,!1)));return b};
var eT=function(a){var b=!0;if(C(D(a)))b=!1;else try{new N(a)}catch(c){b=!1}return b};
var gT=function(a,b){this.o=null!=a?a:new XS;this.H=null!=b?b:[]};
var cba=function(a,b){var c=b.o;F(c.Na(),function(a){$S(this.o,c.get(a))},a)};
var hT=function(a,b){var c=cT(a.o,b);return null!=c?c:[]};
var iT=function(a,b){gT.call(this);this.A=a;this.B=b};
var jT=function(){};
var kT=function(a,b){gT.call(this,b);this.A=a};
var lT=function(a){gT.call(this);this.A=a};
var mT=function(a){gT.call(this);this.A=(0,window.isNaN)(a)?-1:a};
var nT=function(){this.Da=-1;this.L={};this.ea="";this.yf=new XS};
var oT=function(a,b,c){a.ea=b;a.L=c};
var pT=function(a,b){var c=[],d=a.hi();F(d,function(a){a=aT(a.yf,b)||[];c=rb(a,c)},a);
return c};
var qT=function(a,b,c){var d=c||!1;return eb(b.C,function(a){var b=a.o==this.o;return a instanceof this.constructor&&(d||b)},a)};
var rT=function(a,b,c,d,e){nT.call(this);C(D(a))&&(a=Wa()+"_ima");this.U=D(a);this.na=b;this.da=c;this.V=d;this.C=e;this.J=[];null!=this.V?this.ga=sT[this.V]||"Other":this.ga=null};
var dba=function(){this.A=this.C=1;this.o=this.B=0;this.D=1};
var tT=function(a,b,c,d,e,f,k,l,m,p){this.C=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.Qd=e;this.Pd=f;this.F=k;this.D=l;this.A=EK(D(m));this.B=p};
var uT=function(a,b,c,d,e,f){nT.call(this);this.Lf(a);this.B=b;this.A=c;this.K=sb(d);this.ha=null;this.C=e;this.ia=sb(f);wb(this.ia,null,function(a){return a.J})};
var vT=function(a){var b=new wg,c=a.hi();F(c,function(a){if(a instanceof uT){var c=a.A;F(c.Na(),function(a){b.set(a,rb(c.get(a),b.get(a)||[]))},this)}},a);
return b};
var wT=function(a,b){var c=eb(a.K,function(a){return!C(D(a.o))&&-1!=a.o.indexOf(b)&&("VPAID"==a.B||"surveys"==a.B)});
return null!=c?c.A:null};
var xT=function(a,b,c){G.call(this);this.A=a;this.B=b;this.C=c;this.F=0;this.o=new Cm(this);eba(this)};
var eba=function(a){a.C.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)};
var yT=function(a,b,c,d,e){rT.call(this,a,b,c,d,e);this.Z=this.A=null;this.la=-2;this.B=null;this.Y=this.M=w;this.aa=[];this.qa=[];this.D=!1};
var zT=function(a,b){a.B=b;null!=a.A&&null!=b&&(AT(a,a.M),BT(a,a.Y))};
var AT=function(a,b){null!=a.B&&null!=a.A&&F(a.aa,function(a){this.B.za(a,"click",this.M);!C(D(this.Vc()))&&this.B.R(a,"click",b)},a);
a.M=b};
var BT=function(a,b){null!=a.B&&null!=a.A&&(a.B.za(a.A,"creativeview",a.Y),a.B.R(a.A,"creativeview",b));a.Y=b};
var CT=function(a,b){var c=a.U,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.getWidth()+"px");C(D(c))||(d.id=c);return M("div",d,b)};
var DT=function(a){if(!a.D)return null;var b=pT(a,"start");tb(b,pT(a,"creativeview"));if(null!=b&&!kb(b)){var c=[];F(b,function(a){if(!C(D(a))){var b;b=Ue();var f;f=y(void 0)?Ge(void 0).jd():"";b=b.cw("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+f,src:fba});Mf(b,{display:"block",height:"0px",width:"0px"});f="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",EK(a.o));b.setAttribute("id",f);this.qa.push(f);nb(c,b)}},a);
return c}return null};
var gba=function(a,b){if(null!=a.A){var c=new wg;F(a.aa,function(a){c.set(a,this.Zn(a))},a);
new xT(b,a.A,c)}};
var hba=function(a){var b=[],c=a.hi();F(c,function(a){b=rb(b,a.J)},a);
return b};
var ET=function(a,b,c){var d=c||!1;return eb(b.C,function(a){var b=a.o==this.o;return this instanceof a.constructor&&(d||b)},a)};
var FT=function(a,b,c,d,e,f,k,l,m,p,u,v,z,x,ga,wa){this.ea=a;this.Y=b;this.L=c;this.Ga=d;this.ia=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.aa=l?sb(l):[];this.K=m?sb(m):[];this.C=p?sb(p):[];this.Z=[];this.H=[];this.G=null;this.da=[];this.ga=!0;this.o=this.A=null;this.J=new wg(v);this.M=null!=wa;this.Ca=(this.S=null!=z)?x||!1:!1;this.Ea=this.Ex?ga||!1:!1;this.Ia=D(z);this.La=D(wa);this.va=this.B=null;this.D=new dba;this.U=new re(0,0);this.Da=String(Math.floor(1E9*Math.random()));this.O=this.V=this.F=
null;this.qa=I();this.la=this.Qa=0;this.na=this.ha=!1;F(this.C,function(a){a.S=this},this);
GT(this,u)};
var HT=function(a){var b;b=IT(a);b=zS(b,"hideMaster")||zS(b,"blockAllAds")?"3":JT(a)?KT(a)?"2_3":LT(a)?"2_4":MT(a)?NT(a)?"2_5":OT(a)?"2_1":"2_2":"2":"1";return(PT(a)?4:QT(a,iba)?15:RT(a,jba)||RT(a,ST)?1:TT(a)?2:0)+"_"+b};
var UT=function(a){return null!=a.Y?a.Y:""};
var VT=function(a){return null!=a.o?rb(VT(a.o),a.aa):a.aa};
var WT=function(a){return null!=a.o?rb(WT(a.o),a.K):a.K};
var XT=function(a){return null!=a.o?rb(a.H,XT(a.o)):a.H};
var IT=function(a){return null!=a.A?a.A.L:{}};
var kba=function(a){var b={};F(a.C,function(a){a=a.L;for(var d in a)b[d]=a[d]});
return b};
var lba=function(a){return null!=a.A?a.A.ea:""};
var ZT=function(a,b){a.A=b;a.U=null!=a.A&&a.A instanceof yT?a.A.Ub():new re(0,0)};
var $T=function(a){return a.A};
var aU=function(a){return null!=a.ea?a.ea:""};
var bU=function(a){if(null==a.o||cU(a.o.L))return[];var b=[aU(a.o)];tb(b,bU(a.o));return b};
var mba=function(a){var b=bU(a).reverse();b.push(aU(a));return b};
var dU=function(a){if(null==a.o||cU(a.o.L))return[];var b=[UT(a.o)];tb(b,dU(a.o));return b};
var eU=function(a){if(!V())return null;if(null!=a.o){var b=eU(a.o);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.A:null};
var nba=function(a){var b=dU(a).reverse();b.push(UT(a));return b};
var cU=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};
var fU=function(a){if(null==a.o)return[a.L];var b=fU(a.o);b.push(a.L);cU(b[0])&&b.shift();return b};
var gU=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.A?a.A:-1};
var hU=function(a){if(-1!=a.ia)return a.ia;a=a.getExtension("pod");return null!=a&&-1!=a.A?a.A:-1};
var iU=function(a,b,c,d){a=XT(a);return rS(new pS(new re(b,c),d),a)};
var jU=function(a){var b=a.B.qf,c=a.B.pf;if(!b||!c)if(a=a.B.o?Wg(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 re(b,c)};
var oba=function(a){if(!a.B||kU(a)&&!QT(a,["ADSENSE/ADX"]))return[];var b=jU(a);if(0>=b.width||0>=b.height)return[];var c=new oS;c.creativeType="All";c.B="All";c.C="SelectNearMatch";c.o=40;var d=iU(a,b.width,b.height,c);if(!kb(d))return d;c.A="ResizeSmaller";d=$d(XT(a),function(a){return a.o.Kg()},a);
return rS(new pS(new re(b.width,b.height),c),d)};
var pba=function(a){var b=null,c=0;F(oba(a),function(a){var e;e=jU(this);e=!a.o.Kg()||a.getWidth()<=e.width&&a.getHeight()<=e.height?a.o.Ub():vS(a.o.Ub(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);
return b};
var lU=function(a,b){return b||null==a.o?a.Z:rb(a.Z,lU(a.o))};
var GT=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){mU(a,this)},a);
V()&&JT(a)&&(a.H=$d(a.H,function(a){return 60>=a.getHeight()}))};
var nU=function(a,b){return Ih(a.C,function(a){return a instanceof uT&&"linear"==b||a instanceof yT&&"nonlinear"==b?!0:!1})};
var LT=function(a){return-1!=oU(a)&&0!=oU(a)&&7>=oU(a)};
var JT=function(a){return a.ha?a.na:pU(a)?!0:kU(a)?"video"==a.Ga:nU(a,"linear")};
var MT=function(a){return null!=qU(a)};
var pU=function(a){var b=a.A;return kU(a)&&null!=b&&b instanceof yT&&wS()&&(90<a.U.height||!V()&&!1)};
var rU=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:rU(a,b.o)};
var NT=function(a){a=a.getExtension("AdSense");if(null==a)return!1;a=aT(a.o,"video_extend_clicked");return V()?0!=a.length:!1};
var qU=function(a){var b=rU(a,a.o);if(null!=b){if("skippable"==b.A)return b.B;if("nonskippable"==b.A)return null}var b=null,c=new US(5,!1),d=qba(a);"implicit"==d&&(b=c);var e=a.A;null==b&&null!=e&&e instanceof uT&&(b=e.C);null!=b||"explicit"!=d||(b=c);return null!=b&&V()?a.B.Sc("disable_skip_on_short_adsense")&&!KT(a)&&kU(a)&&33>=sU(a)?null:(0,window.isNaN)(a.B.F)?c:new US(a.B.F,!1):b};
var qba=function(a){if(null!=eb(a.J.Ka(),function(a){return!kb(hT(a,"skip"))}))return"implicit";
var b=a.J.get("DFP");if(b instanceof kT)switch(b.A){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.A;return V()&&null!=a&&(a=a.yf,null!=a&&!kb(aT(a,"skip")))?"explicit":"none"};
var tU=function(a){if(null==a.B)return!1;var b=a.B.o;null!=b&&ua(b,"/PrefetchedAd")&&null!=a.o&&(b=a.o.J.get("LocalRedirect"),b=null!=b?b.hd():null);(a=ES(b)||IS(b)||HS(b))||(null!=b?(b=hh(new N(b)),a=ua(b,"viral.adsense.net")):a=!1);return a};
var OT=function(a){if(null==a.Y||null==a.B)return!1;var b;(b=tU(a)||!1)&&!(b=kU(a)&&!QT(a,["ADSENSE/ADX"]))&&(QT(a,ST)?(b=a.J.get("DFP"),b=null!=b?"InstreamSelect"==b.A:!1):b=!1);if(b||a.o&&a.o.M&&tU(a.o))return!0;a=RT(a,["ADSENSE/ADX"])||a.o&&TT(a);return V()&&!a};
var uU=function(a){return null===a.A?null:a.A.Vc()};
var sU=function(a){return null!=a.A?a.A.Vk():-1};
var vU=function(a){return null!==a.G?10:kb(a.da)?0:(a=a.B.ki("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3))};
var oU=function(a){return sU(a)+vU(a)};
var wU=function(a){return null===a.A?null:a.A.Xk()};
var kU=function(a){return QT(a,xU)};
var PT=function(a){return null!=a.o&&PT(a.o)||QT(a,rba)};
var KT=function(a){var b=wU(a);return QT(a,["402"])||y(b)&&!ca(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))};
var yU=function(a){return kU(a)&&OT(a)&&!LT(a)&&!C(D(a.F))&&!ca(qU(a))&&0<VS(qU(a))};
var TT=function(a){return RT(a,xU)||RT(a,["402"])};
var zU=function(a){return a.F};
var AU=function(a){a=a.getExtension("InfoCards");return null!=a?a.A:null};
var BU=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.A:null};
var QT=function(a,b){return null!=a.Y?E(b,a.L):!1};
var RT=function(a,b){for(var c=fU(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(E(b,c[d]))return!0;break}return!1};
var CU=function(a){var b=KT(a)&&V();return null!=wU(a)&&(0!=kK.D||b)};
var DU=function(){dd.call(this);this.B=[]};
var EU=function(){return new FT("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new wg)};
var FU=function(a){DU.call(this);this.o=a;this.G=null;this.H=!1;this.C=null;this.D=new Cm;Dm(this.D,this.o,["companions_success","companion_initialization_failed"],this.IA,this);Dm(this.D,this.o,"companion_display_error",this.Yy,this);Dm(this.D,this.o,["companion_slot_init","companion_click"],this.Ty,this);this.o.C?this.H=!0:this.o.initialize()};
var GU=function(a,b){Mb(a.A);a.A=new dd;a.C=b;a.F=!0;a.H?HU(a):(a.F=IU(JU(b),[]),a.F||(a.C=null,a.A=null));return a.A};
var HU=function(a){var b=a.C;a.C=null;if(null!=a.o)if(kb(a.B))KU(a,Error("Companion slots not available."));else if(null!=b){var c=sba(a,b),d=a.o;try{d.o.googleSetCompanionAdContents(O(a.B,d.Zu,d)),d.sendImpressionUrls()}catch(f){d.$(new XR("companion_display_error",f))}if(0<c.length&&b.ga){a=a.o;if(d=0!=c.length)d=fU(b),d=cU(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].G);b=b.B;c=eS(a);if(null!==c){cS(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else KU(a,
Error("Invalid master ad."))};
var KU=function(a,b){a.$(new mS("companion_display_error",b))};
var tba=function(a){wK(sK(),9419278)&&NK(a)};
var sba=function(a,b){var c=[],d=[];F(a.B,function(a){ZR(a);Ih(a.F,function(d){a:{d=iU(b,d.width,d.height);if(!kb(d)&&(d=uba(d,c),null!=d)){var e=d.B;if(null!=e&&0!=a.G.indexOf(e)){d=!1;break a}c.push(d);var e=d.getContent(),m=d.getWidth(),p=d.getHeight(),u="IFrame"!=d.o.da;d=d.o.J;a.D=e;a.B=m;a.A=p;a.o=u;a.C=d||[];d=!0;break a}d=!1}return d},this)||d.push(a)},a);
var e=JU(b);a.F=IU(e,c);a.F||F(a.B,function(a){ZR(a)},a);
return d};
var IU=function(a,b){if(null==a)return!0;var c=a.o;return"all"==a.A?vba(c,b):"any"==a.A?wba(c,b):!0};
var JU=function(a){return null==a||null==a.A||(0,window.isNaN)(a.A.o)?null:eb(lU(a,!0),function(a){a=a.o;return kb(a)?!1:(0,window.isNaN)(a[0].o.o)?!1:a[0].o.o==sS(a[0])})};
var vba=function(a,b){return Gg(a,function(a){return E(b,a)})};
var wba=function(a,b){return Ih(a,function(a){return E(b,a)})};
var uba=function(a,b){return eb(a,function(a){return!E(b,a)})};
var LU=function(a){this.o=a};
var MU=function(a,b){jc.call(this,"adsManagerLoaded");this.B=a;this.C=b};
var NU=function(a,b,c,d){a.B.Fd(new LU(b),c,d);return a.B};
var OU=function(a){jc.call(this,a);this.F=[];this.D={};this.B=null;this.C=!0};
var PU=function(){this.B=new wg;this.A=!V()&&.01>Math.random();this.C=0;this.o="0";this.D=""};
var xba=function(){var a=PU.getInstance();a.sendMessage("ff",a.C);a.C=0};
var QU=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=html5");d.cid=yba(a);d.utv=b;d.utt=c;d.cd6=SR(dS);b=yK(sK());C(D(b))||(d.xid=b);Ob(d,function(a,b){mh(e,b,a)},a);
return e.toString()};
var zba=function(a,b){if(null!=b){var c=xa(b),d=Aba.exec(c),c=D(lh(new N(c)).get("client"));a.o=d&&2==d.length?d[1]:C(c)?"0":c}else a.o="0"};
var yba=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};
var RU=function(a,b,c){this.F=b;this.C=c;this.D=null;this.A=new Cm(this);this.K=a;this.B=this.o=null;this.H=!1};
var Bba=function(a){if(null===a.D)SU(a);else{var b=new N(a.D.o),c=D(b.o.get("vid")),b=D(b.o.get("cmsid")),d=a.C.L,e=a.C.K;a.C.L=c;a.C.K=b;if(C(D(c))||C(D(b)))SU(a);else if(c==d&&b==e)SU(a);else{var f=a.F.Be();f.setVideoContent(c,b);Maa(f,a.D);a.B=new Qd(100);Dm(a.A,a.B,"tick",function(){var a;a:{var b=hS(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&SU(this)},a);
a.B.start()}}};
var Cba=function(a){a.o=new Qd;Im(a.A,a.o,"tick",function(){SU(this)},a);
Rd(a.o,a.K);a.o.start()};
var SU=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()};
var TU=function(){dd.call(this);this.o=new wg;this.A=null;this.F=new Cm(this);H(this,this.F);this.D="";this.G=this.B=null};
var UU=function(){null!=VU||(VU=new TU);return VU};
var WU=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;UU().$(new cK("measurable_impression",null,c))};
var XU=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;UU().$(new cK("viewable_impression",null,c))};
var YU=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;UU().$(new cK("externalActivityEvent",null,d))};
var Dba=function(a,b){a.B=b};
var Eba=function(a,b){if(a.A){var c=200,d=sK();wK(d,31061771)?c=300:wK(d,31061772)?c=400:wK(d,31061773)&&(c=500);var e=a.o,c=window.setTimeout(function(){b("timeout");F(e.Na(),function(a){e.get(a)===b&&e.remove(a)})},c);
a.o.set(c,b);d={};a.C&&(d.isFullscreen=a.C.Nd());d.osdId=a.D;d.eventId=c;a.A.send("activityMonitor","fetchAdTagUrl",d)}else b("")};
var Fba=function(a,b,c,d){if(a.A){var e=200,f=sK();wK(f,41351051)?e=300:wK(f,41351052)?e=400:wK(f,41351053)&&(e=500);var k=a.o,e=window.setTimeout(function(){d({viewability:"timeout"});F(k.Na(),function(a){k.get(a)===d&&k.remove(a)})},e);
a.o.set(e,d);f={};a.C&&(f.isFullscreen=a.C.Nd());a.D&&(f.osdId=a.D);f.queryId=c;f.eventId=e;f.vastEvent=b;f.isOverlay=null!=a.B;a.B&&(f.overlayBounds=SP(a.B));a.A.send("activityMonitor","reportVastEvent",f)}else d({})};
var ZU=function(){};
var $U=function(a,b,c){this.A=a;this.o=c;this.B=b};
var Gba=function(a){this.B=a};
var aV=function(a){this.B=a;this.A=this.o=!1};
var Hba=function(a,b,c){this.o=a;this.A=b;this.B=c};
var bV=function(){this.o=new wg};
var cV=function(a,b,c){if((0,window.isNaN)(c))throw Error("Incorrect time offset.");var d=[];xg(a.o,c)&&(d=a.o.get(c,[]));F(b,function(a){null!=a&&nb(d,a)});
a.o.set(c,d)};
var dV=function(a,b){this.o=a;this.A=b};
var Iba=function(a){var b=new bV;F(sf(uf(a.o)),function(a){switch(a.nodeName){case "Preroll":a=eV(this,a);cV(b,a,0);break;case "Midroll":var d=MS(a,"timeOffset"),e=QS(d);if(-1==e)throw PK(fV,null,"timeOffset",D(d));a=eV(this,a);cV(b,a,e);break;case "Postroll":a=eV(this,a);cV(b,a,-1);break;default:throw PK(gV,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.o.Na().length)throw PK(Jba);return b};
var eV=function(a,b){var c=[];F(sf(b),function(a){switch(a.nodeName){case "Ad":var b=D(NS(a));if(!C(b)){a=MS(a,"bumper");var f=this.A.clone();f.o=b;b=new aV(f);b.o=null!=a;b.A="always"==a;nb(c,b)}break;default:throw PK(gV,null,a.parentNode.nodeName,a.nodeName);}},a);
return c};
var hV=function(){this.C=null;this.D="http://www.google.com/adsense/support";this.F=0;this.o=15;this.B=5;this.A=3};
var Kba=function(a,b){a.o=b};
var iV=function(a,b,c,d,e,f,k,l,m,p,u){gT.call(this,p,u);this.D=a;this.F=b;this.B=c;this.G=m;this.J=k;this.C=f;this.A=e};
var jV=function(){};
var Lba=function(a,b){var c;F(sf(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new hV:null;break;case "params":null!=c&&Mba(this,c,a)}},a);
return c};
var Mba=function(a,b,c){F(sf(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)};
var kV=function(){};
var lV=function(){};
var mV=function(){};
var nV=function(){};
var oV=function(a,b){a[b]||(a[b]=[]);return a[b]};
var pV=function(a,b){return a[b]?a[b].length:0};
var qV=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&&Nba(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0};
var Nba=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(!qV(a,b))return!1}else return!1;return!0};
var rV=function(a){this.o=a||{}};
var sV=function(a){this.o=a||{}};
var tV=function(a){this.o=a||{}};
var uV=function(a){this.o=a||{}};
var vV=function(a){this.o=a||{}};
var wV=function(a){this.o=a||{}};
var xV=function(a){this.o=a||{}};
var yV=function(a){this.o=a||{}};
var zV=function(a){this.o=a||{}};
var AV=function(a){this.o=a||{}};
var BV=function(a){this.o=a||{}};
var CV=function(a){this.o=a||{}};
var DV=function(a){this.o=a||{}};
var EV=function(a,b){return new sV(oV(a.o,"card")[b])};
var FV=function(a){return(a=a.o.placement)?new uV(a):GV};
var HV=function(a){a=a.o.show_in_endcap;return null!=a?a:!1};
var IV=function(){if(!JV){var a={};JV={Jb:a};a.type={type:"e",label:1,oa:0};a.id={type:"s",label:1,oa:""};a.link_url={type:"s",label:1,oa:""};a.title={type:"s",label:1,oa:""};a.image={type:"m",label:1,oa:Oba,sa:KV()};a.event={type:"m",label:3,sa:LV()};a.target={type:"s",label:1,oa:""}}return JV};
var LV=function(){if(!MV){var a={};MV={Jb:a};a.type={type:"e",label:1,oa:0};a.base_url={type:"s",label:1,oa:""}}return MV};
var KV=function(){if(!NV){var a={};NV={Jb:a};a.image_url={type:"s",label:1,oa:""};a.thumbnail_url={type:"s",label:1,oa:""};a.image_height={type:"i",label:1,oa:0};a.image_width={type:"i",label:1,oa:0}}return NV};
var OV=function(a,b,c){gT.call(this,c);this.A=a;this.B=b||null};
var PV=function(a){this.o=a};
var QV=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.Jb[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]=RV[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.Jb[f.nodeName],l=QV(a,f,k.sa);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};
var SV=function(a,b){gT.call(this);this.B=a;this.A=D(b)};
var TV=function(a,b){this.logger=null;this.B=b;this.o={};this.A=[];this.o.CustomTracking=dT;this.o.UI=this.D};
var UV=function(a,b){if(null==b)return null;var c={};F(sf(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};
var VV=function(a,b,c,d,e,f){gT.call(this,f);this.B=a;this.D=b;this.F=c;this.C=d;this.A=e};
var WV=function(a){return null!=a.A?a.A.length:0};
var XV=function(){TV.call(this,0,"mute_");this.o.SurveyOptions=this.C};
var YV=function(a,b,c,d){gT.call(this);this.C=a;this.B=b;this.D=c;this.A=d};
var ZV=function(){};
var $V=function(){gT.call(this)};
var aW=function(){};
var Pba=function(a,b){F(sf(b),function(a){a.nodeName==this.o.Nu&&NS(a)},a)};
var bW=function(a,b,c,d){gT.call(this);this.B=a;this.C=b;this.D=c;this.A=d};
var cW=function(){};
var dW=function(a){gT.call(this);this.A=a};
var eW=function(){};
var fW=function(a,b,c,d,e,f,k,l,m,p,u){gT.call(this,d);this.K=a;this.L=b;this.J=c;this.D=e||null;this.C=f||null;this.M=k||null;this.B=l||null;this.A=m||null;this.G=p||null;this.F=u||null};
var gW=function(){TV.call(this,0,"why_this_ad_");this.A.push("targeting_reason")};
var hW=function(a,b){return null!=a?Gg(b,function(b){return b in a}):!1};
var Qba=function(a,b){return null!=a?Ih(b,function(b){return b in a}):!1};
var iW=function(){};
var jW=function(){gT.call(this)};
var kW=function(){};
var lW=function(){};
var Rba=function(a,b){this.o=a;this.A=b};
var mW=function(a,b,c){this.o=a;this.A=b;this.B=c};
var sS=function(a){a=$T(a.o.getAd());return null!=a?a.o:window.NaN};
var mU=function(a,b){a.o.S=b;F(a.A,function(a){mU(a,b)},a)};
var Sba=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Eb?'<a class="text-image-link" target="_blank" href="'+Y(a.Eb)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Y(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+Y(a.duration)+"</div>":"")+"</a>":"")+(a.Eb?'<a class="text-title" href="'+Y(a.Eb)+'" target="_blank" dir='+Y(a.dir)+">"+Y(a.title)+"</a>":"")+'<div class="text-description" dir='+
Y(a.dir)+">"+Y(a.text)+"</div>"+(a.Yq&&a.Eb?'<a target="_blank" href="'+Y(a.Eb)+'" class="text-ad-channel">'+Y(a.Yq)+"</a>":"")+"</div></div>"};
var Tba=function(a){return'<div class="flash-container '+(a.cf?"click-capture":"")+'">'+(a.Eb?'<a class="click-layer" target="_blank" href="'+Y(a.Eb)+'"></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="'+Y(a.width)+'" height="'+Y(a.height)+'"><param name="movie" value="'+Y(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+
VQ(a.Eb)+'"><embed width="'+Y(a.width)+'" height="'+Y(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Y(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+VQ(a.Eb)+'"></object></div>'};
var Uba=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';">'+(a.Eb?'<a target="_blank" href="'+Y(a.Eb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0"></a></div>'};
var Vba=function(a){return'<div class="image-container" id="'+Y(a.id)+'">'+(a.Eb?'<a target="_blank" href="'+Y(a.Eb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};
var nW=function(a,b,c,d){yT.call(this,a,b,"Static",c,d);this.Hn=!1};
var oW=function(a,b,c,d){yT.call(this,a,b,"Html",c,d)};
var pW=function(a,b,c,d){yT.call(this,a,b,"Static",c,d)};
var qW=function(a,b){yT.call(this,a,b,"Static","text","")};
var rW=function(a,b,c,d,e){yT.call(this,a,b,c,d,e)};
var sW=function(a,b,c){if(kb(c))return new yT(a,b,"",null,"");var d=tW(c);c=d.A;var e=d.o,d=d.B;switch(c){case "Html":return new oW(a,b,e,d);case "Static":switch(sT[e]){case "Image":return new pW(a,b,e,d);case "Flash":return new nW(a,b,e,d);case "Text":return new qW(a,b)}}return new rW(a,b,c,e,d)};
var tW=function(a){var b=eb(a,function(a){return"Static"==a.A&&"Flash"==sT[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"==sT[a.o]}),f=eb(a,function(a){return"Static"==a.A&&"Text"==sT[a.o]});
return uS&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
var Wba=function(a,b,c,d,e,f){var k=tW(f),l=sW(a.id,a.size,[k]);l.D=!0;l.H=a.apiFramework;l.O=b;l.J=c;l.o=d;e&&(l.yf=e);ob(f,k);var m=[];F(f,function(f){f=sW(a.id,a.size,[f]);f.D=!0;f.H=a.apiFramework;f.O=b;f.J=c;f.o=d;e&&(f.yf=e);m.push(new mW(f,[],a.adSlotId))});
return new mW(l,m,a.adSlotId)};
var uW=function(a,b,c){this.A=a;this.o=b;this.B=c};
var vW=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.we()};
var Xba=function(a){"none"==a.o.style.display&&(lg(a.o,!0),F(a.H,function(a){KK(a)}))};
var Yba=function(a,b,c,d,e,f,k,l,m,p){b=sW("icon"+a,b,p);b.H=k;b.O=l.iconClickThrough;return new vW(b,a,c,d,e,f,m)};
var wW=function(a){this.C=a;this.logger=null};
var xW=function(a){if(null==a)return!1;a=uf(a);return null!=a&&"VAST"==a.nodeName};
var yW=function(a){if(null==a)return 0;a=(0,window.parseInt)(a.getAttribute("version"),10);return fa(a)&&!(0,window.isNaN)(a)?a:0};
var Zba=function(a){var b=[],c=uf(a.C),d=yW(c);OS(c,a.o.Ts,function(a){var c;c=zW(a);if(null==c)throw JS(a);var k=a.getAttribute(this.A.Bh);a=Number(a.getAttribute(this.A.gn));c=$ba(this,c,k||null,a||0);null!=c&&(c.la=d,b.push(c))},a);
return b};
var zW=function(a){var b=null;F(sf(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw JS(a);}});
return b};
var $ba=function(a,b,c,d){var e,f,k=[],l=[],m=[],p=[],u=new wg,v,z=b.nodeName==a.o.WRAPPER,x=z,ga=z,wa;F(sf(b),function(a){switch(a.nodeName){case this.o.Ou:if(z){if(null!=v)throw KS(a);v=NS(a);wa=bba(v);x=RS(b.getAttribute(this.A.Ys),x);ga=RS(b.getAttribute(this.A.Rt),ga)}else throw JS(a);break;case this.o.Vs:e=NS(a);break;case this.o.Ws:f=NS(a);break;case this.o.Ft:NS(a);break;case this.o.Lu:NS(a);break;case this.o.Dh:a=NS(a);eT(a)&&k.push(SS(a));break;case this.o.ERROR:a=NS(a);l.push(SS(a));break;
case this.o.zt:a=aca(this,a);m=a.creatives;p=a.wv;break;case this.o.Ot:u=bca(this,a,wa)}},a);
return new FT(D(c),e,cca(e),f,0,0,d,l,k,m,p,u,v,x,ga,dca(u))};
var dca=function(a){var b=null;a=a.get("AdSense");null!=a&&(a=hT(a,"vast2tracking"),null!=a&&!kb(a)&&(b=a[0]));return b};
var cca=function(a){if(C(D(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 "402":case "YT:ADSENSE":case "YT:DOUBLECLICK":case "YT:FREEWHEEL":case "VIRAL":return a;default:return"UNKNOWN"}};
var eca=function(a){if(C(D(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}};
var bca=function(a,b,c){var d=new wg;try{var e=LS(b,a.o.Nt);F(e,function(a){var b=a.getAttribute(this.A.sn);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new kW).parse(a);break;case "pod":a=(new iW).parse(a);break;case "waterfall":a=(new lW).parse(a);break;case "dart":a=(new lV).parse(a);break;case "dfp":b="DFP";a=(new mV).parse(a);break;case "adsense":b="AdSense";a=(new kV).parse(a);break;case "textad":b="TextAd";a=(new cW).parse(a);break;case "templatead":b="TemplateAd";a=(new aW).parse(a);
break;case "infocards":var b="InfoCards",e=new PV(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new PV(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,m=LS(a,"AdXml");1==m.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+vz(uf(m[0])));a=LS(a,"VASTAdTagURI");m=null;1==a.length&&(m=a[0].textContent);a=new SV(e,m)}else a=null;break;case "viral":b="viral";a=(new eW).parse(a);break;case "adx":b="adx";a=(new jT).parse(a);break;case "why_this_ad":b=
"why_this_ad";a=(new gW).parse(a);break;case "mute":b="mute";a=(new XV).parse(a);break;case "sodar":a=(new ZV).parse(a);break;default:e=new nV,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(cba(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};
var aca=function(a,b){var c=[],d=[];OS(b,a.o.xt,function(a){var b=a.getAttribute(this.A.gn),k;C(D(b))||(k=(0,window.parseFloat)(b));var l=a.getAttribute(this.A.Bh),m=!1;F(sf(a),function(a){switch(a.nodeName){case this.o.LINEAR:if(m)throw KS(a);a=fca(this,a,(0,window.isNaN)(k)?0:k,l||null);tb(c,a);m=!0;break;case this.o.COMPANION_ADS:if(m)throw KS(a);a=AW(this,a,(0,window.isNaN)(k)?void 0:k);tb(d,a);m=!0;break;case this.o.NON_LINEAR_ADS:if(m)throw KS(a);a=gca(this,a,(0,window.isNaN)(k)?0:k,l||null);
tb(c,a);m=!0}},this)},a);
return{creatives:c,wv:d}};
var gca=function(a,b,c,d){var e=[],f=new XS;F(sf(b),function(a){switch(a.nodeName){case this.o.qu:a=hca(this,a,c,d);null!=a&&e.push(a);break;case this.o.Qj:f=dT(a);break;default:throw JS(a);}},a);
0!=e.length||f.isEmpty()||(a=new yT(null,new re(-1,-1),"",null,""),a.o=c,a.Qa=d,e.push(a));F(e,function(a){f&&(a.yf=f)});
return e};
var BW=function(a,b){var c={};c.id=b.getAttribute(a.A.Bh);c.adSlotId=b.getAttribute(a.A.Us);c.apiFramework=b.getAttribute(a.A.yh);var d=Ya(b.getAttribute(a.A.Fh)),e=Ya(b.getAttribute(a.A.zh));c.size=new re(d,e);d=b.getAttribute(a.A.Lt);e=b.getAttribute(a.A.Kt);C(D(d))||C(D(e))||(c.pJ=new re(Ya(d),Ya(e)));return c};
var hca=function(a,b,c,d){var e=BW(a,b);b.getAttribute(a.A.yh);b.getAttribute(a.A.Bu);b.getAttribute(a.A.hu);var f=b.getAttribute(a.A.ou),f=QS(f,-1),k=[];new wg;var l={},m="",p,u=[];F(sf(b),function(a){switch(a.nodeName){case this.o.tu:u.push(NS(a));break;case this.o.ru:p=NS(a);break;case this.o.Lj:l=CW(a);m=D(NS(a));break;case this.o.Ch:case this.o.Eh:case this.o.Ah:a=DW(this,a);null!=a&&k.push(a);break;default:throw JS(a);}},a);
a=sW(e.id,e.size,k);oT(a,m,l);a.H=e.apiFramework;a.O=p;a.J=u;a.la=f;a.o=c;a.Qa=d;return a};
var DW=function(a,b){var c=MS(b,a.A.At);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.o.Eh:d="Static";break a;case a.o.Ch:d="IFrame";break a;case a.o.Ah:d="Html";break a;default:throw PK(ica,null,d);}var e=NS(b);null!=e||(e="");return new uW(d,c,e)};
var AW=function(a,b,c){var d=[],e=eca(MS(b,a.A.zu));OS(b,a.o.qt,function(a){a=jca(this,a,c);null!=a&&d.push(a)},a);
return new Rba(d,e)};
var jca=function(a,b,c){var d=BW(a,b),e=[],f=new XS,k,l=[];F(sf(b),function(a){switch(a.nodeName){case this.o.vt:l.push(NS(a));break;case this.o.Qj:f=dT(a,!0);break;case this.o.ut:k=NS(a);break;case this.o.Zs:NS(a);break;case this.o.Lj:NS(a);break;case this.o.Ch:case this.o.Eh:case this.o.Ah:a=DW(this,a);null!=a&&e.push(a);break;default:throw JS(a);}},a);
return kb(e)?null:Wba(d,k,l,c,f,e)};
var fca=function(a,b,c,d){var e=new XS,f={},k="",l=[],m,p=new wg,u=[],v=[],z,x=fT(MS(b,a.A.Eu));F(sf(b),function(a){switch(a.nodeName){case this.o.Ut:v=kca(this,a);break;case this.o.Lj:f=CW(a);k=D(NS(a));break;case this.o.Nj:z=QS(NS(a),0);break;case this.o.Qj:e=dT(a);break;case this.o.lu:u=lca(this,a);break;case this.o.Pu:a=mca(this,a);p=a.customClicks;m=a.clickThrough;l=a.clickTrackingUrls;break;default:throw JS(a);}},a);
F(l,function(a){bT(e,"click",a)});
a=new uT(z,m,p,u,x,v);oT(a,k,f);a.o=c;a.Qa=d;e&&(a.yf=e);return a};
var mca=function(a,b){var c,d=[],e=new wg;F(sf(b),function(a){switch(a.nodeName){case this.o.jt:c=NS(a);break;case this.o.kt:a=NS(a);d.push(a);break;case this.o.Ct:var b=MS(a,this.A.Bh);null!=b||(b="");var l=e.get(b,[]);l.push(NS(a));e.set(b,l);break;default:throw JS(a);}},a);
return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
var lca=function(a,b){var c=[];OS(b,a.o.ku,function(a){var b=MS(a,this.A.Et),f=MS(a,this.A.sn),k=MS(a,this.A.Qu),l=Ya(a.getAttribute(this.A.Fh)),m=Ya(a.getAttribute(this.A.zh)),p=a.getAttribute(this.A.yh),u=NS(a),v=PS(a.getAttribute(this.A.$m)),z=PS(a.getAttribute(this.A.nu));a=PS(a.getAttribute(this.A.ju));b=new tT(b,f,k,v,z,a,l,m,u,p);c.push(b)},a);
return c};
var kca=function(a,b){var c=[];OS(b,a.o.Tt,function(a){a=nca(this,a);null!=a&&c.push(a)},a);
return c};
var nca=function(a,b){var c=b.getAttribute(a.A.vu),d=MS(b,a.A.Su),e=MS(b,a.A.Tu),f=Ya(b.getAttribute(a.A.Fh)),k=Ya(b.getAttribute(a.A.zh)),f=new re(f,k),k=b.getAttribute(a.A.yh),l=fT(MS(b,a.A.uu)),m=b.getAttribute(a.A.Nj),m=QS(m,-1),p=[],u=[],v={};F(sf(b),function(a){switch(a.nodeName){case this.o.Yt:u.push(NS(a));break;case this.o.Vt:v=oca(this,a);break;case this.o.Ch:case this.o.Eh:case this.o.Ah:a=DW(this,a);null!=a&&p.push(a);break;default:throw JS(a);}},a);
return kb(p)?null:Yba(c,f,d,e,m,l,k,v,u,p)};
var oca=function(a,b){var c=[],d;F(sf(b),function(a){switch(a.nodeName){case this.o.Wt:d=NS(a);break;case this.o.Xt:c.push(NS(a));break;default:throw JS(a);}},a);
return{iconClickThrough:d,rJ:c}};
var CW=function(a){a=NS(a);return null!=a?Saa(a):{}};
var EW=function(a,b){this.A=a;this.o=b};
var pca=function(a){var b=[],c=LS(a,"vmap:Extensions")[0];if(c){var d;OS(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=LS(d,"yt:BreakTime"),!kb(b)))return O(b,function(a){return MS(a,"timeOffset")})}return[MS(a,"timeOffset")]};
var qca=function(a){var b=new bV;F(sf(uf(a.A)),function(a){if("vmap:AdBreak"==a.nodeName){var d=rca(this,a);a=pca(a);F(a,function(a,c){var k=QS(a);0<c&&(d=sca(this,d));if("start"==a||0==k)cV(b,d,0);else if("end"==a)cV(b,d,-1);else{if(-1==k)throw PK(fV,null,"timeOffset",D(a));cV(b,d,k)}},this)}},a);
if(0==b.o.Na().length)throw PK(FW);return b};
var sca=function(a,b){return O(b,function(a){var b=new aV(a.B.clone());b.o=a.o;b.A=a.A;return b},a)};
var tca=function(a){a=MS(a,"timeOffset");var b=QS(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b};
var uca=function(a){return(a=eb(sf(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?eb(sf(a),function(a){return"VAST"==a.nodeName}):null};
var rca=function(a,b){var c=[],d="",e=null,f=!1,k=!1;F(sf(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=wz(a,"vmap:VASTData/VAST")||wz(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=uca(a));if(!e){var c=LS(a,"vmap:AdTagURI"),l="";c.length&&(l=D(NS(c[0])));if(C(l))throw PK(vca,null,a.parentNode.nodeName,a.nodeName);d=l}}break;case "vmap:Extensions":a=LS(a,"vmap:Extension"),a=wca(this,a),null!=a&&(f=!0,a=MS(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);
var l=null;e?l=xca(a,e):C(d)||(l=yca(a,d));l&&(V()&&(l.ih=tca(b)),l=new aV(l),l.o=f,l.A=f&&!k,nb(c,l));return c};
var wca=function(a,b){return eb(b,function(a){return"bumper"==MS(a,"type")},a)};
var yca=function(a,b){var c=a.o.clone();C(c.A)||(c.A="");c.o=b;return c};
var xca=function(a,b){var c=a.o.clone();c.A=vz(b);c.o="";return c};
var zca=function(a,b){if(null!=a){var c;null!=a?(c=uf(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return PU.getInstance().A=!1,new dV(a,b);null!=a?(c=uf(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return PU.getInstance().A=!1,new EW(a,b);if(xW(a)){if(!xW(a))throw PK(gV);c=uf(a);var d=yW(c);if(1>d||3<d)throw PK(Aca);c=LS(c,"Ad");if(kb(c))throw PK(GW);c=zW(c[0]);if(null==c)throw PK(HW);if(1!=LS(c,"AdSystem").length)throw PK(HW);return new wW(a)}}return null};
var IW=function(){};
var JW=function(a,b){this.A=a;this.B=b};
var KW=function(a,b){"auto"!=a.A.Qe&&"click"!=a.A.Qe||b.set("vpa",a.A.Qe)};
var LW=function(a){C("")||(a.set("mpt",""),C("")||a.set("mpv",""))};
var MW=function(a,b){var c=a.B.D;null!=c&&b.set("js","ima-"+c);c=a.A.K;null!=c&&b.set("mv",c+"."+(a.A.J||""))};
var NW=function(a,b){b.set("osd",2);-1!=a.B.J&&b.set("frm",a.B.J);var c=a.B.U;null!=c&&b.set("ms",c);b.set("sdr",0)};
var OW=function(a){return kK.o?"h.3.0.0":null!=a.B?SR(a.B):null};
var PW=function(){this.o=["video"]};
var QW=function(a,b,c){var d={};a=new RW(a,n(b)?b:null,n(c)?c:null);SW(d,a);b=a.error;d.ERRORCODE=1E3>b.o?b.o:900;TW(d,a);UW(d,a);VW(d,a);b=a.error.getErrorCode();d.ERROR_MSG=a.error.getMessage();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=jb(Bca,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d};
var WW=function(a,b){var c={},d=new RW(null,a,n(b)?b:null);SW(c,d);TW(c,d);UW(c,d);VW(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.wb&&null!=e.wb.GET_MIDROLL_POSITION_IN_SEC?e.wb.GET_MIDROLL_POSITION_IN_SEC:null;null!=e&&null!=e.re&&null!=e.re.video_start_delay?(e=e.re.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.D,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))}Cca(c,d);Dca(c,d);d=a.qa;for(f=a;null!=f;)d=f.Qa+","+d,f=f.o;c.RWT=d;return c};
var RW=function(a,b,c){this.error=a;this.o=b;this.display=c};
var XW=function(a,b){return Ih(Eca[a],function(a){return null!=b.match(a)})};
var SW=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():""}}};
var Dca=function(a,b){a.AD_CPN={toString:function(){return b.display.gf()}};
a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}};
a.MT={toString:function(){if(JT(b.o)){var a=b.o.D;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.Uc()?b.display.Uc().width.toString():""}};
a.P_H={toString:function(){return null!=b.display&&null!=b.display.Uc()?b.display.Uc().height.toString():""}}};
var TW=function(a,b){a.SDKV=SR(dS);a.EL="adunit";a.CONN="0";null!=b.o&&(a.VIEWABILITY={toString:function(){var a;kK.o?(a=OP(),a=UP(a,"metric",b.o.Da).viewability):(UU(),a="na");return a}});
a.WT={toString:function(){return Date.now()}}};
var UW=function(a,b){if(null!=b.o&&null!=b.o.B&&null!=b.o.B.wb&&V()){var c=b.o.B.wb;F(Fca,function(b){b in c&&(a[b]=c[b])})}};
var VW=function(a,b){if(null!=b.o){a.AD_ID=mba(b.o);a.AD_SYS=nba(b.o);var c=eU(b.o);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.display){var a=kQ(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=HT(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"}};
var Cca=function(a,b){null!=b.o&&(a.AD_LEN={toString:function(){var a=oU(b.o);return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.display?b.display.sf()?"0":Math.round(100*b.display.nd()).toString():""}})};
var YW=function(a,b,c){if(null!=c){var d;null==b.B&&(b.B=new OR);d=b.B;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 PR);e=b.M;var f=c!=b.S;(d=0==d.o%100||f)||(d=36E5<(null===e.o?0:(new Py).getTime()-e.o));d&&e.reset();b.S=c;b=e.A;null!==b&&a.set("tok",b)}};
var ZW=function(a,b){a.set("sz",Math.max(null!=b.qf?b.qf:0,null!=b.Fc?b.Fc:0)+"x"+Math.max(null!=b.pf?b.pf:0,null!=b.Ec?b.Ec:0))};
var $W=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",Gca)};
var aX=function(a){if(a.wb&&a.wb.LACT){var b=a.wb.LACT.toString();if(b)return ab(b)}return a.H};
var bX=function(a){return V()&&a.Sc&&a.Sc("send_presence_signal_vis")&&a.wb&&a.wb.VIS?a.wb.VIS.toString():null};
var cX=function(a,b,c,d){var e=new wg;zK(sK())||e.set("ad_type",c.adType);uS&&e.set("flash",GM);ZW(e,a);dX(c)&&(e.set("ea","0"),null!=a.Fc&&null!=a.Ec&&e.set("image_size",eX(c,a.Fc,a.Ec,a.yg)));fX(e,d);e.set("lact",aX(a));(c=bX(a))&&e.set("yt_vis",c);e.set("videoad_start_delay",a.ih);$W(e);gX(a,e,!0);YW(e,b,a.D);return e};
var gX=function(a,b,c){C(D(a.referrer))||(a=a.referrer,c&&(a=va(a)),hX("ref",a,b))};
var iX=function(a,b,c){a=null!=b?b.split("_"):a;F(a,function(a){if(!Ub(Hca,a))throw PK(mR,null,"ad_type",String(b));});
if(c){var d=[];F(a,function(a){E(jX,a)||d.push(a)});
a=d}if(!gL()){d=[];F(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw PK(kX,null,"skippablevideo");a=d}return a};
var lX=function(a,b){return null!=b?b.split(/[+, ]/):a};
var eX=function(a,b,c,d){a.A&&(c=Math.min(c,90));var e=0,f=0;sK();a=wS();d=d&&a&&!V()&&!1;a&&(e=15,f=65);var k=[];F(Ica,function(a){var m=b-e>=a.width&&c-f>=a.height,p=!d&&!m&&90>=a.height&&b>=a.width&&c>=a.height;(m||p)&&k.push(a.width+"x"+a.height)});
return k.join(",")};
var mX=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};
var nX=function(a,b){return null!=b?String(b):null!=a?a:null};
var oX=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};
var pX=function(a,b,c){return null!=b&&Ub(c,b)?b:a};
var dX=function(a){return Ih(jX,function(b){return E(a.o,b)})};
var fX=function(a,b){uS?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].F,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}};
var hX=function(a,b,c){null!=b&&c.set(a,b)};
var qX=function(a,b,c){JW.call(this,a,b);var d=new PW;a=lh(new N(a.o));d.Sk=pX(d.Sk,a.get("cust_age"),Jca);d.Hh=pX(d.Hh,a.get("adsafe"),rX);d.o=iX(d.o,a.get("ad_type"));d.adType=d.o.join("_");d.Sj=mX(d.Sj,a.get("videoad_start_delay"));d.Tj=nX(d.Tj,a.get("slotname"));d.Rk=oX(d.Rk,a.get("adtest"));d.Uj=oX(d.Uj,a.get("scs"));d.Vj=nX(d.Vj,a.get("alternate_ad_url"));d.channels=lX(d.channels,a.get("channel"));d.jk=mX(d.jk,a.get("cpm"));d.vg=nX(d.vg,a.get("description_url"));d.experimentIds=nX(d.experimentIds,
a.get("eid"));d.gender=pX(d.gender,a.get("cust_gender"),Kca);d.A=oX(d.A,a.get("overlay"));d.host=nX(d.host,a.get("host"));d.B=lX(d.B,a.get("h_ch"));d.hostTierId=mX(d.hostTierId,a.get("ht_id"));d.Tk=oX(d.Tk,a.get("lsv"));var e;null!=this.A.language?e=this.A.language:(e=r.navigator||null,e=jK(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=nX(f,e);var k;null!=e&&!C(D(e))&&(k=jK(e));d.language=nX(d.language,k);d.Io=mX(d.Io,a.get("linearAdSlotWidth"));
d.Ho=mX(d.Ho,a.get("linearAdSlotHeight"));d.Gi=mX(d.Gi,a.get("max_ad_duration"));d.tl=mX(d.tl,a.get("min_ad_duration"));d.Hi=mX(d.Hi,a.get("sdmax"));d.Ko=mX(d.Ko,a.get("nonLinearAdSlotWidth"));d.Jo=mX(d.Jo,a.get("nonLinearAdSlotHeight"));d.wf=nX(d.wf,a.get("client"));d.Qi=nX(d.Qi,a.get("t_pyv"));k=a.get("sdki");d.Xi=mX(d.Xi,y(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=mX(d.tagForChildDirectedTreatment,a.get("tfcd"));d.Xl=pX(d.Xl,a.get("targeting"),Lca);d.Ai=mX(d.Ai,a.get("video_format"));
d.lm=mX(d.lm,a.get("video_cpm"));d.Uk=nX(d.Uk,a.get("loeid"));d.ym=nX(d.ym,a.get("yt_pt"));d.um=nX(d.um,a.get("ytdevice"));d.wm=nX(d.wm,a.get("ytdevicever"));d.xm=nX(d.xm,a.get("dbp"));d.C=nX(d.C,a.get("ms"));d.adBlock=mX(d.adBlock,a.get("adBlock"));d.url=nX(d.url,a.get("url"));d.$j=nX(d.$j,a.get("avo"));this.o=d;this.J=b;this.K=c;C(D(this.o.experimentIds))||(b=this.o.experimentIds.split(","),rK(sK(),b))};
var Mca=function(a){return Ih(Nca,function(a){return E(this.o.o,a)},a)};
var sX=function(a){return V()?1:E(a.o.adType.split("_"),"text")?3:1};
var Oca=function(a){a=a.o.channels?a.o.channels:[];wb(a);a=vb(a,0,30);return a.join("+")};
var tX=function(a,b){return Math.round(1.1*(a||0)+0*b)};
var uX=function(a,b){JW.call(this,a,b)};
var vX=function(a,b){JW.call(this,a,b)};
var wX=function(a){JW.call(this,a,null)};
var xX=function(a){JW.call(this,a,null)};
var yX=function(a,b){JW.call(this,a,b)};
var zX=function(a){if(C(D(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};
var Pca=function(a){var b=[];F(a,function(a){0<a.length&&b.push(O(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")};
var AX=function(a,b,c){JW.call(this,a,b);var d=sK();this.J=zK()?!1:C(D(a.B));a=new PW;zK(sK())||(a.o=iX(a.o,this.A.B),a.adType=a.o.join("_"));a.experimentIds=nX(a.experimentIds,this.A.C);this.o=a;this.K=b;this.G=c;C(D(this.o.experimentIds))||rK(d,this.o.experimentIds.split(","))};
var Qca=function(a){var b=cX(a.A,a.K,a.o,a.G);b.set("sdkv",OW(a));b.set("sdki",a.F().toString(16));return b};
var Rca=function(a,b){var c=Qca(a),d=O(c.Na(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
mh(b,"afvparams",d.join("&"))};
var BX=function(a,b,c){JW.call(this,a,b);var d=sK();this.J=zK()?!1:C(D(a.B));d=new PW;zK(sK())||(d.o=iX(d.o,this.A.B),d.adType=d.o.join("_"));d.experimentIds=nX(d.experimentIds,this.A.C);this.o=d;this.K=b;this.G=c;C(D(this.o.experimentIds))||(b=this.o.experimentIds.split(","),d=sK(),rK(d,b))};
var Sca=function(a){var b=cX(a.A,a.K,a.o,a.G);b.set("sdkv",OW(a));return b};
var Tca=function(a,b){var c=Sca(a),d=O(c.Na(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
CS(b,"afvparams",[va(d.join("&"))])};
var CX=function(a){JW.call(this,a,null)};
var Uca=function(a){if(null==a.A||null==a.A.wb)return{};var b={},c=a.A.wb;F(Vca,function(a){a in c&&(b[a]=c[a])});
return b};
var Wca=function(a,b){var c;if(!HS(a.o)&&!IS(a.o)||(zK(sK())?null==a.o||-1==a.o.search("afvbase="):C(D(a.B))||null==a.o||-1==a.o.search("afvbase=")))if(HS(a.o))c=new vX(a,dS);else if(ES(a.o))c=new qX(a,dS,b);else if(IS(a.o))c=new yX(a,dS);else if(GS(a))c=new uX(a,dS);else if(c=a.o,null!=c?(c=hh(new N(c)),c=ua(c,".fwmrm.net")):c=!1,c)c=new wX(a);else{c=a.o;if(null!=c){c=new N(c);var d=c.B;c=ua(c.A,"youtube.com")&&FS("/get_midroll_info",d)}else c=!1;c=c?new CX(a):new xX(a)}else c=HS(a.o)?new BX(a,dS,
b):new AX(a,dS,b);return c};
var Xca=function(a){a=$d(a,function(a){return 0<hU(a)});
Bb(a,function(a,c){return hU(a)-hU(c)});
return a};
var Yca=function(a){return $d(a,function(a){return-1==hU(a)})};
var DX=function(a){this.o=a};
var Zca=function(){this.o=0};
var $ca=function(a,b,c,d,e,f){var k=A(function(a){d(a,Error(Jm(a)))},a),l=A(function(a){6==a?EX(this,b,!1,c,k,e,f):k(a)},a);
EX(a,b,!0,c,l,e,f)};
var EX=function(a,b,c,d,e,f,k){var l=new rn;l.V=c;sn(l,ada(f));var m=new Cm,p=A(function(){m.dispose();l.dispose()},a);
c=A(function(){e(l.A);p()},a);
Im(m,l,"success",function(){var a;try{a=l.o?l.o.responseXML:null}catch(b){a=null}if(null==a){var c=En(l);try{a=sz(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(tz&&(a=uz())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);
Im(m,l,["error","timeout"],c,a);var u;"POST"==k&&(b=new N(b),u=b.o.toString(),eh(b,""),b=b.toString());a.o=I();l.send(EK(b),k,u)};
var FX=function(a,b,c){var d=null,e=c+b;F(a.C,function(f){if(zS(f.L,"rm")){var k=WW(a);PT(a)&&(k.FILLED_OPPORTUNITY=0);NK(a.K,k);(k=a.B)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof yT)0==c&&0==b||f instanceof qW?k=!0:(k=f.Ub(),k=k.width<=b&&k.height<=c);if(k&&(k=0==c&&0==b?0:c-f.Ub().height+b-f.Ub().width,"Flash"!=f.getContentType()||uS))if(null==d)d=f,e=k;else if(k==e&&f.o<d.o||k<e)d=f,e=k}});
ZT(a,d)};
var GX=function(a){var b=null;F(a.C,function(a){a instanceof uT&&(null===b||a.o<b.o)&&(b=a)});
ZT(a,b)};
var HX=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.S=d;this.logger=null};
var IX=function(a,b,c){null!=a.o?bda(a,b,c):a.md()?cda(a,b,A(function(a){!this.md()||!V()&&301==a.getErrorCode()?c(a):IX(this,b,c)},a)):c(new aK("adLoadError","The ad source contains no more ads.",1005))};
var dda=function(a,b){a.D=b;a.ads=a.K(a.C,a.J);a.A=-1};
var eda=function(a,b,c,d){var e=a.F.clone();e.A="";e.o=b.La;JX(a,b,e,c,d)};
var JX=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.B,null!=f&&(c.A=f));a.S.fetch(c,A(function(a){a instanceof HX?(fda(a,b,this.D&&b.Ca,b.Ea),d(a)):a instanceof DX?e(new aK("adLoadError","Ad source cannot contain playlist response.",2)):e(new aK("adLoadError","Unknown ad source.",2))},a),e)};
var gda=function(a){var b=0;for(a=a.o;null!=a;)a=a.o,b++;return b};
var bda=function(a,b,c){a.o.md()?IX(a.o,A(function(a){this.B(a,b,A(function(a){this.md()?IX(this,b,c):c(a)},this))},a),A(function(a){KX(this.ads[this.A],a);
this.o=null;V()||301!=a.getErrorCode()?this.md()?IX(this,b,c):c(a):c(a)},a)):(0==a.o.G&&KX(a.ads[a.A],PK(LX)),a.o=null,IX(a,b,c))};
var KX=function(a,b){if(b.A){1012==b.getErrorCode()&&(b=PK(MX));var c=QW(b,a);NK(a.aa,c)}};
var cda=function(a,b,c){a.A++;var d=a.ads[a.A];d.S||d.M?d.M?eda(a,d,A(function(a){this.o=a;IX(this,b,c)},a),A(function(a){a=NX(a);
KX(d,a);c(a)},a)):4<=gda(d)?(a=PK(hda,null,"4"),KX(d,a),c(a)):a.L?a.H(d,A(function(a){this.o=a;
IX(this,b,c)},a),A(function(a){a=NX(a);
KX(d,a);c(a)},a)):c(PK(ida)):a.B(d,b,c)};
var NX=function(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=PK(LX)}return a};
var fda=function(a,b,c,d){F(a.ads,function(a){a.o=b});
dda(a,c);a.L=d};
var OX=function(a,b,c,d){HX.call(this,[],a,b,c);this.M=d};
var PX=function(a,b,c,d,e){this.D=a;this.B=b;this.C=c;this.o=d;this.F=e};
var jda=function(a,b,c,d){var e;try{e=sz(b.A)}catch(f){d(PK(gV,f));return}null!=e?QX(a,e,b,c,d):d(PK(gV))};
var RX=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(PK(kda,null,b.o)):kK.C?Eba(UU(),A(a.A,a,b,c,d)):a.A(b,c,d)};
var lda=function(a){var b="third_party";ES(a.o)?b="adsense":HS(a.o)?b="dart":IS(a.o)?b="xfp":GS(a)&&(b="dbm");a={rt:b};kL(jL.getInstance(),17,a,!0)};
var QX=function(a,b,c,d,e){var f;try{var k=zca(b,c);if(!k)throw PK(gV);f=k.B();mda(a,f,c,d)}catch(l){l instanceof aK?e(l):e(PK(nda,l))}};
var mda=function(a,b,c,d){var e=b.o;if(null!=e)d(new DX(e));else{var f=b.B;if(null==f)throw PK(GW);F(f,function(a){a.B=c;var d=gK();d&&hK(d,"useCompanionsAsEndSlate")&&(a.G=pba(a));if(a.B.Sc("enable_ad_video_end_renderers")){var e=a.getExtension("InfoCards");if(null==e)d=[];else for(var d=[],e=e.B?e.B:new rV,f=0;f<pV(e.o,"card");f++){var u=EV(e,f);HV(FV(u))&&d.push(u)}a.da=d}a.Qa=this.B.o;V()&&(a.va=b.A)},a);
e=Xca(f);f=Yca(f);0<f.length&&0<=gU(f[0])?d(new OX(f,c,a,a.D)):d(new HX(e,f,c,a))}};
var SX=function(a){this.o=a+I()};
var ada=function(a){var b=I();a=a.o-b;return 0<a?a:0};
var oda=function(a,b){this.o=a;this.A=b;kK.o&&OP().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}dS.J=c};
var pda=function(a,b,c,d){var e=b.G;V()&&e&&rK(sK(),e,!1);e=null;null!=a.o&&(e=new RU(1E3,a.o,a.A));var f=Xaa(b);null!=f&&Waa(b)&&(a.A.U=f);(new PX(a.A,new Zca,a.o,e,new SX(8E3))).fetch(b,A(function(a){a instanceof DX?c(a):qda(this,a,c,d)},a),d)};
var qda=function(a,b,c,d){var e=[],f=A(function(a,b){a.md()?IX(a,A(function(b){e.push(b);f(a,null)},this),A(function(b){301==b.getErrorCode()?d(PK(TX)):f(a,b)},this)):0<e.length?c(e):(null==b&&(b=PK(FW)),1012==b.getErrorCode()&&(b=PK(MX)),d(b))},a);
f(b,null)};
var rda=function(a){this.B=a;this.A=new go;this.o=!1};
var UX=function(a,b,c,d){var e=A(function(a){c(a);jo(this.A);this.o=!1;VX(this)},a),f=A(function(a){d(a);
jo(this.A);this.o=!1;VX(this)},a);
io(a.A,A(function(){pda(this.B,b,e,f)},a));
VX(a)};
var VX=function(a){if(!a.o){var b=ko(a.A);null!=b&&(a.o=!0,b())}};
var WX=function(a,b,c){dd.call(this);this.C=new rda(new oda(b,c));this.D=a;this.A=b;this.o=!0;this.B=c};
var sda=function(a,b,c){if(a.o){var d=null!=c?c:{};PU.getInstance().end("rtr");zba(PU.getInstance(),b.o);PU.getInstance().start("vl");UX(a.C,b,A(function(a){XX(this,a,d)},a),A(function(a){YX(this,a,d)},a))}};
var tda=function(a,b,c){if(!a.o){var d=null!=c?c:{};UX(a.C,b,A(function(a){XX(this,a,d)},a),A(function(a){YX(this,a,d)},a))}};
var XX=function(a,b,c){if(a.o)b instanceof DX?(b=new ZX(b.o,a),b.G=a.A,a.$(new MU(b,c))):(b=$X(b),null!=b?(b.G=a.A,a.$(new MU(b,c)),PU.getInstance().end("vl")):YX(a,PK(aY,null),c));else if(b instanceof DX)YX(a,PK(uda,null,"Unsupported ad format."),c);else{var d=new OU("adsLoaderSdkAdLoaded");d.F=b;d.D=c;a.$(d)}};
var YX=function(a,b,c){a.o?("always"==kK.A&&null!=a.A&&GU(a.A,EU()),a.$(new bK(b,c))):(c=new OU("adsLoaderSdkAdError"),c.B=b,a.$(c))};
var vda=function(a){return'<div class="close-padding"><a class="close-button" title="'+Y(a.close)+'" role="button" tabindex="0"></a></div>'};
var wda=function(){return'<div class="recall-button"></div>'};
var xda=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="attribution-button">'+Y(a.text)+"</a>"};
var bY=function(a,b){this.J=a;this.H=M("div",{"class":"controls"});this.o=M("div",{"class":"adDisplay"});this.O=b||w;this.Tc=new Cm(this)};
var cY=function(a){var b=M("div",{"class":"ima-container"});Jq(b,"opacity 0.4s");a.Tc.R(b,"mouseover",a.Hw);a.Tc.R(b,"mouseout",a.uC);b.appendChild(a.H);a.H.appendChild(a.o);return b};
var dY=function(a,b){this.K=a;this.S=new wg;this.M=15E3;this.F=M("span");bY.call(this,a[0],b);this.o.appendChild(this.F)};
var eY=function(a,b){bY.call(this,a[0],b);this.C=a;K(this.o,"ima-container-stack")};
var fY=function(a,b,c,d,e){Jz.call(this);this.A=a;this.D=b;this.G=c;this.B=d;this.F=da(e)?e:[e]};
var gY=function(a,b,c,d,e){return new fY(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};
var yda=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="fullslot-attribution-button">'+Y(a.text)+"</a>"};
var zda=function(a){return'<div class="fullslot-autoclose">'+Y(a.fv)+"</div></div>"};
var hY=function(a){var b="";a=ra("Ad will close in {$xSeconds}",{xSeconds:Y(a.Wf)});return b+a};
var iY=function(a){dd.call(this);this.D=new Qd(200);H(this,this.D);this.A=0;this.C=!1;this.K=a;this.J=new Cm(this);this.J.R(this.D,"tick",this.tA)};
var jY=function(a){a.D.stop();a.C=!1};
var kY=function(a,b){dd.call(this);this.B=a;this.V=0;this.ea=this.G=!1;this.A=0==VS(this.B.skipOffset)?3:1;this.H=this.J=this.o=this.C=this.ha=this.U=this.S=this.F=null;this.D=new Cm(this);this.da=!1;this.na=this.la=this.aa=0;this.K=this.M=this.L=null;this.Z=!1;this.Y=new dQ;this.O=new dQ;this.ga="";Ada(this,b);this.D.R(this.Y,"click",this.lC);eQ(this.Y,this.C);this.D.R(this.O,"click",this.Nv);eQ(this.O,this.J)};
var Ada=function(a,b){a.B.J&&(a.D.R(b,"touchstart",a.jx),a.D.R(b,"touchmove",a.ix),a.D.R(b,"touchend",a.hx));a.F=yQ(Baa);a.S=$e("videoAdUiPreSkipButton",a.F);a.U=$e("videoAdUiPreSkipText",a.S);a.ha=$e("videoAdUiPreSkipThumbnail",a.S);Af(a.U,fR({Wf:lY(a)}));var c=caa(a.B.da)||"";if(a.B.showContentThumbnail&&!C(D(c))){var d=lf("img");d.setAttribute("src",c);K(d,"videoAdUiPreSkipThumbnailImage");a.ha.appendChild(d)}else K(a.U,"videoAdUiPreSkipTextOnly");a.o=yQ(Caa,{skipText:a.B.J?"\u00ab Swipe to Skip":
Ta(Na()),Ov:Daa()});a.J=$e("videoAdUiExtendButton",a.o);a.C=$e("videoAdUiSkipButton",a.o);a.H=$e("videoAdUiAutoSkipText",a.C);wK(sK(),9413054)&&(K(a.C,"autofocused"),a.D.R(a.C,"blur",A(function(){Zd(this.C,"autofocused")},a)),a.C.autofocus=!0);
lg(a.F,!1);b.appendChild(a.F);0==VS(a.B.skipOffset)?a.$("skipshown"):(lg(a.o,!1),kg(a.o,0));b.appendChild(a.o)};
var lY=function(a){return null!=a.B.skipOffset&&-1!=VS(a.B.skipOffset)?VS(a.B.skipOffset):-1};
var mY=function(a,b){var c=lY(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+yS(c));c=fR({Wf:d,$h:a.ga});Af(a.U,c)}};
var nY=function(a){return 3==a.A&&a.B.S&&20<a.V};
var oY=function(a){null!=a.K&&(Td(a.K),a.K=null)};
var pY=function(a,b,c){dd.call(this);this.o=a;this.O=!1;this.va=c;this.ea=this.Z=this.Y=this.F=this.K=this.L=this.H=this.da=this.aa=this.U=this.A=null;this.na=!1;this.qa=this.ga=this.ha=this.J=this.C=this.D=this.la=this.V=this.S=this.G=null;this.B=new Cm(this);this.Ca=[];this.M=[];this.O=!this.o.C&&xK([9414784,9418335,9416126]);a={Nc:this.o.Nc,Df:this.o.Df,se:this.o.se,$h:this.O?"redesign2014q4":""};this.A=yQ(this.o.H,a);this.B.R(this.A,"touchmove",this.Zw);this.V=$e("videoAdUiProgress",this.A);this.la=
$e("videoAdUiBuffer",this.A);this.U=$e("videoAdUiAttributionContainer",this.A);this.aa=$e("videoAdUiAttributionIconContainer",this.A);this.da=$e("videoAdUiAttribution",this.A);this.H=$e("videoAdUiVisitAdvertiserLinkText",this.A);this.L=$e("videoAdUiVisitAdvertiserIcon",this.A);this.K=$e("videoAdUiAuthorIcon",this.A);this.F=$e("videoAdUiAuthorName",this.A);this.Y=$e("videoAdUiLearnMore",this.A);this.Z=$e("videoAdUiLearnMoreText",this.A);this.O?(this.J=$e("videoAdUiTopButtonShare",this.A),this.ha=$e("videoAdUiTopButtonShareTooltip",
this.A),this.ga=$e("videoAdUiTopButtonInfo",this.A),this.qa=$e("videoAdUiTopButtonWatchLater",this.A)):this.J=$e("videoAdUiShare",this.A);this.G=$e("videoAdUiTitle",this.A);this.S=$e("videoAdUiTopBar",this.A);this.ea=$e("videoAdUiBottomBar",this.A);null!=this.K&&this.B.R(this.K,"click",this.cv);null!=this.F&&(c=new dQ,this.M.push(c),this.B.R(c,"click",this.dv),eQ(c,this.F));null!=this.Y&&(c=new dQ,c.L=!0,this.M.push(c),this.B.R(c,"click",this.Zo),eQ(c,this.Y));null!=this.Z&&(c=new dQ,c.L=!0,this.M.push(c),
this.B.R(c,"click",this.Zo),eQ(c,this.Z));null!=this.J&&this.B.R(this.J,"click",this.iC);null!=this.G&&(c=new dQ,this.M.push(c),this.B.R(c,"click",this.rC),eQ(c,this.G));null!=this.S&&this.B.R(this.A,"mouseover",this.hC);null!=this.H&&this.B.R(this.H,"click",this.mj);null!=this.L&&this.B.R(this.L,"click",this.mj);null!=this.U&&null!=this.o.D&&qY(this.o.D)&&(this.B.R(this.U,"click",this.FB),this.B.R(this,"why_this_ad_got_it_url",this.zC));null!=this.o.skipOffset&&(this.C=new kY(this.o,this.A),this.C.Zg(this),
this.C.ga=a.$h);400>=((0,window.parseInt)(Rf(b,"width"),10)||b.width)&&K(this.A,"videoAdUi-mobile");this.o.C&&(K(this.A,"blazer"),window.settings&&window.settings.isTablet?K(this.A,"tablet"):K(this.A,"phone"));this.o.J&&K(this.A,"videoAdUi-swipeable");a=Hf(b,"html5-video-player");null!=a&&(this.O&&K(a,"videoAdUiRedesign"),L(a,"ytp-video-ad-learn-more-ui",this.o.A));lg(this.A,!1);b.appendChild(this.A);this.o.A||this.O||!this.o.L||(this.D=M("div",{style:"width:100%;height:100%;pointer-events:auto;"}),
this.A.appendChild(this.D));rY(this)};
var Bda=function(a){null!=a.D&&lg(a.D,!1)};
var sY=function(a){a.C&&(a.C.dispose(),a.C=null)};
var Cda=function(a,b){a.Ca=b;F(b,function(a){a.display(this.A)},a)};
var tY=function(a){null!=a.H&&(lg(a.H,!0),Af(a.H,a.o.visitAdvertiserText));null!=a.L&&lg(a.L,!0)};
var uY=function(a,b){if(null!=a.A){var c=Hf(wf(a.A),"html5-video-player");null!=c&&L(c,"ytp-ad-end-cap",b)}};
var rY=function(a){var b=a.o.U&&(a.va>a.o.Da||0==a.va),c=b&&a.o.Z,d=b&&a.o.aa,e=b&&a.o.B,f=b&&a.o.V,b=b&&a.o.G,k=a.o.O&&a.o.o,l="0px";null!=a.G&&(lg(a.G,b),null!=a.K&&lg(a.K,c),null!=a.F&&lg(a.F,d),null!=a.Y&&lg(a.Y,e),null!=a.J&&(lg(a.J,f),f&&a.$("videoShareShown")),null!=a.ga&&lg(a.ga,!1),null!=a.qa&&lg(a.qa,!1),null!=a.S&&lg(a.S,b||c||d||e));null!=a.U&&vY(a);null!=a.V&&(lg(a.V,k),k&&(l=Rf(a.V,"height")));null!=a.ea&&Mf(a.ea,"bottom",l);c=wK(sK(),41351019);null!=a.Z&&lg(a.Z,(!c||V())&&a.o.A);null!=
a.aa&&lg(a.aa,a.o.K)};
var Dda=function(a,b,c,d,e){var f=gR({dj:"",Gh:0,gj:0});a.o.o&&a.o.M&&(b=yS(c-b),f=gR({dj:a.o.C?" \u2022 "+b:a.O?" \u00b7 "+b:": ("+b+")",Gh:d,gj:e}));Af(a.da,f);vY(a)};
var vY=function(a){lg(a.U,a.o.F&&(!a.o.o||a.na))};
var wY=function(a,b,c){this.A=a;this.C=b;this.H=c;this.o=this.D=this.F=this.B=null;this.G=!1};
var qY=function(a){return(a.H||null!=a.A&&null!=a.A.A)&&(null!=a.A||null!=a.C)};
var xY=function(a,b,c){b=$e(b,a.B);null!=b&&a.D.R(b,"click",c)};
var yY=function(a,b,c){b=$e(b,a.B);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&a.D.R(b,"click",c))};
var zY=function(a,b,c){null!=a.B&&a.B.parentElement.removeChild(a.B);a.B=yQ(b,c);xY(a,"videoAdUiPopupCloseIcon",a.rg);a.F.appendChild(a.B);b=$e("videoAdUiPopupFrame",a.B);null!=b&&Nc(b,"submit",function(a){a.preventDefault()});
a=$e("videoAdUiPopupDefaultButton",a.B);null!=a&&a.focus()};
var AY=function(){this.Nc=gR({dj:"",Gh:0,gj:0});var a="",b=ra("Learn More {$suffix}",{suffix:Y("")});this.Df=a+b;a="";b=ra("Visit Advertiser's Site");this.visitAdvertiserText=a+b;this.se=hR();this.skipOffset=null;this.S=!1;this.Da=6E3;this.F=!0;this.K=!1;this.M=this.o=this.L=!0;this.V=this.O=this.B=!1;this.U=!0;this.G=this.aa=this.Z=this.Y=this.A=!1;this.H=null;this.J=Eda&&wK(sK(),0);this.showContentThumbnail=!0;this.C=!1};
var BY=function(a,b,c,d){var e=new AY;e.A=a;e.ga=b;e.skipOffset=c;e.da=null!=d?d.contentId:null;e.L=d.xC;e.H=yaa;e.Qa=lQ(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};
var CY=function(a,b,c,d,e){iY.call(this,b.o);this.H=b;this.G=c;this.L=this.H.o;this.o=a;this.B=this.F=null;K(this.o,xS(this.G));a=this.o;b=new AY;b.skipOffset=new US(this.H.B,!1);this.B=new kY(b,a);d&&d.text&&(d=yQ(yda,d),this.o.appendChild(d));e?(e=this.o,d=hY({Wf:DY(this.L)}),a=yQ(zda,{fv:d}),Af(a,d),e.appendChild(a),e=a):e=null;this.F=e};
var Fda=function(a){var b=$e("videoAdUiSkipButton",a.o);return b?cg(b,a.o):new oe(0,0)};
var DY=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};
var EY=function(){G.call(this);this.D="";this.B=new XS;this.A=new wg;this.F=[];this.J=!1;this.o={};this.H={};this.C=-1;this.G=[]};
var FY=function(a,b){if(kK.o){var c=UP(OP(),b.type,a.D);a.K(b.type,c)}else Fba(UU(),b.type,a.D,A(a.K,a,b.type))};
var Gda=function(a,b){null!=b&&F(b,function(a){E(this.G,a)||this.G.push(a)},a)};
var GY=function(a,b,c,d,e){var f;kK.o||(f=UU().G||void 0);F(b,function(a){var b=this.o,m=c||{};if(V()&&XW("MOAT_INIT",a)){var p=WP();null!=p&&(b.MOAT_INIT=p.moatInit,MK.ml(a)&&(b.MOAT_INIT=(0,window.encodeURIComponent)(b.MOAT_INIT)))}else b.MOAT_INIT="";m=m.moatViewability||"";V()&&XW("MOAT_VIEWABILITY",a)?(b.MOAT_VIEWABILITY=m,MK.ml(a)&&(b.MOAT_VIEWABILITY=(0,window.encodeURIComponent)(b.MOAT_VIEWABILITY))):b.MOAT_VIEWABILITY="";KK(a,this.o,c,d,e,f)},a)};
var Hda=function(a,b){switch(b){case "abandon":return!xg(a.A,b)&&!xg(a.A,"skip")&&!xg(a.A,"complete")&&(xg(a.A,"impression")||a.J);case "click":return!0;case "complete":return!xg(a.A,b)&&!xg(a.A,"skip");default:return!xg(a.A,b)}};
var HY=function(a){dd.call(this);this.ads=a;this.J=null;this.Y=new Cm(this);H(this,this.Y);this.S="normal";this.C=this.volume=null;this.B=new nL;this.Ea=!1;this.content={};this.F=new EY;this.da=!1;var b=0;F(a,function(a){b+=oU(a)});
F(a,function(b,d){var e=b.D;e.C=a.length;var f=d+1;e.A=f;e.D=f})};
var IY=function(a){if(JY(a)){if(MT(a.J)&&!gL())throw RK(kX,null,"skippablevideo");if(CU(a.J)&&KY(a,a.J.o))throw RK(kX,null,"vpaidWithSkippabilityOverride");return a.J}throw RK(LY,null,"An ad has not been selected.\n"+Error().stack);};
var KY=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:KY(a,b.o)};
var JY=function(a){return null!==a.J};
var Ida=function(a){return Ih(a.ads,function(a){return Ih(MY(a),function(a){return!C(D(kQ(a.A)))})},a)};
var MY=function(a){var b=a.o;if(b&&b.M&&(b=b.C,!kb(b)&&b[0]instanceof uT))return b[0].K;b=a.A;return NY(a)?b.K:[]};
var NY=function(a){a=a.A;return null!=a&&a instanceof uT};
var OY=function(a){null==a.H&&(a.H=new Cm(a));return a.H};
var PY=function(a,b){if(null!=a.G){a.Y.removeAll();Gm(a.Y,a.G,"companion_display_error",function(){});
var c=GU(a.G,b);null!=c&&(a.Y.R(c,"companion_impression",a.Uy),a.Y.R(c,"companion_click",a.Al));if(!a.G.Bn())throw RK(QY);}};
var Jda=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,l={};l._scs_=d;l._bgu_=k;l._bgp_=f;l._li_="v_0.0.0";(d=e.GoogleTyFxhY)&&"function"==typeof d.push||(d=e.GoogleTyFxhY=[]);d.push(l);d=c.createElement("script");d.type="text/javascript";d.async=!0;d.src=
a;c.getElementsByTagName("head")[0].appendChild(d)}}})};
var RY=function(a,b){FY(a.F,new jc(b))};
var SY=function(a,b){FY(a.F,new jc(b));a.wa(b)};
var TY=function(a){if(!a.da)throw RK(LY,null,"Ads manager is not correctly configured.");};
var UY=function(a){do if(kU(a))return!1;while(a=a.o);return!0};
var VY=function(a,b){for(var c=b;null!=c;)F(c.J.Ka(),a.SB,a),c=c.o};
var Kda=function(a){if(!da(a))throw RK(LY,null,"adsRenderingSettings.mimeTypes should be an array");var b=rb(Vb(WY),Vb(sT));F(a,function(a){if(!E(b,a))throw RK(LY,null,"Invalid or unsuppoted mime type "+a);})};
var XY=function(a){HY.call(this,a);this.K=null;this.ha=M("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.V=!1;this.aa=[]};
var YY=function(a,b){var c=hba(b);F(c,function(a){bT(this.F.B,"click",a)},a)};
var ZY=function(a,b){var c=QW(b,IY(a)),d=VT(IY(a));NK(d,c)};
var $Y=function(a){XY.call(this,a);this.U=!1;this.D=this.O=null;this.ea=!1};
var aZ=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.D,b=b.F;a={text:null!=c?c:a.ga.C,url:null!=b?b:a.ga.D};null==a.text&&(c="",b=ra("Ads by Google"),c=EQ(c+b),a.text=c);return a};
var bZ=function(a){return JY(a)&&pU(IY(a))};
var Lda=function(a){var b=cZ(a);b.rba=a.V;dZ(37,b)};
var cZ=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=PU.getInstance().o;d.fsmode=null!=a.D;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.S;return d};
var eZ=function(a,b){if(a.D){a.oi(new jc("close"));var c={};c.pid=PU.getInstance().o;c.evt=b;dZ(35,c)}};
var dZ=function(a,b){var c=wS()&&!V();kL(jL.getInstance(),a,b,c)};
var fZ=function(a){cK.call(this,"adMetadata",a)};
var Mda=function(a,b,c){var d=w,e=new N("https://www.googleapis.com/youtube/v3/videos");mh(e,"id",a);mh(e,"part","snippet,status");mh(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=A(b,c),d=A(d,c));gZ(new rn,e,b,d)};
var Nda=function(a,b,c){var d=w,e=new N("https://www.googleapis.com/youtube/v3/channels");mh(e,"id",a);mh(e,"part","snippet,statistics");mh(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount");null!=c&&(b=A(b,c),d=A(d,c));gZ(new rn,e,b,d)};
var gZ=function(a,b,c,d){mh(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");sn(a,2E3);var e=new Cm(a);Gm(e,a,"success",function(a){a=a.target;var b;b=a.o?be(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(Jm(a.A)));d(b);e.dispose();a.dispose()});
a.send(b)};
var hZ=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}};
var iZ=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}};
var Oda=function(a){var b=EQ,c;c=a.image;BQ(c,aR)?c=String(c).replace(YQ,ZQ):BQ(c,bR)?c=String(c).replace(YQ,ZQ):c instanceof He?c=XQ(Je(c)):c instanceof Me?c=XQ(Oe(c)):(c=String(c),c=Pda.test(c)?c.replace(YQ,ZQ):"about:invalid#zSoyz");return b('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><div class="iv-endcap-image"><img src="'+SQ(c)+'"></div><div class="iv-endcap-headline" dir='+UQ(a.dir)+">"+Y(a.headline)+'</div><div class="iv-endcap-description" dir='+
UQ(a.dir)+">"+Y(a.description)+'</div><a class="iv-endcap-action" href="'+SQ($Q(a.target))+'" target="_blank" dir='+UQ(a.dir)+">"+Y(a.action)+"</a></div></div></div>")};
var jZ=function(a,b,c){iY.call(this,c);c=(c=b.o.product_card)?new xV(c):kZ;var d=new vV(oV(b.o,"action")[0]);b=d.o.title;var d=d.o.target,e=c.o.headline,f=c.o.description;c=c.o.image;c=(c?new CV(c):lZ).o.image_url;b=yQ(Oda,{headline:null!=e?e:"",description:null!=f?f:"",image:null!=c?c:"",action:null!=b?b:"",target:null!=d?d:""});a.appendChild(b)};
var Qda=function(){var a="",b=ra("Your video will play after this ad.");return EQ(a+('<div class="videoAdInterstitial"><p>'+b+"</p></div>"))};
var mZ=function(){G.call(this);this.A=yQ(Qda);this.ya=0};
var nZ=function(a){a.ya&&(Td(a.ya),a.o(w))};
var oZ=function(a){jc.call(this,a)};
var pZ=function(a){dd.call(this);this.C=a;this.M=new wg;this.J=-1;this.K=this.S=!1;this.G=""};
var qZ=function(a){this.o=!1;this.mute=a.sf();this.volume=a.nd()};
var rZ=function(a){null!=a.A&&a.A.dispose();null!=a.o&&a.o.vf();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.S=!1;a.K=!1};
var sZ=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&&FY(a.C,new jc("click"))}d=Rda[c]||null;null!=d&&null!=a.o&&a.o.Ol(d);FY(a.C,new jc(c))}a.$(b)}};
var tZ=function(a){0>a.J||a.S||!a.o.ug(a.J)&&!a.o.Ie()||!a.K||(a.S=!0,sZ(a,"engagedview",!0,!0),a.$(new oZ("viewCount")))};
var uZ=function(a){tZ(a);if(V()){var b=a.C;if(!(0>b.C))for(var c=aT(b.B,"progress"),d=b.C;d<c.length;d++){var e=c[d];b.C=d+1;KK(e.o,b.o)}}sZ(a,"complete",!0,!0)};
var vZ=function(a){HY.call(this,a);this.D=this.A=null;this.V=!1;this.O=new pZ(this.F);this.ea=this.na=this.Ca=this.qa=this.U=!1;this.Z=null;this.aa=1;this.K=null;this.Ia=new mZ;this.va=new Zj;this.La=!1;this.ga=[];this.ha=!1;this.Ga=!WK()&&xK([9414784,9418335,9416126]);this.la=wK(sK(),41351019)};
var wZ=function(a,b){var c=Sd(function(){this.va.remove(c);b.call(this)},0,a);
ak(a.va,c)};
var xZ=function(a){Mb(a.A);a.A=null;Mb(a.O);Mb(a.F);a.qa=!1;a.na=!1};
var yZ=function(a){a.Xg();JY(a)?a.start():a.stop()};
var Sda=function(a){if(!JY(a))return!1;var b=a.C.De();if(null==b)return!1;var c=IY(a),d;(d=c.G?c.G.o.Kg()?c.G.o.Yk():c.G.getContent():"")?Tda(a,b,d):kb(c.da)||(d=vU(c),a.D=new jZ(b,c.da[0],d),a.A&&uY(a.A,!0),a.C.Oe(),a.D.start(),a.o.Eo(!0),SY(a,"video_card_endcap_impression"));null!=a.D&&(OY(a).R(a.D,"timeUpdate",a.jq),OY(a).R(a.D,"end",a.Lv));return null!=a.D};
var Tda=function(a,b,c){kL(jL.getInstance(),34,{evt:"start"},!0);var d=M("div");K(d,"controls");var e=M("div");K(e,"adDisplay");K(e,"endslate");e.innerHTML=c;(c=sf(e)[0])&&Mf(c,{margin:"0 auto"});F(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&OY(this).R(a,"click",A(this.Kv,this,b))},a);
d.appendChild(e);e=new hV;Kba(e,vU(IY(a)));e.B=0;e.A=0;a.D=new CY(d,e,1,{},!0);OY(a).R(a.D,"skip",a.Sn);mf(b,a.D.getContainer());a.C.Oe();a.D.start();SY(a,"video_card_endcap_impression");a.A&&(Bda(a.A),sY(a.A))};
var zZ=function(a){a.D&&(a.D.dispose(),a.D=null);a.A&&uY(a.A,!1);a.V=!1};
var AZ=function(a){var b=JY(a)?zU(IY(a)):null;if(b){var c;a:{if(JY(a)&&(c=AU(a.J),null!=c))break a;c=""}var d;a:{if(JY(a)&&(d=BU(a.J),null!=d))break a;d=""}var e=IY(a).B.Sc("show_ads_pay_this_creator_info_card");(c||d||e)&&a.o.Ok(b,c||null,d||null,e)}};
var BZ=function(a){var b=wK(sK(),9419966);!a.Z||!a.ea&&b||(b=a.Z,a.ea=!1,a.Z=null,PY(a,b))};
var CZ=function(a,b,c,d){b=aT(b.o,c);kb(b)||(a[d]=b[0].o)};
var DZ=function(a,b,c){b=c.getExtension(b);null!=b&&(CZ(a,b,"annotation_click","cta_annotation_clicked"),CZ(a,b,"annotation_close","cta_annotation_closed"),CZ(a,b,"annotation_start","cta_annotation_shown"))};
var Uda=function(a,b){var c=kU(b)&&!b.S?aU(b):null,d=MT(b)&&!OT(b),e=null!=a.A&&a.A.o.A,f=b.B,k=mQ(a.wo());if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var l=HT(b),m;a.A?(m={},DZ(m,"AdSense",b),DZ(m,"dart",b),DZ(m,"DFP",b)):m=null;return new ER(l,c,0,m,e,d,a.B.loadVideoTimeout,f?f.ri:!1,!1,eU(b),a.B.Ff,k)};
var Vda=function(a){var b=0,c=0;F(a.ads,function(a){!NY(a)||V()&&0!=c||(c++,b+=oU(a))},a);
var d=1;F(a.ads,function(a){var b=a.D;b.C=c;NY(a)&&(b.A=d,b.D=d,d++)},a)};
var EZ=function(a){var b=a.o;return b&&b.M&&(b=b.C,!kb(b)&&b[0]instanceof uT)?b[0].Vc():uU(a)};
var FZ=function(a,b){if(!NY(b))throw RK(GZ);var c=b.A;if(!C(D(null)))return new tT("","","",0,0,0,0,0,null,"");var d=MY(b),e=a.o.Aq(d,a.B.bitrate,a.B.Hg||[],null!=b&&(V()||a.C.wi()||a.C.Mk()||WK()));Wda(d,a.B.bitrate,e,UT(b));if(null!=e)return c.ha=e;try{Xda(a,b)}catch(f){}throw RK(Yda);};
var Xda=function(a,b){if(jL.getInstance().o){var c=new Zj,d=!1;F(MY(b),function(a){ak(c,a.o);"VPAID"==a.B&&(d=!0)},a);
var e=a.o.zk(),e={aid:aU(b),mt:c.Ka().join(","),smt:e.join(","),hvp:d,st:fU(b).join(",")};kL(jL.getInstance(),28,e)}};
var Wda=function(a,b,c,d){if(!V())try{var e=O(a,function(a){return a.Pd}),f=O(a,function(a){return a.o});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Pd;a.selmt=null===c?"":c.o;a.ic=!1;a.nat=!1;a.iyh=AK(c.A)?"1":"0";a.as=d;kL(jL.getInstance(),22,a)}catch(k){}};
var HZ=function(a,b){b in a.ga||(a.ga.push(b),a.wa(b))};
var IZ=function(a,b,c){b.getMessage();b.getErrorCode();JZ(a,c);a.Xg();JY(a)?(SK(RK,a,b,c,void 0),a.start()):(TK(a,b,c),a.stop())};
var JZ=function(a,b){var c=RK(KZ,b),c=QW(c,IY(a),a.o),d=VT(IY(a));NK(d,c)};
var LZ=function(a){if(kK.o){var b=EZ(IY(a));null!=b&&IK(b)}a.wa("click")};
var MZ=function(a,b){Ub(Zda,b)&&Dm(OY(a),a.O,b,a.gq,a)};
var NZ=function(a){if(!a.ha){var b=IY(a),c=b.F;if(yU(b)&&!V()&&!a.C.wi()&&c){var b=a.o.getCurrentTime(),d=a.o.Md(),e=new N("//s.youtube.com/s");mh(e,"ns","yt");mh(e,"el","adunit");mh(e,"docid",c);mh(e,"eurl",window.document.URL);mh(e,"len",d.toFixed(2));mh(e,"tv","1");mh(e,"ps","trueview-instream");mh(e,"st",b.toFixed(2));mh(e,"et",b.toFixed(2));mh(e,"rt",b.toFixed(2));KK(e.toString())}a.ha=!0}};
var $da=function(a){var b;b=IY(a).V;if(null!=b){b=b.videoId;var c=a.B.baseYouTubeUrl;if(C(D(b)))b=null;else{var c=new N((null!=c?c:"//www.youtube.com/")+"watch"),d=c.o;d.set("v",b);eh(c,d);c.J="action=share";b=c.toString()}null!=b&&(IK(b),a=OZ(a),null!=a&&JK(a,"sharebuttonclicked"))}};
var aea=function(a){a=OZ(a);null!=a&&JK(a,"sharebuttondisplayed")};
var OZ=function(a){var b=IY(a).getExtension("AdSense");if(!(b=null!=b?new N(b.B):null))a:{if(a=$T(IY(a)))if(a=pT(a,"start"),!kb(a)){b=new N(a[0].o);break a}b=null}return b};
var bea=function(a){var b=IY(a),c=b.V;null!=c&&(b=lQ(c.videoId,null!=qU(b),a.B.baseYouTubeUrl),null!==b&&(a.o.pause(),IK(b)))};
var PZ=function(a,b){wZ(a,function(){this.wa(b?"video_extend_auto_skipped":"skip");yZ(this)})};
var QZ=function(a,b){Mda(b,function(a){a=new iZ(a);JY(this)&&zU(IY(this))==a.videoId&&(cea(this,a),!C(D(a.channelId))&&a.isListed&&Nda(a.channelId,function(a){a=new hZ(a);if(null!=this.A){var b=this.A,c=a.A;b.o.aa=!C(D(c));b.o.ea=c;if(null!=b.F){var c="",k=ra("by {$userDisplayName}",{userDisplayName:""+b.o.ea});Af(b.F,(new KQ(c+(""+k),void 0)).getContent())}rY(b);b=this.A;c=a.o;b.o.Z=!C(D(c));null!=b.K&&(k=lf("img"),k.setAttribute("src",c),K(k,"videoAdUiAuthorIconImage"),b.K.appendChild(k),null!=
b.G&&K(b.G,"videoAdUiTitleWithAuthorIcon"),null!=b.F&&K(b.F,"videoAdUiAuthorNameWithAuthorIcon"));rY(b)}JY(this)&&(IY(this).O=a,this.wa("youTubeChannelMetadata"));if(a=this.A)a=IY(this),b=a.V,a=V()&&kb(XT(a))&&null!=a.O&&null!=b&&b.isListed;if(a){a=IY(this);OY(this).R(window,"message",this.jw);var b=IY(this),c=b.O.channelId,k=HT(b),l=this.B.contentId,m=this.B.baseYouTubeUrl,m=new N((null!=m?m:"//www.youtube.com/")+"ad_companion"),p=m.o;p.set("adformat",k);p.set("p",c);p.set("render","video_wall_companion");
l&&p.set("content",l);c=new rW("1",new re(300,250),"IFrame",null,m.toString());c.S=b;c.D=!0;a.H=[new mW(c,[],null)];PY(this,a)}},this))},a)};
var cea=function(a,b){if(null!=a.A&&b.isListed){var c=a.A,d=b.title;c.o.G=!C(D(d));c.o.title=d;RZ.test(ye(c.o.title,void 0));null!=c.G&&Af(c.G,c.o.title);rY(c);c=a.A;null!=c.ha?Af(c.ha,eR()):null!=c.J&&Af(c.J,eR())}JY(a)&&(IY(a).V=b,a.wa("youTubeVideoMetadata"))};
var SZ=function(a){var b;b=IY(a).O;if(null!=b){var c;c=a.B.baseYouTubeUrl;b=D(b.channelId);c=C(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ta(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.o.pause(),IK(c))}};
var dea=function(a){var b=PU.getInstance();if(b.A){var c={};if(null!=a.K){var d=hh(new N(a.K.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.K.Qd;c.cd3=a.K.o;c.cd5=b.o;c.cm2=a.B.bitrate;c.cd2=AK(a.K.A)?"1":"0";d=a.K.getWidth();e=a.K.getHeight();null!=d&&null!=e&&(c.cd8=d+"x"+e);a.o&&(d=a.o.Uc(),c.cd4=d.width+"x"+d.height);a=a.K.G;C(D(a))||(c.cd7=a)}b.end("bt",c)}};
var TZ=function(){jc.call(this,"vpaidEvent")};
var UZ=function(a){HY.call(this,a);this.va=this.qa=this.aa=!1;this.Z=[];this.ea=Wa();this.A=null;this.M=!0;this.ga=this.V=-1;this.O=1;this.la=this.ha="";this.U=!1;this.na=0;this.K=2==kK.D};
var VZ=function(a){var b=lba(IY(a)),c=D(uU(IY(a))),d=wU(IY(a)),c={desiredBitrate:a.B.bitrate,creativeData:b,viewMode:a.S,clickThroughUrl:c,adUrl:d};wU(IY(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.B.surveyCreativeData&&(c.creativeData=a.B.surveyCreativeData);WZ(a,"initAd",c);F(a.Z,function(a){WZ(this,a.type,a.params)},a);
a.aa=!0;a.Z=[]};
var XZ=function(a,b,c){c=c||null;a.aa?WZ(a,b,c):a.Z.push({type:b,params:c})};
var WZ=function(a,b,c){c=c||{};c.session=a.ea;c.type=b;a.K?window.parent.postMessage(de(c),"*"):null!=a.D.contentWindow&&a.D.contentWindow.postMessage(de(c),"*")};
var YZ=function(a,b,c){var d=RK(b,c),d=QW(d,IY(a)),e=VT(IY(a));NK(e,d);TK(a,b,c)};
var ZZ=function(a,b){if(y(b.type))switch(b.type){case "friendlyReady":VZ(a);break;case "videoCall":switch(b.func){case "load":case "play":a.C.Ig();a.la!=b.src&&(a.la=b.src,a.A.load(b.src,b.mimetype));a.A.play();break;case "pause":a.A.pause()}break;case "returnDuration":a.V=b.duration;break;case "returnRemainingTime":$Z(a,b.remainingTime);break;case "AdClickThru":RY(a,"click");a.wa("click");break;case "AdDurationChange":a.V=b.duration;$Z(a,b.remainingTime);$T(IY(a)).Lf(a.V);a.wa("durationChange");
break;case "AdError":YZ(a,eea,Error(b.message));a.stop();break;case "AdExpandedChange":a.wa("expandedChanged");break;case "AdImpression":var c=IY(a);kb(XT(c))||PY(a,c);a.wa("impression");break;case "AdLinearChange":c=b.isLinear;!a.M&&c?(a.wa("contentPauseRequested"),Td(a.ga)):!c&&a.M&&(a.wa("contentResumeRequested"),XZ(a,"getAdRemainingTime"),XZ(a,"getAdDuration"));a.M=c;var d=IY(a);d.ha=!0;d.na=c;a.wa("linearChanged");a.K&&a.$(new TZ);break;case "AdLoaded":if(!V()){var e={};e.pid=PU.getInstance().o;
e.dn=a.ha;e["if"]=a.K;e.lt=I()-a.na;kL(jL.getInstance(),43,e,!0)}a.qa=!0;var e=b.companions,f=IY(a);if(kb(XT(f))){var k=f.A.o,l=[],m=null;try{c=sz(e),d=uf(c),null!=d&&"CompanionAds"==d.nodeName&&(m=AW(wW.prototype,d,k))}catch(p){}null!=m&&l.push(m);kb(l)||GT(f,l)}a_(a);SY(a,"loaded");break;case "AdPaused":a.U=!0;SY(a,"pause");break;case "AdPlaying":a.U=!1;SY(a,"resume");break;case "AdRemainingTimeChange":$Z(a,b.remainingTime);break;case "AdSkipped":SY(a,"skip");break;case "AdSkippableStateChange":SY(a,
"skippableStateChanged");break;case "AdStarted":RY(a,"impression");RY(a,"creativeview");a.wa("start");break;case "AdStopped":RY(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.M?RY(a,"acceptinvitationlinear"):RY(a,"acceptinvitation");break;case "AdUserMinimize":RY(a,"collapse");break;case "AdUserClose":SY(a,"userClose");break;case "AdVideoComplete":SY(a,"complete");break;case "AdVideoFirstQuartile":SY(a,"firstquartile");break;case "AdVideoMidpoint":SY(a,"midpoint");break;case "AdVideoStart":RY(a,
"start");break;case "AdVideoThirdQuartile":SY(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.O&&a.wa("volumeChange");0==c&&0!=a.O?(RY(a,"mute"),a.wa("mute")):0==a.O&&0!=c&&RY(a,"unmute");a.O=c;a.A.setVolume(c);break;case "Ping":KK(b.url)}};
var b_=function(a,b){WZ(a,"wrapperCall",{messageType:b})};
var a_=function(a){a.qa&&a.va&&(XZ(a,"startAd"),a.M||(a.$(new TZ),XZ(a,"getAdRemainingTime")),XZ(a,"getAdDuration"))};
var $Z=function(a,b){a.M||(Td(a.ga),fa(b)&&-1!=b||(b=30),a.ga=Sd(a.cA,1E3*b,a))};
var c_=function(a){this.o=a};
var d_=function(a,b,c,d,e,f,k){dd.call(this);this.C=this.F=0;this.J=a;this.bc=b;this.da=c;this.D=null;this.K=d;this.Y=f;this.O=kK.A;this.o=null;this.U="normal";this.M=null;this.H=e;this.A=[];this.aa=this.S=this.Z=this.L=!1;this.V=k;fea(this)};
var e_=function(a){return null!=a&&nU(a,"nonlinear")};
var fea=function(a){F(a.J,function(a){a=new N(a.B.o);var c=a.o.get("max_ad_duration");n(c)||a.o.get("pmxd")})};
var f_=function(a){return a.F<a.J.length&&null!=a.J[a.F]};
var gea=function(a,b){if(V()&&!kb(b)&&0==a.bc&&e_(b[0])){var c=dU(b[0]);return"ADSENSE"==(0<c.length?c.pop():UT(b[0])).toUpperCase()}return!1};
var g_=function(a){!f_(a)||2<=a.A.length-a.C?a.Z||(a.$("adBreakInitialized"),a.Z=!0):h_(a)};
var h_=function(a){var b=a.J[a.F];Dm(a.G,a.K,"adsLoaderSdkAdLoaded",a.op,a);kK.A="on_master_ad";tda(a.K,b.B,b)};
var hea=function(a){null==a.bc||Ih(a.A,function(a){return!a.A})||(a.A=$d(a.A,function(a){return!(a.A&&!a.B)}))};
var i_=function(a){var b;a:{if(a.C<a.A.length&&(b=a.A[a.C].o,!kb(b))){b=null!=b[0]&&null==IT(b[0]).rm;break a}b=!1}if(b){b=a.A[a.C];try{if(a.S||(j_(a),a.o=k_(a,b.o),l_(a)),a.o.init(a.U),null!=a.M&&a.o.setVolume(a.M),m_(a.o))a.$("contentResumeRequested"),a.H.Oe(),a.o.start(),null!=a.D&&a.D.start();else{var c=a.o;if(null!=c&&c instanceof vZ)a.H.Ig(),a.o.start();else{var d=a.o;if(null!=d&&d instanceof UZ)a.H.Oe(),a.H.Ig(),1==a.o.M||a.$("contentResumeRequested"),a.o.start();else throw Error("Unknown ads manager type.");
}}}catch(e){a.C++,i_(a)}f_(a)&&h_(a)}else a.$("contentResumeRequested"),n_(a)};
var k_=function(a,b){var c=null;if(null!=a.K.D)c=$X(b);else if(CU(b[0]))c=new UZ(b);else if(JT(b[0]))c=new vZ(b);else if(e_(b[0]))c=new XY(b);else throw Error("No valid creative type found.");c.G=a.V;null!=a.B&&(a.B.dispose(),a.B=null);a.B=new Cm(a);Dm(a.B,c,"companionBackfill",a.pp,a);c.Fd(new c_(a.H),{currentTime:0},a.Y);return c};
var j_=function(a){a.H.fa();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)};
var l_=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.by,a);Dm(a.B,b,o_,a.pp,a);a.B.R(b,["allAdsCompleted"],w);Dm(a.B,b,"contentPauseRequested",a.Ow,a);Dm(a.B,b,"contentResumeRequested",a.Pw,a);Dm(a.B,b,"userClose",a.Qw,a);Dm(a.B,b,"autoClose",a.Nw,a);m_(a.o)&&(b=$T(IY(a.o)).la,0<b||a.Y.Dn)&&(0>=b&&(b=15),null!=a.D&&a.D.dispose(),a.D=new Qd(1E3*b),Im(a.B,a.D,"tick",a.bA,a))};
var m_=function(a){return null!=a&&a instanceof XY};
var n_=function(a){a.L=!1;a.$("allAdsCompleted")};
var iea=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;F(a.A,function(a,b){var f=a.o;jb(f,c);d+=f.length;b<this.C&&(e+=f.length)},a);
b=c.D;var f=e+b.D;b.C=d+(a.J.length-a.F);b.A=f;b.B=a.da;b.o=a.bc}};
var p_=function(a){jc.call(this,a);this.B=null};
var q_=function(a,b,c){dd.call(this);this.o=a;this.B=[];this.F=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.H=null!=c&&fa(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.C=null;this.A=!1;jea(this,b)};
var kea=function(a){this.o=a;this.B=this.A=!1};
var r_=function(a){null!=a.C&&(a.C.dispose(),a.C=null);a.o.stop();a.A=!1};
var lea=function(a){if(a.A){var b=eb(a.B,function(a){return-1==a.o},a);
null!=b&&s_(a,!0,b)}};
var jea=function(a,b){F(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);Gb(this.B,new kea(a),function(a,b){return zb(a.o,b.o)})},a)};
var mea=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};
var nea=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};
var t_=function(a){a.$(new p_("contentTrackingError"))};
var s_=function(a,b,c){if(null!=c){if(!c.A){var d=new p_("requestAds");d.B=c.o;a.$(d);c.A=!0}b&&!c.B&&(b=new p_("playAds"),b.B=c.o,a.$(b),c.B=!0)}};
var u_=function(a,b){G.call(this);this.C=a;this.o=-1;this.B=b};
var v_=function(a,b){if(0==b.bc||0>=a.B||0>=a.o)return!1;var c=I()/1E3,d=b.bc-a.C.currentTime;0<d&&(c+=d);return c-a.o<=a.B};
var ZX=function(a,b){HY.call(this,[]);this.ea=a;this.L=new wg;this.D=this.A=null;this.U=new go;this.K=null;this.Z=b;this.ha=this.aa=!1;this.ga=this.O=null;this.la=0;this.V=!1};
var w_=function(a,b){a.V=!1;a.ef(b);if(0==b.bc)a.xi();else{if(-1==b.bc)(x_(a)||!V()&&a.aa)&&y_(a);else{var c=a.D;c.o.start();c.A=!0}a.K=null}};
var z_=function(a){null!=a.H&&(a.H.dispose(),a.H=null);a.aa=!1;null!=a.D&&r_(a.D)};
var A_=function(a){if(null==a.K){var b=jo(a.U);if(null!=b){a.K=b;var c=a.L.get(a.K.B);if(null==c)a.K=null,A_(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.K=null,A_(a);else if(null!=a.ga&&v_(a.ga,c))a.K=null,A_(a);else if("requestAds"==b.type)a.V?(a.U.isEmpty()||"playAds"!=ko(a.U).type||jo(a.U),w_(a,c)):(b=OY(a),Dm(b,c,o_,a.$,a),Dm(b,c,"adError",a.Xn,a),Dm(b,c,"allAdsCompleted",a.ip,a),Dm(b,c,"contentPauseRequested",a.vo,a),Dm(b,c,"contentResumeRequested",a.xi,a),Dm(b,c,"userClose",a.Tw,a),
Dm(b,c,"autoClose",a.Sw,a),Dm(b,c,"adBreakInitialized",a.kp,a),c.init(-1,-1,a.S));else if("playAds"==b.type)if(null!=a.A&&a.A.jb()&&a.ef(a.A),a.V)w_(a,c);else if(a.A=c,a.A.setVolume(a.volume),c=a.A,b=a.S,null!=b&&(c.U=b),null!=c.o&&c.o.rf(-1,-1,b),a.A.S){c=a.A;if(c.C<c.A.length){b=c.A[c.C];j_(c);try{c.o=k_(c,b.o),l_(c)}catch(d){c.C++,i_(c)}}a.wa("contentResumeRequested");a.D.getCurrentTime()>=a.la?null!=a.A&&a.A.start():a.K=null}else a.A.start()}}};
var y_=function(a){a.ha||(a.ha=!0,a.Z.o=!0,a.wa("allAdsCompleted"),-1==a.O&&B_(a))};
var B_=function(a){wK(sK(),41351033)||dS.clear();null!=a.G&&(a=a.G.Be(),null!=a&&fS(a,dS.o))};
var x_=function(a){return 0==a.L.Ka().length};
var oea=function(){};
var $X=function(a){if(kb(a))return null;var b=a[0];switch(CU(b)?"vpaid":null!=(null===b.A?null:b.A.Wk())&&0!=kK.D?"flash_vpaid":kU(b)&&nU(b,"nonlinear")?"overlay":nU(b,"linear")?"video":nU(b,"nonlinear")?"overlay":null){case "overlay":return kU(b)?new $Y(a):new XY(a);case "video":return new vZ(a);case "vpaid":return new UZ(a);case "flash_vpaid":return null;default:return null}};
var C_=function(a){dd.call(this);this.A=a;a=new FU(new $R);this.o=new WX(new oea,a,dS);this.o.R("adsManagerLoaded",this.$,!1,this);this.o.R("adError",this.$,!1,this);this.o.R("adLoadError",this.$,!1,this)};
var D_=function(a,b,c){uK();var d="",e=nM(),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.oc=KR(b.o,a.A.B);b.Wl=a.A.H;sda(a.o,b,c)};
var E_=function(a,b){gH.call(this,a,b)};
var F_=function(a){this.app=a;mq.call(this,a.Wa)};
var G_=function(a,b,c){this.X=a;this.o=b||"";this.B=c||null;this.C=!1};
var H_=function(a,b){var c=a.X;if(c.Ea&&("detailpage"==c.Aa||"leanback"==c.Aa||"embedded"==c.Aa&&(c.Ca||c.experiments.B))&&!a.C){a.C=!0;zi("TIMING_ACTION")||wi("TIMING_ACTION",a.X.csiPageType);a.X.la&&wi("CSI_SERVICE_NAME",a.X.la);if(a.B){var c=a.B.C,d;for(d in c)Yu(d,c[d],a.o);d=a.B.B;for(var e in d)dv(e,d[e],a.o);e=a.B;e.C={};e.B={}}if(e=Fh("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}dv("yt_vis",
d,a.o)}dv("yt_pt","html5",a.o);b&&!cv("pbs",a.o)&&a.A("pbs",b);e=a.X;("detailpage"!=e.Aa||"blazer"==e.o)&&cv("_start",a.o)&&bv(a.o)}};
var pea=function(){this.D=new DJ(50);this.A=null;this.C=this.B=0;this.o=[]};
var qea=function(a,b){0!=a.o.length&&(b.D=a.o.length,b.H=me(a.o,function(a,b){return a+b},0),b.G=db(a.o),b.K=Math.min.apply(Math,a.o),b.J=Math.max.apply(Math,a.o),a.o=[])};
var rea=function(a,b){if(a.A&&!(b>=a.B&&b<a.C)){var c=a.A.jf(b);a.B=a.A.de(c);a.C=a.B+a.A.dg(c);var d=I()/1E3,c=Kr(a.A,c),d=d-(c?c.A:window.NaN);EJ(a.D,d);a.o.push(d)}};
var sea=function(a,b){this.o=a;this.A=b;this.B=1};
var I_=function(a,b,c,d){d/=a.B;var e=OJ(a.o)+1/PJ(a.o),f;f=Math.max(.9*(d-3),NJ(a.o)+8192*e);c=f/e*a.A.na/(b+c);c=Math.min(c,d);c=Math.max(a.A.la,Math.min(a.A.ha,c));return Math.min(a.A.F,Math.max(65536,Math.ceil(c*b)))};
var J_=function(a){var b=PJ(a.o);a=1E-9+NJ(a.o)+1048576*OJ(a.o);return b*Math.min(1,1048576/(b*a))};
var K_=function(a){return J_(a)/a.B};
var L_=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
var tea=function(a,b,c,d){this.V=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.S=this.O=0;this.U=null;this.K=!1};
var uea=function(a,b,c,d){"m"==c&&a.o.isLocked()&&!b.isLocked()&&(c="a");a.K=a.K||d;if("m"==c&&b.isLocked())return a.D=c,M_(a,b),N_(a),a.B=O_(a),new L_(P_(a),a.B,c);d=a.o.equals(b);if("m"==a.D&&a.o.isLocked()&&d)return null;"r"!=c||d||(a.M=-1);M_(a,b);b=O_(a);if("r"==c&&b==a.B){if(d)return null;a.B=b;return new L_(P_(a),b,c)}a.D=c;Q_(a);return null};
var vea=function(a,b){R_(a);a.U=b;a.S=$s();a.M=-1;M_(a,a.o)};
var R_=function(a){return!!a.S&&9E4>=$s()-a.S};
var P_=function(a){S_(a);return a.C};
var O_=function(a){S_(a);return a.G};
var Q_=function(a){a.B&&a.G&&T_(a,a.B.info)<T_(a,a.G.info)&&(a.K=a.K||a.G.info.video.width>1.6*a.B.info.video.width||"r"==a.D)};
var U_=function(a){var b=a.D;a.D="a";a.M=$s();a.K=!1;return new L_(a.L,a.B,b)};
var S_=function(a){if(!(!a.o.isLocked()&&-1<a.M&&8E3>$s()-a.M)){a.S&&!R_(a)&&(a.S=0,M_(a,a.o));N_(a);var b=K_(a.V);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.A-T_(a,a.C.info);0<c&&!(T_(a,a.A[c])<=d);c--);for(b=b/a.H.o-T_(a,a.C.info);c<a.A.length-1&&!(T_(a,a.A[c+1])>=b);c++);a.O=c;a.G=a.F.o[a.A[c].id];Q_(a)}}};
var M_=function(a,b){a.o=b;var c=a.J.videoInfos;if(!a.o.isLocked()&&(c=$d(c,function(a){return T_(this,a)>this.H.H?!1:!this.F.o[a.id].D},a),R_(a))){var c=$d(c,function(a){return a.id!=this.U.id},a),d=$d(c,function(a){a=jr(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.J.videoInfos);d=$d(c,b.C,b);d.length||(d=[c[0]]);d.sort(A(function(a,b){return T_(this,a)-T_(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(pb(d,c),c--):T_(a,e)*a.H.o>T_(a,f)&&(pb(d,c-1),c--)}a.A=d;yI(a.H,d[d.length-1].video.NB)};
var wea=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]}N_(a)};
var N_=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=K_(a.V)/a.H.o,b=T_(a,a.C.info)+T_(a,a.A[b])>c}b&&(a.C=a.F.o[a.J.o[1].id])}};
var xea=function(a){var b=a.H.A,c=K_(a.V)/b-T_(a,a.C.info),b=ib(a.A,function(a){return T_(this,a)<c},a);
0>b&&(b=0);a.O=b;a.G=a.F.o[a.A[b].id]};
var T_=function(a,b){return a.H.U&&b.C?b.C:b.o};
var V_=function(){this.o=this.A=!1};
var W_=function(a,b){this.M=a;this.B=b;this.D=[];this.o=[];this.C=this.A=null;this.F=0;this.O=b.info.o;this.K=this.L=!1;this.J=new V_;this.H=null;this.G=0};
var X_=function(a,b){a.D.push(b);a.A=db(b.info.o);a.F+=Y_(b)};
var Z_=function(a){for(var b;a.D.length&&5==a.D[0].state;)b=a.D.shift(),!b.L&&b.o&&(a.F=$_(b,a.F)),a0(b)&&(b=b0(b),F(b,a.S,a));a.D.length&&a0(a.D[0])&&!Xr(a.D[0].info.o[0])&&(b=a.D[0],!b.L&&b.o&&(a.F=$_(b,a.F)),b=b0(b),F(b,a.S,a))};
var c0=function(a){return!(!a.o.length||1!=a.o[0].info.o.info.A||0!=a.o[0].info.B)};
var d0=function(a){var b=Ps(a.o[0]);return b.getInt32(0)>b.byteLength&&1==a.o.length};
var e0=function(a,b){d0(a);var c=a.o[0],d=f0(a);if(!d)return null;c=b||c.info.o.index.vk(c.info.C);return(d=ps(d,c))?d:null};
var g0=function(a){var b=a.o[0],c=f0(a);c&&(c=Ds(c))&&h0(a,Er(b.range.start,c))};
var f0=function(a){var b=a.o[0],c=Ps(b),d=Ds(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=Ds(new window.DataView(a.buffer));if(!d)return null;c=new window.DataView(a.buffer.slice(b.range.start,d))}return c};
var yea=function(a,b){if(a.L)return a.o[0].range;var c=!!a.B.info.audio,d=a.B.Ph();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.M.V)break}e--;var f=a.o[e].range.end,k=a.o[e].info.J-b;if(d&&c&&0<=a.M.S&&k>a.M.S){c=Math.floor((b-a.o[e].info.D)/a.o[e].info.H*a.o[e].info.A);if(0==c)return null;f=a.o[e].range.start+c-1}return new Cr(a.o[0].B?0:a.o[0].range.start,f)};
var h0=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 Wr(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=Er(c.range.start,e);d=new Os(d,c.o,f,c.A,c.B);e=new Wr(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.G);f=new Cr(f.end+1,c.range.end);c=new Os(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.L&&d.C.F&&(d.L=!1);d.O=Math.max(d.O,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)};
var i0=function(a,b){var c=j0(a,b);if(0<=c)return c;a.A=a.B.ii(b).o[0];k0(a)&&(a.C=null);a.H=null;a.G=0;return a.A.startTime};
var l0=function(a,b){m0(a);if(a.B.info.video&&a.C&&!a.C.F&&b){var c=fb(a.o,function(a){return a.info.F});
a.o=vb(a.o,0,c+1);a.L=!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};
var n0=function(a){a.J.A||a.J.start();l0(a,!1);k0(a)&&(a.C=null)};
var zea=function(a,b){for(var c=0;c<a.D.length&&b!==a.D[c];c++);if(c==a.D.length)b.dispose();else{for(;c<a.D.length;)a.V(a.D.pop());3==b.info.o[0].type?(b.o&&b.o.C?(c=b.o.C,c=new Wr(c.type,c.o,c.range,c.C,c.startTime+c.duration,0,c.B+c.A,0,!1)):(c=b.info.o[0],c=new Wr(c.type,c.o,c.range,c.C,c.startTime,0,c.B,0,!1)),a.A=c):a.A=null}};
var Aea=function(a){return Ih(a.o,function(a){return a.info.F})};
var k0=function(a){return!!a.C&&a.C.G};
var o0=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&&a.A!=db(b)&&b.push(a.A);return b};
var p0=function(a){if(!a.A||!a.A.A)return!1;a=o0(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].J)))return!1;return!0};
var j0=function(a,b){if(p0(a)){var c;a:{c=o0(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};
var q0=function(a){return Ih(a.D,function(a){return 3<=a.state})};
var r0=function(a){return!(!a.A||!Vr(a.B)||a.A.o==a.B)};
var s0=function(a){return r0(a)&&a.A.o.info.o<a.B.info.o};
var m0=function(a){F(a.D,a.V,a);a.D=[];a.A=null};
var t0=function(a){return!!a.A&&a.A.C<a.B.index.Bg()};
var Bea=function(a,b){this.A=a;this.F=this.D=!1;this.length=b;this.o=0;this.B=[];if(1==this.A.length&&!this.A[0].range){var c=this.A,d;d=this.A[0];var e=Er(0,this.length);d=new Wr(d.type,d.o,e,d.C,d.startTime,d.duration,d.B,e.length,d.G);c[0]=d}this.C=null};
var Cea=function(a){var b=a.length-a.o;F(a.B,function(a){b+=a.range.length});
return b};
var u0=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;Dea++;this.L=window.NaN;this.C=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(Bi(A(this.PB,this)),Bi(A(this.Cj,this)));I();this.H=!1;b()};
var v0=function(a){a.B.push(a.G.subarray(0,a.o));a.o=0;a.G=a.H?null:new window.Uint8Array(w0(a))};
var x0=function(a){a.C.read().then(Bi(A(a.Ny,a)),Bi(A(a.Cj,a)));var b=I();a.L=b};
var w0=function(a){a=a.gg();return Math.max(16384,.125*a)};
var y0=function(a,b,c,d){this.status=0;this.A=null;Eea++;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=Bi(A(this.TD,this));this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();b();this.o.addEventListener("progress",Bi(A(this.UD,this)),!1)};
var z0=function(a,b,c){this.C=a;this.info=b;this.timing=c;this.state=1;this.B=null;this.M=this.G=this.K=0;this.F=window.NaN;this.H=this.A=this.S=null;this.D=0;this.o=null;this.L=!1;this.J=null;this.O=window.NaN};
var A0=function(a){var b;b=a.timing;b={rt:((I()-b.A)/1E3).toFixed(2),lb:b.o,pt:(b.M/1E3).toFixed(2),pb:b.K};b.shost=a.A?vr(a.A.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};
var B0=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};
var C0=function(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.C&&(c.C=!1)}a.S&&a.S(a)};
var Fea=function(a){return Gg(a.info.o,function(a){return 3==a.type})};
var D0=function(a){if(a.B){var b=a.B;a.B=null;b.Hr()}a=a.timing;a.C&&(a.C=!1)};
var E0=function(a){var b=a.B.oh("content-type"),c=a.B.gg(),c=!c||c<=z0.o;return(!F0(a)||!b||-1!=b.indexOf("text/plain"))&&c};
var b0=function(a){a=a.o;var b=a.B;a.B=[];a.C=db(b).info;return b};
var a0=function(a){return 2<=a.state&&!!a.o&&!!a.o.B.length};
var G0=function(a,b){F0(a)&&!a.B.gg()&&(a.C.Y=!1,a.C.Z=!1);if(b||F0(a)&&!E0(a)){if(!a.o){var c=b?a.B.rk():a.B.gg();a.o=new Bea(a.info.o,c)}for(;a.B.Wo();)for(var c=a.o,d=a.B.Oq(),e=0,f=0,k=0;k<c.A.length;k++){var l=c.A[k];if(e+l.A<=c.o)e+=l.A;else{var m;var p=c,u=l;1==u.type?(p.D=!0,m=!1):3==u.type||4==u.type?(u=p.D&&!p.F,p.F=!0,m=u):m=!1;var p=c,u=l,v=c.o-e,z=f,x=d,ga=Math.min(u.A-v,x.length-z),wa=void 0,wa=new Wr(u.type,u.o,u.range,u.C,u.startTime,u.duration,u.B+v,ga,u.B+v+ga==u.range.length&&u.G),
J=v=void 0,v=x.buffer,z=x.byteOffset+z,x=Er(x.byteOffset,x.length);1==u.type?(v.slice?v=v.slice(z,ga):(u=new window.Uint8Array(v,z,ga),v=(new window.Uint8Array(u)).buffer),J=Er(0,ga)):J=Er(z,ga);p.B.push(new Os(wa,v,J,x,m));p=ga;c.o+=p;f+=p;e+=l.A;if(f==d.length)break}}}};
var $_=function(a,b){a.L=!0;return b-ds(a.info)+Y_(a)};
var Y_=function(a){return a.o&&a.L?Cea(a.o):ds(a.info)};
var F0=function(a){return!!(a.C.Y||a.C.Z&&a.B&&a.B instanceof u0)};
var Gea=function(a,b,c){this.B=a;this.K=b;this.S=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};
var H0=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&&KJ(a.B,.05,e)):KJ(a.B,d,e),a.J=!0)}else 8192<=c&&(d=a.B,d.B.o(1,(b-a.A)/1E3),RJ(d),a.C=!0);a.F=b;a.o=c};
var I0=function(a){var b=a.K-a.o,b=1E3*(b*a.H.tailDelay+b/a.H.byterate),c=I(),b=8192<=a.o?b+c:b+Math.max(c,a.A+1E3*a.H.delay);a.G=b};
var J0=function(a,b,c,d){Rj.call(this);this.J=a;this.C=b;this.G=c;this.B=this.A=null;this.L=new sea(a,b);this.o=null;this.F=new tea(this.L,b,this.G,d);this.D=this.ea=this.aa=this.da=window.NaN;this.M=!1;this.H=window.NaN;this.ga=0;this.K=!1;this.ia={};this.V="";this.Y=this.Z=0};
var K0=function(a){0==a.D&&(a.A.B.B||L0(a,a.A,!0),a.B.B.B||L0(a,a.B,!0));a.seek(a.D);M0(a,"gv")};
var N0=function(a){a.o&&a.o.o&&a.o.o.removeEventListener&&(a.o.o.removeEventListener("updateend",A(a.tc,a),!1),a.o.A.removeEventListener("updateend",A(a.tc,a),!1),a.o.o.removeEventListener("error",A(a.Ii,a,!0),!1),a.o.A.removeEventListener("error",A(a.Ii,a,!1),!1));a.o=null;a.K=!0;a.B&&l0(a.B,!1);a.A&&l0(a.A,!1)};
var O0=function(a){a.o&&Hv(a.o)&&N0(a)};
var P0=function(a,b,c,d){a.isDisposed()||((b=uea(a.F,b,c,d))&&a.P("videoformatchange",b),Q0(a,a.B,O_(a.F)),a.F.o.isLocked()&&"m"==c&&(n0(a.B),n0(a.A)),s0(a.B)&&R0(a,a.B,a.A),S0(a))};
var T0=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.P("seekrequired");return!1};
var U0=function(a,b,c){if(a.K)return!1;if(!b.A){if(!Vr(b.B))return b.B.B||L0(a,b,!1),!1;i0(b,a.D)}var d=b.D.length+c.D.length;(q0(b)||q0(c)||a.G.isLive)&&--d;if(2<=d+1)return!1;d=b.A;4==d.type&&Vr(d.o)&&(b.A=db(d.o.Wi(d)),d=b.A);!d.G&&!d.o.ph(d)||d.o.info.audio&&4==d.type?a=!1:s0(b)&&!a.C.J?a=!0:(!(c=d.G||b.F+c.F>a.C.K||!!(c.A&&!c.A.G&&c.A.J<d.J))&&(c=3==d.type)&&(d=d.J,b=V0(a,b,!0),a.F.o.isLocked()||(c=($s()-a.ga)/1E3,b=Math.min(b,30+2*c)),c=d>a.D+b),a=c?!1:!0);return a};
var R0=function(a,b,c){if(!a.o||Gv(a.o)||Kv(a.o)){var d=a.D,e=a.L;c=I_(e,b.B.info.o,c.B.info.o,0);e=NJ(e.o)+c*OJ(e.o)+c/PJ(e.o);a:{d+=Math.max(e,e+5-c/b.B.info.o);a=a.F.K;if(b.D.length){if(b.D[0].info.o[0].startTime<=d)break a;m0(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=db(b.D[b.D.length-1].info.o):b.o.length?b.A=db(b.o).info:b.A=b.C;a&&b.A&&d<b.A.startTime&&(b.H=null,b.G=0,b.A=b.B.ii(d,!0).o[0])}}};
var W0=function(a,b,c){U0(a,b,c);var d=b.A;if(Vr(b.A.o)){s0(b)&&!a.C.J&&(R0(a,b,c),b.A||i0(b,a.D));var d=b.A,e=d.J-a.D,f=!d.range||0==d.A&&0==d.B?0:d.range.length-(d.B+d.A);r0(b)&&(s0(b)||e<=a.C.aa)&&0==f&&(f=d.startTime+J0.o,d.A&&(f+=d.duration),i0(b,f),d=b.A);d.o.Ph()?(c=I_(a.L,d.o.info.o,c.B.info.o,e),e=r0(b),c=Ys(d.o,d,c),c.range&&1<c.o.length&&(e?c=Ys(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=Ys(d.o,d,c.range.length-e.A)))),d=c):d=fs(d.o,d)}else d.o.Ph()?(c=I_(a.L,
b.B.info.o,c.B.info.o,0),d=Ys(d.o,d,c)):d=fs(d.o,d);X_(b,X0(a,d))};
var X0=function(a,b){if(3==b.o[b.o.length-1].type){var c;a:{c=a.F;var d=b.o[0].o;if(d.info.video){if(c.B!=d){c.B=d;c=U_(c);break a}}else c.L=d;c=null}c&&a.P("videoformatchange",c)}c=ds(b);var d=a.J,e=a.L,f=Math.min(2.5,NJ(e.o)),e=J_(e);c=new z0(a.C,b,new Gea(d,c,c-f*e));d=A(a.BA,a);c.isDisposed();c.S=d;c.start(Math.max(0,b.o[0].D-a.D));return c};
var S0=function(a){if((0,window.isNaN)(a.da)){var b=A(a.tc,a);a.da=Ai(b,0)}};
var Y0=function(a){if((0,window.isNaN)(a.aa)){var b=A(function(){this.aa=window.NaN;this.tc()},a);
a.aa=Ai(b,J0.D)}};
var Z0=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||Yr(b.C,f.info)||(b.C=null,Gv(a.o)&&c.abort(),c.o=null);var k=a.G.isLive&&Ts(f),l=!a.G.C&&b.M.V&&c0(b);if(k)c.o=null;else{if(k=l||!f.B)k=f.info.o.o,c.o==k?k=!1:($0(a,c,k),c.o=k,a.P("initsegment",c.o),k=c.updating);if(k)return!0}k=V0(a,b,!1);k=a.D+k;null!==d&&0<=d&&(k=Math.min(k,d));d=yea(b,k);if(!d)return!1;if(l){if(d0(b))return!1;if(k=e0(b))return a1(a,c,new window.Uint8Array(k),f,b)?(g0(b),
!0):!1}k=new window.Uint8Array(f.o,d.start,d.length);if(f.info.o.info.video&&a.C.ia)for(var m=k,p=0;p<m.length-5;p++)0==m[p]&&0==m[p+1]&&0==m[p+2]&&12==m[p+3]&&6==m[p+4]&&45==m[p+5]&&(m[p+5]=63);m=!1;if(3==f.info.type&&(1==f.info.o.info.A||2==f.info.o.info.A))if(m=1==f.info.o.info.A&&a.C.Ca&&!l&&!b.K&&0==f.info.B&&0<f.info.startTime)Rs(f,0);else if(a.G.C&&0==f.info.B){a:if(c0(b)&&!Ts(b.o[0])&&d0(b))e=!1;else{l=null===b.H?f.info.startTime:b.H;0==Rs(f,l)?(l=as(f.info),l.smst=1,a.rd(!0,"fmt.unparseable",
l)):b.H=2==f.info.o.info.A?l+f.info.duration:l+Ss(f);if(2!=f.info.o.info.A){l=0;if(f.info.o.info.video&&null!==e&&(p=1E3*(Ss(f)-f.info.duration),p=b.G+p,e=e-p,!(Math.abs(e)<J0.F))){var l=e/1E3,u=Ss(f)+l,v=as(f.info);v.deltaOffsetMs=e;v.cumOffsetMs=p;v.finalDurSecs=u;a.rd(!1,"qoe.avsync",v)}if((e=l)&&c0(b)&&!Ts(b.o[0])){b.G+=1E3*(Ss(f)-f.info.duration+e);b.H+=e;e=Ss(f)+e;b:{l=0;for(p=new window.DataView(f.o);ys(p,l);){u=zs(p,l);if(1936286840==u.type){l=u.data.getUint32(u.offset+16);break b}l=Bs(u.type)?
l+8:l+u.size}l=window.NaN}if((0,window.isNaN)(l))b:{l=f.info.o.o;p=0;for(u=new window.DataView(f.o);ys(u,p);){v=zs(u,p);if(1836476516==v.type){l=As(v);break b}p=Bs(v.type)?p+8:p+v.size}l=l?xs(l):window.NaN}if(e=e0(b,e*l)){if(a1(a,c,new window.Uint8Array(e),f,b)){g0(b);e=!0;break a}e=!1;break a}}else b.G+=1E3*(Ss(f)-f.info.duration)}e=null}if(null!=e)return e}if(!a1(a,c,k,f,b))return!1;b.K=!0;m?(Rs(f,f.info.startTime),c.abort(),c.o=null,$r(f.info)):(h0(b,d),$r(b.C),Yx(c.buffered));f.B&&(c.o=f.info.o.o,
a.P("initsegment",c.o));return!0};
var a1=function(a,b,c,d,e){if(1==d.info.o.info.A&&a.C.Qa&&a.G.C)for(var f=new window.DataView(c.buffer),k=qs(f,0,1701671783);null!=k;)k.data.setUint32(k.offset+4,1936419184),k=qs(f,0,1701671783);return $0(a,b,c)?!0:(d.info.o.info.video?(a=a.C,a.C=Math.floor(.5*a.C),a.L=Math.floor(.5*a.L),a.B=Math.floor(.5*a.B),a.F=Math.floor(.5*a.F)):(a=a.C,a.D=Math.floor(.5*a.D),a.M=Math.floor(.5*a.M),a.B=Math.floor(.5*a.B)),n0(e),!1)};
var $0=function(a,b,c){try{Kv(a.o)?b.appendBuffer(c):b.append(c)}catch(d){return 22!=d.code&&Fi(d),!1}return!Hv(a.o)};
var V0=function(a,b,c){var d=b.B.info.audio?a.C.D:a.C.C;!a.C.J&&a.F.o.isLocked()&&(d=Math.max(d,b.B.info.audio?a.C.M:a.C.L));c&&(d+=a.C.K);b=a.F.o.isLocked()?b.A?b.A.o.info.o:b.B.info.o:b.O;d/=b;0<a.C.B&&(d=Math.min(d,a.C.B));return d};
var b1=function(a){if(a.G.isLive){if(!a.A.B.index.fg())return window.NaN;var b=a.A.B.index.Bg(),c=a.A.B.index.Kb(),d=a.A.B.index;return 1>a.C.liveChunkReadahead?d.de(c)+d.dg(c)-J0.B:d.de(Math.max(b,c-a.C.liveChunkReadahead+1))+J0.B}return Math.floor(Math.min(a.A.B.index.eg(),a.B.B.index.eg()))};
var c1=function(a,b,c,d){if(Vr(b.B))if(d){var e=$x(d.buffered,c),f=window.NaN,k=b.C;k&&(f=$x(d.buffered,k.o.index.de(k.C)));if(e==f&&p0(b))return c;d=j0(b,c);if(0<=d)return d;l0(b,!0);b.B.info.video&&b.C&&!b.C.F&&!Aea(b)&&(d=b.C,b.o.length&&(d=db(b.o).info),d=b.A||d,d=Ys(d.o,d,d.range.length-(d.A+d.B)),X_(b,X0(a,d)));if((0,window.isNaN)(e))return i0(b,c);i0(b,e+J0.o)}else i0(b,c);else b.B.B||L0(a,b,!1),0!=c&&m0(b);return c};
var Q0=function(a,b,c){b.B!=c&&(b.B=c,c.B||L0(a,b,!1))};
var L0=function(a,b,c){var d=c?65536:0;c&&!(0,window.isNaN)(2)&&(d=Math.min(a.C.F,Math.floor(Math.max(d,2*b.B.info.o))));c=b.B.$n(d);F(c,function(a){if("f"!=a.o[0].o.info.B){var c=X0(this,a);!Xr(a.o[a.o.length-1])&&X_(b,c)}},a);
b.B.B=!0};
var d1=function(a){if(!a.B.A)return"";a=vr(a.B.A.o.F.o);return a.substr(0,a.indexOf("."))};
var M0=function(a,b,c){a.ia[b]=c?window.performance.timing.navigationStart+c:I()};
var e1=function(a){return a.o&&!Hv(a.o)?Math.min(by(a.o.A.buffered,a.D),by(a.o.o.buffered,a.D)):0};
var f1=function(a,b,c,d,e){G.call(this);this.D=a;this.L=b;this.J=c;this.C=d;this.o=e;this.H="";this.A=this.K=this.F=this.G=null;this.B=new zv(this);H(this,this.B);this.C?(S(this.B,this.C,"message",this.DE),S(this.B,this.C,"keystatuseschange",this.Fz)):this.o&&(Av(this.B,this.o,["mskeymessage","webkitkeymessage"],this.Pp),Av(this.B,this.o,["mskeyerror","webkitkeyerror"],this.Op),Av(this.B,this.o,["mskeyadded","webkitkeyadded"],this.Np))};
var g1=function(a,b){G.call(this);this.A=a;this.o=b;this.F={};this.B=null;this.D=new zv(this);H(this,this.D);this.C=this.G=null};
var h1=function(a){if(a.o.B)return a.o.B.createMediaKeys().then(Bi(A(function(a){this.G=a;this.A.setMediaKeys(a)},a)));
Ct(a.o)?i1(a):Et(a.o)?(i1(a),a.A.webkitSetMediaKeys(a.C)):Hea(a);return null};
var Hea=function(a){Av(a.D,a.A,["keymessage","webkitkeymessage"],a.GE);Av(a.D,a.A,["keyerror","webkitkeyerror"],a.FE);Av(a.D,a.A,["keyadded","webkitkeyadded"],a.EE)};
var i1=function(a){a.C=new (Dt())(a.o.o)};
var j1=function(a,b){var c=a.F[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.H=b.sessionId,a.F[b.sessionId]=c);return c};
var Iea=function(a,b,c){this.url=a;this.interval=b;this.o=c};
var Jea=function(a,b,c){this.o=a;this.headers=b;this.message=c};
var k1=function(a,b,c,d,e){G.call(this);this.A=a;this.o=d;this.o.subscribe("oauthtoken",this.Jr,this);this.C={session_id:e};a=this.A.D;Et(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://"));l1(this,a);this.D=this.F=!1;var f;try{f=b.createSession(c)}catch(k){b="g",k instanceof window.DOMException&&(b+=k.code),this.o.P("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),f=null}if(this.B=
f)this.B.setCallbacks(this.XD,this.WD,this.VD,this),H(this,this.B)};
var l1=function(a,b){if(Kea.test(b)){for(var c in a.C)b=$g(b,c,a.C[c]);a.H=b}else m1(a,"drm.net","u")};
var m1=function(a,b,c,d){a.isDisposed()||a.o.P("licenseerror",b,c,d);a.dispose()};
var n1=function(a,b){this.o=a;this.contentType=b||null};
var o1=function(a,b){Rj.call(this);a.addKey||a.webkitAddKey||Dt()||Gt();this.M=a;this.o=b;this.subscribe("newlicense",this.$z,this);this.subscribe("newsession",this.aA,this);this.subscribe("sessionready",this.JA,this);this.V=xu();this.H=null;this.L={};this.A=[];this.C=p1;this.G=new g1(a,b);H(this,this.G);this.B=null;Ct(b)&&(this.B=new g1(a,b),H(this,this.B));this.K=2;this.F=new zv(this);H(this,this.F);this.J=!1;this.O=null;this.D=!1;var c=this.M;if(this.o.B)S(this.F,c,"encrypted",this.pz);else{var d=
Ct(this.o)?["msneedkey"]:["needkey","webkitneedkey"];Av(this.F,c,d,this.Yz)}(c=h1(this.G))?c.then(Bi(A(this.Rz,this)),Bi(A(this.vy,this))):this.D=!0;this.B&&h1(this.B)};
var q1=function(a,b,c){a.isDisposed()||Ct(a.o)==c||a.J&&"widevine"==a.o.A||(c=String.fromCharCode.apply(String,b.o),a.L[c]||(a.L[c]=!0,a.J=!0,a.A.push(b),1<a.A.length||a.D&&r1(a,b)))};
var r1=function(a,b){var c=new k1(a.o,a.G,b,a,a.V);c.Jr(a.H);H(a,c)};
var s1=function(a){this.A={};this.A.c1a=A(this.D,this);this.A.c3a=A(this.F,this);this.A.c6a=A(this.C,this);(this.o=a)&&this.o.ia?this.B=oj(this.o.ia):this.B=[]};
var t1=function(a,b,c){this.o=a;this.reason=b;this.A=c};
var Lea=function(a,b){this.X=a;this.o=b};
var sH=function(a,b){return Yt(Yt(a.X.pe,b.Yg),b.eh)};
var u1=function(a,b){var c=HA();return"auto"!=c?Wt("auto",c,!1):v1(a,b)};
var v1=function(a,b){if(yG(a.X)&&dw(a.X.F,Zv))return Zt;var c;c=!!b.B.o;var d;AG(a.X)&&(d=window.screen&&window.screen.width?new re(window.screen.width,window.screen.height):null);d||(d=a.X.ad?a.X.ad.clone():a.o.Ma());(wG||FM||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.B.videoInfos;if(d.length){var f=.85;2==d[0].video.projectionType&&(f*=.5);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=Wt("auto",e.quality,!1)}else e=Zt;c=e.o;rt()&&(c=Math.max(c,
qr.hd1080));if(d=(mt("armv7")||mt("android"))&&!yG(a.X))d=b.B.videoInfos[0],d="9"==d.B||"("==d.B;d&&(c=Math.min(c,qr.large));c=Math.max(c,qr.medium);e.o!=c&&(e=new Vt(e.A,c,e.B));return e};
var Mea=function(a){this.C=this.o=window.NaN;this.A=this.B=!1;this.D=!!a};
var w1=function(a,b){a.o=b;a.B=!0};
var my=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};
var x1=function(){Rj.call(this);this.A=null};
var y1=function(a,b){var c="";b&&(z1(a,b),c=vv(b));a.o.src&&""==c||(c&&a.o.src!=c&&(a.o.src=c),b&&b.o||a.load())};
var A1=function(a){a.o.ended&&B1(a,0);if(!a.o.src&&a.A){var b=vv(a.A);a.o.src=b;a.A.o||a.load()}a.play();C1&&7<=Kw&&Ql(a,"playing",A(function(){Ai(A(this.C,this,this.getCurrentTime(),0),500)},a))};
var z1=function(a,b){a.A&&a.A.equals(b)||(a.A&&a.A.dispose(),a.A=b)};
var ky=function(a){return by(D1(a),a.getCurrentTime())};
var B1=function(a,b){0<a.o.readyState&&(C1&&4>Kw&&(b=Math.max(.1,b)),a.o.currentTime=b)};
var E1=function(a){a.o.src&&(Sv&&0<a.getCurrentTime()&&B1(a,0),a.o.removeAttribute("src"),a.load(),a.A&&a.A.o&&z1(a,null))};
var F1=function(a){var b=D1(a);return 0<ay(b)&&a.o.duration?$x(b,a.getCurrentTime()):0};
var G1=function(a,b,c,d){a.B[b]||(a.o.addEventListener(b,A(a.CE,a)),a.B[b]=!0);return a.subscribe(b,c,d)};
var Nea=function(a,b,c){this.target=a;this.type=b;this.o=c||null};
var H1=function(a){x1.call(this);this.o=a;this.B={}};
var D1=function(a){return a.o.buffered||Xx()};
var Oea=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};
var I1=function(){this.endTime=this.startTime=-1;this.bk="-";this.playbackRate=1;this.visibilityState=0;this.Zj=""};
var Pea=function(a,b,c,d,e,f,k,l,m){this.o=a;this.A=b;this.D=c;this.F=d;this.B=e;this.G=f;this.K=k;this.J=l;this.H=m||function(){};
this.C=-1};
var SA=function(a){var b=$s();0>a.C&&(a.C=b);return Math.round(b-a.C)/1E3};
var UA=function(a){var b=a.D();a=a.o;var c={};a.A&&(c.fmt=a.A.id,a.F&&a.F.id!=a.A.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.Kh&&(c.infringe=1);a.Zf&&(c.splay=1);a.Fa&&(c.live=a.Dd?"dvr":"live");a.zf&&(c.autoplay=1);a.oe&&(c.sdetail=a.oe);a.V&&(c.partnerid=a.V);a.osid&&(c.osid=a.osid);qa(b,c);return b};
var xA=function(a){var b=new I1;b.bk=a.D().cc||"-";var c=a.A;b.playbackRate=c.qc&&c.qc.playbackRate||1;c=dH(a.A);0!=c&&(b.visibilityState=c);a=a.J();a.Hb&&a.Hb.id&&"und"!=a.Hb.id&&(b.Zj=a.Hb.id);return b};
var J1=function(a,b){this.A=this.B=0;this.X=a;this.D=b;this.o=window.NaN};
var K1=function(a,b){this.state=a;this.o=b};
var aB=function(a,b){return T(a.state,b)&&!T(a.o,b)?1:!T(a.state,b)&&T(a.o,b)?-1:0};
var L1=function(a,b,c,d,e){Rj.call(this);this.Ea=new Mea(a.experiments.ma("html5_always_underrun_on_empty_buffer"));this.H=c;this.Oa=d;this.F=new Uz(A(this.getCurrentTime,this),A(this.cD,this),A(this.getPlayerState,this),A(this.jb,this),e);H(this,this.F);this.ga=window.NaN;this.M=this.G=null;this.X=a;this.la=new Lea(a,this.Oa);this.K=!1;this.J=this.D=null;this.Z=[];this.da=new V_;this.U=new V_;this.nb=this.Ia=!1;this.La=window.NaN;this.C=new gy;this.na=[];this.O=b;this.ea=this.ha=null;this.L=window.NaN;
this.ia=[];this.o=new Aw;this.A=this.aa=null;this.va=window.NaN;this.B=null;this.ab=this.gb=!1;this.qa=0;this.Ua=this.Va=this.$a=this.Ca=!1;this.V=this.Y=null;this.qb=a.experiments.ma("html5_latch_for_seeking_on_event")};
var M1=function(a){Fu()?Hu(a.qa):Di(a.qa)};
var N1=function(a){if(a.B){var b=a.B;if(!b.isDisposed()&&b.C){b.F="paused";var c=WA(b);c.U=!0;c.send();c=b.B;"PL"==c.A&&(c.A="N");var d=SA(c.o);JA(c,d,"vps",[c.A]);c.Vg(d);Di(b.D);b.dispose()}Mb(a.B);a.B=null}};
var O1=function(a){return a.A?a.A.ka():null};
var P1=function(a){if(cx(a.o))return!0;pJ(a,"api.invalidparam");return!1};
var Q1=function(a,b){a.Ia=!!b;P1(a)&&!a.da.A&&(a.da.start(),a.B&&a.B.Qf(),a.Mn())};
var R1=function(a){a.A&&y1(a.A);Q1(a);P1(a)&&!T(a.C,128)&&(a.U.A||(a.U.start(),S1(a,ny(a.C,8)),ex(a.o)||S1(a,ny(a.C,1))),T1(a))};
var T1=function(a){a.isDisposed();if(!a.U.o&&a.da.o&&!T(a.C,128)&&!a.Z.length&&(a.F.G||a.F.Qf(),!CH(a))){if(a.D){var b=a.D;a.nb=!!b.O&&!!b.U}a.U.o=!0;a.o.Fa&&(U1(a,window.Infinity,!0),V1(a,!0),a.X.experiments.ma("html5_live_background_seek_to_head")&&3==dH(a.X)&&(a.ab=!0));a.B&&(b=a.B,b.o.o.enableCardio&&b.o.o.enableCardioBeforePlayback&&(b.Yi("connected"),cB(b)));a.P("playbackready",a)}};
var W1=function(a,b,c,d){a.o.A=c;a.o.F=d||c;if(a.B){var e=a.o,f=v1(a.la,e),e=eb(e.B.videoInfos,A(f.C,f)),e=new t1(c,b,e?e.id:"");d&&"i"==b&&X1(a,b,d);d=a.B.B;c=SA(d.o);JA(d,c,"vfs",[e.o.id,e.A,d.Y,e.reason]);d.Y=e.o.id;e=d.o.K();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],f=window.devicePixelRatio||1,1<f&&e.push(f),JA(d,c,"view",e));JA(d,c,"vps",[d.A]);d.Vg(c)}a.P("internalvideoformatchange",a.o,"m"==b)};
var X1=function(a,b,c){a.o.F=c;if(a.B){var d=a.B.B;c=new t1(c,b,"");var e=SA(d.o);c.o.id!=d.K&&(JA(d,e,"afs",[c.o.id,d.K,c.reason]),d.K=c.o.id)}"i"!=b&&a.P("internalaudioformatchange",a.o,"m"==b)};
var pJ=function(a,b,c,d){var e,f;Ub(Qea,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||P(e),messageKey:e};S1(a,ly(a.C,128,b));M1(a);Y1(a);Z1(a)};
var CH=function(a){return!!a.Z.length||0<Qz(a.F.o,-0x8000000000000).length};
var $1=function(a,b){var c=new H1(b);a.A&&a2(a);a.A=c;Rea(a);a.X.experiments.ma("html5_crossorigin_video")&&a.A.o.setAttribute("crossorigin","anonymous")};
var a2=function(a){a.J=null;a.D&&(S0(a.D),a.D.K=!0);a.A&&(a.B&&a.da.A&&T(a.C,64)&&!a.o.Ae&&b2(a),c2(a),F(a.ia,a.A.Mb,a.A),a.ia=[],E1(a.A),a.A=null)};
var d2=function(a){if(!T(a.C,128)&&(R1(a),T(a.C,64)&&S1(a,ny(a.C,8)),a.U.o&&a.A))if(a.o.B){if(a.o.Fa){var b=a.getCurrentTime()<bx(a.o),c=gx(a.o)&&T(a.C,4);(b||c)&&U1(a,window.Infinity,!0);e2(a)?V1(a,!0):a.K&&U1(a,window.Infinity,!0)}if(a.o.B.o)b=f2(a),a.D.resume();else{Y1(a);var b=a.o.Hf.A(),c=a.o,d={};c.Z&&(d.ptk=c.Z,d.oid=c.bd,d.ptchn=c.ad,d.pltype=c.zd);qa(b.A,d);c=a.X.A;qa(b.A,{c:c.c,cver:c.cver})}(c=a.A.A)&&c.equals(b)?A1(a.A):Sea(a,b)}else pJ(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")};
var jH=function(a){c2(a);Y1(a);f2(a)};
var g2=function(a){if(a.o.B){var b=h2(a)||Zt;a=$d(a.o.B.videoInfos,A(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};
var i2=function(a){return Yt(Yt(sH(a.la,a.o),u1(a.la,a.o)),h2(a))};
var h2=function(a){return a.o.pk?Zt:a.G?a.G.C:Sw(a.o)&&a.o.B.o&&at(a.o.o)?p1:Zt};
var j2=function(a,b,c){if(!a.isDisposed()&&!T(a.C,128)&&(c&&(a.o.eh=c),Sw(a.o))){"m"==b&&c&&Xt(c)&&(b="a");var d=i2(a);if(a.o.B.o)"i"!=b&&P0(a.D,d,b,!1);else{c=a.o;a:{var e=a.o.O;if(d.o){for(var f=0;f<e.length;f++){var k=e[f].hc,l=qr[k.video.quality];if((!d.B||"auto"!=k.video.quality)&&l<=d.o){d=e[f];break a}}d=e[e.length-1]}else d=e[0]}c.Hf=d;W1(a,b,a.o.Hf.hc)}a.jb()&&d2(a)}};
var k2=function(a){jt(a.o.o,{c:a.X.A.c,cver:a.X.A.cver});var b=a.X,c=a.o,d=new xI;if(qt()||b.experiments.Z)d.V=!0;qt()&&(d.S=-1);nt()&&(d.B=240);tc&&(d.L=41943040);if(yG(b)||!Jv()){var e=b.experiments;d.C=8388608;d.D=524288;d.K=2097152;d.F=1048576;d.la=1.5;d.ha=15;d.J=!Jv();d.Da=!1;pt()&&!e.V&&(d.H=625E3);ot()&&(d.H=75E4)}rt()&&(d.C=20971520,d.D=1572864,d.H=812500,d.G=1E3);b.experiments.M&&(d.H=window.NaN);d.Ea=b.K;e=c.ql;c.Af&&e--;!c.isLowLatencyLiveStream&&b.experiments.ma("html5_live_disable_dg_pacing")&&
e++;d.liveChunkReadahead=Math.max(0,e);d.ia=nt()&&ix(c);var e=b.experiments.Ac("dash_html5_refresh_mapping_interval"),f=b.experiments.Ac("dash_html5_refresh_mapping_min_buffer");e&&(d.O=e);f&&(d.ga=f);if(e=b.experiments.Ac("html5_deadzone_multiplier"))d.o*=e,d.A*=e;if(e=b.experiments.Ac("html5_request_sizing_multiplier"))d.na=e;b.experiments.ma("html5_use_average_bitrate")&&(d.U=!0,d.o*=1.3,d.A*=1.3);b.experiments.ma("html5_use_average_bitrate_if_healthy")&&(d.qa=!0,d.o*=1.3,d.A*=1.3);c.Fa&&b.experiments.ma("html5_live_lower_max_health_buffer_for_downgrade")&&
(d.aa=3);b.experiments.ma("html5_strip_emsg")&&(d.Qa=!0);a.D=new J0(a.ha,d,a.o.o,a.o.B);a.D.subscribe("initsegment",a.Ez,a);a.D.subscribe("videoformatchange",a.Oz,a);a.D.subscribe("audioformatchange",a.Nz,a);a.D.subscribe("error",a.tj,a);a.D.subscribe("seekrequired",a.YB,a);b=E(a.Z,"spacecast")||a.Ia;c=a.Em();c=c.Hb.isDefault?void 0:c;a.D.initialize(a.o.startSeconds,i2(a),b,c);a.o.probeUrl&&(a.D.V=a.o.probeUrl);if(a.Z.length||a.Ia)a.D.K=!0;a.Ia&&b2(a);a.X.experiments.Ac("html5_dropped_frames_abr")&&
(a.V=new J1(a.X,A(a.Wx,a)),a=a.V,a.o||(a.o=Ci(A(a.C,a),5E3)))};
var b2=function(a){var b=new K1(new gy(4),a.C);$A(a.B,b)};
var Y1=function(a){a.D&&(a.D.dispose(),a.D=null);a.J&&(a.J.dispose(),a.J=null);if(a.V&&a.V){var b=a.V;Ei(b.o);b.o=window.NaN;a.V=null}};
var f2=function(a){a.J||(a.D?a.D.seek(a.getCurrentTime()):k2(a),a.J=new Cv(a.A.ka(),a.o.lengthSeconds,a.o.B.videoInfos[0].mimeType,a.o.B.o[0].mimeType,a.X.K),Dv(a.J,A(a.D.bv,a.D)),Ev(a.J,A(function(){pJ(this,"fmt.unplayable",void 0,"msi.1")},a)));
try{return Fv(a.J)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),pJ(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}};
var Z1=function(a){a.A&&(a.A.pause(),c2(a),a.X.experiments.ma("dash_html5_release_loader")?Y1(a):a.J&&(a.J.dispose(),a.J=null),a.o&&(a.o.startSeconds=a.getCurrentTime()),a.L=window.NaN,E1(a.A),T(a.C,128)||S1(a,ly(a.C)))};
var U1=function(a,b,c,d){if(a.A&&a.U.o){b=ke(b||0,bx(a.o),l2(a,!1));var e=a.o.Fa&&!T(a.C,4)&&e2(a,b);V1(a,e);a.o.startSeconds=b;a.L=b;w1(a.Ea,b);c?a.rr():(T(a.C,32)||(S1(a,ny(a.C,32)),T(a.C,8)&&a.pauseVideo(!0),a.P("beginseeking",a)),d&&(a.ea||(a.ea=new Ud(a.rr,d,a)),a.ea.start()),m2(a,!0));a.M&&b>a.o.ff&&(a.F.jh(a.M),a.M=null);b<a.$f()&&S1(a,oy(a.C,2));a.P("seekto",a,b)}else a.o.startSeconds=b||0};
var Tea=function(a){if(!a.A)return 0;if(gx(a.o))return 1;if(hx(a.o)){if(a.K)return 1;var b=a.A,c=D1(b),b=(0<ay(c)&&b.o.duration?c.end(c.length-1):0)-bx(a.o);a=l2(a,!0)-bx(a.o);return Math.max(0,Math.min(1,b/a))}a=a.A;b=a.o.duration;return window.Infinity==b?1:b?F1(a)/b:0};
var n2=function(a,b){var c={};if(b){a.B?qa(c,OA(TA(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:Yx(d.o.played||Xx()),vbu:Yx(D1(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};qa(c,d)}if(a.D){d=a.D;var e={lct:d.D.toFixed(3),lsk:d.M,lmf:d.F.o.isLocked(),lbw:PJ(d.J).toFixed(3),lhd:NJ(d.J).toFixed(3),ltd:(1E9*
OJ(d.J)).toFixed(3),laa:d.A.C?$r(d.A.C):"",lva:d.B.C?$r(d.B.C):"",lar:d.A.A?$r(d.A.A):"",lvr:d.B.A?$r(d.B.A):"",lvh:d1(d)};d.o&&!Hv(d.o)&&(e.lab=Yx(d.o.o.buffered),e.lvb=Yx(d.o.A.buffered));qa(c,e)}c.state=a.C.A.toString(16);T(a.C,128)&&(c.debug_error=a.C.o);CH(a)&&(c.preroll="1");a.o.kh&&(c.ismb=a.o.kh);a.o.isLowLatencyLiveStream&&(c.lowlatency="1");a.o.Fa&&a.o.o&&(0,window.isFinite)(a.o.o.A)&&(c.mpdrefresh=a.o.o.A/1E3)}c.debug_videoId=a.o.videoId;return c};
var o2=function(a,b){a.P("internalvideodatachange",b||"dataupdated",a,a.o)};
var Rea=function(a){F("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.ia.push(G1(this.A,a,this.eD,this))},a);
a.X.ac&&(a.ia.push(G1(a.A,"webkitplaybacktargetavailabilitychanged",a.iy,a)),a.ia.push(G1(a.A,"webkitcurrentplaybacktargetiswirelesschanged",a.jy,a)))};
var p2=function(a){var b=a.getCurrentTime(),c=a.o;!cv("pbs",a.H.o)&&jv.measure&&jv.getEntriesByName&&(jv.getEntriesByName("mark_navigation_requested")[0]?jv.measure("measure_above_the_fold","mark_navigation_requested"):jv.measure("measure_above_the_fold"));c.videoId&&a.H.info("docid",c.videoId);c.eventId&&a.H.info("ei",c.eventId);c.clientPlaybackNonce&&a.H.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.H.info("start",c.startSeconds.toString());a.A&&a.A.o.paused&&a.H.info("paused",1);c.A?a.H.info("fmt",
c.A.id):a.H.info("fmt","-1");c.Va&&a.H.info("yt_pre",a.nb?"2":"1");a.X.Ng&&a.H.info("yt_fs","1");a.H.info("cmt",b.toFixed(3));if(a.D){b=a.D;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.U),c.length&&(c=c[0],M0(b,"vri",c.fetchStart),M0(b,"vdns",c.domainLookupEnd),M0(b,"vreq",c.requestStart),M0(b,"fvb",c.responseStart),M0(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.O),c.length&&(c=c[0],M0(b,"ari",c.fetchStart),M0(b,"adns",
c.domainLookupEnd),M0(b,"areq",c.requestStart),M0(b,"avb",c.responseStart),M0(b,"arc",c.responseEnd)));var b=b.ia,d;for(d in b)a.H.A(d,b[d])}};
var Uea=function(a){if(a.ga&&a.A){var b=a.A.o.seekable||Xx();b.length&&b.end(0)>a.ga&&(a.A.o.currentTime=a.ga,a.ga=window.NaN,a.Ga=G1(a.A,"canplay",a.jz,a),a.ia.push(a.Ga))}};
var m2=function(a,b){if(a.A&&a.o){var c=a.getCurrentTime();if(c<bx(a.o))U1(a,l2(a,!1),!0);else{if(a.K){var d=l2(a,!1);if(c<d-L1.A){if(a.o.Af||gx(a.o)&&a.X.experiments.ma("html5_live_only_stick_to_head")){U1(a,d,!0);return}a.o.Fa&&V1(a,!1)}}if(a.D&&(d=a.D,d.o)){d.resume();if(d.M&&!Hv(d.o)){var e=d.D<=c&&c<d.D+10,f=0<=Zx(d.o.A.buffered,d.D+J0.o);e&&f&&(d.M=!1)}d.M||(d.D=c);Y0(d)}5<c&&(a.o.startSeconds=c);(d=Fu())?Hu(a.qa):Di(a.qa);!ry(a.C)&&a.A.o.paused||T(a.C,128)||(e=A(a.yw,a),a.qa=0==(a.A.o.played||
Xx()).length?d?Gu(e,100):Ai(e,100):d?Gu(e,500):Ai(e,500));a.o.qj=c;!b&&a.jb()&&a.B&&(c=a.B,c.A.update(),ex(c.o.o)&&c.o.o.Se&&!c.M&&zA(c.A)>=c.o.o.Se&&(c.C&&c.o.o.Se&&(d=TA(c,"delayplay"),d.Ca=!0,d.send(),c.M=!0),XA(c)),d=c.V,d.C||!d.o.tb||d.o.ke||!d.A.lengthSeconds?d=!1:(e=Math.min(.8*d.A.lengthSeconds,180),d=zA(d.D)>=e),d&&c.V.send());a.P("progresssync",a,b)}}};
var S1=function(a,b){var c=a.C;if(b.A!=c.A||b.o!=c.o){c=new K1(b,a.C);a.C=b;var d=!a.na.length;a.na.push(c);0>aB(c,8)&&(Di(a.va),V1(a,!1));0<aB(c,32)&&V1(a,!1);if(T(c.state,2)&&hx(a.o)){var e=a.getCurrentTime();a.o.lengthSeconds!=e&&(a.o.lengthSeconds=e,o2(a));m2(a,!0)}0<aB(c,2)&&a.Nl();a.B&&$A(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.G&&!f.J)if(f.C.stop(),T(e.state,2)){f.F=null;for(var e=[],k=0;k<f.A.length;k++){var l=f.A[k];l.active&&0x8000000000000>l.end&&e.push(l)}var m=
Qz(f.o,0x7ffffffffffff),m=m.concat(Rz(f.o,0x7ffffffffffff)),p=Wz(f,e).concat(Vz(f,m));f.D=!0;Xz(f,p);f.D=!1;f.H&&f.Kc()}else T(e.state,16)?(f.B=Yz(f),f.K.start(),f.Kc()):(f.K.stop(),T(e.o,16)?(f.B=Yz(f),e=f,null!=Tz(e.o,Math.max(e.B-2E3,0))&&e.C.start()):f.Kc());a.P("statechange",c)}}finally{a.na.length=0}}};
var q2=function(a){T(a.C,2)||T(a.C,32)||(a.L=window.NaN)};
var V1=function(a,b){a.o.Fa&&a.K!=b&&(a.K=b,a.P("liveviewshift",b))};
var Sea=function(a,b){Vea(a,b);a.X.Ze?Ai(A(function(){A1(this.A)},a),0):A1(a.A)};
var Vea=function(a,b){a.H.A("vta");y1(a.A,b);if(Zw(a.o)&&Zw(a.o)&&!a.G&&a.A){var c=a.o.A.mimeType,d=a.o.J;if(d){var e=a.A.ka();a.G=new o1(e,d);a.G.subscribe("newsession",a.Zz,a);a.G.subscribe("licenseerror",a.Gz,a);a.G.subscribe("qualitychange",a.Hz,a);a.G.subscribe("heartbeatparams",a.dD,a);var e=a.G,f=a.o.oauthToken;e.H=f;e.P("oauthtoken",f);H(a,a.G);a.A.canPlayType(c,d.o)}else pJ(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}a.J&&Ku();Di(a.va);a.o.Ae||(a.va=Ai(A(a.Lz,a),15E3))};
var c2=function(a){a.G&&(a.G.dispose(),a.G=null)};
var l2=function(a,b){if(!a.A)return 0;if(!a.o.Fa){var c=a.o;return c.o&&!(0,window.isNaN)(ht(c.o))?ht(c.o):c.lengthSeconds}if(b&&(a.K||gx(a.o)))return a.getCurrentTime();if(a.D)return c=b1(a.D),Math.max(Math.max(c,bx(a.o)),a.getCurrentTime())||0;c=a.A.o.seekable||Xx();return(1>c.length?window.NaN:c.end(c.length-1))||0};
var e2=function(a,b){void 0==b&&(b=a.getCurrentTime());return b>=l2(a,!1)-L1.o};
var r2=function(a,b){this.o=a;this.A=fa(b)?b:null;if(E(s2,this.o)){if(!fa(this.A)||0>this.A)throw Error("Must have valid offset");}else if(null!==this.A)throw Error("Must not have offset");};
var t2=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}};
var Wea=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};
var u2=function(a,b){return"9t_D9IIh_ZI"==b.Qa||v2(a,["9418752","9418753"])};
var w2=function(a,b){return E(a.experiments.experimentIds,b)};
var v2=function(a,b){return Ih(b,pa(E,a.experiments.experimentIds))};
var x2=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
var y2=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=La(c||"",50),b.error_message=d)}};
var z2=function(a,b){if(a){var c=bU(a).reverse();b.ad_id=rb(c,aU(a)).join(",");c=dU(a).reverse();b.ad_sys=rb(c,UT(a)).join(",");c=eU(a);null!=c&&(b.aqi=c)}};
var A2=function(a,b){if(a[b])return x2(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return x2(a[d]);return!1};
var B2=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};
var C2=function(a,b,c){var d=new nL;d.baseYouTubeUrl=b.baseYtUrl;d.contentId=c.videoId;d.useShareButton=!0;d.useStyledNonLinearAds=!0;d.useVideoAdUi=a.U;d.showContentThumbnail=a.showContentThumbnail;d.Ff={};c.ea&&(d.Ff.ctrl=c.ea);c.ga&&(d.Ff.ytr=c.ga);c.ha&&(d.Ff.ytrcc=c.ha);c.isMdxPlayback&&(d.Ff.mdx="1");a.Da?(d.Wj=!0,d.Ev=!0,d.showContentThumbnail=!1,d.jm=!0,d.km=!0,d.useShareButton=!1):a.C&&(d.Wj=!0);return d};
var D2=function(a){var b=new IW;b.F=a.A.Ga;var c=a.app.F.Ma();b.qf=c.width;b.pf=c.height;b.Fc=c.width;b.Ec=100;b.Rn=NG(a.W());b.G=a.W().experiments.experimentIds;b.Sc=A(a.W().experiments.ma,a.W().experiments);b.ki=A(a.W().experiments.Ac,a.W().experiments);b.Ck=A(a.W().experiments.J,a.W().experiments);b.Rn?(a.W(),c=NA()):c=-1;c&&(b.H=c);a.A.tagForChildDirected&&(b.ri=!0);if(w2(a.W(),"9415521")||a.A.tb)b.si=!0;c=E2(a);b.wb={CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:Xea(a),VIS:Yea(a)};NG(a.W())||
(b.wb.LACT="-1");b.afcRmFallback=a.A.J;w2(a.W(),"9417581")&&(b.D="yt_"+E2(a).videoId);return b};
var Xea=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;a.W();return NA().toString()}}};
var Yea=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:dH(a.W()).toString()}}};
var F2=function(a,b,c,d){this.A=this.B="";this.C=a;this.F=b;this.o=c;this.D=d};
var G2=function(a){var b={};b.l_ns=a.F;b.l_state=a.D;b.break_type=a.C.o;b.sst=t2(a.C);b.sidx=0;a.B&&(b.at=a.B);a.A&&(b.ad_id=a.A);return b};
var H2=function(){var a=t("yt.www.watch.ads.loadAfc");ha(a)?a():I2=!0};
var J2=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"};
var K2=function(){var a=t("window.google_show_companion_ad"),b;b=t("yt.www.watch.ads.getGlobals");ha(a)&&ha(b)?(b=b(),b=Boolean(b&&b.length)):b=!1;b?a():L2=!0};
var M2=function(){var a=t("yt.www.watch.ads.setCompanion");a&&a()};
var Zea=function(a){var b=t("yt.www.watch.ads.showForcedMpu");b&&b(a)};
var N2=function(a,b,c,d){Rj.call(this);this.D=!!b;this.G=a;this.A=c||a;this.J=!!d;this.o=new zv(this);this.C=this.H=null;this.F=this.B=!1;b&&(wc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));O2(this)};
var O2=function(a){a.C=null;a.H=null;S(a.o,a.A,P2("over"),a.gr);S(a.o,a.A,"touchstart",a.Am);a.D&&S(a.o,a.A,P2("down"),a.Sx)};
var Q2=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};
var P2=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
var R2=function(a,b){this.A=a;this.o=b};
var S2=function(a){return a.o-a.A};
var T2=function(a,b){return a.A+b*S2(a)};
var U2=function(a,b,c){return S2(a)?ke((b-a.A)/S2(a),0,1):null!=c?c:window.Infinity};
var V2=function(){this.A=this.position=this.C=this.o=this.D=this.B=this.width=window.NaN};
var W2=function(a,b,c,d,e){var f=b.ep/b.rows,k=Math.min(c/(b.gp/b.Fb),d/f),l=b.gp*k,m=b.ep*k,l=Math.floor(l/b.Fb)*b.Fb,m=Math.floor(m/b.rows)*b.rows,p=l/b.Fb,u=m/b.rows,v=-b.vv*p,z=-b.row*u;e&&45>=f&&(u-=1/k);a=a.style;a.width=p+"px";a.height=u+"px";e||(d=(d-u)/2,c=(c-p)/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+") "+v+"px "+z+"px/"+l+"px "+m+"px";if(e)return new re(p,u)};
var $ea=function(){this.B=!1;this.A=0;this.o=""};
var X2=function(a,b,c,d){Rj.call(this);this.o=a;this.A=d;this.C=null;this.adType=c;this.adSystem=b};
var afa=function(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=w;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0};
var bfa=function(a){this.o=a};
var cfa=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};
var Y2=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}};
var dfa=function(a,b){this.D=null;this.B=window.NaN;this.A=null;this.o=a;this.C=b};
var Z2=function(a,b,c){a.o.P("AD_LOGGING_EVENT",b,c)};
var $2=function(a,b,c){a3(a);var d=b3(a);c&&qa(d,c);d.ad_error=b;Z2(a,7,d)};
var b3=function(a){var b={},c=a.o.C,d=a.o.D.$f(),e=c3(a.o);z2(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=Lg(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.gf():null)&&(b.ad_cpn=e);b.format=a.o.$c();b.at=a.o.kf();b.ad_mt=Math.round(1E3*Math.max(efa(a.o),0));return b};
var a3=function(a){a.D||(a.D="InstreamAdDisplay ("+a.o.$c()+")")};
var d3=function(a,b){G.call(this);this.C=Math.max(0,a);this.B=this.A=0;this.D=b;this.o=window.NaN};
var e3=function(a,b,c,d,e,f){X2.call(this,b,a,2,c);this.L=!1;this.H=this.V=this.M=null;this.o.subscribe("control_toggle_play_pause",this.$r,this);this.o.subscribe("control_play",this.Gl,this);this.o.subscribe("control_pause",this.Fl,this);this.F=new dfa(this,this.o);this.B=new xz(this);this.D=f3(b);this.D.subscribe("statechange",this.Xc,this);this.D.subscribe("internalAbandon",this.hp,this);this.D.subscribe("internalvideodatachange",this.Zr,this);this.G=this.J=!1;this.U=d;this.O=!!e;this.Y=!!f;this.K=
new d3(1E3*e3.o,A(this.Dj,this))};
var g3=function(a,b){var c=a.o.W();if(a.o.A.U&&"3"==c.B){var c=a.o.app.F,d=c.app.W();AG(d);"3"==d.B&&(c.A.controls=b)}};
var h3=function(a){var b=new $ea;b.B=a.G;b.A=I();a.C&&a.C.clientPlaybackNonce&&(b.o=a.C.clientPlaybackNonce);Z1(f3(a.o));i3(a.o,0,b);j3(a.o,0);a.P("adEnd",a);g3(a,!0)};
var k3=function(a,b){a.D.Mf();i3(a.o,0);a.P("adError",b)};
var l3=function(a){return a.C&&a.C.A?a.C.A.mimeType:null};
var c3=function(a){return a.C&&a.C.Hf?vv(a.C.Hf.A()):null};
var efa=function(a){return a.D?a.D.getCurrentTime():0};
var ffa=function(a,b){this.o=a;this.D=b;this.o.$c();this.A=this.C=0;this.B=null};
var m3=function(a,b,c){a.o.P("AD_LOGGING_EVENT",b,c)};
var n3=function(a){var b={};z2(a.o.getCurrentAd(),b);a.C&&a.A&&(b.ot=a.A-a.C);var c;c=a.D.Ja()?2:a.D.app.na?1:0;b.ad_ps=c;b.format=a.o.$c();b.at=a.o.kf();return b};
var o3=function(a,b,c,d){X2.call(this,b,a,1,c);this.B=null;this.G=!1;this.J=null;this.F=new ffa(this,b);this.D=new xz(this);this.H=!!d};
var p3=function(a,b){a.J!=b&&(a.J=b)};
var q3=function(a,b,c,d){G.call(this);this.M=null;this.V=a;this.A=b.Ta;this.H=b;this.K=b.getId();this.o=c;this.F=d;this.B=new F2(this.A,this.hg(),c,d);this.D=null;this.O=new Cm(this);this.C=new Cm(this);this.S=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};
var r3=function(a){var b=new r2(2,q3.A);a.A=b;a.B.C=b};
var s3=function(a,b){a.M=b;var c=b.$c();a.B.B=c};
var t3=function(a,b){var c=t("yt.www.watch.ads.setAdId");c&&c(b);a.B.A=b};
var u3=function(a){a=t2(a.A);return 0==a||-1==a?a:1E3*a};
var v3=function(a){var b=a.o.W();w2(b,"9417098")&&(a=a.B,b=G2(a),b.format="2_3",b.at="2_3",b.trsp="1",w3(a.o,3,b));K2()};
var x3=function(a){var b=a.H,c=a.A;b.o=a.M;b.Ta=c;H(b,b.o);0==b.F&&(a=b.o.kf(),b.B.ga.at=a);b.o instanceof e3?b.A=!0:b.o instanceof y3?b.isVisible=!1:b.o instanceof z3?b.isVisible=!1:b.o instanceof A3&&(b.isVisible=!1);b.C="loaded";B3(b)};
var gfa=function(a){this.o=a};
var y3=function(a){X2.call(this,a,2,3,null);this.B=this.D=0};
var C3=function(a){a.D&&(Ei(a.D),a.B=0)};
var D3=function(a,b,c){q3.call(this,2,a,b,c);this.G=new gfa(this.o.A);J2()};
var E3=function(a,b,c){this.A=this.F="";this.H=null;this.C=!1;this.D=this.B="";a&&(this.F=a,this.C=b.nb,this.G=c,b=this.F,c=b.indexOf(";sz="),a=mj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{kv:b[0],KB:b[1],OB:a})&&(this.B=a.kv,this.D=a.KB,this.H=a.OB)};
var F3=function(a){this.A=a?a:""};
var A3=function(a,b,c,d){o3.call(this,1,a,b,d);this.K=c};
var G3=function(a,b,c){q3.call(this,1,a,b,c);a=this.o.A;this.U=a.ea?new F3(a.adTag):new E3(a.adTag,a,this.K)};
var H3=function(a,b,c,d){G3.call(this,a,b,c|d);this.L=c;this.J=d;this.G=null;J2()};
var I3=function(a,b){var c=b.getCurrentAd(),d=dU(c);d.unshift(UT(c));for(c=0;c<d.length;++c){var e=hfa[d[c].toUpperCase()];if(e){a.G=e;return}}a.G=0};
var J3=function(a,b){this.D=[];this.M=a;this.L=b||null;this.C=this.o=!1;this.B=void 0;this.J=this.S=this.G=!1;this.F=0;this.A=null;this.H=0};
var K3=function(a,b,c){a.o=!0;a.B=c;a.C=!b;L3(a)};
var M3=function(a){if(a.o){if(!a.J)throw new N3;a.J=!1}};
var O3=function(a,b,c){P3(a,b,null,c)};
var P3=function(a,b,c,d){a.D.push([b,c,d]);a.o&&L3(a)};
var Q3=function(a){return Ih(a.D,function(a){return ha(a[1])})};
var L3=function(a){if(a.F&&a.o&&Q3(a)){var b=a.F,c=R3[b];c&&(r.clearTimeout(c.mi),delete R3[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 l=f.call(e||a.L,b);n(l)&&(a.C=a.C&&(l==b||l instanceof Error),a.B=b=l);if(xd(b)||"function"===typeof r.Promise&&b instanceof r.Promise)d=!0,a.G=!0}catch(m){b=m,a.C=!0,Q3(a)||(c=!0)}}a.B=b;d&&(l=A(a.K,a,!0),d=A(a.K,a,!1),b instanceof J3?(P3(b,l,d),b.S=!0):b.then(l,d));c&&(b=
new S3(b),R3[b.mi]=b,a.F=b.mi)};
var N3=function(){sa.call(this)};
var T3=function(){sa.call(this)};
var S3=function(a){this.mi=r.setTimeout(A(this.A,this),0);this.o=a};
var U3=function(a,b){var c=b.A;this.G=c.na;var d=0,c=c.Y.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);q3.call(this,2,a,b,d)};
var V3=function(a,b){X2.call(this,a,14,14,b)};
var W3=function(a,b,c){q3.call(this,14,a,b,c)};
var X3=function(a,b,c){q3.call(this,14,a,b,c)};
var ifa=function(a,b,c,d,e){this.C=a;this.B=b;this.o=c;this.X=this.C.W();this.D=d;this.G=E2(this.C).lengthSeconds;this.F=e;this.A="html5";Y3(this)&&"embedded"==this.X.Aa?this.A="html5_embed":wG||Jw?this.A="html5_ios":mt("android")?this.A="html5_android":ut()?this.A="html5_wp":ot()?this.A="html5_ps3":"leanback"==this.X.Aa?(a=(Xb(window,"environment","brand")||"").toLowerCase(),b=(Xb(window,"environment","model")||"").toLowerCase(),this.A="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):
tt()?this.A="html5_wii":Y3(this)&&(this.A="html5_desktop")};
var Z3=function(a){return $3(a.B)?"preroll":3==a.B.Ta.o?"postroll":"midroll"};
var a4=function(a){return(a=a.C.B)?Ih(a.B,function(a){return b4(a)||3==a.Ta.o}):!1};
var Y3=function(a){return!a4(a)||u2(a.X,a.o)};
var z3=function(a,b){o3.call(this,4,a,b)};
var c4=function(a,b,c){q3.call(this,4,a,b,c);var d=this.o.A;this.G=D(d.Ua);var e=E2(this.o)&&E2(this.o).spacecastModule;this.J=new ifa(b,a,d,c,!!e)};
var d4=function(a,b,c){this.B=a;this.o=b;this.A=c||0};
var jfa=function(a){return 0<((a.o|a.A)&3)};
var e4=function(a,b,c,d,e){Rj.call(this);this.H=!0;this.A=!1;this.isVisible=!0;this.C="unloaded";this.J=!1;this.F=b;this.B=a;this.Ta=c;this.G=d;this.D=this.o=null;this.K=!!e};
var f4=function(a){return $3(a)?g4(a)&&h4(a)?-0x8000000000000:0:fa(a.Ta.A)?1E3*t2(a.Ta):0x8000000000000};
var kfa=function(a){return $3(a)||a.B.o&&1E3*a.B.o.getCurrentTime()>=f4(a)?!1:Gg(a.G,function(a){switch(a.getType()){case 1:case 2:case 3:case 5:return!0;default:return!1}})};
var g4=function(a){return"loaded"==a.C||"error"==a.C};
var $3=function(a){return 1==a.Ta.o};
var h4=function(a){if(!g4(a))throw Error("Preroll status is undefined before ad load.");return $3(a)&&a.A};
var b4=function(a){return 2==a.Ta.o};
var i4=function(a){a.C="loading";$3(a)&&!Ih(a.G,jfa)&&qq(a.B);if(a.K)a.C="loaded",a.A=!0,B3(a);else{var b=a.G.shift();b?($3(a)&&j4(a.B,"nl"),b=b.create(a,a.B),H(a,b),b.load()):(w3(a.B,2,k4(a,{})),l4(a,!1),a.C="error",B3(a))}};
var m4=function(a){a.o&&(a.o.unsubscribe("adEnd",a.mp,a),a.o.unsubscribe("adError",a.Tr,a),a.o.unsubscribe("AD_LOGGING_EVENT",a.Gp,a),a.o.unsubscribe("select",a.Sr,a))};
var B3=function(a){a.P("adBreakComplete",a)};
var l4=function(a,b){a.D&&(a.D.sendImpressionUrls({FILLED_OPPORTUNITY:b?1:0}),a.D.dispose(),a.D=null)};
var k4=function(a,b){b.break_type=a.Ta.o;b.sst=t2(a.Ta);b.sidx=0;return b};
var n4=function(a){var b=0;a.L&&(b|=1);a.K&&(b|=2);var c=0;a.D&&(a.G&&(c=4),b||a.V||(b=c,c=0));a=new wg;a.set(3,b);a.set(4,c);return a};
var o4=function(a,b){var c=[];if(a.da)return c.push("pla"==(a.Y||"").toLowerCase()?new d4(8,16):new d4(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.V&&c.push(new d4(7,16)),c;if(a.M){var d=0;if(a.B||a.F)d|=1;a.S&&(d|=4);a.O&&(d|=8);c.push(new d4(5,d))}d=0;a.H&&(a.B&&(d|=1),a.F&&(d|=2),a.S&&a.D&&(d|=4),a.O&&a.D&&(d|=8));var e=n4(a),f=e.get(3);d&&f&&lfa(a,b)?c.push(new d4(3,d,f)):(d&&c.push(new d4(2,d)),f&&c.push(new d4(1,f)));a.independentBreakOffsets||f&4||!a.V||c.push(new d4(7,16));(d=e.get(4))&&
c.push(new d4(1,d));return c};
var p4=function(a){this.o=a};
var q4=function(a){var b=[];F(mfa(a),function(a,d){var e=this.o,f;f=o4(this.o.A,a.o);e=new e4(e,d,a,f);b.push(e)},a);
return b};
var mfa=function(a){var b=a.o.A,c=[];if(b.M&&!u2(a.o.W(),b))c=r4;else if(b.ia){var d=b.ia.split(",");for(a=0;a<d.length;a++){var e=Ya(d[a]),e=0>e?new r2(3):0<e?new r2(2,e):new r2(1);c.push(e)}}else c=r4;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new r2(5,Ya(b[a])));Bb(c,Wea);return c};
var nfa=function(a,b){this.X=a;this.Da=this.X.isMobile;this.C="leanback"==this.X.Aa;this.o=this.Da||this.C;this.U=!this.C&&!AG(a);this.B=x2(b.instream);this.Ia=1==b.livestream;this.F=x2(b.trueview);this.aa=x2(b.aftv);this.ia=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.ha=b.cafe_experiment_id;this.adTag=b.ad_tag;this.gb=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.La=ofa(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.Ea=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls;this.Oa=b.cid;this.Qa=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.Ga=(0,window.parseInt)(b.forced_skip_offset,10);this.Y=b.force_ad_type;this.na=b.force_ad_url;this.Ua=b.freewheel_ad_tag;this.gender=$b(pfa,function(a){return a==b.ad_gender});
this.la=b.dbp;this.J=x2(b.afc_rm_fallback);this.nb=!!b.mpu;this.G=x2(b.afv)&&!this.o;this.K=this.aa&&this.F;this.L=this.aa&&this.B&&!x2(b.no_afv_instream);this.H=x2(b.dclk);this.ea=x2(b.gpt_migration);this.da=x2(b.forced_ad)&&!this.o;this.M=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.qb=!!b.fqsf;this.S=x2(b.invideo)&&!this.o;this.O=x2(b.mpu)&&!this.o;E(this.La,"yt_mabv");this.V=!!b.pla;this.Va=x2(b.shortform);this.D=x2(b.sffb);this.va=b.ad_language_iso639_2;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.$a=b.pla_ad_tag;"boolean"==typeof b.show_content_thumbnail&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=x2(b.tag_for_child_directed);this.serverPrefetchedVast=
b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.Z=this.aa&&this.D&&!this.G;this.qa=this.G||this.Z;this.ab=(0,window.parseInt)(b.ad_device,10);this.Ca=b.tpas_video_id;this.ga=b.tpas_partner_id;this.vmap=b.vmap;this.Ab=this.X.Ab;this.tb=b.post_ad_requests;this.showContentThumbnail=!0};
var lfa=function(a,b){if(C(D(a.dynamicAllocationAdTag)))return!1;var c=(a.B||a.F)&&a.H;a.D&&a.H&&(c=c||a.S||a.O);if(!c)return!1;c=a.K||a.L;if(!(c||a.D&&a.G))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.ea?25:102);window.document.referrer&&(d+=va("ref="+va(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength};
var ofa=function(a){if(C(D(a)))return[];a=(new N(a)).o.get("channel");return null!=a?a.split("+"):[]};
var qfa=function(a){this.A=E2(a);this.o=a.W()};
var s4=function(a,b,c){var d=t4,d=null!=d?d:t4;if(v2(a.o,d)){var e=a.o.baseYtUrl+"player_204";c=c||{};c.event="cdp";c["var"]=b;c.sdkv="h.3.0.0";c.cpn=a.A.clientPlaybackNonce;c.exp=$d(d,hd(pa(w2,a.o),pa(E,t4))).join(",");a=rj(e,c);aq(a)}};
var u4=function(a,b){G.call(this);this.o=a;this.K=b;this.G=a.o.getVideoData();this.B=[];this.D=this.F=this.H=this.C=this.A=0;this.J=!1;var c=a.W().experiments;this.L=c.ma("enable_dynamic_ad_break")&&!!this.G.lengthSeconds&&600<this.G.lengthSeconds;this.M=c.Ac("dynamic_ad_break_pause_threshold_sec")||5;this.O=c.Ac("dynamic_ad_break_seek_threshold_sec")||120;this.L&&this.o.app.subscribe("applicationplayerstatechange",this.Xc,this)};
var v4=function(a){return(a.o.C?a.J:!!a.o.B&&0==a.o.B.B.length)&&1==a.o.getPresentingPlayerType()};
var w4=function(a){a.C&&Di(a.C);a.C=0;a.A=0};
var x4=function(a,b){var c=null!=qj(a.o.W().G).debugjs,d=a.G.videoId,e=a.G.eventId,f=a.A,k;k=a.B.length?a.B[a.B.length-1]:Math.max(a.K.A(),a.F);k=I()/1E3-k-a.D;c=rj("/gen_204?"+Sg({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:f,cwt:k,dt:I()/1E3,dab:a.B,paet:Math.max(a.K.A(),a.F),debug:c}),{});aq(c)};
var y4=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.Rq()};
var z4=function(a,b){a.D[b]&&(EH(a.o.o,[a.D[b]],void 0),delete a.D[b])};
var A4=function(a,b,c,d){0>=c||((0,window.isNaN)(a.A)||Di(a.A),c=I()+c,a.A=0==d?Eq(A(a.ds,a,b,c,100),0):Eq(A(a.cs,a,b,c,100),0))};
var B4=function(a,b,c){var d=a.o.W();a=E2(a.o);b.volume=c*(d.useMediaVolume?Aw.o:a.Jh)};
var C4=function(a){y4.call(this,a)};
var D4=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};
var 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;this.yn()};
var F4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.K};
var rfa=function(a){a=a.getAttribute("breakType");return!!a&&Ih(a.split(","),function(a){a=Ta(a);return"linear"==a})};
var sfa=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};
var tfa=function(a,b){var c=Math.max(Math.abs(a.C),Math.abs(a.G));F(b,A(function(a){var e=Ih(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=ufa(this,a);
if(e||!f)return!1;this.B[f]=a},a));
return 0<Sb(a.B)};
var ufa=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};
var G4=function(a,b,c,d){0>=c||(a.A&&Di(a.A),c=I()+c,a.A=0==d?Eq(A(a.ms,a,b,c,100),0):Eq(A(a.ls,a,b,c,100),0))};
var H4=function(a,b,c){var d=a.o.W();a=E2(a.o);b.volume=c*(d.useMediaVolume?Aw.o:a.Jh)};
var I4=function(a){E4.call(this,a)};
var J4=function(a,b){var c=a.A,c=c.applyFadeOnMidrolls&&(c.B||c.F);return a.C?c&&!b?new E4(a):new I4(a):c&&!b?new y4(a):new C4(a)};
var K4=function(a,b,c){G.call(this);this.o=a;this.G=b;this.F=c;this.D=this.B=-1;this.F&&0<this.o.A.A&&this.o.subscribe("endseeking",this.C,this)};
var vfa=function(a,b){L4(a);0<b&&(a.D=Ai(A(a.C,a),1E3*b))};
var L4=function(a){-1!=a.D&&(Di(a.D),a.D=-1)};
var M4=function(a,b){if(!a.F||!b4(b)&&3!=b.Ta.o)return!1;var c=a.o.A.A;if(0>=c||0>=a.B)return!1;var d=I()/1E3,e=N4(a,b)-a.o.o.getCurrentTime();0<e&&(d+=e);return d-a.B<=c};
var N4=function(a,b){return 3==b.Ta.o?a.o.o.getVideoData().lengthSeconds:t2(b.Ta)};
var O4=function(a,b){G.call(this);this.A=null;this.O=[];this.L=0;this.B=b;this.J=[];this.C={};this.G={};this.o=a;var c=!a.A.Ia&&Ih(this.B,function(a){return b4(a)||3==a.Ta.o});
this.D=new K4(this.o,this,c);this.F=J4(this.o);this.ea=new u4(this.o,this.D);this.Y=Ih(this.B,function(a){return $3(a)})};
var wfa=function(a){a.J.length||(a.J=$d(a.B,function(a){return"unloaded"==a.C}),0==a.J.length?qq(a.o):(a.Y||qq(a.o),P4(a)))};
var P4=function(a){if(a.J.length){var b=a.J.shift();b.subscribe("adBreakComplete",a.Ef,a);i4(b)}};
var xfa=function(a,b){function c(a){return a&&5!=a.Ta.o}
var d=jb(a.B,b),e=vb(a.B,0,d),d=vb(a.B,d+1);return{previous:eb(e,c),next:eb(d,c)}};
var Q4=function(a,b,c){var d=f4(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=t2(b.Ta)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.F.Nq(b,d);c=a.F.Mq(b,c);c=new iq(d,c,e);a.G[b.getId()]=c;a.o.ib([c]);a.F.wn(b)}};
var R4=function(a,b){var c=b.getId();a.G[c]&&(z4(a.F,c),EH(a.o.o,[a.G[c]],void 0),delete a.G[c])};
var S4=function(a,b){if(n(b)){var c=a.Ej(b);if(c)if(a.A==c&&!c.A&&c.isVisible)c.show();else{if(a.A){if(5==c.Ta.o){a.A.A?a.O.push(b):c.show();return}a.ze(a.A)}if(M4(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()&&(w2(a.o.W(),"9412857")||w2(a.o.W(),"9412859"))&&a.yq();else{5!=c.Ta.o&&(a.A=c);c.subscribe("adBreakComplete",a.xl,a);if(c.A&&(T4(a.o),null!=a.o.D)){var d=a.D.A(),d=0<d?Math.floor(I()/1E3-d):0;s4(a.o.D,"show_instream_ads",{tfla:d})}a.F.es(c);c.show()}}}};
var U4=function(a,b,c){O4.call(this,a,b);this.K=[];this.M=[];this.H=[];this.U=c;this.S=0;this.V=a.A.A;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],kfa(c)){var d=new e4(c.B,c.F,c.Ta,c.G,!0);b[a]=d;this.K.push(c)}this.Y||this.Gf()};
var V4=function(a){W4(a);a.S=Ai(A(a.Gf,a),1E3*(a.V-10))};
var W4=function(a){a.S&&Di(a.S);a.S=0};
var X4=function(a,b){O4.call(this,a,b);this.V=a;this.U=!0;this.K=[];this.ga=1;this.da=null;this.M=0};
var Y4=function(a){if(null==a.A&&0<a.K.length){var b=a.K[0];b.isVisible?(a.U=a.H.K,a.aa=Math.ceil(I()/1E3),b.subscribe("adBreakComplete",a.S,a),a.A=b,b.show()):a.S()}else null!=a.A&&a.M++};
var yfa=function(a,b){this.H=a;this.A=b;this.J=I();this.F=0;this.o=a.A;this.D={};this.G=new bfa(a);var c=[];this.o.M&&this.o.B&&c.push("4_2");this.o.H&&(this.o.B&&c.push("1_2"),this.o.F&&c.push("1_2_1"),this.o.S&&c.push("1_1"),this.o.O&&c.push("1_3"));this.o.K&&c.push("2_2_1");this.o.L&&c.push("2_2");this.o.G&&c.push("2_1");(this.o.qa||this.o.J)&&c.push("2_3");this.o.V&&c.push("14_14");this.C=c.join(",");this.B="";this.D.allowed=this.C;(c=this.o.excludedAds)&&(this.D.ex_ads=c)};
var Z4=function(a,b,c){G.call(this);this.A=a;this.B=b;this.H=c;this.C=this.F=-1;this.o=$4(this.B.Ld());a=this.B.Ld();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)};
var zfa=function(a,b){a5(a);0<b&&(a.C=Ai(A(a.D,a),1E3*b))};
var a5=function(a){-1!=a.C&&(Di(a.C),a.C=-1)};
var $4=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 iq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new iq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};
var c5=function(a){0<a.A.A.A&&(a.F=I()/1E3,a.D())};
var d5=function(a){G.call(this);this.J=this.B=this.C=this.G=this.A=null;this.L=this.K=!1;this.o=a;this.H=null;this.S={};this.O=new Cm(this);this.F=new Cm(this);this.M=this.D=null};
var Afa=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=D4(b).toString(),k="midroll");var l={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":f,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return l[a]||a})});
return a};
var Bfa=function(a,b){var c=sz(b),d=c.childNodes[0];if(!d)return b;var e=eb(d.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var f=eb(e.childNodes,function(a){return"Extensions"==a.localName}),k=eb(f?f.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")}),f=f.removeChild(k),l=e,m=1;
F(f?f.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=Afa(e,a,m);m++;d.insertBefore(a,l.nextSibling);l=a});
d.removeChild(e)}f=a.D.nq(d);f||(Mb(a.D),a.D=J4(a.o,!0));return e||f?vz(c):b};
var Cfa=function(a){var b=C2(a.o.A,a.o.W(),E2(a.o));b.Fv=!0;b.Dn=!1;b.lq=10;b.Hl=a.D.bo();return b};
var Dfa=function(a,b){var c=IT(b);if(A2(c,q3.o)&&a.o.A.J)return a.C=new y3(a.o),a.C.show(),!1;if(A2(c,"blockAllAds"))return a.A.sendImpressionUrls(),a.C=new A3(a.o,a.A,1,!0),!1;if(A2(c,"hideMaster"))return a.C=new A3(a.o,a.A,0,!0),!1;a.C=new o3(e5(b),a.o,a.A,!0);a.C.show();a.K=!1;return!0};
var f5=function(a,b){if(b&&"adLoadError"==b.getType()){var c=a.o.A;!c.o&&c.qa&&(a.C=new y3(a.o),a.C.show())}};
var g5=function(a){a.C&&(a.C.dispose(),a.C=null)};
var e5=function(a){var b=dU(a);a=0<b.length?b.pop():UT(a);a=Efa[a.toUpperCase()];return null!=a?a:0};
var h5=function(a){a.L||(qq(a.o),a.L=!0)};
var i5=function(a){F_.call(this,a);this.H=this.sa="ad";this.A=this.B=this.L=null;this.Y=this.Z=!1;this.C=this.O=null;kK.o=!0;kK.C=!1;kK.G=!0;kK.D=0;this.M=null;this.ia={};this.ga={at:"0"};this.K=new Vq(this.o);Uq(this.o,this.K.element,4);this.da=this.F=null;this.U=-1;this.D=null;this.aa=[]};
var E2=function(a){return j5(a.app)};
var w3=function(a,b,c){a=a.L;c=c||{};var d=(I()-a.J)/1E3;c.art=d;d=a.H.W();d.ia&&(c.feature=d.Ia);c.ad_flags=a.o.adFlags;(d=a.o.Oa)&&(c.cid=d);c.mt=a.A.getCurrentTime();(d=NA())&&(c.lact=d);(d=a.A.lh())&&(c.len=d);a.o.qb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.B=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?Y2(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],l=c;switch(a){case "trsp":f.slot_pos=d;break;case "break_type":E(s2,Ya(d))&&(f.m_pos=l.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=cfa(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=Y2(d);
break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=f3(b.o);f=E2(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*t2(c.A.Ta):0):e.mt=Math.round(1E3*k.getCurrentTime());c=b.o.W();e.ei=f.eventId;e.lact=NA();e.vol=Math.round(b.o.app.Wa.Cb());e.vis=dH(c);c=k5(b.o);e.p_w=c.width;e.p_h=c.height;e.rt=I();if(c=(c=O1(k))&&We(c)===window.document?Zf(c):null)e.pv_h=c.getHeight(),e.pv_w=c.getWidth();k=Dg(e);if("undefined"==
typeof k)throw Error("Keys are undefined");c=new gh(null,0,void 0);e=Cg(e);for(f=0;f<k.length;f++)a=k[f],d=e[f],da(d)?oh(c,a,d):uh(c,a,d);b=b.o.W().baseYtUrl+"api/stats/ads";b=new N(b);eh(b,c);aq(b.toString())}};
var l5=function(a,b,c){c=c||{};c.ad_error=b;w3(a,7,c)};
var m5=function(a){if(!a.Z){var b=a.W().baseYtUrl;aq(b+"mac_204?action_fcts=1");a.Z=!0}};
var n5=function(a){return a.B instanceof X4?a.B:null};
var o5=function(a){a=a.K;if(a.A.W().H)a=GE(a.A).A;else{if(!a.C){var b;b=a.A.app;if(b.X.H){var c=Vf(b.B),d=hg(b.B);b.ga=new te(c.x,c.y,d.width,d.height);a2(b.D);fy(b.B,1);Zq(b.B);b=b.B}else b=p5.getTag(void 0,void 0);a.C=b;Yd(a.C,["video-stream","ad-video"])}a=a.C}return a};
var f3=function(a){if(!a.F){var b=ec(a.W().M);b.autoplay="1";b.eventid=E2(a).eventId;b.content_v=E2(a).videoId;b=new rG(b);b.Aa="adunit";var c=o5(a);b.qc=c;a.F=new L1(b,2,new G_(b,""),a.app.F,A(a.app.P,a.app))}return a.F};
var k5=function(a){return a.A.C?(a=a.app.F.Ma(),new te(0,0,a.width,a.height)):jg(a.Ba())};
var q5=function(a,b){j4(a,"bd");var c;c=a.A;var d=c.midrollPrefetchSize;c=c.Ia?new X4(a,b):0<d?new U4(a,b,d):new O4(a,b);a.B=c;wfa(a.B)};
var T4=function(a){a.Y=!0;a.P("command_redirect_controls",a,["play_pause"],void 0);a.C||a.pauseVideo()};
var r5=function(a){Xq(a.K);a.Y=!1;uq(a)};
var j3=function(a,b){switch(b){case 1:a.U=1;a.P("publish_external_event","onAdStart");break;case 0:a.U=0,a.P("publish_external_event","onAdEnd")}};
var i3=function(a,b,c,d){d&&a.P("publish_external_event","onAdInfoChange",d);a.P("publish_external_event","onAdStateChange",b,o5(a),c)};
var j4=function(a,b){var c=b;"nl"==b&&(c=a.L,c.F++,c=c.F.toString());a.ia[c]=I();"bs"!=c&&"fb"!=c||rq(a,a.ia,a.ga)};
var s5=function(a){return Boolean(a.A.D&&a.B&&1<a.B.B.length)};
var t5=function(a,b,c){G.call(this);this.A=a;a.subscribe("onVolumeChange",this.Fp,this);this.K=A(this.Pz,this);a.o.addEventListener("onCaptionsTrackListChanged",this.K);this.D=!1;this.o=c;c.subscribe("proxyStateChange",this.Sp,this);c.subscribe("remotePlayerChange",this.Cl,this);c.subscribe("remoteQueueChange",this.Dl,this);this.M=new gy;this.H=this.G=window.NaN;this.L=0;this.B={};this.F=null;this.J=new Am(this.qC,1E3,this);H(this,this.J);this.S=0;this.C=!1;a=this.A.o.vb("captions","track");ac(a)||
u5(this,a);this.Dl();this.Cl()};
var v5=function(a,b){var c=a.A,d=a.A.o.getVideoData().lengthSeconds;c.L=b||0;FH(c.o,b,d)};
var w5=function(a){a.C||(v5(a,0),x5(a),y5(a,new gy));By(a.A.app.Wa.W())||(a.C=!0)};
var u5=function(a,b){if(z5(a)&&!a.D){if(b){var c={style:a.A.o.vb("captions","displaySettings")};gc(c,b);a.o.Tl(A5(a),c)}else a.o.Tl(A5(a),null);a.B=yo(a.o).B}};
var B5=function(a){a.o.pause();var b=yo(a.o);v5(a,ro(b));x5(a);y5(a,new gy(4))};
var C5=function(a){a.o.play();D5(a);y5(a,new gy(8))};
var E5=function(a,b){var c=a.A.o.$b();c?zo(a.o,A5(a),b,c.o,a.A.o.getVideoData().playlistId):zo(a.o,A5(a),b);y5(a,new gy(1))};
var F5=function(a,b){if(b){var c=a.A.o.vb("captions","tracklist",{Oo:1});c&&c.length?a.A.o.ce("captions","track",b):(a.A.o.wj("captions"),a.D=!0)}else a.A.o.ce("captions","track",{})};
var z5=function(a){return po(yo(a.o))==A5(a)};
var A5=function(a){return a.A.o.getVideoData().videoId};
var D5=function(a){x5(a);if(!a.o.isDisposed()){var b=yo(a.o);b.jb()&&y5(a,new gy(8));v5(a,ro(b));a.G=Ai(A(function(){D5(this)},a),500)}};
var x5=function(a){Di(a.G);a.G=window.NaN};
var G5=function(a){Di(a.H);a.H=window.NaN};
var y5=function(a,b){G5(a);var c=a.M;a.M=b;a.C=!1;var d=a.A;d.O=b;d.app.P("presentingplayerstatechange",new K1(b,c))};
var H5=function(a){F_.call(this,a);this.sa=this.H="remote";this.C={key:Lj(),name:P("YTP_MDX_MY_COMPUTER")};this.B=null;this.F=[];this.K=this.M=this.A=null;this.U=[this.C];this.D=this.C;this.O=new gy;this.L=0};
var I5=function(a,b,c){var d=c||a.C;b.unshift(a.C);a.U=b||[a.C];d=eb(b,function(a){return a.key==d.key});
a.D=d||a.C;a.P("publish_external_event","onMdxReceiversChange")};
var J5=function(a){Q.call(this,["span"]);this.element.innerHTML=a};
var K5=function(a,b){Q.call(this,["span","","{{sparkline_container}}"]);this.D=a;this.C=b;this.A=new J5("");H(this,this.A);Bq(this,"sparkline_container",this.A)};
var L5=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.D+","+a.C*(1-b[e]/c));return'<svg width="'+a.D+'" height="'+a.C+'" viewbox="0 0 '+a.D+" "+a.C+'"><g><polyline stroke="white" fill="none" points="'+d.join(" ")+'"/></g></svg>'};
var M5=function(a){Q.call(this,["div","html5-video-info-panel",["button",["html5-video-info-panel-close","ytp-button"],{title:"close"},"[x]"],["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_seconds_and_class}}"]]],["div","",["div","","Dropped Frames:"],["span","","{{dropped_frames}}"]]]]);R(this,this.ra["html5-video-info-panel-close"],"click",this.fa);this.C=new K5(200,14);H(this,this.C);Bq(this,"bandwidth_sparkline",this.C);this.D=new K5(200,14);H(this,this.D);Bq(this,"live_latency_sparkline",this.D);this.F=new Ud(this.G,500,this);H(this,this.F);this.A=a};
var N5=function(a){var b=["div","html5-video-player",{tabindex:-1,id:a.Y.attrs.id},["div","html5-video-container",{"data-layer":0}]];b.push(["div","html5-video-content",{"data-layer":0}]);Gq.call(this,b);ri(this.element,"version",a.Y.assets.js);this.app=a;this.S=null;this.C=this.ra["html5-video-container"];this.ga=!!this.C;this.G=new te(0,0,0,0);this.A=null;this.K=new te(0,0,0,0);this.U=this.ra["html5-video-content"];this.Y=this.ea=0;this.L=null;this.H=0;this.M=null;a=a.W();this.aa=a.experiments.ma("efficient_resize")||
a.qb||"blazer"==a.o;this.da=a.experiments.ma("efficient_resize")&&DG(a);this.J=this.D=null;this.addEventListener=A(this.element.addEventListener,this.element);this.removeEventListener=A(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};
a=By(a)&&"blazer"!=a.o&&"mweb-polymer"!=a.o&&window.matchMedia?A(window.matchMedia,window):w;this.Z=a(N5.F);this.va=a(N5.D);this.na=a(N5.C);this.ha=a(N5.A);this.qa=a(N5.o);this.ia=a(N5.B);this.F=null;Gi({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_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_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_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_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_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_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_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_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"});this.app.subscribe("initializingmode",this.Fw,this);this.app.subscribe("videoplayerreset",
this.BE,this);this.app.subscribe("videodatachange",this.AE,this);this.app.subscribe("presentingplayerstatechange",this.xw,this)};
var Ffa=function(a,b){a.A=b;if(!a.A.parentNode)try{pf(a.C,a.A,0)}catch(d){var c="videoElement_: "+!!a.A+", containerElement: "+!!a.C+", containerElement.childNodes: "+!(!a.C||!a.C.childNodes)+", containerInitiallyTruthy: "+a.ga+", isDisposed: "+a.isDisposed();throw Error(c);}a.F&&(a.F.disconnect(),a.F=null);!a.app.W().experiments.ma("no_detect_bad_extensions2")&&window.MutationObserver&&(a.F=new window.MutationObserver(A(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.K=new te(0,0,0,0),O5(this))}},a)),a.F.observe(a.A,{attributes:!0}));
a.K=new te(0,0,0,0);O5(a);Gfa(a)};
var Gfa=function(a){K(a.A,"video-stream");K(a.A,"html5-main-video");var b=a.app.W();"3"==b.B&&a.A.setAttribute("controls",!0);b.va&&a.A.setAttribute("data-no-fullscreen",!0);b.Ob&&a.A.setAttribute("webkit-playsinline","");b.oe&&(a.M=Nl(a.A,"click",A(a.A.play,a.A)))};
var P5=function(a,b){if(a.A){var c=a.app.W();Sv&&(a.A.setAttribute("x-webkit-airplay","allow"),b.title?a.A.setAttribute("title",b.title):a.A.removeAttribute("title"));var d;c.lg&&b.videoId?d=b.Bc(c,"default.jpg"):c.experiments.ma("legacy_poster_behavior")||wc&&!Q5&&!lt()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.A.poster=d)}c=b.Rc("yt:bgcolor");a.C.style.backgroundColor=c?c:"";a.ea=Cu(b.Rc("yt:stretch"));c=b.Rc("yt:crop");a.Y="fullwidth"==c?window.Infinity:
Cu(c)};
var aJ=function(a){return a.A?new re(0<a.A.style.width.indexOf("px")?(0,window.parseInt)(a.A.style.width,10):a.A.clientWidth,0<a.A.style.height.indexOf("px")?(0,window.parseInt)(a.A.style.height,10):a.A.clientHeight):new re(0,0)};
var mF=function(a){return(a=a.A)?R5(a.videoWidth,a.videoHeight):window.NaN};
var FE=function(a,b){var c=a.Ma(),d=S5(a,c,mF(a),T5(a),b);return new te((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
var S5=function(a,b,c,d,e){c=a.ea||c;a=(0,window.isNaN)(c)?c:a.Y||c;d=R5(b.width,b.height);var f;a>d?(f=(0,window.isFinite)(a)?a:c,f={width:b.width,height:b.width/f,ng:f}):a<d?f={width:b.height*a,height:b.height,ng:a}:f={width:b.width,height:b.height,ng:d};e||(0,window.isNaN)(c)||(c>a?f.width=f.height*c:c<a&&(f.height=f.width/c),f.ng=c);return f};
var R5=function(a,b){return 1>Math.abs(U5*b-a)||1>Math.abs(U5/a-b)?U5:a/b};
var T5=function(a){return Sv?!0:"3"!=a.app.W().B&&!(0,window.isNaN)(mF(a))};
var O5=function(a){var b=mF(a),c=a.Ma(),d=1,e=T5(a),f=!1,k=oq(a.app),l=k&&k.getPlayerState(),k=S5(a,c,b),m=a.app.W();!l||T(l,2)||qy(l)?m.experiments.ma("container_overflow")?(a.C.style.overflow="hidden",b=new te(0,0,c.width,c.height)):(b=-c.height,Sv?b*=window.devicePixelRatio:uc&&(b-=window.screen.height),b=new te(0,b,c.width,c.height)):(m.experiments.ma("container_overflow")&&(a.C.style.overflow=""),e&&!(0,window.isNaN)(b)?(d=k.ng/b,b=new te((c.width-k.width/d)/2,(c.height-k.height)/2,k.width/d,
k.height)):b=new te(0,0,c.width,c.height));ve(a.K,b)||(a.K=b,eg(a.A,we(b)),Tf(a.A,xe(b)),f=!0);c=new te((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);ve(a.G,c)||(a.G=c,eg(a.U,c.width,c.height),Tf(a.U,c.left,c.top),f=!0);Mf(a.A,"transform",1==d?"none":"scaleX("+d+")");return f};
var V5=function(a,b,c,d){zv.call(this);S(this,a,"click",this.K);S(this,a,"dblclick",this.H);this.J=b;this.C=c;this.D=d||null;this.A=new Ud(this.G,200,this);H(this,this.A);this.o=!0;this.B=!1;this.F=null};
var W5=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&&aq(c.data.follow_on_url)}};
var X5=function(){this.o=[];this.A=[]};
var Y5=function(a,b,c){c=window.document.createElement(c?"audio":"video");qa(c,Hfa);Nl(c,"loadeddata",A(c.pv,c));Nl(c,"volumechange",A(c.rv,c));wG&&6<=Kw&&Nl(c,"webkitbeginfullscreen",A(c.play,c));b||c.src||c.load();a.A.push(c);return c};
var Z5=function(a,b,c){Rj.call(this);this.C=a;this.M=A(b,null);this.A=0;this.F=!1;this.B=new oe(window.NaN,window.NaN);this.o=new zv(this);H(this,this.o);b=c?4E3:3E3;this.J=new Ud(pa(this.bb,1,!1),b,this);H(this,this.J);this.K=new Ud(pa(this.bb,2,!1),b,this);H(this,this.K);this.L=new Ud(pa(this.bb,512,!1),3E3,this);H(this,this.L);c||(this.G=S(this.o,a,"mouseover",this.ws),S(this.o,a,"mousemove",this.wE),S(this.o,a,"mouseleave",this.Tx));tc?S(this.o,a,"keypress",this.Fx):S(this.o,a,"focusin",this.Sv);
this.D=S(this.o,a,"mousedown",this.vs);this.H=S(this.o,a,"touchstart",this.xs);this.O=null;this.bb(640,!0)};
var $5=function(a,b){Fx.call(this,a,b);this.L=null;this.G=this.H=this.D=this.C=0;this.F=-75;K(this.element,"ytp-tv-static");a6(this,a,b)};
var b6=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};
var a6=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,l=0;l<k;l++){var m=4*l;f.data[m]=f.data[m+1]=f.data[m+2]=Math.floor(35*Math.random());f.data[m+3]=255}e.putImageData(f,0,0);a.L=d;a.H=b6(b);a.G=b6(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}};
var c6=function(a){Q.call(this,["div",["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.D=a;this.C=[];void 0==d6&&(a=window.document.createElement("canvas"),d6=!(!a.getContext||!a.getContext("2d")));d6&&(this.A=new $5(1,1),this.A.o(this.element,0),H(this,this.A));a=GE(this.D).Ma();this.A&&a6(this.A,a.width,a.height)};
var Ifa=function(a,b,c){e6("add_to_watch_later_list",a,b,c)};
var Jfa=function(a,b,c){e6("delete_from_watch_later_list",a,b,c)};
var e6=function(a,b,c,d){Bj(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",xd:{feature:b.feature||null,authuser:b.zb||null,pageid:b.pageId||null},Bb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.uJ||null,add_to_playlists:b.lJ||null,plid:zi("PLAYBACK_ID")||null},context:b.context,onError:b.onError,kb:function(a,c){var d=c.result;d&&d.actions&&W5(d.actions);b.kb.call(this,
a,c)},
Vb:b.Vb,withCredentials:!!d})};
var f6=function(a){this.B=a;this.A=this.o=null};
var g6=function(a){if(!a.o){a.o=new Q(["canvas",{style:"display: none"}]);a.o.o(a.B);var b=a.o.element;try{a.A=b.getContext("webgl")}catch(c){}}};
var h6=function(a){a.A=null;a.o&&(Aq(a.o),a.o=null)};
var i6=function(a){Q.call(this,["div","ytp-bezel",{role:"status","aria-label":"{{label}}"},["div","ytp-bezel-icon"]]);this.A=new Pq(this,500);H(this,this.A);this.ca=a;this.C=null};
var j6=function(a){var b=nz(a.ca);jy(b)?(b=a.ca.getVideoData(),b.Fa&&!b.Dd?k6(a,3):k6(a,2),a.A.show(!0)):T(b,64)||(k6(a,1),a.A.show(!0))};
var k6=function(a,b){if(a.C!=b){a.C=b;var c,d;switch(b){case 2:c=P("YTP_PAUSE");d=Ah?'<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=P("YTP_PLAY");d=Ah?'<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=P("YTP_STOP"),d=Ah?'<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];L(e,"ytp-bezel-icon-play",1==b);Bq(a,"label",c);d&&(e.innerHTML=d)}};
var l6=function(a,b){var c=GE(a).Ma();Q.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.G=a;this.aa=b;this.M=this.ra["ytp-tooltip-bg"];this.ha=this.ra["ytp-tooltip-image"];this.Z=A(this.Wz,this);this.ga=A(this.Ul,this,1);this.ea=A(this.Ul,this,3);this.ia=A(this.Ul,this,4);this.A=null;this.J=new Pq(this,100);
H(this,this.J);this.L=this.H=this.C=null;this.D=window.NaN;this.K="";this.U=0;this.Y=c.width;this.S=!0;this.da=c;this.F=1;this.O=new Ud(this.Lx,250,this);H(this,this.O)};
var m6=function(a,b){switch(b){case 1:case 2:return a.ga;case 3:return a.ea;default:return a.ia}};
var n6=function(a,b){if(null!=a.C)if(b)switch(a.C){case 1:case 3:case 4:o6(a);a.J.show(!1,400);break;default:a.J.show()}else a.J.fa();a.S=b};
var p6=function(a,b,c){if(a.aa)return w;var d=c||4;b.addEventListener("mouseover",m6(a,d));return A(function(){this.A==b&&this.Ge();b.removeEventListener("mouseover",m6(this,d))},a)};
var o6=function(a){var b=a.A.getAttribute("data-tooltip-text");Bq(a,"text",b||a.K);if(b){var c=a.A.getAttribute("data-duration");a.update({title:a.K,duration:c});var d=a.A.getAttribute("data-preview"),e=96*a.F,f=54*a.F,k=120*a.F,l=90*a.F;a.M.style.width=e+"px";a.M.style.height=f+"px";a.M.style.background=d?"#000 url("+d+") "+(e-k)/2+"px "+(f-l)/2+"px/"+k+"px "+l+"px":"";Yd(a.element,["ytp-text-detail","ytp-preview"]);L(a.element,"ytp-has-duration",!!c)}else ae(a.element,["ytp-text-detail","ytp-preview",
"ytp-has-duration"]);c=hg(a.A);d=cg(a.A,a.G.Ba());q6(a,d.x+c.width/2,!!b,d.y+c.height/2,c.height)};
var q6=function(a,b,c,d,e){a.element.style.left="0px";a.element.style.top="";a.element.style.maxWidth=c?"":Math.min(a.Y,200)+"px";c=hg(a.element);b-=c.width/2;switch(a.C){case 1:case 2:b=ke(b,a.U,a.U+a.Y-c.width);break;case 3:d=GE(a.G).Ma().width;b=ke(b,12,d-c.width-12);break;default:var f=GE(a.G).Ma();b=ke(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"};
var r6=function(a){a.A&&a.A.hasAttribute("title")&&(a.K=a.A.getAttribute("title"),a.A.removeAttribute("title"),a.S&&o6(a))};
var s6=function(a,b){L(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.D)){a.D=b;var c=96*a.F,d=96*a.F,e=hu(a.L,a.D,c);W2(a.M,e,c,d,!0);a.O.start()}};
var t6=function(a,b,c){var d=["button",["ytp-button","ytp-cards-button"],{"aria-label":P("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];Q.call(this,d);this.element.innerHTML=Ah?'<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-21" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-21" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-21" /></svg>';
this.ca=a;this.F=b;this.G=c;this.C=null;this.A=new Pq(this,250,!0,100);H(this,this.A);this.fa();this.R("click",this.D);this.R("mouseover",this.H);uB(this,!0)};
var uB=function(a,b){b?(a.element.title=P("YTP_DRAWER_HEADER_TEXT_2"),a.C=p6(a.F.A,a.element,3)):(a.C(),a.C=null,a.element.title="")};
var u6=function(a){this.da=this.Z=null;Gq.call(this,a);this.ea=new Pq(this,100);this.Y=null};
var v6=function(a){return a.B&&3!=a.ea.o};
var w6=function(a,b){this.C=[a];this.D=a;x6(this,a);this.size=new re(0,0);this.F=this.H=null;this.ia=this.ha=0;u6.call(this,["div",["ytp-popup",b||null],{child:a}]);this.R("keydown",this.jF)};
var x6=function(a,b){a.D.unsubscribe("size-change",a.gh,a);a.D=b;a.D.subscribe("size-change",a.gh,a)};
var y6=function(a){eg(a.element,a.ha||"100%",a.ia||"100%");var b=a.D;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.C.style.height="";var c=hg(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.D&&(d=hg(b.ra["ytp-panel-header"]).height);b.C.style.height=c.height-d+"px";a.size=c};
var z6=function(a,b){a.C.push(b);A6(a,a.D,b)};
var A6=function(a,b,c,d){a.H&&Vd(a.H);a.F&&Vd(a.F);b.unsubscribe("back",a.Ud,a);c.subscribe("back",a.Ud,a);c.o(a.element);x6(a,c);if(a.B){c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;y6(a);d=0==!d?-e.width:a.size.width;eg(a.element,e);Mf(c.element,"transform","translateX("+d+"px)");Mf(c.element,"opacity","0");a.H=new Ud(pa(a.mC,b,c,-d),20,a);a.H.start()}else Mf(c.element,"transform","translateX(0)"),Mf(c.element,"opacity","1"),Aq(b)};
var B6=function(a,b,c){for(var d=0;d<c.length;d++)L(c[d].element,"ytp-panel-animating",b);L(a.element,"ytp-popup-animating",b)};
var C6=function(a){Gq.call(this,["div","ytp-menu","{{content}}",{role:"menu",id:a||null}]);this.A=[]};
var D6=function(a,b,c){if(c)a.A.push(b),a.element.appendChild(b.element);else{c=xb(a.A,b,a.xv);if(0<=c)return;c=~c;ub(a.A,c,0,b);pf(a.element,b.element,c)}b.subscribe("size-change",a.Bl,a);a.P("size-change")};
var E6=function(a,b,c,d){Gq.call(this,a);this.priority=b;c&&this.D(c);d&&this.Db(d)};
var F6=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}}"]]};
var G6=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 l="ytp-panel-options";k.push(["button",["ytp-button",l],P("YTP_OPTIONS")])}e.push(k)}e.push(["div","ytp-panel-content",{child:b}]);Gq.call(this,e);this.C=this.ra["ytp-panel-content"];this.G=b;this.D=!1;c&&(R(this,this.ra[f],"click",this.K),this.D=!0,d&&R(this,this.ra[l],"click",d));this.G.subscribe("size-change",this.F,this);R(this,a,"fullscreentoggled",
this.F)};
var H6=function(a){var b=F6({"aria-haspopup":!0});E6.call(this,b,a);this.R("keydown",this.A)};
var I6=function(a,b){a.element.setAttribute("aria-haspopup",b)};
var J6=function(a){this.A=a;this.aa=new zv(this);H(this,this.aa);this.J=new Gq(["div",["ytp-copytext","ytp-no-contextmenu"],{draggable:!1,tabindex:1},"{{text}}"]);H(this,this.J);this.ga=new G6(a,this.J);H(this,this.ga);var b=new C6("contextmenu");H(this,b);this.M=new H6(8);H(this,this.M);D6(b,this.M,!0);this.M.R("click",this.SE,this);this.L=new H6(6);H(this,this.L);D6(b,this.L,!0);this.L.R("click",this.Az,this);this.K=new H6(5);H(this,this.K);D6(b,this.K,!0);this.K.R("click",this.RE,this);this.U=
new E6(F6({href:"{{href}}",target:"_blank"},void 0,!0),4,P("YTP_REPORT_ISSUE"));H(this,this.U);D6(b,this.U,!0);this.U.R("click",this.UE,this);this.S=new H6(3);H(this,this.S);D6(b,this.S,!0);this.S.R("click",this.QE,this);var c=new E6(F6(),2,P("YTP_SHOW_VIDEO_INFO"));H(this,c);D6(b,c,!0);c.R("click",this.VE,this);c="//"+KG(this.A.W())+"/html5";c=new E6(F6({href:c,target:"_blank"},void 0,!0),1,P("YTP_HTML5_CONTEXT_MENU_LINK"));H(this,c);D6(b,c,!0);c.R("click",this.Xx,this);b=new G6(this.A,b);H(this,
b);w6.call(this,b);K(this.element,"ytp-contextmenu");b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");Fl&&yc(43)&&(b=!0);K6&&!yc(41)&&(b=!1);b&&(this.G=new Q(["div","ytp-html5-clipboard"]),H(this,this.G),this.G.o(this.element));L6(this);R(this,this.A,"fullscreentoggled",this.PE);R(this,this.A,"pageTransition",this.TE);R(this,this.A,"videodatachange",this.WE);R(this,GE(this.A),"contextmenu",this.ez);R(this,this.J.element,"click",this.fz);a=a.getVideoData();M6(this,
a);this.o(window.document.body)};
var N6=function(a,b){var c;if(a.G){Af(a.G.element,b);Fq(a.G.element);try{c=window.document.execCommand("copy")}catch(d){}}c?a.yb():(a.J.Db(b,"text"),z6(a,a.ga),Fq(a.J.element),a.G&&(a.G=null,L6(a)))};
var M6=function(a,b){var c=a.A.W(),d=!c.C&&!!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.A&&(c.fmt=b.A.id),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.V&&(c.partnerid=b.V),c=Ug("//support.google.com/googleplay/",c));a.K.xb(d&&b.allowEmbed);a.M.xb(d);a.L.xb(d&&!b.Fa);a.U.Db(c,"href")};
var L6=function(a){var b=!!a.G;a.S.D(P(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));I6(a.S,!b);a.K.D(P(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));I6(a.K,!b);a.M.D(P(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));I6(a.M,!b);a.L.D(P(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));I6(a.L,!b)};
var O6=function(a){this.F=new zv(this);Rq.call(this,a,["div",["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"]]);this.D=new Ud(this.Bs,0,this);H(this,this.D);this.Bs();R(this,a,"presentingplayerstatechange",this.YE);By(a.W())&&R(this,a,"videoplayerreset",this.XE)};
var P6=function(a,b,c){b.W();var d=qy(c);b=T(c,2)&&!mH(b);d||b?a.show():(a.fa(),T(c,1)||a.stop())};
var Q6=function(a,b,c,d,e,f,k){zv.call(this);this.o=a;this.K=c;this.G=d;this.B=e;this.H=f;this.J=k;this.A="";a=pa(this.F,!1);S(this,b,"mousedown",a);S(this,c.element,"mousedown",a);S(this,b,"keydown",this.C);S(this,c.element,"keydown",this.C);S(this,b,"keyup",this.D);S(this,c.element,"keyup",this.D)};
var R6=function(a,b,c){var d=!1,e=a.o.W();if(!e.ab){switch(b){case 80:c&&(a.o.yj(),d=!0);break;case 78:c&&(a.o.xj(),d=!0);break;case 74:a.o.Zc(-10);d=!0;break;case 76:a.o.Zc(10);d=!0;break;case 77:a.o.sc()?a.o.unMute():a.o.mute();d=!0;break;case 75:j6(a.H);jy(nz(a.o))?a.o.pauseVideo():a.o.Yc();d=!0;break;case 190:if(c&&e.U)for(b=a.o.uj(),c=a.o.app.V,e=0;e<b.length-1;e++)b[e]==c&&(a.o.Aj(b[e+1]),d=!0);break;case 188:if(c&&e.U)for(b=a.o.uj(),c=a.o.app.V,e=b.length-1;1<=e;e--)b[e]==c&&(a.o.Aj(b[e-1]),
d=!0);break;case 70:yy(a.o)&&(Cy(a.o),d=!0)}d&&a.G.bb(2,!0)}return d};
var S6=function(a,b,c,d){if(lH(a.o.app.C,"captions")){for(var e=a.o.vb("captions","displaySettings"),f,k=0;k<T6.length;k++){var l=T6[k];if(l.option==b){f=l.options;break}}for(var m,k=0;k<f.length;k++)f[k].option==e[b]&&(m=k);if(d)if(c){if(0==m)return!1}else if(m==f.length-1)return!1;d={};d[b]=f[(m+(c?f.length-1:1))%f.length].option;oH(a.o,d);return!0}return!1};
var U6=function(a){var b=["ytp-large-play-button","ytp-button"],c=a.W();(c.useTabletControls||c.isMobile)&&b.push("ytp-touch-device");Q.call(this,["button",b,{"aria-label":"{{label}}"}]);b=a.W();this.element.innerHTML=b.Ab?Ah?'<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>':
Ah?'<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.D=!1;this.C=new Pq(this,250);H(this,this.C);R(this,a,"presentingplayerstatechange",this.F);V6(this,nz(a))};
var V6=function(a,b){if(a.A.W().jg&&!a.D){P6(a.C,a.A,b);var c;c=(c=a.A.getVideoData())&&c.title?P("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):P("YTP_PLAY");Bq(a,"label",c)}else a.fa()};
var W6=function(a){Gq.call(this,["div","ytp-mini-progress-bar-container",["div",["ytp-mini-progress-bar","ytp-swatch-background-color"]]]);this.A=a;this.G=this.ra["ytp-mini-progress-bar"];this.C=null;R(this,a,"presentingplayerstatechange",this.D);a.W();X6(this)&&R(this,a,"fullscreentoggled",this.D);this.fa();this.D()};
var X6=function(a){a=a.A.W();return a.experiments.ma("player_mini_progress_bar")&&By(a)};
var Y6=function(a,b,c){var d;d=b.rb(c);var e=a.W(),f=d.Bc(e,"default.jpg");Q.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",P("YTP_UPLOADED_BY_2",
{AUTHOR:d.author})]]);this.A=a;this.C=c;this.R("click",this.D)};
var Z6=function(a,b){Q.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":P("YTP_CLOSE")}]],["div","ytp-playlist-menu-subtitle","{{subtitle}}"]],["div","ytp-playlist-menu-items",{role:"menu"}]]);var c=this.ra["ytp-playlist-menu-close"],d=yh();c.innerHTML=d;R(this,c,"click",this.kF);R(this,this.ra["ytp-playlist-menu-title-name"],
"click",this.XA);this.C=a;this.F=this.G=this.A=null;this.K=this.ra["ytp-playlist-menu-items"];this.D=[];this.J=b;this.H=new Pq(this,250)};
var $6=function(a,b){a.A!=b&&(a.A&&a.A.unsubscribe("shuffle",a.Sm,a),a.A=b,a.G=null,b?b.subscribe("shuffle",a.Sm,a):a.B&&a.J())};
var a7=function(a){return a.B&&3!=a.H.o};
var b7=function(a,b,c){var d=["button",["ytp-playlist-menu-button","ytp-button"],{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-expanded":"{{menuopen}}","aria-label":P("YTP_PLAYLIST")},["div","ytp-playlist-menu-button-icon",""],["div","ytp-playlist-menu-button-text","{{text}}"]];Q.call(this,d);this.ra["ytp-playlist-menu-button-icon"].innerHTML=Ah?'<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-35" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-35" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-35" /></svg>';
this.G=a;this.A=null;this.H=c;this.D=b.A;R(this,a,"videodatachange",this.F);R(this,a,"onPlaylistUpdate",this.F);R(this,a,"presentingplayerstatechange",this.C);this.fa();this.F();Kb(this,p6(this.D,this.element,3));this.R("click",this.H)};
var c7=function(a,b,c){Q.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitem","aria-label":"{{watch}}",href:"{{url}}"},["div","ytp-video-menu-item-thumbnail",{style:"{{background}}"}],["div","ytp-video-menu-item-title","{{title}}"],["div","ytp-video-menu-item-author","{{author}}"]]);this.C=a;this.A=b;this.D=c;Ax(this,b,a.W());this.R("click",this.F)};
var d7=function(a,b){Q.call(this,["div","ytp-related-menu",{role:"dialog"},["div","ytp-related-menu-header",["button",["ytp-related-menu-close","ytp-button"],{"aria-label":P("YTP_CLOSE")}],["div","ytp-related-menu-title",P("YTP_SUGGESTED_VIDEOS")]],["div","ytp-related-menu-items",{role:"menu"}]]);var c=this.ra["ytp-related-menu-close"],d=yh();c.innerHTML=d;R(this,c,"click",this.wF);this.A=a;this.F=null;this.H=this.ra["ytp-related-menu-items"];this.C=[];this.D=b;this.G=new Pq(this,250)};
var e7=function(a){return a.B&&3!=a.G.o};
var f7=function(a,b,c,d){var e=["button",["ytp-button","ytp-related-menu-button"],{title:P("YTP_SUGGESTED_VIDEOS"),"aria-owns":"ytp-related-menu","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];Q.call(this,e);this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-related"></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 L17,10 L17,17 L10,17 L10,10 Z M19,10 L26,10 L26,17 L19,17 L19,10 Z M10,19 L17,19 L17,26 L10,26 L10,19 Z M19,19 L26,19 L26,26 L19,26 L19,19 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>';
this.A=a;this.F=c;this.D=d;R(this,a,"videodatachange",this.C);R(this,a,"presentingplayerstatechange",this.C);this.C();Kb(this,p6(b.A,this.element,3));this.R("click",this.F)};
var g7=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:P("YTP_CLOSE")}],["div","ytp-share-panel-inner-content",["div","ytp-share-panel-title",{id:"ytp-share-panel-title"},P("YTP_SHARE")],["a",["ytp-share-panel-link","ytp-no-contextmenu"],{href:"{{link}}",target:"_blank",title:P("YTP_SHARE_LINK"),"aria-label":P("YTP_SHARE_LINK")},"{{linkText}}"],["label","ytp-share-panel-include-playlist",
["input","ytp-share-panel-include-playlist-checkbox",{type:"checkbox",checked:!0}],P("YTP_SHARE_WITH_PLAYLIST_2")],["div","ytp-share-panel-loading-spinner"],["div","ytp-share-panel-service-buttons","{{buttons}}"],["div","ytp-share-panel-error",P("YTP_SHARE_PANEL_ERROR")]]];Q.call(this,d);this.A=a;this.D=b.A;this.J=c;this.C=[];this.F=!1;this.H=new Pq(this,250);this.M=this.ra["ytp-share-panel-inner-content"];this.S=this.ra["ytp-share-panel-loading-spinner"];b=Eh();this.S.innerHTML=b;this.G=this.ra["ytp-share-panel-close"];
b=yh();this.G.innerHTML=b;R(this,this.G,"click",this.J);Kb(this,p6(this.D,this.G));this.L=this.ra["ytp-share-panel-include-playlist-checkbox"];R(this,this.L,"click",this.Ls);this.K=this.ra["ytp-share-panel-link"];Kb(this,p6(this.D,this.K));this.R("click",this.hA);R(this,a,"videoplayerreset",this.fa);R(this,a,"fullscreentoggled",this.yF)};
var Kfa=function(a){switch(a){case "facebook":return Ah?'<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 Ah?'<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 Ah?'<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}};
var h7=function(a){return a.B&&3!=a.H.o};
var i7=function(a){for(var b=0;b<a.C.length;b++)Aq(a.C[b]),Mb(a.C[b]);a.C=[]};
var j7=function(a,b,c,d,e){c=["button",["ytp-button","ytp-share-button"],{title:P("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"}];Q.call(this,c);a.W().experiments.ma("sharrow")?this.element.innerHTML=Ah?'<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-40" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-40" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-40" /></svg>':
this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-share"></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.54,22.88 L15.55,19.39 C15.67,19.04 15.74,18.68 15.74,18.29 C15.74,18.03 15.71,17.78 15.66,17.54 L21.54,14.11 C22.11,14.57 22.83,14.86 23.62,14.86 C25.49,14.86 27,13.32 27,11.43 C27,9.53 25.49,8 23.62,8 C21.75,8 20.25,9.53 20.25,11.43 C20.25,11.69 20.28,11.94 20.33,12.18 L14.45,15.61 C13.87,15.15 13.16,14.86 12.37,14.86 C10.50,14.86 9,16.40 9,18.29 C9,20.19 10.50,21.73 12.37,21.73 C13.02,21.73 13.62,21.53 14.14,21.20 L20.33,24.81 C20.28,25.05 20.25,25.30 20.25,25.56 C20.25,27.46 21.75,29 23.62,29 C25.49,29 27,27.46 27,25.56 C27,23.67 25.49,22.13 23.62,22.13 C22.83,22.13 22.12,22.41 21.54,22.88 L21.54,22.88 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=a;this.C=e;this.R("click",d);this.A.W().he?this.fa():(R(this,a,"videodatachange",this.D),this.D());Kb(this,p6(b.A,this.element,3))};
var k7=function(a){Q.call(this,["div","ytp-webgl-spherical-control",{tabindex:0,"aria-label":P("YTP_SPHERICAL_CONTROL")}]);this.element.innerHTML=Ah?'<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-42" 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-43" /></defs><use opacity="0.15" stroke="#000" stroke-width="2" xlink:href="#ytp-svg-42" /><use fill="#fff" xlink:href="#ytp-svg-42" /><use opacity="0.15" stroke="#000" stroke-width="1" xlink:href="#ytp-svg-43" /><use fill="#999" xlink:href="#ytp-svg-43" /></svg>';
this.C=a;this.aa=this.da=this.F=this.G=null;this.A=[];this.D=0;this.Z=null;this.H=new Az(this.AF,null,this);H(this,this.H);this.M=-1;this.O=this.J=this.U=this.L=this.Y=this.K=0;this.S=!1;R(this,a,"videodatachange",this.Um);R(this,a,"onApiChange",this.Um);this.fa();this.Um()};
var l7=function(a,b,c,d){a.Y=ke(b+a.Y,-1,1);a.U=ke(c+a.U,-1,1);a.O=ke(d+a.O,-1,1);1!=a.D&&(a.D=1,K(a.element,"ytp-dragging"),a.M=I(),a.H.start())};
var m7=function(a){a.H.stop();a.D=0;a.Y=0;a.U=0;a.O=0;a.A=[];Zd(a.element,"ytp-dragging")};
var n7=function(a,b,c,d,e,f){var k=f-a.M;a.L=(a.K*a.L+(b-e.yaw))/(k+a.K);a.J=(a.K*a.J+(c-e.pitch))/(k+a.K);a.M=f;a.K=k;uH(a.C,{shader:"Spherical",yaw:b,pitch:c,fov:d})};
var o7=function(a,b){if(!(-1<a.A.indexOf(b)))switch(b){case 37:case 65:l7(a,1,0,0);a.A.push(b);break;case 39:case 68:l7(a,-1,0,0);a.A.push(b);break;case 38:case 87:l7(a,0,1,0);a.A.push(b);break;case 40:case 83:l7(a,0,-1,0);a.A.push(b);break;case 107:l7(a,0,0,-1);a.A.push(b);break;case 109:l7(a,0,0,1),a.A.push(b)}};
var p7=function(a,b){var c=a.A.indexOf(b);if(-1<c)switch(a.A.splice(c,1),b){case 37:case 65:l7(a,-1,0,0);break;case 39:case 68:l7(a,1,0,0);break;case 38:case 87:l7(a,0,-1,0);break;case 40:case 83:l7(a,0,1,0);break;case 107:l7(a,0,0,1);break;case 109:l7(a,0,0,-1)}0==a.A.length&&(m7(a),a.D=2,a.H.start())};
var q7=function(a){var b=["div","ytp-spinner",["span","ytp-spinner-svg"],["div","ytp-spinner-message",P("YTP_PLAYBACK_STALLED_AT_START")]];Q.call(this,b);this.F=this.ra["ytp-spinner-svg"];b=Eh();this.F.innerHTML=b;this.D=this.ra["ytp-spinner-message"];this.C=a;this.A=new Ud(this.show,500,this);R(this,a,"presentingplayerstatechange",this.EF);R(this,a,"onFrescaStateChange",this.wz);R(this,a,"playbackstalledatstart",this.nA);r7(this,nz(a))};
var r7=function(a,b){var c;T(b,128)?c=0:!(c=T(b,16))&&(c=T(b,1))&&(c=lH(a.C.app.C,"fresca"),c=!(c&&c.loaded));c?a.A.start():a.fa()};
var s7=function(a,b){var c=["button",["ytp-airplay-button","ytp-button"],{title:P("YTP_AIRPLAY")}];Q.call(this,c);this.A=a;this.R("click",this.D);R(this,a,"airplayactivechange",this.C);R(this,a,"airplayavailabilitychange",this.C);this.C();Kb(this,p6(b.A,this.element,1))};
var t7=function(a,b){Gq.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.C=a;this.ea=b.A;this.Z=new Am(this.$E,250,this);H(this,this.Z);this.H=GE(a).Ma().width;this.D=this.ra["ytp-storyboard-filmstrip"];this.ga=this.ra["ytp-storyboard-lens"];this.ia=this.ra["ytp-storyboard-lens-thumbnail"];
this.ha=this.ra["ytp-storyboard-lens-timestamp"];this.da=this.ra["ytp-storyboard-thumbnail"];qf(this.da);this.M=0;this.aa=!1;this.Y=this.A=0;this.U=this.K=this.G=window.NaN;this.J=this.F=null;this.L=new zv(this);this.S=new Pq(this,100);R(this,this.C,"resize",this.ZE);R(this,this.C,"beginseeking",this.Dv)};
var u7=function(a,b){a.J&&a.J.unsubscribe("l",a.ij,a);var c=!!a.F;a.F=b&&$w(b);a.J=b&&ax(b);a.aa=!!b&&b.Fa;a.F?(c||(S(a.L,a.C,"videodatachange",a.aF),S(a.L,a.C,"progresssync",a.Ij),S(a.L,a.C,"videoplayerreset",a.Ij),S(a.L,a.C,"endseeking",a.Rv)),a.J.subscribe("l",a.ij,a),a.U=window.NaN,a.G=window.NaN,a.K=window.NaN,a.Ij(),a.S.show(!1,t7.A)):(c&&Bv(a.L),a.Z.stop(),Hu(a.M),a.S.fa(),a.S.stop())};
var v7=function(a,b){var c=a.da.cloneNode(!1),d=hu(a.J,b,a.A);W2(c,d,a.A,a.Y);return c};
var w7=function(a){Q.call(this,["div","ytp-storyboard-framepreview",["div","ytp-storyboard-framepreview-img"]]);this.J=this.ra["ytp-storyboard-framepreview-img"];this.A=a;this.H=this.D=null;this.G=window.NaN;this.C=new zv(this);this.F=new Pq(this,100);R(this,a,"beginseeking",this.dF)};
var x7=function(a,b){var c=!!a.D;a.D=b&&$w(b);a.H=b&&ax(b);a.D?(c||(S(a.C,a.A,"videodatachange",a.hF),S(a.C,a.A,"progresssync",a.fF),S(a.C,a.A,"resize",a.cF),S(a.C,a.A,"presentingplayerstatechange",a.gF),S(a.C,a.A,"endseeking",a.eF)),a.G=window.NaN,y7(a),a.F.show(!1,200)):(c&&Bv(a.C),a.F.fa(),a.F.stop())};
var y7=function(a){var b=a.A.getCurrentTime(),c=GE(a.A).Ma(),d=iu(a.D,c.width),b=a.D.o[d].Gj(b);b!=a.G&&(a.G=b,ku(a.H,b,c.width),b=hu(a.H,b,c.width),W2(a.J,b,c.width,c.height))};
var z7=function(a,b){Q.call(this,["button",["ytp-fullscreen-button","ytp-button"],{title:"{{title}}"}]);this.C=a;this.F=b;this.A=null;this.D=p6(b.A,this.element,1);R(this,a,"fullscreentoggled",this.Cs);R(this,a,"presentingplayerstatechange",this.Ds);this.R("click",this.iF);var c;c=Jh("fullscreenerror");"msfullscreenerror"==c&&(c="MSFullscreenError");c&&R(this,window.document,c,this.yz);a.W().La||A7(this);this.Ds();this.Cs(a.Ja())};
var A7=function(a){if(!a.A){var b=P(void 0!=Hh(["requestFullscreen","requestFullScreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.A=new u6(["div",["ytp-popup","ytp-fullscreen-message"],b[0],["a",{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},b[2]],b[4]]);H(a,a.A);a.A.o(a.C.Ba());a.element.setAttribute("aria-disabled",!0);a.D();a.D=null}};
var B7=function(a,b){var c=["button",["ytp-pip-button","ytp-button"],{title:P("YTP_PIP")}];Q.call(this,c);this.element.innerHTML=Ah?'<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-33" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-33" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-33" /></svg>';
this.A=a;this.R("click",this.C);Kb(this,p6(b.A,this.element,1))};
var C7=function(a,b){Q.call(this,["button",["ytp-play-button","ytp-button"],{title:"{{title}}","aria-label":"{{label}}"}]);this.A=a;this.D=null;this.F=b.A;this.C=null;R(this,a,"fullscreentoggled",this.G);R(this,a,"presentingplayerstatechange",this.H);R(this,a,"videodatachange",this.G);D7(this,nz(a));this.R("click",this.J,this)};
var Lfa=function(a){switch(a){case 1:return'<div class="ytp-icon ytp-icon-play"></div>';case 2:return'<div class="ytp-icon ytp-icon-pause"></div>';case 3:return'<div class="ytp-icon ytp-icon-replay"></div>';case 4:return'<div class="ytp-icon ytp-icon-stop"></div>'}};
var D7=function(a,b){var c,d=gx(a.A.getVideoData()),e=!1;jy(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=P("YTP_PAUSE");break;case 3:f=P("YTP_REPLAY");break;case 1:f=P("YTP_PLAY");break;case 4:f=P("YTP_STOP")}e=void 0;3==c?(a.C||(a.C=p6(a.F,a.element,1)),d="M26.466,21.04 L30.966,16 L27.8,16 C26.873,11.435 22.841,8 18.001,8 C12.474,8 8,12.477 8,18 C8,23.523 12.474,28 18.001,28 C21.181,28 24.009,26.511 25.841,24.197 L24.005,22.361 C22.652,24.217 20.471,25.427 18.001,25.427 C13.899,25.427 10.569,22.101 10.569,18 C10.569,13.898 13.899,10.572 18.001,10.572 C21.407,10.572 24.268,12.871 25.142,16 L21.966,16 L26.466,21.04",
a.update({title:f,label:null})):(a.C&&(a.C(),a.C=null),a.update({title:null,label:f}),d=E7[c],e=E7[a.D]);r6(a.F);f=a.A.W().V?Lfa(c):Dy(ka(a),d,e);a.element.innerHTML=f;a.D=c}};
var F7=function(a,b,c){var d,e;c?(d="ytp-next-button",e=Ah?'<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-31" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-31" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-31" /></svg>'):
(d="ytp-prev-button",e=Ah?'<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-36" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-36" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-36" /></svg>');Q.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}}"}]);this.element.innerHTML=e;this.A=a;this.S=b.A;this.F=c;this.C=this.H=null;this.M=!1;this.K=this.L=this.D=null;this.G=!1;R(this,a,"fullscreentoggled",this.J);R(this,a,"videodatachange",this.J);R(this,a,"onPlaylistUpdate",this.J);this.J()};
var G7=function(a){a.C&&a.C.unsubscribe("shuffle",a.J,a)};
var H7=function(a){return!!a.C&&!a.F&&3<=a.A.getCurrentTime()&&1==a.A.getPresentingPlayerType()};
var I7=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=a.A.W(),d=nH(a.A),e=a.F&&Jx(c,a.H,a.C);if(a.G)b.title=P("YTP_REPLAY");else if(d){var f=null;a.C&&(f=a.C.rb(a.F?qx(a.C,!0):rx(a.C,!0)));if(f){if(f.videoId){var k=a.C.D;b.url=c.getVideoUrl(f.videoId,k?k.toString():void 0)}b.text=f.title;b.duration=f.lengthSeconds?xx(f.lengthSeconds):null;b.preview=f.Bc(c,"default.jpg")}b.title=P(a.F?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.H.G&&a.H.G.length&&(f=zx(a.H.G[0]),b.url=f.Bk(c),
b.text=f.title,b.duration=f instanceof Aw?xx(f.lengthSeconds):null,b.preview=f.Bc(c,"default.jpg")),b.title=P("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.M=!!b.url;e||d||a.G?a.D||(a.D=p6(a.S,a.element,1),a.L=a.R("click",a.U,a)):a.D&&(a.D(),a.D=null,a.za(a.L),a.L=null);r6(a.S)};
var J7=function(a,b){var c=["div","ytp-progress-bar-container",{"aria-disabled":!0},["div","ytp-progress-bar",{tabindex:0,role:"slider","aria-label":P("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-pull-indicator"]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div","ytp-clip-start",{title:P("YTP_WATCH_ALL")}],["div","ytp-clip-end",{title:P("YTP_WATCH_ALL")}]];Gq.call(this,c);this.C=a;this.tb=b.A;this.na=!1;this.G=this.gb=0;this.aa=1;this.D=this.nb=this.J=0;this.Ua=!1;this.S=this.ea=
0;this.Nb=this.ra["ytp-ad-progress-list"];this.Ob=this.ra["ytp-marker-progress-list"];this.Oa=this.ra["ytp-marker-crenellation-list"];this.Z={};this.ha={};this.U=window.Infinity;c=b.A;this.L=this.ra["ytp-clip-end"];var d=Ch();this.L.innerHTML=d;Kb(this,p6(c,this.L,1));this.qa=new N2(this.L,!0);H(this,this.qa);this.qa.subscribe("hoverstart",this.Gs,this);this.qa.subscribe("hoverend",this.Fs,this);R(this,this.L,"click",this.Jj);this.La=this.ra["ytp-clip-end-exclude"];this.Yb=this.ra["ytp-clip-start-exclude"];
this.Y=0;this.M=this.ra["ytp-clip-start"];d=Dh();this.M.innerHTML=d;Kb(this,p6(c,this.M,1));this.va=new N2(this.M,!0);H(this,this.va);this.va.subscribe("hoverstart",this.Gs,this);this.va.subscribe("hoverend",this.Fs,this);R(this,this.M,"click",this.Jj);this.ab=this.ra["ytp-load-progress"];this.ia=0;this.ac=this.ra["ytp-play-progress"];this.ga=this.ra["ytp-hover-progress"];this.H=0;this.Ea=this.ra["ytp-progress-bar"];this.F=null;this.da=new Q(["div",["ytp-scrubber-button","ytp-swatch-background-color"]]);
H(this,this.da);this.da.o(this.Ea);this.Ia=new Pq(this.da,100);this.qb=this.ra["ytp-scrubber-pull-indicator"];this.Ca=new oe;this.Va=new V2;this.A=new R2(0,0);this.K=this.Ga=!1;this.$a=null;R(this,a,"presentingplayerstatechange",this.mF);R(this,a,"videodatachange",this.Es);R(this,a,"videoplayerreset",this.vw);R(this,a,"cuerangesadded",this.Js);R(this,a,"cuerangesremoved",this.vF);R(this,a,"cuerangemarkersupdated",this.Js);R(this,a,"onPlaybackQualityChange",this.nF);K7(this,a.getVideoData(),!0)};
var L7=function(a){if(a.G){var b=a.C.Ue(),c=new R2(b.seekableStart,b.seekableEnd),d=U2(c,b.loaded,0),b=U2(c,b.current,0);a.A=c;M7(a);N7(a,b,d);O7(a)}};
var K7=function(a,b,c){var d=!!b&&cx(b);a.Ga=d&&b.Dd;P7(a,BH(a.C));c&&(d?(c=b.clipEnd,a.Y=b.clipStart,a.U=c,Q7(a),N7(a,a.H,a.ia)):a.Jj());L7(a)};
var R7=function(a){return!!a&&cx(a)&&!!a.A&&a.A.video.o};
var S7=function(a,b){a.Ua=b;L(a.ab,"ytp-fast-load",b)};
var T7=function(a,b,c,d){b=ke(b,0,a.K?60:40);a.J=b;var e=a.aa;a.aa=b/(a.K?60:40)*(Math.max(S2(a.A)/a.G,1)-1)+1;b=a.G*a.aa;a.S=ke(d*b-c,0,b-a.G);e!=a.aa&&M7(a)};
var M7=function(a){var b=U7(a),c=-b.B/b.o,d=(-b.B+b.width)/b.o,e=sf(a.Oa),f=0;if(a.J>.2*(a.K?60:40))for(var k=S2(a.A)/60*d,l=Math.ceil(S2(a.A)/60*c);l<k;l++){var m=e[f];m||(m=window.document.createElement("div"),a.Oa.appendChild(m));f++;m.className=0==l%60?"ytp-60m-progress":0==l%30?"ytp-30m-progress":0==l%15?"ytp-15m-progress":"ytp-1m-progress";m.style.left=(60*l/S2(a.A)-c)*b.o+"px"}b=a.Ga?a.A.o:0;a.update({boundTimeLeft:xx(T2(a.A,c)-b),boundTimeRight:xx(T2(a.A,d)-b)});for(c=e.length-1;c>=f;c--)qf(e[c]);
a.element.style.height=a.J+(a.K?8:5)+"px";a.P("height-change",a.J);a.da.element.style.height=a.J+(a.K?20:13)+"px";for(var p in a.Z)V7(a,a.Z[p],a.ha[p]);Q7(a);N7(a,a.H,a.ia)};
var U7=function(a){var b=a.Ca.x,c=a.G*a.aa,b=ke(b,0,a.G);a.Va.update(b,a.G,-a.S,-(c-a.S-a.G));return a.Va};
var N7=function(a,b,c){a.H=b;a.ia=c;var d=U7(a),e=a.A.o,f=T2(a.A,a.H);a.update({ariamin:Math.floor(a.A.A),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:P("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:xx(f),DURATION:xx(e)})});var e=U2(a.A,a.Y,0),k=U2(a.A,a.U,1),f=ke(b,e,k);c=a.Ua?1:ke(c,e,k);k=b*d.o+d.B;b=0<=k&&b<=d.width;a.da.element.style.visibility=b?"":"hidden";a.qb.style.display=b?"":"none";b=k+"px";a.da.element.style.left=b;a.qb.style.left=b;W7(a,a.ac,d,e,f);W7(a,a.ab,d,e,c)};
var W7=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.C.getVideoData().L?(b.style.width=d+"px",Mf(b,"transform","")):(Mf(b,"transform","scalex("+(c.width?d/c.width:0)+")"),b.style.width="")};
var Q7=function(a){var b=a.Y>a.A.A,c=0<a.A.o&&a.U<a.A.o;L(a.element,"ytp-clip-start-enabled",b);L(a.element,"ytp-clip-end-enabled",c);b=b?U2(a.A,a.Y,0):0;c=c?U2(a.A,a.U,1):1;a.M.style.left=Math.round(1E3*b)/10+"%";a.L.style.left=Math.round(1E3*c)/10+"%";a.Yb.style.width=Math.round(1E3*b)/10+"%";a.La.style.left=Math.round(1E3*c)/10+"%";a.La.style.width=Math.round(1E3*(1-c))/10+"%"};
var O7=function(a){var b=U7(a);W7(a,a.ga,b,a.H,b.A);L(a.ga,"ytp-hover-progress-light",b.A>a.H)};
var V7=function(a,b,c){var d=U7(a),e=U2(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=U2(a.A,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=ke(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}W7(a,c,d,e,f,!0);c.className=b.style};
var X7=function(a,b){var c=b.getId();a.Z[c]==b&&(qf(a.ha[c]),delete a.Z[c],delete a.ha[c])};
var P7=function(a,b){b?a.F||(a.element.removeAttribute("aria-disabled"),a.F=new N2(a.Ea,!0),a.F.subscribe("hoverstart",a.qF,a),a.F.subscribe("hovermove",a.sF,a),a.F.subscribe("hoverend",a.rF,a),a.F.subscribe("dragstart",a.pF,a),a.F.subscribe("dragmove",a.uF,a),a.F.subscribe("dragend",a.tF,a),a.$a=a.R("keydown",a.oF)):a.F&&(a.element.setAttribute("aria-disabled",!0),a.za(a.$a),a.F.cancel(),a.F.dispose(),a.F=null)};
var Y7=function(a){Q.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 Pq(this,250);H(this,this.A);this.C=a;var b=this.ra["ytp-remote-display-status-icon"],c=zh();b.innerHTML=c;R(this,a,"presentingplayerstatechange",this.D);Z7(this,nz(a))};
var Z7=function(a,b){if(3==a.C.getPresentingPlayerType()){var c;c=T(b,128)?P("YTP_MDX_PLAYER_ERROR"):P("YTP_MDX_STATUS_CONNECTED");var d=a.C.vb("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.A.show()}else a.A.fa()};
var $7=function(a,b,c){var d=["button",["ytp-remote-button","ytp-button"],{title:P("YTP_MDX_TOOLTIP")}];Q.call(this,d);this.ca=a;this.F=c;this.C=null;R(this,a,"onMdxReceiversChange",this.A);R(this,a,"presentingplayerstatechange",this.A);this.A();this.R("click",this.D,this);Kb(this,p6(b.A,this.element,1))};
var a8=function(a,b){this.A=!1;var c=F6({role:"menuitemcheckbox","aria-checked":this.A});E6.call(this,c,b,a,["div","ytp-menuitem-toggle-checkbox"]);this.R("click",this.L)};
var b8=function(a,b){a.A=b;a.element.setAttribute("aria-checked",a.A)};
var c8=function(a,b){a8.call(this,P("YTP_ANNOTATIONS"),6);this.G=b;this.ca=a;this.C=!1;R(this,a,"videodatachange",this.F);R(this,a,"onApiChange",this.F);this.subscribe("select",this.H,this);this.F()};
var d8=function(a,b,c,d,e){var f=F6({"aria-haspopup":!0});E6.call(this,f,b,a);this.A=d;this.K=null;this.C={};this.H=new C6;H(this,this.H);this.S=new G6(c,this.H,a,e);H(this,this.S);this.R("keydown",this.xF);this.R("click",this.open)};
var e8=function(a,b){a.H.removeAll();for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.C[f],l=f==a.K;l&&(d=!0);if(k&&k.priority==-e){var l=a,m=f,p=l.C[m];p.D(l.zc(m,!0));p.P("size-change");delete a.C[f]}else k=new E6(["div","ytp-menuitem",{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},["div","ytp-menuitem-label","{{label}}"]],-e,a.zc(f,!0)),k.R("click",A(a.eA,a,f));c[f]=k;D6(a.H,k,!0)}d||(a.K=null);for(f in a.C)a.C[f].dispose();a.C=c};
var f8=function(a,b){d8.call(this,P("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.ca=a;this.L=new Q(["div","",["span","",P("YTP_AUDIO_TRACK_TITLE")],["span","ytp-menuitem-label-count","{{content}}"]]);this.D(this.L);this.M={};this.F=!1;R(this,a,"videodatachange",this.J);R(this,a,"onPlaybackAudioChange",this.J);this.J()};
var g8=function(a,b){a8.call(this,P("YTP_AUTOPLAY"),7);this.J=b;this.ca=a;this.G=!1;this.C=[];R(this,a,"presentingplayerstatechange",this.F);this.subscribe("select",this.K,this);this.F()};
var h8=function(a,b){d8.call(this,P("YTP_QUALITY_TITLE"),1,a,b);K(this.H.element,"ytp-quality-menu");this.ca=a;this.M={};this.L="unknown";this.F=!1;R(this,a,"videodatachange",this.G);R(this,a,"videoplayerreset",this.G);R(this,a,"onPlaybackQualityChange",this.J);this.G()};
var i8=function(a,b,c){var d=(a=a.M[b])?a.qualityLabel:(d=qr[b])?d+"p":P("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" style="fill:#ffffff" /></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};
var j8=function(a,b){d8.call(this,P("YTP_MDX_TITLE"),0,a,b);this.ca=a;this.F=!1;this.L={};R(this,a,"onMdxReceiversChange",this.J);R(this,a,"presentingplayerstatechange",this.J);this.J()};
var k8=function(a,b){d8.call(this,P("YTP_SPEED_TITLE"),5,a,b);this.ca=a;this.F=!1;this.G=null;R(this,a,"presentingplayerstatechange",this.Ms);this.Ms()};
var l8=function(a,b,c,d){d8.call(this,m8(d),a,b,c);K(this.element,"ytp-subtitles-options-menu-item");this.J=d.option.toString();this.F=Hb(d.options,this.G,this);e8(this,O(d.options,this.G))};
var m8=function(a){return(a.message?P(a.message):a.text)||""};
var n8=function(a,b){this.H={};this.A=new C6;for(var c=0;c<T6.length;c++){var d=T6[c],e=new l8(-c,a,b,d);H(this,e);e.subscribe("settingChange",this.J,this);this.H[d.option.toString()]=e;D6(this.A,e,!0)}c=new E6(F6(),-T6.length,P("YTP_RESET"));H(this,c);c.R("click",A(this.J,this,"reset",!0));D6(this.A,c,!0);G6.call(this,a,this.A,P("YTP_OPTIONS"))};
var o8=function(a,b){for(var c in b){var d=a.H[c];if(d){var e=b[c].toString();d.C[e]&&d.Mc(e)}}};
var p8=function(a,b){d8.call(this,P("YTP_AUTO_TRANSLATE"),0,a,b);this.F={}};
var q8=function(a,b){d8.call(this,P("YTP_SUBTITLES"),4,a,b,A(this.jC,this));this.ca=a;this.M=!1;this.F={};this.L=new Q(["div","",["span","",P("YTP_SUBTITLES")],["span","ytp-menuitem-label-count","{{content}}"]]);H(this,this.L);this.D(this.L);this.J=new p8(a,b);H(this,this.J);this.J.subscribe("select",this.bB,this);this.G=new n8(a,b);H(this,this.G);this.G.subscribe("settingChange",this.KF,this);R(this,a,"videodatachange",this.wh);R(this,a,"onApiChange",this.wh);R(this,a,"onCaptionsTrackListChanged",
this.wh);R(this,a,"captionschanged",this.wh);this.wh()};
var r8=function(a){a.fontFamily=s8.indexOf(a.fontFamilyOption);a.charEdgeStyle=t8.indexOf(a.charEdgeStyle)};
var u8=function(a,b){d8.call(this,P("YTP_THREED_SHORT"),8,a,b);this.ca=a;this.F=!1;R(this,a,"videodatachange",this.J);this.G=null;this.J()};
var v8=function(a){this.G=a;this.A=new C6("ytp-main-menu-id");H(this,this.A);a=new G6(a,this.A);H(this,a);w6.call(this,a,"ytp-settings-menu");this.K=this.J=null;this.L=!1};
var w8=function(a){if(!a.L){a.L=!0;var b=new h8(a.G,a);H(a,b);b=new q8(a.G,a);H(a,b);b=new c8(a.G,a);H(a,b);b=new k8(a.G,a);H(a,b);b=new u8(a.G,a);H(a,b);b=new g8(a.G,a);H(a,b);b=new f8(a.G,a);H(a,b);a.K=new j8(a.G,a);H(a,a.K);0>=a.A.A.length&&a.J.fa()}};
var x8=function(a,b){D6(a.A,b);a.J&&a.J.show()};
var y8=function(a,b){a.B&&1>=a.A.A.length&&a.fa();a.A.remove(b);0>=a.A.A.length&&a.J&&a.J.fa()};
var z8=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:P("YTP_SETTINGS")}];Q.call(this,d);this.element.innerHTML=Ah?'<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-39" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-39" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-39" /></svg>';
this.C=c;this.C.subscribe("show",this.D,this);this.ca=a;this.R("click",this.F);R(this,this.ca,"onPlaybackQualityChange",this.A);R(this,a,"videodatachange",this.A);R(this,a,"webglsettingschanged",this.A);Kb(this,p6(b.A,this.element,1));this.A();this.D(!1)};
var A8=function(a,b){Q.call(this,["button",["ytp-size-button","ytp-button"],{title:"{{title}}"}]);this.A=a;this.F=b.A;this.D=null;R(this,a,"sizestylechange",this.C);R(this,a,"fullscreentoggled",this.C);R(this,a,"presentingplayerstatechange",this.C);this.C();this.R("click",this.G);Kb(this,p6(this.F,this.element,1))};
var B8=function(a,b){var c=P("YTP_SUBTITLES");"Subtitles/CC"==c&&(c="Subtitles/closed captions");Q.call(this,["button",["ytp-subtitles-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:c}]);this.A=a;c=this.A.W().Y;this.element.innerHTML=-1!=C8.indexOf(c)?Ah?'<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-8" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-8" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-8" /></svg>':
Ah?'<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-45" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-45" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-45" /></svg>';R(this,a,"videodatachange",this.C);R(this,a,"onApiChange",
this.C);R(this,a,"onCaptionsTrackListChanged",this.C);R(this,a,"captionschanged",this.C);this.C();this.R("click",this.D);Kb(this,p6(b.A,this.element,1))};
var D8=function(a,b){Q.call(this,["div",["ytp-time-display","notranslate"],["span","ytp-time-current","{{currenttime}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"]]);this.F=new Q(["button",["ytp-live-badge","ytp-button"],{disabled:!0},P("YTP_LIVE")]);H(this,this.F);this.F.o(this.element);this.C=a;this.K=b.A;this.A=null;this.G=this.D=!1;this.J=this.H=null;this.R("click",this.LF);R(this,a,"presentingplayerstatechange",this.xh);R(this,a,"liveviewshift",this.MF);R(this,
a,"videodatachange",this.NF);var c=a.getVideoData();c&&(this.D=c.Fa,L(this.element,"ytp-live",this.D));this.xh()};
var E8=function(a,b){Q.call(this,["div","ytp-volume-control",["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-track"],["div","ytp-volume-slider-handle"]]]]);this.A=a;this.va=b.A;this.Z=!1;this.ia=this.C=0;this.F=new Q(["button",["ytp-mute-button","ytp-button"],{title:"{{title}}"}]);H(this,this.F);this.F.o(this.element,0);this.F.R("click",
this.Xz,this);this.ga=this.ra["ytp-volume-slider"];this.ha=this.ra["ytp-volume-slider-handle"];this.na=this.ra["ytp-volume-slider-track"];this.L=this.O=window.NaN;this.da=-1;this.A.W();this.aa=new Az(this.Qs,null,this);H(this,this.aa);this.Y=new N2(this.ga,!0);H(this,this.Y);this.Y.subscribe("dragstart",this.SA,this);this.Y.subscribe("dragmove",this.RA,this);this.Y.subscribe("dragend",this.QA,this);R(this,a,"onVolumeChange",this.RF);R(this,this.ra["ytp-volume-panel"],"keydown",this.TA);R(this,this.element,
"mousewheel",this.PF);R(this,a,"videodatachange",this.QF);this.K=!1;this.J=this.H=this.D=this.G=this.M=null;this.U=this.ea=!1;this.S=new Ud(this.Wu,125,this);H(this,this.S);this.Z=!1;F8(this,this.A.Cb(),this.A.sc());Kb(this,p6(b.A,this.F.element,1))};
var G8=function(a,b){var c=(b-a.da)/250;return 1<=c?a.L:a.O+(a.L-a.O)*c};
var H8=function(a,b,c){for(var d="",e=!0,f=0;f<a.length;f++){var k=a[f];y(k)?d+=k:e?(d+=k+(b[f]-k)*c,e=!1):(d+=","+(k+(b[f]-k)*c)+" ",e=!0)}return d};
var F8=function(a,b,c){var d=Math.round(b),e=d+"% "+P("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+P("YTP_SCREENREADER_VOLUME_MUTED"):""),f=c?0:b/100;if(a.A.W().V){var k;k=0==f?'<div class="ytp-icon ytp-icon-volume-muted"></div>':0<f&&.5>f?'<div class="ytp-icon ytp-icon-volume-low"></div>':'<div class="ytp-icon ytp-icon-volume-high"></div>';k!=a.qa&&(a.F.element.innerHTML=k,a.qa=k)}else if(k=f?.5*Math.ceil(f/.5):-.5,a.L!=k){var l=I();(0,window.isNaN)(a.O)?(a.O=a.L=k,a.da=l,a.Qs(l)):(a.O=G8(a,l),a.L=
k,a.da=l,a.aa.start())}Bq(a,"valuenow",d);Bq(a,"valuetext",e);Bq(a.F,"title",c?P("YTP_UNMUTE"):P("YTP_MUTE"));r6(a.va);c=(a.Z?72:48)*f;a.ha.style.left=c+"px";a.na.style.width=c+"px";a.C=b;a.K&&I8(a)};
var J8=function(a,b,c){b={src:"//www.gstatic.com/youtube/media/beyond/"+b,preload:"auto"};c&&(b.loop="loop");c=new wq(["audio",b]);H(a,c);c.o(a.element);return c.element};
var I8=function(a){var b=a.A.sc()?0:a.C/100;a.M.volume=b;a.G.volume=b;a.D.volume=b;a.H.volume=b;a.J.volume=b};
var K8=function(a,b){a.ea||(b&&!a.U?a.S.start():!b&&a.U&&(a.S.isActive()?a.S.stop():(a.D.pause(),a.G.play())));a.U=b};
var L8=function(a,b){var c=a.W(),d="gaming"==c.o?"gaming.youtube.com":KG(c);Q.call(this,["a",["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],{href:"{{url}}",target:"_blank",title:P("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button"}]);"gaming"==c.o?(this.element.innerHTML=Ah?'<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-26" /><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-27" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-28" /><g id="ytp-svg-29"><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-26" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-27" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-26" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-28" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-27" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-29" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-29" /></svg>',
K(this.element,"ytp-youtube-gaming-button")):this.element.innerHTML=Ah?'<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-23" /><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-24" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-25" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-23" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-23" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-24" /></svg>';
this.A=a;this.R("click",this.D);R(this,a,"videodatachange",this.C);this.C();Kb(this,p6(b.A,this.element,1))};
var M8=function(a,b,c){zv.call(this);var d=a.W();this.ca=a;this.C=b;this.S=window.NaN;this.L=null;this.J=c;this.J.subscribe("autohideupdate",this.FF,this);c=!qy(nz(a));var e=new Q(["div","ytp-gradient-bottom"]);H(this,e);Uq(a,e.element,8);this.H=new Pq(e,250,c,100);H(this,this.H);this.B=new Q(["div","ytp-chrome-bottom",["div","ytp-chrome-controls"]]);H(this,this.B);Uq(a,this.B.element,8);this.G=new Pq(this.B,250,c,100);H(this,this.G);var f=this.B.element.children[0];this.o=new v8(a);H(this,this.o);
Uq(a,this.o.element,6);this.o.subscribe("show",this.wC,this);this.o.subscribe("show",b.gC,b);this.D=new J7(a,b);H(this,this.D);this.D.o(this.B.element,0);c=new t7(a,b);H(this,c);Uq(a,c.element,4);this.D.subscribe("height-change",c.bF,c);c=new w7(a);H(this,c);Uq(a,c.element,4);c=new wq(["div","ytp-left-controls"]);H(this,c);c.o(f);e=new F7(a,b,!1);H(this,e);e.o(c.element);e=new C7(a,b);H(this,e);e.o(c.element);e=new F7(a,b,!0);H(this,e);e.o(c.element);this.A=new E8(a,b);H(this,this.A);this.A.o(c.element);
this.A.xb(d.nb);this.K=new D8(a,b);H(this,this.K);this.K.o(c.element);e=new wq(["div","ytp-right-controls"]);H(this,e);e.o(f);f=new B8(a,b);H(this,f);f.o(e.element);f=new z8(a,b,this.o);H(this,f);this.o.J=f;f.o(e.element);!d.Ab&&d.uc&&(f=new L8(a,b),H(this,f),f.o(e.element));f=new A8(a,b);H(this,f);f.o(e.element);f=new Y7(a);H(this,f);Uq(a,f.element,4);f=new $7(a,b,this.o);H(this,f);f.o(e.element);d.ac&&(f=new s7(a,b),H(this,f),f.o(e.element));vt().webkitSetPresentationMode&&(f=new B7(a,b),H(this,
f),f.o(e.element));this.F=new z7(a,b);H(this,this.F);this.F.o(e.element);this.O=new Az(pa(this.Kj,!1),void 0,this);d.nb&&(b=new N2(this.A.element),H(this,b),b.subscribe("hoverstart",this.JF,this),b=new N2(c.element),H(this,b),b.subscribe("hoverend",this.IF,this));S(this,a,"resize",this.Vm);S(this,a,"fullscreentoggled",this.GF);S(this,a,"progresssync",pa(this.Kj,!0));S(this,a,"presentingplayerstatechange",this.HF);this.Vm()};
var N8=function(a){var b=a.ca.W(),c;if(c=!!a.J.A&&!b.isMobile&&nz(a.ca).jb()){if(c=b.experiments.ma("smooth_progress_bar"))a=a.D,a.C.W(),c=.25>S2(a.A)/a.G/(10*(window.devicePixelRatio||1));c=c||b.experiments.ma("always_request_animation_frame")}return c};
var O8=function(a,b){a.ca.W();qy(nz(a.ca))||b?b&&(a.G.fa(),a.H.fa(),a.C.A.qg(1)):b||(a.G.show(),a.H.show(),a.Kj(!0))};
var P8=function(a){Q.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"},"{{title}}"],["a","ytp-title-channel-name",{href:"{{channelNameLink}}",target:"_blank"},"{{channelName}}"]]]);this.A=a;this.C=null;this.H=this.ra["ytp-title-link"];this.G=this.ra["ytp-title-channel-logo"];this.F=null;R(this,a,"videodatachange",
this.D);R(this,a,"videoplayerreset",this.D);this.D()};
var Q8=function(a){var b=a.A.getVideoData(),c=b.videoId&&2==a.A.getPresentingPlayerType();c&&b.videoId==a.F?K(a.element,"ytp-title-extra-info"):(Zd(a.element,"ytp-title-extra-info"),c&&(b.author&&b.Sh&&b.profilePicture?R8(a,b.videoId,b.author,b.Sh,b.profilePicture):(c=JG(a.A.W(),b.videoId,!1),Bj(c,{method:"GET",kb:A(a.J,a,b.videoId),withCredentials:!0}))))};
var R8=function(a,b,c,d,e){d=a.A.W().protocol+"://"+KG(a.A.W())+d;a.G.style.backgroundImage="url("+e+")";Bq(a,"channelImageLink",d);Bq(a,"channelNameLink",d);Bq(a,"channelName",P("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.F=b;Q8(a)};
var S8=function(a,b,c){Q.call(this,["button",["ytp-watch-later-button","ytp-button"],{title:"{{title}}","data-tooltip-image":"{{image}}"}]);this.D=a;this.H=b.A;this.G=c;K(c,"ytp-watch-later-button-visible");this.F=null;this.A=this.C=!1;this.R("click",this.SF,this);R(this,a,"videoplayerreset",this.UF);R(this,a,"WATCH_LATER_VIDEO_ADDED",this.fy);R(this,a,"WATCH_LATER_VIDEO_REMOVED",this.zA);R(this,a,"WATCH_LATER_ERROR",this.TF);T8(this,2);U8(this);Kb(this,p6(b.A,this.element,3))};
var U8=function(a,b){if(b)a.update({title:b,image:null});else{var c=a.D.W();c.userDisplayName?a.update({title:P("YTP_WATCH_LATER_AS_2",{USER_NAME:c.userDisplayName}),image:c.userDisplayImage}):a.update({title:P("YTP_WATCH_LATER"),image:null})}r6(a.H)};
var T8=function(a,b){if(b!=a.F){var c=a.element;switch(b){case 3:var d=Eh();c.innerHTML=d;break;case 1:c.innerHTML=Ah?'<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-52" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-52" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-52" /></svg>';
break;case 2:c.innerHTML=Ah?'<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-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 4:c.innerHTML=Ah?'<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.F=
b}};
var V8=function(a){var b=a.W();Q.call(this,["a",["ytp-watermark","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","aria-label":P("YTP_URL_NAVIGATE_TO",{WEBSITE:KG(b)}),"data-sessionlink":"feature=player-watermark"}]);this.element.innerHTML=Ah?'<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-23" /><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-24" /><path d="m 34,5.07 40,0 0,24 -40,0 z" id="ytp-svg-25" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-23" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-23" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-24" /></svg>';
this.C=a;this.A=null;R(this,a,"videodatachange",this.D);this.D()};
var W8=function(a){zv.call(this);GH();var b=a.W(),c=GE(a);this.o=a;Mfa(this);var d=nz(a);this.Ga=!1;this.Ca=!0;this.va=!1;var e=new O6(a);H(this,e);Uq(a,e.element,4);var f=new q7(a);H(this,f);Uq(a,f.element,4);this.O=new i6(a);H(this,this.O);Uq(a,this.O.element,4);var k=new Q(["div","ytp-gradient-top"]);H(this,k);Uq(a,k.element,1);this.la=new Pq(k,250,!0,100);H(this,this.la);this.D=new Q(["div","ytp-chrome-top"]);H(this,this.D);Uq(a,this.D.element,1);this.ha=new Pq(this.D,250,!0,100);H(this,this.ha);
this.V=new U6(a);H(this,this.V);this.V.o(e.element);this.B=new Z5(c,A(this.LE,this),b.useTabletControls);H(this,this.B);this.B.subscribe("autohideupdate",this.ME,this);this.A=new l6(a,b.useTabletControls||b.isMobile);H(this,this.A);Uq(a,this.A.element,4);this.K=new t6(a,this,A(this.Uq,this));H(this,this.K);Uq(a,this.K.element,2);this.U=new qB(a,this.K);H(this,this.U);Uq(a,this.U.element,5);this.S=!1;k=A(this.$l,this);this.G=new Z6(a,k);H(this,this.G);Uq(a,this.G.element,5);this.Z=new b7(a,this,k);
H(this,this.Z);this.Z.o(this.D.element);k=new P8(a);H(this,k);k.o(this.D.element);k=new wq(["div","ytp-chrome-top-buttons"]);H(this,k);k.o(this.D.element);var l=A(this.am,this);this.H=new d7(a,l);H(this,this.H);Uq(a,this.H.element,5);this.aa=new f7(a,this,l,this.D.element);H(this,this.aa);this.aa.o(k.element);b.kg&&(l=new S8(a,this,this.D.element),H(this,l),l.o(k.element));l=A(this.Rm,this);this.J=new g7(a,this,l);H(this,this.J);Uq(a,this.J.element,5);this.ia=new j7(a,this,0,l,this.D.element);H(this,
this.ia);this.ia.o(k.element);k=new k7(a);H(this,k);Uq(a,k.element,3);this.F="1"==b.B?new M8(a,this,this.B):null;b.La?(l=new V5(c,A(this.Wp,this),A(this.DA,this),A(this.Vp,this)),H(this,l)):S(this,c,"click",A(function(a){this.Vp(a)||this.Wp(a)},this));
S(this,c,"touchstart",this.EA);this.L=new J6(a);H(this,this.L);this.L.subscribe("show",this.As,this);this.qa=!1;!b.Ab&&b.wc&&(l=new V8(a),H(this,l),Uq(a,l.element,7));l=new W6(a);H(this,l);Uq(a,l.element,4);this.ga=a.getVideoData().videoId;this.C=null;this.na=[];this.ea=new Q(["div","",{tabindex:0}]);this.ea.R("focus",this.Tv,this);this.da=new Q(["div","",{tabindex:0}]);this.da.R("focus",this.Uv,this);l=a.Ba();l.setAttribute("aria-label",P("YTP_PLAYER_NORMAL"));switch(b.color){case "white":K(l,"ytp-color-white");
break;case "blue":K(l,"ytp-color-blue")}(this.Y=b.useTabletControls?null:new Q6(a,c,this.L,this.B,k,this.O,A(this.Tn,this)))&&H(this,this.Y);S(this,a,"resize",this.Qm);S(this,a,"fullscreentoggled",this.NE);S(this,a,"presentingplayerstatechange",this.OE);S(this,a,"videodatachange",this.zs);S(this,a,"videoplayerreset",this.qA);S(this,a,"autonavvisibility",this.fh,this);S(this,a,"cardstatechange",this.Vq,this);S(this,a,"minimized",this.$d,this);S(this,a,"onFrescaStateChange",this.$d,this);X8(this,d);
this.fh();this.Qm();this.Ea=[c.C,f.element,e.element,this.O.element,this.V.element]};
var HE=function(a){a.o.app.W();AH(a.o);return a.va||a.S||a7(a.G)||h7(a.J)||e7(a.H)||AH(a.o)||a.o.app.W().ll};
var Y8=function(a,b){if(!b)return!1;for(var c=0;c<a.Ea.length;c++)if(yf(a.Ea[c],b))return!1;return Xd(b,"ytp-player-content")||Xd(b,"html5-endscreen")||b==a.o.Ba()?!1:!0};
var Z8=function(a,b){if("3"==a.o.W().B){var c=nz(a.o);if((T(c,8)||T(c,4))&&(!T(c,2)||a.o.W().experiments.ma("disable_native_controls_ended"))&&(c=Wl(b),"VIDEO"!=c.nodeName||c.controls))return!0}return!1};
var IE=function(a){return!a.o.W().experiments.F&&a.o.Ja()};
var X8=function(a,b){a.B.bb(128,!(b.jb()&&!T(b,32)));var c=3==a.o.getPresentingPlayerType();a.B.bb(256,c);var c=a.o.Ba(),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"));Eb(a.na,d)||(ae(c,a.na),a.na=d,Yd(c,d));a.F&&O8(a.F,HE(a));d=a.o.W();var e=qy(b);L(c,"ytp-hide-controls","1"!=d.B||e);L(c,"ytp-native-controls","3"==d.B&&!e&&!T(b,2));if(T(b,128)){a.C||
(a.C=new c6(a.o),H(a,a.C),a.C.o(c),Uq(a.o,a.C.element,4));var c=a.C,f=b.o,e=c.D.W();d=f.message;var k="embedded"==e.Aa,l=f.messageKey,m,f=!1;"YTP_ERROR_GENERIC_WITHOUT_LINK"!=l||e.Ab?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==l?(m="https://get.adobe.com/flashplayer/",k=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=l||e.Ab||(m="//"+KG(e)+"/html5",l="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(m="//support.google.com/youtube/?p=player_error1",l="YTP_ERROR_GENERIC_WITH_LINK",DG(e)&&!e.L&&
(f=!0));m&&(d=P(l,{BEGIN_LINK:'<br/><a href="'+m+'"'+(k?' target="_blank"':"")+">",END_LINK:"</a>"}));for(m=0;m<c.C.length;m++)c.za(c.C[m]);c.C=[];Bq(c,"content",new J5(d));if(f)for(m=A(c.F,c),d=c.element.getElementsByTagName("a"),e=0;e<d.length;e++)k=R(c,d[e],"click",m),c.C.push(k);a.C.show()}else a.C&&(a.C.dispose(),a.C=null)};
var $8=function(a,b,c){var d=c?b.element:a.element;window.document.activeElement&&yf(d,window.document.activeElement)&&(c?a:b).focus()};
var a9=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Rf(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=a9(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};
var Mfa=function(a){a=a.o.W();var b=a.V;if(At("ytp-normal-css-loaded")){var c=At("ytp-sprite-mode-css-loaded");b!=c&&Fi(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}};
var b9=function(){};
var Z=function(a,b){if(b<a.C){var c=b+a.D,d=a.o[c];return d===c9?a.o[c]=[]:d}d=a.A[b];return d===c9?a.A[b]=[]:d};
var d9=function(a){var b=a;a=Nfa;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]||c9):this.A[c]=this.A[c]||c9};
var e9=function(a,b){Rj.call(this);var c=b;c instanceof Mh||(c=new Mh(c));var c=this.Y=c,d;a:{var e=c.args.legacy_config;if(e&&(e=e?be(e):null)){var e=new d9(e),e={el:Z(e,1),ps:Z(e,2),autonav:Z(e,3),autoplay:Z(e,4),eventid:Z(e,5),fexp:Z(e,6),fflags:Z(e,7),isHtml5MobileDevice:Z(e,8),legacyBehavior:Z(e,9),playerErrorLogFraction:Z(e,10),canWatchLater:Z(e,11),mute:Z(e,12),partnerid:Z(e,13),showinfo:Z(e,14),ss:Z(e,15),watchXlb:Z(e,16),dclk:Z(e,17),ivModule:Z(e,18),iv3Module:Z(e,19),iv3EditModule:Z(e,20),
ivInvideoUrl:Z(e,21),ivLoadPolicy:Z(e,22),atc:Z(e,23),loudness:Z(e,24),infringe:Z(e,25),subtitlesXlb:Z(e,26),ccFont:Z(e,27),ccModule:Z(e,28),ccFontsUrl:Z(e,29),cc3Module:Z(e,30),ttsurl:Z(e,31),ccAsr:Z(e,32),ccContribute:Z(e,33),ccAutoCaps:Z(e,34),ccLoadPolicy:Z(e,35),captionTracks:Z(e,36),captionAudioTracks:Z(e,37),captionTranslationLanguages:Z(e,38),defaultAudioTrackIndex:Z(e,39),cr:Z(e,40),hostLanguage:Z(e,41),hl:Z(e,42),enablecsi:Z(e,43),csiPageType:Z(e,44),c:Z(e,45),cbr:Z(e,46),cbrver:Z(e,47),
cos:Z(e,48),cosver:Z(e,49),cplatform:Z(e,50),cbrand:Z(e,51),cmodel:Z(e,52),cnetwork:Z(e,53),isRtl:Z(e,54),enhanceModule:Z(e,55),enhanceXlb:Z(e,56),regionModule:Z(e,57),previewSplitMode:Z(e,58),status:Z(e,59),reason:Z(e,60),errorcode:Z(e,61),errordetail:Z(e,62),apiaryHost:Z(e,63),apiaryHostFirstparty:Z(e,64),gapiHintOverride:Z(e,65),gapiHintParams:Z(e,66),innertubeApiKey:Z(e,67),innertubeApiVersion:Z(e,68),innertubeContextClientVersion:Z(e,69),loaderurl:Z(e,70),multicameraModule:Z(e,71),multicameraPreroll:Z(e,
72),multifeedMetadataList:Z(e,73),allowEmbed:Z(e,74),allowedDomains:Z(e,75),ypcItemTitle:Z(e,76),ypcItemUrl:Z(e,77),ypcItemThumbnail:Z(e,78),ypcOfferHeadline:Z(e,79),ypcOfferDescription:Z(e,80),ypcOfferId:Z(e,81),ypcOfferButtonText:Z(e,82),ypcFullVideoMessage:Z(e,83),ypcModule:Z(e,84),ypcVid:Z(e,85),ypcLicenseCheckerModule:Z(e,86),heartbeatServerUrl:Z(e,87),ypcLicenseSessionToken:Z(e,88),purchaseId:Z(e,89),heartbeatToken:Z(e,90),heartbeatInterval:Z(e,91),heartbeatRetries:Z(e,92),ypcClickwrapModule:Z(e,
93),ypcClickwrapMessage:Z(e,94),livestream:Z(e,95),livePlayback:Z(e,96),authTimeout:Z(e,97),hlsdvr:Z(e,98),streaminglibModule:Z(e,99),frescaModule:Z(e,100),frescaPreroll:Z(e,101),frescaXlb:Z(e,102),enableCardio:Z(e,103),enableCardioBeforePlayback:Z(e,104),liveChunkReadahead:Z(e,105),innertubeClientVersion:Z(e,106),adHost:Z(e,107),adHostTierId:Z(e,108),coreDbp:Z(e,109),googleCustAge:Z(e,110),googleCustGender:Z(e,111),pyvAdChannel:Z(e,112),showPyvInRelated:Z(e,113),tagForChildDirected:Z(e,114),playerWide:Z(e,
115),enablesizebutton:Z(e,116),bannerUrl:Z(e,117),profilePicture:Z(e,118),channelTitle:Z(e,119),spacecastAddress:Z(e,120),timestamp:Z(e,121),fmtList:Z(e,122),urlEncodedFmtStreamMap:Z(e,123),adaptiveFmts:Z(e,124),licenseInfo:Z(e,125),idup:Z(e,126),dashmpd:Z(e,127),hlsvp:Z(e,128),hlsFormats:Z(e,129),probeUrl:Z(e,130),storyboardSpec:Z(e,131),liveStoryboardSpec:Z(e,132),ismb:Z(e,133),surveySmartpixelUrl:Z(e,134),surveycreativedata:Z(e,135),threedXlb:Z(e,136),threedModule:Z(e,137),threedConverted:Z(e,
138),approxThreedLayout:Z(e,139),threedLayout:Z(e,140),t:Z(e,141),token:Z(e,142),noGetVideoLog:Z(e,143),tmi:Z(e,144),plid:Z(e,145),pltype:Z(e,146),ptchn:Z(e,147),ptk:Z(e,148),oid:Z(e,149),idpj:Z(e,150),ldpj:Z(e,151),userAge:Z(e,153),userGender:Z(e,154),sw:Z(e,155),remarketingUrl:Z(e,156),ppvRemarketingUrl:Z(e,157),rmktenabled:Z(e,158),baseurl:Z(e,159),videostatsPlaybackBaseUrl:Z(e,160),subscribed:Z(e,161),engaged:Z(e,162),vid:Z(e,163),uid:Z(e,164),aid:Z(e,165),focenabled:Z(e,166),socialenabled:Z(e,
167),ytfocenabled:Z(e,168),ytfochistoryenabled:Z(e,169),ssrt:Z(e,170),delay:Z(e,171),cl:Z(e,172),osid:Z(e,173),vm:Z(e,174),videoId:Z(e,175),title:Z(e,176),lengthSeconds:Z(e,177),keywords:Z(e,178),ucid:Z(e,179),allowRatings:Z(e,180),avgRating:Z(e,181),viewCount:Z(e,182),author:Z(e,183),thumbnailUrl:Z(e,184),isListed:Z(e,185),liveDefaultBroadcast:Z(e,186),vq:Z(e,187),watermark:Z(e,188),accountPlaybackToken:Z(e,189),watchAjaxToken:Z(e,190),yvaXlb:Z(e,191),yvaModule:Z(e,192),yvaPreroll:Z(e,193),ypcXlb:Z(e,
194),authuser:Z(e,195),pageid:Z(e,196),userDisplayName:Z(e,197),userDisplayImage:Z(e,198),playlistTitle:Z(e,199),playlistLength:Z(e,200),index:Z(e,201),iurl:Z(e,202),iurlmq:Z(e,203),iurlhq:Z(e,204),iurlsd:Z(e,205),iurlmaxres:Z(e,206),iurlWebp:Z(e,207),iurlmqWebp:Z(e,208),iurlhqWebp:Z(e,209),iurlsdWebp:Z(e,210),iurlmaxresWebp:Z(e,211),start:Z(e,212),end:Z(e,213),resume:Z(e,214),of:Z(e,215),list:Z(e,216),q:Z(e,217),referrer:Z(e,218),sdetail:Z(e,219),sourceid:Z(e,220),externalList:Z(e,221),forcedExperiments:Z(e,
222),cctp:Z(e,223),adformat:Z(e,224),listtype:Z(e,225),privembed:Z(e,226),afvInstreamMax:Z(e,227),adLanguageIso6392:Z(e,228),adTag:Z(e,229),afvAdTagRestrictedToInstream:Z(e,230),maxDynamicAllocationAdTagLength:Z(e,231),asLaunchedInCountry:Z(e,232),adFlags:Z(e,233),adPreroll:Z(e,234),aftv:Z(e,235),invideo:Z(e,236),dynamicAllocationAdTag:Z(e,237),gutTag:Z(e,238),pyvInRelatedCafeExperimentId:Z(e,239),afvAdTag:Z(e,240),mJ:Z(e,241),loeid:Z(e,242),adDevice:Z(e,243),cafeExperimentId:Z(e,245),adsenseVideoDocId:Z(e,
246),fw:Z(e,247),adSlots:Z(e,248),shortform:Z(e,249),tpasPartnerId:Z(e,250),instream:Z(e,251),trueview:Z(e,252),midrollFreqcap:Z(e,253),mpvid:Z(e,254),mpu:Z(e,255),afv:Z(e,256),tpasAdTypeId:Z(e,257),tpasVideoId:Z(e,258),sffb:Z(e,259),contentOwnerName:Z(e,260),afvMergeEnabled:Z(e,261),excludedAds:Z(e,262),noAfvInstream:Z(e,263),adAge:Z(e,264),adGender:Z(e,265),adLoggingFlag:Z(e,266),showContentThumbnail:Z(e,267),cid:Z(e,268),afvInvideoAdTag:Z(e,269),allowHtml5Ads:Z(e,270),supportedWithoutAds:Z(e,271),
instreamLong:Z(e,272),adBreaks:Z(e,273),afcRmFallback:Z(e,275),allowAdInAutoplay:Z(e,276),c4:Z(e,277),dbp:Z(e,278),fqsf:Z(e,279),gptMigration:Z(e,280),xfp:Z(e,281),midrollPrefetchSize:Z(e,282),trueviewLactt:Z(e,283),xfpTag:Z(e,284),advideo:Z(e,285),ad3Module:Z(e,286),vmap:Z(e,287),serverPrefetchedVast:Z(e,288),amsBaseTag:Z(e,289),fadeOutStartMilliseconds:Z(e,290),fadeOutDurationMilliseconds:Z(e,291),fadeInStartMilliseconds:Z(e,292),fadeInDurationMilliseconds:Z(e,293),applyFadeOnMidrolls:Z(e,294),
adModule:Z(e,295),pla:Z(e,296),plaAdTag:Z(e,297),vastAdsModule:Z(e,298),forcedSkipOffset:Z(e,299),enabledEngageTypes:Z(e,300),freewheelAdTag:Z(e,301),postAdRequests:Z(e,302),enablejsapi:Z(e,303),ssl:Z(e,304),baseYtUrl:Z(e,306),controls:Z(e,307),disablekb:Z(e,308),jsapicallback:Z(e,309),svt:Z(e,310),canplaylive:Z(e,311),storeUserVolume:Z(e,312),useMediaVolume:Z(e,313),sslStream:Z(e,314),dash:Z(e,315),liveStartWalltime:Z(e,316),oauthToken:Z(e,317),visitorData:Z(e,318),vvt:Z(e,319),osig:Z(e,320),paygated:Z(e,
321),videoMastheadAdQuartileUrls:Z(e,322),tvList:Z(e,323),pyvViewBeaconUrl:Z(e,324),pyvQuartile25BeaconUrl:Z(e,325),pyvQuartile50BeaconUrl:Z(e,326),pyvQuartile75BeaconUrl:Z(e,327),pyvQuartile100BeaconUrl:Z(e,328),pyvBillableUrl:Z(e,329),rco:Z(e,330),cco:Z(e,331),feature:Z(e,332),isFling:Z(e,333),ctrl:Z(e,334),ytr:Z(e,335),ytrcc:Z(e,336),startseconds:Z(e,337),sentiment:Z(e,338),spacecastFormatMap:Z(e,339),spacecastAdaptiveFormats:Z(e,340),suggestedquality:Z(e,341),rvs:Z(e,342),urlEncodedThirdPartyMedia:Z(e,
343),vssCredentialsToken:Z(e,344),vssCredentialsType:Z(e,345),ypcGid:Z(e,346),ypcPreview:Z(e,347),ypcOrigin:Z(e,348),requiresPurchase:Z(e,349),mdx:Z(e,350),retryneterr:Z(e,351),itct:Z(e,352),ypcOverlayTimeout:Z(e,353),app:Z(e,354),cweb:Z(e,355),pyvConvUrl:Z(e,356),cver:Z(e,357),on3g:Z(e,358),autohide:Z(e,359),useNativeControls:Z(e,360),useTabletControls:Z(e,361),codeDbp:Z(e,362),rel:Z(e,363),attrib:Z(e,364)},f={};for(d in e){var k=f9[d]?f9[d]:d.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();f[k]=
e[d]}d=f;break a}d=null}var l;if(d){c=c.args;e=[];for(l in c)Ofa[l]||(d.hasOwnProperty(l)?typeof c[l]!=typeof d[l]?e.push("wrong type. key ["+l+"]: ("+typeof c[l]+") "+c[l]+"; ("+typeof d[l]+") "+d[l]):c[l]!==d[l]&&e.push("values differ. key ["+l+"]: ("+typeof c[l]+") "+c[l]+"; ("+typeof d[l]+") "+d[l]):e.push("missing. key ["+l+" ]: ("+typeof c[l]+") "+c[l]));l=e}else l=[];c=Math.floor(Math.random()*l.length);l=l.slice(c).concat(l.slice(0,c));for(c=0;c<l.length;c++)Fi(Error("Discrepancy in legacy config: "+
l[c]));l=this.Y.args||{};this.X=new rG(l);H(this,this.X);this.tb=yu("detailpage"==this.X.Aa&&"blazer"!=this.X.o||"books"==this.X.o,l.enablesizebutton);this.na=yu(!1,l.player_wide);this.O=this.X.cb&&yu(!1,l.external_list);this.Nb=this.X.cb&&yu(!1,l.external_play_video);this.la=new zv(this);H(this,this.la);this.M=new hH(this);H(this,this.M);this.Wa=new hH(this,1);H(this,this.Wa);this.F=new N5(this);H(this,this.F);this.F.subscribe("resize",this.ZC,this);this.K=1;this.La={};this.X.storeUserVolume?(l=
ij("yt-player-volume")||{},c=l.volume,l={volume:(0,window.isNaN)(c)?100:ke(Math.floor(c),0,100),muted:!!l.muted}):l={volume:100,muted:this.X.mute};this.U=l;this.ca=this.X.cb?new gH(this,1):new eH(this,1);H(this,this.ca);this.ia=this.B=null;this.Ca={};l=this.X;c=new TJ;yG(l)&&(c.B=!0,c.A=.1);l.Ua&&(c.o=l.Ua/8);this.Ea=new JJ(c);this.Oa={internalvideodatachange:this.qy,liveviewshift:this.WC,playbackready:this.ry,playbackstarted:this.ty,statechange:this.uy,signatureexpired:this.OA};l=new UJ;c=this.M;
l.A!=c&&(VJ(l),l.F={},l.A=c);c={};c.loaded=A(this.Hp,this);c.unloaded=A(this.Ip,this);c.destroyed=A(this.zl,this);c.command_pause=g9(this.pauseVideo,this);c.command_play=g9(this.Re,this);c.command_seek=g9(this.Yf,this);c.command_redirect_controls=A(this.qr,this);c.command_stop_redirect_controls=A(this.aj,this);c.publish_external_event=A(this.Pi,this);l.G=c;this.W().J.subscribe("vast_info_card_add",pa(l.K,"vast_info_card_add"),l);this.C=l;H(this,this.C);this.J=new G_(this.X,"",this.C);l=new L1(this.X,
1,this.J,this.F,A(this.P,this));h9(this,l,this.Oa);this.o=l;this.o.ha=this.Ea;this.qb={airplayactivechange:this.gy,airplayavailabilitychange:this.hy,beginseeking:this.TC,endseeking:this.UC,internalaudioformatchange:this.wy,internalvideodatachange:this.aD,internalvideoformatchange:this.pB,playbackstalledatstart:this.UA,progresssync:this.YC,seekto:this.$C,onLoadProgress:this.Kz,onVideoProgress:this.rB,playbackready:this.mA,statechange:this.XC,connectionissue:this.az,heartbeatparams:this.VC,videoelementevent:this.bD};
this.L=this.D=null;this.Ua=this.Va=-1;this.ga=this.H=this.G=null;this.da={};this.qa=null;this.gb=new Ud(this.F.uh,16,this.F);H(this,this.gb);this.Ga=!1;this.Z=!0;this.va=this.A=null;this.V=1;this.ha=null;this.Ob=this.ab=!1;this.nb=null;this.aa=0;this.Ia=new f6(this.F.element);H(this,this.Ia);this.$a=0;this.subscribe("crn_"+e9.B,this.ny,this);this.subscribe("crx_"+e9.B,this.oy,this);this.subscribe("crn_"+e9.A,this.qp,this);this.subscribe("crx_"+e9.A,this.qp,this);this.F.initialize(a);Ah=this.X.V;l=
new Aw(this.Y.args);cx(l)&&(this.o.$g(l,A(this.pj,this)),By(this.X)&&(c=l.videoId,c=(d=ij("yt-player-restore-playhead"))?d[c]:void 0,c&&(l.startSeconds=c)),jj("yt-player-restore-playhead"),(this.X.Ca||this.X.zd&&this.X.experiments.O)&&Q1(this.o));this.J.A("fs",void 0);l=this.F;l.isDisposed();c=l.app.W();c.H||l.addClass("tag-pool-enabled");c.Ab&&l.addClass("house-brand");"gvn"==c.o&&l.addClass("ytp-gvn");l.da?(l.L=Ii("yt-dom-content-change",l.df,l),R(l,window,"resize",l.df,l)):l.aa?R(l,window,"resize",
l.df,l):(c=Fu()?A(l.$u,l):A(l.df,l),l.L=Ci(c,250));l=this.ca;l.o=this.F.element;for(var m in l.B)l.o[m]=l.B[m];for(m in l.C)l.o[m]=l.C[m];m=Jh("fullscreenchange");"msfullscreenchange"==m&&(m="MSFullscreenChange");m&&S(this.la,window.document,m,this.xz);S(this.la,window,"resize",this.CA);l=this.Y.args;i9(this);m=j5(this);this.Pa("onVolumeChange",this.U);l&&px(l)&&((c=By(this.X))&&!this.O&&(l.fetch=0),j9(this,l),c&&!this.O?k9(this):cx(m)||(l=this.A,c=A(this.Lp,this),l.G=c,l.F&&Ai(l.G,0)));if(l=this.Y.args.jsapicallback)ha(l)||
(l=t(l)),l&&g9(A(l,r,this.X.qe),r);this.X.$a||(np("embedded"==this.X.Aa),this.X.tg=OG(this.X)&&!kb(vp()));l9(this,this.o);l=wt(this.X.K);"fmt.noneavailable"==l?pJ(this.o,l,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0):"html5.missingapi"==l?pJ(this.o,l,"YTP_ERROR_UNSUPPORTED_DEVICE",void 0):this.X.Ca&&cx(m)?m9(this):"leanback"!=this.X.Aa&&n9(this);this.ea=new W8(this.M);H(this,this.ea);vH(this.Wa,"init")};
var i9=function(a){a.B=p5.getTag(!0,!a.X.K);a.ia=a.B;a.D&&$1(a.D,a.B);fy(a.B,a.V);a.X.useMediaVolume?(a.ha&&a.la.za(a.ha),a.ha=S(a.la,a.B,"volumechange",a.Sz)):a.B.setVolume(a.U.volume,a.U.muted);Ffa(a.F,a.B);a=a.X.qc=a.B;a.src||a.load()};
var o9=function(a){if(a.B){a.ha&&(a.la.za(a.ha),a.ha=null);a.D&&a2(a.D);var b=a.F;b.A&&(qf(b.A),b.A=null);a.X.qc=null;p5.releaseTag(a.B);a.B=null}};
var Yq=function(a,b){a.X.H?(a.ga&&(Tf(a.B,a.ga.left,a.ga.top),eg(a.B,we(a.ga)),a.ga=null),Zq(a.B),a2(a.D),$1(a.D,a.B),fy(a.B,a.V)):p5.releaseTag(b)};
var l9=function(a,b){a.D!=b&&(a.D&&(VJ(a.C),pq(a,"cuerangesremoved",a.D.F.o.o||[]),p9(a)),b!=a.o&&(a.Ca[b.O]=b),a.D=b,b.ha=a.Ea,a.B&&$1(b,a.B),h9(a,b,a.qb),q9(a,b,b.getVideoData()),b.da.o&&r9(a,"dataloaded",b,b.getVideoData()),pq(a,"cuerangesadded",a.D.F.o.o||[]),jy(b.getPlayerState())&&d2(b))};
var h9=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};
var p9=function(a){a2(a.D);var b=a.D,c=a.qb,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.D;b!=a.o&&(c=b.O,a.Ca[c]==b&&delete a.Ca[c]);a.D=null};
var oq=function(a,b){return b?1==b?a.o:a.Ca[b]||null:a.D};
var s9=function(a){var b=a.C,c=BJ();F(c,b.J,b);a.P("videoready",a.getVideoData())};
var t9=function(a){!a.H&&a.Wa.W().tg&&(a.H=new H5(a),u9(a,a.H));if(a.H){var b=Cp();I5(a.H,vp(),b);var c=a.H;c&&!c.J&&c.Xa(a.Wa)&&c.create();b&&a.H.load()}};
var u9=function(a,b){H(a,b);b.subscribe("loaded",a.Hp,a);b.subscribe("unloaded",a.Ip,a);b.subscribe("command_pause",g9(a.pauseVideo,a));b.subscribe("command_play",g9(a.Re,a));b.subscribe("command_seek",g9(a.Yf,a));b.subscribe("command_redirect_controls",a.qr,a);b.subscribe("command_stop_redirect_controls",a.aj,a);b.subscribe("publish_external_event",a.Pi,a)};
var v9=function(a,b){b&&b.J&&("ad"==b.sa&&ae(a.F.element,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),b.destroy())};
var j5=function(a){return a.o.getVideoData()};
var n9=function(a){a.P("initializingmode");w9(a,2)};
var m9=function(a){if(T(a.o.getPlayerState(),128))return!1;a.P("initializingmode");l9(a,a.o);w9(a,3);var b;(b=!a.X.H)||(t("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(o9(a),i9(a),$1(a.o,a.B));R1(a.o);if(T(a.o.getPlayerState(),128))return!1;x9(a,3);return a.Ob=!0};
var y9=function(a){return OG(a.X)&&!!Cp()};
var g9=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);Ai(function(){a.apply(b||this,c)},0)}};
var z9=function(a,b){if(!(0,window.isNaN)(b)&&a.B){var c=1,c=a.X.U?A9:[1],c=1>b?eb(c,function(a){return a>=b}):gb(c,function(a){return a<=b});
a.V!=c&&(a.V=c,a.o==a.D&&fy(a.B,c),a.P("onPlaybackRateChange",c))}};
var B9=function(a,b){var c=oq(a,b);return c?c.Em():a.getVideoData().U};
var C9=function(a,b,c,d){if(a=oq(a,c))d=d||b,b=Wt(b,d,!0),gj("yt-player-quality",d,604800),j2(a,"m",b)};
var D9=function(a,b){var c=oq(a,b);return c?c.$f():0};
var E9=function(a,b){var c=n2(a.o,b);if(a.D&&a.D!=a.o){var d=n2(a.D,b),e;for(e in d)c["ad_"+e]=d[e]}(d=F9(a))&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Wa.vj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return de(c)};
var G9=function(a,b){return 3==a.getPresentingPlayerType()?sy(a.H.O):2==b?a.Ua:a.Va};
var H9=function(a){v9(a,a.G);v9(a,a.H);a.ab=!1;a.aj();z9(a,1);a.La={};a=a.J;var b=a.B;b.C={};b.B={};a.C=!1};
var q9=function(a,b){VJ(a.C);fy(a.B,a.o==a.D?a.V:1);a.Pa("videoplayerreset",b)};
var r9=function(a,b,c,d){if(a.B){if("dataloaded"==b)if(EG(c.W(),d.C),a.D==a.o){a.X.$a||np("embedded"==a.X.Aa);var e=y9(a),f;if(f=!e)f=j5(a).po&&!a.X.isMobile;if(f){var k="YTP_DEVICE_FALLBACK";Q5||ut()||mt("xbox")&&mt("trident")||tt()||(k="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");pJ(a.o,"html5.unsupportedads",k,void 0)}else if(f=j5(a),!dx(f)||e||Sw(a.o.o)){ex(f);e&&w9(a,6);e=!1;!a.G&&i5.Xa(a)&&(a.G=new i5(a),a.G&&u9(a,a.G),e=!0);try{(k=a.G)&&!k.J&&k.Xa(a.Wa)&&k.create()}catch(l){Fi(l),a.o&&
a.o.Zi("ad")}e&&(e=a.G,f=j5(a),k=oq(a),f.subscribe("cuepointupdated",e.gz,e),e.da=f,e=n5(e),null!=e&&(e.H=k),a.G.subscribe("overlay_ad_open",pa(a.Jq,!0),a),a.G.subscribe("overlay_ad_close",pa(a.Jq,!1),a));t9(a);s9(a)}else pJ(a.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else s9(a);1==c.O&&(a.getVideoData().Kh?(k=a.B,k.Yj=!0,k.muted=!0):(a.B.Yj=!1,I9(a,a.U)),a.getVideoData().Fa&&!a.X.ig&&pJ(a.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),k=DA?a.X.Bd:a.getVideoData().je,
ex(d)&&(d.na||d.Oa||d.D.focEnabled||d.D.rmktEnabled||k)&&(k=a.getVideoData(),J9(a,"part2viewed",1,0x8000000000000),J9(a,"engagedview",Math.max(1,1E3*k.Se),0x8000000000000),k.Fa||(k=1E3*k.lengthSeconds,J9(a,"videoplaytime25",.25*k,k),J9(a,"videoplaytime50",.5*k,k),J9(a,"videoplaytime75",.75*k,k),J9(a,"videoplaytime100",k,0x8000000000000),J9(a,"conversionview",k,0x8000000000000))));a.Pa("videodatachange",b,d,c.O)}};
var K9=function(a){var b=!1,c=a.getVideoData();c&&c.A&&oq(a).jb()&&(b=qr[c.A.video.quality],b=1440<=b||1080<=b&&30<c.A.video.fps);b?g6(a.Ia):h6(a.Ia)};
var F9=function(a){a=a.Ia;var b=!a.o,c="";g6(a);if(a.A)try{a.A.getExtension("WEBGL_debug_renderer_info"),c=a.A.getParameter(37446),c=c.replace(/[ :]/g,"_")}catch(d){}b&&h6(a);return c};
var k9=function(a){var b=L9();if(b)if(b.list){if(a.A&&a.A.D.toString()==b.list)if(0<=b.index){var c=b.video;a.M.Ja()&&((c=c[a.A.o])&&c.encrypted_id!=a.A.rb().videoId||(b.index=a.A.o));vx(a.A,b);a.va&&M9(a,a.va)}else a.va=null}else a.fk()};
var j9=function(a,b){if(a.A){a.A.unsubscribe("error",a.fk,a);Mb(a.A);a.A=null;var c=lH(a.C,"playlist");c&&(ob(a.C.o,c),c.destroy())}b&&(a.O&&(b.fetch=0),a.A=new jx(b),a.A.subscribe("error",a.fk,a))};
var J9=function(a,b,c,d){b in a.La||(c=new iq(c,d,{id:b,priority:1}),c.o=e9.A,a.o.F.ib([c]),a.La[b]=c)};
var w9=function(a,b){b!=a.K&&(2==b&&(x9(a,-1),x9(a,5)),a.K=b,a.P("appstatechange",b))};
var x9=function(a,b){a.D&&2==a.D.O?a.Ua!=b&&(a.Ua=b,a.If("onAdStateChange",b)):a.Va!=b&&(a.Va=b,a.If("onStateChange",b))};
var N9=function(a,b,c){var d=new Aw(b);b&&px(b)?(By(a.X)&&!a.O&&(b.fetch=0),j9(a,b)):a.A&&j9(a,null);a.O=yu(!1,b.external_list);By(a.X)&&!a.O&&k9(a);return O9(a,d,c)};
var P9=function(a,b){a.L&&a.L.getVideoData().videoId==b.videoId||(b.Va=!0,a.L||(a.L=new L1(a.X,1,a.J,a.F,A(a.P,a)),a.L.ha=a.Ea),a.L.$g(b,A(a.pj,a)),Q1(a.L,!0))};
var O9=function(a,b,c){if(!cv("_start",a.J.o)){var d=a.J.o;dv("yt_sts","p",d);Yu("_start",void 0,d);a.J.info("srt",0)}if(a.L&&a.L.getVideoData().videoId==b.videoId){d=a.L;a.L=null;b=d;c=a.o;var e=a.Oa,f;for(f in e)c.unsubscribe(f,e[f],a);a.o.dispose();a.o=b;h9(a,b,a.Oa);H9(a)}else{d=oq(a,c);if(!d)return!1;a.gb.stop();Q9(a,c);d.$g(b,A(a.pj,a))}if(!P1(d))return!1;a.Ga&&(d.$a=!1,a.Ga=!1);if(d==a.o)return w9(a,1),m9(a);R1(d);return!0};
var R9=function(a,b,c){c=oq(a,c);b&&c==a.o&&(c.getVideoData().Zf=!0)};
var S9=function(a,b,c){var d=oq(a,c);d&&(Q9(a,c),d.$g(b,A(a.pj,a)),P1(d)&&(EG(d.W(),b.C),d==a.o&&(w9(a,1),n9(a))))};
var T9=function(a,b,c,d){if(!b&&!d)throw Error("Playback source is invalid");if(a.M.Ja()||"detailpage"!=a.X.Aa){c=a.J;var e=c.B;e.C={};e.B={};c.C=!1;a.J.reset();d?(b={video_id:b,list:d},a.Z=!1,U9(a,b,void 0,void 0,void 0)):N9(a,{video_id:b},1)}else a.Nb||"gaming"==a.X.o?a.P("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(b=a.X.getVideoUrl(b,d),d=c||{},d.lact=NA(),a.X.experiments.ma("send_presence_signal_vis_desktop")&&(d.vis=dH(a.X)),t("yt.player.exports.navigate")(b,d,!0),(window.ytspf||{}).enabled?
window.spf.navigate(b):uy(b))};
var U9=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},y(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;j9(a,b);b=a.A;a=A(a.Lp,a);b.G=a;b.F&&Ai(b.G,0)};
var Sx=function(a){By(a.X)&&!a.O&&k9(a);return!(!a.A||!a.A.hasNext())};
var V9=function(a,b){a.Pa("autonavcancel",b)};
var W9=function(a,b){if(a.O&&!a.M.Ja())a.P("onPlaylistNext");else if(a.A)By(a.X)&&!a.M.Ja()?M9(a,"yt.www.watch.lists.next"):a.A.F?a.A.hasNext(b)&&O9(a,sx(a.A,b),1):(sx(a.A,b),a.Z=!1);else if(Jx(a.X,a.getVideoData(),a.A)&&oq(a,1).getVideoData().G){var c=O(oq(a,1).getVideoData().G,zx)[0];T9(a,c.rb().videoId,c.aa,c.Te())}};
var X9=function(a,b){if(a.O&&!a.M.Ja())a.P("onPlaylistPrevious");else if(a.A)if(By(a.X)&&!a.M.Ja())M9(a,"yt.www.watch.lists.prev");else if(a.A.F){var c=a.A;(c.H||b||0<=c.o-1)&&O9(a,ux(a.A,b),1)}else ux(a.A),a.Z=!1};
var M9=function(a,b){var c=t(b);if(c){var d=L9();d&&d.list&&c();a.va=null}else a.va=b};
var Y9=function(a,b){a.O&&!a.M.Ja()?a.P("onPlaylistIndex",b):a.A&&(a.A.F?O9(a,a.A.rb(b),1):a.Z=!1,tx(a.A,b))};
var L9=function(){var a=t("yt.www.watch.lists.getState");return a?a():null};
var Z9=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 iq(1E3*c,1E3*d,b);c.o=e9.B;$9(a,[c],1);return!0};
var $9=function(a,b,c){var d=oq(a,c);d&&(d.F.ib(b),c&&a.getPresentingPlayerType()!=c||pq(a,"cuerangesadded",b))};
var a$=function(a){var b=I(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
var I9=function(a,b,c){a.U=b;c&&a.X.storeUserVolume&&!a.X.useMediaVolume&&!b.unstorable&&gj("yt-player-volume",b,2592E3);b$(a);a.X.useMediaVolume||(b=ec(b),a.X.storeUserVolume||(b.unstorable=!0),a.Pa("onVolumeChange",b))};
var b$=function(a){var b=a.getVideoData();b.Kh||a.B.setVolume(a.U.volume*(a.X.useMediaVolume?Aw.o:b.Jh),a.U.muted)};
var c$=function(a,b){var c=!!b,d=!!a.$a!=c;a.$a=b;d&&(a.J.A("fsc"),a.X.Ng=c,a.F.uh(),a.Pa("fullscreentoggled",c),d=j5(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId},a.Wa.be()&&(c.listId=a.Wa.be()),a.X.experiments.ma("new_stop_video2")&&(c.time=a.getCurrentTime()),a.P("onFullscreenChange",c))};
var pq=function(a,b,c){a.P(b,c);var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&c&&a.Pi(d,O(c,jq))};
var d$=function(a,b){if(a.X.experiments.ma("new_stop_video2")){var c=a.o.getVideoData(),c=new Aw({video_id:a.o.getVideoData().videoId,oauth_token:c.oauthToken});S9(a,c,1)}else Q9(a,b)};
var Q9=function(a,b){Wu(a.aa);a.aa=0;var c=oq(a,b);c&&1!=a.K&&2!=a.K&&(VJ(a.C),1==b&&v9(a,a.G),Z1(c),a.X.experiments.ma("legacy_cue_range_behavior2")||(pq(a,"cuerangesremoved",a.D.F.o.o||[]),c.F.reset()))};
var e$=function(a,b){if(DH(a.Wa)){var c=a.da.play_pause?a.qa:null;c?c.Sd("control_play"):a.Re(b)}};
var f$=function(a,b,c,d,e){var f=oq(a,e);if(!f||2!=f.O&&!gx(f.getVideoData()))(f=a.da.seek?a.qa:null)?f.Sd("control_seek",b):a.Yf(b,c,d,e)};
var g$=function(a,b,c){a.tb=b;a.na=c;a.Pa("sizestylechange",b,c);a.X.experiments.ma("efficient_resize")&&a.F.uh()};
var qH=function(a,b){if(a.M.Ja()!=b)if(Kh())if(b){var c=a.F.element,d=Hh(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Hh(["exitFullscreen","cancelFullscreen","cancelFullScreen"],window.document))&&c.call(window.document);else c$(a,b?2:0)};
var pH=function(a,b,c,d,e){c=a.X.cb&&a.G&&b==a.G.sa?a.G.fe(c,d):(a.X.cb||e)&&a.H&&b==a.H.sa?a.H.fe(c,d):b&&c?(a=lH(a.C,b))?a.fe(c,d):null:null;return c};
var h$=function(a,b,c){if(b){if(a.X.cb&&a.G&&b==a.G.sa)return a.G.Ve();if((a.X.cb||c)&&a.H&&b==a.H.sa)return a.H.Ve()}else return b=ZJ(a.C),a.X.cb&&a.G&&b.push(a.G.sa),(a.X.cb||c)&&a.H&&b.push(a.H.sa),b;return ZJ(a.C,b)};
var An=An||{},r=this,la="closure_uid_"+(1E9*Math.random()>>>0),ma=0,I=Date.now||function(){return+new Date};B(sa,Error);sa.prototype.name="CustomError";var Xe;var Ta=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&<>"']/,Ka=/&([^;\s<&]+);?/g,dn={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},cn={"'":"\\'"},Qa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Xa=2147483648*Math.random()|0;var jb=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(y(a))return y(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},Pfa=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(y(a))return y(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=y(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},$d=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=y(a)?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e},O=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=y(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e},me=Array.prototype.reduce?function(a,b,c,d){d&&(b=A(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},Ih=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=y(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1},Gg=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=y(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.Qa=!1;G.prototype.isDisposed=function(){return this.Qa};
G.prototype.dispose=function(){this.Qa||(this.Qa=!0,this.T())};
G.prototype.T=function(){if(this.Da)for(;this.Da.length;)this.Da.shift()()};var hc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");jc.prototype.stopPropagation=function(){this.A=!0};
jc.prototype.preventDefault=function(){this.defaultPrevented=!0;this.tq=!1};lc[" "]=w;var oc;a:{var i$=r.navigator;if(i$){var j$=i$.userAgent;if(j$){oc=j$;break a}}oc=""};var Lf=pc(),vc=nc("Trident")||nc("MSIE"),uc=nc("Edge"),kF=uc||vc,tc=nc("Gecko")&&!(Ma(oc,"WebKit")&&!nc("Edge"))&&!(nc("Trident")||nc("MSIE"))&&!nc("Edge"),wc=Ma(oc,"WebKit")&&!nc("Edge"),Q5=wc&&nc("Mobile"),FM=nc("Macintosh"),hL=nc("Android"),YK=rc(),ZK=nc("iPad"),Ac=function(){if(Lf&&r.opera){var a;var b=r.opera.version;try{a=b()}catch(c){a=b}return a}a="";(b=sc())&&(a=b?b[1]:"");return vc&&(b=xc(),b>(0,window.parseFloat)(a))?String(b):a}(),zc={},k$=r.document,Yf=k$&&vc?xc()||("CSS1Compat"==k$.compatMode?
(0,window.parseInt)(Ac,10):5):void 0;var Wc=!vc||9<=Yf,Qfa=vc&&!yc("9");!wc||yc("528");tc&&yc("1.9b")||vc&&yc("8")||Lf&&yc("9.5")||wc&&yc("528");tc&&!yc("8")||vc&&yc("9");var Eda="ontouchstart"in r||!!(r.document&&window.document.documentElement&&"ontouchstart"in window.document.documentElement)||!(!r.navigator||!r.navigator.msMaxTouchPoints);B(Bc,jc);
Bc.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?tc&&(mc(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()};
Bc.prototype.stopPropagation=function(){Bc.N.stopPropagation.call(this);this.o.stopPropagation?this.o.stopPropagation():this.o.cancelBubble=!0};
Bc.prototype.preventDefault=function(){Bc.N.preventDefault.call(this);var a=this.o;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Qfa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Dc="closure_listenable_"+(1E6*Math.random()|0),Gc=0;Ic.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?(Hc(e[b]),pb(e,b),0==e.length&&(delete this.o[a],this.A--),!0):!1};
Ic.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,Hc(d[e]);delete this.o[c];this.A--}return b};var Rc="closure_lm_"+(1E6*Math.random()|0),$c={},Uc=0,cd="__closure_events_fn_"+(1E9*Math.random()>>>0);B(dd,G);dd.prototype[Dc]=!0;h=dd.prototype;h.Zg=function(a){this.ia=a};
h.addEventListener=function(a,b,c,d){Nc(this,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){Yc(this,a,b,c,d)};
h.$=function(a){var b,c=this.ia;if(c){b=[];for(var d=1;c;c=c.ia)b.push(c),++d}c=this.Oa;d=a.type||a;if(y(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);gc(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.T=function(){dd.N.T.call(this);this.removeAllListeners();this.ia=null};
h.R=function(a,b,c,d){return Jc(this.gd,String(a),b,!1,c,d)};
h.za=function(a,b,c,d){return this.gd.remove(String(a),b,c,d)};
h.removeAllListeners=function(a){return this.gd?this.gd.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};
fd.prototype.put=function(a){this.C(a);this.A<this.D&&(this.A++,a.next=this.o,this.o=a)};var kd;var td=new fd(function(){return new nd},function(a){a.reset()},100);
md.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};
nd.prototype.set=function(a,b){this.o=a;this.scope=b;this.next=null};
nd.prototype.reset=function(){this.next=this.scope=this.o=null};var pd,rd=!1,sd=new md;Ad.prototype.reset=function(){this.context=this.A=this.B=this.o=null;this.C=!1};
var Cd=new fd(function(){return new Ad},function(a){a.reset()},100);
yd.prototype.then=function(a,b,c){return Fd(this,ha(a)?a:null,ha(b)?b:null,c)};
vd(yd);yd.prototype.cancel=function(a){0==this.o&&od(function(){var b=new Ld(a);Gd(this,b)},this)};
yd.prototype.J=function(a){this.o=0;zd(this,2,a)};
yd.prototype.K=function(a){this.o=0;zd(this,3,a)};
yd.prototype.H=function(){for(var a=null;a=Hd(this);)Id(this,a,this.o,this.G);this.F=!1};
var Pd=id;B(Ld,sa);Ld.prototype.name="cancel";B(Qd,dd);h=Qd.prototype;h.enabled=!1;h.ya=null;h.aw=function(){if(this.enabled){var a=I()-this.C;0<a&&a<.8*this.o?this.ya=this.A.setTimeout(this.B,this.o-a):(this.ya&&(this.A.clearTimeout(this.ya),this.ya=null),this.$("tick"),this.enabled&&(this.ya=this.A.setTimeout(this.B,this.o),this.C=I()))}};
h.start=function(){this.enabled=!0;this.ya||(this.ya=this.A.setTimeout(this.B,this.o),this.C=I())};
h.stop=function(){this.enabled=!1;this.ya&&(this.A.clearTimeout(this.ya),this.ya=null)};
h.T=function(){Qd.N.T.call(this);this.stop();delete this.A};B(Ud,G);h=Ud.prototype;h.Dg=0;h.T=function(){Ud.N.T.call(this);this.stop();delete this.o;delete this.A};
h.start=function(a){this.stop();this.Dg=Sd(this.B,n(a)?a:this.C)};
h.Pf=function(a){this.isActive()||this.start(a)};
h.stop=function(){this.isActive()&&Td(this.Dg);this.Dg=0};
h.isActive=function(){return 0!=this.Dg};
h.ho=function(){this.Dg=0;this.o&&this.o.call(this.A)};ee.prototype.nc=function(a){var b=[];fe(this,a,b);return b.join("")};
var je={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},ie=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;h=oe.prototype;h.clone=function(){return new oe(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=fa(b)?b:a;this.x*=a;this.y*=c;return this};h=qe.prototype;h.getWidth=function(){return this.right-this.left};
h.getHeight=function(){return this.bottom-this.top};
h.clone=function(){return new qe(this.top,this.right,this.bottom,this.left)};
h.contains=function(a){return this&&a?a instanceof qe?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=fa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};h=re.prototype;h.clone=function(){return new re(this.width,this.height)};
h.ng=function(){return this.width/this.height};
h.isEmpty=function(){return!(this.width*this.height)};
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=fa(b)?b:a;this.width*=a;this.height*=c;return this};h=te.prototype;h.clone=function(){return new te(this.left,this.top,this.width,this.height)};
h.contains=function(a){return a instanceof te?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=fa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var Rfa={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 ze=/<[^>]*>|&[^;]+;/g,RZ=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),taa=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),raa=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]"),saa=/^http:\/\/.*/,Sfa=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
qaa=/\s+/,uaa=/[\d\u06f0-\u06f9]/;Ae.prototype.Je=!0;Ae.prototype.jd=function(){return this.o};
Ae.prototype.toString=function(){return"Const{"+this.o+"}"};
var Be={};Ee.prototype.Je=!0;var Fe={};Ee.prototype.jd=function(){return this.o};
var Tfa=Ge(""),Ufa=/^[-,."'%_!# a-zA-Z0-9]+$/;He.prototype.Je=!0;He.prototype.jd=function(){return this.o};
He.prototype.$k=!0;He.prototype.hf=function(){return 1};
var Le=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,Ie={};Me.prototype.Je=!0;Me.prototype.jd=function(){return""};
Me.prototype.$k=!0;Me.prototype.hf=function(){return 1};
var Ne={};Pe.prototype.$k=!0;Pe.prototype.hf=function(){return this.A};
Pe.prototype.Je=!0;Pe.prototype.jd=function(){return this.o};
var l$=/^[a-zA-Z0-9-]+$/,Vfa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Wfa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Qe={};Te("<!DOCTYPE html>",0);Te("",0);var hf=!vc||9<=Yf,tf=!tc&&!vc||vc&&9<=Yf||tc&&yc("1.9.1");vc&&yc("9");var xf=vc||Lf||wc;var bf={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};h=Ve.prototype;h.ka=function(a){return y(a)?this.o.getElementById(a):a};
h.cw=function(a,b,c){return gf(this.o,arguments)};
h.createElement=function(a){return this.o.createElement(a)};
h.appendChild=mf;h.contains=yf;var Of={},og=/[^\d]+$/,pg={cm:1,"in":1,mm:1,pc:1,pt:1},qg={em:1,ex:1};var tg="StopIteration"in r?r.StopIteration:{message:"StopIteration",stack:""};rg.prototype.next=function(){throw tg;};
rg.prototype.Tb=function(){return this};h=wg.prototype;h.Za=function(){return this.xa};
h.Ka=function(){Ag(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.A[this.o[b]]);return a};
h.Na=function(){Ag(this);return this.o.concat()};
h.xe=function(a){for(var b=0;b<this.o.length;b++){var c=this.o[b];if(yg(this.A,c)&&this.A[c]==a)return!0}return!1};
h.equals=function(a,b){if(this===a)return!0;if(this.xa!=a.Za())return!1;var c=b||zg;Ag(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.xa};
h.clear=function(){this.A={};this.ae=this.xa=this.o.length=0};
h.remove=function(a){return yg(this.A,a)?(delete this.A[a],this.xa--,this.ae++,this.o.length>2*this.xa&&Ag(this),!0):!1};
h.get=function(a,b){return yg(this.A,a)?this.A[a]:b};
h.set=function(a,b){yg(this.A,a)||(this.xa++,this.o.push(a),this.ae++);this.A[a]=b};
h.forEach=function(a,b){for(var c=this.Na(),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 wg(this)};
h.Tb=function(a){Ag(this);var b=0,c=this.ae,d=this,e=new rg;e.next=function(){if(c!=d.ae)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw tg;var e=d.o[b++];return a?e:d.A[e]};
return e};var Jg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Xg=/#|$/,Zg=/[?&]($|#)/;h=N.prototype;h.toString=function(){var a=[],b=this.C;b&&a.push(jh(b,m$,!0),":");var c=this.A;if(c||"file"==b)a.push("//"),(b=this.H)&&a.push(jh(b,m$,!0),"@"),a.push(va(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(jh(c,"/"==c.charAt(0)?Xfa:Yfa,!0));(c=this.o.toString())&&a.push("?",c);(c=this.Ce())&&a.push("#",jh(c,Zfa));return a.join("")};
h.resolve=function(a){var b=this.clone(),c=!!a.C;c?ah(b,a.C):c=!!a.H;c?b.H=a.H:c=!!a.A;c?bh(b,a.A):c=null!=a.D;var d=a.B;if(c)ch(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=ta(e,"/"),e=e.split("/"),f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&k==e.length&&f.push("")):
(f.push(l),d=!0)}d=f.join("/")}else d=e}c?dh(b,d):c=""!==a.o.toString();c?eh(b,fh(a.o.toString())):c=!!a.J;c&&(b.J=a.Ce());return b};
h.clone=function(){return new N(this)};
h.fo=function(){return this.o.toString()};
h.Ce=function(){return this.J};
var m$=/[#\/\?@]/g,Yfa=/[\#\?:]/g,Xfa=/[\#\?]/g,kh=/[\#\?@]/g,Zfa=/#/g;h=gh.prototype;h.Za=function(){th(this);return this.xa};
h.remove=function(a){th(this);a=vh(this,a);return xg(this.o,a)?(this.A=null,this.xa-=this.o.get(a).length,this.o.remove(a)):!1};
h.clear=function(){this.o=this.A=null;this.xa=0};
h.isEmpty=function(){th(this);return 0==this.xa};
h.xe=function(a){var b=this.Ka();return E(b,a)};
h.Na=function(){th(this);for(var a=this.o.Ka(),b=this.o.Na(),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.Ka=function(a){th(this);var b=[];if(y(a))wh(this,a)&&(b=rb(b,this.o.get(vh(this,a))));else{a=this.o.Ka();for(var c=0;c<a.length;c++)b=rb(b,a[c])}return b};
h.set=function(a,b){th(this);this.A=null;a=vh(this,a);wh(this,a)&&(this.xa-=this.o.get(a).length);this.o.set(a,[b]);this.xa++;return this};
h.get=function(a,b){var c=a?this.Ka(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.Na(),c=0;c<b.length;c++)for(var d=b[c],e=va(d),d=this.Ka(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+va(d[f]));a.push(k)}return this.A=a.join("&")};
h.clone=function(){var a=new gh;a.A=this.A;this.o&&(a.o=this.o.clone(),a.xa=this.xa);return a};
h.extend=function(a){for(var b=0;b<arguments.length;b++)Eg(arguments[b],function(a,b){uh(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 Ah=void 0;var Gh=wc?"webkit":tc?"moz":vc?"ms":Lf?"o":"",n$=t("yt.dom.getNextId_");if(!n$){n$=function(){return++$fa};
q("yt.dom.getNextId_",n$,void 0);var $fa=0};var Nh={enablejsapi:1},Oh={},Ph={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};Mh.prototype.clone=function(){var a=new Mh,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ba(c)?a[b]=ec(c):a[b]=c}return a};var Uh=window.document.currentScript&&-1!=window.document.currentScript.src.indexOf("?loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",o$=0<window.location.hash.indexOf("__CastInternalExtensionIds__"),p$=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm"],aga=["hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo","eojlgccfgnjlphjnlopmadngcgmmdgpk"],q$=["fjhoaacokmgbjemoflkofnenfaiekifl"],cga=["ekpaaapppgpmolpcldedioblbkmijaca",
"lhkfccafpkdlaodkicmokbmfapjadkij","ibiljbkambkbohapfhoonkcpcikdglop","enhhojjnijigcajfphajepfemndkmdlo"],r$=o$?p$.concat(aga):p$,dga=o$?cga.concat(q$):q$,Sh=window.navigator.presentation?r$.concat(dga):r$;var K6=nc("Firefox"),wG=rc()||nc("iPod"),Jw=nc("iPad"),xG=nc("Android")&&!(qc()||nc("Firefox")||pc()||nc("Silk")),Fl=qc(),Ft=nc("Safari")&&!(qc()||nc("Coast")||pc()||nc("Edge")||nc("Silk")||nc("Android"))&&!(rc()||nc("iPad")||nc("iPod"));var ii=I(),$h=null,gi=Array(50),fi=-1,hi=!1;var ti={};B(ui,G);h=ui.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.unsubscribe=function(a,b,c){if(a=this.A[a]){var d=this.o;if(a=eb(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Mb(a)}return!1};
h.Mb=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]=w):(c&&ob(c,a),delete this.o[a],delete this.o[a+1],delete this.o[a+2])}return!!b};
h.P=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];vi(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.Mb(c)}}return 0!=e}return!1};
h.clear=function(a){if(a){var b=this.A[a];b&&(F(b,this.Mb,this),delete this.A[a])}else this.o.length=0,this.A={}};
h.Za=function(a){if(a){var b=this.A[a];return b?b.length:0}a=0;for(b in this.A)a+=this.Za(b);return a};
h.T=function(){ui.N.T.call(this);this.clear();this.B.length=0};var yi=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",yi,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Hi=window.yt&&window.yt.msgs_||t("window.ytcfg.msgs")||{};q("yt.msgs_",Hi,void 0);
var ra=function(a,b){var c=b||{},d=a in Hi?Hi[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},$s=window.performance&&window.performance.now?function(){return window.performance.now()}:I;var ega=t("yt.pubsub.instance_")||new ui;ui.prototype.subscribe=ui.prototype.subscribe;ui.prototype.unsubscribeByKey=ui.prototype.Mb;ui.prototype.publish=ui.prototype.P;ui.prototype.clear=ui.prototype.clear;q("yt.pubsub.instance_",ega,void 0);var Li=t("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Li,void 0);var Ni=t("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Ni,void 0);var Mi=t("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Mi,void 0);
var Ki=t("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Ki,void 0);B(Si,Ri);Si.prototype.Za=function(){var a=0;ug(this.Tb(!0),function(){a++});
return a};
Si.prototype.clear=function(){var a=vg(this.Tb(!0)),b=this;F(a,function(a){b.remove(a)})};B(Ti,Si);h=Ti.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(!y(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
h.remove=function(a){this.o.removeItem(a)};
h.Za=function(){return this.o.length};
h.Tb=function(a){var b=0,c=this.o,d=new rg;d.next=function(){if(b>=c.length)throw tg;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!y(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(Ui,Ti);B(Vi,Ti);Wi.prototype.set=function(a,b){n(b)?this.o.set(a,de(b)):this.o.remove(a)};
Wi.prototype.get=function(a){var b;try{b=this.o.get(a)}catch(c){return}if(null!==b)try{return be(b)}catch(c){throw"Storage: Invalid value was encountered";}};
Wi.prototype.remove=function(a){this.o.remove(a)};B(Xi,Wi);Xi.prototype.set=function(a,b){Xi.N.set.call(this,a,Zi(b))};
Xi.prototype.A=function(a){a=Xi.N.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Xi.prototype.get=function(a){if(a=this.A(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};B($i,Xi);$i.prototype.set=function(a,b,c){if(b=Zi(b)){if(c){if(c<I()){$i.prototype.remove.call(this,a);return}b.expiration=c}b.creation=I()}$i.N.set.call(this,a,b)};
$i.prototype.A=function(a,b){var c=$i.N.A.call(this,a);if(c)if(!b&&aj(c))$i.prototype.remove.call(this,a);else return c};B(bj,$i);var fj,s$=new Ui;fj=s$.isAvailable()?new bj(s$):null;var hj,t$=new Vi;hj=t$.isAvailable()?new bj(t$):null;var ek={lG:"atp",jI:"ska",UH:"que",zH:"mus",gI:"sus"};var xj=null;"undefined"!=typeof window.XMLHttpRequest?xj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(xj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var zj={"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"};Hj.prototype.F=function(a,b,c,d){b?a(d):a({text:c.responseText})};
Hj.prototype.D=function(a,b){a(Error("Request error: "+b.status))};
Hj.prototype.G=function(a){a(Error("request timed out"))};Kj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.o+",status:"+this.status+"}"};B(Rj,G);Rj.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.S.subscribe(a,b,c)};
Rj.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.S.unsubscribe(a,b,c)};
Rj.prototype.Mb=function(a){return this.isDisposed()?!1:this.S.Mb(a)};
Rj.prototype.P=function(a,b){return this.isDisposed()?!1:this.S.P.apply(this.S,arguments)};B(Sj,Rj);Sj.prototype.Zb=function(){return this.screens};
Sj.prototype.contains=function(a){return!!Pj(this.screens,a)};
Sj.prototype.get=function(a){return a?Qj(this.screens,a):null};
Sj.prototype.info=function(a){ci(this.F,a)};B(Wj,Rj);var u$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];h=Wj.prototype;h.start=function(){!this.o&&(0,window.isNaN)(this.ya)&&this.lr()};
h.stop=function(){this.o&&(this.o.abort(),this.o=null);(0,window.isNaN)(this.ya)||(Di(this.ya),this.ya=window.NaN)};
h.T=function(){this.stop();Wj.N.T.call(this)};
h.lr=function(){this.ya=window.NaN;this.o=Bj(Ij(this.F,"/pairing/get_screen"),{method:"POST",Bb:{pairing_code:this.D},timeout:5E3,kb:A(this.LC,this),onError:A(this.KC,this),Td:A(this.MC,this)})};
h.LC=function(a,b){this.o=null;var c=b.screen||{};c.dialId=this.B;c.name=this.C;this.P("pairingComplete",new ji(c))};
h.KC=function(a){this.o=null;a.status&&404==a.status?this.A>=u$.length?this.P("pairingFailed",Error("DIAL polling timed out")):(a=u$[this.A],this.ya=Ai(A(this.lr,this),a),this.A++):this.P("pairingFailed",Error("Server error "+a.status))};
h.MC=function(){this.o=null;this.P("pairingFailed",Error("Server not responding"))};B(Xj,Si);Xj.prototype.set=function(a,b){this.A.set(this.o+a,b)};
Xj.prototype.get=function(a){return this.A.get(this.o+a)};
Xj.prototype.remove=function(a){this.A.remove(this.o+a)};
Xj.prototype.Tb=function(a){var b=this.A.Tb(!0),c=this,d=new rg;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=Zj.prototype;h.Za=function(){return this.o.Za()};
h.removeAll=function(a){a=Cg(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};
h.remove=function(a){return this.o.remove(bk(a))};
h.clear=function(){this.o.clear()};
h.isEmpty=function(){return this.o.isEmpty()};
h.contains=function(a){return xg(this.o,bk(a))};
h.Ka=function(){return this.o.Ka()};
h.clone=function(){return new Zj(this)};
h.equals=function(a){return this.Za()==Bg(a)&&ck(this,a)};
h.Tb=function(){return this.o.Tb(!1)};dk.prototype.equals=function(a){return a?this.id==a.id:!1};var hk=/\s*;\s*/;h=fk.prototype;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+'"');n(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(I()+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(hk),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=n(this.get(a));this.set(a,"",0,b,c);return d};
h.Na=function(){return gk(this).keys};
h.Ka=function(){return gk(this).values};
h.isEmpty=function(){return!this.o.cookie};
h.Za=function(){return this.o.cookie?(this.o.cookie||"").split(hk).length:0};
h.xe=function(a){for(var b=gk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};
h.clear=function(){for(var a=gk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var jk=new fk(window.document);jk.A=3950;var Ak,qk="";B(Bk,Sj);h=Bk.prototype;h.start=function(){Ck(this)&&this.P("screenChange");!ij("yt-remote-lounge-token-expiration")&&Dk(this);Di(this.o);this.o=Ai(A(this.start,this),1E4)};
h.oj=function(a,b){Ck(this);Tj(this,a);Ek(this,!1);this.P("screenChange");b(a);a.token||Dk(this)};
h.remove=function(a,b){var c=Ck(this);Vj(this,a)&&(Ek(this,!1),c=!0);b(a);c&&this.P("screenChange")};
h.hj=function(a,b,c,d){var e=Ck(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,Ek(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.P("screenChange")};
h.T=function(){Di(this.o);Bk.N.T.call(this)};
h.ow=function(a){Ck(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)}Ek(this,!b);b&&ci(this.F,"Missed "+b+" lounge tokens.")};
h.mw=function(a){ci(this.F,"Requesting lounge tokens failed: "+a)};B(Fk,Rj);h=Fk.prototype;h.start=function(){var a=(0,window.parseInt)(ij("yt-remote-fast-check-period")||"0",10);(this.C=I()-144E5<a?0:a)?Kk(this):(this.C=I()+3E5,gj("yt-remote-fast-check-period",this.C),this.Kl())};
h.isEmpty=function(){return ac(this.o)};
h.update=function(){Gk("Updating availability on schedule.");var a=this.D(),b=Pb(this.o,function(b,d){return b&&!!Qj(a,d)},this);
Ik(this,b)};
h.T=function(){Di(this.B);this.B=window.NaN;this.A&&(this.A.abort(),this.A=null);Fk.N.T.call(this)};
h.Kl=function(){Di(this.B);this.B=window.NaN;this.A&&this.A.abort();var a=Lk(this);if(Sb(a)){var b=Ij(this.F,"/pairing/get_screen_availability"),c={lounge_token:Wb(a).join(",")};this.A=Jj(this.F,b,c,A(this.GA,this,a),A(this.FA,this))}else Ik(this,{}),Kk(this)};
h.GA=function(a,b){this.A=null;var c=Wb(Lk(this));if(Eb(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;Ik(this,d);Kk(this)}else this.Ya("Changing Screen set during request."),this.Kl()};
h.FA=function(a){this.Ya("Screen availability failed: "+a);this.A=null;Kk(this)};
h.Ya=function(a){ci("OnlineScreenService",a)};B(Mk,Sj);h=Mk.prototype;h.start=function(){this.A.start();this.o.start();this.screens.length&&(this.P("screenChange"),this.o.isEmpty()||this.P("onlineScreenChange"))};
h.oj=function(a,b,c){this.A.oj(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,ci(this.F,a),d(Error(a)))};
h.Zb=function(a){return a?this.screens:rb(this.screens,$d(this.B,function(a){return!this.contains(a)},this))};
h.mr=function(){return $d(this.Zb(!0),function(a){return!!this.o.o[a.id]},this)};
h.nr=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new Wj(this.D,a,b,c);f.subscribe("pairingComplete",A(function(a){Mb(f);d(Pk(this,a))},this));
f.subscribe("pairingFailed",function(a){Mb(f);e(a)});
f.start();return A(f.stop,f)};
h.$v=function(a,b){for(var c=2,d=b(a,c);Rk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
h.OC=function(a,b,c,d){Bj(Ij(this.D,"/pairing/get_screen"),{method:"POST",Bb:{pairing_code:a},timeout:5E3,kb:A(function(a,d){var k=new ji(d.screen||{});if(!k.name||Rk(this,k.name))k.name=this.$v(k.name,b);c(Pk(this,k))},this),
onError:A(function(a){d(Error("pairing request failed: "+a.status))},this),
Td:A(function(){d(Error("pairing request timed out."))},this)})};
h.T=function(){Mb(this.A);Mb(this.o);Mk.N.T.call(this)};
h.Aw=function(){Sk(this);this.P("screenChange");this.o.update()};
Mk.prototype.dispose=Mk.prototype.dispose;B(Uk,Rj);h=Uk.prototype;h.Ni=function(a){this.B=a;this.P("sessionScreen",this.B)};
h.Wb=function(a){this.isDisposed()||(a&&Vk(this,""+a),this.B=null,this.P("sessionScreen",null))};
h.info=function(a){ci(this.M,a)};
h.pr=function(){return null};
h.Rl=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,A(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),A(function(){Vk(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
h.T=function(){this.Rl("");Uk.N.T.call(this)};B(Wk,Uk);h=Wk.prototype;h.Ql=function(a){if(this.o){if(this.o==a)return;Vk(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&&Yk(this);Zk(this,"getMdxSessionStatus")};
h.Cf=function(a){this.info("launchWithParams: "+de(a));this.C=a;this.o&&Yk(this)};
h.stop=function(){this.o?this.o.stop(A(function(){this.Wb()},this),A(function(){this.Wb(Error("Failed to stop receiver app."))},this)):this.Wb(Error("Stopping cast device witout session."))};
h.Rl=w;h.T=function(){this.info("disposeInternal");Di(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;Wk.N.T.call(this)};
h.CB=function(a,b){if(!this.isDisposed())if(b){var c=ce(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+de(c));switch(d){case "mdxSessionStatus":Xk(this,c.screenId);break;default:Vk(this,"Unknown youtube message: "+d)}}else Vk(this,"Unable to parse message.")}else Vk(this,"No data in message.")};
h.co=function(a,b,c,d){Ok(this.J,this.A.label,a,this.A.friendlyName,A(function(e){e?b(e):0<=d?(Vk(this,"Screen "+a+" appears to be offline. "+d+" retries left."),Ai(A(this.co,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
h.pr=function(){return this.o};
h.PC=function(a){this.isDisposed()||a||(Vk(this,"Cast session died."),this.Wb())};B($k,Uk);h=$k.prototype;h.Ql=function(a){this.D=a;this.D.addUpdateListener(this.L)};
h.Cf=function(a){this.C=a;this.G()};
h.stop=function(){this.o();this.o=w;Di(this.F);this.D?this.D.stop(A(this.Wb,this,null),A(this.Wb,this,"Failed to stop DIAL device.")):this.Wb()};
h.T=function(){this.o();this.o=w;Di(this.F);this.D&&this.D.removeUpdateListener(this.L);this.D=null;$k.N.T.call(this)};
h.SC=function(a){this.isDisposed()||a||(Vk(this,"DIAL session died."),this.o(),this.o=w,this.Wb())};
h.al=function(a){this.K=Lj();if(this.C){var b=new window.chrome.cast.DialLaunchResponse(!0,bl(this));a(b);al(this)}else this.G=A(function(){Di(this.F);this.G=w;this.F=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,bl(this));a(b);al(this)},this),this.F=Ai(A(function(){this.G()},this),100)};
h.zx=function(a,b){Ok(this.J,this.H.receiver.label,a,this.A.friendlyName,A(function(a){a&&a.token?(this.Ni(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.al(b)},this),A(function(a){Vk(this,"Failed to get DIAL screen: "+a);
this.al(b)},this))};B(cl,Uk);cl.prototype.stop=function(){this.Wb()};
cl.prototype.Ql=w;cl.prototype.Cf=function(){Di(this.o);this.o=window.NaN;var a=Qj(this.J.Zb(),this.A.label);a?this.Ni(a):this.Wb(Error("No such screen"))};
cl.prototype.T=function(){Di(this.o);this.o=window.NaN;cl.N.T.call(this)};B(dl,Rj);h=dl.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,A(this.Xp,this),A(this.yA,this),d,e);c.customDialLaunchCallback=A(this.lz,this);window.chrome.cast.initialize(c,A(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.C),Yh(gl),this.A.subscribe("onlineScreenChange",A(this.or,this)),this.B=jl(this),window.chrome.cast.setCustomReceivers(this.B,w,A(function(a){this.Ya("Failed to set initial custom receivers: "+de(a))},this)),this.P("yt-remote-cast2-availability-change",hl(this)),b(!0))},this),A(function(a){this.Ya("Failed to initialize API: "+de(a));
b(!1)},this))};
h.eC=function(a,b){fl("Setting connected screen ID: "+a+" -> "+b);if(this.o){var c=this.o.B;if(!a||c&&c.id!=a)fl("Unsetting old screen status: "+this.o.A.friendlyName),Mb(this.o),this.o=null}if(a&&b){if(!this.o){c=Qj(this.A.Zb(),a);if(!c){fl("setConnectedScreenStatus: Unknown screen.");return}var d=el(this,c);d||(fl("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.o?c.o:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.B.push(d),
window.chrome.cast.setCustomReceivers(this.B,w,A(function(a){this.Ya("Failed to set initial custom receivers: "+de(a))},this)));
fl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);il(this,new cl(this.A,d),!0)}this.o.Rl(b)}else fl("setConnectedScreenStatus: no screen.")};
h.fC=function(a){this.isDisposed()?this.Ya("Setting connection data on disposed cast v2"):this.o?this.o.Cf(a):this.Ya("Setting connection data without a session")};
h.RC=function(){this.isDisposed()?this.Ya("Stopping session on disposed cast v2"):this.o?(this.o.stop(),Mb(this.o),this.o=null):fl("Stopping non-existing session")};
h.requestSession=function(){window.chrome.cast.requestSession(A(this.Xp,this),A(this.KA,this))};
h.T=function(){this.A.unsubscribe("onlineScreenChange",A(this.or,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.C);bi(gl);Mb(this.o);dl.N.T.call(this)};
h.Ya=function(a){ci("Controller",a)};
h.Yp=function(a,b){this.o==a&&(b||il(this,null),this.P("yt-remote-cast2-session-change",b))};
h.wA=function(a,b){if(!this.isDisposed())if(a)switch(fl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.o)if(this.o.A.label!=a.label)fl("onReceiverAction_: Stopping active receiver: "+this.o.A.friendlyName),this.o.stop();else{fl("onReceiverAction_: Casting to active receiver.");this.o.B&&this.P("yt-remote-cast2-session-change",this.o.B);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:il(this,new cl(this.A,a));
break;case window.chrome.cast.ReceiverType.DIAL:il(this,new $k(this.A,a));break;case window.chrome.cast.ReceiverType.CAST:il(this,new Wk(this.A,a));break;default:this.Ya("Unknown receiver type: "+a.receiverType);return}break;case window.chrome.cast.ReceiverAction.STOP:this.o&&this.o.A.label==a.label?this.o.stop():this.Ya("Stopping receiver w/o session: "+a.friendlyName)}else this.Ya("onReceiverAction_ called without receiver.")};
h.lz=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.Ya("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.Ya("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 fl("Reselecting dial screen."),
this.P("yt-remote-cast2-session-change",this.o.B),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.Ya('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);il(this,new $k(this.A,b))}b=this.o;b.H=a;return b.H.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(A(b.zx,b,(b.H.extraData||{}).screenId||null)):new window.Promise(A(b.al,b))};
h.Xp=function(a){if(!this.isDisposed()){fl("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)fl("Got resumed cast session before resumed mdx connection."),il(this,new Wk(this.A,b),!0);else{this.Ya("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.o.A,d=Qj(this.A.Zb(),c.label);d&&ki(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(fl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Mb(this.o),this.o=new Wk(this.A,b),this.o.subscribe("sessionScreen",A(this.Yp,this,this.o)),this.o.Cf(null));this.o.Ql(a)}}};
h.QC=function(){return this.o?this.o.pr():null};
h.KA=function(a){this.isDisposed()||(this.Ya("Failed to estabilish a session: "+de(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&il(this,null))};
h.yA=function(a){fl("Receiver availability updated: "+a);if(!this.isDisposed()){var b=hl(this);this.D=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;hl(this)!=b&&this.P("yt-remote-cast2-availability-change",hl(this))}};
h.or=function(){if(!this.isDisposed()){var a=hl(this);this.B=jl(this);fl("Updating custom receivers: "+de(this.B));window.chrome.cast.setCustomReceivers(this.B,w,A(function(){this.Ya("Failed to set custom receivers.")},this));
var b=hl(this);b!=a&&this.P("yt-remote-cast2-availability-change",b)}};
dl.prototype.setLaunchParams=dl.prototype.fC;dl.prototype.setConnectedScreenStatus=dl.prototype.eC;dl.prototype.stopSession=dl.prototype.RC;dl.prototype.getCastSession=dl.prototype.QC;dl.prototype.requestSession=dl.prototype.requestSession;dl.prototype.init=dl.prototype.init;dl.prototype.dispose=dl.prototype.dispose;var ul=null,wl=[];Il.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Il.prototype.So=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())};
var Jl={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var Ml=t("yt.events.listeners_")||{};q("yt.events.listeners_",Ml,void 0);var Pl=t("yt.events.counter_")||{count:0};q("yt.events.counter_",Pl,void 0);var jm=!1,hm=null,km=t("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",km,void 0);new wm;wm.prototype.set=function(a){this.o=a};
wm.prototype.reset=function(){this.set(I())};
wm.prototype.get=function(){return this.o};xm.prototype.stringify=function(a){return this.A.nc(a)};
xm.prototype.parse=function(a){return this.o(a)};h=ym.prototype;h.get=function(a){a=zm(this,a);return this.o[a]};
h.set=function(a,b){a=zm(this,a);this.o[a]=b};
h.Za=function(){return this.o.length};
h.isEmpty=function(){return 0==this.o.length};
h.clear=function(){this.A=this.o.length=0};
h.Ka=function(){for(var a=this.Za(),b=this.Za(),c=[],a=this.Za()-a;a<b;a++)c.push(this.get(a));return c};
h.Na=function(){for(var a=[],b=this.Za(),c=0;c<b;c++)a[c]=c;return a};
h.xe=function(a){for(var b=this.Za(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};B(Am,G);h=Am.prototype;h.Of=!1;h.Sg=0;h.ya=null;h.lf=function(a){this.o=arguments;this.ya||this.Sg?this.Of=!0:Bm(this)};
h.stop=function(){this.ya&&(Td(this.ya),this.ya=null,this.Of=!1,this.o=[])};
h.pause=function(){this.Sg++};
h.resume=function(){this.Sg--;this.Sg||!this.Of||this.ya||(this.Of=!1,Bm(this))};
h.T=function(){Am.N.T.call(this);this.stop()};
h.WA=function(){this.ya=null;this.Of&&!this.Sg&&(this.Of=!1,Bm(this))};B(Cm,G);var Fm=[];h=Cm.prototype;h.R=function(a,b,c,d){return Em(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=Oc(c),d=!!d,b=Cc(a)?Mc(a.gd,String(b),c,d,e):a?(a=Qc(a))?Mc(a,b,c,d,e):null:null,b&&(Zc(b),delete this.A[b.key]);return this};
h.removeAll=function(){Ob(this.A,function(a,b){this.A.hasOwnProperty(b)&&Zc(a)},this);
this.A={}};
h.T=function(){Cm.N.T.call(this);this.removeAll()};
h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Km.prototype.o=null;var v$;B(Nm,Km);v$=new Nm;h=Pm.prototype;h.Ee=null;h.Jc=!1;h.Vf=null;h.qm=null;h.Wg=null;h.mf=null;h.Kd=null;h.Xd=null;h.Me=null;h.ub=null;h.hh=0;h.Lc=null;h.lj=null;h.Fe=null;h.Gg=-1;h.Bq=!0;h.te=!1;h.Ik=0;h.Ri=null;var Ym={},Wm={};h=Pm.prototype;h.setTimeout=function(a){this.D=a};
h.QB=function(a){a=a.target;var b=this.Ri;b&&3==Bn(a)?b.lf():this.ar(a)};
h.ar=function(a){try{if(a==this.ub)a:{var b=Bn(this.ub),c=this.ub.A,d=this.ub.getStatus();if(vc&&!(10<=Yf)||wc&&!yc("420+")){if(4>b)break a}else if(3>b||3==b&&!Lf&&!En(this.ub))break a;this.te||4!=b||7==c||(8==c||0>=d?this.o.Gc(3):this.o.Gc(2));gn(this);var e=this.ub.getStatus();this.Gg=e;var f=En(this.ub);(this.Jc=200==e)?(4==b&&$m(this),this.F?(Um(this,b,f),Lf&&this.Jc&&3==b&&(this.C.R(this.A,"tick",this.JB),this.A.start())):Zm(this,f),this.Jc&&!this.te&&(4==b?this.o.Mi(this):(this.Jc=!1,Tm(this)))):
(this.Fe=400==e&&0<f.indexOf("Unknown SID")?3:0,Xm(),$m(this),an(this))}}catch(k){this.ub&&En(this.ub)}finally{}};
h.JB=function(){var a=Bn(this.ub),b=En(this.ub);this.hh<b.length&&(gn(this),Um(this,a,b),this.Jc&&4!=a&&Tm(this))};
h.eB=function(a){fn(A(this.dB,this,a),0)};
h.dB=function(a){this.te||(gn(this),Zm(this,a),Tm(this))};
h.fq=function(a){fn(A(this.cB,this,a),0)};
h.cB=function(a){this.te||($m(this),this.Jc=a,this.o.Mi(this),this.o.Gc(4))};
h.cancel=function(){this.te=!0;$m(this)};
h.vB=function(){this.Vf=null;var a=I();0<=a-this.qm?(2!=this.mf&&this.o.Gc(3),$m(this),this.Fe=2,Xm(),an(this)):en(this,this.qm-a)};h=mn.prototype;h.Fk=null;h.Xb=null;h.Si=!1;h.ko=null;h.bi=null;h.Gk=null;h.Hk=null;h.jc=null;h.kd=-1;h.Fg=null;h.pg=null;h.connect=function(a){this.Hk=a;a=on(this.o,null,this.Hk);Xm();this.ko=I();var b=this.o.H;null!=b?(this.Fg=b[0],(this.pg=b[1])?(this.jc=1,nn(this)):(this.jc=2,pn(this))):(nh(a,"MODE","init"),this.Xb=new Pm(this,0,void 0,void 0,void 0),this.Xb.Ee=this.Fk,Sm(this.Xb,a,!1,null,!0),this.jc=0)};
h.ov=function(a){if(a)this.jc=2,pn(this);else{Xm();var b=this.o;b.Cc=b.Gd.kd;Xn(b,9)}a&&this.Gc(2)};
h.kk=function(a){return this.o.kk(a)};
h.jo=function(){return!1};
h.Up=function(a,b){this.kd=a.Gg;if(0==this.jc)if(b){try{var c=this.A.parse(b)}catch(d){c=this.o;c.Cc=this.kd;Xn(c,2);return}this.Fg=c[0];this.pg=c[1]}else c=this.o,c.Cc=this.kd,Xn(c,2);else if(2==this.jc)if(this.Si)Xm(),this.Gk=I();else if("11111"==b){if(Xm(),this.Si=!0,this.bi=I(),c=this.bi-this.ko,!vc||10<=Yf||500>c)this.kd=200,this.Xb.cancel(),Xm(),qn(this.o,this,!0)}else Xm(),this.bi=this.Gk=I(),this.Si=!1};
h.Mi=function(){this.kd=this.Xb.Gg;if(this.Xb.Jc)0==this.jc?this.pg?(this.jc=1,nn(this)):(this.jc=2,pn(this)):2==this.jc&&(a=!1,(a=!vc||10<=Yf?this.Si:200>this.Gk-this.bi?!1:!0)?(Xm(),qn(this.o,this,!0)):(Xm(),qn(this.o,this,!1)));else{0==this.jc?Xm():2==this.jc&&Xm();var a=this.o;a.Cc=this.kd;Xn(a,2)}};
h.ah=function(){return this.o.ah()};
h.isActive=function(){return this.o.isActive()};
h.Gc=function(a){this.o.Gc(a)};B(rn,dd);var Cn=/^https?$/i,fga=["POST","PUT"];h=rn.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.U=b;this.S=!1;this.B=!0;this.o=this.M?Om(this.M):Om(v$);this.L=this.M?Lm(this.M):Lm(v$);this.o.onreadystatechange=A(this.Qp,this);try{vm(yn(this,"Opening Xhr")),this.O=!0,this.o.open(b,String(a),!0),this.O=!1}catch(f){vm(yn(this,"Error opening Xhr: "+f.message));vn(this,f);return}a=c||"";var e=this.headers.clone();
d&&Eg(d,function(a,b){e.set(b,a)});
d=eb(e.Na(),un);c=r.FormData&&a instanceof r.FormData;!E(fga,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.Y&&(this.o.responseType=this.Y);Yb(this.o,"withCredentials")&&(this.o.withCredentials=this.V);try{Dn(this),0<this.D&&(this.K=tn(this.o),vm(yn(this,"Will abort after "+this.D+"ms if incomplete, xhr2 "+this.K)),this.K?(this.o.timeout=this.D,this.o.ontimeout=A(this.lo,this)):this.J=Sd(this.lo,this.D,this)),vm(yn(this,"Sending request")),this.G=!0,this.o.send(a),this.G=!1}catch(f){vm(yn(this,"Send error: "+f.message)),vn(this,f)}};
h.lo=function(){"undefined"!=typeof An&&this.o&&(this.F="Timed out after "+this.D+"ms, aborting",this.A=8,yn(this,this.F),this.$("timeout"),hn(this,8))};
h.T=function(){this.o&&(this.B&&(this.B=!1,this.C=!0,this.o.abort(),this.C=!1),xn(this,!0));rn.N.T.call(this)};
h.Qp=function(){this.isDisposed()||(this.O||this.G||this.C?zn(this):this.vA())};
h.vA=function(){zn(this)};
h.isActive=function(){return!!this.o};
h.getStatus=function(){try{return 2<Bn(this)?this.o.status:-1}catch(a){return-1}};h=Fn.prototype;h.xg=null;h.Qb=null;h.ob=null;h.Ek=null;h.ci=null;h.En=null;h.ni=null;h.Og=0;h.Vx=0;h.Gb=null;h.Hd=null;h.ed=null;h.ye=null;h.Gd=null;h.kj=null;h.Bf=-1;h.Yo=-1;h.Cc=-1;h.Ag=0;h.bf=0;h.ve=8;var Zn=new dd;B(Hn,jc);B(In,jc);B(Jn,jc);h=Fn.prototype;h.connect=function(a,b,c,d,e){Xm();this.Ek=b;this.xg=c||{};d&&n(e)&&(this.xg.OSID=d,this.xg.OAID=e);this.Gd=new mn(this);this.Gd.Fk=null;this.Gd.A=this.D;this.Gd.connect(a)};
h.jo=function(){return 0==this.o};
h.aq=function(a){this.Hd=null;Rn(this,a)};
h.$p=function(){this.ed=null;this.ob=new Pm(this,0,this.B,"rpc",this.F);this.ob.Ee=null;this.ob.Ik=0;var a=this.En.clone();mh(a,"RID","rpc");mh(a,"SID",this.B);mh(a,"CI",this.kj?"0":"1");mh(a,"AID",this.Bf);Mn(this,a);if(!vc||10<=Yf)mh(a,"TYPE","xmlhttp"),Sm(this.ob,a,!0,this.ni,!1);else{mh(a,"TYPE","html");var b=this.ob,c=Boolean(this.ni);b.mf=3;b.Kd=ph(a.clone());bn(b,c)}};
h.Up=function(a,b){if(0!=this.o&&(this.ob==a||this.Qb==a))if(this.Cc=a.Gg,this.Qb==a&&3==this.o)if(7<this.ve){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.ed){if(this.ob)if(this.ob.Wg+3E3<this.Qb.Wg)On(this),this.ob.cancel(),this.ob=null;else break a;Vn(this);Xm()}}else this.Yo=c[1],0<this.Yo-this.Bf&&37500>c[2]&&this.kj&&0==this.bf&&!this.ye&&(this.ye=fn(A(this.By,this),6E3));else Xn(this,11)}else"y2f%"!=b&&Xn(this,11);else if(this.ob==a&&On(this),!C(b)){c=
this.D.parse(b);da(c);for(var d=0;d<c.length;d++){var e=c[d];this.Bf=e[0];e=e[1];2==this.o?"c"==e[0]?(this.B=e[1],this.ni=e[2],e=e[3],null!=e?this.ve=e:this.ve=6,this.o=3,this.Gb&&this.Gb.Ln(this),this.En=on(this,this.ah()?this.ni:null,this.Ek),Un(this)):"stop"==e[0]&&Xn(this,7):3==this.o&&("stop"==e[0]?Xn(this,7):"noop"!=e[0]&&this.Gb&&this.Gb.Kn(this,e),this.bf=0)}}};
h.By=function(){null!=this.ye&&(this.ye=null,this.ob.cancel(),this.ob=null,Vn(this),Xm())};
h.Mi=function(a){var b;if(this.ob==a)On(this),this.ob=null,b=2;else if(this.Qb==a)this.Qb=null,b=1;else return;this.Cc=a.Gg;if(0!=this.o)if(a.Jc)1==b?(I(),Zn.$(new In(Zn,a.Me?a.Me.length:0)),Qn(this),this.C.length=0):Un(this);else{var c=a.Fe,d;if(!(d=3==c||7==c||0==c&&0<this.Cc)){if(d=1==b)this.Qb||this.Hd||1==this.o||2<=this.Ag?d=!1:(this.Hd=fn(A(this.aq,this,a),Wn(this,this.Ag)),this.Ag++,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.Mv=function(a){if(!E(arguments,this.o))throw Error("Unexpected channel state: "+this.o);};
h.pC=function(a){a?Xm():(Xm(),Yn(this,8))};
h.kk=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new rn;a.V=!1;return a};
h.isActive=function(){return!!this.Gb&&this.Gb.isActive(this)};
h.Gc=function(){Zn.$(new Jn(Zn))};
h.ah=function(){return!(!vc||10<=Yf)};
h=$n.prototype;h.Ln=function(){};
h.Kn=function(){};
h.Jn=function(){};
h.dk=function(){};
h.Yn=function(){return{}};
h.isActive=function(){return!0};B(ao,Qd);ao.prototype.F=function(){if(500<this.o){var a=this.o;24E4>2*a&&(a*=2);Rd(this,a)}this.G()};
ao.prototype.start=function(){ao.N.start.call(this);this.D=I()+this.o};
ao.prototype.stop=function(){this.D=0;ao.N.stop.call(this)};B(bo,$n);h=bo.prototype;h.subscribe=function(a,b,c){return this.B.subscribe(a,b,c)};
h.unsubscribe=function(a,b,c){return this.B.unsubscribe(a,b,c)};
h.Mb=function(a){return this.B.Mb(a)};
h.P=function(a,b){return this.B.P.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 Fn("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.o;e&&(e.Gb=null);d.Gb=this;this.o=d;e?this.o.connect(a,b,this.C,e.B,e.Bf):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&&gc(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.Ln=function(){var a=this.A;a.stop();Rd(a,5E3+2E4*Math.random());this.F=null;this.D=0;if(this.G.length){a=this.G;this.G=[];for(var b=0,c=a.length;b<c;++b)Pn(this.o,a[b])}this.P("handlerOpened")};
h.Jn=function(a,b){var c=2==b&&401==this.o.Cc;if(4!=b&&!c){if(6==b||410==this.o.Cc)c=this.A,c.stop(),Rd(c,500);this.A.start()}this.P("handlerError",b)};
h.dk=function(a,b,c){if(!this.A.enabled)this.P("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.G.push(c[a].map)};
h.Yn=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&&gc(a,this.F);return a};
h.Kn=function(a,b){if("S"==b[0])this.J=b[1];else if("gracefulReconnect"==b[0]){var c=this.A;c.stop();Rd(c,500);this.A.start();Kn(this.o)}else this.P("handlerMessage",new Hl(b[0],b[1]))};
h.JC=function(){this.A.stop();var a=this.o,b=0;a.ob&&b++;a.Qb&&b++;0!=b?this.A.start():this.connect(this.F,this.D)};h=go.prototype;h.Za=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 E(this.o,a)||E(this.A,a)};
h.remove=function(a){var b=Pfa(this.o,a);if(0>b)return ob(this.A,a);pb(this.o,b);return!0};
h.Ka=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);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.jb=function(){return 1==this.o};
h.setVideoId=function(a){mo(this,"setVideoId");var b=this.index;this.index=jb(this.videoIds,a);b!=this.index&&no(this);return-1!=b};
h.remove=function(a){mo(this,"remove");var b=po(this);return ob(this.videoIds,a)?(this.index=jb(this.videoIds,b),!0):!1};
h.clone=function(){return new lo(uo(this))};B(vo,Rj);h=vo.prototype;h.play=function(){1==this.A?(this.o?this.o.play(null,w,A(function(){this.Ya("Failed to play video with cast v2 channel.");Ao(this,"play")},this)):Ao(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,w,A(function(){this.Ya("Failed to pause video with cast v2 channel.");Ao(this,"pause")},this)):Ao(this,"pause"),Eo(this,2,ro(yo(this))),Fo(this)):Do(this,this.pause)};
h.jr=function(a){if(1==this.A){if(this.o){var b=yo(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.jb()||3==b.o?window.chrome.cast.media.ResumeState.PLAYBACK_START:window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.o.seek(c,w,A(function(){this.Ya("Failed to seek in video with cast v2 channel.");Ao(this,"seekTo",{newTime:a})},this))}else Ao(this,"seekTo",{newTime:a});
Eo(this,3,a);Fo(this)}else Do(this,pa(this.jr,a))};
h.stop=function(){if(1==this.A){this.o?this.o.stop(null,w,A(function(){this.Ya("Failed to stop video with cast v2 channel.");Ao(this,"stopVideo")},this)):Ao(this,"stopVideo");
var a=yo(this);oo(a);Bo(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,A(function(){Go("set receiver volume: "+d)},this),A(function(){this.Ya("failed to set receiver volume.")},this))}c.muted!=b&&this.B.setReceiverMuted(b,A(function(){Go("set receiver muted: "+b)},this),A(function(){this.Ya("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);Ao(this,"setVolume",e)}c.muted=b;c.volume=a;Bo(this,c);Fo(this)}else Do(this,pa(this.setVolume,a,b))};
h.Tl=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:de(b.style)};gc(d,c.B);Ao(this,"setSubtitlesTrack",d)}else d={videoId:a},Ao(this,"setSubtitlesTrack",d);Bo(this,c)}else Do(this,pa(this.Tl,a,b))};
h.kr=function(a,b){if(1==this.A){Ao(this,"setAudioTrack",{videoId:a,audioTrackId:b.Hb.id});var c=yo(this);c.audioTrackId=b.Hb.id;Bo(this,c)}else Do(this,pa(this.kr,a,b))};
h.dispose=function(){if(3!=this.A){var a=this.A;this.A=3;this.P("proxyStateChange",a,this.A)}vo.N.dispose.call(this)};
h.T=function(){Di(this.D);this.D=window.NaN;Co(this);this.C=null;this.F.clear();xo(this,null);vo.N.T.call(this)};
h.Bm=function(a){if((a!=this.A||2==a)&&3!=this.A&&0!=a){var b=this.A;this.A=a;this.P("proxyStateChange",b,a);if(1==a)for(;!this.F.isEmpty();)jo(this.F).apply(this);else 3==a&&this.dispose()}};
h.oA=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.D))&&this.P(a)};
h.Hy=function(a){if(!a)this.Pg(null),xo(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,Bo(this,b),Fo(this)}};
h.Pg=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.Gy=function(a){a?(Ho(this),Fo(this)):this.Pg(null)};
h.Ya=function(a){ci("CP",a)};B(Io,Rj);h=Io.prototype;
h.connect=function(a,b){if(b){if(this.ta.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);n(e)&&(k.currentIndex=e);c&&(this.ta.A=c);this.ta.videoId=d;this.ta.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.ta.videoIds=[d];this.ta.index=0}this.ta.state=3;qo(this.ta,f);this.fb("Connecting with setPlaylist and params: "+de(k));this.o.connect({method:"setPlaylist",params:de(k)},
a,rk())}else this.fb("Connecting without params"),this.o.connect({},a,rk());Lo(this)};
h.dispose=function(){this.isDisposed()||(this.P("beforeDispose"),Ko(this,3));Io.N.dispose.call(this)};
h.T=function(){Mo(this);Po(this);No(this);Di(this.G);this.G=window.NaN;Di(this.H);this.H=window.NaN;this.B=null;Rl(this.O);this.O.length=0;this.o.dispose();Io.N.T.call(this);this.A=this.ta=this.o=null};
h.fb=function(a){ci("conn",a)};
h.gw=function(){this.C(2)};
h.My=function(){this.fb("Channel opened");this.M&&(this.M=!1,No(this),this.J=Ai(A(function(){this.fb("Timing out waiting for a screen.");this.C(1)},this),15E3));
xk(co(this.o),this.V)};
h.Iy=function(){this.fb("Channel closed");(0,window.isNaN)(this.D)?yk(!0):yk();this.dispose()};
h.Jy=function(a){yk();(0,window.isNaN)(this.F())?(this.fb("Channel error: "+a+" without reconnection"),this.dispose()):(this.M=!0,this.fb("Channel error: "+a+" with reconnection in "+this.F()+" ms"),Ko(this,2))};
h.Ky=function(a){a.params?this.fb("Received: action="+a.action+", params="+de(a.params)):this.fb("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=be(a.params.devices);this.A=O(a,function(a){return new dk(a)});
a=!!eb(this.A,function(a){return"LOUNGE_SCREEN"==a.type});
So(this,a);break;case "loungeScreenConnected":So(this,!0);break;case "loungeScreenDisconnected":qb(this.A,function(a){return"LOUNGE_SCREEN"==a.type});
So(this,!1);break;case "remoteConnected":var b=new dk(be(a.params.device));eb(this.A,function(a){return a.equals(b)})||nb(this.A,b);
break;case "remoteDisconnected":b=new dk(be(a.params.device));qb(this.A,function(a){return a.equals(b)});
break;case "gracefulDisconnect":break;case "playlistModified":Vo(this,a);break;case "nowPlaying":Wo(this,a);break;case "onStateChange":Xo(this,a);break;case "onVolumeChanged":Yo(this,a);break;case "onSubtitlesTrackChanged":Uo(this,a);break;default:this.fb("Unrecognized action: "+a.action)}};
h.Ly=function(a){a.params?this.fb("Received: action="+a.action+", params="+de(a.params)):this.fb("Received: action="+a.action);Zo(this,a);$o(this,a);if(Ro(this)){var b=this.ta.clone(),c=!1,d,e,f,k,l,m;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,l=a.params.volume,m=a.params.muted,n(a.params.currentError)&&be(a.params.currentError));if("onSubtitlesTrackChanged"==a.action)d==po(this.ta)&&(delete a.params.videoId,
ac(a.params)?this.ta.B=null:this.ta.B=a.params,this.P("remotePlayerChange"));else if(po(this.ta)||"onStateChange"!=a.action){"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=po(this.ta)):this.ta.setVideoId(""),e&&(e=e.split(","),to(this.ta,e,d))):to(this.ta,[]);e=this.ta;var p=d;mo(e,"add");p&&!E(e.videoIds,p)?(e.videoIds.push(p),e=!0):e=!1;e&&Qo(this,"getPlaylist");d&&this.ta.setVideoId(d);b.index==this.ta.index&&Eb(b.videoIds,
this.ta.videoIds)?"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||this.P("remoteQueueChange"):this.P("remoteQueueChange");n(f)&&(a=(0,window.parseInt)(f,10),a=(0,window.isNaN)(a)?-1:a,-1==a&&-1E3==this.ta.o&&(a=-1E3),0==a&&"0"==k&&(a=-1),c=c||a!=this.ta.o,this.ta.o=a,1==this.ta.o?Oo(this):Po(this));k&&(a=(0,window.parseInt)(k,10),qo(this.ta,(0,window.isNaN)(a)?0:a),c=!0);n(l)&&(a=(0,window.parseInt)(l,10),(0,window.isNaN)(a)||(c=c||this.ta.volume!=a,this.ta.volume=a),n(m)&&(m="true"==
m,c=c||this.ta.muted!=m,this.ta.muted=m));c&&this.P("remotePlayerChange")}}};
h.WB=function(){if(this.B){var a=this.B;this.B=null;this.ta.videoId!=a&&Qo(this,"getNowPlaying")}};
Io.prototype.subscribe=Io.prototype.subscribe;Io.prototype.unsubscribeByKey=Io.prototype.Mb;Io.prototype.Z=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.F())?Ro(this)&&(a=1):a=2);return a};
Io.prototype.getProxyState=Io.prototype.Z;Io.prototype.C=function(a){this.fb("Disconnecting with "+a);Mo(this);this.P("beforeDisconnect",a);1==a&&yk();eo(this.o,a);this.dispose()};
Io.prototype.disconnect=Io.prototype.C;Io.prototype.Y=function(){var a=this.ta;this.B&&(a=this.ta.clone(),so(a,this.B,a.index));return uo(a)};
Io.prototype.getPlayerContextData=Io.prototype.Y;
Io.prototype.da=function(a){var b=new lo(a);b.videoId&&b.videoId!=this.ta.videoId&&(this.B=b.videoId,Di(this.G),this.G=Ai(A(this.WB,this),5E3));var c=[];this.ta.A==b.A&&this.ta.videoId==b.videoId&&this.ta.index==b.index&&Eb(this.ta.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ta.o==b.o&&this.ta.volume==b.volume&&this.ta.muted==b.muted&&ro(this.ta)==ro(b)&&de(this.ta.B)==de(b.B)||c.push("remotePlayerChange");this.ta.reset(a);F(c,function(a){this.P(a)},this)};
Io.prototype.setPlayerContextData=Io.prototype.da;Io.prototype.U=function(){return this.o.C.loungeIdToken};
Io.prototype.getLoungeToken=Io.prototype.U;Io.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:""};
Io.prototype.getOtherConnectedRemoteId=Io.prototype.K;Io.prototype.F=function(){var a=this.o;return a.A.enabled?a.A.D-I():window.NaN};
Io.prototype.getReconnectTimeout=Io.prototype.F;Io.prototype.ga=function(){if(!(0,window.isNaN)(this.F())){var a=this.o.A;a.enabled&&(a.stop(),a.start(),a.F())}};
Io.prototype.reconnect=Io.prototype.ga;Io.prototype.aa=function(a,b){Qo(this,a,b);To(this)};
Io.prototype.sendMessage=Io.prototype.aa;var ep=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];B(mp,Sj);h=mp.prototype;h.Zb=function(a){return this.Lb.$_gs(a)};
h.contains=function(a){return!!this.Lb.$_c(a)};
h.get=function(a){return this.Lb.$_g(a)};
h.start=function(){this.Lb.$_st()};
h.oj=function(a,b,c){this.Lb.$_a(a,b,c)};
h.remove=function(a,b,c){this.Lb.$_r(a,b,c)};
h.hj=function(a,b,c,d){this.Lb.$_un(a,b,c,d)};
h.T=function(){for(var a=0,b=this.o.length;a<b;++a)this.Lb.$_ubk(this.o[a]);this.o.length=0;this.Lb=null;mp.N.T.call(this)};
h.NC=function(){this.P("screenChange")};
h.dA=function(){this.P("onlineScreenChange")};
Mk.prototype.$_st=Mk.prototype.start;Mk.prototype.$_gspc=Mk.prototype.OC;Mk.prototype.$_gsppc=Mk.prototype.nr;Mk.prototype.$_c=Mk.prototype.contains;Mk.prototype.$_g=Mk.prototype.get;Mk.prototype.$_a=Mk.prototype.oj;Mk.prototype.$_un=Mk.prototype.hj;Mk.prototype.$_r=Mk.prototype.remove;Mk.prototype.$_gs=Mk.prototype.Zb;Mk.prototype.$_gos=Mk.prototype.mr;Mk.prototype.$_s=Mk.prototype.subscribe;Mk.prototype.$_ubk=Mk.prototype.Mb;var op=null,pp=null,up=null,dp=null,tp=[];var Vp=/^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]+)?\/)/,Dw=/^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]+)?([\/\?\#]|$)/,
Kea=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,sG=/^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(\/+|\?|#|$)/,Lw=/^((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)|((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]+)?([\/\?\#]|$))/,
Up=/^https?:\/\/([-\w.]+\.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]+)?\/)/,gga=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Pw=/^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)/,
hga=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul)/,yr=/^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)(:[0-9]+)?([\/\?\#]|$)/,tG=/^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]+)?([\/\?\#]|$))/,
CG=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Xp=/^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|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|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 Yp=["2mdn.net","imasdk.googleapis.com","googleads.g.doubleclick.net"];var eq={},dq=0,iga=t("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",iga,void 0);var gq=1;fq.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)};
fq.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};B(iq,fq);iq.prototype.getId=function(){return this.J};
iq.prototype.toString=function(){return iq.N.toString.call(this)};B(mq,Rj);h=mq.prototype;h.ib=function(a,b){for(var c=0;c<a.length;c++)a[c].o=this.sa;this.o.ib(a,b)};
h.create=function(){this.J||(this.Xa(this.o),K(this.o.Ba(),this.sa+"-created"),this.o.addEventListener("crn_"+this.sa,this.mc,this),this.o.addEventListener("crx_"+this.sa,this.Hc,this),this.J=!0)};
h.destroy=function(){this.loaded&&this.unload();Zd(this.o.Ba(),this.sa+"-created");this.o.removeEventListener("crn_"+this.sa,this.mc,this);this.o.removeEventListener("crx_"+this.sa,this.Hc,this);this.J=!1;this.P("destroyed",this.sa)};
h.load=function(){this.loaded=!0;K(this.o.Ba(),this.sa+"-loaded");this.P("loaded",this.sa)};
h.unload=function(){this.loaded=!1;Zd(this.o.Ba(),this.sa+"-loaded");this.P("unloaded",this.sa)};
h.mc=function(){};
h.Hc=function(){};
h.Sd=function(){};
h.log=function(a){wH(this.o,this.H,a)};
h.qh=function(){return null};
h.pauseVideo=function(){this.P("command_pause",!1,this.o.playerType)};
h.fe=function(){};
h.Ve=function(){return[]};
h.Xa=function(){return!1};
h.Il=function(a,b){this.G&&this.G.Sd&&this.G.Sd.apply(this.G,arguments)};
h.Li=function(){};B(wq,G);wq.prototype.o=function(a,b){n(b)?pf(a,this.element,b):a.appendChild(this.element)};
wq.prototype.update=function(a){for(var b in a)Bq(this,b,a[b])};
wq.prototype.T=function(){this.ra={};this.la={};Aq(this);wq.N.T.call(this)};B(Q,wq);h=Q.prototype;h.Db=function(a,b){Bq(this,b||"content",a)};
h.show=function(){this.B||(Dq(this.element,""),this.B=!0)};
h.fa=function(){this.B&&(Dq(this.element,"none"),this.B=!1)};
h.xb=function(a){a?this.show():this.fa()};
h.R=function(a,b,c){return R(this,this.element,a,b,c)};
h.za=function(a){for(var b=0;b<this.V.length;b++)if(this.V[b]==a){a=this.V.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
h.focus=function(){Cf(this.element);this.element.focus()};
h.T=function(){for(;this.V.length;){var a=this.V.pop();a.target.removeEventListener(a.type,a.listener)}Q.N.T.call(this)};B(Gq,Q);Gq.prototype.subscribe=function(a,b,c){return this.O.subscribe(a,b,c)};
Gq.prototype.unsubscribe=function(a,b,c){return this.O.unsubscribe(a,b,c)};
Gq.prototype.Mb=function(a){return this.O.Mb(a)};
Gq.prototype.P=function(a,b){return this.O.P.apply(this.O,arguments)};B(Hq,Gq);Hq.prototype.create=function(){this.K=!0};
Hq.prototype.destroy=function(){this.K=!1};
Hq.prototype.Lh=function(){return!1};B(Iq,Q);var jga=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(vc)return yc("10.0");
var a=window.document.createElement("DIV"),b=wc?"-webkit":tc?"-moz":vc?"-ms":Lf?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!l$.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Wfa)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!l$.test(e))throw Error('Invalid attribute name "'+e+'".');var f=b[e];if(null!=f){var k;k=e;if(f instanceof Ae)f=Ce(f);else if("style"==k.toLowerCase()){if(!ia(f))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+
typeof f+" given: "+f);if(!(f instanceof Ee)){var l="",m=void 0;for(m in f){if(!/^[-_a-zA-Z0-9]+$/.test(m))throw Error("Name allows only [-_a-zA-Z0-9], got: "+m);var p=f[m];if(null!=p){if(p instanceof Ae)p=Ce(p);else if(Ufa.test(p)){for(var u=!0,v=!0,z=0;z<p.length;z++){var x=p.charAt(z);"'"==x&&v?u=!u:'"'==x&&u&&(v=!v)}u&&v||(p="zClosurez")}else p="zClosurez";l+=m+":"+p+";"}}f=l?Ge(l):Tfa}f=f instanceof Ee&&f.constructor===Ee&&f.A===Fe?f.o:"type_error:SafeStyle"}else{if(/^on/i.test(k))throw Error('Attribute "'+
k+'" requires goog.string.Const value, "'+f+'" given.');if(k.toLowerCase()in Vfa)if(f instanceof Me)f=Oe(f);else if(f instanceof He)f=Je(f);else if(y(f))f=Ke(f).jd();else throw Error('Attribute "'+k+'" on tag "div" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+f+'" given.');}f.Je&&(f=f.jd());k=k+'="'+ya(String(f))+'"';d=d+(" "+k)}}e=void 0;null!=e?da(e)||(e=[e]):e=[];!0===Rfa.div?d+=">":(c=Se(e),d+=">"+Re(c)+"</div>",c=c.hf());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=
null);b=Te(d,c);a.innerHTML=Re(b);return""!=Qf(a.firstChild,"transition")});B(Pq,G);h=Pq.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(),Qq(this,!1),this.o=null,this.A.stop()):this.B.B||(Qq(this,!this.C),this.o=1,b?this.A.start(b):this.hm()))};
h.fa=function(){3!=this.o&&(1==this.o||2==this.o?(this.B.fa(),this.o=null,this.A.stop()):this.B.B&&(Qq(this,!0),this.o=3,this.A.start(this.F)))};
h.hm=function(){switch(this.o){case 1:this.B.show();this.o=2;this.A.start(10);break;case 2:Qq(this,this.C);this.C?(this.o=3,this.A.start(this.D)):this.o=null;break;case 3:this.B.fa();Qq(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.hm()};
h.T=function(){this.B.isDisposed()||this.B.element.removeAttribute("aria-hidden");Pq.N.T.call(this)};B(Rq,Q);B(Sq,Rq);Sq.prototype.xb=function(a){a?this.C.show():this.C.fa()};B(Tq,Hq);Tq.prototype.create=function(){Tq.N.create.call(this);of(this.element);this.D.o(this.element);var a=this.A.getVideoData().videoId;a&&(a=JG(this.A.W(),a,!0),Bj(a,{method:"GET",kb:this.F,context:this,Av:!0}))};
Tq.prototype.F=function(a,b){if(this.K){var c=b.user_info;this.A.getVideoData();var d=c.channel_banner_url;Lw.test(d)||(d="");var e=c.channel_logo_url||c.image_url;Lw.test(e)||(e="");Bq(this.C,"background",d?"background-image: url("+d+")":"");Bq(this.D,"image",e);Bq(this.D,"author",c.channel_title||c.username);c=c.subscription_button_html;d=this.D.ra["html5-subscribe-button-container"];c?d.innerHTML=Re(c):of(d)}};
Tq.prototype.show=function(){Tq.N.show.call(this);this.C.xb(!0)};
Tq.prototype.fa=function(){Tq.N.fa.call(this);this.C.xb(!1)};B(Vq,Q);Vq.prototype.T=function(){Vq.N.T.call(this);this.C&&(Yq(this.A.app,this.C),this.C=null);Xq(this);of(Wq(this));of($q(this));this.F=this.D=null;delete this.A};ar.prototype.toString=function(){return this.type+this.id};var U5=16/9,kga=4/3,A9=[.25,.5,1,1.25,1.5,2];var dr={m5:function(a,b){a.splice(0,b)},
N0:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
Pe:function(a){a.reverse()}};var ir={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",140:"a",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 Yv={name:"width",video:!0,valid:640,Lg:99999},Zv={name:"height",video:!0,valid:360,Lg:99999},$v={name:"framerate",video:!0,valid:30,Lg:9999},aw={name:"bitrate",video:!0,valid:3E5,Lg:2E9},bw={name:"channels",video:!1,valid:2,Lg:99},cw={Fh:Yv,zh:Zv,A:$v,$m:aw,o:bw};nr.prototype.toString=function(){return this.name};var au={kG:"auto",xI:"tiny",du:"light",SMALL:"small",mu:"medium",LARGE:"large",YG:"hd720",UG:"hd1080",VG:"hd1440",WG:"hd2160",XG:"hd2880",bH:"highres",UNKNOWN:"unknown"},qr={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},pr="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var rr=[["60",55],["50",49],["48",39]];sr.prototype.set=function(a,b){this.o[a]!==b&&(this.o[a]=b,this.A="")};
sr.prototype.get=function(a){wr(this);return this.o[a]||null};
sr.prototype.clone=function(){var a=new sr(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};Cr.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};h=Jr.prototype;h.dg=function(a){return(a=Kr(this,a))?a.duration:0};
h.vk=function(a){return this.dg(a)};
h.Bg=function(){return this.ua.length?this.ua[0].o:-1};
h.Kb=function(){return this.ua.length?this.ua[this.ua.length-1].o:-1};
h.eg=function(){var a=this.ua[this.ua.length-1];return a?a.endTime:window.NaN};
h.Gr=function(){return this.ua[0].startTime};
h.ao=function(){return this.ua.length};
h.Bj=function(){return 0};
h.jf=function(a){return(a=Lr(this,a))?a.o:-1};
h.eo=function(a){return Kr(this,a).sourceURL};
h.de=function(a){return(a=Kr(this,a))?a.startTime:0};
h.fg=function(){return 0<this.ua.length};Nr.prototype.set=function(a,b){this.o.get(a);this.A[a]=b;this.B=""};
Nr.prototype.get=function(a){return this.A[a]||this.o.get(a)};var w$=0;Ur.prototype.jl=function(){return!1};
Ur.prototype.rq=function(a){return[a]};
Ur.prototype.Wi=function(a){return[a]};Wr.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(es,Ur);h=es.prototype;h.Ph=function(){return!1};
h.$n=function(){var a=new Wr(1,this,this.initRange);return[new bs([a],this.C)]};
h.ii=function(a,b){var c=this.index.jf(a);b&&(c=Math.min(this.index.Kb(),c+1));return gs(this,c,!0)};
h.no=function(a){this.o=new window.Uint8Array(Ps(a).buffer)};
h.jl=function(){return!1};
h.ph=function(a){return 0==a.A?!0:this.index.Kb()>a.C&&this.index.Bg()<=a.C+1};
h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=sb(a),0==d.ua.length)d.ua=a;else{var e=d.ua.length?db(d.ua).endTime:0,f=a[0].o-d.Kb();1<f&&lb(d.ua);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.ua.push(a[f])}}Mr(this.index,c);this.A=b};js.prototype.update=function(a){var b=void 0;this.A&&(b=this.A);var c=b,b=+Fr(a,"timescale")||1,d=+Fr(a,"startNumber")||0,e=0,f=1;c&&(e=c.Zd+c.durationSecs,f=d-c.o);var c=Date.parse(Fr(a,"yt:segmentIngestTime")),k=Date.parse(Fr(a,"yt:mpdResponseTime")),k=I()-k,c=(c+k)/1E3,k=new js,f=0<f?0:-f+1;k.C=f;a=a.getElementsByTagName("S");for(var l=d,m=0;m<a.length;m++)for(var p=a[m],u=+p.getAttribute("d")/b,v=(p.getAttribute("yt:sid")||0)/b,z=+p.getAttribute("r")||0,x=0;x<=z;x++)if(l<d+f)l++;else{var ga=new is(l,
e,u,c+v);k.o.push(ga);l++;var e=e+u,c=c+(u+v),wa=p.getAttribute("yt:cuepointTimeOffset"),J=p.getAttribute("yt:cuepointDuration"),X=p.getAttribute("yt:cuepointContext")||null;wa&&J&&k.B.push(new hs(+wa/b+ga.Zd,+J/b,X))}k.o.length&&(k.A=db(k.o));this.C=k.C;this.A=k.A||this.A;this.o=k.o;tb(this.B,k.B)};Cs.prototype.skip=function(a){this.o+=a};h=Us.prototype;h.Bj=function(a){return this.o[a]};
h.de=function(a){return this.A[a]/this.C};
h.dg=function(a){a=this.vk(a);return 0<=a?a/this.C:-1};
h.vk=function(a){return a+1<this.xa||this.B?this.A[a+1]-this.A[a]:-1};
h.Bg=function(){return 0};
h.Kb=function(){return this.xa-1};
h.eg=function(){return this.B?this.A[this.xa]/this.C:window.NaN};
h.Gr=function(){return 0};
h.ao=function(){return this.xa};
h.eo=function(){return""};
h.jf=function(a){a=xb(this.A.subarray(0,this.xa),a*this.C);return 0<=a?a:Math.max(0,-a-2)};
h.fg=function(){return 0<=this.Kb()};B(Ws,Ur);h=Ws.prototype;h.$n=function(a){var b=new Wr(1,this,this.initRange),c=new Wr(2,this,this.indexRange),d=[],e=[b];Yr(b,c)?e.push(c):(d.push(new bs([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=Er(b.range.end+1,a-c),e.push(new Wr(4,this,a)));d.push(new bs(e));return d};
h.no=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.Kb())return;if(1==this.info.A){var b=this.index,c=Ps(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 l=c.getUint32(a,!1),k=c.getUint32(a+4,!1);a+=12;f=b;f.xa++;Vs(f);f.o[f.xa]=f.o[f.xa-1]+l;f.A[f.xa]=f.A[f.xa-1]+k}}else this.C=Ps(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 Es(a);if(440786851==Fs(a)&&(Hs(a),408125543==Fs(a))){e=a;f=e.o;d=Gs(e,!0);e.o=f;a=Is(a);for(var e=a.B+a.o,m=Fs(a);357149030!=m;)Hs(a),m=Fs(a);
a=Is(a);for(var l=1E6,p=1E9,f=0;!(a.o>=a.A.byteLength);)if(m=Fs(a),2807729==m)l=Js(a);else if(2807730==m)p=Js(a);else if(17545==m){var f=a,m=Gs(f,!0),u=0;4==m?u=f.A.getFloat32(f.o):8==m&&(u=f.A.getFloat64(f.o));f.o+=m;f=u}else Hs(a);b.C=p/l;a=new Es(k);if(475249515==Fs(a)){a=Is(a);k=!0;for(l=!1;!(a.o>=a.A.byteLength);)if(m=Fs(a),187==m){p=Is(a);m=e;if(179!=Fs(p))u=null;else if(u=Js(p),183!=Fs(p))u=null;else{for(var p=Is(p),v=m;!(p.o>=p.A.byteLength);)241==Fs(p)?v=Js(p)+m:Hs(p);u=[v,u]}k&&c==u[0]&&
(l=!0);k=!1;l&&(u[0]+=1);p=b;m=u[0];u=u[1];Vs(p);p.o[p.xa]=m;p.A[p.xa]=u;p.xa++}else Hs(a);c=d+e;a=f;Vs(b);b.B=!0;b.A[b.xa]=a;b.o[b.xa]=c}}this.C=null}};
h.rq=function(a){for(var b=this.Wi(a.info),c=[],d=a.B,e=0;e<b.length;e++){var f=Er(b[e].range.start+b[e].B-a.info.range.start+a.range.start,b[e].A);c.push(new Os(b[e],a.o,f,a.A,d));d=!1}return c};
h.Wi=function(a){for(var b=0;b<this.index.Kb()&&a.range.start>=this.index.Bj(b+1);)b++;return Xs(this,b,a.range.start,a.range.length).o};
h.ph=function(a){return Vr(this)?!0:(0,window.isNaN)(this.A)?!1:a.range.end+1<this.A};
h.ii=function(a,b){var c=this.index.jf(a);b&&(c=Math.min(this.index.Kb(),c+1));return Xs(this,c,this.index.Bj(c),0)};
h.jl=function(){var a;if(a=Vr(this)&&!(0,window.isNaN)(this.A))a=this.index,a=(a.B?a.o[a.xa]:-1)!=this.A;return a};
h.Ph=function(){return!0};B(Zs,Rj);var et={commentary:1,alternate:2,dub:3,main:4};
Zs.prototype.M=function(a){this.G=a.status;a=a.responseText;var b=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];a=b.getElementsByTagName("Representation");if(0<b.getElementsByTagName("SegmentList").length){this.A=1E3*Hr(Fr(b,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.A;this.C=!0;this.H=(0,window.parseInt)(Fr(b,"yt:earliestMediaSequence"),10);this.B||(this.B=new ls);ns(this.B,b);this.P("refresh");for(b=0;b<a.length;b++){var c=dt(this,
a[b]);if(!this.o[c.id]){var d=ct(Gr(a[b],"BaseURL").textContent,c),e=Gr(a[b],"Initialization"),f=Fr(e,"sourceURL"),e=Dr(Fr(e,"range"));this.o[c.id]=new es(d,c,f,null===e?void 0:e)}for(var c=this.o[c.id],d=this.B,f=c,e=bb(f.info.mimeType,";",1)[0],f=d.B[f.info.id]||d.A[e]||d.o||null,d=vb(Gr(a[b],"SegmentList").getElementsByTagName("SegmentURL"),f.C),f=f.o,e=[],k=0;k<d.length;k++)e.push(gt(d[k],f[k]));c.update(e,this.isLive,this.H)}os(this.B)}else b:for(this.duration=Hr(Fr(b,"mediaPresentationDuration")),
b=0;b<a.length;b++){e=a[b];c=dt(this,e);f=Gr(e,"BaseURL");d=ct(f.textContent,c);k=Gr(e,"SegmentBase");e=Dr(k.attributes.indexRange.value);k=Dr(k.getElementsByTagName("Initialization")[0].attributes.range.value);f=(0,window.parseInt)(f.getAttribute("yt:contentLength"),10);c=new Ws(d,c,k,e,f,window.NaN);if(!c)break b;this.o[c.info.id]=c}this.D=2;this.P("loaded");(0,window.isFinite)(this.A)&&(a=$s()-this.F,a=Math.max(0,this.A-a),Ai(A(this.L,this),a));return this};
Zs.prototype.O=function(a){this.G=a.status;this.D=3;this.P("load_error");return Dd(a)};
Zs.prototype.L=function(){if(1!=this.D&&!this.isDisposed()){var a;a:{a=this.o;for(var b in a){var c=a[b].index;if(c&&c.fg()){a=c.Kb()+1;break a}}a=0}a=Ug(this.K,{start_seq:a.toString()});ft(this,a)}};var Pv,zG;var x$=oc,x$=x$.toLowerCase();if(Ha(x$,"android")){var y$=x$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(y$)Pv=Number(y$[1]);else{var z$={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},A$=x$.match("("+Wb(z$).join("|")+")");Pv=A$?z$[A$[0]]:0}}else Pv=void 0;zG=0<=Pv;var Sv=wG||Jw;var tu,d6,xt=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],zt=['audio/mp4; codecs="mp4a.40.2"'];var Kt={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},Lt=rb(Kt.widevine,Kt.playready);B(It,G);It.prototype.F=function(a,b){if(!this.isDisposed()){a.B=b;var c=b.getConfiguration();F([c.audioCapabilities,c.videoCapabilities],function(b){F(b,function(b){a.C[b.contentType]=!0})});
this.C(a)}};
It.prototype.D=function(){this.isDisposed()||(0<this.A.length?Mt(this):this.C(null))};Pt.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.o+"_"+this.id+"_"+this.isDefault};Qt.prototype.toString=function(){return this.o+": "+St(this)+" - "+this.G};
Qt.prototype.equals=function(a){return a?this.toString()==a.toString():!1};Ut.prototype.toString=function(){return this.Hb.name};Vt.prototype.equals=function(a){return this.A==a.A&&this.o==a.o&&this.B==a.B};
var p1=Wt("auto","large",!1),Zt=Wt("auto","auto",!1);Wt("small","auto",!1);var lga=Wt("auto","hd720",!1);Vt.prototype.isLocked=function(){return this.B&&!!this.A&&this.A==this.o};
Vt.prototype.C=function(a){if(!a.video)return!1;a=qr[a.video.quality];return this.A<=a&&(!this.o||this.o>=a)};var Ow={oH:1,pH:2,qH:3};cu.prototype.getValue=function(){return this.A};
cu.prototype.clone=function(){return new cu(this.o,this.A)};h=du.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.Ka=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
h.Na=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].o);return b};
h.xe=function(a){return Ih(this.o,function(b){return b.getValue()==a})};
h.clone=function(){return new du(this)};
h.Za=function(){return this.o.length};
h.isEmpty=function(){return kb(this.o)};
h.clear=function(){lb(this.o)};B(fu,du);B(gu,Rj);gu.prototype.F=function(a,b){this.o=this.o.onload=null;var c=this.A.o[a];c.B[b]=!0;lu(this);var d=c.Fb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.xk()-1)];this.P("l",c[0],c[1])};
gu.prototype.T=function(){this.o&&(this.o=this.o.onload=null);gu.N.T.call(this)};h=nu.prototype;h.getWidth=function(){return this.H};
h.getHeight=function(){return this.G};
h.xk=function(){return this.A};
h.isDefault=function(){return-1!=this.C.indexOf("default")};
h.Gj=function(a){return ke(0==this.D?Math.round(a*this.A/this.L):Math.round(1E3*a/this.D),0,this.xk()-1)};
h.Pm=function(){return this.A-1};
h.ts=function(){return this.A?0:-1};
h.us=function(){};ou.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};
ou.prototype.C=function(a,b,c,d){return new nu(a,b,c,d)};
ou.prototype.D=function(){};B(pu,nu);h=pu.prototype;h.xk=function(){return this.o?this.o.ao():-1};
h.Gj=function(a){var b=this.rows*this.Fb*this.J,c=-1,d=-1,e=this.o;e&&(c=e.Kb(),d=e.jf(a));return d>c-b?-1:d};
h.Pm=function(){return this.o?this.o.Kb():-1};
h.ts=function(){return this.o?this.o.Bg():-1};
h.us=function(a){this.o=a?a.index:null};B(qu,ou);qu.prototype.A=function(a,b){return qu.N.A.call(this,"$N|"+a,b)};
qu.prototype.C=function(a,b,c){return new pu(a,b,c,this.F.isLive)};
qu.prototype.D=function(a){for(var b=0;b<this.o.length;b++)this.o[b].us(a)};var vu=I().toString();var Du=/^([0-9\.]+)\:([0-9\.]+)$/;var Ju=0;Lu.prototype.nc=function(){return{version:this.version,args:this.args}};
Ou.prototype.toString=function(){return this.topic};var mga=t("yt.pubsub2.instance_")||new ui;ui.prototype.subscribe=ui.prototype.subscribe;ui.prototype.unsubscribeByKey=ui.prototype.Mb;ui.prototype.publish=ui.prototype.P;ui.prototype.clear=ui.prototype.clear;q("yt.pubsub2.instance_",mga,void 0);var Su=t("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Su,void 0);var Uu=t("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Uu,void 0);var Tu=t("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Tu,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);B(Xu,Lu);var Qu=new Ou("timing-sent",Xu);var jv=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},hv=A(jv.clearResourceTimings||jv.webkitClearResourceTimings||jv.mozClearResourceTimings||jv.msClearResourceTimings||jv.oClearResourceTimings||w,jv),$u=jv.mark?function(a){jv.mark(a)}:w;var Kw,C1;var B$=oc,C$=B$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!C$||2>C$.length)Kw=void 0;else{var D$=B$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Kw=D$&&6==D$.length?Number(D$[5].replace("_",".")):0}(C1=0<=Kw)&&0<=oc.search("Safari")&&oc.search("Version");var Iw={du:1,GG:2};var Gw={LIKE:0,DISLIKE:1,INDIFFERENT:2};var qv=function(){if(K6)return pv(/Firefox\/([0-9.]+)/);if(vc||uc||Lf)return Ac;if(Fl)return pv(/Chrome\/([0-9.]+)/);if(Ft&&!(rc()||nc("iPad")||nc("iPod")))return pv(/Version\/([0-9.]+)/);if(wG||Jw){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(oc))return a[1]+"."+a[2]}else if(xG)return(a=pv(/Android\s+([0-9.]+)/))?a:pv(/Version\/([0-9.]+)/);return""}();rv.prototype.start=function(){return 0};
rv.prototype.end=function(){return window.Infinity};
rv.prototype.length=1;h=tv.prototype;h.addEventListener=function(){};
h.removeEventListener=function(){};
h.dispatchEvent=function(){};
h.abort=function(){};
h.remove=function(){};
h.appendBuffer=function(){};uv.prototype.dispose=function(){if(!this.B){if(this.o)try{window.URL.revokeObjectURL(this.C)}catch(a){}this.B=!0}};
uv.prototype.isDisposed=function(){return this.B};
uv.prototype.equals=function(a){return null!=a&&vv(a)==vv(this)};h=wv.prototype;h.append=function(a){this.A.webkitSourceAppend(this.B,a)};
h.abort=function(){this.A.webkitSourceAbort(this.B)};
h.AC=function(){return this.A.webkitSourceState==this.A.SOURCE_CLOSED?new xv:this.A.webkitSourceBuffered(this.B)};
h.CC=function(){return this.C};
h.GC=function(a){this.C=a;this.A.webkitSourceTimestampOffset(this.B,a)};h=yv.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.HE=function(){return this.o.webkitMediaSourceURL};
h.addSourceBuffer=function(a){var b=(this.B++).toString();this.o.webkitSourceAddId(b,a);a=new wv(this.o,b);this.sourceBuffers.push(a);return a};
h.DC=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.EC=function(){lb(this.sourceBuffers)};
h.BC=function(){return this.A};
h.FC=function(a){this.A=a;this.o.webkitSourceSetDuration&&this.o.webkitSourceSetDuration(a)};B(zv,G);zv.prototype.za=function(a){for(var b=0;b<this.M.length;b++)if(this.M[b]==a){this.M.splice(b,1);a.target.removeEventListener(a.name,a.Oh);break}};
zv.prototype.T=function(){Bv(this);zv.N.T.call(this)};B(Cv,zv);Cv.prototype.Lf=function(a){Gv(this)?this.B.duration=a:this.C=a};
Cv.prototype.K=function(){if(!this.isDisposed()&&Gv(this)&&!(0,window.isNaN)(this.C)){this.B.duration=this.C;this.C=window.NaN;try{this.o=this.B.addSourceBuffer(this.H),this.S?this.A=this.B.addSourceBuffer(this.L):this.A=new tv,this.D&&(this.D(this),this.D=null)}catch(a){this.F&&this.F()}}};
Cv.prototype.J=function(){this.dispose()};Mv.prototype.A=function(){return null};
var Qv={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};var gw="9h8(H*".split(""),iw="h98H(*".split(""),jw="oMavAV".split(""),kw="aoMvAV".split(""),hw=["f"],Uv={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Vv={"application/x-mpegURL":"maybe"},Tv={"application/x-mpegURL":"maybe"};B(tw,Mv);
tw.prototype.A=function(){if(!this.o||this.o.isDisposed()){var a;a=this.B;pw(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.Nn+","+f.Nn)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}a=b.join("\n");this.o=new uv("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(a))}return this.o};B(ww,Mv);ww.prototype.A=function(){return new uv(this.o)};B(Aw,Rj);Aw.H=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Aw.o=1;Aw.D=-21;Aw.F=18E3;Aw.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(" ");Aw.G="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(" ");
Aw.A={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};Aw.C=["www.youtube.com","manifest.googlevideo.com"];h=Aw.prototype;h.adModule=!1;h.adaptiveFormats="";h.Cm=null;h.allowEmbed=!0;h.backgroundable=!1;h.Dd=!1;h.af="";h.An=!1;h.Kh=!1;h.Jh=Aw.o;h.sj=null;h.watchAjaxToken=null;h.author="";h.qj=0;h.Qh=!1;h.Pn=!1;h.Rh="";h.Sh="";h.clientPlaybackNonce="";h.contentCheckOk=!1;h.Se=0;h.pk=!1;h.enableCardio=!1;
h.enableCardioBeforePlayback=!1;h.ff=0;h.Od=!1;h.po=!1;h.rj=0;h.kh=0;h.bl=!1;h.zf=!1;h.fl=!1;h.To=!1;h.il=!1;h.isListed=!1;h.Af=!1;h.Fa=!1;h.isLiveDefaultBroadcast=!1;h.isLowLatencyLiveStream=!1;h.isMdxPlayback=!1;h.isPharma=!1;h.nl=!1;h.Zf=!1;h.Xo=!1;h.pl=!1;h.ql=3;h.liveStartWalltime=0;h.lengthSeconds=0;h.Dm=0;h.paygated=!1;h.profilePicture="";h.racyCheckOk=!1;h.Ed=1;h.Yg=Zt;h.Ae=!1;h.startSeconds=0;h.bj=null;h.sentiment=2;h.spacecastModule=!1;h.eh=Zt;h.Rf=null;h.title="";h.Uf="";h.hlsFormats="";
h.nj=null;h.nm="vvt";h.requiresPurchase=!1;h.clipStart=0;h.clipEnd=window.Infinity;h.Gx=function(a){(this.J=a)&&"fairplay"==this.J.A&&(this.J.fairPlayCert=this.fairPlayCert);Vw(this)};
h.iz=function(a){this.isDisposed()||(this.o=a,this.Fa?this.o.subscribe("refresh",this.xp,this):this.o.isLive=!1,Yu("mrc"),at(this.o)&&(this.Y=!0),Vw(this))};
h.hz=function(a){this.isDisposed()||(this.Od=!1,this.P("dataloaderror",new nv("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
h.xp=function(){this.o.isLive||this.o.unsubscribe("refresh",this.xp,this);var a=vb(this.o.B.C,this.La);0<a.length&&(this.P("cuepointupdated",a),this.La+=a.length)};
h.Rc=function(a){return y(this.keywords[a])?this.keywords[a]:null};
h.Cq=function(){var a={format:"RAW",method:"GET",context:this,kb:this.zz,onError:this.Cp,withCredentials:this.Cd};this.he&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});Bj(this.ac,a);Yu("vir")};
h.Bc=function(a,b){if(30==this.V){var c=this.ab["default.jpg"];return c?c:this.videoId?Ug("//docs.google.com/vt",{id:this.videoId,authuser:this.zb,authkey:this.nb}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.ab[b])||a.C||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:LG(a,this.videoId,b)};
h.zz=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.Od=!1;var c=oj(b);"fail"==c.status?this.P("onStatusFail",c):(Yu("virc"),F(Aw.B,function(a){a in this.C&&(c[a]=this.C[a])},this),Bw(this,c),Vw(this))}else this.Cp(a)}};
h.Cp=function(a){if(!this.isDisposed()){var b="manifest.net",c=!0,d={backend:"gvi",rc:a.status};this.qb&&(this.Ob?b="manifest.net.retryexhausted":(this.Ob=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.ge.start()));this.P("dataloaderror",new nv(b,c,d))}};
h.Te=function(){return null};
h.rb=function(){return this};
h.Bk=function(a){return a.getVideoUrl(this.videoId)};B(jx,Rj);h=jx.prototype;h.hasNext=function(a){return this.H||!!a||this.o+1<this.B};
h.rb=function(a){a=void 0!=a?a:this.o;a=this.A&&a in this.A?this.A[this.C[a]]:null;var b=null;a&&(b=new Aw(a),b.startSeconds=this.startSeconds||b.clipStart||0,this.D&&(b.playlistId=this.D.toString()));return b};
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.K++;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.K++}this.P("shuffle")};
h.Bc=function(a,b){b=b||"hqdefault.jpg";var c=this.O[b];if(c||a.C||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.M.length)return LG(a,this.M[0],b)};
h.Te=function(){return this.D?this.D.toString():null};
h.Bk=function(a){return a.getVideoUrl(this.rb().videoId,this.Te())};
h.T=function(){this.G=null;Nb(this.A);jx.N.T.call(this)};B(Bx,Q);h=Bx.prototype;h.up=function(){this.xb(kH(this.C))};
h.Xm=function(){var a=this.C.W().experiments.C,b=Math.min($s()-this.F,a),a=Math.min(b/a,1);this.G.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.A&&this.A.start()};
h.select=function(a){Ex(this);var b=this.D.rb().videoId;T9(this.C.app,b,a?this.D.Yb:this.D.aa,this.D.Te())};
h.OF=function(a){!$l(a)&&yx(a)&&(this.select(),Zl(a))};
h.Ps=function(a){Zl(a);vH(this.C,"autonavcancel");V9(this.C.app,!0)};
h.T=function(){Ex(this);Bx.N.T.call(this)};B(Fx,Q);Fx.prototype.K=function(a,b){Di(this.A);this.context&&(this.A=Eq(A(this.K,this,a,b),b),a.call(this,new Date-this.J))};
Fx.prototype.T=function(){Di(this.A);this.context=null;Fx.N.T.call(this)};B(Gx,Q);Gx.prototype.Kf=function(){var a=this.A.rb().videoId;T9(this.C.app,a,this.A.aa,this.A.Te())};
Gx.prototype.D=function(a){!$l(a)&&yx(a)&&(this.Kf(),Zl(a))};
Gx.prototype.F=function(a){switch(a.keyCode){case 13:case 32:$l(a)||(this.Kf(),Zl(a))}};B(Hx,Hq);Hx.o=2;h=Hx.prototype;h.create=function(){Hx.N.create.call(this);var a=this.A.getVideoData();a&&(this.C=a.G);this.yd();this.J.subscribe("onResize",this.yd,this);this.J.subscribe("videodatachange",this.Nr,this);this.J.subscribe("autonavchange",this.Mr,this);this.J.subscribe("autonavcancel",this.ew,this)};
h.destroy=function(){this.J.unsubscribe("onResize",this.yd,this);this.J.unsubscribe("videodatachange",this.Nr,this);Nb(this.D);this.C=[];this.D=[];Hx.N.destroy.call(this);Zd(this.element,"ytp-show-tiles");this.M.stop()};
h.Lh=function(){return 1!=this.A.getVideoData().Ed};
h.show=function(){Hx.N.show.call(this);this.A.W().isMobile?Vd(this.M):this.M.start();(this.L||this.G&&this.G!=this.A.getVideoData().clientPlaybackNonce)&&V9(this.A.app,!1);var a=Jx(this.A.W(),this.A.getVideoData(),this.A.$b()),b=!this.G&&this.Lh()&&a;a&&this.A.W().experiments.ma("ui_logging")&&this.Y.log({cancelButtonShow:b?"1":"0",state:this.Lh()?"enabled":"disabled"});b?2==this.A.getVideoData().Ed?Cx(this.F):3==this.A.getVideoData().Ed&&Dx(this.F):V9(this.A.app,!0);Lx(this)};
h.fa=function(){Hx.N.fa.call(this);Dx(this.F);Lx(this)};
h.yd=function(a){if((!a||Vl(a)==this.element)&&this.C&&this.C.length){a=this.A.W().experiments.ma("video_wall_pagination");var b=this.A.W().experiments.ma("video_wall_redesign");a&&K(this.element,"ytp-endscreen-paginate");var c=hg(this.element),d=96,e=54,f=c.width/c.height,k=d/e;By(this.A.W())&&!this.A.Ja()&&(d*=.9,e*=.9);for(var l=0,m=0,p=Math.max(c.width/d,2),u=Math.max(c.height/e,2),v=this.C.length,z=Math.pow(Hx.o,2),x=v*z,ga=Kx(this,0,u,p),wa=Kx(this,1,u,p),x=x+(Math.pow(ga,2)-z),x=x+(Math.pow(wa,
2)-z);0<x&&(l<p||m<u);){var J=l/Hx.o,X=m/Hx.o,Lb=l<=p-Hx.o&&x>=X*z,wd=m<=u-Hx.o&&x>=J*z;if(J/X*k>f&&wd)x-=J*z,m+=Hx.o;else if(Lb)x-=X*z,l+=Hx.o;else if(wd)x-=J*z,m+=Hx.o;else break}k=!1;p=Hx.o+ga;x>=3*z&&6>=v*z-x&&(m>=p||l>=p)&&wa<=Hx.o&&(k=!0);d*=l;e*=m;z=1;z=d/e<f?c.height/e:c.width/d;z=Math.min(z,b?2:Hx.B);d*=z;e*=z;f=b?1:Hx.A;d*=ke(c.width/d||1,1,f);e*=ke(c.height/e||1,1,f);d=Math.floor(Math.min(c.width,d));e=Math.floor(Math.min(c.height,e));c=this.S.element;eg(c,d,e);Mf(c,{marginLeft:d/-2+"px",
marginTop:e/-2+"px"});f=this.F;z=zx(this.C[0]);f.D=z;Ax(f,z,f.C.W(),"hqdefault.jpg");L(this.element,"ytp-endscreen-takeover",Ix(this));Lx(this);b=b?16:1;f=d+b;d=e+b;e=0;z=!1;for(x=0;x<l;x++)for(p=0;p<m;p++)if(u=wa>Hx.o&&1<=e&&!z?e+1:e,J=0,k&&x>=l-Hx.o&&p>=m-Hx.o?J=1:0==p%Hx.o&&0==x%Hx.o&&(p<ga&&x<ga?0==p&&0==x&&(J=ga):wa>Hx.o&&p>=m-wa&&x>=l-wa?p==m-wa&&x==l-wa&&(z=!0,u=1,J=wa):J=Hx.o),u=(u+this.H)%v,u=0>u*v?u+v:u,0!=J){X=this.D[e];X||(X=new Gx(this.A),this.D[e]=X,c.appendChild(X.element));var Lb=
Math.floor(d*p/m),wd=Math.floor(f*x/l),gp=Math.floor(d*(p+J)/m)-Lb-b,hp=Math.floor(f*(x+J)/l)-wd-b;Tf(X.element,wd,Lb);eg(X.element,hp,gp);Mf(X.element,"transitionDelay",(p+x)/20+"s");L(X.element,"videowall-still-mini",1==J);L(X.element,"videowall-still-large",2<J);J=X;u=zx(this.C[u]);J.A=u;Ax(J,u,J.C.W(),Xd(J.element,"videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");e++}a&&L(this.element,"ytp-endscreen-paginate",e<v);for(a=this.D.length-1;a>=e;a--)X=this.D[a],qf(X.element),Mb(X);this.D.length=
e}};
Hx.B=1.42;Hx.A=1.21;h=Hx.prototype;h.Nr=function(){var a=this.A.getVideoData().G;this.C!=a&&(this.H=0,this.C=a,this.yd())};
h.Py=function(){this.H+=this.D.length;this.yd()};
h.Qy=function(){this.H-=this.D.length;this.yd()};
h.Mr=function(a){1==a?(this.L=!1,this.G=this.A.getVideoData().clientPlaybackNonce,Ex(this.F),this.B&&this.yd()):(this.L=!0,this.B&&Ix(this)&&(2==a?Cx(this.F):3==a&&Dx(this.F)))};
h.ew=function(a){a?this.Mr(1):(this.G=null,this.L=!1,this.yd())};B(Nx,mq);h=Nx.prototype;h.Xa=function(a){return Px(a)};
h.create=function(){Nx.N.create.call(this);Tx(this);this.o.getVideoData().subscribe("dataupdated",this.iq,this)};
h.destroy=function(){this.o.getVideoData().unsubscribe("dataupdated",this.iq,this);nq(this);this.A.K&&this.A.destroy();Nx.N.destroy.call(this)};
h.load=function(){Nx.N.load.call(this);this.A.show();this.o.W().Z&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
h.unload=function(){Nx.N.unload.call(this);this.A.fa()};
h.mc=function(a){Nx.N.mc.call(this,a);Rx(this)&&(this.A.K||this.A.create(),"load"==a.getId()&&this.load())};
h.Hc=function(a){"load"==a.getId()&&this.loaded&&this.unload();Nx.N.Hc.call(this,a)};
h.iq=function(){nq(this);Tx(this)};var Qea={gG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",hG:"ERROR_AUTHENTICATION_EXPIRED",iG:"ERROR_AUTHENTICATION_MALFORMED",jG:"ERROR_AUTHENTICATION_MISSING",nG:"ERROR_BAD_REQUEST",sG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",AG:"ERROR_CGI_PARAMS_MALFORMED",BG:"ERROR_CGI_PARAMS_MISSING",IG:"YTP_DEVICE_FALLBACK",NG:"YTP_ERROR_LICENSE",SG:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",TG:"YTP_ERROR_GEO_FAILURE",cH:"YTP_ERROR_GENERIC_WITHOUT_LINK",dH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",jH:"YTP_ERROR_INVALID_DRM_MESSAGE",
mH:"LEARN_MORE",DH:"YTP_ERROR_NOT_SIGNED_IN",SH:"YTP_ERROR_PURCHASE_NOT_FOUND",TH:"YTP_ERROR_PURCHASE_REFUNDED",WH:"YTP_ERROR_RENTAL_EXPIRED",vG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",wG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",yG:"YTP_ERROR_CAST_TOKEN_FAILED",xG:"YTP_ERROR_CAST_TOKEN_EXPIRED",zG:"YTP_ERROR_CAST_TOKEN_MALFORMED",dI:"YTP_ERROR_SERVER_ERROR",qI:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",rI:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",sI:"YTP_ERROR_STREAMING_NOT_ALLOWED",tI:"YTP_ERROR_STREAMING_UNAVAILABLE",
$H:"YTP_ERROR_RETRYABLE_ERROR",CI:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",BI:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",KI:"YTP_ERROR_UNSUPPORTED_DEVICE",LI:"YTP_ERROR_UNUSUAL_ACTIVITY",VI:"YTP_ERROR_VIDEO_FORBIDDEN",WI:"YTP_ERROR_VIDEO_NOT_FOUND"},Wx={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 ey=C1&&4>Kw?.1:0,Hfa=new cy;h=cy.prototype;h.Xe=null;h.Yj=!1;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.pv=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};
h.rv=function(){this.Yj&&!this.muted&&(this.muted=!0)};gy.prototype.jb=function(){return T(this,8)&&!T(this,64)&&!T(this,2)};var kz=[1,2,3,4,5],iz={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(ty,Rj);ty.prototype.C=function(){this.A.isActive()&&Vd(this.A)};
ty.prototype.D=function(){var a={headers:{"Content-Type":"application/json"},xd:{alt:"json",key:this.G},postBody:this.H,format:"JSON",timeout:1E4,kb:A(this.K,this),onError:A(this.B,this),Td:A(this.B,this)};this.F&&(a.headers["X-Goog-Visitor-Id"]=this.F);Aj(this.J,a)};
ty.prototype.K=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.P("payload",a),this.o=7500+Math.floor(15E3*Math.random()),this.A.start(this.o)):this.B())};
ty.prototype.B=function(){this.isDisposed()||(this.P("error"),192E4>this.o&&(this.o*=2),this.A.start(this.o))};B(Ey,Q);Ey.prototype.C=function(a){if(!yx(a)||this.A.W().experiments.ma("disable_fresca_video_navigation"))zy(a,this.A,!0);else{var b=a.currentTarget.getAttribute("href");T9(this.A.app,b.substring(b.length-11),void 0,void 0);Zl(a)}};B(Fy,Q);h=Fy.prototype;h.Ux=function(a){if(!yx(a)||this.C.W().experiments.ma("disable_fresca_video_navigation"))zy(a,this.C,!0);else{var b=a.currentTarget.getAttribute("href");T9(this.C.app,b.substring(b.length-11),void 0,void 0);Zl(a)}};
h.Oy=function(){this.D=!0;this.fa()};
h.show=function(){var a=!this.B;Fy.N.show.call(this);a&&oz(this.C)};
h.fa=function(){var a=this.B;Fy.N.fa.call(this);a&&oz(this.C)};
h.T=function(){Nb(this.A);Fy.N.T.call(this)};B(Ky,Q);
Ky.prototype.H=function(a){var b;b=this.A;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;L(this.element,"ytp-fresca-inline-countdown",b&&!0);L(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.A.startTime-Math.floor(I()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.G)){this.G=a;Ly(this,this.A,!0);return}My(this.A)||(a=this.A.startTime,b=Math.floor(I()/1E3),b>a?a="":(a-=b,a=86400>a?xx(a):259200>a?P("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):
P("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})),Bq(this,"countdown",a));Di(this.F);this.F=Ai(A(this.H,this),1E3)}};
Ky.prototype.T=function(){Di(this.F);Ky.N.T.call(this)};var Xy;
Xy={It:["BC","AD"],Ht:["Before Christ","Anno Domini"],pu:"JFMAMJJASOND".split(""),Iu:"JFMAMJJASOND".split(""),fn:"January February March April May June July August September October November December".split(" "),kn:"January February March April May June July August September October November December".split(" "),hn:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),ln:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),un:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),nn:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
jn:"Sun Mon Tue Wed Thu Fri Sat".split(" "),mn:"Sun Mon Tue Wed Thu Fri Sat".split(" "),o:"SMTWTFS".split(""),Ju:"SMTWTFS".split(""),Cu:["Q1","Q2","Q3","Q4"],wu:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Zm:["AM","PM"],Mj:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],qn:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Dt:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Oj:6,Ru:[5,6],Pj:5};Oy.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};
Oy.prototype.clone=function(){return new Oy(this.F,this.D,this.o,this.A,this.B,this.C)};
h=Py.prototype;h.Vn=Xy.Oj;h.Wn=Xy.Pj;h.clone=function(){var a=new Py(this.date);a.Vn=this.Vn;a.Wn=this.Wn;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 az=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
Wy.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-Vy(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(dz(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var $y=!1;ez.prototype.isLive=function(){return"LIVE"==this.A};
ez.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.A};
ez.prototype.getVideoUrl=function(){return this.F};gz.prototype.o=function(){return this.C};
gz.prototype.getMessage=function(){return this.messageText.length?this.messageText:jz(this)};
gz.prototype.equals=function(a){return a&&this.broadcastId==a.broadcastId&&this.state==a.state&&this.o()==a.o()&&this.imageUrl==a.imageUrl&&Eb(this.messageText,a.messageText)&&(this.startTime==a.startTime||(0,window.isNaN)(this.startTime)&&(0,window.isNaN)(a.startTime))};B(lz,mq);h=lz.prototype;h.Xa=function(){return fx(this.o.getVideoData(),"fresca_module")};
h.create=function(a){lz.N.create.call(this);var b=this.o.W();Rv(vt(),"application/x-mpegURL")||Wv()?(this.K=this.B=!1,this.D=new Ky(this.o),Uq(this.o,this.D.element,4),this.C=a||null,this.C||(a=this.o.getVideoData(),this.C=new ty(a.videoId,a.visitorData||zi("VISITOR_DATA",""),b.je)),this.C.subscribe("payload",this.xA,this),this.C.subscribe("error",this.Rp,this),this.subscribe("onStateChange",this.Kr,this)):pJ(this.o.app.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
h.destroy=function(){this.unsubscribe("onStateChange",this.Kr,this);Nb(this.C,this.D);lz.N.destroy.call(this)};
h.Kr=function(a){this.A&&(this.K=T(a.state,2),ry(nz(this.o))&&this.C.C(),mz(this,this.A))};
h.Rp=function(){if(!this.B){var a=this.o.getVideoData();a.hlsvp||a.H?this.o.W().experiments.ma("disable_fresca_error_fallback")||(this.B=!0,qq(this)):(qz(this,new gz(this.o.getVideoData().isLiveDefaultBroadcast)),mz(this,this.A))}};
h.xA=function(a){if(!a||a.error)this.Rp();else{var b=this.A?this.A.broadcastId:"",c=this.o.getVideoData();qz(this,new gz(c.isLiveDefaultBroadcast,a));this.F=this.F||c.isLiveDefaultBroadcast&&""!=b&&b!=this.A.broadcastId;6!=this.A.state||(c.hlsvp||c.H)&&!this.F?mz(this,this.A):(this.F=!1,this.o.Im(c.videoId))}};var tz=vc&&rz();xz.prototype.R=function(a,b,c,d){c=A(c,d||this.A);a=Nl(a,b,c);this.o.push(a);return a};
xz.prototype.za=function(a){Rl(a);ob(this.o,a)};
xz.prototype.removeAll=function(){Rl(this.o);this.o.length=0};B(Az,G);h=Az.prototype;h.start=function(){this.stop();this.C=!1;var a=Bz(this),b=Cz(this);a&&!b&&this.A.mozRequestAnimationFrame?(this.o=Nc(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(gd(this.B),20)};
h.stop=function(){if(this.isActive()){var a=Bz(this),b=Cz(this);a&&!b&&this.A.mozRequestAnimationFrame?Zc(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.bw=function(){this.C&&this.o&&Zc(this.o);this.o=null;this.F.call(this.D,I())};
h.T=function(){this.stop();Az.N.T.call(this)};var Ez={},Fz=null;B(Jz,dd);h=Jz.prototype;h.jb=function(){return 1==this.o};
h.Ji=function(){this.gc("begin")};
h.Qg=function(){this.gc("end")};
h.Vb=function(){this.gc("finish")};
h.gc=function(a){this.$(a)};B(Kz,Jz);h=Kz.prototype;h.play=function(a){if(a||0==this.o)this.progress=0,this.A=this.B;else if(this.jb())return!1;Dz(this);this.startTime=a=I();-1==this.o&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.D=this.startTime;this.progress||this.Ji();this.gc("play");-1==this.o&&this.gc("resume");this.o=1;var b=ka(this);b in Ez||(Ez[b]=this);Gz();Iz(this,a);return!0};
h.stop=function(a){Dz(this);this.o=0;a&&(this.progress=1);Lz(this,this.progress);this.gc("stop");this.Qg()};
h.pause=function(){this.jb()&&(Dz(this),this.o=-1,this.gc("pause"))};
h.T=function(){0==this.o||this.stop(!1);this.gc("destroy");Kz.N.T.call(this)};
h.destroy=function(){this.dispose()};
h.yl=function(){this.gc("animate")};
h.gc=function(a){this.$(new Mz(a,this))};
B(Mz,jc);B(Uz,G);h=Uz.prototype;h.ib=function(a){this.Kc();var b=this.o;if(1<a.length&&a.length>b.o.length)b.o=b.o.concat(a),b.o.sort(hq);else for(var c=0;c<a.length;c++){var d=a[c];!b.o.length||0<hq(d,b.o[b.o.length-1])?b.o.push(d):Gb(b.o,d,hq)}this.Kc()};
h.jh=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);d=this.o.o;c=xb(d,c,hq);0<=c&&pb(d,c)}}this.Kc()};
h.Qf=function(){this.B=Yz(this);this.G=!0;this.Kc()};
h.reset=function(){this.G=this.J=!1;this.C.stop();this.o.o=[];this.A=[];this.Kc();this.F=null};
h.Kc=function(){this.H=!0;if(!this.D)for(var a=3;this.H&&a;){this.H=!1;this.D=!0;if(this.G&&!this.J){this.C.stop();for(var b=Yz(this),c=[],d=[],e=0;e<this.A.length;e++){var f=this.A[e];f.active&&!f.contains(b)&&d.push(f)}c=c.concat(Wz(this,d));d=Qz(this.o,b);e=this.M();!T(e,48)&&b>this.B&&(d=d.concat(Rz(this.o,this.B,b)));c=c.concat(Vz(this,d));this.B=b;!this.J&&this.F&&(this.F=null,T(e,2)&&(this.B=0x8000000000000));this.V()&&(b=Tz(this.o,this.B),null!=b&&(b=(b-this.B)/this.S(),this.C.start(b)));
Xz(this,c)}this.D=!1;a--}};
h.T=function(){this.F=this.o=this.A=null;Uz.N.T.call(this)};var nA={FG:"current",CH:"new"};wA.prototype.update=function(){var a=this.A.B()||0,b=SA(this.A);if(a!=this.o||BA(this,a,b)){if(a<this.o||a-this.o>b-this.D+.5||BA(this,a,b))yA(this),this.B=a;this.D=b;this.o=a}};var DA=!1;CA.prototype.ma=function(a){return"true"==this.flags[a]};
CA.prototype.Ac=function(a){return(0,window.parseFloat)(this.flags[a])};
CA.prototype.J=function(a){return this.flags[a]?this.flags[a].toString():""};EA.prototype.B=function(){return{ps:this.o.o,el:this.o.Aa}};
EA.prototype.send=function(){if(!this.C){var a;a=this.B();a=Ug(this.o.baseYtUrl+"set_awesome",a);this.o.experiments.o&&this.A.visitorData&&tj(a)?Bj(a,{headers:{"X-Goog-Visitor-Id":this.A.visitorData}}):aq(a);this.C=!0}};B(FA,EA);
FA.prototype.B=function(){var a=FA.N.B.call(this);qa(a,this.o.A);qa(a,{html5:"1",video_id:this.A.videoId,eurl:this.o.O,framer:this.o.ie,list:this.A.$a||this.A.playlistId,w:ke(this.A.qj/this.A.lengthSeconds,0,1),l:this.A.lengthSeconds,plid:this.A.playbackId,ei:this.A.eventId,access_token:this.A.oauthToken,tpmt:zA(this.D),cpn:this.A.clientPlaybackNonce});this.o.D&&(a.adformat=this.o.D);a.feature=DA?this.o.ia:this.A.pe;var b;(b=(b=DA?this.o.referrer:this.A.referrer)?b.slice(0,128):"")&&(a.referrer=b);
this.o.autoplay&&(a.autoplay="1");this.o.zb&&(a.authuser=this.o.zb);this.o.pageId&&(a.pageid=this.o.pageId);this.A.Zf&&(a.splay="1");this.A.subscribed&&(a.subscribed=this.A.subscribed);qa(a,FA.N.B.call(this));qa(a,this.o.A);return a};B(IA,G);var bB={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};h=IA.prototype;
h.Ti=function(a){a=0<=a?a:SA(this.o);var b=this.o.G();if(!(0,window.isNaN)(this.U)&&!(0,window.isNaN)(b.B)){var c=b.B-this.U;0<c&&JA(this,a,"bwm",[c,(b.F-this.aa).toFixed(3)])}this.U=b.B;this.aa=b.F;(0,window.isNaN)(b.o)||JA(this,a,"bwe",[b.o.toFixed(0)]);(0,window.isNaN)(b.A)||(c=b.A,b.C<c&&(c=b.C),this.O!=c&&(JA(this,a,"bh",[c.toFixed(3)]),this.O=c),this.o.A.experiments.A&&3>c&&("PL"==this.A||"B"==this.A)&&this.G.start());this.C&&JA(this,a,"bat",[this.C.level,this.C.charging?"1":"0"]);c=dH(this.o.A);
this.Z!=c&&(JA(this,a,"vis",[c]),this.Z=c);JA(this,a,"cmt",[this.o.B()]);0<b.D&&JA(this,a,"e2el",[b.D,b.H.toFixed(3),b.G.toFixed(3),b.K.toFixed(3),b.J.toFixed(3)])};
h.Vg=function(a){if(!this.isDisposed()&&!ac(this.B)){a=0<=a?a:SA(this.o);this.G.isActive()||this.Ti(a);var b=MG(this.o.A),c=b.droppedVideoFrames,d=c-this.V;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&JA(this,a,"df",[d]);this.V=c;a=KA(this);gc(a,this.o.A.A);a=Ug(this.o.A.xc,a);for(var e in this.B)a+="&"+e+"="+this.B[e].join(",");aq(a);this.B={};this.F.start()}};
h.Qf=function(){JA(this,SA(this.o),"vps",["N"]);this.o.o.Va&&LA(this,"preload");this.o.o.nl&&LA(this,"reload");this.o.o.Af&&LA(this,"monitor");this.o.A.experiments.Y&&Ai(A(this.RB,this),5E3);this.S=Ci(A(this.Vg,this),1E4);this.F.start()};
h.RB=function(){var a=ij("yt-player-benchmark")||0;if(!a){for(var b=a=0;20>b;b++){for(var c=$s(),d=0,e=0;1>$s()-c;){for(var f=0;1E3>f;f++)e=e*e%1E3+1;e=e%1E3;d++}d=Math.floor(d+e/1E3);a=Math.max(d,a)}a=Math.floor(Math.log(a)/Math.log(2));gj("yt-player-benchmark",a,172800)}LA(this,"jsbench-"+a)};
h.Iq=function(){this.o.o.J&&LA(this,"drm-"+this.o.o.J.A)};
h.onError=function(a,b){var c=this.o.B(),c=[a,c.toFixed(3)];b&&c.push(b);var d=SA(this.o);JA(this,d,"error",c);this.Ti(d)};
h.Bz=function(){var a=SA(this.o);"PL"==this.A&&(JA(this,a,"vps",[this.A]),this.Vg(a))};
h.T=function(){IA.N.T.call(this);Ei(this.S)};MA.prototype.send=function(a){if(!this.Z){var b=OA(this),b=Ug(this.$a,b);if(this.V)this.L&&(a={method:"POST",Bb:{atr:this.L}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),Bj(b,a));else{var c=this.G&&uj(),d=this.da&&!!this.visitorData;if(c||d){var e={};c&&(e.Authorization="Bearer "+this.G);d&&(e["X-Goog-Visitor-Id"]=this.visitorData);Bj(b,{headers:e,withCredentials:!0,Vb:a})}else aq(b,a)}this.Z=!0}};
MA.prototype.o=function(a){return(1*a.toFixed(3)).toString()};B(QA,G);h=QA.prototype;h.kz=function(a,b){if(!this.isDisposed()){this.G=window.NaN;this.A.update();var c=AA(this.A),d=VA(this,c);b&&(d.D=a);var e=400<this.K;!(1<c.length)&&c[0].isEmpty()||e||(d.A=RA(this,!0,a));d.send();this.K++}};
h.Qf=function(){this.B.Qf()};
h.onError=function(a,b){this.B.onError(a,b)};
h.Yi=function(a){var b=this.o.A,c=this.o.o,c={ns:b.aa,el:b.Aa,eurl:b.O,fmt:c.A?c.A.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.o,noflv:1,st:this.o.B(),video_id:c.videoId,metric:a};b.autoplay&&(c.autoplay="1");"heartbeat"==a&&(c.tpmt=zA(this.A));qa(c,b.A);YA(this,Ug("//www.youtube.com/live_204",c))};
h.T=function(){QA.N.T.call(this);Di(this.G);this.G=window.NaN;var a=this.A;Ei(a.F);a.F=window.NaN};dB.prototype.fb=function(a,b){wH(this.ca,"iv",a,b)};h=mB.prototype;h.$i=function(){this.context.D.subscribe("onResize",this.Mh,this)};
h.ka=function(){return this.Z};
h.Nf=function(a,b,c,d,e,f){this.context.o.R(a,"click",pa(this.Ei,b,c,d,e||[],f||0),this);this.context.o.R(a,"touchstart",pa(function(){this.pm=!1}),this);
this.context.o.R(a,"touchmove",pa(function(){this.pm=!0}),this)};
h.Ei=function(a,b,c,d,e,f){if(this.pm)return!1;f&&(f.stopPropagation(),f.preventDefault());(b=tA(a,b,this.context.C.videoId))&&pB(this,b,vA(b,a.target),c,d,e,a.Oi);return!1};
h.show=function(){this.K=I()};
h.fa=function(){};
h.destroy=function(){qf(this.ka())};
h.Mh=function(){};B(qB,Q);h=qB.prototype;h.KE=function(a){this.A&&yf(this.A.element,Vl(a))||(this.Hj(),Pi("iv-teaser-clicked",!!this.ya),this.ca.nh(!0))};
h.JE=function(){Pi("iv-teaser-hovered")};
h.VA=function(a){this.ya||!a||yH(this.ca)||this.D&&this.D.isActive()||(tB(this,a.teaserText,a.durationMs,a.Jw),Pi("iv-teaser-shown"))};
h.Iw=function(a,b,c,d){d&&this.ca.pauseVideo();vy(b,void 0);wy(b,c);Pi("iv-hover-card-clicked")};
h.Kw=function(){K(this.element,"ytp-hover-card-active")};
h.Lw=function(){Zd(this.element,"ytp-hover-card-active")};
h.Hj=function(){!this.ya||this.F&&this.F.isActive()||(this.A&&(Aq(this.A),this.A=null),this.G.fa(),Zd(this.ca.Ba(),"ytp-cards-teaser-shown"),this.F=new Ud(function(){for(var a=0;a<this.C.length;a++)this.za(this.C[a]);this.C=[];this.ya&&(this.ya.dispose(),this.ya=null);uB(this.H,!0)},330,this),this.F.start())};
h.T=function(){var a=this.ca.Ba();a&&Zd(a,"ytp-cards-teaser-shown");Nb(this.D,this.F,this.ya,this.A);qB.N.T.call(this)};B(wB,vB);B(xB,vB);B(yB,xB);zB.prototype.D=function(a,b){var c=Hf(b.target,"iv-card-poll");if(c){var d=Ff(b.target,"label");K(d,"iv-card-poll-choice-checked");a:{if(d=b.target.form.elements[a.B]){if(d.type){d=kj(d);break a}for(var e=0;e<d.length;e++){var f=kj(d[e]);if(f){d=f;break a}}}d=null}d=(0,window.parseInt)(d,10);a.choices[d].count++;BB(a,c);Aj(this.o.C.af,{xd:{action_poll_vote:1},Bb:{poll_id:a.id,index:d}});c={};c["link-id"]=d;iB(this.o.logger,a.Ra,void 0,c,a.o.click,5)}};
zB.prototype.C=function(a){var b=t("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=pa(b,a.H,a.C));LB(this,a,b)};
zB.prototype.F=function(a){var b=t("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=pa(b,a.H,a.C,a.J));LB(this,a,b)};B(NB,vB);B(OB,vB);B(PB,xB);B(UB,xB);B(VB,vB);B(WB,vB);B(XB,mB);h=XB.prototype;h.isAvailable=function(){var a;if(a=!!this.A.length)(a=this.ca.Ba())?(a=hg(a),a=177<a.width&&177<a.height):a=!1;return a};
h.gv=function(){YB(this)&&!iC(this)||aC(this)};
h.ev=function(){cC(this)};
h.Mh=function(){var a=this.isAvailable();Lq(this.ka(),a);L(this.context.A.Ba(),"ytp-iv-drawer-enabled",a);a&&(this.S||(kB(this.context.logger,11),this.S=!0),F(this.A,function(a){a.ap||(a.ap=!0,lB(this.context.logger,11,a.Sa.Ra))},this));
bC(this.ca)};
h.destroy=function(){zH(this.ca,!1);this.ca.Ba().removeChild(this.F);Oi(this.G);Rl(this.O);this.J&&this.J.dispose();this.C&&this.C.dispose();XB.N.destroy.call(this)};
var ZE={adspaycreator:xB,associated:xB,associated:xB,collaborator:wB,donation:yB,episode:WB,fundraising:xB,location:xB,merch:xB,movie:WB,playlist:NB,poll:OB,product:xB,productListing:PB,simple:xB,tip:UB,video:VB};h=XB.prototype;h.dE=function(a){this.ak.start();a.preventDefault();if(a=bm(a||window.event,!1))this.yc.scrollTop+=a};
h.Pl=function(a,b,c){if(!Xd(this.ca.Ba(),"ytp-cards-teaser-shown")){this.o!=a&&(this.o=a);if(Mq(this.ka())&&(b||(2==this.context.A.getPresentingPlayerType()?b=1==((0,window.isNaN)(void 0)?this.context.A.getAdState():void 0):(b=(0,window.isNaN)(void 0)?this.context.A.getPlayerState():void 0,b=1==b||0==b&&0===this.context.A.getCurrentTime())),b&&a.Sa.teaserDurationMs)){b=a.Sa.teaserText;c=c?c:a.Sa.teaserDurationMs;var d=null,e=this.context.B.experiments.ma("hover_card_for_video_card_teaser");if("video"==
a.Sa.type&&e){var e=a.Sa,f=e.url?tA(e.url,a.Sa.id,this.context.C.videoId,this.context.B):null,k=f?vA(f,e.url.target):null;f&&k&&(d={lv:e.id,title:e.title,MB:f,target:"current"==k?"_top":void 0,Oi:e.url.Oi,imageUrl:e.B,videoDuration:e.videoDuration,qd:e.qd})}zH(this.ca,!0,{teaserText:b,durationMs:c,Jw:d})}(!this.D||!this.ak.isActive()&&this.Ci)&&gC(this,a)}};
h.kC=function(){this.o&&this.Pl(this.o,!0,2E3)};
h.dC=function(a){this.D||(this.o=a,gC(this,a),aC(this,a))};
h.tv=function(){this.D&&(kB(this.context.logger,4,hC(this).o.close),cC(this))};
h.Hv=function(){L(this.F,"iv-drawer-scrolled",0<this.yc.scrollTop)};
h.Qx=function(){var a=hC(this);lB(this.context.logger,8,a.Ra,a.o.oC)};
h.Px=function(){var a=this.o;lB(this.context.logger,13,a.Sa.Ra,void 0);var b=this.context.B.experiments.ma("hover_card_for_video_card_teaser");"video"==a.Sa.type&&b&&(a=this.o,a.Fi||(a.Fi=!0,eB(this.context.logger,a.Sa.Ra,a.Sa.o.No)))};
h.Nx=function(){var a=this.o.Sa;iB(this.context.logger,a.Ra,void 0,void 0,a.o.click,5)};
h.Ox=function(a){var b=hC(this);this.o?a?(a=this.context.logger,lB(a,9,b.Ra,b.o.Yl)):(a=this.context.logger,lB(a,12,b.Ra,b.o.Yl)):(a=this.context.logger,kB(a,12,b.o.Yl));a.ca.cg(4,void 0)};var lC=/#(.)(.)(.)/,kC=/^#(?:[0-9a-f]{3}){1,2}$/i;B(mC,Kz);mC.prototype.C=w;mC.prototype.yl=function(){this.C();mC.N.yl.call(this)};
mC.prototype.Qg=function(){this.C();mC.N.Qg.call(this)};
mC.prototype.Ji=function(){this.C();mC.N.Ji.call(this)};
B(nC,mC);nC.prototype.C=function(){this.element.style.left=Math.round(this.A[0])+"px";this.element.style.top=Math.round(this.A[1])+"px"};B(oC,mB);oC.prototype.$i=function(){oC.N.$i.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&nB(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.fa)};B(pC,oC);pC.prototype.J=function(a,b,c,d){this.o.stop();if(!this.B){var e=hg(a);fg(a,e.width);fg(b,e.width);Tf(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.B=!0;Nq(a);this.D=new Ud(function(){K(this.ka(),"iv-branding-active")},0,this);
this.D.start()}};
pC.prototype.H=function(a,b){Zd(this.ka(),"iv-branding-active");this.F=new Ud(function(){Oq(a);fg(b,0)},250);
this.F.start();this.B=!1};
pC.prototype.show=function(){if(!this.isActive){pC.N.show.call(this);if(!this.G){K(this.ka(),"iv-branding");var a=this.annotation.data;this.C=a.image_width;this.A=M("img",{src:a.image_url,"class":"branding-img iv-click-target hid",width:a.image_width,height:a.image_height});var b=M("div","branding-img-container",this.A);this.ka().appendChild(b);var c=M("div","iv-branding-context-name");Af(c,a.channel_name);var d=M("div","iv-branding-context-subscribe");this.annotation.B?d.innerHTML=this.annotation.B:
a.num_subscribers&&Af(d,a.num_subscribers);b=M("div","iv-branding-context-subscribe-caret");c=M("div",["branding-context-container-inner","hid"],b,c,d);d=M("div","branding-context-container-outer",c);Mf(d,"right",this.C+"px");this.ka().appendChild(d);this.Nf(this.A,$C(this.annotation),this.annotation.id,this.annotation.Ra);this.o=new Ud(pa(this.H,c,d),500,this);this.context.o.R(this.ka(),"mouseover",A(this.J,this,c,d,b,a.image_height));this.context.o.R(this.ka(),"mouseout",A(this.o.start,this.o));
this.G=!0}eB(this.context.logger,this.annotation.Ra);Nq(this.ka());this.isActive=!0;var a=this.A,e,b=jg(a).width,c=fa(void 0)?void 0:b;e=e||0;Tf(a,c);e=new nC(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,Nz);this.context.o.R(e,"begin",pa(Nq,a));e.play()}};
pC.prototype.fa=function(){this.isActive&&(Oq(this.ka()),this.isActive=!1)};var tC={CLOSE:"close",HH:"openUrl",Ku:"subscribe"},uC={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",aI:"rollOut",Au:"rollOver",Du:"shown"};var EC={fJ:"xx",gJ:"xy",jJ:"yx",kJ:"yy"};B(IC,CC);var MC={$s:"anchored",VH:"rect",eI:"shapeless"};var RC={CLOSED:"closed",LH:"playerControlShow",Au:"rollOver",Du:"shown"};var YC={$s:"anchored",BRANDING:"branding",CHANNEL:"channel",EG:"cta",aH:"highlightText",kH:"label",PLAYLIST:"playlist",NH:"popup",mI:"speech",Ku:"subscribe",yI:"title",VIDEO:"video",$I:"vote",bJ:"website"},XC={BRANDING:"branding",tG:"card",$G:"highlight",IMAGE:"image",MARKER:"marker",RH:"promotion",TEXT:"text",cJ:"widget"},ZC={XI:"video_relative",MH:"player_relative"};VC.prototype.showLinkIcon=function(){return cD(this,function(a){return null!=a.url&&a.url.showLinkIcon})};B(jD,oC);h=jD.prototype;h.show=function(){this.isActive||(jD.N.show.call(this),this.H||(kD(this),this.H=!0),Nq(this.ka()),this.annotation&&this.annotation.Ra&&eB(this.context.logger,this.annotation.Ra),Zd(this.ka(),"iv-promo-inactive"),this.ka().removeAttribute("aria-hidden"),this.isActive=!0,this.o&&(Td(this.o),this.o=null),mD(this),nD(this,this.F))};
h.fa=function(){this.isActive&&(K(this.ka(),"iv-promo-inactive"),this.isActive=!1,this.ka().setAttribute("aria-hidden",!0))};
h.Ei=function(a,b,c,d,e,f){return this.C?!1:jD.N.Ei.call(this,a,b,c,d,e,f)};
h.Jk=function(a,b){b.stopPropagation();mD(this);nD(this,a);this.Rb.focus()};
h.tw=function(a){this.G=!0;this.Jk(500,a)};
h.rw=function(){this.G=!1;lD(this)};
h.eE=function(a){a.stopPropagation();this.fa();jB(this.context.logger,this.annotation.Ra)};
h.destroy=function(){this.D.dispose();jD.N.destroy.call(this)};var uG={ZF:"adunit",HG:"detailpage",LG:"embedded",lH:"leanback",QH:"profilepage"};oD.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.P(this.D,a,d))};h=qD.prototype;h.fa=function(){this.isVisible=!1;this.o&&(sD(this),this.o.fa())};
h.show=function(){this.isVisible=!0;this.o&&(this.o.show(),this.B.subscribe("onResize",this.Pr,this),this.B.subscribe("onVideoAreaChange",this.hq,this))};
h.destroy=function(){if(this.o){sD(this);var a=this.o;a.G.removeAll();a.vl.dispose();a.J.dispose();a.A&&qf(a.A);a.B&&a.B.ka()&&qf(a.B.ka())}tD(this)};
h.hq=function(){DE(this.o)};
h.Pr=function(){DE(this.o)};uD.prototype.clone=function(){return new uD(this.start,this.end)};B(wD,vD);xD.prototype.Oc=null;xD.prototype.Pb=null;xD.prototype.bh=!0;var BD=[2,2,6,6,0];h=xD.prototype;h.clear=function(){this.ua.length=0;this.xa.length=0;this.dc.length=0;delete this.Oc;delete this.Pb;delete this.bh;return this};
h.sb=function(a){var b=db(this.ua);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ua.push(1),this.xa.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.dc.push(c,d)}this.xa[this.xa.length-1]+=b/2;this.Pb=[c,d]};
h.close=function(){var a=db(this.ua);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ua.push(4),this.xa.push(1),this.Pb=this.Oc);return this};
h.clone=function(){var a=new this.constructor;a.ua=this.ua.concat();a.xa=this.xa.concat();a.dc=this.dc.concat();a.Oc=this.Oc&&this.Oc.concat();a.Pb=this.Pb&&this.Pb.concat();a.bh=this.bh;return a};
h.transform=function(a){if(!this.bh)throw Error("Non-simple path");a.transform(this.dc,0,this.dc,0,this.dc.length/2);this.Oc&&a.transform(this.Oc,0,this.Oc,0,1);this.Pb&&this.Oc!=this.Pb&&a.transform(this.Pb,0,this.Pb,0,1);return this};
h.isEmpty=function(){return 0==this.ua.length};B(CD,vD);DD.prototype.getWidth=function(){return this.B};aa(ED);ED.prototype.o=0;B(FD,dd);h=FD.prototype;h.Mw=ED.getInstance();h.getId=function(){return this.S||(this.S=":"+(this.Mw.o++).toString(36))};
h.ka=function(){return this.o};
h.Zg=function(a){if(this.J&&this.J!=a)throw Error("Method not supported");FD.N.Zg.call(this,a)};
h.mo=function(){this.o=this.M.createElement("DIV")};
h.wg=function(){GD(this,function(a){a.Ke&&a.wg()});
this.D&&this.D.removeAll();this.Ke=!1};
h.T=function(){this.Ke&&this.wg();this.D&&(this.D.dispose(),delete this.D);GD(this,function(a){a.dispose()});
this.o&&qf(this.o);this.J=this.o=this.F=this.H=null;FD.N.T.call(this)};
h.Id=function(){return this.o};
h.removeChild=function(a,b){if(a){var c=y(a)?a:a.getId();a=this.F&&c?dc(this.F,c)||null:null;if(c&&a){cc(this.F,c);ob(this.H,a);b&&(a.wg(),a.o&&qf(a.o));c=a;if(null==c)throw Error("Unable to set parent component");c.J=null;FD.N.Zg.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};B(HD,FD);HD.prototype.B=null;HD.prototype.Cg=function(){return this.Ke?gg(this.ka()):fa(this.width)&&fa(this.height)?new re(this.width,this.height):null};
HD.prototype.resume=function(){};B(JD,dd);h=JD.prototype;h.Dk=null;h.Eg=null;h.ka=function(){return this.Eg};
h.addEventListener=function(a,b,c,d){Nc(this.Eg,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){Yc(this.Eg,a,b,c,d)};
h.T=function(){JD.N.T.call(this);var a=this.Eg;if(a)if(Cc(a))a.removeAllListeners(void 0);else if(a=Qc(a)){var b=0,c;for(c in a.o)for(var d=a.o[c].concat(),e=0;e<d.length;++e)Zc(d[e])&&++b}};B(KD,JD);KD.prototype.fill=null;B(OD,JD);B(PD,JD);B(QD,KD);B(RD,OD);RD.prototype.clear=function(){of(this.ka())};
RD.prototype.setSize=function(a,b){VD(this.ka(),{width:a,height:b})};
B(SD,QD);B(TD,PD);TD.prototype.setPosition=function(a,b){VD(this.ka(),{x:a,y:b})};
TD.prototype.setSize=function(a,b){VD(this.ka(),{width:a,height:b})};var $D;B(UD,HD);var YD=0;h=UD.prototype;h.mo=function(){var a=MD(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=MD(this,"g");this.G=MD(this,"defs");this.B=new RD(b,this);a.appendChild(this.G);a.appendChild(b);this.o=a;this.C&&(this.ka().setAttribute("preserveAspectRatio","none"),this.O?this.Wq():this.ka().setAttribute("viewBox","0 0 "+(this.C?this.C+" "+this.K:"")))};
h.Wq=function(){if(this.Ke){var a=this.Cg();if(0==a.width)this.ka().style.visibility="hidden";else{this.ka().style.visibility="";var b=a.width/this.C,a=a.height/this.K;this.B.ka().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
h.setSize=function(a,b){eg(this.ka(),a,b)};
h.Cg=function(){if(!tc)return this.Ke?gg(this.ka()):UD.N.Cg.call(this);var a=this.width,b=this.height,c=y(a)&&-1!=a.indexOf("%"),d=y(b)&&-1!=b.indexOf("%");if(!this.Ke&&(c||d))return null;var e,f;c&&(e=this.ka().parentNode,f=hg(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.ka().parentNode,f=f||hg(e),b=(0,window.parseFloat)(b)*f.height/100);return new re(a,b)};
h.clear=function(){this.B.clear();of(this.G);this.A={}};
h.wg=function(){UD.N.wg.call(this);this.O&&this.L.za(ZD(),"tick",this.Wq)};
h.T=function(){delete this.A;delete this.G;delete this.B;this.L.dispose();delete this.L;UD.N.T.call(this)};aE.prototype.ka=function(){return this.D};
aE.prototype.A=function(){};var jE={bevel:1,dropshadow:2};B(rE,aE);
rE.prototype.A=function(a,b){var c=gD(a);if(c){var d=FC(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=hD(a))&&c.o?c.o:null)&&c.length?c[0]:null){var f=xe(GC(b,zC(e,new te(e.H,e.J,e.D,e.B),b.o))),k=d.clone(),c=new te(f.x,f.y,1,1),l=Math.max(k.left+k.width,c.left+c.width),m=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=l-k.left;k.height=m-k.top;var c=a.o,k=pE(k,c.effects),l=bE(this,k.width,k.height),m=nE(c,k.width,k.height,this.o),
d=new te(d.left-k.left,d.top-k.top,d.width,d.height),p=new oe(f.x-k.left,f.y-k.top);this.C=17*BC(b.o,e.A,e.o?e.o:"xy");e=c.o;var f=a.o,u=this.o&&bD(a),v=u?f.D+1:f.D,u=(f=v?new DD(v,u?f.F:f.G):null)?f.getWidth()/2:0,v=sE(d,p),z=this.F(d,e,p,v),x=p.x,p=p.y,ga=d.width,wa=d.height,J=d.left,d=d.top,X=new xD;yD(X,J+e+u,d+u);"t"==v&&(X.sb(z.start,d+u),X.sb(x,p),X.sb(z.end,d+u));X.sb(J+ga-e-u,d+u);zD(X,e,e,-90);"r"==v&&(X.sb(J+ga-u,z.start),X.sb(x,p),X.sb(J+ga-u,z.end));X.sb(J+ga-u,d+wa-e-u);zD(X,e,e,0);
"b"==v&&(X.sb(z.end,d+wa-u),X.sb(x,p),X.sb(z.start,d+wa-u));X.sb(J+e+u,d+wa-u);zD(X,e,e,90);"l"==v&&(X.sb(J+u,z.end),X.sb(x,p),X.sb(J+u,z.start));X.sb(J+u,d+e+u);zD(X,e,e,180);X.close();WD(l,X,f,m);if(m=this.ka())K(m,"annotation-shape"),K(m,"annotation-speech-shape"),Tf(m,k.left,k.top),eg(m,k.width,k.height),qE(l,m,c.effects)}}}};
rE.prototype.F=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=ke(c-a/2,d+b,d+e-a-b);return new uD(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 uD(0,0)};B(tE,aE);tE.prototype.A=function(a,b){var c=gD(a);if(c){var d=FC(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=pE(d,c.effects),f=bE(this,e.width,e.height);lE(f,new te(0,0,d.width,d.height),c.o,new DD(!c.B&&this.o?1:c.B,c.C),new CD("#000",0));d=this.ka();K(d,"annotation-shape");kg(d,oE(this.o,c.A));Tf(d,e.left,e.top);eg(d,e.width,e.height)}}};B(uE,aE);
uE.prototype.A=function(a,b){var c=FC(gD(a),b);if(!(0>=c.width||0>=c.height)){var d=vE(c,this.G);d.left+=c.left;d.top+=c.top;var e=a.o,f=pE(d,e.effects),k=bE(this,f.width,f.height),l=new CD("#000",0),d=vE(d,this.C),m;m=a.C?a.C.o?a.C.o:a.C.videoId?window.location.protocol+"//i1.ytimg.com/vi/"+(0,window.escape)(a.C.videoId)+"/hqdefault.jpg":"":"";d=MD(k,"image",{x:d.left,y:d.top,width:d.width,height:d.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});d.setAttributeNS("http://www.w3.org/1999/xlink","href",
m);var p=new TD(d,k);k.B.ka().appendChild(p.ka());if(d=this.ka()){kg(d,oE(this.o,e.A));if(this.F&&0<e.B){m=new DD(e.B,e.C);var c=new te(0,0,c.width,c.height),u=m.getWidth()/2+1;var u=mE(c,e.o,u),v=LD(k,"mask");if(v)u=v;else{var v=window.document.createElementNS("http://www.w3.org/2000/svg","mask"),z=window.document.createElementNS("http://www.w3.org/2000/svg","path");z.setAttribute("d",XD(u));z.setAttribute("fill","#FFF");v.appendChild(z);u=ND(k,"mask",v)}p=p.ka();u&&p.setAttribute("mask","url(#"+
u+")");lE(k,c,e.o,m,l)}K(d,"annotation-shape");K(d,"annotation-image-shape");Tf(d,f.left,f.top);eg(d,f.width,f.height);qE(k,d,e.effects)}}};B(wE,aE);wE.prototype.A=function(a,b){var c=gD(a);if(c){var d=FC(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=pE(d,c.effects),f=bE(this,e.width,e.height),k=new te(0,0,d.width,d.height),d=nE(c,d.width,d.height,this.o),l=c.o,m=a.o,p=this.o&&bD(a),u=p?m.D+1:m.D;lE(f,k,l,u?new DD(u,p?m.F:m.G):null,d);if(k=this.ka())K(k,"annotation-shape"),K(k,"annotation-popup-shape"),Tf(k,e.left,e.top),eg(k,e.width,e.height),qE(f,k,c.effects)}}};B(xE,rE);xE.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 uD(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 uD(0,0)};h=zE.prototype;h.Qr=function(){this.S||(this.C&&Nq(this.C),this.D&&Nq(this.D),this.B&&(this.B.o=!0,kg(this.A,KE(this)?1:0),this.B.A(this.o,EE(this))),this.J.isActive()&&this.J.stop(),this.S=!0,this.K=yz(this.G,GE(this.F),function(a){this.vl.stop();this.Rg(a)}))};
h.Rg=function(){this.S&&(this.O?this.J.start():this.ro(),this.B&&(this.B.o=!1,kg(this.A,KE(this)?1:0),this.B.A(this.o,EE(this))),this.S=!1,this.K&&(this.G.za(this.K),this.K=null))};
h.ro=function(){this.C&&Oq(this.C);this.D&&Oq(this.D)};
h.cE=function(a){this.Z=a;this.vl.lf()};
h.qw=function(){var a=this.Z,b=new oe(a.clientX,a.clientY),c=$f(this.F.Ba()),d=LE(c,this.M),c=(Mq(this.D)||Mq(this.C))&&LE(c,this.O);d&&d.contains(b)||c&&c.contains(b)?this.Qr():this.Rg(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=EE(this),e=null;"highlight"==this.o.type||"label"==this.o.style?e=new tE:"popup"==this.o.style?e=new wE:"anchored"==this.o.style?e=new rE:"speech"==this.o.style?e=new xE:"image"==this.o.type&&("video"==this.o.style?e=new uE(kga,U5,!0):"channel"==this.o.style&&(e=new uE));e&&(e.A(this.o,d),this.B=e,d=e.ka())&&(Oq(d),K(d,"annotation-type-"+
this.o.type.toLowerCase()),this.U(d))}if(b){d=["annotation","hid"];"highlightText"!=this.o.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.o.type.toLowerCase());this.A=M("div",d);this.o.F&&(this.H=M("div","inner-text"),"label"==this.o.style&&(K(this.H,"label-text"),this.H.style.backgroundColor=this.o.o.C),Af(this.H,this.o.F),this.A.appendChild(this.H));ri(this.A,"annotation_id",this.o.id);this.U(this.A);AE(this,this.A);if(bD(this.o)&&"image"!=this.o.type&&this.o.showLinkIcon()){if(e=
$C(this.o))d=this.A,e=new N(oA(e)),d.title=e.A+e.B;this.D=M("span",["annotation-link-icon","hid"]);this.A.appendChild(this.D)}CE(this);bD(this.o)||(this.A.style.cursor="default")}c&&("subscribe"==this.o.style?$e("yt-uix-subscription-button",this.A)||(this.A.innerHTML=this.o.B):this.o.B&&(this.A.innerHTML=this.o.B));if(a||b){a:{a=this.o.A.o;if(a.length&&(a=NC(a[0]))){a=a.K;break a}a=0}this.A&&(this.A.style.zIndex=a);this.B&&this.B.ka()&&(this.B.ka().style.zIndex=a)}Nq(this.A);kg(this.A,KE(this)?1:
0);DE(this);this.B&&Nq(this.B.ka())};
h.fa=function(){Oq(this.A);this.B&&Oq(this.B.ka());this.L&&(this.G.za(this.L),this.L=null)};B(ME,mq);ME.D="AnnotationsModule";var NE={ft:"video-annotations",Bt:"video-custom-annotations",cu:"video-legacy-annotations"};ME.C=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
ME.B=function(a){return"card"==a.type};
ME.A=function(a){return ME.Xa(a)?new ME(a):null};
ME.Xa=function(a){var b=a.W();return"leanback"==b.Aa?!1:!b.J.isEmpty()||ME.Mg(b.o)?!0:fx(a.getVideoData(),"iv3_module")};
ME.o=function(){return M("div",["annotation","annotation-type-custom","hid"])};
ME.Mg=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
h=ME.prototype;h.Mg=function(){return ME.Mg(this.o.W().o)};
h.fe=function(a,b){if(!this.Mg())return null;switch(a){case "loadCustomAnnotationsXml":var c=sz(b);c&&VE(this,c);return!0;case "removeCustomAnnotationById":return b&&this.A&&(ZB(this.A,b),bC(this.o)),!0}return null};
h.Ve=function(){return this.Mg()?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
h.Xa=function(){return ME.Xa(this.o)};
h.create=function(){ME.N.create.call(this);this.C=new Q(["div",["ytp-player-content","ytp-iv-player-content"]]);Uq(this.o,this.C.element,4);var a=this.o.W(),b=this.o.getVideoData();1!=(a.Cd||b.Ca)&&ca(a.J.get(b.videoId))||this.load()};
h.destroy=function(){Zd(this.o.Ba(),"ytp-iv-drawer-open");Aq(this.C);this.C.dispose();ME.N.destroy.call(this)};
h.rA=function(a){T(a.state,2)&&(fF(this)&&gF(this)&&hF(this,!1),iF(this,!1))};
h.load=function(){ME.N.load.call(this);this.K++;var a=this.o.getVideoData(),b=a.videoId,c=A(this.vz,this,b,this.K);Fu()&&(c=WE(this,c));c={format:"XML",Vb:c,xd:{}};a.isPharma&&(c.xd.pharma="1");var d=this.o.W();d.experiments.ma("disable_iv_cors")?c.method="GET":(c.method="POST",c.withCredentials=!0);"gaming"==d.o&&(c.xd.gaming="1");(b=d.J.remove(b))&&XE(this,c,b);a.af&&(b=b&&(b.ue||b.Yh),a.An&&!b||Bj(a.af,c))};
h.unload=function(){this.D.fb({"iv-event":1});nq(this);Ob(this.B,function(a){a.destroy()});
Ob(this.L,function(a){a.destroy()});
this.F=null;this.A&&(this.A.destroy(),this.A=null,bC(this.o));this.B={};this.L={};ME.N.unload.call(this)};
h.vz=function(a,b,c){if(!PE(this,b,a)&&(a=vj(c)&&c.responseXML?c.responseXML:null)){VE(this,a);K(this.o.Ba(),this.sa+"-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 iq(c,e,f);a.push(b)}}this.ib(a)}};
h.jB=function(a){this.J&&a==this.o.getVideoData().videoId&&(this.loaded?UE(this):this.load())};
h.Fy=function(a){fF(this)&&hF(this,a)};
h.mc=function(a){ME.N.mc.call(this,a);a=a.getId();var b=this.B[a];b&&!b.C&&(b=b.annotation,aF(this,a),eB(this.D,b.Ra))};
h.Hc=function(a){ME.N.Hc.call(this,a);bF(this,a.getId())};
h.qo=function(a){a&&(a.fa(),eF(this,"shown",!1,a.annotation.id),this.Zh(a.annotation,"hidden"))};
h.Pq=function(a){a&&(a.show(),eF(this,"shown",!0,a.annotation.id),this.Zh(a.annotation,"shown"))};
h.fB=function(a,b,c){var d=this.B[a];if(d&&b.value!=c){b.value=c;var e=!1;eD(d.annotation,function(a){e|=a.value});
$E(this,a,b,e)}};
h.my=function(a){if(a&&a.id){var b=$C(a);if(b){var c=oA(b);if(c){var d=A(this.Zh,this,a,"click"),e=this.o.getVideoData();if("new"==vA(c,b.target)||cF(this,b,e.videoId))d(),d=null;iB(this.D,a.Ra,d)}}}};
h.Zh=function(a,b){dD(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.o.getVideoData(),e;if(!(e=!cF(this,c.url,d.videoId))){e=sA(c.url);var f=rA(c.url);if(e){if(d.videoId==e)this.P("command_seek",f||0);else{var k=TE(this).A;T9(k.app,e,void 0,void 0);f&&BH(TE(this).A)&&TE(this).A.Sb(f)}e=!0}else e=!1;e=!e}e&&(d=tA(c.url,a.id,d.videoId,this.o.W()))&&(this.pauseVideo(),e=vA(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=qj(c),f=null,"ei"in e&&(f={ei:e.ei},c=Yg(c,"ei")),vy(c,f),wy(c,
d))}},this)};
h.Cz=function(){eF(this,"playerControlShow",!1)};
h.NA=function(){eF(this,"playerControlShow",!0)};
h.YD=function(a){eF(this,"rollOver",!0,a.id)};
h.Rg=function(a){eF(this,"rollOver",!1,a.id)};
h.Ry=function(a){if(a||a.id)this.B[a.id].C=!0,bF(this,a.id),a&&(jB(this.D,a.Ra),this.Zh(a,"close")),eF(this,"closed",!0,a.id)};
h.T=function(){for(var a=this.M,b=0,c=a.length;b<c;b++)Hu(a[b]);this.M.length=0;ME.N.T.call(this)};jF.prototype.destroy=function(){null!=this.A&&(this.A.canvas.remove?this.A.canvas.remove():this.A.canvas.removeNode(!0),this.A=null)};h=oF.prototype;h.Ak=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.wk=function(){return this.o};
h.Wc=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};
h.Rr=function(){};
h.Mm=function(a){this.H&&(360>=qr[a]?this.F(!0):this.F(!1))};
h.Qc=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,lF(this.D,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.mq=function(){return!0};
h.pq=function(){return!1};
h.We=function(){return{shader:"NoOp"}};
h.rh=function(){};
h.destroy=function(){this.D&&this.D.destroy()};B(pF,oF);pF.prototype.Wc=function(a,b,c){pF.N.Wc.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)};
pF.prototype.Qc=function(a,b,c){this.B&&(a.uniform1i(this.C,this.A),this.B=!1);pF.N.Qc.call(this,a,b,c)};
pF.prototype.We=function(){return{shader:"Anaglyph3D",displayMode:this.A}};
pF.prototype.rh=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.A=(0,window.parseInt)(a.displayMode,10),this.B=!0),this.G())};B(rF,oF);
rF.prototype.Wc=function(a,b,c){rF.N.Wc.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.ca.getVideoData())&&a.A&&this.Mm(a.A.video.quality)};
rF.prototype.Qc=function(a,b,c){if(this.J){var d=I();1E3<d-this.C&&(this.C=d,a.uniform1f(this.B,Math.random()))}else a.uniform1f(this.B,Math.random());rF.N.Qc.call(this,a,b,c)};
rF.prototype.We=function(){return{shader:"WhiteNoise"}};B(sF,rF);sF.prototype.Wc=function(a,b,c){sF.N.Wc.call(this,a,b,c);this.A=a.getUniformLocation(b,"mode");a.uniform1i(this.A,1)};
sF.prototype.Qc=function(a,b,c){this.G&&(a.uniform1i(this.A,1),this.G=!1);sF.N.Qc.call(this,a,b,c)};
sF.prototype.We=function(){return{shader:"EdgeEnhance"}};tF.prototype.identity=function(){this.o.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};
tF.prototype.get=function(){return this.o};h=vF.prototype;h.Ak=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.wk=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, ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"};
h.Wc=function(a,b){this.Da=a.getUniformLocation(b,"uVMat");this.Y=a.getUniformLocation(b,"uFOVx");this.Z=a.getUniformLocation(b,"uFOVy");this.aa=a.getUniformLocation(b,"uSplr");a.uniform1i(this.aa,0)};
h.Rr=function(){this.F=!0};
h.Mm=w;
h.Qc=function(a,b){var c=this.o,d=this.A;if(this.F){a.A>a.o?(this.o=this.B,this.A=Math.atan(Math.tan(this.B)*a.o/a.A)):(this.A=this.B,this.o=Math.atan(Math.tan(this.B)*a.A/a.o));a.uniform1f(this.Y,this.o);a.uniform1f(this.Z,this.A);this.C=ke(this.C,-Math.PI/2,Math.PI/2);this.D.identity();var e=this.D,f=this.C,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]);uF(e,e.B);e=this.D;f=this.H;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]);uF(e,e.B);a.uniformMatrix4fv(this.Da,!1,
this.D.get());this.F=!1;this.J.W().experiments.D&&(e=this.J,k=tH(e),e.app.Pa("webglsettingschanged",k))}e=I();(this.V!=this.o||this.U!=this.A)&&3E4<e-this.O&&c==this.o&&d==this.A&&(this.V=this.o,this.U=this.A,this.O=e,(c=oq(this.J.app))&&c.B&&(c=c.B.B,d=Math.round(360*this.o/Math.PI),e=Math.round(360*this.A/Math.PI),JA(c,SA(c.o),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,lF(this.K,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.mq=function(){return!1};
h.pq=function(){return!1};
h.We=function(){return{shader:"Spherical",yaw:this.H,pitch:this.C,fov:this.B}};
h.rh=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.H=a.yaw),a.pitch&&(this.C=a.pitch),a.fov&&(this.B=ke(a.fov,.32,1.05)),this.F=!0,this.S()};
h.destroy=function(){this.K&&this.K.destroy()};B(wF,vF);h=wF.prototype;h.Ak=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.wk=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, 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.Wc=function(a,b,c){wF.N.Wc.call(this,a,b,c);this.M=a.getUniformLocation(b,"mode");a.uniform1i(this.M,this.G)};
h.Qc=function(a,b,c,d){this.L&&(a.uniform1i(this.M,this.G),this.L=!1);wF.N.Qc.call(this,a,b,c,d)};
h.We=function(){var a=wF.N.We.call(this);a.shader="Spherical3D";a.displayMode=this.G;return a};
h.rh=function(a){void 0!=a.displayMode&&(this.G=(0,window.parseInt)(a.displayMode,10),this.L=!0,this.S());wF.N.rh.call(this,a)};var mG=window,cG=window.document,EF=mG.location,CF=/\[native code\]/,jG=yF(mG,"gapi",{});var FF;FF=yF(mG,"___jsl",BF());yF(FF,"I",0);yF(FF,"hel",10);var LF=yF(FF,"perf",BF());yF(LF,"g",BF());var KF=yF(LF,"i",BF());yF(LF,"r",[]);BF();BF();var OF=BF(),gG=[];gG.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?FF[b]=yF(FF,b,[]).concat(c):yF(FF,b,c)}if(b=a.u)a=yF(FF,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var WF=/^(\/[a-zA-Z0-9_\-]+)+$/,ZF=/^[a-zA-Z0-9\-_\.,!]+$/,UF=/^gapi\.loaded_[0-9]+$/,YF=/^[a-zA-Z0-9,._-]+$/,RF=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,QF=/\/cb=/g,PF=/\/\//g;OF.m=function(a,b,c,d){(a=a[0])||MF("missing_hint");return"https://apis.google.com"+SF(a,b,c,d)};var eG=(0,window.decodeURI)("%73cript");jG.load=function(a,b){return iG(function(){return kG(a,b)})};B(nG,Rj);nG.prototype.remove=function(a){var b=this.get(a);delete this.o[a];return b};
nG.prototype.get=function(a){return this.o[a]||null};
nG.prototype.isEmpty=function(){return ac(this.o)};var BG={RED:"red",WHITE:"white",BLUE:"blue"};var GG={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},HG={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},vG="blogger books docs google-live play picasaweb".split(" ");B(rG,G);var IG={pG:"cbrand",qG:"cbr",rG:"cbrver",fH:"c",iH:"cver",hH:"ctheme",gH:"cplayer",uH:"cmodel",BH:"cnetwork",IH:"cos",JH:"cosver",KH:"cplatform"};h=rG.prototype;h.Aa="detailpage";h.Ng=!1;h.ll=!1;h.kl=!1;h.tg=!1;h.qc=null;
h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);"gaming"==this.o?(c=this.protocol+"://gaming.youtube.com/watch",b.v=a):d&&"www.youtube.com"==KG(this)?c="https://youtu.be/"+a:(c=this.protocol+"://"+KG(this)+"/watch",b.v=a,(a=t("yt.www.ads.data.encryptedBiscottiId"))&&(b.ebc=a));return Ug(c,b)};
h.T=function(){this.qc=null;rG.N.T.call(this)};PG.prototype.M=function(){this.L=!1;if(this.B&&(this.C.videoWidth||this.C.videoHeight)){if(0==this.K){var a=FE(GE(this.ca));if(!ve(this.F,a)){this.F=a;var b,c,d,a=GE(this.ca).Ma();this.o.mq()?("Anaglyph3D"!=this.U?b=!1:(b=mF(GE(this.ca)),c=this.ca.getVideoData(),b=(0,window.isNaN)(b)||c.Rc("yt:stretch")||c.Rc("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 te(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.Rr()}}this.o.Qc(this.B,this.C,this.S,this.Y)}(this.D||this.o&&this.o.pq())&&this.H()};
PG.prototype.Z=function(a){this.J!=a&&this.A&&((this.J=a)?(this.G.appendChild(this.A),this.H(),kF||(this.C.style.display="none")):(qf(this.A),this.C.style.display=""))};
PG.prototype.H=function(){!this.L&&this.J&&((0,window.requestAnimationFrame)(this.M.bind(this)),this.L=!0)};B(TG,mq);TG.A=function(a){return TG.Xa(a)?new TG(a):null};
TG.prototype.Xa=function(){return TG.Xa(this.o)};
TG.o=function(a){var b=a.W().A.c.toLowerCase(),c;c=a.getVideoData();a=a.W().experiments;if(qF(c,a))b="Anaglyph3D";else{var d;if(d=a.spherical||Fl&&!xG||kF&&!ut()&&yc(11)||K6&&!xG&&yc(38)||Lf&&!xG&&yc(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}if(d)b="Spherical";else{a:{if(!xG&&(Fl&&a.aa||a.ma("enable_spherical3d_firefox_opera")&&(K6&&yc(38)||Lf&&yc(27))||a.ma("enable_spherical3d_ie")&&kF&&!ut()&&yc(11))&&c.o)for(var f in c.o.o)if((e=
c.o.o[f].info.video)&&3==e.projectionType||e&&2==e.projectionType&&3==c.da){c=!0;break a}c=!1}b=c?"Spherical3D":a.S&&Fl&&"web"==b&&!lt()?"NoOp":(a.ea||a.ma("white_noise_with_interval"))&&Fl&&"web"==b&&!lt()?"WhiteNoise":a.G&&Fl&&"web"==b&&!lt()?"EdgeEnhance":null}}return b};
TG.Xa=function(a){return a.W().K?null!=TG.o(a):!1};
h=TG.prototype;h.ZD=function(){if(this.B){var a=this.A;a.D||(0,window.requestAnimationFrame)(a.M.bind(a))}};
h.kA=function(a){if(this.B){var b=this.A;b.o&&b.o.Mm(a)}};
h.Xc=function(a){if(this.B){var b=this.A,c=b.D;b.D=T(a.state,8);b.D&&!c&&b.H()}};
h.T=function(){TG.N.T.call(this)};
h.create=function(){var a=TG.o(this.ca);this.A=new PG(this.ca,a,this.C.element,this);a:{a=this.A;a.o=null;var b=a.Z.bind(a),c=A(a.H,a);switch(a.U){case "Anaglyph3D":a.o=new pF(a.ca,c);break;case "Spherical":a.o=new vF(a.ca,c);break;case "WhiteNoise":a.o=new rF(a.ca,b);break;case "EdgeEnhance":a.o=new sF(a.ca,b);break;case "NoOp":a.o=new oF(a.ca,!0,b);break;case "Spherical3D":a.o=new wF(a.ca,c)}if(a.o){a.K=QG(a);if(0==a.K){a.J&&!kF&&(a.C.style.display="none");a=!0;break a}a.ca.app.o.tj(new nv("html5.missingapi.webgl",
!1));SG(a)}a=!1}this.B=a;TG.N.create.call(this)};
h.destroy=function(){SG(this.A);this.B=!1;TG.N.destroy.call(this);this.A=null};B(VG,Gq);VG.prototype.C=function(){this.fa();this.P("close-clicked")};
VG.prototype.fa=function(){this.A.stop();K(this.element,"ytp-drawer-closed")};
VG.prototype.Db=function(a){a?(VG.N.Db.call(this,a),Dq(this.element,"block")):Dq(this.element,"none")};
VG.prototype.show=function(){this.A.start()};B(WG,Rj);WG.prototype.T=function(){WG.N.T.call(this);this.G&&Ul(this.G);this.B||(qf(this.C),qf(this.F))};
WG.prototype.o=function(a){this.B||(this.A.o(a),this.A.Db(this.D.element),a.appendChild(this.C))};
WG.prototype.H=function(){this.P("ypcModuleCloseClicked")};
WG.prototype.J=function(){this.P("ypcContentRequest")};B(ZG,mq);h=ZG.prototype;h.Xa=function(){return fx(this.o.getVideoData(),"ypc_module")};
h.create=function(){ZG.N.create.call(this);this.B=new UG(this.o.getVideoData());Ai(A(this.bE,this),0);this.C=new Q(["div",["ytp-player-content","ytp-ypc-player-content"]]);Uq(this.o,this.C.element,4)};
h.destroy=function(){ZG.N.destroy.call(this);this.B=null;this.C&&(Aq(this.C),this.C.dispose(),this.C=null)};
h.bE=function(){this.J&&!this.loaded&&this.load()};
h.load=function(){ZG.N.load.call(this);var a=this.o.W(),b=this.o.getVideoData();if(this.B.videoId&&!b.ypcPreview){for(var a={autoplay:"1",oauth_token:b.oauthToken,video_id:this.B.videoId,ypc_origin:b.videoId,ypc_preview:"1"},c=Aw.B,d=0;d<c.length;d++){var e=c[d];b.C.hasOwnProperty(e)&&(a[e]=b.C[e])}this.o.Er(a)}else aH(this,a,b),!this.B.videoId&&this.A?XG(this.A):b.ypcPreview?(this.P("publish_external_event","ypcStateChanged",!0),qq(this)):this.A||qq(this)};
h.unload=function(){nq(this);(0,window.isNaN)(this.D)||Di(this.D);Nb(this.A);this.A=null;ZG.N.unload.call(this);this.P("publish_external_event","ypcStateChanged",!1)};
h.mc=function(a){ZG.N.mc.call(this,a);XG(this.A)};
h.Hc=function(a){ZG.N.Hc.call(this,a);a=this.A;a.B||(Dq(a.C,"none"),a.A.Db(a.D.element))};
h.dz=function(){if(this.B.o)"embedded"==this.o.W().Aa?wy(this.B.o):uy(this.B.o);else if(this.B.offerId){var a=t("yt.www.watch.player.handleEndPreview");a&&(this.o.Ja()&&Cy(this.o),a(this.B.offerId))}};
h.Uz=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};var E$={"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(eH,G);h=eH.prototype;h.iD=function(){return Wb(this.B)};
h.jD=function(){return Wb(this.C)};
h.ka=function(){return this.o};
h.addEventListener=function(a,b){if(y(b)){var c=function(){t(b).apply(window,arguments)};
this.F[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)};
h.Pv=function(a,b){var c=y(b)?a+b:a+ka(b);if(!this.D[c]){var d;y(b)?d=function(){t(b).apply(window,arguments)}:d=b;
var e=A(function(a){d({target:this.A,data:a})},this);
this.D[c]=e;this.addEventListener(a,e)}};
h.removeEventListener=function(a,b){if(y(b)){var c=this.F[b];cc(this.F,b);this.app.unsubscribe(a,c)}else this.app.unsubscribe(a,b)};
h.Qv=function(a,b){var c=y(b)?a+b:a+ka(b),d=this.D[c];d&&(this.removeEventListener(a,d),cc(this.D,c))};
h.getPlayerState=function(){return G9(this.app)};
h.Sb=function(a,b){R9(this.app,!0,this.playerType);f$(this.app,a,b,void 0,this.playerType)};
h.getCurrentTime=function(){var a=this.app.W().experiments.ma("use_legacy_time_duration_api");return this.app.getCurrentTime(a?void 0:this.playerType)};
h.lh=function(){var a=this.app.W().experiments.ma("use_legacy_time_duration_api");return D9(this.app,a?void 0:this.playerType)};
h.Cb=function(){return this.app.U.volume};
h.setVolume=function(a){a=ke(Math.floor(a),0,100);I9(this.app,{volume:a,muted:this.sc()})};
h.sc=function(){return this.app.U.muted};
h.mute=function(){I9(this.app,{muted:!0,volume:this.Cb()})};
h.unMute=function(){I9(this.app,{muted:!1,volume:Math.max(5,this.Cb())})};
h.Yc=function(){R9(this.app,!0,this.playerType);e$(this.app,this.playerType)};
h.pauseVideo=function(){var a=this.app,b=this.playerType;if(DH(a.Wa)){var c=a.da.play_pause?a.qa:null;c?c.Sd("control_pause"):a.pauseVideo(b)}};
h.Br=function(){var a=this.app,b=this.playerType;DG(a.X)&&(qH(a,!1),a.Pa("pageTransition"));d$(a,b)};
h.fD=function(){};
h.kD=function(){return this.app.V};
h.Aj=function(a){z9(this.app,a)};
h.uj=function(){return this.app.X.U?A9:[1]};
h.vj=function(){var a=oq(this.app,this.playerType);return a&&(a=a.getVideoData().A)?a.video.quality:"unknown"};
h.zj=function(a){var b=this.app,c=oq(b,this.playerType);c&&!b.X.isMobile&&(a=Wt(a,a,!0),j2(c,"p",a))};
h.ur=function(){var a=oq(this.app,this.playerType);return a?(a=O(g2(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
h.nD=function(){return this.Hm()};
h.oD=function(){return 1};
h.Hm=function(){return dy(this.app.ia)};
h.pD=function(){return 0};
h.setSize=function(){this.app.F.df()};
h.yr=function(a){var b=this.app;a=a?2:1;j5(b).Ed=a;b.Pa("autonavchange",a)};
h.zr=function(a){var b=this.app;j5(b).Ed=a;b.Pa("autonavchange",a)};
h.vD=function(a){var b=this.app;b.X.ll=a;b.Pa("minimized")};
h.wj=function(a){var b=this.app.C;b.isAvailable(a)&&(a=lH(b,a))&&!a.loaded&&a.load()};
h.Cr=function(a){var b=this.app.C;b.isAvailable(a)&&(a=lH(b,a))&&a.loaded&&a.unload()};
h.Im=function(a,b,c){a=N9(this.app,cH(a,b,c),this.playerType);R9(this.app,a,this.playerType)};
h.Fm=function(a,b,c){var d=this.playerType;S9(this.app,new Aw(cH(a,b,c)),d)};
h.sD=function(a,b,c){a=bH(a,b,c);b=N9(this.app,a,this.playerType);R9(this.app,b,this.playerType);b=this.app;(a=lh(new N(a.mediaContentUrl)))&&FG(b.X,a)};
h.hD=function(a,b,c){a=bH(a,b,c);b=this.playerType;S9(this.app,new Aw(a),b);b=this.app;(a=lh(new N(a.mediaContentUrl)))&&FG(b.X,a)};
h.getVideoUrl=function(){var a=this.app.W();if(a.C)return"";var b=j5(this.app),c=void 0;b.Fa||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.be()||void 0,c)};
h.Gm=function(){return E9(this.app)};
h.vr=function(){var a=this.app,b=j5(a),c=a.F.Ma(),a=a.X,d="https://"+KG(a)+"/embed/"+b.videoId;b.playlistId&&(d=Ug(d,{list:b.playlistId}));"gaming"==a.o&&(d=Ug(d,{ps:a.o}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+ya(d)+'" frameborder="0" allowfullscreen></iframe>'};
h.sr=function(a,b,c){return Z9(this.app,a,b,c)};
h.xr=function(a){a:{for(var b=this.app,c=b.o.F.o.o||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.o.F.jh(e);pq(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
h.wr=function(a,b,c,d){var e=this.app;e.Z=!1;U9(e,a,b,c,d);R9(this.app,!0,this.playerType)};
h.gD=function(a,b,c,d){var e=this.app;e.Z=!0;U9(e,a,b,c,d)};
h.xj=function(){W9(this.app);R9(this.app,!0,this.playerType)};
h.yj=function(){X9(this.app);R9(this.app,!0,this.playerType)};
h.Jm=function(a){Y9(this.app,a);R9(this.app,!0,this.playerType)};
h.setShuffle=function(a){var b=this.app.A;b&&b.setShuffle(a)};
h.uD=function(a){var b=this.app.A;b&&(b.H=a)};
h.$b=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.B;c++){var d=a.rb(c);d&&b.push(d.videoId)}return b};
h.lD=function(){var a=this.app.A;return a?a.o:-1};
h.be=function(){var a=this.app.A;return a&&a.D?a.D.toString():null};
h.ce=function(a,b,c){return pH(this.app,a,b,c)};
h.vb=function(a,b,c){return pH(this.app,a,b,c)};
h.mh=function(a){return h$(this.app,a)};
h.getVideoData=function(){var a=oq(this.app,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.be();b&&(a.list=b);return a};
h.Ar=function(){var a=this.app.F;a.D||(a.D=new M5(a.app),H(a,a.D),a.D.o(a.element));a.D.show()};
h.qD=function(){var a=this.app.F;a.D&&a.D.fa()};
h.getAdState=function(){return this.app.getAdState()};
h.rD=function(a){if(a!=this.app.Y.args.video_id)return!1;a=(a=oq(this.app,1))?a.getPlayerState():null;return!(!a||!T(a,128)||5!=E$[a.o.errorCode])};
h.mD=function(){var a=this.app.Y.clone(),b=a.args,c=j5(this.app),d=ec(c.C);!c.Fa&&0<c.startSeconds&&(d.start=c.startSeconds);qa(b,d);return a};
h.wD=function(a,b){var c=this.app;c.H&&I5(c.H,a,b);OG(c.X)&&6!=c.K&&(c.X.tg=!kb(a),c.X.tg?(1!=c.K&&3!=c.K||!b||v9(c,c.G),a.length&&1!=c.K&&t9(c)):v9(c,c.H))};
h.destroy=function(){this.app.dispose()};
h.tD=function(){var a=oq(this.app);a&&!T(a.getPlayerState(),128)&&(a.P("internalAbandon"),N1(a),M1(a))};
h.T=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;eH.N.T.call(this)};B(gH,eH);h=gH.prototype;h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.sr=function(a,b,c,d,e){return Z9(this.app,a,b,c,d,e)};
h.xD=function(a,b,c,d){oG(this.app.W().J,a,{ue:b,Sf:c,Yh:d})};
h.yD=function(a){var b=this.playerType;S9(this.app,new Aw(a),b)};
h.getPlayerState=function(a){return G9(this.app,a)};
h.Er=function(a){N9(this.app,a,this.playerType)};
h.JD=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.L&&b.L.getVideoData().videoId==a.videoId||(a=new Aw(a),P9(b,a))};
h.Yc=function(){e$(this.app,this.playerType)};
h.Sb=function(a,b){f$(this.app,a,b,void 0,this.playerType)};
h.wr=function(a,b,c,d){var e=this.app;e.Z=!1;U9(e,a,b,c,d)};
h.xj=function(a){W9(this.app,a)};
h.yj=function(a){X9(this.app,a)};
h.Jm=function(a){Y9(this.app,a)};
h.Zc=function(a,b,c){var d=this.app,e=this.playerType;f$(d,d.getCurrentTime()+a,b,c,e)};
h.QD=function(a){if(a){var b=this.be();if(!b||b==a.list){var c=a.video;(b=this.app.A)?this.app.Wa.Ja()&&((c=c[b.o])&&c.encrypted_id!=b.rb().videoId||(a.index=b.o)):j9(this.app,{list:a.list,index:a.index,playlist_length:c.length});vx(this.app.A,a)}}else a=this.app,k9(a),a.Pa("onPlaylistUpdate")};
h.PD=function(){qG()};
h.RD=function(a){var b=oq(this.app,this.playerType||1);b&&(b=b.getVideoData(),Cw(b,a),b.P("dataupdated"))};
h.DD=function(){var a=this.app.getVideoData();return a.C.storyboard_spec||a.C.live_storyboard_spec};
h.BD=function(){var a=this.app.W();return{Ab:a.Ab,cb:a.cb}};
h.getVideoData=function(){var a=gH.N.getVideoData.call(this),b=oq(this.app,this.playerType),b=b?b.getVideoData():{};a.cpn=b.clientPlaybackNonce;a.isLive=b.Fa;a.backgroundable=b.backgroundable;return a};
h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):gH.N.getCurrentTime.call(this)};
h.lh=function(a){return a?D9(this.app,a):gH.N.lh.call(this)};
h.Ue=function(){var a=this.app.getVideoData(),b=oq(this.app),c=BH(this.app.Wa),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.lh(),k=oq(this.app,void 0);if(k)var l=F1(k.A),k=(0,window.isNaN)(l)?k.getCurrentTime():l;else k=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:f,loaded:k,seekableEnd:l2(b,!0),seekableStart:bx(b.o)}};
h.Hm=function(a){var b=this.app;return(b.D&&2==b.D.O)==(2==a)?dy(b.ia):0};
h.canPlayType=function(a){return this.app.canPlayType(a)};
h.KD=function(a,b){C9(this.app,a,this.playerType,b)};
h.AD=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.o&&b.Fa){var c=b.o.o[b.A.id];c&&c.index?(b=c.index.jf(a),c=c.index.de(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=oq(b,this.playerType);c&&b.X.qa.contains(a.toString())&&c.B&&(b=TA(c.B,"engage"),b.F=a,b.send(void 0))};
h.nh=function(a){this.app.Xf("cards_drawer_set_visible",a)};
h.GD=function(a,b){var c=this.app;c.ea&&(c=c.ea,c.Y&&R6(c.Y,a,b))};
h.ag=function(){return B9(this.app,this.playerType)};
h.Km=function(a){var b=this.app,c=this.playerType,d=b.da.set_audio_track?b.qa:null;if(d)d.Sd("control_set_audio_track",a);else{if(c=b=oq(b,c))if(c=!b.isDisposed()&&!T(b.C,128)&&b.o.B.o)c=b.D,c.isDisposed()?a=!0:(d=c.F,a=a.id,d.D="m",d.C=d.F.o[a],d.L=P_(d),c.P("audioformatchange",new L_(d.L,d.B,d.D)),c.o&&!c.o.o.remove?a=!1:(Q0(c,c.A,P_(c.F)),n0(c.A),S0(c),a=!0)),c=!a;c&&(jH(b),d2(b))}};
h.Dr=function(){var a=oq(this.app,this.playerType);return a.o.B?a.o.B.audioTracks:[]};
h.CD=function(){var a=oq(this.app,this.playerType);return a&&a.getVideoData().A?$t(u1(a.la,a.o)):"unknown"};
h.MD=function(a,b){g$(this.app,a,b)};
h.zD=function(){var a=lH(this.app.C,"fresca");a&&a.C.C()};
h.OD=function(){var a=this.app.ea;a.va=!1;a.$d()};
h.ID=function(){var a=this.app.ea;a.va=!0;a.$d()};
h.FD=function(){return dH(this.app.W())};
h.ND=function(){return this.app.W().experiments.ma("send_presence_signal_vis_desktop")};
h.ED=function(a){return FE(this.app.F,a)};B(hH,gH);h=hH.prototype;h.Im=function(a,b,c){N9(this.app,cH(a,b,c),this.playerType)};
h.Ba=function(){return GE(this).element};
h.W=function(){return this.app.W()};
h.$b=function(){return this.app.A};
h.getVideoData=function(a){return(a=oq(this.app,a||this.playerType))&&a.getVideoData()};
h.Ja=function(){return this.app.W().Ng};
h.addEventListener=function(a,b,c){this.app.subscribe(a,b,c)};
h.removeEventListener=function(a,b,c){this.app.unsubscribe(a,b,c)};
h.zj=function(a){C9(this.app,a,this.playerType)};
h.Gm=function(a){return E9(this.app,a)};
h.getVideoUrl=function(a,b,c){var d=this.getVideoData(),e=void 0;a||d.Fa||(e=Math.floor(this.getCurrentTime()));return this.app.W().getVideoUrl(d.videoId,2==this.getPresentingPlayerType()?void 0:this.be()||void 0,e,b,c)};
h.nh=function(a){var b=lH(this.app.C,"iv-module");b&&hF(b,a)};
h.cg=function(a,b){var c=this.app,d=oq(c,this.playerType);d&&c.X.qa.contains(a.toString())&&d.B&&(c=TA(d.B,"engage"),c.F=a,c.send(b))};
h.ib=function(a,b){$9(this.app,a,b||this.playerType)};
h.Zi=function(a){var b=oq(this.app,this.playerType);b&&b.Zi(a)};
h.vb=function(a,b,c){return pH(this.app,a,b,c,!0)};
h.mh=function(a){return h$(this.app,a,!0)};
h.ce=function(a,b,c){return pH(this.app,a,b,c,!0)};
h.setVolume=function(a){a=ke(Math.floor(a),0,100);I9(this.app,{volume:a,muted:this.sc()},!0)};
h.mute=function(){I9(this.app,{muted:!0,volume:this.Cb()},!0)};
h.unMute=function(){I9(this.app,{muted:!1,volume:Math.max(5,this.Cb())},!0)};var hI=/^#(?:[0-9a-f]{3}){1,2}$/i,s8="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),t8=["none","raised","depressed","uniform","dropShadow"],nga=["sub","inherit","super"],hJ={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0},oga=["left","right","center"],IH={anchorPoint:7,bold:!1,colCount:32,color:"#fff",heightPercentage:100,isVisible:!0,italic:!1,leftPercentage:50,
offset:1,rowCount:15,textAlign:2,textPrintDirection:0,topPercentage:100,underline:!1,widthPercentage:80},JH={id:0,priority:0,colCount:100},fJ={id:98},QI={id:99,priority:1,anchorPoint:0,leftPercentage:5,topPercentage:5,rowCount:2,textAlign:0},C8=["en_CA","en_US","es_MX","fr_CA"];var F$=[{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"}],G$=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],T6=[{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:F$},{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:F$},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:G$},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:F$},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:G$},{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%"}]}];h=HH.prototype;h.getType=function(){return this.type};
h.wd=function(a,b){a&&qa(this.Ha,a);var c=this.Ha.charEdgeStyle,d=this.Ha.textOpacity,e="";if(0!=c){var f="rgba(34, 34, 34, "+d+")",k="rgba(204, 204, 204, "+d+")";this.Ha.charEdgeColor&&(k=f=this.Ha.charEdgeColor);switch(c){case 4:e="2px 2px 3px "+f+", 2px 2px 4px "+f+", 2px 2px 5px "+f;break;case 1:e="1px 1px "+f+", 2px 2px "+f+", 3px 3px "+f;break;case 2:e="1px 1px "+k+", 0 1px "+k+", -1px -1px "+f+", 0 -1px "+f;break;case 3:e="0 0 4px "+f+", 0 0 4px "+f+", 0 0 4px "+f+", 0 0 4px "+f}}c=this.Ha.fontFamily;
f="";switch(c){case 1:f='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:f='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:f='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:f='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:f='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:f='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';
break;case 0:case 4:f='Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var l=jC(this.Ha.color),k=jC(this.Ha.background),l="rgba("+l[0]+","+l[1]+","+l[2]+","+d+")",d=this.Ha.offset||1;Mf(this.A,{color:l,fill:l,"background-color":"rgba("+k[0]+","+k[1]+","+k[2]+","+this.Ha.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":f,"font-weight":this.Ha.bold?"bold":"","font-style":this.Ha.italic?"italic":"","text-decoration":this.Ha.underline?
"underline":"","vertical-align":nga[d]});b&&(this.M=b.height/360);e=jC(this.Ha.windowColor);c=this.Ha.windowOpacity;f=this.Ha.fontSizeIncrement||0;1!=d&&(f*=.8);Mf(this.J,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*f)*this.M)+"px"})};
h.gi=function(){var a;this.C.style.fontFamily=this.A.style.fontFamily;this.o.appendChild(this.C);a=this.C.offsetHeight;this.o.removeChild(this.C);return a};
h.Vd=function(){this.A&&(0!=this.id&&98!=this.id&&(fg(this.o,"100%"),fg(this.o,this.A.offsetWidth+1)),KH(this),Lq(this.o,this.Ha.isVisible))};
h.Lq=function(a){if(a.length){var b=a[a.length-1].H;b&&this.wd(TH(b))}for(var b="",c=0;c<a.length;){0<c&&(b+="<br>");var d=a[c].A;for(c++;c<a.length;c++){var e=a[c];if(e.G)d+=e.A;else break}b+=LH(d)}this.Yd(b);this.F=a};
h.Yd=function(a){this.L=a;this.A.innerHTML=a;this.o.style.textAlign=oga[this.Ha.textAlign];1==this.Ha.textPrintDirection?this.A.setAttribute("dir","rtl"):this.A.removeAttribute("dir");this.Vd()};
h.toString=function(){var a="Caption window ("+this.id+"): "+this.L,b;for(b in this.Ha)a+=b+" "+this.Ha[b]+" | ";return a};
h.Vh=function(){this.F=[];this.Yd("")};B(NH,iq);NH.prototype.toString=function(){return NH.N.toString.call(this)};
B(PH,iq);B(UH,MH);B(VH,MH);B($H,MH);B(iI,MH);var kI=/NOTE/,jI=/(?:\r\n|\r|\n){2,}/,lI=/\r\n|\r|\n/,mI=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;B(tI,G);h=tI.prototype;h.uk=function(a){var b=this.o.A,c=qI(this.o,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};
h.Jd=function(){return null};
h.seek=function(){};
h.dm=function(){};
h.T=function(){tI.N.T.call(this);this.dm()};B(vI,tI);h=vI.prototype;h.On=function(){for(var a=[],b=qI(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:St(d),srclang:d.o,src:wI(this,d)};d==this.uk()&&(e["default"]=1);a.push(M("track",e))}return a};
h.rl=function(a,b){cb(!this.isDisposed());var c=wI(this,a),d=A(function(c){this.B=null;c=new oI(c.responseText);b(c,a)},this);
this.B&&this.B.abort();this.B=Bj(c,{format:"RAW",kb:d,withCredentials:!0});this.A&&this.A.zg!=a&&(this.A.mk=a)};
h.sl=function(a,b,c,d){this.C=c;if(this.A=d||null)for(b=0;b<this.A.captionTracks.length;b++)rI(this.o,this.A.captionTracks[b]);a()};
h.Jd=function(){return this.A?this.A.zg:null};
h.uk=function(){return this.A?this.A.mk:null};
h.T=function(){this.B&&this.B.abort();vI.N.T.call(this)};zI.prototype.contains=function(a){a=xb(this.ua,a);return 0<=a||0>a&&1==(-a-1)%2};
zI.prototype.length=function(){return this.ua.length/2};B(AI,G);AI.prototype.T=function(){Ei(this.B);this.B=0;this.C=!0;this.D&&this.D.abort()};
AI.prototype.resume=function(){this.C=!1;Ei(this.B);this.seek(this.A.getCurrentTime());EI(this)};
AI.prototype.seek=function(a){this.o=db(this.J.ii(a).o)};
AI.prototype.K=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.C||null===this.G||(a=new oI(a.responseText,1E3*this.F.o[0].startTime),this.G(a));this.D=this.F=null};B(FI,tI);h=FI.prototype;h.rl=function(a,b){BI(this.A,function(c){b(c,a)});
this.A.J=this.B.o[a.o];this.A.resume()};
h.sl=function(a){rI(this.o,new Qt({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.dm=function(){var a=this.A;Ei(a.B);a.B=0;a.C=!0};
h.T=function(){this.A.dispose();FI.N.T.call(this)};B(GI,HH);h=GI.prototype;h.gi=function(){return this.D[0]?this.D[0].offsetHeight:0};
h.Vd=function(){0!=this.id&&(fg(this.o,"100%"),fg(this.o,this.G?HI(this):this.B.width));var a=Math.round(this.Ha.rowCount*this.gi());this.o.style.maxHeight=a+"px";KH(this);Lq(this.o,this.Ha.isVisible)};
h.Yd=function(a){this.Vh();a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=M("div",{"class":"caption-row-holder"}),e=M("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.H;d.appendChild(e);e.innerHTML=a[b];this.G||(this.A.style.height=this.B.height+"px",this.A.style.width=this.B.width+"px",d.style.position="absolute",d.style.top=this.B.xq[b]+"px",d.style.left=this.B.wq[b]+"px");this.A.appendChild(d);this.D.push(e)}this.Vd()};
h.Vh=function(){for(var a=0,b=this.D.length;a<b;a++){var c=Hf(this.D[a],"caption-row-holder");qf(c)}this.D=[]};
h.wd=function(a,b){GI.N.wd.call(this,a,b);this.H=this.A.style.backgroundColor;this.A.style.backgroundColor="";for(var c=0,d=this.D.length;c<d;c++)this.D[c].style.backgroundColor=this.H};B(II,HH);II.prototype.Vd=function(){fg(this.o,"100%");var a=this.o.offsetWidth,a=Math.min(MI(this),a);fg(this.o,a+"px");fg(this.J,"100%");this.A.style.whiteSpace="nowrap";KH(this);Lq(this.o,this.Ha.isVisible)};
II.prototype.Lq=function(a){var b=a.length;if(0>=b)this.Vh();else{for(var c=0;c<b&&0<=this.F.indexOf(a[c]);)c++;this.F=this.F.concat(a.slice(c));JI(this)}};
II.prototype.Vh=function(){this.F=[];this.B=[];this.D=0;this.B=[];this.G=[];LI(this)};
II.prototype.K=function(){this.o.style.overflow="visible";this.A.style.top=0;this.H.stop();Zd(this.A,"caption-rollup");this.B.push("");this.G.push(0);JI(this)};B(NI,tI);NI.prototype.On=function(){for(var a=[],b=qI(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e=OI(this,d),e={kind:"subtitles",label:d.C,srclang:d.o,src:e};d.isDefault&&(e["default"]=1);a.push(M("track",e))}return a};
NI.prototype.rl=function(a,b){cb(!this.isDisposed());var c=OI(this,a),d=A(function(c){this.A=null;c=new oI(c.responseText);b(c,a)},this);
this.A&&this.A.abort();this.A=Bj(c,{format:"RAW",kb:d,withCredentials:!0});sI(this.o,a)};
NI.prototype.sl=function(a,b,c){var d=this.B;b={type:"list",tlangs:1,v:this.C,fmts:Number(b||!1),vssids:1};this.Oo&&(b.asrs=1);d=rj(d,b);b=A(function(b){this.A=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.o,k=b.getElementsByTagName("track"),l=k.length,m=0;m<l;m++){var p=k[m].getAttribute("formats"),u=c,v=k[m].getAttribute("lang_code"),z=k[m].getAttribute("lang_translated"),x=k[m].getAttribute("name"),ga=k[m].getAttribute("kind"),wa=k[m].getAttribute("id"),J="true"==k[m].getAttribute("lang_default"),
X="true"==k[m].getAttribute("cantran"),Lb=k[m].getAttribute("vss_id");rI(d,new Qt({formats:p,format:u,languageCode:v,languageName:z,name:x,kind:ga,id:wa,is_servable:!0,is_default:J,is_translateable:X,vss_id:Lb}))}b=b.getElementsByTagName("target");d=b.length;for(k=0;k<d;k++)l=b[k].getAttribute("lang_code"),m=b[k].getAttribute("lang_translated"),p=b[k].getAttribute("lang_original"),u=b[k].getAttribute("id"),v="true"==b[k].getAttribute("lang_default"),l={languageCode:l,languageName:m,languageOriginal:p,
id:u,is_default:v},this.F[l.languageCode]=l.languageName,this.D.push(new Pt(l))}a()},this);
this.A&&this.A.abort();this.A=Bj(d,{format:"RAW",kb:b,withCredentials:!0})};
NI.prototype.T=function(){this.A&&this.A.abort();NI.N.T.call(this)};B(PI,mq);h=PI.prototype;h.create=function(){PI.N.create.call(this);this.D=this.o.getVideoData();-1==C8.indexOf(this.X.Y)&&K(this.o.Ba(),"cc-international");this.C=ec(hJ);qa(this.C,sq(this,"display-settings"));SI(this,"fontFamilyOption","fontFamily",s8,4);SI(this,"charEdgeStyle","charEdgeStyle",t8,3);this.U=new Q(["div",["ytp-player-content","ytp-subtitles-player-content"]]);Uq(this.o,this.U.element,4);(this.D.Fa&&RI(this)?0:this.D.captionTracks.length&&this.o.ag().zg||TI(this,!0))&&this.load()};
h.destroy=function(){Aq(this.U);this.U.dispose();PI.N.destroy.call(this)};
h.load=function(){this.na="1"==this.D.C.cc_auto_caps||"1"==this.X.M.cc_auto_caps;PI.N.load.call(this);this.ga=!0;if(this.D.Fa)this.B=new FI(this.D.o,this.o),this.subscribe("seekto",this.Lr,this);else{var a=this.D.ke||this.X.Oa||this.D.Rc("yt:cc_default_lang")||this.X.Y,a=a&&a.split("_").join("-");this.D.captionTracks.length?this.B=new vI(this.D):this.B=new NI(this.D.Rh,this.D.videoId,a,this.D.Qh)}UI(this)};
h.unload=function(){this.G&&(bJ(this),this.Il("control_subtitles_set_track"));if(RI(this)){var a;a=Ze("track",void 0,void 0);for(var b=0;b<a.length;b++)qf(a[b])}else eJ(this,!1),VI(this),this.unsubscribe("seekto",this.Lr,this),this.B.dispose(),this.B=null;this.K=this.da=this.O=this.ga=!1;PI.N.unload.call(this)};
h.bq=function(){this.ga=!1;if(RI(this))for(var a=this.M.A,b=this.B.On(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(c=this.K||TI(this,!this.da),b=qI(this.B.o,!0),0<b.length){this.da=!0;a=this.A&&-1!=b.indexOf(this.A);if(c&&!a)if(c=this.B.uk(),!c&&this.K&&(c=b[0]),c)this.la=!0,ZI(this,c),a=!0;else if(this.O||WI(this),b=this.B.o.B,b.length&&(b=b[0].toString(),this.K||this.na))a=uI(this.B,b),ZI(this,a,void 0),a=!0;this.P("publish_external_event","onCaptionsTrackListChanged");a||YI(this)}else if(this.B.Jd())YI(this);
else if(a=this.o.app.C,b=lH(a,this.sa))ob(a.o,b),b.destroy()};
h.cq=function(a,b){this.la&&(this.la=!1,this.P("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.A||!b.equals(this.A))){VI(this);this.A=b;this.qa=Sfa.test(b.o);var c={trackName:b.C,trackKind:b.B};b.A?(c.trackLangCode=b.A.languageCode,c.fromLangCode=b.o):c.trackLangCode=b.o;this.log(c);b!=this.B.Jd()&&(this.K&&(c=St(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=P("YTP_CLICK_FOR_SETTINGS",{GEAR_ICON:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="15px" height="15px" viewBox="0 0 15 15"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.25,5.7C8.783,5.233,8.2,5,7.5,5S6.2,5.233,5.7,5.7C5.233,6.2,5,6.8,5,7.5s0.233,1.283,0.7,1.75C6.2,9.75,6.8,10,7.5,10s1.283-0.25,1.75-0.75C9.75,8.783,10,8.2,10,7.5S9.75,6.2,9.25,5.7z M8.75,2.15c0.6,0.1,1.15,0.317,1.65,0.65l1.5-1.5l1.75,1.75l-1.5,1.5c0.333,0.534,0.583,1.1,0.75,1.7H15v2.5h-2.1c-0.133,0.6-0.367,1.15-0.7,1.65l1.5,1.5l-1.75,1.75l-1.5-1.5c-0.534,0.333-1.1,0.583-1.7,0.75V15h-2.5v-2.1c-0.6-0.167-1.167-0.417-1.7-0.75l-1.5,1.5L1.3,11.9l1.5-1.5C2.467,9.9,2.25,9.35,2.15,8.75H0v-2.5h2.15c0.133-0.6,0.367-1.167,0.7-1.7l-1.5-1.5L3.1,1.3l1.5,1.5c0.5-0.333,1.05-0.55,1.65-0.65V0h2.5V2.15z"/></svg>'}),
this.U.element.appendChild(this.Y.o),this.Y.Yd(c),this.Y.wd(this.C,this.M.Ma()),this.Y.Vd(),this.ha.Pf()),this.P("publish_external_event","captionschanged",Rt(b)),(this.X.experiments.ma("cc_sticky_behavior")||this.K||yG(this.X))&&tq(this,"module-enabled",!0),(c=oq(this.o.app))&&c.B&&yA(c.B.A))}this.O||WI(this);this.ib(a.A.concat(a.o))};
h.mc=function(a){this.aa.push(a);this.ia.Pf()};
h.Hc=function(a){ob(this.aa,a);this.ia.Pf()};
h.LB=function(a){if(this.A)if(a instanceof PH){var b=this.L[a.id];qa(a.params,this.C);QH(a);b&&b.getType()!=RH(a)&&(qf(b.o),delete this.L[a.id],b=null);if(!b){var b=this.L,c=a.id,d;a:{d=a.id;var e=a.params;switch(RH(a)){case 1:d=new GI(d,e);break a;case 2:d=new II(d,e);break a;default:d=new HH(d,e)}}b=b[c]=d;c=b.o;L(c,"captions-asr","asr"==this.A.B);null!=a.params.textPrintDirection&&(a.params.textPrintDirection=this.qa?1:0);this.U.element.appendChild(c)}b.wd(a.params,this.M.Ma());if(1==RH(a)){b.K=
LH(a.A);b.B={};b.G=!0;b.Yd(b.K);b.B.uq=b.D.length;b.B.width=b.o.offsetWidth;b.B.height=b.o.offsetHeight;b.B.wq=[];b.B.xq=[];for(a=0;a<b.B.uq;a++)b.B.xq.push(b.D[a].offsetTop),b.B.wq.push(b.D[a].offsetLeft);b.G=!1;b.Yd(b.K)}}else b=a.D,this.Z[b]||(this.Z[b]=[]),this.Z[b].push(a)};
h.yp=function(){this.O&&(XI(this),Ob(this.L,function(a){a.Vd()},this))};
h.VB=function(){qf(this.Y.o)};
h.fm=function(){this.ia.stop();this.O&&(bc(this.Z),this.aa.sort(lq),F(this.aa,this.LB,this),Ob(this.L,function(a,b){this.Z[b]?a.Lq(this.Z[b]):(qf(a.o),delete this.L[b])},this),$I(this),this.F&&this.F.Vd())};
h.Ml=function(){tq(this,"display-settings",this.C)};
h.fe=function(a,b){switch(a){case "fontSize":return(0,window.isNaN)(b)||(this.C.fontSizeIncrement=Math.max(-2,Math.min(4,b)),XI(this)),this.C.fontSizeIncrement;case "reload":b&&UI(this);break;case "stickyLoading":void 0!=b&&this.X.cb&&tq(this,"module-enabled",!!b);break;case "track":if(b){if(!ia(b))break;if(ac(b)){cJ(this);break}for(var c,d=qI(this.B.o,!0),e=0;e<d.length;e++){var f=d[e];f.o!=b.languageCode||c&&f.F!=b.languageName||(c=b.translationLanguage?Tt(f,b.translationLanguage):f)}c&&ZI(this,
c,!0)}else return this.A&&this.A!=this.B.Jd()?Rt(this.A):{};return"";case "tracklist":return this.da?O(qI(this.B.o,b&&b.includeAsr),function(a){return Rt(a)}):[];
case "translationLanguages":return this.da?this.B.D:[];case "displaySettings":return b&&ia(b)&&gJ(this,b),c=ec(this.C),c.fontFamilyOption=s8[c.fontFamily],c.charEdgeStyle=t8[c.charEdgeStyle],c;case "sampleSubtitles":void 0!=b&&eJ(this,!!b);break;case "xmlTrack":b&&this.X.cb&&(VI(this),c=new oI(b.xml),this.A=new Qt({languageName:b.name}),this.cq(c,this.A))}};
h.Ve=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.X.cb&&a.push("stickyLoading","xmlTrack");return a};
h.gk=function(a,b){return a&&y(a)&&hI.test(a)?a:b};
h.wl=function(a,b){return fa(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};
h.nv=function(a,b){if(a&&y(a)){var c=t8.indexOf(a);return-1!=c?c:b}return b};
h.Vv=function(a,b){if(a&&y(a)){var c=s8.indexOf(a);return-1!=c?c:b}return b};
h.Wv=function(a,b){return fa(a)&&!(0,window.isNaN)(a)?Math.max(-2,Math.min(4,a)):b};
var iJ=null;h=PI.prototype;h.Xa=function(a){if("lb3"==a.W().o)return!1;a=a.getVideoData();var b;if(b=a.Fa)b=a.o,b=!(!b||null==b.o.en);return!!(a.Rh||a.captionTracks.length||b)};
h.Li=function(a){a?VI(this):this.loaded&&(this.unload(),this.load())};
h.Lr=function(){this.B.seek(this.o.getCurrentTime())};
h.qh=function(){var a=this.A;return a?{cc:a.G}:null};
h.YA=function(){this.K=!0;this.loaded?this.A&&this.A!=this.B.Jd()?cJ(this):this.bq():this.load()};
h.yy=function(){this.D.captionTracks.length&&(this.loaded?UI(this):(this.o.ag().zg||TI(this,!0))&&this.load())};B(jJ,mq);h=jJ.prototype;h.Xa=function(){return kJ(this.o)};
h.create=function(){jJ.N.create.call(this);var a=new iq(1E3,0x7ffffffffffff,{priority:0});this.ib([a]);this.subscribe("heartbeatparams",this.$D,this);this.subscribe("onStateChange",this.aE,this)};
h.destroy=function(){rJ(this);jJ.N.destroy.call(this)};
h.mc=function(){this.F=!0;nJ(this,2E3)};
h.$D=function(a){this.B=a;nJ(this,2E3)};
h.aE=function(a){T(a.state,2)||T(a.state,64)?rJ(this):(T(a.state,1)||T(a.state,8))&&nJ(this,2E3)};
h.$B=function(){var a,b,c=this.o.W(),d=this.o.getVideoData();b=c.baseYtUrl;T(nz(this.o),4)?this.A=window.NaN:mJ(this)?(Zw(d)?(a="GET",b=Ug(this.B.url,{request_id:xu()}),d.M&&(b=Ug(b,{vvt:d.M})),d.oauthToken&&(b=Ug(b,{access_token:d.oauthToken}))):(a="GET",c=c.A,b=Ug(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.M,access_token:d.oauthToken})),b=Ug(b,{cpn:d.clientPlaybackNonce}),Bj(b,{format:"RAW",method:a,timeout:3E4,kb:A(this.Ix,this),
onError:A(this.Hx,this),Td:A(this.Jx,this),withCredentials:!0})):rJ(this)};
h.Ix=function(a){if(this.A){a=a.responseText;var b;b=(b=qJ(a))?"ok"==b.status?0:"stop"==b.status?1:-1:(b=a.match(H$))?"0"==b[1]?0:1:-1;if(-1==b)oJ(this,"decode");else if(this.C=0,this.A=window.NaN,1==b){this.D=!1;b="YTP_ERROR_LICENSE";var c=qJ(a);c?a=c.reason||P(b):((a=a.match(H$))&&(a=(0,window.parseInt)(a[1],10))&&(b=Vx(a)),a=P(b));pJ(this.o.app.o,"heartbeat",a,void 0)}else this.D=!0,nJ(this)}};
h.Hx=function(a){oJ(this,"net-"+a.status)};
h.Jx=function(){oJ(this,"timeout")};
var H$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;B(xJ,mq);h=xJ.prototype;h.Xa=function(){return!!this.o.getVideoData().spacecastModule};
h.create=function(){xJ.N.create.call(this);var a;a:{var b=ij("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(){xJ.N.destroy.call(this);this.A=null};
h.load=function(){xJ.N.load.call(this);if(this.A){var a=this.o.getVideoData().videoId,b=I();vJ(this.A,a,A(this.Gw,this,a,b))}else qq(this)};
h.fe=function(a){switch(a){case "getVideo":a=this.o.getVideoData();var b=Boolean(a&&cx(a)&&a.A&&a.A.video.o);return{docid:a.videoId,isFastLoad:b}}};
h.Gw=function(a,b,c){if(this.A){b=I()-b;var d=!1,e=this.o.getVideoData(),f="unknown";if(c){c.status&&(f=c.status);var k=tJ(this.A,c,e.adaptiveFormats);k&&(e.spacecastAdaptiveFormats=k);if(c=tJ(this.A,c,e.Uf))e.spacecastFormatMap=c;if(k||c)Ww(e,this.o.W()),e.O||iH(this.o),d=$t(e.Yg),this.o.zj(d),d=!0}(c=2==this.o.getPresentingPlayerType())&&!d?od(function(){var a=this.o.app;a.G&&a.G.J&&(a=a.G,a.F&&(a=a.B.A.o,null!=a&&a.Dj()))},this):qq(this);
Pi("yt-www-spacecast-cache-watch-video-cached",a,d);sJ(Sg({a:"spacecast",module:"player",status:f,docid:a,cached:d?1:0,"cache-latency":b,isAd:c?1:0}))}};B(zJ,mq);h=zJ.prototype;h.Xa=function(){return fx(this.o.getVideoData(),"ypc_clickwrap_module")};
h.create=function(){zJ.N.create.call(this);this.load()};
h.load=function(){zJ.N.load.call(this);this.A=new wq(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",P("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.o.getVideoData().C.ypc_clickwrap_message],["button",["ytp-ypc-clickwrap-confirm","ytp-button"],P("YTP_YPC_START_RENTAL_BUTTON")]]);Uq(this.o,this.A.element,4);H(this,this.A);this.B=this.A.ra["ytp-ypc-clickwrap-confirm"];Nl(this.B,"click",A(this.$y,this))};
h.unload=function(){zJ.N.unload.call(this);Ul(this.B);Aq(this.A);this.A.dispose();this.A=null};
h.$y=function(){qq(this);this.destroy()};CJ.prototype.o=function(a,b){var c=Math.pow(this.D,a);this.A=b*(1-c)+c*this.A;this.C+=a};
CJ.prototype.B=function(){return this.A/(1-Math.pow(this.D,this.C))};DJ.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)};
DJ.prototype.Ka=function(){var a=[];this.forEach(A(a.push,a));return a};FJ.prototype.o=function(a,b){HJ(this,"index");this.C.push({index:this.J++,weight:a,value:b});this.A+=a;for(HJ(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)}};
FJ.prototype.B=function(){return this.F?(GJ(this,this.D-this.F)+GJ(this,this.D)+GJ(this,this.D+this.F))/3:GJ(this,this.D)};IJ.prototype.o=function(a,b){this.A.push(b);this.A.length>this.C&&this.A.shift()};
IJ.prototype.B=function(){return ne.apply(null,this.A)};B(UJ,G);UJ.prototype.J=function(a){if(this.A){var b;var c=ka(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]);H(this,b)}}else b=null;b&&b.Xa(this.A)&&!E(this.o,b)&&(b.create(),this.o.push(b),E(this.D,b.sa)&&(b.G=this.H,b.Li(!!b.G)))}};
UJ.prototype.K=function(a,b){F(this.o,function(c){c.P(a,b)})};
UJ.prototype.isAvailable=function(a){a=lH(this,a);return!(!a||!a.ea)};aK.prototype.getMessage=function(){return this.C};
aK.prototype.getErrorCode=function(){return this.o};
aK.prototype.getType=function(){return this.D};
aK.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.B?" Caused by: "+this.B:"")};B(bK,jc);bK.prototype.getError=function(){return this.C};var o_="adMetadata click companionBackfill complete firstquartile impression loaded log midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked youTubeChannelMetadata".split(" "),I$="abandon acceptinvitation acceptinvitationlinear video_extend_auto_skipped click close collapse complete creativeview engagedview exitfullscreen expand video_extend_shown video_extend_clicked externalActivityEvent firstquartile fullscreen 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_url why_this_ad_settings_url why_this_ad_learn_more_url why_this_ad_unsubscribe_url why_this_ad_unsubscribe_continue_url why_this_ad_unsubscribe_cancel_url mute_interaction_url mute_url mute_undo_url".split(" "),
pga="acceptinvitation click close collapse creativeview expand progress".split(" "),J$=["viewable_impression","measurable_impression","externalActivityEvent"],K$={fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};B(cK,jc);cK.prototype.getAd=function(){return this.C};
var Zda={XF:"adCanPlay",CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",TI:"videoClicked",an:"engagedview",OG:"expandedChanged",STARTED:"start",Dh:"impression",cn:"measurable_impression",tn:"viewable_impression",bn:"fully_viewable_audible_half_duration_impression",RG:"externalActivityEvent",PAUSED:"pause",ZH:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",KG:"durationChange",
mG:"autoClose",USER_CLOSE:"userClose",USER_RECALL:"userRecall",OH:"prefetched",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",bt:"video_extend_auto_skipped",Fu:"skipshown",Mt:"video_extend_shown",QG:"video_extend_clicked",nH:"linearChanged",kI:"skippableStateChanged",YF:"adMetadata",WF:"adBreakReady",rH:"log",VOLUME_CHANGED:"volumeChange",ZI:"mute",CG:"companionBackfill",iJ:"youTubeVideoMetadata",hJ:"youTubeChannelMetadata",MI:"urlNavigationRequested",EI:"trackingUrlPinged",OI:"video_card_endcap_action",
QI:"video_card_endcap_collapse",RI:"video_card_endcap_dismiss",SI:"video_card_endcap_impression",eJ:"why_this_ad_url",dJ:"why_this_ad_got_it_url",AH:"MUTE_AD"};var MK={Zt:5E3,$t:15E3,xu:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://yts?.moatads.com www.google.com/pagead/sul www.youtube.com/pagead/sul".split(" "),yu:/\bocr\b/,ik:0,sd:{},Gq:function(a,b){a&&(MK.ml(a)?MK.Hq(a,b):MK.bC(a,b))},
ml:function(a){return C(D(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new N(a)).Ce().match(MK.yu)?!0:null!=eb(MK.xu,function(b){return null!=a.match(b)})},
Hq:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?MK.Uo(function(b){MK.Dq(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):MK.Dq(c)}},
Dq:function(a){var b=M("iframe",{src:a,style:"display:none"});a=We(b).body;var c,d=Sd(function(){Zc(c);qf(b)},MK.$t);
c=Xc(b,["load","error"],function(){Sd(function(){Td(d);qf(b)},MK.Zt)});
a.appendChild(b)},
Uo:function(a,b){var c=MK.sd.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete MK.sd[c];d||(d=!0,null!=MK.sd.imageLoadingEnabled||(MK.sd.imageLoadingEnabled=b),a(b))};
b?b(c):MK.Mx(c)}},
Mx:function(a){var b=new window.Image,c,d=""+MK.ik++;MK.sd[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=="},
aC:function(a){if(a){var b=lf("OBJECT");b.data=a;b.width=1;b.height=1;b.style.visibility="hidden";var c=""+MK.ik++;MK.sd[c]=b;b.onload=b.onerror=function(){delete MK.sd[c]};
window.document.body.appendChild(b)}},
Eq:function(a){if(a){var b=new window.Image,c=""+MK.ik++;MK.sd[c]=b;b.onload=b.onerror=function(){delete MK.sd[c]};
b.src=a}},
bC:function(a,b){b?MK.Uo(function(b){b?MK.Eq(a):MK.aC(a)}):MK.Eq(a)},
vJ:function(a){null!=a&&F(a,function(a){MK.Gq(a)})}};var kK=new function(){this.A="always";this.D=1;this.o=!1;this.C=!0;this.G=!1;this.F=null};var xU=["ADSENSE","ADSENSE/ADX"],jba=["DART","DART_DFA","DART_DFP"],rba=["FREEWHEEL","YT:FREEWHEEL"],ST=["GDFP"],iba=["VIRAL","ADSENSE-VIRAL"],sT={"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"},WY={wH:"video/mp4",yH:"video/mpeg",sH:"application/x-mpegURL",FH:"video/ogg",uI:"video/3gpp",aJ:"video/webm",vH:"audio/mpeg",xH:"audio/mp4"};lK.prototype.getId=function(){return this.A};mK.prototype.getId=function(){return this.B};var tK=null;var aaa=["*.googlesyndication.com"],CK=["*.youtu.be","*.youtube.com"],HK="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(" "),GK=["c.googlesyndication.com"],qga=
["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];OK.prototype.getErrorCode=function(){return this.errorCode};
OK.prototype.getMessage=function(){return this.message};
var uda=new OK("Unable to request ads from server. Cause: {0}.",1005),rga=new OK("Unable to request ads from server due to network error.",1012),fV=new OK("Cannot parse the {0} value for the adslist response: {1}.",900),LY=new OK("Invalid usage of the API. Cause: {0}",900),QY=new OK("Unable to display one or more required companions.",602),sga=new OK("There was a problem requesting ads from the server.",1005),kda=new OK("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",
1013),kX=new OK("The provided ad type: {0} is not supported.",1005),mR=new OK("The provided {0} information: {1} is invalid.",1101),tga=new OK("The provided skip offset was invalid.",1105),uga=new OK("The extension contained is neither skippable nor nonskippable.",1105),FW=new OK("The response does not contain any valid ads.",1009),vga=new OK("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),Jba=new OK("The ad playlist response was malformed or empty.",
1010),gV=new OK("The ad response was not understood and cannot be parsed.",1010),nda=new OK("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),wga=new OK("The ad response contains unexpected element. Cause {0}.",1010),aY=new OK("No assets were found in the VAST ad response.",200),Zaa=new OK("Duplicate node in <{0}>: {1}",101),GW=new OK("The VAST response document is empty.",1009),Yda=new OK("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
403),TX=new OK("Ad request reached a timeout.",301),HW=new OK("VAST response was malformed and could not be parsed.",100),L$=new OK("VAST media file loading reached a timeout of {0} seconds.",402),MX=new OK("Ad request could not be completed due to a network error.",301),xga=new OK("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),hda=new OK("The maximum number of VAST wrappers ({0}) has been reached.",302),yga=new OK("VAST media file duration differs from the VAST response duration by {0} seconds.",
202),GZ=new OK("Video player received an ad with unexpected or incompatible linearity",201),Yaa=new OK("Unknown node in <{0}>: {1}",101),ica=new OK("Invalid VAST resource type: {0}",101),Aca=new OK("Invalid VAST version",102),ida=new OK("No additional VAST wrappers allowed.",300),LX=new OK("No Ads VAST response after one or more Wrappers",303),KZ=new OK("There was an error playing the video ad.",400),vca=new OK("VMAP unsupported node in <{0}>: {1}",1010),eea=new OK("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",
901);var M$="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var bL={},cL="",sQ=/OS (\S+) like/,iL=/Android ([\d\.]+)/;aa(jL);h=nL.prototype;h.av=!1;h.zn=!1;h.Cn=!0;h.baseYouTubeUrl=null;h.bitrate=-1;h.contentId=null;h.Ev=!1;h.Hg=null;h.surveyCreativeData=null;h.xC=!0;h.km=!1;h.useShareButton=!1;h.Xq=!1;h.useStyledNonLinearAds=!1;h.useVideoAdUi=!0;h.yC=!0;h.Wj=!1;h.Fv=!1;h.youTubeAdNamespace=0;h.showContentThumbnail=!0;h.jm=!1;h.Ff=null;h.loadVideoTimeout=15E3;h.Dn=!0;h.lq=0;h.Hl=-1;window.console&&"function"===typeof window.console.log&&A(window.console.log,window.console);pL.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 zL=null;tL.prototype.getValue=function(){return this.o};
tL.prototype.nc=function(){return this.B?this.A():""};
tL.prototype.A=function(){return String(this.o)};
B(uL,tL);uL.prototype.A=function(){return this.o?"1":"0"};
B(vL,tL);vL.prototype.A=function(){return String(this.o)};
B(wL,tL);wL.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)):""};
sL.prototype.setItem=function(a){this.o[a.D]=a};
sL.prototype.getItem=function(a){return dc(this.o,a,null)};
sL.prototype.nc=function(a){var b=[];a||(a=0);for(var c in this.o){var d=this.o[c];d instanceof uL&&d.getValue()&&(a|=d.C);(d=this.o[c].nc())&&b.push(c+d)}b.push("eb"+String(a));return b.join("_")};h=DL.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){gc(this.o,a)};
h.nc=function(){var a=[],b;for(b in this.o)a.push(b+this.o[b]);return a.join("_")};var IL=null,LL=null,HL=null;ML.prototype.nc=function(){var a=[],b=Number(this.o.get("eb"));this.o.remove("eb");var c=this.o.nc();c&&a.push(c);this.A&&(c=this.A.serialize())&&a.push(c);(c=this.B.nc(b))&&a.push(c);this.o.set("eb",b);return a.join("_")};var GP={START:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",RESUME:"resume",SKIPPED:"skip",tn:"viewable_impression",MUTE:"mute",UNMUTE:"unmute",FULLSCREEN:"fullscreen",EXIT_FULLSCREEN:"exitfullscreen",bn:"fully_viewable_audible_half_duration_impression",cn:"measurable_impression",Ss:"abandon",an:"engagedview",Dh:"impression",CREATIVE_VIEW:"creativeview"},LP=["start","firstquartile","midpoint","thirdquartile",
"resume"],SN=["abandon"],HP={UNKNOWN:-1,START:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,RESUME:7,SKIPPED:8,tn:9,MUTE:10,UNMUTE:11,FULLSCREEN:12,EXIT_FULLSCREEN:13,bn:14,cn:15,Ss:16,an:17,Dh:18,CREATIVE_VIEW:19},JN=[8,13,21,33];var EO=/https?:\/\/[^\/]+/;XL.prototype.o=function(a,b,c,d,e){var f={};f.context=a;b instanceof YL||(b=$L(b));f.msg=b.message.substring(0,512);b.fileName&&(f.file=b.fileName);0<b.lineNumber&&(f.line=b.lineNumber.toString());a=r.document;f.url=a.URL.substring(0,512);f.ref=a.referrer.substring(0,512);if(d)try{d(f)}catch(l){}d=this.D;try{if(Math.random()<(c||d.A)){var k=d.o+(e||this.C)+VL(f),k=k.substring(0,2E3);WL(r,k)}}catch(l){}return this.A};var jM=window.document,W=window;var bM;bM=new XL(new function(){this.o="http"+("http:"==W.location.protocol?"":"s")+"://pagead2.googlesyndication.com/pagead/gen_204?id=";this.A=.01},"jserror",!0);
var VP=bM.o;var N$=!1,O$="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(N$=!0,a.description)){O$=gM(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){N$=!0;O$="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(N$=(a=window.navigator.mimeTypes["application/x-shockwave-flash"])&&a.enabledPlugin)){O$=gM(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");N$=
!0;O$=gM(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");N$=!0;O$="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),N$=!0,O$=gM(b.GetVariable("$version"))}catch(c){}})();
var uS=N$,GM=O$;if(jM&&jM.URL){var SL=jM.URL,zga=!(SL&&0<RL().length);bM.A=zga};var CM={},DM=null;CM.le=0;CM.nt=2;CM.Fr=3;var RN=0,xM=(new Date).getTime(),sM=-1,uM=!1,vM=-1,wM=-1;CM.Po=5;CM.me=1;CM.om=4;HM.prototype.getStatus=function(){return this.o};
B(KM,HM);var XM={JI:-1,LOADING:0,St:1,wt:2,bu:3,VISIBLE:4},ZM={LOADING:0,St:1,wt:2,AI:3,EH:4,GI:5,HI:6,FI:7,GH:8,zI:9},$M={};h=NM.prototype;h.Ro=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.Qo=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&&!pe(a,Vf(this.module))&&Tf(this.module,a)};
h.remove=function(){if(this.module)try{qf(this.module)}catch(a){}this.module=null};
h.Dw=function(a){this.A=a?3:4};
q("gteh",dM("osd_or_lidar::gteh_ex",function(a,b){var c=$M[a];ha(c)&&c(b)}),void 0);
var pN={bu:0,VISIBLE:1},Aga=new oe(-99999,0);eN.prototype.Y=function(){var a=gN(this);if(null===a)iN(this);else if(null===this.B)this.B=a,iN(this);else{var b=a-this.B;this.B=a;0==(4<=b?1:0)?(iN(this),fN(this,0)):(this.o.setPosition(Aga),this.G=W.setTimeout(eM("osd_or_lidar::sfm_cpto",A(this.U,this)),125))}};
eN.prototype.U=function(){var a=gN(this),b=a-this.B;this.B=a;a=4<=b?1:0;iN(this);fN(this,0==a?1:0)};
B(lN,HM);lN.prototype.K=function(){var a=oN(this);this.A!=a&&(this.A=a,this.H(a))};var uN=null;var wN=new qe(0,0,0,0);h=vN.prototype;h.update=function(a,b,c,d,e){if(0>this.H)return null;c||xN(this,d,e);return this.Tf(this.A,b,a,c,!1)};
h.Tf=function(a,b,c,d,e,f){var k=c-this.H||1,l=1E4;f=f||{};var m=f.duration;this.Bi()&&n(m)&&-1!=m&&(l=Math.max(l,m/3));k=k>l?1:k;l=f.volume;f=f.deltaTime;m=null;fa(b)?this.G=this.Xh(b):(m=b,this.G=this.Xh(a,m));a=CN(this.G);this.jj(a,k,this.S,e,d,m,l,f);this.S=d?-1:a;this.H=c;-1!=a&&(0>this.uc&&(this.uc=c),this.oe=c);-1==this.pe&&this.Le()&&(this.pe=c);this.Ob(this,m||wN);return this.G};
h.Xh=function(a,b){var c=null;if(fa(a))return a;c=new qe(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left));if(0>=this.ea||c.top>=c.bottom||c.left>=c.right)return 0;var d=c.clone(),e=-a.left,f=-a.top;e instanceof oe?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,fa(f)&&(d.top+=f,d.bottom+=f));c=(c.bottom-c.top)*(c.right-c.left);return c/this.ea};
h.im=function(a,b){this.Ia[a]+=b};
h.gm=function(a,b){this.L[a]+=b;this.L[a]>this.ia[a]&&(this.ia[a]=this.L[a])};
h.Ll=function(a){this.L[a]=0};
h.jj=function(a,b,c,d,e,f,k,l){k=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?k:c;l=l||0;-1!=c&&this.im(c,b,l);f=f||null;d=-1!=c&&2>=c;f?(d&&-1!=this.aa&&(this.$a[this.aa]+=b),f=100*this.ea/((f.bottom-f.top)*(f.right-f.left)),this.aa=20<=f?0:10<=f?1:5<=f?2:2.5<=f?3:4):this.aa=-1;for(f=c;0<=f&&4>=f;f++)this.gm(f,b,l);for(f=0;f<this.L.length;++f)(f<a||e||-1==a)&&this.Ll(f)};
h.Bi=function(){return!1};
h.Le=function(){return!1};B(IN,vN);h=IN.prototype;
h.Tf=function(a,b,c,d,e,f){var k=c-this.H||1;if(!f){f={};if("as"==this.B){var l;l="getVideoMetadata"+this.K;if(ha(this.element[l]))try{f=this.element[l]()}catch(m){this.xc=!0}}if("h"==this.B&&(l=t("ima.common.getVideoMetadata"),ha(l)))try{f=l(this.C)}catch(m){this.xc=!0}l=f.currentTime;n(l)?f.currentTime=Math.floor(1E3*l):this.he=!0;l=f.duration;n(l)&&(f.duration=Math.floor(1E3*l));n(f.volume)||(f.volume=LN(this))}this.V=f.duration||this.V;f.duration=this.V;this.tb=f.isVpaid||this.tb;k=n(f.currentTime)?
f.currentTime:this.Z+k;k<this.Z&&(k=this.Z,this.ie=!0);f.deltaTime=k-this.Z;IN.N.Tf.call(this,a,b,c,d,e,f);-1==this.La&&this.ad&&(this.La=this.Oa);this.ge++;this.Z=k;return this.G};
h.Xh=function(a,b){return this.Cd?0:this.M?1:IN.N.Xh.call(this,a,b)};
h.im=function(a,b,c){IN.N.im.call(this,a,b,c);this.ac[a]+=c;2>=a&&(this.qa+=b,this.Da+=c)};
h.gm=function(a,b,c){IN.N.gm.call(this,a,b,c);this.Qa[a]+=c;this.Qa[a]>this.Yb[a]&&(this.Yb[a]=this.Qa[a])};
h.Ll=function(a){IN.N.Ll.call(this,a);this.Qa[a]=0};
h.jj=function(a,b,c,d,e,f,k,l){if(!this.la){IN.N.jj.call(this,a,b,c,d,e,f,k,l);a=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?a:c;d=-1!=c&&2>=c;a=n(k)&&.1<=k&&.1<=this.Ga;this.Oa+=b;a?(this.gb+=b,0==c&&(this.U+=b),d||(this.ga+=b)):this.ab=!1;this.ga>this.Nb&&(this.Nb=this.ga);if(d||!n(k)||.1>k)this.ga=0;n(k)&&(Number(k)?(b=Math.pow(10,3),k=Math.round(k*b)/b):k=0);this.Ga=k}};
h.Bi=function(){return!0};
h.Le=function(){return 2E3<=Math.max(this.L[2],this.ia[2])};var VN=null,XN=null,YN=null,$N=null,sO=null,UN=!1,tO=[],vO=[],oO=!1,pO=null,iO=0,kO=!1,jO=!1,mO=!1,nO=!1,hO=VK()||UK(),rO=0;var HO=null,aP="",XO=!1;var KO=(new Date).getTime(),QO=!1,RO=!1,SO=!1,NO=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return JO(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 JO(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 JO(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 JO(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 JO(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return RO},
function(){return SO},
function(){return JO(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 JO(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]||IO(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 IO(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 JO(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 IO(a.CSS.supports)},
function(){return IO(window.Intl.Collator)},
function(a){return IO(a.document.createElement("dialog").show)},
function(){return JO(8)},
function(a){return IO(a.document.createElement("div").animate([{transform:"scale(1)",Iv:"ease-in"},{transform:"scale(1.3)",Iv:"ease-in"}],{duration:1300,tJ:1}).reverse)},
function(a){return IO(a.document.createElement("div").animate)},
function(a){return IO(a.document.documentElement.webkitRequestFullScreen)},
function(a){return IO(a.navigator.getBattery)},
function(a){return IO(a.navigator.permissions.query)},
function(){return IO((new window.AudioContext).createBuffer)},
function(){return JO(9)},
function(){return IO(window.webkitRequestAnimationFrame)},
function(a){return IO(a.BroadcastChannel.call)},
function(a){return IO(a.FontFace)},
function(a){return IO(a.Gamepad)},
function(){return JO(10)},
function(a){return IO(a.MutationEvent)},
function(a){return IO(a.MutationObserver)},
function(a){return IO(a.crypto.getRandomValues)},
function(a){return IO(a.document.body.createShadowRoot)},
function(a){return IO(a.document.body.webkitCreateShadowRoot)},
function(a){return IO(a.fetch)},
function(){return JO(11)},
function(a){return IO(a.navigator.serviceWorker.register)},
function(a){return IO(a.navigator.webkitGetGamepads)},
function(a){return IO(a.speechSynthesis.speak)},
function(a){return IO(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return JO(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 JO(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 JO(14)},
function(a){return"undefined"==typeof a.navigator.zJ},
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")}],OO=[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}],PO=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];var UO=!1,YO=!1,$O=!1,ZO=!1,VO=!1;q("Goog_AdSense_Lidar_sendVastMessage",aM("lidar::handlevast_ex",KP),void 0);q("Goog_AdSense_Lidar_sendVastEvent",aM("lidar::handlevastevent_ex",JP),void 0);q("Goog_AdSense_Lidar_getInitSignals",aM("lidar::getinitsignals_ex",IP),void 0);q("Goog_AdSense_Lidar_getUrlSignalsArray",dM("lidar::geturlsignalsarray_ex",function(){return FO()}),void 0);
q("Goog_AdSense_Lidar_getUrlSignalsList",dM("lidar::geturlsignalslist_ex",function(){return de(FO())}),void 0);B(NP,dd);var PP=null;NP.prototype.destroy=function(){this.D.za(this.o,"activityMonitor",this.H);this.B=null;this.A=!1};
NP.prototype.init=function(a){if(!this.A){if(this.o=a||null)this.D.R(this.o,"activityMonitor",this.H),XP(this);if(kK.C&&!(r.ima&&r.ima.video&&r.ima.video.client&&r.ima.video.client.tagged)){q("ima.video.client.sdkTag",!0,void 0);var b=r.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}};
NP.prototype.H=function(a){var b=a.od,c=b.queryId,d={};d.eventId=b.eventId;switch(a.kc){case "getPageSignals":XP(this);break;case "getViewability":b=UP(this,"metric",c);d.viewabilityString=b.viewability||"";this.o.send("activityMonitor","viewability",d);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;Yb(b,"isFullscreen")&&(k=b.isFullscreen);d.viewabilityData=UP(this,e,c,a,f);d.engagementString=
YP(this,a,k);this.o.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":d={},d.eventId=b.eventId,a=b.osdId,k=null,Yb(b,"isFullscreen")&&(k=b.isFullscreen),d.engagementString=YP(this,a,k),this.o.send("activityMonitor","engagement",d)}};
q("ima.common.getVideoMetadata",QP,void 0);q("ima.common.sdkVolume",function(a){a=QP(a).volume;return null!=a?a:-1},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=OP().o;d?d.send("activityMonitor","viewableImpression",c):OP().$(new cK("viewable_impression",null,c))},void 0);
q("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=OP().o;d?d.send("activityMonitor","measurableImpression",c):OP().$(new cK("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=OP().o)?a.send("activityMonitor","externalActivityEvent",d):OP().$(new cK("externalActivityEvent",null,d))},void 0);B(dQ,dd);h=dQ.prototype;h.aB=function(a){this.J=!0;this.A=a.touches.length;this.B&&(window.clearTimeout(this.B),this.B=0,this.M=!0);(this.H=jQ(this,a.touches)||1!=a.touches.length)?this.O=this.S=window.Infinity:(this.S=a.touches[0].clientX,this.O=a.touches[0].clientY);iQ(this,a.touches)};
h.$A=function(a){this.A=a.touches.length;if(!$K()||!aL(sQ,8)||Math.pow(a.changedTouches[0].clientX-this.S,2)+Math.pow(a.changedTouches[0].clientY-this.O,2)>Math.pow(5,2))this.F=!0};
h.ZA=function(a){this.L?this.nk():(!this.J||1!=this.A||this.F||this.M||this.H||!jQ(this,a.changedTouches)||(this.B=window.setTimeout(A(this.nk,this),300)),this.A=a.touches.length,0==this.A&&(this.F=this.J=!1,this.C=[]),this.M=!1)};
h.uo=function(){this.nk()};
h.nk=function(){this.B=0;this.$(new jc("click"))};
h.T=function(){gQ(this);this.D.dispose();this.D=null;dQ.N.T.call(this)};B(nQ,dd);var Kaa={oG:"beginFullscreen",CLICK:"click",END:"end",MG:"endFullscreen",ERROR:"error",LOADED:"loaded",tH:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",SKIP:"skip",Fu:"skipShown",PG:"video_extend_clicked",Mt:"video_extend_shown",bt:"video_extend_auto_skipped",START:"start",wI:"timeUpdate",uG:"cardsStateChange",vI:"timedMetadata",YI:"volumeChange",fI:"showCompanionAdLoaded"};h=nQ.prototype;h.Bo=function(){return!1};
h.Ol=w;h.Eo=w;h.Ok=w;h.gf=function(){return null};B(oQ,nQ);h=oQ.prototype;h.Aq=function(a,b,c,d){if(d&&(d=eb(a,function(a){return!ca(kQ(a.A))}),null!==d))return d;
a=$d(a,function(a){var b=a.o;C(D(a.A))||"progressive"!=a.C&&"application/x-mpegurl"!=D(b).toLowerCase()?a=!1:(b=D(b).toLowerCase(),a=C(b)||hL&&aL(iL,2.3)&&Ha(b,"application/ogg")?!1:hL&&(Ha(b,"video/mp4")||Ha(b,"video/3gpp"))||$K()&&(Ha(b,"application/x-mpegurl")||Ha(b,"application/vnd.apple.mpegurl"))?!0:!C(this.o.canPlayType(b)));return a},this);
return ZP(a,b,c)};
h.zk=function(){return $d(Vb(WY),function(a){return!C(this.o.canPlayType(a))},this)};
h.Sl=function(a){this.U=0<a.o?a.o:15E3};
h.load=function(a){pQ(this);this.o.src=a;this.o.load()};
h.getVideoUrl=function(){return this.o.src};
h.setVolume=function(a){this.o.volume=a};
h.nd=function(){return this.o.volume};
h.play=function(){this.S=!1;Sd(this.o.play,0,this.o);this.J||(this.J=Sd(this.qv,this.U,this))};
h.pause=function(){this.S=!0;this.o.pause()};
h.tf=function(){return this.o.paused?$K()||Fl?this.o.currentTime<this.o.duration:!0:!1};
h.sf=function(){return this.o.muted};
h.qk=function(){XK()&&this.o.webkitDisplayingFullscreen&&this.o.webkitExitFullscreen()};
h.Nd=function(){return RP(this.o)};
h.ug=function(a){var b;a:{for(b=this.V.Ka();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
h.uf=function(a){this.o.currentTime=a};
h.getCurrentTime=function(){return this.o.currentTime};
h.Co=function(){return tQ(this)};
h.Md=function(){return(0,window.isNaN)(this.o.duration)?-1:this.o.duration};
h.Ie=function(){return this.o.ended};
h.Uc=function(){return new re(this.o.offsetWidth,this.o.offsetHeight)};
h.Do=function(){return this.o.seeking};
h.T=function(){this.vf();this.o=null;oQ.N.T.call(this)};
h.getError=function(){return this.o.error};
h.zi=function(){this.vf();this.A=new Cm(this);this.A.R(this.o,M$,this.iA);this.A.R(this.o,"canplay",this.Ey);this.A.R(this.o,"ended",this.ax);this.A.R(this.o,"webkitbeginfullscreen",this.Pk);this.A.R(this.o,"webkitendfullscreen",this.Go);this.A.R(this.o,"pause",this.cx);this.A.R(this.o,"playing",this.sA);this.A.R(this.o,"timeupdate",this.fx);this.A.R(this.o,"volumechange",this.gx);this.A.R(this.o,"error",this.Fo);this.A.R(this.o,xG||$K()&&(!$K()||!aL(sQ,8))?"loadeddata":"canplay",this.Mz);this.F=
new dQ;this.A.R(this.F,"click",this.$w);eQ(this.F,this.o);this.G=new Qd(1E3);this.A.R(this.G,"tick",this.bx);this.G.start()};
h.vf=function(){null!=this.F&&(gQ(this.F),this.F=null);null!=this.G&&this.G.dispose();null!=this.A&&(this.A.dispose(),this.A=null);pQ(this)};
h.iA=function(a){this.$(a.type)};
h.Ey=function(){var a;if(a=Ft)a=oc,a=!(a&&(Ma(a,"SMART-TV")||Ma(a,"SmartTV")));a&&!this.O&&(this.uf(.001),this.O=!0)};
h.Mz=function(){this.L||(this.L=!0,this.$("loaded"))};
h.sA=function(){this.$("play");$K()||xG||rQ(this)};
h.fx=function(){if(!this.C&&($K()||xG)){if(0>=this.getCurrentTime())return;if(xG&&this.Ie()&&1==this.Md()){this.Fo();return}rQ(this)}if($K()||eL()){if(1.5<this.getCurrentTime()-this.B){this.H=!0;this.uf(this.B);return}this.H=!1;this.getCurrentTime()>this.B&&(this.B=this.getCurrentTime())}var a=this.V;a.o[a.A]=this.o.currentTime;a.A=(a.A+1)%a.B;this.$("timeUpdate")};
h.gx=function(){this.$("volumeChange")};
h.cx=function(){var a;this.C&&$K()&&!this.S&&2>tQ(this)-this.o.currentTime?(this.D=new Qd(250),this.A.R(this.D,"tick",this.Ay),this.D.start(),a=!0):a=!1;a||this.$("pause")};
h.ax=function(){var a=wK(sK(),136961002),b=!0;if($K()||eL()||a&&hL)b=this.B>=this.o.duration-1.5;!this.H&&b&&this.$("end")};
h.Pk=function(){this.$("beginFullscreen")};
h.Go=function(){this.$("endFullscreen")};
h.Fo=function(){qQ(this);this.$("error")};
h.$w=function(){this.$("click")};
h.bx=function(){var a=this.Uc(),b=this.Nd();if(a.width!=this.M.width||a.height!=this.M.height)!this.K&&b?this.Pk():this.K&&!b&&this.Go(),this.M=a,this.K=b};
h.qv=function(){if(!this.C){try{kL(jL.getInstance(),16)}catch(a){}pQ(this);this.$("mediaLoadTimeout")}};
h.Ay=function(){if(this.Ie()||!this.tf())Mb(this.D);else{var a=this.o.duration-this.o.currentTime,b=tQ(this)-this.o.currentTime;0<b&&(2<=b||2>a)&&(Mb(this.D),this.play())}};B(uQ,dd);vQ.prototype.start=function(a){return this.o[a].startTime};
vQ.prototype.end=function(a){return this.o[a].endTime};
h=uQ.prototype;h.readyState=0;h.currentTime=0;h.duration=window.NaN;h.xf=!0;h.Lo=!1;h.autoplay=!1;h.controls=!1;h.volume=1;h.muted=!1;h.src="";h.mx=1;h.playbackRate=0;h.ud=null;h.Di=0;h.IB=4;h.og=null;h.cj=null;
h.play=function(){this.Lo&&(this.currentTime=0,this.$("timeupdate"));this.xf&&(this.xf=!1,this.$("play"),this.readyState=this.IB,2>=this.readyState?this.$("waiting"):this.$("playing"));if(null===this.ud||this.ud.isDisposed())this.ud=new Qd(10),this.ud.R("tick",A(this.Tq,this));this.Di=I();this.ud.start();this.autoplay=!1};
h.pause=function(){this.autoplay=!1;this.xf||(this.ud.stop(),this.xf=!0,this.$("timeupdate"),this.$("pause"))};
h.load=function(){this.readyState=0;this.xf=!0;this.$("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.A;a.o.push(new eaa(this.duration));a.length=a.o.length;this.$("loadedmetadata");0<this.currentTime&&this.$("timeupdate");this.$("loadeddata");this.$("canplay");this.$("canplaythrough");this.$("progress");this.playbackRate=this.mx};
h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.$("seeking");this.currentTime=c;this.$("seeked");this.Tq();break;case "duration":this.duration=Number(b);this.$("durationchange");break;case "volume":this.volume=Number(b),this.$("volumechange")}};
h.Tq=function(){var a=I()-this.Di,b=this.currentTime+a/1E3;this.Di+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.$("timeupdate");this.currentTime==this.duration&&(this.Lo=this.xf=!0,this.ud.stop(),this.$("ended"))};
h.T=function(){this.ud&&this.ud.dispose();this.o.dispose()};
h.oB=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.cj&&(this.cj.innerText=b);c&&this.og&&(this.og.style.backgroundColor=c)};vc&&yc(8);var zQ={},aR={},bR={},AQ={};wQ.prototype.fd=null;wQ.prototype.getContent=function(){return this.content};
wQ.prototype.toString=function(){return this.content};
B(xQ,wQ);var gaa={};B(DQ,wQ);DQ.prototype.Pc=zQ;B(FQ,wQ);FQ.prototype.Pc={};FQ.prototype.fd=1;B(GQ,wQ);GQ.prototype.Pc=aR;GQ.prototype.fd=1;B(HQ,wQ);HQ.prototype.Pc=bR;HQ.prototype.fd=1;B(IQ,wQ);IQ.prototype.Pc={};IQ.prototype.fd=1;B(JQ,wQ);JQ.prototype.Pc={};JQ.prototype.fd=1;B(KQ,xQ);KQ.prototype.Pc=AQ;var EQ=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.fd=d);return e}}(DQ);
LQ(FQ);LQ(GQ);LQ(HQ);var vaa=LQ(IQ);LQ(JQ);var NQ={},OQ={},kR=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.fd=d);return e}}(DQ),WQ=/['()]/g,dR={},waa={"\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;"},xaa={"\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"},laa=/[\x00\x22\x27\x3c\x3e]/g,naa=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,maa=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,YQ=/[\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,
paa=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Pda=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,jaa=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,kaa=/</g;MQ("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">'+Y(a.Df)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Y(a.Df)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
QQ(cR(a.Nc))+">"+Y(a.Nc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+QQ(cR(a.se))+">"+Y(a.se)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
MQ("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">'+Y(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Y(a.wJ)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.yJ)+'</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"'+QQ(cR(a.Nc))+">"+Y(a.Nc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
QQ(cR(a.se))+">"+Y(a.se)+'</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>'});
MQ("b","",function(a){a=a||{};var b="";a=ra("You can skip this ad in {$xSeconds}",{xSeconds:Y(a.Wf)});return b+a});
MQ("b","redesign2014q4",function(a){a=a||{};var b="";a=ra("You can skip to video in {$xSeconds}",{xSeconds:Y(a.Wf)});return b+a});B(lR,G);lR.prototype.initialize=function(){WK()&&this.A.load()};
lR.prototype.T=function(){qf(this.o);lR.N.T.call(this)};
lR.prototype.show=function(){var a=this.o;null!=a&&(a.style.display="block")};
lR.prototype.fa=function(){var a=this.o;null!=a&&(a.style.display="none")};B(nR,nQ);var Bga=["video/mp4","video/webm"],Cga={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},pR=[],oR=!1;h=nR.prototype;h.Aq=function(a,b,c){var d=eb(a,function(a){return!ca(kQ(a.A))});
if(null!==d)return d;a=$d(a,function(a){a=D(a.o);return this.o?this.A.canPlayType(a):E(Bga,a)},this);
kb(c)||(d=ZP(a,b,c));return null!=d?d:ZP(a,b,[])};
h.Sl=function(a){this.B=a};
h.load=function(a,b){null!==a&&(this.U=a,this.o?qR(this,a,b):(this.L=a,this.Y=b))};
h.getVideoUrl=function(){return this.U};
h.setVolume=function(a){this.da?this.$("volumeChange"):this.o?(a=ke(100*a,0,100),this.A.setVolume(a),this.G=-1,this.$("volumeChange")):this.G=a};
h.nd=function(){return this.o?this.A.getVolume()/100:this.G};
h.play=function(){if(!C(D(this.U))){if(!this.C){sR(this);var a=15E3;null!=this.B&&0<this.B.o&&(a=this.B.o);this.va=Sd(this.jA,a,this)}this.o?(this.Z=!1,!this.C&&this.B&&this.B.A?this.A.loadVideoByPlayerVars(this.la):this.A.playVideo()):this.Z=!0}};
h.pause=function(){this.o&&this.C&&this.A.pauseVideo()};
h.tf=function(){return this.o?2==this.A.getPlayerState(this.D):!1};
h.sf=function(){return this.o?this.A.isMuted():0==this.nd()};
h.qk=function(){};
h.Nd=function(){var a=kK.o?kK.B:window.document.getElementById(this.S);return a?RP(a):!1};
h.ug=function(a){return this.o?this.A.getCurrentTime(this.D)>=a:!1};
h.uf=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.Co=function(){return this.o&&this.C?this.A.getVideoLoadedFraction(this.D)*this.A.getDuration(this.D):0};
h.Md=function(){return this.o&&this.C?this.A.getDuration(this.D):-1};
h.getError=function(){return null};
h.zk=function(){return Vb(WY)};
h.Ie=function(){return this.o?0==this.A.getPlayerState(this.D):!1};
h.Uc=function(){var a=kK.o?kK.B:window.document.getElementById(this.S);return a?new re(a.offsetWidth,a.offsetHeight):new re(0,0)};
h.Do=function(){return!1};
h.Bo=function(){return 1==this.qa};
h.lx=function(){var a=this.Uc(),b=this.Nd();if(a.width!=this.ga.width||a.height!=this.ga.height)!this.ea&&b?this.$("beginFullscreen"):this.ea&&!b&&this.$("endFullscreen"),this.ga=a,this.ea=b};
h.zi=function(){this.aa=A(this.Jp,this);this.M=A(this.Qk,this);this.na=A(this.Kp,this);this.ha=A(this.kq,this);this.da&&(this.A.addEventListener("onAdStateChange",this.M),this.A.addEventListener("onReady",this.aa),this.A.addEventListener("onStateChange",this.M),this.A.addEventListener("onVolumeChange",this.na),this.A.addEventListener("showCompanionAdLoaded",this.ha));this.V=new Qd(1E3);this.O.R(this.V,"tick",this.lx);this.V.start()};
h.vf=function(){this.da&&(this.A.removeEventListener("onAdStateChange",this.M),this.A.removeEventListener("onReady",this.aa),this.A.removeEventListener("onStateChange",this.M),this.A.removeEventListener("onVolumeChange",this.na),this.A.removeEventListener("showCompanionAdLoaded",this.ha));null!=this.V&&this.V.dispose()};
h.Bv=function(){var a=this.S,b={playerVars:ec(Cga),events:{cardstatechange:A(this.kx,this),onError:A(this.pA,this),onReady:A(this.Jp,this),onAdStateChange:A(this.Qk,this),onStateChange:A(this.Qk,this),onVolumeChange:A(this.Kp,this),showCompanionAdLoaded:A(this.kq,this)}},c=t("YT");this.A=null!=c&&null!=c.Player?new c.Player(a,b):null};
h.pA=function(){this.$("error")};
h.Jp=function(){this.o=!0;this.H&&this.Ok(this.H.videoId,this.H.ue,this.H.Sf,this.H.Yh);-1!=this.G&&(this.setVolume(this.G),this.G=-1);null!=this.L&&(qR(this,this.L,this.Y),this.Y=this.L=null);-1!=this.K&&(this.uf(this.K),this.K=-1);this.Z&&this.play()};
h.kx=function(a){this.qa=a.data;this.$("cardsStateChange")};
h.Qk=function(a){switch(a.data){case 0:this.C?this.$("end"):this.$("error");break;case 1:this.C||(sR(this),this.C=!0,this.J=0,this.$("start"));this.$("play");rR(this);this.F=new Qd(100);this.O.R(this.F,"tick",this.wp);this.F.start();break;case 2:this.$("pause"),rR(this)}};
h.Kp=function(){this.$("volumeChange")};
h.kq=function(){this.$("showCompanionAdLoaded")};
h.wp=function(){if(wG||eL()){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.$("timeUpdate")};
h.jA=function(){this.$("mediaLoadTimeout")};
h.Ok=function(a,b,c,d){if(b||c)this.o?this.A.addInfoCardXml(a,b,c,d):this.H={videoId:a,ue:b,Sf:c,Yh:d}};
h.gf=function(){if(!this.o)return null;var a=this.A.getVideoData();return a?a.cpn:null};
h.Ol=function(a){this.o&&kQ(this.getVideoUrl())&&this.A.sendVideoStatsEngageEvent(a)};
h.Eo=function(a){this.o&&this.A.setCardsVisible(a)};
h.T=function(){rR(this);sR(this);this.vf();this.o=!1;this.O.dispose();this.K=-1;this.Y=null;this.Z=!1;this.L=null;this.G=-1;this.aa=this.A=this.B=null;this.C=!1;this.U="";nR.N.T.call(this)};
q("onYouTubeIframeAPIReady",function(){oR=!0;F(pR,function(a){a()});
lb(pR)},window);B(tR,dd);tR.prototype.A=!1;tR.prototype.connect=function(){for(this.A=!0;!kb(this.B);){var a=this.B.shift();this.sendMessage(a.name,a.type,a.data)}};
tR.prototype.send=function(a,b,c){this.A?this.sendMessage(a,b,c):this.B.push({name:a,type:b,data:c})};
B(uR,jc);uR.prototype.getOrigin=function(){return this.C};
uR.prototype.toString=function(){return""};B(vR,tR);vR.prototype.sendMessage=function(a,b,c){null!=this.Ic&&null!=this.Ic.postMessage&&this.Ic.postMessage(Iaa(this,a,b,c),"*");null!=this.Ic&&null==this.Ic.postMessage&&kL(jL.getInstance(),11)};
vR.prototype.T=function(){this.D.dispose();vR.N.T.call(this)};
vR.prototype.receive=function(a){a=a.o;var b=wR(a.data);if(xR(this,b)){if(null==this.Ic)this.Ic=a.source,this.A||this.connect();else if(this.Ic!=a.source)return;xR(this,b)&&this.$(new uR(b.name,b.type,b.data||{},b.sid,a.origin))}};B(yR,dd);yR.prototype.send=function(a){var b=a.B;this.o.hasOwnProperty(b)&&this.o[b].send(a.type,a.kc,a.od)};
yR.prototype.T=function(){this.A.dispose();for(var a in this.o)Mb(this.o[a]);yR.N.T.call(this)};
yR.prototype.D=function(a){a=a.o;var b=wR(a.data);if(null!=b){var c=b.channel;if(this.B&&!this.o.hasOwnProperty(c)){var d=b.sid;zR(this,c,d,a.source);this.$(new AR(b.name,b.type,b.data||{},d,a.origin,c))}}};
B(AR,uR);B(BR,Cm);
BR.prototype.F=function(a){var b=a.getOrigin(),c=Ig("//imasdk.googleapis.com"),b=Ig(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.o)zR(this.o,a.B,a.to,ff().parent),null!=this.o&&this.o.send(a);else if(c=a.od,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.kc,"isGptPresent"==c?d=CR():"isConsolePresent"==c&&(d=null!=DR());else if(CR())if("pubads"==b||"companionAds"==b){d=a.kc;var e,f=ff().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.kc,e=DR(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(k){}}else if(null===b){d=a.kc;e=ff();if(E(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],d)&&(b=e[d],"googleSetCompanionAdContents"==d&&kL(jL.getInstance(),40,{type:"gptProxy"},!0),null!=b))try{f=b.apply(e,c)}catch(k){}d=f}n(d)&&(a.od.returnValue=d,this.B.send(a))}};
BR.prototype.D=function(a){this.B.send(a)};ER.prototype.isPharma=function(){return this.J};var FR={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Qa(" ",c-a.length):Qa(" ",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>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=f+d);if((0,window.isNaN)(c)||d.length>=c)return d;d=(0,window.isNaN)(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+Qa(" ",a):f+Qa(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,l){return FR.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};
FR.i=FR.d;FR.u=FR.d;B(GR,dd);h=GR.prototype;h.T=function(){this.C.dispose();null!==this.B&&(this.B.dispose(),this.B=null);ug(this.F.Tb(!1),function(a){a.dispose()});
this.F.clear();qf(this.A);GR.N.T.call(this)};
h.pw=function(a){var b=a.od,c=$f(this.A),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.kc,!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(!Ft||$K()||0==window.document.webkitIsFullScreen)this.A.blur(),window.focus();this.A.dispatchEvent(d)};
h.Ew=function(a){var b=a.od,c=$f(this.A),d=window.document.createEvent("TouchEvent");d.initTouchEvent(a.kc,!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,HR(this,b.touches),HR(this,b.targetTouches),HR(this,b.changedTouches),b.scale,b.rotation);this.A.dispatchEvent(d)};
h.Bw=function(a){if(null!=this.o){var b=a.od;switch(a.kc){case "startTracking":this.o.zi();break;case "stopTracking":this.o.vf();break;case "exitFullscreen":this.o.qk();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.uf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.o.Sl(new ER(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma))}}};
h.nB=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.Ie();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.Md();break;case "volumeChange":a="volumeChange";b.volume=this.o.nd();break;default:return}this.D.send("videoDisplay",a,b)};
h.lw=function(a){switch(a.kc){case "showVideo":null!=this.B?gQ(this.B):(this.B=new dQ,this.C.R(this.B,"click",this.kB));eQ(this.B,JR(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.fa()}};
h.kB=function(){this.D.send("displayContainer","videoClick")};
h.Yv=function(){ug(this.F.Tb(!1),function(a){a.Ic=zf(this.A);a.connect()},this);
this.H=!0};IR.prototype.initialize=function(){null!=this.o&&this.o.initialize()};
IR.prototype.destroy=function(){Mb(this.o);Mb(this.G);Mb(this.F);qf(this.A)};
IR.prototype.fa=function(){null!=this.o&&this.o.fa()};
IR.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 LR="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");B(MR,dd);B(NR,MR);NR.prototype.start=function(){this.ya.start()};
NR.prototype.stop=function(){this.ya.stop()};
NR.prototype.T=function(){NR.N.T.call(this);this.A.dispose();this.ya.dispose()};
NR.prototype.B=function(){if("currentTime"in this.o&&!(0,window.isNaN)(this.o.currentTime)){var a=this.currentTime;this.currentTime=this.o.currentTime;a!=this.currentTime&&this.$(new jc("currentTimeUpdate"))}else this.$(new jc("contentWrapperError")),this.stop()};OR.prototype.reset=function(){this.o=0;this.A=null};PR.prototype.reset=function(){this.A=this.o=null};var dS=new QR;QR.prototype.clear=function(){this.o=RR();this.B=this.H=this.C=null;this.F=RR();this.A=null;this.V=this.K=this.L="";this.G=this.O=this.D=null};B(TR,dd);TR.prototype.A=null;TR.prototype.T=function(){delete this.o;VR(this);Zc(this.A);TR.N.T.call(this)};
TR.prototype.D=function(){UR(this)&&(VR(this),Zc(this.A),this.A=null,this.B=!0,this.$("ifload"))};B(WR,dd);B(XR,jc);XR.prototype.getError=function(){return this.C};YR.prototype.getContent=function(){return this.D};
YR.prototype.clone=function(){var a=new YR(this.G,this.F),b=this.B,c=this.A,d=this.o,e=this.C;a.D=this.D;a.B=b;a.A=c;a.o=d;a.C=e||[];return a};B($R,WR);aa($R);h=$R.prototype;h.T=function(){this.A&&this.A.dispose();$R.N.T.call(this)};
h.initialize=function(){if(!this.C){var a;var b=If(new Ve);try{t("googletag"),aS([b,b.top]),a=!0}catch(c){a=!1}a?jS(this):(this.C=!0,this.B="not_available")}};
h.setVideoContent=function(a,b){var c=hS(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};
h.Mp=function(){0<this.F&&I()>=this.F?(this.C=!0,iS(this),kS(this)):jS(this)};
h.cC=function(a){var b=O(a.adSizes,function(a){return new re(a.adWidth,a.adHeight)});
return new YR(a.slotId,b)};
h.Zu=function(a){var b={};b.slotId=a.G;b.adContent=a.getContent();b.adWidth=a.B;b.adHeight=a.A;b.friendlyIframeRendering=a.o;wK(sK(),9419278)&&(b.onAdContentSet=A(this.Xy,this,a));return b};
h.Xy=function(a,b){var c;if(a.o)c=b.querySelector("iframe");else{var d=uf(b);d&&(c=uf(d))}if(c&&"IFRAME"==c.tagName)if(d=new TR(c,!0),d.B)lS(this,a,c);else{var e=c;Xc(d,"ifload",function(){lS(this,a,e)},!1,this)}};
h.Wy=function(a){this.$(new XR("companion_click",null,a))};
h.sendImpressionUrls=function(a){NK(this.impressionUrls,a)};B(mS,jc);mS.prototype.getError=function(){return this.B};B(nS,jc);var Oaa={IMAGE:"Image",Qt:"Flash",ALL:"All"},Naa={HTML:"Html",IFRAME:"IFrame",STATIC:"Static",ALL:"All"},Paa={eH:"IgnoreSize",bI:"SelectExactMatch",cI:"SelectNearMatch"},Qaa={JG:"DisallowResize",YH:"ResizeSmaller"};B(BS,N);BS.prototype.toString=function(){return DS(this,BS.N.toString.call(this))};
BS.prototype.fo=function(){return""};
BS.prototype.Ce=function(){return""};
BS.prototype.clone=function(){return new BS(this.toString())};var $aa=["ai","sigh"];YS.prototype.getType=function(){return this.B};
B(ZS,YS);XS.prototype.isEmpty=function(){return this.o.isEmpty()};B(iT,gT);jT.prototype.parse=function(a){a=uf(a);var b=NS(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw PK(uga);a=a.getAttribute("offset");a=fT(a);if("skippable"==c&&null==a)throw PK(tga);return new iT(c,a)};B(kT,gT);B(lT,gT);B(mT,gT);h=nT.prototype;h.Lf=function(a){this.Da=a};
h.Vk=function(){return this.Da};
h.Xk=function(){return null};
h.Wk=function(){return null};
h.getAd=function(){return this.S};
h.hi=function(){for(var a=[this],b=this.S.o;b;){var c=qT(this,b)||qT(this,b,!0);null!=c&&a.push(c);b=b.o}return a};B(rT,nT);h=rT.prototype;h.getContent=function(){return Bf(this.Id())};
h.Kg=function(){return!1};
h.Yk=function(){return this.Kg()?Bf(this.Id(!0)):""};
h.getContentType=function(){return this.ga};
h.Ub=function(){return this.na};
h.getWidth=function(){return this.Ub().width};
h.getHeight=function(){return this.Ub().height};
h.Xk=function(){return"VPAID"==this.H?this.C:null};
h.Wk=function(){return"VPAID"==this.H&&"Flash"==this.V?this.C:null};
h.Vc=function(){return this.O};tT.prototype.getWidth=function(){return this.F};
tT.prototype.getHeight=function(){return this.D};B(uT,nT);h=uT.prototype;h.Vk=function(){return this.Da};
h.Vc=function(){return this.B};
h.getMediaUrl=function(a){var b="";Ih(this.K,function(c){var d=c.A;return!C(D(a))&&a!=c.o||null==d||C(D(d))?!1:(b=d,!0)},this);
return b};
h.Xk=function(){return wT(this,"javascript")};
h.Wk=function(){return wT(this,"x-shockwave-flash")};B(xT,G);xT.prototype.G=function(){this.D=I()};
xT.prototype.J=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.A&1&&c.push("nm="+this.F);this.A&2&&c.push("nb="+this.C.get(b));if(this.A&8){var d=$f(this.B);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.A&16&&null!=this.D&&c.push("clkt="+(I()-this.D));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
xT.prototype.H=function(){this.F++};
xT.prototype.T=function(){xT.N.T.call(this);this.o.dispose()};var fba=vc?'javascript:""':"about:blank";B(yT,rT);yT.prototype.F=function(a){null==this.B||C(D(this.Vc()))||(this.B.R(a,"click",this.M),this.aa.push(a))};
yT.prototype.Id=function(a){a?(null==this.Z&&(this.Z=this.we(a),nf(this.Z,DT(this))),a=this.Z):(null==this.A&&(this.A=this.we(),nf(this.A,DT(this))),a=this.A);null!=this.B&&this.B.R(a,"creativeview",this.Y);return a};
yT.prototype.Zn=function(){return 2};
yT.prototype.hi=function(){var a=[this],b;for(b=this.getAd().o;b;){var c=this.D?qT(this,b)||qT(this,b,!0):ET(this,b)||ET(this,b,!0);null!=c&&a.push(c);b=b.o}return a};h=FT.prototype;h.getContentType=function(){var a=this.A,b="";if(null===a)return b;if(a instanceof uT)a=a.ha,null===a||(b=D(a.o));else if(a instanceof yT)switch(a.da){case "IFrame":case "Html":case "Static":b=D(a.V)}return b};
h.getExtension=function(a){return this.J.get(a)};
h.Ex=function(){return this.S};
h.getWidth=function(){return JT(this)?0:this.U.width};
h.getHeight=function(){return JT(this)?0:this.U.height};
h.toString=function(){return"Ad: "+this.ea};B(DU,dd);DU.prototype.Bn=function(){return!0};
DU.prototype.Be=function(){return null};B(FU,DU);h=FU.prototype;h.T=function(){this.destroy();FU.N.T.call(this)};
h.destroy=function(){null!=this.D&&this.D.dispose();this.C=null;F(this.B,function(a){ZR(a)},this);
this.A=null};
h.Bn=function(){return this.F};
h.IA=function(){null!=this.G&&(this.G.stop(),this.G.dispose(),this.G=null);if(null!=this.o){var a=bS(this.o);null!=a&&(this.B=a)}this.H=!0;null!=this.C&&HU(this);this.$(new jc("initialized"))};
h.Yy=function(a){KU(this,a.getError())};
h.Ty=function(a){if(null!=a.B){var b=a.B;"companion_slot_init"==a.type?jd(function(){null!=this.A&&this.A.$(new nS("companion_impression"))},this):"companion_click"==a.type&&(tba(b.C),null!=this.A&&this.A.$(new nS("companion_click")))}};
h.Be=function(){return this.o};h=LU.prototype;h.tk=function(){return JR(this.o)};
h.ji=function(){return this.o.B};
h.De=function(){return this.o.B};
h.ti=function(){var a=this.o.F;return null!=a?a:new nR};
h.Ig=function(){var a=this.o;null!=a.o&&a.o.show()};
h.Oe=function(){};
h.lk=function(){return null!=this.o.C};
h.Lk=function(){return this.o.D};
h.Mk=function(){return!1};
h.wi=function(){return this.o.H};
h.setSize=function(a,b){this.o.setSize(a,b)};
h.fa=function(){};B(MU,jc);B(OU,jc);aa(PU);var Aba=/iu\=\/(\d+)\//;PU.prototype.start=function(a){this.A&&this.B.set(a,I())};
PU.prototype.end=function(a,b){if(this.A&&xg(this.B,a)){var c=I()-this.B.get(a),d=QU(this,a,c,b);KK(d);this.B.remove(a);this.C+=c}};
PU.prototype.sendMessage=function(a,b,c){this.A&&(a=QU(this,a,b,c),KK(a))};RU.prototype.start=function(a,b){this.D=a;this.G=b;Cba(this);this.F.H?this.J():Im(this.A,this.F,"initialized",this.J,this)};
RU.prototype.J=function(){var a=this.F.Be(),b;b=a.C?"retrieved"!=a.B?void 0:a.G:void 0;a=Laa(a);null!=b&&(this.C.F=b);null!=a&&(this.C.G=a);Bba(this)};B(TU,dd);var VU=null;TU.prototype.destroy=function(){this.F.za(this.A,"activityMonitor",this.H);this.A=null};
TU.prototype.H=function(a){var b=a.od,c=b.engagementString;switch(a.kc){case "appStateChanged":MP(b.appState,b.nativeTime);break;case "externalActivityEvent":YU(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":WU(b.queryId,b.viewabilityString);break;case "pageSignals":this.G=b.pageSignals;break;case "viewableImpression":XU(b.queryId,b.viewabilityString);break;case "viewability":a=b.eventId;window.clearTimeout(a);var d=this.o.get(a);d&&(this.o.remove(a),d(b.viewabilityData,
c));break;case "engagement":if(a=b.eventId,window.clearTimeout(a),d=this.o.get(a))this.o.remove(a),d(c)}};
q("ima.bridge.getNativeViewability",function(a,b){UU();b({})},void 0);
q("ima.bridge.triggerViewEvent",XU,void 0);q("ima.bridge.triggerMeasurableEvent",WU,void 0);q("ima.bridge.triggerExternalActivityEvent",YU,void 0);B(aV,Gba);B(dV,ZU);dV.prototype.B=function(){return new $U(this.o,null,Iba(this))};B(iV,gT);iV.prototype.isPharma=function(){return this.G};jV.prototype.parse=function(a){var b;OS(a,"config",function(a){null!=b||(b=Lba(this,a))},this);
return b};kV.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,l,m=!1,p=!1;F(sf(a),function(a){switch(a.nodeName){case "AttributionText":c=NS(a);break;case "AttributionUrl":d=NS(a);break;case "ConversionUrl":f=NS(a);break;case "CustomTracking":null!=sf(a)&&(e=dT(a));break;case "is_pharma":a=MS(a,"bool");p=RS(D(a));break;case "CheckedEvents":a=sf(a);b=O(a,function(a){return MS(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":NS(a);break;case "VisibleUrl":k=NS(a);break;case "UI":l=(new jV).parse(a);break;case "ShowYouTubeAnnotations":var v=NS(a);m=RS(D(v),!1);case "QueryId":NS(a)}},this);
null!=l||(l=new hV);return new iV(c,d,f,0,k,l,m,0,p,e,b)};lV.prototype.parse=function(a){if(null==a)return null;var b;F(sf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=sf(a)&&(b=dT(a))}});
a=null;null!=b&&0<aT(b,"skip").length&&(a="Generic");return new kT(a,b)};mV.prototype.parse=function(a){if(null==a)return null;var b,c;F(sf(a),function(a){switch(a.nodeName){case "SkippableAdType":b=NS(a);break;case "CustomTracking":null!=sf(a)&&(c=dT(a))}});
return new kT(b,c)};nV.prototype.parse=function(a){if(null==a)return null;var b;F(sf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=sf(a)&&(b=dT(a))}},this);
return new gT(b)};var P$,Q$,R$,S$,JV,MV,T$,U$,V$,W$,X$,Y$,NV,Z$;rV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
sV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
sV.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
var Dga=new tV,Ega=new zV,kZ=new xV,Fga=new yV,Gga=new AV,Hga=new BV,GV=new uV,Iga=new DV;tV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
uV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
vV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
vV.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
vV.prototype.getId=function(){var a=this.o.id;return null!=a?a:""};
var Oba=new CV;wV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
wV.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
xV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
var lZ=new CV;yV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
var Jga=new CV,Kga=new CV,Lga=new CV;zV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
AV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
BV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
CV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
DV.prototype.equals=function(a){return qV(this.o,a?a.o:null)};
var Mga=new CV;var RV;
RV={action:{type:{TYPE_LETTERMAN:14,TYPE_PLAYLIST:7,TYPE_COLLAPSE:17,TYPE_VIDEO:3,TYPE_NONE:0,TYPE_APPLICATION_STORE:4,TYPE_SUBSCRIPTION:6,TYPE_INLINE_APPLICATION_STORE:19,TYPE_FUNDRAISING:10,TYPE_MERCH:9,TYPE_RESULTS:11,TYPE_ATTRIBUTION:5,TYPE_RESPONSE:12,TYPE_HELPOUTS:15,TYPE_IRDB:8,TYPE_CHANNEL:2,TYPE_EXTERNAL:16,TYPE_VOTE:18,TYPE_INTERNAL:13,TYPE_HEADLINE:1}},ad_card:{attribution_position:{POSITION_BOTTOM_RIGHT:3,POSITION_TOP_LEFT:1,POSITION_TOP_RIGHT:2,POSITION_BOTTOM_LEFT:0}},event:{type:{TYPE_IMPRESSION_GALLERY:7,TYPE_NONE:0,
TYPE_HEADLINE_CLICK:5,TYPE_COLLAPSE_ENDCAP:10,TYPE_COLLAPSE:3,TYPE_DISMISS_ENDCAP:11,TYPE_EXPAND:2,TYPE_ACTION_ENDCAP:9,TYPE_IMPRESSION_ENDCAP:8,TYPE_ACTION:6,TYPE_IMPRESSION:1,TYPE_DISMISS:4}},card:{type:{TYPE_APP:2,TYPE_NONE:0,TYPE_VOTE:3,TYPE_PRODUCT:1,TYPE_WEBSITE:4,TYPE_LOCATION:5},prominence:{PROMINENCE_FEATURE:2,PROMINENCE_HIGHLIGHT:1,PROMINENCE_NONE:0}}};B(OV,gT);PV.prototype.parse=function(a){var b=vz(a);if(C(D(b)))return null;if(this.o){var c=QV;if(!P$){var d={};P$={Jb:d};if(!Q$){var e={};Q$={Jb:e};e.type={type:"e",label:1,oa:0};if(!R$){var f={};R$={Jb:f};f.major_version={type:"i",label:1,oa:0};f.minor_version={type:"i",label:1,oa:0}}e.version={type:"m",label:1,oa:Dga,sa:R$};e.priority={type:"i",label:1,oa:0};e.start_time_ms={type:"j",label:1,oa:"0"};e.end_time_ms={type:"j",label:1,oa:""};e.action={type:"m",label:3,sa:IV()};e.event={type:"m",label:3,sa:LV()};
W$||(f={},W$={Jb:f},f.headline={type:"s",label:1,oa:""},f.description={type:"s",label:1,oa:""},f.attribution_icon_url={type:"s",label:1,oa:""},f.skippable_seconds={type:"i",label:1,oa:0},f.attribution_position={type:"e",label:1,oa:0});e.ad_card={type:"m",label:1,oa:Ega,sa:W$};if(!T$){f={};T$={Jb:f};f.headline={type:"s",label:1,oa:""};f.image={type:"m",label:1,oa:lZ,sa:KV()};f.description={type:"s",label:1,oa:""};f.rating={type:"f",label:1,oa:0};f.review_text={type:"s",label:1,oa:""};if(!U$){var k=
{};U$={Jb:k};k.merchant={type:"s",label:1,oa:""};k.price={type:"s",label:1,oa:""};k.shipping={type:"s",label:1,oa:""};k.shipping_tax={type:"s",label:1,oa:""};k.condition={type:"s",label:1,oa:""};k.unit_price={type:"s",label:1,oa:""};k.energy_label={type:"s",label:1,oa:""};k.description={type:"s",label:1,oa:""};k.rating={type:"f",label:1,oa:0};k.review_text={type:"s",label:1,oa:""};k.action={type:"m",label:3,sa:IV()};k.event={type:"m",label:3,sa:LV()}}f.offer={type:"m",label:3,sa:U$}}e.product_card=
{type:"m",label:1,oa:kZ,sa:T$};V$||(f={},V$={Jb:f},f.app_id={type:"s",label:1,oa:""},f.app_name={type:"s",label:1,oa:""},f.icon={type:"m",label:1,oa:Jga,sa:KV()},f.price={type:"s",label:1,oa:""},f.rating_image={type:"s",label:1,oa:""},f.review_count={type:"i",label:1,oa:0},f.app_store_logo={type:"m",label:1,oa:Kga,sa:KV()},f.button_text={type:"s",label:1,oa:""},f.screenshots={type:"m",label:3,sa:KV()},f.rating={type:"f",label:1,oa:0},f.back_button_text={type:"s",label:1,oa:""},f.screenshots_text=
{type:"s",label:1,oa:""},f.cover_photo={type:"m",label:1,oa:Lga,sa:KV()});e.app_card={type:"m",label:1,oa:Fga,sa:V$};e.prominence={type:"e",label:1,oa:0};X$||(f={},X$={Jb:f},f.call_to_action_text={type:"s",label:1,oa:""});e.social_card={type:"m",label:1,oa:Gga,sa:X$};Y$||(f={},Y$={Jb:f},f.vote_line_1={type:"s",label:1,oa:""},f.vote_line_2={type:"s",label:1,oa:""},f.confirm_line_1={type:"s",label:1,oa:""},f.confirm_line_2={type:"s",label:1,oa:""});e.vote_card={type:"m",label:1,oa:Hga,sa:Y$};e.sponsored=
{type:"b",label:1,oa:!1};e.teaser_text={type:"s",label:1,oa:""};S$||(f={},S$={Jb:f},f.hide_in_drawer={type:"b",label:1,oa:!1},f.show_in_endcap={type:"b",label:1,oa:!1},f.show_in_companion_mobile={type:"b",label:1,oa:!1},f.show_in_cta={type:"b",label:1,oa:!1});e.placement={type:"m",label:1,oa:GV,sa:S$};Z$||(f={},Z$={Jb:f},f.latitude_e6={type:"i",label:1,oa:0},f.longitude_e6={type:"i",label:1,oa:0},f.address={type:"s",label:1,oa:""},f.image={type:"m",label:1,oa:Mga,sa:KV()},f.headline={type:"s",label:1,
oa:""});e.location_card={type:"m",label:1,oa:Iga,sa:Z$}}d.card={type:"m",label:3,sa:Q$};d.event={type:"m",label:3,sa:LV()}}a=c(this,a,P$);a=new rV(a);c=new XS;for(d=0;d<pV(a.o,"card");d++)if(e=EV(a,d),HV(FV(e)))for(f=0;f<pV(e.o,"event");f++){var l,k=f;l=new wV(oV(e.o,"event")[k]);k=null;switch(l.getType()){case 9:k="video_card_endcap_action";break;case 10:k="video_card_endcap_collapse";break;case 11:k="video_card_endcap_dismiss";break;case 8:k="video_card_endcap_impression"}k&&(l=l.o.base_url,bT(c,
k,null!=l?l:""))}return new OV(b,a,c)}return new OV(b)};B(SV,gT);SV.prototype.hd=function(){return this.A};TV.prototype.D=function(a){var b={};F(this.A,function(a){b[a]=[]});
var c=new RegExp("^"+this.B);F(sf(a),function(a){"config"!=a.nodeName||F(sf(a),function(a){"params"!=a.nodeName||F(sf(a),function(a){var d=this.B?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=NS(a));null!=a.getAttribute("learn_more")&&(e=e+"|");E(this.A,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};B(VV,gT);B(XV,TV);XV.prototype.parse=function(a){if(null==a)return null;a=UV(this,a);var b=a.UI;return new VV(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
XV.prototype.C=function(a){var b=[],c=0;F(sf(a),function(a){if("SurveyOption"==a.nodeName){var e,f;F(sf(a),function(a){switch(a.nodeName){case "DisplayName":e=NS(a);break;case "URL":f=NS(a)}},this);
null!=e&&null!=f&&(b.push({label:e,url:f}),c++)}},this);
return b};B(YV,gT);ZV.prototype.o={Hu:"Siub",Gu:"Scs",ht:"Bgub",gt:"Bgp"};ZV.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(sf(a),function(a){switch(a.nodeName){case this.o.Hu:b=NS(a);break;case this.o.Gu:c=NS(a);break;case this.o.ht:d=NS(a);break;case this.o.gt:e=NS(a)}},this);
return b&&c&&d&&e?new YV(b,c,d,e):null};B($V,gT);aW.prototype.o={Mu:"TEMPLATE_PARAMETERS",Nu:"TEMPLATE_URL"};aW.prototype.parse=function(a){if(null==a)return null;F(sf(a),function(a){switch(a.nodeName){case this.o.Mu:Pba(this,a)}},this);
return new $V};B(bW,gT);cW.prototype.o={eu:"Line1",fu:"Line2",gu:"Line3",au:"ImageUrl"};cW.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(sf(a),function(a){switch(a.nodeName){case this.o.eu:b=NS(a,!0);break;case this.o.fu:c=NS(a,!0);break;case this.o.gu:d=NS(a,!0);break;case this.o.au:e=NS(a)}},this);
return new bW(b,c,d,e)};B(dW,gT);eW.prototype.parse=function(a){if(null==a)return null;var b;F(sf(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),C(D(a))||(b=a)}},this);
return new dW(b)};B(fW,gT);B(gW,TV);var Nga=["menu","got_it"],Oga=[["generic_message_left","generic_message_hypertext","generic_message_right"],["unsubscribe_visible_link","unsubscribe_legal","unsubscribe_redirect_url","unsubscribe_continue","unsubscribe_cancel"]];gW.prototype.parse=function(a){if(null==a)return null;a=UV(this,a);var b=a.UI;if(!hW(b,Nga))return null;var c,d=!0,e=!1;F(Oga,function(a){Qba(b,a)&&(hW(b,a)?e=!0:d=!1)});
var f=b.targeting_reason;if(!d||!e||0==f.length)return null;for(var k=0;k<f.length;k++)Ha(f[k],"|")&&(f[k]+="https://support.google.com/ads/answer/1634057#Across+Google+products+and+services|"+b.learn_more);null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new fW(b.menu,b.targeting_reason,b.got_it,a.CustomTracking,c,b.unsubscribe_visible_link,b.unsubscribe_legal,b.control,b.unsubscribe_redirect_url,b.unsubscribe_continue,b.unsubscribe_cancel)};iW.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 lT(a)};B(jW,gT);kW.prototype.parse=function(a){return null!=a?new jW:null};lW.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Ya(a):window.NaN;return new mT(a)};h=mW.prototype;h.getContent=function(){return this.o.getContent()};
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(nW,yT);nW.prototype.we=function(){var a=this.H,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:EK(D(this.C)),width:this.getWidth(),height:this.getHeight(),Eb:this.Vc(),cf:this.Hn||!a},a=yQ(Tba,a);a.style.width=this.getWidth()+"px";a.style.height=this.getHeight()+"px";a.id=this.U;F(a.getElementsByTagName("object"),this.F,this);F(a.getElementsByTagName("a"),this.F,this);return a};B(oW,yT);oW.prototype.we=function(){var a=M("div");a.innerHTML=this.C;this.F(a);return CT(this,a)};B(pW,yT);pW.prototype.getContent=function(){var a=pW.N.getContent.call(this);this.D&&(a=a.replace('src=""','src="'+EK(D(this.C))+'"'));return a};
pW.prototype.Yk=function(){var a=pW.N.Yk.call(this);this.D&&(a=a.replace('src=""','src="'+EK(D(this.C))+'"'));return a};
pW.prototype.we=function(a){var b="";this.D||(b=EK(D(this.C)));b={id:this.U,url:b,Eb:this.Vc(),width:this.getWidth()+"px",height:this.getHeight()+"px"};a=yQ(a?Vba:Uba,b);F(a.getElementsByTagName("a"),this.F,this);return a};
pW.prototype.Kg=function(){return!0};B(qW,yT);h=qW.prototype;h.Ub=function(){return new re(this.getWidth(),this.getHeight())};
h.getHeight=function(){return 63};
h.getWidth=function(){return null!=this.G?jg(this.G).width:0};
h.Zn=function(a){return Xd(a,"text-image")?9:Xd(a,"text-ad-channel")?1:0};
h.we=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.B,e="rtl";null!=d&&(e=RZ.test(ye(d,void 0))?"rtl":"ltr");d={title:d,text:c.C+" "+c.D,dir:e,Eb:this.Vc()};if(c=c.A)d.image=EK(c),a=eb(a.C,function(a){return a instanceof uT}),null!=a&&(d.duration=yS(a.Vk()));
b.A&&(d.Yq=b.A);this.G=yQ(Sba,d);F(this.G.getElementsByTagName("a"),this.F,this);this.G.id=this.U;this.G.style.height=this.getHeight()+"px";return this.G};B(rW,yT);rW.prototype.we=function(){var a=D(this.C);C(D(this.Vc()))||(a=new N(a),mh(a,"clickTAG",va(this.Vc())),a=a.toString());var b=M("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",EK(a));this.F(b);return CT(this,b)};uW.prototype.getContentType=function(){return null!=this.o?sT[this.o]||"Other":null};vW.prototype.Id=function(){return this.o};
vW.prototype.display=function(a){this.C=a;this.C.appendChild(this.o);a=this.o;var b=hg(this.C),b="left"==this.D?"0px":"right"==this.D?b.width-this.B.Ub().width+"px":this.D+"px",c;c=hg(this.C);c="bottom"==this.F?"0px":"top"==this.F?c.height-this.B.Ub().height+"px":c.height-this.B.Ub().height-ab(this.F)+"px";Mf(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});lg(this.o,!1)};
vW.prototype.update=function(a,b){var c=null!=this.G?VS(this.G):0;this.A=0<=this.A?this.A:b;c<=a&&c+this.A>=a?Xba(this):lg(this.o,!1)};B(wW,ZU);
wW.prototype.o={Ts:"Ad",Lj:"AdParameters",Vs:"AdSystem",Ws:"AdTitle",VF:"Advertiser",Zs:"AltText",jt:"ClickThrough",kt:"ClickTracking",qt:"Companion",COMPANION_ADS:"CompanionAds",ut:"CompanionClickThrough",vt:"CompanionClickTracking",xt:"Creative",DG:"CreativeExtensions",zt:"Creatives",Ct:"CustomClick",Ft:"Description",Nj:"Duration",ERROR:"Error",Nt:"Extension",Ot:"Extensions",Ah:"HTMLResource",Tt:"Icon",Ut:"Icons",Vt:"IconClicks",Wt:"IconClickThrough",Xt:"IconClickTracking",Yt:"IconViewTracking",Ch:"IFrameResource",
Dh:"Impression",INLINE:"InLine",LINEAR:"Linear",ku:"MediaFile",lu:"MediaFiles",qu:"NonLinear",NON_LINEAR_ADS:"NonLinearAds",ru:"NonLinearClickThrough",tu:"NonLinearClickTracking",PH:"Pricing",Eh:"StaticResource",Lu:"Survey",DI:"Tracking",Qj:"TrackingEvents",NI:"VAST",Ou:"VASTAdTagURI",Pu:"VideoClicks",WRAPPER:"Wrapper"};
wW.prototype.A={Us:"adSlotID",Ys:"allowMultipleAds",yh:"apiFramework",$m:"bitrate",At:"creativeType",Et:"delivery",Nj:"duration",EVENT:"event",Rt:"followAdditionalWrappers",Kt:"expandedHeight",Lt:"expandedWidth",zh:"height",Bh:"id",hu:"maintainAspectRatio",ju:"maxBitrate",nu:"minBitrate",ou:"minSuggestedDuration",uu:"offset",vu:"program",zu:"required",Bu:"scalable",gn:"sequence",Eu:"skipoffset",sn:"type",VERSION:"version",Qu:"codec",Fh:"width",Su:"xPosition",Tu:"yPosition"};
wW.prototype.B=function(){return new $U(this.C,Zba(this),null)};B(EW,ZU);EW.prototype.B=function(){return new $U(this.A,null,qca(this))};h=IW.prototype;
h.clone=function(){var a=new IW;"auto"==this.Qe?a.Qe="auto":"click"==this.Qe&&(a.Qe="click");a.o=this.o;a.re=ec(this.re);a.A=this.A;a.D=this.D;a.wb=ec(this.wb);a.F=this.F;a.location=this.location;a.referrer=this.referrer;a.H=this.H;a.language=this.language;a.qf=this.qf;a.pf=this.pf;a.Fc=this.Fc;a.Ec=this.Ec;a.oc=this.oc;a.ri=this.ri;a.si=this.si;a.Wl=this.Wl;a.B=this.B;a.C=this.C;a.ih=this.ih;a.pi=this.pi;a.afcRmFallback=this.afcRmFallback;a.K=this.K;a.J=this.J;a.yg=this.yg;this.G&&(a.G=sb(this.G));
a.Sc=this.Sc;a.ki=this.ki;a.Ck=this.Ck;return a};
h.re=null;h.wb=null;h.Qe="unknown";h.qf=0;h.pf=0;h.Fc=0;h.Ec=0;h.yg=!1;h.oc=null;h.ri=!1;h.si=!1;h.Wl=!0;h.Sc=function(){return!1};
h.ki=function(){return window.NaN};
h.Ck=function(){return""};
h.ih=0;h.Rn=!0;h.pi=null;h.afcRmFallback=!1;JW.prototype.H=function(){return this.C(this.D()).toString()};
JW.prototype.F=function(){var a;a=1;gL()&&(a+=4);wK(sK(),41351017)&&!V()&&(a+=1024);return a};var rX={II:"ultrahigh",ZG:"high",mu:"medium"},Jca={$F:1E3,aG:1001,bG:1002,cG:1003,dG:1004,eG:1005,fG:1006},Kca={iu:1,Pt:2},Lca={CONTENT:"content",hI:"site",iI:"site_content"};h=PW.prototype;h.Hh="high";h.Rk=!1;h.Sj=1;h.Tj=null;h.adType="video";h.adBlock=1;h.Sk=null;h.Uj=!0;h.Vj=null;h.jk=null;h.vg=null;h.experimentIds=null;h.gender=null;h.host=null;h.hostTierId=null;h.Tk=!1;h.language=null;h.Io=null;h.Ho=null;h.Gi=1E5;h.Hi=null;h.Ko=null;h.Jo=null;h.tl=0;h.wf=null;h.Qi=null;h.Xi=null;h.Xl=null;
h.tagForChildDirectedTreatment=-1;h.url=null;h.Ai=null;h.lm=null;h.Uk=null;h.ym=null;h.um=null;h.wm=null;h.xm=null;h.$j=null;var Gca=(new Date).getTime();var Bca=[202,1009],Fca=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],Eca={MOAT_INIT:["://yts.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"],MOAT_VIEWABILITY:["://yts?.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"]};var Hca={Qt:"flash",IMAGE:"image",lI:"skippablevideo",nI:"standardvideo",oI:"staticimage",TEXT:"text",VIDEO:"video"},jX=["flash","image","staticimage"],Ica=[new re(200,200),new re(250,250),new re(300,250),new re(336,280),new re(450,50),new re(468,60),new re(480,70),new re(728,90)];B(qX,JW);var Nca=["skippablevideo","standardvideo","video"];qX.prototype.G={Xs:"allow",Jt:"exclude",XH:"require"};qX.prototype.F=function(){var a=qX.N.F.call(this);V()&&this.o.Xi&&(a|=this.o.Xi);return a};
qX.prototype.C=function(a){var b=new N("//googleads.g.doubleclick.net/pagead/ads"),c=a.Na();F(c,function(c){mh(b,c,a.get(c))});
wK(sK(),41351083)||ah(b,"https");return b};
qX.prototype.D=function(){var a=new wg;a.set("sdkv",OW(this));a.set("sdki",this.F().toString(16));a.set("video_product_type",null!=this.o.wf?V()?5:ta(this.o.wf,"ca-games-")?4:ta(this.o.wf,"ca-video-")?0:-1:-1);a.set("correlator",this.J.o);a.set("client",this.o.wf);V()&&!C(D(this.o.url))?a.set("url",this.o.url):a.set("url",this.A.location?this.A.location:this.A.referrer);null!=this.A.oc&&a.set("adk",this.A.oc);a.set("num_ads",sX(this));a.set("channel",Oca(this));a.set("output","xml_vast3");this.o.Rk&&
a.set("adtest","on");uS&&a.set("flash",GM);hX("alternate_ad_url",this.o.Vj,a);hX("cpm",this.o.jk,a);ZW(a,this.A);V()||Ub(rX,this.o.Hh)&&a.set("adsafe",this.o.Hh);this.o.host&&(a.set("host",this.o.host),hX("ht_id",this.o.hostTierId,a),null!=this.o.B&&hX("h_ch",this.o.B.join("+"),a));hX("hl",this.o.language,a);hX("cust_age",this.o.Sk,a);hX("cust_gender",this.o.gender,a);-1!=this.o.tagForChildDirectedTreatment&&hX("tfcd",this.o.tagForChildDirectedTreatment,a);hX("slotname",this.o.Tj,a);if(dX(this.o)&&
(a.set("ea","0"),null!=this.A.Fc&&null!=this.A.Ec)){var b=eX(this.o,this.A.Fc,this.A.Ec,this.A.yg);a.set("image_size",b);C(b)&&(this.o.o=iX(this.o.o,this.o.adType,!0),this.o.adType=this.o.o.join("_"))}a.set("ad_type",this.o.adType);b=yK(sK());C(D(b))||a.set("eid",b);$W(a);YW(a,this.J,this.A.D||this.o.vg);a.set("unviewed_position_start","1");b=this.o.Sj;a.set("videoad_start_delay",null!=b?b:1);MW(this,a);NW(this,a);KW(this,a);Mca(this)&&a.set("video_format",null!=this.o.Ai&&V()?this.o.Ai:Fl&&Ht(6)||
K6&&Ht(4)||hL&&aL(iL,2.3)?43:18);b=null!=this.o.Qi?this.o.Qi:E(this.o.adType.split("_"),"text")?this.G.Xs:this.G.Jt;a.set("t_pyv",b);hX("min_ad_duration",this.o.tl,a);0<this.o.Gi&&a.set("max_ad_duration",tX(this.o.Gi,sX(this)));0<this.o.Hi&&a.set("sdmax",tX(this.o.Hi,sX(this)));fX(a,this.K);V()&&(b=kQ(this.o.vg),null!=b&&a.set("video_doc_id","yt_"+b));hX("description_url",this.o.vg,a);V()&&(hX("lact",aX(this.A),a),hX("loeid",this.o.Uk,a),hX("lsv",this.o.Tk,a),this.o.Uj||hX("scs","false",a),hX("targeting",
this.o.Xl,a),hX("video_cpm",this.o.lm,a),hX("yt_pt",this.o.ym,a),hX("ytdevice",this.o.um,a),hX("ytdevicever",this.o.wm,a),hX("yt_vis",bX(this.A),a),hX("dbp",this.o.xm,a),hX("avo",this.o.$j,a));null!=a.get("ms")||hX("ms",this.o.C,a);LW(a);gX(this.A,a,!1);null!=this.A.re&&hX("loc",this.A.re.page_location,a);return a};B(uX,JW);uX.prototype.C=function(a){var b=new N(this.A.o);F(a.Na(),function(c){C(a.get(c))?b.o.remove(c):mh(b,c,a.get(c))});
wK(sK(),41351083)||ah(b,"https");return b};
uX.prototype.D=function(){var a=new wg;a.set("sdkv",OW(this));NW(this,a);KW(this,a);LW(a);null!=this.A.oc&&a.set("adk",this.A.oc);return a};B(vX,JW);vX.prototype.D=function(){return new wg};
vX.prototype.C=function(){var a=new BS(this.A.o),b=OW(this);b&&CS(a,"dc_sdkv",[b]);(b=this.F().toString(16))&&CS(a,"dc_sdki",[b]);(b=this.B.H)&&CS(a,"dc_submodel",[b]);null!=this.A.oc&&CS(a,"dc_adk",[this.A.oc]);b=new wg;MW(this,b);NW(this,b);KW(this,b);LW(b);xg(b,"js")&&CS(a,"dc_js",[b.get("js")]);xg(b,"msid")&&CS(a,"dc_msid",[b.get("msid")]);xg(b,"frm")&&CS(a,"dc_frm",[b.get("frm")]);xg(b,"osd")&&CS(a,"dc_osd",[b.get("osd")]);xg(b,"sdr")&&CS(a,"dc_sdr",[b.get("sdr")]);CS(a,"dcmt",["text/xml"]);
xg(b,"vpa")&&CS(a,"vpa",[b.get("vpa")]);xg(b,"mpt")&&CS(a,"mpt",[b.get("mpt")]);xg(b,"mpv")&&CS(a,"mpv",[b.get("mpv")]);wK(sK(),41351083)||ah(a,"https");return a};B(wX,JW);wX.prototype.C=function(a){a=new N(a.get("adTagUrl"));wK(sK(),41351083)||ah(a,"https");return a};
wX.prototype.H=function(){var a=D(this.D().get("adTagUrl"));wK(sK(),41351083)||(a=a.replace(/^http:/i,"https:"));return a};
wX.prototype.D=function(){var a=new wg;a.set("adTagUrl",this.A.o);a.set("adsResponse",this.A.A);return a};B(xX,JW);xX.prototype.C=function(a){return new N(a.get("adTagUrl"))};
xX.prototype.D=function(){var a=new wg;a.set("adTagUrl",this.A.o);a.set("adsResponse",this.A.A);return a};B(yX,JW);yX.prototype.C=function(a){var b=new N(this.A.o);F(a.Na(),function(c){C(a.get(c))?b.o.remove(c):mh(b,c,a.get(c))});
wK(sK(),41351083)||ah(b,"https");return b};
yX.prototype.D=function(){var a=new wg,b=sK(),c=yK(b);C(D(c))||a.set("eid",c);a.set("sdkv",OW(this));a.set("sdki",this.F().toString(16));a.set("correlator",this.B.F);a.set("scor",this.B.o);null!=this.A.oc&&a.set("adk",this.A.oc);MW(this,a);NW(this,a);KW(this,a);LW(a);var c=lh(new N(this.A.o)),d=new PW;d.A=oX(d.A,c.get("overlay"));a.set("afvsz",eX(d,this.A.Fc,this.A.Ec,this.A.yg));c=this.B.A;null!=c&&(this.B.A=null,a.set("fbidx",c));c=this.B.O;null!=c&&a.set("ppid",c);c="null";d=this.B.C;null!=d?c=
d:zX(this.A.location)?c=this.A.location:zX(this.A.referrer)&&(c=this.A.referrer);a.set("url",c);c=this.B.H;null!=c&&a.set("submodel",c);c=this.B.G;null==c||V()||(c=Pca(c),a.set("ciu_szs",c));a.set("impl","");wK(b,41351073)&&a.set("unviewed_position_start","1");return a};B(AX,yX);AX.prototype.C=function(a){a=AX.N.C.call(this,a);this.J||Rca(this,a);return a};B(BX,vX);BX.prototype.C=function(a){a=BX.N.C.call(this,a);this.J||Tca(this,a);return a};B(CX,JW);var Vca=["CPN","MT","LACT","VIS"];CX.prototype.C=function(){var a=new N(dK(this.A.o,Uca(this)));wK(sK(),41351083)||ah(a,"https");return a};
CX.prototype.D=function(){return new wg};HX.prototype.md=function(){return null!=this.o&&this.o.md()?!0:0<this.ads.length&&this.A<this.ads.length-1};
HX.prototype.K=function(a,b){return this.D?0<a.length?a:b:vb(b,0,1)};
HX.prototype.B=function(a,b,c){var d;if(!(d=null!=a.A)){var e=this.F;d=e.Fc||0;e=e.Ec||0;kU(a)&&!a.S?nU(a,"nonlinear")?FX(a,d,e):GX(a):nU(a,"linear")?GX(a):nU(a,"nonlinear")&&FX(a,d,e);d=null!=a.A}d?(this.G++,b(a)):(b=kb(a.C)?PK(HW):JT(a)?PK(aY):PK(xga),d=QW(b,a),zS(kba(a),"rm")?b.A=!1:NK(a.aa,d),c(b))};
HX.prototype.H=function(a,b,c){var d=this.F.clone();d.A="";d.o=a.Ia;d.oc=KR(d.o,d.pi);JX(this,a,d,b,c)};B(OX,HX);OX.prototype.md=function(){return null!=this.o&&this.o.md()?!0:0<this.ads.length&&this.A<this.ads.length-1&&0==this.G};
OX.prototype.K=function(a,b){return b};
OX.prototype.B=function(a,b,c){var d=-1,d=null==this.o?gU(a):gU(this.ads[this.A]);this.M.A=d;OX.N.B.call(this,a,b,c)};
OX.prototype.H=function(a,b,c){this.M.A=-1;OX.N.H.call(this,a,b,c)};PX.prototype.fetch=function(a,b,c){C(D(a.A))?IS(a.o)&&null!=this.o&&!this.o.H?this.o.start(a,A(function(){RX(this,a,b,c)},this)):RX(this,a,b,c):jda(this,a,b,c)};
PX.prototype.A=function(a,b,c,d){var e=Wca(a,this.C).H(),e=LK(e,d,!0);d=a.si&&BK(qga,e)?"POST":"GET";$ca(this.B,e,A(function(d){QX(this,d,a,b,c)},this),A(function(b,d){var e;
e=8==b?PK(TX):5==b||6==b?PK(rga):PK(sga,d);c(e);e="third_party";ES(a.o)?e="adsense":HS(a.o)?e="dart":IS(a.o)&&(e="xfp");e={rt:e,ec:b};kL(jL.getInstance(),18,e,!0)},this),this.F,d);
lda(a)};SX.prototype.reset=function(a){this.o=a+I()};B(WX,dd);var Pga={NORMAL:"normal",FULLSCREEN:"fullscreen"};B(bY,G);h=bY.prototype;h.Jg=!1;h.so=1E3;h.bp=30;h.cp=45E3;h.oq=15E3;h.Zq=!1;h.hk=function(){var a=cY(this);this.o.appendChild(this.J);this.display(this.J);this.play();return a};
h.ka=function(){null==this.L&&(this.L=this.hk());return this.L};
h.play=function(){null==this.A&&(this.A=Sd(function(){this.Jg||(this.fa(),this.Zq=!0);this.A=null},this.Zq?this.oq:this.cp,this))};
h.stop=function(){null!=this.A&&(Td(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(){kg(this.ka(),1);null!=this.B&&(Td(this.B),this.B=null)};
h.fa=function(){kg(this.ka(),this.bp/100);null==this.B&&(this.B=Sd(function(){this.O();this.B=null},400,this))};
h.Hw=function(){this.show();this.Jg=!0;this.D=Sd(function(){this.Jg&&this.stop();this.D=null},this.so,this)};
h.uC=function(){null!=this.D&&(Td(this.D),this.D=null);this.Jg&&this.play();this.Jg=!1};
h.T=function(){bY.N.T.call(this);this.stop();Mb(this.Tc)};B(dY,bY);h=dY.prototype;h.hk=function(){var a=cY(this);K(a,"ima-container-rotator");this.G=M("div");this.o.appendChild(this.G);F(this.K,function(a,c){K(a,"ima-container-highlight");var d=63/this.K.length*(c+.5)-5,e=M("div",{id:Wa(),"class":"ima-container-selector"});e.style.top=d+"px";this.Tc.R(e,"click",function(a){this.Kf(a.target)});
this.S.set(e.id,a);this.F.appendChild(e)},this);
this.Kf(uf(this.F));this.play();return a};
h.play=function(){null==this.ya&&(this.ya=new Qd(this.M),this.Tc.R(this.ya,"tick",this.XB));dY.N.play.call(this);this.ya.start()};
h.stop=function(){null!=this.ya&&this.ya.stop();dY.N.stop.call(this)};
h.XB=function(){var a=this.C;this.Kf((n(a.nextElementSibling)?a.nextElementSibling:vf(a.nextSibling))||uf(this.C.parentNode))};
h.Kf=function(a){this.C&&Zd(this.C,"ima-container-active");K(a,"ima-container-active");var b=this.S.get(a.id);rf(b,this.G);this.C=a;this.G=b;this.display(b)};B(eY,bY);eY.prototype.fa=w;eY.prototype.hk=function(){var a=cY(this);F(this.C,function(a){K(a,"ima-container-highlight");this.o.appendChild(a);this.display(a)},this);
this.play();return a};B(fY,Jz);h=fY.prototype;h.play=function(){if(this.jb())return!1;this.Ji();this.gc("play");this.startTime=I();this.o=1;if(jga())return Mf(this.A,this.G),this.C=Sd(this.dw,void 0,this),!0;this.Vl(!1);return!1};
h.dw=function(){hg(this.A);Jq(this.A,this.F);Mf(this.A,this.B);this.C=Sd(A(this.Vl,this,!1),1E3*this.D)};
h.stop=function(){this.jb()&&this.Vl(!0)};
h.Vl=function(a){Kq(this.A,"");Td(this.C);Mf(this.A,this.B);this.endTime=I();this.o=0;a?this.gc("stop"):this.Vb();this.Qg()};
h.T=function(){this.stop();fY.N.T.call(this)};
h.pause=function(){};B(iY,dd);h=iY.prototype;h.start=function(){this.Nk();this.A=0;jY(this);this.C=!0;this.D.start()};
h.play=function(){this.C||(jY(this),this.C=!0,this.D.start())};
h.pause=function(){this.C&&jY(this)};
h.Nk=function(){};
h.tA=function(){this.A+=.2;this.Ao(this.A,this.K);this.$("timeUpdate");0>=this.K-this.A&&(jY(this),this.$("end"))};
h.Ao=w;h.T=function(){this.C=!1;this.J.dispose();iY.N.T.call(this)};B(kY,dd);h=kY.prototype;h.T=function(){null!=this.L&&(this.L.dispose(),this.L=null);null!=this.M&&(this.M.dispose(),this.M=null);oY(this);null!=this.F&&(qf(this.F),this.F=null);null!=this.C&&(this.C=null);null!=this.o&&(qf(this.o),this.o=null);this.Y.dispose();this.Y=null;this.O.dispose();this.O=null;this.D.dispose();this.D=null;this.Z=!1;kY.N.T.call(this)};
h.update=function(a,b){this.V=b;if(!(0>=this.V||null==this.B.skipOffset||0>VS(this.B.skipOffset))){var c=VS(this.B.skipOffset);c>=this.V||3==this.A||(0>a?this.A=1:a<=c?(2!=this.A&&(mY(this,0),gY(this.F,.5,"ease-out",0,1).play(),lg(this.F,!0)),this.A=2):(3!=this.A&&(lg(this.o,!0),this.M=new fY(this.F,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.L=gY(this.o,.5,"ease-out",0,1),this.M.play(),this.L.play(),this.C.autofocus&&
this.C.focus(),this.D.R(wf(this.o),"mouseover",this.UB),this.D.R(wf(this.o),"mouseout",this.Kq),this.Kq()),this.A=3,this.$("skipshown"),nY(this)&&(lg(this.J,!0),lg(this.H,!0),this.$("video_extend_shown"))))}if(2==this.A)mY(this,a);else if(nY(this)&&!this.ea){var d=20-a;0<d?(c="",d=ra("Ad will skip in {$xSeconds}",{xSeconds:Y(" "+Math.round(d))}),Af(this.H,c+d)):this.G||3!=this.A||this.G||(this.G=!0,this.$("video_extend_auto_skipped"))}};
h.skip=function(){return null==this.B.skipOffset||3!=this.A||this.G?!1:(this.G=!0,this.$("PUBLISHER_INVOKED_SKIP"),!0)};
h.jx=function(a){var b=a.o;3==this.A&&1==b.touches.length&&(this.da=!0,this.na=b.touches[0].pageX,a.preventDefault())};
h.ix=function(a){var b=a.o;3==this.A&&1==b.touches.length&&this.da&&(b=b.touches[0].pageX,this.aa=this.la-b,this.la=b,b=this.na-b,0<b&&(this.o.style.right=b+"px"),a.preventDefault())};
h.hx=function(){this.da=!1;if(3==this.A){var a=gg(wf(this.o));if((0,window.parseInt)(this.o.style.right,10)+4*this.aa>.25*a.width&&0<this.aa){lg(this.o,!1);this.G=!0;this.$("skip");return}}this.o.style.right=0};
h.lC=function(a){V()||a.stopPropagation();3!=this.A||this.G||(this.G=!0,this.$("skip"))};
h.Nv=function(a){V()||a.stopPropagation();3!=this.A||this.G||this.ea||(this.ea=!0,this.$("video_extend_clicked"),lg(this.J,!1),lg(this.H,!1))};
h.Kq=function(){null==this.K&&(this.K=Sd(function(){this.Z=!0;gY(this.o,.5,"ease-in",1,.5).play();this.K=null},this.Z?5E3:15E3,this))};
h.UB=function(){kg(this.o,1);oY(this)};
h.setVisible=function(a){null!=this.S&&lg(this.S,a);null!=this.C&&lg(this.C,a);null!=this.J&&lg(this.J,a&&nY(this));null!=this.H&&lg(this.H,a&&nY(this))};B(pY,dd);h=pY.prototype;h.show=function(){null!=this.A&&lg(this.A,!0)};
h.skip=function(){var a;if(a=null!=this.C)a=this.C,a=null!=a.B.skipOffset&&3==a.A;return a?this.C.skip():!1};
h.T=function(){null!=this.A&&(qf(this.A),this.A=null);sY(this);F(this.M,function(a){gQ(a)});
this.M=[];this.D=null;this.B.dispose();this.B=null;this.na=!1;pY.N.T.call(this)};
h.update=function(a,b,c,d,e){this.na=!0;null!=this.A&&(null!=this.da&&Dda(this,a,c,d,e),null!=this.V&&fg(this.V,a/c*100+"%"),null!=this.la&&fg(this.la,b/c*100+"%"),0<c&&null!=this.o.skipOffset&&null!=this.C&&(WS(this.o.skipOffset,c),this.C.update(a,c)),this.o.G&&0<c&&5>c-a&&K(this.S,"videoAdUiTopBarNoFade"),F(this.Ca,function(b){b.update(a,c)},this))};
h.cv=function(){this.$("videoAuthorIconClicked")};
h.dv=function(){this.$("videoAuthorClicked")};
h.Zo=function(){this.$("videoLearnMoreClicked")};
h.iC=function(){this.$("videoShareClicked")};
h.rC=function(){this.$("videoTitleClicked")};
h.Zw=function(a){a.preventDefault()};
h.mj=function(){this.$("click")};
h.hC=function(){K(this.S,"videoAdUiTopBarTransitions")};
h.FB=function(){var a=Hf(this.A,"html5-video-player"),b=this.o.D;null!=a&&(b.D=new Cm(b),b.o=new dd,b.o.Zg(this),b.F=a,b.El(),b.o.$("why_this_ad_url"));null!=this.C&&this.C.setVisible(!1)};
h.zC=function(){null!=this.C&&this.C.setVisible(!0)};h=wY.prototype;
h.El=function(){var a={heading:"",Sq:[],learnMore:"",fi:"",unsubscribe:"",control:"",mute:""};if(null!=this.A){a.heading="This ad is based on:";var b=this.A.D;if(b&&3==b.length){var c=b[1],d=b[2],b=EQ(Y(b[0])+iR()+Y(c)+EQ("</a>")+Y(d));a.fi=b}b=sb(this.A.L);a.Sq=b;for(c=0;c<b.length;c++)if("string"==typeof b[c]&&Ha(b[c],"|")){var d=b[c].split("|"),e=d[1],f=d[2],d=EQ(Y(d[0])+" <a class='"+SQ("videoAdUiUnsubscribeLearnMore")+"' href='"+SQ($Q(e))+"' target='_blank'>"+Y(f)+"</a>");b[c]=d}null!=this.A.A&&
(a.unsubscribe=this.A.C,a.control=this.A.B,a.fi="");a.close=this.A.J}else a.fi=hR(),b="",c=ra("Got It"),a.close=b+c;null!=this.C&&(a.mute=this.C.C);zY(this,Eaa,a);xY(this,"videoAdUiWhyThisAdCloseButton",this.rg);xY(this,"videoAdUiWhyThisAdControl",this.Qn);xY(this,"videoAdUiWhyThisAdMute",this.DB);xY(this,"videoAdUiWhyThisAdUnsubscribe",this.EB);yY(this,"videoAdUiAdReasons",this.Jv);yY(this,"videoAdUiWhyThisAdGenericMessage",this.Qn)};
h.rg=function(){null!=this.D&&(this.D.dispose(),this.D=null);qY(this)&&null!=this.B&&(null!=this.o&&(this.o.$("why_this_ad_got_it_url"),this.o.dispose(),this.o=null),this.B.parentElement.removeChild(this.B),this.B=null)};
h.Qn=function(){null!=this.o&&this.o.$("why_this_ad_settings_url")};
h.Jv=function(){null!=this.o&&this.o.$("why_this_ad_learn_more_url")};
h.DB=function(){if(null!=this.C){this.o.$("mute_interaction_url");var a,b=WV(this.C);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},zY(this,Haa,a),xY(this,"videoAdUiUnsubscribeCancel",this.El),xY(this,"videoAdUiUnsubscribeConfirm",this.yv);else{this.o.$("mute_url");a={heading:this.C.B,undo:this.C.F,question:this.C.D,options:[],confirm:"SEND",cancel:"CLOSE"};for(var c=0;c<b;c++)a.options.push(this.C.A[c].label);zY(this,Gaa,a);xY(this,"videoAdUiMuteUndo",
this.tC);xY(this,"videoAdUiUnsubscribeConfirm",this.nC);xY(this,"videoAdUiUnsubscribeCancel",this.Wh)}}};
h.yv=function(){this.o.$("mute_url");this.Wh()};
h.tC=function(){this.o.$("mute_undo_url");this.rg()};
h.nC=function(){if(null!=this.C){for(var a=WV(this.C),b=!1,c=0;c<a;c++){var d=$e("videoAdUiMuteOption"+c,this.B);if(null!=d&&d.checked){b=!0;KK(this.C.A[c].url);break}}if(!b)return}this.Wh()};
h.EB=function(){null!=this.A&&null!=this.A.A&&(zY(this,Faa,{heading:this.A.C,message:this.A.M,control:this.A.B,cancel:this.A.F,confirm:this.A.G}),this.o.$("why_this_ad_unsubscribe_url"),xY(this,"videoAdUiPopupBack",this.hv),xY(this,"videoAdUiUnsubscribeCancel",this.uv),xY(this,"videoAdUiUnsubscribeConfirm",this.zv))};
h.zv=function(){lg($e("videoAdUiUnsubscribeConfirm",this.B),!1);lg($e("videoAdUiPopupBack",this.B),!1);this.G=!0;this.o.$("why_this_ad_unsubscribe_continue_url");var a=this.A.A,a=a instanceof He?a:Ke(a);window.open(Je(a),"",void 0,void 0)};
h.uv=function(){this.G?this.Wh():(this.o.$("why_this_ad_unsubscribe_cancel_url"),this.rg())};
h.hv=function(){this.o.$("why_this_ad_unsubscribe_cancel_url");this.El()};
h.Wh=function(){this.o.$("MUTE_AD");this.rg()};B(CY,iY);h=CY.prototype;h.start=function(){this.Nk();this.B.update(0,this.L);gY(this.o,this.H.A,"ease-out",0,1).play();this.J.R(this.B,"skip",this.Yu);CY.N.start.call(this)};
h.getContainer=function(){return this.o};
h.Nk=function(){var a=hg(this.o);if(1==this.G){var b=400>=(0,window.parseInt)(Rf(this.o,"width"),10)||400>=a.width;L(this.o,"videoAdUi-mobile",b)}else if(2==this.G){var c=uf(this.o),d=hg(c),e=65>=(a.height-d.height)/2;L(this.o,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;L(this.o,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
h.Yu=function(){this.pause();this.$("skip")};
h.Ao=function(a,b){this.B.update(a,b);if(this.F){var c=hY({Wf:DY(b-a)});Af(this.F,c)}};
h.T=function(){this.B&&this.B.dispose();of(this.o);CY.N.T.call(this)};B(EY,G);EY.prototype.K=function(a,b,c){b=ec(b||{});if("timeout"==(b.viewability||"")){var d=this.H[a];null!=d&&(b.viewability=d)}null!=b.viewability&&(d=b.viewability,null!=d&&(this.o.VIEWABILITY=d));"impression"==a&&!this.J&&null!=this.F&&0<this.F.length&&(d=E(this.G,"impression"),GY(this,this.F,{},d),this.J=!0);if(Hda(this,a)){var d=E(this.G,a),e=cT(this.B,a);0<e.length&&(GY(this,e,b,d,c),this.A.set(a,!0))}this.o.VIEWABILITY="na"};B(HY,dd);h=HY.prototype;h.Xg=function(){var a=jb(this.ads,this.J);-1!=a&&++a<this.ads.length?this.J=this.ads[a]:this.J=null};
h.zq=function(){if(!JY(this)){if(kb(this.ads))throw RK(aY);this.J=this.ads[0];if(null==this.J.A)throw PK(aY);}};
h.wa=function(a){JY(this)?this.$(new cK(a,IY(this))):this.$(new cK(a,null))};
h.Uy=function(){};
h.Al=function(){};
h.destroy=function(){kK.o&&(OP().F=null);this.dispose()};
h.T=function(){JY(this)&&(ZT(this.J,null),this.J=null);Mb(this.H);this.G=this.H=null;this.da=!1;HY.N.T.call(this)};
h.Ld=function(){return[]};
h.getCurrentAd=function(){return this.ads[0]};
h.init=function(a){TY(this);this.yi(a);this.Ea=!0;this.Ki()};
h.Ki=function(){this.wa("loaded")};
h.sendImpressionUrls=function(a){JY(this)&&V()&&NK(WT(IY(this)),a)};
h.Fq=w;h.Fd=function(a,b,c){if(!this.da){if(null==a)throw RK(mR,null,"displayContainer");if(null!=c){var d=new Zj(Wb(this.B));if(!Fg(Wb(c),d.contains,d))throw RK(mR,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.B;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.Hg&&(c.Hg=[]);Kda(c.Hg);fa(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);gc(d,c)}this.content=b;this.C=a;this.zq();kK.o&&(a=OP(),b=A(this.Uw,this),a.F=b);this.o=this.C.ti(Ida(this));this.da=!0}};
h.Ne=function(a){a=zS(IT(a),"rm")?a.K:WT(a);F(a,function(a){nb(this.F.F,a)},this)};
h.Wd=function(a,b){F(b,function(b){b=pT(a,b);$S(this.F.B,b)},this)};
h.Ui=function(a){if(a instanceof uT){var b=vT(a);F(b.Na(),function(a){var d=b.get(a);F(d,function(b){bT(this.F.B,a,b)},this)},this)}};
h.getCurrentTime=function(){return-1};
h.He=function(){return-1};
h.rf=function(a,b,c){this.yi(c)};
h.pause=w;h.resume=w;h.skip=w;h.start=function(){TY(this);if(!this.Ea)throw PK(LY,null,"Must call init before start.");};
h.stop=function(){this.destroy()};
h.xo=function(){return null!=this.volume?this.volume:0};
h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&TK(this,mR,null,"volume",String(a));this.volume=a};
h.yi=function(a){if(!Ub(Pga,a))throw RK(mR,null,"view mode",a);this.S=a};
h.getMediaUrl=function(){return null};
h.wo=function(){return null};
h.yo=function(){return null};
h.gf=function(){return null};
h.Uw=function(){var a=this.getCurrentTime(),b=this.He(),c=this.getCurrentAd();return{currentTime:a,duration:b,isVpaid:null!=c?CU(this.getCurrentAd()):!1,volume:this.xo()}};
h.SB=function(a){F(rb(I$,Vb(K$)),function(b){var c=aT(a.o,b);kb(c)||this.Jl(b,c)},this);
Gda(this.F,a.H)};
h.Jl=function(a,b){F(b,function(a){var b=a.getType();bT(this.F.B,b,a.o)},this)};B(XY,HY);h=XY.prototype;h.start=function(){XY.N.start.call(this);this.C.Oe();this.K=this.C.De();if(null!=this.K){RY(this,"show_ad");of(this.K);var a=this.Fn();kK.o?TP(OP(),a):Dba(UU(),a);this.K.appendChild(a);this.Th();F(this.aa,function(a){a()});
lb(this.aa);this.V=!0}};
h.rf=function(a,b,c){XY.N.rf.call(this,a,b,c);this.Th()};
h.T=function(){Mb(this.A);this.C=this.A=null;this.V=!1;kK.o?OP().C=null:UU().B=null;null!=this.K&&(of(this.K),this.K=null);XY.N.T.call(this)};
h.Fn=function(){var a=$T(IY(this));if(null==a)throw a=RK(aY),ZY(this,a),a;var b=IY(this);zT(a,OY(this));AT(a,this.hw);a.D||BT(a,pa(this.Kk,b,a));try{PY(this,b)}catch(d){throw ZY(this,d),d;}this.Ne(b);var c=WW(b,this.o);this.F.o=c;b.A&&(this.Ne(b),(b=b.A)&&this.Wd(b,pga));this.Wd(a,["start"]);YY(this,a);return this.Ih([a.Id()])};
h.zo=function(a,b){return new bY(a[0],b)};
h.Ih=function(a){null!=this.A&&this.A.stop();this.A=this.zo(a,A(this.ai,this));a=this.A.ka();L(a,"autoalign",this.B.Cn);L(a,"viewmode-fullscreen","fullscreen"==this.S);a.appendChild(this.ha);OY(this).R(a,"click",kc);(JY(this)&&kU(IY(this))||this.B.useStyledNonLinearAds)&&this.Xj(this.A.o);return a};
h.Xj=function(a){var b=OY(this);this.Z=yQ(wda);b.R(this.Z,"click",this.zw);var c="",d=ra("Close"),c=yQ(vda,{close:c+d});b.R(c,"click",this.oi);K(a,"extra-padding");null!=this.la&&728<=this.la.getWidth()&&K(a,"wide-overlay-ad");a.appendChild(c)};
h.Th=function(a,b){if(null!=this.A){var c=a?a:0,d=b?b:0,e=hg(this.C.De()),f;f=hg(uf(this.A.o));if(f.width+c>e.width||f.height+d>e.height)throw c=RK(vga,null),ZY(this,c),d={},d.pid=PU.getInstance().o,d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=$T(IY(this)).getContentType(),d.vm=this.S,kL(jL.getInstance(),38,d,!0),this.stop(),c;}};
h.hw=function(a){SY(this,"click");kc(a)};
h.oi=function(){RY(this,"close");this.ai(!0)};
h.Kk=function(a,b){BT(b,w);this.V?this.Ug(a,b):this.aa.push(A(this.Ug,this,a,b))};
h.Ug=function(a){a=WW(a,this.o);this.F.o=a;SY(this,"impression");RY(this,"creativeview");SY(this,"start")};
h.ai=function(a){null!=this.A&&(this.A.stop(),null!=this.Z&&rf(this.Z,this.A.o),a?this.wa("userClose"):this.wa("autoClose"))};
h.zw=function(a){kc(a);this.A.show();this.A.play();rf(this.A.o,this.Z);Sd(function(){lg(this.ha,!1)},500,this);
lg(this.ha,!0);this.wa("userRecall")};B($Y,XY);h=$Y.prototype;h.zo=function(a,b){if(this.U||null==b)b=w;var c;V()&&this.U?c=new bY(a[0],b):1<a.length?bZ(this)||"fullscreen"==this.S?c=new eY(a):(c=new dY(a),c.M=15E3):c=new bY(a[0],b);c.so=100;this.U&&(c.bp=30);c.cp=45E3;c.oq=6E3;L(c.o,"scalable",this.U);L(c.ka(),"yt-text-overlay",V()&&this.U);return c};
h.ZB=function(a){var b=a.A;null!=b?(null==this.ga&&(this.ga=a.getExtension("AdSense").C),BT(b,pa(this.Kk,a,b)),AT(b,pa(this.iw,a,b)),"Text"==b.getContentType()&&(this.U=!0),this.O.push(b)):(b=PK(aY),b=QW(b,a),NK(VT(a),b))};
h.Fd=function(a,b,c){$Y.N.Fd.call(this,a,b,c);this.B.Cn=!0;a=IY(this);kb(XT(a))?V()&&this.wa("companionBackfill"):PY(this,a)};
h.Fn=function(){null==this.O&&(this.O=[],F(this.ads,this.ZB,this));if(0==this.O.length)throw RK(aY);var a=[];F(this.O,function(b){zT(b,OY(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.Hn=!0);a.push(b.Id());gba(b,this.ga.F)},this);
if(0==a.length)throw RK(aY);Lda(this);return this.Ih(a)};
h.start=function(){$Y.N.start.call(this);!this.ea&&bZ(this)&&(this.ea=!0,this.wa("contentPauseRequested"));null!=this.D&&this.D.start();if(this.V){var a=cZ(this);dZ(33,a)}};
h.oi=function(a){$Y.N.oi.call(this,a);F(this.O,function(a){var c=WW(a.getAd(),this.o);this.F.o=c;this.Wd(a,["close"]);RY(this,"close");this.F=new EY},this)};
h.ai=function(a){$Y.N.ai.call(this,a);bZ(this)&&(null!=this.K&&of(this.K),this.ea&&(this.ea=!1,this.wa("contentResumeRequested")))};
h.Ih=function(a){a=$Y.N.Ih.call(this,a);if(bZ(this)){var b=xS(2);K(this.A.o,b);K(a,b)}return a};
h.Xj=function(a){if(bZ(this)){var b=wf(a);b&&((a=sf(a)[0])&&Mf(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense"),this.D=new CY(b,a.C||new hV,2,aZ(this),!0),OY(this).R(this.D,"skip",this.Cw),OY(this).R(this.D,"end",this.Rw))}else $Y.N.Xj.call(this,a),b=yQ(xda,aZ(this)),a.appendChild(b)};
h.Kk=function(a,b){this.V?this.Ug(a,b):this.aa.push(A(this.Ug,this,a,b));BT(b,w);this.wa("impression")};
h.Ug=function(a,b){var c=WW(a,this.o);this.F.o=c;this.Ne(a);this.Wd(b,["creativeview"]);RY(this,"impression");RY(this,"creativeview");SY(this,"start");this.F=new EY};
h.iw=function(a,b,c){c=dg(c);a=a.getExtension("AdSense");a=new N(a.B);var d=b.getWidth();(0,window.isNaN)(d)&&(d=gg(b.Id()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=gg(b.Id()).height);b=sK();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.S,"sdkv=h.0.0.0","eids="+yK(b)];wS()&&(c=hg(this.C.De()),d=this.D?Fda(this.D):new oe(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));JK(a,"elementclick",b);F(this.O,function(a){var b=WW(a.getAd(),this.o);this.F.o=b;YY(this,
a);RY(this,"click");this.F=new EY},this);
this.wa("click")};
h.yi=function(a){this.S!=a&&($Y.N.yi.call(this,a),this.wa("expandedChanged"))};
h.Th=function(){$Y.N.Th.call(this,this.D?15:0,this.D?65:0)};
h.Cw=function(){eZ(this,"skip")};
h.Rw=function(){eZ(this,"close")};B(fZ,cK);hZ.prototype.videoCount=0;iZ.prototype.isListed=!0;B(jZ,iY);B(mZ,G);mZ.prototype.show=function(a,b){nZ(this);wG&&a?(a.appendChild(this.A),this.ya=Sd(A(this.o,this,b),2E3)):b()};
mZ.prototype.o=function(a){this.ya=0;qf(this.A);a()};
mZ.prototype.T=function(){nZ(this);mZ.N.T.call(this)};B(oZ,jc);B(pZ,dd);qZ.prototype.muted=function(a,b){return!this.mute&&a||0<this.volume&&0==b};
var Rda={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};h=pZ.prototype;h.T=function(){rZ(this);pZ.N.T.call(this)};
h.Qz=function(a){var b=a.B;this.C.H.measurable_impression=null!=b?b.viewabilityString:null;a.B.queryId==this.G&&sZ(this,"measurable_impression",!0,!1)};
h.tB=function(a){a=a.B;a.queryId==this.G&&(this.C.H.viewable_impression=null!=a?a.viewabilityString:null,sZ(this,"viewable_impression",!0,!0))};
h.uz=function(a){a=a.B;var b=K$[a.eventName];b&&a.queryId==this.G&&(this.C.H[b]=null!=a?a.viewabilityString:null,sZ(this,b,!0,!0))};
h.xx=function(){var a=this.o.Md();if(-1!=a){this.o.ug(.25*a)&&sZ(this,"firstquartile",!0,!0);this.o.ug(.5*a)&&sZ(this,"midpoint",!0,!0);this.o.ug(.75*a)&&sZ(this,"thirdquartile",!0,!0);var b=this.C,c=this.o.getCurrentTime();0>b.C&&(aba(b.B,a),b.C=0);for(var a=aT(b.B,"progress"),d=b.C;d<a.length;d++){var e=a[d];if(VS(e.A)>c)break;b.C=d+1;KK(e.o,b.o)}}tZ(this)};
h.wx=function(){this.K=!0;sZ(this,"impression",!0,!0);sZ(this,"creativeview",!0,!0);null!=this.L||null!=this.B||this.A.R(this.o,"click",this.Zk);null!=this.L&&(this.F=new dQ,this.A.R(this.F,"click",this.Zk,!1),eQ(this.F,this.L));null!=this.B&&(this.H=new dQ,this.A.R(this.H,"click",this.Zk,!1),eQ(this.H,this.B));sZ(this,"start",!0,!0);(this.o.sf()||0==this.o.nd())&&sZ(this,"mute",!1,!1)};
h.yx=function(){var a=this.o.sf(),b=this.o.nd(),c=this.D;c.mute&&!a||!a&&0==c.volume&&0<b?sZ(this,"unmute",!1,!1):this.D.muted(a,b)&&sZ(this,"mute",!1,!1);this.D.mute=a;this.D.volume=b};
h.tx=function(){this.o.Ie()?uZ(this):this.o.tf()&&!this.o.Do()&&(this.D.o=!0,sZ(this,"pause",!1,!1))};
h.vx=function(){this.D.o&&(this.D.o=!1,sZ(this,"resume",!1,!1))};
h.nx=function(){uZ(this)};
h.Zk=function(){sZ(this,"click",!1,!1)};
h.ox=function(){sZ(this,"error",!1,!1)};
h.rx=function(){sZ(this,"mediaLoadTimeout",!1,!1)};
h.Zp=function(){sZ(this,"skipshown",!0,!1)};
h.Ap=function(){sZ(this,"video_extend_shown",!0,!1)};
h.Xv=function(a){sZ(this,a.type,!1,!1)};
h.gB=function(a){this.$(a)};
h.sB=function(){sZ(this,"videoShareShown",!0,!1)};
h.Mo=function(){sZ(this,"skip",!0,!1)};
h.tp=function(){sZ(this,"video_extend_auto_skipped",!0,!1)};
h.Bp=function(){sZ(this,"video_extend_clicked",!0,!1)};
h.uA=function(){sZ(this,"skip",!0,!1)};
h.qx=function(){sZ(this,"fullscreen",!1,!1)};
h.rz=function(){sZ(this,"exitfullscreen",!1,!1)};B(vZ,HY);h=vZ.prototype;h.T=function(){zZ(this);this.Ia.dispose();xZ(this);this.ea=!1;this.Z=null;F(this.va.Ka(),Td);var a=!1;null!=this.C&&(a=this.C.Lk(),this.C.fa(),this.C=null);this.U&&(this.U=!1,this.o.tf()||this.o.Ie()||this.o.pause(),$K()&&!a&&(this.o.uf(.001),this.o.load("","")),XK()&&this.o.Nd()&&!a&&this.o.qk(),this.wa("contentResumeRequested"),this.wa("allAdsCompleted"));vZ.N.T.call(this)};
h.Xg=function(){xZ(this);vZ.N.Xg.call(this);JY(this)&&(this.F=new EY,this.O=new pZ(this.F),this.ha=!1)};
h.Al=function(a){vZ.N.Al.call(this,a);null!=this.o&&wK(sK(),9419278)&&this.o.Ol(1)};
h.Kv=function(a,b){b.preventDefault();this.V||(this.V=!0,SY(this,"video_card_endcap_action"));a&&(this.D.pause(),IK(a))};
h.Sn=function(){wZ(this,function(){zZ(this);this.wa("complete");SY(this,"video_card_endcap_dismiss");yZ(this)})};
h.Lv=function(){zZ(this);this.wa("complete");SY(this,"video_card_endcap_collapse");yZ(this)};
h.Kx=function(a,b,c){if(!this.qa){this.qa=!0;var d=kQ(b);d&&(a.F=d);if(this.B.useVideoAdUi){var d=a.getExtension("AdSense"),e;(e=this.Ga||a.B.Sc("show_ads_pay_this_creator_info_card"))||(e=null===b?!1:"modules"==(new N(b)).Ce().toLowerCase()||mQ(b));e=e||null!=d&&d.J;var d=LT(a)?null:qU(a),f;if(V()||!this.la)f=0;else{if(f=WK()){a:{for(f=0;f<this.ads.length;++f)if(!UY(this.ads[f])){f=!1;break a}f=WK()}f=!f||null==this.C||!this.C.lk()}f=f||yU(a)}f&&(this.B.km=!0,this.B.Xq=!0);if(V()||this.B.Xq){f=this.B;
var k=C(D(uU(a)))?!1:this.B.km,l=this.la?V()||!1:!0,m=V();this.la?UY(a):TT(a);var p=NT(a),d=BY(e,a.F,d,f);d.B=k;d.O=l;d.M=!0;d.K=m;d.S=p;d.C=f.jm;d.V=f.useShareButton;d.Y=f.yC;d.Da=0;f.jm&&(e="",f=ra("Visit Advertiser"),d.Df=e+f);wK(sK(),41351019)}else TT(a)||!C(D(a.F))?(f=a.F,!C(D(f))&&null!==d&&0<VS(d)&&(e=!0),d=BY(e,f,d,this.B),d.H=e?Aaa:zaa):(d=BY(e,a.F,d,this.B),d.U=!1,d.F=!1,d.o=!1);e=this.C.ji();null===e?e=window.document.body:of(e);f=IY(this);k=1E3*oU(f);l=f.getExtension("why_this_ad");m=
f.getExtension("mute");p=f.B.Sc("enable_why_this_ad_for_desktop");d.D=new wY(l,m,p);qY(d.D)&&(m=null!=l?l.K:void 0,l="<span class='videoAdUiAdSettingsShortTooltip'>",m?l+=Y(m):(m=ra("Click for Ad Settings"),l+=m),l=EQ(l+"</span>"),d.se=l);this.A=new pY(d,e,k);e=f.F;null!=e&&(AZ(this),d.Y&&QZ(this,e));this.Ga&&(f=a.getExtension("AdSense"),null!=f?(e=this.A,f=D(f.A),null!=e.H&&(lg(e.H,!0),f=new N(f),f=(f.A+f.B).replace(/^www\./i,""),C(D(f))?tY(e):Af(e.H,f)),null!=e.L&&lg(e.L,!0)):tY(this.A));e=[];d.F&&
e.push("adAttribution");d.o&&e.push("countdown")}else d&&this.B.Wj&&(AZ(this),QZ(this,d));d=this.O;e=this.o;f=this.C.tk();k=this.A;rZ(d);d.C.D=a.Da;d.o=e;d.B=k||null;d.o.zi();d.D=new qZ(d.o);d.L=f||null;d.A=new Cm(d);d.G=a.Da;e=kK.o?OP():UU();d.A.R(e,"externalActivityEvent",d.uz);d.A.R(e,"measurable_impression",d.Qz);d.A.R(e,"viewable_impression",d.tB);d.A.R(d.o,"timeUpdate",d.xx);d.A.R(d.o,"volumeChange",d.yx);d.A.R(d.o,"pause",d.tx);d.A.R(d.o,"play",d.vx);d.A.R(d.o,"end",d.nx);d.A.R(d.o,"beginFullscreen",
d.qx);d.A.R(d.o,"endFullscreen",d.rz);d.A.R(d.o,"skip",d.Mo);d.A.R(d.o,"skipShown",d.Zp);d.A.R(d.o,"video_extend_auto_skipped",d.tp);d.A.R(d.o,"video_extend_clicked",d.Bp);d.A.R(d.o,"video_extend_shown",d.Ap);d.A.R(d.o,"start",d.wx);d.A.R(d.o,"error",d.ox);d.A.R(d.o,"mediaLoadTimeout",d.rx);null!=d.B&&(d.A.R(d.B,"urlNavigationRequested",d.gB),d.A.R(d.B,"videoShareShown",d.sB),d.A.R(d.B,"skipshown",d.Zp),d.A.R(d.B,"skip",d.Mo),d.A.R(d.B,"PUBLISHER_INVOKED_SKIP",d.uA),d.A.R(d.B,"video_extend_auto_skipped",
d.tp),d.A.R(d.B,"video_extend_clicked",d.Bp),d.A.R(d.B,"video_extend_shown",d.Ap),d.A.R(d.B,"MUTE_AD videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoTitleClicked videoShareClicked why_this_ad_url why_this_ad_got_it_url why_this_ad_settings_url why_this_ad_learn_more_url why_this_ad_unsubscribe_url why_this_ad_unsubscribe_continue_url why_this_ad_unsubscribe_cancel_url mute_interaction_url mute_url mute_undo_url".split(" "),d.Xv));OY(this).R(this.O,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoShareClicked videoShareShown videoTitleClicked start".split(" "),
this.gq);OY(this).R(this.o,"loaded",this.qB);OY(this).R(this.o,"cardsStateChange",this.Vw);OY(this).R(this.o,"timeUpdate",this.jq);OY(this).R(this.o,"volumeChange",this.Yw);wK(sK(),9419966)&&OY(this).R(this.o,"showCompanionAdLoaded",this.MA);this.Ne(a);d=WW(a,this.o);this.F.o=d;d=a.A;null!=d&&d instanceof uT&&(this.Wd(d,I$),this.Ui(d),d=OY(this),Dm(d,this.O,"error",this.Ww,this),Dm(d,this.O,"mediaLoadTimeout",this.Xw,this));VY(this,a);MT(a)&&(this.O.J=30);this.o.Sl(Uda(this,a));this.o.load(b,c)}};
h.HB=function(a,b,c){null!==a.G&&kL(jL.getInstance(),34,{evt:"filled"},!0);this.Ca||(this.Ca=!0,this.wa("contentPauseRequested"));this.U=!0;this.Kx(a,b,c);RY(this,"show_ad");this.setVolume(this.aa);this.A&&(C(D(EZ(a)))?(b=this.A,null!=b.D&&(b.B.za(b.D,"click",b.mj),Mf(b.D,"cursor","default"))):(b=this.A,null!=b.D&&(b.B.R(b.D,"click",b.mj),Mf(b.D,"cursor","pointer"))),b=a.A.ia,kb(b)||Cda(this.A,b),this.A.show());this.C.Ig();this.Z=a;try{BZ(this)}catch(d){IZ(this,QY,d);return}PU.getInstance().end("pi");
PU.getInstance().start("bt");this.Ia.show(this.C.ji(),A(this.o.play,this.o))};
h.Ki=function(){Vda(this);this.wa("loaded");this.$(new fZ(IY(this)))};
h.skip=function(){JY(this)&&MT(IY(this))&&(null!=this.A?this.A.skip():(RY(this,"skip"),PZ(this)))};
h.Fq=function(){SY(this,"skipshown")};
h.start=function(){vZ.N.start.call(this);PU.getInstance().start("pi");this.ga=[];try{var a=IY(this);this.K=FZ(this,a);wZ(this,A(vZ.prototype.HB,this,a,this.K.A,this.K.o))}catch(b){JZ(this,b),this.Xg(),JY(this)?(SK(RK,this,KZ,b,void 0),this.start()):(this.U?SK(RK,this,KZ,b,void 0):(null!=this.G&&GU(this.G,EU()),TK(this,KZ,b)),this.stop())}};
h.xo=function(){TY(this);return this.o.sf()?0:this.o.nd()};
h.setVolume=function(a){TY(this);this.U?this.o.setVolume(a):this.aa=a};
h.pause=function(){TY(this);this.D?this.D.pause():this.o.pause()};
h.resume=function(){TY(this);this.D?this.D.play():this.o.play()};
h.getCurrentTime=function(){TY(this);var a=this.D?this.D.A:0;return this.o.getCurrentTime()+a};
h.He=function(){TY(this);var a=JY(this)?vU(IY(this)):0;return this.o.Md()+a};
h.gf=function(){return this.o.gf()};
h.Ww=function(){this.o.getError();IZ(this,KZ,RK(KZ,this.o.getError()))};
h.Xw=function(){IZ(this,L$,RK(L$,null,((0<this.B.loadVideoTimeout?this.B.loadVideoTimeout:15E3)/1E3).toString()))};
h.Jl=function(a,b){vZ.N.Jl.call(this,a,b);MZ(this,a)};
h.gq=function(a){switch(a.type){case "start":dea(this);xba();this.wa("start");Jda(this);break;case "impression":this.wa("impression");break;case "why_this_ad_url":this.La=this.o.tf();HZ(this,"why_this_ad_url");this.pause();break;case "pause":this.wa("pause");break;case "why_this_ad_got_it_url":HZ(this,"why_this_ad_got_it_url");this.La||this.resume();break;case "resume":this.wa("resume");break;case "firstquartile":this.wa("firstquartile");break;case "midpoint":this.wa("midpoint");break;case "thirdquartile":this.wa("thirdquartile");
break;case "complete":Sda(this)||(this.wa("complete"),yZ(this));break;case "click":this.A&&this.A.o.B?this.o.tf()?this.resume():this.pause():LZ(this);break;case "engagedview":NZ(this);this.wa("engagedview");break;case "urlNavigationRequested":this.$(a);break;case "videoAuthorIconClicked":SZ(this);break;case "videoAuthorClicked":SZ(this);break;case "videoClicked":this.wa("videoClicked");break;case "videoLearnMoreClicked":this.D&&!this.V&&(this.V=!0,SY(this,"video_card_endcap_action"));this.o.pause();
wK(sK(),41351017)&&NZ(this);LZ(this);break;case "videoShareClicked":$da(this);break;case "videoShareShown":aea(this);break;case "videoTitleClicked":bea(this);break;case "skipshown":this.wa("skippableStateChanged");break;case "video_extend_auto_skipped":PZ(this,!0);break;case "skip":this.D?this.Sn():PZ(this);break;case "MUTE_AD":this.wa("MUTE_AD"),wZ(this,function(){yZ(this)})}};
h.Ne=function(a){vZ.N.Ne.call(this,a);MZ(this,"impression")};
h.Wd=function(a,b){vZ.N.Wd.call(this,a,b);F(b,function(a){MZ(this,a)},this)};
h.Ui=function(a){vZ.N.Ui.call(this,a);a instanceof uT&&(a=vT(a),F(a.Na(),function(a){MZ(this,a)},this))};
h.wo=function(){if(!JY(this))return null;try{return FZ(this,IY(this)).A}catch(a){return null}};
h.getMediaUrl=function(){if(!JY(this))return null;var a=IY(this);if(!NY(a))throw RK(GZ);a=a.A.K;return kb(a)?null:a[0].A};
h.qB=function(){this.wa("adCanPlay")};
h.Vw=function(){var a=this.A;null!=a.A&&L(a.A,"ytp-iv-drawer-open",this.o.Bo())};
h.jq=function(){var a=this.He(),b;TY(this);b=this.D?this.He():this.o.Co();var c=this.getCurrentTime(),d=0,e=0;JY(this)&&(e=IY(this),d=e.D.A,e=e.D.C);if(null!=this.A&&0<=a&&0<=c){var f;if(f=!this.na)f=3==IY(this).la;if(f){f=this.o.Md();var k=sU(IY(this));f=Math.abs(f-k);2<f&&(f=RK(yga,null,Number(f).toFixed(2)),f=QW(f,IY(this),this.o),k=VT(IY(this)),NK(k,f));this.na=!0}this.A.update(c,b,a,d,e)}};
h.Yw=function(){var a=this.o.nd();a!=this.aa&&(this.aa=a,this.wa("volumeChange"),0==a&&this.wa("mute"))};
h.MA=function(){this.ea=!0;kL(jL.getInstance(),39,{},!0);try{BZ(this)}catch(a){IZ(this,QY,a)}};
h.jw=function(a){var b=a.o;if("companion-setup-complete"==b.data){a=IY(this);var c=(0,window.encodeURIComponent)(D(uU(a)))+","+(0,window.encodeURIComponent)(OZ(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=uU(a)?210:185}else"pause-video"==b.data&&this.pause()};B(TZ,jc);B(UZ,HY);h=UZ.prototype;
h.init=function(a){UZ.N.init.call(this,a);this.na=I();OY(this).R(window,"message",this.uB);kK.o?OY(this).R(OP(),J$,this.Ep):OY(this).R(UU(),J$,this.Ep);if(this.K)this.$(new TZ);else{a=wU(IY(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=$g(a,"v",this.B.contentId));V()&&(b=Wg(a,"st"),a=$g(a,"st",b?b+" yt":"yt"))}a=D(a)}else{var b=new N(a),c=new N("http://tpc.googlesyndication.com/pagead/js/loader10.html");
"https"==b.C&&ah(c,"https");this.ha=b.A;a=eh(c,a||"",void 0).toString()}this.D=M("iframe",{src:EK(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});OY(this).R(this.D,"load",this.Cv);OY(this).R(this.D,"error",this.Jz);this.C.De().appendChild(this.D)}};
h.Fd=function(a,b,c){UZ.N.Fd.call(this,a,b,c);this.M=$T(IY(this))instanceof uT;this.A=a.ti(!1);this.K||(OY(this).R(this.A,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.AA),OY(this).R(this.A,M$,this.Sy))};
h.stop=function(){this.C.fa();UZ.N.stop.call(this)};
h.start=function(){UZ.N.start.call(this);if(!V()){var a={};a.pid=PU.getInstance().o;a.dn=this.ha;a["if"]=this.K;kL(jL.getInstance(),29,a,!0)}a=IY(this);this.F.D=a.Da;var b=WW(a,this.A);this.F.o=b;if(b=a.A)this.Ne(a),this.Wd(b,I$),this.Ui(b),VY(this,a);this.A.zi();RY(this,"show_ad");this.C.Oe();null!=this.D&&(this.D.style.display="block");this.va=!0;this.M&&this.wa("contentPauseRequested");a_(this)};
h.rf=function(a,b,c){UZ.N.rf.call(this,a,b,c);XZ(this,"resizeAd",{width:a,height:b,viewMode:c})};
h.pause=function(){this.U||XZ(this,"pauseAd")};
h.resume=function(){this.U&&XZ(this,"resumeAd")};
h.setVolume=function(a){UZ.N.setVolume.call(this,a);XZ(this,"setAdVolume",{value:a})};
h.T=function(){this.K&&this.$(new TZ);qf(this.D);this.M&&this.wa("contentResumeRequested");this.wa("allAdsCompleted");this.aa=!1;this.Z=[];UZ.N.T.call(this)};
h.Ki=function(){};
h.Cv=function(){if(!this.K){var a=this.A.zk();kb(a)&&(a=this.B.Hg);XZ(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}VZ(this)};
h.uB=function(a){a=a.o;if(this.K){if(a=wR(a.data),null!=a){try{var b=be(a.data)}catch(c){return}null!=b&&b.session==this.ea&&ZZ(this,b)}}else if(a.source==this.D.contentWindow){try{b=be(a.data)}catch(c){return}b.session==this.ea&&ZZ(this,b)}};
h.Jz=function(a){YZ(this,aY,a);this.stop()};
h.Ep=function(a){var b=a.type;if(E(J$,b)){if("externalActivityEvent"==b&&(b=a.B.eventName,!K$[b]))return;SY(this,b)}};
h.AA=function(a){switch(a.type){case "timeUpdate":a=this.A.Md();var b=this.A.getCurrentTime();WZ(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":b_(this,"ended");break;case "loaded":b_(this,"loadstart");break;case "mediaLoadTimeout":b_(this,"stalled");break;case "play":b_(this,"playing");break;default:b_(this,a.type)}};
h.Sy=function(a){b_(this,a.type)};
h.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
h.He=function(){return this.V};
h.cA=function(){XZ(this,"stopAd")};h=c_.prototype;h.tk=function(){return this.o.tk()};
h.ji=function(){return this.o.ji()};
h.De=function(){return this.o.De()};
h.ti=function(a){return this.o.ti(a)};
h.setSize=function(a,b){this.o.setSize(a,b)};
h.lk=function(){return this.o.lk()};
h.Lk=function(){return this.o.Lk()};
h.Mk=function(){return this.o.Mk()};
h.wi=function(){return this.o.wi()};
h.fa=w;h.Ig=w;h.Oe=w;B(d_,dd);h=d_.prototype;h.init=function(a,b,c){null!=c&&(this.U=c);null!=this.o&&this.o.rf(a,b,c);null==this.G&&(this.G=new Cm(this),Dm(this.G,this.K,"adsLoaderSdkAdError",this.ay,this));g_(this)};
h.start=function(){this.L=!0;hea(this);0<this.A.length?i_(this):("always"==kK.A&&null!=this.V&&GU(this.V,EU()),SK(PK,this,FW,void 0,void 0),0==this.bc&&this.$("contentResumeRequested"),n_(this))};
h.destroy=function(){null!=this.G&&(this.G.dispose(),this.G=null);j_(this);kK.A=this.O;this.L=!1};
h.getCurrentAd=function(){return this.C<this.A.length?this.A[this.C].o[0]:null};
h.jb=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.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.op=function(a){kK.A=this.O;var b=a.F;kb(b)?this.F++:(a=a.D,a.o&&F(b,function(a){a.ga=!1},this),this.S=gea(this,b),nb(this.A,new Hba(b,a.o,a.A)),this.F++,this.G.za(this.K,"adsLoaderSdkAdLoaded",this.op,!1,this));
g_(this)};
h.ay=function(a){a=a.B;kK.A=this.O;a.getMessage();SK(PK,this,FW,void 0,void 0);this.F++;if(!f_(this)||2<=this.A.length-this.C)a=PK(FW),this.$(new bK(a));g_(this)};
h.bA=function(){j_(this);n_(this)};
h.by=function(a){a.getError();this.C++;i_(this)};
h.Qw=function(){this.$("userClose")};
h.Nw=function(){this.$("autoClose")};
h.Pw=function(){this.C++;i_(this)};
h.Ow=function(){this.aa||(this.$("contentPauseRequested"),this.aa=!0)};
h.pp=function(a){iea(this,a.type,a.getAd());this.$(a)};B(p_,jc);B(q_,dd);q_.prototype.getCurrentTime=function(){return this.o.currentTime};
q_.prototype.D=function(){if(this.A){var a=this.o.currentTime;if((0,window.isNaN)(a)||0>a)t_(this);else{var b=mea(this,a);this.F?F(b,function(a){s_(this,!0,a)},this):s_(this,!0,db(b));
s_(this,!1,nea(this,a))}}};
q_.prototype.G=function(){t_(this)};B(u_,G);u_.prototype.A=function(){return this.o};B(ZX,HY);h=ZX.prototype;
h.Fd=function(a,b,c){null!=this.D&&(r_(this.D),this.D.dispose(),this.D=null);ZX.N.Fd.call(this,a,b,c);var d=this.ea.o.Na();b=new NR(b);var e=c&&0<=c.Hl?c.Hl:4;this.la=null!=c?c.lq:0;this.D=new q_(b,d,{prefetch:e});F(d,function(b,c){if((0,window.isNaN)(b))throw PK(fV,null,"timeOffset",b+"");var d=fa(b)&&!(0,window.isNaN)(b)?this.ea.o.get(b,[]):[];if(!kb(d)){d=new d_(d,b,0==b||-1==b?b:c,this.Z,a,this.B,this.G);if(xg(this.L,b))throw PK(wga,null,"Multiple ad breaks cannot share same ad play time.");this.L.set(b,
d)}},this);
this.O=db(d);Ih(d,function(a){if(-1==a)return this.O=a,!0;this.O=this.O<a?a:this.O;return!1},this)};
h.init=function(a){ZX.N.init.call(this,a);null!=this.D&&(z_(this),a=OY(this),Dm(a,this.D,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),Dm(a,this.D,"adBreakReady",this.Zx,this),Dm(a,this.Z,"contentComplete",this.bz,this),this.Z.o=!1,a=this.D,a.A||(null==a.C&&(a.C=new Cm(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.D.D(),a=fa(0)&&!(0,window.isNaN)(0)?this.ea.o.get(0,[]):[],kb(a)&&this.wa("contentResumeRequested"))};
h.Ki=function(){this.Ld();this.$(new fZ(null))};
h.destroy=function(){this.dispose()};
h.T=function(){this.Z.o=!0;if(0<this.L.Za()){var a=this.L.Ka();F(a,this.ef,this);this.L.clear()}z_(this);B_(this);null!=this.C&&(this.C.fa(),this.C=null);ZX.N.T.call(this)};
h.start=function(){ZX.N.start.call(this)};
h.stop=function(){null!=this.A&&(this.ef(this.A),this.xi())};
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.setVolume=function(a){ZX.N.setVolume.call(this,a);null!=this.A&&this.A.setVolume(a)};
h.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
h.He=function(){var a;null!=this.A?(a=this.A,a=null!=a.o?a.o.He():-1):a=-1;return a};
h.Ld=function(){return this.ea.o.Na()};
h.getCurrentAd=function(){return null!=this.A?this.A.getCurrentAd():null};
h.zq=function(){};
h.handleEvent=function(a){"contentTrackingError"!=a.type&&(io(this.U,a),A_(this))};
h.Tw=function(){this.wa("userClose")};
h.Sw=function(){this.wa("autoClose")};
h.ef=function(a){a.destroy();this.L.remove(a.bc);this.A=null;null!=this.H&&(this.H.za(a,o_,this.$,!1,this),this.H.za(a,"adError",this.Xn,!1,this),this.H.za(a,"allAdsCompleted",this.ip,!1,this),this.H.za(a,"contentPauseRequested",this.vo,!1,this),this.H.za(a,"contentResumeRequested",this.xi,!1,this),this.H.za(a,"adBreakInitialized",this.kp,!1,this))};
h.bz=function(a){this.aa=!0;-1==this.O?a.C=!1:V()&&!x_(this)||y_(this);lea(this.D)};
h.Zx=function(a){var b=a.B;a=0==b;var c=-1==b;this.V?(a?this.wa("contentResumeRequested"):!c||V()&&!x_(this)||y_(this),this.V=!1):(c?Sd(function(){var a=this.L.get(b);a&&this.ef(a);V()&&!x_(this)||y_(this)},500,this):a&&Sd(function(){this.wa("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.$(new cK("adBreakReady",null,a)))};
h.Xn=function(a){var b=a.getError();V()&&b&&"adLoadError"==b.getType()&&this.$(a)};
h.ip=function(a){this.ef(a.target);(x_(this)||!V()&&this.aa)&&y_(this);this.K=null;A_(this)};
h.vo=function(){var a=this.D;a.o.stop();a.A=!1;this.wa("contentPauseRequested")};
h.xi=function(){this.wa("contentResumeRequested");if(!this.ha){var a=this.D;a.o.start();a.A=!0}this.K=null};
h.kp=function(a){this.K=null;A_(this);a=a.target;var b={};b.adBreakTime=a.bc;this.$(new cK("prefetched",a.getCurrentAd(),b))};
h.wa=function(a){var b=null;null!=this.A&&(b=this.A.getCurrentAd());this.$(new cK(a,b))};
h.yo=function(a,b){return this.ga=new u_(a,b)};B(C_,dd);C_.prototype.T=function(){null!=this.o&&(this.o.za("adsManagerLoaded",this.$),this.o.za("adError",this.$),this.o.za("adLoadError",this.$),this.o=null);C_.N.T.call(this)};B(E_,gH);h=E_.prototype;h.Yc=function(){R9(this.app,!0,this.playerType);this.app.Re(this.playerType)};
h.pauseVideo=function(){this.app.pauseVideo(this.playerType)};
h.Zc=function(a,b,c){R9(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.Yf(d.getCurrentTime()+a,b,c,e)};
h.Sb=function(a,b){R9(this.app,!0,this.playerType);this.app.Yf(a,b,void 0,this.playerType)};
h.Br=function(){d$(this.app,this.playerType)};B(F_,mq);F_.prototype.getAdState=function(){return-1};G_.prototype.reset=function(){fv(this.o)};
G_.prototype.A=function(a,b){Yu(a,b,this.o)};
G_.prototype.info=function(a,b){dv(a,b,this.o)};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Kf();return b?(b=b.toLowerCase(),b+=$a("hidden"),!n(a)||b in a?b:null):null})();V_.prototype.start=function(){this.A=!0};
V_.prototype.reset=function(){this.o=this.A=!1};W_.prototype.S=function(a){if(4==a.info.type){var b=a.info.o.rq(a);a.info.equals(this.A)&&(this.A=db(b).info);F(b,this.S,this)}else 3==a.info.type&&this.o.push(a)};
W_.prototype.V=function(a){a.dispose();this.F-=Y_(a)};var Dea=0;h=u0.prototype;h.PB=function(a){this.status=a.status;a.ok?(this.C=a.body.getReader(),this.F?(this.J=a.headers,this.G=new window.Uint8Array(w0(this)),x0(this)):this.C.cancel("Cancelling")):this.Cj()};
h.Ny=function(a){if(this.F)if(I(),a.done)this.C=null,this.Cj();else{a=a.value;this.D+=a.length;var b=a.length>=Math.max(w0(this)/2,16384),c=a.length+this.o>w0(this);(b||c)&&0!==this.o&&v0(this);b?this.B.push(a):(this.G.set(a,this.o),this.o+=a.length);this.F({timeStamp:I(),loaded:this.D});x0(this)}};
h.Cj=function(){this.F&&(this.H=!0,this.K())};
h.oh=function(a){return this.J.get(a)};
h.rk=function(){return this.D};
h.gg=function(){return+this.oh("content-length")};
h.oo=function(){return 200<=this.status&&300>this.status&&!!this.D};
h.Wo=function(){return!!this.B.length||this.H&&0<this.o};
h.Oq=function(){this.B.length||v0(this);return this.B.shift()};
h.Ir=function(){this.B.length||v0(this);return this.B[0]};
h.Hr=function(){this.C&&this.C.cancel("Cancelling");this.K=this.F=null};var Eea=0;h=y0.prototype;h.TD=function(a){this.B||(this.status=this.o.status,this.A=this.o.response,this.C=!0,this.D(a))};
h.UD=function(a){this.B||(this.status=this.o.status,this.F(a))};
h.oh=function(a){try{return this.o.getResponseHeader(a)}catch(b){return Fi(b),""}};
h.gg=function(){return+this.oh("content-length")};
h.rk=function(){return this.A.byteLength};
h.oo=function(){return 200<=this.status&&300>this.status&&!!this.A};
h.Wo=function(){return this.C&&!!this.A};
h.Oq=function(){var a=this.A;this.A=null;return new window.Uint8Array(a)};
h.Ir=function(){return new window.Uint8Array(this.A)};
h.Hr=function(){this.B=!0;this.o.abort()};z0.B=!1;z0.A=1E4;z0.o=2048;h=z0.prototype;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&&B0(this);C0(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=w$-1,Tr(c)),this.G=0;else if(c){this.G++;b=z0.A*(.5+Math.random());1==this.G&&(b=2E3);Ai(A(this.Lm,this,a),b);return}b?this.Lm(a):Ai(A(this.Lm,this,a),0)};
h.Lm=function(a){if(!this.isDisposed()){this.K=w$++;if(this.o){var b=this.info,c=this.o.o,d=this.o.length;this.J=b.range?new Cr(b.range.start+c,b.range.end):Er(c,d);this.A=cs(this.info,this.J)}else this.J=this.info.range,this.A=cs(this.info);this.A.set("rn",this.K.toString());this.G&&this.A.set("playerretry",this.G.toString());0<=a&&this.A.set("rbuf",(1E3*a).toFixed().toString());a=Pr(this.A);try{var e=A(this.zB,this),f=A(this.BB,this),k=A(this.AB,this);this.B=(this.C.Y||this.C.Z&&5>this.O)&&"function"==
typeof window.fetch&&window.ReadableByteStream&&Fea(this)&&this.info.range?new u0(a,f,k,e):new y0(a,f,k,e)}catch(l){this.H="net.ssl",C0(this,6)}0<this.C.G&&(this.F=Ai(A(this.qq,this),this.C.G));this.A.get("itag");this.A.get("range");I()}};
h.BB=function(){this.M=0;var a=this.timing;this.A&&vr(this.A.o);a.A=I();a.F=a.A;a.o=0;a.L=!1;a.J=!1;a.D=0;a.H=QJ(a.B);I0(a);a.M=a.G-a.A};
h.AB=function(a){if(!this.isDisposed()){this.D=this.B.status;G0(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.A&&4E12>c?c:I();50>c-b.F||H0(b,c,a);b=this.timing;b.o>b.S&&8192<b.o&&3>this.state&&C0(this,3)}};
h.zB=function(){var a=this.B;if(!this.isDisposed()){this.F&&(Di(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.oo()){var c="";E0(this)&&(c=a.Ir(),c.length>z0.o?c="":(c=String.fromCharCode.apply(String,c),c=yr.test(c)?c:""));if(c){var a=this.info.B,d=this.A;d.o===a.o&&(a.o=Rr(d,c));C0(this,4)}else{var c=a.gg(),a=a.rk(),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);e?(G0(this,!0),c=this.timing,d=I(),c.L||(c.L=
!0,d=d>c.A&&4E12>d?d:I(),H0(c,d,a),e=(d-c.A)/1E3,!c.J&&8192<=c.o&&KJ(c.B,e,a),8192<=c.o&&(e=c.B,a=Math.max(a,8192),e.C.o(1,c.D/a),RJ(e)),MJ(c.B,(d-c.A)/1E3,c.o),c.C&&(c.C=!1)),I(),C0(this,5)):(b=!0,this.H="net.closed")}}else b=!0,this.H="net.connect";b&&(B0(this),C0(this,6),I())}};
h.qq=function(){this.F=window.NaN;if(!(this.isDisposed()||this.C.va&&this.B&&8192<=this.timing.o&&"quic"==this.B.oh("client-protocol"))){var a=I(),b=!1;if(8192<=this.timing.o){var c=this.timing.G;I0(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);if(b){b=this.timing;c=a;c=c>b.A&&4E12>c?c:I();a=(c-b.A)/1E3;if(8192<=b.o){b.D+=(c-b.F)/1E3;var c=b.B,d=b.K,d=Math.max(d,8192);c.C.o(1,b.D/d)}else c=b.B,c.B.o(1,a);RJ(c);MJ(b.B,a,b.o);
D0(this);this.H="net.timeout";C0(this,6)}else this.F=Ai(A(this.qq,this),this.C.G)}};
h.isDisposed=function(){return-1==this.state};
h.dispose=function(){Xr(this.info.o[0])&&5!=this.state&&(this.info.o[0].o.B=!1);C0(this,-1);this.S=null;D0(this);Di(this.F);this.F=window.NaN};B(J0,Rj);J0.G=!1;J0.o=2/24;J0.D=1E3;J0.B=.2;J0.C=1E4;J0.A=1800;J0.F=25;h=J0.prototype;h.initialize=function(a,b,c,d){a=a||0;var e=this.F;d=d&&d.id;e.D="i";"auto"!=HA()&&(e.D="s");M_(e,b);wea(e,d);e.L=e.C;xea(e);e.B=e.G;b=U_(e);this.A=new W_(this.C,b.audio);this.B=new W_(this.C,b.video);this.P("videoformatchange",b);this.D=a;c?(this.K=!0,Y0(this)):K0(this)};
h.resume=function(){this.K&&(this.K=!1)};
h.bv=function(a){this.A.K=!1;this.B.K=!1;this.resume();this.o=a;Kv(a)&&(a.o.addEventListener("updateend",A(this.tc,this),!1),a.A.addEventListener("updateend",A(this.tc,this),!1),a.o.addEventListener("error",A(this.Ii,this,!0),!1),a.A.addEventListener("error",A(this.Ii,this,!1),!1));M0(this,"msa");jv.measure&&jv.getEntriesByName("vta").length&&jv.measure("measure_vta_to_msa","vta");this.U&&this.O&&Iu();this.tc();this.ea=Ci(A(this.tc,this),J0.C)};
h.BA=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.o[0].o,c=!this.U&&b.info.video,d=!this.O&&b.info.audio,e=Math.max(0,a.info.o[0].D-this.D);4==a.state?(c?M0(this,"vrr"):d&&M0(this,"arr"),a.start(e)):5==a.state?(c?(this.U=a.A?Pr(a.A):"",Ku()):d&&(this.O=a.A?Pr(a.A):""),b=a.o.B,F(b,function(a){Xr(a.info)&&a.info.o.no(a)}),!Gg(b,function(a){return Qs(a)},this)||b[0]&&b[0].info.o.jl()?this.rd(!0,"fmt.unparseable",A0(a)):this.tc()):3==a.state?(this.tc(),c&&Ku()):6==a.state&&B0(a)?(this.rd(!1,
a.getErrorCode(),A0(a)),this.isDisposed()||((c=b.info.video&&(0<a.G||410==a.D||500==a.D||503==a.D)&&90&&!R_(this.F))&&vea(this.F,b.info),6==a.state&&"net.timeout"==a.H||c?(zea(b.info.video?this.B:this.A,a),this.tc()):a.start(e))):Xr(a.info.o[0])?(b.D=!0,this.tc()):this.rd(!0,"net.retryexhausted",A0(a))}};
h.tc=function(){this.da=window.NaN;O0(this);if(this.o&&Gv(this.o)&&!Iv(this.o))if(this.G.isLive)(0,window.isNaN)(this.H)?(this.H=this.D+2*J0.A,this.o.Lf(this.H)):this.H<=this.D+J0.A&&(this.H+=J0.A,this.o.Lf(this.H));else{var a=Math.max(this.A.B.index.eg(),this.B.B.index.eg());(!(0,window.isFinite)(this.H)||this.H!=a)&&0<a&&(this.o.Lf(a),this.H=a)}if(!this.isDisposed())if(a=this.G,a.isLive&&$s()-a.F>=a.A)3==this.G.D?this.rd(!0,"manifest.net.retryexhausted",{rc:this.G.G.toString()}):(this.G.L(),Y0(this));
else{if(this.C.O&&$s()-this.G.J>=1E3*this.C.O&&e1(this)>=this.C.ga){var a=this.G,b=a.o,c;for(c in b)Tr(b[c].F);a.J=$s()}this.G.isLive&&(t0(this.B)||t0(this.A))&&(c=b1(this),(0,window.isNaN)(c)||this.seek(c));"prerender"==window.document.webkitVisibilityState?Y0(this):(O0(this),Z_(this.B),Z_(this.A),this.A.B.B||(!this.K||SJ(this.J)?K0(this):Y0(this)),!this.o||T0(this,this.A,this.o.o)||T0(this,this.B,this.o.A)||((c=Z0(this,this.B,this.o.A,null,this.A.G))&&!this.Z&&(this.Z=I(),M0(this,"vda"),this.Y&&
Ku()),a=$x(this.o.A.buffered,this.D+J0.o),(0,window.isNaN)(a)&&!k0(this.B)&&this.o.o.buffered.length||(k0(this.B)&&(a=window.NaN),a=Z0(this,this.A,this.o.o,a,null),c|=a,a&&!this.Y&&(this.Y=I(),M0(this,"ada"),this.Z&&Ku())),k0(this.B)&&k0(this.A)&&Gv(this.o)&&!Iv(this.o)&&(a=this.o,Gv(a)&&a.B.endOfStream(),a=this.J,GA(QJ(a)),a.o=$s()),c&&!Kv(this.o)&&S0(this)),Q0(this,this.B,O_(this.F)),Q0(this,this.A,P_(this.F)),this.B.B.D||this.A.B.D?this.rd(!0,"net.retryexhausted"):(U0(this,this.B,this.A)&&W0(this,
this.B,this.A),U0(this,this.A,this.B)&&W0(this,this.A,this.B),this.C.Da&&this.V&&!this.K&&SJ(this.J)&&(c=this.V,this.V="",a=Lg(c),Bj(c,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:A(this.rd,this,!1,"pathprobe.net",{shost:a})})),this.C.qa&&(this.C.U=10<=e1(this)),this.G.C&&Y0(this)))}};
h.Ii=function(a){a=(a=a?this.A:this.B)&&a.C;this.rd(!0,"fmt.unplayable",a?as(a):void 0)};
h.seek=function(a){if(!this.isDisposed()){O0(this);this.ga=$s();this.B.B=O_(this.F);var b=c1(this,this.B,a,this.o&&this.o.A);this.A.B=P_(this.F);var c=c1(this,this.A,b,this.o&&this.o.o);this.D=Math.max(a,b,c);this.M=!0;S0(this)}};
h.T=function(){N0(this);this.A&&(m0(this.A),m0(this.B));Ei(this.ea);this.B=this.A=null;J0.N.T.call(this)};
h.rd=function(a,b,c){this.P("error",new nv(b,a,c));a&&(this.o&&Gv(this.o)&&(a=this.o,Gv(a)&&a.B.endOfStream("network")),this.dispose())};B(f1,G);h=f1.prototype;h.setCallbacks=function(a,b,c,d){this.G=a;this.F=b;this.K=c;this.A=d};
h.DE=function(a){this.G.call(this.A,new window.Uint8Array(a.message))};
h.Fz=function(){};
h.sp=function(a,b){Fi(b);var c=a;b instanceof window.DOMException&&(c+="."+b.name);this.F.call(this.A,c)};
h.Pp=function(a){this.G.call(this.A,a.message)};
h.Op=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,""+b+"."+a)};
h.Np=function(){this.K.call(this.A)};
h.update=function(a){this.C?this.C.update(a).then(null,Bi(A(this.sp,this,"u"))):this.o?this.o.update(a):this.D.addKey?this.D.addKey(this.L.o,a,this.J,this.H):this.D.webkitAddKey(this.L.o,a,this.J,this.H)};
h.T=function(){this.D=null;f1.N.T.call(this)};B(g1,G);h=g1.prototype;
h.createSession=function(a){var b=a.o;if(this.o.B){var c=this.G.createSession(),b=c.generateRequest(a.contentType,b),c=new f1(null,null,null,c,null);b.then(null,Bi(A(c.sp,c,"g")));return c}if(Ct(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 f1(null,null,null,null,b)}if(Et(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 f1(null,null,null,null,b)}this.A.generateKeyRequest?this.A.generateKeyRequest(this.o.o,b):this.A.webkitGenerateKeyRequest(this.o.o,b);return this.B=new f1(this.A,this.o,b,null,null)};
h.GE=function(a){var b=j1(this,a);b&&b.Pp(a)};
h.FE=function(a){var b=j1(this,a);b&&b.Op(a)};
h.EE=function(a){(a=j1(this,a))&&a.Np()};
h.T=function(){this.A=null;g1.N.T.call(this)};B(k1,G);h=k1.prototype;h.Jr=function(a){this.G=a};
h.XD=function(a){if(!this.isDisposed()){this.F||(this.F=!0,this.o.P("newsession",this));if(Ct(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(JL(a.childNodes[0].data))}if(Et(this.A))for(b=FL(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,
kb:this.Iz,onError:this.Dp,context:this};b=this.H;this.G&&(b=$g(b,"access_token",this.G));Bj(b,a)}};
h.VD=function(){this.isDisposed()||this.D||(this.o.P("sessionready"),this.D=!0)};
h.Iz=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,f;if(-1==d)a=null;else if(e=b.slice(0,c).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/),null==e)a=null;else{e=ab(e[1]);b:{f={};b=b.slice(c+2).split("\r\n");for(c=0;c<b.length;c++){if(0==b[c].length)break b;var k=b[c].match(/([^:]+):\s+([\S\s]+)/);if(null==k)break;f[k[1]]=k[2]}f=null}a=null==f?null:
new Jea(e,f,a.subarray(d+4))}a?0!=a.o?m1(this,"drm.auth","f"+a.o,Vx(a.o)):(d=(d=a.headers["Authorized-Format-Types"])?d.split(","):null,e=null,(f=a.headers["Heartbeat-Url"])&&(e=new Iea(f,(0,window.parseInt)(a.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(a.headers["Heartbeat-Num-Retries"],10)||4)),(d||e)&&this.o.P("newlicense",d,e),Et(this.A)&&(a.message=new window.Uint8Array(JL(String.fromCharCode.apply(null,a.message)))),this.B.update(a.message)):m1(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Dp(a)};
h.WD=function(a){this.isDisposed()||m1(this,"drm.keyerror","s"+a)};
h.Dp=function(a){m1(this,"drm.net","r"+a.status)};
h.T=function(){this.o=null;k1.N.T.call(this)};B(o1,Rj);h=o1.prototype;h.pz=function(a){a=new n1(new window.Uint8Array(a.initData),a.initDataType);q1(this,a,!0)};
h.Yz=function(a){q1(this,new n1(a.initData,a.contentType),!0)};
h.Rz=function(){this.isDisposed()||(this.D=!0,this.A.length&&r1(this,this.A[0]))};
h.vy=function(a){if(!this.isDisposed()){Fi(a);var b="a";a instanceof window.DOMException&&(b+=a.name);this.P("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
h.$z=function(a,b){a&&E(a,"HD")&&!Xt(this.C)&&!Ct(this.o)&&(this.C=Zt,this.P("qualitychange"));b&&!this.O&&(this.O=b,this.P("heartbeatparams",b))};
h.aA=function(){this.isDisposed()||(this.A.shift(),this.A.length&&r1(this,this.A[0]))};
h.JA=function(){if(Ct(this.o)&&(this.K--,0==this.K)){var a=this.B;a.A.msSetMediaKeys(a.C)}};
h.T=function(){this.M=null;this.A=[];o1.N.T.call(this)};s1.prototype.D=function(){var a=t("yt.abuse.botguardInitialized");return a&&a()?(a=t("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
s1.prototype.F=function(a){return"r3a="+Math.floor(this.o.lengthSeconds%Ya(a.c3a))};
s1.prototype.C=function(a){a=Ya(a.c);var b;b=t("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};B(x1,Rj);x1.prototype.C=function(a,b){this.o.paused||this.getCurrentTime()>a||10<b||(this.play(),Ai(A(this.C,this,this.getCurrentTime(),b+1),500))};B(H1,x1);h=H1.prototype;h.ka=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(){this.o.load()};
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.setVolume=function(a){this.o.volume=a};
h.CE=function(a){this.P(a.type,new Nea(this,a.type,a))};I1.prototype.isEmpty=function(){return this.endTime==this.startTime};J1.prototype.C=function(){var a=MG(this.X),b=a.totalVideoFrames,a=a.droppedVideoFrames,c=b-this.B,d=a-this.A;this.B=b;this.A=a;0<c&&.3<d/c&&this.D()};B(L1,Rj);L1.o=1;L1.A=10;L1.B=5;L1.C=5;h=L1.prototype;h.T=function(){Di(this.va);Ei(this.La);N1(this);Y1(this);M1(this);a2(this);Nb(this.ea,this.o);this.M=null;this.Ca=!1};
h.$g=function(a,b){var c=this.X.experiments.ma("legacy_cue_range_behavior2");this.Z.length=0;this.da.reset();this.U.reset();this.L=this.ga=window.NaN;this.aa=null;this.gb=!1;this.A&&E1(this.A);c2(this);N1(this);Y1(this);M1(this);Mb(this.o);c&&this.F.reset();if(2==this.O||tG.test(this.X.G))a.Xo=!0;this.X.Ng&&(a.Ed=this.o.Ed);this.o=a;this.o.subscribe("dataupdated",this.mB,this);this.o.subscribe("dataloaded",this.Mn,this);this.o.subscribe("dataloaderror",this.tj,this);this.o.subscribe("onStatusFail",
this.lB,this);a.ff&&a.ff>a.startSeconds&&(c=a.ff,this.M&&(this.F.jh(this.M),this.M=null),this.M=new iq(1E3*c,0x7ffffffffffff),kq(this.M).subscribe("onEnter",this.Mf,this),this.F.ib([this.M]));N1(this);this.o.Rf||(c=new Pea(this.o,this.X,b,A(this.$f,this),A(this.getCurrentTime,this),A(this.Zv,this),A(this.Oa.Ma,this.Oa),A(this.Em,this),A(this.kw,this)),this.B=new QA(c));this.Ca=!1;o2(this,"newdata");S1(this,new gy)};
h.getVideoData=function(){return this.o};
h.W=function(){return this.X};
h.Mn=function(){if(ex(this.o))ex(this.o),this.da.o=!0,this.Z=sb(this.o.K),Ww(this.o,this.X),Sw(this.o)&&(this.o.Fa&&(this.Y=new pea),this.o.B.o&&k2(this),j2(this,"i")),o2(this,"dataloaded"),this.U.A&&T1(this);else if(this.o.la){var a=this.o,b=this.X.experiments;a.Od=!0;a.la=!1;yr.test(a.H)||Fi(Error("DASH MPD Origin invalid: "+a.H),"WARNING");var c;if(b.L)c=a.H;else{c=a.H;var d=Lg(c);c=0>Aw.C.indexOf(d)?Zp(c):$p(c)}b.ma("disable_versioned_mpd")||(c=Ug(c,{mpd_version:3}));!a.isLowLatencyLiveStream&&
b.ma("html5_live_disable_dg_pacing")&&(c=Ug(c,{pacing:0}));b=c;ft(new Zs(b),b).then(a.iz,a.hz,a);Yu("mrs")}else if(this.o.Y)this.B&&(a=this.B.B,LA(a,"protected"),a.o.o.J?a.Iq():a.o.o.subscribe("dataloaded",a.Iq,a)),a=this.o,b=this.X.F,at(a.o),b=new It(Xv(b,a.o)),H(a,b),a.Y=!1,a.Od=!0,a=A(a.Gx,a),b.C=a,Gt()?Mt(b):Ot(b);else if(!this.o.Od){a:switch(b=this.X,a=this.o,c=this.Oa.Ma(),d=dH(this.X),a.V){case 38:b=a.videoId.indexOf(":");b=Ug("//play.google.com/books/volumes/"+a.videoId.slice(0,b)+"/content/media",
{aid:a.videoId.slice(b+1),sig:a.ig});break a;case 30:c="//docs.google.com/";b.baseYtUrl!=rG.prototype.baseYtUrl&&(c=b.baseYtUrl);b=Ug(c+"get_video_info",{docid:a.videoId,authuser:a.zb,authkey:a.nb,eurl:b.O});break a;case 33:b=Ug("//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.O,ps:b.o,el:b.Aa,hl:b.Y,list:a.playlistId,agcid:a.$e,aqi:a.Ze,sts:16758,lact:NG(b)?NA():"-1"};b.forcedExperiments&&(e.forced_experiments=
b.forcedExperiments);a.M?e.vvt=a.M:a.oauthToken&&(e.access_token=a.oauthToken);b.D&&(e.adformat=b.D);b.Oa&&(e.cc_lang_pref=b.Oa);b.da&&2!=b.da&&(e.cc_load_policy=b.da);b.mute&&(e.mute=b.mute);a.Ca&&2!=b.Cd&&(e.iv_load_policy=a.Ca);a.Ia&&(e.itct=a.Ia);a.zf&&(e.autoplay="1");a.bl&&(e.autonav="1");a.il&&(e.noiba="1");a.isMdxPlayback&&(e.mdx="1");a.ha&&(e.ytrcc=a.ha);a.pl&&(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.Zf&&(e.splay=
"1");a.ypcPreview&&(e.ypc_preview="1");b.ea&&(e.content_v=b.ea);a.Af&&(e.livemonitor=1);b.zb&&(e.authuser=b.zb);b.pageId&&(e.pageid=b.pageId);b.S&&(e.ei=b.S);b.Yb&&(e.ssl_stream="1");b.L&&(e.iframe="1");a.sj&&(e.tst=a.sj);a.contentCheckOk&&(e.cco="1");a.racyCheckOk&&(e.rco="1");b.cb&&a.liveStartWalltime&&(e.live_start_walltime=a.liveStartWalltime);b.cb&&a.Nb&&(e.cyc=a.Nb);0!=d&&b.experiments.ma("send_presence_signal_vis_desktop")&&(e.vis=d);qa(e,b.A);b=Ug(b.baseYtUrl+"get_video_info",e)}a=this.o;
c=this.X.experiments.U;d=this.X.experiments.o;e=!this.X.experiments.ma("disable_gvi_cors");a.isDisposed()||(a.ac=b,a.qb=!!c,a.he=!!d,a.Cd=!!e,a.Od=!0,a.Cq())}};
h.Mf=function(a){this.pauseVideo();a=0==a?new gy:new gy(14);S1(this,a)};
h.Zi=function(a){this.Z=this.Z.filter(function(b){return a!=b});
this.U.A&&T1(this)};
h.jb=function(){return this.C.jb()};
h.getPlayerState=function(){return this.C};
h.Em=function(){var a=this.getVideoData(),b=a.F;if(!b)return a.U;var c=eb(this.o.B?this.o.B.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.U};
h.Wx=function(){var a=this.D.F.o;a.isLocked()||(2==this.X.experiments.Ac("html5_dropped_frames_abr")&&(a=Yt(a,lga),P0(this.D,a,"a",!0)),this.B&&LA(this.B.B,"limit-frame-drops"),this.V&&(a=this.V,Ei(a.o),a.o=window.NaN,this.V=null))};
h.Ez=function(a){if(this.G){var b=this.G;if(Ct(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),l=new window.Uint8Array(c.length+k.length);l.set(c);l.set(k,c.length);c=l}e+=f}}a=c;0!=a.length&&q1(b,new n1(a),!1)}}};
h.Oz=function(a){W1(this,a.reason,a.video.info,a.audio.info);var b=$w(this.o);b&&b.D(a.video);this.Y&&(this.Y.A=a.audio.index)};
h.Nz=function(a){X1(this,a.reason,a.audio.info)};
h.tj=function(a){var b;Rw(this.o)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)Rw(this.o),this.o.Ae&&!this.$a&&(this.$a=!0,this.P("signatureexpired"));else if(a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)&&this.o.B.A)a=this.o,a.B=a.B.A,jH(this),d2(this);else if(a.o)pJ(this,a.errorCode,void 0,ov(a));else if(this.B)this.B.onError(a.errorCode,ov(a))};
h.pauseVideo=function(a){T(this.C,64)&&!a&&(T(this.C,8)?S1(this,py(this.C)):S1(this,oy(this.C,8)));this.A&&(T(this.C,128)||(a?S1(this,ny(this.C,256)):S1(this,py(this.C))),this.A.pause())};
h.rr=function(){if(!(0,window.isNaN)(this.L)&&this.A){var a=this.$f();!this.o.Fa&&this.L>=Math.floor(a)?(this.L=a,this.P("endseeking",this),this.pauseVideo(!0),this.Mf()):(this.D&&this.D.seek(this.L),(!this.o.Fa||1<=this.A.o.readyState)&&B1(this.A,this.L))}this.ea&&(this.ea.dispose(),this.ea=null);T(this.C,32)&&(S1(this,ny(oy(this.C,32),16)),this.P("endseeking",this))};
h.getCurrentTime=function(){if(!(0,window.isNaN)(this.L))return this.L;var a=0;this.A&&1<=this.A.o.readyState?a=this.A.getCurrentTime():this.o&&(a=this.o.qj||this.o.startSeconds||0);return a};
h.$f=function(){return this.o.lengthSeconds?this.o.lengthSeconds:l2(this,!1)?l2(this,!1):0};
h.Zv=function(){var a=new Oea;if(this.ha&&this.D){var b=this.ha;a.B=b.F;a.F=b.G;a.o=PJ(b);b=this.D;b.o&&!Hv(b.o)&&(a.A=by(b.o.A.buffered,b.D),a.C=by(b.o.o.buffered,b.D));a.o=J_(b.L);PJ(b.J);NJ(b.J);OJ(b.J)}else this.A&&(a.A=ky(this.A));this.Y&&qea(this.Y,a);return a};
h.mB=function(){if(this.G){var a=this.G,b=this.o.oauthToken;a.H=b;a.P("oauthtoken",b)}o2(this)};
h.lB=function(a){pJ(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
h.eD=function(a){var b=a.target.o.src;if(this.A&&this.A.o.src&&this.A.o.src==b){switch(a.type){case "error":if(this.X.$e&&2==this.A.getErrorCode()){(0,window.setTimeout)(A(function(){this.A&&(this.o.Hf&&this.A.load(),d2(this))},this),500);
if(this.B)this.B.onError("progressive.net");return}break;case "durationchange":var c=this.A.o.duration;(!this.J||(0,window.isFinite)(c)&&0<c)&&1!=c&&this.o.lengthSeconds!=c&&(this.o.lengthSeconds=c,o2(this));break;case "ratechange":this.D&&(this.D.L.B=Math.max(1,this.A.o.playbackRate));this.F.Qf();break;case "loadedmetadata":this.o.startSeconds&&(0<(this.A.o.seekable||Xx()).length?this.A.o.currentTime=this.o.startSeconds:(this.ga=this.o.startSeconds,this.pauseVideo(!0)));case "loadstart":Ei(this.La);
this.ek()||(this.La=Ci(A(this.ek,this),100));break;case "progress":Uea(this);case "suspend":m2(this);this.P("onLoadProgress",this,Tea(this));break;case "seeked":q2(this);break;case "seeking":this.D&&this.D.seek(this.A.getCurrentTime());this.qb&&w1(this.Ea,this.A.getCurrentTime());break;case "playing":this.H.A("plev");this.ab&&(this.ab=!1,e2(this)||U1(this,window.Infinity,!0));break;case "timeupdate":this.gb=!0;this.ek();q2(this);m2(this);if(!this.A||this.A.o.src!=b)return;this.P("onVideoProgress",
this,this.A.getCurrentTime());this.Y&&this.K&&rea(this.Y,this.A.getCurrentTime());break;case "waiting":if(0<(this.A.o.played||Xx()).length&&0==D1(this.A).length&&0<this.A.getCurrentTime()&&5>this.A.getCurrentTime()&&this.D)return}this.A&&this.A.o.src==b&&(this.P("videoelementevent",a),a=hy(this.C,a,this.Ea,this.X.experiments.ma("html5_playing_event_buffer_underrun")),S1(this,a))}};
h.iy=function(a){a="available"==a.o.availability;a!=this.Va&&(this.Va=a,this.P("airplayavailabilitychange"))};
h.jy=function(){var a=!!this.A.o.webkitCurrentPlaybackTargetIsWireless;a!=this.Ua&&(function(){this.X.kl=a}.apply(this),this.Ua=a)&&(Ww(this.o,this.X),j2(this,"m"));
this.P("airplayactivechange")};
h.ek=function(){var a=this.A;a&&this.gb&&!this.o.Ae&&!cv("vfp",this.H.o)&&2<=a.o.readyState&&!a.o.ended&&0<ay(D1(a))&&this.H.A("vfp");if((a=this.A)&&!this.o.Ae&&0<a.o.duration&&(!cv("pbr",this.H.o)&&a.o.paused&&2<=a.o.readyState&&0<ay(D1(a))&&this.H.A("pbr",void 0),0<a.getCurrentTime())){Ei(this.La);Di(this.va);this.o.Ae=!0;p2(this);if(this.B){a=this.B;if(!a.C){var b=TA(a,"playback");a.J=[10+a.o.o.rj,10,10,40+a.o.o.Dm-a.o.o.rj,40];var c=a.A;Ei(c.F);c.F=window.NaN;c.F=Ci(A(c.update,c),100);c.D=SA(c.A);
c.C=xA(c.A);b.A=RA(a,!0);b.Ia=!0;b.send();a.o.o.Z&&(b=a.o.A,c=a.o.o,b=Ug(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Z,oid:c.bd,ptchn:c.ad,pltype:c.zd,content_v:b.ea}),YA(a,b));a.o.o.enableCardio&&(a.Yi("playback"),a.D||cB(a));a.o.o.Se||XA(a);a.C=!0;a=a.A;a.o=a.A.B();a.D=SA(a.A);.5<a.o-a.B&&(a.B=a.o)}Ai(A(this.Nl,this),4500)}this.P("playbackstarted");Fu()&&Iu();return!0}return!1};
h.jz=function(){this.Ga&&(this.A.Mb(this.Ga),delete this.Ga,A1(this.A))};
h.yw=function(){if(this.A){var a=this.getCurrentTime();if(T(this.C,8)&&my(this.Ea,a,$s(),ky(this.A))){var b=this.$f();b&&1>Math.abs(b-a)?this.Mf():S1(this,ny(this.C,1))}else T(this.C,4)&&ry(this.C)&&ky(this.A)>L1.C&&S1(this,oy(this.C,1));m2(this)}};
h.kw=function(){this.o.Fa||this.P("connectionissue")};
h.YB=function(){B1(this.A,this.A.getCurrentTime()+.1)};
h.Zz=function(a){var b={};qa(b,this.X.A);b.cpn=this.o.clientPlaybackNonce;this.o.M&&(b.vvt=this.o.M);this.X.zb&&(b.authuser=this.X.zb);this.X.pageId&&(b.pageid=this.X.pageId);gc(a.C,b);l1(a,a.H)};
h.Gz=function(a,b,c){pJ(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};
h.Hz=function(){j2(this,"r");o2(this)};
h.dD=function(a){this.P("heartbeatparams",a)};
h.Lz=function(){if(!this.o.Ae&&this.A){0<this.A.o.readyState&&ky(this.A)>=L1.B&&(S1(this,ny(this.C,1)),this.P("playbackstalledatstart"));if(this.B)this.B.onError("qoe.start15s");this.P("loadsofttimeout")}};
h.Nl=function(){if(!this.Ca){var a=new s1(this.o),b;"c1a"in a.B?(b=t("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)Ai(A(this.Nl,this),4500);else{var c;if(a.o&&a.o.ia){b=[a.o.ia];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=TA(a,"atr"),b.L=c,b.send(),a.L=!0),this.Ca=!0)}}};
h.cD=function(){return this.A?this.A.o.playbackRate:1};var s2=[2,5];F2.prototype.B="";F2.prototype.A="";var I2=!1,L2=!1;Ii("showCompanionAdLoaded",function(){L2&&(K2(),L2=!1)});
Ii("watchAdsInit",function(){I2&&(I2=!1,H2())});B(N2,Rj);h=N2.prototype;h.cancel=function(){this.F&&this.P("dragend",0,0,null);this.B&&this.P("hoverend",0,0,null);Bv(this.o);O2(this)};
h.gr=function(a){Bv(this.o);S(this.o,this.A,P2("move"),this.dr);S(this.o,this.A,P2("out"),this.fr);S(this.o,this.A,"touchstart",this.Am);this.D&&S(this.o,this.A,P2("down"),this.zm);var b=Vl(a);a=Yl(a);this.B=!0;this.P("hoverstart",a.x,a.y,b);this.P("hovermove",a.x,a.y,b)};
h.dr=function(a){var b=Vl(a);a=Yl(a);if(this.C){var c=Xl(this.C),d=Yl(this.C);d.x==a.x&&d.y==a.y&&c==b||this.P("hovermove",a.x,a.y,b)}else this.P("hovermove",a.x,a.y,b);this.C=null};
h.fr=function(a){var b=Yl(a),c=Xl(a);c&&yf(this.G,c)?(this.C=a,this.P("hovermove",b.x,b.y,c)):(Bv(this.o),O2(this),this.B=!1,this.P("hoverend",b.x,b.y,c))};
h.Sx=function(a){this.gr(a);this.zm(a)};
h.zm=function(a){if(!fa(a.button)||0==a.button){Bv(this.o);S(this.o,window.document,P2("move"),this.Rx);S(this.o,window.document,P2("up"),this.HC);var b=Vl(a);if(wc)S(this.o,this.A,"dragstart",this.Gv);else if(Zl(a),(kF||tc)&&b)a:{for(var c=b;c;){if(Cf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.F=!0;a=Yl(a);this.P("dragstart",a.x,a.y,b);this.P("dragmove",a.x,a.y,b)}};
h.Gv=function(a){Zl(a)};
h.Rx=function(a){var b=Vl(a);b==window.document&&(b=null);a=Yl(a);this.P("hovermove",a.x,a.y,b);this.P("dragmove",a.x,a.y,b)};
h.HC=function(a){Bv(this.o);this.F=!1;var b=Wl(a),c=Vl(a);a=Yl(a);b&&yf(this.G,b)?(S(this.o,this.A,P2("move"),this.dr),S(this.o,this.A,P2("out"),this.fr),S(this.o,this.A,P2("down"),this.zm),S(this.o,this.A,"touchstart",this.Am),this.P("dragend",a.x,a.y,c)):(O2(this),this.B=!1,this.P("dragend",a.x,a.y,c),this.P("hoverend",a.x,a.y,c))};
h.Am=function(a){var b=a.changedTouches[0];b&&(Bv(this.o),S(this.o,this.A,"touchmove",this.IC),S(this.o,this.A,"touchend",this.ir),S(this.o,this.A,"touchcancel",this.ir),this.H=b.identifier,a=Vl(a),this.B||(this.B=!0,this.P("hoverstart",b.pageX,b.pageY,a)),this.P("hovermove",b.pageX,b.pageY,a),this.D&&(this.F=!0,this.P("dragstart",b.pageX,b.pageY,a),this.P("dragmove",b.pageX,b.pageY,a)))};
h.IC=function(a){var b=Q2(this,a);b&&(Zl(a),a=Vl(a),this.P("hovermove",b.pageX,b.pageY,a),this.D&&this.P("dragmove",b.pageX,b.pageY,a))};
h.ir=function(a){var b=Q2(this,a);if(b){Bv(this.o);O2(this);this.B=!1;var c=Vl(a);this.D&&(this.J||Zl(a),this.F=!1,this.P("dragend",b.pageX,b.pageY,c));this.P("hoverend",b.pageX,b.pageY,c)}};
h.T=function(){this.D&&(wc&&this.G.removeAttribute("draggable"),this.G.style.removeProperty("touch-action"));Bv(this.o);N2.N.T.call(this)};V2.prototype.update=function(a,b,c,d){this.width=b;this.B=c;this.D=d;this.o=b-c-d;this.C=ke(a-c,0,this.o);this.position=this.C+c;this.A=this.C/this.o};B(X2,Rj);X2.prototype.$c=function(){return this.adSystem+"_"+this.adType};
X2.prototype.kf=function(){return this.$c()};
X2.prototype.getCurrentAd=function(){return this.A?this.A.getCurrentAd():null};
X2.prototype.Dj=w;B(d3,G);d3.prototype.start=function(){(0,window.isNaN)(this.o)&&(this.B=I(),this.o=Sd(this.D,this.C-this.A,this))};
d3.prototype.stop=function(){(0,window.isNaN)(this.o)||(this.B=this.A=0,Td(this.o),this.o=window.NaN)};
d3.prototype.pause=function(){(0,window.isNaN)(this.o)||(this.A=I()-this.B,Td(this.o),this.o=window.NaN)};
d3.prototype.T=function(){(0,window.isNaN)(this.o)||Td(this.o)};B(e3,X2);e3.o=15;h=e3.prototype;h.Dj=function(){$2(this.F,13);this.O||this.A.destroy();this.G=this.J=!1;h3(this)};
h.$c=function(){var a=0,a=this.getCurrentAd();if(KT(a))a=3;else if(LT(a))a=4;else if(MT(a))a=OT(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
h.kf=function(){return this.adSystem+"_"+this.adType};
h.show=function(){var a=this.o,b=f3(a);l9(a.app,b);this.F.B=I();this.H=this.o.Ba();this.D.subscribe("progresssync",this.np,this);this.o.A.U&&qf($e("video-ad-status-bar",this.H));Yd(this.H,["ad-showing","ad-interrupting"]);this.o.subscribe("onResize",this.Nm,this);try{this.B.R(this.A,"adError",this.jE),this.B.R(this.A,"click",this.iE),this.B.R(this.A,"complete",this.Zy),this.B.R(this.A,"engagedview",this.qz),this.B.R(this.A,"pause",this.Wr),this.B.R(this.A,"start",this.Xr),this.B.R(this.A,"skip",this.Yr),
this.B.R(this.A,"video_extend_auto_skipped",this.Yr),this.B.R(this.A,"MUTE_AD",this.Dj),this.B.R(this.A,"skippableStateChanged",this.PA),this.B.R(this.A,"youTubeChannelMetadata",this.Tz),this.B.R(Wq(this.o.K),"mouseup",this.kE),this.Nm(),this.O||this.A.start()}catch(c){k3(this,c)}};
h.Zr=function(a,b,c){if("newdata"==a&&this.C!=c){a={video_id:c.videoId};b=new afa;b.isSkippable=this.U;b.skip=A(this.A.skip,this.A);b.skipShown=A(this.A.Fq,this.A);var d=this.getCurrentAd();if(d){b.clickThroughUrl=uU(d)||"";var e;(e=this.o.A.Ga)||(e=c.lengthSeconds,(d=qU(d))?(WS(d,e),e=VS(d)):e=null);b.skipTime=e||0;b.adSystem=this.adSystem}b.videoId=c.videoId;b.videoId||(b.videoUrl=c3(this)||"");c.spacecastModule=this.Y;i3(this.o,-1,a,b)}this.C=c};
h.Xc=function(a){a=a.state;T(a,1)||this.K.pause();T(a,128)?k3(this,Error(a.o.message||"Video player error.")):T(a,1)&&this.K.start()};
h.Xr=function(){this.L=!0;this.G=!1;if(!this.J){this.J=!0;var a=this.F;a3(a);var b=b3(a);if((0,window.isNaN)(a.B))a3(a);else{var c=I()-a.B;b.ad_stl=c}Z2(a,4,b);j3(this.o,1);g3(this,!1);(a=P("ADS_INSTREAM_FIRST_PLAY"))&&this.o.P("publish_external_event","onAdAnnounce",a)}i3(this.o,1);this.P("adPlay",this)};
h.Wr=function(){this.L&&(this.L=!1,i3(this.o,2))};
h.Zy=function(){if(!this.G){var a=this.F;a3(a);var b=b3(a),c=l3(a.o);c?b.ad_fmt=c:a3(a);Z2(a,5,b);h3(this);this.G=this.J=!1}};
h.qz=function(){var a=this.F;a.o.P("AD_LOGGING_EVENT",777,b3(a))};
h.Yr=function(){this.G=!0;var a=this.F,b=b3(a),c=l3(a.o);c?b.ad_fmt=c:a3(a);Z2(a,14,b);h3(this)};
h.PA=function(){var a=P("ADS_INSTREAM_SKIPPABLE");a&&this.o.P("publish_external_event","onAdAnnounce",a)};
h.Tz=function(){var a=this.getCurrentAd();if(a){var b=a.V;if((a=a.O)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.o;c.channelTitle=a.A;c.channelVideoCount=a.videoCount;this.o.P("publish_external_event","onAdMetadataAvailable",c)}}};
h.jE=function(a){var b={};try{b.error_code=a.event.getError().getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}$2(this.F,32,b);k3(this,a.event.getError())};
h.iE=function(){var a=this.F;a3(a);var b=b3(a);if(a.A){var c=k5(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}Z2(a,15,b);this.A.pause();this.P("select")};
h.np=function(){};
h.hp=function(){RY(this.A,"abandon");g3(this,!0)};
h.T=function(){this.o.unsubscribe("control_toggle_play_pause",this.$r,this);this.o.unsubscribe("control_play",this.Gl,this);this.o.unsubscribe("control_pause",this.Fl,this);this.o.unsubscribe("onResize",this.Nm,this);this.B.removeAll();this.D.unsubscribe("statechange",this.Xc,this);this.D.unsubscribe("internalAbandon",this.hp,this);this.D.unsubscribe("internalvideodatachange",this.Zr,this);this.D.unsubscribe("progresssync",this.np,this);this.O||this.A.destroy();this.M&&(of(this.M),this.M=null);this.V&&
(qf(this.V),this.V=null);this.H&&(ae(this.H,["ad-showing","ad-interrupting"]),this.H=null);this.G=!1;var a=this.o;if(a.F){var b=a.app,a=a.F;p9(b);a!=b.o&&l9(b,b.o)}this.K.dispose();this.K=null;e3.N.T.call(this)};
h.$r=function(){this.L?this.Fl():this.Gl()};
h.Gl=function(){this.A.resume();this.Xr()};
h.Fl=function(){this.A.pause();this.Wr()};
h.Nm=function(){eg(Wq(this.o.K),this.o.app.F.Ma())};
h.kE=function(a){n(a.o)||Kl(a);var b=a.o;n(a.A)||Kl(a);this.F.A=new oe(b,a.A)};B(o3,X2);h=o3.prototype;
h.show=function(){if(!this.G||!s5(this.o)){K(this.o.Ba(),"ad-showing");this.B=Wq(this.o.K);var a=this.A.getCurrentAd().getHeight();this.B.style.height=Uf(a,!0);K(this.B,"ad-overlay");this.D.R(this.B,"mouseup",this.nE);try{this.D.R(this.A,"autoClose",this.zy),this.D.R(this.A,"userClose",this.hB),this.D.R(this.A,"userRecall",this.iB),this.D.R(this.A,"click",this.mE),this.D.R(this.A,"impression",this.Dz),this.D.R(this.A,"adError",this.lE),p3(this,"normal"),this.H||this.A.start(),this.Om(),this.o.subscribe("onResize",
this.Fj,this),this.o.subscribe("onStateChange",this.bs,this),this.P("adEnd",this)}catch(b){this.P("adError",b)}}};
h.T=function(){this.D.removeAll();this.o.unsubscribe("onResize",this.Fj,this);this.o.unsubscribe("onStateChange",this.bs,this);Zd(this.o.Ba(),"ad-showing");this.A&&(this.H||this.A.destroy(),this.A=null);this.B&&Zd(this.B,"ad-overlay");this.B=null;this.G=!1;o3.N.T.call(this)};
h.hB=function(){this.B&&this.A&&this.A.getCurrentAd()&&(this.B.style.height=Uf(0,!0));this.G=!0;var a=this.F;a.A=I();var b=n3(a);m3(a,6,b);this.o.P("overlay_ad_close")};
h.zy=function(){this.o.P("overlay_ad_close")};
h.iB=function(){this.o.P("overlay_ad_open")};
h.mE=function(){this.o.pauseVideo();var a=this.F;a.A=I();var b=n3(a);if(a.B){var c=k5(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}m3(a,100,b)};
h.Dz=function(){var a=P("ADS_OVERLAY_IMPRESSION");a&&this.o.P("publish_external_event","onAdAnnounce",a);this.o.P("overlay_ad_open")};
h.nE=function(a){this.F.B=a.target==a.currentTarget?null:new oe(a.pageX,a.pageY)};
h.lE=function(a){a=a.event.getError();this.P("adError",a)};
h.bs=function(a){T(a.state,16)&&p3(this,"normal")};
h.Fj=function(){};
h.Om=function(){var a=this.F;a.C=I();var b=n3(a);m3(a,3,b)};B(q3,G);q3.o="rm";q3.A=10;q3.D=200;q3.B=200;q3.C=190;h=q3.prototype;
h.load=function(){var a;a=this.o.app.F.Ma();var b;this.o.A.o?b=!1:(b=0<(this.F&3)?q3.C:q3.B,b=a.width<q3.D||a.height<b);if(b){b=this.B;var c=G2(b);c.ck_wh=a.width+"x"+a.height;l5(b.o,14,c);M2();this.Dc(Error("The player size is too small."))}else if(this.D=this.o.O)a=this.B,w3(a.o,9,G2(a)),a=D2(this.o),(b=this.o.A.serverPrefetchedVast)&&0<(this.F&3)?(a.A=b,this.o.A.serverPrefetchedVast=void 0):a.o=this.hd(),this.D.R("adsManagerLoaded",this.Vr,!1,this),this.D.R("adError",this.Ur,!1,this),this.Vi(this.D,
a)};
h.sk=function(){var a=C2(this.o.A,this.o.W(),E2(this.o));a.surveyCreativeData=this.o.A.surveyCreativeData;a.youTubeAdNamespace=this.hg();return a};
h.hg=function(){return this.V};
h.Vr=function(a){if(a.C===this){Yu("aml");try{var b=this.sk(),c=a.B}catch(d){this.Rd(d);return}this.C.R(c,"companionBackfill",A(this.hE,this,c));this.C.R(c,"loaded",A(this.gE,this,c));this.C.R(c,"adError",A(this.fE,this,c));this.C.R(c,"allAdsCompleted",w);this.C.R(c,"contentPauseRequested",w);this.C.R(c,"contentResumeRequested",w);c=NU(a,this.o.M,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Rd(d)}}};
h.gE=function(a,b){this.C.removeAll();var c=b.getAd(),d=JT(c),e=this.B,f=G2(e);f.ad_man=d?"instream":"overlay";w3(e.o,12,f);e=a.getMediaUrl();switch(d?this.nf(a,c,e):this.ld(a,c)){case 0:x3(this);break;case 1:a.destroy();this.Dc(Error("Unable to create a display state."));break;case 2:c=this.B;l5(c.o,21,G2(c));a.destroy();this.Dc(Error("Fallback to next ad."));break;case 3:this.Dc(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
h.fE=function(a,b){this.C.removeAll();a.destroy();this.Rd(b.getError())};
h.Ur=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.B===this&&this.Rd(b)};
h.hE=function(){v3(this)};
h.nf=function(a,b,c){var d=E2(this.o)&&E2(this.o).spacecastModule;if(d&&c&&!this.S.test(c))return 3;t3(this,aU(b));s3(this,new e3(this.hg(),this.o,a,MT(b),void 0,d));return 0};
h.ld=function(a,b){t3(this,aU(b));s3(this,new o3(this.hg(),this.o,a));return 0};
h.Rd=function(a){if(a){var b=this.B,c=G2(b);a&&y2(a,c);l5(b.o,32,c);this.Dc(a)}};
h.Dc=function(){i4(this.H)};
h.T=function(){this.D&&(this.D.za("adsManagerLoaded",this.Vr,!1,this),this.D.za("adError",this.Ur,!1,this));this.O.removeAll();this.C.removeAll();q3.N.T.call(this)};
h.Vi=function(a,b){try{D_(a,b,this),Yu("ar")}catch(c){this.Rd(c)}};B(y3,X2);y3.prototype.show=function(){H2();this.P("adEnd",this);this.D=Ci(A(this.F,this),1E3)};
y3.prototype.T=function(){C3(this);y3.N.T.call(this)};
y3.prototype.F=function(){var a=t("yt.www.watch.ads.isAfcAdVisible");this.B++;var b={};b.at=this.kf();10<=this.B||!a?(C3(this),this.P("AD_LOGGING_EVENT",2,b)):a()&&(C3(this),this.P("AD_LOGGING_EVENT",3,b))};B(D3,q3);D3.prototype.sk=function(){var a=D3.N.sk.call(this);a.zn=0==this.K;a.av=s5(this.o)?a.zn:!0;return a};
D3.prototype.hd=function(){var a;var b=this.G;a=u3(this);(b=4==this.F&&b.o.afvInvideoAdTag?b.o.afvInvideoAdTag:b.o.afvAdTag)?(ta(b,"http:")&&(b=b.substr(5)),a=rj(b,{videoad_start_delay:a})):a="";return a};
D3.prototype.ld=function(a,b){if(this.o.A.o)return 1;1==this.A.o&&(r3(this),w3(this.o,1));return D3.N.ld.call(this,a,b)};
D3.prototype.Dc=function(a){var b=this.o.A;b.o?D3.N.Dc.call(this,a):b.Z||this.F&4?(s3(this,new y3(this.o)),x3(this)):D3.N.Dc.call(this,a)};E3.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 l=k;k=fc(this.H);c&&(k.pos=c);l&&null==k.tile&&(k.tile=l.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";
null==k.ord&&(this.A||(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=nj(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.B,"pfadx",this.D,";",e,"?"].join("")};F3.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(A3,o3);A3.prototype.Fj=function(){};
A3.prototype.$c=function(){return"1_3"};
A3.prototype.Om=function(){1==this.K?this.P("AD_LOGGING_EVENT",2,{}):A3.N.Om.call(this)};B(G3,q3);G3.prototype.hd=function(){return this.U.o(t2(this.A),this.F)};
G3.prototype.ld=function(a,b){t3(this,aU(b));var c=IT(b);if(A2(c,q3.o))return 1==this.F||s5(this.o)||M2(),a.sendImpressionUrls(),this.o.A.J?(s3(this,new y3(this.o)),0):2;if(A2(c,"blockAllAds"))return a.sendImpressionUrls(),s3(this,new A3(this.o,a,1)),0;if(A2(c,"hideMaster"))return s3(this,new A3(this.o,a,0)),0;if(this.o.A.o)return 1;s3(this,new o3(this.hg(),this.o,a));return 0};B(H3,G3);var hfa={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};h=H3.prototype;h.hd=function(){if(this.o.A.ea){var a=new F3(this.o.A.dynamicAllocationAdTag);return a.o(t2(this.A),this.L)}a=new E3(this.o.A.dynamicAllocationAdTag,this.o.A,this.K);return a.o(t2(this.A),this.L)};
h.Vi=function(a,b){if(this.J){b.B=B2(this.J);var c=this.o.A.ha;c&&(b.C=c);b.ih=u3(this)}H3.N.Vi.call(this,a,b)};
h.nf=function(a,b,c){I3(this,a);return 1!=this.G&&2!=this.G?1:H3.N.nf.call(this,a,b,c)};
h.ld=function(a,b){I3(this,a);switch(this.G){case 1:return H3.N.ld.call(this,a,b);case 2:var c;this.o.A.o?c=1:(1==this.A.o&&(r3(this),w3(this.o,1)),t3(this,aU(b)),s3(this,new o3(2,this.o,a)),c=0);return c;default:return 1}};
h.hg=function(){return this.G||0};
h.Dc=function(a){var b=this.o.A;b.o?H3.N.Dc.call(this,a):b.Z||this.J&4?(s3(this,new y3(this.o)),x3(this)):H3.N.Dc.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.
*/
J3.prototype.cancel=function(a){if(this.o)this.B instanceof J3&&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 T3,M3(this),K3(this,!1,a))}};
J3.prototype.K=function(a,b){this.G=!1;K3(this,a,b)};
J3.prototype.Oh=function(a){M3(this);K3(this,!0,a)};
J3.prototype.then=function(a,b,c){var d,e,f=new yd(function(a,b){d=a;e=b});
P3(this,d,function(a){a instanceof T3?f.cancel():e(a)});
return f.then(a,b,c)};
vd(J3);B(N3,sa);N3.prototype.message="Deferred has already fired";N3.prototype.name="AlreadyCalledError";B(T3,sa);T3.prototype.message="Deferred was canceled";T3.prototype.name="CanceledError";S3.prototype.A=function(){delete R3[this.mi];throw this.o;};
var R3={};B(U3,q3);U3.A="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";U3.B="43";U3.o=function(a){var b=new J3;Bj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Td:function(){var c=Error(a+" timed out");M3(b);K3(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);M3(b);K3(b,!1,c)},
kb:function(a){b.Oh(a)}});
return b};
U3.prototype.hd=function(){return""};
U3.prototype.Vi=function(a,b){var c=this.F;c&1||c&4||c&8?this.G?c&8?Zea(this.G):("goo.gl"==Lg(this.G)?(c=U3.o(U3.A+this.G),O3(c,function(a){a=be(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);mh(a,"video_format",U3.B);return U3.o(a.toString())},this)):c=U3.o(this.G),O3(c,function(c){b.A=c.responseText;
D_(a,b,this)},this),P3(c,null,this.Rd,this)):this.Rd(Error("Invalid empty URL")):this.Rd(Error("Invalid request type: "+c))};B(V3,X2);V3.prototype.show=function(){var a=E2(this.o).videoId;if(a){var b=this.A.getCurrentAd();oG(this.o.W().J,a,{ue:AU(b)||null,Sf:BU(b)||null,Yh:!1});a={};a.format=this.$c();a.at=this.kf();z2(b,a);this.P("AD_LOGGING_EVENT",3,a)}};B(W3,q3);W3.prototype.hd=function(){return this.o.A.$a||""};
W3.prototype.ld=function(a,b){t3(this,aU(b));s3(this,new V3(this.o,a));5!=this.A.o&&v3(this);return 0};
W3.prototype.nf=function(){return 1};B(X3,W3);X3.prototype.hd=function(){return this.o.A.na||""};B(z3,o3);z3.prototype.Fj=function(){};
z3.prototype.$c=function(){return"4_3"};B(c4,q3);
c4.prototype.hd=function(){var a;if(C(this.G)||0!=t2(this.A)){var b=this.J;if(b.o.ga&&b.o.Ca){a={};var c="youtube_watch_"+b.A;a.nw="10613";a.asnw=b.o.ga;a.ssnw=b.o.ga;a.caid=b.o.Ca;a.vdur=b.G;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.o.Ea)||(c._fw_d_001=b.o.Ea);b.o.gender&&(c._fw_d_002=b.o.gender);b.o.va&&(c["_fwu:10613:lang"]=b.o.va);b.o.la&&(c._fw_dbp=b.o.la);b.o.Qa&&(c._fw_distributorvideoassetid=b.o.Qa);c._fw_yt_type=a4(b)?"long":"short";if(Y3(b)){a.prof=a4(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=$3(b.B)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.D&1&&!b.F){e={};d=Z3(b);if(b4(b.B)){var f;if(b4(b.B)){f=0;var k=b.C.B;if(k)for(var k=k.B,l=0;l<k.length&&(b4(k[l])&&f++,k[l].getId()!=b.B.getId());l++);}else f=0;d=d+f}e.slid=d;e.ptgt="a";e.slau=Z3(b);e.tpos=t2(b.B.Ta).toString();d=nj(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=nj(e,"&")+";"}b.D&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=
nj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=nj(e,"&")+";");b.D&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=nj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+nj(a,"&")+";"+nj(c,"&")+";"+b}else e="10613:10613_youtube_"+b.A.split("_")[0],a.prof="10613:10613_youtube_"+b.A,a.crtp="vast2s",a.flag="+emcr",d={},b.F||(d.ptgt="a",d.slid="preroll",d.slau=Z3(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?"+nj(a,"&")+";"+nj(c,"&")+";"+nj(d,"&")}else a=""}else a=this.G;return a};
c4.prototype.nf=function(a,b){return c4.N.nf.call(this,a,b,null)};
c4.prototype.ld=function(a,b){var c=IT(b);if(A2(c,q3.o))return this.H.D=ec(a),2;if(this.o.A.o)return 1;if(A2(c,"hideMaster")){if(a.G&&a.G.Be()){var c=a.G.Be(),d;d=a.getCurrentAd();if(V()){var e=d.K;d.K=[];d=e}else d=[];c.impressionUrls=d}s3(this,new z3(this.o,a));return 0}return c4.N.ld.call(this,a,b)};d4.prototype.getType=function(){return this.B};
d4.prototype.create=function(a,b){switch(this.B){case 1:return new D3(a,b,this.o);case 2:return new G3(a,b,this.o);case 3:return new H3(a,b,this.o,this.A);case 5:return new c4(a,b,this.o);case 4:return new U3(a,b);case 7:return new W3(a,b,this.o);case 8:return new X3(a,b,this.o);default:return null}};B(e4,Rj);h=e4.prototype;h.getId=function(){return this.F};
h.show=function(){this.J?this.o instanceof o3&&p3(this.o,"normal"):(this.J=!0,this.o instanceof e3&&j4(this.B,"bs"),this.o.subscribe("adEnd",this.mp,this),this.o.subscribe("adError",this.Tr,this),this.o.subscribe("AD_LOGGING_EVENT",this.Gp,this),this.o.subscribe("select",this.Sr,this),this.o.show(),l4(this,!0))};
h.mp=function(){this.A&&(m4(this),m5(this.B));B3(this)};
h.Tr=function(a){if(a){var b={};y2(a,b);k4(this,b);l5(this.B,32,b)}m4(this);B3(this)};
h.Gp=function(a,b){k4(this,b);w3(this.B,a,b)};
h.Sr=function(){this.H=!1};
h.T=function(){m4(this);this.o=null;null!=this.D&&(this.D.dispose(),this.D=null);e4.N.T.call(this)};var r4=[new r2(1)];var pfa={iu:"m",Pt:"f"};var t4=["9412857","9412859"];B(u4,G);u4.prototype.S=function(){this.C=0};
u4.prototype.Xc=function(){if(T(nz(this.o.o),8)){if(v4(this)){this.F=this.F||I()/1E3;this.H&&(this.D+=I()/1E3-this.H);var a=this.o.getCurrentTime(1);0!=this.A&&Math.abs(a-this.A)>this.O?(this.A=this.o.getCurrentTime(1),x4(this,"seek"),this.D=0,this.B.push(I()/1E3)):this.C||0==this.A||(x4(this,"pause"),this.D=0,this.B.push(I()/1E3));w4(this)}}else T(nz(this.o.o),4)&&0==this.A&&v4(this)&&(this.A=this.o.getCurrentTime(1),this.C=Ai(A(this.S,this),1E3*this.M),this.H=I()/1E3)};
u4.prototype.T=function(){w4(this);this.o.unsubscribe("applicationplayerstatechange",this.Xc,this)};B(y4,G);h=y4.prototype;h.Rq=function(){this.o.subscribe("beginseeking",this.Uh,this)};
h.Nq=function(a,b){return a.A&&b4(a)?b+this.C+this.B:b};
h.Mq=function(a,b){return a.A&&3!=a.Ta.o&&0x7ffffffffffff!=b&&0x8000000000000!=b?b+this.C+this.B:b};
h.wn=function(a){if(a.A&&b4(a)&&!(0>=this.B)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=f4(a)+this.C,b=new iq(c,c+this.B-1,b);this.D[a.getId()]=b;this.o.ib([b])}};
h.es=function(a){a.A&&b4(a)&&(z4(this,a.getId()),this.Uh())};
h.Uh=function(){(0,window.isNaN)(this.A)||(Di(this.A),this.A=window.NaN);var a=o5(this.o);B4(this,a,this.o.app.Wa.Cb()/100);Mf(a,"transition","");Mf(a,"opacity","1")};
h.gs=function(a){var b=f4(a)+this.C+this.B,b=50>=1E3*this.o.getCurrentTime(1)-b;a.A&&b4(a)&&b&&(a=.001*(f4(a)+this.G),this.o.P("command_seek",a),0>=this.F||(a=o5(this.o),Mf(a,"opacity","0"),B4(this,a,0),Ai(A(this.oE,this),0)))};
h.oE=function(){var a=o5(this.o);Mf(a,"transition","opacity "+String(this.F)+"ms linear");Mf(a,"opacity","1");A4(this,a,this.F,1)};
h.ds=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-I()),d=Math.max(0,a.volume+-1*a.volume*c/d);B4(this,a,d);this.A=0<d?Eq(A(this.ds,this,a,b,c),c):window.NaN}};
h.cs=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-I()),e=this.o.app.Wa.Cb()/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);B4(this,a,d);this.A=d<e?Eq(A(this.cs,this,a,b,c),c):window.NaN}};
h.T=function(){this.Uh();this.o.unsubscribe("beginseeking",this.Uh,this)};B(C4,y4);h=C4.prototype;h.Rq=w;h.Nq=function(a,b){return b};
h.Mq=function(a,b){return b};
h.wn=w;h.es=w;h.gs=w;h.T=w;B(E4,G);h=E4.prototype;h.yn=function(){this.o.app.subscribe("applicationplayerstatechange",this.Xc,this)};
h.bo=function(){return 4-this.C/1E3};
h.fj=function(a){return Yb(this.B,1E3*a)?this.B[1E3*a]/1E3:a};
h.nq=function(a){var b=!1,c={};F(a.childNodes,A(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?D4(e):null)b=b||rfa(a),c[e]=a},this));
if(!b||0==Sb(c))return!1;a=O(Wb(c),function(a){return(0,window.parseInt)(a,10)});
if(!tfa(this,a))return!1;Ob(c,A(function(a,b){var c=(0,window.parseInt)(Zb(this.B,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",sfa(this,c))},this));
return!0};
h.xn=function(a){if(!(0>=this.J)){var b=[];F(a,A(function(a){if(Yb(this.B,1E3*a)){var d=new iq(1E3*this.fj(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.os=function(a){if(Yb(this.B,1E3*a)){var b=o5(this.o);a=Math.max(0,1E3*a-1E3*this.o.getCurrentTime(1));Mf(b,"transition","opacity "+String(a)+"ms linear");Mf(b,"opacity","0");G4(this,b,a,0)}};
h.qs=function(a){F4(this,1E3*a)&&(this.D[a]&&(EH(this.o.o,[this.D[a]],void 0),delete this.D[a]),this.sh())};
h.Xc=function(){T(nz(this.o.o),4)&&this.sh()};
h.sh=function(){(0,window.isNaN)(this.A)||(Di(this.A),this.A=window.NaN);var a=o5(this.o);H4(this,a,this.o.app.Wa.Cb()/100);Mf(a,"transition","");Mf(a,"opacity","1")};
h.rs=function(a){if(Yb(this.B,1E3*a)){var b=1E3*a;200>=1E3*this.o.getCurrentTime(1)-b&&(this.o.P("command_seek",this.fj(a)+this.H/1E3),0>=this.F||(a=o5(this.o),Mf(a,"opacity","0"),H4(this,a,0),Ai(A(this.uE,this),0)))}};
h.uE=function(){var a=o5(this.o);Mf(a,"transition","opacity "+String(this.F)+"ms linear");Mf(a,"opacity","1");G4(this,a,this.F,1)};
h.ms=function(a,b,c){if(this.A){var d=Math.max(1,b-I()),d=Math.max(0,a.volume+-1*a.volume*c/d);H4(this,a,d);this.A=0<d?Eq(A(this.ms,this,a,b,c),c):window.NaN}};
h.ls=function(a,b,c){if(this.A){var d=Math.max(1,b-I()),e=this.o.app.Wa.Cb()/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);H4(this,a,d);this.A=d<e?Eq(A(this.ls,this,a,b,c),c):window.NaN}};
h.T=function(){this.sh();this.o.unsubscribe("applicationplayerstatechange",this.Xc,this)};B(I4,E4);h=I4.prototype;h.yn=w;h.bo=function(){return 4};
h.fj=function(a){return a};
h.nq=function(){return!1};
h.os=w;h.xn=w;h.sh=w;h.qs=w;h.rs=w;h.T=w;B(K4,G);K4.prototype.C=function(){var a=this.o.A.A;if(this.F&&!(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>=N4(this,a))){var f;f=a.getId();f=this.G.G[f];if(N4(this,a)>b){var m=!M4(this,a);m!=f.visible&&(f.visible=m,c.push(f));m||(f=N4(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=I()/1E3-this.B);vfa(this,a-f-e+2)}else L4(this)}};
K4.prototype.A=function(){return this.B};
K4.prototype.T=function(){L4(this);this.o.unsubscribe("endseeking",this.C,this)};B(O4,G);h=O4.prototype;h.Ef=function(a){a.unsubscribe("adBreakComplete",this.Ef,this);this.L=Ai(A(this.Yx,this,a),0)};
h.Yx=function(a){var b=xfa(this,a),c=b.previous,b=b.next;this.L=0;var d,e=!1;switch(a.Ta.o){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&fa(b.Ta.A)?f4(b)-1:0x7ffffffffffff}0==a.F&&(j4(this.o,"bl"),h4(a)||j4(this.o,"fb"));"loaded"!=a.C||0==a.F&&h4(a)&&b&&1E3*this.o.o.getCurrentTime()>=f4(b)?(c&&g4(c)&&!e&&(b=d,d=f4(c),d>b&&(b=d),R4(this,c),Q4(this,c,b)),this.ze(a)):(this.C[a.getId()]=a,Q4(this,a,d),qq(this.o));Sb(this.C)==this.B.length&&this.D.C();P4(this)};
h.ze=function(a){a.unsubscribe("adBreakComplete",this.Ef,this);this.A&&a==this.A&&(this.A=null);R4(this,a);ob(this.B,a);delete this.C[a.getId()];Mb(a)};
h.yq=w;h.Ej=function(a){return this.C[a]};
h.xl=function(a){if(a.A){if(3!=a.Ta.o&&a.H){var b=this.o;r5(b);vq(b);this.F.gs(a)}else h4(a)&&!a.H?(b=this.o,r5(b),vq(b)):r5(this.o);this.ze(a);null!=this.o.D&&(a=this.D.A(),a=0<a?Math.floor(I()/1E3-a):0,s4(this.o.D,"set_previous_ad_end_time",{tfla:a}));a=this.D;a.F&&0<a.o.A.A&&(a.B=I()/1E3,a.C());for(;!kb(this.O);)S4(this,this.O.shift())}else a.isVisible||this.ze(a)};
h.T=function(){this.L&&Di(this.L);Mb(this.F);Mb(this.D);Mb(this.ea);F(this.B,this.ze,this);O4.N.T.call(this)};B(U4,O4);h=U4.prototype;h.Ej=function(a){a=U4.N.Ej.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.Ta=a.Ta;c.F=a.getId()}b&&"loaded"==b.C?(a.unsubscribe("adBreakComplete",this.Ef,this),this.C[a.getId()]=b,this.B[this.B.indexOf(a)]=b,Mb(a)):(this.Gf(),b&&(Mb(b),b=null),this.ze(a));b&&!b.A&&this.Gf();return b};
h.Ef=function(a){!$3(a)||"loaded"==a.C&&a.A||this.Gf();U4.N.Ef.call(this,a)};
h.xl=function(a){a.A&&10<this.V?V4(this):this.Gf();U4.N.xl.call(this,a)};
h.Gf=function(){if(!this.isDisposed())for(W4(this);this.K.length&&this.M.length+this.H.length<this.U;){var a=this.K.shift();a.subscribe("adBreakComplete",this.lp,this);this.M.push(a);i4(a)}};
h.yq=function(){V4(this)};
h.lp=function(a){a.unsubscribe("adBreakComplete",this.lp,this);ob(this.M,a);this.H.push(a)};
h.T=function(){W4(this);F(this.M,Mb);F(this.H,Mb);F(this.K,Mb);U4.N.T.call(this)};B(X4,O4);X4.prototype.$g=function(a){this.da=a};
X4.prototype.getVideoData=function(){return this.da};
X4.prototype.Z=function(a){"loaded"==a.C&&this.K.push(a);a.unsubscribe("adBreakComplete",this.Z,this)};
X4.prototype.S=function(){if(null!=this.A&&0<this.K.length){var a=this.K.shift();delete this.C[t2(a.Ta)];var b=Math.floor(I()/1E3)-this.aa;this.aa=null;a.unsubscribe("adBreakComplete",this.S,this);this.ze(a);this.A=null}0<this.M?(this.M--,Y4(this)):(a=this.V,r5(a),vq(a),(0,window.isFinite)(b)&&(this.U?U1(this.H,window.Infinity,!0):U1(this.H,this.H.getCurrentTime()+b,!0)))};B(Z4,G);Z4.prototype.G=function(){this.o||(this.o=$4(this.B.Ld()));this.A.o.ib(Vb(this.o),1)};
Z4.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.Ld(),function(a){var f=this.o[a];if(f){var m=this.B.L.get(a);m&&m.bc>b?(a=!v_(this.H,m),a!=f.visible&&(f.visible=a,c.push(f)),a||(f=m.bc-b,f<e&&(e=f,d=m))):!m||m.jb()?(EH(this.A.o,[f],void 0),delete this.o[a]):!f.visible&&m&&(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=I()/1E3-this.F);zfa(this,a-f-e+2)}else a5(this)}};
Z4.prototype.T=function(){Z4.N.T.call(this);this.A.unsubscribe("endseeking",this.D,this);a5(this)};B(d5,G);var Efa={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4};h=d5.prototype;
h.load=function(a){if(this.H=this.o.O){this.D=J4(this.o);var b=D2(this.o);b.A=Bfa(this,a);b.pi=this.o.M.B;b.wb.GET_MIDROLL_POSITION_IN_SEC=A(this.D.fj,this.D);if(a=n4(this.o.A).get(3)){var c=this.o.W();v2(c,["9418778","9417893","9417894","9417895","9419817"])||(b.B=B2(a));if(a=this.o.A.ha)b.C=a}this.H.R("adsManagerLoaded",this.ks,!1,this);this.H.R("adError",this.hs,!1,this);D_(this.H,b,this)}};
h.ks=function(a){if(a.C===this){var b={};Object.defineProperty(b,"currentTime",{get:A(function(){return this.o.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:A(function(){return this.o.o.getVideoData().lengthSeconds},this),
enumerable:!0});try{var c=Cfa(this);this.A=NU(a,this.o.M,b,c)}catch(d){f5(this,d);return}if(this.J=this.A.yo(b,this.o.A.A)){this.D.xn(this.A.Ld());this.M=new u4(this.o,this.J);this.G=new Z4(this.o,this.A,this.J);H(this,this.G);Ai(A(this.G.G,this.G),0);E(this.A.Ld(),0)||h5(this);this.F.R(this.A,"companionBackfill",A(this.rE,this));this.F.R(this.A,"prefetched",A(this.cy,this));this.F.R(this.A,"loaded",A(this.qE,this));this.F.R(this.A,"adError",A(this.pE,this),!1);this.F.R(this.A,"start",A(this.ey,this));
this.F.R(this.A,"complete",A(this.$x,this));this.F.R(this.A,"contentPauseRequested",A(this.sE,this));this.F.R(this.A,"contentResumeRequested",A(this.tE,this));this.F.R(this.A,"allAdsCompleted",A(this.ky,this));try{this.A.init("normal"),this.A.start()}catch(d){s4(this.o.D,"vmap_ads_manager_init_exception"),this.A.destroy(),this.A=null,f5(this,d)}}}};
h.sE=function(a){g5(this);(this.B=a.getAd())&&JT(this.B)&&(a=e5(this.B),this.C=new e3(a,this.o,this.A,MT(this.B),!0),T4(this.o),this.D.qs(this.B.D.o),this.C.show(),null!=this.o.D&&(a=this.J.A(),a=0<a?Math.floor(I()/1E3-a):0,s4(this.o.D,"show_instream_ads",{tfla:a})))};
h.tE=function(a){h5(this);if(this.o.getCurrentTime(1)<this.o.o.getVideoData().lengthSeconds){var b=this.o;r5(b);vq(b);this.B&&JT(this.B)&&this.D.rs(this.B.D.o)}this.K?this.B=null:g5(this);a=a.getAd();b=!0;if(a&&a!==this.B&&!JT(a)){b=this.A;if(null!=b.A&&b.A.S&&!this.K){this.K=!0;b=this.G;if(null!=b.o[0]){var c=b.o[0];delete b.o[0];b.o[0]=new iq(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=Dfa(this,a)}this.B&&JT(this.B)&&m5(this.o);this.B&&
JT(this.B)?(null!=this.o.D&&(b=this.J.A(),b=0<b?Math.floor(I()/1E3-b):0,s4(this.o.D,"set_previous_ad_end_time",{tfla:b.toString()})),b=this.J,0<b.B&&(b.o=I()/1E3),c5(this.G)):a&&a!==this.B&&!JT(a)&&b&&c5(this.G);this.G.G();this.B=a};
h.ky=function(){this.M.J=!0};
h.ey=function(a){(a=a.getAd())&&this.C&&(a=e5(a),this.C.adSystem=a)};
h.$x=function(a){JT(a.getAd())||this.B!==a.getAd()||(g5(this),this.B=null)};
h.cy=function(a){var b=a.getAd();null!=b&&(this.S[a.B.adBreakTime]=b)};
h.qE=function(a){if(null!=a.getAd()){var b;b=a.getAd().D;0<b.o&&(this.K=!1);b.B||JT(a.getAd())||h5(this)}};
h.pE=function(a){f5(this,a.getError())};
h.hs=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.B===this&&f5(this,b)};
h.rE=function(){J2();K2()};
h.T=function(){g5(this);this.H&&(this.H.za("adsManagerLoaded",this.ks,!1,this),this.H.za("adError",this.hs,!1,this));this.O.removeAll();this.F.removeAll();this.L=!1;this.A&&(this.A.destroy(),this.A=null);Mb(this.D);Mb(this.M);d5.N.T.call(this)};B(i5,F_);i5.B=10;i5.A=1E3;i5.o="livead";i5.Xa=function(a){return!!a.Wa.getVideoData().adModule};
h=i5.prototype;h.Xa=function(){return i5.Xa(this.app)};
h.create=function(){i5.N.create.call(this);this.D=new qfa(this);j4(this,"i");this.A=new nfa(this.W(),this.o.getVideoData().C||{});this.L=new yfa(this,this.o);this.Z=!1;if(this.O)this.O.o.B.F=RR();else{var a=this.A.U?void 0:$q(this.K),b=new E_(this.app,2),c=Wq(this.K);b.A||(b.A=ec(b.B),b.A.addEventListener=A(b.Pv,b),b.A.removeEventListener=A(b.Qv,b));this.M=new IR(c,void 0,a,b.A,!0);this.M.setSize(-1,-1);this.O=new C_(this.M)}if(Boolean(this.A.vmap&&!this.A.da)){this.C=new d5(this);try{this.C.load(this.A.vmap)}catch(d){s4(this.D,
"vmap_load_exception"),this.C.dispose(),this.C=null,q5(this,q4(new p4(this)))}}else q5(this,q4(new p4(this)));this.aa.push(Ii("showCompanionAdLoaded",this.Vy,this));a={};a.allowed=this.L.C;rq(this,{},a)};
h.destroy=function(){Oi(this.aa);this.aa.length=0;this.Y&&r5(this);if(this.F==oq(this.app)&&this.F){var a=this.app,b=this.F;p9(a);b!=a.o&&l9(a,a.o)}Nb(this.B,this.F,this.C);this.L=this.A=this.C=this.da=this.F=this.B=null;Xq(this.K);L2=I2=!1;this.D=null;this.J&&i5.N.destroy.call(this)};
h.W=function(){return this.app.W()};
h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Ja=function(){return this.o.Ja()||this.A.C};
h.qh=function(){var a;if(this.L){a=this.L;var b={allowed:a.C};a.o.excludedAds&&(b.ex_ad=a.o.excludedAds);a.B&&(b.at=a.B);a=b}else a=i5.N.qh.call(this);return a};
h.Ba=function(){return this.o.Ba()};
h.getVideoData=function(){return this.da};
h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
h.getAdState=function(){return this.U};
h.mc=function(a){i5.N.mc.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.Ej(b);if(d&&!M4(c.D,d)&&(c=c.F,d.A)){var e=o5(c.o),d=Math.max(0,f4(d)+c.C+c.B-1E3*c.o.getCurrentTime(1));Mf(e,"transition","opacity "+String(d)+"ms linear");Mf(e,"opacity","0");A4(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.S[b])&&JT(c)&&d.D.os(b)):0>b?(b=this.O.o,d=new OU("contentComplete"),
b.$(d),d.C&&(wK(sK(),41351033)||b.B.clear(),null!=b.A&&(d=b.A.Be(),null!=d&&fS(d,b.B.o)))):(b=this.C,null!=b.B&&(b=b.A,null!=b.A&&b.A.start())));if(a.getId()===i5.o&&null!=n5(this)){b=n5(this);for(a=Math.floor(a.start/1E3);n(b.C[a]);)a++;var d=b.ga++,c=0==a?new r2(1):new r2(2,a),e=b.V,f;f=o4(b.V.A,c.o);d=new e4(e,d,c,f,!1);b.C[a]=d;d.subscribe("adBreakComplete",b.Z,b);i4(d)}};
h.Hc=function(a){i5.N.Hc.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=this.getCurrentTime(1)*i5.A;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 o3&&p3(b.o,"fullscreen"));this.C&&"ytp-ad-fadeout"==a.style&&this.C.D.sh();a.getId()===i5.o&&null!=n5(this)&&this.getCurrentTime(1)*i5.A>=a.start&&(EH(this.o,[a],1),Y4(n5(this)))};
h.Sd=function(a){this.P(a)};
h.gz=function(a){var b=n5(this);if(null!=b&&null!=b.H){var c=n5(this).H.getCurrentTime();F(a,function(a){0!=c&&a.Zd>c&&(a=new iq(1E3*Math.floor(c+Math.random()*Math.max(a.Zd-i5.B-c,0)),1E3*a.Zd,{id:i5.o,priority:2}),this.ib([a],1))},this)}};
h.Vy=function(){this.P("publish_external_event","showCompanionAdLoaded")};
h.fe=function(a){switch(a){case "addata":var b=this.A;return{adTag:b.adTag,adTest:b.gb,forceAdType:b.Y,isAfvSkippableInstreamEnabled:b.K,isAfvStandardInstreamEnabled:b.L,isBlazer:b.Da,isDoubleClickEnabled:b.H,isForcedAd:b.da,isFreeWheelEnabled:b.M,isHouseBrandPlayer:b.Ab,isLeanback:b.C,isShortform:b.Va,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.B instanceof U4?this.B:null,null!=b?b.V: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 X2?b.adType:!1,adSkipped:b instanceof e3?b.G:!1,hasVideoStarted:b instanceof e3?b.J:!1,skippable:b instanceof e3?b.U:!1};case "getContentVideoData":return b=E2(this),{adModule:b.adModule,partnerTrackingToken:b.Z,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.Ve=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};B(t5,G);h=t5.prototype;h.T=function(){y5(this,new gy);x5(this);G5(this);this.A.unsubscribe("onVolumeChange",this.Fp,this);this.A.o.removeEventListener("onCaptionsTrackListChanged",this.K);var a=this.o;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.o.unsubscribe("proxyStateChange",this.Sp,this),this.o.unsubscribe("remotePlayerChange",this.Cl,this),this.o.unsubscribe("remoteQueueChange",this.Dl,this));F5(this,this.B);this.F&&this.A.o.Km(this.F);this.o=this.A=null};
h.vE=function(a,b){2==this.o.A||(z5(this)?this.ww.apply(this,arguments):this.C&&this.uw.apply(this,arguments))};
h.uw=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":E5(this,this.A.o.getCurrentTime());break;case "control_seek":E5(this,c[0])}};
h.ww=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).jb()?B5(this):C5(this);break;case "control_play":C5(this);break;case "control_pause":B5(this);break;case "control_seek":this.S=c[0];this.J.lf();break;case "control_subtitles_set_track":u5(this,c[0]);break;case "control_set_audio_track":c=c[0],z5(this)&&
(this.o.kr(A5(this),c),this.F=c)}};
h.Fp=function(a){if(z5(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.Pz=function(){ac(this.B)||F5(this,this.B);this.D=!1};
h.Sp=function(a,b){G5(this);2==b&&this.Qq()};
h.Cl=function(){if(z5(this)){x5(this);var a=yo(this.o);switch(a.o){case 1:D5(this);y5(this,new gy(8));break;case 3:y5(this,new gy(1));break;case 0:y5(this,new gy(2));this.J.stop();var b=this.A.o;(b=oq(b.app,b.playerType||1))&&b.Mf(!0);v5(this,this.A.o.getVideoData().lengthSeconds);break;case 2:y5(this,new gy(4));v5(this,ro(a));break;case -1:y5(this,new gy);break;case -1E3:y5(this,new gy(128,{}))}0==this.L&&(b=this.A.o,(b=oq(b.app,b.playerType||1))&&b.Mf(!1));this.L=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,F5(this,a));a=yo(this.o);-1==a.volume||Math.round(this.A.o.Cb())==a.volume&&this.A.o.sc()==a.muted||(this.A.o.setVolume(a.volume),a.muted?this.A.o.mute():this.A.o.unMute())}else w5(this)};
h.Dl=function(){z5(this)||w5(this)};
h.qC=function(){var a=this.S;x5(this);v5(this,a);-1==yo(this.o).o?E5(this,a):this.o.jr(a);y5(this,new gy(1))};
h.Qq=function(){G5(this);x5(this);var a=this.o.C.getReconnectTimeout();2!=this.o.A||(0,window.isNaN)(a)?this.C=!1:this.H=Ai(A(this.Qq,this),1E3)};B(H5,F_);var Qga=["play_pause","seek","set_audio_track"],Rga=["captions"];h=H5.prototype;h.Xa=function(){return this.app.Wa.W().tg};
h.create=function(){H5.N.create.call(this);this.F.push(Ii("yt-remote-before-disconnect",this.Cy,this));this.F.push(Ii("yt-remote-connection-change",this.Tp,this));this.Tp();var a=this.o.app.K;this.D&&this.D!=this.C&&1!=a&&3!=a&&this.load()};
h.destroy=function(){Oi(this.F);this.F.length=0;Mb(this.A);this.A=null;H5.N.destroy.call(this)};
h.load=function(){if(!this.loaded){H5.N.load.call(this);this.A&&(this.B=new t5(this,0,this.A));this.o.pauseVideo();this.P("command_redirect_controls",this,Qga,Rga);var a=Op();if(0!=a){var b=this.A?po(yo(this.A)):null;b&&b!=this.o.getVideoData().videoId||Ai(A(function(){this.L=a||0;FH(this.o,a,void 0)},this),0)}}};
h.unload=function(){this.loaded&&(this.D=this.C,uq(this),Mb(this.B),this.B=null,H5.N.unload.call(this))};
h.T=function(){this.destroy();Nb(this.B,this.A);this.A=this.B=null;H5.N.T.call(this)};
h.Sd=function(a,b){this.B&&this.B.vE.apply(this.B,arguments)};
h.getCurrentTime=function(){return this.L};
h.Cy=function(a){1==a&&(this.M=this.A?yo(this.A):null);this.K=a};
h.Tp=function(){var a=Qp();a?(this.A=a,this.K=this.M=null,this.load(),this.B||(this.B=new t5(this,0,this.A))):(Mb(this.A),this.A=null,this.loaded&&1==this.K&&(this.unload(),(a=this.M)&&po(a)==this.o.getVideoData().videoId?this.o.Fm(po(a),ro(a)):this.o.Fm(this.o.getVideoData().videoId)))};
h.fe=function(a,b){switch(a){case "casting":return!!this.A&&!!this.B;case "receivers":return this.U;case "currentReceiver":if(b)if("cast-selector-receiver"==b.key)Al();else if(this.D=b||this.C,b.key==this.C.key)Jp();else{var c=0,d="",e=this.o.$b();e&&(c=e.o,d=this.o.getVideoData().playlistId);if(e=this.o.$b()){for(var f=[],k=0;k<e.B;k++)f[k]=e.rb(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()};
Gp(b,c);Mb(this.B);this.B=null;this.load()}return this.D;case "castSelector":return c=vp(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&Al(),c}};
h.Ve=function(){return["casting","receivers","currentReceiver","castSelector"]};B(J5,Q);B(K5,Q);B(M5,Q);M5.prototype.show=function(){M5.N.show.call(this);this.G()};
M5.prototype.fa=function(){M5.N.fa.call(this);this.F.stop()};
M5.prototype.G=function(){var a=oq(this.A),b=this.A.getVideoData(),c=this.A.F.A,d=this.A.W(),e=MG(d),f;f=this.A;f=f.Ea?f.Ea.K.Ka():[0];var k=8*db(f)/1024,l=b.Fa&&this.A.W().experiments.showEndToEndLatency,m;m=this.A;m=(m=m.o&&m.o.Y)?m.D.Ka():[0];var p=b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming",u=db(m),v=a.G?a.G.o:null,z=v&&v.A,x=window.devicePixelRatio||1,ga=b.videoId,wa=b.clientPlaybackNonce,J=b.clientPlaybackNonce?"":"display:none",e=e.totalVideoFrames?
""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.D?d1(a.D):"",X;a:{if(b.Uf&&(X=b.Uf.match(/url=(https?)/))&&2==X.length){X=X[1];break a}X=""}c={video_id:ga,cpn:wa,cpn_style:J,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:X||d.protocol,dimensions:c.clientWidth+" x "+c.clientHeight+(1<x?" * "+x:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.A.Wa.Cb())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",live_latency_style:l?"":"display:none",live_latency_seconds_and_class:u.toFixed(0)+
" s, "+p,drm_style:z?"":"display:none",drm:z?v.A+" / "+v.o:""};b.A&&(d=kr(b.A)?"yes":"no",d+=" ("+b.A.id,b.F&&kr(b.A)&&(d+="/"+b.F.id),c.dash=d+")",c.mime=b.A.mimeType,b=b.A.video.fps,1<b&&(c.resolution+="@"+b));b=this.C;f=L5(b,f);b.A.element.innerHTML=f;f=this.D;m=L5(f,m);f.A.element.innerHTML=m;this.update(c);this.F.start()};B(N5,Gq);N5.F="(max-width: 656px)";N5.D="(min-width: 657px)";N5.C="(min-width: 1294px) and (min-height: 630px)";N5.A="(min-width: 1720px) and (min-height: 980px)";N5.B="(min-width: 1320px) and (min-height: 870px)";N5.o="(min-width: 967px)";h=N5.prototype;h.initialize=function(a){this.S=y(a)?window.document.getElementById(a):a;this.o(this.S)};
h.Fw=function(){this.K=new te(0,0,0,0);this.G=new te(0,0,0,0)};
h.addClass=function(a){Yd(this.element,arguments)};
h.$u=function(){this.H&&Hu(this.H);var a=A(this.df,this);this.H=Gu(a,0)};
h.df=function(){se(this.Ma(),we(this.G))||this.uh()};
h.uh=function(){if(this.A){var a=this.Ma();if(!a.isEmpty()){var b=!se(a,we(this.G)),c=O5(this);b&&(this.G.width=a.width,this.G.height=a.height);(c||b)&&this.P("resize")}}};
h.AE=function(a,b){P5(this,b)};
h.BE=function(a){a.getVideoData()&&P5(this,a.getVideoData())};
h.Ma=function(){var a=this.app.W(),b=this.app.Wa.Ja();if(b&&lt())return new re(window.outerWidth,window.outerHeight);if(b||a.qb){if(window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.J&&this.J.media==a||(this.J=window.matchMedia(a)),this.J&&this.J.matches||mt("aquos_dtv")))return new re(window.innerWidth,window.innerHeight)}else if(this.Z){if(a.experiments.ma("player_scaling_360p_to_720p")&&this.qa.matches)return new re(this.element.clientWidth,this.element.clientHeight);
if(this.Z.matches)return new re(426,240);a=this.app.na;if((a?this.ia:this.ha).matches)return new re(1280,720);if(a||this.na.matches)return new re(854,480);if(this.va.matches)return new re(640,360)}return new re(this.element.clientWidth,this.element.clientHeight)};
h.xw=function(){this.uh()};
h.T=function(){this.F&&(this.F.disconnect(),this.F=null);this.L&&(this.da?Oi(this.L):this.aa||Ei(this.L),this.H&&Hu(this.H));this.M&&Rl(this.M);this.D&&this.D.fa();this.A=this.C=this.S=null;N5.N.T.call(this)};B(V5,zv);V5.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)};
V5.prototype.H=function(a){this.B?this.B=!1:this.o&&this.C(a)};
V5.prototype.G=function(){this.J(this.F);this.o=!0};aa(X5);var p5=t("yt.player.utils.VideoTagPool.instance_")||X5.getInstance();q("yt.player.utils.VideoTagPool.instance_",p5,void 0);h=X5.prototype;h.Un=function(a){if(!(this.o.length>=a)){a-=this.o.length;for(var b=0;b<a;b++){var c=Y5(this);this.o.push(c)}}};
h.IE=function(a,b){return this.o.length?this.o.pop():Y5(this,a,b)};
h.TB=function(a){a&&E(this.A,a)&&(Zq(a),Ul(a),ob(this.A,a))};
h.ys=function(a){return this.o.length>=(a||1)};
h.Xu=function(){this.o=[];this.ys(4)?F(this.A,function(a){a.src||a.load();this.o.push(a)},this):this.Un(4)};
X5.prototype.fillPool=X5.prototype.Un;X5.prototype.getTag=X5.prototype.IE;X5.prototype.releaseTag=X5.prototype.TB;X5.prototype.hasTags=X5.prototype.ys;X5.prototype.activateTags=X5.prototype.Xu;B(Z5,Rj);h=Z5.prototype;h.wE=function(a){a=Yl(a);if(!pe(a,this.B)){var b=2;this.F&&(b|=8);this.B=a;this.bb(b,!0)}};
h.Tx=function(){this.F&&this.bb(8,!0);this.bb(2,!1)};
h.ws=function(a){var b=Yl(a);pe(b,this.B)||(this.B=b,(a=Vl(a))&&this.M(a)&&(this.bb(4,!0),this.o.za(this.G),this.G=S(this.o,this.C,"mouseout",this.xE)))};
h.xE=function(a){a=Xl(a);a&&this.M(a)||(this.B=new oe(window.NaN,window.NaN),this.bb(4,!1),this.o.za(this.G),this.G=S(this.o,this.C,"mouseover",this.ws))};
h.Fx=function(){this.bb(1,!0)};
h.Sv=function(a){a=Vl(a);a instanceof window.Element&&!(0<a.tabIndex)||this.bb(1,!0)};
h.vs=function(){this.F=!0;this.o.za(this.D);this.D=S(this.o,window.document,"mouseup",this.yE)};
h.yE=function(){this.F=!1;this.bb(8,!1);this.o.za(this.D);this.D=S(this.o,this.C,"mousedown",this.vs)};
h.xs=function(a){if(a=a.changedTouches[0])this.O=a.identifier,this.o.za(this.H),this.H=S(this.o,this.C,"touchend",this.zE),this.bb(1024,!0)};
h.zE=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=S(this.o,this.C,"touchstart",this.xs),this.bb(1024,!1))};
h.bb=function(a,b){this.isDisposed();var c=!this.A;b?(this.A|=a,a&1&&this.J.start(),a&2&&this.K.start(),a&512&&this.L.start()):(this.A&=~a,a&1&&this.J.stop(),a&2&&this.K.stop(),a&512&&this.L.stop());var d=!this.A;c!=d&&this.P("autohideupdate",d)};B($5,Fx);$5.prototype.show=function(){$5.N.show.call(this);var a=this.M;this.J=new Date;this.K(a,75)};
$5.prototype.M=function(){var a=1-1/1.5;this.C=(this.C+this.H)%(this.width*a);this.D=(this.D+this.G)%(this.height*a);this.context.drawImage(this.L,-1*this.C,-1*this.D);this.context.fillRect(0,this.F,this.width,75);this.F=(this.F+75+7)%this.height-75};
$5.prototype.fa=function(){Di(this.A);$5.N.fa.call(this)};B(c6,Q);c6.prototype.show=function(){c6.N.show.call(this);this.A&&this.A.show()};
c6.prototype.fa=function(){c6.N.fa.call(this);this.A&&this.A.fa()};
c6.prototype.F=function(a){var b=t("yt.www.feedback.showArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.D.getVideoData().clientPlaybackNonce};b(3037019,"player_error",c)||Zl(a)};
c6.prototype.T=function(){c6.N.T.call(this)};f6.prototype.isDisposed=function(){return!this.B};
f6.prototype.dispose=function(){h6(this);delete this.B};B(i6,Q);B(l6,Q);h=l6.prototype;
h.Ul=function(a,b){var c=b.currentTarget;if(!this.C){(0,window.isNaN)(this.D)||(this.D=window.NaN,this.M.style.background="");this.A=c;this.A.addEventListener("mouseout",this.Z);this.K=this.A.getAttribute("title");this.A.removeAttribute("title");this.element.className="ytp-tooltip";if(c=this.A.getAttribute("data-tooltip-image"))this.ha.style.backgroundImage="url("+c+")";L(this.element,"ytp-tooltip-image-enabled",!!c);this.C=a;this.A.removeEventListener("mouseover",m6(this,this.C));1==this.C||2==this.C?
K(this.element,"ytp-bottom"):3==this.C&&K(this.element,"ytp-top");this.G.addEventListener("resize",this.Os,this);this.S&&(o6(this),this.J.show(!1,400))}};
h.Wz=function(a){(a=Xl(a))&&yf(this.A,a)||this.Ge()};
h.Ns=function(a,b){if(a<=this.D&&this.D<=b){var c=this.D;this.D=window.NaN;s6(this,c)}};
h.Lx=function(){ku(this.L,this.D,96*this.F)};
h.Os=function(){se(GE(this.G).Ma(),this.da)||this.Ge()};
h.Ge=function(){switch(this.C){case 1:case 3:case 4:this.G.removeEventListener("resize",this.Os,this);this.A.removeEventListener("mouseout",this.Z);this.A.addEventListener("mouseover",m6(this,this.C));this.A.setAttribute("title",this.K);this.K="";this.A=null;break;case 2:this.H&&(this.H=null,this.L.unsubscribe("l",this.Ns,this),this.L=null),this.G.removeEventListener("videoready",this.Ge,this),this.O.stop()}this.C=null;this.S&&this.J.fa()};
h.qg=function(a){for(var b=0;b<arguments.length;b++)arguments[b]==this.C&&this.Ge()};
h.T=function(){null!=this.C&&this.Ge();l6.N.T.call(this)};B(t6,Q);t6.prototype.T=function(){this.C&&this.C();t6.N.T.call(this)};
t6.prototype.H=function(){Pi("iv-button-hovered")};
t6.prototype.D=function(){var a=Xd(this.ca.Ba(),"ytp-cards-teaser-shown");Pi("iv-teaser-clicked",a);this.G()};B(u6,Gq);h=u6.prototype;h.show=function(){u6.N.show.call(this);this.Z=R(this,window,"blur",this.yb);this.da=R(this,window.document,"click",this.lF)};
h.fa=function(){u6.N.fa.call(this);this.Y=null;this.Z&&(this.za(this.Z),this.za(this.da))};
h.Ye=function(a){this.Y=a;this.ea.show()};
h.yb=function(){this.ea.fa();this.za(this.Z);this.za(this.da)};
h.lF=function(a){var b=Wl(a);b&&(yf(this.element,b)||this.Y&&yf(this.Y,b)||!yx(a))||this.yb()};B(w6,u6);h=w6.prototype;h.show=function(){w6.N.show.call(this);this.gh();this.D.focus();this.P("show",!0)};
h.fa=function(){w6.N.fa.call(this);1>=this.C.length||(this.D.unsubscribe("back",this.Ud,this),Aq(this.C[this.C.length-1]),x6(this,this.C[0]),this.C=[this.D],this.D.o(this.element),Mf(this.D.element,"transform","translateX(0)"),Mf(this.D.element,"opacity","1"),this.gh());this.P("show",!1)};
h.gh=function(){this.B&&(y6(this),eg(this.element,this.size))};
h.Ud=function(){var a=this.C.pop();A6(this,a,this.C[this.C.length-1],!0)};
h.mC=function(a,b,c){this.H.dispose();this.H=null;B6(this,!0,[a,b]);Mf(a.element,"transform","translateX("+c+"px)");Mf(a.element,"opacity","0");Mf(b.element,"transform","translateX(0)");Mf(b.element,"opacity","1");eg(this.element,this.size);this.F=new Ud(pa(this.ly,a,b),250,this);this.F.start()};
h.ly=function(a,b){B6(this,!1,[a,b]);Aq(a);this.F.dispose();this.F=null};
h.jF=function(a){if(!$l(a))switch(am(a)){case 27:this.yb();Zl(a);break;case 37:1<this.C.length&&this.Ud();Zl(a);break;case 39:Zl(a)}};
h.T=function(){w6.N.T.call(this);this.H&&this.H.dispose();this.F&&this.F.dispose()};B(C6,Gq);h=C6.prototype;h.remove=function(a){ob(this.A,a);a.unsubscribe("size-change",this.Bl,this);a=sb(this.A);this.Db(a);this.P("size-change")};
h.removeAll=function(){for(var a=0;a<this.A.length;a++)this.A[a].unsubscribe("size-change",this.Bl,this);this.A=[];this.Db([]);this.P("size-change")};
h.xv=function(a,b){return b.priority-a.priority};
h.Bl=function(){this.P("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].element.focus()};B(E6,Gq);E6.prototype.D=function(a){Bq(this,"label",a)};B(G6,Gq);G6.prototype.F=function(){this.P("size-change")};
G6.prototype.focus=function(){this.G.focus()};
G6.prototype.K=function(){this.P("back")};B(H6,E6);H6.prototype.A=function(a){$l(a)||39!=am(a)||(this.element.click(),Zl(a))};
H6.prototype.D=function(a){H6.N.D.call(this,a);this.P("size-change")};B(J6,w6);h=J6.prototype;h.fa=function(){Bv(this.aa);J6.N.fa.call(this)};
h.Xx=function(a){yx(a)&&this.A.pauseVideo();this.yb()};
h.ez=function(a){if("gvn"!=this.A.W().o){var b=Wl(a);if(!this.B&&(!b||"A"!=b.tagName&&!Hf(b,"ytp-no-contextmenu"))){Zl(a);this.element.style.left="";this.element.style.top="";var c=Yl(a);c.x++;c.y++;b=Zf(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 te(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;Tf(this.element,xe(b));this.Ye();S(this.aa,window.document,"contextmenu",this.mz)}}};
h.fz=function(){Fq(this.J.element)};
h.mz=function(a){$l(a)||yf(this.element,Wl(a))||this.yb()};
h.PE=function(a){this.yb();this.o(a?this.A.Ba():window.document.body)};
h.QE=function(){N6(this,this.A.Gm(!0))};
h.RE=function(){N6(this,this.A.vr())};
h.SE=function(){N6(this,this.A.getVideoUrl(!0,!0))};
h.Az=function(){N6(this,this.A.getVideoUrl(!1,!0))};
h.TE=function(){this.yb()};
h.UE=function(a){var b=this.A,c=oq(b.app);c&&c.tj(new nv("feedback",!1,{gpu:F9(b.app)}));By(this.A.W())&&yx(a)&&!t("yt.www.feedback.start")(void 0,{as3:!1,html5:!0,player:!0})&&(this.A.Ja()&&Cy(this.A),Zl(a));this.yb()};
h.VE=function(){this.A.Ar();this.yb()};
h.WE=function(a,b){M6(this,b)};B(O6,Rq);h=O6.prototype;h.show=function(){this.B||(S(this.F,this.A,"videodatachange",this.D.Pf,this.D),S(this.F,this.A,"videoplayerreset",this.D.Pf,this.D));O6.N.show.call(this)};
h.fa=function(){Bv(this.F);O6.N.fa.call(this)};
h.YE=function(a){var b=this.A.W();By(b)&&(a=qy(a.state)&&!qy(a.o)||nH(this.A)&&T(a.state,2),Mf(this.element,"transition-delay",a?"2s":""));this.D.Pf()};
h.XE=function(){this.element.style.backgroundImage=""};
h.Bs=function(){3==this.A.getPresentingPlayerType()?this.C.show():P6(this.C,this.A,nz(this.A));this.B&&3!=this.C.o&&this.vC(this.A.$b(),this.A.getVideoData())};
h.vC=function(a){for(var b=this.A.W(),c,d=0;d<arguments.length;d++){var e=arguments[d];if(!(!e||e instanceof Aw&&!e.videoId)){if(!b.isMobile){c=GE(this.A).Ma();var f=c.width,k=c.height;if(900<f||600<k)if(c=e.Bc(b,"maxresdefault.jpg"))break;if(430<f||320<k)if(c=e.Bc(b,"sddefault.jpg")||e.Bc(b,"hqdefault.jpg")||e.Bc(b,"mqdefault.jpg"))break}if(c=e.Bc(b,"default.jpg"))break}}this.element.style.backgroundImage=c?"url("+c+")":""};B(Q6,zv);
Q6.prototype.C=function(a){var b=!1,c=am(a),d=Wl(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.o.W();$l(a)?(e=!1,k=!0):l.ab&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!=m&&"button"!=m&&0!=m.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:m=d.getAttribute("role"),d=38==c?d.previousSibling:d.nextSibling,
"slider"==m?b=!0:e&&("option"==m?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):m&&0==m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(this.B.B&&e&&!f)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:o7(this.B,c),f=!0}l.Ab||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.A+=f,0=="awesome".indexOf(this.A)?(f=!0,7==this.A.length&&(l=this.o.Ba(),m=!Xd(l,"ytp-color-party"),L(l,"ytp-color-party",m))):(this.A=
f,f=0=="awesome".indexOf(this.A)));if(e&&!f){switch(c){case 32:j6(this.H);jy(nz(this.o))?this.o.pauseVideo():this.o.Yc();k=f=!0;break;case 37:this.o.Zc(-5);k=f=!0;break;case 39:this.o.Zc(5);k=f=!0;break;case 38:this.o.setVolume(Math.min(this.o.Cb()+5,100));k=f=!0;break;case 40:this.o.setVolume(Math.max(this.o.Cb()-5,0));k=f=!0;break;case 27:this.J()&&(k=f=!0);break;case 36:this.o.Sb(0);k=f=!0;break;case 35:this.o.Sb(window.Infinity);k=f=!0;break;case 67:lH(this.o.app.C,"captions")&&(this.o.app.Xf("onCaptionsToggle"),
k=f=!0);break;case 66:S6(this,"background")&&(f=!0);break;case 79:S6(this,"textOpacity")&&(f=!0);break;case 87:S6(this,"windowOpacity")&&(f=!0);break;case 187:S6(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:S6(this,"fontSizeIncrement",!0,!0)&&(f=!0)}var p;48<=c&&57>=c?p=c-48:96<=c&&105>=c&&(p=c-96);(0,window.isNaN)(p)||(k=this.o.Ue(),this.o.Sb(p/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.F(!0);(b||k)&&this.G.bb(2,!0);(f||e&&R6(this,c,a.shiftKey))&&Zl(a);b=this.o;
b.W().cb&&(a={keyCode:am(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:$l(a),fullscreen:b.Ja()},b.app.Pi("onKeyPress",a))};
Q6.prototype.D=function(a){this.B.B&&p7(this.B,am(a))};
Q6.prototype.F=function(a){L(this.o.Ba(),"ytp-keyboard-focus",a);L(this.K.element,"ytp-keyboard-focus",a)};B(U6,Q);U6.prototype.F=function(a){var b=this.A.W();By(b)&&Mf(this.element,"transition-delay",qy(a.state)&&!qy(a.o)?"2s":"");V6(this,a.state)};B(W6,Gq);W6.prototype.F=function(){var a=this.A.Ue();this.G.style.width=100*U2(new R2(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
W6.prototype.D=function(){this.A.W();2==this.A.getPresentingPlayerType()||X6(this)&&!this.A.Ja()?this.C||(this.show(),this.C=R(this,this.A,"progresssync",this.F),this.F()):this.C&&(this.fa(),this.za(this.C),this.C=null)};B(Y6,Q);Y6.prototype.D=function(a){zy(a,this.A)&&this.A.Jm(this.C)};B(Z6,Q);h=Z6.prototype;h.show=function(){Z6.N.show.call(this);this.C.addEventListener("videodatachange",this.vh,this);this.C.addEventListener("onPlaylistUpdate",this.vh,this);this.vh()};
h.fa=function(){Z6.N.fa.call(this);this.C.removeEventListener("videodatachange",this.vh,this);this.C.removeEventListener("onPlaylistUpdate",this.vh,this);$6(this,null)};
h.vh=function(){$6(this,this.C.$b());var a=this.A.author;this.update({title:this.A.title,subtitle:P(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.A.o+1,PLAYLIST_LENGTH:this.A.B}),playlisturl:this.C.getVideoUrl(!0)});this.Sm()};
h.Sm=function(){var a=this.A.K;if(a==this.G)this.F.element.setAttribute("aria-checked",!1),this.F=this.D[this.A.o];else{for(var b=0;b<this.D.length;b++)this.D[b].dispose();var c=this.A.B;this.D=[];for(b=0;b<c;b++){var d=new Y6(this.C,this.A,b);this.D.push(d);d.o(this.K)}this.F=this.D[this.A.o];this.G=a}this.F.element.setAttribute("aria-checked",!0)};
h.kF=function(){this.J()};
h.XA=function(a){var b=this.C.getVideoUrl(!0);Ay(b,this.C,a)};
h.focus=function(){this.F.focus()};
h.T=function(){this.fa();Z6.N.T.call(this)};B(b7,Q);b7.prototype.C=function(){this.A&&2!=this.G.getPresentingPlayerType()?(this.update({text:P("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.A.o+1,PLAYLIST_LENGTH:this.A.B}),title:P("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.A.title})}),this.B||(this.show(),r6(this.D))):this.B&&(this.fa(),r6(this.D))};
b7.prototype.F=function(){this.A&&this.A.unsubscribe("shuffle",this.C,this);(this.A=this.G.$b())&&this.A.subscribe("shuffle",this.C,this);this.C()};B(c7,Q);c7.prototype.F=function(a){zy(a,this.C)&&(a=this.A.rb().videoId,T9(this.C.app,a,this.A.aa,this.A.Te()),this.D())};B(d7,Q);h=d7.prototype;h.show=function(){d7.N.show.call(this);this.A.addEventListener("videodatachange",this.Tm,this);this.A.addEventListener("presentingplayerstatechange",this.Ks,this);this.Tm()};
h.fa=function(){d7.N.fa.call(this);this.A.removeEventListener("videodatachange",this.Tm,this);this.A.removeEventListener("presentingplayerstatechange",this.Ks,this);this.F=null;this.B&&this.D()};
h.Tm=function(){var a=O(this.A.getVideoData().G,zx);this.F=a;!a&&this.B&&this.D();for(a=0;a<this.C.length;a++)this.C[a].dispose();this.C=[];for(a=0;a<this.F.length;a++){var b=new c7(this.A,this.F[a],this.D);this.C.push(b);b.o(this.H)}};
h.Ks=function(a){e7(this)&&T(a.state,2)&&this.D()};
h.wF=function(){this.D()};
h.focus=function(){var a=this.C[0];K(this.element,"ytp-scroll-fix");a.focus();Zd(this.element,"ytp-scroll-fix")};
h.T=function(){this.fa();d7.N.T.call(this)};B(f7,Q);f7.prototype.C=function(){var a=this.A.W().experiments.ma("related_menu")&&2!=this.A.getPresentingPlayerType()&&this.A.getVideoData().G&&!T(nz(this.A),2);L(this.D,"ytp-related-menu-button-visible",a)};
f7.prototype.T=function(){f7.N.T.call(this);Zd(this.D,"ytp-related-menu-button-visible")};B(g7,Q);h=g7.prototype;h.hA=function(a){a=Wl(a);yf(this.M,a)||yf(this.G,a)||this.J()};
h.show=function(){g7.N.show.call(this);1==this.A.getPlayerState()&&(this.A.pauseVideo(),this.F=!0);this.Ls()};
h.fa=function(){var a=this.B;g7.N.fa.call(this);a&&this.F&&(this.A.Yc(),this.F=!1)};
h.Ls=function(){K(this.element,"ytp-share-panel-loading");Zd(this.element,"ytp-share-panel-fail");var a=this.A.getVideoData(),b=this.A.be(),c=b&&this.L.checked;L(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=this.A.W();e.zb&&(d.authuser=e.zb);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);var f=this.A.W();Bj(f.baseYtUrl+"share_ajax",{context:this,method:"GET",onError:this.zF,kb:function(a,b){b&&b.actions&&W5(b.actions);
this.LA.call(this,0,b)},
xd:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);Bq(this,"link",a);Bq(this,"linkText",a)};
h.LA=function(a,b){if(!this.isDisposed()){Zd(this.element,"ytp-share-panel-loading");i7(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k=Kfa(f.img);if(k){var l=new Q(["a",["ytp-share-panel-service-button","ytp-button"],["span","ytp-share-panel-service-button-icon"],{href:f.url,target:"_blank",title:f.sname}]);l.ra["ytp-share-panel-service-button-icon"].innerHTML=k;l.R("click",pa(this.HA,f.url));Kb(l,p6(this.D,l.element));this.C.push(l);d++}}c=new Q(["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:P("YTP_MORE")}]);c.ra["ytp-share-panel-service-button-icon"].innerHTML=Ah?'<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",A(this.Vz,this,b.more));Kb(c,p6(this.D,c.element));this.C.push(c);Bq(this,"buttons",this.C)}};
h.zF=function(){Zd(this.element,"ytp-share-panel-loading");K(this.element,"ytp-share-panel-fail")};
h.HA=function(a,b){if(yx(b)){var c={};c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d,e=c;e||(e={});c=window;a instanceof He?d=Je(a):d="undefined"!=typeof a.href?a.href:String(a);var f=e.target||a.target,k=[],l;for(l in e)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+e[l]);break;case "target":case "noreferrer":break;default:k.push(l+"="+(e[l]?1:0))}l=k.join(",");if((rc()||nc("iPad")||nc("iPod"))&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f)l=c.document.createElement("A"),l.setAttribute("href",d),l.setAttribute("target",f),e.noreferrer&&l.setAttribute("rel","noreferrer"),d=window.document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,c,1),l.dispatchEvent(d),c={};else if(e.noreferrer){if(c=c.open("",f,l))kF&&Ha(d,";")&&(d="'"+d.replace(/'/g,"%27")+"'"),c.opener=null,d=ya(d),d=lj(De("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+d+'">'),c.document.write(Re(d)),c.document.close()}else c=
c.open(d,f,l);if(d=c)d.opener||(d.opener=window),d.focus();Zl(b)}};
h.Vz=function(a,b){if(Ay(a,this.A,b)){var c=this.A.app,d=c.getVideoData();c.P("SHARE_CLICKED",{videoId:d.videoId,listId:d.playlistId,feature:"player_"+c.X.Aa})}};
h.yF=function(a){!a&&h7(this)&&(this.F=!1,this.J())};
h.focus=function(){this.K.focus()};
h.T=function(){g7.N.T.call(this);i7(this)};B(j7,Q);j7.prototype.D=function(){L(this.C,"ytp-share-button-visible",!!this.A.getVideoData().videoId)};
j7.prototype.T=function(){j7.N.T.call(this);Zd(this.C,"ytp-share-button-visible")};B(k7,Q);h=k7.prototype;
h.Um=function(){var a=tH(this.C).shader;"Spherical"==a||"Spherical3D"==a?this.B||(a=GE(this.C).C,K(this.C.Ba(),"ytp-webgl-spherical"),this.show(),this.G=new N2(a,!0,null,!0),this.G.subscribe("dragstart",this.oz,this),this.G.subscribe("dragmove",this.zp,this),this.G.subscribe("dragend",this.nz,this),this.F=new N2(this.element,!0),this.F.subscribe("dragstart",this.gA,this),this.F.subscribe("dragend",this.fA,this),this.da=this.R("keydown",this.CF),this.aa=this.R("keyup",this.DF),R(this,a,"click",this.BF,
this)):this.B&&(m7(this),Zd(this.C.Ba(),"ytp-webgl-spherical"),this.fa(),this.G.dispose(),this.G=null,this.F.dispose(),this.F=null,this.za(this.da),this.za(this.aa))};
h.gA=function(a,b,c){m7(this);var d=$f(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?l7(this,0<a?-1:1,0,0):l7(this,0,0<b?-1:1,0)};
h.fA=function(){m7(this);this.D=2;this.H.start()};
h.oz=function(a,b){m7(this);this.S=!1;this.Z=new oe(a,b);K(this.C.Ba(),"ytp-dragging")};
h.zp=function(a,b){var c=new oe(a,b),d;d=this.Z;d=new oe(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.S=!0);this.Z=c;var c=tH(this.C),e=c.fov,f=Math.PI*e*.8,k=GE(this.C).Ma();d.scale(1/k.width*f,1/k.height*f);n7(this,c.yaw+d.x,c.pitch+d.y,e,c,I())};
h.nz=function(a,b){this.zp(a,b);Zd(this.C.Ba(),"ytp-dragging");this.D=2;this.H.start()};
h.BF=function(a){this.S&&(a.stopPropagation(),this.S=!1)};
h.AF=function(a){var b=tH(this.C),c=b.yaw,d=b.pitch,e=b.fov;if(1==this.D)var f=.003*e*(a-this.M),c=c+f*this.Y,d=d+f*this.U,e=e+f*this.O;else if(2==this.D){if(1E-5>Math.abs(this.L)&&1E-5>Math.abs(this.J)){this.D=this.J=this.L=0;return}f=a-this.M;f/=Math.pow(1.013,f);c+=f*this.L;d+=f*this.J}n7(this,c,d,e,b,a);this.H.start()};
h.CF=function(a){!$l(a)&&o7(this,am(a))&&Zl(a)};
h.DF=function(a){p7(this,am(a))};
h.T=function(){this.F&&(this.G.dispose(),this.G=null,this.F.dispose(),this.F=null);k7.N.T.call(this)};B(q7,Q);h=q7.prototype;h.show=function(){q7.N.show.call(this)};
h.fa=function(){this.A.stop();this.D.style.display="none";q7.N.fa.call(this)};
h.EF=function(a){r7(this,a.state)};
h.wz=function(){r7(this,nz(this.C))};
h.nA=function(){this.D.style.display="block"};B(s7,Q);s7.prototype.D=function(){var a=oq(this.A.app);a&&a.A.o.webkitShowPlaybackTargetPicker()};
s7.prototype.C=function(){var a=oq(this.A.app);this.xb(!!a&&a.Va);a=oq(this.A.app);this.element.innerHTML=a&&a.Ua?Ah?'<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>':
Ah?'<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(t7,Gq);t7.C=84;t7.o=10;t7.D=72;t7.A=200;t7.B=.555;h=t7.prototype;h.Dv=function(){u7(this,this.C.getVideoData())};
h.Rv=function(){this.S.fa()};
h.Ij=function(){this.A=Math.floor(this.H/Math.min(t7.o,Math.ceil(this.H/t7.D)));this.Y=this.A*t7.B;var a=this.C.Ue(),b=iu(this.F,this.A),b=this.F.o[b].Gj(a.current);if(b!=this.U){var c=Math.round(2*this.A),d=Math.round(2*this.Y),e=hu(this.J,b,c),c=W2(this.ia,e,c,d,!0);Tf(this.ga,(this.H-c.width)/2);this.element.style.height=Uf(c.height+t7.C,!0);this.U=b}Af(this.ha,xx(this.aa?a.current-a.seekableEnd:a.current));Hu(this.M);a=A(this.ij,this);this.M=Gu(a,void 0);this.Z.lf()};
h.aF=function(a,b){u7(this,b)};
h.ij=function(){lg(this.D,!1);Hu(this.M);var a=this.C.Ue(),b=this.F.o[0].ts(),c=this.F.o[0].Pm(),a=a.current/(a.seekableEnd-a.seekableStart)*(c-b+1)*this.A-this.H/2,d=Math.floor(a/this.A)+b,c=Math.min(d+Math.min(t7.o,Math.ceil(this.H/this.A)),c),d=Math.max(d,b),e;if(this.K>=d&&this.G<=c){for(e=this.K;e>c;e--)qf(this.D.children[e-this.G]);for(e=d-1;e>=this.G;e--)qf(this.D.children[e-this.G]);for(e=this.G-1;e>=d;e--)this.D.insertBefore(v7(this,e),this.D.firstChild);e=this.K+1}else of(this.D),e=d;for(;e<=
c;e++)this.D.appendChild(v7(this,e));for(e=d;e<=c;e++)Mf(this.D.children[e-d],"transform","translatex("+(-a+(e-b)*this.A)+"px)");this.G=d;this.K=c;lg(this.D,!0)};
h.$E=function(){for(var a=this.G;a<=this.K;a++)ku(this.J,a,2*this.A)};
h.ZE=function(){var a=GE(this.C).Ma();this.H!=a.width&&(this.H=a.width,this.F&&(this.Ij(),this.ij()))};
h.bF=function(a){this.element.style.bottom=a+"px"};
h.show=function(){t7.N.show.call(this);n6(this.ea,!1)};
h.fa=function(){this.F&&u7(this,null);t7.N.fa.call(this);n6(this.ea,!0)};
h.T=function(){u7(this,null);t7.N.T.call(this)};B(w7,Q);h=w7.prototype;h.dF=function(){x7(this,this.A.getVideoData())};
h.eF=function(){this.B||this.F.fa()};
h.gF=function(a){T(a.state,32)||T(a.state,16)||T(a.state,1)||this.F.fa()};
h.hF=function(a,b){x7(this,b)};
h.fF=function(){var a=nz(this.A);(T(a,32)||T(a,16))&&y7(this)};
h.cF=function(){this.G=window.NaN;y7(this)};
h.fa=function(){this.D&&x7(this,null);w7.N.fa.call(this)};B(z7,Q);h=z7.prototype;h.iF=function(){this.C.W().La?(vH(this.C,this.C.Ja()?"fullscreen_exit":"fullscreen_enter"),Cy(this.C)):this.A&&v6(this.A)?this.A.yb():(this.F.B.bb(16,!0),this.A.Ye(this.element))};
h.yz=function(){A7(this);this.F.B.bb(16,!0);this.A.Ye(this.element)};
h.Ds=function(){this.xb(yy(this.C))};
h.Cs=function(a){a?(this.element.innerHTML=Ah?'<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-16" /><path d="M29,16 L29,13 L26,13 L26,10 L23,10 L23,16 L29,16 Z" id="ytp-svg-17" /><path d="M29,23 L29,20 L23,20 L23,26 L26,26 L26,23 L29,23 Z" id="ytp-svg-18" /><path d="M10,26 L13,26 L13,20 L7,20 L7,23 L10,23 L10,26 Z" id="ytp-svg-19" /></defs><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-16" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-17" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-18" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-19" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-0" fill="#fff" xlink:href="#ytp-svg-16" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-1" fill="#fff" xlink:href="#ytp-svg-17" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-2" fill="#fff" xlink:href="#ytp-svg-18" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-3" fill="#fff" xlink:href="#ytp-svg-19" /></svg>',
a=P("YTP_EXIT_FULLSCREEN")):(this.element.innerHTML=Ah?'<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-12" /><path d="M23,10 L23,13 L26,13 L26,16 L29,16 L29,10 L23,10 Z" id="ytp-svg-13" /><path d="M23,23 L23,26 L29,26 L29,20 L26,20 L26,23 L23,23 Z" id="ytp-svg-14" /><path d="M10,20 L7,20 L7,26 L13,26 L13,23 L10,23 L10,20 Z" id="ytp-svg-15" /></defs><use class="ytp-svg-shadow ytp-fullscreen-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-12" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-13" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-14" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-15" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-0" fill="#fff" xlink:href="#ytp-svg-12" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-1" fill="#fff" xlink:href="#ytp-svg-13" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-2" fill="#fff" xlink:href="#ytp-svg-14" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-3" fill="#fff" xlink:href="#ytp-svg-15" /></svg>',
a=P("YTP_FULLSCREEN"));Bq(this,"title",this.A?null:a);r6(this.F.A)};
h.T=function(){this.A?this.F.B.bb(16,!1):(this.D(),this.D=null);z7.N.T.call(this)};B(B7,Q);B7.prototype.C=function(){var a=oq(this.A.app);a&&(a=a.A,a.o.webkitSetPresentationMode("picture-in-picture"==a.o.webkitPresentationMode?"inline":"picture-in-picture"))};B(C7,Q);var E7={1:"M11,10 L18,13.74 18,22.28 11,26 Z M18,13.74 L26,18 26,18 18,22.28 Z",2:"M11,10 L17,10 17,26 11,26 Z M20,10 L26,10 26,26 20,26 Z",4:"M10,10 L18,10 18,26 10,26 Z M18,10 L26,10 26,26 18,26 Z"};C7.prototype.H=function(a){D7(this,a.state)};
C7.prototype.G=function(){L(this.element,"ytp-play-button-playlist",nH(this.A))};
C7.prototype.J=function(){2==this.D?vH(this.A,"pause"):3==this.D?vH(this.A,"replay"):1==this.D?vH(this.A,"play"):4==this.D&&vH(this.A,"stop");jy(nz(this.A))?this.A.pauseVideo():this.A.Yc()};
C7.prototype.T=function(){this.C&&this.C();C7.N.T.call(this)};B(F7,Q);F7.prototype.J=function(){G7(this);this.K&&(this.za(this.K),this.K=null);this.H=this.A.getVideoData(1);if(this.C=this.A.$b())this.C.subscribe("shuffle",this.J,this),this.K=R(this,this.A,"progresssync",this.O);this.G=H7(this);I7(this);this.xb(nH(this.A)||Jx(this.A.W(),this.H,this.C)&&this.F)};
F7.prototype.U=function(a){vH(this.A,this.F?"next":"previous");var b=!0;this.M?b=zy(a,this.A):Zl(a);b&&(this.F?this.A.xj(!0):this.G?this.A.Sb(0):this.A.yj(!0))};
F7.prototype.O=function(){var a=H7(this);a!=this.G&&(this.G=a,I7(this))};
F7.prototype.T=function(){this.D&&(this.D(),this.D=null);G7(this);F7.N.T.call(this)};B(J7,Gq);h=J7.prototype;h.oF=function(a){if(!$l(a)){var b=!1;switch(am(a)){case 36:this.C.Sb(0);b=!0;break;case 35:this.C.Sb(window.Infinity);b=!0;break;case 34:this.C.Zc(-60);b=!0;break;case 33:this.C.Zc(60);b=!0;break;case 38:this.C.Zc(5);b=!0;break;case 40:this.C.Zc(-5),b=!0}b&&Zl(a)}};
h.Es=function(a,b){K7(this,b,"newdata"==a)};
h.vw=function(){this.Es("newdata",cb(this.C.getVideoData()))};
h.nF=function(){R7(this.C.getVideoData())?nz(this.C).jb()&&S7(this,!0):S7(this,!1)};
h.mF=function(a){0<aB(a,64)||!R7(this.C.getVideoData())?S7(this,!1):jy(a.state)&&0>aB(a,64)&&S7(this,!0)};
h.qF=function(){this.Ia.show()};
h.sF=function(a,b,c){var d=$f(this.element),e=U7(this).o,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=U2(this.A,Number(c.getAttribute("data-position")),0)*e+$f(this.Ea).x);this.Ca.x=a-d.x;this.Ca.y=b-d.y;c=U7(this);a=T2(this.A,c.A);d=f||xx(this.Ga?a-this.A.o:a);b=this.tb;c=c.position+this.gb;f=!!f;2!=b.C&&(b.element.className="ytp-tooltip ytp-bottom",b.C=2,b.S&&b.J.show(),e=b.G.getVideoData(),b.H=$w(e),b.H&&(b.L=ax(e),b.L.subscribe("l",b.Ns,b)));b.update({text:d,title:""});L(b.element,"ytp-text-detail",
!!f);d=-1;b.H&&(d=iu(b.H,96*b.F),d=b.H.o[d].Gj(a));s6(b,d);q6(b,c,!!f);L(this.ga,"ytp-hover-progress-shown",!T(nz(this.C),64));O7(this)};
h.rF=function(){this.tb.Ge();this.Ia.fa();Zd(this.ga,"ytp-hover-progress-shown")};
h.pF=function(a,b){this.D&&(Ei(this.D),this.D=0);this.nb=b;K(this.element,"ytp-drag");(this.na=jy(nz(this.C)))&&this.C.pauseVideo()};
h.tF=function(){this.ea=0;Zd(this.element,"ytp-pull-ui");Zd(this.element,"ytp-pulling");if(0<this.J){var a=$s(),b=this.J,c=U7(this).position;this.D&&Ei(this.D);this.D=Eq(A(this.Is,this,a,b,c),0)}this.C.Sb(T2(this.A,U7(this).A));Zd(this.element,"ytp-drag");this.na&&!T(nz(this.C),2)&&this.C.Yc()};
h.Is=function(a,b,c){var d;d=($s()-a)/200;d=1-Math.pow(1-d,3);var e=c+d*(this.H*this.G-c);if(0>d||1<d)d=1;T7(this,(1-d)*b,e,this.H);this.D=1>d?Eq(A(this.Is,this,a,b,c),0):0};
h.uF=function(a,b){var c=!1,d=!1,e=U7(this);3600<=S2(this.A)&&(T7(this,this.nb-b-10,e.position,e.A),d=!0,c=this.J>.1*(this.K?60:40),e=U7(this));L(this.element,"ytp-pull-ui",d);c&&K(this.element,"ytp-pulling");c=0;e.B&&0>=e.position?c=-1:e.D&&e.position>=e.width&&(c=1);!this.D||c&&c==this.ea||Di(this.D);c&&(this.D=Eq(A(this.Hs,this,$s(),this.S),0));this.ea=c;this.C.Sb(T2(this.A,e.A),!1)};
h.Hs=function(a,b){if(this.ea){var c=this.G*(this.aa-1);this.S=ke(b+this.ea*($s()-a)*.3,0,c);M7(this);this.C.Sb(T2(this.A,U7(this).A),!1);0<this.S&&this.S<c&&(this.D=Eq(A(this.Hs,this,a,b),0))}};
h.setPosition=function(a,b,c){this.gb=a;this.G=b;this.K=c;M7(this)};
h.Gs=function(){var a=Bh();this.M.innerHTML=a;a=Bh();this.L.innerHTML=a;K(this.element,"ytp-clip-hover")};
h.Fs=function(){var a=Dh();this.M.innerHTML=a;a=Ch();this.L.innerHTML=a;Zd(this.element,"ytp-clip-hover")};
h.Jj=function(){this.Y=0;this.U=window.Infinity;Q7(this);N7(this,this.H,this.ia)};
h.Js=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.Z[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.Z[d]=c;this.ha[d]=e;V7(this,c,e);"ytp-chapter-marker"==c.style?this.Ob.appendChild(e):this.Nb.appendChild(e)}}else X7(this,c)}};
h.vF=function(a){for(var b=0;b<a.length;b++)X7(this,a[b])};
h.T=function(){this.D&&(Di(this.D),this.D=0);P7(this,!1);J7.N.T.call(this)};B(Y7,Q);Y7.prototype.D=function(a){Z7(this,a.state)};B($7,Q);
$7.prototype.A=function(){var a=!1;-1!=this.ca.mh().indexOf("remote")&&(a=1<this.ca.vb("remote","receivers").length);this.xb(a);var b=1;a&&this.ca.vb("remote","casting")&&(b=2);if(this.C!=b)switch(this.C=b,b){case 1:this.element.innerHTML=Ah?'<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-4" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-4" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-4" /></svg>';break;
case 2:a=zh(),this.element.innerHTML=a}};
$7.prototype.D=function(){vH(this.ca,"remote");if(this.ca.vb("remote","castSelector"))this.ca.Ja()&&Cy(this.ca),this.ca.ce("remote","castSelector",!0);else{var a=this.F,b=this.element;v6(a)?a.yb():(w8(a),a.K.open(),a.Ye(b))}};B(a8,E6);a8.prototype.L=function(){b8(this,!this.A);this.P("select",this.A)};
a8.prototype.getValue=function(){return this.A};B(c8,a8);c8.prototype.F=function(){lH(this.ca.app.C,"iv-module")&&3!=this.ca.getPresentingPlayerType()?this.C||(x8(this.G,this),this.C=!0):this.C&&(y8(this.G,this),this.C=!1);b8(this,YJ(this.ca.app.C))};
c8.prototype.H=function(a){YJ(this.ca.app.C);a?this.ca.wj("iv-module"):this.ca.Cr("iv-module")};B(d8,E6);h=d8.prototype;h.open=function(){z6(this.A,this.S)};
h.Mc=function(a){if(this.K){var b=this.C[this.K];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.C[a].element.setAttribute("aria-checked",!0);this.Db(this.zc(a));this.P("size-change");this.K=a};
h.Ib=function(a){this.Mc(a);this.P("select",a)};
h.eA=function(a){"true"!=this.C[a].element.getAttribute("aria-disabled")&&this.Ib(a)};
h.zc=function(a){return a.toString()};
h.xF=function(a){$l(a)||39!=am(a)||(this.open(),Zl(a))};
h.T=function(){d8.N.T.call(this);for(var a in this.C)this.C[a].dispose()};B(f8,d8);f8.prototype.J=function(){var a=this.ca.Dr();1<a.length?(e8(this,O(a,this.G)),this.M=Hb(a,this.G,this),this.L.Db(a.length?" ("+a.length+")":""),this.Mc(this.G(this.ca.ag())),this.F||(x8(this.A,this),this.F=!0)):this.F&&(y8(this.A,this),this.F=!1)};
f8.prototype.Ib=function(a){f8.N.Ib.call(this,a);this.ca.Km(this.M[a]);this.A.Ud()};
f8.prototype.G=function(a){return a.toString()};B(g8,a8);g8.prototype.F=function(){if(1==this.ca.getPresentingPlayerType()&&Jx(this.ca.W(),this.ca.getVideoData(),this.ca.$b()))this.G||(x8(this.J,this),this.G=!0,this.C.push(R(this,this.ca,"videodatachange",this.F)),this.C.push(R(this,this.ca,"videoplayerreset",this.F)),this.C.push(R(this,this.ca,"onPlaylistUpdate",this.F)),this.C.push(R(this,this.ca,"autonavchange",this.H)),this.H(this.ca.getVideoData().Ed));else if(this.G){y8(this.J,this);this.G=!1;for(var a=0;a<this.C.length;a++)this.za(this.C[a])}};
g8.prototype.H=function(a){b8(this,1!=a)};
g8.prototype.K=function(a){this.ca.app.P("onAutonavChangeRequest",1!=(a?2:1))};B(h8,d8);h8.prototype.G=function(){if(1==this.ca.getPresentingPlayerType()){for(var a={},b=g2(oq(this.ca.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.M=a;a=this.ca.ur();e8(this,a);if(a.length){this.J();this.F||(x8(this.A,this),this.F=!0);return}}this.F&&(y8(this.A,this),this.F=!1)};
h8.prototype.J=function(){var a=rH(this.ca);this.C[a]&&(this.L=this.ca.vj(),this.Mc(a),"auto"==a&&this.Db(this.zc(a)))};
h8.prototype.Ib=function(a){h8.N.Ib.call(this,a);this.ca.zj(a);this.A.yb()};
h8.prototype.zc=function(a,b){var c=["div",null,i8(this,a)],d=rH(this.ca);b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(i8(this,this.L,["ytp-menu-label-secondary"])));return c};B(j8,d8);j8.prototype.J=function(){var a=-1!=this.ca.mh().indexOf("remote")?this.ca.vb("remote","receivers"):[];1<a.length&&!this.ca.vb("remote","castSelector")?(this.L=Hb(a,this.G,this),e8(this,O(a,this.G)),a=this.ca.vb("remote","currentReceiver"),this.Mc(this.G(a)),this.F||(x8(this.A,this),this.F=!0)):this.F&&(y8(this.A,this),this.F=!1)};
j8.prototype.G=function(a){return a.key};
j8.prototype.zc=function(a){return this.L[a].name};
j8.prototype.Ib=function(a){j8.N.Ib.call(this,a);this.ca.ce("remote","currentReceiver",this.L[a]);this.A.yb()};B(k8,d8);h=k8.prototype;h.yk=function(a){return a.toString()};
h.zc=function(a){return"1"==a?P("YTP_NORMAL_SPEED"):a.toString()};
h.Ms=function(){this.ca.W().U&&1==this.ca.getPresentingPlayerType()?this.F||(x8(this.A,this),this.F=!0,this.G=R(this,this.ca,"onPlaybackRateChange",this.lA),e8(this,O(this.ca.uj(),this.yk)),this.Mc(this.yk(this.ca.app.V))):this.F&&(y8(this.A,this),this.F=!1,this.za(this.G),this.G=null)};
h.lA=function(a){this.Mc(this.yk(a))};
h.Ib=function(a){k8.N.Ib.call(this,a);this.ca.Aj((0,window.parseFloat)(a));this.A.Ud()};B(l8,d8);l8.prototype.Mc=function(a){l8.N.Mc.call(this,a)};
l8.prototype.G=function(a){return a.option.toString()};
l8.prototype.zc=function(a){return m8(this.F[a])};
l8.prototype.Ib=function(a){l8.N.Ib.call(this,a);this.P("settingChange",this.J,this.F[a].option)};B(n8,G6);n8.prototype.J=function(a,b){this.P("settingChange",a,b)};
n8.prototype.focus=function(){this.A.focus()};B(p8,d8);p8.prototype.G=function(a){return a.languageCode};
p8.prototype.zc=function(a){return this.F[a].languageName||""};
p8.prototype.Ib=function(a){this.P("select",a);a=this.A;var b=a.C.pop(),c=a.C[0];a.C=[c];A6(a,b,c,!0)};B(q8,d8);h=q8.prototype;h.Wm=function(a){return ac(a)?"__off__":a.displayName};
h.zc=function(a){return"__off__"==a?P("YTP_LANGUAGE_OFF"):"__translate__"==a?P("YTP_AUTO_TRANSLATE"):"__contribute__"==a?P("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.F[a]).displayName};
h.Ib=function(a){if("__translate__"==a)this.J.open();else if("__contribute__"==a){this.ca.pauseVideo();this.ca.Ja()&&Cy(this.ca);a=this.ca.W();var b=this.ca.getVideoData();wy(a.baseYtUrl+"timedtext_video?v="+b.videoId)}else this.ca.ce("captions","track","__off__"==a?{}:this.F[a]),q8.N.Ib.call(this,a),this.A.Ud()};
h.jC=function(){z6(this.A,this.G)};
h.wh=function(){var a=-1!=this.ca.mh().indexOf("captions"),b=this.ca.getVideoData().Ga;if(a||b){var c,d;if(a){var e;e=this.ca.vb("captions","track");var f=this.ca.vb("captions","tracklist",{includeAsr:!0}),k=this.ca.vb("captions","translationLanguages"),l=this.ca.vb("captions","displaySettings");r8(l);this.F=Hb(f,this.Wm,this);c=O(f,this.Wm);if(k.length){d=this.J;var m=k;d.F=Hb(m,d.G,d);e8(d,O(m,d.G));c.push("__translate__")}d=this.Wm(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));e8(this,c);this.Mc(d);a?(o8(this.G,l),this.L.Db(f.length?" ("+f.length+")":""),a&&k.length&&this.C.__translate__.element.setAttribute("aria-disabled",!!ac(e))):this.L.Db("");this.M||(x8(this.A,this),this.M=!0)}else this.M&&(y8(this.A,this),this.M=!1)};
h.bB=function(a){var b=this.ca.vb("captions","track"),b=ec(b);b.translationLanguage=this.J.F[a];this.ca.ce("captions","track",b)};
h.KF=function(a,b){var c={};switch(a){case "fontFamily":c.fontFamilyOption=s8[b];break;case "charEdgeStyle":c.charEdgeStyle=t8[b];break;default:c[a]=b}c=oH(this.ca,c);r8(c);o8(this.G,c)};B(u8,d8);var Sga={0:"YTP_THREED_VIEWMODE_2D",1:"YTP_THREED_VIEWMODE_ANAGLYPH"};u8.prototype.zc=function(a){return P(Sga[(0,window.parseInt)(a,10)])};
u8.prototype.J=function(){var a=tH(this.ca);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.F||(this.G=a.shader,x8(this.A,this),this.F=!0,e8(this,[(0).toString(),(1).toString()])),a=a.displayMode,void 0!=a&&this.Mc(a.toString())):this.F&&(y8(this.A,this),this.F=!1)};
u8.prototype.Ib=function(a){u8.N.Ib.call(this,a);uH(this.ca,{shader:this.G,displayMode:a});this.A.Ud();a=this.ca;var b=tH(a);a.app.Pa("webglsettingschanged",b)};B(v8,w6);v8.prototype.Ye=function(a){w8(this);0<this.A.A.length&&v8.N.Ye.call(this,a)};
v8.prototype.show=function(){v8.N.show.call(this)};
v8.prototype.fa=function(){window.document.activeElement&&yf(this.element,window.document.activeElement)&&this.J.focus();v8.N.fa.call(this)};B(z8,Q);z8.prototype.F=function(a){vH(this.ca,"settings");this.C.B?this.C.yb():(this.ca.wj("captions"),this.C.Ye(Vl(a)))};
z8.prototype.D=function(a){Bq(this,"pressed",a)};
z8.prototype.A=function(){var a=1==this.ca.getPresentingPlayerType(),b=tH(this.ca),c=a&&("Anaglyph3D"==b.shader||"Spherical3D"==b.shader),b=c&&0==(0,window.parseInt)(b.displayMode,10),a=c||!a?null:this.ca.vj();L(this.element,"ytp-hd-quality-badge","hd720"==a||"hd1080"==a||"hd1440"==a);L(this.element,"ytp-4k-quality-badge","hd2160"==a);L(this.element,"ytp-5k-quality-badge","hd2880"==a);L(this.element,"ytp-8k-quality-badge","highres"==a);L(this.element,"ytp-3d-badge-grey",c&&b);L(this.element,"ytp-3d-badge",
c&&!b)};B(A8,Q);A8.prototype.G=function(){vH(this.A,this.A.app.na?"size_small":"size_large");var a=this.A.app,b=!a.na;g$(a,!0,b);a.P("SIZE_CLICKED",b)};
A8.prototype.C=function(){this.xb(this.A.app.tb&&!this.A.Ja()&&3!=this.A.getPresentingPlayerType());if(this.B){var a=this.A.app.na;if(this.D!=a){this.D=a;if(this.A.W().V)this.element.innerHTML=a?Ah?'<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 L26,23 L10,23 L10,13 Z M13,16 L13,20 L23,20 L23,16 L13,16 Z" id="ytp-svg-10" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-10" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-10" /></svg>':
Ah?'<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 L28,25 L8,25 L8,11 Z M11,14 L11,22 L25,22 L25,14 L11,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>';else{var b=a?"M10,13 L26,13 26,23 10,23 10,13 Z M13,16 L13,20 23,20 23,16 13,16 Z":"M8,11 L28,11 28,25 8,25 8,11 Z M11,14 L11,22 25,22 25,14 11,14 Z",
c=a?"M8,11 L28,11 28,25 8,25 8,11 Z M11,14 L11,22 25,22 25,14 11,14 Z":"M10,13 L26,13 26,23 10,23 10,13 Z M13,16 L13,20 23,20 23,16 13,16 Z",b=Dy(ka(this),b,c);this.element.innerHTML=b}a=a?P("YTP_DEFAULT_VIEW"):P("YTP_THEATER_MODE");Bq(this,"title",a);r6(this.F)}}};B(B8,Q);B8.prototype.D=function(){vH(this.A,"subtitles");this.A.app.Xf("onCaptionsToggle")};
B8.prototype.C=function(){var a=!!lH(this.A.app.C,"captions");this.xb(a);a&&Bq(this,"pressed",!!this.A.vb("captions","track").displayName)};B(D8,Q);h=D8.prototype;h.xh=function(){this.xb(!this.D||!T(nz(this.C),64));var a=this.C.Ue(),b=xx(a.current);this.H!=b&&(Bq(this,"currenttime",b),this.H=b);a=xx(a.duration);this.J!=a&&(Bq(this,"duration",a),this.J=a)};
h.MF=function(a){if(this.G!=a){this.G=a;this.xh();var b=this.F.element;(b.disabled=a)?this.A&&(this.A(),this.A=null,b.removeAttribute("title")):(b.title=P("YTP_GOTO_LIVE_TOOLTIP"),this.A=p6(this.K,this.F.element,1))}};
h.NF=function(a,b){this.D=b.Fa;L(this.element,"ytp-live",this.D);this.xh()};
h.LF=function(a){a.target==this.F.element?(vH(this.C,"live"),this.C.Sb(window.Infinity),this.C.Yc()):vH(this.C,"time")};
h.T=function(){this.A&&this.A();D8.N.T.call(this)};B(E8,Q);
var Tga=["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"],Uga=["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"],Vga=["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"],Wga=["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"];h=E8.prototype;h.TA=function(a){if(!$l(a)){var b=am(a),c=null;37==b?c=this.C-5:39==b?c=this.C+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=ke(c,0,100),0==c?this.A.mute():(this.A.sc()&&this.A.unMute(),this.A.setVolume(c)),Zl(a))}};
h.PF=function(a){Zl(a);(a=bm(a||window.event,!0)||-bm(a||window.event,!1))&&this.A.setVolume(this.C+ke(a/20,-10,10))};
h.Xz=function(){this.A.sc()?(vH(this.A,"unmute"),this.A.unMute()):(vH(this.A,"mute"),this.A.mute())};
h.SA=function(){vH(this.A,"volume");this.ea=!0;this.ia=this.C;K(this.element,"ytp-volume-slider-active");this.A.sc()&&this.A.unMute()};
h.RA=function(a){a-=$f(this.ga).x;a=100*ke(a/(this.Z?78:52),0,1);if(this.K&&this.H.paused&&this.J.paused){var b=Math.abs(a-this.C);8<b?this.H.play():5<b&&this.J.play()}this.A.setVolume(a)};
h.QA=function(){this.ea=!1;Zd(this.element,"ytp-volume-slider-active");0==this.C&&(this.A.setVolume(this.ia),this.A.mute());this.K&&!this.U&&(this.D.pause(),this.G.play())};
h.RF=function(a){F8(this,a.volume,a.muted)};
h.Qs=function(a){a=G8(this,a);var b=["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",1];if(0>=a)b.push("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",-a/.5);else{var c=ke(2*a,0,1);b.push(H8(Tga,Uga,c),1);(c=ke(2*(a-.5),0,1))&&b.push(H8(Vga,Wga,c),1)}for(var c='<svg width="100%" height="100%" viewBox="0 0 36 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">',
d=0;d<b.length;d+=2)0!=b[d].length&&(c+='<path class="ytp-svg-shadow" d="'+b[d]+'" opacity="'+b[d+1]+'"></path><path class="ytp-svg-fill" d="'+b[d]+'" opacity="'+b[d+1]+'"></path>');this.F.element.innerHTML=c+"</svg>";this.L!=a&&this.aa.start()};
h.QF=function(){this.A.getVideoData().L?(this.M=J8(this,"activate.mp3"),this.G=J8(this,"deactivate.mp3"),this.D=J8(this,"active.mp3",!0),this.H=J8(this,"swing_fast.mp3"),this.J=J8(this,"swing_slow.mp3"),this.K=!0,I8(this)):this.K&&(qf(this.M),this.M=null,qf(this.G),this.G=null,qf(this.D),this.D=null,qf(this.H),this.H=null,qf(this.J),this.J=null,this.S.stop(),this.K=!1)};
h.Wu=function(){this.M.play();this.D.play()};B(L8,Q);L8.prototype.C=function(){var a=!!this.A.getVideoData().videoId;this.xb(a);a&&Bq(this,"url",this.A.getVideoUrl(!0))};
L8.prototype.D=function(a){vH(this.A,"youtube");var b=this.A.getVideoUrl(!yx(a),!1,!0);Ay(b,this.A,a)};B(M8,zv);h=M8.prototype;h.JF=function(){K(this.A.element,"ytp-volume-control-hover");this.ca.getVideoData().L&&K8(this.A,!0)};
h.IF=function(){Zd(this.A.element,"ytp-volume-control-hover");this.ca.getVideoData().L&&K8(this.A,!1)};
h.HF=function(){N8(this)&&this.O.start()};
h.Kj=function(a){if(this.J.A){if(a||this.ca.W().experiments.ma("smooth_progress_bar")){a=this.D;L7(a);var b=a.C.getCurrentTime();(b<a.Y||b>a.U)&&a.Jj();this.K.xh()}N8(this)&&this.O.start()}};
h.FF=function(){this.Kj(!0)};
h.GF=function(a){a&&window.document.activeElement==this.F.element&&this.ca.Ba().focus();this.Vm()};
h.wC=function(){n6(this.C.A,!this.o.B)};
h.Vm=function(){var a=IE(this.C),b=GE(this.ca).Ma(),c=12*(a?2:1),d=Math.max(b.width-2*c,100);if(this.S!=b.width||this.L!=a){this.S=b.width;this.L=a;var e=Math.max(b.width-2*c,100);this.B.element.style.width=e+"px";this.B.element.style.left=c+"px";this.D.setPosition(c,e,a);var f=this.C.A;f.U=c;f.Y=d;c=this.A;c.Z=a;F8(c,c.A.Cb(),c.A.sc());L(this.ca.Ba(),"ytp-tiny-mode",200>e)}e=this.o;b=Math.min(250*(a?1.5:1),Math.round(.6*(b.height-(IE(this.C)?72:50))));e.ha=Math.min(350*(a?1.5:1),d);e.ia=b;e.gh()};B(P8,Q);P8.prototype.K=function(a){vH(this.A,"title");var b=this.A.getVideoUrl(!yx(a),!1,!0);Ay(b,this.A,a)};
P8.prototype.J=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&&Lw.test(b)&&R8(this,a,c,d,b))};
P8.prototype.D=function(){Q8(this);var a=this.A.getVideoData();Bq(this,"title",a.title);!this.A.W().C&&a.videoId?(Bq(this,"url",this.A.getVideoUrl(!0)),this.C||(this.C=R(this,this.H,"click",this.K))):this.C&&(Bq(this,"url",null),this.za(this.C),this.C=null)};B(S8,Q);h=S8.prototype;h.fy=function(){this.C=!0;this.A=!1;T8(this,1)};
h.SF=function(){vH(this.D,"watchlater");var a=this.D.getVideoData().videoId;if(!this.A){this.A=!0;T8(this,3);U8(this);var b=this.D.app,c=!this.C;(c?Ifa:Jfa)({videoIds:a,zb:b.X.zb,pageId:b.X.pageId,onError:b.xB,kb:c?b.wB:b.yB,context:b},b.X.baseYtUrl,!0)}};
h.TF=function(a){this.A=!1;T8(this,4);U8(this,a)};
h.zA=function(){this.A=this.C=!1;T8(this,2)};
h.UF=function(){this.A=this.C=!1;T8(this,2);U8(this)};
h.T=function(){S8.N.T.call(this);Zd(this.G,"ytp-watch-later-button-visible")};B(V8,Q);V8.prototype.D=function(){this.C.getVideoData().videoId?(Bq(this,"url",this.C.getVideoUrl(!0)),this.A||(this.A=this.R("click",this.F))):this.A&&(Bq(this,"url",null),this.za(this.A),this.A=null)};
V8.prototype.F=function(a){var b=this.C.getVideoUrl(!yx(a),!1,!0);Ay(b,this.C,a)};B(W8,zv);h=W8.prototype;h.zs=function(a,b){this.ga!=b.videoId&&(this.ga=b.videoId,this.B.bb(512,!0),this.fh());var c=this.o.Ba();L(c,"ytp-project-beyond",!!b.L);L(c,"ytp-project-beyond-light",1==b.L);L(c,"ytp-project-beyond-dark",2==b.L)};
h.qA=function(){this.zs(0,cb(this.o.getVideoData()))};
h.$l=function(){var a=!HE(this);a?this.G.H.show():this.G.H.fa();this.$d();Bq(this.Z,"menuopen",a);$8(this.Z,this.G,!a)};
h.am=function(){var a=!HE(this);a?this.H.G.show():this.H.G.fa();this.$d();Bq(this.aa,"menuopen",a);$8(this.aa,this.H,!a)};
h.$d=function(){var a=!HE(this);a?(this.ha.show(),this.la.show(),xH(this.o)&&this.K.A.show()):(this.ha.fa(),this.la.fa(),this.K.A.fa(),this.A.qg(3));L(this.o.Ba(),"ytp-menu-shown",!a);var b=this.V,c=!a;(b.D=c)?b.fa():P6(b.C,b.A,nz(b.A));this.F&&O8(this.F,!a)};
h.LE=function(a){if(this.F&&!yf(this.F.B.element,a)&&!yf(this.D.element,a))return!1;for(;!a||!Cf(a);){if(!a||a==this.o.Ba())return!1;a=wf(a)}return!0};
h.ME=function(a){var b=this.o.Ba();L(b,"ytp-autohide",a);a&&(this.A.qg(1,3),Zd(b,"ytp-touch-mode"));b=this.o;a=!a;b.app.Pa("onVideoAreaChange");b.app.Pa(a?"onShowControls":"onHideControls")};
h.EA=function(a){this.o.W();this.B.A||Z8(this,a)||Y8(this,Wl(a))||Zl(a);this.B.bb(2,!0);K(this.o.Ba(),"ytp-touch-mode")};
h.Vp=function(a){if(Y8(this,Wl(a)))return!0;this.B.bb(2,!0);return this.Tn()?!0:!1};
h.Wp=function(a){Y8(this,Wl(a));var b=nz(this.o);T(b,2)&&mH(this.o)||Z8(this,a)||(j6(this.O),jy(b)?this.o.pauseVideo():(this.o.Yc(),window.document.activeElement==this.V.element&&this.o.Ba().focus()))};
h.DA=function(a){Y8(this,Wl(a))||"3"!=this.o.W().B&&3!=this.o.getPresentingPlayerType()&&Cy(this.o)};
h.NE=function(a){var b=this.o.Ba();a?(b.setAttribute("aria-label",P("YTP_PLAYER_FULLSCREEN")),b.parentNode.insertBefore(this.ea.element,b),b.parentNode.insertBefore(this.da.element,b.nextSibling)):(b.setAttribute("aria-label",P("YTP_PLAYER_NORMAL")),Aq(this.ea),Aq(this.da));this.Qm();this.fh()};
h.Qm=function(){var a=IE(this),b=GE(this.o).Ma(),c=this.o.Ja(),d=this.o.Ba();this.A.F=a?1.5:1;L(d,"ytp-fullscreen",c);L(d,"ytp-small-mode",480>b.width);L(d,"ytp-big-mode",a);L(this.L.element,"ytp-big-mode",a);this.C&&(a=this.C,a.A&&a6(a.A,b.width,b.height))};
h.OE=function(a){X8(this,a.state);this.fh();this.Vq()};
h.fh=function(){var a=!this.o.getVideoData().isListed&&2==this.o.getPresentingPlayerType(),a=!!this.ga&&!kH(this.o)&&!a&&(2==this.o.getPresentingPlayerType()||this.o.W().Ga||this.o.Ja());this.Ca!=a&&(this.Ca=a,L(this.o.Ba(),"ytp-hide-info-bar",!a),a||(this.A.qg(3),h7(this.J)&&this.Rm(),a7(this.G)&&this.$l(),e7(this.H)&&this.am()))};
h.Vq=function(){var a=xH(this.o),b=a&&yH(this.o);b!=this.S&&(this.S=b,this.$d(),b&&(b=this.U,b=b.B&&3!=b.G.o),b&&this.U.Hj());b=nz(this.o);(a=a&&!T(b,2))&&!HE(this)?this.K.A.show():(b=this.K,b.B&&3!=b.A.o&&this.K.A.fa());L(this.D.element,"ytp-cards-available",a)};
h.Uq=function(){this.S?this.o.nh(!1):this.o.nh(!0)};
h.Rm=function(){var a=!HE(this);if(a)this.J.H.show();else{var b=this.J;b.H.fa();b.D.qg(4)}this.$d();$8(this.ia,this.J,!a)};
h.Tn=function(){if(this.L.B)return this.L.yb(),!0;var a;if(a=this.F){a=this.F;var b=a.F;b.A&&v6(b.A)?(a.F.A.yb(),a=!0):a.o.B?(a.o.yb(),a=!0):a=!1}return a?!0:a7(this.G)?(this.$l(),!0):h7(this.J)?(this.Rm(),!0):e7(this.H)?(this.am(),!0):this.S?(this.Uq(),!0):kH(this.o)?(V9(this.o.app,!0),!0):!1};
h.gC=function(a){this.B.bb(64,a);this.Ga=a;this.As()};
h.As=function(){var a=this.Ga||this.L.B;this.qa!=a&&(this.qa=a,this.o.app.P("onAutonavPauseRequest",this.qa))};
h.Tv=function(){a9(this,this.o.Ba(),!0).focus()};
h.Uv=function(){a9(this,this.o.Ba(),!1).focus()};var c9=[];b9.prototype.nc=function(){return r.JSON&&r.JSON.stringify?r.JSON.stringify(this.o):de(this.o)};
b9.prototype.toString=function(){return this.o.toString()};
b9.prototype.getExtension=function(a){if(this.A){this.B||(this.B={});var b=a.A;if(a.B){if(a.o)return this.B[b]||(this.B[b]=O(this.A[b]||[],function(b){return new a.o(b)})),this.B[b]}else if(a.o)return!this.B[b]&&this.A[b]&&(this.B[b]=new a.o(this.A[b])),this.B[b];
return this.A[b]}};B(d9,b9);var Nfa=[241];d9.prototype.getStatus=function(){return Z(this,59)};
d9.prototype.setVideoId=function(a){175<this.C?this.o[174]=a:this.A[175]=a};var Ofa={legacy_config:!0,player_response:!0,polymer_player_response:!0},f9={baseurl:"baseUrl",focenabled:"focEnabled",loaderurl:"loaderUrl",rmktenabled:"rmktEnabled",ytfocenabled:"ytfocEnabled",ytfochistoryenabled:"ytfocHistoryEnabled",suggestedquality:"suggestedQuality"};B(e9,Rj);e9.F="defaultcontext";e9.o={};e9.B="appapi";e9.A="appad";e9.create=function(a,b){try{var c=e9.D(a);if(e9.o[c]){try{e9.o[c].dispose()}catch(e){Fi(e)}e9.o[c]=null}var d=new e9(a,b);Kb(d,function(){e9.o[c]=null});
return e9.o[c]=d}catch(e){throw Fi(e),e.stack;}};
e9.C=function(a,b){Yu("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=t("ytplayer.config");c=e9.create(c,d);d.loaded=!0;return c};
e9.D=function(a){return y(a)?a:"player"+ka(a)};
h=e9.prototype;h.ry=function(){y9(this)||w9(this,5)};
h.mA=function(a){y9(this)||(b$(this),jy(a.getPlayerState())&&this.Re())};
h.Jq=function(a){var b=this.F.element;L(b,"ytp-ad-overlay-open",a);L(b,"ytp-ad-overlay-closed",!a)};
h.Pa=function(a,b){this.P.apply(this,arguments);this.Xf.apply(this,arguments)};
h.If=function(a,b){var c=sb(arguments);this.X.cb&&this.D&&c.push(this.D.O);this.P.apply(this,c)};
h.canPlayType=function(a){return!!vt().canPlayType(a)};
h.W=function(){return this.X};
h.getVideoData=function(){return this.D.getVideoData()};
h.pj=function(){var a=MG(this.X);qa(a,$J(this.C));this.G&&qa(a,this.G.qh());a.fs=this.M.Ja();a.volume=Math.round(this.Wa.Cb());a.mos=this.Wa.sc()?1:0;return a};
h.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.H.getCurrentTime():(a=oq(this,a))?a.getCurrentTime():0};
h.getPresentingPlayerType=function(){var a;if(a=this.H)a=this.H,a=!!a.A&&!!a.B;return a?3:oq(this).O};
h.bD=function(a){var b=a.target;switch(a.type){case "loadedmetadata":this.J.A("fvb",void 0);this.gb.start();break;case "loadstart":this.J.A("gv",void 0);break;case "progress":case "timeupdate":2<=ay(b.buffered)&&this.J.A("l2s",void 0)}};
h.Kz=function(a,b){this.If("onLoadProgress",b)};
h.UA=function(){this.If("playbackstalledatstart")};
h.rB=function(a,b){this.If("onVideoProgress",b)};
h.YC=function(){FH(this.Wa)};
h.uy=function(a){!this.X.experiments.ma("disable_live_head_slowdown")&&0<aB(a,1)&&!T(a.state,64)&&j5(this).Fa&&e2(this.o)&&1<this.V&&z9(this,1);if(0<aB(a,2)){var b;this.A&&("embedded"==this.X.Aa||this.M.Ja())&&Sx(this)?(W9(this),b=!0):b=!1;!b&&AG(this.X)&&O1(this.o).webkitExitFullScreen&&O1(this.o).webkitExitFullScreen()}T(a.state,128)&&(b=a.state,Q9(this),b=b.o,this.P("onError",E$[b.errorCode]||5),this.P("onDetailedError",b));this.P("applicationplayerstatechange",a);T(a.state,2)&&(a=this.getVideoData(),
a.isLiveDefaultBroadcast&&N9(this,{videoId:a.videoId,livemonitor:a.Af}))};
h.XC=function(a){!T(a.state,32)&&0>aB(a,16)&&(!T(a.state,8)||T(a.state,64)||this.B.ended||T(a.state,2)||this.Re());this.P("presentingplayerstatechange",a);this.Xf("onStateChange",a);x9(this,sy(a.state));K9(this)};
h.qy=function(a){"newdata"==a&&H9(this)};
h.wy=function(a,b){var c=this.D.getVideoData();a==c&&this.Pa("onPlaybackAudioChange",B9(this).Hb.name,b)};
h.aD=function(a,b,c){"newdata"==a?q9(this,b):r9(this,a,b,c)};
h.pB=function(a,b){var c=this.D.getVideoData();a==c&&(this.Pa("onPlaybackQualityChange",a.A.video.quality,b),K9(this))};
h.fk=function(){j9(this,null);this.Pa("onPlaylistUpdate")};
h.qp=function(a){var b=a.getId(),c=j5(this);if("part2viewed"==b)c.Bd&&aq(c.Bd),c.Oa&&aq(c.Oa);else if("conversionview"==b){var d=this.o;d.B&&ZA(d.B)}else"engagedview"==b&&aq(c.na);c.qa&&(d=a.getId(),d=rj(c.qa,{label:d}),aq(d));switch(b){case "videoplaytime25":c.vc&&aq(c.vc);aq(c.kg);break;case "videoplaytime50":c.wc&&aq(c.wc);aq(c.lg);break;case "videoplaytime75":c.xc&&aq(c.xc);aq(c.mg);break;case "videoplaytime100":c.uc&&aq(c.uc),aq(c.jg)}(b=DA?this.X.Bd:this.getVideoData().je)&&b[a.getId()]&&(b=
b[a.getId()],c=C(D(b))?!1:hga.test(b)||gga.test(b),aq(b,void 0,c));this.o.F.jh(a)};
h.Yf=function(a,b,c,d){b=0!=b;if(d=oq(this,d))2==this.K&&m9(this),U1(d,a,b,c)};
h.$C=function(a,b){var c=a.getVideoData();if(1==this.K||2==this.K)c.startSeconds=b;2==this.K?m9(this):this.Pa("seekto",b)};
h.gy=function(){this.P("airplayactivechange")};
h.hy=function(){this.P("airplayavailabilitychange")};
h.TC=function(){this.Pa("beginseeking")};
h.UC=function(){this.Pa("endseeking")};
h.Lp=function(){var a=this.A.rb(),b=this.getVideoData();b.zf||!this.Z?(b=b.Zf,a=O9(this,a),b&&R9(this,a)):a&&S9(this,a)};
h.ny=function(a){this.P("onCueRangeEnter",a.getId())};
h.oy=function(a){this.P("onCueRangeExit",a.getId())};
h.ty=function(){this.aa||(this.aa=Vu(this.vp,this));H_(this.J,a$(this));if(!this.ab&&"detailpage"==this.X.Aa){this.ab=!0;var a=this.o;if(a.aa&&a.aa.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.aa.o;var d=I()-a.aa.A;a.aa.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+"."+c[e]);a.rt=d.join(",");for(var f in b)"_"!=
f.charAt(0)&&(a[f]=b[f]);b=zi("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);lv(a)}}this.X.experiments.B&&Sx(this)&&(b=this.A.rb(qx(this.A)))&&P9(this,b)};
h.vp=function(a){a=a.o;if(!(0,window.isNaN)(a)&&0<a&&this.o){var b=this.o;b.B&&0<a&&(b.B.B.B.aft=[a])}};
h.Hp=function(a){"remote"==a?(2==this.K&&m9(this),w9(this,6),v9(this,this.G)):this.zl()};
h.Ip=function(a){"remote"!=a||y9(this)||(this.Re(),this.pauseVideo());this.zl()};
h.zl=function(){this.If("onApiChange")};
h.Sz=function(){var a={volume:100*this.B.volume,muted:this.B.muted};this.U=ec(a);this.Pa("onVolumeChange",a)};
h.xz=function(){c$(this,Lh()?1:0)};
h.ZC=function(){if(this.B){var a=!1;if(0!=this.B.readyState&&this.D){var b=new re(this.B.videoWidth,this.B.videoHeight),c=this.getVideoData();se(c.ie,b)||(c.ie=b,a=!0)}b=FE(this.F);ve(this.nb,b)||(this.nb=b,a=!0);a&&(this.D&&j2(this.D,"r"),this.P("resize",this.F.Ma()),this.Pa("onResize"))}};
h.CA=function(){2!=this.$a&&c$(this,Lh()?1:0)};
h.WC=function(a){this.Pa("liveviewshift",a)};
h.wB=function(){this.P("WATCH_LATER_VIDEO_ADDED")};
h.yB=function(){this.P("WATCH_LATER_VIDEO_REMOVED")};
h.xB=function(a,b){var c;b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);this.P("WATCH_LATER_ERROR",c||P("YTP_ERROR_GENERIC_WITHOUT_LINK"))};
h.Pi=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(this.J.A("vr",void 0),this.aa||(this.aa=Vu(this.vp,this)),p2(this.D),H_(this.J,a$(this)));0==c&&e&&(this.o.aa=e);var f=this.X;"leanback"==f.Aa&&f.cb&&(0==c?this.ia=this.B:this.ia=d,this.P("onAdStateChange",c,e.video_id))}else this.P.apply(this,arguments)};
h.Xf=function(a,b){this.C.K.apply(this.C,arguments);this.G&&this.G.P.apply(this.G,arguments);this.H&&this.H.P.apply(this.H,arguments)};
h.Re=function(a){if(a=oq(this,a))if(2==this.K)m9(this);else{var b=a.getPlayerState();if(T(a.getPlayerState(),2))this.Yf(0);else{if(!this.X.experiments.ma("new_stop_video2")&&1==this.getPresentingPlayerType()&&T(b,64)){var b=this.C,c=BJ();F(c,b.J,b)}d2(a)}}};
h.pauseVideo=function(a){(a=oq(this,a))&&a.pauseVideo()};
h.getAdState=function(){return this.G?this.G.getAdState():-1};
h.qr=function(a,b,c){this.aj();this.qa=a;b&&F(b,function(a){this.da[a]=!0},this);
c&&WJ(this.C,a,c)};
h.aj=function(){this.qa=null;this.da={};XJ(this.C)};
h.OA=function(){if(!this.Ga){this.Ga=!0;var a=this.getVideoData(),b={};b.video_id=a.videoId;a.Fa||(b.start=oq(this).getCurrentTime());b.autoplay=1;b.reload=1;N9(this,b)}};
h.az=function(){this.Pa("CONNECTION_ISSUE")};
h.VC=function(a){this.Pa("heartbeatparams",a)};
h.T=function(){sp();this.o.dispose();this.L&&this.L.dispose();o9(this);Nb(Vb(this.Ca),this.A);this.ia=null;Wu(this.aa);this.aa=0;e9.N.T.call(this)};q("yt.player.Application.create",e9.create,void 0);q("yt.player.Application.createWebComponent",e9.C,void 0);var $$=t("ytcsi.tick");$$&&$$("pe");})(_yt_player);
